diff --git a/.dockerignore b/.dockerignore index ccc2930..66bcbd1 100644 --- a/.dockerignore +++ b/.dockerignore @@ -1,2 +1,12 @@ /coverage -/node_modules + +# Dependency directories +node_modules/ +jspm_packages/ + +# yarn v2 +.yarn/cache +.yarn/unplugged +.yarn/build-state.yml +.yarn/install-state.gz +.pnp.* diff --git a/.eslintignore b/.eslintignore new file mode 100644 index 0000000..98c3dbc --- /dev/null +++ b/.eslintignore @@ -0,0 +1,3 @@ +/dist/** +/coverage/** +/node_modules/** diff --git a/.eslintrc.json b/.eslintrc.json new file mode 100644 index 0000000..97c0c7a --- /dev/null +++ b/.eslintrc.json @@ -0,0 +1,24 @@ +{ + "env": { + "node": true, + "es6": true, + "jest": true + }, + "extends": [ + "eslint:recommended", + "plugin:@typescript-eslint/eslint-recommended", + "plugin:@typescript-eslint/recommended", + "plugin:jest/recommended", + "plugin:prettier/recommended" + ], + "parser": "@typescript-eslint/parser", + "parserOptions": { + "ecmaVersion": "latest", + "sourceType": "module" + }, + "plugins": [ + "@typescript-eslint", + "jest", + "prettier" + ] +} diff --git a/.gitattributes b/.gitattributes index 93763d5..a07ecb3 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1,2 +1,4 @@ +/.yarn/releases/** binary +/.yarn/plugins/** binary /dist/** linguist-generated=true /lib/** linguist-generated=true diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS deleted file mode 100644 index f7b8e1d..0000000 --- a/.github/CODEOWNERS +++ /dev/null @@ -1 +0,0 @@ -* @crazy-max diff --git a/.github/CODE_OF_CONDUCT.md b/.github/CODE_OF_CONDUCT.md new file mode 100644 index 0000000..db44d7e --- /dev/null +++ b/.github/CODE_OF_CONDUCT.md @@ -0,0 +1,3 @@ +# Code of conduct + +- [Moby community guidelines](https://github.com/moby/moby/blob/master/CONTRIBUTING.md#moby-community-guidelines) diff --git a/.github/ISSUE_TEMPLATE/bug.yml b/.github/ISSUE_TEMPLATE/bug.yml new file mode 100644 index 0000000..091d1f7 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/bug.yml @@ -0,0 +1,101 @@ +# https://docs.github.com/en/communities/using-templates-to-encourage-useful-issues-and-pull-requests/syntax-for-githubs-form-schema +name: Bug Report +description: Report a bug +labels: + - status/triage + +body: + - type: markdown + attributes: + value: | + Thank you for taking the time to report a bug! + If this is a security issue please report it to the [Docker Security team](mailto:security@docker.com). + + - type: checkboxes + attributes: + label: Contributing guidelines + description: > + Make sure you've read the contributing guidelines before proceeding. + options: + - label: I've read the [contributing guidelines](https://github.com/docker/login-action/blob/master/.github/CONTRIBUTING.md) and wholeheartedly agree + required: true + + - type: checkboxes + attributes: + label: "I've found a bug, and:" + description: | + Make sure that your request fulfills all of the following requirements. + If one requirement cannot be satisfied, explain in detail why. + options: + - label: The documentation does not mention anything about my problem + - label: There are no open or closed issues that are related to my problem + + - type: textarea + attributes: + label: Description + description: > + Provide a brief description of the bug in 1-2 sentences. + validations: + required: true + + - type: textarea + attributes: + label: Expected behaviour + description: > + Describe precisely what you'd expect to happen. + validations: + required: true + + - type: textarea + attributes: + label: Actual behaviour + description: > + Describe precisely what is actually happening. + validations: + required: true + + - type: input + attributes: + label: Repository URL + description: > + Enter the URL of the repository where you are experiencing the + issue. If your repository is private, provide a link to a minimal + repository that reproduces the issue. + + - type: input + attributes: + label: Workflow run URL + description: > + Enter the URL of the GitHub Action workflow run if public (e.g. + `https://github.com///actions/runs/`) + + - type: textarea + attributes: + label: YAML workflow + description: | + Provide the YAML of the workflow that's causing the issue. + Make sure to remove any sensitive information. + render: yaml + validations: + required: true + + - type: textarea + attributes: + label: Workflow logs + description: > + [Attach](https://docs.github.com/en/get-started/writing-on-github/working-with-advanced-formatting/attaching-files) + the [log file of your workflow run](https://docs.github.com/en/actions/managing-workflow-runs/using-workflow-run-logs#downloading-logs) + and make sure to remove any sensitive information. + + - type: textarea + attributes: + label: BuildKit logs + description: > + If applicable, provide the [BuildKit container logs](https://docs.docker.com/build/ci/github-actions/configure-builder/#buildkit-container-logs) + render: text + + - type: textarea + attributes: + label: Additional info + description: | + Provide any additional information that could be useful. diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md deleted file mode 100644 index d50d109..0000000 --- a/.github/ISSUE_TEMPLATE/bug_report.md +++ /dev/null @@ -1,34 +0,0 @@ ---- -name: Bug report -about: Create a report to help us improve ---- - -### Behaviour - -#### Steps to reproduce this issue - -1. -2. -3. - -#### Expected behaviour - -> Tell us what should happen - -#### Actual behaviour - -> Tell us what happens instead - -### Configuration - -* Repository URL (if public): -* Build URL (if public): - -```yml -# paste your YAML workflow file here and remove sensitive data -``` - -### Logs - -> Download the [log file of your build](https://docs.github.com/en/actions/managing-workflow-runs/using-workflow-run-logs#downloading-logs) -> and [attach it](https://docs.github.com/en/github/managing-your-work-on-github/file-attachments-on-issues-and-pull-requests) to this issue. diff --git a/.github/ISSUE_TEMPLATE/config.yml b/.github/ISSUE_TEMPLATE/config.yml new file mode 100644 index 0000000..9b2614e --- /dev/null +++ b/.github/ISSUE_TEMPLATE/config.yml @@ -0,0 +1,9 @@ +# https://docs.github.com/en/communities/using-templates-to-encourage-useful-issues-and-pull-requests/configuring-issue-templates-for-your-repository#configuring-the-template-chooser +blank_issues_enabled: true +contact_links: + - name: Questions and Discussions + url: https://github.com/docker/login-action/discussions/new + about: Use Github Discussions to ask questions and/or open discussion topics. + - name: Documentation + url: https://docs.docker.com/build/ci/github-actions/ + about: Read the documentation. diff --git a/.github/ISSUE_TEMPLATE/feature.yml b/.github/ISSUE_TEMPLATE/feature.yml new file mode 100644 index 0000000..6ab7568 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/feature.yml @@ -0,0 +1,15 @@ +# https://docs.github.com/en/communities/using-templates-to-encourage-useful-issues-and-pull-requests/syntax-for-githubs-form-schema +name: Feature request +description: Missing functionality? Come tell us about it! +labels: + - kind/enhancement + - status/triage + +body: + - type: textarea + id: description + attributes: + label: Description + description: What is the feature you want to see? + validations: + required: true diff --git a/.github/SECURITY.md b/.github/SECURITY.md new file mode 100644 index 0000000..e839895 --- /dev/null +++ b/.github/SECURITY.md @@ -0,0 +1,12 @@ +# Reporting security issues + +The project maintainers take security seriously. If you discover a security +issue, please bring it to their attention right away! + +**Please _DO NOT_ file a public issue**, instead send your report privately to +[security@docker.com](mailto:security@docker.com). + +Security reports are greatly appreciated, and we will publicly thank you for it. +We also like to send gifts—if you'd like Docker swag, make sure to let +us know. We currently do not offer a paid security bounty program, but are not +ruling it out in the future. diff --git a/.github/SUPPORT.md b/.github/SUPPORT.md deleted file mode 100644 index 1f563cc..0000000 --- a/.github/SUPPORT.md +++ /dev/null @@ -1,29 +0,0 @@ -# Support [![](https://isitmaintained.com/badge/resolution/docker/login-action.svg)](https://isitmaintained.com/project/docker/login-action) - -## Reporting an issue - -Please do a search in [open issues](https://github.com/docker/login-action/issues?utf8=%E2%9C%93&q=) to see if the issue or feature request has already been filed. - -If you find your issue already exists, make relevant comments and add your [reaction](https://github.com/blog/2119-add-reactions-to-pull-requests-issues-and-comments). Use a reaction in place of a "+1" comment. - -:+1: - upvote - -:-1: - downvote - -If you cannot find an existing issue that describes your bug or feature, submit an issue using the guidelines below. - -## Writing good bug reports and feature requests - -File a single issue per problem and feature request. - -* Do not enumerate multiple bugs or feature requests in the same issue. -* Do not add your issue as a comment to an existing issue unless it's for the identical input. Many issues look similar, but have different causes. - -The more information you can provide, the more likely someone will be successful reproducing the issue and finding a fix. - -You are now ready to [create a new issue](https://github.com/docker/login-action/issues/new/choose)! - -## Closure policy - -* Issues that don't have the information requested above (when applicable) will be closed immediately and the poster directed to the support guidelines. -* Issues that go a week without a response from original poster are subject to closure at our discretion. diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 0adf2da..16a8984 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -11,6 +11,14 @@ updates: directory: "/" schedule: interval: "daily" + versioning-strategy: "increase" + groups: + aws-sdk-dependencies: + patterns: + - "*aws-sdk*" + proxy-agent-dependencies: + patterns: + - "*-proxy-agent" allow: - dependency-type: "production" labels: diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e511725..888441c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,5 +1,9 @@ name: ci +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + on: workflow_dispatch: schedule: @@ -15,7 +19,7 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Stop docker run: | @@ -39,7 +43,7 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Login to GitHub Container Registry uses: ./ @@ -56,7 +60,7 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Login to GitHub Container Registry uses: ./ @@ -81,7 +85,7 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Login to ACR uses: ./ @@ -101,7 +105,7 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Login to Docker Hub uses: ./ @@ -120,7 +124,7 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Login to ECR uses: ./ @@ -140,10 +144,10 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Configure AWS Credentials - uses: aws-actions/configure-aws-credentials@v1 + uses: aws-actions/configure-aws-credentials@v4 with: aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} @@ -165,9 +169,10 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Login to Public ECR + continue-on-error: ${{ matrix.os == 'windows-latest' }} uses: ./ with: registry: public.ecr.aws @@ -187,16 +192,17 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Configure AWS Credentials - uses: aws-actions/configure-aws-credentials@v1 + uses: aws-actions/configure-aws-credentials@v4 with: aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} aws-region: us-east-1 - - name: Login to ECR + name: Login to Public ECR + continue-on-error: ${{ matrix.os == 'windows-latest' }} uses: ./ with: registry: public.ecr.aws @@ -212,7 +218,7 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Login to GitHub Container Registry uses: ./ @@ -232,7 +238,7 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Login to GitLab uses: ./ @@ -252,7 +258,7 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Login to Google Artifact Registry uses: ./ @@ -272,7 +278,7 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Login to Google Container Registry uses: ./ diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml new file mode 100644 index 0000000..d4b47c8 --- /dev/null +++ b/.github/workflows/codeql.yml @@ -0,0 +1,50 @@ +name: codeql + +on: + push: + branches: + - 'master' + - 'releases/v*' + paths: + - '.github/workflows/codeql.yml' + - 'dist/**' + - 'src/**' + pull_request: + paths: + - '.github/workflows/codeql.yml' + - 'dist/**' + - 'src/**' + +permissions: + actions: read + contents: read + security-events: write + +jobs: + analyze: + runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + language: + - javascript-typescript + steps: + - + name: Checkout + uses: actions/checkout@v4 + - + name: Initialize CodeQL + uses: github/codeql-action/init@v3 + with: + languages: ${{ matrix.language }} + config: | + paths: + - src + - + name: Autobuild + uses: github/codeql-action/autobuild@v3 + - + name: Perform CodeQL Analysis + uses: github/codeql-action/analyze@v3 + with: + category: "/language:${{matrix.language}}" diff --git a/.github/workflows/pr-assign-author.yml b/.github/workflows/pr-assign-author.yml new file mode 100644 index 0000000..f56fa03 --- /dev/null +++ b/.github/workflows/pr-assign-author.yml @@ -0,0 +1,17 @@ +name: pr-assign-author + +permissions: + contents: read + +on: + pull_request_target: + types: + - opened + - reopened + +jobs: + run: + uses: crazy-max/.github/.github/workflows/pr-assign-author.yml@1b673f36fad86812f538c1df9794904038a23cbf + permissions: + contents: read + pull-requests: write diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 0000000..f30e15f --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,21 @@ +name: publish + +on: + release: + types: + - published + +jobs: + publish: + runs-on: ubuntu-latest + permissions: + contents: read + id-token: write + packages: write + steps: + - + name: Checkout + uses: actions/checkout@v4 + - + name: Publish + uses: actions/publish-immutable-action@v0.0.4 diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 67abff3..ef27758 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -1,14 +1,15 @@ name: test +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + on: push: branches: - 'master' - 'releases/v*' pull_request: - branches: - - 'master' - - 'releases/v*' jobs: test: @@ -16,19 +17,16 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v2 - - - name: Validate - uses: docker/bake-action@v1 - with: - targets: validate + uses: actions/checkout@v4 - name: Test - uses: docker/bake-action@v1 + uses: docker/bake-action@v6 with: + source: . targets: test - name: Upload coverage - uses: codecov/codecov-action@v2 + uses: codecov/codecov-action@v5 with: - file: ./coverage/clover.xml + files: ./coverage/clover.xml + token: ${{ secrets.CODECOV_TOKEN }} diff --git a/.github/workflows/validate.yml b/.github/workflows/validate.yml new file mode 100644 index 0000000..0844f4d --- /dev/null +++ b/.github/workflows/validate.yml @@ -0,0 +1,43 @@ +name: validate + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + +on: + push: + branches: + - 'master' + - 'releases/v*' + pull_request: + +jobs: + prepare: + runs-on: ubuntu-latest + outputs: + targets: ${{ steps.generate.outputs.targets }} + steps: + - + name: Checkout + uses: actions/checkout@v4 + - + name: List targets + id: generate + uses: docker/bake-action/subaction/list-targets@v6 + with: + target: validate + + validate: + runs-on: ubuntu-latest + needs: + - prepare + strategy: + fail-fast: false + matrix: + target: ${{ fromJson(needs.prepare.outputs.targets) }} + steps: + - + name: Validate + uses: docker/bake-action@v6 + with: + targets: ${{ matrix.target }} diff --git a/.gitignore b/.gitignore index 69b201b..4814714 100644 --- a/.gitignore +++ b/.gitignore @@ -1,12 +1,5 @@ -/.dev -node_modules/ -lib +# https://raw.githubusercontent.com/github/gitignore/main/Node.gitignore -# Jetbrains -/.idea -/*.iml - -# Rest of the file pulled from https://github.com/github/gitignore/blob/master/Node.gitignore # Logs logs *.log @@ -14,6 +7,7 @@ npm-debug.log* yarn-debug.log* yarn-error.log* lerna-debug.log* +.pnpm-debug.log* # Diagnostic reports (https://nodejs.org/api/report.html) report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json @@ -24,34 +18,14 @@ pids *.seed *.pid.lock -# Directory for instrumented libs generated by jscoverage/JSCover -lib-cov - # Coverage directory used by tools like istanbul coverage *.lcov -# nyc test coverage -.nyc_output - -# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files) -.grunt - -# Bower dependency directory (https://bower.io/) -bower_components - -# node-waf configuration -.lock-wscript - -# Compiled binary addons (https://nodejs.org/api/addons.html) -build/Release - # Dependency directories +node_modules/ jspm_packages/ -# TypeScript v1 declaration files -typings/ - # TypeScript cache *.tsbuildinfo @@ -61,36 +35,19 @@ typings/ # Optional eslint cache .eslintcache -# Optional REPL history -.node_repl_history - -# Output of 'npm pack' -*.tgz - # Yarn Integrity file .yarn-integrity -# dotenv environment variables file +# dotenv environment variable files .env -.env.test +.env.development.local +.env.test.local +.env.production.local +.env.local -# parcel-bundler cache (https://parceljs.org/) -.cache - -# next.js build output -.next - -# nuxt.js build output -.nuxt - -# vuepress build output -.vuepress/dist - -# Serverless directories -.serverless/ - -# FuseBox cache -.fusebox/ - -# DynamoDB Local files -.dynamodb/ +# yarn v2 +.yarn/cache +.yarn/unplugged +.yarn/build-state.yml +.yarn/install-state.gz +.pnp.* diff --git a/.prettierignore b/.prettierignore new file mode 100644 index 0000000..5b3b81b --- /dev/null +++ b/.prettierignore @@ -0,0 +1,6 @@ +# Dependency directories +node_modules/ +jspm_packages/ + +# yarn v2 +.yarn/ diff --git a/.yarn/plugins/@yarnpkg/plugin-interactive-tools.cjs b/.yarn/plugins/@yarnpkg/plugin-interactive-tools.cjs new file mode 100644 index 0000000..bc2ca19 --- /dev/null +++ b/.yarn/plugins/@yarnpkg/plugin-interactive-tools.cjs @@ -0,0 +1,541 @@ +/* eslint-disable */ +//prettier-ignore +module.exports = { +name: "@yarnpkg/plugin-interactive-tools", +factory: function (require) { +var plugin=(()=>{var bF=Object.create;var D_=Object.defineProperty;var BF=Object.getOwnPropertyDescriptor;var UF=Object.getOwnPropertyNames;var jF=Object.getPrototypeOf,zF=Object.prototype.hasOwnProperty;var hi=(o=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(o,{get:(l,f)=>(typeof require<"u"?require:l)[f]}):o)(function(o){if(typeof require<"u")return require.apply(this,arguments);throw new Error('Dynamic require of "'+o+'" is not supported')});var nt=(o,l)=>()=>(l||o((l={exports:{}}).exports,l),l.exports),HF=(o,l)=>{for(var f in l)D_(o,f,{get:l[f],enumerable:!0})},j8=(o,l,f,h)=>{if(l&&typeof l=="object"||typeof l=="function")for(let E of UF(l))!zF.call(o,E)&&E!==f&&D_(o,E,{get:()=>l[E],enumerable:!(h=BF(l,E))||h.enumerable});return o};var V0=(o,l,f)=>(f=o!=null?bF(jF(o)):{},j8(l||!o||!o.__esModule?D_(f,"default",{value:o,enumerable:!0}):f,o)),qF=o=>j8(D_({},"__esModule",{value:!0}),o);var Py=nt((Xz,H8)=>{"use strict";var z8=Object.getOwnPropertySymbols,WF=Object.prototype.hasOwnProperty,VF=Object.prototype.propertyIsEnumerable;function GF(o){if(o==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(o)}function YF(){try{if(!Object.assign)return!1;var o=new String("abc");if(o[5]="de",Object.getOwnPropertyNames(o)[0]==="5")return!1;for(var l={},f=0;f<10;f++)l["_"+String.fromCharCode(f)]=f;var h=Object.getOwnPropertyNames(l).map(function(t){return l[t]});if(h.join("")!=="0123456789")return!1;var E={};return"abcdefghijklmnopqrst".split("").forEach(function(t){E[t]=t}),Object.keys(Object.assign({},E)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}H8.exports=YF()?Object.assign:function(o,l){for(var f,h=GF(o),E,t=1;t{"use strict";var qE=Py(),Zf=typeof Symbol=="function"&&Symbol.for,Iy=Zf?Symbol.for("react.element"):60103,KF=Zf?Symbol.for("react.portal"):60106,XF=Zf?Symbol.for("react.fragment"):60107,QF=Zf?Symbol.for("react.strict_mode"):60108,JF=Zf?Symbol.for("react.profiler"):60114,ZF=Zf?Symbol.for("react.provider"):60109,$F=Zf?Symbol.for("react.context"):60110,eP=Zf?Symbol.for("react.forward_ref"):60112,tP=Zf?Symbol.for("react.suspense"):60113,nP=Zf?Symbol.for("react.memo"):60115,rP=Zf?Symbol.for("react.lazy"):60116,q8=typeof Symbol=="function"&&Symbol.iterator;function by(o){for(var l="https://reactjs.org/docs/error-decoder.html?invariant="+o,f=1;fw_.length&&w_.push(o)}function jE(o,l,f,h){var E=typeof o;(E==="undefined"||E==="boolean")&&(o=null);var t=!1;if(o===null)t=!0;else switch(E){case"string":case"number":t=!0;break;case"object":switch(o.$$typeof){case Iy:case KF:t=!0}}if(t)return f(h,o,l===""?"."+UE(o,0):l),1;if(t=0,l=l===""?".":l+":",Array.isArray(o))for(var N=0;N{"use strict";var aP="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";tS.exports=aP});var XE=nt((Zz,oS)=>{"use strict";var KE=function(){};process.env.NODE_ENV!=="production"&&(rS=nS(),S_={},iS=Function.call.bind(Object.prototype.hasOwnProperty),KE=function(o){var l="Warning: "+o;typeof console<"u"&&console.error(l);try{throw new Error(l)}catch{}});var rS,S_,iS;function uS(o,l,f,h,E){if(process.env.NODE_ENV!=="production"){for(var t in o)if(iS(o,t)){var N;try{if(typeof o[t]!="function"){var F=Error((h||"React class")+": "+f+" type `"+t+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof o[t]+"`.");throw F.name="Invariant Violation",F}N=o[t](l,t,h,f,null,rS)}catch(x){N=x}if(N&&!(N instanceof Error)&&KE((h||"React class")+": type specification of "+f+" `"+t+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof N+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),N instanceof Error&&!(N.message in S_)){S_[N.message]=!0;var k=E?E():"";KE("Failed "+f+" type: "+N.message+(k!=null?k:""))}}}}uS.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(S_={})};oS.exports=uS});var lS=nt(_u=>{"use strict";process.env.NODE_ENV!=="production"&&function(){"use strict";var o=Py(),l=XE(),f="16.13.1",h=typeof Symbol=="function"&&Symbol.for,E=h?Symbol.for("react.element"):60103,t=h?Symbol.for("react.portal"):60106,N=h?Symbol.for("react.fragment"):60107,F=h?Symbol.for("react.strict_mode"):60108,k=h?Symbol.for("react.profiler"):60114,x=h?Symbol.for("react.provider"):60109,j=h?Symbol.for("react.context"):60110,q=h?Symbol.for("react.concurrent_mode"):60111,V=h?Symbol.for("react.forward_ref"):60112,re=h?Symbol.for("react.suspense"):60113,y=h?Symbol.for("react.suspense_list"):60120,me=h?Symbol.for("react.memo"):60115,De=h?Symbol.for("react.lazy"):60116,ge=h?Symbol.for("react.block"):60121,ae=h?Symbol.for("react.fundamental"):60117,we=h?Symbol.for("react.responder"):60118,he=h?Symbol.for("react.scope"):60119,ve=typeof Symbol=="function"&&Symbol.iterator,ue="@@iterator";function Ae(Q){if(Q===null||typeof Q!="object")return null;var Se=ve&&Q[ve]||Q[ue];return typeof Se=="function"?Se:null}var ze={current:null},We={suspense:null},gt={current:null},_t=/^(.*)[\\\/]/;function Qe(Q,Se,Fe){var Le="";if(Se){var pt=Se.fileName,Yn=pt.replace(_t,"");if(/^index\./.test(Yn)){var Cn=pt.match(_t);if(Cn){var cr=Cn[1];if(cr){var Si=cr.replace(_t,"");Yn=Si+"/"+Yn}}}Le=" (at "+Yn+":"+Se.lineNumber+")"}else Fe&&(Le=" (created by "+Fe+")");return` + in `+(Q||"Unknown")+Le}var ot=1;function Ve(Q){return Q._status===ot?Q._result:null}function Pt(Q,Se,Fe){var Le=Se.displayName||Se.name||"";return Q.displayName||(Le!==""?Fe+"("+Le+")":Fe)}function Jt(Q){if(Q==null)return null;if(typeof Q.tag=="number"&&dt("Received an unexpected object in getComponentName(). This is likely a bug in React. Please file an issue."),typeof Q=="function")return Q.displayName||Q.name||null;if(typeof Q=="string")return Q;switch(Q){case N:return"Fragment";case t:return"Portal";case k:return"Profiler";case F:return"StrictMode";case re:return"Suspense";case y:return"SuspenseList"}if(typeof Q=="object")switch(Q.$$typeof){case j:return"Context.Consumer";case x:return"Context.Provider";case V:return Pt(Q,Q.render,"ForwardRef");case me:return Jt(Q.type);case ge:return Jt(Q.render);case De:{var Se=Q,Fe=Ve(Se);if(Fe)return Jt(Fe);break}}return null}var it={},J=null;function ce(Q){J=Q}it.getCurrentStack=null,it.getStackAddendum=function(){var Q="";if(J){var Se=Jt(J.type),Fe=J._owner;Q+=Qe(Se,J._source,Fe&&Jt(Fe.type))}var Le=it.getCurrentStack;return Le&&(Q+=Le()||""),Q};var Re={current:!1},le={ReactCurrentDispatcher:ze,ReactCurrentBatchConfig:We,ReactCurrentOwner:gt,IsSomeRendererActing:Re,assign:o};o(le,{ReactDebugCurrentFrame:it,ReactComponentTreeHook:{}});function He(Q){{for(var Se=arguments.length,Fe=new Array(Se>1?Se-1:0),Le=1;Le1?Se-1:0),Le=1;Le0&&typeof Fe[Fe.length-1]=="string"&&Fe[Fe.length-1].indexOf(` + in`)===0;if(!Le){var pt=le.ReactDebugCurrentFrame,Yn=pt.getStackAddendum();Yn!==""&&(Se+="%s",Fe=Fe.concat([Yn]))}var Cn=Fe.map(function(Ou){return""+Ou});Cn.unshift("Warning: "+Se),Function.prototype.apply.call(console[Q],console,Cn);try{var cr=0,Si="Warning: "+Se.replace(/%s/g,function(){return Fe[cr++]});throw new Error(Si)}catch{}}}var nn={};function an(Q,Se){{var Fe=Q.constructor,Le=Fe&&(Fe.displayName||Fe.name)||"ReactClass",pt=Le+"."+Se;if(nn[pt])return;dt("Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.",Se,Le),nn[pt]=!0}}var On={isMounted:function(Q){return!1},enqueueForceUpdate:function(Q,Se,Fe){an(Q,"forceUpdate")},enqueueReplaceState:function(Q,Se,Fe,Le){an(Q,"replaceState")},enqueueSetState:function(Q,Se,Fe,Le){an(Q,"setState")}},lr={};Object.freeze(lr);function ln(Q,Se,Fe){this.props=Q,this.context=Se,this.refs=lr,this.updater=Fe||On}ln.prototype.isReactComponent={},ln.prototype.setState=function(Q,Se){if(!(typeof Q=="object"||typeof Q=="function"||Q==null))throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,Q,Se,"setState")},ln.prototype.forceUpdate=function(Q){this.updater.enqueueForceUpdate(this,Q,"forceUpdate")};{var Vt={isMounted:["isMounted","Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],replaceState:["replaceState","Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]},Er=function(Q,Se){Object.defineProperty(ln.prototype,Q,{get:function(){He("%s(...) is deprecated in plain JavaScript React classes. %s",Se[0],Se[1])}})};for(var S in Vt)Vt.hasOwnProperty(S)&&Er(S,Vt[S])}function zt(){}zt.prototype=ln.prototype;function Xn(Q,Se,Fe){this.props=Q,this.context=Se,this.refs=lr,this.updater=Fe||On}var vr=Xn.prototype=new zt;vr.constructor=Xn,o(vr,ln.prototype),vr.isPureReactComponent=!0;function jr(){var Q={current:null};return Object.seal(Q),Q}var fr=Object.prototype.hasOwnProperty,zr={key:!0,ref:!0,__self:!0,__source:!0},Xt,Du,c0;c0={};function Ao(Q){if(fr.call(Q,"ref")){var Se=Object.getOwnPropertyDescriptor(Q,"ref").get;if(Se&&Se.isReactWarning)return!1}return Q.ref!==void 0}function Jo(Q){if(fr.call(Q,"key")){var Se=Object.getOwnPropertyDescriptor(Q,"key").get;if(Se&&Se.isReactWarning)return!1}return Q.key!==void 0}function Fs(Q,Se){var Fe=function(){Xt||(Xt=!0,dt("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://fb.me/react-special-props)",Se))};Fe.isReactWarning=!0,Object.defineProperty(Q,"key",{get:Fe,configurable:!0})}function Zo(Q,Se){var Fe=function(){Du||(Du=!0,dt("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://fb.me/react-special-props)",Se))};Fe.isReactWarning=!0,Object.defineProperty(Q,"ref",{get:Fe,configurable:!0})}function $o(Q){if(typeof Q.ref=="string"&>.current&&Q.__self&>.current.stateNode!==Q.__self){var Se=Jt(gt.current.type);c0[Se]||(dt('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://fb.me/react-strict-mode-string-ref',Jt(gt.current.type),Q.ref),c0[Se]=!0)}}var qt=function(Q,Se,Fe,Le,pt,Yn,Cn){var cr={$$typeof:E,type:Q,key:Se,ref:Fe,props:Cn,_owner:Yn};return cr._store={},Object.defineProperty(cr._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(cr,"_self",{configurable:!1,enumerable:!1,writable:!1,value:Le}),Object.defineProperty(cr,"_source",{configurable:!1,enumerable:!1,writable:!1,value:pt}),Object.freeze&&(Object.freeze(cr.props),Object.freeze(cr)),cr};function xi(Q,Se,Fe){var Le,pt={},Yn=null,Cn=null,cr=null,Si=null;if(Se!=null){Ao(Se)&&(Cn=Se.ref,$o(Se)),Jo(Se)&&(Yn=""+Se.key),cr=Se.__self===void 0?null:Se.__self,Si=Se.__source===void 0?null:Se.__source;for(Le in Se)fr.call(Se,Le)&&!zr.hasOwnProperty(Le)&&(pt[Le]=Se[Le])}var Ou=arguments.length-2;if(Ou===1)pt.children=Fe;else if(Ou>1){for(var ju=Array(Ou),zu=0;zu1){for(var wu=Array(zu),Ti=0;Ti is not supported and will be removed in a future major release. Did you mean to render instead?")),Fe.Provider},set:function(Cn){Fe.Provider=Cn}},_currentValue:{get:function(){return Fe._currentValue},set:function(Cn){Fe._currentValue=Cn}},_currentValue2:{get:function(){return Fe._currentValue2},set:function(Cn){Fe._currentValue2=Cn}},_threadCount:{get:function(){return Fe._threadCount},set:function(Cn){Fe._threadCount=Cn}},Consumer:{get:function(){return Le||(Le=!0,dt("Rendering is not supported and will be removed in a future major release. Did you mean to render instead?")),Fe.Consumer}}}),Fe.Consumer=Yn}return Fe._currentRenderer=null,Fe._currentRenderer2=null,Fe}function Wt(Q){var Se={$$typeof:De,_ctor:Q,_status:-1,_result:null};{var Fe,Le;Object.defineProperties(Se,{defaultProps:{configurable:!0,get:function(){return Fe},set:function(pt){dt("React.lazy(...): It is not supported to assign `defaultProps` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."),Fe=pt,Object.defineProperty(Se,"defaultProps",{enumerable:!0})}},propTypes:{configurable:!0,get:function(){return Le},set:function(pt){dt("React.lazy(...): It is not supported to assign `propTypes` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."),Le=pt,Object.defineProperty(Se,"propTypes",{enumerable:!0})}}})}return Se}function Ru(Q){return Q!=null&&Q.$$typeof===me?dt("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):typeof Q!="function"?dt("forwardRef requires a render function but was given %s.",Q===null?"null":typeof Q):Q.length!==0&&Q.length!==2&&dt("forwardRef render functions accept exactly two parameters: props and ref. %s",Q.length===1?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),Q!=null&&(Q.defaultProps!=null||Q.propTypes!=null)&&dt("forwardRef render functions do not support propTypes or defaultProps. Did you accidentally pass a React component?"),{$$typeof:V,render:Q}}function eu(Q){return typeof Q=="string"||typeof Q=="function"||Q===N||Q===q||Q===k||Q===F||Q===re||Q===y||typeof Q=="object"&&Q!==null&&(Q.$$typeof===De||Q.$$typeof===me||Q.$$typeof===x||Q.$$typeof===j||Q.$$typeof===V||Q.$$typeof===ae||Q.$$typeof===we||Q.$$typeof===he||Q.$$typeof===ge)}function Q0(Q,Se){return eu(Q)||dt("memo: The first argument must be a component. Instead received: %s",Q===null?"null":typeof Q),{$$typeof:me,type:Q,compare:Se===void 0?null:Se}}function Yi(){var Q=ze.current;if(Q===null)throw Error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons: +1. You might have mismatching versions of React and the renderer (such as React DOM) +2. You might be breaking the Rules of Hooks +3. You might have more than one copy of React in the same app +See https://fb.me/react-invalid-hook-call for tips about how to debug and fix this problem.`);return Q}function Xl(Q,Se){var Fe=Yi();if(Se!==void 0&&dt("useContext() second argument is reserved for future use in React. Passing it is not supported. You passed: %s.%s",Se,typeof Se=="number"&&Array.isArray(arguments[2])?` + +Did you call array.map(useContext)? Calling Hooks inside a loop is not supported. Learn more at https://fb.me/rules-of-hooks`:""),Q._context!==void 0){var Le=Q._context;Le.Consumer===Q?dt("Calling useContext(Context.Consumer) is not supported, may cause bugs, and will be removed in a future major release. Did you mean to call useContext(Context) instead?"):Le.Provider===Q&&dt("Calling useContext(Context.Provider) is not supported. Did you mean to call useContext(Context) instead?")}return Fe.useContext(Q,Se)}function ko(Q){var Se=Yi();return Se.useState(Q)}function li(Q,Se,Fe){var Le=Yi();return Le.useReducer(Q,Se,Fe)}function ao(Q){var Se=Yi();return Se.useRef(Q)}function Ql(Q,Se){var Fe=Yi();return Fe.useEffect(Q,Se)}function No(Q,Se){var Fe=Yi();return Fe.useLayoutEffect(Q,Se)}function Is(Q,Se){var Fe=Yi();return Fe.useCallback(Q,Se)}function $n(Q,Se){var Fe=Yi();return Fe.useMemo(Q,Se)}function tl(Q,Se,Fe){var Le=Yi();return Le.useImperativeHandle(Q,Se,Fe)}function fo(Q,Se){{var Fe=Yi();return Fe.useDebugValue(Q,Se)}}var I0;I0=!1;function Sl(){if(gt.current){var Q=Jt(gt.current.type);if(Q)return` + +Check the render method of \``+Q+"`."}return""}function Lo(Q){if(Q!==void 0){var Se=Q.fileName.replace(/^.*[\\\/]/,""),Fe=Q.lineNumber;return` + +Check your code at `+Se+":"+Fe+"."}return""}function St(Q){return Q!=null?Lo(Q.__source):""}var Bt={};function Hn(Q){var Se=Sl();if(!Se){var Fe=typeof Q=="string"?Q:Q.displayName||Q.name;Fe&&(Se=` + +Check the top-level render call using <`+Fe+">.")}return Se}function qr(Q,Se){if(!(!Q._store||Q._store.validated||Q.key!=null)){Q._store.validated=!0;var Fe=Hn(Se);if(!Bt[Fe]){Bt[Fe]=!0;var Le="";Q&&Q._owner&&Q._owner!==gt.current&&(Le=" It was passed a child from "+Jt(Q._owner.type)+"."),ce(Q),dt('Each child in a list should have a unique "key" prop.%s%s See https://fb.me/react-warning-keys for more information.',Fe,Le),ce(null)}}}function Ki(Q,Se){if(typeof Q=="object"){if(Array.isArray(Q))for(var Fe=0;Fe",pt=" Did you accidentally export a JSX literal instead of a component?"):Cn=typeof Q,dt("React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",Cn,pt)}var cr=xi.apply(this,arguments);if(cr==null)return cr;if(Le)for(var Si=2;Si{"use strict";process.env.NODE_ENV==="production"?QE.exports=eS():QE.exports=lS()});var sS=nt((Wv,By)=>{(function(){var o,l="4.17.21",f=200,h="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",E="Expected a function",t="Invalid `variable` option passed into `_.template`",N="__lodash_hash_undefined__",F=500,k="__lodash_placeholder__",x=1,j=2,q=4,V=1,re=2,y=1,me=2,De=4,ge=8,ae=16,we=32,he=64,ve=128,ue=256,Ae=512,ze=30,We="...",gt=800,_t=16,Qe=1,ot=2,Ve=3,Pt=1/0,Jt=9007199254740991,it=17976931348623157e292,J=0/0,ce=4294967295,Re=ce-1,le=ce>>>1,He=[["ary",ve],["bind",y],["bindKey",me],["curry",ge],["curryRight",ae],["flip",Ae],["partial",we],["partialRight",he],["rearg",ue]],dt="[object Arguments]",At="[object Array]",nn="[object AsyncFunction]",an="[object Boolean]",On="[object Date]",lr="[object DOMException]",ln="[object Error]",Vt="[object Function]",Er="[object GeneratorFunction]",S="[object Map]",zt="[object Number]",Xn="[object Null]",vr="[object Object]",jr="[object Promise]",fr="[object Proxy]",zr="[object RegExp]",Xt="[object Set]",Du="[object String]",c0="[object Symbol]",Ao="[object Undefined]",Jo="[object WeakMap]",Fs="[object WeakSet]",Zo="[object ArrayBuffer]",$o="[object DataView]",qt="[object Float32Array]",xi="[object Float64Array]",lu="[object Int8Array]",vi="[object Int16Array]",Dr="[object Int32Array]",el="[object Uint8Array]",Y0="[object Uint8ClampedArray]",Bu="[object Uint16Array]",K0="[object Uint32Array]",Kr=/\b__p \+= '';/g,Oo=/\b(__p \+=) '' \+/g,Mo=/(__e\(.*?\)|\b__t\)) \+\n'';/g,F0=/&(?:amp|lt|gt|quot|#39);/g,su=/[&<>"']/g,ki=RegExp(F0.source),Ps=RegExp(su.source),Kl=/<%-([\s\S]+?)%>/g,P0=/<%([\s\S]+?)%>/g,d0=/<%=([\s\S]+?)%>/g,Hr=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Ri=/^\w*$/,X0=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,mi=/[\\^$.*+?()[\]{}|]/g,en=RegExp(mi.source),In=/^\s+/,Ai=/\s/,yi=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Wt=/\{\n\/\* \[wrapped with (.+)\] \*/,Ru=/,? & /,eu=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Q0=/[()=,{}\[\]\/\s]/,Yi=/\\(\\)?/g,Xl=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,ko=/\w*$/,li=/^[-+]0x[0-9a-f]+$/i,ao=/^0b[01]+$/i,Ql=/^\[object .+?Constructor\]$/,No=/^0o[0-7]+$/i,Is=/^(?:0|[1-9]\d*)$/,$n=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,tl=/($^)/,fo=/['\n\r\u2028\u2029\\]/g,I0="\\ud800-\\udfff",Sl="\\u0300-\\u036f",Lo="\\ufe20-\\ufe2f",St="\\u20d0-\\u20ff",Bt=Sl+Lo+St,Hn="\\u2700-\\u27bf",qr="a-z\\xdf-\\xf6\\xf8-\\xff",Ki="\\xac\\xb1\\xd7\\xf7",Xr="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Au="\\u2000-\\u206f",p0=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Ni="A-Z\\xc0-\\xd6\\xd8-\\xde",h0="\\ufe0e\\ufe0f",hs=Ki+Xr+Au+p0,Ct="['\u2019]",co="["+I0+"]",nl="["+hs+"]",Jl="["+Bt+"]",Uu="\\d+",vs="["+Hn+"]",b0="["+qr+"]",Q="[^"+I0+hs+Uu+Hn+qr+Ni+"]",Se="\\ud83c[\\udffb-\\udfff]",Fe="(?:"+Jl+"|"+Se+")",Le="[^"+I0+"]",pt="(?:\\ud83c[\\udde6-\\uddff]){2}",Yn="[\\ud800-\\udbff][\\udc00-\\udfff]",Cn="["+Ni+"]",cr="\\u200d",Si="(?:"+b0+"|"+Q+")",Ou="(?:"+Cn+"|"+Q+")",ju="(?:"+Ct+"(?:d|ll|m|re|s|t|ve))?",zu="(?:"+Ct+"(?:D|LL|M|RE|S|T|VE))?",wu=Fe+"?",Ti="["+h0+"]?",Fo="(?:"+cr+"(?:"+[Le,pt,Yn].join("|")+")"+Ti+wu+")*",Mu="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",po="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Hu=Ti+wu+Fo,Pa="(?:"+[vs,pt,Yn].join("|")+")"+Hu,v0="(?:"+[Le+Jl+"?",Jl,pt,Yn,co].join("|")+")",ia=RegExp(Ct,"g"),J0=RegExp(Jl,"g"),ua=RegExp(Se+"(?="+Se+")|"+v0+Hu,"g"),Ia=RegExp([Cn+"?"+b0+"+"+ju+"(?="+[nl,Cn,"$"].join("|")+")",Ou+"+"+zu+"(?="+[nl,Cn+Si,"$"].join("|")+")",Cn+"?"+Si+"+"+ju,Cn+"+"+zu,po,Mu,Uu,Pa].join("|"),"g"),ms=RegExp("["+cr+I0+Bt+h0+"]"),S0=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Qn=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],ac=-1,si={};si[qt]=si[xi]=si[lu]=si[vi]=si[Dr]=si[el]=si[Y0]=si[Bu]=si[K0]=!0,si[dt]=si[At]=si[Zo]=si[an]=si[$o]=si[On]=si[ln]=si[Vt]=si[S]=si[zt]=si[vr]=si[zr]=si[Xt]=si[Du]=si[Jo]=!1;var Jr={};Jr[dt]=Jr[At]=Jr[Zo]=Jr[$o]=Jr[an]=Jr[On]=Jr[qt]=Jr[xi]=Jr[lu]=Jr[vi]=Jr[Dr]=Jr[S]=Jr[zt]=Jr[vr]=Jr[zr]=Jr[Xt]=Jr[Du]=Jr[c0]=Jr[el]=Jr[Y0]=Jr[Bu]=Jr[K0]=!0,Jr[ln]=Jr[Vt]=Jr[Jo]=!1;var Zl={\u00C0:"A",\u00C1:"A",\u00C2:"A",\u00C3:"A",\u00C4:"A",\u00C5:"A",\u00E0:"a",\u00E1:"a",\u00E2:"a",\u00E3:"a",\u00E4:"a",\u00E5:"a",\u00C7:"C",\u00E7:"c",\u00D0:"D",\u00F0:"d",\u00C8:"E",\u00C9:"E",\u00CA:"E",\u00CB:"E",\u00E8:"e",\u00E9:"e",\u00EA:"e",\u00EB:"e",\u00CC:"I",\u00CD:"I",\u00CE:"I",\u00CF:"I",\u00EC:"i",\u00ED:"i",\u00EE:"i",\u00EF:"i",\u00D1:"N",\u00F1:"n",\u00D2:"O",\u00D3:"O",\u00D4:"O",\u00D5:"O",\u00D6:"O",\u00D8:"O",\u00F2:"o",\u00F3:"o",\u00F4:"o",\u00F5:"o",\u00F6:"o",\u00F8:"o",\u00D9:"U",\u00DA:"U",\u00DB:"U",\u00DC:"U",\u00F9:"u",\u00FA:"u",\u00FB:"u",\u00FC:"u",\u00DD:"Y",\u00FD:"y",\u00FF:"y",\u00C6:"Ae",\u00E6:"ae",\u00DE:"Th",\u00FE:"th",\u00DF:"ss",\u0100:"A",\u0102:"A",\u0104:"A",\u0101:"a",\u0103:"a",\u0105:"a",\u0106:"C",\u0108:"C",\u010A:"C",\u010C:"C",\u0107:"c",\u0109:"c",\u010B:"c",\u010D:"c",\u010E:"D",\u0110:"D",\u010F:"d",\u0111:"d",\u0112:"E",\u0114:"E",\u0116:"E",\u0118:"E",\u011A:"E",\u0113:"e",\u0115:"e",\u0117:"e",\u0119:"e",\u011B:"e",\u011C:"G",\u011E:"G",\u0120:"G",\u0122:"G",\u011D:"g",\u011F:"g",\u0121:"g",\u0123:"g",\u0124:"H",\u0126:"H",\u0125:"h",\u0127:"h",\u0128:"I",\u012A:"I",\u012C:"I",\u012E:"I",\u0130:"I",\u0129:"i",\u012B:"i",\u012D:"i",\u012F:"i",\u0131:"i",\u0134:"J",\u0135:"j",\u0136:"K",\u0137:"k",\u0138:"k",\u0139:"L",\u013B:"L",\u013D:"L",\u013F:"L",\u0141:"L",\u013A:"l",\u013C:"l",\u013E:"l",\u0140:"l",\u0142:"l",\u0143:"N",\u0145:"N",\u0147:"N",\u014A:"N",\u0144:"n",\u0146:"n",\u0148:"n",\u014B:"n",\u014C:"O",\u014E:"O",\u0150:"O",\u014D:"o",\u014F:"o",\u0151:"o",\u0154:"R",\u0156:"R",\u0158:"R",\u0155:"r",\u0157:"r",\u0159:"r",\u015A:"S",\u015C:"S",\u015E:"S",\u0160:"S",\u015B:"s",\u015D:"s",\u015F:"s",\u0161:"s",\u0162:"T",\u0164:"T",\u0166:"T",\u0163:"t",\u0165:"t",\u0167:"t",\u0168:"U",\u016A:"U",\u016C:"U",\u016E:"U",\u0170:"U",\u0172:"U",\u0169:"u",\u016B:"u",\u016D:"u",\u016F:"u",\u0171:"u",\u0173:"u",\u0174:"W",\u0175:"w",\u0176:"Y",\u0177:"y",\u0178:"Y",\u0179:"Z",\u017B:"Z",\u017D:"Z",\u017A:"z",\u017C:"z",\u017E:"z",\u0132:"IJ",\u0133:"ij",\u0152:"Oe",\u0153:"oe",\u0149:"'n",\u017F:"s"},oa={"&":"&","<":"<",">":">",'"':""","'":"'"},pf={"&":"&","<":"<",">":">",""":'"',"'":"'"},bs={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},ba=parseFloat,Bs=parseInt,m0=typeof global=="object"&&global&&global.Object===Object&&global,Us=typeof self=="object"&&self&&self.Object===Object&&self,zi=m0||Us||Function("return this")(),U=typeof Wv=="object"&&Wv&&!Wv.nodeType&&Wv,H=U&&typeof By=="object"&&By&&!By.nodeType&&By,Y=H&&H.exports===U,ee=Y&&m0.process,Ce=function(){try{var xe=H&&H.require&&H.require("util").types;return xe||ee&&ee.binding&&ee.binding("util")}catch{}}(),_e=Ce&&Ce.isArrayBuffer,Oe=Ce&&Ce.isDate,$=Ce&&Ce.isMap,Ne=Ce&&Ce.isRegExp,Je=Ce&&Ce.isSet,vt=Ce&&Ce.isTypedArray;function oe(xe,tt,Ke){switch(Ke.length){case 0:return xe.call(tt);case 1:return xe.call(tt,Ke[0]);case 2:return xe.call(tt,Ke[0],Ke[1]);case 3:return xe.call(tt,Ke[0],Ke[1],Ke[2])}return xe.apply(tt,Ke)}function qe(xe,tt,Ke,Yt){for(var Kt=-1,pr=xe==null?0:xe.length;++Kt-1}function rn(xe,tt,Ke){for(var Yt=-1,Kt=xe==null?0:xe.length;++Yt-1;);return Ke}function Tl(xe,tt){for(var Ke=xe.length;Ke--&&wt(tt,xe[Ke],0)>-1;);return Ke}function vf(xe,tt){for(var Ke=xe.length,Yt=0;Ke--;)xe[Ke]===tt&&++Yt;return Yt}var Io=Jn(Zl),ys=Jn(oa);function js(xe){return"\\"+bs[xe]}function bo(xe,tt){return xe==null?o:xe[tt]}function Bo(xe){return ms.test(xe)}function gs(xe){return S0.test(xe)}function Xu(xe){for(var tt,Ke=[];!(tt=xe.next()).done;)Ke.push(tt.value);return Ke}function Su(xe){var tt=-1,Ke=Array(xe.size);return xe.forEach(function(Yt,Kt){Ke[++tt]=[Kt,Yt]}),Ke}function _i(xe,tt){return function(Ke){return xe(tt(Ke))}}function C0(xe,tt){for(var Ke=-1,Yt=xe.length,Kt=0,pr=[];++Ke-1}function fa(p,m){var R=this.__data__,I=ts(R,p);return I<0?(++this.size,R.push([p,m])):R[I][1]=m,this}io.prototype.clear=Ba,io.prototype.delete=_f,io.prototype.get=fc,io.prototype.has=Ds,io.prototype.set=fa;function U0(p){var m=-1,R=p==null?0:p.length;for(this.clear();++m=m?p:m)),p}function j0(p,m,R,I,W,te){var pe,Ee=m&x,be=m&j,Dt=m&q;if(R&&(pe=W?R(p,I,W,te):R(p)),pe!==o)return pe;if(!Iu(p))return p;var Tt=tr(p);if(Tt){if(pe=Cs(p),!Ee)return iu(p,pe)}else{var Ot=Pu(p),on=Ot==Vt||Ot==Er;if(Js(p))return vc(p,Ee);if(Ot==vr||Ot==dt||on&&!W){if(pe=be||on?{}:Ec(p),!Ee)return be?ns(p,ol(pe,p)):u0(p,Ef(pe,p))}else{if(!Jr[Ot])return W?p:{};pe=Th(p,Ot,Ee)}}te||(te=new ul);var Mn=te.get(p);if(Mn)return Mn;te.set(p,pe),Pd(p)?p.forEach(function(ar){pe.add(j0(ar,m,R,ar,p,te))}):_p(p)&&p.forEach(function(ar,ri){pe.set(ri,j0(ar,m,R,ri,p,te))});var rr=Dt?be?sr:r1:be?dn:N0,br=Tt?o:rr(p);return rt(br||p,function(ar,ri){br&&(ri=ar,ar=p[ri]),Ss(pe,ri,j0(ar,m,R,ri,p,te))}),pe}function Df(p){var m=N0(p);return function(R){return Wc(R,p,m)}}function Wc(p,m,R){var I=R.length;if(p==null)return!I;for(p=bn(p);I--;){var W=R[I],te=m[W],pe=p[W];if(pe===o&&!(W in p)||!te(pe))return!1}return!0}function dc(p,m,R){if(typeof p!="function")throw new $r(E);return Qa(function(){p.apply(o,R)},m)}function Ol(p,m,R,I){var W=-1,te=sn,pe=!0,Ee=p.length,be=[],Dt=m.length;if(!Ee)return be;R&&(m=Ft(m,gi(R))),I?(te=rn,pe=!1):m.length>=f&&(te=rl,pe=!1,m=new yo(m));e:for(;++WW?0:W+R),I=I===o||I>W?W:Mr(I),I<0&&(I+=W),I=R>I?0:Dp(I);R0&&R(Ee)?m>1?Wi(Ee,m-1,R,I,W):Dn(W,Ee):I||(W[W.length]=Ee)}return W}var _=yc(),g=yc(!0);function A(p,m){return p&&_(p,m,N0)}function P(p,m){return p&&g(p,m,N0)}function B(p,m){return bt(m,function(R){return xa(p[R])})}function Z(p,m){m=Ws(m,p);for(var R=0,I=m.length;p!=null&&Rm}function Nt(p,m){return p!=null&&ui.call(p,m)}function xr(p,m){return p!=null&&m in bn(p)}function r0(p,m,R){return p>=Kn(m,R)&&p=120&&Tt.length>=120)?new yo(pe&&Tt):o}Tt=p[0];var Ot=-1,on=Ee[0];e:for(;++Ot-1;)Ee!==p&&O0.call(Ee,be,1),O0.call(p,be,1);return p}function sd(p,m){for(var R=p?m.length:0,I=R-1;R--;){var W=m[R];if(R==I||W!==te){var te=W;Do(W)?O0.call(p,W,1):x2(p,W)}}return p}function ad(p,m){return p+Es(_0()*(m-p+1))}function S2(p,m,R,I){for(var W=-1,te=ei(Zu((m-p)/(R||1)),0),pe=Ke(te);te--;)pe[I?te:++W]=p,p+=R;return pe}function Yc(p,m){var R="";if(!p||m<1||m>Jt)return R;do m%2&&(R+=p),m=Es(m/2),m&&(p+=p);while(m);return R}function Ir(p,m){return l1(L2(p,m,l0),p+"")}function fd(p){return za(Nc(p))}function cd(p,m){var R=Nc(p);return wc(R,n0(m,0,R.length))}function Ga(p,m,R,I){if(!Iu(p))return p;m=Ws(m,p);for(var W=-1,te=m.length,pe=te-1,Ee=p;Ee!=null&&++WW?0:W+m),R=R>W?W:R,R<0&&(R+=W),W=m>R?0:R-m>>>0,m>>>=0;for(var te=Ke(W);++I>>1,pe=p[te];pe!==null&&!Bl(pe)&&(R?pe<=m:pe=f){var Dt=m?null:am(p);if(Dt)return $0(Dt);pe=!1,W=rl,be=new yo}else be=m?[]:Ee;e:for(;++I=I?p:sl(p,m,R)}var Zc=_s||function(p){return zi.clearTimeout(p)};function vc(p,m){if(m)return p.slice();var R=p.length,I=qi?qi(R):new p.constructor(R);return p.copy(I),I}function mc(p){var m=new p.constructor(p.byteLength);return new A0(m).set(new A0(p)),m}function pd(p,m){var R=m?mc(p.buffer):p.buffer;return new p.constructor(R,p.byteOffset,p.byteLength)}function Eh(p){var m=new p.constructor(p.source,ko.exec(p));return m.lastIndex=p.lastIndex,m}function Tf(p){return Ar?bn(Ar.call(p)):{}}function $c(p,m){var R=m?mc(p.buffer):p.buffer;return new p.constructor(R,p.byteOffset,p.length)}function Dh(p,m){if(p!==m){var R=p!==o,I=p===null,W=p===p,te=Bl(p),pe=m!==o,Ee=m===null,be=m===m,Dt=Bl(m);if(!Ee&&!Dt&&!te&&p>m||te&&pe&&be&&!Ee&&!Dt||I&&pe&&be||!R&&be||!W)return 1;if(!I&&!te&&!Dt&&p=Ee)return be;var Dt=R[I];return be*(Dt=="desc"?-1:1)}}return p.index-m.index}function Vs(p,m,R,I){for(var W=-1,te=p.length,pe=R.length,Ee=-1,be=m.length,Dt=ei(te-pe,0),Tt=Ke(be+Dt),Ot=!I;++Ee1?R[W-1]:o,pe=W>2?R[2]:o;for(te=p.length>3&&typeof te=="function"?(W--,te):o,pe&&lo(R[0],R[1],pe)&&(te=W<3?o:te,W=1),m=bn(m);++I-1?W[te?m[pe]:pe]:o}}function t1(p){return cl(function(m){var R=m.length,I=R,W=Wr.prototype.thru;for(p&&m.reverse();I--;){var te=m[I];if(typeof te!="function")throw new $r(E);if(W&&!pe&&qo(te)=="wrapper")var pe=new Wr([],!0)}for(I=pe?I:R;++I1&&fi.reverse(),Tt&&beEe))return!1;var Dt=te.get(p),Tt=te.get(m);if(Dt&&Tt)return Dt==m&&Tt==p;var Ot=-1,on=!0,Mn=R&re?new yo:o;for(te.set(p,m),te.set(m,p);++Ot1?"& ":"")+m[I],m=m.join(R>2?", ":" "),p.replace(yi,`{ +/* [wrapped with `+m+`] */ +`)}function is(p){return tr(p)||pl(p)||!!(vo&&p&&p[vo])}function Do(p,m){var R=typeof p;return m=m==null?Jt:m,!!m&&(R=="number"||R!="symbol"&&Is.test(p))&&p>-1&&p%1==0&&p0){if(++m>=gt)return arguments[0]}else m=0;return p.apply(o,arguments)}}function wc(p,m){var R=-1,I=p.length,W=I-1;for(m=m===o?I:m;++R1?p[m-1]:o;return R=typeof R=="function"?(p.pop(),R):o,wd(p,R)});function zh(p){var m=K(p);return m.__chain__=!0,m}function Hh(p,m){return m(p),p}function g1(p,m){return m(p)}var J2=cl(function(p){var m=p.length,R=m?p[0]:0,I=this.__wrapped__,W=function(te){return qa(te,p)};return m>1||this.__actions__.length||!(I instanceof ft)||!Do(R)?this.thru(W):(I=I.slice(R,+R+(m?1:0)),I.__actions__.push({func:g1,args:[W],thisArg:o}),new Wr(I,this.__chain__).thru(function(te){return m&&!te.length&&te.push(o),te}))});function qh(){return zh(this)}function Z2(){return new Wr(this.value(),this.__chain__)}function Wh(){this.__values__===o&&(this.__values__=fv(this.value()));var p=this.__index__>=this.__values__.length,m=p?o:this.__values__[this.__index__++];return{done:p,value:m}}function _m(){return this}function Em(p){for(var m,R=this;R instanceof ni;){var I=P2(R);I.__index__=0,I.__values__=o,m?W.__wrapped__=I:m=I;var W=I;R=R.__wrapped__}return W.__wrapped__=p,m}function Pf(){var p=this.__wrapped__;if(p instanceof ft){var m=p;return this.__actions__.length&&(m=new ft(this)),m=m.reverse(),m.__actions__.push({func:g1,args:[W2],thisArg:o}),new Wr(m,this.__chain__)}return this.thru(W2)}function If(){return _h(this.__wrapped__,this.__actions__)}var Sd=Ya(function(p,m,R){ui.call(p,R)?++p[R]:Vu(p,R,1)});function Dm(p,m,R){var I=tr(p)?kt:ud;return R&&lo(p,m,R)&&(m=o),I(p,Vn(m,3))}function $2(p,m){var R=tr(p)?bt:Vc;return R(p,Vn(m,3))}var Td=Nl(U2),ep=Nl(a1);function Vh(p,m){return Wi(_1(p,m),1)}function tp(p,m){return Wi(_1(p,m),Pt)}function Gh(p,m,R){return R=R===o?1:Mr(R),Wi(_1(p,m),R)}function Yh(p,m){var R=tr(p)?rt:Ts;return R(p,Vn(m,3))}function np(p,m){var R=tr(p)?xt:da;return R(p,Vn(m,3))}var wm=Ya(function(p,m,R){ui.call(p,R)?p[R].push(m):Vu(p,R,[m])});function Sm(p,m,R,I){p=hl(p)?p:Nc(p),R=R&&!I?Mr(R):0;var W=p.length;return R<0&&(R=ei(W+R,0)),S1(p)?R<=W&&p.indexOf(m,R)>-1:!!W&&wt(p,m,R)>-1}var Tm=Ir(function(p,m,R){var I=-1,W=typeof m=="function",te=hl(p)?Ke(p.length):[];return Ts(p,function(pe){te[++I]=W?oe(m,pe,R):Ml(pe,m,R)}),te}),Kh=Ya(function(p,m,R){Vu(p,R,m)});function _1(p,m){var R=tr(p)?Ft:D2;return R(p,Vn(m,3))}function Cm(p,m,R,I){return p==null?[]:(tr(m)||(m=m==null?[]:[m]),R=I?o:R,tr(R)||(R=R==null?[]:[R]),go(p,m,R))}var rp=Ya(function(p,m,R){p[R?0:1].push(m)},function(){return[[],[]]});function ip(p,m,R){var I=tr(p)?dr:wr,W=arguments.length<3;return I(p,Vn(m,4),R,W,Ts)}function xm(p,m,R){var I=tr(p)?er:wr,W=arguments.length<3;return I(p,Vn(m,4),R,W,da)}function Rm(p,m){var R=tr(p)?bt:Vc;return R(p,Rd(Vn(m,3)))}function Xh(p){var m=tr(p)?za:fd;return m(p)}function Am(p,m,R){(R?lo(p,m,R):m===o)?m=1:m=Mr(m);var I=tr(p)?Ha:cd;return I(p,m)}function Om(p){var m=tr(p)?ca:ll;return m(p)}function up(p){if(p==null)return 0;if(hl(p))return S1(p)?tu(p):p.length;var m=Pu(p);return m==S||m==Xt?p.size:Wa(p).length}function op(p,m,R){var I=tr(p)?Cr:yh;return R&&lo(p,m,R)&&(m=o),I(p,Vn(m,3))}var Ta=Ir(function(p,m){if(p==null)return[];var R=m.length;return R>1&&lo(p,m[0],m[1])?m=[]:R>2&&lo(m[0],m[1],m[2])&&(m=[m[0]]),go(p,Wi(m,1),[])}),E1=aa||function(){return zi.Date.now()};function lp(p,m){if(typeof m!="function")throw new $r(E);return p=Mr(p),function(){if(--p<1)return m.apply(this,arguments)}}function Qh(p,m,R){return m=R?o:m,m=p&&m==null?p.length:m,hn(p,ve,o,o,o,o,m)}function Cd(p,m){var R;if(typeof m!="function")throw new $r(E);return p=Mr(p),function(){return--p>0&&(R=m.apply(this,arguments)),p<=1&&(m=o),R}}var D1=Ir(function(p,m,R){var I=y;if(R.length){var W=C0(R,yr(D1));I|=we}return hn(p,I,m,R,W)}),Jh=Ir(function(p,m,R){var I=y|me;if(R.length){var W=C0(R,yr(Jh));I|=we}return hn(m,I,p,R,W)});function sp(p,m,R){m=R?o:m;var I=hn(p,ge,o,o,o,o,o,m);return I.placeholder=sp.placeholder,I}function Zh(p,m,R){m=R?o:m;var I=hn(p,ae,o,o,o,o,o,m);return I.placeholder=Zh.placeholder,I}function ap(p,m,R){var I,W,te,pe,Ee,be,Dt=0,Tt=!1,Ot=!1,on=!0;if(typeof p!="function")throw new $r(E);m=vl(m)||0,Iu(R)&&(Tt=!!R.leading,Ot="maxWait"in R,te=Ot?ei(vl(R.maxWait)||0,m):te,on="trailing"in R?!!R.trailing:on);function Mn(s0){var Os=I,Co=W;return I=W=o,Dt=s0,pe=p.apply(Co,Os),pe}function rr(s0){return Dt=s0,Ee=Qa(ri,m),Tt?Mn(s0):pe}function br(s0){var Os=s0-be,Co=s0-Dt,kv=m-Os;return Ot?Kn(kv,te-Co):kv}function ar(s0){var Os=s0-be,Co=s0-Dt;return be===o||Os>=m||Os<0||Ot&&Co>=te}function ri(){var s0=E1();if(ar(s0))return fi(s0);Ee=Qa(ri,br(s0))}function fi(s0){return Ee=o,on&&I?Mn(s0):(I=W=o,pe)}function zl(){Ee!==o&&Zc(Ee),Dt=0,I=be=W=Ee=o}function Zi(){return Ee===o?pe:fi(E1())}function so(){var s0=E1(),Os=ar(s0);if(I=arguments,W=this,be=s0,Os){if(Ee===o)return rr(be);if(Ot)return Zc(Ee),Ee=Qa(ri,m),Mn(be)}return Ee===o&&(Ee=Qa(ri,m)),pe}return so.cancel=zl,so.flush=Zi,so}var $h=Ir(function(p,m){return dc(p,1,m)}),ev=Ir(function(p,m,R){return dc(p,vl(m)||0,R)});function fp(p){return hn(p,Ae)}function xd(p,m){if(typeof p!="function"||m!=null&&typeof m!="function")throw new $r(E);var R=function(){var I=arguments,W=m?m.apply(this,I):I[0],te=R.cache;if(te.has(W))return te.get(W);var pe=p.apply(this,I);return R.cache=te.set(W,pe)||te,pe};return R.cache=new(xd.Cache||U0),R}xd.Cache=U0;function Rd(p){if(typeof p!="function")throw new $r(E);return function(){var m=arguments;switch(m.length){case 0:return!p.call(this);case 1:return!p.call(this,m[0]);case 2:return!p.call(this,m[0],m[1]);case 3:return!p.call(this,m[0],m[1],m[2])}return!p.apply(this,m)}}function H0(p){return Cd(2,p)}var Ad=O2(function(p,m){m=m.length==1&&tr(m[0])?Ft(m[0],gi(Vn())):Ft(Wi(m,1),gi(Vn()));var R=m.length;return Ir(function(I){for(var W=-1,te=Kn(I.length,R);++W=m}),pl=i0(function(){return arguments}())?i0:function(p){return Gu(p)&&ui.call(p,"callee")&&!B0.call(p,"callee")},tr=Ke.isArray,Qs=_e?gi(_e):Ge;function hl(p){return p!=null&&Ld(p.length)&&!xa(p)}function o0(p){return Gu(p)&&hl(p)}function rv(p){return p===!0||p===!1||Gu(p)&&yt(p)==an}var Js=no||Bp,vp=Oe?gi(Oe):je;function Fm(p){return Gu(p)&&p.nodeType===1&&!Cc(p)}function iv(p){if(p==null)return!0;if(hl(p)&&(tr(p)||typeof p=="string"||typeof p.splice=="function"||Js(p)||Ra(p)||pl(p)))return!p.length;var m=Pu(p);if(m==S||m==Xt)return!p.size;if(Nf(p))return!Wa(p).length;for(var R in p)if(ui.call(p,R))return!1;return!0}function mp(p,m){return st(p,m)}function Pm(p,m,R){R=typeof R=="function"?R:o;var I=R?R(p,m):o;return I===o?st(p,m,o,R):!!I}function yp(p){if(!Gu(p))return!1;var m=yt(p);return m==ln||m==lr||typeof p.message=="string"&&typeof p.name=="string"&&!Cc(p)}function Tc(p){return typeof p=="number"&&nu(p)}function xa(p){if(!Iu(p))return!1;var m=yt(p);return m==Vt||m==Er||m==nn||m==fr}function gp(p){return typeof p=="number"&&p==Mr(p)}function Ld(p){return typeof p=="number"&&p>-1&&p%1==0&&p<=Jt}function Iu(p){var m=typeof p;return p!=null&&(m=="object"||m=="function")}function Gu(p){return p!=null&&typeof p=="object"}var _p=$?gi($):Wn;function Ep(p,m){return p===m||oi(p,m,jn(m))}function uv(p,m,R){return R=typeof R=="function"?R:o,oi(p,m,jn(m),R)}function Im(p){return ov(p)&&p!=+p}function bm(p){if(Ll(p))throw new Kt(h);return ur(p)}function Bm(p){return p===null}function Fd(p){return p==null}function ov(p){return typeof p=="number"||Gu(p)&&yt(p)==zt}function Cc(p){if(!Gu(p)||yt(p)!=vr)return!1;var m=il(p);if(m===null)return!0;var R=ui.call(m,"constructor")&&m.constructor;return typeof R=="function"&&R instanceof R&&Lu.call(R)==sa}var w1=Ne?gi(Ne):ai;function Um(p){return gp(p)&&p>=-Jt&&p<=Jt}var Pd=Je?gi(Je):Qi;function S1(p){return typeof p=="string"||!tr(p)&&Gu(p)&&yt(p)==Du}function Bl(p){return typeof p=="symbol"||Gu(p)&&yt(p)==c0}var Ra=vt?gi(vt):Vr;function lv(p){return p===o}function jm(p){return Gu(p)&&Pu(p)==Jo}function sv(p){return Gu(p)&&yt(p)==Fs}var av=md(od),zm=md(function(p,m){return p<=m});function fv(p){if(!p)return[];if(hl(p))return S1(p)?Zr(p):iu(p);if(Fu&&p[Fu])return Xu(p[Fu]());var m=Pu(p),R=m==S?Su:m==Xt?$0:Nc;return R(p)}function Aa(p){if(!p)return p===0?p:0;if(p=vl(p),p===Pt||p===-Pt){var m=p<0?-1:1;return m*it}return p===p?p:0}function Mr(p){var m=Aa(p),R=m%1;return m===m?R?m-R:m:0}function Dp(p){return p?n0(Mr(p),0,ce):0}function vl(p){if(typeof p=="number")return p;if(Bl(p))return J;if(Iu(p)){var m=typeof p.valueOf=="function"?p.valueOf():p;p=Iu(m)?m+"":m}if(typeof p!="string")return p===0?p:+p;p=Nu(p);var R=ao.test(p);return R||No.test(p)?Bs(p.slice(2),R?2:8):li.test(p)?J:+p}function yu(p){return M0(p,dn(p))}function T1(p){return p?n0(Mr(p),-Jt,Jt):p===0?p:0}function Ui(p){return p==null?"":al(p)}var wp=uo(function(p,m){if(Nf(m)||hl(m)){M0(m,N0(m),p);return}for(var R in m)ui.call(m,R)&&Ss(p,R,m[R])}),Id=uo(function(p,m){M0(m,dn(m),p)}),To=uo(function(p,m,R,I){M0(m,dn(m),p,I)}),As=uo(function(p,m,R,I){M0(m,N0(m),p,I)}),bf=cl(qa);function bd(p,m){var R=ti(p);return m==null?R:Ef(R,m)}var Sp=Ir(function(p,m){p=bn(p);var R=-1,I=m.length,W=I>2?m[2]:o;for(W&&lo(m[0],m[1],W)&&(I=1);++R1),te}),M0(p,sr(p),R),I&&(R=j0(R,x|j|q,fm));for(var W=m.length;W--;)x2(R,m[W]);return R});function A1(p,m){return ef(p,Rd(Vn(m)))}var xp=cl(function(p,m){return p==null?{}:vh(p,m)});function ef(p,m){if(p==null)return{};var R=Ft(sr(p),function(I){return[I]});return m=Vn(m),mh(p,R,function(I,W){return m(I,W[0])})}function Hm(p,m,R){m=Ws(m,p);var I=-1,W=m.length;for(W||(W=1,p=o);++Im){var I=p;p=m,m=I}if(R||p%1||m%1){var W=_0();return Kn(p+W*(m-p+ba("1e-"+((W+"").length-1))),m)}return ad(p,m)}var Wd=Cf(function(p,m,R){return m=m.toLowerCase(),p+(R?Wo(m):m)});function Wo(p){return Op(Ui(p).toLowerCase())}function Vd(p){return p=Ui(p),p&&p.replace($n,Io).replace(J0,"")}function Wm(p,m,R){p=Ui(p),m=al(m);var I=p.length;R=R===o?I:n0(Mr(R),0,I);var W=R;return R-=m.length,R>=0&&p.slice(R,W)==m}function k1(p){return p=Ui(p),p&&Ps.test(p)?p.replace(su,ys):p}function Vm(p){return p=Ui(p),p&&en.test(p)?p.replace(mi,"\\$&"):p}var Gm=Cf(function(p,m,R){return p+(R?"-":"")+m.toLowerCase()}),dv=Cf(function(p,m,R){return p+(R?" ":"")+m.toLowerCase()}),Ym=wh("toLowerCase");function pv(p,m,R){p=Ui(p),m=Mr(m);var I=m?tu(p):0;if(!m||I>=m)return p;var W=(m-I)/2;return ga(Es(W),R)+p+ga(Zu(W),R)}function Km(p,m,R){p=Ui(p),m=Mr(m);var I=m?tu(p):0;return m&&I>>0,R?(p=Ui(p),p&&(typeof m=="string"||m!=null&&!w1(m))&&(m=al(m),!m&&Bo(p))?va(Zr(p),0,R):p.split(m,R)):[]}var zf=Cf(function(p,m,R){return p+(R?" ":"")+Op(m)});function vv(p,m,R){return p=Ui(p),R=R==null?0:n0(Mr(R),0,p.length),m=al(m),p.slice(R,R+m.length)==m}function mv(p,m,R){var I=K.templateSettings;R&&lo(p,m,R)&&(m=o),p=Ui(p),m=To({},m,I,Rf);var W=To({},m.imports,I.imports,Rf),te=N0(W),pe=Po(W,te),Ee,be,Dt=0,Tt=m.interpolate||tl,Ot="__p += '",on=mu((m.escape||tl).source+"|"+Tt.source+"|"+(Tt===d0?Xl:tl).source+"|"+(m.evaluate||tl).source+"|$","g"),Mn="//# sourceURL="+(ui.call(m,"sourceURL")?(m.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++ac+"]")+` +`;p.replace(on,function(ar,ri,fi,zl,Zi,so){return fi||(fi=zl),Ot+=p.slice(Dt,so).replace(fo,js),ri&&(Ee=!0,Ot+=`' + +__e(`+ri+`) + +'`),Zi&&(be=!0,Ot+=`'; +`+Zi+`; +__p += '`),fi&&(Ot+=`' + +((__t = (`+fi+`)) == null ? '' : __t) + +'`),Dt=so+ar.length,ar}),Ot+=`'; +`;var rr=ui.call(m,"variable")&&m.variable;if(!rr)Ot=`with (obj) { +`+Ot+` +} +`;else if(Q0.test(rr))throw new Kt(t);Ot=(be?Ot.replace(Kr,""):Ot).replace(Oo,"$1").replace(Mo,"$1;"),Ot="function("+(rr||"obj")+`) { +`+(rr?"":`obj || (obj = {}); +`)+"var __t, __p = ''"+(Ee?", __e = _.escape":"")+(be?`, __j = Array.prototype.join; +function print() { __p += __j.call(arguments, '') } +`:`; +`)+Ot+`return __p +}`;var br=wv(function(){return pr(te,Mn+"return "+Ot).apply(o,pe)});if(br.source=Ot,yp(br))throw br;return br}function yv(p){return Ui(p).toLowerCase()}function Gd(p){return Ui(p).toUpperCase()}function Yd(p,m,R){if(p=Ui(p),p&&(R||m===o))return Nu(p);if(!p||!(m=al(m)))return p;var I=Zr(p),W=Zr(m),te=hf(I,W),pe=Tl(I,W)+1;return va(I,te,pe).join("")}function Ap(p,m,R){if(p=Ui(p),p&&(R||m===o))return p.slice(0,ho(p)+1);if(!p||!(m=al(m)))return p;var I=Zr(p),W=Tl(I,Zr(m))+1;return va(I,0,W).join("")}function gv(p,m,R){if(p=Ui(p),p&&(R||m===o))return p.replace(In,"");if(!p||!(m=al(m)))return p;var I=Zr(p),W=hf(I,Zr(m));return va(I,W).join("")}function Kd(p,m){var R=ze,I=We;if(Iu(m)){var W="separator"in m?m.separator:W;R="length"in m?Mr(m.length):R,I="omission"in m?al(m.omission):I}p=Ui(p);var te=p.length;if(Bo(p)){var pe=Zr(p);te=pe.length}if(R>=te)return p;var Ee=R-tu(I);if(Ee<1)return I;var be=pe?va(pe,0,Ee).join(""):p.slice(0,Ee);if(W===o)return be+I;if(pe&&(Ee+=be.length-Ee),w1(W)){if(p.slice(Ee).search(W)){var Dt,Tt=be;for(W.global||(W=mu(W.source,Ui(ko.exec(W))+"g")),W.lastIndex=0;Dt=W.exec(Tt);)var Ot=Dt.index;be=be.slice(0,Ot===o?Ee:Ot)}}else if(p.indexOf(al(W),Ee)!=Ee){var on=be.lastIndexOf(W);on>-1&&(be=be.slice(0,on))}return be+I}function _v(p){return p=Ui(p),p&&ki.test(p)?p.replace(F0,Bi):p}var Ev=Cf(function(p,m,R){return p+(R?" ":"")+m.toUpperCase()}),Op=wh("toUpperCase");function Dv(p,m,R){return p=Ui(p),m=R?o:m,m===o?gs(p)?yf(p):y0(p):p.match(m)||[]}var wv=Ir(function(p,m){try{return oe(p,o,m)}catch(R){return yp(R)?R:new Kt(R)}}),$m=cl(function(p,m){return rt(m,function(R){R=Fl(R),Vu(p,R,D1(p[R],p))}),p});function Sv(p){var m=p==null?0:p.length,R=Vn();return p=m?Ft(p,function(I){if(typeof I[1]!="function")throw new $r(E);return[R(I[0]),I[1]]}):[],Ir(function(I){for(var W=-1;++WJt)return[];var R=ce,I=Kn(p,ce);m=Vn(m),p-=ce;for(var W=T0(I,m);++R0||m<0)?new ft(R):(p<0?R=R.takeRight(-p):p&&(R=R.drop(p)),m!==o&&(m=Mr(m),R=m<0?R.dropRight(-m):R.take(m-p)),R)},ft.prototype.takeRightWhile=function(p){return this.reverse().takeWhile(p).reverse()},ft.prototype.toArray=function(){return this.take(ce)},A(ft.prototype,function(p,m){var R=/^(?:filter|find|map|reject)|While$/.test(m),I=/^(?:head|last)$/.test(m),W=K[I?"take"+(m=="last"?"Right":""):m],te=I||/^find/.test(m);!W||(K.prototype[m]=function(){var pe=this.__wrapped__,Ee=I?[1]:arguments,be=pe instanceof ft,Dt=Ee[0],Tt=be||tr(pe),Ot=function(ri){var fi=W.apply(K,Dn([ri],Ee));return I&&on?fi[0]:fi};Tt&&R&&typeof Dt=="function"&&Dt.length!=1&&(be=Tt=!1);var on=this.__chain__,Mn=!!this.__actions__.length,rr=te&&!on,br=be&&!Mn;if(!te&&Tt){pe=br?pe:new ft(this);var ar=p.apply(pe,Ee);return ar.__actions__.push({func:g1,args:[Ot],thisArg:o}),new Wr(ar,on)}return rr&&br?p.apply(this,Ee):(ar=this.thru(Ot),rr?I?ar.value()[0]:ar.value():ar)})}),rt(["pop","push","shift","sort","splice","unshift"],function(p){var m=Qr[p],R=/^(?:push|sort|unshift)$/.test(p)?"tap":"thru",I=/^(?:pop|shift)$/.test(p);K.prototype[p]=function(){var W=arguments;if(I&&!this.__chain__){var te=this.value();return m.apply(tr(te)?te:[],W)}return this[R](function(pe){return m.apply(tr(pe)?pe:[],W)})}}),A(ft.prototype,function(p,m){var R=K[m];if(R){var I=R.name+"";ui.call(An,I)||(An[I]=[]),An[I].push({name:m,func:R})}}),An[ya(o,me).name]=[{name:"wrapper",func:o}],ft.prototype.clone=Di,ft.prototype.reverse=ru,ft.prototype.value=E0,K.prototype.at=J2,K.prototype.chain=qh,K.prototype.commit=Z2,K.prototype.next=Wh,K.prototype.plant=Em,K.prototype.reverse=Pf,K.prototype.toJSON=K.prototype.valueOf=K.prototype.value=If,K.prototype.first=K.prototype.head,Fu&&(K.prototype[Fu]=_m),K},to=eo();typeof define=="function"&&typeof define.amd=="object"&&define.amd?(zi._=to,define(function(){return to})):H?((H.exports=to)._=to,U._=to):zi._=to}).call(Wv)});var ZE=nt((tH,JE)=>{"use strict";var Pi=JE.exports;JE.exports.default=Pi;var Eu="\x1B[",Uy="\x1B]",Vv="\x07",T_=";",aS=process.env.TERM_PROGRAM==="Apple_Terminal";Pi.cursorTo=(o,l)=>{if(typeof o!="number")throw new TypeError("The `x` argument is required");return typeof l!="number"?Eu+(o+1)+"G":Eu+(l+1)+";"+(o+1)+"H"};Pi.cursorMove=(o,l)=>{if(typeof o!="number")throw new TypeError("The `x` argument is required");let f="";return o<0?f+=Eu+-o+"D":o>0&&(f+=Eu+o+"C"),l<0?f+=Eu+-l+"A":l>0&&(f+=Eu+l+"B"),f};Pi.cursorUp=(o=1)=>Eu+o+"A";Pi.cursorDown=(o=1)=>Eu+o+"B";Pi.cursorForward=(o=1)=>Eu+o+"C";Pi.cursorBackward=(o=1)=>Eu+o+"D";Pi.cursorLeft=Eu+"G";Pi.cursorSavePosition=aS?"\x1B7":Eu+"s";Pi.cursorRestorePosition=aS?"\x1B8":Eu+"u";Pi.cursorGetPosition=Eu+"6n";Pi.cursorNextLine=Eu+"E";Pi.cursorPrevLine=Eu+"F";Pi.cursorHide=Eu+"?25l";Pi.cursorShow=Eu+"?25h";Pi.eraseLines=o=>{let l="";for(let f=0;f[Uy,"8",T_,T_,l,Vv,o,Uy,"8",T_,T_,Vv].join("");Pi.image=(o,l={})=>{let f=`${Uy}1337;File=inline=1`;return l.width&&(f+=`;width=${l.width}`),l.height&&(f+=`;height=${l.height}`),l.preserveAspectRatio===!1&&(f+=";preserveAspectRatio=0"),f+":"+o.toString("base64")+Vv};Pi.iTerm={setCwd:(o=process.cwd())=>`${Uy}50;CurrentDir=${o}${Vv}`,annotation:(o,l={})=>{let f=`${Uy}1337;`,h=typeof l.x<"u",E=typeof l.y<"u";if((h||E)&&!(h&&E&&typeof l.length<"u"))throw new Error("`x`, `y` and `length` must be defined when `x` or `y` is defined");return o=o.replace(/\|/g,""),f+=l.isHidden?"AddHiddenAnnotation=":"AddAnnotation=",l.length>0?f+=(h?[o,l.length,l.x,l.y]:[l.length,o]).join("|"):f+=o,f+Vv}}});var cS=nt((nH,$E)=>{"use strict";var fS=(o,l)=>{for(let f of Reflect.ownKeys(l))Object.defineProperty(o,f,Object.getOwnPropertyDescriptor(l,f));return o};$E.exports=fS;$E.exports.default=fS});var pS=nt((rH,x_)=>{"use strict";var fP=cS(),C_=new WeakMap,dS=(o,l={})=>{if(typeof o!="function")throw new TypeError("Expected a function");let f,h=0,E=o.displayName||o.name||"",t=function(...N){if(C_.set(t,++h),h===1)f=o.apply(this,N),o=null;else if(l.throw===!0)throw new Error(`Function \`${E}\` can only be called once`);return f};return fP(t,o),C_.set(t,h),t};x_.exports=dS;x_.exports.default=dS;x_.exports.callCount=o=>{if(!C_.has(o))throw new Error(`The given function \`${o.name}\` is not wrapped by the \`onetime\` package`);return C_.get(o)}});var hS=nt((iH,R_)=>{R_.exports=["SIGABRT","SIGALRM","SIGHUP","SIGINT","SIGTERM"];process.platform!=="win32"&&R_.exports.push("SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT");process.platform==="linux"&&R_.exports.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT","SIGUNUSED")});var nD=nt((uH,Kv)=>{var w0=global.process,Jp=function(o){return o&&typeof o=="object"&&typeof o.removeListener=="function"&&typeof o.emit=="function"&&typeof o.reallyExit=="function"&&typeof o.listeners=="function"&&typeof o.kill=="function"&&typeof o.pid=="number"&&typeof o.on=="function"};Jp(w0)?(vS=hi("assert"),Gv=hS(),mS=/^win/i.test(w0.platform),jy=hi("events"),typeof jy!="function"&&(jy=jy.EventEmitter),w0.__signal_exit_emitter__?wl=w0.__signal_exit_emitter__:(wl=w0.__signal_exit_emitter__=new jy,wl.count=0,wl.emitted={}),wl.infinite||(wl.setMaxListeners(1/0),wl.infinite=!0),Kv.exports=function(o,l){if(!Jp(global.process))return function(){};vS.equal(typeof o,"function","a callback must be provided for exit handler"),Yv===!1&&eD();var f="exit";l&&l.alwaysLast&&(f="afterexit");var h=function(){wl.removeListener(f,o),wl.listeners("exit").length===0&&wl.listeners("afterexit").length===0&&A_()};return wl.on(f,o),h},A_=function(){!Yv||!Jp(global.process)||(Yv=!1,Gv.forEach(function(l){try{w0.removeListener(l,O_[l])}catch{}}),w0.emit=M_,w0.reallyExit=tD,wl.count-=1)},Kv.exports.unload=A_,Zp=function(l,f,h){wl.emitted[l]||(wl.emitted[l]=!0,wl.emit(l,f,h))},O_={},Gv.forEach(function(o){O_[o]=function(){if(!!Jp(global.process)){var f=w0.listeners(o);f.length===wl.count&&(A_(),Zp("exit",null,o),Zp("afterexit",null,o),mS&&o==="SIGHUP"&&(o="SIGINT"),w0.kill(w0.pid,o))}}}),Kv.exports.signals=function(){return Gv},Yv=!1,eD=function(){Yv||!Jp(global.process)||(Yv=!0,wl.count+=1,Gv=Gv.filter(function(l){try{return w0.on(l,O_[l]),!0}catch{return!1}}),w0.emit=gS,w0.reallyExit=yS)},Kv.exports.load=eD,tD=w0.reallyExit,yS=function(l){!Jp(global.process)||(w0.exitCode=l||0,Zp("exit",w0.exitCode,null),Zp("afterexit",w0.exitCode,null),tD.call(w0,w0.exitCode))},M_=w0.emit,gS=function(l,f){if(l==="exit"&&Jp(global.process)){f!==void 0&&(w0.exitCode=f);var h=M_.apply(this,arguments);return Zp("exit",w0.exitCode,null),Zp("afterexit",w0.exitCode,null),h}else return M_.apply(this,arguments)}):Kv.exports=function(){return function(){}};var vS,Gv,mS,jy,wl,A_,Zp,O_,Yv,eD,tD,yS,M_,gS});var ES=nt((oH,_S)=>{"use strict";var cP=pS(),dP=nD();_S.exports=cP(()=>{dP(()=>{process.stderr.write("\x1B[?25h")},{alwaysLast:!0})})});var rD=nt(Xv=>{"use strict";var pP=ES(),k_=!1;Xv.show=(o=process.stderr)=>{!o.isTTY||(k_=!1,o.write("\x1B[?25h"))};Xv.hide=(o=process.stderr)=>{!o.isTTY||(pP(),k_=!0,o.write("\x1B[?25l"))};Xv.toggle=(o,l)=>{o!==void 0&&(k_=o),k_?Xv.show(l):Xv.hide(l)}});var TS=nt(zy=>{"use strict";var SS=zy&&zy.__importDefault||function(o){return o&&o.__esModule?o:{default:o}};Object.defineProperty(zy,"__esModule",{value:!0});var DS=SS(ZE()),wS=SS(rD()),hP=(o,{showCursor:l=!1}={})=>{let f=0,h="",E=!1,t=N=>{!l&&!E&&(wS.default.hide(),E=!0);let F=N+` +`;F!==h&&(h=F,o.write(DS.default.eraseLines(f)+F),f=F.split(` +`).length)};return t.clear=()=>{o.write(DS.default.eraseLines(f)),h="",f=0},t.done=()=>{h="",f=0,l||(wS.default.show(),E=!1)},t};zy.default={create:hP}});var CS=nt((aH,vP)=>{vP.exports=[{name:"AppVeyor",constant:"APPVEYOR",env:"APPVEYOR",pr:"APPVEYOR_PULL_REQUEST_NUMBER"},{name:"Azure Pipelines",constant:"AZURE_PIPELINES",env:"SYSTEM_TEAMFOUNDATIONCOLLECTIONURI",pr:"SYSTEM_PULLREQUEST_PULLREQUESTID"},{name:"Bamboo",constant:"BAMBOO",env:"bamboo_planKey"},{name:"Bitbucket Pipelines",constant:"BITBUCKET",env:"BITBUCKET_COMMIT",pr:"BITBUCKET_PR_ID"},{name:"Bitrise",constant:"BITRISE",env:"BITRISE_IO",pr:"BITRISE_PULL_REQUEST"},{name:"Buddy",constant:"BUDDY",env:"BUDDY_WORKSPACE_ID",pr:"BUDDY_EXECUTION_PULL_REQUEST_ID"},{name:"Buildkite",constant:"BUILDKITE",env:"BUILDKITE",pr:{env:"BUILDKITE_PULL_REQUEST",ne:"false"}},{name:"CircleCI",constant:"CIRCLE",env:"CIRCLECI",pr:"CIRCLE_PULL_REQUEST"},{name:"Cirrus CI",constant:"CIRRUS",env:"CIRRUS_CI",pr:"CIRRUS_PR"},{name:"AWS CodeBuild",constant:"CODEBUILD",env:"CODEBUILD_BUILD_ARN"},{name:"Codeship",constant:"CODESHIP",env:{CI_NAME:"codeship"}},{name:"Drone",constant:"DRONE",env:"DRONE",pr:{DRONE_BUILD_EVENT:"pull_request"}},{name:"dsari",constant:"DSARI",env:"DSARI"},{name:"GitLab CI",constant:"GITLAB",env:"GITLAB_CI"},{name:"GoCD",constant:"GOCD",env:"GO_PIPELINE_LABEL"},{name:"Hudson",constant:"HUDSON",env:"HUDSON_URL"},{name:"Jenkins",constant:"JENKINS",env:["JENKINS_URL","BUILD_ID"],pr:{any:["ghprbPullId","CHANGE_ID"]}},{name:"Magnum CI",constant:"MAGNUM",env:"MAGNUM"},{name:"Netlify CI",constant:"NETLIFY",env:"NETLIFY_BUILD_BASE",pr:{env:"PULL_REQUEST",ne:"false"}},{name:"Sail CI",constant:"SAIL",env:"SAILCI",pr:"SAIL_PULL_REQUEST_NUMBER"},{name:"Semaphore",constant:"SEMAPHORE",env:"SEMAPHORE",pr:"PULL_REQUEST_NUMBER"},{name:"Shippable",constant:"SHIPPABLE",env:"SHIPPABLE",pr:{IS_PULL_REQUEST:"true"}},{name:"Solano CI",constant:"SOLANO",env:"TDDIUM",pr:"TDDIUM_PR_ID"},{name:"Strider CD",constant:"STRIDER",env:"STRIDER"},{name:"TaskCluster",constant:"TASKCLUSTER",env:["TASK_ID","RUN_ID"]},{name:"TeamCity",constant:"TEAMCITY",env:"TEAMCITY_VERSION"},{name:"Travis CI",constant:"TRAVIS",env:"TRAVIS",pr:{env:"TRAVIS_PULL_REQUEST",ne:"false"}}]});var AS=nt(Fa=>{"use strict";var RS=CS(),Uc=process.env;Object.defineProperty(Fa,"_vendors",{value:RS.map(function(o){return o.constant})});Fa.name=null;Fa.isPR=null;RS.forEach(function(o){var l=Array.isArray(o.env)?o.env:[o.env],f=l.every(function(h){return xS(h)});if(Fa[o.constant]=f,f)switch(Fa.name=o.name,typeof o.pr){case"string":Fa.isPR=!!Uc[o.pr];break;case"object":"env"in o.pr?Fa.isPR=o.pr.env in Uc&&Uc[o.pr.env]!==o.pr.ne:"any"in o.pr?Fa.isPR=o.pr.any.some(function(h){return!!Uc[h]}):Fa.isPR=xS(o.pr);break;default:Fa.isPR=null}});Fa.isCI=!!(Uc.CI||Uc.CONTINUOUS_INTEGRATION||Uc.BUILD_NUMBER||Uc.RUN_ID||Fa.name);function xS(o){return typeof o=="string"?!!Uc[o]:Object.keys(o).every(function(l){return Uc[l]===o[l]})}});var MS=nt((cH,OS)=>{"use strict";OS.exports=AS().isCI});var NS=nt((dH,kS)=>{"use strict";var mP=o=>{let l=new Set;do for(let f of Reflect.ownKeys(o))l.add([o,f]);while((o=Reflect.getPrototypeOf(o))&&o!==Object.prototype);return l};kS.exports=(o,{include:l,exclude:f}={})=>{let h=E=>{let t=N=>typeof N=="string"?E===N:N.test(E);return l?l.some(t):f?!f.some(t):!0};for(let[E,t]of mP(o.constructor.prototype)){if(t==="constructor"||!h(t))continue;let N=Reflect.getOwnPropertyDescriptor(E,t);N&&typeof N.value=="function"&&(o[t]=o[t].bind(o))}return o}});var jS=nt(ou=>{"use strict";Object.defineProperty(ou,"__esModule",{value:!0});var Jv,Wy,I_,b_,fD;typeof window>"u"||typeof MessageChannel!="function"?(Qv=null,iD=null,uD=function(){if(Qv!==null)try{var o=ou.unstable_now();Qv(!0,o),Qv=null}catch(l){throw setTimeout(uD,0),l}},LS=Date.now(),ou.unstable_now=function(){return Date.now()-LS},Jv=function(o){Qv!==null?setTimeout(Jv,0,o):(Qv=o,setTimeout(uD,0))},Wy=function(o,l){iD=setTimeout(o,l)},I_=function(){clearTimeout(iD)},b_=function(){return!1},fD=ou.unstable_forceFrameRate=function(){}):(N_=window.performance,oD=window.Date,PS=window.setTimeout,IS=window.clearTimeout,typeof console<"u"&&(bS=window.cancelAnimationFrame,typeof window.requestAnimationFrame!="function"&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills"),typeof bS!="function"&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills")),typeof N_=="object"&&typeof N_.now=="function"?ou.unstable_now=function(){return N_.now()}:(BS=oD.now(),ou.unstable_now=function(){return oD.now()-BS}),Hy=!1,qy=null,L_=-1,lD=5,sD=0,b_=function(){return ou.unstable_now()>=sD},fD=function(){},ou.unstable_forceFrameRate=function(o){0>o||125P_(N,f))k!==void 0&&0>P_(k,N)?(o[h]=k,o[F]=f,h=F):(o[h]=N,o[t]=f,h=t);else if(k!==void 0&&0>P_(k,f))o[h]=k,o[F]=f,h=F;else break e}}return l}return null}function P_(o,l){var f=o.sortIndex-l.sortIndex;return f!==0?f:o.id-l.id}var $f=[],f2=[],yP=1,Ls=null,ds=3,U_=!1,$p=!1,Vy=!1;function j_(o){for(var l=cf(f2);l!==null;){if(l.callback===null)B_(f2);else if(l.startTime<=o)B_(f2),l.sortIndex=l.expirationTime,cD($f,l);else break;l=cf(f2)}}function dD(o){if(Vy=!1,j_(o),!$p)if(cf($f)!==null)$p=!0,Jv(pD);else{var l=cf(f2);l!==null&&Wy(dD,l.startTime-o)}}function pD(o,l){$p=!1,Vy&&(Vy=!1,I_()),U_=!0;var f=ds;try{for(j_(l),Ls=cf($f);Ls!==null&&(!(Ls.expirationTime>l)||o&&!b_());){var h=Ls.callback;if(h!==null){Ls.callback=null,ds=Ls.priorityLevel;var E=h(Ls.expirationTime<=l);l=ou.unstable_now(),typeof E=="function"?Ls.callback=E:Ls===cf($f)&&B_($f),j_(l)}else B_($f);Ls=cf($f)}if(Ls!==null)var t=!0;else{var N=cf(f2);N!==null&&Wy(dD,N.startTime-l),t=!1}return t}finally{Ls=null,ds=f,U_=!1}}function US(o){switch(o){case 1:return-1;case 2:return 250;case 5:return 1073741823;case 4:return 1e4;default:return 5e3}}var gP=fD;ou.unstable_ImmediatePriority=1;ou.unstable_UserBlockingPriority=2;ou.unstable_NormalPriority=3;ou.unstable_IdlePriority=5;ou.unstable_LowPriority=4;ou.unstable_runWithPriority=function(o,l){switch(o){case 1:case 2:case 3:case 4:case 5:break;default:o=3}var f=ds;ds=o;try{return l()}finally{ds=f}};ou.unstable_next=function(o){switch(ds){case 1:case 2:case 3:var l=3;break;default:l=ds}var f=ds;ds=l;try{return o()}finally{ds=f}};ou.unstable_scheduleCallback=function(o,l,f){var h=ou.unstable_now();if(typeof f=="object"&&f!==null){var E=f.delay;E=typeof E=="number"&&0h?(o.sortIndex=E,cD(f2,o),cf($f)===null&&o===cf(f2)&&(Vy?I_():Vy=!0,Wy(dD,E-h))):(o.sortIndex=f,cD($f,o),$p||U_||($p=!0,Jv(pD))),o};ou.unstable_cancelCallback=function(o){o.callback=null};ou.unstable_wrapCallback=function(o){var l=ds;return function(){var f=ds;ds=l;try{return o.apply(this,arguments)}finally{ds=f}}};ou.unstable_getCurrentPriorityLevel=function(){return ds};ou.unstable_shouldYield=function(){var o=ou.unstable_now();j_(o);var l=cf($f);return l!==Ls&&Ls!==null&&l!==null&&l.callback!==null&&l.startTime<=o&&l.expirationTime{"use strict";process.env.NODE_ENV!=="production"&&function(){"use strict";Object.defineProperty(Ii,"__esModule",{value:!0});var o=!1,l=!1,f=!0,h,E,t,N,F;if(typeof window>"u"||typeof MessageChannel!="function"){var k=null,x=null,j=function(){if(k!==null)try{var St=Ii.unstable_now(),Bt=!0;k(Bt,St),k=null}catch(Hn){throw setTimeout(j,0),Hn}},q=Date.now();Ii.unstable_now=function(){return Date.now()-q},h=function(St){k!==null?setTimeout(h,0,St):(k=St,setTimeout(j,0))},E=function(St,Bt){x=setTimeout(St,Bt)},t=function(){clearTimeout(x)},N=function(){return!1},F=Ii.unstable_forceFrameRate=function(){}}else{var V=window.performance,re=window.Date,y=window.setTimeout,me=window.clearTimeout;if(typeof console<"u"){var De=window.requestAnimationFrame,ge=window.cancelAnimationFrame;typeof De!="function"&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills"),typeof ge!="function"&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills")}if(typeof V=="object"&&typeof V.now=="function")Ii.unstable_now=function(){return V.now()};else{var ae=re.now();Ii.unstable_now=function(){return re.now()-ae}}var we=!1,he=null,ve=-1,ue=5,Ae=0,ze=300,We=!1;if(l&&navigator!==void 0&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0){var gt=navigator.scheduling;N=function(){var St=Ii.unstable_now();return St>=Ae?We||gt.isInputPending()?!0:St>=ze:!1},F=function(){We=!0}}else N=function(){return Ii.unstable_now()>=Ae},F=function(){};Ii.unstable_forceFrameRate=function(St){if(St<0||St>125){console.error("forceFrameRate takes a positive int between 0 and 125, forcing framerates higher than 125 fps is not unsupported");return}St>0?ue=Math.floor(1e3/St):ue=5};var _t=function(){if(he!==null){var St=Ii.unstable_now();Ae=St+ue;var Bt=!0;try{var Hn=he(Bt,St);Hn?ot.postMessage(null):(we=!1,he=null)}catch(qr){throw ot.postMessage(null),qr}}else we=!1;We=!1},Qe=new MessageChannel,ot=Qe.port2;Qe.port1.onmessage=_t,h=function(St){he=St,we||(we=!0,ot.postMessage(null))},E=function(St,Bt){ve=y(function(){St(Ii.unstable_now())},Bt)},t=function(){me(ve),ve=-1}}function Ve(St,Bt){var Hn=St.length;St.push(Bt),it(St,Bt,Hn)}function Pt(St){var Bt=St[0];return Bt===void 0?null:Bt}function Jt(St){var Bt=St[0];if(Bt!==void 0){var Hn=St.pop();return Hn!==Bt&&(St[0]=Hn,J(St,Hn,0)),Bt}else return null}function it(St,Bt,Hn){for(var qr=Hn;;){var Ki=Math.floor((qr-1)/2),Xr=St[Ki];if(Xr!==void 0&&ce(Xr,Bt)>0)St[Ki]=Bt,St[qr]=Xr,qr=Ki;else return}}function J(St,Bt,Hn){for(var qr=Hn,Ki=St.length;qrfr){if(fr*=2,fr>jr){console.error("Scheduler Profiling: Event log exceeded maximum size. Don't forget to call `stopLoggingProfilingEvents()`."),Dr();return}var Hn=new Int32Array(fr*4);Hn.set(Xt),zr=Hn.buffer,Xt=Hn}Xt.set(St,Bt)}}function vi(){fr=vr,zr=new ArrayBuffer(fr*4),Xt=new Int32Array(zr),Du=0}function Dr(){var St=zr;return fr=0,zr=null,Xt=null,Du=0,St}function el(St,Bt){f&&(Vt[Xn]++,Xt!==null&&lu([c0,Bt*1e3,St.id,St.priorityLevel]))}function Y0(St,Bt){f&&(Vt[Er]=Re,Vt[S]=0,Vt[Xn]--,Xt!==null&&lu([Ao,Bt*1e3,St.id]))}function Bu(St,Bt){f&&(Vt[Xn]--,Xt!==null&&lu([Fs,Bt*1e3,St.id]))}function K0(St,Bt){f&&(Vt[Er]=Re,Vt[S]=0,Vt[Xn]--,Xt!==null&&lu([Jo,Bt*1e3,St.id]))}function Kr(St,Bt){f&&(an++,Vt[Er]=St.priorityLevel,Vt[S]=St.id,Vt[zt]=an,Xt!==null&&lu([Zo,Bt*1e3,St.id,an]))}function Oo(St,Bt){f&&(Vt[Er]=Re,Vt[S]=0,Vt[zt]=0,Xt!==null&&lu([$o,Bt*1e3,St.id,an]))}function Mo(St){f&&(On++,Xt!==null&&lu([qt,St*1e3,On]))}function F0(St){f&&Xt!==null&&lu([xi,St*1e3,On])}var su=1073741823,ki=-1,Ps=250,Kl=5e3,P0=1e4,d0=su,Hr=[],Ri=[],X0=1,mi=!1,en=null,In=dt,Ai=!1,yi=!1,Wt=!1;function Ru(St){for(var Bt=Pt(Ri);Bt!==null;){if(Bt.callback===null)Jt(Ri);else if(Bt.startTime<=St)Jt(Ri),Bt.sortIndex=Bt.expirationTime,Ve(Hr,Bt),f&&(el(Bt,St),Bt.isQueued=!0);else return;Bt=Pt(Ri)}}function eu(St){if(Wt=!1,Ru(St),!yi)if(Pt(Hr)!==null)yi=!0,h(Q0);else{var Bt=Pt(Ri);Bt!==null&&E(eu,Bt.startTime-St)}}function Q0(St,Bt){f&&F0(Bt),yi=!1,Wt&&(Wt=!1,t()),Ai=!0;var Hn=In;try{if(f)try{return Yi(St,Bt)}catch(Xr){if(en!==null){var qr=Ii.unstable_now();K0(en,qr),en.isQueued=!1}throw Xr}else return Yi(St,Bt)}finally{if(en=null,In=Hn,Ai=!1,f){var Ki=Ii.unstable_now();Mo(Ki)}}}function Yi(St,Bt){var Hn=Bt;for(Ru(Hn),en=Pt(Hr);en!==null&&!(o&&mi)&&!(en.expirationTime>Hn&&(!St||N()));){var qr=en.callback;if(qr!==null){en.callback=null,In=en.priorityLevel;var Ki=en.expirationTime<=Hn;Kr(en,Hn);var Xr=qr(Ki);Hn=Ii.unstable_now(),typeof Xr=="function"?(en.callback=Xr,Oo(en,Hn)):(f&&(Y0(en,Hn),en.isQueued=!1),en===Pt(Hr)&&Jt(Hr)),Ru(Hn)}else Jt(Hr);en=Pt(Hr)}if(en!==null)return!0;var Au=Pt(Ri);return Au!==null&&E(eu,Au.startTime-Hn),!1}function Xl(St,Bt){switch(St){case le:case He:case dt:case At:case nn:break;default:St=dt}var Hn=In;In=St;try{return Bt()}finally{In=Hn}}function ko(St){var Bt;switch(In){case le:case He:case dt:Bt=dt;break;default:Bt=In;break}var Hn=In;In=Bt;try{return St()}finally{In=Hn}}function li(St){var Bt=In;return function(){var Hn=In;In=Bt;try{return St.apply(this,arguments)}finally{In=Hn}}}function ao(St){switch(St){case le:return ki;case He:return Ps;case nn:return d0;case At:return P0;case dt:default:return Kl}}function Ql(St,Bt,Hn){var qr=Ii.unstable_now(),Ki,Xr;if(typeof Hn=="object"&&Hn!==null){var Au=Hn.delay;typeof Au=="number"&&Au>0?Ki=qr+Au:Ki=qr,Xr=typeof Hn.timeout=="number"?Hn.timeout:ao(St)}else Xr=ao(St),Ki=qr;var p0=Ki+Xr,Ni={id:X0++,callback:Bt,priorityLevel:St,startTime:Ki,expirationTime:p0,sortIndex:-1};return f&&(Ni.isQueued=!1),Ki>qr?(Ni.sortIndex=Ki,Ve(Ri,Ni),Pt(Hr)===null&&Ni===Pt(Ri)&&(Wt?t():Wt=!0,E(eu,Ki-qr))):(Ni.sortIndex=p0,Ve(Hr,Ni),f&&(el(Ni,qr),Ni.isQueued=!0),!yi&&!Ai&&(yi=!0,h(Q0))),Ni}function No(){mi=!0}function Is(){mi=!1,!yi&&!Ai&&(yi=!0,h(Q0))}function $n(){return Pt(Hr)}function tl(St){if(f&&St.isQueued){var Bt=Ii.unstable_now();Bu(St,Bt),St.isQueued=!1}St.callback=null}function fo(){return In}function I0(){var St=Ii.unstable_now();Ru(St);var Bt=Pt(Hr);return Bt!==en&&en!==null&&Bt!==null&&Bt.callback!==null&&Bt.startTime<=St&&Bt.expirationTime{"use strict";process.env.NODE_ENV==="production"?hD.exports=jS():hD.exports=zS()});var HS=nt((mH,Gy)=>{Gy.exports=function o(l){"use strict";var f=Py(),h=Mi(),E=z_();function t(_){for(var g="https://reactjs.org/docs/error-decoder.html?invariant="+_,A=1;AX0||(_.current=Ri[X0],Ri[X0]=null,X0--)}function en(_,g){X0++,Ri[X0]=_.current,_.current=g}var In={},Ai={current:In},yi={current:!1},Wt=In;function Ru(_,g){var A=_.type.contextTypes;if(!A)return In;var P=_.stateNode;if(P&&P.__reactInternalMemoizedUnmaskedChildContext===g)return P.__reactInternalMemoizedMaskedChildContext;var B={},Z;for(Z in A)B[Z]=g[Z];return P&&(_=_.stateNode,_.__reactInternalMemoizedUnmaskedChildContext=g,_.__reactInternalMemoizedMaskedChildContext=B),B}function eu(_){return _=_.childContextTypes,_!=null}function Q0(_){mi(yi,_),mi(Ai,_)}function Yi(_){mi(yi,_),mi(Ai,_)}function Xl(_,g,A){if(Ai.current!==In)throw Error(t(168));en(Ai,g,_),en(yi,A,_)}function ko(_,g,A){var P=_.stateNode;if(_=g.childContextTypes,typeof P.getChildContext!="function")return A;P=P.getChildContext();for(var B in P)if(!(B in _))throw Error(t(108,ze(g)||"Unknown",B));return f({},A,{},P)}function li(_){var g=_.stateNode;return g=g&&g.__reactInternalMemoizedMergedChildContext||In,Wt=Ai.current,en(Ai,g,_),en(yi,yi.current,_),!0}function ao(_,g,A){var P=_.stateNode;if(!P)throw Error(t(169));A?(g=ko(_,g,Wt),P.__reactInternalMemoizedMergedChildContext=g,mi(yi,_),mi(Ai,_),en(Ai,g,_)):mi(yi,_),en(yi,A,_)}var Ql=E.unstable_runWithPriority,No=E.unstable_scheduleCallback,Is=E.unstable_cancelCallback,$n=E.unstable_shouldYield,tl=E.unstable_requestPaint,fo=E.unstable_now,I0=E.unstable_getCurrentPriorityLevel,Sl=E.unstable_ImmediatePriority,Lo=E.unstable_UserBlockingPriority,St=E.unstable_NormalPriority,Bt=E.unstable_LowPriority,Hn=E.unstable_IdlePriority,qr={},Ki=tl!==void 0?tl:function(){},Xr=null,Au=null,p0=!1,Ni=fo(),h0=1e4>Ni?fo:function(){return fo()-Ni};function hs(){switch(I0()){case Sl:return 99;case Lo:return 98;case St:return 97;case Bt:return 96;case Hn:return 95;default:throw Error(t(332))}}function Ct(_){switch(_){case 99:return Sl;case 98:return Lo;case 97:return St;case 96:return Bt;case 95:return Hn;default:throw Error(t(332))}}function co(_,g){return _=Ct(_),Ql(_,g)}function nl(_,g,A){return _=Ct(_),No(_,g,A)}function Jl(_){return Xr===null?(Xr=[_],Au=No(Sl,vs)):Xr.push(_),qr}function Uu(){if(Au!==null){var _=Au;Au=null,Is(_)}vs()}function vs(){if(!p0&&Xr!==null){p0=!0;var _=0;try{var g=Xr;co(99,function(){for(;_=g&&(ho=!0),_.firstContext=null)}function Mu(_,g){if(Ou!==_&&g!==!1&&g!==0)if((typeof g!="number"||g===1073741823)&&(Ou=_,g=1073741823),g={context:_,observedBits:g,next:null},Si===null){if(cr===null)throw Error(t(308));Si=g,cr.dependencies={expirationTime:0,firstContext:g,responders:null}}else Si=Si.next=g;return ln?_._currentValue:_._currentValue2}var po=!1;function Hu(_){return{baseState:_,firstUpdate:null,lastUpdate:null,firstCapturedUpdate:null,lastCapturedUpdate:null,firstEffect:null,lastEffect:null,firstCapturedEffect:null,lastCapturedEffect:null}}function Pa(_){return{baseState:_.baseState,firstUpdate:_.firstUpdate,lastUpdate:_.lastUpdate,firstCapturedUpdate:null,lastCapturedUpdate:null,firstEffect:null,lastEffect:null,firstCapturedEffect:null,lastCapturedEffect:null}}function v0(_,g){return{expirationTime:_,suspenseConfig:g,tag:0,payload:null,callback:null,next:null,nextEffect:null}}function ia(_,g){_.lastUpdate===null?_.firstUpdate=_.lastUpdate=g:(_.lastUpdate.next=g,_.lastUpdate=g)}function J0(_,g){var A=_.alternate;if(A===null){var P=_.updateQueue,B=null;P===null&&(P=_.updateQueue=Hu(_.memoizedState))}else P=_.updateQueue,B=A.updateQueue,P===null?B===null?(P=_.updateQueue=Hu(_.memoizedState),B=A.updateQueue=Hu(A.memoizedState)):P=_.updateQueue=Pa(B):B===null&&(B=A.updateQueue=Pa(P));B===null||P===B?ia(P,g):P.lastUpdate===null||B.lastUpdate===null?(ia(P,g),ia(B,g)):(ia(P,g),B.lastUpdate=g)}function ua(_,g){var A=_.updateQueue;A=A===null?_.updateQueue=Hu(_.memoizedState):Ia(_,A),A.lastCapturedUpdate===null?A.firstCapturedUpdate=A.lastCapturedUpdate=g:(A.lastCapturedUpdate.next=g,A.lastCapturedUpdate=g)}function Ia(_,g){var A=_.alternate;return A!==null&&g===A.updateQueue&&(g=_.updateQueue=Pa(g)),g}function ms(_,g,A,P,B,Z){switch(A.tag){case 1:return _=A.payload,typeof _=="function"?_.call(Z,P,B):_;case 3:_.effectTag=_.effectTag&-4097|64;case 0:if(_=A.payload,B=typeof _=="function"?_.call(Z,P,B):_,B==null)break;return f({},P,B);case 2:po=!0}return P}function S0(_,g,A,P,B){po=!1,g=Ia(_,g);for(var Z=g.baseState,de=null,yt=0,Rt=g.firstUpdate,Nt=Z;Rt!==null;){var xr=Rt.expirationTime;xrai?(Qi=ur,ur=null):Qi=ur.sibling;var Vr=cu(Ge,ur,st[ai],$t);if(Vr===null){ur===null&&(ur=Qi);break}_&&ur&&Vr.alternate===null&&g(Ge,ur),je=Z(Vr,je,ai),oi===null?Wn=Vr:oi.sibling=Vr,oi=Vr,ur=Qi}if(ai===st.length)return A(Ge,ur),Wn;if(ur===null){for(;aiai?(Qi=ur,ur=null):Qi=ur.sibling;var Tu=cu(Ge,ur,Vr.value,$t);if(Tu===null){ur===null&&(ur=Qi);break}_&&ur&&Tu.alternate===null&&g(Ge,ur),je=Z(Tu,je,ai),oi===null?Wn=Tu:oi.sibling=Tu,oi=Tu,ur=Qi}if(Vr.done)return A(Ge,ur),Wn;if(ur===null){for(;!Vr.done;ai++,Vr=st.next())Vr=r0(Ge,Vr.value,$t),Vr!==null&&(je=Z(Vr,je,ai),oi===null?Wn=Vr:oi.sibling=Vr,oi=Vr);return Wn}for(ur=P(Ge,ur);!Vr.done;ai++,Vr=st.next())Vr=z0(ur,Ge,ai,Vr.value,$t),Vr!==null&&(_&&Vr.alternate!==null&&ur.delete(Vr.key===null?ai:Vr.key),je=Z(Vr,je,ai),oi===null?Wn=Vr:oi.sibling=Vr,oi=Vr);return _&&ur.forEach(function(Wa){return g(Ge,Wa)}),Wn}return function(Ge,je,st,$t){var Wn=typeof st=="object"&&st!==null&&st.type===j&&st.key===null;Wn&&(st=st.props.children);var oi=typeof st=="object"&&st!==null;if(oi)switch(st.$$typeof){case k:e:{for(oi=st.key,Wn=je;Wn!==null;){if(Wn.key===oi)if(Wn.tag===7?st.type===j:Wn.elementType===st.type){A(Ge,Wn.sibling),je=B(Wn,st.type===j?st.props.children:st.props,$t),je.ref=Us(Ge,Wn,st),je.return=Ge,Ge=je;break e}else{A(Ge,Wn);break}else g(Ge,Wn);Wn=Wn.sibling}st.type===j?(je=n0(st.props.children,Ge.mode,$t,st.key),je.return=Ge,Ge=je):($t=qa(st.type,st.key,st.props,null,Ge.mode,$t),$t.ref=Us(Ge,je,st),$t.return=Ge,Ge=$t)}return de(Ge);case x:e:{for(Wn=st.key;je!==null;){if(je.key===Wn)if(je.tag===4&&je.stateNode.containerInfo===st.containerInfo&&je.stateNode.implementation===st.implementation){A(Ge,je.sibling),je=B(je,st.children||[],$t),je.return=Ge,Ge=je;break e}else{A(Ge,je);break}else g(Ge,je);je=je.sibling}je=Df(st,Ge.mode,$t),je.return=Ge,Ge=je}return de(Ge)}if(typeof st=="string"||typeof st=="number")return st=""+st,je!==null&&je.tag===6?(A(Ge,je.sibling),je=B(je,st,$t),je.return=Ge,Ge=je):(A(Ge,je),je=j0(st,Ge.mode,$t),je.return=Ge,Ge=je),de(Ge);if(m0(st))return Ml(Ge,je,st,$t);if(ue(st))return i0(Ge,je,st,$t);if(oi&&zi(Ge,st),typeof st>"u"&&!Wn)switch(Ge.tag){case 1:case 0:throw Ge=Ge.type,Error(t(152,Ge.displayName||Ge.name||"Component"))}return A(Ge,je)}}var H=U(!0),Y=U(!1),ee={},Ce={current:ee},_e={current:ee},Oe={current:ee};function $(_){if(_===ee)throw Error(t(174));return _}function Ne(_,g){en(Oe,g,_),en(_e,_,_),en(Ce,ee,_),g=Pt(g),mi(Ce,_),en(Ce,g,_)}function Je(_){mi(Ce,_),mi(_e,_),mi(Oe,_)}function vt(_){var g=$(Oe.current),A=$(Ce.current);g=Jt(A,_.type,g),A!==g&&(en(_e,_,_),en(Ce,g,_))}function oe(_){_e.current===_&&(mi(Ce,_),mi(_e,_))}var qe={current:0};function rt(_){for(var g=_;g!==null;){if(g.tag===13){var A=g.memoizedState;if(A!==null&&(A=A.dehydrated,A===null||Kr(A)||Oo(A)))return g}else if(g.tag===19&&g.memoizedProps.revealOrder!==void 0){if((g.effectTag&64)!==0)return g}else if(g.child!==null){g.child.return=g,g=g.child;continue}if(g===_)break;for(;g.sibling===null;){if(g.return===null||g.return===_)return null;g=g.return}g.sibling.return=g.return,g=g.sibling}return null}function xt(_,g){return{responder:_,props:g}}var kt=N.ReactCurrentDispatcher,bt=N.ReactCurrentBatchConfig,sn=0,rn=null,Ft=null,Dn=null,dr=null,er=null,Cr=null,Rn=0,Nr=null,y0=0,Lr=!1,ut=null,wt=0;function et(){throw Error(t(321))}function It(_,g){if(g===null)return!1;for(var A=0;ARn&&(Rn=xr,Ua(Rn))):(cc(xr,Rt.suspenseConfig),Z=Rt.eagerReducer===_?Rt.eagerState:_(Z,Rt.action)),de=Rt,Rt=Rt.next}while(Rt!==null&&Rt!==P);Nt||(yt=de,B=Z),Fe(Z,g.memoizedState)||(ho=!0),g.memoizedState=Z,g.baseUpdate=yt,g.baseState=B,A.lastRenderedState=Z}return[g.memoizedState,A.dispatch]}function T0(_){var g=Jn();return typeof _=="function"&&(_=_()),g.memoizedState=g.baseState=_,_=g.queue={last:null,dispatch:null,lastRenderedReducer:au,lastRenderedState:_},_=_.dispatch=js.bind(null,rn,_),[g.memoizedState,_]}function Z0(_){return ku(au,_)}function Nu(_,g,A,P){return _={tag:_,create:g,destroy:A,deps:P,next:null},Nr===null?(Nr={lastEffect:null},Nr.lastEffect=_.next=_):(g=Nr.lastEffect,g===null?Nr.lastEffect=_.next=_:(A=g.next,g.next=_,_.next=A,Nr.lastEffect=_)),_}function gi(_,g,A,P){var B=Jn();y0|=_,B.memoizedState=Nu(g,A,void 0,P===void 0?null:P)}function Po(_,g,A,P){var B=wr();P=P===void 0?null:P;var Z=void 0;if(Ft!==null){var de=Ft.memoizedState;if(Z=de.destroy,P!==null&&It(P,de.deps)){Nu(0,A,Z,P);return}}y0|=_,B.memoizedState=Nu(g,A,Z,P)}function rl(_,g){return gi(516,192,_,g)}function hf(_,g){return Po(516,192,_,g)}function Tl(_,g){if(typeof g=="function")return _=_(),g(_),function(){g(null)};if(g!=null)return _=_(),g.current=_,function(){g.current=null}}function vf(){}function Io(_,g){return Jn().memoizedState=[_,g===void 0?null:g],_}function ys(_,g){var A=wr();g=g===void 0?null:g;var P=A.memoizedState;return P!==null&&g!==null&&It(g,P[1])?P[0]:(A.memoizedState=[_,g],_)}function js(_,g,A){if(!(25>wt))throw Error(t(301));var P=_.alternate;if(_===rn||P!==null&&P===rn)if(Lr=!0,_={expirationTime:sn,suspenseConfig:null,action:A,eagerReducer:null,eagerState:null,next:null},ut===null&&(ut=new Map),A=ut.get(g),A===void 0)ut.set(g,_);else{for(g=A;g.next!==null;)g=g.next;g.next=_}else{var B=E0(),Z=si.suspense;B=Un(B,_,Z),Z={expirationTime:B,suspenseConfig:Z,action:A,eagerReducer:null,eagerState:null,next:null};var de=g.last;if(de===null)Z.next=Z;else{var yt=de.next;yt!==null&&(Z.next=yt),de.next=Z}if(g.last=Z,_.expirationTime===0&&(P===null||P.expirationTime===0)&&(P=g.lastRenderedReducer,P!==null))try{var Rt=g.lastRenderedState,Nt=P(Rt,A);if(Z.eagerReducer=P,Z.eagerState=Nt,Fe(Nt,Rt))return}catch{}finally{}e0(_,B)}}var bo={readContext:Mu,useCallback:et,useContext:et,useEffect:et,useImperativeHandle:et,useLayoutEffect:et,useMemo:et,useReducer:et,useRef:et,useState:et,useDebugValue:et,useResponder:et,useDeferredValue:et,useTransition:et},Bo={readContext:Mu,useCallback:Io,useContext:Mu,useEffect:rl,useImperativeHandle:function(_,g,A){return A=A!=null?A.concat([_]):null,gi(4,36,Tl.bind(null,g,_),A)},useLayoutEffect:function(_,g){return gi(4,36,_,g)},useMemo:function(_,g){var A=Jn();return g=g===void 0?null:g,_=_(),A.memoizedState=[_,g],_},useReducer:function(_,g,A){var P=Jn();return g=A!==void 0?A(g):g,P.memoizedState=P.baseState=g,_=P.queue={last:null,dispatch:null,lastRenderedReducer:_,lastRenderedState:g},_=_.dispatch=js.bind(null,rn,_),[P.memoizedState,_]},useRef:function(_){var g=Jn();return _={current:_},g.memoizedState=_},useState:T0,useDebugValue:vf,useResponder:xt,useDeferredValue:function(_,g){var A=T0(_),P=A[0],B=A[1];return rl(function(){E.unstable_next(function(){var Z=bt.suspense;bt.suspense=g===void 0?null:g;try{B(_)}finally{bt.suspense=Z}})},[_,g]),P},useTransition:function(_){var g=T0(!1),A=g[0],P=g[1];return[Io(function(B){P(!0),E.unstable_next(function(){var Z=bt.suspense;bt.suspense=_===void 0?null:_;try{P(!1),B()}finally{bt.suspense=Z}})},[_,A]),A]}},gs={readContext:Mu,useCallback:ys,useContext:Mu,useEffect:hf,useImperativeHandle:function(_,g,A){return A=A!=null?A.concat([_]):null,Po(4,36,Tl.bind(null,g,_),A)},useLayoutEffect:function(_,g){return Po(4,36,_,g)},useMemo:function(_,g){var A=wr();g=g===void 0?null:g;var P=A.memoizedState;return P!==null&&g!==null&&It(g,P[1])?P[0]:(_=_(),A.memoizedState=[_,g],_)},useReducer:ku,useRef:function(){return wr().memoizedState},useState:Z0,useDebugValue:vf,useResponder:xt,useDeferredValue:function(_,g){var A=Z0(_),P=A[0],B=A[1];return hf(function(){E.unstable_next(function(){var Z=bt.suspense;bt.suspense=g===void 0?null:g;try{B(_)}finally{bt.suspense=Z}})},[_,g]),P},useTransition:function(_){var g=Z0(!1),A=g[0],P=g[1];return[ys(function(B){P(!0),E.unstable_next(function(){var Z=bt.suspense;bt.suspense=_===void 0?null:_;try{P(!1),B()}finally{bt.suspense=Z}})},[_,A]),A]}},Xu=null,Su=null,_i=!1;function C0(_,g){var A=Ho(5,null,null,0);A.elementType="DELETED",A.type="DELETED",A.stateNode=g,A.return=_,A.effectTag=8,_.lastEffect!==null?(_.lastEffect.nextEffect=A,_.lastEffect=A):_.firstEffect=_.lastEffect=A}function $0(_,g){switch(_.tag){case 5:return g=Bu(g,_.type,_.pendingProps),g!==null?(_.stateNode=g,!0):!1;case 6:return g=K0(g,_.pendingProps),g!==null?(_.stateNode=g,!0):!1;case 13:return!1;default:return!1}}function Uo(_){if(_i){var g=Su;if(g){var A=g;if(!$0(_,g)){if(g=Mo(A),!g||!$0(_,g)){_.effectTag=_.effectTag&-1025|2,_i=!1,Xu=_;return}C0(Xu,A)}Xu=_,Su=F0(g)}else _.effectTag=_.effectTag&-1025|2,_i=!1,Xu=_}}function la(_){for(_=_.return;_!==null&&_.tag!==5&&_.tag!==3&&_.tag!==13;)_=_.return;Xu=_}function $l(_){if(!S||_!==Xu)return!1;if(!_i)return la(_),_i=!0,!1;var g=_.type;if(_.tag!==5||g!=="head"&&g!=="body"&&!dt(g,_.memoizedProps))for(g=Su;g;)C0(_,g),g=Mo(g);if(la(_),_.tag===13){if(!S)throw Error(t(316));if(_=_.memoizedState,_=_!==null?_.dehydrated:null,!_)throw Error(t(317));Su=Ps(_)}else Su=Xu?Mo(_.stateNode):null;return!0}function tu(){S&&(Su=Xu=null,_i=!1)}var Zr=N.ReactCurrentOwner,ho=!1;function Bi(_,g,A,P){g.child=_===null?Y(g,null,A,P):H(g,_.child,A,P)}function Ci(_,g,A,P,B){A=A.render;var Z=g.ref;return Fo(g,B),P=un(_,g,A,P,Z,B),_!==null&&!ho?(g.updateQueue=_.updateQueue,g.effectTag&=-517,_.expirationTime<=B&&(_.expirationTime=0),mu(_,g,B)):(g.effectTag|=1,Bi(_,g,P,B),g.child)}function mf(_,g,A,P,B,Z){if(_===null){var de=A.type;return typeof de=="function"&&!Ef(de)&&de.defaultProps===void 0&&A.compare===null&&A.defaultProps===void 0?(g.tag=15,g.type=de,yf(_,g,de,P,B,Z)):(_=qa(A.type,null,P,null,g.mode,Z),_.ref=g.ref,_.return=g,g.child=_)}return de=_.child,Bg)&&Wr.set(_,g)))}}function ro(_,g){_.expirationTime_?g:_)}function t0(_){if(_.lastExpiredTime!==0)_.callbackExpirationTime=1073741823,_.callbackPriority=99,_.callbackNode=Jl(io.bind(null,_));else{var g=mo(_),A=_.callbackNode;if(g===0)A!==null&&(_.callbackNode=null,_.callbackExpirationTime=0,_.callbackPriority=90);else{var P=E0();if(g===1073741823?P=99:g===1||g===2?P=95:(P=10*(1073741821-g)-10*(1073741821-P),P=0>=P?99:250>=P?98:5250>=P?97:95),A!==null){var B=_.callbackPriority;if(_.callbackExpirationTime===g&&B>=P)return;A!==qr&&Is(A)}_.callbackExpirationTime=g,_.callbackPriority=P,g=g===1073741823?Jl(io.bind(null,_)):nl(P,jo.bind(null,_),{timeout:10*(1073741821-g)-h0()}),_.callbackNode=g}}}function jo(_,g){if(ru=0,g)return g=E0(),da(_,g),t0(_),null;var A=mo(_);if(A!==0){if(g=_.callbackNode,(Ln&(nu|fu))!==Rr)throw Error(t(327));if(qs(),_===fe&&A===Pe||Ds(_,A),ie!==null){var P=Ln;Ln|=nu;var B=U0(_);do try{nd();break}catch(yt){fa(_,yt)}while(1);if(ju(),Ln=P,Zu.current=B,Me===ei)throw g=at,Ds(_,A),Ol(_,A),t0(_),g;if(ie===null)switch(B=_.finishedWork=_.current.alternate,_.finishedExpirationTime=A,P=Me,fe=null,P){case Li:case ei:throw Error(t(345));case Kn:da(_,2=A){_.lastPingedTime=A,Ds(_,A);break}}if(Z=mo(_),Z!==0&&Z!==A)break;if(P!==0&&P!==A){_.lastPingedTime=P;break}_.timeoutHandle=an(Rl.bind(null,_),B);break}Rl(_);break;case g0:if(Ol(_,A),P=_.lastSuspendedTime,A===P&&(_.nextKnownPendingLevel=qc(B)),_n&&(B=_.lastPingedTime,B===0||B>=A)){_.lastPingedTime=A,Ds(_,A);break}if(B=mo(_),B!==0&&B!==A)break;if(P!==0&&P!==A){_.lastPingedTime=P;break}if(Qt!==1073741823?P=10*(1073741821-Qt)-h0():mt===1073741823?P=0:(P=10*(1073741821-mt)-5e3,B=h0(),A=10*(1073741821-A)-B,P=B-P,0>P&&(P=0),P=(120>P?120:480>P?480:1080>P?1080:1920>P?1920:3e3>P?3e3:4320>P?4320:1960*gf(P/1960))-P,A=P?P=0:(B=de.busyDelayMs|0,Z=h0()-(10*(1073741821-Z)-(de.timeoutMs|0||5e3)),P=Z<=B?0:B+P-Z),10 component higher in the tree to provide a loading indicator or placeholder to display.`+Hr(B))}Me!==_0&&(Me=Kn),Z=Cl(Z,B),Rt=P;do{switch(Rt.tag){case 3:de=Z,Rt.effectTag|=4096,Rt.expirationTime=g;var je=_s(Rt,de,g);ua(Rt,je);break e;case 1:de=Z;var st=Rt.type,$t=Rt.stateNode;if((Rt.effectTag&64)===0&&(typeof st.getDerivedStateFromError=="function"||$t!==null&&typeof $t.componentDidCatch=="function"&&(mr===null||!mr.has($t)))){Rt.effectTag|=4096,Rt.expirationTime=g;var Wn=aa(Rt,de,g);ua(Rt,Wn);break e}}Rt=Rt.return}while(Rt!==null)}ie=yo(ie)}catch(oi){g=oi;continue}break}while(1)}function U0(){var _=Zu.current;return Zu.current=bo,_===null?bo:_}function cc(_,g){_Sn&&(Sn=_)}function _2(){for(;ie!==null;)ie=rd(ie)}function nd(){for(;ie!==null&&!$n();)ie=rd(ie)}function rd(_){var g=Ha(_.alternate,_,Pe);return _.memoizedProps=_.pendingProps,g===null&&(g=yo(_)),Es.current=null,g}function yo(_){ie=_;do{var g=ie.alternate;if(_=ie.return,(ie.effectTag&2048)===0){e:{var A=g;g=ie;var P=Pe,B=g.pendingProps;switch(g.tag){case 2:break;case 16:break;case 15:case 0:break;case 1:eu(g.type)&&Q0(g);break;case 3:Je(g),Yi(g),B=g.stateNode,B.pendingContext&&(B.context=B.pendingContext,B.pendingContext=null),(A===null||A.child===null)&&$l(g)&&Qu(g),Qr(g);break;case 5:oe(g);var Z=$(Oe.current);if(P=g.type,A!==null&&g.stateNode!=null)qu(A,g,P,B,Z),A.ref!==g.ref&&(g.effectTag|=128);else if(B){if(A=$(Ce.current),$l(g)){if(B=g,!S)throw Error(t(175));A=su(B.stateNode,B.type,B.memoizedProps,Z,A,B),B.updateQueue=A,A=A!==null,A&&Qu(g)}else{var de=ce(P,B,Z,A,g);$r(de,g,!1,!1),g.stateNode=de,le(de,P,B,Z,A)&&Qu(g)}g.ref!==null&&(g.effectTag|=128)}else if(g.stateNode===null)throw Error(t(166));break;case 6:if(A&&g.stateNode!=null)xn(A,g,A.memoizedProps,B);else{if(typeof B!="string"&&g.stateNode===null)throw Error(t(166));if(A=$(Oe.current),Z=$(Ce.current),$l(g)){if(A=g,!S)throw Error(t(176));(A=ki(A.stateNode,A.memoizedProps,A))&&Qu(g)}else g.stateNode=nn(B,A,Z,g)}break;case 11:break;case 13:if(mi(qe,g),B=g.memoizedState,(g.effectTag&64)!==0){g.expirationTime=P;break e}B=B!==null,Z=!1,A===null?g.memoizedProps.fallback!==void 0&&$l(g):(P=A.memoizedState,Z=P!==null,B||P===null||(P=A.child.sibling,P!==null&&(de=g.firstEffect,de!==null?(g.firstEffect=P,P.nextEffect=de):(g.firstEffect=g.lastEffect=P,P.nextEffect=null),P.effectTag=8))),B&&!Z&&(g.mode&2)!==0&&(A===null&&g.memoizedProps.unstable_avoidThisFallback!==!0||(qe.current&1)!==0?Me===Li&&(Me=$u):((Me===Li||Me===$u)&&(Me=g0),Sn!==0&&fe!==null&&(Ol(fe,Pe),Ts(fe,Sn)))),Er&&B&&(g.effectTag|=4),Vt&&(B||Z)&&(g.effectTag|=4);break;case 7:break;case 8:break;case 12:break;case 4:Je(g),Qr(g);break;case 10:wu(g);break;case 9:break;case 14:break;case 17:eu(g.type)&&Q0(g);break;case 19:if(mi(qe,g),B=g.memoizedState,B===null)break;if(Z=(g.effectTag&64)!==0,de=B.rendering,de===null){if(Z)Lu(B,!1);else if(Me!==Li||A!==null&&(A.effectTag&64)!==0)for(A=g.child;A!==null;){if(de=rt(A),de!==null){for(g.effectTag|=64,Lu(B,!1),A=de.updateQueue,A!==null&&(g.updateQueue=A,g.effectTag|=4),B.lastEffect===null&&(g.firstEffect=null),g.lastEffect=B.lastEffect,A=P,B=g.child;B!==null;)Z=B,P=A,Z.effectTag&=2,Z.nextEffect=null,Z.firstEffect=null,Z.lastEffect=null,de=Z.alternate,de===null?(Z.childExpirationTime=0,Z.expirationTime=P,Z.child=null,Z.memoizedProps=null,Z.memoizedState=null,Z.updateQueue=null,Z.dependencies=null):(Z.childExpirationTime=de.childExpirationTime,Z.expirationTime=de.expirationTime,Z.child=de.child,Z.memoizedProps=de.memoizedProps,Z.memoizedState=de.memoizedState,Z.updateQueue=de.updateQueue,P=de.dependencies,Z.dependencies=P===null?null:{expirationTime:P.expirationTime,firstContext:P.firstContext,responders:P.responders}),B=B.sibling;en(qe,qe.current&1|2,g),g=g.child;break e}A=A.sibling}}else{if(!Z)if(A=rt(de),A!==null){if(g.effectTag|=64,Z=!0,A=A.updateQueue,A!==null&&(g.updateQueue=A,g.effectTag|=4),Lu(B,!0),B.tail===null&&B.tailMode==="hidden"&&!de.alternate){g=g.lastEffect=B.lastEffect,g!==null&&(g.nextEffect=null);break}}else h0()>B.tailExpiration&&1B&&(B=P),de>B&&(B=de),Z=Z.sibling;A.childExpirationTime=B}if(g!==null)return g;_!==null&&(_.effectTag&2048)===0&&(_.firstEffect===null&&(_.firstEffect=ie.firstEffect),ie.lastEffect!==null&&(_.lastEffect!==null&&(_.lastEffect.nextEffect=ie.firstEffect),_.lastEffect=ie.lastEffect),1_?g:_}function Rl(_){var g=hs();return co(99,ul.bind(null,_,g)),null}function ul(_,g){do qs();while(ti!==null);if((Ln&(nu|fu))!==Rr)throw Error(t(327));var A=_.finishedWork,P=_.finishedExpirationTime;if(A===null)return null;if(_.finishedWork=null,_.finishedExpirationTime=0,A===_.current)throw Error(t(177));_.callbackNode=null,_.callbackExpirationTime=0,_.callbackPriority=90,_.nextKnownPendingLevel=0;var B=qc(A);if(_.firstPendingTime=B,P<=_.lastSuspendedTime?_.firstSuspendedTime=_.lastSuspendedTime=_.nextKnownPendingLevel=0:P<=_.firstSuspendedTime&&(_.firstSuspendedTime=P-1),P<=_.lastPingedTime&&(_.lastPingedTime=0),P<=_.lastExpiredTime&&(_.lastExpiredTime=0),_===fe&&(ie=fe=null,Pe=0),1=A?Kt(_,g,A):(en(qe,qe.current&1,g),g=mu(_,g,A),g!==null?g.sibling:null);en(qe,qe.current&1,g);break;case 19:if(P=g.childExpirationTime>=A,(_.effectTag&64)!==0){if(P)return bn(_,g,A);g.effectTag|=64}if(B=g.memoizedState,B!==null&&(B.rendering=null,B.tail=null),en(qe,qe.current,g),!P)return null}return mu(_,g,A)}ho=!1}}else ho=!1;switch(g.expirationTime=0,g.tag){case 2:if(P=g.type,_!==null&&(_.alternate=null,g.alternate=null,g.effectTag|=2),_=g.pendingProps,B=Ru(g,Ai.current),Fo(g,A),B=un(null,g,P,_,B,A),g.effectTag|=1,typeof B=="object"&&B!==null&&typeof B.render=="function"&&B.$$typeof===void 0){if(g.tag=1,fn(),eu(P)){var Z=!0;li(g)}else Z=!1;g.memoizedState=B.state!==null&&B.state!==void 0?B.state:null;var de=P.getDerivedStateFromProps;typeof de=="function"&&Zl(g,P,de,_),B.updater=oa,g.stateNode=B,B._reactInternalFiber=g,Bs(g,P,_,A),g=tt(null,g,P,!0,Z,A)}else g.tag=0,Bi(null,g,B,A),g=g.child;return g;case 16:if(B=g.elementType,_!==null&&(_.alternate=null,g.alternate=null,g.effectTag|=2),_=g.pendingProps,Ae(B),B._status!==1)throw B._result;switch(B=B._result,g.type=B,Z=g.tag=ol(B),_=Yn(B,_),Z){case 0:g=to(null,g,B,_,A);break;case 1:g=xe(null,g,B,_,A);break;case 11:g=Ci(null,g,B,_,A);break;case 14:g=mf(null,g,B,Yn(B.type,_),P,A);break;default:throw Error(t(306,B,""))}return g;case 0:return P=g.type,B=g.pendingProps,B=g.elementType===P?B:Yn(P,B),to(_,g,P,B,A);case 1:return P=g.type,B=g.pendingProps,B=g.elementType===P?B:Yn(P,B),xe(_,g,P,B,A);case 3:if(Ke(g),P=g.updateQueue,P===null)throw Error(t(282));if(B=g.memoizedState,B=B!==null?B.element:null,S0(g,P,g.pendingProps,null,A),P=g.memoizedState.element,P===B)tu(),g=mu(_,g,A);else{if((B=g.stateNode.hydrate)&&(S?(Su=F0(g.stateNode.containerInfo),Xu=g,B=_i=!0):B=!1),B)for(A=Y(g,null,P,A),g.child=A;A;)A.effectTag=A.effectTag&-3|1024,A=A.sibling;else Bi(_,g,P,A),tu();g=g.child}return g;case 5:return vt(g),_===null&&Uo(g),P=g.type,B=g.pendingProps,Z=_!==null?_.memoizedProps:null,de=B.children,dt(P,B)?de=null:Z!==null&&dt(P,Z)&&(g.effectTag|=16),eo(_,g),g.mode&4&&A!==1&&At(P,B)?(g.expirationTime=g.childExpirationTime=1,g=null):(Bi(_,g,de,A),g=g.child),g;case 6:return _===null&&Uo(g),null;case 13:return Kt(_,g,A);case 4:return Ne(g,g.stateNode.containerInfo),P=g.pendingProps,_===null?g.child=H(g,null,P,A):Bi(_,g,P,A),g.child;case 11:return P=g.type,B=g.pendingProps,B=g.elementType===P?B:Yn(P,B),Ci(_,g,P,B,A);case 7:return Bi(_,g,g.pendingProps,A),g.child;case 8:return Bi(_,g,g.pendingProps.children,A),g.child;case 12:return Bi(_,g,g.pendingProps.children,A),g.child;case 10:e:{if(P=g.type._context,B=g.pendingProps,de=g.memoizedProps,Z=B.value,zu(g,Z),de!==null){var yt=de.value;if(Z=Fe(yt,Z)?0:(typeof P._calculateChangedBits=="function"?P._calculateChangedBits(yt,Z):1073741823)|0,Z===0){if(de.children===B.children&&!yi.current){g=mu(_,g,A);break e}}else for(yt=g.child,yt!==null&&(yt.return=g);yt!==null;){var Rt=yt.dependencies;if(Rt!==null){de=yt.child;for(var Nt=Rt.firstContext;Nt!==null;){if(Nt.context===P&&(Nt.observedBits&Z)!==0){yt.tag===1&&(Nt=v0(A,null),Nt.tag=2,J0(yt,Nt)),yt.expirationTime"u")return!1;var g=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(g.isDisabled||!g.supportsFiber)return!0;try{var A=g.inject(_);ca=function(P){try{g.onCommitFiberRoot(A,P,void 0,(P.current.effectTag&64)===64)}catch{}},ws=function(P){try{g.onCommitFiberUnmount(A,P)}catch{}}}catch{}return!0}function ts(_,g,A,P){this.tag=_,this.key=A,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=g,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=P,this.effectTag=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.childExpirationTime=this.expirationTime=0,this.alternate=null}function Ho(_,g,A,P){return new ts(_,g,A,P)}function Ef(_){return _=_.prototype,!(!_||!_.isReactComponent)}function ol(_){if(typeof _=="function")return Ef(_)?1:0;if(_!=null){if(_=_.$$typeof,_===De)return 11;if(_===we)return 14}return 2}function Vu(_,g){var A=_.alternate;return A===null?(A=Ho(_.tag,g,_.key,_.mode),A.elementType=_.elementType,A.type=_.type,A.stateNode=_.stateNode,A.alternate=_,_.alternate=A):(A.pendingProps=g,A.effectTag=0,A.nextEffect=null,A.firstEffect=null,A.lastEffect=null),A.childExpirationTime=_.childExpirationTime,A.expirationTime=_.expirationTime,A.child=_.child,A.memoizedProps=_.memoizedProps,A.memoizedState=_.memoizedState,A.updateQueue=_.updateQueue,g=_.dependencies,A.dependencies=g===null?null:{expirationTime:g.expirationTime,firstContext:g.firstContext,responders:g.responders},A.sibling=_.sibling,A.index=_.index,A.ref=_.ref,A}function qa(_,g,A,P,B,Z){var de=2;if(P=_,typeof _=="function")Ef(_)&&(de=1);else if(typeof _=="string")de=5;else e:switch(_){case j:return n0(A.children,B,Z,g);case me:de=8,B|=7;break;case q:de=8,B|=1;break;case V:return _=Ho(12,A,g,B|8),_.elementType=V,_.type=V,_.expirationTime=Z,_;case ge:return _=Ho(13,A,g,B),_.type=ge,_.elementType=ge,_.expirationTime=Z,_;case ae:return _=Ho(19,A,g,B),_.elementType=ae,_.expirationTime=Z,_;default:if(typeof _=="object"&&_!==null)switch(_.$$typeof){case re:de=10;break e;case y:de=9;break e;case De:de=11;break e;case we:de=14;break e;case he:de=16,P=null;break e}throw Error(t(130,_==null?_:typeof _,""))}return g=Ho(de,A,g,B),g.elementType=_,g.type=P,g.expirationTime=Z,g}function n0(_,g,A,P){return _=Ho(7,_,P,g),_.expirationTime=A,_}function j0(_,g,A){return _=Ho(6,_,null,g),_.expirationTime=A,_}function Df(_,g,A){return g=Ho(4,_.children!==null?_.children:[],_.key,g),g.expirationTime=A,g.stateNode={containerInfo:_.containerInfo,pendingChildren:null,implementation:_.implementation},g}function Wc(_,g,A){this.tag=g,this.current=null,this.containerInfo=_,this.pingCache=this.pendingChildren=null,this.finishedExpirationTime=0,this.finishedWork=null,this.timeoutHandle=lr,this.pendingContext=this.context=null,this.hydrate=A,this.callbackNode=null,this.callbackPriority=90,this.lastExpiredTime=this.lastPingedTime=this.nextKnownPendingLevel=this.lastSuspendedTime=this.firstSuspendedTime=this.firstPendingTime=0}function dc(_,g){var A=_.firstSuspendedTime;return _=_.lastSuspendedTime,A!==0&&A>=g&&_<=g}function Ol(_,g){var A=_.firstSuspendedTime,P=_.lastSuspendedTime;Ag||A===0)&&(_.lastSuspendedTime=g),g<=_.lastPingedTime&&(_.lastPingedTime=0),g<=_.lastExpiredTime&&(_.lastExpiredTime=0)}function Ts(_,g){g>_.firstPendingTime&&(_.firstPendingTime=g);var A=_.firstSuspendedTime;A!==0&&(g>=A?_.firstSuspendedTime=_.lastSuspendedTime=_.nextKnownPendingLevel=0:g>=_.lastSuspendedTime&&(_.lastSuspendedTime=g+1),g>_.nextKnownPendingLevel&&(_.nextKnownPendingLevel=g))}function da(_,g){var A=_.lastExpiredTime;(A===0||A>g)&&(_.lastExpiredTime=g)}function ud(_){var g=_._reactInternalFiber;if(g===void 0)throw typeof _.render=="function"?Error(t(188)):Error(t(268,Object.keys(_)));return _=Qe(g),_===null?null:_.stateNode}function pa(_,g){_=_.memoizedState,_!==null&&_.dehydrated!==null&&_.retryTime{"use strict";Object.defineProperty(ec,"__esModule",{value:!0});var _P=0;ec.__interactionsRef=null;ec.__subscriberRef=null;ec.unstable_clear=function(o){return o()};ec.unstable_getCurrent=function(){return null};ec.unstable_getThreadID=function(){return++_P};ec.unstable_trace=function(o,l,f){return f()};ec.unstable_wrap=function(o){return o};ec.unstable_subscribe=function(){};ec.unstable_unsubscribe=function(){}});var WS=nt(vu=>{"use strict";process.env.NODE_ENV!=="production"&&function(){"use strict";Object.defineProperty(vu,"__esModule",{value:!0});var o=!0,l=0,f=0,h=0;vu.__interactionsRef=null,vu.__subscriberRef=null,o&&(vu.__interactionsRef={current:new Set},vu.__subscriberRef={current:null});function E(ae){if(!o)return ae();var we=vu.__interactionsRef.current;vu.__interactionsRef.current=new Set;try{return ae()}finally{vu.__interactionsRef.current=we}}function t(){return o?vu.__interactionsRef.current:null}function N(){return++h}function F(ae,we,he){var ve=arguments.length>3&&arguments[3]!==void 0?arguments[3]:l;if(!o)return he();var ue={__count:1,id:f++,name:ae,timestamp:we},Ae=vu.__interactionsRef.current,ze=new Set(Ae);ze.add(ue),vu.__interactionsRef.current=ze;var We=vu.__subscriberRef.current,gt;try{We!==null&&We.onInteractionTraced(ue)}finally{try{We!==null&&We.onWorkStarted(ze,ve)}finally{try{gt=he()}finally{vu.__interactionsRef.current=Ae;try{We!==null&&We.onWorkStopped(ze,ve)}finally{ue.__count--,We!==null&&ue.__count===0&&We.onInteractionScheduledWorkCompleted(ue)}}}}return gt}function k(ae){var we=arguments.length>1&&arguments[1]!==void 0?arguments[1]:l;if(!o)return ae;var he=vu.__interactionsRef.current,ve=vu.__subscriberRef.current;ve!==null&&ve.onWorkScheduled(he,we),he.forEach(function(ze){ze.__count++});var ue=!1;function Ae(){var ze=vu.__interactionsRef.current;vu.__interactionsRef.current=he,ve=vu.__subscriberRef.current;try{var We;try{ve!==null&&ve.onWorkStarted(he,we)}finally{try{We=ae.apply(void 0,arguments)}finally{vu.__interactionsRef.current=ze,ve!==null&&ve.onWorkStopped(he,we)}}return We}finally{ue||(ue=!0,he.forEach(function(gt){gt.__count--,ve!==null&>.__count===0&&ve.onInteractionScheduledWorkCompleted(gt)}))}}return Ae.cancel=function(){ve=vu.__subscriberRef.current;try{ve!==null&&ve.onWorkCanceled(he,we)}finally{he.forEach(function(We){We.__count--,ve&&We.__count===0&&ve.onInteractionScheduledWorkCompleted(We)})}},Ae}var x=null;o&&(x=new Set);function j(ae){o&&(x.add(ae),x.size===1&&(vu.__subscriberRef.current={onInteractionScheduledWorkCompleted:re,onInteractionTraced:V,onWorkCanceled:ge,onWorkScheduled:y,onWorkStarted:me,onWorkStopped:De}))}function q(ae){o&&(x.delete(ae),x.size===0&&(vu.__subscriberRef.current=null))}function V(ae){var we=!1,he=null;if(x.forEach(function(ve){try{ve.onInteractionTraced(ae)}catch(ue){we||(we=!0,he=ue)}}),we)throw he}function re(ae){var we=!1,he=null;if(x.forEach(function(ve){try{ve.onInteractionScheduledWorkCompleted(ae)}catch(ue){we||(we=!0,he=ue)}}),we)throw he}function y(ae,we){var he=!1,ve=null;if(x.forEach(function(ue){try{ue.onWorkScheduled(ae,we)}catch(Ae){he||(he=!0,ve=Ae)}}),he)throw ve}function me(ae,we){var he=!1,ve=null;if(x.forEach(function(ue){try{ue.onWorkStarted(ae,we)}catch(Ae){he||(he=!0,ve=Ae)}}),he)throw ve}function De(ae,we){var he=!1,ve=null;if(x.forEach(function(ue){try{ue.onWorkStopped(ae,we)}catch(Ae){he||(he=!0,ve=Ae)}}),he)throw ve}function ge(ae,we){var he=!1,ve=null;if(x.forEach(function(ue){try{ue.onWorkCanceled(ae,we)}catch(Ae){he||(he=!0,ve=Ae)}}),he)throw ve}vu.unstable_clear=E,vu.unstable_getCurrent=t,vu.unstable_getThreadID=N,vu.unstable_trace=F,vu.unstable_wrap=k,vu.unstable_subscribe=j,vu.unstable_unsubscribe=q}()});var VS=nt((_H,vD)=>{"use strict";process.env.NODE_ENV==="production"?vD.exports=qS():vD.exports=WS()});var GS=nt((EH,Yy)=>{"use strict";process.env.NODE_ENV!=="production"&&(Yy.exports=function o(l){"use strict";var f=Py(),h=Mi(),E=XE(),t=z_(),N=VS(),F=0,k=1,x=2,j=3,q=4,V=5,re=6,y=7,me=8,De=9,ge=10,ae=11,we=12,he=13,ve=14,ue=15,Ae=16,ze=17,We=18,gt=19,_t=20,Qe=21,ot=function(){};ot=function(c,d){for(var D=arguments.length,C=new Array(D>2?D-2:0),O=2;O8)throw new Error("warningWithoutStack() currently supports at most 8 arguments.");if(!c){if(typeof console<"u"){var z=C.map(function(se){return""+se});z.unshift("Warning: "+d),Function.prototype.apply.call(console.error,console,z)}try{var G=0,ne="Warning: "+d.replace(/%s/g,function(){return C[G++]});throw new Error(ne)}catch{}}};var Ve=ot;function Pt(c){return c._reactInternalFiber}function Jt(c,d){c._reactInternalFiber=d}var it=h.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;it.hasOwnProperty("ReactCurrentDispatcher")||(it.ReactCurrentDispatcher={current:null}),it.hasOwnProperty("ReactCurrentBatchConfig")||(it.ReactCurrentBatchConfig={suspense:null});var J=typeof Symbol=="function"&&Symbol.for,ce=J?Symbol.for("react.element"):60103,Re=J?Symbol.for("react.portal"):60106,le=J?Symbol.for("react.fragment"):60107,He=J?Symbol.for("react.strict_mode"):60108,dt=J?Symbol.for("react.profiler"):60114,At=J?Symbol.for("react.provider"):60109,nn=J?Symbol.for("react.context"):60110,an=J?Symbol.for("react.concurrent_mode"):60111,On=J?Symbol.for("react.forward_ref"):60112,lr=J?Symbol.for("react.suspense"):60113,ln=J?Symbol.for("react.suspense_list"):60120,Vt=J?Symbol.for("react.memo"):60115,Er=J?Symbol.for("react.lazy"):60116,S=J?Symbol.for("react.fundamental"):60117,zt=J?Symbol.for("react.responder"):60118,Xn=J?Symbol.for("react.scope"):60119,vr=typeof Symbol=="function"&&Symbol.iterator,jr="@@iterator";function fr(c){if(c===null||typeof c!="object")return null;var d=vr&&c[vr]||c[jr];return typeof d=="function"?d:null}var zr=Ve;zr=function(c,d){if(!c){for(var D=it.ReactDebugCurrentFrame,C=D.getStackAddendum(),O=arguments.length,z=new Array(O>2?O-2:0),G=2;G import('./MyComponent'))`,C),c._status=Ao,c._result=O}},function(C){c._status===c0&&(c._status=Jo,c._result=C)})}}function $o(c,d,D){var C=d.displayName||d.name||"";return c.displayName||(C!==""?D+"("+C+")":D)}function qt(c){if(c==null)return null;if(typeof c.tag=="number"&&Ve(!1,"Received an unexpected object in getComponentName(). This is likely a bug in React. Please file an issue."),typeof c=="function")return c.displayName||c.name||null;if(typeof c=="string")return c;switch(c){case le:return"Fragment";case Re:return"Portal";case dt:return"Profiler";case He:return"StrictMode";case lr:return"Suspense";case ln:return"SuspenseList"}if(typeof c=="object")switch(c.$$typeof){case nn:return"Context.Consumer";case At:return"Context.Provider";case On:return $o(c,c.render,"ForwardRef");case Vt:return qt(c.type);case Er:{var d=c,D=Fs(d);if(D)return qt(D);break}}return null}var xi=0,lu=1,vi=2,Dr=4,el=6,Y0=8,Bu=16,K0=32,Kr=64,Oo=128,Mo=256,F0=512,su=1024,ki=1028,Ps=932,Kl=2047,P0=2048,d0=4096,Hr=!0,Ri=!0,X0=!0,mi=!0,en=!0,In=!0,Ai=!1,yi=!1,Wt=!1,Ru=!1,eu=!1,Q0=!0,Yi=!1,Xl=!1,ko=!1,li=!1,ao=!1,Ql=it.ReactCurrentOwner;function No(c){var d=c,D=c;if(c.alternate)for(;d.return;)d=d.return;else{var C=d;do d=C,(d.effectTag&(vi|su))!==xi&&(D=d.return),C=d.return;while(C)}return d.tag===j?D:null}function Is(c){return No(c)===c}function $n(c){{var d=Ql.current;if(d!==null&&d.tag===k){var D=d,C=D.stateNode;C._warnedAboutRefsInRender||Ve(!1,"%s is accessing isMounted inside its render() function. render() should be a pure function of props and state. It should never access something that requires stale data from the previous render, such as refs. Move this logic to componentDidMount and componentDidUpdate instead.",qt(D.type)||"A component"),C._warnedAboutRefsInRender=!0}}var O=Pt(c);return O?No(O)===O:!1}function tl(c){if(No(c)!==c)throw Error("Unable to find node on an unmounted component.")}function fo(c){var d=c.alternate;if(!d){var D=No(c);if(D===null)throw Error("Unable to find node on an unmounted component.");return D!==c?null:c}for(var C=c,O=d;;){var z=C.return;if(z===null)break;var G=z.alternate;if(G===null){var ne=z.return;if(ne!==null){C=O=ne;continue}break}if(z.child===G.child){for(var se=z.child;se;){if(se===C)return tl(z),c;if(se===O)return tl(z),d;se=se.sibling}throw Error("Unable to find node on an unmounted component.")}if(C.return!==O.return)C=z,O=G;else{for(var Ue=!1,Xe=z.child;Xe;){if(Xe===C){Ue=!0,C=z,O=G;break}if(Xe===O){Ue=!0,O=z,C=G;break}Xe=Xe.sibling}if(!Ue){for(Xe=G.child;Xe;){if(Xe===C){Ue=!0,C=G,O=z;break}if(Xe===O){Ue=!0,O=G,C=z;break}Xe=Xe.sibling}if(!Ue)throw Error("Child was not found in either parent set. This indicates a bug in React related to the return pointer. Please file an issue.")}}if(C.alternate!==O)throw Error("Return fibers should always be each others' alternates. This error is likely caused by a bug in React. Please file an issue.")}if(C.tag!==j)throw Error("Unable to find node on an unmounted component.");return C.stateNode.current===C?c:d}function I0(c){var d=fo(c);if(!d)return null;for(var D=d;;){if(D.tag===V||D.tag===re)return D;if(D.child){D.child.return=D,D=D.child;continue}if(D===d)return null;for(;!D.sibling;){if(!D.return||D.return===d)return null;D=D.return}D.sibling.return=D.return,D=D.sibling}return null}function Sl(c){var d=fo(c);if(!d)return null;for(var D=d;;){if(D.tag===V||D.tag===re||Wt&&D.tag===_t)return D;if(D.child&&D.tag!==q){D.child.return=D,D=D.child;continue}if(D===d)return null;for(;!D.sibling;){if(!D.return||D.return===d)return null;D=D.return}D.sibling.return=D.return,D=D.sibling}return null}var Lo=l.getPublicInstance,St=l.getRootHostContext,Bt=l.getChildHostContext,Hn=l.prepareForCommit,qr=l.resetAfterCommit,Ki=l.createInstance,Xr=l.appendInitialChild,Au=l.finalizeInitialChildren,p0=l.prepareUpdate,Ni=l.shouldSetTextContent,h0=l.shouldDeprioritizeSubtree,hs=l.createTextInstance,Ct=l.setTimeout,co=l.clearTimeout,nl=l.noTimeout,Jl=l.now,Uu=l.isPrimaryRenderer,vs=l.warnsIfNotActing,b0=l.supportsMutation,Q=l.supportsPersistence,Se=l.supportsHydration,Fe=l.mountResponderInstance,Le=l.unmountResponderInstance,pt=l.getFundamentalComponentInstance,Yn=l.mountFundamentalComponent,Cn=l.shouldUpdateFundamentalComponent,cr=l.getInstanceFromNode,Si=l.appendChild,Ou=l.appendChildToContainer,ju=l.commitTextUpdate,zu=l.commitMount,wu=l.commitUpdate,Ti=l.insertBefore,Fo=l.insertInContainerBefore,Mu=l.removeChild,po=l.removeChildFromContainer,Hu=l.resetTextContent,Pa=l.hideInstance,v0=l.hideTextInstance,ia=l.unhideInstance,J0=l.unhideTextInstance,ua=l.updateFundamentalComponent,Ia=l.unmountFundamentalComponent,ms=l.cloneInstance,S0=l.createContainerChildSet,Qn=l.appendChildToContainerChildSet,ac=l.finalizeContainerChildren,si=l.replaceContainerChildren,Jr=l.cloneHiddenInstance,Zl=l.cloneHiddenTextInstance,oa=l.cloneInstance,pf=l.canHydrateInstance,bs=l.canHydrateTextInstance,ba=l.canHydrateSuspenseInstance,Bs=l.isSuspenseInstancePending,m0=l.isSuspenseInstanceFallback,Us=l.registerSuspenseInstanceRetry,zi=l.getNextHydratableSibling,U=l.getFirstHydratableChild,H=l.hydrateInstance,Y=l.hydrateTextInstance,ee=l.hydrateSuspenseInstance,Ce=l.getNextHydratableInstanceAfterSuspenseInstance,_e=l.commitHydratedContainer,Oe=l.commitHydratedSuspenseInstance,$=l.clearSuspenseBoundary,Ne=l.clearSuspenseBoundaryFromContainer,Je=l.didNotMatchHydratedContainerTextInstance,vt=l.didNotMatchHydratedTextInstance,oe=l.didNotHydrateContainerInstance,qe=l.didNotHydrateInstance,rt=l.didNotFindHydratableContainerInstance,xt=l.didNotFindHydratableContainerTextInstance,kt=l.didNotFindHydratableContainerSuspenseInstance,bt=l.didNotFindHydratableInstance,sn=l.didNotFindHydratableTextInstance,rn=l.didNotFindHydratableSuspenseInstance,Ft=/^(.*)[\\\/]/,Dn=function(c,d,D){var C="";if(d){var O=d.fileName,z=O.replace(Ft,"");if(/^index\./.test(z)){var G=O.match(Ft);if(G){var ne=G[1];if(ne){var se=ne.replace(Ft,"");z=se+"/"+z}}}C=" (at "+z+":"+d.lineNumber+")"}else D&&(C=" (created by "+D+")");return` + in `+(c||"Unknown")+C},dr=it.ReactDebugCurrentFrame;function er(c){switch(c.tag){case j:case q:case re:case y:case ge:case De:return"";default:var d=c._debugOwner,D=c._debugSource,C=qt(c.type),O=null;return d&&(O=qt(d.type)),Dn(C,D,O)}}function Cr(c){var d="",D=c;do d+=er(D),D=D.return;while(D);return d}var Rn=null,Nr=null;function y0(){{if(Rn===null)return null;var c=Rn._debugOwner;if(c!==null&&typeof c<"u")return qt(c.type)}return null}function Lr(){return Rn===null?"":Cr(Rn)}function ut(){dr.getCurrentStack=null,Rn=null,Nr=null}function wt(c){dr.getCurrentStack=Lr,Rn=c,Nr=null}function et(c){Nr=c}var It="\u269B",un="\u26D4",fn=typeof performance<"u"&&typeof performance.mark=="function"&&typeof performance.clearMarks=="function"&&typeof performance.measure=="function"&&typeof performance.clearMeasures=="function",Jn=null,wr=null,au=null,ku=!1,T0=!1,Z0=!1,Nu=0,gi=0,Po=new Set,rl=function(c){return It+" "+c},hf=function(c,d){var D=d?un+" ":It+" ",C=d?" Warning: "+d:"";return""+D+c+C},Tl=function(c){performance.mark(rl(c))},vf=function(c){performance.clearMarks(rl(c))},Io=function(c,d,D){var C=rl(d),O=hf(c,D);try{performance.measure(O,C)}catch{}performance.clearMarks(C),performance.clearMeasures(O)},ys=function(c,d){return c+" (#"+d+")"},js=function(c,d,D){return D===null?c+" ["+(d?"update":"mount")+"]":c+"."+D},bo=function(c,d){var D=qt(c.type)||"Unknown",C=c._debugID,O=c.alternate!==null,z=js(D,O,d);if(ku&&Po.has(z))return!1;Po.add(z);var G=ys(z,C);return Tl(G),!0},Bo=function(c,d){var D=qt(c.type)||"Unknown",C=c._debugID,O=c.alternate!==null,z=js(D,O,d),G=ys(z,C);vf(G)},gs=function(c,d,D){var C=qt(c.type)||"Unknown",O=c._debugID,z=c.alternate!==null,G=js(C,z,d),ne=ys(G,O);Io(G,ne,D)},Xu=function(c){switch(c.tag){case j:case V:case re:case q:case y:case ge:case De:case me:return!0;default:return!1}},Su=function(){wr!==null&&au!==null&&Bo(au,wr),au=null,wr=null,Z0=!1},_i=function(){for(var c=Jn;c;)c._debugIsCurrentlyTiming&&gs(c,null,null),c=c.return},C0=function(c){c.return!==null&&C0(c.return),c._debugIsCurrentlyTiming&&bo(c,null)},$0=function(){Jn!==null&&C0(Jn)};function Uo(){Hr&&gi++}function la(){Hr&&(ku&&(T0=!0),wr!==null&&wr!=="componentWillMount"&&wr!=="componentWillReceiveProps"&&(Z0=!0))}function $l(c){if(Hr){if(!fn||Xu(c)||(Jn=c,!bo(c,null)))return;c._debugIsCurrentlyTiming=!0}}function tu(c){if(Hr){if(!fn||Xu(c))return;c._debugIsCurrentlyTiming=!1,Bo(c,null)}}function Zr(c){if(Hr){if(!fn||Xu(c)||(Jn=c.return,!c._debugIsCurrentlyTiming))return;c._debugIsCurrentlyTiming=!1,gs(c,null,null)}}function ho(c){if(Hr){if(!fn||Xu(c)||(Jn=c.return,!c._debugIsCurrentlyTiming))return;c._debugIsCurrentlyTiming=!1;var d=c.tag===he?"Rendering was suspended":"An error was thrown inside this error boundary";gs(c,null,d)}}function Bi(c,d){if(Hr){if(!fn||(Su(),!bo(c,d)))return;au=c,wr=d}}function Ci(){if(Hr){if(!fn)return;if(wr!==null&&au!==null){var c=Z0?"Scheduled a cascading update":null;gs(au,wr,c)}wr=null,au=null}}function mf(c){if(Hr){if(Jn=c,!fn)return;Nu=0,Tl("(React Tree Reconciliation)"),$0()}}function yf(c,d){if(Hr){if(!fn)return;var D=null;if(c!==null)if(c.tag===j)D="A top-level update interrupted the previous render";else{var C=qt(c.type)||"Unknown";D="An update to "+C+" interrupted the previous render"}else Nu>1&&(D="There were cascading updates");Nu=0;var O=d?"(React Tree Reconciliation: Completed Root)":"(React Tree Reconciliation: Yielded)";_i(),Io(O,"(React Tree Reconciliation)",D)}}function eo(){if(Hr){if(!fn)return;ku=!0,T0=!1,Po.clear(),Tl("(Committing Changes)")}}function to(){if(Hr){if(!fn)return;var c=null;T0?c="Lifecycle hook scheduled a cascading update":Nu>0&&(c="Caused by a cascading update in earlier commit"),T0=!1,Nu++,ku=!1,Po.clear(),Io("(Committing Changes)","(Committing Changes)",c)}}function xe(){if(Hr){if(!fn)return;gi=0,Tl("(Committing Snapshot Effects)")}}function tt(){if(Hr){if(!fn)return;var c=gi;gi=0,Io("(Committing Snapshot Effects: "+c+" Total)","(Committing Snapshot Effects)",null)}}function Ke(){if(Hr){if(!fn)return;gi=0,Tl("(Committing Host Effects)")}}function Yt(){if(Hr){if(!fn)return;var c=gi;gi=0,Io("(Committing Host Effects: "+c+" Total)","(Committing Host Effects)",null)}}function Kt(){if(Hr){if(!fn)return;gi=0,Tl("(Calling Lifecycle Methods)")}}function pr(){if(Hr){if(!fn)return;var c=gi;gi=0,Io("(Calling Lifecycle Methods: "+c+" Total)","(Calling Lifecycle Methods)",null)}}var Ei=[],bn;bn=[];var mu=-1;function Qu(c){return{current:c}}function $r(c,d){if(mu<0){Ve(!1,"Unexpected pop.");return}d!==bn[mu]&&Ve(!1,"Unexpected Fiber popped."),c.current=Ei[mu],Ei[mu]=null,bn[mu]=null,mu--}function Qr(c,d,D){mu++,Ei[mu]=c.current,bn[mu]=D,c.current=d}var qu;qu={};var xn={};Object.freeze(xn);var x0=Qu(xn),Lu=Qu(!1),ui=xn;function Cl(c,d,D){return li?xn:D&&Xi(d)?ui:x0.current}function zs(c,d,D){if(!li){var C=c.stateNode;C.__reactInternalMemoizedUnmaskedChildContext=d,C.__reactInternalMemoizedMaskedChildContext=D}}function Wu(c,d){if(li)return xn;var D=c.type,C=D.contextTypes;if(!C)return xn;var O=c.stateNode;if(O&&O.__reactInternalMemoizedUnmaskedChildContext===d)return O.__reactInternalMemoizedMaskedChildContext;var z={};for(var G in C)z[G]=d[G];{var ne=qt(D)||"Unknown";E(C,z,"context",ne,Lr)}return O&&zs(c,d,z),z}function sa(){return li?!1:Lu.current}function Xi(c){if(li)return!1;var d=c.childContextTypes;return d!=null}function Hs(c){li||($r(Lu,c),$r(x0,c))}function R0(c){li||($r(Lu,c),$r(x0,c))}function Hi(c,d,D){if(!li){if(x0.current!==xn)throw Error("Unexpected context found on stack. This error is likely caused by a bug in React. Please file an issue.");Qr(x0,d,c),Qr(Lu,D,c)}}function A0(c,d,D){if(li)return D;var C=c.stateNode,O=d.childContextTypes;if(typeof C.getChildContext!="function"){{var z=qt(d)||"Unknown";qu[z]||(qu[z]=!0,Ve(!1,"%s.childContextTypes is specified but there is no getChildContext() method on the instance. You can either define getChildContext() on %s or remove childContextTypes from it.",z,z))}return D}var G;et("getChildContext"),Bi(c,"getChildContext"),G=C.getChildContext(),Ci(),et(null);for(var ne in G)if(!(ne in O))throw Error((qt(d)||"Unknown")+'.getChildContext(): key "'+ne+'" is not defined in childContextTypes.');{var se=qt(d)||"Unknown";E(O,G,"child context",se,Lr)}return f({},D,{},G)}function qi(c){if(li)return!1;var d=c.stateNode,D=d&&d.__reactInternalMemoizedMergedChildContext||xn;return ui=x0.current,Qr(x0,D,c),Qr(Lu,Lu.current,c),!0}function il(c,d,D){if(!li){var C=c.stateNode;if(!C)throw Error("Expected to have an instance by this point. This error is likely caused by a bug in React. Please file an issue.");if(D){var O=A0(c,d,ui);C.__reactInternalMemoizedMergedChildContext=O,$r(Lu,c),$r(x0,c),Qr(x0,O,c),Qr(Lu,D,c)}else $r(Lu,c),Qr(Lu,D,c)}}function xl(c){if(li)return xn;if(!(Is(c)&&c.tag===k))throw Error("Expected subtree parent to be a mounted class component. This error is likely caused by a bug in React. Please file an issue.");var d=c;do{switch(d.tag){case j:return d.stateNode.context;case k:{var D=d.type;if(Xi(D))return d.stateNode.__reactInternalMemoizedMergedChildContext;break}}d=d.return}while(d!==null);throw Error("Found unexpected detached subtree parent. This error is likely caused by a bug in React. Please file an issue.")}var B0=1,O0=2,vo=t.unstable_runWithPriority,Fu=t.unstable_scheduleCallback,Ju=t.unstable_cancelCallback,es=t.unstable_shouldYield,_s=t.unstable_requestPaint,aa=t.unstable_now,gf=t.unstable_getCurrentPriorityLevel,Zu=t.unstable_ImmediatePriority,Es=t.unstable_UserBlockingPriority,Rr=t.unstable_NormalPriority,no=t.unstable_LowPriority,nu=t.unstable_IdlePriority;if(In&&!(N.__interactionsRef!=null&&N.__interactionsRef.current!=null))throw Error("It is not supported to run the profiling version of a renderer (for example, `react-dom/profiling`) without also replacing the `scheduler/tracing` module with `scheduler/tracing-profiling`. Your bundler might have a setting for aliasing both modules. Learn more at http://fb.me/react-profiling");var fu={},Li=99,ei=98,Kn=97,$u=96,g0=95,_0=90,Ln=es,fe=_s!==void 0?_s:function(){},ie=null,Pe=null,Me=!1,at=aa(),mt=at<1e4?aa:function(){return aa()-at};function Qt(){switch(gf()){case Zu:return Li;case Es:return ei;case Rr:return Kn;case no:return $u;case nu:return g0;default:throw Error("Unknown priority level.")}}function An(c){switch(c){case Li:return Zu;case ei:return Es;case Kn:return Rr;case $u:return no;case g0:return nu;default:throw Error("Unknown priority level.")}}function Sn(c,d){var D=An(c);return vo(D,d)}function _n(c,d,D){var C=An(c);return Fu(C,d,D)}function Tn(c){return ie===null?(ie=[c],Pe=Fu(Zu,Fi)):ie.push(c),fu}function ir(c){c!==fu&&Ju(c)}function Ut(){if(Pe!==null){var c=Pe;Pe=null,Ju(c)}Fi()}function Fi(){if(!Me&&ie!==null){Me=!0;var c=0;try{var d=!0,D=ie;Sn(Li,function(){for(;c1?d-1:0),C=1;C2?D-2:0),O=2;O0&&(ja.forEach(function(Lt){c.add(qt(Lt.type)||"Component"),ts.add(Lt.type)}),ja=[]);var d=new Set;za.length>0&&(za.forEach(function(Lt){d.add(qt(Lt.type)||"Component"),ts.add(Lt.type)}),za=[]);var D=new Set;Ha.length>0&&(Ha.forEach(function(Lt){D.add(qt(Lt.type)||"Component"),ts.add(Lt.type)}),Ha=[]);var C=new Set;ca.length>0&&(ca.forEach(function(Lt){C.add(qt(Lt.type)||"Component"),ts.add(Lt.type)}),ca=[]);var O=new Set;ws.length>0&&(ws.forEach(function(Lt){O.add(qt(Lt.type)||"Component"),ts.add(Lt.type)}),ws=[]);var z=new Set;if(Ss.length>0&&(Ss.forEach(function(Lt){z.add(qt(Lt.type)||"Component"),ts.add(Lt.type)}),Ss=[]),d.size>0){var G=zo(d);Ve(!1,`Using UNSAFE_componentWillMount in strict mode is not recommended and may indicate bugs in your code. See https://fb.me/react-unsafe-component-lifecycles for details. + +* Move code with side effects to componentDidMount, and set initial state in the constructor. + +Please update the following components: %s`,G)}if(C.size>0){var ne=zo(C);Ve(!1,`Using UNSAFE_componentWillReceiveProps in strict mode is not recommended and may indicate bugs in your code. See https://fb.me/react-unsafe-component-lifecycles for details. + +* Move data fetching code or side effects to componentDidUpdate. +* If you're updating state whenever props change, refactor your code to use memoization techniques or move it to static getDerivedStateFromProps. Learn more at: https://fb.me/react-derived-state + +Please update the following components: %s`,ne)}if(z.size>0){var se=zo(z);Ve(!1,`Using UNSAFE_componentWillUpdate in strict mode is not recommended and may indicate bugs in your code. See https://fb.me/react-unsafe-component-lifecycles for details. + +* Move data fetching code or side effects to componentDidUpdate. + +Please update the following components: %s`,se)}if(c.size>0){var Ue=zo(c);qs(!1,`componentWillMount has been renamed, and is not recommended for use. See https://fb.me/react-unsafe-component-lifecycles for details. + +* Move code with side effects to componentDidMount, and set initial state in the constructor. +* Rename componentWillMount to UNSAFE_componentWillMount to suppress this warning in non-strict mode. In React 17.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run \`npx react-codemod rename-unsafe-lifecycles\` in your project source folder. + +Please update the following components: %s`,Ue)}if(D.size>0){var Xe=zo(D);qs(!1,`componentWillReceiveProps has been renamed, and is not recommended for use. See https://fb.me/react-unsafe-component-lifecycles for details. + +* Move data fetching code or side effects to componentDidUpdate. +* If you're updating state whenever props change, refactor your code to use memoization techniques or move it to static getDerivedStateFromProps. Learn more at: https://fb.me/react-derived-state +* Rename componentWillReceiveProps to UNSAFE_componentWillReceiveProps to suppress this warning in non-strict mode. In React 17.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run \`npx react-codemod rename-unsafe-lifecycles\` in your project source folder. + +Please update the following components: %s`,Xe)}if(O.size>0){var ht=zo(O);qs(!1,`componentWillUpdate has been renamed, and is not recommended for use. See https://fb.me/react-unsafe-component-lifecycles for details. + +* Move data fetching code or side effects to componentDidUpdate. +* Rename componentWillUpdate to UNSAFE_componentWillUpdate to suppress this warning in non-strict mode. In React 17.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run \`npx react-codemod rename-unsafe-lifecycles\` in your project source folder. + +Please update the following components: %s`,ht)}};var Ho=new Map,Ef=new Set;Al.recordLegacyContextWarning=function(c,d){var D=id(c);if(D===null){Ve(!1,"Expected to find a StrictMode component in a strict mode tree. This error is likely caused by a bug in React. Please file an issue.");return}if(!Ef.has(c.type)){var C=Ho.get(D);(c.type.contextTypes!=null||c.type.childContextTypes!=null||d!==null&&typeof d.getChildContext=="function")&&(C===void 0&&(C=[],Ho.set(D,C)),C.push(c))}},Al.flushLegacyContextWarning=function(){Ho.forEach(function(c,d){var D=new Set;c.forEach(function(z){D.add(qt(z.type)||"Component"),Ef.add(z.type)});var C=zo(D),O=Cr(d);Ve(!1,`Legacy context API has been detected within a strict-mode tree. + +The old API will be supported in all 16.x releases, but applications using it should migrate to the new version. + +Please update the following components: %s + +Learn more about this warning here: https://fb.me/react-legacy-context%s`,C,O)})},Al.discardPendingWarnings=function(){ja=[],za=[],Ha=[],ca=[],ws=[],Ss=[],Ho=new Map}}var ol=null,Vu=null,qa=function(c){ol=c};function n0(c){{if(ol===null)return c;var d=ol(c);return d===void 0?c:d.current}}function j0(c){return n0(c)}function Df(c){{if(ol===null)return c;var d=ol(c);if(d===void 0){if(c!=null&&typeof c.render=="function"){var D=n0(c.render);if(c.render!==D){var C={$$typeof:On,render:D};return c.displayName!==void 0&&(C.displayName=c.displayName),C}}return c}return d.current}}function Wc(c,d){{if(ol===null)return!1;var D=c.elementType,C=d.type,O=!1,z=typeof C=="object"&&C!==null?C.$$typeof:null;switch(c.tag){case k:{typeof C=="function"&&(O=!0);break}case F:{(typeof C=="function"||z===Er)&&(O=!0);break}case ae:{(z===On||z===Er)&&(O=!0);break}case ve:case ue:{(z===Vt||z===Er)&&(O=!0);break}default:return!1}if(O){var G=ol(D);if(G!==void 0&&G===ol(C))return!0}return!1}}function dc(c){{if(ol===null||typeof WeakSet!="function")return;Vu===null&&(Vu=new WeakSet),Vu.add(c)}}var Ol=function(c,d){{if(ol===null)return;var D=d.staleFamilies,C=d.updatedFamilies;tf(),Rp(function(){da(c.current,C,D)})}},Ts=function(c,d){{if(c.context!==xn)return;tf(),pv(function(){Xg(d,c,null,null)})}};function da(c,d,D){{var C=c.alternate,O=c.child,z=c.sibling,G=c.tag,ne=c.type,se=null;switch(G){case F:case ue:case k:se=ne;break;case ae:se=ne.render;break;default:break}if(ol===null)throw new Error("Expected resolveFamily to be set during hot reload.");var Ue=!1,Xe=!1;if(se!==null){var ht=ol(se);ht!==void 0&&(D.has(ht)?Xe=!0:d.has(ht)&&(G===k?Xe=!0:Ue=!0))}Vu!==null&&(Vu.has(c)||C!==null&&Vu.has(C))&&(Xe=!0),Xe&&(c._debugNeedsRemount=!0),(Xe||Ue)&&yl(c,Un),O!==null&&!Xe&&da(O,d,D),z!==null&&da(z,d,D)}}var ud=function(c,d){{var D=new Set,C=new Set(d.map(function(O){return O.current}));return pa(c.current,C,D),D}};function pa(c,d,D){{var C=c.child,O=c.sibling,z=c.tag,G=c.type,ne=null;switch(z){case F:case ue:case k:ne=G;break;case ae:ne=G.render;break;default:break}var se=!1;ne!==null&&d.has(ne)&&(se=!0),se?pc(c,D):C!==null&&pa(C,d,D),O!==null&&pa(O,d,D)}}function pc(c,d){{var D=Vc(c,d);if(D)return;for(var C=c;;){switch(C.tag){case V:d.add(C.stateNode);return;case q:d.add(C.stateNode.containerInfo);return;case j:d.add(C.stateNode.containerInfo);return}if(C.return===null)throw new Error("Expected to reach root first.");C=C.return}}}function Vc(c,d){for(var D=c,C=!1;;){if(D.tag===V)C=!0,d.add(D.stateNode);else if(D.child!==null){D.child.return=D,D=D.child;continue}if(D===c)return C;for(;D.sibling===null;){if(D.return===null||D.return===c)return C;D=D.return}D.sibling.return=D.return,D=D.sibling}return!1}function Wi(c,d){if(c&&c.defaultProps){var D=f({},d),C=c.defaultProps;for(var O in C)D[O]===void 0&&(D[O]=C[O]);return D}return d}function _(c){if(Zo(c),c._status!==Ao)throw c._result;return c._result}var g=Qu(null),A;A={};var P=null,B=null,Z=null,de=!1;function yt(){P=null,B=null,Z=null,de=!1}function Rt(){de=!0}function Nt(){de=!1}function xr(c,d){var D=c.type._context;Uu?(Qr(g,D._currentValue,c),D._currentValue=d,D._currentRenderer===void 0||D._currentRenderer===null||D._currentRenderer===A||Ve(!1,"Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."),D._currentRenderer=A):(Qr(g,D._currentValue2,c),D._currentValue2=d,D._currentRenderer2===void 0||D._currentRenderer2===null||D._currentRenderer2===A||Ve(!1,"Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."),D._currentRenderer2=A)}function r0(c){var d=g.current;$r(g,c);var D=c.type._context;Uu?D._currentValue=d:D._currentValue2=d}function cu(c,d,D){if(yo(D,d))return 0;var C=typeof c._calculateChangedBits=="function"?c._calculateChangedBits(D,d):Wr;return(C&Wr)!==C&&Xt(!1,"calculateChangedBits: Expected the return value to be a 31-bit integer. Instead received: %s",C),C|0}function z0(c,d){for(var D=c;D!==null;){var C=D.alternate;if(D.childExpirationTime=d&&op(),D.firstContext=null)}}function Ge(c,d){if(de&&Xt(!1,"Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo()."),Z!==c){if(!(d===!1||d===0)){var D;typeof d!="number"||d===Wr?(Z=c,D=Wr):D=d;var C={context:c,observedBits:D,next:null};if(B===null){if(P===null)throw Error("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().");B=C,P.dependencies={expirationTime:ft,firstContext:C,responders:null}}else B=B.next=C}}return Uu?c._currentValue:c._currentValue2}var je=0,st=1,$t=2,Wn=3,oi=!1,ur,ai;ur=!1,ai=null;function Qi(c){var d={baseState:c,firstUpdate:null,lastUpdate:null,firstCapturedUpdate:null,lastCapturedUpdate:null,firstEffect:null,lastEffect:null,firstCapturedEffect:null,lastCapturedEffect:null};return d}function Vr(c){var d={baseState:c.baseState,firstUpdate:c.firstUpdate,lastUpdate:c.lastUpdate,firstCapturedUpdate:null,lastCapturedUpdate:null,firstEffect:null,lastEffect:null,firstCapturedEffect:null,lastCapturedEffect:null};return d}function Tu(c,d){var D={expirationTime:c,suspenseConfig:d,tag:je,payload:null,callback:null,next:null,nextEffect:null};return D.priority=Qt(),D}function Wa(c,d){c.lastUpdate===null?c.firstUpdate=c.lastUpdate=d:(c.lastUpdate.next=d,c.lastUpdate=d)}function Va(c,d){var D=c.alternate,C,O;D===null?(C=c.updateQueue,O=null,C===null&&(C=c.updateQueue=Qi(c.memoizedState))):(C=c.updateQueue,O=D.updateQueue,C===null?O===null?(C=c.updateQueue=Qi(c.memoizedState),O=D.updateQueue=Qi(D.memoizedState)):C=c.updateQueue=Vr(O):O===null&&(O=D.updateQueue=Vr(C))),O===null||C===O?Wa(C,d):C.lastUpdate===null||O.lastUpdate===null?(Wa(C,d),Wa(O,d)):(Wa(C,d),O.lastUpdate=d),c.tag===k&&(ai===C||O!==null&&ai===O)&&!ur&&(Ve(!1,"An update (setState, replaceState, or forceUpdate) was scheduled from inside an update function. Update functions should be pure, with zero side-effects. Consider using componentDidUpdate or a callback."),ur=!0)}function od(c,d){var D=c.updateQueue;D===null?D=c.updateQueue=Qi(c.memoizedState):D=D2(c,D),D.lastCapturedUpdate===null?D.firstCapturedUpdate=D.lastCapturedUpdate=d:(D.lastCapturedUpdate.next=d,D.lastCapturedUpdate=d)}function D2(c,d){var D=c.alternate;return D!==null&&d===D.updateQueue&&(d=c.updateQueue=Vr(d)),d}function w2(c,d,D,C,O,z){switch(D.tag){case st:{var G=D.payload;if(typeof G=="function"){Rt(),Ri&&c.mode&mr&&G.call(z,C,O);var ne=G.call(z,C,O);return Nt(),ne}return G}case Wn:c.effectTag=c.effectTag&~d0|Kr;case je:{var se=D.payload,Ue;return typeof se=="function"?(Rt(),Ri&&c.mode&mr&&se.call(z,C,O),Ue=se.call(z,C,O),Nt()):Ue=se,Ue==null?C:f({},C,Ue)}case $t:return oi=!0,C}return C}function wf(c,d,D,C,O){oi=!1,d=D2(c,d),ai=d;for(var z=d.baseState,G=null,ne=ft,se=d.firstUpdate,Ue=z;se!==null;){var Xe=se.expirationTime;if(Xe from render. Or maybe you meant to call this function rather than return it."))}function Eh(c){function d(lt,Mt){if(!!c){var $e=lt.lastEffect;$e!==null?($e.nextEffect=Mt,lt.lastEffect=Mt):lt.firstEffect=lt.lastEffect=Mt,Mt.nextEffect=null,Mt.effectTag=Y0}}function D(lt,Mt){if(!c)return null;for(var $e=Mt;$e!==null;)d(lt,$e),$e=$e.sibling;return null}function C(lt,Mt){for(var $e=new Map,jt=Mt;jt!==null;)jt.key!==null?$e.set(jt.key,jt):$e.set(jt.index,jt),jt=jt.sibling;return $e}function O(lt,Mt,$e){var jt=Co(lt,Mt,$e);return jt.index=0,jt.sibling=null,jt}function z(lt,Mt,$e){if(lt.index=$e,!c)return Mt;var jt=lt.alternate;if(jt!==null){var Fn=jt.index;return FnYr?(Cu=hr,hr=null):Cu=hr.sibling;var D0=Lt(lt,hr,$e[Yr],jt);if(D0===null){hr===null&&(hr=Cu);break}c&&hr&&D0.alternate===null&&d(lt,hr),pu=z(D0,pu,Yr),Yu===null?ci=D0:Yu.sibling=D0,Yu=D0,hr=Cu}if(Yr===$e.length)return D(lt,hr),ci;if(hr===null){for(;Yr<$e.length;Yr++){var W0=ht(lt,$e[Yr],jt);W0!==null&&(pu=z(W0,pu,Yr),Yu===null?ci=W0:Yu.sibling=W0,Yu=W0)}return ci}for(var Ms=C(lt,hr);Yr<$e.length;Yr++){var Ku=Gt(Ms,lt,Yr,$e[Yr],jt);Ku!==null&&(c&&Ku.alternate!==null&&Ms.delete(Ku.key===null?Yr:Ku.key),pu=z(Ku,pu,Yr),Yu===null?ci=Ku:Yu.sibling=Ku,Yu=Ku)}return c&&Ms.forEach(function(gl){return d(lt,gl)}),ci}function kr(lt,Mt,$e,jt){var Fn=fr($e);if(typeof Fn!="function")throw Error("An object is not an iterable. This error is likely caused by a bug in React. Please file an issue.");{typeof Symbol=="function"&&$e[Symbol.toStringTag]==="Generator"&&(Qc||Xt(!1,"Using Generators as children is unsupported and will likely yield unexpected results because enumerating a generator mutates it. You may convert it to an array with `Array.from()` or the `[...spread]` operator before rendering. Keep in mind you might need to polyfill these features for older browsers."),Qc=!0),$e.entries===Fn&&(dd||Xt(!1,"Using Maps as children is unsupported and will likely yield unexpected results. Convert it to a sequence/iterable of keyed ReactElements instead."),dd=!0);var vn=Fn.call($e);if(vn)for(var Vi=null,ci=vn.next();!ci.done;ci=vn.next()){var Yu=ci.value;Vi=Ht(Yu,Vi)}}var hr=Fn.call($e);if(hr==null)throw Error("An iterable object provided no iterator.");for(var pu=null,Yr=null,Cu=Mt,D0=0,W0=0,Ms=null,Ku=hr.next();Cu!==null&&!Ku.done;W0++,Ku=hr.next()){Cu.index>W0?(Ms=Cu,Cu=null):Ms=Cu.sibling;var gl=Lt(lt,Cu,Ku.value,jt);if(gl===null){Cu===null&&(Cu=Ms);break}c&&Cu&&gl.alternate===null&&d(lt,Cu),D0=z(gl,D0,W0),Yr===null?pu=gl:Yr.sibling=gl,Yr=gl,Cu=Ms}if(Ku.done)return D(lt,Cu),pu;if(Cu===null){for(;!Ku.done;W0++,Ku=hr.next()){var rf=ht(lt,Ku.value,jt);rf!==null&&(D0=z(rf,D0,W0),Yr===null?pu=rf:Yr.sibling=rf,Yr=rf)}return pu}for(var Vo=C(lt,Cu);!Ku.done;W0++,Ku=hr.next()){var ks=Gt(Vo,lt,W0,Ku.value,jt);ks!==null&&(c&&ks.alternate!==null&&Vo.delete(ks.key===null?W0:ks.key),D0=z(ks,D0,W0),Yr===null?pu=ks:Yr.sibling=ks,Yr=ks)}return c&&Vo.forEach(function(Jd){return d(lt,Jd)}),pu}function ii(lt,Mt,$e,jt){if(Mt!==null&&Mt.tag===re){D(lt,Mt.sibling);var Fn=O(Mt,$e,jt);return Fn.return=lt,Fn}D(lt,Mt);var vn=_y($e,lt.mode,jt);return vn.return=lt,vn}function Oi(lt,Mt,$e,jt){for(var Fn=$e.key,vn=Mt;vn!==null;){if(vn.key===Fn)if(vn.tag===y?$e.type===le:vn.elementType===$e.type||Wc(vn,$e)){D(lt,vn.sibling);var Vi=O(vn,$e.type===le?$e.props.children:$e.props,jt);return Vi.ref=vc(lt,vn,$e),Vi.return=lt,Vi._debugSource=$e._source,Vi._debugOwner=$e._owner,Vi}else{D(lt,vn);break}else d(lt,vn);vn=vn.sibling}if($e.type===le){var ci=nf($e.props.children,lt.mode,jt,$e.key);return ci.return=lt,ci}else{var Yu=gy($e,lt.mode,jt);return Yu.ref=vc(lt,Mt,$e),Yu.return=lt,Yu}}function L0(lt,Mt,$e,jt){for(var Fn=$e.key,vn=Mt;vn!==null;){if(vn.key===Fn)if(vn.tag===q&&vn.stateNode.containerInfo===$e.containerInfo&&vn.stateNode.implementation===$e.implementation){D(lt,vn.sibling);var Vi=O(vn,$e.children||[],jt);return Vi.return=lt,Vi}else{D(lt,vn);break}else d(lt,vn);vn=vn.sibling}var ci=Ey($e,lt.mode,jt);return ci.return=lt,ci}function $i(lt,Mt,$e,jt){var Fn=typeof $e=="object"&&$e!==null&&$e.type===le&&$e.key===null;Fn&&($e=$e.props.children);var vn=typeof $e=="object"&&$e!==null;if(vn)switch($e.$$typeof){case ce:return G(Oi(lt,Mt,$e,jt));case Re:return G(L0(lt,Mt,$e,jt))}if(typeof $e=="string"||typeof $e=="number")return G(ii(lt,Mt,""+$e,jt));if(Zc($e))return yn(lt,Mt,$e,jt);if(fr($e))return kr(lt,Mt,$e,jt);if(vn&&mc(lt,$e),typeof $e=="function"&&pd(),typeof $e>"u"&&!Fn)switch(lt.tag){case k:{var Vi=lt.stateNode;if(Vi.render._isMockFunction)break}case F:{var ci=lt.type;throw Error((ci.displayName||ci.name||"Component")+"(...): Nothing was returned from render. This usually means a return statement is missing. Or, to render nothing, return null.")}}return D(lt,Mt)}return $i}var Tf=Eh(!0),$c=Eh(!1);function Dh(c,d){if(!(c===null||d.child===c.child))throw Error("Resuming work not yet implemented.");if(d.child!==null){var D=d.child,C=Co(D,D.pendingProps,D.expirationTime);for(d.child=C,C.return=d;D.sibling!==null;)D=D.sibling,C=C.sibling=Co(D,D.pendingProps,D.expirationTime),C.return=d;C.sibling=null}}function sm(c,d){for(var D=c.child;D!==null;)kv(D,d),D=D.sibling}var Vs={},ma=Qu(Vs),iu=Qu(Vs),M0=Qu(Vs);function u0(c){if(c===Vs)throw Error("Expected host context to exist. This error is likely caused by a bug in React. Please file an issue.");return c}function ns(){var c=u0(M0.current);return c}function Ya(c,d){Qr(M0,d,c),Qr(iu,c,c),Qr(ma,Vs,c);var D=St(d);$r(ma,c),Qr(ma,D,c)}function uo(c){$r(ma,c),$r(iu,c),$r(M0,c)}function fl(){var c=u0(ma.current);return c}function yc(c){var d=u0(M0.current),D=u0(ma.current),C=Bt(D,c.type,d);D!==C&&(Qr(iu,c,c),Qr(ma,C,c))}function M2(c){iu.current===c&&($r(ma,c),$r(iu,c))}var wh=0,Cf=1,xf=1,e1=2,Nl=Qu(wh);function t1(c,d){return(c&d)!==0}function ya(c){return c&Cf}function hd(c,d){return c&Cf|d}function vd(c,d){return c|d}function Fr(c,d){Qr(Nl,d,c)}function ga(c){$r(Nl,c)}function k2(c,d){var D=c.memoizedState;if(D!==null)return D.dehydrated!==null;var C=c.memoizedProps;return C.fallback===void 0?!1:C.unstable_avoidThisFallback!==!0?!0:!d}function n1(c){for(var d=c;d!==null;){if(d.tag===he){var D=d.memoizedState;if(D!==null){var C=D.dehydrated;if(C===null||Bs(C)||m0(C))return d}}else if(d.tag===gt&&d.memoizedProps.revealOrder!==void 0){var O=(d.effectTag&Kr)!==xi;if(O)return d}else if(d.child!==null){d.child.return=d,d=d.child;continue}if(d===c)return null;for(;d.sibling===null;){if(d.return===null||d.return===c)return null;d=d.return}d.sibling.return=d.return,d=d.sibling}return null}var md={},wi=Array.isArray;function N2(c,d,D,C){return{fiber:C,props:d,responder:c,rootEventTypes:null,state:D}}function am(c,d,D,C,O){var z=md,G=c.getInitialState;G!==null&&(z=G(d));var ne=N2(c,d,z,D);if(!O)for(var se=D;se!==null;){var Ue=se.tag;if(Ue===V){O=se.stateNode;break}else if(Ue===j){O=se.stateNode.containerInfo;break}se=se.return}Fe(c,ne,d,z,O),C.set(c,ne)}function yd(c,d,D,C,O){var z,G;if(c&&(z=c.responder,G=c.props),!(z&&z.$$typeof===zt))throw Error("An invalid value was used as an event listener. Expect one or many event listeners created via React.unstable_useResponder().");var ne=G;if(D.has(z)){Xt(!1,'Duplicate event responder "%s" found in event listeners. Event listeners passed to elements cannot use the same event responder more than once.',z.displayName);return}D.add(z);var se=C.get(z);se===void 0?am(z,ne,d,C,O):(se.props=ne,se.fiber=d)}function hn(c,d,D){var C=new Set,O=d.dependencies;if(c!=null){O===null&&(O=d.dependencies={expirationTime:ft,firstContext:null,responders:new Map});var z=O.responders;if(z===null&&(z=new Map),wi(c))for(var G=0,ne=c.length;G0){var z=O.dispatch;if(Cs!==null){var G=Cs.get(O);if(G!==void 0){Cs.delete(O);var ne=C.memoizedState,se=G;do{var Ue=se.action;ne=c(ne,Ue),se=se.next}while(se!==null);return yo(ne,C.memoizedState)||op(),C.memoizedState=ne,C.baseUpdate===O.last&&(C.baseState=ne),O.lastRenderedState=ne,[ne,z]}}return[C.memoizedState,z]}var Xe=O.last,ht=C.baseUpdate,Lt=C.baseState,Gt;if(ht!==null?(Xe!==null&&(Xe.next=null),Gt=ht.next):Gt=Xe!==null?Xe.next:null,Gt!==null){var Ht=Lt,yn=null,kr=null,ii=ht,Oi=Gt,L0=!1;do{var $i=Oi.expirationTime;if($iPu&&(Pu=$i,Kd(Pu));else if(gv($i,Oi.suspenseConfig),Oi.eagerReducer===c)Ht=Oi.eagerState;else{var lt=Oi.action;Ht=c(Ht,lt)}ii=Oi,Oi=Oi.next}while(Oi!==null&&Oi!==Gt);L0||(kr=ii,yn=Ht),yo(Ht,C.memoizedState)||op(),C.memoizedState=Ht,C.baseUpdate=kr,C.baseState=yn,O.lastRenderedState=Ht}var Mt=O.dispatch;return[C.memoizedState,Mt]}function Ff(c){var d=Dc();typeof c=="function"&&(c=c()),d.memoizedState=d.baseState=c;var D=d.queue={last:null,dispatch:null,lastRenderedReducer:L2,lastRenderedState:c},C=D.dispatch=a1.bind(null,dl,D);return[d.memoizedState,C]}function o1(c){return u1(L2,c)}function Qa(c,d,D,C){var O={tag:c,create:d,destroy:D,deps:C,next:null};if(rs===null)rs=Xa(),rs.lastEffect=O.next=O;else{var z=rs.lastEffect;if(z===null)rs.lastEffect=O.next=O;else{var G=z.next;z.next=O,O.next=G,rs.lastEffect=O}}return O}function l1(c){var d=Dc(),D={current:c};return Object.seal(D),d.memoizedState=D,D}function F2(c){var d=i1();return d.memoizedState}function Dd(c,d,D,C){var O=Dc(),z=C===void 0?null:C;Mf|=c,O.memoizedState=Qa(d,D,void 0,z)}function wc(c,d,D,C){var O=i1(),z=C===void 0?null:C,G=void 0;if(jn!==null){var ne=jn.memoizedState;if(G=ne.destroy,z!==null){var se=ne.deps;if(Nf(z,se)){Qa(Af,D,G,z);return}}}Mf|=c,O.memoizedState=Qa(d,D,G,z)}function s1(c,d){return typeof jest<"u"&&Mv(dl),Dd(Dr|F0,sr|r1,c,d)}function Fl(c,d){return typeof jest<"u"&&Mv(dl),wc(Dr|F0,sr|r1,c,d)}function Ea(c,d){return Dd(Dr,Of|cl,c,d)}function Ch(c,d){return wc(Dr,Of|cl,c,d)}function P2(c,d){if(typeof d=="function"){var D=d,C=c();return D(C),function(){D(null)}}else if(d!=null){var O=d;O.hasOwnProperty("current")||Xt(!1,"Expected useImperativeHandle() first argument to either be a ref callback or React.createRef() object. Instead received: %s.","an object with keys {"+Object.keys(O).join(", ")+"}");var z=c();return O.current=z,function(){O.current=null}}}function I2(c,d,D){typeof d!="function"&&Xt(!1,"Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",d!==null?typeof d:"null");var C=D!=null?D.concat([c]):null;return Dd(Dr,Of|cl,P2.bind(null,d,c),C)}function xh(c,d,D){typeof d!="function"&&Xt(!1,"Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",d!==null?typeof d:"null");var C=D!=null?D.concat([c]):null;return wc(Dr,Of|cl,P2.bind(null,d,c),C)}function pm(c,d){}var Rh=pm;function Pl(c,d){var D=Dc(),C=d===void 0?null:d;return D.memoizedState=[c,C],c}function us(c,d){var D=i1(),C=d===void 0?null:d,O=D.memoizedState;if(O!==null&&C!==null){var z=O[1];if(Nf(C,z))return O[0]}return D.memoizedState=[c,C],c}function xs(c,d){var D=Dc(),C=d===void 0?null:d,O=c();return D.memoizedState=[O,C],O}function Gs(c,d){var D=i1(),C=d===void 0?null:d,O=D.memoizedState;if(O!==null&&C!==null){var z=O[1];if(Nf(C,z))return O[0]}var G=c();return D.memoizedState=[G,C],G}function b2(c,d){var D=Ff(c),C=D[0],O=D[1];return s1(function(){t.unstable_next(function(){var z=qo.suspense;qo.suspense=d===void 0?null:d;try{O(c)}finally{qo.suspense=z}})},[c,d]),C}function Ah(c,d){var D=o1(c),C=D[0],O=D[1];return Fl(function(){t.unstable_next(function(){var z=qo.suspense;qo.suspense=d===void 0?null:d;try{O(c)}finally{qo.suspense=z}})},[c,d]),C}function B2(c){var d=Ff(!1),D=d[0],C=d[1],O=Pl(function(z){C(!0),t.unstable_next(function(){var G=qo.suspense;qo.suspense=c===void 0?null:c;try{C(!1),z()}finally{qo.suspense=G}})},[c,D]);return[O,D]}function U2(c){var d=o1(!1),D=d[0],C=d[1],O=us(function(z){C(!0),t.unstable_next(function(){var G=qo.suspense;qo.suspense=c===void 0?null:c;try{C(!1),z()}finally{qo.suspense=G}})},[c,D]);return[O,D]}function a1(c,d,D){if(!(Ec=0){var D=c1()-d1;c.actualDuration+=D,d&&(c.selfBaseDuration=D),d1=-1}}var bl=null,Za=null,Da=!1;function q2(){Da&&Xt(!1,"We should not be hydrating here. This is a bug in React. Please file a bug.")}function W2(c){if(!Se)return!1;var d=c.stateNode.containerInfo;return Za=U(d),bl=c,Da=!0,!0}function hm(c,d){return Se?(Za=zi(d),Y2(c),Da=!0,!0):!1}function V2(c,d){switch(c.tag){case j:oe(c.stateNode.containerInfo,d);break;case V:qe(c.type,c.memoizedProps,c.stateNode,d);break}var D=U4();D.stateNode=d,D.return=c,D.effectTag=Y0,c.lastEffect!==null?(c.lastEffect.nextEffect=D,c.lastEffect=D):c.firstEffect=c.lastEffect=D}function Fh(c,d){switch(d.effectTag=d.effectTag&~su|vi,c.tag){case j:{var D=c.stateNode.containerInfo;switch(d.tag){case V:var C=d.type,O=d.pendingProps;rt(D,C,O);break;case re:var z=d.pendingProps;xt(D,z);break;case he:kt(D);break}break}case V:{var G=c.type,ne=c.memoizedProps,se=c.stateNode;switch(d.tag){case V:var Ue=d.type,Xe=d.pendingProps;bt(G,ne,se,Ue,Xe);break;case re:var ht=d.pendingProps;sn(G,ne,se,ht);break;case he:rn(G,ne,se);break}break}default:return}}function Ph(c,d){switch(c.tag){case V:{var D=c.type,C=c.pendingProps,O=pf(d,D,C);return O!==null?(c.stateNode=O,!0):!1}case re:{var z=c.pendingProps,G=bs(d,z);return G!==null?(c.stateNode=G,!0):!1}case he:{if(Ai){var ne=ba(d);if(ne!==null){var se={dehydrated:ne,retryTime:Di};c.memoizedState=se;var Ue=j4(ne);return Ue.return=c,c.child=Ue,!0}}return!1}default:return!1}}function G2(c){if(!!Da){var d=Za;if(!d){Fh(bl,c),Da=!1,bl=c;return}var D=d;if(!Ph(c,d)){if(d=zi(D),!d||!Ph(c,d)){Fh(bl,c),Da=!1,bl=c;return}V2(bl,D)}bl=c,Za=U(d)}}function vm(c,d,D){if(!Se)throw Error("Expected prepareToHydrateHostInstance() to never be called. This error is likely caused by a bug in React. Please file an issue.");var C=c.stateNode,O=H(C,c.type,c.memoizedProps,d,D,c);return c.updateQueue=O,O!==null}function mm(c){if(!Se)throw Error("Expected prepareToHydrateHostTextInstance() to never be called. This error is likely caused by a bug in React. Please file an issue.");var d=c.stateNode,D=c.memoizedProps,C=Y(d,D,c);if(C){var O=bl;if(O!==null)switch(O.tag){case j:{var z=O.stateNode.containerInfo;Je(z,d,D);break}case V:{var G=O.type,ne=O.memoizedProps,se=O.stateNode;vt(G,ne,se,d,D);break}}}return C}function Ih(c){if(!Se)throw Error("Expected prepareToHydrateHostSuspenseInstance() to never be called. This error is likely caused by a bug in React. Please file an issue.");var d=c.memoizedState,D=d!==null?d.dehydrated:null;if(!D)throw Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");ee(D,c)}function ym(c){if(!Se)throw Error("Expected skipPastDehydratedSuspenseInstance() to never be called. This error is likely caused by a bug in React. Please file an issue.");var d=c.memoizedState,D=d!==null?d.dehydrated:null;if(!D)throw Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");return Ce(D)}function Y2(c){for(var d=c.return;d!==null&&d.tag!==V&&d.tag!==j&&d.tag!==he;)d=d.return;bl=d}function h1(c){if(!Se||c!==bl)return!1;if(!Da)return Y2(c),Da=!0,!1;var d=c.type;if(c.tag!==V||d!=="head"&&d!=="body"&&!Ni(d,c.memoizedProps))for(var D=Za;D;)V2(c,D),D=zi(D);return Y2(c),c.tag===he?Za=ym(c):Za=bl?zi(c.stateNode):null,!0}function v1(){!Se||(bl=null,Za=null,Da=!1)}var m1=it.ReactCurrentOwner,wa=!1,K2,Ys,Ks,Xs,X2,Sa,y1,wd,Sc,Q2;K2={},Ys={},Ks={},Xs={},X2={},Sa=!1,y1=!1,wd={},Sc={},Q2={};function wo(c,d,D,C){c===null?d.child=$c(d,null,D,C):d.child=Tf(d,c.child,D,C)}function bh(c,d,D,C){d.child=Tf(d,c.child,null,C),d.child=Tf(d,null,D,C)}function Bh(c,d,D,C,O){if(d.type!==d.elementType){var z=D.propTypes;z&&E(z,C,"prop",qt(D),Lr)}var G=D.render,ne=d.ref,se;return i0(d,O),m1.current=d,et("render"),se=Lf(c,d,G,C,ne,O),Ri&&d.mode&mr&&d.memoizedState!==null&&(se=Lf(c,d,G,C,ne,O)),et(null),c!==null&&!wa?(gd(c,d,O),Ta(c,d,O)):(d.effectTag|=lu,wo(c,d,se,O),d.child)}function Uh(c,d,D,C,O,z){if(c===null){var G=D.type;if(s0(G)&&D.compare===null&&D.defaultProps===void 0){var ne=G;return ne=n0(G),d.tag=ue,d.type=ne,$2(d,G),jh(c,d,ne,C,O,z)}{var se=G.propTypes;se&&E(se,C,"prop",qt(G),Lr)}var Ue=yy(D.type,null,C,null,d.mode,z);return Ue.ref=d.ref,Ue.return=d,d.child=Ue,Ue}{var Xe=D.type,ht=Xe.propTypes;ht&&E(ht,C,"prop",qt(Xe),Lr)}var Lt=c.child;if(O component appears to have a render method, but doesn't extend React.Component. This is likely to cause errors. Change %s to extend React.Component instead.",se,se),K2[se]=!0)}d.mode&mr&&Al.recordLegacyContextWarning(d,null),m1.current=d,ne=Lf(null,d,D,O,z,C)}if(d.effectTag|=lu,typeof ne=="object"&&ne!==null&&typeof ne.render=="function"&&ne.$$typeof===void 0){{var Ue=qt(D)||"Unknown";Ys[Ue]||(Ve(!1,"The <%s /> component appears to be a function component that returns a class instance. Change %s to a class that extends React.Component instead. If you can't use a class try assigning the prototype on the function as a workaround. `%s.prototype = React.Component.prototype`. Don't use an arrow function since it cannot be called with `new` by React.",Ue,Ue,Ue),Ys[Ue]=!0)}d.tag=k,_d();var Xe=!1;Xi(D)?(Xe=!0,qi(d)):Xe=!1,d.memoizedState=ne.state!==null&&ne.state!==void 0?ne.state:null;var ht=D.getDerivedStateFromProps;return typeof ht=="function"&&Sf(d,D,ht,O),al(d,ne),hc(d,D,O,C),Z2(null,d,D,!0,Xe,C)}else return d.tag=F,li&&D.contextTypes&&Ve(!1,"%s uses the legacy contextTypes API which is no longer supported. Use React.createContext() with React.useContext() instead.",qt(D)||"Unknown"),Ri&&d.mode&mr&&d.memoizedState!==null&&(ne=Lf(null,d,D,O,z,C)),wo(null,d,ne,C),$2(d,D),d.child}function $2(c,d){if(d&&d.childContextTypes&&Ve(!1,"%s(...): childContextTypes cannot be defined on a function component.",d.displayName||d.name||"Component"),c.ref!==null){var D="",C=y0();C&&(D+=` + +Check the render method of \``+C+"`.");var O=C||c._debugID||"",z=c._debugSource;z&&(O=z.fileName+":"+z.lineNumber),X2[O]||(X2[O]=!0,Xt(!1,"Function components cannot be given refs. Attempts to access this ref will fail. Did you mean to use React.forwardRef()?%s",D))}if(Xl&&d.defaultProps!==void 0){var G=qt(d)||"Unknown";Q2[G]||(Ve(!1,"%s: Support for defaultProps will be removed from function components in a future major release. Use JavaScript default parameters instead.",G),Q2[G]=!0)}if(typeof d.getDerivedStateFromProps=="function"){var ne=qt(d)||"Unknown";Xs[ne]||(Ve(!1,"%s: Function components do not support getDerivedStateFromProps.",ne),Xs[ne]=!0)}if(typeof d.contextType=="object"&&d.contextType!==null){var se=qt(d)||"Unknown";Ks[se]||(Ve(!1,"%s: Function components do not support contextType.",se),Ks[se]=!0)}}var Td={dehydrated:null,retryTime:ft};function ep(c,d,D){return t1(c,e1)&&(d===null||d.memoizedState!==null)}function Vh(c,d,D){var C=d.mode,O=d.pendingProps;Jg(d)&&(d.effectTag|=Kr);var z=Nl.current,G=!1,ne=(d.effectTag&Kr)!==xi;if(ne||ep(z,c,d)?(G=!0,d.effectTag&=~Kr):(c===null||c.memoizedState!==null)&&O.fallback!==void 0&&O.unstable_avoidThisFallback!==!0&&(z=vd(z,xf)),z=ya(z),Fr(d,z),"maxDuration"in O&&(y1||(y1=!0,Xt(!1,"maxDuration has been removed from React. Remove the maxDuration prop."))),c===null){if(O.fallback!==void 0&&(G2(d),Ai)){var se=d.memoizedState;if(se!==null){var Ue=se.dehydrated;if(Ue!==null)return Gh(d,Ue,D)}}if(G){var Xe=O.fallback,ht=nf(null,C,ft,null);if(ht.return=d,(d.mode&K)===Ar){var Lt=d.memoizedState,Gt=Lt!==null?d.child.child:d.child;ht.child=Gt;for(var Ht=Gt;Ht!==null;)Ht.return=ht,Ht=Ht.sibling}var yn=nf(Xe,C,D,null);return yn.return=d,ht.sibling=yn,d.memoizedState=Td,d.child=ht,yn}else{var kr=O.children;return d.memoizedState=null,d.child=$c(d,null,kr,D)}}else{var ii=c.memoizedState;if(ii!==null){if(Ai){var Oi=ii.dehydrated;if(Oi!==null)if(ne){if(d.memoizedState!==null)return d.child=c.child,d.effectTag|=Kr,null;var L0=O.fallback,$i=nf(null,C,ft,null);if($i.return=d,$i.child=null,(d.mode&K)===Ar)for(var lt=$i.child=d.child;lt!==null;)lt.return=$i,lt=lt.sibling;else Tf(d,c.child,null,D);if(en&&d.mode&ni){for(var Mt=0,$e=$i.child;$e!==null;)Mt+=$e.treeBaseDuration,$e=$e.sibling;$i.treeBaseDuration=Mt}var jt=nf(L0,C,D,null);return jt.return=d,$i.sibling=jt,jt.effectTag|=vi,$i.childExpirationTime=ft,d.memoizedState=Td,d.child=$i,jt}else return Yh(c,d,Oi,ii,D)}var Fn=c.child,vn=Fn.sibling;if(G){var Vi=O.fallback,ci=Co(Fn,Fn.pendingProps,ft);if(ci.return=d,(d.mode&K)===Ar){var Yu=d.memoizedState,hr=Yu!==null?d.child.child:d.child;if(hr!==Fn.child){ci.child=hr;for(var pu=hr;pu!==null;)pu.return=ci,pu=pu.sibling}}if(en&&d.mode&ni){for(var Yr=0,Cu=ci.child;Cu!==null;)Yr+=Cu.treeBaseDuration,Cu=Cu.sibling;ci.treeBaseDuration=Yr}var D0=Co(vn,Vi,vn.expirationTime);return D0.return=d,ci.sibling=D0,ci.childExpirationTime=ft,d.memoizedState=Td,d.child=ci,D0}else{var W0=O.children,Ms=Fn.child,Ku=Tf(d,Ms,W0,D);return d.memoizedState=null,d.child=Ku}}else{var gl=c.child;if(G){var rf=O.fallback,Vo=nf(null,C,ft,null);if(Vo.return=d,Vo.child=gl,gl!==null&&(gl.return=Vo),(d.mode&K)===Ar){var ks=d.memoizedState,Jd=ks!==null?d.child.child:d.child;Vo.child=Jd;for(var Vf=Jd;Vf!==null;)Vf.return=Vo,Vf=Vf.sibling}if(en&&d.mode&ni){for(var Lc=0,Hl=Vo.child;Hl!==null;)Lc+=Hl.treeBaseDuration,Hl=Hl.sibling;Vo.treeBaseDuration=Lc}var Go=nf(rf,C,D,null);return Go.return=d,Vo.sibling=Go,Go.effectTag|=vi,Vo.childExpirationTime=ft,d.memoizedState=Td,d.child=Vo,Go}else{d.memoizedState=null;var L1=O.children;return d.child=Tf(d,gl,L1,D)}}}}function tp(c,d,D){d.memoizedState=null;var C=d.pendingProps,O=C.children;return wo(c,d,O,D),d.child}function Gh(c,d,D){if((c.mode&K)===Ar)Xt(!1,"Cannot hydrate Suspense in legacy mode. Switch from ReactDOM.hydrate(element, container) to ReactDOM.createBlockingRoot(container, { hydrate: true }).render(element) or remove the Suspense components from the server rendered components."),c.expirationTime=Un;else if(m0(d)){var C=jl(),O=Ds(C);In&&R(O),c.expirationTime=O}else c.expirationTime=Di,In&&R(Di);return null}function Yh(c,d,D,C,O){if(q2(),(d.mode&K)===Ar||m0(D))return tp(c,d,O);var z=c.childExpirationTime>=O;if(wa||z){if(O. Use lowercase "%s" instead.',c,c.toLowerCase());break}case"forward":case"backward":{Xt(!1,'"%s" is not a valid value for revealOrder on . React uses the -s suffix in the spelling. Use "%ss" instead.',c,c.toLowerCase());break}default:Xt(!1,'"%s" is not a supported revealOrder on . Did you mean "together", "forwards" or "backwards"?',c);break}else Xt(!1,'%s is not a supported value for revealOrder on . Did you mean "together", "forwards" or "backwards"?',c)}function Kh(c,d){c!==void 0&&!Sc[c]&&(c!=="collapsed"&&c!=="hidden"?(Sc[c]=!0,Xt(!1,'"%s" is not a supported value for tail on . Did you mean "collapsed" or "hidden"?',c)):d!=="forwards"&&d!=="backwards"&&(Sc[c]=!0,Xt(!1,' is only valid if revealOrder is "forwards" or "backwards". Did you mean to specify revealOrder="forwards"?',c)))}function _1(c,d){{var D=Array.isArray(c),C=!D&&typeof fr(c)=="function";if(D||C){var O=D?"array":"iterable";return Xt(!1,"A nested %s was passed to row #%s in . Wrap it in an additional SuspenseList to configure its revealOrder: ... {%s} ... ",O,d,O),!1}}return!0}function Cm(c,d){if((d==="forwards"||d==="backwards")&&c!==void 0&&c!==null&&c!==!1)if(Array.isArray(c)){for(var D=0;D. This is not useful since it needs multiple rows. Did you mean to pass multiple children or an array?',d)}}function rp(c,d,D,C,O,z){var G=c.memoizedState;G===null?c.memoizedState={isBackwards:d,rendering:null,last:C,tail:D,tailExpiration:0,tailMode:O,lastEffect:z}:(G.isBackwards=d,G.rendering=null,G.last=C,G.tail=D,G.tailExpiration=0,G.tailMode=O,G.lastEffect=z)}function ip(c,d,D){var C=d.pendingProps,O=C.revealOrder,z=C.tail,G=C.children;Tm(O),Kh(z,O),Cm(G,O),wo(c,d,G,D);var ne=Nl.current,se=t1(ne,e1);if(se)ne=hd(ne,e1),d.effectTag|=Kr;else{var Ue=c!==null&&(c.effectTag&Kr)!==xi;Ue&&wm(d,d.child,D),ne=ya(ne)}if(Fr(d,ne),(d.mode&K)===Ar)d.memoizedState=null;else switch(O){case"forwards":{var Xe=Sm(d.child),ht;Xe===null?(ht=d.child,d.child=null):(ht=Xe.sibling,Xe.sibling=null),rp(d,!1,ht,Xe,z,d.lastEffect);break}case"backwards":{var Lt=null,Gt=d.child;for(d.child=null;Gt!==null;){var Ht=Gt.alternate;if(Ht!==null&&n1(Ht)===null){d.child=Gt;break}var yn=Gt.sibling;Gt.sibling=Lt,Lt=Gt,Gt=yn}rp(d,!0,Lt,null,z,d.lastEffect);break}case"together":{rp(d,!1,null,null,void 0,d.lastEffect);break}default:d.memoizedState=null}return d.child}function xm(c,d,D){Ya(d,d.stateNode.containerInfo);var C=d.pendingProps;return c===null?d.child=Tf(d,null,C,D):wo(c,d,C,D),d.child}function Rm(c,d,D){var C=d.type,O=C._context,z=d.pendingProps,G=d.memoizedProps,ne=z.value;{var se=d.type.propTypes;se&&E(se,z,"prop","Context.Provider",Lr)}if(xr(d,ne),G!==null){var Ue=G.value,Xe=cu(O,ne,Ue);if(Xe===0){if(G.children===z.children&&!sa())return Ta(c,d,D)}else Ml(d,O,Xe,D)}var ht=z.children;return wo(c,d,ht,D),d.child}var Xh=!1;function Am(c,d,D){var C=d.type;C._context===void 0?C!==C.Consumer&&(Xh||(Xh=!0,Xt(!1,"Rendering directly is not supported and will be removed in a future major release. Did you mean to render instead?"))):C=C._context;var O=d.pendingProps,z=O.children;typeof z!="function"&&Ve(!1,"A context consumer was rendered with multiple children, or a child that isn't a function. A context consumer expects a single child that is a function. If you did pass a function, make sure there is no trailing or leading whitespace around it."),i0(d,D);var G=Ge(C,O.unstable_observedBits),ne;return m1.current=d,et("render"),ne=z(G),et(null),d.effectTag|=lu,wo(c,d,ne,D),d.child}function Om(c,d,D){var C=d.type.impl;if(C.reconcileChildren===!1)return null;var O=d.pendingProps,z=O.children;return wo(c,d,z,D),d.child}function up(c,d,D){var C=d.pendingProps,O=C.children;return wo(c,d,O,D),d.child}function op(){wa=!0}function Ta(c,d,D){tu(d),c!==null&&(d.dependencies=c.dependencies),en&&Lh(d);var C=d.expirationTime;C!==ft&&Kd(C);var O=d.childExpirationTime;return O=D;se&&(d.effectTag|=Dr)}break;case he:{var Ue=d.memoizedState;if(Ue!==null){if(Ai&&Ue.dehydrated!==null){Fr(d,ya(Nl.current)),d.effectTag|=Kr;break}var Xe=d.child,ht=Xe.childExpirationTime;if(ht!==ft&&ht>=D)return Vh(c,d,D);Fr(d,ya(Nl.current));var Lt=Ta(c,d,D);return Lt!==null?Lt.sibling:null}else Fr(d,ya(Nl.current));break}case gt:{var Gt=(c.effectTag&Kr)!==xi,Ht=d.childExpirationTime>=D;if(Gt){if(Ht)return ip(c,d,D);d.effectTag|=Kr}var yn=d.memoizedState;if(yn!==null&&(yn.rendering=null,yn.tail=null),Fr(d,Nl.current),Ht)break;return null}}return Ta(c,d,D)}else wa=!1}else wa=!1;switch(d.expirationTime=ft,d.tag){case x:return Dm(c,d,d.type,D);case Ae:{var kr=d.elementType;return If(c,d,kr,C,D)}case F:{var ii=d.type,Oi=d.pendingProps,L0=d.elementType===ii?Oi:Wi(ii,Oi);return J2(c,d,ii,L0,D)}case k:{var $i=d.type,lt=d.pendingProps,Mt=d.elementType===$i?lt:Wi($i,lt);return qh(c,d,$i,Mt,D)}case j:return _m(c,d,D);case V:return Em(c,d,D);case re:return Pf(c,d);case he:return Vh(c,d,D);case q:return xm(c,d,D);case ae:{var $e=d.type,jt=d.pendingProps,Fn=d.elementType===$e?jt:Wi($e,jt);return Bh(c,d,$e,Fn,D)}case y:return gm(c,d,D);case me:return zh(c,d,D);case we:return Hh(c,d,D);case ge:return Rm(c,d,D);case De:return Am(c,d,D);case ve:{var vn=d.type,Vi=d.pendingProps,ci=Wi(vn,Vi);if(d.type!==d.elementType){var Yu=vn.propTypes;Yu&&E(Yu,ci,"prop",qt(vn),Lr)}return ci=Wi(vn.type,ci),Uh(c,d,vn,ci,C,D)}case ue:return jh(c,d,d.type,d.pendingProps,C,D);case ze:{var hr=d.type,pu=d.pendingProps,Yr=d.elementType===hr?pu:Wi(hr,pu);return Sd(c,d,hr,Yr,D)}case gt:return ip(c,d,D);case _t:{if(Wt)return Om(c,d,D);break}case Qe:{if(Ru)return up(c,d,D);break}}throw Error("Unknown unit of work tag ("+d.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function Qh(c,d,D,C){return{currentFiber:c,impl:D,instance:null,prevProps:null,props:d,state:C}}function Cd(c){return c.tag===he&&c.memoizedState!==null}function D1(c){return c.child.sibling.child}var Jh={};function sp(c,d,D){if(Ru){if(c.tag===V){var C=c.type,O=c.memoizedProps,z=c.stateNode,G=Lo(z);G!==null&&d(C,O||Jh,G)===!0&&D.push(G)}var ne=c.child;Cd(c)&&(ne=D1(c)),ne!==null&&ap(ne,d,D)}}function Zh(c,d){if(Ru){if(c.tag===V){var D=c.type,C=c.memoizedProps,O=c.stateNode,z=Lo(O);if(z!==null&&d(D,C,z)===!0)return z}var G=c.child;if(Cd(c)&&(G=D1(c)),G!==null)return $h(G,d)}return null}function ap(c,d,D){for(var C=c;C!==null;)sp(C,d,D),C=C.sibling}function $h(c,d){for(var D=c;D!==null;){var C=Zh(D,d);if(C!==null)return C;D=D.sibling}return null}function ev(c,d,D){if(xd(c,d))D.push(c.stateNode.methods);else{var C=c.child;Cd(c)&&(C=D1(c)),C!==null&&fp(C,d,D)}}function fp(c,d,D){for(var C=c;C!==null;)ev(C,d,D),C=C.sibling}function xd(c,d){return c.tag===Qe&&c.type===d&&c.stateNode!==null}function Rd(c,d){return{getChildren:function(){var D=d.fiber,C=D.child,O=[];return C!==null&&fp(C,c,O),O.length===0?null:O},getChildrenFromRoot:function(){for(var D=d.fiber,C=D;C!==null;){var O=C.return;if(O===null||(C=O,C.tag===Qe&&C.type===c))break}var z=[];return fp(C.child,c,z),z.length===0?null:z},getParent:function(){for(var D=d.fiber.return;D!==null;){if(D.tag===Qe&&D.type===c)return D.stateNode.methods;D=D.return}return null},getProps:function(){var D=d.fiber;return D.memoizedProps},queryAllNodes:function(D){var C=d.fiber,O=C.child,z=[];return O!==null&&ap(O,D,z),z.length===0?null:z},queryFirstNode:function(D){var C=d.fiber,O=C.child;return O!==null?$h(O,D):null},containsNode:function(D){for(var C=cr(D);C!==null;){if(C.tag===Qe&&C.type===c&&C.stateNode===d)return!0;C=C.return}return!1}}}function H0(c){c.effectTag|=Dr}function Ad(c){c.effectTag|=Oo}var Ca,$a,Od,Md;if(b0)Ca=function(c,d,D,C){for(var O=d.child;O!==null;){if(O.tag===V||O.tag===re)Xr(c,O.stateNode);else if(Wt&&O.tag===_t)Xr(c,O.stateNode.instance);else if(O.tag!==q){if(O.child!==null){O.child.return=O,O=O.child;continue}}if(O===d)return;for(;O.sibling===null;){if(O.return===null||O.return===d)return;O=O.return}O.sibling.return=O.return,O=O.sibling}},$a=function(c){},Od=function(c,d,D,C,O){var z=c.memoizedProps;if(z!==C){var G=d.stateNode,ne=fl(),se=p0(G,D,z,C,O,ne);d.updateQueue=se,se&&H0(d)}},Md=function(c,d,D,C){D!==C&&H0(d)};else if(Q){Ca=function(c,d,D,C){for(var O=d.child;O!==null;){e:if(O.tag===V){var z=O.stateNode;if(D&&C){var G=O.memoizedProps,ne=O.type;z=Jr(z,ne,G,O)}Xr(c,z)}else if(O.tag===re){var se=O.stateNode;if(D&&C){var Ue=O.memoizedProps;se=Zl(se,Ue,O)}Xr(c,se)}else if(Wt&&O.tag===_t){var Xe=O.stateNode.instance;if(D&&C){var ht=O.memoizedProps,Lt=O.type;Xe=Jr(Xe,Lt,ht,O)}Xr(c,Xe)}else if(O.tag!==q){if(O.tag===he){if((O.effectTag&Dr)!==xi){var Gt=O.memoizedState!==null;if(Gt){var Ht=O.child;if(Ht!==null){Ht.child!==null&&(Ht.child.return=Ht,Ca(c,Ht,!0,Gt));var yn=Ht.sibling;if(yn!==null){yn.return=O,O=yn;continue}}}}if(O.child!==null){O.child.return=O,O=O.child;continue}}else if(O.child!==null){O.child.return=O,O=O.child;continue}}if(O=O,O===d)return;for(;O.sibling===null;){if(O.return===null||O.return===d)return;O=O.return}O.sibling.return=O.return,O=O.sibling}};var cp=function(c,d,D,C){for(var O=d.child;O!==null;){e:if(O.tag===V){var z=O.stateNode;if(D&&C){var G=O.memoizedProps,ne=O.type;z=Jr(z,ne,G,O)}Qn(c,z)}else if(O.tag===re){var se=O.stateNode;if(D&&C){var Ue=O.memoizedProps;se=Zl(se,Ue,O)}Qn(c,se)}else if(Wt&&O.tag===_t){var Xe=O.stateNode.instance;if(D&&C){var ht=O.memoizedProps,Lt=O.type;Xe=Jr(Xe,Lt,ht,O)}Qn(c,Xe)}else if(O.tag!==q){if(O.tag===he){if((O.effectTag&Dr)!==xi){var Gt=O.memoizedState!==null;if(Gt){var Ht=O.child;if(Ht!==null){Ht.child!==null&&(Ht.child.return=Ht,cp(c,Ht,!0,Gt));var yn=Ht.sibling;if(yn!==null){yn.return=O,O=yn;continue}}}}if(O.child!==null){O.child.return=O,O=O.child;continue}}else if(O.child!==null){O.child.return=O,O=O.child;continue}}if(O=O,O===d)return;for(;O.sibling===null;){if(O.return===null||O.return===d)return;O=O.return}O.sibling.return=O.return,O=O.sibling}};$a=function(c){var d=c.stateNode,D=c.firstEffect===null;if(!D){var C=d.containerInfo,O=S0(C);cp(O,c,!1,!1),d.pendingChildren=O,H0(c),ac(C,O)}},Od=function(c,d,D,C,O){var z=c.stateNode,G=c.memoizedProps,ne=d.firstEffect===null;if(ne&&G===C){d.stateNode=z;return}var se=d.stateNode,Ue=fl(),Xe=null;if(G!==C&&(Xe=p0(se,D,G,C,O,Ue)),ne&&Xe===null){d.stateNode=z;return}var ht=ms(z,Xe,D,G,C,d,ne,se);Au(ht,D,C,O,Ue)&&H0(d),d.stateNode=ht,ne?H0(d):Ca(ht,d,!1,!1)},Md=function(c,d,D,C){if(D!==C){var O=ns(),z=fl();d.stateNode=hs(C,O,z,d),H0(d)}}}else $a=function(c){},Od=function(c,d,D,C,O){},Md=function(c,d,D,C){};function kd(c,d){switch(c.tailMode){case"hidden":{for(var D=c.tail,C=null;D!==null;)D.alternate!==null&&(C=D),D=D.sibling;C===null?c.tail=null:C.sibling=null;break}case"collapsed":{for(var O=c.tail,z=null;O!==null;)O.alternate!==null&&(z=O),O=O.sibling;z===null?!d&&c.tail!==null?c.tail.sibling=null:c.tail=null:z.sibling=null;break}}}function tv(c,d,D){var C=d.pendingProps;switch(d.tag){case x:break;case Ae:break;case ue:case F:break;case k:{var O=d.type;Xi(O)&&Hs(d);break}case j:{uo(d),R0(d);var z=d.stateNode;if(z.pendingContext&&(z.context=z.pendingContext,z.pendingContext=null),c===null||c.child===null){var G=h1(d);G&&H0(d)}$a(d);break}case V:{M2(d);var ne=ns(),se=d.type;if(c!==null&&d.stateNode!=null){if(Od(c,d,se,C,ne),yi){var Ue=c.memoizedProps.listeners,Xe=C.listeners;Ue!==Xe&&H0(d)}c.ref!==d.ref&&Ad(d)}else{if(!C){if(d.stateNode===null)throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");break}var ht=fl(),Lt=h1(d);if(Lt){if(vm(d,ne,ht)&&H0(d),yi){var Gt=C.listeners;Gt!=null&&hn(Gt,d,ne)}}else{var Ht=Ki(se,C,ne,ht,d);if(Ca(Ht,d,!1,!1),d.stateNode=Ht,yi){var yn=C.listeners;yn!=null&&hn(yn,d,ne)}Au(Ht,se,C,ne,ht)&&H0(d)}d.ref!==null&&Ad(d)}break}case re:{var kr=C;if(c&&d.stateNode!=null){var ii=c.memoizedProps;Md(c,d,ii,kr)}else{if(typeof kr!="string"&&d.stateNode===null)throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");var Oi=ns(),L0=fl(),$i=h1(d);$i?mm(d)&&H0(d):d.stateNode=hs(kr,Oi,L0,d)}break}case ae:break;case he:{ga(d);var lt=d.memoizedState;if(Ai&<!==null&<.dehydrated!==null)if(c===null){var Mt=h1(d);if(!Mt)throw Error("A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.");return Ih(d),In&&R(Di),null}else return v1(),(d.effectTag&Kr)===xi&&(d.memoizedState=null),d.effectTag|=Dr,null;if((d.effectTag&Kr)!==xi)return d.expirationTime=D,d;var $e=lt!==null,jt=!1;if(c===null)d.memoizedProps.fallback!==void 0&&h1(d);else{var Fn=c.memoizedState;if(jt=Fn!==null,!$e&&Fn!==null){var vn=c.child.sibling;if(vn!==null){var Vi=d.firstEffect;Vi!==null?(d.firstEffect=vn,vn.nextEffect=Vi):(d.firstEffect=d.lastEffect=vn,vn.nextEffect=null),vn.effectTag=Y0}}}if($e&&!jt&&(d.mode&K)!==Ar){var ci=c===null&&d.memoizedProps.unstable_avoidThisFallback!==!0;ci||t1(Nl.current,xf)?_v():Ev()}Q&&$e&&(d.effectTag|=Dr),b0&&($e||jt)&&(d.effectTag|=Dr),Yi&&d.updateQueue!==null&&d.memoizedProps.suspenseCallback!=null&&(d.effectTag|=Dr);break}case y:break;case me:break;case we:break;case q:uo(d),$a(d);break;case ge:r0(d);break;case De:break;case ve:break;case ze:{var Yu=d.type;Xi(Yu)&&Hs(d);break}case gt:{ga(d);var hr=d.memoizedState;if(hr===null)break;var pu=(d.effectTag&Kr)!==xi,Yr=hr.rendering;if(Yr===null)if(pu)kd(hr,!1);else{var Cu=Dv()&&(c===null||(c.effectTag&Kr)===xi);if(!Cu)for(var D0=d.child;D0!==null;){var W0=n1(D0);if(W0!==null){pu=!0,d.effectTag|=Kr,kd(hr,!1);var Ms=W0.updateQueue;return Ms!==null&&(d.updateQueue=Ms,d.effectTag|=Dr),hr.lastEffect===null&&(d.firstEffect=null),d.lastEffect=hr.lastEffect,sm(d,D),Fr(d,hd(Nl.current,e1)),d.child}D0=D0.sibling}}else{if(!pu){var Ku=n1(Yr);if(Ku!==null){d.effectTag|=Kr,pu=!0;var gl=Ku.updateQueue;if(gl!==null&&(d.updateQueue=gl,d.effectTag|=Dr),kd(hr,!0),hr.tail===null&&hr.tailMode==="hidden"&&!Yr.alternate){var rf=d.lastEffect=hr.lastEffect;return rf!==null&&(rf.nextEffect=null),null}}else if(mt()>hr.tailExpiration&&D>Di){d.effectTag|=Kr,pu=!0,kd(hr,!1);var Vo=D-1;d.expirationTime=d.childExpirationTime=Vo,In&&R(Vo)}}if(hr.isBackwards)Yr.sibling=d.child,d.child=Yr;else{var ks=hr.last;ks!==null?ks.sibling=Yr:d.child=Yr,hr.last=Yr}}if(hr.tail!==null){if(hr.tailExpiration===0){var Jd=500;hr.tailExpiration=mt()+Jd}var Vf=hr.tail;hr.rendering=Vf,hr.tail=Vf.sibling,hr.lastEffect=d.lastEffect,Vf.sibling=null;var Lc=Nl.current;return pu?Lc=hd(Lc,e1):Lc=ya(Lc),Fr(d,Lc),Vf}break}case _t:{if(Wt){var Hl=d.type.impl,Go=d.stateNode;if(Go===null){var L1=Hl.getInitialState,i_;L1!==void 0&&(i_=L1(C)),Go=d.stateNode=Qh(d,C,Hl,i_||{});var u_=pt(Go);if(Go.instance=u_,Hl.reconcileChildren===!1)return null;Ca(u_,d,!1,!1),Yn(Go)}else{var nE=Go.props;if(Go.prevProps=nE,Go.props=C,Go.currentFiber=d,Q){var o_=oa(Go);Go.instance=o_,Ca(o_,d,!1,!1)}var rE=Cn(Go);rE&&H0(d)}}break}case Qe:{if(Ru)if(c===null){var iE=d.type,Ry={fiber:d,methods:null};if(d.stateNode=Ry,Ry.methods=Rd(iE,Ry),yi){var l_=C.listeners;if(l_!=null){var uE=ns();hn(l_,d,uE)}}d.ref!==null&&(Ad(d),H0(d))}else{if(yi){var oE=c.memoizedProps.listeners,lE=C.listeners;(oE!==lE||d.ref!==null)&&H0(d)}else d.ref!==null&&H0(d);c.ref!==d.ref&&Ad(d)}break}default:throw Error("Unknown unit of work tag ("+d.tag+"). This error is likely caused by a bug in React. Please file an issue.")}return null}function Mm(c,d){switch(c.tag){case k:{var D=c.type;Xi(D)&&Hs(c);var C=c.effectTag;return C&d0?(c.effectTag=C&~d0|Kr,c):null}case j:{uo(c),R0(c);var O=c.effectTag;if((O&Kr)!==xi)throw Error("The root failed to unmount after an error. This is likely a bug in React. Please file an issue.");return c.effectTag=O&~d0|Kr,c}case V:return M2(c),null;case he:{if(ga(c),Ai){var z=c.memoizedState;if(z!==null&&z.dehydrated!==null){if(c.alternate===null)throw Error("Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.");v1()}}var G=c.effectTag;return G&d0?(c.effectTag=G&~d0|Kr,c):null}case gt:return ga(c),null;case q:return uo(c),null;case ge:return r0(c),null;default:return null}}function nv(c){switch(c.tag){case k:{var d=c.type.childContextTypes;d!=null&&Hs(c);break}case j:{uo(c),R0(c);break}case V:{M2(c);break}case q:uo(c);break;case he:ga(c);break;case gt:ga(c);break;case ge:r0(c);break;default:break}}function dp(c,d){return{value:c,source:d,stack:Cr(d)}}var pp=function(c,d,D,C,O,z,G,ne,se){var Ue=Array.prototype.slice.call(arguments,3);try{d.apply(D,Ue)}catch(Xe){this.onError(Xe)}};if(typeof window<"u"&&typeof window.dispatchEvent=="function"&&typeof document<"u"&&typeof document.createEvent=="function"){var hp=document.createElement("react"),km=function(c,d,D,C,O,z,G,ne,se){if(!(typeof document<"u"))throw Error("The `document` global was defined when React was initialized, but is not defined anymore. This can happen in a test environment if a component schedules an update from an asynchronous callback, but the test has already finished running. To solve this, you can either unmount the component at the end of your test (and ensure that any asynchronous operations get canceled in `componentWillUnmount`), or you can change the test itself to be asynchronous.");var Ue=document.createEvent("Event"),Xe=!0,ht=window.event,Lt=Object.getOwnPropertyDescriptor(window,"event"),Gt=Array.prototype.slice.call(arguments,3);function Ht(){hp.removeEventListener(L0,Ht,!1),typeof window.event<"u"&&window.hasOwnProperty("event")&&(window.event=ht),d.apply(D,Gt),Xe=!1}var yn,kr=!1,ii=!1;function Oi($i){if(yn=$i.error,kr=!0,yn===null&&$i.colno===0&&$i.lineno===0&&(ii=!0),$i.defaultPrevented&&yn!=null&&typeof yn=="object")try{yn._suppressLogging=!0}catch{}}var L0="react-"+(c||"invokeguardedcallback");window.addEventListener("error",Oi),hp.addEventListener(L0,Ht,!1),Ue.initEvent(L0,!1,!1),hp.dispatchEvent(Ue),Lt&&Object.defineProperty(window,"event",Lt),Xe&&(kr?ii&&(yn=new Error("A cross-origin error was thrown. React doesn't have access to the actual error object in development. See https://fb.me/react-crossorigin-error for more information.")):yn=new Error(`An error was thrown inside one of your components, but React doesn't know what it was. This is likely due to browser flakiness. React does its best to preserve the "Pause on exceptions" behavior of the DevTools, which requires some DEV-mode only tricks. It's possible that these don't work in your browser. Try triggering the error in production mode, or switching to a modern browser. If you suspect that this is actually an issue with React, please file an issue.`),this.onError(yn)),window.removeEventListener("error",Oi)};pp=km}var Nm=pp,So=!1,Nd=null,Lm={onError:function(c){So=!0,Nd=c}};function pl(c,d,D,C,O,z,G,ne,se){So=!1,Nd=null,Nm.apply(Lm,arguments)}function tr(){return So}function Qs(){if(So){var c=Nd;return So=!1,Nd=null,c}else throw Error("clearCaughtError was called but no error was captured. This error is likely caused by a bug in React. Please file an issue.")}function hl(c){return!0}function o0(c){var d=hl(c);if(d!==!1){var D=c.error;{var C=c.componentName,O=c.componentStack,z=c.errorBoundaryName,G=c.errorBoundaryFound,ne=c.willRetry;if(D!=null&&D._suppressLogging){if(G&&ne)return;console.error(D)}var se=C?"The above error occurred in the <"+C+"> component:":"The above error occurred in one of your React components:",Ue;G&&z?ne?Ue="React will try to recreate this component tree from scratch "+("using the error boundary you provided, "+z+"."):Ue="This error was initially handled by the error boundary "+z+`. +Recreating the tree from scratch failed so React will unmount the tree.`:Ue=`Consider adding an error boundary to your tree to customize error handling behavior. +Visit https://fb.me/react-error-boundaries to learn more about error boundaries.`;var Xe=""+se+O+` + +`+(""+Ue);console.error(Xe)}}}var rv=null;rv=new Set;var Js=typeof WeakSet=="function"?WeakSet:Set;function vp(c,d){var D=d.source,C=d.stack;C===null&&D!==null&&(C=Cr(D));var O={componentName:D!==null?qt(D.type):null,componentStack:C!==null?C:"",error:d.value,errorBoundary:null,errorBoundaryName:null,errorBoundaryFound:!1,willRetry:!1};c!==null&&c.tag===k&&(O.errorBoundary=c.stateNode,O.errorBoundaryName=qt(c.type),O.errorBoundaryFound=!0,O.willRetry=!0);try{o0(O)}catch(z){setTimeout(function(){throw z})}}var Fm=function(c,d){Bi(c,"componentWillUnmount"),d.props=c.memoizedProps,d.state=c.memoizedState,d.componentWillUnmount(),Ci()};function iv(c,d){if(pl(null,Fm,null,c,d),tr()){var D=Qs();Hf(c,D)}}function mp(c){var d=c.ref;if(d!==null)if(typeof d=="function"){if(pl(null,d,null,null),tr()){var D=Qs();Hf(c,D)}}else d.current=null}function Pm(c,d){if(pl(null,d,null),tr()){var D=Qs();Hf(c,D)}}function yp(c,d){switch(d.tag){case F:case ae:case ue:{Tc(fm,Af,d);return}case k:{if(d.effectTag&Mo&&c!==null){var D=c.memoizedProps,C=c.memoizedState;Bi(d,"getSnapshotBeforeUpdate");var O=d.stateNode;d.type===d.elementType&&!Sa&&(O.props!==d.memoizedProps&&Xt(!1,"Expected %s props to match memoized props before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",qt(d.type)||"instance"),O.state!==d.memoizedState&&Xt(!1,"Expected %s state to match memoized state before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",qt(d.type)||"instance"));var z=O.getSnapshotBeforeUpdate(d.elementType===d.type?D:Wi(d.type,D),C);{var G=rv;z===void 0&&!G.has(d.type)&&(G.add(d.type),Ve(!1,"%s.getSnapshotBeforeUpdate(): A snapshot value (or null) must be returned. You have returned undefined.",qt(d.type)))}O.__reactInternalSnapshotBeforeUpdate=z,Ci()}return}case j:case V:case re:case q:case ze:return;default:throw Error("This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue.")}}function Tc(c,d,D){var C=D.updateQueue,O=C!==null?C.lastEffect:null;if(O!==null){var z=O.next,G=z;do{if((G.tag&c)!==Af){var ne=G.destroy;G.destroy=void 0,ne!==void 0&&ne()}if((G.tag&d)!==Af){var se=G.create;G.destroy=se();{var Ue=G.destroy;if(Ue!==void 0&&typeof Ue!="function"){var Xe=void 0;Ue===null?Xe=" You returned null. If your effect does not require clean up, return undefined (or nothing).":typeof Ue.then=="function"?Xe=` + +It looks like you wrote useEffect(async () => ...) or returned a Promise. Instead, write the async function inside your effect and call it immediately: + +useEffect(() => { + async function fetchData() { + // You can await here + const response = await MyAPI.getData(someId); + // ... + } + fetchData(); +}, [someId]); // Or [] if effect doesn't need props or state + +Learn more about data fetching with Hooks: https://fb.me/react-hooks-data-fetching`:Xe=" You returned: "+Ue,Ve(!1,"An effect function must not return anything besides a function, which is used for clean-up.%s%s",Xe,Cr(D))}}}G=G.next}while(G!==z)}}function xa(c){if((c.effectTag&F0)!==xi)switch(c.tag){case F:case ae:case ue:{Tc(sr,Af,c),Tc(Af,r1,c);break}default:break}}function gp(c,d,D,C){switch(D.tag){case F:case ae:case ue:{Tc(cm,cl,D);break}case k:{var O=D.stateNode;if(D.effectTag&Dr)if(d===null)Bi(D,"componentDidMount"),D.type===D.elementType&&!Sa&&(O.props!==D.memoizedProps&&Xt(!1,"Expected %s props to match memoized props before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",qt(D.type)||"instance"),O.state!==D.memoizedState&&Xt(!1,"Expected %s state to match memoized state before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",qt(D.type)||"instance")),O.componentDidMount(),Ci();else{var z=D.elementType===D.type?d.memoizedProps:Wi(D.type,d.memoizedProps),G=d.memoizedState;Bi(D,"componentDidUpdate"),D.type===D.elementType&&!Sa&&(O.props!==D.memoizedProps&&Xt(!1,"Expected %s props to match memoized props before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",qt(D.type)||"instance"),O.state!==D.memoizedState&&Xt(!1,"Expected %s state to match memoized state before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",qt(D.type)||"instance")),O.componentDidUpdate(z,G,O.__reactInternalSnapshotBeforeUpdate),Ci()}var ne=D.updateQueue;ne!==null&&(D.type===D.elementType&&!Sa&&(O.props!==D.memoizedProps&&Xt(!1,"Expected %s props to match memoized props before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",qt(D.type)||"instance"),O.state!==D.memoizedState&&Xt(!1,"Expected %s state to match memoized state before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",qt(D.type)||"instance")),go(D,ne,O,C));return}case j:{var se=D.updateQueue;if(se!==null){var Ue=null;if(D.child!==null)switch(D.child.tag){case V:Ue=Lo(D.child.stateNode);break;case k:Ue=D.child.stateNode;break}go(D,se,Ue,C)}return}case V:{var Xe=D.stateNode;if(d===null&&D.effectTag&Dr){var ht=D.type,Lt=D.memoizedProps;zu(Xe,ht,Lt,D)}return}case re:return;case q:return;case we:{if(en){var Gt=D.memoizedProps.onRender;typeof Gt=="function"&&(In?Gt(D.memoizedProps.id,d===null?"mount":"update",D.actualDuration,D.treeBaseDuration,D.actualStartTime,Il(),c.memoizedInteractions):Gt(D.memoizedProps.id,d===null?"mount":"update",D.actualDuration,D.treeBaseDuration,D.actualStartTime,Il()))}return}case he:{Bl(c,D);return}case gt:case ze:case _t:case Qe:return;default:throw Error("This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue.")}}function Ld(c,d){if(b0)for(var D=c;;){if(D.tag===V){var C=D.stateNode;d?Pa(C):ia(D.stateNode,D.memoizedProps)}else if(D.tag===re){var O=D.stateNode;d?v0(O):J0(O,D.memoizedProps)}else if(D.tag===he&&D.memoizedState!==null&&D.memoizedState.dehydrated===null){var z=D.child.sibling;z.return=D,D=z;continue}else if(D.child!==null){D.child.return=D,D=D.child;continue}if(D===c)return;for(;D.sibling===null;){if(D.return===null||D.return===c)return;D=D.return}D.sibling.return=D.return,D=D.sibling}}function Iu(c){var d=c.ref;if(d!==null){var D=c.stateNode,C;switch(c.tag){case V:C=Lo(D);break;default:C=D}Ru&&c.tag===Qe&&(C=D.methods),typeof d=="function"?d(C):(d.hasOwnProperty("current")||Ve(!1,"Unexpected ref object provided for %s. Use either a ref-setter function or React.createRef().%s",qt(c.type),Cr(c)),d.current=C)}}function Gu(c){var d=c.ref;d!==null&&(typeof d=="function"?d(null):d.current=null)}function _p(c,d,D){switch(Mn(d),d.tag){case F:case ae:case ve:case ue:{var C=d.updateQueue;if(C!==null){var O=C.lastEffect;if(O!==null){var z=O.next,G=D>Kn?Kn:D;Sn(G,function(){var ii=z;do{var Oi=ii.destroy;Oi!==void 0&&Pm(d,Oi),ii=ii.next}while(ii!==z)})}}break}case k:{mp(d);var ne=d.stateNode;typeof ne.componentWillUnmount=="function"&&iv(d,ne);return}case V:{if(yi){var se=d.dependencies;if(se!==null){var Ue=se.responders;if(Ue!==null){for(var Xe=Array.from(Ue.values()),ht=0,Lt=Xe.length;ht component higher in the tree to provide a loading indicator or placeholder to display.`+Cr(D))}Op(),C=dp(C,D);var Lt=d;do{switch(Lt.tag){case j:{var Gt=C;Lt.effectTag|=d0,Lt.expirationTime=O;var Ht=sv(Lt,Gt,O);od(Lt,Ht);return}case k:var yn=C,kr=Lt.type,ii=Lt.stateNode;if((Lt.effectTag&Kr)===xi&&(typeof kr.getDerivedStateFromError=="function"||ii!==null&&typeof ii.componentDidCatch=="function"&&!Fp(ii))){Lt.effectTag|=d0,Lt.expirationTime=O;var Oi=av(Lt,yn,O);od(Lt,Oi);return}break;default:break}Lt=Lt.return}while(Lt!==null)}var Aa=Math.ceil,Mr=it.ReactCurrentDispatcher,Dp=it.ReactCurrentOwner,vl=it.IsSomeRendererActing,yu=0,T1=1,Ui=2,wp=4,Id=8,To=16,As=32,bf=0,bd=1,Sp=2,C1=3,x1=4,Tp=5,nr=yu,ml=null,Gn=null,q0=ft,k0=bf,Bd=null,Ul=Un,R1=Un,xc=null,Rc=ft,Ud=!1,Cp=0,N0=500,dn=null,jd=!1,zd=null,Ac=null,Oc=!1,Mc=null,A1=_0,xp=ft,ef=null,Hm=50,kc=0,Hd=null,cv=50,O1=0,Bf=null,Uf=null,M1=ft;function jl(){return(nr&(To|As))!==yu?t0(mt()):(M1!==ft||(M1=t0(mt())),M1)}function Nc(){return t0(mt())}function jf(c,d,D){var C=d.mode;if((C&K)===Ar)return Un;var O=Qt();if((C&ti)===Ar)return O===Li?Un:e0;if((nr&To)!==yu)return q0;var z;if(D!==null)z=fa(c,D.timeoutMs|0||_f);else switch(O){case Li:z=Un;break;case ei:z=Ua(c);break;case Kn:case $u:z=Ds(c);break;case g0:z=ru;break;default:throw Error("Expected a valid priority level")}return ml!==null&&z===q0&&(z-=1),z}function qm(c,d){sy(),dy(c);var D=qd(c,d);if(D===null){fy(c);return}jp(c,d),la();var C=Qt();if(d===Un?(nr&Id)!==yu&&(nr&(To|As))===yu?(W(D,d),k1(D)):(Wo(D),W(D,d),nr===yu&&Ut()):(Wo(D),W(D,d)),(nr&wp)!==yu&&(C===ei||C===Li))if(ef===null)ef=new Map([[D,d]]);else{var O=ef.get(D);(O===void 0||O>d)&&ef.set(D,d)}}var yl=qm;function qd(c,d){c.expirationTimeO?C:O}function Wo(c){var d=c.lastExpiredTime;if(d!==ft){c.callbackExpirationTime=Un,c.callbackPriority=Li,c.callbackNode=Tn(k1.bind(null,c));return}var D=Wd(c),C=c.callbackNode;if(D===ft){C!==null&&(c.callbackNode=null,c.callbackExpirationTime=ft,c.callbackPriority=_0);return}var O=jl(),z=nd(O,D);if(C!==null){var G=c.callbackPriority,ne=c.callbackExpirationTime;if(ne===D&&G>=z)return;ir(C)}c.callbackExpirationTime=D,c.callbackPriority=z;var se;D===Un?se=Tn(k1.bind(null,c)):ao?se=_n(z,Vd.bind(null,c)):se=_n(z,Vd.bind(null,c),{timeout:jo(D)-mt()}),c.callbackNode=se}function Vd(c,d){if(M1=ft,d){var D=jl();return qp(c,D),Wo(c),null}var C=Wd(c);if(C!==ft){var O=c.callbackNode;if((nr&(To|As))!==yu)throw Error("Should not already be working.");if(tf(),(c!==ml||C!==q0)&&(zf(c,C),te(c,C)),Gn!==null){var z=nr;nr|=To;var G=mv(c),ne=Gd(c);mf(Gn);do try{ey();break}catch(Xe){vv(c,Xe)}while(!0);if(yt(),nr=z,yv(G),In&&Yd(ne),k0===bd){var se=Bd;throw Up(),zf(c,C),Wf(c,C),Wo(c),se}if(Gn!==null)Up();else{Rv();var Ue=c.finishedWork=c.current.alternate;c.finishedExpirationTime=C,Wm(c,Ue,k0,C)}if(Wo(c),c.callbackNode===O)return Vd.bind(null,c)}}return null}function Wm(c,d,D,C){switch(ml=null,D){case bf:case bd:throw Error("Root did not complete. This is a bug in React.");case Sp:{qp(c,C>ru?ru:C);break}case C1:{Wf(c,C);var O=c.lastSuspendedTime;C===O&&(c.nextKnownPendingLevel=Mp(d)),p();var z=Ul===Un;if(z&&!(Q0&&qf.current)){var G=Cp+N0-mt();if(G>10){if(Ud){var ne=c.lastPingedTime;if(ne===ft||ne>=C){c.lastPingedTime=C,zf(c,C);break}}var se=Wd(c);if(se!==ft&&se!==C)break;if(O!==ft&&O!==C){c.lastPingedTime=O;break}c.timeoutHandle=Ct(l0.bind(null,c),G);break}}l0(c);break}case x1:{Wf(c,C);var Ue=c.lastSuspendedTime;if(C===Ue&&(c.nextKnownPendingLevel=Mp(d)),p(),!(Q0&&qf.current)){if(Ud){var Xe=c.lastPingedTime;if(Xe===ft||Xe>=C){c.lastPingedTime=C,zf(c,C);break}}var ht=Wd(c);if(ht!==ft&&ht!==C)break;if(Ue!==ft&&Ue!==C){c.lastPingedTime=Ue;break}var Lt;if(R1!==Un)Lt=jo(R1)-mt();else if(Ul===Un)Lt=0;else{var Gt=wv(Ul),Ht=mt(),yn=jo(C)-Ht,kr=Ht-Gt;kr<0&&(kr=0),Lt=bp(kr)-kr,yn10){c.timeoutHandle=Ct(l0.bind(null,c),Lt);break}}l0(c);break}case Tp:{if(!(Q0&&qf.current)&&Ul!==Un&&xc!==null){var ii=Bp(Ul,C,xc);if(ii>10){Wf(c,C),c.timeoutHandle=Ct(l0.bind(null,c),ii);break}}l0(c);break}default:throw Error("Unknown root exit status.")}}function k1(c){var d=c.lastExpiredTime,D=d!==ft?d:Un;if(c.finishedExpirationTime===D)l0(c);else{if((nr&(To|As))!==yu)throw Error("Should not already be working.");if(tf(),(c!==ml||D!==q0)&&(zf(c,D),te(c,D)),Gn!==null){var C=nr;nr|=To;var O=mv(c),z=Gd(c);mf(Gn);do try{Sv();break}catch(ne){vv(c,ne)}while(!0);if(yt(),nr=C,yv(O),In&&Yd(z),k0===bd){var G=Bd;throw Up(),zf(c,D),Wf(c,D),Wo(c),G}if(Gn!==null)throw Error("Cannot commit an incomplete root. This error is likely caused by a bug in React. Please file an issue.");Rv(),c.finishedWork=c.current.alternate,c.finishedExpirationTime=D,Vm(c,k0,D),Wo(c)}}return null}function Vm(c,d,D){ml=null,(d===C1||d===x1)&&p(),l0(c)}function Gm(c,d){qp(c,d),Wo(c),(nr&(To|As))===yu&&Ut()}function dv(){if((nr&(T1|To|As))!==yu){(nr&To)!==yu&&Xt(!1,"unstable_flushDiscreteUpdates: Cannot flush updates when React is already rendering.");return}Km(),tf()}function Ym(c){return Sn(Kn,c)}function pv(c,d,D,C){return Sn(Li,c.bind(null,d,D,C))}function Km(){if(ef!==null){var c=ef;ef=null,c.forEach(function(d,D){qp(D,d),Wo(D)}),Ut()}}function Xm(c,d){var D=nr;nr|=T1;try{return c(d)}finally{nr=D,nr===yu&&Ut()}}function Qm(c,d){var D=nr;nr|=Ui;try{return c(d)}finally{nr=D,nr===yu&&Ut()}}function hv(c,d,D,C){var O=nr;nr|=wp;try{return Sn(ei,c.bind(null,d,D,C))}finally{nr=O,nr===yu&&Ut()}}function Jm(c,d){var D=nr;nr&=~T1,nr|=Id;try{return c(d)}finally{nr=D,nr===yu&&Ut()}}function Rp(c,d){if((nr&(To|As))!==yu)throw Error("flushSync was called from inside a lifecycle method. It cannot be called when React is already rendering.");var D=nr;nr|=T1;try{return Sn(Li,c.bind(null,d))}finally{nr=D,Ut()}}function Zm(c){var d=nr;nr|=T1;try{Sn(Li,c)}finally{nr=d,nr===yu&&Ut()}}function zf(c,d){c.finishedWork=null,c.finishedExpirationTime=ft;var D=c.timeoutHandle;if(D!==nl&&(c.timeoutHandle=nl,co(D)),Gn!==null)for(var C=Gn.return;C!==null;)nv(C),C=C.return;ml=c,Gn=Co(c.current,null,d),q0=d,k0=bf,Bd=null,Ul=Un,R1=Un,xc=null,Rc=ft,Ud=!1,In&&(Uf=null),Al.discardPendingWarnings(),Zs=null}function vv(c,d){do{try{if(yt(),_d(),ut(),Gn===null||Gn.return===null)return k0=bd,Bd=d,null;en&&Gn.mode&ni&&p1(Gn,!0),fv(c,Gn.return,Gn,d,q0),Gn=Tv(Gn)}catch(D){d=D;continue}return}while(!0)}function mv(c){var d=Mr.current;return Mr.current=f1,d===null?f1:d}function yv(c){Mr.current=c}function Gd(c){if(In){var d=N.__interactionsRef.current;return N.__interactionsRef.current=c.memoizedInteractions,d}return null}function Yd(c){In&&(N.__interactionsRef.current=c)}function Ap(){Cp=mt()}function gv(c,d){cru&&(Ul=c),d!==null&&cru&&(R1=c,xc=d)}function Kd(c){c>Rc&&(Rc=c)}function _v(){k0===bf&&(k0=C1)}function Ev(){(k0===bf||k0===C1)&&(k0=x1),Rc!==ft&&ml!==null&&(Wf(ml,q0),Kg(ml,Rc))}function Op(){k0!==Tp&&(k0=Sp)}function Dv(){return k0===bf}function wv(c){var d=jo(c);return d-_f}function $m(c,d){var D=jo(c);return D-(d.timeoutMs|0||_f)}function Sv(){for(;Gn!==null;)Gn=Xd(Gn)}function ey(){for(;Gn!==null&&!Ln();)Gn=Xd(Gn)}function Xd(c){var d=c.alternate;$l(c),wt(c);var D;return en&&(c.mode&ni)!==Ar?(H2(c),D=N1(d,c,q0),p1(c,!0)):D=N1(d,c,q0),ut(),c.memoizedProps=c.pendingProps,D===null&&(D=Tv(c)),Dp.current=null,D}function Tv(c){Gn=c;do{var d=Gn.alternate,D=Gn.return;if((Gn.effectTag&P0)===xi){wt(Gn);var C=void 0;if(!en||(Gn.mode&ni)===Ar?C=tv(d,Gn,q0):(H2(Gn),C=tv(d,Gn,q0),p1(Gn,!1)),Zr(Gn),ut(),ty(Gn),C!==null)return C;if(D!==null&&(D.effectTag&P0)===xi){D.firstEffect===null&&(D.firstEffect=Gn.firstEffect),Gn.lastEffect!==null&&(D.lastEffect!==null&&(D.lastEffect.nextEffect=Gn.firstEffect),D.lastEffect=Gn.lastEffect);var O=Gn.effectTag;O>lu&&(D.lastEffect!==null?D.lastEffect.nextEffect=Gn:D.firstEffect=Gn,D.lastEffect=Gn)}}else{var z=Mm(Gn,q0);if(en&&(Gn.mode&ni)!==Ar){p1(Gn,!1);for(var G=Gn.actualDuration,ne=Gn.child;ne!==null;)G+=ne.actualDuration,ne=ne.sibling;Gn.actualDuration=G}if(z!==null)return ho(Gn),z.effectTag&=Kl,z;Zr(Gn),D!==null&&(D.firstEffect=D.lastEffect=null,D.effectTag|=P0)}var se=Gn.sibling;if(se!==null)return se;Gn=D}while(Gn!==null);return k0===bf&&(k0=Tp),null}function Mp(c){var d=c.expirationTime,D=c.childExpirationTime;return d>D?d:D}function ty(c){if(!(q0!==Di&&c.childExpirationTime===Di)){var d=ft;if(en&&(c.mode&ni)!==Ar){for(var D=c.actualDuration,C=c.selfBaseDuration,O=c.alternate===null||c.child!==c.alternate.child,z=c.child;z!==null;){var G=z.expirationTime,ne=z.childExpirationTime;G>d&&(d=G),ne>d&&(d=ne),O&&(D+=z.actualDuration),C+=z.treeBaseDuration,z=z.sibling}c.actualDuration=D,c.treeBaseDuration=C}else for(var se=c.child;se!==null;){var Ue=se.expirationTime,Xe=se.childExpirationTime;Ue>d&&(d=Ue),Xe>d&&(d=Xe),se=se.sibling}c.childExpirationTime=d}}function l0(c){var d=Qt();return Sn(Li,kp.bind(null,c,d)),null}function kp(c,d){do tf();while(Mc!==null);if(ay(),(nr&(To|As))!==yu)throw Error("Should not already be working.");var D=c.finishedWork,C=c.finishedExpirationTime;if(D===null)return null;if(c.finishedWork=null,c.finishedExpirationTime=ft,D===c.current)throw Error("Cannot commit the same tree as before. This error is likely caused by a bug in React. Please file an issue.");c.callbackNode=null,c.callbackExpirationTime=ft,c.callbackPriority=_0,c.nextKnownPendingLevel=ft,eo();var O=Mp(D);q4(c,C,O),c===ml&&(ml=null,Gn=null,q0=ft);var z;if(D.effectTag>lu?D.lastEffect!==null?(D.lastEffect.nextEffect=D,z=D.firstEffect):z=D:z=D.firstEffect,z!==null){var G=nr;nr|=As;var ne=Gd(c);Dp.current=null,xe(),Hn(c.containerInfo),dn=z;do if(pl(null,ny,null),tr()){if(dn===null)throw Error("Should be working on an effect.");var se=Qs();Hf(dn,se),dn=dn.nextEffect}while(dn!==null);tt(),en&&Nh(),Ke(),dn=z;do if(pl(null,ry,null,c,d),tr()){if(dn===null)throw Error("Should be working on an effect.");var Ue=Qs();Hf(dn,Ue),dn=dn.nextEffect}while(dn!==null);Yt(),qr(c.containerInfo),c.current=D,Kt(),dn=z;do if(pl(null,Np,null,c,C),tr()){if(dn===null)throw Error("Should be working on an effect.");var Xe=Qs();Hf(dn,Xe),dn=dn.nextEffect}while(dn!==null);pr(),dn=null,fe(),In&&Yd(ne),nr=G}else c.current=D,xe(),tt(),en&&Nh(),Ke(),Yt(),Kt(),pr();to();var ht=Oc;if(Oc)Oc=!1,Mc=c,xp=C,A1=d;else for(dn=z;dn!==null;){var Lt=dn.nextEffect;dn.nextEffect=null,dn=Lt}var Gt=c.firstPendingTime;if(Gt!==ft){if(In){if(Uf!==null){var Ht=Uf;Uf=null;for(var yn=0;ynKn?Kn:A1;return A1=_0,Sn(c,Lp)}}function Lp(){if(Mc===null)return!1;var c=Mc,d=xp;if(Mc=null,xp=ft,(nr&(To|As))!==yu)throw Error("Cannot flush passive effects while already rendering.");var D=nr;nr|=As;for(var C=Gd(c),O=c.current.firstEffect;O!==null;){{if(wt(O),pl(null,xa,null,O),tr()){if(O===null)throw Error("Should be working on an effect.");var z=Qs();Hf(O,z)}ut()}var G=O.nextEffect;O.nextEffect=null,O=G}return In&&(Yd(C),pe(c,d)),nr=D,Ut(),O1=Mc===null?0:O1+1,!0}function Fp(c){return Ac!==null&&Ac.has(c)}function Pp(c){Ac===null?Ac=new Set([c]):Ac.add(c)}function iy(c){jd||(jd=!0,zd=c)}var uy=iy;function Cv(c,d,D){var C=dp(D,d),O=sv(c,C,Un);Va(c,O);var z=qd(c,Un);z!==null&&(Wo(z),W(z,Un))}function Hf(c,d){if(c.tag===j){Cv(c,c,d);return}for(var D=c.return;D!==null;){if(D.tag===j){Cv(D,c,d);return}else if(D.tag===k){var C=D.type,O=D.stateNode;if(typeof C.getDerivedStateFromError=="function"||typeof O.componentDidCatch=="function"&&!Fp(O)){var z=dp(d,c),G=av(D,z,Un);Va(D,G);var ne=qd(D,Un);ne!==null&&(Wo(ne),W(ne,Un));return}}D=D.return}}function Ip(c,d,D){var C=c.pingCache;if(C!==null&&C.delete(d),ml===c&&q0===D){k0===x1||k0===C1&&Ul===Un&&mt()-CpHm)throw kc=0,Hd=null,Error("Maximum update depth exceeded. This can happen when a component repeatedly calls setState inside componentWillUpdate or componentDidUpdate. React limits the number of nested updates to prevent infinite loops.");O1>cv&&(O1=0,Xt(!1,"Maximum update depth exceeded. This can happen when a component calls setState inside useEffect, but useEffect either doesn't have a dependency array, or one of the dependencies changes on every render."))}function ay(){Al.flushLegacyContextWarning(),mi&&Al.flushPendingUnsafeLifecycleWarnings()}function Rv(){var c=!0;yf(Bf,c),Bf=null}function Up(){var c=!1;yf(Bf,c),Bf=null}function jp(c,d){Hr&&ml!==null&&d>q0&&(Bf=c)}var Qd=null;function fy(c){{var d=c.tag;if(d!==j&&d!==k&&d!==F&&d!==ae&&d!==ve&&d!==ue)return;var D=qt(c.type)||"ReactComponent";if(Qd!==null){if(Qd.has(D))return;Qd.add(D)}else Qd=new Set([D]);Ve(!1,"Can't perform a React state update on an unmounted component. This is a no-op, but it indicates a memory leak in your application. To fix, cancel all subscriptions and asynchronous tasks in %s.%s",d===k?"the componentWillUnmount method":"a useEffect cleanup function",Cr(c))}}var N1;if(X0){var cy=null;N1=function(c,d,D){var C=Gg(cy,d);try{return lp(c,d,D)}catch(z){if(z!==null&&typeof z=="object"&&typeof z.then=="function")throw z;if(yt(),_d(),nv(d),Gg(d,C),en&&d.mode&ni&&H2(d),pl(null,lp,null,c,d,D),tr()){var O=Qs();throw O}else throw z}}}else N1=lp;var Av=!1,Ov=!1;function dy(c){if(c.tag===k)switch(Nr){case"getChildContext":if(Ov)return;Ve(!1,"setState(...): Cannot call setState() inside getChildContext()"),Ov=!0;break;case"render":if(Av)return;Ve(!1,"Cannot update during an existing state transition (such as within `render`). Render methods should be a pure function of props and state."),Av=!0;break}}var qf={current:!1};function zp(c){vs===!0&&vl.current===!0&&qf.current!==!0&&Ve(!1,`It looks like you're using the wrong act() around your test interactions. +Be sure to use the matching version of act() corresponding to your renderer: + +// for react-dom: +import {act} from 'react-dom/test-utils'; +// ... +act(() => ...); + +// for react-test-renderer: +import TestRenderer from 'react-test-renderer'; +const {act} = TestRenderer; +// ... +act(() => ...);%s`,Cr(c))}function Mv(c){vs===!0&&(c.mode&mr)!==Ar&&vl.current===!1&&qf.current===!1&&Ve(!1,`An update to %s ran an effect, but was not wrapped in act(...). + +When testing, code that causes React state updates should be wrapped into act(...): + +act(() => { + /* fire events that update state */ +}); +/* assert on the output */ + +This ensures that you're testing the behavior the user would see in the browser. Learn more at https://fb.me/react-wrap-tests-with-act%s`,qt(c.type),Cr(c))}function py(c){vs===!0&&nr===yu&&vl.current===!1&&qf.current===!1&&Ve(!1,`An update to %s inside a test was not wrapped in act(...). + +When testing, code that causes React state updates should be wrapped into act(...): + +act(() => { + /* fire events that update state */ +}); +/* assert on the output */ + +This ensures that you're testing the behavior the user would see in the browser. Learn more at https://fb.me/react-wrap-tests-with-act%s`,qt(c.type),Cr(c))}var hy=py,Hp=!1;function vy(c){Hp===!1&&t.unstable_flushAllWithoutAsserting===void 0&&(c.mode&K||c.mode&ti?(Hp=!0,Ve(!1,`In Concurrent or Sync modes, the "scheduler" module needs to be mocked to guarantee consistent behaviour across tests and browsers. For example, with jest: +jest.mock('scheduler', () => require('scheduler/unstable_mock')); + +For more info, visit https://fb.me/react-mock-scheduler`)):eu===!0&&(Hp=!0,Ve(!1,`Starting from React v17, the "scheduler" module will need to be mocked to guarantee consistent behaviour across tests and browsers. For example, with jest: +jest.mock('scheduler', () => require('scheduler/unstable_mock')); + +For more info, visit https://fb.me/react-mock-scheduler`)))}var Zs=null;function my(c){{var d=Qt();if((c.mode&ti)!==xi&&(d===ei||d===Li))for(var D=c;D!==null;){var C=D.alternate;if(C!==null)switch(D.tag){case k:var O=C.updateQueue;if(O!==null)for(var z=O.firstUpdate;z!==null;){var G=z.priority;if(G===ei||G===Li){Zs===null?Zs=new Set([qt(D.type)]):Zs.add(qt(D.type));break}z=z.next}break;case F:case ae:case ue:if(D.memoizedState!==null&&D.memoizedState.baseUpdate!==null)for(var ne=D.memoizedState.baseUpdate;ne!==null;){var se=ne.priority;if(se===ei||se===Li){Zs===null?Zs=new Set([qt(D.type)]):Zs.add(qt(D.type));break}if(ne.next===D.memoizedState.baseUpdate)break;ne=ne.next}break;default:break}D=D.return}}}function p(){if(Zs!==null){var c=[];Zs.forEach(function(d){return c.push(d)}),Zs=null,c.length>0&&Ve(!1,`%s triggered a user-blocking update that suspended. + +The fix is to split the update into multiple parts: a user-blocking update to provide immediate feedback, and another update that triggers the bulk of the changes. + +Refer to the documentation for useTransition to learn how to implement this pattern.`,c.sort().join(", "))}}function m(c,d){return d*1e3+c.interactionThreadID}function R(c){!In||(Uf===null?Uf=[c]:Uf.push(c))}function I(c,d,D){if(!!In&&D.size>0){var C=c.pendingInteractionMap,O=C.get(d);O!=null?D.forEach(function(ne){O.has(ne)||ne.__count++,O.add(ne)}):(C.set(d,new Set(D)),D.forEach(function(ne){ne.__count++}));var z=N.__subscriberRef.current;if(z!==null){var G=m(c,d);z.onWorkScheduled(D,G)}}}function W(c,d){!In||I(c,d,N.__interactionsRef.current)}function te(c,d){if(!!In){var D=new Set;if(c.pendingInteractionMap.forEach(function(z,G){G>=d&&z.forEach(function(ne){return D.add(ne)})}),c.memoizedInteractions=D,D.size>0){var C=N.__subscriberRef.current;if(C!==null){var O=m(c,d);try{C.onWorkStarted(D,O)}catch(z){_n(Li,function(){throw z})}}}}}function pe(c,d){if(!!In){var D=c.firstPendingTime,C;try{if(C=N.__subscriberRef.current,C!==null&&c.memoizedInteractions.size>0){var O=m(c,d);C.onWorkStopped(c.memoizedInteractions,O)}}catch(G){_n(Li,function(){throw G})}finally{var z=c.pendingInteractionMap;z.forEach(function(G,ne){ne>D&&(z.delete(ne),G.forEach(function(se){if(se.__count--,C!==null&&se.__count===0)try{C.onInteractionScheduledWorkCompleted(se)}catch(Ue){_n(Li,function(){throw Ue})}}))})}}}var Ee=null,be=null,Dt=!1,Tt=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u";function Ot(c){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u")return!1;var d=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(d.isDisabled)return!0;if(!d.supportsFiber)return Ve(!1,"The installed version of React DevTools is too old and will not work with the current version of React. Please update React DevTools. https://fb.me/react-devtools"),!0;try{var D=d.inject(c);Ee=function(C,O){try{var z=(C.current.effectTag&Kr)===Kr;if(en){var G=Nc(),ne=nd(G,O);d.onCommitFiberRoot(D,C,ne,z)}else d.onCommitFiberRoot(D,C,void 0,z)}catch(se){Dt||(Dt=!0,Ve(!1,"React DevTools encountered an error: %s",se))}},be=function(C){try{d.onCommitFiberUnmount(D,C)}catch(O){Dt||(Dt=!0,Ve(!1,"React DevTools encountered an error: %s",O))}}}catch(C){Ve(!1,"React DevTools encountered an error: %s.",C)}return!0}function on(c,d){typeof Ee=="function"&&Ee(c,d)}function Mn(c){typeof be=="function"&&be(c)}var rr;{rr=!1;try{var br=Object.preventExtensions({}),ar=new Map([[br,null]]),ri=new Set([br]);ar.set(0,0),ri.add(0)}catch{rr=!0}}var fi=1;function zl(c,d,D,C){this.tag=c,this.key=D,this.elementType=null,this.type=null,this.stateNode=null,this.return=null,this.child=null,this.sibling=null,this.index=0,this.ref=null,this.pendingProps=d,this.memoizedProps=null,this.updateQueue=null,this.memoizedState=null,this.dependencies=null,this.mode=C,this.effectTag=xi,this.nextEffect=null,this.firstEffect=null,this.lastEffect=null,this.expirationTime=ft,this.childExpirationTime=ft,this.alternate=null,en&&(this.actualDuration=Number.NaN,this.actualStartTime=Number.NaN,this.selfBaseDuration=Number.NaN,this.treeBaseDuration=Number.NaN,this.actualDuration=0,this.actualStartTime=-1,this.selfBaseDuration=0,this.treeBaseDuration=0),Hr&&(this._debugID=fi++,this._debugIsCurrentlyTiming=!1),this._debugSource=null,this._debugOwner=null,this._debugNeedsRemount=!1,this._debugHookTypes=null,!rr&&typeof Object.preventExtensions=="function"&&Object.preventExtensions(this)}var Zi=function(c,d,D,C){return new zl(c,d,D,C)};function so(c){var d=c.prototype;return!!(d&&d.isReactComponent)}function s0(c){return typeof c=="function"&&!so(c)&&c.defaultProps===void 0}function Os(c){if(typeof c=="function")return so(c)?k:F;if(c!=null){var d=c.$$typeof;if(d===On)return ae;if(d===Vt)return ve}return x}function Co(c,d,D){var C=c.alternate;C===null?(C=Zi(c.tag,d,c.key,c.mode),C.elementType=c.elementType,C.type=c.type,C.stateNode=c.stateNode,C._debugID=c._debugID,C._debugSource=c._debugSource,C._debugOwner=c._debugOwner,C._debugHookTypes=c._debugHookTypes,C.alternate=c,c.alternate=C):(C.pendingProps=d,C.effectTag=xi,C.nextEffect=null,C.firstEffect=null,C.lastEffect=null,en&&(C.actualDuration=0,C.actualStartTime=-1)),C.childExpirationTime=c.childExpirationTime,C.expirationTime=c.expirationTime,C.child=c.child,C.memoizedProps=c.memoizedProps,C.memoizedState=c.memoizedState,C.updateQueue=c.updateQueue;var O=c.dependencies;switch(C.dependencies=O===null?null:{expirationTime:O.expirationTime,firstContext:O.firstContext,responders:O.responders},C.sibling=c.sibling,C.index=c.index,C.ref=c.ref,en&&(C.selfBaseDuration=c.selfBaseDuration,C.treeBaseDuration=c.treeBaseDuration),C._debugNeedsRemount=c._debugNeedsRemount,C.tag){case x:case F:case ue:C.type=n0(c.type);break;case k:C.type=j0(c.type);break;case ae:C.type=Df(c.type);break;default:break}return C}function kv(c,d){c.effectTag&=vi,c.nextEffect=null,c.firstEffect=null,c.lastEffect=null;var D=c.alternate;if(D===null)c.childExpirationTime=ft,c.expirationTime=d,c.child=null,c.memoizedProps=null,c.memoizedState=null,c.updateQueue=null,c.dependencies=null,en&&(c.selfBaseDuration=0,c.treeBaseDuration=0);else{c.childExpirationTime=D.childExpirationTime,c.expirationTime=D.expirationTime,c.child=D.child,c.memoizedProps=D.memoizedProps,c.memoizedState=D.memoizedState,c.updateQueue=D.updateQueue;var C=D.dependencies;c.dependencies=C===null?null:{expirationTime:C.expirationTime,firstContext:C.firstContext,responders:C.responders},en&&(c.selfBaseDuration=D.selfBaseDuration,c.treeBaseDuration=D.treeBaseDuration)}return c}function F4(c){var d;return c===O0?d=ti|K|mr:c===B0?d=K|mr:d=Ar,en&&Tt&&(d|=ni),Zi(j,null,null,d)}function yy(c,d,D,C,O,z){var G,ne=x,se=c;if(typeof c=="function")so(c)?(ne=k,se=j0(se)):se=n0(se);else if(typeof c=="string")ne=V;else{e:switch(c){case le:return nf(D.children,O,z,d);case an:ne=me,O|=ti|K|mr;break;case He:ne=me,O|=mr;break;case dt:return I4(D,O,z,d);case lr:return b4(D,O,z,d);case ln:return B4(D,O,z,d);default:{if(typeof c=="object"&&c!==null)switch(c.$$typeof){case At:ne=ge;break e;case nn:ne=De;break e;case On:ne=ae,se=Df(se);break e;case Vt:ne=ve;break e;case Er:ne=Ae,se=null;break e;case S:if(Wt)return Vg(c,D,O,z,d);break;case Xn:if(Ru)return P4(c,D,O,z,d)}var Ue="";{(c===void 0||typeof c=="object"&&c!==null&&Object.keys(c).length===0)&&(Ue+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var Xe=C?qt(C.type):null;Xe&&(Ue+=` + +Check the render method of \``+Xe+"`.")}throw Error("Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: "+(c==null?c:typeof c)+"."+Ue)}}}return G=Zi(ne,D,d,O),G.elementType=c,G.type=se,G.expirationTime=z,G}function gy(c,d,D){var C=null;C=c._owner;var O=c.type,z=c.key,G=c.props,ne=yy(O,z,G,C,d,D);return ne._debugSource=c._source,ne._debugOwner=c._owner,ne}function nf(c,d,D,C){var O=Zi(y,c,C,d);return O.expirationTime=D,O}function Vg(c,d,D,C,O){var z=Zi(_t,d,O,D);return z.elementType=c,z.type=c,z.expirationTime=C,z}function P4(c,d,D,C,O){var z=Zi(Qe,d,O,D);return z.type=c,z.elementType=c,z.expirationTime=C,z}function I4(c,d,D,C){(typeof c.id!="string"||typeof c.onRender!="function")&&Ve(!1,'Profiler must specify an "id" string and "onRender" function as props');var O=Zi(we,c,C,d|ni);return O.elementType=dt,O.type=dt,O.expirationTime=D,O}function b4(c,d,D,C){var O=Zi(he,c,C,d);return O.type=lr,O.elementType=lr,O.expirationTime=D,O}function B4(c,d,D,C){var O=Zi(gt,c,C,d);return O.type=ln,O.elementType=ln,O.expirationTime=D,O}function _y(c,d,D){var C=Zi(re,c,null,d);return C.expirationTime=D,C}function U4(){var c=Zi(V,null,null,Ar);return c.elementType="DELETED",c.type="DELETED",c}function j4(c){var d=Zi(We,null,null,Ar);return d.stateNode=c,d}function Ey(c,d,D){var C=c.children!==null?c.children:[],O=Zi(q,C,c.key,d);return O.expirationTime=D,O.stateNode={containerInfo:c.containerInfo,pendingChildren:null,implementation:c.implementation},O}function Gg(c,d){return c===null&&(c=Zi(x,null,null,Ar)),c.tag=d.tag,c.key=d.key,c.elementType=d.elementType,c.type=d.type,c.stateNode=d.stateNode,c.return=d.return,c.child=d.child,c.sibling=d.sibling,c.index=d.index,c.ref=d.ref,c.pendingProps=d.pendingProps,c.memoizedProps=d.memoizedProps,c.updateQueue=d.updateQueue,c.memoizedState=d.memoizedState,c.dependencies=d.dependencies,c.mode=d.mode,c.effectTag=d.effectTag,c.nextEffect=d.nextEffect,c.firstEffect=d.firstEffect,c.lastEffect=d.lastEffect,c.expirationTime=d.expirationTime,c.childExpirationTime=d.childExpirationTime,c.alternate=d.alternate,en&&(c.actualDuration=d.actualDuration,c.actualStartTime=d.actualStartTime,c.selfBaseDuration=d.selfBaseDuration,c.treeBaseDuration=d.treeBaseDuration),c._debugID=d._debugID,c._debugSource=d._debugSource,c._debugOwner=d._debugOwner,c._debugIsCurrentlyTiming=d._debugIsCurrentlyTiming,c._debugNeedsRemount=d._debugNeedsRemount,c._debugHookTypes=d._debugHookTypes,c}function z4(c,d,D){this.tag=d,this.current=null,this.containerInfo=c,this.pendingChildren=null,this.pingCache=null,this.finishedExpirationTime=ft,this.finishedWork=null,this.timeoutHandle=nl,this.context=null,this.pendingContext=null,this.hydrate=D,this.callbackNode=null,this.callbackPriority=_0,this.firstPendingTime=ft,this.firstSuspendedTime=ft,this.lastSuspendedTime=ft,this.nextKnownPendingLevel=ft,this.lastPingedTime=ft,this.lastExpiredTime=ft,In&&(this.interactionThreadID=N.unstable_getThreadID(),this.memoizedInteractions=new Set,this.pendingInteractionMap=new Map),Yi&&(this.hydrationCallbacks=null)}function H4(c,d,D,C){var O=new z4(c,d,D);Yi&&(O.hydrationCallbacks=C);var z=F4(d);return O.current=z,z.stateNode=O,O}function Yg(c,d){var D=c.firstSuspendedTime,C=c.lastSuspendedTime;return D!==ft&&D>=d&&C<=d}function Wf(c,d){var D=c.firstSuspendedTime,C=c.lastSuspendedTime;Dd||D===ft)&&(c.lastSuspendedTime=d),d<=c.lastPingedTime&&(c.lastPingedTime=ft),d<=c.lastExpiredTime&&(c.lastExpiredTime=ft)}function Kg(c,d){var D=c.firstPendingTime;d>D&&(c.firstPendingTime=d);var C=c.firstSuspendedTime;C!==ft&&(d>=C?c.firstSuspendedTime=c.lastSuspendedTime=c.nextKnownPendingLevel=ft:d>=c.lastSuspendedTime&&(c.lastSuspendedTime=d+1),d>c.nextKnownPendingLevel&&(c.nextKnownPendingLevel=d))}function q4(c,d,D){c.firstPendingTime=D,d<=c.lastSuspendedTime?c.firstSuspendedTime=c.lastSuspendedTime=c.nextKnownPendingLevel=ft:d<=c.firstSuspendedTime&&(c.firstSuspendedTime=d-1),d<=c.lastPingedTime&&(c.lastPingedTime=ft),d<=c.lastExpiredTime&&(c.lastExpiredTime=ft)}function qp(c,d){var D=c.lastExpiredTime;(D===ft||D>d)&&(c.lastExpiredTime=d)}var W4={debugTool:null},Nv=W4,Dy,wy;Dy=!1,wy={};function V4(c){if(!c)return xn;var d=Pt(c),D=xl(d);if(d.tag===k){var C=d.type;if(Xi(C))return A0(d,C,D)}return D}function Sy(c){var d=Pt(c);if(d===void 0)throw typeof c.render=="function"?Error("Unable to find node on an unmounted component."):Error("Argument appears to not be a ReactComponent. Keys: "+Object.keys(c));var D=I0(d);return D===null?null:D.stateNode}function G4(c,d){{var D=Pt(c);if(D===void 0)throw typeof c.render=="function"?Error("Unable to find node on an unmounted component."):Error("Argument appears to not be a ReactComponent. Keys: "+Object.keys(c));var C=I0(D);if(C===null)return null;if(C.mode&mr){var O=qt(D.type)||"Component";wy[O]||(wy[O]=!0,D.mode&mr?Ve(!1,"%s is deprecated in StrictMode. %s was passed an instance of %s which is inside StrictMode. Instead, add a ref directly to the element you want to reference. Learn more about using refs safely here: https://fb.me/react-strict-mode-find-node%s",d,d,O,Cr(C)):Ve(!1,"%s is deprecated in StrictMode. %s was passed an instance of %s which renders StrictMode children. Instead, add a ref directly to the element you want to reference. Learn more about using refs safely here: https://fb.me/react-strict-mode-find-node%s",d,d,O,Cr(C)))}return C.stateNode}return Sy(c)}function Y4(c,d,D,C){return H4(c,d,D,C)}function Xg(c,d,D,C){var O=d.current,z=jl();typeof jest<"u"&&(vy(O),zp(O));var G=_o(),ne=jf(z,O,G);Nv.debugTool&&(O.alternate===null?Nv.debugTool.onMountContainer(d):c===null?Nv.debugTool.onUnmountContainer(d):Nv.debugTool.onUpdateContainer(d));var se=V4(D);d.context===null?d.context=se:d.pendingContext=se,Nr==="render"&&Rn!==null&&!Dy&&(Dy=!0,Ve(!1,`Render methods should be a pure function of props and state; triggering nested component updates from render is not allowed. If necessary, trigger nested updates in componentDidUpdate. + +Check the render method of %s.`,qt(Rn.type)||"Unknown"));var Ue=Tu(ne,G);return Ue.payload={element:c},C=C===void 0?null:C,C!==null&&(typeof C!="function"&&Ve(!1,"render(...): Expected the last optional `callback` argument to be a function. Instead received: %s.",C),Ue.callback=C),Va(O,Ue),yl(O,ne),ne}function K4(c){var d=c.current;if(!d.child)return null;switch(d.child.tag){case V:return Lo(d.child.stateNode);default:return d.child.stateNode}}function X4(c){switch(c.tag){case j:var d=c.stateNode;d.hydrate&&Gm(d,d.firstPendingTime);break;case he:Rp(function(){return yl(c,Un)});var D=Ua(jl());Lv(c,D);break}}function Qg(c,d){var D=c.memoizedState;D!==null&&D.dehydrated!==null&&D.retryTime=d.length)return C;var O=d[D],z=Array.isArray(c)?c.slice():f({},c);return z[O]=xy(c[O],d,D+1,C),z},n_=function(c,d,D){return xy(c,d,0,D)};Zg=function(c,d,D,C){for(var O=c.memoizedState;O!==null&&d>0;)O=O.next,d--;if(O!==null){var z=n_(O.memoizedState,D,C);O.memoizedState=z,O.baseState=z,c.memoizedProps=f({},c.memoizedProps),yl(c,Un)}},$g=function(c,d,D){c.pendingProps=n_(c.memoizedProps,d,D),c.alternate&&(c.alternate.pendingProps=c.pendingProps),yl(c,Un)},e_=function(c){yl(c,Un)},t_=function(c){Cy=c}}function $4(c){var d=c.findFiberByHostInstance,D=it.ReactCurrentDispatcher;return Ot(f({},c,{overrideHookState:Zg,overrideProps:$g,setSuspenseHandler:t_,scheduleUpdate:e_,currentDispatcherRef:D,findHostInstanceByFiber:function(C){var O=I0(C);return O===null?null:O.stateNode},findFiberByHostInstance:function(C){return d?d(C):null},findHostInstancesForRefresh:ud,scheduleRefresh:Ol,scheduleRoot:Ts,setRefreshHandler:qa,getCurrentFiber:function(){return Rn}}))}var r_=Object.freeze({createContainer:Y4,updateContainer:Xg,batchedEventUpdates:Qm,batchedUpdates:Xm,unbatchedUpdates:Jm,deferredUpdates:Ym,syncUpdates:pv,discreteUpdates:hv,flushDiscreteUpdates:dv,flushControlled:Zm,flushSync:Rp,flushPassiveEffects:tf,IsThisRendererActing:qf,getPublicRootInstance:K4,attemptSynchronousHydration:X4,attemptUserBlockingHydration:Q4,attemptContinuousHydration:Ty,attemptHydrationAtCurrentPriority:J4,findHostInstance:Sy,findHostInstanceWithWarning:G4,findHostInstanceWithNoPortals:Z4,shouldSuspend:Jg,injectIntoDevTools:$4}),eE=r_.default||r_;Yy.exports=eE;var tE=Yy.exports;return Yy.exports=o,tE})});var YS=nt((DH,mD)=>{"use strict";process.env.NODE_ENV==="production"?mD.exports=HS():mD.exports=GS()});var XS=nt((wH,KS)=>{"use strict";var EP={ALIGN_COUNT:8,ALIGN_AUTO:0,ALIGN_FLEX_START:1,ALIGN_CENTER:2,ALIGN_FLEX_END:3,ALIGN_STRETCH:4,ALIGN_BASELINE:5,ALIGN_SPACE_BETWEEN:6,ALIGN_SPACE_AROUND:7,DIMENSION_COUNT:2,DIMENSION_WIDTH:0,DIMENSION_HEIGHT:1,DIRECTION_COUNT:3,DIRECTION_INHERIT:0,DIRECTION_LTR:1,DIRECTION_RTL:2,DISPLAY_COUNT:2,DISPLAY_FLEX:0,DISPLAY_NONE:1,EDGE_COUNT:9,EDGE_LEFT:0,EDGE_TOP:1,EDGE_RIGHT:2,EDGE_BOTTOM:3,EDGE_START:4,EDGE_END:5,EDGE_HORIZONTAL:6,EDGE_VERTICAL:7,EDGE_ALL:8,EXPERIMENTAL_FEATURE_COUNT:1,EXPERIMENTAL_FEATURE_WEB_FLEX_BASIS:0,FLEX_DIRECTION_COUNT:4,FLEX_DIRECTION_COLUMN:0,FLEX_DIRECTION_COLUMN_REVERSE:1,FLEX_DIRECTION_ROW:2,FLEX_DIRECTION_ROW_REVERSE:3,JUSTIFY_COUNT:6,JUSTIFY_FLEX_START:0,JUSTIFY_CENTER:1,JUSTIFY_FLEX_END:2,JUSTIFY_SPACE_BETWEEN:3,JUSTIFY_SPACE_AROUND:4,JUSTIFY_SPACE_EVENLY:5,LOG_LEVEL_COUNT:6,LOG_LEVEL_ERROR:0,LOG_LEVEL_WARN:1,LOG_LEVEL_INFO:2,LOG_LEVEL_DEBUG:3,LOG_LEVEL_VERBOSE:4,LOG_LEVEL_FATAL:5,MEASURE_MODE_COUNT:3,MEASURE_MODE_UNDEFINED:0,MEASURE_MODE_EXACTLY:1,MEASURE_MODE_AT_MOST:2,NODE_TYPE_COUNT:2,NODE_TYPE_DEFAULT:0,NODE_TYPE_TEXT:1,OVERFLOW_COUNT:3,OVERFLOW_VISIBLE:0,OVERFLOW_HIDDEN:1,OVERFLOW_SCROLL:2,POSITION_TYPE_COUNT:2,POSITION_TYPE_RELATIVE:0,POSITION_TYPE_ABSOLUTE:1,PRINT_OPTIONS_COUNT:3,PRINT_OPTIONS_LAYOUT:1,PRINT_OPTIONS_STYLE:2,PRINT_OPTIONS_CHILDREN:4,UNIT_COUNT:4,UNIT_UNDEFINED:0,UNIT_POINT:1,UNIT_PERCENT:2,UNIT_AUTO:3,WRAP_COUNT:3,WRAP_NO_WRAP:0,WRAP_WRAP:1,WRAP_WRAP_REVERSE:2};KS.exports=EP});var $S=nt((SH,ZS)=>{"use strict";var DP=Object.assign||function(o){for(var l=1;l"}}]),o}(),QS=function(){H_(o,null,[{key:"fromJS",value:function(f){var h=f.width,E=f.height;return new o(h,E)}}]);function o(l,f){gD(this,o),this.width=l,this.height=f}return H_(o,[{key:"fromJS",value:function(f){f(this.width,this.height)}},{key:"toString",value:function(){return""}}]),o}(),JS=function(){function o(l,f){gD(this,o),this.unit=l,this.value=f}return H_(o,[{key:"fromJS",value:function(f){f(this.unit,this.value)}},{key:"toString",value:function(){switch(this.unit){case tc.UNIT_POINT:return String(this.value);case tc.UNIT_PERCENT:return this.value+"%";case tc.UNIT_AUTO:return"auto";default:return this.value+"?"}}},{key:"valueOf",value:function(){return this.value}}]),o}();ZS.exports=function(o,l){function f(N,F,k){var x=N[F];N[F]=function(){for(var j=arguments.length,q=Array(j),V=0;V1?q-1:0),re=1;re1&&arguments[1]!==void 0?arguments[1]:NaN,k=arguments.length>2&&arguments[2]!==void 0?arguments[2]:NaN,x=arguments.length>3&&arguments[3]!==void 0?arguments[3]:tc.DIRECTION_LTR;return N.call(this,F,k,x)}),DP({Config:l.Config,Node:l.Node,Layout:o("Layout",wP),Size:o("Size",QS),Value:o("Value",JS),getInstanceCount:function(){return l.getInstanceCount.apply(l,arguments)}},tc)}});var eT=nt((exports,module)=>{(function(o,l){typeof define=="function"&&define.amd?define([],function(){return l}):typeof module=="object"&&module.exports?module.exports=l:(o.nbind=o.nbind||{}).init=l})(exports,function(Module,cb){typeof Module=="function"&&(cb=Module,Module={}),Module.onRuntimeInitialized=function(o,l){return function(){o&&o.apply(this,arguments);try{Module.ccall("nbind_init")}catch(f){l(f);return}l(null,{bind:Module._nbind_value,reflect:Module.NBind.reflect,queryType:Module.NBind.queryType,toggleLightGC:Module.toggleLightGC,lib:Module})}}(Module.onRuntimeInitialized,cb);var Module;Module||(Module=(typeof Module<"u"?Module:null)||{});var moduleOverrides={};for(var key in Module)Module.hasOwnProperty(key)&&(moduleOverrides[key]=Module[key]);var ENVIRONMENT_IS_WEB=!1,ENVIRONMENT_IS_WORKER=!1,ENVIRONMENT_IS_NODE=!1,ENVIRONMENT_IS_SHELL=!1;if(Module.ENVIRONMENT)if(Module.ENVIRONMENT==="WEB")ENVIRONMENT_IS_WEB=!0;else if(Module.ENVIRONMENT==="WORKER")ENVIRONMENT_IS_WORKER=!0;else if(Module.ENVIRONMENT==="NODE")ENVIRONMENT_IS_NODE=!0;else if(Module.ENVIRONMENT==="SHELL")ENVIRONMENT_IS_SHELL=!0;else throw new Error("The provided Module['ENVIRONMENT'] value is not valid. It must be one of: WEB|WORKER|NODE|SHELL.");else ENVIRONMENT_IS_WEB=typeof window=="object",ENVIRONMENT_IS_WORKER=typeof importScripts=="function",ENVIRONMENT_IS_NODE=typeof process=="object"&&typeof hi=="function"&&!ENVIRONMENT_IS_WEB&&!ENVIRONMENT_IS_WORKER,ENVIRONMENT_IS_SHELL=!ENVIRONMENT_IS_WEB&&!ENVIRONMENT_IS_NODE&&!ENVIRONMENT_IS_WORKER;if(ENVIRONMENT_IS_NODE){Module.print||(Module.print=console.log),Module.printErr||(Module.printErr=console.warn);var nodeFS,nodePath;Module.read=function(l,f){nodeFS||(nodeFS={}("")),nodePath||(nodePath={}("")),l=nodePath.normalize(l);var h=nodeFS.readFileSync(l);return f?h:h.toString()},Module.readBinary=function(l){var f=Module.read(l,!0);return f.buffer||(f=new Uint8Array(f)),assert(f.buffer),f},Module.load=function(l){globalEval(read(l))},Module.thisProgram||(process.argv.length>1?Module.thisProgram=process.argv[1].replace(/\\/g,"/"):Module.thisProgram="unknown-program"),Module.arguments=process.argv.slice(2),typeof module<"u"&&(module.exports=Module),Module.inspect=function(){return"[Emscripten Module object]"}}else if(ENVIRONMENT_IS_SHELL)Module.print||(Module.print=print),typeof printErr<"u"&&(Module.printErr=printErr),typeof read<"u"?Module.read=read:Module.read=function(){throw"no read() available"},Module.readBinary=function(l){if(typeof readbuffer=="function")return new Uint8Array(readbuffer(l));var f=read(l,"binary");return assert(typeof f=="object"),f},typeof scriptArgs<"u"?Module.arguments=scriptArgs:typeof arguments<"u"&&(Module.arguments=arguments),typeof quit=="function"&&(Module.quit=function(o,l){quit(o)});else if(ENVIRONMENT_IS_WEB||ENVIRONMENT_IS_WORKER){if(Module.read=function(l){var f=new XMLHttpRequest;return f.open("GET",l,!1),f.send(null),f.responseText},ENVIRONMENT_IS_WORKER&&(Module.readBinary=function(l){var f=new XMLHttpRequest;return f.open("GET",l,!1),f.responseType="arraybuffer",f.send(null),new Uint8Array(f.response)}),Module.readAsync=function(l,f,h){var E=new XMLHttpRequest;E.open("GET",l,!0),E.responseType="arraybuffer",E.onload=function(){E.status==200||E.status==0&&E.response?f(E.response):h()},E.onerror=h,E.send(null)},typeof arguments<"u"&&(Module.arguments=arguments),typeof console<"u")Module.print||(Module.print=function(l){console.log(l)}),Module.printErr||(Module.printErr=function(l){console.warn(l)});else{var TRY_USE_DUMP=!1;Module.print||(Module.print=TRY_USE_DUMP&&typeof dump<"u"?function(o){dump(o)}:function(o){})}ENVIRONMENT_IS_WORKER&&(Module.load=importScripts),typeof Module.setWindowTitle>"u"&&(Module.setWindowTitle=function(o){document.title=o})}else throw"Unknown runtime environment. Where are we?";function globalEval(o){eval.call(null,o)}!Module.load&&Module.read&&(Module.load=function(l){globalEval(Module.read(l))}),Module.print||(Module.print=function(){}),Module.printErr||(Module.printErr=Module.print),Module.arguments||(Module.arguments=[]),Module.thisProgram||(Module.thisProgram="./this.program"),Module.quit||(Module.quit=function(o,l){throw l}),Module.print=Module.print,Module.printErr=Module.printErr,Module.preRun=[],Module.postRun=[];for(var key in moduleOverrides)moduleOverrides.hasOwnProperty(key)&&(Module[key]=moduleOverrides[key]);moduleOverrides=void 0;var Runtime={setTempRet0:function(o){return tempRet0=o,o},getTempRet0:function(){return tempRet0},stackSave:function(){return STACKTOP},stackRestore:function(o){STACKTOP=o},getNativeTypeSize:function(o){switch(o){case"i1":case"i8":return 1;case"i16":return 2;case"i32":return 4;case"i64":return 8;case"float":return 4;case"double":return 8;default:{if(o[o.length-1]==="*")return Runtime.QUANTUM_SIZE;if(o[0]==="i"){var l=parseInt(o.substr(1));return assert(l%8===0),l/8}else return 0}}},getNativeFieldSize:function(o){return Math.max(Runtime.getNativeTypeSize(o),Runtime.QUANTUM_SIZE)},STACK_ALIGN:16,prepVararg:function(o,l){return l==="double"||l==="i64"?o&7&&(assert((o&7)===4),o+=4):assert((o&3)===0),o},getAlignSize:function(o,l,f){return!f&&(o=="i64"||o=="double")?8:o?Math.min(l||(o?Runtime.getNativeFieldSize(o):0),Runtime.QUANTUM_SIZE):Math.min(l,8)},dynCall:function(o,l,f){return f&&f.length?Module["dynCall_"+o].apply(null,[l].concat(f)):Module["dynCall_"+o].call(null,l)},functionPointers:[],addFunction:function(o){for(var l=0;l>2],f=(l+o+15|0)&-16;if(HEAP32[DYNAMICTOP_PTR>>2]=f,f>=TOTAL_MEMORY){var h=enlargeMemory();if(!h)return HEAP32[DYNAMICTOP_PTR>>2]=l,0}return l},alignMemory:function(o,l){var f=o=Math.ceil(o/(l||16))*(l||16);return f},makeBigInt:function(o,l,f){var h=f?+(o>>>0)+ +(l>>>0)*4294967296:+(o>>>0)+ +(l|0)*4294967296;return h},GLOBAL_BASE:8,QUANTUM_SIZE:4,__dummy__:0};Module.Runtime=Runtime;var ABORT=0,EXITSTATUS=0;function assert(o,l){o||abort("Assertion failed: "+l)}function getCFunc(ident){var func=Module["_"+ident];if(!func)try{func=eval("_"+ident)}catch(o){}return assert(func,"Cannot call unknown function "+ident+" (perhaps LLVM optimizations or closure removed it?)"),func}var cwrap,ccall;(function(){var JSfuncs={stackSave:function(){Runtime.stackSave()},stackRestore:function(){Runtime.stackRestore()},arrayToC:function(o){var l=Runtime.stackAlloc(o.length);return writeArrayToMemory(o,l),l},stringToC:function(o){var l=0;if(o!=null&&o!==0){var f=(o.length<<2)+1;l=Runtime.stackAlloc(f),stringToUTF8(o,l,f)}return l}},toC={string:JSfuncs.stringToC,array:JSfuncs.arrayToC};ccall=function(l,f,h,E,t){var N=getCFunc(l),F=[],k=0;if(E)for(var x=0;x>0]=l;break;case"i8":HEAP8[o>>0]=l;break;case"i16":HEAP16[o>>1]=l;break;case"i32":HEAP32[o>>2]=l;break;case"i64":tempI64=[l>>>0,(tempDouble=l,+Math_abs(tempDouble)>=1?tempDouble>0?(Math_min(+Math_floor(tempDouble/4294967296),4294967295)|0)>>>0:~~+Math_ceil((tempDouble-+(~~tempDouble>>>0))/4294967296)>>>0:0)],HEAP32[o>>2]=tempI64[0],HEAP32[o+4>>2]=tempI64[1];break;case"float":HEAPF32[o>>2]=l;break;case"double":HEAPF64[o>>3]=l;break;default:abort("invalid type for setValue: "+f)}}Module.setValue=setValue;function getValue(o,l,f){switch(l=l||"i8",l.charAt(l.length-1)==="*"&&(l="i32"),l){case"i1":return HEAP8[o>>0];case"i8":return HEAP8[o>>0];case"i16":return HEAP16[o>>1];case"i32":return HEAP32[o>>2];case"i64":return HEAP32[o>>2];case"float":return HEAPF32[o>>2];case"double":return HEAPF64[o>>3];default:abort("invalid type for setValue: "+l)}return null}Module.getValue=getValue;var ALLOC_NORMAL=0,ALLOC_STACK=1,ALLOC_STATIC=2,ALLOC_DYNAMIC=3,ALLOC_NONE=4;Module.ALLOC_NORMAL=ALLOC_NORMAL,Module.ALLOC_STACK=ALLOC_STACK,Module.ALLOC_STATIC=ALLOC_STATIC,Module.ALLOC_DYNAMIC=ALLOC_DYNAMIC,Module.ALLOC_NONE=ALLOC_NONE;function allocate(o,l,f,h){var E,t;typeof o=="number"?(E=!0,t=o):(E=!1,t=o.length);var N=typeof l=="string"?l:null,F;if(f==ALLOC_NONE?F=h:F=[typeof _malloc=="function"?_malloc:Runtime.staticAlloc,Runtime.stackAlloc,Runtime.staticAlloc,Runtime.dynamicAlloc][f===void 0?ALLOC_STATIC:f](Math.max(t,N?1:l.length)),E){var h=F,k;for(assert((F&3)==0),k=F+(t&-4);h>2]=0;for(k=F+t;h>0]=0;return F}if(N==="i8")return o.subarray||o.slice?HEAPU8.set(o,F):HEAPU8.set(new Uint8Array(o),F),F;for(var x=0,j,q,V;x>0],f|=h,!(h==0&&!l||(E++,l&&E==l)););l||(l=E);var t="";if(f<128){for(var N=1024,F;l>0;)F=String.fromCharCode.apply(String,HEAPU8.subarray(o,o+Math.min(l,N))),t=t?t+F:F,o+=N,l-=N;return t}return Module.UTF8ToString(o)}Module.Pointer_stringify=Pointer_stringify;function AsciiToString(o){for(var l="";;){var f=HEAP8[o++>>0];if(!f)return l;l+=String.fromCharCode(f)}}Module.AsciiToString=AsciiToString;function stringToAscii(o,l){return writeAsciiToMemory(o,l,!1)}Module.stringToAscii=stringToAscii;var UTF8Decoder=typeof TextDecoder<"u"?new TextDecoder("utf8"):void 0;function UTF8ArrayToString(o,l){for(var f=l;o[f];)++f;if(f-l>16&&o.subarray&&UTF8Decoder)return UTF8Decoder.decode(o.subarray(l,f));for(var h,E,t,N,F,k,x="";;){if(h=o[l++],!h)return x;if(!(h&128)){x+=String.fromCharCode(h);continue}if(E=o[l++]&63,(h&224)==192){x+=String.fromCharCode((h&31)<<6|E);continue}if(t=o[l++]&63,(h&240)==224?h=(h&15)<<12|E<<6|t:(N=o[l++]&63,(h&248)==240?h=(h&7)<<18|E<<12|t<<6|N:(F=o[l++]&63,(h&252)==248?h=(h&3)<<24|E<<18|t<<12|N<<6|F:(k=o[l++]&63,h=(h&1)<<30|E<<24|t<<18|N<<12|F<<6|k))),h<65536)x+=String.fromCharCode(h);else{var j=h-65536;x+=String.fromCharCode(55296|j>>10,56320|j&1023)}}}Module.UTF8ArrayToString=UTF8ArrayToString;function UTF8ToString(o){return UTF8ArrayToString(HEAPU8,o)}Module.UTF8ToString=UTF8ToString;function stringToUTF8Array(o,l,f,h){if(!(h>0))return 0;for(var E=f,t=f+h-1,N=0;N=55296&&F<=57343&&(F=65536+((F&1023)<<10)|o.charCodeAt(++N)&1023),F<=127){if(f>=t)break;l[f++]=F}else if(F<=2047){if(f+1>=t)break;l[f++]=192|F>>6,l[f++]=128|F&63}else if(F<=65535){if(f+2>=t)break;l[f++]=224|F>>12,l[f++]=128|F>>6&63,l[f++]=128|F&63}else if(F<=2097151){if(f+3>=t)break;l[f++]=240|F>>18,l[f++]=128|F>>12&63,l[f++]=128|F>>6&63,l[f++]=128|F&63}else if(F<=67108863){if(f+4>=t)break;l[f++]=248|F>>24,l[f++]=128|F>>18&63,l[f++]=128|F>>12&63,l[f++]=128|F>>6&63,l[f++]=128|F&63}else{if(f+5>=t)break;l[f++]=252|F>>30,l[f++]=128|F>>24&63,l[f++]=128|F>>18&63,l[f++]=128|F>>12&63,l[f++]=128|F>>6&63,l[f++]=128|F&63}}return l[f]=0,f-E}Module.stringToUTF8Array=stringToUTF8Array;function stringToUTF8(o,l,f){return stringToUTF8Array(o,HEAPU8,l,f)}Module.stringToUTF8=stringToUTF8;function lengthBytesUTF8(o){for(var l=0,f=0;f=55296&&h<=57343&&(h=65536+((h&1023)<<10)|o.charCodeAt(++f)&1023),h<=127?++l:h<=2047?l+=2:h<=65535?l+=3:h<=2097151?l+=4:h<=67108863?l+=5:l+=6}return l}Module.lengthBytesUTF8=lengthBytesUTF8;var UTF16Decoder=typeof TextDecoder<"u"?new TextDecoder("utf-16le"):void 0;function demangle(o){var l=Module.___cxa_demangle||Module.__cxa_demangle;if(l){try{var f=o.substr(1),h=lengthBytesUTF8(f)+1,E=_malloc(h);stringToUTF8(f,E,h);var t=_malloc(4),N=l(E,0,0,t);if(getValue(t,"i32")===0&&N)return Pointer_stringify(N)}catch{}finally{E&&_free(E),t&&_free(t),N&&_free(N)}return o}return Runtime.warnOnce("warning: build with -s DEMANGLE_SUPPORT=1 to link in libcxxabi demangling"),o}function demangleAll(o){var l=/__Z[\w\d_]+/g;return o.replace(l,function(f){var h=demangle(f);return f===h?f:f+" ["+h+"]"})}function jsStackTrace(){var o=new Error;if(!o.stack){try{throw new Error(0)}catch(l){o=l}if(!o.stack)return"(no stack trace available)"}return o.stack.toString()}function stackTrace(){var o=jsStackTrace();return Module.extraStackTrace&&(o+=` +`+Module.extraStackTrace()),demangleAll(o)}Module.stackTrace=stackTrace;var HEAP,buffer,HEAP8,HEAPU8,HEAP16,HEAPU16,HEAP32,HEAPU32,HEAPF32,HEAPF64;function updateGlobalBufferViews(){Module.HEAP8=HEAP8=new Int8Array(buffer),Module.HEAP16=HEAP16=new Int16Array(buffer),Module.HEAP32=HEAP32=new Int32Array(buffer),Module.HEAPU8=HEAPU8=new Uint8Array(buffer),Module.HEAPU16=HEAPU16=new Uint16Array(buffer),Module.HEAPU32=HEAPU32=new Uint32Array(buffer),Module.HEAPF32=HEAPF32=new Float32Array(buffer),Module.HEAPF64=HEAPF64=new Float64Array(buffer)}var STATIC_BASE,STATICTOP,staticSealed,STACK_BASE,STACKTOP,STACK_MAX,DYNAMIC_BASE,DYNAMICTOP_PTR;STATIC_BASE=STATICTOP=STACK_BASE=STACKTOP=STACK_MAX=DYNAMIC_BASE=DYNAMICTOP_PTR=0,staticSealed=!1;function abortOnCannotGrowMemory(){abort("Cannot enlarge memory arrays. Either (1) compile with -s TOTAL_MEMORY=X with X higher than the current value "+TOTAL_MEMORY+", (2) compile with -s ALLOW_MEMORY_GROWTH=1 which allows increasing the size at runtime but prevents some optimizations, (3) set Module.TOTAL_MEMORY to a higher value before the program runs, or (4) if you want malloc to return NULL (0) instead of this abort, compile with -s ABORTING_MALLOC=0 ")}function enlargeMemory(){abortOnCannotGrowMemory()}var TOTAL_STACK=Module.TOTAL_STACK||5242880,TOTAL_MEMORY=Module.TOTAL_MEMORY||134217728;TOTAL_MEMORY0;){var l=o.shift();if(typeof l=="function"){l();continue}var f=l.func;typeof f=="number"?l.arg===void 0?Module.dynCall_v(f):Module.dynCall_vi(f,l.arg):f(l.arg===void 0?null:l.arg)}}var __ATPRERUN__=[],__ATINIT__=[],__ATMAIN__=[],__ATEXIT__=[],__ATPOSTRUN__=[],runtimeInitialized=!1,runtimeExited=!1;function preRun(){if(Module.preRun)for(typeof Module.preRun=="function"&&(Module.preRun=[Module.preRun]);Module.preRun.length;)addOnPreRun(Module.preRun.shift());callRuntimeCallbacks(__ATPRERUN__)}function ensureInitRuntime(){runtimeInitialized||(runtimeInitialized=!0,callRuntimeCallbacks(__ATINIT__))}function preMain(){callRuntimeCallbacks(__ATMAIN__)}function exitRuntime(){callRuntimeCallbacks(__ATEXIT__),runtimeExited=!0}function postRun(){if(Module.postRun)for(typeof Module.postRun=="function"&&(Module.postRun=[Module.postRun]);Module.postRun.length;)addOnPostRun(Module.postRun.shift());callRuntimeCallbacks(__ATPOSTRUN__)}function addOnPreRun(o){__ATPRERUN__.unshift(o)}Module.addOnPreRun=addOnPreRun;function addOnInit(o){__ATINIT__.unshift(o)}Module.addOnInit=addOnInit;function addOnPreMain(o){__ATMAIN__.unshift(o)}Module.addOnPreMain=addOnPreMain;function addOnExit(o){__ATEXIT__.unshift(o)}Module.addOnExit=addOnExit;function addOnPostRun(o){__ATPOSTRUN__.unshift(o)}Module.addOnPostRun=addOnPostRun;function intArrayFromString(o,l,f){var h=f>0?f:lengthBytesUTF8(o)+1,E=new Array(h),t=stringToUTF8Array(o,E,0,E.length);return l&&(E.length=t),E}Module.intArrayFromString=intArrayFromString;function intArrayToString(o){for(var l=[],f=0;f255&&(h&=255),l.push(String.fromCharCode(h))}return l.join("")}Module.intArrayToString=intArrayToString;function writeStringToMemory(o,l,f){Runtime.warnOnce("writeStringToMemory is deprecated and should not be called! Use stringToUTF8() instead!");var h,E;f&&(E=l+lengthBytesUTF8(o),h=HEAP8[E]),stringToUTF8(o,l,1/0),f&&(HEAP8[E]=h)}Module.writeStringToMemory=writeStringToMemory;function writeArrayToMemory(o,l){HEAP8.set(o,l)}Module.writeArrayToMemory=writeArrayToMemory;function writeAsciiToMemory(o,l,f){for(var h=0;h>0]=o.charCodeAt(h);f||(HEAP8[l>>0]=0)}if(Module.writeAsciiToMemory=writeAsciiToMemory,(!Math.imul||Math.imul(4294967295,5)!==-5)&&(Math.imul=function o(l,f){var h=l>>>16,E=l&65535,t=f>>>16,N=f&65535;return E*N+(h*N+E*t<<16)|0}),Math.imul=Math.imul,!Math.fround){var froundBuffer=new Float32Array(1);Math.fround=function(o){return froundBuffer[0]=o,froundBuffer[0]}}Math.fround=Math.fround,Math.clz32||(Math.clz32=function(o){o=o>>>0;for(var l=0;l<32;l++)if(o&1<<31-l)return l;return 32}),Math.clz32=Math.clz32,Math.trunc||(Math.trunc=function(o){return o<0?Math.ceil(o):Math.floor(o)}),Math.trunc=Math.trunc;var Math_abs=Math.abs,Math_cos=Math.cos,Math_sin=Math.sin,Math_tan=Math.tan,Math_acos=Math.acos,Math_asin=Math.asin,Math_atan=Math.atan,Math_atan2=Math.atan2,Math_exp=Math.exp,Math_log=Math.log,Math_sqrt=Math.sqrt,Math_ceil=Math.ceil,Math_floor=Math.floor,Math_pow=Math.pow,Math_imul=Math.imul,Math_fround=Math.fround,Math_round=Math.round,Math_min=Math.min,Math_clz32=Math.clz32,Math_trunc=Math.trunc,runDependencies=0,runDependencyWatcher=null,dependenciesFulfilled=null;function getUniqueRunDependency(o){return o}function addRunDependency(o){runDependencies++,Module.monitorRunDependencies&&Module.monitorRunDependencies(runDependencies)}Module.addRunDependency=addRunDependency;function removeRunDependency(o){if(runDependencies--,Module.monitorRunDependencies&&Module.monitorRunDependencies(runDependencies),runDependencies==0&&(runDependencyWatcher!==null&&(clearInterval(runDependencyWatcher),runDependencyWatcher=null),dependenciesFulfilled)){var l=dependenciesFulfilled;dependenciesFulfilled=null,l()}}Module.removeRunDependency=removeRunDependency,Module.preloadedImages={},Module.preloadedAudios={};var ASM_CONSTS=[function(o,l,f,h,E,t,N,F){return _nbind.callbackSignatureList[o].apply(this,arguments)}];function _emscripten_asm_const_iiiiiiii(o,l,f,h,E,t,N,F){return ASM_CONSTS[o](l,f,h,E,t,N,F)}function _emscripten_asm_const_iiiii(o,l,f,h,E){return ASM_CONSTS[o](l,f,h,E)}function _emscripten_asm_const_iiidddddd(o,l,f,h,E,t,N,F,k){return ASM_CONSTS[o](l,f,h,E,t,N,F,k)}function _emscripten_asm_const_iiididi(o,l,f,h,E,t,N){return ASM_CONSTS[o](l,f,h,E,t,N)}function _emscripten_asm_const_iiii(o,l,f,h){return ASM_CONSTS[o](l,f,h)}function _emscripten_asm_const_iiiid(o,l,f,h,E){return ASM_CONSTS[o](l,f,h,E)}function _emscripten_asm_const_iiiiii(o,l,f,h,E,t){return ASM_CONSTS[o](l,f,h,E,t)}STATIC_BASE=Runtime.GLOBAL_BASE,STATICTOP=STATIC_BASE+12800,__ATINIT__.push({func:function(){__GLOBAL__sub_I_Yoga_cpp()}},{func:function(){__GLOBAL__sub_I_nbind_cc()}},{func:function(){__GLOBAL__sub_I_common_cc()}},{func:function(){__GLOBAL__sub_I_Binding_cc()}}),allocate([0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,192,127,0,0,192,127,0,0,192,127,0,0,192,127,3,0,0,0,0,0,192,127,0,0,0,0,0,0,192,127,0,0,0,0,0,0,192,127,0,0,0,0,0,0,192,127,0,0,0,0,0,0,192,127,0,0,0,0,0,0,192,127,0,0,0,0,0,0,192,127,0,0,0,0,0,0,192,127,0,0,0,0,0,0,192,127,0,0,0,0,0,0,192,127,0,0,0,0,0,0,192,127,0,0,0,0,0,0,192,127,0,0,0,0,0,0,192,127,0,0,0,0,0,0,192,127,0,0,0,0,0,0,192,127,0,0,0,0,0,0,192,127,0,0,0,0,0,0,192,127,0,0,0,0,0,0,192,127,0,0,0,0,0,0,192,127,0,0,0,0,0,0,192,127,0,0,0,0,0,0,192,127,0,0,0,0,0,0,192,127,0,0,0,0,0,0,192,127,0,0,0,0,0,0,192,127,0,0,0,0,0,0,192,127,0,0,0,0,0,0,192,127,0,0,0,0,0,0,192,127,0,0,0,0,0,0,192,127,0,0,0,0,0,0,192,127,0,0,0,0,0,0,192,127,0,0,0,0,0,0,192,127,0,0,0,0,0,0,192,127,0,0,0,0,0,0,192,127,0,0,0,0,0,0,192,127,0,0,0,0,0,0,192,127,0,0,0,0,0,0,192,127,0,0,0,0,0,0,192,127,3,0,0,0,0,0,192,127,3,0,0,0,0,0,192,127,0,0,0,0,0,0,192,127,0,0,0,0,0,0,192,127,0,0,0,0,0,0,192,127,0,0,0,0,0,0,192,127,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,192,127,0,0,192,127,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,192,127,0,0,0,0,0,0,0,0,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,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0,0,0,1,0,0,0,2,0,0,0,3,0,0,0,1,0,0,0,4,0,0,0,183,45,0,0,181,45,0,0,181,45,0,0,181,45,0,0,181,45,0,0,181,45,0,0,181,45,0,0,184,45,0,0,185,45,0,0,181,45,0,0,181,45,0,0,182,45,0,0,186,45,0,0,185,45,0,0,148,4,0,0,3,0,0,0,187,45,0,0,164,4,0,0,188,45,0,0,2,0,0,0,189,45,0,0,164,4,0,0,188,45,0,0,185,45,0,0,164,4,0,0,185,45,0,0,164,4,0,0,188,45,0,0,181,45,0,0,182,45,0,0,181,45,0,0,0,0,0,0,0,0,0,0,1,0,0,0,5,0,0,0,6,0,0,0,1,0,0,0,7,0,0,0,183,45,0,0,182,45,0,0,181,45,0,0,190,45,0,0,190,45,0,0,182,45,0,0,182,45,0,0,185,45,0,0,181,45,0,0,185,45,0,0,182,45,0,0,181,45,0,0,185,45,0,0,182,45,0,0,185,45,0,0,48,5,0,0,3,0,0,0,56,5,0,0,1,0,0,0,189,45,0,0,185,45,0,0,164,4,0,0,76,5,0,0,2,0,0,0,191,45,0,0,186,45,0,0,182,45,0,0,185,45,0,0,192,45,0,0,185,45,0,0,182,45,0,0,186,45,0,0,185,45,0,0,76,5,0,0,76,5,0,0,136,5,0,0,182,45,0,0,181,45,0,0,2,0,0,0,190,45,0,0,136,5,0,0,56,19,0,0,156,5,0,0,2,0,0,0,184,45,0,0,0,0,0,0,0,0,0,0,1,0,0,0,8,0,0,0,9,0,0,0,1,0,0,0,10,0,0,0,204,5,0,0,181,45,0,0,181,45,0,0,2,0,0,0,180,45,0,0,204,5,0,0,2,0,0,0,195,45,0,0,236,5,0,0,97,19,0,0,198,45,0,0,211,45,0,0,212,45,0,0,213,45,0,0,214,45,0,0,215,45,0,0,188,45,0,0,182,45,0,0,216,45,0,0,217,45,0,0,218,45,0,0,219,45,0,0,192,45,0,0,181,45,0,0,0,0,0,0,185,45,0,0,110,19,0,0,186,45,0,0,115,19,0,0,221,45,0,0,120,19,0,0,148,4,0,0,132,19,0,0,96,6,0,0,145,19,0,0,222,45,0,0,164,19,0,0,223,45,0,0,173,19,0,0,0,0,0,0,3,0,0,0,104,6,0,0,1,0,0,0,187,45,0,0,0,0,0,0,0,0,0,0,1,0,0,0,11,0,0,0,12,0,0,0,1,0,0,0,13,0,0,0,185,45,0,0,224,45,0,0,164,6,0,0,188,45,0,0,172,6,0,0,180,6,0,0,2,0,0,0,188,6,0,0,7,0,0,0,224,45,0,0,7,0,0,0,164,6,0,0,1,0,0,0,213,45,0,0,185,45,0,0,224,45,0,0,172,6,0,0,185,45,0,0,224,45,0,0,164,6,0,0,185,45,0,0,224,45,0,0,211,45,0,0,211,45,0,0,222,45,0,0,211,45,0,0,224,45,0,0,222,45,0,0,211,45,0,0,224,45,0,0,172,6,0,0,222,45,0,0,211,45,0,0,224,45,0,0,188,45,0,0,222,45,0,0,211,45,0,0,40,7,0,0,188,45,0,0,2,0,0,0,224,45,0,0,185,45,0,0,188,45,0,0,188,45,0,0,188,45,0,0,188,45,0,0,222,45,0,0,224,45,0,0,148,4,0,0,185,45,0,0,148,4,0,0,148,4,0,0,148,4,0,0,148,4,0,0,148,4,0,0,185,45,0,0,164,6,0,0,148,4,0,0,0,0,0,0,0,0,0,0,1,0,0,0,14,0,0,0,15,0,0,0,1,0,0,0,16,0,0,0,148,7,0,0,2,0,0,0,225,45,0,0,183,45,0,0,188,45,0,0,168,7,0,0,5,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,2,0,0,0,234,45,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,148,45,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,28,9,0,0,5,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,3,0,0,0,2,0,0,0,242,45,0,0,0,4,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,10,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,67,111,117,108,100,32,110,111,116,32,97,108,108,111,99,97,116,101,32,109,101,109,111,114,121,32,102,111,114,32,110,111,100,101,0,67,97,110,110,111,116,32,114,101,115,101,116,32,97,32,110,111,100,101,32,119,104,105,99,104,32,115,116,105,108,108,32,104,97,115,32,99,104,105,108,100,114,101,110,32,97,116,116,97,99,104,101,100,0,67,97,110,110,111,116,32,114,101,115,101,116,32,97,32,110,111,100,101,32,115,116,105,108,108,32,97,116,116,97,99,104,101,100,32,116,111,32,97,32,112,97,114,101,110,116,0,67,111,117,108,100,32,110,111,116,32,97,108,108,111,99,97,116,101,32,109,101,109,111,114,121,32,102,111,114,32,99,111,110,102,105,103,0,67,97,110,110,111,116,32,115,101,116,32,109,101,97,115,117,114,101,32,102,117,110,99,116,105,111,110,58,32,78,111,100,101,115,32,119,105,116,104,32,109,101,97,115,117,114,101,32,102,117,110,99,116,105,111,110,115,32,99,97,110,110,111,116,32,104,97,118,101,32,99,104,105,108,100,114,101,110,46,0,67,104,105,108,100,32,97,108,114,101,97,100,121,32,104,97,115,32,97,32,112,97,114,101,110,116,44,32,105,116,32,109,117,115,116,32,98,101,32,114,101,109,111,118,101,100,32,102,105,114,115,116,46,0,67,97,110,110,111,116,32,97,100,100,32,99,104,105,108,100,58,32,78,111,100,101,115,32,119,105,116,104,32,109,101,97,115,117,114,101,32,102,117,110,99,116,105,111,110,115,32,99,97,110,110,111,116,32,104,97,118,101,32,99,104,105,108,100,114,101,110,46,0,79,110,108,121,32,108,101,97,102,32,110,111,100,101,115,32,119,105,116,104,32,99,117,115,116,111,109,32,109,101,97,115,117,114,101,32,102,117,110,99,116,105,111,110,115,115,104,111,117,108,100,32,109,97,110,117,97,108,108,121,32,109,97,114,107,32,116,104,101,109,115,101,108,118,101,115,32,97,115,32,100,105,114,116,121,0,67,97,110,110,111,116,32,103,101,116,32,108,97,121,111,117,116,32,112,114,111,112,101,114,116,105,101,115,32,111,102,32,109,117,108,116,105,45,101,100,103,101,32,115,104,111,114,116,104,97,110,100,115,0,37,115,37,100,46,123,91,115,107,105,112,112,101,100,93,32,0,119,109,58,32,37,115,44,32,104,109,58,32,37,115,44,32,97,119,58,32,37,102,32,97,104,58,32,37,102,32,61,62,32,100,58,32,40,37,102,44,32,37,102,41,32,37,115,10,0,37,115,37,100,46,123,37,115,0,42,0,119,109,58,32,37,115,44,32,104,109,58,32,37,115,44,32,97,119,58,32,37,102,32,97,104,58,32,37,102,32,37,115,10,0,37,115,37,100,46,125,37,115,0,119,109,58,32,37,115,44,32,104,109,58,32,37,115,44,32,100,58,32,40,37,102,44,32,37,102,41,32,37,115,10,0,79,117,116,32,111,102,32,99,97,99,104,101,32,101,110,116,114,105,101,115,33,10,0,83,99,97,108,101,32,102,97,99,116,111,114,32,115,104,111,117,108,100,32,110,111,116,32,98,101,32,108,101,115,115,32,116,104,97,110,32,122,101,114,111,0,105,110,105,116,105,97,108,0,37,115,10,0,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,0,85,78,68,69,70,73,78,69,68,0,69,88,65,67,84,76,89,0,65,84,95,77,79,83,84,0,76,65,89,95,85,78,68,69,70,73,78,69,68,0,76,65,89,95,69,88,65,67,84,76,89,0,76,65,89,95,65,84,95,77,79,83,84,0,97,118,97,105,108,97,98,108,101,87,105,100,116,104,32,105,115,32,105,110,100,101,102,105,110,105,116,101,32,115,111,32,119,105,100,116,104,77,101,97,115,117,114,101,77,111,100,101,32,109,117,115,116,32,98,101,32,89,71,77,101,97,115,117,114,101,77,111,100,101,85,110,100,101,102,105,110,101,100,0,97,118,97,105,108,97,98,108,101,72,101,105,103,104,116,32,105,115,32,105,110,100,101,102,105,110,105,116,101,32,115,111,32,104,101,105,103,104,116,77,101,97,115,117,114,101,77,111,100,101,32,109,117,115,116,32,98,101,32,89,71,77,101,97,115,117,114,101,77,111,100,101,85,110,100,101,102,105,110,101,100,0,102,108,101,120,0,115,116,114,101,116,99,104,0,109,117,108,116,105,108,105,110,101,45,115,116,114,101,116,99,104,0,69,120,112,101,99,116,101,100,32,110,111,100,101,32,116,111,32,104,97,118,101,32,99,117,115,116,111,109,32,109,101,97,115,117,114,101,32,102,117,110,99,116,105,111,110,0,109,101,97,115,117,114,101,0,69,120,112,101,99,116,32,99,117,115,116,111,109,32,98,97,115,101,108,105,110,101,32,102,117,110,99,116,105,111,110,32,116,111,32,110,111,116,32,114,101,116,117,114,110,32,78,97,78,0,97,98,115,45,109,101,97,115,117,114,101,0,97,98,115,45,108,97,121,111,117,116,0,78,111,100,101,0,99,114,101,97,116,101,68,101,102,97,117,108,116,0,99,114,101,97,116,101,87,105,116,104,67,111,110,102,105,103,0,100,101,115,116,114,111,121,0,114,101,115,101,116,0,99,111,112,121,83,116,121,108,101,0,115,101,116,80,111,115,105,116,105,111,110,84,121,112,101,0,115,101,116,80,111,115,105,116,105,111,110,0,115,101,116,80,111,115,105,116,105,111,110,80,101,114,99,101,110,116,0,115,101,116,65,108,105,103,110,67,111,110,116,101,110,116,0,115,101,116,65,108,105,103,110,73,116,101,109,115,0,115,101,116,65,108,105,103,110,83,101,108,102,0,115,101,116,70,108,101,120,68,105,114,101,99,116,105,111,110,0,115,101,116,70,108,101,120,87,114,97,112,0,115,101,116,74,117,115,116,105,102,121,67,111,110,116,101,110,116,0,115,101,116,77,97,114,103,105,110,0,115,101,116,77,97,114,103,105,110,80,101,114,99,101,110,116,0,115,101,116,77,97,114,103,105,110,65,117,116,111,0,115,101,116,79,118,101,114,102,108,111,119,0,115,101,116,68,105,115,112,108,97,121,0,115,101,116,70,108,101,120,0,115,101,116,70,108,101,120,66,97,115,105,115,0,115,101,116,70,108,101,120,66,97,115,105,115,80,101,114,99,101,110,116,0,115,101,116,70,108,101,120,71,114,111,119,0,115,101,116,70,108,101,120,83,104,114,105,110,107,0,115,101,116,87,105,100,116,104,0,115,101,116,87,105,100,116,104,80,101,114,99,101,110,116,0,115,101,116,87,105,100,116,104,65,117,116,111,0,115,101,116,72,101,105,103,104,116,0,115,101,116,72,101,105,103,104,116,80,101,114,99,101,110,116,0,115,101,116,72,101,105,103,104,116,65,117,116,111,0,115,101,116,77,105,110,87,105,100,116,104,0,115,101,116,77,105,110,87,105,100,116,104,80,101,114,99,101,110,116,0,115,101,116,77,105,110,72,101,105,103,104,116,0,115,101,116,77,105,110,72,101,105,103,104,116,80,101,114,99,101,110,116,0,115,101,116,77,97,120,87,105,100,116,104,0,115,101,116,77,97,120,87,105,100,116,104,80,101,114,99,101,110,116,0,115,101,116,77,97,120,72,101,105,103,104,116,0,115,101,116,77,97,120,72,101,105,103,104,116,80,101,114,99,101,110,116,0,115,101,116,65,115,112,101,99,116,82,97,116,105,111,0,115,101,116,66,111,114,100,101,114,0,115,101,116,80,97,100,100,105,110,103,0,115,101,116,80,97,100,100,105,110,103,80,101,114,99,101,110,116,0,103,101,116,80,111,115,105,116,105,111,110,84,121,112,101,0,103,101,116,80,111,115,105,116,105,111,110,0,103,101,116,65,108,105,103,110,67,111,110,116,101,110,116,0,103,101,116,65,108,105,103,110,73,116,101,109,115,0,103,101,116,65,108,105,103,110,83,101,108,102,0,103,101,116,70,108,101,120,68,105,114,101,99,116,105,111,110,0,103,101,116,70,108,101,120,87,114,97,112,0,103,101,116,74,117,115,116,105,102,121,67,111,110,116,101,110,116,0,103,101,116,77,97,114,103,105,110,0,103,101,116,70,108,101,120,66,97,115,105,115,0,103,101,116,70,108,101,120,71,114,111,119,0,103,101,116,70,108,101,120,83,104,114,105,110,107,0,103,101,116,87,105,100,116,104,0,103,101,116,72,101,105,103,104,116,0,103,101,116,77,105,110,87,105,100,116,104,0,103,101,116,77,105,110,72,101,105,103,104,116,0,103,101,116,77,97,120,87,105,100,116,104,0,103,101,116,77,97,120,72,101,105,103,104,116,0,103,101,116,65,115,112,101,99,116,82,97,116,105,111,0,103,101,116,66,111,114,100,101,114,0,103,101,116,79,118,101,114,102,108,111,119,0,103,101,116,68,105,115,112,108,97,121,0,103,101,116,80,97,100,100,105,110,103,0,105,110,115,101,114,116,67,104,105,108,100,0,114,101,109,111,118,101,67,104,105,108,100,0,103,101,116,67,104,105,108,100,67,111,117,110,116,0,103,101,116,80,97,114,101,110,116,0,103,101,116,67,104,105,108,100,0,115,101,116,77,101,97,115,117,114,101,70,117,110,99,0,117,110,115,101,116,77,101,97,115,117,114,101,70,117,110,99,0,109,97,114,107,68,105,114,116,121,0,105,115,68,105,114,116,121,0,99,97,108,99,117,108,97,116,101,76,97,121,111,117,116,0,103,101,116,67,111,109,112,117,116,101,100,76,101,102,116,0,103,101,116,67,111,109,112,117,116,101,100,82,105,103,104,116,0,103,101,116,67,111,109,112,117,116,101,100,84,111,112,0,103,101,116,67,111,109,112,117,116,101,100,66,111,116,116,111,109,0,103,101,116,67,111,109,112,117,116,101,100,87,105,100,116,104,0,103,101,116,67,111,109,112,117,116,101,100,72,101,105,103,104,116,0,103,101,116,67,111,109,112,117,116,101,100,76,97,121,111,117,116,0,103,101,116,67,111,109,112,117,116,101,100,77,97,114,103,105,110,0,103,101,116,67,111,109,112,117,116,101,100,66,111,114,100,101,114,0,103,101,116,67,111,109,112,117,116,101,100,80,97,100,100,105,110,103,0,67,111,110,102,105,103,0,99,114,101,97,116,101,0,115,101,116,69,120,112,101,114,105,109,101,110,116,97,108,70,101,97,116,117,114,101,69,110,97,98,108,101,100,0,115,101,116,80,111,105,110,116,83,99,97,108,101,70,97,99,116,111,114,0,105,115,69,120,112,101,114,105,109,101,110,116,97,108,70,101,97,116,117,114,101,69,110,97,98,108,101,100,0,86,97,108,117,101,0,76,97,121,111,117,116,0,83,105,122,101,0,103,101,116,73,110,115,116,97,110,99,101,67,111,117,110,116,0,73,110,116,54,52,0,1,1,1,2,2,4,4,4,4,8,8,4,8,118,111,105,100,0,98,111,111,108,0,115,116,100,58,58,115,116,114,105,110,103,0,99,98,70,117,110,99,116,105,111,110,32,38,0,99,111,110,115,116,32,99,98,70,117,110,99,116,105,111,110,32,38,0,69,120,116,101,114,110,97,108,0,66,117,102,102,101,114,0,78,66,105,110,100,73,68,0,78,66,105,110,100,0,98,105,110,100,95,118,97,108,117,101,0,114,101,102,108,101,99,116,0,113,117,101,114,121,84,121,112,101,0,108,97,108,108,111,99,0,108,114,101,115,101,116,0,123,114,101,116,117,114,110,40,95,110,98,105,110,100,46,99,97,108,108,98,97,99,107,83,105,103,110,97,116,117,114,101,76,105,115,116,91,36,48,93,46,97,112,112,108,121,40,116,104,105,115,44,97,114,103,117,109,101,110,116,115,41,41,59,125,0,95,110,98,105,110,100,95,110,101,119,0,17,0,10,0,17,17,17,0,0,0,0,5,0,0,0,0,0,0,9,0,0,0,0,11,0,0,0,0,0,0,0,0,17,0,15,10,17,17,17,3,10,7,0,1,19,9,11,11,0,0,9,6,11,0,0,11,0,6,17,0,0,0,17,17,17,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,11,0,0,0,0,0,0,0,0,17,0,10,10,17,17,17,0,10,0,0,2,0,9,11,0,0,0,9,0,11,0,0,11,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,12,0,0,0,0,0,0,0,0,0,0,0,12,0,0,0,0,12,0,0,0,0,9,12,0,0,0,0,0,12,0,0,12,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,14,0,0,0,0,0,0,0,0,0,0,0,13,0,0,0,4,13,0,0,0,0,9,14,0,0,0,0,0,14,0,0,14,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,16,0,0,0,0,0,0,0,0,0,0,0,15,0,0,0,0,15,0,0,0,0,9,16,0,0,0,0,0,16,0,0,16,0,0,18,0,0,0,18,18,18,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,18,0,0,0,18,18,18,0,0,0,0,0,0,9,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,11,0,0,0,0,0,0,0,0,0,0,0,10,0,0,0,0,10,0,0,0,0,9,11,0,0,0,0,0,11,0,0,11,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,12,0,0,0,0,0,0,0,0,0,0,0,12,0,0,0,0,12,0,0,0,0,9,12,0,0,0,0,0,12,0,0,12,0,0,45,43,32,32,32,48,88,48,120,0,40,110,117,108,108,41,0,45,48,88,43,48,88,32,48,88,45,48,120,43,48,120,32,48,120,0,105,110,102,0,73,78,70,0,110,97,110,0,78,65,78,0,48,49,50,51,52,53,54,55,56,57,65,66,67,68,69,70,46,0,84,33,34,25,13,1,2,3,17,75,28,12,16,4,11,29,18,30,39,104,110,111,112,113,98,32,5,6,15,19,20,21,26,8,22,7,40,36,23,24,9,10,14,27,31,37,35,131,130,125,38,42,43,60,61,62,63,67,71,74,77,88,89,90,91,92,93,94,95,96,97,99,100,101,102,103,105,106,107,108,114,115,116,121,122,123,124,0,73,108,108,101,103,97,108,32,98,121,116,101,32,115,101,113,117,101,110,99,101,0,68,111,109,97,105,110,32,101,114,114,111,114,0,82,101,115,117,108,116,32,110,111,116,32,114,101,112,114,101,115,101,110,116,97,98,108,101,0,78,111,116,32,97,32,116,116,121,0,80,101,114,109,105,115,115,105,111,110,32,100,101,110,105,101,100,0,79,112,101,114,97,116,105,111,110,32,110,111,116,32,112,101,114,109,105,116,116,101,100,0,78,111,32,115,117,99,104,32,102,105,108,101,32,111,114,32,100,105,114,101,99,116,111,114,121,0,78,111,32,115,117,99,104,32,112,114,111,99,101,115,115,0,70,105,108,101,32,101,120,105,115,116,115,0,86,97,108,117,101,32,116,111,111,32,108,97,114,103,101,32,102,111,114,32,100,97,116,97,32,116,121,112,101,0,78,111,32,115,112,97,99,101,32,108,101,102,116,32,111,110,32,100,101,118,105,99,101,0,79,117,116,32,111,102,32,109,101,109,111,114,121,0,82,101,115,111,117,114,99,101,32,98,117,115,121,0,73,110,116,101,114,114,117,112,116,101,100,32,115,121,115,116,101,109,32,99,97,108,108,0,82,101,115,111,117,114,99,101,32,116,101,109,112,111,114,97,114,105,108,121,32,117,110,97,118,97,105,108,97,98,108,101,0,73,110,118,97,108,105,100,32,115,101,101,107,0,67,114,111,115,115,45,100,101,118,105,99,101,32,108,105,110,107,0,82,101,97,100,45,111,110,108,121,32,102,105,108,101,32,115,121,115,116,101,109,0,68,105,114,101,99,116,111,114,121,32,110,111,116,32,101,109,112,116,121,0,67,111,110,110,101,99,116,105,111,110,32,114,101,115,101,116,32,98,121,32,112,101,101,114,0,79,112,101,114,97,116,105,111,110,32,116,105,109,101,100,32,111,117,116,0,67,111,110,110,101,99,116,105,111,110,32,114,101,102,117,115,101,100,0,72,111,115,116,32,105,115,32,100,111,119,110,0,72,111,115,116,32,105,115,32,117,110,114,101,97,99,104,97,98,108,101,0,65,100,100,114,101,115,115,32,105,110,32,117,115,101,0,66,114,111,107,101,110,32,112,105,112,101,0,73,47,79,32,101,114,114,111,114,0,78,111,32,115,117,99,104,32,100,101,118,105,99,101,32,111,114,32,97,100,100,114,101,115,115,0,66,108,111,99,107,32,100,101,118,105,99,101,32,114,101,113,117,105,114,101,100,0,78,111,32,115,117,99,104,32,100,101,118,105,99,101,0,78,111,116,32,97,32,100,105,114,101,99,116,111,114,121,0,73,115,32,97,32,100,105,114,101,99,116,111,114,121,0,84,101,120,116,32,102,105,108,101,32,98,117,115,121,0,69,120,101,99,32,102,111,114,109,97,116,32,101,114,114,111,114,0,73,110,118,97,108,105,100,32,97,114,103,117,109,101,110,116,0,65,114,103,117,109,101,110,116,32,108,105,115,116,32,116,111,111,32,108,111,110,103,0,83,121,109,98,111,108,105,99,32,108,105,110,107,32,108,111,111,112,0,70,105,108,101,110,97,109,101,32,116,111,111,32,108,111,110,103,0,84,111,111,32,109,97,110,121,32,111,112,101,110,32,102,105,108,101,115,32,105,110,32,115,121,115,116,101,109,0,78,111,32,102,105,108,101,32,100,101,115,99,114,105,112,116,111,114,115,32,97,118,97,105,108,97,98,108,101,0,66,97,100,32,102,105,108,101,32,100,101,115,99,114,105,112,116,111,114,0,78,111,32,99,104,105,108,100,32,112,114,111,99,101,115,115,0,66,97,100,32,97,100,100,114,101,115,115,0,70,105,108,101,32,116,111,111,32,108,97,114,103,101,0,84,111,111,32,109,97,110,121,32,108,105,110,107,115,0,78,111,32,108,111,99,107,115,32,97,118,97,105,108,97,98,108,101,0,82,101,115,111,117,114,99,101,32,100,101,97,100,108,111,99,107,32,119,111,117,108,100,32,111,99,99,117,114,0,83,116,97,116,101,32,110,111,116,32,114,101,99,111,118,101,114,97,98,108,101,0,80,114,101,118,105,111,117,115,32,111,119,110,101,114,32,100,105,101,100,0,79,112,101,114,97,116,105,111,110,32,99,97,110,99,101,108,101,100,0,70,117,110,99,116,105,111,110,32,110,111,116,32,105,109,112,108,101,109,101,110,116,101,100,0,78,111,32,109,101,115,115,97,103,101,32,111,102,32,100,101,115,105,114,101,100,32,116,121,112,101,0,73,100,101,110,116,105,102,105,101,114,32,114,101,109,111,118,101,100,0,68,101,118,105,99,101,32,110,111,116,32,97,32,115,116,114,101,97,109,0,78,111,32,100,97,116,97,32,97,118,97,105,108,97,98,108,101,0,68,101,118,105,99,101,32,116,105,109,101,111,117,116,0,79,117,116,32,111,102,32,115,116,114,101,97,109,115,32,114,101,115,111,117,114,99,101,115,0,76,105,110,107,32,104,97,115,32,98,101,101,110,32,115,101,118,101,114,101,100,0,80,114,111,116,111,99,111,108,32,101,114,114,111,114,0,66,97,100,32,109,101,115,115,97,103,101,0,70,105,108,101,32,100,101,115,99,114,105,112,116,111,114,32,105,110,32,98,97,100,32,115,116,97,116,101,0,78,111,116,32,97,32,115,111,99,107,101,116,0,68,101,115,116,105,110,97,116,105,111,110,32,97,100,100,114,101,115,115,32,114,101,113,117,105,114,101,100,0,77,101,115,115,97,103,101,32,116,111,111,32,108,97,114,103,101,0,80,114,111,116,111,99,111,108,32,119,114,111,110,103,32,116,121,112,101,32,102,111,114,32,115,111,99,107,101,116,0,80,114,111,116,111,99,111,108,32,110,111,116,32,97,118,97,105,108,97,98,108,101,0,80,114,111,116,111,99,111,108,32,110,111,116,32,115,117,112,112,111,114,116,101,100,0,83,111,99,107,101,116,32,116,121,112,101,32,110,111,116,32,115,117,112,112,111,114,116,101,100,0,78,111,116,32,115,117,112,112,111,114,116,101,100,0,80,114,111,116,111,99,111,108,32,102,97,109,105,108,121,32,110,111,116,32,115,117,112,112,111,114,116,101,100,0,65,100,100,114,101,115,115,32,102,97,109,105,108,121,32,110,111,116,32,115,117,112,112,111,114,116,101,100,32,98,121,32,112,114,111,116,111,99,111,108,0,65,100,100,114,101,115,115,32,110,111,116,32,97,118,97,105,108,97,98,108,101,0,78,101,116,119,111,114,107,32,105,115,32,100,111,119,110,0,78,101,116,119,111,114,107,32,117,110,114,101,97,99,104,97,98,108,101,0,67,111,110,110,101,99,116,105,111,110,32,114,101,115,101,116,32,98,121,32,110,101,116,119,111,114,107,0,67,111,110,110,101,99,116,105,111,110,32,97,98,111,114,116,101,100,0,78,111,32,98,117,102,102,101,114,32,115,112,97,99,101,32,97,118,97,105,108,97,98,108,101,0,83,111,99,107,101,116,32,105,115,32,99,111,110,110,101,99,116,101,100,0,83,111,99,107,101,116,32,110,111,116,32,99,111,110,110,101,99,116,101,100,0,67,97,110,110,111,116,32,115,101,110,100,32,97,102,116,101,114,32,115,111,99,107,101,116,32,115,104,117,116,100,111,119,110,0,79,112,101,114,97,116,105,111,110,32,97,108,114,101,97,100,121,32,105,110,32,112,114,111,103,114,101,115,115,0,79,112,101,114,97,116,105,111,110,32,105,110,32,112,114,111,103,114,101,115,115,0,83,116,97,108,101,32,102,105,108,101,32,104,97,110,100,108,101,0,82,101,109,111,116,101,32,73,47,79,32,101,114,114,111,114,0,81,117,111,116,97,32,101,120,99,101,101,100,101,100,0,78,111,32,109,101,100,105,117,109,32,102,111,117,110,100,0,87,114,111,110,103,32,109,101,100,105,117,109,32,116,121,112,101,0,78,111,32,101,114,114,111,114,32,105,110,102,111,114,109,97,116,105,111,110,0,0],"i8",ALLOC_NONE,Runtime.GLOBAL_BASE);var tempDoublePtr=STATICTOP;STATICTOP+=16;function _atexit(o,l){__ATEXIT__.unshift({func:o,arg:l})}function ___cxa_atexit(){return _atexit.apply(null,arguments)}function _abort(){Module.abort()}function __ZN8facebook4yoga14YGNodeToStringEPNSt3__212basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEP6YGNode14YGPrintOptionsj(){Module.printErr("missing function: _ZN8facebook4yoga14YGNodeToStringEPNSt3__212basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEP6YGNode14YGPrintOptionsj"),abort(-1)}function __decorate(o,l,f,h){var E=arguments.length,t=E<3?l:h===null?h=Object.getOwnPropertyDescriptor(l,f):h,N;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")t=Reflect.decorate(o,l,f,h);else for(var F=o.length-1;F>=0;F--)(N=o[F])&&(t=(E<3?N(t):E>3?N(l,f,t):N(l,f))||t);return E>3&&t&&Object.defineProperty(l,f,t),t}function _defineHidden(o){return function(l,f){Object.defineProperty(l,f,{configurable:!1,enumerable:!1,value:o,writable:!0})}}var _nbind={};function __nbind_free_external(o){_nbind.externalList[o].dereference(o)}function __nbind_reference_external(o){_nbind.externalList[o].reference()}function _llvm_stackrestore(o){var l=_llvm_stacksave,f=l.LLVM_SAVEDSTACKS[o];l.LLVM_SAVEDSTACKS.splice(o,1),Runtime.stackRestore(f)}function __nbind_register_pool(o,l,f,h){_nbind.Pool.pageSize=o,_nbind.Pool.usedPtr=l/4,_nbind.Pool.rootPtr=f,_nbind.Pool.pagePtr=h/4,HEAP32[l/4]=16909060,HEAP8[l]==1&&(_nbind.bigEndian=!0),HEAP32[l/4]=0,_nbind.makeTypeKindTbl=(t={},t[1024]=_nbind.PrimitiveType,t[64]=_nbind.Int64Type,t[2048]=_nbind.BindClass,t[3072]=_nbind.BindClassPtr,t[4096]=_nbind.SharedClassPtr,t[5120]=_nbind.ArrayType,t[6144]=_nbind.ArrayType,t[7168]=_nbind.CStringType,t[9216]=_nbind.CallbackType,t[10240]=_nbind.BindType,t),_nbind.makeTypeNameTbl={Buffer:_nbind.BufferType,External:_nbind.ExternalType,Int64:_nbind.Int64Type,_nbind_new:_nbind.CreateValueType,bool:_nbind.BooleanType,"cbFunction &":_nbind.CallbackType,"const cbFunction &":_nbind.CallbackType,"const std::string &":_nbind.StringType,"std::string":_nbind.StringType},Module.toggleLightGC=_nbind.toggleLightGC,_nbind.callUpcast=Module.dynCall_ii;var E=_nbind.makeType(_nbind.constructType,{flags:2048,id:0,name:""});E.proto=Module,_nbind.BindClass.list.push(E);var t}function _emscripten_set_main_loop_timing(o,l){if(Browser.mainLoop.timingMode=o,Browser.mainLoop.timingValue=l,!Browser.mainLoop.func)return 1;if(o==0)Browser.mainLoop.scheduler=function(){var N=Math.max(0,Browser.mainLoop.tickStartTime+l-_emscripten_get_now())|0;setTimeout(Browser.mainLoop.runner,N)},Browser.mainLoop.method="timeout";else if(o==1)Browser.mainLoop.scheduler=function(){Browser.requestAnimationFrame(Browser.mainLoop.runner)},Browser.mainLoop.method="rAF";else if(o==2){if(!window.setImmediate){let t=function(N){N.source===window&&N.data===h&&(N.stopPropagation(),f.shift()())};var E=t,f=[],h="setimmediate";window.addEventListener("message",t,!0),window.setImmediate=function(F){f.push(F),ENVIRONMENT_IS_WORKER?(Module.setImmediates===void 0&&(Module.setImmediates=[]),Module.setImmediates.push(F),window.postMessage({target:h})):window.postMessage(h,"*")}}Browser.mainLoop.scheduler=function(){window.setImmediate(Browser.mainLoop.runner)},Browser.mainLoop.method="immediate"}return 0}function _emscripten_get_now(){abort()}function _emscripten_set_main_loop(o,l,f,h,E){Module.noExitRuntime=!0,assert(!Browser.mainLoop.func,"emscripten_set_main_loop: there can only be one main loop function at once: call emscripten_cancel_main_loop to cancel the previous one before setting a new one with different parameters."),Browser.mainLoop.func=o,Browser.mainLoop.arg=h;var t;typeof h<"u"?t=function(){Module.dynCall_vi(o,h)}:t=function(){Module.dynCall_v(o)};var N=Browser.mainLoop.currentlyRunningMainloop;if(Browser.mainLoop.runner=function(){if(!ABORT){if(Browser.mainLoop.queue.length>0){var k=Date.now(),x=Browser.mainLoop.queue.shift();if(x.func(x.arg),Browser.mainLoop.remainingBlockers){var j=Browser.mainLoop.remainingBlockers,q=j%1==0?j-1:Math.floor(j);x.counted?Browser.mainLoop.remainingBlockers=q:(q=q+.5,Browser.mainLoop.remainingBlockers=(8*j+q)/9)}if(console.log('main loop blocker "'+x.name+'" took '+(Date.now()-k)+" ms"),Browser.mainLoop.updateStatus(),N1&&Browser.mainLoop.currentFrameNumber%Browser.mainLoop.timingValue!=0){Browser.mainLoop.scheduler();return}else Browser.mainLoop.timingMode==0&&(Browser.mainLoop.tickStartTime=_emscripten_get_now());Browser.mainLoop.method==="timeout"&&Module.ctx&&(Module.printErr("Looks like you are rendering without using requestAnimationFrame for the main loop. You should use 0 for the frame rate in emscripten_set_main_loop in order to use requestAnimationFrame, as that can greatly improve your frame rates!"),Browser.mainLoop.method=""),Browser.mainLoop.runIter(t),!(N0?_emscripten_set_main_loop_timing(0,1e3/l):_emscripten_set_main_loop_timing(1,1),Browser.mainLoop.scheduler()),f)throw"SimulateInfiniteLoop"}var Browser={mainLoop:{scheduler:null,method:"",currentlyRunningMainloop:0,func:null,arg:0,timingMode:0,timingValue:0,currentFrameNumber:0,queue:[],pause:function(){Browser.mainLoop.scheduler=null,Browser.mainLoop.currentlyRunningMainloop++},resume:function(){Browser.mainLoop.currentlyRunningMainloop++;var o=Browser.mainLoop.timingMode,l=Browser.mainLoop.timingValue,f=Browser.mainLoop.func;Browser.mainLoop.func=null,_emscripten_set_main_loop(f,0,!1,Browser.mainLoop.arg,!0),_emscripten_set_main_loop_timing(o,l),Browser.mainLoop.scheduler()},updateStatus:function(){if(Module.setStatus){var o=Module.statusMessage||"Please wait...",l=Browser.mainLoop.remainingBlockers,f=Browser.mainLoop.expectedBlockers;l?l"u"&&(console.log("warning: Browser does not support creating object URLs. Built-in browser image decoding will not be available."),Module.noImageDecoding=!0);var o={};o.canHandle=function(t){return!Module.noImageDecoding&&/\.(jpg|jpeg|png|bmp)$/i.test(t)},o.handle=function(t,N,F,k){var x=null;if(Browser.hasBlobConstructor)try{x=new Blob([t],{type:Browser.getMimetype(N)}),x.size!==t.length&&(x=new Blob([new Uint8Array(t).buffer],{type:Browser.getMimetype(N)}))}catch(re){Runtime.warnOnce("Blob constructor present but fails: "+re+"; falling back to blob builder")}if(!x){var j=new Browser.BlobBuilder;j.append(new Uint8Array(t).buffer),x=j.getBlob()}var q=Browser.URLObject.createObjectURL(x),V=new Image;V.onload=function(){assert(V.complete,"Image "+N+" could not be decoded");var y=document.createElement("canvas");y.width=V.width,y.height=V.height;var me=y.getContext("2d");me.drawImage(V,0,0),Module.preloadedImages[N]=y,Browser.URLObject.revokeObjectURL(q),F&&F(t)},V.onerror=function(y){console.log("Image "+q+" could not be decoded"),k&&k()},V.src=q},Module.preloadPlugins.push(o);var l={};l.canHandle=function(t){return!Module.noAudioDecoding&&t.substr(-4)in{".ogg":1,".wav":1,".mp3":1}},l.handle=function(t,N,F,k){var x=!1;function j(me){x||(x=!0,Module.preloadedAudios[N]=me,F&&F(t))}function q(){x||(x=!0,Module.preloadedAudios[N]=new Audio,k&&k())}if(Browser.hasBlobConstructor){try{var V=new Blob([t],{type:Browser.getMimetype(N)})}catch{return q()}var re=Browser.URLObject.createObjectURL(V),y=new Audio;y.addEventListener("canplaythrough",function(){j(y)},!1),y.onerror=function(De){if(x)return;console.log("warning: browser could not fully decode audio "+N+", trying slower base64 approach");function ge(ae){for(var we="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",he="=",ve="",ue=0,Ae=0,ze=0;ze=6;){var We=ue>>Ae-6&63;Ae-=6,ve+=we[We]}return Ae==2?(ve+=we[(ue&3)<<4],ve+=he+he):Ae==4&&(ve+=we[(ue&15)<<2],ve+=he),ve}y.src="data:audio/x-"+N.substr(-3)+";base64,"+ge(t),j(y)},y.src=re,Browser.safeSetTimeout(function(){j(y)},1e4)}else return q()},Module.preloadPlugins.push(l);function f(){Browser.pointerLock=document.pointerLockElement===Module.canvas||document.mozPointerLockElement===Module.canvas||document.webkitPointerLockElement===Module.canvas||document.msPointerLockElement===Module.canvas}var h=Module.canvas;h&&(h.requestPointerLock=h.requestPointerLock||h.mozRequestPointerLock||h.webkitRequestPointerLock||h.msRequestPointerLock||function(){},h.exitPointerLock=document.exitPointerLock||document.mozExitPointerLock||document.webkitExitPointerLock||document.msExitPointerLock||function(){},h.exitPointerLock=h.exitPointerLock.bind(document),document.addEventListener("pointerlockchange",f,!1),document.addEventListener("mozpointerlockchange",f,!1),document.addEventListener("webkitpointerlockchange",f,!1),document.addEventListener("mspointerlockchange",f,!1),Module.elementPointerLock&&h.addEventListener("click",function(E){!Browser.pointerLock&&Module.canvas.requestPointerLock&&(Module.canvas.requestPointerLock(),E.preventDefault())},!1))},createContext:function(o,l,f,h){if(l&&Module.ctx&&o==Module.canvas)return Module.ctx;var E,t;if(l){var N={antialias:!1,alpha:!1};if(h)for(var F in h)N[F]=h[F];t=GL.createContext(o,N),t&&(E=GL.getContext(t).GLctx)}else E=o.getContext("2d");return E?(f&&(l||assert(typeof GLctx>"u","cannot set in module if GLctx is used, but we are a non-GL context that would replace it"),Module.ctx=E,l&&GL.makeContextCurrent(t),Module.useWebGL=l,Browser.moduleContextCreatedCallbacks.forEach(function(k){k()}),Browser.init()),E):null},destroyContext:function(o,l,f){},fullscreenHandlersInstalled:!1,lockPointer:void 0,resizeCanvas:void 0,requestFullscreen:function(o,l,f){Browser.lockPointer=o,Browser.resizeCanvas=l,Browser.vrDevice=f,typeof Browser.lockPointer>"u"&&(Browser.lockPointer=!0),typeof Browser.resizeCanvas>"u"&&(Browser.resizeCanvas=!1),typeof Browser.vrDevice>"u"&&(Browser.vrDevice=null);var h=Module.canvas;function E(){Browser.isFullscreen=!1;var N=h.parentNode;(document.fullscreenElement||document.mozFullScreenElement||document.msFullscreenElement||document.webkitFullscreenElement||document.webkitCurrentFullScreenElement)===N?(h.exitFullscreen=document.exitFullscreen||document.cancelFullScreen||document.mozCancelFullScreen||document.msExitFullscreen||document.webkitCancelFullScreen||function(){},h.exitFullscreen=h.exitFullscreen.bind(document),Browser.lockPointer&&h.requestPointerLock(),Browser.isFullscreen=!0,Browser.resizeCanvas&&Browser.setFullscreenCanvasSize()):(N.parentNode.insertBefore(h,N),N.parentNode.removeChild(N),Browser.resizeCanvas&&Browser.setWindowedCanvasSize()),Module.onFullScreen&&Module.onFullScreen(Browser.isFullscreen),Module.onFullscreen&&Module.onFullscreen(Browser.isFullscreen),Browser.updateCanvasDimensions(h)}Browser.fullscreenHandlersInstalled||(Browser.fullscreenHandlersInstalled=!0,document.addEventListener("fullscreenchange",E,!1),document.addEventListener("mozfullscreenchange",E,!1),document.addEventListener("webkitfullscreenchange",E,!1),document.addEventListener("MSFullscreenChange",E,!1));var t=document.createElement("div");h.parentNode.insertBefore(t,h),t.appendChild(h),t.requestFullscreen=t.requestFullscreen||t.mozRequestFullScreen||t.msRequestFullscreen||(t.webkitRequestFullscreen?function(){t.webkitRequestFullscreen(Element.ALLOW_KEYBOARD_INPUT)}:null)||(t.webkitRequestFullScreen?function(){t.webkitRequestFullScreen(Element.ALLOW_KEYBOARD_INPUT)}:null),f?t.requestFullscreen({vrDisplay:f}):t.requestFullscreen()},requestFullScreen:function(o,l,f){return Module.printErr("Browser.requestFullScreen() is deprecated. Please call Browser.requestFullscreen instead."),Browser.requestFullScreen=function(h,E,t){return Browser.requestFullscreen(h,E,t)},Browser.requestFullscreen(o,l,f)},nextRAF:0,fakeRequestAnimationFrame:function(o){var l=Date.now();if(Browser.nextRAF===0)Browser.nextRAF=l+1e3/60;else for(;l+2>=Browser.nextRAF;)Browser.nextRAF+=1e3/60;var f=Math.max(Browser.nextRAF-l,0);setTimeout(o,f)},requestAnimationFrame:function o(l){typeof window>"u"?Browser.fakeRequestAnimationFrame(l):(window.requestAnimationFrame||(window.requestAnimationFrame=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame||window.oRequestAnimationFrame||Browser.fakeRequestAnimationFrame),window.requestAnimationFrame(l))},safeCallback:function(o){return function(){if(!ABORT)return o.apply(null,arguments)}},allowAsyncCallbacks:!0,queuedAsyncCallbacks:[],pauseAsyncCallbacks:function(){Browser.allowAsyncCallbacks=!1},resumeAsyncCallbacks:function(){if(Browser.allowAsyncCallbacks=!0,Browser.queuedAsyncCallbacks.length>0){var o=Browser.queuedAsyncCallbacks;Browser.queuedAsyncCallbacks=[],o.forEach(function(l){l()})}},safeRequestAnimationFrame:function(o){return Browser.requestAnimationFrame(function(){ABORT||(Browser.allowAsyncCallbacks?o():Browser.queuedAsyncCallbacks.push(o))})},safeSetTimeout:function(o,l){return Module.noExitRuntime=!0,setTimeout(function(){ABORT||(Browser.allowAsyncCallbacks?o():Browser.queuedAsyncCallbacks.push(o))},l)},safeSetInterval:function(o,l){return Module.noExitRuntime=!0,setInterval(function(){ABORT||Browser.allowAsyncCallbacks&&o()},l)},getMimetype:function(o){return{jpg:"image/jpeg",jpeg:"image/jpeg",png:"image/png",bmp:"image/bmp",ogg:"audio/ogg",wav:"audio/wav",mp3:"audio/mpeg"}[o.substr(o.lastIndexOf(".")+1)]},getUserMedia:function(o){window.getUserMedia||(window.getUserMedia=navigator.getUserMedia||navigator.mozGetUserMedia),window.getUserMedia(o)},getMovementX:function(o){return o.movementX||o.mozMovementX||o.webkitMovementX||0},getMovementY:function(o){return o.movementY||o.mozMovementY||o.webkitMovementY||0},getMouseWheelDelta:function(o){var l=0;switch(o.type){case"DOMMouseScroll":l=o.detail;break;case"mousewheel":l=o.wheelDelta;break;case"wheel":l=o.deltaY;break;default:throw"unrecognized mouse wheel event: "+o.type}return l},mouseX:0,mouseY:0,mouseMovementX:0,mouseMovementY:0,touches:{},lastTouches:{},calculateMouseEvent:function(o){if(Browser.pointerLock)o.type!="mousemove"&&"mozMovementX"in o?Browser.mouseMovementX=Browser.mouseMovementY=0:(Browser.mouseMovementX=Browser.getMovementX(o),Browser.mouseMovementY=Browser.getMovementY(o)),typeof SDL<"u"?(Browser.mouseX=SDL.mouseX+Browser.mouseMovementX,Browser.mouseY=SDL.mouseY+Browser.mouseMovementY):(Browser.mouseX+=Browser.mouseMovementX,Browser.mouseY+=Browser.mouseMovementY);else{var l=Module.canvas.getBoundingClientRect(),f=Module.canvas.width,h=Module.canvas.height,E=typeof window.scrollX<"u"?window.scrollX:window.pageXOffset,t=typeof window.scrollY<"u"?window.scrollY:window.pageYOffset;if(o.type==="touchstart"||o.type==="touchend"||o.type==="touchmove"){var N=o.touch;if(N===void 0)return;var F=N.pageX-(E+l.left),k=N.pageY-(t+l.top);F=F*(f/l.width),k=k*(h/l.height);var x={x:F,y:k};if(o.type==="touchstart")Browser.lastTouches[N.identifier]=x,Browser.touches[N.identifier]=x;else if(o.type==="touchend"||o.type==="touchmove"){var j=Browser.touches[N.identifier];j||(j=x),Browser.lastTouches[N.identifier]=j,Browser.touches[N.identifier]=x}return}var q=o.pageX-(E+l.left),V=o.pageY-(t+l.top);q=q*(f/l.width),V=V*(h/l.height),Browser.mouseMovementX=q-Browser.mouseX,Browser.mouseMovementY=V-Browser.mouseY,Browser.mouseX=q,Browser.mouseY=V}},asyncLoad:function(o,l,f,h){var E=h?"":"al "+o;Module.readAsync(o,function(t){assert(t,'Loading data file "'+o+'" failed (no arrayBuffer).'),l(new Uint8Array(t)),E&&removeRunDependency(E)},function(t){if(f)f();else throw'Loading data file "'+o+'" failed.'}),E&&addRunDependency(E)},resizeListeners:[],updateResizeListeners:function(){var o=Module.canvas;Browser.resizeListeners.forEach(function(l){l(o.width,o.height)})},setCanvasSize:function(o,l,f){var h=Module.canvas;Browser.updateCanvasDimensions(h,o,l),f||Browser.updateResizeListeners()},windowedWidth:0,windowedHeight:0,setFullscreenCanvasSize:function(){if(typeof SDL<"u"){var o=HEAPU32[SDL.screen+Runtime.QUANTUM_SIZE*0>>2];o=o|8388608,HEAP32[SDL.screen+Runtime.QUANTUM_SIZE*0>>2]=o}Browser.updateResizeListeners()},setWindowedCanvasSize:function(){if(typeof SDL<"u"){var o=HEAPU32[SDL.screen+Runtime.QUANTUM_SIZE*0>>2];o=o&-8388609,HEAP32[SDL.screen+Runtime.QUANTUM_SIZE*0>>2]=o}Browser.updateResizeListeners()},updateCanvasDimensions:function(o,l,f){l&&f?(o.widthNative=l,o.heightNative=f):(l=o.widthNative,f=o.heightNative);var h=l,E=f;if(Module.forcedAspectRatio&&Module.forcedAspectRatio>0&&(h/E>2];return l},getStr:function(){var o=Pointer_stringify(SYSCALLS.get());return o},get64:function(){var o=SYSCALLS.get(),l=SYSCALLS.get();return o>=0?assert(l===0):assert(l===-1),o},getZero:function(){assert(SYSCALLS.get()===0)}};function ___syscall6(o,l){SYSCALLS.varargs=l;try{var f=SYSCALLS.getStreamFromFD();return FS.close(f),0}catch(h){return(typeof FS>"u"||!(h instanceof FS.ErrnoError))&&abort(h),-h.errno}}function ___syscall54(o,l){SYSCALLS.varargs=l;try{return 0}catch(f){return(typeof FS>"u"||!(f instanceof FS.ErrnoError))&&abort(f),-f.errno}}function _typeModule(o){var l=[[0,1,"X"],[1,1,"const X"],[128,1,"X *"],[256,1,"X &"],[384,1,"X &&"],[512,1,"std::shared_ptr"],[640,1,"std::unique_ptr"],[5120,1,"std::vector"],[6144,2,"std::array"],[9216,-1,"std::function"]];function f(k,x,j,q,V,re){if(x==1){var y=q&896;(y==128||y==256||y==384)&&(k="X const")}var me;return re?me=j.replace("X",k).replace("Y",V):me=k.replace("X",j).replace("Y",V),me.replace(/([*&]) (?=[*&])/g,"$1")}function h(k,x,j,q,V){throw new Error(k+" type "+j.replace("X",x+"?")+(q?" with flag "+q:"")+" in "+V)}function E(k,x,j,q,V,re,y,me){re===void 0&&(re="X"),me===void 0&&(me=1);var De=j(k);if(De)return De;var ge=q(k),ae=ge.placeholderFlag,we=l[ae];y&&we&&(re=f(y[2],y[0],re,we[0],"?",!0));var he;ae==0&&(he="Unbound"),ae>=10&&(he="Corrupt"),me>20&&(he="Deeply nested"),he&&h(he,k,re,ae,V||"?");var ve=ge.paramList[0],ue=E(ve,x,j,q,V,re,we,me+1),Ae,ze={flags:we[0],id:k,name:"",paramList:[ue]},We=[],gt="?";switch(ge.placeholderFlag){case 1:Ae=ue.spec;break;case 2:if((ue.flags&15360)==1024&&ue.spec.ptrSize==1){ze.flags=7168;break}case 3:case 6:case 5:Ae=ue.spec,ue.flags&15360;break;case 8:gt=""+ge.paramList[1],ze.paramList.push(ge.paramList[1]);break;case 9:for(var _t=0,Qe=ge.paramList[1];_t>2]=o),o}function _llvm_stacksave(){var o=_llvm_stacksave;return o.LLVM_SAVEDSTACKS||(o.LLVM_SAVEDSTACKS=[]),o.LLVM_SAVEDSTACKS.push(Runtime.stackSave()),o.LLVM_SAVEDSTACKS.length-1}function ___syscall140(o,l){SYSCALLS.varargs=l;try{var f=SYSCALLS.getStreamFromFD(),h=SYSCALLS.get(),E=SYSCALLS.get(),t=SYSCALLS.get(),N=SYSCALLS.get(),F=E;return FS.llseek(f,F,N),HEAP32[t>>2]=f.position,f.getdents&&F===0&&N===0&&(f.getdents=null),0}catch(k){return(typeof FS>"u"||!(k instanceof FS.ErrnoError))&&abort(k),-k.errno}}function ___syscall146(o,l){SYSCALLS.varargs=l;try{var f=SYSCALLS.get(),h=SYSCALLS.get(),E=SYSCALLS.get(),t=0;___syscall146.buffer||(___syscall146.buffers=[null,[],[]],___syscall146.printChar=function(j,q){var V=___syscall146.buffers[j];assert(V),q===0||q===10?((j===1?Module.print:Module.printErr)(UTF8ArrayToString(V,0)),V.length=0):V.push(q)});for(var N=0;N>2],k=HEAP32[h+(N*8+4)>>2],x=0;x"u"||!(j instanceof FS.ErrnoError))&&abort(j),-j.errno}}function __nbind_finish(){for(var o=0,l=_nbind.BindClass.list;oo.pageSize/2||l>o.pageSize-f){var h=_nbind.typeNameTbl.NBind.proto;return h.lalloc(l)}else return HEAPU32[o.usedPtr]=f+l,o.rootPtr+f},o.lreset=function(l,f){var h=HEAPU32[o.pagePtr];if(h){var E=_nbind.typeNameTbl.NBind.proto;E.lreset(l,f)}else HEAPU32[o.usedPtr]=l},o}();_nbind.Pool=Pool;function constructType(o,l){var f=o==10240?_nbind.makeTypeNameTbl[l.name]||_nbind.BindType:_nbind.makeTypeKindTbl[o],h=new f(l);return typeIdTbl[l.id]=h,_nbind.typeNameTbl[l.name]=h,h}_nbind.constructType=constructType;function getType(o){return typeIdTbl[o]}_nbind.getType=getType;function queryType(o){var l=HEAPU8[o],f=_nbind.structureList[l][1];o/=4,f<0&&(++o,f=HEAPU32[o]+1);var h=Array.prototype.slice.call(HEAPU32.subarray(o+1,o+1+f));return l==9&&(h=[h[0],h.slice(1)]),{paramList:h,placeholderFlag:l}}_nbind.queryType=queryType;function getTypes(o,l){return o.map(function(f){return typeof f=="number"?_nbind.getComplexType(f,constructType,getType,queryType,l):_nbind.typeNameTbl[f]})}_nbind.getTypes=getTypes;function readTypeIdList(o,l){return Array.prototype.slice.call(HEAPU32,o/4,o/4+l)}_nbind.readTypeIdList=readTypeIdList;function readAsciiString(o){for(var l=o;HEAPU8[l++];);return String.fromCharCode.apply("",HEAPU8.subarray(o,l-1))}_nbind.readAsciiString=readAsciiString;function readPolicyList(o){var l={};if(o)for(;;){var f=HEAPU32[o/4];if(!f)break;l[readAsciiString(f)]=!0,o+=4}return l}_nbind.readPolicyList=readPolicyList;function getDynCall(o,l){var f={float32_t:"d",float64_t:"d",int64_t:"d",uint64_t:"d",void:"v"},h=o.map(function(t){return f[t.name]||"i"}).join(""),E=Module["dynCall_"+h];if(!E)throw new Error("dynCall_"+h+" not found for "+l+"("+o.map(function(t){return t.name}).join(", ")+")");return E}_nbind.getDynCall=getDynCall;function addMethod(o,l,f,h){var E=o[l];o.hasOwnProperty(l)&&E?((E.arity||E.arity===0)&&(E=_nbind.makeOverloader(E,E.arity),o[l]=E),E.addMethod(f,h)):(f.arity=h,o[l]=f)}_nbind.addMethod=addMethod;function throwError(o){throw new Error(o)}_nbind.throwError=throwError,_nbind.bigEndian=!1,_a=_typeModule(_typeModule),_nbind.Type=_a.Type,_nbind.makeType=_a.makeType,_nbind.getComplexType=_a.getComplexType,_nbind.structureList=_a.structureList;var BindType=function(o){__extends(l,o);function l(){var f=o!==null&&o.apply(this,arguments)||this;return f.heap=HEAPU32,f.ptrSize=4,f}return l.prototype.needsWireRead=function(f){return!!this.wireRead||!!this.makeWireRead},l.prototype.needsWireWrite=function(f){return!!this.wireWrite||!!this.makeWireWrite},l}(_nbind.Type);_nbind.BindType=BindType;var PrimitiveType=function(o){__extends(l,o);function l(f){var h=o.call(this,f)||this,E=f.flags&32?{32:HEAPF32,64:HEAPF64}:f.flags&8?{8:HEAPU8,16:HEAPU16,32:HEAPU32}:{8:HEAP8,16:HEAP16,32:HEAP32};return h.heap=E[f.ptrSize*8],h.ptrSize=f.ptrSize,h}return l.prototype.needsWireWrite=function(f){return!!f&&!!f.Strict},l.prototype.makeWireWrite=function(f,h){return h&&h.Strict&&function(E){if(typeof E=="number")return E;throw new Error("Type mismatch")}},l}(BindType);_nbind.PrimitiveType=PrimitiveType;function pushCString(o,l){if(o==null){if(l&&l.Nullable)return 0;throw new Error("Type mismatch")}if(l&&l.Strict){if(typeof o!="string")throw new Error("Type mismatch")}else o=o.toString();var f=Module.lengthBytesUTF8(o)+1,h=_nbind.Pool.lalloc(f);return Module.stringToUTF8Array(o,HEAPU8,h,f),h}_nbind.pushCString=pushCString;function popCString(o){return o===0?null:Module.Pointer_stringify(o)}_nbind.popCString=popCString;var CStringType=function(o){__extends(l,o);function l(){var f=o!==null&&o.apply(this,arguments)||this;return f.wireRead=popCString,f.wireWrite=pushCString,f.readResources=[_nbind.resources.pool],f.writeResources=[_nbind.resources.pool],f}return l.prototype.makeWireWrite=function(f,h){return function(E){return pushCString(E,h)}},l}(BindType);_nbind.CStringType=CStringType;var BooleanType=function(o){__extends(l,o);function l(){var f=o!==null&&o.apply(this,arguments)||this;return f.wireRead=function(h){return!!h},f}return l.prototype.needsWireWrite=function(f){return!!f&&!!f.Strict},l.prototype.makeWireRead=function(f){return"!!("+f+")"},l.prototype.makeWireWrite=function(f,h){return h&&h.Strict&&function(E){if(typeof E=="boolean")return E;throw new Error("Type mismatch")}||f},l}(BindType);_nbind.BooleanType=BooleanType;var Wrapper=function(){function o(){}return o.prototype.persist=function(){this.__nbindState|=1},o}();_nbind.Wrapper=Wrapper;function makeBound(o,l){var f=function(h){__extends(E,h);function E(t,N,F,k){var x=h.call(this)||this;if(!(x instanceof E))return new(Function.prototype.bind.apply(E,Array.prototype.concat.apply([null],arguments)));var j=N,q=F,V=k;if(t!==_nbind.ptrMarker){var re=x.__nbindConstructor.apply(x,arguments);j=4608,V=HEAPU32[re/4],q=HEAPU32[re/4+1]}var y={configurable:!0,enumerable:!1,value:null,writable:!1},me={__nbindFlags:j,__nbindPtr:q};V&&(me.__nbindShared=V,_nbind.mark(x));for(var De=0,ge=Object.keys(me);De>=1;var f=_nbind.valueList[o];return _nbind.valueList[o]=firstFreeValue,firstFreeValue=o,f}else{if(l)return _nbind.popShared(o,l);throw new Error("Invalid value slot "+o)}}_nbind.popValue=popValue;var valueBase=18446744073709552e3;function push64(o){return typeof o=="number"?o:pushValue(o)*4096+valueBase}function pop64(o){return o=3?N=Buffer.from(t):N=new Buffer(t),N.copy(h)}else getBuffer(h).set(t)}}_nbind.commitBuffer=commitBuffer;var dirtyList=[],gcTimer=0;function sweep(){for(var o=0,l=dirtyList;o>2]=DYNAMIC_BASE,staticSealed=!0;function invoke_viiiii(o,l,f,h,E,t){try{Module.dynCall_viiiii(o,l,f,h,E,t)}catch(N){if(typeof N!="number"&&N!=="longjmp")throw N;Module.setThrew(1,0)}}function invoke_vif(o,l,f){try{Module.dynCall_vif(o,l,f)}catch(h){if(typeof h!="number"&&h!=="longjmp")throw h;Module.setThrew(1,0)}}function invoke_vid(o,l,f){try{Module.dynCall_vid(o,l,f)}catch(h){if(typeof h!="number"&&h!=="longjmp")throw h;Module.setThrew(1,0)}}function invoke_fiff(o,l,f,h){try{return Module.dynCall_fiff(o,l,f,h)}catch(E){if(typeof E!="number"&&E!=="longjmp")throw E;Module.setThrew(1,0)}}function invoke_vi(o,l){try{Module.dynCall_vi(o,l)}catch(f){if(typeof f!="number"&&f!=="longjmp")throw f;Module.setThrew(1,0)}}function invoke_vii(o,l,f){try{Module.dynCall_vii(o,l,f)}catch(h){if(typeof h!="number"&&h!=="longjmp")throw h;Module.setThrew(1,0)}}function invoke_ii(o,l){try{return Module.dynCall_ii(o,l)}catch(f){if(typeof f!="number"&&f!=="longjmp")throw f;Module.setThrew(1,0)}}function invoke_viddi(o,l,f,h,E){try{Module.dynCall_viddi(o,l,f,h,E)}catch(t){if(typeof t!="number"&&t!=="longjmp")throw t;Module.setThrew(1,0)}}function invoke_vidd(o,l,f,h){try{Module.dynCall_vidd(o,l,f,h)}catch(E){if(typeof E!="number"&&E!=="longjmp")throw E;Module.setThrew(1,0)}}function invoke_iiii(o,l,f,h){try{return Module.dynCall_iiii(o,l,f,h)}catch(E){if(typeof E!="number"&&E!=="longjmp")throw E;Module.setThrew(1,0)}}function invoke_diii(o,l,f,h){try{return Module.dynCall_diii(o,l,f,h)}catch(E){if(typeof E!="number"&&E!=="longjmp")throw E;Module.setThrew(1,0)}}function invoke_di(o,l){try{return Module.dynCall_di(o,l)}catch(f){if(typeof f!="number"&&f!=="longjmp")throw f;Module.setThrew(1,0)}}function invoke_iid(o,l,f){try{return Module.dynCall_iid(o,l,f)}catch(h){if(typeof h!="number"&&h!=="longjmp")throw h;Module.setThrew(1,0)}}function invoke_iii(o,l,f){try{return Module.dynCall_iii(o,l,f)}catch(h){if(typeof h!="number"&&h!=="longjmp")throw h;Module.setThrew(1,0)}}function invoke_viiddi(o,l,f,h,E,t){try{Module.dynCall_viiddi(o,l,f,h,E,t)}catch(N){if(typeof N!="number"&&N!=="longjmp")throw N;Module.setThrew(1,0)}}function invoke_viiiiii(o,l,f,h,E,t,N){try{Module.dynCall_viiiiii(o,l,f,h,E,t,N)}catch(F){if(typeof F!="number"&&F!=="longjmp")throw F;Module.setThrew(1,0)}}function invoke_dii(o,l,f){try{return Module.dynCall_dii(o,l,f)}catch(h){if(typeof h!="number"&&h!=="longjmp")throw h;Module.setThrew(1,0)}}function invoke_i(o){try{return Module.dynCall_i(o)}catch(l){if(typeof l!="number"&&l!=="longjmp")throw l;Module.setThrew(1,0)}}function invoke_iiiiii(o,l,f,h,E,t){try{return Module.dynCall_iiiiii(o,l,f,h,E,t)}catch(N){if(typeof N!="number"&&N!=="longjmp")throw N;Module.setThrew(1,0)}}function invoke_viiid(o,l,f,h,E){try{Module.dynCall_viiid(o,l,f,h,E)}catch(t){if(typeof t!="number"&&t!=="longjmp")throw t;Module.setThrew(1,0)}}function invoke_viififi(o,l,f,h,E,t,N){try{Module.dynCall_viififi(o,l,f,h,E,t,N)}catch(F){if(typeof F!="number"&&F!=="longjmp")throw F;Module.setThrew(1,0)}}function invoke_viii(o,l,f,h){try{Module.dynCall_viii(o,l,f,h)}catch(E){if(typeof E!="number"&&E!=="longjmp")throw E;Module.setThrew(1,0)}}function invoke_v(o){try{Module.dynCall_v(o)}catch(l){if(typeof l!="number"&&l!=="longjmp")throw l;Module.setThrew(1,0)}}function invoke_viid(o,l,f,h){try{Module.dynCall_viid(o,l,f,h)}catch(E){if(typeof E!="number"&&E!=="longjmp")throw E;Module.setThrew(1,0)}}function invoke_idd(o,l,f){try{return Module.dynCall_idd(o,l,f)}catch(h){if(typeof h!="number"&&h!=="longjmp")throw h;Module.setThrew(1,0)}}function invoke_viiii(o,l,f,h,E){try{Module.dynCall_viiii(o,l,f,h,E)}catch(t){if(typeof t!="number"&&t!=="longjmp")throw t;Module.setThrew(1,0)}}Module.asmGlobalArg={Math,Int8Array,Int16Array,Int32Array,Uint8Array,Uint16Array,Uint32Array,Float32Array,Float64Array,NaN:NaN,Infinity:1/0},Module.asmLibraryArg={abort,assert,enlargeMemory,getTotalMemory,abortOnCannotGrowMemory,invoke_viiiii,invoke_vif,invoke_vid,invoke_fiff,invoke_vi,invoke_vii,invoke_ii,invoke_viddi,invoke_vidd,invoke_iiii,invoke_diii,invoke_di,invoke_iid,invoke_iii,invoke_viiddi,invoke_viiiiii,invoke_dii,invoke_i,invoke_iiiiii,invoke_viiid,invoke_viififi,invoke_viii,invoke_v,invoke_viid,invoke_idd,invoke_viiii,_emscripten_asm_const_iiiii,_emscripten_asm_const_iiidddddd,_emscripten_asm_const_iiiid,__nbind_reference_external,_emscripten_asm_const_iiiiiiii,_removeAccessorPrefix,_typeModule,__nbind_register_pool,__decorate,_llvm_stackrestore,___cxa_atexit,__extends,__nbind_get_value_object,__ZN8facebook4yoga14YGNodeToStringEPNSt3__212basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEP6YGNode14YGPrintOptionsj,_emscripten_set_main_loop_timing,__nbind_register_primitive,__nbind_register_type,_emscripten_memcpy_big,__nbind_register_function,___setErrNo,__nbind_register_class,__nbind_finish,_abort,_nbind_value,_llvm_stacksave,___syscall54,_defineHidden,_emscripten_set_main_loop,_emscripten_get_now,__nbind_register_callback_signature,_emscripten_asm_const_iiiiii,__nbind_free_external,_emscripten_asm_const_iiii,_emscripten_asm_const_iiididi,___syscall6,_atexit,___syscall140,___syscall146,DYNAMICTOP_PTR,tempDoublePtr,ABORT,STACKTOP,STACK_MAX,cttz_i8,___dso_handle};var asm=function(o,l,f){var h=new o.Int8Array(f),E=new o.Int16Array(f),t=new o.Int32Array(f),N=new o.Uint8Array(f),F=new o.Uint16Array(f),k=new o.Uint32Array(f),x=new o.Float32Array(f),j=new o.Float64Array(f),q=l.DYNAMICTOP_PTR|0,V=l.tempDoublePtr|0,re=l.ABORT|0,y=l.STACKTOP|0,me=l.STACK_MAX|0,De=l.cttz_i8|0,ge=l.___dso_handle|0,ae=0,we=0,he=0,ve=0,ue=o.NaN,Ae=o.Infinity,ze=0,We=0,gt=0,_t=0,Qe=0,ot=0,Ve=o.Math.floor,Pt=o.Math.abs,Jt=o.Math.sqrt,it=o.Math.pow,J=o.Math.cos,ce=o.Math.sin,Re=o.Math.tan,le=o.Math.acos,He=o.Math.asin,dt=o.Math.atan,At=o.Math.atan2,nn=o.Math.exp,an=o.Math.log,On=o.Math.ceil,lr=o.Math.imul,ln=o.Math.min,Vt=o.Math.max,Er=o.Math.clz32,S=o.Math.fround,zt=l.abort,Xn=l.assert,vr=l.enlargeMemory,jr=l.getTotalMemory,fr=l.abortOnCannotGrowMemory,zr=l.invoke_viiiii,Xt=l.invoke_vif,Du=l.invoke_vid,c0=l.invoke_fiff,Ao=l.invoke_vi,Jo=l.invoke_vii,Fs=l.invoke_ii,Zo=l.invoke_viddi,$o=l.invoke_vidd,qt=l.invoke_iiii,xi=l.invoke_diii,lu=l.invoke_di,vi=l.invoke_iid,Dr=l.invoke_iii,el=l.invoke_viiddi,Y0=l.invoke_viiiiii,Bu=l.invoke_dii,K0=l.invoke_i,Kr=l.invoke_iiiiii,Oo=l.invoke_viiid,Mo=l.invoke_viififi,F0=l.invoke_viii,su=l.invoke_v,ki=l.invoke_viid,Ps=l.invoke_idd,Kl=l.invoke_viiii,P0=l._emscripten_asm_const_iiiii,d0=l._emscripten_asm_const_iiidddddd,Hr=l._emscripten_asm_const_iiiid,Ri=l.__nbind_reference_external,X0=l._emscripten_asm_const_iiiiiiii,mi=l._removeAccessorPrefix,en=l._typeModule,In=l.__nbind_register_pool,Ai=l.__decorate,yi=l._llvm_stackrestore,Wt=l.___cxa_atexit,Ru=l.__extends,eu=l.__nbind_get_value_object,Q0=l.__ZN8facebook4yoga14YGNodeToStringEPNSt3__212basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEP6YGNode14YGPrintOptionsj,Yi=l._emscripten_set_main_loop_timing,Xl=l.__nbind_register_primitive,ko=l.__nbind_register_type,li=l._emscripten_memcpy_big,ao=l.__nbind_register_function,Ql=l.___setErrNo,No=l.__nbind_register_class,Is=l.__nbind_finish,$n=l._abort,tl=l._nbind_value,fo=l._llvm_stacksave,I0=l.___syscall54,Sl=l._defineHidden,Lo=l._emscripten_set_main_loop,St=l._emscripten_get_now,Bt=l.__nbind_register_callback_signature,Hn=l._emscripten_asm_const_iiiiii,qr=l.__nbind_free_external,Ki=l._emscripten_asm_const_iiii,Xr=l._emscripten_asm_const_iiididi,Au=l.___syscall6,p0=l._atexit,Ni=l.___syscall140,h0=l.___syscall146,hs=S(0);let Ct=S(0);function co(e){e=e|0;var n=0;return n=y,y=y+e|0,y=y+15&-16,n|0}function nl(){return y|0}function Jl(e){e=e|0,y=e}function Uu(e,n){e=e|0,n=n|0,y=e,me=n}function vs(e,n){e=e|0,n=n|0,ae||(ae=e,we=n)}function b0(e){e=e|0,ot=e}function Q(){return ot|0}function Se(){var e=0,n=0;gr(8104,8,400)|0,gr(8504,408,540)|0,e=9044,n=e+44|0;do t[e>>2]=0,e=e+4|0;while((e|0)<(n|0));h[9088]=0,h[9089]=1,t[2273]=0,t[2274]=948,t[2275]=948,Wt(17,8104,ge|0)|0}function Fe(e){e=e|0,ac(e+948|0)}function Le(e){return e=S(e),((mr(e)|0)&2147483647)>>>0>2139095040|0}function pt(e,n,r){e=e|0,n=n|0,r=r|0;e:do if(t[e+(n<<3)+4>>2]|0)e=e+(n<<3)|0;else{if((n|2|0)==3&&t[e+60>>2]|0){e=e+56|0;break}switch(n|0){case 0:case 2:case 4:case 5:{if(t[e+52>>2]|0){e=e+48|0;break e}break}default:}if(t[e+68>>2]|0){e=e+64|0;break}else{e=(n|1|0)==5?948:r;break}}while(0);return e|0}function Yn(e){e=e|0;var n=0;return n=p_(1e3)|0,Cn(e,(n|0)!=0,2456),t[2276]=(t[2276]|0)+1,gr(n|0,8104,1e3)|0,h[e+2>>0]|0&&(t[n+4>>2]=2,t[n+12>>2]=4),t[n+976>>2]=e,n|0}function Cn(e,n,r){e=e|0,n=n|0,r=r|0;var u=0,s=0;s=y,y=y+16|0,u=s,n||(t[u>>2]=r,Cl(e,5,3197,u)),y=s}function cr(){return Yn(956)|0}function Si(e){e=e|0;var n=0;return n=pn(1e3)|0,Ou(n,e),Cn(t[e+976>>2]|0,1,2456),t[2276]=(t[2276]|0)+1,t[n+944>>2]=0,n|0}function Ou(e,n){e=e|0,n=n|0;var r=0;gr(e|0,n|0,948)|0,sa(e+948|0,n+948|0),r=e+960|0,e=n+960|0,n=r+40|0;do t[r>>2]=t[e>>2],r=r+4|0,e=e+4|0;while((r|0)<(n|0))}function ju(e){e=e|0;var n=0,r=0,u=0,s=0;if(n=e+944|0,r=t[n>>2]|0,r|0&&(zu(r+948|0,e)|0,t[n>>2]=0),r=wu(e)|0,r|0){n=0;do t[(Ti(e,n)|0)+944>>2]=0,n=n+1|0;while((n|0)!=(r|0))}r=e+948|0,u=t[r>>2]|0,s=e+952|0,n=t[s>>2]|0,(n|0)!=(u|0)&&(t[s>>2]=n+(~((n+-4-u|0)>>>2)<<2)),Fo(r),h_(e),t[2276]=(t[2276]|0)+-1}function zu(e,n){e=e|0,n=n|0;var r=0,u=0,s=0,a=0,v=0,w=0;u=t[e>>2]|0,w=e+4|0,r=t[w>>2]|0,a=r;e:do if((u|0)==(r|0))s=u,v=4;else for(e=u;;){if((t[e>>2]|0)==(n|0)){s=e,v=4;break e}if(e=e+4|0,(e|0)==(r|0)){e=0;break}}while(0);return(v|0)==4&&((s|0)!=(r|0)?(u=s+4|0,e=a-u|0,n=e>>2,n&&(ky(s|0,u|0,e|0)|0,r=t[w>>2]|0),e=s+(n<<2)|0,(r|0)==(e|0)||(t[w>>2]=r+(~((r+-4-e|0)>>>2)<<2)),e=1):e=0),e|0}function wu(e){return e=e|0,(t[e+952>>2]|0)-(t[e+948>>2]|0)>>2|0}function Ti(e,n){e=e|0,n=n|0;var r=0;return r=t[e+948>>2]|0,(t[e+952>>2]|0)-r>>2>>>0>n>>>0?e=t[r+(n<<2)>>2]|0:e=0,e|0}function Fo(e){e=e|0;var n=0,r=0,u=0,s=0;u=y,y=y+32|0,n=u,s=t[e>>2]|0,r=(t[e+4>>2]|0)-s|0,((t[e+8>>2]|0)-s|0)>>>0>r>>>0&&(s=r>>2,K(n,s,s,e+8|0),ti(e,n),ni(n)),y=u}function Mu(e,n){e=e|0,n=n|0;var r=0,u=0,s=0,a=0,v=0,w=0,T=0,L=0;L=wu(e)|0;do if(L|0){if((t[(Ti(e,0)|0)+944>>2]|0)==(e|0)){if(!(zu(e+948|0,n)|0))break;gr(n+400|0,8504,540)|0,t[n+944>>2]=0,Qn(e);break}v=t[(t[e+976>>2]|0)+12>>2]|0,w=e+948|0,T=(v|0)==0,r=0,a=0;do u=t[(t[w>>2]|0)+(a<<2)>>2]|0,(u|0)==(n|0)?Qn(e):(s=Si(u)|0,t[(t[w>>2]|0)+(r<<2)>>2]=s,t[s+944>>2]=e,T||BE[v&15](u,s,e,r),r=r+1|0),a=a+1|0;while((a|0)!=(L|0));if(r>>>0>>0){T=e+948|0,w=e+952|0,v=r,r=t[w>>2]|0;do a=(t[T>>2]|0)+(v<<2)|0,u=a+4|0,s=r-u|0,n=s>>2,n&&(ky(a|0,u|0,s|0)|0,r=t[w>>2]|0),s=r,u=a+(n<<2)|0,(s|0)!=(u|0)&&(r=s+(~((s+-4-u|0)>>>2)<<2)|0,t[w>>2]=r),v=v+1|0;while((v|0)!=(L|0))}}while(0)}function po(e){e=e|0;var n=0,r=0,u=0,s=0;Hu(e,(wu(e)|0)==0,2491),Hu(e,(t[e+944>>2]|0)==0,2545),n=e+948|0,r=t[n>>2]|0,u=e+952|0,s=t[u>>2]|0,(s|0)!=(r|0)&&(t[u>>2]=s+(~((s+-4-r|0)>>>2)<<2)),Fo(n),n=e+976|0,r=t[n>>2]|0,gr(e|0,8104,1e3)|0,h[r+2>>0]|0&&(t[e+4>>2]=2,t[e+12>>2]=4),t[n>>2]=r}function Hu(e,n,r){e=e|0,n=n|0,r=r|0;var u=0,s=0;s=y,y=y+16|0,u=s,n||(t[u>>2]=r,pr(e,5,3197,u)),y=s}function Pa(){return t[2276]|0}function v0(){var e=0;return e=p_(20)|0,ia((e|0)!=0,2592),t[2277]=(t[2277]|0)+1,t[e>>2]=t[239],t[e+4>>2]=t[240],t[e+8>>2]=t[241],t[e+12>>2]=t[242],t[e+16>>2]=t[243],e|0}function ia(e,n){e=e|0,n=n|0;var r=0,u=0;u=y,y=y+16|0,r=u,e||(t[r>>2]=n,pr(0,5,3197,r)),y=u}function J0(e){e=e|0,h_(e),t[2277]=(t[2277]|0)+-1}function ua(e,n){e=e|0,n=n|0;var r=0;n?(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,K(ye,L>>2>>>0>>1>>>0?a>>>0>>0?u:a:s,n-M>>2,e+8|0),M=ye+8|0,u=t[M>>2]|0,a=ye+12|0,L=t[a>>2]|0,v=L,T=u;do if((u|0)==(L|0)){if(L=ye+4|0,u=t[L>>2]|0,Ye=t[ye>>2]|0,s=Ye,u>>>0<=Ye>>>0){u=v-s>>1,u=(u|0)==0?1:u,K(X,u,u>>>2,t[ye+16>>2]|0),t[Be>>2]=t[L>>2],t[Te>>2]=t[M>>2],t[w>>2]=t[Be>>2],t[b>>2]=t[Te>>2],Di(X,w,b),u=t[ye>>2]|0,t[ye>>2]=t[X>>2],t[X>>2]=u,u=X+4|0,Ye=t[L>>2]|0,t[L>>2]=t[u>>2],t[u>>2]=Ye,u=X+8|0,Ye=t[M>>2]|0,t[M>>2]=t[u>>2],t[u>>2]=Ye,u=X+12|0,Ye=t[a>>2]|0,t[a>>2]=t[u>>2],t[u>>2]=Ye,ni(X),u=t[M>>2]|0;break}a=u,v=((a-s>>2)+1|0)/-2|0,w=u+(v<<2)|0,s=T-a|0,a=s>>2,a&&(ky(w|0,u|0,s|0)|0,u=t[L>>2]|0),Ye=w+(a<<2)|0,t[M>>2]=Ye,t[L>>2]=u+(v<<2),u=Ye}while(0);t[u>>2]=t[r>>2],t[M>>2]=(t[M>>2]|0)+4,n=ft(e,ye,n)|0,ni(ye)}while(0);return y=Ze,n|0}function Qn(e){e=e|0;var n=0;do{if(n=e+984|0,h[n>>0]|0)break;h[n>>0]=1,x[e+504>>2]=S(ue),e=t[e+944>>2]|0}while((e|0)!=0)}function ac(e){e=e|0;var n=0,r=0,u=0;r=t[e>>2]|0,u=r,r|0&&(e=e+4|0,n=t[e>>2]|0,(n|0)!=(r|0)&&(t[e>>2]=n+(~((n+-4-u|0)>>>2)<<2)),Et(r))}function si(e){return e=e|0,t[e+944>>2]|0}function Jr(e){e=e|0,Hu(e,(t[e+964>>2]|0)!=0,2832),Qn(e)}function Zl(e){return e=e|0,(h[e+984>>0]|0)!=0|0}function oa(e,n){e=e|0,n=n|0,vL(e,n,400)|0&&(gr(e|0,n|0,400)|0,Qn(e))}function pf(e){e=e|0;var n=Ct;return n=S(x[e+44>>2]),e=Le(n)|0,S(e?S(0):n)}function bs(e){e=e|0;var n=Ct;return n=S(x[e+48>>2]),Le(n)|0&&(n=h[(t[e+976>>2]|0)+2>>0]|0?S(1):S(0)),S(n)}function ba(e,n){e=e|0,n=n|0,t[e+980>>2]=n}function Bs(e){return e=e|0,t[e+980>>2]|0}function m0(e,n){e=e|0,n=n|0;var r=0;r=e+4|0,(t[r>>2]|0)!=(n|0)&&(t[r>>2]=n,Qn(e))}function Us(e){return e=e|0,t[e+4>>2]|0}function zi(e,n){e=e|0,n=n|0;var r=0;r=e+8|0,(t[r>>2]|0)!=(n|0)&&(t[r>>2]=n,Qn(e))}function U(e){return e=e|0,t[e+8>>2]|0}function H(e,n){e=e|0,n=n|0;var r=0;r=e+12|0,(t[r>>2]|0)!=(n|0)&&(t[r>>2]=n,Qn(e))}function Y(e){return e=e|0,t[e+12>>2]|0}function ee(e,n){e=e|0,n=n|0;var r=0;r=e+16|0,(t[r>>2]|0)!=(n|0)&&(t[r>>2]=n,Qn(e))}function Ce(e){return e=e|0,t[e+16>>2]|0}function _e(e,n){e=e|0,n=n|0;var r=0;r=e+20|0,(t[r>>2]|0)!=(n|0)&&(t[r>>2]=n,Qn(e))}function Oe(e){return e=e|0,t[e+20>>2]|0}function $(e,n){e=e|0,n=n|0;var r=0;r=e+24|0,(t[r>>2]|0)!=(n|0)&&(t[r>>2]=n,Qn(e))}function Ne(e){return e=e|0,t[e+24>>2]|0}function Je(e,n){e=e|0,n=n|0;var r=0;r=e+28|0,(t[r>>2]|0)!=(n|0)&&(t[r>>2]=n,Qn(e))}function vt(e){return e=e|0,t[e+28>>2]|0}function oe(e,n){e=e|0,n=n|0;var r=0;r=e+32|0,(t[r>>2]|0)!=(n|0)&&(t[r>>2]=n,Qn(e))}function qe(e){return e=e|0,t[e+32>>2]|0}function rt(e,n){e=e|0,n=n|0;var r=0;r=e+36|0,(t[r>>2]|0)!=(n|0)&&(t[r>>2]=n,Qn(e))}function xt(e){return e=e|0,t[e+36>>2]|0}function kt(e,n){e=e|0,n=S(n);var r=0;r=e+40|0,S(x[r>>2])!=n&&(x[r>>2]=n,Qn(e))}function bt(e,n){e=e|0,n=S(n);var r=0;r=e+44|0,S(x[r>>2])!=n&&(x[r>>2]=n,Qn(e))}function sn(e,n){e=e|0,n=S(n);var r=0;r=e+48|0,S(x[r>>2])!=n&&(x[r>>2]=n,Qn(e))}function rn(e,n){e=e|0,n=S(n);var r=0,u=0,s=0,a=0;a=Le(n)|0,r=(a^1)&1,u=e+52|0,s=e+56|0,a|S(x[u>>2])==n&&(t[s>>2]|0)==(r|0)||(x[u>>2]=n,t[s>>2]=r,Qn(e))}function Ft(e,n){e=e|0,n=S(n);var r=0,u=0;u=e+52|0,r=e+56|0,S(x[u>>2])==n&&(t[r>>2]|0)==2||(x[u>>2]=n,u=Le(n)|0,t[r>>2]=u?3:2,Qn(e))}function Dn(e,n){e=e|0,n=n|0;var r=0,u=0;u=n+52|0,r=t[u+4>>2]|0,n=e,t[n>>2]=t[u>>2],t[n+4>>2]=r}function dr(e,n,r){e=e|0,n=n|0,r=S(r);var u=0,s=0,a=0;a=Le(r)|0,u=(a^1)&1,s=e+132+(n<<3)|0,n=e+132+(n<<3)+4|0,a|S(x[s>>2])==r&&(t[n>>2]|0)==(u|0)||(x[s>>2]=r,t[n>>2]=u,Qn(e))}function er(e,n,r){e=e|0,n=n|0,r=S(r);var u=0,s=0,a=0;a=Le(r)|0,u=a?0:2,s=e+132+(n<<3)|0,n=e+132+(n<<3)+4|0,a|S(x[s>>2])==r&&(t[n>>2]|0)==(u|0)||(x[s>>2]=r,t[n>>2]=u,Qn(e))}function Cr(e,n,r){e=e|0,n=n|0,r=r|0;var u=0;u=n+132+(r<<3)|0,n=t[u+4>>2]|0,r=e,t[r>>2]=t[u>>2],t[r+4>>2]=n}function Rn(e,n,r){e=e|0,n=n|0,r=S(r);var u=0,s=0,a=0;a=Le(r)|0,u=(a^1)&1,s=e+60+(n<<3)|0,n=e+60+(n<<3)+4|0,a|S(x[s>>2])==r&&(t[n>>2]|0)==(u|0)||(x[s>>2]=r,t[n>>2]=u,Qn(e))}function Nr(e,n,r){e=e|0,n=n|0,r=S(r);var u=0,s=0,a=0;a=Le(r)|0,u=a?0:2,s=e+60+(n<<3)|0,n=e+60+(n<<3)+4|0,a|S(x[s>>2])==r&&(t[n>>2]|0)==(u|0)||(x[s>>2]=r,t[n>>2]=u,Qn(e))}function y0(e,n,r){e=e|0,n=n|0,r=r|0;var u=0;u=n+60+(r<<3)|0,n=t[u+4>>2]|0,r=e,t[r>>2]=t[u>>2],t[r+4>>2]=n}function Lr(e,n){e=e|0,n=n|0;var r=0;r=e+60+(n<<3)+4|0,(t[r>>2]|0)!=3&&(x[e+60+(n<<3)>>2]=S(ue),t[r>>2]=3,Qn(e))}function ut(e,n,r){e=e|0,n=n|0,r=S(r);var u=0,s=0,a=0;a=Le(r)|0,u=(a^1)&1,s=e+204+(n<<3)|0,n=e+204+(n<<3)+4|0,a|S(x[s>>2])==r&&(t[n>>2]|0)==(u|0)||(x[s>>2]=r,t[n>>2]=u,Qn(e))}function wt(e,n,r){e=e|0,n=n|0,r=S(r);var u=0,s=0,a=0;a=Le(r)|0,u=a?0:2,s=e+204+(n<<3)|0,n=e+204+(n<<3)+4|0,a|S(x[s>>2])==r&&(t[n>>2]|0)==(u|0)||(x[s>>2]=r,t[n>>2]=u,Qn(e))}function et(e,n,r){e=e|0,n=n|0,r=r|0;var u=0;u=n+204+(r<<3)|0,n=t[u+4>>2]|0,r=e,t[r>>2]=t[u>>2],t[r+4>>2]=n}function It(e,n,r){e=e|0,n=n|0,r=S(r);var u=0,s=0,a=0;a=Le(r)|0,u=(a^1)&1,s=e+276+(n<<3)|0,n=e+276+(n<<3)+4|0,a|S(x[s>>2])==r&&(t[n>>2]|0)==(u|0)||(x[s>>2]=r,t[n>>2]=u,Qn(e))}function un(e,n){return e=e|0,n=n|0,S(x[e+276+(n<<3)>>2])}function fn(e,n){e=e|0,n=S(n);var r=0,u=0,s=0,a=0;a=Le(n)|0,r=(a^1)&1,u=e+348|0,s=e+352|0,a|S(x[u>>2])==n&&(t[s>>2]|0)==(r|0)||(x[u>>2]=n,t[s>>2]=r,Qn(e))}function Jn(e,n){e=e|0,n=S(n);var r=0,u=0;u=e+348|0,r=e+352|0,S(x[u>>2])==n&&(t[r>>2]|0)==2||(x[u>>2]=n,u=Le(n)|0,t[r>>2]=u?3:2,Qn(e))}function wr(e){e=e|0;var n=0;n=e+352|0,(t[n>>2]|0)!=3&&(x[e+348>>2]=S(ue),t[n>>2]=3,Qn(e))}function au(e,n){e=e|0,n=n|0;var r=0,u=0;u=n+348|0,r=t[u+4>>2]|0,n=e,t[n>>2]=t[u>>2],t[n+4>>2]=r}function ku(e,n){e=e|0,n=S(n);var r=0,u=0,s=0,a=0;a=Le(n)|0,r=(a^1)&1,u=e+356|0,s=e+360|0,a|S(x[u>>2])==n&&(t[s>>2]|0)==(r|0)||(x[u>>2]=n,t[s>>2]=r,Qn(e))}function T0(e,n){e=e|0,n=S(n);var r=0,u=0;u=e+356|0,r=e+360|0,S(x[u>>2])==n&&(t[r>>2]|0)==2||(x[u>>2]=n,u=Le(n)|0,t[r>>2]=u?3:2,Qn(e))}function Z0(e){e=e|0;var n=0;n=e+360|0,(t[n>>2]|0)!=3&&(x[e+356>>2]=S(ue),t[n>>2]=3,Qn(e))}function Nu(e,n){e=e|0,n=n|0;var r=0,u=0;u=n+356|0,r=t[u+4>>2]|0,n=e,t[n>>2]=t[u>>2],t[n+4>>2]=r}function gi(e,n){e=e|0,n=S(n);var r=0,u=0,s=0,a=0;a=Le(n)|0,r=(a^1)&1,u=e+364|0,s=e+368|0,a|S(x[u>>2])==n&&(t[s>>2]|0)==(r|0)||(x[u>>2]=n,t[s>>2]=r,Qn(e))}function Po(e,n){e=e|0,n=S(n);var r=0,u=0,s=0,a=0;a=Le(n)|0,r=a?0:2,u=e+364|0,s=e+368|0,a|S(x[u>>2])==n&&(t[s>>2]|0)==(r|0)||(x[u>>2]=n,t[s>>2]=r,Qn(e))}function rl(e,n){e=e|0,n=n|0;var r=0,u=0;u=n+364|0,r=t[u+4>>2]|0,n=e,t[n>>2]=t[u>>2],t[n+4>>2]=r}function hf(e,n){e=e|0,n=S(n);var r=0,u=0,s=0,a=0;a=Le(n)|0,r=(a^1)&1,u=e+372|0,s=e+376|0,a|S(x[u>>2])==n&&(t[s>>2]|0)==(r|0)||(x[u>>2]=n,t[s>>2]=r,Qn(e))}function Tl(e,n){e=e|0,n=S(n);var r=0,u=0,s=0,a=0;a=Le(n)|0,r=a?0:2,u=e+372|0,s=e+376|0,a|S(x[u>>2])==n&&(t[s>>2]|0)==(r|0)||(x[u>>2]=n,t[s>>2]=r,Qn(e))}function vf(e,n){e=e|0,n=n|0;var r=0,u=0;u=n+372|0,r=t[u+4>>2]|0,n=e,t[n>>2]=t[u>>2],t[n+4>>2]=r}function Io(e,n){e=e|0,n=S(n);var r=0,u=0,s=0,a=0;a=Le(n)|0,r=(a^1)&1,u=e+380|0,s=e+384|0,a|S(x[u>>2])==n&&(t[s>>2]|0)==(r|0)||(x[u>>2]=n,t[s>>2]=r,Qn(e))}function ys(e,n){e=e|0,n=S(n);var r=0,u=0,s=0,a=0;a=Le(n)|0,r=a?0:2,u=e+380|0,s=e+384|0,a|S(x[u>>2])==n&&(t[s>>2]|0)==(r|0)||(x[u>>2]=n,t[s>>2]=r,Qn(e))}function js(e,n){e=e|0,n=n|0;var r=0,u=0;u=n+380|0,r=t[u+4>>2]|0,n=e,t[n>>2]=t[u>>2],t[n+4>>2]=r}function bo(e,n){e=e|0,n=S(n);var r=0,u=0,s=0,a=0;a=Le(n)|0,r=(a^1)&1,u=e+388|0,s=e+392|0,a|S(x[u>>2])==n&&(t[s>>2]|0)==(r|0)||(x[u>>2]=n,t[s>>2]=r,Qn(e))}function Bo(e,n){e=e|0,n=S(n);var r=0,u=0,s=0,a=0;a=Le(n)|0,r=a?0:2,u=e+388|0,s=e+392|0,a|S(x[u>>2])==n&&(t[s>>2]|0)==(r|0)||(x[u>>2]=n,t[s>>2]=r,Qn(e))}function gs(e,n){e=e|0,n=n|0;var r=0,u=0;u=n+388|0,r=t[u+4>>2]|0,n=e,t[n>>2]=t[u>>2],t[n+4>>2]=r}function Xu(e,n){e=e|0,n=S(n);var r=0;r=e+396|0,S(x[r>>2])!=n&&(x[r>>2]=n,Qn(e))}function Su(e){return e=e|0,S(x[e+396>>2])}function _i(e){return e=e|0,S(x[e+400>>2])}function C0(e){return e=e|0,S(x[e+404>>2])}function $0(e){return e=e|0,S(x[e+408>>2])}function Uo(e){return e=e|0,S(x[e+412>>2])}function la(e){return e=e|0,S(x[e+416>>2])}function $l(e){return e=e|0,S(x[e+420>>2])}function tu(e,n){switch(e=e|0,n=n|0,Hu(e,(n|0)<6,2918),n|0){case 0:{n=(t[e+496>>2]|0)==2?5:4;break}case 2:{n=(t[e+496>>2]|0)==2?4:5;break}default:}return S(x[e+424+(n<<2)>>2])}function Zr(e,n){switch(e=e|0,n=n|0,Hu(e,(n|0)<6,2918),n|0){case 0:{n=(t[e+496>>2]|0)==2?5:4;break}case 2:{n=(t[e+496>>2]|0)==2?4:5;break}default:}return S(x[e+448+(n<<2)>>2])}function ho(e,n){switch(e=e|0,n=n|0,Hu(e,(n|0)<6,2918),n|0){case 0:{n=(t[e+496>>2]|0)==2?5:4;break}case 2:{n=(t[e+496>>2]|0)==2?4:5;break}default:}return S(x[e+472+(n<<2)>>2])}function Bi(e,n){e=e|0,n=n|0;var r=0,u=Ct;return r=t[e+4>>2]|0,(r|0)==(t[n+4>>2]|0)?r?(u=S(x[e>>2]),e=S(Pt(S(u-S(x[n>>2]))))>2]=0,t[u+4>>2]=0,t[u+8>>2]=0,Q0(u|0,e|0,n|0,0),pr(e,3,(h[u+11>>0]|0)<0?t[u>>2]|0:u,r),BL(u),y=r}function eo(e,n,r,u){e=S(e),n=S(n),r=r|0,u=u|0;var s=Ct;e=S(e*n),s=S(NE(e,S(1)));do if(Ci(s,S(0))|0)e=S(e-s);else{if(e=S(e-s),Ci(s,S(1))|0){e=S(e+S(1));break}if(r){e=S(e+S(1));break}u||(s>S(.5)?s=S(1):(u=Ci(s,S(.5))|0,s=S(u?1:0)),e=S(e+s))}while(0);return S(e/n)}function to(e,n,r,u,s,a,v,w,T,L,M,b,X){e=e|0,n=S(n),r=r|0,u=S(u),s=s|0,a=S(a),v=v|0,w=S(w),T=S(T),L=S(L),M=S(M),b=S(b),X=X|0;var Be=0,Te=Ct,ye=Ct,Ze=Ct,Ye=Ct,ct=Ct,ke=Ct;return T>2]),Te!=S(0))?(Ze=S(eo(n,Te,0,0)),Ye=S(eo(u,Te,0,0)),ye=S(eo(a,Te,0,0)),Te=S(eo(w,Te,0,0))):(ye=a,Ze=n,Te=w,Ye=u),(s|0)==(e|0)?Be=Ci(ye,Ze)|0:Be=0,(v|0)==(r|0)?X=Ci(Te,Ye)|0:X=0,!Be&&(ct=S(n-M),!(xe(e,ct,T)|0))&&!(tt(e,ct,s,T)|0)?Be=Ke(e,ct,s,a,T)|0:Be=1,!X&&(ke=S(u-b),!(xe(r,ke,L)|0))&&!(tt(r,ke,v,L)|0)?X=Ke(r,ke,v,w,L)|0:X=1,X=Be&X),X|0}function xe(e,n,r){return e=e|0,n=S(n),r=S(r),(e|0)==1?e=Ci(n,r)|0:e=0,e|0}function tt(e,n,r,u){return e=e|0,n=S(n),r=r|0,u=S(u),(e|0)==2&(r|0)==0?n>=u?e=1:e=Ci(n,u)|0:e=0,e|0}function Ke(e,n,r,u,s){return e=e|0,n=S(n),r=r|0,u=S(u),s=S(s),(e|0)==2&(r|0)==2&u>n?s<=n?e=1:e=Ci(n,s)|0:e=0,e|0}function Yt(e,n,r,u,s,a,v,w,T,L,M){e=e|0,n=S(n),r=S(r),u=u|0,s=s|0,a=a|0,v=S(v),w=S(w),T=T|0,L=L|0,M=M|0;var b=0,X=0,Be=0,Te=0,ye=Ct,Ze=Ct,Ye=0,ct=0,ke=0,Ie=0,Zt=0,Br=0,Pn=0,gn=0,_r=0,Pr=0,kn=0,uu=Ct,os=Ct,ls=Ct,ss=0,ea=0;kn=y,y=y+160|0,gn=kn+152|0,Pn=kn+120|0,Br=kn+104|0,ke=kn+72|0,Te=kn+56|0,Zt=kn+8|0,ct=kn,Ie=(t[2279]|0)+1|0,t[2279]=Ie,_r=e+984|0,(h[_r>>0]|0)!=0&&(t[e+512>>2]|0)!=(t[2278]|0)?Ye=4:(t[e+516>>2]|0)==(u|0)?Pr=0:Ye=4,(Ye|0)==4&&(t[e+520>>2]=0,t[e+924>>2]=-1,t[e+928>>2]=-1,x[e+932>>2]=S(-1),x[e+936>>2]=S(-1),Pr=1);e:do if(t[e+964>>2]|0)if(ye=S(Kt(e,2,v)),Ze=S(Kt(e,0,v)),b=e+916|0,ls=S(x[b>>2]),os=S(x[e+920>>2]),uu=S(x[e+932>>2]),to(s,n,a,r,t[e+924>>2]|0,ls,t[e+928>>2]|0,os,uu,S(x[e+936>>2]),ye,Ze,M)|0)Ye=22;else if(Be=t[e+520>>2]|0,!Be)Ye=21;else for(X=0;;){if(b=e+524+(X*24|0)|0,uu=S(x[b>>2]),os=S(x[e+524+(X*24|0)+4>>2]),ls=S(x[e+524+(X*24|0)+16>>2]),to(s,n,a,r,t[e+524+(X*24|0)+8>>2]|0,uu,t[e+524+(X*24|0)+12>>2]|0,os,ls,S(x[e+524+(X*24|0)+20>>2]),ye,Ze,M)|0){Ye=22;break e}if(X=X+1|0,X>>>0>=Be>>>0){Ye=21;break}}else{if(T){if(b=e+916|0,!(Ci(S(x[b>>2]),n)|0)){Ye=21;break}if(!(Ci(S(x[e+920>>2]),r)|0)){Ye=21;break}if((t[e+924>>2]|0)!=(s|0)){Ye=21;break}b=(t[e+928>>2]|0)==(a|0)?b:0,Ye=22;break}if(Be=t[e+520>>2]|0,!Be)Ye=21;else for(X=0;;){if(b=e+524+(X*24|0)|0,Ci(S(x[b>>2]),n)|0&&Ci(S(x[e+524+(X*24|0)+4>>2]),r)|0&&(t[e+524+(X*24|0)+8>>2]|0)==(s|0)&&(t[e+524+(X*24|0)+12>>2]|0)==(a|0)){Ye=22;break e}if(X=X+1|0,X>>>0>=Be>>>0){Ye=21;break}}}while(0);do if((Ye|0)==21)h[11697]|0?(b=0,Ye=28):(b=0,Ye=31);else if((Ye|0)==22){if(X=(h[11697]|0)!=0,!((b|0)!=0&(Pr^1)))if(X){Ye=28;break}else{Ye=31;break}Te=b+16|0,t[e+908>>2]=t[Te>>2],Be=b+20|0,t[e+912>>2]=t[Be>>2],(h[11698]|0)==0|X^1||(t[ct>>2]=Ei(Ie)|0,t[ct+4>>2]=Ie,pr(e,4,2972,ct),X=t[e+972>>2]|0,X|0&&P1[X&127](e),s=bn(s,T)|0,a=bn(a,T)|0,ea=+S(x[Te>>2]),ss=+S(x[Be>>2]),t[Zt>>2]=s,t[Zt+4>>2]=a,j[Zt+8>>3]=+n,j[Zt+16>>3]=+r,j[Zt+24>>3]=ea,j[Zt+32>>3]=ss,t[Zt+40>>2]=L,pr(e,4,2989,Zt))}while(0);return(Ye|0)==28&&(X=Ei(Ie)|0,t[Te>>2]=X,t[Te+4>>2]=Ie,t[Te+8>>2]=Pr?3047:11699,pr(e,4,3038,Te),X=t[e+972>>2]|0,X|0&&P1[X&127](e),Zt=bn(s,T)|0,Ye=bn(a,T)|0,t[ke>>2]=Zt,t[ke+4>>2]=Ye,j[ke+8>>3]=+n,j[ke+16>>3]=+r,t[ke+24>>2]=L,pr(e,4,3049,ke),Ye=31),(Ye|0)==31&&(mu(e,n,r,u,s,a,v,w,T,M),h[11697]|0&&(X=t[2279]|0,Zt=Ei(X)|0,t[Br>>2]=Zt,t[Br+4>>2]=X,t[Br+8>>2]=Pr?3047:11699,pr(e,4,3083,Br),X=t[e+972>>2]|0,X|0&&P1[X&127](e),Zt=bn(s,T)|0,Br=bn(a,T)|0,ss=+S(x[e+908>>2]),ea=+S(x[e+912>>2]),t[Pn>>2]=Zt,t[Pn+4>>2]=Br,j[Pn+8>>3]=ss,j[Pn+16>>3]=ea,t[Pn+24>>2]=L,pr(e,4,3092,Pn)),t[e+516>>2]=u,b||(X=e+520|0,b=t[X>>2]|0,(b|0)==16&&(h[11697]|0&&pr(e,4,3124,gn),t[X>>2]=0,b=0),T?b=e+916|0:(t[X>>2]=b+1,b=e+524+(b*24|0)|0),x[b>>2]=n,x[b+4>>2]=r,t[b+8>>2]=s,t[b+12>>2]=a,t[b+16>>2]=t[e+908>>2],t[b+20>>2]=t[e+912>>2],b=0)),T&&(t[e+416>>2]=t[e+908>>2],t[e+420>>2]=t[e+912>>2],h[e+985>>0]=1,h[_r>>0]=0),t[2279]=(t[2279]|0)+-1,t[e+512>>2]=t[2278],y=kn,Pr|(b|0)==0|0}function Kt(e,n,r){e=e|0,n=n|0,r=S(r);var u=Ct;return u=S(Hi(e,n,r)),S(u+S(A0(e,n,r)))}function pr(e,n,r,u){e=e|0,n=n|0,r=r|0,u=u|0;var s=0,a=0;a=y,y=y+16|0,s=a,t[s>>2]=u,e?u=t[e+976>>2]|0:u=0,zs(u,e,n,r,s),y=a}function Ei(e){return e=e|0,(e>>>0>60?3201:3201+(60-e)|0)|0}function bn(e,n){e=e|0,n=n|0;var r=0,u=0,s=0;return s=y,y=y+32|0,r=s+12|0,u=s,t[r>>2]=t[254],t[r+4>>2]=t[255],t[r+8>>2]=t[256],t[u>>2]=t[257],t[u+4>>2]=t[258],t[u+8>>2]=t[259],(e|0)>2?e=11699:e=t[(n?u:r)+(e<<2)>>2]|0,y=s,e|0}function mu(e,n,r,u,s,a,v,w,T,L){e=e|0,n=S(n),r=S(r),u=u|0,s=s|0,a=a|0,v=S(v),w=S(w),T=T|0,L=L|0;var M=0,b=0,X=0,Be=0,Te=Ct,ye=Ct,Ze=Ct,Ye=Ct,ct=Ct,ke=Ct,Ie=Ct,Zt=0,Br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]=1;break e}while(0);if(qu(b,Bn,hu)|0){M=t[b+992+(t[i2>>2]<<2)>>2]|0,mn=S(r+S(xn(M,hu))),x[ql>>2]=mn,M=u2&(t[M+4>>2]|0)==2,t[Ns>>2]=((Le(mn)|0|M)^1)&1;break}else{x[ql>>2]=hu,t[Ns>>2]=M?0:2;break}}else mn=S(ye-Ye),gn=S(mn/Ze),mn=S(Ze*mn),t[Ns>>2]=1,x[ql>>2]=S(r+(bu?gn:mn));while(0);Ln(b,Or,kn,Sr,lf,La),Ln(b,Bn,hu,Sr,Ns,ql);do if(!(qu(b,Bn,hu)|0)&&($u(e,b)|0)==4){if((t[(g0(b,Bn)|0)+4>>2]|0)==3){M=0;break}M=(t[(_0(b,Bn)|0)+4>>2]|0)!=3}else M=0;while(0);mn=S(x[La>>2]),gn=S(x[ql>>2]),Y1=t[lf>>2]|0,a0=t[Ns>>2]|0,Yt(b,bu?mn:gn,bu?gn:mn,Dl,bu?Y1:a0,bu?a0:Y1,Sr,as,T&(M^1),3488,L)|0,h[of>>0]=h[of>>0]|h[b+508>>0],b=t[b+960>>2]|0}while((b|0)!=0)}}else n=S(0);if(n=S(_r+n),a0=n>0]=a0|N[of>>0],n2&n>S(0)?(M=t[uf>>2]|0,(t[e+364+(M<<3)+4>>2]|0)!=0&&(Wl=S(xn(e+364+(M<<3)|0,fs)),Wl>=S(0))?ye=S(xu(S(0),S(Wl-S(kn-n)))):ye=S(0)):ye=n,Zt=Pr>>>0>>0,Zt){Be=t[cs>>2]|0,X=Pr,M=0;do b=t[Be+(X<<2)>>2]|0,t[b+24>>2]|0||(M=((t[(g0(b,Or)|0)+4>>2]|0)==3&1)+M|0,M=M+((t[(_0(b,Or)|0)+4>>2]|0)==3&1)|0),X=X+1|0;while((X|0)!=(Pn|0));M?(Ye=S(0),r=S(0)):pi=101}else pi=101;e:do if((pi|0)==101)switch(pi=0,l2|0){case 1:{M=0,Ye=S(ye*S(.5)),r=S(0);break e}case 2:{M=0,Ye=ye,r=S(0);break e}case 3:{if(a>>>0<=1){M=0,Ye=S(0),r=S(0);break e}r=S((a+-1|0)>>>0),M=0,Ye=S(0),r=S(S(xu(ye,S(0)))/r);break e}case 5:{r=S(ye/S((a+1|0)>>>0)),M=0,Ye=r;break e}case 4:{r=S(ye/S(a>>>0)),M=0,Ye=S(r*S(.5));break e}default:{M=0,Ye=S(0),r=S(0);break e}}while(0);if(n=S(s2+Ye),Zt){Ze=S(ye/S(M|0)),X=t[cs>>2]|0,b=Pr,ye=S(0);do{M=t[X+(b<<2)>>2]|0;e:do if((t[M+36>>2]|0)!=1){switch(t[M+24>>2]|0){case 1:{if(fe(M,Or)|0){if(!T)break e;mn=S(ie(M,Or,kn)),mn=S(mn+S(O0(e,Or))),mn=S(mn+S(Hi(M,Or,Sr))),x[M+400+(t[Pc>>2]<<2)>>2]=mn;break e}break}case 0:if(a0=(t[(g0(M,Or)|0)+4>>2]|0)==3,mn=S(Ze+n),n=a0?mn:n,T&&(a0=M+400+(t[Pc>>2]<<2)|0,x[a0>>2]=S(n+S(x[a0>>2]))),a0=(t[(_0(M,Or)|0)+4>>2]|0)==3,mn=S(Ze+n),n=a0?mn:n,ea){mn=S(r+S(Kt(M,Or,Sr))),ye=hu,n=S(n+S(mn+S(x[M+504>>2])));break e}else{n=S(n+S(r+S(Pe(M,Or,Sr)))),ye=S(xu(ye,S(Pe(M,Bn,Sr))));break e}default:}T&&(mn=S(Ye+S(O0(e,Or))),a0=M+400+(t[Pc>>2]<<2)|0,x[a0>>2]=S(mn+S(x[a0>>2])))}while(0);b=b+1|0}while((b|0)!=(Pn|0))}else ye=S(0);if(r=S(a2+n),r2?Ye=S(S(Kn(e,Bn,S(Vl+ye),Jf,v))-Vl):Ye=hu,Ze=S(S(Kn(e,Bn,S(Vl+(o2?hu:ye)),Jf,v))-Vl),Zt&T){b=Pr;do{X=t[(t[cs>>2]|0)+(b<<2)>>2]|0;do if((t[X+36>>2]|0)!=1){if((t[X+24>>2]|0)==1){if(fe(X,Bn)|0){if(mn=S(ie(X,Bn,hu)),mn=S(mn+S(O0(e,Bn))),mn=S(mn+S(Hi(X,Bn,Sr))),M=t[Fc>>2]|0,x[X+400+(M<<2)>>2]=mn,!(Le(mn)|0))break}else M=t[Fc>>2]|0;mn=S(O0(e,Bn)),x[X+400+(M<<2)>>2]=S(mn+S(Hi(X,Bn,Sr)));break}M=$u(e,X)|0;do if((M|0)==4){if((t[(g0(X,Bn)|0)+4>>2]|0)==3){pi=139;break}if((t[(_0(X,Bn)|0)+4>>2]|0)==3){pi=139;break}if(qu(X,Bn,hu)|0){n=Te;break}Y1=t[X+908+(t[uf>>2]<<2)>>2]|0,t[ql>>2]=Y1,n=S(x[X+396>>2]),a0=Le(n)|0,ye=(t[V>>2]=Y1,S(x[V>>2])),a0?n=Ze:(_r=S(Kt(X,Bn,Sr)),mn=S(ye/n),n=S(n*ye),n=S(_r+(bu?mn:n))),x[La>>2]=n,x[ql>>2]=S(S(Kt(X,Or,Sr))+ye),t[Ns>>2]=1,t[lf>>2]=1,Ln(X,Or,kn,Sr,Ns,ql),Ln(X,Bn,hu,Sr,lf,La),n=S(x[ql>>2]),_r=S(x[La>>2]),mn=bu?n:_r,n=bu?_r:n,a0=((Le(mn)|0)^1)&1,Yt(X,mn,n,Dl,a0,((Le(n)|0)^1)&1,Sr,as,1,3493,L)|0,n=Te}else pi=139;while(0);e:do if((pi|0)==139){pi=0,n=S(Ye-S(Pe(X,Bn,Sr)));do if((t[(g0(X,Bn)|0)+4>>2]|0)==3){if((t[(_0(X,Bn)|0)+4>>2]|0)!=3)break;n=S(Te+S(xu(S(0),S(n*S(.5)))));break e}while(0);if((t[(_0(X,Bn)|0)+4>>2]|0)==3){n=Te;break}if((t[(g0(X,Bn)|0)+4>>2]|0)==3){n=S(Te+S(xu(S(0),n)));break}switch(M|0){case 1:{n=Te;break e}case 2:{n=S(Te+S(n*S(.5)));break e}default:{n=S(Te+n);break e}}}while(0);mn=S(El+n),a0=X+400+(t[Fc>>2]<<2)|0,x[a0>>2]=S(mn+S(x[a0>>2]))}while(0);b=b+1|0}while((b|0)!=(Pn|0))}if(El=S(El+Ze),Kf=S(xu(Kf,r)),a=ss+1|0,Pn>>>0>=Gl>>>0)break;n=kn,Pr=Pn,ss=a}do if(T){if(M=a>>>0>1,!M&&!(Me(e)|0))break;if(!(Le(hu)|0)){n=S(hu-El);e:do switch(t[e+12>>2]|0){case 3:{Te=S(Te+n),ke=S(0);break}case 2:{Te=S(Te+S(n*S(.5))),ke=S(0);break}case 4:{hu>El?ke=S(n/S(a>>>0)):ke=S(0);break}case 7:if(hu>El){Te=S(Te+S(n/S(a<<1>>>0))),ke=S(n/S(a>>>0)),ke=M?ke:S(0);break e}else{Te=S(Te+S(n*S(.5))),ke=S(0);break e}case 6:{ke=S(n/S(ss>>>0)),ke=hu>El&M?ke:S(0);break}default:ke=S(0)}while(0);if(a|0)for(Zt=1040+(Bn<<2)|0,Br=976+(Bn<<2)|0,Be=0,b=0;;){e:do if(b>>>0>>0)for(ye=S(0),Ze=S(0),n=S(0),X=b;;){M=t[(t[cs>>2]|0)+(X<<2)>>2]|0;do if((t[M+36>>2]|0)!=1&&(t[M+24>>2]|0)==0){if((t[M+940>>2]|0)!=(Be|0))break e;if(at(M,Bn)|0&&(mn=S(x[M+908+(t[Br>>2]<<2)>>2]),n=S(xu(n,S(mn+S(Kt(M,Bn,Sr)))))),($u(e,M)|0)!=5)break;Wl=S(mt(M)),Wl=S(Wl+S(Hi(M,0,Sr))),mn=S(x[M+912>>2]),mn=S(S(mn+S(Kt(M,0,Sr)))-Wl),Wl=S(xu(Ze,Wl)),mn=S(xu(ye,mn)),ye=mn,Ze=Wl,n=S(xu(n,S(Wl+mn)))}while(0);if(M=X+1|0,M>>>0>>0)X=M;else{X=M;break}}else Ze=S(0),n=S(0),X=b;while(0);if(ct=S(ke+n),r=Te,Te=S(Te+ct),b>>>0>>0){Ye=S(r+Ze),M=b;do{b=t[(t[cs>>2]|0)+(M<<2)>>2]|0;e:do if((t[b+36>>2]|0)!=1&&(t[b+24>>2]|0)==0)switch($u(e,b)|0){case 1:{mn=S(r+S(Hi(b,Bn,Sr))),x[b+400+(t[Zt>>2]<<2)>>2]=mn;break e}case 3:{mn=S(S(Te-S(A0(b,Bn,Sr)))-S(x[b+908+(t[Br>>2]<<2)>>2])),x[b+400+(t[Zt>>2]<<2)>>2]=mn;break e}case 2:{mn=S(r+S(S(ct-S(x[b+908+(t[Br>>2]<<2)>>2]))*S(.5))),x[b+400+(t[Zt>>2]<<2)>>2]=mn;break e}case 4:{if(mn=S(r+S(Hi(b,Bn,Sr))),x[b+400+(t[Zt>>2]<<2)>>2]=mn,qu(b,Bn,hu)|0||(bu?(ye=S(x[b+908>>2]),n=S(ye+S(Kt(b,Or,Sr))),Ze=ct):(Ze=S(x[b+912>>2]),Ze=S(Ze+S(Kt(b,Bn,Sr))),n=ct,ye=S(x[b+908>>2])),Ci(n,ye)|0&&Ci(Ze,S(x[b+912>>2]))|0))break e;Yt(b,n,Ze,Dl,1,1,Sr,as,1,3501,L)|0;break e}case 5:{x[b+404>>2]=S(S(Ye-S(mt(b)))+S(ie(b,0,hu)));break e}default:break e}while(0);M=M+1|0}while((M|0)!=(X|0))}if(Be=Be+1|0,(Be|0)==(a|0))break;b=X}}}while(0);if(x[e+908>>2]=S(Kn(e,2,Xf,v,v)),x[e+912>>2]=S(Kn(e,0,z1,w,v)),(sf|0)!=0&&(H1=t[e+32>>2]|0,q1=(sf|0)==2,!(q1&(H1|0)!=2))?q1&(H1|0)==2&&(n=S(Qf+kn),n=S(xu(S(Kp(n,S(Qt(e,Or,Kf,fs)))),Qf)),pi=198):(n=S(Kn(e,Or,Kf,fs,v)),pi=198),(pi|0)==198&&(x[e+908+(t[976+(Or<<2)>>2]<<2)>>2]=n),(af|0)!=0&&(V1=t[e+32>>2]|0,G1=(af|0)==2,!(G1&(V1|0)!=2))?G1&(V1|0)==2&&(n=S(Vl+hu),n=S(xu(S(Kp(n,S(Qt(e,Bn,S(Vl+El),Jf)))),Vl)),pi=204):(n=S(Kn(e,Bn,S(Vl+El),Jf,v)),pi=204),(pi|0)==204&&(x[e+908+(t[976+(Bn<<2)>>2]<<2)>>2]=n),T){if((t[W1>>2]|0)==2){b=976+(Bn<<2)|0,X=1040+(Bn<<2)|0,M=0;do Be=Ti(e,M)|0,t[Be+24>>2]|0||(Y1=t[b>>2]|0,mn=S(x[e+908+(Y1<<2)>>2]),a0=Be+400+(t[X>>2]<<2)|0,mn=S(mn-S(x[a0>>2])),x[a0>>2]=S(mn-S(x[Be+908+(Y1<<2)>>2]))),M=M+1|0;while((M|0)!=(Gl|0))}if(u|0){M=bu?sf:s;do An(e,u,Sr,M,as,Dl,L),u=t[u+960>>2]|0;while((u|0)!=0)}if(M=(Or|2|0)==3,b=(Bn|2|0)==3,M|b){u=0;do X=t[(t[cs>>2]|0)+(u<<2)>>2]|0,(t[X+36>>2]|0)!=1&&(M&&Sn(e,X,Or),b&&Sn(e,X,Bn)),u=u+1|0;while((u|0)!=(Gl|0))}}}while(0);y=ff}function Qu(e,n){e=e|0,n=S(n);var r=0;Cn(e,n>=S(0),3147),r=n==S(0),x[e+4>>2]=r?S(0):n}function $r(e,n,r,u){e=e|0,n=S(n),r=S(r),u=u|0;var s=Ct,a=Ct,v=0,w=0,T=0;t[2278]=(t[2278]|0)+1,Qr(e),qu(e,2,n)|0?(s=S(xn(t[e+992>>2]|0,n)),T=1,s=S(s+S(Kt(e,2,n)))):(s=S(xn(e+380|0,n)),s>=S(0)?T=2:(T=((Le(n)|0)^1)&1,s=n)),qu(e,0,r)|0?(a=S(xn(t[e+996>>2]|0,r)),w=1,a=S(a+S(Kt(e,0,n)))):(a=S(xn(e+388|0,r)),a>=S(0)?w=2:(w=((Le(r)|0)^1)&1,a=r)),v=e+976|0,Yt(e,s,a,u,T,w,n,r,1,3189,t[v>>2]|0)|0&&(x0(e,t[e+496>>2]|0,n,r,n),Lu(e,S(x[(t[v>>2]|0)+4>>2]),S(0),S(0)),h[11696]|0)&&mf(e,7)}function Qr(e){e=e|0;var n=0,r=0,u=0,s=0,a=0,v=0,w=0,T=0,L=0,M=0;w=y,y=y+32|0,v=w+24|0,a=w+16|0,u=w+8|0,s=w,r=0;do n=e+380+(r<<3)|0,(t[e+380+(r<<3)+4>>2]|0)!=0&&(T=n,L=t[T+4>>2]|0,M=u,t[M>>2]=t[T>>2],t[M+4>>2]=L,M=e+364+(r<<3)|0,L=t[M+4>>2]|0,T=s,t[T>>2]=t[M>>2],t[T+4>>2]=L,t[a>>2]=t[u>>2],t[a+4>>2]=t[u+4>>2],t[v>>2]=t[s>>2],t[v+4>>2]=t[s+4>>2],Bi(a,v)|0)||(n=e+348+(r<<3)|0),t[e+992+(r<<2)>>2]=n,r=r+1|0;while((r|0)!=2);y=w}function qu(e,n,r){e=e|0,n=n|0,r=S(r);var u=0;switch(e=t[e+992+(t[976+(n<<2)>>2]<<2)>>2]|0,t[e+4>>2]|0){case 0:case 3:{e=0;break}case 1:{S(x[e>>2])>2])>2]|0){case 2:{n=S(S(S(x[e>>2])*n)/S(100));break}case 1:{n=S(x[e>>2]);break}default:n=S(ue)}return S(n)}function x0(e,n,r,u,s){e=e|0,n=n|0,r=S(r),u=S(u),s=S(s);var a=0,v=Ct;n=t[e+944>>2]|0?n:1,a=B0(t[e+4>>2]|0,n)|0,n=gf(a,n)|0,r=S(Ar(e,a,r)),u=S(Ar(e,n,u)),v=S(r+S(Hi(e,a,s))),x[e+400+(t[1040+(a<<2)>>2]<<2)>>2]=v,r=S(r+S(A0(e,a,s))),x[e+400+(t[1e3+(a<<2)>>2]<<2)>>2]=r,r=S(u+S(Hi(e,n,s))),x[e+400+(t[1040+(n<<2)>>2]<<2)>>2]=r,s=S(u+S(A0(e,n,s))),x[e+400+(t[1e3+(n<<2)>>2]<<2)>>2]=s}function Lu(e,n,r,u){e=e|0,n=S(n),r=S(r),u=S(u);var s=0,a=0,v=Ct,w=Ct,T=0,L=0,M=Ct,b=0,X=Ct,Be=Ct,Te=Ct,ye=Ct;if(n!=S(0)&&(s=e+400|0,ye=S(x[s>>2]),a=e+404|0,Te=S(x[a>>2]),b=e+416|0,Be=S(x[b>>2]),L=e+420|0,v=S(x[L>>2]),X=S(ye+r),M=S(Te+u),u=S(X+Be),w=S(M+v),T=(t[e+988>>2]|0)==1,x[s>>2]=S(eo(ye,n,0,T)),x[a>>2]=S(eo(Te,n,0,T)),r=S(NE(S(Be*n),S(1))),Ci(r,S(0))|0?a=0:a=(Ci(r,S(1))|0)^1,r=S(NE(S(v*n),S(1))),Ci(r,S(0))|0?s=0:s=(Ci(r,S(1))|0)^1,ye=S(eo(u,n,T&a,T&(a^1))),x[b>>2]=S(ye-S(eo(X,n,0,T))),ye=S(eo(w,n,T&s,T&(s^1))),x[L>>2]=S(ye-S(eo(M,n,0,T))),a=(t[e+952>>2]|0)-(t[e+948>>2]|0)>>2,a|0)){s=0;do Lu(Ti(e,s)|0,n,X,M),s=s+1|0;while((s|0)!=(a|0))}}function ui(e,n,r,u,s){switch(e=e|0,n=n|0,r=r|0,u=u|0,s=s|0,r|0){case 5:case 0:{e=v8(t[489]|0,u,s)|0;break}default:e=FL(u,s)|0}return e|0}function Cl(e,n,r,u){e=e|0,n=n|0,r=r|0,u=u|0;var s=0,a=0;s=y,y=y+16|0,a=s,t[a>>2]=u,zs(e,0,n,r,a),y=s}function zs(e,n,r,u,s){if(e=e|0,n=n|0,r=r|0,u=u|0,s=s|0,e=e|0?e:956,I8[t[e+8>>2]&1](e,n,r,u,s)|0,(r|0)==5)$n();else return}function Wu(e,n,r){e=e|0,n=n|0,r=r|0,h[e+n>>0]=r&1}function sa(e,n){e=e|0,n=n|0;var r=0,u=0;t[e>>2]=0,t[e+4>>2]=0,t[e+8>>2]=0,r=n+4|0,u=(t[r>>2]|0)-(t[n>>2]|0)>>2,u|0&&(Xi(e,u),Hs(e,t[n>>2]|0,t[r>>2]|0,u))}function Xi(e,n){e=e|0,n=n|0;var r=0;if((R0(e)|0)>>>0>>0&&di(e),n>>>0>1073741823)$n();else{r=pn(n<<2)|0,t[e+4>>2]=r,t[e>>2]=r,t[e+8>>2]=r+(n<<2);return}}function Hs(e,n,r,u){e=e|0,n=n|0,r=r|0,u=u|0,u=e+4|0,e=r-n|0,(e|0)>0&&(gr(t[u>>2]|0,n|0,e|0)|0,t[u>>2]=(t[u>>2]|0)+(e>>>2<<2))}function R0(e){return e=e|0,1073741823}function Hi(e,n,r){return e=e|0,n=n|0,r=S(r),qi(n)|0&&(t[e+96>>2]|0)!=0?e=e+92|0:e=pt(e+60|0,t[1040+(n<<2)>>2]|0,992)|0,S(il(e,r))}function A0(e,n,r){return e=e|0,n=n|0,r=S(r),qi(n)|0&&(t[e+104>>2]|0)!=0?e=e+100|0:e=pt(e+60|0,t[1e3+(n<<2)>>2]|0,992)|0,S(il(e,r))}function qi(e){return e=e|0,(e|1|0)==3|0}function il(e,n){return e=e|0,n=S(n),(t[e+4>>2]|0)==3?n=S(0):n=S(xn(e,n)),S(n)}function xl(e,n){return e=e|0,n=n|0,e=t[e>>2]|0,((e|0)==0?(n|0)>1?n:1:e)|0}function B0(e,n){e=e|0,n=n|0;var r=0;e:do if((n|0)==2){switch(e|0){case 2:{e=3;break e}case 3:break;default:{r=4;break e}}e=2}else r=4;while(0);return e|0}function O0(e,n){e=e|0,n=n|0;var r=Ct;return qi(n)|0&&(t[e+312>>2]|0)!=0&&(r=S(x[e+308>>2]),r>=S(0))||(r=S(xu(S(x[(pt(e+276|0,t[1040+(n<<2)>>2]|0,992)|0)>>2]),S(0)))),S(r)}function vo(e,n){e=e|0,n=n|0;var r=Ct;return qi(n)|0&&(t[e+320>>2]|0)!=0&&(r=S(x[e+316>>2]),r>=S(0))||(r=S(xu(S(x[(pt(e+276|0,t[1e3+(n<<2)>>2]|0,992)|0)>>2]),S(0)))),S(r)}function Fu(e,n,r){e=e|0,n=n|0,r=S(r);var u=Ct;return qi(n)|0&&(t[e+240>>2]|0)!=0&&(u=S(xn(e+236|0,r)),u>=S(0))||(u=S(xu(S(xn(pt(e+204|0,t[1040+(n<<2)>>2]|0,992)|0,r)),S(0)))),S(u)}function Ju(e,n,r){e=e|0,n=n|0,r=S(r);var u=Ct;return qi(n)|0&&(t[e+248>>2]|0)!=0&&(u=S(xn(e+244|0,r)),u>=S(0))||(u=S(xu(S(xn(pt(e+204|0,t[1e3+(n<<2)>>2]|0,992)|0,r)),S(0)))),S(u)}function es(e,n,r,u,s,a,v){e=e|0,n=S(n),r=S(r),u=u|0,s=s|0,a=S(a),v=S(v);var w=Ct,T=Ct,L=Ct,M=Ct,b=Ct,X=Ct,Be=0,Te=0,ye=0;ye=y,y=y+16|0,Be=ye,Te=e+964|0,Hu(e,(t[Te>>2]|0)!=0,3519),w=S(Rr(e,2,n)),T=S(Rr(e,0,n)),L=S(Kt(e,2,n)),M=S(Kt(e,0,n)),Le(n)|0?b=n:b=S(xu(S(0),S(S(n-L)-w))),Le(r)|0?X=r:X=S(xu(S(0),S(S(r-M)-T))),(u|0)==1&(s|0)==1?(x[e+908>>2]=S(Kn(e,2,S(n-L),a,a)),n=S(Kn(e,0,S(r-M),v,a))):(b8[t[Te>>2]&1](Be,e,b,u,X,s),b=S(w+S(x[Be>>2])),X=S(n-L),x[e+908>>2]=S(Kn(e,2,(u|2|0)==2?b:X,a,a)),X=S(T+S(x[Be+4>>2])),n=S(r-M),n=S(Kn(e,0,(s|2|0)==2?X:n,v,a))),x[e+912>>2]=n,y=ye}function _s(e,n,r,u,s,a,v){e=e|0,n=S(n),r=S(r),u=u|0,s=s|0,a=S(a),v=S(v);var w=Ct,T=Ct,L=Ct,M=Ct;L=S(Rr(e,2,a)),w=S(Rr(e,0,a)),M=S(Kt(e,2,a)),T=S(Kt(e,0,a)),n=S(n-M),x[e+908>>2]=S(Kn(e,2,(u|2|0)==2?L:n,a,a)),r=S(r-T),x[e+912>>2]=S(Kn(e,0,(s|2|0)==2?w:r,v,a))}function aa(e,n,r,u,s,a,v){e=e|0,n=S(n),r=S(r),u=u|0,s=s|0,a=S(a),v=S(v);var w=0,T=Ct,L=Ct;return w=(u|0)==2,!(n<=S(0)&w)&&!(r<=S(0)&(s|0)==2)&&!((u|0)==1&(s|0)==1)?e=0:(T=S(Kt(e,0,a)),L=S(Kt(e,2,a)),w=n>2]=S(Kn(e,2,w?S(0):n,a,a)),n=S(r-T),w=r>2]=S(Kn(e,0,w?S(0):n,v,a)),e=1),e|0}function gf(e,n){return e=e|0,n=n|0,_n(e)|0?e=B0(2,n)|0:e=0,e|0}function Zu(e,n,r){return e=e|0,n=n|0,r=S(r),r=S(Fu(e,n,r)),S(r+S(O0(e,n)))}function Es(e,n,r){return e=e|0,n=n|0,r=S(r),r=S(Ju(e,n,r)),S(r+S(vo(e,n)))}function Rr(e,n,r){e=e|0,n=n|0,r=S(r);var u=Ct;return u=S(Zu(e,n,r)),S(u+S(Es(e,n,r)))}function no(e){return e=e|0,t[e+24>>2]|0?e=0:S(nu(e))!=S(0)?e=1:e=S(fu(e))!=S(0),e|0}function nu(e){e=e|0;var n=Ct;if(t[e+944>>2]|0){if(n=S(x[e+44>>2]),Le(n)|0)return n=S(x[e+40>>2]),e=n>S(0)&((Le(n)|0)^1),S(e?n:S(0))}else n=S(0);return S(n)}function fu(e){e=e|0;var n=Ct,r=0,u=Ct;do if(t[e+944>>2]|0){if(n=S(x[e+48>>2]),Le(n)|0){if(r=h[(t[e+976>>2]|0)+2>>0]|0,r<<24>>24==0&&(u=S(x[e+40>>2]),u>24?S(1):S(0)}}else n=S(0);while(0);return S(n)}function Li(e){e=e|0;var n=0,r=0;if(jv(e+400|0,0,540)|0,h[e+985>>0]=1,ms(e),r=wu(e)|0,r|0){n=e+948|0,e=0;do Li(t[(t[n>>2]|0)+(e<<2)>>2]|0),e=e+1|0;while((e|0)!=(r|0))}}function ei(e,n,r,u,s,a,v,w,T,L){e=e|0,n=n|0,r=S(r),u=u|0,s=S(s),a=S(a),v=S(v),w=w|0,T=T|0,L=L|0;var M=0,b=Ct,X=0,Be=0,Te=Ct,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ie&(M|0)==1?(x[Br>>2]=S(ye*S(b-ke)),t[gn>>2]=1,M=1,X=1):X=Be}while(0);os=Le(r)|0,Be=($u(e,n)|0)!=4,!(Ie|Zt|((u|0)!=1|os)|(Be|(X|0)==1))&&(x[Br>>2]=r,t[gn>>2]=1,!Ze)&&(x[Pn>>2]=S(S(r-Ye)/ye),t[_r>>2]=1,M=1),!(Pr|ct|((w|0)!=1|(Le(s)|0))|(Be|(M|0)==1))&&(x[Pn>>2]=s,t[_r>>2]=1,!Ze)&&(x[Br>>2]=S(ye*S(s-ke)),t[gn>>2]=1),Ln(n,2,a,a,gn,Br),Ln(n,0,v,a,_r,Pn),r=S(x[Br>>2]),s=S(x[Pn>>2]),Yt(n,r,s,T,t[gn>>2]|0,t[_r>>2]|0,a,v,0,3565,L)|0,v=S(x[n+908+(t[976+(kn<<2)>>2]<<2)>>2]),x[n+504>>2]=S(xu(v,S(Rr(n,kn,a))))}while(0);t[n+500>>2]=t[2278],y=uu}function Kn(e,n,r,u,s){return e=e|0,n=n|0,r=S(r),u=S(u),s=S(s),u=S(Qt(e,n,r,u)),S(xu(u,S(Rr(e,n,s))))}function $u(e,n){return e=e|0,n=n|0,n=n+20|0,n=t[((t[n>>2]|0)==0?e+16|0:n)>>2]|0,(n|0)==5&&_n(t[e+4>>2]|0)|0&&(n=1),n|0}function g0(e,n){return e=e|0,n=n|0,qi(n)|0&&(t[e+96>>2]|0)!=0?n=4:n=t[1040+(n<<2)>>2]|0,e+60+(n<<3)|0}function _0(e,n){return e=e|0,n=n|0,qi(n)|0&&(t[e+104>>2]|0)!=0?n=5:n=t[1e3+(n<<2)>>2]|0,e+60+(n<<3)|0}function Ln(e,n,r,u,s,a){switch(e=e|0,n=n|0,r=S(r),u=S(u),s=s|0,a=a|0,r=S(xn(e+380+(t[976+(n<<2)>>2]<<3)|0,r)),r=S(r+S(Kt(e,n,u))),t[s>>2]|0){case 2:case 1:{s=Le(r)|0,u=S(x[a>>2]),x[a>>2]=s|u>2]=2,x[a>>2]=r);break}default:}}function fe(e,n){return e=e|0,n=n|0,e=e+132|0,qi(n)|0&&(t[(pt(e,4,948)|0)+4>>2]|0)!=0?e=1:e=(t[(pt(e,t[1040+(n<<2)>>2]|0,948)|0)+4>>2]|0)!=0,e|0}function ie(e,n,r){e=e|0,n=n|0,r=S(r);var u=0,s=0;return e=e+132|0,qi(n)|0&&(u=pt(e,4,948)|0,(t[u+4>>2]|0)!=0)?s=4:(u=pt(e,t[1040+(n<<2)>>2]|0,948)|0,t[u+4>>2]|0?s=4:r=S(0)),(s|0)==4&&(r=S(xn(u,r))),S(r)}function Pe(e,n,r){e=e|0,n=n|0,r=S(r);var u=Ct;return u=S(x[e+908+(t[976+(n<<2)>>2]<<2)>>2]),u=S(u+S(Hi(e,n,r))),S(u+S(A0(e,n,r)))}function Me(e){e=e|0;var n=0,r=0,u=0;e:do if(_n(t[e+4>>2]|0)|0)n=0;else if((t[e+16>>2]|0)!=5)if(r=wu(e)|0,!r)n=0;else for(n=0;;){if(u=Ti(e,n)|0,(t[u+24>>2]|0)==0&&(t[u+20>>2]|0)==5){n=1;break e}if(n=n+1|0,n>>>0>=r>>>0){n=0;break}}else n=1;while(0);return n|0}function at(e,n){e=e|0,n=n|0;var r=Ct;return r=S(x[e+908+(t[976+(n<<2)>>2]<<2)>>2]),r>=S(0)&((Le(r)|0)^1)|0}function mt(e){e=e|0;var n=Ct,r=0,u=0,s=0,a=0,v=0,w=0,T=Ct;if(r=t[e+968>>2]|0,r)T=S(x[e+908>>2]),n=S(x[e+912>>2]),n=S(N8[r&0](e,T,n)),Hu(e,(Le(n)|0)^1,3573);else{a=wu(e)|0;do if(a|0){for(r=0,s=0;;){if(u=Ti(e,s)|0,t[u+940>>2]|0){v=8;break}if((t[u+24>>2]|0)!=1)if(w=($u(e,u)|0)==5,w){r=u;break}else r=(r|0)==0?u:r;if(s=s+1|0,s>>>0>=a>>>0){v=8;break}}if((v|0)==8&&!r)break;return n=S(mt(r)),S(n+S(x[r+404>>2]))}while(0);n=S(x[e+912>>2])}return S(n)}function Qt(e,n,r,u){e=e|0,n=n|0,r=S(r),u=S(u);var s=Ct,a=0;return _n(n)|0?(n=1,a=3):qi(n)|0?(n=0,a=3):(u=S(ue),s=S(ue)),(a|0)==3&&(s=S(xn(e+364+(n<<3)|0,u)),u=S(xn(e+380+(n<<3)|0,u))),a=u=S(0)&((Le(u)|0)^1)),r=a?u:r,a=s>=S(0)&((Le(s)|0)^1)&r>2]|0,a)|0,Te=gf(Ze,a)|0,ye=qi(Ze)|0,b=S(Kt(n,2,r)),X=S(Kt(n,0,r)),qu(n,2,r)|0?w=S(b+S(xn(t[n+992>>2]|0,r))):fe(n,2)|0&&Ut(n,2)|0?(w=S(x[e+908>>2]),T=S(O0(e,2)),T=S(w-S(T+S(vo(e,2)))),w=S(ie(n,2,r)),w=S(Kn(n,2,S(T-S(w+S(Fi(n,2,r)))),r,r))):w=S(ue),qu(n,0,s)|0?T=S(X+S(xn(t[n+996>>2]|0,s))):fe(n,0)|0&&Ut(n,0)|0?(T=S(x[e+912>>2]),ct=S(O0(e,0)),ct=S(T-S(ct+S(vo(e,0)))),T=S(ie(n,0,s)),T=S(Kn(n,0,S(ct-S(T+S(Fi(n,0,s)))),s,r))):T=S(ue),L=Le(w)|0,M=Le(T)|0;do if(L^M&&(Be=S(x[n+396>>2]),!(Le(Be)|0)))if(L){w=S(b+S(S(T-X)*Be));break}else{ct=S(X+S(S(w-b)/Be)),T=M?ct:T;break}while(0);M=Le(w)|0,L=Le(T)|0,M|L&&(ke=(M^1)&1,u=r>S(0)&((u|0)!=0&M),w=ye?w:u?r:w,Yt(n,w,T,a,ye?ke:u?2:ke,M&(L^1)&1,w,T,0,3623,v)|0,w=S(x[n+908>>2]),w=S(w+S(Kt(n,2,r))),T=S(x[n+912>>2]),T=S(T+S(Kt(n,0,r)))),Yt(n,w,T,a,1,1,w,T,1,3635,v)|0,Ut(n,Ze)|0&&!(fe(n,Ze)|0)?(ke=t[976+(Ze<<2)>>2]|0,ct=S(x[e+908+(ke<<2)>>2]),ct=S(ct-S(x[n+908+(ke<<2)>>2])),ct=S(ct-S(vo(e,Ze))),ct=S(ct-S(A0(n,Ze,r))),ct=S(ct-S(Fi(n,Ze,ye?r:s))),x[n+400+(t[1040+(Ze<<2)>>2]<<2)>>2]=ct):Ye=21;do if((Ye|0)==21){if(!(fe(n,Ze)|0)&&(t[e+8>>2]|0)==1){ke=t[976+(Ze<<2)>>2]|0,ct=S(x[e+908+(ke<<2)>>2]),ct=S(S(ct-S(x[n+908+(ke<<2)>>2]))*S(.5)),x[n+400+(t[1040+(Ze<<2)>>2]<<2)>>2]=ct;break}!(fe(n,Ze)|0)&&(t[e+8>>2]|0)==2&&(ke=t[976+(Ze<<2)>>2]|0,ct=S(x[e+908+(ke<<2)>>2]),ct=S(ct-S(x[n+908+(ke<<2)>>2])),x[n+400+(t[1040+(Ze<<2)>>2]<<2)>>2]=ct)}while(0);Ut(n,Te)|0&&!(fe(n,Te)|0)?(ke=t[976+(Te<<2)>>2]|0,ct=S(x[e+908+(ke<<2)>>2]),ct=S(ct-S(x[n+908+(ke<<2)>>2])),ct=S(ct-S(vo(e,Te))),ct=S(ct-S(A0(n,Te,r))),ct=S(ct-S(Fi(n,Te,ye?s:r))),x[n+400+(t[1040+(Te<<2)>>2]<<2)>>2]=ct):Ye=30;do if((Ye|0)==30&&!(fe(n,Te)|0)){if(($u(e,n)|0)==2){ke=t[976+(Te<<2)>>2]|0,ct=S(x[e+908+(ke<<2)>>2]),ct=S(S(ct-S(x[n+908+(ke<<2)>>2]))*S(.5)),x[n+400+(t[1040+(Te<<2)>>2]<<2)>>2]=ct;break}ke=($u(e,n)|0)==3,ke^(t[e+28>>2]|0)==2&&(ke=t[976+(Te<<2)>>2]|0,ct=S(x[e+908+(ke<<2)>>2]),ct=S(ct-S(x[n+908+(ke<<2)>>2])),x[n+400+(t[1040+(Te<<2)>>2]<<2)>>2]=ct)}while(0)}function Sn(e,n,r){e=e|0,n=n|0,r=r|0;var u=Ct,s=0;s=t[976+(r<<2)>>2]|0,u=S(x[n+908+(s<<2)>>2]),u=S(S(x[e+908+(s<<2)>>2])-u),u=S(u-S(x[n+400+(t[1040+(r<<2)>>2]<<2)>>2])),x[n+400+(t[1e3+(r<<2)>>2]<<2)>>2]=u}function _n(e){return e=e|0,(e|1|0)==1|0}function Tn(e){e=e|0;var n=Ct;switch(t[e+56>>2]|0){case 0:case 3:{n=S(x[e+40>>2]),n>S(0)&((Le(n)|0)^1)?e=h[(t[e+976>>2]|0)+2>>0]|0?1056:992:e=1056;break}default:e=e+52|0}return e|0}function ir(e,n){return e=e|0,n=n|0,(h[e+n>>0]|0)!=0|0}function Ut(e,n){return e=e|0,n=n|0,e=e+132|0,qi(n)|0&&(t[(pt(e,5,948)|0)+4>>2]|0)!=0?e=1:e=(t[(pt(e,t[1e3+(n<<2)>>2]|0,948)|0)+4>>2]|0)!=0,e|0}function Fi(e,n,r){e=e|0,n=n|0,r=S(r);var u=0,s=0;return e=e+132|0,qi(n)|0&&(u=pt(e,5,948)|0,(t[u+4>>2]|0)!=0)?s=4:(u=pt(e,t[1e3+(n<<2)>>2]|0,948)|0,t[u+4>>2]|0?s=4:r=S(0)),(s|0)==4&&(r=S(xn(u,r))),S(r)}function Ar(e,n,r){return e=e|0,n=n|0,r=S(r),fe(e,n)|0?r=S(ie(e,n,r)):r=S(-S(Fi(e,n,r))),S(r)}function mr(e){return e=S(e),x[V>>2]=e,t[V>>2]|0|0}function K(e,n,r,u){e=e|0,n=n|0,r=r|0,u=u|0;var s=0;t[e+12>>2]=0,t[e+16>>2]=u;do if(n)if(n>>>0>1073741823)$n();else{s=pn(n<<2)|0;break}else s=0;while(0);t[e>>2]=s,u=s+(r<<2)|0,t[e+8>>2]=u,t[e+4>>2]=u,t[e+12>>2]=s+(n<<2)}function ti(e,n){e=e|0,n=n|0;var r=0,u=0,s=0,a=0,v=0;u=t[e>>2]|0,v=e+4|0,a=n+4|0,s=(t[v>>2]|0)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;if(v=t[n>>2]|0,a=t[r>>2]|0,(v|0)!=(a|0)){s=e+8|0,r=((a+-4-v|0)>>>2)+1|0,e=v,u=t[s>>2]|0;do t[u>>2]=t[e>>2],u=(t[s>>2]|0)+4|0,t[s>>2]=u,e=e+4|0;while((e|0)!=(a|0));t[n>>2]=v+(r<<2)}}function ru(){Se()}function E0(){var e=0;return e=pn(4)|0,Un(e),e|0}function Un(e){e=e|0,t[e>>2]=v0()|0}function e0(e){e=e|0,e|0&&(ro(e),Et(e))}function ro(e){e=e|0,J0(t[e>>2]|0)}function mo(e,n,r){e=e|0,n=n|0,r=r|0,Wu(t[e>>2]|0,n,r)}function t0(e,n){e=e|0,n=S(n),Qu(t[e>>2]|0,n)}function jo(e,n){return e=e|0,n=n|0,ir(t[e>>2]|0,n)|0}function io(){var e=0;return e=pn(8)|0,Ba(e,0),e|0}function Ba(e,n){e=e|0,n=n|0,n?n=Yn(t[n>>2]|0)|0:n=cr()|0,t[e>>2]=n,t[e+4>>2]=0,ba(n,e)}function _f(e){e=e|0;var n=0;return n=pn(8)|0,Ba(n,e),n|0}function fc(e){e=e|0,e|0&&(Ds(e),Et(e))}function Ds(e){e=e|0;var n=0;ju(t[e>>2]|0),n=e+4|0,e=t[n>>2]|0,t[n>>2]=0,e|0&&(fa(e),Et(e))}function fa(e){e=e|0,U0(e)}function U0(e){e=e|0,e=t[e>>2]|0,e|0&&qr(e|0)}function cc(e){return e=e|0,Bs(e)|0}function Ua(e){e=e|0;var n=0,r=0;r=e+4|0,n=t[r>>2]|0,t[r>>2]=0,n|0&&(fa(n),Et(n)),po(t[e>>2]|0)}function _2(e,n){e=e|0,n=n|0,oa(t[e>>2]|0,t[n>>2]|0)}function nd(e,n){e=e|0,n=n|0,$(t[e>>2]|0,n)}function rd(e,n,r){e=e|0,n=n|0,r=+r,dr(t[e>>2]|0,n,S(r))}function yo(e,n,r){e=e|0,n=n|0,r=+r,er(t[e>>2]|0,n,S(r))}function qc(e,n){e=e|0,n=n|0,H(t[e>>2]|0,n)}function Rl(e,n){e=e|0,n=n|0,ee(t[e>>2]|0,n)}function ul(e,n){e=e|0,n=n|0,_e(t[e>>2]|0,n)}function E2(e,n){e=e|0,n=n|0,m0(t[e>>2]|0,n)}function qs(e,n){e=e|0,n=n|0,Je(t[e>>2]|0,n)}function Al(e,n){e=e|0,n=n|0,zi(t[e>>2]|0,n)}function id(e,n,r){e=e|0,n=n|0,r=+r,Rn(t[e>>2]|0,n,S(r))}function zo(e,n,r){e=e|0,n=n|0,r=+r,Nr(t[e>>2]|0,n,S(r))}function ja(e,n){e=e|0,n=n|0,Lr(t[e>>2]|0,n)}function za(e,n){e=e|0,n=n|0,oe(t[e>>2]|0,n)}function Ha(e,n){e=e|0,n=n|0,rt(t[e>>2]|0,n)}function ca(e,n){e=e|0,n=+n,kt(t[e>>2]|0,S(n))}function ws(e,n){e=e|0,n=+n,rn(t[e>>2]|0,S(n))}function Ss(e,n){e=e|0,n=+n,Ft(t[e>>2]|0,S(n))}function ts(e,n){e=e|0,n=+n,bt(t[e>>2]|0,S(n))}function Ho(e,n){e=e|0,n=+n,sn(t[e>>2]|0,S(n))}function Ef(e,n){e=e|0,n=+n,fn(t[e>>2]|0,S(n))}function ol(e,n){e=e|0,n=+n,Jn(t[e>>2]|0,S(n))}function Vu(e){e=e|0,wr(t[e>>2]|0)}function qa(e,n){e=e|0,n=+n,ku(t[e>>2]|0,S(n))}function n0(e,n){e=e|0,n=+n,T0(t[e>>2]|0,S(n))}function j0(e){e=e|0,Z0(t[e>>2]|0)}function Df(e,n){e=e|0,n=+n,gi(t[e>>2]|0,S(n))}function Wc(e,n){e=e|0,n=+n,Po(t[e>>2]|0,S(n))}function dc(e,n){e=e|0,n=+n,hf(t[e>>2]|0,S(n))}function Ol(e,n){e=e|0,n=+n,Tl(t[e>>2]|0,S(n))}function Ts(e,n){e=e|0,n=+n,Io(t[e>>2]|0,S(n))}function da(e,n){e=e|0,n=+n,ys(t[e>>2]|0,S(n))}function ud(e,n){e=e|0,n=+n,bo(t[e>>2]|0,S(n))}function pa(e,n){e=e|0,n=+n,Bo(t[e>>2]|0,S(n))}function pc(e,n){e=e|0,n=+n,Xu(t[e>>2]|0,S(n))}function Vc(e,n,r){e=e|0,n=n|0,r=+r,It(t[e>>2]|0,n,S(r))}function Wi(e,n,r){e=e|0,n=n|0,r=+r,ut(t[e>>2]|0,n,S(r))}function _(e,n,r){e=e|0,n=n|0,r=+r,wt(t[e>>2]|0,n,S(r))}function g(e){return e=e|0,Ne(t[e>>2]|0)|0}function A(e,n,r){e=e|0,n=n|0,r=r|0;var u=0,s=0;u=y,y=y+16|0,s=u,Cr(s,t[n>>2]|0,r),P(e,s),y=u}function P(e,n){e=e|0,n=n|0,B(e,t[n+4>>2]|0,+S(x[n>>2]))}function B(e,n,r){e=e|0,n=n|0,r=+r,t[e>>2]=n,j[e+8>>3]=r}function Z(e){return e=e|0,Y(t[e>>2]|0)|0}function de(e){return e=e|0,Ce(t[e>>2]|0)|0}function yt(e){return e=e|0,Oe(t[e>>2]|0)|0}function Rt(e){return e=e|0,Us(t[e>>2]|0)|0}function Nt(e){return e=e|0,vt(t[e>>2]|0)|0}function xr(e){return e=e|0,U(t[e>>2]|0)|0}function r0(e,n,r){e=e|0,n=n|0,r=r|0;var u=0,s=0;u=y,y=y+16|0,s=u,y0(s,t[n>>2]|0,r),P(e,s),y=u}function cu(e){return e=e|0,qe(t[e>>2]|0)|0}function z0(e){return e=e|0,xt(t[e>>2]|0)|0}function Ml(e,n){e=e|0,n=n|0;var r=0,u=0;r=y,y=y+16|0,u=r,Dn(u,t[n>>2]|0),P(e,u),y=r}function i0(e){return e=e|0,+ +S(pf(t[e>>2]|0))}function Ge(e){return e=e|0,+ +S(bs(t[e>>2]|0))}function je(e,n){e=e|0,n=n|0;var r=0,u=0;r=y,y=y+16|0,u=r,au(u,t[n>>2]|0),P(e,u),y=r}function st(e,n){e=e|0,n=n|0;var r=0,u=0;r=y,y=y+16|0,u=r,Nu(u,t[n>>2]|0),P(e,u),y=r}function $t(e,n){e=e|0,n=n|0;var r=0,u=0;r=y,y=y+16|0,u=r,rl(u,t[n>>2]|0),P(e,u),y=r}function Wn(e,n){e=e|0,n=n|0;var r=0,u=0;r=y,y=y+16|0,u=r,vf(u,t[n>>2]|0),P(e,u),y=r}function oi(e,n){e=e|0,n=n|0;var r=0,u=0;r=y,y=y+16|0,u=r,js(u,t[n>>2]|0),P(e,u),y=r}function ur(e,n){e=e|0,n=n|0;var r=0,u=0;r=y,y=y+16|0,u=r,gs(u,t[n>>2]|0),P(e,u),y=r}function ai(e){return e=e|0,+ +S(Su(t[e>>2]|0))}function Qi(e,n){return e=e|0,n=n|0,+ +S(un(t[e>>2]|0,n))}function Vr(e,n,r){e=e|0,n=n|0,r=r|0;var u=0,s=0;u=y,y=y+16|0,s=u,et(s,t[n>>2]|0,r),P(e,s),y=u}function Tu(e,n,r){e=e|0,n=n|0,r=r|0,Ia(t[e>>2]|0,t[n>>2]|0,r)}function Wa(e,n){e=e|0,n=n|0,Mu(t[e>>2]|0,t[n>>2]|0)}function Va(e){return e=e|0,wu(t[e>>2]|0)|0}function od(e){return e=e|0,e=si(t[e>>2]|0)|0,e?e=cc(e)|0:e=0,e|0}function D2(e,n){return e=e|0,n=n|0,e=Ti(t[e>>2]|0,n)|0,e?e=cc(e)|0:e=0,e|0}function w2(e,n){e=e|0,n=n|0;var r=0,u=0;u=pn(4)|0,wf(u,n),r=e+4|0,n=t[r>>2]|0,t[r>>2]=u,n|0&&(fa(n),Et(n)),ua(t[e>>2]|0,1)}function wf(e,n){e=e|0,n=n|0,sl(e,n)}function ld(e,n,r,u,s,a){e=e|0,n=n|0,r=S(r),u=u|0,s=S(s),a=a|0;var v=0,w=0;v=y,y=y+16|0,w=v,hh(w,Bs(n)|0,+r,u,+s,a),x[e>>2]=S(+j[w>>3]),x[e+4>>2]=S(+j[w+8>>3]),y=v}function hh(e,n,r,u,s,a){e=e|0,n=n|0,r=+r,u=u|0,s=+s,a=a|0;var v=0,w=0,T=0,L=0,M=0;v=y,y=y+32|0,M=v+8|0,L=v+20|0,T=v,w=v+16|0,j[M>>3]=r,t[L>>2]=u,j[T>>3]=s,t[w>>2]=a,Gc(e,t[n+4>>2]|0,M,L,T,w),y=v}function Gc(e,n,r,u,s,a){e=e|0,n=n|0,r=r|0,u=u|0,s=s|0,a=a|0;var v=0,w=0;v=y,y=y+16|0,w=v,Ma(w),n=go(n)|0,vh(e,n,+j[r>>3],t[u>>2]|0,+j[s>>3],t[a>>2]|0),ka(w),y=v}function go(e){return e=e|0,t[e>>2]|0}function vh(e,n,r,u,s,a){e=e|0,n=n|0,r=+r,u=u|0,s=+s,a=a|0;var v=0;v=_o(mh()|0)|0,r=+kl(r),u=sd(u)|0,s=+kl(s),ad(e,Xr(0,v|0,n|0,+r,u|0,+s,sd(a)|0)|0)}function mh(){var e=0;return h[7608]|0||(Kc(9120),e=7608,t[e>>2]=1,t[e+4>>2]=0),9120}function _o(e){return e=e|0,t[e+8>>2]|0}function kl(e){return e=+e,+ +Ga(e)}function sd(e){return e=e|0,cd(e)|0}function ad(e,n){e=e|0,n=n|0;var r=0,u=0,s=0;s=y,y=y+32|0,r=s,u=n,u&1?(S2(r,0),eu(u|0,r|0)|0,Yc(e,r),Ir(r)):(t[e>>2]=t[n>>2],t[e+4>>2]=t[n+4>>2],t[e+8>>2]=t[n+8>>2],t[e+12>>2]=t[n+12>>2]),y=s}function S2(e,n){e=e|0,n=n|0,fd(e,n),t[e+8>>2]=0,h[e+24>>0]=0}function Yc(e,n){e=e|0,n=n|0,n=n+8|0,t[e>>2]=t[n>>2],t[e+4>>2]=t[n+4>>2],t[e+8>>2]=t[n+8>>2],t[e+12>>2]=t[n+12>>2]}function Ir(e){e=e|0,h[e+24>>0]=0}function fd(e,n){e=e|0,n=n|0,t[e>>2]=n}function cd(e){return e=e|0,e|0}function Ga(e){return e=+e,+e}function Kc(e){e=e|0,ll(e,T2()|0,4)}function T2(){return 1064}function ll(e,n,r){e=e|0,n=n|0,r=r|0,t[e>>2]=n,t[e+4>>2]=r,t[e+8>>2]=Bt(n|0,r+1|0)|0}function sl(e,n){e=e|0,n=n|0,n=t[n>>2]|0,t[e>>2]=n,Ri(n|0)}function yh(e){e=e|0;var n=0,r=0;r=e+4|0,n=t[r>>2]|0,t[r>>2]=0,n|0&&(fa(n),Et(n)),ua(t[e>>2]|0,0)}function Sf(e){e=e|0,Jr(t[e>>2]|0)}function Xc(e){return e=e|0,Zl(t[e>>2]|0)|0}function C2(e,n,r,u){e=e|0,n=+n,r=+r,u=u|0,$r(t[e>>2]|0,S(n),S(r),u)}function gh(e){return e=e|0,+ +S(_i(t[e>>2]|0))}function al(e){return e=e|0,+ +S($0(t[e>>2]|0))}function ha(e){return e=e|0,+ +S(C0(t[e>>2]|0))}function x2(e){return e=e|0,+ +S(Uo(t[e>>2]|0))}function R2(e){return e=e|0,+ +S(la(t[e>>2]|0))}function hc(e){return e=e|0,+ +S($l(t[e>>2]|0))}function _h(e,n){e=e|0,n=n|0,j[e>>3]=+S(_i(t[n>>2]|0)),j[e+8>>3]=+S($0(t[n>>2]|0)),j[e+16>>3]=+S(C0(t[n>>2]|0)),j[e+24>>3]=+S(Uo(t[n>>2]|0)),j[e+32>>3]=+S(la(t[n>>2]|0)),j[e+40>>3]=+S($l(t[n>>2]|0))}function A2(e,n){return e=e|0,n=n|0,+ +S(tu(t[e>>2]|0,n))}function dd(e,n){return e=e|0,n=n|0,+ +S(Zr(t[e>>2]|0,n))}function Qc(e,n){return e=e|0,n=n|0,+ +S(ho(t[e>>2]|0,n))}function Jc(){return Pa()|0}function Ws(){O2(),va(),Zc(),vc(),mc(),pd()}function O2(){E7(11713,4938,1)}function va(){UA(10448)}function Zc(){EA(10408)}function vc(){qR(10324)}function mc(){nE(10096)}function pd(){Eh(9132)}function Eh(e){e=e|0;var n=0,r=0,u=0,s=0,a=0,v=0,w=0,T=0,L=0,M=0,b=0,X=0,Be=0,Te=0,ye=0,Ze=0,Ye=0,ct=0,ke=0,Ie=0,Zt=0,Br=0,Pn=0,gn=0,_r=0,Pr=0,kn=0,uu=0,os=0,ls=0,ss=0,ea=0,t2=0,n2=0,uf=0,r2=0,Fc=0,Pc=0,i2=0,u2=0,o2=0,pi=0,of=0,l2=0,Yf=0,s2=0,a2=0,Ic=0,bc=0,Kf=0,ql=0,La=0,Ns=0,lf=0,b1=0,B1=0,Bc=0,U1=0,j1=0,Wl=0,El=0,sf=0,hu=0,z1=0,as=0,Xf=0,fs=0,Qf=0,H1=0,q1=0,Jf=0,Vl=0,af=0,W1=0,V1=0,G1=0,Sr=0,bu=0,Dl=0,cs=0,Gl=0,Or=0,Bn=0,ff=0;n=y,y=y+672|0,r=n+656|0,ff=n+648|0,Bn=n+640|0,Or=n+632|0,Gl=n+624|0,cs=n+616|0,Dl=n+608|0,bu=n+600|0,Sr=n+592|0,G1=n+584|0,V1=n+576|0,W1=n+568|0,af=n+560|0,Vl=n+552|0,Jf=n+544|0,q1=n+536|0,H1=n+528|0,Qf=n+520|0,fs=n+512|0,Xf=n+504|0,as=n+496|0,z1=n+488|0,hu=n+480|0,sf=n+472|0,El=n+464|0,Wl=n+456|0,j1=n+448|0,U1=n+440|0,Bc=n+432|0,B1=n+424|0,b1=n+416|0,lf=n+408|0,Ns=n+400|0,La=n+392|0,ql=n+384|0,Kf=n+376|0,bc=n+368|0,Ic=n+360|0,a2=n+352|0,s2=n+344|0,Yf=n+336|0,l2=n+328|0,of=n+320|0,pi=n+312|0,o2=n+304|0,u2=n+296|0,i2=n+288|0,Pc=n+280|0,Fc=n+272|0,r2=n+264|0,uf=n+256|0,n2=n+248|0,t2=n+240|0,ea=n+232|0,ss=n+224|0,ls=n+216|0,os=n+208|0,uu=n+200|0,kn=n+192|0,Pr=n+184|0,_r=n+176|0,gn=n+168|0,Pn=n+160|0,Br=n+152|0,Zt=n+144|0,Ie=n+136|0,ke=n+128|0,ct=n+120|0,Ye=n+112|0,Ze=n+104|0,ye=n+96|0,Te=n+88|0,Be=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808,r)|0,y=n}function Tf(e,n){e=e|0,n=n|0;var r=0;r=rf()|0,t[e>>2]=r,Vo(r,n),Zd(t[e>>2]|0)}function $c(e,n,r){return e=e|0,n=n|0,r=r|0,Mt(e,Fr(n)|0,r,0),e|0}function Dh(e,n,r){return e=e|0,n=n|0,r=r|0,d(e,Fr(n)|0,r,0),e|0}function sm(e,n,r){return e=e|0,n=n|0,r=r|0,Q4(e,Fr(n)|0,r,0),e|0}function Vs(e,n,r){e=e|0,n=n|0,r=r|0;var u=0,s=0,a=0,v=0;return u=y,y=y+16|0,s=u+8|0,a=u,v=t[r+4>>2]|0,t[a>>2]=t[r>>2],t[a+4>>2]=v,t[s>>2]=t[a>>2],t[s+4>>2]=t[a+4>>2],H4(e,n,s),y=u,e|0}function ma(e,n,r){e=e|0,n=n|0,r=r|0;var u=0,s=0,a=0,v=0;return u=y,y=y+16|0,s=u+8|0,a=u,v=t[r+4>>2]|0,t[a>>2]=t[r>>2],t[a+4>>2]=v,t[s>>2]=t[a>>2],t[s+4>>2]=t[a+4>>2],zl(e,n,s),y=u,e|0}function iu(e,n,r){e=e|0,n=n|0,r=r|0;var u=0,s=0,a=0,v=0;return u=y,y=y+16|0,s=u+8|0,a=u,v=t[r+4>>2]|0,t[a>>2]=t[r>>2],t[a+4>>2]=v,t[s>>2]=t[a>>2],t[s+4>>2]=t[a+4>>2],p(e,n,s),y=u,e|0}function M0(e,n,r){e=e|0,n=n|0,r=r|0;var u=0,s=0,a=0,v=0;return u=y,y=y+16|0,s=u+8|0,a=u,v=t[r+4>>2]|0,t[a>>2]=t[r>>2],t[a+4>>2]=v,t[s>>2]=t[a>>2],t[s+4>>2]=t[a+4>>2],Rv(e,n,s),y=u,e|0}function u0(e,n,r){e=e|0,n=n|0,r=r|0;var u=0,s=0,a=0,v=0;return u=y,y=y+16|0,s=u+8|0,a=u,v=t[r+4>>2]|0,t[a>>2]=t[r>>2],t[a+4>>2]=v,t[s>>2]=t[a>>2],t[s+4>>2]=t[a+4>>2],ny(e,n,s),y=u,e|0}function ns(e,n,r){e=e|0,n=n|0,r=r|0;var u=0,s=0,a=0,v=0;return u=y,y=y+16|0,s=u+8|0,a=u,v=t[r+4>>2]|0,t[a>>2]=t[r>>2],t[a+4>>2]=v,t[s>>2]=t[a>>2],t[s+4>>2]=t[a+4>>2],Gd(e,n,s),y=u,e|0}function Ya(e,n,r){e=e|0,n=n|0,r=r|0;var u=0,s=0,a=0,v=0;return u=y,y=y+16|0,s=u+8|0,a=u,v=t[r+4>>2]|0,t[a>>2]=t[r>>2],t[a+4>>2]=v,t[s>>2]=t[a>>2],t[s+4>>2]=t[a+4>>2],Vd(e,n,s),y=u,e|0}function uo(e,n,r){e=e|0,n=n|0,r=r|0;var u=0,s=0,a=0,v=0;return u=y,y=y+16|0,s=u+8|0,a=u,v=t[r+4>>2]|0,t[a>>2]=t[r>>2],t[a+4>>2]=v,t[s>>2]=t[a>>2],t[s+4>>2]=t[a+4>>2],k0(e,n,s),y=u,e|0}function fl(e,n,r){e=e|0,n=n|0,r=r|0;var u=0,s=0,a=0,v=0;return u=y,y=y+16|0,s=u+8|0,a=u,v=t[r+4>>2]|0,t[a>>2]=t[r>>2],t[a+4>>2]=v,t[s>>2]=t[a>>2],t[s+4>>2]=t[a+4>>2],Dp(e,n,s),y=u,e|0}function yc(e,n,r){e=e|0,n=n|0,r=r|0;var u=0,s=0,a=0,v=0;return u=y,y=y+16|0,s=u+8|0,a=u,v=t[r+4>>2]|0,t[a>>2]=t[r>>2],t[a+4>>2]=v,t[s>>2]=t[a>>2],t[s+4>>2]=t[a+4>>2],bm(e,n,s),y=u,e|0}function M2(e,n,r){e=e|0,n=n|0,r=r|0;var u=0,s=0,a=0,v=0;return u=y,y=y+16|0,s=u+8|0,a=u,v=t[r+4>>2]|0,t[a>>2]=t[r>>2],t[a+4>>2]=v,t[s>>2]=t[a>>2],t[s+4>>2]=t[a+4>>2],o0(e,n,s),y=u,e|0}function wh(e,n,r){e=e|0,n=n|0,r=r|0;var u=0,s=0,a=0,v=0;return u=y,y=y+16|0,s=u+8|0,a=u,v=t[r+4>>2]|0,t[a>>2]=t[r>>2],t[a+4>>2]=v,t[s>>2]=t[a>>2],t[s+4>>2]=t[a+4>>2],Ad(e,n,s),y=u,e|0}function Cf(e,n,r){e=e|0,n=n|0,r=r|0;var u=0,s=0,a=0,v=0;return u=y,y=y+16|0,s=u+8|0,a=u,v=t[r+4>>2]|0,t[a>>2]=t[r>>2],t[a+4>>2]=v,t[s>>2]=t[a>>2],t[s+4>>2]=t[a+4>>2],Am(e,n,s),y=u,e|0}function xf(e,n,r){e=e|0,n=n|0,r=r|0;var u=0,s=0,a=0,v=0;return u=y,y=y+16|0,s=u+8|0,a=u,v=t[r+4>>2]|0,t[a>>2]=t[r>>2],t[a+4>>2]=v,t[s>>2]=t[a>>2],t[s+4>>2]=t[a+4>>2],$2(e,n,s),y=u,e|0}function e1(e,n,r){e=e|0,n=n|0,r=r|0;var u=0,s=0,a=0,v=0;return u=y,y=y+16|0,s=u+8|0,a=u,v=t[r+4>>2]|0,t[a>>2]=t[r>>2],t[a+4>>2]=v,t[s>>2]=t[a>>2],t[s+4>>2]=t[a+4>>2],y1(e,n,s),y=u,e|0}function Nl(e,n,r){e=e|0,n=n|0,r=r|0;var u=0,s=0,a=0,v=0;return u=y,y=y+16|0,s=u+8|0,a=u,v=t[r+4>>2]|0,t[a>>2]=t[r>>2],t[a+4>>2]=v,t[s>>2]=t[a>>2],t[s+4>>2]=t[a+4>>2],Za(e,n,s),y=u,e|0}function t1(e,n,r){e=e|0,n=n|0,r=r|0;var u=0,s=0,a=0,v=0;return u=y,y=y+16|0,s=u+8|0,a=u,v=t[r+4>>2]|0,t[a>>2]=t[r>>2],t[a+4>>2]=v,t[s>>2]=t[a>>2],t[s+4>>2]=t[a+4>>2],B2(e,n,s),y=u,e|0}function ya(e,n,r){e=e|0,n=n|0,r=r|0;var u=0,s=0,a=0,v=0;return u=y,y=y+16|0,s=u+8|0,a=u,v=t[r+4>>2]|0,t[a>>2]=t[r>>2],t[a+4>>2]=v,t[s>>2]=t[a>>2],t[s+4>>2]=t[a+4>>2],L2(e,n,s),y=u,e|0}function hd(e,n,r){e=e|0,n=n|0,r=r|0;var u=0,s=0,a=0,v=0;return u=y,y=y+16|0,s=u+8|0,a=u,v=t[r+4>>2]|0,t[a>>2]=t[r>>2],t[a+4>>2]=v,t[s>>2]=t[a>>2],t[s+4>>2]=t[a+4>>2],vd(e,n,s),y=u,e|0}function vd(e,n,r){e=e|0,n=n|0,r=r|0;var u=0,s=0,a=0,v=0,w=0;u=y,y=y+16|0,s=u+8|0,a=u,w=t[r>>2]|0,v=t[r+4>>2]|0,r=Fr(n)|0,t[a>>2]=w,t[a+4>>2]=v,t[s>>2]=t[a>>2],t[s+4>>2]=t[a+4>>2],ga(e,r,s,1),y=u}function Fr(e){return e=e|0,e|0}function ga(e,n,r,u){e=e|0,n=n|0,r=r|0,u=u|0;var s=0,a=0,v=0,w=0,T=0,L=0,M=0;s=y,y=y+32|0,a=s+16|0,M=s+8|0,w=s,L=t[r>>2]|0,T=t[r+4>>2]|0,v=t[e>>2]|0,e=k2()|0,t[M>>2]=L,t[M+4>>2]=T,t[a>>2]=t[M>>2],t[a+4>>2]=t[M+4>>2],r=n1(a)|0,t[w>>2]=L,t[w+4>>2]=T,t[a>>2]=t[w>>2],t[a+4>>2]=t[w+4>>2],wi(v,n,e,r,md(a,u)|0,u),y=s}function k2(){var e=0,n=0;if(h[7616]|0||(cl(9136),Wt(24,9136,ge|0)|0,n=7616,t[n>>2]=1,t[n+4>>2]=0),!(sr(9136)|0)){e=9136,n=e+36|0;do t[e>>2]=0,e=e+4|0;while((e|0)<(n|0));cl(9136)}return 9136}function n1(e){return e=e|0,0}function md(e,n){e=e|0,n=n|0;var r=0,u=0,s=0,a=0,v=0,w=0,T=0,L=0,M=0,b=0;return M=y,y=y+32|0,s=M+24|0,v=M+16|0,w=M,T=M+8|0,a=t[e>>2]|0,u=t[e+4>>2]|0,t[w>>2]=a,t[w+4>>2]=u,b=k2()|0,L=b+24|0,e=hn(n,4)|0,t[T>>2]=e,n=b+28|0,r=t[n>>2]|0,r>>>0<(t[b+32>>2]|0)>>>0?(t[v>>2]=a,t[v+4>>2]=u,t[s>>2]=t[v>>2],t[s+4>>2]=t[v+4>>2],Rf(r,s,e),e=(t[n>>2]|0)+12|0,t[n>>2]=e):(Af(L,w,T),e=t[n>>2]|0),y=M,((e-(t[L>>2]|0)|0)/12|0)+-1|0}function wi(e,n,r,u,s,a){e=e|0,n=n|0,r=r|0,u=u|0,s=s|0,a=a|0;var v=0,w=0,T=0,L=0,M=0,b=0,X=0,Be=0;v=y,y=y+32|0,X=v+24|0,b=v+20|0,T=v+16|0,M=v+12|0,L=v+8|0,w=v+4|0,Be=v,t[b>>2]=n,t[T>>2]=r,t[M>>2]=u,t[L>>2]=s,t[w>>2]=a,a=e+28|0,t[Be>>2]=t[a>>2],t[X>>2]=t[Be>>2],N2(e+24|0,X,b,M,L,T,w)|0,t[a>>2]=t[t[a>>2]>>2],y=v}function N2(e,n,r,u,s,a,v){return e=e|0,n=n|0,r=r|0,u=u|0,s=s|0,a=a|0,v=v|0,e=am(n)|0,n=pn(24)|0,yd(n+4|0,t[r>>2]|0,t[u>>2]|0,t[s>>2]|0,t[a>>2]|0,t[v>>2]|0),t[n>>2]=t[e>>2],t[e>>2]=n,n|0}function am(e){return e=e|0,t[e>>2]|0}function yd(e,n,r,u,s,a){e=e|0,n=n|0,r=r|0,u=u|0,s=s|0,a=a|0,t[e>>2]=n,t[e+4>>2]=r,t[e+8>>2]=u,t[e+12>>2]=s,t[e+16>>2]=a}function hn(e,n){return e=e|0,n=n|0,n|e|0}function Rf(e,n,r){e=e|0,n=n|0,r=r|0;var u=0;u=t[n+4>>2]|0,t[e>>2]=t[n>>2],t[e+4>>2]=u,t[e+8>>2]=r}function Af(e,n,r){e=e|0,n=n|0,r=r|0;var u=0,s=0,a=0,v=0,w=0,T=0,L=0,M=0,b=0,X=0;if(L=y,y=y+48|0,u=L+32|0,v=L+24|0,w=L,T=e+4|0,s=(((t[T>>2]|0)-(t[e>>2]|0)|0)/12|0)+1|0,a=fm(e)|0,a>>>0>>0)di(e);else{M=t[e>>2]|0,X=((t[e+8>>2]|0)-M|0)/12|0,b=X<<1,Of(w,X>>>0>>1>>>0?b>>>0>>0?s:b:a,((t[T>>2]|0)-M|0)/12|0,e+8|0),T=w+8|0,a=t[T>>2]|0,s=t[n+4>>2]|0,r=t[r>>2]|0,t[v>>2]=t[n>>2],t[v+4>>2]=s,t[u>>2]=t[v>>2],t[u+4>>2]=t[v+4>>2],Rf(a,u,r),t[T>>2]=(t[T>>2]|0)+12,Sh(e,w),cm(w),y=L;return}}function fm(e){return e=e|0,357913941}function Of(e,n,r,u){e=e|0,n=n|0,r=r|0,u=u|0;var s=0;t[e+12>>2]=0,t[e+16>>2]=u;do if(n)if(n>>>0>357913941)$n();else{s=pn(n*12|0)|0;break}else s=0;while(0);t[e>>2]=s,u=s+(r*12|0)|0,t[e+8>>2]=u,t[e+4>>2]=u,t[e+12>>2]=s+(n*12|0)}function Sh(e,n){e=e|0,n=n|0;var r=0,u=0,s=0,a=0,v=0;u=t[e>>2]|0,v=e+4|0,a=n+4|0,s=(t[v>>2]|0)-u|0,r=(t[a>>2]|0)+(((s|0)/-12|0)*12|0)|0,t[a>>2]=r,(s|0)>0?(gr(r|0,u|0,s|0)|0,u=a,r=t[a>>2]|0):u=a,a=t[e>>2]|0,t[e>>2]=r,t[u>>2]=a,a=n+8|0,s=t[v>>2]|0,t[v>>2]=t[a>>2],t[a>>2]=s,a=e+8|0,v=n+12|0,e=t[a>>2]|0,t[a>>2]=t[v>>2],t[v>>2]=e,t[n>>2]=t[u>>2]}function cm(e){e=e|0;var n=0,r=0,u=0;n=t[e+4>>2]|0,r=e+8|0,u=t[r>>2]|0,(u|0)!=(n|0)&&(t[r>>2]=u+(~(((u+-12-n|0)>>>0)/12|0)*12|0)),e=t[e>>2]|0,e|0&&Et(e)}function cl(e){e=e|0,qo(e)}function r1(e){e=e|0,qn(e+24|0)}function sr(e){return e=e|0,t[e>>2]|0}function qn(e){e=e|0;var n=0,r=0,u=0;r=t[e>>2]|0,u=r,r|0&&(e=e+4|0,n=t[e>>2]|0,(n|0)!=(r|0)&&(t[e>>2]=n+(~(((n+-12-u|0)>>>0)/12|0)*12|0)),Et(r))}function qo(e){e=e|0;var n=0;n=yr()|0,jn(e,2,3,n,Vn()|0,0),t[e+24>>2]=0,t[e+28>>2]=0,t[e+32>>2]=0}function yr(){return 9228}function Vn(){return 1140}function dl(e,n){e=e|0,n=n|0;var r=0,u=0,s=0,a=0;return r=y,y=y+16|0,u=r+8|0,s=r,a=Eo(e)|0,e=t[a+4>>2]|0,t[s>>2]=t[a>>2],t[s+4>>2]=e,t[u>>2]=t[s>>2],t[u+4>>2]=t[s+4>>2],n=gc(n,u)|0,y=r,n|0}function jn(e,n,r,u,s,a){e=e|0,n=n|0,r=r|0,u=u|0,s=s|0,a=a|0,t[e>>2]=n,t[e+4>>2]=r,t[e+8>>2]=u,t[e+12>>2]=s,t[e+16>>2]=a}function Eo(e){return e=e|0,(t[(k2()|0)+24>>2]|0)+(e*12|0)|0}function gc(e,n){e=e|0,n=n|0;var r=0,u=0,s=0;return s=y,y=y+48|0,u=s,r=t[n>>2]|0,n=t[n+4>>2]|0,e=e+(n>>1)|0,n&1&&(r=t[(t[e>>2]|0)+r>>2]|0),I1[r&31](u,e),u=oo(u)|0,y=s,u|0}function oo(e){e=e|0;var n=0,r=0,u=0,s=0;return s=y,y=y+32|0,n=s+12|0,r=s,u=Pu(Ka()|0)|0,u?(rs(n,u),Mf(r,n),_c(e,r),e=Cs(n)|0):e=Ec(e)|0,y=s,e|0}function Ka(){var e=0;return h[7632]|0||(Nf(9184),Wt(25,9184,ge|0)|0,e=7632,t[e>>2]=1,t[e+4>>2]=0),9184}function Pu(e){return e=e|0,t[e+36>>2]|0}function rs(e,n){e=e|0,n=n|0,t[e>>2]=n,t[e+4>>2]=e,t[e+8>>2]=0}function Mf(e,n){e=e|0,n=n|0,t[e>>2]=t[n>>2],t[e+4>>2]=t[n+4>>2],t[e+8>>2]=0}function _c(e,n){e=e|0,n=n|0,lo(n,e,e+8|0,e+16|0,e+24|0,e+32|0,e+40|0)|0}function Cs(e){return e=e|0,t[(t[e+4>>2]|0)+8>>2]|0}function Ec(e){e=e|0;var n=0,r=0,u=0,s=0,a=0,v=0,w=0,T=0;T=y,y=y+16|0,r=T+4|0,u=T,s=Oa(8)|0,a=s,v=pn(48)|0,w=v,n=w+48|0;do t[w>>2]=t[e>>2],w=w+4|0,e=e+4|0;while((w|0)<(n|0));return n=a+4|0,t[n>>2]=v,w=pn(8)|0,v=t[n>>2]|0,t[u>>2]=0,t[r>>2]=t[u>>2],Th(w,v,r),t[s>>2]=w,y=T,a|0}function Th(e,n,r){e=e|0,n=n|0,r=r|0,t[e>>2]=n,r=pn(16)|0,t[r+4>>2]=0,t[r+8>>2]=0,t[r>>2]=1092,t[r+12>>2]=n,t[e+4>>2]=r}function cn(e){e=e|0,Uv(e),Et(e)}function is(e){e=e|0,e=t[e+12>>2]|0,e|0&&Et(e)}function Do(e){e=e|0,Et(e)}function lo(e,n,r,u,s,a,v){return e=e|0,n=n|0,r=r|0,u=u|0,s=s|0,a=a|0,v=v|0,a=Ji(t[e>>2]|0,n,r,u,s,a,v)|0,v=e+4|0,t[(t[v>>2]|0)+8>>2]=a,t[(t[v>>2]|0)+8>>2]|0}function Ji(e,n,r,u,s,a,v){e=e|0,n=n|0,r=r|0,u=u|0,s=s|0,a=a|0,v=v|0;var w=0,T=0;return w=y,y=y+16|0,T=w,Ma(T),e=go(e)|0,v=Gr(e,+j[n>>3],+j[r>>3],+j[u>>3],+j[s>>3],+j[a>>3],+j[v>>3])|0,ka(T),y=w,v|0}function Gr(e,n,r,u,s,a,v){e=e|0,n=+n,r=+r,u=+u,s=+s,a=+a,v=+v;var w=0;return w=_o(kf()|0)|0,n=+kl(n),r=+kl(r),u=+kl(u),s=+kl(s),a=+kl(a),d0(0,w|0,e|0,+n,+r,+u,+s,+a,+ +kl(v))|0}function kf(){var e=0;return h[7624]|0||(dm(9172),e=7624,t[e>>2]=1,t[e+4>>2]=0),9172}function dm(e){e=e|0,ll(e,Ll()|0,6)}function Ll(){return 1112}function Nf(e){e=e|0,Xa(e)}function Lf(e){e=e|0,gd(e+24|0),_d(e+16|0)}function gd(e){e=e|0,i1(e)}function _d(e){e=e|0,Dc(e)}function Dc(e){e=e|0;var n=0,r=0;if(n=t[e>>2]|0,n|0)do r=n,n=t[n>>2]|0,Et(r);while((n|0)!=0);t[e>>2]=0}function i1(e){e=e|0;var n=0,r=0;if(n=t[e>>2]|0,n|0)do r=n,n=t[n>>2]|0,Et(r);while((n|0)!=0);t[e>>2]=0}function Xa(e){e=e|0;var n=0;t[e+16>>2]=0,t[e+20>>2]=0,n=e+24|0,t[n>>2]=0,t[e+28>>2]=n,t[e+36>>2]=0,h[e+40>>0]=0,h[e+41>>0]=0}function L2(e,n,r){e=e|0,n=n|0,r=r|0;var u=0,s=0,a=0,v=0,w=0;u=y,y=y+16|0,s=u+8|0,a=u,w=t[r>>2]|0,v=t[r+4>>2]|0,r=Fr(n)|0,t[a>>2]=w,t[a+4>>2]=v,t[s>>2]=t[a>>2],t[s+4>>2]=t[a+4>>2],Ed(e,r,s,0),y=u}function Ed(e,n,r,u){e=e|0,n=n|0,r=r|0,u=u|0;var s=0,a=0,v=0,w=0,T=0,L=0,M=0;s=y,y=y+32|0,a=s+16|0,M=s+8|0,w=s,L=t[r>>2]|0,T=t[r+4>>2]|0,v=t[e>>2]|0,e=u1()|0,t[M>>2]=L,t[M+4>>2]=T,t[a>>2]=t[M>>2],t[a+4>>2]=t[M+4>>2],r=Ff(a)|0,t[w>>2]=L,t[w+4>>2]=T,t[a>>2]=t[w>>2],t[a+4>>2]=t[w+4>>2],wi(v,n,e,r,o1(a,u)|0,u),y=s}function u1(){var e=0,n=0;if(h[7640]|0||(Fl(9232),Wt(26,9232,ge|0)|0,n=7640,t[n>>2]=1,t[n+4>>2]=0),!(sr(9232)|0)){e=9232,n=e+36|0;do t[e>>2]=0,e=e+4|0;while((e|0)<(n|0));Fl(9232)}return 9232}function Ff(e){return e=e|0,0}function o1(e,n){e=e|0,n=n|0;var r=0,u=0,s=0,a=0,v=0,w=0,T=0,L=0,M=0,b=0;return M=y,y=y+32|0,s=M+24|0,v=M+16|0,w=M,T=M+8|0,a=t[e>>2]|0,u=t[e+4>>2]|0,t[w>>2]=a,t[w+4>>2]=u,b=u1()|0,L=b+24|0,e=hn(n,4)|0,t[T>>2]=e,n=b+28|0,r=t[n>>2]|0,r>>>0<(t[b+32>>2]|0)>>>0?(t[v>>2]=a,t[v+4>>2]=u,t[s>>2]=t[v>>2],t[s+4>>2]=t[v+4>>2],Qa(r,s,e),e=(t[n>>2]|0)+12|0,t[n>>2]=e):(l1(L,w,T),e=t[n>>2]|0),y=M,((e-(t[L>>2]|0)|0)/12|0)+-1|0}function Qa(e,n,r){e=e|0,n=n|0,r=r|0;var u=0;u=t[n+4>>2]|0,t[e>>2]=t[n>>2],t[e+4>>2]=u,t[e+8>>2]=r}function l1(e,n,r){e=e|0,n=n|0,r=r|0;var u=0,s=0,a=0,v=0,w=0,T=0,L=0,M=0,b=0,X=0;if(L=y,y=y+48|0,u=L+32|0,v=L+24|0,w=L,T=e+4|0,s=(((t[T>>2]|0)-(t[e>>2]|0)|0)/12|0)+1|0,a=F2(e)|0,a>>>0>>0)di(e);else{M=t[e>>2]|0,X=((t[e+8>>2]|0)-M|0)/12|0,b=X<<1,Dd(w,X>>>0>>1>>>0?b>>>0>>0?s:b:a,((t[T>>2]|0)-M|0)/12|0,e+8|0),T=w+8|0,a=t[T>>2]|0,s=t[n+4>>2]|0,r=t[r>>2]|0,t[v>>2]=t[n>>2],t[v+4>>2]=s,t[u>>2]=t[v>>2],t[u+4>>2]=t[v+4>>2],Qa(a,u,r),t[T>>2]=(t[T>>2]|0)+12,wc(e,w),s1(w),y=L;return}}function F2(e){return e=e|0,357913941}function Dd(e,n,r,u){e=e|0,n=n|0,r=r|0,u=u|0;var s=0;t[e+12>>2]=0,t[e+16>>2]=u;do if(n)if(n>>>0>357913941)$n();else{s=pn(n*12|0)|0;break}else s=0;while(0);t[e>>2]=s,u=s+(r*12|0)|0,t[e+8>>2]=u,t[e+4>>2]=u,t[e+12>>2]=s+(n*12|0)}function wc(e,n){e=e|0,n=n|0;var r=0,u=0,s=0,a=0,v=0;u=t[e>>2]|0,v=e+4|0,a=n+4|0,s=(t[v>>2]|0)-u|0,r=(t[a>>2]|0)+(((s|0)/-12|0)*12|0)|0,t[a>>2]=r,(s|0)>0?(gr(r|0,u|0,s|0)|0,u=a,r=t[a>>2]|0):u=a,a=t[e>>2]|0,t[e>>2]=r,t[u>>2]=a,a=n+8|0,s=t[v>>2]|0,t[v>>2]=t[a>>2],t[a>>2]=s,a=e+8|0,v=n+12|0,e=t[a>>2]|0,t[a>>2]=t[v>>2],t[v>>2]=e,t[n>>2]=t[u>>2]}function s1(e){e=e|0;var n=0,r=0,u=0;n=t[e+4>>2]|0,r=e+8|0,u=t[r>>2]|0,(u|0)!=(n|0)&&(t[r>>2]=u+(~(((u+-12-n|0)>>>0)/12|0)*12|0)),e=t[e>>2]|0,e|0&&Et(e)}function Fl(e){e=e|0,P2(e)}function Ea(e){e=e|0,Ch(e+24|0)}function Ch(e){e=e|0;var n=0,r=0,u=0;r=t[e>>2]|0,u=r,r|0&&(e=e+4|0,n=t[e>>2]|0,(n|0)!=(r|0)&&(t[e>>2]=n+(~(((n+-12-u|0)>>>0)/12|0)*12|0)),Et(r))}function P2(e){e=e|0;var n=0;n=yr()|0,jn(e,2,1,n,I2()|0,3),t[e+24>>2]=0,t[e+28>>2]=0,t[e+32>>2]=0}function I2(){return 1144}function xh(e,n,r,u,s){e=e|0,n=n|0,r=+r,u=+u,s=s|0;var a=0,v=0,w=0,T=0;a=y,y=y+16|0,v=a+8|0,w=a,T=pm(e)|0,e=t[T+4>>2]|0,t[w>>2]=t[T>>2],t[w+4>>2]=e,t[v>>2]=t[w>>2],t[v+4>>2]=t[w+4>>2],Rh(n,v,r,u,s),y=a}function pm(e){return e=e|0,(t[(u1()|0)+24>>2]|0)+(e*12|0)|0}function Rh(e,n,r,u,s){e=e|0,n=n|0,r=+r,u=+u,s=s|0;var a=0,v=0,w=0,T=0,L=0;L=y,y=y+16|0,v=L+2|0,w=L+1|0,T=L,a=t[n>>2]|0,n=t[n+4>>2]|0,e=e+(n>>1)|0,n&1&&(a=t[(t[e>>2]|0)+a>>2]|0),Pl(v,r),r=+us(v,r),Pl(w,u),u=+us(w,u),xs(T,s),T=Gs(T,s)|0,L8[a&1](e,r,u,T),y=L}function Pl(e,n){e=e|0,n=+n}function us(e,n){return e=e|0,n=+n,+ +Ah(n)}function xs(e,n){e=e|0,n=n|0}function Gs(e,n){return e=e|0,n=n|0,b2(n)|0}function b2(e){return e=e|0,e|0}function Ah(e){return e=+e,+e}function B2(e,n,r){e=e|0,n=n|0,r=r|0;var u=0,s=0,a=0,v=0,w=0;u=y,y=y+16|0,s=u+8|0,a=u,w=t[r>>2]|0,v=t[r+4>>2]|0,r=Fr(n)|0,t[a>>2]=w,t[a+4>>2]=v,t[s>>2]=t[a>>2],t[s+4>>2]=t[a+4>>2],U2(e,r,s,1),y=u}function U2(e,n,r,u){e=e|0,n=n|0,r=r|0,u=u|0;var s=0,a=0,v=0,w=0,T=0,L=0,M=0;s=y,y=y+32|0,a=s+16|0,M=s+8|0,w=s,L=t[r>>2]|0,T=t[r+4>>2]|0,v=t[e>>2]|0,e=a1()|0,t[M>>2]=L,t[M+4>>2]=T,t[a>>2]=t[M>>2],t[a+4>>2]=t[M+4>>2],r=f1(a)|0,t[w>>2]=L,t[w+4>>2]=T,t[a>>2]=t[w>>2],t[a+4>>2]=t[w+4>>2],wi(v,n,e,r,Oh(a,u)|0,u),y=s}function a1(){var e=0,n=0;if(h[7648]|0||(c1(9268),Wt(27,9268,ge|0)|0,n=7648,t[n>>2]=1,t[n+4>>2]=0),!(sr(9268)|0)){e=9268,n=e+36|0;do t[e>>2]=0,e=e+4|0;while((e|0)<(n|0));c1(9268)}return 9268}function f1(e){return e=e|0,0}function Oh(e,n){e=e|0,n=n|0;var r=0,u=0,s=0,a=0,v=0,w=0,T=0,L=0,M=0,b=0;return M=y,y=y+32|0,s=M+24|0,v=M+16|0,w=M,T=M+8|0,a=t[e>>2]|0,u=t[e+4>>2]|0,t[w>>2]=a,t[w+4>>2]=u,b=a1()|0,L=b+24|0,e=hn(n,4)|0,t[T>>2]=e,n=b+28|0,r=t[n>>2]|0,r>>>0<(t[b+32>>2]|0)>>>0?(t[v>>2]=a,t[v+4>>2]=u,t[s>>2]=t[v>>2],t[s+4>>2]=t[v+4>>2],j2(r,s,e),e=(t[n>>2]|0)+12|0,t[n>>2]=e):(z2(L,w,T),e=t[n>>2]|0),y=M,((e-(t[L>>2]|0)|0)/12|0)+-1|0}function j2(e,n,r){e=e|0,n=n|0,r=r|0;var u=0;u=t[n+4>>2]|0,t[e>>2]=t[n>>2],t[e+4>>2]=u,t[e+8>>2]=r}function z2(e,n,r){e=e|0,n=n|0,r=r|0;var u=0,s=0,a=0,v=0,w=0,T=0,L=0,M=0,b=0,X=0;if(L=y,y=y+48|0,u=L+32|0,v=L+24|0,w=L,T=e+4|0,s=(((t[T>>2]|0)-(t[e>>2]|0)|0)/12|0)+1|0,a=Rs(e)|0,a>>>0>>0)di(e);else{M=t[e>>2]|0,X=((t[e+8>>2]|0)-M|0)/12|0,b=X<<1,Ja(w,X>>>0>>1>>>0?b>>>0>>0?s:b:a,((t[T>>2]|0)-M|0)/12|0,e+8|0),T=w+8|0,a=t[T>>2]|0,s=t[n+4>>2]|0,r=t[r>>2]|0,t[v>>2]=t[n>>2],t[v+4>>2]=s,t[u>>2]=t[v>>2],t[u+4>>2]=t[v+4>>2],j2(a,u,r),t[T>>2]=(t[T>>2]|0)+12,Mh(e,w),du(w),y=L;return}}function Rs(e){return e=e|0,357913941}function Ja(e,n,r,u){e=e|0,n=n|0,r=r|0,u=u|0;var s=0;t[e+12>>2]=0,t[e+16>>2]=u;do if(n)if(n>>>0>357913941)$n();else{s=pn(n*12|0)|0;break}else s=0;while(0);t[e>>2]=s,u=s+(r*12|0)|0,t[e+8>>2]=u,t[e+4>>2]=u,t[e+12>>2]=s+(n*12|0)}function Mh(e,n){e=e|0,n=n|0;var r=0,u=0,s=0,a=0,v=0;u=t[e>>2]|0,v=e+4|0,a=n+4|0,s=(t[v>>2]|0)-u|0,r=(t[a>>2]|0)+(((s|0)/-12|0)*12|0)|0,t[a>>2]=r,(s|0)>0?(gr(r|0,u|0,s|0)|0,u=a,r=t[a>>2]|0):u=a,a=t[e>>2]|0,t[e>>2]=r,t[u>>2]=a,a=n+8|0,s=t[v>>2]|0,t[v>>2]=t[a>>2],t[a>>2]=s,a=e+8|0,v=n+12|0,e=t[a>>2]|0,t[a>>2]=t[v>>2],t[v>>2]=e,t[n>>2]=t[u>>2]}function du(e){e=e|0;var n=0,r=0,u=0;n=t[e+4>>2]|0,r=e+8|0,u=t[r>>2]|0,(u|0)!=(n|0)&&(t[r>>2]=u+(~(((u+-12-n|0)>>>0)/12|0)*12|0)),e=t[e>>2]|0,e|0&&Et(e)}function c1(e){e=e|0,Il(e)}function kh(e){e=e|0,d1(e+24|0)}function d1(e){e=e|0;var n=0,r=0,u=0;r=t[e>>2]|0,u=r,r|0&&(e=e+4|0,n=t[e>>2]|0,(n|0)!=(r|0)&&(t[e>>2]=n+(~(((n+-12-u|0)>>>0)/12|0)*12|0)),Et(r))}function Il(e){e=e|0;var n=0;n=yr()|0,jn(e,2,4,n,Nh()|0,0),t[e+24>>2]=0,t[e+28>>2]=0,t[e+32>>2]=0}function Nh(){return 1160}function H2(e,n){e=e|0,n=n|0;var r=0,u=0,s=0,a=0;return r=y,y=y+16|0,u=r+8|0,s=r,a=Lh(e)|0,e=t[a+4>>2]|0,t[s>>2]=t[a>>2],t[s+4>>2]=e,t[u>>2]=t[s>>2],t[u+4>>2]=t[s+4>>2],n=p1(n,u)|0,y=r,n|0}function Lh(e){return e=e|0,(t[(a1()|0)+24>>2]|0)+(e*12|0)|0}function p1(e,n){e=e|0,n=n|0;var r=0;return r=t[n>>2]|0,n=t[n+4>>2]|0,e=e+(n>>1)|0,n&1&&(r=t[(t[e>>2]|0)+r>>2]|0),bl(Qp[r&31](e)|0)|0}function bl(e){return e=e|0,e&1|0}function Za(e,n,r){e=e|0,n=n|0,r=r|0;var u=0,s=0,a=0,v=0,w=0;u=y,y=y+16|0,s=u+8|0,a=u,w=t[r>>2]|0,v=t[r+4>>2]|0,r=Fr(n)|0,t[a>>2]=w,t[a+4>>2]=v,t[s>>2]=t[a>>2],t[s+4>>2]=t[a+4>>2],Da(e,r,s,0),y=u}function Da(e,n,r,u){e=e|0,n=n|0,r=r|0,u=u|0;var s=0,a=0,v=0,w=0,T=0,L=0,M=0;s=y,y=y+32|0,a=s+16|0,M=s+8|0,w=s,L=t[r>>2]|0,T=t[r+4>>2]|0,v=t[e>>2]|0,e=q2()|0,t[M>>2]=L,t[M+4>>2]=T,t[a>>2]=t[M>>2],t[a+4>>2]=t[M+4>>2],r=W2(a)|0,t[w>>2]=L,t[w+4>>2]=T,t[a>>2]=t[w>>2],t[a+4>>2]=t[w+4>>2],wi(v,n,e,r,hm(a,u)|0,u),y=s}function q2(){var e=0,n=0;if(h[7656]|0||(Ih(9304),Wt(28,9304,ge|0)|0,n=7656,t[n>>2]=1,t[n+4>>2]=0),!(sr(9304)|0)){e=9304,n=e+36|0;do t[e>>2]=0,e=e+4|0;while((e|0)<(n|0));Ih(9304)}return 9304}function W2(e){return e=e|0,0}function hm(e,n){e=e|0,n=n|0;var r=0,u=0,s=0,a=0,v=0,w=0,T=0,L=0,M=0,b=0;return M=y,y=y+32|0,s=M+24|0,v=M+16|0,w=M,T=M+8|0,a=t[e>>2]|0,u=t[e+4>>2]|0,t[w>>2]=a,t[w+4>>2]=u,b=q2()|0,L=b+24|0,e=hn(n,4)|0,t[T>>2]=e,n=b+28|0,r=t[n>>2]|0,r>>>0<(t[b+32>>2]|0)>>>0?(t[v>>2]=a,t[v+4>>2]=u,t[s>>2]=t[v>>2],t[s+4>>2]=t[v+4>>2],V2(r,s,e),e=(t[n>>2]|0)+12|0,t[n>>2]=e):(Fh(L,w,T),e=t[n>>2]|0),y=M,((e-(t[L>>2]|0)|0)/12|0)+-1|0}function V2(e,n,r){e=e|0,n=n|0,r=r|0;var u=0;u=t[n+4>>2]|0,t[e>>2]=t[n>>2],t[e+4>>2]=u,t[e+8>>2]=r}function Fh(e,n,r){e=e|0,n=n|0,r=r|0;var u=0,s=0,a=0,v=0,w=0,T=0,L=0,M=0,b=0,X=0;if(L=y,y=y+48|0,u=L+32|0,v=L+24|0,w=L,T=e+4|0,s=(((t[T>>2]|0)-(t[e>>2]|0)|0)/12|0)+1|0,a=Ph(e)|0,a>>>0>>0)di(e);else{M=t[e>>2]|0,X=((t[e+8>>2]|0)-M|0)/12|0,b=X<<1,G2(w,X>>>0>>1>>>0?b>>>0>>0?s:b:a,((t[T>>2]|0)-M|0)/12|0,e+8|0),T=w+8|0,a=t[T>>2]|0,s=t[n+4>>2]|0,r=t[r>>2]|0,t[v>>2]=t[n>>2],t[v+4>>2]=s,t[u>>2]=t[v>>2],t[u+4>>2]=t[v+4>>2],V2(a,u,r),t[T>>2]=(t[T>>2]|0)+12,vm(e,w),mm(w),y=L;return}}function Ph(e){return e=e|0,357913941}function G2(e,n,r,u){e=e|0,n=n|0,r=r|0,u=u|0;var s=0;t[e+12>>2]=0,t[e+16>>2]=u;do if(n)if(n>>>0>357913941)$n();else{s=pn(n*12|0)|0;break}else s=0;while(0);t[e>>2]=s,u=s+(r*12|0)|0,t[e+8>>2]=u,t[e+4>>2]=u,t[e+12>>2]=s+(n*12|0)}function vm(e,n){e=e|0,n=n|0;var r=0,u=0,s=0,a=0,v=0;u=t[e>>2]|0,v=e+4|0,a=n+4|0,s=(t[v>>2]|0)-u|0,r=(t[a>>2]|0)+(((s|0)/-12|0)*12|0)|0,t[a>>2]=r,(s|0)>0?(gr(r|0,u|0,s|0)|0,u=a,r=t[a>>2]|0):u=a,a=t[e>>2]|0,t[e>>2]=r,t[u>>2]=a,a=n+8|0,s=t[v>>2]|0,t[v>>2]=t[a>>2],t[a>>2]=s,a=e+8|0,v=n+12|0,e=t[a>>2]|0,t[a>>2]=t[v>>2],t[v>>2]=e,t[n>>2]=t[u>>2]}function mm(e){e=e|0;var n=0,r=0,u=0;n=t[e+4>>2]|0,r=e+8|0,u=t[r>>2]|0,(u|0)!=(n|0)&&(t[r>>2]=u+(~(((u+-12-n|0)>>>0)/12|0)*12|0)),e=t[e>>2]|0,e|0&&Et(e)}function Ih(e){e=e|0,h1(e)}function ym(e){e=e|0,Y2(e+24|0)}function Y2(e){e=e|0;var n=0,r=0,u=0;r=t[e>>2]|0,u=r,r|0&&(e=e+4|0,n=t[e>>2]|0,(n|0)!=(r|0)&&(t[e>>2]=n+(~(((n+-12-u|0)>>>0)/12|0)*12|0)),Et(r))}function h1(e){e=e|0;var n=0;n=yr()|0,jn(e,2,5,n,v1()|0,1),t[e+24>>2]=0,t[e+28>>2]=0,t[e+32>>2]=0}function v1(){return 1164}function m1(e,n,r){e=e|0,n=n|0,r=r|0;var u=0,s=0,a=0,v=0;u=y,y=y+16|0,s=u+8|0,a=u,v=wa(e)|0,e=t[v+4>>2]|0,t[a>>2]=t[v>>2],t[a+4>>2]=e,t[s>>2]=t[a>>2],t[s+4>>2]=t[a+4>>2],K2(n,s,r),y=u}function wa(e){return e=e|0,(t[(q2()|0)+24>>2]|0)+(e*12|0)|0}function K2(e,n,r){e=e|0,n=n|0,r=r|0;var u=0,s=0,a=0;a=y,y=y+16|0,s=a,u=t[n>>2]|0,n=t[n+4>>2]|0,e=e+(n>>1)|0,n&1&&(u=t[(t[e>>2]|0)+u>>2]|0),Ys(s,r),r=Ks(s,r)|0,I1[u&31](e,r),Xs(s),y=a}function Ys(e,n){e=e|0,n=n|0,X2(e,n)}function Ks(e,n){return e=e|0,n=n|0,e|0}function Xs(e){e=e|0,fa(e)}function X2(e,n){e=e|0,n=n|0,Sa(e,n)}function Sa(e,n){e=e|0,n=n|0,t[e>>2]=n}function y1(e,n,r){e=e|0,n=n|0,r=r|0;var u=0,s=0,a=0,v=0,w=0;u=y,y=y+16|0,s=u+8|0,a=u,w=t[r>>2]|0,v=t[r+4>>2]|0,r=Fr(n)|0,t[a>>2]=w,t[a+4>>2]=v,t[s>>2]=t[a>>2],t[s+4>>2]=t[a+4>>2],wd(e,r,s,0),y=u}function wd(e,n,r,u){e=e|0,n=n|0,r=r|0,u=u|0;var s=0,a=0,v=0,w=0,T=0,L=0,M=0;s=y,y=y+32|0,a=s+16|0,M=s+8|0,w=s,L=t[r>>2]|0,T=t[r+4>>2]|0,v=t[e>>2]|0,e=Sc()|0,t[M>>2]=L,t[M+4>>2]=T,t[a>>2]=t[M>>2],t[a+4>>2]=t[M+4>>2],r=Q2(a)|0,t[w>>2]=L,t[w+4>>2]=T,t[a>>2]=t[w>>2],t[a+4>>2]=t[w+4>>2],wi(v,n,e,r,wo(a,u)|0,u),y=s}function Sc(){var e=0,n=0;if(h[7664]|0||(Hh(9340),Wt(29,9340,ge|0)|0,n=7664,t[n>>2]=1,t[n+4>>2]=0),!(sr(9340)|0)){e=9340,n=e+36|0;do t[e>>2]=0,e=e+4|0;while((e|0)<(n|0));Hh(9340)}return 9340}function Q2(e){return e=e|0,0}function wo(e,n){e=e|0,n=n|0;var r=0,u=0,s=0,a=0,v=0,w=0,T=0,L=0,M=0,b=0;return M=y,y=y+32|0,s=M+24|0,v=M+16|0,w=M,T=M+8|0,a=t[e>>2]|0,u=t[e+4>>2]|0,t[w>>2]=a,t[w+4>>2]=u,b=Sc()|0,L=b+24|0,e=hn(n,4)|0,t[T>>2]=e,n=b+28|0,r=t[n>>2]|0,r>>>0<(t[b+32>>2]|0)>>>0?(t[v>>2]=a,t[v+4>>2]=u,t[s>>2]=t[v>>2],t[s+4>>2]=t[v+4>>2],bh(r,s,e),e=(t[n>>2]|0)+12|0,t[n>>2]=e):(Bh(L,w,T),e=t[n>>2]|0),y=M,((e-(t[L>>2]|0)|0)/12|0)+-1|0}function bh(e,n,r){e=e|0,n=n|0,r=r|0;var u=0;u=t[n+4>>2]|0,t[e>>2]=t[n>>2],t[e+4>>2]=u,t[e+8>>2]=r}function Bh(e,n,r){e=e|0,n=n|0,r=r|0;var u=0,s=0,a=0,v=0,w=0,T=0,L=0,M=0,b=0,X=0;if(L=y,y=y+48|0,u=L+32|0,v=L+24|0,w=L,T=e+4|0,s=(((t[T>>2]|0)-(t[e>>2]|0)|0)/12|0)+1|0,a=Uh(e)|0,a>>>0>>0)di(e);else{M=t[e>>2]|0,X=((t[e+8>>2]|0)-M|0)/12|0,b=X<<1,jh(w,X>>>0>>1>>>0?b>>>0>>0?s:b:a,((t[T>>2]|0)-M|0)/12|0,e+8|0),T=w+8|0,a=t[T>>2]|0,s=t[n+4>>2]|0,r=t[r>>2]|0,t[v>>2]=t[n>>2],t[v+4>>2]=s,t[u>>2]=t[v>>2],t[u+4>>2]=t[v+4>>2],bh(a,u,r),t[T>>2]=(t[T>>2]|0)+12,gm(e,w),zh(w),y=L;return}}function Uh(e){return e=e|0,357913941}function jh(e,n,r,u){e=e|0,n=n|0,r=r|0,u=u|0;var s=0;t[e+12>>2]=0,t[e+16>>2]=u;do if(n)if(n>>>0>357913941)$n();else{s=pn(n*12|0)|0;break}else s=0;while(0);t[e>>2]=s,u=s+(r*12|0)|0,t[e+8>>2]=u,t[e+4>>2]=u,t[e+12>>2]=s+(n*12|0)}function gm(e,n){e=e|0,n=n|0;var r=0,u=0,s=0,a=0,v=0;u=t[e>>2]|0,v=e+4|0,a=n+4|0,s=(t[v>>2]|0)-u|0,r=(t[a>>2]|0)+(((s|0)/-12|0)*12|0)|0,t[a>>2]=r,(s|0)>0?(gr(r|0,u|0,s|0)|0,u=a,r=t[a>>2]|0):u=a,a=t[e>>2]|0,t[e>>2]=r,t[u>>2]=a,a=n+8|0,s=t[v>>2]|0,t[v>>2]=t[a>>2],t[a>>2]=s,a=e+8|0,v=n+12|0,e=t[a>>2]|0,t[a>>2]=t[v>>2],t[v>>2]=e,t[n>>2]=t[u>>2]}function zh(e){e=e|0;var n=0,r=0,u=0;n=t[e+4>>2]|0,r=e+8|0,u=t[r>>2]|0,(u|0)!=(n|0)&&(t[r>>2]=u+(~(((u+-12-n|0)>>>0)/12|0)*12|0)),e=t[e>>2]|0,e|0&&Et(e)}function Hh(e){e=e|0,qh(e)}function g1(e){e=e|0,J2(e+24|0)}function J2(e){e=e|0;var n=0,r=0,u=0;r=t[e>>2]|0,u=r,r|0&&(e=e+4|0,n=t[e>>2]|0,(n|0)!=(r|0)&&(t[e>>2]=n+(~(((n+-12-u|0)>>>0)/12|0)*12|0)),Et(r))}function qh(e){e=e|0;var n=0;n=yr()|0,jn(e,2,4,n,Z2()|0,1),t[e+24>>2]=0,t[e+28>>2]=0,t[e+32>>2]=0}function Z2(){return 1180}function Wh(e,n,r){e=e|0,n=n|0,r=r|0;var u=0,s=0,a=0,v=0;return u=y,y=y+16|0,s=u+8|0,a=u,v=_m(e)|0,e=t[v+4>>2]|0,t[a>>2]=t[v>>2],t[a+4>>2]=e,t[s>>2]=t[a>>2],t[s+4>>2]=t[a+4>>2],r=Em(n,s,r)|0,y=u,r|0}function _m(e){return e=e|0,(t[(Sc()|0)+24>>2]|0)+(e*12|0)|0}function Em(e,n,r){e=e|0,n=n|0,r=r|0;var u=0,s=0,a=0;return a=y,y=y+16|0,s=a,u=t[n>>2]|0,n=t[n+4>>2]|0,e=e+(n>>1)|0,n&1&&(u=t[(t[e>>2]|0)+u>>2]|0),Pf(s,r),s=If(s,r)|0,s=Sd(bE[u&15](e,s)|0)|0,y=a,s|0}function Pf(e,n){e=e|0,n=n|0}function If(e,n){return e=e|0,n=n|0,Dm(n)|0}function Sd(e){return e=e|0,e|0}function Dm(e){return e=e|0,e|0}function $2(e,n,r){e=e|0,n=n|0,r=r|0;var u=0,s=0,a=0,v=0,w=0;u=y,y=y+16|0,s=u+8|0,a=u,w=t[r>>2]|0,v=t[r+4>>2]|0,r=Fr(n)|0,t[a>>2]=w,t[a+4>>2]=v,t[s>>2]=t[a>>2],t[s+4>>2]=t[a+4>>2],Td(e,r,s,0),y=u}function Td(e,n,r,u){e=e|0,n=n|0,r=r|0,u=u|0;var s=0,a=0,v=0,w=0,T=0,L=0,M=0;s=y,y=y+32|0,a=s+16|0,M=s+8|0,w=s,L=t[r>>2]|0,T=t[r+4>>2]|0,v=t[e>>2]|0,e=ep()|0,t[M>>2]=L,t[M+4>>2]=T,t[a>>2]=t[M>>2],t[a+4>>2]=t[M+4>>2],r=Vh(a)|0,t[w>>2]=L,t[w+4>>2]=T,t[a>>2]=t[w>>2],t[a+4>>2]=t[w+4>>2],wi(v,n,e,r,tp(a,u)|0,u),y=s}function ep(){var e=0,n=0;if(h[7672]|0||(Kh(9376),Wt(30,9376,ge|0)|0,n=7672,t[n>>2]=1,t[n+4>>2]=0),!(sr(9376)|0)){e=9376,n=e+36|0;do t[e>>2]=0,e=e+4|0;while((e|0)<(n|0));Kh(9376)}return 9376}function Vh(e){return e=e|0,0}function tp(e,n){e=e|0,n=n|0;var r=0,u=0,s=0,a=0,v=0,w=0,T=0,L=0,M=0,b=0;return M=y,y=y+32|0,s=M+24|0,v=M+16|0,w=M,T=M+8|0,a=t[e>>2]|0,u=t[e+4>>2]|0,t[w>>2]=a,t[w+4>>2]=u,b=ep()|0,L=b+24|0,e=hn(n,4)|0,t[T>>2]=e,n=b+28|0,r=t[n>>2]|0,r>>>0<(t[b+32>>2]|0)>>>0?(t[v>>2]=a,t[v+4>>2]=u,t[s>>2]=t[v>>2],t[s+4>>2]=t[v+4>>2],Gh(r,s,e),e=(t[n>>2]|0)+12|0,t[n>>2]=e):(Yh(L,w,T),e=t[n>>2]|0),y=M,((e-(t[L>>2]|0)|0)/12|0)+-1|0}function Gh(e,n,r){e=e|0,n=n|0,r=r|0;var u=0;u=t[n+4>>2]|0,t[e>>2]=t[n>>2],t[e+4>>2]=u,t[e+8>>2]=r}function Yh(e,n,r){e=e|0,n=n|0,r=r|0;var u=0,s=0,a=0,v=0,w=0,T=0,L=0,M=0,b=0,X=0;if(L=y,y=y+48|0,u=L+32|0,v=L+24|0,w=L,T=e+4|0,s=(((t[T>>2]|0)-(t[e>>2]|0)|0)/12|0)+1|0,a=np(e)|0,a>>>0>>0)di(e);else{M=t[e>>2]|0,X=((t[e+8>>2]|0)-M|0)/12|0,b=X<<1,wm(w,X>>>0>>1>>>0?b>>>0>>0?s:b:a,((t[T>>2]|0)-M|0)/12|0,e+8|0),T=w+8|0,a=t[T>>2]|0,s=t[n+4>>2]|0,r=t[r>>2]|0,t[v>>2]=t[n>>2],t[v+4>>2]=s,t[u>>2]=t[v>>2],t[u+4>>2]=t[v+4>>2],Gh(a,u,r),t[T>>2]=(t[T>>2]|0)+12,Sm(e,w),Tm(w),y=L;return}}function np(e){return e=e|0,357913941}function wm(e,n,r,u){e=e|0,n=n|0,r=r|0,u=u|0;var s=0;t[e+12>>2]=0,t[e+16>>2]=u;do if(n)if(n>>>0>357913941)$n();else{s=pn(n*12|0)|0;break}else s=0;while(0);t[e>>2]=s,u=s+(r*12|0)|0,t[e+8>>2]=u,t[e+4>>2]=u,t[e+12>>2]=s+(n*12|0)}function Sm(e,n){e=e|0,n=n|0;var r=0,u=0,s=0,a=0,v=0;u=t[e>>2]|0,v=e+4|0,a=n+4|0,s=(t[v>>2]|0)-u|0,r=(t[a>>2]|0)+(((s|0)/-12|0)*12|0)|0,t[a>>2]=r,(s|0)>0?(gr(r|0,u|0,s|0)|0,u=a,r=t[a>>2]|0):u=a,a=t[e>>2]|0,t[e>>2]=r,t[u>>2]=a,a=n+8|0,s=t[v>>2]|0,t[v>>2]=t[a>>2],t[a>>2]=s,a=e+8|0,v=n+12|0,e=t[a>>2]|0,t[a>>2]=t[v>>2],t[v>>2]=e,t[n>>2]=t[u>>2]}function Tm(e){e=e|0;var n=0,r=0,u=0;n=t[e+4>>2]|0,r=e+8|0,u=t[r>>2]|0,(u|0)!=(n|0)&&(t[r>>2]=u+(~(((u+-12-n|0)>>>0)/12|0)*12|0)),e=t[e>>2]|0,e|0&&Et(e)}function Kh(e){e=e|0,rp(e)}function _1(e){e=e|0,Cm(e+24|0)}function Cm(e){e=e|0;var n=0,r=0,u=0;r=t[e>>2]|0,u=r,r|0&&(e=e+4|0,n=t[e>>2]|0,(n|0)!=(r|0)&&(t[e>>2]=n+(~(((n+-12-u|0)>>>0)/12|0)*12|0)),Et(r))}function rp(e){e=e|0;var n=0;n=yr()|0,jn(e,2,5,n,ip()|0,0),t[e+24>>2]=0,t[e+28>>2]=0,t[e+32>>2]=0}function ip(){return 1196}function xm(e,n){e=e|0,n=n|0;var r=0,u=0,s=0,a=0;return r=y,y=y+16|0,u=r+8|0,s=r,a=Rm(e)|0,e=t[a+4>>2]|0,t[s>>2]=t[a>>2],t[s+4>>2]=e,t[u>>2]=t[s>>2],t[u+4>>2]=t[s+4>>2],n=Xh(n,u)|0,y=r,n|0}function Rm(e){return e=e|0,(t[(ep()|0)+24>>2]|0)+(e*12|0)|0}function Xh(e,n){e=e|0,n=n|0;var r=0;return r=t[n>>2]|0,n=t[n+4>>2]|0,e=e+(n>>1)|0,n&1&&(r=t[(t[e>>2]|0)+r>>2]|0),Sd(Qp[r&31](e)|0)|0}function Am(e,n,r){e=e|0,n=n|0,r=r|0;var u=0,s=0,a=0,v=0,w=0;u=y,y=y+16|0,s=u+8|0,a=u,w=t[r>>2]|0,v=t[r+4>>2]|0,r=Fr(n)|0,t[a>>2]=w,t[a+4>>2]=v,t[s>>2]=t[a>>2],t[s+4>>2]=t[a+4>>2],Om(e,r,s,1),y=u}function Om(e,n,r,u){e=e|0,n=n|0,r=r|0,u=u|0;var s=0,a=0,v=0,w=0,T=0,L=0,M=0;s=y,y=y+32|0,a=s+16|0,M=s+8|0,w=s,L=t[r>>2]|0,T=t[r+4>>2]|0,v=t[e>>2]|0,e=up()|0,t[M>>2]=L,t[M+4>>2]=T,t[a>>2]=t[M>>2],t[a+4>>2]=t[M+4>>2],r=op(a)|0,t[w>>2]=L,t[w+4>>2]=T,t[a>>2]=t[w>>2],t[a+4>>2]=t[w+4>>2],wi(v,n,e,r,Ta(a,u)|0,u),y=s}function up(){var e=0,n=0;if(h[7680]|0||(sp(9412),Wt(31,9412,ge|0)|0,n=7680,t[n>>2]=1,t[n+4>>2]=0),!(sr(9412)|0)){e=9412,n=e+36|0;do t[e>>2]=0,e=e+4|0;while((e|0)<(n|0));sp(9412)}return 9412}function op(e){return e=e|0,0}function Ta(e,n){e=e|0,n=n|0;var r=0,u=0,s=0,a=0,v=0,w=0,T=0,L=0,M=0,b=0;return M=y,y=y+32|0,s=M+24|0,v=M+16|0,w=M,T=M+8|0,a=t[e>>2]|0,u=t[e+4>>2]|0,t[w>>2]=a,t[w+4>>2]=u,b=up()|0,L=b+24|0,e=hn(n,4)|0,t[T>>2]=e,n=b+28|0,r=t[n>>2]|0,r>>>0<(t[b+32>>2]|0)>>>0?(t[v>>2]=a,t[v+4>>2]=u,t[s>>2]=t[v>>2],t[s+4>>2]=t[v+4>>2],E1(r,s,e),e=(t[n>>2]|0)+12|0,t[n>>2]=e):(lp(L,w,T),e=t[n>>2]|0),y=M,((e-(t[L>>2]|0)|0)/12|0)+-1|0}function E1(e,n,r){e=e|0,n=n|0,r=r|0;var u=0;u=t[n+4>>2]|0,t[e>>2]=t[n>>2],t[e+4>>2]=u,t[e+8>>2]=r}function lp(e,n,r){e=e|0,n=n|0,r=r|0;var u=0,s=0,a=0,v=0,w=0,T=0,L=0,M=0,b=0,X=0;if(L=y,y=y+48|0,u=L+32|0,v=L+24|0,w=L,T=e+4|0,s=(((t[T>>2]|0)-(t[e>>2]|0)|0)/12|0)+1|0,a=Qh(e)|0,a>>>0>>0)di(e);else{M=t[e>>2]|0,X=((t[e+8>>2]|0)-M|0)/12|0,b=X<<1,Cd(w,X>>>0>>1>>>0?b>>>0>>0?s:b:a,((t[T>>2]|0)-M|0)/12|0,e+8|0),T=w+8|0,a=t[T>>2]|0,s=t[n+4>>2]|0,r=t[r>>2]|0,t[v>>2]=t[n>>2],t[v+4>>2]=s,t[u>>2]=t[v>>2],t[u+4>>2]=t[v+4>>2],E1(a,u,r),t[T>>2]=(t[T>>2]|0)+12,D1(e,w),Jh(w),y=L;return}}function Qh(e){return e=e|0,357913941}function Cd(e,n,r,u){e=e|0,n=n|0,r=r|0,u=u|0;var s=0;t[e+12>>2]=0,t[e+16>>2]=u;do if(n)if(n>>>0>357913941)$n();else{s=pn(n*12|0)|0;break}else s=0;while(0);t[e>>2]=s,u=s+(r*12|0)|0,t[e+8>>2]=u,t[e+4>>2]=u,t[e+12>>2]=s+(n*12|0)}function D1(e,n){e=e|0,n=n|0;var r=0,u=0,s=0,a=0,v=0;u=t[e>>2]|0,v=e+4|0,a=n+4|0,s=(t[v>>2]|0)-u|0,r=(t[a>>2]|0)+(((s|0)/-12|0)*12|0)|0,t[a>>2]=r,(s|0)>0?(gr(r|0,u|0,s|0)|0,u=a,r=t[a>>2]|0):u=a,a=t[e>>2]|0,t[e>>2]=r,t[u>>2]=a,a=n+8|0,s=t[v>>2]|0,t[v>>2]=t[a>>2],t[a>>2]=s,a=e+8|0,v=n+12|0,e=t[a>>2]|0,t[a>>2]=t[v>>2],t[v>>2]=e,t[n>>2]=t[u>>2]}function Jh(e){e=e|0;var n=0,r=0,u=0;n=t[e+4>>2]|0,r=e+8|0,u=t[r>>2]|0,(u|0)!=(n|0)&&(t[r>>2]=u+(~(((u+-12-n|0)>>>0)/12|0)*12|0)),e=t[e>>2]|0,e|0&&Et(e)}function sp(e){e=e|0,$h(e)}function Zh(e){e=e|0,ap(e+24|0)}function ap(e){e=e|0;var n=0,r=0,u=0;r=t[e>>2]|0,u=r,r|0&&(e=e+4|0,n=t[e>>2]|0,(n|0)!=(r|0)&&(t[e>>2]=n+(~(((n+-12-u|0)>>>0)/12|0)*12|0)),Et(r))}function $h(e){e=e|0;var n=0;n=yr()|0,jn(e,2,6,n,ev()|0,0),t[e+24>>2]=0,t[e+28>>2]=0,t[e+32>>2]=0}function ev(){return 1200}function fp(e,n){e=e|0,n=n|0;var r=0,u=0,s=0,a=0;return r=y,y=y+16|0,u=r+8|0,s=r,a=xd(e)|0,e=t[a+4>>2]|0,t[s>>2]=t[a>>2],t[s+4>>2]=e,t[u>>2]=t[s>>2],t[u+4>>2]=t[s+4>>2],n=Rd(n,u)|0,y=r,n|0}function xd(e){return e=e|0,(t[(up()|0)+24>>2]|0)+(e*12|0)|0}function Rd(e,n){e=e|0,n=n|0;var r=0;return r=t[n>>2]|0,n=t[n+4>>2]|0,e=e+(n>>1)|0,n&1&&(r=t[(t[e>>2]|0)+r>>2]|0),H0(Qp[r&31](e)|0)|0}function H0(e){return e=e|0,e|0}function Ad(e,n,r){e=e|0,n=n|0,r=r|0;var u=0,s=0,a=0,v=0,w=0;u=y,y=y+16|0,s=u+8|0,a=u,w=t[r>>2]|0,v=t[r+4>>2]|0,r=Fr(n)|0,t[a>>2]=w,t[a+4>>2]=v,t[s>>2]=t[a>>2],t[s+4>>2]=t[a+4>>2],Ca(e,r,s,0),y=u}function Ca(e,n,r,u){e=e|0,n=n|0,r=r|0,u=u|0;var s=0,a=0,v=0,w=0,T=0,L=0,M=0;s=y,y=y+32|0,a=s+16|0,M=s+8|0,w=s,L=t[r>>2]|0,T=t[r+4>>2]|0,v=t[e>>2]|0,e=$a()|0,t[M>>2]=L,t[M+4>>2]=T,t[a>>2]=t[M>>2],t[a+4>>2]=t[M+4>>2],r=Od(a)|0,t[w>>2]=L,t[w+4>>2]=T,t[a>>2]=t[w>>2],t[a+4>>2]=t[w+4>>2],wi(v,n,e,r,Md(a,u)|0,u),y=s}function $a(){var e=0,n=0;if(h[7688]|0||(pp(9448),Wt(32,9448,ge|0)|0,n=7688,t[n>>2]=1,t[n+4>>2]=0),!(sr(9448)|0)){e=9448,n=e+36|0;do t[e>>2]=0,e=e+4|0;while((e|0)<(n|0));pp(9448)}return 9448}function Od(e){return e=e|0,0}function Md(e,n){e=e|0,n=n|0;var r=0,u=0,s=0,a=0,v=0,w=0,T=0,L=0,M=0,b=0;return M=y,y=y+32|0,s=M+24|0,v=M+16|0,w=M,T=M+8|0,a=t[e>>2]|0,u=t[e+4>>2]|0,t[w>>2]=a,t[w+4>>2]=u,b=$a()|0,L=b+24|0,e=hn(n,4)|0,t[T>>2]=e,n=b+28|0,r=t[n>>2]|0,r>>>0<(t[b+32>>2]|0)>>>0?(t[v>>2]=a,t[v+4>>2]=u,t[s>>2]=t[v>>2],t[s+4>>2]=t[v+4>>2],cp(r,s,e),e=(t[n>>2]|0)+12|0,t[n>>2]=e):(kd(L,w,T),e=t[n>>2]|0),y=M,((e-(t[L>>2]|0)|0)/12|0)+-1|0}function cp(e,n,r){e=e|0,n=n|0,r=r|0;var u=0;u=t[n+4>>2]|0,t[e>>2]=t[n>>2],t[e+4>>2]=u,t[e+8>>2]=r}function kd(e,n,r){e=e|0,n=n|0,r=r|0;var u=0,s=0,a=0,v=0,w=0,T=0,L=0,M=0,b=0,X=0;if(L=y,y=y+48|0,u=L+32|0,v=L+24|0,w=L,T=e+4|0,s=(((t[T>>2]|0)-(t[e>>2]|0)|0)/12|0)+1|0,a=tv(e)|0,a>>>0>>0)di(e);else{M=t[e>>2]|0,X=((t[e+8>>2]|0)-M|0)/12|0,b=X<<1,Mm(w,X>>>0>>1>>>0?b>>>0>>0?s:b:a,((t[T>>2]|0)-M|0)/12|0,e+8|0),T=w+8|0,a=t[T>>2]|0,s=t[n+4>>2]|0,r=t[r>>2]|0,t[v>>2]=t[n>>2],t[v+4>>2]=s,t[u>>2]=t[v>>2],t[u+4>>2]=t[v+4>>2],cp(a,u,r),t[T>>2]=(t[T>>2]|0)+12,nv(e,w),dp(w),y=L;return}}function tv(e){return e=e|0,357913941}function Mm(e,n,r,u){e=e|0,n=n|0,r=r|0,u=u|0;var s=0;t[e+12>>2]=0,t[e+16>>2]=u;do if(n)if(n>>>0>357913941)$n();else{s=pn(n*12|0)|0;break}else s=0;while(0);t[e>>2]=s,u=s+(r*12|0)|0,t[e+8>>2]=u,t[e+4>>2]=u,t[e+12>>2]=s+(n*12|0)}function nv(e,n){e=e|0,n=n|0;var r=0,u=0,s=0,a=0,v=0;u=t[e>>2]|0,v=e+4|0,a=n+4|0,s=(t[v>>2]|0)-u|0,r=(t[a>>2]|0)+(((s|0)/-12|0)*12|0)|0,t[a>>2]=r,(s|0)>0?(gr(r|0,u|0,s|0)|0,u=a,r=t[a>>2]|0):u=a,a=t[e>>2]|0,t[e>>2]=r,t[u>>2]=a,a=n+8|0,s=t[v>>2]|0,t[v>>2]=t[a>>2],t[a>>2]=s,a=e+8|0,v=n+12|0,e=t[a>>2]|0,t[a>>2]=t[v>>2],t[v>>2]=e,t[n>>2]=t[u>>2]}function dp(e){e=e|0;var n=0,r=0,u=0;n=t[e+4>>2]|0,r=e+8|0,u=t[r>>2]|0,(u|0)!=(n|0)&&(t[r>>2]=u+(~(((u+-12-n|0)>>>0)/12|0)*12|0)),e=t[e>>2]|0,e|0&&Et(e)}function pp(e){e=e|0,Nm(e)}function hp(e){e=e|0,km(e+24|0)}function km(e){e=e|0;var n=0,r=0,u=0;r=t[e>>2]|0,u=r,r|0&&(e=e+4|0,n=t[e>>2]|0,(n|0)!=(r|0)&&(t[e>>2]=n+(~(((n+-12-u|0)>>>0)/12|0)*12|0)),Et(r))}function Nm(e){e=e|0;var n=0;n=yr()|0,jn(e,2,6,n,So()|0,1),t[e+24>>2]=0,t[e+28>>2]=0,t[e+32>>2]=0}function So(){return 1204}function Nd(e,n,r){e=e|0,n=n|0,r=r|0;var u=0,s=0,a=0,v=0;u=y,y=y+16|0,s=u+8|0,a=u,v=Lm(e)|0,e=t[v+4>>2]|0,t[a>>2]=t[v>>2],t[a+4>>2]=e,t[s>>2]=t[a>>2],t[s+4>>2]=t[a+4>>2],pl(n,s,r),y=u}function Lm(e){return e=e|0,(t[($a()|0)+24>>2]|0)+(e*12|0)|0}function pl(e,n,r){e=e|0,n=n|0,r=r|0;var u=0,s=0,a=0;a=y,y=y+16|0,s=a,u=t[n>>2]|0,n=t[n+4>>2]|0,e=e+(n>>1)|0,n&1&&(u=t[(t[e>>2]|0)+u>>2]|0),tr(s,r),s=Qs(s,r)|0,I1[u&31](e,s),y=a}function tr(e,n){e=e|0,n=n|0}function Qs(e,n){return e=e|0,n=n|0,hl(n)|0}function hl(e){return e=e|0,e|0}function o0(e,n,r){e=e|0,n=n|0,r=r|0;var u=0,s=0,a=0,v=0,w=0;u=y,y=y+16|0,s=u+8|0,a=u,w=t[r>>2]|0,v=t[r+4>>2]|0,r=Fr(n)|0,t[a>>2]=w,t[a+4>>2]=v,t[s>>2]=t[a>>2],t[s+4>>2]=t[a+4>>2],rv(e,r,s,0),y=u}function rv(e,n,r,u){e=e|0,n=n|0,r=r|0,u=u|0;var s=0,a=0,v=0,w=0,T=0,L=0,M=0;s=y,y=y+32|0,a=s+16|0,M=s+8|0,w=s,L=t[r>>2]|0,T=t[r+4>>2]|0,v=t[e>>2]|0,e=Js()|0,t[M>>2]=L,t[M+4>>2]=T,t[a>>2]=t[M>>2],t[a+4>>2]=t[M+4>>2],r=vp(a)|0,t[w>>2]=L,t[w+4>>2]=T,t[a>>2]=t[w>>2],t[a+4>>2]=t[w+4>>2],wi(v,n,e,r,Fm(a,u)|0,u),y=s}function Js(){var e=0,n=0;if(h[7696]|0||(gp(9484),Wt(33,9484,ge|0)|0,n=7696,t[n>>2]=1,t[n+4>>2]=0),!(sr(9484)|0)){e=9484,n=e+36|0;do t[e>>2]=0,e=e+4|0;while((e|0)<(n|0));gp(9484)}return 9484}function vp(e){return e=e|0,0}function Fm(e,n){e=e|0,n=n|0;var r=0,u=0,s=0,a=0,v=0,w=0,T=0,L=0,M=0,b=0;return M=y,y=y+32|0,s=M+24|0,v=M+16|0,w=M,T=M+8|0,a=t[e>>2]|0,u=t[e+4>>2]|0,t[w>>2]=a,t[w+4>>2]=u,b=Js()|0,L=b+24|0,e=hn(n,4)|0,t[T>>2]=e,n=b+28|0,r=t[n>>2]|0,r>>>0<(t[b+32>>2]|0)>>>0?(t[v>>2]=a,t[v+4>>2]=u,t[s>>2]=t[v>>2],t[s+4>>2]=t[v+4>>2],iv(r,s,e),e=(t[n>>2]|0)+12|0,t[n>>2]=e):(mp(L,w,T),e=t[n>>2]|0),y=M,((e-(t[L>>2]|0)|0)/12|0)+-1|0}function iv(e,n,r){e=e|0,n=n|0,r=r|0;var u=0;u=t[n+4>>2]|0,t[e>>2]=t[n>>2],t[e+4>>2]=u,t[e+8>>2]=r}function mp(e,n,r){e=e|0,n=n|0,r=r|0;var u=0,s=0,a=0,v=0,w=0,T=0,L=0,M=0,b=0,X=0;if(L=y,y=y+48|0,u=L+32|0,v=L+24|0,w=L,T=e+4|0,s=(((t[T>>2]|0)-(t[e>>2]|0)|0)/12|0)+1|0,a=Pm(e)|0,a>>>0>>0)di(e);else{M=t[e>>2]|0,X=((t[e+8>>2]|0)-M|0)/12|0,b=X<<1,yp(w,X>>>0>>1>>>0?b>>>0>>0?s:b:a,((t[T>>2]|0)-M|0)/12|0,e+8|0),T=w+8|0,a=t[T>>2]|0,s=t[n+4>>2]|0,r=t[r>>2]|0,t[v>>2]=t[n>>2],t[v+4>>2]=s,t[u>>2]=t[v>>2],t[u+4>>2]=t[v+4>>2],iv(a,u,r),t[T>>2]=(t[T>>2]|0)+12,Tc(e,w),xa(w),y=L;return}}function Pm(e){return e=e|0,357913941}function yp(e,n,r,u){e=e|0,n=n|0,r=r|0,u=u|0;var s=0;t[e+12>>2]=0,t[e+16>>2]=u;do if(n)if(n>>>0>357913941)$n();else{s=pn(n*12|0)|0;break}else s=0;while(0);t[e>>2]=s,u=s+(r*12|0)|0,t[e+8>>2]=u,t[e+4>>2]=u,t[e+12>>2]=s+(n*12|0)}function Tc(e,n){e=e|0,n=n|0;var r=0,u=0,s=0,a=0,v=0;u=t[e>>2]|0,v=e+4|0,a=n+4|0,s=(t[v>>2]|0)-u|0,r=(t[a>>2]|0)+(((s|0)/-12|0)*12|0)|0,t[a>>2]=r,(s|0)>0?(gr(r|0,u|0,s|0)|0,u=a,r=t[a>>2]|0):u=a,a=t[e>>2]|0,t[e>>2]=r,t[u>>2]=a,a=n+8|0,s=t[v>>2]|0,t[v>>2]=t[a>>2],t[a>>2]=s,a=e+8|0,v=n+12|0,e=t[a>>2]|0,t[a>>2]=t[v>>2],t[v>>2]=e,t[n>>2]=t[u>>2]}function xa(e){e=e|0;var n=0,r=0,u=0;n=t[e+4>>2]|0,r=e+8|0,u=t[r>>2]|0,(u|0)!=(n|0)&&(t[r>>2]=u+(~(((u+-12-n|0)>>>0)/12|0)*12|0)),e=t[e>>2]|0,e|0&&Et(e)}function gp(e){e=e|0,Gu(e)}function Ld(e){e=e|0,Iu(e+24|0)}function Iu(e){e=e|0;var n=0,r=0,u=0;r=t[e>>2]|0,u=r,r|0&&(e=e+4|0,n=t[e>>2]|0,(n|0)!=(r|0)&&(t[e>>2]=n+(~(((n+-12-u|0)>>>0)/12|0)*12|0)),Et(r))}function Gu(e){e=e|0;var n=0;n=yr()|0,jn(e,2,1,n,_p()|0,2),t[e+24>>2]=0,t[e+28>>2]=0,t[e+32>>2]=0}function _p(){return 1212}function Ep(e,n,r,u){e=e|0,n=n|0,r=r|0,u=u|0;var s=0,a=0,v=0,w=0;s=y,y=y+16|0,a=s+8|0,v=s,w=uv(e)|0,e=t[w+4>>2]|0,t[v>>2]=t[w>>2],t[v+4>>2]=e,t[a>>2]=t[v>>2],t[a+4>>2]=t[v+4>>2],Im(n,a,r,u),y=s}function uv(e){return e=e|0,(t[(Js()|0)+24>>2]|0)+(e*12|0)|0}function Im(e,n,r,u){e=e|0,n=n|0,r=r|0,u=u|0;var s=0,a=0,v=0,w=0;w=y,y=y+16|0,a=w+1|0,v=w,s=t[n>>2]|0,n=t[n+4>>2]|0,e=e+(n>>1)|0,n&1&&(s=t[(t[e>>2]|0)+s>>2]|0),tr(a,r),a=Qs(a,r)|0,Pf(v,u),v=If(v,u)|0,Fy[s&15](e,a,v),y=w}function bm(e,n,r){e=e|0,n=n|0,r=r|0;var u=0,s=0,a=0,v=0,w=0;u=y,y=y+16|0,s=u+8|0,a=u,w=t[r>>2]|0,v=t[r+4>>2]|0,r=Fr(n)|0,t[a>>2]=w,t[a+4>>2]=v,t[s>>2]=t[a>>2],t[s+4>>2]=t[a+4>>2],Bm(e,r,s,1),y=u}function Bm(e,n,r,u){e=e|0,n=n|0,r=r|0,u=u|0;var s=0,a=0,v=0,w=0,T=0,L=0,M=0;s=y,y=y+32|0,a=s+16|0,M=s+8|0,w=s,L=t[r>>2]|0,T=t[r+4>>2]|0,v=t[e>>2]|0,e=Fd()|0,t[M>>2]=L,t[M+4>>2]=T,t[a>>2]=t[M>>2],t[a+4>>2]=t[M+4>>2],r=ov(a)|0,t[w>>2]=L,t[w+4>>2]=T,t[a>>2]=t[w>>2],t[a+4>>2]=t[w+4>>2],wi(v,n,e,r,Cc(a,u)|0,u),y=s}function Fd(){var e=0,n=0;if(h[7704]|0||(lv(9520),Wt(34,9520,ge|0)|0,n=7704,t[n>>2]=1,t[n+4>>2]=0),!(sr(9520)|0)){e=9520,n=e+36|0;do t[e>>2]=0,e=e+4|0;while((e|0)<(n|0));lv(9520)}return 9520}function ov(e){return e=e|0,0}function Cc(e,n){e=e|0,n=n|0;var r=0,u=0,s=0,a=0,v=0,w=0,T=0,L=0,M=0,b=0;return M=y,y=y+32|0,s=M+24|0,v=M+16|0,w=M,T=M+8|0,a=t[e>>2]|0,u=t[e+4>>2]|0,t[w>>2]=a,t[w+4>>2]=u,b=Fd()|0,L=b+24|0,e=hn(n,4)|0,t[T>>2]=e,n=b+28|0,r=t[n>>2]|0,r>>>0<(t[b+32>>2]|0)>>>0?(t[v>>2]=a,t[v+4>>2]=u,t[s>>2]=t[v>>2],t[s+4>>2]=t[v+4>>2],w1(r,s,e),e=(t[n>>2]|0)+12|0,t[n>>2]=e):(Um(L,w,T),e=t[n>>2]|0),y=M,((e-(t[L>>2]|0)|0)/12|0)+-1|0}function w1(e,n,r){e=e|0,n=n|0,r=r|0;var u=0;u=t[n+4>>2]|0,t[e>>2]=t[n>>2],t[e+4>>2]=u,t[e+8>>2]=r}function Um(e,n,r){e=e|0,n=n|0,r=r|0;var u=0,s=0,a=0,v=0,w=0,T=0,L=0,M=0,b=0,X=0;if(L=y,y=y+48|0,u=L+32|0,v=L+24|0,w=L,T=e+4|0,s=(((t[T>>2]|0)-(t[e>>2]|0)|0)/12|0)+1|0,a=Pd(e)|0,a>>>0>>0)di(e);else{M=t[e>>2]|0,X=((t[e+8>>2]|0)-M|0)/12|0,b=X<<1,S1(w,X>>>0>>1>>>0?b>>>0>>0?s:b:a,((t[T>>2]|0)-M|0)/12|0,e+8|0),T=w+8|0,a=t[T>>2]|0,s=t[n+4>>2]|0,r=t[r>>2]|0,t[v>>2]=t[n>>2],t[v+4>>2]=s,t[u>>2]=t[v>>2],t[u+4>>2]=t[v+4>>2],w1(a,u,r),t[T>>2]=(t[T>>2]|0)+12,Bl(e,w),Ra(w),y=L;return}}function Pd(e){return e=e|0,357913941}function S1(e,n,r,u){e=e|0,n=n|0,r=r|0,u=u|0;var s=0;t[e+12>>2]=0,t[e+16>>2]=u;do if(n)if(n>>>0>357913941)$n();else{s=pn(n*12|0)|0;break}else s=0;while(0);t[e>>2]=s,u=s+(r*12|0)|0,t[e+8>>2]=u,t[e+4>>2]=u,t[e+12>>2]=s+(n*12|0)}function Bl(e,n){e=e|0,n=n|0;var r=0,u=0,s=0,a=0,v=0;u=t[e>>2]|0,v=e+4|0,a=n+4|0,s=(t[v>>2]|0)-u|0,r=(t[a>>2]|0)+(((s|0)/-12|0)*12|0)|0,t[a>>2]=r,(s|0)>0?(gr(r|0,u|0,s|0)|0,u=a,r=t[a>>2]|0):u=a,a=t[e>>2]|0,t[e>>2]=r,t[u>>2]=a,a=n+8|0,s=t[v>>2]|0,t[v>>2]=t[a>>2],t[a>>2]=s,a=e+8|0,v=n+12|0,e=t[a>>2]|0,t[a>>2]=t[v>>2],t[v>>2]=e,t[n>>2]=t[u>>2]}function Ra(e){e=e|0;var n=0,r=0,u=0;n=t[e+4>>2]|0,r=e+8|0,u=t[r>>2]|0,(u|0)!=(n|0)&&(t[r>>2]=u+(~(((u+-12-n|0)>>>0)/12|0)*12|0)),e=t[e>>2]|0,e|0&&Et(e)}function lv(e){e=e|0,av(e)}function jm(e){e=e|0,sv(e+24|0)}function sv(e){e=e|0;var n=0,r=0,u=0;r=t[e>>2]|0,u=r,r|0&&(e=e+4|0,n=t[e>>2]|0,(n|0)!=(r|0)&&(t[e>>2]=n+(~(((n+-12-u|0)>>>0)/12|0)*12|0)),Et(r))}function av(e){e=e|0;var n=0;n=yr()|0,jn(e,2,1,n,zm()|0,1),t[e+24>>2]=0,t[e+28>>2]=0,t[e+32>>2]=0}function zm(){return 1224}function fv(e,n,r){e=e|0,n=n|0,r=r|0;var u=0,s=0,a=0,v=0,w=0;return s=y,y=y+16|0,a=s+8|0,v=s,w=Aa(e)|0,e=t[w+4>>2]|0,t[v>>2]=t[w>>2],t[v+4>>2]=e,t[a>>2]=t[v>>2],t[a+4>>2]=t[v+4>>2],u=+Mr(n,a,r),y=s,+u}function Aa(e){return e=e|0,(t[(Fd()|0)+24>>2]|0)+(e*12|0)|0}function Mr(e,n,r){e=e|0,n=n|0,r=r|0;var u=0,s=0,a=0,v=0;return a=y,y=y+16|0,s=a,u=t[n>>2]|0,n=t[n+4>>2]|0,e=e+(n>>1)|0,n&1&&(u=t[(t[e>>2]|0)+u>>2]|0),xs(s,r),s=Gs(s,r)|0,v=+Ga(+P8[u&7](e,s)),y=a,+v}function Dp(e,n,r){e=e|0,n=n|0,r=r|0;var u=0,s=0,a=0,v=0,w=0;u=y,y=y+16|0,s=u+8|0,a=u,w=t[r>>2]|0,v=t[r+4>>2]|0,r=Fr(n)|0,t[a>>2]=w,t[a+4>>2]=v,t[s>>2]=t[a>>2],t[s+4>>2]=t[a+4>>2],vl(e,r,s,1),y=u}function vl(e,n,r,u){e=e|0,n=n|0,r=r|0,u=u|0;var s=0,a=0,v=0,w=0,T=0,L=0,M=0;s=y,y=y+32|0,a=s+16|0,M=s+8|0,w=s,L=t[r>>2]|0,T=t[r+4>>2]|0,v=t[e>>2]|0,e=yu()|0,t[M>>2]=L,t[M+4>>2]=T,t[a>>2]=t[M>>2],t[a+4>>2]=t[M+4>>2],r=T1(a)|0,t[w>>2]=L,t[w+4>>2]=T,t[a>>2]=t[w>>2],t[a+4>>2]=t[w+4>>2],wi(v,n,e,r,Ui(a,u)|0,u),y=s}function yu(){var e=0,n=0;if(h[7712]|0||(Sp(9556),Wt(35,9556,ge|0)|0,n=7712,t[n>>2]=1,t[n+4>>2]=0),!(sr(9556)|0)){e=9556,n=e+36|0;do t[e>>2]=0,e=e+4|0;while((e|0)<(n|0));Sp(9556)}return 9556}function T1(e){return e=e|0,0}function Ui(e,n){e=e|0,n=n|0;var r=0,u=0,s=0,a=0,v=0,w=0,T=0,L=0,M=0,b=0;return M=y,y=y+32|0,s=M+24|0,v=M+16|0,w=M,T=M+8|0,a=t[e>>2]|0,u=t[e+4>>2]|0,t[w>>2]=a,t[w+4>>2]=u,b=yu()|0,L=b+24|0,e=hn(n,4)|0,t[T>>2]=e,n=b+28|0,r=t[n>>2]|0,r>>>0<(t[b+32>>2]|0)>>>0?(t[v>>2]=a,t[v+4>>2]=u,t[s>>2]=t[v>>2],t[s+4>>2]=t[v+4>>2],wp(r,s,e),e=(t[n>>2]|0)+12|0,t[n>>2]=e):(Id(L,w,T),e=t[n>>2]|0),y=M,((e-(t[L>>2]|0)|0)/12|0)+-1|0}function wp(e,n,r){e=e|0,n=n|0,r=r|0;var u=0;u=t[n+4>>2]|0,t[e>>2]=t[n>>2],t[e+4>>2]=u,t[e+8>>2]=r}function Id(e,n,r){e=e|0,n=n|0,r=r|0;var u=0,s=0,a=0,v=0,w=0,T=0,L=0,M=0,b=0,X=0;if(L=y,y=y+48|0,u=L+32|0,v=L+24|0,w=L,T=e+4|0,s=(((t[T>>2]|0)-(t[e>>2]|0)|0)/12|0)+1|0,a=To(e)|0,a>>>0>>0)di(e);else{M=t[e>>2]|0,X=((t[e+8>>2]|0)-M|0)/12|0,b=X<<1,As(w,X>>>0>>1>>>0?b>>>0>>0?s:b:a,((t[T>>2]|0)-M|0)/12|0,e+8|0),T=w+8|0,a=t[T>>2]|0,s=t[n+4>>2]|0,r=t[r>>2]|0,t[v>>2]=t[n>>2],t[v+4>>2]=s,t[u>>2]=t[v>>2],t[u+4>>2]=t[v+4>>2],wp(a,u,r),t[T>>2]=(t[T>>2]|0)+12,bf(e,w),bd(w),y=L;return}}function To(e){return e=e|0,357913941}function As(e,n,r,u){e=e|0,n=n|0,r=r|0,u=u|0;var s=0;t[e+12>>2]=0,t[e+16>>2]=u;do if(n)if(n>>>0>357913941)$n();else{s=pn(n*12|0)|0;break}else s=0;while(0);t[e>>2]=s,u=s+(r*12|0)|0,t[e+8>>2]=u,t[e+4>>2]=u,t[e+12>>2]=s+(n*12|0)}function bf(e,n){e=e|0,n=n|0;var r=0,u=0,s=0,a=0,v=0;u=t[e>>2]|0,v=e+4|0,a=n+4|0,s=(t[v>>2]|0)-u|0,r=(t[a>>2]|0)+(((s|0)/-12|0)*12|0)|0,t[a>>2]=r,(s|0)>0?(gr(r|0,u|0,s|0)|0,u=a,r=t[a>>2]|0):u=a,a=t[e>>2]|0,t[e>>2]=r,t[u>>2]=a,a=n+8|0,s=t[v>>2]|0,t[v>>2]=t[a>>2],t[a>>2]=s,a=e+8|0,v=n+12|0,e=t[a>>2]|0,t[a>>2]=t[v>>2],t[v>>2]=e,t[n>>2]=t[u>>2]}function bd(e){e=e|0;var n=0,r=0,u=0;n=t[e+4>>2]|0,r=e+8|0,u=t[r>>2]|0,(u|0)!=(n|0)&&(t[r>>2]=u+(~(((u+-12-n|0)>>>0)/12|0)*12|0)),e=t[e>>2]|0,e|0&&Et(e)}function Sp(e){e=e|0,Tp(e)}function C1(e){e=e|0,x1(e+24|0)}function x1(e){e=e|0;var n=0,r=0,u=0;r=t[e>>2]|0,u=r,r|0&&(e=e+4|0,n=t[e>>2]|0,(n|0)!=(r|0)&&(t[e>>2]=n+(~(((n+-12-u|0)>>>0)/12|0)*12|0)),Et(r))}function Tp(e){e=e|0;var n=0;n=yr()|0,jn(e,2,5,n,nr()|0,0),t[e+24>>2]=0,t[e+28>>2]=0,t[e+32>>2]=0}function nr(){return 1232}function ml(e,n){e=e|0,n=n|0;var r=0,u=0,s=0,a=0,v=0;return u=y,y=y+16|0,s=u+8|0,a=u,v=Gn(e)|0,e=t[v+4>>2]|0,t[a>>2]=t[v>>2],t[a+4>>2]=e,t[s>>2]=t[a>>2],t[s+4>>2]=t[a+4>>2],r=+q0(n,s),y=u,+r}function Gn(e){return e=e|0,(t[(yu()|0)+24>>2]|0)+(e*12|0)|0}function q0(e,n){e=e|0,n=n|0;var r=0;return r=t[n>>2]|0,n=t[n+4>>2]|0,e=e+(n>>1)|0,n&1&&(r=t[(t[e>>2]|0)+r>>2]|0),+ +Ga(+F8[r&15](e))}function k0(e,n,r){e=e|0,n=n|0,r=r|0;var u=0,s=0,a=0,v=0,w=0;u=y,y=y+16|0,s=u+8|0,a=u,w=t[r>>2]|0,v=t[r+4>>2]|0,r=Fr(n)|0,t[a>>2]=w,t[a+4>>2]=v,t[s>>2]=t[a>>2],t[s+4>>2]=t[a+4>>2],Bd(e,r,s,1),y=u}function Bd(e,n,r,u){e=e|0,n=n|0,r=r|0,u=u|0;var s=0,a=0,v=0,w=0,T=0,L=0,M=0;s=y,y=y+32|0,a=s+16|0,M=s+8|0,w=s,L=t[r>>2]|0,T=t[r+4>>2]|0,v=t[e>>2]|0,e=Ul()|0,t[M>>2]=L,t[M+4>>2]=T,t[a>>2]=t[M>>2],t[a+4>>2]=t[M+4>>2],r=R1(a)|0,t[w>>2]=L,t[w+4>>2]=T,t[a>>2]=t[w>>2],t[a+4>>2]=t[w+4>>2],wi(v,n,e,r,xc(a,u)|0,u),y=s}function Ul(){var e=0,n=0;if(h[7720]|0||(zd(9592),Wt(36,9592,ge|0)|0,n=7720,t[n>>2]=1,t[n+4>>2]=0),!(sr(9592)|0)){e=9592,n=e+36|0;do t[e>>2]=0,e=e+4|0;while((e|0)<(n|0));zd(9592)}return 9592}function R1(e){return e=e|0,0}function xc(e,n){e=e|0,n=n|0;var r=0,u=0,s=0,a=0,v=0,w=0,T=0,L=0,M=0,b=0;return M=y,y=y+32|0,s=M+24|0,v=M+16|0,w=M,T=M+8|0,a=t[e>>2]|0,u=t[e+4>>2]|0,t[w>>2]=a,t[w+4>>2]=u,b=Ul()|0,L=b+24|0,e=hn(n,4)|0,t[T>>2]=e,n=b+28|0,r=t[n>>2]|0,r>>>0<(t[b+32>>2]|0)>>>0?(t[v>>2]=a,t[v+4>>2]=u,t[s>>2]=t[v>>2],t[s+4>>2]=t[v+4>>2],Rc(r,s,e),e=(t[n>>2]|0)+12|0,t[n>>2]=e):(Ud(L,w,T),e=t[n>>2]|0),y=M,((e-(t[L>>2]|0)|0)/12|0)+-1|0}function Rc(e,n,r){e=e|0,n=n|0,r=r|0;var u=0;u=t[n+4>>2]|0,t[e>>2]=t[n>>2],t[e+4>>2]=u,t[e+8>>2]=r}function Ud(e,n,r){e=e|0,n=n|0,r=r|0;var u=0,s=0,a=0,v=0,w=0,T=0,L=0,M=0,b=0,X=0;if(L=y,y=y+48|0,u=L+32|0,v=L+24|0,w=L,T=e+4|0,s=(((t[T>>2]|0)-(t[e>>2]|0)|0)/12|0)+1|0,a=Cp(e)|0,a>>>0>>0)di(e);else{M=t[e>>2]|0,X=((t[e+8>>2]|0)-M|0)/12|0,b=X<<1,N0(w,X>>>0>>1>>>0?b>>>0>>0?s:b:a,((t[T>>2]|0)-M|0)/12|0,e+8|0),T=w+8|0,a=t[T>>2]|0,s=t[n+4>>2]|0,r=t[r>>2]|0,t[v>>2]=t[n>>2],t[v+4>>2]=s,t[u>>2]=t[v>>2],t[u+4>>2]=t[v+4>>2],Rc(a,u,r),t[T>>2]=(t[T>>2]|0)+12,dn(e,w),jd(w),y=L;return}}function Cp(e){return e=e|0,357913941}function N0(e,n,r,u){e=e|0,n=n|0,r=r|0,u=u|0;var s=0;t[e+12>>2]=0,t[e+16>>2]=u;do if(n)if(n>>>0>357913941)$n();else{s=pn(n*12|0)|0;break}else s=0;while(0);t[e>>2]=s,u=s+(r*12|0)|0,t[e+8>>2]=u,t[e+4>>2]=u,t[e+12>>2]=s+(n*12|0)}function dn(e,n){e=e|0,n=n|0;var r=0,u=0,s=0,a=0,v=0;u=t[e>>2]|0,v=e+4|0,a=n+4|0,s=(t[v>>2]|0)-u|0,r=(t[a>>2]|0)+(((s|0)/-12|0)*12|0)|0,t[a>>2]=r,(s|0)>0?(gr(r|0,u|0,s|0)|0,u=a,r=t[a>>2]|0):u=a,a=t[e>>2]|0,t[e>>2]=r,t[u>>2]=a,a=n+8|0,s=t[v>>2]|0,t[v>>2]=t[a>>2],t[a>>2]=s,a=e+8|0,v=n+12|0,e=t[a>>2]|0,t[a>>2]=t[v>>2],t[v>>2]=e,t[n>>2]=t[u>>2]}function jd(e){e=e|0;var n=0,r=0,u=0;n=t[e+4>>2]|0,r=e+8|0,u=t[r>>2]|0,(u|0)!=(n|0)&&(t[r>>2]=u+(~(((u+-12-n|0)>>>0)/12|0)*12|0)),e=t[e>>2]|0,e|0&&Et(e)}function zd(e){e=e|0,Mc(e)}function Ac(e){e=e|0,Oc(e+24|0)}function Oc(e){e=e|0;var n=0,r=0,u=0;r=t[e>>2]|0,u=r,r|0&&(e=e+4|0,n=t[e>>2]|0,(n|0)!=(r|0)&&(t[e>>2]=n+(~(((n+-12-u|0)>>>0)/12|0)*12|0)),Et(r))}function Mc(e){e=e|0;var n=0;n=yr()|0,jn(e,2,7,n,A1()|0,0),t[e+24>>2]=0,t[e+28>>2]=0,t[e+32>>2]=0}function A1(){return 1276}function xp(e,n){e=e|0,n=n|0;var r=0,u=0,s=0,a=0;return r=y,y=y+16|0,u=r+8|0,s=r,a=ef(e)|0,e=t[a+4>>2]|0,t[s>>2]=t[a>>2],t[s+4>>2]=e,t[u>>2]=t[s>>2],t[u+4>>2]=t[s+4>>2],n=Hm(n,u)|0,y=r,n|0}function ef(e){return e=e|0,(t[(Ul()|0)+24>>2]|0)+(e*12|0)|0}function Hm(e,n){e=e|0,n=n|0;var r=0,u=0,s=0;return s=y,y=y+16|0,u=s,r=t[n>>2]|0,n=t[n+4>>2]|0,e=e+(n>>1)|0,n&1&&(r=t[(t[e>>2]|0)+r>>2]|0),I1[r&31](u,e),u=kc(u)|0,y=s,u|0}function kc(e){e=e|0;var n=0,r=0,u=0,s=0;return s=y,y=y+32|0,n=s+12|0,r=s,u=Pu(Hd()|0)|0,u?(rs(n,u),Mf(r,n),cv(e,r),e=Cs(n)|0):e=O1(e)|0,y=s,e|0}function Hd(){var e=0;return h[7736]|0||(Wo(9640),Wt(25,9640,ge|0)|0,e=7736,t[e>>2]=1,t[e+4>>2]=0),9640}function cv(e,n){e=e|0,n=n|0,Nc(n,e,e+8|0)|0}function O1(e){e=e|0;var n=0,r=0,u=0,s=0,a=0,v=0,w=0;return r=y,y=y+16|0,s=r+4|0,v=r,u=Oa(8)|0,n=u,w=pn(16)|0,t[w>>2]=t[e>>2],t[w+4>>2]=t[e+4>>2],t[w+8>>2]=t[e+8>>2],t[w+12>>2]=t[e+12>>2],a=n+4|0,t[a>>2]=w,e=pn(8)|0,a=t[a>>2]|0,t[v>>2]=0,t[s>>2]=t[v>>2],Bf(e,a,s),t[u>>2]=e,y=r,n|0}function Bf(e,n,r){e=e|0,n=n|0,r=r|0,t[e>>2]=n,r=pn(16)|0,t[r+4>>2]=0,t[r+8>>2]=0,t[r>>2]=1244,t[r+12>>2]=n,t[e+4>>2]=r}function Uf(e){e=e|0,Uv(e),Et(e)}function M1(e){e=e|0,e=t[e+12>>2]|0,e|0&&Et(e)}function jl(e){e=e|0,Et(e)}function Nc(e,n,r){return e=e|0,n=n|0,r=r|0,n=jf(t[e>>2]|0,n,r)|0,r=e+4|0,t[(t[r>>2]|0)+8>>2]=n,t[(t[r>>2]|0)+8>>2]|0}function jf(e,n,r){e=e|0,n=n|0,r=r|0;var u=0,s=0;return u=y,y=y+16|0,s=u,Ma(s),e=go(e)|0,r=qm(e,t[n>>2]|0,+j[r>>3])|0,ka(s),y=u,r|0}function qm(e,n,r){e=e|0,n=n|0,r=+r;var u=0;return u=_o(yl()|0)|0,n=sd(n)|0,Hr(0,u|0,e|0,n|0,+ +kl(r))|0}function yl(){var e=0;return h[7728]|0||(qd(9628),e=7728,t[e>>2]=1,t[e+4>>2]=0),9628}function qd(e){e=e|0,ll(e,Wd()|0,2)}function Wd(){return 1264}function Wo(e){e=e|0,Xa(e)}function Vd(e,n,r){e=e|0,n=n|0,r=r|0;var u=0,s=0,a=0,v=0,w=0;u=y,y=y+16|0,s=u+8|0,a=u,w=t[r>>2]|0,v=t[r+4>>2]|0,r=Fr(n)|0,t[a>>2]=w,t[a+4>>2]=v,t[s>>2]=t[a>>2],t[s+4>>2]=t[a+4>>2],Wm(e,r,s,1),y=u}function Wm(e,n,r,u){e=e|0,n=n|0,r=r|0,u=u|0;var s=0,a=0,v=0,w=0,T=0,L=0,M=0;s=y,y=y+32|0,a=s+16|0,M=s+8|0,w=s,L=t[r>>2]|0,T=t[r+4>>2]|0,v=t[e>>2]|0,e=k1()|0,t[M>>2]=L,t[M+4>>2]=T,t[a>>2]=t[M>>2],t[a+4>>2]=t[M+4>>2],r=Vm(a)|0,t[w>>2]=L,t[w+4>>2]=T,t[a>>2]=t[w>>2],t[a+4>>2]=t[w+4>>2],wi(v,n,e,r,Gm(a,u)|0,u),y=s}function k1(){var e=0,n=0;if(h[7744]|0||(hv(9684),Wt(37,9684,ge|0)|0,n=7744,t[n>>2]=1,t[n+4>>2]=0),!(sr(9684)|0)){e=9684,n=e+36|0;do t[e>>2]=0,e=e+4|0;while((e|0)<(n|0));hv(9684)}return 9684}function Vm(e){return e=e|0,0}function Gm(e,n){e=e|0,n=n|0;var r=0,u=0,s=0,a=0,v=0,w=0,T=0,L=0,M=0,b=0;return M=y,y=y+32|0,s=M+24|0,v=M+16|0,w=M,T=M+8|0,a=t[e>>2]|0,u=t[e+4>>2]|0,t[w>>2]=a,t[w+4>>2]=u,b=k1()|0,L=b+24|0,e=hn(n,4)|0,t[T>>2]=e,n=b+28|0,r=t[n>>2]|0,r>>>0<(t[b+32>>2]|0)>>>0?(t[v>>2]=a,t[v+4>>2]=u,t[s>>2]=t[v>>2],t[s+4>>2]=t[v+4>>2],dv(r,s,e),e=(t[n>>2]|0)+12|0,t[n>>2]=e):(Ym(L,w,T),e=t[n>>2]|0),y=M,((e-(t[L>>2]|0)|0)/12|0)+-1|0}function dv(e,n,r){e=e|0,n=n|0,r=r|0;var u=0;u=t[n+4>>2]|0,t[e>>2]=t[n>>2],t[e+4>>2]=u,t[e+8>>2]=r}function Ym(e,n,r){e=e|0,n=n|0,r=r|0;var u=0,s=0,a=0,v=0,w=0,T=0,L=0,M=0,b=0,X=0;if(L=y,y=y+48|0,u=L+32|0,v=L+24|0,w=L,T=e+4|0,s=(((t[T>>2]|0)-(t[e>>2]|0)|0)/12|0)+1|0,a=pv(e)|0,a>>>0>>0)di(e);else{M=t[e>>2]|0,X=((t[e+8>>2]|0)-M|0)/12|0,b=X<<1,Km(w,X>>>0>>1>>>0?b>>>0>>0?s:b:a,((t[T>>2]|0)-M|0)/12|0,e+8|0),T=w+8|0,a=t[T>>2]|0,s=t[n+4>>2]|0,r=t[r>>2]|0,t[v>>2]=t[n>>2],t[v+4>>2]=s,t[u>>2]=t[v>>2],t[u+4>>2]=t[v+4>>2],dv(a,u,r),t[T>>2]=(t[T>>2]|0)+12,Xm(e,w),Qm(w),y=L;return}}function pv(e){return e=e|0,357913941}function Km(e,n,r,u){e=e|0,n=n|0,r=r|0,u=u|0;var s=0;t[e+12>>2]=0,t[e+16>>2]=u;do if(n)if(n>>>0>357913941)$n();else{s=pn(n*12|0)|0;break}else s=0;while(0);t[e>>2]=s,u=s+(r*12|0)|0,t[e+8>>2]=u,t[e+4>>2]=u,t[e+12>>2]=s+(n*12|0)}function Xm(e,n){e=e|0,n=n|0;var r=0,u=0,s=0,a=0,v=0;u=t[e>>2]|0,v=e+4|0,a=n+4|0,s=(t[v>>2]|0)-u|0,r=(t[a>>2]|0)+(((s|0)/-12|0)*12|0)|0,t[a>>2]=r,(s|0)>0?(gr(r|0,u|0,s|0)|0,u=a,r=t[a>>2]|0):u=a,a=t[e>>2]|0,t[e>>2]=r,t[u>>2]=a,a=n+8|0,s=t[v>>2]|0,t[v>>2]=t[a>>2],t[a>>2]=s,a=e+8|0,v=n+12|0,e=t[a>>2]|0,t[a>>2]=t[v>>2],t[v>>2]=e,t[n>>2]=t[u>>2]}function Qm(e){e=e|0;var n=0,r=0,u=0;n=t[e+4>>2]|0,r=e+8|0,u=t[r>>2]|0,(u|0)!=(n|0)&&(t[r>>2]=u+(~(((u+-12-n|0)>>>0)/12|0)*12|0)),e=t[e>>2]|0,e|0&&Et(e)}function hv(e){e=e|0,Zm(e)}function Jm(e){e=e|0,Rp(e+24|0)}function Rp(e){e=e|0;var n=0,r=0,u=0;r=t[e>>2]|0,u=r,r|0&&(e=e+4|0,n=t[e>>2]|0,(n|0)!=(r|0)&&(t[e>>2]=n+(~(((n+-12-u|0)>>>0)/12|0)*12|0)),Et(r))}function Zm(e){e=e|0;var n=0;n=yr()|0,jn(e,2,5,n,zf()|0,1),t[e+24>>2]=0,t[e+28>>2]=0,t[e+32>>2]=0}function zf(){return 1280}function vv(e,n,r){e=e|0,n=n|0,r=r|0;var u=0,s=0,a=0,v=0;return u=y,y=y+16|0,s=u+8|0,a=u,v=mv(e)|0,e=t[v+4>>2]|0,t[a>>2]=t[v>>2],t[a+4>>2]=e,t[s>>2]=t[a>>2],t[s+4>>2]=t[a+4>>2],r=yv(n,s,r)|0,y=u,r|0}function mv(e){return e=e|0,(t[(k1()|0)+24>>2]|0)+(e*12|0)|0}function yv(e,n,r){e=e|0,n=n|0,r=r|0;var u=0,s=0,a=0,v=0;return v=y,y=y+32|0,s=v,a=v+16|0,u=t[n>>2]|0,n=t[n+4>>2]|0,e=e+(n>>1)|0,n&1&&(u=t[(t[e>>2]|0)+u>>2]|0),xs(a,r),a=Gs(a,r)|0,Fy[u&15](s,e,a),a=kc(s)|0,y=v,a|0}function Gd(e,n,r){e=e|0,n=n|0,r=r|0;var u=0,s=0,a=0,v=0,w=0;u=y,y=y+16|0,s=u+8|0,a=u,w=t[r>>2]|0,v=t[r+4>>2]|0,r=Fr(n)|0,t[a>>2]=w,t[a+4>>2]=v,t[s>>2]=t[a>>2],t[s+4>>2]=t[a+4>>2],Yd(e,r,s,1),y=u}function Yd(e,n,r,u){e=e|0,n=n|0,r=r|0,u=u|0;var s=0,a=0,v=0,w=0,T=0,L=0,M=0;s=y,y=y+32|0,a=s+16|0,M=s+8|0,w=s,L=t[r>>2]|0,T=t[r+4>>2]|0,v=t[e>>2]|0,e=Ap()|0,t[M>>2]=L,t[M+4>>2]=T,t[a>>2]=t[M>>2],t[a+4>>2]=t[M+4>>2],r=gv(a)|0,t[w>>2]=L,t[w+4>>2]=T,t[a>>2]=t[w>>2],t[a+4>>2]=t[w+4>>2],wi(v,n,e,r,Kd(a,u)|0,u),y=s}function Ap(){var e=0,n=0;if(h[7752]|0||(Sv(9720),Wt(38,9720,ge|0)|0,n=7752,t[n>>2]=1,t[n+4>>2]=0),!(sr(9720)|0)){e=9720,n=e+36|0;do t[e>>2]=0,e=e+4|0;while((e|0)<(n|0));Sv(9720)}return 9720}function gv(e){return e=e|0,0}function Kd(e,n){e=e|0,n=n|0;var r=0,u=0,s=0,a=0,v=0,w=0,T=0,L=0,M=0,b=0;return M=y,y=y+32|0,s=M+24|0,v=M+16|0,w=M,T=M+8|0,a=t[e>>2]|0,u=t[e+4>>2]|0,t[w>>2]=a,t[w+4>>2]=u,b=Ap()|0,L=b+24|0,e=hn(n,4)|0,t[T>>2]=e,n=b+28|0,r=t[n>>2]|0,r>>>0<(t[b+32>>2]|0)>>>0?(t[v>>2]=a,t[v+4>>2]=u,t[s>>2]=t[v>>2],t[s+4>>2]=t[v+4>>2],_v(r,s,e),e=(t[n>>2]|0)+12|0,t[n>>2]=e):(Ev(L,w,T),e=t[n>>2]|0),y=M,((e-(t[L>>2]|0)|0)/12|0)+-1|0}function _v(e,n,r){e=e|0,n=n|0,r=r|0;var u=0;u=t[n+4>>2]|0,t[e>>2]=t[n>>2],t[e+4>>2]=u,t[e+8>>2]=r}function Ev(e,n,r){e=e|0,n=n|0,r=r|0;var u=0,s=0,a=0,v=0,w=0,T=0,L=0,M=0,b=0,X=0;if(L=y,y=y+48|0,u=L+32|0,v=L+24|0,w=L,T=e+4|0,s=(((t[T>>2]|0)-(t[e>>2]|0)|0)/12|0)+1|0,a=Op(e)|0,a>>>0>>0)di(e);else{M=t[e>>2]|0,X=((t[e+8>>2]|0)-M|0)/12|0,b=X<<1,Dv(w,X>>>0>>1>>>0?b>>>0>>0?s:b:a,((t[T>>2]|0)-M|0)/12|0,e+8|0),T=w+8|0,a=t[T>>2]|0,s=t[n+4>>2]|0,r=t[r>>2]|0,t[v>>2]=t[n>>2],t[v+4>>2]=s,t[u>>2]=t[v>>2],t[u+4>>2]=t[v+4>>2],_v(a,u,r),t[T>>2]=(t[T>>2]|0)+12,wv(e,w),$m(w),y=L;return}}function Op(e){return e=e|0,357913941}function Dv(e,n,r,u){e=e|0,n=n|0,r=r|0,u=u|0;var s=0;t[e+12>>2]=0,t[e+16>>2]=u;do if(n)if(n>>>0>357913941)$n();else{s=pn(n*12|0)|0;break}else s=0;while(0);t[e>>2]=s,u=s+(r*12|0)|0,t[e+8>>2]=u,t[e+4>>2]=u,t[e+12>>2]=s+(n*12|0)}function wv(e,n){e=e|0,n=n|0;var r=0,u=0,s=0,a=0,v=0;u=t[e>>2]|0,v=e+4|0,a=n+4|0,s=(t[v>>2]|0)-u|0,r=(t[a>>2]|0)+(((s|0)/-12|0)*12|0)|0,t[a>>2]=r,(s|0)>0?(gr(r|0,u|0,s|0)|0,u=a,r=t[a>>2]|0):u=a,a=t[e>>2]|0,t[e>>2]=r,t[u>>2]=a,a=n+8|0,s=t[v>>2]|0,t[v>>2]=t[a>>2],t[a>>2]=s,a=e+8|0,v=n+12|0,e=t[a>>2]|0,t[a>>2]=t[v>>2],t[v>>2]=e,t[n>>2]=t[u>>2]}function $m(e){e=e|0;var n=0,r=0,u=0;n=t[e+4>>2]|0,r=e+8|0,u=t[r>>2]|0,(u|0)!=(n|0)&&(t[r>>2]=u+(~(((u+-12-n|0)>>>0)/12|0)*12|0)),e=t[e>>2]|0,e|0&&Et(e)}function Sv(e){e=e|0,Tv(e)}function ey(e){e=e|0,Xd(e+24|0)}function Xd(e){e=e|0;var n=0,r=0,u=0;r=t[e>>2]|0,u=r,r|0&&(e=e+4|0,n=t[e>>2]|0,(n|0)!=(r|0)&&(t[e>>2]=n+(~(((n+-12-u|0)>>>0)/12|0)*12|0)),Et(r))}function Tv(e){e=e|0;var n=0;n=yr()|0,jn(e,2,8,n,Mp()|0,0),t[e+24>>2]=0,t[e+28>>2]=0,t[e+32>>2]=0}function Mp(){return 1288}function ty(e,n){e=e|0,n=n|0;var r=0,u=0,s=0,a=0;return r=y,y=y+16|0,u=r+8|0,s=r,a=l0(e)|0,e=t[a+4>>2]|0,t[s>>2]=t[a>>2],t[s+4>>2]=e,t[u>>2]=t[s>>2],t[u+4>>2]=t[s+4>>2],n=kp(n,u)|0,y=r,n|0}function l0(e){return e=e|0,(t[(Ap()|0)+24>>2]|0)+(e*12|0)|0}function kp(e,n){e=e|0,n=n|0;var r=0;return r=t[n>>2]|0,n=t[n+4>>2]|0,e=e+(n>>1)|0,n&1&&(r=t[(t[e>>2]|0)+r>>2]|0),cd(Qp[r&31](e)|0)|0}function ny(e,n,r){e=e|0,n=n|0,r=r|0;var u=0,s=0,a=0,v=0,w=0;u=y,y=y+16|0,s=u+8|0,a=u,w=t[r>>2]|0,v=t[r+4>>2]|0,r=Fr(n)|0,t[a>>2]=w,t[a+4>>2]=v,t[s>>2]=t[a>>2],t[s+4>>2]=t[a+4>>2],ry(e,r,s,0),y=u}function ry(e,n,r,u){e=e|0,n=n|0,r=r|0,u=u|0;var s=0,a=0,v=0,w=0,T=0,L=0,M=0;s=y,y=y+32|0,a=s+16|0,M=s+8|0,w=s,L=t[r>>2]|0,T=t[r+4>>2]|0,v=t[e>>2]|0,e=Np()|0,t[M>>2]=L,t[M+4>>2]=T,t[a>>2]=t[M>>2],t[a+4>>2]=t[M+4>>2],r=tf(a)|0,t[w>>2]=L,t[w+4>>2]=T,t[a>>2]=t[w>>2],t[a+4>>2]=t[w+4>>2],wi(v,n,e,r,Lp(a,u)|0,u),y=s}function Np(){var e=0,n=0;if(h[7760]|0||(Ip(9756),Wt(39,9756,ge|0)|0,n=7760,t[n>>2]=1,t[n+4>>2]=0),!(sr(9756)|0)){e=9756,n=e+36|0;do t[e>>2]=0,e=e+4|0;while((e|0)<(n|0));Ip(9756)}return 9756}function tf(e){return e=e|0,0}function Lp(e,n){e=e|0,n=n|0;var r=0,u=0,s=0,a=0,v=0,w=0,T=0,L=0,M=0,b=0;return M=y,y=y+32|0,s=M+24|0,v=M+16|0,w=M,T=M+8|0,a=t[e>>2]|0,u=t[e+4>>2]|0,t[w>>2]=a,t[w+4>>2]=u,b=Np()|0,L=b+24|0,e=hn(n,4)|0,t[T>>2]=e,n=b+28|0,r=t[n>>2]|0,r>>>0<(t[b+32>>2]|0)>>>0?(t[v>>2]=a,t[v+4>>2]=u,t[s>>2]=t[v>>2],t[s+4>>2]=t[v+4>>2],Fp(r,s,e),e=(t[n>>2]|0)+12|0,t[n>>2]=e):(Pp(L,w,T),e=t[n>>2]|0),y=M,((e-(t[L>>2]|0)|0)/12|0)+-1|0}function Fp(e,n,r){e=e|0,n=n|0,r=r|0;var u=0;u=t[n+4>>2]|0,t[e>>2]=t[n>>2],t[e+4>>2]=u,t[e+8>>2]=r}function Pp(e,n,r){e=e|0,n=n|0,r=r|0;var u=0,s=0,a=0,v=0,w=0,T=0,L=0,M=0,b=0,X=0;if(L=y,y=y+48|0,u=L+32|0,v=L+24|0,w=L,T=e+4|0,s=(((t[T>>2]|0)-(t[e>>2]|0)|0)/12|0)+1|0,a=iy(e)|0,a>>>0>>0)di(e);else{M=t[e>>2]|0,X=((t[e+8>>2]|0)-M|0)/12|0,b=X<<1,uy(w,X>>>0>>1>>>0?b>>>0>>0?s:b:a,((t[T>>2]|0)-M|0)/12|0,e+8|0),T=w+8|0,a=t[T>>2]|0,s=t[n+4>>2]|0,r=t[r>>2]|0,t[v>>2]=t[n>>2],t[v+4>>2]=s,t[u>>2]=t[v>>2],t[u+4>>2]=t[v+4>>2],Fp(a,u,r),t[T>>2]=(t[T>>2]|0)+12,Cv(e,w),Hf(w),y=L;return}}function iy(e){return e=e|0,357913941}function uy(e,n,r,u){e=e|0,n=n|0,r=r|0,u=u|0;var s=0;t[e+12>>2]=0,t[e+16>>2]=u;do if(n)if(n>>>0>357913941)$n();else{s=pn(n*12|0)|0;break}else s=0;while(0);t[e>>2]=s,u=s+(r*12|0)|0,t[e+8>>2]=u,t[e+4>>2]=u,t[e+12>>2]=s+(n*12|0)}function Cv(e,n){e=e|0,n=n|0;var r=0,u=0,s=0,a=0,v=0;u=t[e>>2]|0,v=e+4|0,a=n+4|0,s=(t[v>>2]|0)-u|0,r=(t[a>>2]|0)+(((s|0)/-12|0)*12|0)|0,t[a>>2]=r,(s|0)>0?(gr(r|0,u|0,s|0)|0,u=a,r=t[a>>2]|0):u=a,a=t[e>>2]|0,t[e>>2]=r,t[u>>2]=a,a=n+8|0,s=t[v>>2]|0,t[v>>2]=t[a>>2],t[a>>2]=s,a=e+8|0,v=n+12|0,e=t[a>>2]|0,t[a>>2]=t[v>>2],t[v>>2]=e,t[n>>2]=t[u>>2]}function Hf(e){e=e|0;var n=0,r=0,u=0;n=t[e+4>>2]|0,r=e+8|0,u=t[r>>2]|0,(u|0)!=(n|0)&&(t[r>>2]=u+(~(((u+-12-n|0)>>>0)/12|0)*12|0)),e=t[e>>2]|0,e|0&&Et(e)}function Ip(e){e=e|0,ly(e)}function xv(e){e=e|0,oy(e+24|0)}function oy(e){e=e|0;var n=0,r=0,u=0;r=t[e>>2]|0,u=r,r|0&&(e=e+4|0,n=t[e>>2]|0,(n|0)!=(r|0)&&(t[e>>2]=n+(~(((n+-12-u|0)>>>0)/12|0)*12|0)),Et(r))}function ly(e){e=e|0;var n=0;n=yr()|0,jn(e,2,8,n,bp()|0,1),t[e+24>>2]=0,t[e+28>>2]=0,t[e+32>>2]=0}function bp(){return 1292}function Bp(e,n,r){e=e|0,n=n|0,r=+r;var u=0,s=0,a=0,v=0;u=y,y=y+16|0,s=u+8|0,a=u,v=sy(e)|0,e=t[v+4>>2]|0,t[a>>2]=t[v>>2],t[a+4>>2]=e,t[s>>2]=t[a>>2],t[s+4>>2]=t[a+4>>2],ay(n,s,r),y=u}function sy(e){return e=e|0,(t[(Np()|0)+24>>2]|0)+(e*12|0)|0}function ay(e,n,r){e=e|0,n=n|0,r=+r;var u=0,s=0,a=0;a=y,y=y+16|0,s=a,u=t[n>>2]|0,n=t[n+4>>2]|0,e=e+(n>>1)|0,n&1&&(u=t[(t[e>>2]|0)+u>>2]|0),Pl(s,r),r=+us(s,r),k8[u&31](e,r),y=a}function Rv(e,n,r){e=e|0,n=n|0,r=r|0;var u=0,s=0,a=0,v=0,w=0;u=y,y=y+16|0,s=u+8|0,a=u,w=t[r>>2]|0,v=t[r+4>>2]|0,r=Fr(n)|0,t[a>>2]=w,t[a+4>>2]=v,t[s>>2]=t[a>>2],t[s+4>>2]=t[a+4>>2],Up(e,r,s,0),y=u}function Up(e,n,r,u){e=e|0,n=n|0,r=r|0,u=u|0;var s=0,a=0,v=0,w=0,T=0,L=0,M=0;s=y,y=y+32|0,a=s+16|0,M=s+8|0,w=s,L=t[r>>2]|0,T=t[r+4>>2]|0,v=t[e>>2]|0,e=jp()|0,t[M>>2]=L,t[M+4>>2]=T,t[a>>2]=t[M>>2],t[a+4>>2]=t[M+4>>2],r=Qd(a)|0,t[w>>2]=L,t[w+4>>2]=T,t[a>>2]=t[w>>2],t[a+4>>2]=t[w+4>>2],wi(v,n,e,r,fy(a,u)|0,u),y=s}function jp(){var e=0,n=0;if(h[7768]|0||(zp(9792),Wt(40,9792,ge|0)|0,n=7768,t[n>>2]=1,t[n+4>>2]=0),!(sr(9792)|0)){e=9792,n=e+36|0;do t[e>>2]=0,e=e+4|0;while((e|0)<(n|0));zp(9792)}return 9792}function Qd(e){return e=e|0,0}function fy(e,n){e=e|0,n=n|0;var r=0,u=0,s=0,a=0,v=0,w=0,T=0,L=0,M=0,b=0;return M=y,y=y+32|0,s=M+24|0,v=M+16|0,w=M,T=M+8|0,a=t[e>>2]|0,u=t[e+4>>2]|0,t[w>>2]=a,t[w+4>>2]=u,b=jp()|0,L=b+24|0,e=hn(n,4)|0,t[T>>2]=e,n=b+28|0,r=t[n>>2]|0,r>>>0<(t[b+32>>2]|0)>>>0?(t[v>>2]=a,t[v+4>>2]=u,t[s>>2]=t[v>>2],t[s+4>>2]=t[v+4>>2],N1(r,s,e),e=(t[n>>2]|0)+12|0,t[n>>2]=e):(cy(L,w,T),e=t[n>>2]|0),y=M,((e-(t[L>>2]|0)|0)/12|0)+-1|0}function N1(e,n,r){e=e|0,n=n|0,r=r|0;var u=0;u=t[n+4>>2]|0,t[e>>2]=t[n>>2],t[e+4>>2]=u,t[e+8>>2]=r}function cy(e,n,r){e=e|0,n=n|0,r=r|0;var u=0,s=0,a=0,v=0,w=0,T=0,L=0,M=0,b=0,X=0;if(L=y,y=y+48|0,u=L+32|0,v=L+24|0,w=L,T=e+4|0,s=(((t[T>>2]|0)-(t[e>>2]|0)|0)/12|0)+1|0,a=Av(e)|0,a>>>0>>0)di(e);else{M=t[e>>2]|0,X=((t[e+8>>2]|0)-M|0)/12|0,b=X<<1,Ov(w,X>>>0>>1>>>0?b>>>0>>0?s:b:a,((t[T>>2]|0)-M|0)/12|0,e+8|0),T=w+8|0,a=t[T>>2]|0,s=t[n+4>>2]|0,r=t[r>>2]|0,t[v>>2]=t[n>>2],t[v+4>>2]=s,t[u>>2]=t[v>>2],t[u+4>>2]=t[v+4>>2],N1(a,u,r),t[T>>2]=(t[T>>2]|0)+12,dy(e,w),qf(w),y=L;return}}function Av(e){return e=e|0,357913941}function Ov(e,n,r,u){e=e|0,n=n|0,r=r|0,u=u|0;var s=0;t[e+12>>2]=0,t[e+16>>2]=u;do if(n)if(n>>>0>357913941)$n();else{s=pn(n*12|0)|0;break}else s=0;while(0);t[e>>2]=s,u=s+(r*12|0)|0,t[e+8>>2]=u,t[e+4>>2]=u,t[e+12>>2]=s+(n*12|0)}function dy(e,n){e=e|0,n=n|0;var r=0,u=0,s=0,a=0,v=0;u=t[e>>2]|0,v=e+4|0,a=n+4|0,s=(t[v>>2]|0)-u|0,r=(t[a>>2]|0)+(((s|0)/-12|0)*12|0)|0,t[a>>2]=r,(s|0)>0?(gr(r|0,u|0,s|0)|0,u=a,r=t[a>>2]|0):u=a,a=t[e>>2]|0,t[e>>2]=r,t[u>>2]=a,a=n+8|0,s=t[v>>2]|0,t[v>>2]=t[a>>2],t[a>>2]=s,a=e+8|0,v=n+12|0,e=t[a>>2]|0,t[a>>2]=t[v>>2],t[v>>2]=e,t[n>>2]=t[u>>2]}function qf(e){e=e|0;var n=0,r=0,u=0;n=t[e+4>>2]|0,r=e+8|0,u=t[r>>2]|0,(u|0)!=(n|0)&&(t[r>>2]=u+(~(((u+-12-n|0)>>>0)/12|0)*12|0)),e=t[e>>2]|0,e|0&&Et(e)}function zp(e){e=e|0,hy(e)}function Mv(e){e=e|0,py(e+24|0)}function py(e){e=e|0;var n=0,r=0,u=0;r=t[e>>2]|0,u=r,r|0&&(e=e+4|0,n=t[e>>2]|0,(n|0)!=(r|0)&&(t[e>>2]=n+(~(((n+-12-u|0)>>>0)/12|0)*12|0)),Et(r))}function hy(e){e=e|0;var n=0;n=yr()|0,jn(e,2,1,n,Hp()|0,2),t[e+24>>2]=0,t[e+28>>2]=0,t[e+32>>2]=0}function Hp(){return 1300}function vy(e,n,r,u){e=e|0,n=n|0,r=r|0,u=+u;var s=0,a=0,v=0,w=0;s=y,y=y+16|0,a=s+8|0,v=s,w=Zs(e)|0,e=t[w+4>>2]|0,t[v>>2]=t[w>>2],t[v+4>>2]=e,t[a>>2]=t[v>>2],t[a+4>>2]=t[v+4>>2],my(n,a,r,u),y=s}function Zs(e){return e=e|0,(t[(jp()|0)+24>>2]|0)+(e*12|0)|0}function my(e,n,r,u){e=e|0,n=n|0,r=r|0,u=+u;var s=0,a=0,v=0,w=0;w=y,y=y+16|0,a=w+1|0,v=w,s=t[n>>2]|0,n=t[n+4>>2]|0,e=e+(n>>1)|0,n&1&&(s=t[(t[e>>2]|0)+s>>2]|0),xs(a,r),a=Gs(a,r)|0,Pl(v,u),u=+us(v,u),U8[s&15](e,a,u),y=w}function p(e,n,r){e=e|0,n=n|0,r=r|0;var u=0,s=0,a=0,v=0,w=0;u=y,y=y+16|0,s=u+8|0,a=u,w=t[r>>2]|0,v=t[r+4>>2]|0,r=Fr(n)|0,t[a>>2]=w,t[a+4>>2]=v,t[s>>2]=t[a>>2],t[s+4>>2]=t[a+4>>2],m(e,r,s,0),y=u}function m(e,n,r,u){e=e|0,n=n|0,r=r|0,u=u|0;var s=0,a=0,v=0,w=0,T=0,L=0,M=0;s=y,y=y+32|0,a=s+16|0,M=s+8|0,w=s,L=t[r>>2]|0,T=t[r+4>>2]|0,v=t[e>>2]|0,e=R()|0,t[M>>2]=L,t[M+4>>2]=T,t[a>>2]=t[M>>2],t[a+4>>2]=t[M+4>>2],r=I(a)|0,t[w>>2]=L,t[w+4>>2]=T,t[a>>2]=t[w>>2],t[a+4>>2]=t[w+4>>2],wi(v,n,e,r,W(a,u)|0,u),y=s}function R(){var e=0,n=0;if(h[7776]|0||(Ot(9828),Wt(41,9828,ge|0)|0,n=7776,t[n>>2]=1,t[n+4>>2]=0),!(sr(9828)|0)){e=9828,n=e+36|0;do t[e>>2]=0,e=e+4|0;while((e|0)<(n|0));Ot(9828)}return 9828}function I(e){return e=e|0,0}function W(e,n){e=e|0,n=n|0;var r=0,u=0,s=0,a=0,v=0,w=0,T=0,L=0,M=0,b=0;return M=y,y=y+32|0,s=M+24|0,v=M+16|0,w=M,T=M+8|0,a=t[e>>2]|0,u=t[e+4>>2]|0,t[w>>2]=a,t[w+4>>2]=u,b=R()|0,L=b+24|0,e=hn(n,4)|0,t[T>>2]=e,n=b+28|0,r=t[n>>2]|0,r>>>0<(t[b+32>>2]|0)>>>0?(t[v>>2]=a,t[v+4>>2]=u,t[s>>2]=t[v>>2],t[s+4>>2]=t[v+4>>2],te(r,s,e),e=(t[n>>2]|0)+12|0,t[n>>2]=e):(pe(L,w,T),e=t[n>>2]|0),y=M,((e-(t[L>>2]|0)|0)/12|0)+-1|0}function te(e,n,r){e=e|0,n=n|0,r=r|0;var u=0;u=t[n+4>>2]|0,t[e>>2]=t[n>>2],t[e+4>>2]=u,t[e+8>>2]=r}function pe(e,n,r){e=e|0,n=n|0,r=r|0;var u=0,s=0,a=0,v=0,w=0,T=0,L=0,M=0,b=0,X=0;if(L=y,y=y+48|0,u=L+32|0,v=L+24|0,w=L,T=e+4|0,s=(((t[T>>2]|0)-(t[e>>2]|0)|0)/12|0)+1|0,a=Ee(e)|0,a>>>0>>0)di(e);else{M=t[e>>2]|0,X=((t[e+8>>2]|0)-M|0)/12|0,b=X<<1,be(w,X>>>0>>1>>>0?b>>>0>>0?s:b:a,((t[T>>2]|0)-M|0)/12|0,e+8|0),T=w+8|0,a=t[T>>2]|0,s=t[n+4>>2]|0,r=t[r>>2]|0,t[v>>2]=t[n>>2],t[v+4>>2]=s,t[u>>2]=t[v>>2],t[u+4>>2]=t[v+4>>2],te(a,u,r),t[T>>2]=(t[T>>2]|0)+12,Dt(e,w),Tt(w),y=L;return}}function Ee(e){return e=e|0,357913941}function be(e,n,r,u){e=e|0,n=n|0,r=r|0,u=u|0;var s=0;t[e+12>>2]=0,t[e+16>>2]=u;do if(n)if(n>>>0>357913941)$n();else{s=pn(n*12|0)|0;break}else s=0;while(0);t[e>>2]=s,u=s+(r*12|0)|0,t[e+8>>2]=u,t[e+4>>2]=u,t[e+12>>2]=s+(n*12|0)}function Dt(e,n){e=e|0,n=n|0;var r=0,u=0,s=0,a=0,v=0;u=t[e>>2]|0,v=e+4|0,a=n+4|0,s=(t[v>>2]|0)-u|0,r=(t[a>>2]|0)+(((s|0)/-12|0)*12|0)|0,t[a>>2]=r,(s|0)>0?(gr(r|0,u|0,s|0)|0,u=a,r=t[a>>2]|0):u=a,a=t[e>>2]|0,t[e>>2]=r,t[u>>2]=a,a=n+8|0,s=t[v>>2]|0,t[v>>2]=t[a>>2],t[a>>2]=s,a=e+8|0,v=n+12|0,e=t[a>>2]|0,t[a>>2]=t[v>>2],t[v>>2]=e,t[n>>2]=t[u>>2]}function Tt(e){e=e|0;var n=0,r=0,u=0;n=t[e+4>>2]|0,r=e+8|0,u=t[r>>2]|0,(u|0)!=(n|0)&&(t[r>>2]=u+(~(((u+-12-n|0)>>>0)/12|0)*12|0)),e=t[e>>2]|0,e|0&&Et(e)}function Ot(e){e=e|0,rr(e)}function on(e){e=e|0,Mn(e+24|0)}function Mn(e){e=e|0;var n=0,r=0,u=0;r=t[e>>2]|0,u=r,r|0&&(e=e+4|0,n=t[e>>2]|0,(n|0)!=(r|0)&&(t[e>>2]=n+(~(((n+-12-u|0)>>>0)/12|0)*12|0)),Et(r))}function rr(e){e=e|0;var n=0;n=yr()|0,jn(e,2,7,n,br()|0,1),t[e+24>>2]=0,t[e+28>>2]=0,t[e+32>>2]=0}function br(){return 1312}function ar(e,n,r){e=e|0,n=n|0,r=r|0;var u=0,s=0,a=0,v=0;u=y,y=y+16|0,s=u+8|0,a=u,v=ri(e)|0,e=t[v+4>>2]|0,t[a>>2]=t[v>>2],t[a+4>>2]=e,t[s>>2]=t[a>>2],t[s+4>>2]=t[a+4>>2],fi(n,s,r),y=u}function ri(e){return e=e|0,(t[(R()|0)+24>>2]|0)+(e*12|0)|0}function fi(e,n,r){e=e|0,n=n|0,r=r|0;var u=0,s=0,a=0;a=y,y=y+16|0,s=a,u=t[n>>2]|0,n=t[n+4>>2]|0,e=e+(n>>1)|0,n&1&&(u=t[(t[e>>2]|0)+u>>2]|0),xs(s,r),s=Gs(s,r)|0,I1[u&31](e,s),y=a}function zl(e,n,r){e=e|0,n=n|0,r=r|0;var u=0,s=0,a=0,v=0,w=0;u=y,y=y+16|0,s=u+8|0,a=u,w=t[r>>2]|0,v=t[r+4>>2]|0,r=Fr(n)|0,t[a>>2]=w,t[a+4>>2]=v,t[s>>2]=t[a>>2],t[s+4>>2]=t[a+4>>2],Zi(e,r,s,0),y=u}function Zi(e,n,r,u){e=e|0,n=n|0,r=r|0,u=u|0;var s=0,a=0,v=0,w=0,T=0,L=0,M=0;s=y,y=y+32|0,a=s+16|0,M=s+8|0,w=s,L=t[r>>2]|0,T=t[r+4>>2]|0,v=t[e>>2]|0,e=so()|0,t[M>>2]=L,t[M+4>>2]=T,t[a>>2]=t[M>>2],t[a+4>>2]=t[M+4>>2],r=s0(a)|0,t[w>>2]=L,t[w+4>>2]=T,t[a>>2]=t[w>>2],t[a+4>>2]=t[w+4>>2],wi(v,n,e,r,Os(a,u)|0,u),y=s}function so(){var e=0,n=0;if(h[7784]|0||(Vg(9864),Wt(42,9864,ge|0)|0,n=7784,t[n>>2]=1,t[n+4>>2]=0),!(sr(9864)|0)){e=9864,n=e+36|0;do t[e>>2]=0,e=e+4|0;while((e|0)<(n|0));Vg(9864)}return 9864}function s0(e){return e=e|0,0}function Os(e,n){e=e|0,n=n|0;var r=0,u=0,s=0,a=0,v=0,w=0,T=0,L=0,M=0,b=0;return M=y,y=y+32|0,s=M+24|0,v=M+16|0,w=M,T=M+8|0,a=t[e>>2]|0,u=t[e+4>>2]|0,t[w>>2]=a,t[w+4>>2]=u,b=so()|0,L=b+24|0,e=hn(n,4)|0,t[T>>2]=e,n=b+28|0,r=t[n>>2]|0,r>>>0<(t[b+32>>2]|0)>>>0?(t[v>>2]=a,t[v+4>>2]=u,t[s>>2]=t[v>>2],t[s+4>>2]=t[v+4>>2],Co(r,s,e),e=(t[n>>2]|0)+12|0,t[n>>2]=e):(kv(L,w,T),e=t[n>>2]|0),y=M,((e-(t[L>>2]|0)|0)/12|0)+-1|0}function Co(e,n,r){e=e|0,n=n|0,r=r|0;var u=0;u=t[n+4>>2]|0,t[e>>2]=t[n>>2],t[e+4>>2]=u,t[e+8>>2]=r}function kv(e,n,r){e=e|0,n=n|0,r=r|0;var u=0,s=0,a=0,v=0,w=0,T=0,L=0,M=0,b=0,X=0;if(L=y,y=y+48|0,u=L+32|0,v=L+24|0,w=L,T=e+4|0,s=(((t[T>>2]|0)-(t[e>>2]|0)|0)/12|0)+1|0,a=F4(e)|0,a>>>0>>0)di(e);else{M=t[e>>2]|0,X=((t[e+8>>2]|0)-M|0)/12|0,b=X<<1,yy(w,X>>>0>>1>>>0?b>>>0>>0?s:b:a,((t[T>>2]|0)-M|0)/12|0,e+8|0),T=w+8|0,a=t[T>>2]|0,s=t[n+4>>2]|0,r=t[r>>2]|0,t[v>>2]=t[n>>2],t[v+4>>2]=s,t[u>>2]=t[v>>2],t[u+4>>2]=t[v+4>>2],Co(a,u,r),t[T>>2]=(t[T>>2]|0)+12,gy(e,w),nf(w),y=L;return}}function F4(e){return e=e|0,357913941}function yy(e,n,r,u){e=e|0,n=n|0,r=r|0,u=u|0;var s=0;t[e+12>>2]=0,t[e+16>>2]=u;do if(n)if(n>>>0>357913941)$n();else{s=pn(n*12|0)|0;break}else s=0;while(0);t[e>>2]=s,u=s+(r*12|0)|0,t[e+8>>2]=u,t[e+4>>2]=u,t[e+12>>2]=s+(n*12|0)}function gy(e,n){e=e|0,n=n|0;var r=0,u=0,s=0,a=0,v=0;u=t[e>>2]|0,v=e+4|0,a=n+4|0,s=(t[v>>2]|0)-u|0,r=(t[a>>2]|0)+(((s|0)/-12|0)*12|0)|0,t[a>>2]=r,(s|0)>0?(gr(r|0,u|0,s|0)|0,u=a,r=t[a>>2]|0):u=a,a=t[e>>2]|0,t[e>>2]=r,t[u>>2]=a,a=n+8|0,s=t[v>>2]|0,t[v>>2]=t[a>>2],t[a>>2]=s,a=e+8|0,v=n+12|0,e=t[a>>2]|0,t[a>>2]=t[v>>2],t[v>>2]=e,t[n>>2]=t[u>>2]}function nf(e){e=e|0;var n=0,r=0,u=0;n=t[e+4>>2]|0,r=e+8|0,u=t[r>>2]|0,(u|0)!=(n|0)&&(t[r>>2]=u+(~(((u+-12-n|0)>>>0)/12|0)*12|0)),e=t[e>>2]|0,e|0&&Et(e)}function Vg(e){e=e|0,b4(e)}function P4(e){e=e|0,I4(e+24|0)}function I4(e){e=e|0;var n=0,r=0,u=0;r=t[e>>2]|0,u=r,r|0&&(e=e+4|0,n=t[e>>2]|0,(n|0)!=(r|0)&&(t[e>>2]=n+(~(((n+-12-u|0)>>>0)/12|0)*12|0)),Et(r))}function b4(e){e=e|0;var n=0;n=yr()|0,jn(e,2,8,n,B4()|0,1),t[e+24>>2]=0,t[e+28>>2]=0,t[e+32>>2]=0}function B4(){return 1320}function _y(e,n,r){e=e|0,n=n|0,r=r|0;var u=0,s=0,a=0,v=0;u=y,y=y+16|0,s=u+8|0,a=u,v=U4(e)|0,e=t[v+4>>2]|0,t[a>>2]=t[v>>2],t[a+4>>2]=e,t[s>>2]=t[a>>2],t[s+4>>2]=t[a+4>>2],j4(n,s,r),y=u}function U4(e){return e=e|0,(t[(so()|0)+24>>2]|0)+(e*12|0)|0}function j4(e,n,r){e=e|0,n=n|0,r=r|0;var u=0,s=0,a=0;a=y,y=y+16|0,s=a,u=t[n>>2]|0,n=t[n+4>>2]|0,e=e+(n>>1)|0,n&1&&(u=t[(t[e>>2]|0)+u>>2]|0),Ey(s,r),s=Gg(s,r)|0,I1[u&31](e,s),y=a}function Ey(e,n){e=e|0,n=n|0}function Gg(e,n){return e=e|0,n=n|0,z4(n)|0}function z4(e){return e=e|0,e|0}function H4(e,n,r){e=e|0,n=n|0,r=r|0;var u=0,s=0,a=0,v=0,w=0;u=y,y=y+16|0,s=u+8|0,a=u,w=t[r>>2]|0,v=t[r+4>>2]|0,r=Fr(n)|0,t[a>>2]=w,t[a+4>>2]=v,t[s>>2]=t[a>>2],t[s+4>>2]=t[a+4>>2],Yg(e,r,s,0),y=u}function Yg(e,n,r,u){e=e|0,n=n|0,r=r|0,u=u|0;var s=0,a=0,v=0,w=0,T=0,L=0,M=0;s=y,y=y+32|0,a=s+16|0,M=s+8|0,w=s,L=t[r>>2]|0,T=t[r+4>>2]|0,v=t[e>>2]|0,e=Wf()|0,t[M>>2]=L,t[M+4>>2]=T,t[a>>2]=t[M>>2],t[a+4>>2]=t[M+4>>2],r=Kg(a)|0,t[w>>2]=L,t[w+4>>2]=T,t[a>>2]=t[w>>2],t[a+4>>2]=t[w+4>>2],wi(v,n,e,r,q4(a,u)|0,u),y=s}function Wf(){var e=0,n=0;if(h[7792]|0||(Sy(9900),Wt(43,9900,ge|0)|0,n=7792,t[n>>2]=1,t[n+4>>2]=0),!(sr(9900)|0)){e=9900,n=e+36|0;do t[e>>2]=0,e=e+4|0;while((e|0)<(n|0));Sy(9900)}return 9900}function Kg(e){return e=e|0,0}function q4(e,n){e=e|0,n=n|0;var r=0,u=0,s=0,a=0,v=0,w=0,T=0,L=0,M=0,b=0;return M=y,y=y+32|0,s=M+24|0,v=M+16|0,w=M,T=M+8|0,a=t[e>>2]|0,u=t[e+4>>2]|0,t[w>>2]=a,t[w+4>>2]=u,b=Wf()|0,L=b+24|0,e=hn(n,4)|0,t[T>>2]=e,n=b+28|0,r=t[n>>2]|0,r>>>0<(t[b+32>>2]|0)>>>0?(t[v>>2]=a,t[v+4>>2]=u,t[s>>2]=t[v>>2],t[s+4>>2]=t[v+4>>2],qp(r,s,e),e=(t[n>>2]|0)+12|0,t[n>>2]=e):(W4(L,w,T),e=t[n>>2]|0),y=M,((e-(t[L>>2]|0)|0)/12|0)+-1|0}function qp(e,n,r){e=e|0,n=n|0,r=r|0;var u=0;u=t[n+4>>2]|0,t[e>>2]=t[n>>2],t[e+4>>2]=u,t[e+8>>2]=r}function W4(e,n,r){e=e|0,n=n|0,r=r|0;var u=0,s=0,a=0,v=0,w=0,T=0,L=0,M=0,b=0,X=0;if(L=y,y=y+48|0,u=L+32|0,v=L+24|0,w=L,T=e+4|0,s=(((t[T>>2]|0)-(t[e>>2]|0)|0)/12|0)+1|0,a=Nv(e)|0,a>>>0>>0)di(e);else{M=t[e>>2]|0,X=((t[e+8>>2]|0)-M|0)/12|0,b=X<<1,Dy(w,X>>>0>>1>>>0?b>>>0>>0?s:b:a,((t[T>>2]|0)-M|0)/12|0,e+8|0),T=w+8|0,a=t[T>>2]|0,s=t[n+4>>2]|0,r=t[r>>2]|0,t[v>>2]=t[n>>2],t[v+4>>2]=s,t[u>>2]=t[v>>2],t[u+4>>2]=t[v+4>>2],qp(a,u,r),t[T>>2]=(t[T>>2]|0)+12,wy(e,w),V4(w),y=L;return}}function Nv(e){return e=e|0,357913941}function Dy(e,n,r,u){e=e|0,n=n|0,r=r|0,u=u|0;var s=0;t[e+12>>2]=0,t[e+16>>2]=u;do if(n)if(n>>>0>357913941)$n();else{s=pn(n*12|0)|0;break}else s=0;while(0);t[e>>2]=s,u=s+(r*12|0)|0,t[e+8>>2]=u,t[e+4>>2]=u,t[e+12>>2]=s+(n*12|0)}function wy(e,n){e=e|0,n=n|0;var r=0,u=0,s=0,a=0,v=0;u=t[e>>2]|0,v=e+4|0,a=n+4|0,s=(t[v>>2]|0)-u|0,r=(t[a>>2]|0)+(((s|0)/-12|0)*12|0)|0,t[a>>2]=r,(s|0)>0?(gr(r|0,u|0,s|0)|0,u=a,r=t[a>>2]|0):u=a,a=t[e>>2]|0,t[e>>2]=r,t[u>>2]=a,a=n+8|0,s=t[v>>2]|0,t[v>>2]=t[a>>2],t[a>>2]=s,a=e+8|0,v=n+12|0,e=t[a>>2]|0,t[a>>2]=t[v>>2],t[v>>2]=e,t[n>>2]=t[u>>2]}function V4(e){e=e|0;var n=0,r=0,u=0;n=t[e+4>>2]|0,r=e+8|0,u=t[r>>2]|0,(u|0)!=(n|0)&&(t[r>>2]=u+(~(((u+-12-n|0)>>>0)/12|0)*12|0)),e=t[e>>2]|0,e|0&&Et(e)}function Sy(e){e=e|0,Xg(e)}function G4(e){e=e|0,Y4(e+24|0)}function Y4(e){e=e|0;var n=0,r=0,u=0;r=t[e>>2]|0,u=r,r|0&&(e=e+4|0,n=t[e>>2]|0,(n|0)!=(r|0)&&(t[e>>2]=n+(~(((n+-12-u|0)>>>0)/12|0)*12|0)),Et(r))}function Xg(e){e=e|0;var n=0;n=yr()|0,jn(e,2,22,n,K4()|0,0),t[e+24>>2]=0,t[e+28>>2]=0,t[e+32>>2]=0}function K4(){return 1344}function X4(e,n){e=e|0,n=n|0;var r=0,u=0,s=0,a=0;r=y,y=y+16|0,u=r+8|0,s=r,a=Qg(e)|0,e=t[a+4>>2]|0,t[s>>2]=t[a>>2],t[s+4>>2]=e,t[u>>2]=t[s>>2],t[u+4>>2]=t[s+4>>2],Lv(n,u),y=r}function Qg(e){return e=e|0,(t[(Wf()|0)+24>>2]|0)+(e*12|0)|0}function Lv(e,n){e=e|0,n=n|0;var r=0;r=t[n>>2]|0,n=t[n+4>>2]|0,e=e+(n>>1)|0,n&1&&(r=t[(t[e>>2]|0)+r>>2]|0),P1[r&127](e)}function Q4(e,n,r,u){e=e|0,n=n|0,r=r|0,u=u|0;var s=0,a=0;a=t[e>>2]|0,s=Ty()|0,e=J4(r)|0,wi(a,n,s,e,Z4(r,u)|0,u)}function Ty(){var e=0,n=0;if(h[7800]|0||(xy(9936),Wt(44,9936,ge|0)|0,n=7800,t[n>>2]=1,t[n+4>>2]=0),!(sr(9936)|0)){e=9936,n=e+36|0;do t[e>>2]=0,e=e+4|0;while((e|0)<(n|0));xy(9936)}return 9936}function J4(e){return e=e|0,e|0}function Z4(e,n){e=e|0,n=n|0;var r=0,u=0,s=0,a=0,v=0,w=0,T=0;return w=y,y=y+16|0,s=w,a=w+4|0,t[s>>2]=e,T=Ty()|0,v=T+24|0,n=hn(n,4)|0,t[a>>2]=n,r=T+28|0,u=t[r>>2]|0,u>>>0<(t[T+32>>2]|0)>>>0?(Cy(u,e,n),n=(t[r>>2]|0)+8|0,t[r>>2]=n):(Jg(v,s,a),n=t[r>>2]|0),y=w,(n-(t[v>>2]|0)>>3)+-1|0}function Cy(e,n,r){e=e|0,n=n|0,r=r|0,t[e>>2]=n,t[e+4>>2]=r}function Jg(e,n,r){e=e|0,n=n|0,r=r|0;var u=0,s=0,a=0,v=0,w=0,T=0,L=0,M=0;if(w=y,y=y+32|0,s=w,a=e+4|0,v=((t[a>>2]|0)-(t[e>>2]|0)>>3)+1|0,u=Zg(e)|0,u>>>0>>0)di(e);else{T=t[e>>2]|0,M=(t[e+8>>2]|0)-T|0,L=M>>2,$g(s,M>>3>>>0>>1>>>0?L>>>0>>0?v:L:u,(t[a>>2]|0)-T>>3,e+8|0),v=s+8|0,Cy(t[v>>2]|0,t[n>>2]|0,t[r>>2]|0),t[v>>2]=(t[v>>2]|0)+8,e_(e,s),t_(s),y=w;return}}function Zg(e){return e=e|0,536870911}function $g(e,n,r,u){e=e|0,n=n|0,r=r|0,u=u|0;var s=0;t[e+12>>2]=0,t[e+16>>2]=u;do if(n)if(n>>>0>536870911)$n();else{s=pn(n<<3)|0;break}else s=0;while(0);t[e>>2]=s,u=s+(r<<3)|0,t[e+8>>2]=u,t[e+4>>2]=u,t[e+12>>2]=s+(n<<3)}function e_(e,n){e=e|0,n=n|0;var r=0,u=0,s=0,a=0,v=0;u=t[e>>2]|0,v=e+4|0,a=n+4|0,s=(t[v>>2]|0)-u|0,r=(t[a>>2]|0)+(0-(s>>3)<<3)|0,t[a>>2]=r,(s|0)>0?(gr(r|0,u|0,s|0)|0,u=a,r=t[a>>2]|0):u=a,a=t[e>>2]|0,t[e>>2]=r,t[u>>2]=a,a=n+8|0,s=t[v>>2]|0,t[v>>2]=t[a>>2],t[a>>2]=s,a=e+8|0,v=n+12|0,e=t[a>>2]|0,t[a>>2]=t[v>>2],t[v>>2]=e,t[n>>2]=t[u>>2]}function t_(e){e=e|0;var n=0,r=0,u=0;n=t[e+4>>2]|0,r=e+8|0,u=t[r>>2]|0,(u|0)!=(n|0)&&(t[r>>2]=u+(~((u+-8-n|0)>>>3)<<3)),e=t[e>>2]|0,e|0&&Et(e)}function xy(e){e=e|0,r_(e)}function n_(e){e=e|0,$4(e+24|0)}function $4(e){e=e|0;var n=0,r=0,u=0;r=t[e>>2]|0,u=r,r|0&&(e=e+4|0,n=t[e>>2]|0,(n|0)!=(r|0)&&(t[e>>2]=n+(~((n+-8-u|0)>>>3)<<3)),Et(r))}function r_(e){e=e|0;var n=0;n=yr()|0,jn(e,1,23,n,So()|0,1),t[e+24>>2]=0,t[e+28>>2]=0,t[e+32>>2]=0}function eE(e,n){e=e|0,n=n|0,c(t[(tE(e)|0)>>2]|0,n)}function tE(e){return e=e|0,(t[(Ty()|0)+24>>2]|0)+(e<<3)|0}function c(e,n){e=e|0,n=n|0;var r=0,u=0;r=y,y=y+16|0,u=r,tr(u,n),n=Qs(u,n)|0,P1[e&127](n),y=r}function d(e,n,r,u){e=e|0,n=n|0,r=r|0,u=u|0;var s=0,a=0;a=t[e>>2]|0,s=D()|0,e=C(r)|0,wi(a,n,s,e,O(r,u)|0,u)}function D(){var e=0,n=0;if(h[7808]|0||(ht(9972),Wt(45,9972,ge|0)|0,n=7808,t[n>>2]=1,t[n+4>>2]=0),!(sr(9972)|0)){e=9972,n=e+36|0;do t[e>>2]=0,e=e+4|0;while((e|0)<(n|0));ht(9972)}return 9972}function C(e){return e=e|0,e|0}function O(e,n){e=e|0,n=n|0;var r=0,u=0,s=0,a=0,v=0,w=0,T=0;return w=y,y=y+16|0,s=w,a=w+4|0,t[s>>2]=e,T=D()|0,v=T+24|0,n=hn(n,4)|0,t[a>>2]=n,r=T+28|0,u=t[r>>2]|0,u>>>0<(t[T+32>>2]|0)>>>0?(z(u,e,n),n=(t[r>>2]|0)+8|0,t[r>>2]=n):(G(v,s,a),n=t[r>>2]|0),y=w,(n-(t[v>>2]|0)>>3)+-1|0}function z(e,n,r){e=e|0,n=n|0,r=r|0,t[e>>2]=n,t[e+4>>2]=r}function G(e,n,r){e=e|0,n=n|0,r=r|0;var u=0,s=0,a=0,v=0,w=0,T=0,L=0,M=0;if(w=y,y=y+32|0,s=w,a=e+4|0,v=((t[a>>2]|0)-(t[e>>2]|0)>>3)+1|0,u=ne(e)|0,u>>>0>>0)di(e);else{T=t[e>>2]|0,M=(t[e+8>>2]|0)-T|0,L=M>>2,se(s,M>>3>>>0>>1>>>0?L>>>0>>0?v:L:u,(t[a>>2]|0)-T>>3,e+8|0),v=s+8|0,z(t[v>>2]|0,t[n>>2]|0,t[r>>2]|0),t[v>>2]=(t[v>>2]|0)+8,Ue(e,s),Xe(s),y=w;return}}function ne(e){return e=e|0,536870911}function se(e,n,r,u){e=e|0,n=n|0,r=r|0,u=u|0;var s=0;t[e+12>>2]=0,t[e+16>>2]=u;do if(n)if(n>>>0>536870911)$n();else{s=pn(n<<3)|0;break}else s=0;while(0);t[e>>2]=s,u=s+(r<<3)|0,t[e+8>>2]=u,t[e+4>>2]=u,t[e+12>>2]=s+(n<<3)}function Ue(e,n){e=e|0,n=n|0;var r=0,u=0,s=0,a=0,v=0;u=t[e>>2]|0,v=e+4|0,a=n+4|0,s=(t[v>>2]|0)-u|0,r=(t[a>>2]|0)+(0-(s>>3)<<3)|0,t[a>>2]=r,(s|0)>0?(gr(r|0,u|0,s|0)|0,u=a,r=t[a>>2]|0):u=a,a=t[e>>2]|0,t[e>>2]=r,t[u>>2]=a,a=n+8|0,s=t[v>>2]|0,t[v>>2]=t[a>>2],t[a>>2]=s,a=e+8|0,v=n+12|0,e=t[a>>2]|0,t[a>>2]=t[v>>2],t[v>>2]=e,t[n>>2]=t[u>>2]}function Xe(e){e=e|0;var n=0,r=0,u=0;n=t[e+4>>2]|0,r=e+8|0,u=t[r>>2]|0,(u|0)!=(n|0)&&(t[r>>2]=u+(~((u+-8-n|0)>>>3)<<3)),e=t[e>>2]|0,e|0&&Et(e)}function ht(e){e=e|0,Ht(e)}function Lt(e){e=e|0,Gt(e+24|0)}function Gt(e){e=e|0;var n=0,r=0,u=0;r=t[e>>2]|0,u=r,r|0&&(e=e+4|0,n=t[e>>2]|0,(n|0)!=(r|0)&&(t[e>>2]=n+(~((n+-8-u|0)>>>3)<<3)),Et(r))}function Ht(e){e=e|0;var n=0;n=yr()|0,jn(e,1,9,n,yn()|0,1),t[e+24>>2]=0,t[e+28>>2]=0,t[e+32>>2]=0}function yn(){return 1348}function kr(e,n){return e=e|0,n=n|0,Oi(t[(ii(e)|0)>>2]|0,n)|0}function ii(e){return e=e|0,(t[(D()|0)+24>>2]|0)+(e<<3)|0}function Oi(e,n){e=e|0,n=n|0;var r=0,u=0;return r=y,y=y+16|0,u=r,L0(u,n),n=$i(u,n)|0,n=Sd(Qp[e&31](n)|0)|0,y=r,n|0}function L0(e,n){e=e|0,n=n|0}function $i(e,n){return e=e|0,n=n|0,lt(n)|0}function lt(e){return e=e|0,e|0}function Mt(e,n,r,u){e=e|0,n=n|0,r=r|0,u=u|0;var s=0,a=0;a=t[e>>2]|0,s=$e()|0,e=jt(r)|0,wi(a,n,s,e,Fn(r,u)|0,u)}function $e(){var e=0,n=0;if(h[7816]|0||(Yr(10008),Wt(46,10008,ge|0)|0,n=7816,t[n>>2]=1,t[n+4>>2]=0),!(sr(10008)|0)){e=10008,n=e+36|0;do t[e>>2]=0,e=e+4|0;while((e|0)<(n|0));Yr(10008)}return 10008}function jt(e){return e=e|0,e|0}function Fn(e,n){e=e|0,n=n|0;var r=0,u=0,s=0,a=0,v=0,w=0,T=0;return w=y,y=y+16|0,s=w,a=w+4|0,t[s>>2]=e,T=$e()|0,v=T+24|0,n=hn(n,4)|0,t[a>>2]=n,r=T+28|0,u=t[r>>2]|0,u>>>0<(t[T+32>>2]|0)>>>0?(vn(u,e,n),n=(t[r>>2]|0)+8|0,t[r>>2]=n):(Vi(v,s,a),n=t[r>>2]|0),y=w,(n-(t[v>>2]|0)>>3)+-1|0}function vn(e,n,r){e=e|0,n=n|0,r=r|0,t[e>>2]=n,t[e+4>>2]=r}function Vi(e,n,r){e=e|0,n=n|0,r=r|0;var u=0,s=0,a=0,v=0,w=0,T=0,L=0,M=0;if(w=y,y=y+32|0,s=w,a=e+4|0,v=((t[a>>2]|0)-(t[e>>2]|0)>>3)+1|0,u=ci(e)|0,u>>>0>>0)di(e);else{T=t[e>>2]|0,M=(t[e+8>>2]|0)-T|0,L=M>>2,Yu(s,M>>3>>>0>>1>>>0?L>>>0>>0?v:L:u,(t[a>>2]|0)-T>>3,e+8|0),v=s+8|0,vn(t[v>>2]|0,t[n>>2]|0,t[r>>2]|0),t[v>>2]=(t[v>>2]|0)+8,hr(e,s),pu(s),y=w;return}}function ci(e){return e=e|0,536870911}function Yu(e,n,r,u){e=e|0,n=n|0,r=r|0,u=u|0;var s=0;t[e+12>>2]=0,t[e+16>>2]=u;do if(n)if(n>>>0>536870911)$n();else{s=pn(n<<3)|0;break}else s=0;while(0);t[e>>2]=s,u=s+(r<<3)|0,t[e+8>>2]=u,t[e+4>>2]=u,t[e+12>>2]=s+(n<<3)}function hr(e,n){e=e|0,n=n|0;var r=0,u=0,s=0,a=0,v=0;u=t[e>>2]|0,v=e+4|0,a=n+4|0,s=(t[v>>2]|0)-u|0,r=(t[a>>2]|0)+(0-(s>>3)<<3)|0,t[a>>2]=r,(s|0)>0?(gr(r|0,u|0,s|0)|0,u=a,r=t[a>>2]|0):u=a,a=t[e>>2]|0,t[e>>2]=r,t[u>>2]=a,a=n+8|0,s=t[v>>2]|0,t[v>>2]=t[a>>2],t[a>>2]=s,a=e+8|0,v=n+12|0,e=t[a>>2]|0,t[a>>2]=t[v>>2],t[v>>2]=e,t[n>>2]=t[u>>2]}function pu(e){e=e|0;var n=0,r=0,u=0;n=t[e+4>>2]|0,r=e+8|0,u=t[r>>2]|0,(u|0)!=(n|0)&&(t[r>>2]=u+(~((u+-8-n|0)>>>3)<<3)),e=t[e>>2]|0,e|0&&Et(e)}function Yr(e){e=e|0,W0(e)}function Cu(e){e=e|0,D0(e+24|0)}function D0(e){e=e|0;var n=0,r=0,u=0;r=t[e>>2]|0,u=r,r|0&&(e=e+4|0,n=t[e>>2]|0,(n|0)!=(r|0)&&(t[e>>2]=n+(~((n+-8-u|0)>>>3)<<3)),Et(r))}function W0(e){e=e|0;var n=0;n=yr()|0,jn(e,1,15,n,ip()|0,0),t[e+24>>2]=0,t[e+28>>2]=0,t[e+32>>2]=0}function Ms(e){return e=e|0,gl(t[(Ku(e)|0)>>2]|0)|0}function Ku(e){return e=e|0,(t[($e()|0)+24>>2]|0)+(e<<3)|0}function gl(e){return e=e|0,Sd(E_[e&7]()|0)|0}function rf(){var e=0;return h[7832]|0||(u_(10052),Wt(25,10052,ge|0)|0,e=7832,t[e>>2]=1,t[e+4>>2]=0),10052}function Vo(e,n){e=e|0,n=n|0,t[e>>2]=ks()|0,t[e+4>>2]=Jd()|0,t[e+12>>2]=n,t[e+8>>2]=Vf()|0,t[e+32>>2]=2}function ks(){return 11709}function Jd(){return 1188}function Vf(){return L1()|0}function Lc(e,n,r,u){e=e|0,n=n|0,r=r|0,u=u|0,(Hl(u,896)|0)==512?r|0&&(Go(r),Et(r)):n|0&&(Ds(n),Et(n))}function Hl(e,n){return e=e|0,n=n|0,n&e|0}function Go(e){e=e|0,e=t[e+4>>2]|0,e|0&&$d(e)}function L1(){var e=0;return h[7824]|0||(t[2511]=i_()|0,t[2512]=0,e=7824,t[e>>2]=1,t[e+4>>2]=0),10044}function i_(){return 0}function u_(e){e=e|0,Xa(e)}function nE(e){e=e|0;var n=0,r=0,u=0,s=0,a=0;n=y,y=y+32|0,r=n+24|0,a=n+16|0,s=n+8|0,u=n,o_(e,4827),rE(e,4834,3)|0,iE(e,3682,47)|0,t[a>>2]=9,t[a+4>>2]=0,t[r>>2]=t[a>>2],t[r+4>>2]=t[a+4>>2],Ry(e,4841,r)|0,t[s>>2]=1,t[s+4>>2]=0,t[r>>2]=t[s>>2],t[r+4>>2]=t[s+4>>2],l_(e,4871,r)|0,t[u>>2]=10,t[u+4>>2]=0,t[r>>2]=t[u>>2],t[r+4>>2]=t[u+4>>2],uE(e,4891,r)|0,y=n}function o_(e,n){e=e|0,n=n|0;var r=0;r=PR()|0,t[e>>2]=r,IR(r,n),Zd(t[e>>2]|0)}function rE(e,n,r){return e=e|0,n=n|0,r=r|0,_R(e,Fr(n)|0,r,0),e|0}function iE(e,n,r){return e=e|0,n=n|0,r=r|0,iR(e,Fr(n)|0,r,0),e|0}function Ry(e,n,r){e=e|0,n=n|0,r=r|0;var u=0,s=0,a=0,v=0;return u=y,y=y+16|0,s=u+8|0,a=u,v=t[r+4>>2]|0,t[a>>2]=t[r>>2],t[a+4>>2]=v,t[s>>2]=t[a>>2],t[s+4>>2]=t[a+4>>2],U9(e,n,s),y=u,e|0}function l_(e,n,r){e=e|0,n=n|0,r=r|0;var u=0,s=0,a=0,v=0;return u=y,y=y+16|0,s=u+8|0,a=u,v=t[r+4>>2]|0,t[a>>2]=t[r>>2],t[a+4>>2]=v,t[s>>2]=t[a>>2],t[s+4>>2]=t[a+4>>2],E9(e,n,s),y=u,e|0}function uE(e,n,r){e=e|0,n=n|0,r=r|0;var u=0,s=0,a=0,v=0;return u=y,y=y+16|0,s=u+8|0,a=u,v=t[r+4>>2]|0,t[a>>2]=t[r>>2],t[a+4>>2]=v,t[s>>2]=t[a>>2],t[s+4>>2]=t[a+4>>2],oE(e,n,s),y=u,e|0}function oE(e,n,r){e=e|0,n=n|0,r=r|0;var u=0,s=0,a=0,v=0,w=0;u=y,y=y+16|0,s=u+8|0,a=u,w=t[r>>2]|0,v=t[r+4>>2]|0,r=Fr(n)|0,t[a>>2]=w,t[a+4>>2]=v,t[s>>2]=t[a>>2],t[s+4>>2]=t[a+4>>2],lE(e,r,s,1),y=u}function lE(e,n,r,u){e=e|0,n=n|0,r=r|0,u=u|0;var s=0,a=0,v=0,w=0,T=0,L=0,M=0;s=y,y=y+32|0,a=s+16|0,M=s+8|0,w=s,L=t[r>>2]|0,T=t[r+4>>2]|0,v=t[e>>2]|0,e=sE()|0,t[M>>2]=L,t[M+4>>2]=T,t[a>>2]=t[M>>2],t[a+4>>2]=t[M+4>>2],r=o9(a)|0,t[w>>2]=L,t[w+4>>2]=T,t[a>>2]=t[w>>2],t[a+4>>2]=t[w+4>>2],wi(v,n,e,r,l9(a,u)|0,u),y=s}function sE(){var e=0,n=0;if(h[7840]|0||(hw(10100),Wt(48,10100,ge|0)|0,n=7840,t[n>>2]=1,t[n+4>>2]=0),!(sr(10100)|0)){e=10100,n=e+36|0;do t[e>>2]=0,e=e+4|0;while((e|0)<(n|0));hw(10100)}return 10100}function o9(e){return e=e|0,0}function l9(e,n){e=e|0,n=n|0;var r=0,u=0,s=0,a=0,v=0,w=0,T=0,L=0,M=0,b=0;return M=y,y=y+32|0,s=M+24|0,v=M+16|0,w=M,T=M+8|0,a=t[e>>2]|0,u=t[e+4>>2]|0,t[w>>2]=a,t[w+4>>2]=u,b=sE()|0,L=b+24|0,e=hn(n,4)|0,t[T>>2]=e,n=b+28|0,r=t[n>>2]|0,r>>>0<(t[b+32>>2]|0)>>>0?(t[v>>2]=a,t[v+4>>2]=u,t[s>>2]=t[v>>2],t[s+4>>2]=t[v+4>>2],pw(r,s,e),e=(t[n>>2]|0)+12|0,t[n>>2]=e):(s9(L,w,T),e=t[n>>2]|0),y=M,((e-(t[L>>2]|0)|0)/12|0)+-1|0}function pw(e,n,r){e=e|0,n=n|0,r=r|0;var u=0;u=t[n+4>>2]|0,t[e>>2]=t[n>>2],t[e+4>>2]=u,t[e+8>>2]=r}function s9(e,n,r){e=e|0,n=n|0,r=r|0;var u=0,s=0,a=0,v=0,w=0,T=0,L=0,M=0,b=0,X=0;if(L=y,y=y+48|0,u=L+32|0,v=L+24|0,w=L,T=e+4|0,s=(((t[T>>2]|0)-(t[e>>2]|0)|0)/12|0)+1|0,a=a9(e)|0,a>>>0>>0)di(e);else{M=t[e>>2]|0,X=((t[e+8>>2]|0)-M|0)/12|0,b=X<<1,f9(w,X>>>0>>1>>>0?b>>>0>>0?s:b:a,((t[T>>2]|0)-M|0)/12|0,e+8|0),T=w+8|0,a=t[T>>2]|0,s=t[n+4>>2]|0,r=t[r>>2]|0,t[v>>2]=t[n>>2],t[v+4>>2]=s,t[u>>2]=t[v>>2],t[u+4>>2]=t[v+4>>2],pw(a,u,r),t[T>>2]=(t[T>>2]|0)+12,c9(e,w),d9(w),y=L;return}}function a9(e){return e=e|0,357913941}function f9(e,n,r,u){e=e|0,n=n|0,r=r|0,u=u|0;var s=0;t[e+12>>2]=0,t[e+16>>2]=u;do if(n)if(n>>>0>357913941)$n();else{s=pn(n*12|0)|0;break}else s=0;while(0);t[e>>2]=s,u=s+(r*12|0)|0,t[e+8>>2]=u,t[e+4>>2]=u,t[e+12>>2]=s+(n*12|0)}function c9(e,n){e=e|0,n=n|0;var r=0,u=0,s=0,a=0,v=0;u=t[e>>2]|0,v=e+4|0,a=n+4|0,s=(t[v>>2]|0)-u|0,r=(t[a>>2]|0)+(((s|0)/-12|0)*12|0)|0,t[a>>2]=r,(s|0)>0?(gr(r|0,u|0,s|0)|0,u=a,r=t[a>>2]|0):u=a,a=t[e>>2]|0,t[e>>2]=r,t[u>>2]=a,a=n+8|0,s=t[v>>2]|0,t[v>>2]=t[a>>2],t[a>>2]=s,a=e+8|0,v=n+12|0,e=t[a>>2]|0,t[a>>2]=t[v>>2],t[v>>2]=e,t[n>>2]=t[u>>2]}function d9(e){e=e|0;var n=0,r=0,u=0;n=t[e+4>>2]|0,r=e+8|0,u=t[r>>2]|0,(u|0)!=(n|0)&&(t[r>>2]=u+(~(((u+-12-n|0)>>>0)/12|0)*12|0)),e=t[e>>2]|0,e|0&&Et(e)}function hw(e){e=e|0,v9(e)}function p9(e){e=e|0,h9(e+24|0)}function h9(e){e=e|0;var n=0,r=0,u=0;r=t[e>>2]|0,u=r,r|0&&(e=e+4|0,n=t[e>>2]|0,(n|0)!=(r|0)&&(t[e>>2]=n+(~(((n+-12-u|0)>>>0)/12|0)*12|0)),Et(r))}function v9(e){e=e|0;var n=0;n=yr()|0,jn(e,2,6,n,m9()|0,1),t[e+24>>2]=0,t[e+28>>2]=0,t[e+32>>2]=0}function m9(){return 1364}function y9(e,n,r){e=e|0,n=n|0,r=r|0;var u=0,s=0,a=0,v=0;return u=y,y=y+16|0,s=u+8|0,a=u,v=g9(e)|0,e=t[v+4>>2]|0,t[a>>2]=t[v>>2],t[a+4>>2]=e,t[s>>2]=t[a>>2],t[s+4>>2]=t[a+4>>2],r=_9(n,s,r)|0,y=u,r|0}function g9(e){return e=e|0,(t[(sE()|0)+24>>2]|0)+(e*12|0)|0}function _9(e,n,r){e=e|0,n=n|0,r=r|0;var u=0,s=0,a=0;return a=y,y=y+16|0,s=a,u=t[n>>2]|0,n=t[n+4>>2]|0,e=e+(n>>1)|0,n&1&&(u=t[(t[e>>2]|0)+u>>2]|0),xs(s,r),s=Gs(s,r)|0,s=bl(bE[u&15](e,s)|0)|0,y=a,s|0}function E9(e,n,r){e=e|0,n=n|0,r=r|0;var u=0,s=0,a=0,v=0,w=0;u=y,y=y+16|0,s=u+8|0,a=u,w=t[r>>2]|0,v=t[r+4>>2]|0,r=Fr(n)|0,t[a>>2]=w,t[a+4>>2]=v,t[s>>2]=t[a>>2],t[s+4>>2]=t[a+4>>2],D9(e,r,s,0),y=u}function D9(e,n,r,u){e=e|0,n=n|0,r=r|0,u=u|0;var s=0,a=0,v=0,w=0,T=0,L=0,M=0;s=y,y=y+32|0,a=s+16|0,M=s+8|0,w=s,L=t[r>>2]|0,T=t[r+4>>2]|0,v=t[e>>2]|0,e=aE()|0,t[M>>2]=L,t[M+4>>2]=T,t[a>>2]=t[M>>2],t[a+4>>2]=t[M+4>>2],r=w9(a)|0,t[w>>2]=L,t[w+4>>2]=T,t[a>>2]=t[w>>2],t[a+4>>2]=t[w+4>>2],wi(v,n,e,r,S9(a,u)|0,u),y=s}function aE(){var e=0,n=0;if(h[7848]|0||(mw(10136),Wt(49,10136,ge|0)|0,n=7848,t[n>>2]=1,t[n+4>>2]=0),!(sr(10136)|0)){e=10136,n=e+36|0;do t[e>>2]=0,e=e+4|0;while((e|0)<(n|0));mw(10136)}return 10136}function w9(e){return e=e|0,0}function S9(e,n){e=e|0,n=n|0;var r=0,u=0,s=0,a=0,v=0,w=0,T=0,L=0,M=0,b=0;return M=y,y=y+32|0,s=M+24|0,v=M+16|0,w=M,T=M+8|0,a=t[e>>2]|0,u=t[e+4>>2]|0,t[w>>2]=a,t[w+4>>2]=u,b=aE()|0,L=b+24|0,e=hn(n,4)|0,t[T>>2]=e,n=b+28|0,r=t[n>>2]|0,r>>>0<(t[b+32>>2]|0)>>>0?(t[v>>2]=a,t[v+4>>2]=u,t[s>>2]=t[v>>2],t[s+4>>2]=t[v+4>>2],vw(r,s,e),e=(t[n>>2]|0)+12|0,t[n>>2]=e):(T9(L,w,T),e=t[n>>2]|0),y=M,((e-(t[L>>2]|0)|0)/12|0)+-1|0}function vw(e,n,r){e=e|0,n=n|0,r=r|0;var u=0;u=t[n+4>>2]|0,t[e>>2]=t[n>>2],t[e+4>>2]=u,t[e+8>>2]=r}function T9(e,n,r){e=e|0,n=n|0,r=r|0;var u=0,s=0,a=0,v=0,w=0,T=0,L=0,M=0,b=0,X=0;if(L=y,y=y+48|0,u=L+32|0,v=L+24|0,w=L,T=e+4|0,s=(((t[T>>2]|0)-(t[e>>2]|0)|0)/12|0)+1|0,a=C9(e)|0,a>>>0>>0)di(e);else{M=t[e>>2]|0,X=((t[e+8>>2]|0)-M|0)/12|0,b=X<<1,x9(w,X>>>0>>1>>>0?b>>>0>>0?s:b:a,((t[T>>2]|0)-M|0)/12|0,e+8|0),T=w+8|0,a=t[T>>2]|0,s=t[n+4>>2]|0,r=t[r>>2]|0,t[v>>2]=t[n>>2],t[v+4>>2]=s,t[u>>2]=t[v>>2],t[u+4>>2]=t[v+4>>2],vw(a,u,r),t[T>>2]=(t[T>>2]|0)+12,R9(e,w),A9(w),y=L;return}}function C9(e){return e=e|0,357913941}function x9(e,n,r,u){e=e|0,n=n|0,r=r|0,u=u|0;var s=0;t[e+12>>2]=0,t[e+16>>2]=u;do if(n)if(n>>>0>357913941)$n();else{s=pn(n*12|0)|0;break}else s=0;while(0);t[e>>2]=s,u=s+(r*12|0)|0,t[e+8>>2]=u,t[e+4>>2]=u,t[e+12>>2]=s+(n*12|0)}function R9(e,n){e=e|0,n=n|0;var r=0,u=0,s=0,a=0,v=0;u=t[e>>2]|0,v=e+4|0,a=n+4|0,s=(t[v>>2]|0)-u|0,r=(t[a>>2]|0)+(((s|0)/-12|0)*12|0)|0,t[a>>2]=r,(s|0)>0?(gr(r|0,u|0,s|0)|0,u=a,r=t[a>>2]|0):u=a,a=t[e>>2]|0,t[e>>2]=r,t[u>>2]=a,a=n+8|0,s=t[v>>2]|0,t[v>>2]=t[a>>2],t[a>>2]=s,a=e+8|0,v=n+12|0,e=t[a>>2]|0,t[a>>2]=t[v>>2],t[v>>2]=e,t[n>>2]=t[u>>2]}function A9(e){e=e|0;var n=0,r=0,u=0;n=t[e+4>>2]|0,r=e+8|0,u=t[r>>2]|0,(u|0)!=(n|0)&&(t[r>>2]=u+(~(((u+-12-n|0)>>>0)/12|0)*12|0)),e=t[e>>2]|0,e|0&&Et(e)}function mw(e){e=e|0,k9(e)}function O9(e){e=e|0,M9(e+24|0)}function M9(e){e=e|0;var n=0,r=0,u=0;r=t[e>>2]|0,u=r,r|0&&(e=e+4|0,n=t[e>>2]|0,(n|0)!=(r|0)&&(t[e>>2]=n+(~(((n+-12-u|0)>>>0)/12|0)*12|0)),Et(r))}function k9(e){e=e|0;var n=0;n=yr()|0,jn(e,2,9,n,N9()|0,1),t[e+24>>2]=0,t[e+28>>2]=0,t[e+32>>2]=0}function N9(){return 1372}function L9(e,n,r){e=e|0,n=n|0,r=+r;var u=0,s=0,a=0,v=0;u=y,y=y+16|0,s=u+8|0,a=u,v=F9(e)|0,e=t[v+4>>2]|0,t[a>>2]=t[v>>2],t[a+4>>2]=e,t[s>>2]=t[a>>2],t[s+4>>2]=t[a+4>>2],P9(n,s,r),y=u}function F9(e){return e=e|0,(t[(aE()|0)+24>>2]|0)+(e*12|0)|0}function P9(e,n,r){e=e|0,n=n|0,r=+r;var u=0,s=0,a=0,v=Ct;a=y,y=y+16|0,s=a,u=t[n>>2]|0,n=t[n+4>>2]|0,e=e+(n>>1)|0,n&1&&(u=t[(t[e>>2]|0)+u>>2]|0),I9(s,r),v=S(b9(s,r)),M8[u&1](e,v),y=a}function I9(e,n){e=e|0,n=+n}function b9(e,n){return e=e|0,n=+n,S(B9(n))}function B9(e){return e=+e,S(e)}function U9(e,n,r){e=e|0,n=n|0,r=r|0;var u=0,s=0,a=0,v=0,w=0;u=y,y=y+16|0,s=u+8|0,a=u,w=t[r>>2]|0,v=t[r+4>>2]|0,r=Fr(n)|0,t[a>>2]=w,t[a+4>>2]=v,t[s>>2]=t[a>>2],t[s+4>>2]=t[a+4>>2],j9(e,r,s,0),y=u}function j9(e,n,r,u){e=e|0,n=n|0,r=r|0,u=u|0;var s=0,a=0,v=0,w=0,T=0,L=0,M=0;s=y,y=y+32|0,a=s+16|0,M=s+8|0,w=s,L=t[r>>2]|0,T=t[r+4>>2]|0,v=t[e>>2]|0,e=fE()|0,t[M>>2]=L,t[M+4>>2]=T,t[a>>2]=t[M>>2],t[a+4>>2]=t[M+4>>2],r=z9(a)|0,t[w>>2]=L,t[w+4>>2]=T,t[a>>2]=t[w>>2],t[a+4>>2]=t[w+4>>2],wi(v,n,e,r,H9(a,u)|0,u),y=s}function fE(){var e=0,n=0;if(h[7856]|0||(gw(10172),Wt(50,10172,ge|0)|0,n=7856,t[n>>2]=1,t[n+4>>2]=0),!(sr(10172)|0)){e=10172,n=e+36|0;do t[e>>2]=0,e=e+4|0;while((e|0)<(n|0));gw(10172)}return 10172}function z9(e){return e=e|0,0}function H9(e,n){e=e|0,n=n|0;var r=0,u=0,s=0,a=0,v=0,w=0,T=0,L=0,M=0,b=0;return M=y,y=y+32|0,s=M+24|0,v=M+16|0,w=M,T=M+8|0,a=t[e>>2]|0,u=t[e+4>>2]|0,t[w>>2]=a,t[w+4>>2]=u,b=fE()|0,L=b+24|0,e=hn(n,4)|0,t[T>>2]=e,n=b+28|0,r=t[n>>2]|0,r>>>0<(t[b+32>>2]|0)>>>0?(t[v>>2]=a,t[v+4>>2]=u,t[s>>2]=t[v>>2],t[s+4>>2]=t[v+4>>2],yw(r,s,e),e=(t[n>>2]|0)+12|0,t[n>>2]=e):(q9(L,w,T),e=t[n>>2]|0),y=M,((e-(t[L>>2]|0)|0)/12|0)+-1|0}function yw(e,n,r){e=e|0,n=n|0,r=r|0;var u=0;u=t[n+4>>2]|0,t[e>>2]=t[n>>2],t[e+4>>2]=u,t[e+8>>2]=r}function q9(e,n,r){e=e|0,n=n|0,r=r|0;var u=0,s=0,a=0,v=0,w=0,T=0,L=0,M=0,b=0,X=0;if(L=y,y=y+48|0,u=L+32|0,v=L+24|0,w=L,T=e+4|0,s=(((t[T>>2]|0)-(t[e>>2]|0)|0)/12|0)+1|0,a=W9(e)|0,a>>>0>>0)di(e);else{M=t[e>>2]|0,X=((t[e+8>>2]|0)-M|0)/12|0,b=X<<1,V9(w,X>>>0>>1>>>0?b>>>0>>0?s:b:a,((t[T>>2]|0)-M|0)/12|0,e+8|0),T=w+8|0,a=t[T>>2]|0,s=t[n+4>>2]|0,r=t[r>>2]|0,t[v>>2]=t[n>>2],t[v+4>>2]=s,t[u>>2]=t[v>>2],t[u+4>>2]=t[v+4>>2],yw(a,u,r),t[T>>2]=(t[T>>2]|0)+12,G9(e,w),Y9(w),y=L;return}}function W9(e){return e=e|0,357913941}function V9(e,n,r,u){e=e|0,n=n|0,r=r|0,u=u|0;var s=0;t[e+12>>2]=0,t[e+16>>2]=u;do if(n)if(n>>>0>357913941)$n();else{s=pn(n*12|0)|0;break}else s=0;while(0);t[e>>2]=s,u=s+(r*12|0)|0,t[e+8>>2]=u,t[e+4>>2]=u,t[e+12>>2]=s+(n*12|0)}function G9(e,n){e=e|0,n=n|0;var r=0,u=0,s=0,a=0,v=0;u=t[e>>2]|0,v=e+4|0,a=n+4|0,s=(t[v>>2]|0)-u|0,r=(t[a>>2]|0)+(((s|0)/-12|0)*12|0)|0,t[a>>2]=r,(s|0)>0?(gr(r|0,u|0,s|0)|0,u=a,r=t[a>>2]|0):u=a,a=t[e>>2]|0,t[e>>2]=r,t[u>>2]=a,a=n+8|0,s=t[v>>2]|0,t[v>>2]=t[a>>2],t[a>>2]=s,a=e+8|0,v=n+12|0,e=t[a>>2]|0,t[a>>2]=t[v>>2],t[v>>2]=e,t[n>>2]=t[u>>2]}function Y9(e){e=e|0;var n=0,r=0,u=0;n=t[e+4>>2]|0,r=e+8|0,u=t[r>>2]|0,(u|0)!=(n|0)&&(t[r>>2]=u+(~(((u+-12-n|0)>>>0)/12|0)*12|0)),e=t[e>>2]|0,e|0&&Et(e)}function gw(e){e=e|0,Q9(e)}function K9(e){e=e|0,X9(e+24|0)}function X9(e){e=e|0;var n=0,r=0,u=0;r=t[e>>2]|0,u=r,r|0&&(e=e+4|0,n=t[e>>2]|0,(n|0)!=(r|0)&&(t[e>>2]=n+(~(((n+-12-u|0)>>>0)/12|0)*12|0)),Et(r))}function Q9(e){e=e|0;var n=0;n=yr()|0,jn(e,2,3,n,J9()|0,2),t[e+24>>2]=0,t[e+28>>2]=0,t[e+32>>2]=0}function J9(){return 1380}function Z9(e,n,r,u){e=e|0,n=n|0,r=r|0,u=u|0;var s=0,a=0,v=0,w=0;s=y,y=y+16|0,a=s+8|0,v=s,w=$9(e)|0,e=t[w+4>>2]|0,t[v>>2]=t[w>>2],t[v+4>>2]=e,t[a>>2]=t[v>>2],t[a+4>>2]=t[v+4>>2],eR(n,a,r,u),y=s}function $9(e){return e=e|0,(t[(fE()|0)+24>>2]|0)+(e*12|0)|0}function eR(e,n,r,u){e=e|0,n=n|0,r=r|0,u=u|0;var s=0,a=0,v=0,w=0;w=y,y=y+16|0,a=w+1|0,v=w,s=t[n>>2]|0,n=t[n+4>>2]|0,e=e+(n>>1)|0,n&1&&(s=t[(t[e>>2]|0)+s>>2]|0),xs(a,r),a=Gs(a,r)|0,tR(v,u),v=nR(v,u)|0,Fy[s&15](e,a,v),y=w}function tR(e,n){e=e|0,n=n|0}function nR(e,n){return e=e|0,n=n|0,rR(n)|0}function rR(e){return e=e|0,(e|0)!=0|0}function iR(e,n,r,u){e=e|0,n=n|0,r=r|0,u=u|0;var s=0,a=0;a=t[e>>2]|0,s=cE()|0,e=uR(r)|0,wi(a,n,s,e,oR(r,u)|0,u)}function cE(){var e=0,n=0;if(h[7864]|0||(Ew(10208),Wt(51,10208,ge|0)|0,n=7864,t[n>>2]=1,t[n+4>>2]=0),!(sr(10208)|0)){e=10208,n=e+36|0;do t[e>>2]=0,e=e+4|0;while((e|0)<(n|0));Ew(10208)}return 10208}function uR(e){return e=e|0,e|0}function oR(e,n){e=e|0,n=n|0;var r=0,u=0,s=0,a=0,v=0,w=0,T=0;return w=y,y=y+16|0,s=w,a=w+4|0,t[s>>2]=e,T=cE()|0,v=T+24|0,n=hn(n,4)|0,t[a>>2]=n,r=T+28|0,u=t[r>>2]|0,u>>>0<(t[T+32>>2]|0)>>>0?(_w(u,e,n),n=(t[r>>2]|0)+8|0,t[r>>2]=n):(lR(v,s,a),n=t[r>>2]|0),y=w,(n-(t[v>>2]|0)>>3)+-1|0}function _w(e,n,r){e=e|0,n=n|0,r=r|0,t[e>>2]=n,t[e+4>>2]=r}function lR(e,n,r){e=e|0,n=n|0,r=r|0;var u=0,s=0,a=0,v=0,w=0,T=0,L=0,M=0;if(w=y,y=y+32|0,s=w,a=e+4|0,v=((t[a>>2]|0)-(t[e>>2]|0)>>3)+1|0,u=sR(e)|0,u>>>0>>0)di(e);else{T=t[e>>2]|0,M=(t[e+8>>2]|0)-T|0,L=M>>2,aR(s,M>>3>>>0>>1>>>0?L>>>0>>0?v:L:u,(t[a>>2]|0)-T>>3,e+8|0),v=s+8|0,_w(t[v>>2]|0,t[n>>2]|0,t[r>>2]|0),t[v>>2]=(t[v>>2]|0)+8,fR(e,s),cR(s),y=w;return}}function sR(e){return e=e|0,536870911}function aR(e,n,r,u){e=e|0,n=n|0,r=r|0,u=u|0;var s=0;t[e+12>>2]=0,t[e+16>>2]=u;do if(n)if(n>>>0>536870911)$n();else{s=pn(n<<3)|0;break}else s=0;while(0);t[e>>2]=s,u=s+(r<<3)|0,t[e+8>>2]=u,t[e+4>>2]=u,t[e+12>>2]=s+(n<<3)}function fR(e,n){e=e|0,n=n|0;var r=0,u=0,s=0,a=0,v=0;u=t[e>>2]|0,v=e+4|0,a=n+4|0,s=(t[v>>2]|0)-u|0,r=(t[a>>2]|0)+(0-(s>>3)<<3)|0,t[a>>2]=r,(s|0)>0?(gr(r|0,u|0,s|0)|0,u=a,r=t[a>>2]|0):u=a,a=t[e>>2]|0,t[e>>2]=r,t[u>>2]=a,a=n+8|0,s=t[v>>2]|0,t[v>>2]=t[a>>2],t[a>>2]=s,a=e+8|0,v=n+12|0,e=t[a>>2]|0,t[a>>2]=t[v>>2],t[v>>2]=e,t[n>>2]=t[u>>2]}function cR(e){e=e|0;var n=0,r=0,u=0;n=t[e+4>>2]|0,r=e+8|0,u=t[r>>2]|0,(u|0)!=(n|0)&&(t[r>>2]=u+(~((u+-8-n|0)>>>3)<<3)),e=t[e>>2]|0,e|0&&Et(e)}function Ew(e){e=e|0,hR(e)}function dR(e){e=e|0,pR(e+24|0)}function pR(e){e=e|0;var n=0,r=0,u=0;r=t[e>>2]|0,u=r,r|0&&(e=e+4|0,n=t[e>>2]|0,(n|0)!=(r|0)&&(t[e>>2]=n+(~((n+-8-u|0)>>>3)<<3)),Et(r))}function hR(e){e=e|0;var n=0;n=yr()|0,jn(e,1,24,n,vR()|0,1),t[e+24>>2]=0,t[e+28>>2]=0,t[e+32>>2]=0}function vR(){return 1392}function mR(e,n){e=e|0,n=n|0,gR(t[(yR(e)|0)>>2]|0,n)}function yR(e){return e=e|0,(t[(cE()|0)+24>>2]|0)+(e<<3)|0}function gR(e,n){e=e|0,n=n|0;var r=0,u=0;r=y,y=y+16|0,u=r,L0(u,n),n=$i(u,n)|0,P1[e&127](n),y=r}function _R(e,n,r,u){e=e|0,n=n|0,r=r|0,u=u|0;var s=0,a=0;a=t[e>>2]|0,s=dE()|0,e=ER(r)|0,wi(a,n,s,e,DR(r,u)|0,u)}function dE(){var e=0,n=0;if(h[7872]|0||(ww(10244),Wt(52,10244,ge|0)|0,n=7872,t[n>>2]=1,t[n+4>>2]=0),!(sr(10244)|0)){e=10244,n=e+36|0;do t[e>>2]=0,e=e+4|0;while((e|0)<(n|0));ww(10244)}return 10244}function ER(e){return e=e|0,e|0}function DR(e,n){e=e|0,n=n|0;var r=0,u=0,s=0,a=0,v=0,w=0,T=0;return w=y,y=y+16|0,s=w,a=w+4|0,t[s>>2]=e,T=dE()|0,v=T+24|0,n=hn(n,4)|0,t[a>>2]=n,r=T+28|0,u=t[r>>2]|0,u>>>0<(t[T+32>>2]|0)>>>0?(Dw(u,e,n),n=(t[r>>2]|0)+8|0,t[r>>2]=n):(wR(v,s,a),n=t[r>>2]|0),y=w,(n-(t[v>>2]|0)>>3)+-1|0}function Dw(e,n,r){e=e|0,n=n|0,r=r|0,t[e>>2]=n,t[e+4>>2]=r}function wR(e,n,r){e=e|0,n=n|0,r=r|0;var u=0,s=0,a=0,v=0,w=0,T=0,L=0,M=0;if(w=y,y=y+32|0,s=w,a=e+4|0,v=((t[a>>2]|0)-(t[e>>2]|0)>>3)+1|0,u=SR(e)|0,u>>>0>>0)di(e);else{T=t[e>>2]|0,M=(t[e+8>>2]|0)-T|0,L=M>>2,TR(s,M>>3>>>0>>1>>>0?L>>>0>>0?v:L:u,(t[a>>2]|0)-T>>3,e+8|0),v=s+8|0,Dw(t[v>>2]|0,t[n>>2]|0,t[r>>2]|0),t[v>>2]=(t[v>>2]|0)+8,CR(e,s),xR(s),y=w;return}}function SR(e){return e=e|0,536870911}function TR(e,n,r,u){e=e|0,n=n|0,r=r|0,u=u|0;var s=0;t[e+12>>2]=0,t[e+16>>2]=u;do if(n)if(n>>>0>536870911)$n();else{s=pn(n<<3)|0;break}else s=0;while(0);t[e>>2]=s,u=s+(r<<3)|0,t[e+8>>2]=u,t[e+4>>2]=u,t[e+12>>2]=s+(n<<3)}function CR(e,n){e=e|0,n=n|0;var r=0,u=0,s=0,a=0,v=0;u=t[e>>2]|0,v=e+4|0,a=n+4|0,s=(t[v>>2]|0)-u|0,r=(t[a>>2]|0)+(0-(s>>3)<<3)|0,t[a>>2]=r,(s|0)>0?(gr(r|0,u|0,s|0)|0,u=a,r=t[a>>2]|0):u=a,a=t[e>>2]|0,t[e>>2]=r,t[u>>2]=a,a=n+8|0,s=t[v>>2]|0,t[v>>2]=t[a>>2],t[a>>2]=s,a=e+8|0,v=n+12|0,e=t[a>>2]|0,t[a>>2]=t[v>>2],t[v>>2]=e,t[n>>2]=t[u>>2]}function xR(e){e=e|0;var n=0,r=0,u=0;n=t[e+4>>2]|0,r=e+8|0,u=t[r>>2]|0,(u|0)!=(n|0)&&(t[r>>2]=u+(~((u+-8-n|0)>>>3)<<3)),e=t[e>>2]|0,e|0&&Et(e)}function ww(e){e=e|0,OR(e)}function RR(e){e=e|0,AR(e+24|0)}function AR(e){e=e|0;var n=0,r=0,u=0;r=t[e>>2]|0,u=r,r|0&&(e=e+4|0,n=t[e>>2]|0,(n|0)!=(r|0)&&(t[e>>2]=n+(~((n+-8-u|0)>>>3)<<3)),Et(r))}function OR(e){e=e|0;var n=0;n=yr()|0,jn(e,1,16,n,MR()|0,0),t[e+24>>2]=0,t[e+28>>2]=0,t[e+32>>2]=0}function MR(){return 1400}function kR(e){return e=e|0,LR(t[(NR(e)|0)>>2]|0)|0}function NR(e){return e=e|0,(t[(dE()|0)+24>>2]|0)+(e<<3)|0}function LR(e){return e=e|0,FR(E_[e&7]()|0)|0}function FR(e){return e=e|0,e|0}function PR(){var e=0;return h[7880]|0||(HR(10280),Wt(25,10280,ge|0)|0,e=7880,t[e>>2]=1,t[e+4>>2]=0),10280}function IR(e,n){e=e|0,n=n|0,t[e>>2]=bR()|0,t[e+4>>2]=BR()|0,t[e+12>>2]=n,t[e+8>>2]=UR()|0,t[e+32>>2]=4}function bR(){return 11711}function BR(){return 1356}function UR(){return L1()|0}function jR(e,n,r,u){e=e|0,n=n|0,r=r|0,u=u|0,(Hl(u,896)|0)==512?r|0&&(zR(r),Et(r)):n|0&&(ro(n),Et(n))}function zR(e){e=e|0,e=t[e+4>>2]|0,e|0&&$d(e)}function HR(e){e=e|0,Xa(e)}function qR(e){e=e|0,WR(e,4920),VR(e)|0,GR(e)|0}function WR(e,n){e=e|0,n=n|0;var r=0;r=Hd()|0,t[e>>2]=r,pA(r,n),Zd(t[e>>2]|0)}function VR(e){e=e|0;var n=0;return n=t[e>>2]|0,Wp(n,rA()|0),e|0}function GR(e){e=e|0;var n=0;return n=t[e>>2]|0,Wp(n,YR()|0),e|0}function YR(){var e=0;return h[7888]|0||(Sw(10328),Wt(53,10328,ge|0)|0,e=7888,t[e>>2]=1,t[e+4>>2]=0),sr(10328)|0||Sw(10328),10328}function Wp(e,n){e=e|0,n=n|0,wi(e,0,n,0,0,0)}function Sw(e){e=e|0,QR(e),Vp(e,10)}function KR(e){e=e|0,XR(e+24|0)}function XR(e){e=e|0;var n=0,r=0,u=0;r=t[e>>2]|0,u=r,r|0&&(e=e+4|0,n=t[e>>2]|0,(n|0)!=(r|0)&&(t[e>>2]=n+(~((n+-8-u|0)>>>3)<<3)),Et(r))}function QR(e){e=e|0;var n=0;n=yr()|0,jn(e,5,1,n,eA()|0,2),t[e+24>>2]=0,t[e+28>>2]=0,t[e+32>>2]=0}function JR(e,n,r){e=e|0,n=n|0,r=+r,ZR(e,n,r)}function Vp(e,n){e=e|0,n=n|0,t[e+20>>2]=n}function ZR(e,n,r){e=e|0,n=n|0,r=+r;var u=0,s=0,a=0,v=0,w=0;u=y,y=y+16|0,a=u+8|0,w=u+13|0,s=u,v=u+12|0,xs(w,n),t[a>>2]=Gs(w,n)|0,Pl(v,r),j[s>>3]=+us(v,r),$R(e,a,s),y=u}function $R(e,n,r){e=e|0,n=n|0,r=r|0,B(e+8|0,t[n>>2]|0,+j[r>>3]),h[e+24>>0]=1}function eA(){return 1404}function tA(e,n){return e=e|0,n=+n,nA(e,n)|0}function nA(e,n){e=e|0,n=+n;var r=0,u=0,s=0,a=0,v=0,w=0,T=0;return u=y,y=y+16|0,a=u+4|0,v=u+8|0,w=u,s=Oa(8)|0,r=s,T=pn(16)|0,xs(a,e),e=Gs(a,e)|0,Pl(v,n),B(T,e,+us(v,n)),v=r+4|0,t[v>>2]=T,e=pn(8)|0,v=t[v>>2]|0,t[w>>2]=0,t[a>>2]=t[w>>2],Bf(e,v,a),t[s>>2]=e,y=u,r|0}function rA(){var e=0;return h[7896]|0||(Tw(10364),Wt(54,10364,ge|0)|0,e=7896,t[e>>2]=1,t[e+4>>2]=0),sr(10364)|0||Tw(10364),10364}function Tw(e){e=e|0,oA(e),Vp(e,55)}function iA(e){e=e|0,uA(e+24|0)}function uA(e){e=e|0;var n=0,r=0,u=0;r=t[e>>2]|0,u=r,r|0&&(e=e+4|0,n=t[e>>2]|0,(n|0)!=(r|0)&&(t[e>>2]=n+(~((n+-8-u|0)>>>3)<<3)),Et(r))}function oA(e){e=e|0;var n=0;n=yr()|0,jn(e,5,4,n,fA()|0,0),t[e+24>>2]=0,t[e+28>>2]=0,t[e+32>>2]=0}function lA(e){e=e|0,sA(e)}function sA(e){e=e|0,aA(e)}function aA(e){e=e|0,Cw(e+8|0),h[e+24>>0]=1}function Cw(e){e=e|0,t[e>>2]=0,j[e+8>>3]=0}function fA(){return 1424}function cA(){return dA()|0}function dA(){var e=0,n=0,r=0,u=0,s=0,a=0,v=0;return n=y,y=y+16|0,s=n+4|0,v=n,r=Oa(8)|0,e=r,u=pn(16)|0,Cw(u),a=e+4|0,t[a>>2]=u,u=pn(8)|0,a=t[a>>2]|0,t[v>>2]=0,t[s>>2]=t[v>>2],Bf(u,a,s),t[r>>2]=u,y=n,e|0}function pA(e,n){e=e|0,n=n|0,t[e>>2]=hA()|0,t[e+4>>2]=vA()|0,t[e+12>>2]=n,t[e+8>>2]=mA()|0,t[e+32>>2]=5}function hA(){return 11710}function vA(){return 1416}function mA(){return s_()|0}function yA(e,n,r,u){e=e|0,n=n|0,r=r|0,u=u|0,(Hl(u,896)|0)==512?r|0&&(gA(r),Et(r)):n|0&&Et(n)}function gA(e){e=e|0,e=t[e+4>>2]|0,e|0&&$d(e)}function s_(){var e=0;return h[7904]|0||(t[2600]=_A()|0,t[2601]=0,e=7904,t[e>>2]=1,t[e+4>>2]=0),10400}function _A(){return t[357]|0}function EA(e){e=e|0,DA(e,4926),wA(e)|0}function DA(e,n){e=e|0,n=n|0;var r=0;r=Ka()|0,t[e>>2]=r,LA(r,n),Zd(t[e>>2]|0)}function wA(e){e=e|0;var n=0;return n=t[e>>2]|0,Wp(n,SA()|0),e|0}function SA(){var e=0;return h[7912]|0||(xw(10412),Wt(56,10412,ge|0)|0,e=7912,t[e>>2]=1,t[e+4>>2]=0),sr(10412)|0||xw(10412),10412}function xw(e){e=e|0,xA(e),Vp(e,57)}function TA(e){e=e|0,CA(e+24|0)}function CA(e){e=e|0;var n=0,r=0,u=0;r=t[e>>2]|0,u=r,r|0&&(e=e+4|0,n=t[e>>2]|0,(n|0)!=(r|0)&&(t[e>>2]=n+(~((n+-8-u|0)>>>3)<<3)),Et(r))}function xA(e){e=e|0;var n=0;n=yr()|0,jn(e,5,5,n,MA()|0,0),t[e+24>>2]=0,t[e+28>>2]=0,t[e+32>>2]=0}function RA(e){e=e|0,AA(e)}function AA(e){e=e|0,OA(e)}function OA(e){e=e|0;var n=0,r=0;n=e+8|0,r=n+48|0;do t[n>>2]=0,n=n+4|0;while((n|0)<(r|0));h[e+56>>0]=1}function MA(){return 1432}function kA(){return NA()|0}function NA(){var e=0,n=0,r=0,u=0,s=0,a=0,v=0,w=0;v=y,y=y+16|0,e=v+4|0,n=v,r=Oa(8)|0,u=r,s=pn(48)|0,a=s,w=a+48|0;do t[a>>2]=0,a=a+4|0;while((a|0)<(w|0));return a=u+4|0,t[a>>2]=s,w=pn(8)|0,a=t[a>>2]|0,t[n>>2]=0,t[e>>2]=t[n>>2],Th(w,a,e),t[r>>2]=w,y=v,u|0}function LA(e,n){e=e|0,n=n|0,t[e>>2]=FA()|0,t[e+4>>2]=PA()|0,t[e+12>>2]=n,t[e+8>>2]=IA()|0,t[e+32>>2]=6}function FA(){return 11704}function PA(){return 1436}function IA(){return s_()|0}function bA(e,n,r,u){e=e|0,n=n|0,r=r|0,u=u|0,(Hl(u,896)|0)==512?r|0&&(BA(r),Et(r)):n|0&&Et(n)}function BA(e){e=e|0,e=t[e+4>>2]|0,e|0&&$d(e)}function UA(e){e=e|0,jA(e,4933),zA(e)|0,HA(e)|0}function jA(e,n){e=e|0,n=n|0;var r=0;r=d7()|0,t[e>>2]=r,p7(r,n),Zd(t[e>>2]|0)}function zA(e){e=e|0;var n=0;return n=t[e>>2]|0,Wp(n,n7()|0),e|0}function HA(e){e=e|0;var n=0;return n=t[e>>2]|0,Wp(n,qA()|0),e|0}function qA(){var e=0;return h[7920]|0||(Rw(10452),Wt(58,10452,ge|0)|0,e=7920,t[e>>2]=1,t[e+4>>2]=0),sr(10452)|0||Rw(10452),10452}function Rw(e){e=e|0,GA(e),Vp(e,1)}function WA(e){e=e|0,VA(e+24|0)}function VA(e){e=e|0;var n=0,r=0,u=0;r=t[e>>2]|0,u=r,r|0&&(e=e+4|0,n=t[e>>2]|0,(n|0)!=(r|0)&&(t[e>>2]=n+(~((n+-8-u|0)>>>3)<<3)),Et(r))}function GA(e){e=e|0;var n=0;n=yr()|0,jn(e,5,1,n,QA()|0,2),t[e+24>>2]=0,t[e+28>>2]=0,t[e+32>>2]=0}function YA(e,n,r){e=e|0,n=+n,r=+r,KA(e,n,r)}function KA(e,n,r){e=e|0,n=+n,r=+r;var u=0,s=0,a=0,v=0,w=0;u=y,y=y+32|0,a=u+8|0,w=u+17|0,s=u,v=u+16|0,Pl(w,n),j[a>>3]=+us(w,n),Pl(v,r),j[s>>3]=+us(v,r),XA(e,a,s),y=u}function XA(e,n,r){e=e|0,n=n|0,r=r|0,Aw(e+8|0,+j[n>>3],+j[r>>3]),h[e+24>>0]=1}function Aw(e,n,r){e=e|0,n=+n,r=+r,j[e>>3]=n,j[e+8>>3]=r}function QA(){return 1472}function JA(e,n){return e=+e,n=+n,ZA(e,n)|0}function ZA(e,n){e=+e,n=+n;var r=0,u=0,s=0,a=0,v=0,w=0,T=0;return u=y,y=y+16|0,v=u+4|0,w=u+8|0,T=u,s=Oa(8)|0,r=s,a=pn(16)|0,Pl(v,e),e=+us(v,e),Pl(w,n),Aw(a,e,+us(w,n)),w=r+4|0,t[w>>2]=a,a=pn(8)|0,w=t[w>>2]|0,t[T>>2]=0,t[v>>2]=t[T>>2],Ow(a,w,v),t[s>>2]=a,y=u,r|0}function Ow(e,n,r){e=e|0,n=n|0,r=r|0,t[e>>2]=n,r=pn(16)|0,t[r+4>>2]=0,t[r+8>>2]=0,t[r>>2]=1452,t[r+12>>2]=n,t[e+4>>2]=r}function $A(e){e=e|0,Uv(e),Et(e)}function e7(e){e=e|0,e=t[e+12>>2]|0,e|0&&Et(e)}function t7(e){e=e|0,Et(e)}function n7(){var e=0;return h[7928]|0||(Mw(10488),Wt(59,10488,ge|0)|0,e=7928,t[e>>2]=1,t[e+4>>2]=0),sr(10488)|0||Mw(10488),10488}function Mw(e){e=e|0,u7(e),Vp(e,60)}function r7(e){e=e|0,i7(e+24|0)}function i7(e){e=e|0;var n=0,r=0,u=0;r=t[e>>2]|0,u=r,r|0&&(e=e+4|0,n=t[e>>2]|0,(n|0)!=(r|0)&&(t[e>>2]=n+(~((n+-8-u|0)>>>3)<<3)),Et(r))}function u7(e){e=e|0;var n=0;n=yr()|0,jn(e,5,6,n,a7()|0,0),t[e+24>>2]=0,t[e+28>>2]=0,t[e+32>>2]=0}function o7(e){e=e|0,l7(e)}function l7(e){e=e|0,s7(e)}function s7(e){e=e|0,kw(e+8|0),h[e+24>>0]=1}function kw(e){e=e|0,t[e>>2]=0,t[e+4>>2]=0,t[e+8>>2]=0,t[e+12>>2]=0}function a7(){return 1492}function f7(){return c7()|0}function c7(){var e=0,n=0,r=0,u=0,s=0,a=0,v=0;return n=y,y=y+16|0,s=n+4|0,v=n,r=Oa(8)|0,e=r,u=pn(16)|0,kw(u),a=e+4|0,t[a>>2]=u,u=pn(8)|0,a=t[a>>2]|0,t[v>>2]=0,t[s>>2]=t[v>>2],Ow(u,a,s),t[r>>2]=u,y=n,e|0}function d7(){var e=0;return h[7936]|0||(_7(10524),Wt(25,10524,ge|0)|0,e=7936,t[e>>2]=1,t[e+4>>2]=0),10524}function p7(e,n){e=e|0,n=n|0,t[e>>2]=h7()|0,t[e+4>>2]=v7()|0,t[e+12>>2]=n,t[e+8>>2]=m7()|0,t[e+32>>2]=7}function h7(){return 11700}function v7(){return 1484}function m7(){return s_()|0}function y7(e,n,r,u){e=e|0,n=n|0,r=r|0,u=u|0,(Hl(u,896)|0)==512?r|0&&(g7(r),Et(r)):n|0&&Et(n)}function g7(e){e=e|0,e=t[e+4>>2]|0,e|0&&$d(e)}function _7(e){e=e|0,Xa(e)}function E7(e,n,r){e=e|0,n=n|0,r=r|0,e=Fr(n)|0,n=D7(r)|0,r=w7(r,0)|0,Z7(e,n,r,pE()|0,0)}function D7(e){return e=e|0,e|0}function w7(e,n){e=e|0,n=n|0;var r=0,u=0,s=0,a=0,v=0,w=0,T=0;return w=y,y=y+16|0,s=w,a=w+4|0,t[s>>2]=e,T=pE()|0,v=T+24|0,n=hn(n,4)|0,t[a>>2]=n,r=T+28|0,u=t[r>>2]|0,u>>>0<(t[T+32>>2]|0)>>>0?(Lw(u,e,n),n=(t[r>>2]|0)+8|0,t[r>>2]=n):(O7(v,s,a),n=t[r>>2]|0),y=w,(n-(t[v>>2]|0)>>3)+-1|0}function pE(){var e=0,n=0;if(h[7944]|0||(Nw(10568),Wt(61,10568,ge|0)|0,n=7944,t[n>>2]=1,t[n+4>>2]=0),!(sr(10568)|0)){e=10568,n=e+36|0;do t[e>>2]=0,e=e+4|0;while((e|0)<(n|0));Nw(10568)}return 10568}function Nw(e){e=e|0,C7(e)}function S7(e){e=e|0,T7(e+24|0)}function T7(e){e=e|0;var n=0,r=0,u=0;r=t[e>>2]|0,u=r,r|0&&(e=e+4|0,n=t[e>>2]|0,(n|0)!=(r|0)&&(t[e>>2]=n+(~((n+-8-u|0)>>>3)<<3)),Et(r))}function C7(e){e=e|0;var n=0;n=yr()|0,jn(e,1,17,n,ev()|0,0),t[e+24>>2]=0,t[e+28>>2]=0,t[e+32>>2]=0}function x7(e){return e=e|0,A7(t[(R7(e)|0)>>2]|0)|0}function R7(e){return e=e|0,(t[(pE()|0)+24>>2]|0)+(e<<3)|0}function A7(e){return e=e|0,H0(E_[e&7]()|0)|0}function Lw(e,n,r){e=e|0,n=n|0,r=r|0,t[e>>2]=n,t[e+4>>2]=r}function O7(e,n,r){e=e|0,n=n|0,r=r|0;var u=0,s=0,a=0,v=0,w=0,T=0,L=0,M=0;if(w=y,y=y+32|0,s=w,a=e+4|0,v=((t[a>>2]|0)-(t[e>>2]|0)>>3)+1|0,u=M7(e)|0,u>>>0>>0)di(e);else{T=t[e>>2]|0,M=(t[e+8>>2]|0)-T|0,L=M>>2,k7(s,M>>3>>>0>>1>>>0?L>>>0>>0?v:L:u,(t[a>>2]|0)-T>>3,e+8|0),v=s+8|0,Lw(t[v>>2]|0,t[n>>2]|0,t[r>>2]|0),t[v>>2]=(t[v>>2]|0)+8,N7(e,s),L7(s),y=w;return}}function M7(e){return e=e|0,536870911}function k7(e,n,r,u){e=e|0,n=n|0,r=r|0,u=u|0;var s=0;t[e+12>>2]=0,t[e+16>>2]=u;do if(n)if(n>>>0>536870911)$n();else{s=pn(n<<3)|0;break}else s=0;while(0);t[e>>2]=s,u=s+(r<<3)|0,t[e+8>>2]=u,t[e+4>>2]=u,t[e+12>>2]=s+(n<<3)}function N7(e,n){e=e|0,n=n|0;var r=0,u=0,s=0,a=0,v=0;u=t[e>>2]|0,v=e+4|0,a=n+4|0,s=(t[v>>2]|0)-u|0,r=(t[a>>2]|0)+(0-(s>>3)<<3)|0,t[a>>2]=r,(s|0)>0?(gr(r|0,u|0,s|0)|0,u=a,r=t[a>>2]|0):u=a,a=t[e>>2]|0,t[e>>2]=r,t[u>>2]=a,a=n+8|0,s=t[v>>2]|0,t[v>>2]=t[a>>2],t[a>>2]=s,a=e+8|0,v=n+12|0,e=t[a>>2]|0,t[a>>2]=t[v>>2],t[v>>2]=e,t[n>>2]=t[u>>2]}function L7(e){e=e|0;var n=0,r=0,u=0;n=t[e+4>>2]|0,r=e+8|0,u=t[r>>2]|0,(u|0)!=(n|0)&&(t[r>>2]=u+(~((u+-8-n|0)>>>3)<<3)),e=t[e>>2]|0,e|0&&Et(e)}function F7(){P7()}function P7(){I7(10604)}function I7(e){e=e|0,b7(e,4955)}function b7(e,n){e=e|0,n=n|0;var r=0;r=B7()|0,t[e>>2]=r,U7(r,n),Zd(t[e>>2]|0)}function B7(){var e=0;return h[7952]|0||(K7(10612),Wt(25,10612,ge|0)|0,e=7952,t[e>>2]=1,t[e+4>>2]=0),10612}function U7(e,n){e=e|0,n=n|0,t[e>>2]=q7()|0,t[e+4>>2]=W7()|0,t[e+12>>2]=n,t[e+8>>2]=V7()|0,t[e+32>>2]=8}function Zd(e){e=e|0;var n=0,r=0;n=y,y=y+16|0,r=n,Fv()|0,t[r>>2]=e,j7(10608,r),y=n}function Fv(){return h[11714]|0||(t[2652]=0,Wt(62,10608,ge|0)|0,h[11714]=1),10608}function j7(e,n){e=e|0,n=n|0;var r=0;r=pn(8)|0,t[r+4>>2]=t[n>>2],t[r>>2]=t[e>>2],t[e>>2]=r}function z7(e){e=e|0,H7(e)}function H7(e){e=e|0;var n=0,r=0;if(n=t[e>>2]|0,n|0)do r=n,n=t[n>>2]|0,Et(r);while((n|0)!=0);t[e>>2]=0}function q7(){return 11715}function W7(){return 1496}function V7(){return L1()|0}function G7(e,n,r,u){e=e|0,n=n|0,r=r|0,u=u|0,(Hl(u,896)|0)==512?r|0&&(Y7(r),Et(r)):n|0&&Et(n)}function Y7(e){e=e|0,e=t[e+4>>2]|0,e|0&&$d(e)}function K7(e){e=e|0,Xa(e)}function X7(e,n){e=e|0,n=n|0;var r=0,u=0;Fv()|0,r=t[2652]|0;e:do if(r|0){for(;u=t[r+4>>2]|0,!(u|0&&(h8(hE(u)|0,e)|0)==0);)if(r=t[r>>2]|0,!r)break e;Q7(u,n)}while(0)}function hE(e){return e=e|0,t[e+12>>2]|0}function Q7(e,n){e=e|0,n=n|0;var r=0;e=e+36|0,r=t[e>>2]|0,r|0&&(fa(r),Et(r)),r=pn(4)|0,wf(r,n),t[e>>2]=r}function vE(){return h[11716]|0||(t[2664]=0,Wt(63,10656,ge|0)|0,h[11716]=1),10656}function Fw(){var e=0;return h[11717]|0?e=t[2665]|0:(J7(),t[2665]=1504,h[11717]=1,e=1504),e|0}function J7(){h[11740]|0||(h[11718]=hn(hn(8,0)|0,0)|0,h[11719]=hn(hn(0,0)|0,0)|0,h[11720]=hn(hn(0,16)|0,0)|0,h[11721]=hn(hn(8,0)|0,0)|0,h[11722]=hn(hn(0,0)|0,0)|0,h[11723]=hn(hn(8,0)|0,0)|0,h[11724]=hn(hn(0,0)|0,0)|0,h[11725]=hn(hn(8,0)|0,0)|0,h[11726]=hn(hn(0,0)|0,0)|0,h[11727]=hn(hn(8,0)|0,0)|0,h[11728]=hn(hn(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;s=t[L>>2]|0,a=t[b>>2]|0}while(0);t[Ze>>2]=a_(v)|0,t[Ye>>2]=sr(w)|0,nO(r,e,Ze,Ye,Te,ye),gE(ye),F1(Te)}n=t[n>>2]|0}while((n|0)!=0)}y=ct}function mE(e){return e=e|0,t[e+12>>2]|0}function Ay(e){return e=e|0,t[e+12>>2]|0}function Oy(e){return e=e|0,t[e+16>>2]|0}function eO(e,n){e=e|0,n=n|0;var r=0,u=0,s=0;s=y,y=y+32|0,r=s,u=t[e>>2]|0,(t[e+8>>2]|0)-u>>2>>>0>>0&&(Ww(r,n,(t[e+4>>2]|0)-u>>2,e+8|0),Vw(e,r),Gw(r)),y=s}function yE(e,n){e=e|0,n=n|0;var r=0,u=0,s=0,a=0,v=0,w=0,T=0,L=0;if(v=y,y=y+32|0,r=v,u=e+4|0,s=((t[u>>2]|0)-(t[e>>2]|0)>>2)+1|0,a=qw(e)|0,a>>>0>>0)di(e);else{w=t[e>>2]|0,L=(t[e+8>>2]|0)-w|0,T=L>>1,Ww(r,L>>2>>>0>>1>>>0?T>>>0>>0?s:T:a,(t[u>>2]|0)-w>>2,e+8|0),a=r+8|0,t[t[a>>2]>>2]=t[n>>2],t[a>>2]=(t[a>>2]|0)+4,Vw(e,r),Gw(r),y=v;return}}function My(e){return e=e|0,t[e+8>>2]|0}function tO(e,n){e=e|0,n=n|0;var r=0,u=0,s=0,a=0,v=0,w=0,T=0,L=0;if(v=y,y=y+32|0,r=v,u=e+4|0,s=((t[u>>2]|0)-(t[e>>2]|0)>>2)+1|0,a=Hw(e)|0,a>>>0>>0)di(e);else{w=t[e>>2]|0,L=(t[e+8>>2]|0)-w|0,T=L>>1,DO(r,L>>2>>>0>>1>>>0?T>>>0>>0?s:T:a,(t[u>>2]|0)-w>>2,e+8|0),a=r+8|0,t[t[a>>2]>>2]=t[n>>2],t[a>>2]=(t[a>>2]|0)+4,wO(e,r),SO(r),y=v;return}}function a_(e){return e=e|0,t[e>>2]|0}function nO(e,n,r,u,s,a){e=e|0,n=n|0,r=r|0,u=u|0,s=s|0,a=a|0,rO(e,n,r,u,s,a)}function gE(e){e=e|0;var n=0,r=0,u=0;r=t[e>>2]|0,u=r,r|0&&(e=e+4|0,n=t[e>>2]|0,(n|0)!=(r|0)&&(t[e>>2]=n+(~((n+-4-u|0)>>>2)<<2)),Et(r))}function F1(e){e=e|0;var n=0,r=0,u=0;r=t[e>>2]|0,u=r,r|0&&(e=e+4|0,n=t[e>>2]|0,(n|0)!=(r|0)&&(t[e>>2]=n+(~((n+-4-u|0)>>>2)<<2)),Et(r))}function rO(e,n,r,u,s,a){e=e|0,n=n|0,r=r|0,u=u|0,s=s|0,a=a|0;var v=0,w=0,T=0,L=0,M=0,b=0;v=y,y=y+48|0,M=v+40|0,w=v+32|0,b=v+24|0,T=v+12|0,L=v,Ma(w),e=go(e)|0,t[b>>2]=t[n>>2],r=t[r>>2]|0,u=t[u>>2]|0,_E(T,s),iO(L,a),t[M>>2]=t[b>>2],uO(e,M,r,u,T,L),gE(L),F1(T),ka(w),y=v}function _E(e,n){e=e|0,n=n|0;var r=0,u=0;t[e>>2]=0,t[e+4>>2]=0,t[e+8>>2]=0,r=n+4|0,u=(t[r>>2]|0)-(t[n>>2]|0)>>2,u|0&&(_O(e,u),EO(e,t[n>>2]|0,t[r>>2]|0,u))}function iO(e,n){e=e|0,n=n|0;var r=0,u=0;t[e>>2]=0,t[e+4>>2]=0,t[e+8>>2]=0,r=n+4|0,u=(t[r>>2]|0)-(t[n>>2]|0)>>2,u|0&&(yO(e,u),gO(e,t[n>>2]|0,t[r>>2]|0,u))}function uO(e,n,r,u,s,a){e=e|0,n=n|0,r=r|0,u=u|0,s=s|0,a=a|0;var v=0,w=0,T=0,L=0,M=0,b=0;v=y,y=y+32|0,M=v+28|0,b=v+24|0,w=v+12|0,T=v,L=_o(oO()|0)|0,t[b>>2]=t[n>>2],t[M>>2]=t[b>>2],n=Gp(M)|0,r=bw(r)|0,u=EE(u)|0,t[w>>2]=t[s>>2],M=s+4|0,t[w+4>>2]=t[M>>2],b=s+8|0,t[w+8>>2]=t[b>>2],t[b>>2]=0,t[M>>2]=0,t[s>>2]=0,s=DE(w)|0,t[T>>2]=t[a>>2],M=a+4|0,t[T+4>>2]=t[M>>2],b=a+8|0,t[T+8>>2]=t[b>>2],t[b>>2]=0,t[M>>2]=0,t[a>>2]=0,X0(0,L|0,e|0,n|0,r|0,u|0,s|0,lO(T)|0)|0,gE(T),F1(w),y=v}function oO(){var e=0;return h[7968]|0||(vO(10708),e=7968,t[e>>2]=1,t[e+4>>2]=0),10708}function Gp(e){return e=e|0,Uw(e)|0}function bw(e){return e=e|0,Bw(e)|0}function EE(e){return e=e|0,H0(e)|0}function DE(e){return e=e|0,aO(e)|0}function lO(e){return e=e|0,sO(e)|0}function sO(e){e=e|0;var n=0,r=0,u=0;if(u=(t[e+4>>2]|0)-(t[e>>2]|0)|0,r=u>>2,u=Oa(u+4|0)|0,t[u>>2]=r,r|0){n=0;do t[u+4+(n<<2)>>2]=Bw(t[(t[e>>2]|0)+(n<<2)>>2]|0)|0,n=n+1|0;while((n|0)!=(r|0))}return u|0}function Bw(e){return e=e|0,e|0}function aO(e){e=e|0;var n=0,r=0,u=0;if(u=(t[e+4>>2]|0)-(t[e>>2]|0)|0,r=u>>2,u=Oa(u+4|0)|0,t[u>>2]=r,r|0){n=0;do t[u+4+(n<<2)>>2]=Uw((t[e>>2]|0)+(n<<2)|0)|0,n=n+1|0;while((n|0)!=(r|0))}return u|0}function Uw(e){e=e|0;var n=0,r=0,u=0,s=0;return s=y,y=y+32|0,n=s+12|0,r=s,u=Pu(jw()|0)|0,u?(rs(n,u),Mf(r,n),VN(e,r),e=Cs(n)|0):e=fO(e)|0,y=s,e|0}function jw(){var e=0;return h[7960]|0||(hO(10664),Wt(25,10664,ge|0)|0,e=7960,t[e>>2]=1,t[e+4>>2]=0),10664}function fO(e){e=e|0;var n=0,r=0,u=0,s=0,a=0,v=0,w=0;return r=y,y=y+16|0,s=r+4|0,v=r,u=Oa(8)|0,n=u,w=pn(4)|0,t[w>>2]=t[e>>2],a=n+4|0,t[a>>2]=w,e=pn(8)|0,a=t[a>>2]|0,t[v>>2]=0,t[s>>2]=t[v>>2],zw(e,a,s),t[u>>2]=e,y=r,n|0}function zw(e,n,r){e=e|0,n=n|0,r=r|0,t[e>>2]=n,r=pn(16)|0,t[r+4>>2]=0,t[r+8>>2]=0,t[r>>2]=1656,t[r+12>>2]=n,t[e+4>>2]=r}function cO(e){e=e|0,Uv(e),Et(e)}function dO(e){e=e|0,e=t[e+12>>2]|0,e|0&&Et(e)}function pO(e){e=e|0,Et(e)}function hO(e){e=e|0,Xa(e)}function vO(e){e=e|0,ll(e,mO()|0,5)}function mO(){return 1676}function yO(e,n){e=e|0,n=n|0;var r=0;if((Hw(e)|0)>>>0>>0&&di(e),n>>>0>1073741823)$n();else{r=pn(n<<2)|0,t[e+4>>2]=r,t[e>>2]=r,t[e+8>>2]=r+(n<<2);return}}function gO(e,n,r,u){e=e|0,n=n|0,r=r|0,u=u|0,u=e+4|0,e=r-n|0,(e|0)>0&&(gr(t[u>>2]|0,n|0,e|0)|0,t[u>>2]=(t[u>>2]|0)+(e>>>2<<2))}function Hw(e){return e=e|0,1073741823}function _O(e,n){e=e|0,n=n|0;var r=0;if((qw(e)|0)>>>0>>0&&di(e),n>>>0>1073741823)$n();else{r=pn(n<<2)|0,t[e+4>>2]=r,t[e>>2]=r,t[e+8>>2]=r+(n<<2);return}}function EO(e,n,r,u){e=e|0,n=n|0,r=r|0,u=u|0,u=e+4|0,e=r-n|0,(e|0)>0&&(gr(t[u>>2]|0,n|0,e|0)|0,t[u>>2]=(t[u>>2]|0)+(e>>>2<<2))}function qw(e){return e=e|0,1073741823}function DO(e,n,r,u){e=e|0,n=n|0,r=r|0,u=u|0;var s=0;t[e+12>>2]=0,t[e+16>>2]=u;do if(n)if(n>>>0>1073741823)$n();else{s=pn(n<<2)|0;break}else s=0;while(0);t[e>>2]=s,u=s+(r<<2)|0,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e,n,r,u){e=e|0,n=n|0,r=r|0,u=u|0,zO(e,n,r,u)}function xO(e,n,r){e=e|0,n=n|0,r=r|0,jO(e,n,r)}function Pv(e){return e=e|0,e|0}function RO(e,n,r){e=e|0,n=n|0,r=r|0,IO(e,n,r)}function Yw(e){return e=e|0,e+16|0}function AO(e,n){e=e|0,n=n|0;var r=0,u=0,s=0,a=0,v=0,w=0,T=0;if(a=y,y=y+16|0,s=a+8|0,r=a,t[e>>2]=0,u=t[n>>2]|0,t[s>>2]=u,t[r>>2]=e,r=PO(r)|0,u|0){if(u=pn(12)|0,v=(Xw(s)|0)+4|0,e=t[v+4>>2]|0,n=u+4|0,t[n>>2]=t[v>>2],t[n+4>>2]=e,n=t[t[s>>2]>>2]|0,t[s>>2]=n,!n)e=u;else for(n=u;e=pn(12)|0,T=(Xw(s)|0)+4|0,w=t[T+4>>2]|0,v=e+4|0,t[v>>2]=t[T>>2],t[v+4>>2]=w,t[n>>2]=e,v=t[t[s>>2]>>2]|0,t[s>>2]=v,v;)n=e;t[e>>2]=t[r>>2],t[r>>2]=u}y=a}function OO(e,n,r){e=e|0,n=n|0,r=r|0,MO(e,n,r)}function Kw(e){return e=e|0,e+24|0}function MO(e,n,r){e=e|0,n=n|0,r=r|0;var u=0,s=0,a=0,v=0,w=0;u=y,y=y+32|0,v=u+24|0,s=u+16|0,w=u+12|0,a=u,Ma(s),e=go(e)|0,t[w>>2]=t[n>>2],_E(a,r),t[v>>2]=t[w>>2],kO(e,v,a),F1(a),ka(s),y=u}function kO(e,n,r){e=e|0,n=n|0,r=r|0;var u=0,s=0,a=0,v=0,w=0;u=y,y=y+32|0,v=u+16|0,w=u+12|0,s=u,a=_o(NO()|0)|0,t[w>>2]=t[n>>2],t[v>>2]=t[w>>2],n=Gp(v)|0,t[s>>2]=t[r>>2],v=r+4|0,t[s+4>>2]=t[v>>2],w=r+8|0,t[s+8>>2]=t[w>>2],t[w>>2]=0,t[v>>2]=0,t[r>>2]=0,P0(0,a|0,e|0,n|0,DE(s)|0)|0,F1(s),y=u}function NO(){var e=0;return h[7976]|0||(LO(10720),e=7976,t[e>>2]=1,t[e+4>>2]=0),10720}function LO(e){e=e|0,ll(e,FO()|0,2)}function FO(){return 1732}function PO(e){return e=e|0,t[e>>2]|0}function Xw(e){return e=e|0,t[e>>2]|0}function IO(e,n,r){e=e|0,n=n|0,r=r|0;var u=0,s=0,a=0,v=0;u=y,y=y+32|0,a=u+16|0,s=u+8|0,v=u,Ma(s),e=go(e)|0,t[v>>2]=t[n>>2],r=t[r>>2]|0,t[a>>2]=t[v>>2],Qw(e,a,r),ka(s),y=u}function Qw(e,n,r){e=e|0,n=n|0,r=r|0;var u=0,s=0,a=0,v=0;u=y,y=y+16|0,a=u+4|0,v=u,s=_o(bO()|0)|0,t[v>>2]=t[n>>2],t[a>>2]=t[v>>2],n=Gp(a)|0,P0(0,s|0,e|0,n|0,bw(r)|0)|0,y=u}function bO(){var e=0;return h[7984]|0||(BO(10732),e=7984,t[e>>2]=1,t[e+4>>2]=0),10732}function BO(e){e=e|0,ll(e,UO()|0,2)}function UO(){return 1744}function jO(e,n,r){e=e|0,n=n|0,r=r|0;var u=0,s=0,a=0,v=0;u=y,y=y+32|0,a=u+16|0,s=u+8|0,v=u,Ma(s),e=go(e)|0,t[v>>2]=t[n>>2],r=t[r>>2]|0,t[a>>2]=t[v>>2],Qw(e,a,r),ka(s),y=u}function zO(e,n,r,u){e=e|0,n=n|0,r=r|0,u=u|0;var s=0,a=0,v=0,w=0;s=y,y=y+32|0,v=s+16|0,a=s+8|0,w=s,Ma(a),e=go(e)|0,t[w>>2]=t[n>>2],r=h[r>>0]|0,u=h[u>>0]|0,t[v>>2]=t[w>>2],HO(e,v,r,u),ka(a),y=s}function HO(e,n,r,u){e=e|0,n=n|0,r=r|0,u=u|0;var s=0,a=0,v=0,w=0;s=y,y=y+16|0,v=s+4|0,w=s,a=_o(qO()|0)|0,t[w>>2]=t[n>>2],t[v>>2]=t[w>>2],n=Gp(v)|0,r=Iv(r)|0,Hn(0,a|0,e|0,n|0,r|0,Iv(u)|0)|0,y=s}function qO(){var e=0;return h[7992]|0||(VO(10744),e=7992,t[e>>2]=1,t[e+4>>2]=0),10744}function Iv(e){return e=e|0,WO(e)|0}function WO(e){return e=e|0,e&255|0}function VO(e){e=e|0,ll(e,GO()|0,3)}function GO(){return 1756}function YO(e,n,r){e=e|0,n=n|0,r=r|0;var u=0,s=0,a=0,v=0,w=0,T=0,L=0,M=0,b=0,X=0;switch(X=y,y=y+32|0,w=X+8|0,T=X+4|0,L=X+20|0,M=X,Sa(e,0),u=WN(n)|0,t[w>>2]=0,b=w+4|0,t[b>>2]=0,t[w+8>>2]=0,u<<24>>24){case 0:{h[L>>0]=0,KO(T,r,L),f_(e,T)|0,U0(T);break}case 8:{b=RE(n)|0,h[L>>0]=8,Gf(M,t[b+4>>2]|0),XO(T,r,L,M,b+8|0),f_(e,T)|0,U0(T);break}case 9:{if(a=RE(n)|0,n=t[a+4>>2]|0,n|0)for(v=w+8|0,s=a+12|0;n=n+-1|0,Gf(T,t[s>>2]|0),u=t[b>>2]|0,u>>>0<(t[v>>2]|0)>>>0?(t[u>>2]=t[T>>2],t[b>>2]=(t[b>>2]|0)+4):yE(w,T),n;)s=s+4|0;h[L>>0]=9,Gf(M,t[a+8>>2]|0),QO(T,r,L,M,w),f_(e,T)|0,U0(T);break}default:b=RE(n)|0,h[L>>0]=u,Gf(M,t[b+4>>2]|0),JO(T,r,L,M),f_(e,T)|0,U0(T)}F1(w),y=X}function KO(e,n,r){e=e|0,n=n|0,r=r|0;var u=0,s=0;u=y,y=y+16|0,s=u,Ma(s),n=go(n)|0,fM(e,n,h[r>>0]|0),ka(s),y=u}function f_(e,n){e=e|0,n=n|0;var r=0;return r=t[e>>2]|0,r|0&&qr(r|0),t[e>>2]=t[n>>2],t[n>>2]=0,e|0}function XO(e,n,r,u,s){e=e|0,n=n|0,r=r|0,u=u|0,s=s|0;var a=0,v=0,w=0,T=0;a=y,y=y+32|0,w=a+16|0,v=a+8|0,T=a,Ma(v),n=go(n)|0,r=h[r>>0]|0,t[T>>2]=t[u>>2],s=t[s>>2]|0,t[w>>2]=t[T>>2],oM(e,n,r,w,s),ka(v),y=a}function QO(e,n,r,u,s){e=e|0,n=n|0,r=r|0,u=u|0,s=s|0;var a=0,v=0,w=0,T=0,L=0;a=y,y=y+32|0,T=a+24|0,v=a+16|0,L=a+12|0,w=a,Ma(v),n=go(n)|0,r=h[r>>0]|0,t[L>>2]=t[u>>2],_E(w,s),t[T>>2]=t[L>>2],nM(e,n,r,T,w),F1(w),ka(v),y=a}function JO(e,n,r,u){e=e|0,n=n|0,r=r|0,u=u|0;var s=0,a=0,v=0,w=0;s=y,y=y+32|0,v=s+16|0,a=s+8|0,w=s,Ma(a),n=go(n)|0,r=h[r>>0]|0,t[w>>2]=t[u>>2],t[v>>2]=t[w>>2],ZO(e,n,r,v),ka(a),y=s}function ZO(e,n,r,u){e=e|0,n=n|0,r=r|0,u=u|0;var s=0,a=0,v=0,w=0;s=y,y=y+16|0,a=s+4|0,w=s,v=_o($O()|0)|0,r=Iv(r)|0,t[w>>2]=t[u>>2],t[a>>2]=t[w>>2],c_(e,P0(0,v|0,n|0,r|0,Gp(a)|0)|0),y=s}function $O(){var e=0;return h[8e3]|0||(eM(10756),e=8e3,t[e>>2]=1,t[e+4>>2]=0),10756}function c_(e,n){e=e|0,n=n|0,Sa(e,n)}function eM(e){e=e|0,ll(e,tM()|0,2)}function tM(){return 1772}function nM(e,n,r,u,s){e=e|0,n=n|0,r=r|0,u=u|0,s=s|0;var a=0,v=0,w=0,T=0,L=0;a=y,y=y+32|0,T=a+16|0,L=a+12|0,v=a,w=_o(rM()|0)|0,r=Iv(r)|0,t[L>>2]=t[u>>2],t[T>>2]=t[L>>2],u=Gp(T)|0,t[v>>2]=t[s>>2],T=s+4|0,t[v+4>>2]=t[T>>2],L=s+8|0,t[v+8>>2]=t[L>>2],t[L>>2]=0,t[T>>2]=0,t[s>>2]=0,c_(e,Hn(0,w|0,n|0,r|0,u|0,DE(v)|0)|0),F1(v),y=a}function rM(){var e=0;return h[8008]|0||(iM(10768),e=8008,t[e>>2]=1,t[e+4>>2]=0),10768}function iM(e){e=e|0,ll(e,uM()|0,3)}function uM(){return 1784}function oM(e,n,r,u,s){e=e|0,n=n|0,r=r|0,u=u|0,s=s|0;var a=0,v=0,w=0,T=0;a=y,y=y+16|0,w=a+4|0,T=a,v=_o(lM()|0)|0,r=Iv(r)|0,t[T>>2]=t[u>>2],t[w>>2]=t[T>>2],u=Gp(w)|0,c_(e,Hn(0,v|0,n|0,r|0,u|0,EE(s)|0)|0),y=a}function lM(){var e=0;return h[8016]|0||(sM(10780),e=8016,t[e>>2]=1,t[e+4>>2]=0),10780}function sM(e){e=e|0,ll(e,aM()|0,3)}function aM(){return 1800}function fM(e,n,r){e=e|0,n=n|0,r=r|0;var u=0;u=_o(cM()|0)|0,c_(e,Ki(0,u|0,n|0,Iv(r)|0)|0)}function cM(){var e=0;return h[8024]|0||(dM(10792),e=8024,t[e>>2]=1,t[e+4>>2]=0),10792}function dM(e){e=e|0,ll(e,pM()|0,1)}function pM(){return 1816}function hM(){vM(),mM(),yM()}function vM(){t[2702]=T8(65536)|0}function mM(){bM(10856)}function yM(){gM(10816)}function gM(e){e=e|0,_M(e,5044),EM(e)|0}function _M(e,n){e=e|0,n=n|0;var r=0;r=jw()|0,t[e>>2]=r,kM(r,n),Zd(t[e>>2]|0)}function EM(e){e=e|0;var n=0;return n=t[e>>2]|0,Wp(n,DM()|0),e|0}function DM(){var e=0;return h[8032]|0||(Jw(10820),Wt(64,10820,ge|0)|0,e=8032,t[e>>2]=1,t[e+4>>2]=0),sr(10820)|0||Jw(10820),10820}function Jw(e){e=e|0,TM(e),Vp(e,25)}function wM(e){e=e|0,SM(e+24|0)}function SM(e){e=e|0;var n=0,r=0,u=0;r=t[e>>2]|0,u=r,r|0&&(e=e+4|0,n=t[e>>2]|0,(n|0)!=(r|0)&&(t[e>>2]=n+(~((n+-8-u|0)>>>3)<<3)),Et(r))}function TM(e){e=e|0;var n=0;n=yr()|0,jn(e,5,18,n,AM()|0,1),t[e+24>>2]=0,t[e+28>>2]=0,t[e+32>>2]=0}function CM(e,n){e=e|0,n=n|0,xM(e,n)}function xM(e,n){e=e|0,n=n|0;var r=0,u=0,s=0;r=y,y=y+16|0,u=r,s=r+4|0,Pf(s,n),t[u>>2]=If(s,n)|0,RM(e,u),y=r}function RM(e,n){e=e|0,n=n|0,Zw(e+4|0,t[n>>2]|0),h[e+8>>0]=1}function Zw(e,n){e=e|0,n=n|0,t[e>>2]=n}function AM(){return 1824}function OM(e){return e=e|0,MM(e)|0}function MM(e){e=e|0;var n=0,r=0,u=0,s=0,a=0,v=0,w=0;return r=y,y=y+16|0,s=r+4|0,v=r,u=Oa(8)|0,n=u,w=pn(4)|0,Pf(s,e),Zw(w,If(s,e)|0),a=n+4|0,t[a>>2]=w,e=pn(8)|0,a=t[a>>2]|0,t[v>>2]=0,t[s>>2]=t[v>>2],zw(e,a,s),t[u>>2]=e,y=r,n|0}function Oa(e){e=e|0;var n=0,r=0;return e=e+7&-8,e>>>0<=32768&&(n=t[2701]|0,e>>>0<=(65536-n|0)>>>0)?(r=(t[2702]|0)+n|0,t[2701]=n+e,e=r):(e=T8(e+8|0)|0,t[e>>2]=t[2703],t[2703]=e,e=e+8|0),e|0}function kM(e,n){e=e|0,n=n|0,t[e>>2]=NM()|0,t[e+4>>2]=LM()|0,t[e+12>>2]=n,t[e+8>>2]=FM()|0,t[e+32>>2]=9}function NM(){return 11744}function LM(){return 1832}function FM(){return s_()|0}function PM(e,n,r,u){e=e|0,n=n|0,r=r|0,u=u|0,(Hl(u,896)|0)==512?r|0&&(IM(r),Et(r)):n|0&&Et(n)}function IM(e){e=e|0,e=t[e+4>>2]|0,e|0&&$d(e)}function bM(e){e=e|0,BM(e,5052),UM(e)|0,jM(e,5058,26)|0,zM(e,5069,1)|0,HM(e,5077,10)|0,qM(e,5087,19)|0,WM(e,5094,27)|0}function BM(e,n){e=e|0,n=n|0;var r=0;r=IN()|0,t[e>>2]=r,bN(r,n),Zd(t[e>>2]|0)}function UM(e){e=e|0;var n=0;return n=t[e>>2]|0,Wp(n,wN()|0),e|0}function jM(e,n,r){return e=e|0,n=n|0,r=r|0,iN(e,Fr(n)|0,r,0),e|0}function zM(e,n,r){return e=e|0,n=n|0,r=r|0,qk(e,Fr(n)|0,r,0),e|0}function HM(e,n,r){return e=e|0,n=n|0,r=r|0,Dk(e,Fr(n)|0,r,0),e|0}function qM(e,n,r){return e=e|0,n=n|0,r=r|0,ok(e,Fr(n)|0,r,0),e|0}function $w(e,n){e=e|0,n=n|0;var r=0,u=0;e:for(;;){for(r=t[2703]|0;;){if((r|0)==(n|0))break e;if(u=t[r>>2]|0,t[2703]=u,!r)r=u;else break}Et(r)}t[2701]=e}function WM(e,n,r){return e=e|0,n=n|0,r=r|0,VM(e,Fr(n)|0,r,0),e|0}function VM(e,n,r,u){e=e|0,n=n|0,r=r|0,u=u|0;var s=0,a=0;a=t[e>>2]|0,s=wE()|0,e=GM(r)|0,wi(a,n,s,e,YM(r,u)|0,u)}function wE(){var e=0,n=0;if(h[8040]|0||(t8(10860),Wt(65,10860,ge|0)|0,n=8040,t[n>>2]=1,t[n+4>>2]=0),!(sr(10860)|0)){e=10860,n=e+36|0;do t[e>>2]=0,e=e+4|0;while((e|0)<(n|0));t8(10860)}return 10860}function GM(e){return e=e|0,e|0}function YM(e,n){e=e|0,n=n|0;var r=0,u=0,s=0,a=0,v=0,w=0,T=0;return w=y,y=y+16|0,s=w,a=w+4|0,t[s>>2]=e,T=wE()|0,v=T+24|0,n=hn(n,4)|0,t[a>>2]=n,r=T+28|0,u=t[r>>2]|0,u>>>0<(t[T+32>>2]|0)>>>0?(e8(u,e,n),n=(t[r>>2]|0)+8|0,t[r>>2]=n):(KM(v,s,a),n=t[r>>2]|0),y=w,(n-(t[v>>2]|0)>>3)+-1|0}function e8(e,n,r){e=e|0,n=n|0,r=r|0,t[e>>2]=n,t[e+4>>2]=r}function KM(e,n,r){e=e|0,n=n|0,r=r|0;var u=0,s=0,a=0,v=0,w=0,T=0,L=0,M=0;if(w=y,y=y+32|0,s=w,a=e+4|0,v=((t[a>>2]|0)-(t[e>>2]|0)>>3)+1|0,u=XM(e)|0,u>>>0>>0)di(e);else{T=t[e>>2]|0,M=(t[e+8>>2]|0)-T|0,L=M>>2,QM(s,M>>3>>>0>>1>>>0?L>>>0>>0?v:L:u,(t[a>>2]|0)-T>>3,e+8|0),v=s+8|0,e8(t[v>>2]|0,t[n>>2]|0,t[r>>2]|0),t[v>>2]=(t[v>>2]|0)+8,JM(e,s),ZM(s),y=w;return}}function XM(e){return e=e|0,536870911}function QM(e,n,r,u){e=e|0,n=n|0,r=r|0,u=u|0;var s=0;t[e+12>>2]=0,t[e+16>>2]=u;do if(n)if(n>>>0>536870911)$n();else{s=pn(n<<3)|0;break}else s=0;while(0);t[e>>2]=s,u=s+(r<<3)|0,t[e+8>>2]=u,t[e+4>>2]=u,t[e+12>>2]=s+(n<<3)}function JM(e,n){e=e|0,n=n|0;var r=0,u=0,s=0,a=0,v=0;u=t[e>>2]|0,v=e+4|0,a=n+4|0,s=(t[v>>2]|0)-u|0,r=(t[a>>2]|0)+(0-(s>>3)<<3)|0,t[a>>2]=r,(s|0)>0?(gr(r|0,u|0,s|0)|0,u=a,r=t[a>>2]|0):u=a,a=t[e>>2]|0,t[e>>2]=r,t[u>>2]=a,a=n+8|0,s=t[v>>2]|0,t[v>>2]=t[a>>2],t[a>>2]=s,a=e+8|0,v=n+12|0,e=t[a>>2]|0,t[a>>2]=t[v>>2],t[v>>2]=e,t[n>>2]=t[u>>2]}function ZM(e){e=e|0;var n=0,r=0,u=0;n=t[e+4>>2]|0,r=e+8|0,u=t[r>>2]|0,(u|0)!=(n|0)&&(t[r>>2]=u+(~((u+-8-n|0)>>>3)<<3)),e=t[e>>2]|0,e|0&&Et(e)}function t8(e){e=e|0,tk(e)}function $M(e){e=e|0,ek(e+24|0)}function ek(e){e=e|0;var n=0,r=0,u=0;r=t[e>>2]|0,u=r,r|0&&(e=e+4|0,n=t[e>>2]|0,(n|0)!=(r|0)&&(t[e>>2]=n+(~((n+-8-u|0)>>>3)<<3)),Et(r))}function tk(e){e=e|0;var n=0;n=yr()|0,jn(e,1,11,n,nk()|0,2),t[e+24>>2]=0,t[e+28>>2]=0,t[e+32>>2]=0}function nk(){return 1840}function rk(e,n,r){e=e|0,n=n|0,r=r|0,uk(t[(ik(e)|0)>>2]|0,n,r)}function ik(e){return e=e|0,(t[(wE()|0)+24>>2]|0)+(e<<3)|0}function uk(e,n,r){e=e|0,n=n|0,r=r|0;var u=0,s=0,a=0;u=y,y=y+16|0,a=u+1|0,s=u,Pf(a,n),n=If(a,n)|0,Pf(s,r),r=If(s,r)|0,I1[e&31](n,r),y=u}function ok(e,n,r,u){e=e|0,n=n|0,r=r|0,u=u|0;var s=0,a=0;a=t[e>>2]|0,s=SE()|0,e=lk(r)|0,wi(a,n,s,e,sk(r,u)|0,u)}function SE(){var e=0,n=0;if(h[8048]|0||(r8(10896),Wt(66,10896,ge|0)|0,n=8048,t[n>>2]=1,t[n+4>>2]=0),!(sr(10896)|0)){e=10896,n=e+36|0;do t[e>>2]=0,e=e+4|0;while((e|0)<(n|0));r8(10896)}return 10896}function lk(e){return e=e|0,e|0}function sk(e,n){e=e|0,n=n|0;var r=0,u=0,s=0,a=0,v=0,w=0,T=0;return w=y,y=y+16|0,s=w,a=w+4|0,t[s>>2]=e,T=SE()|0,v=T+24|0,n=hn(n,4)|0,t[a>>2]=n,r=T+28|0,u=t[r>>2]|0,u>>>0<(t[T+32>>2]|0)>>>0?(n8(u,e,n),n=(t[r>>2]|0)+8|0,t[r>>2]=n):(ak(v,s,a),n=t[r>>2]|0),y=w,(n-(t[v>>2]|0)>>3)+-1|0}function n8(e,n,r){e=e|0,n=n|0,r=r|0,t[e>>2]=n,t[e+4>>2]=r}function ak(e,n,r){e=e|0,n=n|0,r=r|0;var u=0,s=0,a=0,v=0,w=0,T=0,L=0,M=0;if(w=y,y=y+32|0,s=w,a=e+4|0,v=((t[a>>2]|0)-(t[e>>2]|0)>>3)+1|0,u=fk(e)|0,u>>>0>>0)di(e);else{T=t[e>>2]|0,M=(t[e+8>>2]|0)-T|0,L=M>>2,ck(s,M>>3>>>0>>1>>>0?L>>>0>>0?v:L:u,(t[a>>2]|0)-T>>3,e+8|0),v=s+8|0,n8(t[v>>2]|0,t[n>>2]|0,t[r>>2]|0),t[v>>2]=(t[v>>2]|0)+8,dk(e,s),pk(s),y=w;return}}function fk(e){return e=e|0,536870911}function ck(e,n,r,u){e=e|0,n=n|0,r=r|0,u=u|0;var s=0;t[e+12>>2]=0,t[e+16>>2]=u;do if(n)if(n>>>0>536870911)$n();else{s=pn(n<<3)|0;break}else s=0;while(0);t[e>>2]=s,u=s+(r<<3)|0,t[e+8>>2]=u,t[e+4>>2]=u,t[e+12>>2]=s+(n<<3)}function dk(e,n){e=e|0,n=n|0;var r=0,u=0,s=0,a=0,v=0;u=t[e>>2]|0,v=e+4|0,a=n+4|0,s=(t[v>>2]|0)-u|0,r=(t[a>>2]|0)+(0-(s>>3)<<3)|0,t[a>>2]=r,(s|0)>0?(gr(r|0,u|0,s|0)|0,u=a,r=t[a>>2]|0):u=a,a=t[e>>2]|0,t[e>>2]=r,t[u>>2]=a,a=n+8|0,s=t[v>>2]|0,t[v>>2]=t[a>>2],t[a>>2]=s,a=e+8|0,v=n+12|0,e=t[a>>2]|0,t[a>>2]=t[v>>2],t[v>>2]=e,t[n>>2]=t[u>>2]}function pk(e){e=e|0;var n=0,r=0,u=0;n=t[e+4>>2]|0,r=e+8|0,u=t[r>>2]|0,(u|0)!=(n|0)&&(t[r>>2]=u+(~((u+-8-n|0)>>>3)<<3)),e=t[e>>2]|0,e|0&&Et(e)}function r8(e){e=e|0,mk(e)}function hk(e){e=e|0,vk(e+24|0)}function vk(e){e=e|0;var n=0,r=0,u=0;r=t[e>>2]|0,u=r,r|0&&(e=e+4|0,n=t[e>>2]|0,(n|0)!=(r|0)&&(t[e>>2]=n+(~((n+-8-u|0)>>>3)<<3)),Et(r))}function mk(e){e=e|0;var n=0;n=yr()|0,jn(e,1,11,n,yk()|0,1),t[e+24>>2]=0,t[e+28>>2]=0,t[e+32>>2]=0}function yk(){return 1852}function gk(e,n){return e=e|0,n=n|0,Ek(t[(_k(e)|0)>>2]|0,n)|0}function _k(e){return e=e|0,(t[(SE()|0)+24>>2]|0)+(e<<3)|0}function Ek(e,n){e=e|0,n=n|0;var r=0,u=0;return r=y,y=y+16|0,u=r,Pf(u,n),n=If(u,n)|0,n=H0(Qp[e&31](n)|0)|0,y=r,n|0}function Dk(e,n,r,u){e=e|0,n=n|0,r=r|0,u=u|0;var s=0,a=0;a=t[e>>2]|0,s=TE()|0,e=wk(r)|0,wi(a,n,s,e,Sk(r,u)|0,u)}function TE(){var e=0,n=0;if(h[8056]|0||(u8(10932),Wt(67,10932,ge|0)|0,n=8056,t[n>>2]=1,t[n+4>>2]=0),!(sr(10932)|0)){e=10932,n=e+36|0;do t[e>>2]=0,e=e+4|0;while((e|0)<(n|0));u8(10932)}return 10932}function wk(e){return e=e|0,e|0}function Sk(e,n){e=e|0,n=n|0;var r=0,u=0,s=0,a=0,v=0,w=0,T=0;return w=y,y=y+16|0,s=w,a=w+4|0,t[s>>2]=e,T=TE()|0,v=T+24|0,n=hn(n,4)|0,t[a>>2]=n,r=T+28|0,u=t[r>>2]|0,u>>>0<(t[T+32>>2]|0)>>>0?(i8(u,e,n),n=(t[r>>2]|0)+8|0,t[r>>2]=n):(Tk(v,s,a),n=t[r>>2]|0),y=w,(n-(t[v>>2]|0)>>3)+-1|0}function i8(e,n,r){e=e|0,n=n|0,r=r|0,t[e>>2]=n,t[e+4>>2]=r}function Tk(e,n,r){e=e|0,n=n|0,r=r|0;var u=0,s=0,a=0,v=0,w=0,T=0,L=0,M=0;if(w=y,y=y+32|0,s=w,a=e+4|0,v=((t[a>>2]|0)-(t[e>>2]|0)>>3)+1|0,u=Ck(e)|0,u>>>0>>0)di(e);else{T=t[e>>2]|0,M=(t[e+8>>2]|0)-T|0,L=M>>2,xk(s,M>>3>>>0>>1>>>0?L>>>0>>0?v:L:u,(t[a>>2]|0)-T>>3,e+8|0),v=s+8|0,i8(t[v>>2]|0,t[n>>2]|0,t[r>>2]|0),t[v>>2]=(t[v>>2]|0)+8,Rk(e,s),Ak(s),y=w;return}}function Ck(e){return e=e|0,536870911}function xk(e,n,r,u){e=e|0,n=n|0,r=r|0,u=u|0;var s=0;t[e+12>>2]=0,t[e+16>>2]=u;do if(n)if(n>>>0>536870911)$n();else{s=pn(n<<3)|0;break}else s=0;while(0);t[e>>2]=s,u=s+(r<<3)|0,t[e+8>>2]=u,t[e+4>>2]=u,t[e+12>>2]=s+(n<<3)}function Rk(e,n){e=e|0,n=n|0;var r=0,u=0,s=0,a=0,v=0;u=t[e>>2]|0,v=e+4|0,a=n+4|0,s=(t[v>>2]|0)-u|0,r=(t[a>>2]|0)+(0-(s>>3)<<3)|0,t[a>>2]=r,(s|0)>0?(gr(r|0,u|0,s|0)|0,u=a,r=t[a>>2]|0):u=a,a=t[e>>2]|0,t[e>>2]=r,t[u>>2]=a,a=n+8|0,s=t[v>>2]|0,t[v>>2]=t[a>>2],t[a>>2]=s,a=e+8|0,v=n+12|0,e=t[a>>2]|0,t[a>>2]=t[v>>2],t[v>>2]=e,t[n>>2]=t[u>>2]}function Ak(e){e=e|0;var n=0,r=0,u=0;n=t[e+4>>2]|0,r=e+8|0,u=t[r>>2]|0,(u|0)!=(n|0)&&(t[r>>2]=u+(~((u+-8-n|0)>>>3)<<3)),e=t[e>>2]|0,e|0&&Et(e)}function u8(e){e=e|0,kk(e)}function Ok(e){e=e|0,Mk(e+24|0)}function Mk(e){e=e|0;var n=0,r=0,u=0;r=t[e>>2]|0,u=r,r|0&&(e=e+4|0,n=t[e>>2]|0,(n|0)!=(r|0)&&(t[e>>2]=n+(~((n+-8-u|0)>>>3)<<3)),Et(r))}function kk(e){e=e|0;var n=0;n=yr()|0,jn(e,1,7,n,Nk()|0,2),t[e+24>>2]=0,t[e+28>>2]=0,t[e+32>>2]=0}function Nk(){return 1860}function Lk(e,n,r){return e=e|0,n=n|0,r=r|0,Pk(t[(Fk(e)|0)>>2]|0,n,r)|0}function Fk(e){return e=e|0,(t[(TE()|0)+24>>2]|0)+(e<<3)|0}function Pk(e,n,r){e=e|0,n=n|0,r=r|0;var u=0,s=0,a=0,v=0,w=0,T=0;return u=y,y=y+32|0,v=u+12|0,a=u+8|0,w=u,T=u+16|0,s=u+4|0,Ik(T,n),bk(w,T,n),Ys(s,r),r=Ks(s,r)|0,t[v>>2]=t[w>>2],Fy[e&15](a,v,r),r=Bk(a)|0,U0(a),Xs(s),y=u,r|0}function Ik(e,n){e=e|0,n=n|0}function bk(e,n,r){e=e|0,n=n|0,r=r|0,Uk(e,r)}function Bk(e){return e=e|0,go(e)|0}function Uk(e,n){e=e|0,n=n|0;var r=0,u=0,s=0;s=y,y=y+16|0,r=s,u=n,u&1?(jk(r,0),eu(u|0,r|0)|0,zk(e,r),Hk(r)):t[e>>2]=t[n>>2],y=s}function jk(e,n){e=e|0,n=n|0,fd(e,n),t[e+4>>2]=0,h[e+8>>0]=0}function zk(e,n){e=e|0,n=n|0,t[e>>2]=t[n+4>>2]}function Hk(e){e=e|0,h[e+8>>0]=0}function qk(e,n,r,u){e=e|0,n=n|0,r=r|0,u=u|0;var s=0,a=0;a=t[e>>2]|0,s=CE()|0,e=Wk(r)|0,wi(a,n,s,e,Vk(r,u)|0,u)}function CE(){var e=0,n=0;if(h[8064]|0||(l8(10968),Wt(68,10968,ge|0)|0,n=8064,t[n>>2]=1,t[n+4>>2]=0),!(sr(10968)|0)){e=10968,n=e+36|0;do t[e>>2]=0,e=e+4|0;while((e|0)<(n|0));l8(10968)}return 10968}function Wk(e){return e=e|0,e|0}function Vk(e,n){e=e|0,n=n|0;var r=0,u=0,s=0,a=0,v=0,w=0,T=0;return w=y,y=y+16|0,s=w,a=w+4|0,t[s>>2]=e,T=CE()|0,v=T+24|0,n=hn(n,4)|0,t[a>>2]=n,r=T+28|0,u=t[r>>2]|0,u>>>0<(t[T+32>>2]|0)>>>0?(o8(u,e,n),n=(t[r>>2]|0)+8|0,t[r>>2]=n):(Gk(v,s,a),n=t[r>>2]|0),y=w,(n-(t[v>>2]|0)>>3)+-1|0}function o8(e,n,r){e=e|0,n=n|0,r=r|0,t[e>>2]=n,t[e+4>>2]=r}function Gk(e,n,r){e=e|0,n=n|0,r=r|0;var u=0,s=0,a=0,v=0,w=0,T=0,L=0,M=0;if(w=y,y=y+32|0,s=w,a=e+4|0,v=((t[a>>2]|0)-(t[e>>2]|0)>>3)+1|0,u=Yk(e)|0,u>>>0>>0)di(e);else{T=t[e>>2]|0,M=(t[e+8>>2]|0)-T|0,L=M>>2,Kk(s,M>>3>>>0>>1>>>0?L>>>0>>0?v:L:u,(t[a>>2]|0)-T>>3,e+8|0),v=s+8|0,o8(t[v>>2]|0,t[n>>2]|0,t[r>>2]|0),t[v>>2]=(t[v>>2]|0)+8,Xk(e,s),Qk(s),y=w;return}}function Yk(e){return e=e|0,536870911}function Kk(e,n,r,u){e=e|0,n=n|0,r=r|0,u=u|0;var s=0;t[e+12>>2]=0,t[e+16>>2]=u;do if(n)if(n>>>0>536870911)$n();else{s=pn(n<<3)|0;break}else s=0;while(0);t[e>>2]=s,u=s+(r<<3)|0,t[e+8>>2]=u,t[e+4>>2]=u,t[e+12>>2]=s+(n<<3)}function Xk(e,n){e=e|0,n=n|0;var r=0,u=0,s=0,a=0,v=0;u=t[e>>2]|0,v=e+4|0,a=n+4|0,s=(t[v>>2]|0)-u|0,r=(t[a>>2]|0)+(0-(s>>3)<<3)|0,t[a>>2]=r,(s|0)>0?(gr(r|0,u|0,s|0)|0,u=a,r=t[a>>2]|0):u=a,a=t[e>>2]|0,t[e>>2]=r,t[u>>2]=a,a=n+8|0,s=t[v>>2]|0,t[v>>2]=t[a>>2],t[a>>2]=s,a=e+8|0,v=n+12|0,e=t[a>>2]|0,t[a>>2]=t[v>>2],t[v>>2]=e,t[n>>2]=t[u>>2]}function Qk(e){e=e|0;var n=0,r=0,u=0;n=t[e+4>>2]|0,r=e+8|0,u=t[r>>2]|0,(u|0)!=(n|0)&&(t[r>>2]=u+(~((u+-8-n|0)>>>3)<<3)),e=t[e>>2]|0,e|0&&Et(e)}function l8(e){e=e|0,$k(e)}function Jk(e){e=e|0,Zk(e+24|0)}function Zk(e){e=e|0;var n=0,r=0,u=0;r=t[e>>2]|0,u=r,r|0&&(e=e+4|0,n=t[e>>2]|0,(n|0)!=(r|0)&&(t[e>>2]=n+(~((n+-8-u|0)>>>3)<<3)),Et(r))}function $k(e){e=e|0;var n=0;n=yr()|0,jn(e,1,1,n,eN()|0,5),t[e+24>>2]=0,t[e+28>>2]=0,t[e+32>>2]=0}function eN(){return 1872}function tN(e,n,r,u,s,a){e=e|0,n=n|0,r=r|0,u=u|0,s=s|0,a=a|0,rN(t[(nN(e)|0)>>2]|0,n,r,u,s,a)}function nN(e){return e=e|0,(t[(CE()|0)+24>>2]|0)+(e<<3)|0}function rN(e,n,r,u,s,a){e=e|0,n=n|0,r=r|0,u=u|0,s=s|0,a=a|0;var v=0,w=0,T=0,L=0,M=0,b=0;v=y,y=y+32|0,w=v+16|0,T=v+12|0,L=v+8|0,M=v+4|0,b=v,Ys(w,n),n=Ks(w,n)|0,Ys(T,r),r=Ks(T,r)|0,Ys(L,u),u=Ks(L,u)|0,Ys(M,s),s=Ks(M,s)|0,Ys(b,a),a=Ks(b,a)|0,O8[e&1](n,r,u,s,a),Xs(b),Xs(M),Xs(L),Xs(T),Xs(w),y=v}function iN(e,n,r,u){e=e|0,n=n|0,r=r|0,u=u|0;var s=0,a=0;a=t[e>>2]|0,s=xE()|0,e=uN(r)|0,wi(a,n,s,e,oN(r,u)|0,u)}function xE(){var e=0,n=0;if(h[8072]|0||(a8(11004),Wt(69,11004,ge|0)|0,n=8072,t[n>>2]=1,t[n+4>>2]=0),!(sr(11004)|0)){e=11004,n=e+36|0;do t[e>>2]=0,e=e+4|0;while((e|0)<(n|0));a8(11004)}return 11004}function uN(e){return e=e|0,e|0}function oN(e,n){e=e|0,n=n|0;var r=0,u=0,s=0,a=0,v=0,w=0,T=0;return w=y,y=y+16|0,s=w,a=w+4|0,t[s>>2]=e,T=xE()|0,v=T+24|0,n=hn(n,4)|0,t[a>>2]=n,r=T+28|0,u=t[r>>2]|0,u>>>0<(t[T+32>>2]|0)>>>0?(s8(u,e,n),n=(t[r>>2]|0)+8|0,t[r>>2]=n):(lN(v,s,a),n=t[r>>2]|0),y=w,(n-(t[v>>2]|0)>>3)+-1|0}function s8(e,n,r){e=e|0,n=n|0,r=r|0,t[e>>2]=n,t[e+4>>2]=r}function lN(e,n,r){e=e|0,n=n|0,r=r|0;var u=0,s=0,a=0,v=0,w=0,T=0,L=0,M=0;if(w=y,y=y+32|0,s=w,a=e+4|0,v=((t[a>>2]|0)-(t[e>>2]|0)>>3)+1|0,u=sN(e)|0,u>>>0>>0)di(e);else{T=t[e>>2]|0,M=(t[e+8>>2]|0)-T|0,L=M>>2,aN(s,M>>3>>>0>>1>>>0?L>>>0>>0?v:L:u,(t[a>>2]|0)-T>>3,e+8|0),v=s+8|0,s8(t[v>>2]|0,t[n>>2]|0,t[r>>2]|0),t[v>>2]=(t[v>>2]|0)+8,fN(e,s),cN(s),y=w;return}}function sN(e){return e=e|0,536870911}function aN(e,n,r,u){e=e|0,n=n|0,r=r|0,u=u|0;var s=0;t[e+12>>2]=0,t[e+16>>2]=u;do if(n)if(n>>>0>536870911)$n();else{s=pn(n<<3)|0;break}else s=0;while(0);t[e>>2]=s,u=s+(r<<3)|0,t[e+8>>2]=u,t[e+4>>2]=u,t[e+12>>2]=s+(n<<3)}function fN(e,n){e=e|0,n=n|0;var r=0,u=0,s=0,a=0,v=0;u=t[e>>2]|0,v=e+4|0,a=n+4|0,s=(t[v>>2]|0)-u|0,r=(t[a>>2]|0)+(0-(s>>3)<<3)|0,t[a>>2]=r,(s|0)>0?(gr(r|0,u|0,s|0)|0,u=a,r=t[a>>2]|0):u=a,a=t[e>>2]|0,t[e>>2]=r,t[u>>2]=a,a=n+8|0,s=t[v>>2]|0,t[v>>2]=t[a>>2],t[a>>2]=s,a=e+8|0,v=n+12|0,e=t[a>>2]|0,t[a>>2]=t[v>>2],t[v>>2]=e,t[n>>2]=t[u>>2]}function cN(e){e=e|0;var n=0,r=0,u=0;n=t[e+4>>2]|0,r=e+8|0,u=t[r>>2]|0,(u|0)!=(n|0)&&(t[r>>2]=u+(~((u+-8-n|0)>>>3)<<3)),e=t[e>>2]|0,e|0&&Et(e)}function a8(e){e=e|0,hN(e)}function dN(e){e=e|0,pN(e+24|0)}function pN(e){e=e|0;var n=0,r=0,u=0;r=t[e>>2]|0,u=r,r|0&&(e=e+4|0,n=t[e>>2]|0,(n|0)!=(r|0)&&(t[e>>2]=n+(~((n+-8-u|0)>>>3)<<3)),Et(r))}function hN(e){e=e|0;var n=0;n=yr()|0,jn(e,1,12,n,vN()|0,2),t[e+24>>2]=0,t[e+28>>2]=0,t[e+32>>2]=0}function vN(){return 1896}function mN(e,n,r){e=e|0,n=n|0,r=r|0,gN(t[(yN(e)|0)>>2]|0,n,r)}function yN(e){return e=e|0,(t[(xE()|0)+24>>2]|0)+(e<<3)|0}function gN(e,n,r){e=e|0,n=n|0,r=r|0;var u=0,s=0,a=0;u=y,y=y+16|0,a=u+4|0,s=u,_N(a,n),n=EN(a,n)|0,Ys(s,r),r=Ks(s,r)|0,I1[e&31](n,r),Xs(s),y=u}function _N(e,n){e=e|0,n=n|0}function EN(e,n){return e=e|0,n=n|0,DN(n)|0}function DN(e){return e=e|0,e|0}function wN(){var e=0;return h[8080]|0||(f8(11040),Wt(70,11040,ge|0)|0,e=8080,t[e>>2]=1,t[e+4>>2]=0),sr(11040)|0||f8(11040),11040}function f8(e){e=e|0,CN(e),Vp(e,71)}function SN(e){e=e|0,TN(e+24|0)}function TN(e){e=e|0;var n=0,r=0,u=0;r=t[e>>2]|0,u=r,r|0&&(e=e+4|0,n=t[e>>2]|0,(n|0)!=(r|0)&&(t[e>>2]=n+(~((n+-8-u|0)>>>3)<<3)),Et(r))}function CN(e){e=e|0;var n=0;n=yr()|0,jn(e,5,7,n,ON()|0,0),t[e+24>>2]=0,t[e+28>>2]=0,t[e+32>>2]=0}function xN(e){e=e|0,RN(e)}function RN(e){e=e|0,AN(e)}function AN(e){e=e|0,h[e+8>>0]=1}function ON(){return 1936}function MN(){return kN()|0}function kN(){var e=0,n=0,r=0,u=0,s=0,a=0,v=0;return n=y,y=y+16|0,s=n+4|0,v=n,r=Oa(8)|0,e=r,a=e+4|0,t[a>>2]=pn(1)|0,u=pn(8)|0,a=t[a>>2]|0,t[v>>2]=0,t[s>>2]=t[v>>2],NN(u,a,s),t[r>>2]=u,y=n,e|0}function NN(e,n,r){e=e|0,n=n|0,r=r|0,t[e>>2]=n,r=pn(16)|0,t[r+4>>2]=0,t[r+8>>2]=0,t[r>>2]=1916,t[r+12>>2]=n,t[e+4>>2]=r}function LN(e){e=e|0,Uv(e),Et(e)}function FN(e){e=e|0,e=t[e+12>>2]|0,e|0&&Et(e)}function PN(e){e=e|0,Et(e)}function IN(){var e=0;return h[8088]|0||(qN(11076),Wt(25,11076,ge|0)|0,e=8088,t[e>>2]=1,t[e+4>>2]=0),11076}function bN(e,n){e=e|0,n=n|0,t[e>>2]=BN()|0,t[e+4>>2]=UN()|0,t[e+12>>2]=n,t[e+8>>2]=jN()|0,t[e+32>>2]=10}function BN(){return 11745}function UN(){return 1940}function jN(){return L1()|0}function zN(e,n,r,u){e=e|0,n=n|0,r=r|0,u=u|0,(Hl(u,896)|0)==512?r|0&&(HN(r),Et(r)):n|0&&Et(n)}function HN(e){e=e|0,e=t[e+4>>2]|0,e|0&&$d(e)}function qN(e){e=e|0,Xa(e)}function Gf(e,n){e=e|0,n=n|0,t[e>>2]=n}function RE(e){return e=e|0,t[e>>2]|0}function WN(e){return e=e|0,h[t[e>>2]>>0]|0}function VN(e,n){e=e|0,n=n|0;var r=0,u=0;r=y,y=y+16|0,u=r,t[u>>2]=t[e>>2],GN(n,u)|0,y=r}function GN(e,n){e=e|0,n=n|0;var r=0;return r=YN(t[e>>2]|0,n)|0,n=e+4|0,t[(t[n>>2]|0)+8>>2]=r,t[(t[n>>2]|0)+8>>2]|0}function YN(e,n){e=e|0,n=n|0;var r=0,u=0;return r=y,y=y+16|0,u=r,Ma(u),e=go(e)|0,n=KN(e,t[n>>2]|0)|0,ka(u),y=r,n|0}function Ma(e){e=e|0,t[e>>2]=t[2701],t[e+4>>2]=t[2703]}function KN(e,n){e=e|0,n=n|0;var r=0;return r=_o(XN()|0)|0,Ki(0,r|0,e|0,EE(n)|0)|0}function ka(e){e=e|0,$w(t[e>>2]|0,t[e+4>>2]|0)}function XN(){var e=0;return h[8096]|0||(QN(11120),e=8096,t[e>>2]=1,t[e+4>>2]=0),11120}function QN(e){e=e|0,ll(e,JN()|0,1)}function JN(){return 1948}function ZN(){$N()}function $N(){var e=0,n=0,r=0,u=0,s=0,a=0,v=0,w=0,T=0,L=0,M=0,b=0,X=0,Be=0,Te=0,ye=0;if(Te=y,y=y+16|0,M=Te+4|0,b=Te,In(65536,10804,t[2702]|0,10812),r=Fw()|0,n=t[r>>2]|0,e=t[n>>2]|0,e|0)for(u=t[r+8>>2]|0,r=t[r+4>>2]|0;Xl(e|0,N[r>>0]|0|0,h[u>>0]|0),n=n+4|0,e=t[n>>2]|0,e;)u=u+1|0,r=r+1|0;if(e=Pw()|0,n=t[e>>2]|0,n|0)do ko(n|0,t[e+4>>2]|0),e=e+8|0,n=t[e>>2]|0;while((n|0)!=0);ko(eL()|0,5167),L=Fv()|0,e=t[L>>2]|0;e:do if(e|0){do tL(t[e+4>>2]|0),e=t[e>>2]|0;while((e|0)!=0);if(e=t[L>>2]|0,e|0){T=L;do{for(;s=e,e=t[e>>2]|0,s=t[s+4>>2]|0,!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,b=(Oy(u)|0)+1|0,ye=d_(u)|0,ao(X|0,L|0,M|0,b|0,ye|0,lL(u)|0,sr(u)|0,0,0,0);break n}default:break n}while(0);r=t[r>>2]|0}while((r|0)!=0)}if(e=t[e>>2]|0,!e)break e}$n()}while(0);Is(),y=Te}function eL(){return 11703}function tL(e){e=e|0,h[e+40>>0]=0}function nL(e){return e=e|0,(h[e+40>>0]|0)!=0|0}function rL(e,n){return e=e|0,n=n|0,n=sL(n)|0,e=t[n>>2]|0,t[n>>2]=t[e>>2],Et(e),t[n>>2]|0}function iL(e){e=e|0,h[e+40>>0]=1}function c8(e){return e=e|0,t[e+20>>2]|0}function uL(e){return e=e|0,t[e+8>>2]|0}function oL(e){return e=e|0,t[e+32>>2]|0}function d_(e){return e=e|0,t[e+4>>2]|0}function d8(e){return e=e|0,t[e+4>>2]|0}function AE(e){return e=e|0,t[e+8>>2]|0}function OE(e){return e=e|0,t[e+16>>2]|0}function lL(e){return e=e|0,t[e+20>>2]|0}function sL(e){return e=e|0,t[e>>2]|0}function p_(e){e=e|0;var n=0,r=0,u=0,s=0,a=0,v=0,w=0,T=0,L=0,M=0,b=0,X=0,Be=0,Te=0,ye=0,Ze=0,Ye=0,ct=0,ke=0,Ie=0,Zt=0;Zt=y,y=y+16|0,X=Zt;do if(e>>>0<245){if(L=e>>>0<11?16:e+11&-8,e=L>>>3,b=t[2783]|0,r=b>>>e,r&3|0)return n=(r&1^1)+e|0,e=11172+(n<<1<<2)|0,r=e+8|0,u=t[r>>2]|0,s=u+8|0,a=t[s>>2]|0,(e|0)==(a|0)?t[2783]=b&~(1<>2]=e,t[r>>2]=a),Ie=n<<3,t[u+4>>2]=Ie|3,Ie=u+Ie+4|0,t[Ie>>2]=t[Ie>>2]|1,Ie=s,y=Zt,Ie|0;if(M=t[2785]|0,L>>>0>M>>>0){if(r|0)return n=2<>>12&16,n=n>>>v,r=n>>>5&8,n=n>>>r,s=n>>>2&4,n=n>>>s,e=n>>>1&2,n=n>>>e,u=n>>>1&1,u=(r|v|s|e|u)+(n>>>u)|0,n=11172+(u<<1<<2)|0,e=n+8|0,s=t[e>>2]|0,v=s+8|0,r=t[v>>2]|0,(n|0)==(r|0)?(e=b&~(1<>2]=n,t[e>>2]=r,e=b),a=(u<<3)-L|0,t[s+4>>2]=L|3,u=s+L|0,t[u+4>>2]=a|1,t[u+a>>2]=a,M|0&&(s=t[2788]|0,n=M>>>3,r=11172+(n<<1<<2)|0,n=1<>2]|0):(t[2783]=e|n,n=r,e=r+8|0),t[e>>2]=s,t[n+12>>2]=s,t[s+8>>2]=n,t[s+12>>2]=r),t[2785]=a,t[2788]=u,Ie=v,y=Zt,Ie|0;if(w=t[2784]|0,w){if(r=(w&0-w)+-1|0,v=r>>>12&16,r=r>>>v,a=r>>>5&8,r=r>>>a,T=r>>>2&4,r=r>>>T,u=r>>>1&2,r=r>>>u,e=r>>>1&1,e=t[11436+((a|v|T|u|e)+(r>>>e)<<2)>>2]|0,r=(t[e+4>>2]&-8)-L|0,u=t[e+16+(((t[e+16>>2]|0)==0&1)<<2)>>2]|0,!u)T=e,a=r;else{do v=(t[u+4>>2]&-8)-L|0,T=v>>>0>>0,r=T?v:r,e=T?u:e,u=t[u+16+(((t[u+16>>2]|0)==0&1)<<2)>>2]|0;while((u|0)!=0);T=e,a=r}if(v=T+L|0,T>>>0>>0){s=t[T+24>>2]|0,n=t[T+12>>2]|0;do if((n|0)==(T|0)){if(e=T+20|0,n=t[e>>2]|0,!n&&(e=T+16|0,n=t[e>>2]|0,!n)){r=0;break}for(;;){if(r=n+20|0,u=t[r>>2]|0,u|0){n=u,e=r;continue}if(r=n+16|0,u=t[r>>2]|0,u)n=u,e=r;else break}t[e>>2]=0,r=n}else r=t[T+8>>2]|0,t[r+12>>2]=n,t[n+8>>2]=r,r=n;while(0);do if(s|0){if(n=t[T+28>>2]|0,e=11436+(n<<2)|0,(T|0)==(t[e>>2]|0)){if(t[e>>2]=r,!r){t[2784]=w&~(1<>2]|0)!=(T|0)&1)<<2)>>2]=r,!r)break;t[r+24>>2]=s,n=t[T+16>>2]|0,n|0&&(t[r+16>>2]=n,t[n+24>>2]=r),n=t[T+20>>2]|0,n|0&&(t[r+20>>2]=n,t[n+24>>2]=r)}while(0);return a>>>0<16?(Ie=a+L|0,t[T+4>>2]=Ie|3,Ie=T+Ie+4|0,t[Ie>>2]=t[Ie>>2]|1):(t[T+4>>2]=L|3,t[v+4>>2]=a|1,t[v+a>>2]=a,M|0&&(u=t[2788]|0,n=M>>>3,r=11172+(n<<1<<2)|0,n=1<>2]|0):(t[2783]=b|n,n=r,e=r+8|0),t[e>>2]=u,t[n+12>>2]=u,t[u+8>>2]=n,t[u+12>>2]=r),t[2785]=a,t[2788]=v),Ie=T+8|0,y=Zt,Ie|0}else b=L}else b=L}else b=L}else if(e>>>0<=4294967231)if(e=e+11|0,L=e&-8,T=t[2784]|0,T){u=0-L|0,e=e>>>8,e?L>>>0>16777215?w=31:(b=(e+1048320|0)>>>16&8,ke=e<>>16&4,ke=ke<>>16&2,w=14-(M|b|w)+(ke<>>15)|0,w=L>>>(w+7|0)&1|w<<1):w=0,r=t[11436+(w<<2)>>2]|0;e:do if(!r)r=0,e=0,ke=57;else for(e=0,v=L<<((w|0)==31?0:25-(w>>>1)|0),a=0;;){if(s=(t[r+4>>2]&-8)-L|0,s>>>0>>0)if(s)e=r,u=s;else{e=r,u=0,s=r,ke=61;break e}if(s=t[r+20>>2]|0,r=t[r+16+(v>>>31<<2)>>2]|0,a=(s|0)==0|(s|0)==(r|0)?a:s,s=(r|0)==0,s){r=a,ke=57;break}else v=v<<((s^1)&1)}while(0);if((ke|0)==57){if((r|0)==0&(e|0)==0){if(e=2<>>12&16,b=b>>>v,a=b>>>5&8,b=b>>>a,w=b>>>2&4,b=b>>>w,M=b>>>1&2,b=b>>>M,r=b>>>1&1,e=0,r=t[11436+((a|v|w|M|r)+(b>>>r)<<2)>>2]|0}r?(s=r,ke=61):(w=e,v=u)}if((ke|0)==61)for(;;)if(ke=0,r=(t[s+4>>2]&-8)-L|0,b=r>>>0>>0,r=b?r:u,e=b?s:e,s=t[s+16+(((t[s+16>>2]|0)==0&1)<<2)>>2]|0,s)u=r,ke=61;else{w=e,v=r;break}if((w|0)!=0&&v>>>0<((t[2785]|0)-L|0)>>>0){if(a=w+L|0,w>>>0>=a>>>0)return Ie=0,y=Zt,Ie|0;s=t[w+24>>2]|0,n=t[w+12>>2]|0;do if((n|0)==(w|0)){if(e=w+20|0,n=t[e>>2]|0,!n&&(e=w+16|0,n=t[e>>2]|0,!n)){n=0;break}for(;;){if(r=n+20|0,u=t[r>>2]|0,u|0){n=u,e=r;continue}if(r=n+16|0,u=t[r>>2]|0,u)n=u,e=r;else break}t[e>>2]=0}else Ie=t[w+8>>2]|0,t[Ie+12>>2]=n,t[n+8>>2]=Ie;while(0);do if(s){if(e=t[w+28>>2]|0,r=11436+(e<<2)|0,(w|0)==(t[r>>2]|0)){if(t[r>>2]=n,!n){u=T&~(1<>2]|0)!=(w|0)&1)<<2)>>2]=n,!n){u=T;break}t[n+24>>2]=s,e=t[w+16>>2]|0,e|0&&(t[n+16>>2]=e,t[e+24>>2]=n),e=t[w+20>>2]|0,e&&(t[n+20>>2]=e,t[e+24>>2]=n),u=T}else u=T;while(0);do if(v>>>0>=16){if(t[w+4>>2]=L|3,t[a+4>>2]=v|1,t[a+v>>2]=v,n=v>>>3,v>>>0<256){r=11172+(n<<1<<2)|0,e=t[2783]|0,n=1<>2]|0):(t[2783]=e|n,n=r,e=r+8|0),t[e>>2]=a,t[n+12>>2]=a,t[a+8>>2]=n,t[a+12>>2]=r;break}if(n=v>>>8,n?v>>>0>16777215?n=31:(ke=(n+1048320|0)>>>16&8,Ie=n<>>16&4,Ie=Ie<>>16&2,n=14-(ct|ke|n)+(Ie<>>15)|0,n=v>>>(n+7|0)&1|n<<1):n=0,r=11436+(n<<2)|0,t[a+28>>2]=n,e=a+16|0,t[e+4>>2]=0,t[e>>2]=0,e=1<>2]=a,t[a+24>>2]=r,t[a+12>>2]=a,t[a+8>>2]=a;break}for(e=v<<((n|0)==31?0:25-(n>>>1)|0),r=t[r>>2]|0;;){if((t[r+4>>2]&-8|0)==(v|0)){ke=97;break}if(u=r+16+(e>>>31<<2)|0,n=t[u>>2]|0,n)e=e<<1,r=n;else{ke=96;break}}if((ke|0)==96){t[u>>2]=a,t[a+24>>2]=r,t[a+12>>2]=a,t[a+8>>2]=a;break}else if((ke|0)==97){ke=r+8|0,Ie=t[ke>>2]|0,t[Ie+12>>2]=a,t[ke>>2]=a,t[a+8>>2]=Ie,t[a+12>>2]=r,t[a+24>>2]=0;break}}else Ie=v+L|0,t[w+4>>2]=Ie|3,Ie=w+Ie+4|0,t[Ie>>2]=t[Ie>>2]|1;while(0);return Ie=w+8|0,y=Zt,Ie|0}else b=L}else b=L;else b=-1;while(0);if(r=t[2785]|0,r>>>0>=b>>>0)return n=r-b|0,e=t[2788]|0,n>>>0>15?(Ie=e+b|0,t[2788]=Ie,t[2785]=n,t[Ie+4>>2]=n|1,t[Ie+n>>2]=n,t[e+4>>2]=b|3):(t[2785]=0,t[2788]=0,t[e+4>>2]=r|3,Ie=e+r+4|0,t[Ie>>2]=t[Ie>>2]|1),Ie=e+8|0,y=Zt,Ie|0;if(v=t[2786]|0,v>>>0>b>>>0)return ct=v-b|0,t[2786]=ct,Ie=t[2789]|0,ke=Ie+b|0,t[2789]=ke,t[ke+4>>2]=ct|1,t[Ie+4>>2]=b|3,Ie=Ie+8|0,y=Zt,Ie|0;if(t[2901]|0?e=t[2903]|0:(t[2903]=4096,t[2902]=4096,t[2904]=-1,t[2905]=-1,t[2906]=0,t[2894]=0,e=X&-16^1431655768,t[X>>2]=e,t[2901]=e,e=4096),w=b+48|0,T=b+47|0,a=e+T|0,s=0-e|0,L=a&s,L>>>0<=b>>>0||(e=t[2893]|0,e|0&&(M=t[2891]|0,X=M+L|0,X>>>0<=M>>>0|X>>>0>e>>>0)))return Ie=0,y=Zt,Ie|0;e:do if(t[2894]&4)n=0,ke=133;else{r=t[2789]|0;t:do if(r){for(u=11580;e=t[u>>2]|0,!(e>>>0<=r>>>0&&(ye=u+4|0,(e+(t[ye>>2]|0)|0)>>>0>r>>>0));)if(e=t[u+8>>2]|0,e)u=e;else{ke=118;break t}if(n=a-v&s,n>>>0<2147483647)if(e=e2(n|0)|0,(e|0)==((t[u>>2]|0)+(t[ye>>2]|0)|0)){if((e|0)!=-1){v=n,a=e,ke=135;break e}}else u=e,ke=126;else n=0}else ke=118;while(0);do if((ke|0)==118)if(r=e2(0)|0,(r|0)!=-1&&(n=r,Be=t[2902]|0,Te=Be+-1|0,n=((Te&n|0)==0?0:(Te+n&0-Be)-n|0)+L|0,Be=t[2891]|0,Te=n+Be|0,n>>>0>b>>>0&n>>>0<2147483647)){if(ye=t[2893]|0,ye|0&&Te>>>0<=Be>>>0|Te>>>0>ye>>>0){n=0;break}if(e=e2(n|0)|0,(e|0)==(r|0)){v=n,a=r,ke=135;break e}else u=e,ke=126}else n=0;while(0);do if((ke|0)==126){if(r=0-n|0,!(w>>>0>n>>>0&(n>>>0<2147483647&(u|0)!=-1)))if((u|0)==-1){n=0;break}else{v=n,a=u,ke=135;break e}if(e=t[2903]|0,e=T-n+e&0-e,e>>>0>=2147483647){v=n,a=u,ke=135;break e}if((e2(e|0)|0)==-1){e2(r|0)|0,n=0;break}else{v=e+n|0,a=u,ke=135;break e}}while(0);t[2894]=t[2894]|4,ke=133}while(0);if((ke|0)==133&&L>>>0<2147483647&&(ct=e2(L|0)|0,ye=e2(0)|0,Ze=ye-ct|0,Ye=Ze>>>0>(b+40|0)>>>0,!((ct|0)==-1|Ye^1|ct>>>0>>0&((ct|0)!=-1&(ye|0)!=-1)^1))&&(v=Ye?Ze:n,a=ct,ke=135),(ke|0)==135){n=(t[2891]|0)+v|0,t[2891]=n,n>>>0>(t[2892]|0)>>>0&&(t[2892]=n),T=t[2789]|0;do if(T){for(n=11580;;){if(e=t[n>>2]|0,r=n+4|0,u=t[r>>2]|0,(a|0)==(e+u|0)){ke=145;break}if(s=t[n+8>>2]|0,s)n=s;else break}if((ke|0)==145&&(t[n+12>>2]&8|0)==0&&T>>>0>>0&T>>>0>=e>>>0){t[r>>2]=u+v,Ie=T+8|0,Ie=(Ie&7|0)==0?0:0-Ie&7,ke=T+Ie|0,Ie=(t[2786]|0)+(v-Ie)|0,t[2789]=ke,t[2786]=Ie,t[ke+4>>2]=Ie|1,t[ke+Ie+4>>2]=40,t[2790]=t[2905];break}for(a>>>0<(t[2787]|0)>>>0&&(t[2787]=a),r=a+v|0,n=11580;;){if((t[n>>2]|0)==(r|0)){ke=153;break}if(e=t[n+8>>2]|0,e)n=e;else break}if((ke|0)==153&&(t[n+12>>2]&8|0)==0){t[n>>2]=a,M=n+4|0,t[M>>2]=(t[M>>2]|0)+v,M=a+8|0,M=a+((M&7|0)==0?0:0-M&7)|0,n=r+8|0,n=r+((n&7|0)==0?0:0-n&7)|0,L=M+b|0,w=n-M-b|0,t[M+4>>2]=b|3;do if((n|0)!=(T|0)){if((n|0)==(t[2788]|0)){Ie=(t[2785]|0)+w|0,t[2785]=Ie,t[2788]=L,t[L+4>>2]=Ie|1,t[L+Ie>>2]=Ie;break}if(e=t[n+4>>2]|0,(e&3|0)==1){v=e&-8,u=e>>>3;e:do if(e>>>0<256)if(e=t[n+8>>2]|0,r=t[n+12>>2]|0,(r|0)==(e|0)){t[2783]=t[2783]&~(1<>2]=r,t[r+8>>2]=e;break}else{a=t[n+24>>2]|0,e=t[n+12>>2]|0;do if((e|0)==(n|0)){if(u=n+16|0,r=u+4|0,e=t[r>>2]|0,!e)if(e=t[u>>2]|0,e)r=u;else{e=0;break}for(;;){if(u=e+20|0,s=t[u>>2]|0,s|0){e=s,r=u;continue}if(u=e+16|0,s=t[u>>2]|0,s)e=s,r=u;else break}t[r>>2]=0}else Ie=t[n+8>>2]|0,t[Ie+12>>2]=e,t[e+8>>2]=Ie;while(0);if(!a)break;r=t[n+28>>2]|0,u=11436+(r<<2)|0;do if((n|0)!=(t[u>>2]|0)){if(t[a+16+(((t[a+16>>2]|0)!=(n|0)&1)<<2)>>2]=e,!e)break e}else{if(t[u>>2]=e,e|0)break;t[2784]=t[2784]&~(1<>2]=a,r=n+16|0,u=t[r>>2]|0,u|0&&(t[e+16>>2]=u,t[u+24>>2]=e),r=t[r+4>>2]|0,!r)break;t[e+20>>2]=r,t[r+24>>2]=e}while(0);n=n+v|0,s=v+w|0}else s=w;if(n=n+4|0,t[n>>2]=t[n>>2]&-2,t[L+4>>2]=s|1,t[L+s>>2]=s,n=s>>>3,s>>>0<256){r=11172+(n<<1<<2)|0,e=t[2783]|0,n=1<>2]|0):(t[2783]=e|n,n=r,e=r+8|0),t[e>>2]=L,t[n+12>>2]=L,t[L+8>>2]=n,t[L+12>>2]=r;break}n=s>>>8;do if(!n)n=0;else{if(s>>>0>16777215){n=31;break}ke=(n+1048320|0)>>>16&8,Ie=n<>>16&4,Ie=Ie<>>16&2,n=14-(ct|ke|n)+(Ie<>>15)|0,n=s>>>(n+7|0)&1|n<<1}while(0);if(u=11436+(n<<2)|0,t[L+28>>2]=n,e=L+16|0,t[e+4>>2]=0,t[e>>2]=0,e=t[2784]|0,r=1<>2]=L,t[L+24>>2]=u,t[L+12>>2]=L,t[L+8>>2]=L;break}for(e=s<<((n|0)==31?0:25-(n>>>1)|0),r=t[u>>2]|0;;){if((t[r+4>>2]&-8|0)==(s|0)){ke=194;break}if(u=r+16+(e>>>31<<2)|0,n=t[u>>2]|0,n)e=e<<1,r=n;else{ke=193;break}}if((ke|0)==193){t[u>>2]=L,t[L+24>>2]=r,t[L+12>>2]=L,t[L+8>>2]=L;break}else if((ke|0)==194){ke=r+8|0,Ie=t[ke>>2]|0,t[Ie+12>>2]=L,t[ke>>2]=L,t[L+8>>2]=Ie,t[L+12>>2]=r,t[L+24>>2]=0;break}}else Ie=(t[2786]|0)+w|0,t[2786]=Ie,t[2789]=L,t[L+4>>2]=Ie|1;while(0);return Ie=M+8|0,y=Zt,Ie|0}for(n=11580;e=t[n>>2]|0,!(e>>>0<=T>>>0&&(Ie=e+(t[n+4>>2]|0)|0,Ie>>>0>T>>>0));)n=t[n+8>>2]|0;s=Ie+-47|0,e=s+8|0,e=s+((e&7|0)==0?0:0-e&7)|0,s=T+16|0,e=e>>>0>>0?T:e,n=e+8|0,r=a+8|0,r=(r&7|0)==0?0:0-r&7,ke=a+r|0,r=v+-40-r|0,t[2789]=ke,t[2786]=r,t[ke+4>>2]=r|1,t[ke+r+4>>2]=40,t[2790]=t[2905],r=e+4|0,t[r>>2]=27,t[n>>2]=t[2895],t[n+4>>2]=t[2896],t[n+8>>2]=t[2897],t[n+12>>2]=t[2898],t[2895]=a,t[2896]=v,t[2898]=0,t[2897]=n,n=e+24|0;do ke=n,n=n+4|0,t[n>>2]=7;while((ke+8|0)>>>0>>0);if((e|0)!=(T|0)){if(a=e-T|0,t[r>>2]=t[r>>2]&-2,t[T+4>>2]=a|1,t[e>>2]=a,n=a>>>3,a>>>0<256){r=11172+(n<<1<<2)|0,e=t[2783]|0,n=1<>2]|0):(t[2783]=e|n,n=r,e=r+8|0),t[e>>2]=T,t[n+12>>2]=T,t[T+8>>2]=n,t[T+12>>2]=r;break}if(n=a>>>8,n?a>>>0>16777215?r=31:(ke=(n+1048320|0)>>>16&8,Ie=n<>>16&4,Ie=Ie<>>16&2,r=14-(ct|ke|r)+(Ie<>>15)|0,r=a>>>(r+7|0)&1|r<<1):r=0,u=11436+(r<<2)|0,t[T+28>>2]=r,t[T+20>>2]=0,t[s>>2]=0,n=t[2784]|0,e=1<>2]=T,t[T+24>>2]=u,t[T+12>>2]=T,t[T+8>>2]=T;break}for(e=a<<((r|0)==31?0:25-(r>>>1)|0),r=t[u>>2]|0;;){if((t[r+4>>2]&-8|0)==(a|0)){ke=216;break}if(u=r+16+(e>>>31<<2)|0,n=t[u>>2]|0,n)e=e<<1,r=n;else{ke=215;break}}if((ke|0)==215){t[u>>2]=T,t[T+24>>2]=r,t[T+12>>2]=T,t[T+8>>2]=T;break}else if((ke|0)==216){ke=r+8|0,Ie=t[ke>>2]|0,t[Ie+12>>2]=T,t[ke>>2]=T,t[T+8>>2]=Ie,t[T+12>>2]=r,t[T+24>>2]=0;break}}}else{Ie=t[2787]|0,(Ie|0)==0|a>>>0>>0&&(t[2787]=a),t[2895]=a,t[2896]=v,t[2898]=0,t[2792]=t[2901],t[2791]=-1,n=0;do Ie=11172+(n<<1<<2)|0,t[Ie+12>>2]=Ie,t[Ie+8>>2]=Ie,n=n+1|0;while((n|0)!=32);Ie=a+8|0,Ie=(Ie&7|0)==0?0:0-Ie&7,ke=a+Ie|0,Ie=v+-40-Ie|0,t[2789]=ke,t[2786]=Ie,t[ke+4>>2]=Ie|1,t[ke+Ie+4>>2]=40,t[2790]=t[2905]}while(0);if(n=t[2786]|0,n>>>0>b>>>0)return ct=n-b|0,t[2786]=ct,Ie=t[2789]|0,ke=Ie+b|0,t[2789]=ke,t[ke+4>>2]=ct|1,t[Ie+4>>2]=b|3,Ie=Ie+8|0,y=Zt,Ie|0}return t[(bv()|0)>>2]=12,Ie=0,y=Zt,Ie|0}function h_(e){e=e|0;var n=0,r=0,u=0,s=0,a=0,v=0,w=0,T=0;if(!!e){r=e+-8|0,s=t[2787]|0,e=t[e+-4>>2]|0,n=e&-8,T=r+n|0;do if(e&1)w=r,v=r;else{if(u=t[r>>2]|0,!(e&3)||(v=r+(0-u)|0,a=u+n|0,v>>>0>>0))return;if((v|0)==(t[2788]|0)){if(e=T+4|0,n=t[e>>2]|0,(n&3|0)!=3){w=v,n=a;break}t[2785]=a,t[e>>2]=n&-2,t[v+4>>2]=a|1,t[v+a>>2]=a;return}if(r=u>>>3,u>>>0<256)if(e=t[v+8>>2]|0,n=t[v+12>>2]|0,(n|0)==(e|0)){t[2783]=t[2783]&~(1<>2]=n,t[n+8>>2]=e,w=v,n=a;break}s=t[v+24>>2]|0,e=t[v+12>>2]|0;do if((e|0)==(v|0)){if(r=v+16|0,n=r+4|0,e=t[n>>2]|0,!e)if(e=t[r>>2]|0,e)n=r;else{e=0;break}for(;;){if(r=e+20|0,u=t[r>>2]|0,u|0){e=u,n=r;continue}if(r=e+16|0,u=t[r>>2]|0,u)e=u,n=r;else break}t[n>>2]=0}else w=t[v+8>>2]|0,t[w+12>>2]=e,t[e+8>>2]=w;while(0);if(s){if(n=t[v+28>>2]|0,r=11436+(n<<2)|0,(v|0)==(t[r>>2]|0)){if(t[r>>2]=e,!e){t[2784]=t[2784]&~(1<>2]|0)!=(v|0)&1)<<2)>>2]=e,!e){w=v,n=a;break}t[e+24>>2]=s,n=v+16|0,r=t[n>>2]|0,r|0&&(t[e+16>>2]=r,t[r+24>>2]=e),n=t[n+4>>2]|0,n?(t[e+20>>2]=n,t[n+24>>2]=e,w=v,n=a):(w=v,n=a)}else w=v,n=a}while(0);if(!(v>>>0>=T>>>0)&&(e=T+4|0,u=t[e>>2]|0,!!(u&1))){if(u&2)t[e>>2]=u&-2,t[w+4>>2]=n|1,t[v+n>>2]=n,s=n;else{if(e=t[2788]|0,(T|0)==(t[2789]|0)){if(T=(t[2786]|0)+n|0,t[2786]=T,t[2789]=w,t[w+4>>2]=T|1,(w|0)!=(e|0))return;t[2788]=0,t[2785]=0;return}if((T|0)==(e|0)){T=(t[2785]|0)+n|0,t[2785]=T,t[2788]=v,t[w+4>>2]=T|1,t[v+T>>2]=T;return}s=(u&-8)+n|0,r=u>>>3;do if(u>>>0<256)if(n=t[T+8>>2]|0,e=t[T+12>>2]|0,(e|0)==(n|0)){t[2783]=t[2783]&~(1<>2]=e,t[e+8>>2]=n;break}else{a=t[T+24>>2]|0,e=t[T+12>>2]|0;do if((e|0)==(T|0)){if(r=T+16|0,n=r+4|0,e=t[n>>2]|0,!e)if(e=t[r>>2]|0,e)n=r;else{r=0;break}for(;;){if(r=e+20|0,u=t[r>>2]|0,u|0){e=u,n=r;continue}if(r=e+16|0,u=t[r>>2]|0,u)e=u,n=r;else break}t[n>>2]=0,r=e}else r=t[T+8>>2]|0,t[r+12>>2]=e,t[e+8>>2]=r,r=e;while(0);if(a|0){if(e=t[T+28>>2]|0,n=11436+(e<<2)|0,(T|0)==(t[n>>2]|0)){if(t[n>>2]=r,!r){t[2784]=t[2784]&~(1<>2]|0)!=(T|0)&1)<<2)>>2]=r,!r)break;t[r+24>>2]=a,e=T+16|0,n=t[e>>2]|0,n|0&&(t[r+16>>2]=n,t[n+24>>2]=r),e=t[e+4>>2]|0,e|0&&(t[r+20>>2]=e,t[e+24>>2]=r)}}while(0);if(t[w+4>>2]=s|1,t[v+s>>2]=s,(w|0)==(t[2788]|0)){t[2785]=s;return}}if(e=s>>>3,s>>>0<256){r=11172+(e<<1<<2)|0,n=t[2783]|0,e=1<>2]|0):(t[2783]=n|e,e=r,n=r+8|0),t[n>>2]=w,t[e+12>>2]=w,t[w+8>>2]=e,t[w+12>>2]=r;return}e=s>>>8,e?s>>>0>16777215?e=31:(v=(e+1048320|0)>>>16&8,T=e<>>16&4,T=T<>>16&2,e=14-(a|v|e)+(T<>>15)|0,e=s>>>(e+7|0)&1|e<<1):e=0,u=11436+(e<<2)|0,t[w+28>>2]=e,t[w+20>>2]=0,t[w+16>>2]=0,n=t[2784]|0,r=1<>>1)|0),r=t[u>>2]|0;;){if((t[r+4>>2]&-8|0)==(s|0)){e=73;break}if(u=r+16+(n>>>31<<2)|0,e=t[u>>2]|0,e)n=n<<1,r=e;else{e=72;break}}if((e|0)==72){t[u>>2]=w,t[w+24>>2]=r,t[w+12>>2]=w,t[w+8>>2]=w;break}else if((e|0)==73){v=r+8|0,T=t[v>>2]|0,t[T+12>>2]=w,t[v>>2]=w,t[w+8>>2]=T,t[w+12>>2]=r,t[w+24>>2]=0;break}}else t[2784]=n|r,t[u>>2]=w,t[w+24>>2]=u,t[w+12>>2]=w,t[w+8>>2]=w;while(0);if(T=(t[2791]|0)+-1|0,t[2791]=T,!T)e=11588;else return;for(;e=t[e>>2]|0,e;)e=e+8|0;t[2791]=-1}}}function aL(){return 11628}function fL(e){e=e|0;var n=0,r=0;return n=y,y=y+16|0,r=n,t[r>>2]=pL(t[e+60>>2]|0)|0,e=v_(Au(6,r|0)|0)|0,y=n,e|0}function p8(e,n,r){e=e|0,n=n|0,r=r|0;var u=0,s=0,a=0,v=0,w=0,T=0,L=0,M=0,b=0,X=0,Be=0;b=y,y=y+48|0,L=b+16|0,a=b,s=b+32|0,w=e+28|0,u=t[w>>2]|0,t[s>>2]=u,T=e+20|0,u=(t[T>>2]|0)-u|0,t[s+4>>2]=u,t[s+8>>2]=n,t[s+12>>2]=r,u=u+r|0,v=e+60|0,t[a>>2]=t[v>>2],t[a+4>>2]=s,t[a+8>>2]=2,a=v_(h0(146,a|0)|0)|0;e:do if((u|0)!=(a|0)){for(n=2;!((a|0)<0);)if(u=u-a|0,Be=t[s+4>>2]|0,X=a>>>0>Be>>>0,s=X?s+8|0:s,n=(X<<31>>31)+n|0,Be=a-(X?Be:0)|0,t[s>>2]=(t[s>>2]|0)+Be,X=s+4|0,t[X>>2]=(t[X>>2]|0)-Be,t[L>>2]=t[v>>2],t[L+4>>2]=s,t[L+8>>2]=n,a=v_(h0(146,L|0)|0)|0,(u|0)==(a|0)){M=3;break e}t[e+16>>2]=0,t[w>>2]=0,t[T>>2]=0,t[e>>2]=t[e>>2]|32,(n|0)==2?r=0:r=r-(t[s+4>>2]|0)|0}else M=3;while(0);return(M|0)==3&&(Be=t[e+44>>2]|0,t[e+16>>2]=Be+(t[e+48>>2]|0),t[w>>2]=Be,t[T>>2]=Be),y=b,r|0}function cL(e,n,r){e=e|0,n=n|0,r=r|0;var u=0,s=0,a=0;return s=y,y=y+32|0,a=s,u=s+20|0,t[a>>2]=t[e+60>>2],t[a+4>>2]=0,t[a+8>>2]=n,t[a+12>>2]=u,t[a+16>>2]=r,(v_(Ni(140,a|0)|0)|0)<0?(t[u>>2]=-1,e=-1):e=t[u>>2]|0,y=s,e|0}function v_(e){return e=e|0,e>>>0>4294963200&&(t[(bv()|0)>>2]=0-e,e=-1),e|0}function bv(){return(dL()|0)+64|0}function dL(){return ME()|0}function ME(){return 2084}function pL(e){return e=e|0,e|0}function hL(e,n,r){e=e|0,n=n|0,r=r|0;var u=0,s=0;return s=y,y=y+32|0,u=s,t[e+36>>2]=1,(t[e>>2]&64|0)==0&&(t[u>>2]=t[e+60>>2],t[u+4>>2]=21523,t[u+8>>2]=s+16,I0(54,u|0)|0)&&(h[e+75>>0]=-1),u=p8(e,n,r)|0,y=s,u|0}function h8(e,n){e=e|0,n=n|0;var r=0,u=0;if(r=h[e>>0]|0,u=h[n>>0]|0,r<<24>>24==0||r<<24>>24!=u<<24>>24)e=u;else{do e=e+1|0,n=n+1|0,r=h[e>>0]|0,u=h[n>>0]|0;while(!(r<<24>>24==0||r<<24>>24!=u<<24>>24));e=u}return(r&255)-(e&255)|0}function vL(e,n,r){e=e|0,n=n|0,r=r|0;var u=0,s=0;e:do if(!r)e=0;else{for(;u=h[e>>0]|0,s=h[n>>0]|0,u<<24>>24==s<<24>>24;)if(r=r+-1|0,r)e=e+1|0,n=n+1|0;else{e=0;break e}e=(u&255)-(s&255)|0}while(0);return e|0}function v8(e,n,r){e=e|0,n=n|0,r=r|0;var u=0,s=0,a=0,v=0,w=0,T=0,L=0,M=0,b=0,X=0,Be=0,Te=0,ye=0;ye=y,y=y+224|0,M=ye+120|0,b=ye+80|0,Be=ye,Te=ye+136|0,u=b,s=u+40|0;do t[u>>2]=0,u=u+4|0;while((u|0)<(s|0));return t[M>>2]=t[r>>2],(kE(0,n,M,Be,b)|0)<0?r=-1:((t[e+76>>2]|0)>-1?X=mL(e)|0:X=0,r=t[e>>2]|0,L=r&32,(h[e+74>>0]|0)<1&&(t[e>>2]=r&-33),u=e+48|0,t[u>>2]|0?r=kE(e,n,M,Be,b)|0:(s=e+44|0,a=t[s>>2]|0,t[s>>2]=Te,v=e+28|0,t[v>>2]=Te,w=e+20|0,t[w>>2]=Te,t[u>>2]=80,T=e+16|0,t[T>>2]=Te+80,r=kE(e,n,M,Be,b)|0,a&&(__[t[e+36>>2]&7](e,0,0)|0,r=(t[w>>2]|0)==0?-1:r,t[s>>2]=a,t[u>>2]=0,t[T>>2]=0,t[v>>2]=0,t[w>>2]=0)),u=t[e>>2]|0,t[e>>2]=u|L,X|0&&yL(e),r=(u&32|0)==0?r:-1),y=ye,r|0}function kE(e,n,r,u,s){e=e|0,n=n|0,r=r|0,u=u|0,s=s|0;var a=0,v=0,w=0,T=0,L=0,M=0,b=0,X=0,Be=0,Te=0,ye=0,Ze=0,Ye=0,ct=0,ke=0,Ie=0,Zt=0,Br=0,Pn=0,gn=0,_r=0,Pr=0,kn=0;kn=y,y=y+64|0,Pn=kn+16|0,gn=kn,Zt=kn+24|0,_r=kn+8|0,Pr=kn+20|0,t[Pn>>2]=n,ct=(e|0)!=0,ke=Zt+40|0,Ie=ke,Zt=Zt+39|0,Br=_r+4|0,v=0,a=0,M=0;e:for(;;){do if((a|0)>-1)if((v|0)>(2147483647-a|0)){t[(bv()|0)>>2]=75,a=-1;break}else{a=v+a|0;break}while(0);if(v=h[n>>0]|0,v<<24>>24)w=n;else{Ye=87;break}t:for(;;){switch(v<<24>>24){case 37:{v=w,Ye=9;break t}case 0:{v=w;break t}default:}Ze=w+1|0,t[Pn>>2]=Ze,v=h[Ze>>0]|0,w=Ze}t:do if((Ye|0)==9)for(;;){if(Ye=0,(h[w+1>>0]|0)!=37)break t;if(v=v+1|0,w=w+2|0,t[Pn>>2]=w,(h[w>>0]|0)==37)Ye=9;else break}while(0);if(v=v-n|0,ct&&Yo(e,n,v),v|0){n=w;continue}T=w+1|0,v=(h[T>>0]|0)+-48|0,v>>>0<10?(Ze=(h[w+2>>0]|0)==36,ye=Ze?v:-1,M=Ze?1:M,T=Ze?w+3|0:T):ye=-1,t[Pn>>2]=T,v=h[T>>0]|0,w=(v<<24>>24)+-32|0;t:do if(w>>>0<32)for(L=0,b=v;;){if(v=1<>2]=T,v=h[T>>0]|0,w=(v<<24>>24)+-32|0,w>>>0>=32)break;b=v}else L=0;while(0);if(v<<24>>24==42){if(w=T+1|0,v=(h[w>>0]|0)+-48|0,v>>>0<10&&(h[T+2>>0]|0)==36)t[s+(v<<2)>>2]=10,v=t[u+((h[w>>0]|0)+-48<<3)>>2]|0,M=1,T=T+3|0;else{if(M|0){a=-1;break}ct?(M=(t[r>>2]|0)+(4-1)&~(4-1),v=t[M>>2]|0,t[r>>2]=M+4,M=0,T=w):(v=0,M=0,T=w)}t[Pn>>2]=T,Ze=(v|0)<0,v=Ze?0-v|0:v,L=Ze?L|8192:L}else{if(v=m8(Pn)|0,(v|0)<0){a=-1;break}T=t[Pn>>2]|0}do if((h[T>>0]|0)==46){if((h[T+1>>0]|0)!=42){t[Pn>>2]=T+1,w=m8(Pn)|0,T=t[Pn>>2]|0;break}if(b=T+2|0,w=(h[b>>0]|0)+-48|0,w>>>0<10&&(h[T+3>>0]|0)==36){t[s+(w<<2)>>2]=10,w=t[u+((h[b>>0]|0)+-48<<3)>>2]|0,T=T+4|0,t[Pn>>2]=T;break}if(M|0){a=-1;break e}ct?(Ze=(t[r>>2]|0)+(4-1)&~(4-1),w=t[Ze>>2]|0,t[r>>2]=Ze+4):w=0,t[Pn>>2]=b,T=b}else w=-1;while(0);for(Te=0;;){if(((h[T>>0]|0)+-65|0)>>>0>57){a=-1;break e}if(Ze=T+1|0,t[Pn>>2]=Ze,b=h[(h[T>>0]|0)+-65+(5178+(Te*58|0))>>0]|0,X=b&255,(X+-1|0)>>>0<8)Te=X,T=Ze;else break}if(!(b<<24>>24)){a=-1;break}Be=(ye|0)>-1;do if(b<<24>>24==19)if(Be){a=-1;break e}else Ye=49;else{if(Be){t[s+(ye<<2)>>2]=X,Be=u+(ye<<3)|0,ye=t[Be+4>>2]|0,Ye=gn,t[Ye>>2]=t[Be>>2],t[Ye+4>>2]=ye,Ye=49;break}if(!ct){a=0;break e}y8(gn,X,r)}while(0);if((Ye|0)==49&&(Ye=0,!ct)){v=0,n=Ze;continue}T=h[T>>0]|0,T=(Te|0)!=0&(T&15|0)==3?T&-33:T,Be=L&-65537,ye=(L&8192|0)==0?L:Be;t:do switch(T|0){case 110:switch((Te&255)<<24>>24){case 0:{t[t[gn>>2]>>2]=a,v=0,n=Ze;continue e}case 1:{t[t[gn>>2]>>2]=a,v=0,n=Ze;continue e}case 2:{v=t[gn>>2]|0,t[v>>2]=a,t[v+4>>2]=((a|0)<0)<<31>>31,v=0,n=Ze;continue e}case 3:{E[t[gn>>2]>>1]=a,v=0,n=Ze;continue e}case 4:{h[t[gn>>2]>>0]=a,v=0,n=Ze;continue e}case 6:{t[t[gn>>2]>>2]=a,v=0,n=Ze;continue e}case 7:{v=t[gn>>2]|0,t[v>>2]=a,t[v+4>>2]=((a|0)<0)<<31>>31,v=0,n=Ze;continue e}default:{v=0,n=Ze;continue e}}case 112:{T=120,w=w>>>0>8?w:8,n=ye|8,Ye=61;break}case 88:case 120:{n=ye,Ye=61;break}case 111:{T=gn,n=t[T>>2]|0,T=t[T+4>>2]|0,X=_L(n,T,ke)|0,Be=Ie-X|0,L=0,b=5642,w=(ye&8|0)==0|(w|0)>(Be|0)?w:Be+1|0,Be=ye,Ye=67;break}case 105:case 100:if(T=gn,n=t[T>>2]|0,T=t[T+4>>2]|0,(T|0)<0){n=m_(0,0,n|0,T|0)|0,T=ot,L=gn,t[L>>2]=n,t[L+4>>2]=T,L=1,b=5642,Ye=66;break t}else{L=(ye&2049|0)!=0&1,b=(ye&2048|0)==0?(ye&1|0)==0?5642:5644:5643,Ye=66;break t}case 117:{T=gn,L=0,b=5642,n=t[T>>2]|0,T=t[T+4>>2]|0,Ye=66;break}case 99:{h[Zt>>0]=t[gn>>2],n=Zt,L=0,b=5642,X=ke,T=1,w=Be;break}case 109:{T=EL(t[(bv()|0)>>2]|0)|0,Ye=71;break}case 115:{T=t[gn>>2]|0,T=T|0?T:5652,Ye=71;break}case 67:{t[_r>>2]=t[gn>>2],t[Br>>2]=0,t[gn>>2]=_r,X=-1,T=_r,Ye=75;break}case 83:{n=t[gn>>2]|0,w?(X=w,T=n,Ye=75):(_l(e,32,v,0,ye),n=0,Ye=84);break}case 65:case 71:case 70:case 69:case 97:case 103:case 102:case 101:{v=wL(e,+j[gn>>3],v,w,ye,T)|0,n=Ze;continue e}default:L=0,b=5642,X=ke,T=w,w=ye}while(0);t:do if((Ye|0)==61)ye=gn,Te=t[ye>>2]|0,ye=t[ye+4>>2]|0,X=gL(Te,ye,ke,T&32)|0,b=(n&8|0)==0|(Te|0)==0&(ye|0)==0,L=b?0:2,b=b?5642:5642+(T>>4)|0,Be=n,n=Te,T=ye,Ye=67;else if((Ye|0)==66)X=Bv(n,T,ke)|0,Be=ye,Ye=67;else if((Ye|0)==71)Ye=0,ye=DL(T,0,w)|0,Te=(ye|0)==0,n=T,L=0,b=5642,X=Te?T+w|0:ye,T=Te?w:ye-T|0,w=Be;else if((Ye|0)==75){for(Ye=0,b=T,n=0,w=0;L=t[b>>2]|0,!(!L||(w=g8(Pr,L)|0,(w|0)<0|w>>>0>(X-n|0)>>>0));)if(n=w+n|0,X>>>0>n>>>0)b=b+4|0;else break;if((w|0)<0){a=-1;break e}if(_l(e,32,v,n,ye),!n)n=0,Ye=84;else for(L=0;;){if(w=t[T>>2]|0,!w){Ye=84;break t}if(w=g8(Pr,w)|0,L=w+L|0,(L|0)>(n|0)){Ye=84;break t}if(Yo(e,Pr,w),L>>>0>=n>>>0){Ye=84;break}else T=T+4|0}}while(0);if((Ye|0)==67)Ye=0,T=(n|0)!=0|(T|0)!=0,ye=(w|0)!=0|T,T=((T^1)&1)+(Ie-X)|0,n=ye?X:ke,X=ke,T=ye?(w|0)>(T|0)?w:T:w,w=(w|0)>-1?Be&-65537:Be;else if((Ye|0)==84){Ye=0,_l(e,32,v,n,ye^8192),v=(v|0)>(n|0)?v:n,n=Ze;continue}Te=X-n|0,Be=(T|0)<(Te|0)?Te:T,ye=Be+L|0,v=(v|0)<(ye|0)?ye:v,_l(e,32,v,ye,w),Yo(e,b,L),_l(e,48,v,ye,w^65536),_l(e,48,Be,Te,0),Yo(e,n,Te),_l(e,32,v,ye,w^8192),n=Ze}e:do if((Ye|0)==87&&!e)if(!M)a=0;else{for(a=1;n=t[s+(a<<2)>>2]|0,!!n;)if(y8(u+(a<<3)|0,n,r),a=a+1|0,(a|0)>=10){a=1;break e}for(;;){if(t[s+(a<<2)>>2]|0){a=-1;break e}if(a=a+1|0,(a|0)>=10){a=1;break}}}while(0);return y=kn,a|0}function mL(e){return e=e|0,0}function yL(e){e=e|0}function Yo(e,n,r){e=e|0,n=n|0,r=r|0,t[e>>2]&32||kL(n,r,e)|0}function m8(e){e=e|0;var n=0,r=0,u=0;if(r=t[e>>2]|0,u=(h[r>>0]|0)+-48|0,u>>>0<10){n=0;do n=u+(n*10|0)|0,r=r+1|0,t[e>>2]=r,u=(h[r>>0]|0)+-48|0;while(u>>>0<10)}else n=0;return n|0}function y8(e,n,r){e=e|0,n=n|0,r=r|0;var u=0,s=0,a=0;e:do if(n>>>0<=20)do switch(n|0){case 9:{u=(t[r>>2]|0)+(4-1)&~(4-1),n=t[u>>2]|0,t[r>>2]=u+4,t[e>>2]=n;break e}case 10:{u=(t[r>>2]|0)+(4-1)&~(4-1),n=t[u>>2]|0,t[r>>2]=u+4,u=e,t[u>>2]=n,t[u+4>>2]=((n|0)<0)<<31>>31;break e}case 11:{u=(t[r>>2]|0)+(4-1)&~(4-1),n=t[u>>2]|0,t[r>>2]=u+4,u=e,t[u>>2]=n,t[u+4>>2]=0;break e}case 12:{u=(t[r>>2]|0)+(8-1)&~(8-1),n=u,s=t[n>>2]|0,n=t[n+4>>2]|0,t[r>>2]=u+8,u=e,t[u>>2]=s,t[u+4>>2]=n;break e}case 13:{s=(t[r>>2]|0)+(4-1)&~(4-1),u=t[s>>2]|0,t[r>>2]=s+4,u=(u&65535)<<16>>16,s=e,t[s>>2]=u,t[s+4>>2]=((u|0)<0)<<31>>31;break e}case 14:{s=(t[r>>2]|0)+(4-1)&~(4-1),u=t[s>>2]|0,t[r>>2]=s+4,s=e,t[s>>2]=u&65535,t[s+4>>2]=0;break e}case 15:{s=(t[r>>2]|0)+(4-1)&~(4-1),u=t[s>>2]|0,t[r>>2]=s+4,u=(u&255)<<24>>24,s=e,t[s>>2]=u,t[s+4>>2]=((u|0)<0)<<31>>31;break e}case 16:{s=(t[r>>2]|0)+(4-1)&~(4-1),u=t[s>>2]|0,t[r>>2]=s+4,s=e,t[s>>2]=u&255,t[s+4>>2]=0;break e}case 17:{s=(t[r>>2]|0)+(8-1)&~(8-1),a=+j[s>>3],t[r>>2]=s+8,j[e>>3]=a;break e}case 18:{s=(t[r>>2]|0)+(8-1)&~(8-1),a=+j[s>>3],t[r>>2]=s+8,j[e>>3]=a;break e}default:break e}while(0);while(0)}function gL(e,n,r,u){if(e=e|0,n=n|0,r=r|0,u=u|0,!((e|0)==0&(n|0)==0))do r=r+-1|0,h[r>>0]=N[5694+(e&15)>>0]|0|u,e=y_(e|0,n|0,4)|0,n=ot;while(!((e|0)==0&(n|0)==0));return r|0}function _L(e,n,r){if(e=e|0,n=n|0,r=r|0,!((e|0)==0&(n|0)==0))do r=r+-1|0,h[r>>0]=e&7|48,e=y_(e|0,n|0,3)|0,n=ot;while(!((e|0)==0&(n|0)==0));return r|0}function Bv(e,n,r){e=e|0,n=n|0,r=r|0;var u=0;if(n>>>0>0|(n|0)==0&e>>>0>4294967295){for(;u=PE(e|0,n|0,10,0)|0,r=r+-1|0,h[r>>0]=u&255|48,u=e,e=FE(e|0,n|0,10,0)|0,n>>>0>9|(n|0)==9&u>>>0>4294967295;)n=ot;n=e}else n=e;if(n)for(;r=r+-1|0,h[r>>0]=(n>>>0)%10|0|48,!(n>>>0<10);)n=(n>>>0)/10|0;return r|0}function EL(e){return e=e|0,RL(e,t[(xL()|0)+188>>2]|0)|0}function DL(e,n,r){e=e|0,n=n|0,r=r|0;var u=0,s=0,a=0,v=0;a=n&255,u=(r|0)!=0;e:do if(u&(e&3|0)!=0)for(s=n&255;;){if((h[e>>0]|0)==s<<24>>24){v=6;break e}if(e=e+1|0,r=r+-1|0,u=(r|0)!=0,!(u&(e&3|0)!=0)){v=5;break}}else v=5;while(0);(v|0)==5&&(u?v=6:r=0);e:do if((v|0)==6&&(s=n&255,(h[e>>0]|0)!=s<<24>>24)){u=lr(a,16843009)|0;t:do if(r>>>0>3){for(;a=t[e>>2]^u,!((a&-2139062144^-2139062144)&a+-16843009|0);)if(e=e+4|0,r=r+-4|0,r>>>0<=3){v=11;break t}}else v=11;while(0);if((v|0)==11&&!r){r=0;break}for(;;){if((h[e>>0]|0)==s<<24>>24)break e;if(e=e+1|0,r=r+-1|0,!r){r=0;break}}}while(0);return(r|0?e:0)|0}function _l(e,n,r,u,s){e=e|0,n=n|0,r=r|0,u=u|0,s=s|0;var a=0,v=0;if(v=y,y=y+256|0,a=v,(r|0)>(u|0)&(s&73728|0)==0){if(s=r-u|0,jv(a|0,n|0,(s>>>0<256?s:256)|0)|0,s>>>0>255){n=r-u|0;do Yo(e,a,256),s=s+-256|0;while(s>>>0>255);s=n&255}Yo(e,a,s)}y=v}function g8(e,n){return e=e|0,n=n|0,e?e=TL(e,n,0)|0:e=0,e|0}function wL(e,n,r,u,s,a){e=e|0,n=+n,r=r|0,u=u|0,s=s|0,a=a|0;var v=0,w=0,T=0,L=0,M=0,b=0,X=0,Be=0,Te=0,ye=0,Ze=0,Ye=0,ct=0,ke=0,Ie=0,Zt=0,Br=0,Pn=0,gn=0,_r=0,Pr=0,kn=0,uu=0;uu=y,y=y+560|0,T=uu+8|0,Ze=uu,kn=uu+524|0,Pr=kn,L=uu+512|0,t[Ze>>2]=0,_r=L+12|0,_8(n)|0,(ot|0)<0?(n=-n,Pn=1,Br=5659):(Pn=(s&2049|0)!=0&1,Br=(s&2048|0)==0?(s&1|0)==0?5660:5665:5662),_8(n)|0,gn=ot&2146435072;do if(gn>>>0<2146435072|(gn|0)==2146435072&0<0){if(Be=+SL(n,Ze)*2,v=Be!=0,v&&(t[Ze>>2]=(t[Ze>>2]|0)+-1),ct=a|32,(ct|0)==97){Te=a&32,X=(Te|0)==0?Br:Br+9|0,b=Pn|2,v=12-u|0;do if(u>>>0>11|(v|0)==0)n=Be;else{n=8;do v=v+-1|0,n=n*16;while((v|0)!=0);if((h[X>>0]|0)==45){n=-(n+(-Be-n));break}else{n=Be+n-n;break}}while(0);w=t[Ze>>2]|0,v=(w|0)<0?0-w|0:w,v=Bv(v,((v|0)<0)<<31>>31,_r)|0,(v|0)==(_r|0)&&(v=L+11|0,h[v>>0]=48),h[v+-1>>0]=(w>>31&2)+43,M=v+-2|0,h[M>>0]=a+15,L=(u|0)<1,T=(s&8|0)==0,v=kn;do gn=~~n,w=v+1|0,h[v>>0]=N[5694+gn>>0]|Te,n=(n-+(gn|0))*16,(w-Pr|0)==1&&!(T&(L&n==0))?(h[w>>0]=46,v=v+2|0):v=w;while(n!=0);gn=v-Pr|0,Pr=_r-M|0,_r=(u|0)!=0&(gn+-2|0)<(u|0)?u+2|0:gn,v=Pr+b+_r|0,_l(e,32,r,v,s),Yo(e,X,b),_l(e,48,r,v,s^65536),Yo(e,kn,gn),_l(e,48,_r-gn|0,0,0),Yo(e,M,Pr),_l(e,32,r,v,s^8192);break}w=(u|0)<0?6:u,v?(v=(t[Ze>>2]|0)+-28|0,t[Ze>>2]=v,n=Be*268435456):(n=Be,v=t[Ze>>2]|0),gn=(v|0)<0?T:T+288|0,T=gn;do Ie=~~n>>>0,t[T>>2]=Ie,T=T+4|0,n=(n-+(Ie>>>0))*1e9;while(n!=0);if((v|0)>0)for(L=gn,b=T;;){if(M=(v|0)<29?v:29,v=b+-4|0,v>>>0>=L>>>0){T=0;do ke=C8(t[v>>2]|0,0,M|0)|0,ke=LE(ke|0,ot|0,T|0,0)|0,Ie=ot,Ye=PE(ke|0,Ie|0,1e9,0)|0,t[v>>2]=Ye,T=FE(ke|0,Ie|0,1e9,0)|0,v=v+-4|0;while(v>>>0>=L>>>0);T&&(L=L+-4|0,t[L>>2]=T)}for(T=b;!(T>>>0<=L>>>0);)if(v=T+-4|0,!(t[v>>2]|0))T=v;else break;if(v=(t[Ze>>2]|0)-M|0,t[Ze>>2]=v,(v|0)>0)b=T;else break}else L=gn;if((v|0)<0){u=((w+25|0)/9|0)+1|0,ye=(ct|0)==102;do{if(Te=0-v|0,Te=(Te|0)<9?Te:9,L>>>0>>0){M=(1<>>Te,X=0,v=L;do Ie=t[v>>2]|0,t[v>>2]=(Ie>>>Te)+X,X=lr(Ie&M,b)|0,v=v+4|0;while(v>>>0>>0);v=(t[L>>2]|0)==0?L+4|0:L,X?(t[T>>2]=X,L=v,v=T+4|0):(L=v,v=T)}else L=(t[L>>2]|0)==0?L+4|0:L,v=T;T=ye?gn:L,T=(v-T>>2|0)>(u|0)?T+(u<<2)|0:v,v=(t[Ze>>2]|0)+Te|0,t[Ze>>2]=v}while((v|0)<0);v=L,u=T}else v=L,u=T;if(Ie=gn,v>>>0>>0){if(T=(Ie-v>>2)*9|0,M=t[v>>2]|0,M>>>0>=10){L=10;do L=L*10|0,T=T+1|0;while(M>>>0>=L>>>0)}}else T=0;if(ye=(ct|0)==103,Ye=(w|0)!=0,L=w-((ct|0)!=102?T:0)+((Ye&ye)<<31>>31)|0,(L|0)<(((u-Ie>>2)*9|0)+-9|0)){if(L=L+9216|0,Te=gn+4+(((L|0)/9|0)+-1024<<2)|0,L=((L|0)%9|0)+1|0,(L|0)<9){M=10;do M=M*10|0,L=L+1|0;while((L|0)!=9)}else M=10;if(b=t[Te>>2]|0,X=(b>>>0)%(M>>>0)|0,L=(Te+4|0)==(u|0),L&(X|0)==0)L=Te;else if(Be=(((b>>>0)/(M>>>0)|0)&1|0)==0?9007199254740992:9007199254740994,ke=(M|0)/2|0,n=X>>>0>>0?.5:L&(X|0)==(ke|0)?1:1.5,Pn&&(ke=(h[Br>>0]|0)==45,n=ke?-n:n,Be=ke?-Be:Be),L=b-X|0,t[Te>>2]=L,Be+n!=Be){if(ke=L+M|0,t[Te>>2]=ke,ke>>>0>999999999)for(T=Te;L=T+-4|0,t[T>>2]=0,L>>>0>>0&&(v=v+-4|0,t[v>>2]=0),ke=(t[L>>2]|0)+1|0,t[L>>2]=ke,ke>>>0>999999999;)T=L;else L=Te;if(T=(Ie-v>>2)*9|0,b=t[v>>2]|0,b>>>0>=10){M=10;do M=M*10|0,T=T+1|0;while(b>>>0>=M>>>0)}}else L=Te;L=L+4|0,L=u>>>0>L>>>0?L:u,ke=v}else L=u,ke=v;for(ct=L;;){if(ct>>>0<=ke>>>0){Ze=0;break}if(v=ct+-4|0,!(t[v>>2]|0))ct=v;else{Ze=1;break}}u=0-T|0;do if(ye)if(v=((Ye^1)&1)+w|0,(v|0)>(T|0)&(T|0)>-5?(M=a+-1|0,w=v+-1-T|0):(M=a+-2|0,w=v+-1|0),v=s&8,v)Te=v;else{if(Ze&&(Zt=t[ct+-4>>2]|0,(Zt|0)!=0))if((Zt>>>0)%10|0)L=0;else{L=0,v=10;do v=v*10|0,L=L+1|0;while(!((Zt>>>0)%(v>>>0)|0|0))}else L=9;if(v=((ct-Ie>>2)*9|0)+-9|0,(M|32|0)==102){Te=v-L|0,Te=(Te|0)>0?Te:0,w=(w|0)<(Te|0)?w:Te,Te=0;break}else{Te=v+T-L|0,Te=(Te|0)>0?Te:0,w=(w|0)<(Te|0)?w:Te,Te=0;break}}else M=a,Te=s&8;while(0);if(ye=w|Te,b=(ye|0)!=0&1,X=(M|32|0)==102,X)Ye=0,v=(T|0)>0?T:0;else{if(v=(T|0)<0?u:T,v=Bv(v,((v|0)<0)<<31>>31,_r)|0,L=_r,(L-v|0)<2)do v=v+-1|0,h[v>>0]=48;while((L-v|0)<2);h[v+-1>>0]=(T>>31&2)+43,v=v+-2|0,h[v>>0]=M,Ye=v,v=L-v|0}if(v=Pn+1+w+b+v|0,_l(e,32,r,v,s),Yo(e,Br,Pn),_l(e,48,r,v,s^65536),X){M=ke>>>0>gn>>>0?gn:ke,Te=kn+9|0,b=Te,X=kn+8|0,L=M;do{if(T=Bv(t[L>>2]|0,0,Te)|0,(L|0)==(M|0))(T|0)==(Te|0)&&(h[X>>0]=48,T=X);else if(T>>>0>kn>>>0){jv(kn|0,48,T-Pr|0)|0;do T=T+-1|0;while(T>>>0>kn>>>0)}Yo(e,T,b-T|0),L=L+4|0}while(L>>>0<=gn>>>0);if(ye|0&&Yo(e,5710,1),L>>>0>>0&(w|0)>0)for(;;){if(T=Bv(t[L>>2]|0,0,Te)|0,T>>>0>kn>>>0){jv(kn|0,48,T-Pr|0)|0;do T=T+-1|0;while(T>>>0>kn>>>0)}if(Yo(e,T,(w|0)<9?w:9),L=L+4|0,T=w+-9|0,L>>>0>>0&(w|0)>9)w=T;else{w=T;break}}_l(e,48,w+9|0,9,0)}else{if(ye=Ze?ct:ke+4|0,(w|0)>-1){Ze=kn+9|0,Te=(Te|0)==0,u=Ze,b=0-Pr|0,X=kn+8|0,M=ke;do{T=Bv(t[M>>2]|0,0,Ze)|0,(T|0)==(Ze|0)&&(h[X>>0]=48,T=X);do if((M|0)==(ke|0)){if(L=T+1|0,Yo(e,T,1),Te&(w|0)<1){T=L;break}Yo(e,5710,1),T=L}else{if(T>>>0<=kn>>>0)break;jv(kn|0,48,T+b|0)|0;do T=T+-1|0;while(T>>>0>kn>>>0)}while(0);Pr=u-T|0,Yo(e,T,(w|0)>(Pr|0)?Pr:w),w=w-Pr|0,M=M+4|0}while(M>>>0>>0&(w|0)>-1)}_l(e,48,w+18|0,18,0),Yo(e,Ye,_r-Ye|0)}_l(e,32,r,v,s^8192)}else kn=(a&32|0)!=0,v=Pn+3|0,_l(e,32,r,v,s&-65537),Yo(e,Br,Pn),Yo(e,n!=n|!1?kn?5686:5690:kn?5678:5682,3),_l(e,32,r,v,s^8192);while(0);return y=uu,((v|0)<(r|0)?r:v)|0}function _8(e){e=+e;var n=0;return j[V>>3]=e,n=t[V>>2]|0,ot=t[V+4>>2]|0,n|0}function SL(e,n){return e=+e,n=n|0,+ +E8(e,n)}function E8(e,n){e=+e,n=n|0;var r=0,u=0,s=0;switch(j[V>>3]=e,r=t[V>>2]|0,u=t[V+4>>2]|0,s=y_(r|0,u|0,52)|0,s&2047){case 0:{e!=0?(e=+E8(e*18446744073709552e3,n),r=(t[n>>2]|0)+-64|0):r=0,t[n>>2]=r;break}case 2047:break;default:t[n>>2]=(s&2047)+-1022,t[V>>2]=r,t[V+4>>2]=u&-2146435073|1071644672,e=+j[V>>3]}return+e}function TL(e,n,r){e=e|0,n=n|0,r=r|0;do if(e){if(n>>>0<128){h[e>>0]=n,e=1;break}if(!(t[t[(CL()|0)+188>>2]>>2]|0))if((n&-128|0)==57216){h[e>>0]=n,e=1;break}else{t[(bv()|0)>>2]=84,e=-1;break}if(n>>>0<2048){h[e>>0]=n>>>6|192,h[e+1>>0]=n&63|128,e=2;break}if(n>>>0<55296|(n&-8192|0)==57344){h[e>>0]=n>>>12|224,h[e+1>>0]=n>>>6&63|128,h[e+2>>0]=n&63|128,e=3;break}if((n+-65536|0)>>>0<1048576){h[e>>0]=n>>>18|240,h[e+1>>0]=n>>>12&63|128,h[e+2>>0]=n>>>6&63|128,h[e+3>>0]=n&63|128,e=4;break}else{t[(bv()|0)>>2]=84,e=-1;break}}else e=1;while(0);return e|0}function CL(){return ME()|0}function xL(){return ME()|0}function RL(e,n){e=e|0,n=n|0;var r=0,u=0;for(u=0;;){if((N[5712+u>>0]|0)==(e|0)){e=2;break}if(r=u+1|0,(r|0)==87){r=5800,u=87,e=5;break}else u=r}if((e|0)==2&&(u?(r=5800,e=5):r=5800),(e|0)==5)for(;;){do e=r,r=r+1|0;while((h[e>>0]|0)!=0);if(u=u+-1|0,u)e=5;else break}return AL(r,t[n+20>>2]|0)|0}function AL(e,n){return e=e|0,n=n|0,OL(e,n)|0}function OL(e,n){return e=e|0,n=n|0,n?n=ML(t[n>>2]|0,t[n+4>>2]|0,e)|0:n=0,(n|0?n:e)|0}function ML(e,n,r){e=e|0,n=n|0,r=r|0;var u=0,s=0,a=0,v=0,w=0,T=0,L=0,M=0,b=0,X=0;X=(t[e>>2]|0)+1794895138|0,a=Yp(t[e+8>>2]|0,X)|0,u=Yp(t[e+12>>2]|0,X)|0,s=Yp(t[e+16>>2]|0,X)|0;e:do if(a>>>0>>2>>>0&&(b=n-(a<<2)|0,u>>>0>>0&s>>>0>>0)&&((s|u)&3|0)==0){for(b=u>>>2,M=s>>>2,L=0;;){if(w=a>>>1,T=L+w|0,v=T<<1,s=v+b|0,u=Yp(t[e+(s<<2)>>2]|0,X)|0,s=Yp(t[e+(s+1<<2)>>2]|0,X)|0,!(s>>>0>>0&u>>>0<(n-s|0)>>>0)){u=0;break e}if(h[e+(s+u)>>0]|0){u=0;break e}if(u=h8(r,e+s|0)|0,!u)break;if(u=(u|0)<0,(a|0)==1){u=0;break e}else L=u?L:T,a=u?w:a-w|0}u=v+M|0,s=Yp(t[e+(u<<2)>>2]|0,X)|0,u=Yp(t[e+(u+1<<2)>>2]|0,X)|0,u>>>0>>0&s>>>0<(n-u|0)>>>0?u=(h[e+(u+s)>>0]|0)==0?e+u|0:0:u=0}else u=0;while(0);return u|0}function Yp(e,n){e=e|0,n=n|0;var r=0;return r=A8(e|0)|0,((n|0)==0?e:r)|0}function kL(e,n,r){e=e|0,n=n|0,r=r|0;var u=0,s=0,a=0,v=0,w=0;u=r+16|0,s=t[u>>2]|0,s?a=5:NL(r)|0?u=0:(s=t[u>>2]|0,a=5);e:do if((a|0)==5){if(w=r+20|0,v=t[w>>2]|0,u=v,(s-v|0)>>>0>>0){u=__[t[r+36>>2]&7](r,e,n)|0;break}t:do if((h[r+75>>0]|0)>-1){for(v=n;;){if(!v){a=0,s=e;break t}if(s=v+-1|0,(h[e+s>>0]|0)==10)break;v=s}if(u=__[t[r+36>>2]&7](r,e,v)|0,u>>>0>>0)break e;a=v,s=e+v|0,n=n-v|0,u=t[w>>2]|0}else a=0,s=e;while(0);gr(u|0,s|0,n|0)|0,t[w>>2]=(t[w>>2]|0)+n,u=a+n|0}while(0);return u|0}function NL(e){e=e|0;var n=0,r=0;return n=e+74|0,r=h[n>>0]|0,h[n>>0]=r+255|r,n=t[e>>2]|0,n&8?(t[e>>2]=n|32,e=-1):(t[e+8>>2]=0,t[e+4>>2]=0,r=t[e+44>>2]|0,t[e+28>>2]=r,t[e+20>>2]=r,t[e+16>>2]=r+(t[e+48>>2]|0),e=0),e|0}function xu(e,n){e=S(e),n=S(n);var r=0,u=0;r=D8(e)|0;do if((r&2147483647)>>>0<=2139095040){if(u=D8(n)|0,(u&2147483647)>>>0<=2139095040)if((u^r|0)<0){e=(r|0)<0?n:e;break}else{e=e>2]=e,t[V>>2]|0|0}function Kp(e,n){e=S(e),n=S(n);var r=0,u=0;r=w8(e)|0;do if((r&2147483647)>>>0<=2139095040){if(u=w8(n)|0,(u&2147483647)>>>0<=2139095040)if((u^r|0)<0){e=(r|0)<0?e:n;break}else{e=e>2]=e,t[V>>2]|0|0}function NE(e,n){e=S(e),n=S(n);var r=0,u=0,s=0,a=0,v=0,w=0,T=0,L=0;a=(x[V>>2]=e,t[V>>2]|0),w=(x[V>>2]=n,t[V>>2]|0),r=a>>>23&255,v=w>>>23&255,T=a&-2147483648,s=w<<1;e:do if((s|0)!=0&&!((r|0)==255|((LL(n)|0)&2147483647)>>>0>2139095040)){if(u=a<<1,u>>>0<=s>>>0)return n=S(e*S(0)),S((u|0)==(s|0)?n:e);if(r)u=a&8388607|8388608;else{if(r=a<<9,(r|0)>-1){u=r,r=0;do r=r+-1|0,u=u<<1;while((u|0)>-1)}else r=0;u=a<<1-r}if(v)w=w&8388607|8388608;else{if(a=w<<9,(a|0)>-1){s=0;do s=s+-1|0,a=a<<1;while((a|0)>-1)}else s=0;v=s,w=w<<1-s}s=u-w|0,a=(s|0)>-1;t:do if((r|0)>(v|0)){for(;;){if(a)if(s)u=s;else break;if(u=u<<1,r=r+-1|0,s=u-w|0,a=(s|0)>-1,(r|0)<=(v|0))break t}n=S(e*S(0));break e}while(0);if(a)if(s)u=s;else{n=S(e*S(0));break}if(u>>>0<8388608)do u=u<<1,r=r+-1|0;while(u>>>0<8388608);(r|0)>0?r=u+-8388608|r<<23:r=u>>>(1-r|0),n=(t[V>>2]=r|T,S(x[V>>2]))}else L=3;while(0);return(L|0)==3&&(n=S(e*n),n=S(n/n)),S(n)}function LL(e){return e=S(e),x[V>>2]=e,t[V>>2]|0|0}function FL(e,n){return e=e|0,n=n|0,v8(t[582]|0,e,n)|0}function di(e){e=e|0,$n()}function Uv(e){e=e|0}function PL(e,n){return e=e|0,n=n|0,0}function IL(e){return e=e|0,(S8(e+4|0)|0)==-1?(P1[t[(t[e>>2]|0)+8>>2]&127](e),e=1):e=0,e|0}function S8(e){e=e|0;var n=0;return n=t[e>>2]|0,t[e>>2]=n+-1,n+-1|0}function $d(e){e=e|0,IL(e)|0&&bL(e)}function bL(e){e=e|0;var n=0;n=e+8|0,(t[n>>2]|0)!=0&&(S8(n)|0)!=-1||P1[t[(t[e>>2]|0)+16>>2]&127](e)}function pn(e){e=e|0;var n=0;for(n=(e|0)==0?1:e;e=p_(n)|0,!(e|0);){if(e=UL()|0,!e){e=0;break}B8[e&0]()}return e|0}function T8(e){return e=e|0,pn(e)|0}function Et(e){e=e|0,h_(e)}function BL(e){e=e|0,(h[e+11>>0]|0)<0&&Et(t[e>>2]|0)}function UL(){var e=0;return e=t[2923]|0,t[2923]=e+0,e|0}function jL(){}function m_(e,n,r,u){return e=e|0,n=n|0,r=r|0,u=u|0,u=n-u-(r>>>0>e>>>0|0)>>>0,ot=u,e-r>>>0|0|0}function LE(e,n,r,u){return e=e|0,n=n|0,r=r|0,u=u|0,r=e+r>>>0,ot=n+u+(r>>>0>>0|0)>>>0,r|0|0}function jv(e,n,r){e=e|0,n=n|0,r=r|0;var u=0,s=0,a=0,v=0;if(a=e+r|0,n=n&255,(r|0)>=67){for(;e&3;)h[e>>0]=n,e=e+1|0;for(u=a&-4|0,s=u-64|0,v=n|n<<8|n<<16|n<<24;(e|0)<=(s|0);)t[e>>2]=v,t[e+4>>2]=v,t[e+8>>2]=v,t[e+12>>2]=v,t[e+16>>2]=v,t[e+20>>2]=v,t[e+24>>2]=v,t[e+28>>2]=v,t[e+32>>2]=v,t[e+36>>2]=v,t[e+40>>2]=v,t[e+44>>2]=v,t[e+48>>2]=v,t[e+52>>2]=v,t[e+56>>2]=v,t[e+60>>2]=v,e=e+64|0;for(;(e|0)<(u|0);)t[e>>2]=v,e=e+4|0}for(;(e|0)<(a|0);)h[e>>0]=n,e=e+1|0;return a-r|0}function C8(e,n,r){return e=e|0,n=n|0,r=r|0,(r|0)<32?(ot=n<>>32-r,e<>>r,e>>>r|(n&(1<>>r-32|0)}function gr(e,n,r){e=e|0,n=n|0,r=r|0;var u=0,s=0,a=0;if((r|0)>=8192)return li(e|0,n|0,r|0)|0;if(a=e|0,s=e+r|0,(e&3)==(n&3)){for(;e&3;){if(!r)return a|0;h[e>>0]=h[n>>0]|0,e=e+1|0,n=n+1|0,r=r-1|0}for(r=s&-4|0,u=r-64|0;(e|0)<=(u|0);)t[e>>2]=t[n>>2],t[e+4>>2]=t[n+4>>2],t[e+8>>2]=t[n+8>>2],t[e+12>>2]=t[n+12>>2],t[e+16>>2]=t[n+16>>2],t[e+20>>2]=t[n+20>>2],t[e+24>>2]=t[n+24>>2],t[e+28>>2]=t[n+28>>2],t[e+32>>2]=t[n+32>>2],t[e+36>>2]=t[n+36>>2],t[e+40>>2]=t[n+40>>2],t[e+44>>2]=t[n+44>>2],t[e+48>>2]=t[n+48>>2],t[e+52>>2]=t[n+52>>2],t[e+56>>2]=t[n+56>>2],t[e+60>>2]=t[n+60>>2],e=e+64|0,n=n+64|0;for(;(e|0)<(r|0);)t[e>>2]=t[n>>2],e=e+4|0,n=n+4|0}else for(r=s-4|0;(e|0)<(r|0);)h[e>>0]=h[n>>0]|0,h[e+1>>0]=h[n+1>>0]|0,h[e+2>>0]=h[n+2>>0]|0,h[e+3>>0]=h[n+3>>0]|0,e=e+4|0,n=n+4|0;for(;(e|0)<(s|0);)h[e>>0]=h[n>>0]|0,e=e+1|0,n=n+1|0;return a|0}function x8(e){e=e|0;var n=0;return n=h[De+(e&255)>>0]|0,(n|0)<8?n|0:(n=h[De+(e>>8&255)>>0]|0,(n|0)<8?n+8|0:(n=h[De+(e>>16&255)>>0]|0,(n|0)<8?n+16|0:(h[De+(e>>>24)>>0]|0)+24|0))}function R8(e,n,r,u,s){e=e|0,n=n|0,r=r|0,u=u|0,s=s|0;var a=0,v=0,w=0,T=0,L=0,M=0,b=0,X=0,Be=0,Te=0;if(M=e,T=n,L=T,v=r,X=u,w=X,!L)return a=(s|0)!=0,w?a?(t[s>>2]=e|0,t[s+4>>2]=n&0,X=0,s=0,ot=X,s|0):(X=0,s=0,ot=X,s|0):(a&&(t[s>>2]=(M>>>0)%(v>>>0),t[s+4>>2]=0),X=0,s=(M>>>0)/(v>>>0)>>>0,ot=X,s|0);a=(w|0)==0;do if(v){if(!a){if(a=(Er(w|0)|0)-(Er(L|0)|0)|0,a>>>0<=31){b=a+1|0,w=31-a|0,n=a-31>>31,v=b,e=M>>>(b>>>0)&n|L<>>(b>>>0)&n,a=0,w=M<>2]=e|0,t[s+4>>2]=T|n&0,X=0,s=0,ot=X,s|0):(X=0,s=0,ot=X,s|0)}if(a=v-1|0,a&v|0){w=(Er(v|0)|0)+33-(Er(L|0)|0)|0,Te=64-w|0,b=32-w|0,T=b>>31,Be=w-32|0,n=Be>>31,v=w,e=b-1>>31&L>>>(Be>>>0)|(L<>>(w>>>0))&n,n=n&L>>>(w>>>0),a=M<>>(Be>>>0))&T|M<>31;break}return s|0&&(t[s>>2]=a&M,t[s+4>>2]=0),(v|0)==1?(Be=T|n&0,Te=e|0|0,ot=Be,Te|0):(Te=x8(v|0)|0,Be=L>>>(Te>>>0)|0,Te=L<<32-Te|M>>>(Te>>>0)|0,ot=Be,Te|0)}else{if(a)return s|0&&(t[s>>2]=(L>>>0)%(v>>>0),t[s+4>>2]=0),Be=0,Te=(L>>>0)/(v>>>0)>>>0,ot=Be,Te|0;if(!M)return s|0&&(t[s>>2]=0,t[s+4>>2]=(L>>>0)%(w>>>0)),Be=0,Te=(L>>>0)/(w>>>0)>>>0,ot=Be,Te|0;if(a=w-1|0,!(a&w))return s|0&&(t[s>>2]=e|0,t[s+4>>2]=a&L|n&0),Be=0,Te=L>>>((x8(w|0)|0)>>>0),ot=Be,Te|0;if(a=(Er(w|0)|0)-(Er(L|0)|0)|0,a>>>0<=30){n=a+1|0,w=31-a|0,v=n,e=L<>>(n>>>0),n=L>>>(n>>>0),a=0,w=M<>2]=e|0,t[s+4>>2]=T|n&0,Be=0,Te=0,ot=Be,Te|0):(Be=0,Te=0,ot=Be,Te|0)}while(0);if(!v)L=w,T=0,w=0;else{b=r|0|0,M=X|u&0,L=LE(b|0,M|0,-1,-1)|0,r=ot,T=w,w=0;do u=T,T=a>>>31|T<<1,a=w|a<<1,u=e<<1|u>>>31|0,X=e>>>31|n<<1|0,m_(L|0,r|0,u|0,X|0)|0,Te=ot,Be=Te>>31|((Te|0)<0?-1:0)<<1,w=Be&1,e=m_(u|0,X|0,Be&b|0,(((Te|0)<0?-1:0)>>31|((Te|0)<0?-1:0)<<1)&M|0)|0,n=ot,v=v-1|0;while((v|0)!=0);L=T,T=0}return v=0,s|0&&(t[s>>2]=e,t[s+4>>2]=n),Be=(a|0)>>>31|(L|v)<<1|(v<<1|a>>>31)&0|T,Te=(a<<1|0>>>31)&-2|w,ot=Be,Te|0}function FE(e,n,r,u){return e=e|0,n=n|0,r=r|0,u=u|0,R8(e,n,r,u,0)|0}function e2(e){e=e|0;var n=0,r=0;return r=e+15&-16|0,n=t[q>>2]|0,e=n+r|0,(r|0)>0&(e|0)<(n|0)|(e|0)<0?(fr()|0,Ql(12),-1):(t[q>>2]=e,(e|0)>(jr()|0)&&(vr()|0)==0?(t[q>>2]=n,Ql(12),-1):n|0)}function ky(e,n,r){e=e|0,n=n|0,r=r|0;var u=0;if((n|0)<(e|0)&(e|0)<(n+r|0)){for(u=e,n=n+r|0,e=e+r|0;(r|0)>0;)e=e-1|0,n=n-1|0,r=r-1|0,h[e>>0]=h[n>>0]|0;e=u}else gr(e,n,r)|0;return e|0}function PE(e,n,r,u){e=e|0,n=n|0,r=r|0,u=u|0;var s=0,a=0;return a=y,y=y+16|0,s=a|0,R8(e,n,r,u,s)|0,y=a,ot=t[s+4>>2]|0,t[s>>2]|0|0}function A8(e){return e=e|0,(e&255)<<24|(e>>8&255)<<16|(e>>16&255)<<8|e>>>24|0}function zL(e,n,r,u,s,a){e=e|0,n=n|0,r=r|0,u=u|0,s=s|0,a=a|0,O8[e&1](n|0,r|0,u|0,s|0,a|0)}function HL(e,n,r){e=e|0,n=n|0,r=S(r),M8[e&1](n|0,S(r))}function qL(e,n,r){e=e|0,n=n|0,r=+r,k8[e&31](n|0,+r)}function WL(e,n,r,u){return e=e|0,n=n|0,r=S(r),u=S(u),S(N8[e&0](n|0,S(r),S(u)))}function VL(e,n){e=e|0,n=n|0,P1[e&127](n|0)}function YL(e,n,r){e=e|0,n=n|0,r=r|0,I1[e&31](n|0,r|0)}function KL(e,n){return e=e|0,n=n|0,Qp[e&31](n|0)|0}function XL(e,n,r,u,s){e=e|0,n=n|0,r=+r,u=+u,s=s|0,L8[e&1](n|0,+r,+u,s|0)}function QL(e,n,r,u){e=e|0,n=n|0,r=+r,u=+u,MF[e&1](n|0,+r,+u)}function JL(e,n,r,u){return e=e|0,n=n|0,r=r|0,u=u|0,__[e&7](n|0,r|0,u|0)|0}function ZL(e,n,r,u){return e=e|0,n=n|0,r=r|0,u=u|0,+kF[e&1](n|0,r|0,u|0)}function $L(e,n){return e=e|0,n=n|0,+F8[e&15](n|0)}function eF(e,n,r){return e=e|0,n=n|0,r=+r,NF[e&1](n|0,+r)|0}function tF(e,n,r){return e=e|0,n=n|0,r=r|0,bE[e&15](n|0,r|0)|0}function nF(e,n,r,u,s,a){e=e|0,n=n|0,r=r|0,u=+u,s=+s,a=a|0,LF[e&1](n|0,r|0,+u,+s,a|0)}function rF(e,n,r,u,s,a,v){e=e|0,n=n|0,r=r|0,u=u|0,s=s|0,a=a|0,v=v|0,FF[e&1](n|0,r|0,u|0,s|0,a|0,v|0)}function iF(e,n,r){return e=e|0,n=n|0,r=r|0,+P8[e&7](n|0,r|0)}function uF(e){return e=e|0,E_[e&7]()|0}function oF(e,n,r,u,s,a){return e=e|0,n=n|0,r=r|0,u=u|0,s=s|0,a=a|0,I8[e&1](n|0,r|0,u|0,s|0,a|0)|0}function lF(e,n,r,u,s){e=e|0,n=n|0,r=r|0,u=u|0,s=+s,PF[e&1](n|0,r|0,u|0,+s)}function sF(e,n,r,u,s,a,v){e=e|0,n=n|0,r=r|0,u=S(u),s=s|0,a=S(a),v=v|0,b8[e&1](n|0,r|0,S(u),s|0,S(a),v|0)}function aF(e,n,r,u){e=e|0,n=n|0,r=r|0,u=u|0,Fy[e&15](n|0,r|0,u|0)}function fF(e){e=e|0,B8[e&0]()}function cF(e,n,r,u){e=e|0,n=n|0,r=r|0,u=+u,U8[e&15](n|0,r|0,+u)}function dF(e,n,r){return e=e|0,n=+n,r=+r,IF[e&1](+n,+r)|0}function pF(e,n,r,u,s){e=e|0,n=n|0,r=r|0,u=u|0,s=s|0,BE[e&15](n|0,r|0,u|0,s|0)}function hF(e,n,r,u,s){e=e|0,n=n|0,r=r|0,u=u|0,s=s|0,zt(0)}function vF(e,n){e=e|0,n=S(n),zt(1)}function $s(e,n){e=e|0,n=+n,zt(2)}function mF(e,n,r){return e=e|0,n=S(n),r=S(r),zt(3),Ct}function Zn(e){e=e|0,zt(4)}function Ny(e,n){e=e|0,n=n|0,zt(5)}function Na(e){return e=e|0,zt(6),0}function yF(e,n,r,u){e=e|0,n=+n,r=+r,u=u|0,zt(7)}function gF(e,n,r){e=e|0,n=+n,r=+r,zt(8)}function _F(e,n,r){return e=e|0,n=n|0,r=r|0,zt(9),0}function EF(e,n,r){return e=e|0,n=n|0,r=r|0,zt(10),0}function Xp(e){return e=e|0,zt(11),0}function DF(e,n){return e=e|0,n=+n,zt(12),0}function Ly(e,n){return e=e|0,n=n|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LE,dynCall_fiff:WL,dynCall_iiii:JL,_emscripten_get_global_libc:aL,dynCall_viid:cF,dynCall_viiid:lF,dynCall_viififi:sF,dynCall_ii:KL,__GLOBAL__sub_I_Binding_cc:hM,dynCall_viiii:pF,dynCall_iiiiii:oF,stackSave:nl,dynCall_viiiii:zL,__GLOBAL__sub_I_nbind_cc:Ws,dynCall_vidd:QL,_free:h_,runPostSets:jL,dynCall_viiiiii:rF,establishStackSpace:Uu,_memmove:ky,stackRestore:Jl,_malloc:p_,__GLOBAL__sub_I_common_cc:F7,dynCall_viddi:XL,dynCall_dii:iF,dynCall_v:fF}}(Module.asmGlobalArg,Module.asmLibraryArg,buffer),_llvm_bswap_i32=Module._llvm_bswap_i32=asm._llvm_bswap_i32,getTempRet0=Module.getTempRet0=asm.getTempRet0,___udivdi3=Module.___udivdi3=asm.___udivdi3,setThrew=Module.setThrew=asm.setThrew,_bitshift64Lshr=Module._bitshift64Lshr=asm._bitshift64Lshr,_bitshift64Shl=Module._bitshift64Shl=asm._bitshift64Shl,_memset=Module._memset=asm._memset,_sbrk=Module._sbrk=asm._sbrk,_memcpy=Module._memcpy=asm._memcpy,stackAlloc=Module.stackAlloc=asm.stackAlloc,___uremdi3=Module.___uremdi3=asm.___uremdi3,_nbind_init=Module._nbind_init=asm._nbind_init,_i64Subtract=Module._i64Subtract=asm._i64Subtract,setTempRet0=Module.setTempRet0=asm.setTempRet0,_i64Add=Module._i64Add=asm._i64Add,_emscripten_get_global_libc=Module._emscripten_get_global_libc=asm._emscripten_get_global_libc,__GLOBAL__sub_I_Yoga_cpp=Module.__GLOBAL__sub_I_Yoga_cpp=asm.__GLOBAL__sub_I_Yoga_cpp,__GLOBAL__sub_I_Binding_cc=Module.__GLOBAL__sub_I_Binding_cc=asm.__GLOBAL__sub_I_Binding_cc,stackSave=Module.stackSave=asm.stackSave,__GLOBAL__sub_I_nbind_cc=Module.__GLOBAL__sub_I_nbind_cc=asm.__GLOBAL__sub_I_nbind_cc,_free=Module._free=asm._free,runPostSets=Module.runPostSets=asm.runPostSets,establishStackSpace=Module.establishStackSpace=asm.establishStackSpace,_memmove=Module._memmove=asm._memmove,stackRestore=Module.stackRestore=asm.stackRestore,_malloc=Module._malloc=asm._malloc,__GLOBAL__sub_I_common_cc=Module.__GLOBAL__sub_I_common_cc=asm.__GLOBAL__sub_I_common_cc,dynCall_viiiii=Module.dynCall_viiiii=asm.dynCall_viiiii,dynCall_vif=Module.dynCall_vif=asm.dynCall_vif,dynCall_vid=Module.dynCall_vid=asm.dynCall_vid,dynCall_fiff=Module.dynCall_fiff=asm.dynCall_fiff,dynCall_vi=Module.dynCall_vi=asm.dynCall_vi,dynCall_vii=Module.dynCall_vii=asm.dynCall_vii,dynCall_ii=Module.dynCall_ii=asm.dynCall_ii,dynCall_viddi=Module.dynCall_viddi=asm.dynCall_viddi,dynCall_vidd=Module.dynCall_vidd=asm.dynCall_vidd,dynCall_iiii=Module.dynCall_iiii=asm.dynCall_iiii,dynCall_diii=Module.dynCall_diii=asm.dynCall_diii,dynCall_di=Module.dynCall_di=asm.dynCall_di,dynCall_iid=Module.dynCall_iid=asm.dynCall_iid,dynCall_iii=Module.dynCall_iii=asm.dynCall_iii,dynCall_viiddi=Module.dynCall_viiddi=asm.dynCall_viiddi,dynCall_viiiiii=Module.dynCall_viiiiii=asm.dynCall_viiiiii,dynCall_dii=Module.dynCall_dii=asm.dynCall_dii,dynCall_i=Module.dynCall_i=asm.dynCall_i,dynCall_iiiiii=Module.dynCall_iiiiii=asm.dynCall_iiiiii,dynCall_viiid=Module.dynCall_viiid=asm.dynCall_viiid,dynCall_viififi=Module.dynCall_viififi=asm.dynCall_viififi,dynCall_viii=Module.dynCall_viii=asm.dynCall_viii,dynCall_v=Module.dynCall_v=asm.dynCall_v,dynCall_viid=Module.dynCall_viid=asm.dynCall_viid,dynCall_idd=Module.dynCall_idd=asm.dynCall_idd,dynCall_viiii=Module.dynCall_viiii=asm.dynCall_viiii;Runtime.stackAlloc=Module.stackAlloc,Runtime.stackSave=Module.stackSave,Runtime.stackRestore=Module.stackRestore,Runtime.establishStackSpace=Module.establishStackSpace,Runtime.setTempRet0=Module.setTempRet0,Runtime.getTempRet0=Module.getTempRet0,Module.asm=asm;function ExitStatus(o){this.name="ExitStatus",this.message="Program terminated with exit("+o+")",this.status=o}ExitStatus.prototype=new Error,ExitStatus.prototype.constructor=ExitStatus;var initialStackTop,preloadStartTime=null,calledMain=!1;dependenciesFulfilled=function o(){Module.calledRun||run(),Module.calledRun||(dependenciesFulfilled=o)},Module.callMain=Module.callMain=function o(l){l=l||[],ensureInitRuntime();var f=l.length+1;function h(){for(var k=0;k<4-1;k++)E.push(0)}var E=[allocate(intArrayFromString(Module.thisProgram),"i8",ALLOC_NORMAL)];h();for(var t=0;t0||(preRun(),runDependencies>0)||Module.calledRun)return;function l(){Module.calledRun||(Module.calledRun=!0,!ABORT&&(ensureInitRuntime(),preMain(),Module.onRuntimeInitialized&&Module.onRuntimeInitialized(),Module._main&&shouldRunNow&&Module.callMain(o),postRun()))}Module.setStatus?(Module.setStatus("Running..."),setTimeout(function(){setTimeout(function(){Module.setStatus("")},1),l()},1)):l()}Module.run=Module.run=run;function exit(o,l){l&&Module.noExitRuntime||(Module.noExitRuntime||(ABORT=!0,EXITSTATUS=o,STACKTOP=initialStackTop,exitRuntime(),Module.onExit&&Module.onExit(o)),ENVIRONMENT_IS_NODE&&process.exit(o),Module.quit(o,new ExitStatus(o)))}Module.exit=Module.exit=exit;var abortDecorators=[];function abort(o){Module.onAbort&&Module.onAbort(o),o!==void 0?(Module.print(o),Module.printErr(o),o=JSON.stringify(o)):o="",ABORT=!0,EXITSTATUS=1;var l=` +If this abort() is unexpected, build with -s ASSERTIONS=1 which can give more information.`,f="abort("+o+") at "+stackTrace()+l;throw abortDecorators&&abortDecorators.forEach(function(h){f=h(f,o)}),f}if(Module.abort=Module.abort=abort,Module.preInit)for(typeof Module.preInit=="function"&&(Module.preInit=[Module.preInit]);Module.preInit.length>0;)Module.preInit.pop()();var shouldRunNow=!0;Module.noInitialRun&&(shouldRunNow=!1),run()})});var eh=nt((CH,tT)=>{"use strict";var SP=$S(),TP=eT(),_D=!1,ED=null;TP({},function(o,l){if(!_D){if(_D=!0,o)throw o;ED=l}});if(!_D)throw new Error("Failed to load the yoga module - it needed to be loaded synchronously, but didn't");tT.exports=SP(ED.bind,ED.lib)});var rT=nt((xH,nT)=>{"use strict";nT.exports=({onlyFirst:o=!1}={})=>{let l=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");return new RegExp(l,o?void 0:"g")}});var DD=nt((RH,iT)=>{"use strict";var CP=rT();iT.exports=o=>typeof o=="string"?o.replace(CP(),""):o});var SD=nt((AH,wD)=>{"use strict";var uT=o=>Number.isNaN(o)?!1:o>=4352&&(o<=4447||o===9001||o===9002||11904<=o&&o<=12871&&o!==12351||12880<=o&&o<=19903||19968<=o&&o<=42182||43360<=o&&o<=43388||44032<=o&&o<=55203||63744<=o&&o<=64255||65040<=o&&o<=65049||65072<=o&&o<=65131||65281<=o&&o<=65376||65504<=o&&o<=65510||110592<=o&&o<=110593||127488<=o&&o<=127569||131072<=o&&o<=262141);wD.exports=uT;wD.exports.default=uT});var lT=nt((OH,oT)=>{"use strict";oT.exports=function(){return/\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F|\uD83D\uDC68(?:\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68\uD83C\uDFFB|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFE])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D[\uDC66\uDC67])|[\u2695\u2696\u2708]\uFE0F|\uD83D[\uDC66\uDC67]|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|(?:\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708])\uFE0F|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C[\uDFFB-\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFB\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)\uD83C\uDFFB|\uD83E\uDDD1(?:\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1)|(?:\uD83E\uDDD1\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFE])|(?:\uD83E\uDDD1\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB\uDFFC])|\uD83D\uDC69(?:\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFC-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|(?:\uD83E\uDDD1\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB-\uDFFD])|\uD83D\uDC69\u200D\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83D\uDC69(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|(?:(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)\uFE0F|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF])\u200D[\u2640\u2642]|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|\u200D[\u2640\u2642])|\uD83C\uDFF4\u200D\u2620)\uFE0F|\uD83D\uDC69\u200D\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|\uD83D\uDC15\u200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261D\u270A-\u270D]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC70\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDCAA\uDD74\uDD7A\uDD90\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD36\uDDB5\uDDB6\uDDBB\uDDD2-\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDED5\uDEEB\uDEEC\uDEF4-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDED5\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])\uFE0F|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uDFC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDC8F\uDC91\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1F\uDD26\uDD30-\uDD39\uDD3C-\uDD3E\uDDB5\uDDB6\uDDB8\uDDB9\uDDBB\uDDCD-\uDDCF\uDDD1-\uDDDD])/g}});var q_=nt((MH,TD)=>{"use strict";var xP=DD(),RP=SD(),AP=lT(),sT=o=>{if(typeof o!="string"||o.length===0||(o=xP(o),o.length===0))return 0;o=o.replace(AP()," ");let l=0;for(let f=0;f=127&&h<=159||h>=768&&h<=879||(h>65535&&f++,l+=RP(h)?2:1)}return l};TD.exports=sT;TD.exports.default=sT});var xD=nt((kH,CD)=>{"use strict";var OP=q_(),aT=o=>{let l=0;for(let f of o.split(` +`))l=Math.max(l,OP(f));return l};CD.exports=aT;CD.exports.default=aT});var fT=nt(Ky=>{"use strict";var MP=Ky&&Ky.__importDefault||function(o){return o&&o.__esModule?o:{default:o}};Object.defineProperty(Ky,"__esModule",{value:!0});var kP=MP(xD()),RD={};Ky.default=o=>{if(o.length===0)return{width:0,height:0};if(RD[o])return RD[o];let l=kP.default(o),f=o.split(` +`).length;return RD[o]={width:l,height:f},{width:l,height:f}}});var cT=nt(Xy=>{"use strict";var NP=Xy&&Xy.__importDefault||function(o){return o&&o.__esModule?o:{default:o}};Object.defineProperty(Xy,"__esModule",{value:!0});var Gi=NP(eh()),LP=(o,l)=>{"position"in l&&o.setPositionType(l.position==="absolute"?Gi.default.POSITION_TYPE_ABSOLUTE:Gi.default.POSITION_TYPE_RELATIVE)},FP=(o,l)=>{"marginLeft"in l&&o.setMargin(Gi.default.EDGE_START,l.marginLeft||0),"marginRight"in l&&o.setMargin(Gi.default.EDGE_END,l.marginRight||0),"marginTop"in l&&o.setMargin(Gi.default.EDGE_TOP,l.marginTop||0),"marginBottom"in l&&o.setMargin(Gi.default.EDGE_BOTTOM,l.marginBottom||0)},PP=(o,l)=>{"paddingLeft"in l&&o.setPadding(Gi.default.EDGE_LEFT,l.paddingLeft||0),"paddingRight"in l&&o.setPadding(Gi.default.EDGE_RIGHT,l.paddingRight||0),"paddingTop"in l&&o.setPadding(Gi.default.EDGE_TOP,l.paddingTop||0),"paddingBottom"in l&&o.setPadding(Gi.default.EDGE_BOTTOM,l.paddingBottom||0)},IP=(o,l)=>{var f;"flexGrow"in l&&o.setFlexGrow((f=l.flexGrow)!==null&&f!==void 0?f:0),"flexShrink"in l&&o.setFlexShrink(typeof l.flexShrink=="number"?l.flexShrink:1),"flexDirection"in l&&(l.flexDirection==="row"&&o.setFlexDirection(Gi.default.FLEX_DIRECTION_ROW),l.flexDirection==="row-reverse"&&o.setFlexDirection(Gi.default.FLEX_DIRECTION_ROW_REVERSE),l.flexDirection==="column"&&o.setFlexDirection(Gi.default.FLEX_DIRECTION_COLUMN),l.flexDirection==="column-reverse"&&o.setFlexDirection(Gi.default.FLEX_DIRECTION_COLUMN_REVERSE)),"flexBasis"in l&&(typeof l.flexBasis=="number"?o.setFlexBasis(l.flexBasis):typeof l.flexBasis=="string"?o.setFlexBasisPercent(Number.parseInt(l.flexBasis,10)):o.setFlexBasis(NaN)),"alignItems"in l&&((l.alignItems==="stretch"||!l.alignItems)&&o.setAlignItems(Gi.default.ALIGN_STRETCH),l.alignItems==="flex-start"&&o.setAlignItems(Gi.default.ALIGN_FLEX_START),l.alignItems==="center"&&o.setAlignItems(Gi.default.ALIGN_CENTER),l.alignItems==="flex-end"&&o.setAlignItems(Gi.default.ALIGN_FLEX_END)),"alignSelf"in l&&((l.alignSelf==="auto"||!l.alignSelf)&&o.setAlignSelf(Gi.default.ALIGN_AUTO),l.alignSelf==="flex-start"&&o.setAlignSelf(Gi.default.ALIGN_FLEX_START),l.alignSelf==="center"&&o.setAlignSelf(Gi.default.ALIGN_CENTER),l.alignSelf==="flex-end"&&o.setAlignSelf(Gi.default.ALIGN_FLEX_END)),"justifyContent"in l&&((l.justifyContent==="flex-start"||!l.justifyContent)&&o.setJustifyContent(Gi.default.JUSTIFY_FLEX_START),l.justifyContent==="center"&&o.setJustifyContent(Gi.default.JUSTIFY_CENTER),l.justifyContent==="flex-end"&&o.setJustifyContent(Gi.default.JUSTIFY_FLEX_END),l.justifyContent==="space-between"&&o.setJustifyContent(Gi.default.JUSTIFY_SPACE_BETWEEN),l.justifyContent==="space-around"&&o.setJustifyContent(Gi.default.JUSTIFY_SPACE_AROUND))},bP=(o,l)=>{var f,h;"width"in l&&(typeof l.width=="number"?o.setWidth(l.width):typeof l.width=="string"?o.setWidthPercent(Number.parseInt(l.width,10)):o.setWidthAuto()),"height"in l&&(typeof l.height=="number"?o.setHeight(l.height):typeof l.height=="string"?o.setHeightPercent(Number.parseInt(l.height,10)):o.setHeightAuto()),"minWidth"in l&&(typeof l.minWidth=="string"?o.setMinWidthPercent(Number.parseInt(l.minWidth,10)):o.setMinWidth((f=l.minWidth)!==null&&f!==void 0?f:0)),"minHeight"in l&&(typeof l.minHeight=="string"?o.setMinHeightPercent(Number.parseInt(l.minHeight,10)):o.setMinHeight((h=l.minHeight)!==null&&h!==void 0?h:0))},BP=(o,l)=>{"display"in l&&o.setDisplay(l.display==="flex"?Gi.default.DISPLAY_FLEX:Gi.default.DISPLAY_NONE)},UP=(o,l)=>{if("borderStyle"in l){let f=typeof l.borderStyle=="string"?1:0;o.setBorder(Gi.default.EDGE_TOP,f),o.setBorder(Gi.default.EDGE_BOTTOM,f),o.setBorder(Gi.default.EDGE_LEFT,f),o.setBorder(Gi.default.EDGE_RIGHT,f)}};Xy.default=(o,l={})=>{LP(o,l),FP(o,l),PP(o,l),IP(o,l),bP(o,l),BP(o,l),UP(o,l)}});var pT=nt((FH,dT)=>{"use strict";dT.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}});var AD=nt((PH,vT)=>{var Qy=pT(),hT={};for(let o of Object.keys(Qy))hT[Qy[o]]=o;var zn={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};vT.exports=zn;for(let o of Object.keys(zn)){if(!("channels"in zn[o]))throw new Error("missing channels property: "+o);if(!("labels"in zn[o]))throw new Error("missing channel labels property: "+o);if(zn[o].labels.length!==zn[o].channels)throw new Error("channel and label counts mismatch: "+o);let{channels:l,labels:f}=zn[o];delete zn[o].channels,delete zn[o].labels,Object.defineProperty(zn[o],"channels",{value:l}),Object.defineProperty(zn[o],"labels",{value:f})}zn.rgb.hsl=function(o){let l=o[0]/255,f=o[1]/255,h=o[2]/255,E=Math.min(l,f,h),t=Math.max(l,f,h),N=t-E,F,k;t===E?F=0:l===t?F=(f-h)/N:f===t?F=2+(h-l)/N:h===t&&(F=4+(l-f)/N),F=Math.min(F*60,360),F<0&&(F+=360);let x=(E+t)/2;return t===E?k=0:x<=.5?k=N/(t+E):k=N/(2-t-E),[F,k*100,x*100]};zn.rgb.hsv=function(o){let l,f,h,E,t,N=o[0]/255,F=o[1]/255,k=o[2]/255,x=Math.max(N,F,k),j=x-Math.min(N,F,k),q=function(V){return(x-V)/6/j+1/2};return j===0?(E=0,t=0):(t=j/x,l=q(N),f=q(F),h=q(k),N===x?E=h-f:F===x?E=1/3+l-h:k===x&&(E=2/3+f-l),E<0?E+=1:E>1&&(E-=1)),[E*360,t*100,x*100]};zn.rgb.hwb=function(o){let l=o[0],f=o[1],h=o[2],E=zn.rgb.hsl(o)[0],t=1/255*Math.min(l,Math.min(f,h));return h=1-1/255*Math.max(l,Math.max(f,h)),[E,t*100,h*100]};zn.rgb.cmyk=function(o){let l=o[0]/255,f=o[1]/255,h=o[2]/255,E=Math.min(1-l,1-f,1-h),t=(1-l-E)/(1-E)||0,N=(1-f-E)/(1-E)||0,F=(1-h-E)/(1-E)||0;return[t*100,N*100,F*100,E*100]};function jP(o,l){return(o[0]-l[0])**2+(o[1]-l[1])**2+(o[2]-l[2])**2}zn.rgb.keyword=function(o){let l=hT[o];if(l)return l;let f=1/0,h;for(let E of Object.keys(Qy)){let t=Qy[E],N=jP(o,t);N.04045?((l+.055)/1.055)**2.4:l/12.92,f=f>.04045?((f+.055)/1.055)**2.4:f/12.92,h=h>.04045?((h+.055)/1.055)**2.4:h/12.92;let E=l*.4124+f*.3576+h*.1805,t=l*.2126+f*.7152+h*.0722,N=l*.0193+f*.1192+h*.9505;return[E*100,t*100,N*100]};zn.rgb.lab=function(o){let l=zn.rgb.xyz(o),f=l[0],h=l[1],E=l[2];f/=95.047,h/=100,E/=108.883,f=f>.008856?f**(1/3):7.787*f+16/116,h=h>.008856?h**(1/3):7.787*h+16/116,E=E>.008856?E**(1/3):7.787*E+16/116;let t=116*h-16,N=500*(f-h),F=200*(h-E);return[t,N,F]};zn.hsl.rgb=function(o){let l=o[0]/360,f=o[1]/100,h=o[2]/100,E,t,N;if(f===0)return N=h*255,[N,N,N];h<.5?E=h*(1+f):E=h+f-h*f;let F=2*h-E,k=[0,0,0];for(let x=0;x<3;x++)t=l+1/3*-(x-1),t<0&&t++,t>1&&t--,6*t<1?N=F+(E-F)*6*t:2*t<1?N=E:3*t<2?N=F+(E-F)*(2/3-t)*6:N=F,k[x]=N*255;return k};zn.hsl.hsv=function(o){let l=o[0],f=o[1]/100,h=o[2]/100,E=f,t=Math.max(h,.01);h*=2,f*=h<=1?h:2-h,E*=t<=1?t:2-t;let N=(h+f)/2,F=h===0?2*E/(t+E):2*f/(h+f);return[l,F*100,N*100]};zn.hsv.rgb=function(o){let l=o[0]/60,f=o[1]/100,h=o[2]/100,E=Math.floor(l)%6,t=l-Math.floor(l),N=255*h*(1-f),F=255*h*(1-f*t),k=255*h*(1-f*(1-t));switch(h*=255,E){case 0:return[h,k,N];case 1:return[F,h,N];case 2:return[N,h,k];case 3:return[N,F,h];case 4:return[k,N,h];case 5:return[h,N,F]}};zn.hsv.hsl=function(o){let l=o[0],f=o[1]/100,h=o[2]/100,E=Math.max(h,.01),t,N;N=(2-f)*h;let F=(2-f)*E;return t=f*E,t/=F<=1?F:2-F,t=t||0,N/=2,[l,t*100,N*100]};zn.hwb.rgb=function(o){let l=o[0]/360,f=o[1]/100,h=o[2]/100,E=f+h,t;E>1&&(f/=E,h/=E);let N=Math.floor(6*l),F=1-h;t=6*l-N,(N&1)!==0&&(t=1-t);let k=f+t*(F-f),x,j,q;switch(N){default:case 6:case 0:x=F,j=k,q=f;break;case 1:x=k,j=F,q=f;break;case 2:x=f,j=F,q=k;break;case 3:x=f,j=k,q=F;break;case 4:x=k,j=f,q=F;break;case 5:x=F,j=f,q=k;break}return[x*255,j*255,q*255]};zn.cmyk.rgb=function(o){let l=o[0]/100,f=o[1]/100,h=o[2]/100,E=o[3]/100,t=1-Math.min(1,l*(1-E)+E),N=1-Math.min(1,f*(1-E)+E),F=1-Math.min(1,h*(1-E)+E);return[t*255,N*255,F*255]};zn.xyz.rgb=function(o){let l=o[0]/100,f=o[1]/100,h=o[2]/100,E,t,N;return E=l*3.2406+f*-1.5372+h*-.4986,t=l*-.9689+f*1.8758+h*.0415,N=l*.0557+f*-.204+h*1.057,E=E>.0031308?1.055*E**(1/2.4)-.055:E*12.92,t=t>.0031308?1.055*t**(1/2.4)-.055:t*12.92,N=N>.0031308?1.055*N**(1/2.4)-.055:N*12.92,E=Math.min(Math.max(0,E),1),t=Math.min(Math.max(0,t),1),N=Math.min(Math.max(0,N),1),[E*255,t*255,N*255]};zn.xyz.lab=function(o){let l=o[0],f=o[1],h=o[2];l/=95.047,f/=100,h/=108.883,l=l>.008856?l**(1/3):7.787*l+16/116,f=f>.008856?f**(1/3):7.787*f+16/116,h=h>.008856?h**(1/3):7.787*h+16/116;let E=116*f-16,t=500*(l-f),N=200*(f-h);return[E,t,N]};zn.lab.xyz=function(o){let l=o[0],f=o[1],h=o[2],E,t,N;t=(l+16)/116,E=f/500+t,N=t-h/200;let F=t**3,k=E**3,x=N**3;return t=F>.008856?F:(t-16/116)/7.787,E=k>.008856?k:(E-16/116)/7.787,N=x>.008856?x:(N-16/116)/7.787,E*=95.047,t*=100,N*=108.883,[E,t,N]};zn.lab.lch=function(o){let l=o[0],f=o[1],h=o[2],E;E=Math.atan2(h,f)*360/2/Math.PI,E<0&&(E+=360);let N=Math.sqrt(f*f+h*h);return[l,N,E]};zn.lch.lab=function(o){let l=o[0],f=o[1],E=o[2]/360*2*Math.PI,t=f*Math.cos(E),N=f*Math.sin(E);return[l,t,N]};zn.rgb.ansi16=function(o,l=null){let[f,h,E]=o,t=l===null?zn.rgb.hsv(o)[2]:l;if(t=Math.round(t/50),t===0)return 30;let N=30+(Math.round(E/255)<<2|Math.round(h/255)<<1|Math.round(f/255));return t===2&&(N+=60),N};zn.hsv.ansi16=function(o){return zn.rgb.ansi16(zn.hsv.rgb(o),o[2])};zn.rgb.ansi256=function(o){let l=o[0],f=o[1],h=o[2];return l===f&&f===h?l<8?16:l>248?231:Math.round((l-8)/247*24)+232:16+36*Math.round(l/255*5)+6*Math.round(f/255*5)+Math.round(h/255*5)};zn.ansi16.rgb=function(o){let l=o%10;if(l===0||l===7)return o>50&&(l+=3.5),l=l/10.5*255,[l,l,l];let f=(~~(o>50)+1)*.5,h=(l&1)*f*255,E=(l>>1&1)*f*255,t=(l>>2&1)*f*255;return[h,E,t]};zn.ansi256.rgb=function(o){if(o>=232){let t=(o-232)*10+8;return[t,t,t]}o-=16;let l,f=Math.floor(o/36)/5*255,h=Math.floor((l=o%36)/6)/5*255,E=l%6/5*255;return[f,h,E]};zn.rgb.hex=function(o){let f=(((Math.round(o[0])&255)<<16)+((Math.round(o[1])&255)<<8)+(Math.round(o[2])&255)).toString(16).toUpperCase();return"000000".substring(f.length)+f};zn.hex.rgb=function(o){let l=o.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!l)return[0,0,0];let f=l[0];l[0].length===3&&(f=f.split("").map(F=>F+F).join(""));let h=parseInt(f,16),E=h>>16&255,t=h>>8&255,N=h&255;return[E,t,N]};zn.rgb.hcg=function(o){let l=o[0]/255,f=o[1]/255,h=o[2]/255,E=Math.max(Math.max(l,f),h),t=Math.min(Math.min(l,f),h),N=E-t,F,k;return N<1?F=t/(1-N):F=0,N<=0?k=0:E===l?k=(f-h)/N%6:E===f?k=2+(h-l)/N:k=4+(l-f)/N,k/=6,k%=1,[k*360,N*100,F*100]};zn.hsl.hcg=function(o){let l=o[1]/100,f=o[2]/100,h=f<.5?2*l*f:2*l*(1-f),E=0;return h<1&&(E=(f-.5*h)/(1-h)),[o[0],h*100,E*100]};zn.hsv.hcg=function(o){let l=o[1]/100,f=o[2]/100,h=l*f,E=0;return h<1&&(E=(f-h)/(1-h)),[o[0],h*100,E*100]};zn.hcg.rgb=function(o){let l=o[0]/360,f=o[1]/100,h=o[2]/100;if(f===0)return[h*255,h*255,h*255];let E=[0,0,0],t=l%1*6,N=t%1,F=1-N,k=0;switch(Math.floor(t)){case 0:E[0]=1,E[1]=N,E[2]=0;break;case 1:E[0]=F,E[1]=1,E[2]=0;break;case 2:E[0]=0,E[1]=1,E[2]=N;break;case 3:E[0]=0,E[1]=F,E[2]=1;break;case 4:E[0]=N,E[1]=0,E[2]=1;break;default:E[0]=1,E[1]=0,E[2]=F}return k=(1-f)*h,[(f*E[0]+k)*255,(f*E[1]+k)*255,(f*E[2]+k)*255]};zn.hcg.hsv=function(o){let l=o[1]/100,f=o[2]/100,h=l+f*(1-l),E=0;return h>0&&(E=l/h),[o[0],E*100,h*100]};zn.hcg.hsl=function(o){let l=o[1]/100,h=o[2]/100*(1-l)+.5*l,E=0;return h>0&&h<.5?E=l/(2*h):h>=.5&&h<1&&(E=l/(2*(1-h))),[o[0],E*100,h*100]};zn.hcg.hwb=function(o){let l=o[1]/100,f=o[2]/100,h=l+f*(1-l);return[o[0],(h-l)*100,(1-h)*100]};zn.hwb.hcg=function(o){let l=o[1]/100,h=1-o[2]/100,E=h-l,t=0;return E<1&&(t=(h-E)/(1-E)),[o[0],E*100,t*100]};zn.apple.rgb=function(o){return[o[0]/65535*255,o[1]/65535*255,o[2]/65535*255]};zn.rgb.apple=function(o){return[o[0]/255*65535,o[1]/255*65535,o[2]/255*65535]};zn.gray.rgb=function(o){return[o[0]/100*255,o[0]/100*255,o[0]/100*255]};zn.gray.hsl=function(o){return[0,0,o[0]]};zn.gray.hsv=zn.gray.hsl;zn.gray.hwb=function(o){return[0,100,o[0]]};zn.gray.cmyk=function(o){return[0,0,0,o[0]]};zn.gray.lab=function(o){return[o[0],0,0]};zn.gray.hex=function(o){let l=Math.round(o[0]/100*255)&255,h=((l<<16)+(l<<8)+l).toString(16).toUpperCase();return"000000".substring(h.length)+h};zn.rgb.gray=function(o){return[(o[0]+o[1]+o[2])/3/255*100]}});var yT=nt((IH,mT)=>{var W_=AD();function zP(){let o={},l=Object.keys(W_);for(let f=l.length,h=0;h{var OD=AD(),VP=yT(),Zv={},GP=Object.keys(OD);function YP(o){let l=function(...f){let h=f[0];return h==null?h:(h.length>1&&(f=h),o(f))};return"conversion"in o&&(l.conversion=o.conversion),l}function KP(o){let l=function(...f){let h=f[0];if(h==null)return h;h.length>1&&(f=h);let E=o(f);if(typeof E=="object")for(let t=E.length,N=0;N{Zv[o]={},Object.defineProperty(Zv[o],"channels",{value:OD[o].channels}),Object.defineProperty(Zv[o],"labels",{value:OD[o].labels});let l=VP(o);Object.keys(l).forEach(h=>{let E=l[h];Zv[o][h]=KP(E),Zv[o][h].raw=YP(E)})});gT.exports=Zv});var G_=nt((BH,TT)=>{"use strict";var ET=(o,l)=>(...f)=>`\x1B[${o(...f)+l}m`,DT=(o,l)=>(...f)=>{let h=o(...f);return`\x1B[${38+l};5;${h}m`},wT=(o,l)=>(...f)=>{let h=o(...f);return`\x1B[${38+l};2;${h[0]};${h[1]};${h[2]}m`},V_=o=>o,ST=(o,l,f)=>[o,l,f],$v=(o,l,f)=>{Object.defineProperty(o,l,{get:()=>{let h=f();return Object.defineProperty(o,l,{value:h,enumerable:!0,configurable:!0}),h},enumerable:!0,configurable:!0})},MD,em=(o,l,f,h)=>{MD===void 0&&(MD=_T());let E=h?10:0,t={};for(let[N,F]of Object.entries(MD)){let k=N==="ansi16"?"ansi":N;N===l?t[k]=o(f,E):typeof F=="object"&&(t[k]=o(F[l],E))}return t};function XP(){let o=new Map,l={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};l.color.gray=l.color.blackBright,l.bgColor.bgGray=l.bgColor.bgBlackBright,l.color.grey=l.color.blackBright,l.bgColor.bgGrey=l.bgColor.bgBlackBright;for(let[f,h]of Object.entries(l)){for(let[E,t]of Object.entries(h))l[E]={open:`\x1B[${t[0]}m`,close:`\x1B[${t[1]}m`},h[E]=l[E],o.set(t[0],t[1]);Object.defineProperty(l,f,{value:h,enumerable:!1})}return Object.defineProperty(l,"codes",{value:o,enumerable:!1}),l.color.close="\x1B[39m",l.bgColor.close="\x1B[49m",$v(l.color,"ansi",()=>em(ET,"ansi16",V_,!1)),$v(l.color,"ansi256",()=>em(DT,"ansi256",V_,!1)),$v(l.color,"ansi16m",()=>em(wT,"rgb",ST,!1)),$v(l.bgColor,"ansi",()=>em(ET,"ansi16",V_,!0)),$v(l.bgColor,"ansi256",()=>em(DT,"ansi256",V_,!0)),$v(l.bgColor,"ansi16m",()=>em(wT,"rgb",ST,!0)),l}Object.defineProperty(TT,"exports",{enumerable:!0,get:XP})});var RT=nt((UH,xT)=>{"use strict";var Jy=q_(),QP=DD(),JP=G_(),ND=new Set(["\x1B","\x9B"]),ZP=39,CT=o=>`${ND.values().next().value}[${o}m`,$P=o=>o.split(" ").map(l=>Jy(l)),kD=(o,l,f)=>{let h=[...l],E=!1,t=Jy(QP(o[o.length-1]));for(let[N,F]of h.entries()){let k=Jy(F);if(t+k<=f?o[o.length-1]+=F:(o.push(F),t=0),ND.has(F))E=!0;else if(E&&F==="m"){E=!1;continue}E||(t+=k,t===f&&N0&&o.length>1&&(o[o.length-2]+=o.pop())},eI=o=>{let l=o.split(" "),f=l.length;for(;f>0&&!(Jy(l[f-1])>0);)f--;return f===l.length?o:l.slice(0,f).join(" ")+l.slice(f).join("")},tI=(o,l,f={})=>{if(f.trim!==!1&&o.trim()==="")return"";let h="",E="",t,N=$P(o),F=[""];for(let[k,x]of o.split(" ").entries()){f.trim!==!1&&(F[F.length-1]=F[F.length-1].trimLeft());let j=Jy(F[F.length-1]);if(k!==0&&(j>=l&&(f.wordWrap===!1||f.trim===!1)&&(F.push(""),j=0),(j>0||f.trim===!1)&&(F[F.length-1]+=" ",j++)),f.hard&&N[k]>l){let q=l-j,V=1+Math.floor((N[k]-q-1)/l);Math.floor((N[k]-1)/l)l&&j>0&&N[k]>0){if(f.wordWrap===!1&&jl&&f.wordWrap===!1){kD(F,x,l);continue}F[F.length-1]+=x}f.trim!==!1&&(F=F.map(eI)),h=F.join(` +`);for(let[k,x]of[...h].entries()){if(E+=x,ND.has(x)){let q=parseFloat(/\d[^m]*/.exec(h.slice(k,k+4)));t=q===ZP?null:q}let j=JP.codes.get(Number(t));t&&j&&(h[k+1]===` +`?E+=CT(j):x===` +`&&(E+=CT(t)))}return E};xT.exports=(o,l,f)=>String(o).normalize().replace(/\r\n/g,` +`).split(` +`).map(h=>tI(h,l,f)).join(` +`)});var MT=nt((jH,OT)=>{"use strict";var AT="[\uD800-\uDBFF][\uDC00-\uDFFF]",nI=o=>o&&o.exact?new RegExp(`^${AT}$`):new RegExp(AT,"g");OT.exports=nI});var LD=nt((zH,FT)=>{"use strict";var rI=SD(),iI=MT(),kT=G_(),LT=["\x1B","\x9B"],Y_=o=>`${LT[0]}[${o}m`,NT=(o,l,f)=>{let h=[];o=[...o];for(let E of o){let t=E;E.match(";")&&(E=E.split(";")[0][0]+"0");let N=kT.codes.get(parseInt(E,10));if(N){let F=o.indexOf(N.toString());F>=0?o.splice(F,1):h.push(Y_(l?N:t))}else if(l){h.push(Y_(0));break}else h.push(Y_(t))}if(l&&(h=h.filter((E,t)=>h.indexOf(E)===t),f!==void 0)){let E=Y_(kT.codes.get(parseInt(f,10)));h=h.reduce((t,N)=>N===E?[N,...t]:[...t,N],[])}return h.join("")};FT.exports=(o,l,f)=>{let h=[...o.normalize()],E=[];f=typeof f=="number"?f:h.length;let t=!1,N,F=0,k="";for(let[x,j]of h.entries()){let q=!1;if(LT.includes(j)){let V=/\d[^m]*/.exec(o.slice(x,x+18));N=V&&V.length>0?V[0]:void 0,Fl&&F<=f)k+=j;else if(F===l&&!t&&N!==void 0)k=NT(E);else if(F>=f){k+=NT(E,!0,N);break}}return k}});var IT=nt((HH,PT)=>{"use strict";var c2=LD(),uI=q_();function K_(o,l,f){if(o.charAt(l)===" ")return l;for(let h=1;h<=3;h++)if(f){if(o.charAt(l+h)===" ")return l+h}else if(o.charAt(l-h)===" ")return l-h;return l}PT.exports=(o,l,f)=>{f={position:"end",preferTruncationOnSpace:!1,...f};let{position:h,space:E,preferTruncationOnSpace:t}=f,N="\u2026",F=1;if(typeof o!="string")throw new TypeError(`Expected \`input\` to be a string, got ${typeof o}`);if(typeof l!="number")throw new TypeError(`Expected \`columns\` to be a number, got ${typeof l}`);if(l<1)return"";if(l===1)return N;let k=uI(o);if(k<=l)return o;if(h==="start"){if(t){let x=K_(o,k-l+1,!0);return N+c2(o,x,k).trim()}return E===!0&&(N+=" ",F=2),N+c2(o,k-l+F,k)}if(h==="middle"){E===!0&&(N=" "+N+" ",F=3);let x=Math.floor(l/2);if(t){let j=K_(o,x),q=K_(o,k-(l-x)+1,!0);return c2(o,0,j)+N+c2(o,q,k).trim()}return c2(o,0,x)+N+c2(o,k-(l-x)+F,k)}if(h==="end"){if(t){let x=K_(o,l-1);return c2(o,0,x)+N}return E===!0&&(N=" "+N,F=2),c2(o,0,l-F)+N}throw new Error(`Expected \`options.position\` to be either \`start\`, \`middle\` or \`end\`, got ${h}`)}});var PD=nt(Zy=>{"use strict";var bT=Zy&&Zy.__importDefault||function(o){return o&&o.__esModule?o:{default:o}};Object.defineProperty(Zy,"__esModule",{value:!0});var oI=bT(RT()),lI=bT(IT()),FD={};Zy.default=(o,l,f)=>{let h=o+String(l)+String(f);if(FD[h])return FD[h];let E=o;if(f==="wrap"&&(E=oI.default(o,l,{trim:!1,hard:!0})),f.startsWith("truncate")){let t="end";f==="truncate-middle"&&(t="middle"),f==="truncate-start"&&(t="start"),E=lI.default(o,l,{position:t})}return FD[h]=E,E}});var bD=nt(ID=>{"use strict";Object.defineProperty(ID,"__esModule",{value:!0});var BT=o=>{let l="";if(o.childNodes.length>0)for(let f of o.childNodes){let h="";f.nodeName==="#text"?h=f.nodeValue:((f.nodeName==="ink-text"||f.nodeName==="ink-virtual-text")&&(h=BT(f)),h.length>0&&typeof f.internal_transform=="function"&&(h=f.internal_transform(h))),l+=h}return l};ID.default=BT});var BD=nt(f0=>{"use strict";var $y=f0&&f0.__importDefault||function(o){return o&&o.__esModule?o:{default:o}};Object.defineProperty(f0,"__esModule",{value:!0});f0.setTextNodeValue=f0.createTextNode=f0.setStyle=f0.setAttribute=f0.removeChildNode=f0.insertBeforeNode=f0.appendChildNode=f0.createNode=f0.TEXT_NAME=void 0;var sI=$y(eh()),UT=$y(fT()),aI=$y(cT()),fI=$y(PD()),cI=$y(bD());f0.TEXT_NAME="#text";f0.createNode=o=>{var l;let f={nodeName:o,style:{},attributes:{},childNodes:[],parentNode:null,yogaNode:o==="ink-virtual-text"?void 0:sI.default.Node.create()};return o==="ink-text"&&((l=f.yogaNode)===null||l===void 0||l.setMeasureFunc(dI.bind(null,f))),f};f0.appendChildNode=(o,l)=>{var f;l.parentNode&&f0.removeChildNode(l.parentNode,l),l.parentNode=o,o.childNodes.push(l),l.yogaNode&&((f=o.yogaNode)===null||f===void 0||f.insertChild(l.yogaNode,o.yogaNode.getChildCount())),(o.nodeName==="ink-text"||o.nodeName==="ink-virtual-text")&&X_(o)};f0.insertBeforeNode=(o,l,f)=>{var h,E;l.parentNode&&f0.removeChildNode(l.parentNode,l),l.parentNode=o;let t=o.childNodes.indexOf(f);if(t>=0){o.childNodes.splice(t,0,l),l.yogaNode&&((h=o.yogaNode)===null||h===void 0||h.insertChild(l.yogaNode,t));return}o.childNodes.push(l),l.yogaNode&&((E=o.yogaNode)===null||E===void 0||E.insertChild(l.yogaNode,o.yogaNode.getChildCount())),(o.nodeName==="ink-text"||o.nodeName==="ink-virtual-text")&&X_(o)};f0.removeChildNode=(o,l)=>{var f,h;l.yogaNode&&((h=(f=l.parentNode)===null||f===void 0?void 0:f.yogaNode)===null||h===void 0||h.removeChild(l.yogaNode)),l.parentNode=null;let E=o.childNodes.indexOf(l);E>=0&&o.childNodes.splice(E,1),(o.nodeName==="ink-text"||o.nodeName==="ink-virtual-text")&&X_(o)};f0.setAttribute=(o,l,f)=>{o.attributes[l]=f};f0.setStyle=(o,l)=>{o.style=l,o.yogaNode&&aI.default(o.yogaNode,l)};f0.createTextNode=o=>{let l={nodeName:"#text",nodeValue:o,yogaNode:void 0,parentNode:null,style:{}};return f0.setTextNodeValue(l,o),l};var dI=function(o,l){var f,h;let E=o.nodeName==="#text"?o.nodeValue:cI.default(o),t=UT.default(E);if(t.width<=l||t.width>=1&&l>0&&l<1)return t;let N=(h=(f=o.style)===null||f===void 0?void 0:f.textWrap)!==null&&h!==void 0?h:"wrap",F=fI.default(E,l,N);return UT.default(F)},jT=o=>{var l;if(!(!o||!o.parentNode))return(l=o.yogaNode)!==null&&l!==void 0?l:jT(o.parentNode)},X_=o=>{let l=jT(o);l==null||l.markDirty()};f0.setTextNodeValue=(o,l)=>{typeof l!="string"&&(l=String(l)),o.nodeValue=l,X_(o)}});var th=nt((GH,zT)=>{"use strict";zT.exports={BINARY_TYPES:["nodebuffer","arraybuffer","fragments"],GUID:"258EAFA5-E914-47DA-95CA-C5AB0DC85B11",kStatusCode:Symbol("status-code"),kWebSocket:Symbol("websocket"),EMPTY_BUFFER:Buffer.alloc(0),NOOP:()=>{}}});var eg=nt((YH,UD)=>{"use strict";var{EMPTY_BUFFER:pI}=th();function HT(o,l){if(o.length===0)return pI;if(o.length===1)return o[0];let f=Buffer.allocUnsafe(l),h=0;for(let E=0;E{"use strict";var GT=Symbol("kDone"),jD=Symbol("kRun"),zD=class{constructor(l){this[GT]=()=>{this.pending--,this[jD]()},this.concurrency=l||1/0,this.jobs=[],this.pending=0}add(l){this.jobs.push(l),this[jD]()}[jD](){if(this.pending!==this.concurrency&&this.jobs.length){let l=this.jobs.shift();this.pending++,l(this[GT])}}};YT.exports=zD});var rg=nt((XH,ZT)=>{"use strict";var tg=hi("zlib"),XT=eg(),hI=KT(),{kStatusCode:QT,NOOP:vI}=th(),mI=Buffer.from([0,0,255,255]),Z_=Symbol("permessage-deflate"),X1=Symbol("total-length"),ng=Symbol("callback"),d2=Symbol("buffers"),HD=Symbol("error"),J_,qD=class{constructor(l,f,h){if(this._maxPayload=h|0,this._options=l||{},this._threshold=this._options.threshold!==void 0?this._options.threshold:1024,this._isServer=!!f,this._deflate=null,this._inflate=null,this.params=null,!J_){let E=this._options.concurrencyLimit!==void 0?this._options.concurrencyLimit:10;J_=new hI(E)}}static get extensionName(){return"permessage-deflate"}offer(){let l={};return this._options.serverNoContextTakeover&&(l.server_no_context_takeover=!0),this._options.clientNoContextTakeover&&(l.client_no_context_takeover=!0),this._options.serverMaxWindowBits&&(l.server_max_window_bits=this._options.serverMaxWindowBits),this._options.clientMaxWindowBits?l.client_max_window_bits=this._options.clientMaxWindowBits:this._options.clientMaxWindowBits==null&&(l.client_max_window_bits=!0),l}accept(l){return l=this.normalizeParams(l),this.params=this._isServer?this.acceptAsServer(l):this.acceptAsClient(l),this.params}cleanup(){if(this._inflate&&(this._inflate.close(),this._inflate=null),this._deflate){let l=this._deflate[ng];this._deflate.close(),this._deflate=null,l&&l(new Error("The deflate stream was closed while data was being processed"))}}acceptAsServer(l){let f=this._options,h=l.find(E=>!(f.serverNoContextTakeover===!1&&E.server_no_context_takeover||E.server_max_window_bits&&(f.serverMaxWindowBits===!1||typeof f.serverMaxWindowBits=="number"&&f.serverMaxWindowBits>E.server_max_window_bits)||typeof f.clientMaxWindowBits=="number"&&!E.client_max_window_bits));if(!h)throw new Error("None of the extension offers can be accepted");return f.serverNoContextTakeover&&(h.server_no_context_takeover=!0),f.clientNoContextTakeover&&(h.client_no_context_takeover=!0),typeof f.serverMaxWindowBits=="number"&&(h.server_max_window_bits=f.serverMaxWindowBits),typeof f.clientMaxWindowBits=="number"?h.client_max_window_bits=f.clientMaxWindowBits:(h.client_max_window_bits===!0||f.clientMaxWindowBits===!1)&&delete h.client_max_window_bits,h}acceptAsClient(l){let f=l[0];if(this._options.clientNoContextTakeover===!1&&f.client_no_context_takeover)throw new Error('Unexpected parameter "client_no_context_takeover"');if(!f.client_max_window_bits)typeof this._options.clientMaxWindowBits=="number"&&(f.client_max_window_bits=this._options.clientMaxWindowBits);else if(this._options.clientMaxWindowBits===!1||typeof this._options.clientMaxWindowBits=="number"&&f.client_max_window_bits>this._options.clientMaxWindowBits)throw new Error('Unexpected or invalid parameter "client_max_window_bits"');return f}normalizeParams(l){return l.forEach(f=>{Object.keys(f).forEach(h=>{let E=f[h];if(E.length>1)throw new Error(`Parameter "${h}" must have only a single value`);if(E=E[0],h==="client_max_window_bits"){if(E!==!0){let t=+E;if(!Number.isInteger(t)||t<8||t>15)throw new TypeError(`Invalid value for parameter "${h}": ${E}`);E=t}else if(!this._isServer)throw new TypeError(`Invalid value for parameter "${h}": ${E}`)}else if(h==="server_max_window_bits"){let t=+E;if(!Number.isInteger(t)||t<8||t>15)throw new TypeError(`Invalid value for parameter "${h}": ${E}`);E=t}else if(h==="client_no_context_takeover"||h==="server_no_context_takeover"){if(E!==!0)throw new TypeError(`Invalid value for parameter "${h}": ${E}`)}else throw new Error(`Unknown parameter "${h}"`);f[h]=E})}),l}decompress(l,f,h){J_.add(E=>{this._decompress(l,f,(t,N)=>{E(),h(t,N)})})}compress(l,f,h){J_.add(E=>{this._compress(l,f,(t,N)=>{E(),h(t,N)})})}_decompress(l,f,h){let E=this._isServer?"client":"server";if(!this._inflate){let t=`${E}_max_window_bits`,N=typeof this.params[t]!="number"?tg.Z_DEFAULT_WINDOWBITS:this.params[t];this._inflate=tg.createInflateRaw({...this._options.zlibInflateOptions,windowBits:N}),this._inflate[Z_]=this,this._inflate[X1]=0,this._inflate[d2]=[],this._inflate.on("error",gI),this._inflate.on("data",JT)}this._inflate[ng]=h,this._inflate.write(l),f&&this._inflate.write(mI),this._inflate.flush(()=>{let t=this._inflate[HD];if(t){this._inflate.close(),this._inflate=null,h(t);return}let N=XT.concat(this._inflate[d2],this._inflate[X1]);this._inflate._readableState.endEmitted?(this._inflate.close(),this._inflate=null):(this._inflate[X1]=0,this._inflate[d2]=[],f&&this.params[`${E}_no_context_takeover`]&&this._inflate.reset()),h(null,N)})}_compress(l,f,h){let E=this._isServer?"server":"client";if(!this._deflate){let t=`${E}_max_window_bits`,N=typeof this.params[t]!="number"?tg.Z_DEFAULT_WINDOWBITS:this.params[t];this._deflate=tg.createDeflateRaw({...this._options.zlibDeflateOptions,windowBits:N}),this._deflate[X1]=0,this._deflate[d2]=[],this._deflate.on("error",vI),this._deflate.on("data",yI)}this._deflate[ng]=h,this._deflate.write(l),this._deflate.flush(tg.Z_SYNC_FLUSH,()=>{if(!this._deflate)return;let t=XT.concat(this._deflate[d2],this._deflate[X1]);f&&(t=t.slice(0,t.length-4)),this._deflate[ng]=null,this._deflate[X1]=0,this._deflate[d2]=[],f&&this.params[`${E}_no_context_takeover`]&&this._deflate.reset(),h(null,t)})}};ZT.exports=qD;function yI(o){this[d2].push(o),this[X1]+=o.length}function JT(o){if(this[X1]+=o.length,this[Z_]._maxPayload<1||this[X1]<=this[Z_]._maxPayload){this[d2].push(o);return}this[HD]=new RangeError("Max payload size exceeded"),this[HD][QT]=1009,this.removeListener("data",JT),this.reset()}function gI(o){this[Z_]._inflate=null,o[QT]=1007,this[ng](o)}});var VD=nt((QH,WD)=>{"use strict";function $T(o){return o>=1e3&&o<=1014&&o!==1004&&o!==1005&&o!==1006||o>=3e3&&o<=4999}function eC(o){let l=o.length,f=0;for(;f=l||(o[f+1]&192)!==128||(o[f+2]&192)!==128||o[f]===224&&(o[f+1]&224)===128||o[f]===237&&(o[f+1]&224)===160)return!1;f+=3}else if((o[f]&248)===240){if(f+3>=l||(o[f+1]&192)!==128||(o[f+2]&192)!==128||(o[f+3]&192)!==128||o[f]===240&&(o[f+1]&240)===128||o[f]===244&&o[f+1]>143||o[f]>244)return!1;f+=4}else return!1;return!0}try{let o=hi("utf-8-validate");typeof o=="object"&&(o=o.Validation.isValidUTF8),WD.exports={isValidStatusCode:$T,isValidUTF8(l){return l.length<150?eC(l):o(l)}}}catch{WD.exports={isValidStatusCode:$T,isValidUTF8:eC}}});var XD=nt((JH,oC)=>{"use strict";var{Writable:_I}=hi("stream"),tC=rg(),{BINARY_TYPES:EI,EMPTY_BUFFER:DI,kStatusCode:wI,kWebSocket:SI}=th(),{concat:GD,toArrayBuffer:TI,unmask:CI}=eg(),{isValidStatusCode:xI,isValidUTF8:nC}=VD(),ig=0,rC=1,iC=2,uC=3,YD=4,RI=5,KD=class extends _I{constructor(l,f,h,E){super(),this._binaryType=l||EI[0],this[SI]=void 0,this._extensions=f||{},this._isServer=!!h,this._maxPayload=E|0,this._bufferedBytes=0,this._buffers=[],this._compressed=!1,this._payloadLength=0,this._mask=void 0,this._fragmented=0,this._masked=!1,this._fin=!1,this._opcode=0,this._totalPayloadLength=0,this._messageLength=0,this._fragments=[],this._state=ig,this._loop=!1}_write(l,f,h){if(this._opcode===8&&this._state==ig)return h();this._bufferedBytes+=l.length,this._buffers.push(l),this.startLoop(h)}consume(l){if(this._bufferedBytes-=l,l===this._buffers[0].length)return this._buffers.shift();if(l=h.length?f.set(this._buffers.shift(),E):(f.set(new Uint8Array(h.buffer,h.byteOffset,l),E),this._buffers[0]=h.slice(l)),l-=h.length}while(l>0);return f}startLoop(l){let f;this._loop=!0;do switch(this._state){case ig:f=this.getInfo();break;case rC:f=this.getPayloadLength16();break;case iC:f=this.getPayloadLength64();break;case uC:this.getMask();break;case YD:f=this.getData(l);break;default:this._loop=!1;return}while(this._loop);l(f)}getInfo(){if(this._bufferedBytes<2){this._loop=!1;return}let l=this.consume(2);if((l[0]&48)!==0)return this._loop=!1,Ko(RangeError,"RSV2 and RSV3 must be clear",!0,1002);let f=(l[0]&64)===64;if(f&&!this._extensions[tC.extensionName])return this._loop=!1,Ko(RangeError,"RSV1 must be clear",!0,1002);if(this._fin=(l[0]&128)===128,this._opcode=l[0]&15,this._payloadLength=l[1]&127,this._opcode===0){if(f)return this._loop=!1,Ko(RangeError,"RSV1 must be clear",!0,1002);if(!this._fragmented)return this._loop=!1,Ko(RangeError,"invalid opcode 0",!0,1002);this._opcode=this._fragmented}else if(this._opcode===1||this._opcode===2){if(this._fragmented)return this._loop=!1,Ko(RangeError,`invalid opcode ${this._opcode}`,!0,1002);this._compressed=f}else if(this._opcode>7&&this._opcode<11){if(!this._fin)return this._loop=!1,Ko(RangeError,"FIN must be set",!0,1002);if(f)return this._loop=!1,Ko(RangeError,"RSV1 must be clear",!0,1002);if(this._payloadLength>125)return this._loop=!1,Ko(RangeError,`invalid payload length ${this._payloadLength}`,!0,1002)}else return this._loop=!1,Ko(RangeError,`invalid opcode ${this._opcode}`,!0,1002);if(!this._fin&&!this._fragmented&&(this._fragmented=this._opcode),this._masked=(l[1]&128)===128,this._isServer){if(!this._masked)return this._loop=!1,Ko(RangeError,"MASK must be set",!0,1002)}else if(this._masked)return this._loop=!1,Ko(RangeError,"MASK must be clear",!0,1002);if(this._payloadLength===126)this._state=rC;else if(this._payloadLength===127)this._state=iC;else return this.haveLength()}getPayloadLength16(){if(this._bufferedBytes<2){this._loop=!1;return}return this._payloadLength=this.consume(2).readUInt16BE(0),this.haveLength()}getPayloadLength64(){if(this._bufferedBytes<8){this._loop=!1;return}let l=this.consume(8),f=l.readUInt32BE(0);return f>Math.pow(2,53-32)-1?(this._loop=!1,Ko(RangeError,"Unsupported WebSocket frame: payload length > 2^53 - 1",!1,1009)):(this._payloadLength=f*Math.pow(2,32)+l.readUInt32BE(4),this.haveLength())}haveLength(){if(this._payloadLength&&this._opcode<8&&(this._totalPayloadLength+=this._payloadLength,this._totalPayloadLength>this._maxPayload&&this._maxPayload>0))return this._loop=!1,Ko(RangeError,"Max payload size exceeded",!1,1009);this._masked?this._state=uC:this._state=YD}getMask(){if(this._bufferedBytes<4){this._loop=!1;return}this._mask=this.consume(4),this._state=YD}getData(l){let f=DI;if(this._payloadLength){if(this._bufferedBytes7)return this.controlMessage(f);if(this._compressed){this._state=RI,this.decompress(f,l);return}return f.length&&(this._messageLength=this._totalPayloadLength,this._fragments.push(f)),this.dataMessage()}decompress(l,f){this._extensions[tC.extensionName].decompress(l,this._fin,(E,t)=>{if(E)return f(E);if(t.length){if(this._messageLength+=t.length,this._messageLength>this._maxPayload&&this._maxPayload>0)return f(Ko(RangeError,"Max payload size exceeded",!1,1009));this._fragments.push(t)}let N=this.dataMessage();if(N)return f(N);this.startLoop(f)})}dataMessage(){if(this._fin){let l=this._messageLength,f=this._fragments;if(this._totalPayloadLength=0,this._messageLength=0,this._fragmented=0,this._fragments=[],this._opcode===2){let h;this._binaryType==="nodebuffer"?h=GD(f,l):this._binaryType==="arraybuffer"?h=TI(GD(f,l)):h=f,this.emit("message",h)}else{let h=GD(f,l);if(!nC(h))return this._loop=!1,Ko(Error,"invalid UTF-8 sequence",!0,1007);this.emit("message",h.toString())}}this._state=ig}controlMessage(l){if(this._opcode===8)if(this._loop=!1,l.length===0)this.emit("conclude",1005,""),this.end();else{if(l.length===1)return Ko(RangeError,"invalid payload length 1",!0,1002);{let f=l.readUInt16BE(0);if(!xI(f))return Ko(RangeError,`invalid status code ${f}`,!0,1002);let h=l.slice(2);if(!nC(h))return Ko(Error,"invalid UTF-8 sequence",!0,1007);this.emit("conclude",f,h.toString()),this.end()}}else this._opcode===9?this.emit("ping",l):this.emit("pong",l);this._state=ig}};oC.exports=KD;function Ko(o,l,f,h){let E=new o(f?`Invalid WebSocket frame: ${l}`:l);return Error.captureStackTrace(E,Ko),E[wI]=h,E}});var QD=nt((ZH,aC)=>{"use strict";var{randomFillSync:AI}=hi("crypto"),lC=rg(),{EMPTY_BUFFER:OI}=th(),{isValidStatusCode:MI}=VD(),{mask:sC,toBuffer:Q1}=eg(),nh=Buffer.alloc(4),jc=class{constructor(l,f){this._extensions=f||{},this._socket=l,this._firstFragment=!0,this._compress=!1,this._bufferedBytes=0,this._deflating=!1,this._queue=[]}static frame(l,f){let h=f.mask&&f.readOnly,E=f.mask?6:2,t=l.length;l.length>=65536?(E+=8,t=127):l.length>125&&(E+=2,t=126);let N=Buffer.allocUnsafe(h?l.length+E:E);return N[0]=f.fin?f.opcode|128:f.opcode,f.rsv1&&(N[0]|=64),N[1]=t,t===126?N.writeUInt16BE(l.length,2):t===127&&(N.writeUInt32BE(0,2),N.writeUInt32BE(l.length,6)),f.mask?(AI(nh,0,4),N[1]|=128,N[E-4]=nh[0],N[E-3]=nh[1],N[E-2]=nh[2],N[E-1]=nh[3],h?(sC(l,nh,N,E,l.length),[N]):(sC(l,nh,l,0,l.length),[N,l])):[N,l]}close(l,f,h,E){let t;if(l===void 0)t=OI;else{if(typeof l!="number"||!MI(l))throw new TypeError("First argument must be a valid error code number");if(f===void 0||f==="")t=Buffer.allocUnsafe(2),t.writeUInt16BE(l,0);else{let N=Buffer.byteLength(f);if(N>123)throw new RangeError("The message must not be greater than 123 bytes");t=Buffer.allocUnsafe(2+N),t.writeUInt16BE(l,0),t.write(f,2)}}this._deflating?this.enqueue([this.doClose,t,h,E]):this.doClose(t,h,E)}doClose(l,f,h){this.sendFrame(jc.frame(l,{fin:!0,rsv1:!1,opcode:8,mask:f,readOnly:!1}),h)}ping(l,f,h){let E=Q1(l);if(E.length>125)throw new RangeError("The data size must not be greater than 125 bytes");this._deflating?this.enqueue([this.doPing,E,f,Q1.readOnly,h]):this.doPing(E,f,Q1.readOnly,h)}doPing(l,f,h,E){this.sendFrame(jc.frame(l,{fin:!0,rsv1:!1,opcode:9,mask:f,readOnly:h}),E)}pong(l,f,h){let E=Q1(l);if(E.length>125)throw new RangeError("The data size must not be greater than 125 bytes");this._deflating?this.enqueue([this.doPong,E,f,Q1.readOnly,h]):this.doPong(E,f,Q1.readOnly,h)}doPong(l,f,h,E){this.sendFrame(jc.frame(l,{fin:!0,rsv1:!1,opcode:10,mask:f,readOnly:h}),E)}send(l,f,h){let E=Q1(l),t=this._extensions[lC.extensionName],N=f.binary?2:1,F=f.compress;if(this._firstFragment?(this._firstFragment=!1,F&&t&&(F=E.length>=t._threshold),this._compress=F):(F=!1,N=0),f.fin&&(this._firstFragment=!0),t){let k={fin:f.fin,rsv1:F,opcode:N,mask:f.mask,readOnly:Q1.readOnly};this._deflating?this.enqueue([this.dispatch,E,this._compress,k,h]):this.dispatch(E,this._compress,k,h)}else this.sendFrame(jc.frame(E,{fin:f.fin,rsv1:!1,opcode:N,mask:f.mask,readOnly:Q1.readOnly}),h)}dispatch(l,f,h,E){if(!f){this.sendFrame(jc.frame(l,h),E);return}let t=this._extensions[lC.extensionName];this._bufferedBytes+=l.length,this._deflating=!0,t.compress(l,h.fin,(N,F)=>{if(this._socket.destroyed){let k=new Error("The socket was closed while data was being compressed");typeof E=="function"&&E(k);for(let x=0;x{"use strict";var tm=class{constructor(l,f){this.target=f,this.type=l}},JD=class extends tm{constructor(l,f){super("message",f),this.data=l}},ZD=class extends tm{constructor(l,f,h){super("close",h),this.wasClean=h._closeFrameReceived&&h._closeFrameSent,this.reason=f,this.code=l}},$D=class extends tm{constructor(l){super("open",l)}},e3=class extends tm{constructor(l,f){super("error",f),this.message=l.message,this.error=l}},kI={addEventListener(o,l,f){if(typeof l!="function")return;function h(k){l.call(this,new JD(k,this))}function E(k,x){l.call(this,new ZD(k,x,this))}function t(k){l.call(this,new e3(k,this))}function N(){l.call(this,new $D(this))}let F=f&&f.once?"once":"on";o==="message"?(h._listener=l,this[F](o,h)):o==="close"?(E._listener=l,this[F](o,E)):o==="error"?(t._listener=l,this[F](o,t)):o==="open"?(N._listener=l,this[F](o,N)):this[F](o,l)},removeEventListener(o,l){let f=this.listeners(o);for(let h=0;h{"use strict";var ug=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,1,1,1,1,1,0,0,1,1,0,1,1,0,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,1,0,1,0];function zc(o,l,f){o[l]===void 0?o[l]=[f]:o[l].push(f)}function NI(o){let l=Object.create(null);if(o===void 0||o==="")return l;let f=Object.create(null),h=!1,E=!1,t=!1,N,F,k=-1,x=-1,j=0;for(;j{let f=o[l];return Array.isArray(f)||(f=[f]),f.map(h=>[l].concat(Object.keys(h).map(E=>{let t=h[E];return Array.isArray(t)||(t=[t]),t.map(N=>N===!0?E:`${E}=${N}`).join("; ")})).join("; ")).join(", ")}).join(", ")}dC.exports={format:LI,parse:NI}});var o3=nt((tq,wC)=>{"use strict";var FI=hi("events"),PI=hi("https"),II=hi("http"),vC=hi("net"),bI=hi("tls"),{randomBytes:BI,createHash:UI}=hi("crypto"),{URL:n3}=hi("url"),p2=rg(),jI=XD(),zI=QD(),{BINARY_TYPES:pC,EMPTY_BUFFER:r3,GUID:HI,kStatusCode:qI,kWebSocket:ta,NOOP:mC}=th(),{addEventListener:WI,removeEventListener:VI}=cC(),{format:GI,parse:YI}=t3(),{toBuffer:KI}=eg(),yC=["CONNECTING","OPEN","CLOSING","CLOSED"],i3=[8,13],XI=30*1e3,ji=class extends FI{constructor(l,f,h){super(),this._binaryType=pC[0],this._closeCode=1006,this._closeFrameReceived=!1,this._closeFrameSent=!1,this._closeMessage="",this._closeTimer=null,this._extensions={},this._protocol="",this._readyState=ji.CONNECTING,this._receiver=null,this._sender=null,this._socket=null,l!==null?(this._bufferedAmount=0,this._isServer=!1,this._redirects=0,Array.isArray(f)?f=f.join(", "):typeof f=="object"&&f!==null&&(h=f,f=void 0),gC(this,l,f,h)):this._isServer=!0}get binaryType(){return this._binaryType}set binaryType(l){!pC.includes(l)||(this._binaryType=l,this._receiver&&(this._receiver._binaryType=l))}get bufferedAmount(){return this._socket?this._socket._writableState.length+this._sender._bufferedBytes:this._bufferedAmount}get extensions(){return Object.keys(this._extensions).join()}get protocol(){return this._protocol}get readyState(){return this._readyState}get url(){return this._url}setSocket(l,f,h){let E=new jI(this.binaryType,this._extensions,this._isServer,h);this._sender=new zI(l,this._extensions),this._receiver=E,this._socket=l,E[ta]=this,l[ta]=this,E.on("conclude",ZI),E.on("drain",$I),E.on("error",eb),E.on("message",tb),E.on("ping",nb),E.on("pong",rb),l.setTimeout(0),l.setNoDelay(),f.length>0&&l.unshift(f),l.on("close",_C),l.on("data",$_),l.on("end",EC),l.on("error",DC),this._readyState=ji.OPEN,this.emit("open")}emitClose(){if(!this._socket){this._readyState=ji.CLOSED,this.emit("close",this._closeCode,this._closeMessage);return}this._extensions[p2.extensionName]&&this._extensions[p2.extensionName].cleanup(),this._receiver.removeAllListeners(),this._readyState=ji.CLOSED,this.emit("close",this._closeCode,this._closeMessage)}close(l,f){if(this.readyState!==ji.CLOSED){if(this.readyState===ji.CONNECTING){let h="WebSocket was closed before the connection was established";return J1(this,this._req,h)}if(this.readyState===ji.CLOSING){this._closeFrameSent&&this._closeFrameReceived&&this._socket.end();return}this._readyState=ji.CLOSING,this._sender.close(l,f,!this._isServer,h=>{h||(this._closeFrameSent=!0,this._closeFrameReceived&&this._socket.end())}),this._closeTimer=setTimeout(this._socket.destroy.bind(this._socket),XI)}}ping(l,f,h){if(this.readyState===ji.CONNECTING)throw new Error("WebSocket is not open: readyState 0 (CONNECTING)");if(typeof l=="function"?(h=l,l=f=void 0):typeof f=="function"&&(h=f,f=void 0),typeof l=="number"&&(l=l.toString()),this.readyState!==ji.OPEN){u3(this,l,h);return}f===void 0&&(f=!this._isServer),this._sender.ping(l||r3,f,h)}pong(l,f,h){if(this.readyState===ji.CONNECTING)throw new Error("WebSocket is not open: readyState 0 (CONNECTING)");if(typeof l=="function"?(h=l,l=f=void 0):typeof f=="function"&&(h=f,f=void 0),typeof l=="number"&&(l=l.toString()),this.readyState!==ji.OPEN){u3(this,l,h);return}f===void 0&&(f=!this._isServer),this._sender.pong(l||r3,f,h)}send(l,f,h){if(this.readyState===ji.CONNECTING)throw new Error("WebSocket is not open: readyState 0 (CONNECTING)");if(typeof f=="function"&&(h=f,f={}),typeof l=="number"&&(l=l.toString()),this.readyState!==ji.OPEN){u3(this,l,h);return}let E={binary:typeof l!="string",mask:!this._isServer,compress:!0,fin:!0,...f};this._extensions[p2.extensionName]||(E.compress=!1),this._sender.send(l||r3,E,h)}terminate(){if(this.readyState!==ji.CLOSED){if(this.readyState===ji.CONNECTING){let l="WebSocket was closed before the connection was established";return J1(this,this._req,l)}this._socket&&(this._readyState=ji.CLOSING,this._socket.destroy())}}};yC.forEach((o,l)=>{let f={enumerable:!0,value:l};Object.defineProperty(ji.prototype,o,f),Object.defineProperty(ji,o,f)});["binaryType","bufferedAmount","extensions","protocol","readyState","url"].forEach(o=>{Object.defineProperty(ji.prototype,o,{enumerable:!0})});["open","error","close","message"].forEach(o=>{Object.defineProperty(ji.prototype,`on${o}`,{configurable:!0,enumerable:!0,get(){let l=this.listeners(o);for(let f=0;f{J1(o,V,"Opening handshake has timed out")}),V.on("error",re=>{V===null||V.aborted||(V=o._req=null,o._readyState=ji.CLOSING,o.emit("error",re),o.emitClose())}),V.on("response",re=>{let y=re.headers.location,me=re.statusCode;if(y&&E.followRedirects&&me>=300&&me<400){if(++o._redirects>E.maxRedirects){J1(o,V,"Maximum redirects exceeded");return}V.abort();let De=new n3(y,l);gC(o,De,f,h)}else o.emit("unexpected-response",V,re)||J1(o,V,`Unexpected server response: ${re.statusCode}`)}),V.on("upgrade",(re,y,me)=>{if(o.emit("upgrade",re),o.readyState!==ji.CONNECTING)return;V=o._req=null;let De=UI("sha1").update(x+HI).digest("base64");if(re.headers["sec-websocket-accept"]!==De){J1(o,y,"Invalid Sec-WebSocket-Accept header");return}let ge=re.headers["sec-websocket-protocol"],ae=(f||"").split(/, */),we;if(!f&&ge?we="Server sent a subprotocol but none was requested":f&&!ge?we="Server sent no subprotocol":ge&&!ae.includes(ge)&&(we="Server sent an invalid subprotocol"),we){J1(o,y,we);return}if(ge&&(o._protocol=ge),q)try{let he=YI(re.headers["sec-websocket-extensions"]);he[p2.extensionName]&&(q.accept(he[p2.extensionName]),o._extensions[p2.extensionName]=q)}catch{J1(o,y,"Invalid Sec-WebSocket-Extensions header");return}o.setSocket(y,me,E.maxPayload)})}function QI(o){return o.path=o.socketPath,vC.connect(o)}function JI(o){return o.path=void 0,!o.servername&&o.servername!==""&&(o.servername=vC.isIP(o.host)?"":o.host),bI.connect(o)}function J1(o,l,f){o._readyState=ji.CLOSING;let h=new Error(f);Error.captureStackTrace(h,J1),l.setHeader?(l.abort(),l.socket&&!l.socket.destroyed&&l.socket.destroy(),l.once("abort",o.emitClose.bind(o)),o.emit("error",h)):(l.destroy(h),l.once("error",o.emit.bind(o,"error")),l.once("close",o.emitClose.bind(o)))}function u3(o,l,f){if(l){let h=KI(l).length;o._socket?o._sender._bufferedBytes+=h:o._bufferedAmount+=h}if(f){let h=new Error(`WebSocket is not open: readyState ${o.readyState} (${yC[o.readyState]})`);f(h)}}function ZI(o,l){let f=this[ta];f._socket.removeListener("data",$_),f._socket.resume(),f._closeFrameReceived=!0,f._closeMessage=l,f._closeCode=o,o===1005?f.close():f.close(o,l)}function $I(){this[ta]._socket.resume()}function eb(o){let l=this[ta];l._socket.removeListener("data",$_),l._readyState=ji.CLOSING,l._closeCode=o[qI],l.emit("error",o),l._socket.destroy()}function hC(){this[ta].emitClose()}function tb(o){this[ta].emit("message",o)}function nb(o){let l=this[ta];l.pong(o,!l._isServer,mC),l.emit("ping",o)}function rb(o){this[ta].emit("pong",o)}function _C(){let o=this[ta];this.removeListener("close",_C),this.removeListener("end",EC),o._readyState=ji.CLOSING,o._socket.read(),o._receiver.end(),this.removeListener("data",$_),this[ta]=void 0,clearTimeout(o._closeTimer),o._receiver._writableState.finished||o._receiver._writableState.errorEmitted?o.emitClose():(o._receiver.on("error",hC),o._receiver.on("finish",hC))}function $_(o){this[ta]._receiver.write(o)||this.pause()}function EC(){let o=this[ta];o._readyState=ji.CLOSING,o._receiver.end(),this.end()}function DC(){let o=this[ta];this.removeListener("error",DC),this.on("error",mC),o&&(o._readyState=ji.CLOSING,this.destroy())}});var xC=nt((nq,CC)=>{"use strict";var{Duplex:ib}=hi("stream");function SC(o){o.emit("close")}function ub(){!this.destroyed&&this._writableState.finished&&this.destroy()}function TC(o){this.removeListener("error",TC),this.destroy(),this.listenerCount("error")===0&&this.emit("error",o)}function ob(o,l){let f=!0;function h(){f&&o._socket.resume()}o.readyState===o.CONNECTING?o.once("open",function(){o._receiver.removeAllListeners("drain"),o._receiver.on("drain",h)}):(o._receiver.removeAllListeners("drain"),o._receiver.on("drain",h));let E=new ib({...l,autoDestroy:!1,emitClose:!1,objectMode:!1,writableObjectMode:!1});return o.on("message",function(N){E.push(N)||(f=!1,o._socket.pause())}),o.once("error",function(N){E.destroyed||E.destroy(N)}),o.once("close",function(){E.destroyed||E.push(null)}),E._destroy=function(t,N){if(o.readyState===o.CLOSED){N(t),process.nextTick(SC,E);return}let F=!1;o.once("error",function(x){F=!0,N(x)}),o.once("close",function(){F||N(t),process.nextTick(SC,E)}),o.terminate()},E._final=function(t){if(o.readyState===o.CONNECTING){o.once("open",function(){E._final(t)});return}o._socket!==null&&(o._socket._writableState.finished?(t(),E._readableState.endEmitted&&E.destroy()):(o._socket.once("finish",function(){t()}),o.close()))},E._read=function(){o.readyState===o.OPEN&&!f&&(f=!0,o._receiver._writableState.needDrain||o._socket.resume())},E._write=function(t,N,F){if(o.readyState===o.CONNECTING){o.once("open",function(){E._write(t,N,F)});return}o.send(t,F)},E.on("end",ub),E.on("error",TC),E}CC.exports=ob});var AC=nt((rq,RC)=>{"use strict";var lb=hi("events"),{createHash:sb}=hi("crypto"),{createServer:ab,STATUS_CODES:l3}=hi("http"),rh=rg(),fb=o3(),{format:db,parse:pb}=t3(),{GUID:hb,kWebSocket:vb}=th(),mb=/^[+/0-9A-Za-z]{22}==$/,s3=class extends lb{constructor(l,f){if(super(),l={maxPayload:100*1024*1024,perMessageDeflate:!1,handleProtocols:null,clientTracking:!0,verifyClient:null,noServer:!1,backlog:null,server:null,host:null,path:null,port:null,...l},l.port==null&&!l.server&&!l.noServer)throw new TypeError('One of the "port", "server", or "noServer" options must be specified');if(l.port!=null?(this._server=ab((h,E)=>{let t=l3[426];E.writeHead(426,{"Content-Length":t.length,"Content-Type":"text/plain"}),E.end(t)}),this._server.listen(l.port,l.host,l.backlog,f)):l.server&&(this._server=l.server),this._server){let h=this.emit.bind(this,"connection");this._removeListeners=yb(this._server,{listening:this.emit.bind(this,"listening"),error:this.emit.bind(this,"error"),upgrade:(E,t,N)=>{this.handleUpgrade(E,t,N,h)}})}l.perMessageDeflate===!0&&(l.perMessageDeflate={}),l.clientTracking&&(this.clients=new Set),this.options=l}address(){if(this.options.noServer)throw new Error('The server is operating in "noServer" mode');return this._server?this._server.address():null}close(l){if(l&&this.once("close",l),this.clients)for(let h of this.clients)h.terminate();let f=this._server;if(f&&(this._removeListeners(),this._removeListeners=this._server=null,this.options.port!=null)){f.close(()=>this.emit("close"));return}process.nextTick(gb,this)}shouldHandle(l){if(this.options.path){let f=l.url.indexOf("?");if((f!==-1?l.url.slice(0,f):l.url)!==this.options.path)return!1}return!0}handleUpgrade(l,f,h,E){f.on("error",a3);let t=l.headers["sec-websocket-key"]!==void 0?l.headers["sec-websocket-key"].trim():!1,N=+l.headers["sec-websocket-version"],F={};if(l.method!=="GET"||l.headers.upgrade.toLowerCase()!=="websocket"||!t||!mb.test(t)||N!==8&&N!==13||!this.shouldHandle(l))return e4(f,400);if(this.options.perMessageDeflate){let k=new rh(this.options.perMessageDeflate,!0,this.options.maxPayload);try{let x=pb(l.headers["sec-websocket-extensions"]);x[rh.extensionName]&&(k.accept(x[rh.extensionName]),F[rh.extensionName]=k)}catch{return e4(f,400)}}if(this.options.verifyClient){let k={origin:l.headers[`${N===8?"sec-websocket-origin":"origin"}`],secure:!!(l.socket.authorized||l.socket.encrypted),req:l};if(this.options.verifyClient.length===2){this.options.verifyClient(k,(x,j,q,V)=>{if(!x)return e4(f,j||401,q,V);this.completeUpgrade(t,F,l,f,h,E)});return}if(!this.options.verifyClient(k))return e4(f,401)}this.completeUpgrade(t,F,l,f,h,E)}completeUpgrade(l,f,h,E,t,N){if(!E.readable||!E.writable)return E.destroy();if(E[vb])throw new Error("server.handleUpgrade() was called more than once with the same socket, possibly due to a misconfiguration");let k=["HTTP/1.1 101 Switching Protocols","Upgrade: websocket","Connection: Upgrade",`Sec-WebSocket-Accept: ${sb("sha1").update(l+hb).digest("base64")}`],x=new fb(null),j=h.headers["sec-websocket-protocol"];if(j&&(j=j.split(",").map(_b),this.options.handleProtocols?j=this.options.handleProtocols(j,h):j=j[0],j&&(k.push(`Sec-WebSocket-Protocol: ${j}`),x._protocol=j)),f[rh.extensionName]){let q=f[rh.extensionName].params,V=db({[rh.extensionName]:[q]});k.push(`Sec-WebSocket-Extensions: ${V}`),x._extensions=f}this.emit("headers",k,h),E.write(k.concat(`\r +`).join(`\r +`)),E.removeListener("error",a3),x.setSocket(E,t,this.options.maxPayload),this.clients&&(this.clients.add(x),x.on("close",()=>this.clients.delete(x))),N(x,h)}};RC.exports=s3;function yb(o,l){for(let f of Object.keys(l))o.on(f,l[f]);return function(){for(let h of Object.keys(l))o.removeListener(h,l[h])}}function gb(o){o.emit("close")}function a3(){this.destroy()}function e4(o,l,f,h){o.writable&&(f=f||l3[l],h={Connection:"close","Content-Type":"text/html","Content-Length":Buffer.byteLength(f),...h},o.write(`HTTP/1.1 ${l} ${l3[l]}\r +`+Object.keys(h).map(E=>`${E}: ${h[E]}`).join(`\r +`)+`\r +\r +`+f)),o.removeListener("error",a3),o.destroy()}function _b(o){return o.trim()}});var MC=nt((iq,OC)=>{"use strict";var og=o3();og.createWebSocketStream=xC();og.Server=AC();og.Receiver=XD();og.Sender=QD();OC.exports=og});var kC=nt(t4=>{"use strict";var Eb=t4&&t4.__importDefault||function(o){return o&&o.__esModule?o:{default:o}};Object.defineProperty(t4,"__esModule",{value:!0});var Db=Eb(MC()),lg=global;lg.WebSocket||(lg.WebSocket=Db.default);lg.window||(lg.window=global);lg.window.__REACT_DEVTOOLS_COMPONENT_FILTERS__=[{type:1,value:7,isEnabled:!0},{type:2,value:"InternalApp",isEnabled:!0,isValid:!0},{type:2,value:"InternalAppContext",isEnabled:!0,isValid:!0},{type:2,value:"InternalStdoutContext",isEnabled:!0,isValid:!0},{type:2,value:"InternalStderrContext",isEnabled:!0,isValid:!0},{type:2,value:"InternalStdinContext",isEnabled:!0,isValid:!0},{type:2,value:"InternalFocusContext",isEnabled:!0,isValid:!0}]});var NC=nt((n4,f3)=>{(function(o,l){typeof n4=="object"&&typeof f3=="object"?f3.exports=l():typeof define=="function"&&define.amd?define([],l):typeof n4=="object"?n4.ReactDevToolsBackend=l():o.ReactDevToolsBackend=l()})(window,function(){return function(o){var l={};function f(h){if(l[h])return l[h].exports;var E=l[h]={i:h,l:!1,exports:{}};return o[h].call(E.exports,E,E.exports,f),E.l=!0,E.exports}return f.m=o,f.c=l,f.d=function(h,E,t){f.o(h,E)||Object.defineProperty(h,E,{enumerable:!0,get:t})},f.r=function(h){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(h,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(h,"__esModule",{value:!0})},f.t=function(h,E){if(1&E&&(h=f(h)),8&E||4&E&&typeof h=="object"&&h&&h.__esModule)return h;var t=Object.create(null);if(f.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:h}),2&E&&typeof h!="string")for(var N in h)f.d(t,N,function(F){return h[F]}.bind(null,N));return t},f.n=function(h){var E=h&&h.__esModule?function(){return h.default}:function(){return h};return f.d(E,"a",E),E},f.o=function(h,E){return Object.prototype.hasOwnProperty.call(h,E)},f.p="",f(f.s=20)}([function(o,l,f){"use strict";o.exports=f(12)},function(o,l,f){"use strict";var h=Object.getOwnPropertySymbols,E=Object.prototype.hasOwnProperty,t=Object.prototype.propertyIsEnumerable;function N(F){if(F==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(F)}o.exports=function(){try{if(!Object.assign)return!1;var F=new String("abc");if(F[5]="de",Object.getOwnPropertyNames(F)[0]==="5")return!1;for(var k={},x=0;x<10;x++)k["_"+String.fromCharCode(x)]=x;if(Object.getOwnPropertyNames(k).map(function(q){return k[q]}).join("")!=="0123456789")return!1;var j={};return"abcdefghijklmnopqrst".split("").forEach(function(q){j[q]=q}),Object.keys(Object.assign({},j)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}()?Object.assign:function(F,k){for(var x,j,q=N(F),V=1;V"u"?"undefined":E(self))=="object"&&self&&self.Object===Object&&self,V=j||q||Function("return this")(),re=Object.prototype.toString,y=Math.max,me=Math.min,De=function(){return V.Date.now()};function ge(ve,ue,Ae){var ze,We,gt,_t,Qe,ot,Ve=0,Pt=!1,Jt=!1,it=!0;if(typeof ve!="function")throw new TypeError("Expected a function");function J(At){var nn=ze,an=We;return ze=We=void 0,Ve=At,_t=ve.apply(an,nn)}function ce(At){return Ve=At,Qe=setTimeout(le,ue),Pt?J(At):_t}function Re(At){var nn=At-ot;return ot===void 0||nn>=ue||nn<0||Jt&&At-Ve>=gt}function le(){var At=De();if(Re(At))return He(At);Qe=setTimeout(le,function(nn){var an=ue-(nn-ot);return Jt?me(an,gt-(nn-Ve)):an}(At))}function He(At){return Qe=void 0,it&&ze?J(At):(ze=We=void 0,_t)}function dt(){var At=De(),nn=Re(At);if(ze=arguments,We=this,ot=At,nn){if(Qe===void 0)return ce(ot);if(Jt)return Qe=setTimeout(le,ue),J(ot)}return Qe===void 0&&(Qe=setTimeout(le,ue)),_t}return ue=he(ue)||0,ae(Ae)&&(Pt=!!Ae.leading,gt=(Jt="maxWait"in Ae)?y(he(Ae.maxWait)||0,ue):gt,it="trailing"in Ae?!!Ae.trailing:it),dt.cancel=function(){Qe!==void 0&&clearTimeout(Qe),Ve=0,ze=ot=We=Qe=void 0},dt.flush=function(){return Qe===void 0?_t:He(De())},dt}function ae(ve){var ue=E(ve);return!!ve&&(ue=="object"||ue=="function")}function we(ve){return E(ve)=="symbol"||function(ue){return!!ue&&E(ue)=="object"}(ve)&&re.call(ve)=="[object Symbol]"}function he(ve){if(typeof ve=="number")return ve;if(we(ve))return NaN;if(ae(ve)){var ue=typeof ve.valueOf=="function"?ve.valueOf():ve;ve=ae(ue)?ue+"":ue}if(typeof ve!="string")return ve===0?ve:+ve;ve=ve.replace(t,"");var Ae=F.test(ve);return Ae||k.test(ve)?x(ve.slice(2),Ae?2:8):N.test(ve)?NaN:+ve}o.exports=function(ve,ue,Ae){var ze=!0,We=!0;if(typeof ve!="function")throw new TypeError("Expected a function");return ae(Ae)&&(ze="leading"in Ae?!!Ae.leading:ze,We="trailing"in Ae?!!Ae.trailing:We),ge(ve,ue,{leading:ze,maxWait:ue,trailing:We})}}).call(this,f(4))},function(o,l,f){(function(h){function E(J){return(E=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(ce){return typeof ce}:function(ce){return ce&&typeof Symbol=="function"&&ce.constructor===Symbol&&ce!==Symbol.prototype?"symbol":typeof ce})(J)}var t;l=o.exports=y,t=(h===void 0?"undefined":E(h))==="object"&&h.env&&h.env.NODE_DEBUG&&/\bsemver\b/i.test(h.env.NODE_DEBUG)?function(){var J=Array.prototype.slice.call(arguments,0);J.unshift("SEMVER"),console.log.apply(console,J)}:function(){},l.SEMVER_SPEC_VERSION="2.0.0";var N=Number.MAX_SAFE_INTEGER||9007199254740991,F=l.re=[],k=l.src=[],x=l.tokens={},j=0;function q(J){x[J]=j++}q("NUMERICIDENTIFIER"),k[x.NUMERICIDENTIFIER]="0|[1-9]\\d*",q("NUMERICIDENTIFIERLOOSE"),k[x.NUMERICIDENTIFIERLOOSE]="[0-9]+",q("NONNUMERICIDENTIFIER"),k[x.NONNUMERICIDENTIFIER]="\\d*[a-zA-Z-][a-zA-Z0-9-]*",q("MAINVERSION"),k[x.MAINVERSION]="("+k[x.NUMERICIDENTIFIER]+")\\.("+k[x.NUMERICIDENTIFIER]+")\\.("+k[x.NUMERICIDENTIFIER]+")",q("MAINVERSIONLOOSE"),k[x.MAINVERSIONLOOSE]="("+k[x.NUMERICIDENTIFIERLOOSE]+")\\.("+k[x.NUMERICIDENTIFIERLOOSE]+")\\.("+k[x.NUMERICIDENTIFIERLOOSE]+")",q("PRERELEASEIDENTIFIER"),k[x.PRERELEASEIDENTIFIER]="(?:"+k[x.NUMERICIDENTIFIER]+"|"+k[x.NONNUMERICIDENTIFIER]+")",q("PRERELEASEIDENTIFIERLOOSE"),k[x.PRERELEASEIDENTIFIERLOOSE]="(?:"+k[x.NUMERICIDENTIFIERLOOSE]+"|"+k[x.NONNUMERICIDENTIFIER]+")",q("PRERELEASE"),k[x.PRERELEASE]="(?:-("+k[x.PRERELEASEIDENTIFIER]+"(?:\\."+k[x.PRERELEASEIDENTIFIER]+")*))",q("PRERELEASELOOSE"),k[x.PRERELEASELOOSE]="(?:-?("+k[x.PRERELEASEIDENTIFIERLOOSE]+"(?:\\."+k[x.PRERELEASEIDENTIFIERLOOSE]+")*))",q("BUILDIDENTIFIER"),k[x.BUILDIDENTIFIER]="[0-9A-Za-z-]+",q("BUILD"),k[x.BUILD]="(?:\\+("+k[x.BUILDIDENTIFIER]+"(?:\\."+k[x.BUILDIDENTIFIER]+")*))",q("FULL"),q("FULLPLAIN"),k[x.FULLPLAIN]="v?"+k[x.MAINVERSION]+k[x.PRERELEASE]+"?"+k[x.BUILD]+"?",k[x.FULL]="^"+k[x.FULLPLAIN]+"$",q("LOOSEPLAIN"),k[x.LOOSEPLAIN]="[v=\\s]*"+k[x.MAINVERSIONLOOSE]+k[x.PRERELEASELOOSE]+"?"+k[x.BUILD]+"?",q("LOOSE"),k[x.LOOSE]="^"+k[x.LOOSEPLAIN]+"$",q("GTLT"),k[x.GTLT]="((?:<|>)?=?)",q("XRANGEIDENTIFIERLOOSE"),k[x.XRANGEIDENTIFIERLOOSE]=k[x.NUMERICIDENTIFIERLOOSE]+"|x|X|\\*",q("XRANGEIDENTIFIER"),k[x.XRANGEIDENTIFIER]=k[x.NUMERICIDENTIFIER]+"|x|X|\\*",q("XRANGEPLAIN"),k[x.XRANGEPLAIN]="[v=\\s]*("+k[x.XRANGEIDENTIFIER]+")(?:\\.("+k[x.XRANGEIDENTIFIER]+")(?:\\.("+k[x.XRANGEIDENTIFIER]+")(?:"+k[x.PRERELEASE]+")?"+k[x.BUILD]+"?)?)?",q("XRANGEPLAINLOOSE"),k[x.XRANGEPLAINLOOSE]="[v=\\s]*("+k[x.XRANGEIDENTIFIERLOOSE]+")(?:\\.("+k[x.XRANGEIDENTIFIERLOOSE]+")(?:\\.("+k[x.XRANGEIDENTIFIERLOOSE]+")(?:"+k[x.PRERELEASELOOSE]+")?"+k[x.BUILD]+"?)?)?",q("XRANGE"),k[x.XRANGE]="^"+k[x.GTLT]+"\\s*"+k[x.XRANGEPLAIN]+"$",q("XRANGELOOSE"),k[x.XRANGELOOSE]="^"+k[x.GTLT]+"\\s*"+k[x.XRANGEPLAINLOOSE]+"$",q("COERCE"),k[x.COERCE]="(^|[^\\d])(\\d{1,16})(?:\\.(\\d{1,16}))?(?:\\.(\\d{1,16}))?(?:$|[^\\d])",q("COERCERTL"),F[x.COERCERTL]=new RegExp(k[x.COERCE],"g"),q("LONETILDE"),k[x.LONETILDE]="(?:~>?)",q("TILDETRIM"),k[x.TILDETRIM]="(\\s*)"+k[x.LONETILDE]+"\\s+",F[x.TILDETRIM]=new RegExp(k[x.TILDETRIM],"g"),q("TILDE"),k[x.TILDE]="^"+k[x.LONETILDE]+k[x.XRANGEPLAIN]+"$",q("TILDELOOSE"),k[x.TILDELOOSE]="^"+k[x.LONETILDE]+k[x.XRANGEPLAINLOOSE]+"$",q("LONECARET"),k[x.LONECARET]="(?:\\^)",q("CARETTRIM"),k[x.CARETTRIM]="(\\s*)"+k[x.LONECARET]+"\\s+",F[x.CARETTRIM]=new RegExp(k[x.CARETTRIM],"g"),q("CARET"),k[x.CARET]="^"+k[x.LONECARET]+k[x.XRANGEPLAIN]+"$",q("CARETLOOSE"),k[x.CARETLOOSE]="^"+k[x.LONECARET]+k[x.XRANGEPLAINLOOSE]+"$",q("COMPARATORLOOSE"),k[x.COMPARATORLOOSE]="^"+k[x.GTLT]+"\\s*("+k[x.LOOSEPLAIN]+")$|^$",q("COMPARATOR"),k[x.COMPARATOR]="^"+k[x.GTLT]+"\\s*("+k[x.FULLPLAIN]+")$|^$",q("COMPARATORTRIM"),k[x.COMPARATORTRIM]="(\\s*)"+k[x.GTLT]+"\\s*("+k[x.LOOSEPLAIN]+"|"+k[x.XRANGEPLAIN]+")",F[x.COMPARATORTRIM]=new RegExp(k[x.COMPARATORTRIM],"g"),q("HYPHENRANGE"),k[x.HYPHENRANGE]="^\\s*("+k[x.XRANGEPLAIN]+")\\s+-\\s+("+k[x.XRANGEPLAIN]+")\\s*$",q("HYPHENRANGELOOSE"),k[x.HYPHENRANGELOOSE]="^\\s*("+k[x.XRANGEPLAINLOOSE]+")\\s+-\\s+("+k[x.XRANGEPLAINLOOSE]+")\\s*$",q("STAR"),k[x.STAR]="(<|>)?=?\\s*\\*";for(var V=0;V256||!(ce.loose?F[x.LOOSE]:F[x.FULL]).test(J))return null;try{return new y(J,ce)}catch{return null}}function y(J,ce){if(ce&&E(ce)==="object"||(ce={loose:!!ce,includePrerelease:!1}),J instanceof y){if(J.loose===ce.loose)return J;J=J.version}else if(typeof J!="string")throw new TypeError("Invalid Version: "+J);if(J.length>256)throw new TypeError("version is longer than 256 characters");if(!(this instanceof y))return new y(J,ce);t("SemVer",J,ce),this.options=ce,this.loose=!!ce.loose;var Re=J.trim().match(ce.loose?F[x.LOOSE]:F[x.FULL]);if(!Re)throw new TypeError("Invalid Version: "+J);if(this.raw=J,this.major=+Re[1],this.minor=+Re[2],this.patch=+Re[3],this.major>N||this.major<0)throw new TypeError("Invalid major version");if(this.minor>N||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>N||this.patch<0)throw new TypeError("Invalid patch version");Re[4]?this.prerelease=Re[4].split(".").map(function(le){if(/^[0-9]+$/.test(le)){var He=+le;if(He>=0&&He=0;)typeof this.prerelease[Re]=="number"&&(this.prerelease[Re]++,Re=-2);Re===-1&&this.prerelease.push(0)}ce&&(this.prerelease[0]===ce?isNaN(this.prerelease[1])&&(this.prerelease=[ce,0]):this.prerelease=[ce,0]);break;default:throw new Error("invalid increment argument: "+J)}return this.format(),this.raw=this.version,this},l.inc=function(J,ce,Re,le){typeof Re=="string"&&(le=Re,Re=void 0);try{return new y(J,Re).inc(ce,le).version}catch{return null}},l.diff=function(J,ce){if(he(J,ce))return null;var Re=re(J),le=re(ce),He="";if(Re.prerelease.length||le.prerelease.length){He="pre";var dt="prerelease"}for(var At in Re)if((At==="major"||At==="minor"||At==="patch")&&Re[At]!==le[At])return He+At;return dt},l.compareIdentifiers=De;var me=/^[0-9]+$/;function De(J,ce){var Re=me.test(J),le=me.test(ce);return Re&&le&&(J=+J,ce=+ce),J===ce?0:Re&&!le?-1:le&&!Re?1:J0}function we(J,ce,Re){return ge(J,ce,Re)<0}function he(J,ce,Re){return ge(J,ce,Re)===0}function ve(J,ce,Re){return ge(J,ce,Re)!==0}function ue(J,ce,Re){return ge(J,ce,Re)>=0}function Ae(J,ce,Re){return ge(J,ce,Re)<=0}function ze(J,ce,Re,le){switch(ce){case"===":return E(J)==="object"&&(J=J.version),E(Re)==="object"&&(Re=Re.version),J===Re;case"!==":return E(J)==="object"&&(J=J.version),E(Re)==="object"&&(Re=Re.version),J!==Re;case"":case"=":case"==":return he(J,Re,le);case"!=":return ve(J,Re,le);case">":return ae(J,Re,le);case">=":return ue(J,Re,le);case"<":return we(J,Re,le);case"<=":return Ae(J,Re,le);default:throw new TypeError("Invalid operator: "+ce)}}function We(J,ce){if(ce&&E(ce)==="object"||(ce={loose:!!ce,includePrerelease:!1}),J instanceof We){if(J.loose===!!ce.loose)return J;J=J.value}if(!(this instanceof We))return new We(J,ce);t("comparator",J,ce),this.options=ce,this.loose=!!ce.loose,this.parse(J),this.semver===gt?this.value="":this.value=this.operator+this.semver.version,t("comp",this)}l.rcompareIdentifiers=function(J,ce){return De(ce,J)},l.major=function(J,ce){return new y(J,ce).major},l.minor=function(J,ce){return new y(J,ce).minor},l.patch=function(J,ce){return new y(J,ce).patch},l.compare=ge,l.compareLoose=function(J,ce){return ge(J,ce,!0)},l.compareBuild=function(J,ce,Re){var le=new y(J,Re),He=new y(ce,Re);return le.compare(He)||le.compareBuild(He)},l.rcompare=function(J,ce,Re){return ge(ce,J,Re)},l.sort=function(J,ce){return J.sort(function(Re,le){return l.compareBuild(Re,le,ce)})},l.rsort=function(J,ce){return J.sort(function(Re,le){return l.compareBuild(le,Re,ce)})},l.gt=ae,l.lt=we,l.eq=he,l.neq=ve,l.gte=ue,l.lte=Ae,l.cmp=ze,l.Comparator=We;var gt={};function _t(J,ce){if(ce&&E(ce)==="object"||(ce={loose:!!ce,includePrerelease:!1}),J instanceof _t)return J.loose===!!ce.loose&&J.includePrerelease===!!ce.includePrerelease?J:new _t(J.raw,ce);if(J instanceof We)return new _t(J.value,ce);if(!(this instanceof _t))return new _t(J,ce);if(this.options=ce,this.loose=!!ce.loose,this.includePrerelease=!!ce.includePrerelease,this.raw=J,this.set=J.split(/\s*\|\|\s*/).map(function(Re){return this.parseRange(Re.trim())},this).filter(function(Re){return Re.length}),!this.set.length)throw new TypeError("Invalid SemVer Range: "+J);this.format()}function Qe(J,ce){for(var Re=!0,le=J.slice(),He=le.pop();Re&&le.length;)Re=le.every(function(dt){return He.intersects(dt,ce)}),He=le.pop();return Re}function ot(J){return!J||J.toLowerCase()==="x"||J==="*"}function Ve(J,ce,Re,le,He,dt,At,nn,an,On,lr,ln,Vt){return((ce=ot(Re)?"":ot(le)?">="+Re+".0.0":ot(He)?">="+Re+"."+le+".0":">="+ce)+" "+(nn=ot(an)?"":ot(On)?"<"+(+an+1)+".0.0":ot(lr)?"<"+an+"."+(+On+1)+".0":ln?"<="+an+"."+On+"."+lr+"-"+ln:"<="+nn)).trim()}function Pt(J,ce,Re){for(var le=0;le0){var He=J[le].semver;if(He.major===ce.major&&He.minor===ce.minor&&He.patch===ce.patch)return!0}return!1}return!0}function Jt(J,ce,Re){try{ce=new _t(ce,Re)}catch{return!1}return ce.test(J)}function it(J,ce,Re,le){var He,dt,At,nn,an;switch(J=new y(J,le),ce=new _t(ce,le),Re){case">":He=ae,dt=Ae,At=we,nn=">",an=">=";break;case"<":He=we,dt=ue,At=ae,nn="<",an="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(Jt(J,ce,le))return!1;for(var On=0;On=0.0.0")),ln=ln||Er,Vt=Vt||Er,He(Er.semver,ln.semver,le)?ln=Er:At(Er.semver,Vt.semver,le)&&(Vt=Er)}),ln.operator===nn||ln.operator===an||(!Vt.operator||Vt.operator===nn)&&dt(J,Vt.semver)||Vt.operator===an&&At(J,Vt.semver))return!1}return!0}We.prototype.parse=function(J){var ce=this.options.loose?F[x.COMPARATORLOOSE]:F[x.COMPARATOR],Re=J.match(ce);if(!Re)throw new TypeError("Invalid comparator: "+J);this.operator=Re[1]!==void 0?Re[1]:"",this.operator==="="&&(this.operator=""),Re[2]?this.semver=new y(Re[2],this.options.loose):this.semver=gt},We.prototype.toString=function(){return this.value},We.prototype.test=function(J){if(t("Comparator.test",J,this.options.loose),this.semver===gt||J===gt)return!0;if(typeof J=="string")try{J=new y(J,this.options)}catch{return!1}return ze(J,this.operator,this.semver,this.options)},We.prototype.intersects=function(J,ce){if(!(J instanceof We))throw new TypeError("a Comparator is required");var Re;if(ce&&E(ce)==="object"||(ce={loose:!!ce,includePrerelease:!1}),this.operator==="")return this.value===""||(Re=new _t(J.value,ce),Jt(this.value,Re,ce));if(J.operator==="")return J.value===""||(Re=new _t(this.value,ce),Jt(J.semver,Re,ce));var le=!(this.operator!==">="&&this.operator!==">"||J.operator!==">="&&J.operator!==">"),He=!(this.operator!=="<="&&this.operator!=="<"||J.operator!=="<="&&J.operator!=="<"),dt=this.semver.version===J.semver.version,At=!(this.operator!==">="&&this.operator!=="<="||J.operator!==">="&&J.operator!=="<="),nn=ze(this.semver,"<",J.semver,ce)&&(this.operator===">="||this.operator===">")&&(J.operator==="<="||J.operator==="<"),an=ze(this.semver,">",J.semver,ce)&&(this.operator==="<="||this.operator==="<")&&(J.operator===">="||J.operator===">");return le||He||dt&&At||nn||an},l.Range=_t,_t.prototype.format=function(){return this.range=this.set.map(function(J){return J.join(" ").trim()}).join("||").trim(),this.range},_t.prototype.toString=function(){return this.range},_t.prototype.parseRange=function(J){var ce=this.options.loose;J=J.trim();var Re=ce?F[x.HYPHENRANGELOOSE]:F[x.HYPHENRANGE];J=J.replace(Re,Ve),t("hyphen replace",J),J=J.replace(F[x.COMPARATORTRIM],"$1$2$3"),t("comparator trim",J,F[x.COMPARATORTRIM]),J=(J=(J=J.replace(F[x.TILDETRIM],"$1~")).replace(F[x.CARETTRIM],"$1^")).split(/\s+/).join(" ");var le=ce?F[x.COMPARATORLOOSE]:F[x.COMPARATOR],He=J.split(" ").map(function(dt){return function(At,nn){return t("comp",At,nn),At=function(an,On){return an.trim().split(/\s+/).map(function(lr){return function(ln,Vt){t("caret",ln,Vt);var Er=Vt.loose?F[x.CARETLOOSE]:F[x.CARET];return ln.replace(Er,function(S,zt,Xn,vr,jr){var fr;return t("caret",ln,S,zt,Xn,vr,jr),ot(zt)?fr="":ot(Xn)?fr=">="+zt+".0.0 <"+(+zt+1)+".0.0":ot(vr)?fr=zt==="0"?">="+zt+"."+Xn+".0 <"+zt+"."+(+Xn+1)+".0":">="+zt+"."+Xn+".0 <"+(+zt+1)+".0.0":jr?(t("replaceCaret pr",jr),fr=zt==="0"?Xn==="0"?">="+zt+"."+Xn+"."+vr+"-"+jr+" <"+zt+"."+Xn+"."+(+vr+1):">="+zt+"."+Xn+"."+vr+"-"+jr+" <"+zt+"."+(+Xn+1)+".0":">="+zt+"."+Xn+"."+vr+"-"+jr+" <"+(+zt+1)+".0.0"):(t("no pr"),fr=zt==="0"?Xn==="0"?">="+zt+"."+Xn+"."+vr+" <"+zt+"."+Xn+"."+(+vr+1):">="+zt+"."+Xn+"."+vr+" <"+zt+"."+(+Xn+1)+".0":">="+zt+"."+Xn+"."+vr+" <"+(+zt+1)+".0.0"),t("caret return",fr),fr})}(lr,On)}).join(" ")}(At,nn),t("caret",At),At=function(an,On){return an.trim().split(/\s+/).map(function(lr){return function(ln,Vt){var Er=Vt.loose?F[x.TILDELOOSE]:F[x.TILDE];return ln.replace(Er,function(S,zt,Xn,vr,jr){var fr;return t("tilde",ln,S,zt,Xn,vr,jr),ot(zt)?fr="":ot(Xn)?fr=">="+zt+".0.0 <"+(+zt+1)+".0.0":ot(vr)?fr=">="+zt+"."+Xn+".0 <"+zt+"."+(+Xn+1)+".0":jr?(t("replaceTilde pr",jr),fr=">="+zt+"."+Xn+"."+vr+"-"+jr+" <"+zt+"."+(+Xn+1)+".0"):fr=">="+zt+"."+Xn+"."+vr+" <"+zt+"."+(+Xn+1)+".0",t("tilde return",fr),fr})}(lr,On)}).join(" ")}(At,nn),t("tildes",At),At=function(an,On){return t("replaceXRanges",an,On),an.split(/\s+/).map(function(lr){return function(ln,Vt){ln=ln.trim();var Er=Vt.loose?F[x.XRANGELOOSE]:F[x.XRANGE];return ln.replace(Er,function(S,zt,Xn,vr,jr,fr){t("xRange",ln,S,zt,Xn,vr,jr,fr);var zr=ot(Xn),Xt=zr||ot(vr),Du=Xt||ot(jr),c0=Du;return zt==="="&&c0&&(zt=""),fr=Vt.includePrerelease?"-0":"",zr?S=zt===">"||zt==="<"?"<0.0.0-0":"*":zt&&c0?(Xt&&(vr=0),jr=0,zt===">"?(zt=">=",Xt?(Xn=+Xn+1,vr=0,jr=0):(vr=+vr+1,jr=0)):zt==="<="&&(zt="<",Xt?Xn=+Xn+1:vr=+vr+1),S=zt+Xn+"."+vr+"."+jr+fr):Xt?S=">="+Xn+".0.0"+fr+" <"+(+Xn+1)+".0.0"+fr:Du&&(S=">="+Xn+"."+vr+".0"+fr+" <"+Xn+"."+(+vr+1)+".0"+fr),t("xRange return",S),S})}(lr,On)}).join(" ")}(At,nn),t("xrange",At),At=function(an,On){return t("replaceStars",an,On),an.trim().replace(F[x.STAR],"")}(At,nn),t("stars",At),At}(dt,this.options)},this).join(" ").split(/\s+/);return this.options.loose&&(He=He.filter(function(dt){return!!dt.match(le)})),He=He.map(function(dt){return new We(dt,this.options)},this)},_t.prototype.intersects=function(J,ce){if(!(J instanceof _t))throw new TypeError("a Range is required");return this.set.some(function(Re){return Qe(Re,ce)&&J.set.some(function(le){return Qe(le,ce)&&Re.every(function(He){return le.every(function(dt){return He.intersects(dt,ce)})})})})},l.toComparators=function(J,ce){return new _t(J,ce).set.map(function(Re){return Re.map(function(le){return le.value}).join(" ").trim().split(" ")})},_t.prototype.test=function(J){if(!J)return!1;if(typeof J=="string")try{J=new y(J,this.options)}catch{return!1}for(var ce=0;ce":dt.prerelease.length===0?dt.patch++:dt.prerelease.push(0),dt.raw=dt.format();case"":case">=":Re&&!ae(Re,dt)||(Re=dt);break;case"<":case"<=":break;default:throw new Error("Unexpected operation: "+He.operator)}});return Re&&J.test(Re)?Re:null},l.validRange=function(J,ce){try{return new _t(J,ce).range||"*"}catch{return null}},l.ltr=function(J,ce,Re){return it(J,ce,"<",Re)},l.gtr=function(J,ce,Re){return it(J,ce,">",Re)},l.outside=it,l.prerelease=function(J,ce){var Re=re(J,ce);return Re&&Re.prerelease.length?Re.prerelease:null},l.intersects=function(J,ce,Re){return J=new _t(J,Re),ce=new _t(ce,Re),J.intersects(ce)},l.coerce=function(J,ce){if(J instanceof y)return J;if(typeof J=="number"&&(J=String(J)),typeof J!="string")return null;var Re=null;if((ce=ce||{}).rtl){for(var le;(le=F[x.COERCERTL].exec(J))&&(!Re||Re.index+Re[0].length!==J.length);)Re&&le.index+le[0].length===Re.index+Re[0].length||(Re=le),F[x.COERCERTL].lastIndex=le.index+le[1].length+le[2].length;F[x.COERCERTL].lastIndex=-1}else Re=J.match(F[x.COERCE]);return Re===null?null:re(Re[2]+"."+(Re[3]||"0")+"."+(Re[4]||"0"),ce)}}).call(this,f(5))},function(o,l){function f(E){return(f=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(E)}var h;h=function(){return this}();try{h=h||new Function("return this")()}catch{(typeof window>"u"?"undefined":f(window))==="object"&&(h=window)}o.exports=h},function(o,l){var f,h,E=o.exports={};function t(){throw new Error("setTimeout has not been defined")}function N(){throw new Error("clearTimeout has not been defined")}function F(De){if(f===setTimeout)return setTimeout(De,0);if((f===t||!f)&&setTimeout)return f=setTimeout,setTimeout(De,0);try{return f(De,0)}catch{try{return f.call(null,De,0)}catch{return f.call(this,De,0)}}}(function(){try{f=typeof setTimeout=="function"?setTimeout:t}catch{f=t}try{h=typeof clearTimeout=="function"?clearTimeout:N}catch{h=N}})();var k,x=[],j=!1,q=-1;function V(){j&&k&&(j=!1,k.length?x=k.concat(x):q=-1,x.length&&re())}function re(){if(!j){var De=F(V);j=!0;for(var ge=x.length;ge;){for(k=x,x=[];++q1)for(var ae=1;aethis[N])return ve(this,this[y].get(Qe)),!1;var it=this[y].get(Qe).value;return this[q]&&(this[V]||this[q](Qe,it.value)),it.now=Pt,it.maxAge=Ve,it.value=ot,this[F]+=Jt-it.length,it.length=Jt,this.get(Qe),he(this),!0}var J=new ue(Qe,ot,Jt,Pt,Ve);return J.length>this[N]?(this[q]&&this[q](Qe,ot),!1):(this[F]+=J.length,this[re].unshift(J),this[y].set(Qe,this[re].head),he(this),!0)}},{key:"has",value:function(Qe){if(!this[y].has(Qe))return!1;var ot=this[y].get(Qe).value;return!we(this,ot)}},{key:"get",value:function(Qe){return ae(this,Qe,!0)}},{key:"peek",value:function(Qe){return ae(this,Qe,!1)}},{key:"pop",value:function(){var Qe=this[re].tail;return Qe?(ve(this,Qe),Qe.value):null}},{key:"del",value:function(Qe){ve(this,this[y].get(Qe))}},{key:"load",value:function(Qe){this.reset();for(var ot=Date.now(),Ve=Qe.length-1;Ve>=0;Ve--){var Pt=Qe[Ve],Jt=Pt.e||0;if(Jt===0)this.set(Pt.k,Pt.v);else{var it=Jt-ot;it>0&&this.set(Pt.k,Pt.v,it)}}}},{key:"prune",value:function(){var Qe=this;this[y].forEach(function(ot,Ve){return ae(Qe,Ve,!1)})}},{key:"max",set:function(Qe){if(typeof Qe!="number"||Qe<0)throw new TypeError("max must be a non-negative number");this[N]=Qe||1/0,he(this)},get:function(){return this[N]}},{key:"allowStale",set:function(Qe){this[x]=!!Qe},get:function(){return this[x]}},{key:"maxAge",set:function(Qe){if(typeof Qe!="number")throw new TypeError("maxAge must be a non-negative number");this[j]=Qe,he(this)},get:function(){return this[j]}},{key:"lengthCalculator",set:function(Qe){var ot=this;typeof Qe!="function"&&(Qe=De),Qe!==this[k]&&(this[k]=Qe,this[F]=0,this[re].forEach(function(Ve){Ve.length=ot[k](Ve.value,Ve.key),ot[F]+=Ve.length})),he(this)},get:function(){return this[k]}},{key:"length",get:function(){return this[F]}},{key:"itemCount",get:function(){return this[re].length}}])&&E(We.prototype,gt),_t&&E(We,_t),ze}(),ae=function(ze,We,gt){var _t=ze[y].get(We);if(_t){var Qe=_t.value;if(we(ze,Qe)){if(ve(ze,_t),!ze[x])return}else gt&&(ze[me]&&(_t.value.now=Date.now()),ze[re].unshiftNode(_t));return Qe.value}},we=function(ze,We){if(!We||!We.maxAge&&!ze[j])return!1;var gt=Date.now()-We.now;return We.maxAge?gt>We.maxAge:ze[j]&>>ze[j]},he=function(ze){if(ze[F]>ze[N])for(var We=ze[re].tail;ze[F]>ze[N]&&We!==null;){var gt=We.prev;ve(ze,We),We=gt}},ve=function(ze,We){if(We){var gt=We.value;ze[q]&&ze[q](gt.key,gt.value),ze[F]-=gt.length,ze[y].delete(gt.key),ze[re].removeNode(We)}},ue=function ze(We,gt,_t,Qe,ot){h(this,ze),this.key=We,this.value=gt,this.length=_t,this.now=Qe,this.maxAge=ot||0},Ae=function(ze,We,gt,_t){var Qe=gt.value;we(ze,Qe)&&(ve(ze,gt),ze[x]||(Qe=void 0)),Qe&&We.call(_t,Qe.value,Qe.key,ze)};o.exports=ge},function(o,l,f){(function(h){function E(t){return(E=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(N){return typeof N}:function(N){return N&&typeof Symbol=="function"&&N.constructor===Symbol&&N!==Symbol.prototype?"symbol":typeof N})(t)}o.exports=function(){if(typeof document>"u"||!document.addEventListener)return null;var t,N,F,k={};return k.copy=function(){var x=!1,j=null,q=!1;function V(){x=!1,j=null,q&&window.getSelection().removeAllRanges(),q=!1}return document.addEventListener("copy",function(re){if(x){for(var y in j)re.clipboardData.setData(y,j[y]);re.preventDefault()}}),function(re){return new Promise(function(y,me){x=!0,typeof re=="string"?j={"text/plain":re}:re instanceof Node?j={"text/html":new XMLSerializer().serializeToString(re)}:re instanceof Object?j=re:me("Invalid data type. Must be string, DOM node, or an object mapping MIME types to strings."),function De(ge){try{if(document.execCommand("copy"))V(),y();else{if(ge)throw V(),new Error("Unable to copy. Perhaps it's not available in your browser?");(function(){var ae=document.getSelection();if(!document.queryCommandEnabled("copy")&&ae.isCollapsed){var we=document.createRange();we.selectNodeContents(document.body),ae.removeAllRanges(),ae.addRange(we),q=!0}})(),De(!0)}}catch(ae){V(),me(ae)}}(!1)})}}(),k.paste=(F=!1,document.addEventListener("paste",function(x){if(F){F=!1,x.preventDefault();var j=t;t=null,j(x.clipboardData.getData(N))}}),function(x){return new Promise(function(j,q){F=!0,t=j,N=x||"text/plain";try{document.execCommand("paste")||(F=!1,q(new Error("Unable to paste. Pasting only works in Internet Explorer at the moment.")))}catch(V){F=!1,q(new Error(V))}})}),typeof ClipboardEvent>"u"&&window.clipboardData!==void 0&&window.clipboardData.setData!==void 0&&(function(x){function j(he,ve){return function(){he.apply(ve,arguments)}}function q(he){if(E(this)!="object")throw new TypeError("Promises must be constructed via new");if(typeof he!="function")throw new TypeError("not a function");this._state=null,this._value=null,this._deferreds=[],ge(he,j(re,this),j(y,this))}function V(he){var ve=this;return this._state===null?void this._deferreds.push(he):void ae(function(){var ue=ve._state?he.onFulfilled:he.onRejected;if(ue!==null){var Ae;try{Ae=ue(ve._value)}catch(ze){return void he.reject(ze)}he.resolve(Ae)}else(ve._state?he.resolve:he.reject)(ve._value)})}function re(he){try{if(he===this)throw new TypeError("A promise cannot be resolved with itself.");if(he&&(E(he)=="object"||typeof he=="function")){var ve=he.then;if(typeof ve=="function")return void ge(j(ve,he),j(re,this),j(y,this))}this._state=!0,this._value=he,me.call(this)}catch(ue){y.call(this,ue)}}function y(he){this._state=!1,this._value=he,me.call(this)}function me(){for(var he=0,ve=this._deferreds.length;ve>he;he++)V.call(this,this._deferreds[he]);this._deferreds=null}function De(he,ve,ue,Ae){this.onFulfilled=typeof he=="function"?he:null,this.onRejected=typeof ve=="function"?ve:null,this.resolve=ue,this.reject=Ae}function ge(he,ve,ue){var Ae=!1;try{he(function(ze){Ae||(Ae=!0,ve(ze))},function(ze){Ae||(Ae=!0,ue(ze))})}catch(ze){if(Ae)return;Ae=!0,ue(ze)}}var ae=q.immediateFn||typeof h=="function"&&h||function(he){setTimeout(he,1)},we=Array.isArray||function(he){return Object.prototype.toString.call(he)==="[object Array]"};q.prototype.catch=function(he){return this.then(null,he)},q.prototype.then=function(he,ve){var ue=this;return new q(function(Ae,ze){V.call(ue,new De(he,ve,Ae,ze))})},q.all=function(){var he=Array.prototype.slice.call(arguments.length===1&&we(arguments[0])?arguments[0]:arguments);return new q(function(ve,ue){function Ae(gt,_t){try{if(_t&&(E(_t)=="object"||typeof _t=="function")){var Qe=_t.then;if(typeof Qe=="function")return void Qe.call(_t,function(ot){Ae(gt,ot)},ue)}he[gt]=_t,--ze==0&&ve(he)}catch(ot){ue(ot)}}if(he.length===0)return ve([]);for(var ze=he.length,We=0;WeAe;Ae++)he[Ae].then(ve,ue)})},o.exports?o.exports=q:x.Promise||(x.Promise=q)}(this),k.copy=function(x){return new Promise(function(j,q){if(typeof x!="string"&&!("text/plain"in x))throw new Error("You must provide a text/plain type.");var V=typeof x=="string"?x:x["text/plain"];window.clipboardData.setData("Text",V)?j():q(new Error("Copying was rejected."))})},k.paste=function(){return new Promise(function(x,j){var q=window.clipboardData.getData("Text");q?x(q):j(new Error("Pasting was rejected."))})}),k}()}).call(this,f(13).setImmediate)},function(o,l,f){"use strict";o.exports=f(15)},function(o,l,f){"use strict";f.r(l),l.default=`:root { + /** + * IMPORTANT: When new theme variables are added below\u2013 also add them to SettingsContext updateThemeVariables() + */ + + /* Light theme */ + --light-color-attribute-name: #ef6632; + --light-color-attribute-name-not-editable: #23272f; + --light-color-attribute-name-inverted: rgba(255, 255, 255, 0.7); + --light-color-attribute-value: #1a1aa6; + --light-color-attribute-value-inverted: #ffffff; + --light-color-attribute-editable-value: #1a1aa6; + --light-color-background: #ffffff; + --light-color-background-hover: rgba(0, 136, 250, 0.1); + --light-color-background-inactive: #e5e5e5; + --light-color-background-invalid: #fff0f0; + --light-color-background-selected: #0088fa; + --light-color-button-background: #ffffff; + --light-color-button-background-focus: #ededed; + --light-color-button: #5f6673; + --light-color-button-disabled: #cfd1d5; + --light-color-button-active: #0088fa; + --light-color-button-focus: #23272f; + --light-color-button-hover: #23272f; + --light-color-border: #eeeeee; + --light-color-commit-did-not-render-fill: #cfd1d5; + --light-color-commit-did-not-render-fill-text: #000000; + --light-color-commit-did-not-render-pattern: #cfd1d5; + --light-color-commit-did-not-render-pattern-text: #333333; + --light-color-commit-gradient-0: #37afa9; + --light-color-commit-gradient-1: #63b19e; + --light-color-commit-gradient-2: #80b393; + --light-color-commit-gradient-3: #97b488; + --light-color-commit-gradient-4: #abb67d; + --light-color-commit-gradient-5: #beb771; + --light-color-commit-gradient-6: #cfb965; + --light-color-commit-gradient-7: #dfba57; + --light-color-commit-gradient-8: #efbb49; + --light-color-commit-gradient-9: #febc38; + --light-color-commit-gradient-text: #000000; + --light-color-component-name: #6a51b2; + --light-color-component-name-inverted: #ffffff; + --light-color-component-badge-background: rgba(0, 0, 0, 0.1); + --light-color-component-badge-background-inverted: rgba(255, 255, 255, 0.25); + --light-color-component-badge-count: #777d88; + --light-color-component-badge-count-inverted: rgba(255, 255, 255, 0.7); + --light-color-context-background: rgba(0,0,0,.9); + --light-color-context-background-hover: rgba(255, 255, 255, 0.1); + --light-color-context-background-selected: #178fb9; + --light-color-context-border: #3d424a; + --light-color-context-text: #ffffff; + --light-color-context-text-selected: #ffffff; + --light-color-dim: #777d88; + --light-color-dimmer: #cfd1d5; + --light-color-dimmest: #eff0f1; + --light-color-error-background: hsl(0, 100%, 97%); + --light-color-error-border: hsl(0, 100%, 92%); + --light-color-error-text: #ff0000; + --light-color-expand-collapse-toggle: #777d88; + --light-color-link: #0000ff; + --light-color-modal-background: rgba(255, 255, 255, 0.75); + --light-color-record-active: #fc3a4b; + --light-color-record-hover: #3578e5; + --light-color-record-inactive: #0088fa; + --light-color-scroll-thumb: #c2c2c2; + --light-color-scroll-track: #fafafa; + --light-color-search-match: yellow; + --light-color-search-match-current: #f7923b; + --light-color-selected-tree-highlight-active: rgba(0, 136, 250, 0.1); + --light-color-selected-tree-highlight-inactive: rgba(0, 0, 0, 0.05); + --light-color-shadow: rgba(0, 0, 0, 0.25); + --light-color-tab-selected-border: #0088fa; + --light-color-text: #000000; + --light-color-text-invalid: #ff0000; + --light-color-text-selected: #ffffff; + --light-color-toggle-background-invalid: #fc3a4b; + --light-color-toggle-background-on: #0088fa; + --light-color-toggle-background-off: #cfd1d5; + --light-color-toggle-text: #ffffff; + --light-color-tooltip-background: rgba(0, 0, 0, 0.9); + --light-color-tooltip-text: #ffffff; + + /* Dark theme */ + --dark-color-attribute-name: #9d87d2; + --dark-color-attribute-name-not-editable: #ededed; + --dark-color-attribute-name-inverted: #282828; + --dark-color-attribute-value: #cedae0; + --dark-color-attribute-value-inverted: #ffffff; + --dark-color-attribute-editable-value: yellow; + --dark-color-background: #282c34; + --dark-color-background-hover: rgba(255, 255, 255, 0.1); + --dark-color-background-inactive: #3d424a; + --dark-color-background-invalid: #5c0000; + --dark-color-background-selected: #178fb9; + --dark-color-button-background: #282c34; + --dark-color-button-background-focus: #3d424a; + --dark-color-button: #afb3b9; + --dark-color-button-active: #61dafb; + --dark-color-button-disabled: #4f5766; + --dark-color-button-focus: #a2e9fc; + --dark-color-button-hover: #ededed; + --dark-color-border: #3d424a; + --dark-color-commit-did-not-render-fill: #777d88; + --dark-color-commit-did-not-render-fill-text: #000000; + --dark-color-commit-did-not-render-pattern: #666c77; + --dark-color-commit-did-not-render-pattern-text: #ffffff; + --dark-color-commit-gradient-0: #37afa9; + --dark-color-commit-gradient-1: #63b19e; + --dark-color-commit-gradient-2: #80b393; + --dark-color-commit-gradient-3: #97b488; + --dark-color-commit-gradient-4: #abb67d; + --dark-color-commit-gradient-5: #beb771; + --dark-color-commit-gradient-6: #cfb965; + --dark-color-commit-gradient-7: #dfba57; + --dark-color-commit-gradient-8: #efbb49; + --dark-color-commit-gradient-9: #febc38; + --dark-color-commit-gradient-text: #000000; + --dark-color-component-name: #61dafb; + --dark-color-component-name-inverted: #282828; + --dark-color-component-badge-background: rgba(255, 255, 255, 0.25); + --dark-color-component-badge-background-inverted: rgba(0, 0, 0, 0.25); + --dark-color-component-badge-count: #8f949d; + --dark-color-component-badge-count-inverted: rgba(255, 255, 255, 0.7); + --dark-color-context-background: rgba(255,255,255,.9); + --dark-color-context-background-hover: rgba(0, 136, 250, 0.1); + --dark-color-context-background-selected: #0088fa; + --dark-color-context-border: #eeeeee; + --dark-color-context-text: #000000; + --dark-color-context-text-selected: #ffffff; + --dark-color-dim: #8f949d; + --dark-color-dimmer: #777d88; + --dark-color-dimmest: #4f5766; + --dark-color-error-background: #200; + --dark-color-error-border: #900; + --dark-color-error-text: #f55; + --dark-color-expand-collapse-toggle: #8f949d; + --dark-color-link: #61dafb; + --dark-color-modal-background: rgba(0, 0, 0, 0.75); + --dark-color-record-active: #fc3a4b; + --dark-color-record-hover: #a2e9fc; + --dark-color-record-inactive: #61dafb; + --dark-color-scroll-thumb: #afb3b9; + --dark-color-scroll-track: #313640; + --dark-color-search-match: yellow; + --dark-color-search-match-current: #f7923b; + --dark-color-selected-tree-highlight-active: rgba(23, 143, 185, 0.15); + --dark-color-selected-tree-highlight-inactive: rgba(255, 255, 255, 0.05); + --dark-color-shadow: rgba(0, 0, 0, 0.5); + --dark-color-tab-selected-border: #178fb9; + --dark-color-text: #ffffff; + --dark-color-text-invalid: #ff8080; + --dark-color-text-selected: #ffffff; + --dark-color-toggle-background-invalid: #fc3a4b; + --dark-color-toggle-background-on: #178fb9; + --dark-color-toggle-background-off: #777d88; + --dark-color-toggle-text: #ffffff; + --dark-color-tooltip-background: rgba(255, 255, 255, 0.9); + --dark-color-tooltip-text: #000000; + + /* Font smoothing */ + --light-font-smoothing: auto; + --dark-font-smoothing: antialiased; + --font-smoothing: auto; + + /* Compact density */ + --compact-font-size-monospace-small: 9px; + --compact-font-size-monospace-normal: 11px; + --compact-font-size-monospace-large: 15px; + --compact-font-size-sans-small: 10px; + --compact-font-size-sans-normal: 12px; + --compact-font-size-sans-large: 14px; + --compact-line-height-data: 18px; + --compact-root-font-size: 16px; + + /* Comfortable density */ + --comfortable-font-size-monospace-small: 10px; + --comfortable-font-size-monospace-normal: 13px; + --comfortable-font-size-monospace-large: 17px; + --comfortable-font-size-sans-small: 12px; + --comfortable-font-size-sans-normal: 14px; + --comfortable-font-size-sans-large: 16px; + --comfortable-line-height-data: 22px; + --comfortable-root-font-size: 20px; + + /* GitHub.com system fonts */ + --font-family-monospace: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, + Courier, monospace; + --font-family-sans: -apple-system, BlinkMacSystemFont, Segoe UI, Helvetica, + Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol; + + /* Constant values shared between JS and CSS */ + --interaction-commit-size: 10px; + --interaction-label-width: 200px; +} +`},function(o,l,f){"use strict";function h(k){var x=this;if(x instanceof h||(x=new h),x.tail=null,x.head=null,x.length=0,k&&typeof k.forEach=="function")k.forEach(function(V){x.push(V)});else if(arguments.length>0)for(var j=0,q=arguments.length;j1)j=x;else{if(!this.head)throw new TypeError("Reduce of empty list with no initial value");q=this.head.next,j=this.head.value}for(var V=0;q!==null;V++)j=k(j,q.value,V),q=q.next;return j},h.prototype.reduceReverse=function(k,x){var j,q=this.tail;if(arguments.length>1)j=x;else{if(!this.tail)throw new TypeError("Reduce of empty list with no initial value");q=this.tail.prev,j=this.tail.value}for(var V=this.length-1;q!==null;V--)j=k(j,q.value,V),q=q.prev;return j},h.prototype.toArray=function(){for(var k=new Array(this.length),x=0,j=this.head;j!==null;x++)k[x]=j.value,j=j.next;return k},h.prototype.toArrayReverse=function(){for(var k=new Array(this.length),x=0,j=this.tail;j!==null;x++)k[x]=j.value,j=j.prev;return k},h.prototype.slice=function(k,x){(x=x||this.length)<0&&(x+=this.length),(k=k||0)<0&&(k+=this.length);var j=new h;if(xthis.length&&(x=this.length);for(var q=0,V=this.head;V!==null&&qthis.length&&(x=this.length);for(var q=this.length,V=this.tail;V!==null&&q>x;q--)V=V.prev;for(;V!==null&&q>k;q--,V=V.prev)j.push(V.value);return j},h.prototype.splice=function(k,x){k>this.length&&(k=this.length-1),k<0&&(k=this.length+k);for(var j=0,q=this.head;q!==null&&j=0&&(F._idleTimeoutId=setTimeout(function(){F._onTimeout&&F._onTimeout()},k))},f(14),l.setImmediate=typeof self<"u"&&self.setImmediate||h!==void 0&&h.setImmediate||this&&this.setImmediate,l.clearImmediate=typeof self<"u"&&self.clearImmediate||h!==void 0&&h.clearImmediate||this&&this.clearImmediate}).call(this,f(4))},function(o,l,f){(function(h,E){(function(t,N){"use strict";if(!t.setImmediate){var F,k,x,j,q,V=1,re={},y=!1,me=t.document,De=Object.getPrototypeOf&&Object.getPrototypeOf(t);De=De&&De.setTimeout?De:t,{}.toString.call(t.process)==="[object process]"?F=function(we){E.nextTick(function(){ae(we)})}:function(){if(t.postMessage&&!t.importScripts){var we=!0,he=t.onmessage;return t.onmessage=function(){we=!1},t.postMessage("","*"),t.onmessage=he,we}}()?(j="setImmediate$"+Math.random()+"$",q=function(we){we.source===t&&typeof we.data=="string"&&we.data.indexOf(j)===0&&ae(+we.data.slice(j.length))},t.addEventListener?t.addEventListener("message",q,!1):t.attachEvent("onmessage",q),F=function(we){t.postMessage(j+we,"*")}):t.MessageChannel?((x=new MessageChannel).port1.onmessage=function(we){ae(we.data)},F=function(we){x.port2.postMessage(we)}):me&&"onreadystatechange"in me.createElement("script")?(k=me.documentElement,F=function(we){var he=me.createElement("script");he.onreadystatechange=function(){ae(we),he.onreadystatechange=null,k.removeChild(he),he=null},k.appendChild(he)}):F=function(we){setTimeout(ae,0,we)},De.setImmediate=function(we){typeof we!="function"&&(we=new Function(""+we));for(var he=new Array(arguments.length-1),ve=0;ve"u"?h===void 0?this:h:self)}).call(this,f(4),f(5))},function(o,l,f){"use strict";function h(ue){return(h=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Ae){return typeof Ae}:function(Ae){return Ae&&typeof Symbol=="function"&&Ae.constructor===Symbol&&Ae!==Symbol.prototype?"symbol":typeof Ae})(ue)}var E=f(1),t=f(16),N=f(18).__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,F=60128;if(typeof Symbol=="function"&&Symbol.for){var k=Symbol.for;F=k("react.opaque.id")}var x=[],j=null,q=null;function V(){if(j===null){var ue=new Map;try{me.useContext({_currentValue:null}),me.useState(null),me.useReducer(function(gt){return gt},null),me.useRef(null),me.useLayoutEffect(function(){}),me.useEffect(function(){}),me.useImperativeHandle(void 0,function(){return null}),me.useDebugValue(null),me.useCallback(function(){}),me.useMemo(function(){return null})}finally{var Ae=x;x=[]}for(var ze=0;zece;ce++)if((J=ge(it,Pt,ce))!==-1){De=ce,Pt=J;break e}Pt=-1}}e:{if(it=Jt,(J=V().get(Ve.primitive))!==void 0){for(ce=0;cePt-it?null:Jt.slice(it,Pt-1))!==null){if(Pt=0,We!==null){for(;PtPt;We--)gt=Qe.pop()}for(We=Jt.length-Pt-1;1<=We;We--)Pt=[],gt.push({id:null,isStateEditable:!1,name:we(Jt[We-1].functionName),value:void 0,subHooks:Pt}),Qe.push(gt),gt=Pt;We=Jt}Pt=(Jt=Ve.primitive)==="Context"||Jt==="DebugValue"?null:_t++,gt.push({id:Pt,isStateEditable:Jt==="Reducer"||Jt==="State",name:Jt,value:Ve.value,subHooks:[]})}return function Re(le,He){for(var dt=[],At=0;At-1&&(re=re.replace(/eval code/g,"eval").replace(/(\(eval at [^()]*)|(\),.*$)/g,""));var y=re.replace(/^\s+/,"").replace(/\(eval code/g,"("),me=y.match(/ (\((.+):(\d+):(\d+)\)$)/),De=(y=me?y.replace(me[0],""):y).split(/\s+/).slice(1),ge=this.extractLocation(me?me[1]:De.pop()),ae=De.join(" ")||void 0,we=["eval",""].indexOf(ge[0])>-1?void 0:ge[0];return new k({functionName:ae,fileName:we,lineNumber:ge[1],columnNumber:ge[2],source:re})},this)},parseFFOrSafari:function(V){return V.stack.split(` +`).filter(function(re){return!re.match(q)},this).map(function(re){if(re.indexOf(" > eval")>-1&&(re=re.replace(/ line (\d+)(?: > eval line \d+)* > eval:\d+:\d+/g,":$1")),re.indexOf("@")===-1&&re.indexOf(":")===-1)return new k({functionName:re});var y=/((.*".+"[^@]*)?[^@]*)(?:@)/,me=re.match(y),De=me&&me[1]?me[1]:void 0,ge=this.extractLocation(re.replace(y,""));return new k({functionName:De,fileName:ge[0],lineNumber:ge[1],columnNumber:ge[2],source:re})},this)},parseOpera:function(V){return!V.stacktrace||V.message.indexOf(` +`)>-1&&V.message.split(` +`).length>V.stacktrace.split(` +`).length?this.parseOpera9(V):V.stack?this.parseOpera11(V):this.parseOpera10(V)},parseOpera9:function(V){for(var re=/Line (\d+).*script (?:in )?(\S+)/i,y=V.message.split(` +`),me=[],De=2,ge=y.length;De/,"$2").replace(/\([^)]*\)/g,"")||void 0;ge.match(/\(([^)]*)\)/)&&(y=ge.replace(/^[^(]+\(([^)]*)\)$/,"$1"));var we=y===void 0||y==="[arguments not available]"?void 0:y.split(",");return new k({functionName:ae,args:we,fileName:De[0],lineNumber:De[1],columnNumber:De[2],source:re})},this)}}})=="function"?h.apply(l,E):h)===void 0||(o.exports=t)})()},function(o,l,f){var h,E,t;(function(N,F){"use strict";E=[],(t=typeof(h=function(){function k(ae){return ae.charAt(0).toUpperCase()+ae.substring(1)}function x(ae){return function(){return this[ae]}}var j=["isConstructor","isEval","isNative","isToplevel"],q=["columnNumber","lineNumber"],V=["fileName","functionName","source"],re=j.concat(q,V,["args"]);function y(ae){if(ae)for(var we=0;we1?Oe-1:0),Ne=1;Ne=0&&Oe.splice($,1)}}}])&&h(H.prototype,Y),ee&&h(H,ee),U}(),t=f(2),N=f.n(t);try{var F=f(9).default,k=function(U){var H=new RegExp("".concat(U,": ([0-9]+)")),Y=F.match(H);return parseInt(Y[1],10)};k("comfortable-line-height-data"),k("compact-line-height-data")}catch{}function x(U){try{return sessionStorage.getItem(U)}catch{return null}}function j(U){try{sessionStorage.removeItem(U)}catch{}}function q(U,H){try{return sessionStorage.setItem(U,H)}catch{}}var V=function(U,H){return U===H},re=f(1),y=f.n(re);function me(U){return U.ownerDocument?U.ownerDocument.defaultView:null}function De(U){var H=me(U);return H?H.frameElement:null}function ge(U){var H=he(U);return ae([U.getBoundingClientRect(),{top:H.borderTop,left:H.borderLeft,bottom:H.borderBottom,right:H.borderRight,width:0,height:0}])}function ae(U){return U.reduce(function(H,Y){return H==null?Y:{top:H.top+Y.top,left:H.left+Y.left,width:H.width,height:H.height,bottom:H.bottom+Y.bottom,right:H.right+Y.right}})}function we(U,H){var Y=De(U);if(Y&&Y!==H){for(var ee=[U.getBoundingClientRect()],Ce=Y,_e=!1;Ce;){var Oe=ge(Ce);if(ee.push(Oe),Ce=De(Ce),_e)break;Ce&&me(Ce)===H&&(_e=!0)}return ae(ee)}return U.getBoundingClientRect()}function he(U){var H=window.getComputedStyle(U);return{borderLeft:parseInt(H.borderLeftWidth,10),borderRight:parseInt(H.borderRightWidth,10),borderTop:parseInt(H.borderTopWidth,10),borderBottom:parseInt(H.borderBottomWidth,10),marginLeft:parseInt(H.marginLeft,10),marginRight:parseInt(H.marginRight,10),marginTop:parseInt(H.marginTop,10),marginBottom:parseInt(H.marginBottom,10),paddingLeft:parseInt(H.paddingLeft,10),paddingRight:parseInt(H.paddingRight,10),paddingTop:parseInt(H.paddingTop,10),paddingBottom:parseInt(H.paddingBottom,10)}}function ve(U,H){var Y;if(typeof Symbol>"u"||U[Symbol.iterator]==null){if(Array.isArray(U)||(Y=function(Ne,Je){if(!!Ne){if(typeof Ne=="string")return ue(Ne,Je);var vt=Object.prototype.toString.call(Ne).slice(8,-1);if(vt==="Object"&&Ne.constructor&&(vt=Ne.constructor.name),vt==="Map"||vt==="Set")return Array.from(Ne);if(vt==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(vt))return ue(Ne,Je)}}(U))||H&&U&&typeof U.length=="number"){Y&&(U=Y);var ee=0,Ce=function(){};return{s:Ce,n:function(){return ee>=U.length?{done:!0}:{done:!1,value:U[ee++]}},e:function(Ne){throw Ne},f:Ce}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var _e,Oe=!0,$=!1;return{s:function(){Y=U[Symbol.iterator]()},n:function(){var Ne=Y.next();return Oe=Ne.done,Ne},e:function(Ne){$=!0,_e=Ne},f:function(){try{Oe||Y.return==null||Y.return()}finally{if($)throw _e}}}}function ue(U,H){(H==null||H>U.length)&&(H=U.length);for(var Y=0,ee=new Array(H);YOe.left+Oe.width&&(oe=Oe.left+Oe.width-vt-5),{style:{top:Ne+="px",left:oe+="px"}}}(H,Y,{width:ee.width,height:ee.height});y()(this.tip.style,Ce.style)}}]),U}(),Qe=function(){function U(){Ae(this,U);var H=window.__REACT_DEVTOOLS_TARGET_WINDOW__||window;this.window=H;var Y=window.__REACT_DEVTOOLS_TARGET_WINDOW__||window;this.tipBoundsWindow=Y;var ee=H.document;this.container=ee.createElement("div"),this.container.style.zIndex="10000000",this.tip=new _t(ee,this.container),this.rects=[],ee.body.appendChild(this.container)}return We(U,[{key:"remove",value:function(){this.tip.remove(),this.rects.forEach(function(H){H.remove()}),this.rects.length=0,this.container.parentNode&&this.container.parentNode.removeChild(this.container)}},{key:"inspect",value:function(H,Y){for(var ee=this,Ce=H.filter(function(xt){return xt.nodeType===Node.ELEMENT_NODE});this.rects.length>Ce.length;)this.rects.pop().remove();if(Ce.length!==0){for(;this.rects.length1&&arguments[1]!==void 0?arguments[1]:V,rt=void 0,xt=[],kt=void 0,bt=!1,sn=function(Ft,Dn){return qe(Ft,xt[Dn])},rn=function(){for(var Ft=arguments.length,Dn=Array(Ft),dr=0;dr"u"?"undefined":At(performance))==="object"&&typeof performance.now=="function"?function(){return performance.now()}:function(){return Date.now()},an=new Map,On=null,lr=!1,ln=null;function Vt(U){(lr=U)||(an.clear(),On!==null&&(cancelAnimationFrame(On),On=null),ln!==null&&(clearTimeout(ln),ln=null),He!==null&&(He.parentNode!=null&&He.parentNode.removeChild(He),He=null))}function Er(U){lr&&(U.forEach(function(H){var Y=an.get(H),ee=nn(),Ce=Y!=null?Y.lastMeasuredAt:0,_e=Y!=null?Y.rect:null;(_e===null||Ce+2505&&arguments[5]!==void 0?arguments[5]:0,$=Mo(U);switch($){case"html_element":return H.push(ee),{inspectable:!1,preview_short:ki(U,!1),preview_long:ki(U,!0),name:U.tagName,type:$};case"function":return H.push(ee),{inspectable:!1,preview_short:ki(U,!1),preview_long:ki(U,!0),name:typeof U.name!="function"&&U.name?U.name:"function",type:$};case"string":return U.length<=500?U:U.slice(0,500)+"...";case"bigint":case"symbol":return H.push(ee),{inspectable:!1,preview_short:ki(U,!1),preview_long:ki(U,!0),name:U.toString(),type:$};case"react_element":return H.push(ee),{inspectable:!1,preview_short:ki(U,!1),preview_long:ki(U,!0),name:F0(U)||"Unknown",type:$};case"array_buffer":case"data_view":return H.push(ee),{inspectable:!1,preview_short:ki(U,!1),preview_long:ki(U,!0),name:$==="data_view"?"DataView":"ArrayBuffer",size:U.byteLength,type:$};case"array":return _e=Ce(ee),Oe>=2&&!_e?c0($,!0,U,H,ee):U.map(function(vt,oe){return Ao(vt,H,Y,ee.concat([oe]),Ce,_e?1:Oe+1)});case"html_all_collection":case"typed_array":case"iterator":if(_e=Ce(ee),Oe>=2&&!_e)return c0($,!0,U,H,ee);var Ne={unserializable:!0,type:$,readonly:!0,size:$==="typed_array"?U.length:void 0,preview_short:ki(U,!1),preview_long:ki(U,!0),name:U.constructor&&U.constructor.name!=="Object"?U.constructor.name:""};return Xt(U[Symbol.iterator])&&Array.from(U).forEach(function(vt,oe){return Ne[oe]=Ao(vt,H,Y,ee.concat([oe]),Ce,_e?1:Oe+1)}),Y.push(ee),Ne;case"opaque_iterator":return H.push(ee),{inspectable:!1,preview_short:ki(U,!1),preview_long:ki(U,!0),name:U[Symbol.toStringTag],type:$};case"date":case"regexp":return H.push(ee),{inspectable:!1,preview_short:ki(U,!1),preview_long:ki(U,!0),name:U.toString(),type:$};case"object":if(_e=Ce(ee),Oe>=2&&!_e)return c0($,!0,U,H,ee);var Je={};return lu(U).forEach(function(vt){var oe=vt.toString();Je[oe]=Ao(U[vt],H,Y,ee.concat([oe]),Ce,_e?1:Oe+1)}),Je;case"infinity":case"nan":case"undefined":return H.push(ee),{type:$};default:return U}}function Jo(U){return(Jo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(H){return typeof H}:function(H){return H&&typeof Symbol=="function"&&H.constructor===Symbol&&H!==Symbol.prototype?"symbol":typeof H})(U)}function Fs(U){return function(H){if(Array.isArray(H))return Zo(H)}(U)||function(H){if(typeof Symbol<"u"&&Symbol.iterator in Object(H))return Array.from(H)}(U)||function(H,Y){if(!!H){if(typeof H=="string")return Zo(H,Y);var ee=Object.prototype.toString.call(H).slice(8,-1);if(ee==="Object"&&H.constructor&&(ee=H.constructor.name),ee==="Map"||ee==="Set")return Array.from(H);if(ee==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(ee))return Zo(H,Y)}}(U)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function Zo(U,H){(H==null||H>U.length)&&(H=U.length);for(var Y=0,ee=new Array(H);YH.toString()?1:H.toString()>U.toString()?-1:0}function lu(U){for(var H=[],Y=U,ee=function(){var Ce=[].concat(Fs(Object.keys(Y)),Fs(Object.getOwnPropertySymbols(Y))),_e=Object.getOwnPropertyDescriptors(Y);Ce.forEach(function(Oe){_e[Oe].enumerable&&H.push(Oe)}),Y=Object.getPrototypeOf(Y)};Y!=null;)ee();return H}function vi(U){var H=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"Anonymous",Y=$o.get(U);if(Y!=null)return Y;var ee=H;return typeof U.displayName=="string"?ee=U.displayName:typeof U.name=="string"&&U.name!==""&&(ee=U.name),$o.set(U,ee),ee}var Dr=0;function el(){return++Dr}function Y0(U){var H=qt.get(U);if(H!==void 0)return H;for(var Y=new Array(U.length),ee=0;ee1&&arguments[1]!==void 0?arguments[1]:50;return U.length>H?U.substr(0,H)+"\u2026":U}function ki(U,H){if(U!=null&&hasOwnProperty.call(U,Du.type))return H?U[Du.preview_long]:U[Du.preview_short];switch(Mo(U)){case"html_element":return"<".concat(su(U.tagName.toLowerCase())," />");case"function":return su("\u0192 ".concat(typeof U.name=="function"?"":U.name,"() {}"));case"string":return'"'.concat(U,'"');case"bigint":return su(U.toString()+"n");case"regexp":case"symbol":return su(U.toString());case"react_element":return"<".concat(su(F0(U)||"Unknown")," />");case"array_buffer":return"ArrayBuffer(".concat(U.byteLength,")");case"data_view":return"DataView(".concat(U.buffer.byteLength,")");case"array":if(H){for(var Y="",ee=0;ee0&&(Y+=", "),!((Y+=ki(U[ee],!1)).length>50));ee++);return"[".concat(su(Y),"]")}var Ce=hasOwnProperty.call(U,Du.size)?U[Du.size]:U.length;return"Array(".concat(Ce,")");case"typed_array":var _e="".concat(U.constructor.name,"(").concat(U.length,")");if(H){for(var Oe="",$=0;$0&&(Oe+=", "),!((Oe+=U[$]).length>50));$++);return"".concat(_e," [").concat(su(Oe),"]")}return _e;case"iterator":var Ne=U.constructor.name;if(H){for(var Je=Array.from(U),vt="",oe=0;oe0&&(vt+=", "),Array.isArray(qe)){var rt=ki(qe[0],!0),xt=ki(qe[1],!1);vt+="".concat(rt," => ").concat(xt)}else vt+=ki(qe,!1);if(vt.length>50)break}return"".concat(Ne,"(").concat(U.size,") {").concat(su(vt),"}")}return"".concat(Ne,"(").concat(U.size,")");case"opaque_iterator":return U[Symbol.toStringTag];case"date":return U.toString();case"object":if(H){for(var kt=lu(U).sort(xi),bt="",sn=0;sn0&&(bt+=", "),(bt+="".concat(rn.toString(),": ").concat(ki(U[rn],!1))).length>50)break}return"{".concat(su(bt),"}")}return"{\u2026}";case"boolean":case"number":case"infinity":case"nan":case"null":case"undefined":return U;default:try{return su(""+U)}catch{return"unserializable"}}}var Ps=f(7);function Kl(U){return(Kl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(H){return typeof H}:function(H){return H&&typeof Symbol=="function"&&H.constructor===Symbol&&H!==Symbol.prototype?"symbol":typeof H})(U)}function P0(U,H){var Y=Object.keys(U);if(Object.getOwnPropertySymbols){var ee=Object.getOwnPropertySymbols(U);H&&(ee=ee.filter(function(Ce){return Object.getOwnPropertyDescriptor(U,Ce).enumerable})),Y.push.apply(Y,ee)}return Y}function d0(U){for(var H=1;H2&&arguments[2]!==void 0?arguments[2]:[];if(U!==null){var ee=[],Ce=[],_e=Ao(U,ee,Ce,Y,H);return{data:_e,cleaned:ee,unserializable:Ce}}return null}function X0(U){var H,Y,ee=(H=U,Y=new Set,JSON.stringify(H,function(Oe,$){if(Kl($)==="object"&&$!==null){if(Y.has($))return;Y.add($)}return typeof $=="bigint"?$.toString()+"n":$})),Ce=ee===void 0?"undefined":ee,_e=window.__REACT_DEVTOOLS_GLOBAL_HOOK__.clipboardCopyText;typeof _e=="function"?_e(Ce).catch(function(Oe){}):Object(Ps.copy)(Ce)}function mi(U,H){var Y=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,ee=H[Y],Ce=Array.isArray(U)?U.slice():d0({},U);return Y+1===H.length?Array.isArray(Ce)?Ce.splice(ee,1):delete Ce[ee]:Ce[ee]=mi(U[ee],H,Y+1),Ce}function en(U,H,Y){var ee=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,Ce=H[ee],_e=Array.isArray(U)?U.slice():d0({},U);if(ee+1===H.length){var Oe=Y[ee];_e[Oe]=_e[Ce],Array.isArray(_e)?_e.splice(Ce,1):delete _e[Ce]}else _e[Ce]=en(U[Ce],H,Y,ee+1);return _e}function In(U,H,Y){var ee=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;if(ee>=H.length)return Y;var Ce=H[ee],_e=Array.isArray(U)?U.slice():d0({},U);return _e[Ce]=In(U[Ce],H,Y,ee+1),_e}var Ai=f(8);function yi(U,H){var Y=Object.keys(U);if(Object.getOwnPropertySymbols){var ee=Object.getOwnPropertySymbols(U);H&&(ee=ee.filter(function(Ce){return Object.getOwnPropertyDescriptor(U,Ce).enumerable})),Y.push.apply(Y,ee)}return Y}function Wt(U){for(var H=1;H"u"||!(Symbol.iterator in Object(Y)))){var Ce=[],_e=!0,Oe=!1,$=void 0;try{for(var Ne,Je=Y[Symbol.iterator]();!(_e=(Ne=Je.next()).done)&&(Ce.push(Ne.value),!ee||Ce.length!==ee);_e=!0);}catch(vt){Oe=!0,$=vt}finally{try{_e||Je.return==null||Je.return()}finally{if(Oe)throw $}}return Ce}}(U,H)||Xl(U,H)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function Yi(U,H){var Y;if(typeof Symbol>"u"||U[Symbol.iterator]==null){if(Array.isArray(U)||(Y=Xl(U))||H&&U&&typeof U.length=="number"){Y&&(U=Y);var ee=0,Ce=function(){};return{s:Ce,n:function(){return ee>=U.length?{done:!0}:{done:!1,value:U[ee++]}},e:function(Ne){throw Ne},f:Ce}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var _e,Oe=!0,$=!1;return{s:function(){Y=U[Symbol.iterator]()},n:function(){var Ne=Y.next();return Oe=Ne.done,Ne},e:function(Ne){$=!0,_e=Ne},f:function(){try{Oe||Y.return==null||Y.return()}finally{if($)throw _e}}}}function Xl(U,H){if(U){if(typeof U=="string")return ko(U,H);var Y=Object.prototype.toString.call(U).slice(8,-1);return Y==="Object"&&U.constructor&&(Y=U.constructor.name),Y==="Map"||Y==="Set"?Array.from(U):Y==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Y)?ko(U,H):void 0}}function ko(U,H){(H==null||H>U.length)&&(H=U.length);for(var Y=0,ee=new Array(H);Y"u"?"undefined":li(performance))==="object"&&typeof performance.now=="function"?function(){return performance.now()}:function(){return Date.now()};function No(U){var H=null;function Y(rn){var Ft=li(rn)==="object"&&rn!==null?rn.$$typeof:rn;return li(Ft)==="symbol"?Ft.toString():Ft}var ee=H=Object(zt.gte)(U,"17.0.0-alpha")?{Block:22,ClassComponent:1,ContextConsumer:9,ContextProvider:10,CoroutineComponent:-1,CoroutineHandlerPhase:-1,DehydratedSuspenseComponent:18,ForwardRef:11,Fragment:7,FunctionComponent:0,HostComponent:5,HostPortal:4,HostRoot:3,HostText:6,IncompleteClassComponent:17,IndeterminateComponent:2,LazyComponent:16,MemoComponent:14,Mode:8,OffscreenComponent:23,Profiler:12,SimpleMemoComponent:15,SuspenseComponent:13,SuspenseListComponent:19,YieldComponent:-1}:Object(zt.gte)(U,"16.6.0-beta.0")?{Block:22,ClassComponent:1,ContextConsumer:9,ContextProvider:10,CoroutineComponent:-1,CoroutineHandlerPhase:-1,DehydratedSuspenseComponent:18,ForwardRef:11,Fragment:7,FunctionComponent:0,HostComponent:5,HostPortal:4,HostRoot:3,HostText:6,IncompleteClassComponent:17,IndeterminateComponent:2,LazyComponent:16,MemoComponent:14,Mode:8,OffscreenComponent:-1,Profiler:12,SimpleMemoComponent:15,SuspenseComponent:13,SuspenseListComponent:19,YieldComponent:-1}:Object(zt.gte)(U,"16.4.3-alpha")?{Block:-1,ClassComponent:2,ContextConsumer:11,ContextProvider:12,CoroutineComponent:-1,CoroutineHandlerPhase:-1,DehydratedSuspenseComponent:-1,ForwardRef:13,Fragment:9,FunctionComponent:0,HostComponent:7,HostPortal:6,HostRoot:5,HostText:8,IncompleteClassComponent:-1,IndeterminateComponent:4,LazyComponent:-1,MemoComponent:-1,Mode:10,OffscreenComponent:-1,Profiler:15,SimpleMemoComponent:-1,SuspenseComponent:16,SuspenseListComponent:-1,YieldComponent:-1}:{Block:-1,ClassComponent:2,ContextConsumer:12,ContextProvider:13,CoroutineComponent:7,CoroutineHandlerPhase:8,DehydratedSuspenseComponent:-1,ForwardRef:14,Fragment:10,FunctionComponent:1,HostComponent:5,HostPortal:4,HostRoot:3,HostText:6,IncompleteClassComponent:-1,IndeterminateComponent:0,LazyComponent:-1,MemoComponent:-1,Mode:11,OffscreenComponent:-1,Profiler:15,SimpleMemoComponent:-1,SuspenseComponent:16,SuspenseListComponent:-1,YieldComponent:9},Ce=ee.ClassComponent,_e=ee.IncompleteClassComponent,Oe=ee.FunctionComponent,$=ee.IndeterminateComponent,Ne=ee.ForwardRef,Je=ee.HostRoot,vt=ee.HostComponent,oe=ee.HostPortal,qe=ee.HostText,rt=ee.Fragment,xt=ee.MemoComponent,kt=ee.SimpleMemoComponent,bt=ee.SuspenseComponent,sn=ee.SuspenseListComponent;return{getDisplayNameForFiber:function(rn){var Ft=rn.type,Dn=rn.tag,dr=Ft;li(Ft)==="object"&&Ft!==null&&(dr=function Cr(Rn){switch(Y(Rn)){case 60115:case"Symbol(react.memo)":return Cr(Rn.type);case 60112:case"Symbol(react.forward_ref)":return Rn.render;default:return Rn}}(Ft));var er=null;switch(Dn){case Ce:case _e:return vi(dr);case Oe:case $:return vi(dr);case Ne:return Ft&&Ft.displayName||vi(dr,"Anonymous");case Je:return null;case vt:return Ft;case oe:case qe:case rt:return null;case xt:case kt:return vi(dr,"Anonymous");case bt:return"Suspense";case sn:return"SuspenseList";default:switch(Y(Ft)){case 60111:case"Symbol(react.concurrent_mode)":case"Symbol(react.async_mode)":return null;case 60109:case"Symbol(react.provider)":return er=rn.type._context||rn.type.context,"".concat(er.displayName||"Context",".Provider");case 60110:case"Symbol(react.context)":return er=rn.type._context||rn.type,"".concat(er.displayName||"Context",".Consumer");case 60108:case"Symbol(react.strict_mode)":return null;case 60114:case"Symbol(react.profiler)":return"Profiler(".concat(rn.memoizedProps.id,")");case 60119:case"Symbol(react.scope)":return"Scope";default:return null}}},getTypeSymbol:Y,ReactPriorityLevels:{ImmediatePriority:99,UserBlockingPriority:98,NormalPriority:97,LowPriority:96,IdlePriority:95,NoPriority:90},ReactTypeOfWork:H,ReactTypeOfSideEffect:{NoFlags:0,PerformedWork:1,Placement:2}}}function Is(U,H,Y,ee){var Ce=No(Y.version),_e=Ce.getDisplayNameForFiber,Oe=Ce.getTypeSymbol,$=Ce.ReactPriorityLevels,Ne=Ce.ReactTypeOfWork,Je=Ce.ReactTypeOfSideEffect,vt=Je.NoFlags,oe=Je.PerformedWork,qe=Je.Placement,rt=Ne.FunctionComponent,xt=Ne.ClassComponent,kt=Ne.ContextConsumer,bt=Ne.DehydratedSuspenseComponent,sn=Ne.Fragment,rn=Ne.ForwardRef,Ft=Ne.HostRoot,Dn=Ne.HostPortal,dr=Ne.HostComponent,er=Ne.HostText,Cr=Ne.IncompleteClassComponent,Rn=Ne.IndeterminateComponent,Nr=Ne.MemoComponent,y0=Ne.OffscreenComponent,Lr=Ne.SimpleMemoComponent,ut=Ne.SuspenseComponent,wt=Ne.SuspenseListComponent,et=$.ImmediatePriority,It=$.UserBlockingPriority,un=$.NormalPriority,fn=$.LowPriority,Jn=$.IdlePriority,wr=$.NoPriority,au=Y.overrideHookState,ku=Y.overrideHookStateDeletePath,T0=Y.overrideHookStateRenamePath,Z0=Y.overrideProps,Nu=Y.overridePropsDeletePath,gi=Y.overridePropsRenamePath,Po=Y.setSuspenseHandler,rl=Y.scheduleUpdate,hf=typeof Po=="function"&&typeof rl=="function";co(Y);var Tl=window.__REACT_DEVTOOLS_APPEND_COMPONENT_STACK__!==!1,vf=window.__REACT_DEVTOOLS_BREAK_ON_CONSOLE_ERRORS__===!0;(Tl||vf)&&Jl({appendComponentStack:Tl,breakOnConsoleErrors:vf});var Io=new Set,ys=new Set,js=new Set,bo=!1,Bo=new Set;function gs(fe){js.clear(),Io.clear(),ys.clear(),fe.forEach(function(ie){if(ie.isEnabled)switch(ie.type){case 2:ie.isValid&&ie.value!==""&&Io.add(new RegExp(ie.value,"i"));break;case 1:js.add(ie.value);break;case 3:ie.isValid&&ie.value!==""&&ys.add(new RegExp(ie.value,"i"));break;case 4:Io.add(new RegExp("\\("));break;default:console.warn('Invalid component filter type "'.concat(ie.type,'"'))}})}function Xu(fe){var ie=fe._debugSource,Pe=fe.tag,Me=fe.type;switch(Pe){case bt:return!0;case Dn:case er:case sn:case y0:return!0;case Ft:return!1;default:switch(Oe(Me)){case 60111:case"Symbol(react.concurrent_mode)":case"Symbol(react.async_mode)":case 60108:case"Symbol(react.strict_mode)":return!0}}var at=Su(fe);if(js.has(at))return!0;if(Io.size>0){var mt=_e(fe);if(mt!=null){var Qt,An=Yi(Io);try{for(An.s();!(Qt=An.n()).done;)if(Qt.value.test(mt))return!0}catch(ir){An.e(ir)}finally{An.f()}}}if(ie!=null&&ys.size>0){var Sn,_n=ie.fileName,Tn=Yi(ys);try{for(Tn.s();!(Sn=Tn.n()).done;)if(Sn.value.test(_n))return!0}catch(ir){Tn.e(ir)}finally{Tn.f()}}return!1}function Su(fe){var ie=fe.type;switch(fe.tag){case xt:case Cr:return 1;case rt:case Rn:return 5;case rn:return 6;case Ft:return 11;case dr:return 7;case Dn:case er:case sn:return 9;case Nr:case Lr:return 8;case ut:return 12;case wt:return 13;default:switch(Oe(ie)){case 60111:case"Symbol(react.concurrent_mode)":case"Symbol(react.async_mode)":return 9;case 60109:case"Symbol(react.provider)":return 2;case 60110:case"Symbol(react.context)":return 2;case 60108:case"Symbol(react.strict_mode)":return 9;case 60114:case"Symbol(react.profiler)":return 10;default:return 9}}}function _i(fe){if(Uo.has(fe))return fe;var ie=fe.alternate;return ie!=null&&Uo.has(ie)?ie:(Uo.add(fe),fe)}window.__REACT_DEVTOOLS_COMPONENT_FILTERS__!=null?gs(window.__REACT_DEVTOOLS_COMPONENT_FILTERS__):gs([{type:1,value:7,isEnabled:!0}]);var C0=new Map,$0=new Map,Uo=new Set,la=new Map,$l=new Map,tu=-1;function Zr(fe){if(!C0.has(fe)){var ie=el();C0.set(fe,ie),$0.set(ie,fe)}return C0.get(fe)}function ho(fe){switch(Su(fe)){case 1:if(B0!==null){var ie=Zr(_i(fe)),Pe=Ci(fe);Pe!==null&&B0.set(ie,Pe)}}}var Bi={};function Ci(fe){switch(Su(fe)){case 1:var ie=fe.stateNode,Pe=Bi,Me=Bi;return ie!=null&&(ie.constructor&&ie.constructor.contextType!=null?Me=ie.context:(Pe=ie.context)&&Object.keys(Pe).length===0&&(Pe=Bi)),[Pe,Me];default:return null}}function mf(fe){switch(Su(fe)){case 1:if(B0!==null){var ie=Zr(_i(fe)),Pe=B0.has(ie)?B0.get(ie):null,Me=Ci(fe);if(Pe==null||Me==null)return null;var at=Q0(Pe,2),mt=at[0],Qt=at[1],An=Q0(Me,2),Sn=An[0],_n=An[1];if(Sn!==Bi)return eo(mt,Sn);if(_n!==Bi)return Qt!==_n}}return null}function yf(fe,ie){if(fe==null||ie==null)return!1;if(ie.hasOwnProperty("baseState")&&ie.hasOwnProperty("memoizedState")&&ie.hasOwnProperty("next")&&ie.hasOwnProperty("queue"))for(;ie!==null;){if(ie.memoizedState!==fe.memoizedState)return!0;ie=ie.next,fe=fe.next}return!1}function eo(fe,ie){if(fe==null||ie==null||ie.hasOwnProperty("baseState")&&ie.hasOwnProperty("memoizedState")&&ie.hasOwnProperty("next")&&ie.hasOwnProperty("queue"))return null;var Pe,Me=[],at=Yi(new Set([].concat(eu(Object.keys(fe)),eu(Object.keys(ie)))));try{for(at.s();!(Pe=at.n()).done;){var mt=Pe.value;fe[mt]!==ie[mt]&&Me.push(mt)}}catch(Qt){at.e(Qt)}finally{at.f()}return Me}function to(fe,ie){switch(ie.tag){case xt:case rt:case kt:case Nr:case Lr:return(ao(ie)&oe)===oe;default:return fe.memoizedProps!==ie.memoizedProps||fe.memoizedState!==ie.memoizedState||fe.ref!==ie.ref}}var xe=[],tt=[],Ke=[],Yt=[],Kt=new Map,pr=0,Ei=null;function bn(fe){xe.push(fe)}function mu(fe){if(xe.length!==0||tt.length!==0||Ke.length!==0||Ei!==null||Fu){var ie=tt.length+Ke.length+(Ei===null?0:1),Pe=new Array(3+pr+(ie>0?2+ie:0)+xe.length),Me=0;if(Pe[Me++]=H,Pe[Me++]=tu,Pe[Me++]=pr,Kt.forEach(function(An,Sn){Pe[Me++]=Sn.length;for(var _n=Y0(Sn),Tn=0;Tn<_n.length;Tn++)Pe[Me+Tn]=_n[Tn];Me+=Sn.length}),ie>0){Pe[Me++]=2,Pe[Me++]=ie;for(var at=tt.length-1;at>=0;at--)Pe[Me++]=tt[at];for(var mt=0;mt0?fe.forEach(function(ie){U.emit("operations",ie)}):(Rr!==null&&(fu=!0),U.getFiberRoots(H).forEach(function(ie){$u(tu=Zr(_i(ie.current)),ie.current),Fu&&ie.memoizedInteractions!=null&&(il={changeDescriptions:es?new Map:null,durations:[],commitTime:Ql()-Ju,interactions:Array.from(ie.memoizedInteractions).map(function(Pe){return Wt(Wt({},Pe),{},{timestamp:Pe.timestamp-Ju})}),maxActualDuration:0,priorityLevel:null}),Qr(ie.current,null,!1,!1),mu(),tu=-1}))},getBestMatchForTrackedPath:function(){if(Rr===null||no===null)return null;for(var fe=no;fe!==null&&Xu(fe);)fe=fe.return;return fe===null?null:{id:Zr(_i(fe)),isFullMatch:nu===Rr.length-1}},getDisplayNameForFiberID:function(fe){var ie=$0.get(fe);return ie!=null?_e(ie):null},getFiberIDForNative:function(fe){var ie=arguments.length>1&&arguments[1]!==void 0&&arguments[1],Pe=Y.findFiberByHostInstance(fe);if(Pe!=null){if(ie)for(;Pe!==null&&Xu(Pe);)Pe=Pe.return;return Zr(_i(Pe))}return null},getInstanceAndStyle:function(fe){var ie=null,Pe=null,Me=Wu(fe);return Me!==null&&(ie=Me.stateNode,Me.memoizedProps!==null&&(Pe=Me.memoizedProps.style)),{instance:ie,style:Pe}},getOwnersList:function(fe){var ie=Wu(fe);if(ie==null)return null;var Pe=ie._debugOwner,Me=[{displayName:_e(ie)||"Anonymous",id:fe,type:Su(ie)}];if(Pe)for(var at=Pe;at!==null;)Me.unshift({displayName:_e(at)||"Anonymous",id:Zr(_i(at)),type:Su(at)}),at=at._debugOwner||null;return Me},getPathForElement:function(fe){var ie=$0.get(fe);if(ie==null)return null;for(var Pe=[];ie!==null;)Pe.push(_0(ie)),ie=ie.return;return Pe.reverse(),Pe},getProfilingData:function(){var fe=[];if(_s===null)throw Error("getProfilingData() called before any profiling data was recorded");return _s.forEach(function(ie,Pe){var Me=[],at=[],mt=new Map,Qt=new Map,An=xl!==null&&xl.get(Pe)||"Unknown";O0!=null&&O0.forEach(function(Sn,_n){vo!=null&&vo.get(_n)===Pe&&at.push([_n,Sn])}),ie.forEach(function(Sn,_n){var Tn=Sn.changeDescriptions,ir=Sn.durations,Ut=Sn.interactions,Fi=Sn.maxActualDuration,Ar=Sn.priorityLevel,mr=Sn.commitTime,K=[];Ut.forEach(function(Di){mt.has(Di.id)||mt.set(Di.id,Di),K.push(Di.id);var ru=Qt.get(Di.id);ru!=null?ru.push(_n):Qt.set(Di.id,[_n])});for(var ti=[],ni=[],Wr=0;Wr1?Kn.set(Tn,ir-1):Kn.delete(Tn),ei.delete(Sn)}(tu),$r(Pe,!1))}else $u(tu,Pe),Qr(Pe,null,!1,!1);if(Fu&&at){var An=_s.get(tu);An!=null?An.push(il):_s.set(tu,[il])}mu(),bo&&U.emit("traceUpdates",Bo),tu=-1},handleCommitFiberUnmount:function(fe){$r(fe,!1)},inspectElement:function(fe,ie){if(Hi(fe)){if(ie!=null){A0(ie);var Pe=null;return ie[0]==="hooks"&&(Pe="hooks"),{id:fe,type:"hydrated-path",path:ie,value:Ri(Bu(Xi,ie),qi(null,Pe),ie)}}return{id:fe,type:"no-change"}}if(Hs=!1,Xi!==null&&Xi.id===fe||(R0={}),(Xi=sa(fe))===null)return{id:fe,type:"not-found"};ie!=null&&A0(ie),function(at){var mt=at.hooks,Qt=at.id,An=at.props,Sn=$0.get(Qt);if(Sn!=null){var _n=Sn.elementType,Tn=Sn.stateNode,ir=Sn.tag,Ut=Sn.type;switch(ir){case xt:case Cr:case Rn:ee.$r=Tn;break;case rt:ee.$r={hooks:mt,props:An,type:Ut};break;case rn:ee.$r={props:An,type:Ut.render};break;case Nr:case Lr:ee.$r={props:An,type:_n!=null&&_n.type!=null?_n.type:Ut};break;default:ee.$r=null}}else console.warn('Could not find Fiber with id "'.concat(Qt,'"'))}(Xi);var Me=Wt({},Xi);return Me.context=Ri(Me.context,qi("context",null)),Me.hooks=Ri(Me.hooks,qi("hooks","hooks")),Me.props=Ri(Me.props,qi("props",null)),Me.state=Ri(Me.state,qi("state",null)),{id:fe,type:"full-data",value:Me}},logElementToConsole:function(fe){var ie=Hi(fe)?Xi:sa(fe);if(ie!==null){var Pe=typeof console.groupCollapsed=="function";Pe&&console.groupCollapsed("[Click to expand] %c<".concat(ie.displayName||"Component"," />"),"color: var(--dom-tag-name-color); font-weight: normal;"),ie.props!==null&&console.log("Props:",ie.props),ie.state!==null&&console.log("State:",ie.state),ie.hooks!==null&&console.log("Hooks:",ie.hooks);var Me=Cl(fe);Me!==null&&console.log("Nodes:",Me),ie.source!==null&&console.log("Location:",ie.source),(window.chrome||/firefox/i.test(navigator.userAgent))&&console.log("Right-click any value to save it as a global variable for further inspection."),Pe&&console.groupEnd()}else console.warn('Could not find Fiber with id "'.concat(fe,'"'))},prepareViewAttributeSource:function(fe,ie){Hi(fe)&&(window.$attribute=Bu(Xi,ie))},prepareViewElementSource:function(fe){var ie=$0.get(fe);if(ie!=null){var Pe=ie.elementType,Me=ie.tag,at=ie.type;switch(Me){case xt:case Cr:case Rn:case rt:ee.$type=at;break;case rn:ee.$type=at.render;break;case Nr:case Lr:ee.$type=Pe!=null&&Pe.type!=null?Pe.type:at;break;default:ee.$type=null}}else console.warn('Could not find Fiber with id "'.concat(fe,'"'))},overrideSuspense:function(fe,ie){if(typeof Po!="function"||typeof rl!="function")throw new Error("Expected overrideSuspense() to not get called for earlier React versions.");ie?(Zu.add(fe),Zu.size===1&&Po(Es)):(Zu.delete(fe),Zu.size===0&&Po(gf));var Pe=$0.get(fe);Pe!=null&&rl(Pe)},overrideValueAtPath:function(fe,ie,Pe,Me,at){var mt=Wu(ie);if(mt!==null){var Qt=mt.stateNode;switch(fe){case"context":switch(Me=Me.slice(1),mt.tag){case xt:Me.length===0?Qt.context=at:Oo(Qt.context,Me,at),Qt.forceUpdate()}break;case"hooks":typeof au=="function"&&au(mt,Pe,Me,at);break;case"props":switch(mt.tag){case xt:mt.pendingProps=In(Qt.props,Me,at),Qt.forceUpdate();break;default:typeof Z0=="function"&&Z0(mt,Me,at)}break;case"state":switch(mt.tag){case xt:Oo(Qt.state,Me,at),Qt.forceUpdate()}}}},renamePath:function(fe,ie,Pe,Me,at){var mt=Wu(ie);if(mt!==null){var Qt=mt.stateNode;switch(fe){case"context":switch(Me=Me.slice(1),at=at.slice(1),mt.tag){case xt:Me.length===0||Kr(Qt.context,Me,at),Qt.forceUpdate()}break;case"hooks":typeof T0=="function"&&T0(mt,Pe,Me,at);break;case"props":Qt===null?typeof gi=="function"&&gi(mt,Me,at):(mt.pendingProps=en(Qt.props,Me,at),Qt.forceUpdate());break;case"state":Kr(Qt.state,Me,at),Qt.forceUpdate()}}},renderer:Y,setTraceUpdatesEnabled:function(fe){bo=fe},setTrackedPath:Li,startProfiling:aa,stopProfiling:function(){Fu=!1,es=!1},storeAsGlobal:function(fe,ie,Pe){if(Hi(fe)){var Me=Bu(Xi,ie),at="$reactTemp".concat(Pe);window[at]=Me,console.log(at),console.log(Me)}},updateComponentFilters:function(fe){if(Fu)throw Error("Cannot modify filter preferences while profiling");U.getFiberRoots(H).forEach(function(ie){tu=Zr(_i(ie.current)),qu(ie.current),$r(ie.current,!1),tu=-1}),gs(fe),Kn.clear(),U.getFiberRoots(H).forEach(function(ie){$u(tu=Zr(_i(ie.current)),ie.current),Qr(ie.current,null,!1,!1),mu(ie),tu=-1})}}}var $n;function tl(U){return(tl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(H){return typeof H}:function(H){return H&&typeof Symbol=="function"&&H.constructor===Symbol&&H!==Symbol.prototype?"symbol":typeof H})(U)}function fo(U,H,Y){if($n===void 0)try{throw Error()}catch(Ce){var ee=Ce.stack.trim().match(/\n( *(at )?)/);$n=ee&&ee[1]||""}return` +`+$n+U}var I0=!1;function Sl(U,H,Y){if(!U||I0)return"";var ee,Ce=Error.prepareStackTrace;Error.prepareStackTrace=void 0,I0=!0;var _e=Y.current;Y.current=null;try{if(H){var Oe=function(){throw Error()};if(Object.defineProperty(Oe.prototype,"props",{set:function(){throw Error()}}),(typeof Reflect>"u"?"undefined":tl(Reflect))==="object"&&Reflect.construct){try{Reflect.construct(Oe,[])}catch(qe){ee=qe}Reflect.construct(U,[],Oe)}else{try{Oe.call()}catch(qe){ee=qe}U.call(Oe.prototype)}}else{try{throw Error()}catch(qe){ee=qe}U()}}catch(qe){if(qe&&ee&&typeof qe.stack=="string"){for(var $=qe.stack.split(` +`),Ne=ee.stack.split(` +`),Je=$.length-1,vt=Ne.length-1;Je>=1&&vt>=0&&$[Je]!==Ne[vt];)vt--;for(;Je>=1&&vt>=0;Je--,vt--)if($[Je]!==Ne[vt]){if(Je!==1||vt!==1)do if(Je--,--vt<0||$[Je]!==Ne[vt])return` +`+$[Je].replace(" at new "," at ");while(Je>=1&&vt>=0);break}}}finally{I0=!1,Error.prepareStackTrace=Ce,Y.current=_e}var oe=U?U.displayName||U.name:"";return oe?fo(oe):""}function Lo(U,H,Y,ee){return Sl(U,!1,ee)}function St(U,H,Y){var ee=U.HostComponent,Ce=U.LazyComponent,_e=U.SuspenseComponent,Oe=U.SuspenseListComponent,$=U.FunctionComponent,Ne=U.IndeterminateComponent,Je=U.SimpleMemoComponent,vt=U.ForwardRef,oe=U.Block,qe=U.ClassComponent;switch(H.tag){case ee:return fo(H.type);case Ce:return fo("Lazy");case _e:return fo("Suspense");case Oe:return fo("SuspenseList");case $:case Ne:case Je:return Lo(H.type,0,0,Y);case vt:return Lo(H.type.render,0,0,Y);case oe:return Lo(H.type._render,0,0,Y);case qe:return function(rt,xt,kt,bt){return Sl(rt,!0,bt)}(H.type,0,0,Y);default:return""}}function Bt(U,H,Y){try{var ee="",Ce=H;do ee+=St(U,Ce,Y),Ce=Ce.return;while(Ce);return ee}catch(_e){return` +Error generating stack: `+_e.message+` +`+_e.stack}}function Hn(U,H){var Y;if(typeof Symbol>"u"||U[Symbol.iterator]==null){if(Array.isArray(U)||(Y=function(Ne,Je){if(!!Ne){if(typeof Ne=="string")return qr(Ne,Je);var vt=Object.prototype.toString.call(Ne).slice(8,-1);if(vt==="Object"&&Ne.constructor&&(vt=Ne.constructor.name),vt==="Map"||vt==="Set")return Array.from(Ne);if(vt==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(vt))return qr(Ne,Je)}}(U))||H&&U&&typeof U.length=="number"){Y&&(U=Y);var ee=0,Ce=function(){};return{s:Ce,n:function(){return ee>=U.length?{done:!0}:{done:!1,value:U[ee++]}},e:function(Ne){throw Ne},f:Ce}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var _e,Oe=!0,$=!1;return{s:function(){Y=U[Symbol.iterator]()},n:function(){var Ne=Y.next();return Oe=Ne.done,Ne},e:function(Ne){$=!0,_e=Ne},f:function(){try{Oe||Y.return==null||Y.return()}finally{if($)throw _e}}}}function qr(U,H){(H==null||H>U.length)&&(H=U.length);for(var Y=0,ee=new Array(H);Y0?Je[Je.length-1]:null,qe=oe!==null&&(Xr.test(oe)||Au.test(oe));if(!qe){var rt,xt=Hn(p0.values());try{for(xt.s();!(rt=xt.n()).done;){var kt=rt.value,bt=kt.currentDispatcherRef,sn=kt.getCurrentFiber,rn=kt.workTagMap,Ft=sn();if(Ft!=null){var Dn=Bt(rn,Ft,bt);Dn!==""&&Je.push(Dn);break}}}catch(dr){xt.e(dr)}finally{xt.f()}}}catch{}_e.apply(void 0,Je)};Oe.__REACT_DEVTOOLS_ORIGINAL_METHOD__=_e,Ni[Ce]=Oe}catch{}})}}function Uu(U){return(Uu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(H){return typeof H}:function(H){return H&&typeof Symbol=="function"&&H.constructor===Symbol&&H!==Symbol.prototype?"symbol":typeof H})(U)}function vs(U,H){for(var Y=0;Y"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}();return function(){var Y,ee=Le(U);if(H){var Ce=Le(this).constructor;Y=Reflect.construct(ee,arguments,Ce)}else Y=ee.apply(this,arguments);return Se(this,Y)}}function Se(U,H){return!H||Uu(H)!=="object"&&typeof H!="function"?Fe(U):H}function Fe(U){if(U===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return U}function Le(U){return(Le=Object.setPrototypeOf?Object.getPrototypeOf:function(H){return H.__proto__||Object.getPrototypeOf(H)})(U)}function pt(U,H,Y){return H in U?Object.defineProperty(U,H,{value:Y,enumerable:!0,configurable:!0,writable:!0}):U[H]=Y,U}var Yn=function(U){(function(Oe,$){if(typeof $!="function"&&$!==null)throw new TypeError("Super expression must either be null or a function");Oe.prototype=Object.create($&&$.prototype,{constructor:{value:Oe,writable:!0,configurable:!0}}),$&&b0(Oe,$)})(_e,U);var H,Y,ee,Ce=Q(_e);function _e(Oe){var $;(function(oe,qe){if(!(oe instanceof qe))throw new TypeError("Cannot call a class as a function")})(this,_e),pt(Fe($=Ce.call(this)),"_isProfiling",!1),pt(Fe($),"_recordChangeDescriptions",!1),pt(Fe($),"_rendererInterfaces",{}),pt(Fe($),"_persistedSelection",null),pt(Fe($),"_persistedSelectionMatch",null),pt(Fe($),"_traceUpdatesEnabled",!1),pt(Fe($),"copyElementPath",function(oe){var qe=oe.id,rt=oe.path,xt=oe.rendererID,kt=$._rendererInterfaces[xt];kt==null?console.warn('Invalid renderer id "'.concat(xt,'" for element "').concat(qe,'"')):kt.copyElementPath(qe,rt)}),pt(Fe($),"deletePath",function(oe){var qe=oe.hookID,rt=oe.id,xt=oe.path,kt=oe.rendererID,bt=oe.type,sn=$._rendererInterfaces[kt];sn==null?console.warn('Invalid renderer id "'.concat(kt,'" for element "').concat(rt,'"')):sn.deletePath(bt,rt,qe,xt)}),pt(Fe($),"getProfilingData",function(oe){var qe=oe.rendererID,rt=$._rendererInterfaces[qe];rt==null&&console.warn('Invalid renderer id "'.concat(qe,'"')),$._bridge.send("profilingData",rt.getProfilingData())}),pt(Fe($),"getProfilingStatus",function(){$._bridge.send("profilingStatus",$._isProfiling)}),pt(Fe($),"getOwnersList",function(oe){var qe=oe.id,rt=oe.rendererID,xt=$._rendererInterfaces[rt];if(xt==null)console.warn('Invalid renderer id "'.concat(rt,'" for element "').concat(qe,'"'));else{var kt=xt.getOwnersList(qe);$._bridge.send("ownersList",{id:qe,owners:kt})}}),pt(Fe($),"inspectElement",function(oe){var qe=oe.id,rt=oe.path,xt=oe.rendererID,kt=$._rendererInterfaces[xt];kt==null?console.warn('Invalid renderer id "'.concat(xt,'" for element "').concat(qe,'"')):($._bridge.send("inspectedElement",kt.inspectElement(qe,rt)),$._persistedSelectionMatch!==null&&$._persistedSelectionMatch.id===qe||($._persistedSelection=null,$._persistedSelectionMatch=null,kt.setTrackedPath(null),$._throttledPersistSelection(xt,qe)))}),pt(Fe($),"logElementToConsole",function(oe){var qe=oe.id,rt=oe.rendererID,xt=$._rendererInterfaces[rt];xt==null?console.warn('Invalid renderer id "'.concat(rt,'" for element "').concat(qe,'"')):xt.logElementToConsole(qe)}),pt(Fe($),"overrideSuspense",function(oe){var qe=oe.id,rt=oe.rendererID,xt=oe.forceFallback,kt=$._rendererInterfaces[rt];kt==null?console.warn('Invalid renderer id "'.concat(rt,'" for element "').concat(qe,'"')):kt.overrideSuspense(qe,xt)}),pt(Fe($),"overrideValueAtPath",function(oe){var qe=oe.hookID,rt=oe.id,xt=oe.path,kt=oe.rendererID,bt=oe.type,sn=oe.value,rn=$._rendererInterfaces[kt];rn==null?console.warn('Invalid renderer id "'.concat(kt,'" for element "').concat(rt,'"')):rn.overrideValueAtPath(bt,rt,qe,xt,sn)}),pt(Fe($),"overrideContext",function(oe){var qe=oe.id,rt=oe.path,xt=oe.rendererID,kt=oe.wasForwarded,bt=oe.value;kt||$.overrideValueAtPath({id:qe,path:rt,rendererID:xt,type:"context",value:bt})}),pt(Fe($),"overrideHookState",function(oe){var qe=oe.id,rt=(oe.hookID,oe.path),xt=oe.rendererID,kt=oe.wasForwarded,bt=oe.value;kt||$.overrideValueAtPath({id:qe,path:rt,rendererID:xt,type:"hooks",value:bt})}),pt(Fe($),"overrideProps",function(oe){var qe=oe.id,rt=oe.path,xt=oe.rendererID,kt=oe.wasForwarded,bt=oe.value;kt||$.overrideValueAtPath({id:qe,path:rt,rendererID:xt,type:"props",value:bt})}),pt(Fe($),"overrideState",function(oe){var qe=oe.id,rt=oe.path,xt=oe.rendererID,kt=oe.wasForwarded,bt=oe.value;kt||$.overrideValueAtPath({id:qe,path:rt,rendererID:xt,type:"state",value:bt})}),pt(Fe($),"reloadAndProfile",function(oe){q("React::DevTools::reloadAndProfile","true"),q("React::DevTools::recordChangeDescriptions",oe?"true":"false"),$._bridge.send("reloadAppForProfiling")}),pt(Fe($),"renamePath",function(oe){var qe=oe.hookID,rt=oe.id,xt=oe.newPath,kt=oe.oldPath,bt=oe.rendererID,sn=oe.type,rn=$._rendererInterfaces[bt];rn==null?console.warn('Invalid renderer id "'.concat(bt,'" for element "').concat(rt,'"')):rn.renamePath(sn,rt,qe,kt,xt)}),pt(Fe($),"setTraceUpdatesEnabled",function(oe){for(var qe in $._traceUpdatesEnabled=oe,Vt(oe),$._rendererInterfaces)$._rendererInterfaces[qe].setTraceUpdatesEnabled(oe)}),pt(Fe($),"syncSelectionFromNativeElementsPanel",function(){var oe=window.__REACT_DEVTOOLS_GLOBAL_HOOK__.$0;oe!=null&&$.selectNode(oe)}),pt(Fe($),"shutdown",function(){$.emit("shutdown")}),pt(Fe($),"startProfiling",function(oe){for(var qe in $._recordChangeDescriptions=oe,$._isProfiling=!0,$._rendererInterfaces)$._rendererInterfaces[qe].startProfiling(oe);$._bridge.send("profilingStatus",$._isProfiling)}),pt(Fe($),"stopProfiling",function(){for(var oe in $._isProfiling=!1,$._recordChangeDescriptions=!1,$._rendererInterfaces)$._rendererInterfaces[oe].stopProfiling();$._bridge.send("profilingStatus",$._isProfiling)}),pt(Fe($),"storeAsGlobal",function(oe){var qe=oe.count,rt=oe.id,xt=oe.path,kt=oe.rendererID,bt=$._rendererInterfaces[kt];bt==null?console.warn('Invalid renderer id "'.concat(kt,'" for element "').concat(rt,'"')):bt.storeAsGlobal(rt,xt,qe)}),pt(Fe($),"updateConsolePatchSettings",function(oe){var qe=oe.appendComponentStack,rt=oe.breakOnConsoleErrors;qe||rt?Jl({appendComponentStack:qe,breakOnConsoleErrors:rt}):Ct!==null&&(Ct(),Ct=null)}),pt(Fe($),"updateComponentFilters",function(oe){for(var qe in $._rendererInterfaces)$._rendererInterfaces[qe].updateComponentFilters(oe)}),pt(Fe($),"viewAttributeSource",function(oe){var qe=oe.id,rt=oe.path,xt=oe.rendererID,kt=$._rendererInterfaces[xt];kt==null?console.warn('Invalid renderer id "'.concat(xt,'" for element "').concat(qe,'"')):kt.prepareViewAttributeSource(qe,rt)}),pt(Fe($),"viewElementSource",function(oe){var qe=oe.id,rt=oe.rendererID,xt=$._rendererInterfaces[rt];xt==null?console.warn('Invalid renderer id "'.concat(rt,'" for element "').concat(qe,'"')):xt.prepareViewElementSource(qe)}),pt(Fe($),"onTraceUpdates",function(oe){$.emit("traceUpdates",oe)}),pt(Fe($),"onHookOperations",function(oe){if($._bridge.send("operations",oe),$._persistedSelection!==null){var qe=oe[0];if($._persistedSelection.rendererID===qe){var rt=$._rendererInterfaces[qe];if(rt==null)console.warn('Invalid renderer id "'.concat(qe,'"'));else{var xt=$._persistedSelectionMatch,kt=rt.getBestMatchForTrackedPath();$._persistedSelectionMatch=kt;var bt=xt!==null?xt.id:null,sn=kt!==null?kt.id:null;bt!==sn&&sn!==null&&$._bridge.send("selectFiber",sn),kt!==null&&kt.isFullMatch&&($._persistedSelection=null,$._persistedSelectionMatch=null,rt.setTrackedPath(null))}}}}),pt(Fe($),"_throttledPersistSelection",N()(function(oe,qe){var rt=$._rendererInterfaces[oe],xt=rt!=null?rt.getPathForElement(qe):null;xt!==null?q("React::DevTools::lastSelection",JSON.stringify({rendererID:oe,path:xt})):j("React::DevTools::lastSelection")},1e3)),x("React::DevTools::reloadAndProfile")==="true"&&($._recordChangeDescriptions=x("React::DevTools::recordChangeDescriptions")==="true",$._isProfiling=!0,j("React::DevTools::recordChangeDescriptions"),j("React::DevTools::reloadAndProfile"));var Ne=x("React::DevTools::lastSelection");Ne!=null&&($._persistedSelection=JSON.parse(Ne)),$._bridge=Oe,Oe.addListener("copyElementPath",$.copyElementPath),Oe.addListener("deletePath",$.deletePath),Oe.addListener("getProfilingData",$.getProfilingData),Oe.addListener("getProfilingStatus",$.getProfilingStatus),Oe.addListener("getOwnersList",$.getOwnersList),Oe.addListener("inspectElement",$.inspectElement),Oe.addListener("logElementToConsole",$.logElementToConsole),Oe.addListener("overrideSuspense",$.overrideSuspense),Oe.addListener("overrideValueAtPath",$.overrideValueAtPath),Oe.addListener("reloadAndProfile",$.reloadAndProfile),Oe.addListener("renamePath",$.renamePath),Oe.addListener("setTraceUpdatesEnabled",$.setTraceUpdatesEnabled),Oe.addListener("startProfiling",$.startProfiling),Oe.addListener("stopProfiling",$.stopProfiling),Oe.addListener("storeAsGlobal",$.storeAsGlobal),Oe.addListener("syncSelectionFromNativeElementsPanel",$.syncSelectionFromNativeElementsPanel),Oe.addListener("shutdown",$.shutdown),Oe.addListener("updateConsolePatchSettings",$.updateConsolePatchSettings),Oe.addListener("updateComponentFilters",$.updateComponentFilters),Oe.addListener("viewAttributeSource",$.viewAttributeSource),Oe.addListener("viewElementSource",$.viewElementSource),Oe.addListener("overrideContext",$.overrideContext),Oe.addListener("overrideHookState",$.overrideHookState),Oe.addListener("overrideProps",$.overrideProps),Oe.addListener("overrideState",$.overrideState),$._isProfiling&&Oe.send("profilingStatus",!0);var Je,vt=!1;try{localStorage.getItem("test"),vt=!0}catch{}return Oe.send("isBackendStorageAPISupported",vt),Re(Oe,Fe($)),Je=Fe($),Je.addListener("traceUpdates",Er),$}return H=_e,(Y=[{key:"getInstanceAndStyle",value:function(Oe){var $=Oe.id,Ne=Oe.rendererID,Je=this._rendererInterfaces[Ne];return Je==null?(console.warn('Invalid renderer id "'.concat(Ne,'"')),null):Je.getInstanceAndStyle($)}},{key:"getIDForNode",value:function(Oe){for(var $ in this._rendererInterfaces){var Ne=this._rendererInterfaces[$];try{var Je=Ne.getFiberIDForNative(Oe,!0);if(Je!==null)return Je}catch{}}return null}},{key:"selectNode",value:function(Oe){var $=this.getIDForNode(Oe);$!==null&&this._bridge.send("selectFiber",$)}},{key:"setRendererInterface",value:function(Oe,$){this._rendererInterfaces[Oe]=$,this._isProfiling&&$.startProfiling(this._recordChangeDescriptions),$.setTraceUpdatesEnabled(this._traceUpdatesEnabled);var Ne=this._persistedSelection;Ne!==null&&Ne.rendererID===Oe&&$.setTrackedPath(Ne.path)}},{key:"onUnsupportedRenderer",value:function(Oe){this._bridge.send("unsupportedRendererVersion",Oe)}},{key:"rendererInterfaces",get:function(){return this._rendererInterfaces}}])&&vs(H.prototype,Y),ee&&vs(H,ee),_e}(E);function Cn(U){return(Cn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(H){return typeof H}:function(H){return H&&typeof Symbol=="function"&&H.constructor===Symbol&&H!==Symbol.prototype?"symbol":typeof H})(U)}function cr(U){return function(H){if(Array.isArray(H))return Si(H)}(U)||function(H){if(typeof Symbol<"u"&&Symbol.iterator in Object(H))return Array.from(H)}(U)||function(H,Y){if(!!H){if(typeof H=="string")return Si(H,Y);var ee=Object.prototype.toString.call(H).slice(8,-1);if(ee==="Object"&&H.constructor&&(ee=H.constructor.name),ee==="Map"||ee==="Set")return Array.from(H);if(ee==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(ee))return Si(H,Y)}}(U)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function Si(U,H){(H==null||H>U.length)&&(H=U.length);for(var Y=0,ee=new Array(H);Y"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}();return function(){var Y,ee=Fo(U);if(H){var Ce=Fo(this).constructor;Y=Reflect.construct(ee,arguments,Ce)}else Y=ee.apply(this,arguments);return wu(this,Y)}}function wu(U,H){return!H||Cn(H)!=="object"&&typeof H!="function"?Ti(U):H}function Ti(U){if(U===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return U}function Fo(U){return(Fo=Object.setPrototypeOf?Object.getPrototypeOf:function(H){return H.__proto__||Object.getPrototypeOf(H)})(U)}function Mu(U,H,Y){return H in U?Object.defineProperty(U,H,{value:Y,enumerable:!0,configurable:!0,writable:!0}):U[H]=Y,U}var po=function(U){(function(Oe,$){if(typeof $!="function"&&$!==null)throw new TypeError("Super expression must either be null or a function");Oe.prototype=Object.create($&&$.prototype,{constructor:{value:Oe,writable:!0,configurable:!0}}),$&&ju(Oe,$)})(_e,U);var H,Y,ee,Ce=zu(_e);function _e(Oe){var $;return function(Ne,Je){if(!(Ne instanceof Je))throw new TypeError("Cannot call a class as a function")}(this,_e),Mu(Ti($=Ce.call(this)),"_isShutdown",!1),Mu(Ti($),"_messageQueue",[]),Mu(Ti($),"_timeoutID",null),Mu(Ti($),"_wallUnlisten",null),Mu(Ti($),"_flush",function(){if($._timeoutID!==null&&(clearTimeout($._timeoutID),$._timeoutID=null),$._messageQueue.length){for(var Ne=0;Ne<$._messageQueue.length;Ne+=2){var Je;(Je=$._wall).send.apply(Je,[$._messageQueue[Ne]].concat(cr($._messageQueue[Ne+1])))}$._messageQueue.length=0,$._timeoutID=setTimeout($._flush,100)}}),Mu(Ti($),"overrideValueAtPath",function(Ne){var Je=Ne.id,vt=Ne.path,oe=Ne.rendererID,qe=Ne.type,rt=Ne.value;switch(qe){case"context":$.send("overrideContext",{id:Je,path:vt,rendererID:oe,wasForwarded:!0,value:rt});break;case"hooks":$.send("overrideHookState",{id:Je,path:vt,rendererID:oe,wasForwarded:!0,value:rt});break;case"props":$.send("overrideProps",{id:Je,path:vt,rendererID:oe,wasForwarded:!0,value:rt});break;case"state":$.send("overrideState",{id:Je,path:vt,rendererID:oe,wasForwarded:!0,value:rt})}}),$._wall=Oe,$._wallUnlisten=Oe.listen(function(Ne){Ti($).emit(Ne.event,Ne.payload)})||null,$.addListener("overrideValueAtPath",$.overrideValueAtPath),$}return H=_e,(Y=[{key:"send",value:function(Oe){if(this._isShutdown)console.warn('Cannot send message "'.concat(Oe,'" through a Bridge that has been shutdown.'));else{for(var $=arguments.length,Ne=new Array($>1?$-1:0),Je=1;Je<$;Je++)Ne[Je-1]=arguments[Je];this._messageQueue.push(Oe,Ne),this._timeoutID||(this._timeoutID=setTimeout(this._flush,0))}}},{key:"shutdown",value:function(){if(this._isShutdown)console.warn("Bridge was already shutdown.");else{this.send("shutdown"),this._isShutdown=!0,this.addListener=function(){},this.emit=function(){},this.removeAllListeners();var Oe=this._wallUnlisten;Oe&&Oe();do this._flush();while(this._messageQueue.length);this._timeoutID!==null&&(clearTimeout(this._timeoutID),this._timeoutID=null)}}},{key:"wall",get:function(){return this._wall}}])&&Ou(H.prototype,Y),ee&&Ou(H,ee),_e}(E);function Hu(U,H,Y){var ee=U[H];return U[H]=function(Ce){return Y.call(this,ee,arguments)},ee}function Pa(U,H){for(var Y in H)U[Y]=H[Y]}function v0(U){typeof U.forceUpdate=="function"?U.forceUpdate():U.updater!=null&&typeof U.updater.enqueueForceUpdate=="function"&&U.updater.enqueueForceUpdate(this,function(){},"forceUpdate")}function ia(U,H){var Y=Object.keys(U);if(Object.getOwnPropertySymbols){var ee=Object.getOwnPropertySymbols(U);H&&(ee=ee.filter(function(Ce){return Object.getOwnPropertyDescriptor(U,Ce).enumerable})),Y.push.apply(Y,ee)}return Y}function J0(U){for(var H=1;H0?oe[oe.length-1]:0),oe.push(un),$.set(et,Je(It._topLevelWrapper));try{var fn=ut.apply(this,wt);return oe.pop(),fn}catch(wr){throw oe=[],wr}finally{if(oe.length===0){var Jn=$.get(et);if(Jn===void 0)throw new Error("Expected to find root ID.");dr(Jn)}}},performUpdateIfNecessary:function(ut,wt){var et=wt[0];if(S0(et)===9)return ut.apply(this,wt);var It=Je(et);oe.push(It);var un=Qn(et);try{var fn=ut.apply(this,wt),Jn=Qn(et);return vt(un,Jn)||xt(et,It,Jn),oe.pop(),fn}catch(au){throw oe=[],au}finally{if(oe.length===0){var wr=$.get(et);if(wr===void 0)throw new Error("Expected to find root ID.");dr(wr)}}},receiveComponent:function(ut,wt){var et=wt[0];if(S0(et)===9)return ut.apply(this,wt);var It=Je(et);oe.push(It);var un=Qn(et);try{var fn=ut.apply(this,wt),Jn=Qn(et);return vt(un,Jn)||xt(et,It,Jn),oe.pop(),fn}catch(au){throw oe=[],au}finally{if(oe.length===0){var wr=$.get(et);if(wr===void 0)throw new Error("Expected to find root ID.");dr(wr)}}},unmountComponent:function(ut,wt){var et=wt[0];if(S0(et)===9)return ut.apply(this,wt);var It=Je(et);oe.push(It);try{var un=ut.apply(this,wt);return oe.pop(),function(Jn,wr){rn.push(wr),_e.delete(wr)}(0,It),un}catch(Jn){throw oe=[],Jn}finally{if(oe.length===0){var fn=$.get(et);if(fn===void 0)throw new Error("Expected to find root ID.");dr(fn)}}}}));var bt=[],sn=new Map,rn=[],Ft=0,Dn=null;function dr(ut){if(bt.length!==0||rn.length!==0||Dn!==null){var wt=rn.length+(Dn===null?0:1),et=new Array(3+Ft+(wt>0?2+wt:0)+bt.length),It=0;if(et[It++]=H,et[It++]=ut,et[It++]=Ft,sn.forEach(function(Jn,wr){et[It++]=wr.length;for(var au=Y0(wr),ku=0;ku0){et[It++]=2,et[It++]=wt;for(var un=0;un"),"color: var(--dom-tag-name-color); font-weight: normal;"),wt.props!==null&&console.log("Props:",wt.props),wt.state!==null&&console.log("State:",wt.state),wt.context!==null&&console.log("Context:",wt.context);var It=Ce(ut);It!==null&&console.log("Node:",It),(window.chrome||/firefox/i.test(navigator.userAgent))&&console.log("Right-click any value to save it as a global variable for further inspection."),et&&console.groupEnd()}else console.warn('Could not find element with id "'.concat(ut,'"'))},overrideSuspense:function(){throw new Error("overrideSuspense not supported by this renderer")},overrideValueAtPath:function(ut,wt,et,It,un){var fn=_e.get(wt);if(fn!=null){var Jn=fn._instance;if(Jn!=null)switch(ut){case"context":Oo(Jn.context,It,un),v0(Jn);break;case"hooks":throw new Error("Hooks not supported by this renderer");case"props":var wr=fn._currentElement;fn._currentElement=J0(J0({},wr),{},{props:In(wr.props,It,un)}),v0(Jn);break;case"state":Oo(Jn.state,It,un),v0(Jn)}}},renamePath:function(ut,wt,et,It,un){var fn=_e.get(wt);if(fn!=null){var Jn=fn._instance;if(Jn!=null)switch(ut){case"context":Kr(Jn.context,It,un),v0(Jn);break;case"hooks":throw new Error("Hooks not supported by this renderer");case"props":var wr=fn._currentElement;fn._currentElement=J0(J0({},wr),{},{props:en(wr.props,It,un)}),v0(Jn);break;case"state":Kr(Jn.state,It,un),v0(Jn)}}},prepareViewAttributeSource:function(ut,wt){var et=Lr(ut);et!==null&&(window.$attribute=Bu(et,wt))},prepareViewElementSource:function(ut){var wt=_e.get(ut);if(wt!=null){var et=wt._currentElement;et!=null?ee.$type=et.type:console.warn('Could not find element with id "'.concat(ut,'"'))}else console.warn('Could not find instance with id "'.concat(ut,'"'))},renderer:Y,setTraceUpdatesEnabled:function(ut){},setTrackedPath:function(ut){},startProfiling:function(){},stopProfiling:function(){},storeAsGlobal:function(ut,wt,et){var It=Lr(ut);if(It!==null){var un=Bu(It,wt),fn="$reactTemp".concat(et);window[fn]=un,console.log(fn),console.log(un)}},updateComponentFilters:function(ut){}}}function si(U,H){var Y=!1,ee={bottom:0,left:0,right:0,top:0},Ce=H[U];if(Ce!=null){for(var _e=0,Oe=Object.keys(ee);_e0?"development":"production";var bt=Function.prototype.toString;if(kt.Mount&&kt.Mount._renderNewRootComponent){var sn=bt.call(kt.Mount._renderNewRootComponent);return sn.indexOf("function")!==0?"production":sn.indexOf("storedMeasure")!==-1?"development":sn.indexOf("should be a pure function")!==-1?sn.indexOf("NODE_ENV")!==-1||sn.indexOf("development")!==-1||sn.indexOf("true")!==-1?"development":sn.indexOf("nextElement")!==-1||sn.indexOf("nextComponent")!==-1?"unminified":"development":sn.indexOf("nextElement")!==-1||sn.indexOf("nextComponent")!==-1?"unminified":"outdated"}}catch{}return"production"}(Ne);try{var oe=window.__REACT_DEVTOOLS_APPEND_COMPONENT_STACK__!==!1,qe=window.__REACT_DEVTOOLS_BREAK_ON_CONSOLE_ERRORS__===!0;(oe||qe)&&(co(Ne),Jl({appendComponentStack:oe,breakOnConsoleErrors:qe}))}catch{}var rt=U.__REACT_DEVTOOLS_ATTACH__;if(typeof rt=="function"){var xt=rt($,Je,Ne,U);$.rendererInterfaces.set(Je,xt)}return $.emit("renderer",{id:Je,renderer:Ne,reactBuildType:vt}),Je},on:function(Ne,Je){_e[Ne]||(_e[Ne]=[]),_e[Ne].push(Je)},off:function(Ne,Je){if(_e[Ne]){var vt=_e[Ne].indexOf(Je);vt!==-1&&_e[Ne].splice(vt,1),_e[Ne].length||delete _e[Ne]}},sub:function(Ne,Je){return $.on(Ne,Je),function(){return $.off(Ne,Je)}},supportsFiber:!0,checkDCE:function(Ne){try{Function.prototype.toString.call(Ne).indexOf("^_^")>-1&&(Y=!0,setTimeout(function(){throw new Error("React is running in production mode, but dead code elimination has not been applied. Read how to correctly configure React for production: https://reactjs.org/link/perf-use-production-build")}))}catch{}},onCommitFiberUnmount:function(Ne,Je){var vt=Ce.get(Ne);vt!=null&&vt.handleCommitFiberUnmount(Je)},onCommitFiberRoot:function(Ne,Je,vt){var oe=$.getFiberRoots(Ne),qe=Je.current,rt=oe.has(Je),xt=qe.memoizedState==null||qe.memoizedState.element==null;rt||xt?rt&&xt&&oe.delete(Je):oe.add(Je);var kt=Ce.get(Ne);kt!=null&&kt.handleCommitFiberRoot(Je,vt)}};Object.defineProperty(U,"__REACT_DEVTOOLS_GLOBAL_HOOK__",{configurable:!1,enumerable:!1,get:function(){return $}})})(window);var m0=window.__REACT_DEVTOOLS_GLOBAL_HOOK__,Us=[{type:1,value:7,isEnabled:!0}];function zi(U){if(m0!=null){var H=U||{},Y=H.host,ee=Y===void 0?"localhost":Y,Ce=H.nativeStyleEditorValidAttributes,_e=H.useHttps,Oe=_e!==void 0&&_e,$=H.port,Ne=$===void 0?8097:$,Je=H.websocket,vt=H.resolveRNStyle,oe=vt===void 0?null:vt,qe=H.isAppActive,rt=Oe?"wss":"ws",xt=null;if((qe===void 0?function(){return!0}:qe)()){var kt=null,bt=[],sn=rt+"://"+ee+":"+Ne,rn=Je||new window.WebSocket(sn);rn.onclose=function(){kt!==null&&kt.emit("shutdown"),Ft()},rn.onerror=function(){Ft()},rn.onmessage=function(Dn){var dr;try{if(typeof Dn.data!="string")throw Error();dr=JSON.parse(Dn.data)}catch{return void console.error("[React DevTools] Failed to parse JSON: "+Dn.data)}bt.forEach(function(er){try{er(dr)}catch(Cr){throw console.log("[React DevTools] Error calling listener",dr),console.log("error:",Cr),Cr}})},rn.onopen=function(){(kt=new po({listen:function(Rn){return bt.push(Rn),function(){var Nr=bt.indexOf(Rn);Nr>=0&&bt.splice(Nr,1)}},send:function(Rn,Nr,y0){rn.readyState===rn.OPEN?rn.send(JSON.stringify({event:Rn,payload:Nr})):(kt!==null&&kt.shutdown(),Ft())}})).addListener("inspectElement",function(Rn){var Nr=Rn.id,y0=Rn.rendererID,Lr=Dn.rendererInterfaces[y0];if(Lr!=null){var ut=Lr.findNativeNodesForFiberID(Nr);ut!=null&&ut[0]!=null&&Dn.emit("showNativeHighlight",ut[0])}}),kt.addListener("updateComponentFilters",function(Rn){Us=Rn}),window.__REACT_DEVTOOLS_COMPONENT_FILTERS__==null&&kt.send("overrideComponentFilters",Us);var Dn=new Yn(kt);if(Dn.addListener("shutdown",function(){m0.emit("shutdown")}),function(Rn,Nr,y0){if(Rn==null)return function(){};var Lr=[Rn.sub("renderer-attached",function(et){var It=et.id,un=(et.renderer,et.rendererInterface);Nr.setRendererInterface(It,un),un.flushInitialOperations()}),Rn.sub("unsupported-renderer-version",function(et){Nr.onUnsupportedRenderer(et)}),Rn.sub("operations",Nr.onHookOperations),Rn.sub("traceUpdates",Nr.onTraceUpdates)],ut=function(et,It){var un=Rn.rendererInterfaces.get(et);un==null&&(typeof It.findFiberByHostInstance=="function"?un=Is(Rn,et,It,y0):It.ComponentTree&&(un=ac(Rn,et,It,y0)),un!=null&&Rn.rendererInterfaces.set(et,un)),un!=null?Rn.emit("renderer-attached",{id:et,renderer:It,rendererInterface:un}):Rn.emit("unsupported-renderer-version",et)};Rn.renderers.forEach(function(et,It){ut(It,et)}),Lr.push(Rn.sub("renderer",function(et){var It=et.id,un=et.renderer;ut(It,un)})),Rn.emit("react-devtools",Nr),Rn.reactDevtoolsAgent=Nr;var wt=function(){Lr.forEach(function(et){return et()}),Rn.rendererInterfaces.forEach(function(et){et.cleanup()}),Rn.reactDevtoolsAgent=null};Nr.addListener("shutdown",wt),Lr.push(function(){Nr.removeListener("shutdown",wt)})}(m0,Dn,window),oe!=null||m0.resolveRNStyle!=null)oa(kt,Dn,oe||m0.resolveRNStyle,Ce||m0.nativeStyleEditorValidAttributes||null);else{var dr,er,Cr=function(){kt!==null&&oa(kt,Dn,dr,er)};m0.hasOwnProperty("resolveRNStyle")||Object.defineProperty(m0,"resolveRNStyle",{enumerable:!1,get:function(){return dr},set:function(Rn){dr=Rn,Cr()}}),m0.hasOwnProperty("nativeStyleEditorValidAttributes")||Object.defineProperty(m0,"nativeStyleEditorValidAttributes",{enumerable:!1,get:function(){return er},set:function(Rn){er=Rn,Cr()}})}}}else Ft()}function Ft(){xt===null&&(xt=setTimeout(function(){return zi(U)},2e3))}}}])})});var FC=nt(LC=>{"use strict";Object.defineProperty(LC,"__esModule",{value:!0});kC();var wb=NC();wb.connectToDevTools()});var UC=nt(sg=>{"use strict";var BC=sg&&sg.__importDefault||function(o){return o&&o.__esModule?o:{default:o}};Object.defineProperty(sg,"__esModule",{value:!0});var PC=z_(),Sb=BC(YS()),IC=BC(eh()),ps=BD();process.env.DEV==="true"&&FC();var bC=o=>{o==null||o.unsetMeasureFunc(),o==null||o.freeRecursive()};sg.default=Sb.default({schedulePassiveEffects:PC.unstable_scheduleCallback,cancelPassiveEffects:PC.unstable_cancelCallback,now:Date.now,getRootHostContext:()=>({isInsideText:!1}),prepareForCommit:()=>{},resetAfterCommit:o=>{if(o.isStaticDirty){o.isStaticDirty=!1,typeof o.onImmediateRender=="function"&&o.onImmediateRender();return}typeof o.onRender=="function"&&o.onRender()},getChildHostContext:(o,l)=>{let f=o.isInsideText,h=l==="ink-text"||l==="ink-virtual-text";return f===h?o:{isInsideText:h}},shouldSetTextContent:()=>!1,createInstance:(o,l,f,h)=>{if(h.isInsideText&&o==="ink-box")throw new Error(" can\u2019t be nested inside component");let E=o==="ink-text"&&h.isInsideText?"ink-virtual-text":o,t=ps.createNode(E);for(let[N,F]of Object.entries(l))N!=="children"&&(N==="style"?ps.setStyle(t,F):N==="internal_transform"?t.internal_transform=F:N==="internal_static"?t.internal_static=!0:ps.setAttribute(t,N,F));return t},createTextInstance:(o,l,f)=>{if(!f.isInsideText)throw new Error(`Text string "${o}" must be rendered inside component`);return ps.createTextNode(o)},resetTextContent:()=>{},hideTextInstance:o=>{ps.setTextNodeValue(o,"")},unhideTextInstance:(o,l)=>{ps.setTextNodeValue(o,l)},getPublicInstance:o=>o,hideInstance:o=>{var l;(l=o.yogaNode)===null||l===void 0||l.setDisplay(IC.default.DISPLAY_NONE)},unhideInstance:o=>{var l;(l=o.yogaNode)===null||l===void 0||l.setDisplay(IC.default.DISPLAY_FLEX)},appendInitialChild:ps.appendChildNode,appendChild:ps.appendChildNode,insertBefore:ps.insertBeforeNode,finalizeInitialChildren:(o,l,f,h)=>(o.internal_static&&(h.isStaticDirty=!0,h.staticNode=o),!1),supportsMutation:!0,appendChildToContainer:ps.appendChildNode,insertInContainerBefore:ps.insertBeforeNode,removeChildFromContainer:(o,l)=>{ps.removeChildNode(o,l),bC(l.yogaNode)},prepareUpdate:(o,l,f,h,E)=>{o.internal_static&&(E.isStaticDirty=!0);let t={},N=Object.keys(h);for(let F of N)if(h[F]!==f[F]){if(F==="style"&&typeof h.style=="object"&&typeof f.style=="object"){let x=h.style,j=f.style,q=Object.keys(x);for(let V of q){if(V==="borderStyle"||V==="borderColor"){if(typeof t.style!="object"){let re={};t.style=re}t.style.borderStyle=x.borderStyle,t.style.borderColor=x.borderColor}if(x[V]!==j[V]){if(typeof t.style!="object"){let re={};t.style=re}t.style[V]=x[V]}}continue}t[F]=h[F]}return t},commitUpdate:(o,l)=>{for(let[f,h]of Object.entries(l))f!=="children"&&(f==="style"?ps.setStyle(o,h):f==="internal_transform"?o.internal_transform=h:f==="internal_static"?o.internal_static=!0:ps.setAttribute(o,f,h))},commitTextUpdate:(o,l,f)=>{ps.setTextNodeValue(o,f)},removeChild:(o,l)=>{ps.removeChildNode(o,l),bC(l.yogaNode)}})});var zC=nt((sq,jC)=>{"use strict";jC.exports=(o,l=1,f)=>{if(f={indent:" ",includeEmptyLines:!1,...f},typeof o!="string")throw new TypeError(`Expected \`input\` to be a \`string\`, got \`${typeof o}\``);if(typeof l!="number")throw new TypeError(`Expected \`count\` to be a \`number\`, got \`${typeof l}\``);if(typeof f.indent!="string")throw new TypeError(`Expected \`options.indent\` to be a \`string\`, got \`${typeof f.indent}\``);if(l===0)return o;let h=f.includeEmptyLines?/^/gm:/^(?!\s*$)/gm;return o.replace(h,f.indent.repeat(l))}});var HC=nt(ag=>{"use strict";var Tb=ag&&ag.__importDefault||function(o){return o&&o.__esModule?o:{default:o}};Object.defineProperty(ag,"__esModule",{value:!0});var r4=Tb(eh());ag.default=o=>o.getComputedWidth()-o.getComputedPadding(r4.default.EDGE_LEFT)-o.getComputedPadding(r4.default.EDGE_RIGHT)-o.getComputedBorder(r4.default.EDGE_LEFT)-o.getComputedBorder(r4.default.EDGE_RIGHT)});var qC=nt((fq,Cb)=>{Cb.exports={single:{topLeft:"\u250C",topRight:"\u2510",bottomRight:"\u2518",bottomLeft:"\u2514",vertical:"\u2502",horizontal:"\u2500"},double:{topLeft:"\u2554",topRight:"\u2557",bottomRight:"\u255D",bottomLeft:"\u255A",vertical:"\u2551",horizontal:"\u2550"},round:{topLeft:"\u256D",topRight:"\u256E",bottomRight:"\u256F",bottomLeft:"\u2570",vertical:"\u2502",horizontal:"\u2500"},bold:{topLeft:"\u250F",topRight:"\u2513",bottomRight:"\u251B",bottomLeft:"\u2517",vertical:"\u2503",horizontal:"\u2501"},singleDouble:{topLeft:"\u2553",topRight:"\u2556",bottomRight:"\u255C",bottomLeft:"\u2559",vertical:"\u2551",horizontal:"\u2500"},doubleSingle:{topLeft:"\u2552",topRight:"\u2555",bottomRight:"\u255B",bottomLeft:"\u2558",vertical:"\u2502",horizontal:"\u2550"},classic:{topLeft:"+",topRight:"+",bottomRight:"+",bottomLeft:"+",vertical:"|",horizontal:"-"}}});var VC=nt((cq,c3)=>{"use strict";var WC=qC();c3.exports=WC;c3.exports.default=WC});var YC=nt((dq,GC)=>{"use strict";GC.exports=(o,l=process.argv)=>{let f=o.startsWith("-")?"":o.length===1?"-":"--",h=l.indexOf(f+o),E=l.indexOf("--");return h!==-1&&(E===-1||h{"use strict";var xb=hi("os"),KC=hi("tty"),df=YC(),{env:Xo}=process,h2;df("no-color")||df("no-colors")||df("color=false")||df("color=never")?h2=0:(df("color")||df("colors")||df("color=true")||df("color=always"))&&(h2=1);"FORCE_COLOR"in Xo&&(Xo.FORCE_COLOR==="true"?h2=1:Xo.FORCE_COLOR==="false"?h2=0:h2=Xo.FORCE_COLOR.length===0?1:Math.min(parseInt(Xo.FORCE_COLOR,10),3));function d3(o){return o===0?!1:{level:o,hasBasic:!0,has256:o>=2,has16m:o>=3}}function p3(o,l){if(h2===0)return 0;if(df("color=16m")||df("color=full")||df("color=truecolor"))return 3;if(df("color=256"))return 2;if(o&&!l&&h2===void 0)return 0;let f=h2||0;if(Xo.TERM==="dumb")return f;if(process.platform==="win32"){let h=xb.release().split(".");return Number(h[0])>=10&&Number(h[2])>=10586?Number(h[2])>=14931?3:2:1}if("CI"in Xo)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some(h=>h in Xo)||Xo.CI_NAME==="codeship"?1:f;if("TEAMCITY_VERSION"in Xo)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(Xo.TEAMCITY_VERSION)?1:0;if("GITHUB_ACTIONS"in Xo)return 1;if(Xo.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in Xo){let h=parseInt((Xo.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(Xo.TERM_PROGRAM){case"iTerm.app":return h>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(Xo.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(Xo.TERM)||"COLORTERM"in Xo?1:f}function Rb(o){let l=p3(o,o&&o.isTTY);return d3(l)}XC.exports={supportsColor:Rb,stdout:d3(p3(!0,KC.isatty(1))),stderr:d3(p3(!0,KC.isatty(2)))}});var ZC=nt((hq,JC)=>{"use strict";var Ab=(o,l,f)=>{let h=o.indexOf(l);if(h===-1)return o;let E=l.length,t=0,N="";do N+=o.substr(t,h-t)+l+f,t=h+E,h=o.indexOf(l,t);while(h!==-1);return N+=o.substr(t),N},Ob=(o,l,f,h)=>{let E=0,t="";do{let N=o[h-1]==="\r";t+=o.substr(E,(N?h-1:h)-E)+l+(N?`\r +`:` +`)+f,E=h+1,h=o.indexOf(` +`,E)}while(h!==-1);return t+=o.substr(E),t};JC.exports={stringReplaceAll:Ab,stringEncaseCRLFWithFirstIndex:Ob}});var r6=nt((vq,n6)=>{"use strict";var Mb=/(?:\\(u(?:[a-f\d]{4}|\{[a-f\d]{1,6}\})|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,$C=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,kb=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,Nb=/\\(u(?:[a-f\d]{4}|{[a-f\d]{1,6}})|x[a-f\d]{2}|.)|([^\\])/gi,Lb=new Map([["n",` +`],["r","\r"],["t"," "],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e","\x1B"],["a","\x07"]]);function t6(o){let l=o[0]==="u",f=o[1]==="{";return l&&!f&&o.length===5||o[0]==="x"&&o.length===3?String.fromCharCode(parseInt(o.slice(1),16)):l&&f?String.fromCodePoint(parseInt(o.slice(2,-1),16)):Lb.get(o)||o}function Fb(o,l){let f=[],h=l.trim().split(/\s*,\s*/g),E;for(let t of h){let N=Number(t);if(!Number.isNaN(N))f.push(N);else if(E=t.match(kb))f.push(E[2].replace(Nb,(F,k,x)=>k?t6(k):x));else throw new Error(`Invalid Chalk template style argument: ${t} (in style '${o}')`)}return f}function Pb(o){$C.lastIndex=0;let l=[],f;for(;(f=$C.exec(o))!==null;){let h=f[1];if(f[2]){let E=Fb(h,f[2]);l.push([h].concat(E))}else l.push([h])}return l}function e6(o,l){let f={};for(let E of l)for(let t of E.styles)f[t[0]]=E.inverse?null:t.slice(1);let h=o;for(let[E,t]of Object.entries(f))if(!!Array.isArray(t)){if(!(E in h))throw new Error(`Unknown Chalk style: ${E}`);h=t.length>0?h[E](...t):h[E]}return h}n6.exports=(o,l)=>{let f=[],h=[],E=[];if(l.replace(Mb,(t,N,F,k,x,j)=>{if(N)E.push(t6(N));else if(k){let q=E.join("");E=[],h.push(f.length===0?q:e6(o,f)(q)),f.push({inverse:F,styles:Pb(k)})}else if(x){if(f.length===0)throw new Error("Found extraneous } in Chalk template literal");h.push(e6(o,f)(E.join(""))),E=[],f.pop()}else E.push(j)}),h.push(E.join("")),f.length>0){let t=`Chalk template literal is missing ${f.length} closing bracket${f.length===1?"":"s"} (\`}\`)`;throw new Error(t)}return h.join("")}});var s4=nt((mq,a6)=>{"use strict";var fg=G_(),{stdout:v3,stderr:m3}=QC(),{stringReplaceAll:Ib,stringEncaseCRLFWithFirstIndex:bb}=ZC(),{isArray:i4}=Array,u6=["ansi","ansi","ansi256","ansi16m"],nm=Object.create(null),Bb=(o,l={})=>{if(l.level&&!(Number.isInteger(l.level)&&l.level>=0&&l.level<=3))throw new Error("The `level` option should be an integer from 0 to 3");let f=v3?v3.level:0;o.level=l.level===void 0?f:l.level},y3=class{constructor(l){return o6(l)}},o6=o=>{let l={};return Bb(l,o),l.template=(...f)=>s6(l.template,...f),Object.setPrototypeOf(l,u4.prototype),Object.setPrototypeOf(l.template,l),l.template.constructor=()=>{throw new Error("`chalk.constructor()` is deprecated. Use `new chalk.Instance()` instead.")},l.template.Instance=y3,l.template};function u4(o){return o6(o)}for(let[o,l]of Object.entries(fg))nm[o]={get(){let f=o4(this,g3(l.open,l.close,this._styler),this._isEmpty);return Object.defineProperty(this,o,{value:f}),f}};nm.visible={get(){let o=o4(this,this._styler,!0);return Object.defineProperty(this,"visible",{value:o}),o}};var l6=["rgb","hex","keyword","hsl","hsv","hwb","ansi","ansi256"];for(let o of l6)nm[o]={get(){let{level:l}=this;return function(...f){let h=g3(fg.color[u6[l]][o](...f),fg.color.close,this._styler);return o4(this,h,this._isEmpty)}}};for(let o of l6){let l="bg"+o[0].toUpperCase()+o.slice(1);nm[l]={get(){let{level:f}=this;return function(...h){let E=g3(fg.bgColor[u6[f]][o](...h),fg.bgColor.close,this._styler);return o4(this,E,this._isEmpty)}}}}var Ub=Object.defineProperties(()=>{},{...nm,level:{enumerable:!0,get(){return this._generator.level},set(o){this._generator.level=o}}}),g3=(o,l,f)=>{let h,E;return f===void 0?(h=o,E=l):(h=f.openAll+o,E=l+f.closeAll),{open:o,close:l,openAll:h,closeAll:E,parent:f}},o4=(o,l,f)=>{let h=(...E)=>i4(E[0])&&i4(E[0].raw)?i6(h,s6(h,...E)):i6(h,E.length===1?""+E[0]:E.join(" "));return Object.setPrototypeOf(h,Ub),h._generator=o,h._styler=l,h._isEmpty=f,h},i6=(o,l)=>{if(o.level<=0||!l)return o._isEmpty?"":l;let f=o._styler;if(f===void 0)return l;let{openAll:h,closeAll:E}=f;if(l.indexOf("\x1B")!==-1)for(;f!==void 0;)l=Ib(l,f.close,f.open),f=f.parent;let t=l.indexOf(` +`);return t!==-1&&(l=bb(l,E,h,t)),h+l+E},h3,s6=(o,...l)=>{let[f]=l;if(!i4(f)||!i4(f.raw))return l.join(" ");let h=l.slice(1),E=[f.raw[0]];for(let t=1;t{"use strict";var jb=dg&&dg.__importDefault||function(o){return o&&o.__esModule?o:{default:o}};Object.defineProperty(dg,"__esModule",{value:!0});var cg=jb(s4()),zb=/^(rgb|hsl|hsv|hwb)\(\s?(\d+),\s?(\d+),\s?(\d+)\s?\)$/,Hb=/^(ansi|ansi256)\(\s?(\d+)\s?\)$/,a4=(o,l)=>l==="foreground"?o:"bg"+o[0].toUpperCase()+o.slice(1);dg.default=(o,l,f)=>{if(!l)return o;if(l in cg.default){let E=a4(l,f);return cg.default[E](o)}if(l.startsWith("#")){let E=a4("hex",f);return cg.default[E](l)(o)}if(l.startsWith("ansi")){let E=Hb.exec(l);if(!E)return o;let t=a4(E[1],f),N=Number(E[2]);return cg.default[t](N)(o)}if(l.startsWith("rgb")||l.startsWith("hsl")||l.startsWith("hsv")||l.startsWith("hwb")){let E=zb.exec(l);if(!E)return o;let t=a4(E[1],f),N=Number(E[2]),F=Number(E[3]),k=Number(E[4]);return cg.default[t](N,F,k)(o)}return o}});var c6=nt(pg=>{"use strict";var f6=pg&&pg.__importDefault||function(o){return o&&o.__esModule?o:{default:o}};Object.defineProperty(pg,"__esModule",{value:!0});var qb=f6(VC()),E3=f6(_3());pg.default=(o,l,f,h)=>{if(typeof f.style.borderStyle=="string"){let E=f.yogaNode.getComputedWidth(),t=f.yogaNode.getComputedHeight(),N=f.style.borderColor,F=qb.default[f.style.borderStyle],k=E3.default(F.topLeft+F.horizontal.repeat(E-2)+F.topRight,N,"foreground"),x=(E3.default(F.vertical,N,"foreground")+` +`).repeat(t-2),j=E3.default(F.bottomLeft+F.horizontal.repeat(E-2)+F.bottomRight,N,"foreground");h.write(o,l,k,{transformers:[]}),h.write(o,l+1,x,{transformers:[]}),h.write(o+E-1,l+1,x,{transformers:[]}),h.write(o,l+t-1,j,{transformers:[]})}}});var p6=nt(hg=>{"use strict";var ih=hg&&hg.__importDefault||function(o){return o&&o.__esModule?o:{default:o}};Object.defineProperty(hg,"__esModule",{value:!0});var Wb=ih(eh()),Vb=ih(xD()),Gb=ih(zC()),Yb=ih(PD()),Kb=ih(HC()),Xb=ih(bD()),Qb=ih(c6()),Jb=(o,l)=>{var f;let h=(f=o.childNodes[0])===null||f===void 0?void 0:f.yogaNode;if(h){let E=h.getComputedLeft(),t=h.getComputedTop();l=` +`.repeat(t)+Gb.default(l,E)}return l},d6=(o,l,f)=>{var h;let{offsetX:E=0,offsetY:t=0,transformers:N=[],skipStaticElements:F}=f;if(F&&o.internal_static)return;let{yogaNode:k}=o;if(k){if(k.getDisplay()===Wb.default.DISPLAY_NONE)return;let x=E+k.getComputedLeft(),j=t+k.getComputedTop(),q=N;if(typeof o.internal_transform=="function"&&(q=[o.internal_transform,...N]),o.nodeName==="ink-text"){let V=Xb.default(o);if(V.length>0){let re=Vb.default(V),y=Kb.default(k);if(re>y){let me=(h=o.style.textWrap)!==null&&h!==void 0?h:"wrap";V=Yb.default(V,y,me)}V=Jb(o,V),l.write(x,j,V,{transformers:q})}return}if(o.nodeName==="ink-box"&&Qb.default(x,j,o,l),o.nodeName==="ink-root"||o.nodeName==="ink-box")for(let V of o.childNodes)d6(V,l,{offsetX:x,offsetY:j,transformers:q,skipStaticElements:F})}};hg.default=d6});var v6=nt((Eq,h6)=>{"use strict";h6.exports=o=>{o=Object.assign({onlyFirst:!1},o);let l=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:[a-zA-Z\\d]*(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");return new RegExp(l,o.onlyFirst?void 0:"g")}});var y6=nt((Dq,D3)=>{"use strict";var Zb=v6(),m6=o=>typeof o=="string"?o.replace(Zb(),""):o;D3.exports=m6;D3.exports.default=m6});var E6=nt((wq,_6)=>{"use strict";var g6="[\uD800-\uDBFF][\uDC00-\uDFFF]";_6.exports=o=>o&&o.exact?new RegExp(`^${g6}$`):new RegExp(g6,"g")});var w6=nt((Sq,w3)=>{"use strict";var $b=y6(),eB=E6(),D6=o=>$b(o).replace(eB()," ").length;w3.exports=D6;w3.exports.default=D6});var C6=nt(vg=>{"use strict";var T6=vg&&vg.__importDefault||function(o){return o&&o.__esModule?o:{default:o}};Object.defineProperty(vg,"__esModule",{value:!0});var S6=T6(LD()),tB=T6(w6()),S3=class{constructor(l){this.writes=[];let{width:f,height:h}=l;this.width=f,this.height=h}write(l,f,h,E){let{transformers:t}=E;!h||this.writes.push({x:l,y:f,text:h,transformers:t})}get(){let l=[];for(let h=0;hh.trimRight()).join(` +`),height:l.length}}};vg.default=S3});var A6=nt(mg=>{"use strict";var T3=mg&&mg.__importDefault||function(o){return o&&o.__esModule?o:{default:o}};Object.defineProperty(mg,"__esModule",{value:!0});var nB=T3(eh()),x6=T3(p6()),R6=T3(C6());mg.default=(o,l)=>{var f;if(o.yogaNode.setWidth(l),o.yogaNode){o.yogaNode.calculateLayout(void 0,void 0,nB.default.DIRECTION_LTR);let h=new R6.default({width:o.yogaNode.getComputedWidth(),height:o.yogaNode.getComputedHeight()});x6.default(o,h,{skipStaticElements:!0});let E;!((f=o.staticNode)===null||f===void 0)&&f.yogaNode&&(E=new R6.default({width:o.staticNode.yogaNode.getComputedWidth(),height:o.staticNode.yogaNode.getComputedHeight()}),x6.default(o.staticNode,E,{skipStaticElements:!1}));let{output:t,height:N}=h.get();return{output:t,outputHeight:N,staticOutput:E?`${E.get().output} +`:""}}return{output:"",outputHeight:0,staticOutput:""}}});var N6=nt((xq,k6)=>{"use strict";var O6=hi("stream"),M6=["assert","count","countReset","debug","dir","dirxml","error","group","groupCollapsed","groupEnd","info","log","table","time","timeEnd","timeLog","trace","warn"],C3={},rB=o=>{let l=new O6.PassThrough,f=new O6.PassThrough;l.write=E=>o("stdout",E),f.write=E=>o("stderr",E);let h=new console.Console(l,f);for(let E of M6)C3[E]=console[E],console[E]=h[E];return()=>{for(let E of M6)console[E]=C3[E];C3={}}};k6.exports=rB});var R3=nt(x3=>{"use strict";Object.defineProperty(x3,"__esModule",{value:!0});x3.default=new WeakMap});var O3=nt(A3=>{"use strict";Object.defineProperty(A3,"__esModule",{value:!0});var iB=Mi(),L6=iB.createContext({exit:()=>{}});L6.displayName="InternalAppContext";A3.default=L6});var k3=nt(M3=>{"use strict";Object.defineProperty(M3,"__esModule",{value:!0});var uB=Mi(),F6=uB.createContext({stdin:void 0,setRawMode:()=>{},isRawModeSupported:!1,internal_exitOnCtrlC:!0});F6.displayName="InternalStdinContext";M3.default=F6});var L3=nt(N3=>{"use strict";Object.defineProperty(N3,"__esModule",{value:!0});var oB=Mi(),P6=oB.createContext({stdout:void 0,write:()=>{}});P6.displayName="InternalStdoutContext";N3.default=P6});var P3=nt(F3=>{"use strict";Object.defineProperty(F3,"__esModule",{value:!0});var lB=Mi(),I6=lB.createContext({stderr:void 0,write:()=>{}});I6.displayName="InternalStderrContext";F3.default=I6});var f4=nt(I3=>{"use strict";Object.defineProperty(I3,"__esModule",{value:!0});var sB=Mi(),b6=sB.createContext({activeId:void 0,add:()=>{},remove:()=>{},activate:()=>{},deactivate:()=>{},enableFocus:()=>{},disableFocus:()=>{},focusNext:()=>{},focusPrevious:()=>{}});b6.displayName="InternalFocusContext";I3.default=b6});var U6=nt((Lq,B6)=>{"use strict";var aB=/[|\\{}()[\]^$+*?.-]/g;B6.exports=o=>{if(typeof o!="string")throw new TypeError("Expected a string");return o.replace(aB,"\\$&")}});var q6=nt((Fq,H6)=>{"use strict";var fB=U6(),z6=[].concat(hi("module").builtinModules,"bootstrap_node","node").map(o=>new RegExp(`(?:\\(${o}\\.js:\\d+:\\d+\\)$|^\\s*at ${o}\\.js:\\d+:\\d+$)`));z6.push(/\(internal\/[^:]+:\d+:\d+\)$/,/\s*at internal\/[^:]+:\d+:\d+$/,/\/\.node-spawn-wrap-\w+-\w+\/node:\d+:\d+\)?$/);var yg=class{constructor(l){l={ignoredPackages:[],...l},"internals"in l||(l.internals=yg.nodeInternals()),"cwd"in l||(l.cwd=process.cwd()),this._cwd=l.cwd.replace(/\\/g,"/"),this._internals=[].concat(l.internals,cB(l.ignoredPackages)),this._wrapCallSite=l.wrapCallSite||!1}static nodeInternals(){return[...z6]}clean(l,f=0){f=" ".repeat(f),Array.isArray(l)||(l=l.split(` +`)),!/^\s*at /.test(l[0])&&/^\s*at /.test(l[1])&&(l=l.slice(1));let h=!1,E=null,t=[];return l.forEach(N=>{if(N=N.replace(/\\/g,"/"),this._internals.some(k=>k.test(N)))return;let F=/^\s*at /.test(N);h?N=N.trimEnd().replace(/^(\s+)at /,"$1"):(N=N.trim(),F&&(N=N.slice(3))),N=N.replace(`${this._cwd}/`,""),N&&(F?(E&&(t.push(E),E=null),t.push(N)):(h=!0,E=N))}),t.map(N=>`${f}${N} +`).join("")}captureString(l,f=this.captureString){typeof l=="function"&&(f=l,l=1/0);let{stackTraceLimit:h}=Error;l&&(Error.stackTraceLimit=l);let E={};Error.captureStackTrace(E,f);let{stack:t}=E;return Error.stackTraceLimit=h,this.clean(t)}capture(l,f=this.capture){typeof l=="function"&&(f=l,l=1/0);let{prepareStackTrace:h,stackTraceLimit:E}=Error;Error.prepareStackTrace=(F,k)=>this._wrapCallSite?k.map(this._wrapCallSite):k,l&&(Error.stackTraceLimit=l);let t={};Error.captureStackTrace(t,f);let{stack:N}=t;return Object.assign(Error,{prepareStackTrace:h,stackTraceLimit:E}),N}at(l=this.at){let[f]=this.capture(1,l);if(!f)return{};let h={line:f.getLineNumber(),column:f.getColumnNumber()};j6(h,f.getFileName(),this._cwd),f.isConstructor()&&(h.constructor=!0),f.isEval()&&(h.evalOrigin=f.getEvalOrigin()),f.isNative()&&(h.native=!0);let E;try{E=f.getTypeName()}catch{}E&&E!=="Object"&&E!=="[object Object]"&&(h.type=E);let t=f.getFunctionName();t&&(h.function=t);let N=f.getMethodName();return N&&t!==N&&(h.method=N),h}parseLine(l){let f=l&&l.match(dB);if(!f)return null;let h=f[1]==="new",E=f[2],t=f[3],N=f[4],F=Number(f[5]),k=Number(f[6]),x=f[7],j=f[8],q=f[9],V=f[10]==="native",re=f[11]===")",y,me={};if(j&&(me.line=Number(j)),q&&(me.column=Number(q)),re&&x){let De=0;for(let ge=x.length-1;ge>0;ge--)if(x.charAt(ge)===")")De++;else if(x.charAt(ge)==="("&&x.charAt(ge-1)===" "&&(De--,De===-1&&x.charAt(ge-1)===" ")){let ae=x.slice(0,ge-1);x=x.slice(ge+1),E+=` (${ae}`;break}}if(E){let De=E.match(pB);De&&(E=De[1],y=De[2])}return j6(me,x,this._cwd),h&&(me.constructor=!0),t&&(me.evalOrigin=t,me.evalLine=F,me.evalColumn=k,me.evalFile=N&&N.replace(/\\/g,"/")),V&&(me.native=!0),E&&(me.function=E),y&&E!==y&&(me.method=y),me}};function j6(o,l,f){l&&(l=l.replace(/\\/g,"/"),l.startsWith(`${f}/`)&&(l=l.slice(f.length+1)),o.file=l)}function cB(o){if(o.length===0)return[];let l=o.map(f=>fB(f));return new RegExp(`[/\\\\]node_modules[/\\\\](?:${l.join("|")})[/\\\\][^:]+:\\d+:\\d+`)}var dB=new RegExp("^(?:\\s*at )?(?:(new) )?(?:(.*?) \\()?(?:eval at ([^ ]+) \\((.+?):(\\d+):(\\d+)\\), )?(?:(.+?):(\\d+):(\\d+)|(native))(\\)?)$"),pB=/^(.*?) \[as (.*?)\]$/;H6.exports=yg});var V6=nt((Pq,W6)=>{"use strict";W6.exports=(o,l)=>o.replace(/^\t+/gm,f=>" ".repeat(f.length*(l||2)))});var Y6=nt((Iq,G6)=>{"use strict";var hB=V6(),vB=(o,l)=>{let f=[],h=o-l,E=o+l;for(let t=h;t<=E;t++)f.push(t);return f};G6.exports=(o,l,f)=>{if(typeof o!="string")throw new TypeError("Source code is missing.");if(!l||l<1)throw new TypeError("Line number must start from `1`.");if(o=hB(o).split(/\r?\n/),!(l>o.length))return f={around:3,...f},vB(l,f.around).filter(h=>o[h-1]!==void 0).map(h=>({line:h,value:o[h-1]}))}});var c4=nt(nc=>{"use strict";var mB=nc&&nc.__createBinding||(Object.create?function(o,l,f,h){h===void 0&&(h=f),Object.defineProperty(o,h,{enumerable:!0,get:function(){return l[f]}})}:function(o,l,f,h){h===void 0&&(h=f),o[h]=l[f]}),yB=nc&&nc.__setModuleDefault||(Object.create?function(o,l){Object.defineProperty(o,"default",{enumerable:!0,value:l})}:function(o,l){o.default=l}),gB=nc&&nc.__importStar||function(o){if(o&&o.__esModule)return o;var l={};if(o!=null)for(var f in o)f!=="default"&&Object.hasOwnProperty.call(o,f)&&mB(l,o,f);return yB(l,o),l},_B=nc&&nc.__rest||function(o,l){var f={};for(var h in o)Object.prototype.hasOwnProperty.call(o,h)&&l.indexOf(h)<0&&(f[h]=o[h]);if(o!=null&&typeof Object.getOwnPropertySymbols=="function")for(var E=0,h=Object.getOwnPropertySymbols(o);E{var{children:f}=o,h=_B(o,["children"]);let E=Object.assign(Object.assign({},h),{marginLeft:h.marginLeft||h.marginX||h.margin||0,marginRight:h.marginRight||h.marginX||h.margin||0,marginTop:h.marginTop||h.marginY||h.margin||0,marginBottom:h.marginBottom||h.marginY||h.margin||0,paddingLeft:h.paddingLeft||h.paddingX||h.padding||0,paddingRight:h.paddingRight||h.paddingX||h.padding||0,paddingTop:h.paddingTop||h.paddingY||h.padding||0,paddingBottom:h.paddingBottom||h.paddingY||h.padding||0});return K6.default.createElement("ink-box",{ref:l,style:E},f)});b3.displayName="Box";b3.defaultProps={flexDirection:"row",flexGrow:0,flexShrink:1};nc.default=b3});var j3=nt(gg=>{"use strict";var B3=gg&&gg.__importDefault||function(o){return o&&o.__esModule?o:{default:o}};Object.defineProperty(gg,"__esModule",{value:!0});var EB=B3(Mi()),rm=B3(s4()),X6=B3(_3()),U3=({color:o,backgroundColor:l,dimColor:f,bold:h,italic:E,underline:t,strikethrough:N,inverse:F,wrap:k,children:x})=>{if(x==null)return null;let j=q=>(f&&(q=rm.default.dim(q)),o&&(q=X6.default(q,o,"foreground")),l&&(q=X6.default(q,l,"background")),h&&(q=rm.default.bold(q)),E&&(q=rm.default.italic(q)),t&&(q=rm.default.underline(q)),N&&(q=rm.default.strikethrough(q)),F&&(q=rm.default.inverse(q)),q);return EB.default.createElement("ink-text",{style:{flexGrow:0,flexShrink:1,flexDirection:"row",textWrap:k},internal_transform:j},x)};U3.displayName="Text";U3.defaultProps={dimColor:!1,bold:!1,italic:!1,underline:!1,strikethrough:!1,wrap:"wrap"};gg.default=U3});var $6=nt(rc=>{"use strict";var DB=rc&&rc.__createBinding||(Object.create?function(o,l,f,h){h===void 0&&(h=f),Object.defineProperty(o,h,{enumerable:!0,get:function(){return l[f]}})}:function(o,l,f,h){h===void 0&&(h=f),o[h]=l[f]}),wB=rc&&rc.__setModuleDefault||(Object.create?function(o,l){Object.defineProperty(o,"default",{enumerable:!0,value:l})}:function(o,l){o.default=l}),SB=rc&&rc.__importStar||function(o){if(o&&o.__esModule)return o;var l={};if(o!=null)for(var f in o)f!=="default"&&Object.hasOwnProperty.call(o,f)&&DB(l,o,f);return wB(l,o),l},_g=rc&&rc.__importDefault||function(o){return o&&o.__esModule?o:{default:o}};Object.defineProperty(rc,"__esModule",{value:!0});var Q6=SB(hi("fs")),Qo=_g(Mi()),J6=_g(q6()),TB=_g(Y6()),Z1=_g(c4()),Hc=_g(j3()),Z6=new J6.default({cwd:process.cwd(),internals:J6.default.nodeInternals()}),CB=({error:o})=>{let l=o.stack?o.stack.split(` +`).slice(1):void 0,f=l?Z6.parseLine(l[0]):void 0,h,E=0;if((f==null?void 0:f.file)&&(f==null?void 0:f.line)&&Q6.existsSync(f.file)){let t=Q6.readFileSync(f.file,"utf8");if(h=TB.default(t,f.line),h)for(let{line:N}of h)E=Math.max(E,String(N).length)}return Qo.default.createElement(Z1.default,{flexDirection:"column",padding:1},Qo.default.createElement(Z1.default,null,Qo.default.createElement(Hc.default,{backgroundColor:"red",color:"white"}," ","ERROR"," "),Qo.default.createElement(Hc.default,null," ",o.message)),f&&Qo.default.createElement(Z1.default,{marginTop:1},Qo.default.createElement(Hc.default,{dimColor:!0},f.file,":",f.line,":",f.column)),f&&h&&Qo.default.createElement(Z1.default,{marginTop:1,flexDirection:"column"},h.map(({line:t,value:N})=>Qo.default.createElement(Z1.default,{key:t},Qo.default.createElement(Z1.default,{width:E+1},Qo.default.createElement(Hc.default,{dimColor:t!==f.line,backgroundColor:t===f.line?"red":void 0,color:t===f.line?"white":void 0},String(t).padStart(E," "),":")),Qo.default.createElement(Hc.default,{key:t,backgroundColor:t===f.line?"red":void 0,color:t===f.line?"white":void 0}," "+N)))),o.stack&&Qo.default.createElement(Z1.default,{marginTop:1,flexDirection:"column"},o.stack.split(` +`).slice(1).map(t=>{let N=Z6.parseLine(t);return N?Qo.default.createElement(Z1.default,{key:t},Qo.default.createElement(Hc.default,{dimColor:!0},"- "),Qo.default.createElement(Hc.default,{dimColor:!0,bold:!0},N.function),Qo.default.createElement(Hc.default,{dimColor:!0,color:"gray"}," ","(",N.file,":",N.line,":",N.column,")")):Qo.default.createElement(Z1.default,{key:t},Qo.default.createElement(Hc.default,{dimColor:!0},"- "),Qo.default.createElement(Hc.default,{dimColor:!0,bold:!0},t))})))};rc.default=CB});var tx=nt(ic=>{"use strict";var xB=ic&&ic.__createBinding||(Object.create?function(o,l,f,h){h===void 0&&(h=f),Object.defineProperty(o,h,{enumerable:!0,get:function(){return l[f]}})}:function(o,l,f,h){h===void 0&&(h=f),o[h]=l[f]}),RB=ic&&ic.__setModuleDefault||(Object.create?function(o,l){Object.defineProperty(o,"default",{enumerable:!0,value:l})}:function(o,l){o.default=l}),AB=ic&&ic.__importStar||function(o){if(o&&o.__esModule)return o;var l={};if(o!=null)for(var f in o)f!=="default"&&Object.hasOwnProperty.call(o,f)&&xB(l,o,f);return RB(l,o),l},oh=ic&&ic.__importDefault||function(o){return o&&o.__esModule?o:{default:o}};Object.defineProperty(ic,"__esModule",{value:!0});var uh=AB(Mi()),ex=oh(rD()),OB=oh(O3()),MB=oh(k3()),kB=oh(L3()),NB=oh(P3()),LB=oh(f4()),FB=oh($6()),PB=" ",IB="\x1B[Z",bB="\x1B",d4=class extends uh.PureComponent{constructor(){super(...arguments),this.state={isFocusEnabled:!0,activeFocusId:void 0,focusables:[],error:void 0},this.rawModeEnabledCount=0,this.handleSetRawMode=l=>{let{stdin:f}=this.props;if(!this.isRawModeSupported())throw f===process.stdin?new Error(`Raw mode is not supported on the current process.stdin, which Ink uses as input stream by default. +Read about how to prevent this error on https://github.com/vadimdemedes/ink/#israwmodesupported`):new Error(`Raw mode is not supported on the stdin provided to Ink. +Read about how to prevent this error on https://github.com/vadimdemedes/ink/#israwmodesupported`);if(f.setEncoding("utf8"),l){this.rawModeEnabledCount===0&&(f.addListener("data",this.handleInput),f.resume(),f.setRawMode(!0)),this.rawModeEnabledCount++;return}--this.rawModeEnabledCount===0&&(f.setRawMode(!1),f.removeListener("data",this.handleInput),f.pause())},this.handleInput=l=>{l===""&&this.props.exitOnCtrlC&&this.handleExit(),l===bB&&this.state.activeFocusId&&this.setState({activeFocusId:void 0}),this.state.isFocusEnabled&&this.state.focusables.length>0&&(l===PB&&this.focusNext(),l===IB&&this.focusPrevious())},this.handleExit=l=>{this.isRawModeSupported()&&this.handleSetRawMode(!1),this.props.onExit(l)},this.enableFocus=()=>{this.setState({isFocusEnabled:!0})},this.disableFocus=()=>{this.setState({isFocusEnabled:!1})},this.focusNext=()=>{this.setState(l=>{let f=l.focusables[0].id;return{activeFocusId:this.findNextFocusable(l)||f}})},this.focusPrevious=()=>{this.setState(l=>{let f=l.focusables[l.focusables.length-1].id;return{activeFocusId:this.findPreviousFocusable(l)||f}})},this.addFocusable=(l,{autoFocus:f})=>{this.setState(h=>{let E=h.activeFocusId;return!E&&f&&(E=l),{activeFocusId:E,focusables:[...h.focusables,{id:l,isActive:!0}]}})},this.removeFocusable=l=>{this.setState(f=>({activeFocusId:f.activeFocusId===l?void 0:f.activeFocusId,focusables:f.focusables.filter(h=>h.id!==l)}))},this.activateFocusable=l=>{this.setState(f=>({focusables:f.focusables.map(h=>h.id!==l?h:{id:l,isActive:!0})}))},this.deactivateFocusable=l=>{this.setState(f=>({activeFocusId:f.activeFocusId===l?void 0:f.activeFocusId,focusables:f.focusables.map(h=>h.id!==l?h:{id:l,isActive:!1})}))},this.findNextFocusable=l=>{let f=l.focusables.findIndex(h=>h.id===l.activeFocusId);for(let h=f+1;h{let f=l.focusables.findIndex(h=>h.id===l.activeFocusId);for(let h=f-1;h>=0;h--)if(l.focusables[h].isActive)return l.focusables[h].id}}static getDerivedStateFromError(l){return{error:l}}isRawModeSupported(){return this.props.stdin.isTTY}render(){return uh.default.createElement(OB.default.Provider,{value:{exit:this.handleExit}},uh.default.createElement(MB.default.Provider,{value:{stdin:this.props.stdin,setRawMode:this.handleSetRawMode,isRawModeSupported:this.isRawModeSupported(),internal_exitOnCtrlC:this.props.exitOnCtrlC}},uh.default.createElement(kB.default.Provider,{value:{stdout:this.props.stdout,write:this.props.writeToStdout}},uh.default.createElement(NB.default.Provider,{value:{stderr:this.props.stderr,write:this.props.writeToStderr}},uh.default.createElement(LB.default.Provider,{value:{activeId:this.state.activeFocusId,add:this.addFocusable,remove:this.removeFocusable,activate:this.activateFocusable,deactivate:this.deactivateFocusable,enableFocus:this.enableFocus,disableFocus:this.disableFocus,focusNext:this.focusNext,focusPrevious:this.focusPrevious}},this.state.error?uh.default.createElement(FB.default,{error:this.state.error}):this.props.children)))))}componentDidMount(){ex.default.hide(this.props.stdout)}componentWillUnmount(){ex.default.show(this.props.stdout),this.isRawModeSupported()&&this.handleSetRawMode(!1)}componentDidCatch(l){this.handleExit(l)}};ic.default=d4;d4.displayName="InternalApp"});var ix=nt(uc=>{"use strict";var BB=uc&&uc.__createBinding||(Object.create?function(o,l,f,h){h===void 0&&(h=f),Object.defineProperty(o,h,{enumerable:!0,get:function(){return l[f]}})}:function(o,l,f,h){h===void 0&&(h=f),o[h]=l[f]}),UB=uc&&uc.__setModuleDefault||(Object.create?function(o,l){Object.defineProperty(o,"default",{enumerable:!0,value:l})}:function(o,l){o.default=l}),jB=uc&&uc.__importStar||function(o){if(o&&o.__esModule)return o;var l={};if(o!=null)for(var f in o)f!=="default"&&Object.hasOwnProperty.call(o,f)&&BB(l,o,f);return UB(l,o),l},oc=uc&&uc.__importDefault||function(o){return o&&o.__esModule?o:{default:o}};Object.defineProperty(uc,"__esModule",{value:!0});var zB=oc(Mi()),nx=sS(),HB=oc(TS()),qB=oc(ZE()),WB=oc(MS()),VB=oc(NS()),p4=oc(UC()),GB=oc(A6()),YB=oc(nD()),KB=oc(N6()),XB=jB(BD()),QB=oc(R3()),JB=oc(tx()),im=process.env.CI==="false"?!1:WB.default,rx=()=>{},z3=class{constructor(l){this.resolveExitPromise=()=>{},this.rejectExitPromise=()=>{},this.unsubscribeExit=()=>{},this.onRender=()=>{if(this.isUnmounted)return;let{output:f,outputHeight:h,staticOutput:E}=GB.default(this.rootNode,this.options.stdout.columns||80),t=E&&E!==` +`;if(this.options.debug){t&&(this.fullStaticOutput+=E),this.options.stdout.write(this.fullStaticOutput+f);return}if(im){t&&this.options.stdout.write(E),this.lastOutput=f;return}if(t&&(this.fullStaticOutput+=E),h>=this.options.stdout.rows){this.options.stdout.write(qB.default.clearTerminal+this.fullStaticOutput+f),this.lastOutput=f;return}t&&(this.log.clear(),this.options.stdout.write(E),this.log(f)),!t&&f!==this.lastOutput&&this.throttledLog(f),this.lastOutput=f},VB.default(this),this.options=l,this.rootNode=XB.createNode("ink-root"),this.rootNode.onRender=l.debug?this.onRender:nx.throttle(this.onRender,32,{leading:!0,trailing:!0}),this.rootNode.onImmediateRender=this.onRender,this.log=HB.default.create(l.stdout),this.throttledLog=l.debug?this.log:nx.throttle(this.log,void 0,{leading:!0,trailing:!0}),this.isUnmounted=!1,this.lastOutput="",this.fullStaticOutput="",this.container=p4.default.createContainer(this.rootNode,!1,!1),this.unsubscribeExit=YB.default(this.unmount,{alwaysLast:!1}),process.env.DEV==="true"&&p4.default.injectIntoDevTools({bundleType:0,version:"16.13.1",rendererPackageName:"ink"}),l.patchConsole&&this.patchConsole(),im||(l.stdout.on("resize",this.onRender),this.unsubscribeResize=()=>{l.stdout.off("resize",this.onRender)})}render(l){let f=zB.default.createElement(JB.default,{stdin:this.options.stdin,stdout:this.options.stdout,stderr:this.options.stderr,writeToStdout:this.writeToStdout,writeToStderr:this.writeToStderr,exitOnCtrlC:this.options.exitOnCtrlC,onExit:this.unmount},l);p4.default.updateContainer(f,this.container,null,rx)}writeToStdout(l){if(!this.isUnmounted){if(this.options.debug){this.options.stdout.write(l+this.fullStaticOutput+this.lastOutput);return}if(im){this.options.stdout.write(l);return}this.log.clear(),this.options.stdout.write(l),this.log(this.lastOutput)}}writeToStderr(l){if(!this.isUnmounted){if(this.options.debug){this.options.stderr.write(l),this.options.stdout.write(this.fullStaticOutput+this.lastOutput);return}if(im){this.options.stderr.write(l);return}this.log.clear(),this.options.stderr.write(l),this.log(this.lastOutput)}}unmount(l){this.isUnmounted||(this.onRender(),this.unsubscribeExit(),typeof this.restoreConsole=="function"&&this.restoreConsole(),typeof this.unsubscribeResize=="function"&&this.unsubscribeResize(),im?this.options.stdout.write(this.lastOutput+` +`):this.options.debug||this.log.done(),this.isUnmounted=!0,p4.default.updateContainer(null,this.container,null,rx),QB.default.delete(this.options.stdout),l instanceof Error?this.rejectExitPromise(l):this.resolveExitPromise())}waitUntilExit(){return this.exitPromise||(this.exitPromise=new Promise((l,f)=>{this.resolveExitPromise=l,this.rejectExitPromise=f})),this.exitPromise}clear(){!im&&!this.options.debug&&this.log.clear()}patchConsole(){this.options.debug||(this.restoreConsole=KB.default((l,f)=>{l==="stdout"&&this.writeToStdout(f),l==="stderr"&&(f.startsWith("The above error occurred")||this.writeToStderr(f))}))}};uc.default=z3});var ox=nt(Eg=>{"use strict";var ux=Eg&&Eg.__importDefault||function(o){return o&&o.__esModule?o:{default:o}};Object.defineProperty(Eg,"__esModule",{value:!0});var ZB=ux(ix()),h4=ux(R3()),$B=hi("stream"),eU=(o,l)=>{let f=Object.assign({stdout:process.stdout,stdin:process.stdin,stderr:process.stderr,debug:!1,exitOnCtrlC:!0,patchConsole:!0},tU(l)),h=nU(f.stdout,()=>new ZB.default(f));return h.render(o),{rerender:h.render,unmount:()=>h.unmount(),waitUntilExit:h.waitUntilExit,cleanup:()=>h4.default.delete(f.stdout),clear:h.clear}};Eg.default=eU;var tU=(o={})=>o instanceof $B.Stream?{stdout:o,stdin:process.stdin}:o,nU=(o,l)=>{let f;return h4.default.has(o)?f=h4.default.get(o):(f=l(),h4.default.set(o,f)),f}});var sx=nt($1=>{"use strict";var rU=$1&&$1.__createBinding||(Object.create?function(o,l,f,h){h===void 0&&(h=f),Object.defineProperty(o,h,{enumerable:!0,get:function(){return l[f]}})}:function(o,l,f,h){h===void 0&&(h=f),o[h]=l[f]}),iU=$1&&$1.__setModuleDefault||(Object.create?function(o,l){Object.defineProperty(o,"default",{enumerable:!0,value:l})}:function(o,l){o.default=l}),uU=$1&&$1.__importStar||function(o){if(o&&o.__esModule)return o;var l={};if(o!=null)for(var f in o)f!=="default"&&Object.hasOwnProperty.call(o,f)&&rU(l,o,f);return iU(l,o),l};Object.defineProperty($1,"__esModule",{value:!0});var Dg=uU(Mi()),lx=o=>{let{items:l,children:f,style:h}=o,[E,t]=Dg.useState(0),N=Dg.useMemo(()=>l.slice(E),[l,E]);Dg.useLayoutEffect(()=>{t(l.length)},[l.length]);let F=N.map((x,j)=>f(x,E+j)),k=Dg.useMemo(()=>Object.assign({position:"absolute",flexDirection:"column"},h),[h]);return Dg.default.createElement("ink-box",{internal_static:!0,style:k},F)};lx.displayName="Static";$1.default=lx});var fx=nt(wg=>{"use strict";var oU=wg&&wg.__importDefault||function(o){return o&&o.__esModule?o:{default:o}};Object.defineProperty(wg,"__esModule",{value:!0});var lU=oU(Mi()),ax=({children:o,transform:l})=>o==null?null:lU.default.createElement("ink-text",{style:{flexGrow:0,flexShrink:1,flexDirection:"row"},internal_transform:l},o);ax.displayName="Transform";wg.default=ax});var dx=nt(Sg=>{"use strict";var sU=Sg&&Sg.__importDefault||function(o){return o&&o.__esModule?o:{default:o}};Object.defineProperty(Sg,"__esModule",{value:!0});var aU=sU(Mi()),cx=({count:o=1})=>aU.default.createElement("ink-text",null,` +`.repeat(o));cx.displayName="Newline";Sg.default=cx});var vx=nt(Tg=>{"use strict";var px=Tg&&Tg.__importDefault||function(o){return o&&o.__esModule?o:{default:o}};Object.defineProperty(Tg,"__esModule",{value:!0});var fU=px(Mi()),cU=px(c4()),hx=()=>fU.default.createElement(cU.default,{flexGrow:1});hx.displayName="Spacer";Tg.default=hx});var v4=nt(Cg=>{"use strict";var dU=Cg&&Cg.__importDefault||function(o){return o&&o.__esModule?o:{default:o}};Object.defineProperty(Cg,"__esModule",{value:!0});var pU=Mi(),hU=dU(k3()),vU=()=>pU.useContext(hU.default);Cg.default=vU});var yx=nt(xg=>{"use strict";var mU=xg&&xg.__importDefault||function(o){return o&&o.__esModule?o:{default:o}};Object.defineProperty(xg,"__esModule",{value:!0});var mx=Mi(),yU=mU(v4()),gU=(o,l={})=>{let{stdin:f,setRawMode:h,internal_exitOnCtrlC:E}=yU.default();mx.useEffect(()=>{if(l.isActive!==!1)return h(!0),()=>{h(!1)}},[l.isActive,h]),mx.useEffect(()=>{if(l.isActive===!1)return;let t=N=>{let F=String(N),k={upArrow:F==="\x1B[A",downArrow:F==="\x1B[B",leftArrow:F==="\x1B[D",rightArrow:F==="\x1B[C",pageDown:F==="\x1B[6~",pageUp:F==="\x1B[5~",return:F==="\r",escape:F==="\x1B",ctrl:!1,shift:!1,tab:F===" "||F==="\x1B[Z",backspace:F==="\b",delete:F==="\x7F"||F==="\x1B[3~",meta:!1};F<=""&&!k.return&&(F=String.fromCharCode(F.charCodeAt(0)+"a".charCodeAt(0)-1),k.ctrl=!0),F.startsWith("\x1B")&&(F=F.slice(1),k.meta=!0);let x=F>="A"&&F<="Z",j=F>="\u0410"&&F<="\u042F";F.length===1&&(x||j)&&(k.shift=!0),k.tab&&F==="[Z"&&(k.shift=!0),(k.tab||k.backspace||k.delete)&&(F=""),(!(F==="c"&&k.ctrl)||!E)&&o(F,k)};return f==null||f.on("data",t),()=>{f==null||f.off("data",t)}},[l.isActive,f,E,o])};xg.default=gU});var gx=nt(Rg=>{"use strict";var _U=Rg&&Rg.__importDefault||function(o){return o&&o.__esModule?o:{default:o}};Object.defineProperty(Rg,"__esModule",{value:!0});var EU=Mi(),DU=_U(O3()),wU=()=>EU.useContext(DU.default);Rg.default=wU});var _x=nt(Ag=>{"use strict";var SU=Ag&&Ag.__importDefault||function(o){return o&&o.__esModule?o:{default:o}};Object.defineProperty(Ag,"__esModule",{value:!0});var TU=Mi(),CU=SU(L3()),xU=()=>TU.useContext(CU.default);Ag.default=xU});var Ex=nt(Og=>{"use strict";var RU=Og&&Og.__importDefault||function(o){return o&&o.__esModule?o:{default:o}};Object.defineProperty(Og,"__esModule",{value:!0});var AU=Mi(),OU=RU(P3()),MU=()=>AU.useContext(OU.default);Og.default=MU});var wx=nt(kg=>{"use strict";var Dx=kg&&kg.__importDefault||function(o){return o&&o.__esModule?o:{default:o}};Object.defineProperty(kg,"__esModule",{value:!0});var Mg=Mi(),kU=Dx(f4()),NU=Dx(v4()),LU=({isActive:o=!0,autoFocus:l=!1}={})=>{let{isRawModeSupported:f,setRawMode:h}=NU.default(),{activeId:E,add:t,remove:N,activate:F,deactivate:k}=Mg.useContext(kU.default),x=Mg.useMemo(()=>Math.random().toString().slice(2,7),[]);return Mg.useEffect(()=>(t(x,{autoFocus:l}),()=>{N(x)}),[x,l]),Mg.useEffect(()=>{o?F(x):k(x)},[o,x]),Mg.useEffect(()=>{if(!(!f||!o))return h(!0),()=>{h(!1)}},[o]),{isFocused:Boolean(x)&&E===x}};kg.default=LU});var Sx=nt(Ng=>{"use strict";var FU=Ng&&Ng.__importDefault||function(o){return o&&o.__esModule?o:{default:o}};Object.defineProperty(Ng,"__esModule",{value:!0});var PU=Mi(),IU=FU(f4()),bU=()=>{let o=PU.useContext(IU.default);return{enableFocus:o.enableFocus,disableFocus:o.disableFocus,focusNext:o.focusNext,focusPrevious:o.focusPrevious}};Ng.default=bU});var Tx=nt(H3=>{"use strict";Object.defineProperty(H3,"__esModule",{value:!0});H3.default=o=>{var l,f,h,E;return{width:(f=(l=o.yogaNode)===null||l===void 0?void 0:l.getComputedWidth())!==null&&f!==void 0?f:0,height:(E=(h=o.yogaNode)===null||h===void 0?void 0:h.getComputedHeight())!==null&&E!==void 0?E:0}}});var lc=nt(Yl=>{"use strict";Object.defineProperty(Yl,"__esModule",{value:!0});var BU=ox();Object.defineProperty(Yl,"render",{enumerable:!0,get:function(){return BU.default}});var UU=c4();Object.defineProperty(Yl,"Box",{enumerable:!0,get:function(){return UU.default}});var jU=j3();Object.defineProperty(Yl,"Text",{enumerable:!0,get:function(){return jU.default}});var zU=sx();Object.defineProperty(Yl,"Static",{enumerable:!0,get:function(){return zU.default}});var HU=fx();Object.defineProperty(Yl,"Transform",{enumerable:!0,get:function(){return HU.default}});var qU=dx();Object.defineProperty(Yl,"Newline",{enumerable:!0,get:function(){return qU.default}});var WU=vx();Object.defineProperty(Yl,"Spacer",{enumerable:!0,get:function(){return WU.default}});var VU=yx();Object.defineProperty(Yl,"useInput",{enumerable:!0,get:function(){return VU.default}});var GU=gx();Object.defineProperty(Yl,"useApp",{enumerable:!0,get:function(){return GU.default}});var YU=v4();Object.defineProperty(Yl,"useStdin",{enumerable:!0,get:function(){return YU.default}});var KU=_x();Object.defineProperty(Yl,"useStdout",{enumerable:!0,get:function(){return KU.default}});var XU=Ex();Object.defineProperty(Yl,"useStderr",{enumerable:!0,get:function(){return XU.default}});var QU=wx();Object.defineProperty(Yl,"useFocus",{enumerable:!0,get:function(){return QU.default}});var JU=Sx();Object.defineProperty(Yl,"useFocusManager",{enumerable:!0,get:function(){return JU.default}});var ZU=Tx();Object.defineProperty(Yl,"measureElement",{enumerable:!0,get:function(){return ZU.default}})});var Fx=nt(Lg=>{"use strict";Object.defineProperty(Lg,"__esModule",{value:!0});Lg.UncontrolledTextInput=void 0;var Nx=Mi(),V3=Mi(),kx=lc(),ah=s4(),Lx=({value:o,placeholder:l="",focus:f=!0,mask:h,highlightPastedText:E=!1,showCursor:t=!0,onChange:N,onSubmit:F})=>{let[{cursorOffset:k,cursorWidth:x},j]=V3.useState({cursorOffset:(o||"").length,cursorWidth:0});V3.useEffect(()=>{j(me=>{if(!f||!t)return me;let De=o||"";return me.cursorOffset>De.length-1?{cursorOffset:De.length,cursorWidth:0}:me})},[o,f,t]);let q=E?x:0,V=h?h.repeat(o.length):o,re=V,y=l?ah.grey(l):void 0;if(t&&f){y=l.length>0?ah.inverse(l[0])+ah.grey(l.slice(1)):ah.inverse(" "),re=V.length>0?"":ah.inverse(" ");let me=0;for(let De of V)me>=k-q&&me<=k?re+=ah.inverse(De):re+=De,me++;V.length>0&&k===V.length&&(re+=ah.inverse(" "))}return kx.useInput((me,De)=>{if(De.upArrow||De.downArrow||De.ctrl&&me==="c"||De.tab||De.shift&&De.tab)return;if(De.return){F&&F(o);return}let ge=k,ae=o,we=0;De.leftArrow?t&&ge--:De.rightArrow?t&&ge++:De.backspace||De.delete?k>0&&(ae=o.slice(0,k-1)+o.slice(k,o.length),ge--):(ae=o.slice(0,k)+me+o.slice(k,o.length),ge+=me.length,me.length>1&&(we=me.length)),k<0&&(ge=0),k>o.length&&(ge=o.length),j({cursorOffset:ge,cursorWidth:we}),ae!==o&&N(ae)},{isActive:f}),Nx.createElement(kx.Text,null,l?V.length>0?re:y:re)};Lg.default=Lx;Lg.UncontrolledTextInput=o=>{let[l,f]=V3.useState("");return Nx.createElement(Lx,Object.assign({},o,{value:l,onChange:f}))}});var Ix=nt(S4=>{"use strict";Object.defineProperty(S4,"__esModule",{value:!0});function Fg(o){let l=[...o.caches],f=l.shift();return f===void 0?Px():{get(h,E,t={miss:()=>Promise.resolve()}){return f.get(h,E,t).catch(()=>Fg({caches:l}).get(h,E,t))},set(h,E){return f.set(h,E).catch(()=>Fg({caches:l}).set(h,E))},delete(h){return f.delete(h).catch(()=>Fg({caches:l}).delete(h))},clear(){return f.clear().catch(()=>Fg({caches:l}).clear())}}}function Px(){return{get(o,l,f={miss:()=>Promise.resolve()}){return l().then(E=>Promise.all([E,f.miss(E)])).then(([E])=>E)},set(o,l){return Promise.resolve(l)},delete(o){return Promise.resolve()},clear(){return Promise.resolve()}}}S4.createFallbackableCache=Fg;S4.createNullCache=Px});var Bx=nt((EW,bx)=>{bx.exports=Ix()});var Ux=nt(G3=>{"use strict";Object.defineProperty(G3,"__esModule",{value:!0});function $U(o={serializable:!0}){let l={};return{get(f,h,E={miss:()=>Promise.resolve()}){let t=JSON.stringify(f);if(t in l)return Promise.resolve(o.serializable?JSON.parse(l[t]):l[t]);let N=h(),F=E&&E.miss||(()=>Promise.resolve());return N.then(k=>F(k)).then(()=>N)},set(f,h){return l[JSON.stringify(f)]=o.serializable?JSON.stringify(h):h,Promise.resolve(h)},delete(f){return delete l[JSON.stringify(f)],Promise.resolve()},clear(){return l={},Promise.resolve()}}}G3.createInMemoryCache=$U});var zx=nt((wW,jx)=>{jx.exports=Ux()});var qx=nt(sc=>{"use strict";Object.defineProperty(sc,"__esModule",{value:!0});function ej(o,l,f){let h={"x-algolia-api-key":f,"x-algolia-application-id":l};return{headers(){return o===Y3.WithinHeaders?h:{}},queryParameters(){return o===Y3.WithinQueryParameters?h:{}}}}function tj(o){let l=0,f=()=>(l++,new Promise(h=>{setTimeout(()=>{h(o(f))},Math.min(100*l,1e3))}));return o(f)}function Hx(o,l=(f,h)=>Promise.resolve()){return Object.assign(o,{wait(f){return Hx(o.then(h=>Promise.all([l(h,f),h])).then(h=>h[1]))}})}function nj(o){let l=o.length-1;for(l;l>0;l--){let f=Math.floor(Math.random()*(l+1)),h=o[l];o[l]=o[f],o[f]=h}return o}function rj(o,l){return Object.keys(l!==void 0?l:{}).forEach(f=>{o[f]=l[f](o)}),o}function ij(o,...l){let f=0;return o.replace(/%s/g,()=>encodeURIComponent(l[f++]))}var uj="4.2.0",oj=o=>()=>o.transporter.requester.destroy(),Y3={WithinQueryParameters:0,WithinHeaders:1};sc.AuthMode=Y3;sc.addMethods=rj;sc.createAuth=ej;sc.createRetryablePromise=tj;sc.createWaitablePromise=Hx;sc.destroy=oj;sc.encode=ij;sc.shuffle=nj;sc.version=uj});var Pg=nt((TW,Wx)=>{Wx.exports=qx()});var Vx=nt(K3=>{"use strict";Object.defineProperty(K3,"__esModule",{value:!0});var lj={Delete:"DELETE",Get:"GET",Post:"POST",Put:"PUT"};K3.MethodEnum=lj});var Ig=nt((xW,Gx)=>{Gx.exports=Vx()});var l5=nt(G0=>{"use strict";Object.defineProperty(G0,"__esModule",{value:!0});var Kx=Ig();function X3(o,l){let f=o||{},h=f.data||{};return Object.keys(f).forEach(E=>{["timeout","headers","queryParameters","data","cacheable"].indexOf(E)===-1&&(h[E]=f[E])}),{data:Object.entries(h).length>0?h:void 0,timeout:f.timeout||l,headers:f.headers||{},queryParameters:f.queryParameters||{},cacheable:f.cacheable}}var T4={Read:1,Write:2,Any:3},um={Up:1,Down:2,Timeouted:3},Xx=2*60*1e3;function J3(o,l=um.Up){return{...o,status:l,lastUpdate:Date.now()}}function Qx(o){return o.status===um.Up||Date.now()-o.lastUpdate>Xx}function Jx(o){return o.status===um.Timeouted&&Date.now()-o.lastUpdate<=Xx}function Z3(o){return{protocol:o.protocol||"https",url:o.url,accept:o.accept||T4.Any}}function sj(o,l){return Promise.all(l.map(f=>o.get(f,()=>Promise.resolve(J3(f))))).then(f=>{let h=f.filter(F=>Qx(F)),E=f.filter(F=>Jx(F)),t=[...h,...E],N=t.length>0?t.map(F=>Z3(F)):l;return{getTimeout(F,k){return(E.length===0&&F===0?1:E.length+3+F)*k},statelessHosts:N}})}var aj=({isTimedOut:o,status:l})=>!o&&~~l===0,fj=o=>{let l=o.status;return o.isTimedOut||aj(o)||~~(l/100)!==2&&~~(l/100)!==4},cj=({status:o})=>~~(o/100)===2,dj=(o,l)=>fj(o)?l.onRetry(o):cj(o)?l.onSucess(o):l.onFail(o);function Yx(o,l,f,h){let E=[],t=n5(f,h),N=r5(o,h),F=f.method,k=f.method!==Kx.MethodEnum.Get?{}:{...f.data,...h.data},x={"x-algolia-agent":o.userAgent.value,...o.queryParameters,...k,...h.queryParameters},j=0,q=(V,re)=>{let y=V.pop();if(y===void 0)throw o5(Q3(E));let me={data:t,headers:N,method:F,url:e5(y,f.path,x),connectTimeout:re(j,o.timeouts.connect),responseTimeout:re(j,h.timeout)},De=ae=>{let we={request:me,response:ae,host:y,triesLeft:V.length};return E.push(we),we},ge={onSucess:ae=>Zx(ae),onRetry(ae){let we=De(ae);return ae.isTimedOut&&j++,Promise.all([o.logger.info("Retryable failure",$3(we)),o.hostsCache.set(y,J3(y,ae.isTimedOut?um.Timeouted:um.Down))]).then(()=>q(V,re))},onFail(ae){throw De(ae),$x(ae,Q3(E))}};return o.requester.send(me).then(ae=>dj(ae,ge))};return sj(o.hostsCache,l).then(V=>q([...V.statelessHosts].reverse(),V.getTimeout))}function pj(o){let{hostsCache:l,logger:f,requester:h,requestsCache:E,responsesCache:t,timeouts:N,userAgent:F,hosts:k,queryParameters:x,headers:j}=o,q={hostsCache:l,logger:f,requester:h,requestsCache:E,responsesCache:t,timeouts:N,userAgent:F,headers:j,queryParameters:x,hosts:k.map(V=>Z3(V)),read(V,re){let y=X3(re,q.timeouts.read),me=()=>Yx(q,q.hosts.filter(ae=>(ae.accept&T4.Read)!==0),V,y);if((y.cacheable!==void 0?y.cacheable:V.cacheable)!==!0)return me();let ge={request:V,mappedRequestOptions:y,transporter:{queryParameters:q.queryParameters,headers:q.headers}};return q.responsesCache.get(ge,()=>q.requestsCache.get(ge,()=>q.requestsCache.set(ge,me()).then(ae=>Promise.all([q.requestsCache.delete(ge),ae]),ae=>Promise.all([q.requestsCache.delete(ge),Promise.reject(ae)])).then(([ae,we])=>we)),{miss:ae=>q.responsesCache.set(ge,ae)})},write(V,re){return Yx(q,q.hosts.filter(y=>(y.accept&T4.Write)!==0),V,X3(re,q.timeouts.write))}};return q}function hj(o){let l={value:`Algolia for JavaScript (${o})`,add(f){let h=`; ${f.segment}${f.version!==void 0?` (${f.version})`:""}`;return l.value.indexOf(h)===-1&&(l.value=`${l.value}${h}`),l}};return l}function Zx(o){try{return JSON.parse(o.content)}catch(l){throw u5(l.message,o)}}function $x({content:o,status:l},f){let h=o;try{h=JSON.parse(o).message}catch{}return i5(h,l,f)}function vj(o,...l){let f=0;return o.replace(/%s/g,()=>encodeURIComponent(l[f++]))}function e5(o,l,f){let h=t5(f),E=`${o.protocol}://${o.url}/${l.charAt(0)==="/"?l.substr(1):l}`;return h.length&&(E+=`?${h}`),E}function t5(o){let l=f=>Object.prototype.toString.call(f)==="[object Object]"||Object.prototype.toString.call(f)==="[object Array]";return Object.keys(o).map(f=>vj("%s=%s",f,l(o[f])?JSON.stringify(o[f]):o[f])).join("&")}function n5(o,l){if(o.method===Kx.MethodEnum.Get||o.data===void 0&&l.data===void 0)return;let f=Array.isArray(o.data)?o.data:{...o.data,...l.data};return JSON.stringify(f)}function r5(o,l){let f={...o.headers,...l.headers},h={};return Object.keys(f).forEach(E=>{let t=f[E];h[E.toLowerCase()]=t}),h}function Q3(o){return o.map(l=>$3(l))}function $3(o){let l=o.request.headers["x-algolia-api-key"]?{"x-algolia-api-key":"*****"}:{};return{...o,request:{...o.request,headers:{...o.request.headers,...l}}}}function i5(o,l,f){return{name:"ApiError",message:o,status:l,transporterStackTrace:f}}function u5(o,l){return{name:"DeserializationError",message:o,response:l}}function o5(o){return{name:"RetryError",message:"Unreachable hosts - your application id may be incorrect. If the error persists, contact support@algolia.com.",transporterStackTrace:o}}G0.CallEnum=T4;G0.HostStatusEnum=um;G0.createApiError=i5;G0.createDeserializationError=u5;G0.createMappedRequestOptions=X3;G0.createRetryError=o5;G0.createStatefulHost=J3;G0.createStatelessHost=Z3;G0.createTransporter=pj;G0.createUserAgent=hj;G0.deserializeFailure=$x;G0.deserializeSuccess=Zx;G0.isStatefulHostTimeouted=Jx;G0.isStatefulHostUp=Qx;G0.serializeData=n5;G0.serializeHeaders=r5;G0.serializeQueryParameters=t5;G0.serializeUrl=e5;G0.stackFrameWithoutCredentials=$3;G0.stackTraceWithoutCredentials=Q3});var bg=nt((AW,s5)=>{s5.exports=l5()});var a5=nt(y2=>{"use strict";Object.defineProperty(y2,"__esModule",{value:!0});var om=Pg(),mj=bg(),Bg=Ig(),yj=o=>{let l=o.region||"us",f=om.createAuth(om.AuthMode.WithinHeaders,o.appId,o.apiKey),h=mj.createTransporter({hosts:[{url:`analytics.${l}.algolia.com`}],...o,headers:{...f.headers(),"content-type":"application/json",...o.headers},queryParameters:{...f.queryParameters(),...o.queryParameters}}),E=o.appId;return om.addMethods({appId:E,transporter:h},o.methods)},gj=o=>(l,f)=>o.transporter.write({method:Bg.MethodEnum.Post,path:"2/abtests",data:l},f),_j=o=>(l,f)=>o.transporter.write({method:Bg.MethodEnum.Delete,path:om.encode("2/abtests/%s",l)},f),Ej=o=>(l,f)=>o.transporter.read({method:Bg.MethodEnum.Get,path:om.encode("2/abtests/%s",l)},f),Dj=o=>l=>o.transporter.read({method:Bg.MethodEnum.Get,path:"2/abtests"},l),wj=o=>(l,f)=>o.transporter.write({method:Bg.MethodEnum.Post,path:om.encode("2/abtests/%s/stop",l)},f);y2.addABTest=gj;y2.createAnalyticsClient=yj;y2.deleteABTest=_j;y2.getABTest=Ej;y2.getABTests=Dj;y2.stopABTest=wj});var c5=nt((MW,f5)=>{f5.exports=a5()});var p5=nt(Ug=>{"use strict";Object.defineProperty(Ug,"__esModule",{value:!0});var ew=Pg(),Sj=bg(),d5=Ig(),Tj=o=>{let l=o.region||"us",f=ew.createAuth(ew.AuthMode.WithinHeaders,o.appId,o.apiKey),h=Sj.createTransporter({hosts:[{url:`recommendation.${l}.algolia.com`}],...o,headers:{...f.headers(),"content-type":"application/json",...o.headers},queryParameters:{...f.queryParameters(),...o.queryParameters}});return ew.addMethods({appId:o.appId,transporter:h},o.methods)},Cj=o=>l=>o.transporter.read({method:d5.MethodEnum.Get,path:"1/strategies/personalization"},l),xj=o=>(l,f)=>o.transporter.write({method:d5.MethodEnum.Post,path:"1/strategies/personalization",data:l},f);Ug.createRecommendationClient=Tj;Ug.getPersonalizationStrategy=Cj;Ug.setPersonalizationStrategy=xj});var v5=nt((NW,h5)=>{h5.exports=p5()});var A5=nt(tn=>{"use strict";Object.defineProperty(tn,"__esModule",{value:!0});var Nn=Pg(),ra=bg(),Ur=Ig(),Rj=hi("crypto");function C4(o){let l=f=>o.request(f).then(h=>{if(o.batch!==void 0&&o.batch(h.hits),!o.shouldStop(h))return h.cursor?l({cursor:h.cursor}):l({page:(f.page||0)+1})});return l({})}var Aj=o=>{let l=o.appId,f=Nn.createAuth(o.authMode!==void 0?o.authMode:Nn.AuthMode.WithinHeaders,l,o.apiKey),h=ra.createTransporter({hosts:[{url:`${l}-dsn.algolia.net`,accept:ra.CallEnum.Read},{url:`${l}.algolia.net`,accept:ra.CallEnum.Write}].concat(Nn.shuffle([{url:`${l}-1.algolianet.com`},{url:`${l}-2.algolianet.com`},{url:`${l}-3.algolianet.com`}])),...o,headers:{...f.headers(),"content-type":"application/x-www-form-urlencoded",...o.headers},queryParameters:{...f.queryParameters(),...o.queryParameters}}),E={transporter:h,appId:l,addAlgoliaAgent(t,N){h.userAgent.add({segment:t,version:N})},clearCache(){return Promise.all([h.requestsCache.clear(),h.responsesCache.clear()]).then(()=>{})}};return Nn.addMethods(E,o.methods)};function m5(){return{name:"MissingObjectIDError",message:"All objects must have an unique objectID (like a primary key) to be valid. Algolia is also able to generate objectIDs automatically but *it's not recommended*. To do it, use the `{'autoGenerateObjectIDIfNotExist': true}` option."}}function y5(){return{name:"ObjectNotFoundError",message:"Object not found."}}function g5(){return{name:"ValidUntilNotFoundError",message:"ValidUntil not found in given secured api key."}}var Oj=o=>(l,f)=>{let{queryParameters:h,...E}=f||{},t={acl:l,...h!==void 0?{queryParameters:h}:{}},N=(F,k)=>Nn.createRetryablePromise(x=>jg(o)(F.key,k).catch(j=>{if(j.status!==404)throw j;return x()}));return Nn.createWaitablePromise(o.transporter.write({method:Ur.MethodEnum.Post,path:"1/keys",data:t},E),N)},Mj=o=>(l,f,h)=>{let E=ra.createMappedRequestOptions(h);return E.queryParameters["X-Algolia-User-ID"]=l,o.transporter.write({method:Ur.MethodEnum.Post,path:"1/clusters/mapping",data:{cluster:f}},E)},kj=o=>(l,f,h)=>o.transporter.write({method:Ur.MethodEnum.Post,path:"1/clusters/mapping/batch",data:{users:l,cluster:f}},h),x4=o=>(l,f,h)=>{let E=(t,N)=>zg(o)(l,{methods:{waitTask:xo}}).waitTask(t.taskID,N);return Nn.createWaitablePromise(o.transporter.write({method:Ur.MethodEnum.Post,path:Nn.encode("1/indexes/%s/operation",l),data:{operation:"copy",destination:f}},h),E)},Nj=o=>(l,f,h)=>x4(o)(l,f,{...h,scope:[A4.Rules]}),Lj=o=>(l,f,h)=>x4(o)(l,f,{...h,scope:[A4.Settings]}),Fj=o=>(l,f,h)=>x4(o)(l,f,{...h,scope:[A4.Synonyms]}),Pj=o=>(l,f)=>{let h=(E,t)=>Nn.createRetryablePromise(N=>jg(o)(l,t).then(N).catch(F=>{if(F.status!==404)throw F}));return Nn.createWaitablePromise(o.transporter.write({method:Ur.MethodEnum.Delete,path:Nn.encode("1/keys/%s",l)},f),h)},Ij=()=>(o,l)=>{let f=ra.serializeQueryParameters(l),h=Rj.createHmac("sha256",o).update(f).digest("hex");return Buffer.from(h+f).toString("base64")},jg=o=>(l,f)=>o.transporter.read({method:Ur.MethodEnum.Get,path:Nn.encode("1/keys/%s",l)},f),bj=o=>l=>o.transporter.read({method:Ur.MethodEnum.Get,path:"1/logs"},l),Bj=()=>o=>{let l=Buffer.from(o,"base64").toString("ascii"),f=/validUntil=(\d+)/,h=l.match(f);if(h===null)throw g5();return parseInt(h[1],10)-Math.round(new Date().getTime()/1e3)},Uj=o=>l=>o.transporter.read({method:Ur.MethodEnum.Get,path:"1/clusters/mapping/top"},l),jj=o=>(l,f)=>o.transporter.read({method:Ur.MethodEnum.Get,path:Nn.encode("1/clusters/mapping/%s",l)},f),zj=o=>l=>{let{retrieveMappings:f,...h}=l||{};return f===!0&&(h.getClusters=!0),o.transporter.read({method:Ur.MethodEnum.Get,path:"1/clusters/mapping/pending"},h)},zg=o=>(l,f={})=>{let h={transporter:o.transporter,appId:o.appId,indexName:l};return Nn.addMethods(h,f.methods)},Hj=o=>l=>o.transporter.read({method:Ur.MethodEnum.Get,path:"1/keys"},l),qj=o=>l=>o.transporter.read({method:Ur.MethodEnum.Get,path:"1/clusters"},l),Wj=o=>l=>o.transporter.read({method:Ur.MethodEnum.Get,path:"1/indexes"},l),Vj=o=>l=>o.transporter.read({method:Ur.MethodEnum.Get,path:"1/clusters/mapping"},l),Gj=o=>(l,f,h)=>{let E=(t,N)=>zg(o)(l,{methods:{waitTask:xo}}).waitTask(t.taskID,N);return Nn.createWaitablePromise(o.transporter.write({method:Ur.MethodEnum.Post,path:Nn.encode("1/indexes/%s/operation",l),data:{operation:"move",destination:f}},h),E)},Yj=o=>(l,f)=>{let h=(E,t)=>Promise.all(Object.keys(E.taskID).map(N=>zg(o)(N,{methods:{waitTask:xo}}).waitTask(E.taskID[N],t)));return Nn.createWaitablePromise(o.transporter.write({method:Ur.MethodEnum.Post,path:"1/indexes/*/batch",data:{requests:l}},f),h)},Kj=o=>(l,f)=>o.transporter.read({method:Ur.MethodEnum.Post,path:"1/indexes/*/objects",data:{requests:l}},f),Xj=o=>(l,f)=>{let h=l.map(E=>({...E,params:ra.serializeQueryParameters(E.params||{})}));return o.transporter.read({method:Ur.MethodEnum.Post,path:"1/indexes/*/queries",data:{requests:h},cacheable:!0},f)},Qj=o=>(l,f)=>Promise.all(l.map(h=>{let{facetName:E,facetQuery:t,...N}=h.params;return zg(o)(h.indexName,{methods:{searchForFacetValues:C5}}).searchForFacetValues(E,t,{...f,...N})})),Jj=o=>(l,f)=>{let h=ra.createMappedRequestOptions(f);return h.queryParameters["X-Algolia-User-ID"]=l,o.transporter.write({method:Ur.MethodEnum.Delete,path:"1/clusters/mapping"},h)},Zj=o=>(l,f)=>{let h=(E,t)=>Nn.createRetryablePromise(N=>jg(o)(l,t).catch(F=>{if(F.status!==404)throw F;return N()}));return Nn.createWaitablePromise(o.transporter.write({method:Ur.MethodEnum.Post,path:Nn.encode("1/keys/%s/restore",l)},f),h)},$j=o=>(l,f)=>o.transporter.read({method:Ur.MethodEnum.Post,path:"1/clusters/mapping/search",data:{query:l}},f),ez=o=>(l,f)=>{let h=Object.assign({},f),{queryParameters:E,...t}=f||{},N=E?{queryParameters:E}:{},F=["acl","indexes","referers","restrictSources","queryParameters","description","maxQueriesPerIPPerHour","maxHitsPerQuery"],k=j=>Object.keys(h).filter(q=>F.indexOf(q)!==-1).every(q=>j[q]===h[q]),x=(j,q)=>Nn.createRetryablePromise(V=>jg(o)(l,q).then(re=>k(re)?Promise.resolve():V()));return Nn.createWaitablePromise(o.transporter.write({method:Ur.MethodEnum.Put,path:Nn.encode("1/keys/%s",l),data:N},t),x)},_5=o=>(l,f)=>{let h=(E,t)=>xo(o)(E.taskID,t);return Nn.createWaitablePromise(o.transporter.write({method:Ur.MethodEnum.Post,path:Nn.encode("1/indexes/%s/batch",o.indexName),data:{requests:l}},f),h)},tz=o=>l=>C4({...l,shouldStop:f=>f.cursor===void 0,request:f=>o.transporter.read({method:Ur.MethodEnum.Post,path:Nn.encode("1/indexes/%s/browse",o.indexName),data:f},l)}),nz=o=>l=>{let f={hitsPerPage:1e3,...l};return C4({...f,shouldStop:h=>h.hits.length({...E,hits:E.hits.map(t=>(delete t._highlightResult,t))}))}})},rz=o=>l=>{let f={hitsPerPage:1e3,...l};return C4({...f,shouldStop:h=>h.hits.length({...E,hits:E.hits.map(t=>(delete t._highlightResult,t))}))}})},R4=o=>(l,f,h)=>{let{batchSize:E,...t}=h||{},N={taskIDs:[],objectIDs:[]},F=(k=0)=>{let x=[],j;for(j=k;j({action:f,body:q})),t).then(q=>(N.objectIDs=N.objectIDs.concat(q.objectIDs),N.taskIDs.push(q.taskID),j++,F(j)))};return Nn.createWaitablePromise(F(),(k,x)=>Promise.all(k.taskIDs.map(j=>xo(o)(j,x))))},iz=o=>l=>Nn.createWaitablePromise(o.transporter.write({method:Ur.MethodEnum.Post,path:Nn.encode("1/indexes/%s/clear",o.indexName)},l),(f,h)=>xo(o)(f.taskID,h)),uz=o=>l=>{let{forwardToReplicas:f,...h}=l||{},E=ra.createMappedRequestOptions(h);return f&&(E.queryParameters.forwardToReplicas=1),Nn.createWaitablePromise(o.transporter.write({method:Ur.MethodEnum.Post,path:Nn.encode("1/indexes/%s/rules/clear",o.indexName)},E),(t,N)=>xo(o)(t.taskID,N))},oz=o=>l=>{let{forwardToReplicas:f,...h}=l||{},E=ra.createMappedRequestOptions(h);return f&&(E.queryParameters.forwardToReplicas=1),Nn.createWaitablePromise(o.transporter.write({method:Ur.MethodEnum.Post,path:Nn.encode("1/indexes/%s/synonyms/clear",o.indexName)},E),(t,N)=>xo(o)(t.taskID,N))},lz=o=>(l,f)=>Nn.createWaitablePromise(o.transporter.write({method:Ur.MethodEnum.Post,path:Nn.encode("1/indexes/%s/deleteByQuery",o.indexName),data:l},f),(h,E)=>xo(o)(h.taskID,E)),sz=o=>l=>Nn.createWaitablePromise(o.transporter.write({method:Ur.MethodEnum.Delete,path:Nn.encode("1/indexes/%s",o.indexName)},l),(f,h)=>xo(o)(f.taskID,h)),az=o=>(l,f)=>Nn.createWaitablePromise(E5(o)([l],f).then(h=>({taskID:h.taskIDs[0]})),(h,E)=>xo(o)(h.taskID,E)),E5=o=>(l,f)=>{let h=l.map(E=>({objectID:E}));return R4(o)(h,fh.DeleteObject,f)},fz=o=>(l,f)=>{let{forwardToReplicas:h,...E}=f||{},t=ra.createMappedRequestOptions(E);return h&&(t.queryParameters.forwardToReplicas=1),Nn.createWaitablePromise(o.transporter.write({method:Ur.MethodEnum.Delete,path:Nn.encode("1/indexes/%s/rules/%s",o.indexName,l)},t),(N,F)=>xo(o)(N.taskID,F))},cz=o=>(l,f)=>{let{forwardToReplicas:h,...E}=f||{},t=ra.createMappedRequestOptions(E);return h&&(t.queryParameters.forwardToReplicas=1),Nn.createWaitablePromise(o.transporter.write({method:Ur.MethodEnum.Delete,path:Nn.encode("1/indexes/%s/synonyms/%s",o.indexName,l)},t),(N,F)=>xo(o)(N.taskID,F))},dz=o=>l=>D5(o)(l).then(()=>!0).catch(f=>{if(f.status!==404)throw f;return!1}),pz=o=>(l,f)=>{let{query:h,paginate:E,...t}=f||{},N=0,F=()=>T5(o)(h||"",{...t,page:N}).then(k=>{for(let[x,j]of Object.entries(k.hits))if(l(j))return{object:j,position:parseInt(x,10),page:N};if(N++,E===!1||N>=k.nbPages)throw y5();return F()});return F()},hz=o=>(l,f)=>o.transporter.read({method:Ur.MethodEnum.Get,path:Nn.encode("1/indexes/%s/%s",o.indexName,l)},f),vz=()=>(o,l)=>{for(let[f,h]of Object.entries(o.hits))if(h.objectID===l)return parseInt(f,10);return-1},mz=o=>(l,f)=>{let{attributesToRetrieve:h,...E}=f||{},t=l.map(N=>({indexName:o.indexName,objectID:N,...h?{attributesToRetrieve:h}:{}}));return o.transporter.read({method:Ur.MethodEnum.Post,path:"1/indexes/*/objects",data:{requests:t}},E)},yz=o=>(l,f)=>o.transporter.read({method:Ur.MethodEnum.Get,path:Nn.encode("1/indexes/%s/rules/%s",o.indexName,l)},f),D5=o=>l=>o.transporter.read({method:Ur.MethodEnum.Get,path:Nn.encode("1/indexes/%s/settings",o.indexName),data:{getVersion:2}},l),gz=o=>(l,f)=>o.transporter.read({method:Ur.MethodEnum.Get,path:Nn.encode("1/indexes/%s/synonyms/%s",o.indexName,l)},f),w5=o=>(l,f)=>o.transporter.read({method:Ur.MethodEnum.Get,path:Nn.encode("1/indexes/%s/task/%s",o.indexName,l.toString())},f),_z=o=>(l,f)=>Nn.createWaitablePromise(S5(o)([l],f).then(h=>({objectID:h.objectIDs[0],taskID:h.taskIDs[0]})),(h,E)=>xo(o)(h.taskID,E)),S5=o=>(l,f)=>{let{createIfNotExists:h,...E}=f||{},t=h?fh.PartialUpdateObject:fh.PartialUpdateObjectNoCreate;return R4(o)(l,t,E)},Ez=o=>(l,f)=>{let{safe:h,autoGenerateObjectIDIfNotExist:E,batchSize:t,...N}=f||{},F=(y,me,De,ge)=>Nn.createWaitablePromise(o.transporter.write({method:Ur.MethodEnum.Post,path:Nn.encode("1/indexes/%s/operation",y),data:{operation:De,destination:me}},ge),(ae,we)=>xo(o)(ae.taskID,we)),k=Math.random().toString(36).substring(7),x=`${o.indexName}_tmp_${k}`,j=tw({appId:o.appId,transporter:o.transporter,indexName:x}),q=[],V=F(o.indexName,x,"copy",{...N,scope:["settings","synonyms","rules"]});q.push(V);let re=(h?V.wait(N):V).then(()=>{let y=j(l,{...N,autoGenerateObjectIDIfNotExist:E,batchSize:t});return q.push(y),h?y.wait(N):y}).then(()=>{let y=F(x,o.indexName,"move",N);return q.push(y),h?y.wait(N):y}).then(()=>Promise.all(q)).then(([y,me,De])=>({objectIDs:me.objectIDs,taskIDs:[y.taskID,...me.taskIDs,De.taskID]}));return Nn.createWaitablePromise(re,(y,me)=>Promise.all(q.map(De=>De.wait(me))))},Dz=o=>(l,f)=>nw(o)(l,{...f,clearExistingRules:!0}),wz=o=>(l,f)=>rw(o)(l,{...f,replaceExistingSynonyms:!0}),Sz=o=>(l,f)=>Nn.createWaitablePromise(tw(o)([l],f).then(h=>({objectID:h.objectIDs[0],taskID:h.taskIDs[0]})),(h,E)=>xo(o)(h.taskID,E)),tw=o=>(l,f)=>{let{autoGenerateObjectIDIfNotExist:h,...E}=f||{},t=h?fh.AddObject:fh.UpdateObject;if(t===fh.UpdateObject){for(let N of l)if(N.objectID===void 0)return Nn.createWaitablePromise(Promise.reject(m5()))}return R4(o)(l,t,E)},Tz=o=>(l,f)=>nw(o)([l],f),nw=o=>(l,f)=>{let{forwardToReplicas:h,clearExistingRules:E,...t}=f||{},N=ra.createMappedRequestOptions(t);return h&&(N.queryParameters.forwardToReplicas=1),E&&(N.queryParameters.clearExistingRules=1),Nn.createWaitablePromise(o.transporter.write({method:Ur.MethodEnum.Post,path:Nn.encode("1/indexes/%s/rules/batch",o.indexName),data:l},N),(F,k)=>xo(o)(F.taskID,k))},Cz=o=>(l,f)=>rw(o)([l],f),rw=o=>(l,f)=>{let{forwardToReplicas:h,replaceExistingSynonyms:E,...t}=f||{},N=ra.createMappedRequestOptions(t);return h&&(N.queryParameters.forwardToReplicas=1),E&&(N.queryParameters.replaceExistingSynonyms=1),Nn.createWaitablePromise(o.transporter.write({method:Ur.MethodEnum.Post,path:Nn.encode("1/indexes/%s/synonyms/batch",o.indexName),data:l},N),(F,k)=>xo(o)(F.taskID,k))},T5=o=>(l,f)=>o.transporter.read({method:Ur.MethodEnum.Post,path:Nn.encode("1/indexes/%s/query",o.indexName),data:{query:l},cacheable:!0},f),C5=o=>(l,f,h)=>o.transporter.read({method:Ur.MethodEnum.Post,path:Nn.encode("1/indexes/%s/facets/%s/query",o.indexName,l),data:{facetQuery:f},cacheable:!0},h),x5=o=>(l,f)=>o.transporter.read({method:Ur.MethodEnum.Post,path:Nn.encode("1/indexes/%s/rules/search",o.indexName),data:{query:l}},f),R5=o=>(l,f)=>o.transporter.read({method:Ur.MethodEnum.Post,path:Nn.encode("1/indexes/%s/synonyms/search",o.indexName),data:{query:l}},f),xz=o=>(l,f)=>{let{forwardToReplicas:h,...E}=f||{},t=ra.createMappedRequestOptions(E);return h&&(t.queryParameters.forwardToReplicas=1),Nn.createWaitablePromise(o.transporter.write({method:Ur.MethodEnum.Put,path:Nn.encode("1/indexes/%s/settings",o.indexName),data:l},t),(N,F)=>xo(o)(N.taskID,F))},xo=o=>(l,f)=>Nn.createRetryablePromise(h=>w5(o)(l,f).then(E=>E.status!=="published"?h():void 0)),Rz={AddObject:"addObject",Analytics:"analytics",Browser:"browse",DeleteIndex:"deleteIndex",DeleteObject:"deleteObject",EditSettings:"editSettings",ListIndexes:"listIndexes",Logs:"logs",Recommendation:"recommendation",Search:"search",SeeUnretrievableAttributes:"seeUnretrievableAttributes",Settings:"settings",Usage:"usage"},fh={AddObject:"addObject",UpdateObject:"updateObject",PartialUpdateObject:"partialUpdateObject",PartialUpdateObjectNoCreate:"partialUpdateObjectNoCreate",DeleteObject:"deleteObject"},A4={Settings:"settings",Synonyms:"synonyms",Rules:"rules"},Az={None:"none",StopIfEnoughMatches:"stopIfEnoughMatches"},Oz={Synonym:"synonym",OneWaySynonym:"oneWaySynonym",AltCorrection1:"altCorrection1",AltCorrection2:"altCorrection2",Placeholder:"placeholder"};tn.ApiKeyACLEnum=Rz;tn.BatchActionEnum=fh;tn.ScopeEnum=A4;tn.StrategyEnum=Az;tn.SynonymEnum=Oz;tn.addApiKey=Oj;tn.assignUserID=Mj;tn.assignUserIDs=kj;tn.batch=_5;tn.browseObjects=tz;tn.browseRules=nz;tn.browseSynonyms=rz;tn.chunkedBatch=R4;tn.clearObjects=iz;tn.clearRules=uz;tn.clearSynonyms=oz;tn.copyIndex=x4;tn.copyRules=Nj;tn.copySettings=Lj;tn.copySynonyms=Fj;tn.createBrowsablePromise=C4;tn.createMissingObjectIDError=m5;tn.createObjectNotFoundError=y5;tn.createSearchClient=Aj;tn.createValidUntilNotFoundError=g5;tn.deleteApiKey=Pj;tn.deleteBy=lz;tn.deleteIndex=sz;tn.deleteObject=az;tn.deleteObjects=E5;tn.deleteRule=fz;tn.deleteSynonym=cz;tn.exists=dz;tn.findObject=pz;tn.generateSecuredApiKey=Ij;tn.getApiKey=jg;tn.getLogs=bj;tn.getObject=hz;tn.getObjectPosition=vz;tn.getObjects=mz;tn.getRule=yz;tn.getSecuredApiKeyRemainingValidity=Bj;tn.getSettings=D5;tn.getSynonym=gz;tn.getTask=w5;tn.getTopUserIDs=Uj;tn.getUserID=jj;tn.hasPendingMappings=zj;tn.initIndex=zg;tn.listApiKeys=Hj;tn.listClusters=qj;tn.listIndices=Wj;tn.listUserIDs=Vj;tn.moveIndex=Gj;tn.multipleBatch=Yj;tn.multipleGetObjects=Kj;tn.multipleQueries=Xj;tn.multipleSearchForFacetValues=Qj;tn.partialUpdateObject=_z;tn.partialUpdateObjects=S5;tn.removeUserID=Jj;tn.replaceAllObjects=Ez;tn.replaceAllRules=Dz;tn.replaceAllSynonyms=wz;tn.restoreApiKey=Zj;tn.saveObject=Sz;tn.saveObjects=tw;tn.saveRule=Tz;tn.saveRules=nw;tn.saveSynonym=Cz;tn.saveSynonyms=rw;tn.search=T5;tn.searchForFacetValues=C5;tn.searchRules=x5;tn.searchSynonyms=R5;tn.searchUserIDs=$j;tn.setSettings=xz;tn.updateApiKey=ez;tn.waitTask=xo});var M5=nt((FW,O5)=>{O5.exports=A5()});var k5=nt(O4=>{"use strict";Object.defineProperty(O4,"__esModule",{value:!0});function Mz(){return{debug(o,l){return Promise.resolve()},info(o,l){return Promise.resolve()},error(o,l){return Promise.resolve()}}}var kz={Debug:1,Info:2,Error:3};O4.LogLevelEnum=kz;O4.createNullLogger=Mz});var L5=nt((IW,N5)=>{N5.exports=k5()});var I5=nt(iw=>{"use strict";Object.defineProperty(iw,"__esModule",{value:!0});var F5=hi("http"),P5=hi("https"),Nz=hi("url");function Lz(){let o={keepAlive:!0},l=new F5.Agent(o),f=new P5.Agent(o);return{send(h){return new Promise(E=>{let t=Nz.parse(h.url),N=t.query===null?t.pathname:`${t.pathname}?${t.query}`,F={agent:t.protocol==="https:"?f:l,hostname:t.hostname,path:N,method:h.method,headers:h.headers,...t.port!==void 0?{port:t.port||""}:{}},k=(t.protocol==="https:"?P5:F5).request(F,V=>{let re="";V.on("data",y=>re+=y),V.on("end",()=>{clearTimeout(j),clearTimeout(q),E({status:V.statusCode||0,content:re,isTimedOut:!1})})}),x=(V,re)=>setTimeout(()=>{k.abort(),E({status:0,content:re,isTimedOut:!0})},V*1e3),j=x(h.connectTimeout,"Connection timeout"),q;k.on("error",V=>{clearTimeout(j),clearTimeout(q),E({status:0,content:V.message,isTimedOut:!1})}),k.once("response",()=>{clearTimeout(j),q=x(h.responseTimeout,"Socket timeout")}),h.data!==void 0&&k.write(h.data),k.end()})},destroy(){return l.destroy(),f.destroy(),Promise.resolve()}}}iw.createNodeHttpRequester=Lz});var B5=nt((BW,b5)=>{b5.exports=I5()});var H5=nt((UW,z5)=>{"use strict";var U5=Bx(),Fz=zx(),lm=c5(),ow=Pg(),uw=v5(),wn=M5(),Pz=L5(),Iz=B5(),bz=bg();function j5(o,l,f){let h={appId:o,apiKey:l,timeouts:{connect:2,read:5,write:30},requester:Iz.createNodeHttpRequester(),logger:Pz.createNullLogger(),responsesCache:U5.createNullCache(),requestsCache:U5.createNullCache(),hostsCache:Fz.createInMemoryCache(),userAgent:bz.createUserAgent(ow.version).add({segment:"Node.js",version:process.versions.node})};return wn.createSearchClient({...h,...f,methods:{search:wn.multipleQueries,searchForFacetValues:wn.multipleSearchForFacetValues,multipleBatch:wn.multipleBatch,multipleGetObjects:wn.multipleGetObjects,multipleQueries:wn.multipleQueries,copyIndex:wn.copyIndex,copySettings:wn.copySettings,copyRules:wn.copyRules,copySynonyms:wn.copySynonyms,moveIndex:wn.moveIndex,listIndices:wn.listIndices,getLogs:wn.getLogs,listClusters:wn.listClusters,multipleSearchForFacetValues:wn.multipleSearchForFacetValues,getApiKey:wn.getApiKey,addApiKey:wn.addApiKey,listApiKeys:wn.listApiKeys,updateApiKey:wn.updateApiKey,deleteApiKey:wn.deleteApiKey,restoreApiKey:wn.restoreApiKey,assignUserID:wn.assignUserID,assignUserIDs:wn.assignUserIDs,getUserID:wn.getUserID,searchUserIDs:wn.searchUserIDs,listUserIDs:wn.listUserIDs,getTopUserIDs:wn.getTopUserIDs,removeUserID:wn.removeUserID,hasPendingMappings:wn.hasPendingMappings,generateSecuredApiKey:wn.generateSecuredApiKey,getSecuredApiKeyRemainingValidity:wn.getSecuredApiKeyRemainingValidity,destroy:ow.destroy,initIndex:E=>t=>wn.initIndex(E)(t,{methods:{batch:wn.batch,delete:wn.deleteIndex,getObject:wn.getObject,getObjects:wn.getObjects,saveObject:wn.saveObject,saveObjects:wn.saveObjects,search:wn.search,searchForFacetValues:wn.searchForFacetValues,waitTask:wn.waitTask,setSettings:wn.setSettings,getSettings:wn.getSettings,partialUpdateObject:wn.partialUpdateObject,partialUpdateObjects:wn.partialUpdateObjects,deleteObject:wn.deleteObject,deleteObjects:wn.deleteObjects,deleteBy:wn.deleteBy,clearObjects:wn.clearObjects,browseObjects:wn.browseObjects,getObjectPosition:wn.getObjectPosition,findObject:wn.findObject,exists:wn.exists,saveSynonym:wn.saveSynonym,saveSynonyms:wn.saveSynonyms,getSynonym:wn.getSynonym,searchSynonyms:wn.searchSynonyms,browseSynonyms:wn.browseSynonyms,deleteSynonym:wn.deleteSynonym,clearSynonyms:wn.clearSynonyms,replaceAllObjects:wn.replaceAllObjects,replaceAllSynonyms:wn.replaceAllSynonyms,searchRules:wn.searchRules,getRule:wn.getRule,deleteRule:wn.deleteRule,saveRule:wn.saveRule,saveRules:wn.saveRules,replaceAllRules:wn.replaceAllRules,browseRules:wn.browseRules,clearRules:wn.clearRules}}),initAnalytics:()=>E=>lm.createAnalyticsClient({...h,...E,methods:{addABTest:lm.addABTest,getABTest:lm.getABTest,getABTests:lm.getABTests,stopABTest:lm.stopABTest,deleteABTest:lm.deleteABTest}}),initRecommendation:()=>E=>uw.createRecommendationClient({...h,...E,methods:{getPersonalizationStrategy:uw.getPersonalizationStrategy,setPersonalizationStrategy:uw.setPersonalizationStrategy}})}})}j5.version=ow.version;z5.exports=j5});var W5=nt((jW,lw)=>{var q5=H5();lw.exports=q5;lw.exports.default=q5});var Yz={};HF(Yz,{default:()=>Gz});var G5=hi("@yarnpkg/cli"),ch=hi("@yarnpkg/core");var Cx=V0(lc()),lh=V0(Mi()),m4=(0,lh.memo)(({active:o})=>{let l=(0,lh.useMemo)(()=>o?"\u25C9":"\u25EF",[o]),f=(0,lh.useMemo)(()=>o?"green":"yellow",[o]);return lh.default.createElement(Cx.Text,{color:f},l)});var m2=V0(lc()),na=V0(Mi());var xx=V0(lc()),y4=V0(Mi());function v2({active:o},l,f){let{stdin:h}=(0,xx.useStdin)(),E=(0,y4.useCallback)((t,N)=>l(t,N),f);(0,y4.useEffect)(()=>{if(!(!o||!h))return h.on("keypress",E),()=>{h.off("keypress",E)}},[o,E,h])}var Rx=function({active:o},l,f){v2({active:o},(h,E)=>{E.name==="tab"&&(E.shift?l("before"):l("after"))},f)};var g4=function(o,l,{active:f,minus:h,plus:E,set:t,loop:N=!0}){v2({active:f},(F,k)=>{let x=l.indexOf(o);switch(k.name){case h:{let j=x-1;if(N){t(l[(l.length+j)%l.length]);return}if(j<0)return;t(l[j])}break;case E:{let j=x+1;if(N){t(l[j%l.length]);return}if(j>=l.length)return;t(l[j])}break}},[l,o,E,t,N])};var _4=({active:o=!0,children:l=[],radius:f=10,size:h=1,loop:E=!0,onFocusRequest:t,willReachEnd:N})=>{let F=De=>{if(De.key===null)throw new Error("Expected all children to have a key");return De.key},k=na.default.Children.map(l,De=>F(De)),x=k[0],[j,q]=(0,na.useState)(x),V=k.indexOf(j);(0,na.useEffect)(()=>{k.includes(j)||q(x)},[l]),(0,na.useEffect)(()=>{N&&V>=k.length-2&&N()},[V]),Rx({active:o&&!!t},De=>{t==null||t(De)},[t]),g4(j,k,{active:o,minus:"up",plus:"down",set:q,loop:E});let re=V-f,y=V+f;y>k.length&&(re-=y-k.length,y=k.length),re<0&&(y+=-re,re=0),y>=k.length&&(y=k.length-1);let me=[];for(let De=re;De<=y;++De){let ge=k[De],ae=o&&ge===j;me.push(na.default.createElement(m2.Box,{key:ge,height:h},na.default.createElement(m2.Box,{marginLeft:1,marginRight:1},na.default.createElement(m2.Text,null,ae?na.default.createElement(m2.Text,{color:"cyan",bold:!0},">"):" ")),na.default.createElement(m2.Box,null,na.default.cloneElement(l[De],{active:ae}))))}return na.default.createElement(m2.Box,{flexDirection:"column",width:"100%"},me)};var E4=V0(Mi());var Ax=V0(lc()),ed=V0(Mi()),Ox=hi("readline"),q3=ed.default.createContext(null),Mx=({children:o})=>{let{stdin:l,setRawMode:f}=(0,Ax.useStdin)();(0,ed.useEffect)(()=>{f&&f(!0),l&&(0,Ox.emitKeypressEvents)(l)},[l,f]);let[h,E]=(0,ed.useState)(new Map),t=(0,ed.useMemo)(()=>({getAll:()=>h,get:N=>h.get(N),set:(N,F)=>E(new Map([...h,[N,F]]))}),[h,E]);return ed.default.createElement(q3.Provider,{value:t,children:o})};function sh(o,l){let f=(0,E4.useContext)(q3);if(f===null)throw new Error("Expected this hook to run with a ministore context attached");if(typeof o>"u")return f.getAll();let h=(0,E4.useCallback)(t=>{f.set(o,t)},[o,f.set]),E=f.get(o);return typeof E>"u"&&(E=l),[E,h]}var D4=V0(lc()),W3=V0(Mi());async function w4(o,l,{stdin:f,stdout:h,stderr:E}={}){let t,N=k=>{let{exit:x}=(0,D4.useApp)();v2({active:!0},(j,q)=>{q.name==="return"&&(t=k,x())},[x,k])},{waitUntilExit:F}=(0,D4.render)(W3.default.createElement(Mx,null,W3.default.createElement(o,{...l,useSubmit:N})),{stdin:f,stdout:h,stderr:E});return await F(),t}var Y5=hi("clipanion"),K5=V0(Fx()),or=V0(lc()),En=V0(Mi());var V5=V0(W5()),sw={appId:"OFCNCOG2CU",apiKey:"6fe4476ee5a1832882e326b506d14126",indexName:"npm-search"},Bz=(0,V5.default)(sw.appId,sw.apiKey).initIndex(sw.indexName),aw=async(o,l=0)=>await Bz.search(o,{analyticsTags:["yarn-plugin-interactive-tools"],attributesToRetrieve:["name","version","owner","repository","humanDownloadsLast30Days"],page:l,hitsPerPage:10});var Hg=["regular","dev","peer"],dh=class extends G5.BaseCommand{async execute(){let l=await ch.Configuration.find(this.context.cwd,this.context.plugins),f=()=>En.default.createElement(or.Box,{flexDirection:"row"},En.default.createElement(or.Box,{flexDirection:"column",width:48},En.default.createElement(or.Box,null,En.default.createElement(or.Text,null,"Press ",En.default.createElement(or.Text,{bold:!0,color:"cyanBright"},""),"/",En.default.createElement(or.Text,{bold:!0,color:"cyanBright"},"")," to move between packages.")),En.default.createElement(or.Box,null,En.default.createElement(or.Text,null,"Press ",En.default.createElement(or.Text,{bold:!0,color:"cyanBright"},"")," to select a package.")),En.default.createElement(or.Box,null,En.default.createElement(or.Text,null,"Press ",En.default.createElement(or.Text,{bold:!0,color:"cyanBright"},"")," again to change the target."))),En.default.createElement(or.Box,{flexDirection:"column"},En.default.createElement(or.Box,{marginLeft:1},En.default.createElement(or.Text,null,"Press ",En.default.createElement(or.Text,{bold:!0,color:"cyanBright"},"")," to install the selected packages.")),En.default.createElement(or.Box,{marginLeft:1},En.default.createElement(or.Text,null,"Press ",En.default.createElement(or.Text,{bold:!0,color:"cyanBright"},"")," to abort.")))),h=()=>En.default.createElement(En.default.Fragment,null,En.default.createElement(or.Box,{width:15},En.default.createElement(or.Text,{bold:!0,underline:!0,color:"gray"},"Owner")),En.default.createElement(or.Box,{width:11},En.default.createElement(or.Text,{bold:!0,underline:!0,color:"gray"},"Version")),En.default.createElement(or.Box,{width:10},En.default.createElement(or.Text,{bold:!0,underline:!0,color:"gray"},"Downloads"))),E=()=>En.default.createElement(or.Box,{width:17},En.default.createElement(or.Text,{bold:!0,underline:!0,color:"gray"},"Target")),t=({hit:re,active:y})=>{let[me,De]=sh(re.name,null);v2({active:y},(we,he)=>{if(he.name!=="space")return;if(!me){De(Hg[0]);return}let ve=Hg.indexOf(me)+1;ve===Hg.length?De(null):De(Hg[ve])},[me,De]);let ge=ch.structUtils.parseIdent(re.name),ae=ch.structUtils.prettyIdent(l,ge);return En.default.createElement(or.Box,null,En.default.createElement(or.Box,{width:45},En.default.createElement(or.Text,{bold:!0,wrap:"wrap"},ae)),En.default.createElement(or.Box,{width:14,marginLeft:1},En.default.createElement(or.Text,{bold:!0,wrap:"truncate"},re.owner.name)),En.default.createElement(or.Box,{width:10,marginLeft:1},En.default.createElement(or.Text,{italic:!0,wrap:"truncate"},re.version)),En.default.createElement(or.Box,{width:16,marginLeft:1},En.default.createElement(or.Text,null,re.humanDownloadsLast30Days)))},N=({name:re,active:y})=>{let[me]=sh(re,null),De=ch.structUtils.parseIdent(re);return En.default.createElement(or.Box,null,En.default.createElement(or.Box,{width:47},En.default.createElement(or.Text,{bold:!0}," - ",ch.structUtils.prettyIdent(l,De))),Hg.map(ge=>En.default.createElement(or.Box,{key:ge,width:14,marginLeft:1},En.default.createElement(or.Text,null," ",En.default.createElement(m4,{active:me===ge})," ",En.default.createElement(or.Text,{bold:!0},ge)))))},F=()=>En.default.createElement(or.Box,{marginTop:1},En.default.createElement(or.Text,null,"Powered by Algolia.")),x=await w4(({useSubmit:re})=>{let y=sh();re(y);let me=Array.from(y.keys()).filter(We=>y.get(We)!==null),[De,ge]=(0,En.useState)(""),[ae,we]=(0,En.useState)(0),[he,ve]=(0,En.useState)([]),ue=We=>{We.match(/\t| /)||ge(We)},Ae=async()=>{we(0);let We=await aw(De);We.query===De&&ve(We.hits)},ze=async()=>{let We=await aw(De,ae+1);We.query===De&&We.page-1===ae&&(we(We.page),ve([...he,...We.hits]))};return(0,En.useEffect)(()=>{De?Ae():ve([])},[De]),En.default.createElement(or.Box,{flexDirection:"column"},En.default.createElement(f,null),En.default.createElement(or.Box,{flexDirection:"row",marginTop:1},En.default.createElement(or.Text,{bold:!0},"Search: "),En.default.createElement(or.Box,{width:41},En.default.createElement(K5.default,{value:De,onChange:ue,placeholder:"i.e. babel, webpack, react...",showCursor:!1})),En.default.createElement(h,null)),he.length?En.default.createElement(_4,{radius:2,loop:!1,children:he.map(We=>En.default.createElement(t,{key:We.name,hit:We,active:!1})),willReachEnd:ze}):En.default.createElement(or.Text,{color:"gray"},"Start typing..."),En.default.createElement(or.Box,{flexDirection:"row",marginTop:1},En.default.createElement(or.Box,{width:49},En.default.createElement(or.Text,{bold:!0},"Selected:")),En.default.createElement(E,null)),me.length?me.map(We=>En.default.createElement(N,{key:We,name:We,active:!1})):En.default.createElement(or.Text,{color:"gray"},"No selected packages..."),En.default.createElement(F,null))},{},{stdin:this.context.stdin,stdout:this.context.stdout,stderr:this.context.stderr});if(typeof x>"u")return 1;let j=Array.from(x.keys()).filter(re=>x.get(re)==="regular"),q=Array.from(x.keys()).filter(re=>x.get(re)==="dev"),V=Array.from(x.keys()).filter(re=>x.get(re)==="peer");return j.length&&await this.cli.run(["add",...j]),q.length&&await this.cli.run(["add","--dev",...q]),V&&await this.cli.run(["add","--peer",...V]),0}};dh.paths=[["search"]],dh.usage=Y5.Command.Usage({category:"Interactive commands",description:"open the search interface",details:` + This command opens a fullscreen terminal interface where you can search for and install packages from the npm registry. + `,examples:[["Open the search window","yarn search"]]});var N4=hi("@yarnpkg/cli"),Ro=hi("@yarnpkg/core");var qg=V0(lc()),g2=V0(Mi());var X5=V0(lc()),Q5=V0(Mi()),M4=({length:o,active:l})=>{if(o===0)return null;let f=o>1?` ${"-".repeat(o-1)}`:" ";return Q5.default.createElement(X5.Text,{dimColor:!l},f)};var J5=function({active:o,skewer:l,options:f,value:h,onChange:E,sizes:t=[]}){let N=f.filter(({label:k})=>!!k).map(({value:k})=>k),F=f.findIndex(k=>k.value===h&&k.label!="");return g4(h,N,{active:o,minus:"left",plus:"right",set:E}),g2.default.createElement(g2.default.Fragment,null,f.map(({label:k},x)=>{let j=x===F,q=t[x]-1||0,V=k.replace(/[\u001b\u009b][[()#;?]*(?:[0-9]{1,4}(?:;[0-9]{0,4})*)?[0-9A-ORZcf-nqry=><]/g,""),re=Math.max(0,q-V.length-2);return k?g2.default.createElement(qg.Box,{key:k,width:q,marginLeft:1},g2.default.createElement(qg.Text,{wrap:"truncate"},g2.default.createElement(m4,{active:j})," ",k),l?g2.default.createElement(M4,{active:o,length:re}):null):g2.default.createElement(qg.Box,{key:`spacer-${x}`,width:q,marginLeft:1})}))};var r9=hi("@yarnpkg/plugin-essentials"),L4=hi("clipanion");function td(){}td.prototype={diff:function(l,f){var h=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},E=h.callback;typeof h=="function"&&(E=h,h={}),this.options=h;var t=this;function N(me){return E?(setTimeout(function(){E(void 0,me)},0),!0):me}l=this.castInput(l),f=this.castInput(f),l=this.removeEmpty(this.tokenize(l)),f=this.removeEmpty(this.tokenize(f));var F=f.length,k=l.length,x=1,j=F+k;h.maxEditLength&&(j=Math.min(j,h.maxEditLength));var q=[{newPos:-1,components:[]}],V=this.extractCommon(q[0],f,l,0);if(q[0].newPos+1>=F&&V+1>=k)return N([{value:this.join(f),count:f.length}]);function re(){for(var me=-1*x;me<=x;me+=2){var De=void 0,ge=q[me-1],ae=q[me+1],we=(ae?ae.newPos:0)-me;ge&&(q[me-1]=void 0);var he=ge&&ge.newPos+1=F&&we+1>=k)return N(Uz(t,De.components,f,l,t.useLongestToken));q[me]=De}x++}if(E)(function me(){setTimeout(function(){if(x>j)return E();re()||me()},0)})();else for(;x<=j;){var y=re();if(y)return y}},pushComponent:function(l,f,h){var E=l[l.length-1];E&&E.added===f&&E.removed===h?l[l.length-1]={count:E.count+1,added:f,removed:h}:l.push({count:1,added:f,removed:h})},extractCommon:function(l,f,h,E){for(var t=f.length,N=h.length,F=l.newPos,k=F-E,x=0;F+1re.length?me:re}),x.value=o.join(j)}else x.value=o.join(f.slice(F,F+x.count));F+=x.count,x.added||(k+=x.count)}}var V=l[N-1];return N>1&&typeof V.value=="string"&&(V.added||V.removed)&&o.equals("",V.value)&&(l[N-2].value+=V.value,l.pop()),l}function jz(o){return{newPos:o.newPos,components:o.components.slice(0)}}var rV=new td;function zz(o,l){if(typeof o=="function")l.callback=o;else if(o)for(var f in o)o.hasOwnProperty(f)&&(l[f]=o[f]);return l}var Z5=/^[A-Za-z\xC0-\u02C6\u02C8-\u02D7\u02DE-\u02FF\u1E00-\u1EFF]+$/,$5=/\S/,dw=new td;dw.equals=function(o,l){return this.options.ignoreCase&&(o=o.toLowerCase(),l=l.toLowerCase()),o===l||this.options.ignoreWhitespace&&!$5.test(o)&&!$5.test(l)};dw.tokenize=function(o){for(var l=o.split(/([^\S\r\n]+|[()[\]{}'"\r\n]|\b)/),f=0;f"u"?f:N}:h;return typeof o=="string"?o:JSON.stringify(fw(o,null,null,E),E," ")};Wg.equals=function(o,l){return td.prototype.equals.call(Wg,o.replace(/,([\r\n])/g,"$1"),l.replace(/,([\r\n])/g,"$1"))};function fw(o,l,f,h,E){l=l||[],f=f||[],h&&(o=h(E,o));var t;for(t=0;t=?)?)([0-9]+)(\.[0-9]+)(\.[0-9]+)((?:-\S+)?)$/,u9=(o,l)=>o.length>0?[o.slice(0,l)].concat(u9(o.slice(l),l)):[],ph=class extends N4.BaseCommand{async execute(){if(!this.context.stdout.isTTY)throw new L4.UsageError("This command can only be run in a TTY environment");let l=await Ro.Configuration.find(this.context.cwd,this.context.plugins),{project:f,workspace:h}=await Ro.Project.find(l,this.context.cwd),E=await Ro.Cache.find(l);if(!h)throw new N4.WorkspaceRequiredError(f.cwd,this.context.cwd);await f.restoreInstallState({restoreResolutions:!1});let t=this.context.stdout.rows-7,N=(ae,we)=>{let he=e9(ae,we),ve="";for(let ue of he)ue.added?ve+=Ro.formatUtils.pretty(l,ue.value,"green"):ue.removed||(ve+=ue.value);return ve},F=(ae,we)=>{if(ae===we)return we;let he=Ro.structUtils.parseRange(ae),ve=Ro.structUtils.parseRange(we),ue=he.selector.match(n9),Ae=ve.selector.match(n9);if(!ue||!Ae)return N(ae,we);let ze=["gray","red","yellow","green","magenta"],We=null,gt="";for(let _t=1;_t{let ve=await r9.suggestUtils.fetchDescriptorFrom(ae,he,{project:f,cache:E,preserveModifier:we,workspace:h});return ve!==null?ve.range:ae.range},x=async ae=>{let we=i9.default.valid(ae.range)?`^${ae.range}`:ae.range,[he,ve]=await Promise.all([k(ae,ae.range,we).catch(()=>null),k(ae,ae.range,"latest").catch(()=>null)]),ue=[{value:null,label:ae.range}];return he&&he!==ae.range?ue.push({value:he,label:F(ae.range,he)}):ue.push({value:null,label:""}),ve&&ve!==he&&ve!==ae.range?ue.push({value:ve,label:F(ae.range,ve)}):ue.push({value:null,label:""}),ue},j=()=>Tr.default.createElement(bi.Box,{flexDirection:"row"},Tr.default.createElement(bi.Box,{flexDirection:"column",width:49},Tr.default.createElement(bi.Box,{marginLeft:1},Tr.default.createElement(bi.Text,null,"Press ",Tr.default.createElement(bi.Text,{bold:!0,color:"cyanBright"},""),"/",Tr.default.createElement(bi.Text,{bold:!0,color:"cyanBright"},"")," to select packages.")),Tr.default.createElement(bi.Box,{marginLeft:1},Tr.default.createElement(bi.Text,null,"Press ",Tr.default.createElement(bi.Text,{bold:!0,color:"cyanBright"},""),"/",Tr.default.createElement(bi.Text,{bold:!0,color:"cyanBright"},"")," to select versions."))),Tr.default.createElement(bi.Box,{flexDirection:"column"},Tr.default.createElement(bi.Box,{marginLeft:1},Tr.default.createElement(bi.Text,null,"Press ",Tr.default.createElement(bi.Text,{bold:!0,color:"cyanBright"},"")," to install.")),Tr.default.createElement(bi.Box,{marginLeft:1},Tr.default.createElement(bi.Text,null,"Press ",Tr.default.createElement(bi.Text,{bold:!0,color:"cyanBright"},"")," to abort.")))),q=()=>Tr.default.createElement(bi.Box,{flexDirection:"row",paddingTop:1,paddingBottom:1},Tr.default.createElement(bi.Box,{width:50},Tr.default.createElement(bi.Text,{bold:!0},Tr.default.createElement(bi.Text,{color:"greenBright"},"?")," Pick the packages you want to upgrade.")),Tr.default.createElement(bi.Box,{width:17},Tr.default.createElement(bi.Text,{bold:!0,underline:!0,color:"gray"},"Current")),Tr.default.createElement(bi.Box,{width:17},Tr.default.createElement(bi.Text,{bold:!0,underline:!0,color:"gray"},"Range")),Tr.default.createElement(bi.Box,{width:17},Tr.default.createElement(bi.Text,{bold:!0,underline:!0,color:"gray"},"Latest"))),V=({active:ae,descriptor:we,suggestions:he})=>{let[ve,ue]=sh(we.descriptorHash,null),Ae=Ro.structUtils.stringifyIdent(we),ze=Math.max(0,45-Ae.length);return Tr.default.createElement(Tr.default.Fragment,null,Tr.default.createElement(bi.Box,null,Tr.default.createElement(bi.Box,{width:45},Tr.default.createElement(bi.Text,{bold:!0},Ro.structUtils.prettyIdent(l,we)),Tr.default.createElement(M4,{active:ae,length:ze})),Tr.default.createElement(J5,{active:ae,options:he,value:ve,skewer:!0,onChange:ue,sizes:[17,17,17]})))},re=({dependencies:ae})=>{let[we,he]=(0,Tr.useState)(ae.map(()=>null)),ve=(0,Tr.useRef)(!0),ue=async Ae=>{let ze=await x(Ae);return ze.filter(We=>We.label!=="").length<=1?null:{descriptor:Ae,suggestions:ze}};return(0,Tr.useEffect)(()=>()=>{ve.current=!1},[]),(0,Tr.useEffect)(()=>{let Ae=Math.trunc(t*1.75),ze=ae.slice(0,Ae),We=ae.slice(Ae),gt=u9(We,t),_t=ze.map(ue).reduce(async(Qe,ot)=>{await Qe;let Ve=await ot;Ve!==null&&(!ve.current||he(Pt=>{let Jt=Pt.findIndex(J=>J===null),it=[...Pt];return it[Jt]=Ve,it}))},Promise.resolve());gt.reduce((Qe,ot)=>Promise.all(ot.map(Ve=>Promise.resolve().then(()=>ue(Ve)))).then(async Ve=>{Ve=Ve.filter(Pt=>Pt!==null),await Qe,ve.current&&he(Pt=>{let Jt=Pt.findIndex(it=>it===null);return Pt.slice(0,Jt).concat(Ve).concat(Pt.slice(Jt+Ve.length))})}),_t).then(()=>{ve.current&&he(Qe=>Qe.filter(ot=>ot!==null))})},[]),we.length?Tr.default.createElement(_4,{radius:t>>1,children:we.map((Ae,ze)=>Ae!==null?Tr.default.createElement(V,{key:ze,active:!1,descriptor:Ae.descriptor,suggestions:Ae.suggestions}):Tr.default.createElement(bi.Text,{key:ze},"Loading..."))}):Tr.default.createElement(bi.Text,null,"No upgrades found")},me=await w4(({useSubmit:ae})=>{ae(sh());let we=new Map;for(let ve of f.workspaces)for(let ue of["dependencies","devDependencies"])for(let Ae of ve.manifest[ue].values())f.tryWorkspaceByDescriptor(Ae)===null&&(Ae.range.startsWith("link:")||we.set(Ae.descriptorHash,Ae));let he=Ro.miscUtils.sortMap(we.values(),ve=>Ro.structUtils.stringifyDescriptor(ve));return Tr.default.createElement(bi.Box,{flexDirection:"column"},Tr.default.createElement(j,null),Tr.default.createElement(q,null),Tr.default.createElement(re,{dependencies:he}))},{},{stdin:this.context.stdin,stdout:this.context.stdout,stderr:this.context.stderr});if(typeof me>"u")return 1;let De=!1;for(let ae of f.workspaces)for(let we of["dependencies","devDependencies"]){let he=ae.manifest[we];for(let ve of he.values()){let ue=me.get(ve.descriptorHash);typeof ue<"u"&&ue!==null&&(he.set(ve.identHash,Ro.structUtils.makeDescriptor(ve,ue)),De=!0)}}return De?(await Ro.StreamReport.start({configuration:l,stdout:this.context.stdout,includeLogs:!this.context.quiet},async ae=>{await f.install({cache:E,report:ae})})).exitCode():0}};ph.paths=[["upgrade-interactive"]],ph.usage=L4.Command.Usage({category:"Interactive commands",description:"open the upgrade interface",details:` + This command opens a fullscreen terminal interface where you can see any out of date packages used by your application, their status compared to the latest versions available on the remote registry, and select packages to upgrade. + `,examples:[["Open the upgrade window","yarn upgrade-interactive"]]});var Vz={commands:[dh,ph]},Gz=Vz;return qF(Yz);})(); +/* +object-assign +(c) Sindre Sorhus +@license MIT +*/ +/** + * @license + * Lodash + * Copyright OpenJS Foundation and other contributors + * Released under MIT license + * Based on Underscore.js 1.8.3 + * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors + */ +/** @license React v0.0.0-experimental-51a3aa6af + * react-debug-tools.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ +/** @license React v0.0.0-experimental-51a3aa6af + * react-is.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ +/** @license React v0.0.0-experimental-51a3aa6af + * react.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ +/** @license React v0.18.0 + * scheduler-tracing.development.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ +/** @license React v0.18.0 + * scheduler-tracing.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ +/** @license React v0.18.0 + * scheduler.development.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ +/** @license React v0.18.0 + * scheduler.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ +/** @license React v0.24.0 + * react-reconciler.development.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ +/** @license React v0.24.0 + * react-reconciler.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ +/** @license React v16.13.1 + * react.development.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ +/** @license React v16.13.1 + * react.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ +return plugin; +} +}; diff --git a/.yarnrc.yml b/.yarnrc.yml new file mode 100644 index 0000000..36ae916 --- /dev/null +++ b/.yarnrc.yml @@ -0,0 +1,13 @@ +logFilters: + - code: YN0013 + level: discard + - code: YN0019 + level: discard + - code: YN0076 + level: discard + +nodeLinker: node-modules + +plugins: + - path: .yarn/plugins/@yarnpkg/plugin-interactive-tools.cjs + spec: "@yarnpkg/plugin-interactive-tools" diff --git a/README.md b/README.md index 0134be9..c00061b 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ [![GitHub release](https://img.shields.io/github/release/docker/login-action.svg?style=flat-square)](https://github.com/docker/login-action/releases/latest) [![GitHub marketplace](https://img.shields.io/badge/marketplace-docker--login-blue?logo=github&style=flat-square)](https://github.com/marketplace/actions/docker-login) -[![CI workflow](https://img.shields.io/github/workflow/status/docker/login-action/ci?label=ci&logo=github&style=flat-square)](https://github.com/docker/login-action/actions?workflow=ci) -[![Test workflow](https://img.shields.io/github/workflow/status/docker/login-action/test?label=test&logo=github&style=flat-square)](https://github.com/docker/login-action/actions?workflow=test) +[![CI workflow](https://img.shields.io/github/actions/workflow/status/docker/login-action/ci.yml?branch=master&label=ci&logo=github&style=flat-square)](https://github.com/docker/login-action/actions?workflow=ci) +[![Test workflow](https://img.shields.io/github/actions/workflow/status/docker/login-action/test.yml?branch=master&label=test&logo=github&style=flat-square)](https://github.com/docker/login-action/actions?workflow=test) [![Codecov](https://img.shields.io/codecov/c/github/docker/login-action?logo=codecov&style=flat-square)](https://codecov.io/gh/docker/login-action) ## About @@ -23,16 +23,18 @@ ___ * [AWS Public Elastic Container Registry (ECR)](#aws-public-elastic-container-registry-ecr) * [OCI Oracle Cloud Infrastructure Registry (OCIR)](#oci-oracle-cloud-infrastructure-registry-ocir) * [Quay.io](#quayio) + * [DigitalOcean](#digitalocean-container-registry) * [Customizing](#customizing) * [inputs](#inputs) -* [Keep up-to-date with GitHub Dependabot](#keep-up-to-date-with-github-dependabot) +* [Contributing](#contributing) ## Usage ### Docker Hub -To authenticate against [Docker Hub](https://hub.docker.com) it's strongly recommended to create a -[personal access token](https://docs.docker.com/docker-hub/access-tokens/) as an alternative to your password. +When authenticating to [Docker Hub](https://hub.docker.com) with GitHub Actions, +use a [personal access token](https://docs.docker.com/docker-hub/access-tokens/). +Don't use your account password. ```yaml name: ci @@ -47,17 +49,17 @@ jobs: steps: - name: Login to Docker Hub - uses: docker/login-action@v1 + uses: docker/login-action@v3 with: - username: ${{ secrets.DOCKERHUB_USERNAME }} + username: ${{ vars.DOCKERHUB_USERNAME }} password: ${{ secrets.DOCKERHUB_TOKEN }} ``` ### GitHub Container Registry -To authenticate against the [GitHub Container Registry](https://docs.github.com/en/packages/working-with-a-github-packages-registry/working-with-the-container-registry), -use the [`GITHUB_TOKEN`](https://docs.github.com/en/actions/reference/authentication-in-a-workflow) for the best -security and experience. +To authenticate to the [GitHub Container Registry](https://docs.github.com/en/packages/working-with-a-github-packages-registry/working-with-the-container-registry), +use the [`GITHUB_TOKEN`](https://docs.github.com/en/actions/reference/authentication-in-a-workflow) +secret. ```yaml name: ci @@ -72,7 +74,7 @@ jobs: steps: - name: Login to GitHub Container Registry - uses: docker/login-action@v1 + uses: docker/login-action@v3 with: registry: ghcr.io username: ${{ github.actor }} @@ -100,18 +102,23 @@ jobs: steps: - name: Login to GitLab - uses: docker/login-action@v1 + uses: docker/login-action@v3 with: registry: registry.gitlab.com - username: ${{ secrets.GITLAB_USERNAME }} + username: ${{ vars.GITLAB_USERNAME }} password: ${{ secrets.GITLAB_PASSWORD }} ``` +If you have [Two-Factor Authentication](https://gitlab.com/help/user/profile/account/two_factor_authentication) +enabled, use a [Personal Access Token](https://gitlab.com/help/user/profile/personal_access_tokens) +instead of a password. + ### Azure Container Registry (ACR) [Create a service principal](https://docs.microsoft.com/en-us/azure/container-registry/container-registry-auth-service-principal#create-a-service-principal) with access to your container registry through the [Azure CLI](https://docs.microsoft.com/en-us/cli/azure/install-azure-cli) -and take note of the generated service principal's ID (also called _client ID_) and password (also called _client secret_). +and take note of the generated service principal's ID (also called _client ID_) +and password (also called _client secret_). ```yaml name: ci @@ -126,10 +133,10 @@ jobs: steps: - name: Login to ACR - uses: docker/login-action@v1 + uses: docker/login-action@v3 with: registry: .azurecr.io - username: ${{ secrets.AZURE_CLIENT_ID }} + username: ${{ vars.AZURE_CLIENT_ID }} password: ${{ secrets.AZURE_CLIENT_SECRET }} ``` @@ -137,16 +144,21 @@ jobs: ### Google Container Registry (GCR) -> [Google Artifact Registry](#google-artifact-registry-gar) is the evolution of Google Container Registry. As a -> fully-managed service with support for both container images and non-container artifacts. If you currently use -> Google Container Registry, use the information [on this page](https://cloud.google.com/artifact-registry/docs/transition/transition-from-gcr) +> [Google Artifact Registry](#google-artifact-registry-gar) is the evolution of +> Google Container Registry. As a fully-managed service with support for both +> container images and non-container artifacts. If you currently use Google +> Container Registry, use the information [on this page](https://cloud.google.com/artifact-registry/docs/transition/transition-from-gcr) > to learn about transitioning to Google Artifact Registry. -You can use either workload identity federation based keyless authentication or service account based authentication. +You can authenticate with workload identity federation or a service account. -#### Workload identity federation based authentication +#### Workload identity federation -Configure the workload identity federation for github actions in gcloud (for steps, [refer here](https://github.com/google-github-actions/auth#setting-up-workload-identity-federation)). In the steps, your service account should the ability to push to GCR. Then use google-github-actions/auth action for authentication using workload identity like below: +Configure the workload identity federation for GitHub Actions in Google Cloud, +[see here](https://github.com/google-github-actions/auth#setting-up-workload-identity-federation). +Your service account must have permission to push to GCR. Use the +`google-github-actions/auth` action to authenticate using workload identity as +shown in the following example: ```yaml name: ci @@ -159,33 +171,35 @@ jobs: login: runs-on: ubuntu-latest steps: - - id: 'auth' - name: 'Authenticate to Google Cloud' - uses: 'google-github-actions/auth@v0' + - + name: Authenticate to Google Cloud + id: auth + uses: google-github-actions/auth@v1 with: - token_format: 'access_token' - workload_identity_provider: '' - service_account: '' - - - name: Login to GCR - uses: docker/login-action@v1 + token_format: access_token + workload_identity_provider: + service_account: + - + name: Login to GCR + uses: docker/login-action@v3 with: registry: gcr.io username: oauth2accesstoken password: ${{ steps.auth.outputs.access_token }} ``` -> Replace `` with configured workload identity provider. For steps to configure, [refer here](https://github.com/google-github-actions/auth#setting-up-workload-identity-federation). +> Replace `` with configured workload identity +> provider. For steps to configure, [see here](https://github.com/google-github-actions/auth#setting-up-workload-identity-federation). -> Replace `` with configured service account in workload identity provider which has access to push to GCR +> Replace `` with configured service account in workload +> identity provider which has access to push to GCR #### Service account based authentication -Use a service account with the ability to push to GCR and [configure access control](https://cloud.google.com/container-registry/docs/access-control). -Then create and download the JSON key for this service account and save content of `.json` file -[as a secret](https://docs.github.com/en/actions/configuring-and-managing-workflows/creating-and-storing-encrypted-secrets#creating-encrypted-secrets-for-a-repository) -called `GCR_JSON_KEY` in your GitHub repo. Ensure you set the username to `_json_key`, -or `_json_key_base64` if you use a base64-encoded key. +Use a service account with permission to push to GCR and [configure access control](https://cloud.google.com/container-registry/docs/access-control). +Download the key for the service account as a JSON file. Save the contents of +the file [as a secret](https://docs.github.com/en/actions/configuring-and-managing-workflows/creating-and-storing-encrypted-secrets#creating-encrypted-secrets-for-a-repository) +named `GCR_JSON_KEY` in your GitHub repository. Set the username to `_json_key`. ```yaml name: ci @@ -200,7 +214,7 @@ jobs: steps: - name: Login to GCR - uses: docker/login-action@v1 + uses: docker/login-action@v3 with: registry: gcr.io username: _json_key @@ -209,11 +223,13 @@ jobs: ### Google Artifact Registry (GAR) -You can use either workload identity federation based keyless authentication or service account based authentication. +You can authenticate with workload identity federation or a service account. -#### Workload identity federation based authentication +#### Workload identity federation -Configure the workload identity federation for github actions in gcloud (for steps, [refer here](https://github.com/google-github-actions/auth#setting-up-workload-identity-federation)). In the steps, your service account should the ability to push to GAR. Then use google-github-actions/auth action for authentication using workload identity like below: +Your service account must have permission to push to GAR. Use the +`google-github-actions/auth` action to authenticate using workload identity as +shown in the following example: ```yaml name: ci @@ -226,34 +242,38 @@ jobs: login: runs-on: ubuntu-latest steps: - - id: 'auth' - name: 'Authenticate to Google Cloud' - uses: 'google-github-actions/auth@v0' + - + name: Authenticate to Google Cloud + id: auth + uses: google-github-actions/auth@v1 with: - token_format: 'access_token' - workload_identity_provider: '' - service_account: '' - - - name: Login to GAR - uses: docker/login-action@v1 + token_format: access_token + workload_identity_provider: + service_account: + - + name: Login to GAR + uses: docker/login-action@v3 with: registry: -docker.pkg.dev username: oauth2accesstoken password: ${{ steps.auth.outputs.access_token }} ``` -> Replace `` with configured workload identity provider -> Replace `` with configured service account in workload identity provider which has access to push to GCR +> Replace `` with configured workload identity +> provider + +> Replace `` with configured service account in workload +> identity provider which has access to push to GCR > Replace `` with the regional or multi-regional [location](https://cloud.google.com/artifact-registry/docs/repo-organize#locations) > of the repository where the image is stored. #### Service account based authentication -Use a service account with the ability to push to GAR and [configure access control](https://cloud.google.com/artifact-registry/docs/access-control). -Then create and download the JSON key for this service account and save content of `.json` file -[as a secret](https://docs.github.com/en/actions/configuring-and-managing-workflows/creating-and-storing-encrypted-secrets#creating-encrypted-secrets-for-a-repository) -called `GAR_JSON_KEY` in your GitHub repo. Ensure you set the username to `_json_key`, +Use a service account with permission to push to GAR and [configure access control](https://cloud.google.com/artifact-registry/docs/access-control). +Download the key for the service account as a JSON file. Save the contents of +the file [as a secret](https://docs.github.com/en/actions/configuring-and-managing-workflows/creating-and-storing-encrypted-secrets#creating-encrypted-secrets-for-a-repository) +named `GAR_JSON_KEY` in your GitHub repository. Set the username to `_json_key`, or `_json_key_base64` if you use a base64-encoded key. ```yaml @@ -269,7 +289,7 @@ jobs: steps: - name: Login to GAR - uses: docker/login-action@v1 + uses: docker/login-action@v3 with: registry: -docker.pkg.dev username: _json_key @@ -281,8 +301,8 @@ jobs: ### AWS Elastic Container Registry (ECR) -Use an IAM user with the ability to [push to ECR with `AmazonEC2ContainerRegistryPowerUser` managed policy for example](https://docs.aws.amazon.com/AmazonECR/latest/userguide/ecr_managed_policies.html#AmazonEC2ContainerRegistryPowerUser). -Then create and download access keys and save `AWS_ACCESS_KEY_ID` and `AWS_SECRET_ACCESS_KEY` [as secrets](https://docs.github.com/en/actions/configuring-and-managing-workflows/creating-and-storing-encrypted-secrets#creating-encrypted-secrets-for-a-repository) +Use an IAM user with the ability to [push to ECR with `AmazonEC2ContainerRegistryPowerUser` managed policy for example](https://docs.aws.amazon.com/AmazonECR/latest/userguide/security-iam-awsmanpol.html#security-iam-awsmanpol-AmazonEC2ContainerRegistryPowerUser). +Download the access keys and save them as `AWS_ACCESS_KEY_ID` and `AWS_SECRET_ACCESS_KEY` [as secrets](https://docs.github.com/en/actions/configuring-and-managing-workflows/creating-and-storing-encrypted-secrets#creating-encrypted-secrets-for-a-repository) in your GitHub repo. ```yaml @@ -298,15 +318,15 @@ jobs: steps: - name: Login to ECR - uses: docker/login-action@v1 + uses: docker/login-action@v3 with: registry: .dkr.ecr..amazonaws.com - username: ${{ secrets.AWS_ACCESS_KEY_ID }} + username: ${{ vars.AWS_ACCESS_KEY_ID }} password: ${{ secrets.AWS_SECRET_ACCESS_KEY }} ``` -If you need to log in to Amazon ECR registries associated with other accounts, you can use the `AWS_ACCOUNT_IDS` -environment variable: +If you need to log in to Amazon ECR registries associated with other accounts, +you can use the `AWS_ACCOUNT_IDS` environment variable: ```yaml name: ci @@ -321,10 +341,10 @@ jobs: steps: - name: Login to ECR - uses: docker/login-action@v1 + uses: docker/login-action@v3 with: registry: .dkr.ecr..amazonaws.com - username: ${{ secrets.AWS_ACCESS_KEY_ID }} + username: ${{ vars.AWS_ACCESS_KEY_ID }} password: ${{ secrets.AWS_SECRET_ACCESS_KEY }} env: AWS_ACCOUNT_IDS: 012345678910,023456789012 @@ -332,8 +352,8 @@ jobs: > Only available with [AWS CLI version 1](https://docs.aws.amazon.com/cli/latest/reference/ecr/get-login.html) -You can also use the [Configure AWS Credentials](https://github.com/aws-actions/configure-aws-credentials) action in -combination with this action: +You can also use the [Configure AWS Credentials](https://github.com/aws-actions/configure-aws-credentials) +action in combination with this action: ```yaml name: ci @@ -348,14 +368,14 @@ jobs: steps: - name: Configure AWS Credentials - uses: aws-actions/configure-aws-credentials@v1 + uses: aws-actions/configure-aws-credentials@v4 with: - aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} + aws-access-key-id: ${{ vars.AWS_ACCESS_KEY_ID }} aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} aws-region: - name: Login to ECR - uses: docker/login-action@v1 + uses: docker/login-action@v3 with: registry: .dkr.ecr..amazonaws.com ``` @@ -364,9 +384,10 @@ jobs: ### AWS Public Elastic Container Registry (ECR) -Use an IAM user with the ability to [push to ECR Public with `AmazonElasticContainerRegistryPublicPowerUser` managed policy for example](https://docs.aws.amazon.com/AmazonECR/latest/public/public-ecr-managed-policies.html#AmazonElasticContainerRegistryPublicPowerUser). -Then create and download access keys and save `AWS_ACCESS_KEY_ID` and `AWS_SECRET_ACCESS_KEY` [as secrets](https://docs.github.com/en/actions/configuring-and-managing-workflows/creating-and-storing-encrypted-secrets#creating-encrypted-secrets-for-a-repository) -in your GitHub repo. +Use an IAM user with permission to push to ECR Public, for example using [managed policies](https://docs.aws.amazon.com/AmazonECR/latest/userguide/security-iam-awsmanpol.html#security-iam-awsmanpol-AmazonEC2ContainerRegistryPowerUser). +Download the access keys and save them as `AWS_ACCESS_KEY_ID` and +`AWS_SECRET_ACCESS_KEY` [secrets](https://docs.github.com/en/actions/configuring-and-managing-workflows/creating-and-storing-encrypted-secrets#creating-encrypted-secrets-for-a-repository) +in your GitHub repository. ```yaml name: ci @@ -381,10 +402,10 @@ jobs: steps: - name: Login to Public ECR - uses: docker/login-action@v1 + uses: docker/login-action@v3 with: registry: public.ecr.aws - username: ${{ secrets.AWS_ACCESS_KEY_ID }} + username: ${{ vars.AWS_ACCESS_KEY_ID }} password: ${{ secrets.AWS_SECRET_ACCESS_KEY }} env: AWS_REGION: @@ -415,10 +436,10 @@ jobs: steps: - name: Login to OCIR - uses: docker/login-action@v1 + uses: docker/login-action@v3 with: registry: .ocir.io - username: ${{ secrets.OCI_USERNAME }} + username: ${{ vars.OCI_USERNAME }} password: ${{ secrets.OCI_TOKEN }} ``` @@ -426,7 +447,8 @@ jobs: ### Quay.io -Use a [Robot account](https://docs.quay.io/glossary/robot-accounts.html) with the ability to push to a public/private Quay.io repository. +Use a [Robot account](https://docs.quay.io/glossary/robot-accounts.html) with +permission to push to a Quay.io repository. ```yaml name: ci @@ -441,39 +463,52 @@ jobs: steps: - name: Login to Quay.io - uses: docker/login-action@v1 + uses: docker/login-action@v3 with: registry: quay.io - username: ${{ secrets.QUAY_USERNAME }} + username: ${{ vars.QUAY_USERNAME }} password: ${{ secrets.QUAY_ROBOT_TOKEN }} ``` +### DigitalOcean Container Registry + +Use your DigitalOcean registered email address and an API access token to authenticate. + +```yaml +name: ci + +on: + push: + branches: main + +jobs: + login: + runs-on: ubuntu-latest + steps: + - + name: Login to DigitalOcean Container Registry + uses: docker/login-action@v3 + with: + registry: registry.digitalocean.com + username: ${{ vars.DIGITALOCEAN_USERNAME }} + password: ${{ secrets.DIGITALOCEAN_ACCESS_TOKEN }} +``` + ## Customizing ### inputs -Following inputs can be used as `step.with` keys +The following inputs can be used as `step.with` keys: -| Name | Type | Default | Description | -|------------------|---------|-----------------------------|------------------------------------| -| `registry` | String | | Server address of Docker registry. If not set then will default to Docker Hub | -| `username` | String | | Username used to log against the Docker registry | -| `password` | String | | Password or personal access token used to log against the Docker registry | -| `ecr` | String | `auto` | Specifies whether the given registry is ECR (`auto`, `true` or `false`) | -| `logout` | Bool | `true` | Log out from the Docker registry at the end of a job | +| Name | Type | Default | Description | +|------------|--------|---------|-------------------------------------------------------------------------------| +| `registry` | String | | Server address of Docker registry. If not set then will default to Docker Hub | +| `username` | String | | Username for authenticating to the Docker registry | +| `password` | String | | Password or personal access token for authenticating the Docker registry | +| `ecr` | String | `auto` | Specifies whether the given registry is ECR (`auto`, `true` or `false`) | +| `logout` | Bool | `true` | Log out from the Docker registry at the end of a job | -## Keep up-to-date with GitHub Dependabot +## Contributing -Since [Dependabot](https://docs.github.com/en/github/administering-a-repository/keeping-your-actions-up-to-date-with-github-dependabot) -has [native GitHub Actions support](https://docs.github.com/en/github/administering-a-repository/configuration-options-for-dependency-updates#package-ecosystem), -to enable it on your GitHub repo all you need to do is add the `.github/dependabot.yml` file: - -```yaml -version: 2 -updates: - # Maintain dependencies for GitHub Actions - - package-ecosystem: "github-actions" - directory: "/" - schedule: - interval: "daily" -``` +Want to contribute? Awesome! You can find information about contributing to +this project in the [CONTRIBUTING.md](/.github/CONTRIBUTING.md) diff --git a/__tests__/aws.test.ts b/__tests__/aws.test.ts index 4a6a583..55a368c 100644 --- a/__tests__/aws.test.ts +++ b/__tests__/aws.test.ts @@ -1,4 +1,6 @@ +import {beforeEach, describe, expect, jest, test} from '@jest/globals'; import {AuthorizationData} from '@aws-sdk/client-ecr'; + import * as aws from '../src/aws'; describe('isECR', () => { diff --git a/__tests__/context.test.ts b/__tests__/context.test.ts index ec4a394..8e46253 100644 --- a/__tests__/context.test.ts +++ b/__tests__/context.test.ts @@ -1,3 +1,5 @@ +import {expect, test} from '@jest/globals'; + import {getInputs} from '../src/context'; test('with password and username getInputs does not throw error', async () => { @@ -6,5 +8,5 @@ test('with password and username getInputs does not throw error', async () => { process.env['INPUT_LOGOUT'] = 'true'; expect(() => { getInputs(); - }).not.toThrowError(); + }).not.toThrow(); }); diff --git a/__tests__/docker.test.ts b/__tests__/docker.test.ts index 8691b87..e1213b0 100644 --- a/__tests__/docker.test.ts +++ b/__tests__/docker.test.ts @@ -1,28 +1,36 @@ -import {loginStandard, logout} from '../src/docker'; - +import {expect, jest, test} from '@jest/globals'; import * as path from 'path'; -import * as exec from '@actions/exec'; +import {loginStandard, logout} from '../src/docker'; + +import {Docker} from '@docker/actions-toolkit/lib/docker/docker'; process.env['RUNNER_TEMP'] = path.join(__dirname, 'runner'); test('loginStandard calls exec', async () => { - const execSpy: jest.SpyInstance = jest.spyOn(exec, 'getExecOutput'); - execSpy.mockImplementation(() => - Promise.resolve({ + // eslint-disable-next-line @typescript-eslint/ban-ts-comment + // @ts-ignore + const execSpy = jest.spyOn(Docker, 'getExecOutput').mockImplementation(async () => { + return { exitCode: expect.any(Number), stdout: expect.any(Function), stderr: expect.any(Function) - }) - ); + }; + }); - const username: string = 'dbowie'; - const password: string = 'groundcontrol'; - const registry: string = 'https://ghcr.io'; + const username = 'dbowie'; + const password = 'groundcontrol'; + const registry = 'https://ghcr.io'; await loginStandard(registry, username, password); - expect(execSpy).toHaveBeenCalledWith(`docker`, ['login', '--password-stdin', '--username', username, registry], { + expect(execSpy).toHaveBeenCalledTimes(1); + const callfunc = execSpy.mock.calls[0]; + if (callfunc && callfunc[1]) { + // we don't want to check env opt + callfunc[1].env = undefined; + } + expect(execSpy).toHaveBeenCalledWith(['login', '--password-stdin', '--username', username, registry], { input: Buffer.from(password), silent: true, ignoreReturnCode: true @@ -30,20 +38,27 @@ test('loginStandard calls exec', async () => { }); test('logout calls exec', async () => { - const execSpy: jest.SpyInstance = jest.spyOn(exec, 'getExecOutput'); - execSpy.mockImplementation(() => - Promise.resolve({ + // eslint-disable-next-line @typescript-eslint/ban-ts-comment + // @ts-ignore + const execSpy = jest.spyOn(Docker, 'getExecOutput').mockImplementation(async () => { + return { exitCode: expect.any(Number), stdout: expect.any(Function), stderr: expect.any(Function) - }) - ); + }; + }); - const registry: string = 'https://ghcr.io'; + const registry = 'https://ghcr.io'; await logout(registry); - expect(execSpy).toHaveBeenCalledWith(`docker`, ['logout', registry], { + expect(execSpy).toHaveBeenCalledTimes(1); + const callfunc = execSpy.mock.calls[0]; + if (callfunc && callfunc[1]) { + // we don't want to check env opt + callfunc[1].env = undefined; + } + expect(execSpy).toHaveBeenCalledWith(['logout', registry], { ignoreReturnCode: true }); }); diff --git a/__tests__/main.test.ts b/__tests__/main.test.ts deleted file mode 100644 index dd5f998..0000000 --- a/__tests__/main.test.ts +++ /dev/null @@ -1,79 +0,0 @@ -import osm = require('os'); - -import {run} from '../src/main'; -import * as docker from '../src/docker'; -import * as stateHelper from '../src/state-helper'; - -import * as core from '@actions/core'; - -test('errors without username and password', async () => { - const platSpy = jest.spyOn(osm, 'platform'); - platSpy.mockImplementation(() => 'linux'); - - process.env['INPUT_LOGOUT'] = 'true'; // default value - - const coreSpy: jest.SpyInstance = jest.spyOn(core, 'setFailed'); - - await run(); - - expect(coreSpy).toHaveBeenCalledWith('Username and password required'); -}); - -test('successful with username and password', async () => { - const platSpy = jest.spyOn(osm, 'platform'); - platSpy.mockImplementation(() => 'linux'); - - const setRegistrySpy: jest.SpyInstance = jest.spyOn(stateHelper, 'setRegistry'); - const setLogoutSpy: jest.SpyInstance = jest.spyOn(stateHelper, 'setLogout'); - const dockerSpy: jest.SpyInstance = jest.spyOn(docker, 'login'); - dockerSpy.mockImplementation(() => {}); - - const username: string = 'dbowie'; - process.env[`INPUT_USERNAME`] = username; - - const password: string = 'groundcontrol'; - process.env[`INPUT_PASSWORD`] = password; - - const ecr: string = 'auto'; - process.env['INPUT_ECR'] = ecr; - - const logout: boolean = false; - process.env['INPUT_LOGOUT'] = String(logout); - - await run(); - - expect(setRegistrySpy).toHaveBeenCalledWith(''); - expect(setLogoutSpy).toHaveBeenCalledWith(logout); - expect(dockerSpy).toHaveBeenCalledWith('', username, password, ecr); -}); - -test('calls docker login', async () => { - const platSpy = jest.spyOn(osm, 'platform'); - platSpy.mockImplementation(() => 'linux'); - - const setRegistrySpy: jest.SpyInstance = jest.spyOn(stateHelper, 'setRegistry'); - const setLogoutSpy: jest.SpyInstance = jest.spyOn(stateHelper, 'setLogout'); - const dockerSpy: jest.SpyInstance = jest.spyOn(docker, 'login'); - dockerSpy.mockImplementation(() => {}); - - const username: string = 'dbowie'; - process.env[`INPUT_USERNAME`] = username; - - const password: string = 'groundcontrol'; - process.env[`INPUT_PASSWORD`] = password; - - const registry: string = 'ghcr.io'; - process.env[`INPUT_REGISTRY`] = registry; - - const ecr: string = 'auto'; - process.env['INPUT_ECR'] = ecr; - - const logout: boolean = true; - process.env['INPUT_LOGOUT'] = String(logout); - - await run(); - - expect(setRegistrySpy).toHaveBeenCalledWith(registry); - expect(setLogoutSpy).toHaveBeenCalledWith(logout); - expect(dockerSpy).toHaveBeenCalledWith(registry, username, password, ecr); -}); diff --git a/action.yml b/action.yml index 5e837ac..3a0856d 100644 --- a/action.yml +++ b/action.yml @@ -26,6 +26,6 @@ inputs: required: false runs: - using: 'node12' + using: 'node20' main: 'dist/index.js' post: 'dist/index.js' diff --git a/hack/build.Dockerfile b/dev.Dockerfile similarity index 53% rename from hack/build.Dockerfile rename to dev.Dockerfile index d371531..33826fc 100644 --- a/hack/build.Dockerfile +++ b/dev.Dockerfile @@ -1,15 +1,20 @@ -# syntax=docker/dockerfile:1.3-labs +# syntax=docker/dockerfile:1 -ARG NODE_VERSION -ARG DOCKER_VERSION=20.10.10 -ARG BUILDX_VERSION=0.7.0 +ARG NODE_VERSION=20 FROM node:${NODE_VERSION}-alpine AS base RUN apk add --no-cache cpio findutils git WORKDIR /src +RUN --mount=type=bind,target=.,rw \ + --mount=type=cache,target=/src/.yarn/cache <&2 'ERROR: Vendor result differs. Please vendor your package with "docker buildx bake vendor-update"' - git status --porcelain -- yarn.lock - exit 1 -fi + set -e + git add -A + cp -rf /vendor/* . + if [ -n "$(git status --porcelain -- yarn.lock)" ]; then + echo >&2 'ERROR: Vendor result differs. Please vendor your package with "docker buildx bake vendor"' + git status --porcelain -- yarn.lock + exit 1 + fi EOT FROM deps AS build RUN --mount=type=bind,target=.,rw \ + --mount=type=cache,target=/src/.yarn/cache \ --mount=type=cache,target=/src/node_modules \ yarn run build && mkdir /out && cp -Rf dist /out/ @@ -38,41 +44,39 @@ COPY --from=build /out / FROM build AS build-validate RUN --mount=type=bind,target=.,rw <&2 'ERROR: Build result differs. Please build first with "docker buildx bake build"' - git status --porcelain -- dist - exit 1 -fi + set -e + git add -A + cp -rf /out/* . + if [ -n "$(git status --porcelain -- dist)" ]; then + echo >&2 'ERROR: Build result differs. Please build first with "docker buildx bake build"' + git status --porcelain -- dist + exit 1 + fi EOT FROM deps AS format RUN --mount=type=bind,target=.,rw \ + --mount=type=cache,target=/src/.yarn/cache \ --mount=type=cache,target=/src/node_modules \ yarn run format \ - && mkdir /out && find . -name '*.ts' -not -path './node_modules/*' | cpio -pdm /out + && mkdir /out && find . -name '*.ts' -not -path './node_modules/*' -not -path './.yarn/*' | cpio -pdm /out FROM scratch AS format-update COPY --from=format /out / -FROM deps AS format-validate +FROM deps AS lint RUN --mount=type=bind,target=.,rw \ + --mount=type=cache,target=/src/.yarn/cache \ --mount=type=cache,target=/src/node_modules \ - yarn run format-check - -FROM docker:${DOCKER_VERSION} as docker -FROM docker/buildx-bin:${BUILDX_VERSION} as buildx + yarn run lint FROM deps AS test ENV RUNNER_TEMP=/tmp/github_runner ENV RUNNER_TOOL_CACHE=/tmp/github_tool_cache RUN --mount=type=bind,target=.,rw \ + --mount=type=cache,target=/src/.yarn/cache \ --mount=type=cache,target=/src/node_modules \ - --mount=type=bind,from=docker,source=/usr/local/bin/docker,target=/usr/bin/docker \ - --mount=type=bind,from=buildx,source=/buildx,target=/usr/libexec/docker/cli-plugins/docker-buildx \ - yarn run test --coverageDirectory=/tmp/coverage + yarn run test --coverage --coverageDirectory=/tmp/coverage FROM scratch AS test-coverage COPY --from=test /tmp/coverage / diff --git a/dist/bridge.js b/dist/bridge.js deleted file mode 100644 index 6679478..0000000 --- a/dist/bridge.js +++ /dev/null @@ -1,984 +0,0 @@ -/******/ (() => { // webpackBootstrap -/******/ "use strict"; -/******/ var __webpack_modules__ = ({ - -/***/ 989: -/***/ ((__unused_webpack_module, exports) => { - - - -/** - * __ ___ ____ _ _ ___ _ _ ____ - * \ \ / / \ | _ \| \ | |_ _| \ | |/ ___| - * \ \ /\ / / _ \ | |_) | \| || || \| | | _ - * \ V V / ___ \| _ <| |\ || || |\ | |_| | - * \_/\_/_/ \_\_| \_\_| \_|___|_| \_|\____| - * - * This file is critical for vm2. It implements the bridge between the host and the sandbox. - * If you do not know exactly what you are doing, you should NOT edit this file. - * - * The file is loaded in the host and sandbox to handle objects in both directions. - * This is done to ensure that RangeErrors are from the correct context. - * The boundary between the sandbox and host might throw RangeErrors from both contexts. - * Therefore, thisFromOther and friends can handle objects from both domains. - * - * Method parameters have comments to tell from which context they came. - * - */ - -const globalsList = [ - 'Number', - 'String', - 'Boolean', - 'Date', - 'RegExp', - 'Map', - 'WeakMap', - 'Set', - 'WeakSet', - 'Promise', - 'Function' -]; - -const errorsList = [ - 'RangeError', - 'ReferenceError', - 'SyntaxError', - 'TypeError', - 'EvalError', - 'URIError', - 'Error' -]; - -const OPNA = 'Operation not allowed on contextified object.'; - -const thisGlobalPrototypes = { - __proto__: null, - Object: Object.prototype, - Array: Array.prototype -}; - -for (let i = 0; i < globalsList.length; i++) { - const key = globalsList[i]; - const g = global[key]; - if (g) thisGlobalPrototypes[key] = g.prototype; -} - -for (let i = 0; i < errorsList.length; i++) { - const key = errorsList[i]; - const g = global[key]; - if (g) thisGlobalPrototypes[key] = g.prototype; -} - -const { - getPrototypeOf: thisReflectGetPrototypeOf, - setPrototypeOf: thisReflectSetPrototypeOf, - defineProperty: thisReflectDefineProperty, - deleteProperty: thisReflectDeleteProperty, - getOwnPropertyDescriptor: thisReflectGetOwnPropertyDescriptor, - isExtensible: thisReflectIsExtensible, - preventExtensions: thisReflectPreventExtensions, - apply: thisReflectApply, - construct: thisReflectConstruct, - set: thisReflectSet, - get: thisReflectGet, - has: thisReflectHas, - ownKeys: thisReflectOwnKeys, - enumerate: thisReflectEnumerate, -} = Reflect; - -const thisObject = Object; -const { - freeze: thisObjectFreeze, - prototype: thisObjectPrototype -} = thisObject; -const thisObjectHasOwnProperty = thisObjectPrototype.hasOwnProperty; -const ThisProxy = Proxy; -const ThisWeakMap = WeakMap; -const { - get: thisWeakMapGet, - set: thisWeakMapSet -} = ThisWeakMap.prototype; -const ThisMap = Map; -const thisMapGet = ThisMap.prototype.get; -const thisMapSet = ThisMap.prototype.set; -const thisFunction = Function; -const thisFunctionBind = thisFunction.prototype.bind; -const thisArrayIsArray = Array.isArray; -const thisErrorCaptureStackTrace = Error.captureStackTrace; - -const thisSymbolToString = Symbol.prototype.toString; -const thisSymbolToStringTag = Symbol.toStringTag; - -/** - * VMError. - * - * @public - * @extends {Error} - */ -class VMError extends Error { - - /** - * Create VMError instance. - * - * @public - * @param {string} message - Error message. - * @param {string} code - Error code. - */ - constructor(message, code) { - super(message); - - this.name = 'VMError'; - this.code = code; - - thisErrorCaptureStackTrace(this, this.constructor); - } -} - -thisGlobalPrototypes['VMError'] = VMError.prototype; - -function thisUnexpected() { - return new VMError('Unexpected'); -} - -if (!thisReflectSetPrototypeOf(exports, null)) throw thisUnexpected(); - -function thisSafeGetOwnPropertyDescriptor(obj, key) { - const desc = thisReflectGetOwnPropertyDescriptor(obj, key); - if (!desc) return desc; - if (!thisReflectSetPrototypeOf(desc, null)) throw thisUnexpected(); - return desc; -} - -function thisThrowCallerCalleeArgumentsAccess(key) { - 'use strict'; - thisThrowCallerCalleeArgumentsAccess[key]; - return thisUnexpected(); -} - -function thisIdMapping(factory, other) { - return other; -} - -const thisThrowOnKeyAccessHandler = thisObjectFreeze({ - __proto__: null, - get(target, key, receiver) { - if (typeof key === 'symbol') { - key = thisReflectApply(thisSymbolToString, key, []); - } - throw new VMError(`Unexpected access to key '${key}'`); - } -}); - -const emptyForzenObject = thisObjectFreeze({ - __proto__: null -}); - -const thisThrowOnKeyAccess = new ThisProxy(emptyForzenObject, thisThrowOnKeyAccessHandler); - -function SafeBase() {} - -if (!thisReflectDefineProperty(SafeBase, 'prototype', { - __proto__: null, - value: thisThrowOnKeyAccess -})) throw thisUnexpected(); - -function SHARED_FUNCTION() {} - -const TEST_PROXY_HANDLER = thisObjectFreeze({ - __proto__: thisThrowOnKeyAccess, - construct() { - return this; - } -}); - -function thisIsConstructor(obj) { - // Note: obj@any(unsafe) - const Func = new ThisProxy(obj, TEST_PROXY_HANDLER); - try { - // eslint-disable-next-line no-new - new Func(); - return true; - } catch (e) { - return false; - } -} - -function thisCreateTargetObject(obj, proto) { - // Note: obj@any(unsafe) proto@any(unsafe) returns@this(unsafe) throws@this(unsafe) - let base; - if (typeof obj === 'function') { - if (thisIsConstructor(obj)) { - // Bind the function since bound functions do not have a prototype property. - base = thisReflectApply(thisFunctionBind, SHARED_FUNCTION, [null]); - } else { - base = () => {}; - } - } else if (thisArrayIsArray(obj)) { - base = []; - } else { - return {__proto__: proto}; - } - if (!thisReflectSetPrototypeOf(base, proto)) throw thisUnexpected(); - return base; -} - -function createBridge(otherInit, registerProxy) { - - const mappingOtherToThis = new ThisWeakMap(); - const protoMappings = new ThisMap(); - const protoName = new ThisMap(); - - function thisAddProtoMapping(proto, other, name) { - // Note: proto@this(unsafe) other@other(unsafe) name@this(unsafe) throws@this(unsafe) - thisReflectApply(thisMapSet, protoMappings, [proto, thisIdMapping]); - thisReflectApply(thisMapSet, protoMappings, [other, - (factory, object) => thisProxyOther(factory, object, proto)]); - if (name) thisReflectApply(thisMapSet, protoName, [proto, name]); - } - - function thisAddProtoMappingFactory(protoFactory, other, name) { - // Note: protoFactory@this(unsafe) other@other(unsafe) name@this(unsafe) throws@this(unsafe) - let proto; - thisReflectApply(thisMapSet, protoMappings, [other, - (factory, object) => { - if (!proto) { - proto = protoFactory(); - thisReflectApply(thisMapSet, protoMappings, [proto, thisIdMapping]); - if (name) thisReflectApply(thisMapSet, protoName, [proto, name]); - } - return thisProxyOther(factory, object, proto); - }]); - } - - const result = { - __proto__: null, - globalPrototypes: thisGlobalPrototypes, - safeGetOwnPropertyDescriptor: thisSafeGetOwnPropertyDescriptor, - fromArguments: thisFromOtherArguments, - from: thisFromOther, - fromWithFactory: thisFromOtherWithFactory, - ensureThis: thisEnsureThis, - mapping: mappingOtherToThis, - connect: thisConnect, - reflectSet: thisReflectSet, - reflectGet: thisReflectGet, - reflectDefineProperty: thisReflectDefineProperty, - reflectDeleteProperty: thisReflectDeleteProperty, - reflectApply: thisReflectApply, - reflectConstruct: thisReflectConstruct, - reflectHas: thisReflectHas, - reflectOwnKeys: thisReflectOwnKeys, - reflectEnumerate: thisReflectEnumerate, - reflectGetPrototypeOf: thisReflectGetPrototypeOf, - reflectIsExtensible: thisReflectIsExtensible, - reflectPreventExtensions: thisReflectPreventExtensions, - objectHasOwnProperty: thisObjectHasOwnProperty, - weakMapSet: thisWeakMapSet, - addProtoMapping: thisAddProtoMapping, - addProtoMappingFactory: thisAddProtoMappingFactory, - defaultFactory, - protectedFactory, - readonlyFactory, - VMError - }; - - const isHost = typeof otherInit !== 'object'; - - if (isHost) { - otherInit = otherInit(result, registerProxy); - } - - result.other = otherInit; - - const { - globalPrototypes: otherGlobalPrototypes, - safeGetOwnPropertyDescriptor: otherSafeGetOwnPropertyDescriptor, - fromArguments: otherFromThisArguments, - from: otherFromThis, - mapping: mappingThisToOther, - reflectSet: otherReflectSet, - reflectGet: otherReflectGet, - reflectDefineProperty: otherReflectDefineProperty, - reflectDeleteProperty: otherReflectDeleteProperty, - reflectApply: otherReflectApply, - reflectConstruct: otherReflectConstruct, - reflectHas: otherReflectHas, - reflectOwnKeys: otherReflectOwnKeys, - reflectEnumerate: otherReflectEnumerate, - reflectGetPrototypeOf: otherReflectGetPrototypeOf, - reflectIsExtensible: otherReflectIsExtensible, - reflectPreventExtensions: otherReflectPreventExtensions, - objectHasOwnProperty: otherObjectHasOwnProperty, - weakMapSet: otherWeakMapSet - } = otherInit; - - function thisOtherHasOwnProperty(object, key) { - // Note: object@other(safe) key@prim throws@this(unsafe) - try { - return otherReflectApply(otherObjectHasOwnProperty, object, [key]) === true; - } catch (e) { // @other(unsafe) - throw thisFromOther(e); - } - } - - function thisDefaultGet(handler, object, key, desc) { - // Note: object@other(unsafe) key@prim desc@other(safe) - let ret; // @other(unsafe) - if (desc.get || desc.set) { - const getter = desc.get; - if (!getter) return undefined; - try { - ret = otherReflectApply(getter, object, [key]); - } catch (e) { - throw thisFromOther(e); - } - } else { - ret = desc.value; - } - return handler.fromOtherWithContext(ret); - } - - function otherFromThisIfAvailable(to, from, key) { - // Note: to@other(safe) from@this(safe) key@prim throws@this(unsafe) - if (!thisReflectApply(thisObjectHasOwnProperty, from, [key])) return false; - try { - to[key] = otherFromThis(from[key]); - } catch (e) { // @other(unsafe) - throw thisFromOther(e); - } - return true; - } - - class BaseHandler extends SafeBase { - - constructor(object) { - // Note: object@other(unsafe) throws@this(unsafe) - super(); - this.object = object; - } - - getFactory() { - return defaultFactory; - } - - fromOtherWithContext(other) { - // Note: other@other(unsafe) throws@this(unsafe) - return thisFromOtherWithFactory(this.getFactory(), other); - } - - doPreventExtensions(target, object, factory) { - // Note: target@this(unsafe) object@other(unsafe) throws@this(unsafe) - let keys; // @other(safe-array-of-prim) - try { - keys = otherReflectOwnKeys(object); - } catch (e) { // @other(unsafe) - throw thisFromOther(e); - } - for (let i = 0; i < keys.length; i++) { - const key = keys[i]; // @prim - let desc; - try { - desc = otherSafeGetOwnPropertyDescriptor(object, key); - } catch (e) { // @other(unsafe) - throw thisFromOther(e); - } - if (!desc) continue; - if (!desc.configurable) { - const current = thisSafeGetOwnPropertyDescriptor(target, key); - if (current && !current.configurable) continue; - if (desc.get || desc.set) { - desc.get = this.fromOtherWithContext(desc.get); - desc.set = this.fromOtherWithContext(desc.set); - } else if (typeof object === 'function' && (key === 'caller' || key === 'callee' || key === 'arguments')) { - desc.value = null; - } else { - desc.value = this.fromOtherWithContext(desc.value); - } - } else { - if (desc.get || desc.set) { - desc = { - __proto__: null, - configurable: true, - enumerable: desc.enumerable, - writable: true, - value: null - }; - } else { - desc.value = null; - } - } - if (!thisReflectDefineProperty(target, key, desc)) throw thisUnexpected(); - } - if (!thisReflectPreventExtensions(target)) throw thisUnexpected(); - } - - get(target, key, receiver) { - // Note: target@this(unsafe) key@prim receiver@this(unsafe) throws@this(unsafe) - const object = this.object; // @other(unsafe) - switch (key) { - case 'constructor': { - const desc = otherSafeGetOwnPropertyDescriptor(object, key); - if (desc) return thisDefaultGet(this, object, key, desc); - const proto = thisReflectGetPrototypeOf(target); - return proto === null ? undefined : proto.constructor; - } - case '__proto__': { - const desc = otherSafeGetOwnPropertyDescriptor(object, key); - if (desc) return thisDefaultGet(this, object, key, desc); - return thisReflectGetPrototypeOf(target); - } - case thisSymbolToStringTag: - if (!thisOtherHasOwnProperty(object, thisSymbolToStringTag)) { - const proto = thisReflectGetPrototypeOf(target); - const name = thisReflectApply(thisMapGet, protoName, [proto]); - if (name) return name; - } - break; - case 'arguments': - case 'caller': - case 'callee': - if (thisOtherHasOwnProperty(object, key)) throw thisThrowCallerCalleeArgumentsAccess(key); - break; - } - let ret; // @other(unsafe) - try { - ret = otherReflectGet(object, key); - } catch (e) { // @other(unsafe) - throw thisFromOther(e); - } - return this.fromOtherWithContext(ret); - } - - set(target, key, value, receiver) { - // Note: target@this(unsafe) key@prim value@this(unsafe) receiver@this(unsafe) throws@this(unsafe) - const object = this.object; // @other(unsafe) - if (key === '__proto__' && !thisOtherHasOwnProperty(object, key)) { - return this.setPrototypeOf(target, value); - } - try { - value = otherFromThis(value); - return otherReflectSet(object, key, value) === true; - } catch (e) { // @other(unsafe) - throw thisFromOther(e); - } - } - - getPrototypeOf(target) { - // Note: target@this(unsafe) - return thisReflectGetPrototypeOf(target); - } - - setPrototypeOf(target, value) { - // Note: target@this(unsafe) throws@this(unsafe) - throw new VMError(OPNA); - } - - apply(target, context, args) { - // Note: target@this(unsafe) context@this(unsafe) args@this(safe-array) throws@this(unsafe) - const object = this.object; // @other(unsafe) - let ret; // @other(unsafe) - try { - context = otherFromThis(context); - args = otherFromThisArguments(args); - ret = otherReflectApply(object, context, args); - } catch (e) { // @other(unsafe) - throw thisFromOther(e); - } - return thisFromOther(ret); - } - - construct(target, args, newTarget) { - // Note: target@this(unsafe) args@this(safe-array) newTarget@this(unsafe) throws@this(unsafe) - const object = this.object; // @other(unsafe) - let ret; // @other(unsafe) - try { - args = otherFromThisArguments(args); - ret = otherReflectConstruct(object, args); - } catch (e) { // @other(unsafe) - throw thisFromOther(e); - } - return thisFromOtherWithFactory(this.getFactory(), ret, thisFromOther(object)); - } - - getOwnPropertyDescriptorDesc(target, prop, desc) { - // Note: target@this(unsafe) prop@prim desc@other{safe} throws@this(unsafe) - const object = this.object; // @other(unsafe) - if (desc && typeof object === 'function' && (prop === 'arguments' || prop === 'caller' || prop === 'callee')) desc.value = null; - return desc; - } - - getOwnPropertyDescriptor(target, prop) { - // Note: target@this(unsafe) prop@prim throws@this(unsafe) - const object = this.object; // @other(unsafe) - let desc; // @other(safe) - try { - desc = otherSafeGetOwnPropertyDescriptor(object, prop); - } catch (e) { // @other(unsafe) - throw thisFromOther(e); - } - - desc = this.getOwnPropertyDescriptorDesc(target, prop, desc); - - if (!desc) return undefined; - - let thisDesc; - if (desc.get || desc.set) { - thisDesc = { - __proto__: null, - get: this.fromOtherWithContext(desc.get), - set: this.fromOtherWithContext(desc.set), - enumerable: desc.enumerable === true, - configurable: desc.configurable === true - }; - } else { - thisDesc = { - __proto__: null, - value: this.fromOtherWithContext(desc.value), - writable: desc.writable === true, - enumerable: desc.enumerable === true, - configurable: desc.configurable === true - }; - } - if (!thisDesc.configurable) { - const oldDesc = thisSafeGetOwnPropertyDescriptor(target, prop); - if (!oldDesc || oldDesc.configurable || oldDesc.writable !== thisDesc.writable) { - if (!thisReflectDefineProperty(target, prop, thisDesc)) throw thisUnexpected(); - } - } - return thisDesc; - } - - definePropertyDesc(target, prop, desc) { - // Note: target@this(unsafe) prop@prim desc@this(safe) throws@this(unsafe) - return desc; - } - - defineProperty(target, prop, desc) { - // Note: target@this(unsafe) prop@prim desc@this(unsafe) throws@this(unsafe) - const object = this.object; // @other(unsafe) - if (!thisReflectSetPrototypeOf(desc, null)) throw thisUnexpected(); - - desc = this.definePropertyDesc(target, prop, desc); - - if (!desc) return false; - - let otherDesc = {__proto__: null}; - let hasFunc = true; - let hasValue = true; - let hasBasic = true; - hasFunc &= otherFromThisIfAvailable(otherDesc, desc, 'get'); - hasFunc &= otherFromThisIfAvailable(otherDesc, desc, 'set'); - hasValue &= otherFromThisIfAvailable(otherDesc, desc, 'value'); - hasValue &= otherFromThisIfAvailable(otherDesc, desc, 'writable'); - hasBasic &= otherFromThisIfAvailable(otherDesc, desc, 'enumerable'); - hasBasic &= otherFromThisIfAvailable(otherDesc, desc, 'configurable'); - - try { - if (!otherReflectDefineProperty(object, prop, otherDesc)) return false; - if (otherDesc.configurable !== true && (!hasBasic || !(hasFunc || hasValue))) { - otherDesc = otherSafeGetOwnPropertyDescriptor(object, prop); - } - } catch (e) { // @other(unsafe) - throw thisFromOther(e); - } - - if (!otherDesc.configurable) { - let thisDesc; - if (otherDesc.get || otherDesc.set) { - thisDesc = { - __proto__: null, - get: this.fromOtherWithContext(otherDesc.get), - set: this.fromOtherWithContext(otherDesc.set), - enumerable: otherDesc.enumerable, - configurable: otherDesc.configurable - }; - } else { - thisDesc = { - __proto__: null, - value: this.fromOtherWithContext(otherDesc.value), - writable: otherDesc.writable, - enumerable: otherDesc.enumerable, - configurable: otherDesc.configurable - }; - } - if (!thisReflectDefineProperty(target, prop, thisDesc)) throw thisUnexpected(); - } - return true; - } - - deleteProperty(target, prop) { - // Note: target@this(unsafe) prop@prim throws@this(unsafe) - const object = this.object; // @other(unsafe) - try { - return otherReflectDeleteProperty(object, prop) === true; - } catch (e) { // @other(unsafe) - throw thisFromOther(e); - } - } - - has(target, key) { - // Note: target@this(unsafe) key@prim throws@this(unsafe) - const object = this.object; // @other(unsafe) - try { - return otherReflectHas(object, key) === true; - } catch (e) { // @other(unsafe) - throw thisFromOther(e); - } - } - - isExtensible(target) { - // Note: target@this(unsafe) throws@this(unsafe) - const object = this.object; // @other(unsafe) - try { - if (otherReflectIsExtensible(object)) return true; - } catch (e) { // @other(unsafe) - throw thisFromOther(e); - } - if (thisReflectIsExtensible(target)) { - this.doPreventExtensions(target, object, this); - } - return false; - } - - ownKeys(target) { - // Note: target@this(unsafe) throws@this(unsafe) - const object = this.object; // @other(unsafe) - let res; // @other(unsafe) - try { - res = otherReflectOwnKeys(object); - } catch (e) { // @other(unsafe) - throw thisFromOther(e); - } - return thisFromOther(res); - } - - preventExtensions(target) { - // Note: target@this(unsafe) throws@this(unsafe) - const object = this.object; // @other(unsafe) - try { - if (!otherReflectPreventExtensions(object)) return false; - } catch (e) { // @other(unsafe) - throw thisFromOther(e); - } - if (thisReflectIsExtensible(target)) { - this.doPreventExtensions(target, object, this); - } - return true; - } - - enumerate(target) { - // Note: target@this(unsafe) throws@this(unsafe) - const object = this.object; // @other(unsafe) - let res; // @other(unsafe) - try { - res = otherReflectEnumerate(object); - } catch (e) { // @other(unsafe) - throw thisFromOther(e); - } - return this.fromOtherWithContext(res); - } - - } - - function defaultFactory(object) { - // Note: other@other(unsafe) returns@this(unsafe) throws@this(unsafe) - return new BaseHandler(object); - } - - class ProtectedHandler extends BaseHandler { - - getFactory() { - return protectedFactory; - } - - set(target, key, value, receiver) { - // Note: target@this(unsafe) key@prim value@this(unsafe) receiver@this(unsafe) throws@this(unsafe) - if (typeof value === 'function') { - return thisReflectDefineProperty(receiver, key, { - __proto__: null, - value: value, - writable: true, - enumerable: true, - configurable: true - }) === true; - } - return super.set(target, key, value, receiver); - } - - definePropertyDesc(target, prop, desc) { - // Note: target@this(unsafe) prop@prim desc@this(safe) throws@this(unsafe) - if (desc && (desc.set || desc.get || typeof desc.value === 'function')) return undefined; - return desc; - } - - } - - function protectedFactory(object) { - // Note: other@other(unsafe) returns@this(unsafe) throws@this(unsafe) - return new ProtectedHandler(object); - } - - class ReadOnlyHandler extends BaseHandler { - - getFactory() { - return readonlyFactory; - } - - set(target, key, value, receiver) { - // Note: target@this(unsafe) key@prim value@this(unsafe) receiver@this(unsafe) throws@this(unsafe) - return thisReflectDefineProperty(receiver, key, { - __proto__: null, - value: value, - writable: true, - enumerable: true, - configurable: true - }); - } - - setPrototypeOf(target, value) { - // Note: target@this(unsafe) throws@this(unsafe) - return false; - } - - defineProperty(target, prop, desc) { - // Note: target@this(unsafe) prop@prim desc@this(unsafe) throws@this(unsafe) - return false; - } - - deleteProperty(target, prop) { - // Note: target@this(unsafe) prop@prim throws@this(unsafe) - return false; - } - - isExtensible(target) { - // Note: target@this(unsafe) throws@this(unsafe) - return false; - } - - preventExtensions(target) { - // Note: target@this(unsafe) throws@this(unsafe) - return false; - } - - } - - function readonlyFactory(object) { - // Note: other@other(unsafe) returns@this(unsafe) throws@this(unsafe) - return new ReadOnlyHandler(object); - } - - class ReadOnlyMockHandler extends ReadOnlyHandler { - - constructor(object, mock) { - // Note: object@other(unsafe) mock:this(unsafe) throws@this(unsafe) - super(object); - this.mock = mock; - } - - get(target, key, receiver) { - // Note: target@this(unsafe) key@prim receiver@this(unsafe) throws@this(unsafe) - const object = this.object; // @other(unsafe) - const mock = this.mock; - if (thisReflectApply(thisObjectHasOwnProperty, mock, key) && !thisOtherHasOwnProperty(object, key)) { - return mock[key]; - } - return super.get(target, key, receiver); - } - - } - - function thisFromOther(other) { - // Note: other@other(unsafe) returns@this(unsafe) throws@this(unsafe) - return thisFromOtherWithFactory(defaultFactory, other); - } - - function thisProxyOther(factory, other, proto) { - const target = thisCreateTargetObject(other, proto); - const handler = factory(other); - const proxy = new ThisProxy(target, handler); - try { - otherReflectApply(otherWeakMapSet, mappingThisToOther, [proxy, other]); - registerProxy(proxy, handler); - } catch (e) { - throw new VMError('Unexpected error'); - } - if (!isHost) { - thisReflectApply(thisWeakMapSet, mappingOtherToThis, [other, proxy]); - return proxy; - } - const proxy2 = new ThisProxy(proxy, emptyForzenObject); - try { - otherReflectApply(otherWeakMapSet, mappingThisToOther, [proxy2, other]); - registerProxy(proxy2, handler); - } catch (e) { - throw new VMError('Unexpected error'); - } - thisReflectApply(thisWeakMapSet, mappingOtherToThis, [other, proxy2]); - return proxy2; - } - - function thisEnsureThis(other) { - const type = typeof other; - switch (type) { - case 'object': - case 'function': - if (other === null) { - return null; - } else { - let proto = thisReflectGetPrototypeOf(other); - if (!proto) { - return other; - } - while (proto) { - const mapping = thisReflectApply(thisMapGet, protoMappings, [proto]); - if (mapping) { - const mapped = thisReflectApply(thisWeakMapGet, mappingOtherToThis, [other]); - if (mapped) return mapped; - return mapping(defaultFactory, other); - } - proto = thisReflectGetPrototypeOf(proto); - } - return other; - } - - case 'undefined': - case 'string': - case 'number': - case 'boolean': - case 'symbol': - case 'bigint': - return other; - - default: // new, unknown types can be dangerous - throw new VMError(`Unknown type '${type}'`); - } - } - - function thisFromOtherWithFactory(factory, other, proto) { - for (let loop = 0; loop < 10; loop++) { - const type = typeof other; - switch (type) { - case 'object': - case 'function': - if (other === null) { - return null; - } else { - const mapped = thisReflectApply(thisWeakMapGet, mappingOtherToThis, [other]); - if (mapped) return mapped; - if (proto) { - return thisProxyOther(factory, other, proto); - } - try { - proto = otherReflectGetPrototypeOf(other); - } catch (e) { // @other(unsafe) - other = e; - break; - } - if (!proto) { - return thisProxyOther(factory, other, null); - } - while (proto) { - const mapping = thisReflectApply(thisMapGet, protoMappings, [proto]); - if (mapping) return mapping(factory, other); - try { - proto = otherReflectGetPrototypeOf(proto); - } catch (e) { // @other(unsafe) - other = e; - break; - } - } - return thisProxyOther(factory, other, thisObjectPrototype); - } - - case 'undefined': - case 'string': - case 'number': - case 'boolean': - case 'symbol': - case 'bigint': - return other; - - default: // new, unknown types can be dangerous - throw new VMError(`Unknown type '${type}'`); - } - factory = defaultFactory; - proto = undefined; - } - throw new VMError('Exception recursion depth'); - } - - function thisFromOtherArguments(args) { - // Note: args@other(safe-array) returns@this(safe-array) throws@this(unsafe) - const arr = []; - for (let i = 0; i < args.length; i++) { - const value = thisFromOther(args[i]); - thisReflectDefineProperty(arr, i, { - __proto__: null, - value: value, - writable: true, - enumerable: true, - configurable: true - }); - } - return arr; - } - - function thisConnect(obj, other) { - // Note: obj@this(unsafe) other@other(unsafe) throws@this(unsafe) - try { - otherReflectApply(otherWeakMapSet, mappingThisToOther, [obj, other]); - } catch (e) { - throw new VMError('Unexpected error'); - } - thisReflectApply(thisWeakMapSet, mappingOtherToThis, [other, obj]); - } - - thisAddProtoMapping(thisGlobalPrototypes.Object, otherGlobalPrototypes.Object); - thisAddProtoMapping(thisGlobalPrototypes.Array, otherGlobalPrototypes.Array); - - for (let i = 0; i < globalsList.length; i++) { - const key = globalsList[i]; - const tp = thisGlobalPrototypes[key]; - const op = otherGlobalPrototypes[key]; - if (tp && op) thisAddProtoMapping(tp, op, key); - } - - for (let i = 0; i < errorsList.length; i++) { - const key = errorsList[i]; - const tp = thisGlobalPrototypes[key]; - const op = otherGlobalPrototypes[key]; - if (tp && op) thisAddProtoMapping(tp, op, 'Error'); - } - - thisAddProtoMapping(thisGlobalPrototypes.VMError, otherGlobalPrototypes.VMError, 'Error'); - - result.BaseHandler = BaseHandler; - result.ProtectedHandler = ProtectedHandler; - result.ReadOnlyHandler = ReadOnlyHandler; - result.ReadOnlyMockHandler = ReadOnlyMockHandler; - - return result; -} - -exports.createBridge = createBridge; -exports.VMError = VMError; - - -/***/ }) - -/******/ }); -/************************************************************************/ -/******/ /* webpack/runtime/compat */ -/******/ -/******/ if (typeof __nccwpck_require__ !== 'undefined') __nccwpck_require__.ab = __dirname + "/";/************************************************************************/ -/******/ -/******/ // startup -/******/ // Load entry module and return exports -/******/ // This entry module is referenced by other modules so it can't be inlined -/******/ var __webpack_exports__ = {}; -/******/ __webpack_modules__[989](0, __webpack_exports__); -/******/ module.exports = __webpack_exports__; -/******/ -/******/ })() -; \ No newline at end of file diff --git a/dist/events.js b/dist/events.js deleted file mode 100644 index f91938c..0000000 --- a/dist/events.js +++ /dev/null @@ -1,1033 +0,0 @@ -/******/ (() => { // webpackBootstrap -/******/ "use strict"; -/******/ var __webpack_modules__ = ({ - -/***/ 906: -/***/ ((module) => { - -// Copyright Joyent, Inc. and other Node contributors. -// -// Permission is hereby granted, free of charge, to any person obtaining a -// copy of this software and associated documentation files (the -// "Software"), to deal in the Software without restriction, including -// without limitation the rights to use, copy, modify, merge, publish, -// distribute, sublicense, and/or sell copies of the Software, and to permit -// persons to whom the Software is furnished to do so, subject to the -// following conditions: -// -// The above copyright notice and this permission notice shall be included -// in all copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS -// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN -// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, -// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR -// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE -// USE OR OTHER DEALINGS IN THE SOFTWARE. - -// Modified by the vm2 team to make this a standalone module to be loaded into the sandbox. - - - -const host = fromhost; - -const { - Boolean, - Error, - String, - Symbol -} = globalThis; - -const ReflectApply = Reflect.apply; -const ReflectOwnKeys = Reflect.ownKeys; - -const ErrorCaptureStackTrace = Error.captureStackTrace; - -const NumberIsNaN = Number.isNaN; - -const ObjectCreate = Object.create; -const ObjectDefineProperty = Object.defineProperty; -const ObjectDefineProperties = Object.defineProperties; -const ObjectGetPrototypeOf = Object.getPrototypeOf; - -const SymbolFor = Symbol.for; - -function uncurryThis(func) { - return (thiz, ...args) => ReflectApply(func, thiz, args); -} - -const ArrayPrototypeIndexOf = uncurryThis(Array.prototype.indexOf); -const ArrayPrototypeJoin = uncurryThis(Array.prototype.join); -const ArrayPrototypeSlice = uncurryThis(Array.prototype.slice); -const ArrayPrototypeSplice = uncurryThis(Array.prototype.splice); -const ArrayPrototypeUnshift = uncurryThis(Array.prototype.unshift); - -const kRejection = SymbolFor('nodejs.rejection'); - -function inspect(obj) { - return typeof obj === 'symbol' ? obj.toString() : `${obj}`; -} - -function spliceOne(list, index) { - for (; index + 1 < list.length; index++) - list[index] = list[index + 1]; - list.pop(); -} - -function assert(what, message) { - if (!what) throw new Error(message); -} - -function E(key, msg, Base) { - return function NodeError(...args) { - const error = new Base(); - const message = ReflectApply(msg, error, args); - ObjectDefineProperties(error, { - message: { - value: message, - enumerable: false, - writable: true, - configurable: true, - }, - toString: { - value() { - return `${this.name} [${key}]: ${this.message}`; - }, - enumerable: false, - writable: true, - configurable: true, - }, - }); - error.code = key; - return error; - }; -} - - -const ERR_INVALID_ARG_TYPE = E('ERR_INVALID_ARG_TYPE', - (name, expected, actual) => { - assert(typeof name === 'string', "'name' must be a string"); - if (!ArrayIsArray(expected)) { - expected = [expected]; - } - - let msg = 'The '; - if (StringPrototypeEndsWith(name, ' argument')) { - // For cases like 'first argument' - msg += `${name} `; - } else { - const type = StringPrototypeIncludes(name, '.') ? 'property' : 'argument'; - msg += `"${name}" ${type} `; - } - msg += 'must be '; - - const types = []; - const instances = []; - const other = []; - - for (const value of expected) { - assert(typeof value === 'string', - 'All expected entries have to be of type string'); - if (ArrayPrototypeIncludes(kTypes, value)) { - ArrayPrototypePush(types, StringPrototypeToLowerCase(value)); - } else if (RegExpPrototypeTest(classRegExp, value)) { - ArrayPrototypePush(instances, value); - } else { - assert(value !== 'object', - 'The value "object" should be written as "Object"'); - ArrayPrototypePush(other, value); - } - } - - // Special handle `object` in case other instances are allowed to outline - // the differences between each other. - if (instances.length > 0) { - const pos = ArrayPrototypeIndexOf(types, 'object'); - if (pos !== -1) { - ArrayPrototypeSplice(types, pos, 1); - ArrayPrototypePush(instances, 'Object'); - } - } - - if (types.length > 0) { - if (types.length > 2) { - const last = ArrayPrototypePop(types); - msg += `one of type ${ArrayPrototypeJoin(types, ', ')}, or ${last}`; - } else if (types.length === 2) { - msg += `one of type ${types[0]} or ${types[1]}`; - } else { - msg += `of type ${types[0]}`; - } - if (instances.length > 0 || other.length > 0) - msg += ' or '; - } - - if (instances.length > 0) { - if (instances.length > 2) { - const last = ArrayPrototypePop(instances); - msg += - `an instance of ${ArrayPrototypeJoin(instances, ', ')}, or ${last}`; - } else { - msg += `an instance of ${instances[0]}`; - if (instances.length === 2) { - msg += ` or ${instances[1]}`; - } - } - if (other.length > 0) - msg += ' or '; - } - - if (other.length > 0) { - if (other.length > 2) { - const last = ArrayPrototypePop(other); - msg += `one of ${ArrayPrototypeJoin(other, ', ')}, or ${last}`; - } else if (other.length === 2) { - msg += `one of ${other[0]} or ${other[1]}`; - } else { - if (StringPrototypeToLowerCase(other[0]) !== other[0]) - msg += 'an '; - msg += `${other[0]}`; - } - } - - if (actual == null) { - msg += `. Received ${actual}`; - } else if (typeof actual === 'function' && actual.name) { - msg += `. Received function ${actual.name}`; - } else if (typeof actual === 'object') { - if (actual.constructor && actual.constructor.name) { - msg += `. Received an instance of ${actual.constructor.name}`; - } else { - const inspected = inspect(actual, { depth: -1 }); - msg += `. Received ${inspected}`; - } - } else { - let inspected = inspect(actual, { colors: false }); - if (inspected.length > 25) - inspected = `${StringPrototypeSlice(inspected, 0, 25)}...`; - msg += `. Received type ${typeof actual} (${inspected})`; - } - return msg; - }, TypeError); - -const ERR_INVALID_THIS = E('ERR_INVALID_THIS', s => `Value of "this" must be of type ${s}`, TypeError); - -const ERR_OUT_OF_RANGE = E('ERR_OUT_OF_RANGE', - (str, range, input, replaceDefaultBoolean = false) => { - assert(range, 'Missing "range" argument'); - let msg = replaceDefaultBoolean ? str : - `The value of "${str}" is out of range.`; - const received = inspect(input); - msg += ` It must be ${range}. Received ${received}`; - return msg; - }, RangeError); - -const ERR_UNHANDLED_ERROR = E('ERR_UNHANDLED_ERROR', - err => { - const msg = 'Unhandled error.'; - if (err === undefined) return msg; - return `${msg} (${err})`; - }, Error); - -function validateBoolean(value, name) { - if (typeof value !== 'boolean') - throw new ERR_INVALID_ARG_TYPE(name, 'boolean', value); -} - -function validateFunction(value, name) { - if (typeof value !== 'function') - throw new ERR_INVALID_ARG_TYPE(name, 'Function', value); -} - -function validateString(value, name) { - if (typeof value !== 'string') - throw new ERR_INVALID_ARG_TYPE(name, 'string', value); -} - -function nc(cond, e) { - return cond === undefined || cond === null ? e : cond; -} - -function oc(base, key) { - return base === undefined || base === null ? undefined : base[key]; -} - -const kCapture = Symbol('kCapture'); -const kErrorMonitor = host.kErrorMonitor || Symbol('events.errorMonitor'); -const kMaxEventTargetListeners = Symbol('events.maxEventTargetListeners'); -const kMaxEventTargetListenersWarned = - Symbol('events.maxEventTargetListenersWarned'); - -const kIsEventTarget = SymbolFor('nodejs.event_target'); - -function isEventTarget(obj) { - return oc(oc(obj, 'constructor'), kIsEventTarget); -} - -/** - * Creates a new `EventEmitter` instance. - * @param {{ captureRejections?: boolean; }} [opts] - * @constructs {EventEmitter} - */ -function EventEmitter(opts) { - EventEmitter.init.call(this, opts); -} -module.exports = EventEmitter; -if (host.once) module.exports.once = host.once; -if (host.on) module.exports.on = host.on; -if (host.getEventListeners) module.exports.getEventListeners = host.getEventListeners; -// Backwards-compat with node 0.10.x -EventEmitter.EventEmitter = EventEmitter; - -EventEmitter.usingDomains = false; - -EventEmitter.captureRejectionSymbol = kRejection; -ObjectDefineProperty(EventEmitter, 'captureRejections', { - get() { - return EventEmitter.prototype[kCapture]; - }, - set(value) { - validateBoolean(value, 'EventEmitter.captureRejections'); - - EventEmitter.prototype[kCapture] = value; - }, - enumerable: true -}); - -if (host.EventEmitterReferencingAsyncResource) { - const kAsyncResource = Symbol('kAsyncResource'); - const EventEmitterReferencingAsyncResource = host.EventEmitterReferencingAsyncResource; - - class EventEmitterAsyncResource extends EventEmitter { - /** - * @param {{ - * name?: string, - * triggerAsyncId?: number, - * requireManualDestroy?: boolean, - * }} [options] - */ - constructor(options = undefined) { - let name; - if (typeof options === 'string') { - name = options; - options = undefined; - } else { - if (new.target === EventEmitterAsyncResource) { - validateString(oc(options, 'name'), 'options.name'); - } - name = oc(options, 'name') || new.target.name; - } - super(options); - - this[kAsyncResource] = - new EventEmitterReferencingAsyncResource(this, name, options); - } - - /** - * @param {symbol,string} event - * @param {...any} args - * @returns {boolean} - */ - emit(event, ...args) { - if (this[kAsyncResource] === undefined) - throw new ERR_INVALID_THIS('EventEmitterAsyncResource'); - const { asyncResource } = this; - ArrayPrototypeUnshift(args, super.emit, this, event); - return ReflectApply(asyncResource.runInAsyncScope, asyncResource, - args); - } - - /** - * @returns {void} - */ - emitDestroy() { - if (this[kAsyncResource] === undefined) - throw new ERR_INVALID_THIS('EventEmitterAsyncResource'); - this.asyncResource.emitDestroy(); - } - - /** - * @type {number} - */ - get asyncId() { - if (this[kAsyncResource] === undefined) - throw new ERR_INVALID_THIS('EventEmitterAsyncResource'); - return this.asyncResource.asyncId(); - } - - /** - * @type {number} - */ - get triggerAsyncId() { - if (this[kAsyncResource] === undefined) - throw new ERR_INVALID_THIS('EventEmitterAsyncResource'); - return this.asyncResource.triggerAsyncId(); - } - - /** - * @type {EventEmitterReferencingAsyncResource} - */ - get asyncResource() { - if (this[kAsyncResource] === undefined) - throw new ERR_INVALID_THIS('EventEmitterAsyncResource'); - return this[kAsyncResource]; - } - } - EventEmitter.EventEmitterAsyncResource = EventEmitterAsyncResource; -} - -EventEmitter.errorMonitor = kErrorMonitor; - -// The default for captureRejections is false -ObjectDefineProperty(EventEmitter.prototype, kCapture, { - value: false, - writable: true, - enumerable: false -}); - -EventEmitter.prototype._events = undefined; -EventEmitter.prototype._eventsCount = 0; -EventEmitter.prototype._maxListeners = undefined; - -// By default EventEmitters will print a warning if more than 10 listeners are -// added to it. This is a useful default which helps finding memory leaks. -let defaultMaxListeners = 10; - -function checkListener(listener) { - validateFunction(listener, 'listener'); -} - -ObjectDefineProperty(EventEmitter, 'defaultMaxListeners', { - enumerable: true, - get: function() { - return defaultMaxListeners; - }, - set: function(arg) { - if (typeof arg !== 'number' || arg < 0 || NumberIsNaN(arg)) { - throw new ERR_OUT_OF_RANGE('defaultMaxListeners', - 'a non-negative number', - arg); - } - defaultMaxListeners = arg; - } -}); - -ObjectDefineProperties(EventEmitter, { - kMaxEventTargetListeners: { - value: kMaxEventTargetListeners, - enumerable: false, - configurable: false, - writable: false, - }, - kMaxEventTargetListenersWarned: { - value: kMaxEventTargetListenersWarned, - enumerable: false, - configurable: false, - writable: false, - } -}); - -/** - * Sets the max listeners. - * @param {number} n - * @param {EventTarget[] | EventEmitter[]} [eventTargets] - * @returns {void} - */ -EventEmitter.setMaxListeners = - function(n = defaultMaxListeners, ...eventTargets) { - if (typeof n !== 'number' || n < 0 || NumberIsNaN(n)) - throw new ERR_OUT_OF_RANGE('n', 'a non-negative number', n); - if (eventTargets.length === 0) { - defaultMaxListeners = n; - } else { - for (let i = 0; i < eventTargets.length; i++) { - const target = eventTargets[i]; - if (isEventTarget(target)) { - target[kMaxEventTargetListeners] = n; - target[kMaxEventTargetListenersWarned] = false; - } else if (typeof target.setMaxListeners === 'function') { - target.setMaxListeners(n); - } else { - throw new ERR_INVALID_ARG_TYPE( - 'eventTargets', - ['EventEmitter', 'EventTarget'], - target); - } - } - } - }; - -// If you're updating this function definition, please also update any -// re-definitions, such as the one in the Domain module (lib/domain.js). -EventEmitter.init = function(opts) { - - if (this._events === undefined || - this._events === ObjectGetPrototypeOf(this)._events) { - this._events = ObjectCreate(null); - this._eventsCount = 0; - } - - this._maxListeners = this._maxListeners || undefined; - - - if (oc(opts, 'captureRejections')) { - validateBoolean(opts.captureRejections, 'options.captureRejections'); - this[kCapture] = Boolean(opts.captureRejections); - } else { - // Assigning the kCapture property directly saves an expensive - // prototype lookup in a very sensitive hot path. - this[kCapture] = EventEmitter.prototype[kCapture]; - } -}; - -function addCatch(that, promise, type, args) { - if (!that[kCapture]) { - return; - } - - // Handle Promises/A+ spec, then could be a getter - // that throws on second use. - try { - const then = promise.then; - - if (typeof then === 'function') { - then.call(promise, undefined, function(err) { - // The callback is called with nextTick to avoid a follow-up - // rejection from this promise. - process.nextTick(emitUnhandledRejectionOrErr, that, err, type, args); - }); - } - } catch (err) { - that.emit('error', err); - } -} - -function emitUnhandledRejectionOrErr(ee, err, type, args) { - if (typeof ee[kRejection] === 'function') { - ee[kRejection](err, type, ...args); - } else { - // We have to disable the capture rejections mechanism, otherwise - // we might end up in an infinite loop. - const prev = ee[kCapture]; - - // If the error handler throws, it is not catchable and it - // will end up in 'uncaughtException'. We restore the previous - // value of kCapture in case the uncaughtException is present - // and the exception is handled. - try { - ee[kCapture] = false; - ee.emit('error', err); - } finally { - ee[kCapture] = prev; - } - } -} - -/** - * Increases the max listeners of the event emitter. - * @param {number} n - * @returns {EventEmitter} - */ -EventEmitter.prototype.setMaxListeners = function setMaxListeners(n) { - if (typeof n !== 'number' || n < 0 || NumberIsNaN(n)) { - throw new ERR_OUT_OF_RANGE('n', 'a non-negative number', n); - } - this._maxListeners = n; - return this; -}; - -function _getMaxListeners(that) { - if (that._maxListeners === undefined) - return EventEmitter.defaultMaxListeners; - return that._maxListeners; -} - -/** - * Returns the current max listener value for the event emitter. - * @returns {number} - */ -EventEmitter.prototype.getMaxListeners = function getMaxListeners() { - return _getMaxListeners(this); -}; - -/** - * Synchronously calls each of the listeners registered - * for the event. - * @param {string | symbol} type - * @param {...any} [args] - * @returns {boolean} - */ -EventEmitter.prototype.emit = function emit(type, ...args) { - let doError = (type === 'error'); - - const events = this._events; - if (events !== undefined) { - if (doError && events[kErrorMonitor] !== undefined) - this.emit(kErrorMonitor, ...args); - doError = (doError && events.error === undefined); - } else if (!doError) - return false; - - // If there is no 'error' event listener then throw. - if (doError) { - let er; - if (args.length > 0) - er = args[0]; - if (er instanceof Error) { - try { - const capture = {}; - ErrorCaptureStackTrace(capture, EventEmitter.prototype.emit); - } catch (e) {} - - // Note: The comments on the `throw` lines are intentional, they show - // up in Node's output if this results in an unhandled exception. - throw er; // Unhandled 'error' event - } - - let stringifiedEr; - try { - stringifiedEr = inspect(er); - } catch (e) { - stringifiedEr = er; - } - - // At least give some kind of context to the user - const err = new ERR_UNHANDLED_ERROR(stringifiedEr); - err.context = er; - throw err; // Unhandled 'error' event - } - - const handler = events[type]; - - if (handler === undefined) - return false; - - if (typeof handler === 'function') { - const result = handler.apply(this, args); - - // We check if result is undefined first because that - // is the most common case so we do not pay any perf - // penalty - if (result !== undefined && result !== null) { - addCatch(this, result, type, args); - } - } else { - const len = handler.length; - const listeners = arrayClone(handler); - for (let i = 0; i < len; ++i) { - const result = listeners[i].apply(this, args); - - // We check if result is undefined first because that - // is the most common case so we do not pay any perf - // penalty. - // This code is duplicated because extracting it away - // would make it non-inlineable. - if (result !== undefined && result !== null) { - addCatch(this, result, type, args); - } - } - } - - return true; -}; - -function _addListener(target, type, listener, prepend) { - let m; - let events; - let existing; - - checkListener(listener); - - events = target._events; - if (events === undefined) { - events = target._events = ObjectCreate(null); - target._eventsCount = 0; - } else { - // To avoid recursion in the case that type === "newListener"! Before - // adding it to the listeners, first emit "newListener". - if (events.newListener !== undefined) { - target.emit('newListener', type, - nc(listener.listener, listener)); - - // Re-assign `events` because a newListener handler could have caused the - // this._events to be assigned to a new object - events = target._events; - } - existing = events[type]; - } - - if (existing === undefined) { - // Optimize the case of one listener. Don't need the extra array object. - events[type] = listener; - ++target._eventsCount; - } else { - if (typeof existing === 'function') { - // Adding the second element, need to change to array. - existing = events[type] = - prepend ? [listener, existing] : [existing, listener]; - // If we've already got an array, just append. - } else if (prepend) { - existing.unshift(listener); - } else { - existing.push(listener); - } - - // Check for listener leak - m = _getMaxListeners(target); - if (m > 0 && existing.length > m && !existing.warned) { - existing.warned = true; - // No error code for this since it is a Warning - // eslint-disable-next-line no-restricted-syntax - const w = new Error('Possible EventEmitter memory leak detected. ' + - `${existing.length} ${String(type)} listeners ` + - `added to ${inspect(target, { depth: -1 })}. Use ` + - 'emitter.setMaxListeners() to increase limit'); - w.name = 'MaxListenersExceededWarning'; - w.emitter = target; - w.type = type; - w.count = existing.length; - process.emitWarning(w); - } - } - - return target; -} - -/** - * Adds a listener to the event emitter. - * @param {string | symbol} type - * @param {Function} listener - * @returns {EventEmitter} - */ -EventEmitter.prototype.addListener = function addListener(type, listener) { - return _addListener(this, type, listener, false); -}; - -EventEmitter.prototype.on = EventEmitter.prototype.addListener; - -/** - * Adds the `listener` function to the beginning of - * the listeners array. - * @param {string | symbol} type - * @param {Function} listener - * @returns {EventEmitter} - */ -EventEmitter.prototype.prependListener = - function prependListener(type, listener) { - return _addListener(this, type, listener, true); - }; - -function onceWrapper() { - if (!this.fired) { - this.target.removeListener(this.type, this.wrapFn); - this.fired = true; - if (arguments.length === 0) - return this.listener.call(this.target); - return this.listener.apply(this.target, arguments); - } -} - -function _onceWrap(target, type, listener) { - const state = { fired: false, wrapFn: undefined, target, type, listener }; - const wrapped = onceWrapper.bind(state); - wrapped.listener = listener; - state.wrapFn = wrapped; - return wrapped; -} - -/** - * Adds a one-time `listener` function to the event emitter. - * @param {string | symbol} type - * @param {Function} listener - * @returns {EventEmitter} - */ -EventEmitter.prototype.once = function once(type, listener) { - checkListener(listener); - - this.on(type, _onceWrap(this, type, listener)); - return this; -}; - -/** - * Adds a one-time `listener` function to the beginning of - * the listeners array. - * @param {string | symbol} type - * @param {Function} listener - * @returns {EventEmitter} - */ -EventEmitter.prototype.prependOnceListener = - function prependOnceListener(type, listener) { - checkListener(listener); - - this.prependListener(type, _onceWrap(this, type, listener)); - return this; - }; - - -/** - * Removes the specified `listener` from the listeners array. - * @param {string | symbol} type - * @param {Function} listener - * @returns {EventEmitter} - */ -EventEmitter.prototype.removeListener = - function removeListener(type, listener) { - checkListener(listener); - - const events = this._events; - if (events === undefined) - return this; - - const list = events[type]; - if (list === undefined) - return this; - - if (list === listener || list.listener === listener) { - if (--this._eventsCount === 0) - this._events = ObjectCreate(null); - else { - delete events[type]; - if (events.removeListener) - this.emit('removeListener', type, list.listener || listener); - } - } else if (typeof list !== 'function') { - let position = -1; - - for (let i = list.length - 1; i >= 0; i--) { - if (list[i] === listener || list[i].listener === listener) { - position = i; - break; - } - } - - if (position < 0) - return this; - - if (position === 0) - list.shift(); - else { - spliceOne(list, position); - } - - if (list.length === 1) - events[type] = list[0]; - - if (events.removeListener !== undefined) - this.emit('removeListener', type, listener); - } - - return this; - }; - -EventEmitter.prototype.off = EventEmitter.prototype.removeListener; - -/** - * Removes all listeners from the event emitter. (Only - * removes listeners for a specific event name if specified - * as `type`). - * @param {string | symbol} [type] - * @returns {EventEmitter} - */ -EventEmitter.prototype.removeAllListeners = - function removeAllListeners(type) { - const events = this._events; - if (events === undefined) - return this; - - // Not listening for removeListener, no need to emit - if (events.removeListener === undefined) { - if (arguments.length === 0) { - this._events = ObjectCreate(null); - this._eventsCount = 0; - } else if (events[type] !== undefined) { - if (--this._eventsCount === 0) - this._events = ObjectCreate(null); - else - delete events[type]; - } - return this; - } - - // Emit removeListener for all listeners on all events - if (arguments.length === 0) { - for (const key of ReflectOwnKeys(events)) { - if (key === 'removeListener') continue; - this.removeAllListeners(key); - } - this.removeAllListeners('removeListener'); - this._events = ObjectCreate(null); - this._eventsCount = 0; - return this; - } - - const listeners = events[type]; - - if (typeof listeners === 'function') { - this.removeListener(type, listeners); - } else if (listeners !== undefined) { - // LIFO order - for (let i = listeners.length - 1; i >= 0; i--) { - this.removeListener(type, listeners[i]); - } - } - - return this; - }; - -function _listeners(target, type, unwrap) { - const events = target._events; - - if (events === undefined) - return []; - - const evlistener = events[type]; - if (evlistener === undefined) - return []; - - if (typeof evlistener === 'function') - return unwrap ? [evlistener.listener || evlistener] : [evlistener]; - - return unwrap ? - unwrapListeners(evlistener) : arrayClone(evlistener); -} - -/** - * Returns a copy of the array of listeners for the event name - * specified as `type`. - * @param {string | symbol} type - * @returns {Function[]} - */ -EventEmitter.prototype.listeners = function listeners(type) { - return _listeners(this, type, true); -}; - -/** - * Returns a copy of the array of listeners and wrappers for - * the event name specified as `type`. - * @param {string | symbol} type - * @returns {Function[]} - */ -EventEmitter.prototype.rawListeners = function rawListeners(type) { - return _listeners(this, type, false); -}; - -/** - * Returns the number of listeners listening to the event name - * specified as `type`. - * @deprecated since v3.2.0 - * @param {EventEmitter} emitter - * @param {string | symbol} type - * @returns {number} - */ -EventEmitter.listenerCount = function(emitter, type) { - if (typeof emitter.listenerCount === 'function') { - return emitter.listenerCount(type); - } - return emitter.listenerCount(type); -}; - -EventEmitter.prototype.listenerCount = listenerCount; - -/** - * Returns the number of listeners listening to event name - * specified as `type`. - * @param {string | symbol} type - * @returns {number} - */ -function listenerCount(type) { - const events = this._events; - - if (events !== undefined) { - const evlistener = events[type]; - - if (typeof evlistener === 'function') { - return 1; - } else if (evlistener !== undefined) { - return evlistener.length; - } - } - - return 0; -} - -/** - * Returns an array listing the events for which - * the emitter has registered listeners. - * @returns {any[]} - */ -EventEmitter.prototype.eventNames = function eventNames() { - return this._eventsCount > 0 ? ReflectOwnKeys(this._events) : []; -}; - -function arrayClone(arr) { - // At least since V8 8.3, this implementation is faster than the previous - // which always used a simple for-loop - switch (arr.length) { - case 2: return [arr[0], arr[1]]; - case 3: return [arr[0], arr[1], arr[2]]; - case 4: return [arr[0], arr[1], arr[2], arr[3]]; - case 5: return [arr[0], arr[1], arr[2], arr[3], arr[4]]; - case 6: return [arr[0], arr[1], arr[2], arr[3], arr[4], arr[5]]; - } - return ArrayPrototypeSlice(arr); -} - -function unwrapListeners(arr) { - const ret = arrayClone(arr); - for (let i = 0; i < ret.length; ++i) { - const orig = ret[i].listener; - if (typeof orig === 'function') - ret[i] = orig; - } - return ret; -} - - -/***/ }) - -/******/ }); -/************************************************************************/ -/******/ // The module cache -/******/ var __webpack_module_cache__ = {}; -/******/ -/******/ // The require function -/******/ function __nccwpck_require__(moduleId) { -/******/ // Check if module is in cache -/******/ var cachedModule = __webpack_module_cache__[moduleId]; -/******/ if (cachedModule !== undefined) { -/******/ return cachedModule.exports; -/******/ } -/******/ // Create a new module (and put it into the cache) -/******/ var module = __webpack_module_cache__[moduleId] = { -/******/ // no module.id needed -/******/ // no module.loaded needed -/******/ exports: {} -/******/ }; -/******/ -/******/ // Execute the module function -/******/ var threw = true; -/******/ try { -/******/ __webpack_modules__[moduleId](module, module.exports, __nccwpck_require__); -/******/ threw = false; -/******/ } finally { -/******/ if(threw) delete __webpack_module_cache__[moduleId]; -/******/ } -/******/ -/******/ // Return the exports of the module -/******/ return module.exports; -/******/ } -/******/ -/************************************************************************/ -/******/ /* webpack/runtime/compat */ -/******/ -/******/ if (typeof __nccwpck_require__ !== 'undefined') __nccwpck_require__.ab = __dirname + "/";/************************************************************************/ -/******/ -/******/ // startup -/******/ // Load entry module and return exports -/******/ // This entry module is referenced by other modules so it can't be inlined -/******/ var __webpack_exports__ = __nccwpck_require__(906); -/******/ module.exports = __webpack_exports__; -/******/ -/******/ })() -; \ No newline at end of file diff --git a/dist/index.js b/dist/index.js index 34c2185..2a3245a 100644 --- a/dist/index.js +++ b/dist/index.js @@ -1,82917 +1,107 @@ -/******/ (() => { // webpackBootstrap -/******/ var __webpack_modules__ = ({ - -/***/ 46748: -/***/ ((module) => { - -"use strict"; -module.exports = JSON.parse('{"name":"@aws-sdk/client-ecr-public","description":"AWS SDK for JavaScript Ecr Public Client for Node.js, Browser and React Native","version":"3.45.0","scripts":{"build":"yarn build:cjs && yarn build:es && yarn build:types","build:cjs":"tsc -p tsconfig.json","build:docs":"yarn clean:docs && typedoc ./","build:es":"tsc -p tsconfig.es.json","build:types":"tsc -p tsconfig.types.json","clean":"yarn clean:dist && yarn clean:docs","clean:dist":"rimraf ./dist","clean:docs":"rimraf ./docs","downlevel-dts":"downlevel-dts dist-types dist-types/ts3.4","test":"jest --coverage --passWithNoTests"},"main":"./dist-cjs/index.js","types":"./dist-types/index.d.ts","module":"./dist-es/index.js","sideEffects":false,"dependencies":{"@aws-crypto/sha256-browser":"2.0.0","@aws-crypto/sha256-js":"2.0.0","@aws-sdk/client-sts":"3.45.0","@aws-sdk/config-resolver":"3.45.0","@aws-sdk/credential-provider-node":"3.45.0","@aws-sdk/fetch-http-handler":"3.40.0","@aws-sdk/hash-node":"3.40.0","@aws-sdk/invalid-dependency":"3.40.0","@aws-sdk/middleware-content-length":"3.40.0","@aws-sdk/middleware-host-header":"3.40.0","@aws-sdk/middleware-logger":"3.40.0","@aws-sdk/middleware-retry":"3.40.0","@aws-sdk/middleware-serde":"3.40.0","@aws-sdk/middleware-signing":"3.45.0","@aws-sdk/middleware-stack":"3.40.0","@aws-sdk/middleware-user-agent":"3.40.0","@aws-sdk/node-config-provider":"3.40.0","@aws-sdk/node-http-handler":"3.40.0","@aws-sdk/protocol-http":"3.40.0","@aws-sdk/smithy-client":"3.41.0","@aws-sdk/types":"3.40.0","@aws-sdk/url-parser":"3.40.0","@aws-sdk/util-base64-browser":"3.37.0","@aws-sdk/util-base64-node":"3.37.0","@aws-sdk/util-body-length-browser":"3.37.0","@aws-sdk/util-body-length-node":"3.37.0","@aws-sdk/util-user-agent-browser":"3.40.0","@aws-sdk/util-user-agent-node":"3.40.0","@aws-sdk/util-utf8-browser":"3.37.0","@aws-sdk/util-utf8-node":"3.37.0","tslib":"^2.3.0"},"devDependencies":{"@aws-sdk/service-client-documentation-generator":"3.38.0","@types/node":"^12.7.5","downlevel-dts":"0.7.0","jest":"^26.1.0","rimraf":"^3.0.0","ts-jest":"^26.4.1","typedoc":"^0.19.2","typescript":"~4.3.5"},"engines":{"node":">=10.0.0"},"typesVersions":{"<4.0":{"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-ecr-public","repository":{"type":"git","url":"https://github.com/aws/aws-sdk-js-v3.git","directory":"clients/client-ecr-public"}}'); - -/***/ }), - -/***/ 16879: -/***/ ((module) => { - -"use strict"; -module.exports = JSON.parse('{"name":"@aws-sdk/client-ecr","description":"AWS SDK for JavaScript Ecr Client for Node.js, Browser and React Native","version":"3.45.0","scripts":{"build":"yarn build:cjs && yarn build:es && yarn build:types","build:cjs":"tsc -p tsconfig.json","build:docs":"yarn clean:docs && typedoc ./","build:es":"tsc -p tsconfig.es.json","build:types":"tsc -p tsconfig.types.json","clean":"yarn clean:dist && yarn clean:docs","clean:dist":"rimraf ./dist","clean:docs":"rimraf ./docs","downlevel-dts":"downlevel-dts dist-types dist-types/ts3.4","test":"exit 0"},"main":"./dist-cjs/index.js","types":"./dist-types/index.d.ts","module":"./dist-es/index.js","sideEffects":false,"dependencies":{"@aws-crypto/sha256-browser":"2.0.0","@aws-crypto/sha256-js":"2.0.0","@aws-sdk/client-sts":"3.45.0","@aws-sdk/config-resolver":"3.45.0","@aws-sdk/credential-provider-node":"3.45.0","@aws-sdk/fetch-http-handler":"3.40.0","@aws-sdk/hash-node":"3.40.0","@aws-sdk/invalid-dependency":"3.40.0","@aws-sdk/middleware-content-length":"3.40.0","@aws-sdk/middleware-host-header":"3.40.0","@aws-sdk/middleware-logger":"3.40.0","@aws-sdk/middleware-retry":"3.40.0","@aws-sdk/middleware-serde":"3.40.0","@aws-sdk/middleware-signing":"3.45.0","@aws-sdk/middleware-stack":"3.40.0","@aws-sdk/middleware-user-agent":"3.40.0","@aws-sdk/node-config-provider":"3.40.0","@aws-sdk/node-http-handler":"3.40.0","@aws-sdk/protocol-http":"3.40.0","@aws-sdk/smithy-client":"3.41.0","@aws-sdk/types":"3.40.0","@aws-sdk/url-parser":"3.40.0","@aws-sdk/util-base64-browser":"3.37.0","@aws-sdk/util-base64-node":"3.37.0","@aws-sdk/util-body-length-browser":"3.37.0","@aws-sdk/util-body-length-node":"3.37.0","@aws-sdk/util-user-agent-browser":"3.40.0","@aws-sdk/util-user-agent-node":"3.40.0","@aws-sdk/util-utf8-browser":"3.37.0","@aws-sdk/util-utf8-node":"3.37.0","@aws-sdk/util-waiter":"3.40.0","tslib":"^2.3.0"},"devDependencies":{"@aws-sdk/service-client-documentation-generator":"3.38.0","@types/node":"^12.7.5","downlevel-dts":"0.7.0","jest":"^26.1.0","rimraf":"^3.0.0","ts-jest":"^26.4.1","typedoc":"^0.19.2","typescript":"~4.3.5"},"engines":{"node":">=10.0.0"},"typesVersions":{"<4.0":{"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-ecr","repository":{"type":"git","url":"https://github.com/aws/aws-sdk-js-v3.git","directory":"clients/client-ecr"}}'); - -/***/ }), - -/***/ 63966: -/***/ ((module) => { - -"use strict"; -module.exports = JSON.parse('{"name":"@aws-sdk/client-sso","description":"AWS SDK for JavaScript Sso Client for Node.js, Browser and React Native","version":"3.45.0","scripts":{"build":"yarn build:cjs && yarn build:es && yarn build:types","build:cjs":"tsc -p tsconfig.json","build:docs":"yarn clean:docs && typedoc ./","build:es":"tsc -p tsconfig.es.json","build:types":"tsc -p tsconfig.types.json","clean":"yarn clean:dist && yarn clean:docs","clean:dist":"rimraf ./dist","clean:docs":"rimraf ./docs","downlevel-dts":"downlevel-dts dist-types dist-types/ts3.4","test":"exit 0"},"main":"./dist-cjs/index.js","types":"./dist-types/index.d.ts","module":"./dist-es/index.js","sideEffects":false,"dependencies":{"@aws-crypto/sha256-browser":"2.0.0","@aws-crypto/sha256-js":"2.0.0","@aws-sdk/config-resolver":"3.45.0","@aws-sdk/fetch-http-handler":"3.40.0","@aws-sdk/hash-node":"3.40.0","@aws-sdk/invalid-dependency":"3.40.0","@aws-sdk/middleware-content-length":"3.40.0","@aws-sdk/middleware-host-header":"3.40.0","@aws-sdk/middleware-logger":"3.40.0","@aws-sdk/middleware-retry":"3.40.0","@aws-sdk/middleware-serde":"3.40.0","@aws-sdk/middleware-stack":"3.40.0","@aws-sdk/middleware-user-agent":"3.40.0","@aws-sdk/node-config-provider":"3.40.0","@aws-sdk/node-http-handler":"3.40.0","@aws-sdk/protocol-http":"3.40.0","@aws-sdk/smithy-client":"3.41.0","@aws-sdk/types":"3.40.0","@aws-sdk/url-parser":"3.40.0","@aws-sdk/util-base64-browser":"3.37.0","@aws-sdk/util-base64-node":"3.37.0","@aws-sdk/util-body-length-browser":"3.37.0","@aws-sdk/util-body-length-node":"3.37.0","@aws-sdk/util-user-agent-browser":"3.40.0","@aws-sdk/util-user-agent-node":"3.40.0","@aws-sdk/util-utf8-browser":"3.37.0","@aws-sdk/util-utf8-node":"3.37.0","tslib":"^2.3.0"},"devDependencies":{"@aws-sdk/service-client-documentation-generator":"3.38.0","@types/node":"^12.7.5","downlevel-dts":"0.7.0","jest":"^26.1.0","rimraf":"^3.0.0","ts-jest":"^26.4.1","typedoc":"^0.19.2","typescript":"~4.3.5"},"engines":{"node":">=10.0.0"},"typesVersions":{"<4.0":{"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-sso","repository":{"type":"git","url":"https://github.com/aws/aws-sdk-js-v3.git","directory":"clients/client-sso"}}'); - -/***/ }), - -/***/ 1121: -/***/ ((module) => { - -"use strict"; -module.exports = JSON.parse('{"name":"@aws-sdk/client-sts","description":"AWS SDK for JavaScript Sts Client for Node.js, Browser and React Native","version":"3.45.0","scripts":{"build":"yarn build:cjs && yarn build:es && yarn build:types","build:cjs":"tsc -p tsconfig.json","build:docs":"yarn clean:docs && typedoc ./","build:es":"tsc -p tsconfig.es.json","build:types":"tsc -p tsconfig.types.json","clean":"yarn clean:dist && yarn clean:docs","clean:dist":"rimraf ./dist","clean:docs":"rimraf ./docs","downlevel-dts":"downlevel-dts dist-types dist-types/ts3.4","test":"exit 0"},"main":"./dist-cjs/index.js","types":"./dist-types/index.d.ts","module":"./dist-es/index.js","sideEffects":false,"dependencies":{"@aws-crypto/sha256-browser":"2.0.0","@aws-crypto/sha256-js":"2.0.0","@aws-sdk/config-resolver":"3.45.0","@aws-sdk/credential-provider-node":"3.45.0","@aws-sdk/fetch-http-handler":"3.40.0","@aws-sdk/hash-node":"3.40.0","@aws-sdk/invalid-dependency":"3.40.0","@aws-sdk/middleware-content-length":"3.40.0","@aws-sdk/middleware-host-header":"3.40.0","@aws-sdk/middleware-logger":"3.40.0","@aws-sdk/middleware-retry":"3.40.0","@aws-sdk/middleware-sdk-sts":"3.45.0","@aws-sdk/middleware-serde":"3.40.0","@aws-sdk/middleware-signing":"3.45.0","@aws-sdk/middleware-stack":"3.40.0","@aws-sdk/middleware-user-agent":"3.40.0","@aws-sdk/node-config-provider":"3.40.0","@aws-sdk/node-http-handler":"3.40.0","@aws-sdk/protocol-http":"3.40.0","@aws-sdk/smithy-client":"3.41.0","@aws-sdk/types":"3.40.0","@aws-sdk/url-parser":"3.40.0","@aws-sdk/util-base64-browser":"3.37.0","@aws-sdk/util-base64-node":"3.37.0","@aws-sdk/util-body-length-browser":"3.37.0","@aws-sdk/util-body-length-node":"3.37.0","@aws-sdk/util-user-agent-browser":"3.40.0","@aws-sdk/util-user-agent-node":"3.40.0","@aws-sdk/util-utf8-browser":"3.37.0","@aws-sdk/util-utf8-node":"3.37.0","entities":"2.2.0","fast-xml-parser":"3.19.0","tslib":"^2.3.0"},"devDependencies":{"@aws-sdk/service-client-documentation-generator":"3.38.0","@types/node":"^12.7.5","downlevel-dts":"0.7.0","jest":"^26.1.0","rimraf":"^3.0.0","ts-jest":"^26.4.1","typedoc":"^0.19.2","typescript":"~4.3.5"},"engines":{"node":">=10.0.0"},"typesVersions":{"<4.0":{"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-sts","repository":{"type":"git","url":"https://github.com/aws/aws-sdk-js-v3.git","directory":"clients/client-sts"}}'); - -/***/ }), - -/***/ 35981: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { - function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } - return new (P || (P = Promise))(function (resolve, reject) { - function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } - function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } - function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } - step((generator = generator.apply(thisArg, _arguments || [])).next()); - }); -}; -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.getRegistriesData = exports.getAccountIDs = exports.getRegion = exports.isPubECR = exports.isECR = void 0; -const core = __importStar(__nccwpck_require__(42186)); -const client_ecr_1 = __nccwpck_require__(8923); -const client_ecr_public_1 = __nccwpck_require__(42308); -const node_http_handler_1 = __nccwpck_require__(68805); -const proxy_agent_1 = __importDefault(__nccwpck_require__(67367)); -const ecrRegistryRegex = /^(([0-9]{12})\.dkr\.ecr\.(.+)\.amazonaws\.com(.cn)?)(\/([^:]+)(:.+)?)?$/; -exports.isECR = (registry) => { - return ecrRegistryRegex.test(registry) || exports.isPubECR(registry); -}; -exports.isPubECR = (registry) => { - return registry === 'public.ecr.aws'; -}; -exports.getRegion = (registry) => { - if (exports.isPubECR(registry)) { - return process.env.AWS_REGION || process.env.AWS_DEFAULT_REGION || 'us-east-1'; - } - const matches = registry.match(ecrRegistryRegex); - if (!matches) { - return ''; - } - return matches[3]; -}; -exports.getAccountIDs = (registry) => { - if (exports.isPubECR(registry)) { - return []; - } - const matches = registry.match(ecrRegistryRegex); - if (!matches) { - return []; - } - let accountIDs = [matches[2]]; - if (process.env.AWS_ACCOUNT_IDS) { - accountIDs.push(...process.env.AWS_ACCOUNT_IDS.split(',')); - } - return accountIDs.filter((item, index) => accountIDs.indexOf(item) === index); -}; -exports.getRegistriesData = (registry, username, password) => __awaiter(void 0, void 0, void 0, function* () { - const region = exports.getRegion(registry); - const accountIDs = exports.getAccountIDs(registry); - const authTokenRequest = {}; - if (accountIDs.length > 0) { - core.debug(`Requesting AWS ECR auth token for ${accountIDs.join(', ')}`); - authTokenRequest['registryIds'] = accountIDs; - } - let httpProxyAgent = null; - const httpProxy = process.env.http_proxy || process.env.HTTP_PROXY || ''; - if (httpProxy) { - core.debug(`Using http proxy ${httpProxy}`); - httpProxyAgent = new proxy_agent_1.default(httpProxy); - } - let httpsProxyAgent = null; - const httpsProxy = process.env.https_proxy || process.env.HTTPS_PROXY || ''; - if (httpsProxy) { - core.debug(`Using https proxy ${httpsProxy}`); - httpsProxyAgent = new proxy_agent_1.default(httpsProxy); - } - const credentials = username && password - ? { - accessKeyId: username, - secretAccessKey: password - } - : undefined; - if (exports.isPubECR(registry)) { - core.info(`AWS Public ECR detected with ${region} region`); - const ecrPublic = new client_ecr_public_1.ECRPUBLIC({ - customUserAgent: 'docker-login-action', - credentials, - region: region, - requestHandler: new node_http_handler_1.NodeHttpHandler({ - httpAgent: httpProxyAgent, - httpsAgent: httpsProxyAgent - }) - }); - const authTokenResponse = yield ecrPublic.getAuthorizationToken(authTokenRequest); - if (!authTokenResponse.authorizationData || !authTokenResponse.authorizationData.authorizationToken) { - throw new Error('Could not retrieve an authorization token from AWS Public ECR'); - } - const authToken = Buffer.from(authTokenResponse.authorizationData.authorizationToken, 'base64').toString('utf-8'); - const creds = authToken.split(':', 2); - return [ - { - registry: 'public.ecr.aws', - username: creds[0], - password: creds[1] - } - ]; - } - else { - core.info(`AWS ECR detected with ${region} region`); - const ecr = new client_ecr_1.ECR({ - customUserAgent: 'docker-login-action', - credentials, - region: region, - requestHandler: new node_http_handler_1.NodeHttpHandler({ - httpAgent: httpProxyAgent, - httpsAgent: httpsProxyAgent - }) - }); - const authTokenResponse = yield ecr.getAuthorizationToken(authTokenRequest); - if (!Array.isArray(authTokenResponse.authorizationData) || !authTokenResponse.authorizationData.length) { - throw new Error('Could not retrieve an authorization token from AWS ECR'); - } - const regDatas = []; - for (const authData of authTokenResponse.authorizationData) { - const authToken = Buffer.from(authData.authorizationToken || '', 'base64').toString('utf-8'); - const creds = authToken.split(':', 2); - regDatas.push({ - registry: authData.proxyEndpoint || '', - username: creds[0], - password: creds[1] - }); - } - return regDatas; - } -}); -//# sourceMappingURL=aws.js.map - -/***/ }), - -/***/ 13842: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.getInputs = void 0; -const core = __importStar(__nccwpck_require__(42186)); -function getInputs() { - return { - registry: core.getInput('registry'), - username: core.getInput('username'), - password: core.getInput('password'), - ecr: core.getInput('ecr'), - logout: core.getBooleanInput('logout') - }; -} -exports.getInputs = getInputs; -//# sourceMappingURL=context.js.map - -/***/ }), - -/***/ 3758: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { - function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } - return new (P || (P = Promise))(function (resolve, reject) { - function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } - function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } - function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } - step((generator = generator.apply(thisArg, _arguments || [])).next()); - }); -}; -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.loginECR = exports.loginStandard = exports.logout = exports.login = void 0; -const aws = __importStar(__nccwpck_require__(35981)); -const core = __importStar(__nccwpck_require__(42186)); -const exec = __importStar(__nccwpck_require__(71514)); -function login(registry, username, password, ecr) { - return __awaiter(this, void 0, void 0, function* () { - if (/true/i.test(ecr) || (ecr == 'auto' && aws.isECR(registry))) { - yield loginECR(registry, username, password); - } - else { - yield loginStandard(registry, username, password); - } - }); -} -exports.login = login; -function logout(registry) { - return __awaiter(this, void 0, void 0, function* () { - yield exec - .getExecOutput('docker', ['logout', registry], { - ignoreReturnCode: true - }) - .then(res => { - if (res.stderr.length > 0 && res.exitCode != 0) { - core.warning(res.stderr.trim()); - } - }); - }); -} -exports.logout = logout; -function loginStandard(registry, username, password) { - return __awaiter(this, void 0, void 0, function* () { - if (!username || !password) { - throw new Error('Username and password required'); - } - let loginArgs = ['login', '--password-stdin']; - loginArgs.push('--username', username); - loginArgs.push(registry); - if (registry) { - core.info(`Logging into ${registry}...`); - } - else { - core.info(`Logging into Docker Hub...`); - } - yield exec - .getExecOutput('docker', loginArgs, { - ignoreReturnCode: true, - silent: true, - input: Buffer.from(password) - }) - .then(res => { - if (res.stderr.length > 0 && res.exitCode != 0) { - throw new Error(res.stderr.trim()); - } - core.info(`Login Succeeded!`); - }); - }); -} -exports.loginStandard = loginStandard; -function loginECR(registry, username, password) { - return __awaiter(this, void 0, void 0, function* () { - core.info(`Retrieving registries data through AWS SDK...`); - const regDatas = yield aws.getRegistriesData(registry, username, password); - for (const regData of regDatas) { - core.info(`Logging into ${regData.registry}...`); - yield exec - .getExecOutput('docker', ['login', '--password-stdin', '--username', regData.username, regData.registry], { - ignoreReturnCode: true, - silent: true, - input: Buffer.from(regData.password) - }) - .then(res => { - if (res.stderr.length > 0 && res.exitCode != 0) { - throw new Error(res.stderr.trim()); - } - core.info('Login Succeeded!'); - }); - } - }); -} -exports.loginECR = loginECR; -//# sourceMappingURL=docker.js.map - -/***/ }), - -/***/ 3109: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { - function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } - return new (P || (P = Promise))(function (resolve, reject) { - function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } - function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } - function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } - step((generator = generator.apply(thisArg, _arguments || [])).next()); - }); -}; -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.run = void 0; -const core = __importStar(__nccwpck_require__(42186)); -const context = __importStar(__nccwpck_require__(13842)); -const docker = __importStar(__nccwpck_require__(3758)); -const stateHelper = __importStar(__nccwpck_require__(88647)); -function run() { - return __awaiter(this, void 0, void 0, function* () { - try { - const input = context.getInputs(); - stateHelper.setRegistry(input.registry); - stateHelper.setLogout(input.logout); - yield docker.login(input.registry, input.username, input.password, input.ecr); - } - catch (error) { - core.setFailed(error.message); - } - }); -} -exports.run = run; -function logout() { - return __awaiter(this, void 0, void 0, function* () { - if (!stateHelper.logout) { - return; - } - yield docker.logout(stateHelper.registry); - }); -} -if (!stateHelper.IsPost) { - run(); -} -else { - logout(); -} -//# sourceMappingURL=main.js.map - -/***/ }), - -/***/ 88647: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.setLogout = exports.setRegistry = exports.logout = exports.registry = exports.IsPost = void 0; -const core = __importStar(__nccwpck_require__(42186)); -exports.IsPost = !!process.env['STATE_isPost']; -exports.registry = process.env['STATE_registry'] || ''; -exports.logout = /true/i.test(process.env['STATE_logout'] || ''); -function setRegistry(registry) { - core.saveState('registry', registry); -} -exports.setRegistry = setRegistry; -function setLogout(logout) { - core.saveState('logout', logout); -} -exports.setLogout = setLogout; -if (!exports.IsPost) { - core.saveState('isPost', 'true'); -} -//# sourceMappingURL=state-helper.js.map - -/***/ }), - -/***/ 87351: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.issue = exports.issueCommand = void 0; -const os = __importStar(__nccwpck_require__(12087)); -const utils_1 = __nccwpck_require__(5278); +require('./sourcemap-register.js');(()=>{var r={79450:function(r,s,i){"use strict";var a=this&&this.__createBinding||(Object.create?function(r,s,i,a){if(a===undefined)a=i;var A=Object.getOwnPropertyDescriptor(s,i);if(!A||("get"in A?!s.__esModule:A.writable||A.configurable)){A={enumerable:true,get:function(){return s[i]}}}Object.defineProperty(r,a,A)}:function(r,s,i,a){if(a===undefined)a=i;r[a]=s[i]});var A=this&&this.__exportStar||function(r,s){for(var i in r)if(i!=="default"&&!Object.prototype.hasOwnProperty.call(s,i))a(s,r,i)};Object.defineProperty(s,"__esModule",{value:true});const c=i(46190);A(i(15769),s);A(i(38182),s);A(i(46190),s);const l=new c.DefaultArtifactClient;s["default"]=l},54622:(r,s,i)=>{"use strict";Object.defineProperty(s,"__esModule",{value:true});s.Timestamp=void 0;const a=i(4061);const A=i(4061);const c=i(4061);const l=i(4061);const d=i(4061);const u=i(4061);const p=i(4061);class Timestamp$Type extends p.MessageType{constructor(){super("google.protobuf.Timestamp",[{no:1,name:"seconds",kind:"scalar",T:3},{no:2,name:"nanos",kind:"scalar",T:5}])}now(){const r=this.create();const s=Date.now();r.seconds=u.PbLong.from(Math.floor(s/1e3)).toString();r.nanos=s%1e3*1e6;return r}toDate(r){return new Date(u.PbLong.from(r.seconds).toNumber()*1e3+Math.ceil(r.nanos/1e6))}fromDate(r){const s=this.create();const i=r.getTime();s.seconds=u.PbLong.from(Math.floor(i/1e3)).toString();s.nanos=i%1e3*1e6;return s}internalJsonWrite(r,s){let i=u.PbLong.from(r.seconds).toNumber()*1e3;if(iDate.parse("9999-12-31T23:59:59Z"))throw new Error("Unable to encode Timestamp to JSON. Must be from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59Z inclusive.");if(r.nanos<0)throw new Error("Unable to encode invalid Timestamp to JSON. Nanos must not be negative.");let a="Z";if(r.nanos>0){let s=(r.nanos+1e9).toString().substring(1);if(s.substring(3)==="000000")a="."+s.substring(0,3)+"Z";else if(s.substring(6)==="000")a="."+s.substring(0,6)+"Z";else a="."+s+"Z"}return new Date(i).toISOString().replace(".000Z",a)}internalJsonRead(r,s,i){if(typeof r!=="string")throw new Error("Unable to parse Timestamp from JSON "+(0,d.typeofJsonValue)(r)+".");let a=r.match(/^([0-9]{4})-([0-9]{2})-([0-9]{2})T([0-9]{2}):([0-9]{2}):([0-9]{2})(?:Z|\.([0-9]{3,9})Z|([+-][0-9][0-9]:[0-9][0-9]))$/);if(!a)throw new Error("Unable to parse Timestamp from JSON. Invalid format.");let A=Date.parse(a[1]+"-"+a[2]+"-"+a[3]+"T"+a[4]+":"+a[5]+":"+a[6]+(a[8]?a[8]:"Z"));if(Number.isNaN(A))throw new Error("Unable to parse Timestamp from JSON. Invalid value.");if(ADate.parse("9999-12-31T23:59:59Z"))throw new globalThis.Error("Unable to parse Timestamp from JSON. Must be from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59Z inclusive.");if(!i)i=this.create();i.seconds=u.PbLong.from(A/1e3).toString();i.nanos=0;if(a[7])i.nanos=parseInt("1"+a[7]+"0".repeat(9-a[7].length))-1e9;return i}create(r){const s={seconds:"0",nanos:0};globalThis.Object.defineProperty(s,l.MESSAGE_TYPE,{enumerable:false,value:this});if(r!==undefined)(0,c.reflectionMergePartial)(this,s,r);return s}internalBinaryRead(r,s,i,a){let c=a!==null&&a!==void 0?a:this.create(),l=r.pos+s;while(r.pos{"use strict";Object.defineProperty(s,"__esModule",{value:true});s.BytesValue=s.StringValue=s.BoolValue=s.UInt32Value=s.Int32Value=s.UInt64Value=s.Int64Value=s.FloatValue=s.DoubleValue=void 0;const a=i(4061);const A=i(4061);const c=i(4061);const l=i(4061);const d=i(4061);const u=i(4061);const p=i(4061);class DoubleValue$Type extends p.MessageType{constructor(){super("google.protobuf.DoubleValue",[{no:1,name:"value",kind:"scalar",T:1}])}internalJsonWrite(r,s){return this.refJsonWriter.scalar(2,r.value,"value",false,true)}internalJsonRead(r,s,i){if(!i)i=this.create();i.value=this.refJsonReader.scalar(r,1,undefined,"value");return i}create(r){const s={value:0};globalThis.Object.defineProperty(s,u.MESSAGE_TYPE,{enumerable:false,value:this});if(r!==undefined)(0,d.reflectionMergePartial)(this,s,r);return s}internalBinaryRead(r,s,i,a){let A=a!==null&&a!==void 0?a:this.create(),c=r.pos+s;while(r.pos{"use strict";Object.defineProperty(s,"__esModule",{value:true});s.ArtifactService=s.DeleteArtifactResponse=s.DeleteArtifactRequest=s.GetSignedArtifactURLResponse=s.GetSignedArtifactURLRequest=s.ListArtifactsResponse_MonolithArtifact=s.ListArtifactsResponse=s.ListArtifactsRequest=s.FinalizeArtifactResponse=s.FinalizeArtifactRequest=s.CreateArtifactResponse=s.CreateArtifactRequest=s.FinalizeMigratedArtifactResponse=s.FinalizeMigratedArtifactRequest=s.MigrateArtifactResponse=s.MigrateArtifactRequest=void 0;const a=i(60012);const A=i(4061);const c=i(4061);const l=i(4061);const d=i(4061);const u=i(4061);const p=i(8626);const g=i(8626);const h=i(54622);class MigrateArtifactRequest$Type extends u.MessageType{constructor(){super("github.actions.results.api.v1.MigrateArtifactRequest",[{no:1,name:"workflow_run_backend_id",kind:"scalar",T:9},{no:2,name:"name",kind:"scalar",T:9},{no:3,name:"expires_at",kind:"message",T:()=>h.Timestamp}])}create(r){const s={workflowRunBackendId:"",name:""};globalThis.Object.defineProperty(s,d.MESSAGE_TYPE,{enumerable:false,value:this});if(r!==undefined)(0,l.reflectionMergePartial)(this,s,r);return s}internalBinaryRead(r,s,i,a){let A=a!==null&&a!==void 0?a:this.create(),l=r.pos+s;while(r.posh.Timestamp},{no:5,name:"version",kind:"scalar",T:5}])}create(r){const s={workflowRunBackendId:"",workflowJobRunBackendId:"",name:"",version:0};globalThis.Object.defineProperty(s,d.MESSAGE_TYPE,{enumerable:false,value:this});if(r!==undefined)(0,l.reflectionMergePartial)(this,s,r);return s}internalBinaryRead(r,s,i,a){let A=a!==null&&a!==void 0?a:this.create(),l=r.pos+s;while(r.posg.StringValue}])}create(r){const s={workflowRunBackendId:"",workflowJobRunBackendId:"",name:"",size:"0"};globalThis.Object.defineProperty(s,d.MESSAGE_TYPE,{enumerable:false,value:this});if(r!==undefined)(0,l.reflectionMergePartial)(this,s,r);return s}internalBinaryRead(r,s,i,a){let A=a!==null&&a!==void 0?a:this.create(),l=r.pos+s;while(r.posg.StringValue},{no:4,name:"id_filter",kind:"message",T:()=>p.Int64Value}])}create(r){const s={workflowRunBackendId:"",workflowJobRunBackendId:""};globalThis.Object.defineProperty(s,d.MESSAGE_TYPE,{enumerable:false,value:this});if(r!==undefined)(0,l.reflectionMergePartial)(this,s,r);return s}internalBinaryRead(r,s,i,a){let A=a!==null&&a!==void 0?a:this.create(),l=r.pos+s;while(r.poss.ListArtifactsResponse_MonolithArtifact}])}create(r){const s={artifacts:[]};globalThis.Object.defineProperty(s,d.MESSAGE_TYPE,{enumerable:false,value:this});if(r!==undefined)(0,l.reflectionMergePartial)(this,s,r);return s}internalBinaryRead(r,i,a,A){let l=A!==null&&A!==void 0?A:this.create(),d=r.pos+i;while(r.posh.Timestamp},{no:7,name:"digest",kind:"message",T:()=>g.StringValue}])}create(r){const s={workflowRunBackendId:"",workflowJobRunBackendId:"",databaseId:"0",name:"",size:"0"};globalThis.Object.defineProperty(s,d.MESSAGE_TYPE,{enumerable:false,value:this});if(r!==undefined)(0,l.reflectionMergePartial)(this,s,r);return s}internalBinaryRead(r,s,i,a){let A=a!==null&&a!==void 0?a:this.create(),l=r.pos+s;while(r.pos{"use strict";Object.defineProperty(s,"__esModule",{value:true});s.ArtifactServiceClientProtobuf=s.ArtifactServiceClientJSON=void 0;const a=i(58178);class ArtifactServiceClientJSON{constructor(r){this.rpc=r;this.CreateArtifact.bind(this);this.FinalizeArtifact.bind(this);this.ListArtifacts.bind(this);this.GetSignedArtifactURL.bind(this);this.DeleteArtifact.bind(this)}CreateArtifact(r){const s=a.CreateArtifactRequest.toJson(r,{useProtoFieldName:true,emitDefaultValues:false});const i=this.rpc.request("github.actions.results.api.v1.ArtifactService","CreateArtifact","application/json",s);return i.then((r=>a.CreateArtifactResponse.fromJson(r,{ignoreUnknownFields:true})))}FinalizeArtifact(r){const s=a.FinalizeArtifactRequest.toJson(r,{useProtoFieldName:true,emitDefaultValues:false});const i=this.rpc.request("github.actions.results.api.v1.ArtifactService","FinalizeArtifact","application/json",s);return i.then((r=>a.FinalizeArtifactResponse.fromJson(r,{ignoreUnknownFields:true})))}ListArtifacts(r){const s=a.ListArtifactsRequest.toJson(r,{useProtoFieldName:true,emitDefaultValues:false});const i=this.rpc.request("github.actions.results.api.v1.ArtifactService","ListArtifacts","application/json",s);return i.then((r=>a.ListArtifactsResponse.fromJson(r,{ignoreUnknownFields:true})))}GetSignedArtifactURL(r){const s=a.GetSignedArtifactURLRequest.toJson(r,{useProtoFieldName:true,emitDefaultValues:false});const i=this.rpc.request("github.actions.results.api.v1.ArtifactService","GetSignedArtifactURL","application/json",s);return i.then((r=>a.GetSignedArtifactURLResponse.fromJson(r,{ignoreUnknownFields:true})))}DeleteArtifact(r){const s=a.DeleteArtifactRequest.toJson(r,{useProtoFieldName:true,emitDefaultValues:false});const i=this.rpc.request("github.actions.results.api.v1.ArtifactService","DeleteArtifact","application/json",s);return i.then((r=>a.DeleteArtifactResponse.fromJson(r,{ignoreUnknownFields:true})))}}s.ArtifactServiceClientJSON=ArtifactServiceClientJSON;class ArtifactServiceClientProtobuf{constructor(r){this.rpc=r;this.CreateArtifact.bind(this);this.FinalizeArtifact.bind(this);this.ListArtifacts.bind(this);this.GetSignedArtifactURL.bind(this);this.DeleteArtifact.bind(this)}CreateArtifact(r){const s=a.CreateArtifactRequest.toBinary(r);const i=this.rpc.request("github.actions.results.api.v1.ArtifactService","CreateArtifact","application/protobuf",s);return i.then((r=>a.CreateArtifactResponse.fromBinary(r)))}FinalizeArtifact(r){const s=a.FinalizeArtifactRequest.toBinary(r);const i=this.rpc.request("github.actions.results.api.v1.ArtifactService","FinalizeArtifact","application/protobuf",s);return i.then((r=>a.FinalizeArtifactResponse.fromBinary(r)))}ListArtifacts(r){const s=a.ListArtifactsRequest.toBinary(r);const i=this.rpc.request("github.actions.results.api.v1.ArtifactService","ListArtifacts","application/protobuf",s);return i.then((r=>a.ListArtifactsResponse.fromBinary(r)))}GetSignedArtifactURL(r){const s=a.GetSignedArtifactURLRequest.toBinary(r);const i=this.rpc.request("github.actions.results.api.v1.ArtifactService","GetSignedArtifactURL","application/protobuf",s);return i.then((r=>a.GetSignedArtifactURLResponse.fromBinary(r)))}DeleteArtifact(r){const s=a.DeleteArtifactRequest.toBinary(r);const i=this.rpc.request("github.actions.results.api.v1.ArtifactService","DeleteArtifact","application/protobuf",s);return i.then((r=>a.DeleteArtifactResponse.fromBinary(r)))}}s.ArtifactServiceClientProtobuf=ArtifactServiceClientProtobuf},46190:function(r,s,i){"use strict";var a=this&&this.__awaiter||function(r,s,i,a){function adopt(r){return r instanceof i?r:new i((function(s){s(r)}))}return new(i||(i=Promise))((function(i,A){function fulfilled(r){try{step(a.next(r))}catch(r){A(r)}}function rejected(r){try{step(a["throw"](r))}catch(r){A(r)}}function step(r){r.done?i(r.value):adopt(r.value).then(fulfilled,rejected)}step((a=a.apply(r,s||[])).next())}))};var A=this&&this.__rest||function(r,s){var i={};for(var a in r)if(Object.prototype.hasOwnProperty.call(r,a)&&s.indexOf(a)<0)i[a]=r[a];if(r!=null&&typeof Object.getOwnPropertySymbols==="function")for(var A=0,a=Object.getOwnPropertySymbols(r);A1){d=l.artifacts.sort(((r,s)=>Number(s.databaseId)-Number(r.databaseId)))[0];(0,A.debug)(`More than one artifact found for a single name, returning newest (id: ${d.databaseId})`)}const u={workflowRunBackendId:d.workflowRunBackendId,workflowJobRunBackendId:d.workflowJobRunBackendId,name:d.name};const p=yield s.DeleteArtifact(u);(0,A.info)(`Artifact '${r}' (ID: ${p.artifactId}) deleted`);return{id:Number(p.artifactId)}}))}s.deleteArtifactInternal=deleteArtifactInternal},73555:function(r,s,i){"use strict";var a=this&&this.__createBinding||(Object.create?function(r,s,i,a){if(a===undefined)a=i;var A=Object.getOwnPropertyDescriptor(s,i);if(!A||("get"in A?!s.__esModule:A.writable||A.configurable)){A={enumerable:true,get:function(){return s[i]}}}Object.defineProperty(r,a,A)}:function(r,s,i,a){if(a===undefined)a=i;r[a]=s[i]});var A=this&&this.__setModuleDefault||(Object.create?function(r,s){Object.defineProperty(r,"default",{enumerable:true,value:s})}:function(r,s){r["default"]=s});var c=this&&this.__importStar||function(r){if(r&&r.__esModule)return r;var s={};if(r!=null)for(var i in r)if(i!=="default"&&Object.prototype.hasOwnProperty.call(r,i))a(s,r,i);A(s,r);return s};var l=this&&this.__awaiter||function(r,s,i,a){function adopt(r){return r instanceof i?r:new i((function(s){s(r)}))}return new(i||(i=Promise))((function(i,A){function fulfilled(r){try{step(a.next(r))}catch(r){A(r)}}function rejected(r){try{step(a["throw"](r))}catch(r){A(r)}}function step(r){r.done?i(r.value):adopt(r.value).then(fulfilled,rejected)}step((a=a.apply(r,s||[])).next())}))};var d=this&&this.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(s,"__esModule",{value:true});s.downloadArtifactInternal=s.downloadArtifactPublic=s.streamExtractExternal=void 0;const u=d(i(73292));const p=c(i(6113));const g=c(i(12781));const h=c(i(95438));const C=c(i(15457));const y=c(i(58464));const I=d(i(69340));const B=i(85164);const b=i(74610);const Q=i(12312);const w=i(49960);const v=i(63062);const S=i(38182);const scrubQueryParameters=r=>{const s=new URL(r);s.search="";return s.toString()};function exists(r){return l(this,void 0,void 0,(function*(){try{yield u.default.access(r);return true}catch(r){if(r.code==="ENOENT"){return false}else{throw r}}}))}function streamExtract(r,s){return l(this,void 0,void 0,(function*(){let i=0;while(i<5){try{return yield streamExtractExternal(r,s)}catch(r){i++;C.debug(`Failed to download artifact after ${i} retries due to ${r.message}. Retrying in 5 seconds...`);yield new Promise((r=>setTimeout(r,5e3)))}}throw new Error(`Artifact download failed after ${i} retries.`)}))}function streamExtractExternal(r,s){return l(this,void 0,void 0,(function*(){const i=new y.HttpClient((0,B.getUserAgentString)());const a=yield i.get(r);if(a.message.statusCode!==200){throw new Error(`Unexpected HTTP response from blob storage: ${a.message.statusCode} ${a.message.statusMessage}`)}const A=30*1e3;let c=undefined;return new Promise(((r,i)=>{const timerFn=()=>{a.message.destroy(new Error(`Blob storage chunk did not respond in ${A}ms`))};const l=setTimeout(timerFn,A);const d=p.createHash("sha256").setEncoding("hex");const u=new g.PassThrough;a.message.pipe(u);u.pipe(d);const h=u;h.on("data",(()=>{l.refresh()})).on("error",(r=>{C.debug(`response.message: Artifact download failed: ${r.message}`);clearTimeout(l);i(r)})).pipe(I.default.Extract({path:s})).on("close",(()=>{clearTimeout(l);if(d){d.end();c=d.read();C.info(`SHA256 digest of downloaded artifact is ${c}`)}r({sha256Digest:`sha256:${c}`})})).on("error",(r=>{i(r)}))}))}))}s.streamExtractExternal=streamExtractExternal;function downloadArtifactPublic(r,s,i,a,A){return l(this,void 0,void 0,(function*(){const c=yield resolveOrCreateDirectory(A===null||A===void 0?void 0:A.path);const l=h.getOctokit(a);let d=false;C.info(`Downloading artifact '${r}' from '${s}/${i}'`);const{headers:u,status:p}=yield l.rest.actions.downloadArtifact({owner:s,repo:i,artifact_id:r,archive_format:"zip",request:{redirect:"manual"}});if(p!==302){throw new Error(`Unable to download artifact. Unexpected status: ${p}`)}const{location:g}=u;if(!g){throw new Error(`Unable to redirect to artifact download url`)}C.info(`Redirecting to blob download url: ${scrubQueryParameters(g)}`);try{C.info(`Starting download of artifact to: ${c}`);const r=yield streamExtract(g,c);C.info(`Artifact download completed successfully.`);if(A===null||A===void 0?void 0:A.expectedHash){if((A===null||A===void 0?void 0:A.expectedHash)!==r.sha256Digest){d=true;C.debug(`Computed digest: ${r.sha256Digest}`);C.debug(`Expected digest: ${A.expectedHash}`)}}}catch(r){throw new Error(`Unable to download and extract artifact: ${r.message}`)}return{downloadPath:c,digestMismatch:d}}))}s.downloadArtifactPublic=downloadArtifactPublic;function downloadArtifactInternal(r,s){return l(this,void 0,void 0,(function*(){const i=yield resolveOrCreateDirectory(s===null||s===void 0?void 0:s.path);const a=(0,Q.internalArtifactTwirpClient)();let A=false;const{workflowRunBackendId:c,workflowJobRunBackendId:l}=(0,v.getBackendIdsFromToken)();const d={workflowRunBackendId:c,workflowJobRunBackendId:l,idFilter:w.Int64Value.create({value:r.toString()})};const{artifacts:u}=yield a.ListArtifacts(d);if(u.length===0){throw new S.ArtifactNotFoundError(`No artifacts found for ID: ${r}\nAre you trying to download from a different run? Try specifying a github-token with \`actions:read\` scope.`)}if(u.length>1){C.warning("Multiple artifacts found, defaulting to first.")}const p={workflowRunBackendId:u[0].workflowRunBackendId,workflowJobRunBackendId:u[0].workflowJobRunBackendId,name:u[0].name};const{signedUrl:g}=yield a.GetSignedArtifactURL(p);C.info(`Redirecting to blob download url: ${scrubQueryParameters(g)}`);try{C.info(`Starting download of artifact to: ${i}`);const r=yield streamExtract(g,i);C.info(`Artifact download completed successfully.`);if(s===null||s===void 0?void 0:s.expectedHash){if((s===null||s===void 0?void 0:s.expectedHash)!==r.sha256Digest){A=true;C.debug(`Computed digest: ${r.sha256Digest}`);C.debug(`Expected digest: ${s.expectedHash}`)}}}catch(r){throw new Error(`Unable to download and extract artifact: ${r.message}`)}return{downloadPath:i,digestMismatch:A}}))}s.downloadArtifactInternal=downloadArtifactInternal;function resolveOrCreateDirectory(r=(0,b.getGitHubWorkspaceDir)()){return l(this,void 0,void 0,(function*(){if(!(yield exists(r))){C.debug(`Artifact destination folder does not exist, creating: ${r}`);yield u.default.mkdir(r,{recursive:true})}else{C.debug(`Artifact destination folder already exists: ${r}`)}return r}))}},29491:function(r,s,i){"use strict";var a=this&&this.__createBinding||(Object.create?function(r,s,i,a){if(a===undefined)a=i;var A=Object.getOwnPropertyDescriptor(s,i);if(!A||("get"in A?!s.__esModule:A.writable||A.configurable)){A={enumerable:true,get:function(){return s[i]}}}Object.defineProperty(r,a,A)}:function(r,s,i,a){if(a===undefined)a=i;r[a]=s[i]});var A=this&&this.__setModuleDefault||(Object.create?function(r,s){Object.defineProperty(r,"default",{enumerable:true,value:s})}:function(r,s){r["default"]=s});var c=this&&this.__importStar||function(r){if(r&&r.__esModule)return r;var s={};if(r!=null)for(var i in r)if(i!=="default"&&Object.prototype.hasOwnProperty.call(r,i))a(s,r,i);A(s,r);return s};var l=this&&this.__awaiter||function(r,s,i,a){function adopt(r){return r instanceof i?r:new i((function(s){s(r)}))}return new(i||(i=Promise))((function(i,A){function fulfilled(r){try{step(a.next(r))}catch(r){A(r)}}function rejected(r){try{step(a["throw"](r))}catch(r){A(r)}}function step(r){r.done?i(r.value):adopt(r.value).then(fulfilled,rejected)}step((a=a.apply(r,s||[])).next())}))};Object.defineProperty(s,"__esModule",{value:true});s.getArtifactInternal=s.getArtifactPublic=void 0;const d=i(95438);const u=i(86298);const p=c(i(15457));const g=i(73030);const h=i(64597);const C=i(68883);const y=i(63062);const I=i(85164);const B=i(12312);const b=i(49960);const Q=i(38182);function getArtifactPublic(r,s,i,a,A){var c;return l(this,void 0,void 0,(function*(){const[l,y]=(0,h.getRetryOptions)(g.defaults);const B={log:undefined,userAgent:(0,I.getUserAgentString)(),previews:undefined,retry:l,request:y};const b=(0,d.getOctokit)(A,B,u.retry,C.requestLog);const w=yield b.request("GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts{?name}",{owner:i,repo:a,run_id:s,name:r});if(w.status!==200){throw new Q.InvalidResponseError(`Invalid response from GitHub API: ${w.status} (${(c=w===null||w===void 0?void 0:w.headers)===null||c===void 0?void 0:c["x-github-request-id"]})`)}if(w.data.artifacts.length===0){throw new Q.ArtifactNotFoundError(`Artifact not found for name: ${r}\n Please ensure that your artifact is not expired and the artifact was uploaded using a compatible version of toolkit/upload-artifact.\n For more information, visit the GitHub Artifacts FAQ: https://github.com/actions/toolkit/blob/main/packages/artifact/docs/faq.md`)}let v=w.data.artifacts[0];if(w.data.artifacts.length>1){v=w.data.artifacts.sort(((r,s)=>s.id-r.id))[0];p.debug(`More than one artifact found for a single name, returning newest (id: ${v.id})`)}return{artifact:{name:v.name,id:v.id,size:v.size_in_bytes,createdAt:v.created_at?new Date(v.created_at):undefined,digest:v.digest}}}))}s.getArtifactPublic=getArtifactPublic;function getArtifactInternal(r){var s;return l(this,void 0,void 0,(function*(){const i=(0,B.internalArtifactTwirpClient)();const{workflowRunBackendId:a,workflowJobRunBackendId:A}=(0,y.getBackendIdsFromToken)();const c={workflowRunBackendId:a,workflowJobRunBackendId:A,nameFilter:b.StringValue.create({value:r})};const l=yield i.ListArtifacts(c);if(l.artifacts.length===0){throw new Q.ArtifactNotFoundError(`Artifact not found for name: ${r}\n Please ensure that your artifact is not expired and the artifact was uploaded using a compatible version of toolkit/upload-artifact.\n For more information, visit the GitHub Artifacts FAQ: https://github.com/actions/toolkit/blob/main/packages/artifact/docs/faq.md`)}let d=l.artifacts[0];if(l.artifacts.length>1){d=l.artifacts.sort(((r,s)=>Number(s.databaseId)-Number(r.databaseId)))[0];p.debug(`More than one artifact found for a single name, returning newest (id: ${d.databaseId})`)}return{artifact:{name:d.name,id:Number(d.databaseId),size:Number(d.size),createdAt:d.createdAt?b.Timestamp.toDate(d.createdAt):undefined,digest:(s=d.digest)===null||s===void 0?void 0:s.value}}}))}s.getArtifactInternal=getArtifactInternal},44141:function(r,s,i){"use strict";var a=this&&this.__awaiter||function(r,s,i,a){function adopt(r){return r instanceof i?r:new i((function(s){s(r)}))}return new(i||(i=Promise))((function(i,A){function fulfilled(r){try{step(a.next(r))}catch(r){A(r)}}function rejected(r){try{step(a["throw"](r))}catch(r){A(r)}}function step(r){r.done?i(r.value):adopt(r.value).then(fulfilled,rejected)}step((a=a.apply(r,s||[])).next())}))};Object.defineProperty(s,"__esModule",{value:true});s.listArtifactsInternal=s.listArtifactsPublic=void 0;const A=i(15457);const c=i(95438);const l=i(85164);const d=i(64597);const u=i(73030);const p=i(68883);const g=i(86298);const h=i(12312);const C=i(63062);const y=i(49960);const I=1e3;const B=100;const b=I/B;function listArtifactsPublic(r,s,i,h,C=false){return a(this,void 0,void 0,(function*(){(0,A.info)(`Fetching artifact list for workflow run ${r} in repository ${s}/${i}`);let a=[];const[y,Q]=(0,d.getRetryOptions)(u.defaults);const w={log:undefined,userAgent:(0,l.getUserAgentString)(),previews:undefined,retry:y,request:Q};const v=(0,c.getOctokit)(h,w,g.retry,p.requestLog);let S=1;const{data:R}=yield v.request("GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts",{owner:s,repo:i,run_id:r,per_page:B,page:S});let N=Math.ceil(R.total_count/B);const x=R.total_count;if(x>I){(0,A.warning)(`Workflow run ${r} has more than 1000 artifacts. Results will be incomplete as only the first ${I} artifacts will be returned`);N=b}for(const r of R.artifacts){a.push({name:r.name,id:r.id,size:r.size_in_bytes,createdAt:r.created_at?new Date(r.created_at):undefined,digest:r.digest})}S++;for(S;S{var s;return{name:r.name,id:Number(r.databaseId),size:Number(r.size),createdAt:r.createdAt?y.Timestamp.toDate(r.createdAt):undefined,digest:(s=r.digest)===null||s===void 0?void 0:s.value}}));if(r){d=filterLatest(d)}(0,A.info)(`Found ${d.length} artifact(s)`);return{artifacts:d}}))}s.listArtifactsInternal=listArtifactsInternal;function filterLatest(r){r.sort(((r,s)=>s.id-r.id));const s=[];const i=new Set;for(const a of r){if(!i.has(a.name)){s.push(a);i.add(a.name)}}return s}},64597:function(r,s,i){"use strict";var a=this&&this.__createBinding||(Object.create?function(r,s,i,a){if(a===undefined)a=i;var A=Object.getOwnPropertyDescriptor(s,i);if(!A||("get"in A?!s.__esModule:A.writable||A.configurable)){A={enumerable:true,get:function(){return s[i]}}}Object.defineProperty(r,a,A)}:function(r,s,i,a){if(a===undefined)a=i;r[a]=s[i]});var A=this&&this.__setModuleDefault||(Object.create?function(r,s){Object.defineProperty(r,"default",{enumerable:true,value:s})}:function(r,s){r["default"]=s});var c=this&&this.__importStar||function(r){if(r&&r.__esModule)return r;var s={};if(r!=null)for(var i in r)if(i!=="default"&&Object.prototype.hasOwnProperty.call(r,i))a(s,r,i);A(s,r);return s};Object.defineProperty(s,"__esModule",{value:true});s.getRetryOptions=void 0;const l=c(i(15457));const d=5;const u=[400,401,403,404,422];function getRetryOptions(r,s=d,i=u){var a;if(s<=0){return[{enabled:false},r.request]}const A={enabled:true};if(i.length>0){A.doNotRetry=i}const c=Object.assign(Object.assign({},r.request),{retries:s});l.debug(`GitHub client configured with: (retries: ${c.retries}, retry-exempt-status-code: ${(a=A.doNotRetry)!==null&&a!==void 0?a:"octokit default: [400, 401, 403, 404, 422]"})`);return[A,c]}s.getRetryOptions=getRetryOptions},12312:function(r,s,i){"use strict";var a=this&&this.__awaiter||function(r,s,i,a){function adopt(r){return r instanceof i?r:new i((function(s){s(r)}))}return new(i||(i=Promise))((function(i,A){function fulfilled(r){try{step(a.next(r))}catch(r){A(r)}}function rejected(r){try{step(a["throw"](r))}catch(r){A(r)}}function step(r){r.done?i(r.value):adopt(r.value).then(fulfilled,rejected)}step((a=a.apply(r,s||[])).next())}))};Object.defineProperty(s,"__esModule",{value:true});s.internalArtifactTwirpClient=void 0;const A=i(58464);const c=i(5788);const l=i(15457);const d=i(49960);const u=i(74610);const p=i(85164);const g=i(38182);const h=i(63062);class ArtifactHttpClient{constructor(r,s,i,a){this.maxAttempts=5;this.baseRetryIntervalMilliseconds=3e3;this.retryMultiplier=1.5;const l=(0,u.getRuntimeToken)();this.baseUrl=(0,u.getResultsServiceUrl)();if(s){this.maxAttempts=s}if(i){this.baseRetryIntervalMilliseconds=i}if(a){this.retryMultiplier=a}this.httpClient=new A.HttpClient(r,[new c.BearerCredentialHandler(l)])}request(r,s,i,A){return a(this,void 0,void 0,(function*(){const c=new URL(`/twirp/${r}/${s}`,this.baseUrl).href;(0,l.debug)(`[Request] ${s} ${c}`);const d={"Content-Type":i};try{const{body:r}=yield this.retryableRequest((()=>a(this,void 0,void 0,(function*(){return this.httpClient.post(c,JSON.stringify(A),d)}))));return r}catch(r){throw new Error(`Failed to ${s}: ${r.message}`)}}))}retryableRequest(r){return a(this,void 0,void 0,(function*(){let s=0;let i="";let a="";while(s=200&&r<300}isRetryableHttpStatusCode(r){if(!r)return false;const s=[A.HttpCodes.BadGateway,A.HttpCodes.GatewayTimeout,A.HttpCodes.InternalServerError,A.HttpCodes.ServiceUnavailable,A.HttpCodes.TooManyRequests];return s.includes(r)}sleep(r){return a(this,void 0,void 0,(function*(){return new Promise((s=>setTimeout(s,r)))}))}getExponentialRetryTimeMilliseconds(r){if(r<0){throw new Error("attempt should be a positive integer")}if(r===0){return this.baseRetryIntervalMilliseconds}const s=this.baseRetryIntervalMilliseconds*Math.pow(this.retryMultiplier,r);const i=s*this.retryMultiplier;return Math.trunc(Math.random()*(i-s)+s)}}function internalArtifactTwirpClient(r){const s=new ArtifactHttpClient((0,p.getUserAgentString)(),r===null||r===void 0?void 0:r.maxAttempts,r===null||r===void 0?void 0:r.retryIntervalMs,r===null||r===void 0?void 0:r.retryMultiplier);return new d.ArtifactServiceClientJSON(s)}s.internalArtifactTwirpClient=internalArtifactTwirpClient},74610:function(r,s,i){"use strict";var a=this&&this.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(s,"__esModule",{value:true});s.getUploadChunkTimeout=s.getConcurrency=s.getGitHubWorkspaceDir=s.isGhes=s.getResultsServiceUrl=s.getRuntimeToken=s.getUploadChunkSize=void 0;const A=a(i(22037));const c=i(15457);function getUploadChunkSize(){return 8*1024*1024}s.getUploadChunkSize=getUploadChunkSize;function getRuntimeToken(){const r=process.env["ACTIONS_RUNTIME_TOKEN"];if(!r){throw new Error("Unable to get the ACTIONS_RUNTIME_TOKEN env variable")}return r}s.getRuntimeToken=getRuntimeToken;function getResultsServiceUrl(){const r=process.env["ACTIONS_RESULTS_URL"];if(!r){throw new Error("Unable to get the ACTIONS_RESULTS_URL env variable")}return new URL(r).origin}s.getResultsServiceUrl=getResultsServiceUrl;function isGhes(){const r=new URL(process.env["GITHUB_SERVER_URL"]||"https://github.com");const s=r.hostname.trimEnd().toUpperCase();const i=s==="GITHUB.COM";const a=s.endsWith(".GHE.COM");const A=s.endsWith(".LOCALHOST");return!i&&!a&&!A}s.isGhes=isGhes;function getGitHubWorkspaceDir(){const r=process.env["GITHUB_WORKSPACE"];if(!r){throw new Error("Unable to get the GITHUB_WORKSPACE env variable")}return r}s.getGitHubWorkspaceDir=getGitHubWorkspaceDir;function getConcurrency(){const r=A.default.cpus().length;let s=32;if(r>4){const i=16*r;s=i>300?300:i}const i=process.env["ACTIONS_ARTIFACT_UPLOAD_CONCURRENCY"];if(i){const r=parseInt(i);if(isNaN(r)||r<1){throw new Error("Invalid value set for ACTIONS_ARTIFACT_UPLOAD_CONCURRENCY env variable")}if(r{"use strict";Object.defineProperty(s,"__esModule",{value:true});s.UsageError=s.NetworkError=s.GHESNotSupportedError=s.ArtifactNotFoundError=s.InvalidResponseError=s.FilesNotFoundError=void 0;class FilesNotFoundError extends Error{constructor(r=[]){let s="No files were found to upload";if(r.length>0){s+=`: ${r.join(", ")}`}super(s);this.files=r;this.name="FilesNotFoundError"}}s.FilesNotFoundError=FilesNotFoundError;class InvalidResponseError extends Error{constructor(r){super(r);this.name="InvalidResponseError"}}s.InvalidResponseError=InvalidResponseError;class ArtifactNotFoundError extends Error{constructor(r="Artifact not found"){super(r);this.name="ArtifactNotFoundError"}}s.ArtifactNotFoundError=ArtifactNotFoundError;class GHESNotSupportedError extends Error{constructor(r="@actions/artifact v2.0.0+, upload-artifact@v4+ and download-artifact@v4+ are not currently supported on GHES."){super(r);this.name="GHESNotSupportedError"}}s.GHESNotSupportedError=GHESNotSupportedError;class NetworkError extends Error{constructor(r){const s=`Unable to make request: ${r}\nIf you are using self-hosted runners, please make sure your runner has access to all GitHub endpoints: https://docs.github.com/en/actions/hosting-your-own-runners/managing-self-hosted-runners/about-self-hosted-runners#communication-between-self-hosted-runners-and-github`;super(s);this.code=r;this.name="NetworkError"}}s.NetworkError=NetworkError;NetworkError.isNetworkErrorCode=r=>{if(!r)return false;return["ECONNRESET","ENOTFOUND","ETIMEDOUT","ECONNREFUSED","EHOSTUNREACH"].includes(r)};class UsageError extends Error{constructor(){const r=`Artifact storage quota has been hit. Unable to upload any new artifacts. Usage is recalculated every 6-12 hours.\nMore info on storage limits: https://docs.github.com/en/billing/managing-billing-for-github-actions/about-billing-for-github-actions#calculating-minute-and-storage-spending`;super(r);this.name="UsageError"}}s.UsageError=UsageError;UsageError.isUsageErrorMessage=r=>{if(!r)return false;return r.includes("insufficient usage")}},15769:(r,s)=>{"use strict";Object.defineProperty(s,"__esModule",{value:true})},85164:(r,s,i)=>{"use strict";Object.defineProperty(s,"__esModule",{value:true});s.getUserAgentString=void 0;const a=i(39839);function getUserAgentString(){return`@actions/artifact-${a.version}`}s.getUserAgentString=getUserAgentString},63062:function(r,s,i){"use strict";var a=this&&this.__createBinding||(Object.create?function(r,s,i,a){if(a===undefined)a=i;var A=Object.getOwnPropertyDescriptor(s,i);if(!A||("get"in A?!s.__esModule:A.writable||A.configurable)){A={enumerable:true,get:function(){return s[i]}}}Object.defineProperty(r,a,A)}:function(r,s,i,a){if(a===undefined)a=i;r[a]=s[i]});var A=this&&this.__setModuleDefault||(Object.create?function(r,s){Object.defineProperty(r,"default",{enumerable:true,value:s})}:function(r,s){r["default"]=s});var c=this&&this.__importStar||function(r){if(r&&r.__esModule)return r;var s={};if(r!=null)for(var i in r)if(i!=="default"&&Object.prototype.hasOwnProperty.call(r,i))a(s,r,i);A(s,r);return s};var l=this&&this.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(s,"__esModule",{value:true});s.maskSecretUrls=s.maskSigUrl=s.getBackendIdsFromToken=void 0;const d=c(i(15457));const u=i(74610);const p=l(i(84329));const g=i(15457);const h=new Error("Failed to get backend IDs: The provided JWT token is invalid and/or missing claims");function getBackendIdsFromToken(){const r=(0,u.getRuntimeToken)();const s=(0,p.default)(r);if(!s.scp){throw h}const i=s.scp.split(" ");if(i.length===0){throw h}for(const r of i){const s=r.split(":");if((s===null||s===void 0?void 0:s[0])!=="Actions.Results"){continue}if(s.length!==3){throw h}const i={workflowRunBackendId:s[1],workflowJobRunBackendId:s[2]};d.debug(`Workflow Run Backend ID: ${i.workflowRunBackendId}`);d.debug(`Workflow Job Run Backend ID: ${i.workflowJobRunBackendId}`);return i}throw h}s.getBackendIdsFromToken=getBackendIdsFromToken;function maskSigUrl(r){if(!r)return;try{const s=new URL(r);const i=s.searchParams.get("sig");if(i){(0,g.setSecret)(i);(0,g.setSecret)(encodeURIComponent(i))}}catch(s){(0,g.debug)(`Failed to parse URL: ${r} ${s instanceof Error?s.message:String(s)}`)}}s.maskSigUrl=maskSigUrl;function maskSecretUrls(r){if(typeof r!=="object"||r===null){(0,g.debug)("body is not an object or is null");return}if("signed_upload_url"in r&&typeof r.signed_upload_url==="string"){maskSigUrl(r.signed_upload_url)}if("signed_url"in r&&typeof r.signed_url==="string"){maskSigUrl(r.signed_url)}}s.maskSecretUrls=maskSecretUrls},7246:function(r,s,i){"use strict";var a=this&&this.__createBinding||(Object.create?function(r,s,i,a){if(a===undefined)a=i;var A=Object.getOwnPropertyDescriptor(s,i);if(!A||("get"in A?!s.__esModule:A.writable||A.configurable)){A={enumerable:true,get:function(){return s[i]}}}Object.defineProperty(r,a,A)}:function(r,s,i,a){if(a===undefined)a=i;r[a]=s[i]});var A=this&&this.__setModuleDefault||(Object.create?function(r,s){Object.defineProperty(r,"default",{enumerable:true,value:s})}:function(r,s){r["default"]=s});var c=this&&this.__importStar||function(r){if(r&&r.__esModule)return r;var s={};if(r!=null)for(var i in r)if(i!=="default"&&Object.prototype.hasOwnProperty.call(r,i))a(s,r,i);A(s,r);return s};var l=this&&this.__awaiter||function(r,s,i,a){function adopt(r){return r instanceof i?r:new i((function(s){s(r)}))}return new(i||(i=Promise))((function(i,A){function fulfilled(r){try{step(a.next(r))}catch(r){A(r)}}function rejected(r){try{step(a["throw"](r))}catch(r){A(r)}}function step(r){r.done?i(r.value):adopt(r.value).then(fulfilled,rejected)}step((a=a.apply(r,s||[])).next())}))};Object.defineProperty(s,"__esModule",{value:true});s.uploadZipToBlobStorage=void 0;const d=i(84100);const u=i(74610);const p=c(i(15457));const g=c(i(6113));const h=c(i(12781));const C=i(38182);function uploadZipToBlobStorage(r,s){return l(this,void 0,void 0,(function*(){let i=0;let a=Date.now();const A=new AbortController;const chunkTimer=r=>l(this,void 0,void 0,(function*(){return new Promise(((s,i)=>{const c=setInterval((()=>{if(Date.now()-a>r){i(new Error("Upload progress stalled."))}}),r);A.signal.addEventListener("abort",(()=>{clearInterval(c);s()}))}))}));const c=(0,u.getConcurrency)();const y=(0,u.getUploadChunkSize)();const I=new d.BlobClient(r);const B=I.getBlockBlobClient();p.debug(`Uploading artifact zip to blob storage with maxConcurrency: ${c}, bufferSize: ${y}`);const uploadCallback=r=>{p.info(`Uploaded bytes ${r.loadedBytes}`);i=r.loadedBytes;a=Date.now()};const b={blobHTTPHeaders:{blobContentType:"zip"},onProgress:uploadCallback,abortSignal:A.signal};let Q=undefined;const w=new h.PassThrough;const v=g.createHash("sha256");s.pipe(w);s.pipe(v).setEncoding("hex");p.info("Beginning upload of artifact content to blob storage");try{yield Promise.race([B.uploadStream(w,y,c,b),chunkTimer((0,u.getUploadChunkTimeout)())])}catch(r){if(C.NetworkError.isNetworkErrorCode(r===null||r===void 0?void 0:r.code)){throw new C.NetworkError(r===null||r===void 0?void 0:r.code)}throw r}finally{A.abort()}p.info("Finished uploading artifact content to blob storage!");v.end();Q=v.read();p.info(`SHA256 digest of uploaded artifact zip is ${Q}`);if(i===0){p.warning(`No data was uploaded to blob storage. Reported upload byte count is 0.`)}return{uploadSize:i,sha256Hash:Q}}))}s.uploadZipToBlobStorage=uploadZipToBlobStorage},63219:(r,s,i)=>{"use strict";Object.defineProperty(s,"__esModule",{value:true});s.validateFilePath=s.validateArtifactName=void 0;const a=i(15457);const A=new Map([['"',' Double quote "'],[":"," Colon :"],["<"," Less than <"],[">"," Greater than >"],["|"," Vertical bar |"],["*"," Asterisk *"],["?"," Question mark ?"],["\r"," Carriage return \\r"],["\n"," Line feed \\n"]]);const c=new Map([...A,["\\"," Backslash \\"],["/"," Forward slash /"]]);function validateArtifactName(r){if(!r){throw new Error(`Provided artifact name input during validation is empty`)}for(const[s,i]of c){if(r.includes(s)){throw new Error(`The artifact name is not valid: ${r}. Contains the following character: ${i}\n \nInvalid characters include: ${Array.from(c.values()).toString()}\n \nThese characters are not allowed in the artifact name due to limitations with certain file systems such as NTFS. To maintain file system agnostic behavior, these characters are intentionally not allowed to prevent potential problems with downloads on different file systems.`)}}(0,a.info)(`Artifact name is valid!`)}s.validateArtifactName=validateArtifactName;function validateFilePath(r){if(!r){throw new Error(`Provided file path input during validation is empty`)}for(const[s,i]of A){if(r.includes(s)){throw new Error(`The path for one of the files in artifact is not valid: ${r}. Contains the following character: ${i}\n \nInvalid characters include: ${Array.from(A.values()).toString()}\n \nThe following characters are not allowed in files that are uploaded due to limitations with certain file systems such as NTFS. To maintain file system agnostic behavior, these characters are intentionally not allowed to prevent potential problems with downloads on different file systems.\n `)}}}s.validateFilePath=validateFilePath},3231:function(r,s,i){"use strict";var a=this&&this.__createBinding||(Object.create?function(r,s,i,a){if(a===undefined)a=i;var A=Object.getOwnPropertyDescriptor(s,i);if(!A||("get"in A?!s.__esModule:A.writable||A.configurable)){A={enumerable:true,get:function(){return s[i]}}}Object.defineProperty(r,a,A)}:function(r,s,i,a){if(a===undefined)a=i;r[a]=s[i]});var A=this&&this.__setModuleDefault||(Object.create?function(r,s){Object.defineProperty(r,"default",{enumerable:true,value:s})}:function(r,s){r["default"]=s});var c=this&&this.__importStar||function(r){if(r&&r.__esModule)return r;var s={};if(r!=null)for(var i in r)if(i!=="default"&&Object.prototype.hasOwnProperty.call(r,i))a(s,r,i);A(s,r);return s};Object.defineProperty(s,"__esModule",{value:true});s.getExpiration=void 0;const l=i(49960);const d=c(i(15457));function getExpiration(r){if(!r){return undefined}const s=getRetentionDays();if(s&&sr.sourcePath?[r.sourcePath]:[])))}const c=(0,C.getBackendIdsFromToken)();const l=(0,g.internalArtifactTwirpClient)();const Q={workflowRunBackendId:c.workflowRunBackendId,workflowJobRunBackendId:c.workflowJobRunBackendId,name:r,version:4};const w=(0,u.getExpiration)(a===null||a===void 0?void 0:a.retentionDays);if(w){Q.expiresAt=w}const v=yield l.CreateArtifact(Q);if(!v.ok){throw new b.InvalidResponseError("CreateArtifact: response from backend was not ok")}const S=yield(0,I.createZipUploadStream)(A,a===null||a===void 0?void 0:a.compressionLevel);const R=yield(0,y.uploadZipToBlobStorage)(v.signedUploadUrl,S);const N={workflowRunBackendId:c.workflowRunBackendId,workflowJobRunBackendId:c.workflowJobRunBackendId,name:r,size:R.uploadSize?R.uploadSize.toString():"0"};if(R.sha256Hash){N.hash=B.StringValue.create({value:`sha256:${R.sha256Hash}`})}d.info(`Finalizing artifact upload`);const x=yield l.FinalizeArtifact(N);if(!x.ok){throw new b.InvalidResponseError("FinalizeArtifact: response from backend was not ok")}const D=BigInt(x.artifactId);d.info(`Artifact ${r}.zip successfully finalized. Artifact ID ${D}`);return{size:R.uploadSize,digest:R.sha256Hash,id:Number(D)}}))}s.uploadArtifact=uploadArtifact},17837:function(r,s,i){"use strict";var a=this&&this.__createBinding||(Object.create?function(r,s,i,a){if(a===undefined)a=i;var A=Object.getOwnPropertyDescriptor(s,i);if(!A||("get"in A?!s.__esModule:A.writable||A.configurable)){A={enumerable:true,get:function(){return s[i]}}}Object.defineProperty(r,a,A)}:function(r,s,i,a){if(a===undefined)a=i;r[a]=s[i]});var A=this&&this.__setModuleDefault||(Object.create?function(r,s){Object.defineProperty(r,"default",{enumerable:true,value:s})}:function(r,s){r["default"]=s});var c=this&&this.__importStar||function(r){if(r&&r.__esModule)return r;var s={};if(r!=null)for(var i in r)if(i!=="default"&&Object.prototype.hasOwnProperty.call(r,i))a(s,r,i);A(s,r);return s};Object.defineProperty(s,"__esModule",{value:true});s.getUploadZipSpecification=s.validateRootDirectory=void 0;const l=c(i(57147));const d=i(15457);const u=i(71017);const p=i(63219);function validateRootDirectory(r){if(!l.existsSync(r)){throw new Error(`The provided rootDirectory ${r} does not exist`)}if(!l.statSync(r).isDirectory()){throw new Error(`The provided rootDirectory ${r} is not a valid directory`)}(0,d.info)(`Root directory input is valid!`)}s.validateRootDirectory=validateRootDirectory;function getUploadZipSpecification(r,s){const i=[];s=(0,u.normalize)(s);s=(0,u.resolve)(s);for(let a of r){const r=l.lstatSync(a,{throwIfNoEntry:false});if(!r){throw new Error(`File ${a} does not exist`)}if(!r.isDirectory()){a=(0,u.normalize)(a);a=(0,u.resolve)(a);if(!a.startsWith(s)){throw new Error(`The rootDirectory: ${s} is not a parent directory of the file: ${a}`)}const A=a.replace(s,"");(0,p.validateFilePath)(A);i.push({sourcePath:a,destinationPath:A,stats:r})}else{const A=a.replace(s,"");(0,p.validateFilePath)(A);i.push({sourcePath:null,destinationPath:A,stats:r})}}return i}s.getUploadZipSpecification=getUploadZipSpecification},69186:function(r,s,i){"use strict";var a=this&&this.__createBinding||(Object.create?function(r,s,i,a){if(a===undefined)a=i;var A=Object.getOwnPropertyDescriptor(s,i);if(!A||("get"in A?!s.__esModule:A.writable||A.configurable)){A={enumerable:true,get:function(){return s[i]}}}Object.defineProperty(r,a,A)}:function(r,s,i,a){if(a===undefined)a=i;r[a]=s[i]});var A=this&&this.__setModuleDefault||(Object.create?function(r,s){Object.defineProperty(r,"default",{enumerable:true,value:s})}:function(r,s){r["default"]=s});var c=this&&this.__importStar||function(r){if(r&&r.__esModule)return r;var s={};if(r!=null)for(var i in r)if(i!=="default"&&Object.prototype.hasOwnProperty.call(r,i))a(s,r,i);A(s,r);return s};var l=this&&this.__awaiter||function(r,s,i,a){function adopt(r){return r instanceof i?r:new i((function(s){s(r)}))}return new(i||(i=Promise))((function(i,A){function fulfilled(r){try{step(a.next(r))}catch(r){A(r)}}function rejected(r){try{step(a["throw"](r))}catch(r){A(r)}}function step(r){r.done?i(r.value):adopt(r.value).then(fulfilled,rejected)}step((a=a.apply(r,s||[])).next())}))};Object.defineProperty(s,"__esModule",{value:true});s.createZipUploadStream=s.ZipUploadStream=s.DEFAULT_COMPRESSION_LEVEL=void 0;const d=c(i(12781));const u=i(73292);const p=c(i(43084));const g=c(i(15457));const h=i(74610);s.DEFAULT_COMPRESSION_LEVEL=6;class ZipUploadStream extends d.Transform{constructor(r){super({highWaterMark:r})}_transform(r,s,i){i(null,r)}}s.ZipUploadStream=ZipUploadStream;function createZipUploadStream(r,i=s.DEFAULT_COMPRESSION_LEVEL){return l(this,void 0,void 0,(function*(){g.debug(`Creating Artifact archive with compressionLevel: ${i}`);const s=p.create("zip",{highWaterMark:(0,h.getUploadChunkSize)(),zlib:{level:i}});s.on("error",zipErrorCallback);s.on("warning",zipWarningCallback);s.on("finish",zipFinishCallback);s.on("end",zipEndCallback);for(const i of r){if(i.sourcePath!==null){let r=i.sourcePath;if(i.stats.isSymbolicLink()){r=yield(0,u.realpath)(i.sourcePath)}s.file(r,{name:i.destinationPath})}else{s.append("",{name:i.destinationPath})}}const a=(0,h.getUploadChunkSize)();const A=new ZipUploadStream(a);g.debug(`Zip write high watermark value ${A.writableHighWaterMark}`);g.debug(`Zip read high watermark value ${A.readableHighWaterMark}`);s.pipe(A);s.finalize();return A}))}s.createZipUploadStream=createZipUploadStream;const zipErrorCallback=r=>{g.error("An error has occurred while creating the zip file for upload");g.info(r);throw new Error("An error has occurred during zip creation for the artifact")};const zipWarningCallback=r=>{if(r.code==="ENOENT"){g.warning("ENOENT warning during artifact zip creation. No such file or directory");g.info(r)}else{g.warning(`A non-blocking warning has occurred during artifact zip creation: ${r.code}`);g.info(r)}};const zipFinishCallback=()=>{g.debug("Zip stream for upload has finished.")};const zipEndCallback=()=>{g.debug("Zip stream for upload has ended.")}},56270:function(r,s,i){"use strict";var a=this&&this.__createBinding||(Object.create?function(r,s,i,a){if(a===undefined)a=i;Object.defineProperty(r,a,{enumerable:true,get:function(){return s[i]}})}:function(r,s,i,a){if(a===undefined)a=i;r[a]=s[i]});var A=this&&this.__setModuleDefault||(Object.create?function(r,s){Object.defineProperty(r,"default",{enumerable:true,value:s})}:function(r,s){r["default"]=s});var c=this&&this.__importStar||function(r){if(r&&r.__esModule)return r;var s={};if(r!=null)for(var i in r)if(i!=="default"&&Object.hasOwnProperty.call(r,i))a(s,r,i);A(s,r);return s};Object.defineProperty(s,"__esModule",{value:true});s.issue=s.issueCommand=void 0;const l=c(i(22037));const d=i(86700);function issueCommand(r,s,i){const a=new Command(r,s,i);process.stdout.write(a.toString()+l.EOL)}s.issueCommand=issueCommand;function issue(r,s=""){issueCommand(r,{},s)}s.issue=issue;const u="::";class Command{constructor(r,s,i){if(!r){r="missing.command"}this.command=r;this.properties=s;this.message=i}toString(){let r=u+this.command;if(this.properties&&Object.keys(this.properties).length>0){r+=" ";let s=true;for(const i in this.properties){if(this.properties.hasOwnProperty(i)){const a=this.properties[i];if(a){if(s){s=false}else{r+=","}r+=`${i}=${escapeProperty(a)}`}}}}r+=`${u}${escapeData(this.message)}`;return r}}function escapeData(r){return d.toCommandValue(r).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}function escapeProperty(r){return d.toCommandValue(r).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}},15457:function(r,s,i){"use strict";var a=this&&this.__createBinding||(Object.create?function(r,s,i,a){if(a===undefined)a=i;Object.defineProperty(r,a,{enumerable:true,get:function(){return s[i]}})}:function(r,s,i,a){if(a===undefined)a=i;r[a]=s[i]});var A=this&&this.__setModuleDefault||(Object.create?function(r,s){Object.defineProperty(r,"default",{enumerable:true,value:s})}:function(r,s){r["default"]=s});var c=this&&this.__importStar||function(r){if(r&&r.__esModule)return r;var s={};if(r!=null)for(var i in r)if(i!=="default"&&Object.hasOwnProperty.call(r,i))a(s,r,i);A(s,r);return s};var l=this&&this.__awaiter||function(r,s,i,a){function adopt(r){return r instanceof i?r:new i((function(s){s(r)}))}return new(i||(i=Promise))((function(i,A){function fulfilled(r){try{step(a.next(r))}catch(r){A(r)}}function rejected(r){try{step(a["throw"](r))}catch(r){A(r)}}function step(r){r.done?i(r.value):adopt(r.value).then(fulfilled,rejected)}step((a=a.apply(r,s||[])).next())}))};Object.defineProperty(s,"__esModule",{value:true});s.getIDToken=s.getState=s.saveState=s.group=s.endGroup=s.startGroup=s.info=s.notice=s.warning=s.error=s.debug=s.isDebug=s.setFailed=s.setCommandEcho=s.setOutput=s.getBooleanInput=s.getMultilineInput=s.getInput=s.addPath=s.setSecret=s.exportVariable=s.ExitCode=void 0;const d=i(56270);const u=i(85436);const p=i(86700);const g=c(i(22037));const h=c(i(71017));const C=i(4759);var y;(function(r){r[r["Success"]=0]="Success";r[r["Failure"]=1]="Failure"})(y=s.ExitCode||(s.ExitCode={}));function exportVariable(r,s){const i=p.toCommandValue(s);process.env[r]=i;const a=process.env["GITHUB_ENV"]||"";if(a){return u.issueFileCommand("ENV",u.prepareKeyValueMessage(r,s))}d.issueCommand("set-env",{name:r},i)}s.exportVariable=exportVariable;function setSecret(r){d.issueCommand("add-mask",{},r)}s.setSecret=setSecret;function addPath(r){const s=process.env["GITHUB_PATH"]||"";if(s){u.issueFileCommand("PATH",r)}else{d.issueCommand("add-path",{},r)}process.env["PATH"]=`${r}${h.delimiter}${process.env["PATH"]}`}s.addPath=addPath;function getInput(r,s){const i=process.env[`INPUT_${r.replace(/ /g,"_").toUpperCase()}`]||"";if(s&&s.required&&!i){throw new Error(`Input required and not supplied: ${r}`)}if(s&&s.trimWhitespace===false){return i}return i.trim()}s.getInput=getInput;function getMultilineInput(r,s){const i=getInput(r,s).split("\n").filter((r=>r!==""));if(s&&s.trimWhitespace===false){return i}return i.map((r=>r.trim()))}s.getMultilineInput=getMultilineInput;function getBooleanInput(r,s){const i=["true","True","TRUE"];const a=["false","False","FALSE"];const A=getInput(r,s);if(i.includes(A))return true;if(a.includes(A))return false;throw new TypeError(`Input does not meet YAML 1.2 "Core Schema" specification: ${r}\n`+`Support boolean input list: \`true | True | TRUE | false | False | FALSE\``)}s.getBooleanInput=getBooleanInput;function setOutput(r,s){const i=process.env["GITHUB_OUTPUT"]||"";if(i){return u.issueFileCommand("OUTPUT",u.prepareKeyValueMessage(r,s))}process.stdout.write(g.EOL);d.issueCommand("set-output",{name:r},p.toCommandValue(s))}s.setOutput=setOutput;function setCommandEcho(r){d.issue("echo",r?"on":"off")}s.setCommandEcho=setCommandEcho;function setFailed(r){process.exitCode=y.Failure;error(r)}s.setFailed=setFailed;function isDebug(){return process.env["RUNNER_DEBUG"]==="1"}s.isDebug=isDebug;function debug(r){d.issueCommand("debug",{},r)}s.debug=debug;function error(r,s={}){d.issueCommand("error",p.toCommandProperties(s),r instanceof Error?r.toString():r)}s.error=error;function warning(r,s={}){d.issueCommand("warning",p.toCommandProperties(s),r instanceof Error?r.toString():r)}s.warning=warning;function notice(r,s={}){d.issueCommand("notice",p.toCommandProperties(s),r instanceof Error?r.toString():r)}s.notice=notice;function info(r){process.stdout.write(r+g.EOL)}s.info=info;function startGroup(r){d.issue("group",r)}s.startGroup=startGroup;function endGroup(){d.issue("endgroup")}s.endGroup=endGroup;function group(r,s){return l(this,void 0,void 0,(function*(){startGroup(r);let i;try{i=yield s()}finally{endGroup()}return i}))}s.group=group;function saveState(r,s){const i=process.env["GITHUB_STATE"]||"";if(i){return u.issueFileCommand("STATE",u.prepareKeyValueMessage(r,s))}d.issueCommand("save-state",{name:r},p.toCommandValue(s))}s.saveState=saveState;function getState(r){return process.env[`STATE_${r}`]||""}s.getState=getState;function getIDToken(r){return l(this,void 0,void 0,(function*(){return yield C.OidcClient.getIDToken(r)}))}s.getIDToken=getIDToken;var I=i(47613);Object.defineProperty(s,"summary",{enumerable:true,get:function(){return I.summary}});var B=i(47613);Object.defineProperty(s,"markdownSummary",{enumerable:true,get:function(){return B.markdownSummary}});var b=i(3849);Object.defineProperty(s,"toPosixPath",{enumerable:true,get:function(){return b.toPosixPath}});Object.defineProperty(s,"toWin32Path",{enumerable:true,get:function(){return b.toWin32Path}});Object.defineProperty(s,"toPlatformPath",{enumerable:true,get:function(){return b.toPlatformPath}})},85436:function(r,s,i){"use strict";var a=this&&this.__createBinding||(Object.create?function(r,s,i,a){if(a===undefined)a=i;Object.defineProperty(r,a,{enumerable:true,get:function(){return s[i]}})}:function(r,s,i,a){if(a===undefined)a=i;r[a]=s[i]});var A=this&&this.__setModuleDefault||(Object.create?function(r,s){Object.defineProperty(r,"default",{enumerable:true,value:s})}:function(r,s){r["default"]=s});var c=this&&this.__importStar||function(r){if(r&&r.__esModule)return r;var s={};if(r!=null)for(var i in r)if(i!=="default"&&Object.hasOwnProperty.call(r,i))a(s,r,i);A(s,r);return s};Object.defineProperty(s,"__esModule",{value:true});s.prepareKeyValueMessage=s.issueFileCommand=void 0;const l=c(i(57147));const d=c(i(22037));const u=i(75840);const p=i(86700);function issueFileCommand(r,s){const i=process.env[`GITHUB_${r}`];if(!i){throw new Error(`Unable to find environment variable for file command ${r}`)}if(!l.existsSync(i)){throw new Error(`Missing file at path: ${i}`)}l.appendFileSync(i,`${p.toCommandValue(s)}${d.EOL}`,{encoding:"utf8"})}s.issueFileCommand=issueFileCommand;function prepareKeyValueMessage(r,s){const i=`ghadelimiter_${u.v4()}`;const a=p.toCommandValue(s);if(r.includes(i)){throw new Error(`Unexpected input: name should not contain the delimiter "${i}"`)}if(a.includes(i)){throw new Error(`Unexpected input: value should not contain the delimiter "${i}"`)}return`${r}<<${i}${d.EOL}${a}${d.EOL}${i}`}s.prepareKeyValueMessage=prepareKeyValueMessage},4759:function(r,s,i){"use strict";var a=this&&this.__awaiter||function(r,s,i,a){function adopt(r){return r instanceof i?r:new i((function(s){s(r)}))}return new(i||(i=Promise))((function(i,A){function fulfilled(r){try{step(a.next(r))}catch(r){A(r)}}function rejected(r){try{step(a["throw"](r))}catch(r){A(r)}}function step(r){r.done?i(r.value):adopt(r.value).then(fulfilled,rejected)}step((a=a.apply(r,s||[])).next())}))};Object.defineProperty(s,"__esModule",{value:true});s.OidcClient=void 0;const A=i(69714);const c=i(27444);const l=i(15457);class OidcClient{static createHttpClient(r=true,s=10){const i={allowRetries:r,maxRetries:s};return new A.HttpClient("actions/oidc-client",[new c.BearerCredentialHandler(OidcClient.getRequestToken())],i)}static getRequestToken(){const r=process.env["ACTIONS_ID_TOKEN_REQUEST_TOKEN"];if(!r){throw new Error("Unable to get ACTIONS_ID_TOKEN_REQUEST_TOKEN env variable")}return r}static getIDTokenUrl(){const r=process.env["ACTIONS_ID_TOKEN_REQUEST_URL"];if(!r){throw new Error("Unable to get ACTIONS_ID_TOKEN_REQUEST_URL env variable")}return r}static getCall(r){var s;return a(this,void 0,void 0,(function*(){const i=OidcClient.createHttpClient();const a=yield i.getJson(r).catch((r=>{throw new Error(`Failed to get ID Token. \n \n Error Code : ${r.statusCode}\n \n Error Message: ${r.message}`)}));const A=(s=a.result)===null||s===void 0?void 0:s.value;if(!A){throw new Error("Response json body do not have ID Token field")}return A}))}static getIDToken(r){return a(this,void 0,void 0,(function*(){try{let s=OidcClient.getIDTokenUrl();if(r){const i=encodeURIComponent(r);s=`${s}&audience=${i}`}l.debug(`ID token url is ${s}`);const i=yield OidcClient.getCall(s);l.setSecret(i);return i}catch(r){throw new Error(`Error message: ${r.message}`)}}))}}s.OidcClient=OidcClient},3849:function(r,s,i){"use strict";var a=this&&this.__createBinding||(Object.create?function(r,s,i,a){if(a===undefined)a=i;Object.defineProperty(r,a,{enumerable:true,get:function(){return s[i]}})}:function(r,s,i,a){if(a===undefined)a=i;r[a]=s[i]});var A=this&&this.__setModuleDefault||(Object.create?function(r,s){Object.defineProperty(r,"default",{enumerable:true,value:s})}:function(r,s){r["default"]=s});var c=this&&this.__importStar||function(r){if(r&&r.__esModule)return r;var s={};if(r!=null)for(var i in r)if(i!=="default"&&Object.hasOwnProperty.call(r,i))a(s,r,i);A(s,r);return s};Object.defineProperty(s,"__esModule",{value:true});s.toPlatformPath=s.toWin32Path=s.toPosixPath=void 0;const l=c(i(71017));function toPosixPath(r){return r.replace(/[\\]/g,"/")}s.toPosixPath=toPosixPath;function toWin32Path(r){return r.replace(/[/]/g,"\\")}s.toWin32Path=toWin32Path;function toPlatformPath(r){return r.replace(/[/\\]/g,l.sep)}s.toPlatformPath=toPlatformPath},47613:function(r,s,i){"use strict";var a=this&&this.__awaiter||function(r,s,i,a){function adopt(r){return r instanceof i?r:new i((function(s){s(r)}))}return new(i||(i=Promise))((function(i,A){function fulfilled(r){try{step(a.next(r))}catch(r){A(r)}}function rejected(r){try{step(a["throw"](r))}catch(r){A(r)}}function step(r){r.done?i(r.value):adopt(r.value).then(fulfilled,rejected)}step((a=a.apply(r,s||[])).next())}))};Object.defineProperty(s,"__esModule",{value:true});s.summary=s.markdownSummary=s.SUMMARY_DOCS_URL=s.SUMMARY_ENV_VAR=void 0;const A=i(22037);const c=i(57147);const{access:l,appendFile:d,writeFile:u}=c.promises;s.SUMMARY_ENV_VAR="GITHUB_STEP_SUMMARY";s.SUMMARY_DOCS_URL="https://docs.github.com/actions/using-workflows/workflow-commands-for-github-actions#adding-a-job-summary";class Summary{constructor(){this._buffer=""}filePath(){return a(this,void 0,void 0,(function*(){if(this._filePath){return this._filePath}const r=process.env[s.SUMMARY_ENV_VAR];if(!r){throw new Error(`Unable to find environment variable for $${s.SUMMARY_ENV_VAR}. Check if your runtime environment supports job summaries.`)}try{yield l(r,c.constants.R_OK|c.constants.W_OK)}catch(s){throw new Error(`Unable to access summary file: '${r}'. Check if the file has correct read/write permissions.`)}this._filePath=r;return this._filePath}))}wrap(r,s,i={}){const a=Object.entries(i).map((([r,s])=>` ${r}="${s}"`)).join("");if(!s){return`<${r}${a}>`}return`<${r}${a}>${s}`}write(r){return a(this,void 0,void 0,(function*(){const s=!!(r===null||r===void 0?void 0:r.overwrite);const i=yield this.filePath();const a=s?u:d;yield a(i,this._buffer,{encoding:"utf8"});return this.emptyBuffer()}))}clear(){return a(this,void 0,void 0,(function*(){return this.emptyBuffer().write({overwrite:true})}))}stringify(){return this._buffer}isEmptyBuffer(){return this._buffer.length===0}emptyBuffer(){this._buffer="";return this}addRaw(r,s=false){this._buffer+=r;return s?this.addEOL():this}addEOL(){return this.addRaw(A.EOL)}addCodeBlock(r,s){const i=Object.assign({},s&&{lang:s});const a=this.wrap("pre",this.wrap("code",r),i);return this.addRaw(a).addEOL()}addList(r,s=false){const i=s?"ol":"ul";const a=r.map((r=>this.wrap("li",r))).join("");const A=this.wrap(i,a);return this.addRaw(A).addEOL()}addTable(r){const s=r.map((r=>{const s=r.map((r=>{if(typeof r==="string"){return this.wrap("td",r)}const{header:s,data:i,colspan:a,rowspan:A}=r;const c=s?"th":"td";const l=Object.assign(Object.assign({},a&&{colspan:a}),A&&{rowspan:A});return this.wrap(c,i,l)})).join("");return this.wrap("tr",s)})).join("");const i=this.wrap("table",s);return this.addRaw(i).addEOL()}addDetails(r,s){const i=this.wrap("details",this.wrap("summary",r)+s);return this.addRaw(i).addEOL()}addImage(r,s,i){const{width:a,height:A}=i||{};const c=Object.assign(Object.assign({},a&&{width:a}),A&&{height:A});const l=this.wrap("img",null,Object.assign({src:r,alt:s},c));return this.addRaw(l).addEOL()}addHeading(r,s){const i=`h${s}`;const a=["h1","h2","h3","h4","h5","h6"].includes(i)?i:"h1";const A=this.wrap(a,r);return this.addRaw(A).addEOL()}addSeparator(){const r=this.wrap("hr",null);return this.addRaw(r).addEOL()}addBreak(){const r=this.wrap("br",null);return this.addRaw(r).addEOL()}addQuote(r,s){const i=Object.assign({},s&&{cite:s});const a=this.wrap("blockquote",r,i);return this.addRaw(a).addEOL()}addLink(r,s){const i=this.wrap("a",r,{href:s});return this.addRaw(i).addEOL()}}const p=new Summary;s.markdownSummary=p;s.summary=p},86700:(r,s)=>{"use strict";Object.defineProperty(s,"__esModule",{value:true});s.toCommandProperties=s.toCommandValue=void 0;function toCommandValue(r){if(r===null||r===undefined){return""}else if(typeof r==="string"||r instanceof String){return r}return JSON.stringify(r)}s.toCommandValue=toCommandValue;function toCommandProperties(r){if(!Object.keys(r).length){return{}}return{title:r.title,file:r.file,line:r.startLine,endLine:r.endLine,col:r.startColumn,endColumn:r.endColumn}}s.toCommandProperties=toCommandProperties},27444:function(r,s){"use strict";var i=this&&this.__awaiter||function(r,s,i,a){function adopt(r){return r instanceof i?r:new i((function(s){s(r)}))}return new(i||(i=Promise))((function(i,A){function fulfilled(r){try{step(a.next(r))}catch(r){A(r)}}function rejected(r){try{step(a["throw"](r))}catch(r){A(r)}}function step(r){r.done?i(r.value):adopt(r.value).then(fulfilled,rejected)}step((a=a.apply(r,s||[])).next())}))};Object.defineProperty(s,"__esModule",{value:true});s.PersonalAccessTokenCredentialHandler=s.BearerCredentialHandler=s.BasicCredentialHandler=void 0;class BasicCredentialHandler{constructor(r,s){this.username=r;this.password=s}prepareRequest(r){if(!r.headers){throw Error("The request has no headers")}r.headers["Authorization"]=`Basic ${Buffer.from(`${this.username}:${this.password}`).toString("base64")}`}canHandleAuthentication(){return false}handleAuthentication(){return i(this,void 0,void 0,(function*(){throw new Error("not implemented")}))}}s.BasicCredentialHandler=BasicCredentialHandler;class BearerCredentialHandler{constructor(r){this.token=r}prepareRequest(r){if(!r.headers){throw Error("The request has no headers")}r.headers["Authorization"]=`Bearer ${this.token}`}canHandleAuthentication(){return false}handleAuthentication(){return i(this,void 0,void 0,(function*(){throw new Error("not implemented")}))}}s.BearerCredentialHandler=BearerCredentialHandler;class PersonalAccessTokenCredentialHandler{constructor(r){this.token=r}prepareRequest(r){if(!r.headers){throw Error("The request has no headers")}r.headers["Authorization"]=`Basic ${Buffer.from(`PAT:${this.token}`).toString("base64")}`}canHandleAuthentication(){return false}handleAuthentication(){return i(this,void 0,void 0,(function*(){throw new Error("not implemented")}))}}s.PersonalAccessTokenCredentialHandler=PersonalAccessTokenCredentialHandler},69714:function(r,s,i){"use strict";var a=this&&this.__createBinding||(Object.create?function(r,s,i,a){if(a===undefined)a=i;var A=Object.getOwnPropertyDescriptor(s,i);if(!A||("get"in A?!s.__esModule:A.writable||A.configurable)){A={enumerable:true,get:function(){return s[i]}}}Object.defineProperty(r,a,A)}:function(r,s,i,a){if(a===undefined)a=i;r[a]=s[i]});var A=this&&this.__setModuleDefault||(Object.create?function(r,s){Object.defineProperty(r,"default",{enumerable:true,value:s})}:function(r,s){r["default"]=s});var c=this&&this.__importStar||function(r){if(r&&r.__esModule)return r;var s={};if(r!=null)for(var i in r)if(i!=="default"&&Object.prototype.hasOwnProperty.call(r,i))a(s,r,i);A(s,r);return s};var l=this&&this.__awaiter||function(r,s,i,a){function adopt(r){return r instanceof i?r:new i((function(s){s(r)}))}return new(i||(i=Promise))((function(i,A){function fulfilled(r){try{step(a.next(r))}catch(r){A(r)}}function rejected(r){try{step(a["throw"](r))}catch(r){A(r)}}function step(r){r.done?i(r.value):adopt(r.value).then(fulfilled,rejected)}step((a=a.apply(r,s||[])).next())}))};Object.defineProperty(s,"__esModule",{value:true});s.HttpClient=s.isHttps=s.HttpClientResponse=s.HttpClientError=s.getProxyUrl=s.MediaTypes=s.Headers=s.HttpCodes=void 0;const d=c(i(13685));const u=c(i(95687));const p=c(i(78649));const g=c(i(74294));const h=i(41773);var C;(function(r){r[r["OK"]=200]="OK";r[r["MultipleChoices"]=300]="MultipleChoices";r[r["MovedPermanently"]=301]="MovedPermanently";r[r["ResourceMoved"]=302]="ResourceMoved";r[r["SeeOther"]=303]="SeeOther";r[r["NotModified"]=304]="NotModified";r[r["UseProxy"]=305]="UseProxy";r[r["SwitchProxy"]=306]="SwitchProxy";r[r["TemporaryRedirect"]=307]="TemporaryRedirect";r[r["PermanentRedirect"]=308]="PermanentRedirect";r[r["BadRequest"]=400]="BadRequest";r[r["Unauthorized"]=401]="Unauthorized";r[r["PaymentRequired"]=402]="PaymentRequired";r[r["Forbidden"]=403]="Forbidden";r[r["NotFound"]=404]="NotFound";r[r["MethodNotAllowed"]=405]="MethodNotAllowed";r[r["NotAcceptable"]=406]="NotAcceptable";r[r["ProxyAuthenticationRequired"]=407]="ProxyAuthenticationRequired";r[r["RequestTimeout"]=408]="RequestTimeout";r[r["Conflict"]=409]="Conflict";r[r["Gone"]=410]="Gone";r[r["TooManyRequests"]=429]="TooManyRequests";r[r["InternalServerError"]=500]="InternalServerError";r[r["NotImplemented"]=501]="NotImplemented";r[r["BadGateway"]=502]="BadGateway";r[r["ServiceUnavailable"]=503]="ServiceUnavailable";r[r["GatewayTimeout"]=504]="GatewayTimeout"})(C||(s.HttpCodes=C={}));var y;(function(r){r["Accept"]="accept";r["ContentType"]="content-type"})(y||(s.Headers=y={}));var I;(function(r){r["ApplicationJson"]="application/json"})(I||(s.MediaTypes=I={}));function getProxyUrl(r){const s=p.getProxyUrl(new URL(r));return s?s.href:""}s.getProxyUrl=getProxyUrl;const B=[C.MovedPermanently,C.ResourceMoved,C.SeeOther,C.TemporaryRedirect,C.PermanentRedirect];const b=[C.BadGateway,C.ServiceUnavailable,C.GatewayTimeout];const Q=["OPTIONS","GET","DELETE","HEAD"];const w=10;const v=5;class HttpClientError extends Error{constructor(r,s){super(r);this.name="HttpClientError";this.statusCode=s;Object.setPrototypeOf(this,HttpClientError.prototype)}}s.HttpClientError=HttpClientError;class HttpClientResponse{constructor(r){this.message=r}readBody(){return l(this,void 0,void 0,(function*(){return new Promise((r=>l(this,void 0,void 0,(function*(){let s=Buffer.alloc(0);this.message.on("data",(r=>{s=Buffer.concat([s,r])}));this.message.on("end",(()=>{r(s.toString())}))}))))}))}readBodyBuffer(){return l(this,void 0,void 0,(function*(){return new Promise((r=>l(this,void 0,void 0,(function*(){const s=[];this.message.on("data",(r=>{s.push(r)}));this.message.on("end",(()=>{r(Buffer.concat(s))}))}))))}))}}s.HttpClientResponse=HttpClientResponse;function isHttps(r){const s=new URL(r);return s.protocol==="https:"}s.isHttps=isHttps;class HttpClient{constructor(r,s,i){this._ignoreSslError=false;this._allowRedirects=true;this._allowRedirectDowngrade=false;this._maxRedirects=50;this._allowRetries=false;this._maxRetries=1;this._keepAlive=false;this._disposed=false;this.userAgent=r;this.handlers=s||[];this.requestOptions=i;if(i){if(i.ignoreSslError!=null){this._ignoreSslError=i.ignoreSslError}this._socketTimeout=i.socketTimeout;if(i.allowRedirects!=null){this._allowRedirects=i.allowRedirects}if(i.allowRedirectDowngrade!=null){this._allowRedirectDowngrade=i.allowRedirectDowngrade}if(i.maxRedirects!=null){this._maxRedirects=Math.max(i.maxRedirects,0)}if(i.keepAlive!=null){this._keepAlive=i.keepAlive}if(i.allowRetries!=null){this._allowRetries=i.allowRetries}if(i.maxRetries!=null){this._maxRetries=i.maxRetries}}}options(r,s){return l(this,void 0,void 0,(function*(){return this.request("OPTIONS",r,null,s||{})}))}get(r,s){return l(this,void 0,void 0,(function*(){return this.request("GET",r,null,s||{})}))}del(r,s){return l(this,void 0,void 0,(function*(){return this.request("DELETE",r,null,s||{})}))}post(r,s,i){return l(this,void 0,void 0,(function*(){return this.request("POST",r,s,i||{})}))}patch(r,s,i){return l(this,void 0,void 0,(function*(){return this.request("PATCH",r,s,i||{})}))}put(r,s,i){return l(this,void 0,void 0,(function*(){return this.request("PUT",r,s,i||{})}))}head(r,s){return l(this,void 0,void 0,(function*(){return this.request("HEAD",r,null,s||{})}))}sendStream(r,s,i,a){return l(this,void 0,void 0,(function*(){return this.request(r,s,i,a)}))}getJson(r,s={}){return l(this,void 0,void 0,(function*(){s[y.Accept]=this._getExistingOrDefaultHeader(s,y.Accept,I.ApplicationJson);const i=yield this.get(r,s);return this._processResponse(i,this.requestOptions)}))}postJson(r,s,i={}){return l(this,void 0,void 0,(function*(){const a=JSON.stringify(s,null,2);i[y.Accept]=this._getExistingOrDefaultHeader(i,y.Accept,I.ApplicationJson);i[y.ContentType]=this._getExistingOrDefaultHeader(i,y.ContentType,I.ApplicationJson);const A=yield this.post(r,a,i);return this._processResponse(A,this.requestOptions)}))}putJson(r,s,i={}){return l(this,void 0,void 0,(function*(){const a=JSON.stringify(s,null,2);i[y.Accept]=this._getExistingOrDefaultHeader(i,y.Accept,I.ApplicationJson);i[y.ContentType]=this._getExistingOrDefaultHeader(i,y.ContentType,I.ApplicationJson);const A=yield this.put(r,a,i);return this._processResponse(A,this.requestOptions)}))}patchJson(r,s,i={}){return l(this,void 0,void 0,(function*(){const a=JSON.stringify(s,null,2);i[y.Accept]=this._getExistingOrDefaultHeader(i,y.Accept,I.ApplicationJson);i[y.ContentType]=this._getExistingOrDefaultHeader(i,y.ContentType,I.ApplicationJson);const A=yield this.patch(r,a,i);return this._processResponse(A,this.requestOptions)}))}request(r,s,i,a){return l(this,void 0,void 0,(function*(){if(this._disposed){throw new Error("Client has already been disposed.")}const A=new URL(s);let c=this._prepareRequest(r,A,a);const l=this._allowRetries&&Q.includes(r)?this._maxRetries+1:1;let d=0;let u;do{u=yield this.requestRaw(c,i);if(u&&u.message&&u.message.statusCode===C.Unauthorized){let r;for(const s of this.handlers){if(s.canHandleAuthentication(u)){r=s;break}}if(r){return r.handleAuthentication(this,c,i)}else{return u}}let s=this._maxRedirects;while(u.message.statusCode&&B.includes(u.message.statusCode)&&this._allowRedirects&&s>0){const l=u.message.headers["location"];if(!l){break}const d=new URL(l);if(A.protocol==="https:"&&A.protocol!==d.protocol&&!this._allowRedirectDowngrade){throw new Error("Redirect from HTTPS to HTTP protocol. This downgrade is not allowed for security reasons. If you want to allow this behavior, set the allowRedirectDowngrade option to true.")}yield u.readBody();if(d.hostname!==A.hostname){for(const r in a){if(r.toLowerCase()==="authorization"){delete a[r]}}}c=this._prepareRequest(r,d,a);u=yield this.requestRaw(c,i);s--}if(!u.message.statusCode||!b.includes(u.message.statusCode)){return u}d+=1;if(d{function callbackForResult(r,s){if(r){a(r)}else if(!s){a(new Error("Unknown error"))}else{i(s)}}this.requestRawWithCallback(r,s,callbackForResult)}))}))}requestRawWithCallback(r,s,i){if(typeof s==="string"){if(!r.options.headers){r.options.headers={}}r.options.headers["Content-Length"]=Buffer.byteLength(s,"utf8")}let a=false;function handleResult(r,s){if(!a){a=true;i(r,s)}}const A=r.httpModule.request(r.options,(r=>{const s=new HttpClientResponse(r);handleResult(undefined,s)}));let c;A.on("socket",(r=>{c=r}));A.setTimeout(this._socketTimeout||3*6e4,(()=>{if(c){c.end()}handleResult(new Error(`Request timeout: ${r.options.path}`))}));A.on("error",(function(r){handleResult(r)}));if(s&&typeof s==="string"){A.write(s,"utf8")}if(s&&typeof s!=="string"){s.on("close",(function(){A.end()}));s.pipe(A)}else{A.end()}}getAgent(r){const s=new URL(r);return this._getAgent(s)}getAgentDispatcher(r){const s=new URL(r);const i=p.getProxyUrl(s);const a=i&&i.hostname;if(!a){return}return this._getProxyAgentDispatcher(s,i)}_prepareRequest(r,s,i){const a={};a.parsedUrl=s;const A=a.parsedUrl.protocol==="https:";a.httpModule=A?u:d;const c=A?443:80;a.options={};a.options.host=a.parsedUrl.hostname;a.options.port=a.parsedUrl.port?parseInt(a.parsedUrl.port):c;a.options.path=(a.parsedUrl.pathname||"")+(a.parsedUrl.search||"");a.options.method=r;a.options.headers=this._mergeHeaders(i);if(this.userAgent!=null){a.options.headers["user-agent"]=this.userAgent}a.options.agent=this._getAgent(a.parsedUrl);if(this.handlers){for(const r of this.handlers){r.prepareRequest(a.options)}}return a}_mergeHeaders(r){if(this.requestOptions&&this.requestOptions.headers){return Object.assign({},lowercaseKeys(this.requestOptions.headers),lowercaseKeys(r||{}))}return lowercaseKeys(r||{})}_getExistingOrDefaultHeader(r,s,i){let a;if(this.requestOptions&&this.requestOptions.headers){a=lowercaseKeys(this.requestOptions.headers)[s]}return r[s]||a||i}_getAgent(r){let s;const i=p.getProxyUrl(r);const a=i&&i.hostname;if(this._keepAlive&&a){s=this._proxyAgent}if(this._keepAlive&&!a){s=this._agent}if(s){return s}const A=r.protocol==="https:";let c=100;if(this.requestOptions){c=this.requestOptions.maxSockets||d.globalAgent.maxSockets}if(i&&i.hostname){const r={maxSockets:c,keepAlive:this._keepAlive,proxy:Object.assign(Object.assign({},(i.username||i.password)&&{proxyAuth:`${i.username}:${i.password}`}),{host:i.hostname,port:i.port})};let a;const l=i.protocol==="https:";if(A){a=l?g.httpsOverHttps:g.httpsOverHttp}else{a=l?g.httpOverHttps:g.httpOverHttp}s=a(r);this._proxyAgent=s}if(this._keepAlive&&!s){const r={keepAlive:this._keepAlive,maxSockets:c};s=A?new u.Agent(r):new d.Agent(r);this._agent=s}if(!s){s=A?u.globalAgent:d.globalAgent}if(A&&this._ignoreSslError){s.options=Object.assign(s.options||{},{rejectUnauthorized:false})}return s}_getProxyAgentDispatcher(r,s){let i;if(this._keepAlive){i=this._proxyAgentDispatcher}if(i){return i}const a=r.protocol==="https:";i=new h.ProxyAgent(Object.assign({uri:s.href,pipelining:!this._keepAlive?0:1},(s.username||s.password)&&{token:`${s.username}:${s.password}`}));this._proxyAgentDispatcher=i;if(a&&this._ignoreSslError){i.options=Object.assign(i.options.requestTls||{},{rejectUnauthorized:false})}return i}_performExponentialBackoff(r){return l(this,void 0,void 0,(function*(){r=Math.min(w,r);const s=v*Math.pow(2,r);return new Promise((r=>setTimeout((()=>r()),s)))}))}_processResponse(r,s){return l(this,void 0,void 0,(function*(){return new Promise(((i,a)=>l(this,void 0,void 0,(function*(){const A=r.message.statusCode||0;const c={statusCode:A,result:null,headers:{}};if(A===C.NotFound){i(c)}function dateTimeDeserializer(r,s){if(typeof s==="string"){const r=new Date(s);if(!isNaN(r.valueOf())){return r}}return s}let l;let d;try{d=yield r.readBody();if(d&&d.length>0){if(s&&s.deserializeDates){l=JSON.parse(d,dateTimeDeserializer)}else{l=JSON.parse(d)}c.result=l}c.headers=r.message.headers}catch(r){}if(A>299){let r;if(l&&l.message){r=l.message}else if(d&&d.length>0){r=d}else{r=`Failed request: (${A})`}const s=new HttpClientError(r,A);s.result=c.result;a(s)}else{i(c)}}))))}))}}s.HttpClient=HttpClient;const lowercaseKeys=r=>Object.keys(r).reduce(((s,i)=>(s[i.toLowerCase()]=r[i],s)),{})},78649:(r,s)=>{"use strict";Object.defineProperty(s,"__esModule",{value:true});s.checkBypass=s.getProxyUrl=void 0;function getProxyUrl(r){const s=r.protocol==="https:";if(checkBypass(r)){return undefined}const i=(()=>{if(s){return process.env["https_proxy"]||process.env["HTTPS_PROXY"]}else{return process.env["http_proxy"]||process.env["HTTP_PROXY"]}})();if(i){try{return new URL(i)}catch(r){if(!i.startsWith("http://")&&!i.startsWith("https://"))return new URL(`http://${i}`)}}else{return undefined}}s.getProxyUrl=getProxyUrl;function checkBypass(r){if(!r.hostname){return false}const s=r.hostname;if(isLoopbackAddress(s)){return true}const i=process.env["no_proxy"]||process.env["NO_PROXY"]||"";if(!i){return false}let a;if(r.port){a=Number(r.port)}else if(r.protocol==="http:"){a=80}else if(r.protocol==="https:"){a=443}const A=[r.hostname.toUpperCase()];if(typeof a==="number"){A.push(`${A[0]}:${a}`)}for(const r of i.split(",").map((r=>r.trim().toUpperCase())).filter((r=>r))){if(r==="*"||A.some((s=>s===r||s.endsWith(`.${r}`)||r.startsWith(".")&&s.endsWith(`${r}`)))){return true}}return false}s.checkBypass=checkBypass;function isLoopbackAddress(r){const s=r.toLowerCase();return s==="localhost"||s.startsWith("127.")||s.startsWith("[::1]")||s.startsWith("[0:0:0:0:0:0:0:1]")}},5788:function(r,s){"use strict";var i=this&&this.__awaiter||function(r,s,i,a){function adopt(r){return r instanceof i?r:new i((function(s){s(r)}))}return new(i||(i=Promise))((function(i,A){function fulfilled(r){try{step(a.next(r))}catch(r){A(r)}}function rejected(r){try{step(a["throw"](r))}catch(r){A(r)}}function step(r){r.done?i(r.value):adopt(r.value).then(fulfilled,rejected)}step((a=a.apply(r,s||[])).next())}))};Object.defineProperty(s,"__esModule",{value:true});s.PersonalAccessTokenCredentialHandler=s.BearerCredentialHandler=s.BasicCredentialHandler=void 0;class BasicCredentialHandler{constructor(r,s){this.username=r;this.password=s}prepareRequest(r){if(!r.headers){throw Error("The request has no headers")}r.headers["Authorization"]=`Basic ${Buffer.from(`${this.username}:${this.password}`).toString("base64")}`}canHandleAuthentication(){return false}handleAuthentication(){return i(this,void 0,void 0,(function*(){throw new Error("not implemented")}))}}s.BasicCredentialHandler=BasicCredentialHandler;class BearerCredentialHandler{constructor(r){this.token=r}prepareRequest(r){if(!r.headers){throw Error("The request has no headers")}r.headers["Authorization"]=`Bearer ${this.token}`}canHandleAuthentication(){return false}handleAuthentication(){return i(this,void 0,void 0,(function*(){throw new Error("not implemented")}))}}s.BearerCredentialHandler=BearerCredentialHandler;class PersonalAccessTokenCredentialHandler{constructor(r){this.token=r}prepareRequest(r){if(!r.headers){throw Error("The request has no headers")}r.headers["Authorization"]=`Basic ${Buffer.from(`PAT:${this.token}`).toString("base64")}`}canHandleAuthentication(){return false}handleAuthentication(){return i(this,void 0,void 0,(function*(){throw new Error("not implemented")}))}}s.PersonalAccessTokenCredentialHandler=PersonalAccessTokenCredentialHandler},58464:function(r,s,i){"use strict";var a=this&&this.__createBinding||(Object.create?function(r,s,i,a){if(a===undefined)a=i;var A=Object.getOwnPropertyDescriptor(s,i);if(!A||("get"in A?!s.__esModule:A.writable||A.configurable)){A={enumerable:true,get:function(){return s[i]}}}Object.defineProperty(r,a,A)}:function(r,s,i,a){if(a===undefined)a=i;r[a]=s[i]});var A=this&&this.__setModuleDefault||(Object.create?function(r,s){Object.defineProperty(r,"default",{enumerable:true,value:s})}:function(r,s){r["default"]=s});var c=this&&this.__importStar||function(r){if(r&&r.__esModule)return r;var s={};if(r!=null)for(var i in r)if(i!=="default"&&Object.prototype.hasOwnProperty.call(r,i))a(s,r,i);A(s,r);return s};var l=this&&this.__awaiter||function(r,s,i,a){function adopt(r){return r instanceof i?r:new i((function(s){s(r)}))}return new(i||(i=Promise))((function(i,A){function fulfilled(r){try{step(a.next(r))}catch(r){A(r)}}function rejected(r){try{step(a["throw"](r))}catch(r){A(r)}}function step(r){r.done?i(r.value):adopt(r.value).then(fulfilled,rejected)}step((a=a.apply(r,s||[])).next())}))};Object.defineProperty(s,"__esModule",{value:true});s.HttpClient=s.isHttps=s.HttpClientResponse=s.HttpClientError=s.getProxyUrl=s.MediaTypes=s.Headers=s.HttpCodes=void 0;const d=c(i(13685));const u=c(i(95687));const p=c(i(7377));const g=c(i(74294));const h=i(41773);var C;(function(r){r[r["OK"]=200]="OK";r[r["MultipleChoices"]=300]="MultipleChoices";r[r["MovedPermanently"]=301]="MovedPermanently";r[r["ResourceMoved"]=302]="ResourceMoved";r[r["SeeOther"]=303]="SeeOther";r[r["NotModified"]=304]="NotModified";r[r["UseProxy"]=305]="UseProxy";r[r["SwitchProxy"]=306]="SwitchProxy";r[r["TemporaryRedirect"]=307]="TemporaryRedirect";r[r["PermanentRedirect"]=308]="PermanentRedirect";r[r["BadRequest"]=400]="BadRequest";r[r["Unauthorized"]=401]="Unauthorized";r[r["PaymentRequired"]=402]="PaymentRequired";r[r["Forbidden"]=403]="Forbidden";r[r["NotFound"]=404]="NotFound";r[r["MethodNotAllowed"]=405]="MethodNotAllowed";r[r["NotAcceptable"]=406]="NotAcceptable";r[r["ProxyAuthenticationRequired"]=407]="ProxyAuthenticationRequired";r[r["RequestTimeout"]=408]="RequestTimeout";r[r["Conflict"]=409]="Conflict";r[r["Gone"]=410]="Gone";r[r["TooManyRequests"]=429]="TooManyRequests";r[r["InternalServerError"]=500]="InternalServerError";r[r["NotImplemented"]=501]="NotImplemented";r[r["BadGateway"]=502]="BadGateway";r[r["ServiceUnavailable"]=503]="ServiceUnavailable";r[r["GatewayTimeout"]=504]="GatewayTimeout"})(C||(s.HttpCodes=C={}));var y;(function(r){r["Accept"]="accept";r["ContentType"]="content-type"})(y||(s.Headers=y={}));var I;(function(r){r["ApplicationJson"]="application/json"})(I||(s.MediaTypes=I={}));function getProxyUrl(r){const s=p.getProxyUrl(new URL(r));return s?s.href:""}s.getProxyUrl=getProxyUrl;const B=[C.MovedPermanently,C.ResourceMoved,C.SeeOther,C.TemporaryRedirect,C.PermanentRedirect];const b=[C.BadGateway,C.ServiceUnavailable,C.GatewayTimeout];const Q=["OPTIONS","GET","DELETE","HEAD"];const w=10;const v=5;class HttpClientError extends Error{constructor(r,s){super(r);this.name="HttpClientError";this.statusCode=s;Object.setPrototypeOf(this,HttpClientError.prototype)}}s.HttpClientError=HttpClientError;class HttpClientResponse{constructor(r){this.message=r}readBody(){return l(this,void 0,void 0,(function*(){return new Promise((r=>l(this,void 0,void 0,(function*(){let s=Buffer.alloc(0);this.message.on("data",(r=>{s=Buffer.concat([s,r])}));this.message.on("end",(()=>{r(s.toString())}))}))))}))}readBodyBuffer(){return l(this,void 0,void 0,(function*(){return new Promise((r=>l(this,void 0,void 0,(function*(){const s=[];this.message.on("data",(r=>{s.push(r)}));this.message.on("end",(()=>{r(Buffer.concat(s))}))}))))}))}}s.HttpClientResponse=HttpClientResponse;function isHttps(r){const s=new URL(r);return s.protocol==="https:"}s.isHttps=isHttps;class HttpClient{constructor(r,s,i){this._ignoreSslError=false;this._allowRedirects=true;this._allowRedirectDowngrade=false;this._maxRedirects=50;this._allowRetries=false;this._maxRetries=1;this._keepAlive=false;this._disposed=false;this.userAgent=r;this.handlers=s||[];this.requestOptions=i;if(i){if(i.ignoreSslError!=null){this._ignoreSslError=i.ignoreSslError}this._socketTimeout=i.socketTimeout;if(i.allowRedirects!=null){this._allowRedirects=i.allowRedirects}if(i.allowRedirectDowngrade!=null){this._allowRedirectDowngrade=i.allowRedirectDowngrade}if(i.maxRedirects!=null){this._maxRedirects=Math.max(i.maxRedirects,0)}if(i.keepAlive!=null){this._keepAlive=i.keepAlive}if(i.allowRetries!=null){this._allowRetries=i.allowRetries}if(i.maxRetries!=null){this._maxRetries=i.maxRetries}}}options(r,s){return l(this,void 0,void 0,(function*(){return this.request("OPTIONS",r,null,s||{})}))}get(r,s){return l(this,void 0,void 0,(function*(){return this.request("GET",r,null,s||{})}))}del(r,s){return l(this,void 0,void 0,(function*(){return this.request("DELETE",r,null,s||{})}))}post(r,s,i){return l(this,void 0,void 0,(function*(){return this.request("POST",r,s,i||{})}))}patch(r,s,i){return l(this,void 0,void 0,(function*(){return this.request("PATCH",r,s,i||{})}))}put(r,s,i){return l(this,void 0,void 0,(function*(){return this.request("PUT",r,s,i||{})}))}head(r,s){return l(this,void 0,void 0,(function*(){return this.request("HEAD",r,null,s||{})}))}sendStream(r,s,i,a){return l(this,void 0,void 0,(function*(){return this.request(r,s,i,a)}))}getJson(r,s={}){return l(this,void 0,void 0,(function*(){s[y.Accept]=this._getExistingOrDefaultHeader(s,y.Accept,I.ApplicationJson);const i=yield this.get(r,s);return this._processResponse(i,this.requestOptions)}))}postJson(r,s,i={}){return l(this,void 0,void 0,(function*(){const a=JSON.stringify(s,null,2);i[y.Accept]=this._getExistingOrDefaultHeader(i,y.Accept,I.ApplicationJson);i[y.ContentType]=this._getExistingOrDefaultHeader(i,y.ContentType,I.ApplicationJson);const A=yield this.post(r,a,i);return this._processResponse(A,this.requestOptions)}))}putJson(r,s,i={}){return l(this,void 0,void 0,(function*(){const a=JSON.stringify(s,null,2);i[y.Accept]=this._getExistingOrDefaultHeader(i,y.Accept,I.ApplicationJson);i[y.ContentType]=this._getExistingOrDefaultHeader(i,y.ContentType,I.ApplicationJson);const A=yield this.put(r,a,i);return this._processResponse(A,this.requestOptions)}))}patchJson(r,s,i={}){return l(this,void 0,void 0,(function*(){const a=JSON.stringify(s,null,2);i[y.Accept]=this._getExistingOrDefaultHeader(i,y.Accept,I.ApplicationJson);i[y.ContentType]=this._getExistingOrDefaultHeader(i,y.ContentType,I.ApplicationJson);const A=yield this.patch(r,a,i);return this._processResponse(A,this.requestOptions)}))}request(r,s,i,a){return l(this,void 0,void 0,(function*(){if(this._disposed){throw new Error("Client has already been disposed.")}const A=new URL(s);let c=this._prepareRequest(r,A,a);const l=this._allowRetries&&Q.includes(r)?this._maxRetries+1:1;let d=0;let u;do{u=yield this.requestRaw(c,i);if(u&&u.message&&u.message.statusCode===C.Unauthorized){let r;for(const s of this.handlers){if(s.canHandleAuthentication(u)){r=s;break}}if(r){return r.handleAuthentication(this,c,i)}else{return u}}let s=this._maxRedirects;while(u.message.statusCode&&B.includes(u.message.statusCode)&&this._allowRedirects&&s>0){const l=u.message.headers["location"];if(!l){break}const d=new URL(l);if(A.protocol==="https:"&&A.protocol!==d.protocol&&!this._allowRedirectDowngrade){throw new Error("Redirect from HTTPS to HTTP protocol. This downgrade is not allowed for security reasons. If you want to allow this behavior, set the allowRedirectDowngrade option to true.")}yield u.readBody();if(d.hostname!==A.hostname){for(const r in a){if(r.toLowerCase()==="authorization"){delete a[r]}}}c=this._prepareRequest(r,d,a);u=yield this.requestRaw(c,i);s--}if(!u.message.statusCode||!b.includes(u.message.statusCode)){return u}d+=1;if(d{function callbackForResult(r,s){if(r){a(r)}else if(!s){a(new Error("Unknown error"))}else{i(s)}}this.requestRawWithCallback(r,s,callbackForResult)}))}))}requestRawWithCallback(r,s,i){if(typeof s==="string"){if(!r.options.headers){r.options.headers={}}r.options.headers["Content-Length"]=Buffer.byteLength(s,"utf8")}let a=false;function handleResult(r,s){if(!a){a=true;i(r,s)}}const A=r.httpModule.request(r.options,(r=>{const s=new HttpClientResponse(r);handleResult(undefined,s)}));let c;A.on("socket",(r=>{c=r}));A.setTimeout(this._socketTimeout||3*6e4,(()=>{if(c){c.end()}handleResult(new Error(`Request timeout: ${r.options.path}`))}));A.on("error",(function(r){handleResult(r)}));if(s&&typeof s==="string"){A.write(s,"utf8")}if(s&&typeof s!=="string"){s.on("close",(function(){A.end()}));s.pipe(A)}else{A.end()}}getAgent(r){const s=new URL(r);return this._getAgent(s)}getAgentDispatcher(r){const s=new URL(r);const i=p.getProxyUrl(s);const a=i&&i.hostname;if(!a){return}return this._getProxyAgentDispatcher(s,i)}_prepareRequest(r,s,i){const a={};a.parsedUrl=s;const A=a.parsedUrl.protocol==="https:";a.httpModule=A?u:d;const c=A?443:80;a.options={};a.options.host=a.parsedUrl.hostname;a.options.port=a.parsedUrl.port?parseInt(a.parsedUrl.port):c;a.options.path=(a.parsedUrl.pathname||"")+(a.parsedUrl.search||"");a.options.method=r;a.options.headers=this._mergeHeaders(i);if(this.userAgent!=null){a.options.headers["user-agent"]=this.userAgent}a.options.agent=this._getAgent(a.parsedUrl);if(this.handlers){for(const r of this.handlers){r.prepareRequest(a.options)}}return a}_mergeHeaders(r){if(this.requestOptions&&this.requestOptions.headers){return Object.assign({},lowercaseKeys(this.requestOptions.headers),lowercaseKeys(r||{}))}return lowercaseKeys(r||{})}_getExistingOrDefaultHeader(r,s,i){let a;if(this.requestOptions&&this.requestOptions.headers){a=lowercaseKeys(this.requestOptions.headers)[s]}return r[s]||a||i}_getAgent(r){let s;const i=p.getProxyUrl(r);const a=i&&i.hostname;if(this._keepAlive&&a){s=this._proxyAgent}if(!a){s=this._agent}if(s){return s}const A=r.protocol==="https:";let c=100;if(this.requestOptions){c=this.requestOptions.maxSockets||d.globalAgent.maxSockets}if(i&&i.hostname){const r={maxSockets:c,keepAlive:this._keepAlive,proxy:Object.assign(Object.assign({},(i.username||i.password)&&{proxyAuth:`${i.username}:${i.password}`}),{host:i.hostname,port:i.port})};let a;const l=i.protocol==="https:";if(A){a=l?g.httpsOverHttps:g.httpsOverHttp}else{a=l?g.httpOverHttps:g.httpOverHttp}s=a(r);this._proxyAgent=s}if(!s){const r={keepAlive:this._keepAlive,maxSockets:c};s=A?new u.Agent(r):new d.Agent(r);this._agent=s}if(A&&this._ignoreSslError){s.options=Object.assign(s.options||{},{rejectUnauthorized:false})}return s}_getProxyAgentDispatcher(r,s){let i;if(this._keepAlive){i=this._proxyAgentDispatcher}if(i){return i}const a=r.protocol==="https:";i=new h.ProxyAgent(Object.assign({uri:s.href,pipelining:!this._keepAlive?0:1},(s.username||s.password)&&{token:`${s.username}:${s.password}`}));this._proxyAgentDispatcher=i;if(a&&this._ignoreSslError){i.options=Object.assign(i.options.requestTls||{},{rejectUnauthorized:false})}return i}_performExponentialBackoff(r){return l(this,void 0,void 0,(function*(){r=Math.min(w,r);const s=v*Math.pow(2,r);return new Promise((r=>setTimeout((()=>r()),s)))}))}_processResponse(r,s){return l(this,void 0,void 0,(function*(){return new Promise(((i,a)=>l(this,void 0,void 0,(function*(){const A=r.message.statusCode||0;const c={statusCode:A,result:null,headers:{}};if(A===C.NotFound){i(c)}function dateTimeDeserializer(r,s){if(typeof s==="string"){const r=new Date(s);if(!isNaN(r.valueOf())){return r}}return s}let l;let d;try{d=yield r.readBody();if(d&&d.length>0){if(s&&s.deserializeDates){l=JSON.parse(d,dateTimeDeserializer)}else{l=JSON.parse(d)}c.result=l}c.headers=r.message.headers}catch(r){}if(A>299){let r;if(l&&l.message){r=l.message}else if(d&&d.length>0){r=d}else{r=`Failed request: (${A})`}const s=new HttpClientError(r,A);s.result=c.result;a(s)}else{i(c)}}))))}))}}s.HttpClient=HttpClient;const lowercaseKeys=r=>Object.keys(r).reduce(((s,i)=>(s[i.toLowerCase()]=r[i],s)),{})},7377:(r,s)=>{"use strict";Object.defineProperty(s,"__esModule",{value:true});s.checkBypass=s.getProxyUrl=void 0;function getProxyUrl(r){const s=r.protocol==="https:";if(checkBypass(r)){return undefined}const i=(()=>{if(s){return process.env["https_proxy"]||process.env["HTTPS_PROXY"]}else{return process.env["http_proxy"]||process.env["HTTP_PROXY"]}})();if(i){try{return new URL(i)}catch(r){if(!i.startsWith("http://")&&!i.startsWith("https://"))return new URL(`http://${i}`)}}else{return undefined}}s.getProxyUrl=getProxyUrl;function checkBypass(r){if(!r.hostname){return false}const s=r.hostname;if(isLoopbackAddress(s)){return true}const i=process.env["no_proxy"]||process.env["NO_PROXY"]||"";if(!i){return false}let a;if(r.port){a=Number(r.port)}else if(r.protocol==="http:"){a=80}else if(r.protocol==="https:"){a=443}const A=[r.hostname.toUpperCase()];if(typeof a==="number"){A.push(`${A[0]}:${a}`)}for(const r of i.split(",").map((r=>r.trim().toUpperCase())).filter((r=>r))){if(r==="*"||A.some((s=>s===r||s.endsWith(`.${r}`)||r.startsWith(".")&&s.endsWith(`${r}`)))){return true}}return false}s.checkBypass=checkBypass;function isLoopbackAddress(r){const s=r.toLowerCase();return s==="localhost"||s.startsWith("127.")||s.startsWith("[::1]")||s.startsWith("[0:0:0:0:0:0:0:1]")}},27799:function(r,s,i){"use strict";var a=this&&this.__createBinding||(Object.create?function(r,s,i,a){if(a===undefined)a=i;var A=Object.getOwnPropertyDescriptor(s,i);if(!A||("get"in A?!s.__esModule:A.writable||A.configurable)){A={enumerable:true,get:function(){return s[i]}}}Object.defineProperty(r,a,A)}:function(r,s,i,a){if(a===undefined)a=i;r[a]=s[i]});var A=this&&this.__setModuleDefault||(Object.create?function(r,s){Object.defineProperty(r,"default",{enumerable:true,value:s})}:function(r,s){r["default"]=s});var c=this&&this.__importStar||function(r){if(r&&r.__esModule)return r;var s={};if(r!=null)for(var i in r)if(i!=="default"&&Object.prototype.hasOwnProperty.call(r,i))a(s,r,i);A(s,r);return s};var l=this&&this.__awaiter||function(r,s,i,a){function adopt(r){return r instanceof i?r:new i((function(s){s(r)}))}return new(i||(i=Promise))((function(i,A){function fulfilled(r){try{step(a.next(r))}catch(r){A(r)}}function rejected(r){try{step(a["throw"](r))}catch(r){A(r)}}function step(r){r.done?i(r.value):adopt(r.value).then(fulfilled,rejected)}step((a=a.apply(r,s||[])).next())}))};Object.defineProperty(s,"__esModule",{value:true});s.saveCache=s.restoreCache=s.isFeatureAvailable=s.ReserveCacheError=s.ValidationError=void 0;const d=c(i(42186));const u=c(i(71017));const p=c(i(91518));const g=c(i(98245));const h=c(i(82502));const C=i(35147);const y=i(56490);const I=i(88840);class ValidationError extends Error{constructor(r){super(r);this.name="ValidationError";Object.setPrototypeOf(this,ValidationError.prototype)}}s.ValidationError=ValidationError;class ReserveCacheError extends Error{constructor(r){super(r);this.name="ReserveCacheError";Object.setPrototypeOf(this,ReserveCacheError.prototype)}}s.ReserveCacheError=ReserveCacheError;function checkPaths(r){if(!r||r.length===0){throw new ValidationError(`Path Validation Error: At least one directory or file path is required`)}}function checkKey(r){if(r.length>512){throw new ValidationError(`Key Validation Error: ${r} cannot be larger than 512 characters.`)}const s=/^[^,]*$/;if(!s.test(r)){throw new ValidationError(`Key Validation Error: ${r} cannot contain commas.`)}}function isFeatureAvailable(){return!!process.env["ACTIONS_CACHE_URL"]}s.isFeatureAvailable=isFeatureAvailable;function restoreCache(r,s,i,a,A=false){return l(this,void 0,void 0,(function*(){const c=(0,C.getCacheServiceVersion)();d.debug(`Cache service version: ${c}`);checkPaths(r);switch(c){case"v2":return yield restoreCacheV2(r,s,i,a,A);case"v1":default:return yield restoreCacheV1(r,s,i,a,A)}}))}s.restoreCache=restoreCache;function restoreCacheV1(r,s,i,a,A=false){return l(this,void 0,void 0,(function*(){i=i||[];const c=[s,...i];d.debug("Resolved Keys:");d.debug(JSON.stringify(c));if(c.length>10){throw new ValidationError(`Key Validation Error: Keys are limited to a maximum of 10.`)}for(const r of c){checkKey(r)}const l=yield p.getCompressionMethod();let h="";try{const s=yield g.getCacheEntry(c,r,{compressionMethod:l,enableCrossOsArchive:A});if(!(s===null||s===void 0?void 0:s.archiveLocation)){return undefined}if(a===null||a===void 0?void 0:a.lookupOnly){d.info("Lookup only - skipping download");return s.cacheKey}h=u.join(yield p.createTempDirectory(),p.getCacheFileName(l));d.debug(`Archive Path: ${h}`);yield g.downloadCache(s.archiveLocation,h,a);if(d.isDebug()){yield(0,y.listTar)(h,l)}const i=p.getArchiveFileSizeInBytes(h);d.info(`Cache Size: ~${Math.round(i/(1024*1024))} MB (${i} B)`);yield(0,y.extractTar)(h,l);d.info("Cache restored successfully");return s.cacheKey}catch(r){const s=r;if(s.name===ValidationError.name){throw r}else{d.warning(`Failed to restore: ${r.message}`)}}finally{try{yield p.unlinkFile(h)}catch(r){d.debug(`Failed to delete archive: ${r}`)}}return undefined}))}function restoreCacheV2(r,s,i,a,A=false){return l(this,void 0,void 0,(function*(){a=Object.assign(Object.assign({},a),{useAzureSdk:true});i=i||[];const c=[s,...i];d.debug("Resolved Keys:");d.debug(JSON.stringify(c));if(c.length>10){throw new ValidationError(`Key Validation Error: Keys are limited to a maximum of 10.`)}for(const r of c){checkKey(r)}let l="";try{const C=h.internalCacheTwirpClient();const I=yield p.getCompressionMethod();const B={key:s,restoreKeys:i,version:p.getCacheVersion(r,I,A)};const b=yield C.GetCacheEntryDownloadURL(B);if(!b.ok){d.debug(`Cache not found for version ${B.version} of keys: ${c.join(", ")}`);return undefined}d.info(`Cache hit for: ${B.key}`);if(a===null||a===void 0?void 0:a.lookupOnly){d.info("Lookup only - skipping download");return b.matchedKey}l=u.join(yield p.createTempDirectory(),p.getCacheFileName(I));d.debug(`Archive path: ${l}`);d.debug(`Starting download of archive to: ${l}`);yield g.downloadCache(b.signedDownloadUrl,l,a);const Q=p.getArchiveFileSizeInBytes(l);d.info(`Cache Size: ~${Math.round(Q/(1024*1024))} MB (${Q} B)`);if(d.isDebug()){yield(0,y.listTar)(l,I)}yield(0,y.extractTar)(l,I);d.info("Cache restored successfully");return b.matchedKey}catch(r){const s=r;if(s.name===ValidationError.name){throw r}else{d.warning(`Failed to restore: ${r.message}`)}}finally{try{if(l){yield p.unlinkFile(l)}}catch(r){d.debug(`Failed to delete archive: ${r}`)}}return undefined}))}function saveCache(r,s,i,a=false){return l(this,void 0,void 0,(function*(){const A=(0,C.getCacheServiceVersion)();d.debug(`Cache service version: ${A}`);checkPaths(r);checkKey(s);switch(A){case"v2":return yield saveCacheV2(r,s,i,a);case"v1":default:return yield saveCacheV1(r,s,i,a)}}))}s.saveCache=saveCache;function saveCacheV1(r,s,i,a=false){var A,c,h,I,B;return l(this,void 0,void 0,(function*(){const l=yield p.getCompressionMethod();let b=-1;const Q=yield p.resolvePaths(r);d.debug("Cache Paths:");d.debug(`${JSON.stringify(Q)}`);if(Q.length===0){throw new Error(`Path Validation Error: Path(s) specified in the action for caching do(es) not exist, hence no cache is being saved.`)}const w=yield p.createTempDirectory();const v=u.join(w,p.getCacheFileName(l));d.debug(`Archive Path: ${v}`);try{yield(0,y.createTar)(w,Q,l);if(d.isDebug()){yield(0,y.listTar)(v,l)}const u=10*1024*1024*1024;const S=p.getArchiveFileSizeInBytes(v);d.debug(`File Size: ${S}`);if(S>u&&!(0,C.isGhes)()){throw new Error(`Cache size of ~${Math.round(S/(1024*1024))} MB (${S} B) is over the 10GB limit, not saving cache.`)}d.debug("Reserving Cache");const R=yield g.reserveCache(s,r,{compressionMethod:l,enableCrossOsArchive:a,cacheSize:S});if((A=R===null||R===void 0?void 0:R.result)===null||A===void 0?void 0:A.cacheId){b=(c=R===null||R===void 0?void 0:R.result)===null||c===void 0?void 0:c.cacheId}else if((R===null||R===void 0?void 0:R.statusCode)===400){throw new Error((I=(h=R===null||R===void 0?void 0:R.error)===null||h===void 0?void 0:h.message)!==null&&I!==void 0?I:`Cache size of ~${Math.round(S/(1024*1024))} MB (${S} B) is over the data cap limit, not saving cache.`)}else{throw new ReserveCacheError(`Unable to reserve cache with key ${s}, another job may be creating this cache. More details: ${(B=R===null||R===void 0?void 0:R.error)===null||B===void 0?void 0:B.message}`)}d.debug(`Saving Cache (ID: ${b})`);yield g.saveCache(b,v,"",i)}catch(r){const s=r;if(s.name===ValidationError.name){throw r}else if(s.name===ReserveCacheError.name){d.info(`Failed to save: ${s.message}`)}else{d.warning(`Failed to save: ${s.message}`)}}finally{try{yield p.unlinkFile(v)}catch(r){d.debug(`Failed to delete archive: ${r}`)}}return b}))}function saveCacheV2(r,s,i,a=false){return l(this,void 0,void 0,(function*(){i=Object.assign(Object.assign({},i),{uploadChunkSize:64*1024*1024,uploadConcurrency:8,useAzureSdk:true});const A=yield p.getCompressionMethod();const c=h.internalCacheTwirpClient();let l=-1;const B=yield p.resolvePaths(r);d.debug("Cache Paths:");d.debug(`${JSON.stringify(B)}`);if(B.length===0){throw new Error(`Path Validation Error: Path(s) specified in the action for caching do(es) not exist, hence no cache is being saved.`)}const b=yield p.createTempDirectory();const Q=u.join(b,p.getCacheFileName(A));d.debug(`Archive Path: ${Q}`);try{yield(0,y.createTar)(b,B,A);if(d.isDebug()){yield(0,y.listTar)(Q,A)}const u=p.getArchiveFileSizeInBytes(Q);d.debug(`File Size: ${u}`);if(u>I.CacheFileSizeLimit&&!(0,C.isGhes)()){throw new Error(`Cache size of ~${Math.round(u/(1024*1024))} MB (${u} B) is over the 10GB limit, not saving cache.`)}i.archiveSizeBytes=u;d.debug("Reserving Cache");const h=p.getCacheVersion(r,A,a);const w={key:s,version:h};let v;try{const r=yield c.CreateCacheEntry(w);if(!r.ok){throw new Error("Response was not ok")}v=r.signedUploadUrl}catch(r){d.debug(`Failed to reserve cache: ${r}`);throw new ReserveCacheError(`Unable to reserve cache with key ${s}, another job may be creating this cache.`)}d.debug(`Attempting to upload cache located at: ${Q}`);yield g.saveCache(l,Q,v,i);const S={key:s,version:h,sizeBytes:`${u}`};const R=yield c.FinalizeCacheEntryUpload(S);d.debug(`FinalizeCacheEntryUploadResponse: ${R.ok}`);if(!R.ok){throw new Error(`Unable to finalize cache with key ${s}, another job may be finalizing this cache.`)}l=parseInt(R.entryId)}catch(r){const s=r;if(s.name===ValidationError.name){throw r}else if(s.name===ReserveCacheError.name){d.info(`Failed to save: ${s.message}`)}else{d.warning(`Failed to save: ${s.message}`)}}finally{try{yield p.unlinkFile(Q)}catch(r){d.debug(`Failed to delete archive: ${r}`)}}return l}))}},84388:(r,s,i)=>{"use strict";Object.defineProperty(s,"__esModule",{value:true});s.CacheService=s.GetCacheEntryDownloadURLResponse=s.GetCacheEntryDownloadURLRequest=s.FinalizeCacheEntryUploadResponse=s.FinalizeCacheEntryUploadRequest=s.CreateCacheEntryResponse=s.CreateCacheEntryRequest=void 0;const a=i(14400);const A=i(33207);const c=i(33207);const l=i(33207);const d=i(33207);const u=i(33207);const p=i(67988);class CreateCacheEntryRequest$Type extends u.MessageType{constructor(){super("github.actions.results.api.v1.CreateCacheEntryRequest",[{no:1,name:"metadata",kind:"message",T:()=>p.CacheMetadata},{no:2,name:"key",kind:"scalar",T:9},{no:3,name:"version",kind:"scalar",T:9}])}create(r){const s={key:"",version:""};globalThis.Object.defineProperty(s,d.MESSAGE_TYPE,{enumerable:false,value:this});if(r!==undefined)(0,l.reflectionMergePartial)(this,s,r);return s}internalBinaryRead(r,s,i,a){let A=a!==null&&a!==void 0?a:this.create(),l=r.pos+s;while(r.posp.CacheMetadata},{no:2,name:"key",kind:"scalar",T:9},{no:3,name:"size_bytes",kind:"scalar",T:3},{no:4,name:"version",kind:"scalar",T:9}])}create(r){const s={key:"",sizeBytes:"0",version:""};globalThis.Object.defineProperty(s,d.MESSAGE_TYPE,{enumerable:false,value:this});if(r!==undefined)(0,l.reflectionMergePartial)(this,s,r);return s}internalBinaryRead(r,s,i,a){let A=a!==null&&a!==void 0?a:this.create(),l=r.pos+s;while(r.posp.CacheMetadata},{no:2,name:"key",kind:"scalar",T:9},{no:3,name:"restore_keys",kind:"scalar",repeat:2,T:9},{no:4,name:"version",kind:"scalar",T:9}])}create(r){const s={key:"",restoreKeys:[],version:""};globalThis.Object.defineProperty(s,d.MESSAGE_TYPE,{enumerable:false,value:this});if(r!==undefined)(0,l.reflectionMergePartial)(this,s,r);return s}internalBinaryRead(r,s,i,a){let A=a!==null&&a!==void 0?a:this.create(),l=r.pos+s;while(r.pos{"use strict";Object.defineProperty(s,"__esModule",{value:true});s.CacheServiceClientProtobuf=s.CacheServiceClientJSON=void 0;const a=i(84388);class CacheServiceClientJSON{constructor(r){this.rpc=r;this.CreateCacheEntry.bind(this);this.FinalizeCacheEntryUpload.bind(this);this.GetCacheEntryDownloadURL.bind(this)}CreateCacheEntry(r){const s=a.CreateCacheEntryRequest.toJson(r,{useProtoFieldName:true,emitDefaultValues:false});const i=this.rpc.request("github.actions.results.api.v1.CacheService","CreateCacheEntry","application/json",s);return i.then((r=>a.CreateCacheEntryResponse.fromJson(r,{ignoreUnknownFields:true})))}FinalizeCacheEntryUpload(r){const s=a.FinalizeCacheEntryUploadRequest.toJson(r,{useProtoFieldName:true,emitDefaultValues:false});const i=this.rpc.request("github.actions.results.api.v1.CacheService","FinalizeCacheEntryUpload","application/json",s);return i.then((r=>a.FinalizeCacheEntryUploadResponse.fromJson(r,{ignoreUnknownFields:true})))}GetCacheEntryDownloadURL(r){const s=a.GetCacheEntryDownloadURLRequest.toJson(r,{useProtoFieldName:true,emitDefaultValues:false});const i=this.rpc.request("github.actions.results.api.v1.CacheService","GetCacheEntryDownloadURL","application/json",s);return i.then((r=>a.GetCacheEntryDownloadURLResponse.fromJson(r,{ignoreUnknownFields:true})))}}s.CacheServiceClientJSON=CacheServiceClientJSON;class CacheServiceClientProtobuf{constructor(r){this.rpc=r;this.CreateCacheEntry.bind(this);this.FinalizeCacheEntryUpload.bind(this);this.GetCacheEntryDownloadURL.bind(this)}CreateCacheEntry(r){const s=a.CreateCacheEntryRequest.toBinary(r);const i=this.rpc.request("github.actions.results.api.v1.CacheService","CreateCacheEntry","application/protobuf",s);return i.then((r=>a.CreateCacheEntryResponse.fromBinary(r)))}FinalizeCacheEntryUpload(r){const s=a.FinalizeCacheEntryUploadRequest.toBinary(r);const i=this.rpc.request("github.actions.results.api.v1.CacheService","FinalizeCacheEntryUpload","application/protobuf",s);return i.then((r=>a.FinalizeCacheEntryUploadResponse.fromBinary(r)))}GetCacheEntryDownloadURL(r){const s=a.GetCacheEntryDownloadURLRequest.toBinary(r);const i=this.rpc.request("github.actions.results.api.v1.CacheService","GetCacheEntryDownloadURL","application/protobuf",s);return i.then((r=>a.GetCacheEntryDownloadURLResponse.fromBinary(r)))}}s.CacheServiceClientProtobuf=CacheServiceClientProtobuf},67988:(r,s,i)=>{"use strict";Object.defineProperty(s,"__esModule",{value:true});s.CacheMetadata=void 0;const a=i(33207);const A=i(33207);const c=i(33207);const l=i(33207);const d=i(33207);const u=i(83749);class CacheMetadata$Type extends d.MessageType{constructor(){super("github.actions.results.entities.v1.CacheMetadata",[{no:1,name:"repository_id",kind:"scalar",T:3},{no:2,name:"scope",kind:"message",repeat:1,T:()=>u.CacheScope}])}create(r){const s={repositoryId:"0",scope:[]};globalThis.Object.defineProperty(s,l.MESSAGE_TYPE,{enumerable:false,value:this});if(r!==undefined)(0,c.reflectionMergePartial)(this,s,r);return s}internalBinaryRead(r,s,i,a){let c=a!==null&&a!==void 0?a:this.create(),l=r.pos+s;while(r.pos{"use strict";Object.defineProperty(s,"__esModule",{value:true});s.CacheScope=void 0;const a=i(33207);const A=i(33207);const c=i(33207);const l=i(33207);const d=i(33207);class CacheScope$Type extends d.MessageType{constructor(){super("github.actions.results.entities.v1.CacheScope",[{no:1,name:"scope",kind:"scalar",T:9},{no:2,name:"permission",kind:"scalar",T:3}])}create(r){const s={scope:"",permission:"0"};globalThis.Object.defineProperty(s,l.MESSAGE_TYPE,{enumerable:false,value:this});if(r!==undefined)(0,c.reflectionMergePartial)(this,s,r);return s}internalBinaryRead(r,s,i,a){let c=a!==null&&a!==void 0?a:this.create(),l=r.pos+s;while(r.posl(this,void 0,void 0,(function*(){return a.getJson(getCacheApiUrl(c))}))));if(u.statusCode===204){if(d.isDebug()){yield printCachesListForDiagnostics(r[0],a,A)}return null}if(!(0,b.isSuccessStatusCode)(u.statusCode)){throw new Error(`Cache service responded with ${u.statusCode}`)}const p=u.result;const g=p===null||p===void 0?void 0:p.archiveLocation;if(!g){throw new Error("Cache not found.")}d.setSecret(g);d.debug(`Cache Result:`);d.debug(JSON.stringify(p));return p}))}s.getCacheEntry=getCacheEntry;function printCachesListForDiagnostics(r,s,i){return l(this,void 0,void 0,(function*(){const a=`caches?key=${encodeURIComponent(r)}`;const A=yield(0,b.retryTypedResponse)("listCache",(()=>l(this,void 0,void 0,(function*(){return s.getJson(getCacheApiUrl(a))}))));if(A.statusCode===200){const s=A.result;const a=s===null||s===void 0?void 0:s.totalCount;if(a&&a>0){d.debug(`No matching cache found for cache key '${r}', version '${i} and scope ${process.env["GITHUB_REF"]}. There exist one or more cache(s) with similar key but they have different version or scope. See more info on cache matching here: https://docs.github.com/en/actions/using-workflows/caching-dependencies-to-speed-up-workflows#matching-a-cache-key \nOther caches with similar key:`);for(const r of(s===null||s===void 0?void 0:s.artifactCaches)||[]){d.debug(`Cache Key: ${r===null||r===void 0?void 0:r.cacheKey}, Cache Version: ${r===null||r===void 0?void 0:r.cacheVersion}, Cache Scope: ${r===null||r===void 0?void 0:r.scope}, Cache Created: ${r===null||r===void 0?void 0:r.creationTime}`)}}}}))}function downloadCache(r,s,i){return l(this,void 0,void 0,(function*(){const a=new h.URL(r);const A=(0,B.getDownloadOptions)(i);if(a.hostname.endsWith(".blob.core.windows.net")){if(A.useAzureSdk){yield(0,I.downloadCacheStorageSDK)(r,s,A)}else if(A.concurrentBlobDownloads){yield(0,I.downloadCacheHttpClientConcurrent)(r,s,A)}else{yield(0,I.downloadCacheHttpClient)(r,s)}}else{yield(0,I.downloadCacheHttpClient)(r,s)}}))}s.downloadCache=downloadCache;function reserveCache(r,s,i){return l(this,void 0,void 0,(function*(){const a=createHttpClient();const A=C.getCacheVersion(s,i===null||i===void 0?void 0:i.compressionMethod,i===null||i===void 0?void 0:i.enableCrossOsArchive);const c={key:r,version:A,cacheSize:i===null||i===void 0?void 0:i.cacheSize};const d=yield(0,b.retryTypedResponse)("reserveCache",(()=>l(this,void 0,void 0,(function*(){return a.postJson(getCacheApiUrl("caches"),c)}))));return d}))}s.reserveCache=reserveCache;function getContentRange(r,s){return`bytes ${r}-${s}/*`}function uploadChunk(r,s,i,a,A){return l(this,void 0,void 0,(function*(){d.debug(`Uploading chunk of size ${A-a+1} bytes at offset ${a} with content range: ${getContentRange(a,A)}`);const c={"Content-Type":"application/octet-stream","Content-Range":getContentRange(a,A)};const u=yield(0,b.retryHttpClientResponse)(`uploadChunk (start: ${a}, end: ${A})`,(()=>l(this,void 0,void 0,(function*(){return r.sendStream("PATCH",s,i(),c)}))));if(!(0,b.isSuccessStatusCode)(u.message.statusCode)){throw new Error(`Cache service responded with ${u.message.statusCode} during upload chunk.`)}}))}function uploadFile(r,s,i,a){return l(this,void 0,void 0,(function*(){const A=C.getArchiveFileSizeInBytes(i);const c=getCacheApiUrl(`caches/${s.toString()}`);const u=g.openSync(i,"r");const p=(0,B.getUploadOptions)(a);const h=C.assertDefined("uploadConcurrency",p.uploadConcurrency);const y=C.assertDefined("uploadChunkSize",p.uploadChunkSize);const I=[...new Array(h).keys()];d.debug("Awaiting all uploads");let b=0;try{yield Promise.all(I.map((()=>l(this,void 0,void 0,(function*(){while(bg.createReadStream(i,{fd:u,start:a,end:l,autoClose:false}).on("error",(r=>{throw new Error(`Cache upload failed because file read failed with ${r.message}`)}))),a,l)}})))))}finally{g.closeSync(u)}return}))}function commitCache(r,s,i){return l(this,void 0,void 0,(function*(){const a={size:i};return yield(0,b.retryTypedResponse)("commitCache",(()=>l(this,void 0,void 0,(function*(){return r.postJson(getCacheApiUrl(`caches/${s.toString()}`),a)}))))}))}function saveCache(r,s,i,a){return l(this,void 0,void 0,(function*(){const A=(0,B.getUploadOptions)(a);if(A.useAzureSdk){if(!i){throw new Error("Azure Storage SDK can only be used when a signed URL is provided.")}yield(0,y.uploadCacheArchiveSDK)(i,s,a)}else{const i=createHttpClient();d.debug("Upload cache");yield uploadFile(i,r,s,a);d.debug("Commiting cache");const A=C.getArchiveFileSizeInBytes(s);d.info(`Cache Size: ~${Math.round(A/(1024*1024))} MB (${A} B)`);const c=yield commitCache(i,r,A);if(!(0,b.isSuccessStatusCode)(c.statusCode)){throw new Error(`Cache service responded with ${c.statusCode} during commit cache.`)}d.info("Cache saved successfully")}}))}s.saveCache=saveCache},91518:function(r,s,i){"use strict";var a=this&&this.__createBinding||(Object.create?function(r,s,i,a){if(a===undefined)a=i;var A=Object.getOwnPropertyDescriptor(s,i);if(!A||("get"in A?!s.__esModule:A.writable||A.configurable)){A={enumerable:true,get:function(){return s[i]}}}Object.defineProperty(r,a,A)}:function(r,s,i,a){if(a===undefined)a=i;r[a]=s[i]});var A=this&&this.__setModuleDefault||(Object.create?function(r,s){Object.defineProperty(r,"default",{enumerable:true,value:s})}:function(r,s){r["default"]=s});var c=this&&this.__importStar||function(r){if(r&&r.__esModule)return r;var s={};if(r!=null)for(var i in r)if(i!=="default"&&Object.prototype.hasOwnProperty.call(r,i))a(s,r,i);A(s,r);return s};var l=this&&this.__awaiter||function(r,s,i,a){function adopt(r){return r instanceof i?r:new i((function(s){s(r)}))}return new(i||(i=Promise))((function(i,A){function fulfilled(r){try{step(a.next(r))}catch(r){A(r)}}function rejected(r){try{step(a["throw"](r))}catch(r){A(r)}}function step(r){r.done?i(r.value):adopt(r.value).then(fulfilled,rejected)}step((a=a.apply(r,s||[])).next())}))};var d=this&&this.__asyncValues||function(r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var s=r[Symbol.asyncIterator],i;return s?s.call(r):(r=typeof __values==="function"?__values(r):r[Symbol.iterator](),i={},verb("next"),verb("throw"),verb("return"),i[Symbol.asyncIterator]=function(){return this},i);function verb(s){i[s]=r[s]&&function(i){return new Promise((function(a,A){i=r[s](i),settle(a,A,i.done,i.value)}))}}function settle(r,s,i,a){Promise.resolve(a).then((function(s){r({value:s,done:i})}),s)}};Object.defineProperty(s,"__esModule",{value:true});s.getRuntimeToken=s.getCacheVersion=s.assertDefined=s.getGnuTarPathOnWindows=s.getCacheFileName=s.getCompressionMethod=s.unlinkFile=s.resolvePaths=s.getArchiveFileSizeInBytes=s.createTempDirectory=void 0;const u=c(i(42186));const p=c(i(71514));const g=c(i(28090));const h=c(i(47351));const C=c(i(6113));const y=c(i(57147));const I=c(i(71017));const B=c(i(85911));const b=c(i(73837));const Q=i(88840);const w="1.0";function createTempDirectory(){return l(this,void 0,void 0,(function*(){const r=process.platform==="win32";let s=process.env["RUNNER_TEMP"]||"";if(!s){let i;if(r){i=process.env["USERPROFILE"]||"C:\\"}else{if(process.platform==="darwin"){i="/Users"}else{i="/home"}}s=I.join(i,"actions","temp")}const i=I.join(s,C.randomUUID());yield h.mkdirP(i);return i}))}s.createTempDirectory=createTempDirectory;function getArchiveFileSizeInBytes(r){return y.statSync(r).size}s.getArchiveFileSizeInBytes=getArchiveFileSizeInBytes;function resolvePaths(r){var s,i,a,A;var c;return l(this,void 0,void 0,(function*(){const l=[];const p=(c=process.env["GITHUB_WORKSPACE"])!==null&&c!==void 0?c:process.cwd();const h=yield g.create(r.join("\n"),{implicitDescendants:false});try{for(var C=true,y=d(h.globGenerator()),B;B=yield y.next(),s=B.done,!s;C=true){A=B.value;C=false;const r=A;const s=I.relative(p,r).replace(new RegExp(`\\${I.sep}`,"g"),"/");u.debug(`Matched: ${s}`);if(s===""){l.push(".")}else{l.push(`${s}`)}}}catch(r){i={error:r}}finally{try{if(!C&&!s&&(a=y.return))yield a.call(y)}finally{if(i)throw i.error}}return l}))}s.resolvePaths=resolvePaths;function unlinkFile(r){return l(this,void 0,void 0,(function*(){return b.promisify(y.unlink)(r)}))}s.unlinkFile=unlinkFile;function getVersion(r,s=[]){return l(this,void 0,void 0,(function*(){let i="";s.push("--version");u.debug(`Checking ${r} ${s.join(" ")}`);try{yield p.exec(`${r}`,s,{ignoreReturnCode:true,silent:true,listeners:{stdout:r=>i+=r.toString(),stderr:r=>i+=r.toString()}})}catch(r){u.debug(r.message)}i=i.trim();u.debug(i);return i}))}function getCompressionMethod(){return l(this,void 0,void 0,(function*(){const r=yield getVersion("zstd",["--quiet"]);const s=B.clean(r);u.debug(`zstd version: ${s}`);if(r===""){return Q.CompressionMethod.Gzip}else{return Q.CompressionMethod.ZstdWithoutLong}}))}s.getCompressionMethod=getCompressionMethod;function getCacheFileName(r){return r===Q.CompressionMethod.Gzip?Q.CacheFilename.Gzip:Q.CacheFilename.Zstd}s.getCacheFileName=getCacheFileName;function getGnuTarPathOnWindows(){return l(this,void 0,void 0,(function*(){if(y.existsSync(Q.GnuTarPathOnWindows)){return Q.GnuTarPathOnWindows}const r=yield getVersion("tar");return r.toLowerCase().includes("gnu tar")?h.which("tar"):""}))}s.getGnuTarPathOnWindows=getGnuTarPathOnWindows;function assertDefined(r,s){if(s===undefined){throw Error(`Expected ${r} but value was undefiend`)}return s}s.assertDefined=assertDefined;function getCacheVersion(r,s,i=false){const a=r.slice();if(s){a.push(s)}if(process.platform==="win32"&&!i){a.push("windows-only")}a.push(w);return C.createHash("sha256").update(a.join("|")).digest("hex")}s.getCacheVersion=getCacheVersion;function getRuntimeToken(){const r=process.env["ACTIONS_RUNTIME_TOKEN"];if(!r){throw new Error("Unable to get the ACTIONS_RUNTIME_TOKEN env variable")}return r}s.getRuntimeToken=getRuntimeToken},35147:(r,s)=>{"use strict";Object.defineProperty(s,"__esModule",{value:true});s.getCacheServiceURL=s.getCacheServiceVersion=s.isGhes=void 0;function isGhes(){const r=new URL(process.env["GITHUB_SERVER_URL"]||"https://github.com");const s=r.hostname.trimEnd().toUpperCase();const i=s==="GITHUB.COM";const a=s.endsWith(".GHE.COM");const A=s.endsWith(".LOCALHOST");return!i&&!a&&!A}s.isGhes=isGhes;function getCacheServiceVersion(){if(isGhes())return"v1";return process.env["ACTIONS_CACHE_SERVICE_V2"]?"v2":"v1"}s.getCacheServiceVersion=getCacheServiceVersion;function getCacheServiceURL(){const r=getCacheServiceVersion();switch(r){case"v1":return process.env["ACTIONS_CACHE_URL"]||process.env["ACTIONS_RESULTS_URL"]||"";case"v2":return process.env["ACTIONS_RESULTS_URL"]||"";default:throw new Error(`Unsupported cache service version: ${r}`)}}s.getCacheServiceURL=getCacheServiceURL},88840:(r,s)=>{"use strict";Object.defineProperty(s,"__esModule",{value:true});s.CacheFileSizeLimit=s.ManifestFilename=s.TarFilename=s.SystemTarPathOnWindows=s.GnuTarPathOnWindows=s.SocketTimeout=s.DefaultRetryDelay=s.DefaultRetryAttempts=s.ArchiveToolType=s.CompressionMethod=s.CacheFilename=void 0;var i;(function(r){r["Gzip"]="cache.tgz";r["Zstd"]="cache.tzst"})(i||(s.CacheFilename=i={}));var a;(function(r){r["Gzip"]="gzip";r["ZstdWithoutLong"]="zstd-without-long";r["Zstd"]="zstd"})(a||(s.CompressionMethod=a={}));var A;(function(r){r["GNU"]="gnu";r["BSD"]="bsd"})(A||(s.ArchiveToolType=A={}));s.DefaultRetryAttempts=2;s.DefaultRetryDelay=5e3;s.SocketTimeout=5e3;s.GnuTarPathOnWindows=`${process.env["PROGRAMFILES"]}\\Git\\usr\\bin\\tar.exe`;s.SystemTarPathOnWindows=`${process.env["SYSTEMDRIVE"]}\\Windows\\System32\\tar.exe`;s.TarFilename="cache.tar";s.ManifestFilename="manifest.txt";s.CacheFileSizeLimit=10*Math.pow(1024,3)},55500:function(r,s,i){"use strict";var a=this&&this.__createBinding||(Object.create?function(r,s,i,a){if(a===undefined)a=i;var A=Object.getOwnPropertyDescriptor(s,i);if(!A||("get"in A?!s.__esModule:A.writable||A.configurable)){A={enumerable:true,get:function(){return s[i]}}}Object.defineProperty(r,a,A)}:function(r,s,i,a){if(a===undefined)a=i;r[a]=s[i]});var A=this&&this.__setModuleDefault||(Object.create?function(r,s){Object.defineProperty(r,"default",{enumerable:true,value:s})}:function(r,s){r["default"]=s});var c=this&&this.__importStar||function(r){if(r&&r.__esModule)return r;var s={};if(r!=null)for(var i in r)if(i!=="default"&&Object.prototype.hasOwnProperty.call(r,i))a(s,r,i);A(s,r);return s};var l=this&&this.__awaiter||function(r,s,i,a){function adopt(r){return r instanceof i?r:new i((function(s){s(r)}))}return new(i||(i=Promise))((function(i,A){function fulfilled(r){try{step(a.next(r))}catch(r){A(r)}}function rejected(r){try{step(a["throw"](r))}catch(r){A(r)}}function step(r){r.done?i(r.value):adopt(r.value).then(fulfilled,rejected)}step((a=a.apply(r,s||[])).next())}))};Object.defineProperty(s,"__esModule",{value:true});s.downloadCacheStorageSDK=s.downloadCacheHttpClientConcurrent=s.downloadCacheHttpClient=s.DownloadProgress=void 0;const d=c(i(42186));const u=i(96255);const p=i(56903);const g=c(i(14300));const h=c(i(57147));const C=c(i(12781));const y=c(i(73837));const I=c(i(91518));const B=i(88840);const b=i(13981);const Q=i(52557);function pipeResponseToStream(r,s){return l(this,void 0,void 0,(function*(){const i=y.promisify(C.pipeline);yield i(r.message,s)}))}class DownloadProgress{constructor(r){this.contentLength=r;this.segmentIndex=0;this.segmentSize=0;this.segmentOffset=0;this.receivedBytes=0;this.displayedComplete=false;this.startTime=Date.now()}nextSegment(r){this.segmentOffset=this.segmentOffset+this.segmentSize;this.segmentIndex=this.segmentIndex+1;this.segmentSize=r;this.receivedBytes=0;d.debug(`Downloading segment at offset ${this.segmentOffset} with length ${this.segmentSize}...`)}setReceivedBytes(r){this.receivedBytes=r}getTransferredBytes(){return this.segmentOffset+this.receivedBytes}isDone(){return this.getTransferredBytes()===this.contentLength}display(){if(this.displayedComplete){return}const r=this.segmentOffset+this.receivedBytes;const s=(100*(r/this.contentLength)).toFixed(1);const i=Date.now()-this.startTime;const a=(r/(1024*1024)/(i/1e3)).toFixed(1);d.info(`Received ${r} of ${this.contentLength} (${s}%), ${a} MBs/sec`);if(this.isDone()){this.displayedComplete=true}}onProgress(){return r=>{this.setReceivedBytes(r.loadedBytes)}}startDisplayTimer(r=1e3){const displayCallback=()=>{this.display();if(!this.isDone()){this.timeoutHandle=setTimeout(displayCallback,r)}};this.timeoutHandle=setTimeout(displayCallback,r)}stopDisplayTimer(){if(this.timeoutHandle){clearTimeout(this.timeoutHandle);this.timeoutHandle=undefined}this.display()}}s.DownloadProgress=DownloadProgress;function downloadCacheHttpClient(r,s){return l(this,void 0,void 0,(function*(){const i=h.createWriteStream(s);const a=new u.HttpClient("actions/cache");const A=yield(0,b.retryHttpClientResponse)("downloadCache",(()=>l(this,void 0,void 0,(function*(){return a.get(r)}))));A.message.socket.setTimeout(B.SocketTimeout,(()=>{A.message.destroy();d.debug(`Aborting download, socket timed out after ${B.SocketTimeout} ms`)}));yield pipeResponseToStream(A,i);const c=A.message.headers["content-length"];if(c){const r=parseInt(c);const i=I.getArchiveFileSizeInBytes(s);if(i!==r){throw new Error(`Incomplete download. Expected file size: ${r}, actual file size: ${i}`)}}else{d.debug("Unable to validate download, no Content-Length header")}}))}s.downloadCacheHttpClient=downloadCacheHttpClient;function downloadCacheHttpClientConcurrent(r,s,i){var a;return l(this,void 0,void 0,(function*(){const A=yield h.promises.open(s,"w");const c=new u.HttpClient("actions/cache",undefined,{socketTimeout:i.timeoutInMs,keepAlive:true});try{const s=yield(0,b.retryHttpClientResponse)("downloadCacheMetadata",(()=>l(this,void 0,void 0,(function*(){return yield c.request("HEAD",r,null,{})}))));const d=s.message.headers["content-length"];if(d===undefined||d===null){throw new Error("Content-Length not found on blob response")}const u=parseInt(d);if(Number.isNaN(u)){throw new Error(`Could not interpret Content-Length: ${u}`)}const p=[];const g=4*1024*1024;for(let s=0;sl(this,void 0,void 0,(function*(){return yield downloadSegmentRetry(c,r,s,i)}))})}p.reverse();let h=0;let C=0;const y=new DownloadProgress(u);y.startDisplayTimer();const I=y.onProgress();const B=[];let Q;const waitAndWrite=()=>l(this,void 0,void 0,(function*(){const r=yield Promise.race(Object.values(B));yield A.write(r.buffer,0,r.count,r.offset);h--;delete B[r.offset];C+=r.count;I({loadedBytes:C})}));while(Q=p.pop()){B[Q.offset]=Q.promiseGetter();h++;if(h>=((a=i.downloadConcurrency)!==null&&a!==void 0?a:10)){yield waitAndWrite()}}while(h>0){yield waitAndWrite()}}finally{c.dispose();yield A.close()}}))}s.downloadCacheHttpClientConcurrent=downloadCacheHttpClientConcurrent;function downloadSegmentRetry(r,s,i,a){return l(this,void 0,void 0,(function*(){const A=5;let c=0;while(true){try{const A=3e4;const c=yield promiseWithTimeout(A,downloadSegment(r,s,i,a));if(typeof c==="string"){throw new Error("downloadSegmentRetry failed due to timeout")}return c}catch(r){if(c>=A){throw r}c++}}}))}function downloadSegment(r,s,i,a){return l(this,void 0,void 0,(function*(){const A=yield(0,b.retryHttpClientResponse)("downloadCachePart",(()=>l(this,void 0,void 0,(function*(){return yield r.get(s,{Range:`bytes=${i}-${i+a-1}`})}))));if(!A.readBodyBuffer){throw new Error("Expected HttpClientResponse to implement readBodyBuffer")}return{offset:i,count:a,buffer:yield A.readBodyBuffer()}}))}function downloadCacheStorageSDK(r,s,i){var a;return l(this,void 0,void 0,(function*(){const A=new p.BlockBlobClient(r,undefined,{retryOptions:{tryTimeoutInMs:i.timeoutInMs}});const c=yield A.getProperties();const l=(a=c.contentLength)!==null&&a!==void 0?a:-1;if(l<0){d.debug("Unable to determine content length, downloading file with http-client...");yield downloadCacheHttpClient(r,s)}else{const r=Math.min(134217728,g.constants.MAX_LENGTH);const a=new DownloadProgress(l);const c=h.openSync(s,"w");try{a.startDisplayTimer();const s=new Q.AbortController;const d=s.signal;while(!a.isDone()){const u=a.segmentOffset+a.segmentSize;const p=Math.min(r,l-u);a.nextSegment(p);const g=yield promiseWithTimeout(i.segmentTimeoutInMs||36e5,A.downloadToBuffer(u,p,{abortSignal:d,concurrency:i.downloadConcurrency,onProgress:a.onProgress()}));if(g==="timeout"){s.abort();throw new Error("Aborting cache download as the download time exceeded the timeout.")}else if(Buffer.isBuffer(g)){h.writeFileSync(c,g)}}}finally{a.stopDisplayTimer();h.closeSync(c)}}}))}s.downloadCacheStorageSDK=downloadCacheStorageSDK;const promiseWithTimeout=(r,s)=>l(void 0,void 0,void 0,(function*(){let i;const a=new Promise((s=>{i=setTimeout((()=>s("timeout")),r)}));return Promise.race([s,a]).then((r=>{clearTimeout(i);return r}))}))},13981:function(r,s,i){"use strict";var a=this&&this.__createBinding||(Object.create?function(r,s,i,a){if(a===undefined)a=i;var A=Object.getOwnPropertyDescriptor(s,i);if(!A||("get"in A?!s.__esModule:A.writable||A.configurable)){A={enumerable:true,get:function(){return s[i]}}}Object.defineProperty(r,a,A)}:function(r,s,i,a){if(a===undefined)a=i;r[a]=s[i]});var A=this&&this.__setModuleDefault||(Object.create?function(r,s){Object.defineProperty(r,"default",{enumerable:true,value:s})}:function(r,s){r["default"]=s});var c=this&&this.__importStar||function(r){if(r&&r.__esModule)return r;var s={};if(r!=null)for(var i in r)if(i!=="default"&&Object.prototype.hasOwnProperty.call(r,i))a(s,r,i);A(s,r);return s};var l=this&&this.__awaiter||function(r,s,i,a){function adopt(r){return r instanceof i?r:new i((function(s){s(r)}))}return new(i||(i=Promise))((function(i,A){function fulfilled(r){try{step(a.next(r))}catch(r){A(r)}}function rejected(r){try{step(a["throw"](r))}catch(r){A(r)}}function step(r){r.done?i(r.value):adopt(r.value).then(fulfilled,rejected)}step((a=a.apply(r,s||[])).next())}))};Object.defineProperty(s,"__esModule",{value:true});s.retryHttpClientResponse=s.retryTypedResponse=s.retry=s.isRetryableStatusCode=s.isServerErrorStatusCode=s.isSuccessStatusCode=void 0;const d=c(i(42186));const u=i(96255);const p=i(88840);function isSuccessStatusCode(r){if(!r){return false}return r>=200&&r<300}s.isSuccessStatusCode=isSuccessStatusCode;function isServerErrorStatusCode(r){if(!r){return true}return r>=500}s.isServerErrorStatusCode=isServerErrorStatusCode;function isRetryableStatusCode(r){if(!r){return false}const s=[u.HttpCodes.BadGateway,u.HttpCodes.ServiceUnavailable,u.HttpCodes.GatewayTimeout];return s.includes(r)}s.isRetryableStatusCode=isRetryableStatusCode;function sleep(r){return l(this,void 0,void 0,(function*(){return new Promise((s=>setTimeout(s,r)))}))}function retry(r,s,i,a=p.DefaultRetryAttempts,A=p.DefaultRetryDelay,c=undefined){return l(this,void 0,void 0,(function*(){let l="";let u=1;while(u<=a){let p=undefined;let g=undefined;let h=false;try{p=yield s()}catch(r){if(c){p=c(r)}h=true;l=r.message}if(p){g=i(p);if(!isServerErrorStatusCode(g)){return p}}if(g){h=isRetryableStatusCode(g);l=`Cache service responded with ${g}`}d.debug(`${r} - Attempt ${u} of ${a} failed with error: ${l}`);if(!h){d.debug(`${r} - Error is not retryable`);break}yield sleep(A);u++}throw Error(`${r} failed: ${l}`)}))}s.retry=retry;function retryTypedResponse(r,s,i=p.DefaultRetryAttempts,a=p.DefaultRetryDelay){return l(this,void 0,void 0,(function*(){return yield retry(r,s,(r=>r.statusCode),i,a,(r=>{if(r instanceof u.HttpClientError){return{statusCode:r.statusCode,result:null,headers:{},error:r}}else{return undefined}}))}))}s.retryTypedResponse=retryTypedResponse;function retryHttpClientResponse(r,s,i=p.DefaultRetryAttempts,a=p.DefaultRetryDelay){return l(this,void 0,void 0,(function*(){return yield retry(r,s,(r=>r.message.statusCode),i,a)}))}s.retryHttpClientResponse=retryHttpClientResponse},82502:function(r,s,i){"use strict";var a=this&&this.__awaiter||function(r,s,i,a){function adopt(r){return r instanceof i?r:new i((function(s){s(r)}))}return new(i||(i=Promise))((function(i,A){function fulfilled(r){try{step(a.next(r))}catch(r){A(r)}}function rejected(r){try{step(a["throw"](r))}catch(r){A(r)}}function step(r){r.done?i(r.value):adopt(r.value).then(fulfilled,rejected)}step((a=a.apply(r,s||[])).next())}))};Object.defineProperty(s,"__esModule",{value:true});s.internalCacheTwirpClient=void 0;const A=i(42186);const c=i(580);const l=i(18223);const d=i(35147);const u=i(91518);const p=i(35526);const g=i(96255);const h=i(42655);const C=i(61953);class CacheServiceClient{constructor(r,s,i,a){this.maxAttempts=5;this.baseRetryIntervalMilliseconds=3e3;this.retryMultiplier=1.5;const A=(0,u.getRuntimeToken)();this.baseUrl=(0,d.getCacheServiceURL)();if(s){this.maxAttempts=s}if(i){this.baseRetryIntervalMilliseconds=i}if(a){this.retryMultiplier=a}this.httpClient=new g.HttpClient(r,[new p.BearerCredentialHandler(A)])}request(r,s,i,c){return a(this,void 0,void 0,(function*(){const l=new URL(`/twirp/${r}/${s}`,this.baseUrl).href;(0,A.debug)(`[Request] ${s} ${l}`);const d={"Content-Type":i};try{const{body:r}=yield this.retryableRequest((()=>a(this,void 0,void 0,(function*(){return this.httpClient.post(l,JSON.stringify(c),d)}))));return r}catch(r){throw new Error(`Failed to ${s}: ${r.message}`)}}))}retryableRequest(r){return a(this,void 0,void 0,(function*(){let s=0;let i="";let a="";while(s=200&&r<300}isRetryableHttpStatusCode(r){if(!r)return false;const s=[g.HttpCodes.BadGateway,g.HttpCodes.GatewayTimeout,g.HttpCodes.InternalServerError,g.HttpCodes.ServiceUnavailable,g.HttpCodes.TooManyRequests];return s.includes(r)}sleep(r){return a(this,void 0,void 0,(function*(){return new Promise((s=>setTimeout(s,r)))}))}getExponentialRetryTimeMilliseconds(r){if(r<0){throw new Error("attempt should be a positive integer")}if(r===0){return this.baseRetryIntervalMilliseconds}const s=this.baseRetryIntervalMilliseconds*Math.pow(this.retryMultiplier,r);const i=s*this.retryMultiplier;return Math.trunc(Math.random()*(i-s)+s)}}function internalCacheTwirpClient(r){const s=new CacheServiceClient((0,c.getUserAgentString)(),r===null||r===void 0?void 0:r.maxAttempts,r===null||r===void 0?void 0:r.retryIntervalMs,r===null||r===void 0?void 0:r.retryMultiplier);return new h.CacheServiceClientJSON(s)}s.internalCacheTwirpClient=internalCacheTwirpClient},18223:(r,s)=>{"use strict";Object.defineProperty(s,"__esModule",{value:true});s.UsageError=s.NetworkError=s.GHESNotSupportedError=s.CacheNotFoundError=s.InvalidResponseError=s.FilesNotFoundError=void 0;class FilesNotFoundError extends Error{constructor(r=[]){let s="No files were found to upload";if(r.length>0){s+=`: ${r.join(", ")}`}super(s);this.files=r;this.name="FilesNotFoundError"}}s.FilesNotFoundError=FilesNotFoundError;class InvalidResponseError extends Error{constructor(r){super(r);this.name="InvalidResponseError"}}s.InvalidResponseError=InvalidResponseError;class CacheNotFoundError extends Error{constructor(r="Cache not found"){super(r);this.name="CacheNotFoundError"}}s.CacheNotFoundError=CacheNotFoundError;class GHESNotSupportedError extends Error{constructor(r="@actions/cache v4.1.4+, actions/cache/save@v4+ and actions/cache/restore@v4+ are not currently supported on GHES."){super(r);this.name="GHESNotSupportedError"}}s.GHESNotSupportedError=GHESNotSupportedError;class NetworkError extends Error{constructor(r){const s=`Unable to make request: ${r}\nIf you are using self-hosted runners, please make sure your runner has access to all GitHub endpoints: https://docs.github.com/en/actions/hosting-your-own-runners/managing-self-hosted-runners/about-self-hosted-runners#communication-between-self-hosted-runners-and-github`;super(s);this.code=r;this.name="NetworkError"}}s.NetworkError=NetworkError;NetworkError.isNetworkErrorCode=r=>{if(!r)return false;return["ECONNRESET","ENOTFOUND","ETIMEDOUT","ECONNREFUSED","EHOSTUNREACH"].includes(r)};class UsageError extends Error{constructor(){const r=`Cache storage quota has been hit. Unable to upload any new cache entries. Usage is recalculated every 6-12 hours.\nMore info on storage limits: https://docs.github.com/en/billing/managing-billing-for-github-actions/about-billing-for-github-actions#calculating-minute-and-storage-spending`;super(r);this.name="UsageError"}}s.UsageError=UsageError;UsageError.isUsageErrorMessage=r=>{if(!r)return false;return r.includes("insufficient usage")}},580:(r,s,i)=>{"use strict";Object.defineProperty(s,"__esModule",{value:true});s.getUserAgentString=void 0;const a=i(49167);function getUserAgentString(){return`@actions/cache-${a.version}`}s.getUserAgentString=getUserAgentString},61953:(r,s,i)=>{"use strict";Object.defineProperty(s,"__esModule",{value:true});s.maskSecretUrls=s.maskSigUrl=void 0;const a=i(42186);function maskSigUrl(r){if(!r)return;try{const s=new URL(r);const i=s.searchParams.get("sig");if(i){(0,a.setSecret)(i);(0,a.setSecret)(encodeURIComponent(i))}}catch(s){(0,a.debug)(`Failed to parse URL: ${r} ${s instanceof Error?s.message:String(s)}`)}}s.maskSigUrl=maskSigUrl;function maskSecretUrls(r){if(typeof r!=="object"||r===null){(0,a.debug)("body is not an object or is null");return}if("signed_upload_url"in r&&typeof r.signed_upload_url==="string"){maskSigUrl(r.signed_upload_url)}if("signed_download_url"in r&&typeof r.signed_download_url==="string"){maskSigUrl(r.signed_download_url)}}s.maskSecretUrls=maskSecretUrls},56490:function(r,s,i){"use strict";var a=this&&this.__createBinding||(Object.create?function(r,s,i,a){if(a===undefined)a=i;var A=Object.getOwnPropertyDescriptor(s,i);if(!A||("get"in A?!s.__esModule:A.writable||A.configurable)){A={enumerable:true,get:function(){return s[i]}}}Object.defineProperty(r,a,A)}:function(r,s,i,a){if(a===undefined)a=i;r[a]=s[i]});var A=this&&this.__setModuleDefault||(Object.create?function(r,s){Object.defineProperty(r,"default",{enumerable:true,value:s})}:function(r,s){r["default"]=s});var c=this&&this.__importStar||function(r){if(r&&r.__esModule)return r;var s={};if(r!=null)for(var i in r)if(i!=="default"&&Object.prototype.hasOwnProperty.call(r,i))a(s,r,i);A(s,r);return s};var l=this&&this.__awaiter||function(r,s,i,a){function adopt(r){return r instanceof i?r:new i((function(s){s(r)}))}return new(i||(i=Promise))((function(i,A){function fulfilled(r){try{step(a.next(r))}catch(r){A(r)}}function rejected(r){try{step(a["throw"](r))}catch(r){A(r)}}function step(r){r.done?i(r.value):adopt(r.value).then(fulfilled,rejected)}step((a=a.apply(r,s||[])).next())}))};Object.defineProperty(s,"__esModule",{value:true});s.createTar=s.extractTar=s.listTar=void 0;const d=i(71514);const u=c(i(47351));const p=i(57147);const g=c(i(71017));const h=c(i(91518));const C=i(88840);const y=process.platform==="win32";function getTarPath(){return l(this,void 0,void 0,(function*(){switch(process.platform){case"win32":{const r=yield h.getGnuTarPathOnWindows();const s=C.SystemTarPathOnWindows;if(r){return{path:r,type:C.ArchiveToolType.GNU}}else if((0,p.existsSync)(s)){return{path:s,type:C.ArchiveToolType.BSD}}break}case"darwin":{const r=yield u.which("gtar",false);if(r){return{path:r,type:C.ArchiveToolType.GNU}}else{return{path:yield u.which("tar",true),type:C.ArchiveToolType.BSD}}}default:break}return{path:yield u.which("tar",true),type:C.ArchiveToolType.GNU}}))}function getTarArgs(r,s,i,a=""){return l(this,void 0,void 0,(function*(){const A=[`"${r.path}"`];const c=h.getCacheFileName(s);const l="cache.tar";const d=getWorkingDirectory();const u=r.type===C.ArchiveToolType.BSD&&s!==C.CompressionMethod.Gzip&&y;switch(i){case"create":A.push("--posix","-cf",u?l:c.replace(new RegExp(`\\${g.sep}`,"g"),"/"),"--exclude",u?l:c.replace(new RegExp(`\\${g.sep}`,"g"),"/"),"-P","-C",d.replace(new RegExp(`\\${g.sep}`,"g"),"/"),"--files-from",C.ManifestFilename);break;case"extract":A.push("-xf",u?l:a.replace(new RegExp(`\\${g.sep}`,"g"),"/"),"-P","-C",d.replace(new RegExp(`\\${g.sep}`,"g"),"/"));break;case"list":A.push("-tf",u?l:a.replace(new RegExp(`\\${g.sep}`,"g"),"/"),"-P");break}if(r.type===C.ArchiveToolType.GNU){switch(process.platform){case"win32":A.push("--force-local");break;case"darwin":A.push("--delay-directory-restore");break}}return A}))}function getCommands(r,s,i=""){return l(this,void 0,void 0,(function*(){let a;const A=yield getTarPath();const c=yield getTarArgs(A,r,s,i);const l=s!=="create"?yield getDecompressionProgram(A,r,i):yield getCompressionProgram(A,r);const d=A.type===C.ArchiveToolType.BSD&&r!==C.CompressionMethod.Gzip&&y;if(d&&s!=="create"){a=[[...l].join(" "),[...c].join(" ")]}else{a=[[...c].join(" "),[...l].join(" ")]}if(d){return a}return[a.join(" ")]}))}function getWorkingDirectory(){var r;return(r=process.env["GITHUB_WORKSPACE"])!==null&&r!==void 0?r:process.cwd()}function getDecompressionProgram(r,s,i){return l(this,void 0,void 0,(function*(){const a=r.type===C.ArchiveToolType.BSD&&s!==C.CompressionMethod.Gzip&&y;switch(s){case C.CompressionMethod.Zstd:return a?["zstd -d --long=30 --force -o",C.TarFilename,i.replace(new RegExp(`\\${g.sep}`,"g"),"/")]:["--use-compress-program",y?'"zstd -d --long=30"':"unzstd --long=30"];case C.CompressionMethod.ZstdWithoutLong:return a?["zstd -d --force -o",C.TarFilename,i.replace(new RegExp(`\\${g.sep}`,"g"),"/")]:["--use-compress-program",y?'"zstd -d"':"unzstd"];default:return["-z"]}}))}function getCompressionProgram(r,s){return l(this,void 0,void 0,(function*(){const i=h.getCacheFileName(s);const a=r.type===C.ArchiveToolType.BSD&&s!==C.CompressionMethod.Gzip&&y;switch(s){case C.CompressionMethod.Zstd:return a?["zstd -T0 --long=30 --force -o",i.replace(new RegExp(`\\${g.sep}`,"g"),"/"),C.TarFilename]:["--use-compress-program",y?'"zstd -T0 --long=30"':"zstdmt --long=30"];case C.CompressionMethod.ZstdWithoutLong:return a?["zstd -T0 --force -o",i.replace(new RegExp(`\\${g.sep}`,"g"),"/"),C.TarFilename]:["--use-compress-program",y?'"zstd -T0"':"zstdmt"];default:return["-z"]}}))}function execCommands(r,s){return l(this,void 0,void 0,(function*(){for(const i of r){try{yield(0,d.exec)(i,undefined,{cwd:s,env:Object.assign(Object.assign({},process.env),{MSYS:"winsymlinks:nativestrict"})})}catch(r){throw new Error(`${i.split(" ")[0]} failed with error: ${r===null||r===void 0?void 0:r.message}`)}}}))}function listTar(r,s){return l(this,void 0,void 0,(function*(){const i=yield getCommands(s,"list",r);yield execCommands(i)}))}s.listTar=listTar;function extractTar(r,s){return l(this,void 0,void 0,(function*(){const i=getWorkingDirectory();yield u.mkdirP(i);const a=yield getCommands(s,"extract",r);yield execCommands(a)}))}s.extractTar=extractTar;function createTar(r,s,i){return l(this,void 0,void 0,(function*(){(0,p.writeFileSync)(g.join(r,C.ManifestFilename),s.join("\n"));const a=yield getCommands(i,"create");yield execCommands(a,r)}))}s.createTar=createTar},1786:function(r,s,i){"use strict";var a=this&&this.__createBinding||(Object.create?function(r,s,i,a){if(a===undefined)a=i;var A=Object.getOwnPropertyDescriptor(s,i);if(!A||("get"in A?!s.__esModule:A.writable||A.configurable)){A={enumerable:true,get:function(){return s[i]}}}Object.defineProperty(r,a,A)}:function(r,s,i,a){if(a===undefined)a=i;r[a]=s[i]});var A=this&&this.__setModuleDefault||(Object.create?function(r,s){Object.defineProperty(r,"default",{enumerable:true,value:s})}:function(r,s){r["default"]=s});var c=this&&this.__importStar||function(r){if(r&&r.__esModule)return r;var s={};if(r!=null)for(var i in r)if(i!=="default"&&Object.prototype.hasOwnProperty.call(r,i))a(s,r,i);A(s,r);return s};var l=this&&this.__awaiter||function(r,s,i,a){function adopt(r){return r instanceof i?r:new i((function(s){s(r)}))}return new(i||(i=Promise))((function(i,A){function fulfilled(r){try{step(a.next(r))}catch(r){A(r)}}function rejected(r){try{step(a["throw"](r))}catch(r){A(r)}}function step(r){r.done?i(r.value):adopt(r.value).then(fulfilled,rejected)}step((a=a.apply(r,s||[])).next())}))};Object.defineProperty(s,"__esModule",{value:true});s.uploadCacheArchiveSDK=s.UploadProgress=void 0;const d=c(i(42186));const u=i(56903);const p=i(18223);class UploadProgress{constructor(r){this.contentLength=r;this.sentBytes=0;this.displayedComplete=false;this.startTime=Date.now()}setSentBytes(r){this.sentBytes=r}getTransferredBytes(){return this.sentBytes}isDone(){return this.getTransferredBytes()===this.contentLength}display(){if(this.displayedComplete){return}const r=this.sentBytes;const s=(100*(r/this.contentLength)).toFixed(1);const i=Date.now()-this.startTime;const a=(r/(1024*1024)/(i/1e3)).toFixed(1);d.info(`Sent ${r} of ${this.contentLength} (${s}%), ${a} MBs/sec`);if(this.isDone()){this.displayedComplete=true}}onProgress(){return r=>{this.setSentBytes(r.loadedBytes)}}startDisplayTimer(r=1e3){const displayCallback=()=>{this.display();if(!this.isDone()){this.timeoutHandle=setTimeout(displayCallback,r)}};this.timeoutHandle=setTimeout(displayCallback,r)}stopDisplayTimer(){if(this.timeoutHandle){clearTimeout(this.timeoutHandle);this.timeoutHandle=undefined}this.display()}}s.UploadProgress=UploadProgress;function uploadCacheArchiveSDK(r,s,i){var a;return l(this,void 0,void 0,(function*(){const A=new u.BlobClient(r);const c=A.getBlockBlobClient();const l=new UploadProgress((a=i===null||i===void 0?void 0:i.archiveSizeBytes)!==null&&a!==void 0?a:0);const g={blockSize:i===null||i===void 0?void 0:i.uploadChunkSize,concurrency:i===null||i===void 0?void 0:i.uploadConcurrency,maxSingleShotSize:128*1024*1024,onProgress:l.onProgress()};try{l.startDisplayTimer();d.debug(`BlobClient: ${A.name}:${A.accountName}:${A.containerName}`);const r=yield c.uploadFile(s,g);if(r._response.status>=400){throw new p.InvalidResponseError(`uploadCacheArchiveSDK: upload failed with status code ${r._response.status}`)}return r}catch(r){d.warning(`uploadCacheArchiveSDK: internal error uploading cache archive: ${r.message}`);throw r}finally{l.stopDisplayTimer()}}))}s.uploadCacheArchiveSDK=uploadCacheArchiveSDK},76215:function(r,s,i){"use strict";var a=this&&this.__createBinding||(Object.create?function(r,s,i,a){if(a===undefined)a=i;var A=Object.getOwnPropertyDescriptor(s,i);if(!A||("get"in A?!s.__esModule:A.writable||A.configurable)){A={enumerable:true,get:function(){return s[i]}}}Object.defineProperty(r,a,A)}:function(r,s,i,a){if(a===undefined)a=i;r[a]=s[i]});var A=this&&this.__setModuleDefault||(Object.create?function(r,s){Object.defineProperty(r,"default",{enumerable:true,value:s})}:function(r,s){r["default"]=s});var c=this&&this.__importStar||function(r){if(r&&r.__esModule)return r;var s={};if(r!=null)for(var i in r)if(i!=="default"&&Object.prototype.hasOwnProperty.call(r,i))a(s,r,i);A(s,r);return s};Object.defineProperty(s,"__esModule",{value:true});s.getDownloadOptions=s.getUploadOptions=void 0;const l=c(i(42186));function getUploadOptions(r){const s={useAzureSdk:false,uploadConcurrency:4,uploadChunkSize:32*1024*1024};if(r){if(typeof r.useAzureSdk==="boolean"){s.useAzureSdk=r.useAzureSdk}if(typeof r.uploadConcurrency==="number"){s.uploadConcurrency=r.uploadConcurrency}if(typeof r.uploadChunkSize==="number"){s.uploadChunkSize=r.uploadChunkSize}}s.uploadConcurrency=!isNaN(Number(process.env["CACHE_UPLOAD_CONCURRENCY"]))?Math.min(32,Number(process.env["CACHE_UPLOAD_CONCURRENCY"])):s.uploadConcurrency;s.uploadChunkSize=!isNaN(Number(process.env["CACHE_UPLOAD_CHUNK_SIZE"]))?Math.min(128*1024*1024,Number(process.env["CACHE_UPLOAD_CHUNK_SIZE"])*1024*1024):s.uploadChunkSize;l.debug(`Use Azure SDK: ${s.useAzureSdk}`);l.debug(`Upload concurrency: ${s.uploadConcurrency}`);l.debug(`Upload chunk size: ${s.uploadChunkSize}`);return s}s.getUploadOptions=getUploadOptions;function getDownloadOptions(r){const s={useAzureSdk:false,concurrentBlobDownloads:true,downloadConcurrency:8,timeoutInMs:3e4,segmentTimeoutInMs:6e5,lookupOnly:false};if(r){if(typeof r.useAzureSdk==="boolean"){s.useAzureSdk=r.useAzureSdk}if(typeof r.concurrentBlobDownloads==="boolean"){s.concurrentBlobDownloads=r.concurrentBlobDownloads}if(typeof r.downloadConcurrency==="number"){s.downloadConcurrency=r.downloadConcurrency}if(typeof r.timeoutInMs==="number"){s.timeoutInMs=r.timeoutInMs}if(typeof r.segmentTimeoutInMs==="number"){s.segmentTimeoutInMs=r.segmentTimeoutInMs}if(typeof r.lookupOnly==="boolean"){s.lookupOnly=r.lookupOnly}}const i=process.env["SEGMENT_DOWNLOAD_TIMEOUT_MINS"];if(i&&!isNaN(Number(i))&&isFinite(Number(i))){s.segmentTimeoutInMs=Number(i)*60*1e3}l.debug(`Use Azure SDK: ${s.useAzureSdk}`);l.debug(`Download concurrency: ${s.downloadConcurrency}`);l.debug(`Request timeout (ms): ${s.timeoutInMs}`);l.debug(`Cache segment download timeout mins env var: ${process.env["SEGMENT_DOWNLOAD_TIMEOUT_MINS"]}`);l.debug(`Segment download timeout (ms): ${s.segmentTimeoutInMs}`);l.debug(`Lookup only: ${s.lookupOnly}`);return s}s.getDownloadOptions=getDownloadOptions},56903:(r,s,i)=>{"use strict";Object.defineProperty(s,"__esModule",{value:true});var a=i(24607);var A=i(4351);var c=i(94175);var l=i(3233);var d=i(52557);var u=i(22037);var p=i(6113);var g=i(12781);i(74559);var h=i(27094);var C=i(82361);var y=i(57147);var I=i(73837);function _interopNamespace(r){if(r&&r.__esModule)return r;var s=Object.create(null);if(r){Object.keys(r).forEach((function(i){if(i!=="default"){var a=Object.getOwnPropertyDescriptor(r,i);Object.defineProperty(s,i,a.get?a:{enumerable:true,get:function(){return r[i]}})}}))}s["default"]=r;return Object.freeze(s)}var B=_interopNamespace(a);var b=_interopNamespace(u);var Q=_interopNamespace(y);var w=_interopNamespace(I);const v={serializedName:"BlobServiceProperties",xmlName:"StorageServiceProperties",type:{name:"Composite",className:"BlobServiceProperties",modelProperties:{blobAnalyticsLogging:{serializedName:"Logging",xmlName:"Logging",type:{name:"Composite",className:"Logging"}},hourMetrics:{serializedName:"HourMetrics",xmlName:"HourMetrics",type:{name:"Composite",className:"Metrics"}},minuteMetrics:{serializedName:"MinuteMetrics",xmlName:"MinuteMetrics",type:{name:"Composite",className:"Metrics"}},cors:{serializedName:"Cors",xmlName:"Cors",xmlIsWrapped:true,xmlElementName:"CorsRule",type:{name:"Sequence",element:{type:{name:"Composite",className:"CorsRule"}}}},defaultServiceVersion:{serializedName:"DefaultServiceVersion",xmlName:"DefaultServiceVersion",type:{name:"String"}},deleteRetentionPolicy:{serializedName:"DeleteRetentionPolicy",xmlName:"DeleteRetentionPolicy",type:{name:"Composite",className:"RetentionPolicy"}},staticWebsite:{serializedName:"StaticWebsite",xmlName:"StaticWebsite",type:{name:"Composite",className:"StaticWebsite"}}}}};const S={serializedName:"Logging",type:{name:"Composite",className:"Logging",modelProperties:{version:{serializedName:"Version",required:true,xmlName:"Version",type:{name:"String"}},deleteProperty:{serializedName:"Delete",required:true,xmlName:"Delete",type:{name:"Boolean"}},read:{serializedName:"Read",required:true,xmlName:"Read",type:{name:"Boolean"}},write:{serializedName:"Write",required:true,xmlName:"Write",type:{name:"Boolean"}},retentionPolicy:{serializedName:"RetentionPolicy",xmlName:"RetentionPolicy",type:{name:"Composite",className:"RetentionPolicy"}}}}};const R={serializedName:"RetentionPolicy",type:{name:"Composite",className:"RetentionPolicy",modelProperties:{enabled:{serializedName:"Enabled",required:true,xmlName:"Enabled",type:{name:"Boolean"}},days:{constraints:{InclusiveMinimum:1},serializedName:"Days",xmlName:"Days",type:{name:"Number"}}}}};const N={serializedName:"Metrics",type:{name:"Composite",className:"Metrics",modelProperties:{version:{serializedName:"Version",xmlName:"Version",type:{name:"String"}},enabled:{serializedName:"Enabled",required:true,xmlName:"Enabled",type:{name:"Boolean"}},includeAPIs:{serializedName:"IncludeAPIs",xmlName:"IncludeAPIs",type:{name:"Boolean"}},retentionPolicy:{serializedName:"RetentionPolicy",xmlName:"RetentionPolicy",type:{name:"Composite",className:"RetentionPolicy"}}}}};const x={serializedName:"CorsRule",type:{name:"Composite",className:"CorsRule",modelProperties:{allowedOrigins:{serializedName:"AllowedOrigins",required:true,xmlName:"AllowedOrigins",type:{name:"String"}},allowedMethods:{serializedName:"AllowedMethods",required:true,xmlName:"AllowedMethods",type:{name:"String"}},allowedHeaders:{serializedName:"AllowedHeaders",required:true,xmlName:"AllowedHeaders",type:{name:"String"}},exposedHeaders:{serializedName:"ExposedHeaders",required:true,xmlName:"ExposedHeaders",type:{name:"String"}},maxAgeInSeconds:{constraints:{InclusiveMinimum:0},serializedName:"MaxAgeInSeconds",required:true,xmlName:"MaxAgeInSeconds",type:{name:"Number"}}}}};const D={serializedName:"StaticWebsite",type:{name:"Composite",className:"StaticWebsite",modelProperties:{enabled:{serializedName:"Enabled",required:true,xmlName:"Enabled",type:{name:"Boolean"}},indexDocument:{serializedName:"IndexDocument",xmlName:"IndexDocument",type:{name:"String"}},errorDocument404Path:{serializedName:"ErrorDocument404Path",xmlName:"ErrorDocument404Path",type:{name:"String"}},defaultIndexDocumentPath:{serializedName:"DefaultIndexDocumentPath",xmlName:"DefaultIndexDocumentPath",type:{name:"String"}}}}};const k={serializedName:"StorageError",type:{name:"Composite",className:"StorageError",modelProperties:{message:{serializedName:"Message",xmlName:"Message",type:{name:"String"}},code:{serializedName:"Code",xmlName:"Code",type:{name:"String"}}}}};const T={serializedName:"BlobServiceStatistics",xmlName:"StorageServiceStats",type:{name:"Composite",className:"BlobServiceStatistics",modelProperties:{geoReplication:{serializedName:"GeoReplication",xmlName:"GeoReplication",type:{name:"Composite",className:"GeoReplication"}}}}};const _={serializedName:"GeoReplication",type:{name:"Composite",className:"GeoReplication",modelProperties:{status:{serializedName:"Status",required:true,xmlName:"Status",type:{name:"Enum",allowedValues:["live","bootstrap","unavailable"]}},lastSyncOn:{serializedName:"LastSyncTime",required:true,xmlName:"LastSyncTime",type:{name:"DateTimeRfc1123"}}}}};const P={serializedName:"ListContainersSegmentResponse",xmlName:"EnumerationResults",type:{name:"Composite",className:"ListContainersSegmentResponse",modelProperties:{serviceEndpoint:{serializedName:"ServiceEndpoint",required:true,xmlName:"ServiceEndpoint",xmlIsAttribute:true,type:{name:"String"}},prefix:{serializedName:"Prefix",xmlName:"Prefix",type:{name:"String"}},marker:{serializedName:"Marker",xmlName:"Marker",type:{name:"String"}},maxPageSize:{serializedName:"MaxResults",xmlName:"MaxResults",type:{name:"Number"}},containerItems:{serializedName:"ContainerItems",required:true,xmlName:"Containers",xmlIsWrapped:true,xmlElementName:"Container",type:{name:"Sequence",element:{type:{name:"Composite",className:"ContainerItem"}}}},continuationToken:{serializedName:"NextMarker",xmlName:"NextMarker",type:{name:"String"}}}}};const O={serializedName:"ContainerItem",xmlName:"Container",type:{name:"Composite",className:"ContainerItem",modelProperties:{name:{serializedName:"Name",required:true,xmlName:"Name",type:{name:"String"}},deleted:{serializedName:"Deleted",xmlName:"Deleted",type:{name:"Boolean"}},version:{serializedName:"Version",xmlName:"Version",type:{name:"String"}},properties:{serializedName:"Properties",xmlName:"Properties",type:{name:"Composite",className:"ContainerProperties"}},metadata:{serializedName:"Metadata",xmlName:"Metadata",type:{name:"Dictionary",value:{type:{name:"String"}}}}}}};const L={serializedName:"ContainerProperties",type:{name:"Composite",className:"ContainerProperties",modelProperties:{lastModified:{serializedName:"Last-Modified",required:true,xmlName:"Last-Modified",type:{name:"DateTimeRfc1123"}},etag:{serializedName:"Etag",required:true,xmlName:"Etag",type:{name:"String"}},leaseStatus:{serializedName:"LeaseStatus",xmlName:"LeaseStatus",type:{name:"Enum",allowedValues:["locked","unlocked"]}},leaseState:{serializedName:"LeaseState",xmlName:"LeaseState",type:{name:"Enum",allowedValues:["available","leased","expired","breaking","broken"]}},leaseDuration:{serializedName:"LeaseDuration",xmlName:"LeaseDuration",type:{name:"Enum",allowedValues:["infinite","fixed"]}},publicAccess:{serializedName:"PublicAccess",xmlName:"PublicAccess",type:{name:"Enum",allowedValues:["container","blob"]}},hasImmutabilityPolicy:{serializedName:"HasImmutabilityPolicy",xmlName:"HasImmutabilityPolicy",type:{name:"Boolean"}},hasLegalHold:{serializedName:"HasLegalHold",xmlName:"HasLegalHold",type:{name:"Boolean"}},defaultEncryptionScope:{serializedName:"DefaultEncryptionScope",xmlName:"DefaultEncryptionScope",type:{name:"String"}},preventEncryptionScopeOverride:{serializedName:"DenyEncryptionScopeOverride",xmlName:"DenyEncryptionScopeOverride",type:{name:"Boolean"}},deletedOn:{serializedName:"DeletedTime",xmlName:"DeletedTime",type:{name:"DateTimeRfc1123"}},remainingRetentionDays:{serializedName:"RemainingRetentionDays",xmlName:"RemainingRetentionDays",type:{name:"Number"}},isImmutableStorageWithVersioningEnabled:{serializedName:"ImmutableStorageWithVersioningEnabled",xmlName:"ImmutableStorageWithVersioningEnabled",type:{name:"Boolean"}}}}};const M={serializedName:"KeyInfo",type:{name:"Composite",className:"KeyInfo",modelProperties:{startsOn:{serializedName:"Start",required:true,xmlName:"Start",type:{name:"String"}},expiresOn:{serializedName:"Expiry",required:true,xmlName:"Expiry",type:{name:"String"}}}}};const U={serializedName:"UserDelegationKey",type:{name:"Composite",className:"UserDelegationKey",modelProperties:{signedObjectId:{serializedName:"SignedOid",required:true,xmlName:"SignedOid",type:{name:"String"}},signedTenantId:{serializedName:"SignedTid",required:true,xmlName:"SignedTid",type:{name:"String"}},signedStartsOn:{serializedName:"SignedStart",required:true,xmlName:"SignedStart",type:{name:"String"}},signedExpiresOn:{serializedName:"SignedExpiry",required:true,xmlName:"SignedExpiry",type:{name:"String"}},signedService:{serializedName:"SignedService",required:true,xmlName:"SignedService",type:{name:"String"}},signedVersion:{serializedName:"SignedVersion",required:true,xmlName:"SignedVersion",type:{name:"String"}},value:{serializedName:"Value",required:true,xmlName:"Value",type:{name:"String"}}}}};const H={serializedName:"FilterBlobSegment",xmlName:"EnumerationResults",type:{name:"Composite",className:"FilterBlobSegment",modelProperties:{serviceEndpoint:{serializedName:"ServiceEndpoint",required:true,xmlName:"ServiceEndpoint",xmlIsAttribute:true,type:{name:"String"}},where:{serializedName:"Where",required:true,xmlName:"Where",type:{name:"String"}},blobs:{serializedName:"Blobs",required:true,xmlName:"Blobs",xmlIsWrapped:true,xmlElementName:"Blob",type:{name:"Sequence",element:{type:{name:"Composite",className:"FilterBlobItem"}}}},continuationToken:{serializedName:"NextMarker",xmlName:"NextMarker",type:{name:"String"}}}}};const G={serializedName:"FilterBlobItem",xmlName:"Blob",type:{name:"Composite",className:"FilterBlobItem",modelProperties:{name:{serializedName:"Name",required:true,xmlName:"Name",type:{name:"String"}},containerName:{serializedName:"ContainerName",required:true,xmlName:"ContainerName",type:{name:"String"}},tags:{serializedName:"Tags",xmlName:"Tags",type:{name:"Composite",className:"BlobTags"}}}}};const q={serializedName:"BlobTags",xmlName:"Tags",type:{name:"Composite",className:"BlobTags",modelProperties:{blobTagSet:{serializedName:"BlobTagSet",required:true,xmlName:"TagSet",xmlIsWrapped:true,xmlElementName:"Tag",type:{name:"Sequence",element:{type:{name:"Composite",className:"BlobTag"}}}}}}};const V={serializedName:"BlobTag",xmlName:"Tag",type:{name:"Composite",className:"BlobTag",modelProperties:{key:{serializedName:"Key",required:true,xmlName:"Key",type:{name:"String"}},value:{serializedName:"Value",required:true,xmlName:"Value",type:{name:"String"}}}}};const j={serializedName:"SignedIdentifier",xmlName:"SignedIdentifier",type:{name:"Composite",className:"SignedIdentifier",modelProperties:{id:{serializedName:"Id",required:true,xmlName:"Id",type:{name:"String"}},accessPolicy:{serializedName:"AccessPolicy",xmlName:"AccessPolicy",type:{name:"Composite",className:"AccessPolicy"}}}}};const z={serializedName:"AccessPolicy",type:{name:"Composite",className:"AccessPolicy",modelProperties:{startsOn:{serializedName:"Start",xmlName:"Start",type:{name:"String"}},expiresOn:{serializedName:"Expiry",xmlName:"Expiry",type:{name:"String"}},permissions:{serializedName:"Permission",xmlName:"Permission",type:{name:"String"}}}}};const Y={serializedName:"ListBlobsFlatSegmentResponse",xmlName:"EnumerationResults",type:{name:"Composite",className:"ListBlobsFlatSegmentResponse",modelProperties:{serviceEndpoint:{serializedName:"ServiceEndpoint",required:true,xmlName:"ServiceEndpoint",xmlIsAttribute:true,type:{name:"String"}},containerName:{serializedName:"ContainerName",required:true,xmlName:"ContainerName",xmlIsAttribute:true,type:{name:"String"}},prefix:{serializedName:"Prefix",xmlName:"Prefix",type:{name:"String"}},marker:{serializedName:"Marker",xmlName:"Marker",type:{name:"String"}},maxPageSize:{serializedName:"MaxResults",xmlName:"MaxResults",type:{name:"Number"}},segment:{serializedName:"Segment",xmlName:"Blobs",type:{name:"Composite",className:"BlobFlatListSegment"}},continuationToken:{serializedName:"NextMarker",xmlName:"NextMarker",type:{name:"String"}}}}};const J={serializedName:"BlobFlatListSegment",xmlName:"Blobs",type:{name:"Composite",className:"BlobFlatListSegment",modelProperties:{blobItems:{serializedName:"BlobItems",required:true,xmlName:"BlobItems",xmlElementName:"Blob",type:{name:"Sequence",element:{type:{name:"Composite",className:"BlobItemInternal"}}}}}}};const W={serializedName:"BlobItemInternal",xmlName:"Blob",type:{name:"Composite",className:"BlobItemInternal",modelProperties:{name:{serializedName:"Name",xmlName:"Name",type:{name:"Composite",className:"BlobName"}},deleted:{serializedName:"Deleted",required:true,xmlName:"Deleted",type:{name:"Boolean"}},snapshot:{serializedName:"Snapshot",required:true,xmlName:"Snapshot",type:{name:"String"}},versionId:{serializedName:"VersionId",xmlName:"VersionId",type:{name:"String"}},isCurrentVersion:{serializedName:"IsCurrentVersion",xmlName:"IsCurrentVersion",type:{name:"Boolean"}},properties:{serializedName:"Properties",xmlName:"Properties",type:{name:"Composite",className:"BlobPropertiesInternal"}},metadata:{serializedName:"Metadata",xmlName:"Metadata",type:{name:"Dictionary",value:{type:{name:"String"}}}},blobTags:{serializedName:"BlobTags",xmlName:"Tags",type:{name:"Composite",className:"BlobTags"}},objectReplicationMetadata:{serializedName:"ObjectReplicationMetadata",xmlName:"OrMetadata",type:{name:"Dictionary",value:{type:{name:"String"}}}},hasVersionsOnly:{serializedName:"HasVersionsOnly",xmlName:"HasVersionsOnly",type:{name:"Boolean"}}}}};const X={serializedName:"BlobName",type:{name:"Composite",className:"BlobName",modelProperties:{encoded:{serializedName:"Encoded",xmlName:"Encoded",xmlIsAttribute:true,type:{name:"Boolean"}},content:{serializedName:"content",xmlName:"content",xmlIsMsText:true,type:{name:"String"}}}}};const $={serializedName:"BlobPropertiesInternal",xmlName:"Properties",type:{name:"Composite",className:"BlobPropertiesInternal",modelProperties:{createdOn:{serializedName:"Creation-Time",xmlName:"Creation-Time",type:{name:"DateTimeRfc1123"}},lastModified:{serializedName:"Last-Modified",required:true,xmlName:"Last-Modified",type:{name:"DateTimeRfc1123"}},etag:{serializedName:"Etag",required:true,xmlName:"Etag",type:{name:"String"}},contentLength:{serializedName:"Content-Length",xmlName:"Content-Length",type:{name:"Number"}},contentType:{serializedName:"Content-Type",xmlName:"Content-Type",type:{name:"String"}},contentEncoding:{serializedName:"Content-Encoding",xmlName:"Content-Encoding",type:{name:"String"}},contentLanguage:{serializedName:"Content-Language",xmlName:"Content-Language",type:{name:"String"}},contentMD5:{serializedName:"Content-MD5",xmlName:"Content-MD5",type:{name:"ByteArray"}},contentDisposition:{serializedName:"Content-Disposition",xmlName:"Content-Disposition",type:{name:"String"}},cacheControl:{serializedName:"Cache-Control",xmlName:"Cache-Control",type:{name:"String"}},blobSequenceNumber:{serializedName:"x-ms-blob-sequence-number",xmlName:"x-ms-blob-sequence-number",type:{name:"Number"}},blobType:{serializedName:"BlobType",xmlName:"BlobType",type:{name:"Enum",allowedValues:["BlockBlob","PageBlob","AppendBlob"]}},leaseStatus:{serializedName:"LeaseStatus",xmlName:"LeaseStatus",type:{name:"Enum",allowedValues:["locked","unlocked"]}},leaseState:{serializedName:"LeaseState",xmlName:"LeaseState",type:{name:"Enum",allowedValues:["available","leased","expired","breaking","broken"]}},leaseDuration:{serializedName:"LeaseDuration",xmlName:"LeaseDuration",type:{name:"Enum",allowedValues:["infinite","fixed"]}},copyId:{serializedName:"CopyId",xmlName:"CopyId",type:{name:"String"}},copyStatus:{serializedName:"CopyStatus",xmlName:"CopyStatus",type:{name:"Enum",allowedValues:["pending","success","aborted","failed"]}},copySource:{serializedName:"CopySource",xmlName:"CopySource",type:{name:"String"}},copyProgress:{serializedName:"CopyProgress",xmlName:"CopyProgress",type:{name:"String"}},copyCompletedOn:{serializedName:"CopyCompletionTime",xmlName:"CopyCompletionTime",type:{name:"DateTimeRfc1123"}},copyStatusDescription:{serializedName:"CopyStatusDescription",xmlName:"CopyStatusDescription",type:{name:"String"}},serverEncrypted:{serializedName:"ServerEncrypted",xmlName:"ServerEncrypted",type:{name:"Boolean"}},incrementalCopy:{serializedName:"IncrementalCopy",xmlName:"IncrementalCopy",type:{name:"Boolean"}},destinationSnapshot:{serializedName:"DestinationSnapshot",xmlName:"DestinationSnapshot",type:{name:"String"}},deletedOn:{serializedName:"DeletedTime",xmlName:"DeletedTime",type:{name:"DateTimeRfc1123"}},remainingRetentionDays:{serializedName:"RemainingRetentionDays",xmlName:"RemainingRetentionDays",type:{name:"Number"}},accessTier:{serializedName:"AccessTier",xmlName:"AccessTier",type:{name:"Enum",allowedValues:["P4","P6","P10","P15","P20","P30","P40","P50","P60","P70","P80","Hot","Cool","Archive","Cold"]}},accessTierInferred:{serializedName:"AccessTierInferred",xmlName:"AccessTierInferred",type:{name:"Boolean"}},archiveStatus:{serializedName:"ArchiveStatus",xmlName:"ArchiveStatus",type:{name:"Enum",allowedValues:["rehydrate-pending-to-hot","rehydrate-pending-to-cool"]}},customerProvidedKeySha256:{serializedName:"CustomerProvidedKeySha256",xmlName:"CustomerProvidedKeySha256",type:{name:"String"}},encryptionScope:{serializedName:"EncryptionScope",xmlName:"EncryptionScope",type:{name:"String"}},accessTierChangedOn:{serializedName:"AccessTierChangeTime",xmlName:"AccessTierChangeTime",type:{name:"DateTimeRfc1123"}},tagCount:{serializedName:"TagCount",xmlName:"TagCount",type:{name:"Number"}},expiresOn:{serializedName:"Expiry-Time",xmlName:"Expiry-Time",type:{name:"DateTimeRfc1123"}},isSealed:{serializedName:"Sealed",xmlName:"Sealed",type:{name:"Boolean"}},rehydratePriority:{serializedName:"RehydratePriority",xmlName:"RehydratePriority",type:{name:"Enum",allowedValues:["High","Standard"]}},lastAccessedOn:{serializedName:"LastAccessTime",xmlName:"LastAccessTime",type:{name:"DateTimeRfc1123"}},immutabilityPolicyExpiresOn:{serializedName:"ImmutabilityPolicyUntilDate",xmlName:"ImmutabilityPolicyUntilDate",type:{name:"DateTimeRfc1123"}},immutabilityPolicyMode:{serializedName:"ImmutabilityPolicyMode",xmlName:"ImmutabilityPolicyMode",type:{name:"Enum",allowedValues:["Mutable","Unlocked","Locked"]}},legalHold:{serializedName:"LegalHold",xmlName:"LegalHold",type:{name:"Boolean"}}}}};const K={serializedName:"ListBlobsHierarchySegmentResponse",xmlName:"EnumerationResults",type:{name:"Composite",className:"ListBlobsHierarchySegmentResponse",modelProperties:{serviceEndpoint:{serializedName:"ServiceEndpoint",required:true,xmlName:"ServiceEndpoint",xmlIsAttribute:true,type:{name:"String"}},containerName:{serializedName:"ContainerName",required:true,xmlName:"ContainerName",xmlIsAttribute:true,type:{name:"String"}},prefix:{serializedName:"Prefix",xmlName:"Prefix",type:{name:"String"}},marker:{serializedName:"Marker",xmlName:"Marker",type:{name:"String"}},maxPageSize:{serializedName:"MaxResults",xmlName:"MaxResults",type:{name:"Number"}},delimiter:{serializedName:"Delimiter",xmlName:"Delimiter",type:{name:"String"}},segment:{serializedName:"Segment",xmlName:"Blobs",type:{name:"Composite",className:"BlobHierarchyListSegment"}},continuationToken:{serializedName:"NextMarker",xmlName:"NextMarker",type:{name:"String"}}}}};const Z={serializedName:"BlobHierarchyListSegment",xmlName:"Blobs",type:{name:"Composite",className:"BlobHierarchyListSegment",modelProperties:{blobPrefixes:{serializedName:"BlobPrefixes",xmlName:"BlobPrefixes",xmlElementName:"BlobPrefix",type:{name:"Sequence",element:{type:{name:"Composite",className:"BlobPrefix"}}}},blobItems:{serializedName:"BlobItems",required:true,xmlName:"BlobItems",xmlElementName:"Blob",type:{name:"Sequence",element:{type:{name:"Composite",className:"BlobItemInternal"}}}}}}};const ee={serializedName:"BlobPrefix",type:{name:"Composite",className:"BlobPrefix",modelProperties:{name:{serializedName:"Name",xmlName:"Name",type:{name:"Composite",className:"BlobName"}}}}};const te={serializedName:"BlockLookupList",xmlName:"BlockList",type:{name:"Composite",className:"BlockLookupList",modelProperties:{committed:{serializedName:"Committed",xmlName:"Committed",xmlElementName:"Committed",type:{name:"Sequence",element:{type:{name:"String"}}}},uncommitted:{serializedName:"Uncommitted",xmlName:"Uncommitted",xmlElementName:"Uncommitted",type:{name:"Sequence",element:{type:{name:"String"}}}},latest:{serializedName:"Latest",xmlName:"Latest",xmlElementName:"Latest",type:{name:"Sequence",element:{type:{name:"String"}}}}}}};const re={serializedName:"BlockList",type:{name:"Composite",className:"BlockList",modelProperties:{committedBlocks:{serializedName:"CommittedBlocks",xmlName:"CommittedBlocks",xmlIsWrapped:true,xmlElementName:"Block",type:{name:"Sequence",element:{type:{name:"Composite",className:"Block"}}}},uncommittedBlocks:{serializedName:"UncommittedBlocks",xmlName:"UncommittedBlocks",xmlIsWrapped:true,xmlElementName:"Block",type:{name:"Sequence",element:{type:{name:"Composite",className:"Block"}}}}}}};const ne={serializedName:"Block",type:{name:"Composite",className:"Block",modelProperties:{name:{serializedName:"Name",required:true,xmlName:"Name",type:{name:"String"}},size:{serializedName:"Size",required:true,xmlName:"Size",type:{name:"Number"}}}}};const se={serializedName:"PageList",type:{name:"Composite",className:"PageList",modelProperties:{pageRange:{serializedName:"PageRange",xmlName:"PageRange",xmlElementName:"PageRange",type:{name:"Sequence",element:{type:{name:"Composite",className:"PageRange"}}}},clearRange:{serializedName:"ClearRange",xmlName:"ClearRange",xmlElementName:"ClearRange",type:{name:"Sequence",element:{type:{name:"Composite",className:"ClearRange"}}}},continuationToken:{serializedName:"NextMarker",xmlName:"NextMarker",type:{name:"String"}}}}};const ie={serializedName:"PageRange",xmlName:"PageRange",type:{name:"Composite",className:"PageRange",modelProperties:{start:{serializedName:"Start",required:true,xmlName:"Start",type:{name:"Number"}},end:{serializedName:"End",required:true,xmlName:"End",type:{name:"Number"}}}}};const oe={serializedName:"ClearRange",xmlName:"ClearRange",type:{name:"Composite",className:"ClearRange",modelProperties:{start:{serializedName:"Start",required:true,xmlName:"Start",type:{name:"Number"}},end:{serializedName:"End",required:true,xmlName:"End",type:{name:"Number"}}}}};const ae={serializedName:"QueryRequest",xmlName:"QueryRequest",type:{name:"Composite",className:"QueryRequest",modelProperties:{queryType:{serializedName:"QueryType",required:true,xmlName:"QueryType",type:{name:"String"}},expression:{serializedName:"Expression",required:true,xmlName:"Expression",type:{name:"String"}},inputSerialization:{serializedName:"InputSerialization",xmlName:"InputSerialization",type:{name:"Composite",className:"QuerySerialization"}},outputSerialization:{serializedName:"OutputSerialization",xmlName:"OutputSerialization",type:{name:"Composite",className:"QuerySerialization"}}}}};const Ae={serializedName:"QuerySerialization",type:{name:"Composite",className:"QuerySerialization",modelProperties:{format:{serializedName:"Format",xmlName:"Format",type:{name:"Composite",className:"QueryFormat"}}}}};const ce={serializedName:"QueryFormat",type:{name:"Composite",className:"QueryFormat",modelProperties:{type:{serializedName:"Type",required:true,xmlName:"Type",type:{name:"Enum",allowedValues:["delimited","json","arrow","parquet"]}},delimitedTextConfiguration:{serializedName:"DelimitedTextConfiguration",xmlName:"DelimitedTextConfiguration",type:{name:"Composite",className:"DelimitedTextConfiguration"}},jsonTextConfiguration:{serializedName:"JsonTextConfiguration",xmlName:"JsonTextConfiguration",type:{name:"Composite",className:"JsonTextConfiguration"}},arrowConfiguration:{serializedName:"ArrowConfiguration",xmlName:"ArrowConfiguration",type:{name:"Composite",className:"ArrowConfiguration"}},parquetTextConfiguration:{serializedName:"ParquetTextConfiguration",xmlName:"ParquetTextConfiguration",type:{name:"any"}}}}};const le={serializedName:"DelimitedTextConfiguration",xmlName:"DelimitedTextConfiguration",type:{name:"Composite",className:"DelimitedTextConfiguration",modelProperties:{columnSeparator:{serializedName:"ColumnSeparator",xmlName:"ColumnSeparator",type:{name:"String"}},fieldQuote:{serializedName:"FieldQuote",xmlName:"FieldQuote",type:{name:"String"}},recordSeparator:{serializedName:"RecordSeparator",xmlName:"RecordSeparator",type:{name:"String"}},escapeChar:{serializedName:"EscapeChar",xmlName:"EscapeChar",type:{name:"String"}},headersPresent:{serializedName:"HeadersPresent",xmlName:"HasHeaders",type:{name:"Boolean"}}}}};const de={serializedName:"JsonTextConfiguration",xmlName:"JsonTextConfiguration",type:{name:"Composite",className:"JsonTextConfiguration",modelProperties:{recordSeparator:{serializedName:"RecordSeparator",xmlName:"RecordSeparator",type:{name:"String"}}}}};const ue={serializedName:"ArrowConfiguration",xmlName:"ArrowConfiguration",type:{name:"Composite",className:"ArrowConfiguration",modelProperties:{schema:{serializedName:"Schema",required:true,xmlName:"Schema",xmlIsWrapped:true,xmlElementName:"Field",type:{name:"Sequence",element:{type:{name:"Composite",className:"ArrowField"}}}}}}};const pe={serializedName:"ArrowField",xmlName:"Field",type:{name:"Composite",className:"ArrowField",modelProperties:{type:{serializedName:"Type",required:true,xmlName:"Type",type:{name:"String"}},name:{serializedName:"Name",xmlName:"Name",type:{name:"String"}},precision:{serializedName:"Precision",xmlName:"Precision",type:{name:"Number"}},scale:{serializedName:"Scale",xmlName:"Scale",type:{name:"Number"}}}}};const ge={serializedName:"Service_setPropertiesHeaders",type:{name:"Composite",className:"ServiceSetPropertiesHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const he={serializedName:"Service_setPropertiesExceptionHeaders",type:{name:"Composite",className:"ServiceSetPropertiesExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const me={serializedName:"Service_getPropertiesHeaders",type:{name:"Composite",className:"ServiceGetPropertiesHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const fe={serializedName:"Service_getPropertiesExceptionHeaders",type:{name:"Composite",className:"ServiceGetPropertiesExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Ee={serializedName:"Service_getStatisticsHeaders",type:{name:"Composite",className:"ServiceGetStatisticsHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Ce={serializedName:"Service_getStatisticsExceptionHeaders",type:{name:"Composite",className:"ServiceGetStatisticsExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const ye={serializedName:"Service_listContainersSegmentHeaders",type:{name:"Composite",className:"ServiceListContainersSegmentHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Ie={serializedName:"Service_listContainersSegmentExceptionHeaders",type:{name:"Composite",className:"ServiceListContainersSegmentExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Be={serializedName:"Service_getUserDelegationKeyHeaders",type:{name:"Composite",className:"ServiceGetUserDelegationKeyHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const be={serializedName:"Service_getUserDelegationKeyExceptionHeaders",type:{name:"Composite",className:"ServiceGetUserDelegationKeyExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Qe={serializedName:"Service_getAccountInfoHeaders",type:{name:"Composite",className:"ServiceGetAccountInfoHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},skuName:{serializedName:"x-ms-sku-name",xmlName:"x-ms-sku-name",type:{name:"Enum",allowedValues:["Standard_LRS","Standard_GRS","Standard_RAGRS","Standard_ZRS","Premium_LRS"]}},accountKind:{serializedName:"x-ms-account-kind",xmlName:"x-ms-account-kind",type:{name:"Enum",allowedValues:["Storage","BlobStorage","StorageV2","FileStorage","BlockBlobStorage"]}},isHierarchicalNamespaceEnabled:{serializedName:"x-ms-is-hns-enabled",xmlName:"x-ms-is-hns-enabled",type:{name:"Boolean"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const we={serializedName:"Service_getAccountInfoExceptionHeaders",type:{name:"Composite",className:"ServiceGetAccountInfoExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const ve={serializedName:"Service_submitBatchHeaders",type:{name:"Composite",className:"ServiceSubmitBatchHeaders",modelProperties:{contentType:{serializedName:"content-type",xmlName:"content-type",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Se={serializedName:"Service_submitBatchExceptionHeaders",type:{name:"Composite",className:"ServiceSubmitBatchExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Re={serializedName:"Service_filterBlobsHeaders",type:{name:"Composite",className:"ServiceFilterBlobsHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Ne={serializedName:"Service_filterBlobsExceptionHeaders",type:{name:"Composite",className:"ServiceFilterBlobsExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const xe={serializedName:"Container_createHeaders",type:{name:"Composite",className:"ContainerCreateHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const De={serializedName:"Container_createExceptionHeaders",type:{name:"Composite",className:"ContainerCreateExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const ke={serializedName:"Container_getPropertiesHeaders",type:{name:"Composite",className:"ContainerGetPropertiesHeaders",modelProperties:{metadata:{serializedName:"x-ms-meta",xmlName:"x-ms-meta",type:{name:"Dictionary",value:{type:{name:"String"}}},headerCollectionPrefix:"x-ms-meta-"},etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},leaseDuration:{serializedName:"x-ms-lease-duration",xmlName:"x-ms-lease-duration",type:{name:"Enum",allowedValues:["infinite","fixed"]}},leaseState:{serializedName:"x-ms-lease-state",xmlName:"x-ms-lease-state",type:{name:"Enum",allowedValues:["available","leased","expired","breaking","broken"]}},leaseStatus:{serializedName:"x-ms-lease-status",xmlName:"x-ms-lease-status",type:{name:"Enum",allowedValues:["locked","unlocked"]}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},blobPublicAccess:{serializedName:"x-ms-blob-public-access",xmlName:"x-ms-blob-public-access",type:{name:"Enum",allowedValues:["container","blob"]}},hasImmutabilityPolicy:{serializedName:"x-ms-has-immutability-policy",xmlName:"x-ms-has-immutability-policy",type:{name:"Boolean"}},hasLegalHold:{serializedName:"x-ms-has-legal-hold",xmlName:"x-ms-has-legal-hold",type:{name:"Boolean"}},defaultEncryptionScope:{serializedName:"x-ms-default-encryption-scope",xmlName:"x-ms-default-encryption-scope",type:{name:"String"}},denyEncryptionScopeOverride:{serializedName:"x-ms-deny-encryption-scope-override",xmlName:"x-ms-deny-encryption-scope-override",type:{name:"Boolean"}},isImmutableStorageWithVersioningEnabled:{serializedName:"x-ms-immutable-storage-with-versioning-enabled",xmlName:"x-ms-immutable-storage-with-versioning-enabled",type:{name:"Boolean"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Te={serializedName:"Container_getPropertiesExceptionHeaders",type:{name:"Composite",className:"ContainerGetPropertiesExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const _e={serializedName:"Container_deleteHeaders",type:{name:"Composite",className:"ContainerDeleteHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Pe={serializedName:"Container_deleteExceptionHeaders",type:{name:"Composite",className:"ContainerDeleteExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Oe={serializedName:"Container_setMetadataHeaders",type:{name:"Composite",className:"ContainerSetMetadataHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Fe={serializedName:"Container_setMetadataExceptionHeaders",type:{name:"Composite",className:"ContainerSetMetadataExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Le={serializedName:"Container_getAccessPolicyHeaders",type:{name:"Composite",className:"ContainerGetAccessPolicyHeaders",modelProperties:{blobPublicAccess:{serializedName:"x-ms-blob-public-access",xmlName:"x-ms-blob-public-access",type:{name:"Enum",allowedValues:["container","blob"]}},etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Me={serializedName:"Container_getAccessPolicyExceptionHeaders",type:{name:"Composite",className:"ContainerGetAccessPolicyExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Ue={serializedName:"Container_setAccessPolicyHeaders",type:{name:"Composite",className:"ContainerSetAccessPolicyHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const He={serializedName:"Container_setAccessPolicyExceptionHeaders",type:{name:"Composite",className:"ContainerSetAccessPolicyExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Ge={serializedName:"Container_restoreHeaders",type:{name:"Composite",className:"ContainerRestoreHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const qe={serializedName:"Container_restoreExceptionHeaders",type:{name:"Composite",className:"ContainerRestoreExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Ve={serializedName:"Container_renameHeaders",type:{name:"Composite",className:"ContainerRenameHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const je={serializedName:"Container_renameExceptionHeaders",type:{name:"Composite",className:"ContainerRenameExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const ze={serializedName:"Container_submitBatchHeaders",type:{name:"Composite",className:"ContainerSubmitBatchHeaders",modelProperties:{contentType:{serializedName:"content-type",xmlName:"content-type",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}}}}};const Ye={serializedName:"Container_submitBatchExceptionHeaders",type:{name:"Composite",className:"ContainerSubmitBatchExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Je={serializedName:"Container_filterBlobsHeaders",type:{name:"Composite",className:"ContainerFilterBlobsHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}}}}};const We={serializedName:"Container_filterBlobsExceptionHeaders",type:{name:"Composite",className:"ContainerFilterBlobsExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Xe={serializedName:"Container_acquireLeaseHeaders",type:{name:"Composite",className:"ContainerAcquireLeaseHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},leaseId:{serializedName:"x-ms-lease-id",xmlName:"x-ms-lease-id",type:{name:"String"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}}}}};const $e={serializedName:"Container_acquireLeaseExceptionHeaders",type:{name:"Composite",className:"ContainerAcquireLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Ke={serializedName:"Container_releaseLeaseHeaders",type:{name:"Composite",className:"ContainerReleaseLeaseHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}}}}};const Ze={serializedName:"Container_releaseLeaseExceptionHeaders",type:{name:"Composite",className:"ContainerReleaseLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const et={serializedName:"Container_renewLeaseHeaders",type:{name:"Composite",className:"ContainerRenewLeaseHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},leaseId:{serializedName:"x-ms-lease-id",xmlName:"x-ms-lease-id",type:{name:"String"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}}}}};const tt={serializedName:"Container_renewLeaseExceptionHeaders",type:{name:"Composite",className:"ContainerRenewLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const rt={serializedName:"Container_breakLeaseHeaders",type:{name:"Composite",className:"ContainerBreakLeaseHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},leaseTime:{serializedName:"x-ms-lease-time",xmlName:"x-ms-lease-time",type:{name:"Number"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}}}}};const nt={serializedName:"Container_breakLeaseExceptionHeaders",type:{name:"Composite",className:"ContainerBreakLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const st={serializedName:"Container_changeLeaseHeaders",type:{name:"Composite",className:"ContainerChangeLeaseHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},leaseId:{serializedName:"x-ms-lease-id",xmlName:"x-ms-lease-id",type:{name:"String"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}}}}};const it={serializedName:"Container_changeLeaseExceptionHeaders",type:{name:"Composite",className:"ContainerChangeLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const ot={serializedName:"Container_listBlobFlatSegmentHeaders",type:{name:"Composite",className:"ContainerListBlobFlatSegmentHeaders",modelProperties:{contentType:{serializedName:"content-type",xmlName:"content-type",type:{name:"String"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const At={serializedName:"Container_listBlobFlatSegmentExceptionHeaders",type:{name:"Composite",className:"ContainerListBlobFlatSegmentExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const ct={serializedName:"Container_listBlobHierarchySegmentHeaders",type:{name:"Composite",className:"ContainerListBlobHierarchySegmentHeaders",modelProperties:{contentType:{serializedName:"content-type",xmlName:"content-type",type:{name:"String"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const dt={serializedName:"Container_listBlobHierarchySegmentExceptionHeaders",type:{name:"Composite",className:"ContainerListBlobHierarchySegmentExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const ut={serializedName:"Container_getAccountInfoHeaders",type:{name:"Composite",className:"ContainerGetAccountInfoHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},skuName:{serializedName:"x-ms-sku-name",xmlName:"x-ms-sku-name",type:{name:"Enum",allowedValues:["Standard_LRS","Standard_GRS","Standard_RAGRS","Standard_ZRS","Premium_LRS"]}},accountKind:{serializedName:"x-ms-account-kind",xmlName:"x-ms-account-kind",type:{name:"Enum",allowedValues:["Storage","BlobStorage","StorageV2","FileStorage","BlockBlobStorage"]}}}}};const pt={serializedName:"Container_getAccountInfoExceptionHeaders",type:{name:"Composite",className:"ContainerGetAccountInfoExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const ht={serializedName:"Blob_downloadHeaders",type:{name:"Composite",className:"BlobDownloadHeaders",modelProperties:{lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},createdOn:{serializedName:"x-ms-creation-time",xmlName:"x-ms-creation-time",type:{name:"DateTimeRfc1123"}},metadata:{serializedName:"x-ms-meta",xmlName:"x-ms-meta",type:{name:"Dictionary",value:{type:{name:"String"}}},headerCollectionPrefix:"x-ms-meta-"},objectReplicationPolicyId:{serializedName:"x-ms-or-policy-id",xmlName:"x-ms-or-policy-id",type:{name:"String"}},objectReplicationRules:{serializedName:"x-ms-or",xmlName:"x-ms-or",type:{name:"Dictionary",value:{type:{name:"String"}}},headerCollectionPrefix:"x-ms-or-"},contentLength:{serializedName:"content-length",xmlName:"content-length",type:{name:"Number"}},contentType:{serializedName:"content-type",xmlName:"content-type",type:{name:"String"}},contentRange:{serializedName:"content-range",xmlName:"content-range",type:{name:"String"}},etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},contentEncoding:{serializedName:"content-encoding",xmlName:"content-encoding",type:{name:"String"}},cacheControl:{serializedName:"cache-control",xmlName:"cache-control",type:{name:"String"}},contentDisposition:{serializedName:"content-disposition",xmlName:"content-disposition",type:{name:"String"}},contentLanguage:{serializedName:"content-language",xmlName:"content-language",type:{name:"String"}},blobSequenceNumber:{serializedName:"x-ms-blob-sequence-number",xmlName:"x-ms-blob-sequence-number",type:{name:"Number"}},blobType:{serializedName:"x-ms-blob-type",xmlName:"x-ms-blob-type",type:{name:"Enum",allowedValues:["BlockBlob","PageBlob","AppendBlob"]}},copyCompletedOn:{serializedName:"x-ms-copy-completion-time",xmlName:"x-ms-copy-completion-time",type:{name:"DateTimeRfc1123"}},copyStatusDescription:{serializedName:"x-ms-copy-status-description",xmlName:"x-ms-copy-status-description",type:{name:"String"}},copyId:{serializedName:"x-ms-copy-id",xmlName:"x-ms-copy-id",type:{name:"String"}},copyProgress:{serializedName:"x-ms-copy-progress",xmlName:"x-ms-copy-progress",type:{name:"String"}},copySource:{serializedName:"x-ms-copy-source",xmlName:"x-ms-copy-source",type:{name:"String"}},copyStatus:{serializedName:"x-ms-copy-status",xmlName:"x-ms-copy-status",type:{name:"Enum",allowedValues:["pending","success","aborted","failed"]}},leaseDuration:{serializedName:"x-ms-lease-duration",xmlName:"x-ms-lease-duration",type:{name:"Enum",allowedValues:["infinite","fixed"]}},leaseState:{serializedName:"x-ms-lease-state",xmlName:"x-ms-lease-state",type:{name:"Enum",allowedValues:["available","leased","expired","breaking","broken"]}},leaseStatus:{serializedName:"x-ms-lease-status",xmlName:"x-ms-lease-status",type:{name:"Enum",allowedValues:["locked","unlocked"]}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},versionId:{serializedName:"x-ms-version-id",xmlName:"x-ms-version-id",type:{name:"String"}},isCurrentVersion:{serializedName:"x-ms-is-current-version",xmlName:"x-ms-is-current-version",type:{name:"Boolean"}},acceptRanges:{serializedName:"accept-ranges",xmlName:"accept-ranges",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},blobCommittedBlockCount:{serializedName:"x-ms-blob-committed-block-count",xmlName:"x-ms-blob-committed-block-count",type:{name:"Number"}},isServerEncrypted:{serializedName:"x-ms-server-encrypted",xmlName:"x-ms-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},blobContentMD5:{serializedName:"x-ms-blob-content-md5",xmlName:"x-ms-blob-content-md5",type:{name:"ByteArray"}},tagCount:{serializedName:"x-ms-tag-count",xmlName:"x-ms-tag-count",type:{name:"Number"}},isSealed:{serializedName:"x-ms-blob-sealed",xmlName:"x-ms-blob-sealed",type:{name:"Boolean"}},lastAccessed:{serializedName:"x-ms-last-access-time",xmlName:"x-ms-last-access-time",type:{name:"DateTimeRfc1123"}},immutabilityPolicyExpiresOn:{serializedName:"x-ms-immutability-policy-until-date",xmlName:"x-ms-immutability-policy-until-date",type:{name:"DateTimeRfc1123"}},immutabilityPolicyMode:{serializedName:"x-ms-immutability-policy-mode",xmlName:"x-ms-immutability-policy-mode",type:{name:"Enum",allowedValues:["Mutable","Unlocked","Locked"]}},legalHold:{serializedName:"x-ms-legal-hold",xmlName:"x-ms-legal-hold",type:{name:"Boolean"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}},contentCrc64:{serializedName:"x-ms-content-crc64",xmlName:"x-ms-content-crc64",type:{name:"ByteArray"}}}}};const mt={serializedName:"Blob_downloadExceptionHeaders",type:{name:"Composite",className:"BlobDownloadExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const ft={serializedName:"Blob_getPropertiesHeaders",type:{name:"Composite",className:"BlobGetPropertiesHeaders",modelProperties:{lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},createdOn:{serializedName:"x-ms-creation-time",xmlName:"x-ms-creation-time",type:{name:"DateTimeRfc1123"}},metadata:{serializedName:"x-ms-meta",xmlName:"x-ms-meta",type:{name:"Dictionary",value:{type:{name:"String"}}},headerCollectionPrefix:"x-ms-meta-"},objectReplicationPolicyId:{serializedName:"x-ms-or-policy-id",xmlName:"x-ms-or-policy-id",type:{name:"String"}},objectReplicationRules:{serializedName:"x-ms-or",xmlName:"x-ms-or",type:{name:"Dictionary",value:{type:{name:"String"}}},headerCollectionPrefix:"x-ms-or-"},blobType:{serializedName:"x-ms-blob-type",xmlName:"x-ms-blob-type",type:{name:"Enum",allowedValues:["BlockBlob","PageBlob","AppendBlob"]}},copyCompletedOn:{serializedName:"x-ms-copy-completion-time",xmlName:"x-ms-copy-completion-time",type:{name:"DateTimeRfc1123"}},copyStatusDescription:{serializedName:"x-ms-copy-status-description",xmlName:"x-ms-copy-status-description",type:{name:"String"}},copyId:{serializedName:"x-ms-copy-id",xmlName:"x-ms-copy-id",type:{name:"String"}},copyProgress:{serializedName:"x-ms-copy-progress",xmlName:"x-ms-copy-progress",type:{name:"String"}},copySource:{serializedName:"x-ms-copy-source",xmlName:"x-ms-copy-source",type:{name:"String"}},copyStatus:{serializedName:"x-ms-copy-status",xmlName:"x-ms-copy-status",type:{name:"Enum",allowedValues:["pending","success","aborted","failed"]}},isIncrementalCopy:{serializedName:"x-ms-incremental-copy",xmlName:"x-ms-incremental-copy",type:{name:"Boolean"}},destinationSnapshot:{serializedName:"x-ms-copy-destination-snapshot",xmlName:"x-ms-copy-destination-snapshot",type:{name:"String"}},leaseDuration:{serializedName:"x-ms-lease-duration",xmlName:"x-ms-lease-duration",type:{name:"Enum",allowedValues:["infinite","fixed"]}},leaseState:{serializedName:"x-ms-lease-state",xmlName:"x-ms-lease-state",type:{name:"Enum",allowedValues:["available","leased","expired","breaking","broken"]}},leaseStatus:{serializedName:"x-ms-lease-status",xmlName:"x-ms-lease-status",type:{name:"Enum",allowedValues:["locked","unlocked"]}},contentLength:{serializedName:"content-length",xmlName:"content-length",type:{name:"Number"}},contentType:{serializedName:"content-type",xmlName:"content-type",type:{name:"String"}},etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},contentEncoding:{serializedName:"content-encoding",xmlName:"content-encoding",type:{name:"String"}},contentDisposition:{serializedName:"content-disposition",xmlName:"content-disposition",type:{name:"String"}},contentLanguage:{serializedName:"content-language",xmlName:"content-language",type:{name:"String"}},cacheControl:{serializedName:"cache-control",xmlName:"cache-control",type:{name:"String"}},blobSequenceNumber:{serializedName:"x-ms-blob-sequence-number",xmlName:"x-ms-blob-sequence-number",type:{name:"Number"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},acceptRanges:{serializedName:"accept-ranges",xmlName:"accept-ranges",type:{name:"String"}},blobCommittedBlockCount:{serializedName:"x-ms-blob-committed-block-count",xmlName:"x-ms-blob-committed-block-count",type:{name:"Number"}},isServerEncrypted:{serializedName:"x-ms-server-encrypted",xmlName:"x-ms-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},accessTier:{serializedName:"x-ms-access-tier",xmlName:"x-ms-access-tier",type:{name:"String"}},accessTierInferred:{serializedName:"x-ms-access-tier-inferred",xmlName:"x-ms-access-tier-inferred",type:{name:"Boolean"}},archiveStatus:{serializedName:"x-ms-archive-status",xmlName:"x-ms-archive-status",type:{name:"String"}},accessTierChangedOn:{serializedName:"x-ms-access-tier-change-time",xmlName:"x-ms-access-tier-change-time",type:{name:"DateTimeRfc1123"}},versionId:{serializedName:"x-ms-version-id",xmlName:"x-ms-version-id",type:{name:"String"}},isCurrentVersion:{serializedName:"x-ms-is-current-version",xmlName:"x-ms-is-current-version",type:{name:"Boolean"}},tagCount:{serializedName:"x-ms-tag-count",xmlName:"x-ms-tag-count",type:{name:"Number"}},expiresOn:{serializedName:"x-ms-expiry-time",xmlName:"x-ms-expiry-time",type:{name:"DateTimeRfc1123"}},isSealed:{serializedName:"x-ms-blob-sealed",xmlName:"x-ms-blob-sealed",type:{name:"Boolean"}},rehydratePriority:{serializedName:"x-ms-rehydrate-priority",xmlName:"x-ms-rehydrate-priority",type:{name:"Enum",allowedValues:["High","Standard"]}},lastAccessed:{serializedName:"x-ms-last-access-time",xmlName:"x-ms-last-access-time",type:{name:"DateTimeRfc1123"}},immutabilityPolicyExpiresOn:{serializedName:"x-ms-immutability-policy-until-date",xmlName:"x-ms-immutability-policy-until-date",type:{name:"DateTimeRfc1123"}},immutabilityPolicyMode:{serializedName:"x-ms-immutability-policy-mode",xmlName:"x-ms-immutability-policy-mode",type:{name:"Enum",allowedValues:["Mutable","Unlocked","Locked"]}},legalHold:{serializedName:"x-ms-legal-hold",xmlName:"x-ms-legal-hold",type:{name:"Boolean"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Et={serializedName:"Blob_getPropertiesExceptionHeaders",type:{name:"Composite",className:"BlobGetPropertiesExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Ct={serializedName:"Blob_deleteHeaders",type:{name:"Composite",className:"BlobDeleteHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const yt={serializedName:"Blob_deleteExceptionHeaders",type:{name:"Composite",className:"BlobDeleteExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const It={serializedName:"Blob_undeleteHeaders",type:{name:"Composite",className:"BlobUndeleteHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Bt={serializedName:"Blob_undeleteExceptionHeaders",type:{name:"Composite",className:"BlobUndeleteExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const bt={serializedName:"Blob_setExpiryHeaders",type:{name:"Composite",className:"BlobSetExpiryHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}}}}};const Qt={serializedName:"Blob_setExpiryExceptionHeaders",type:{name:"Composite",className:"BlobSetExpiryExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const wt={serializedName:"Blob_setHttpHeadersHeaders",type:{name:"Composite",className:"BlobSetHttpHeadersHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},blobSequenceNumber:{serializedName:"x-ms-blob-sequence-number",xmlName:"x-ms-blob-sequence-number",type:{name:"Number"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const vt={serializedName:"Blob_setHttpHeadersExceptionHeaders",type:{name:"Composite",className:"BlobSetHttpHeadersExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const St={serializedName:"Blob_setImmutabilityPolicyHeaders",type:{name:"Composite",className:"BlobSetImmutabilityPolicyHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},immutabilityPolicyExpiry:{serializedName:"x-ms-immutability-policy-until-date",xmlName:"x-ms-immutability-policy-until-date",type:{name:"DateTimeRfc1123"}},immutabilityPolicyMode:{serializedName:"x-ms-immutability-policy-mode",xmlName:"x-ms-immutability-policy-mode",type:{name:"Enum",allowedValues:["Mutable","Unlocked","Locked"]}}}}};const Rt={serializedName:"Blob_setImmutabilityPolicyExceptionHeaders",type:{name:"Composite",className:"BlobSetImmutabilityPolicyExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Nt={serializedName:"Blob_deleteImmutabilityPolicyHeaders",type:{name:"Composite",className:"BlobDeleteImmutabilityPolicyHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}}}}};const xt={serializedName:"Blob_deleteImmutabilityPolicyExceptionHeaders",type:{name:"Composite",className:"BlobDeleteImmutabilityPolicyExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Dt={serializedName:"Blob_setLegalHoldHeaders",type:{name:"Composite",className:"BlobSetLegalHoldHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},legalHold:{serializedName:"x-ms-legal-hold",xmlName:"x-ms-legal-hold",type:{name:"Boolean"}}}}};const kt={serializedName:"Blob_setLegalHoldExceptionHeaders",type:{name:"Composite",className:"BlobSetLegalHoldExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Tt={serializedName:"Blob_setMetadataHeaders",type:{name:"Composite",className:"BlobSetMetadataHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},versionId:{serializedName:"x-ms-version-id",xmlName:"x-ms-version-id",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},isServerEncrypted:{serializedName:"x-ms-request-server-encrypted",xmlName:"x-ms-request-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const _t={serializedName:"Blob_setMetadataExceptionHeaders",type:{name:"Composite",className:"BlobSetMetadataExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Pt={serializedName:"Blob_acquireLeaseHeaders",type:{name:"Composite",className:"BlobAcquireLeaseHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},leaseId:{serializedName:"x-ms-lease-id",xmlName:"x-ms-lease-id",type:{name:"String"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}}}}};const Ot={serializedName:"Blob_acquireLeaseExceptionHeaders",type:{name:"Composite",className:"BlobAcquireLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Ft={serializedName:"Blob_releaseLeaseHeaders",type:{name:"Composite",className:"BlobReleaseLeaseHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}}}}};const Lt={serializedName:"Blob_releaseLeaseExceptionHeaders",type:{name:"Composite",className:"BlobReleaseLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Mt={serializedName:"Blob_renewLeaseHeaders",type:{name:"Composite",className:"BlobRenewLeaseHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},leaseId:{serializedName:"x-ms-lease-id",xmlName:"x-ms-lease-id",type:{name:"String"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}}}}};const Ut={serializedName:"Blob_renewLeaseExceptionHeaders",type:{name:"Composite",className:"BlobRenewLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Ht={serializedName:"Blob_changeLeaseHeaders",type:{name:"Composite",className:"BlobChangeLeaseHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},leaseId:{serializedName:"x-ms-lease-id",xmlName:"x-ms-lease-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}}}}};const Gt={serializedName:"Blob_changeLeaseExceptionHeaders",type:{name:"Composite",className:"BlobChangeLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const qt={serializedName:"Blob_breakLeaseHeaders",type:{name:"Composite",className:"BlobBreakLeaseHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},leaseTime:{serializedName:"x-ms-lease-time",xmlName:"x-ms-lease-time",type:{name:"Number"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}}}}};const Vt={serializedName:"Blob_breakLeaseExceptionHeaders",type:{name:"Composite",className:"BlobBreakLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const jt={serializedName:"Blob_createSnapshotHeaders",type:{name:"Composite",className:"BlobCreateSnapshotHeaders",modelProperties:{snapshot:{serializedName:"x-ms-snapshot",xmlName:"x-ms-snapshot",type:{name:"String"}},etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},versionId:{serializedName:"x-ms-version-id",xmlName:"x-ms-version-id",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},isServerEncrypted:{serializedName:"x-ms-request-server-encrypted",xmlName:"x-ms-request-server-encrypted",type:{name:"Boolean"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const zt={serializedName:"Blob_createSnapshotExceptionHeaders",type:{name:"Composite",className:"BlobCreateSnapshotExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Yt={serializedName:"Blob_startCopyFromURLHeaders",type:{name:"Composite",className:"BlobStartCopyFromURLHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},versionId:{serializedName:"x-ms-version-id",xmlName:"x-ms-version-id",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},copyId:{serializedName:"x-ms-copy-id",xmlName:"x-ms-copy-id",type:{name:"String"}},copyStatus:{serializedName:"x-ms-copy-status",xmlName:"x-ms-copy-status",type:{name:"Enum",allowedValues:["pending","success","aborted","failed"]}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Jt={serializedName:"Blob_startCopyFromURLExceptionHeaders",type:{name:"Composite",className:"BlobStartCopyFromURLExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Wt={serializedName:"Blob_copyFromURLHeaders",type:{name:"Composite",className:"BlobCopyFromURLHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},versionId:{serializedName:"x-ms-version-id",xmlName:"x-ms-version-id",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},copyId:{serializedName:"x-ms-copy-id",xmlName:"x-ms-copy-id",type:{name:"String"}},copyStatus:{defaultValue:"success",isConstant:true,serializedName:"x-ms-copy-status",type:{name:"String"}},contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},xMsContentCrc64:{serializedName:"x-ms-content-crc64",xmlName:"x-ms-content-crc64",type:{name:"ByteArray"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Xt={serializedName:"Blob_copyFromURLExceptionHeaders",type:{name:"Composite",className:"BlobCopyFromURLExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const $t={serializedName:"Blob_abortCopyFromURLHeaders",type:{name:"Composite",className:"BlobAbortCopyFromURLHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Kt={serializedName:"Blob_abortCopyFromURLExceptionHeaders",type:{name:"Composite",className:"BlobAbortCopyFromURLExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Zt={serializedName:"Blob_setTierHeaders",type:{name:"Composite",className:"BlobSetTierHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const er={serializedName:"Blob_setTierExceptionHeaders",type:{name:"Composite",className:"BlobSetTierExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const tr={serializedName:"Blob_getAccountInfoHeaders",type:{name:"Composite",className:"BlobGetAccountInfoHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},skuName:{serializedName:"x-ms-sku-name",xmlName:"x-ms-sku-name",type:{name:"Enum",allowedValues:["Standard_LRS","Standard_GRS","Standard_RAGRS","Standard_ZRS","Premium_LRS"]}},accountKind:{serializedName:"x-ms-account-kind",xmlName:"x-ms-account-kind",type:{name:"Enum",allowedValues:["Storage","BlobStorage","StorageV2","FileStorage","BlockBlobStorage"]}}}}};const rr={serializedName:"Blob_getAccountInfoExceptionHeaders",type:{name:"Composite",className:"BlobGetAccountInfoExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const nr={serializedName:"Blob_queryHeaders",type:{name:"Composite",className:"BlobQueryHeaders",modelProperties:{lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},metadata:{serializedName:"x-ms-meta",xmlName:"x-ms-meta",type:{name:"Dictionary",value:{type:{name:"String"}}}},contentLength:{serializedName:"content-length",xmlName:"content-length",type:{name:"Number"}},contentType:{serializedName:"content-type",xmlName:"content-type",type:{name:"String"}},contentRange:{serializedName:"content-range",xmlName:"content-range",type:{name:"String"}},etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},contentEncoding:{serializedName:"content-encoding",xmlName:"content-encoding",type:{name:"String"}},cacheControl:{serializedName:"cache-control",xmlName:"cache-control",type:{name:"String"}},contentDisposition:{serializedName:"content-disposition",xmlName:"content-disposition",type:{name:"String"}},contentLanguage:{serializedName:"content-language",xmlName:"content-language",type:{name:"String"}},blobSequenceNumber:{serializedName:"x-ms-blob-sequence-number",xmlName:"x-ms-blob-sequence-number",type:{name:"Number"}},blobType:{serializedName:"x-ms-blob-type",xmlName:"x-ms-blob-type",type:{name:"Enum",allowedValues:["BlockBlob","PageBlob","AppendBlob"]}},copyCompletionTime:{serializedName:"x-ms-copy-completion-time",xmlName:"x-ms-copy-completion-time",type:{name:"DateTimeRfc1123"}},copyStatusDescription:{serializedName:"x-ms-copy-status-description",xmlName:"x-ms-copy-status-description",type:{name:"String"}},copyId:{serializedName:"x-ms-copy-id",xmlName:"x-ms-copy-id",type:{name:"String"}},copyProgress:{serializedName:"x-ms-copy-progress",xmlName:"x-ms-copy-progress",type:{name:"String"}},copySource:{serializedName:"x-ms-copy-source",xmlName:"x-ms-copy-source",type:{name:"String"}},copyStatus:{serializedName:"x-ms-copy-status",xmlName:"x-ms-copy-status",type:{name:"Enum",allowedValues:["pending","success","aborted","failed"]}},leaseDuration:{serializedName:"x-ms-lease-duration",xmlName:"x-ms-lease-duration",type:{name:"Enum",allowedValues:["infinite","fixed"]}},leaseState:{serializedName:"x-ms-lease-state",xmlName:"x-ms-lease-state",type:{name:"Enum",allowedValues:["available","leased","expired","breaking","broken"]}},leaseStatus:{serializedName:"x-ms-lease-status",xmlName:"x-ms-lease-status",type:{name:"Enum",allowedValues:["locked","unlocked"]}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},acceptRanges:{serializedName:"accept-ranges",xmlName:"accept-ranges",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},blobCommittedBlockCount:{serializedName:"x-ms-blob-committed-block-count",xmlName:"x-ms-blob-committed-block-count",type:{name:"Number"}},isServerEncrypted:{serializedName:"x-ms-server-encrypted",xmlName:"x-ms-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},blobContentMD5:{serializedName:"x-ms-blob-content-md5",xmlName:"x-ms-blob-content-md5",type:{name:"ByteArray"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}},contentCrc64:{serializedName:"x-ms-content-crc64",xmlName:"x-ms-content-crc64",type:{name:"ByteArray"}}}}};const sr={serializedName:"Blob_queryExceptionHeaders",type:{name:"Composite",className:"BlobQueryExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const ir={serializedName:"Blob_getTagsHeaders",type:{name:"Composite",className:"BlobGetTagsHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const or={serializedName:"Blob_getTagsExceptionHeaders",type:{name:"Composite",className:"BlobGetTagsExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const ar={serializedName:"Blob_setTagsHeaders",type:{name:"Composite",className:"BlobSetTagsHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Ar={serializedName:"Blob_setTagsExceptionHeaders",type:{name:"Composite",className:"BlobSetTagsExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const cr={serializedName:"PageBlob_createHeaders",type:{name:"Composite",className:"PageBlobCreateHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},versionId:{serializedName:"x-ms-version-id",xmlName:"x-ms-version-id",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},isServerEncrypted:{serializedName:"x-ms-request-server-encrypted",xmlName:"x-ms-request-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const lr={serializedName:"PageBlob_createExceptionHeaders",type:{name:"Composite",className:"PageBlobCreateExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const dr={serializedName:"PageBlob_uploadPagesHeaders",type:{name:"Composite",className:"PageBlobUploadPagesHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},xMsContentCrc64:{serializedName:"x-ms-content-crc64",xmlName:"x-ms-content-crc64",type:{name:"ByteArray"}},blobSequenceNumber:{serializedName:"x-ms-blob-sequence-number",xmlName:"x-ms-blob-sequence-number",type:{name:"Number"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},isServerEncrypted:{serializedName:"x-ms-request-server-encrypted",xmlName:"x-ms-request-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const ur={serializedName:"PageBlob_uploadPagesExceptionHeaders",type:{name:"Composite",className:"PageBlobUploadPagesExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const pr={serializedName:"PageBlob_clearPagesHeaders",type:{name:"Composite",className:"PageBlobClearPagesHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},xMsContentCrc64:{serializedName:"x-ms-content-crc64",xmlName:"x-ms-content-crc64",type:{name:"ByteArray"}},blobSequenceNumber:{serializedName:"x-ms-blob-sequence-number",xmlName:"x-ms-blob-sequence-number",type:{name:"Number"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const gr={serializedName:"PageBlob_clearPagesExceptionHeaders",type:{name:"Composite",className:"PageBlobClearPagesExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const hr={serializedName:"PageBlob_uploadPagesFromURLHeaders",type:{name:"Composite",className:"PageBlobUploadPagesFromURLHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},xMsContentCrc64:{serializedName:"x-ms-content-crc64",xmlName:"x-ms-content-crc64",type:{name:"ByteArray"}},blobSequenceNumber:{serializedName:"x-ms-blob-sequence-number",xmlName:"x-ms-blob-sequence-number",type:{name:"Number"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},isServerEncrypted:{serializedName:"x-ms-request-server-encrypted",xmlName:"x-ms-request-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const mr={serializedName:"PageBlob_uploadPagesFromURLExceptionHeaders",type:{name:"Composite",className:"PageBlobUploadPagesFromURLExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const fr={serializedName:"PageBlob_getPageRangesHeaders",type:{name:"Composite",className:"PageBlobGetPageRangesHeaders",modelProperties:{lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},blobContentLength:{serializedName:"x-ms-blob-content-length",xmlName:"x-ms-blob-content-length",type:{name:"Number"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Er={serializedName:"PageBlob_getPageRangesExceptionHeaders",type:{name:"Composite",className:"PageBlobGetPageRangesExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Cr={serializedName:"PageBlob_getPageRangesDiffHeaders",type:{name:"Composite",className:"PageBlobGetPageRangesDiffHeaders",modelProperties:{lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},blobContentLength:{serializedName:"x-ms-blob-content-length",xmlName:"x-ms-blob-content-length",type:{name:"Number"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const yr={serializedName:"PageBlob_getPageRangesDiffExceptionHeaders",type:{name:"Composite",className:"PageBlobGetPageRangesDiffExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Ir={serializedName:"PageBlob_resizeHeaders",type:{name:"Composite",className:"PageBlobResizeHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},blobSequenceNumber:{serializedName:"x-ms-blob-sequence-number",xmlName:"x-ms-blob-sequence-number",type:{name:"Number"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Br={serializedName:"PageBlob_resizeExceptionHeaders",type:{name:"Composite",className:"PageBlobResizeExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const br={serializedName:"PageBlob_updateSequenceNumberHeaders",type:{name:"Composite",className:"PageBlobUpdateSequenceNumberHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},blobSequenceNumber:{serializedName:"x-ms-blob-sequence-number",xmlName:"x-ms-blob-sequence-number",type:{name:"Number"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Qr={serializedName:"PageBlob_updateSequenceNumberExceptionHeaders",type:{name:"Composite",className:"PageBlobUpdateSequenceNumberExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const wr={serializedName:"PageBlob_copyIncrementalHeaders",type:{name:"Composite",className:"PageBlobCopyIncrementalHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},copyId:{serializedName:"x-ms-copy-id",xmlName:"x-ms-copy-id",type:{name:"String"}},copyStatus:{serializedName:"x-ms-copy-status",xmlName:"x-ms-copy-status",type:{name:"Enum",allowedValues:["pending","success","aborted","failed"]}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const vr={serializedName:"PageBlob_copyIncrementalExceptionHeaders",type:{name:"Composite",className:"PageBlobCopyIncrementalExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Sr={serializedName:"AppendBlob_createHeaders",type:{name:"Composite",className:"AppendBlobCreateHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},versionId:{serializedName:"x-ms-version-id",xmlName:"x-ms-version-id",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},isServerEncrypted:{serializedName:"x-ms-request-server-encrypted",xmlName:"x-ms-request-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Rr={serializedName:"AppendBlob_createExceptionHeaders",type:{name:"Composite",className:"AppendBlobCreateExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Nr={serializedName:"AppendBlob_appendBlockHeaders",type:{name:"Composite",className:"AppendBlobAppendBlockHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},xMsContentCrc64:{serializedName:"x-ms-content-crc64",xmlName:"x-ms-content-crc64",type:{name:"ByteArray"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},blobAppendOffset:{serializedName:"x-ms-blob-append-offset",xmlName:"x-ms-blob-append-offset",type:{name:"String"}},blobCommittedBlockCount:{serializedName:"x-ms-blob-committed-block-count",xmlName:"x-ms-blob-committed-block-count",type:{name:"Number"}},isServerEncrypted:{serializedName:"x-ms-request-server-encrypted",xmlName:"x-ms-request-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const xr={serializedName:"AppendBlob_appendBlockExceptionHeaders",type:{name:"Composite",className:"AppendBlobAppendBlockExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Dr={serializedName:"AppendBlob_appendBlockFromUrlHeaders",type:{name:"Composite",className:"AppendBlobAppendBlockFromUrlHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},xMsContentCrc64:{serializedName:"x-ms-content-crc64",xmlName:"x-ms-content-crc64",type:{name:"ByteArray"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},blobAppendOffset:{serializedName:"x-ms-blob-append-offset",xmlName:"x-ms-blob-append-offset",type:{name:"String"}},blobCommittedBlockCount:{serializedName:"x-ms-blob-committed-block-count",xmlName:"x-ms-blob-committed-block-count",type:{name:"Number"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},isServerEncrypted:{serializedName:"x-ms-request-server-encrypted",xmlName:"x-ms-request-server-encrypted",type:{name:"Boolean"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const kr={serializedName:"AppendBlob_appendBlockFromUrlExceptionHeaders",type:{name:"Composite",className:"AppendBlobAppendBlockFromUrlExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Tr={serializedName:"AppendBlob_sealHeaders",type:{name:"Composite",className:"AppendBlobSealHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},isSealed:{serializedName:"x-ms-blob-sealed",xmlName:"x-ms-blob-sealed",type:{name:"Boolean"}}}}};const _r={serializedName:"AppendBlob_sealExceptionHeaders",type:{name:"Composite",className:"AppendBlobSealExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Pr={serializedName:"BlockBlob_uploadHeaders",type:{name:"Composite",className:"BlockBlobUploadHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},versionId:{serializedName:"x-ms-version-id",xmlName:"x-ms-version-id",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},isServerEncrypted:{serializedName:"x-ms-request-server-encrypted",xmlName:"x-ms-request-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Or={serializedName:"BlockBlob_uploadExceptionHeaders",type:{name:"Composite",className:"BlockBlobUploadExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Fr={serializedName:"BlockBlob_putBlobFromUrlHeaders",type:{name:"Composite",className:"BlockBlobPutBlobFromUrlHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},versionId:{serializedName:"x-ms-version-id",xmlName:"x-ms-version-id",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},isServerEncrypted:{serializedName:"x-ms-request-server-encrypted",xmlName:"x-ms-request-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Lr={serializedName:"BlockBlob_putBlobFromUrlExceptionHeaders",type:{name:"Composite",className:"BlockBlobPutBlobFromUrlExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Mr={serializedName:"BlockBlob_stageBlockHeaders",type:{name:"Composite",className:"BlockBlobStageBlockHeaders",modelProperties:{contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},xMsContentCrc64:{serializedName:"x-ms-content-crc64",xmlName:"x-ms-content-crc64",type:{name:"ByteArray"}},isServerEncrypted:{serializedName:"x-ms-request-server-encrypted",xmlName:"x-ms-request-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Ur={serializedName:"BlockBlob_stageBlockExceptionHeaders",type:{name:"Composite",className:"BlockBlobStageBlockExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Hr={serializedName:"BlockBlob_stageBlockFromURLHeaders",type:{name:"Composite",className:"BlockBlobStageBlockFromURLHeaders",modelProperties:{contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},xMsContentCrc64:{serializedName:"x-ms-content-crc64",xmlName:"x-ms-content-crc64",type:{name:"ByteArray"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},isServerEncrypted:{serializedName:"x-ms-request-server-encrypted",xmlName:"x-ms-request-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Gr={serializedName:"BlockBlob_stageBlockFromURLExceptionHeaders",type:{name:"Composite",className:"BlockBlobStageBlockFromURLExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const qr={serializedName:"BlockBlob_commitBlockListHeaders",type:{name:"Composite",className:"BlockBlobCommitBlockListHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},xMsContentCrc64:{serializedName:"x-ms-content-crc64",xmlName:"x-ms-content-crc64",type:{name:"ByteArray"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},versionId:{serializedName:"x-ms-version-id",xmlName:"x-ms-version-id",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},isServerEncrypted:{serializedName:"x-ms-request-server-encrypted",xmlName:"x-ms-request-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Vr={serializedName:"BlockBlob_commitBlockListExceptionHeaders",type:{name:"Composite",className:"BlockBlobCommitBlockListExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const jr={serializedName:"BlockBlob_getBlockListHeaders",type:{name:"Composite",className:"BlockBlobGetBlockListHeaders",modelProperties:{lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},contentType:{serializedName:"content-type",xmlName:"content-type",type:{name:"String"}},blobContentLength:{serializedName:"x-ms-blob-content-length",xmlName:"x-ms-blob-content-length",type:{name:"Number"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const zr={serializedName:"BlockBlob_getBlockListExceptionHeaders",type:{name:"Composite",className:"BlockBlobGetBlockListExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};var Yr=Object.freeze({__proto__:null,BlobServiceProperties:v,Logging:S,RetentionPolicy:R,Metrics:N,CorsRule:x,StaticWebsite:D,StorageError:k,BlobServiceStatistics:T,GeoReplication:_,ListContainersSegmentResponse:P,ContainerItem:O,ContainerProperties:L,KeyInfo:M,UserDelegationKey:U,FilterBlobSegment:H,FilterBlobItem:G,BlobTags:q,BlobTag:V,SignedIdentifier:j,AccessPolicy:z,ListBlobsFlatSegmentResponse:Y,BlobFlatListSegment:J,BlobItemInternal:W,BlobName:X,BlobPropertiesInternal:$,ListBlobsHierarchySegmentResponse:K,BlobHierarchyListSegment:Z,BlobPrefix:ee,BlockLookupList:te,BlockList:re,Block:ne,PageList:se,PageRange:ie,ClearRange:oe,QueryRequest:ae,QuerySerialization:Ae,QueryFormat:ce,DelimitedTextConfiguration:le,JsonTextConfiguration:de,ArrowConfiguration:ue,ArrowField:pe,ServiceSetPropertiesHeaders:ge,ServiceSetPropertiesExceptionHeaders:he,ServiceGetPropertiesHeaders:me,ServiceGetPropertiesExceptionHeaders:fe,ServiceGetStatisticsHeaders:Ee,ServiceGetStatisticsExceptionHeaders:Ce,ServiceListContainersSegmentHeaders:ye,ServiceListContainersSegmentExceptionHeaders:Ie,ServiceGetUserDelegationKeyHeaders:Be,ServiceGetUserDelegationKeyExceptionHeaders:be,ServiceGetAccountInfoHeaders:Qe,ServiceGetAccountInfoExceptionHeaders:we,ServiceSubmitBatchHeaders:ve,ServiceSubmitBatchExceptionHeaders:Se,ServiceFilterBlobsHeaders:Re,ServiceFilterBlobsExceptionHeaders:Ne,ContainerCreateHeaders:xe,ContainerCreateExceptionHeaders:De,ContainerGetPropertiesHeaders:ke,ContainerGetPropertiesExceptionHeaders:Te,ContainerDeleteHeaders:_e,ContainerDeleteExceptionHeaders:Pe,ContainerSetMetadataHeaders:Oe,ContainerSetMetadataExceptionHeaders:Fe,ContainerGetAccessPolicyHeaders:Le,ContainerGetAccessPolicyExceptionHeaders:Me,ContainerSetAccessPolicyHeaders:Ue,ContainerSetAccessPolicyExceptionHeaders:He,ContainerRestoreHeaders:Ge,ContainerRestoreExceptionHeaders:qe,ContainerRenameHeaders:Ve,ContainerRenameExceptionHeaders:je,ContainerSubmitBatchHeaders:ze,ContainerSubmitBatchExceptionHeaders:Ye,ContainerFilterBlobsHeaders:Je,ContainerFilterBlobsExceptionHeaders:We,ContainerAcquireLeaseHeaders:Xe,ContainerAcquireLeaseExceptionHeaders:$e,ContainerReleaseLeaseHeaders:Ke,ContainerReleaseLeaseExceptionHeaders:Ze,ContainerRenewLeaseHeaders:et,ContainerRenewLeaseExceptionHeaders:tt,ContainerBreakLeaseHeaders:rt,ContainerBreakLeaseExceptionHeaders:nt,ContainerChangeLeaseHeaders:st,ContainerChangeLeaseExceptionHeaders:it,ContainerListBlobFlatSegmentHeaders:ot,ContainerListBlobFlatSegmentExceptionHeaders:At,ContainerListBlobHierarchySegmentHeaders:ct,ContainerListBlobHierarchySegmentExceptionHeaders:dt,ContainerGetAccountInfoHeaders:ut,ContainerGetAccountInfoExceptionHeaders:pt,BlobDownloadHeaders:ht,BlobDownloadExceptionHeaders:mt,BlobGetPropertiesHeaders:ft,BlobGetPropertiesExceptionHeaders:Et,BlobDeleteHeaders:Ct,BlobDeleteExceptionHeaders:yt,BlobUndeleteHeaders:It,BlobUndeleteExceptionHeaders:Bt,BlobSetExpiryHeaders:bt,BlobSetExpiryExceptionHeaders:Qt,BlobSetHttpHeadersHeaders:wt,BlobSetHttpHeadersExceptionHeaders:vt,BlobSetImmutabilityPolicyHeaders:St,BlobSetImmutabilityPolicyExceptionHeaders:Rt,BlobDeleteImmutabilityPolicyHeaders:Nt,BlobDeleteImmutabilityPolicyExceptionHeaders:xt,BlobSetLegalHoldHeaders:Dt,BlobSetLegalHoldExceptionHeaders:kt,BlobSetMetadataHeaders:Tt,BlobSetMetadataExceptionHeaders:_t,BlobAcquireLeaseHeaders:Pt,BlobAcquireLeaseExceptionHeaders:Ot,BlobReleaseLeaseHeaders:Ft,BlobReleaseLeaseExceptionHeaders:Lt,BlobRenewLeaseHeaders:Mt,BlobRenewLeaseExceptionHeaders:Ut,BlobChangeLeaseHeaders:Ht,BlobChangeLeaseExceptionHeaders:Gt,BlobBreakLeaseHeaders:qt,BlobBreakLeaseExceptionHeaders:Vt,BlobCreateSnapshotHeaders:jt,BlobCreateSnapshotExceptionHeaders:zt,BlobStartCopyFromURLHeaders:Yt,BlobStartCopyFromURLExceptionHeaders:Jt,BlobCopyFromURLHeaders:Wt,BlobCopyFromURLExceptionHeaders:Xt,BlobAbortCopyFromURLHeaders:$t,BlobAbortCopyFromURLExceptionHeaders:Kt,BlobSetTierHeaders:Zt,BlobSetTierExceptionHeaders:er,BlobGetAccountInfoHeaders:tr,BlobGetAccountInfoExceptionHeaders:rr,BlobQueryHeaders:nr,BlobQueryExceptionHeaders:sr,BlobGetTagsHeaders:ir,BlobGetTagsExceptionHeaders:or,BlobSetTagsHeaders:ar,BlobSetTagsExceptionHeaders:Ar,PageBlobCreateHeaders:cr,PageBlobCreateExceptionHeaders:lr,PageBlobUploadPagesHeaders:dr,PageBlobUploadPagesExceptionHeaders:ur,PageBlobClearPagesHeaders:pr,PageBlobClearPagesExceptionHeaders:gr,PageBlobUploadPagesFromURLHeaders:hr,PageBlobUploadPagesFromURLExceptionHeaders:mr,PageBlobGetPageRangesHeaders:fr,PageBlobGetPageRangesExceptionHeaders:Er,PageBlobGetPageRangesDiffHeaders:Cr,PageBlobGetPageRangesDiffExceptionHeaders:yr,PageBlobResizeHeaders:Ir,PageBlobResizeExceptionHeaders:Br,PageBlobUpdateSequenceNumberHeaders:br,PageBlobUpdateSequenceNumberExceptionHeaders:Qr,PageBlobCopyIncrementalHeaders:wr,PageBlobCopyIncrementalExceptionHeaders:vr,AppendBlobCreateHeaders:Sr,AppendBlobCreateExceptionHeaders:Rr,AppendBlobAppendBlockHeaders:Nr,AppendBlobAppendBlockExceptionHeaders:xr,AppendBlobAppendBlockFromUrlHeaders:Dr,AppendBlobAppendBlockFromUrlExceptionHeaders:kr,AppendBlobSealHeaders:Tr,AppendBlobSealExceptionHeaders:_r,BlockBlobUploadHeaders:Pr,BlockBlobUploadExceptionHeaders:Or,BlockBlobPutBlobFromUrlHeaders:Fr,BlockBlobPutBlobFromUrlExceptionHeaders:Lr,BlockBlobStageBlockHeaders:Mr,BlockBlobStageBlockExceptionHeaders:Ur,BlockBlobStageBlockFromURLHeaders:Hr,BlockBlobStageBlockFromURLExceptionHeaders:Gr,BlockBlobCommitBlockListHeaders:qr,BlockBlobCommitBlockListExceptionHeaders:Vr,BlockBlobGetBlockListHeaders:jr,BlockBlobGetBlockListExceptionHeaders:zr});const Jr={parameterPath:["options","contentType"],mapper:{defaultValue:"application/xml",isConstant:true,serializedName:"Content-Type",type:{name:"String"}}};const Wr={parameterPath:"blobServiceProperties",mapper:v};const Xr={parameterPath:"accept",mapper:{defaultValue:"application/xml",isConstant:true,serializedName:"Accept",type:{name:"String"}}};const $r={parameterPath:"url",mapper:{serializedName:"url",required:true,xmlName:"url",type:{name:"String"}},skipEncoding:true};const Kr={parameterPath:"restype",mapper:{defaultValue:"service",isConstant:true,serializedName:"restype",type:{name:"String"}}};const Zr={parameterPath:"comp",mapper:{defaultValue:"properties",isConstant:true,serializedName:"comp",type:{name:"String"}}};const en={parameterPath:["options","timeoutInSeconds"],mapper:{constraints:{InclusiveMinimum:0},serializedName:"timeout",xmlName:"timeout",type:{name:"Number"}}};const tn={parameterPath:"version",mapper:{defaultValue:"2022-11-02",isConstant:true,serializedName:"x-ms-version",type:{name:"String"}}};const rn={parameterPath:["options","requestId"],mapper:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}}};const nn={parameterPath:"accept",mapper:{defaultValue:"application/xml",isConstant:true,serializedName:"Accept",type:{name:"String"}}};const sn={parameterPath:"comp",mapper:{defaultValue:"stats",isConstant:true,serializedName:"comp",type:{name:"String"}}};const an={parameterPath:"comp",mapper:{defaultValue:"list",isConstant:true,serializedName:"comp",type:{name:"String"}}};const An={parameterPath:["options","prefix"],mapper:{serializedName:"prefix",xmlName:"prefix",type:{name:"String"}}};const cn={parameterPath:["options","marker"],mapper:{serializedName:"marker",xmlName:"marker",type:{name:"String"}}};const ln={parameterPath:["options","maxPageSize"],mapper:{constraints:{InclusiveMinimum:1},serializedName:"maxresults",xmlName:"maxresults",type:{name:"Number"}}};const dn={parameterPath:["options","include"],mapper:{serializedName:"include",xmlName:"include",xmlElementName:"ListContainersIncludeType",type:{name:"Sequence",element:{type:{name:"Enum",allowedValues:["metadata","deleted","system"]}}}},collectionFormat:a.QueryCollectionFormat.Csv};const un={parameterPath:"keyInfo",mapper:M};const pn={parameterPath:"comp",mapper:{defaultValue:"userdelegationkey",isConstant:true,serializedName:"comp",type:{name:"String"}}};const gn={parameterPath:"restype",mapper:{defaultValue:"account",isConstant:true,serializedName:"restype",type:{name:"String"}}};const hn={parameterPath:"body",mapper:{serializedName:"body",required:true,xmlName:"body",type:{name:"Stream"}}};const mn={parameterPath:"comp",mapper:{defaultValue:"batch",isConstant:true,serializedName:"comp",type:{name:"String"}}};const En={parameterPath:"contentLength",mapper:{serializedName:"Content-Length",required:true,xmlName:"Content-Length",type:{name:"Number"}}};const Cn={parameterPath:"multipartContentType",mapper:{serializedName:"Content-Type",required:true,xmlName:"Content-Type",type:{name:"String"}}};const yn={parameterPath:"comp",mapper:{defaultValue:"blobs",isConstant:true,serializedName:"comp",type:{name:"String"}}};const In={parameterPath:["options","where"],mapper:{serializedName:"where",xmlName:"where",type:{name:"String"}}};const Bn={parameterPath:"restype",mapper:{defaultValue:"container",isConstant:true,serializedName:"restype",type:{name:"String"}}};const bn={parameterPath:["options","metadata"],mapper:{serializedName:"x-ms-meta",xmlName:"x-ms-meta",type:{name:"Dictionary",value:{type:{name:"String"}}},headerCollectionPrefix:"x-ms-meta-"}};const Qn={parameterPath:["options","access"],mapper:{serializedName:"x-ms-blob-public-access",xmlName:"x-ms-blob-public-access",type:{name:"Enum",allowedValues:["container","blob"]}}};const wn={parameterPath:["options","containerEncryptionScope","defaultEncryptionScope"],mapper:{serializedName:"x-ms-default-encryption-scope",xmlName:"x-ms-default-encryption-scope",type:{name:"String"}}};const vn={parameterPath:["options","containerEncryptionScope","preventEncryptionScopeOverride"],mapper:{serializedName:"x-ms-deny-encryption-scope-override",xmlName:"x-ms-deny-encryption-scope-override",type:{name:"Boolean"}}};const Sn={parameterPath:["options","leaseAccessConditions","leaseId"],mapper:{serializedName:"x-ms-lease-id",xmlName:"x-ms-lease-id",type:{name:"String"}}};const Rn={parameterPath:["options","modifiedAccessConditions","ifModifiedSince"],mapper:{serializedName:"If-Modified-Since",xmlName:"If-Modified-Since",type:{name:"DateTimeRfc1123"}}};const Nn={parameterPath:["options","modifiedAccessConditions","ifUnmodifiedSince"],mapper:{serializedName:"If-Unmodified-Since",xmlName:"If-Unmodified-Since",type:{name:"DateTimeRfc1123"}}};const xn={parameterPath:"comp",mapper:{defaultValue:"metadata",isConstant:true,serializedName:"comp",type:{name:"String"}}};const Dn={parameterPath:"comp",mapper:{defaultValue:"acl",isConstant:true,serializedName:"comp",type:{name:"String"}}};const kn={parameterPath:["options","containerAcl"],mapper:{serializedName:"containerAcl",xmlName:"SignedIdentifiers",xmlIsWrapped:true,xmlElementName:"SignedIdentifier",type:{name:"Sequence",element:{type:{name:"Composite",className:"SignedIdentifier"}}}}};const Tn={parameterPath:"comp",mapper:{defaultValue:"undelete",isConstant:true,serializedName:"comp",type:{name:"String"}}};const _n={parameterPath:["options","deletedContainerName"],mapper:{serializedName:"x-ms-deleted-container-name",xmlName:"x-ms-deleted-container-name",type:{name:"String"}}};const Pn={parameterPath:["options","deletedContainerVersion"],mapper:{serializedName:"x-ms-deleted-container-version",xmlName:"x-ms-deleted-container-version",type:{name:"String"}}};const On={parameterPath:"comp",mapper:{defaultValue:"rename",isConstant:true,serializedName:"comp",type:{name:"String"}}};const Fn={parameterPath:"sourceContainerName",mapper:{serializedName:"x-ms-source-container-name",required:true,xmlName:"x-ms-source-container-name",type:{name:"String"}}};const Ln={parameterPath:["options","sourceLeaseId"],mapper:{serializedName:"x-ms-source-lease-id",xmlName:"x-ms-source-lease-id",type:{name:"String"}}};const Mn={parameterPath:"comp",mapper:{defaultValue:"lease",isConstant:true,serializedName:"comp",type:{name:"String"}}};const Un={parameterPath:"action",mapper:{defaultValue:"acquire",isConstant:true,serializedName:"x-ms-lease-action",type:{name:"String"}}};const Hn={parameterPath:["options","duration"],mapper:{serializedName:"x-ms-lease-duration",xmlName:"x-ms-lease-duration",type:{name:"Number"}}};const Gn={parameterPath:["options","proposedLeaseId"],mapper:{serializedName:"x-ms-proposed-lease-id",xmlName:"x-ms-proposed-lease-id",type:{name:"String"}}};const qn={parameterPath:"action",mapper:{defaultValue:"release",isConstant:true,serializedName:"x-ms-lease-action",type:{name:"String"}}};const Vn={parameterPath:"leaseId",mapper:{serializedName:"x-ms-lease-id",required:true,xmlName:"x-ms-lease-id",type:{name:"String"}}};const jn={parameterPath:"action",mapper:{defaultValue:"renew",isConstant:true,serializedName:"x-ms-lease-action",type:{name:"String"}}};const zn={parameterPath:"action",mapper:{defaultValue:"break",isConstant:true,serializedName:"x-ms-lease-action",type:{name:"String"}}};const Yn={parameterPath:["options","breakPeriod"],mapper:{serializedName:"x-ms-lease-break-period",xmlName:"x-ms-lease-break-period",type:{name:"Number"}}};const Jn={parameterPath:"action",mapper:{defaultValue:"change",isConstant:true,serializedName:"x-ms-lease-action",type:{name:"String"}}};const Wn={parameterPath:"proposedLeaseId",mapper:{serializedName:"x-ms-proposed-lease-id",required:true,xmlName:"x-ms-proposed-lease-id",type:{name:"String"}}};const Xn={parameterPath:["options","include"],mapper:{serializedName:"include",xmlName:"include",xmlElementName:"ListBlobsIncludeItem",type:{name:"Sequence",element:{type:{name:"Enum",allowedValues:["copy","deleted","metadata","snapshots","uncommittedblobs","versions","tags","immutabilitypolicy","legalhold","deletedwithversions"]}}}},collectionFormat:a.QueryCollectionFormat.Csv};const $n={parameterPath:"delimiter",mapper:{serializedName:"delimiter",required:true,xmlName:"delimiter",type:{name:"String"}}};const Kn={parameterPath:["options","snapshot"],mapper:{serializedName:"snapshot",xmlName:"snapshot",type:{name:"String"}}};const Zn={parameterPath:["options","versionId"],mapper:{serializedName:"versionid",xmlName:"versionid",type:{name:"String"}}};const es={parameterPath:["options","range"],mapper:{serializedName:"x-ms-range",xmlName:"x-ms-range",type:{name:"String"}}};const ts={parameterPath:["options","rangeGetContentMD5"],mapper:{serializedName:"x-ms-range-get-content-md5",xmlName:"x-ms-range-get-content-md5",type:{name:"Boolean"}}};const rs={parameterPath:["options","rangeGetContentCRC64"],mapper:{serializedName:"x-ms-range-get-content-crc64",xmlName:"x-ms-range-get-content-crc64",type:{name:"Boolean"}}};const ns={parameterPath:["options","cpkInfo","encryptionKey"],mapper:{serializedName:"x-ms-encryption-key",xmlName:"x-ms-encryption-key",type:{name:"String"}}};const ss={parameterPath:["options","cpkInfo","encryptionKeySha256"],mapper:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}}};const os={parameterPath:["options","cpkInfo","encryptionAlgorithm"],mapper:{serializedName:"x-ms-encryption-algorithm",xmlName:"x-ms-encryption-algorithm",type:{name:"String"}}};const as={parameterPath:["options","modifiedAccessConditions","ifMatch"],mapper:{serializedName:"If-Match",xmlName:"If-Match",type:{name:"String"}}};const As={parameterPath:["options","modifiedAccessConditions","ifNoneMatch"],mapper:{serializedName:"If-None-Match",xmlName:"If-None-Match",type:{name:"String"}}};const cs={parameterPath:["options","modifiedAccessConditions","ifTags"],mapper:{serializedName:"x-ms-if-tags",xmlName:"x-ms-if-tags",type:{name:"String"}}};const ls={parameterPath:["options","deleteSnapshots"],mapper:{serializedName:"x-ms-delete-snapshots",xmlName:"x-ms-delete-snapshots",type:{name:"Enum",allowedValues:["include","only"]}}};const ds={parameterPath:["options","blobDeleteType"],mapper:{serializedName:"deletetype",xmlName:"deletetype",type:{name:"String"}}};const us={parameterPath:"comp",mapper:{defaultValue:"expiry",isConstant:true,serializedName:"comp",type:{name:"String"}}};const ps={parameterPath:"expiryOptions",mapper:{serializedName:"x-ms-expiry-option",required:true,xmlName:"x-ms-expiry-option",type:{name:"String"}}};const gs={parameterPath:["options","expiresOn"],mapper:{serializedName:"x-ms-expiry-time",xmlName:"x-ms-expiry-time",type:{name:"String"}}};const hs={parameterPath:["options","blobHttpHeaders","blobCacheControl"],mapper:{serializedName:"x-ms-blob-cache-control",xmlName:"x-ms-blob-cache-control",type:{name:"String"}}};const ms={parameterPath:["options","blobHttpHeaders","blobContentType"],mapper:{serializedName:"x-ms-blob-content-type",xmlName:"x-ms-blob-content-type",type:{name:"String"}}};const fs={parameterPath:["options","blobHttpHeaders","blobContentMD5"],mapper:{serializedName:"x-ms-blob-content-md5",xmlName:"x-ms-blob-content-md5",type:{name:"ByteArray"}}};const Es={parameterPath:["options","blobHttpHeaders","blobContentEncoding"],mapper:{serializedName:"x-ms-blob-content-encoding",xmlName:"x-ms-blob-content-encoding",type:{name:"String"}}};const Cs={parameterPath:["options","blobHttpHeaders","blobContentLanguage"],mapper:{serializedName:"x-ms-blob-content-language",xmlName:"x-ms-blob-content-language",type:{name:"String"}}};const ys={parameterPath:["options","blobHttpHeaders","blobContentDisposition"],mapper:{serializedName:"x-ms-blob-content-disposition",xmlName:"x-ms-blob-content-disposition",type:{name:"String"}}};const Is={parameterPath:"comp",mapper:{defaultValue:"immutabilityPolicies",isConstant:true,serializedName:"comp",type:{name:"String"}}};const Bs={parameterPath:["options","immutabilityPolicyExpiry"],mapper:{serializedName:"x-ms-immutability-policy-until-date",xmlName:"x-ms-immutability-policy-until-date",type:{name:"DateTimeRfc1123"}}};const bs={parameterPath:["options","immutabilityPolicyMode"],mapper:{serializedName:"x-ms-immutability-policy-mode",xmlName:"x-ms-immutability-policy-mode",type:{name:"Enum",allowedValues:["Mutable","Unlocked","Locked"]}}};const Qs={parameterPath:"comp",mapper:{defaultValue:"legalhold",isConstant:true,serializedName:"comp",type:{name:"String"}}};const ws={parameterPath:"legalHold",mapper:{serializedName:"x-ms-legal-hold",required:true,xmlName:"x-ms-legal-hold",type:{name:"Boolean"}}};const vs={parameterPath:["options","encryptionScope"],mapper:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}}};const Ss={parameterPath:"comp",mapper:{defaultValue:"snapshot",isConstant:true,serializedName:"comp",type:{name:"String"}}};const Rs={parameterPath:["options","tier"],mapper:{serializedName:"x-ms-access-tier",xmlName:"x-ms-access-tier",type:{name:"Enum",allowedValues:["P4","P6","P10","P15","P20","P30","P40","P50","P60","P70","P80","Hot","Cool","Archive","Cold"]}}};const Ns={parameterPath:["options","rehydratePriority"],mapper:{serializedName:"x-ms-rehydrate-priority",xmlName:"x-ms-rehydrate-priority",type:{name:"Enum",allowedValues:["High","Standard"]}}};const xs={parameterPath:["options","sourceModifiedAccessConditions","sourceIfModifiedSince"],mapper:{serializedName:"x-ms-source-if-modified-since",xmlName:"x-ms-source-if-modified-since",type:{name:"DateTimeRfc1123"}}};const Ds={parameterPath:["options","sourceModifiedAccessConditions","sourceIfUnmodifiedSince"],mapper:{serializedName:"x-ms-source-if-unmodified-since",xmlName:"x-ms-source-if-unmodified-since",type:{name:"DateTimeRfc1123"}}};const ks={parameterPath:["options","sourceModifiedAccessConditions","sourceIfMatch"],mapper:{serializedName:"x-ms-source-if-match",xmlName:"x-ms-source-if-match",type:{name:"String"}}};const Ts={parameterPath:["options","sourceModifiedAccessConditions","sourceIfNoneMatch"],mapper:{serializedName:"x-ms-source-if-none-match",xmlName:"x-ms-source-if-none-match",type:{name:"String"}}};const _s={parameterPath:["options","sourceModifiedAccessConditions","sourceIfTags"],mapper:{serializedName:"x-ms-source-if-tags",xmlName:"x-ms-source-if-tags",type:{name:"String"}}};const Ps={parameterPath:"copySource",mapper:{serializedName:"x-ms-copy-source",required:true,xmlName:"x-ms-copy-source",type:{name:"String"}}};const Os={parameterPath:["options","blobTagsString"],mapper:{serializedName:"x-ms-tags",xmlName:"x-ms-tags",type:{name:"String"}}};const Fs={parameterPath:["options","sealBlob"],mapper:{serializedName:"x-ms-seal-blob",xmlName:"x-ms-seal-blob",type:{name:"Boolean"}}};const Ls={parameterPath:["options","legalHold"],mapper:{serializedName:"x-ms-legal-hold",xmlName:"x-ms-legal-hold",type:{name:"Boolean"}}};const Ms={parameterPath:"xMsRequiresSync",mapper:{defaultValue:"true",isConstant:true,serializedName:"x-ms-requires-sync",type:{name:"String"}}};const Us={parameterPath:["options","sourceContentMD5"],mapper:{serializedName:"x-ms-source-content-md5",xmlName:"x-ms-source-content-md5",type:{name:"ByteArray"}}};const Hs={parameterPath:["options","copySourceAuthorization"],mapper:{serializedName:"x-ms-copy-source-authorization",xmlName:"x-ms-copy-source-authorization",type:{name:"String"}}};const Gs={parameterPath:["options","copySourceTags"],mapper:{serializedName:"x-ms-copy-source-tag-option",xmlName:"x-ms-copy-source-tag-option",type:{name:"Enum",allowedValues:["REPLACE","COPY"]}}};const qs={parameterPath:"comp",mapper:{defaultValue:"copy",isConstant:true,serializedName:"comp",type:{name:"String"}}};const Vs={parameterPath:"copyActionAbortConstant",mapper:{defaultValue:"abort",isConstant:true,serializedName:"x-ms-copy-action",type:{name:"String"}}};const js={parameterPath:"copyId",mapper:{serializedName:"copyid",required:true,xmlName:"copyid",type:{name:"String"}}};const zs={parameterPath:"comp",mapper:{defaultValue:"tier",isConstant:true,serializedName:"comp",type:{name:"String"}}};const Ys={parameterPath:"tier",mapper:{serializedName:"x-ms-access-tier",required:true,xmlName:"x-ms-access-tier",type:{name:"Enum",allowedValues:["P4","P6","P10","P15","P20","P30","P40","P50","P60","P70","P80","Hot","Cool","Archive","Cold"]}}};const Js={parameterPath:["options","queryRequest"],mapper:ae};const Ws={parameterPath:"comp",mapper:{defaultValue:"query",isConstant:true,serializedName:"comp",type:{name:"String"}}};const Xs={parameterPath:"comp",mapper:{defaultValue:"tags",isConstant:true,serializedName:"comp",type:{name:"String"}}};const $s={parameterPath:["options","tags"],mapper:q};const Ks={parameterPath:["options","transactionalContentMD5"],mapper:{serializedName:"Content-MD5",xmlName:"Content-MD5",type:{name:"ByteArray"}}};const Zs={parameterPath:["options","transactionalContentCrc64"],mapper:{serializedName:"x-ms-content-crc64",xmlName:"x-ms-content-crc64",type:{name:"ByteArray"}}};const ei={parameterPath:"blobType",mapper:{defaultValue:"PageBlob",isConstant:true,serializedName:"x-ms-blob-type",type:{name:"String"}}};const ti={parameterPath:"blobContentLength",mapper:{serializedName:"x-ms-blob-content-length",required:true,xmlName:"x-ms-blob-content-length",type:{name:"Number"}}};const ri={parameterPath:["options","blobSequenceNumber"],mapper:{serializedName:"x-ms-blob-sequence-number",xmlName:"x-ms-blob-sequence-number",type:{name:"Number"}}};const ni={parameterPath:["options","contentType"],mapper:{defaultValue:"application/octet-stream",isConstant:true,serializedName:"Content-Type",type:{name:"String"}}};const si={parameterPath:"body",mapper:{serializedName:"body",required:true,xmlName:"body",type:{name:"Stream"}}};const ii={parameterPath:"accept",mapper:{defaultValue:"application/xml",isConstant:true,serializedName:"Accept",type:{name:"String"}}};const oi={parameterPath:"comp",mapper:{defaultValue:"page",isConstant:true,serializedName:"comp",type:{name:"String"}}};const ai={parameterPath:"pageWrite",mapper:{defaultValue:"update",isConstant:true,serializedName:"x-ms-page-write",type:{name:"String"}}};const Ai={parameterPath:["options","sequenceNumberAccessConditions","ifSequenceNumberLessThanOrEqualTo"],mapper:{serializedName:"x-ms-if-sequence-number-le",xmlName:"x-ms-if-sequence-number-le",type:{name:"Number"}}};const ci={parameterPath:["options","sequenceNumberAccessConditions","ifSequenceNumberLessThan"],mapper:{serializedName:"x-ms-if-sequence-number-lt",xmlName:"x-ms-if-sequence-number-lt",type:{name:"Number"}}};const li={parameterPath:["options","sequenceNumberAccessConditions","ifSequenceNumberEqualTo"],mapper:{serializedName:"x-ms-if-sequence-number-eq",xmlName:"x-ms-if-sequence-number-eq",type:{name:"Number"}}};const di={parameterPath:"pageWrite",mapper:{defaultValue:"clear",isConstant:true,serializedName:"x-ms-page-write",type:{name:"String"}}};const ui={parameterPath:"sourceUrl",mapper:{serializedName:"x-ms-copy-source",required:true,xmlName:"x-ms-copy-source",type:{name:"String"}}};const pi={parameterPath:"sourceRange",mapper:{serializedName:"x-ms-source-range",required:true,xmlName:"x-ms-source-range",type:{name:"String"}}};const gi={parameterPath:["options","sourceContentCrc64"],mapper:{serializedName:"x-ms-source-content-crc64",xmlName:"x-ms-source-content-crc64",type:{name:"ByteArray"}}};const hi={parameterPath:"range",mapper:{serializedName:"x-ms-range",required:true,xmlName:"x-ms-range",type:{name:"String"}}};const mi={parameterPath:"comp",mapper:{defaultValue:"pagelist",isConstant:true,serializedName:"comp",type:{name:"String"}}};const fi={parameterPath:["options","prevsnapshot"],mapper:{serializedName:"prevsnapshot",xmlName:"prevsnapshot",type:{name:"String"}}};const Ei={parameterPath:["options","prevSnapshotUrl"],mapper:{serializedName:"x-ms-previous-snapshot-url",xmlName:"x-ms-previous-snapshot-url",type:{name:"String"}}};const Ci={parameterPath:"sequenceNumberAction",mapper:{serializedName:"x-ms-sequence-number-action",required:true,xmlName:"x-ms-sequence-number-action",type:{name:"Enum",allowedValues:["max","update","increment"]}}};const yi={parameterPath:"comp",mapper:{defaultValue:"incrementalcopy",isConstant:true,serializedName:"comp",type:{name:"String"}}};const Ii={parameterPath:"blobType",mapper:{defaultValue:"AppendBlob",isConstant:true,serializedName:"x-ms-blob-type",type:{name:"String"}}};const Bi={parameterPath:"comp",mapper:{defaultValue:"appendblock",isConstant:true,serializedName:"comp",type:{name:"String"}}};const bi={parameterPath:["options","appendPositionAccessConditions","maxSize"],mapper:{serializedName:"x-ms-blob-condition-maxsize",xmlName:"x-ms-blob-condition-maxsize",type:{name:"Number"}}};const Qi={parameterPath:["options","appendPositionAccessConditions","appendPosition"],mapper:{serializedName:"x-ms-blob-condition-appendpos",xmlName:"x-ms-blob-condition-appendpos",type:{name:"Number"}}};const wi={parameterPath:["options","sourceRange"],mapper:{serializedName:"x-ms-source-range",xmlName:"x-ms-source-range",type:{name:"String"}}};const vi={parameterPath:"comp",mapper:{defaultValue:"seal",isConstant:true,serializedName:"comp",type:{name:"String"}}};const Si={parameterPath:"blobType",mapper:{defaultValue:"BlockBlob",isConstant:true,serializedName:"x-ms-blob-type",type:{name:"String"}}};const Ri={parameterPath:["options","copySourceBlobProperties"],mapper:{serializedName:"x-ms-copy-source-blob-properties",xmlName:"x-ms-copy-source-blob-properties",type:{name:"Boolean"}}};const Ni={parameterPath:"comp",mapper:{defaultValue:"block",isConstant:true,serializedName:"comp",type:{name:"String"}}};const xi={parameterPath:"blockId",mapper:{serializedName:"blockid",required:true,xmlName:"blockid",type:{name:"String"}}};const Di={parameterPath:"blocks",mapper:te};const ki={parameterPath:"comp",mapper:{defaultValue:"blocklist",isConstant:true,serializedName:"comp",type:{name:"String"}}};const Ti={parameterPath:"listType",mapper:{defaultValue:"committed",serializedName:"blocklisttype",required:true,xmlName:"blocklisttype",type:{name:"Enum",allowedValues:["committed","uncommitted","all"]}}};class Service{constructor(r){this.client=r}setProperties(r,s){const i={blobServiceProperties:r,options:B.operationOptionsToRequestOptionsBase(s||{})};return this.client.sendOperationRequest(i,Pi)}getProperties(r){const s={options:B.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(s,Oi)}getStatistics(r){const s={options:B.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(s,Fi)}listContainersSegment(r){const s={options:B.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(s,Li)}getUserDelegationKey(r,s){const i={keyInfo:r,options:B.operationOptionsToRequestOptionsBase(s||{})};return this.client.sendOperationRequest(i,Mi)}getAccountInfo(r){const s={options:B.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(s,Ui)}submitBatch(r,s,i,a){const A={contentLength:r,multipartContentType:s,body:i,options:B.operationOptionsToRequestOptionsBase(a||{})};return this.client.sendOperationRequest(A,Hi)}filterBlobs(r){const s={options:B.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(s,Gi)}}const _i=new B.Serializer(Yr,true);const Pi={path:"/",httpMethod:"PUT",responses:{202:{headersMapper:ge},default:{bodyMapper:k,headersMapper:he}},requestBody:Wr,queryParameters:[Kr,Zr,en],urlParameters:[$r],headerParameters:[Jr,Xr,tn,rn],isXML:true,contentType:"application/xml; charset=utf-8",mediaType:"xml",serializer:_i};const Oi={path:"/",httpMethod:"GET",responses:{200:{bodyMapper:v,headersMapper:me},default:{bodyMapper:k,headersMapper:fe}},queryParameters:[Kr,Zr,en],urlParameters:[$r],headerParameters:[tn,rn,nn],isXML:true,serializer:_i};const Fi={path:"/",httpMethod:"GET",responses:{200:{bodyMapper:T,headersMapper:Ee},default:{bodyMapper:k,headersMapper:Ce}},queryParameters:[Kr,en,sn],urlParameters:[$r],headerParameters:[tn,rn,nn],isXML:true,serializer:_i};const Li={path:"/",httpMethod:"GET",responses:{200:{bodyMapper:P,headersMapper:ye},default:{bodyMapper:k,headersMapper:Ie}},queryParameters:[en,an,An,cn,ln,dn],urlParameters:[$r],headerParameters:[tn,rn,nn],isXML:true,serializer:_i};const Mi={path:"/",httpMethod:"POST",responses:{200:{bodyMapper:U,headersMapper:Be},default:{bodyMapper:k,headersMapper:be}},requestBody:un,queryParameters:[Kr,en,pn],urlParameters:[$r],headerParameters:[Jr,Xr,tn,rn],isXML:true,contentType:"application/xml; charset=utf-8",mediaType:"xml",serializer:_i};const Ui={path:"/",httpMethod:"GET",responses:{200:{headersMapper:Qe},default:{bodyMapper:k,headersMapper:we}},queryParameters:[Zr,gn],urlParameters:[$r],headerParameters:[tn,nn],isXML:true,serializer:_i};const Hi={path:"/",httpMethod:"POST",responses:{202:{bodyMapper:{type:{name:"Stream"},serializedName:"parsedResponse"},headersMapper:ve},default:{bodyMapper:k,headersMapper:Se}},requestBody:hn,queryParameters:[en,mn],urlParameters:[$r],headerParameters:[Jr,Xr,tn,rn,En,Cn],isXML:true,contentType:"application/xml; charset=utf-8",mediaType:"xml",serializer:_i};const Gi={path:"/",httpMethod:"GET",responses:{200:{bodyMapper:H,headersMapper:Re},default:{bodyMapper:k,headersMapper:Ne}},queryParameters:[en,cn,ln,yn,In],urlParameters:[$r],headerParameters:[tn,rn,nn],isXML:true,serializer:_i};class Container{constructor(r){this.client=r}create(r){const s={options:B.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(s,Vi)}getProperties(r){const s={options:B.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(s,ji)}delete(r){const s={options:B.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(s,zi)}setMetadata(r){const s={options:B.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(s,Yi)}getAccessPolicy(r){const s={options:B.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(s,Ji)}setAccessPolicy(r){const s={options:B.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(s,Wi)}restore(r){const s={options:B.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(s,Xi)}rename(r,s){const i={sourceContainerName:r,options:B.operationOptionsToRequestOptionsBase(s||{})};return this.client.sendOperationRequest(i,$i)}submitBatch(r,s,i,a){const A={contentLength:r,multipartContentType:s,body:i,options:B.operationOptionsToRequestOptionsBase(a||{})};return this.client.sendOperationRequest(A,Ki)}filterBlobs(r){const s={options:B.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(s,Zi)}acquireLease(r){const s={options:B.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(s,eo)}releaseLease(r,s){const i={leaseId:r,options:B.operationOptionsToRequestOptionsBase(s||{})};return this.client.sendOperationRequest(i,to)}renewLease(r,s){const i={leaseId:r,options:B.operationOptionsToRequestOptionsBase(s||{})};return this.client.sendOperationRequest(i,ro)}breakLease(r){const s={options:B.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(s,no)}changeLease(r,s,i){const a={leaseId:r,proposedLeaseId:s,options:B.operationOptionsToRequestOptionsBase(i||{})};return this.client.sendOperationRequest(a,so)}listBlobFlatSegment(r){const s={options:B.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(s,io)}listBlobHierarchySegment(r,s){const i={delimiter:r,options:B.operationOptionsToRequestOptionsBase(s||{})};return this.client.sendOperationRequest(i,oo)}getAccountInfo(r){const s={options:B.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(s,ao)}}const qi=new B.Serializer(Yr,true);const Vi={path:"/{containerName}",httpMethod:"PUT",responses:{201:{headersMapper:xe},default:{bodyMapper:k,headersMapper:De}},queryParameters:[en,Bn],urlParameters:[$r],headerParameters:[tn,rn,nn,bn,Qn,wn,vn],isXML:true,serializer:qi};const ji={path:"/{containerName}",httpMethod:"GET",responses:{200:{headersMapper:ke},default:{bodyMapper:k,headersMapper:Te}},queryParameters:[en,Bn],urlParameters:[$r],headerParameters:[tn,rn,nn,Sn],isXML:true,serializer:qi};const zi={path:"/{containerName}",httpMethod:"DELETE",responses:{202:{headersMapper:_e},default:{bodyMapper:k,headersMapper:Pe}},queryParameters:[en,Bn],urlParameters:[$r],headerParameters:[tn,rn,nn,Sn,Rn,Nn],isXML:true,serializer:qi};const Yi={path:"/{containerName}",httpMethod:"PUT",responses:{200:{headersMapper:Oe},default:{bodyMapper:k,headersMapper:Fe}},queryParameters:[en,Bn,xn],urlParameters:[$r],headerParameters:[tn,rn,nn,bn,Sn,Rn],isXML:true,serializer:qi};const Ji={path:"/{containerName}",httpMethod:"GET",responses:{200:{bodyMapper:{type:{name:"Sequence",element:{type:{name:"Composite",className:"SignedIdentifier"}}},serializedName:"SignedIdentifiers",xmlName:"SignedIdentifiers",xmlIsWrapped:true,xmlElementName:"SignedIdentifier"},headersMapper:Le},default:{bodyMapper:k,headersMapper:Me}},queryParameters:[en,Bn,Dn],urlParameters:[$r],headerParameters:[tn,rn,nn,Sn],isXML:true,serializer:qi};const Wi={path:"/{containerName}",httpMethod:"PUT",responses:{200:{headersMapper:Ue},default:{bodyMapper:k,headersMapper:He}},requestBody:kn,queryParameters:[en,Bn,Dn],urlParameters:[$r],headerParameters:[Jr,Xr,tn,rn,Qn,Sn,Rn,Nn],isXML:true,contentType:"application/xml; charset=utf-8",mediaType:"xml",serializer:qi};const Xi={path:"/{containerName}",httpMethod:"PUT",responses:{201:{headersMapper:Ge},default:{bodyMapper:k,headersMapper:qe}},queryParameters:[en,Bn,Tn],urlParameters:[$r],headerParameters:[tn,rn,nn,_n,Pn],isXML:true,serializer:qi};const $i={path:"/{containerName}",httpMethod:"PUT",responses:{200:{headersMapper:Ve},default:{bodyMapper:k,headersMapper:je}},queryParameters:[en,Bn,On],urlParameters:[$r],headerParameters:[tn,rn,nn,Fn,Ln],isXML:true,serializer:qi};const Ki={path:"/{containerName}",httpMethod:"POST",responses:{202:{bodyMapper:{type:{name:"Stream"},serializedName:"parsedResponse"},headersMapper:ze},default:{bodyMapper:k,headersMapper:Ye}},requestBody:hn,queryParameters:[en,mn,Bn],urlParameters:[$r],headerParameters:[Jr,Xr,tn,rn,En,Cn],isXML:true,contentType:"application/xml; charset=utf-8",mediaType:"xml",serializer:qi};const Zi={path:"/{containerName}",httpMethod:"GET",responses:{200:{bodyMapper:H,headersMapper:Je},default:{bodyMapper:k,headersMapper:We}},queryParameters:[en,cn,ln,yn,In,Bn],urlParameters:[$r],headerParameters:[tn,rn,nn],isXML:true,serializer:qi};const eo={path:"/{containerName}",httpMethod:"PUT",responses:{201:{headersMapper:Xe},default:{bodyMapper:k,headersMapper:$e}},queryParameters:[en,Bn,Mn],urlParameters:[$r],headerParameters:[tn,rn,nn,Rn,Nn,Un,Hn,Gn],isXML:true,serializer:qi};const to={path:"/{containerName}",httpMethod:"PUT",responses:{200:{headersMapper:Ke},default:{bodyMapper:k,headersMapper:Ze}},queryParameters:[en,Bn,Mn],urlParameters:[$r],headerParameters:[tn,rn,nn,Rn,Nn,qn,Vn],isXML:true,serializer:qi};const ro={path:"/{containerName}",httpMethod:"PUT",responses:{200:{headersMapper:et},default:{bodyMapper:k,headersMapper:tt}},queryParameters:[en,Bn,Mn],urlParameters:[$r],headerParameters:[tn,rn,nn,Rn,Nn,Vn,jn],isXML:true,serializer:qi};const no={path:"/{containerName}",httpMethod:"PUT",responses:{202:{headersMapper:rt},default:{bodyMapper:k,headersMapper:nt}},queryParameters:[en,Bn,Mn],urlParameters:[$r],headerParameters:[tn,rn,nn,Rn,Nn,zn,Yn],isXML:true,serializer:qi};const so={path:"/{containerName}",httpMethod:"PUT",responses:{200:{headersMapper:st},default:{bodyMapper:k,headersMapper:it}},queryParameters:[en,Bn,Mn],urlParameters:[$r],headerParameters:[tn,rn,nn,Rn,Nn,Vn,Jn,Wn],isXML:true,serializer:qi};const io={path:"/{containerName}",httpMethod:"GET",responses:{200:{bodyMapper:Y,headersMapper:ot},default:{bodyMapper:k,headersMapper:At}},queryParameters:[en,an,An,cn,ln,Bn,Xn],urlParameters:[$r],headerParameters:[tn,rn,nn],isXML:true,serializer:qi};const oo={path:"/{containerName}",httpMethod:"GET",responses:{200:{bodyMapper:K,headersMapper:ct},default:{bodyMapper:k,headersMapper:dt}},queryParameters:[en,an,An,cn,ln,Bn,Xn,$n],urlParameters:[$r],headerParameters:[tn,rn,nn],isXML:true,serializer:qi};const ao={path:"/{containerName}",httpMethod:"GET",responses:{200:{headersMapper:ut},default:{bodyMapper:k,headersMapper:pt}},queryParameters:[Zr,gn],urlParameters:[$r],headerParameters:[tn,nn],isXML:true,serializer:qi};class Blob$1{constructor(r){this.client=r}download(r){const s={options:B.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(s,co)}getProperties(r){const s={options:B.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(s,lo)}delete(r){const s={options:B.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(s,uo)}undelete(r){const s={options:B.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(s,po)}setExpiry(r,s){const i={expiryOptions:r,options:B.operationOptionsToRequestOptionsBase(s||{})};return this.client.sendOperationRequest(i,go)}setHttpHeaders(r){const s={options:B.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(s,ho)}setImmutabilityPolicy(r){const s={options:B.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(s,mo)}deleteImmutabilityPolicy(r){const s={options:B.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(s,fo)}setLegalHold(r,s){const i={legalHold:r,options:B.operationOptionsToRequestOptionsBase(s||{})};return this.client.sendOperationRequest(i,Eo)}setMetadata(r){const s={options:B.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(s,Co)}acquireLease(r){const s={options:B.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(s,yo)}releaseLease(r,s){const i={leaseId:r,options:B.operationOptionsToRequestOptionsBase(s||{})};return this.client.sendOperationRequest(i,Io)}renewLease(r,s){const i={leaseId:r,options:B.operationOptionsToRequestOptionsBase(s||{})};return this.client.sendOperationRequest(i,Bo)}changeLease(r,s,i){const a={leaseId:r,proposedLeaseId:s,options:B.operationOptionsToRequestOptionsBase(i||{})};return this.client.sendOperationRequest(a,bo)}breakLease(r){const s={options:B.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(s,Qo)}createSnapshot(r){const s={options:B.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(s,wo)}startCopyFromURL(r,s){const i={copySource:r,options:B.operationOptionsToRequestOptionsBase(s||{})};return this.client.sendOperationRequest(i,vo)}copyFromURL(r,s){const i={copySource:r,options:B.operationOptionsToRequestOptionsBase(s||{})};return this.client.sendOperationRequest(i,So)}abortCopyFromURL(r,s){const i={copyId:r,options:B.operationOptionsToRequestOptionsBase(s||{})};return this.client.sendOperationRequest(i,Ro)}setTier(r,s){const i={tier:r,options:B.operationOptionsToRequestOptionsBase(s||{})};return this.client.sendOperationRequest(i,No)}getAccountInfo(r){const s={options:B.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(s,xo)}query(r){const s={options:B.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(s,Do)}getTags(r){const s={options:B.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(s,ko)}setTags(r){const s={options:B.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(s,To)}}const Ao=new B.Serializer(Yr,true);const co={path:"/{containerName}/{blob}",httpMethod:"GET",responses:{200:{bodyMapper:{type:{name:"Stream"},serializedName:"parsedResponse"},headersMapper:ht},206:{bodyMapper:{type:{name:"Stream"},serializedName:"parsedResponse"},headersMapper:ht},default:{bodyMapper:k,headersMapper:mt}},queryParameters:[en,Kn,Zn],urlParameters:[$r],headerParameters:[tn,rn,nn,Sn,Rn,Nn,es,ts,rs,ns,ss,os,as,As,cs],isXML:true,serializer:Ao};const lo={path:"/{containerName}/{blob}",httpMethod:"HEAD",responses:{200:{headersMapper:ft},default:{bodyMapper:k,headersMapper:Et}},queryParameters:[en,Kn,Zn],urlParameters:[$r],headerParameters:[tn,rn,nn,Sn,Rn,Nn,ns,ss,os,as,As,cs],isXML:true,serializer:Ao};const uo={path:"/{containerName}/{blob}",httpMethod:"DELETE",responses:{202:{headersMapper:Ct},default:{bodyMapper:k,headersMapper:yt}},queryParameters:[en,Kn,Zn,ds],urlParameters:[$r],headerParameters:[tn,rn,nn,Sn,Rn,Nn,as,As,cs,ls],isXML:true,serializer:Ao};const po={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:It},default:{bodyMapper:k,headersMapper:Bt}},queryParameters:[en,Tn],urlParameters:[$r],headerParameters:[tn,rn,nn],isXML:true,serializer:Ao};const go={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:bt},default:{bodyMapper:k,headersMapper:Qt}},queryParameters:[en,us],urlParameters:[$r],headerParameters:[tn,rn,nn,ps,gs],isXML:true,serializer:Ao};const ho={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:wt},default:{bodyMapper:k,headersMapper:vt}},queryParameters:[Zr,en],urlParameters:[$r],headerParameters:[tn,rn,nn,Sn,Rn,Nn,as,As,cs,hs,ms,fs,Es,Cs,ys],isXML:true,serializer:Ao};const mo={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:St},default:{bodyMapper:k,headersMapper:Rt}},queryParameters:[en,Is],urlParameters:[$r],headerParameters:[tn,rn,nn,Nn,Bs,bs],isXML:true,serializer:Ao};const fo={path:"/{containerName}/{blob}",httpMethod:"DELETE",responses:{200:{headersMapper:Nt},default:{bodyMapper:k,headersMapper:xt}},queryParameters:[en,Is],urlParameters:[$r],headerParameters:[tn,rn,nn],isXML:true,serializer:Ao};const Eo={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:Dt},default:{bodyMapper:k,headersMapper:kt}},queryParameters:[en,Qs],urlParameters:[$r],headerParameters:[tn,rn,nn,ws],isXML:true,serializer:Ao};const Co={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:Tt},default:{bodyMapper:k,headersMapper:_t}},queryParameters:[en,xn],urlParameters:[$r],headerParameters:[tn,rn,nn,bn,Sn,Rn,Nn,ns,ss,os,as,As,cs,vs],isXML:true,serializer:Ao};const yo={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:Pt},default:{bodyMapper:k,headersMapper:Ot}},queryParameters:[en,Mn],urlParameters:[$r],headerParameters:[tn,rn,nn,Rn,Nn,Un,Hn,Gn,as,As,cs],isXML:true,serializer:Ao};const Io={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:Ft},default:{bodyMapper:k,headersMapper:Lt}},queryParameters:[en,Mn],urlParameters:[$r],headerParameters:[tn,rn,nn,Rn,Nn,qn,Vn,as,As,cs],isXML:true,serializer:Ao};const Bo={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:Mt},default:{bodyMapper:k,headersMapper:Ut}},queryParameters:[en,Mn],urlParameters:[$r],headerParameters:[tn,rn,nn,Rn,Nn,Vn,jn,as,As,cs],isXML:true,serializer:Ao};const bo={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:Ht},default:{bodyMapper:k,headersMapper:Gt}},queryParameters:[en,Mn],urlParameters:[$r],headerParameters:[tn,rn,nn,Rn,Nn,Vn,Jn,Wn,as,As,cs],isXML:true,serializer:Ao};const Qo={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{202:{headersMapper:qt},default:{bodyMapper:k,headersMapper:Vt}},queryParameters:[en,Mn],urlParameters:[$r],headerParameters:[tn,rn,nn,Rn,Nn,zn,Yn,as,As,cs],isXML:true,serializer:Ao};const wo={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:jt},default:{bodyMapper:k,headersMapper:zt}},queryParameters:[en,Ss],urlParameters:[$r],headerParameters:[tn,rn,nn,bn,Sn,Rn,Nn,ns,ss,os,as,As,cs,vs],isXML:true,serializer:Ao};const vo={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{202:{headersMapper:Yt},default:{bodyMapper:k,headersMapper:Jt}},queryParameters:[en],urlParameters:[$r],headerParameters:[tn,rn,nn,bn,Sn,Rn,Nn,as,As,cs,Bs,bs,Rs,Ns,xs,Ds,ks,Ts,_s,Ps,Os,Fs,Ls],isXML:true,serializer:Ao};const So={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{202:{headersMapper:Wt},default:{bodyMapper:k,headersMapper:Xt}},queryParameters:[en],urlParameters:[$r],headerParameters:[tn,rn,nn,bn,Sn,Rn,Nn,as,As,cs,Bs,bs,vs,Rs,xs,Ds,ks,Ts,Ps,Os,Ls,Ms,Us,Hs,Gs],isXML:true,serializer:Ao};const Ro={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{204:{headersMapper:$t},default:{bodyMapper:k,headersMapper:Kt}},queryParameters:[en,qs,js],urlParameters:[$r],headerParameters:[tn,rn,nn,Sn,Vs],isXML:true,serializer:Ao};const No={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:Zt},202:{headersMapper:Zt},default:{bodyMapper:k,headersMapper:er}},queryParameters:[en,Kn,Zn,zs],urlParameters:[$r],headerParameters:[tn,rn,nn,Sn,cs,Ns,Ys],isXML:true,serializer:Ao};const xo={path:"/{containerName}/{blob}",httpMethod:"GET",responses:{200:{headersMapper:tr},default:{bodyMapper:k,headersMapper:rr}},queryParameters:[Zr,gn],urlParameters:[$r],headerParameters:[tn,nn],isXML:true,serializer:Ao};const Do={path:"/{containerName}/{blob}",httpMethod:"POST",responses:{200:{bodyMapper:{type:{name:"Stream"},serializedName:"parsedResponse"},headersMapper:nr},206:{bodyMapper:{type:{name:"Stream"},serializedName:"parsedResponse"},headersMapper:nr},default:{bodyMapper:k,headersMapper:sr}},requestBody:Js,queryParameters:[en,Kn,Ws],urlParameters:[$r],headerParameters:[Jr,Xr,tn,rn,Sn,Rn,Nn,ns,ss,os,as,As,cs],isXML:true,contentType:"application/xml; charset=utf-8",mediaType:"xml",serializer:Ao};const ko={path:"/{containerName}/{blob}",httpMethod:"GET",responses:{200:{bodyMapper:q,headersMapper:ir},default:{bodyMapper:k,headersMapper:or}},queryParameters:[en,Kn,Zn,Xs],urlParameters:[$r],headerParameters:[tn,rn,nn,Sn,cs],isXML:true,serializer:Ao};const To={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{204:{headersMapper:ar},default:{bodyMapper:k,headersMapper:Ar}},requestBody:$s,queryParameters:[en,Zn,Xs],urlParameters:[$r],headerParameters:[Jr,Xr,tn,rn,Sn,cs,Ks,Zs],isXML:true,contentType:"application/xml; charset=utf-8",mediaType:"xml",serializer:Ao};class PageBlob{constructor(r){this.client=r}create(r,s,i){const a={contentLength:r,blobContentLength:s,options:B.operationOptionsToRequestOptionsBase(i||{})};return this.client.sendOperationRequest(a,Oo)}uploadPages(r,s,i){const a={contentLength:r,body:s,options:B.operationOptionsToRequestOptionsBase(i||{})};return this.client.sendOperationRequest(a,Fo)}clearPages(r,s){const i={contentLength:r,options:B.operationOptionsToRequestOptionsBase(s||{})};return this.client.sendOperationRequest(i,Lo)}uploadPagesFromURL(r,s,i,a,A){const c={sourceUrl:r,sourceRange:s,contentLength:i,range:a,options:B.operationOptionsToRequestOptionsBase(A||{})};return this.client.sendOperationRequest(c,Mo)}getPageRanges(r){const s={options:B.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(s,Uo)}getPageRangesDiff(r){const s={options:B.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(s,Ho)}resize(r,s){const i={blobContentLength:r,options:B.operationOptionsToRequestOptionsBase(s||{})};return this.client.sendOperationRequest(i,Go)}updateSequenceNumber(r,s){const i={sequenceNumberAction:r,options:B.operationOptionsToRequestOptionsBase(s||{})};return this.client.sendOperationRequest(i,qo)}copyIncremental(r,s){const i={copySource:r,options:B.operationOptionsToRequestOptionsBase(s||{})};return this.client.sendOperationRequest(i,Vo)}}const _o=new B.Serializer(Yr,true);const Po=new B.Serializer(Yr,false);const Oo={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:cr},default:{bodyMapper:k,headersMapper:lr}},queryParameters:[en],urlParameters:[$r],headerParameters:[tn,rn,nn,En,bn,Sn,Rn,Nn,ns,ss,os,as,As,cs,hs,ms,fs,Es,Cs,ys,Bs,bs,vs,Rs,Os,Ls,ei,ti,ri],isXML:true,serializer:_o};const Fo={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:dr},default:{bodyMapper:k,headersMapper:ur}},requestBody:si,queryParameters:[en,oi],urlParameters:[$r],headerParameters:[tn,rn,En,Sn,Rn,Nn,es,ns,ss,os,as,As,cs,vs,Ks,Zs,ni,ii,ai,Ai,ci,li],mediaType:"binary",serializer:Po};const Lo={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:pr},default:{bodyMapper:k,headersMapper:gr}},queryParameters:[en,oi],urlParameters:[$r],headerParameters:[tn,rn,nn,En,Sn,Rn,Nn,es,ns,ss,os,as,As,cs,vs,Ai,ci,li,di],isXML:true,serializer:_o};const Mo={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:hr},default:{bodyMapper:k,headersMapper:mr}},queryParameters:[en,oi],urlParameters:[$r],headerParameters:[tn,rn,nn,En,Sn,Rn,Nn,ns,ss,os,as,As,cs,vs,xs,Ds,ks,Ts,Us,Hs,ai,Ai,ci,li,ui,pi,gi,hi],isXML:true,serializer:_o};const Uo={path:"/{containerName}/{blob}",httpMethod:"GET",responses:{200:{bodyMapper:se,headersMapper:fr},default:{bodyMapper:k,headersMapper:Er}},queryParameters:[en,cn,ln,Kn,mi],urlParameters:[$r],headerParameters:[tn,rn,nn,Sn,Rn,Nn,es,as,As,cs],isXML:true,serializer:_o};const Ho={path:"/{containerName}/{blob}",httpMethod:"GET",responses:{200:{bodyMapper:se,headersMapper:Cr},default:{bodyMapper:k,headersMapper:yr}},queryParameters:[en,cn,ln,Kn,mi,fi],urlParameters:[$r],headerParameters:[tn,rn,nn,Sn,Rn,Nn,es,as,As,cs,Ei],isXML:true,serializer:_o};const Go={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:Ir},default:{bodyMapper:k,headersMapper:Br}},queryParameters:[Zr,en],urlParameters:[$r],headerParameters:[tn,rn,nn,Sn,Rn,Nn,ns,ss,os,as,As,cs,vs,ti],isXML:true,serializer:_o};const qo={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:br},default:{bodyMapper:k,headersMapper:Qr}},queryParameters:[Zr,en],urlParameters:[$r],headerParameters:[tn,rn,nn,Sn,Rn,Nn,as,As,cs,ri,Ci],isXML:true,serializer:_o};const Vo={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{202:{headersMapper:wr},default:{bodyMapper:k,headersMapper:vr}},queryParameters:[en,yi],urlParameters:[$r],headerParameters:[tn,rn,nn,Rn,Nn,as,As,cs,Ps],isXML:true,serializer:_o};class AppendBlob{constructor(r){this.client=r}create(r,s){const i={contentLength:r,options:B.operationOptionsToRequestOptionsBase(s||{})};return this.client.sendOperationRequest(i,Yo)}appendBlock(r,s,i){const a={contentLength:r,body:s,options:B.operationOptionsToRequestOptionsBase(i||{})};return this.client.sendOperationRequest(a,Jo)}appendBlockFromUrl(r,s,i){const a={sourceUrl:r,contentLength:s,options:B.operationOptionsToRequestOptionsBase(i||{})};return this.client.sendOperationRequest(a,Wo)}seal(r){const s={options:B.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(s,Xo)}}const jo=new B.Serializer(Yr,true);const zo=new B.Serializer(Yr,false);const Yo={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:Sr},default:{bodyMapper:k,headersMapper:Rr}},queryParameters:[en],urlParameters:[$r],headerParameters:[tn,rn,nn,En,bn,Sn,Rn,Nn,ns,ss,os,as,As,cs,hs,ms,fs,Es,Cs,ys,Bs,bs,vs,Os,Ls,Ii],isXML:true,serializer:jo};const Jo={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:Nr},default:{bodyMapper:k,headersMapper:xr}},requestBody:si,queryParameters:[en,Bi],urlParameters:[$r],headerParameters:[tn,rn,En,Sn,Rn,Nn,ns,ss,os,as,As,cs,vs,Ks,Zs,ni,ii,bi,Qi],mediaType:"binary",serializer:zo};const Wo={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:Dr},default:{bodyMapper:k,headersMapper:kr}},queryParameters:[en,Bi],urlParameters:[$r],headerParameters:[tn,rn,nn,En,Sn,Rn,Nn,ns,ss,os,as,As,cs,vs,xs,Ds,ks,Ts,Us,Hs,Ks,ui,gi,bi,Qi,wi],isXML:true,serializer:jo};const Xo={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:Tr},default:{bodyMapper:k,headersMapper:_r}},queryParameters:[en,vi],urlParameters:[$r],headerParameters:[tn,rn,nn,Sn,Rn,Nn,as,As,Qi],isXML:true,serializer:jo};class BlockBlob{constructor(r){this.client=r}upload(r,s,i){const a={contentLength:r,body:s,options:B.operationOptionsToRequestOptionsBase(i||{})};return this.client.sendOperationRequest(a,Zo)}putBlobFromUrl(r,s,i){const a={contentLength:r,copySource:s,options:B.operationOptionsToRequestOptionsBase(i||{})};return this.client.sendOperationRequest(a,ea)}stageBlock(r,s,i,a){const A={blockId:r,contentLength:s,body:i,options:B.operationOptionsToRequestOptionsBase(a||{})};return this.client.sendOperationRequest(A,ta)}stageBlockFromURL(r,s,i,a){const A={blockId:r,contentLength:s,sourceUrl:i,options:B.operationOptionsToRequestOptionsBase(a||{})};return this.client.sendOperationRequest(A,ra)}commitBlockList(r,s){const i={blocks:r,options:B.operationOptionsToRequestOptionsBase(s||{})};return this.client.sendOperationRequest(i,na)}getBlockList(r,s){const i={listType:r,options:B.operationOptionsToRequestOptionsBase(s||{})};return this.client.sendOperationRequest(i,sa)}}const $o=new B.Serializer(Yr,true);const Ko=new B.Serializer(Yr,false);const Zo={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:Pr},default:{bodyMapper:k,headersMapper:Or}},requestBody:si,queryParameters:[en],urlParameters:[$r],headerParameters:[tn,rn,En,bn,Sn,Rn,Nn,ns,ss,os,as,As,cs,hs,ms,fs,Es,Cs,ys,Bs,bs,vs,Rs,Os,Ls,Ks,Zs,ni,ii,Si],mediaType:"binary",serializer:Ko};const ea={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:Fr},default:{bodyMapper:k,headersMapper:Lr}},queryParameters:[en],urlParameters:[$r],headerParameters:[tn,rn,nn,En,bn,Sn,Rn,Nn,ns,ss,os,as,As,cs,hs,ms,fs,Es,Cs,ys,vs,Rs,xs,Ds,ks,Ts,_s,Ps,Os,Us,Hs,Gs,Ks,Si,Ri],isXML:true,serializer:$o};const ta={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:Mr},default:{bodyMapper:k,headersMapper:Ur}},requestBody:si,queryParameters:[en,Ni,xi],urlParameters:[$r],headerParameters:[tn,rn,En,Sn,ns,ss,os,vs,Ks,Zs,ni,ii],mediaType:"binary",serializer:Ko};const ra={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:Hr},default:{bodyMapper:k,headersMapper:Gr}},queryParameters:[en,Ni,xi],urlParameters:[$r],headerParameters:[tn,rn,nn,En,Sn,ns,ss,os,vs,xs,Ds,ks,Ts,Us,Hs,ui,gi,wi],isXML:true,serializer:$o};const na={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:qr},default:{bodyMapper:k,headersMapper:Vr}},requestBody:Di,queryParameters:[en,ki],urlParameters:[$r],headerParameters:[Jr,Xr,tn,rn,bn,Sn,Rn,Nn,ns,ss,os,as,As,cs,hs,ms,fs,Es,Cs,ys,Bs,bs,vs,Rs,Os,Ls,Ks,Zs],isXML:true,contentType:"application/xml; charset=utf-8",mediaType:"xml",serializer:$o};const sa={path:"/{containerName}/{blob}",httpMethod:"GET",responses:{200:{bodyMapper:re,headersMapper:jr},default:{bodyMapper:k,headersMapper:zr}},queryParameters:[en,Kn,ki,Ti],urlParameters:[$r],headerParameters:[tn,rn,nn,Sn,cs],isXML:true,serializer:$o};const ia=l.createClientLogger("storage-blob");const oa="12.14.0";const aa="2022-11-02";const Aa=256*1024*1024;const ca=4e3*1024*1024;const la=5e4;const da=8*1024*1024;const ua=4*1024*1024;const pa=5;const ga=100*1e3;const ha="https://storage.azure.com/.default";const ma={Parameters:{FORCE_BROWSER_NO_CACHE:"_",SIGNATURE:"sig",SNAPSHOT:"snapshot",VERSIONID:"versionid",TIMEOUT:"timeout"}};const fa={HTTP_ACCEPTED:202,HTTP_CONFLICT:409,HTTP_NOT_FOUND:404,HTTP_PRECON_FAILED:412,HTTP_RANGE_NOT_SATISFIABLE:416};const Ea={AUTHORIZATION:"Authorization",AUTHORIZATION_SCHEME:"Bearer",CONTENT_ENCODING:"Content-Encoding",CONTENT_ID:"Content-ID",CONTENT_LANGUAGE:"Content-Language",CONTENT_LENGTH:"Content-Length",CONTENT_MD5:"Content-Md5",CONTENT_TRANSFER_ENCODING:"Content-Transfer-Encoding",CONTENT_TYPE:"Content-Type",COOKIE:"Cookie",DATE:"date",IF_MATCH:"if-match",IF_MODIFIED_SINCE:"if-modified-since",IF_NONE_MATCH:"if-none-match",IF_UNMODIFIED_SINCE:"if-unmodified-since",PREFIX_FOR_STORAGE:"x-ms-",RANGE:"Range",USER_AGENT:"User-Agent",X_MS_CLIENT_REQUEST_ID:"x-ms-client-request-id",X_MS_COPY_SOURCE:"x-ms-copy-source",X_MS_DATE:"x-ms-date",X_MS_ERROR_CODE:"x-ms-error-code",X_MS_VERSION:"x-ms-version"};const Ca="";const ya="*";const Ia=1*1024*1024;const Ba=256;const ba=4*Ia;const Qa="\r\n";const wa="HTTP/1.1";const va="AES256";const Sa=`DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=http://127.0.0.1:10000/devstoreaccount1;`;const Ra=["Access-Control-Allow-Origin","Cache-Control","Content-Length","Content-Type","Date","Request-Id","traceparent","Transfer-Encoding","User-Agent","x-ms-client-request-id","x-ms-date","x-ms-error-code","x-ms-request-id","x-ms-return-client-request-id","x-ms-version","Accept-Ranges","Content-Disposition","Content-Encoding","Content-Language","Content-MD5","Content-Range","ETag","Last-Modified","Server","Vary","x-ms-content-crc64","x-ms-copy-action","x-ms-copy-completion-time","x-ms-copy-id","x-ms-copy-progress","x-ms-copy-status","x-ms-has-immutability-policy","x-ms-has-legal-hold","x-ms-lease-state","x-ms-lease-status","x-ms-range","x-ms-request-server-encrypted","x-ms-server-encrypted","x-ms-snapshot","x-ms-source-range","If-Match","If-Modified-Since","If-None-Match","If-Unmodified-Since","x-ms-access-tier","x-ms-access-tier-change-time","x-ms-access-tier-inferred","x-ms-account-kind","x-ms-archive-status","x-ms-blob-append-offset","x-ms-blob-cache-control","x-ms-blob-committed-block-count","x-ms-blob-condition-appendpos","x-ms-blob-condition-maxsize","x-ms-blob-content-disposition","x-ms-blob-content-encoding","x-ms-blob-content-language","x-ms-blob-content-length","x-ms-blob-content-md5","x-ms-blob-content-type","x-ms-blob-public-access","x-ms-blob-sequence-number","x-ms-blob-type","x-ms-copy-destination-snapshot","x-ms-creation-time","x-ms-default-encryption-scope","x-ms-delete-snapshots","x-ms-delete-type-permanent","x-ms-deny-encryption-scope-override","x-ms-encryption-algorithm","x-ms-if-sequence-number-eq","x-ms-if-sequence-number-le","x-ms-if-sequence-number-lt","x-ms-incremental-copy","x-ms-lease-action","x-ms-lease-break-period","x-ms-lease-duration","x-ms-lease-id","x-ms-lease-time","x-ms-page-write","x-ms-proposed-lease-id","x-ms-range-get-content-md5","x-ms-rehydrate-priority","x-ms-sequence-number-action","x-ms-sku-name","x-ms-source-content-md5","x-ms-source-if-match","x-ms-source-if-modified-since","x-ms-source-if-none-match","x-ms-source-if-unmodified-since","x-ms-tag-count","x-ms-encryption-key-sha256","x-ms-if-tags","x-ms-source-if-tags"];const Na=["comp","maxresults","rscc","rscd","rsce","rscl","rsct","se","si","sip","sp","spr","sr","srt","ss","st","sv","include","marker","prefix","copyid","restype","blockid","blocklisttype","delimiter","prevsnapshot","ske","skoid","sks","skt","sktid","skv","snapshot"];const xa="BlobUsesCustomerSpecifiedEncryption";const Da="BlobDoesNotUseCustomerSpecifiedEncryption";const ka=["10000","10001","10002","10003","10004","10100","10101","10102","10103","10104","11000","11001","11002","11003","11004","11100","11101","11102","11103","11104"];function escapeURLPath(r){const s=a.URLBuilder.parse(r);let i=s.getPath();i=i||"/";i=escape(i);s.setPath(i);return s.toString()}function getProxyUriFromDevConnString(r){let s="";if(r.search("DevelopmentStorageProxyUri=")!==-1){const i=r.split(";");for(const r of i){if(r.trim().startsWith("DevelopmentStorageProxyUri=")){s=r.trim().match("DevelopmentStorageProxyUri=(.*)")[1]}}}return s}function getValueInConnString(r,s){const i=r.split(";");for(const r of i){if(r.trim().startsWith(s)){return r.trim().match(s+"=(.*)")[1]}}return""}function extractConnectionStringParts(r){let s="";if(r.startsWith("UseDevelopmentStorage=true")){s=getProxyUriFromDevConnString(r);r=Sa}let i=getValueInConnString(r,"BlobEndpoint");i=i.endsWith("/")?i.slice(0,-1):i;if(r.search("DefaultEndpointsProtocol=")!==-1&&r.search("AccountKey=")!==-1){let a="";let A="";let c=Buffer.from("accountKey","base64");let l="";A=getValueInConnString(r,"AccountName");c=Buffer.from(getValueInConnString(r,"AccountKey"),"base64");if(!i){a=getValueInConnString(r,"DefaultEndpointsProtocol");const s=a.toLowerCase();if(s!=="https"&&s!=="http"){throw new Error("Invalid DefaultEndpointsProtocol in the provided Connection String. Expecting 'https' or 'http'")}l=getValueInConnString(r,"EndpointSuffix");if(!l){throw new Error("Invalid EndpointSuffix in the provided Connection String")}i=`${a}://${A}.blob.${l}`}if(!A){throw new Error("Invalid AccountName in the provided Connection String")}else if(c.length===0){throw new Error("Invalid AccountKey in the provided Connection String")}return{kind:"AccountConnString",url:i,accountName:A,accountKey:c,proxyUri:s}}else{const s=getValueInConnString(r,"SharedAccessSignature");const a=getAccountNameFromUrl(i);if(!i){throw new Error("Invalid BlobEndpoint in the provided SAS Connection String")}else if(!s){throw new Error("Invalid SharedAccessSignature in the provided SAS Connection String")}return{kind:"SASConnString",url:i,accountName:a,accountSas:s}}}function escape(r){return encodeURIComponent(r).replace(/%2F/g,"/").replace(/'/g,"%27").replace(/\+/g,"%20").replace(/%25/g,"%")}function appendToURLPath(r,s){const i=a.URLBuilder.parse(r);let A=i.getPath();A=A?A.endsWith("/")?`${A}${s}`:`${A}/${s}`:s;i.setPath(A);const c=new URL(i.toString());return c.toString()}function setURLParameter(r,s,i){const A=a.URLBuilder.parse(r);A.setQueryParameter(s,i);return A.toString()}function getURLParameter(r,s){const i=a.URLBuilder.parse(r);return i.getQueryParameterValue(s)}function setURLHost(r,s){const i=a.URLBuilder.parse(r);i.setHost(s);return i.toString()}function getURLPath(r){const s=a.URLBuilder.parse(r);return s.getPath()}function getURLScheme(r){const s=a.URLBuilder.parse(r);return s.getScheme()}function getURLPathAndQuery(r){const s=a.URLBuilder.parse(r);const i=s.getPath();if(!i){throw new RangeError("Invalid url without valid path.")}let A=s.getQuery()||"";A=A.trim();if(A!==""){A=A.startsWith("?")?A:`?${A}`}return`${i}${A}`}function getURLQueries(r){let s=a.URLBuilder.parse(r).getQuery();if(!s){return{}}s=s.trim();s=s.startsWith("?")?s.substr(1):s;let i=s.split("&");i=i.filter((r=>{const s=r.indexOf("=");const i=r.lastIndexOf("=");return s>0&&s===i&&iA){r=r.slice(0,A)}const c=r+padStart(s.toString(),i-r.length,"0");return base64encode(c)}async function delay(r,s,i){return new Promise(((a,A)=>{let c;const abortHandler=()=>{if(c!==undefined){clearTimeout(c)}A(i)};const resolveHandler=()=>{if(s!==undefined){s.removeEventListener("abort",abortHandler)}a()};c=setTimeout(resolveHandler,r);if(s!==undefined){s.addEventListener("abort",abortHandler)}}))}function padStart(r,s,i=" "){if(String.prototype.padStart){return r.padStart(s,i)}i=i||" ";if(r.length>s){return r}else{s=s-r.length;if(s>i.length){i+=i.repeat(s/i.length)}return i.slice(0,s)+r}}function iEqual(r,s){return r.toLocaleLowerCase()===s.toLocaleLowerCase()}function getAccountNameFromUrl(r){const s=a.URLBuilder.parse(r);let i;try{if(s.getHost().split(".")[1]==="blob"){i=s.getHost().split(".")[0]}else if(isIpEndpointStyle(s)){i=s.getPath().split("/")[1]}else{i=""}return i}catch(r){throw new Error("Unable to extract accountName with provided information.")}}function isIpEndpointStyle(r){if(r.getHost()===undefined){return false}const s=r.getHost()+(r.getPort()===undefined?"":":"+r.getPort());return/^.*:.*:.*$|^localhost(:[0-9]+)?$|^(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])(\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])){3}(:[0-9]+)?$/.test(s)||r.getPort()!==undefined&&ka.includes(r.getPort())}function toBlobTagsString(r){if(r===undefined){return undefined}const s=[];for(const i in r){if(Object.prototype.hasOwnProperty.call(r,i)){const a=r[i];s.push(`${encodeURIComponent(i)}=${encodeURIComponent(a)}`)}}return s.join("&")}function toBlobTags(r){if(r===undefined){return undefined}const s={blobTagSet:[]};for(const i in r){if(Object.prototype.hasOwnProperty.call(r,i)){const a=r[i];s.blobTagSet.push({key:i,value:a})}}return s}function toTags(r){if(r===undefined){return undefined}const s={};for(const i of r.blobTagSet){s[i.key]=i.value}return s}function toQuerySerialization(r){if(r===undefined){return undefined}switch(r.kind){case"csv":return{format:{type:"delimited",delimitedTextConfiguration:{columnSeparator:r.columnSeparator||",",fieldQuote:r.fieldQuote||"",recordSeparator:r.recordSeparator,escapeChar:r.escapeCharacter||"",headersPresent:r.hasHeaders||false}}};case"json":return{format:{type:"json",jsonTextConfiguration:{recordSeparator:r.recordSeparator}}};case"arrow":return{format:{type:"arrow",arrowConfiguration:{schema:r.schema}}};case"parquet":return{format:{type:"parquet"}};default:throw Error("Invalid BlobQueryTextConfiguration.")}}function parseObjectReplicationRecord(r){if(!r){return undefined}if("policy-id"in r){return undefined}const s=[];for(const i in r){const a=i.split("_");const A="or-";if(a[0].startsWith(A)){a[0]=a[0].substring(A.length)}const c={ruleId:a[1],replicationStatus:r[i]};const l=s.findIndex((r=>r.policyId===a[0]));if(l>-1){s[l].rules.push(c)}else{s.push({policyId:a[0],rules:[c]})}}return s}function attachCredential(r,s){r.credential=s;return r}function httpAuthorizationToString(r){return r?r.scheme+" "+r.value:undefined}function BlobNameToString(r){if(r.encoded){return decodeURIComponent(r.content)}else{return r.content}}function ConvertInternalResponseOfListBlobFlat(r){return Object.assign(Object.assign({},r),{segment:{blobItems:r.segment.blobItems.map((r=>{const s=Object.assign(Object.assign({},r),{name:BlobNameToString(r.name)});return s}))}})}function ConvertInternalResponseOfListBlobHierarchy(r){var s;return Object.assign(Object.assign({},r),{segment:{blobPrefixes:(s=r.segment.blobPrefixes)===null||s===void 0?void 0:s.map((r=>{const s={name:BlobNameToString(r.name)};return s})),blobItems:r.segment.blobItems.map((r=>{const s=Object.assign(Object.assign({},r),{name:BlobNameToString(r.name)});return s}))}})}function*ExtractPageRangeInfoItems(r){let s=[];let i=[];if(r.pageRange)s=r.pageRange;if(r.clearRange)i=r.clearRange;let a=0;let A=0;while(a=1?Math.floor(i.maxTries):Ta.maxTries,tryTimeoutInMs:i.tryTimeoutInMs&&i.tryTimeoutInMs>=0?i.tryTimeoutInMs:Ta.tryTimeoutInMs,retryDelayInMs:i.retryDelayInMs&&i.retryDelayInMs>=0?Math.min(i.retryDelayInMs,i.maxRetryDelayInMs?i.maxRetryDelayInMs:Ta.maxRetryDelayInMs):Ta.retryDelayInMs,maxRetryDelayInMs:i.maxRetryDelayInMs&&i.maxRetryDelayInMs>=0?i.maxRetryDelayInMs:Ta.maxRetryDelayInMs,secondaryHost:i.secondaryHost?i.secondaryHost:Ta.secondaryHost}}async sendRequest(r){return this.attemptSendRequest(r,false,1)}async attemptSendRequest(r,s,i){const a=r.clone();const A=s||!this.retryOptions.secondaryHost||!(r.method==="GET"||r.method==="HEAD"||r.method==="OPTIONS")||i%2===1;if(!A){a.url=setURLHost(a.url,this.retryOptions.secondaryHost)}if(this.retryOptions.tryTimeoutInMs){a.url=setURLParameter(a.url,ma.Parameters.TIMEOUT,Math.floor(this.retryOptions.tryTimeoutInMs/1e3).toString())}let c;try{ia.info(`RetryPolicy: =====> Try=${i} ${A?"Primary":"Secondary"}`);c=await this._nextPolicy.sendRequest(a);if(!this.shouldRetry(A,i,c)){return c}s=s||!A&&c.status===404}catch(r){ia.error(`RetryPolicy: Caught error, message: ${r.message}, code: ${r.code}`);if(!this.shouldRetry(A,i,c,r)){throw r}}await this.delay(A,i,r.abortSignal);return this.attemptSendRequest(r,s,++i)}shouldRetry(r,s,i,a){if(s>=this.retryOptions.maxTries){ia.info(`RetryPolicy: Attempt(s) ${s} >= maxTries ${this.retryOptions.maxTries}, no further try.`);return false}const A=["ETIMEDOUT","ESOCKETTIMEDOUT","ECONNREFUSED","ECONNRESET","ENOENT","ENOTFOUND","TIMEOUT","EPIPE","REQUEST_SEND_ERROR"];if(a){for(const r of A){if(a.name.toUpperCase().includes(r)||a.message.toUpperCase().includes(r)||a.code&&a.code.toString().toUpperCase()===r){ia.info(`RetryPolicy: Network error ${r} found, will retry.`);return true}}}if(i||a){const s=i?i.status:a?a.statusCode:0;if(!r&&s===404){ia.info(`RetryPolicy: Secondary access with 404, will retry.`);return true}if(s===503||s===500){ia.info(`RetryPolicy: Will retry for status code ${s}.`);return true}}if((a===null||a===void 0?void 0:a.code)==="PARSE_ERROR"&&(a===null||a===void 0?void 0:a.message.startsWith(`Error "Error: Unclosed root tag`))){ia.info("RetryPolicy: Incomplete XML response likely due to service timeout, will retry.");return true}return false}async delay(r,i,a){let A=0;if(r){switch(this.retryOptions.retryPolicyType){case s.StorageRetryPolicyType.EXPONENTIAL:A=Math.min((Math.pow(2,i-1)-1)*this.retryOptions.retryDelayInMs,this.retryOptions.maxRetryDelayInMs);break;case s.StorageRetryPolicyType.FIXED:A=this.retryOptions.retryDelayInMs;break}}else{A=Math.random()*1e3}ia.info(`RetryPolicy: Delay for ${A}ms`);return delay(A,a,_a)}}class StorageRetryPolicyFactory{constructor(r){this.retryOptions=r}create(r,s){return new StorageRetryPolicy(r,s,this.retryOptions)}}class CredentialPolicy extends a.BaseRequestPolicy{sendRequest(r){return this._nextPolicy.sendRequest(this.signRequest(r))}signRequest(r){return r}}class AnonymousCredentialPolicy extends CredentialPolicy{constructor(r,s){super(r,s)}}class Credential{create(r,s){throw new Error("Method should be implemented in children classes.")}}class AnonymousCredential extends Credential{create(r,s){return new AnonymousCredentialPolicy(r,s)}}class TelemetryPolicy extends a.BaseRequestPolicy{constructor(r,s,i){super(r,s);this.telemetry=i}async sendRequest(r){if(a.isNode){if(!r.headers){r.headers=new a.HttpHeaders}if(!r.headers.get(Ea.USER_AGENT)){r.headers.set(Ea.USER_AGENT,this.telemetry)}}return this._nextPolicy.sendRequest(r)}}class TelemetryPolicyFactory{constructor(r){const s=[];if(a.isNode){if(r){const i=r.userAgentPrefix||"";if(i.length>0&&s.indexOf(i)===-1){s.push(i)}}const i=`azsdk-js-storageblob/${oa}`;if(s.indexOf(i)===-1){s.push(i)}let a=`(NODE-VERSION ${process.version})`;if(b){a=`(NODE-VERSION ${process.version}; ${b.type()} ${b.release()})`}if(s.indexOf(a)===-1){s.push(a)}}this.telemetryString=s.join(" ")}create(r,s){return new TelemetryPolicy(r,s,this.telemetryString)}}const Pa=new a.DefaultHttpClient;function getCachedDefaultHttpClient(){return Pa}const Oa={DefaultScope:"/.default",HeaderConstants:{AUTHORIZATION:"authorization"}};const Fa={forcedRefreshWindowInMs:1e3,retryIntervalInMs:3e3,refreshWindowInMs:1e3*60*2};async function beginRefresh(r,s,i){async function tryGetAccessToken(){if(Date.now()r.getToken(s,i);a=beginRefresh(tryGetAccessToken,c.retryIntervalInMs,(d=A===null||A===void 0?void 0:A.expiresOnTimestamp)!==null&&d!==void 0?d:Date.now()).then((r=>{a=null;A=r;return A})).catch((r=>{a=null;A=null;throw r}))}return a}return async r=>{if(l.mustRefresh)return refresh(r);if(l.shouldRefresh){refresh(r)}return A}}function getChallenge(r){const s=r.headers.get("WWW-Authenticate");if(r.status===401&&s){return s}return}function parseChallenge(r){const s=r.slice("Bearer ".length);const i=`${s.trim()} `.split(" ").filter((r=>r));const a=i.map((r=>(([r,s])=>({[r]:s}))(r.trim().split("="))));return a.reduce(((r,s)=>Object.assign(Object.assign({},r),s)),{})}function storageBearerTokenChallengeAuthenticationPolicy(r,s){let i=createTokenCycler(r,s);class StorageBearerTokenChallengeAuthenticationPolicy extends a.BaseRequestPolicy{constructor(r,s){super(r,s)}async sendRequest(s){if(!s.url.toLowerCase().startsWith("https://")){throw new Error("Bearer token authentication is not permitted for non-TLS protected (non-https) URLs.")}const A=i;const c=(await A({abortSignal:s.abortSignal,tracingOptions:{tracingContext:s.tracingContext}})).token;s.headers.set(Oa.HeaderConstants.AUTHORIZATION,`Bearer ${c}`);const l=await this._nextPolicy.sendRequest(s);if((l===null||l===void 0?void 0:l.status)===401){const A=getChallenge(l);if(A){const c=parseChallenge(A);const l=c.resource_id+Oa.DefaultScope;const d=a.URLBuilder.parse(c.authorization_uri);const u=d.getPath().split("/");const p=u[1];const g=createTokenCycler(r,l);const h=(await g({abortSignal:s.abortSignal,tracingOptions:{tracingContext:s.tracingContext},tenantId:p})).token;i=g;s.headers.set(Oa.HeaderConstants.AUTHORIZATION,`Bearer ${h}`);return this._nextPolicy.sendRequest(s)}}return l}}return{create:(r,s)=>new StorageBearerTokenChallengeAuthenticationPolicy(r,s)}}function isPipelineLike(r){if(!r||typeof r!=="object"){return false}const s=r;return Array.isArray(s.factories)&&typeof s.options==="object"&&typeof s.toServiceClientOptions==="function"}class Pipeline{constructor(r,s={}){this.factories=r;this.options=Object.assign(Object.assign({},s),{httpClient:s.httpClient||getCachedDefaultHttpClient()})}toServiceClientOptions(){return{httpClient:this.options.httpClient,requestPolicyFactories:this.factories}}}function newPipeline(r,s={}){var i;if(r===undefined){r=new AnonymousCredential}const A=new TelemetryPolicyFactory(s.userAgentOptions);const c=[a.tracingPolicy({userAgent:A.telemetryString}),a.keepAlivePolicy(s.keepAliveOptions),A,a.generateClientRequestIdPolicy(),new StorageBrowserPolicyFactory,new StorageRetryPolicyFactory(s.retryOptions),a.deserializationPolicy(undefined,{xmlCharKey:"#"}),a.logPolicy({logger:ia.info,allowedHeaderNames:Ra,allowedQueryParameters:Na})];if(a.isNode){c.push(a.proxyPolicy(s.proxyOptions));c.push(a.disableResponseDecompressionPolicy())}c.push(a.isTokenCredential(r)?attachCredential(storageBearerTokenChallengeAuthenticationPolicy(r,(i=s.audience)!==null&&i!==void 0?i:ha),r):r);return new Pipeline(c,s)}class StorageSharedKeyCredentialPolicy extends CredentialPolicy{constructor(r,s,i){super(r,s);this.factory=i}signRequest(r){r.headers.set(Ea.X_MS_DATE,(new Date).toUTCString());if(r.body&&(typeof r.body==="string"||r.body!==undefined)&&r.body.length>0){r.headers.set(Ea.CONTENT_LENGTH,Buffer.byteLength(r.body))}const s=[r.method.toUpperCase(),this.getHeaderValueToSign(r,Ea.CONTENT_LANGUAGE),this.getHeaderValueToSign(r,Ea.CONTENT_ENCODING),this.getHeaderValueToSign(r,Ea.CONTENT_LENGTH),this.getHeaderValueToSign(r,Ea.CONTENT_MD5),this.getHeaderValueToSign(r,Ea.CONTENT_TYPE),this.getHeaderValueToSign(r,Ea.DATE),this.getHeaderValueToSign(r,Ea.IF_MODIFIED_SINCE),this.getHeaderValueToSign(r,Ea.IF_MATCH),this.getHeaderValueToSign(r,Ea.IF_NONE_MATCH),this.getHeaderValueToSign(r,Ea.IF_UNMODIFIED_SINCE),this.getHeaderValueToSign(r,Ea.RANGE)].join("\n")+"\n"+this.getCanonicalizedHeadersString(r)+this.getCanonicalizedResourceString(r);const i=this.factory.computeHMACSHA256(s);r.headers.set(Ea.AUTHORIZATION,`SharedKey ${this.factory.accountName}:${i}`);return r}getHeaderValueToSign(r,s){const i=r.headers.get(s);if(!i){return""}if(s===Ea.CONTENT_LENGTH&&i==="0"){return""}return i}getCanonicalizedHeadersString(r){let s=r.headers.headersArray().filter((r=>r.name.toLowerCase().startsWith(Ea.PREFIX_FOR_STORAGE)));s.sort(((r,s)=>r.name.toLowerCase().localeCompare(s.name.toLowerCase())));s=s.filter(((r,s,i)=>{if(s>0&&r.name.toLowerCase()===i[s-1].name.toLowerCase()){return false}return true}));let i="";s.forEach((r=>{i+=`${r.name.toLowerCase().trimRight()}:${r.value.trimLeft()}\n`}));return i}getCanonicalizedResourceString(r){const s=getURLPath(r.url)||"/";let i="";i+=`/${this.factory.accountName}${s}`;const a=getURLQueries(r.url);const A={};if(a){const r=[];for(const s in a){if(Object.prototype.hasOwnProperty.call(a,s)){const i=s.toLowerCase();A[i]=a[s];r.push(i)}}r.sort();for(const s of r){i+=`\n${s}:${decodeURIComponent(A[s])}`}}return i}}class StorageSharedKeyCredential extends Credential{constructor(r,s){super();this.accountName=r;this.accountKey=Buffer.from(s,"base64")}create(r,s){return new StorageSharedKeyCredentialPolicy(r,s,this)}computeHMACSHA256(r){return p.createHmac("sha256",this.accountKey).update(r,"utf8").digest("base64")}}const La="azure-storage-blob";const Ma="12.14.0";class StorageClientContext extends B.ServiceClient{constructor(r,s){if(r===undefined){throw new Error("'url' cannot be null")}if(!s){s={}}if(!s.userAgent){const r=B.getDefaultUserAgentValue();s.userAgent=`${La}/${Ma} ${r}`}super(undefined,s);this.requestContentType="application/json; charset=utf-8";this.baseUri=s.endpoint||"{url}";this.url=r;this.version=s.version||"2022-11-02"}}class StorageClient{constructor(r,s){this.url=escapeURLPath(r);this.accountName=getAccountNameFromUrl(r);this.pipeline=s;this.storageClientContext=new StorageClientContext(this.url,s.toServiceClientOptions());this.isHttps=iEqual(getURLScheme(this.url)||"","https");this.credential=new AnonymousCredential;for(const r of this.pipeline.factories){if(a.isNode&&r instanceof StorageSharedKeyCredential||r instanceof AnonymousCredential){this.credential=r}else if(a.isTokenCredential(r.credential)){this.credential=r.credential}}const i=this.storageClientContext;i.requestContentType=undefined}}const Ua=c.createSpanFunction({packagePrefix:"Azure.Storage.Blob",namespace:"Microsoft.Storage"});function convertTracingToRequestOptionsBase(r){var s,i;return{spanOptions:(s=r===null||r===void 0?void 0:r.tracingOptions)===null||s===void 0?void 0:s.spanOptions,tracingContext:(i=r===null||r===void 0?void 0:r.tracingOptions)===null||i===void 0?void 0:i.tracingContext}}class BlobSASPermissions{constructor(){this.read=false;this.add=false;this.create=false;this.write=false;this.delete=false;this.deleteVersion=false;this.tag=false;this.move=false;this.execute=false;this.setImmutabilityPolicy=false;this.permanentDelete=false}static parse(r){const s=new BlobSASPermissions;for(const i of r){switch(i){case"r":s.read=true;break;case"a":s.add=true;break;case"c":s.create=true;break;case"w":s.write=true;break;case"d":s.delete=true;break;case"x":s.deleteVersion=true;break;case"t":s.tag=true;break;case"m":s.move=true;break;case"e":s.execute=true;break;case"i":s.setImmutabilityPolicy=true;break;case"y":s.permanentDelete=true;break;default:throw new RangeError(`Invalid permission: ${i}`)}}return s}static from(r){const s=new BlobSASPermissions;if(r.read){s.read=true}if(r.add){s.add=true}if(r.create){s.create=true}if(r.write){s.write=true}if(r.delete){s.delete=true}if(r.deleteVersion){s.deleteVersion=true}if(r.tag){s.tag=true}if(r.move){s.move=true}if(r.execute){s.execute=true}if(r.setImmutabilityPolicy){s.setImmutabilityPolicy=true}if(r.permanentDelete){s.permanentDelete=true}return s}toString(){const r=[];if(this.read){r.push("r")}if(this.add){r.push("a")}if(this.create){r.push("c")}if(this.write){r.push("w")}if(this.delete){r.push("d")}if(this.deleteVersion){r.push("x")}if(this.tag){r.push("t")}if(this.move){r.push("m")}if(this.execute){r.push("e")}if(this.setImmutabilityPolicy){r.push("i")}if(this.permanentDelete){r.push("y")}return r.join("")}}class ContainerSASPermissions{constructor(){this.read=false;this.add=false;this.create=false;this.write=false;this.delete=false;this.deleteVersion=false;this.list=false;this.tag=false;this.move=false;this.execute=false;this.setImmutabilityPolicy=false;this.permanentDelete=false;this.filterByTags=false}static parse(r){const s=new ContainerSASPermissions;for(const i of r){switch(i){case"r":s.read=true;break;case"a":s.add=true;break;case"c":s.create=true;break;case"w":s.write=true;break;case"d":s.delete=true;break;case"l":s.list=true;break;case"t":s.tag=true;break;case"x":s.deleteVersion=true;break;case"m":s.move=true;break;case"e":s.execute=true;break;case"i":s.setImmutabilityPolicy=true;break;case"y":s.permanentDelete=true;break;case"f":s.filterByTags=true;break;default:throw new RangeError(`Invalid permission ${i}`)}}return s}static from(r){const s=new ContainerSASPermissions;if(r.read){s.read=true}if(r.add){s.add=true}if(r.create){s.create=true}if(r.write){s.write=true}if(r.delete){s.delete=true}if(r.list){s.list=true}if(r.deleteVersion){s.deleteVersion=true}if(r.tag){s.tag=true}if(r.move){s.move=true}if(r.execute){s.execute=true}if(r.setImmutabilityPolicy){s.setImmutabilityPolicy=true}if(r.permanentDelete){s.permanentDelete=true}if(r.filterByTags){s.filterByTags=true}return s}toString(){const r=[];if(this.read){r.push("r")}if(this.add){r.push("a")}if(this.create){r.push("c")}if(this.write){r.push("w")}if(this.delete){r.push("d")}if(this.deleteVersion){r.push("x")}if(this.list){r.push("l")}if(this.tag){r.push("t")}if(this.move){r.push("m")}if(this.execute){r.push("e")}if(this.setImmutabilityPolicy){r.push("i")}if(this.permanentDelete){r.push("y")}if(this.filterByTags){r.push("f")}return r.join("")}}class UserDelegationKeyCredential{constructor(r,s){this.accountName=r;this.userDelegationKey=s;this.key=Buffer.from(s.value,"base64")}computeHMACSHA256(r){return p.createHmac("sha256",this.key).update(r,"utf8").digest("base64")}}function ipRangeToString(r){return r.end?`${r.start}-${r.end}`:r.start}s.SASProtocol=void 0;(function(r){r["Https"]="https";r["HttpsAndHttp"]="https,http"})(s.SASProtocol||(s.SASProtocol={}));class SASQueryParameters{constructor(r,s,i,a,A,c,l,d,u,p,g,h,C,y,I,B,b,Q,w,v){this.version=r;this.signature=s;if(i!==undefined&&typeof i!=="string"){this.permissions=i.permissions;this.services=i.services;this.resourceTypes=i.resourceTypes;this.protocol=i.protocol;this.startsOn=i.startsOn;this.expiresOn=i.expiresOn;this.ipRangeInner=i.ipRange;this.identifier=i.identifier;this.encryptionScope=i.encryptionScope;this.resource=i.resource;this.cacheControl=i.cacheControl;this.contentDisposition=i.contentDisposition;this.contentEncoding=i.contentEncoding;this.contentLanguage=i.contentLanguage;this.contentType=i.contentType;if(i.userDelegationKey){this.signedOid=i.userDelegationKey.signedObjectId;this.signedTenantId=i.userDelegationKey.signedTenantId;this.signedStartsOn=i.userDelegationKey.signedStartsOn;this.signedExpiresOn=i.userDelegationKey.signedExpiresOn;this.signedService=i.userDelegationKey.signedService;this.signedVersion=i.userDelegationKey.signedVersion;this.preauthorizedAgentObjectId=i.preauthorizedAgentObjectId;this.correlationId=i.correlationId}}else{this.services=a;this.resourceTypes=A;this.expiresOn=d;this.permissions=i;this.protocol=c;this.startsOn=l;this.ipRangeInner=u;this.encryptionScope=v;this.identifier=p;this.resource=g;this.cacheControl=h;this.contentDisposition=C;this.contentEncoding=y;this.contentLanguage=I;this.contentType=B;if(b){this.signedOid=b.signedObjectId;this.signedTenantId=b.signedTenantId;this.signedStartsOn=b.signedStartsOn;this.signedExpiresOn=b.signedExpiresOn;this.signedService=b.signedService;this.signedVersion=b.signedVersion;this.preauthorizedAgentObjectId=Q;this.correlationId=w}}}get ipRange(){if(this.ipRangeInner){return{end:this.ipRangeInner.end,start:this.ipRangeInner.start}}return undefined}toString(){const r=["sv","ss","srt","spr","st","se","sip","si","ses","skoid","sktid","skt","ske","sks","skv","sr","sp","sig","rscc","rscd","rsce","rscl","rsct","saoid","scid"];const s=[];for(const i of r){switch(i){case"sv":this.tryAppendQueryParameter(s,i,this.version);break;case"ss":this.tryAppendQueryParameter(s,i,this.services);break;case"srt":this.tryAppendQueryParameter(s,i,this.resourceTypes);break;case"spr":this.tryAppendQueryParameter(s,i,this.protocol);break;case"st":this.tryAppendQueryParameter(s,i,this.startsOn?truncatedISO8061Date(this.startsOn,false):undefined);break;case"se":this.tryAppendQueryParameter(s,i,this.expiresOn?truncatedISO8061Date(this.expiresOn,false):undefined);break;case"sip":this.tryAppendQueryParameter(s,i,this.ipRange?ipRangeToString(this.ipRange):undefined);break;case"si":this.tryAppendQueryParameter(s,i,this.identifier);break;case"ses":this.tryAppendQueryParameter(s,i,this.encryptionScope);break;case"skoid":this.tryAppendQueryParameter(s,i,this.signedOid);break;case"sktid":this.tryAppendQueryParameter(s,i,this.signedTenantId);break;case"skt":this.tryAppendQueryParameter(s,i,this.signedStartsOn?truncatedISO8061Date(this.signedStartsOn,false):undefined);break;case"ske":this.tryAppendQueryParameter(s,i,this.signedExpiresOn?truncatedISO8061Date(this.signedExpiresOn,false):undefined);break;case"sks":this.tryAppendQueryParameter(s,i,this.signedService);break;case"skv":this.tryAppendQueryParameter(s,i,this.signedVersion);break;case"sr":this.tryAppendQueryParameter(s,i,this.resource);break;case"sp":this.tryAppendQueryParameter(s,i,this.permissions);break;case"sig":this.tryAppendQueryParameter(s,i,this.signature);break;case"rscc":this.tryAppendQueryParameter(s,i,this.cacheControl);break;case"rscd":this.tryAppendQueryParameter(s,i,this.contentDisposition);break;case"rsce":this.tryAppendQueryParameter(s,i,this.contentEncoding);break;case"rscl":this.tryAppendQueryParameter(s,i,this.contentLanguage);break;case"rsct":this.tryAppendQueryParameter(s,i,this.contentType);break;case"saoid":this.tryAppendQueryParameter(s,i,this.preauthorizedAgentObjectId);break;case"scid":this.tryAppendQueryParameter(s,i,this.correlationId);break}}return s.join("&")}tryAppendQueryParameter(r,s,i){if(!i){return}s=encodeURIComponent(s);i=encodeURIComponent(i);if(s.length>0&&i.length>0){r.push(`${s}=${i}`)}}}function generateBlobSASQueryParameters(r,s,i){const a=r.version?r.version:aa;const A=s instanceof StorageSharedKeyCredential?s:undefined;let c;if(A===undefined&&i!==undefined){c=new UserDelegationKeyCredential(i,s)}if(A===undefined&&c===undefined){throw TypeError("Invalid sharedKeyCredential, userDelegationKey or accountName.")}if(a>="2020-12-06"){if(A!==undefined){return generateBlobSASQueryParameters20201206(r,A)}else{return generateBlobSASQueryParametersUDK20201206(r,c)}}if(a>="2018-11-09"){if(A!==undefined){return generateBlobSASQueryParameters20181109(r,A)}else{if(a>="2020-02-10"){return generateBlobSASQueryParametersUDK20200210(r,c)}else{return generateBlobSASQueryParametersUDK20181109(r,c)}}}if(a>="2015-04-05"){if(A!==undefined){return generateBlobSASQueryParameters20150405(r,A)}else{throw new RangeError("'version' must be >= '2018-11-09' when generating user delegation SAS using user delegation key.")}}throw new RangeError("'version' must be >= '2015-04-05'.")}function generateBlobSASQueryParameters20150405(r,s){r=SASSignatureValuesSanityCheckAndAutofill(r);if(!r.identifier&&!(r.permissions&&r.expiresOn)){throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided.")}let i="c";if(r.blobName){i="b"}let a;if(r.permissions){if(r.blobName){a=BlobSASPermissions.parse(r.permissions.toString()).toString()}else{a=ContainerSASPermissions.parse(r.permissions.toString()).toString()}}const A=[a?a:"",r.startsOn?truncatedISO8061Date(r.startsOn,false):"",r.expiresOn?truncatedISO8061Date(r.expiresOn,false):"",getCanonicalName(s.accountName,r.containerName,r.blobName),r.identifier,r.ipRange?ipRangeToString(r.ipRange):"",r.protocol?r.protocol:"",r.version,r.cacheControl?r.cacheControl:"",r.contentDisposition?r.contentDisposition:"",r.contentEncoding?r.contentEncoding:"",r.contentLanguage?r.contentLanguage:"",r.contentType?r.contentType:""].join("\n");const c=s.computeHMACSHA256(A);return new SASQueryParameters(r.version,c,a,undefined,undefined,r.protocol,r.startsOn,r.expiresOn,r.ipRange,r.identifier,i,r.cacheControl,r.contentDisposition,r.contentEncoding,r.contentLanguage,r.contentType)}function generateBlobSASQueryParameters20181109(r,s){r=SASSignatureValuesSanityCheckAndAutofill(r);if(!r.identifier&&!(r.permissions&&r.expiresOn)){throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided.")}let i="c";let a=r.snapshotTime;if(r.blobName){i="b";if(r.snapshotTime){i="bs"}else if(r.versionId){i="bv";a=r.versionId}}let A;if(r.permissions){if(r.blobName){A=BlobSASPermissions.parse(r.permissions.toString()).toString()}else{A=ContainerSASPermissions.parse(r.permissions.toString()).toString()}}const c=[A?A:"",r.startsOn?truncatedISO8061Date(r.startsOn,false):"",r.expiresOn?truncatedISO8061Date(r.expiresOn,false):"",getCanonicalName(s.accountName,r.containerName,r.blobName),r.identifier,r.ipRange?ipRangeToString(r.ipRange):"",r.protocol?r.protocol:"",r.version,i,a,r.cacheControl?r.cacheControl:"",r.contentDisposition?r.contentDisposition:"",r.contentEncoding?r.contentEncoding:"",r.contentLanguage?r.contentLanguage:"",r.contentType?r.contentType:""].join("\n");const l=s.computeHMACSHA256(c);return new SASQueryParameters(r.version,l,A,undefined,undefined,r.protocol,r.startsOn,r.expiresOn,r.ipRange,r.identifier,i,r.cacheControl,r.contentDisposition,r.contentEncoding,r.contentLanguage,r.contentType)}function generateBlobSASQueryParameters20201206(r,s){r=SASSignatureValuesSanityCheckAndAutofill(r);if(!r.identifier&&!(r.permissions&&r.expiresOn)){throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided.")}let i="c";let a=r.snapshotTime;if(r.blobName){i="b";if(r.snapshotTime){i="bs"}else if(r.versionId){i="bv";a=r.versionId}}let A;if(r.permissions){if(r.blobName){A=BlobSASPermissions.parse(r.permissions.toString()).toString()}else{A=ContainerSASPermissions.parse(r.permissions.toString()).toString()}}const c=[A?A:"",r.startsOn?truncatedISO8061Date(r.startsOn,false):"",r.expiresOn?truncatedISO8061Date(r.expiresOn,false):"",getCanonicalName(s.accountName,r.containerName,r.blobName),r.identifier,r.ipRange?ipRangeToString(r.ipRange):"",r.protocol?r.protocol:"",r.version,i,a,r.encryptionScope,r.cacheControl?r.cacheControl:"",r.contentDisposition?r.contentDisposition:"",r.contentEncoding?r.contentEncoding:"",r.contentLanguage?r.contentLanguage:"",r.contentType?r.contentType:""].join("\n");const l=s.computeHMACSHA256(c);return new SASQueryParameters(r.version,l,A,undefined,undefined,r.protocol,r.startsOn,r.expiresOn,r.ipRange,r.identifier,i,r.cacheControl,r.contentDisposition,r.contentEncoding,r.contentLanguage,r.contentType,undefined,undefined,undefined,r.encryptionScope)}function generateBlobSASQueryParametersUDK20181109(r,s){r=SASSignatureValuesSanityCheckAndAutofill(r);if(!r.permissions||!r.expiresOn){throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.")}let i="c";let a=r.snapshotTime;if(r.blobName){i="b";if(r.snapshotTime){i="bs"}else if(r.versionId){i="bv";a=r.versionId}}let A;if(r.permissions){if(r.blobName){A=BlobSASPermissions.parse(r.permissions.toString()).toString()}else{A=ContainerSASPermissions.parse(r.permissions.toString()).toString()}}const c=[A?A:"",r.startsOn?truncatedISO8061Date(r.startsOn,false):"",r.expiresOn?truncatedISO8061Date(r.expiresOn,false):"",getCanonicalName(s.accountName,r.containerName,r.blobName),s.userDelegationKey.signedObjectId,s.userDelegationKey.signedTenantId,s.userDelegationKey.signedStartsOn?truncatedISO8061Date(s.userDelegationKey.signedStartsOn,false):"",s.userDelegationKey.signedExpiresOn?truncatedISO8061Date(s.userDelegationKey.signedExpiresOn,false):"",s.userDelegationKey.signedService,s.userDelegationKey.signedVersion,r.ipRange?ipRangeToString(r.ipRange):"",r.protocol?r.protocol:"",r.version,i,a,r.cacheControl,r.contentDisposition,r.contentEncoding,r.contentLanguage,r.contentType].join("\n");const l=s.computeHMACSHA256(c);return new SASQueryParameters(r.version,l,A,undefined,undefined,r.protocol,r.startsOn,r.expiresOn,r.ipRange,r.identifier,i,r.cacheControl,r.contentDisposition,r.contentEncoding,r.contentLanguage,r.contentType,s.userDelegationKey)}function generateBlobSASQueryParametersUDK20200210(r,s){r=SASSignatureValuesSanityCheckAndAutofill(r);if(!r.permissions||!r.expiresOn){throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.")}let i="c";let a=r.snapshotTime;if(r.blobName){i="b";if(r.snapshotTime){i="bs"}else if(r.versionId){i="bv";a=r.versionId}}let A;if(r.permissions){if(r.blobName){A=BlobSASPermissions.parse(r.permissions.toString()).toString()}else{A=ContainerSASPermissions.parse(r.permissions.toString()).toString()}}const c=[A?A:"",r.startsOn?truncatedISO8061Date(r.startsOn,false):"",r.expiresOn?truncatedISO8061Date(r.expiresOn,false):"",getCanonicalName(s.accountName,r.containerName,r.blobName),s.userDelegationKey.signedObjectId,s.userDelegationKey.signedTenantId,s.userDelegationKey.signedStartsOn?truncatedISO8061Date(s.userDelegationKey.signedStartsOn,false):"",s.userDelegationKey.signedExpiresOn?truncatedISO8061Date(s.userDelegationKey.signedExpiresOn,false):"",s.userDelegationKey.signedService,s.userDelegationKey.signedVersion,r.preauthorizedAgentObjectId,undefined,r.correlationId,r.ipRange?ipRangeToString(r.ipRange):"",r.protocol?r.protocol:"",r.version,i,a,r.cacheControl,r.contentDisposition,r.contentEncoding,r.contentLanguage,r.contentType].join("\n");const l=s.computeHMACSHA256(c);return new SASQueryParameters(r.version,l,A,undefined,undefined,r.protocol,r.startsOn,r.expiresOn,r.ipRange,r.identifier,i,r.cacheControl,r.contentDisposition,r.contentEncoding,r.contentLanguage,r.contentType,s.userDelegationKey,r.preauthorizedAgentObjectId,r.correlationId)}function generateBlobSASQueryParametersUDK20201206(r,s){r=SASSignatureValuesSanityCheckAndAutofill(r);if(!r.permissions||!r.expiresOn){throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.")}let i="c";let a=r.snapshotTime;if(r.blobName){i="b";if(r.snapshotTime){i="bs"}else if(r.versionId){i="bv";a=r.versionId}}let A;if(r.permissions){if(r.blobName){A=BlobSASPermissions.parse(r.permissions.toString()).toString()}else{A=ContainerSASPermissions.parse(r.permissions.toString()).toString()}}const c=[A?A:"",r.startsOn?truncatedISO8061Date(r.startsOn,false):"",r.expiresOn?truncatedISO8061Date(r.expiresOn,false):"",getCanonicalName(s.accountName,r.containerName,r.blobName),s.userDelegationKey.signedObjectId,s.userDelegationKey.signedTenantId,s.userDelegationKey.signedStartsOn?truncatedISO8061Date(s.userDelegationKey.signedStartsOn,false):"",s.userDelegationKey.signedExpiresOn?truncatedISO8061Date(s.userDelegationKey.signedExpiresOn,false):"",s.userDelegationKey.signedService,s.userDelegationKey.signedVersion,r.preauthorizedAgentObjectId,undefined,r.correlationId,r.ipRange?ipRangeToString(r.ipRange):"",r.protocol?r.protocol:"",r.version,i,a,r.encryptionScope,r.cacheControl,r.contentDisposition,r.contentEncoding,r.contentLanguage,r.contentType].join("\n");const l=s.computeHMACSHA256(c);return new SASQueryParameters(r.version,l,A,undefined,undefined,r.protocol,r.startsOn,r.expiresOn,r.ipRange,r.identifier,i,r.cacheControl,r.contentDisposition,r.contentEncoding,r.contentLanguage,r.contentType,s.userDelegationKey,r.preauthorizedAgentObjectId,r.correlationId,r.encryptionScope)}function getCanonicalName(r,s,i){const a=[`/blob/${r}/${s}`];if(i){a.push(`/${i}`)}return a.join("")}function SASSignatureValuesSanityCheckAndAutofill(r){const s=r.version?r.version:aa;if(r.snapshotTime&&s<"2018-11-09"){throw RangeError("'version' must be >= '2018-11-09' when providing 'snapshotTime'.")}if(r.blobName===undefined&&r.snapshotTime){throw RangeError("Must provide 'blobName' when providing 'snapshotTime'.")}if(r.versionId&&s<"2019-10-10"){throw RangeError("'version' must be >= '2019-10-10' when providing 'versionId'.")}if(r.blobName===undefined&&r.versionId){throw RangeError("Must provide 'blobName' when providing 'versionId'.")}if(r.permissions&&r.permissions.setImmutabilityPolicy&&s<"2020-08-04"){throw RangeError("'version' must be >= '2020-08-04' when provided 'i' permission.")}if(r.permissions&&r.permissions.deleteVersion&&s<"2019-10-10"){throw RangeError("'version' must be >= '2019-10-10' when providing 'x' permission.")}if(r.permissions&&r.permissions.permanentDelete&&s<"2019-10-10"){throw RangeError("'version' must be >= '2019-10-10' when providing 'y' permission.")}if(r.permissions&&r.permissions.tag&&s<"2019-12-12"){throw RangeError("'version' must be >= '2019-12-12' when providing 't' permission.")}if(s<"2020-02-10"&&r.permissions&&(r.permissions.move||r.permissions.execute)){throw RangeError("'version' must be >= '2020-02-10' when providing the 'm' or 'e' permission.")}if(s<"2021-04-10"&&r.permissions&&r.permissions.filterByTags){throw RangeError("'version' must be >= '2021-04-10' when providing the 'f' permission.")}if(s<"2020-02-10"&&(r.preauthorizedAgentObjectId||r.correlationId)){throw RangeError("'version' must be >= '2020-02-10' when providing 'preauthorizedAgentObjectId' or 'correlationId'.")}if(r.encryptionScope&&s<"2020-12-06"){throw RangeError("'version' must be >= '2020-12-06' when provided 'encryptionScope' in SAS.")}r.version=s;return r}class BlobLeaseClient{constructor(r,s){const i=new StorageClientContext(r.url,r.pipeline.toServiceClientOptions());this._url=r.url;if(r.name===undefined){this._isContainer=true;this._containerOrBlobOperation=new Container(i)}else{this._isContainer=false;this._containerOrBlobOperation=new Blob$1(i)}if(!s){s=a.generateUuid()}this._leaseId=s}get leaseId(){return this._leaseId}get url(){return this._url}async acquireLease(r,s={}){var i,a,A,l,d,u;const{span:p,updatedOptions:g}=Ua("BlobLeaseClient-acquireLease",s);if(this._isContainer&&(((i=s.conditions)===null||i===void 0?void 0:i.ifMatch)&&((a=s.conditions)===null||a===void 0?void 0:a.ifMatch)!==Ca||((A=s.conditions)===null||A===void 0?void 0:A.ifNoneMatch)&&((l=s.conditions)===null||l===void 0?void 0:l.ifNoneMatch)!==Ca||((d=s.conditions)===null||d===void 0?void 0:d.tagConditions))){throw new RangeError("The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.")}try{return await this._containerOrBlobOperation.acquireLease(Object.assign({abortSignal:s.abortSignal,duration:r,modifiedAccessConditions:Object.assign(Object.assign({},s.conditions),{ifTags:(u=s.conditions)===null||u===void 0?void 0:u.tagConditions}),proposedLeaseId:this._leaseId},convertTracingToRequestOptionsBase(g)))}catch(r){p.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{p.end()}}async changeLease(r,s={}){var i,a,A,l,d,u;const{span:p,updatedOptions:g}=Ua("BlobLeaseClient-changeLease",s);if(this._isContainer&&(((i=s.conditions)===null||i===void 0?void 0:i.ifMatch)&&((a=s.conditions)===null||a===void 0?void 0:a.ifMatch)!==Ca||((A=s.conditions)===null||A===void 0?void 0:A.ifNoneMatch)&&((l=s.conditions)===null||l===void 0?void 0:l.ifNoneMatch)!==Ca||((d=s.conditions)===null||d===void 0?void 0:d.tagConditions))){throw new RangeError("The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.")}try{const i=await this._containerOrBlobOperation.changeLease(this._leaseId,r,Object.assign({abortSignal:s.abortSignal,modifiedAccessConditions:Object.assign(Object.assign({},s.conditions),{ifTags:(u=s.conditions)===null||u===void 0?void 0:u.tagConditions})},convertTracingToRequestOptionsBase(g)));this._leaseId=r;return i}catch(r){p.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{p.end()}}async releaseLease(r={}){var s,i,a,A,l,d;const{span:u,updatedOptions:p}=Ua("BlobLeaseClient-releaseLease",r);if(this._isContainer&&(((s=r.conditions)===null||s===void 0?void 0:s.ifMatch)&&((i=r.conditions)===null||i===void 0?void 0:i.ifMatch)!==Ca||((a=r.conditions)===null||a===void 0?void 0:a.ifNoneMatch)&&((A=r.conditions)===null||A===void 0?void 0:A.ifNoneMatch)!==Ca||((l=r.conditions)===null||l===void 0?void 0:l.tagConditions))){throw new RangeError("The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.")}try{return await this._containerOrBlobOperation.releaseLease(this._leaseId,Object.assign({abortSignal:r.abortSignal,modifiedAccessConditions:Object.assign(Object.assign({},r.conditions),{ifTags:(d=r.conditions)===null||d===void 0?void 0:d.tagConditions})},convertTracingToRequestOptionsBase(p)))}catch(r){u.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{u.end()}}async renewLease(r={}){var s,i,a,A,l,d;const{span:u,updatedOptions:p}=Ua("BlobLeaseClient-renewLease",r);if(this._isContainer&&(((s=r.conditions)===null||s===void 0?void 0:s.ifMatch)&&((i=r.conditions)===null||i===void 0?void 0:i.ifMatch)!==Ca||((a=r.conditions)===null||a===void 0?void 0:a.ifNoneMatch)&&((A=r.conditions)===null||A===void 0?void 0:A.ifNoneMatch)!==Ca||((l=r.conditions)===null||l===void 0?void 0:l.tagConditions))){throw new RangeError("The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.")}try{return await this._containerOrBlobOperation.renewLease(this._leaseId,Object.assign({abortSignal:r.abortSignal,modifiedAccessConditions:Object.assign(Object.assign({},r.conditions),{ifTags:(d=r.conditions)===null||d===void 0?void 0:d.tagConditions})},convertTracingToRequestOptionsBase(p)))}catch(r){u.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{u.end()}}async breakLease(r,s={}){var i,a,A,l,d,u;const{span:p,updatedOptions:g}=Ua("BlobLeaseClient-breakLease",s);if(this._isContainer&&(((i=s.conditions)===null||i===void 0?void 0:i.ifMatch)&&((a=s.conditions)===null||a===void 0?void 0:a.ifMatch)!==Ca||((A=s.conditions)===null||A===void 0?void 0:A.ifNoneMatch)&&((l=s.conditions)===null||l===void 0?void 0:l.ifNoneMatch)!==Ca||((d=s.conditions)===null||d===void 0?void 0:d.tagConditions))){throw new RangeError("The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.")}try{const i=Object.assign({abortSignal:s.abortSignal,breakPeriod:r,modifiedAccessConditions:Object.assign(Object.assign({},s.conditions),{ifTags:(u=s.conditions)===null||u===void 0?void 0:u.tagConditions})},convertTracingToRequestOptionsBase(g));return await this._containerOrBlobOperation.breakLease(i)}catch(r){p.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{p.end()}}}class RetriableReadableStream extends g.Readable{constructor(r,s,i,a,A={}){super({highWaterMark:A.highWaterMark});this.retries=0;this.sourceDataHandler=r=>{if(this.options.doInjectErrorOnce){this.options.doInjectErrorOnce=undefined;this.source.pause();this.source.removeAllListeners("data");this.source.emit("end");return}this.offset+=r.length;if(this.onProgress){this.onProgress({loadedBytes:this.offset-this.start})}if(!this.push(r)){this.source.pause()}};this.sourceErrorOrEndHandler=r=>{if(r&&r.name==="AbortError"){this.destroy(r);return}this.removeSourceEventHandlers();if(this.offset-1===this.end){this.push(null)}else if(this.offset<=this.end){if(this.retries{this.source=r;this.setSourceEventHandlers();return})).catch((r=>{this.destroy(r)}))}else{this.destroy(new Error(`Data corruption failure: received less data than required and reached maxRetires limitation. Received data offset: ${this.offset-1}, data needed offset: ${this.end}, retries: ${this.retries}, max retries: ${this.maxRetryRequests}`))}}else{this.destroy(new Error(`Data corruption failure: Received more data than original request, data needed offset is ${this.end}, received offset: ${this.offset-1}`))}};this.getter=s;this.source=r;this.start=i;this.offset=i;this.end=i+a-1;this.maxRetryRequests=A.maxRetryRequests&&A.maxRetryRequests>=0?A.maxRetryRequests:0;this.onProgress=A.onProgress;this.options=A;this.setSourceEventHandlers()}_read(){this.source.resume()}setSourceEventHandlers(){this.source.on("data",this.sourceDataHandler);this.source.on("end",this.sourceErrorOrEndHandler);this.source.on("error",this.sourceErrorOrEndHandler)}removeSourceEventHandlers(){this.source.removeListener("data",this.sourceDataHandler);this.source.removeListener("end",this.sourceErrorOrEndHandler);this.source.removeListener("error",this.sourceErrorOrEndHandler)}_destroy(r,s){this.removeSourceEventHandlers();this.source.destroy();s(r===null?undefined:r)}}class BlobDownloadResponse{constructor(r,s,i,a,A={}){this.originalResponse=r;this.blobDownloadStream=new RetriableReadableStream(this.originalResponse.readableStreamBody,s,i,a,A)}get acceptRanges(){return this.originalResponse.acceptRanges}get cacheControl(){return this.originalResponse.cacheControl}get contentDisposition(){return this.originalResponse.contentDisposition}get contentEncoding(){return this.originalResponse.contentEncoding}get contentLanguage(){return this.originalResponse.contentLanguage}get blobSequenceNumber(){return this.originalResponse.blobSequenceNumber}get blobType(){return this.originalResponse.blobType}get contentLength(){return this.originalResponse.contentLength}get contentMD5(){return this.originalResponse.contentMD5}get contentRange(){return this.originalResponse.contentRange}get contentType(){return this.originalResponse.contentType}get copyCompletedOn(){return this.originalResponse.copyCompletedOn}get copyId(){return this.originalResponse.copyId}get copyProgress(){return this.originalResponse.copyProgress}get copySource(){return this.originalResponse.copySource}get copyStatus(){return this.originalResponse.copyStatus}get copyStatusDescription(){return this.originalResponse.copyStatusDescription}get leaseDuration(){return this.originalResponse.leaseDuration}get leaseState(){return this.originalResponse.leaseState}get leaseStatus(){return this.originalResponse.leaseStatus}get date(){return this.originalResponse.date}get blobCommittedBlockCount(){return this.originalResponse.blobCommittedBlockCount}get etag(){return this.originalResponse.etag}get tagCount(){return this.originalResponse.tagCount}get errorCode(){return this.originalResponse.errorCode}get isServerEncrypted(){return this.originalResponse.isServerEncrypted}get blobContentMD5(){return this.originalResponse.blobContentMD5}get lastModified(){return this.originalResponse.lastModified}get lastAccessed(){return this.originalResponse.lastAccessed}get createdOn(){return this.originalResponse.createdOn}get metadata(){return this.originalResponse.metadata}get requestId(){return this.originalResponse.requestId}get clientRequestId(){return this.originalResponse.clientRequestId}get version(){return this.originalResponse.version}get versionId(){return this.originalResponse.versionId}get isCurrentVersion(){return this.originalResponse.isCurrentVersion}get encryptionKeySha256(){return this.originalResponse.encryptionKeySha256}get contentCrc64(){return this.originalResponse.contentCrc64}get objectReplicationDestinationPolicyId(){return this.originalResponse.objectReplicationDestinationPolicyId}get objectReplicationSourceProperties(){return this.originalResponse.objectReplicationSourceProperties}get isSealed(){return this.originalResponse.isSealed}get immutabilityPolicyExpiresOn(){return this.originalResponse.immutabilityPolicyExpiresOn}get immutabilityPolicyMode(){return this.originalResponse.immutabilityPolicyMode}get legalHold(){return this.originalResponse.legalHold}get contentAsBlob(){return this.originalResponse.blobBody}get readableStreamBody(){return a.isNode?this.blobDownloadStream:undefined}get _response(){return this.originalResponse._response}}const Ha=16;const Ga=new Uint8Array([79,98,106,1]);const qa="avro.codec";const Va="avro.schema";class AvroParser{static async readFixedBytes(r,s,i={}){const a=await r.read(s,{abortSignal:i.abortSignal});if(a.length!==s){throw new Error("Hit stream end.")}return a}static async readByte(r,s={}){const i=await AvroParser.readFixedBytes(r,1,s);return i[0]}static async readZigZagLong(r,s={}){let i=0;let a=0;let A,c,l;do{A=await AvroParser.readByte(r,s);c=A&128;i|=(A&127)<Number.MAX_SAFE_INTEGER){throw new Error("Integer overflow.")}return a}return i>>1^-(i&1)}static async readLong(r,s={}){return AvroParser.readZigZagLong(r,s)}static async readInt(r,s={}){return AvroParser.readZigZagLong(r,s)}static async readNull(){return null}static async readBoolean(r,s={}){const i=await AvroParser.readByte(r,s);if(i===1){return true}else if(i===0){return false}else{throw new Error("Byte was not a boolean.")}}static async readFloat(r,s={}){const i=await AvroParser.readFixedBytes(r,4,s);const a=new DataView(i.buffer,i.byteOffset,i.byteLength);return a.getFloat32(0,true)}static async readDouble(r,s={}){const i=await AvroParser.readFixedBytes(r,8,s);const a=new DataView(i.buffer,i.byteOffset,i.byteLength);return a.getFloat64(0,true)}static async readBytes(r,s={}){const i=await AvroParser.readLong(r,s);if(i<0){throw new Error("Bytes size was negative.")}return r.read(i,{abortSignal:s.abortSignal})}static async readString(r,s={}){const i=await AvroParser.readBytes(r,s);const a=new TextDecoder;return a.decode(i)}static async readMapPair(r,s,i={}){const a=await AvroParser.readString(r,i);const A=await s(r,i);return{key:a,value:A}}static async readMap(r,s,i={}){const readPairMethod=(r,i={})=>AvroParser.readMapPair(r,s,i);const a=await AvroParser.readArray(r,readPairMethod,i);const A={};for(const r of a){A[r.key]=r.value}return A}static async readArray(r,s,i={}){const a=[];for(let A=await AvroParser.readLong(r,i);A!==0;A=await AvroParser.readLong(r,i)){if(A<0){await AvroParser.readLong(r,i);A=-A}while(A--){const A=await s(r,i);a.push(A)}}return a}}var ja;(function(r){r["RECORD"]="record";r["ENUM"]="enum";r["ARRAY"]="array";r["MAP"]="map";r["UNION"]="union";r["FIXED"]="fixed"})(ja||(ja={}));var za;(function(r){r["NULL"]="null";r["BOOLEAN"]="boolean";r["INT"]="int";r["LONG"]="long";r["FLOAT"]="float";r["DOUBLE"]="double";r["BYTES"]="bytes";r["STRING"]="string"})(za||(za={}));class AvroType{static fromSchema(r){if(typeof r==="string"){return AvroType.fromStringSchema(r)}else if(Array.isArray(r)){return AvroType.fromArraySchema(r)}else{return AvroType.fromObjectSchema(r)}}static fromStringSchema(r){switch(r){case za.NULL:case za.BOOLEAN:case za.INT:case za.LONG:case za.FLOAT:case za.DOUBLE:case za.BYTES:case za.STRING:return new AvroPrimitiveType(r);default:throw new Error(`Unexpected Avro type ${r}`)}}static fromArraySchema(r){return new AvroUnionType(r.map(AvroType.fromSchema))}static fromObjectSchema(r){const s=r.type;try{return AvroType.fromStringSchema(s)}catch(r){}switch(s){case ja.RECORD:if(r.aliases){throw new Error(`aliases currently is not supported, schema: ${r}`)}if(!r.name){throw new Error(`Required attribute 'name' doesn't exist on schema: ${r}`)}const i={};if(!r.fields){throw new Error(`Required attribute 'fields' doesn't exist on schema: ${r}`)}for(const s of r.fields){i[s.name]=AvroType.fromSchema(s.type)}return new AvroRecordType(i,r.name);case ja.ENUM:if(r.aliases){throw new Error(`aliases currently is not supported, schema: ${r}`)}if(!r.symbols){throw new Error(`Required attribute 'symbols' doesn't exist on schema: ${r}`)}return new AvroEnumType(r.symbols);case ja.MAP:if(!r.values){throw new Error(`Required attribute 'values' doesn't exist on schema: ${r}`)}return new AvroMapType(AvroType.fromSchema(r.values));case ja.ARRAY:case ja.FIXED:default:throw new Error(`Unexpected Avro type ${s} in ${r}`)}}}class AvroPrimitiveType extends AvroType{constructor(r){super();this._primitive=r}read(r,s={}){switch(this._primitive){case za.NULL:return AvroParser.readNull();case za.BOOLEAN:return AvroParser.readBoolean(r,s);case za.INT:return AvroParser.readInt(r,s);case za.LONG:return AvroParser.readLong(r,s);case za.FLOAT:return AvroParser.readFloat(r,s);case za.DOUBLE:return AvroParser.readDouble(r,s);case za.BYTES:return AvroParser.readBytes(r,s);case za.STRING:return AvroParser.readString(r,s);default:throw new Error("Unknown Avro Primitive")}}}class AvroEnumType extends AvroType{constructor(r){super();this._symbols=r}async read(r,s={}){const i=await AvroParser.readInt(r,s);return this._symbols[i]}}class AvroUnionType extends AvroType{constructor(r){super();this._types=r}async read(r,s={}){const i=await AvroParser.readInt(r,s);return this._types[i].read(r,s)}}class AvroMapType extends AvroType{constructor(r){super();this._itemType=r}read(r,s={}){const readItemMethod=(r,s)=>this._itemType.read(r,s);return AvroParser.readMap(r,readItemMethod,s)}}class AvroRecordType extends AvroType{constructor(r,s){super();this._fields=r;this._name=s}async read(r,s={}){const i={};i["$schema"]=this._name;for(const a in this._fields){if(Object.prototype.hasOwnProperty.call(this._fields,a)){i[a]=await this._fields[a].read(r,s)}}return i}}function arraysEqual(r,s){if(r===s)return true;if(r==null||s==null)return false;if(r.length!==s.length)return false;for(let i=0;i0){for(let s=0;s0}parseObjects(r={}){return A.__asyncGenerator(this,arguments,(function*parseObjects_1(){if(!this._initialized){yield A.__await(this.initialize(r))}while(this.hasNext()){const s=yield A.__await(this._itemType.read(this._dataStream,{abortSignal:r.abortSignal}));this._itemsRemainingInBlock--;this._objectIndex++;if(this._itemsRemainingInBlock===0){const s=yield A.__await(AvroParser.readFixedBytes(this._dataStream,Ha,{abortSignal:r.abortSignal}));this._blockOffset=this._initialBlockOffset+this._dataStream.position;this._objectIndex=0;if(!arraysEqual(this._syncMarker,s)){throw new Error("Stream is not a valid Avro file.")}try{this._itemsRemainingInBlock=yield A.__await(AvroParser.readLong(this._dataStream,{abortSignal:r.abortSignal}))}catch(r){this._itemsRemainingInBlock=0}if(this._itemsRemainingInBlock>0){yield A.__await(AvroParser.readLong(this._dataStream,{abortSignal:r.abortSignal}))}}yield yield A.__await(s)}}))}}class AvroReadable{}const Ya=new d.AbortError("Reading from the avro stream was aborted.");class AvroReadableFromStream extends AvroReadable{constructor(r){super();this._readable=r;this._position=0}toUint8Array(r){if(typeof r==="string"){return Buffer.from(r)}return r}get position(){return this._position}async read(r,s={}){var i;if((i=s.abortSignal)===null||i===void 0?void 0:i.aborted){throw Ya}if(r<0){throw new Error(`size parameter should be positive: ${r}`)}if(r===0){return new Uint8Array}if(!this._readable.readable){throw new Error("Stream no longer readable.")}const a=this._readable.read(r);if(a){this._position+=a.length;return this.toUint8Array(a)}else{return new Promise(((i,a)=>{const cleanUp=()=>{this._readable.removeListener("readable",readableCallback);this._readable.removeListener("error",rejectCallback);this._readable.removeListener("end",rejectCallback);this._readable.removeListener("close",rejectCallback);if(s.abortSignal){s.abortSignal.removeEventListener("abort",abortHandler)}};const readableCallback=()=>{const s=this._readable.read(r);if(s){this._position+=s.length;cleanUp();i(this.toUint8Array(s))}};const rejectCallback=()=>{cleanUp();a()};const abortHandler=()=>{cleanUp();a(Ya)};this._readable.on("readable",readableCallback);this._readable.once("error",rejectCallback);this._readable.once("end",rejectCallback);this._readable.once("close",rejectCallback);if(s.abortSignal){s.abortSignal.addEventListener("abort",abortHandler)}}))}}}class BlobQuickQueryStream extends g.Readable{constructor(r,s={}){super();this.avroPaused=true;this.source=r;this.onProgress=s.onProgress;this.onError=s.onError;this.avroReader=new AvroReader(new AvroReadableFromStream(this.source));this.avroIter=this.avroReader.parseObjects({abortSignal:s.abortSignal})}_read(){if(this.avroPaused){this.readInternal().catch((r=>{this.emit("error",r)}))}}async readInternal(){this.avroPaused=false;let r;do{r=await this.avroIter.next();if(r.done){break}const s=r.value;const i=s.$schema;if(typeof i!=="string"){throw Error("Missing schema in avro record.")}switch(i){case"com.microsoft.azure.storage.queryBlobContents.resultData":{const r=s.data;if(r instanceof Uint8Array===false){throw Error("Invalid data in avro result record.")}if(!this.push(Buffer.from(r))){this.avroPaused=true}}break;case"com.microsoft.azure.storage.queryBlobContents.progress":{const r=s.bytesScanned;if(typeof r!=="number"){throw Error("Invalid bytesScanned in avro progress record.")}if(this.onProgress){this.onProgress({loadedBytes:r})}}break;case"com.microsoft.azure.storage.queryBlobContents.end":if(this.onProgress){const r=s.totalBytes;if(typeof r!=="number"){throw Error("Invalid totalBytes in avro end record.")}this.onProgress({loadedBytes:r})}this.push(null);break;case"com.microsoft.azure.storage.queryBlobContents.error":if(this.onError){const r=s.fatal;if(typeof r!=="boolean"){throw Error("Invalid fatal in avro error record.")}const i=s.name;if(typeof i!=="string"){throw Error("Invalid name in avro error record.")}const a=s.description;if(typeof a!=="string"){throw Error("Invalid description in avro error record.")}const A=s.position;if(typeof A!=="number"){throw Error("Invalid position in avro error record.")}this.onError({position:A,name:i,isFatal:r,description:a})}break;default:throw Error(`Unknown schema ${i} in avro progress record.`)}}while(!r.done&&!this.avroPaused)}}class BlobQueryResponse{constructor(r,s={}){this.originalResponse=r;this.blobDownloadStream=new BlobQuickQueryStream(this.originalResponse.readableStreamBody,s)}get acceptRanges(){return this.originalResponse.acceptRanges}get cacheControl(){return this.originalResponse.cacheControl}get contentDisposition(){return this.originalResponse.contentDisposition}get contentEncoding(){return this.originalResponse.contentEncoding}get contentLanguage(){return this.originalResponse.contentLanguage}get blobSequenceNumber(){return this.originalResponse.blobSequenceNumber}get blobType(){return this.originalResponse.blobType}get contentLength(){return this.originalResponse.contentLength}get contentMD5(){return this.originalResponse.contentMD5}get contentRange(){return this.originalResponse.contentRange}get contentType(){return this.originalResponse.contentType}get copyCompletedOn(){return undefined}get copyId(){return this.originalResponse.copyId}get copyProgress(){return this.originalResponse.copyProgress}get copySource(){return this.originalResponse.copySource}get copyStatus(){return this.originalResponse.copyStatus}get copyStatusDescription(){return this.originalResponse.copyStatusDescription}get leaseDuration(){return this.originalResponse.leaseDuration}get leaseState(){return this.originalResponse.leaseState}get leaseStatus(){return this.originalResponse.leaseStatus}get date(){return this.originalResponse.date}get blobCommittedBlockCount(){return this.originalResponse.blobCommittedBlockCount}get etag(){return this.originalResponse.etag}get errorCode(){return this.originalResponse.errorCode}get isServerEncrypted(){return this.originalResponse.isServerEncrypted}get blobContentMD5(){return this.originalResponse.blobContentMD5}get lastModified(){return this.originalResponse.lastModified}get metadata(){return this.originalResponse.metadata}get requestId(){return this.originalResponse.requestId}get clientRequestId(){return this.originalResponse.clientRequestId}get version(){return this.originalResponse.version}get encryptionKeySha256(){return this.originalResponse.encryptionKeySha256}get contentCrc64(){return this.originalResponse.contentCrc64}get blobBody(){return undefined}get readableStreamBody(){return a.isNode?this.blobDownloadStream:undefined}get _response(){return this.originalResponse._response}}s.BlockBlobTier=void 0;(function(r){r["Hot"]="Hot";r["Cool"]="Cool";r["Cold"]="Cold";r["Archive"]="Archive"})(s.BlockBlobTier||(s.BlockBlobTier={}));s.PremiumPageBlobTier=void 0;(function(r){r["P4"]="P4";r["P6"]="P6";r["P10"]="P10";r["P15"]="P15";r["P20"]="P20";r["P30"]="P30";r["P40"]="P40";r["P50"]="P50";r["P60"]="P60";r["P70"]="P70";r["P80"]="P80"})(s.PremiumPageBlobTier||(s.PremiumPageBlobTier={}));function toAccessTier(r){if(r===undefined){return undefined}return r}function ensureCpkIfSpecified(r,s){if(r&&!s){throw new RangeError("Customer-provided encryption key must be used over HTTPS.")}if(r&&!r.encryptionAlgorithm){r.encryptionAlgorithm=va}}s.StorageBlobAudience=void 0;(function(r){r["StorageOAuthScopes"]="https://storage.azure.com/.default";r["DiskComputeOAuthScopes"]="https://disk.compute.azure.com/.default"})(s.StorageBlobAudience||(s.StorageBlobAudience={}));function rangeResponseFromModel(r){const s=(r._response.parsedBody.pageRange||[]).map((r=>({offset:r.start,count:r.end-r.start})));const i=(r._response.parsedBody.clearRange||[]).map((r=>({offset:r.start,count:r.end-r.start})));return Object.assign(Object.assign({},r),{pageRange:s,clearRange:i,_response:Object.assign(Object.assign({},r._response),{parsedBody:{pageRange:s,clearRange:i}})})}class BlobBeginCopyFromUrlPoller extends h.Poller{constructor(r){const{blobClient:s,copySource:i,intervalInMs:a=15e3,onProgress:A,resumeFrom:c,startCopyFromURLOptions:l}=r;let d;if(c){d=JSON.parse(c).state}const u=makeBlobBeginCopyFromURLPollOperation(Object.assign(Object.assign({},d),{blobClient:s,copySource:i,startCopyFromURLOptions:l}));super(u);if(typeof A==="function"){this.onProgress(A)}this.intervalInMs=a}delay(){return a.delay(this.intervalInMs)}}const Ja=async function cancel(r={}){const s=this.state;const{copyId:i}=s;if(s.isCompleted){return makeBlobBeginCopyFromURLPollOperation(s)}if(!i){s.isCancelled=true;return makeBlobBeginCopyFromURLPollOperation(s)}await s.blobClient.abortCopyFromURL(i,{abortSignal:r.abortSignal});s.isCancelled=true;return makeBlobBeginCopyFromURLPollOperation(s)};const Wa=async function update(r={}){const s=this.state;const{blobClient:i,copySource:a,startCopyFromURLOptions:A}=s;if(!s.isStarted){s.isStarted=true;const r=await i.startCopyFromURL(a,A);s.copyId=r.copyId;if(r.copyStatus==="success"){s.result=r;s.isCompleted=true}}else if(!s.isCompleted){try{const i=await s.blobClient.getProperties({abortSignal:r.abortSignal});const{copyStatus:a,copyProgress:A}=i;const c=s.copyProgress;if(A){s.copyProgress=A}if(a==="pending"&&A!==c&&typeof r.fireProgress==="function"){r.fireProgress(s)}else if(a==="success"){s.result=i;s.isCompleted=true}else if(a==="failed"){s.error=new Error(`Blob copy failed with reason: "${i.copyStatusDescription||"unknown"}"`);s.isCompleted=true}}catch(r){s.error=r;s.isCompleted=true}}return makeBlobBeginCopyFromURLPollOperation(s)};const Xa=function toString(){return JSON.stringify({state:this.state},((r,s)=>{if(r==="blobClient"){return undefined}return s}))};function makeBlobBeginCopyFromURLPollOperation(r){return{state:Object.assign({},r),cancel:Ja,toString:Xa,update:Wa}}function rangeToString(r){if(r.offset<0){throw new RangeError(`Range.offset cannot be smaller than 0.`)}if(r.count&&r.count<=0){throw new RangeError(`Range.count must be larger than 0. Leave it undefined if you want a range from offset to the end.`)}return r.count?`bytes=${r.offset}-${r.offset+r.count-1}`:`bytes=${r.offset}-`}var $a;(function(r){r[r["Good"]=0]="Good";r[r["Error"]=1]="Error"})($a||($a={}));class Batch{constructor(r=5){this.actives=0;this.completed=0;this.offset=0;this.operations=[];this.state=$a.Good;if(r<1){throw new RangeError("concurrency must be larger than 0")}this.concurrency=r;this.emitter=new C.EventEmitter}addOperation(r){this.operations.push((async()=>{try{this.actives++;await r();this.actives--;this.completed++;this.parallelExecute()}catch(r){this.emitter.emit("error",r)}}))}async do(){if(this.operations.length===0){return Promise.resolve()}this.parallelExecute();return new Promise(((r,s)=>{this.emitter.on("finish",r);this.emitter.on("error",(r=>{this.state=$a.Error;s(r)}))}))}nextOperation(){if(this.offset=this.operations.length){this.emitter.emit("finish");return}while(this.actives=this.byteLength){this.push(null)}if(!r){r=this.readableHighWaterMark}const s=[];let i=0;while(ir-i){const a=this.byteOffsetInCurrentBuffer+r-i;s.push(this.buffers[this.bufferIndex].slice(this.byteOffsetInCurrentBuffer,a));this.pushedBytesLength+=r-i;this.byteOffsetInCurrentBuffer=a;i=r;break}else{const r=this.byteOffsetInCurrentBuffer+c;s.push(this.buffers[this.bufferIndex].slice(this.byteOffsetInCurrentBuffer,r));if(c===A){this.byteOffsetInCurrentBuffer=0;this.bufferIndex++}else{this.byteOffsetInCurrentBuffer=r}this.pushedBytesLength+=c;i+=c}}if(s.length>1){this.push(Buffer.concat(s))}else if(s.length===1){this.push(s[0])}}}const Ka=i(14300).constants.MAX_LENGTH;class PooledBuffer{constructor(r,s,i){this.buffers=[];this.capacity=r;this._size=0;const a=Math.ceil(r/Ka);for(let s=0;s0){r[0]=r[0].slice(c)}}getReadableStream(){return new BuffersStream(this.buffers,this.size)}}class BufferScheduler{constructor(r,s,i,a,A,c){this.emitter=new C.EventEmitter;this.offset=0;this.isStreamEnd=false;this.isError=false;this.executingOutgoingHandlers=0;this.numBuffers=0;this.unresolvedDataArray=[];this.unresolvedLength=0;this.incoming=[];this.outgoing=[];if(s<=0){throw new RangeError(`bufferSize must be larger than 0, current is ${s}`)}if(i<=0){throw new RangeError(`maxBuffers must be larger than 0, current is ${i}`)}if(A<=0){throw new RangeError(`concurrency must be larger than 0, current is ${A}`)}this.bufferSize=s;this.maxBuffers=i;this.readable=r;this.outgoingHandler=a;this.concurrency=A;this.encoding=c}async do(){return new Promise(((r,s)=>{this.readable.on("data",(r=>{r=typeof r==="string"?Buffer.from(r,this.encoding):r;this.appendUnresolvedData(r);if(!this.resolveData()){this.readable.pause()}}));this.readable.on("error",(r=>{this.emitter.emit("error",r)}));this.readable.on("end",(()=>{this.isStreamEnd=true;this.emitter.emit("checkEnd")}));this.emitter.on("error",(r=>{this.isError=true;this.readable.pause();s(r)}));this.emitter.on("checkEnd",(()=>{if(this.outgoing.length>0){this.triggerOutgoingHandlers();return}if(this.isStreamEnd&&this.executingOutgoingHandlers===0){if(this.unresolvedLength>0&&this.unresolvedLengthi.getReadableStream()),i.size,this.offset).then(r).catch(s)}else if(this.unresolvedLength>=this.bufferSize){return}else{r()}}}))}))}appendUnresolvedData(r){this.unresolvedDataArray.push(r);this.unresolvedLength+=r.length}shiftBufferFromUnresolvedDataArray(r){if(!r){r=new PooledBuffer(this.bufferSize,this.unresolvedDataArray,this.unresolvedLength)}else{r.fill(this.unresolvedDataArray,this.unresolvedLength)}this.unresolvedLength-=r.size;return r}resolveData(){while(this.unresolvedLength>=this.bufferSize){let r;if(this.incoming.length>0){r=this.incoming.shift();this.shiftBufferFromUnresolvedDataArray(r)}else{if(this.numBuffers=this.concurrency){return}r=this.outgoing.shift();if(r){this.triggerOutgoingHandler(r)}}while(r)}async triggerOutgoingHandler(r){const s=r.size;this.executingOutgoingHandlers++;this.offset+=s;try{await this.outgoingHandler((()=>r.getReadableStream()),s,this.offset-s)}catch(r){this.emitter.emit("error",r);return}this.executingOutgoingHandlers--;this.reuseBuffer(r);this.emitter.emit("checkEnd")}reuseBuffer(r){this.incoming.push(r);if(!this.isError&&this.resolveData()&&!this.isStreamEnd){this.readable.resume()}}}async function streamToBuffer(r,s,i,a,A){let c=0;const l=a-i;return new Promise(((a,d)=>{const u=setTimeout((()=>d(new Error(`The operation cannot be completed in timeout.`))),ga);r.on("readable",(()=>{if(c>=l){clearTimeout(u);a();return}let d=r.read();if(!d){return}if(typeof d==="string"){d=Buffer.from(d,A)}const p=c+d.length>l?l-c:d.length;s.fill(d.slice(0,p),i+c,i+c+p);c+=p}));r.on("end",(()=>{clearTimeout(u);if(c{clearTimeout(u);d(r)}))}))}async function streamToBuffer2(r,s,i){let a=0;const A=s.length;return new Promise(((c,l)=>{r.on("readable",(()=>{let c=r.read();if(!c){return}if(typeof c==="string"){c=Buffer.from(c,i)}if(a+c.length>A){l(new Error(`Stream exceeds buffer size. Buffer size: ${A}`));return}s.fill(c,a,a+c.length);a+=c.length}));r.on("end",(()=>{c(a)}));r.on("error",l)}))}async function readStreamToLocalFile(r,s){return new Promise(((i,a)=>{const A=Q.createWriteStream(s);r.on("error",(r=>{a(r)}));A.on("error",(r=>{a(r)}));A.on("close",i);r.pipe(A)}))}const Za=w.promisify(Q.stat);const eA=Q.createReadStream;class BlobClient extends StorageClient{constructor(r,s,i,A){A=A||{};let c;let l;if(isPipelineLike(s)){l=r;c=s}else if(a.isNode&&s instanceof StorageSharedKeyCredential||s instanceof AnonymousCredential||a.isTokenCredential(s)){l=r;A=i;c=newPipeline(s,A)}else if(!s&&typeof s!=="string"){l=r;if(i&&typeof i!=="string"){A=i}c=newPipeline(new AnonymousCredential,A)}else if(s&&typeof s==="string"&&i&&typeof i==="string"){const d=s;const u=i;const p=extractConnectionStringParts(r);if(p.kind==="AccountConnString"){if(a.isNode){const r=new StorageSharedKeyCredential(p.accountName,p.accountKey);l=appendToURLPath(appendToURLPath(p.url,encodeURIComponent(d)),encodeURIComponent(u));if(!A.proxyOptions){A.proxyOptions=a.getDefaultProxySettings(p.proxyUri)}c=newPipeline(r,A)}else{throw new Error("Account connection string is only supported in Node.js environment")}}else if(p.kind==="SASConnString"){l=appendToURLPath(appendToURLPath(p.url,encodeURIComponent(d)),encodeURIComponent(u))+"?"+p.accountSas;c=newPipeline(new AnonymousCredential,A)}else{throw new Error("Connection string must be either an Account connection string or a SAS connection string")}}else{throw new Error("Expecting non-empty strings for containerName and blobName parameters")}super(l,c);({blobName:this._name,containerName:this._containerName}=this.getBlobAndContainerNamesFromUrl());this.blobContext=new Blob$1(this.storageClientContext);this._snapshot=getURLParameter(this.url,ma.Parameters.SNAPSHOT);this._versionId=getURLParameter(this.url,ma.Parameters.VERSIONID)}get name(){return this._name}get containerName(){return this._containerName}withSnapshot(r){return new BlobClient(setURLParameter(this.url,ma.Parameters.SNAPSHOT,r.length===0?undefined:r),this.pipeline)}withVersion(r){return new BlobClient(setURLParameter(this.url,ma.Parameters.VERSIONID,r.length===0?undefined:r),this.pipeline)}getAppendBlobClient(){return new AppendBlobClient(this.url,this.pipeline)}getBlockBlobClient(){return new BlockBlobClient(this.url,this.pipeline)}getPageBlobClient(){return new PageBlobClient(this.url,this.pipeline)}async download(r=0,s,i={}){var A;i.conditions=i.conditions||{};i.conditions=i.conditions||{};ensureCpkIfSpecified(i.customerProvidedKey,this.isHttps);const{span:l,updatedOptions:d}=Ua("BlobClient-download",i);try{const c=await this.blobContext.download(Object.assign({abortSignal:i.abortSignal,leaseAccessConditions:i.conditions,modifiedAccessConditions:Object.assign(Object.assign({},i.conditions),{ifTags:(A=i.conditions)===null||A===void 0?void 0:A.tagConditions}),requestOptions:{onDownloadProgress:a.isNode?undefined:i.onProgress},range:r===0&&!s?undefined:rangeToString({offset:r,count:s}),rangeGetContentMD5:i.rangeGetContentMD5,rangeGetContentCRC64:i.rangeGetContentCrc64,snapshot:i.snapshot,cpkInfo:i.customerProvidedKey},convertTracingToRequestOptionsBase(d)));const l=Object.assign(Object.assign({},c),{_response:c._response,objectReplicationDestinationPolicyId:c.objectReplicationPolicyId,objectReplicationSourceProperties:parseObjectReplicationRecord(c.objectReplicationRules)});if(!a.isNode){return l}if(i.maxRetryRequests===undefined||i.maxRetryRequests<0){i.maxRetryRequests=pa}if(c.contentLength===undefined){throw new RangeError(`File download response doesn't contain valid content length header`)}if(!c.etag){throw new RangeError(`File download response doesn't contain valid etag header`)}return new BlobDownloadResponse(l,(async s=>{var a;const A={leaseAccessConditions:i.conditions,modifiedAccessConditions:{ifMatch:i.conditions.ifMatch||c.etag,ifModifiedSince:i.conditions.ifModifiedSince,ifNoneMatch:i.conditions.ifNoneMatch,ifUnmodifiedSince:i.conditions.ifUnmodifiedSince,ifTags:(a=i.conditions)===null||a===void 0?void 0:a.tagConditions},range:rangeToString({count:r+c.contentLength-s,offset:s}),rangeGetContentMD5:i.rangeGetContentMD5,rangeGetContentCRC64:i.rangeGetContentCrc64,snapshot:i.snapshot,cpkInfo:i.customerProvidedKey};return(await this.blobContext.download(Object.assign({abortSignal:i.abortSignal},A))).readableStreamBody}),r,c.contentLength,{maxRetryRequests:i.maxRetryRequests,onProgress:i.onProgress})}catch(r){l.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{l.end()}}async exists(r={}){const{span:s,updatedOptions:i}=Ua("BlobClient-exists",r);try{ensureCpkIfSpecified(r.customerProvidedKey,this.isHttps);await this.getProperties({abortSignal:r.abortSignal,customerProvidedKey:r.customerProvidedKey,conditions:r.conditions,tracingOptions:i.tracingOptions});return true}catch(r){if(r.statusCode===404){return false}else if(r.statusCode===409&&(r.details.errorCode===xa||r.details.errorCode===Da)){return true}s.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{s.end()}}async getProperties(r={}){var s;const{span:i,updatedOptions:a}=Ua("BlobClient-getProperties",r);try{r.conditions=r.conditions||{};ensureCpkIfSpecified(r.customerProvidedKey,this.isHttps);const i=await this.blobContext.getProperties(Object.assign({abortSignal:r.abortSignal,leaseAccessConditions:r.conditions,modifiedAccessConditions:Object.assign(Object.assign({},r.conditions),{ifTags:(s=r.conditions)===null||s===void 0?void 0:s.tagConditions}),cpkInfo:r.customerProvidedKey},convertTracingToRequestOptionsBase(a)));return Object.assign(Object.assign({},i),{_response:i._response,objectReplicationDestinationPolicyId:i.objectReplicationPolicyId,objectReplicationSourceProperties:parseObjectReplicationRecord(i.objectReplicationRules)})}catch(r){i.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{i.end()}}async delete(r={}){var s;const{span:i,updatedOptions:a}=Ua("BlobClient-delete",r);r.conditions=r.conditions||{};try{return await this.blobContext.delete(Object.assign({abortSignal:r.abortSignal,deleteSnapshots:r.deleteSnapshots,leaseAccessConditions:r.conditions,modifiedAccessConditions:Object.assign(Object.assign({},r.conditions),{ifTags:(s=r.conditions)===null||s===void 0?void 0:s.tagConditions})},convertTracingToRequestOptionsBase(a)))}catch(r){i.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{i.end()}}async deleteIfExists(r={}){var s,i;const{span:a,updatedOptions:A}=Ua("BlobClient-deleteIfExists",r);try{const r=await this.delete(A);return Object.assign(Object.assign({succeeded:true},r),{_response:r._response})}catch(r){if(((s=r.details)===null||s===void 0?void 0:s.errorCode)==="BlobNotFound"){a.setStatus({code:c.SpanStatusCode.ERROR,message:"Expected exception when deleting a blob or snapshot only if it exists."});return Object.assign(Object.assign({succeeded:false},(i=r.response)===null||i===void 0?void 0:i.parsedHeaders),{_response:r.response})}a.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{a.end()}}async undelete(r={}){const{span:s,updatedOptions:i}=Ua("BlobClient-undelete",r);try{return await this.blobContext.undelete(Object.assign({abortSignal:r.abortSignal},convertTracingToRequestOptionsBase(i)))}catch(r){s.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{s.end()}}async setHTTPHeaders(r,s={}){var i;const{span:a,updatedOptions:A}=Ua("BlobClient-setHTTPHeaders",s);s.conditions=s.conditions||{};try{ensureCpkIfSpecified(s.customerProvidedKey,this.isHttps);return await this.blobContext.setHttpHeaders(Object.assign({abortSignal:s.abortSignal,blobHttpHeaders:r,leaseAccessConditions:s.conditions,modifiedAccessConditions:Object.assign(Object.assign({},s.conditions),{ifTags:(i=s.conditions)===null||i===void 0?void 0:i.tagConditions})},convertTracingToRequestOptionsBase(A)))}catch(r){a.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{a.end()}}async setMetadata(r,s={}){var i;const{span:a,updatedOptions:A}=Ua("BlobClient-setMetadata",s);s.conditions=s.conditions||{};try{ensureCpkIfSpecified(s.customerProvidedKey,this.isHttps);return await this.blobContext.setMetadata(Object.assign({abortSignal:s.abortSignal,leaseAccessConditions:s.conditions,metadata:r,modifiedAccessConditions:Object.assign(Object.assign({},s.conditions),{ifTags:(i=s.conditions)===null||i===void 0?void 0:i.tagConditions}),cpkInfo:s.customerProvidedKey,encryptionScope:s.encryptionScope},convertTracingToRequestOptionsBase(A)))}catch(r){a.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{a.end()}}async setTags(r,s={}){var i;const{span:a,updatedOptions:A}=Ua("BlobClient-setTags",s);try{return await this.blobContext.setTags(Object.assign(Object.assign({abortSignal:s.abortSignal,leaseAccessConditions:s.conditions,modifiedAccessConditions:Object.assign(Object.assign({},s.conditions),{ifTags:(i=s.conditions)===null||i===void 0?void 0:i.tagConditions})},convertTracingToRequestOptionsBase(A)),{tags:toBlobTags(r)}))}catch(r){a.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{a.end()}}async getTags(r={}){var s;const{span:i,updatedOptions:a}=Ua("BlobClient-getTags",r);try{const i=await this.blobContext.getTags(Object.assign({abortSignal:r.abortSignal,leaseAccessConditions:r.conditions,modifiedAccessConditions:Object.assign(Object.assign({},r.conditions),{ifTags:(s=r.conditions)===null||s===void 0?void 0:s.tagConditions})},convertTracingToRequestOptionsBase(a)));const A=Object.assign(Object.assign({},i),{_response:i._response,tags:toTags({blobTagSet:i.blobTagSet})||{}});return A}catch(r){i.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{i.end()}}getBlobLeaseClient(r){return new BlobLeaseClient(this,r)}async createSnapshot(r={}){var s;const{span:i,updatedOptions:a}=Ua("BlobClient-createSnapshot",r);r.conditions=r.conditions||{};try{ensureCpkIfSpecified(r.customerProvidedKey,this.isHttps);return await this.blobContext.createSnapshot(Object.assign({abortSignal:r.abortSignal,leaseAccessConditions:r.conditions,metadata:r.metadata,modifiedAccessConditions:Object.assign(Object.assign({},r.conditions),{ifTags:(s=r.conditions)===null||s===void 0?void 0:s.tagConditions}),cpkInfo:r.customerProvidedKey,encryptionScope:r.encryptionScope},convertTracingToRequestOptionsBase(a)))}catch(r){i.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{i.end()}}async beginCopyFromURL(r,s={}){const i={abortCopyFromURL:(...r)=>this.abortCopyFromURL(...r),getProperties:(...r)=>this.getProperties(...r),startCopyFromURL:(...r)=>this.startCopyFromURL(...r)};const a=new BlobBeginCopyFromUrlPoller({blobClient:i,copySource:r,intervalInMs:s.intervalInMs,onProgress:s.onProgress,resumeFrom:s.resumeFrom,startCopyFromURLOptions:s});await a.poll();return a}async abortCopyFromURL(r,s={}){const{span:i,updatedOptions:a}=Ua("BlobClient-abortCopyFromURL",s);try{return await this.blobContext.abortCopyFromURL(r,Object.assign({abortSignal:s.abortSignal,leaseAccessConditions:s.conditions},convertTracingToRequestOptionsBase(a)))}catch(r){i.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{i.end()}}async syncCopyFromURL(r,s={}){var i,a,A;const{span:l,updatedOptions:d}=Ua("BlobClient-syncCopyFromURL",s);s.conditions=s.conditions||{};s.sourceConditions=s.sourceConditions||{};try{return await this.blobContext.copyFromURL(r,Object.assign({abortSignal:s.abortSignal,metadata:s.metadata,leaseAccessConditions:s.conditions,modifiedAccessConditions:Object.assign(Object.assign({},s.conditions),{ifTags:(i=s.conditions)===null||i===void 0?void 0:i.tagConditions}),sourceModifiedAccessConditions:{sourceIfMatch:s.sourceConditions.ifMatch,sourceIfModifiedSince:s.sourceConditions.ifModifiedSince,sourceIfNoneMatch:s.sourceConditions.ifNoneMatch,sourceIfUnmodifiedSince:s.sourceConditions.ifUnmodifiedSince},sourceContentMD5:s.sourceContentMD5,copySourceAuthorization:httpAuthorizationToString(s.sourceAuthorization),tier:toAccessTier(s.tier),blobTagsString:toBlobTagsString(s.tags),immutabilityPolicyExpiry:(a=s.immutabilityPolicy)===null||a===void 0?void 0:a.expiriesOn,immutabilityPolicyMode:(A=s.immutabilityPolicy)===null||A===void 0?void 0:A.policyMode,legalHold:s.legalHold,encryptionScope:s.encryptionScope,copySourceTags:s.copySourceTags},convertTracingToRequestOptionsBase(d)))}catch(r){l.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{l.end()}}async setAccessTier(r,s={}){var i;const{span:a,updatedOptions:A}=Ua("BlobClient-setAccessTier",s);try{return await this.blobContext.setTier(toAccessTier(r),Object.assign({abortSignal:s.abortSignal,leaseAccessConditions:s.conditions,modifiedAccessConditions:Object.assign(Object.assign({},s.conditions),{ifTags:(i=s.conditions)===null||i===void 0?void 0:i.tagConditions}),rehydratePriority:s.rehydratePriority},convertTracingToRequestOptionsBase(A)))}catch(r){a.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{a.end()}}async downloadToBuffer(r,s,i,a={}){let A;let l=0;let d=0;let u=a;if(r instanceof Buffer){A=r;l=s||0;d=typeof i==="number"?i:0}else{l=typeof r==="number"?r:0;d=typeof s==="number"?s:0;u=i||{}}const{span:p,updatedOptions:g}=Ua("BlobClient-downloadToBuffer",u);try{if(!u.blockSize){u.blockSize=0}if(u.blockSize<0){throw new RangeError("blockSize option must be >= 0")}if(u.blockSize===0){u.blockSize=ua}if(l<0){throw new RangeError("offset option must be >= 0")}if(d&&d<=0){throw new RangeError("count option must be greater than 0")}if(!u.conditions){u.conditions={}}if(!d){const r=await this.getProperties(Object.assign(Object.assign({},u),{tracingOptions:Object.assign(Object.assign({},u.tracingOptions),convertTracingToRequestOptionsBase(g))}));d=r.contentLength-l;if(d<0){throw new RangeError(`offset ${l} shouldn't be larger than blob size ${r.contentLength}`)}}if(!A){try{A=Buffer.alloc(d)}catch(r){throw new Error(`Unable to allocate the buffer of size: ${d}(in bytes). Please try passing your own buffer to the "downloadToBuffer" method or try using other methods like "download" or "downloadToFile".\t ${r.message}`)}}if(A.length{let s=l+d;if(i+u.blockSize{if(!(this.credential instanceof StorageSharedKeyCredential)){throw new RangeError("Can only generate the SAS when the client is initialized with a shared key credential")}const i=generateBlobSASQueryParameters(Object.assign({containerName:this._containerName,blobName:this._name,snapshotTime:this._snapshot,versionId:this._versionId},r),this.credential).toString();s(appendToURLQuery(this.url,i))}))}async deleteImmutabilityPolicy(r){const{span:s,updatedOptions:i}=Ua("BlobClient-deleteImmutabilityPolicy",r);try{return await this.blobContext.deleteImmutabilityPolicy(Object.assign({abortSignal:r===null||r===void 0?void 0:r.abortSignal},convertTracingToRequestOptionsBase(i)))}catch(r){s.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{s.end()}}async setImmutabilityPolicy(r,s){const{span:i,updatedOptions:a}=Ua("BlobClient-setImmutabilityPolicy",s);try{return await this.blobContext.setImmutabilityPolicy(Object.assign({abortSignal:s===null||s===void 0?void 0:s.abortSignal,immutabilityPolicyExpiry:r.expiriesOn,immutabilityPolicyMode:r.policyMode,modifiedAccessConditions:s===null||s===void 0?void 0:s.modifiedAccessCondition},convertTracingToRequestOptionsBase(a)))}catch(r){i.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{i.end()}}async setLegalHold(r,s){const{span:i,updatedOptions:a}=Ua("BlobClient-setLegalHold",s);try{return await this.blobContext.setLegalHold(r,Object.assign({abortSignal:s===null||s===void 0?void 0:s.abortSignal},convertTracingToRequestOptionsBase(a)))}catch(r){i.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{i.end()}}}class AppendBlobClient extends BlobClient{constructor(r,s,i,A){let c;let l;A=A||{};if(isPipelineLike(s)){l=r;c=s}else if(a.isNode&&s instanceof StorageSharedKeyCredential||s instanceof AnonymousCredential||a.isTokenCredential(s)){l=r;A=i;c=newPipeline(s,A)}else if(!s&&typeof s!=="string"){l=r;c=newPipeline(new AnonymousCredential,A)}else if(s&&typeof s==="string"&&i&&typeof i==="string"){const d=s;const u=i;const p=extractConnectionStringParts(r);if(p.kind==="AccountConnString"){if(a.isNode){const r=new StorageSharedKeyCredential(p.accountName,p.accountKey);l=appendToURLPath(appendToURLPath(p.url,encodeURIComponent(d)),encodeURIComponent(u));if(!A.proxyOptions){A.proxyOptions=a.getDefaultProxySettings(p.proxyUri)}c=newPipeline(r,A)}else{throw new Error("Account connection string is only supported in Node.js environment")}}else if(p.kind==="SASConnString"){l=appendToURLPath(appendToURLPath(p.url,encodeURIComponent(d)),encodeURIComponent(u))+"?"+p.accountSas;c=newPipeline(new AnonymousCredential,A)}else{throw new Error("Connection string must be either an Account connection string or a SAS connection string")}}else{throw new Error("Expecting non-empty strings for containerName and blobName parameters")}super(l,c);this.appendBlobContext=new AppendBlob(this.storageClientContext)}withSnapshot(r){return new AppendBlobClient(setURLParameter(this.url,ma.Parameters.SNAPSHOT,r.length===0?undefined:r),this.pipeline)}async create(r={}){var s,i,a;const{span:A,updatedOptions:l}=Ua("AppendBlobClient-create",r);r.conditions=r.conditions||{};try{ensureCpkIfSpecified(r.customerProvidedKey,this.isHttps);return await this.appendBlobContext.create(0,Object.assign({abortSignal:r.abortSignal,blobHttpHeaders:r.blobHTTPHeaders,leaseAccessConditions:r.conditions,metadata:r.metadata,modifiedAccessConditions:Object.assign(Object.assign({},r.conditions),{ifTags:(s=r.conditions)===null||s===void 0?void 0:s.tagConditions}),cpkInfo:r.customerProvidedKey,encryptionScope:r.encryptionScope,immutabilityPolicyExpiry:(i=r.immutabilityPolicy)===null||i===void 0?void 0:i.expiriesOn,immutabilityPolicyMode:(a=r.immutabilityPolicy)===null||a===void 0?void 0:a.policyMode,legalHold:r.legalHold,blobTagsString:toBlobTagsString(r.tags)},convertTracingToRequestOptionsBase(l)))}catch(r){A.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{A.end()}}async createIfNotExists(r={}){var s,i;const{span:a,updatedOptions:A}=Ua("AppendBlobClient-createIfNotExists",r);const l={ifNoneMatch:ya};try{const r=await this.create(Object.assign(Object.assign({},A),{conditions:l}));return Object.assign(Object.assign({succeeded:true},r),{_response:r._response})}catch(r){if(((s=r.details)===null||s===void 0?void 0:s.errorCode)==="BlobAlreadyExists"){a.setStatus({code:c.SpanStatusCode.ERROR,message:"Expected exception when creating a blob only if it does not already exist."});return Object.assign(Object.assign({succeeded:false},(i=r.response)===null||i===void 0?void 0:i.parsedHeaders),{_response:r.response})}a.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{a.end()}}async seal(r={}){var s;const{span:i,updatedOptions:a}=Ua("AppendBlobClient-seal",r);r.conditions=r.conditions||{};try{return await this.appendBlobContext.seal(Object.assign({abortSignal:r.abortSignal,appendPositionAccessConditions:r.conditions,leaseAccessConditions:r.conditions,modifiedAccessConditions:Object.assign(Object.assign({},r.conditions),{ifTags:(s=r.conditions)===null||s===void 0?void 0:s.tagConditions})},convertTracingToRequestOptionsBase(a)))}catch(r){i.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{i.end()}}async appendBlock(r,s,i={}){var a;const{span:A,updatedOptions:l}=Ua("AppendBlobClient-appendBlock",i);i.conditions=i.conditions||{};try{ensureCpkIfSpecified(i.customerProvidedKey,this.isHttps);return await this.appendBlobContext.appendBlock(s,r,Object.assign({abortSignal:i.abortSignal,appendPositionAccessConditions:i.conditions,leaseAccessConditions:i.conditions,modifiedAccessConditions:Object.assign(Object.assign({},i.conditions),{ifTags:(a=i.conditions)===null||a===void 0?void 0:a.tagConditions}),requestOptions:{onUploadProgress:i.onProgress},transactionalContentMD5:i.transactionalContentMD5,transactionalContentCrc64:i.transactionalContentCrc64,cpkInfo:i.customerProvidedKey,encryptionScope:i.encryptionScope},convertTracingToRequestOptionsBase(l)))}catch(r){A.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{A.end()}}async appendBlockFromURL(r,s,i,a={}){var A;const{span:l,updatedOptions:d}=Ua("AppendBlobClient-appendBlockFromURL",a);a.conditions=a.conditions||{};a.sourceConditions=a.sourceConditions||{};try{ensureCpkIfSpecified(a.customerProvidedKey,this.isHttps);return await this.appendBlobContext.appendBlockFromUrl(r,0,Object.assign({abortSignal:a.abortSignal,sourceRange:rangeToString({offset:s,count:i}),sourceContentMD5:a.sourceContentMD5,sourceContentCrc64:a.sourceContentCrc64,leaseAccessConditions:a.conditions,appendPositionAccessConditions:a.conditions,modifiedAccessConditions:Object.assign(Object.assign({},a.conditions),{ifTags:(A=a.conditions)===null||A===void 0?void 0:A.tagConditions}),sourceModifiedAccessConditions:{sourceIfMatch:a.sourceConditions.ifMatch,sourceIfModifiedSince:a.sourceConditions.ifModifiedSince,sourceIfNoneMatch:a.sourceConditions.ifNoneMatch,sourceIfUnmodifiedSince:a.sourceConditions.ifUnmodifiedSince},copySourceAuthorization:httpAuthorizationToString(a.sourceAuthorization),cpkInfo:a.customerProvidedKey,encryptionScope:a.encryptionScope},convertTracingToRequestOptionsBase(d)))}catch(r){l.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{l.end()}}}class BlockBlobClient extends BlobClient{constructor(r,s,i,A){let c;let l;A=A||{};if(isPipelineLike(s)){l=r;c=s}else if(a.isNode&&s instanceof StorageSharedKeyCredential||s instanceof AnonymousCredential||a.isTokenCredential(s)){l=r;A=i;c=newPipeline(s,A)}else if(!s&&typeof s!=="string"){l=r;if(i&&typeof i!=="string"){A=i}c=newPipeline(new AnonymousCredential,A)}else if(s&&typeof s==="string"&&i&&typeof i==="string"){const d=s;const u=i;const p=extractConnectionStringParts(r);if(p.kind==="AccountConnString"){if(a.isNode){const r=new StorageSharedKeyCredential(p.accountName,p.accountKey);l=appendToURLPath(appendToURLPath(p.url,encodeURIComponent(d)),encodeURIComponent(u));if(!A.proxyOptions){A.proxyOptions=a.getDefaultProxySettings(p.proxyUri)}c=newPipeline(r,A)}else{throw new Error("Account connection string is only supported in Node.js environment")}}else if(p.kind==="SASConnString"){l=appendToURLPath(appendToURLPath(p.url,encodeURIComponent(d)),encodeURIComponent(u))+"?"+p.accountSas;c=newPipeline(new AnonymousCredential,A)}else{throw new Error("Connection string must be either an Account connection string or a SAS connection string")}}else{throw new Error("Expecting non-empty strings for containerName and blobName parameters")}super(l,c);this.blockBlobContext=new BlockBlob(this.storageClientContext);this._blobContext=new Blob$1(this.storageClientContext)}withSnapshot(r){return new BlockBlobClient(setURLParameter(this.url,ma.Parameters.SNAPSHOT,r.length===0?undefined:r),this.pipeline)}async query(r,s={}){var i;ensureCpkIfSpecified(s.customerProvidedKey,this.isHttps);const{span:A,updatedOptions:l}=Ua("BlockBlobClient-query",s);try{if(!a.isNode){throw new Error("This operation currently is only supported in Node.js.")}ensureCpkIfSpecified(s.customerProvidedKey,this.isHttps);const A=await this._blobContext.query(Object.assign({abortSignal:s.abortSignal,queryRequest:{queryType:"SQL",expression:r,inputSerialization:toQuerySerialization(s.inputTextConfiguration),outputSerialization:toQuerySerialization(s.outputTextConfiguration)},leaseAccessConditions:s.conditions,modifiedAccessConditions:Object.assign(Object.assign({},s.conditions),{ifTags:(i=s.conditions)===null||i===void 0?void 0:i.tagConditions}),cpkInfo:s.customerProvidedKey},convertTracingToRequestOptionsBase(l)));return new BlobQueryResponse(A,{abortSignal:s.abortSignal,onProgress:s.onProgress,onError:s.onError})}catch(r){A.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{A.end()}}async upload(r,s,i={}){var a,A,l;i.conditions=i.conditions||{};const{span:d,updatedOptions:u}=Ua("BlockBlobClient-upload",i);try{ensureCpkIfSpecified(i.customerProvidedKey,this.isHttps);return await this.blockBlobContext.upload(s,r,Object.assign({abortSignal:i.abortSignal,blobHttpHeaders:i.blobHTTPHeaders,leaseAccessConditions:i.conditions,metadata:i.metadata,modifiedAccessConditions:Object.assign(Object.assign({},i.conditions),{ifTags:(a=i.conditions)===null||a===void 0?void 0:a.tagConditions}),requestOptions:{onUploadProgress:i.onProgress},cpkInfo:i.customerProvidedKey,encryptionScope:i.encryptionScope,immutabilityPolicyExpiry:(A=i.immutabilityPolicy)===null||A===void 0?void 0:A.expiriesOn,immutabilityPolicyMode:(l=i.immutabilityPolicy)===null||l===void 0?void 0:l.policyMode,legalHold:i.legalHold,tier:toAccessTier(i.tier),blobTagsString:toBlobTagsString(i.tags)},convertTracingToRequestOptionsBase(u)))}catch(r){d.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{d.end()}}async syncUploadFromURL(r,s={}){var i,a,A,l,d;s.conditions=s.conditions||{};const{span:u,updatedOptions:p}=Ua("BlockBlobClient-syncUploadFromURL",s);try{ensureCpkIfSpecified(s.customerProvidedKey,this.isHttps);return await this.blockBlobContext.putBlobFromUrl(0,r,Object.assign(Object.assign(Object.assign({},s),{blobHttpHeaders:s.blobHTTPHeaders,leaseAccessConditions:s.conditions,modifiedAccessConditions:Object.assign(Object.assign({},s.conditions),{ifTags:s.conditions.tagConditions}),sourceModifiedAccessConditions:{sourceIfMatch:(i=s.sourceConditions)===null||i===void 0?void 0:i.ifMatch,sourceIfModifiedSince:(a=s.sourceConditions)===null||a===void 0?void 0:a.ifModifiedSince,sourceIfNoneMatch:(A=s.sourceConditions)===null||A===void 0?void 0:A.ifNoneMatch,sourceIfUnmodifiedSince:(l=s.sourceConditions)===null||l===void 0?void 0:l.ifUnmodifiedSince,sourceIfTags:(d=s.sourceConditions)===null||d===void 0?void 0:d.tagConditions},cpkInfo:s.customerProvidedKey,copySourceAuthorization:httpAuthorizationToString(s.sourceAuthorization),tier:toAccessTier(s.tier),blobTagsString:toBlobTagsString(s.tags),copySourceTags:s.copySourceTags}),convertTracingToRequestOptionsBase(p)))}catch(r){u.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{u.end()}}async stageBlock(r,s,i,a={}){const{span:A,updatedOptions:l}=Ua("BlockBlobClient-stageBlock",a);try{ensureCpkIfSpecified(a.customerProvidedKey,this.isHttps);return await this.blockBlobContext.stageBlock(r,i,s,Object.assign({abortSignal:a.abortSignal,leaseAccessConditions:a.conditions,requestOptions:{onUploadProgress:a.onProgress},transactionalContentMD5:a.transactionalContentMD5,transactionalContentCrc64:a.transactionalContentCrc64,cpkInfo:a.customerProvidedKey,encryptionScope:a.encryptionScope},convertTracingToRequestOptionsBase(l)))}catch(r){A.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{A.end()}}async stageBlockFromURL(r,s,i=0,a,A={}){const{span:l,updatedOptions:d}=Ua("BlockBlobClient-stageBlockFromURL",A);try{ensureCpkIfSpecified(A.customerProvidedKey,this.isHttps);return await this.blockBlobContext.stageBlockFromURL(r,0,s,Object.assign({abortSignal:A.abortSignal,leaseAccessConditions:A.conditions,sourceContentMD5:A.sourceContentMD5,sourceContentCrc64:A.sourceContentCrc64,sourceRange:i===0&&!a?undefined:rangeToString({offset:i,count:a}),cpkInfo:A.customerProvidedKey,encryptionScope:A.encryptionScope,copySourceAuthorization:httpAuthorizationToString(A.sourceAuthorization)},convertTracingToRequestOptionsBase(d)))}catch(r){l.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{l.end()}}async commitBlockList(r,s={}){var i,a,A;s.conditions=s.conditions||{};const{span:l,updatedOptions:d}=Ua("BlockBlobClient-commitBlockList",s);try{ensureCpkIfSpecified(s.customerProvidedKey,this.isHttps);return await this.blockBlobContext.commitBlockList({latest:r},Object.assign({abortSignal:s.abortSignal,blobHttpHeaders:s.blobHTTPHeaders,leaseAccessConditions:s.conditions,metadata:s.metadata,modifiedAccessConditions:Object.assign(Object.assign({},s.conditions),{ifTags:(i=s.conditions)===null||i===void 0?void 0:i.tagConditions}),cpkInfo:s.customerProvidedKey,encryptionScope:s.encryptionScope,immutabilityPolicyExpiry:(a=s.immutabilityPolicy)===null||a===void 0?void 0:a.expiriesOn,immutabilityPolicyMode:(A=s.immutabilityPolicy)===null||A===void 0?void 0:A.policyMode,legalHold:s.legalHold,tier:toAccessTier(s.tier),blobTagsString:toBlobTagsString(s.tags)},convertTracingToRequestOptionsBase(d)))}catch(r){l.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{l.end()}}async getBlockList(r,s={}){var i;const{span:a,updatedOptions:A}=Ua("BlockBlobClient-getBlockList",s);try{const a=await this.blockBlobContext.getBlockList(r,Object.assign({abortSignal:s.abortSignal,leaseAccessConditions:s.conditions,modifiedAccessConditions:Object.assign(Object.assign({},s.conditions),{ifTags:(i=s.conditions)===null||i===void 0?void 0:i.tagConditions})},convertTracingToRequestOptionsBase(A)));if(!a.committedBlocks){a.committedBlocks=[]}if(!a.uncommittedBlocks){a.uncommittedBlocks=[]}return a}catch(r){a.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{a.end()}}async uploadData(r,s={}){const{span:i,updatedOptions:A}=Ua("BlockBlobClient-uploadData",s);try{if(a.isNode){let s;if(r instanceof Buffer){s=r}else if(r instanceof ArrayBuffer){s=Buffer.from(r)}else{r=r;s=Buffer.from(r.buffer,r.byteOffset,r.byteLength)}return this.uploadSeekableInternal(((r,i)=>s.slice(r,r+i)),s.byteLength,A)}else{const s=new Blob([r]);return this.uploadSeekableInternal(((r,i)=>s.slice(r,r+i)),s.size,A)}}catch(r){i.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{i.end()}}async uploadBrowserData(r,s={}){const{span:i,updatedOptions:a}=Ua("BlockBlobClient-uploadBrowserData",s);try{const s=new Blob([r]);return await this.uploadSeekableInternal(((r,i)=>s.slice(r,r+i)),s.size,a)}catch(r){i.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{i.end()}}async uploadSeekableInternal(r,s,i={}){if(!i.blockSize){i.blockSize=0}if(i.blockSize<0||i.blockSize>ca){throw new RangeError(`blockSize option must be >= 0 and <= ${ca}`)}if(i.maxSingleShotSize!==0&&!i.maxSingleShotSize){i.maxSingleShotSize=Aa}if(i.maxSingleShotSize<0||i.maxSingleShotSize>Aa){throw new RangeError(`maxSingleShotSize option must be >= 0 and <= ${Aa}`)}if(i.blockSize===0){if(s>ca*la){throw new RangeError(`${s} is too larger to upload to a block blob.`)}if(s>i.maxSingleShotSize){i.blockSize=Math.ceil(s/la);if(i.blockSizela){throw new RangeError(`The buffer's size is too big or the BlockSize is too small;`+`the number of blocks must be <= ${la}`)}const c=[];const d=a.generateUuid();let u=0;const p=new Batch(i.concurrency);for(let a=0;a{const p=generateBlockID(d,a);const g=i.blockSize*a;const h=a===A-1?s:g+i.blockSize;const C=h-g;c.push(p);await this.stageBlock(p,r(g,C),C,{abortSignal:i.abortSignal,conditions:i.conditions,encryptionScope:i.encryptionScope,tracingOptions:l.tracingOptions});u+=C;if(i.onProgress){i.onProgress({loadedBytes:u})}}))}await p.do();return this.commitBlockList(c,l)}catch(r){A.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{A.end()}}async uploadFile(r,s={}){const{span:i,updatedOptions:a}=Ua("BlockBlobClient-uploadFile",s);try{const i=(await Za(r)).size;return await this.uploadSeekableInternal(((s,i)=>()=>eA(r,{autoClose:true,end:i?s+i-1:Infinity,start:s})),i,Object.assign(Object.assign({},s),{tracingOptions:Object.assign(Object.assign({},s.tracingOptions),convertTracingToRequestOptionsBase(a))}))}catch(r){i.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{i.end()}}async uploadStream(r,s=da,i=5,A={}){if(!A.blobHTTPHeaders){A.blobHTTPHeaders={}}if(!A.conditions){A.conditions={}}const{span:l,updatedOptions:d}=Ua("BlockBlobClient-uploadStream",A);try{let c=0;const l=a.generateUuid();let u=0;const p=[];const g=new BufferScheduler(r,s,i,(async(r,s)=>{const i=generateBlockID(l,c);p.push(i);c++;await this.stageBlock(i,r,s,{conditions:A.conditions,encryptionScope:A.encryptionScope,tracingOptions:d.tracingOptions});u+=s;if(A.onProgress){A.onProgress({loadedBytes:u})}}),Math.ceil(i/4*3));await g.do();return await this.commitBlockList(p,Object.assign(Object.assign({},A),{tracingOptions:Object.assign(Object.assign({},A.tracingOptions),convertTracingToRequestOptionsBase(d))}))}catch(r){l.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{l.end()}}}class PageBlobClient extends BlobClient{constructor(r,s,i,A){let c;let l;A=A||{};if(isPipelineLike(s)){l=r;c=s}else if(a.isNode&&s instanceof StorageSharedKeyCredential||s instanceof AnonymousCredential||a.isTokenCredential(s)){l=r;A=i;c=newPipeline(s,A)}else if(!s&&typeof s!=="string"){l=r;c=newPipeline(new AnonymousCredential,A)}else if(s&&typeof s==="string"&&i&&typeof i==="string"){const d=s;const u=i;const p=extractConnectionStringParts(r);if(p.kind==="AccountConnString"){if(a.isNode){const r=new StorageSharedKeyCredential(p.accountName,p.accountKey);l=appendToURLPath(appendToURLPath(p.url,encodeURIComponent(d)),encodeURIComponent(u));if(!A.proxyOptions){A.proxyOptions=a.getDefaultProxySettings(p.proxyUri)}c=newPipeline(r,A)}else{throw new Error("Account connection string is only supported in Node.js environment")}}else if(p.kind==="SASConnString"){l=appendToURLPath(appendToURLPath(p.url,encodeURIComponent(d)),encodeURIComponent(u))+"?"+p.accountSas;c=newPipeline(new AnonymousCredential,A)}else{throw new Error("Connection string must be either an Account connection string or a SAS connection string")}}else{throw new Error("Expecting non-empty strings for containerName and blobName parameters")}super(l,c);this.pageBlobContext=new PageBlob(this.storageClientContext)}withSnapshot(r){return new PageBlobClient(setURLParameter(this.url,ma.Parameters.SNAPSHOT,r.length===0?undefined:r),this.pipeline)}async create(r,s={}){var i,a,A;s.conditions=s.conditions||{};const{span:l,updatedOptions:d}=Ua("PageBlobClient-create",s);try{ensureCpkIfSpecified(s.customerProvidedKey,this.isHttps);return await this.pageBlobContext.create(0,r,Object.assign({abortSignal:s.abortSignal,blobHttpHeaders:s.blobHTTPHeaders,blobSequenceNumber:s.blobSequenceNumber,leaseAccessConditions:s.conditions,metadata:s.metadata,modifiedAccessConditions:Object.assign(Object.assign({},s.conditions),{ifTags:(i=s.conditions)===null||i===void 0?void 0:i.tagConditions}),cpkInfo:s.customerProvidedKey,encryptionScope:s.encryptionScope,immutabilityPolicyExpiry:(a=s.immutabilityPolicy)===null||a===void 0?void 0:a.expiriesOn,immutabilityPolicyMode:(A=s.immutabilityPolicy)===null||A===void 0?void 0:A.policyMode,legalHold:s.legalHold,tier:toAccessTier(s.tier),blobTagsString:toBlobTagsString(s.tags)},convertTracingToRequestOptionsBase(d)))}catch(r){l.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{l.end()}}async createIfNotExists(r,s={}){var i,a;const{span:A,updatedOptions:l}=Ua("PageBlobClient-createIfNotExists",s);try{const i={ifNoneMatch:ya};const a=await this.create(r,Object.assign(Object.assign({},s),{conditions:i,tracingOptions:l.tracingOptions}));return Object.assign(Object.assign({succeeded:true},a),{_response:a._response})}catch(r){if(((i=r.details)===null||i===void 0?void 0:i.errorCode)==="BlobAlreadyExists"){A.setStatus({code:c.SpanStatusCode.ERROR,message:"Expected exception when creating a blob only if it does not already exist."});return Object.assign(Object.assign({succeeded:false},(a=r.response)===null||a===void 0?void 0:a.parsedHeaders),{_response:r.response})}A.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{A.end()}}async uploadPages(r,s,i,a={}){var A;a.conditions=a.conditions||{};const{span:l,updatedOptions:d}=Ua("PageBlobClient-uploadPages",a);try{ensureCpkIfSpecified(a.customerProvidedKey,this.isHttps);return await this.pageBlobContext.uploadPages(i,r,Object.assign({abortSignal:a.abortSignal,leaseAccessConditions:a.conditions,modifiedAccessConditions:Object.assign(Object.assign({},a.conditions),{ifTags:(A=a.conditions)===null||A===void 0?void 0:A.tagConditions}),requestOptions:{onUploadProgress:a.onProgress},range:rangeToString({offset:s,count:i}),sequenceNumberAccessConditions:a.conditions,transactionalContentMD5:a.transactionalContentMD5,transactionalContentCrc64:a.transactionalContentCrc64,cpkInfo:a.customerProvidedKey,encryptionScope:a.encryptionScope},convertTracingToRequestOptionsBase(d)))}catch(r){l.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{l.end()}}async uploadPagesFromURL(r,s,i,a,A={}){var l;A.conditions=A.conditions||{};A.sourceConditions=A.sourceConditions||{};const{span:d,updatedOptions:u}=Ua("PageBlobClient-uploadPagesFromURL",A);try{ensureCpkIfSpecified(A.customerProvidedKey,this.isHttps);return await this.pageBlobContext.uploadPagesFromURL(r,rangeToString({offset:s,count:a}),0,rangeToString({offset:i,count:a}),Object.assign({abortSignal:A.abortSignal,sourceContentMD5:A.sourceContentMD5,sourceContentCrc64:A.sourceContentCrc64,leaseAccessConditions:A.conditions,sequenceNumberAccessConditions:A.conditions,modifiedAccessConditions:Object.assign(Object.assign({},A.conditions),{ifTags:(l=A.conditions)===null||l===void 0?void 0:l.tagConditions}),sourceModifiedAccessConditions:{sourceIfMatch:A.sourceConditions.ifMatch,sourceIfModifiedSince:A.sourceConditions.ifModifiedSince,sourceIfNoneMatch:A.sourceConditions.ifNoneMatch,sourceIfUnmodifiedSince:A.sourceConditions.ifUnmodifiedSince},cpkInfo:A.customerProvidedKey,encryptionScope:A.encryptionScope,copySourceAuthorization:httpAuthorizationToString(A.sourceAuthorization)},convertTracingToRequestOptionsBase(u)))}catch(r){d.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{d.end()}}async clearPages(r=0,s,i={}){var a;i.conditions=i.conditions||{};const{span:A,updatedOptions:l}=Ua("PageBlobClient-clearPages",i);try{return await this.pageBlobContext.clearPages(0,Object.assign({abortSignal:i.abortSignal,leaseAccessConditions:i.conditions,modifiedAccessConditions:Object.assign(Object.assign({},i.conditions),{ifTags:(a=i.conditions)===null||a===void 0?void 0:a.tagConditions}),range:rangeToString({offset:r,count:s}),sequenceNumberAccessConditions:i.conditions,cpkInfo:i.customerProvidedKey,encryptionScope:i.encryptionScope},convertTracingToRequestOptionsBase(l)))}catch(r){A.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{A.end()}}async getPageRanges(r=0,s,i={}){var a;i.conditions=i.conditions||{};const{span:A,updatedOptions:l}=Ua("PageBlobClient-getPageRanges",i);try{return await this.pageBlobContext.getPageRanges(Object.assign({abortSignal:i.abortSignal,leaseAccessConditions:i.conditions,modifiedAccessConditions:Object.assign(Object.assign({},i.conditions),{ifTags:(a=i.conditions)===null||a===void 0?void 0:a.tagConditions}),range:rangeToString({offset:r,count:s})},convertTracingToRequestOptionsBase(l))).then(rangeResponseFromModel)}catch(r){A.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{A.end()}}async listPageRangesSegment(r=0,s,i,a={}){var A;const{span:l,updatedOptions:d}=Ua("PageBlobClient-getPageRangesSegment",a);try{return await this.pageBlobContext.getPageRanges(Object.assign({abortSignal:a.abortSignal,leaseAccessConditions:a.conditions,modifiedAccessConditions:Object.assign(Object.assign({},a.conditions),{ifTags:(A=a.conditions)===null||A===void 0?void 0:A.tagConditions}),range:rangeToString({offset:r,count:s}),marker:i,maxPageSize:a.maxPageSize},convertTracingToRequestOptionsBase(d)))}catch(r){l.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{l.end()}}listPageRangeItemSegments(r=0,s,i,a={}){return A.__asyncGenerator(this,arguments,(function*listPageRangeItemSegments_1(){let c;if(!!i||i===undefined){do{c=yield A.__await(this.listPageRangesSegment(r,s,i,a));i=c.continuationToken;yield yield A.__await(yield A.__await(c))}while(i)}}))}listPageRangeItems(r=0,s,i={}){return A.__asyncGenerator(this,arguments,(function*listPageRangeItems_1(){var a,c;let l;try{for(var d=A.__asyncValues(this.listPageRangeItemSegments(r,s,l,i)),u;u=yield A.__await(d.next()),!u.done;){const r=u.value;yield A.__await(yield*A.__asyncDelegator(A.__asyncValues(ExtractPageRangeInfoItems(r))))}}catch(r){a={error:r}}finally{try{if(u&&!u.done&&(c=d.return))yield A.__await(c.call(d))}finally{if(a)throw a.error}}}))}listPageRanges(r=0,s,i={}){i.conditions=i.conditions||{};const a=this.listPageRangeItems(r,s,i);return{next(){return a.next()},[Symbol.asyncIterator](){return this},byPage:(a={})=>this.listPageRangeItemSegments(r,s,a.continuationToken,Object.assign({maxPageSize:a.maxPageSize},i))}}async getPageRangesDiff(r,s,i,a={}){var A;a.conditions=a.conditions||{};const{span:l,updatedOptions:d}=Ua("PageBlobClient-getPageRangesDiff",a);try{return await this.pageBlobContext.getPageRangesDiff(Object.assign({abortSignal:a.abortSignal,leaseAccessConditions:a.conditions,modifiedAccessConditions:Object.assign(Object.assign({},a.conditions),{ifTags:(A=a.conditions)===null||A===void 0?void 0:A.tagConditions}),prevsnapshot:i,range:rangeToString({offset:r,count:s})},convertTracingToRequestOptionsBase(d))).then(rangeResponseFromModel)}catch(r){l.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{l.end()}}async listPageRangesDiffSegment(r,s,i,a,A){var l;const{span:d,updatedOptions:u}=Ua("PageBlobClient-getPageRangesDiffSegment",A);try{return await this.pageBlobContext.getPageRangesDiff(Object.assign({abortSignal:A===null||A===void 0?void 0:A.abortSignal,leaseAccessConditions:A===null||A===void 0?void 0:A.conditions,modifiedAccessConditions:Object.assign(Object.assign({},A===null||A===void 0?void 0:A.conditions),{ifTags:(l=A===null||A===void 0?void 0:A.conditions)===null||l===void 0?void 0:l.tagConditions}),prevsnapshot:i,range:rangeToString({offset:r,count:s}),marker:a,maxPageSize:A===null||A===void 0?void 0:A.maxPageSize},convertTracingToRequestOptionsBase(u)))}catch(r){d.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{d.end()}}listPageRangeDiffItemSegments(r,s,i,a,c){return A.__asyncGenerator(this,arguments,(function*listPageRangeDiffItemSegments_1(){let l;if(!!a||a===undefined){do{l=yield A.__await(this.listPageRangesDiffSegment(r,s,i,a,c));a=l.continuationToken;yield yield A.__await(yield A.__await(l))}while(a)}}))}listPageRangeDiffItems(r,s,i,a){return A.__asyncGenerator(this,arguments,(function*listPageRangeDiffItems_1(){var c,l;let d;try{for(var u=A.__asyncValues(this.listPageRangeDiffItemSegments(r,s,i,d,a)),p;p=yield A.__await(u.next()),!p.done;){const r=p.value;yield A.__await(yield*A.__asyncDelegator(A.__asyncValues(ExtractPageRangeInfoItems(r))))}}catch(r){c={error:r}}finally{try{if(p&&!p.done&&(l=u.return))yield A.__await(l.call(u))}finally{if(c)throw c.error}}}))}listPageRangesDiff(r,s,i,a={}){a.conditions=a.conditions||{};const A=this.listPageRangeDiffItems(r,s,i,Object.assign({},a));return{next(){return A.next()},[Symbol.asyncIterator](){return this},byPage:(A={})=>this.listPageRangeDiffItemSegments(r,s,i,A.continuationToken,Object.assign({maxPageSize:A.maxPageSize},a))}}async getPageRangesDiffForManagedDisks(r,s,i,a={}){var A;a.conditions=a.conditions||{};const{span:l,updatedOptions:d}=Ua("PageBlobClient-GetPageRangesDiffForManagedDisks",a);try{return await this.pageBlobContext.getPageRangesDiff(Object.assign({abortSignal:a.abortSignal,leaseAccessConditions:a.conditions,modifiedAccessConditions:Object.assign(Object.assign({},a.conditions),{ifTags:(A=a.conditions)===null||A===void 0?void 0:A.tagConditions}),prevSnapshotUrl:i,range:rangeToString({offset:r,count:s})},convertTracingToRequestOptionsBase(d))).then(rangeResponseFromModel)}catch(r){l.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{l.end()}}async resize(r,s={}){var i;s.conditions=s.conditions||{};const{span:a,updatedOptions:A}=Ua("PageBlobClient-resize",s);try{return await this.pageBlobContext.resize(r,Object.assign({abortSignal:s.abortSignal,leaseAccessConditions:s.conditions,modifiedAccessConditions:Object.assign(Object.assign({},s.conditions),{ifTags:(i=s.conditions)===null||i===void 0?void 0:i.tagConditions}),encryptionScope:s.encryptionScope},convertTracingToRequestOptionsBase(A)))}catch(r){a.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{a.end()}}async updateSequenceNumber(r,s,i={}){var a;i.conditions=i.conditions||{};const{span:A,updatedOptions:l}=Ua("PageBlobClient-updateSequenceNumber",i);try{return await this.pageBlobContext.updateSequenceNumber(r,Object.assign({abortSignal:i.abortSignal,blobSequenceNumber:s,leaseAccessConditions:i.conditions,modifiedAccessConditions:Object.assign(Object.assign({},i.conditions),{ifTags:(a=i.conditions)===null||a===void 0?void 0:a.tagConditions})},convertTracingToRequestOptionsBase(l)))}catch(r){A.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{A.end()}}async startCopyIncremental(r,s={}){var i;const{span:a,updatedOptions:A}=Ua("PageBlobClient-startCopyIncremental",s);try{return await this.pageBlobContext.copyIncremental(r,Object.assign({abortSignal:s.abortSignal,modifiedAccessConditions:Object.assign(Object.assign({},s.conditions),{ifTags:(i=s.conditions)===null||i===void 0?void 0:i.tagConditions})},convertTracingToRequestOptionsBase(A)))}catch(r){a.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{a.end()}}}async function getBodyAsText(r){let s=Buffer.alloc(ba);const i=await streamToBuffer2(r.readableStreamBody,s);s=s.slice(0,i);return s.toString()}function utf8ByteLength(r){return Buffer.byteLength(r)}const tA=": ";const rA=" ";const nA=-1;class BatchResponseParser{constructor(r,s){if(!r||!r.contentType){throw new RangeError("batchResponse is malformed or doesn't contain valid content-type.")}if(!s||s.size===0){throw new RangeError("Invalid state: subRequests is not provided or size is 0.")}this.batchResponse=r;this.subRequests=s;this.responseBatchBoundary=this.batchResponse.contentType.split("=")[1];this.perResponsePrefix=`--${this.responseBatchBoundary}${Qa}`;this.batchResponseEnding=`--${this.responseBatchBoundary}--`}async parseBatchResponse(){if(this.batchResponse._response.status!==fa.HTTP_ACCEPTED){throw new Error(`Invalid state: batch request failed with status: '${this.batchResponse._response.status}'.`)}const r=await getBodyAsText(this.batchResponse);const s=r.split(this.batchResponseEnding)[0].split(this.perResponsePrefix).slice(1);const i=s.length;if(i!==this.subRequests.size&&i!==1){throw new Error("Invalid state: sub responses' count is not equal to sub requests' count.")}const A=new Array(i);let c=0;let l=0;for(let r=0;r=0&&C{if(this.keys[r]===undefined||this.keys[r]===sA.UNLOCKED){this.keys[r]=sA.LOCKED;s()}else{this.onUnlockEvent(r,(()=>{this.keys[r]=sA.LOCKED;s()}))}}))}static async unlock(r){return new Promise((s=>{if(this.keys[r]===sA.LOCKED){this.emitUnlockEvent(r)}delete this.keys[r];s()}))}static onUnlockEvent(r,s){if(this.listeners[r]===undefined){this.listeners[r]=[s]}else{this.listeners[r].push(s)}}static emitUnlockEvent(r){if(this.listeners[r]!==undefined&&this.listeners[r].length>0){const s=this.listeners[r].shift();setImmediate((()=>{s.call(this)}))}}}Mutex.keys={};Mutex.listeners={};class BlobBatch{constructor(){this.batch="batch";this.batchRequest=new InnerBatchRequest}getMultiPartContentType(){return this.batchRequest.getMultipartContentType()}getHttpRequestBody(){return this.batchRequest.getHttpRequestBody()}getSubRequests(){return this.batchRequest.getSubRequests()}async addSubRequestInternal(r,s){await Mutex.lock(this.batch);try{this.batchRequest.preAddSubRequest(r);await s();this.batchRequest.postAddSubRequest(r)}finally{await Mutex.unlock(this.batch)}}setBatchType(r){if(!this.batchType){this.batchType=r}if(this.batchType!==r){throw new RangeError(`BlobBatch only supports one operation type per batch and it already is being used for ${this.batchType} operations.`)}}async deleteBlob(r,s,i){let A;let l;if(typeof r==="string"&&(a.isNode&&s instanceof StorageSharedKeyCredential||s instanceof AnonymousCredential||a.isTokenCredential(s))){A=r;l=s}else if(r instanceof BlobClient){A=r.url;l=r.credential;i=s}else{throw new RangeError("Invalid arguments. Either url and credential, or BlobClient need be provided.")}if(!i){i={}}const{span:d,updatedOptions:u}=Ua("BatchDeleteRequest-addSubRequest",i);try{this.setBatchType("delete");await this.addSubRequestInternal({url:A,credential:l},(async()=>{await new BlobClient(A,this.batchRequest.createPipeline(l)).delete(u)}))}catch(r){d.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{d.end()}}async setBlobAccessTier(r,s,i,A){let l;let d;let u;if(typeof r==="string"&&(a.isNode&&s instanceof StorageSharedKeyCredential||s instanceof AnonymousCredential||a.isTokenCredential(s))){l=r;d=s;u=i}else if(r instanceof BlobClient){l=r.url;d=r.credential;u=s;A=i}else{throw new RangeError("Invalid arguments. Either url and credential, or BlobClient need be provided.")}if(!A){A={}}const{span:p,updatedOptions:g}=Ua("BatchSetTierRequest-addSubRequest",A);try{this.setBatchType("setAccessTier");await this.addSubRequestInternal({url:l,credential:d},(async()=>{await new BlobClient(l,this.batchRequest.createPipeline(d)).setAccessTier(u,g)}))}catch(r){p.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{p.end()}}}class InnerBatchRequest{constructor(){this.operationCount=0;this.body="";const r=a.generateUuid();this.boundary=`batch_${r}`;this.subRequestPrefix=`--${this.boundary}${Qa}${Ea.CONTENT_TYPE}: application/http${Qa}${Ea.CONTENT_TRANSFER_ENCODING}: binary`;this.multipartContentType=`multipart/mixed; boundary=${this.boundary}`;this.batchRequestEnding=`--${this.boundary}--`;this.subRequests=new Map}createPipeline(r){const s=r instanceof AnonymousCredential;const i=3+(s?0:1);const A=new Array(i);A[0]=a.deserializationPolicy();A[1]=new BatchHeaderFilterPolicyFactory;if(!s){A[2]=a.isTokenCredential(r)?attachCredential(a.bearerTokenAuthenticationPolicy(r,ha),r):r}A[i-1]=new BatchRequestAssemblePolicyFactory(this);return new Pipeline(A,{})}appendSubRequestToBody(r){this.body+=[this.subRequestPrefix,`${Ea.CONTENT_ID}: ${this.operationCount}`,"",`${r.method.toString()} ${getURLPathAndQuery(r.url)} ${wa}${Qa}`].join(Qa);for(const s of r.headers.headersArray()){this.body+=`${s.name}: ${s.value}${Qa}`}this.body+=Qa}preAddSubRequest(r){if(this.operationCount>=Ba){throw new RangeError(`Cannot exceed ${Ba} sub requests in a single batch`)}const s=getURLPath(r.url);if(!s||s===""){throw new RangeError(`Invalid url for sub request: '${r.url}'`)}}postAddSubRequest(r){this.subRequests.set(this.operationCount,r);this.operationCount++}getHttpRequestBody(){return`${this.body}${this.batchRequestEnding}${Qa}`}getMultipartContentType(){return this.multipartContentType}getSubRequests(){return this.subRequests}}class BatchRequestAssemblePolicy extends a.BaseRequestPolicy{constructor(r,s,i){super(s,i);this.dummyResponse={request:new a.WebResource,status:200,headers:new a.HttpHeaders};this.batchRequest=r}async sendRequest(r){await this.batchRequest.appendSubRequestToBody(r);return this.dummyResponse}}class BatchRequestAssemblePolicyFactory{constructor(r){this.batchRequest=r}create(r,s){return new BatchRequestAssemblePolicy(this.batchRequest,r,s)}}class BatchHeaderFilterPolicy extends a.BaseRequestPolicy{constructor(r,s){super(r,s)}async sendRequest(r){let s="";for(const i of r.headers.headersArray()){if(iEqual(i.name,Ea.X_MS_VERSION)){s=i.name}}if(s!==""){r.headers.remove(s)}return this._nextPolicy.sendRequest(r)}}class BatchHeaderFilterPolicyFactory{create(r,s){return new BatchHeaderFilterPolicy(r,s)}}class BlobBatchClient{constructor(r,s,i){let a;if(isPipelineLike(s)){a=s}else if(!s){a=newPipeline(new AnonymousCredential,i)}else{a=newPipeline(s,i)}const A=new StorageClientContext(r,a.toServiceClientOptions());const c=getURLPath(r);if(c&&c!=="/"){this.serviceOrContainerContext=new Container(A)}else{this.serviceOrContainerContext=new Service(A)}}createBatch(){return new BlobBatch}async deleteBlobs(r,s,i){const a=new BlobBatch;for(const A of r){if(typeof A==="string"){await a.deleteBlob(A,s,i)}else{await a.deleteBlob(A,s)}}return this.submitBatch(a)}async setBlobsAccessTier(r,s,i,a){const A=new BlobBatch;for(const c of r){if(typeof c==="string"){await A.setBlobAccessTier(c,s,i,a)}else{await A.setBlobAccessTier(c,s,i)}}return this.submitBatch(A)}async submitBatch(r,s={}){if(!r||r.getSubRequests().size===0){throw new RangeError("Batch request should contain one or more sub requests.")}const{span:i,updatedOptions:a}=Ua("BlobBatchClient-submitBatch",s);try{const i=r.getHttpRequestBody();const A=await this.serviceOrContainerContext.submitBatch(utf8ByteLength(i),r.getMultiPartContentType(),i,Object.assign(Object.assign({},s),convertTracingToRequestOptionsBase(a)));const c=new BatchResponseParser(A,r.getSubRequests());const l=await c.parseBatchResponse();const d={_response:A._response,contentType:A.contentType,errorCode:A.errorCode,requestId:A.requestId,clientRequestId:A.clientRequestId,version:A.version,subResponses:l.subResponses,subResponsesSucceededCount:l.subResponsesSucceededCount,subResponsesFailedCount:l.subResponsesFailedCount};return d}catch(r){i.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{i.end()}}}class ContainerClient extends StorageClient{constructor(r,s,i){let A;let c;i=i||{};if(isPipelineLike(s)){c=r;A=s}else if(a.isNode&&s instanceof StorageSharedKeyCredential||s instanceof AnonymousCredential||a.isTokenCredential(s)){c=r;A=newPipeline(s,i)}else if(!s&&typeof s!=="string"){c=r;A=newPipeline(new AnonymousCredential,i)}else if(s&&typeof s==="string"){const l=s;const d=extractConnectionStringParts(r);if(d.kind==="AccountConnString"){if(a.isNode){const r=new StorageSharedKeyCredential(d.accountName,d.accountKey);c=appendToURLPath(d.url,encodeURIComponent(l));if(!i.proxyOptions){i.proxyOptions=a.getDefaultProxySettings(d.proxyUri)}A=newPipeline(r,i)}else{throw new Error("Account connection string is only supported in Node.js environment")}}else if(d.kind==="SASConnString"){c=appendToURLPath(d.url,encodeURIComponent(l))+"?"+d.accountSas;A=newPipeline(new AnonymousCredential,i)}else{throw new Error("Connection string must be either an Account connection string or a SAS connection string")}}else{throw new Error("Expecting non-empty strings for containerName parameter")}super(c,A);this._containerName=this.getContainerNameFromUrl();this.containerContext=new Container(this.storageClientContext)}get containerName(){return this._containerName}async create(r={}){const{span:s,updatedOptions:i}=Ua("ContainerClient-create",r);try{return await this.containerContext.create(Object.assign(Object.assign({},r),convertTracingToRequestOptionsBase(i)))}catch(r){s.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{s.end()}}async createIfNotExists(r={}){var s,i;const{span:a,updatedOptions:A}=Ua("ContainerClient-createIfNotExists",r);try{const r=await this.create(A);return Object.assign(Object.assign({succeeded:true},r),{_response:r._response})}catch(r){if(((s=r.details)===null||s===void 0?void 0:s.errorCode)==="ContainerAlreadyExists"){a.setStatus({code:c.SpanStatusCode.ERROR,message:"Expected exception when creating a container only if it does not already exist."});return Object.assign(Object.assign({succeeded:false},(i=r.response)===null||i===void 0?void 0:i.parsedHeaders),{_response:r.response})}a.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{a.end()}}async exists(r={}){const{span:s,updatedOptions:i}=Ua("ContainerClient-exists",r);try{await this.getProperties({abortSignal:r.abortSignal,tracingOptions:i.tracingOptions});return true}catch(r){if(r.statusCode===404){s.setStatus({code:c.SpanStatusCode.ERROR,message:"Expected exception when checking container existence"});return false}s.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{s.end()}}getBlobClient(r){return new BlobClient(appendToURLPath(this.url,EscapePath(r)),this.pipeline)}getAppendBlobClient(r){return new AppendBlobClient(appendToURLPath(this.url,EscapePath(r)),this.pipeline)}getBlockBlobClient(r){return new BlockBlobClient(appendToURLPath(this.url,EscapePath(r)),this.pipeline)}getPageBlobClient(r){return new PageBlobClient(appendToURLPath(this.url,EscapePath(r)),this.pipeline)}async getProperties(r={}){if(!r.conditions){r.conditions={}}const{span:s,updatedOptions:i}=Ua("ContainerClient-getProperties",r);try{return await this.containerContext.getProperties(Object.assign(Object.assign({abortSignal:r.abortSignal},r.conditions),convertTracingToRequestOptionsBase(i)))}catch(r){s.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{s.end()}}async delete(r={}){if(!r.conditions){r.conditions={}}const{span:s,updatedOptions:i}=Ua("ContainerClient-delete",r);try{return await this.containerContext.delete(Object.assign({abortSignal:r.abortSignal,leaseAccessConditions:r.conditions,modifiedAccessConditions:r.conditions},convertTracingToRequestOptionsBase(i)))}catch(r){s.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{s.end()}}async deleteIfExists(r={}){var s,i;const{span:a,updatedOptions:A}=Ua("ContainerClient-deleteIfExists",r);try{const r=await this.delete(A);return Object.assign(Object.assign({succeeded:true},r),{_response:r._response})}catch(r){if(((s=r.details)===null||s===void 0?void 0:s.errorCode)==="ContainerNotFound"){a.setStatus({code:c.SpanStatusCode.ERROR,message:"Expected exception when deleting a container only if it exists."});return Object.assign(Object.assign({succeeded:false},(i=r.response)===null||i===void 0?void 0:i.parsedHeaders),{_response:r.response})}a.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{a.end()}}async setMetadata(r,s={}){if(!s.conditions){s.conditions={}}if(s.conditions.ifUnmodifiedSince){throw new RangeError("the IfUnmodifiedSince must have their default values because they are ignored by the blob service")}const{span:i,updatedOptions:a}=Ua("ContainerClient-setMetadata",s);try{return await this.containerContext.setMetadata(Object.assign({abortSignal:s.abortSignal,leaseAccessConditions:s.conditions,metadata:r,modifiedAccessConditions:s.conditions},convertTracingToRequestOptionsBase(a)))}catch(r){i.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{i.end()}}async getAccessPolicy(r={}){if(!r.conditions){r.conditions={}}const{span:s,updatedOptions:i}=Ua("ContainerClient-getAccessPolicy",r);try{const s=await this.containerContext.getAccessPolicy(Object.assign({abortSignal:r.abortSignal,leaseAccessConditions:r.conditions},convertTracingToRequestOptionsBase(i)));const a={_response:s._response,blobPublicAccess:s.blobPublicAccess,date:s.date,etag:s.etag,errorCode:s.errorCode,lastModified:s.lastModified,requestId:s.requestId,clientRequestId:s.clientRequestId,signedIdentifiers:[],version:s.version};for(const r of s){let s=undefined;if(r.accessPolicy){s={permissions:r.accessPolicy.permissions};if(r.accessPolicy.expiresOn){s.expiresOn=new Date(r.accessPolicy.expiresOn)}if(r.accessPolicy.startsOn){s.startsOn=new Date(r.accessPolicy.startsOn)}}a.signedIdentifiers.push({accessPolicy:s,id:r.id})}return a}catch(r){s.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{s.end()}}async setAccessPolicy(r,s,i={}){i.conditions=i.conditions||{};const{span:a,updatedOptions:A}=Ua("ContainerClient-setAccessPolicy",i);try{const a=[];for(const r of s||[]){a.push({accessPolicy:{expiresOn:r.accessPolicy.expiresOn?truncatedISO8061Date(r.accessPolicy.expiresOn):"",permissions:r.accessPolicy.permissions,startsOn:r.accessPolicy.startsOn?truncatedISO8061Date(r.accessPolicy.startsOn):""},id:r.id})}return await this.containerContext.setAccessPolicy(Object.assign({abortSignal:i.abortSignal,access:r,containerAcl:a,leaseAccessConditions:i.conditions,modifiedAccessConditions:i.conditions},convertTracingToRequestOptionsBase(A)))}catch(r){a.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{a.end()}}getBlobLeaseClient(r){return new BlobLeaseClient(this,r)}async uploadBlockBlob(r,s,i,a={}){const{span:A,updatedOptions:l}=Ua("ContainerClient-uploadBlockBlob",a);try{const a=this.getBlockBlobClient(r);const A=await a.upload(s,i,l);return{blockBlobClient:a,response:A}}catch(r){A.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{A.end()}}async deleteBlob(r,s={}){const{span:i,updatedOptions:a}=Ua("ContainerClient-deleteBlob",s);try{let i=this.getBlobClient(r);if(s.versionId){i=i.withVersion(s.versionId)}return await i.delete(a)}catch(r){i.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{i.end()}}async listBlobFlatSegment(r,s={}){const{span:i,updatedOptions:a}=Ua("ContainerClient-listBlobFlatSegment",s);try{const i=await this.containerContext.listBlobFlatSegment(Object.assign(Object.assign({marker:r},s),convertTracingToRequestOptionsBase(a)));const A=Object.assign(Object.assign({},i),{_response:Object.assign(Object.assign({},i._response),{parsedBody:ConvertInternalResponseOfListBlobFlat(i._response.parsedBody)}),segment:Object.assign(Object.assign({},i.segment),{blobItems:i.segment.blobItems.map((r=>{const s=Object.assign(Object.assign({},r),{name:BlobNameToString(r.name),tags:toTags(r.blobTags),objectReplicationSourceProperties:parseObjectReplicationRecord(r.objectReplicationMetadata)});return s}))})});return A}catch(r){i.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{i.end()}}async listBlobHierarchySegment(r,s,i={}){var a;const{span:A,updatedOptions:l}=Ua("ContainerClient-listBlobHierarchySegment",i);try{const A=await this.containerContext.listBlobHierarchySegment(r,Object.assign(Object.assign({marker:s},i),convertTracingToRequestOptionsBase(l)));const c=Object.assign(Object.assign({},A),{_response:Object.assign(Object.assign({},A._response),{parsedBody:ConvertInternalResponseOfListBlobHierarchy(A._response.parsedBody)}),segment:Object.assign(Object.assign({},A.segment),{blobItems:A.segment.blobItems.map((r=>{const s=Object.assign(Object.assign({},r),{name:BlobNameToString(r.name),tags:toTags(r.blobTags),objectReplicationSourceProperties:parseObjectReplicationRecord(r.objectReplicationMetadata)});return s})),blobPrefixes:(a=A.segment.blobPrefixes)===null||a===void 0?void 0:a.map((r=>{const s={name:BlobNameToString(r.name)};return s}))})});return c}catch(r){A.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{A.end()}}listSegments(r,s={}){return A.__asyncGenerator(this,arguments,(function*listSegments_1(){let i;if(!!r||r===undefined){do{i=yield A.__await(this.listBlobFlatSegment(r,s));r=i.continuationToken;yield yield A.__await(yield A.__await(i))}while(r)}}))}listItems(r={}){return A.__asyncGenerator(this,arguments,(function*listItems_1(){var s,i;let a;try{for(var c=A.__asyncValues(this.listSegments(a,r)),l;l=yield A.__await(c.next()),!l.done;){const r=l.value;yield A.__await(yield*A.__asyncDelegator(A.__asyncValues(r.segment.blobItems)))}}catch(r){s={error:r}}finally{try{if(l&&!l.done&&(i=c.return))yield A.__await(i.call(c))}finally{if(s)throw s.error}}}))}listBlobsFlat(r={}){const s=[];if(r.includeCopy){s.push("copy")}if(r.includeDeleted){s.push("deleted")}if(r.includeMetadata){s.push("metadata")}if(r.includeSnapshots){s.push("snapshots")}if(r.includeVersions){s.push("versions")}if(r.includeUncommitedBlobs){s.push("uncommittedblobs")}if(r.includeTags){s.push("tags")}if(r.includeDeletedWithVersions){s.push("deletedwithversions")}if(r.includeImmutabilityPolicy){s.push("immutabilitypolicy")}if(r.includeLegalHold){s.push("legalhold")}if(r.prefix===""){r.prefix=undefined}const i=Object.assign(Object.assign({},r),s.length>0?{include:s}:{});const a=this.listItems(i);return{next(){return a.next()},[Symbol.asyncIterator](){return this},byPage:(r={})=>this.listSegments(r.continuationToken,Object.assign({maxPageSize:r.maxPageSize},i))}}listHierarchySegments(r,s,i={}){return A.__asyncGenerator(this,arguments,(function*listHierarchySegments_1(){let a;if(!!s||s===undefined){do{a=yield A.__await(this.listBlobHierarchySegment(r,s,i));s=a.continuationToken;yield yield A.__await(yield A.__await(a))}while(s)}}))}listItemsByHierarchy(r,s={}){return A.__asyncGenerator(this,arguments,(function*listItemsByHierarchy_1(){var i,a;let c;try{for(var l=A.__asyncValues(this.listHierarchySegments(r,c,s)),d;d=yield A.__await(l.next()),!d.done;){const r=d.value;const s=r.segment;if(s.blobPrefixes){for(const r of s.blobPrefixes){yield yield A.__await(Object.assign({kind:"prefix"},r))}}for(const r of s.blobItems){yield yield A.__await(Object.assign({kind:"blob"},r))}}}catch(r){i={error:r}}finally{try{if(d&&!d.done&&(a=l.return))yield A.__await(a.call(l))}finally{if(i)throw i.error}}}))}listBlobsByHierarchy(r,s={}){if(r===""){throw new RangeError("delimiter should contain one or more characters")}const i=[];if(s.includeCopy){i.push("copy")}if(s.includeDeleted){i.push("deleted")}if(s.includeMetadata){i.push("metadata")}if(s.includeSnapshots){i.push("snapshots")}if(s.includeVersions){i.push("versions")}if(s.includeUncommitedBlobs){i.push("uncommittedblobs")}if(s.includeTags){i.push("tags")}if(s.includeDeletedWithVersions){i.push("deletedwithversions")}if(s.includeImmutabilityPolicy){i.push("immutabilitypolicy")}if(s.includeLegalHold){i.push("legalhold")}if(s.prefix===""){s.prefix=undefined}const a=Object.assign(Object.assign({},s),i.length>0?{include:i}:{});const A=this.listItemsByHierarchy(r,a);return{async next(){return A.next()},[Symbol.asyncIterator](){return this},byPage:(s={})=>this.listHierarchySegments(r,s.continuationToken,Object.assign({maxPageSize:s.maxPageSize},a))}}async findBlobsByTagsSegment(r,s,i={}){const{span:a,updatedOptions:A}=Ua("ContainerClient-findBlobsByTagsSegment",i);try{const a=await this.containerContext.filterBlobs(Object.assign({abortSignal:i.abortSignal,where:r,marker:s,maxPageSize:i.maxPageSize},convertTracingToRequestOptionsBase(A)));const c=Object.assign(Object.assign({},a),{_response:a._response,blobs:a.blobs.map((r=>{var s;let i="";if(((s=r.tags)===null||s===void 0?void 0:s.blobTagSet.length)===1){i=r.tags.blobTagSet[0].value}return Object.assign(Object.assign({},r),{tags:toTags(r.tags),tagValue:i})}))});return c}catch(r){a.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{a.end()}}findBlobsByTagsSegments(r,s,i={}){return A.__asyncGenerator(this,arguments,(function*findBlobsByTagsSegments_1(){let a;if(!!s||s===undefined){do{a=yield A.__await(this.findBlobsByTagsSegment(r,s,i));a.blobs=a.blobs||[];s=a.continuationToken;yield yield A.__await(a)}while(s)}}))}findBlobsByTagsItems(r,s={}){return A.__asyncGenerator(this,arguments,(function*findBlobsByTagsItems_1(){var i,a;let c;try{for(var l=A.__asyncValues(this.findBlobsByTagsSegments(r,c,s)),d;d=yield A.__await(l.next()),!d.done;){const r=d.value;yield A.__await(yield*A.__asyncDelegator(A.__asyncValues(r.blobs)))}}catch(r){i={error:r}}finally{try{if(d&&!d.done&&(a=l.return))yield A.__await(a.call(l))}finally{if(i)throw i.error}}}))}findBlobsByTags(r,s={}){const i=Object.assign({},s);const a=this.findBlobsByTagsItems(r,i);return{next(){return a.next()},[Symbol.asyncIterator](){return this},byPage:(s={})=>this.findBlobsByTagsSegments(r,s.continuationToken,Object.assign({maxPageSize:s.maxPageSize},i))}}getContainerNameFromUrl(){let r;try{const s=a.URLBuilder.parse(this.url);if(s.getHost().split(".")[1]==="blob"){r=s.getPath().split("/")[1]}else if(isIpEndpointStyle(s)){r=s.getPath().split("/")[2]}else{r=s.getPath().split("/")[1]}r=decodeURIComponent(r);if(!r){throw new Error("Provided containerName is invalid.")}return r}catch(r){throw new Error("Unable to extract containerName with provided information.")}}generateSasUrl(r){return new Promise((s=>{if(!(this.credential instanceof StorageSharedKeyCredential)){throw new RangeError("Can only generate the SAS when the client is initialized with a shared key credential")}const i=generateBlobSASQueryParameters(Object.assign({containerName:this._containerName},r),this.credential).toString();s(appendToURLQuery(this.url,i))}))}getBlobBatchClient(){return new BlobBatchClient(this.url,this.pipeline)}}class AccountSASPermissions{constructor(){this.read=false;this.write=false;this.delete=false;this.deleteVersion=false;this.list=false;this.add=false;this.create=false;this.update=false;this.process=false;this.tag=false;this.filter=false;this.setImmutabilityPolicy=false;this.permanentDelete=false}static parse(r){const s=new AccountSASPermissions;for(const i of r){switch(i){case"r":s.read=true;break;case"w":s.write=true;break;case"d":s.delete=true;break;case"x":s.deleteVersion=true;break;case"l":s.list=true;break;case"a":s.add=true;break;case"c":s.create=true;break;case"u":s.update=true;break;case"p":s.process=true;break;case"t":s.tag=true;break;case"f":s.filter=true;break;case"i":s.setImmutabilityPolicy=true;break;case"y":s.permanentDelete=true;break;default:throw new RangeError(`Invalid permission character: ${i}`)}}return s}static from(r){const s=new AccountSASPermissions;if(r.read){s.read=true}if(r.write){s.write=true}if(r.delete){s.delete=true}if(r.deleteVersion){s.deleteVersion=true}if(r.filter){s.filter=true}if(r.tag){s.tag=true}if(r.list){s.list=true}if(r.add){s.add=true}if(r.create){s.create=true}if(r.update){s.update=true}if(r.process){s.process=true}if(r.setImmutabilityPolicy){s.setImmutabilityPolicy=true}if(r.permanentDelete){s.permanentDelete=true}return s}toString(){const r=[];if(this.read){r.push("r")}if(this.write){r.push("w")}if(this.delete){r.push("d")}if(this.deleteVersion){r.push("x")}if(this.filter){r.push("f")}if(this.tag){r.push("t")}if(this.list){r.push("l")}if(this.add){r.push("a")}if(this.create){r.push("c")}if(this.update){r.push("u")}if(this.process){r.push("p")}if(this.setImmutabilityPolicy){r.push("i")}if(this.permanentDelete){r.push("y")}return r.join("")}}class AccountSASResourceTypes{constructor(){this.service=false;this.container=false;this.object=false}static parse(r){const s=new AccountSASResourceTypes;for(const i of r){switch(i){case"s":s.service=true;break;case"c":s.container=true;break;case"o":s.object=true;break;default:throw new RangeError(`Invalid resource type: ${i}`)}}return s}toString(){const r=[];if(this.service){r.push("s")}if(this.container){r.push("c")}if(this.object){r.push("o")}return r.join("")}}class AccountSASServices{constructor(){this.blob=false;this.file=false;this.queue=false;this.table=false}static parse(r){const s=new AccountSASServices;for(const i of r){switch(i){case"b":s.blob=true;break;case"f":s.file=true;break;case"q":s.queue=true;break;case"t":s.table=true;break;default:throw new RangeError(`Invalid service character: ${i}`)}}return s}toString(){const r=[];if(this.blob){r.push("b")}if(this.table){r.push("t")}if(this.queue){r.push("q")}if(this.file){r.push("f")}return r.join("")}}function generateAccountSASQueryParameters(r,s){const i=r.version?r.version:aa;if(r.permissions&&r.permissions.setImmutabilityPolicy&&i<"2020-08-04"){throw RangeError("'version' must be >= '2020-08-04' when provided 'i' permission.")}if(r.permissions&&r.permissions.deleteVersion&&i<"2019-10-10"){throw RangeError("'version' must be >= '2019-10-10' when provided 'x' permission.")}if(r.permissions&&r.permissions.permanentDelete&&i<"2019-10-10"){throw RangeError("'version' must be >= '2019-10-10' when provided 'y' permission.")}if(r.permissions&&r.permissions.tag&&i<"2019-12-12"){throw RangeError("'version' must be >= '2019-12-12' when provided 't' permission.")}if(r.permissions&&r.permissions.filter&&i<"2019-12-12"){throw RangeError("'version' must be >= '2019-12-12' when provided 'f' permission.")}if(r.encryptionScope&&i<"2020-12-06"){throw RangeError("'version' must be >= '2020-12-06' when provided 'encryptionScope' in SAS.")}const a=AccountSASPermissions.parse(r.permissions.toString());const A=AccountSASServices.parse(r.services).toString();const c=AccountSASResourceTypes.parse(r.resourceTypes).toString();let l;if(i>="2020-12-06"){l=[s.accountName,a,A,c,r.startsOn?truncatedISO8061Date(r.startsOn,false):"",truncatedISO8061Date(r.expiresOn,false),r.ipRange?ipRangeToString(r.ipRange):"",r.protocol?r.protocol:"",i,r.encryptionScope?r.encryptionScope:"",""].join("\n")}else{l=[s.accountName,a,A,c,r.startsOn?truncatedISO8061Date(r.startsOn,false):"",truncatedISO8061Date(r.expiresOn,false),r.ipRange?ipRangeToString(r.ipRange):"",r.protocol?r.protocol:"",i,""].join("\n")}const d=s.computeHMACSHA256(l);return new SASQueryParameters(i,d,a.toString(),A,c,r.protocol,r.startsOn,r.expiresOn,r.ipRange,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,r.encryptionScope)}class BlobServiceClient extends StorageClient{constructor(r,s,i){let A;if(isPipelineLike(s)){A=s}else if(a.isNode&&s instanceof StorageSharedKeyCredential||s instanceof AnonymousCredential||a.isTokenCredential(s)){A=newPipeline(s,i)}else{A=newPipeline(new AnonymousCredential,i)}super(r,A);this.serviceContext=new Service(this.storageClientContext)}static fromConnectionString(r,s){s=s||{};const i=extractConnectionStringParts(r);if(i.kind==="AccountConnString"){if(a.isNode){const r=new StorageSharedKeyCredential(i.accountName,i.accountKey);if(!s.proxyOptions){s.proxyOptions=a.getDefaultProxySettings(i.proxyUri)}const A=newPipeline(r,s);return new BlobServiceClient(i.url,A)}else{throw new Error("Account connection string is only supported in Node.js environment")}}else if(i.kind==="SASConnString"){const r=newPipeline(new AnonymousCredential,s);return new BlobServiceClient(i.url+"?"+i.accountSas,r)}else{throw new Error("Connection string must be either an Account connection string or a SAS connection string")}}getContainerClient(r){return new ContainerClient(appendToURLPath(this.url,encodeURIComponent(r)),this.pipeline)}async createContainer(r,s={}){const{span:i,updatedOptions:a}=Ua("BlobServiceClient-createContainer",s);try{const s=this.getContainerClient(r);const i=await s.create(a);return{containerClient:s,containerCreateResponse:i}}catch(r){i.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{i.end()}}async deleteContainer(r,s={}){const{span:i,updatedOptions:a}=Ua("BlobServiceClient-deleteContainer",s);try{const s=this.getContainerClient(r);return await s.delete(a)}catch(r){i.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{i.end()}}async undeleteContainer(r,s,i={}){const{span:a,updatedOptions:A}=Ua("BlobServiceClient-undeleteContainer",i);try{const a=this.getContainerClient(i.destinationContainerName||r);const c=new Container(a["storageClientContext"]);const l=await c.restore(Object.assign({deletedContainerName:r,deletedContainerVersion:s},A));return{containerClient:a,containerUndeleteResponse:l}}catch(r){a.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{a.end()}}async renameContainer(r,s,i={}){var a;const{span:A,updatedOptions:l}=Ua("BlobServiceClient-renameContainer",i);try{const A=this.getContainerClient(s);const c=new Container(A["storageClientContext"]);const d=await c.rename(r,Object.assign(Object.assign({},l),{sourceLeaseId:(a=i.sourceCondition)===null||a===void 0?void 0:a.leaseId}));return{containerClient:A,containerRenameResponse:d}}catch(r){A.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{A.end()}}async getProperties(r={}){const{span:s,updatedOptions:i}=Ua("BlobServiceClient-getProperties",r);try{return await this.serviceContext.getProperties(Object.assign({abortSignal:r.abortSignal},convertTracingToRequestOptionsBase(i)))}catch(r){s.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{s.end()}}async setProperties(r,s={}){const{span:i,updatedOptions:a}=Ua("BlobServiceClient-setProperties",s);try{return await this.serviceContext.setProperties(r,Object.assign({abortSignal:s.abortSignal},convertTracingToRequestOptionsBase(a)))}catch(r){i.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{i.end()}}async getStatistics(r={}){const{span:s,updatedOptions:i}=Ua("BlobServiceClient-getStatistics",r);try{return await this.serviceContext.getStatistics(Object.assign({abortSignal:r.abortSignal},convertTracingToRequestOptionsBase(i)))}catch(r){s.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{s.end()}}async getAccountInfo(r={}){const{span:s,updatedOptions:i}=Ua("BlobServiceClient-getAccountInfo",r);try{return await this.serviceContext.getAccountInfo(Object.assign({abortSignal:r.abortSignal},convertTracingToRequestOptionsBase(i)))}catch(r){s.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{s.end()}}async listContainersSegment(r,s={}){const{span:i,updatedOptions:a}=Ua("BlobServiceClient-listContainersSegment",s);try{return await this.serviceContext.listContainersSegment(Object.assign(Object.assign(Object.assign({abortSignal:s.abortSignal,marker:r},s),{include:typeof s.include==="string"?[s.include]:s.include}),convertTracingToRequestOptionsBase(a)))}catch(r){i.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{i.end()}}async findBlobsByTagsSegment(r,s,i={}){const{span:a,updatedOptions:A}=Ua("BlobServiceClient-findBlobsByTagsSegment",i);try{const a=await this.serviceContext.filterBlobs(Object.assign({abortSignal:i.abortSignal,where:r,marker:s,maxPageSize:i.maxPageSize},convertTracingToRequestOptionsBase(A)));const c=Object.assign(Object.assign({},a),{_response:a._response,blobs:a.blobs.map((r=>{var s;let i="";if(((s=r.tags)===null||s===void 0?void 0:s.blobTagSet.length)===1){i=r.tags.blobTagSet[0].value}return Object.assign(Object.assign({},r),{tags:toTags(r.tags),tagValue:i})}))});return c}catch(r){a.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{a.end()}}findBlobsByTagsSegments(r,s,i={}){return A.__asyncGenerator(this,arguments,(function*findBlobsByTagsSegments_1(){let a;if(!!s||s===undefined){do{a=yield A.__await(this.findBlobsByTagsSegment(r,s,i));a.blobs=a.blobs||[];s=a.continuationToken;yield yield A.__await(a)}while(s)}}))}findBlobsByTagsItems(r,s={}){return A.__asyncGenerator(this,arguments,(function*findBlobsByTagsItems_1(){var i,a;let c;try{for(var l=A.__asyncValues(this.findBlobsByTagsSegments(r,c,s)),d;d=yield A.__await(l.next()),!d.done;){const r=d.value;yield A.__await(yield*A.__asyncDelegator(A.__asyncValues(r.blobs)))}}catch(r){i={error:r}}finally{try{if(d&&!d.done&&(a=l.return))yield A.__await(a.call(l))}finally{if(i)throw i.error}}}))}findBlobsByTags(r,s={}){const i=Object.assign({},s);const a=this.findBlobsByTagsItems(r,i);return{next(){return a.next()},[Symbol.asyncIterator](){return this},byPage:(s={})=>this.findBlobsByTagsSegments(r,s.continuationToken,Object.assign({maxPageSize:s.maxPageSize},i))}}listSegments(r,s={}){return A.__asyncGenerator(this,arguments,(function*listSegments_1(){let i;if(!!r||r===undefined){do{i=yield A.__await(this.listContainersSegment(r,s));i.containerItems=i.containerItems||[];r=i.continuationToken;yield yield A.__await(yield A.__await(i))}while(r)}}))}listItems(r={}){return A.__asyncGenerator(this,arguments,(function*listItems_1(){var s,i;let a;try{for(var c=A.__asyncValues(this.listSegments(a,r)),l;l=yield A.__await(c.next()),!l.done;){const r=l.value;yield A.__await(yield*A.__asyncDelegator(A.__asyncValues(r.containerItems)))}}catch(r){s={error:r}}finally{try{if(l&&!l.done&&(i=c.return))yield A.__await(i.call(c))}finally{if(s)throw s.error}}}))}listContainers(r={}){if(r.prefix===""){r.prefix=undefined}const s=[];if(r.includeDeleted){s.push("deleted")}if(r.includeMetadata){s.push("metadata")}if(r.includeSystem){s.push("system")}const i=Object.assign(Object.assign({},r),s.length>0?{include:s}:{});const a=this.listItems(i);return{next(){return a.next()},[Symbol.asyncIterator](){return this},byPage:(r={})=>this.listSegments(r.continuationToken,Object.assign({maxPageSize:r.maxPageSize},i))}}async getUserDelegationKey(r,s,i={}){const{span:a,updatedOptions:A}=Ua("BlobServiceClient-getUserDelegationKey",i);try{const a=await this.serviceContext.getUserDelegationKey({startsOn:truncatedISO8061Date(r,false),expiresOn:truncatedISO8061Date(s,false)},Object.assign({abortSignal:i.abortSignal},convertTracingToRequestOptionsBase(A)));const c={signedObjectId:a.signedObjectId,signedTenantId:a.signedTenantId,signedStartsOn:new Date(a.signedStartsOn),signedExpiresOn:new Date(a.signedExpiresOn),signedService:a.signedService,signedVersion:a.signedVersion,value:a.value};const l=Object.assign({_response:a._response,requestId:a.requestId,clientRequestId:a.clientRequestId,version:a.version,date:a.date,errorCode:a.errorCode},c);return l}catch(r){a.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{a.end()}}getBlobBatchClient(){return new BlobBatchClient(this.url,this.pipeline)}generateAccountSasUrl(r,s=AccountSASPermissions.parse("r"),i="sco",a={}){if(!(this.credential instanceof StorageSharedKeyCredential)){throw RangeError("Can only generate the account SAS when the client is initialized with a shared key credential")}if(r===undefined){const s=new Date;r=new Date(s.getTime()+3600*1e3)}const A=generateAccountSASQueryParameters(Object.assign({permissions:s,expiresOn:r,resourceTypes:i,services:AccountSASServices.parse("b").toString()},a),this.credential).toString();return appendToURLQuery(this.url,A)}}s.KnownEncryptionAlgorithmType=void 0;(function(r){r["AES256"]="AES256"})(s.KnownEncryptionAlgorithmType||(s.KnownEncryptionAlgorithmType={}));Object.defineProperty(s,"BaseRequestPolicy",{enumerable:true,get:function(){return a.BaseRequestPolicy}});Object.defineProperty(s,"HttpHeaders",{enumerable:true,get:function(){return a.HttpHeaders}});Object.defineProperty(s,"RequestPolicyOptions",{enumerable:true,get:function(){return a.RequestPolicyOptions}});Object.defineProperty(s,"RestError",{enumerable:true,get:function(){return a.RestError}});Object.defineProperty(s,"WebResource",{enumerable:true,get:function(){return a.WebResource}});Object.defineProperty(s,"deserializationPolicy",{enumerable:true,get:function(){return a.deserializationPolicy}});s.AccountSASPermissions=AccountSASPermissions;s.AccountSASResourceTypes=AccountSASResourceTypes;s.AccountSASServices=AccountSASServices;s.AnonymousCredential=AnonymousCredential;s.AnonymousCredentialPolicy=AnonymousCredentialPolicy;s.AppendBlobClient=AppendBlobClient;s.BlobBatch=BlobBatch;s.BlobBatchClient=BlobBatchClient;s.BlobClient=BlobClient;s.BlobLeaseClient=BlobLeaseClient;s.BlobSASPermissions=BlobSASPermissions;s.BlobServiceClient=BlobServiceClient;s.BlockBlobClient=BlockBlobClient;s.ContainerClient=ContainerClient;s.ContainerSASPermissions=ContainerSASPermissions;s.Credential=Credential;s.CredentialPolicy=CredentialPolicy;s.PageBlobClient=PageBlobClient;s.Pipeline=Pipeline;s.SASQueryParameters=SASQueryParameters;s.StorageBrowserPolicy=StorageBrowserPolicy;s.StorageBrowserPolicyFactory=StorageBrowserPolicyFactory;s.StorageOAuthScopes=ha;s.StorageRetryPolicy=StorageRetryPolicy;s.StorageRetryPolicyFactory=StorageRetryPolicyFactory;s.StorageSharedKeyCredential=StorageSharedKeyCredential;s.StorageSharedKeyCredentialPolicy=StorageSharedKeyCredentialPolicy;s.generateAccountSASQueryParameters=generateAccountSASQueryParameters;s.generateBlobSASQueryParameters=generateBlobSASQueryParameters;s.isPipelineLike=isPipelineLike;s.logger=ia;s.newPipeline=newPipeline},29074:function(r,s){"use strict";var i=this&&this.__awaiter||function(r,s,i,a){function adopt(r){return r instanceof i?r:new i((function(s){s(r)}))}return new(i||(i=Promise))((function(i,A){function fulfilled(r){try{step(a.next(r))}catch(r){A(r)}}function rejected(r){try{step(a["throw"](r))}catch(r){A(r)}}function step(r){r.done?i(r.value):adopt(r.value).then(fulfilled,rejected)}step((a=a.apply(r,s||[])).next())}))};Object.defineProperty(s,"__esModule",{value:true});s.ClientStreamingCall=void 0;class ClientStreamingCall{constructor(r,s,i,a,A,c,l){this.method=r;this.requestHeaders=s;this.requests=i;this.headers=a;this.response=A;this.status=c;this.trailers=l}then(r,s){return this.promiseFinished().then((s=>r?Promise.resolve(r(s)):s),(r=>s?Promise.resolve(s(r)):Promise.reject(r)))}promiseFinished(){return i(this,void 0,void 0,(function*(){let[r,s,i,a]=yield Promise.all([this.headers,this.response,this.status,this.trailers]);return{method:this.method,requestHeaders:this.requestHeaders,headers:r,response:s,status:i,trailers:a}}))}}s.ClientStreamingCall=ClientStreamingCall},35909:(r,s)=>{"use strict";Object.defineProperty(s,"__esModule",{value:true});s.Deferred=s.DeferredState=void 0;var i;(function(r){r[r["PENDING"]=0]="PENDING";r[r["REJECTED"]=1]="REJECTED";r[r["RESOLVED"]=2]="RESOLVED"})(i=s.DeferredState||(s.DeferredState={}));class Deferred{constructor(r=true){this._state=i.PENDING;this._promise=new Promise(((r,s)=>{this._resolve=r;this._reject=s}));if(r){this._promise.catch((r=>{}))}}get state(){return this._state}get promise(){return this._promise}resolve(r){if(this.state!==i.PENDING)throw new Error(`cannot resolve ${i[this.state].toLowerCase()}`);this._resolve(r);this._state=i.RESOLVED}reject(r){if(this.state!==i.PENDING)throw new Error(`cannot reject ${i[this.state].toLowerCase()}`);this._reject(r);this._state=i.REJECTED}resolvePending(r){if(this._state===i.PENDING)this.resolve(r)}rejectPending(r){if(this._state===i.PENDING)this.reject(r)}}s.Deferred=Deferred},37900:function(r,s){"use strict";var i=this&&this.__awaiter||function(r,s,i,a){function adopt(r){return r instanceof i?r:new i((function(s){s(r)}))}return new(i||(i=Promise))((function(i,A){function fulfilled(r){try{step(a.next(r))}catch(r){A(r)}}function rejected(r){try{step(a["throw"](r))}catch(r){A(r)}}function step(r){r.done?i(r.value):adopt(r.value).then(fulfilled,rejected)}step((a=a.apply(r,s||[])).next())}))};Object.defineProperty(s,"__esModule",{value:true});s.DuplexStreamingCall=void 0;class DuplexStreamingCall{constructor(r,s,i,a,A,c,l){this.method=r;this.requestHeaders=s;this.requests=i;this.headers=a;this.responses=A;this.status=c;this.trailers=l}then(r,s){return this.promiseFinished().then((s=>r?Promise.resolve(r(s)):s),(r=>s?Promise.resolve(s(r)):Promise.reject(r)))}promiseFinished(){return i(this,void 0,void 0,(function*(){let[r,s,i]=yield Promise.all([this.headers,this.status,this.trailers]);return{method:this.method,requestHeaders:this.requestHeaders,headers:r,status:s,trailers:i}}))}}s.DuplexStreamingCall=DuplexStreamingCall},14400:(r,s,i)=>{"use strict";Object.defineProperty(s,"__esModule",{value:true});var a=i(93889);Object.defineProperty(s,"ServiceType",{enumerable:true,get:function(){return a.ServiceType}});var A=i(31323);Object.defineProperty(s,"readMethodOptions",{enumerable:true,get:function(){return A.readMethodOptions}});Object.defineProperty(s,"readMethodOption",{enumerable:true,get:function(){return A.readMethodOption}});Object.defineProperty(s,"readServiceOption",{enumerable:true,get:function(){return A.readServiceOption}});var c=i(67502);Object.defineProperty(s,"RpcError",{enumerable:true,get:function(){return c.RpcError}});var l=i(39903);Object.defineProperty(s,"mergeRpcOptions",{enumerable:true,get:function(){return l.mergeRpcOptions}});var d=i(31545);Object.defineProperty(s,"RpcOutputStreamController",{enumerable:true,get:function(){return d.RpcOutputStreamController}});var u=i(17961);Object.defineProperty(s,"TestTransport",{enumerable:true,get:function(){return u.TestTransport}});var p=i(35909);Object.defineProperty(s,"Deferred",{enumerable:true,get:function(){return p.Deferred}});Object.defineProperty(s,"DeferredState",{enumerable:true,get:function(){return p.DeferredState}});var g=i(37900);Object.defineProperty(s,"DuplexStreamingCall",{enumerable:true,get:function(){return g.DuplexStreamingCall}});var h=i(29074);Object.defineProperty(s,"ClientStreamingCall",{enumerable:true,get:function(){return h.ClientStreamingCall}});var C=i(71314);Object.defineProperty(s,"ServerStreamingCall",{enumerable:true,get:function(){return C.ServerStreamingCall}});var y=i(5321);Object.defineProperty(s,"UnaryCall",{enumerable:true,get:function(){return y.UnaryCall}});var I=i(28466);Object.defineProperty(s,"stackIntercept",{enumerable:true,get:function(){return I.stackIntercept}});Object.defineProperty(s,"stackDuplexStreamingInterceptors",{enumerable:true,get:function(){return I.stackDuplexStreamingInterceptors}});Object.defineProperty(s,"stackClientStreamingInterceptors",{enumerable:true,get:function(){return I.stackClientStreamingInterceptors}});Object.defineProperty(s,"stackServerStreamingInterceptors",{enumerable:true,get:function(){return I.stackServerStreamingInterceptors}});Object.defineProperty(s,"stackUnaryInterceptors",{enumerable:true,get:function(){return I.stackUnaryInterceptors}});var B=i(11008);Object.defineProperty(s,"ServerCallContextController",{enumerable:true,get:function(){return B.ServerCallContextController}})},31323:(r,s,i)=>{"use strict";Object.defineProperty(s,"__esModule",{value:true});s.readServiceOption=s.readMethodOption=s.readMethodOptions=s.normalizeMethodInfo=void 0;const a=i(33207);function normalizeMethodInfo(r,s){var i,A,c;let l=r;l.service=s;l.localName=(i=l.localName)!==null&&i!==void 0?i:a.lowerCamelCase(l.name);l.serverStreaming=!!l.serverStreaming;l.clientStreaming=!!l.clientStreaming;l.options=(A=l.options)!==null&&A!==void 0?A:{};l.idempotency=(c=l.idempotency)!==null&&c!==void 0?c:undefined;return l}s.normalizeMethodInfo=normalizeMethodInfo;function readMethodOptions(r,s,i,a){var A;const c=(A=r.methods.find(((r,i)=>r.localName===s||i===s)))===null||A===void 0?void 0:A.options;return c&&c[i]?a.fromJson(c[i]):undefined}s.readMethodOptions=readMethodOptions;function readMethodOption(r,s,i,a){var A;const c=(A=r.methods.find(((r,i)=>r.localName===s||i===s)))===null||A===void 0?void 0:A.options;if(!c){return undefined}const l=c[i];if(l===undefined){return l}return a?a.fromJson(l):l}s.readMethodOption=readMethodOption;function readServiceOption(r,s,i){const a=r.options;if(!a){return undefined}const A=a[s];if(A===undefined){return A}return i?i.fromJson(A):A}s.readServiceOption=readServiceOption},67502:(r,s)=>{"use strict";Object.defineProperty(s,"__esModule",{value:true});s.RpcError=void 0;class RpcError extends Error{constructor(r,s="UNKNOWN",i){super(r);this.name="RpcError";Object.setPrototypeOf(this,new.target.prototype);this.code=s;this.meta=i!==null&&i!==void 0?i:{}}toString(){const r=[this.name+": "+this.message];if(this.code){r.push("");r.push("Code: "+this.code)}if(this.serviceName&&this.methodName){r.push("Method: "+this.serviceName+"/"+this.methodName)}let s=Object.entries(this.meta);if(s.length){r.push("");r.push("Meta:");for(let[i,a]of s){r.push(` ${i}: ${a}`)}}return r.join("\n")}}s.RpcError=RpcError},28466:(r,s,i)=>{"use strict";Object.defineProperty(s,"__esModule",{value:true});s.stackDuplexStreamingInterceptors=s.stackClientStreamingInterceptors=s.stackServerStreamingInterceptors=s.stackUnaryInterceptors=s.stackIntercept=void 0;const a=i(33207);function stackIntercept(r,s,i,A,c){var l,d,u,p;if(r=="unary"){let tail=(r,i,a)=>s.unary(r,i,a);for(const r of((l=A.interceptors)!==null&&l!==void 0?l:[]).filter((r=>r.interceptUnary)).reverse()){const s=tail;tail=(i,a,A)=>r.interceptUnary(s,i,a,A)}return tail(i,c,A)}if(r=="serverStreaming"){let tail=(r,i,a)=>s.serverStreaming(r,i,a);for(const r of((d=A.interceptors)!==null&&d!==void 0?d:[]).filter((r=>r.interceptServerStreaming)).reverse()){const s=tail;tail=(i,a,A)=>r.interceptServerStreaming(s,i,a,A)}return tail(i,c,A)}if(r=="clientStreaming"){let tail=(r,i)=>s.clientStreaming(r,i);for(const r of((u=A.interceptors)!==null&&u!==void 0?u:[]).filter((r=>r.interceptClientStreaming)).reverse()){const s=tail;tail=(i,a)=>r.interceptClientStreaming(s,i,a)}return tail(i,A)}if(r=="duplex"){let tail=(r,i)=>s.duplex(r,i);for(const r of((p=A.interceptors)!==null&&p!==void 0?p:[]).filter((r=>r.interceptDuplex)).reverse()){const s=tail;tail=(i,a)=>r.interceptDuplex(s,i,a)}return tail(i,A)}a.assertNever(r)}s.stackIntercept=stackIntercept;function stackUnaryInterceptors(r,s,i,a){return stackIntercept("unary",r,s,a,i)}s.stackUnaryInterceptors=stackUnaryInterceptors;function stackServerStreamingInterceptors(r,s,i,a){return stackIntercept("serverStreaming",r,s,a,i)}s.stackServerStreamingInterceptors=stackServerStreamingInterceptors;function stackClientStreamingInterceptors(r,s,i){return stackIntercept("clientStreaming",r,s,i)}s.stackClientStreamingInterceptors=stackClientStreamingInterceptors;function stackDuplexStreamingInterceptors(r,s,i){return stackIntercept("duplex",r,s,i)}s.stackDuplexStreamingInterceptors=stackDuplexStreamingInterceptors},39903:(r,s,i)=>{"use strict";Object.defineProperty(s,"__esModule",{value:true});s.mergeRpcOptions=void 0;const a=i(33207);function mergeRpcOptions(r,s){if(!s)return r;let i={};copy(r,i);copy(s,i);for(let A of Object.keys(s)){let c=s[A];switch(A){case"jsonOptions":i.jsonOptions=a.mergeJsonOptions(r.jsonOptions,i.jsonOptions);break;case"binaryOptions":i.binaryOptions=a.mergeBinaryOptions(r.binaryOptions,i.binaryOptions);break;case"meta":i.meta={};copy(r.meta,i.meta);copy(s.meta,i.meta);break;case"interceptors":i.interceptors=r.interceptors?r.interceptors.concat(c):c.concat();break}}return i}s.mergeRpcOptions=mergeRpcOptions;function copy(r,s){if(!r)return;let i=s;for(let[s,a]of Object.entries(r)){if(a instanceof Date)i[s]=new Date(a.getTime());else if(Array.isArray(a))i[s]=a.concat();else i[s]=a}}},31545:(r,s,i)=>{"use strict";Object.defineProperty(s,"__esModule",{value:true});s.RpcOutputStreamController=void 0;const a=i(35909);const A=i(33207);class RpcOutputStreamController{constructor(){this._lis={nxt:[],msg:[],err:[],cmp:[]};this._closed=false}onNext(r){return this.addLis(r,this._lis.nxt)}onMessage(r){return this.addLis(r,this._lis.msg)}onError(r){return this.addLis(r,this._lis.err)}onComplete(r){return this.addLis(r,this._lis.cmp)}addLis(r,s){s.push(r);return()=>{let i=s.indexOf(r);if(i>=0)s.splice(i,1)}}clearLis(){for(let r of Object.values(this._lis))r.splice(0,r.length)}get closed(){return this._closed!==false}notifyNext(r,s,i){A.assert((r?1:0)+(s?1:0)+(i?1:0)<=1,"only one emission at a time");if(r)this.notifyMessage(r);if(s)this.notifyError(s);if(i)this.notifyComplete()}notifyMessage(r){A.assert(!this.closed,"stream is closed");this.pushIt({value:r,done:false});this._lis.msg.forEach((s=>s(r)));this._lis.nxt.forEach((s=>s(r,undefined,false)))}notifyError(r){A.assert(!this.closed,"stream is closed");this._closed=r;this.pushIt(r);this._lis.err.forEach((s=>s(r)));this._lis.nxt.forEach((s=>s(undefined,r,false)));this.clearLis()}notifyComplete(){A.assert(!this.closed,"stream is closed");this._closed=true;this.pushIt({value:null,done:true});this._lis.cmp.forEach((r=>r()));this._lis.nxt.forEach((r=>r(undefined,undefined,true)));this.clearLis()}[Symbol.asyncIterator](){if(!this._itState){this._itState={q:[]}}if(this._closed===true)this.pushIt({value:null,done:true});else if(this._closed!==false)this.pushIt(this._closed);return{next:()=>{let r=this._itState;A.assert(r,"bad state");A.assert(!r.p,"iterator contract broken");let s=r.q.shift();if(s)return"value"in s?Promise.resolve(s):Promise.reject(s);r.p=new a.Deferred;return r.p.promise}}}pushIt(r){let s=this._itState;if(!s)return;if(s.p){const i=s.p;A.assert(i.state==a.DeferredState.PENDING,"iterator contract broken");"value"in r?i.resolve(r):i.reject(r);delete s.p}else{s.q.push(r)}}}s.RpcOutputStreamController=RpcOutputStreamController},11008:(r,s)=>{"use strict";Object.defineProperty(s,"__esModule",{value:true});s.ServerCallContextController=void 0;class ServerCallContextController{constructor(r,s,i,a,A={code:"OK",detail:""}){this._cancelled=false;this._listeners=[];this.method=r;this.headers=s;this.deadline=i;this.trailers={};this._sendRH=a;this.status=A}notifyCancelled(){if(!this._cancelled){this._cancelled=true;for(let r of this._listeners){r()}}}sendResponseHeaders(r){this._sendRH(r)}get cancelled(){return this._cancelled}onCancel(r){const s=this._listeners;s.push(r);return()=>{let i=s.indexOf(r);if(i>=0)s.splice(i,1)}}}s.ServerCallContextController=ServerCallContextController},71314:function(r,s){"use strict";var i=this&&this.__awaiter||function(r,s,i,a){function adopt(r){return r instanceof i?r:new i((function(s){s(r)}))}return new(i||(i=Promise))((function(i,A){function fulfilled(r){try{step(a.next(r))}catch(r){A(r)}}function rejected(r){try{step(a["throw"](r))}catch(r){A(r)}}function step(r){r.done?i(r.value):adopt(r.value).then(fulfilled,rejected)}step((a=a.apply(r,s||[])).next())}))};Object.defineProperty(s,"__esModule",{value:true});s.ServerStreamingCall=void 0;class ServerStreamingCall{constructor(r,s,i,a,A,c,l){this.method=r;this.requestHeaders=s;this.request=i;this.headers=a;this.responses=A;this.status=c;this.trailers=l}then(r,s){return this.promiseFinished().then((s=>r?Promise.resolve(r(s)):s),(r=>s?Promise.resolve(s(r)):Promise.reject(r)))}promiseFinished(){return i(this,void 0,void 0,(function*(){let[r,s,i]=yield Promise.all([this.headers,this.status,this.trailers]);return{method:this.method,requestHeaders:this.requestHeaders,request:this.request,headers:r,status:s,trailers:i}}))}}s.ServerStreamingCall=ServerStreamingCall},93889:(r,s,i)=>{"use strict";Object.defineProperty(s,"__esModule",{value:true});s.ServiceType=void 0;const a=i(31323);class ServiceType{constructor(r,s,i){this.typeName=r;this.methods=s.map((r=>a.normalizeMethodInfo(r,this)));this.options=i!==null&&i!==void 0?i:{}}}s.ServiceType=ServiceType},17961:function(r,s,i){"use strict";var a=this&&this.__awaiter||function(r,s,i,a){function adopt(r){return r instanceof i?r:new i((function(s){s(r)}))}return new(i||(i=Promise))((function(i,A){function fulfilled(r){try{step(a.next(r))}catch(r){A(r)}}function rejected(r){try{step(a["throw"](r))}catch(r){A(r)}}function step(r){r.done?i(r.value):adopt(r.value).then(fulfilled,rejected)}step((a=a.apply(r,s||[])).next())}))};Object.defineProperty(s,"__esModule",{value:true});s.TestTransport=void 0;const A=i(67502);const c=i(33207);const l=i(31545);const d=i(39903);const u=i(5321);const p=i(71314);const g=i(29074);const h=i(37900);class TestTransport{constructor(r){this.suppressUncaughtRejections=true;this.headerDelay=10;this.responseDelay=50;this.betweenResponseDelay=10;this.afterResponseDelay=10;this.data=r!==null&&r!==void 0?r:{}}get sentMessages(){if(this.lastInput instanceof TestInputStream){return this.lastInput.sent}else if(typeof this.lastInput=="object"){return[this.lastInput.single]}return[]}get sendComplete(){if(this.lastInput instanceof TestInputStream){return this.lastInput.completed}else if(typeof this.lastInput=="object"){return true}return false}promiseHeaders(){var r;const s=(r=this.data.headers)!==null&&r!==void 0?r:TestTransport.defaultHeaders;return s instanceof A.RpcError?Promise.reject(s):Promise.resolve(s)}promiseSingleResponse(r){if(this.data.response instanceof A.RpcError){return Promise.reject(this.data.response)}let s;if(Array.isArray(this.data.response)){c.assert(this.data.response.length>0);s=this.data.response[0]}else if(this.data.response!==undefined){s=this.data.response}else{s=r.O.create()}c.assert(r.O.is(s));return Promise.resolve(s)}streamResponses(r,s,i){return a(this,void 0,void 0,(function*(){const a=[];if(this.data.response===undefined){a.push(r.O.create())}else if(Array.isArray(this.data.response)){for(let s of this.data.response){c.assert(r.O.is(s));a.push(s)}}else if(!(this.data.response instanceof A.RpcError)){c.assert(r.O.is(this.data.response));a.push(this.data.response)}try{yield delay(this.responseDelay,i)(undefined)}catch(r){s.notifyError(r);return}if(this.data.response instanceof A.RpcError){s.notifyError(this.data.response);return}for(let r of a){s.notifyMessage(r);try{yield delay(this.betweenResponseDelay,i)(undefined)}catch(r){s.notifyError(r);return}}if(this.data.status instanceof A.RpcError){s.notifyError(this.data.status);return}if(this.data.trailers instanceof A.RpcError){s.notifyError(this.data.trailers);return}s.notifyComplete()}))}promiseStatus(){var r;const s=(r=this.data.status)!==null&&r!==void 0?r:TestTransport.defaultStatus;return s instanceof A.RpcError?Promise.reject(s):Promise.resolve(s)}promiseTrailers(){var r;const s=(r=this.data.trailers)!==null&&r!==void 0?r:TestTransport.defaultTrailers;return s instanceof A.RpcError?Promise.reject(s):Promise.resolve(s)}maybeSuppressUncaught(...r){if(this.suppressUncaughtRejections){for(let s of r){s.catch((()=>{}))}}}mergeOptions(r){return d.mergeRpcOptions({},r)}unary(r,s,i){var a;const A=(a=i.meta)!==null&&a!==void 0?a:{},c=this.promiseHeaders().then(delay(this.headerDelay,i.abort)),l=c.catch((r=>{})).then(delay(this.responseDelay,i.abort)).then((s=>this.promiseSingleResponse(r))),d=l.catch((r=>{})).then(delay(this.afterResponseDelay,i.abort)).then((r=>this.promiseStatus())),p=l.catch((r=>{})).then(delay(this.afterResponseDelay,i.abort)).then((r=>this.promiseTrailers()));this.maybeSuppressUncaught(d,p);this.lastInput={single:s};return new u.UnaryCall(r,A,s,c,l,d,p)}serverStreaming(r,s,i){var a;const A=(a=i.meta)!==null&&a!==void 0?a:{},c=this.promiseHeaders().then(delay(this.headerDelay,i.abort)),d=new l.RpcOutputStreamController,u=c.then(delay(this.responseDelay,i.abort)).catch((()=>{})).then((()=>this.streamResponses(r,d,i.abort))).then(delay(this.afterResponseDelay,i.abort)),g=u.then((()=>this.promiseStatus())),h=u.then((()=>this.promiseTrailers()));this.maybeSuppressUncaught(g,h);this.lastInput={single:s};return new p.ServerStreamingCall(r,A,s,c,d,g,h)}clientStreaming(r,s){var i;const a=(i=s.meta)!==null&&i!==void 0?i:{},A=this.promiseHeaders().then(delay(this.headerDelay,s.abort)),c=A.catch((r=>{})).then(delay(this.responseDelay,s.abort)).then((s=>this.promiseSingleResponse(r))),l=c.catch((r=>{})).then(delay(this.afterResponseDelay,s.abort)).then((r=>this.promiseStatus())),d=c.catch((r=>{})).then(delay(this.afterResponseDelay,s.abort)).then((r=>this.promiseTrailers()));this.maybeSuppressUncaught(l,d);this.lastInput=new TestInputStream(this.data,s.abort);return new g.ClientStreamingCall(r,a,this.lastInput,A,c,l,d)}duplex(r,s){var i;const a=(i=s.meta)!==null&&i!==void 0?i:{},A=this.promiseHeaders().then(delay(this.headerDelay,s.abort)),c=new l.RpcOutputStreamController,d=A.then(delay(this.responseDelay,s.abort)).catch((()=>{})).then((()=>this.streamResponses(r,c,s.abort))).then(delay(this.afterResponseDelay,s.abort)),u=d.then((()=>this.promiseStatus())),p=d.then((()=>this.promiseTrailers()));this.maybeSuppressUncaught(u,p);this.lastInput=new TestInputStream(this.data,s.abort);return new h.DuplexStreamingCall(r,a,this.lastInput,A,c,u,p)}}s.TestTransport=TestTransport;TestTransport.defaultHeaders={responseHeader:"test"};TestTransport.defaultStatus={code:"OK",detail:"all good"};TestTransport.defaultTrailers={responseTrailer:"test"};function delay(r,s){return i=>new Promise(((a,c)=>{if(s===null||s===void 0?void 0:s.aborted){c(new A.RpcError("user cancel","CANCELLED"))}else{const l=setTimeout((()=>a(i)),r);if(s){s.addEventListener("abort",(r=>{clearTimeout(l);c(new A.RpcError("user cancel","CANCELLED"))}))}}}))}class TestInputStream{constructor(r,s){this._completed=false;this._sent=[];this.data=r;this.abort=s}get sent(){return this._sent}get completed(){return this._completed}send(r){if(this.data.inputMessage instanceof A.RpcError){return Promise.reject(this.data.inputMessage)}const s=this.data.inputMessage===undefined?10:this.data.inputMessage;return Promise.resolve(undefined).then((()=>{this._sent.push(r)})).then(delay(s,this.abort))}complete(){if(this.data.inputComplete instanceof A.RpcError){return Promise.reject(this.data.inputComplete)}const r=this.data.inputComplete===undefined?10:this.data.inputComplete;return Promise.resolve(undefined).then((()=>{this._completed=true})).then(delay(r,this.abort))}}},5321:function(r,s){"use strict";var i=this&&this.__awaiter||function(r,s,i,a){function adopt(r){return r instanceof i?r:new i((function(s){s(r)}))}return new(i||(i=Promise))((function(i,A){function fulfilled(r){try{step(a.next(r))}catch(r){A(r)}}function rejected(r){try{step(a["throw"](r))}catch(r){A(r)}}function step(r){r.done?i(r.value):adopt(r.value).then(fulfilled,rejected)}step((a=a.apply(r,s||[])).next())}))};Object.defineProperty(s,"__esModule",{value:true});s.UnaryCall=void 0;class UnaryCall{constructor(r,s,i,a,A,c,l){this.method=r;this.requestHeaders=s;this.request=i;this.headers=a;this.response=A;this.status=c;this.trailers=l}then(r,s){return this.promiseFinished().then((s=>r?Promise.resolve(r(s)):s),(r=>s?Promise.resolve(s(r)):Promise.reject(r)))}promiseFinished(){return i(this,void 0,void 0,(function*(){let[r,s,i,a]=yield Promise.all([this.headers,this.response,this.status,this.trailers]);return{method:this.method,requestHeaders:this.requestHeaders,request:this.request,headers:r,response:s,status:i,trailers:a}}))}}s.UnaryCall=UnaryCall},85643:(r,s)=>{"use strict";Object.defineProperty(s,"__esModule",{value:true});s.assertFloat32=s.assertUInt32=s.assertInt32=s.assertNever=s.assert=void 0;function assert(r,s){if(!r){throw new Error(s)}}s.assert=assert;function assertNever(r,s){throw new Error(s!==null&&s!==void 0?s:"Unexpected object: "+r)}s.assertNever=assertNever;const i=34028234663852886e22,a=-34028234663852886e22,A=4294967295,c=2147483647,l=-2147483648;function assertInt32(r){if(typeof r!=="number")throw new Error("invalid int 32: "+typeof r);if(!Number.isInteger(r)||r>c||rA||r<0)throw new Error("invalid uint 32: "+r)}s.assertUInt32=assertUInt32;function assertFloat32(r){if(typeof r!=="number")throw new Error("invalid float 32: "+typeof r);if(!Number.isFinite(r))return;if(r>i||r{"use strict";Object.defineProperty(s,"__esModule",{value:true});s.base64encode=s.base64decode=void 0;let i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");let a=[];for(let r=0;r>4;d=l;c=2;break;case 2:i[A++]=(d&15)<<4|(l&60)>>2;d=l;c=3;break;case 3:i[A++]=(d&3)<<6|l;c=0;break}}if(c==1)throw Error(`invalid base64 string.`);return i.subarray(0,A)}s.base64decode=base64decode;function base64encode(r){let s="",a=0,A,c=0;for(let l=0;l>2];c=(A&3)<<4;a=1;break;case 1:s+=i[c|A>>4];c=(A&15)<<2;a=2;break;case 2:s+=i[c|A>>6];s+=i[A&63];a=0;break}}if(a){s+=i[c];s+="=";if(a==1)s+="="}return s}s.base64encode=base64encode},29178:(r,s)=>{"use strict";Object.defineProperty(s,"__esModule",{value:true});s.WireType=s.mergeBinaryOptions=s.UnknownFieldHandler=void 0;var i;(function(r){r.symbol=Symbol.for("protobuf-ts/unknown");r.onRead=(s,i,a,A,c)=>{let l=is(i)?i[r.symbol]:i[r.symbol]=[];l.push({no:a,wireType:A,data:c})};r.onWrite=(s,i,a)=>{for(let{no:s,wireType:A,data:c}of r.list(i))a.tag(s,A).raw(c)};r.list=(s,i)=>{if(is(s)){let a=s[r.symbol];return i?a.filter((r=>r.no==i)):a}return[]};r.last=(s,i)=>r.list(s,i).slice(-1)[0];const is=s=>s&&Array.isArray(s[r.symbol])})(i=s.UnknownFieldHandler||(s.UnknownFieldHandler={}));function mergeBinaryOptions(r,s){return Object.assign(Object.assign({},r),s)}s.mergeBinaryOptions=mergeBinaryOptions;var a;(function(r){r[r["Varint"]=0]="Varint";r[r["Bit64"]=1]="Bit64";r[r["LengthDelimited"]=2]="LengthDelimited";r[r["StartGroup"]=3]="StartGroup";r[r["EndGroup"]=4]="EndGroup";r[r["Bit32"]=5]="Bit32"})(a=s.WireType||(s.WireType={}))},70307:(r,s,i)=>{"use strict";Object.defineProperty(s,"__esModule",{value:true});s.BinaryReader=s.binaryReadOptions=void 0;const a=i(29178);const A=i(75511);const c=i(96629);const l={readUnknownField:true,readerFactory:r=>new BinaryReader(r)};function binaryReadOptions(r){return r?Object.assign(Object.assign({},l),r):l}s.binaryReadOptions=binaryReadOptions;class BinaryReader{constructor(r,s){this.varint64=c.varint64read;this.uint32=c.varint32read;this.buf=r;this.len=r.length;this.pos=0;this.view=new DataView(r.buffer,r.byteOffset,r.byteLength);this.textDecoder=s!==null&&s!==void 0?s:new TextDecoder("utf-8",{fatal:true,ignoreBOM:true})}tag(){let r=this.uint32(),s=r>>>3,i=r&7;if(s<=0||i<0||i>5)throw new Error("illegal tag: field no "+s+" wire type "+i);return[s,i]}skip(r){let s=this.pos;switch(r){case a.WireType.Varint:while(this.buf[this.pos++]&128){}break;case a.WireType.Bit64:this.pos+=4;case a.WireType.Bit32:this.pos+=4;break;case a.WireType.LengthDelimited:let s=this.uint32();this.pos+=s;break;case a.WireType.StartGroup:let i;while((i=this.tag()[1])!==a.WireType.EndGroup){this.skip(i)}break;default:throw new Error("cant skip wire type "+r)}this.assertBounds();return this.buf.subarray(s,this.pos)}assertBounds(){if(this.pos>this.len)throw new RangeError("premature EOF")}int32(){return this.uint32()|0}sint32(){let r=this.uint32();return r>>>1^-(r&1)}int64(){return new A.PbLong(...this.varint64())}uint64(){return new A.PbULong(...this.varint64())}sint64(){let[r,s]=this.varint64();let i=-(r&1);r=(r>>>1|(s&1)<<31)^i;s=s>>>1^i;return new A.PbLong(r,s)}bool(){let[r,s]=this.varint64();return r!==0||s!==0}fixed32(){return this.view.getUint32((this.pos+=4)-4,true)}sfixed32(){return this.view.getInt32((this.pos+=4)-4,true)}fixed64(){return new A.PbULong(this.sfixed32(),this.sfixed32())}sfixed64(){return new A.PbLong(this.sfixed32(),this.sfixed32())}float(){return this.view.getFloat32((this.pos+=4)-4,true)}double(){return this.view.getFloat64((this.pos+=8)-8,true)}bytes(){let r=this.uint32();let s=this.pos;this.pos+=r;this.assertBounds();return this.buf.subarray(s,s+r)}string(){return this.textDecoder.decode(this.bytes())}}s.BinaryReader=BinaryReader},13321:(r,s,i)=>{"use strict";Object.defineProperty(s,"__esModule",{value:true});s.BinaryWriter=s.binaryWriteOptions=void 0;const a=i(75511);const A=i(96629);const c=i(85643);const l={writeUnknownFields:true,writerFactory:()=>new BinaryWriter};function binaryWriteOptions(r){return r?Object.assign(Object.assign({},l),r):l}s.binaryWriteOptions=binaryWriteOptions;class BinaryWriter{constructor(r){this.stack=[];this.textEncoder=r!==null&&r!==void 0?r:new TextEncoder;this.chunks=[];this.buf=[]}finish(){this.chunks.push(new Uint8Array(this.buf));let r=0;for(let s=0;s>>0)}raw(r){if(this.buf.length){this.chunks.push(new Uint8Array(this.buf));this.buf=[]}this.chunks.push(r);return this}uint32(r){c.assertUInt32(r);while(r>127){this.buf.push(r&127|128);r=r>>>7}this.buf.push(r);return this}int32(r){c.assertInt32(r);A.varint32write(r,this.buf);return this}bool(r){this.buf.push(r?1:0);return this}bytes(r){this.uint32(r.byteLength);return this.raw(r)}string(r){let s=this.textEncoder.encode(r);this.uint32(s.byteLength);return this.raw(s)}float(r){c.assertFloat32(r);let s=new Uint8Array(4);new DataView(s.buffer).setFloat32(0,r,true);return this.raw(s)}double(r){let s=new Uint8Array(8);new DataView(s.buffer).setFloat64(0,r,true);return this.raw(s)}fixed32(r){c.assertUInt32(r);let s=new Uint8Array(4);new DataView(s.buffer).setUint32(0,r,true);return this.raw(s)}sfixed32(r){c.assertInt32(r);let s=new Uint8Array(4);new DataView(s.buffer).setInt32(0,r,true);return this.raw(s)}sint32(r){c.assertInt32(r);r=(r<<1^r>>31)>>>0;A.varint32write(r,this.buf);return this}sfixed64(r){let s=new Uint8Array(8);let i=new DataView(s.buffer);let A=a.PbLong.from(r);i.setInt32(0,A.lo,true);i.setInt32(4,A.hi,true);return this.raw(s)}fixed64(r){let s=new Uint8Array(8);let i=new DataView(s.buffer);let A=a.PbULong.from(r);i.setInt32(0,A.lo,true);i.setInt32(4,A.hi,true);return this.raw(s)}int64(r){let s=a.PbLong.from(r);A.varint64write(s.lo,s.hi,this.buf);return this}sint64(r){let s=a.PbLong.from(r),i=s.hi>>31,c=s.lo<<1^i,l=(s.hi<<1|s.lo>>>31)^i;A.varint64write(c,l,this.buf);return this}uint64(r){let s=a.PbULong.from(r);A.varint64write(s.lo,s.hi,this.buf);return this}}s.BinaryWriter=BinaryWriter},57928:(r,s)=>{"use strict";Object.defineProperty(s,"__esModule",{value:true});s.listEnumNumbers=s.listEnumNames=s.listEnumValues=s.isEnumObject=void 0;function isEnumObject(r){if(typeof r!="object"||r===null){return false}if(!r.hasOwnProperty(0)){return false}for(let s of Object.keys(r)){let i=parseInt(s);if(!Number.isNaN(i)){let s=r[i];if(s===undefined)return false;if(r[s]!==i)return false}else{let i=r[s];if(i===undefined)return false;if(typeof i!=="number")return false;if(r[i]===undefined)return false}}return true}s.isEnumObject=isEnumObject;function listEnumValues(r){if(!isEnumObject(r))throw new Error("not a typescript enum object");let s=[];for(let[i,a]of Object.entries(r))if(typeof a=="number")s.push({name:i,number:a});return s}s.listEnumValues=listEnumValues;function listEnumNames(r){return listEnumValues(r).map((r=>r.name))}s.listEnumNames=listEnumNames;function listEnumNumbers(r){return listEnumValues(r).map((r=>r.number)).filter(((r,s,i)=>i.indexOf(r)==s))}s.listEnumNumbers=listEnumNumbers},96629:(r,s)=>{"use strict";Object.defineProperty(s,"__esModule",{value:true});s.varint32read=s.varint32write=s.int64toString=s.int64fromString=s.varint64write=s.varint64read=void 0;function varint64read(){let r=0;let s=0;for(let i=0;i<28;i+=7){let a=this.buf[this.pos++];r|=(a&127)<>4;if((i&128)==0){this.assertBounds();return[r,s]}for(let i=3;i<=31;i+=7){let a=this.buf[this.pos++];s|=(a&127)<>>a;const c=!(A>>>7==0&&s==0);const l=(c?A|128:A)&255;i.push(l);if(!c){return}}const a=r>>>28&15|(s&7)<<4;const A=!(s>>3==0);i.push((A?a|128:a)&255);if(!A){return}for(let r=3;r<31;r=r+7){const a=s>>>r;const A=!(a>>>7==0);const c=(A?a|128:a)&255;i.push(c);if(!A){return}}i.push(s>>>31&1)}s.varint64write=varint64write;const i=(1<<16)*(1<<16);function int64fromString(r){let s=r[0]=="-";if(s)r=r.slice(1);const a=1e6;let A=0;let c=0;function add1e6digit(s,l){const d=Number(r.slice(s,l));c*=a;A=A*a+d;if(A>=i){c=c+(A/i|0);A=A%i}}add1e6digit(-24,-18);add1e6digit(-18,-12);add1e6digit(-12,-6);add1e6digit(-6);return[s,A,c]}s.int64fromString=int64fromString;function int64toString(r,s){if(s>>>0<=2097151){return""+(i*s+(r>>>0))}let a=r&16777215;let A=(r>>>24|s<<8)>>>0&16777215;let c=s>>16&65535;let l=a+A*6777216+c*6710656;let d=A+c*8147497;let u=c*2;let p=1e7;if(l>=p){d+=Math.floor(l/p);l%=p}if(d>=p){u+=Math.floor(d/p);d%=p}function decimalFrom1e7(r,s){let i=r?String(r):"";if(s){return"0000000".slice(i.length)+i}return i}return decimalFrom1e7(u,0)+decimalFrom1e7(d,u)+decimalFrom1e7(l,1)}s.int64toString=int64toString;function varint32write(r,s){if(r>=0){while(r>127){s.push(r&127|128);r=r>>>7}s.push(r)}else{for(let i=0;i<9;i++){s.push(r&127|128);r=r>>7}s.push(1)}}s.varint32write=varint32write;function varint32read(){let r=this.buf[this.pos++];let s=r&127;if((r&128)==0){this.assertBounds();return s}r=this.buf[this.pos++];s|=(r&127)<<7;if((r&128)==0){this.assertBounds();return s}r=this.buf[this.pos++];s|=(r&127)<<14;if((r&128)==0){this.assertBounds();return s}r=this.buf[this.pos++];s|=(r&127)<<21;if((r&128)==0){this.assertBounds();return s}r=this.buf[this.pos++];s|=(r&15)<<28;for(let s=5;(r&128)!==0&&s<10;s++)r=this.buf[this.pos++];if((r&128)!=0)throw new Error("invalid varint");this.assertBounds();return s>>>0}s.varint32read=varint32read},33207:(r,s,i)=>{"use strict";Object.defineProperty(s,"__esModule",{value:true});var a=i(37432);Object.defineProperty(s,"typeofJsonValue",{enumerable:true,get:function(){return a.typeofJsonValue}});Object.defineProperty(s,"isJsonObject",{enumerable:true,get:function(){return a.isJsonObject}});var A=i(83312);Object.defineProperty(s,"base64decode",{enumerable:true,get:function(){return A.base64decode}});Object.defineProperty(s,"base64encode",{enumerable:true,get:function(){return A.base64encode}});var c=i(12436);Object.defineProperty(s,"utf8read",{enumerable:true,get:function(){return c.utf8read}});var l=i(29178);Object.defineProperty(s,"WireType",{enumerable:true,get:function(){return l.WireType}});Object.defineProperty(s,"mergeBinaryOptions",{enumerable:true,get:function(){return l.mergeBinaryOptions}});Object.defineProperty(s,"UnknownFieldHandler",{enumerable:true,get:function(){return l.UnknownFieldHandler}});var d=i(70307);Object.defineProperty(s,"BinaryReader",{enumerable:true,get:function(){return d.BinaryReader}});Object.defineProperty(s,"binaryReadOptions",{enumerable:true,get:function(){return d.binaryReadOptions}});var u=i(13321);Object.defineProperty(s,"BinaryWriter",{enumerable:true,get:function(){return u.BinaryWriter}});Object.defineProperty(s,"binaryWriteOptions",{enumerable:true,get:function(){return u.binaryWriteOptions}});var p=i(75511);Object.defineProperty(s,"PbLong",{enumerable:true,get:function(){return p.PbLong}});Object.defineProperty(s,"PbULong",{enumerable:true,get:function(){return p.PbULong}});var g=i(19951);Object.defineProperty(s,"jsonReadOptions",{enumerable:true,get:function(){return g.jsonReadOptions}});Object.defineProperty(s,"jsonWriteOptions",{enumerable:true,get:function(){return g.jsonWriteOptions}});Object.defineProperty(s,"mergeJsonOptions",{enumerable:true,get:function(){return g.mergeJsonOptions}});var h=i(86390);Object.defineProperty(s,"MESSAGE_TYPE",{enumerable:true,get:function(){return h.MESSAGE_TYPE}});var C=i(72702);Object.defineProperty(s,"MessageType",{enumerable:true,get:function(){return C.MessageType}});var y=i(34846);Object.defineProperty(s,"ScalarType",{enumerable:true,get:function(){return y.ScalarType}});Object.defineProperty(s,"LongType",{enumerable:true,get:function(){return y.LongType}});Object.defineProperty(s,"RepeatType",{enumerable:true,get:function(){return y.RepeatType}});Object.defineProperty(s,"normalizeFieldInfo",{enumerable:true,get:function(){return y.normalizeFieldInfo}});Object.defineProperty(s,"readFieldOptions",{enumerable:true,get:function(){return y.readFieldOptions}});Object.defineProperty(s,"readFieldOption",{enumerable:true,get:function(){return y.readFieldOption}});Object.defineProperty(s,"readMessageOption",{enumerable:true,get:function(){return y.readMessageOption}});var I=i(45200);Object.defineProperty(s,"ReflectionTypeCheck",{enumerable:true,get:function(){return I.ReflectionTypeCheck}});var B=i(32833);Object.defineProperty(s,"reflectionCreate",{enumerable:true,get:function(){return B.reflectionCreate}});var b=i(82787);Object.defineProperty(s,"reflectionScalarDefault",{enumerable:true,get:function(){return b.reflectionScalarDefault}});var Q=i(13622);Object.defineProperty(s,"reflectionMergePartial",{enumerable:true,get:function(){return Q.reflectionMergePartial}});var w=i(47044);Object.defineProperty(s,"reflectionEquals",{enumerable:true,get:function(){return w.reflectionEquals}});var v=i(12277);Object.defineProperty(s,"ReflectionBinaryReader",{enumerable:true,get:function(){return v.ReflectionBinaryReader}});var S=i(40919);Object.defineProperty(s,"ReflectionBinaryWriter",{enumerable:true,get:function(){return S.ReflectionBinaryWriter}});var R=i(19539);Object.defineProperty(s,"ReflectionJsonReader",{enumerable:true,get:function(){return R.ReflectionJsonReader}});var N=i(43667);Object.defineProperty(s,"ReflectionJsonWriter",{enumerable:true,get:function(){return N.ReflectionJsonWriter}});var x=i(30241);Object.defineProperty(s,"containsMessageType",{enumerable:true,get:function(){return x.containsMessageType}});var D=i(610);Object.defineProperty(s,"isOneofGroup",{enumerable:true,get:function(){return D.isOneofGroup}});Object.defineProperty(s,"setOneofValue",{enumerable:true,get:function(){return D.setOneofValue}});Object.defineProperty(s,"getOneofValue",{enumerable:true,get:function(){return D.getOneofValue}});Object.defineProperty(s,"clearOneofValue",{enumerable:true,get:function(){return D.clearOneofValue}});Object.defineProperty(s,"getSelectedOneofValue",{enumerable:true,get:function(){return D.getSelectedOneofValue}});var k=i(57928);Object.defineProperty(s,"listEnumValues",{enumerable:true,get:function(){return k.listEnumValues}});Object.defineProperty(s,"listEnumNames",{enumerable:true,get:function(){return k.listEnumNames}});Object.defineProperty(s,"listEnumNumbers",{enumerable:true,get:function(){return k.listEnumNumbers}});Object.defineProperty(s,"isEnumObject",{enumerable:true,get:function(){return k.isEnumObject}});var T=i(29367);Object.defineProperty(s,"lowerCamelCase",{enumerable:true,get:function(){return T.lowerCamelCase}});var _=i(85643);Object.defineProperty(s,"assert",{enumerable:true,get:function(){return _.assert}});Object.defineProperty(s,"assertNever",{enumerable:true,get:function(){return _.assertNever}});Object.defineProperty(s,"assertInt32",{enumerable:true,get:function(){return _.assertInt32}});Object.defineProperty(s,"assertUInt32",{enumerable:true,get:function(){return _.assertUInt32}});Object.defineProperty(s,"assertFloat32",{enumerable:true,get:function(){return _.assertFloat32}})},19951:(r,s)=>{"use strict";Object.defineProperty(s,"__esModule",{value:true});s.mergeJsonOptions=s.jsonWriteOptions=s.jsonReadOptions=void 0;const i={emitDefaultValues:false,enumAsInteger:false,useProtoFieldName:false,prettySpaces:0},a={ignoreUnknownFields:false};function jsonReadOptions(r){return r?Object.assign(Object.assign({},a),r):a}s.jsonReadOptions=jsonReadOptions;function jsonWriteOptions(r){return r?Object.assign(Object.assign({},i),r):i}s.jsonWriteOptions=jsonWriteOptions;function mergeJsonOptions(r,s){var i,a;let A=Object.assign(Object.assign({},r),s);A.typeRegistry=[...(i=r===null||r===void 0?void 0:r.typeRegistry)!==null&&i!==void 0?i:[],...(a=s===null||s===void 0?void 0:s.typeRegistry)!==null&&a!==void 0?a:[]];return A}s.mergeJsonOptions=mergeJsonOptions},37432:(r,s)=>{"use strict";Object.defineProperty(s,"__esModule",{value:true});s.isJsonObject=s.typeofJsonValue=void 0;function typeofJsonValue(r){let s=typeof r;if(s=="object"){if(Array.isArray(r))return"array";if(r===null)return"null"}return s}s.typeofJsonValue=typeofJsonValue;function isJsonObject(r){return r!==null&&typeof r=="object"&&!Array.isArray(r)}s.isJsonObject=isJsonObject},29367:(r,s)=>{"use strict";Object.defineProperty(s,"__esModule",{value:true});s.lowerCamelCase=void 0;function lowerCamelCase(r){let s=false;const i=[];for(let a=0;a{"use strict";Object.defineProperty(s,"__esModule",{value:true});s.MESSAGE_TYPE=void 0;s.MESSAGE_TYPE=Symbol.for("protobuf-ts/message-type")},72702:(r,s,i)=>{"use strict";Object.defineProperty(s,"__esModule",{value:true});s.MessageType=void 0;const a=i(86390);const A=i(34846);const c=i(45200);const l=i(19539);const d=i(43667);const u=i(12277);const p=i(40919);const g=i(32833);const h=i(13622);const C=i(37432);const y=i(19951);const I=i(47044);const B=i(13321);const b=i(70307);const Q=Object.getOwnPropertyDescriptors(Object.getPrototypeOf({}));class MessageType{constructor(r,s,i){this.defaultCheckDepth=16;this.typeName=r;this.fields=s.map(A.normalizeFieldInfo);this.options=i!==null&&i!==void 0?i:{};this.messagePrototype=Object.create(null,Object.assign(Object.assign({},Q),{[a.MESSAGE_TYPE]:{value:this}}));this.refTypeCheck=new c.ReflectionTypeCheck(this);this.refJsonReader=new l.ReflectionJsonReader(this);this.refJsonWriter=new d.ReflectionJsonWriter(this);this.refBinReader=new u.ReflectionBinaryReader(this);this.refBinWriter=new p.ReflectionBinaryWriter(this)}create(r){let s=g.reflectionCreate(this);if(r!==undefined){h.reflectionMergePartial(this,s,r)}return s}clone(r){let s=this.create();h.reflectionMergePartial(this,s,r);return s}equals(r,s){return I.reflectionEquals(this,r,s)}is(r,s=this.defaultCheckDepth){return this.refTypeCheck.is(r,s,false)}isAssignable(r,s=this.defaultCheckDepth){return this.refTypeCheck.is(r,s,true)}mergePartial(r,s){h.reflectionMergePartial(this,r,s)}fromBinary(r,s){let i=b.binaryReadOptions(s);return this.internalBinaryRead(i.readerFactory(r),r.byteLength,i)}fromJson(r,s){return this.internalJsonRead(r,y.jsonReadOptions(s))}fromJsonString(r,s){let i=JSON.parse(r);return this.fromJson(i,s)}toJson(r,s){return this.internalJsonWrite(r,y.jsonWriteOptions(s))}toJsonString(r,s){var i;let a=this.toJson(r,s);return JSON.stringify(a,null,(i=s===null||s===void 0?void 0:s.prettySpaces)!==null&&i!==void 0?i:0)}toBinary(r,s){let i=B.binaryWriteOptions(s);return this.internalBinaryWrite(r,i.writerFactory(),i).finish()}internalJsonRead(r,s,i){if(r!==null&&typeof r=="object"&&!Array.isArray(r)){let a=i!==null&&i!==void 0?i:this.create();this.refJsonReader.read(r,a,s);return a}throw new Error(`Unable to parse message ${this.typeName} from JSON ${C.typeofJsonValue(r)}.`)}internalJsonWrite(r,s){return this.refJsonWriter.write(r,s)}internalBinaryWrite(r,s,i){this.refBinWriter.write(r,s,i);return s}internalBinaryRead(r,s,i,a){let A=a!==null&&a!==void 0?a:this.create();this.refBinReader.read(r,A,i,s);return A}}s.MessageType=MessageType},610:(r,s)=>{"use strict";Object.defineProperty(s,"__esModule",{value:true});s.getSelectedOneofValue=s.clearOneofValue=s.setUnknownOneofValue=s.setOneofValue=s.getOneofValue=s.isOneofGroup=void 0;function isOneofGroup(r){if(typeof r!="object"||r===null||!r.hasOwnProperty("oneofKind")){return false}switch(typeof r.oneofKind){case"string":if(r[r.oneofKind]===undefined)return false;return Object.keys(r).length==2;case"undefined":return Object.keys(r).length==1;default:return false}}s.isOneofGroup=isOneofGroup;function getOneofValue(r,s){return r[s]}s.getOneofValue=getOneofValue;function setOneofValue(r,s,i){if(r.oneofKind!==undefined){delete r[r.oneofKind]}r.oneofKind=s;if(i!==undefined){r[s]=i}}s.setOneofValue=setOneofValue;function setUnknownOneofValue(r,s,i){if(r.oneofKind!==undefined){delete r[r.oneofKind]}r.oneofKind=s;if(i!==undefined&&s!==undefined){r[s]=i}}s.setUnknownOneofValue=setUnknownOneofValue;function clearOneofValue(r){if(r.oneofKind!==undefined){delete r[r.oneofKind]}r.oneofKind=undefined}s.clearOneofValue=clearOneofValue;function getSelectedOneofValue(r){if(r.oneofKind===undefined){return undefined}return r[r.oneofKind]}s.getSelectedOneofValue=getSelectedOneofValue},75511:(r,s,i)=>{"use strict";Object.defineProperty(s,"__esModule",{value:true});s.PbLong=s.PbULong=s.detectBi=void 0;const a=i(96629);let A;function detectBi(){const r=new DataView(new ArrayBuffer(8));const s=globalThis.BigInt!==undefined&&typeof r.getBigInt64==="function"&&typeof r.getBigUint64==="function"&&typeof r.setBigInt64==="function"&&typeof r.setBigUint64==="function";A=s?{MIN:BigInt("-9223372036854775808"),MAX:BigInt("9223372036854775807"),UMIN:BigInt("0"),UMAX:BigInt("18446744073709551615"),C:BigInt,V:r}:undefined}s.detectBi=detectBi;detectBi();function assertBi(r){if(!r)throw new Error("BigInt unavailable, see https://github.com/timostamm/protobuf-ts/blob/v1.0.8/MANUAL.md#bigint-support")}const c=/^-?[0-9]+$/;const l=4294967296;const d=2147483648;class SharedPbLong{constructor(r,s){this.lo=r|0;this.hi=s|0}isZero(){return this.lo==0&&this.hi==0}toNumber(){let r=this.hi*l+(this.lo>>>0);if(!Number.isSafeInteger(r))throw new Error("cannot convert to safe number");return r}}class PbULong extends SharedPbLong{static from(r){if(A)switch(typeof r){case"string":if(r=="0")return this.ZERO;if(r=="")throw new Error("string is no integer");r=A.C(r);case"number":if(r===0)return this.ZERO;r=A.C(r);case"bigint":if(!r)return this.ZERO;if(rA.UMAX)throw new Error("ulong too large");A.V.setBigUint64(0,r,true);return new PbULong(A.V.getInt32(0,true),A.V.getInt32(4,true))}else switch(typeof r){case"string":if(r=="0")return this.ZERO;r=r.trim();if(!c.test(r))throw new Error("string is no integer");let[s,i,A]=a.int64fromString(r);if(s)throw new Error("signed value for ulong");return new PbULong(i,A);case"number":if(r==0)return this.ZERO;if(!Number.isSafeInteger(r))throw new Error("number is no integer");if(r<0)throw new Error("signed value for ulong");return new PbULong(r,r/l)}throw new Error("unknown value "+typeof r)}toString(){return A?this.toBigInt().toString():a.int64toString(this.lo,this.hi)}toBigInt(){assertBi(A);A.V.setInt32(0,this.lo,true);A.V.setInt32(4,this.hi,true);return A.V.getBigUint64(0,true)}}s.PbULong=PbULong;PbULong.ZERO=new PbULong(0,0);class PbLong extends SharedPbLong{static from(r){if(A)switch(typeof r){case"string":if(r=="0")return this.ZERO;if(r=="")throw new Error("string is no integer");r=A.C(r);case"number":if(r===0)return this.ZERO;r=A.C(r);case"bigint":if(!r)return this.ZERO;if(rA.MAX)throw new Error("signed long too large");A.V.setBigInt64(0,r,true);return new PbLong(A.V.getInt32(0,true),A.V.getInt32(4,true))}else switch(typeof r){case"string":if(r=="0")return this.ZERO;r=r.trim();if(!c.test(r))throw new Error("string is no integer");let[s,i,A]=a.int64fromString(r);if(s){if(A>d||A==d&&i!=0)throw new Error("signed long too small")}else if(A>=d)throw new Error("signed long too large");let u=new PbLong(i,A);return s?u.negate():u;case"number":if(r==0)return this.ZERO;if(!Number.isSafeInteger(r))throw new Error("number is no integer");return r>0?new PbLong(r,r/l):new PbLong(-r,-r/l).negate()}throw new Error("unknown value "+typeof r)}isNegative(){return(this.hi&d)!==0}negate(){let r=~this.hi,s=this.lo;if(s)s=~s+1;else r+=1;return new PbLong(s,r)}toString(){if(A)return this.toBigInt().toString();if(this.isNegative()){let r=this.negate();return"-"+a.int64toString(r.lo,r.hi)}return a.int64toString(this.lo,this.hi)}toBigInt(){assertBi(A);A.V.setInt32(0,this.lo,true);A.V.setInt32(4,this.hi,true);return A.V.getBigInt64(0,true)}}s.PbLong=PbLong;PbLong.ZERO=new PbLong(0,0)},12436:(r,s)=>{"use strict";Object.defineProperty(s,"__esModule",{value:true});s.utf8read=void 0;const fromCharCodes=r=>String.fromCharCode.apply(String,r);function utf8read(r){if(r.length<1)return"";let s=0,i=[],a=[],A=0,c;let l=r.length;while(s191&&c<224)a[A++]=(c&31)<<6|r[s++]&63;else if(c>239&&c<365){c=((c&7)<<18|(r[s++]&63)<<12|(r[s++]&63)<<6|r[s++]&63)-65536;a[A++]=55296+(c>>10);a[A++]=56320+(c&1023)}else a[A++]=(c&15)<<12|(r[s++]&63)<<6|r[s++]&63;if(A>8191){i.push(fromCharCodes(a));A=0}}if(i.length){if(A)i.push(fromCharCodes(a.slice(0,A)));return i.join("")}return fromCharCodes(a.slice(0,A))}s.utf8read=utf8read},12277:(r,s,i)=>{"use strict";Object.defineProperty(s,"__esModule",{value:true});s.ReflectionBinaryReader=void 0;const a=i(29178);const A=i(34846);const c=i(42927);const l=i(82787);class ReflectionBinaryReader{constructor(r){this.info=r}prepare(){var r;if(!this.fieldNoToField){const s=(r=this.info.fields)!==null&&r!==void 0?r:[];this.fieldNoToField=new Map(s.map((r=>[r.no,r])))}}read(r,s,i,c){this.prepare();const l=c===undefined?r.len:r.pos+c;while(r.pos{"use strict";Object.defineProperty(s,"__esModule",{value:true});s.ReflectionBinaryWriter=void 0;const a=i(29178);const A=i(34846);const c=i(85643);const l=i(75511);class ReflectionBinaryWriter{constructor(r){this.info=r}prepare(){if(!this.fields){const r=this.info.fields?this.info.fields.concat():[];this.fields=r.sort(((r,s)=>r.no-s.no))}}write(r,s,i){this.prepare();for(const a of this.fields){let l,d,u=a.repeat,p=a.localName;if(a.oneof){const s=r[a.oneof];if(s.oneofKind!==p)continue;l=s[p];d=true}else{l=r[p];d=false}switch(a.kind){case"scalar":case"enum":let r=a.kind=="enum"?A.ScalarType.INT32:a.T;if(u){c.assert(Array.isArray(l));if(u==A.RepeatType.PACKED)this.packed(s,r,a.no,l);else for(const i of l)this.scalar(s,r,a.no,i,true)}else if(l===undefined)c.assert(a.opt);else this.scalar(s,r,a.no,l,d||a.opt);break;case"message":if(u){c.assert(Array.isArray(l));for(const r of l)this.message(s,i,a.T(),a.no,r)}else{this.message(s,i,a.T(),a.no,l)}break;case"map":c.assert(typeof l=="object"&&l!==null);for(const[r,A]of Object.entries(l))this.mapEntry(s,i,a,r,A);break}}let l=i.writeUnknownFields;if(l!==false)(l===true?a.UnknownFieldHandler.onWrite:l)(this.info.typeName,r,s)}mapEntry(r,s,i,l,d){r.tag(i.no,a.WireType.LengthDelimited);r.fork();let u=l;switch(i.K){case A.ScalarType.INT32:case A.ScalarType.FIXED32:case A.ScalarType.UINT32:case A.ScalarType.SFIXED32:case A.ScalarType.SINT32:u=Number.parseInt(l);break;case A.ScalarType.BOOL:c.assert(l=="true"||l=="false");u=l=="true";break}this.scalar(r,i.K,1,u,true);switch(i.V.kind){case"scalar":this.scalar(r,i.V.T,2,d,true);break;case"enum":this.scalar(r,A.ScalarType.INT32,2,d,true);break;case"message":this.message(r,s,i.V.T(),2,d);break}r.join()}message(r,s,i,A,c){if(c===undefined)return;i.internalBinaryWrite(c,r.tag(A,a.WireType.LengthDelimited).fork(),s);r.join()}scalar(r,s,i,a,A){let[c,l,d]=this.scalarInfo(s,a);if(!d||A){r.tag(i,c);r[l](a)}}packed(r,s,i,l){if(!l.length)return;c.assert(s!==A.ScalarType.BYTES&&s!==A.ScalarType.STRING);r.tag(i,a.WireType.LengthDelimited);r.fork();let[,d]=this.scalarInfo(s);for(let s=0;s{"use strict";Object.defineProperty(s,"__esModule",{value:true});s.containsMessageType=void 0;const a=i(86390);function containsMessageType(r){return r[a.MESSAGE_TYPE]!=null}s.containsMessageType=containsMessageType},32833:(r,s,i)=>{"use strict";Object.defineProperty(s,"__esModule",{value:true});s.reflectionCreate=void 0;const a=i(82787);const A=i(86390);function reflectionCreate(r){const s=r.messagePrototype?Object.create(r.messagePrototype):Object.defineProperty({},A.MESSAGE_TYPE,{value:r});for(let i of r.fields){let r=i.localName;if(i.opt)continue;if(i.oneof)s[i.oneof]={oneofKind:undefined};else if(i.repeat)s[r]=[];else switch(i.kind){case"scalar":s[r]=a.reflectionScalarDefault(i.T,i.L);break;case"enum":s[r]=0;break;case"map":s[r]={};break}}return s}s.reflectionCreate=reflectionCreate},47044:(r,s,i)=>{"use strict";Object.defineProperty(s,"__esModule",{value:true});s.reflectionEquals=void 0;const a=i(34846);function reflectionEquals(r,s,i){if(s===i)return true;if(!s||!i)return false;for(let c of r.fields){let r=c.localName;let l=c.oneof?s[c.oneof][r]:s[r];let d=c.oneof?i[c.oneof][r]:i[r];switch(c.kind){case"enum":case"scalar":let r=c.kind=="enum"?a.ScalarType.INT32:c.T;if(!(c.repeat?repeatedPrimitiveEq(r,l,d):primitiveEq(r,l,d)))return false;break;case"map":if(!(c.V.kind=="message"?repeatedMsgEq(c.V.T(),A(l),A(d)):repeatedPrimitiveEq(c.V.kind=="enum"?a.ScalarType.INT32:c.V.T,A(l),A(d))))return false;break;case"message":let s=c.T();if(!(c.repeat?repeatedMsgEq(s,l,d):s.equals(l,d)))return false;break}}return true}s.reflectionEquals=reflectionEquals;const A=Object.values;function primitiveEq(r,s,i){if(s===i)return true;if(r!==a.ScalarType.BYTES)return false;let A=s;let c=i;if(A.length!==c.length)return false;for(let r=0;r{"use strict";Object.defineProperty(s,"__esModule",{value:true});s.readMessageOption=s.readFieldOption=s.readFieldOptions=s.normalizeFieldInfo=s.RepeatType=s.LongType=s.ScalarType=void 0;const a=i(29367);var A;(function(r){r[r["DOUBLE"]=1]="DOUBLE";r[r["FLOAT"]=2]="FLOAT";r[r["INT64"]=3]="INT64";r[r["UINT64"]=4]="UINT64";r[r["INT32"]=5]="INT32";r[r["FIXED64"]=6]="FIXED64";r[r["FIXED32"]=7]="FIXED32";r[r["BOOL"]=8]="BOOL";r[r["STRING"]=9]="STRING";r[r["BYTES"]=12]="BYTES";r[r["UINT32"]=13]="UINT32";r[r["SFIXED32"]=15]="SFIXED32";r[r["SFIXED64"]=16]="SFIXED64";r[r["SINT32"]=17]="SINT32";r[r["SINT64"]=18]="SINT64"})(A=s.ScalarType||(s.ScalarType={}));var c;(function(r){r[r["BIGINT"]=0]="BIGINT";r[r["STRING"]=1]="STRING";r[r["NUMBER"]=2]="NUMBER"})(c=s.LongType||(s.LongType={}));var l;(function(r){r[r["NO"]=0]="NO";r[r["PACKED"]=1]="PACKED";r[r["UNPACKED"]=2]="UNPACKED"})(l=s.RepeatType||(s.RepeatType={}));function normalizeFieldInfo(r){var s,i,A,c;r.localName=(s=r.localName)!==null&&s!==void 0?s:a.lowerCamelCase(r.name);r.jsonName=(i=r.jsonName)!==null&&i!==void 0?i:a.lowerCamelCase(r.name);r.repeat=(A=r.repeat)!==null&&A!==void 0?A:l.NO;r.opt=(c=r.opt)!==null&&c!==void 0?c:r.repeat?false:r.oneof?false:r.kind=="message";return r}s.normalizeFieldInfo=normalizeFieldInfo;function readFieldOptions(r,s,i,a){var A;const c=(A=r.fields.find(((r,i)=>r.localName==s||i==s)))===null||A===void 0?void 0:A.options;return c&&c[i]?a.fromJson(c[i]):undefined}s.readFieldOptions=readFieldOptions;function readFieldOption(r,s,i,a){var A;const c=(A=r.fields.find(((r,i)=>r.localName==s||i==s)))===null||A===void 0?void 0:A.options;if(!c){return undefined}const l=c[i];if(l===undefined){return l}return a?a.fromJson(l):l}s.readFieldOption=readFieldOption;function readMessageOption(r,s,i){const a=r.options;const A=a[s];if(A===undefined){return A}return i?i.fromJson(A):A}s.readMessageOption=readMessageOption},19539:(r,s,i)=>{"use strict";Object.defineProperty(s,"__esModule",{value:true});s.ReflectionJsonReader=void 0;const a=i(37432);const A=i(83312);const c=i(34846);const l=i(75511);const d=i(85643);const u=i(42927);class ReflectionJsonReader{constructor(r){this.info=r}prepare(){var r;if(this.fMap===undefined){this.fMap={};const s=(r=this.info.fields)!==null&&r!==void 0?r:[];for(const r of s){this.fMap[r.name]=r;this.fMap[r.jsonName]=r;this.fMap[r.localName]=r}}}assert(r,s,i){if(!r){let r=a.typeofJsonValue(i);if(r=="number"||r=="boolean")r=i.toString();throw new Error(`Cannot parse JSON ${r} for ${this.info.typeName}#${s}`)}}read(r,s,i){this.prepare();const A=[];for(const[l,d]of Object.entries(r)){const r=this.fMap[l];if(!r){if(!i.ignoreUnknownFields)throw new Error(`Found unknown field while reading ${this.info.typeName} from JSON format. JSON key: ${l}`);continue}const u=r.localName;let p;if(r.oneof){if(d===null&&(r.kind!=="enum"||r.T()[0]!=="google.protobuf.NullValue")){continue}if(A.includes(r.oneof))throw new Error(`Multiple members of the oneof group "${r.oneof}" of ${this.info.typeName} are present in JSON.`);A.push(r.oneof);p=s[r.oneof]={oneofKind:u}}else{p=s}if(r.kind=="map"){if(d===null){continue}this.assert(a.isJsonObject(d),r.name,d);const s=p[u];for(const[a,A]of Object.entries(d)){this.assert(A!==null,r.name+" map value",null);let l;switch(r.V.kind){case"message":l=r.V.T().internalJsonRead(A,i);break;case"enum":l=this.enum(r.V.T(),A,r.name,i.ignoreUnknownFields);if(l===false)continue;break;case"scalar":l=this.scalar(A,r.V.T,r.V.L,r.name);break}this.assert(l!==undefined,r.name+" map value",A);let d=a;if(r.K==c.ScalarType.BOOL)d=d=="true"?true:d=="false"?false:d;d=this.scalar(d,r.K,c.LongType.STRING,r.name).toString();s[d]=l}}else if(r.repeat){if(d===null)continue;this.assert(Array.isArray(d),r.name,d);const s=p[u];for(const a of d){this.assert(a!==null,r.name,null);let A;switch(r.kind){case"message":A=r.T().internalJsonRead(a,i);break;case"enum":A=this.enum(r.T(),a,r.name,i.ignoreUnknownFields);if(A===false)continue;break;case"scalar":A=this.scalar(a,r.T,r.L,r.name);break}this.assert(A!==undefined,r.name,d);s.push(A)}}else{switch(r.kind){case"message":if(d===null&&r.T().typeName!="google.protobuf.Value"){this.assert(r.oneof===undefined,r.name+" (oneof member)",null);continue}p[u]=r.T().internalJsonRead(d,i,p[u]);break;case"enum":if(d===null)continue;let s=this.enum(r.T(),d,r.name,i.ignoreUnknownFields);if(s===false)continue;p[u]=s;break;case"scalar":if(d===null)continue;p[u]=this.scalar(d,r.T,r.L,r.name);break}}}}enum(r,s,i,a){if(r[0]=="google.protobuf.NullValue")d.assert(s===null||s==="NULL_VALUE",`Unable to parse field ${this.info.typeName}#${i}, enum ${r[0]} only accepts null.`);if(s===null)return 0;switch(typeof s){case"number":d.assert(Number.isInteger(s),`Unable to parse field ${this.info.typeName}#${i}, enum can only be integral number, got ${s}.`);return s;case"string":let A=s;if(r[2]&&s.substring(0,r[2].length)===r[2])A=s.substring(r[2].length);let c=r[1][A];if(typeof c==="undefined"&&a){return false}d.assert(typeof c=="number",`Unable to parse field ${this.info.typeName}#${i}, enum ${r[0]} has no value for "${s}".`);return c}d.assert(false,`Unable to parse field ${this.info.typeName}#${i}, cannot parse enum value from ${typeof s}".`)}scalar(r,s,i,a){let p;try{switch(s){case c.ScalarType.DOUBLE:case c.ScalarType.FLOAT:if(r===null)return 0;if(r==="NaN")return Number.NaN;if(r==="Infinity")return Number.POSITIVE_INFINITY;if(r==="-Infinity")return Number.NEGATIVE_INFINITY;if(r===""){p="empty string";break}if(typeof r=="string"&&r.trim().length!==r.length){p="extra whitespace";break}if(typeof r!="string"&&typeof r!="number"){break}let a=Number(r);if(Number.isNaN(a)){p="not a number";break}if(!Number.isFinite(a)){p="too large or small";break}if(s==c.ScalarType.FLOAT)d.assertFloat32(a);return a;case c.ScalarType.INT32:case c.ScalarType.FIXED32:case c.ScalarType.SFIXED32:case c.ScalarType.SINT32:case c.ScalarType.UINT32:if(r===null)return 0;let g;if(typeof r=="number")g=r;else if(r==="")p="empty string";else if(typeof r=="string"){if(r.trim().length!==r.length)p="extra whitespace";else g=Number(r)}if(g===undefined)break;if(s==c.ScalarType.UINT32)d.assertUInt32(g);else d.assertInt32(g);return g;case c.ScalarType.INT64:case c.ScalarType.SFIXED64:case c.ScalarType.SINT64:if(r===null)return u.reflectionLongConvert(l.PbLong.ZERO,i);if(typeof r!="number"&&typeof r!="string")break;return u.reflectionLongConvert(l.PbLong.from(r),i);case c.ScalarType.FIXED64:case c.ScalarType.UINT64:if(r===null)return u.reflectionLongConvert(l.PbULong.ZERO,i);if(typeof r!="number"&&typeof r!="string")break;return u.reflectionLongConvert(l.PbULong.from(r),i);case c.ScalarType.BOOL:if(r===null)return false;if(typeof r!=="boolean")break;return r;case c.ScalarType.STRING:if(r===null)return"";if(typeof r!=="string"){p="extra whitespace";break}try{encodeURIComponent(r)}catch(p){p="invalid UTF8";break}return r;case c.ScalarType.BYTES:if(r===null||r==="")return new Uint8Array(0);if(typeof r!=="string")break;return A.base64decode(r)}}catch(r){p=r.message}this.assert(false,a+(p?" - "+p:""),r)}}s.ReflectionJsonReader=ReflectionJsonReader},43667:(r,s,i)=>{"use strict";Object.defineProperty(s,"__esModule",{value:true});s.ReflectionJsonWriter=void 0;const a=i(83312);const A=i(75511);const c=i(34846);const l=i(85643);class ReflectionJsonWriter{constructor(r){var s;this.fields=(s=r.fields)!==null&&s!==void 0?s:[]}write(r,s){const i={},a=r;for(const r of this.fields){if(!r.oneof){let A=this.field(r,a[r.localName],s);if(A!==undefined)i[s.useProtoFieldName?r.name:r.jsonName]=A;continue}const A=a[r.oneof];if(A.oneofKind!==r.localName)continue;const c=r.kind=="scalar"||r.kind=="enum"?Object.assign(Object.assign({},s),{emitDefaultValues:true}):s;let d=this.field(r,A[r.localName],c);l.assert(d!==undefined);i[s.useProtoFieldName?r.name:r.jsonName]=d}return i}field(r,s,i){let a=undefined;if(r.kind=="map"){l.assert(typeof s=="object"&&s!==null);const A={};switch(r.V.kind){case"scalar":for(const[i,a]of Object.entries(s)){const s=this.scalar(r.V.T,a,r.name,false,true);l.assert(s!==undefined);A[i.toString()]=s}break;case"message":const a=r.V.T();for(const[c,d]of Object.entries(s)){const s=this.message(a,d,r.name,i);l.assert(s!==undefined);A[c.toString()]=s}break;case"enum":const c=r.V.T();for(const[a,d]of Object.entries(s)){l.assert(d===undefined||typeof d=="number");const s=this.enum(c,d,r.name,false,true,i.enumAsInteger);l.assert(s!==undefined);A[a.toString()]=s}break}if(i.emitDefaultValues||Object.keys(A).length>0)a=A}else if(r.repeat){l.assert(Array.isArray(s));const A=[];switch(r.kind){case"scalar":for(let i=0;i0||i.emitDefaultValues)a=A}else{switch(r.kind){case"scalar":a=this.scalar(r.T,s,r.name,r.opt,i.emitDefaultValues);break;case"enum":a=this.enum(r.T(),s,r.name,r.opt,i.emitDefaultValues,i.enumAsInteger);break;case"message":a=this.message(r.T(),s,r.name,i);break}}return a}enum(r,s,i,a,A,c){if(r[0]=="google.protobuf.NullValue")return!A&&!a?undefined:null;if(s===undefined){l.assert(a);return undefined}if(s===0&&!A&&!a)return undefined;l.assert(typeof s=="number");l.assert(Number.isInteger(s));if(c||!r[1].hasOwnProperty(s))return s;if(r[2])return r[2]+r[1][s];return r[1][s]}message(r,s,i,a){if(s===undefined)return a.emitDefaultValues?null:undefined;return r.internalJsonWrite(s,a)}scalar(r,s,i,d,u){if(s===undefined){l.assert(d);return undefined}const p=u||d;switch(r){case c.ScalarType.INT32:case c.ScalarType.SFIXED32:case c.ScalarType.SINT32:if(s===0)return p?0:undefined;l.assertInt32(s);return s;case c.ScalarType.FIXED32:case c.ScalarType.UINT32:if(s===0)return p?0:undefined;l.assertUInt32(s);return s;case c.ScalarType.FLOAT:l.assertFloat32(s);case c.ScalarType.DOUBLE:if(s===0)return p?0:undefined;l.assert(typeof s=="number");if(Number.isNaN(s))return"NaN";if(s===Number.POSITIVE_INFINITY)return"Infinity";if(s===Number.NEGATIVE_INFINITY)return"-Infinity";return s;case c.ScalarType.STRING:if(s==="")return p?"":undefined;l.assert(typeof s=="string");return s;case c.ScalarType.BOOL:if(s===false)return p?false:undefined;l.assert(typeof s=="boolean");return s;case c.ScalarType.UINT64:case c.ScalarType.FIXED64:l.assert(typeof s=="number"||typeof s=="string"||typeof s=="bigint");let r=A.PbULong.from(s);if(r.isZero()&&!p)return undefined;return r.toString();case c.ScalarType.INT64:case c.ScalarType.SFIXED64:case c.ScalarType.SINT64:l.assert(typeof s=="number"||typeof s=="string"||typeof s=="bigint");let i=A.PbLong.from(s);if(i.isZero()&&!p)return undefined;return i.toString();case c.ScalarType.BYTES:l.assert(s instanceof Uint8Array);if(!s.byteLength)return p?"":undefined;return a.base64encode(s)}}}s.ReflectionJsonWriter=ReflectionJsonWriter},42927:(r,s,i)=>{"use strict";Object.defineProperty(s,"__esModule",{value:true});s.reflectionLongConvert=void 0;const a=i(34846);function reflectionLongConvert(r,s){switch(s){case a.LongType.BIGINT:return r.toBigInt();case a.LongType.NUMBER:return r.toNumber();default:return r.toString()}}s.reflectionLongConvert=reflectionLongConvert},13622:(r,s)=>{"use strict";Object.defineProperty(s,"__esModule",{value:true});s.reflectionMergePartial=void 0;function reflectionMergePartial(r,s,i){let a,A=i,c;for(let i of r.fields){let r=i.localName;if(i.oneof){const l=A[i.oneof];if((l===null||l===void 0?void 0:l.oneofKind)==undefined){continue}a=l[r];c=s[i.oneof];c.oneofKind=l.oneofKind;if(a==undefined){delete c[r];continue}}else{a=A[r];c=s;if(a==undefined){continue}}if(i.repeat)c[r].length=a.length;switch(i.kind){case"scalar":case"enum":if(i.repeat)for(let s=0;s{"use strict";Object.defineProperty(s,"__esModule",{value:true});s.reflectionScalarDefault=void 0;const a=i(34846);const A=i(42927);const c=i(75511);function reflectionScalarDefault(r,s=a.LongType.STRING){switch(r){case a.ScalarType.BOOL:return false;case a.ScalarType.UINT64:case a.ScalarType.FIXED64:return A.reflectionLongConvert(c.PbULong.ZERO,s);case a.ScalarType.INT64:case a.ScalarType.SFIXED64:case a.ScalarType.SINT64:return A.reflectionLongConvert(c.PbLong.ZERO,s);case a.ScalarType.DOUBLE:case a.ScalarType.FLOAT:return 0;case a.ScalarType.BYTES:return new Uint8Array(0);case a.ScalarType.STRING:return"";default:return 0}}s.reflectionScalarDefault=reflectionScalarDefault},45200:(r,s,i)=>{"use strict";Object.defineProperty(s,"__esModule",{value:true});s.ReflectionTypeCheck=void 0;const a=i(34846);const A=i(610);class ReflectionTypeCheck{constructor(r){var s;this.fields=(s=r.fields)!==null&&s!==void 0?s:[]}prepare(){if(this.data)return;const r=[],s=[],i=[];for(let a of this.fields){if(a.oneof){if(!i.includes(a.oneof)){i.push(a.oneof);r.push(a.oneof);s.push(a.oneof)}}else{s.push(a.localName);switch(a.kind){case"scalar":case"enum":if(!a.opt||a.repeat)r.push(a.localName);break;case"message":if(a.repeat)r.push(a.localName);break;case"map":r.push(a.localName);break}}}this.data={req:r,known:s,oneofs:Object.values(i)}}is(r,s,i=false){if(s<0)return true;if(r===null||r===undefined||typeof r!="object")return false;this.prepare();let a=Object.keys(r),c=this.data;if(a.length!a.includes(r))))return false;if(!i){if(a.some((r=>!c.known.includes(r))))return false}if(s<1){return true}for(const a of c.oneofs){const c=r[a];if(!A.isOneofGroup(c))return false;if(c.oneofKind===undefined)continue;const l=this.fields.find((r=>r.localName===c.oneofKind));if(!l)return false;if(!this.field(c[c.oneofKind],l,i,s))return false}for(const a of this.fields){if(a.oneof!==undefined)continue;if(!this.field(r[a.localName],a,i,s))return false}return true}field(r,s,i,A){let c=s.repeat;switch(s.kind){case"scalar":if(r===undefined)return s.opt;if(c)return this.scalars(r,s.T,A,s.L);return this.scalar(r,s.T,s.L);case"enum":if(r===undefined)return s.opt;if(c)return this.scalars(r,a.ScalarType.INT32,A);return this.scalar(r,a.ScalarType.INT32);case"message":if(r===undefined)return true;if(c)return this.messages(r,s.T(),i,A);return this.message(r,s.T(),i,A);case"map":if(typeof r!="object"||r===null)return false;if(A<2)return true;if(!this.mapKeys(r,s.K,A))return false;switch(s.V.kind){case"scalar":return this.scalars(Object.values(r),s.V.T,A,s.V.L);case"enum":return this.scalars(Object.values(r),a.ScalarType.INT32,A);case"message":return this.messages(Object.values(r),s.V.T(),i,A)}break}return true}message(r,s,i,a){if(i){return s.isAssignable(r,a)}return s.is(r,a)}messages(r,s,i,a){if(!Array.isArray(r))return false;if(a<2)return true;if(i){for(let i=0;iparseInt(r))),s,i);case a.ScalarType.BOOL:return this.scalars(A.slice(0,i).map((r=>r=="true"?true:r=="false"?false:r)),s,i);default:return this.scalars(A,s,i,a.LongType.STRING)}}}s.ReflectionTypeCheck=ReflectionTypeCheck},87351:function(r,s,i){"use strict";var a=this&&this.__createBinding||(Object.create?function(r,s,i,a){if(a===undefined)a=i;var A=Object.getOwnPropertyDescriptor(s,i);if(!A||("get"in A?!s.__esModule:A.writable||A.configurable)){A={enumerable:true,get:function(){return s[i]}}}Object.defineProperty(r,a,A)}:function(r,s,i,a){if(a===undefined)a=i;r[a]=s[i]});var A=this&&this.__setModuleDefault||(Object.create?function(r,s){Object.defineProperty(r,"default",{enumerable:true,value:s})}:function(r,s){r["default"]=s});var c=this&&this.__importStar||function(r){if(r&&r.__esModule)return r;var s={};if(r!=null)for(var i in r)if(i!=="default"&&Object.prototype.hasOwnProperty.call(r,i))a(s,r,i);A(s,r);return s};Object.defineProperty(s,"__esModule",{value:true});s.issue=s.issueCommand=void 0;const l=c(i(22037));const d=i(5278);function issueCommand(r,s,i){const a=new Command(r,s,i);process.stdout.write(a.toString()+l.EOL)}s.issueCommand=issueCommand;function issue(r,s=""){issueCommand(r,{},s)}s.issue=issue;const u="::";class Command{constructor(r,s,i){if(!r){r="missing.command"}this.command=r;this.properties=s;this.message=i}toString(){let r=u+this.command;if(this.properties&&Object.keys(this.properties).length>0){r+=" ";let s=true;for(const i in this.properties){if(this.properties.hasOwnProperty(i)){const a=this.properties[i];if(a){if(s){s=false}else{r+=","}r+=`${i}=${escapeProperty(a)}`}}}}r+=`${u}${escapeData(this.message)}`;return r}}function escapeData(r){return(0,d.toCommandValue)(r).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}function escapeProperty(r){return(0,d.toCommandValue)(r).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}},42186:function(r,s,i){"use strict";var a=this&&this.__createBinding||(Object.create?function(r,s,i,a){if(a===undefined)a=i;var A=Object.getOwnPropertyDescriptor(s,i);if(!A||("get"in A?!s.__esModule:A.writable||A.configurable)){A={enumerable:true,get:function(){return s[i]}}}Object.defineProperty(r,a,A)}:function(r,s,i,a){if(a===undefined)a=i;r[a]=s[i]});var A=this&&this.__setModuleDefault||(Object.create?function(r,s){Object.defineProperty(r,"default",{enumerable:true,value:s})}:function(r,s){r["default"]=s});var c=this&&this.__importStar||function(r){if(r&&r.__esModule)return r;var s={};if(r!=null)for(var i in r)if(i!=="default"&&Object.prototype.hasOwnProperty.call(r,i))a(s,r,i);A(s,r);return s};var l=this&&this.__awaiter||function(r,s,i,a){function adopt(r){return r instanceof i?r:new i((function(s){s(r)}))}return new(i||(i=Promise))((function(i,A){function fulfilled(r){try{step(a.next(r))}catch(r){A(r)}}function rejected(r){try{step(a["throw"](r))}catch(r){A(r)}}function step(r){r.done?i(r.value):adopt(r.value).then(fulfilled,rejected)}step((a=a.apply(r,s||[])).next())}))};Object.defineProperty(s,"__esModule",{value:true});s.platform=s.toPlatformPath=s.toWin32Path=s.toPosixPath=s.markdownSummary=s.summary=s.getIDToken=s.getState=s.saveState=s.group=s.endGroup=s.startGroup=s.info=s.notice=s.warning=s.error=s.debug=s.isDebug=s.setFailed=s.setCommandEcho=s.setOutput=s.getBooleanInput=s.getMultilineInput=s.getInput=s.addPath=s.setSecret=s.exportVariable=s.ExitCode=void 0;const d=i(87351);const u=i(717);const p=i(5278);const g=c(i(22037));const h=c(i(71017));const C=i(98041);var y;(function(r){r[r["Success"]=0]="Success";r[r["Failure"]=1]="Failure"})(y||(s.ExitCode=y={}));function exportVariable(r,s){const i=(0,p.toCommandValue)(s);process.env[r]=i;const a=process.env["GITHUB_ENV"]||"";if(a){return(0,u.issueFileCommand)("ENV",(0,u.prepareKeyValueMessage)(r,s))}(0,d.issueCommand)("set-env",{name:r},i)}s.exportVariable=exportVariable;function setSecret(r){(0,d.issueCommand)("add-mask",{},r)}s.setSecret=setSecret;function addPath(r){const s=process.env["GITHUB_PATH"]||"";if(s){(0,u.issueFileCommand)("PATH",r)}else{(0,d.issueCommand)("add-path",{},r)}process.env["PATH"]=`${r}${h.delimiter}${process.env["PATH"]}`}s.addPath=addPath;function getInput(r,s){const i=process.env[`INPUT_${r.replace(/ /g,"_").toUpperCase()}`]||"";if(s&&s.required&&!i){throw new Error(`Input required and not supplied: ${r}`)}if(s&&s.trimWhitespace===false){return i}return i.trim()}s.getInput=getInput;function getMultilineInput(r,s){const i=getInput(r,s).split("\n").filter((r=>r!==""));if(s&&s.trimWhitespace===false){return i}return i.map((r=>r.trim()))}s.getMultilineInput=getMultilineInput;function getBooleanInput(r,s){const i=["true","True","TRUE"];const a=["false","False","FALSE"];const A=getInput(r,s);if(i.includes(A))return true;if(a.includes(A))return false;throw new TypeError(`Input does not meet YAML 1.2 "Core Schema" specification: ${r}\n`+`Support boolean input list: \`true | True | TRUE | false | False | FALSE\``)}s.getBooleanInput=getBooleanInput;function setOutput(r,s){const i=process.env["GITHUB_OUTPUT"]||"";if(i){return(0,u.issueFileCommand)("OUTPUT",(0,u.prepareKeyValueMessage)(r,s))}process.stdout.write(g.EOL);(0,d.issueCommand)("set-output",{name:r},(0,p.toCommandValue)(s))}s.setOutput=setOutput;function setCommandEcho(r){(0,d.issue)("echo",r?"on":"off")}s.setCommandEcho=setCommandEcho;function setFailed(r){process.exitCode=y.Failure;error(r)}s.setFailed=setFailed;function isDebug(){return process.env["RUNNER_DEBUG"]==="1"}s.isDebug=isDebug;function debug(r){(0,d.issueCommand)("debug",{},r)}s.debug=debug;function error(r,s={}){(0,d.issueCommand)("error",(0,p.toCommandProperties)(s),r instanceof Error?r.toString():r)}s.error=error;function warning(r,s={}){(0,d.issueCommand)("warning",(0,p.toCommandProperties)(s),r instanceof Error?r.toString():r)}s.warning=warning;function notice(r,s={}){(0,d.issueCommand)("notice",(0,p.toCommandProperties)(s),r instanceof Error?r.toString():r)}s.notice=notice;function info(r){process.stdout.write(r+g.EOL)}s.info=info;function startGroup(r){(0,d.issue)("group",r)}s.startGroup=startGroup;function endGroup(){(0,d.issue)("endgroup")}s.endGroup=endGroup;function group(r,s){return l(this,void 0,void 0,(function*(){startGroup(r);let i;try{i=yield s()}finally{endGroup()}return i}))}s.group=group;function saveState(r,s){const i=process.env["GITHUB_STATE"]||"";if(i){return(0,u.issueFileCommand)("STATE",(0,u.prepareKeyValueMessage)(r,s))}(0,d.issueCommand)("save-state",{name:r},(0,p.toCommandValue)(s))}s.saveState=saveState;function getState(r){return process.env[`STATE_${r}`]||""}s.getState=getState;function getIDToken(r){return l(this,void 0,void 0,(function*(){return yield C.OidcClient.getIDToken(r)}))}s.getIDToken=getIDToken;var I=i(81327);Object.defineProperty(s,"summary",{enumerable:true,get:function(){return I.summary}});var B=i(81327);Object.defineProperty(s,"markdownSummary",{enumerable:true,get:function(){return B.markdownSummary}});var b=i(2981);Object.defineProperty(s,"toPosixPath",{enumerable:true,get:function(){return b.toPosixPath}});Object.defineProperty(s,"toWin32Path",{enumerable:true,get:function(){return b.toWin32Path}});Object.defineProperty(s,"toPlatformPath",{enumerable:true,get:function(){return b.toPlatformPath}});s.platform=c(i(85243))},717:function(r,s,i){"use strict";var a=this&&this.__createBinding||(Object.create?function(r,s,i,a){if(a===undefined)a=i;var A=Object.getOwnPropertyDescriptor(s,i);if(!A||("get"in A?!s.__esModule:A.writable||A.configurable)){A={enumerable:true,get:function(){return s[i]}}}Object.defineProperty(r,a,A)}:function(r,s,i,a){if(a===undefined)a=i;r[a]=s[i]});var A=this&&this.__setModuleDefault||(Object.create?function(r,s){Object.defineProperty(r,"default",{enumerable:true,value:s})}:function(r,s){r["default"]=s});var c=this&&this.__importStar||function(r){if(r&&r.__esModule)return r;var s={};if(r!=null)for(var i in r)if(i!=="default"&&Object.prototype.hasOwnProperty.call(r,i))a(s,r,i);A(s,r);return s};Object.defineProperty(s,"__esModule",{value:true});s.prepareKeyValueMessage=s.issueFileCommand=void 0;const l=c(i(6113));const d=c(i(57147));const u=c(i(22037));const p=i(5278);function issueFileCommand(r,s){const i=process.env[`GITHUB_${r}`];if(!i){throw new Error(`Unable to find environment variable for file command ${r}`)}if(!d.existsSync(i)){throw new Error(`Missing file at path: ${i}`)}d.appendFileSync(i,`${(0,p.toCommandValue)(s)}${u.EOL}`,{encoding:"utf8"})}s.issueFileCommand=issueFileCommand;function prepareKeyValueMessage(r,s){const i=`ghadelimiter_${l.randomUUID()}`;const a=(0,p.toCommandValue)(s);if(r.includes(i)){throw new Error(`Unexpected input: name should not contain the delimiter "${i}"`)}if(a.includes(i)){throw new Error(`Unexpected input: value should not contain the delimiter "${i}"`)}return`${r}<<${i}${u.EOL}${a}${u.EOL}${i}`}s.prepareKeyValueMessage=prepareKeyValueMessage},98041:function(r,s,i){"use strict";var a=this&&this.__awaiter||function(r,s,i,a){function adopt(r){return r instanceof i?r:new i((function(s){s(r)}))}return new(i||(i=Promise))((function(i,A){function fulfilled(r){try{step(a.next(r))}catch(r){A(r)}}function rejected(r){try{step(a["throw"](r))}catch(r){A(r)}}function step(r){r.done?i(r.value):adopt(r.value).then(fulfilled,rejected)}step((a=a.apply(r,s||[])).next())}))};Object.defineProperty(s,"__esModule",{value:true});s.OidcClient=void 0;const A=i(96255);const c=i(35526);const l=i(42186);class OidcClient{static createHttpClient(r=true,s=10){const i={allowRetries:r,maxRetries:s};return new A.HttpClient("actions/oidc-client",[new c.BearerCredentialHandler(OidcClient.getRequestToken())],i)}static getRequestToken(){const r=process.env["ACTIONS_ID_TOKEN_REQUEST_TOKEN"];if(!r){throw new Error("Unable to get ACTIONS_ID_TOKEN_REQUEST_TOKEN env variable")}return r}static getIDTokenUrl(){const r=process.env["ACTIONS_ID_TOKEN_REQUEST_URL"];if(!r){throw new Error("Unable to get ACTIONS_ID_TOKEN_REQUEST_URL env variable")}return r}static getCall(r){var s;return a(this,void 0,void 0,(function*(){const i=OidcClient.createHttpClient();const a=yield i.getJson(r).catch((r=>{throw new Error(`Failed to get ID Token. \n \n Error Code : ${r.statusCode}\n \n Error Message: ${r.message}`)}));const A=(s=a.result)===null||s===void 0?void 0:s.value;if(!A){throw new Error("Response json body do not have ID Token field")}return A}))}static getIDToken(r){return a(this,void 0,void 0,(function*(){try{let s=OidcClient.getIDTokenUrl();if(r){const i=encodeURIComponent(r);s=`${s}&audience=${i}`}(0,l.debug)(`ID token url is ${s}`);const i=yield OidcClient.getCall(s);(0,l.setSecret)(i);return i}catch(r){throw new Error(`Error message: ${r.message}`)}}))}}s.OidcClient=OidcClient},2981:function(r,s,i){"use strict";var a=this&&this.__createBinding||(Object.create?function(r,s,i,a){if(a===undefined)a=i;var A=Object.getOwnPropertyDescriptor(s,i);if(!A||("get"in A?!s.__esModule:A.writable||A.configurable)){A={enumerable:true,get:function(){return s[i]}}}Object.defineProperty(r,a,A)}:function(r,s,i,a){if(a===undefined)a=i;r[a]=s[i]});var A=this&&this.__setModuleDefault||(Object.create?function(r,s){Object.defineProperty(r,"default",{enumerable:true,value:s})}:function(r,s){r["default"]=s});var c=this&&this.__importStar||function(r){if(r&&r.__esModule)return r;var s={};if(r!=null)for(var i in r)if(i!=="default"&&Object.prototype.hasOwnProperty.call(r,i))a(s,r,i);A(s,r);return s};Object.defineProperty(s,"__esModule",{value:true});s.toPlatformPath=s.toWin32Path=s.toPosixPath=void 0;const l=c(i(71017));function toPosixPath(r){return r.replace(/[\\]/g,"/")}s.toPosixPath=toPosixPath;function toWin32Path(r){return r.replace(/[/]/g,"\\")}s.toWin32Path=toWin32Path;function toPlatformPath(r){return r.replace(/[/\\]/g,l.sep)}s.toPlatformPath=toPlatformPath},85243:function(r,s,i){"use strict";var a=this&&this.__createBinding||(Object.create?function(r,s,i,a){if(a===undefined)a=i;var A=Object.getOwnPropertyDescriptor(s,i);if(!A||("get"in A?!s.__esModule:A.writable||A.configurable)){A={enumerable:true,get:function(){return s[i]}}}Object.defineProperty(r,a,A)}:function(r,s,i,a){if(a===undefined)a=i;r[a]=s[i]});var A=this&&this.__setModuleDefault||(Object.create?function(r,s){Object.defineProperty(r,"default",{enumerable:true,value:s})}:function(r,s){r["default"]=s});var c=this&&this.__importStar||function(r){if(r&&r.__esModule)return r;var s={};if(r!=null)for(var i in r)if(i!=="default"&&Object.prototype.hasOwnProperty.call(r,i))a(s,r,i);A(s,r);return s};var l=this&&this.__awaiter||function(r,s,i,a){function adopt(r){return r instanceof i?r:new i((function(s){s(r)}))}return new(i||(i=Promise))((function(i,A){function fulfilled(r){try{step(a.next(r))}catch(r){A(r)}}function rejected(r){try{step(a["throw"](r))}catch(r){A(r)}}function step(r){r.done?i(r.value):adopt(r.value).then(fulfilled,rejected)}step((a=a.apply(r,s||[])).next())}))};var d=this&&this.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(s,"__esModule",{value:true});s.getDetails=s.isLinux=s.isMacOS=s.isWindows=s.arch=s.platform=void 0;const u=d(i(22037));const p=c(i(71514));const getWindowsInfo=()=>l(void 0,void 0,void 0,(function*(){const{stdout:r}=yield p.getExecOutput('powershell -command "(Get-CimInstance -ClassName Win32_OperatingSystem).Version"',undefined,{silent:true});const{stdout:s}=yield p.getExecOutput('powershell -command "(Get-CimInstance -ClassName Win32_OperatingSystem).Caption"',undefined,{silent:true});return{name:s.trim(),version:r.trim()}}));const getMacOsInfo=()=>l(void 0,void 0,void 0,(function*(){var r,s,i,a;const{stdout:A}=yield p.getExecOutput("sw_vers",undefined,{silent:true});const c=(s=(r=A.match(/ProductVersion:\s*(.+)/))===null||r===void 0?void 0:r[1])!==null&&s!==void 0?s:"";const l=(a=(i=A.match(/ProductName:\s*(.+)/))===null||i===void 0?void 0:i[1])!==null&&a!==void 0?a:"";return{name:l,version:c}}));const getLinuxInfo=()=>l(void 0,void 0,void 0,(function*(){const{stdout:r}=yield p.getExecOutput("lsb_release",["-i","-r","-s"],{silent:true});const[s,i]=r.trim().split("\n");return{name:s,version:i}}));s.platform=u.default.platform();s.arch=u.default.arch();s.isWindows=s.platform==="win32";s.isMacOS=s.platform==="darwin";s.isLinux=s.platform==="linux";function getDetails(){return l(this,void 0,void 0,(function*(){return Object.assign(Object.assign({},yield s.isWindows?getWindowsInfo():s.isMacOS?getMacOsInfo():getLinuxInfo()),{platform:s.platform,arch:s.arch,isWindows:s.isWindows,isMacOS:s.isMacOS,isLinux:s.isLinux})}))}s.getDetails=getDetails},81327:function(r,s,i){"use strict";var a=this&&this.__awaiter||function(r,s,i,a){function adopt(r){return r instanceof i?r:new i((function(s){s(r)}))}return new(i||(i=Promise))((function(i,A){function fulfilled(r){try{step(a.next(r))}catch(r){A(r)}}function rejected(r){try{step(a["throw"](r))}catch(r){A(r)}}function step(r){r.done?i(r.value):adopt(r.value).then(fulfilled,rejected)}step((a=a.apply(r,s||[])).next())}))};Object.defineProperty(s,"__esModule",{value:true});s.summary=s.markdownSummary=s.SUMMARY_DOCS_URL=s.SUMMARY_ENV_VAR=void 0;const A=i(22037);const c=i(57147);const{access:l,appendFile:d,writeFile:u}=c.promises;s.SUMMARY_ENV_VAR="GITHUB_STEP_SUMMARY";s.SUMMARY_DOCS_URL="https://docs.github.com/actions/using-workflows/workflow-commands-for-github-actions#adding-a-job-summary";class Summary{constructor(){this._buffer=""}filePath(){return a(this,void 0,void 0,(function*(){if(this._filePath){return this._filePath}const r=process.env[s.SUMMARY_ENV_VAR];if(!r){throw new Error(`Unable to find environment variable for $${s.SUMMARY_ENV_VAR}. Check if your runtime environment supports job summaries.`)}try{yield l(r,c.constants.R_OK|c.constants.W_OK)}catch(s){throw new Error(`Unable to access summary file: '${r}'. Check if the file has correct read/write permissions.`)}this._filePath=r;return this._filePath}))}wrap(r,s,i={}){const a=Object.entries(i).map((([r,s])=>` ${r}="${s}"`)).join("");if(!s){return`<${r}${a}>`}return`<${r}${a}>${s}`}write(r){return a(this,void 0,void 0,(function*(){const s=!!(r===null||r===void 0?void 0:r.overwrite);const i=yield this.filePath();const a=s?u:d;yield a(i,this._buffer,{encoding:"utf8"});return this.emptyBuffer()}))}clear(){return a(this,void 0,void 0,(function*(){return this.emptyBuffer().write({overwrite:true})}))}stringify(){return this._buffer}isEmptyBuffer(){return this._buffer.length===0}emptyBuffer(){this._buffer="";return this}addRaw(r,s=false){this._buffer+=r;return s?this.addEOL():this}addEOL(){return this.addRaw(A.EOL)}addCodeBlock(r,s){const i=Object.assign({},s&&{lang:s});const a=this.wrap("pre",this.wrap("code",r),i);return this.addRaw(a).addEOL()}addList(r,s=false){const i=s?"ol":"ul";const a=r.map((r=>this.wrap("li",r))).join("");const A=this.wrap(i,a);return this.addRaw(A).addEOL()}addTable(r){const s=r.map((r=>{const s=r.map((r=>{if(typeof r==="string"){return this.wrap("td",r)}const{header:s,data:i,colspan:a,rowspan:A}=r;const c=s?"th":"td";const l=Object.assign(Object.assign({},a&&{colspan:a}),A&&{rowspan:A});return this.wrap(c,i,l)})).join("");return this.wrap("tr",s)})).join("");const i=this.wrap("table",s);return this.addRaw(i).addEOL()}addDetails(r,s){const i=this.wrap("details",this.wrap("summary",r)+s);return this.addRaw(i).addEOL()}addImage(r,s,i){const{width:a,height:A}=i||{};const c=Object.assign(Object.assign({},a&&{width:a}),A&&{height:A});const l=this.wrap("img",null,Object.assign({src:r,alt:s},c));return this.addRaw(l).addEOL()}addHeading(r,s){const i=`h${s}`;const a=["h1","h2","h3","h4","h5","h6"].includes(i)?i:"h1";const A=this.wrap(a,r);return this.addRaw(A).addEOL()}addSeparator(){const r=this.wrap("hr",null);return this.addRaw(r).addEOL()}addBreak(){const r=this.wrap("br",null);return this.addRaw(r).addEOL()}addQuote(r,s){const i=Object.assign({},s&&{cite:s});const a=this.wrap("blockquote",r,i);return this.addRaw(a).addEOL()}addLink(r,s){const i=this.wrap("a",r,{href:s});return this.addRaw(i).addEOL()}}const p=new Summary;s.markdownSummary=p;s.summary=p},5278:(r,s)=>{"use strict";Object.defineProperty(s,"__esModule",{value:true});s.toCommandProperties=s.toCommandValue=void 0;function toCommandValue(r){if(r===null||r===undefined){return""}else if(typeof r==="string"||r instanceof String){return r}return JSON.stringify(r)}s.toCommandValue=toCommandValue;function toCommandProperties(r){if(!Object.keys(r).length){return{}}return{title:r.title,file:r.file,line:r.startLine,endLine:r.endLine,col:r.startColumn,endColumn:r.endColumn}}s.toCommandProperties=toCommandProperties},71514:function(r,s,i){"use strict";var a=this&&this.__createBinding||(Object.create?function(r,s,i,a){if(a===undefined)a=i;Object.defineProperty(r,a,{enumerable:true,get:function(){return s[i]}})}:function(r,s,i,a){if(a===undefined)a=i;r[a]=s[i]});var A=this&&this.__setModuleDefault||(Object.create?function(r,s){Object.defineProperty(r,"default",{enumerable:true,value:s})}:function(r,s){r["default"]=s});var c=this&&this.__importStar||function(r){if(r&&r.__esModule)return r;var s={};if(r!=null)for(var i in r)if(i!=="default"&&Object.hasOwnProperty.call(r,i))a(s,r,i);A(s,r);return s};var l=this&&this.__awaiter||function(r,s,i,a){function adopt(r){return r instanceof i?r:new i((function(s){s(r)}))}return new(i||(i=Promise))((function(i,A){function fulfilled(r){try{step(a.next(r))}catch(r){A(r)}}function rejected(r){try{step(a["throw"](r))}catch(r){A(r)}}function step(r){r.done?i(r.value):adopt(r.value).then(fulfilled,rejected)}step((a=a.apply(r,s||[])).next())}))};Object.defineProperty(s,"__esModule",{value:true});s.getExecOutput=s.exec=void 0;const d=i(71576);const u=c(i(88159));function exec(r,s,i){return l(this,void 0,void 0,(function*(){const a=u.argStringToArray(r);if(a.length===0){throw new Error(`Parameter 'commandLine' cannot be null or empty.`)}const A=a[0];s=a.slice(1).concat(s||[]);const c=new u.ToolRunner(A,s,i);return c.exec()}))}s.exec=exec;function getExecOutput(r,s,i){var a,A;return l(this,void 0,void 0,(function*(){let c="";let l="";const u=new d.StringDecoder("utf8");const p=new d.StringDecoder("utf8");const g=(a=i===null||i===void 0?void 0:i.listeners)===null||a===void 0?void 0:a.stdout;const h=(A=i===null||i===void 0?void 0:i.listeners)===null||A===void 0?void 0:A.stderr;const stdErrListener=r=>{l+=p.write(r);if(h){h(r)}};const stdOutListener=r=>{c+=u.write(r);if(g){g(r)}};const C=Object.assign(Object.assign({},i===null||i===void 0?void 0:i.listeners),{stdout:stdOutListener,stderr:stdErrListener});const y=yield exec(r,s,Object.assign(Object.assign({},i),{listeners:C}));c+=u.end();l+=p.end();return{exitCode:y,stdout:c,stderr:l}}))}s.getExecOutput=getExecOutput},88159:function(r,s,i){"use strict";var a=this&&this.__createBinding||(Object.create?function(r,s,i,a){if(a===undefined)a=i;Object.defineProperty(r,a,{enumerable:true,get:function(){return s[i]}})}:function(r,s,i,a){if(a===undefined)a=i;r[a]=s[i]});var A=this&&this.__setModuleDefault||(Object.create?function(r,s){Object.defineProperty(r,"default",{enumerable:true,value:s})}:function(r,s){r["default"]=s});var c=this&&this.__importStar||function(r){if(r&&r.__esModule)return r;var s={};if(r!=null)for(var i in r)if(i!=="default"&&Object.hasOwnProperty.call(r,i))a(s,r,i);A(s,r);return s};var l=this&&this.__awaiter||function(r,s,i,a){function adopt(r){return r instanceof i?r:new i((function(s){s(r)}))}return new(i||(i=Promise))((function(i,A){function fulfilled(r){try{step(a.next(r))}catch(r){A(r)}}function rejected(r){try{step(a["throw"](r))}catch(r){A(r)}}function step(r){r.done?i(r.value):adopt(r.value).then(fulfilled,rejected)}step((a=a.apply(r,s||[])).next())}))};Object.defineProperty(s,"__esModule",{value:true});s.argStringToArray=s.ToolRunner=void 0;const d=c(i(22037));const u=c(i(82361));const p=c(i(32081));const g=c(i(71017));const h=c(i(47351));const C=c(i(81962));const y=i(39512);const I=process.platform==="win32";class ToolRunner extends u.EventEmitter{constructor(r,s,i){super();if(!r){throw new Error("Parameter 'toolPath' cannot be null or empty.")}this.toolPath=r;this.args=s||[];this.options=i||{}}_debug(r){if(this.options.listeners&&this.options.listeners.debug){this.options.listeners.debug(r)}}_getCommandString(r,s){const i=this._getSpawnFileName();const a=this._getSpawnArgs(r);let A=s?"":"[command]";if(I){if(this._isCmdFile()){A+=i;for(const r of a){A+=` ${r}`}}else if(r.windowsVerbatimArguments){A+=`"${i}"`;for(const r of a){A+=` ${r}`}}else{A+=this._windowsQuoteCmdArg(i);for(const r of a){A+=` ${this._windowsQuoteCmdArg(r)}`}}}else{A+=i;for(const r of a){A+=` ${r}`}}return A}_processLineBuffer(r,s,i){try{let a=s+r.toString();let A=a.indexOf(d.EOL);while(A>-1){const r=a.substring(0,A);i(r);a=a.substring(A+d.EOL.length);A=a.indexOf(d.EOL)}return a}catch(r){this._debug(`error processing line. Failed with error ${r}`);return""}}_getSpawnFileName(){if(I){if(this._isCmdFile()){return process.env["COMSPEC"]||"cmd.exe"}}return this.toolPath}_getSpawnArgs(r){if(I){if(this._isCmdFile()){let s=`/D /S /C "${this._windowsQuoteCmdArg(this.toolPath)}`;for(const i of this.args){s+=" ";s+=r.windowsVerbatimArguments?i:this._windowsQuoteCmdArg(i)}s+='"';return[s]}}return this.args}_endsWith(r,s){return r.endsWith(s)}_isCmdFile(){const r=this.toolPath.toUpperCase();return this._endsWith(r,".CMD")||this._endsWith(r,".BAT")}_windowsQuoteCmdArg(r){if(!this._isCmdFile()){return this._uvQuoteCmdArg(r)}if(!r){return'""'}const s=[" ","\t","&","(",")","[","]","{","}","^","=",";","!","'","+",",","`","~","|","<",">",'"'];let i=false;for(const a of r){if(s.some((r=>r===a))){i=true;break}}if(!i){return r}let a='"';let A=true;for(let s=r.length;s>0;s--){a+=r[s-1];if(A&&r[s-1]==="\\"){a+="\\"}else if(r[s-1]==='"'){A=true;a+='"'}else{A=false}}a+='"';return a.split("").reverse().join("")}_uvQuoteCmdArg(r){if(!r){return'""'}if(!r.includes(" ")&&!r.includes("\t")&&!r.includes('"')){return r}if(!r.includes('"')&&!r.includes("\\")){return`"${r}"`}let s='"';let i=true;for(let a=r.length;a>0;a--){s+=r[a-1];if(i&&r[a-1]==="\\"){s+="\\"}else if(r[a-1]==='"'){i=true;s+="\\"}else{i=false}}s+='"';return s.split("").reverse().join("")}_cloneExecOptions(r){r=r||{};const s={cwd:r.cwd||process.cwd(),env:r.env||process.env,silent:r.silent||false,windowsVerbatimArguments:r.windowsVerbatimArguments||false,failOnStdErr:r.failOnStdErr||false,ignoreReturnCode:r.ignoreReturnCode||false,delay:r.delay||1e4};s.outStream=r.outStream||process.stdout;s.errStream=r.errStream||process.stderr;return s}_getSpawnOptions(r,s){r=r||{};const i={};i.cwd=r.cwd;i.env=r.env;i["windowsVerbatimArguments"]=r.windowsVerbatimArguments||this._isCmdFile();if(r.windowsVerbatimArguments){i.argv0=`"${s}"`}return i}exec(){return l(this,void 0,void 0,(function*(){if(!C.isRooted(this.toolPath)&&(this.toolPath.includes("/")||I&&this.toolPath.includes("\\"))){this.toolPath=g.resolve(process.cwd(),this.options.cwd||process.cwd(),this.toolPath)}this.toolPath=yield h.which(this.toolPath,true);return new Promise(((r,s)=>l(this,void 0,void 0,(function*(){this._debug(`exec tool: ${this.toolPath}`);this._debug("arguments:");for(const r of this.args){this._debug(` ${r}`)}const i=this._cloneExecOptions(this.options);if(!i.silent&&i.outStream){i.outStream.write(this._getCommandString(i)+d.EOL)}const a=new ExecState(i,this.toolPath);a.on("debug",(r=>{this._debug(r)}));if(this.options.cwd&&!(yield C.exists(this.options.cwd))){return s(new Error(`The cwd: ${this.options.cwd} does not exist!`))}const A=this._getSpawnFileName();const c=p.spawn(A,this._getSpawnArgs(i),this._getSpawnOptions(this.options,A));let l="";if(c.stdout){c.stdout.on("data",(r=>{if(this.options.listeners&&this.options.listeners.stdout){this.options.listeners.stdout(r)}if(!i.silent&&i.outStream){i.outStream.write(r)}l=this._processLineBuffer(r,l,(r=>{if(this.options.listeners&&this.options.listeners.stdline){this.options.listeners.stdline(r)}}))}))}let u="";if(c.stderr){c.stderr.on("data",(r=>{a.processStderr=true;if(this.options.listeners&&this.options.listeners.stderr){this.options.listeners.stderr(r)}if(!i.silent&&i.errStream&&i.outStream){const s=i.failOnStdErr?i.errStream:i.outStream;s.write(r)}u=this._processLineBuffer(r,u,(r=>{if(this.options.listeners&&this.options.listeners.errline){this.options.listeners.errline(r)}}))}))}c.on("error",(r=>{a.processError=r.message;a.processExited=true;a.processClosed=true;a.CheckComplete()}));c.on("exit",(r=>{a.processExitCode=r;a.processExited=true;this._debug(`Exit code ${r} received from tool '${this.toolPath}'`);a.CheckComplete()}));c.on("close",(r=>{a.processExitCode=r;a.processExited=true;a.processClosed=true;this._debug(`STDIO streams have closed for tool '${this.toolPath}'`);a.CheckComplete()}));a.on("done",((i,a)=>{if(l.length>0){this.emit("stdline",l)}if(u.length>0){this.emit("errline",u)}c.removeAllListeners();if(i){s(i)}else{r(a)}}));if(this.options.input){if(!c.stdin){throw new Error("child process missing stdin")}c.stdin.end(this.options.input)}}))))}))}}s.ToolRunner=ToolRunner;function argStringToArray(r){const s=[];let i=false;let a=false;let A="";function append(r){if(a&&r!=='"'){A+="\\"}A+=r;a=false}for(let c=0;c0){s.push(A);A=""}continue}append(l)}if(A.length>0){s.push(A.trim())}return s}s.argStringToArray=argStringToArray;class ExecState extends u.EventEmitter{constructor(r,s){super();this.processClosed=false;this.processError="";this.processExitCode=0;this.processExited=false;this.processStderr=false;this.delay=1e4;this.done=false;this.timeout=null;if(!s){throw new Error("toolPath must not be empty")}this.options=r;this.toolPath=s;if(r.delay){this.delay=r.delay}}CheckComplete(){if(this.done){return}if(this.processClosed){this._setResult()}else if(this.processExited){this.timeout=y.setTimeout(ExecState.HandleTimeout,this.delay,this)}}_debug(r){this.emit("debug",r)}_setResult(){let r;if(this.processExited){if(this.processError){r=new Error(`There was an error when attempting to execute the process '${this.toolPath}'. This may indicate the process failed to start. Error: ${this.processError}`)}else if(this.processExitCode!==0&&!this.options.ignoreReturnCode){r=new Error(`The process '${this.toolPath}' failed with exit code ${this.processExitCode}`)}else if(this.processStderr&&this.options.failOnStdErr){r=new Error(`The process '${this.toolPath}' failed because one or more lines were written to the STDERR stream`)}}if(this.timeout){clearTimeout(this.timeout);this.timeout=null}this.done=true;this.emit("done",r,this.processExitCode)}static HandleTimeout(r){if(r.done){return}if(!r.processClosed&&r.processExited){const s=`The STDIO streams did not close within ${r.delay/1e3} seconds of the exit event from process '${r.toolPath}'. This may indicate a child process inherited the STDIO streams and has not yet exited.`;r._debug(s)}r._setResult()}}},74087:(r,s,i)=>{"use strict";Object.defineProperty(s,"__esModule",{value:true});s.Context=void 0;const a=i(57147);const A=i(22037);class Context{constructor(){var r,s,i;this.payload={};if(process.env.GITHUB_EVENT_PATH){if(a.existsSync(process.env.GITHUB_EVENT_PATH)){this.payload=JSON.parse(a.readFileSync(process.env.GITHUB_EVENT_PATH,{encoding:"utf8"}))}else{const r=process.env.GITHUB_EVENT_PATH;process.stdout.write(`GITHUB_EVENT_PATH ${r} does not exist${A.EOL}`)}}this.eventName=process.env.GITHUB_EVENT_NAME;this.sha=process.env.GITHUB_SHA;this.ref=process.env.GITHUB_REF;this.workflow=process.env.GITHUB_WORKFLOW;this.action=process.env.GITHUB_ACTION;this.actor=process.env.GITHUB_ACTOR;this.job=process.env.GITHUB_JOB;this.runNumber=parseInt(process.env.GITHUB_RUN_NUMBER,10);this.runId=parseInt(process.env.GITHUB_RUN_ID,10);this.apiUrl=(r=process.env.GITHUB_API_URL)!==null&&r!==void 0?r:`https://api.github.com`;this.serverUrl=(s=process.env.GITHUB_SERVER_URL)!==null&&s!==void 0?s:`https://github.com`;this.graphqlUrl=(i=process.env.GITHUB_GRAPHQL_URL)!==null&&i!==void 0?i:`https://api.github.com/graphql`}get issue(){const r=this.payload;return Object.assign(Object.assign({},this.repo),{number:(r.issue||r.pull_request||r).number})}get repo(){if(process.env.GITHUB_REPOSITORY){const[r,s]=process.env.GITHUB_REPOSITORY.split("/");return{owner:r,repo:s}}if(this.payload.repository){return{owner:this.payload.repository.owner.login,repo:this.payload.repository.name}}throw new Error("context.repo requires a GITHUB_REPOSITORY environment variable like 'owner/repo'")}}s.Context=Context},95438:function(r,s,i){"use strict";var a=this&&this.__createBinding||(Object.create?function(r,s,i,a){if(a===undefined)a=i;Object.defineProperty(r,a,{enumerable:true,get:function(){return s[i]}})}:function(r,s,i,a){if(a===undefined)a=i;r[a]=s[i]});var A=this&&this.__setModuleDefault||(Object.create?function(r,s){Object.defineProperty(r,"default",{enumerable:true,value:s})}:function(r,s){r["default"]=s});var c=this&&this.__importStar||function(r){if(r&&r.__esModule)return r;var s={};if(r!=null)for(var i in r)if(i!=="default"&&Object.hasOwnProperty.call(r,i))a(s,r,i);A(s,r);return s};Object.defineProperty(s,"__esModule",{value:true});s.getOctokit=s.context=void 0;const l=c(i(74087));const d=i(73030);s.context=new l.Context;function getOctokit(r,s,...i){const a=d.GitHub.plugin(...i);return new a(d.getOctokitOptions(r,s))}s.getOctokit=getOctokit},47914:function(r,s,i){"use strict";var a=this&&this.__createBinding||(Object.create?function(r,s,i,a){if(a===undefined)a=i;Object.defineProperty(r,a,{enumerable:true,get:function(){return s[i]}})}:function(r,s,i,a){if(a===undefined)a=i;r[a]=s[i]});var A=this&&this.__setModuleDefault||(Object.create?function(r,s){Object.defineProperty(r,"default",{enumerable:true,value:s})}:function(r,s){r["default"]=s});var c=this&&this.__importStar||function(r){if(r&&r.__esModule)return r;var s={};if(r!=null)for(var i in r)if(i!=="default"&&Object.hasOwnProperty.call(r,i))a(s,r,i);A(s,r);return s};Object.defineProperty(s,"__esModule",{value:true});s.getApiBaseUrl=s.getProxyAgent=s.getAuthString=void 0;const l=c(i(96255));function getAuthString(r,s){if(!r&&!s.auth){throw new Error("Parameter token or opts.auth is required")}else if(r&&s.auth){throw new Error("Parameters token and opts.auth may not both be specified")}return typeof s.auth==="string"?s.auth:`token ${r}`}s.getAuthString=getAuthString;function getProxyAgent(r){const s=new l.HttpClient;return s.getAgent(r)}s.getProxyAgent=getProxyAgent;function getApiBaseUrl(){return process.env["GITHUB_API_URL"]||"https://api.github.com"}s.getApiBaseUrl=getApiBaseUrl},73030:function(r,s,i){"use strict";var a=this&&this.__createBinding||(Object.create?function(r,s,i,a){if(a===undefined)a=i;Object.defineProperty(r,a,{enumerable:true,get:function(){return s[i]}})}:function(r,s,i,a){if(a===undefined)a=i;r[a]=s[i]});var A=this&&this.__setModuleDefault||(Object.create?function(r,s){Object.defineProperty(r,"default",{enumerable:true,value:s})}:function(r,s){r["default"]=s});var c=this&&this.__importStar||function(r){if(r&&r.__esModule)return r;var s={};if(r!=null)for(var i in r)if(i!=="default"&&Object.hasOwnProperty.call(r,i))a(s,r,i);A(s,r);return s};Object.defineProperty(s,"__esModule",{value:true});s.getOctokitOptions=s.GitHub=s.defaults=s.context=void 0;const l=c(i(74087));const d=c(i(47914));const u=i(76762);const p=i(83044);const g=i(64193);s.context=new l.Context;const h=d.getApiBaseUrl();s.defaults={baseUrl:h,request:{agent:d.getProxyAgent(h)}};s.GitHub=u.Octokit.plugin(p.restEndpointMethods,g.paginateRest).defaults(s.defaults);function getOctokitOptions(r,s){const i=Object.assign({},s||{});const a=d.getAuthString(r,i);if(a){i.auth=a}return i}s.getOctokitOptions=getOctokitOptions},28090:function(r,s,i){"use strict";var a=this&&this.__awaiter||function(r,s,i,a){function adopt(r){return r instanceof i?r:new i((function(s){s(r)}))}return new(i||(i=Promise))((function(i,A){function fulfilled(r){try{step(a.next(r))}catch(r){A(r)}}function rejected(r){try{step(a["throw"](r))}catch(r){A(r)}}function step(r){r.done?i(r.value):adopt(r.value).then(fulfilled,rejected)}step((a=a.apply(r,s||[])).next())}))};Object.defineProperty(s,"__esModule",{value:true});s.create=void 0;const A=i(28298);function create(r,s){return a(this,void 0,void 0,(function*(){return yield A.DefaultGlobber.create(r,s)}))}s.create=create},51026:function(r,s,i){"use strict";var a=this&&this.__createBinding||(Object.create?function(r,s,i,a){if(a===undefined)a=i;Object.defineProperty(r,a,{enumerable:true,get:function(){return s[i]}})}:function(r,s,i,a){if(a===undefined)a=i;r[a]=s[i]});var A=this&&this.__setModuleDefault||(Object.create?function(r,s){Object.defineProperty(r,"default",{enumerable:true,value:s})}:function(r,s){r["default"]=s});var c=this&&this.__importStar||function(r){if(r&&r.__esModule)return r;var s={};if(r!=null)for(var i in r)if(i!=="default"&&Object.hasOwnProperty.call(r,i))a(s,r,i);A(s,r);return s};Object.defineProperty(s,"__esModule",{value:true});s.getOptions=void 0;const l=c(i(51967));function getOptions(r){const s={followSymbolicLinks:true,implicitDescendants:true,omitBrokenSymbolicLinks:true};if(r){if(typeof r.followSymbolicLinks==="boolean"){s.followSymbolicLinks=r.followSymbolicLinks;l.debug(`followSymbolicLinks '${s.followSymbolicLinks}'`)}if(typeof r.implicitDescendants==="boolean"){s.implicitDescendants=r.implicitDescendants;l.debug(`implicitDescendants '${s.implicitDescendants}'`)}if(typeof r.omitBrokenSymbolicLinks==="boolean"){s.omitBrokenSymbolicLinks=r.omitBrokenSymbolicLinks;l.debug(`omitBrokenSymbolicLinks '${s.omitBrokenSymbolicLinks}'`)}}return s}s.getOptions=getOptions},28298:function(r,s,i){"use strict";var a=this&&this.__createBinding||(Object.create?function(r,s,i,a){if(a===undefined)a=i;Object.defineProperty(r,a,{enumerable:true,get:function(){return s[i]}})}:function(r,s,i,a){if(a===undefined)a=i;r[a]=s[i]});var A=this&&this.__setModuleDefault||(Object.create?function(r,s){Object.defineProperty(r,"default",{enumerable:true,value:s})}:function(r,s){r["default"]=s});var c=this&&this.__importStar||function(r){if(r&&r.__esModule)return r;var s={};if(r!=null)for(var i in r)if(i!=="default"&&Object.hasOwnProperty.call(r,i))a(s,r,i);A(s,r);return s};var l=this&&this.__awaiter||function(r,s,i,a){function adopt(r){return r instanceof i?r:new i((function(s){s(r)}))}return new(i||(i=Promise))((function(i,A){function fulfilled(r){try{step(a.next(r))}catch(r){A(r)}}function rejected(r){try{step(a["throw"](r))}catch(r){A(r)}}function step(r){r.done?i(r.value):adopt(r.value).then(fulfilled,rejected)}step((a=a.apply(r,s||[])).next())}))};var d=this&&this.__asyncValues||function(r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var s=r[Symbol.asyncIterator],i;return s?s.call(r):(r=typeof __values==="function"?__values(r):r[Symbol.iterator](),i={},verb("next"),verb("throw"),verb("return"),i[Symbol.asyncIterator]=function(){return this},i);function verb(s){i[s]=r[s]&&function(i){return new Promise((function(a,A){i=r[s](i),settle(a,A,i.done,i.value)}))}}function settle(r,s,i,a){Promise.resolve(a).then((function(s){r({value:s,done:i})}),s)}};var u=this&&this.__await||function(r){return this instanceof u?(this.v=r,this):new u(r)};var p=this&&this.__asyncGenerator||function(r,s,i){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var a=i.apply(r,s||[]),A,c=[];return A={},verb("next"),verb("throw"),verb("return"),A[Symbol.asyncIterator]=function(){return this},A;function verb(r){if(a[r])A[r]=function(s){return new Promise((function(i,a){c.push([r,s,i,a])>1||resume(r,s)}))}}function resume(r,s){try{step(a[r](s))}catch(r){settle(c[0][3],r)}}function step(r){r.value instanceof u?Promise.resolve(r.value.v).then(fulfill,reject):settle(c[0][2],r)}function fulfill(r){resume("next",r)}function reject(r){resume("throw",r)}function settle(r,s){if(r(s),c.shift(),c.length)resume(c[0][0],c[0][1])}};Object.defineProperty(s,"__esModule",{value:true});s.DefaultGlobber=void 0;const g=c(i(51967));const h=c(i(57147));const C=c(i(51026));const y=c(i(71017));const I=c(i(29005));const B=i(81063);const b=i(64536);const Q=i(89117);const w=process.platform==="win32";class DefaultGlobber{constructor(r){this.patterns=[];this.searchPaths=[];this.options=C.getOptions(r)}getSearchPaths(){return this.searchPaths.slice()}glob(){var r,s;return l(this,void 0,void 0,(function*(){const i=[];try{for(var a=d(this.globGenerator()),A;A=yield a.next(),!A.done;){const r=A.value;i.push(r)}}catch(s){r={error:s}}finally{try{if(A&&!A.done&&(s=a.return))yield s.call(a)}finally{if(r)throw r.error}}return i}))}globGenerator(){return p(this,arguments,(function*globGenerator_1(){const r=C.getOptions(this.options);const s=[];for(const i of this.patterns){s.push(i);if(r.implicitDescendants&&(i.trailingSeparator||i.segments[i.segments.length-1]!=="**")){s.push(new b.Pattern(i.negate,true,i.segments.concat("**")))}}const i=[];for(const r of I.getSearchPaths(s)){g.debug(`Search path '${r}'`);try{yield u(h.promises.lstat(r))}catch(r){if(r.code==="ENOENT"){continue}throw r}i.unshift(new Q.SearchState(r,1))}const a=[];while(i.length){const A=i.pop();const c=I.match(s,A.path);const l=!!c||I.partialMatch(s,A.path);if(!c&&!l){continue}const d=yield u(DefaultGlobber.stat(A,r,a));if(!d){continue}if(d.isDirectory()){if(c&B.MatchKind.Directory){yield yield u(A.path)}else if(!l){continue}const r=A.level+1;const s=(yield u(h.promises.readdir(A.path))).map((s=>new Q.SearchState(y.join(A.path,s),r)));i.push(...s.reverse())}else if(c&B.MatchKind.File){yield yield u(A.path)}}}))}static create(r,s){return l(this,void 0,void 0,(function*(){const i=new DefaultGlobber(s);if(w){r=r.replace(/\r\n/g,"\n");r=r.replace(/\r/g,"\n")}const a=r.split("\n").map((r=>r.trim()));for(const r of a){if(!r||r.startsWith("#")){continue}else{i.patterns.push(new b.Pattern(r))}}i.searchPaths.push(...I.getSearchPaths(i.patterns));return i}))}static stat(r,s,i){return l(this,void 0,void 0,(function*(){let a;if(s.followSymbolicLinks){try{a=yield h.promises.stat(r.path)}catch(i){if(i.code==="ENOENT"){if(s.omitBrokenSymbolicLinks){g.debug(`Broken symlink '${r.path}'`);return undefined}throw new Error(`No information found for the path '${r.path}'. This may indicate a broken symbolic link.`)}throw i}}else{a=yield h.promises.lstat(r.path)}if(a.isDirectory()&&s.followSymbolicLinks){const s=yield h.promises.realpath(r.path);while(i.length>=r.level){i.pop()}if(i.some((r=>r===s))){g.debug(`Symlink cycle detected for path '${r.path}' and realpath '${s}'`);return undefined}i.push(s)}return a}))}}s.DefaultGlobber=DefaultGlobber},81063:(r,s)=>{"use strict";Object.defineProperty(s,"__esModule",{value:true});s.MatchKind=void 0;var i;(function(r){r[r["None"]=0]="None";r[r["Directory"]=1]="Directory";r[r["File"]=2]="File";r[r["All"]=3]="All"})(i=s.MatchKind||(s.MatchKind={}))},1849:function(r,s,i){"use strict";var a=this&&this.__createBinding||(Object.create?function(r,s,i,a){if(a===undefined)a=i;Object.defineProperty(r,a,{enumerable:true,get:function(){return s[i]}})}:function(r,s,i,a){if(a===undefined)a=i;r[a]=s[i]});var A=this&&this.__setModuleDefault||(Object.create?function(r,s){Object.defineProperty(r,"default",{enumerable:true,value:s})}:function(r,s){r["default"]=s});var c=this&&this.__importStar||function(r){if(r&&r.__esModule)return r;var s={};if(r!=null)for(var i in r)if(i!=="default"&&Object.hasOwnProperty.call(r,i))a(s,r,i);A(s,r);return s};var l=this&&this.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(s,"__esModule",{value:true});s.safeTrimTrailingSeparator=s.normalizeSeparators=s.hasRoot=s.hasAbsoluteRoot=s.ensureAbsoluteRoot=s.dirname=void 0;const d=c(i(71017));const u=l(i(39491));const p=process.platform==="win32";function dirname(r){r=safeTrimTrailingSeparator(r);if(p&&/^\\\\[^\\]+(\\[^\\]+)?$/.test(r)){return r}let s=d.dirname(r);if(p&&/^\\\\[^\\]+\\[^\\]+\\$/.test(s)){s=safeTrimTrailingSeparator(s)}return s}s.dirname=dirname;function ensureAbsoluteRoot(r,s){u.default(r,`ensureAbsoluteRoot parameter 'root' must not be empty`);u.default(s,`ensureAbsoluteRoot parameter 'itemPath' must not be empty`);if(hasAbsoluteRoot(s)){return s}if(p){if(s.match(/^[A-Z]:[^\\/]|^[A-Z]:$/i)){let r=process.cwd();u.default(r.match(/^[A-Z]:\\/i),`Expected current directory to start with an absolute drive root. Actual '${r}'`);if(s[0].toUpperCase()===r[0].toUpperCase()){if(s.length===2){return`${s[0]}:\\${r.substr(3)}`}else{if(!r.endsWith("\\")){r+="\\"}return`${s[0]}:\\${r.substr(3)}${s.substr(2)}`}}else{return`${s[0]}:\\${s.substr(2)}`}}else if(normalizeSeparators(s).match(/^\\$|^\\[^\\]/)){const r=process.cwd();u.default(r.match(/^[A-Z]:\\/i),`Expected current directory to start with an absolute drive root. Actual '${r}'`);return`${r[0]}:\\${s.substr(1)}`}}u.default(hasAbsoluteRoot(r),`ensureAbsoluteRoot parameter 'root' must have an absolute root`);if(r.endsWith("/")||p&&r.endsWith("\\")){}else{r+=d.sep}return r+s}s.ensureAbsoluteRoot=ensureAbsoluteRoot;function hasAbsoluteRoot(r){u.default(r,`hasAbsoluteRoot parameter 'itemPath' must not be empty`);r=normalizeSeparators(r);if(p){return r.startsWith("\\\\")||/^[A-Z]:\\/i.test(r)}return r.startsWith("/")}s.hasAbsoluteRoot=hasAbsoluteRoot;function hasRoot(r){u.default(r,`isRooted parameter 'itemPath' must not be empty`);r=normalizeSeparators(r);if(p){return r.startsWith("\\")||/^[A-Z]:/i.test(r)}return r.startsWith("/")}s.hasRoot=hasRoot;function normalizeSeparators(r){r=r||"";if(p){r=r.replace(/\//g,"\\");const s=/^\\\\+[^\\]/.test(r);return(s?"\\":"")+r.replace(/\\\\+/g,"\\")}return r.replace(/\/\/+/g,"/")}s.normalizeSeparators=normalizeSeparators;function safeTrimTrailingSeparator(r){if(!r){return""}r=normalizeSeparators(r);if(!r.endsWith(d.sep)){return r}if(r===d.sep){return r}if(p&&/^[A-Z]:\\$/i.test(r)){return r}return r.substr(0,r.length-1)}s.safeTrimTrailingSeparator=safeTrimTrailingSeparator},96836:function(r,s,i){"use strict";var a=this&&this.__createBinding||(Object.create?function(r,s,i,a){if(a===undefined)a=i;Object.defineProperty(r,a,{enumerable:true,get:function(){return s[i]}})}:function(r,s,i,a){if(a===undefined)a=i;r[a]=s[i]});var A=this&&this.__setModuleDefault||(Object.create?function(r,s){Object.defineProperty(r,"default",{enumerable:true,value:s})}:function(r,s){r["default"]=s});var c=this&&this.__importStar||function(r){if(r&&r.__esModule)return r;var s={};if(r!=null)for(var i in r)if(i!=="default"&&Object.hasOwnProperty.call(r,i))a(s,r,i);A(s,r);return s};var l=this&&this.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(s,"__esModule",{value:true});s.Path=void 0;const d=c(i(71017));const u=c(i(1849));const p=l(i(39491));const g=process.platform==="win32";class Path{constructor(r){this.segments=[];if(typeof r==="string"){p.default(r,`Parameter 'itemPath' must not be empty`);r=u.safeTrimTrailingSeparator(r);if(!u.hasRoot(r)){this.segments=r.split(d.sep)}else{let s=r;let i=u.dirname(s);while(i!==s){const r=d.basename(s);this.segments.unshift(r);s=i;i=u.dirname(s)}this.segments.unshift(s)}}else{p.default(r.length>0,`Parameter 'itemPath' must not be an empty array`);for(let s=0;s!r.negate));const s={};for(const i of r){const r=u?i.searchPath.toUpperCase():i.searchPath;s[r]="candidate"}const i=[];for(const a of r){const r=u?a.searchPath.toUpperCase():a.searchPath;if(s[r]==="included"){continue}let A=false;let c=r;let d=l.dirname(c);while(d!==c){if(s[d]){A=true;break}c=d;d=l.dirname(c)}if(!A){i.push(a.searchPath);s[r]="included"}}return i}s.getSearchPaths=getSearchPaths;function match(r,s){let i=d.MatchKind.None;for(const a of r){if(a.negate){i&=~a.match(s)}else{i|=a.match(s)}}return i}s.match=match;function partialMatch(r,s){return r.some((r=>!r.negate&&r.partialMatch(s)))}s.partialMatch=partialMatch},64536:function(r,s,i){"use strict";var a=this&&this.__createBinding||(Object.create?function(r,s,i,a){if(a===undefined)a=i;Object.defineProperty(r,a,{enumerable:true,get:function(){return s[i]}})}:function(r,s,i,a){if(a===undefined)a=i;r[a]=s[i]});var A=this&&this.__setModuleDefault||(Object.create?function(r,s){Object.defineProperty(r,"default",{enumerable:true,value:s})}:function(r,s){r["default"]=s});var c=this&&this.__importStar||function(r){if(r&&r.__esModule)return r;var s={};if(r!=null)for(var i in r)if(i!=="default"&&Object.hasOwnProperty.call(r,i))a(s,r,i);A(s,r);return s};var l=this&&this.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(s,"__esModule",{value:true});s.Pattern=void 0;const d=c(i(22037));const u=c(i(71017));const p=c(i(1849));const g=l(i(39491));const h=i(83973);const C=i(81063);const y=i(96836);const I=process.platform==="win32";class Pattern{constructor(r,s=false,i,a){this.negate=false;let A;if(typeof r==="string"){A=r.trim()}else{i=i||[];g.default(i.length,`Parameter 'segments' must not empty`);const s=Pattern.getLiteral(i[0]);g.default(s&&p.hasAbsoluteRoot(s),`Parameter 'segments' first element must be a root path`);A=new y.Path(i).toString().trim();if(r){A=`!${A}`}}while(A.startsWith("!")){this.negate=!this.negate;A=A.substr(1).trim()}A=Pattern.fixupPattern(A,a);this.segments=new y.Path(A).segments;this.trailingSeparator=p.normalizeSeparators(A).endsWith(u.sep);A=p.safeTrimTrailingSeparator(A);let c=false;const l=this.segments.map((r=>Pattern.getLiteral(r))).filter((r=>!c&&!(c=r==="")));this.searchPath=new y.Path(l).toString();this.rootRegExp=new RegExp(Pattern.regExpEscape(l[0]),I?"i":"");this.isImplicitPattern=s;const d={dot:true,nobrace:true,nocase:I,nocomment:true,noext:true,nonegate:true};A=I?A.replace(/\\/g,"/"):A;this.minimatch=new h.Minimatch(A,d)}match(r){if(this.segments[this.segments.length-1]==="**"){r=p.normalizeSeparators(r);if(!r.endsWith(u.sep)&&this.isImplicitPattern===false){r=`${r}${u.sep}`}}else{r=p.safeTrimTrailingSeparator(r)}if(this.minimatch.match(r)){return this.trailingSeparator?C.MatchKind.Directory:C.MatchKind.All}return C.MatchKind.None}partialMatch(r){r=p.safeTrimTrailingSeparator(r);if(p.dirname(r)===r){return this.rootRegExp.test(r)}return this.minimatch.matchOne(r.split(I?/\\+/:/\/+/),this.minimatch.set[0],true)}static globEscape(r){return(I?r:r.replace(/\\/g,"\\\\")).replace(/(\[)(?=[^/]+\])/g,"[[]").replace(/\?/g,"[?]").replace(/\*/g,"[*]")}static fixupPattern(r,s){g.default(r,"pattern cannot be empty");const i=new y.Path(r).segments.map((r=>Pattern.getLiteral(r)));g.default(i.every(((r,s)=>(r!=="."||s===0)&&r!=="..")),`Invalid pattern '${r}'. Relative pathing '.' and '..' is not allowed.`);g.default(!p.hasRoot(r)||i[0],`Invalid pattern '${r}'. Root segment must not contain globs.`);r=p.normalizeSeparators(r);if(r==="."||r.startsWith(`.${u.sep}`)){r=Pattern.globEscape(process.cwd())+r.substr(1)}else if(r==="~"||r.startsWith(`~${u.sep}`)){s=s||d.homedir();g.default(s,"Unable to determine HOME directory");g.default(p.hasAbsoluteRoot(s),`Expected HOME directory to be a rooted path. Actual '${s}'`);r=Pattern.globEscape(s)+r.substr(1)}else if(I&&(r.match(/^[A-Z]:$/i)||r.match(/^[A-Z]:[^\\]/i))){let s=p.ensureAbsoluteRoot("C:\\dummy-root",r.substr(0,2));if(r.length>2&&!s.endsWith("\\")){s+="\\"}r=Pattern.globEscape(s)+r.substr(2)}else if(I&&(r==="\\"||r.match(/^\\[^\\]/))){let s=p.ensureAbsoluteRoot("C:\\dummy-root","\\");if(!s.endsWith("\\")){s+="\\"}r=Pattern.globEscape(s)+r.substr(1)}else{r=p.ensureAbsoluteRoot(Pattern.globEscape(process.cwd()),r)}return p.normalizeSeparators(r)}static getLiteral(r){let s="";for(let i=0;i=0){if(a.length>1){return""}if(a){s+=a;i=A;continue}}}s+=a}return s}static regExpEscape(r){return r.replace(/[[\\^$.|?*+()]/g,"\\$&")}}s.Pattern=Pattern},89117:(r,s)=>{"use strict";Object.defineProperty(s,"__esModule",{value:true});s.SearchState=void 0;class SearchState{constructor(r,s){this.path=r;this.level=s}}s.SearchState=SearchState},50688:function(r,s,i){"use strict";var a=this&&this.__createBinding||(Object.create?function(r,s,i,a){if(a===undefined)a=i;Object.defineProperty(r,a,{enumerable:true,get:function(){return s[i]}})}:function(r,s,i,a){if(a===undefined)a=i;r[a]=s[i]});var A=this&&this.__setModuleDefault||(Object.create?function(r,s){Object.defineProperty(r,"default",{enumerable:true,value:s})}:function(r,s){r["default"]=s});var c=this&&this.__importStar||function(r){if(r&&r.__esModule)return r;var s={};if(r!=null)for(var i in r)if(i!=="default"&&Object.hasOwnProperty.call(r,i))a(s,r,i);A(s,r);return s};Object.defineProperty(s,"__esModule",{value:true});s.issue=s.issueCommand=void 0;const l=c(i(22037));const d=i(2603);function issueCommand(r,s,i){const a=new Command(r,s,i);process.stdout.write(a.toString()+l.EOL)}s.issueCommand=issueCommand;function issue(r,s=""){issueCommand(r,{},s)}s.issue=issue;const u="::";class Command{constructor(r,s,i){if(!r){r="missing.command"}this.command=r;this.properties=s;this.message=i}toString(){let r=u+this.command;if(this.properties&&Object.keys(this.properties).length>0){r+=" ";let s=true;for(const i in this.properties){if(this.properties.hasOwnProperty(i)){const a=this.properties[i];if(a){if(s){s=false}else{r+=","}r+=`${i}=${escapeProperty(a)}`}}}}r+=`${u}${escapeData(this.message)}`;return r}}function escapeData(r){return d.toCommandValue(r).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}function escapeProperty(r){return d.toCommandValue(r).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}},51967:function(r,s,i){"use strict";var a=this&&this.__createBinding||(Object.create?function(r,s,i,a){if(a===undefined)a=i;Object.defineProperty(r,a,{enumerable:true,get:function(){return s[i]}})}:function(r,s,i,a){if(a===undefined)a=i;r[a]=s[i]});var A=this&&this.__setModuleDefault||(Object.create?function(r,s){Object.defineProperty(r,"default",{enumerable:true,value:s})}:function(r,s){r["default"]=s});var c=this&&this.__importStar||function(r){if(r&&r.__esModule)return r;var s={};if(r!=null)for(var i in r)if(i!=="default"&&Object.hasOwnProperty.call(r,i))a(s,r,i);A(s,r);return s};var l=this&&this.__awaiter||function(r,s,i,a){function adopt(r){return r instanceof i?r:new i((function(s){s(r)}))}return new(i||(i=Promise))((function(i,A){function fulfilled(r){try{step(a.next(r))}catch(r){A(r)}}function rejected(r){try{step(a["throw"](r))}catch(r){A(r)}}function step(r){r.done?i(r.value):adopt(r.value).then(fulfilled,rejected)}step((a=a.apply(r,s||[])).next())}))};Object.defineProperty(s,"__esModule",{value:true});s.getIDToken=s.getState=s.saveState=s.group=s.endGroup=s.startGroup=s.info=s.notice=s.warning=s.error=s.debug=s.isDebug=s.setFailed=s.setCommandEcho=s.setOutput=s.getBooleanInput=s.getMultilineInput=s.getInput=s.addPath=s.setSecret=s.exportVariable=s.ExitCode=void 0;const d=i(50688);const u=i(24609);const p=i(2603);const g=c(i(22037));const h=c(i(71017));const C=i(31030);var y;(function(r){r[r["Success"]=0]="Success";r[r["Failure"]=1]="Failure"})(y=s.ExitCode||(s.ExitCode={}));function exportVariable(r,s){const i=p.toCommandValue(s);process.env[r]=i;const a=process.env["GITHUB_ENV"]||"";if(a){return u.issueFileCommand("ENV",u.prepareKeyValueMessage(r,s))}d.issueCommand("set-env",{name:r},i)}s.exportVariable=exportVariable;function setSecret(r){d.issueCommand("add-mask",{},r)}s.setSecret=setSecret;function addPath(r){const s=process.env["GITHUB_PATH"]||"";if(s){u.issueFileCommand("PATH",r)}else{d.issueCommand("add-path",{},r)}process.env["PATH"]=`${r}${h.delimiter}${process.env["PATH"]}`}s.addPath=addPath;function getInput(r,s){const i=process.env[`INPUT_${r.replace(/ /g,"_").toUpperCase()}`]||"";if(s&&s.required&&!i){throw new Error(`Input required and not supplied: ${r}`)}if(s&&s.trimWhitespace===false){return i}return i.trim()}s.getInput=getInput;function getMultilineInput(r,s){const i=getInput(r,s).split("\n").filter((r=>r!==""));if(s&&s.trimWhitespace===false){return i}return i.map((r=>r.trim()))}s.getMultilineInput=getMultilineInput;function getBooleanInput(r,s){const i=["true","True","TRUE"];const a=["false","False","FALSE"];const A=getInput(r,s);if(i.includes(A))return true;if(a.includes(A))return false;throw new TypeError(`Input does not meet YAML 1.2 "Core Schema" specification: ${r}\n`+`Support boolean input list: \`true | True | TRUE | false | False | FALSE\``)}s.getBooleanInput=getBooleanInput;function setOutput(r,s){const i=process.env["GITHUB_OUTPUT"]||"";if(i){return u.issueFileCommand("OUTPUT",u.prepareKeyValueMessage(r,s))}process.stdout.write(g.EOL);d.issueCommand("set-output",{name:r},p.toCommandValue(s))}s.setOutput=setOutput;function setCommandEcho(r){d.issue("echo",r?"on":"off")}s.setCommandEcho=setCommandEcho;function setFailed(r){process.exitCode=y.Failure;error(r)}s.setFailed=setFailed;function isDebug(){return process.env["RUNNER_DEBUG"]==="1"}s.isDebug=isDebug;function debug(r){d.issueCommand("debug",{},r)}s.debug=debug;function error(r,s={}){d.issueCommand("error",p.toCommandProperties(s),r instanceof Error?r.toString():r)}s.error=error;function warning(r,s={}){d.issueCommand("warning",p.toCommandProperties(s),r instanceof Error?r.toString():r)}s.warning=warning;function notice(r,s={}){d.issueCommand("notice",p.toCommandProperties(s),r instanceof Error?r.toString():r)}s.notice=notice;function info(r){process.stdout.write(r+g.EOL)}s.info=info;function startGroup(r){d.issue("group",r)}s.startGroup=startGroup;function endGroup(){d.issue("endgroup")}s.endGroup=endGroup;function group(r,s){return l(this,void 0,void 0,(function*(){startGroup(r);let i;try{i=yield s()}finally{endGroup()}return i}))}s.group=group;function saveState(r,s){const i=process.env["GITHUB_STATE"]||"";if(i){return u.issueFileCommand("STATE",u.prepareKeyValueMessage(r,s))}d.issueCommand("save-state",{name:r},p.toCommandValue(s))}s.saveState=saveState;function getState(r){return process.env[`STATE_${r}`]||""}s.getState=getState;function getIDToken(r){return l(this,void 0,void 0,(function*(){return yield C.OidcClient.getIDToken(r)}))}s.getIDToken=getIDToken;var I=i(72377);Object.defineProperty(s,"summary",{enumerable:true,get:function(){return I.summary}});var B=i(72377);Object.defineProperty(s,"markdownSummary",{enumerable:true,get:function(){return B.markdownSummary}});var b=i(80312);Object.defineProperty(s,"toPosixPath",{enumerable:true,get:function(){return b.toPosixPath}});Object.defineProperty(s,"toWin32Path",{enumerable:true,get:function(){return b.toWin32Path}});Object.defineProperty(s,"toPlatformPath",{enumerable:true,get:function(){return b.toPlatformPath}})},24609:function(r,s,i){"use strict";var a=this&&this.__createBinding||(Object.create?function(r,s,i,a){if(a===undefined)a=i;Object.defineProperty(r,a,{enumerable:true,get:function(){return s[i]}})}:function(r,s,i,a){if(a===undefined)a=i;r[a]=s[i]});var A=this&&this.__setModuleDefault||(Object.create?function(r,s){Object.defineProperty(r,"default",{enumerable:true,value:s})}:function(r,s){r["default"]=s});var c=this&&this.__importStar||function(r){if(r&&r.__esModule)return r;var s={};if(r!=null)for(var i in r)if(i!=="default"&&Object.hasOwnProperty.call(r,i))a(s,r,i);A(s,r);return s};Object.defineProperty(s,"__esModule",{value:true});s.prepareKeyValueMessage=s.issueFileCommand=void 0;const l=c(i(57147));const d=c(i(22037));const u=i(75840);const p=i(2603);function issueFileCommand(r,s){const i=process.env[`GITHUB_${r}`];if(!i){throw new Error(`Unable to find environment variable for file command ${r}`)}if(!l.existsSync(i)){throw new Error(`Missing file at path: ${i}`)}l.appendFileSync(i,`${p.toCommandValue(s)}${d.EOL}`,{encoding:"utf8"})}s.issueFileCommand=issueFileCommand;function prepareKeyValueMessage(r,s){const i=`ghadelimiter_${u.v4()}`;const a=p.toCommandValue(s);if(r.includes(i)){throw new Error(`Unexpected input: name should not contain the delimiter "${i}"`)}if(a.includes(i)){throw new Error(`Unexpected input: value should not contain the delimiter "${i}"`)}return`${r}<<${i}${d.EOL}${a}${d.EOL}${i}`}s.prepareKeyValueMessage=prepareKeyValueMessage},31030:function(r,s,i){"use strict";var a=this&&this.__awaiter||function(r,s,i,a){function adopt(r){return r instanceof i?r:new i((function(s){s(r)}))}return new(i||(i=Promise))((function(i,A){function fulfilled(r){try{step(a.next(r))}catch(r){A(r)}}function rejected(r){try{step(a["throw"](r))}catch(r){A(r)}}function step(r){r.done?i(r.value):adopt(r.value).then(fulfilled,rejected)}step((a=a.apply(r,s||[])).next())}))};Object.defineProperty(s,"__esModule",{value:true});s.OidcClient=void 0;const A=i(96255);const c=i(35526);const l=i(51967);class OidcClient{static createHttpClient(r=true,s=10){const i={allowRetries:r,maxRetries:s};return new A.HttpClient("actions/oidc-client",[new c.BearerCredentialHandler(OidcClient.getRequestToken())],i)}static getRequestToken(){const r=process.env["ACTIONS_ID_TOKEN_REQUEST_TOKEN"];if(!r){throw new Error("Unable to get ACTIONS_ID_TOKEN_REQUEST_TOKEN env variable")}return r}static getIDTokenUrl(){const r=process.env["ACTIONS_ID_TOKEN_REQUEST_URL"];if(!r){throw new Error("Unable to get ACTIONS_ID_TOKEN_REQUEST_URL env variable")}return r}static getCall(r){var s;return a(this,void 0,void 0,(function*(){const i=OidcClient.createHttpClient();const a=yield i.getJson(r).catch((r=>{throw new Error(`Failed to get ID Token. \n \n Error Code : ${r.statusCode}\n \n Error Message: ${r.message}`)}));const A=(s=a.result)===null||s===void 0?void 0:s.value;if(!A){throw new Error("Response json body do not have ID Token field")}return A}))}static getIDToken(r){return a(this,void 0,void 0,(function*(){try{let s=OidcClient.getIDTokenUrl();if(r){const i=encodeURIComponent(r);s=`${s}&audience=${i}`}l.debug(`ID token url is ${s}`);const i=yield OidcClient.getCall(s);l.setSecret(i);return i}catch(r){throw new Error(`Error message: ${r.message}`)}}))}}s.OidcClient=OidcClient},80312:function(r,s,i){"use strict";var a=this&&this.__createBinding||(Object.create?function(r,s,i,a){if(a===undefined)a=i;Object.defineProperty(r,a,{enumerable:true,get:function(){return s[i]}})}:function(r,s,i,a){if(a===undefined)a=i;r[a]=s[i]});var A=this&&this.__setModuleDefault||(Object.create?function(r,s){Object.defineProperty(r,"default",{enumerable:true,value:s})}:function(r,s){r["default"]=s});var c=this&&this.__importStar||function(r){if(r&&r.__esModule)return r;var s={};if(r!=null)for(var i in r)if(i!=="default"&&Object.hasOwnProperty.call(r,i))a(s,r,i);A(s,r);return s};Object.defineProperty(s,"__esModule",{value:true});s.toPlatformPath=s.toWin32Path=s.toPosixPath=void 0;const l=c(i(71017));function toPosixPath(r){return r.replace(/[\\]/g,"/")}s.toPosixPath=toPosixPath;function toWin32Path(r){return r.replace(/[/]/g,"\\")}s.toWin32Path=toWin32Path;function toPlatformPath(r){return r.replace(/[/\\]/g,l.sep)}s.toPlatformPath=toPlatformPath},72377:function(r,s,i){"use strict";var a=this&&this.__awaiter||function(r,s,i,a){function adopt(r){return r instanceof i?r:new i((function(s){s(r)}))}return new(i||(i=Promise))((function(i,A){function fulfilled(r){try{step(a.next(r))}catch(r){A(r)}}function rejected(r){try{step(a["throw"](r))}catch(r){A(r)}}function step(r){r.done?i(r.value):adopt(r.value).then(fulfilled,rejected)}step((a=a.apply(r,s||[])).next())}))};Object.defineProperty(s,"__esModule",{value:true});s.summary=s.markdownSummary=s.SUMMARY_DOCS_URL=s.SUMMARY_ENV_VAR=void 0;const A=i(22037);const c=i(57147);const{access:l,appendFile:d,writeFile:u}=c.promises;s.SUMMARY_ENV_VAR="GITHUB_STEP_SUMMARY";s.SUMMARY_DOCS_URL="https://docs.github.com/actions/using-workflows/workflow-commands-for-github-actions#adding-a-job-summary";class Summary{constructor(){this._buffer=""}filePath(){return a(this,void 0,void 0,(function*(){if(this._filePath){return this._filePath}const r=process.env[s.SUMMARY_ENV_VAR];if(!r){throw new Error(`Unable to find environment variable for $${s.SUMMARY_ENV_VAR}. Check if your runtime environment supports job summaries.`)}try{yield l(r,c.constants.R_OK|c.constants.W_OK)}catch(s){throw new Error(`Unable to access summary file: '${r}'. Check if the file has correct read/write permissions.`)}this._filePath=r;return this._filePath}))}wrap(r,s,i={}){const a=Object.entries(i).map((([r,s])=>` ${r}="${s}"`)).join("");if(!s){return`<${r}${a}>`}return`<${r}${a}>${s}`}write(r){return a(this,void 0,void 0,(function*(){const s=!!(r===null||r===void 0?void 0:r.overwrite);const i=yield this.filePath();const a=s?u:d;yield a(i,this._buffer,{encoding:"utf8"});return this.emptyBuffer()}))}clear(){return a(this,void 0,void 0,(function*(){return this.emptyBuffer().write({overwrite:true})}))}stringify(){return this._buffer}isEmptyBuffer(){return this._buffer.length===0}emptyBuffer(){this._buffer="";return this}addRaw(r,s=false){this._buffer+=r;return s?this.addEOL():this}addEOL(){return this.addRaw(A.EOL)}addCodeBlock(r,s){const i=Object.assign({},s&&{lang:s});const a=this.wrap("pre",this.wrap("code",r),i);return this.addRaw(a).addEOL()}addList(r,s=false){const i=s?"ol":"ul";const a=r.map((r=>this.wrap("li",r))).join("");const A=this.wrap(i,a);return this.addRaw(A).addEOL()}addTable(r){const s=r.map((r=>{const s=r.map((r=>{if(typeof r==="string"){return this.wrap("td",r)}const{header:s,data:i,colspan:a,rowspan:A}=r;const c=s?"th":"td";const l=Object.assign(Object.assign({},a&&{colspan:a}),A&&{rowspan:A});return this.wrap(c,i,l)})).join("");return this.wrap("tr",s)})).join("");const i=this.wrap("table",s);return this.addRaw(i).addEOL()}addDetails(r,s){const i=this.wrap("details",this.wrap("summary",r)+s);return this.addRaw(i).addEOL()}addImage(r,s,i){const{width:a,height:A}=i||{};const c=Object.assign(Object.assign({},a&&{width:a}),A&&{height:A});const l=this.wrap("img",null,Object.assign({src:r,alt:s},c));return this.addRaw(l).addEOL()}addHeading(r,s){const i=`h${s}`;const a=["h1","h2","h3","h4","h5","h6"].includes(i)?i:"h1";const A=this.wrap(a,r);return this.addRaw(A).addEOL()}addSeparator(){const r=this.wrap("hr",null);return this.addRaw(r).addEOL()}addBreak(){const r=this.wrap("br",null);return this.addRaw(r).addEOL()}addQuote(r,s){const i=Object.assign({},s&&{cite:s});const a=this.wrap("blockquote",r,i);return this.addRaw(a).addEOL()}addLink(r,s){const i=this.wrap("a",r,{href:s});return this.addRaw(i).addEOL()}}const p=new Summary;s.markdownSummary=p;s.summary=p},2603:(r,s)=>{"use strict";Object.defineProperty(s,"__esModule",{value:true});s.toCommandProperties=s.toCommandValue=void 0;function toCommandValue(r){if(r===null||r===undefined){return""}else if(typeof r==="string"||r instanceof String){return r}return JSON.stringify(r)}s.toCommandValue=toCommandValue;function toCommandProperties(r){if(!Object.keys(r).length){return{}}return{title:r.title,file:r.file,line:r.startLine,endLine:r.endLine,col:r.startColumn,endColumn:r.endColumn}}s.toCommandProperties=toCommandProperties},35526:function(r,s){"use strict";var i=this&&this.__awaiter||function(r,s,i,a){function adopt(r){return r instanceof i?r:new i((function(s){s(r)}))}return new(i||(i=Promise))((function(i,A){function fulfilled(r){try{step(a.next(r))}catch(r){A(r)}}function rejected(r){try{step(a["throw"](r))}catch(r){A(r)}}function step(r){r.done?i(r.value):adopt(r.value).then(fulfilled,rejected)}step((a=a.apply(r,s||[])).next())}))};Object.defineProperty(s,"__esModule",{value:true});s.PersonalAccessTokenCredentialHandler=s.BearerCredentialHandler=s.BasicCredentialHandler=void 0;class BasicCredentialHandler{constructor(r,s){this.username=r;this.password=s}prepareRequest(r){if(!r.headers){throw Error("The request has no headers")}r.headers["Authorization"]=`Basic ${Buffer.from(`${this.username}:${this.password}`).toString("base64")}`}canHandleAuthentication(){return false}handleAuthentication(){return i(this,void 0,void 0,(function*(){throw new Error("not implemented")}))}}s.BasicCredentialHandler=BasicCredentialHandler;class BearerCredentialHandler{constructor(r){this.token=r}prepareRequest(r){if(!r.headers){throw Error("The request has no headers")}r.headers["Authorization"]=`Bearer ${this.token}`}canHandleAuthentication(){return false}handleAuthentication(){return i(this,void 0,void 0,(function*(){throw new Error("not implemented")}))}}s.BearerCredentialHandler=BearerCredentialHandler;class PersonalAccessTokenCredentialHandler{constructor(r){this.token=r}prepareRequest(r){if(!r.headers){throw Error("The request has no headers")}r.headers["Authorization"]=`Basic ${Buffer.from(`PAT:${this.token}`).toString("base64")}`}canHandleAuthentication(){return false}handleAuthentication(){return i(this,void 0,void 0,(function*(){throw new Error("not implemented")}))}}s.PersonalAccessTokenCredentialHandler=PersonalAccessTokenCredentialHandler},96255:function(r,s,i){"use strict";var a=this&&this.__createBinding||(Object.create?function(r,s,i,a){if(a===undefined)a=i;var A=Object.getOwnPropertyDescriptor(s,i);if(!A||("get"in A?!s.__esModule:A.writable||A.configurable)){A={enumerable:true,get:function(){return s[i]}}}Object.defineProperty(r,a,A)}:function(r,s,i,a){if(a===undefined)a=i;r[a]=s[i]});var A=this&&this.__setModuleDefault||(Object.create?function(r,s){Object.defineProperty(r,"default",{enumerable:true,value:s})}:function(r,s){r["default"]=s});var c=this&&this.__importStar||function(r){if(r&&r.__esModule)return r;var s={};if(r!=null)for(var i in r)if(i!=="default"&&Object.prototype.hasOwnProperty.call(r,i))a(s,r,i);A(s,r);return s};var l=this&&this.__awaiter||function(r,s,i,a){function adopt(r){return r instanceof i?r:new i((function(s){s(r)}))}return new(i||(i=Promise))((function(i,A){function fulfilled(r){try{step(a.next(r))}catch(r){A(r)}}function rejected(r){try{step(a["throw"](r))}catch(r){A(r)}}function step(r){r.done?i(r.value):adopt(r.value).then(fulfilled,rejected)}step((a=a.apply(r,s||[])).next())}))};Object.defineProperty(s,"__esModule",{value:true});s.HttpClient=s.isHttps=s.HttpClientResponse=s.HttpClientError=s.getProxyUrl=s.MediaTypes=s.Headers=s.HttpCodes=void 0;const d=c(i(13685));const u=c(i(95687));const p=c(i(19835));const g=c(i(74294));const h=i(41773);var C;(function(r){r[r["OK"]=200]="OK";r[r["MultipleChoices"]=300]="MultipleChoices";r[r["MovedPermanently"]=301]="MovedPermanently";r[r["ResourceMoved"]=302]="ResourceMoved";r[r["SeeOther"]=303]="SeeOther";r[r["NotModified"]=304]="NotModified";r[r["UseProxy"]=305]="UseProxy";r[r["SwitchProxy"]=306]="SwitchProxy";r[r["TemporaryRedirect"]=307]="TemporaryRedirect";r[r["PermanentRedirect"]=308]="PermanentRedirect";r[r["BadRequest"]=400]="BadRequest";r[r["Unauthorized"]=401]="Unauthorized";r[r["PaymentRequired"]=402]="PaymentRequired";r[r["Forbidden"]=403]="Forbidden";r[r["NotFound"]=404]="NotFound";r[r["MethodNotAllowed"]=405]="MethodNotAllowed";r[r["NotAcceptable"]=406]="NotAcceptable";r[r["ProxyAuthenticationRequired"]=407]="ProxyAuthenticationRequired";r[r["RequestTimeout"]=408]="RequestTimeout";r[r["Conflict"]=409]="Conflict";r[r["Gone"]=410]="Gone";r[r["TooManyRequests"]=429]="TooManyRequests";r[r["InternalServerError"]=500]="InternalServerError";r[r["NotImplemented"]=501]="NotImplemented";r[r["BadGateway"]=502]="BadGateway";r[r["ServiceUnavailable"]=503]="ServiceUnavailable";r[r["GatewayTimeout"]=504]="GatewayTimeout"})(C||(s.HttpCodes=C={}));var y;(function(r){r["Accept"]="accept";r["ContentType"]="content-type"})(y||(s.Headers=y={}));var I;(function(r){r["ApplicationJson"]="application/json"})(I||(s.MediaTypes=I={}));function getProxyUrl(r){const s=p.getProxyUrl(new URL(r));return s?s.href:""}s.getProxyUrl=getProxyUrl;const B=[C.MovedPermanently,C.ResourceMoved,C.SeeOther,C.TemporaryRedirect,C.PermanentRedirect];const b=[C.BadGateway,C.ServiceUnavailable,C.GatewayTimeout];const Q=["OPTIONS","GET","DELETE","HEAD"];const w=10;const v=5;class HttpClientError extends Error{constructor(r,s){super(r);this.name="HttpClientError";this.statusCode=s;Object.setPrototypeOf(this,HttpClientError.prototype)}}s.HttpClientError=HttpClientError;class HttpClientResponse{constructor(r){this.message=r}readBody(){return l(this,void 0,void 0,(function*(){return new Promise((r=>l(this,void 0,void 0,(function*(){let s=Buffer.alloc(0);this.message.on("data",(r=>{s=Buffer.concat([s,r])}));this.message.on("end",(()=>{r(s.toString())}))}))))}))}readBodyBuffer(){return l(this,void 0,void 0,(function*(){return new Promise((r=>l(this,void 0,void 0,(function*(){const s=[];this.message.on("data",(r=>{s.push(r)}));this.message.on("end",(()=>{r(Buffer.concat(s))}))}))))}))}}s.HttpClientResponse=HttpClientResponse;function isHttps(r){const s=new URL(r);return s.protocol==="https:"}s.isHttps=isHttps;class HttpClient{constructor(r,s,i){this._ignoreSslError=false;this._allowRedirects=true;this._allowRedirectDowngrade=false;this._maxRedirects=50;this._allowRetries=false;this._maxRetries=1;this._keepAlive=false;this._disposed=false;this.userAgent=r;this.handlers=s||[];this.requestOptions=i;if(i){if(i.ignoreSslError!=null){this._ignoreSslError=i.ignoreSslError}this._socketTimeout=i.socketTimeout;if(i.allowRedirects!=null){this._allowRedirects=i.allowRedirects}if(i.allowRedirectDowngrade!=null){this._allowRedirectDowngrade=i.allowRedirectDowngrade}if(i.maxRedirects!=null){this._maxRedirects=Math.max(i.maxRedirects,0)}if(i.keepAlive!=null){this._keepAlive=i.keepAlive}if(i.allowRetries!=null){this._allowRetries=i.allowRetries}if(i.maxRetries!=null){this._maxRetries=i.maxRetries}}}options(r,s){return l(this,void 0,void 0,(function*(){return this.request("OPTIONS",r,null,s||{})}))}get(r,s){return l(this,void 0,void 0,(function*(){return this.request("GET",r,null,s||{})}))}del(r,s){return l(this,void 0,void 0,(function*(){return this.request("DELETE",r,null,s||{})}))}post(r,s,i){return l(this,void 0,void 0,(function*(){return this.request("POST",r,s,i||{})}))}patch(r,s,i){return l(this,void 0,void 0,(function*(){return this.request("PATCH",r,s,i||{})}))}put(r,s,i){return l(this,void 0,void 0,(function*(){return this.request("PUT",r,s,i||{})}))}head(r,s){return l(this,void 0,void 0,(function*(){return this.request("HEAD",r,null,s||{})}))}sendStream(r,s,i,a){return l(this,void 0,void 0,(function*(){return this.request(r,s,i,a)}))}getJson(r,s={}){return l(this,void 0,void 0,(function*(){s[y.Accept]=this._getExistingOrDefaultHeader(s,y.Accept,I.ApplicationJson);const i=yield this.get(r,s);return this._processResponse(i,this.requestOptions)}))}postJson(r,s,i={}){return l(this,void 0,void 0,(function*(){const a=JSON.stringify(s,null,2);i[y.Accept]=this._getExistingOrDefaultHeader(i,y.Accept,I.ApplicationJson);i[y.ContentType]=this._getExistingOrDefaultHeader(i,y.ContentType,I.ApplicationJson);const A=yield this.post(r,a,i);return this._processResponse(A,this.requestOptions)}))}putJson(r,s,i={}){return l(this,void 0,void 0,(function*(){const a=JSON.stringify(s,null,2);i[y.Accept]=this._getExistingOrDefaultHeader(i,y.Accept,I.ApplicationJson);i[y.ContentType]=this._getExistingOrDefaultHeader(i,y.ContentType,I.ApplicationJson);const A=yield this.put(r,a,i);return this._processResponse(A,this.requestOptions)}))}patchJson(r,s,i={}){return l(this,void 0,void 0,(function*(){const a=JSON.stringify(s,null,2);i[y.Accept]=this._getExistingOrDefaultHeader(i,y.Accept,I.ApplicationJson);i[y.ContentType]=this._getExistingOrDefaultHeader(i,y.ContentType,I.ApplicationJson);const A=yield this.patch(r,a,i);return this._processResponse(A,this.requestOptions)}))}request(r,s,i,a){return l(this,void 0,void 0,(function*(){if(this._disposed){throw new Error("Client has already been disposed.")}const A=new URL(s);let c=this._prepareRequest(r,A,a);const l=this._allowRetries&&Q.includes(r)?this._maxRetries+1:1;let d=0;let u;do{u=yield this.requestRaw(c,i);if(u&&u.message&&u.message.statusCode===C.Unauthorized){let r;for(const s of this.handlers){if(s.canHandleAuthentication(u)){r=s;break}}if(r){return r.handleAuthentication(this,c,i)}else{return u}}let s=this._maxRedirects;while(u.message.statusCode&&B.includes(u.message.statusCode)&&this._allowRedirects&&s>0){const l=u.message.headers["location"];if(!l){break}const d=new URL(l);if(A.protocol==="https:"&&A.protocol!==d.protocol&&!this._allowRedirectDowngrade){throw new Error("Redirect from HTTPS to HTTP protocol. This downgrade is not allowed for security reasons. If you want to allow this behavior, set the allowRedirectDowngrade option to true.")}yield u.readBody();if(d.hostname!==A.hostname){for(const r in a){if(r.toLowerCase()==="authorization"){delete a[r]}}}c=this._prepareRequest(r,d,a);u=yield this.requestRaw(c,i);s--}if(!u.message.statusCode||!b.includes(u.message.statusCode)){return u}d+=1;if(d{function callbackForResult(r,s){if(r){a(r)}else if(!s){a(new Error("Unknown error"))}else{i(s)}}this.requestRawWithCallback(r,s,callbackForResult)}))}))}requestRawWithCallback(r,s,i){if(typeof s==="string"){if(!r.options.headers){r.options.headers={}}r.options.headers["Content-Length"]=Buffer.byteLength(s,"utf8")}let a=false;function handleResult(r,s){if(!a){a=true;i(r,s)}}const A=r.httpModule.request(r.options,(r=>{const s=new HttpClientResponse(r);handleResult(undefined,s)}));let c;A.on("socket",(r=>{c=r}));A.setTimeout(this._socketTimeout||3*6e4,(()=>{if(c){c.end()}handleResult(new Error(`Request timeout: ${r.options.path}`))}));A.on("error",(function(r){handleResult(r)}));if(s&&typeof s==="string"){A.write(s,"utf8")}if(s&&typeof s!=="string"){s.on("close",(function(){A.end()}));s.pipe(A)}else{A.end()}}getAgent(r){const s=new URL(r);return this._getAgent(s)}getAgentDispatcher(r){const s=new URL(r);const i=p.getProxyUrl(s);const a=i&&i.hostname;if(!a){return}return this._getProxyAgentDispatcher(s,i)}_prepareRequest(r,s,i){const a={};a.parsedUrl=s;const A=a.parsedUrl.protocol==="https:";a.httpModule=A?u:d;const c=A?443:80;a.options={};a.options.host=a.parsedUrl.hostname;a.options.port=a.parsedUrl.port?parseInt(a.parsedUrl.port):c;a.options.path=(a.parsedUrl.pathname||"")+(a.parsedUrl.search||"");a.options.method=r;a.options.headers=this._mergeHeaders(i);if(this.userAgent!=null){a.options.headers["user-agent"]=this.userAgent}a.options.agent=this._getAgent(a.parsedUrl);if(this.handlers){for(const r of this.handlers){r.prepareRequest(a.options)}}return a}_mergeHeaders(r){if(this.requestOptions&&this.requestOptions.headers){return Object.assign({},lowercaseKeys(this.requestOptions.headers),lowercaseKeys(r||{}))}return lowercaseKeys(r||{})}_getExistingOrDefaultHeader(r,s,i){let a;if(this.requestOptions&&this.requestOptions.headers){a=lowercaseKeys(this.requestOptions.headers)[s]}return r[s]||a||i}_getAgent(r){let s;const i=p.getProxyUrl(r);const a=i&&i.hostname;if(this._keepAlive&&a){s=this._proxyAgent}if(this._keepAlive&&!a){s=this._agent}if(s){return s}const A=r.protocol==="https:";let c=100;if(this.requestOptions){c=this.requestOptions.maxSockets||d.globalAgent.maxSockets}if(i&&i.hostname){const r={maxSockets:c,keepAlive:this._keepAlive,proxy:Object.assign(Object.assign({},(i.username||i.password)&&{proxyAuth:`${i.username}:${i.password}`}),{host:i.hostname,port:i.port})};let a;const l=i.protocol==="https:";if(A){a=l?g.httpsOverHttps:g.httpsOverHttp}else{a=l?g.httpOverHttps:g.httpOverHttp}s=a(r);this._proxyAgent=s}if(this._keepAlive&&!s){const r={keepAlive:this._keepAlive,maxSockets:c};s=A?new u.Agent(r):new d.Agent(r);this._agent=s}if(!s){s=A?u.globalAgent:d.globalAgent}if(A&&this._ignoreSslError){s.options=Object.assign(s.options||{},{rejectUnauthorized:false})}return s}_getProxyAgentDispatcher(r,s){let i;if(this._keepAlive){i=this._proxyAgentDispatcher}if(i){return i}const a=r.protocol==="https:";i=new h.ProxyAgent(Object.assign({uri:s.href,pipelining:!this._keepAlive?0:1},(s.username||s.password)&&{token:`${s.username}:${s.password}`}));this._proxyAgentDispatcher=i;if(a&&this._ignoreSslError){i.options=Object.assign(i.options.requestTls||{},{rejectUnauthorized:false})}return i}_performExponentialBackoff(r){return l(this,void 0,void 0,(function*(){r=Math.min(w,r);const s=v*Math.pow(2,r);return new Promise((r=>setTimeout((()=>r()),s)))}))}_processResponse(r,s){return l(this,void 0,void 0,(function*(){return new Promise(((i,a)=>l(this,void 0,void 0,(function*(){const A=r.message.statusCode||0;const c={statusCode:A,result:null,headers:{}};if(A===C.NotFound){i(c)}function dateTimeDeserializer(r,s){if(typeof s==="string"){const r=new Date(s);if(!isNaN(r.valueOf())){return r}}return s}let l;let d;try{d=yield r.readBody();if(d&&d.length>0){if(s&&s.deserializeDates){l=JSON.parse(d,dateTimeDeserializer)}else{l=JSON.parse(d)}c.result=l}c.headers=r.message.headers}catch(r){}if(A>299){let r;if(l&&l.message){r=l.message}else if(d&&d.length>0){r=d}else{r=`Failed request: (${A})`}const s=new HttpClientError(r,A);s.result=c.result;a(s)}else{i(c)}}))))}))}}s.HttpClient=HttpClient;const lowercaseKeys=r=>Object.keys(r).reduce(((s,i)=>(s[i.toLowerCase()]=r[i],s)),{})},19835:(r,s)=>{"use strict";Object.defineProperty(s,"__esModule",{value:true});s.checkBypass=s.getProxyUrl=void 0;function getProxyUrl(r){const s=r.protocol==="https:";if(checkBypass(r)){return undefined}const i=(()=>{if(s){return process.env["https_proxy"]||process.env["HTTPS_PROXY"]}else{return process.env["http_proxy"]||process.env["HTTP_PROXY"]}})();if(i){try{return new URL(i)}catch(r){if(!i.startsWith("http://")&&!i.startsWith("https://"))return new URL(`http://${i}`)}}else{return undefined}}s.getProxyUrl=getProxyUrl;function checkBypass(r){if(!r.hostname){return false}const s=r.hostname;if(isLoopbackAddress(s)){return true}const i=process.env["no_proxy"]||process.env["NO_PROXY"]||"";if(!i){return false}let a;if(r.port){a=Number(r.port)}else if(r.protocol==="http:"){a=80}else if(r.protocol==="https:"){a=443}const A=[r.hostname.toUpperCase()];if(typeof a==="number"){A.push(`${A[0]}:${a}`)}for(const r of i.split(",").map((r=>r.trim().toUpperCase())).filter((r=>r))){if(r==="*"||A.some((s=>s===r||s.endsWith(`.${r}`)||r.startsWith(".")&&s.endsWith(`${r}`)))){return true}}return false}s.checkBypass=checkBypass;function isLoopbackAddress(r){const s=r.toLowerCase();return s==="localhost"||s.startsWith("127.")||s.startsWith("[::1]")||s.startsWith("[0:0:0:0:0:0:0:1]")}},81962:function(r,s,i){"use strict";var a=this&&this.__createBinding||(Object.create?function(r,s,i,a){if(a===undefined)a=i;Object.defineProperty(r,a,{enumerable:true,get:function(){return s[i]}})}:function(r,s,i,a){if(a===undefined)a=i;r[a]=s[i]});var A=this&&this.__setModuleDefault||(Object.create?function(r,s){Object.defineProperty(r,"default",{enumerable:true,value:s})}:function(r,s){r["default"]=s});var c=this&&this.__importStar||function(r){if(r&&r.__esModule)return r;var s={};if(r!=null)for(var i in r)if(i!=="default"&&Object.hasOwnProperty.call(r,i))a(s,r,i);A(s,r);return s};var l=this&&this.__awaiter||function(r,s,i,a){function adopt(r){return r instanceof i?r:new i((function(s){s(r)}))}return new(i||(i=Promise))((function(i,A){function fulfilled(r){try{step(a.next(r))}catch(r){A(r)}}function rejected(r){try{step(a["throw"](r))}catch(r){A(r)}}function step(r){r.done?i(r.value):adopt(r.value).then(fulfilled,rejected)}step((a=a.apply(r,s||[])).next())}))};var d;Object.defineProperty(s,"__esModule",{value:true});s.getCmdPath=s.tryGetExecutablePath=s.isRooted=s.isDirectory=s.exists=s.READONLY=s.UV_FS_O_EXLOCK=s.IS_WINDOWS=s.unlink=s.symlink=s.stat=s.rmdir=s.rm=s.rename=s.readlink=s.readdir=s.open=s.mkdir=s.lstat=s.copyFile=s.chmod=void 0;const u=c(i(57147));const p=c(i(71017));d=u.promises,s.chmod=d.chmod,s.copyFile=d.copyFile,s.lstat=d.lstat,s.mkdir=d.mkdir,s.open=d.open,s.readdir=d.readdir,s.readlink=d.readlink,s.rename=d.rename,s.rm=d.rm,s.rmdir=d.rmdir,s.stat=d.stat,s.symlink=d.symlink,s.unlink=d.unlink;s.IS_WINDOWS=process.platform==="win32";s.UV_FS_O_EXLOCK=268435456;s.READONLY=u.constants.O_RDONLY;function exists(r){return l(this,void 0,void 0,(function*(){try{yield s.stat(r)}catch(r){if(r.code==="ENOENT"){return false}throw r}return true}))}s.exists=exists;function isDirectory(r,i=false){return l(this,void 0,void 0,(function*(){const a=i?yield s.stat(r):yield s.lstat(r);return a.isDirectory()}))}s.isDirectory=isDirectory;function isRooted(r){r=normalizeSeparators(r);if(!r){throw new Error('isRooted() parameter "p" cannot be empty')}if(s.IS_WINDOWS){return r.startsWith("\\")||/^[A-Z]:/i.test(r)}return r.startsWith("/")}s.isRooted=isRooted;function tryGetExecutablePath(r,i){return l(this,void 0,void 0,(function*(){let a=undefined;try{a=yield s.stat(r)}catch(s){if(s.code!=="ENOENT"){console.log(`Unexpected error attempting to determine if executable file exists '${r}': ${s}`)}}if(a&&a.isFile()){if(s.IS_WINDOWS){const s=p.extname(r).toUpperCase();if(i.some((r=>r.toUpperCase()===s))){return r}}else{if(isUnixExecutable(a)){return r}}}const A=r;for(const c of i){r=A+c;a=undefined;try{a=yield s.stat(r)}catch(s){if(s.code!=="ENOENT"){console.log(`Unexpected error attempting to determine if executable file exists '${r}': ${s}`)}}if(a&&a.isFile()){if(s.IS_WINDOWS){try{const i=p.dirname(r);const a=p.basename(r).toUpperCase();for(const A of yield s.readdir(i)){if(a===A.toUpperCase()){r=p.join(i,A);break}}}catch(s){console.log(`Unexpected error attempting to determine the actual case of the file '${r}': ${s}`)}return r}else{if(isUnixExecutable(a)){return r}}}}return""}))}s.tryGetExecutablePath=tryGetExecutablePath;function normalizeSeparators(r){r=r||"";if(s.IS_WINDOWS){r=r.replace(/\//g,"\\");return r.replace(/\\\\+/g,"\\")}return r.replace(/\/\/+/g,"/")}function isUnixExecutable(r){return(r.mode&1)>0||(r.mode&8)>0&&r.gid===process.getgid()||(r.mode&64)>0&&r.uid===process.getuid()}function getCmdPath(){var r;return(r=process.env["COMSPEC"])!==null&&r!==void 0?r:`cmd.exe`}s.getCmdPath=getCmdPath},47351:function(r,s,i){"use strict";var a=this&&this.__createBinding||(Object.create?function(r,s,i,a){if(a===undefined)a=i;Object.defineProperty(r,a,{enumerable:true,get:function(){return s[i]}})}:function(r,s,i,a){if(a===undefined)a=i;r[a]=s[i]});var A=this&&this.__setModuleDefault||(Object.create?function(r,s){Object.defineProperty(r,"default",{enumerable:true,value:s})}:function(r,s){r["default"]=s});var c=this&&this.__importStar||function(r){if(r&&r.__esModule)return r;var s={};if(r!=null)for(var i in r)if(i!=="default"&&Object.hasOwnProperty.call(r,i))a(s,r,i);A(s,r);return s};var l=this&&this.__awaiter||function(r,s,i,a){function adopt(r){return r instanceof i?r:new i((function(s){s(r)}))}return new(i||(i=Promise))((function(i,A){function fulfilled(r){try{step(a.next(r))}catch(r){A(r)}}function rejected(r){try{step(a["throw"](r))}catch(r){A(r)}}function step(r){r.done?i(r.value):adopt(r.value).then(fulfilled,rejected)}step((a=a.apply(r,s||[])).next())}))};Object.defineProperty(s,"__esModule",{value:true});s.findInPath=s.which=s.mkdirP=s.rmRF=s.mv=s.cp=void 0;const d=i(39491);const u=c(i(71017));const p=c(i(81962));function cp(r,s,i={}){return l(this,void 0,void 0,(function*(){const{force:a,recursive:A,copySourceDirectory:c}=readCopyOptions(i);const l=(yield p.exists(s))?yield p.stat(s):null;if(l&&l.isFile()&&!a){return}const d=l&&l.isDirectory()&&c?u.join(s,u.basename(r)):s;if(!(yield p.exists(r))){throw new Error(`no such file or directory: ${r}`)}const g=yield p.stat(r);if(g.isDirectory()){if(!A){throw new Error(`Failed to copy. ${r} is a directory, but tried to copy without recursive flag.`)}else{yield cpDirRecursive(r,d,0,a)}}else{if(u.relative(r,d)===""){throw new Error(`'${d}' and '${r}' are the same file`)}yield copyFile(r,d,a)}}))}s.cp=cp;function mv(r,s,i={}){return l(this,void 0,void 0,(function*(){if(yield p.exists(s)){let a=true;if(yield p.isDirectory(s)){s=u.join(s,u.basename(r));a=yield p.exists(s)}if(a){if(i.force==null||i.force){yield rmRF(s)}else{throw new Error("Destination already exists")}}}yield mkdirP(u.dirname(s));yield p.rename(r,s)}))}s.mv=mv;function rmRF(r){return l(this,void 0,void 0,(function*(){if(p.IS_WINDOWS){if(/[*"<>|]/.test(r)){throw new Error('File path must not contain `*`, `"`, `<`, `>` or `|` on Windows')}}try{yield p.rm(r,{force:true,maxRetries:3,recursive:true,retryDelay:300})}catch(r){throw new Error(`File was unable to be removed ${r}`)}}))}s.rmRF=rmRF;function mkdirP(r){return l(this,void 0,void 0,(function*(){d.ok(r,"a path argument must be provided");yield p.mkdir(r,{recursive:true})}))}s.mkdirP=mkdirP;function which(r,s){return l(this,void 0,void 0,(function*(){if(!r){throw new Error("parameter 'tool' is required")}if(s){const s=yield which(r,false);if(!s){if(p.IS_WINDOWS){throw new Error(`Unable to locate executable file: ${r}. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also verify the file has a valid extension for an executable file.`)}else{throw new Error(`Unable to locate executable file: ${r}. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also check the file mode to verify the file is executable.`)}}return s}const i=yield findInPath(r);if(i&&i.length>0){return i[0]}return""}))}s.which=which;function findInPath(r){return l(this,void 0,void 0,(function*(){if(!r){throw new Error("parameter 'tool' is required")}const s=[];if(p.IS_WINDOWS&&process.env["PATHEXT"]){for(const r of process.env["PATHEXT"].split(u.delimiter)){if(r){s.push(r)}}}if(p.isRooted(r)){const i=yield p.tryGetExecutablePath(r,s);if(i){return[i]}return[]}if(r.includes(u.sep)){return[]}const i=[];if(process.env.PATH){for(const r of process.env.PATH.split(u.delimiter)){if(r){i.push(r)}}}const a=[];for(const A of i){const i=yield p.tryGetExecutablePath(u.join(A,r),s);if(i){a.push(i)}}return a}))}s.findInPath=findInPath;function readCopyOptions(r){const s=r.force==null?true:r.force;const i=Boolean(r.recursive);const a=r.copySourceDirectory==null?true:Boolean(r.copySourceDirectory);return{force:s,recursive:i,copySourceDirectory:a}}function cpDirRecursive(r,s,i,a){return l(this,void 0,void 0,(function*(){if(i>=255)return;i++;yield mkdirP(s);const A=yield p.readdir(r);for(const c of A){const A=`${r}/${c}`;const l=`${s}/${c}`;const d=yield p.lstat(A);if(d.isDirectory()){yield cpDirRecursive(A,l,i,a)}else{yield copyFile(A,l,a)}}yield p.chmod(s,(yield p.stat(r)).mode)}))}function copyFile(r,s,i){return l(this,void 0,void 0,(function*(){if((yield p.lstat(r)).isSymbolicLink()){try{yield p.lstat(s);yield p.unlink(s)}catch(r){if(r.code==="EPERM"){yield p.chmod(s,"0666");yield p.unlink(s)}}const i=yield p.readlink(r);yield p.symlink(i,s,p.IS_WINDOWS?"junction":null)}else if(!(yield p.exists(s))||i){yield p.copyFile(r,s)}}))}},32473:function(r,s,i){"use strict";var a=this&&this.__createBinding||(Object.create?function(r,s,i,a){if(a===undefined)a=i;var A=Object.getOwnPropertyDescriptor(s,i);if(!A||("get"in A?!s.__esModule:A.writable||A.configurable)){A={enumerable:true,get:function(){return s[i]}}}Object.defineProperty(r,a,A)}:function(r,s,i,a){if(a===undefined)a=i;r[a]=s[i]});var A=this&&this.__setModuleDefault||(Object.create?function(r,s){Object.defineProperty(r,"default",{enumerable:true,value:s})}:function(r,s){r["default"]=s});var c=this&&this.__importStar||function(r){if(r&&r.__esModule)return r;var s={};if(r!=null)for(var i in r)if(i!=="default"&&Object.prototype.hasOwnProperty.call(r,i))a(s,r,i);A(s,r);return s};var l=this&&this.__awaiter||function(r,s,i,a){function adopt(r){return r instanceof i?r:new i((function(s){s(r)}))}return new(i||(i=Promise))((function(i,A){function fulfilled(r){try{step(a.next(r))}catch(r){A(r)}}function rejected(r){try{step(a["throw"](r))}catch(r){A(r)}}function step(r){r.done?i(r.value):adopt(r.value).then(fulfilled,rejected)}step((a=a.apply(r,s||[])).next())}))};Object.defineProperty(s,"__esModule",{value:true});s._readLinuxVersionFile=s._getOsVersion=s._findMatch=void 0;const d=c(i(85911));const u=i(42186);const p=i(22037);const g=i(32081);const h=i(57147);function _findMatch(s,i,a,A){return l(this,void 0,void 0,(function*(){const c=p.platform();let l;let g;let h;for(const l of a){const a=l.version;(0,u.debug)(`check ${a} satisfies ${s}`);if(d.satisfies(a,s)&&(!i||l.stable===i)){h=l.files.find((s=>{(0,u.debug)(`${s.arch}===${A} && ${s.platform}===${c}`);let i=s.arch===A&&s.platform===c;if(i&&s.platform_version){const a=r.exports._getOsVersion();if(a===s.platform_version){i=true}else{i=d.satisfies(a,s.platform_version)}}return i}));if(h){(0,u.debug)(`matched ${l.version}`);g=l;break}}}if(g&&h){l=Object.assign({},g);l.files=[h]}return l}))}s._findMatch=_findMatch;function _getOsVersion(){const s=p.platform();let i="";if(s==="darwin"){i=g.execSync("sw_vers -productVersion").toString()}else if(s==="linux"){const s=r.exports._readLinuxVersionFile();if(s){const r=s.split("\n");for(const s of r){const r=s.split("=");if(r.length===2&&(r[0].trim()==="VERSION_ID"||r[0].trim()==="DISTRIB_RELEASE")){i=r[1].trim().replace(/^"/,"").replace(/"$/,"");break}}}}return i}s._getOsVersion=_getOsVersion;function _readLinuxVersionFile(){const r="/etc/lsb-release";const s="/etc/os-release";let i="";if(h.existsSync(r)){i=h.readFileSync(r).toString()}else if(h.existsSync(s)){i=h.readFileSync(s).toString()}return i}s._readLinuxVersionFile=_readLinuxVersionFile},38279:function(r,s,i){"use strict";var a=this&&this.__createBinding||(Object.create?function(r,s,i,a){if(a===undefined)a=i;var A=Object.getOwnPropertyDescriptor(s,i);if(!A||("get"in A?!s.__esModule:A.writable||A.configurable)){A={enumerable:true,get:function(){return s[i]}}}Object.defineProperty(r,a,A)}:function(r,s,i,a){if(a===undefined)a=i;r[a]=s[i]});var A=this&&this.__setModuleDefault||(Object.create?function(r,s){Object.defineProperty(r,"default",{enumerable:true,value:s})}:function(r,s){r["default"]=s});var c=this&&this.__importStar||function(r){if(r&&r.__esModule)return r;var s={};if(r!=null)for(var i in r)if(i!=="default"&&Object.prototype.hasOwnProperty.call(r,i))a(s,r,i);A(s,r);return s};var l=this&&this.__awaiter||function(r,s,i,a){function adopt(r){return r instanceof i?r:new i((function(s){s(r)}))}return new(i||(i=Promise))((function(i,A){function fulfilled(r){try{step(a.next(r))}catch(r){A(r)}}function rejected(r){try{step(a["throw"](r))}catch(r){A(r)}}function step(r){r.done?i(r.value):adopt(r.value).then(fulfilled,rejected)}step((a=a.apply(r,s||[])).next())}))};Object.defineProperty(s,"__esModule",{value:true});s.RetryHelper=void 0;const d=c(i(42186));class RetryHelper{constructor(r,s,i){if(r<1){throw new Error("max attempts should be greater than or equal to 1")}this.maxAttempts=r;this.minSeconds=Math.floor(s);this.maxSeconds=Math.floor(i);if(this.minSeconds>this.maxSeconds){throw new Error("min seconds should be less than or equal to max seconds")}}execute(r,s){return l(this,void 0,void 0,(function*(){let i=1;while(isetTimeout(s,r*1e3)))}))}}s.RetryHelper=RetryHelper},27784:function(r,s,i){"use strict";var a=this&&this.__createBinding||(Object.create?function(r,s,i,a){if(a===undefined)a=i;var A=Object.getOwnPropertyDescriptor(s,i);if(!A||("get"in A?!s.__esModule:A.writable||A.configurable)){A={enumerable:true,get:function(){return s[i]}}}Object.defineProperty(r,a,A)}:function(r,s,i,a){if(a===undefined)a=i;r[a]=s[i]});var A=this&&this.__setModuleDefault||(Object.create?function(r,s){Object.defineProperty(r,"default",{enumerable:true,value:s})}:function(r,s){r["default"]=s});var c=this&&this.__importStar||function(r){if(r&&r.__esModule)return r;var s={};if(r!=null)for(var i in r)if(i!=="default"&&Object.prototype.hasOwnProperty.call(r,i))a(s,r,i);A(s,r);return s};var l=this&&this.__awaiter||function(r,s,i,a){function adopt(r){return r instanceof i?r:new i((function(s){s(r)}))}return new(i||(i=Promise))((function(i,A){function fulfilled(r){try{step(a.next(r))}catch(r){A(r)}}function rejected(r){try{step(a["throw"](r))}catch(r){A(r)}}function step(r){r.done?i(r.value):adopt(r.value).then(fulfilled,rejected)}step((a=a.apply(r,s||[])).next())}))};Object.defineProperty(s,"__esModule",{value:true});s.evaluateVersions=s.isExplicitVersion=s.findFromManifest=s.getManifestFromRepo=s.findAllVersions=s.find=s.cacheFile=s.cacheDir=s.extractZip=s.extractXar=s.extractTar=s.extract7z=s.downloadTool=s.HTTPError=void 0;const d=c(i(42186));const u=c(i(47351));const p=c(i(6113));const g=c(i(57147));const h=c(i(32473));const C=c(i(22037));const y=c(i(71017));const I=c(i(96255));const B=c(i(85911));const b=c(i(12781));const Q=c(i(73837));const w=i(39491);const v=i(71514);const S=i(38279);class HTTPError extends Error{constructor(r){super(`Unexpected HTTP response: ${r}`);this.httpStatusCode=r;Object.setPrototypeOf(this,new.target.prototype)}}s.HTTPError=HTTPError;const R=process.platform==="win32";const N=process.platform==="darwin";const x="actions/tool-cache";function downloadTool(r,s,i,a){return l(this,void 0,void 0,(function*(){s=s||y.join(_getTempDirectory(),p.randomUUID());yield u.mkdirP(y.dirname(s));d.debug(`Downloading ${r}`);d.debug(`Destination ${s}`);const A=3;const c=_getGlobal("TEST_DOWNLOAD_TOOL_RETRY_MIN_SECONDS",10);const g=_getGlobal("TEST_DOWNLOAD_TOOL_RETRY_MAX_SECONDS",20);const h=new S.RetryHelper(A,c,g);return yield h.execute((()=>l(this,void 0,void 0,(function*(){return yield downloadToolAttempt(r,s||"",i,a)}))),(r=>{if(r instanceof HTTPError&&r.httpStatusCode){if(r.httpStatusCode<500&&r.httpStatusCode!==408&&r.httpStatusCode!==429){return false}}return true}))}))}s.downloadTool=downloadTool;function downloadToolAttempt(r,s,i,a){return l(this,void 0,void 0,(function*(){if(g.existsSync(s)){throw new Error(`Destination file path ${s} already exists`)}const A=new I.HttpClient(x,[],{allowRetries:false});if(i){d.debug("set auth");if(a===undefined){a={}}a.authorization=i}const c=yield A.get(r,a);if(c.message.statusCode!==200){const s=new HTTPError(c.message.statusCode);d.debug(`Failed to download from "${r}". Code(${c.message.statusCode}) Message(${c.message.statusMessage})`);throw s}const l=Q.promisify(b.pipeline);const p=_getGlobal("TEST_DOWNLOAD_TOOL_RESPONSE_MESSAGE_FACTORY",(()=>c.message));const h=p();let C=false;try{yield l(h,g.createWriteStream(s));d.debug("download complete");C=true;return s}finally{if(!C){d.debug("download failed");try{yield u.rmRF(s)}catch(r){d.debug(`Failed to delete '${s}'. ${r.message}`)}}}}))}function extract7z(r,s,i){return l(this,void 0,void 0,(function*(){(0,w.ok)(R,"extract7z() not supported on current OS");(0,w.ok)(r,'parameter "file" is required');s=yield _createExtractFolder(s);const a=process.cwd();process.chdir(s);if(i){try{const s=d.isDebug()?"-bb1":"-bb0";const a=["x",s,"-bd","-sccUTF-8",r];const A={silent:true};yield(0,v.exec)(`"${i}"`,a,A)}finally{process.chdir(a)}}else{const i=y.join(__dirname,"..","scripts","Invoke-7zdec.ps1").replace(/'/g,"''").replace(/"|\n|\r/g,"");const A=r.replace(/'/g,"''").replace(/"|\n|\r/g,"");const c=s.replace(/'/g,"''").replace(/"|\n|\r/g,"");const l=`& '${i}' -Source '${A}' -Target '${c}'`;const d=["-NoLogo","-Sta","-NoProfile","-NonInteractive","-ExecutionPolicy","Unrestricted","-Command",l];const p={silent:true};try{const r=yield u.which("powershell",true);yield(0,v.exec)(`"${r}"`,d,p)}finally{process.chdir(a)}}return s}))}s.extract7z=extract7z;function extractTar(r,s,i="xz"){return l(this,void 0,void 0,(function*(){if(!r){throw new Error("parameter 'file' is required")}s=yield _createExtractFolder(s);d.debug("Checking tar --version");let a="";yield(0,v.exec)("tar --version",[],{ignoreReturnCode:true,silent:true,listeners:{stdout:r=>a+=r.toString(),stderr:r=>a+=r.toString()}});d.debug(a.trim());const A=a.toUpperCase().includes("GNU TAR");let c;if(i instanceof Array){c=i}else{c=[i]}if(d.isDebug()&&!i.includes("v")){c.push("-v")}let l=s;let u=r;if(R&&A){c.push("--force-local");l=s.replace(/\\/g,"/");u=r.replace(/\\/g,"/")}if(A){c.push("--warning=no-unknown-keyword");c.push("--overwrite")}c.push("-C",l,"-f",u);yield(0,v.exec)(`tar`,c);return s}))}s.extractTar=extractTar;function extractXar(r,s,i=[]){return l(this,void 0,void 0,(function*(){(0,w.ok)(N,"extractXar() not supported on current OS");(0,w.ok)(r,'parameter "file" is required');s=yield _createExtractFolder(s);let a;if(i instanceof Array){a=i}else{a=[i]}a.push("-x","-C",s,"-f",r);if(d.isDebug()){a.push("-v")}const A=yield u.which("xar",true);yield(0,v.exec)(`"${A}"`,_unique(a));return s}))}s.extractXar=extractXar;function extractZip(r,s){return l(this,void 0,void 0,(function*(){if(!r){throw new Error("parameter 'file' is required")}s=yield _createExtractFolder(s);if(R){yield extractZipWin(r,s)}else{yield extractZipNix(r,s)}return s}))}s.extractZip=extractZip;function extractZipWin(r,s){return l(this,void 0,void 0,(function*(){const i=r.replace(/'/g,"''").replace(/"|\n|\r/g,"");const a=s.replace(/'/g,"''").replace(/"|\n|\r/g,"");const A=yield u.which("pwsh",false);if(A){const r=[`$ErrorActionPreference = 'Stop' ;`,`try { Add-Type -AssemblyName System.IO.Compression.ZipFile } catch { } ;`,`try { [System.IO.Compression.ZipFile]::ExtractToDirectory('${i}', '${a}', $true) }`,`catch { if (($_.Exception.GetType().FullName -eq 'System.Management.Automation.MethodException') -or ($_.Exception.GetType().FullName -eq 'System.Management.Automation.RuntimeException') ){ Expand-Archive -LiteralPath '${i}' -DestinationPath '${a}' -Force } else { throw $_ } } ;`].join(" ");const s=["-NoLogo","-NoProfile","-NonInteractive","-ExecutionPolicy","Unrestricted","-Command",r];d.debug(`Using pwsh at path: ${A}`);yield(0,v.exec)(`"${A}"`,s)}else{const r=[`$ErrorActionPreference = 'Stop' ;`,`try { Add-Type -AssemblyName System.IO.Compression.FileSystem } catch { } ;`,`if ((Get-Command -Name Expand-Archive -Module Microsoft.PowerShell.Archive -ErrorAction Ignore)) { Expand-Archive -LiteralPath '${i}' -DestinationPath '${a}' -Force }`,`else {[System.IO.Compression.ZipFile]::ExtractToDirectory('${i}', '${a}', $true) }`].join(" ");const s=["-NoLogo","-Sta","-NoProfile","-NonInteractive","-ExecutionPolicy","Unrestricted","-Command",r];const A=yield u.which("powershell",true);d.debug(`Using powershell at path: ${A}`);yield(0,v.exec)(`"${A}"`,s)}}))}function extractZipNix(r,s){return l(this,void 0,void 0,(function*(){const i=yield u.which("unzip",true);const a=[r];if(!d.isDebug()){a.unshift("-q")}a.unshift("-o");yield(0,v.exec)(`"${i}"`,a,{cwd:s})}))}function cacheDir(r,s,i,a){return l(this,void 0,void 0,(function*(){i=B.clean(i)||i;a=a||C.arch();d.debug(`Caching tool ${s} ${i} ${a}`);d.debug(`source dir: ${r}`);if(!g.statSync(r).isDirectory()){throw new Error("sourceDir is not a directory")}const A=yield _createToolPath(s,i,a);for(const s of g.readdirSync(r)){const i=y.join(r,s);yield u.cp(i,A,{recursive:true})}_completeToolPath(s,i,a);return A}))}s.cacheDir=cacheDir;function cacheFile(r,s,i,a,A){return l(this,void 0,void 0,(function*(){a=B.clean(a)||a;A=A||C.arch();d.debug(`Caching tool ${i} ${a} ${A}`);d.debug(`source file: ${r}`);if(!g.statSync(r).isFile()){throw new Error("sourceFile is not a file")}const c=yield _createToolPath(i,a,A);const l=y.join(c,s);d.debug(`destination file ${l}`);yield u.cp(r,l);_completeToolPath(i,a,A);return c}))}s.cacheFile=cacheFile;function find(r,s,i){if(!r){throw new Error("toolName parameter is required")}if(!s){throw new Error("versionSpec parameter is required")}i=i||C.arch();if(!isExplicitVersion(s)){const a=findAllVersions(r,i);const A=evaluateVersions(a,s);s=A}let a="";if(s){s=B.clean(s)||"";const A=y.join(_getCacheDirectory(),r,s,i);d.debug(`checking cache: ${A}`);if(g.existsSync(A)&&g.existsSync(`${A}.complete`)){d.debug(`Found tool in cache ${r} ${s} ${i}`);a=A}else{d.debug("not found")}}return a}s.find=find;function findAllVersions(r,s){const i=[];s=s||C.arch();const a=y.join(_getCacheDirectory(),r);if(g.existsSync(a)){const r=g.readdirSync(a);for(const A of r){if(isExplicitVersion(A)){const r=y.join(a,A,s||"");if(g.existsSync(r)&&g.existsSync(`${r}.complete`)){i.push(A)}}}}return i}s.findAllVersions=findAllVersions;function getManifestFromRepo(r,s,i,a="master"){return l(this,void 0,void 0,(function*(){let A=[];const c=`https://api.github.com/repos/${r}/${s}/git/trees/${a}`;const l=new I.HttpClient("tool-cache");const u={};if(i){d.debug("set auth");u.authorization=i}const p=yield l.getJson(c,u);if(!p.result){return A}let g="";for(const r of p.result.tree){if(r.path==="versions-manifest.json"){g=r.url;break}}u["accept"]="application/vnd.github.VERSION.raw";let h=yield(yield l.get(g,u)).readBody();if(h){h=h.replace(/^\uFEFF/,"");try{A=JSON.parse(h)}catch(r){d.debug("Invalid json")}}return A}))}s.getManifestFromRepo=getManifestFromRepo;function findFromManifest(r,s,i,a=C.arch()){return l(this,void 0,void 0,(function*(){const A=yield h._findMatch(r,s,i,a);return A}))}s.findFromManifest=findFromManifest;function _createExtractFolder(r){return l(this,void 0,void 0,(function*(){if(!r){r=y.join(_getTempDirectory(),p.randomUUID())}yield u.mkdirP(r);return r}))}function _createToolPath(r,s,i){return l(this,void 0,void 0,(function*(){const a=y.join(_getCacheDirectory(),r,B.clean(s)||s,i||"");d.debug(`destination ${a}`);const A=`${a}.complete`;yield u.rmRF(a);yield u.rmRF(A);yield u.mkdirP(a);return a}))}function _completeToolPath(r,s,i){const a=y.join(_getCacheDirectory(),r,B.clean(s)||s,i||"");const A=`${a}.complete`;g.writeFileSync(A,"");d.debug("finished caching tool")}function isExplicitVersion(r){const s=B.clean(r)||"";d.debug(`isExplicit: ${s}`);const i=B.valid(s)!=null;d.debug(`explicit? ${i}`);return i}s.isExplicitVersion=isExplicitVersion;function evaluateVersions(r,s){let i="";d.debug(`evaluating ${r.length} versions`);r=r.sort(((r,s)=>{if(B.gt(r,s)){return 1}return-1}));for(let a=r.length-1;a>=0;a--){const A=r[a];const c=B.satisfies(A,s);if(c){i=A;break}}if(i){d.debug(`matched: ${i}`)}else{d.debug("match not found")}return i}s.evaluateVersions=evaluateVersions;function _getCacheDirectory(){const r=process.env["RUNNER_TOOL_CACHE"]||"";(0,w.ok)(r,"Expected RUNNER_TOOL_CACHE to be defined");return r}function _getTempDirectory(){const r=process.env["RUNNER_TEMP"]||"";(0,w.ok)(r,"Expected RUNNER_TEMP to be defined");return r}function _getGlobal(r,s){const i=global[r];return i!==undefined?i:s}function _unique(r){return Array.from(new Set(r))}},87614:(r,s,i)=>{"use strict";Object.defineProperty(s,"__esModule",{value:true});s.resolveHttpAuthSchemeConfig=s.defaultECRPUBLICHttpAuthSchemeProvider=s.defaultECRPUBLICHttpAuthSchemeParametersProvider=void 0;const a=i(59963);const A=i(2390);const defaultECRPUBLICHttpAuthSchemeParametersProvider=async(r,s,i)=>({operation:(0,A.getSmithyContext)(s).operation,region:await(0,A.normalizeProvider)(r.region)()||(()=>{throw new Error("expected `region` to be configured for `aws.auth#sigv4`")})()});s.defaultECRPUBLICHttpAuthSchemeParametersProvider=defaultECRPUBLICHttpAuthSchemeParametersProvider;function createAwsAuthSigv4HttpAuthOption(r){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"ecr-public",region:r.region},propertiesExtractor:(r,s)=>({signingProperties:{config:r,context:s}})}}const defaultECRPUBLICHttpAuthSchemeProvider=r=>{const s=[];switch(r.operation){default:{s.push(createAwsAuthSigv4HttpAuthOption(r))}}return s};s.defaultECRPUBLICHttpAuthSchemeProvider=defaultECRPUBLICHttpAuthSchemeProvider;const resolveHttpAuthSchemeConfig=r=>{const s=(0,a.resolveAwsSdkSigV4Config)(r);return{...s}};s.resolveHttpAuthSchemeConfig=resolveHttpAuthSchemeConfig},87377:(r,s,i)=>{"use strict";Object.defineProperty(s,"__esModule",{value:true});s.defaultEndpointResolver=void 0;const a=i(13350);const A=i(45473);const c=i(888);const l=new A.EndpointCache({size:50,params:["Endpoint","Region","UseDualStack","UseFIPS"]});const defaultEndpointResolver=(r,s={})=>l.get(r,(()=>(0,A.resolveEndpoint)(c.ruleSet,{endpointParams:r,logger:s.logger})));s.defaultEndpointResolver=defaultEndpointResolver;A.customEndpointFunctions.aws=a.awsEndpointFunctions},888:(r,s)=>{"use strict";Object.defineProperty(s,"__esModule",{value:true});s.ruleSet=void 0;const i="required",a="fn",A="argv",c="ref";const l=true,d="isSet",u="booleanEquals",p="error",g="endpoint",h="tree",C="PartitionResult",y={[i]:false,type:"String"},I={[i]:true,default:false,type:"Boolean"},B={[c]:"Endpoint"},b={[a]:u,[A]:[{[c]:"UseFIPS"},true]},Q={[a]:u,[A]:[{[c]:"UseDualStack"},true]},w={},v={[a]:"getAttr",[A]:[{[c]:C},"supportsFIPS"]},S={[a]:u,[A]:[true,{[a]:"getAttr",[A]:[{[c]:C},"supportsDualStack"]}]},R=[b],N=[Q],x=[{[c]:"Region"}];const D={version:"1.0",parameters:{Region:y,UseDualStack:I,UseFIPS:I,Endpoint:y},rules:[{conditions:[{[a]:d,[A]:[B]}],rules:[{conditions:R,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:p},{conditions:N,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:p},{endpoint:{url:B,properties:w,headers:w},type:g}],type:h},{conditions:[{[a]:d,[A]:x}],rules:[{conditions:[{[a]:"aws.partition",[A]:x,assign:C}],rules:[{conditions:[b,Q],rules:[{conditions:[{[a]:u,[A]:[l,v]},S],rules:[{endpoint:{url:"https://api.ecr-public-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:w,headers:w},type:g}],type:h},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:p}],type:h},{conditions:R,rules:[{conditions:[{[a]:u,[A]:[v,l]}],rules:[{endpoint:{url:"https://api.ecr-public-fips.{Region}.{PartitionResult#dnsSuffix}",properties:w,headers:w},type:g}],type:h},{error:"FIPS is enabled but this partition does not support FIPS",type:p}],type:h},{conditions:N,rules:[{conditions:[S],rules:[{endpoint:{url:"https://api.ecr-public.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:w,headers:w},type:g}],type:h},{error:"DualStack is enabled but this partition does not support DualStack",type:p}],type:h},{endpoint:{url:"https://api.ecr-public.{Region}.{PartitionResult#dnsSuffix}",properties:w,headers:w},type:g}],type:h}],type:h},{error:"Invalid Configuration: Missing Region",type:p}]};s.ruleSet=D},42308:(r,s,i)=>{"use strict";var a=Object.defineProperty;var A=Object.getOwnPropertyDescriptor;var c=Object.getOwnPropertyNames;var l=Object.prototype.hasOwnProperty;var __name=(r,s)=>a(r,"name",{value:s,configurable:true});var __export=(r,s)=>{for(var i in s)a(r,i,{get:s[i],enumerable:true})};var __copyProps=(r,s,i,d)=>{if(s&&typeof s==="object"||typeof s==="function"){for(let u of c(s))if(!l.call(r,u)&&u!==i)a(r,u,{get:()=>s[u],enumerable:!(d=A(s,u))||d.enumerable})}return r};var __toCommonJS=r=>__copyProps(a({},"__esModule",{value:true}),r);var d={};__export(d,{BatchCheckLayerAvailabilityCommand:()=>tr,BatchDeleteImageCommand:()=>rr,CompleteLayerUploadCommand:()=>nr,CreateRepositoryCommand:()=>sr,DeleteRepositoryCommand:()=>ir,DeleteRepositoryPolicyCommand:()=>or,DescribeImageTagsCommand:()=>Ar,DescribeImagesCommand:()=>ar,DescribeRegistriesCommand:()=>cr,DescribeRepositoriesCommand:()=>lr,ECRPUBLIC:()=>wr,ECRPUBLICClient:()=>P,ECRPUBLICServiceException:()=>M,EmptyUploadException:()=>J,GetAuthorizationTokenCommand:()=>dr,GetRegistryCatalogDataCommand:()=>ur,GetRepositoryCatalogDataCommand:()=>pr,GetRepositoryPolicyCommand:()=>gr,ImageAlreadyExistsException:()=>Ae,ImageDigestDoesNotMatchException:()=>ce,ImageFailureCode:()=>Y,ImageNotFoundException:()=>ie,ImageTagAlreadyExistsException:()=>le,InitiateLayerUploadCommand:()=>hr,InvalidLayerException:()=>W,InvalidLayerPartException:()=>de,InvalidParameterException:()=>G,InvalidTagParameterException:()=>Z,LayerAlreadyExistsException:()=>X,LayerAvailability:()=>H,LayerFailureCode:()=>U,LayerPartTooSmallException:()=>$,LayersNotFoundException:()=>ue,LimitExceededException:()=>ee,ListTagsForResourceCommand:()=>mr,PutImageCommand:()=>fr,PutRegistryCatalogDataCommand:()=>Er,PutRepositoryCatalogDataCommand:()=>Cr,ReferencedImagesNotFoundException:()=>pe,RegistryAliasStatus:()=>oe,RegistryNotFoundException:()=>q,RepositoryAlreadyExistsException:()=>te,RepositoryCatalogDataNotFoundException:()=>ae,RepositoryNotEmptyException:()=>ne,RepositoryNotFoundException:()=>V,RepositoryPolicyNotFoundException:()=>se,ServerException:()=>j,SetRepositoryPolicyCommand:()=>yr,TagResourceCommand:()=>Ir,TooManyTagsException:()=>re,UnsupportedCommandException:()=>z,UntagResourceCommand:()=>Br,UploadLayerPartCommand:()=>br,UploadNotFoundException:()=>K,__Client:()=>x.Client,paginateDescribeImageTags:()=>vr,paginateDescribeImages:()=>Sr,paginateDescribeRegistries:()=>Rr,paginateDescribeRepositories:()=>Nr});r.exports=__toCommonJS(d);var u=i(22545);var p=i(20014);var g=i(85525);var h=i(64688);var C=i(53098);var y=i(55829);var I=i(82800);var B=i(82918);var b=i(96039);var Q=i(87614);var w=__name((r=>({...r,useDualstackEndpoint:r.useDualstackEndpoint??false,useFipsEndpoint:r.useFipsEndpoint??false,defaultSigningName:"ecr-public"})),"resolveClientEndpointParameters");var v={UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}};var S=i(49324);var R=i(18156);var N=i(64418);var x=i(63570);var D=__name((r=>{const s=r.httpAuthSchemes;let i=r.httpAuthSchemeProvider;let a=r.credentials;return{setHttpAuthScheme(r){const i=s.findIndex((s=>s.schemeId===r.schemeId));if(i===-1){s.push(r)}else{s.splice(i,1,r)}},httpAuthSchemes(){return s},setHttpAuthSchemeProvider(r){i=r},httpAuthSchemeProvider(){return i},setCredentials(r){a=r},credentials(){return a}}}),"getHttpAuthExtensionConfiguration");var k=__name((r=>({httpAuthSchemes:r.httpAuthSchemes(),httpAuthSchemeProvider:r.httpAuthSchemeProvider(),credentials:r.credentials()})),"resolveHttpAuthRuntimeConfig");var T=__name((r=>r),"asPartial");var _=__name(((r,s)=>{const i={...T((0,R.getAwsRegionExtensionConfiguration)(r)),...T((0,x.getDefaultExtensionConfiguration)(r)),...T((0,N.getHttpHandlerExtensionConfiguration)(r)),...T(D(r))};s.forEach((r=>r.configure(i)));return{...r,...(0,R.resolveAwsRegionExtensionConfiguration)(i),...(0,x.resolveDefaultRuntimeConfig)(i),...(0,N.resolveHttpHandlerRuntimeConfig)(i),...k(i)}}),"resolveRuntimeExtensions");var P=class extends x.Client{static{__name(this,"ECRPUBLICClient")}config;constructor(...[r]){const s=(0,S.getRuntimeConfig)(r||{});const i=w(s);const a=(0,h.resolveUserAgentConfig)(i);const A=(0,b.resolveRetryConfig)(a);const c=(0,C.resolveRegionConfig)(A);const l=(0,u.resolveHostHeaderConfig)(c);const d=(0,B.resolveEndpointConfig)(l);const v=(0,Q.resolveHttpAuthSchemeConfig)(d);const R=_(v,r?.extensions||[]);super(R);this.config=R;this.middlewareStack.use((0,h.getUserAgentPlugin)(this.config));this.middlewareStack.use((0,b.getRetryPlugin)(this.config));this.middlewareStack.use((0,I.getContentLengthPlugin)(this.config));this.middlewareStack.use((0,u.getHostHeaderPlugin)(this.config));this.middlewareStack.use((0,p.getLoggerPlugin)(this.config));this.middlewareStack.use((0,g.getRecursionDetectionPlugin)(this.config));this.middlewareStack.use((0,y.getHttpAuthSchemeEndpointRuleSetPlugin)(this.config,{httpAuthSchemeParametersProvider:Q.defaultECRPUBLICHttpAuthSchemeParametersProvider,identityProviderConfigProvider:async r=>new y.DefaultIdentityProviderConfig({"aws.auth#sigv4":r.credentials})}));this.middlewareStack.use((0,y.getHttpSigningPlugin)(this.config))}destroy(){super.destroy()}};var O=i(81238);var L=i(59963);var M=class _ECRPUBLICServiceException extends x.ServiceException{static{__name(this,"ECRPUBLICServiceException")}constructor(r){super(r);Object.setPrototypeOf(this,_ECRPUBLICServiceException.prototype)}};var U={InvalidLayerDigest:"InvalidLayerDigest",MissingLayerDigest:"MissingLayerDigest"};var H={AVAILABLE:"AVAILABLE",UNAVAILABLE:"UNAVAILABLE"};var G=class _InvalidParameterException extends M{static{__name(this,"InvalidParameterException")}name="InvalidParameterException";$fault="client";constructor(r){super({name:"InvalidParameterException",$fault:"client",...r});Object.setPrototypeOf(this,_InvalidParameterException.prototype)}};var q=class _RegistryNotFoundException extends M{static{__name(this,"RegistryNotFoundException")}name="RegistryNotFoundException";$fault="client";constructor(r){super({name:"RegistryNotFoundException",$fault:"client",...r});Object.setPrototypeOf(this,_RegistryNotFoundException.prototype)}};var V=class _RepositoryNotFoundException extends M{static{__name(this,"RepositoryNotFoundException")}name="RepositoryNotFoundException";$fault="client";constructor(r){super({name:"RepositoryNotFoundException",$fault:"client",...r});Object.setPrototypeOf(this,_RepositoryNotFoundException.prototype)}};var j=class _ServerException extends M{static{__name(this,"ServerException")}name="ServerException";$fault="server";constructor(r){super({name:"ServerException",$fault:"server",...r});Object.setPrototypeOf(this,_ServerException.prototype)}};var z=class _UnsupportedCommandException extends M{static{__name(this,"UnsupportedCommandException")}name="UnsupportedCommandException";$fault="client";constructor(r){super({name:"UnsupportedCommandException",$fault:"client",...r});Object.setPrototypeOf(this,_UnsupportedCommandException.prototype)}};var Y={ImageNotFound:"ImageNotFound",ImageReferencedByManifestList:"ImageReferencedByManifestList",ImageTagDoesNotMatchDigest:"ImageTagDoesNotMatchDigest",InvalidImageDigest:"InvalidImageDigest",InvalidImageTag:"InvalidImageTag",KmsError:"KmsError",MissingDigestAndTag:"MissingDigestAndTag"};var J=class _EmptyUploadException extends M{static{__name(this,"EmptyUploadException")}name="EmptyUploadException";$fault="client";constructor(r){super({name:"EmptyUploadException",$fault:"client",...r});Object.setPrototypeOf(this,_EmptyUploadException.prototype)}};var W=class _InvalidLayerException extends M{static{__name(this,"InvalidLayerException")}name="InvalidLayerException";$fault="client";constructor(r){super({name:"InvalidLayerException",$fault:"client",...r});Object.setPrototypeOf(this,_InvalidLayerException.prototype)}};var X=class _LayerAlreadyExistsException extends M{static{__name(this,"LayerAlreadyExistsException")}name="LayerAlreadyExistsException";$fault="client";constructor(r){super({name:"LayerAlreadyExistsException",$fault:"client",...r});Object.setPrototypeOf(this,_LayerAlreadyExistsException.prototype)}};var $=class _LayerPartTooSmallException extends M{static{__name(this,"LayerPartTooSmallException")}name="LayerPartTooSmallException";$fault="client";constructor(r){super({name:"LayerPartTooSmallException",$fault:"client",...r});Object.setPrototypeOf(this,_LayerPartTooSmallException.prototype)}};var K=class _UploadNotFoundException extends M{static{__name(this,"UploadNotFoundException")}name="UploadNotFoundException";$fault="client";constructor(r){super({name:"UploadNotFoundException",$fault:"client",...r});Object.setPrototypeOf(this,_UploadNotFoundException.prototype)}};var Z=class _InvalidTagParameterException extends M{static{__name(this,"InvalidTagParameterException")}name="InvalidTagParameterException";$fault="client";constructor(r){super({name:"InvalidTagParameterException",$fault:"client",...r});Object.setPrototypeOf(this,_InvalidTagParameterException.prototype)}};var ee=class _LimitExceededException extends M{static{__name(this,"LimitExceededException")}name="LimitExceededException";$fault="client";constructor(r){super({name:"LimitExceededException",$fault:"client",...r});Object.setPrototypeOf(this,_LimitExceededException.prototype)}};var te=class _RepositoryAlreadyExistsException extends M{static{__name(this,"RepositoryAlreadyExistsException")}name="RepositoryAlreadyExistsException";$fault="client";constructor(r){super({name:"RepositoryAlreadyExistsException",$fault:"client",...r});Object.setPrototypeOf(this,_RepositoryAlreadyExistsException.prototype)}};var re=class _TooManyTagsException extends M{static{__name(this,"TooManyTagsException")}name="TooManyTagsException";$fault="client";constructor(r){super({name:"TooManyTagsException",$fault:"client",...r});Object.setPrototypeOf(this,_TooManyTagsException.prototype)}};var ne=class _RepositoryNotEmptyException extends M{static{__name(this,"RepositoryNotEmptyException")}name="RepositoryNotEmptyException";$fault="client";constructor(r){super({name:"RepositoryNotEmptyException",$fault:"client",...r});Object.setPrototypeOf(this,_RepositoryNotEmptyException.prototype)}};var se=class _RepositoryPolicyNotFoundException extends M{static{__name(this,"RepositoryPolicyNotFoundException")}name="RepositoryPolicyNotFoundException";$fault="client";constructor(r){super({name:"RepositoryPolicyNotFoundException",$fault:"client",...r});Object.setPrototypeOf(this,_RepositoryPolicyNotFoundException.prototype)}};var ie=class _ImageNotFoundException extends M{static{__name(this,"ImageNotFoundException")}name="ImageNotFoundException";$fault="client";constructor(r){super({name:"ImageNotFoundException",$fault:"client",...r});Object.setPrototypeOf(this,_ImageNotFoundException.prototype)}};var oe={ACTIVE:"ACTIVE",PENDING:"PENDING",REJECTED:"REJECTED"};var ae=class _RepositoryCatalogDataNotFoundException extends M{static{__name(this,"RepositoryCatalogDataNotFoundException")}name="RepositoryCatalogDataNotFoundException";$fault="client";constructor(r){super({name:"RepositoryCatalogDataNotFoundException",$fault:"client",...r});Object.setPrototypeOf(this,_RepositoryCatalogDataNotFoundException.prototype)}};var Ae=class _ImageAlreadyExistsException extends M{static{__name(this,"ImageAlreadyExistsException")}name="ImageAlreadyExistsException";$fault="client";constructor(r){super({name:"ImageAlreadyExistsException",$fault:"client",...r});Object.setPrototypeOf(this,_ImageAlreadyExistsException.prototype)}};var ce=class _ImageDigestDoesNotMatchException extends M{static{__name(this,"ImageDigestDoesNotMatchException")}name="ImageDigestDoesNotMatchException";$fault="client";constructor(r){super({name:"ImageDigestDoesNotMatchException",$fault:"client",...r});Object.setPrototypeOf(this,_ImageDigestDoesNotMatchException.prototype)}};var le=class _ImageTagAlreadyExistsException extends M{static{__name(this,"ImageTagAlreadyExistsException")}name="ImageTagAlreadyExistsException";$fault="client";constructor(r){super({name:"ImageTagAlreadyExistsException",$fault:"client",...r});Object.setPrototypeOf(this,_ImageTagAlreadyExistsException.prototype)}};var de=class _InvalidLayerPartException extends M{static{__name(this,"InvalidLayerPartException")}name="InvalidLayerPartException";$fault="client";registryId;repositoryName;uploadId;lastValidByteReceived;constructor(r){super({name:"InvalidLayerPartException",$fault:"client",...r});Object.setPrototypeOf(this,_InvalidLayerPartException.prototype);this.registryId=r.registryId;this.repositoryName=r.repositoryName;this.uploadId=r.uploadId;this.lastValidByteReceived=r.lastValidByteReceived}};var ue=class _LayersNotFoundException extends M{static{__name(this,"LayersNotFoundException")}name="LayersNotFoundException";$fault="client";constructor(r){super({name:"LayersNotFoundException",$fault:"client",...r});Object.setPrototypeOf(this,_LayersNotFoundException.prototype)}};var pe=class _ReferencedImagesNotFoundException extends M{static{__name(this,"ReferencedImagesNotFoundException")}name="ReferencedImagesNotFoundException";$fault="client";constructor(r){super({name:"ReferencedImagesNotFoundException",$fault:"client",...r});Object.setPrototypeOf(this,_ReferencedImagesNotFoundException.prototype)}};var ge=__name((async(r,s)=>{const i=sharedHeaders("BatchCheckLayerAvailability");let a;a=JSON.stringify((0,x._json)(r));return er(s,i,"/",void 0,a)}),"se_BatchCheckLayerAvailabilityCommand");var he=__name((async(r,s)=>{const i=sharedHeaders("BatchDeleteImage");let a;a=JSON.stringify((0,x._json)(r));return er(s,i,"/",void 0,a)}),"se_BatchDeleteImageCommand");var me=__name((async(r,s)=>{const i=sharedHeaders("CompleteLayerUpload");let a;a=JSON.stringify((0,x._json)(r));return er(s,i,"/",void 0,a)}),"se_CompleteLayerUploadCommand");var fe=__name((async(r,s)=>{const i=sharedHeaders("CreateRepository");let a;a=JSON.stringify(_t(r,s));return er(s,i,"/",void 0,a)}),"se_CreateRepositoryCommand");var Ee=__name((async(r,s)=>{const i=sharedHeaders("DeleteRepository");let a;a=JSON.stringify((0,x._json)(r));return er(s,i,"/",void 0,a)}),"se_DeleteRepositoryCommand");var Ce=__name((async(r,s)=>{const i=sharedHeaders("DeleteRepositoryPolicy");let a;a=JSON.stringify((0,x._json)(r));return er(s,i,"/",void 0,a)}),"se_DeleteRepositoryPolicyCommand");var ye=__name((async(r,s)=>{const i=sharedHeaders("DescribeImages");let a;a=JSON.stringify((0,x._json)(r));return er(s,i,"/",void 0,a)}),"se_DescribeImagesCommand");var Ie=__name((async(r,s)=>{const i=sharedHeaders("DescribeImageTags");let a;a=JSON.stringify((0,x._json)(r));return er(s,i,"/",void 0,a)}),"se_DescribeImageTagsCommand");var Be=__name((async(r,s)=>{const i=sharedHeaders("DescribeRegistries");let a;a=JSON.stringify((0,x._json)(r));return er(s,i,"/",void 0,a)}),"se_DescribeRegistriesCommand");var be=__name((async(r,s)=>{const i=sharedHeaders("DescribeRepositories");let a;a=JSON.stringify((0,x._json)(r));return er(s,i,"/",void 0,a)}),"se_DescribeRepositoriesCommand");var Qe=__name((async(r,s)=>{const i=sharedHeaders("GetAuthorizationToken");let a;a=JSON.stringify((0,x._json)(r));return er(s,i,"/",void 0,a)}),"se_GetAuthorizationTokenCommand");var we=__name((async(r,s)=>{const i=sharedHeaders("GetRegistryCatalogData");let a;a=JSON.stringify((0,x._json)(r));return er(s,i,"/",void 0,a)}),"se_GetRegistryCatalogDataCommand");var ve=__name((async(r,s)=>{const i=sharedHeaders("GetRepositoryCatalogData");let a;a=JSON.stringify((0,x._json)(r));return er(s,i,"/",void 0,a)}),"se_GetRepositoryCatalogDataCommand");var Se=__name((async(r,s)=>{const i=sharedHeaders("GetRepositoryPolicy");let a;a=JSON.stringify((0,x._json)(r));return er(s,i,"/",void 0,a)}),"se_GetRepositoryPolicyCommand");var Re=__name((async(r,s)=>{const i=sharedHeaders("InitiateLayerUpload");let a;a=JSON.stringify((0,x._json)(r));return er(s,i,"/",void 0,a)}),"se_InitiateLayerUploadCommand");var Ne=__name((async(r,s)=>{const i=sharedHeaders("ListTagsForResource");let a;a=JSON.stringify((0,x._json)(r));return er(s,i,"/",void 0,a)}),"se_ListTagsForResourceCommand");var xe=__name((async(r,s)=>{const i=sharedHeaders("PutImage");let a;a=JSON.stringify((0,x._json)(r));return er(s,i,"/",void 0,a)}),"se_PutImageCommand");var De=__name((async(r,s)=>{const i=sharedHeaders("PutRegistryCatalogData");let a;a=JSON.stringify((0,x._json)(r));return er(s,i,"/",void 0,a)}),"se_PutRegistryCatalogDataCommand");var ke=__name((async(r,s)=>{const i=sharedHeaders("PutRepositoryCatalogData");let a;a=JSON.stringify(Pt(r,s));return er(s,i,"/",void 0,a)}),"se_PutRepositoryCatalogDataCommand");var Te=__name((async(r,s)=>{const i=sharedHeaders("SetRepositoryPolicy");let a;a=JSON.stringify((0,x._json)(r));return er(s,i,"/",void 0,a)}),"se_SetRepositoryPolicyCommand");var _e=__name((async(r,s)=>{const i=sharedHeaders("TagResource");let a;a=JSON.stringify((0,x._json)(r));return er(s,i,"/",void 0,a)}),"se_TagResourceCommand");var Pe=__name((async(r,s)=>{const i=sharedHeaders("UntagResource");let a;a=JSON.stringify((0,x._json)(r));return er(s,i,"/",void 0,a)}),"se_UntagResourceCommand");var Oe=__name((async(r,s)=>{const i=sharedHeaders("UploadLayerPart");let a;a=JSON.stringify(Ft(r,s));return er(s,i,"/",void 0,a)}),"se_UploadLayerPartCommand");var Fe=__name((async(r,s)=>{if(r.statusCode>=300){return ot(r,s)}const i=await(0,L.parseJsonBody)(r.body,s);let a={};a=(0,x._json)(i);const A={$metadata:Kt(r),...a};return A}),"de_BatchCheckLayerAvailabilityCommand");var Le=__name((async(r,s)=>{if(r.statusCode>=300){return ot(r,s)}const i=await(0,L.parseJsonBody)(r.body,s);let a={};a=(0,x._json)(i);const A={$metadata:Kt(r),...a};return A}),"de_BatchDeleteImageCommand");var Me=__name((async(r,s)=>{if(r.statusCode>=300){return ot(r,s)}const i=await(0,L.parseJsonBody)(r.body,s);let a={};a=(0,x._json)(i);const A={$metadata:Kt(r),...a};return A}),"de_CompleteLayerUploadCommand");var Ue=__name((async(r,s)=>{if(r.statusCode>=300){return ot(r,s)}const i=await(0,L.parseJsonBody)(r.body,s);let a={};a=Mt(i,s);const A={$metadata:Kt(r),...a};return A}),"de_CreateRepositoryCommand");var He=__name((async(r,s)=>{if(r.statusCode>=300){return ot(r,s)}const i=await(0,L.parseJsonBody)(r.body,s);let a={};a=Ut(i,s);const A={$metadata:Kt(r),...a};return A}),"de_DeleteRepositoryCommand");var Ge=__name((async(r,s)=>{if(r.statusCode>=300){return ot(r,s)}const i=await(0,L.parseJsonBody)(r.body,s);let a={};a=(0,x._json)(i);const A={$metadata:Kt(r),...a};return A}),"de_DeleteRepositoryPolicyCommand");var qe=__name((async(r,s)=>{if(r.statusCode>=300){return ot(r,s)}const i=await(0,L.parseJsonBody)(r.body,s);let a={};a=Ht(i,s);const A={$metadata:Kt(r),...a};return A}),"de_DescribeImagesCommand");var Ve=__name((async(r,s)=>{if(r.statusCode>=300){return ot(r,s)}const i=await(0,L.parseJsonBody)(r.body,s);let a={};a=Gt(i,s);const A={$metadata:Kt(r),...a};return A}),"de_DescribeImageTagsCommand");var je=__name((async(r,s)=>{if(r.statusCode>=300){return ot(r,s)}const i=await(0,L.parseJsonBody)(r.body,s);let a={};a=(0,x._json)(i);const A={$metadata:Kt(r),...a};return A}),"de_DescribeRegistriesCommand");var ze=__name((async(r,s)=>{if(r.statusCode>=300){return ot(r,s)}const i=await(0,L.parseJsonBody)(r.body,s);let a={};a=qt(i,s);const A={$metadata:Kt(r),...a};return A}),"de_DescribeRepositoriesCommand");var Ye=__name((async(r,s)=>{if(r.statusCode>=300){return ot(r,s)}const i=await(0,L.parseJsonBody)(r.body,s);let a={};a=Vt(i,s);const A={$metadata:Kt(r),...a};return A}),"de_GetAuthorizationTokenCommand");var Je=__name((async(r,s)=>{if(r.statusCode>=300){return ot(r,s)}const i=await(0,L.parseJsonBody)(r.body,s);let a={};a=(0,x._json)(i);const A={$metadata:Kt(r),...a};return A}),"de_GetRegistryCatalogDataCommand");var We=__name((async(r,s)=>{if(r.statusCode>=300){return ot(r,s)}const i=await(0,L.parseJsonBody)(r.body,s);let a={};a=(0,x._json)(i);const A={$metadata:Kt(r),...a};return A}),"de_GetRepositoryCatalogDataCommand");var Xe=__name((async(r,s)=>{if(r.statusCode>=300){return ot(r,s)}const i=await(0,L.parseJsonBody)(r.body,s);let a={};a=(0,x._json)(i);const A={$metadata:Kt(r),...a};return A}),"de_GetRepositoryPolicyCommand");var $e=__name((async(r,s)=>{if(r.statusCode>=300){return ot(r,s)}const i=await(0,L.parseJsonBody)(r.body,s);let a={};a=(0,x._json)(i);const A={$metadata:Kt(r),...a};return A}),"de_InitiateLayerUploadCommand");var Ke=__name((async(r,s)=>{if(r.statusCode>=300){return ot(r,s)}const i=await(0,L.parseJsonBody)(r.body,s);let a={};a=(0,x._json)(i);const A={$metadata:Kt(r),...a};return A}),"de_ListTagsForResourceCommand");var Ze=__name((async(r,s)=>{if(r.statusCode>=300){return ot(r,s)}const i=await(0,L.parseJsonBody)(r.body,s);let a={};a=(0,x._json)(i);const A={$metadata:Kt(r),...a};return A}),"de_PutImageCommand");var et=__name((async(r,s)=>{if(r.statusCode>=300){return ot(r,s)}const i=await(0,L.parseJsonBody)(r.body,s);let a={};a=(0,x._json)(i);const A={$metadata:Kt(r),...a};return A}),"de_PutRegistryCatalogDataCommand");var tt=__name((async(r,s)=>{if(r.statusCode>=300){return ot(r,s)}const i=await(0,L.parseJsonBody)(r.body,s);let a={};a=(0,x._json)(i);const A={$metadata:Kt(r),...a};return A}),"de_PutRepositoryCatalogDataCommand");var rt=__name((async(r,s)=>{if(r.statusCode>=300){return ot(r,s)}const i=await(0,L.parseJsonBody)(r.body,s);let a={};a=(0,x._json)(i);const A={$metadata:Kt(r),...a};return A}),"de_SetRepositoryPolicyCommand");var nt=__name((async(r,s)=>{if(r.statusCode>=300){return ot(r,s)}const i=await(0,L.parseJsonBody)(r.body,s);let a={};a=(0,x._json)(i);const A={$metadata:Kt(r),...a};return A}),"de_TagResourceCommand");var st=__name((async(r,s)=>{if(r.statusCode>=300){return ot(r,s)}const i=await(0,L.parseJsonBody)(r.body,s);let a={};a=(0,x._json)(i);const A={$metadata:Kt(r),...a};return A}),"de_UntagResourceCommand");var it=__name((async(r,s)=>{if(r.statusCode>=300){return ot(r,s)}const i=await(0,L.parseJsonBody)(r.body,s);let a={};a=(0,x._json)(i);const A={$metadata:Kt(r),...a};return A}),"de_UploadLayerPartCommand");var ot=__name((async(r,s)=>{const i={...r,body:await(0,L.parseJsonErrorBody)(r.body,s)};const a=(0,L.loadRestJsonErrorCode)(r,i.body);switch(a){case"InvalidParameterException":case"com.amazonaws.ecrpublic#InvalidParameterException":throw await ft(i,s);case"RegistryNotFoundException":case"com.amazonaws.ecrpublic#RegistryNotFoundException":throw await Qt(i,s);case"RepositoryNotFoundException":case"com.amazonaws.ecrpublic#RepositoryNotFoundException":throw await Rt(i,s);case"ServerException":case"com.amazonaws.ecrpublic#ServerException":throw await xt(i,s);case"UnsupportedCommandException":case"com.amazonaws.ecrpublic#UnsupportedCommandException":throw await kt(i,s);case"EmptyUploadException":case"com.amazonaws.ecrpublic#EmptyUploadException":throw await At(i,s);case"InvalidLayerException":case"com.amazonaws.ecrpublic#InvalidLayerException":throw await ht(i,s);case"LayerAlreadyExistsException":case"com.amazonaws.ecrpublic#LayerAlreadyExistsException":throw await Ct(i,s);case"LayerPartTooSmallException":case"com.amazonaws.ecrpublic#LayerPartTooSmallException":throw await yt(i,s);case"UploadNotFoundException":case"com.amazonaws.ecrpublic#UploadNotFoundException":throw await Tt(i,s);case"InvalidTagParameterException":case"com.amazonaws.ecrpublic#InvalidTagParameterException":throw await Et(i,s);case"LimitExceededException":case"com.amazonaws.ecrpublic#LimitExceededException":throw await Bt(i,s);case"RepositoryAlreadyExistsException":case"com.amazonaws.ecrpublic#RepositoryAlreadyExistsException":throw await wt(i,s);case"TooManyTagsException":case"com.amazonaws.ecrpublic#TooManyTagsException":throw await Dt(i,s);case"RepositoryNotEmptyException":case"com.amazonaws.ecrpublic#RepositoryNotEmptyException":throw await St(i,s);case"RepositoryPolicyNotFoundException":case"com.amazonaws.ecrpublic#RepositoryPolicyNotFoundException":throw await Nt(i,s);case"ImageNotFoundException":case"com.amazonaws.ecrpublic#ImageNotFoundException":throw await ut(i,s);case"RepositoryCatalogDataNotFoundException":case"com.amazonaws.ecrpublic#RepositoryCatalogDataNotFoundException":throw await vt(i,s);case"ImageAlreadyExistsException":case"com.amazonaws.ecrpublic#ImageAlreadyExistsException":throw await ct(i,s);case"ImageDigestDoesNotMatchException":case"com.amazonaws.ecrpublic#ImageDigestDoesNotMatchException":throw await dt(i,s);case"ImageTagAlreadyExistsException":case"com.amazonaws.ecrpublic#ImageTagAlreadyExistsException":throw await pt(i,s);case"LayersNotFoundException":case"com.amazonaws.ecrpublic#LayersNotFoundException":throw await It(i,s);case"ReferencedImagesNotFoundException":case"com.amazonaws.ecrpublic#ReferencedImagesNotFoundException":throw await bt(i,s);case"InvalidLayerPartException":case"com.amazonaws.ecrpublic#InvalidLayerPartException":throw await mt(i,s);default:const A=i.body;return Zt({output:r,parsedBody:A,errorCode:a})}}),"de_CommandError");var At=__name((async(r,s)=>{const i=r.body;const a=(0,x._json)(i);const A=new J({$metadata:Kt(r),...a});return(0,x.decorateServiceException)(A,i)}),"de_EmptyUploadExceptionRes");var ct=__name((async(r,s)=>{const i=r.body;const a=(0,x._json)(i);const A=new Ae({$metadata:Kt(r),...a});return(0,x.decorateServiceException)(A,i)}),"de_ImageAlreadyExistsExceptionRes");var dt=__name((async(r,s)=>{const i=r.body;const a=(0,x._json)(i);const A=new ce({$metadata:Kt(r),...a});return(0,x.decorateServiceException)(A,i)}),"de_ImageDigestDoesNotMatchExceptionRes");var ut=__name((async(r,s)=>{const i=r.body;const a=(0,x._json)(i);const A=new ie({$metadata:Kt(r),...a});return(0,x.decorateServiceException)(A,i)}),"de_ImageNotFoundExceptionRes");var pt=__name((async(r,s)=>{const i=r.body;const a=(0,x._json)(i);const A=new le({$metadata:Kt(r),...a});return(0,x.decorateServiceException)(A,i)}),"de_ImageTagAlreadyExistsExceptionRes");var ht=__name((async(r,s)=>{const i=r.body;const a=(0,x._json)(i);const A=new W({$metadata:Kt(r),...a});return(0,x.decorateServiceException)(A,i)}),"de_InvalidLayerExceptionRes");var mt=__name((async(r,s)=>{const i=r.body;const a=(0,x._json)(i);const A=new de({$metadata:Kt(r),...a});return(0,x.decorateServiceException)(A,i)}),"de_InvalidLayerPartExceptionRes");var ft=__name((async(r,s)=>{const i=r.body;const a=(0,x._json)(i);const A=new G({$metadata:Kt(r),...a});return(0,x.decorateServiceException)(A,i)}),"de_InvalidParameterExceptionRes");var Et=__name((async(r,s)=>{const i=r.body;const a=(0,x._json)(i);const A=new Z({$metadata:Kt(r),...a});return(0,x.decorateServiceException)(A,i)}),"de_InvalidTagParameterExceptionRes");var Ct=__name((async(r,s)=>{const i=r.body;const a=(0,x._json)(i);const A=new X({$metadata:Kt(r),...a});return(0,x.decorateServiceException)(A,i)}),"de_LayerAlreadyExistsExceptionRes");var yt=__name((async(r,s)=>{const i=r.body;const a=(0,x._json)(i);const A=new $({$metadata:Kt(r),...a});return(0,x.decorateServiceException)(A,i)}),"de_LayerPartTooSmallExceptionRes");var It=__name((async(r,s)=>{const i=r.body;const a=(0,x._json)(i);const A=new ue({$metadata:Kt(r),...a});return(0,x.decorateServiceException)(A,i)}),"de_LayersNotFoundExceptionRes");var Bt=__name((async(r,s)=>{const i=r.body;const a=(0,x._json)(i);const A=new ee({$metadata:Kt(r),...a});return(0,x.decorateServiceException)(A,i)}),"de_LimitExceededExceptionRes");var bt=__name((async(r,s)=>{const i=r.body;const a=(0,x._json)(i);const A=new pe({$metadata:Kt(r),...a});return(0,x.decorateServiceException)(A,i)}),"de_ReferencedImagesNotFoundExceptionRes");var Qt=__name((async(r,s)=>{const i=r.body;const a=(0,x._json)(i);const A=new q({$metadata:Kt(r),...a});return(0,x.decorateServiceException)(A,i)}),"de_RegistryNotFoundExceptionRes");var wt=__name((async(r,s)=>{const i=r.body;const a=(0,x._json)(i);const A=new te({$metadata:Kt(r),...a});return(0,x.decorateServiceException)(A,i)}),"de_RepositoryAlreadyExistsExceptionRes");var vt=__name((async(r,s)=>{const i=r.body;const a=(0,x._json)(i);const A=new ae({$metadata:Kt(r),...a});return(0,x.decorateServiceException)(A,i)}),"de_RepositoryCatalogDataNotFoundExceptionRes");var St=__name((async(r,s)=>{const i=r.body;const a=(0,x._json)(i);const A=new ne({$metadata:Kt(r),...a});return(0,x.decorateServiceException)(A,i)}),"de_RepositoryNotEmptyExceptionRes");var Rt=__name((async(r,s)=>{const i=r.body;const a=(0,x._json)(i);const A=new V({$metadata:Kt(r),...a});return(0,x.decorateServiceException)(A,i)}),"de_RepositoryNotFoundExceptionRes");var Nt=__name((async(r,s)=>{const i=r.body;const a=(0,x._json)(i);const A=new se({$metadata:Kt(r),...a});return(0,x.decorateServiceException)(A,i)}),"de_RepositoryPolicyNotFoundExceptionRes");var xt=__name((async(r,s)=>{const i=r.body;const a=(0,x._json)(i);const A=new j({$metadata:Kt(r),...a});return(0,x.decorateServiceException)(A,i)}),"de_ServerExceptionRes");var Dt=__name((async(r,s)=>{const i=r.body;const a=(0,x._json)(i);const A=new re({$metadata:Kt(r),...a});return(0,x.decorateServiceException)(A,i)}),"de_TooManyTagsExceptionRes");var kt=__name((async(r,s)=>{const i=r.body;const a=(0,x._json)(i);const A=new z({$metadata:Kt(r),...a});return(0,x.decorateServiceException)(A,i)}),"de_UnsupportedCommandExceptionRes");var Tt=__name((async(r,s)=>{const i=r.body;const a=(0,x._json)(i);const A=new K({$metadata:Kt(r),...a});return(0,x.decorateServiceException)(A,i)}),"de_UploadNotFoundExceptionRes");var _t=__name(((r,s)=>(0,x.take)(r,{catalogData:r=>Ot(r,s),repositoryName:[],tags:x._json})),"se_CreateRepositoryRequest");var Pt=__name(((r,s)=>(0,x.take)(r,{catalogData:r=>Ot(r,s),registryId:[],repositoryName:[]})),"se_PutRepositoryCatalogDataRequest");var Ot=__name(((r,s)=>(0,x.take)(r,{aboutText:[],architectures:x._json,description:[],logoImageBlob:s.base64Encoder,operatingSystems:x._json,usageText:[]})),"se_RepositoryCatalogDataInput");var Ft=__name(((r,s)=>(0,x.take)(r,{layerPartBlob:s.base64Encoder,partFirstByte:[],partLastByte:[],registryId:[],repositoryName:[],uploadId:[]})),"se_UploadLayerPartRequest");var Lt=__name(((r,s)=>(0,x.take)(r,{authorizationToken:x.expectString,expiresAt:r=>(0,x.expectNonNull)((0,x.parseEpochTimestamp)((0,x.expectNumber)(r)))})),"de_AuthorizationData");var Mt=__name(((r,s)=>(0,x.take)(r,{catalogData:x._json,repository:r=>Xt(r,s)})),"de_CreateRepositoryResponse");var Ut=__name(((r,s)=>(0,x.take)(r,{repository:r=>Xt(r,s)})),"de_DeleteRepositoryResponse");var Ht=__name(((r,s)=>(0,x.take)(r,{imageDetails:r=>zt(r,s),nextToken:x.expectString})),"de_DescribeImagesResponse");var Gt=__name(((r,s)=>(0,x.take)(r,{imageTagDetails:r=>Jt(r,s),nextToken:x.expectString})),"de_DescribeImageTagsResponse");var qt=__name(((r,s)=>(0,x.take)(r,{nextToken:x.expectString,repositories:r=>$t(r,s)})),"de_DescribeRepositoriesResponse");var Vt=__name(((r,s)=>(0,x.take)(r,{authorizationData:r=>Lt(r,s)})),"de_GetAuthorizationTokenResponse");var jt=__name(((r,s)=>(0,x.take)(r,{artifactMediaType:x.expectString,imageDigest:x.expectString,imageManifestMediaType:x.expectString,imagePushedAt:r=>(0,x.expectNonNull)((0,x.parseEpochTimestamp)((0,x.expectNumber)(r))),imageSizeInBytes:x.expectLong,imageTags:x._json,registryId:x.expectString,repositoryName:x.expectString})),"de_ImageDetail");var zt=__name(((r,s)=>{const i=(r||[]).filter((r=>r!=null)).map((r=>jt(r,s)));return i}),"de_ImageDetailList");var Yt=__name(((r,s)=>(0,x.take)(r,{createdAt:r=>(0,x.expectNonNull)((0,x.parseEpochTimestamp)((0,x.expectNumber)(r))),imageDetail:r=>Wt(r,s),imageTag:x.expectString})),"de_ImageTagDetail");var Jt=__name(((r,s)=>{const i=(r||[]).filter((r=>r!=null)).map((r=>Yt(r,s)));return i}),"de_ImageTagDetailList");var Wt=__name(((r,s)=>(0,x.take)(r,{artifactMediaType:x.expectString,imageDigest:x.expectString,imageManifestMediaType:x.expectString,imagePushedAt:r=>(0,x.expectNonNull)((0,x.parseEpochTimestamp)((0,x.expectNumber)(r))),imageSizeInBytes:x.expectLong})),"de_ReferencedImageDetail");var Xt=__name(((r,s)=>(0,x.take)(r,{createdAt:r=>(0,x.expectNonNull)((0,x.parseEpochTimestamp)((0,x.expectNumber)(r))),registryId:x.expectString,repositoryArn:x.expectString,repositoryName:x.expectString,repositoryUri:x.expectString})),"de_Repository");var $t=__name(((r,s)=>{const i=(r||[]).filter((r=>r!=null)).map((r=>Xt(r,s)));return i}),"de_RepositoryList");var Kt=__name((r=>({httpStatusCode:r.statusCode,requestId:r.headers["x-amzn-requestid"]??r.headers["x-amzn-request-id"]??r.headers["x-amz-request-id"],extendedRequestId:r.headers["x-amz-id-2"],cfId:r.headers["x-amz-cf-id"]})),"deserializeMetadata");var Zt=(0,x.withBaseException)(M);var er=__name((async(r,s,i,a,A)=>{const{hostname:c,protocol:l="https",port:d,path:u}=await r.endpoint();const p={protocol:l,hostname:c,port:d,method:"POST",path:u.endsWith("/")?u.slice(0,-1)+i:u+i,headers:s};if(a!==void 0){p.hostname=a}if(A!==void 0){p.body=A}return new N.HttpRequest(p)}),"buildHttpRpcRequest");function sharedHeaders(r){return{"content-type":"application/x-amz-json-1.1","x-amz-target":`SpencerFrontendService.${r}`}}__name(sharedHeaders,"sharedHeaders");var tr=class extends(x.Command.classBuilder().ep(v).m((function(r,s,i,a){return[(0,O.getSerdePlugin)(i,this.serialize,this.deserialize),(0,B.getEndpointPlugin)(i,r.getEndpointParameterInstructions())]})).s("SpencerFrontendService","BatchCheckLayerAvailability",{}).n("ECRPUBLICClient","BatchCheckLayerAvailabilityCommand").f(void 0,void 0).ser(ge).de(Fe).build()){static{__name(this,"BatchCheckLayerAvailabilityCommand")}};var rr=class extends(x.Command.classBuilder().ep(v).m((function(r,s,i,a){return[(0,O.getSerdePlugin)(i,this.serialize,this.deserialize),(0,B.getEndpointPlugin)(i,r.getEndpointParameterInstructions())]})).s("SpencerFrontendService","BatchDeleteImage",{}).n("ECRPUBLICClient","BatchDeleteImageCommand").f(void 0,void 0).ser(he).de(Le).build()){static{__name(this,"BatchDeleteImageCommand")}};var nr=class extends(x.Command.classBuilder().ep(v).m((function(r,s,i,a){return[(0,O.getSerdePlugin)(i,this.serialize,this.deserialize),(0,B.getEndpointPlugin)(i,r.getEndpointParameterInstructions())]})).s("SpencerFrontendService","CompleteLayerUpload",{}).n("ECRPUBLICClient","CompleteLayerUploadCommand").f(void 0,void 0).ser(me).de(Me).build()){static{__name(this,"CompleteLayerUploadCommand")}};var sr=class extends(x.Command.classBuilder().ep(v).m((function(r,s,i,a){return[(0,O.getSerdePlugin)(i,this.serialize,this.deserialize),(0,B.getEndpointPlugin)(i,r.getEndpointParameterInstructions())]})).s("SpencerFrontendService","CreateRepository",{}).n("ECRPUBLICClient","CreateRepositoryCommand").f(void 0,void 0).ser(fe).de(Ue).build()){static{__name(this,"CreateRepositoryCommand")}};var ir=class extends(x.Command.classBuilder().ep(v).m((function(r,s,i,a){return[(0,O.getSerdePlugin)(i,this.serialize,this.deserialize),(0,B.getEndpointPlugin)(i,r.getEndpointParameterInstructions())]})).s("SpencerFrontendService","DeleteRepository",{}).n("ECRPUBLICClient","DeleteRepositoryCommand").f(void 0,void 0).ser(Ee).de(He).build()){static{__name(this,"DeleteRepositoryCommand")}};var or=class extends(x.Command.classBuilder().ep(v).m((function(r,s,i,a){return[(0,O.getSerdePlugin)(i,this.serialize,this.deserialize),(0,B.getEndpointPlugin)(i,r.getEndpointParameterInstructions())]})).s("SpencerFrontendService","DeleteRepositoryPolicy",{}).n("ECRPUBLICClient","DeleteRepositoryPolicyCommand").f(void 0,void 0).ser(Ce).de(Ge).build()){static{__name(this,"DeleteRepositoryPolicyCommand")}};var ar=class extends(x.Command.classBuilder().ep(v).m((function(r,s,i,a){return[(0,O.getSerdePlugin)(i,this.serialize,this.deserialize),(0,B.getEndpointPlugin)(i,r.getEndpointParameterInstructions())]})).s("SpencerFrontendService","DescribeImages",{}).n("ECRPUBLICClient","DescribeImagesCommand").f(void 0,void 0).ser(ye).de(qe).build()){static{__name(this,"DescribeImagesCommand")}};var Ar=class extends(x.Command.classBuilder().ep(v).m((function(r,s,i,a){return[(0,O.getSerdePlugin)(i,this.serialize,this.deserialize),(0,B.getEndpointPlugin)(i,r.getEndpointParameterInstructions())]})).s("SpencerFrontendService","DescribeImageTags",{}).n("ECRPUBLICClient","DescribeImageTagsCommand").f(void 0,void 0).ser(Ie).de(Ve).build()){static{__name(this,"DescribeImageTagsCommand")}};var cr=class extends(x.Command.classBuilder().ep(v).m((function(r,s,i,a){return[(0,O.getSerdePlugin)(i,this.serialize,this.deserialize),(0,B.getEndpointPlugin)(i,r.getEndpointParameterInstructions())]})).s("SpencerFrontendService","DescribeRegistries",{}).n("ECRPUBLICClient","DescribeRegistriesCommand").f(void 0,void 0).ser(Be).de(je).build()){static{__name(this,"DescribeRegistriesCommand")}};var lr=class extends(x.Command.classBuilder().ep(v).m((function(r,s,i,a){return[(0,O.getSerdePlugin)(i,this.serialize,this.deserialize),(0,B.getEndpointPlugin)(i,r.getEndpointParameterInstructions())]})).s("SpencerFrontendService","DescribeRepositories",{}).n("ECRPUBLICClient","DescribeRepositoriesCommand").f(void 0,void 0).ser(be).de(ze).build()){static{__name(this,"DescribeRepositoriesCommand")}};var dr=class extends(x.Command.classBuilder().ep(v).m((function(r,s,i,a){return[(0,O.getSerdePlugin)(i,this.serialize,this.deserialize),(0,B.getEndpointPlugin)(i,r.getEndpointParameterInstructions())]})).s("SpencerFrontendService","GetAuthorizationToken",{}).n("ECRPUBLICClient","GetAuthorizationTokenCommand").f(void 0,void 0).ser(Qe).de(Ye).build()){static{__name(this,"GetAuthorizationTokenCommand")}};var ur=class extends(x.Command.classBuilder().ep(v).m((function(r,s,i,a){return[(0,O.getSerdePlugin)(i,this.serialize,this.deserialize),(0,B.getEndpointPlugin)(i,r.getEndpointParameterInstructions())]})).s("SpencerFrontendService","GetRegistryCatalogData",{}).n("ECRPUBLICClient","GetRegistryCatalogDataCommand").f(void 0,void 0).ser(we).de(Je).build()){static{__name(this,"GetRegistryCatalogDataCommand")}};var pr=class extends(x.Command.classBuilder().ep(v).m((function(r,s,i,a){return[(0,O.getSerdePlugin)(i,this.serialize,this.deserialize),(0,B.getEndpointPlugin)(i,r.getEndpointParameterInstructions())]})).s("SpencerFrontendService","GetRepositoryCatalogData",{}).n("ECRPUBLICClient","GetRepositoryCatalogDataCommand").f(void 0,void 0).ser(ve).de(We).build()){static{__name(this,"GetRepositoryCatalogDataCommand")}};var gr=class extends(x.Command.classBuilder().ep(v).m((function(r,s,i,a){return[(0,O.getSerdePlugin)(i,this.serialize,this.deserialize),(0,B.getEndpointPlugin)(i,r.getEndpointParameterInstructions())]})).s("SpencerFrontendService","GetRepositoryPolicy",{}).n("ECRPUBLICClient","GetRepositoryPolicyCommand").f(void 0,void 0).ser(Se).de(Xe).build()){static{__name(this,"GetRepositoryPolicyCommand")}};var hr=class extends(x.Command.classBuilder().ep(v).m((function(r,s,i,a){return[(0,O.getSerdePlugin)(i,this.serialize,this.deserialize),(0,B.getEndpointPlugin)(i,r.getEndpointParameterInstructions())]})).s("SpencerFrontendService","InitiateLayerUpload",{}).n("ECRPUBLICClient","InitiateLayerUploadCommand").f(void 0,void 0).ser(Re).de($e).build()){static{__name(this,"InitiateLayerUploadCommand")}};var mr=class extends(x.Command.classBuilder().ep(v).m((function(r,s,i,a){return[(0,O.getSerdePlugin)(i,this.serialize,this.deserialize),(0,B.getEndpointPlugin)(i,r.getEndpointParameterInstructions())]})).s("SpencerFrontendService","ListTagsForResource",{}).n("ECRPUBLICClient","ListTagsForResourceCommand").f(void 0,void 0).ser(Ne).de(Ke).build()){static{__name(this,"ListTagsForResourceCommand")}};var fr=class extends(x.Command.classBuilder().ep(v).m((function(r,s,i,a){return[(0,O.getSerdePlugin)(i,this.serialize,this.deserialize),(0,B.getEndpointPlugin)(i,r.getEndpointParameterInstructions())]})).s("SpencerFrontendService","PutImage",{}).n("ECRPUBLICClient","PutImageCommand").f(void 0,void 0).ser(xe).de(Ze).build()){static{__name(this,"PutImageCommand")}};var Er=class extends(x.Command.classBuilder().ep(v).m((function(r,s,i,a){return[(0,O.getSerdePlugin)(i,this.serialize,this.deserialize),(0,B.getEndpointPlugin)(i,r.getEndpointParameterInstructions())]})).s("SpencerFrontendService","PutRegistryCatalogData",{}).n("ECRPUBLICClient","PutRegistryCatalogDataCommand").f(void 0,void 0).ser(De).de(et).build()){static{__name(this,"PutRegistryCatalogDataCommand")}};var Cr=class extends(x.Command.classBuilder().ep(v).m((function(r,s,i,a){return[(0,O.getSerdePlugin)(i,this.serialize,this.deserialize),(0,B.getEndpointPlugin)(i,r.getEndpointParameterInstructions())]})).s("SpencerFrontendService","PutRepositoryCatalogData",{}).n("ECRPUBLICClient","PutRepositoryCatalogDataCommand").f(void 0,void 0).ser(ke).de(tt).build()){static{__name(this,"PutRepositoryCatalogDataCommand")}};var yr=class extends(x.Command.classBuilder().ep(v).m((function(r,s,i,a){return[(0,O.getSerdePlugin)(i,this.serialize,this.deserialize),(0,B.getEndpointPlugin)(i,r.getEndpointParameterInstructions())]})).s("SpencerFrontendService","SetRepositoryPolicy",{}).n("ECRPUBLICClient","SetRepositoryPolicyCommand").f(void 0,void 0).ser(Te).de(rt).build()){static{__name(this,"SetRepositoryPolicyCommand")}};var Ir=class extends(x.Command.classBuilder().ep(v).m((function(r,s,i,a){return[(0,O.getSerdePlugin)(i,this.serialize,this.deserialize),(0,B.getEndpointPlugin)(i,r.getEndpointParameterInstructions())]})).s("SpencerFrontendService","TagResource",{}).n("ECRPUBLICClient","TagResourceCommand").f(void 0,void 0).ser(_e).de(nt).build()){static{__name(this,"TagResourceCommand")}};var Br=class extends(x.Command.classBuilder().ep(v).m((function(r,s,i,a){return[(0,O.getSerdePlugin)(i,this.serialize,this.deserialize),(0,B.getEndpointPlugin)(i,r.getEndpointParameterInstructions())]})).s("SpencerFrontendService","UntagResource",{}).n("ECRPUBLICClient","UntagResourceCommand").f(void 0,void 0).ser(Pe).de(st).build()){static{__name(this,"UntagResourceCommand")}};var br=class extends(x.Command.classBuilder().ep(v).m((function(r,s,i,a){return[(0,O.getSerdePlugin)(i,this.serialize,this.deserialize),(0,B.getEndpointPlugin)(i,r.getEndpointParameterInstructions())]})).s("SpencerFrontendService","UploadLayerPart",{}).n("ECRPUBLICClient","UploadLayerPartCommand").f(void 0,void 0).ser(Oe).de(it).build()){static{__name(this,"UploadLayerPartCommand")}};var Qr={BatchCheckLayerAvailabilityCommand:tr,BatchDeleteImageCommand:rr,CompleteLayerUploadCommand:nr,CreateRepositoryCommand:sr,DeleteRepositoryCommand:ir,DeleteRepositoryPolicyCommand:or,DescribeImagesCommand:ar,DescribeImageTagsCommand:Ar,DescribeRegistriesCommand:cr,DescribeRepositoriesCommand:lr,GetAuthorizationTokenCommand:dr,GetRegistryCatalogDataCommand:ur,GetRepositoryCatalogDataCommand:pr,GetRepositoryPolicyCommand:gr,InitiateLayerUploadCommand:hr,ListTagsForResourceCommand:mr,PutImageCommand:fr,PutRegistryCatalogDataCommand:Er,PutRepositoryCatalogDataCommand:Cr,SetRepositoryPolicyCommand:yr,TagResourceCommand:Ir,UntagResourceCommand:Br,UploadLayerPartCommand:br};var wr=class extends P{static{__name(this,"ECRPUBLIC")}};(0,x.createAggregatedClient)(Qr,wr);var vr=(0,y.createPaginator)(P,Ar,"nextToken","nextToken","maxResults");var Sr=(0,y.createPaginator)(P,ar,"nextToken","nextToken","maxResults");var Rr=(0,y.createPaginator)(P,cr,"nextToken","nextToken","maxResults");var Nr=(0,y.createPaginator)(P,lr,"nextToken","nextToken","maxResults");0&&0},49324:(r,s,i)=>{"use strict";Object.defineProperty(s,"__esModule",{value:true});s.getRuntimeConfig=void 0;const a=i(4351);const A=a.__importDefault(i(25929));const c=i(59963);const l=i(75531);const d=i(98095);const u=i(53098);const p=i(3081);const g=i(96039);const h=i(33461);const C=i(20258);const y=i(68075);const I=i(84902);const B=i(76746);const b=i(63570);const Q=i(72429);const w=i(63570);const getRuntimeConfig=r=>{(0,w.emitWarningIfUnsupportedVersion)(process.version);const s=(0,Q.resolveDefaultsModeConfig)(r);const defaultConfigProvider=()=>s().then(b.loadConfigsForDefaultMode);const i=(0,B.getRuntimeConfig)(r);(0,c.emitWarningIfUnsupportedVersion)(process.version);const a={profile:r?.profile};return{...i,...r,runtime:"node",defaultsMode:s,bodyLengthChecker:r?.bodyLengthChecker??y.calculateBodyLength,credentialDefaultProvider:r?.credentialDefaultProvider??l.defaultProvider,defaultUserAgentProvider:r?.defaultUserAgentProvider??(0,d.createDefaultUserAgentProvider)({serviceId:i.serviceId,clientVersion:A.default.version}),maxAttempts:r?.maxAttempts??(0,h.loadConfig)(g.NODE_MAX_ATTEMPT_CONFIG_OPTIONS,r),region:r?.region??(0,h.loadConfig)(u.NODE_REGION_CONFIG_OPTIONS,{...u.NODE_REGION_CONFIG_FILE_OPTIONS,...a}),requestHandler:C.NodeHttpHandler.create(r?.requestHandler??defaultConfigProvider),retryMode:r?.retryMode??(0,h.loadConfig)({...g.NODE_RETRY_MODE_CONFIG_OPTIONS,default:async()=>(await defaultConfigProvider()).retryMode||I.DEFAULT_RETRY_MODE},r),sha256:r?.sha256??p.Hash.bind(null,"sha256"),streamCollector:r?.streamCollector??C.streamCollector,useDualstackEndpoint:r?.useDualstackEndpoint??(0,h.loadConfig)(u.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS,a),useFipsEndpoint:r?.useFipsEndpoint??(0,h.loadConfig)(u.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS,a),userAgentAppId:r?.userAgentAppId??(0,h.loadConfig)(d.NODE_APP_ID_CONFIG_OPTIONS,a)}};s.getRuntimeConfig=getRuntimeConfig},76746:(r,s,i)=>{"use strict";Object.defineProperty(s,"__esModule",{value:true});s.getRuntimeConfig=void 0;const a=i(59963);const A=i(63570);const c=i(14681);const l=i(75600);const d=i(41895);const u=i(87614);const p=i(87377);const getRuntimeConfig=r=>({apiVersion:"2020-10-30",base64Decoder:r?.base64Decoder??l.fromBase64,base64Encoder:r?.base64Encoder??l.toBase64,disableHostPrefix:r?.disableHostPrefix??false,endpointProvider:r?.endpointProvider??p.defaultEndpointResolver,extensions:r?.extensions??[],httpAuthSchemeProvider:r?.httpAuthSchemeProvider??u.defaultECRPUBLICHttpAuthSchemeProvider,httpAuthSchemes:r?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:r=>r.getIdentityProvider("aws.auth#sigv4"),signer:new a.AwsSdkSigV4Signer}],logger:r?.logger??new A.NoOpLogger,serviceId:r?.serviceId??"ECR PUBLIC",urlParser:r?.urlParser??c.parseUrl,utf8Decoder:r?.utf8Decoder??d.fromUtf8,utf8Encoder:r?.utf8Encoder??d.toUtf8});s.getRuntimeConfig=getRuntimeConfig},14682:(r,s,i)=>{"use strict";Object.defineProperty(s,"__esModule",{value:true});s.resolveHttpAuthSchemeConfig=s.defaultECRHttpAuthSchemeProvider=s.defaultECRHttpAuthSchemeParametersProvider=void 0;const a=i(59963);const A=i(2390);const defaultECRHttpAuthSchemeParametersProvider=async(r,s,i)=>({operation:(0,A.getSmithyContext)(s).operation,region:await(0,A.normalizeProvider)(r.region)()||(()=>{throw new Error("expected `region` to be configured for `aws.auth#sigv4`")})()});s.defaultECRHttpAuthSchemeParametersProvider=defaultECRHttpAuthSchemeParametersProvider;function createAwsAuthSigv4HttpAuthOption(r){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"ecr",region:r.region},propertiesExtractor:(r,s)=>({signingProperties:{config:r,context:s}})}}const defaultECRHttpAuthSchemeProvider=r=>{const s=[];switch(r.operation){default:{s.push(createAwsAuthSigv4HttpAuthOption(r))}}return s};s.defaultECRHttpAuthSchemeProvider=defaultECRHttpAuthSchemeProvider;const resolveHttpAuthSchemeConfig=r=>{const s=(0,a.resolveAwsSdkSigV4Config)(r);return{...s}};s.resolveHttpAuthSchemeConfig=resolveHttpAuthSchemeConfig},61610:(r,s,i)=>{"use strict";Object.defineProperty(s,"__esModule",{value:true});s.defaultEndpointResolver=void 0;const a=i(13350);const A=i(45473);const c=i(64053);const l=new A.EndpointCache({size:50,params:["Endpoint","Region","UseDualStack","UseFIPS"]});const defaultEndpointResolver=(r,s={})=>l.get(r,(()=>(0,A.resolveEndpoint)(c.ruleSet,{endpointParams:r,logger:s.logger})));s.defaultEndpointResolver=defaultEndpointResolver;A.customEndpointFunctions.aws=a.awsEndpointFunctions},64053:(r,s)=>{"use strict";Object.defineProperty(s,"__esModule",{value:true});s.ruleSet=void 0;const i="required",a="fn",A="argv",c="ref";const l=true,d="isSet",u="booleanEquals",p="error",g="endpoint",h="tree",C="PartitionResult",y="stringEquals",I={[i]:false,type:"String"},B={[i]:true,default:false,type:"Boolean"},b={[c]:"Endpoint"},Q={[a]:u,[A]:[{[c]:"UseFIPS"},true]},w={[a]:u,[A]:[{[c]:"UseDualStack"},true]},v={},S={[a]:"getAttr",[A]:[{[c]:C},"supportsFIPS"]},R={[a]:u,[A]:[true,{[a]:"getAttr",[A]:[{[c]:C},"supportsDualStack"]}]},N={[a]:"getAttr",[A]:[{[c]:C},"name"]},x={url:"https://ecr-fips.{Region}.amazonaws.com",properties:{},headers:{}},D=[Q],k=[w],T=[{[c]:"Region"}];const _={version:"1.0",parameters:{Region:I,UseDualStack:B,UseFIPS:B,Endpoint:I},rules:[{conditions:[{[a]:d,[A]:[b]}],rules:[{conditions:D,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:p},{conditions:k,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:p},{endpoint:{url:b,properties:v,headers:v},type:g}],type:h},{conditions:[{[a]:d,[A]:T}],rules:[{conditions:[{[a]:"aws.partition",[A]:T,assign:C}],rules:[{conditions:[Q,w],rules:[{conditions:[{[a]:u,[A]:[l,S]},R],rules:[{endpoint:{url:"https://api.ecr-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:v,headers:v},type:g}],type:h},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:p}],type:h},{conditions:D,rules:[{conditions:[{[a]:u,[A]:[S,l]}],rules:[{conditions:[{[a]:y,[A]:[N,"aws"]}],endpoint:x,type:g},{conditions:[{[a]:y,[A]:[N,"aws-us-gov"]}],endpoint:x,type:g},{endpoint:{url:"https://api.ecr-fips.{Region}.{PartitionResult#dnsSuffix}",properties:v,headers:v},type:g}],type:h},{error:"FIPS is enabled but this partition does not support FIPS",type:p}],type:h},{conditions:k,rules:[{conditions:[R],rules:[{endpoint:{url:"https://api.ecr.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:v,headers:v},type:g}],type:h},{error:"DualStack is enabled but this partition does not support DualStack",type:p}],type:h},{endpoint:{url:"https://api.ecr.{Region}.{PartitionResult#dnsSuffix}",properties:v,headers:v},type:g}],type:h}],type:h},{error:"Invalid Configuration: Missing Region",type:p}]};s.ruleSet=_},8923:(r,s,i)=>{"use strict";var a=Object.defineProperty;var A=Object.getOwnPropertyDescriptor;var c=Object.getOwnPropertyNames;var l=Object.prototype.hasOwnProperty;var __name=(r,s)=>a(r,"name",{value:s,configurable:true});var __export=(r,s)=>{for(var i in s)a(r,i,{get:s[i],enumerable:true})};var __copyProps=(r,s,i,d)=>{if(s&&typeof s==="object"||typeof s==="function"){for(let u of c(s))if(!l.call(r,u)&&u!==i)a(r,u,{get:()=>s[u],enumerable:!(d=A(s,u))||d.enumerable})}return r};var __toCommonJS=r=>__copyProps(a({},"__esModule",{value:true}),r);var d={};__export(d,{BatchCheckLayerAvailabilityCommand:()=>ys,BatchDeleteImageCommand:()=>Is,BatchGetImageCommand:()=>Bs,BatchGetRepositoryScanningConfigurationCommand:()=>bs,CompleteLayerUploadCommand:()=>Qs,CreatePullThroughCacheRuleCommand:()=>ws,CreateRepositoryCommand:()=>vs,CreateRepositoryCreationTemplateCommand:()=>Ss,DeleteLifecyclePolicyCommand:()=>Rs,DeletePullThroughCacheRuleCommand:()=>Ns,DeleteRegistryPolicyCommand:()=>xs,DeleteRepositoryCommand:()=>Ds,DeleteRepositoryCreationTemplateCommand:()=>ks,DeleteRepositoryPolicyCommand:()=>Ts,DescribeImageReplicationStatusCommand:()=>_s,DescribeImageScanFindingsCommand:()=>Ps,DescribeImagesCommand:()=>Os,DescribePullThroughCacheRulesCommand:()=>Fs,DescribeRegistryCommand:()=>Ls,DescribeRepositoriesCommand:()=>Ms,DescribeRepositoryCreationTemplatesCommand:()=>Us,ECR:()=>mi,ECRClient:()=>P,ECRServiceException:()=>M,EmptyUploadException:()=>K,EncryptionType:()=>le,FindingSeverity:()=>ve,GetAccountSettingCommand:()=>Hs,GetAuthorizationTokenCommand:()=>Gs,GetDownloadUrlForLayerCommand:()=>qs,GetLifecyclePolicyCommand:()=>Vs,GetLifecyclePolicyPreviewCommand:()=>js,GetRegistryPolicyCommand:()=>zs,GetRegistryScanningConfigurationCommand:()=>Ys,GetRepositoryPolicyCommand:()=>Js,ImageActionType:()=>Te,ImageAlreadyExistsException:()=>Fe,ImageDigestDoesNotMatchException:()=>Le,ImageFailureCode:()=>j,ImageNotFoundException:()=>Qe,ImageTagAlreadyExistsException:()=>Me,ImageTagMutability:()=>de,InitiateLayerUploadCommand:()=>Ws,InvalidLayerException:()=>Z,InvalidLayerPartException:()=>qe,InvalidParameterException:()=>G,InvalidTagParameterException:()=>ue,KmsException:()=>ee,LayerAlreadyExistsException:()=>te,LayerAvailability:()=>H,LayerFailureCode:()=>U,LayerInaccessibleException:()=>xe,LayerPartTooSmallException:()=>re,LayersNotFoundException:()=>De,LifecyclePolicyNotFoundException:()=>fe,LifecyclePolicyPreviewInProgressException:()=>Ge,LifecyclePolicyPreviewNotFoundException:()=>Pe,LifecyclePolicyPreviewStatus:()=>_e,LimitExceededException:()=>z,ListImagesCommand:()=>Xs,ListTagsForResourceCommand:()=>$s,PullThroughCacheRuleAlreadyExistsException:()=>ie,PullThroughCacheRuleNotFoundException:()=>Ee,PutAccountSettingCommand:()=>Ks,PutImageCommand:()=>Zs,PutImageScanningConfigurationCommand:()=>ei,PutImageTagMutabilityCommand:()=>ti,PutLifecyclePolicyCommand:()=>ri,PutRegistryPolicyCommand:()=>ni,PutRegistryScanningConfigurationCommand:()=>si,PutReplicationConfigurationCommand:()=>ii,RCTAppliedFor:()=>he,ReferencedImagesNotFoundException:()=>Ue,RegistryPolicyNotFoundException:()=>Ce,ReplicationStatus:()=>be,RepositoryAlreadyExistsException:()=>pe,RepositoryFilterType:()=>Ne,RepositoryNotEmptyException:()=>ye,RepositoryNotFoundException:()=>q,RepositoryPolicyNotFoundException:()=>Be,ScanFrequency:()=>X,ScanNotFoundException:()=>Re,ScanStatus:()=>Se,ScanType:()=>Oe,ScanningConfigurationFailureCode:()=>J,ScanningRepositoryFilterType:()=>W,SecretNotFoundException:()=>oe,ServerException:()=>V,SetRepositoryPolicyCommand:()=>oi,StartImageScanCommand:()=>ai,StartLifecyclePolicyPreviewCommand:()=>Ai,TagResourceCommand:()=>ci,TagStatus:()=>we,TemplateAlreadyExistsException:()=>me,TemplateNotFoundException:()=>Ie,TooManyTagsException:()=>ge,UnableToAccessSecretException:()=>ae,UnableToDecryptSecretValueException:()=>Ae,UnableToGetUpstreamImageException:()=>Y,UnableToGetUpstreamLayerException:()=>ke,UnsupportedImageTypeException:()=>He,UnsupportedUpstreamRegistryException:()=>ce,UntagResourceCommand:()=>li,UpdatePullThroughCacheRuleCommand:()=>di,UpdateRepositoryCreationTemplateCommand:()=>ui,UploadLayerPartCommand:()=>pi,UploadNotFoundException:()=>ne,UpstreamRegistry:()=>se,ValidatePullThroughCacheRuleCommand:()=>gi,ValidationException:()=>$,__Client:()=>x.Client,paginateDescribeImageScanFindings:()=>fi,paginateDescribeImages:()=>Ei,paginateDescribePullThroughCacheRules:()=>Ci,paginateDescribeRepositories:()=>yi,paginateDescribeRepositoryCreationTemplates:()=>Ii,paginateGetLifecyclePolicyPreview:()=>Bi,paginateListImages:()=>bi,waitForImageScanComplete:()=>vi,waitForLifecyclePolicyPreviewComplete:()=>Ni,waitUntilImageScanComplete:()=>Si,waitUntilLifecyclePolicyPreviewComplete:()=>xi});r.exports=__toCommonJS(d);var u=i(22545);var p=i(20014);var g=i(85525);var h=i(64688);var C=i(53098);var y=i(55829);var I=i(82800);var B=i(82918);var b=i(96039);var Q=i(14682);var w=__name((r=>({...r,useDualstackEndpoint:r.useDualstackEndpoint??false,useFipsEndpoint:r.useFipsEndpoint??false,defaultSigningName:"ecr"})),"resolveClientEndpointParameters");var v={UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}};var S=i(869);var R=i(18156);var N=i(64418);var x=i(63570);var D=__name((r=>{const s=r.httpAuthSchemes;let i=r.httpAuthSchemeProvider;let a=r.credentials;return{setHttpAuthScheme(r){const i=s.findIndex((s=>s.schemeId===r.schemeId));if(i===-1){s.push(r)}else{s.splice(i,1,r)}},httpAuthSchemes(){return s},setHttpAuthSchemeProvider(r){i=r},httpAuthSchemeProvider(){return i},setCredentials(r){a=r},credentials(){return a}}}),"getHttpAuthExtensionConfiguration");var k=__name((r=>({httpAuthSchemes:r.httpAuthSchemes(),httpAuthSchemeProvider:r.httpAuthSchemeProvider(),credentials:r.credentials()})),"resolveHttpAuthRuntimeConfig");var T=__name((r=>r),"asPartial");var _=__name(((r,s)=>{const i={...T((0,R.getAwsRegionExtensionConfiguration)(r)),...T((0,x.getDefaultExtensionConfiguration)(r)),...T((0,N.getHttpHandlerExtensionConfiguration)(r)),...T(D(r))};s.forEach((r=>r.configure(i)));return{...r,...(0,R.resolveAwsRegionExtensionConfiguration)(i),...(0,x.resolveDefaultRuntimeConfig)(i),...(0,N.resolveHttpHandlerRuntimeConfig)(i),...k(i)}}),"resolveRuntimeExtensions");var P=class extends x.Client{static{__name(this,"ECRClient")}config;constructor(...[r]){const s=(0,S.getRuntimeConfig)(r||{});const i=w(s);const a=(0,h.resolveUserAgentConfig)(i);const A=(0,b.resolveRetryConfig)(a);const c=(0,C.resolveRegionConfig)(A);const l=(0,u.resolveHostHeaderConfig)(c);const d=(0,B.resolveEndpointConfig)(l);const v=(0,Q.resolveHttpAuthSchemeConfig)(d);const R=_(v,r?.extensions||[]);super(R);this.config=R;this.middlewareStack.use((0,h.getUserAgentPlugin)(this.config));this.middlewareStack.use((0,b.getRetryPlugin)(this.config));this.middlewareStack.use((0,I.getContentLengthPlugin)(this.config));this.middlewareStack.use((0,u.getHostHeaderPlugin)(this.config));this.middlewareStack.use((0,p.getLoggerPlugin)(this.config));this.middlewareStack.use((0,g.getRecursionDetectionPlugin)(this.config));this.middlewareStack.use((0,y.getHttpAuthSchemeEndpointRuleSetPlugin)(this.config,{httpAuthSchemeParametersProvider:Q.defaultECRHttpAuthSchemeParametersProvider,identityProviderConfigProvider:__name((async r=>new y.DefaultIdentityProviderConfig({"aws.auth#sigv4":r.credentials})),"identityProviderConfigProvider")}));this.middlewareStack.use((0,y.getHttpSigningPlugin)(this.config))}destroy(){super.destroy()}};var O=i(81238);var L=i(59963);var M=class _ECRServiceException extends x.ServiceException{static{__name(this,"ECRServiceException")}constructor(r){super(r);Object.setPrototypeOf(this,_ECRServiceException.prototype)}};var U={InvalidLayerDigest:"InvalidLayerDigest",MissingLayerDigest:"MissingLayerDigest"};var H={AVAILABLE:"AVAILABLE",UNAVAILABLE:"UNAVAILABLE"};var G=class _InvalidParameterException extends M{static{__name(this,"InvalidParameterException")}name="InvalidParameterException";$fault="client";constructor(r){super({name:"InvalidParameterException",$fault:"client",...r});Object.setPrototypeOf(this,_InvalidParameterException.prototype)}};var q=class _RepositoryNotFoundException extends M{static{__name(this,"RepositoryNotFoundException")}name="RepositoryNotFoundException";$fault="client";constructor(r){super({name:"RepositoryNotFoundException",$fault:"client",...r});Object.setPrototypeOf(this,_RepositoryNotFoundException.prototype)}};var V=class _ServerException extends M{static{__name(this,"ServerException")}name="ServerException";$fault="server";constructor(r){super({name:"ServerException",$fault:"server",...r});Object.setPrototypeOf(this,_ServerException.prototype)}};var j={ImageNotFound:"ImageNotFound",ImageReferencedByManifestList:"ImageReferencedByManifestList",ImageTagDoesNotMatchDigest:"ImageTagDoesNotMatchDigest",InvalidImageDigest:"InvalidImageDigest",InvalidImageTag:"InvalidImageTag",KmsError:"KmsError",MissingDigestAndTag:"MissingDigestAndTag",UpstreamAccessDenied:"UpstreamAccessDenied",UpstreamTooManyRequests:"UpstreamTooManyRequests",UpstreamUnavailable:"UpstreamUnavailable"};var z=class _LimitExceededException extends M{static{__name(this,"LimitExceededException")}name="LimitExceededException";$fault="client";constructor(r){super({name:"LimitExceededException",$fault:"client",...r});Object.setPrototypeOf(this,_LimitExceededException.prototype)}};var Y=class _UnableToGetUpstreamImageException extends M{static{__name(this,"UnableToGetUpstreamImageException")}name="UnableToGetUpstreamImageException";$fault="client";constructor(r){super({name:"UnableToGetUpstreamImageException",$fault:"client",...r});Object.setPrototypeOf(this,_UnableToGetUpstreamImageException.prototype)}};var J={REPOSITORY_NOT_FOUND:"REPOSITORY_NOT_FOUND"};var W={WILDCARD:"WILDCARD"};var X={CONTINUOUS_SCAN:"CONTINUOUS_SCAN",MANUAL:"MANUAL",SCAN_ON_PUSH:"SCAN_ON_PUSH"};var $=class _ValidationException extends M{static{__name(this,"ValidationException")}name="ValidationException";$fault="client";constructor(r){super({name:"ValidationException",$fault:"client",...r});Object.setPrototypeOf(this,_ValidationException.prototype)}};var K=class _EmptyUploadException extends M{static{__name(this,"EmptyUploadException")}name="EmptyUploadException";$fault="client";constructor(r){super({name:"EmptyUploadException",$fault:"client",...r});Object.setPrototypeOf(this,_EmptyUploadException.prototype)}};var Z=class _InvalidLayerException extends M{static{__name(this,"InvalidLayerException")}name="InvalidLayerException";$fault="client";constructor(r){super({name:"InvalidLayerException",$fault:"client",...r});Object.setPrototypeOf(this,_InvalidLayerException.prototype)}};var ee=class _KmsException extends M{static{__name(this,"KmsException")}name="KmsException";$fault="client";kmsError;constructor(r){super({name:"KmsException",$fault:"client",...r});Object.setPrototypeOf(this,_KmsException.prototype);this.kmsError=r.kmsError}};var te=class _LayerAlreadyExistsException extends M{static{__name(this,"LayerAlreadyExistsException")}name="LayerAlreadyExistsException";$fault="client";constructor(r){super({name:"LayerAlreadyExistsException",$fault:"client",...r});Object.setPrototypeOf(this,_LayerAlreadyExistsException.prototype)}};var re=class _LayerPartTooSmallException extends M{static{__name(this,"LayerPartTooSmallException")}name="LayerPartTooSmallException";$fault="client";constructor(r){super({name:"LayerPartTooSmallException",$fault:"client",...r});Object.setPrototypeOf(this,_LayerPartTooSmallException.prototype)}};var ne=class _UploadNotFoundException extends M{static{__name(this,"UploadNotFoundException")}name="UploadNotFoundException";$fault="client";constructor(r){super({name:"UploadNotFoundException",$fault:"client",...r});Object.setPrototypeOf(this,_UploadNotFoundException.prototype)}};var se={AzureContainerRegistry:"azure-container-registry",DockerHub:"docker-hub",Ecr:"ecr",EcrPublic:"ecr-public",GitHubContainerRegistry:"github-container-registry",GitLabContainerRegistry:"gitlab-container-registry",K8s:"k8s",Quay:"quay"};var ie=class _PullThroughCacheRuleAlreadyExistsException extends M{static{__name(this,"PullThroughCacheRuleAlreadyExistsException")}name="PullThroughCacheRuleAlreadyExistsException";$fault="client";constructor(r){super({name:"PullThroughCacheRuleAlreadyExistsException",$fault:"client",...r});Object.setPrototypeOf(this,_PullThroughCacheRuleAlreadyExistsException.prototype)}};var oe=class _SecretNotFoundException extends M{static{__name(this,"SecretNotFoundException")}name="SecretNotFoundException";$fault="client";constructor(r){super({name:"SecretNotFoundException",$fault:"client",...r});Object.setPrototypeOf(this,_SecretNotFoundException.prototype)}};var ae=class _UnableToAccessSecretException extends M{static{__name(this,"UnableToAccessSecretException")}name="UnableToAccessSecretException";$fault="client";constructor(r){super({name:"UnableToAccessSecretException",$fault:"client",...r});Object.setPrototypeOf(this,_UnableToAccessSecretException.prototype)}};var Ae=class _UnableToDecryptSecretValueException extends M{static{__name(this,"UnableToDecryptSecretValueException")}name="UnableToDecryptSecretValueException";$fault="client";constructor(r){super({name:"UnableToDecryptSecretValueException",$fault:"client",...r});Object.setPrototypeOf(this,_UnableToDecryptSecretValueException.prototype)}};var ce=class _UnsupportedUpstreamRegistryException extends M{static{__name(this,"UnsupportedUpstreamRegistryException")}name="UnsupportedUpstreamRegistryException";$fault="client";constructor(r){super({name:"UnsupportedUpstreamRegistryException",$fault:"client",...r});Object.setPrototypeOf(this,_UnsupportedUpstreamRegistryException.prototype)}};var le={AES256:"AES256",KMS:"KMS",KMS_DSSE:"KMS_DSSE"};var de={IMMUTABLE:"IMMUTABLE",MUTABLE:"MUTABLE"};var ue=class _InvalidTagParameterException extends M{static{__name(this,"InvalidTagParameterException")}name="InvalidTagParameterException";$fault="client";constructor(r){super({name:"InvalidTagParameterException",$fault:"client",...r});Object.setPrototypeOf(this,_InvalidTagParameterException.prototype)}};var pe=class _RepositoryAlreadyExistsException extends M{static{__name(this,"RepositoryAlreadyExistsException")}name="RepositoryAlreadyExistsException";$fault="client";constructor(r){super({name:"RepositoryAlreadyExistsException",$fault:"client",...r});Object.setPrototypeOf(this,_RepositoryAlreadyExistsException.prototype)}};var ge=class _TooManyTagsException extends M{static{__name(this,"TooManyTagsException")}name="TooManyTagsException";$fault="client";constructor(r){super({name:"TooManyTagsException",$fault:"client",...r});Object.setPrototypeOf(this,_TooManyTagsException.prototype)}};var he={PULL_THROUGH_CACHE:"PULL_THROUGH_CACHE",REPLICATION:"REPLICATION"};var me=class _TemplateAlreadyExistsException extends M{static{__name(this,"TemplateAlreadyExistsException")}name="TemplateAlreadyExistsException";$fault="client";constructor(r){super({name:"TemplateAlreadyExistsException",$fault:"client",...r});Object.setPrototypeOf(this,_TemplateAlreadyExistsException.prototype)}};var fe=class _LifecyclePolicyNotFoundException extends M{static{__name(this,"LifecyclePolicyNotFoundException")}name="LifecyclePolicyNotFoundException";$fault="client";constructor(r){super({name:"LifecyclePolicyNotFoundException",$fault:"client",...r});Object.setPrototypeOf(this,_LifecyclePolicyNotFoundException.prototype)}};var Ee=class _PullThroughCacheRuleNotFoundException extends M{static{__name(this,"PullThroughCacheRuleNotFoundException")}name="PullThroughCacheRuleNotFoundException";$fault="client";constructor(r){super({name:"PullThroughCacheRuleNotFoundException",$fault:"client",...r});Object.setPrototypeOf(this,_PullThroughCacheRuleNotFoundException.prototype)}};var Ce=class _RegistryPolicyNotFoundException extends M{static{__name(this,"RegistryPolicyNotFoundException")}name="RegistryPolicyNotFoundException";$fault="client";constructor(r){super({name:"RegistryPolicyNotFoundException",$fault:"client",...r});Object.setPrototypeOf(this,_RegistryPolicyNotFoundException.prototype)}};var ye=class _RepositoryNotEmptyException extends M{static{__name(this,"RepositoryNotEmptyException")}name="RepositoryNotEmptyException";$fault="client";constructor(r){super({name:"RepositoryNotEmptyException",$fault:"client",...r});Object.setPrototypeOf(this,_RepositoryNotEmptyException.prototype)}};var Ie=class _TemplateNotFoundException extends M{static{__name(this,"TemplateNotFoundException")}name="TemplateNotFoundException";$fault="client";constructor(r){super({name:"TemplateNotFoundException",$fault:"client",...r});Object.setPrototypeOf(this,_TemplateNotFoundException.prototype)}};var Be=class _RepositoryPolicyNotFoundException extends M{static{__name(this,"RepositoryPolicyNotFoundException")}name="RepositoryPolicyNotFoundException";$fault="client";constructor(r){super({name:"RepositoryPolicyNotFoundException",$fault:"client",...r});Object.setPrototypeOf(this,_RepositoryPolicyNotFoundException.prototype)}};var be={COMPLETE:"COMPLETE",FAILED:"FAILED",IN_PROGRESS:"IN_PROGRESS"};var Qe=class _ImageNotFoundException extends M{static{__name(this,"ImageNotFoundException")}name="ImageNotFoundException";$fault="client";constructor(r){super({name:"ImageNotFoundException",$fault:"client",...r});Object.setPrototypeOf(this,_ImageNotFoundException.prototype)}};var we={ANY:"ANY",TAGGED:"TAGGED",UNTAGGED:"UNTAGGED"};var ve={CRITICAL:"CRITICAL",HIGH:"HIGH",INFORMATIONAL:"INFORMATIONAL",LOW:"LOW",MEDIUM:"MEDIUM",UNDEFINED:"UNDEFINED"};var Se={ACTIVE:"ACTIVE",COMPLETE:"COMPLETE",FAILED:"FAILED",FINDINGS_UNAVAILABLE:"FINDINGS_UNAVAILABLE",IN_PROGRESS:"IN_PROGRESS",LIMIT_EXCEEDED:"LIMIT_EXCEEDED",PENDING:"PENDING",SCAN_ELIGIBILITY_EXPIRED:"SCAN_ELIGIBILITY_EXPIRED",UNSUPPORTED_IMAGE:"UNSUPPORTED_IMAGE"};var Re=class _ScanNotFoundException extends M{static{__name(this,"ScanNotFoundException")}name="ScanNotFoundException";$fault="client";constructor(r){super({name:"ScanNotFoundException",$fault:"client",...r});Object.setPrototypeOf(this,_ScanNotFoundException.prototype)}};var Ne={PREFIX_MATCH:"PREFIX_MATCH"};var xe=class _LayerInaccessibleException extends M{static{__name(this,"LayerInaccessibleException")}name="LayerInaccessibleException";$fault="client";constructor(r){super({name:"LayerInaccessibleException",$fault:"client",...r});Object.setPrototypeOf(this,_LayerInaccessibleException.prototype)}};var De=class _LayersNotFoundException extends M{static{__name(this,"LayersNotFoundException")}name="LayersNotFoundException";$fault="client";constructor(r){super({name:"LayersNotFoundException",$fault:"client",...r});Object.setPrototypeOf(this,_LayersNotFoundException.prototype)}};var ke=class _UnableToGetUpstreamLayerException extends M{static{__name(this,"UnableToGetUpstreamLayerException")}name="UnableToGetUpstreamLayerException";$fault="client";constructor(r){super({name:"UnableToGetUpstreamLayerException",$fault:"client",...r});Object.setPrototypeOf(this,_UnableToGetUpstreamLayerException.prototype)}};var Te={EXPIRE:"EXPIRE"};var _e={COMPLETE:"COMPLETE",EXPIRED:"EXPIRED",FAILED:"FAILED",IN_PROGRESS:"IN_PROGRESS"};var Pe=class _LifecyclePolicyPreviewNotFoundException extends M{static{__name(this,"LifecyclePolicyPreviewNotFoundException")}name="LifecyclePolicyPreviewNotFoundException";$fault="client";constructor(r){super({name:"LifecyclePolicyPreviewNotFoundException",$fault:"client",...r});Object.setPrototypeOf(this,_LifecyclePolicyPreviewNotFoundException.prototype)}};var Oe={BASIC:"BASIC",ENHANCED:"ENHANCED"};var Fe=class _ImageAlreadyExistsException extends M{static{__name(this,"ImageAlreadyExistsException")}name="ImageAlreadyExistsException";$fault="client";constructor(r){super({name:"ImageAlreadyExistsException",$fault:"client",...r});Object.setPrototypeOf(this,_ImageAlreadyExistsException.prototype)}};var Le=class _ImageDigestDoesNotMatchException extends M{static{__name(this,"ImageDigestDoesNotMatchException")}name="ImageDigestDoesNotMatchException";$fault="client";constructor(r){super({name:"ImageDigestDoesNotMatchException",$fault:"client",...r});Object.setPrototypeOf(this,_ImageDigestDoesNotMatchException.prototype)}};var Me=class _ImageTagAlreadyExistsException extends M{static{__name(this,"ImageTagAlreadyExistsException")}name="ImageTagAlreadyExistsException";$fault="client";constructor(r){super({name:"ImageTagAlreadyExistsException",$fault:"client",...r});Object.setPrototypeOf(this,_ImageTagAlreadyExistsException.prototype)}};var Ue=class _ReferencedImagesNotFoundException extends M{static{__name(this,"ReferencedImagesNotFoundException")}name="ReferencedImagesNotFoundException";$fault="client";constructor(r){super({name:"ReferencedImagesNotFoundException",$fault:"client",...r});Object.setPrototypeOf(this,_ReferencedImagesNotFoundException.prototype)}};var He=class _UnsupportedImageTypeException extends M{static{__name(this,"UnsupportedImageTypeException")}name="UnsupportedImageTypeException";$fault="client";constructor(r){super({name:"UnsupportedImageTypeException",$fault:"client",...r});Object.setPrototypeOf(this,_UnsupportedImageTypeException.prototype)}};var Ge=class _LifecyclePolicyPreviewInProgressException extends M{static{__name(this,"LifecyclePolicyPreviewInProgressException")}name="LifecyclePolicyPreviewInProgressException";$fault="client";constructor(r){super({name:"LifecyclePolicyPreviewInProgressException",$fault:"client",...r});Object.setPrototypeOf(this,_LifecyclePolicyPreviewInProgressException.prototype)}};var qe=class _InvalidLayerPartException extends M{static{__name(this,"InvalidLayerPartException")}name="InvalidLayerPartException";$fault="client";registryId;repositoryName;uploadId;lastValidByteReceived;constructor(r){super({name:"InvalidLayerPartException",$fault:"client",...r});Object.setPrototypeOf(this,_InvalidLayerPartException.prototype);this.registryId=r.registryId;this.repositoryName=r.repositoryName;this.uploadId=r.uploadId;this.lastValidByteReceived=r.lastValidByteReceived}};var Ve=__name((async(r,s)=>{const i=sharedHeaders("BatchCheckLayerAvailability");let a;a=JSON.stringify((0,x._json)(r));return Cs(s,i,"/",void 0,a)}),"se_BatchCheckLayerAvailabilityCommand");var je=__name((async(r,s)=>{const i=sharedHeaders("BatchDeleteImage");let a;a=JSON.stringify((0,x._json)(r));return Cs(s,i,"/",void 0,a)}),"se_BatchDeleteImageCommand");var ze=__name((async(r,s)=>{const i=sharedHeaders("BatchGetImage");let a;a=JSON.stringify((0,x._json)(r));return Cs(s,i,"/",void 0,a)}),"se_BatchGetImageCommand");var Ye=__name((async(r,s)=>{const i=sharedHeaders("BatchGetRepositoryScanningConfiguration");let a;a=JSON.stringify((0,x._json)(r));return Cs(s,i,"/",void 0,a)}),"se_BatchGetRepositoryScanningConfigurationCommand");var Je=__name((async(r,s)=>{const i=sharedHeaders("CompleteLayerUpload");let a;a=JSON.stringify((0,x._json)(r));return Cs(s,i,"/",void 0,a)}),"se_CompleteLayerUploadCommand");var We=__name((async(r,s)=>{const i=sharedHeaders("CreatePullThroughCacheRule");let a;a=JSON.stringify((0,x._json)(r));return Cs(s,i,"/",void 0,a)}),"se_CreatePullThroughCacheRuleCommand");var Xe=__name((async(r,s)=>{const i=sharedHeaders("CreateRepository");let a;a=JSON.stringify((0,x._json)(r));return Cs(s,i,"/",void 0,a)}),"se_CreateRepositoryCommand");var $e=__name((async(r,s)=>{const i=sharedHeaders("CreateRepositoryCreationTemplate");let a;a=JSON.stringify((0,x._json)(r));return Cs(s,i,"/",void 0,a)}),"se_CreateRepositoryCreationTemplateCommand");var Ke=__name((async(r,s)=>{const i=sharedHeaders("DeleteLifecyclePolicy");let a;a=JSON.stringify((0,x._json)(r));return Cs(s,i,"/",void 0,a)}),"se_DeleteLifecyclePolicyCommand");var Ze=__name((async(r,s)=>{const i=sharedHeaders("DeletePullThroughCacheRule");let a;a=JSON.stringify((0,x._json)(r));return Cs(s,i,"/",void 0,a)}),"se_DeletePullThroughCacheRuleCommand");var et=__name((async(r,s)=>{const i=sharedHeaders("DeleteRegistryPolicy");let a;a=JSON.stringify((0,x._json)(r));return Cs(s,i,"/",void 0,a)}),"se_DeleteRegistryPolicyCommand");var tt=__name((async(r,s)=>{const i=sharedHeaders("DeleteRepository");let a;a=JSON.stringify((0,x._json)(r));return Cs(s,i,"/",void 0,a)}),"se_DeleteRepositoryCommand");var rt=__name((async(r,s)=>{const i=sharedHeaders("DeleteRepositoryCreationTemplate");let a;a=JSON.stringify((0,x._json)(r));return Cs(s,i,"/",void 0,a)}),"se_DeleteRepositoryCreationTemplateCommand");var nt=__name((async(r,s)=>{const i=sharedHeaders("DeleteRepositoryPolicy");let a;a=JSON.stringify((0,x._json)(r));return Cs(s,i,"/",void 0,a)}),"se_DeleteRepositoryPolicyCommand");var st=__name((async(r,s)=>{const i=sharedHeaders("DescribeImageReplicationStatus");let a;a=JSON.stringify((0,x._json)(r));return Cs(s,i,"/",void 0,a)}),"se_DescribeImageReplicationStatusCommand");var it=__name((async(r,s)=>{const i=sharedHeaders("DescribeImages");let a;a=JSON.stringify((0,x._json)(r));return Cs(s,i,"/",void 0,a)}),"se_DescribeImagesCommand");var ot=__name((async(r,s)=>{const i=sharedHeaders("DescribeImageScanFindings");let a;a=JSON.stringify((0,x._json)(r));return Cs(s,i,"/",void 0,a)}),"se_DescribeImageScanFindingsCommand");var At=__name((async(r,s)=>{const i=sharedHeaders("DescribePullThroughCacheRules");let a;a=JSON.stringify((0,x._json)(r));return Cs(s,i,"/",void 0,a)}),"se_DescribePullThroughCacheRulesCommand");var ct=__name((async(r,s)=>{const i=sharedHeaders("DescribeRegistry");let a;a=JSON.stringify((0,x._json)(r));return Cs(s,i,"/",void 0,a)}),"se_DescribeRegistryCommand");var dt=__name((async(r,s)=>{const i=sharedHeaders("DescribeRepositories");let a;a=JSON.stringify((0,x._json)(r));return Cs(s,i,"/",void 0,a)}),"se_DescribeRepositoriesCommand");var ut=__name((async(r,s)=>{const i=sharedHeaders("DescribeRepositoryCreationTemplates");let a;a=JSON.stringify((0,x._json)(r));return Cs(s,i,"/",void 0,a)}),"se_DescribeRepositoryCreationTemplatesCommand");var pt=__name((async(r,s)=>{const i=sharedHeaders("GetAccountSetting");let a;a=JSON.stringify((0,x._json)(r));return Cs(s,i,"/",void 0,a)}),"se_GetAccountSettingCommand");var ht=__name((async(r,s)=>{const i=sharedHeaders("GetAuthorizationToken");let a;a=JSON.stringify((0,x._json)(r));return Cs(s,i,"/",void 0,a)}),"se_GetAuthorizationTokenCommand");var mt=__name((async(r,s)=>{const i=sharedHeaders("GetDownloadUrlForLayer");let a;a=JSON.stringify((0,x._json)(r));return Cs(s,i,"/",void 0,a)}),"se_GetDownloadUrlForLayerCommand");var ft=__name((async(r,s)=>{const i=sharedHeaders("GetLifecyclePolicy");let a;a=JSON.stringify((0,x._json)(r));return Cs(s,i,"/",void 0,a)}),"se_GetLifecyclePolicyCommand");var Et=__name((async(r,s)=>{const i=sharedHeaders("GetLifecyclePolicyPreview");let a;a=JSON.stringify((0,x._json)(r));return Cs(s,i,"/",void 0,a)}),"se_GetLifecyclePolicyPreviewCommand");var Ct=__name((async(r,s)=>{const i=sharedHeaders("GetRegistryPolicy");let a;a=JSON.stringify((0,x._json)(r));return Cs(s,i,"/",void 0,a)}),"se_GetRegistryPolicyCommand");var yt=__name((async(r,s)=>{const i=sharedHeaders("GetRegistryScanningConfiguration");let a;a=JSON.stringify((0,x._json)(r));return Cs(s,i,"/",void 0,a)}),"se_GetRegistryScanningConfigurationCommand");var It=__name((async(r,s)=>{const i=sharedHeaders("GetRepositoryPolicy");let a;a=JSON.stringify((0,x._json)(r));return Cs(s,i,"/",void 0,a)}),"se_GetRepositoryPolicyCommand");var Bt=__name((async(r,s)=>{const i=sharedHeaders("InitiateLayerUpload");let a;a=JSON.stringify((0,x._json)(r));return Cs(s,i,"/",void 0,a)}),"se_InitiateLayerUploadCommand");var bt=__name((async(r,s)=>{const i=sharedHeaders("ListImages");let a;a=JSON.stringify((0,x._json)(r));return Cs(s,i,"/",void 0,a)}),"se_ListImagesCommand");var Qt=__name((async(r,s)=>{const i=sharedHeaders("ListTagsForResource");let a;a=JSON.stringify((0,x._json)(r));return Cs(s,i,"/",void 0,a)}),"se_ListTagsForResourceCommand");var wt=__name((async(r,s)=>{const i=sharedHeaders("PutAccountSetting");let a;a=JSON.stringify((0,x._json)(r));return Cs(s,i,"/",void 0,a)}),"se_PutAccountSettingCommand");var vt=__name((async(r,s)=>{const i=sharedHeaders("PutImage");let a;a=JSON.stringify((0,x._json)(r));return Cs(s,i,"/",void 0,a)}),"se_PutImageCommand");var St=__name((async(r,s)=>{const i=sharedHeaders("PutImageScanningConfiguration");let a;a=JSON.stringify((0,x._json)(r));return Cs(s,i,"/",void 0,a)}),"se_PutImageScanningConfigurationCommand");var Rt=__name((async(r,s)=>{const i=sharedHeaders("PutImageTagMutability");let a;a=JSON.stringify((0,x._json)(r));return Cs(s,i,"/",void 0,a)}),"se_PutImageTagMutabilityCommand");var Nt=__name((async(r,s)=>{const i=sharedHeaders("PutLifecyclePolicy");let a;a=JSON.stringify((0,x._json)(r));return Cs(s,i,"/",void 0,a)}),"se_PutLifecyclePolicyCommand");var xt=__name((async(r,s)=>{const i=sharedHeaders("PutRegistryPolicy");let a;a=JSON.stringify((0,x._json)(r));return Cs(s,i,"/",void 0,a)}),"se_PutRegistryPolicyCommand");var Dt=__name((async(r,s)=>{const i=sharedHeaders("PutRegistryScanningConfiguration");let a;a=JSON.stringify((0,x._json)(r));return Cs(s,i,"/",void 0,a)}),"se_PutRegistryScanningConfigurationCommand");var kt=__name((async(r,s)=>{const i=sharedHeaders("PutReplicationConfiguration");let a;a=JSON.stringify((0,x._json)(r));return Cs(s,i,"/",void 0,a)}),"se_PutReplicationConfigurationCommand");var Tt=__name((async(r,s)=>{const i=sharedHeaders("SetRepositoryPolicy");let a;a=JSON.stringify((0,x._json)(r));return Cs(s,i,"/",void 0,a)}),"se_SetRepositoryPolicyCommand");var _t=__name((async(r,s)=>{const i=sharedHeaders("StartImageScan");let a;a=JSON.stringify((0,x._json)(r));return Cs(s,i,"/",void 0,a)}),"se_StartImageScanCommand");var Pt=__name((async(r,s)=>{const i=sharedHeaders("StartLifecyclePolicyPreview");let a;a=JSON.stringify((0,x._json)(r));return Cs(s,i,"/",void 0,a)}),"se_StartLifecyclePolicyPreviewCommand");var Ot=__name((async(r,s)=>{const i=sharedHeaders("TagResource");let a;a=JSON.stringify((0,x._json)(r));return Cs(s,i,"/",void 0,a)}),"se_TagResourceCommand");var Ft=__name((async(r,s)=>{const i=sharedHeaders("UntagResource");let a;a=JSON.stringify((0,x._json)(r));return Cs(s,i,"/",void 0,a)}),"se_UntagResourceCommand");var Lt=__name((async(r,s)=>{const i=sharedHeaders("UpdatePullThroughCacheRule");let a;a=JSON.stringify((0,x._json)(r));return Cs(s,i,"/",void 0,a)}),"se_UpdatePullThroughCacheRuleCommand");var Mt=__name((async(r,s)=>{const i=sharedHeaders("UpdateRepositoryCreationTemplate");let a;a=JSON.stringify((0,x._json)(r));return Cs(s,i,"/",void 0,a)}),"se_UpdateRepositoryCreationTemplateCommand");var Ut=__name((async(r,s)=>{const i=sharedHeaders("UploadLayerPart");let a;a=JSON.stringify(Sn(r,s));return Cs(s,i,"/",void 0,a)}),"se_UploadLayerPartCommand");var Ht=__name((async(r,s)=>{const i=sharedHeaders("ValidatePullThroughCacheRule");let a;a=JSON.stringify((0,x._json)(r));return Cs(s,i,"/",void 0,a)}),"se_ValidatePullThroughCacheRuleCommand");var Gt=__name((async(r,s)=>{if(r.statusCode>=300){return Fr(r,s)}const i=await(0,L.parseJsonBody)(r.body,s);let a={};a=(0,x._json)(i);const A={$metadata:fs(r),...a};return A}),"de_BatchCheckLayerAvailabilityCommand");var qt=__name((async(r,s)=>{if(r.statusCode>=300){return Fr(r,s)}const i=await(0,L.parseJsonBody)(r.body,s);let a={};a=(0,x._json)(i);const A={$metadata:fs(r),...a};return A}),"de_BatchDeleteImageCommand");var Vt=__name((async(r,s)=>{if(r.statusCode>=300){return Fr(r,s)}const i=await(0,L.parseJsonBody)(r.body,s);let a={};a=(0,x._json)(i);const A={$metadata:fs(r),...a};return A}),"de_BatchGetImageCommand");var jt=__name((async(r,s)=>{if(r.statusCode>=300){return Fr(r,s)}const i=await(0,L.parseJsonBody)(r.body,s);let a={};a=(0,x._json)(i);const A={$metadata:fs(r),...a};return A}),"de_BatchGetRepositoryScanningConfigurationCommand");var zt=__name((async(r,s)=>{if(r.statusCode>=300){return Fr(r,s)}const i=await(0,L.parseJsonBody)(r.body,s);let a={};a=(0,x._json)(i);const A={$metadata:fs(r),...a};return A}),"de_CompleteLayerUploadCommand");var Yt=__name((async(r,s)=>{if(r.statusCode>=300){return Fr(r,s)}const i=await(0,L.parseJsonBody)(r.body,s);let a={};a=Dn(i,s);const A={$metadata:fs(r),...a};return A}),"de_CreatePullThroughCacheRuleCommand");var Jt=__name((async(r,s)=>{if(r.statusCode>=300){return Fr(r,s)}const i=await(0,L.parseJsonBody)(r.body,s);let a={};a=Tn(i,s);const A={$metadata:fs(r),...a};return A}),"de_CreateRepositoryCommand");var Wt=__name((async(r,s)=>{if(r.statusCode>=300){return Fr(r,s)}const i=await(0,L.parseJsonBody)(r.body,s);let a={};a=kn(i,s);const A={$metadata:fs(r),...a};return A}),"de_CreateRepositoryCreationTemplateCommand");var Xt=__name((async(r,s)=>{if(r.statusCode>=300){return Fr(r,s)}const i=await(0,L.parseJsonBody)(r.body,s);let a={};a=Fn(i,s);const A={$metadata:fs(r),...a};return A}),"de_DeleteLifecyclePolicyCommand");var $t=__name((async(r,s)=>{if(r.statusCode>=300){return Fr(r,s)}const i=await(0,L.parseJsonBody)(r.body,s);let a={};a=Ln(i,s);const A={$metadata:fs(r),...a};return A}),"de_DeletePullThroughCacheRuleCommand");var Kt=__name((async(r,s)=>{if(r.statusCode>=300){return Fr(r,s)}const i=await(0,L.parseJsonBody)(r.body,s);let a={};a=(0,x._json)(i);const A={$metadata:fs(r),...a};return A}),"de_DeleteRegistryPolicyCommand");var Zt=__name((async(r,s)=>{if(r.statusCode>=300){return Fr(r,s)}const i=await(0,L.parseJsonBody)(r.body,s);let a={};a=Un(i,s);const A={$metadata:fs(r),...a};return A}),"de_DeleteRepositoryCommand");var er=__name((async(r,s)=>{if(r.statusCode>=300){return Fr(r,s)}const i=await(0,L.parseJsonBody)(r.body,s);let a={};a=Mn(i,s);const A={$metadata:fs(r),...a};return A}),"de_DeleteRepositoryCreationTemplateCommand");var tr=__name((async(r,s)=>{if(r.statusCode>=300){return Fr(r,s)}const i=await(0,L.parseJsonBody)(r.body,s);let a={};a=(0,x._json)(i);const A={$metadata:fs(r),...a};return A}),"de_DeleteRepositoryPolicyCommand");var rr=__name((async(r,s)=>{if(r.statusCode>=300){return Fr(r,s)}const i=await(0,L.parseJsonBody)(r.body,s);let a={};a=(0,x._json)(i);const A={$metadata:fs(r),...a};return A}),"de_DescribeImageReplicationStatusCommand");var nr=__name((async(r,s)=>{if(r.statusCode>=300){return Fr(r,s)}const i=await(0,L.parseJsonBody)(r.body,s);let a={};a=Gn(i,s);const A={$metadata:fs(r),...a};return A}),"de_DescribeImagesCommand");var sr=__name((async(r,s)=>{if(r.statusCode>=300){return Fr(r,s)}const i=await(0,L.parseJsonBody)(r.body,s);let a={};a=Hn(i,s);const A={$metadata:fs(r),...a};return A}),"de_DescribeImageScanFindingsCommand");var ir=__name((async(r,s)=>{if(r.statusCode>=300){return Fr(r,s)}const i=await(0,L.parseJsonBody)(r.body,s);let a={};a=qn(i,s);const A={$metadata:fs(r),...a};return A}),"de_DescribePullThroughCacheRulesCommand");var or=__name((async(r,s)=>{if(r.statusCode>=300){return Fr(r,s)}const i=await(0,L.parseJsonBody)(r.body,s);let a={};a=(0,x._json)(i);const A={$metadata:fs(r),...a};return A}),"de_DescribeRegistryCommand");var ar=__name((async(r,s)=>{if(r.statusCode>=300){return Fr(r,s)}const i=await(0,L.parseJsonBody)(r.body,s);let a={};a=Vn(i,s);const A={$metadata:fs(r),...a};return A}),"de_DescribeRepositoriesCommand");var Ar=__name((async(r,s)=>{if(r.statusCode>=300){return Fr(r,s)}const i=await(0,L.parseJsonBody)(r.body,s);let a={};a=jn(i,s);const A={$metadata:fs(r),...a};return A}),"de_DescribeRepositoryCreationTemplatesCommand");var cr=__name((async(r,s)=>{if(r.statusCode>=300){return Fr(r,s)}const i=await(0,L.parseJsonBody)(r.body,s);let a={};a=(0,x._json)(i);const A={$metadata:fs(r),...a};return A}),"de_GetAccountSettingCommand");var lr=__name((async(r,s)=>{if(r.statusCode>=300){return Fr(r,s)}const i=await(0,L.parseJsonBody)(r.body,s);let a={};a=Jn(i,s);const A={$metadata:fs(r),...a};return A}),"de_GetAuthorizationTokenCommand");var dr=__name((async(r,s)=>{if(r.statusCode>=300){return Fr(r,s)}const i=await(0,L.parseJsonBody)(r.body,s);let a={};a=(0,x._json)(i);const A={$metadata:fs(r),...a};return A}),"de_GetDownloadUrlForLayerCommand");var ur=__name((async(r,s)=>{if(r.statusCode>=300){return Fr(r,s)}const i=await(0,L.parseJsonBody)(r.body,s);let a={};a=Xn(i,s);const A={$metadata:fs(r),...a};return A}),"de_GetLifecyclePolicyCommand");var pr=__name((async(r,s)=>{if(r.statusCode>=300){return Fr(r,s)}const i=await(0,L.parseJsonBody)(r.body,s);let a={};a=Wn(i,s);const A={$metadata:fs(r),...a};return A}),"de_GetLifecyclePolicyPreviewCommand");var gr=__name((async(r,s)=>{if(r.statusCode>=300){return Fr(r,s)}const i=await(0,L.parseJsonBody)(r.body,s);let a={};a=(0,x._json)(i);const A={$metadata:fs(r),...a};return A}),"de_GetRegistryPolicyCommand");var hr=__name((async(r,s)=>{if(r.statusCode>=300){return Fr(r,s)}const i=await(0,L.parseJsonBody)(r.body,s);let a={};a=(0,x._json)(i);const A={$metadata:fs(r),...a};return A}),"de_GetRegistryScanningConfigurationCommand");var mr=__name((async(r,s)=>{if(r.statusCode>=300){return Fr(r,s)}const i=await(0,L.parseJsonBody)(r.body,s);let a={};a=(0,x._json)(i);const A={$metadata:fs(r),...a};return A}),"de_GetRepositoryPolicyCommand");var fr=__name((async(r,s)=>{if(r.statusCode>=300){return Fr(r,s)}const i=await(0,L.parseJsonBody)(r.body,s);let a={};a=(0,x._json)(i);const A={$metadata:fs(r),...a};return A}),"de_InitiateLayerUploadCommand");var Er=__name((async(r,s)=>{if(r.statusCode>=300){return Fr(r,s)}const i=await(0,L.parseJsonBody)(r.body,s);let a={};a=(0,x._json)(i);const A={$metadata:fs(r),...a};return A}),"de_ListImagesCommand");var Cr=__name((async(r,s)=>{if(r.statusCode>=300){return Fr(r,s)}const i=await(0,L.parseJsonBody)(r.body,s);let a={};a=(0,x._json)(i);const A={$metadata:fs(r),...a};return A}),"de_ListTagsForResourceCommand");var yr=__name((async(r,s)=>{if(r.statusCode>=300){return Fr(r,s)}const i=await(0,L.parseJsonBody)(r.body,s);let a={};a=(0,x._json)(i);const A={$metadata:fs(r),...a};return A}),"de_PutAccountSettingCommand");var Ir=__name((async(r,s)=>{if(r.statusCode>=300){return Fr(r,s)}const i=await(0,L.parseJsonBody)(r.body,s);let a={};a=(0,x._json)(i);const A={$metadata:fs(r),...a};return A}),"de_PutImageCommand");var Br=__name((async(r,s)=>{if(r.statusCode>=300){return Fr(r,s)}const i=await(0,L.parseJsonBody)(r.body,s);let a={};a=(0,x._json)(i);const A={$metadata:fs(r),...a};return A}),"de_PutImageScanningConfigurationCommand");var br=__name((async(r,s)=>{if(r.statusCode>=300){return Fr(r,s)}const i=await(0,L.parseJsonBody)(r.body,s);let a={};a=(0,x._json)(i);const A={$metadata:fs(r),...a};return A}),"de_PutImageTagMutabilityCommand");var Qr=__name((async(r,s)=>{if(r.statusCode>=300){return Fr(r,s)}const i=await(0,L.parseJsonBody)(r.body,s);let a={};a=(0,x._json)(i);const A={$metadata:fs(r),...a};return A}),"de_PutLifecyclePolicyCommand");var wr=__name((async(r,s)=>{if(r.statusCode>=300){return Fr(r,s)}const i=await(0,L.parseJsonBody)(r.body,s);let a={};a=(0,x._json)(i);const A={$metadata:fs(r),...a};return A}),"de_PutRegistryPolicyCommand");var vr=__name((async(r,s)=>{if(r.statusCode>=300){return Fr(r,s)}const i=await(0,L.parseJsonBody)(r.body,s);let a={};a=(0,x._json)(i);const A={$metadata:fs(r),...a};return A}),"de_PutRegistryScanningConfigurationCommand");var Sr=__name((async(r,s)=>{if(r.statusCode>=300){return Fr(r,s)}const i=await(0,L.parseJsonBody)(r.body,s);let a={};a=(0,x._json)(i);const A={$metadata:fs(r),...a};return A}),"de_PutReplicationConfigurationCommand");var Rr=__name((async(r,s)=>{if(r.statusCode>=300){return Fr(r,s)}const i=await(0,L.parseJsonBody)(r.body,s);let a={};a=(0,x._json)(i);const A={$metadata:fs(r),...a};return A}),"de_SetRepositoryPolicyCommand");var Nr=__name((async(r,s)=>{if(r.statusCode>=300){return Fr(r,s)}const i=await(0,L.parseJsonBody)(r.body,s);let a={};a=(0,x._json)(i);const A={$metadata:fs(r),...a};return A}),"de_StartImageScanCommand");var xr=__name((async(r,s)=>{if(r.statusCode>=300){return Fr(r,s)}const i=await(0,L.parseJsonBody)(r.body,s);let a={};a=(0,x._json)(i);const A={$metadata:fs(r),...a};return A}),"de_StartLifecyclePolicyPreviewCommand");var Dr=__name((async(r,s)=>{if(r.statusCode>=300){return Fr(r,s)}const i=await(0,L.parseJsonBody)(r.body,s);let a={};a=(0,x._json)(i);const A={$metadata:fs(r),...a};return A}),"de_TagResourceCommand");var kr=__name((async(r,s)=>{if(r.statusCode>=300){return Fr(r,s)}const i=await(0,L.parseJsonBody)(r.body,s);let a={};a=(0,x._json)(i);const A={$metadata:fs(r),...a};return A}),"de_UntagResourceCommand");var Tr=__name((async(r,s)=>{if(r.statusCode>=300){return Fr(r,s)}const i=await(0,L.parseJsonBody)(r.body,s);let a={};a=hs(i,s);const A={$metadata:fs(r),...a};return A}),"de_UpdatePullThroughCacheRuleCommand");var _r=__name((async(r,s)=>{if(r.statusCode>=300){return Fr(r,s)}const i=await(0,L.parseJsonBody)(r.body,s);let a={};a=ms(i,s);const A={$metadata:fs(r),...a};return A}),"de_UpdateRepositoryCreationTemplateCommand");var Pr=__name((async(r,s)=>{if(r.statusCode>=300){return Fr(r,s)}const i=await(0,L.parseJsonBody)(r.body,s);let a={};a=(0,x._json)(i);const A={$metadata:fs(r),...a};return A}),"de_UploadLayerPartCommand");var Or=__name((async(r,s)=>{if(r.statusCode>=300){return Fr(r,s)}const i=await(0,L.parseJsonBody)(r.body,s);let a={};a=(0,x._json)(i);const A={$metadata:fs(r),...a};return A}),"de_ValidatePullThroughCacheRuleCommand");var Fr=__name((async(r,s)=>{const i={...r,body:await(0,L.parseJsonErrorBody)(r.body,s)};const a=(0,L.loadRestJsonErrorCode)(r,i.body);switch(a){case"InvalidParameterException":case"com.amazonaws.ecr#InvalidParameterException":throw await jr(i,s);case"RepositoryNotFoundException":case"com.amazonaws.ecr#RepositoryNotFoundException":throw await ln(i,s);case"ServerException":case"com.amazonaws.ecr#ServerException":throw await gn(i,s);case"LimitExceededException":case"com.amazonaws.ecr#LimitExceededException":throw await tn(i,s);case"UnableToGetUpstreamImageException":case"com.amazonaws.ecr#UnableToGetUpstreamImageException":throw await In(i,s);case"ValidationException":case"com.amazonaws.ecr#ValidationException":throw await vn(i,s);case"EmptyUploadException":case"com.amazonaws.ecr#EmptyUploadException":throw await Lr(i,s);case"InvalidLayerException":case"com.amazonaws.ecr#InvalidLayerException":throw await qr(i,s);case"KmsException":case"com.amazonaws.ecr#KmsException":throw await Yr(i,s);case"LayerAlreadyExistsException":case"com.amazonaws.ecr#LayerAlreadyExistsException":throw await Jr(i,s);case"LayerPartTooSmallException":case"com.amazonaws.ecr#LayerPartTooSmallException":throw await Xr(i,s);case"UploadNotFoundException":case"com.amazonaws.ecr#UploadNotFoundException":throw await wn(i,s);case"PullThroughCacheRuleAlreadyExistsException":case"com.amazonaws.ecr#PullThroughCacheRuleAlreadyExistsException":throw await rn(i,s);case"SecretNotFoundException":case"com.amazonaws.ecr#SecretNotFoundException":throw await pn(i,s);case"UnableToAccessSecretException":case"com.amazonaws.ecr#UnableToAccessSecretException":throw await Cn(i,s);case"UnableToDecryptSecretValueException":case"com.amazonaws.ecr#UnableToDecryptSecretValueException":throw await yn(i,s);case"UnsupportedUpstreamRegistryException":case"com.amazonaws.ecr#UnsupportedUpstreamRegistryException":throw await Qn(i,s);case"InvalidTagParameterException":case"com.amazonaws.ecr#InvalidTagParameterException":throw await zr(i,s);case"RepositoryAlreadyExistsException":case"com.amazonaws.ecr#RepositoryAlreadyExistsException":throw await An(i,s);case"TooManyTagsException":case"com.amazonaws.ecr#TooManyTagsException":throw await En(i,s);case"TemplateAlreadyExistsException":case"com.amazonaws.ecr#TemplateAlreadyExistsException":throw await hn(i,s);case"LifecyclePolicyNotFoundException":case"com.amazonaws.ecr#LifecyclePolicyNotFoundException":throw await Kr(i,s);case"PullThroughCacheRuleNotFoundException":case"com.amazonaws.ecr#PullThroughCacheRuleNotFoundException":throw await nn(i,s);case"RegistryPolicyNotFoundException":case"com.amazonaws.ecr#RegistryPolicyNotFoundException":throw await an(i,s);case"RepositoryNotEmptyException":case"com.amazonaws.ecr#RepositoryNotEmptyException":throw await cn(i,s);case"TemplateNotFoundException":case"com.amazonaws.ecr#TemplateNotFoundException":throw await mn(i,s);case"RepositoryPolicyNotFoundException":case"com.amazonaws.ecr#RepositoryPolicyNotFoundException":throw await dn(i,s);case"ImageNotFoundException":case"com.amazonaws.ecr#ImageNotFoundException":throw await Hr(i,s);case"ScanNotFoundException":case"com.amazonaws.ecr#ScanNotFoundException":throw await un(i,s);case"LayerInaccessibleException":case"com.amazonaws.ecr#LayerInaccessibleException":throw await Wr(i,s);case"LayersNotFoundException":case"com.amazonaws.ecr#LayersNotFoundException":throw await $r(i,s);case"UnableToGetUpstreamLayerException":case"com.amazonaws.ecr#UnableToGetUpstreamLayerException":throw await Bn(i,s);case"LifecyclePolicyPreviewNotFoundException":case"com.amazonaws.ecr#LifecyclePolicyPreviewNotFoundException":throw await en(i,s);case"ImageAlreadyExistsException":case"com.amazonaws.ecr#ImageAlreadyExistsException":throw await Mr(i,s);case"ImageDigestDoesNotMatchException":case"com.amazonaws.ecr#ImageDigestDoesNotMatchException":throw await Ur(i,s);case"ImageTagAlreadyExistsException":case"com.amazonaws.ecr#ImageTagAlreadyExistsException":throw await Gr(i,s);case"ReferencedImagesNotFoundException":case"com.amazonaws.ecr#ReferencedImagesNotFoundException":throw await sn(i,s);case"UnsupportedImageTypeException":case"com.amazonaws.ecr#UnsupportedImageTypeException":throw await bn(i,s);case"LifecyclePolicyPreviewInProgressException":case"com.amazonaws.ecr#LifecyclePolicyPreviewInProgressException":throw await Zr(i,s);case"InvalidLayerPartException":case"com.amazonaws.ecr#InvalidLayerPartException":throw await Vr(i,s);default:const A=i.body;return Es({output:r,parsedBody:A,errorCode:a})}}),"de_CommandError");var Lr=__name((async(r,s)=>{const i=r.body;const a=(0,x._json)(i);const A=new K({$metadata:fs(r),...a});return(0,x.decorateServiceException)(A,i)}),"de_EmptyUploadExceptionRes");var Mr=__name((async(r,s)=>{const i=r.body;const a=(0,x._json)(i);const A=new Fe({$metadata:fs(r),...a});return(0,x.decorateServiceException)(A,i)}),"de_ImageAlreadyExistsExceptionRes");var Ur=__name((async(r,s)=>{const i=r.body;const a=(0,x._json)(i);const A=new Le({$metadata:fs(r),...a});return(0,x.decorateServiceException)(A,i)}),"de_ImageDigestDoesNotMatchExceptionRes");var Hr=__name((async(r,s)=>{const i=r.body;const a=(0,x._json)(i);const A=new Qe({$metadata:fs(r),...a});return(0,x.decorateServiceException)(A,i)}),"de_ImageNotFoundExceptionRes");var Gr=__name((async(r,s)=>{const i=r.body;const a=(0,x._json)(i);const A=new Me({$metadata:fs(r),...a});return(0,x.decorateServiceException)(A,i)}),"de_ImageTagAlreadyExistsExceptionRes");var qr=__name((async(r,s)=>{const i=r.body;const a=(0,x._json)(i);const A=new Z({$metadata:fs(r),...a});return(0,x.decorateServiceException)(A,i)}),"de_InvalidLayerExceptionRes");var Vr=__name((async(r,s)=>{const i=r.body;const a=(0,x._json)(i);const A=new qe({$metadata:fs(r),...a});return(0,x.decorateServiceException)(A,i)}),"de_InvalidLayerPartExceptionRes");var jr=__name((async(r,s)=>{const i=r.body;const a=(0,x._json)(i);const A=new G({$metadata:fs(r),...a});return(0,x.decorateServiceException)(A,i)}),"de_InvalidParameterExceptionRes");var zr=__name((async(r,s)=>{const i=r.body;const a=(0,x._json)(i);const A=new ue({$metadata:fs(r),...a});return(0,x.decorateServiceException)(A,i)}),"de_InvalidTagParameterExceptionRes");var Yr=__name((async(r,s)=>{const i=r.body;const a=(0,x._json)(i);const A=new ee({$metadata:fs(r),...a});return(0,x.decorateServiceException)(A,i)}),"de_KmsExceptionRes");var Jr=__name((async(r,s)=>{const i=r.body;const a=(0,x._json)(i);const A=new te({$metadata:fs(r),...a});return(0,x.decorateServiceException)(A,i)}),"de_LayerAlreadyExistsExceptionRes");var Wr=__name((async(r,s)=>{const i=r.body;const a=(0,x._json)(i);const A=new xe({$metadata:fs(r),...a});return(0,x.decorateServiceException)(A,i)}),"de_LayerInaccessibleExceptionRes");var Xr=__name((async(r,s)=>{const i=r.body;const a=(0,x._json)(i);const A=new re({$metadata:fs(r),...a});return(0,x.decorateServiceException)(A,i)}),"de_LayerPartTooSmallExceptionRes");var $r=__name((async(r,s)=>{const i=r.body;const a=(0,x._json)(i);const A=new De({$metadata:fs(r),...a});return(0,x.decorateServiceException)(A,i)}),"de_LayersNotFoundExceptionRes");var Kr=__name((async(r,s)=>{const i=r.body;const a=(0,x._json)(i);const A=new fe({$metadata:fs(r),...a});return(0,x.decorateServiceException)(A,i)}),"de_LifecyclePolicyNotFoundExceptionRes");var Zr=__name((async(r,s)=>{const i=r.body;const a=(0,x._json)(i);const A=new Ge({$metadata:fs(r),...a});return(0,x.decorateServiceException)(A,i)}),"de_LifecyclePolicyPreviewInProgressExceptionRes");var en=__name((async(r,s)=>{const i=r.body;const a=(0,x._json)(i);const A=new Pe({$metadata:fs(r),...a});return(0,x.decorateServiceException)(A,i)}),"de_LifecyclePolicyPreviewNotFoundExceptionRes");var tn=__name((async(r,s)=>{const i=r.body;const a=(0,x._json)(i);const A=new z({$metadata:fs(r),...a});return(0,x.decorateServiceException)(A,i)}),"de_LimitExceededExceptionRes");var rn=__name((async(r,s)=>{const i=r.body;const a=(0,x._json)(i);const A=new ie({$metadata:fs(r),...a});return(0,x.decorateServiceException)(A,i)}),"de_PullThroughCacheRuleAlreadyExistsExceptionRes");var nn=__name((async(r,s)=>{const i=r.body;const a=(0,x._json)(i);const A=new Ee({$metadata:fs(r),...a});return(0,x.decorateServiceException)(A,i)}),"de_PullThroughCacheRuleNotFoundExceptionRes");var sn=__name((async(r,s)=>{const i=r.body;const a=(0,x._json)(i);const A=new Ue({$metadata:fs(r),...a});return(0,x.decorateServiceException)(A,i)}),"de_ReferencedImagesNotFoundExceptionRes");var an=__name((async(r,s)=>{const i=r.body;const a=(0,x._json)(i);const A=new Ce({$metadata:fs(r),...a});return(0,x.decorateServiceException)(A,i)}),"de_RegistryPolicyNotFoundExceptionRes");var An=__name((async(r,s)=>{const i=r.body;const a=(0,x._json)(i);const A=new pe({$metadata:fs(r),...a});return(0,x.decorateServiceException)(A,i)}),"de_RepositoryAlreadyExistsExceptionRes");var cn=__name((async(r,s)=>{const i=r.body;const a=(0,x._json)(i);const A=new ye({$metadata:fs(r),...a});return(0,x.decorateServiceException)(A,i)}),"de_RepositoryNotEmptyExceptionRes");var ln=__name((async(r,s)=>{const i=r.body;const a=(0,x._json)(i);const A=new q({$metadata:fs(r),...a});return(0,x.decorateServiceException)(A,i)}),"de_RepositoryNotFoundExceptionRes");var dn=__name((async(r,s)=>{const i=r.body;const a=(0,x._json)(i);const A=new Be({$metadata:fs(r),...a});return(0,x.decorateServiceException)(A,i)}),"de_RepositoryPolicyNotFoundExceptionRes");var un=__name((async(r,s)=>{const i=r.body;const a=(0,x._json)(i);const A=new Re({$metadata:fs(r),...a});return(0,x.decorateServiceException)(A,i)}),"de_ScanNotFoundExceptionRes");var pn=__name((async(r,s)=>{const i=r.body;const a=(0,x._json)(i);const A=new oe({$metadata:fs(r),...a});return(0,x.decorateServiceException)(A,i)}),"de_SecretNotFoundExceptionRes");var gn=__name((async(r,s)=>{const i=r.body;const a=(0,x._json)(i);const A=new V({$metadata:fs(r),...a});return(0,x.decorateServiceException)(A,i)}),"de_ServerExceptionRes");var hn=__name((async(r,s)=>{const i=r.body;const a=(0,x._json)(i);const A=new me({$metadata:fs(r),...a});return(0,x.decorateServiceException)(A,i)}),"de_TemplateAlreadyExistsExceptionRes");var mn=__name((async(r,s)=>{const i=r.body;const a=(0,x._json)(i);const A=new Ie({$metadata:fs(r),...a});return(0,x.decorateServiceException)(A,i)}),"de_TemplateNotFoundExceptionRes");var En=__name((async(r,s)=>{const i=r.body;const a=(0,x._json)(i);const A=new ge({$metadata:fs(r),...a});return(0,x.decorateServiceException)(A,i)}),"de_TooManyTagsExceptionRes");var Cn=__name((async(r,s)=>{const i=r.body;const a=(0,x._json)(i);const A=new ae({$metadata:fs(r),...a});return(0,x.decorateServiceException)(A,i)}),"de_UnableToAccessSecretExceptionRes");var yn=__name((async(r,s)=>{const i=r.body;const a=(0,x._json)(i);const A=new Ae({$metadata:fs(r),...a});return(0,x.decorateServiceException)(A,i)}),"de_UnableToDecryptSecretValueExceptionRes");var In=__name((async(r,s)=>{const i=r.body;const a=(0,x._json)(i);const A=new Y({$metadata:fs(r),...a});return(0,x.decorateServiceException)(A,i)}),"de_UnableToGetUpstreamImageExceptionRes");var Bn=__name((async(r,s)=>{const i=r.body;const a=(0,x._json)(i);const A=new ke({$metadata:fs(r),...a});return(0,x.decorateServiceException)(A,i)}),"de_UnableToGetUpstreamLayerExceptionRes");var bn=__name((async(r,s)=>{const i=r.body;const a=(0,x._json)(i);const A=new He({$metadata:fs(r),...a});return(0,x.decorateServiceException)(A,i)}),"de_UnsupportedImageTypeExceptionRes");var Qn=__name((async(r,s)=>{const i=r.body;const a=(0,x._json)(i);const A=new ce({$metadata:fs(r),...a});return(0,x.decorateServiceException)(A,i)}),"de_UnsupportedUpstreamRegistryExceptionRes");var wn=__name((async(r,s)=>{const i=r.body;const a=(0,x._json)(i);const A=new ne({$metadata:fs(r),...a});return(0,x.decorateServiceException)(A,i)}),"de_UploadNotFoundExceptionRes");var vn=__name((async(r,s)=>{const i=r.body;const a=(0,x._json)(i);const A=new $({$metadata:fs(r),...a});return(0,x.decorateServiceException)(A,i)}),"de_ValidationExceptionRes");var Sn=__name(((r,s)=>(0,x.take)(r,{layerPartBlob:s.base64Encoder,partFirstByte:[],partLastByte:[],registryId:[],repositoryName:[],uploadId:[]})),"se_UploadLayerPartRequest");var Rn=__name(((r,s)=>(0,x.take)(r,{authorizationToken:x.expectString,expiresAt:__name((r=>(0,x.expectNonNull)((0,x.parseEpochTimestamp)((0,x.expectNumber)(r)))),"expiresAt"),proxyEndpoint:x.expectString})),"de_AuthorizationData");var Nn=__name(((r,s)=>{const i=(r||[]).filter((r=>r!=null)).map((r=>Rn(r,s)));return i}),"de_AuthorizationDataList");var xn=__name(((r,s)=>(0,x.take)(r,{architecture:x.expectString,author:x.expectString,imageHash:x.expectString,imageTags:x._json,platform:x.expectString,pushedAt:__name((r=>(0,x.expectNonNull)((0,x.parseEpochTimestamp)((0,x.expectNumber)(r)))),"pushedAt"),registry:x.expectString,repositoryName:x.expectString})),"de_AwsEcrContainerImageDetails");var Dn=__name(((r,s)=>(0,x.take)(r,{createdAt:__name((r=>(0,x.expectNonNull)((0,x.parseEpochTimestamp)((0,x.expectNumber)(r)))),"createdAt"),credentialArn:x.expectString,customRoleArn:x.expectString,ecrRepositoryPrefix:x.expectString,registryId:x.expectString,upstreamRegistry:x.expectString,upstreamRegistryUrl:x.expectString,upstreamRepositoryPrefix:x.expectString})),"de_CreatePullThroughCacheRuleResponse");var kn=__name(((r,s)=>(0,x.take)(r,{registryId:x.expectString,repositoryCreationTemplate:__name((r=>As(r,s)),"repositoryCreationTemplate")})),"de_CreateRepositoryCreationTemplateResponse");var Tn=__name(((r,s)=>(0,x.take)(r,{repository:__name((r=>as(r,s)),"repository")})),"de_CreateRepositoryResponse");var _n=__name(((r,s)=>(0,x.take)(r,{baseScore:x.limitedParseDouble,scoringVector:x.expectString,source:x.expectString,version:x.expectString})),"de_CvssScore");var Pn=__name(((r,s)=>(0,x.take)(r,{adjustments:x._json,score:x.limitedParseDouble,scoreSource:x.expectString,scoringVector:x.expectString,version:x.expectString})),"de_CvssScoreDetails");var On=__name(((r,s)=>{const i=(r||[]).filter((r=>r!=null)).map((r=>_n(r,s)));return i}),"de_CvssScoreList");var Fn=__name(((r,s)=>(0,x.take)(r,{lastEvaluatedAt:__name((r=>(0,x.expectNonNull)((0,x.parseEpochTimestamp)((0,x.expectNumber)(r)))),"lastEvaluatedAt"),lifecyclePolicyText:x.expectString,registryId:x.expectString,repositoryName:x.expectString})),"de_DeleteLifecyclePolicyResponse");var Ln=__name(((r,s)=>(0,x.take)(r,{createdAt:__name((r=>(0,x.expectNonNull)((0,x.parseEpochTimestamp)((0,x.expectNumber)(r)))),"createdAt"),credentialArn:x.expectString,customRoleArn:x.expectString,ecrRepositoryPrefix:x.expectString,registryId:x.expectString,upstreamRegistryUrl:x.expectString,upstreamRepositoryPrefix:x.expectString})),"de_DeletePullThroughCacheRuleResponse");var Mn=__name(((r,s)=>(0,x.take)(r,{registryId:x.expectString,repositoryCreationTemplate:__name((r=>As(r,s)),"repositoryCreationTemplate")})),"de_DeleteRepositoryCreationTemplateResponse");var Un=__name(((r,s)=>(0,x.take)(r,{repository:__name((r=>as(r,s)),"repository")})),"de_DeleteRepositoryResponse");var Hn=__name(((r,s)=>(0,x.take)(r,{imageId:x._json,imageScanFindings:__name((r=>Zn(r,s)),"imageScanFindings"),imageScanStatus:x._json,nextToken:x.expectString,registryId:x.expectString,repositoryName:x.expectString})),"de_DescribeImageScanFindingsResponse");var Gn=__name(((r,s)=>(0,x.take)(r,{imageDetails:__name((r=>Kn(r,s)),"imageDetails"),nextToken:x.expectString})),"de_DescribeImagesResponse");var qn=__name(((r,s)=>(0,x.take)(r,{nextToken:x.expectString,pullThroughCacheRules:__name((r=>os(r,s)),"pullThroughCacheRules")})),"de_DescribePullThroughCacheRulesResponse");var Vn=__name(((r,s)=>(0,x.take)(r,{nextToken:x.expectString,repositories:__name((r=>ls(r,s)),"repositories")})),"de_DescribeRepositoriesResponse");var jn=__name(((r,s)=>(0,x.take)(r,{nextToken:x.expectString,registryId:x.expectString,repositoryCreationTemplates:__name((r=>cs(r,s)),"repositoryCreationTemplates")})),"de_DescribeRepositoryCreationTemplatesResponse");var zn=__name(((r,s)=>(0,x.take)(r,{awsAccountId:x.expectString,description:x.expectString,exploitAvailable:x.expectString,findingArn:x.expectString,firstObservedAt:__name((r=>(0,x.expectNonNull)((0,x.parseEpochTimestamp)((0,x.expectNumber)(r)))),"firstObservedAt"),fixAvailable:x.expectString,lastObservedAt:__name((r=>(0,x.expectNonNull)((0,x.parseEpochTimestamp)((0,x.expectNumber)(r)))),"lastObservedAt"),packageVulnerabilityDetails:__name((r=>ns(r,s)),"packageVulnerabilityDetails"),remediation:x._json,resources:__name((r=>ps(r,s)),"resources"),score:x.limitedParseDouble,scoreDetails:__name((r=>gs(r,s)),"scoreDetails"),severity:x.expectString,status:x.expectString,title:x.expectString,type:x.expectString,updatedAt:__name((r=>(0,x.expectNonNull)((0,x.parseEpochTimestamp)((0,x.expectNumber)(r)))),"updatedAt")})),"de_EnhancedImageScanFinding");var Yn=__name(((r,s)=>{const i=(r||[]).filter((r=>r!=null)).map((r=>zn(r,s)));return i}),"de_EnhancedImageScanFindingList");var Jn=__name(((r,s)=>(0,x.take)(r,{authorizationData:__name((r=>Nn(r,s)),"authorizationData")})),"de_GetAuthorizationTokenResponse");var Wn=__name(((r,s)=>(0,x.take)(r,{lifecyclePolicyText:x.expectString,nextToken:x.expectString,previewResults:__name((r=>rs(r,s)),"previewResults"),registryId:x.expectString,repositoryName:x.expectString,status:x.expectString,summary:x._json})),"de_GetLifecyclePolicyPreviewResponse");var Xn=__name(((r,s)=>(0,x.take)(r,{lastEvaluatedAt:__name((r=>(0,x.expectNonNull)((0,x.parseEpochTimestamp)((0,x.expectNumber)(r)))),"lastEvaluatedAt"),lifecyclePolicyText:x.expectString,registryId:x.expectString,repositoryName:x.expectString})),"de_GetLifecyclePolicyResponse");var $n=__name(((r,s)=>(0,x.take)(r,{artifactMediaType:x.expectString,imageDigest:x.expectString,imageManifestMediaType:x.expectString,imagePushedAt:__name((r=>(0,x.expectNonNull)((0,x.parseEpochTimestamp)((0,x.expectNumber)(r)))),"imagePushedAt"),imageScanFindingsSummary:__name((r=>es(r,s)),"imageScanFindingsSummary"),imageScanStatus:x._json,imageSizeInBytes:x.expectLong,imageTags:x._json,lastRecordedPullTime:__name((r=>(0,x.expectNonNull)((0,x.parseEpochTimestamp)((0,x.expectNumber)(r)))),"lastRecordedPullTime"),registryId:x.expectString,repositoryName:x.expectString})),"de_ImageDetail");var Kn=__name(((r,s)=>{const i=(r||[]).filter((r=>r!=null)).map((r=>$n(r,s)));return i}),"de_ImageDetailList");var Zn=__name(((r,s)=>(0,x.take)(r,{enhancedFindings:__name((r=>Yn(r,s)),"enhancedFindings"),findingSeverityCounts:x._json,findings:x._json,imageScanCompletedAt:__name((r=>(0,x.expectNonNull)((0,x.parseEpochTimestamp)((0,x.expectNumber)(r)))),"imageScanCompletedAt"),vulnerabilitySourceUpdatedAt:__name((r=>(0,x.expectNonNull)((0,x.parseEpochTimestamp)((0,x.expectNumber)(r)))),"vulnerabilitySourceUpdatedAt")})),"de_ImageScanFindings");var es=__name(((r,s)=>(0,x.take)(r,{findingSeverityCounts:x._json,imageScanCompletedAt:__name((r=>(0,x.expectNonNull)((0,x.parseEpochTimestamp)((0,x.expectNumber)(r)))),"imageScanCompletedAt"),vulnerabilitySourceUpdatedAt:__name((r=>(0,x.expectNonNull)((0,x.parseEpochTimestamp)((0,x.expectNumber)(r)))),"vulnerabilitySourceUpdatedAt")})),"de_ImageScanFindingsSummary");var ts=__name(((r,s)=>(0,x.take)(r,{action:x._json,appliedRulePriority:x.expectInt32,imageDigest:x.expectString,imagePushedAt:__name((r=>(0,x.expectNonNull)((0,x.parseEpochTimestamp)((0,x.expectNumber)(r)))),"imagePushedAt"),imageTags:x._json})),"de_LifecyclePolicyPreviewResult");var rs=__name(((r,s)=>{const i=(r||[]).filter((r=>r!=null)).map((r=>ts(r,s)));return i}),"de_LifecyclePolicyPreviewResultList");var ns=__name(((r,s)=>(0,x.take)(r,{cvss:__name((r=>On(r,s)),"cvss"),referenceUrls:x._json,relatedVulnerabilities:x._json,source:x.expectString,sourceUrl:x.expectString,vendorCreatedAt:__name((r=>(0,x.expectNonNull)((0,x.parseEpochTimestamp)((0,x.expectNumber)(r)))),"vendorCreatedAt"),vendorSeverity:x.expectString,vendorUpdatedAt:__name((r=>(0,x.expectNonNull)((0,x.parseEpochTimestamp)((0,x.expectNumber)(r)))),"vendorUpdatedAt"),vulnerabilityId:x.expectString,vulnerablePackages:x._json})),"de_PackageVulnerabilityDetails");var ss=__name(((r,s)=>(0,x.take)(r,{createdAt:__name((r=>(0,x.expectNonNull)((0,x.parseEpochTimestamp)((0,x.expectNumber)(r)))),"createdAt"),credentialArn:x.expectString,customRoleArn:x.expectString,ecrRepositoryPrefix:x.expectString,registryId:x.expectString,updatedAt:__name((r=>(0,x.expectNonNull)((0,x.parseEpochTimestamp)((0,x.expectNumber)(r)))),"updatedAt"),upstreamRegistry:x.expectString,upstreamRegistryUrl:x.expectString,upstreamRepositoryPrefix:x.expectString})),"de_PullThroughCacheRule");var os=__name(((r,s)=>{const i=(r||[]).filter((r=>r!=null)).map((r=>ss(r,s)));return i}),"de_PullThroughCacheRuleList");var as=__name(((r,s)=>(0,x.take)(r,{createdAt:__name((r=>(0,x.expectNonNull)((0,x.parseEpochTimestamp)((0,x.expectNumber)(r)))),"createdAt"),encryptionConfiguration:x._json,imageScanningConfiguration:x._json,imageTagMutability:x.expectString,registryId:x.expectString,repositoryArn:x.expectString,repositoryName:x.expectString,repositoryUri:x.expectString})),"de_Repository");var As=__name(((r,s)=>(0,x.take)(r,{appliedFor:x._json,createdAt:__name((r=>(0,x.expectNonNull)((0,x.parseEpochTimestamp)((0,x.expectNumber)(r)))),"createdAt"),customRoleArn:x.expectString,description:x.expectString,encryptionConfiguration:x._json,imageTagMutability:x.expectString,lifecyclePolicy:x.expectString,prefix:x.expectString,repositoryPolicy:x.expectString,resourceTags:x._json,updatedAt:__name((r=>(0,x.expectNonNull)((0,x.parseEpochTimestamp)((0,x.expectNumber)(r)))),"updatedAt")})),"de_RepositoryCreationTemplate");var cs=__name(((r,s)=>{const i=(r||[]).filter((r=>r!=null)).map((r=>As(r,s)));return i}),"de_RepositoryCreationTemplateList");var ls=__name(((r,s)=>{const i=(r||[]).filter((r=>r!=null)).map((r=>as(r,s)));return i}),"de_RepositoryList");var ds=__name(((r,s)=>(0,x.take)(r,{details:__name((r=>us(r,s)),"details"),id:x.expectString,tags:x._json,type:x.expectString})),"de_Resource");var us=__name(((r,s)=>(0,x.take)(r,{awsEcrContainerImage:__name((r=>xn(r,s)),"awsEcrContainerImage")})),"de_ResourceDetails");var ps=__name(((r,s)=>{const i=(r||[]).filter((r=>r!=null)).map((r=>ds(r,s)));return i}),"de_ResourceList");var gs=__name(((r,s)=>(0,x.take)(r,{cvss:__name((r=>Pn(r,s)),"cvss")})),"de_ScoreDetails");var hs=__name(((r,s)=>(0,x.take)(r,{credentialArn:x.expectString,customRoleArn:x.expectString,ecrRepositoryPrefix:x.expectString,registryId:x.expectString,updatedAt:__name((r=>(0,x.expectNonNull)((0,x.parseEpochTimestamp)((0,x.expectNumber)(r)))),"updatedAt"),upstreamRepositoryPrefix:x.expectString})),"de_UpdatePullThroughCacheRuleResponse");var ms=__name(((r,s)=>(0,x.take)(r,{registryId:x.expectString,repositoryCreationTemplate:__name((r=>As(r,s)),"repositoryCreationTemplate")})),"de_UpdateRepositoryCreationTemplateResponse");var fs=__name((r=>({httpStatusCode:r.statusCode,requestId:r.headers["x-amzn-requestid"]??r.headers["x-amzn-request-id"]??r.headers["x-amz-request-id"],extendedRequestId:r.headers["x-amz-id-2"],cfId:r.headers["x-amz-cf-id"]})),"deserializeMetadata");var Es=(0,x.withBaseException)(M);var Cs=__name((async(r,s,i,a,A)=>{const{hostname:c,protocol:l="https",port:d,path:u}=await r.endpoint();const p={protocol:l,hostname:c,port:d,method:"POST",path:u.endsWith("/")?u.slice(0,-1)+i:u+i,headers:s};if(a!==void 0){p.hostname=a}if(A!==void 0){p.body=A}return new N.HttpRequest(p)}),"buildHttpRpcRequest");function sharedHeaders(r){return{"content-type":"application/x-amz-json-1.1","x-amz-target":`AmazonEC2ContainerRegistry_V20150921.${r}`}}__name(sharedHeaders,"sharedHeaders");var ys=class extends(x.Command.classBuilder().ep(v).m((function(r,s,i,a){return[(0,O.getSerdePlugin)(i,this.serialize,this.deserialize),(0,B.getEndpointPlugin)(i,r.getEndpointParameterInstructions())]})).s("AmazonEC2ContainerRegistry_V20150921","BatchCheckLayerAvailability",{}).n("ECRClient","BatchCheckLayerAvailabilityCommand").f(void 0,void 0).ser(Ve).de(Gt).build()){static{__name(this,"BatchCheckLayerAvailabilityCommand")}};var Is=class extends(x.Command.classBuilder().ep(v).m((function(r,s,i,a){return[(0,O.getSerdePlugin)(i,this.serialize,this.deserialize),(0,B.getEndpointPlugin)(i,r.getEndpointParameterInstructions())]})).s("AmazonEC2ContainerRegistry_V20150921","BatchDeleteImage",{}).n("ECRClient","BatchDeleteImageCommand").f(void 0,void 0).ser(je).de(qt).build()){static{__name(this,"BatchDeleteImageCommand")}};var Bs=class extends(x.Command.classBuilder().ep(v).m((function(r,s,i,a){return[(0,O.getSerdePlugin)(i,this.serialize,this.deserialize),(0,B.getEndpointPlugin)(i,r.getEndpointParameterInstructions())]})).s("AmazonEC2ContainerRegistry_V20150921","BatchGetImage",{}).n("ECRClient","BatchGetImageCommand").f(void 0,void 0).ser(ze).de(Vt).build()){static{__name(this,"BatchGetImageCommand")}};var bs=class extends(x.Command.classBuilder().ep(v).m((function(r,s,i,a){return[(0,O.getSerdePlugin)(i,this.serialize,this.deserialize),(0,B.getEndpointPlugin)(i,r.getEndpointParameterInstructions())]})).s("AmazonEC2ContainerRegistry_V20150921","BatchGetRepositoryScanningConfiguration",{}).n("ECRClient","BatchGetRepositoryScanningConfigurationCommand").f(void 0,void 0).ser(Ye).de(jt).build()){static{__name(this,"BatchGetRepositoryScanningConfigurationCommand")}};var Qs=class extends(x.Command.classBuilder().ep(v).m((function(r,s,i,a){return[(0,O.getSerdePlugin)(i,this.serialize,this.deserialize),(0,B.getEndpointPlugin)(i,r.getEndpointParameterInstructions())]})).s("AmazonEC2ContainerRegistry_V20150921","CompleteLayerUpload",{}).n("ECRClient","CompleteLayerUploadCommand").f(void 0,void 0).ser(Je).de(zt).build()){static{__name(this,"CompleteLayerUploadCommand")}};var ws=class extends(x.Command.classBuilder().ep(v).m((function(r,s,i,a){return[(0,O.getSerdePlugin)(i,this.serialize,this.deserialize),(0,B.getEndpointPlugin)(i,r.getEndpointParameterInstructions())]})).s("AmazonEC2ContainerRegistry_V20150921","CreatePullThroughCacheRule",{}).n("ECRClient","CreatePullThroughCacheRuleCommand").f(void 0,void 0).ser(We).de(Yt).build()){static{__name(this,"CreatePullThroughCacheRuleCommand")}};var vs=class extends(x.Command.classBuilder().ep(v).m((function(r,s,i,a){return[(0,O.getSerdePlugin)(i,this.serialize,this.deserialize),(0,B.getEndpointPlugin)(i,r.getEndpointParameterInstructions())]})).s("AmazonEC2ContainerRegistry_V20150921","CreateRepository",{}).n("ECRClient","CreateRepositoryCommand").f(void 0,void 0).ser(Xe).de(Jt).build()){static{__name(this,"CreateRepositoryCommand")}};var Ss=class extends(x.Command.classBuilder().ep(v).m((function(r,s,i,a){return[(0,O.getSerdePlugin)(i,this.serialize,this.deserialize),(0,B.getEndpointPlugin)(i,r.getEndpointParameterInstructions())]})).s("AmazonEC2ContainerRegistry_V20150921","CreateRepositoryCreationTemplate",{}).n("ECRClient","CreateRepositoryCreationTemplateCommand").f(void 0,void 0).ser($e).de(Wt).build()){static{__name(this,"CreateRepositoryCreationTemplateCommand")}};var Rs=class extends(x.Command.classBuilder().ep(v).m((function(r,s,i,a){return[(0,O.getSerdePlugin)(i,this.serialize,this.deserialize),(0,B.getEndpointPlugin)(i,r.getEndpointParameterInstructions())]})).s("AmazonEC2ContainerRegistry_V20150921","DeleteLifecyclePolicy",{}).n("ECRClient","DeleteLifecyclePolicyCommand").f(void 0,void 0).ser(Ke).de(Xt).build()){static{__name(this,"DeleteLifecyclePolicyCommand")}};var Ns=class extends(x.Command.classBuilder().ep(v).m((function(r,s,i,a){return[(0,O.getSerdePlugin)(i,this.serialize,this.deserialize),(0,B.getEndpointPlugin)(i,r.getEndpointParameterInstructions())]})).s("AmazonEC2ContainerRegistry_V20150921","DeletePullThroughCacheRule",{}).n("ECRClient","DeletePullThroughCacheRuleCommand").f(void 0,void 0).ser(Ze).de($t).build()){static{__name(this,"DeletePullThroughCacheRuleCommand")}};var xs=class extends(x.Command.classBuilder().ep(v).m((function(r,s,i,a){return[(0,O.getSerdePlugin)(i,this.serialize,this.deserialize),(0,B.getEndpointPlugin)(i,r.getEndpointParameterInstructions())]})).s("AmazonEC2ContainerRegistry_V20150921","DeleteRegistryPolicy",{}).n("ECRClient","DeleteRegistryPolicyCommand").f(void 0,void 0).ser(et).de(Kt).build()){static{__name(this,"DeleteRegistryPolicyCommand")}};var Ds=class extends(x.Command.classBuilder().ep(v).m((function(r,s,i,a){return[(0,O.getSerdePlugin)(i,this.serialize,this.deserialize),(0,B.getEndpointPlugin)(i,r.getEndpointParameterInstructions())]})).s("AmazonEC2ContainerRegistry_V20150921","DeleteRepository",{}).n("ECRClient","DeleteRepositoryCommand").f(void 0,void 0).ser(tt).de(Zt).build()){static{__name(this,"DeleteRepositoryCommand")}};var ks=class extends(x.Command.classBuilder().ep(v).m((function(r,s,i,a){return[(0,O.getSerdePlugin)(i,this.serialize,this.deserialize),(0,B.getEndpointPlugin)(i,r.getEndpointParameterInstructions())]})).s("AmazonEC2ContainerRegistry_V20150921","DeleteRepositoryCreationTemplate",{}).n("ECRClient","DeleteRepositoryCreationTemplateCommand").f(void 0,void 0).ser(rt).de(er).build()){static{__name(this,"DeleteRepositoryCreationTemplateCommand")}};var Ts=class extends(x.Command.classBuilder().ep(v).m((function(r,s,i,a){return[(0,O.getSerdePlugin)(i,this.serialize,this.deserialize),(0,B.getEndpointPlugin)(i,r.getEndpointParameterInstructions())]})).s("AmazonEC2ContainerRegistry_V20150921","DeleteRepositoryPolicy",{}).n("ECRClient","DeleteRepositoryPolicyCommand").f(void 0,void 0).ser(nt).de(tr).build()){static{__name(this,"DeleteRepositoryPolicyCommand")}};var _s=class extends(x.Command.classBuilder().ep(v).m((function(r,s,i,a){return[(0,O.getSerdePlugin)(i,this.serialize,this.deserialize),(0,B.getEndpointPlugin)(i,r.getEndpointParameterInstructions())]})).s("AmazonEC2ContainerRegistry_V20150921","DescribeImageReplicationStatus",{}).n("ECRClient","DescribeImageReplicationStatusCommand").f(void 0,void 0).ser(st).de(rr).build()){static{__name(this,"DescribeImageReplicationStatusCommand")}};var Ps=class extends(x.Command.classBuilder().ep(v).m((function(r,s,i,a){return[(0,O.getSerdePlugin)(i,this.serialize,this.deserialize),(0,B.getEndpointPlugin)(i,r.getEndpointParameterInstructions())]})).s("AmazonEC2ContainerRegistry_V20150921","DescribeImageScanFindings",{}).n("ECRClient","DescribeImageScanFindingsCommand").f(void 0,void 0).ser(ot).de(sr).build()){static{__name(this,"DescribeImageScanFindingsCommand")}};var Os=class extends(x.Command.classBuilder().ep(v).m((function(r,s,i,a){return[(0,O.getSerdePlugin)(i,this.serialize,this.deserialize),(0,B.getEndpointPlugin)(i,r.getEndpointParameterInstructions())]})).s("AmazonEC2ContainerRegistry_V20150921","DescribeImages",{}).n("ECRClient","DescribeImagesCommand").f(void 0,void 0).ser(it).de(nr).build()){static{__name(this,"DescribeImagesCommand")}};var Fs=class extends(x.Command.classBuilder().ep(v).m((function(r,s,i,a){return[(0,O.getSerdePlugin)(i,this.serialize,this.deserialize),(0,B.getEndpointPlugin)(i,r.getEndpointParameterInstructions())]})).s("AmazonEC2ContainerRegistry_V20150921","DescribePullThroughCacheRules",{}).n("ECRClient","DescribePullThroughCacheRulesCommand").f(void 0,void 0).ser(At).de(ir).build()){static{__name(this,"DescribePullThroughCacheRulesCommand")}};var Ls=class extends(x.Command.classBuilder().ep(v).m((function(r,s,i,a){return[(0,O.getSerdePlugin)(i,this.serialize,this.deserialize),(0,B.getEndpointPlugin)(i,r.getEndpointParameterInstructions())]})).s("AmazonEC2ContainerRegistry_V20150921","DescribeRegistry",{}).n("ECRClient","DescribeRegistryCommand").f(void 0,void 0).ser(ct).de(or).build()){static{__name(this,"DescribeRegistryCommand")}};var Ms=class extends(x.Command.classBuilder().ep(v).m((function(r,s,i,a){return[(0,O.getSerdePlugin)(i,this.serialize,this.deserialize),(0,B.getEndpointPlugin)(i,r.getEndpointParameterInstructions())]})).s("AmazonEC2ContainerRegistry_V20150921","DescribeRepositories",{}).n("ECRClient","DescribeRepositoriesCommand").f(void 0,void 0).ser(dt).de(ar).build()){static{__name(this,"DescribeRepositoriesCommand")}};var Us=class extends(x.Command.classBuilder().ep(v).m((function(r,s,i,a){return[(0,O.getSerdePlugin)(i,this.serialize,this.deserialize),(0,B.getEndpointPlugin)(i,r.getEndpointParameterInstructions())]})).s("AmazonEC2ContainerRegistry_V20150921","DescribeRepositoryCreationTemplates",{}).n("ECRClient","DescribeRepositoryCreationTemplatesCommand").f(void 0,void 0).ser(ut).de(Ar).build()){static{__name(this,"DescribeRepositoryCreationTemplatesCommand")}};var Hs=class extends(x.Command.classBuilder().ep(v).m((function(r,s,i,a){return[(0,O.getSerdePlugin)(i,this.serialize,this.deserialize),(0,B.getEndpointPlugin)(i,r.getEndpointParameterInstructions())]})).s("AmazonEC2ContainerRegistry_V20150921","GetAccountSetting",{}).n("ECRClient","GetAccountSettingCommand").f(void 0,void 0).ser(pt).de(cr).build()){static{__name(this,"GetAccountSettingCommand")}};var Gs=class extends(x.Command.classBuilder().ep(v).m((function(r,s,i,a){return[(0,O.getSerdePlugin)(i,this.serialize,this.deserialize),(0,B.getEndpointPlugin)(i,r.getEndpointParameterInstructions())]})).s("AmazonEC2ContainerRegistry_V20150921","GetAuthorizationToken",{}).n("ECRClient","GetAuthorizationTokenCommand").f(void 0,void 0).ser(ht).de(lr).build()){static{__name(this,"GetAuthorizationTokenCommand")}};var qs=class extends(x.Command.classBuilder().ep(v).m((function(r,s,i,a){return[(0,O.getSerdePlugin)(i,this.serialize,this.deserialize),(0,B.getEndpointPlugin)(i,r.getEndpointParameterInstructions())]})).s("AmazonEC2ContainerRegistry_V20150921","GetDownloadUrlForLayer",{}).n("ECRClient","GetDownloadUrlForLayerCommand").f(void 0,void 0).ser(mt).de(dr).build()){static{__name(this,"GetDownloadUrlForLayerCommand")}};var Vs=class extends(x.Command.classBuilder().ep(v).m((function(r,s,i,a){return[(0,O.getSerdePlugin)(i,this.serialize,this.deserialize),(0,B.getEndpointPlugin)(i,r.getEndpointParameterInstructions())]})).s("AmazonEC2ContainerRegistry_V20150921","GetLifecyclePolicy",{}).n("ECRClient","GetLifecyclePolicyCommand").f(void 0,void 0).ser(ft).de(ur).build()){static{__name(this,"GetLifecyclePolicyCommand")}};var js=class extends(x.Command.classBuilder().ep(v).m((function(r,s,i,a){return[(0,O.getSerdePlugin)(i,this.serialize,this.deserialize),(0,B.getEndpointPlugin)(i,r.getEndpointParameterInstructions())]})).s("AmazonEC2ContainerRegistry_V20150921","GetLifecyclePolicyPreview",{}).n("ECRClient","GetLifecyclePolicyPreviewCommand").f(void 0,void 0).ser(Et).de(pr).build()){static{__name(this,"GetLifecyclePolicyPreviewCommand")}};var zs=class extends(x.Command.classBuilder().ep(v).m((function(r,s,i,a){return[(0,O.getSerdePlugin)(i,this.serialize,this.deserialize),(0,B.getEndpointPlugin)(i,r.getEndpointParameterInstructions())]})).s("AmazonEC2ContainerRegistry_V20150921","GetRegistryPolicy",{}).n("ECRClient","GetRegistryPolicyCommand").f(void 0,void 0).ser(Ct).de(gr).build()){static{__name(this,"GetRegistryPolicyCommand")}};var Ys=class extends(x.Command.classBuilder().ep(v).m((function(r,s,i,a){return[(0,O.getSerdePlugin)(i,this.serialize,this.deserialize),(0,B.getEndpointPlugin)(i,r.getEndpointParameterInstructions())]})).s("AmazonEC2ContainerRegistry_V20150921","GetRegistryScanningConfiguration",{}).n("ECRClient","GetRegistryScanningConfigurationCommand").f(void 0,void 0).ser(yt).de(hr).build()){static{__name(this,"GetRegistryScanningConfigurationCommand")}};var Js=class extends(x.Command.classBuilder().ep(v).m((function(r,s,i,a){return[(0,O.getSerdePlugin)(i,this.serialize,this.deserialize),(0,B.getEndpointPlugin)(i,r.getEndpointParameterInstructions())]})).s("AmazonEC2ContainerRegistry_V20150921","GetRepositoryPolicy",{}).n("ECRClient","GetRepositoryPolicyCommand").f(void 0,void 0).ser(It).de(mr).build()){static{__name(this,"GetRepositoryPolicyCommand")}};var Ws=class extends(x.Command.classBuilder().ep(v).m((function(r,s,i,a){return[(0,O.getSerdePlugin)(i,this.serialize,this.deserialize),(0,B.getEndpointPlugin)(i,r.getEndpointParameterInstructions())]})).s("AmazonEC2ContainerRegistry_V20150921","InitiateLayerUpload",{}).n("ECRClient","InitiateLayerUploadCommand").f(void 0,void 0).ser(Bt).de(fr).build()){static{__name(this,"InitiateLayerUploadCommand")}};var Xs=class extends(x.Command.classBuilder().ep(v).m((function(r,s,i,a){return[(0,O.getSerdePlugin)(i,this.serialize,this.deserialize),(0,B.getEndpointPlugin)(i,r.getEndpointParameterInstructions())]})).s("AmazonEC2ContainerRegistry_V20150921","ListImages",{}).n("ECRClient","ListImagesCommand").f(void 0,void 0).ser(bt).de(Er).build()){static{__name(this,"ListImagesCommand")}};var $s=class extends(x.Command.classBuilder().ep(v).m((function(r,s,i,a){return[(0,O.getSerdePlugin)(i,this.serialize,this.deserialize),(0,B.getEndpointPlugin)(i,r.getEndpointParameterInstructions())]})).s("AmazonEC2ContainerRegistry_V20150921","ListTagsForResource",{}).n("ECRClient","ListTagsForResourceCommand").f(void 0,void 0).ser(Qt).de(Cr).build()){static{__name(this,"ListTagsForResourceCommand")}};var Ks=class extends(x.Command.classBuilder().ep(v).m((function(r,s,i,a){return[(0,O.getSerdePlugin)(i,this.serialize,this.deserialize),(0,B.getEndpointPlugin)(i,r.getEndpointParameterInstructions())]})).s("AmazonEC2ContainerRegistry_V20150921","PutAccountSetting",{}).n("ECRClient","PutAccountSettingCommand").f(void 0,void 0).ser(wt).de(yr).build()){static{__name(this,"PutAccountSettingCommand")}};var Zs=class extends(x.Command.classBuilder().ep(v).m((function(r,s,i,a){return[(0,O.getSerdePlugin)(i,this.serialize,this.deserialize),(0,B.getEndpointPlugin)(i,r.getEndpointParameterInstructions())]})).s("AmazonEC2ContainerRegistry_V20150921","PutImage",{}).n("ECRClient","PutImageCommand").f(void 0,void 0).ser(vt).de(Ir).build()){static{__name(this,"PutImageCommand")}};var ei=class extends(x.Command.classBuilder().ep(v).m((function(r,s,i,a){return[(0,O.getSerdePlugin)(i,this.serialize,this.deserialize),(0,B.getEndpointPlugin)(i,r.getEndpointParameterInstructions())]})).s("AmazonEC2ContainerRegistry_V20150921","PutImageScanningConfiguration",{}).n("ECRClient","PutImageScanningConfigurationCommand").f(void 0,void 0).ser(St).de(Br).build()){static{__name(this,"PutImageScanningConfigurationCommand")}};var ti=class extends(x.Command.classBuilder().ep(v).m((function(r,s,i,a){return[(0,O.getSerdePlugin)(i,this.serialize,this.deserialize),(0,B.getEndpointPlugin)(i,r.getEndpointParameterInstructions())]})).s("AmazonEC2ContainerRegistry_V20150921","PutImageTagMutability",{}).n("ECRClient","PutImageTagMutabilityCommand").f(void 0,void 0).ser(Rt).de(br).build()){static{__name(this,"PutImageTagMutabilityCommand")}};var ri=class extends(x.Command.classBuilder().ep(v).m((function(r,s,i,a){return[(0,O.getSerdePlugin)(i,this.serialize,this.deserialize),(0,B.getEndpointPlugin)(i,r.getEndpointParameterInstructions())]})).s("AmazonEC2ContainerRegistry_V20150921","PutLifecyclePolicy",{}).n("ECRClient","PutLifecyclePolicyCommand").f(void 0,void 0).ser(Nt).de(Qr).build()){static{__name(this,"PutLifecyclePolicyCommand")}};var ni=class extends(x.Command.classBuilder().ep(v).m((function(r,s,i,a){return[(0,O.getSerdePlugin)(i,this.serialize,this.deserialize),(0,B.getEndpointPlugin)(i,r.getEndpointParameterInstructions())]})).s("AmazonEC2ContainerRegistry_V20150921","PutRegistryPolicy",{}).n("ECRClient","PutRegistryPolicyCommand").f(void 0,void 0).ser(xt).de(wr).build()){static{__name(this,"PutRegistryPolicyCommand")}};var si=class extends(x.Command.classBuilder().ep(v).m((function(r,s,i,a){return[(0,O.getSerdePlugin)(i,this.serialize,this.deserialize),(0,B.getEndpointPlugin)(i,r.getEndpointParameterInstructions())]})).s("AmazonEC2ContainerRegistry_V20150921","PutRegistryScanningConfiguration",{}).n("ECRClient","PutRegistryScanningConfigurationCommand").f(void 0,void 0).ser(Dt).de(vr).build()){static{__name(this,"PutRegistryScanningConfigurationCommand")}};var ii=class extends(x.Command.classBuilder().ep(v).m((function(r,s,i,a){return[(0,O.getSerdePlugin)(i,this.serialize,this.deserialize),(0,B.getEndpointPlugin)(i,r.getEndpointParameterInstructions())]})).s("AmazonEC2ContainerRegistry_V20150921","PutReplicationConfiguration",{}).n("ECRClient","PutReplicationConfigurationCommand").f(void 0,void 0).ser(kt).de(Sr).build()){static{__name(this,"PutReplicationConfigurationCommand")}};var oi=class extends(x.Command.classBuilder().ep(v).m((function(r,s,i,a){return[(0,O.getSerdePlugin)(i,this.serialize,this.deserialize),(0,B.getEndpointPlugin)(i,r.getEndpointParameterInstructions())]})).s("AmazonEC2ContainerRegistry_V20150921","SetRepositoryPolicy",{}).n("ECRClient","SetRepositoryPolicyCommand").f(void 0,void 0).ser(Tt).de(Rr).build()){static{__name(this,"SetRepositoryPolicyCommand")}};var ai=class extends(x.Command.classBuilder().ep(v).m((function(r,s,i,a){return[(0,O.getSerdePlugin)(i,this.serialize,this.deserialize),(0,B.getEndpointPlugin)(i,r.getEndpointParameterInstructions())]})).s("AmazonEC2ContainerRegistry_V20150921","StartImageScan",{}).n("ECRClient","StartImageScanCommand").f(void 0,void 0).ser(_t).de(Nr).build()){static{__name(this,"StartImageScanCommand")}};var Ai=class extends(x.Command.classBuilder().ep(v).m((function(r,s,i,a){return[(0,O.getSerdePlugin)(i,this.serialize,this.deserialize),(0,B.getEndpointPlugin)(i,r.getEndpointParameterInstructions())]})).s("AmazonEC2ContainerRegistry_V20150921","StartLifecyclePolicyPreview",{}).n("ECRClient","StartLifecyclePolicyPreviewCommand").f(void 0,void 0).ser(Pt).de(xr).build()){static{__name(this,"StartLifecyclePolicyPreviewCommand")}};var ci=class extends(x.Command.classBuilder().ep(v).m((function(r,s,i,a){return[(0,O.getSerdePlugin)(i,this.serialize,this.deserialize),(0,B.getEndpointPlugin)(i,r.getEndpointParameterInstructions())]})).s("AmazonEC2ContainerRegistry_V20150921","TagResource",{}).n("ECRClient","TagResourceCommand").f(void 0,void 0).ser(Ot).de(Dr).build()){static{__name(this,"TagResourceCommand")}};var li=class extends(x.Command.classBuilder().ep(v).m((function(r,s,i,a){return[(0,O.getSerdePlugin)(i,this.serialize,this.deserialize),(0,B.getEndpointPlugin)(i,r.getEndpointParameterInstructions())]})).s("AmazonEC2ContainerRegistry_V20150921","UntagResource",{}).n("ECRClient","UntagResourceCommand").f(void 0,void 0).ser(Ft).de(kr).build()){static{__name(this,"UntagResourceCommand")}};var di=class extends(x.Command.classBuilder().ep(v).m((function(r,s,i,a){return[(0,O.getSerdePlugin)(i,this.serialize,this.deserialize),(0,B.getEndpointPlugin)(i,r.getEndpointParameterInstructions())]})).s("AmazonEC2ContainerRegistry_V20150921","UpdatePullThroughCacheRule",{}).n("ECRClient","UpdatePullThroughCacheRuleCommand").f(void 0,void 0).ser(Lt).de(Tr).build()){static{__name(this,"UpdatePullThroughCacheRuleCommand")}};var ui=class extends(x.Command.classBuilder().ep(v).m((function(r,s,i,a){return[(0,O.getSerdePlugin)(i,this.serialize,this.deserialize),(0,B.getEndpointPlugin)(i,r.getEndpointParameterInstructions())]})).s("AmazonEC2ContainerRegistry_V20150921","UpdateRepositoryCreationTemplate",{}).n("ECRClient","UpdateRepositoryCreationTemplateCommand").f(void 0,void 0).ser(Mt).de(_r).build()){static{__name(this,"UpdateRepositoryCreationTemplateCommand")}};var pi=class extends(x.Command.classBuilder().ep(v).m((function(r,s,i,a){return[(0,O.getSerdePlugin)(i,this.serialize,this.deserialize),(0,B.getEndpointPlugin)(i,r.getEndpointParameterInstructions())]})).s("AmazonEC2ContainerRegistry_V20150921","UploadLayerPart",{}).n("ECRClient","UploadLayerPartCommand").f(void 0,void 0).ser(Ut).de(Pr).build()){static{__name(this,"UploadLayerPartCommand")}};var gi=class extends(x.Command.classBuilder().ep(v).m((function(r,s,i,a){return[(0,O.getSerdePlugin)(i,this.serialize,this.deserialize),(0,B.getEndpointPlugin)(i,r.getEndpointParameterInstructions())]})).s("AmazonEC2ContainerRegistry_V20150921","ValidatePullThroughCacheRule",{}).n("ECRClient","ValidatePullThroughCacheRuleCommand").f(void 0,void 0).ser(Ht).de(Or).build()){static{__name(this,"ValidatePullThroughCacheRuleCommand")}};var hi={BatchCheckLayerAvailabilityCommand:ys,BatchDeleteImageCommand:Is,BatchGetImageCommand:Bs,BatchGetRepositoryScanningConfigurationCommand:bs,CompleteLayerUploadCommand:Qs,CreatePullThroughCacheRuleCommand:ws,CreateRepositoryCommand:vs,CreateRepositoryCreationTemplateCommand:Ss,DeleteLifecyclePolicyCommand:Rs,DeletePullThroughCacheRuleCommand:Ns,DeleteRegistryPolicyCommand:xs,DeleteRepositoryCommand:Ds,DeleteRepositoryCreationTemplateCommand:ks,DeleteRepositoryPolicyCommand:Ts,DescribeImageReplicationStatusCommand:_s,DescribeImagesCommand:Os,DescribeImageScanFindingsCommand:Ps,DescribePullThroughCacheRulesCommand:Fs,DescribeRegistryCommand:Ls,DescribeRepositoriesCommand:Ms,DescribeRepositoryCreationTemplatesCommand:Us,GetAccountSettingCommand:Hs,GetAuthorizationTokenCommand:Gs,GetDownloadUrlForLayerCommand:qs,GetLifecyclePolicyCommand:Vs,GetLifecyclePolicyPreviewCommand:js,GetRegistryPolicyCommand:zs,GetRegistryScanningConfigurationCommand:Ys,GetRepositoryPolicyCommand:Js,InitiateLayerUploadCommand:Ws,ListImagesCommand:Xs,ListTagsForResourceCommand:$s,PutAccountSettingCommand:Ks,PutImageCommand:Zs,PutImageScanningConfigurationCommand:ei,PutImageTagMutabilityCommand:ti,PutLifecyclePolicyCommand:ri,PutRegistryPolicyCommand:ni,PutRegistryScanningConfigurationCommand:si,PutReplicationConfigurationCommand:ii,SetRepositoryPolicyCommand:oi,StartImageScanCommand:ai,StartLifecyclePolicyPreviewCommand:Ai,TagResourceCommand:ci,UntagResourceCommand:li,UpdatePullThroughCacheRuleCommand:di,UpdateRepositoryCreationTemplateCommand:ui,UploadLayerPartCommand:pi,ValidatePullThroughCacheRuleCommand:gi};var mi=class extends P{static{__name(this,"ECR")}};(0,x.createAggregatedClient)(hi,mi);var fi=(0,y.createPaginator)(P,Ps,"nextToken","nextToken","maxResults");var Ei=(0,y.createPaginator)(P,Os,"nextToken","nextToken","maxResults");var Ci=(0,y.createPaginator)(P,Fs,"nextToken","nextToken","maxResults");var yi=(0,y.createPaginator)(P,Ms,"nextToken","nextToken","maxResults");var Ii=(0,y.createPaginator)(P,Us,"nextToken","nextToken","maxResults");var Bi=(0,y.createPaginator)(P,js,"nextToken","nextToken","maxResults");var bi=(0,y.createPaginator)(P,Xs,"nextToken","nextToken","maxResults");var Qi=i(78011);var wi=__name((async(r,s)=>{let i;try{const a=await r.send(new Ps(s));i=a;try{const r=__name((()=>a.imageScanStatus.status),"returnComparator");if(r()==="COMPLETE"){return{state:Qi.WaiterState.SUCCESS,reason:i}}}catch(r){}try{const r=__name((()=>a.imageScanStatus.status),"returnComparator");if(r()==="FAILED"){return{state:Qi.WaiterState.FAILURE,reason:i}}}catch(r){}}catch(r){i=r}return{state:Qi.WaiterState.RETRY,reason:i}}),"checkState");var vi=__name((async(r,s)=>{const i={minDelay:5,maxDelay:120};return(0,Qi.createWaiter)({...i,...r},s,wi)}),"waitForImageScanComplete");var Si=__name((async(r,s)=>{const i={minDelay:5,maxDelay:120};const a=await(0,Qi.createWaiter)({...i,...r},s,wi);return(0,Qi.checkExceptions)(a)}),"waitUntilImageScanComplete");var Ri=__name((async(r,s)=>{let i;try{const a=await r.send(new js(s));i=a;try{const r=__name((()=>a.status),"returnComparator");if(r()==="COMPLETE"){return{state:Qi.WaiterState.SUCCESS,reason:i}}}catch(r){}try{const r=__name((()=>a.status),"returnComparator");if(r()==="FAILED"){return{state:Qi.WaiterState.FAILURE,reason:i}}}catch(r){}}catch(r){i=r}return{state:Qi.WaiterState.RETRY,reason:i}}),"checkState");var Ni=__name((async(r,s)=>{const i={minDelay:5,maxDelay:120};return(0,Qi.createWaiter)({...i,...r},s,Ri)}),"waitForLifecyclePolicyPreviewComplete");var xi=__name((async(r,s)=>{const i={minDelay:5,maxDelay:120};const a=await(0,Qi.createWaiter)({...i,...r},s,Ri);return(0,Qi.checkExceptions)(a)}),"waitUntilLifecyclePolicyPreviewComplete");0&&0},869:(r,s,i)=>{"use strict";Object.defineProperty(s,"__esModule",{value:true});s.getRuntimeConfig=void 0;const a=i(4351);const A=a.__importDefault(i(4289));const c=i(59963);const l=i(75531);const d=i(98095);const u=i(53098);const p=i(3081);const g=i(96039);const h=i(33461);const C=i(20258);const y=i(68075);const I=i(84902);const B=i(70542);const b=i(63570);const Q=i(72429);const w=i(63570);const getRuntimeConfig=r=>{(0,w.emitWarningIfUnsupportedVersion)(process.version);const s=(0,Q.resolveDefaultsModeConfig)(r);const defaultConfigProvider=()=>s().then(b.loadConfigsForDefaultMode);const i=(0,B.getRuntimeConfig)(r);(0,c.emitWarningIfUnsupportedVersion)(process.version);const a={profile:r?.profile};return{...i,...r,runtime:"node",defaultsMode:s,bodyLengthChecker:r?.bodyLengthChecker??y.calculateBodyLength,credentialDefaultProvider:r?.credentialDefaultProvider??l.defaultProvider,defaultUserAgentProvider:r?.defaultUserAgentProvider??(0,d.createDefaultUserAgentProvider)({serviceId:i.serviceId,clientVersion:A.default.version}),maxAttempts:r?.maxAttempts??(0,h.loadConfig)(g.NODE_MAX_ATTEMPT_CONFIG_OPTIONS,r),region:r?.region??(0,h.loadConfig)(u.NODE_REGION_CONFIG_OPTIONS,{...u.NODE_REGION_CONFIG_FILE_OPTIONS,...a}),requestHandler:C.NodeHttpHandler.create(r?.requestHandler??defaultConfigProvider),retryMode:r?.retryMode??(0,h.loadConfig)({...g.NODE_RETRY_MODE_CONFIG_OPTIONS,default:async()=>(await defaultConfigProvider()).retryMode||I.DEFAULT_RETRY_MODE},r),sha256:r?.sha256??p.Hash.bind(null,"sha256"),streamCollector:r?.streamCollector??C.streamCollector,useDualstackEndpoint:r?.useDualstackEndpoint??(0,h.loadConfig)(u.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS,a),useFipsEndpoint:r?.useFipsEndpoint??(0,h.loadConfig)(u.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS,a),userAgentAppId:r?.userAgentAppId??(0,h.loadConfig)(d.NODE_APP_ID_CONFIG_OPTIONS,a)}};s.getRuntimeConfig=getRuntimeConfig},70542:(r,s,i)=>{"use strict";Object.defineProperty(s,"__esModule",{value:true});s.getRuntimeConfig=void 0;const a=i(59963);const A=i(63570);const c=i(14681);const l=i(75600);const d=i(41895);const u=i(14682);const p=i(61610);const getRuntimeConfig=r=>({apiVersion:"2015-09-21",base64Decoder:r?.base64Decoder??l.fromBase64,base64Encoder:r?.base64Encoder??l.toBase64,disableHostPrefix:r?.disableHostPrefix??false,endpointProvider:r?.endpointProvider??p.defaultEndpointResolver,extensions:r?.extensions??[],httpAuthSchemeProvider:r?.httpAuthSchemeProvider??u.defaultECRHttpAuthSchemeProvider,httpAuthSchemes:r?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:r=>r.getIdentityProvider("aws.auth#sigv4"),signer:new a.AwsSdkSigV4Signer}],logger:r?.logger??new A.NoOpLogger,serviceId:r?.serviceId??"ECR",urlParser:r?.urlParser??c.parseUrl,utf8Decoder:r?.utf8Decoder??d.fromUtf8,utf8Encoder:r?.utf8Encoder??d.toUtf8});s.getRuntimeConfig=getRuntimeConfig},49344:(r,s,i)=>{"use strict";Object.defineProperty(s,"__esModule",{value:true});s.resolveHttpAuthSchemeConfig=s.defaultSSOHttpAuthSchemeProvider=s.defaultSSOHttpAuthSchemeParametersProvider=void 0;const a=i(59963);const A=i(2390);const defaultSSOHttpAuthSchemeParametersProvider=async(r,s,i)=>({operation:(0,A.getSmithyContext)(s).operation,region:await(0,A.normalizeProvider)(r.region)()||(()=>{throw new Error("expected `region` to be configured for `aws.auth#sigv4`")})()});s.defaultSSOHttpAuthSchemeParametersProvider=defaultSSOHttpAuthSchemeParametersProvider;function createAwsAuthSigv4HttpAuthOption(r){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"awsssoportal",region:r.region},propertiesExtractor:(r,s)=>({signingProperties:{config:r,context:s}})}}function createSmithyApiNoAuthHttpAuthOption(r){return{schemeId:"smithy.api#noAuth"}}const defaultSSOHttpAuthSchemeProvider=r=>{const s=[];switch(r.operation){case"GetRoleCredentials":{s.push(createSmithyApiNoAuthHttpAuthOption(r));break}case"ListAccountRoles":{s.push(createSmithyApiNoAuthHttpAuthOption(r));break}case"ListAccounts":{s.push(createSmithyApiNoAuthHttpAuthOption(r));break}case"Logout":{s.push(createSmithyApiNoAuthHttpAuthOption(r));break}default:{s.push(createAwsAuthSigv4HttpAuthOption(r))}}return s};s.defaultSSOHttpAuthSchemeProvider=defaultSSOHttpAuthSchemeProvider;const resolveHttpAuthSchemeConfig=r=>{const s=(0,a.resolveAwsSdkSigV4Config)(r);return{...s}};s.resolveHttpAuthSchemeConfig=resolveHttpAuthSchemeConfig},30898:(r,s,i)=>{"use strict";Object.defineProperty(s,"__esModule",{value:true});s.defaultEndpointResolver=void 0;const a=i(13350);const A=i(45473);const c=i(13341);const l=new A.EndpointCache({size:50,params:["Endpoint","Region","UseDualStack","UseFIPS"]});const defaultEndpointResolver=(r,s={})=>l.get(r,(()=>(0,A.resolveEndpoint)(c.ruleSet,{endpointParams:r,logger:s.logger})));s.defaultEndpointResolver=defaultEndpointResolver;A.customEndpointFunctions.aws=a.awsEndpointFunctions},13341:(r,s)=>{"use strict";Object.defineProperty(s,"__esModule",{value:true});s.ruleSet=void 0;const i="required",a="fn",A="argv",c="ref";const l=true,d="isSet",u="booleanEquals",p="error",g="endpoint",h="tree",C="PartitionResult",y="getAttr",I={[i]:false,type:"String"},B={[i]:true,default:false,type:"Boolean"},b={[c]:"Endpoint"},Q={[a]:u,[A]:[{[c]:"UseFIPS"},true]},w={[a]:u,[A]:[{[c]:"UseDualStack"},true]},v={},S={[a]:y,[A]:[{[c]:C},"supportsFIPS"]},R={[c]:C},N={[a]:u,[A]:[true,{[a]:y,[A]:[R,"supportsDualStack"]}]},x=[Q],D=[w],k=[{[c]:"Region"}];const T={version:"1.0",parameters:{Region:I,UseDualStack:B,UseFIPS:B,Endpoint:I},rules:[{conditions:[{[a]:d,[A]:[b]}],rules:[{conditions:x,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:p},{conditions:D,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:p},{endpoint:{url:b,properties:v,headers:v},type:g}],type:h},{conditions:[{[a]:d,[A]:k}],rules:[{conditions:[{[a]:"aws.partition",[A]:k,assign:C}],rules:[{conditions:[Q,w],rules:[{conditions:[{[a]:u,[A]:[l,S]},N],rules:[{endpoint:{url:"https://portal.sso-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:v,headers:v},type:g}],type:h},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:p}],type:h},{conditions:x,rules:[{conditions:[{[a]:u,[A]:[S,l]}],rules:[{conditions:[{[a]:"stringEquals",[A]:[{[a]:y,[A]:[R,"name"]},"aws-us-gov"]}],endpoint:{url:"https://portal.sso.{Region}.amazonaws.com",properties:v,headers:v},type:g},{endpoint:{url:"https://portal.sso-fips.{Region}.{PartitionResult#dnsSuffix}",properties:v,headers:v},type:g}],type:h},{error:"FIPS is enabled but this partition does not support FIPS",type:p}],type:h},{conditions:D,rules:[{conditions:[N],rules:[{endpoint:{url:"https://portal.sso.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:v,headers:v},type:g}],type:h},{error:"DualStack is enabled but this partition does not support DualStack",type:p}],type:h},{endpoint:{url:"https://portal.sso.{Region}.{PartitionResult#dnsSuffix}",properties:v,headers:v},type:g}],type:h}],type:h},{error:"Invalid Configuration: Missing Region",type:p}]};s.ruleSet=T},82666:(r,s,i)=>{"use strict";var a=Object.defineProperty;var A=Object.getOwnPropertyDescriptor;var c=Object.getOwnPropertyNames;var l=Object.prototype.hasOwnProperty;var __name=(r,s)=>a(r,"name",{value:s,configurable:true});var __export=(r,s)=>{for(var i in s)a(r,i,{get:s[i],enumerable:true})};var __copyProps=(r,s,i,d)=>{if(s&&typeof s==="object"||typeof s==="function"){for(let u of c(s))if(!l.call(r,u)&&u!==i)a(r,u,{get:()=>s[u],enumerable:!(d=A(s,u))||d.enumerable})}return r};var __toCommonJS=r=>__copyProps(a({},"__esModule",{value:true}),r);var d={};__export(d,{GetRoleCredentialsCommand:()=>Ie,GetRoleCredentialsRequestFilterSensitiveLog:()=>q,GetRoleCredentialsResponseFilterSensitiveLog:()=>j,InvalidRequestException:()=>M,ListAccountRolesCommand:()=>Be,ListAccountRolesRequestFilterSensitiveLog:()=>z,ListAccountsCommand:()=>be,ListAccountsRequestFilterSensitiveLog:()=>Y,LogoutCommand:()=>Qe,LogoutRequestFilterSensitiveLog:()=>J,ResourceNotFoundException:()=>U,RoleCredentialsFilterSensitiveLog:()=>V,SSO:()=>ve,SSOClient:()=>P,SSOServiceException:()=>L,TooManyRequestsException:()=>H,UnauthorizedException:()=>G,__Client:()=>x.Client,paginateListAccountRoles:()=>Se,paginateListAccounts:()=>Re});r.exports=__toCommonJS(d);var u=i(22545);var p=i(20014);var g=i(85525);var h=i(64688);var C=i(53098);var y=i(55829);var I=i(82800);var B=i(82918);var b=i(96039);var Q=i(49344);var w=__name((r=>({...r,useDualstackEndpoint:r.useDualstackEndpoint??false,useFipsEndpoint:r.useFipsEndpoint??false,defaultSigningName:"awsssoportal"})),"resolveClientEndpointParameters");var v={UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}};var S=i(19756);var R=i(18156);var N=i(64418);var x=i(63570);var D=__name((r=>{const s=r.httpAuthSchemes;let i=r.httpAuthSchemeProvider;let a=r.credentials;return{setHttpAuthScheme(r){const i=s.findIndex((s=>s.schemeId===r.schemeId));if(i===-1){s.push(r)}else{s.splice(i,1,r)}},httpAuthSchemes(){return s},setHttpAuthSchemeProvider(r){i=r},httpAuthSchemeProvider(){return i},setCredentials(r){a=r},credentials(){return a}}}),"getHttpAuthExtensionConfiguration");var k=__name((r=>({httpAuthSchemes:r.httpAuthSchemes(),httpAuthSchemeProvider:r.httpAuthSchemeProvider(),credentials:r.credentials()})),"resolveHttpAuthRuntimeConfig");var T=__name((r=>r),"asPartial");var _=__name(((r,s)=>{const i={...T((0,R.getAwsRegionExtensionConfiguration)(r)),...T((0,x.getDefaultExtensionConfiguration)(r)),...T((0,N.getHttpHandlerExtensionConfiguration)(r)),...T(D(r))};s.forEach((r=>r.configure(i)));return{...r,...(0,R.resolveAwsRegionExtensionConfiguration)(i),...(0,x.resolveDefaultRuntimeConfig)(i),...(0,N.resolveHttpHandlerRuntimeConfig)(i),...k(i)}}),"resolveRuntimeExtensions");var P=class extends x.Client{static{__name(this,"SSOClient")}config;constructor(...[r]){const s=(0,S.getRuntimeConfig)(r||{});const i=w(s);const a=(0,h.resolveUserAgentConfig)(i);const A=(0,b.resolveRetryConfig)(a);const c=(0,C.resolveRegionConfig)(A);const l=(0,u.resolveHostHeaderConfig)(c);const d=(0,B.resolveEndpointConfig)(l);const v=(0,Q.resolveHttpAuthSchemeConfig)(d);const R=_(v,r?.extensions||[]);super(R);this.config=R;this.middlewareStack.use((0,h.getUserAgentPlugin)(this.config));this.middlewareStack.use((0,b.getRetryPlugin)(this.config));this.middlewareStack.use((0,I.getContentLengthPlugin)(this.config));this.middlewareStack.use((0,u.getHostHeaderPlugin)(this.config));this.middlewareStack.use((0,p.getLoggerPlugin)(this.config));this.middlewareStack.use((0,g.getRecursionDetectionPlugin)(this.config));this.middlewareStack.use((0,y.getHttpAuthSchemeEndpointRuleSetPlugin)(this.config,{httpAuthSchemeParametersProvider:Q.defaultSSOHttpAuthSchemeParametersProvider,identityProviderConfigProvider:async r=>new y.DefaultIdentityProviderConfig({"aws.auth#sigv4":r.credentials})}));this.middlewareStack.use((0,y.getHttpSigningPlugin)(this.config))}destroy(){super.destroy()}};var O=i(81238);var L=class _SSOServiceException extends x.ServiceException{static{__name(this,"SSOServiceException")}constructor(r){super(r);Object.setPrototypeOf(this,_SSOServiceException.prototype)}};var M=class _InvalidRequestException extends L{static{__name(this,"InvalidRequestException")}name="InvalidRequestException";$fault="client";constructor(r){super({name:"InvalidRequestException",$fault:"client",...r});Object.setPrototypeOf(this,_InvalidRequestException.prototype)}};var U=class _ResourceNotFoundException extends L{static{__name(this,"ResourceNotFoundException")}name="ResourceNotFoundException";$fault="client";constructor(r){super({name:"ResourceNotFoundException",$fault:"client",...r});Object.setPrototypeOf(this,_ResourceNotFoundException.prototype)}};var H=class _TooManyRequestsException extends L{static{__name(this,"TooManyRequestsException")}name="TooManyRequestsException";$fault="client";constructor(r){super({name:"TooManyRequestsException",$fault:"client",...r});Object.setPrototypeOf(this,_TooManyRequestsException.prototype)}};var G=class _UnauthorizedException extends L{static{__name(this,"UnauthorizedException")}name="UnauthorizedException";$fault="client";constructor(r){super({name:"UnauthorizedException",$fault:"client",...r});Object.setPrototypeOf(this,_UnauthorizedException.prototype)}};var q=__name((r=>({...r,...r.accessToken&&{accessToken:x.SENSITIVE_STRING}})),"GetRoleCredentialsRequestFilterSensitiveLog");var V=__name((r=>({...r,...r.secretAccessKey&&{secretAccessKey:x.SENSITIVE_STRING},...r.sessionToken&&{sessionToken:x.SENSITIVE_STRING}})),"RoleCredentialsFilterSensitiveLog");var j=__name((r=>({...r,...r.roleCredentials&&{roleCredentials:V(r.roleCredentials)}})),"GetRoleCredentialsResponseFilterSensitiveLog");var z=__name((r=>({...r,...r.accessToken&&{accessToken:x.SENSITIVE_STRING}})),"ListAccountRolesRequestFilterSensitiveLog");var Y=__name((r=>({...r,...r.accessToken&&{accessToken:x.SENSITIVE_STRING}})),"ListAccountsRequestFilterSensitiveLog");var J=__name((r=>({...r,...r.accessToken&&{accessToken:x.SENSITIVE_STRING}})),"LogoutRequestFilterSensitiveLog");var W=i(59963);var X=__name((async(r,s)=>{const i=(0,y.requestBuilder)(r,s);const a=(0,x.map)({},x.isSerializableHeaderValue,{[ye]:r[ue]});i.bp("/federation/credentials");const A=(0,x.map)({[Ce]:[,(0,x.expectNonNull)(r[Ee],`roleName`)],[pe]:[,(0,x.expectNonNull)(r[de],`accountId`)]});let c;i.m("GET").h(a).q(A).b(c);return i.build()}),"se_GetRoleCredentialsCommand");var $=__name((async(r,s)=>{const i=(0,y.requestBuilder)(r,s);const a=(0,x.map)({},x.isSerializableHeaderValue,{[ye]:r[ue]});i.bp("/assignment/roles");const A=(0,x.map)({[fe]:[,r[me]],[he]:[()=>r.maxResults!==void 0,()=>r[ge].toString()],[pe]:[,(0,x.expectNonNull)(r[de],`accountId`)]});let c;i.m("GET").h(a).q(A).b(c);return i.build()}),"se_ListAccountRolesCommand");var K=__name((async(r,s)=>{const i=(0,y.requestBuilder)(r,s);const a=(0,x.map)({},x.isSerializableHeaderValue,{[ye]:r[ue]});i.bp("/assignment/accounts");const A=(0,x.map)({[fe]:[,r[me]],[he]:[()=>r.maxResults!==void 0,()=>r[ge].toString()]});let c;i.m("GET").h(a).q(A).b(c);return i.build()}),"se_ListAccountsCommand");var Z=__name((async(r,s)=>{const i=(0,y.requestBuilder)(r,s);const a=(0,x.map)({},x.isSerializableHeaderValue,{[ye]:r[ue]});i.bp("/logout");let A;i.m("POST").h(a).b(A);return i.build()}),"se_LogoutCommand");var ee=__name((async(r,s)=>{if(r.statusCode!==200&&r.statusCode>=300){return se(r,s)}const i=(0,x.map)({$metadata:le(r)});const a=(0,x.expectNonNull)((0,x.expectObject)(await(0,W.parseJsonBody)(r.body,s)),"body");const A=(0,x.take)(a,{roleCredentials:x._json});Object.assign(i,A);return i}),"de_GetRoleCredentialsCommand");var te=__name((async(r,s)=>{if(r.statusCode!==200&&r.statusCode>=300){return se(r,s)}const i=(0,x.map)({$metadata:le(r)});const a=(0,x.expectNonNull)((0,x.expectObject)(await(0,W.parseJsonBody)(r.body,s)),"body");const A=(0,x.take)(a,{nextToken:x.expectString,roleList:x._json});Object.assign(i,A);return i}),"de_ListAccountRolesCommand");var re=__name((async(r,s)=>{if(r.statusCode!==200&&r.statusCode>=300){return se(r,s)}const i=(0,x.map)({$metadata:le(r)});const a=(0,x.expectNonNull)((0,x.expectObject)(await(0,W.parseJsonBody)(r.body,s)),"body");const A=(0,x.take)(a,{accountList:x._json,nextToken:x.expectString});Object.assign(i,A);return i}),"de_ListAccountsCommand");var ne=__name((async(r,s)=>{if(r.statusCode!==200&&r.statusCode>=300){return se(r,s)}const i=(0,x.map)({$metadata:le(r)});await(0,x.collectBody)(r.body,s);return i}),"de_LogoutCommand");var se=__name((async(r,s)=>{const i={...r,body:await(0,W.parseJsonErrorBody)(r.body,s)};const a=(0,W.loadRestJsonErrorCode)(r,i.body);switch(a){case"InvalidRequestException":case"com.amazonaws.sso#InvalidRequestException":throw await oe(i,s);case"ResourceNotFoundException":case"com.amazonaws.sso#ResourceNotFoundException":throw await ae(i,s);case"TooManyRequestsException":case"com.amazonaws.sso#TooManyRequestsException":throw await Ae(i,s);case"UnauthorizedException":case"com.amazonaws.sso#UnauthorizedException":throw await ce(i,s);default:const A=i.body;return ie({output:r,parsedBody:A,errorCode:a})}}),"de_CommandError");var ie=(0,x.withBaseException)(L);var oe=__name((async(r,s)=>{const i=(0,x.map)({});const a=r.body;const A=(0,x.take)(a,{message:x.expectString});Object.assign(i,A);const c=new M({$metadata:le(r),...i});return(0,x.decorateServiceException)(c,r.body)}),"de_InvalidRequestExceptionRes");var ae=__name((async(r,s)=>{const i=(0,x.map)({});const a=r.body;const A=(0,x.take)(a,{message:x.expectString});Object.assign(i,A);const c=new U({$metadata:le(r),...i});return(0,x.decorateServiceException)(c,r.body)}),"de_ResourceNotFoundExceptionRes");var Ae=__name((async(r,s)=>{const i=(0,x.map)({});const a=r.body;const A=(0,x.take)(a,{message:x.expectString});Object.assign(i,A);const c=new H({$metadata:le(r),...i});return(0,x.decorateServiceException)(c,r.body)}),"de_TooManyRequestsExceptionRes");var ce=__name((async(r,s)=>{const i=(0,x.map)({});const a=r.body;const A=(0,x.take)(a,{message:x.expectString});Object.assign(i,A);const c=new G({$metadata:le(r),...i});return(0,x.decorateServiceException)(c,r.body)}),"de_UnauthorizedExceptionRes");var le=__name((r=>({httpStatusCode:r.statusCode,requestId:r.headers["x-amzn-requestid"]??r.headers["x-amzn-request-id"]??r.headers["x-amz-request-id"],extendedRequestId:r.headers["x-amz-id-2"],cfId:r.headers["x-amz-cf-id"]})),"deserializeMetadata");var de="accountId";var ue="accessToken";var pe="account_id";var ge="maxResults";var he="max_result";var me="nextToken";var fe="next_token";var Ee="roleName";var Ce="role_name";var ye="x-amz-sso_bearer_token";var Ie=class extends(x.Command.classBuilder().ep(v).m((function(r,s,i,a){return[(0,O.getSerdePlugin)(i,this.serialize,this.deserialize),(0,B.getEndpointPlugin)(i,r.getEndpointParameterInstructions())]})).s("SWBPortalService","GetRoleCredentials",{}).n("SSOClient","GetRoleCredentialsCommand").f(q,j).ser(X).de(ee).build()){static{__name(this,"GetRoleCredentialsCommand")}};var Be=class extends(x.Command.classBuilder().ep(v).m((function(r,s,i,a){return[(0,O.getSerdePlugin)(i,this.serialize,this.deserialize),(0,B.getEndpointPlugin)(i,r.getEndpointParameterInstructions())]})).s("SWBPortalService","ListAccountRoles",{}).n("SSOClient","ListAccountRolesCommand").f(z,void 0).ser($).de(te).build()){static{__name(this,"ListAccountRolesCommand")}};var be=class extends(x.Command.classBuilder().ep(v).m((function(r,s,i,a){return[(0,O.getSerdePlugin)(i,this.serialize,this.deserialize),(0,B.getEndpointPlugin)(i,r.getEndpointParameterInstructions())]})).s("SWBPortalService","ListAccounts",{}).n("SSOClient","ListAccountsCommand").f(Y,void 0).ser(K).de(re).build()){static{__name(this,"ListAccountsCommand")}};var Qe=class extends(x.Command.classBuilder().ep(v).m((function(r,s,i,a){return[(0,O.getSerdePlugin)(i,this.serialize,this.deserialize),(0,B.getEndpointPlugin)(i,r.getEndpointParameterInstructions())]})).s("SWBPortalService","Logout",{}).n("SSOClient","LogoutCommand").f(J,void 0).ser(Z).de(ne).build()){static{__name(this,"LogoutCommand")}};var we={GetRoleCredentialsCommand:Ie,ListAccountRolesCommand:Be,ListAccountsCommand:be,LogoutCommand:Qe};var ve=class extends P{static{__name(this,"SSO")}};(0,x.createAggregatedClient)(we,ve);var Se=(0,y.createPaginator)(P,Be,"nextToken","nextToken","maxResults");var Re=(0,y.createPaginator)(P,be,"nextToken","nextToken","maxResults");0&&0},19756:(r,s,i)=>{"use strict";Object.defineProperty(s,"__esModule",{value:true});s.getRuntimeConfig=void 0;const a=i(4351);const A=a.__importDefault(i(91092));const c=i(59963);const l=i(98095);const d=i(53098);const u=i(3081);const p=i(96039);const g=i(33461);const h=i(20258);const C=i(68075);const y=i(84902);const I=i(44809);const B=i(63570);const b=i(72429);const Q=i(63570);const getRuntimeConfig=r=>{(0,Q.emitWarningIfUnsupportedVersion)(process.version);const s=(0,b.resolveDefaultsModeConfig)(r);const defaultConfigProvider=()=>s().then(B.loadConfigsForDefaultMode);const i=(0,I.getRuntimeConfig)(r);(0,c.emitWarningIfUnsupportedVersion)(process.version);const a={profile:r?.profile};return{...i,...r,runtime:"node",defaultsMode:s,bodyLengthChecker:r?.bodyLengthChecker??C.calculateBodyLength,defaultUserAgentProvider:r?.defaultUserAgentProvider??(0,l.createDefaultUserAgentProvider)({serviceId:i.serviceId,clientVersion:A.default.version}),maxAttempts:r?.maxAttempts??(0,g.loadConfig)(p.NODE_MAX_ATTEMPT_CONFIG_OPTIONS,r),region:r?.region??(0,g.loadConfig)(d.NODE_REGION_CONFIG_OPTIONS,{...d.NODE_REGION_CONFIG_FILE_OPTIONS,...a}),requestHandler:h.NodeHttpHandler.create(r?.requestHandler??defaultConfigProvider),retryMode:r?.retryMode??(0,g.loadConfig)({...p.NODE_RETRY_MODE_CONFIG_OPTIONS,default:async()=>(await defaultConfigProvider()).retryMode||y.DEFAULT_RETRY_MODE},r),sha256:r?.sha256??u.Hash.bind(null,"sha256"),streamCollector:r?.streamCollector??h.streamCollector,useDualstackEndpoint:r?.useDualstackEndpoint??(0,g.loadConfig)(d.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS,a),useFipsEndpoint:r?.useFipsEndpoint??(0,g.loadConfig)(d.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS,a),userAgentAppId:r?.userAgentAppId??(0,g.loadConfig)(l.NODE_APP_ID_CONFIG_OPTIONS,a)}};s.getRuntimeConfig=getRuntimeConfig},44809:(r,s,i)=>{"use strict";Object.defineProperty(s,"__esModule",{value:true});s.getRuntimeConfig=void 0;const a=i(59963);const A=i(55829);const c=i(63570);const l=i(14681);const d=i(75600);const u=i(41895);const p=i(49344);const g=i(30898);const getRuntimeConfig=r=>({apiVersion:"2019-06-10",base64Decoder:r?.base64Decoder??d.fromBase64,base64Encoder:r?.base64Encoder??d.toBase64,disableHostPrefix:r?.disableHostPrefix??false,endpointProvider:r?.endpointProvider??g.defaultEndpointResolver,extensions:r?.extensions??[],httpAuthSchemeProvider:r?.httpAuthSchemeProvider??p.defaultSSOHttpAuthSchemeProvider,httpAuthSchemes:r?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:r=>r.getIdentityProvider("aws.auth#sigv4"),signer:new a.AwsSdkSigV4Signer},{schemeId:"smithy.api#noAuth",identityProvider:r=>r.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),signer:new A.NoAuthSigner}],logger:r?.logger??new c.NoOpLogger,serviceId:r?.serviceId??"SSO",urlParser:r?.urlParser??l.parseUrl,utf8Decoder:r?.utf8Decoder??u.fromUtf8,utf8Encoder:r?.utf8Encoder??u.toUtf8});s.getRuntimeConfig=getRuntimeConfig},59963:(r,s,i)=>{"use strict";Object.defineProperty(s,"__esModule",{value:true});const a=i(4351);a.__exportStar(i(2825),s);a.__exportStar(i(27862),s);a.__exportStar(i(50785),s)},2825:r=>{"use strict";var s=Object.defineProperty;var i=Object.getOwnPropertyDescriptor;var a=Object.getOwnPropertyNames;var A=Object.prototype.hasOwnProperty;var __name=(r,i)=>s(r,"name",{value:i,configurable:true});var __export=(r,i)=>{for(var a in i)s(r,a,{get:i[a],enumerable:true})};var __copyProps=(r,c,l,d)=>{if(c&&typeof c==="object"||typeof c==="function"){for(let u of a(c))if(!A.call(r,u)&&u!==l)s(r,u,{get:()=>c[u],enumerable:!(d=i(c,u))||d.enumerable})}return r};var __toCommonJS=r=>__copyProps(s({},"__esModule",{value:true}),r);var c={};__export(c,{emitWarningIfUnsupportedVersion:()=>d,setCredentialFeature:()=>setCredentialFeature,setFeature:()=>setFeature,state:()=>l});r.exports=__toCommonJS(c);var l={warningEmitted:false};var d=__name((r=>{if(r&&!l.warningEmitted&&parseInt(r.substring(1,r.indexOf(".")))<18){l.warningEmitted=true;process.emitWarning(`NodeDeprecationWarning: The AWS SDK for JavaScript (v3) will\nno longer support Node.js 16.x on January 6, 2025.\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/74kJMmI`)}}),"emitWarningIfUnsupportedVersion");function setCredentialFeature(r,s,i){if(!r.$source){r.$source={}}r.$source[s]=i;return r}__name(setCredentialFeature,"setCredentialFeature");function setFeature(r,s,i){if(!r.__aws_sdk_context){r.__aws_sdk_context={features:{}}}else if(!r.__aws_sdk_context.features){r.__aws_sdk_context.features={}}r.__aws_sdk_context.features[s]=i}__name(setFeature,"setFeature");0&&0},27862:(r,s,i)=>{"use strict";var a=Object.defineProperty;var A=Object.getOwnPropertyDescriptor;var c=Object.getOwnPropertyNames;var l=Object.prototype.hasOwnProperty;var __name=(r,s)=>a(r,"name",{value:s,configurable:true});var __export=(r,s)=>{for(var i in s)a(r,i,{get:s[i],enumerable:true})};var __copyProps=(r,s,i,d)=>{if(s&&typeof s==="object"||typeof s==="function"){for(let u of c(s))if(!l.call(r,u)&&u!==i)a(r,u,{get:()=>s[u],enumerable:!(d=A(s,u))||d.enumerable})}return r};var __toCommonJS=r=>__copyProps(a({},"__esModule",{value:true}),r);var d={};__export(d,{AWSSDKSigV4Signer:()=>Q,AwsSdkSigV4ASigner:()=>v,AwsSdkSigV4Signer:()=>b,NODE_SIGV4A_CONFIG_OPTIONS:()=>x,resolveAWSSDKSigV4Config:()=>P,resolveAwsSdkSigV4AConfig:()=>N,resolveAwsSdkSigV4Config:()=>_,validateSigningProperties:()=>B});r.exports=__toCommonJS(d);var u=i(64418);var p=i(64418);var g=__name((r=>p.HttpResponse.isInstance(r)?r.headers?.date??r.headers?.Date:void 0),"getDateHeader");var h=__name((r=>new Date(Date.now()+r)),"getSkewCorrectedDate");var C=__name(((r,s)=>Math.abs(h(s).getTime()-r)>=3e5),"isClockSkewed");var y=__name(((r,s)=>{const i=Date.parse(r);if(C(i,s)){return i-Date.now()}return s}),"getUpdatedSystemClockOffset");var I=__name(((r,s)=>{if(!s){throw new Error(`Property \`${r}\` is not resolved for AWS SDK SigV4Auth`)}return s}),"throwSigningPropertyError");var B=__name((async r=>{const s=I("context",r.context);const i=I("config",r.config);const a=s.endpointV2?.properties?.authSchemes?.[0];const A=I("signer",i.signer);const c=await A(a);const l=r?.signingRegion;const d=r?.signingRegionSet;const u=r?.signingName;return{config:i,signer:c,signingRegion:l,signingRegionSet:d,signingName:u}}),"validateSigningProperties");var b=class{static{__name(this,"AwsSdkSigV4Signer")}async sign(r,s,i){if(!u.HttpRequest.isInstance(r)){throw new Error("The request is not an instance of `HttpRequest` and cannot be signed")}const a=await B(i);const{config:A,signer:c}=a;let{signingRegion:l,signingName:d}=a;const p=i.context;if(p?.authSchemes?.length??0>1){const[r,s]=p.authSchemes;if(r?.name==="sigv4a"&&s?.name==="sigv4"){l=s?.signingRegion??l;d=s?.signingName??d}}const g=await c.sign(r,{signingDate:h(A.systemClockOffset),signingRegion:l,signingService:d});return g}errorHandler(r){return s=>{const i=s.ServerTime??g(s.$response);if(i){const a=I("config",r.config);const A=a.systemClockOffset;a.systemClockOffset=y(i,a.systemClockOffset);const c=a.systemClockOffset!==A;if(c&&s.$metadata){s.$metadata.clockSkewCorrected=true}}throw s}}successHandler(r,s){const i=g(r);if(i){const r=I("config",s.config);r.systemClockOffset=y(i,r.systemClockOffset)}}};var Q=b;var w=i(64418);var v=class extends b{static{__name(this,"AwsSdkSigV4ASigner")}async sign(r,s,i){if(!w.HttpRequest.isInstance(r)){throw new Error("The request is not an instance of `HttpRequest` and cannot be signed")}const{config:a,signer:A,signingRegion:c,signingRegionSet:l,signingName:d}=await B(i);const u=await(a.sigv4aSigningRegionSet?.());const p=(u??l??[c]).join(",");const g=await A.sign(r,{signingDate:h(a.systemClockOffset),signingRegion:p,signingService:d});return g}};var S=i(55829);var R=i(79721);var N=__name((r=>{r.sigv4aSigningRegionSet=(0,S.normalizeProvider)(r.sigv4aSigningRegionSet);return r}),"resolveAwsSdkSigV4AConfig");var x={environmentVariableSelector(r){if(r.AWS_SIGV4A_SIGNING_REGION_SET){return r.AWS_SIGV4A_SIGNING_REGION_SET.split(",").map((r=>r.trim()))}throw new R.ProviderError("AWS_SIGV4A_SIGNING_REGION_SET not set in env.",{tryNextLink:true})},configFileSelector(r){if(r.sigv4a_signing_region_set){return(r.sigv4a_signing_region_set??"").split(",").map((r=>r.trim()))}throw new R.ProviderError("sigv4a_signing_region_set not set in profile.",{tryNextLink:true})},default:void 0};var D=i(2825);var k=i(55829);var T=i(11528);var _=__name((r=>{let s=false;let i;if(r.credentials){s=true;i=(0,k.memoizeIdentityProvider)(r.credentials,k.isIdentityExpired,k.doesIdentityRequireRefresh)}if(!i){if(r.credentialDefaultProvider){i=(0,k.normalizeProvider)(r.credentialDefaultProvider(Object.assign({},r,{parentClientConfig:r})))}else{i=__name((async()=>{throw new Error("`credentials` is missing")}),"credentialsProvider")}}const a=__name((async()=>i({callerClientConfig:r})),"boundCredentialsProvider");const{signingEscapePath:A=true,systemClockOffset:c=r.systemClockOffset||0,sha256:l}=r;let d;if(r.signer){d=(0,k.normalizeProvider)(r.signer)}else if(r.regionInfoProvider){d=__name((()=>(0,k.normalizeProvider)(r.region)().then((async s=>[await r.regionInfoProvider(s,{useFipsEndpoint:await r.useFipsEndpoint(),useDualstackEndpoint:await r.useDualstackEndpoint()})||{},s])).then((([s,i])=>{const{signingRegion:c,signingService:d}=s;r.signingRegion=r.signingRegion||c||i;r.signingName=r.signingName||d||r.serviceId;const u={...r,credentials:a,region:r.signingRegion,service:r.signingName,sha256:l,uriEscapePath:A};const p=r.signerConstructor||T.SignatureV4;return new p(u)}))),"signer")}else{d=__name((async s=>{s=Object.assign({},{name:"sigv4",signingName:r.signingName||r.defaultSigningName,signingRegion:await(0,k.normalizeProvider)(r.region)(),properties:{}},s);const i=s.signingRegion;const c=s.signingName;r.signingRegion=r.signingRegion||i;r.signingName=r.signingName||c||r.serviceId;const d={...r,credentials:a,region:r.signingRegion,service:r.signingName,sha256:l,uriEscapePath:A};const u=r.signerConstructor||T.SignatureV4;return new u(d)}),"signer")}return{...r,systemClockOffset:c,signingEscapePath:A,credentials:s?async()=>a().then((r=>(0,D.setCredentialFeature)(r,"CREDENTIALS_CODE","e"))):a,signer:d}}),"resolveAwsSdkSigV4Config");var P=_;0&&0},50785:(r,s,i)=>{"use strict";var a=Object.defineProperty;var A=Object.getOwnPropertyDescriptor;var c=Object.getOwnPropertyNames;var l=Object.prototype.hasOwnProperty;var __name=(r,s)=>a(r,"name",{value:s,configurable:true});var __export=(r,s)=>{for(var i in s)a(r,i,{get:s[i],enumerable:true})};var __copyProps=(r,s,i,d)=>{if(s&&typeof s==="object"||typeof s==="function"){for(let u of c(s))if(!l.call(r,u)&&u!==i)a(r,u,{get:()=>s[u],enumerable:!(d=A(s,u))||d.enumerable})}return r};var __toCommonJS=r=>__copyProps(a({},"__esModule",{value:true}),r);var d={};__export(d,{_toBool:()=>p,_toNum:()=>g,_toStr:()=>u,awsExpectUnion:()=>C,loadRestJsonErrorCode:()=>Q,loadRestXmlErrorCode:()=>N,parseJsonBody:()=>B,parseJsonErrorBody:()=>b,parseXmlBody:()=>S,parseXmlErrorBody:()=>R});r.exports=__toCommonJS(d);var u=__name((r=>{if(r==null){return r}if(typeof r==="number"||typeof r==="bigint"){const s=new Error(`Received number ${r} where a string was expected.`);s.name="Warning";console.warn(s);return String(r)}if(typeof r==="boolean"){const s=new Error(`Received boolean ${r} where a string was expected.`);s.name="Warning";console.warn(s);return String(r)}return r}),"_toStr");var p=__name((r=>{if(r==null){return r}if(typeof r==="number"){}if(typeof r==="string"){const s=r.toLowerCase();if(r!==""&&s!=="false"&&s!=="true"){const s=new Error(`Received string "${r}" where a boolean was expected.`);s.name="Warning";console.warn(s)}return r!==""&&s!=="false"}return r}),"_toBool");var g=__name((r=>{if(r==null){return r}if(typeof r==="boolean"){}if(typeof r==="string"){const s=Number(r);if(s.toString()!==r){const s=new Error(`Received string "${r}" where a number was expected.`);s.name="Warning";console.warn(s);return r}return s}return r}),"_toNum");var h=i(63570);var C=__name((r=>{if(r==null){return void 0}if(typeof r==="object"&&"__type"in r){delete r.__type}return(0,h.expectUnion)(r)}),"awsExpectUnion");var y=i(63570);var I=__name(((r,s)=>(0,y.collectBody)(r,s).then((r=>s.utf8Encoder(r)))),"collectBodyString");var B=__name(((r,s)=>I(r,s).then((r=>{if(r.length){try{return JSON.parse(r)}catch(s){if(s?.name==="SyntaxError"){Object.defineProperty(s,"$responseBodyText",{value:r})}throw s}}return{}}))),"parseJsonBody");var b=__name((async(r,s)=>{const i=await B(r,s);i.message=i.message??i.Message;return i}),"parseJsonErrorBody");var Q=__name(((r,s)=>{const i=__name(((r,s)=>Object.keys(r).find((r=>r.toLowerCase()===s.toLowerCase()))),"findKey");const a=__name((r=>{let s=r;if(typeof s==="number"){s=s.toString()}if(s.indexOf(",")>=0){s=s.split(",")[0]}if(s.indexOf(":")>=0){s=s.split(":")[0]}if(s.indexOf("#")>=0){s=s.split("#")[1]}return s}),"sanitizeErrorCode");const A=i(r.headers,"x-amzn-errortype");if(A!==void 0){return a(r.headers[A])}if(s.code!==void 0){return a(s.code)}if(s["__type"]!==void 0){return a(s["__type"])}}),"loadRestJsonErrorCode");var w=i(63570);var v=i(12603);var S=__name(((r,s)=>I(r,s).then((r=>{if(r.length){const s=new v.XMLParser({attributeNamePrefix:"",htmlEntities:true,ignoreAttributes:false,ignoreDeclaration:true,parseTagValue:false,trimValues:false,tagValueProcessor:(r,s)=>s.trim()===""&&s.includes("\n")?"":void 0});s.addEntity("#xD","\r");s.addEntity("#10","\n");let i;try{i=s.parse(r,true)}catch(s){if(s&&typeof s==="object"){Object.defineProperty(s,"$responseBodyText",{value:r})}throw s}const a="#text";const A=Object.keys(i)[0];const c=i[A];if(c[a]){c[A]=c[a];delete c[a]}return(0,w.getValueFromTextNode)(c)}return{}}))),"parseXmlBody");var R=__name((async(r,s)=>{const i=await S(r,s);if(i.Error){i.Error.message=i.Error.message??i.Error.Message}return i}),"parseXmlErrorBody");var N=__name(((r,s)=>{if(s?.Error?.Code!==void 0){return s.Error.Code}if(s?.Code!==void 0){return s.Code}if(r.statusCode==404){return"NotFound"}}),"loadRestXmlErrorCode");0&&0},15972:(r,s,i)=>{"use strict";var a=Object.defineProperty;var A=Object.getOwnPropertyDescriptor;var c=Object.getOwnPropertyNames;var l=Object.prototype.hasOwnProperty;var __name=(r,s)=>a(r,"name",{value:s,configurable:true});var __export=(r,s)=>{for(var i in s)a(r,i,{get:s[i],enumerable:true})};var __copyProps=(r,s,i,d)=>{if(s&&typeof s==="object"||typeof s==="function"){for(let u of c(s))if(!l.call(r,u)&&u!==i)a(r,u,{get:()=>s[u],enumerable:!(d=A(s,u))||d.enumerable})}return r};var __toCommonJS=r=>__copyProps(a({},"__esModule",{value:true}),r);var d={};__export(d,{ENV_ACCOUNT_ID:()=>B,ENV_CREDENTIAL_SCOPE:()=>I,ENV_EXPIRATION:()=>y,ENV_KEY:()=>g,ENV_SECRET:()=>h,ENV_SESSION:()=>C,fromEnv:()=>b});r.exports=__toCommonJS(d);var u=i(2825);var p=i(79721);var g="AWS_ACCESS_KEY_ID";var h="AWS_SECRET_ACCESS_KEY";var C="AWS_SESSION_TOKEN";var y="AWS_CREDENTIAL_EXPIRATION";var I="AWS_CREDENTIAL_SCOPE";var B="AWS_ACCOUNT_ID";var b=__name((r=>async()=>{r?.logger?.debug("@aws-sdk/credential-provider-env - fromEnv");const s=process.env[g];const i=process.env[h];const a=process.env[C];const A=process.env[y];const c=process.env[I];const l=process.env[B];if(s&&i){const r={accessKeyId:s,secretAccessKey:i,...a&&{sessionToken:a},...A&&{expiration:new Date(A)},...c&&{credentialScope:c},...l&&{accountId:l}};(0,u.setCredentialFeature)(r,"CREDENTIALS_ENV_VARS","g");return r}throw new p.CredentialsProviderError("Unable to find environment variable credentials.",{logger:r?.logger})}),"fromEnv");0&&0},63757:(r,s,i)=>{"use strict";Object.defineProperty(s,"__esModule",{value:true});s.checkUrl=void 0;const a=i(79721);const A="127.0.0.0/8";const c="::1/128";const l="169.254.170.2";const d="169.254.170.23";const u="[fd00:ec2::23]";const checkUrl=(r,s)=>{if(r.protocol==="https:"){return}if(r.hostname===l||r.hostname===d||r.hostname===u){return}if(r.hostname.includes("[")){if(r.hostname==="[::1]"||r.hostname==="[0000:0000:0000:0000:0000:0000:0000:0001]"){return}}else{if(r.hostname==="localhost"){return}const s=r.hostname.split(".");const inRange=r=>{const s=parseInt(r,10);return 0<=s&&s<=255};if(s[0]==="127"&&inRange(s[1])&&inRange(s[2])&&inRange(s[3])&&s.length===4){return}}throw new a.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:s})};s.checkUrl=checkUrl},56070:(r,s,i)=>{"use strict";Object.defineProperty(s,"__esModule",{value:true});s.fromHttp=void 0;const a=i(4351);const A=i(2825);const c=i(20258);const l=i(79721);const d=a.__importDefault(i(73292));const u=i(63757);const p=i(79287);const g=i(79921);const h="AWS_CONTAINER_CREDENTIALS_RELATIVE_URI";const C="http://169.254.170.2";const y="AWS_CONTAINER_CREDENTIALS_FULL_URI";const I="AWS_CONTAINER_AUTHORIZATION_TOKEN_FILE";const B="AWS_CONTAINER_AUTHORIZATION_TOKEN";const fromHttp=(r={})=>{r.logger?.debug("@aws-sdk/credential-provider-http - fromHttp");let s;const i=r.awsContainerCredentialsRelativeUri??process.env[h];const a=r.awsContainerCredentialsFullUri??process.env[y];const b=r.awsContainerAuthorizationToken??process.env[B];const Q=r.awsContainerAuthorizationTokenFile??process.env[I];const w=r.logger?.constructor?.name==="NoOpLogger"||!r.logger?console.warn:r.logger.warn;if(i&&a){w("@aws-sdk/credential-provider-http: "+"you have set both awsContainerCredentialsRelativeUri and awsContainerCredentialsFullUri.");w("awsContainerCredentialsFullUri will take precedence.")}if(b&&Q){w("@aws-sdk/credential-provider-http: "+"you have set both awsContainerAuthorizationToken and awsContainerAuthorizationTokenFile.");w("awsContainerAuthorizationToken will take precedence.")}if(a){s=a}else if(i){s=`${C}${i}`}else{throw new l.CredentialsProviderError(`No HTTP credential provider host provided.\nSet AWS_CONTAINER_CREDENTIALS_FULL_URI or AWS_CONTAINER_CREDENTIALS_RELATIVE_URI.`,{logger:r.logger})}const v=new URL(s);(0,u.checkUrl)(v,r.logger);const S=new c.NodeHttpHandler({requestTimeout:r.timeout??1e3,connectionTimeout:r.timeout??1e3});return(0,g.retryWrapper)((async()=>{const s=(0,p.createGetRequest)(v);if(b){s.headers.Authorization=b}else if(Q){s.headers.Authorization=(await d.default.readFile(Q)).toString()}try{const r=await S.handle(s);return(0,p.getCredentials)(r.response).then((r=>(0,A.setCredentialFeature)(r,"CREDENTIALS_HTTP","z")))}catch(s){throw new l.CredentialsProviderError(String(s),{logger:r.logger})}}),r.maxRetries??3,r.timeout??1e3)};s.fromHttp=fromHttp},79287:(r,s,i)=>{"use strict";Object.defineProperty(s,"__esModule",{value:true});s.getCredentials=s.createGetRequest=void 0;const a=i(79721);const A=i(64418);const c=i(63570);const l=i(96607);function createGetRequest(r){return new A.HttpRequest({protocol:r.protocol,hostname:r.hostname,port:Number(r.port),path:r.pathname,query:Array.from(r.searchParams.entries()).reduce(((r,[s,i])=>{r[s]=i;return r}),{}),fragment:r.hash})}s.createGetRequest=createGetRequest;async function getCredentials(r,s){const i=(0,l.sdkStreamMixin)(r.body);const A=await i.transformToString();if(r.statusCode===200){const r=JSON.parse(A);if(typeof r.AccessKeyId!=="string"||typeof r.SecretAccessKey!=="string"||typeof r.Token!=="string"||typeof r.Expiration!=="string"){throw new a.CredentialsProviderError("HTTP credential provider response not of the required format, an object matching: "+"{ AccessKeyId: string, SecretAccessKey: string, Token: string, Expiration: string(rfc3339) }",{logger:s})}return{accessKeyId:r.AccessKeyId,secretAccessKey:r.SecretAccessKey,sessionToken:r.Token,expiration:(0,c.parseRfc3339DateTime)(r.Expiration)}}if(r.statusCode>=400&&r.statusCode<500){let i={};try{i=JSON.parse(A)}catch(r){}throw Object.assign(new a.CredentialsProviderError(`Server responded with status: ${r.statusCode}`,{logger:s}),{Code:i.Code,Message:i.Message})}throw new a.CredentialsProviderError(`Server responded with status: ${r.statusCode}`,{logger:s})}s.getCredentials=getCredentials},79921:(r,s)=>{"use strict";Object.defineProperty(s,"__esModule",{value:true});s.retryWrapper=void 0;const retryWrapper=(r,s,i)=>async()=>{for(let a=0;asetTimeout(r,i)))}}return await r()};s.retryWrapper=retryWrapper},17290:(r,s,i)=>{"use strict";Object.defineProperty(s,"__esModule",{value:true});s.fromHttp=void 0;var a=i(56070);Object.defineProperty(s,"fromHttp",{enumerable:true,get:function(){return a.fromHttp}})},74203:(r,s,i)=>{"use strict";var a=Object.create;var A=Object.defineProperty;var c=Object.getOwnPropertyDescriptor;var l=Object.getOwnPropertyNames;var d=Object.getPrototypeOf;var u=Object.prototype.hasOwnProperty;var __name=(r,s)=>A(r,"name",{value:s,configurable:true});var __export=(r,s)=>{for(var i in s)A(r,i,{get:s[i],enumerable:true})};var __copyProps=(r,s,i,a)=>{if(s&&typeof s==="object"||typeof s==="function"){for(let d of l(s))if(!u.call(r,d)&&d!==i)A(r,d,{get:()=>s[d],enumerable:!(a=c(s,d))||a.enumerable})}return r};var __toESM=(r,s,i)=>(i=r!=null?a(d(r)):{},__copyProps(s||!r||!r.__esModule?A(i,"default",{value:r,enumerable:true}):i,r));var __toCommonJS=r=>__copyProps(A({},"__esModule",{value:true}),r);var p={};__export(p,{fromIni:()=>O});r.exports=__toCommonJS(p);var g=i(43507);var h=i(2825);var C=i(79721);var y=__name(((r,s,a)=>{const A={EcsContainer:async r=>{const{fromHttp:s}=await Promise.resolve().then((()=>__toESM(i(17290))));const{fromContainerMetadata:A}=await Promise.resolve().then((()=>__toESM(i(7477))));a?.debug("@aws-sdk/credential-provider-ini - credential_source is EcsContainer");return async()=>(0,C.chain)(s(r??{}),A(r))().then(I)},Ec2InstanceMetadata:async r=>{a?.debug("@aws-sdk/credential-provider-ini - credential_source is Ec2InstanceMetadata");const{fromInstanceMetadata:s}=await Promise.resolve().then((()=>__toESM(i(7477))));return async()=>s(r)().then(I)},Environment:async r=>{a?.debug("@aws-sdk/credential-provider-ini - credential_source is Environment");const{fromEnv:s}=await Promise.resolve().then((()=>__toESM(i(15972))));return async()=>s(r)().then(I)}};if(r in A){return A[r]}else{throw new C.CredentialsProviderError(`Unsupported credential source in profile ${s}. Got ${r}, expected EcsContainer or Ec2InstanceMetadata or Environment.`,{logger:a})}}),"resolveCredentialSource");var I=__name((r=>(0,h.setCredentialFeature)(r,"CREDENTIALS_PROFILE_NAMED_PROVIDER","p")),"setNamedProvider");var B=__name(((r,{profile:s="default",logger:i}={})=>Boolean(r)&&typeof r==="object"&&typeof r.role_arn==="string"&&["undefined","string"].indexOf(typeof r.role_session_name)>-1&&["undefined","string"].indexOf(typeof r.external_id)>-1&&["undefined","string"].indexOf(typeof r.mfa_serial)>-1&&(b(r,{profile:s,logger:i})||Q(r,{profile:s,logger:i}))),"isAssumeRoleProfile");var b=__name(((r,{profile:s,logger:i})=>{const a=typeof r.source_profile==="string"&&typeof r.credential_source==="undefined";if(a){i?.debug?.(` ${s} isAssumeRoleWithSourceProfile source_profile=${r.source_profile}`)}return a}),"isAssumeRoleWithSourceProfile");var Q=__name(((r,{profile:s,logger:i})=>{const a=typeof r.credential_source==="string"&&typeof r.source_profile==="undefined";if(a){i?.debug?.(` ${s} isCredentialSourceProfile credential_source=${r.credential_source}`)}return a}),"isCredentialSourceProfile");var w=__name((async(r,s,a,A={})=>{a.logger?.debug("@aws-sdk/credential-provider-ini - resolveAssumeRoleCredentials (STS)");const c=s[r];const{source_profile:l,region:d}=c;if(!a.roleAssumer){const{getDefaultRoleAssumer:r}=await Promise.resolve().then((()=>__toESM(i(2273))));a.roleAssumer=r({...a.clientConfig,credentialProviderLogger:a.logger,parentClientConfig:{...a?.parentClientConfig,region:d??a?.parentClientConfig?.region}},a.clientPlugins)}if(l&&l in A){throw new C.CredentialsProviderError(`Detected a cycle attempting to resolve credentials for profile ${(0,g.getProfileName)(a)}. Profiles visited: `+Object.keys(A).join(", "),{logger:a.logger})}a.logger?.debug(`@aws-sdk/credential-provider-ini - finding credential resolver using ${l?`source_profile=[${l}]`:`profile=[${r}]`}`);const u=l?P(l,s,a,{...A,[l]:true},v(s[l]??{})):(await y(c.credential_source,r,a.logger)(a))();if(v(c)){return u.then((r=>(0,h.setCredentialFeature)(r,"CREDENTIALS_PROFILE_SOURCE_PROFILE","o")))}else{const s={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:i}=c;if(i){if(!a.mfaCodeProvider){throw new C.CredentialsProviderError(`Profile ${r} requires multi-factor authentication, but no MFA code callback was provided.`,{logger:a.logger,tryNextLink:false})}s.SerialNumber=i;s.TokenCode=await a.mfaCodeProvider(i)}const A=await u;return a.roleAssumer(A,s).then((r=>(0,h.setCredentialFeature)(r,"CREDENTIALS_PROFILE_SOURCE_PROFILE","o")))}}),"resolveAssumeRoleCredentials");var v=__name((r=>!r.role_arn&&!!r.credential_source),"isCredentialSourceWithoutRoleArn");var S=__name((r=>Boolean(r)&&typeof r==="object"&&typeof r.credential_process==="string"),"isProcessProfile");var R=__name((async(r,s)=>Promise.resolve().then((()=>__toESM(i(89969)))).then((({fromProcess:i})=>i({...r,profile:s})().then((r=>(0,h.setCredentialFeature)(r,"CREDENTIALS_PROFILE_PROCESS","v")))))),"resolveProcessCredentials");var N=__name((async(r,s,a={})=>{const{fromSSO:A}=await Promise.resolve().then((()=>__toESM(i(26414))));return A({profile:r,logger:a.logger,parentClientConfig:a.parentClientConfig,clientConfig:a.clientConfig})().then((r=>{if(s.sso_session){return(0,h.setCredentialFeature)(r,"CREDENTIALS_PROFILE_SSO","r")}else{return(0,h.setCredentialFeature)(r,"CREDENTIALS_PROFILE_SSO_LEGACY","t")}}))}),"resolveSsoCredentials");var x=__name((r=>r&&(typeof r.sso_start_url==="string"||typeof r.sso_account_id==="string"||typeof r.sso_session==="string"||typeof r.sso_region==="string"||typeof r.sso_role_name==="string")),"isSsoProfile");var D=__name((r=>Boolean(r)&&typeof r==="object"&&typeof r.aws_access_key_id==="string"&&typeof r.aws_secret_access_key==="string"&&["undefined","string"].indexOf(typeof r.aws_session_token)>-1&&["undefined","string"].indexOf(typeof r.aws_account_id)>-1),"isStaticCredsProfile");var k=__name((async(r,s)=>{s?.logger?.debug("@aws-sdk/credential-provider-ini - resolveStaticCredentials");const i={accessKeyId:r.aws_access_key_id,secretAccessKey:r.aws_secret_access_key,sessionToken:r.aws_session_token,...r.aws_credential_scope&&{credentialScope:r.aws_credential_scope},...r.aws_account_id&&{accountId:r.aws_account_id}};return(0,h.setCredentialFeature)(i,"CREDENTIALS_PROFILE","n")}),"resolveStaticCredentials");var T=__name((r=>Boolean(r)&&typeof r==="object"&&typeof r.web_identity_token_file==="string"&&typeof r.role_arn==="string"&&["undefined","string"].indexOf(typeof r.role_session_name)>-1),"isWebIdentityProfile");var _=__name((async(r,s)=>Promise.resolve().then((()=>__toESM(i(15646)))).then((({fromTokenFile:i})=>i({webIdentityTokenFile:r.web_identity_token_file,roleArn:r.role_arn,roleSessionName:r.role_session_name,roleAssumerWithWebIdentity:s.roleAssumerWithWebIdentity,logger:s.logger,parentClientConfig:s.parentClientConfig})().then((r=>(0,h.setCredentialFeature)(r,"CREDENTIALS_PROFILE_STS_WEB_ID_TOKEN","q")))))),"resolveWebIdentityCredentials");var P=__name((async(r,s,i,a={},A=false)=>{const c=s[r];if(Object.keys(a).length>0&&D(c)){return k(c,i)}if(A||B(c,{profile:r,logger:i.logger})){return w(r,s,i,a)}if(D(c)){return k(c,i)}if(T(c)){return _(c,i)}if(S(c)){return R(i,r)}if(x(c)){return await N(r,c,i)}throw new C.CredentialsProviderError(`Could not resolve credentials using profile: [${r}] in configuration/credentials file(s).`,{logger:i.logger})}),"resolveProfileData");var O=__name(((r={})=>async({callerClientConfig:s}={})=>{const i={...r,parentClientConfig:{...s,...r.parentClientConfig}};i.logger?.debug("@aws-sdk/credential-provider-ini - fromIni");const a=await(0,g.parseKnownFiles)(i);return P((0,g.getProfileName)({profile:r.profile??s?.profile}),a,i)}),"fromIni");0&&0},75531:(r,s,i)=>{"use strict";var a=Object.create;var A=Object.defineProperty;var c=Object.getOwnPropertyDescriptor;var l=Object.getOwnPropertyNames;var d=Object.getPrototypeOf;var u=Object.prototype.hasOwnProperty;var __name=(r,s)=>A(r,"name",{value:s,configurable:true});var __export=(r,s)=>{for(var i in s)A(r,i,{get:s[i],enumerable:true})};var __copyProps=(r,s,i,a)=>{if(s&&typeof s==="object"||typeof s==="function"){for(let d of l(s))if(!u.call(r,d)&&d!==i)A(r,d,{get:()=>s[d],enumerable:!(a=c(s,d))||a.enumerable})}return r};var __toESM=(r,s,i)=>(i=r!=null?a(d(r)):{},__copyProps(s||!r||!r.__esModule?A(i,"default",{value:r,enumerable:true}):i,r));var __toCommonJS=r=>__copyProps(A({},"__esModule",{value:true}),r);var p={};__export(p,{credentialsTreatedAsExpired:()=>w,credentialsWillNeedRefresh:()=>Q,defaultProvider:()=>b});r.exports=__toCommonJS(p);var g=i(15972);var h=i(43507);var C=i(79721);var y="AWS_EC2_METADATA_DISABLED";var I=__name((async r=>{const{ENV_CMDS_FULL_URI:s,ENV_CMDS_RELATIVE_URI:a,fromContainerMetadata:A,fromInstanceMetadata:c}=await Promise.resolve().then((()=>__toESM(i(7477))));if(process.env[a]||process.env[s]){r.logger?.debug("@aws-sdk/credential-provider-node - remoteProvider::fromHttp/fromContainerMetadata");const{fromHttp:s}=await Promise.resolve().then((()=>__toESM(i(17290))));return(0,C.chain)(s(r),A(r))}if(process.env[y]&&process.env[y]!=="false"){return async()=>{throw new C.CredentialsProviderError("EC2 Instance Metadata Service access disabled",{logger:r.logger})}}r.logger?.debug("@aws-sdk/credential-provider-node - remoteProvider::fromInstanceMetadata");return c(r)}),"remoteProvider");var B=false;var b=__name(((r={})=>(0,C.memoize)((0,C.chain)((async()=>{const s=r.profile??process.env[h.ENV_PROFILE];if(s){const s=process.env[g.ENV_KEY]&&process.env[g.ENV_SECRET];if(s){if(!B){const s=r.logger?.warn&&r.logger?.constructor?.name!=="NoOpLogger"?r.logger.warn:console.warn;s(`@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`);B=true}}throw new C.CredentialsProviderError("AWS_PROFILE is set, skipping fromEnv provider.",{logger:r.logger,tryNextLink:true})}r.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromEnv");return(0,g.fromEnv)(r)()}),(async()=>{r.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromSSO");const{ssoStartUrl:s,ssoAccountId:a,ssoRegion:A,ssoRoleName:c,ssoSession:l}=r;if(!s&&!a&&!A&&!c&&!l){throw new C.CredentialsProviderError("Skipping SSO provider in default chain (inputs do not include SSO fields).",{logger:r.logger})}const{fromSSO:d}=await Promise.resolve().then((()=>__toESM(i(26414))));return d(r)()}),(async()=>{r.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromIni");const{fromIni:s}=await Promise.resolve().then((()=>__toESM(i(74203))));return s(r)()}),(async()=>{r.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromProcess");const{fromProcess:s}=await Promise.resolve().then((()=>__toESM(i(89969))));return s(r)()}),(async()=>{r.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromTokenFile");const{fromTokenFile:s}=await Promise.resolve().then((()=>__toESM(i(15646))));return s(r)()}),(async()=>{r.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::remoteProvider");return(await I(r))()}),(async()=>{throw new C.CredentialsProviderError("Could not load credentials from any providers",{tryNextLink:false,logger:r.logger})})),w,Q)),"defaultProvider");var Q=__name((r=>r?.expiration!==void 0),"credentialsWillNeedRefresh");var w=__name((r=>r?.expiration!==void 0&&r.expiration.getTime()-Date.now()<3e5),"credentialsTreatedAsExpired");0&&0},89969:(r,s,i)=>{"use strict";var a=Object.defineProperty;var A=Object.getOwnPropertyDescriptor;var c=Object.getOwnPropertyNames;var l=Object.prototype.hasOwnProperty;var __name=(r,s)=>a(r,"name",{value:s,configurable:true});var __export=(r,s)=>{for(var i in s)a(r,i,{get:s[i],enumerable:true})};var __copyProps=(r,s,i,d)=>{if(s&&typeof s==="object"||typeof s==="function"){for(let u of c(s))if(!l.call(r,u)&&u!==i)a(r,u,{get:()=>s[u],enumerable:!(d=A(s,u))||d.enumerable})}return r};var __toCommonJS=r=>__copyProps(a({},"__esModule",{value:true}),r);var d={};__export(d,{fromProcess:()=>B});r.exports=__toCommonJS(d);var u=i(43507);var p=i(79721);var g=i(32081);var h=i(73837);var C=i(2825);var y=__name(((r,s,i)=>{if(s.Version!==1){throw Error(`Profile ${r} credential_process did not return Version 1.`)}if(s.AccessKeyId===void 0||s.SecretAccessKey===void 0){throw Error(`Profile ${r} credential_process returned invalid credentials.`)}if(s.Expiration){const i=new Date;const a=new Date(s.Expiration);if(a{const a=s[r];if(s[r]){const A=a["credential_process"];if(A!==void 0){const a=(0,h.promisify)(g.exec);try{const{stdout:i}=await a(A);let c;try{c=JSON.parse(i.trim())}catch{throw Error(`Profile ${r} credential_process returned invalid JSON.`)}return y(r,c,s)}catch(r){throw new p.CredentialsProviderError(r.message,{logger:i})}}else{throw new p.CredentialsProviderError(`Profile ${r} did not contain credential_process.`,{logger:i})}}else{throw new p.CredentialsProviderError(`Profile ${r} could not be found in shared credentials file.`,{logger:i})}}),"resolveProcessCredentials");var B=__name(((r={})=>async({callerClientConfig:s}={})=>{r.logger?.debug("@aws-sdk/credential-provider-process - fromProcess");const i=await(0,u.parseKnownFiles)(r);return I((0,u.getProfileName)({profile:r.profile??s?.profile}),i,r.logger)}),"fromProcess");0&&0},26414:(r,s,i)=>{"use strict";var a=Object.defineProperty;var A=Object.getOwnPropertyDescriptor;var c=Object.getOwnPropertyNames;var l=Object.prototype.hasOwnProperty;var __name=(r,s)=>a(r,"name",{value:s,configurable:true});var __esm=(r,s)=>function __init(){return r&&(s=(0,r[c(r)[0]])(r=0)),s};var __export=(r,s)=>{for(var i in s)a(r,i,{get:s[i],enumerable:true})};var __copyProps=(r,s,i,d)=>{if(s&&typeof s==="object"||typeof s==="function"){for(let u of c(s))if(!l.call(r,u)&&u!==i)a(r,u,{get:()=>s[u],enumerable:!(d=A(s,u))||d.enumerable})}return r};var __toCommonJS=r=>__copyProps(a({},"__esModule",{value:true}),r);var d={};__export(d,{GetRoleCredentialsCommand:()=>u.GetRoleCredentialsCommand,SSOClient:()=>u.SSOClient});var u;var p=__esm({"src/loadSso.ts"(){"use strict";u=i(82666)}});var g={};__export(g,{fromSSO:()=>v,isSsoProfile:()=>h,validateSsoProfile:()=>w});r.exports=__toCommonJS(g);var h=__name((r=>r&&(typeof r.sso_start_url==="string"||typeof r.sso_account_id==="string"||typeof r.sso_session==="string"||typeof r.sso_region==="string"||typeof r.sso_role_name==="string")),"isSsoProfile");var C=i(2825);var y=i(52843);var I=i(79721);var B=i(43507);var b=false;var Q=__name((async({ssoStartUrl:r,ssoSession:s,ssoAccountId:i,ssoRegion:a,ssoRoleName:A,ssoClient:c,clientConfig:l,parentClientConfig:u,profile:g,logger:h})=>{let Q;const w=`To refresh this SSO session run aws sso login with the corresponding profile.`;if(s){try{const r=await(0,y.fromSso)({profile:g})();Q={accessToken:r.token,expiresAt:new Date(r.expiration).toISOString()}}catch(r){throw new I.CredentialsProviderError(r.message,{tryNextLink:b,logger:h})}}else{try{Q=await(0,B.getSSOTokenFromFile)(r)}catch(r){throw new I.CredentialsProviderError(`The SSO session associated with this profile is invalid. ${w}`,{tryNextLink:b,logger:h})}}if(new Date(Q.expiresAt).getTime()-Date.now()<=0){throw new I.CredentialsProviderError(`The SSO session associated with this profile has expired. ${w}`,{tryNextLink:b,logger:h})}const{accessToken:v}=Q;const{SSOClient:S,GetRoleCredentialsCommand:R}=await Promise.resolve().then((()=>(p(),d)));const N=c||new S(Object.assign({},l??{},{logger:l?.logger??u?.logger,region:l?.region??a}));let x;try{x=await N.send(new R({accountId:i,roleName:A,accessToken:v}))}catch(r){throw new I.CredentialsProviderError(r,{tryNextLink:b,logger:h})}const{roleCredentials:{accessKeyId:D,secretAccessKey:k,sessionToken:T,expiration:_,credentialScope:P,accountId:O}={}}=x;if(!D||!k||!T||!_){throw new I.CredentialsProviderError("SSO returns an invalid temporary credential.",{tryNextLink:b,logger:h})}const L={accessKeyId:D,secretAccessKey:k,sessionToken:T,expiration:new Date(_),...P&&{credentialScope:P},...O&&{accountId:O}};if(s){(0,C.setCredentialFeature)(L,"CREDENTIALS_SSO","s")}else{(0,C.setCredentialFeature)(L,"CREDENTIALS_SSO_LEGACY","u")}return L}),"resolveSSOCredentials");var w=__name(((r,s)=>{const{sso_start_url:i,sso_account_id:a,sso_region:A,sso_role_name:c}=r;if(!i||!a||!A||!c){throw new I.CredentialsProviderError(`Profile is configured with invalid SSO credentials. Required parameters "sso_account_id", "sso_region", "sso_role_name", "sso_start_url". Got ${Object.keys(r).join(", ")}\nReference: https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-sso.html`,{tryNextLink:false,logger:s})}return r}),"validateSsoProfile");var v=__name(((r={})=>async({callerClientConfig:s}={})=>{r.logger?.debug("@aws-sdk/credential-provider-sso - fromSSO");const{ssoStartUrl:i,ssoAccountId:a,ssoRegion:A,ssoRoleName:c,ssoSession:l}=r;const{ssoClient:d}=r;const u=(0,B.getProfileName)({profile:r.profile??s?.profile});if(!i&&!a&&!A&&!c&&!l){const s=await(0,B.parseKnownFiles)(r);const a=s[u];if(!a){throw new I.CredentialsProviderError(`Profile ${u} was not found.`,{logger:r.logger})}if(!h(a)){throw new I.CredentialsProviderError(`Profile ${u} is not configured with SSO credentials.`,{logger:r.logger})}if(a?.sso_session){const s=await(0,B.loadSsoSessionData)(r);const c=s[a.sso_session];const l=` configurations in profile ${u} and sso-session ${a.sso_session}`;if(A&&A!==c.sso_region){throw new I.CredentialsProviderError(`Conflicting SSO region`+l,{tryNextLink:false,logger:r.logger})}if(i&&i!==c.sso_start_url){throw new I.CredentialsProviderError(`Conflicting SSO start_url`+l,{tryNextLink:false,logger:r.logger})}a.sso_region=c.sso_region;a.sso_start_url=c.sso_start_url}const{sso_start_url:c,sso_account_id:l,sso_region:p,sso_role_name:g,sso_session:C}=w(a,r.logger);return Q({ssoStartUrl:c,ssoSession:C,ssoAccountId:l,ssoRegion:p,ssoRoleName:g,ssoClient:d,clientConfig:r.clientConfig,parentClientConfig:r.parentClientConfig,profile:u})}else if(!i||!a||!A||!c){throw new I.CredentialsProviderError('Incomplete configuration. The fromSSO() argument hash must include "ssoStartUrl", "ssoAccountId", "ssoRegion", "ssoRoleName"',{tryNextLink:false,logger:r.logger})}else{return Q({ssoStartUrl:i,ssoSession:l,ssoAccountId:a,ssoRegion:A,ssoRoleName:c,ssoClient:d,clientConfig:r.clientConfig,parentClientConfig:r.parentClientConfig,profile:u})}}),"fromSSO");0&&0},35614:(r,s,i)=>{"use strict";Object.defineProperty(s,"__esModule",{value:true});s.fromTokenFile=void 0;const a=i(2825);const A=i(79721);const c=i(57147);const l=i(47905);const d="AWS_WEB_IDENTITY_TOKEN_FILE";const u="AWS_ROLE_ARN";const p="AWS_ROLE_SESSION_NAME";const fromTokenFile=(r={})=>async()=>{r.logger?.debug("@aws-sdk/credential-provider-web-identity - fromTokenFile");const s=r?.webIdentityTokenFile??process.env[d];const i=r?.roleArn??process.env[u];const g=r?.roleSessionName??process.env[p];if(!s||!i){throw new A.CredentialsProviderError("Web identity configuration not specified",{logger:r.logger})}const h=await(0,l.fromWebToken)({...r,webIdentityToken:(0,c.readFileSync)(s,{encoding:"ascii"}),roleArn:i,roleSessionName:g})();if(s===process.env[d]){(0,a.setCredentialFeature)(h,"CREDENTIALS_ENV_VARS_STS_WEB_ID_TOKEN","h")}return h};s.fromTokenFile=fromTokenFile},47905:function(r,s,i){"use strict";var a=this&&this.__createBinding||(Object.create?function(r,s,i,a){if(a===undefined)a=i;var A=Object.getOwnPropertyDescriptor(s,i);if(!A||("get"in A?!s.__esModule:A.writable||A.configurable)){A={enumerable:true,get:function(){return s[i]}}}Object.defineProperty(r,a,A)}:function(r,s,i,a){if(a===undefined)a=i;r[a]=s[i]});var A=this&&this.__setModuleDefault||(Object.create?function(r,s){Object.defineProperty(r,"default",{enumerable:true,value:s})}:function(r,s){r["default"]=s});var c=this&&this.__importStar||function(r){if(r&&r.__esModule)return r;var s={};if(r!=null)for(var i in r)if(i!=="default"&&Object.prototype.hasOwnProperty.call(r,i))a(s,r,i);A(s,r);return s};Object.defineProperty(s,"__esModule",{value:true});s.fromWebToken=void 0;const fromWebToken=r=>async s=>{r.logger?.debug("@aws-sdk/credential-provider-web-identity - fromWebToken");const{roleArn:a,roleSessionName:A,webIdentityToken:l,providerId:d,policyArns:u,policy:p,durationSeconds:g}=r;let{roleAssumerWithWebIdentity:h}=r;if(!h){const{getDefaultRoleAssumerWithWebIdentity:a}=await Promise.resolve().then((()=>c(i(2273))));h=a({...r.clientConfig,credentialProviderLogger:r.logger,parentClientConfig:{...s?.callerClientConfig,...r.parentClientConfig}},r.clientPlugins)}return h({RoleArn:a,RoleSessionName:A??`aws-sdk-js-session-${Date.now()}`,WebIdentityToken:l,ProviderId:d,PolicyArns:u,Policy:p,DurationSeconds:g})};s.fromWebToken=fromWebToken},15646:(r,s,i)=>{"use strict";var a=Object.defineProperty;var A=Object.getOwnPropertyDescriptor;var c=Object.getOwnPropertyNames;var l=Object.prototype.hasOwnProperty;var __copyProps=(r,s,i,d)=>{if(s&&typeof s==="object"||typeof s==="function"){for(let u of c(s))if(!l.call(r,u)&&u!==i)a(r,u,{get:()=>s[u],enumerable:!(d=A(s,u))||d.enumerable})}return r};var __reExport=(r,s,i)=>(__copyProps(r,s,"default"),i&&__copyProps(i,s,"default"));var __toCommonJS=r=>__copyProps(a({},"__esModule",{value:true}),r);var d={};r.exports=__toCommonJS(d);__reExport(d,i(35614),r.exports);__reExport(d,i(47905),r.exports);0&&0},22545:(r,s,i)=>{"use strict";var a=Object.defineProperty;var A=Object.getOwnPropertyDescriptor;var c=Object.getOwnPropertyNames;var l=Object.prototype.hasOwnProperty;var __name=(r,s)=>a(r,"name",{value:s,configurable:true});var __export=(r,s)=>{for(var i in s)a(r,i,{get:s[i],enumerable:true})};var __copyProps=(r,s,i,d)=>{if(s&&typeof s==="object"||typeof s==="function"){for(let u of c(s))if(!l.call(r,u)&&u!==i)a(r,u,{get:()=>s[u],enumerable:!(d=A(s,u))||d.enumerable})}return r};var __toCommonJS=r=>__copyProps(a({},"__esModule",{value:true}),r);var d={};__export(d,{getHostHeaderPlugin:()=>h,hostHeaderMiddleware:()=>p,hostHeaderMiddlewareOptions:()=>g,resolveHostHeaderConfig:()=>resolveHostHeaderConfig});r.exports=__toCommonJS(d);var u=i(64418);function resolveHostHeaderConfig(r){return r}__name(resolveHostHeaderConfig,"resolveHostHeaderConfig");var p=__name((r=>s=>async i=>{if(!u.HttpRequest.isInstance(i.request))return s(i);const{request:a}=i;const{handlerProtocol:A=""}=r.requestHandler.metadata||{};if(A.indexOf("h2")>=0&&!a.headers[":authority"]){delete a.headers["host"];a.headers[":authority"]=a.hostname+(a.port?":"+a.port:"")}else if(!a.headers["host"]){let r=a.hostname;if(a.port!=null)r+=`:${a.port}`;a.headers["host"]=r}return s(i)}),"hostHeaderMiddleware");var g={name:"hostHeaderMiddleware",step:"build",priority:"low",tags:["HOST"],override:true};var h=__name((r=>({applyToStack:s=>{s.add(p(r),g)}})),"getHostHeaderPlugin");0&&0},20014:r=>{"use strict";var s=Object.defineProperty;var i=Object.getOwnPropertyDescriptor;var a=Object.getOwnPropertyNames;var A=Object.prototype.hasOwnProperty;var __name=(r,i)=>s(r,"name",{value:i,configurable:true});var __export=(r,i)=>{for(var a in i)s(r,a,{get:i[a],enumerable:true})};var __copyProps=(r,c,l,d)=>{if(c&&typeof c==="object"||typeof c==="function"){for(let u of a(c))if(!A.call(r,u)&&u!==l)s(r,u,{get:()=>c[u],enumerable:!(d=i(c,u))||d.enumerable})}return r};var __toCommonJS=r=>__copyProps(s({},"__esModule",{value:true}),r);var c={};__export(c,{getLoggerPlugin:()=>u,loggerMiddleware:()=>l,loggerMiddlewareOptions:()=>d});r.exports=__toCommonJS(c);var l=__name((()=>(r,s)=>async i=>{try{const a=await r(i);const{clientName:A,commandName:c,logger:l,dynamoDbDocumentClientOptions:d={}}=s;const{overrideInputFilterSensitiveLog:u,overrideOutputFilterSensitiveLog:p}=d;const g=u??s.inputFilterSensitiveLog;const h=p??s.outputFilterSensitiveLog;const{$metadata:C,...y}=a.output;l?.info?.({clientName:A,commandName:c,input:g(i.input),output:h(y),metadata:C});return a}catch(r){const{clientName:a,commandName:A,logger:c,dynamoDbDocumentClientOptions:l={}}=s;const{overrideInputFilterSensitiveLog:d}=l;const u=d??s.inputFilterSensitiveLog;c?.error?.({clientName:a,commandName:A,input:u(i.input),error:r,metadata:r.$metadata});throw r}}),"loggerMiddleware");var d={name:"loggerMiddleware",tags:["LOGGER"],step:"initialize",override:true};var u=__name((r=>({applyToStack:r=>{r.add(l(),d)}})),"getLoggerPlugin");0&&0},85525:(r,s,i)=>{"use strict";var a=Object.defineProperty;var A=Object.getOwnPropertyDescriptor;var c=Object.getOwnPropertyNames;var l=Object.prototype.hasOwnProperty;var __name=(r,s)=>a(r,"name",{value:s,configurable:true});var __export=(r,s)=>{for(var i in s)a(r,i,{get:s[i],enumerable:true})};var __copyProps=(r,s,i,d)=>{if(s&&typeof s==="object"||typeof s==="function"){for(let u of c(s))if(!l.call(r,u)&&u!==i)a(r,u,{get:()=>s[u],enumerable:!(d=A(s,u))||d.enumerable})}return r};var __toCommonJS=r=>__copyProps(a({},"__esModule",{value:true}),r);var d={};__export(d,{addRecursionDetectionMiddlewareOptions:()=>y,getRecursionDetectionPlugin:()=>I,recursionDetectionMiddleware:()=>C});r.exports=__toCommonJS(d);var u=i(64418);var p="X-Amzn-Trace-Id";var g="AWS_LAMBDA_FUNCTION_NAME";var h="_X_AMZN_TRACE_ID";var C=__name((r=>s=>async i=>{const{request:a}=i;if(!u.HttpRequest.isInstance(a)||r.runtime!=="node"||a.headers.hasOwnProperty(p)){return s(i)}const A=process.env[g];const c=process.env[h];const l=__name((r=>typeof r==="string"&&r.length>0),"nonEmptyString");if(l(A)&&l(c)){a.headers[p]=c}return s({...i,request:a})}),"recursionDetectionMiddleware");var y={step:"build",tags:["RECURSION_DETECTION"],name:"recursionDetectionMiddleware",override:true,priority:"low"};var I=__name((r=>({applyToStack:s=>{s.add(C(r),y)}})),"getRecursionDetectionPlugin");0&&0},64688:(r,s,i)=>{"use strict";var a=Object.defineProperty;var A=Object.getOwnPropertyDescriptor;var c=Object.getOwnPropertyNames;var l=Object.prototype.hasOwnProperty;var __name=(r,s)=>a(r,"name",{value:s,configurable:true});var __export=(r,s)=>{for(var i in s)a(r,i,{get:s[i],enumerable:true})};var __copyProps=(r,s,i,d)=>{if(s&&typeof s==="object"||typeof s==="function"){for(let u of c(s))if(!l.call(r,u)&&u!==i)a(r,u,{get:()=>s[u],enumerable:!(d=A(s,u))||d.enumerable})}return r};var __toCommonJS=r=>__copyProps(a({},"__esModule",{value:true}),r);var d={};__export(d,{DEFAULT_UA_APP_ID:()=>p,getUserAgentMiddlewareOptions:()=>D,getUserAgentPlugin:()=>k,resolveUserAgentConfig:()=>resolveUserAgentConfig,userAgentMiddleware:()=>N});r.exports=__toCommonJS(d);var u=i(55829);var p=void 0;function isValidUserAgentAppId(r){if(r===void 0){return true}return typeof r==="string"&&r.length<=50}__name(isValidUserAgentAppId,"isValidUserAgentAppId");function resolveUserAgentConfig(r){const s=(0,u.normalizeProvider)(r.userAgentAppId??p);return{...r,customUserAgent:typeof r.customUserAgent==="string"?[[r.customUserAgent]]:r.customUserAgent,userAgentAppId:async()=>{const i=await s();if(!isValidUserAgentAppId(i)){const s=r.logger?.constructor?.name==="NoOpLogger"||!r.logger?console:r.logger;if(typeof i!=="string"){s?.warn("userAgentAppId must be a string or undefined.")}else if(i.length>50){s?.warn("The provided userAgentAppId exceeds the maximum length of 50 characters.")}}return i}}}__name(resolveUserAgentConfig,"resolveUserAgentConfig");var g=i(13350);var h=i(64418);var C=i(59963);var y=/\d{12}\.ddb/;async function checkFeatures(r,s,i){const a=i.request;if(a?.headers?.["smithy-protocol"]==="rpc-v2-cbor"){(0,C.setFeature)(r,"PROTOCOL_RPC_V2_CBOR","M")}if(typeof s.retryStrategy==="function"){const i=await s.retryStrategy();if(typeof i.acquireInitialRetryToken==="function"){if(i.constructor?.name?.includes("Adaptive")){(0,C.setFeature)(r,"RETRY_MODE_ADAPTIVE","F")}else{(0,C.setFeature)(r,"RETRY_MODE_STANDARD","E")}}else{(0,C.setFeature)(r,"RETRY_MODE_LEGACY","D")}}if(typeof s.accountIdEndpointMode==="function"){const i=r.endpointV2;if(String(i?.url?.hostname).match(y)){(0,C.setFeature)(r,"ACCOUNT_ID_ENDPOINT","O")}switch(await(s.accountIdEndpointMode?.())){case"disabled":(0,C.setFeature)(r,"ACCOUNT_ID_MODE_DISABLED","Q");break;case"preferred":(0,C.setFeature)(r,"ACCOUNT_ID_MODE_PREFERRED","P");break;case"required":(0,C.setFeature)(r,"ACCOUNT_ID_MODE_REQUIRED","R");break}}const A=r.__smithy_context?.selectedHttpAuthScheme?.identity;if(A?.$source){const s=A;if(s.accountId){(0,C.setFeature)(r,"RESOLVED_ACCOUNT_ID","T")}for(const[i,a]of Object.entries(s.$source??{})){(0,C.setFeature)(r,i,a)}}}__name(checkFeatures,"checkFeatures");var I="user-agent";var B="x-amz-user-agent";var b=" ";var Q="/";var w=/[^\!\$\%\&\'\*\+\-\.\^\_\`\|\~\d\w]/g;var v=/[^\!\$\%\&\'\*\+\-\.\^\_\`\|\~\d\w\#]/g;var S="-";var R=1024;function encodeFeatures(r){let s="";for(const i in r){const a=r[i];if(s.length+a.length+1<=R){if(s.length){s+=","+a}else{s+=a}continue}break}return s}__name(encodeFeatures,"encodeFeatures");var N=__name((r=>(s,i)=>async a=>{const{request:A}=a;if(!h.HttpRequest.isInstance(A)){return s(a)}const{headers:c}=A;const l=i?.userAgent?.map(x)||[];const d=(await r.defaultUserAgentProvider()).map(x);await checkFeatures(i,r,a);const u=i;d.push(`m/${encodeFeatures(Object.assign({},i.__smithy_context?.features,u.__aws_sdk_context?.features))}`);const p=r?.customUserAgent?.map(x)||[];const C=await r.userAgentAppId();if(C){d.push(x([`app/${C}`]))}const y=(0,g.getUserAgentPrefix)();const Q=(y?[y]:[]).concat([...d,...l,...p]).join(b);const w=[...d.filter((r=>r.startsWith("aws-sdk-"))),...p].join(b);if(r.runtime!=="browser"){if(w){c[B]=c[B]?`${c[I]} ${w}`:w}c[I]=Q}else{c[B]=Q}return s({...a,request:A})}),"userAgentMiddleware");var x=__name((r=>{const s=r[0].split(Q).map((r=>r.replace(w,S))).join(Q);const i=r[1]?.replace(v,S);const a=s.indexOf(Q);const A=s.substring(0,a);let c=s.substring(a+1);if(A==="api"){c=c.toLowerCase()}return[A,c,i].filter((r=>r&&r.length>0)).reduce(((r,s,i)=>{switch(i){case 0:return s;case 1:return`${r}/${s}`;default:return`${r}#${s}`}}),"")}),"escapeUserAgent");var D={name:"getUserAgentMiddleware",step:"build",priority:"low",tags:["SET_USER_AGENT","USER_AGENT"],override:true};var k=__name((r=>({applyToStack:s=>{s.add(N(r),D)}})),"getUserAgentPlugin");0&&0},59414:(r,s,i)=>{"use strict";Object.defineProperty(s,"__esModule",{value:true});s.resolveHttpAuthSchemeConfig=s.defaultSSOOIDCHttpAuthSchemeProvider=s.defaultSSOOIDCHttpAuthSchemeParametersProvider=void 0;const a=i(59963);const A=i(2390);const defaultSSOOIDCHttpAuthSchemeParametersProvider=async(r,s,i)=>({operation:(0,A.getSmithyContext)(s).operation,region:await(0,A.normalizeProvider)(r.region)()||(()=>{throw new Error("expected `region` to be configured for `aws.auth#sigv4`")})()});s.defaultSSOOIDCHttpAuthSchemeParametersProvider=defaultSSOOIDCHttpAuthSchemeParametersProvider;function createAwsAuthSigv4HttpAuthOption(r){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"sso-oauth",region:r.region},propertiesExtractor:(r,s)=>({signingProperties:{config:r,context:s}})}}function createSmithyApiNoAuthHttpAuthOption(r){return{schemeId:"smithy.api#noAuth"}}const defaultSSOOIDCHttpAuthSchemeProvider=r=>{const s=[];switch(r.operation){case"CreateToken":{s.push(createSmithyApiNoAuthHttpAuthOption(r));break}default:{s.push(createAwsAuthSigv4HttpAuthOption(r))}}return s};s.defaultSSOOIDCHttpAuthSchemeProvider=defaultSSOOIDCHttpAuthSchemeProvider;const resolveHttpAuthSchemeConfig=r=>{const s=(0,a.resolveAwsSdkSigV4Config)(r);return{...s}};s.resolveHttpAuthSchemeConfig=resolveHttpAuthSchemeConfig},60005:(r,s,i)=>{"use strict";Object.defineProperty(s,"__esModule",{value:true});s.defaultEndpointResolver=void 0;const a=i(13350);const A=i(45473);const c=i(90932);const l=new A.EndpointCache({size:50,params:["Endpoint","Region","UseDualStack","UseFIPS"]});const defaultEndpointResolver=(r,s={})=>l.get(r,(()=>(0,A.resolveEndpoint)(c.ruleSet,{endpointParams:r,logger:s.logger})));s.defaultEndpointResolver=defaultEndpointResolver;A.customEndpointFunctions.aws=a.awsEndpointFunctions},90932:(r,s)=>{"use strict";Object.defineProperty(s,"__esModule",{value:true});s.ruleSet=void 0;const i="required",a="fn",A="argv",c="ref";const l=true,d="isSet",u="booleanEquals",p="error",g="endpoint",h="tree",C="PartitionResult",y="getAttr",I={[i]:false,type:"String"},B={[i]:true,default:false,type:"Boolean"},b={[c]:"Endpoint"},Q={[a]:u,[A]:[{[c]:"UseFIPS"},true]},w={[a]:u,[A]:[{[c]:"UseDualStack"},true]},v={},S={[a]:y,[A]:[{[c]:C},"supportsFIPS"]},R={[c]:C},N={[a]:u,[A]:[true,{[a]:y,[A]:[R,"supportsDualStack"]}]},x=[Q],D=[w],k=[{[c]:"Region"}];const T={version:"1.0",parameters:{Region:I,UseDualStack:B,UseFIPS:B,Endpoint:I},rules:[{conditions:[{[a]:d,[A]:[b]}],rules:[{conditions:x,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:p},{conditions:D,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:p},{endpoint:{url:b,properties:v,headers:v},type:g}],type:h},{conditions:[{[a]:d,[A]:k}],rules:[{conditions:[{[a]:"aws.partition",[A]:k,assign:C}],rules:[{conditions:[Q,w],rules:[{conditions:[{[a]:u,[A]:[l,S]},N],rules:[{endpoint:{url:"https://oidc-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:v,headers:v},type:g}],type:h},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:p}],type:h},{conditions:x,rules:[{conditions:[{[a]:u,[A]:[S,l]}],rules:[{conditions:[{[a]:"stringEquals",[A]:[{[a]:y,[A]:[R,"name"]},"aws-us-gov"]}],endpoint:{url:"https://oidc.{Region}.amazonaws.com",properties:v,headers:v},type:g},{endpoint:{url:"https://oidc-fips.{Region}.{PartitionResult#dnsSuffix}",properties:v,headers:v},type:g}],type:h},{error:"FIPS is enabled but this partition does not support FIPS",type:p}],type:h},{conditions:D,rules:[{conditions:[N],rules:[{endpoint:{url:"https://oidc.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:v,headers:v},type:g}],type:h},{error:"DualStack is enabled but this partition does not support DualStack",type:p}],type:h},{endpoint:{url:"https://oidc.{Region}.{PartitionResult#dnsSuffix}",properties:v,headers:v},type:g}],type:h}],type:h},{error:"Invalid Configuration: Missing Region",type:p}]};s.ruleSet=T},27334:(r,s,i)=>{"use strict";var a=Object.defineProperty;var A=Object.getOwnPropertyDescriptor;var c=Object.getOwnPropertyNames;var l=Object.prototype.hasOwnProperty;var __name=(r,s)=>a(r,"name",{value:s,configurable:true});var __export=(r,s)=>{for(var i in s)a(r,i,{get:s[i],enumerable:true})};var __copyProps=(r,s,i,d)=>{if(s&&typeof s==="object"||typeof s==="function"){for(let u of c(s))if(!l.call(r,u)&&u!==i)a(r,u,{get:()=>s[u],enumerable:!(d=A(s,u))||d.enumerable})}return r};var __toCommonJS=r=>__copyProps(a({},"__esModule",{value:true}),r);var d={};__export(d,{$Command:()=>H.Command,AccessDeniedException:()=>j,AuthorizationPendingException:()=>z,CreateTokenCommand:()=>be,CreateTokenRequestFilterSensitiveLog:()=>Y,CreateTokenResponseFilterSensitiveLog:()=>J,ExpiredTokenException:()=>W,InternalServerException:()=>X,InvalidClientException:()=>$,InvalidGrantException:()=>K,InvalidRequestException:()=>Z,InvalidScopeException:()=>ee,SSOOIDC:()=>we,SSOOIDCClient:()=>O,SSOOIDCServiceException:()=>V,SlowDownException:()=>te,UnauthorizedClientException:()=>re,UnsupportedGrantTypeException:()=>ne,__Client:()=>Q.Client});r.exports=__toCommonJS(d);var u=i(22545);var p=i(20014);var g=i(85525);var h=i(64688);var C=i(53098);var y=i(55829);var I=i(82800);var B=i(82918);var b=i(96039);var Q=i(63570);var w=i(59414);var v=__name((r=>({...r,useDualstackEndpoint:r.useDualstackEndpoint??false,useFipsEndpoint:r.useFipsEndpoint??false,defaultSigningName:"sso-oauth"})),"resolveClientEndpointParameters");var S={UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}};var R=i(77277);var N=i(18156);var x=i(64418);var D=i(63570);var k=__name((r=>{const s=r.httpAuthSchemes;let i=r.httpAuthSchemeProvider;let a=r.credentials;return{setHttpAuthScheme(r){const i=s.findIndex((s=>s.schemeId===r.schemeId));if(i===-1){s.push(r)}else{s.splice(i,1,r)}},httpAuthSchemes(){return s},setHttpAuthSchemeProvider(r){i=r},httpAuthSchemeProvider(){return i},setCredentials(r){a=r},credentials(){return a}}}),"getHttpAuthExtensionConfiguration");var T=__name((r=>({httpAuthSchemes:r.httpAuthSchemes(),httpAuthSchemeProvider:r.httpAuthSchemeProvider(),credentials:r.credentials()})),"resolveHttpAuthRuntimeConfig");var _=__name((r=>r),"asPartial");var P=__name(((r,s)=>{const i={..._((0,N.getAwsRegionExtensionConfiguration)(r)),..._((0,D.getDefaultExtensionConfiguration)(r)),..._((0,x.getHttpHandlerExtensionConfiguration)(r)),..._(k(r))};s.forEach((r=>r.configure(i)));return{...r,...(0,N.resolveAwsRegionExtensionConfiguration)(i),...(0,D.resolveDefaultRuntimeConfig)(i),...(0,x.resolveHttpHandlerRuntimeConfig)(i),...T(i)}}),"resolveRuntimeExtensions");var O=class extends Q.Client{static{__name(this,"SSOOIDCClient")}config;constructor(...[r]){const s=(0,R.getRuntimeConfig)(r||{});const i=v(s);const a=(0,h.resolveUserAgentConfig)(i);const A=(0,b.resolveRetryConfig)(a);const c=(0,C.resolveRegionConfig)(A);const l=(0,u.resolveHostHeaderConfig)(c);const d=(0,B.resolveEndpointConfig)(l);const Q=(0,w.resolveHttpAuthSchemeConfig)(d);const S=P(Q,r?.extensions||[]);super(S);this.config=S;this.middlewareStack.use((0,h.getUserAgentPlugin)(this.config));this.middlewareStack.use((0,b.getRetryPlugin)(this.config));this.middlewareStack.use((0,I.getContentLengthPlugin)(this.config));this.middlewareStack.use((0,u.getHostHeaderPlugin)(this.config));this.middlewareStack.use((0,p.getLoggerPlugin)(this.config));this.middlewareStack.use((0,g.getRecursionDetectionPlugin)(this.config));this.middlewareStack.use((0,y.getHttpAuthSchemeEndpointRuleSetPlugin)(this.config,{httpAuthSchemeParametersProvider:w.defaultSSOOIDCHttpAuthSchemeParametersProvider,identityProviderConfigProvider:async r=>new y.DefaultIdentityProviderConfig({"aws.auth#sigv4":r.credentials})}));this.middlewareStack.use((0,y.getHttpSigningPlugin)(this.config))}destroy(){super.destroy()}};var L=i(63570);var M=i(82918);var U=i(81238);var H=i(63570);var G=i(63570);var q=i(63570);var V=class _SSOOIDCServiceException extends q.ServiceException{static{__name(this,"SSOOIDCServiceException")}constructor(r){super(r);Object.setPrototypeOf(this,_SSOOIDCServiceException.prototype)}};var j=class _AccessDeniedException extends V{static{__name(this,"AccessDeniedException")}name="AccessDeniedException";$fault="client";error;error_description;constructor(r){super({name:"AccessDeniedException",$fault:"client",...r});Object.setPrototypeOf(this,_AccessDeniedException.prototype);this.error=r.error;this.error_description=r.error_description}};var z=class _AuthorizationPendingException extends V{static{__name(this,"AuthorizationPendingException")}name="AuthorizationPendingException";$fault="client";error;error_description;constructor(r){super({name:"AuthorizationPendingException",$fault:"client",...r});Object.setPrototypeOf(this,_AuthorizationPendingException.prototype);this.error=r.error;this.error_description=r.error_description}};var Y=__name((r=>({...r,...r.clientSecret&&{clientSecret:G.SENSITIVE_STRING},...r.refreshToken&&{refreshToken:G.SENSITIVE_STRING},...r.codeVerifier&&{codeVerifier:G.SENSITIVE_STRING}})),"CreateTokenRequestFilterSensitiveLog");var J=__name((r=>({...r,...r.accessToken&&{accessToken:G.SENSITIVE_STRING},...r.refreshToken&&{refreshToken:G.SENSITIVE_STRING},...r.idToken&&{idToken:G.SENSITIVE_STRING}})),"CreateTokenResponseFilterSensitiveLog");var W=class _ExpiredTokenException extends V{static{__name(this,"ExpiredTokenException")}name="ExpiredTokenException";$fault="client";error;error_description;constructor(r){super({name:"ExpiredTokenException",$fault:"client",...r});Object.setPrototypeOf(this,_ExpiredTokenException.prototype);this.error=r.error;this.error_description=r.error_description}};var X=class _InternalServerException extends V{static{__name(this,"InternalServerException")}name="InternalServerException";$fault="server";error;error_description;constructor(r){super({name:"InternalServerException",$fault:"server",...r});Object.setPrototypeOf(this,_InternalServerException.prototype);this.error=r.error;this.error_description=r.error_description}};var $=class _InvalidClientException extends V{static{__name(this,"InvalidClientException")}name="InvalidClientException";$fault="client";error;error_description;constructor(r){super({name:"InvalidClientException",$fault:"client",...r});Object.setPrototypeOf(this,_InvalidClientException.prototype);this.error=r.error;this.error_description=r.error_description}};var K=class _InvalidGrantException extends V{static{__name(this,"InvalidGrantException")}name="InvalidGrantException";$fault="client";error;error_description;constructor(r){super({name:"InvalidGrantException",$fault:"client",...r});Object.setPrototypeOf(this,_InvalidGrantException.prototype);this.error=r.error;this.error_description=r.error_description}};var Z=class _InvalidRequestException extends V{static{__name(this,"InvalidRequestException")}name="InvalidRequestException";$fault="client";error;error_description;constructor(r){super({name:"InvalidRequestException",$fault:"client",...r});Object.setPrototypeOf(this,_InvalidRequestException.prototype);this.error=r.error;this.error_description=r.error_description}};var ee=class _InvalidScopeException extends V{static{__name(this,"InvalidScopeException")}name="InvalidScopeException";$fault="client";error;error_description;constructor(r){super({name:"InvalidScopeException",$fault:"client",...r});Object.setPrototypeOf(this,_InvalidScopeException.prototype);this.error=r.error;this.error_description=r.error_description}};var te=class _SlowDownException extends V{static{__name(this,"SlowDownException")}name="SlowDownException";$fault="client";error;error_description;constructor(r){super({name:"SlowDownException",$fault:"client",...r});Object.setPrototypeOf(this,_SlowDownException.prototype);this.error=r.error;this.error_description=r.error_description}};var re=class _UnauthorizedClientException extends V{static{__name(this,"UnauthorizedClientException")}name="UnauthorizedClientException";$fault="client";error;error_description;constructor(r){super({name:"UnauthorizedClientException",$fault:"client",...r});Object.setPrototypeOf(this,_UnauthorizedClientException.prototype);this.error=r.error;this.error_description=r.error_description}};var ne=class _UnsupportedGrantTypeException extends V{static{__name(this,"UnsupportedGrantTypeException")}name="UnsupportedGrantTypeException";$fault="client";error;error_description;constructor(r){super({name:"UnsupportedGrantTypeException",$fault:"client",...r});Object.setPrototypeOf(this,_UnsupportedGrantTypeException.prototype);this.error=r.error;this.error_description=r.error_description}};var se=i(59963);var ie=i(55829);var oe=i(63570);var ae=__name((async(r,s)=>{const i=(0,ie.requestBuilder)(r,s);const a={"content-type":"application/json"};i.bp("/token");let A;A=JSON.stringify((0,oe.take)(r,{clientId:[],clientSecret:[],code:[],codeVerifier:[],deviceCode:[],grantType:[],redirectUri:[],refreshToken:[],scope:r=>(0,oe._json)(r)}));i.m("POST").h(a).b(A);return i.build()}),"se_CreateTokenCommand");var Ae=__name((async(r,s)=>{if(r.statusCode!==200&&r.statusCode>=300){return ce(r,s)}const i=(0,oe.map)({$metadata:Be(r)});const a=(0,oe.expectNonNull)((0,oe.expectObject)(await(0,se.parseJsonBody)(r.body,s)),"body");const A=(0,oe.take)(a,{accessToken:oe.expectString,expiresIn:oe.expectInt32,idToken:oe.expectString,refreshToken:oe.expectString,tokenType:oe.expectString});Object.assign(i,A);return i}),"de_CreateTokenCommand");var ce=__name((async(r,s)=>{const i={...r,body:await(0,se.parseJsonErrorBody)(r.body,s)};const a=(0,se.loadRestJsonErrorCode)(r,i.body);switch(a){case"AccessDeniedException":case"com.amazonaws.ssooidc#AccessDeniedException":throw await de(i,s);case"AuthorizationPendingException":case"com.amazonaws.ssooidc#AuthorizationPendingException":throw await ue(i,s);case"ExpiredTokenException":case"com.amazonaws.ssooidc#ExpiredTokenException":throw await pe(i,s);case"InternalServerException":case"com.amazonaws.ssooidc#InternalServerException":throw await ge(i,s);case"InvalidClientException":case"com.amazonaws.ssooidc#InvalidClientException":throw await he(i,s);case"InvalidGrantException":case"com.amazonaws.ssooidc#InvalidGrantException":throw await me(i,s);case"InvalidRequestException":case"com.amazonaws.ssooidc#InvalidRequestException":throw await fe(i,s);case"InvalidScopeException":case"com.amazonaws.ssooidc#InvalidScopeException":throw await Ee(i,s);case"SlowDownException":case"com.amazonaws.ssooidc#SlowDownException":throw await Ce(i,s);case"UnauthorizedClientException":case"com.amazonaws.ssooidc#UnauthorizedClientException":throw await ye(i,s);case"UnsupportedGrantTypeException":case"com.amazonaws.ssooidc#UnsupportedGrantTypeException":throw await Ie(i,s);default:const A=i.body;return le({output:r,parsedBody:A,errorCode:a})}}),"de_CommandError");var le=(0,oe.withBaseException)(V);var de=__name((async(r,s)=>{const i=(0,oe.map)({});const a=r.body;const A=(0,oe.take)(a,{error:oe.expectString,error_description:oe.expectString});Object.assign(i,A);const c=new j({$metadata:Be(r),...i});return(0,oe.decorateServiceException)(c,r.body)}),"de_AccessDeniedExceptionRes");var ue=__name((async(r,s)=>{const i=(0,oe.map)({});const a=r.body;const A=(0,oe.take)(a,{error:oe.expectString,error_description:oe.expectString});Object.assign(i,A);const c=new z({$metadata:Be(r),...i});return(0,oe.decorateServiceException)(c,r.body)}),"de_AuthorizationPendingExceptionRes");var pe=__name((async(r,s)=>{const i=(0,oe.map)({});const a=r.body;const A=(0,oe.take)(a,{error:oe.expectString,error_description:oe.expectString});Object.assign(i,A);const c=new W({$metadata:Be(r),...i});return(0,oe.decorateServiceException)(c,r.body)}),"de_ExpiredTokenExceptionRes");var ge=__name((async(r,s)=>{const i=(0,oe.map)({});const a=r.body;const A=(0,oe.take)(a,{error:oe.expectString,error_description:oe.expectString});Object.assign(i,A);const c=new X({$metadata:Be(r),...i});return(0,oe.decorateServiceException)(c,r.body)}),"de_InternalServerExceptionRes");var he=__name((async(r,s)=>{const i=(0,oe.map)({});const a=r.body;const A=(0,oe.take)(a,{error:oe.expectString,error_description:oe.expectString});Object.assign(i,A);const c=new $({$metadata:Be(r),...i});return(0,oe.decorateServiceException)(c,r.body)}),"de_InvalidClientExceptionRes");var me=__name((async(r,s)=>{const i=(0,oe.map)({});const a=r.body;const A=(0,oe.take)(a,{error:oe.expectString,error_description:oe.expectString});Object.assign(i,A);const c=new K({$metadata:Be(r),...i});return(0,oe.decorateServiceException)(c,r.body)}),"de_InvalidGrantExceptionRes");var fe=__name((async(r,s)=>{const i=(0,oe.map)({});const a=r.body;const A=(0,oe.take)(a,{error:oe.expectString,error_description:oe.expectString});Object.assign(i,A);const c=new Z({$metadata:Be(r),...i});return(0,oe.decorateServiceException)(c,r.body)}),"de_InvalidRequestExceptionRes");var Ee=__name((async(r,s)=>{const i=(0,oe.map)({});const a=r.body;const A=(0,oe.take)(a,{error:oe.expectString,error_description:oe.expectString});Object.assign(i,A);const c=new ee({$metadata:Be(r),...i});return(0,oe.decorateServiceException)(c,r.body)}),"de_InvalidScopeExceptionRes");var Ce=__name((async(r,s)=>{const i=(0,oe.map)({});const a=r.body;const A=(0,oe.take)(a,{error:oe.expectString,error_description:oe.expectString});Object.assign(i,A);const c=new te({$metadata:Be(r),...i});return(0,oe.decorateServiceException)(c,r.body)}),"de_SlowDownExceptionRes");var ye=__name((async(r,s)=>{const i=(0,oe.map)({});const a=r.body;const A=(0,oe.take)(a,{error:oe.expectString,error_description:oe.expectString});Object.assign(i,A);const c=new re({$metadata:Be(r),...i});return(0,oe.decorateServiceException)(c,r.body)}),"de_UnauthorizedClientExceptionRes");var Ie=__name((async(r,s)=>{const i=(0,oe.map)({});const a=r.body;const A=(0,oe.take)(a,{error:oe.expectString,error_description:oe.expectString});Object.assign(i,A);const c=new ne({$metadata:Be(r),...i});return(0,oe.decorateServiceException)(c,r.body)}),"de_UnsupportedGrantTypeExceptionRes");var Be=__name((r=>({httpStatusCode:r.statusCode,requestId:r.headers["x-amzn-requestid"]??r.headers["x-amzn-request-id"]??r.headers["x-amz-request-id"],extendedRequestId:r.headers["x-amz-id-2"],cfId:r.headers["x-amz-cf-id"]})),"deserializeMetadata");var be=class extends(H.Command.classBuilder().ep(S).m((function(r,s,i,a){return[(0,U.getSerdePlugin)(i,this.serialize,this.deserialize),(0,M.getEndpointPlugin)(i,r.getEndpointParameterInstructions())]})).s("AWSSSOOIDCService","CreateToken",{}).n("SSOOIDCClient","CreateTokenCommand").f(Y,J).ser(ae).de(Ae).build()){static{__name(this,"CreateTokenCommand")}};var Qe={CreateTokenCommand:be};var we=class extends O{static{__name(this,"SSOOIDC")}};(0,L.createAggregatedClient)(Qe,we);0&&0},77277:(r,s,i)=>{"use strict";Object.defineProperty(s,"__esModule",{value:true});s.getRuntimeConfig=void 0;const a=i(4351);const A=a.__importDefault(i(88842));const c=i(59963);const l=i(98095);const d=i(53098);const u=i(3081);const p=i(96039);const g=i(33461);const h=i(20258);const C=i(68075);const y=i(84902);const I=i(49513);const B=i(63570);const b=i(72429);const Q=i(63570);const getRuntimeConfig=r=>{(0,Q.emitWarningIfUnsupportedVersion)(process.version);const s=(0,b.resolveDefaultsModeConfig)(r);const defaultConfigProvider=()=>s().then(B.loadConfigsForDefaultMode);const i=(0,I.getRuntimeConfig)(r);(0,c.emitWarningIfUnsupportedVersion)(process.version);const a={profile:r?.profile};return{...i,...r,runtime:"node",defaultsMode:s,bodyLengthChecker:r?.bodyLengthChecker??C.calculateBodyLength,defaultUserAgentProvider:r?.defaultUserAgentProvider??(0,l.createDefaultUserAgentProvider)({serviceId:i.serviceId,clientVersion:A.default.version}),maxAttempts:r?.maxAttempts??(0,g.loadConfig)(p.NODE_MAX_ATTEMPT_CONFIG_OPTIONS,r),region:r?.region??(0,g.loadConfig)(d.NODE_REGION_CONFIG_OPTIONS,{...d.NODE_REGION_CONFIG_FILE_OPTIONS,...a}),requestHandler:h.NodeHttpHandler.create(r?.requestHandler??defaultConfigProvider),retryMode:r?.retryMode??(0,g.loadConfig)({...p.NODE_RETRY_MODE_CONFIG_OPTIONS,default:async()=>(await defaultConfigProvider()).retryMode||y.DEFAULT_RETRY_MODE},r),sha256:r?.sha256??u.Hash.bind(null,"sha256"),streamCollector:r?.streamCollector??h.streamCollector,useDualstackEndpoint:r?.useDualstackEndpoint??(0,g.loadConfig)(d.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS,a),useFipsEndpoint:r?.useFipsEndpoint??(0,g.loadConfig)(d.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS,a),userAgentAppId:r?.userAgentAppId??(0,g.loadConfig)(l.NODE_APP_ID_CONFIG_OPTIONS,a)}};s.getRuntimeConfig=getRuntimeConfig},49513:(r,s,i)=>{"use strict";Object.defineProperty(s,"__esModule",{value:true});s.getRuntimeConfig=void 0;const a=i(59963);const A=i(55829);const c=i(63570);const l=i(14681);const d=i(75600);const u=i(41895);const p=i(59414);const g=i(60005);const getRuntimeConfig=r=>({apiVersion:"2019-06-10",base64Decoder:r?.base64Decoder??d.fromBase64,base64Encoder:r?.base64Encoder??d.toBase64,disableHostPrefix:r?.disableHostPrefix??false,endpointProvider:r?.endpointProvider??g.defaultEndpointResolver,extensions:r?.extensions??[],httpAuthSchemeProvider:r?.httpAuthSchemeProvider??p.defaultSSOOIDCHttpAuthSchemeProvider,httpAuthSchemes:r?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:r=>r.getIdentityProvider("aws.auth#sigv4"),signer:new a.AwsSdkSigV4Signer},{schemeId:"smithy.api#noAuth",identityProvider:r=>r.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),signer:new A.NoAuthSigner}],logger:r?.logger??new c.NoOpLogger,serviceId:r?.serviceId??"SSO OIDC",urlParser:r?.urlParser??l.parseUrl,utf8Decoder:r?.utf8Decoder??u.fromUtf8,utf8Encoder:r?.utf8Encoder??u.toUtf8});s.getRuntimeConfig=getRuntimeConfig},68974:(r,s,i)=>{"use strict";Object.defineProperty(s,"__esModule",{value:true});s.STSClient=s.__Client=void 0;const a=i(22545);const A=i(20014);const c=i(85525);const l=i(64688);const d=i(53098);const u=i(55829);const p=i(82800);const g=i(82918);const h=i(96039);const C=i(63570);Object.defineProperty(s,"__Client",{enumerable:true,get:function(){return C.Client}});const y=i(48013);const I=i(41765);const B=i(1798);const b=i(30669);class STSClient extends C.Client{config;constructor(...[r]){const s=(0,B.getRuntimeConfig)(r||{});const i=(0,I.resolveClientEndpointParameters)(s);const C=(0,l.resolveUserAgentConfig)(i);const Q=(0,h.resolveRetryConfig)(C);const w=(0,d.resolveRegionConfig)(Q);const v=(0,a.resolveHostHeaderConfig)(w);const S=(0,g.resolveEndpointConfig)(v);const R=(0,y.resolveHttpAuthSchemeConfig)(S);const N=(0,b.resolveRuntimeExtensions)(R,r?.extensions||[]);super(N);this.config=N;this.middlewareStack.use((0,l.getUserAgentPlugin)(this.config));this.middlewareStack.use((0,h.getRetryPlugin)(this.config));this.middlewareStack.use((0,p.getContentLengthPlugin)(this.config));this.middlewareStack.use((0,a.getHostHeaderPlugin)(this.config));this.middlewareStack.use((0,A.getLoggerPlugin)(this.config));this.middlewareStack.use((0,c.getRecursionDetectionPlugin)(this.config));this.middlewareStack.use((0,u.getHttpAuthSchemeEndpointRuleSetPlugin)(this.config,{httpAuthSchemeParametersProvider:y.defaultSTSHttpAuthSchemeParametersProvider,identityProviderConfigProvider:async r=>new u.DefaultIdentityProviderConfig({"aws.auth#sigv4":r.credentials})}));this.middlewareStack.use((0,u.getHttpSigningPlugin)(this.config))}destroy(){super.destroy()}}s.STSClient=STSClient},14935:(r,s)=>{"use strict";Object.defineProperty(s,"__esModule",{value:true});s.resolveHttpAuthRuntimeConfig=s.getHttpAuthExtensionConfiguration=void 0;const getHttpAuthExtensionConfiguration=r=>{const s=r.httpAuthSchemes;let i=r.httpAuthSchemeProvider;let a=r.credentials;return{setHttpAuthScheme(r){const i=s.findIndex((s=>s.schemeId===r.schemeId));if(i===-1){s.push(r)}else{s.splice(i,1,r)}},httpAuthSchemes(){return s},setHttpAuthSchemeProvider(r){i=r},httpAuthSchemeProvider(){return i},setCredentials(r){a=r},credentials(){return a}}};s.getHttpAuthExtensionConfiguration=getHttpAuthExtensionConfiguration;const resolveHttpAuthRuntimeConfig=r=>({httpAuthSchemes:r.httpAuthSchemes(),httpAuthSchemeProvider:r.httpAuthSchemeProvider(),credentials:r.credentials()});s.resolveHttpAuthRuntimeConfig=resolveHttpAuthRuntimeConfig},48013:(r,s,i)=>{"use strict";Object.defineProperty(s,"__esModule",{value:true});s.resolveHttpAuthSchemeConfig=s.resolveStsAuthConfig=s.defaultSTSHttpAuthSchemeProvider=s.defaultSTSHttpAuthSchemeParametersProvider=void 0;const a=i(59963);const A=i(2390);const c=i(68974);const defaultSTSHttpAuthSchemeParametersProvider=async(r,s,i)=>({operation:(0,A.getSmithyContext)(s).operation,region:await(0,A.normalizeProvider)(r.region)()||(()=>{throw new Error("expected `region` to be configured for `aws.auth#sigv4`")})()});s.defaultSTSHttpAuthSchemeParametersProvider=defaultSTSHttpAuthSchemeParametersProvider;function createAwsAuthSigv4HttpAuthOption(r){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"sts",region:r.region},propertiesExtractor:(r,s)=>({signingProperties:{config:r,context:s}})}}function createSmithyApiNoAuthHttpAuthOption(r){return{schemeId:"smithy.api#noAuth"}}const defaultSTSHttpAuthSchemeProvider=r=>{const s=[];switch(r.operation){case"AssumeRoleWithWebIdentity":{s.push(createSmithyApiNoAuthHttpAuthOption(r));break}default:{s.push(createAwsAuthSigv4HttpAuthOption(r))}}return s};s.defaultSTSHttpAuthSchemeProvider=defaultSTSHttpAuthSchemeProvider;const resolveStsAuthConfig=r=>({...r,stsClientCtor:c.STSClient});s.resolveStsAuthConfig=resolveStsAuthConfig;const resolveHttpAuthSchemeConfig=r=>{const i=(0,s.resolveStsAuthConfig)(r);const A=(0,a.resolveAwsSdkSigV4Config)(i);return{...A}};s.resolveHttpAuthSchemeConfig=resolveHttpAuthSchemeConfig},41765:(r,s)=>{"use strict";Object.defineProperty(s,"__esModule",{value:true});s.commonParams=s.resolveClientEndpointParameters=void 0;const resolveClientEndpointParameters=r=>({...r,useDualstackEndpoint:r.useDualstackEndpoint??false,useFipsEndpoint:r.useFipsEndpoint??false,useGlobalEndpoint:r.useGlobalEndpoint??false,defaultSigningName:"sts"});s.resolveClientEndpointParameters=resolveClientEndpointParameters;s.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"}}},47561:(r,s,i)=>{"use strict";Object.defineProperty(s,"__esModule",{value:true});s.defaultEndpointResolver=void 0;const a=i(13350);const A=i(45473);const c=i(39127);const l=new A.EndpointCache({size:50,params:["Endpoint","Region","UseDualStack","UseFIPS","UseGlobalEndpoint"]});const defaultEndpointResolver=(r,s={})=>l.get(r,(()=>(0,A.resolveEndpoint)(c.ruleSet,{endpointParams:r,logger:s.logger})));s.defaultEndpointResolver=defaultEndpointResolver;A.customEndpointFunctions.aws=a.awsEndpointFunctions},39127:(r,s)=>{"use strict";Object.defineProperty(s,"__esModule",{value:true});s.ruleSet=void 0;const i="required",a="type",A="fn",c="argv",l="ref";const d=false,u=true,p="booleanEquals",g="stringEquals",h="sigv4",C="sts",y="us-east-1",I="endpoint",B="https://sts.{Region}.{PartitionResult#dnsSuffix}",b="tree",Q="error",w="getAttr",v={[i]:false,[a]:"String"},S={[i]:true,default:false,[a]:"Boolean"},R={[l]:"Endpoint"},N={[A]:"isSet",[c]:[{[l]:"Region"}]},x={[l]:"Region"},D={[A]:"aws.partition",[c]:[x],assign:"PartitionResult"},k={[l]:"UseFIPS"},T={[l]:"UseDualStack"},_={url:"https://sts.amazonaws.com",properties:{authSchemes:[{name:h,signingName:C,signingRegion:y}]},headers:{}},P={},O={conditions:[{[A]:g,[c]:[x,"aws-global"]}],[I]:_,[a]:I},L={[A]:p,[c]:[k,true]},M={[A]:p,[c]:[T,true]},U={[A]:w,[c]:[{[l]:"PartitionResult"},"supportsFIPS"]},H={[l]:"PartitionResult"},G={[A]:p,[c]:[true,{[A]:w,[c]:[H,"supportsDualStack"]}]},q=[{[A]:"isSet",[c]:[R]}],V=[L],j=[M];const z={version:"1.0",parameters:{Region:v,UseDualStack:S,UseFIPS:S,Endpoint:v,UseGlobalEndpoint:S},rules:[{conditions:[{[A]:p,[c]:[{[l]:"UseGlobalEndpoint"},u]},{[A]:"not",[c]:q},N,D,{[A]:p,[c]:[k,d]},{[A]:p,[c]:[T,d]}],rules:[{conditions:[{[A]:g,[c]:[x,"ap-northeast-1"]}],endpoint:_,[a]:I},{conditions:[{[A]:g,[c]:[x,"ap-south-1"]}],endpoint:_,[a]:I},{conditions:[{[A]:g,[c]:[x,"ap-southeast-1"]}],endpoint:_,[a]:I},{conditions:[{[A]:g,[c]:[x,"ap-southeast-2"]}],endpoint:_,[a]:I},O,{conditions:[{[A]:g,[c]:[x,"ca-central-1"]}],endpoint:_,[a]:I},{conditions:[{[A]:g,[c]:[x,"eu-central-1"]}],endpoint:_,[a]:I},{conditions:[{[A]:g,[c]:[x,"eu-north-1"]}],endpoint:_,[a]:I},{conditions:[{[A]:g,[c]:[x,"eu-west-1"]}],endpoint:_,[a]:I},{conditions:[{[A]:g,[c]:[x,"eu-west-2"]}],endpoint:_,[a]:I},{conditions:[{[A]:g,[c]:[x,"eu-west-3"]}],endpoint:_,[a]:I},{conditions:[{[A]:g,[c]:[x,"sa-east-1"]}],endpoint:_,[a]:I},{conditions:[{[A]:g,[c]:[x,y]}],endpoint:_,[a]:I},{conditions:[{[A]:g,[c]:[x,"us-east-2"]}],endpoint:_,[a]:I},{conditions:[{[A]:g,[c]:[x,"us-west-1"]}],endpoint:_,[a]:I},{conditions:[{[A]:g,[c]:[x,"us-west-2"]}],endpoint:_,[a]:I},{endpoint:{url:B,properties:{authSchemes:[{name:h,signingName:C,signingRegion:"{Region}"}]},headers:P},[a]:I}],[a]:b},{conditions:q,rules:[{conditions:V,error:"Invalid Configuration: FIPS and custom endpoint are not supported",[a]:Q},{conditions:j,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",[a]:Q},{endpoint:{url:R,properties:P,headers:P},[a]:I}],[a]:b},{conditions:[N],rules:[{conditions:[D],rules:[{conditions:[L,M],rules:[{conditions:[{[A]:p,[c]:[u,U]},G],rules:[{endpoint:{url:"https://sts-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:P,headers:P},[a]:I}],[a]:b},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",[a]:Q}],[a]:b},{conditions:V,rules:[{conditions:[{[A]:p,[c]:[U,u]}],rules:[{conditions:[{[A]:g,[c]:[{[A]:w,[c]:[H,"name"]},"aws-us-gov"]}],endpoint:{url:"https://sts.{Region}.amazonaws.com",properties:P,headers:P},[a]:I},{endpoint:{url:"https://sts-fips.{Region}.{PartitionResult#dnsSuffix}",properties:P,headers:P},[a]:I}],[a]:b},{error:"FIPS is enabled but this partition does not support FIPS",[a]:Q}],[a]:b},{conditions:j,rules:[{conditions:[G],rules:[{endpoint:{url:"https://sts.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:P,headers:P},[a]:I}],[a]:b},{error:"DualStack is enabled but this partition does not support DualStack",[a]:Q}],[a]:b},O,{endpoint:{url:B,properties:P,headers:P},[a]:I}],[a]:b}],[a]:b},{error:"Invalid Configuration: Missing Region",[a]:Q}]};s.ruleSet=z},2273:(r,s,i)=>{"use strict";var a=Object.defineProperty;var A=Object.getOwnPropertyDescriptor;var c=Object.getOwnPropertyNames;var l=Object.prototype.hasOwnProperty;var __name=(r,s)=>a(r,"name",{value:s,configurable:true});var __export=(r,s)=>{for(var i in s)a(r,i,{get:s[i],enumerable:true})};var __copyProps=(r,s,i,d)=>{if(s&&typeof s==="object"||typeof s==="function"){for(let u of c(s))if(!l.call(r,u)&&u!==i)a(r,u,{get:()=>s[u],enumerable:!(d=A(s,u))||d.enumerable})}return r};var __reExport=(r,s,i)=>(__copyProps(r,s,"default"),i&&__copyProps(i,s,"default"));var __toCommonJS=r=>__copyProps(a({},"__esModule",{value:true}),r);var d={};__export(d,{AssumeRoleCommand:()=>it,AssumeRoleResponseFilterSensitiveLog:()=>Q,AssumeRoleWithWebIdentityCommand:()=>ut,AssumeRoleWithWebIdentityRequestFilterSensitiveLog:()=>D,AssumeRoleWithWebIdentityResponseFilterSensitiveLog:()=>k,ClientInputEndpointParameters:()=>ft.ClientInputEndpointParameters,CredentialsFilterSensitiveLog:()=>b,ExpiredTokenException:()=>w,IDPCommunicationErrorException:()=>T,IDPRejectedClaimException:()=>N,InvalidIdentityTokenException:()=>x,MalformedPolicyDocumentException:()=>v,PackedPolicyTooLargeException:()=>S,RegionDisabledException:()=>R,STS:()=>mt,STSServiceException:()=>B,decorateDefaultCredentialProvider:()=>Nt,getDefaultRoleAssumer:()=>St,getDefaultRoleAssumerWithWebIdentity:()=>Rt});r.exports=__toCommonJS(d);__reExport(d,i(68974),r.exports);var u=i(63570);var p=i(82918);var g=i(81238);var h=i(63570);var C=i(41765);var y=i(63570);var I=i(63570);var B=class _STSServiceException extends I.ServiceException{static{__name(this,"STSServiceException")}constructor(r){super(r);Object.setPrototypeOf(this,_STSServiceException.prototype)}};var b=__name((r=>({...r,...r.SecretAccessKey&&{SecretAccessKey:y.SENSITIVE_STRING}})),"CredentialsFilterSensitiveLog");var Q=__name((r=>({...r,...r.Credentials&&{Credentials:b(r.Credentials)}})),"AssumeRoleResponseFilterSensitiveLog");var w=class _ExpiredTokenException extends B{static{__name(this,"ExpiredTokenException")}name="ExpiredTokenException";$fault="client";constructor(r){super({name:"ExpiredTokenException",$fault:"client",...r});Object.setPrototypeOf(this,_ExpiredTokenException.prototype)}};var v=class _MalformedPolicyDocumentException extends B{static{__name(this,"MalformedPolicyDocumentException")}name="MalformedPolicyDocumentException";$fault="client";constructor(r){super({name:"MalformedPolicyDocumentException",$fault:"client",...r});Object.setPrototypeOf(this,_MalformedPolicyDocumentException.prototype)}};var S=class _PackedPolicyTooLargeException extends B{static{__name(this,"PackedPolicyTooLargeException")}name="PackedPolicyTooLargeException";$fault="client";constructor(r){super({name:"PackedPolicyTooLargeException",$fault:"client",...r});Object.setPrototypeOf(this,_PackedPolicyTooLargeException.prototype)}};var R=class _RegionDisabledException extends B{static{__name(this,"RegionDisabledException")}name="RegionDisabledException";$fault="client";constructor(r){super({name:"RegionDisabledException",$fault:"client",...r});Object.setPrototypeOf(this,_RegionDisabledException.prototype)}};var N=class _IDPRejectedClaimException extends B{static{__name(this,"IDPRejectedClaimException")}name="IDPRejectedClaimException";$fault="client";constructor(r){super({name:"IDPRejectedClaimException",$fault:"client",...r});Object.setPrototypeOf(this,_IDPRejectedClaimException.prototype)}};var x=class _InvalidIdentityTokenException extends B{static{__name(this,"InvalidIdentityTokenException")}name="InvalidIdentityTokenException";$fault="client";constructor(r){super({name:"InvalidIdentityTokenException",$fault:"client",...r});Object.setPrototypeOf(this,_InvalidIdentityTokenException.prototype)}};var D=__name((r=>({...r,...r.WebIdentityToken&&{WebIdentityToken:y.SENSITIVE_STRING}})),"AssumeRoleWithWebIdentityRequestFilterSensitiveLog");var k=__name((r=>({...r,...r.Credentials&&{Credentials:b(r.Credentials)}})),"AssumeRoleWithWebIdentityResponseFilterSensitiveLog");var T=class _IDPCommunicationErrorException extends B{static{__name(this,"IDPCommunicationErrorException")}name="IDPCommunicationErrorException";$fault="client";constructor(r){super({name:"IDPCommunicationErrorException",$fault:"client",...r});Object.setPrototypeOf(this,_IDPCommunicationErrorException.prototype)}};var _=i(59963);var P=i(64418);var O=i(63570);var L=__name((async(r,s)=>{const i=Ce;let a;a=nt({...X(r,s),[Ie]:be,[Ke]:ye});return Ee(s,i,"/",void 0,a)}),"se_AssumeRoleCommand");var M=__name((async(r,s)=>{const i=Ce;let a;a=nt({...$(r,s),[Ie]:ve,[Ke]:ye});return Ee(s,i,"/",void 0,a)}),"se_AssumeRoleWithWebIdentityCommand");var U=__name((async(r,s)=>{if(r.statusCode>=300){return G(r,s)}const i=await(0,_.parseXmlBody)(r.body,s);let a={};a=oe(i.AssumeRoleResult,s);const A={$metadata:me(r),...a};return A}),"de_AssumeRoleCommand");var H=__name((async(r,s)=>{if(r.statusCode>=300){return G(r,s)}const i=await(0,_.parseXmlBody)(r.body,s);let a={};a=ae(i.AssumeRoleWithWebIdentityResult,s);const A={$metadata:me(r),...a};return A}),"de_AssumeRoleWithWebIdentityCommand");var G=__name((async(r,s)=>{const i={...r,body:await(0,_.parseXmlErrorBody)(r.body,s)};const a=st(r,i.body);switch(a){case"ExpiredTokenException":case"com.amazonaws.sts#ExpiredTokenException":throw await q(i,s);case"MalformedPolicyDocument":case"com.amazonaws.sts#MalformedPolicyDocumentException":throw await Y(i,s);case"PackedPolicyTooLarge":case"com.amazonaws.sts#PackedPolicyTooLargeException":throw await J(i,s);case"RegionDisabledException":case"com.amazonaws.sts#RegionDisabledException":throw await W(i,s);case"IDPCommunicationError":case"com.amazonaws.sts#IDPCommunicationErrorException":throw await V(i,s);case"IDPRejectedClaim":case"com.amazonaws.sts#IDPRejectedClaimException":throw await j(i,s);case"InvalidIdentityToken":case"com.amazonaws.sts#InvalidIdentityTokenException":throw await z(i,s);default:const A=i.body;return fe({output:r,parsedBody:A.Error,errorCode:a})}}),"de_CommandError");var q=__name((async(r,s)=>{const i=r.body;const a=ce(i.Error,s);const A=new w({$metadata:me(r),...a});return(0,O.decorateServiceException)(A,i)}),"de_ExpiredTokenExceptionRes");var V=__name((async(r,s)=>{const i=r.body;const a=le(i.Error,s);const A=new T({$metadata:me(r),...a});return(0,O.decorateServiceException)(A,i)}),"de_IDPCommunicationErrorExceptionRes");var j=__name((async(r,s)=>{const i=r.body;const a=de(i.Error,s);const A=new N({$metadata:me(r),...a});return(0,O.decorateServiceException)(A,i)}),"de_IDPRejectedClaimExceptionRes");var z=__name((async(r,s)=>{const i=r.body;const a=ue(i.Error,s);const A=new x({$metadata:me(r),...a});return(0,O.decorateServiceException)(A,i)}),"de_InvalidIdentityTokenExceptionRes");var Y=__name((async(r,s)=>{const i=r.body;const a=pe(i.Error,s);const A=new v({$metadata:me(r),...a});return(0,O.decorateServiceException)(A,i)}),"de_MalformedPolicyDocumentExceptionRes");var J=__name((async(r,s)=>{const i=r.body;const a=ge(i.Error,s);const A=new S({$metadata:me(r),...a});return(0,O.decorateServiceException)(A,i)}),"de_PackedPolicyTooLargeExceptionRes");var W=__name((async(r,s)=>{const i=r.body;const a=he(i.Error,s);const A=new R({$metadata:me(r),...a});return(0,O.decorateServiceException)(A,i)}),"de_RegionDisabledExceptionRes");var X=__name(((r,s)=>{const i={};if(r[Ge]!=null){i[Ge]=r[Ge]}if(r[qe]!=null){i[qe]=r[qe]}if(r[Oe]!=null){const a=K(r[Oe],s);if(r[Oe]?.length===0){i.PolicyArns=[]}Object.entries(a).forEach((([r,s])=>{const a=`PolicyArns.${r}`;i[a]=s}))}if(r[Pe]!=null){i[Pe]=r[Pe]}if(r[De]!=null){i[De]=r[De]}if(r[We]!=null){const a=se(r[We],s);if(r[We]?.length===0){i.Tags=[]}Object.entries(a).forEach((([r,s])=>{const a=`Tags.${r}`;i[a]=s}))}if(r[$e]!=null){const a=ne(r[$e],s);if(r[$e]?.length===0){i.TransitiveTagKeys=[]}Object.entries(a).forEach((([r,s])=>{const a=`TransitiveTagKeys.${r}`;i[a]=s}))}if(r[Te]!=null){i[Te]=r[Te]}if(r[Ye]!=null){i[Ye]=r[Ye]}if(r[Xe]!=null){i[Xe]=r[Xe]}if(r[ze]!=null){i[ze]=r[ze]}if(r[Le]!=null){const a=te(r[Le],s);if(r[Le]?.length===0){i.ProvidedContexts=[]}Object.entries(a).forEach((([r,s])=>{const a=`ProvidedContexts.${r}`;i[a]=s}))}return i}),"se_AssumeRoleRequest");var $=__name(((r,s)=>{const i={};if(r[Ge]!=null){i[Ge]=r[Ge]}if(r[qe]!=null){i[qe]=r[qe]}if(r[et]!=null){i[et]=r[et]}if(r[Me]!=null){i[Me]=r[Me]}if(r[Oe]!=null){const a=K(r[Oe],s);if(r[Oe]?.length===0){i.PolicyArns=[]}Object.entries(a).forEach((([r,s])=>{const a=`PolicyArns.${r}`;i[a]=s}))}if(r[Pe]!=null){i[Pe]=r[Pe]}if(r[De]!=null){i[De]=r[De]}return i}),"se_AssumeRoleWithWebIdentityRequest");var K=__name(((r,s)=>{const i={};let a=1;for(const A of r){if(A===null){continue}const r=Z(A,s);Object.entries(r).forEach((([r,s])=>{i[`member.${a}.${r}`]=s}));a++}return i}),"se_policyDescriptorListType");var Z=__name(((r,s)=>{const i={};if(r[tt]!=null){i[tt]=r[tt]}return i}),"se_PolicyDescriptorType");var ee=__name(((r,s)=>{const i={};if(r[Fe]!=null){i[Fe]=r[Fe]}if(r[xe]!=null){i[xe]=r[xe]}return i}),"se_ProvidedContext");var te=__name(((r,s)=>{const i={};let a=1;for(const A of r){if(A===null){continue}const r=ee(A,s);Object.entries(r).forEach((([r,s])=>{i[`member.${a}.${r}`]=s}));a++}return i}),"se_ProvidedContextsListType");var re=__name(((r,s)=>{const i={};if(r[_e]!=null){i[_e]=r[_e]}if(r[Ze]!=null){i[Ze]=r[Ze]}return i}),"se_Tag");var ne=__name(((r,s)=>{const i={};let a=1;for(const s of r){if(s===null){continue}i[`member.${a}`]=s;a++}return i}),"se_tagKeyListType");var se=__name(((r,s)=>{const i={};let a=1;for(const A of r){if(A===null){continue}const r=re(A,s);Object.entries(r).forEach((([r,s])=>{i[`member.${a}.${r}`]=s}));a++}return i}),"se_tagListType");var ie=__name(((r,s)=>{const i={};if(r[Qe]!=null){i[Qe]=(0,O.expectString)(r[Qe])}if(r[Se]!=null){i[Se]=(0,O.expectString)(r[Se])}return i}),"de_AssumedRoleUser");var oe=__name(((r,s)=>{const i={};if(r[Ne]!=null){i[Ne]=Ae(r[Ne],s)}if(r[we]!=null){i[we]=ie(r[we],s)}if(r[Ue]!=null){i[Ue]=(0,O.strictParseInt32)(r[Ue])}if(r[ze]!=null){i[ze]=(0,O.expectString)(r[ze])}return i}),"de_AssumeRoleResponse");var ae=__name(((r,s)=>{const i={};if(r[Ne]!=null){i[Ne]=Ae(r[Ne],s)}if(r[je]!=null){i[je]=(0,O.expectString)(r[je])}if(r[we]!=null){i[we]=ie(r[we],s)}if(r[Ue]!=null){i[Ue]=(0,O.strictParseInt32)(r[Ue])}if(r[He]!=null){i[He]=(0,O.expectString)(r[He])}if(r[Re]!=null){i[Re]=(0,O.expectString)(r[Re])}if(r[ze]!=null){i[ze]=(0,O.expectString)(r[ze])}return i}),"de_AssumeRoleWithWebIdentityResponse");var Ae=__name(((r,s)=>{const i={};if(r[Be]!=null){i[Be]=(0,O.expectString)(r[Be])}if(r[Ve]!=null){i[Ve]=(0,O.expectString)(r[Ve])}if(r[Je]!=null){i[Je]=(0,O.expectString)(r[Je])}if(r[ke]!=null){i[ke]=(0,O.expectNonNull)((0,O.parseRfc3339DateTimeWithOffset)(r[ke]))}return i}),"de_Credentials");var ce=__name(((r,s)=>{const i={};if(r[rt]!=null){i[rt]=(0,O.expectString)(r[rt])}return i}),"de_ExpiredTokenException");var le=__name(((r,s)=>{const i={};if(r[rt]!=null){i[rt]=(0,O.expectString)(r[rt])}return i}),"de_IDPCommunicationErrorException");var de=__name(((r,s)=>{const i={};if(r[rt]!=null){i[rt]=(0,O.expectString)(r[rt])}return i}),"de_IDPRejectedClaimException");var ue=__name(((r,s)=>{const i={};if(r[rt]!=null){i[rt]=(0,O.expectString)(r[rt])}return i}),"de_InvalidIdentityTokenException");var pe=__name(((r,s)=>{const i={};if(r[rt]!=null){i[rt]=(0,O.expectString)(r[rt])}return i}),"de_MalformedPolicyDocumentException");var ge=__name(((r,s)=>{const i={};if(r[rt]!=null){i[rt]=(0,O.expectString)(r[rt])}return i}),"de_PackedPolicyTooLargeException");var he=__name(((r,s)=>{const i={};if(r[rt]!=null){i[rt]=(0,O.expectString)(r[rt])}return i}),"de_RegionDisabledException");var me=__name((r=>({httpStatusCode:r.statusCode,requestId:r.headers["x-amzn-requestid"]??r.headers["x-amzn-request-id"]??r.headers["x-amz-request-id"],extendedRequestId:r.headers["x-amz-id-2"],cfId:r.headers["x-amz-cf-id"]})),"deserializeMetadata");var fe=(0,O.withBaseException)(B);var Ee=__name((async(r,s,i,a,A)=>{const{hostname:c,protocol:l="https",port:d,path:u}=await r.endpoint();const p={protocol:l,hostname:c,port:d,method:"POST",path:u.endsWith("/")?u.slice(0,-1)+i:u+i,headers:s};if(a!==void 0){p.hostname=a}if(A!==void 0){p.body=A}return new P.HttpRequest(p)}),"buildHttpRpcRequest");var Ce={"content-type":"application/x-www-form-urlencoded"};var ye="2011-06-15";var Ie="Action";var Be="AccessKeyId";var be="AssumeRole";var Qe="AssumedRoleId";var we="AssumedRoleUser";var ve="AssumeRoleWithWebIdentity";var Se="Arn";var Re="Audience";var Ne="Credentials";var xe="ContextAssertion";var De="DurationSeconds";var ke="Expiration";var Te="ExternalId";var _e="Key";var Pe="Policy";var Oe="PolicyArns";var Fe="ProviderArn";var Le="ProvidedContexts";var Me="ProviderId";var Ue="PackedPolicySize";var He="Provider";var Ge="RoleArn";var qe="RoleSessionName";var Ve="SecretAccessKey";var je="SubjectFromWebIdentityToken";var ze="SourceIdentity";var Ye="SerialNumber";var Je="SessionToken";var We="Tags";var Xe="TokenCode";var $e="TransitiveTagKeys";var Ke="Version";var Ze="Value";var et="WebIdentityToken";var tt="arn";var rt="message";var nt=__name((r=>Object.entries(r).map((([r,s])=>(0,O.extendedEncodeURIComponent)(r)+"="+(0,O.extendedEncodeURIComponent)(s))).join("&")),"buildFormUrlencodedString");var st=__name(((r,s)=>{if(s.Error?.Code!==void 0){return s.Error.Code}if(r.statusCode==404){return"NotFound"}}),"loadQueryErrorCode");var it=class extends(h.Command.classBuilder().ep(C.commonParams).m((function(r,s,i,a){return[(0,g.getSerdePlugin)(i,this.serialize,this.deserialize),(0,p.getEndpointPlugin)(i,r.getEndpointParameterInstructions())]})).s("AWSSecurityTokenServiceV20110615","AssumeRole",{}).n("STSClient","AssumeRoleCommand").f(void 0,Q).ser(L).de(U).build()){static{__name(this,"AssumeRoleCommand")}};var ot=i(82918);var At=i(81238);var ct=i(63570);var dt=i(41765);var ut=class extends(ct.Command.classBuilder().ep(dt.commonParams).m((function(r,s,i,a){return[(0,At.getSerdePlugin)(i,this.serialize,this.deserialize),(0,ot.getEndpointPlugin)(i,r.getEndpointParameterInstructions())]})).s("AWSSecurityTokenServiceV20110615","AssumeRoleWithWebIdentity",{}).n("STSClient","AssumeRoleWithWebIdentityCommand").f(D,k).ser(M).de(H).build()){static{__name(this,"AssumeRoleWithWebIdentityCommand")}};var pt=i(68974);var ht={AssumeRoleCommand:it,AssumeRoleWithWebIdentityCommand:ut};var mt=class extends pt.STSClient{static{__name(this,"STS")}};(0,u.createAggregatedClient)(ht,mt);var ft=i(41765);var Et=i(2825);var Ct="us-east-1";var yt=__name((r=>{if(typeof r?.Arn==="string"){const s=r.Arn.split(":");if(s.length>4&&s[4]!==""){return s[4]}}return void 0}),"getAccountIdFromAssumedRoleUser");var It=__name((async(r,s,i)=>{const a=typeof r==="function"?await r():r;const A=typeof s==="function"?await s():s;i?.debug?.("@aws-sdk/client-sts::resolveRegion","accepting first of:",`${a} (provider)`,`${A} (parent client)`,`${Ct} (STS default)`);return a??A??Ct}),"resolveRegion");var Bt=__name(((r,s)=>{let i;let a;return async(A,c)=>{a=A;if(!i){const{logger:A=r?.parentClientConfig?.logger,region:c,requestHandler:l=r?.parentClientConfig?.requestHandler,credentialProviderLogger:d}=r;const u=await It(c,r?.parentClientConfig?.region,d);const p=!Qt(l);i=new s({profile:r?.parentClientConfig?.profile,credentialDefaultProvider:()=>async()=>a,region:u,requestHandler:p?l:void 0,logger:A})}const{Credentials:l,AssumedRoleUser:d}=await i.send(new it(c));if(!l||!l.AccessKeyId||!l.SecretAccessKey){throw new Error(`Invalid response from STS.assumeRole call with role ${c.RoleArn}`)}const u=yt(d);const p={accessKeyId:l.AccessKeyId,secretAccessKey:l.SecretAccessKey,sessionToken:l.SessionToken,expiration:l.Expiration,...l.CredentialScope&&{credentialScope:l.CredentialScope},...u&&{accountId:u}};(0,Et.setCredentialFeature)(p,"CREDENTIALS_STS_ASSUME_ROLE","i");return p}}),"getDefaultRoleAssumer");var bt=__name(((r,s)=>{let i;return async a=>{if(!i){const{logger:a=r?.parentClientConfig?.logger,region:A,requestHandler:c=r?.parentClientConfig?.requestHandler,credentialProviderLogger:l}=r;const d=await It(A,r?.parentClientConfig?.region,l);const u=!Qt(c);i=new s({profile:r?.parentClientConfig?.profile,region:d,requestHandler:u?c:void 0,logger:a})}const{Credentials:A,AssumedRoleUser:c}=await i.send(new ut(a));if(!A||!A.AccessKeyId||!A.SecretAccessKey){throw new Error(`Invalid response from STS.assumeRoleWithWebIdentity call with role ${a.RoleArn}`)}const l=yt(c);const d={accessKeyId:A.AccessKeyId,secretAccessKey:A.SecretAccessKey,sessionToken:A.SessionToken,expiration:A.Expiration,...A.CredentialScope&&{credentialScope:A.CredentialScope},...l&&{accountId:l}};if(l){(0,Et.setCredentialFeature)(d,"RESOLVED_ACCOUNT_ID","T")}(0,Et.setCredentialFeature)(d,"CREDENTIALS_STS_ASSUME_ROLE_WEB_ID","k");return d}}),"getDefaultRoleAssumerWithWebIdentity");var Qt=__name((r=>r?.metadata?.handlerProtocol==="h2"),"isH2");var wt=i(68974);var vt=__name(((r,s)=>{if(!s)return r;else return class CustomizableSTSClient extends r{static{__name(this,"CustomizableSTSClient")}constructor(r){super(r);for(const r of s){this.middlewareStack.use(r)}}}}),"getCustomizableStsClientCtor");var St=__name(((r={},s)=>Bt(r,vt(wt.STSClient,s))),"getDefaultRoleAssumer");var Rt=__name(((r={},s)=>bt(r,vt(wt.STSClient,s))),"getDefaultRoleAssumerWithWebIdentity");var Nt=__name((r=>s=>r({roleAssumer:St(s),roleAssumerWithWebIdentity:Rt(s),...s})),"decorateDefaultCredentialProvider");0&&0},1798:(r,s,i)=>{"use strict";Object.defineProperty(s,"__esModule",{value:true});s.getRuntimeConfig=void 0;const a=i(4351);const A=a.__importDefault(i(88842));const c=i(59963);const l=i(98095);const d=i(53098);const u=i(55829);const p=i(3081);const g=i(96039);const h=i(33461);const C=i(20258);const y=i(68075);const I=i(84902);const B=i(75238);const b=i(63570);const Q=i(72429);const w=i(63570);const getRuntimeConfig=r=>{(0,w.emitWarningIfUnsupportedVersion)(process.version);const s=(0,Q.resolveDefaultsModeConfig)(r);const defaultConfigProvider=()=>s().then(b.loadConfigsForDefaultMode);const i=(0,B.getRuntimeConfig)(r);(0,c.emitWarningIfUnsupportedVersion)(process.version);const a={profile:r?.profile};return{...i,...r,runtime:"node",defaultsMode:s,bodyLengthChecker:r?.bodyLengthChecker??y.calculateBodyLength,defaultUserAgentProvider:r?.defaultUserAgentProvider??(0,l.createDefaultUserAgentProvider)({serviceId:i.serviceId,clientVersion:A.default.version}),httpAuthSchemes:r?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:s=>s.getIdentityProvider("aws.auth#sigv4")||(async s=>await r.credentialDefaultProvider(s?.__config||{})()),signer:new c.AwsSdkSigV4Signer},{schemeId:"smithy.api#noAuth",identityProvider:r=>r.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),signer:new u.NoAuthSigner}],maxAttempts:r?.maxAttempts??(0,h.loadConfig)(g.NODE_MAX_ATTEMPT_CONFIG_OPTIONS,r),region:r?.region??(0,h.loadConfig)(d.NODE_REGION_CONFIG_OPTIONS,{...d.NODE_REGION_CONFIG_FILE_OPTIONS,...a}),requestHandler:C.NodeHttpHandler.create(r?.requestHandler??defaultConfigProvider),retryMode:r?.retryMode??(0,h.loadConfig)({...g.NODE_RETRY_MODE_CONFIG_OPTIONS,default:async()=>(await defaultConfigProvider()).retryMode||I.DEFAULT_RETRY_MODE},r),sha256:r?.sha256??p.Hash.bind(null,"sha256"),streamCollector:r?.streamCollector??C.streamCollector,useDualstackEndpoint:r?.useDualstackEndpoint??(0,h.loadConfig)(d.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS,a),useFipsEndpoint:r?.useFipsEndpoint??(0,h.loadConfig)(d.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS,a),userAgentAppId:r?.userAgentAppId??(0,h.loadConfig)(l.NODE_APP_ID_CONFIG_OPTIONS,a)}};s.getRuntimeConfig=getRuntimeConfig},75238:(r,s,i)=>{"use strict";Object.defineProperty(s,"__esModule",{value:true});s.getRuntimeConfig=void 0;const a=i(59963);const A=i(55829);const c=i(63570);const l=i(14681);const d=i(75600);const u=i(41895);const p=i(48013);const g=i(47561);const getRuntimeConfig=r=>({apiVersion:"2011-06-15",base64Decoder:r?.base64Decoder??d.fromBase64,base64Encoder:r?.base64Encoder??d.toBase64,disableHostPrefix:r?.disableHostPrefix??false,endpointProvider:r?.endpointProvider??g.defaultEndpointResolver,extensions:r?.extensions??[],httpAuthSchemeProvider:r?.httpAuthSchemeProvider??p.defaultSTSHttpAuthSchemeProvider,httpAuthSchemes:r?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:r=>r.getIdentityProvider("aws.auth#sigv4"),signer:new a.AwsSdkSigV4Signer},{schemeId:"smithy.api#noAuth",identityProvider:r=>r.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),signer:new A.NoAuthSigner}],logger:r?.logger??new c.NoOpLogger,serviceId:r?.serviceId??"STS",urlParser:r?.urlParser??l.parseUrl,utf8Decoder:r?.utf8Decoder??u.fromUtf8,utf8Encoder:r?.utf8Encoder??u.toUtf8});s.getRuntimeConfig=getRuntimeConfig},30669:(r,s,i)=>{"use strict";Object.defineProperty(s,"__esModule",{value:true});s.resolveRuntimeExtensions=void 0;const a=i(18156);const A=i(64418);const c=i(63570);const l=i(14935);const asPartial=r=>r;const resolveRuntimeExtensions=(r,s)=>{const i={...asPartial((0,a.getAwsRegionExtensionConfiguration)(r)),...asPartial((0,c.getDefaultExtensionConfiguration)(r)),...asPartial((0,A.getHttpHandlerExtensionConfiguration)(r)),...asPartial((0,l.getHttpAuthExtensionConfiguration)(r))};s.forEach((r=>r.configure(i)));return{...r,...(0,a.resolveAwsRegionExtensionConfiguration)(i),...(0,c.resolveDefaultRuntimeConfig)(i),...(0,A.resolveHttpHandlerRuntimeConfig)(i),...(0,l.resolveHttpAuthRuntimeConfig)(i)}};s.resolveRuntimeExtensions=resolveRuntimeExtensions},18156:r=>{"use strict";var s=Object.defineProperty;var i=Object.getOwnPropertyDescriptor;var a=Object.getOwnPropertyNames;var A=Object.prototype.hasOwnProperty;var __name=(r,i)=>s(r,"name",{value:i,configurable:true});var __export=(r,i)=>{for(var a in i)s(r,a,{get:i[a],enumerable:true})};var __copyProps=(r,c,l,d)=>{if(c&&typeof c==="object"||typeof c==="function"){for(let u of a(c))if(!A.call(r,u)&&u!==l)s(r,u,{get:()=>c[u],enumerable:!(d=i(c,u))||d.enumerable})}return r};var __toCommonJS=r=>__copyProps(s({},"__esModule",{value:true}),r);var c={};__export(c,{NODE_REGION_CONFIG_FILE_OPTIONS:()=>h,NODE_REGION_CONFIG_OPTIONS:()=>g,REGION_ENV_NAME:()=>u,REGION_INI_NAME:()=>p,getAwsRegionExtensionConfiguration:()=>l,resolveAwsRegionExtensionConfiguration:()=>d,resolveRegionConfig:()=>I});r.exports=__toCommonJS(c);var l=__name((r=>{let s=__name((async()=>{if(r.region===void 0){throw new Error("Region is missing from runtimeConfig")}const s=r.region;if(typeof s==="string"){return s}return s()}),"runtimeConfigRegion");return{setRegion(r){s=r},region(){return s}}}),"getAwsRegionExtensionConfiguration");var d=__name((r=>({region:r.region()})),"resolveAwsRegionExtensionConfiguration");var u="AWS_REGION";var p="region";var g={environmentVariableSelector:r=>r[u],configFileSelector:r=>r[p],default:()=>{throw new Error("Region is missing")}};var h={preferredFile:"credentials"};var C=__name((r=>typeof r==="string"&&(r.startsWith("fips-")||r.endsWith("-fips"))),"isFipsRegion");var y=__name((r=>C(r)?["fips-aws-global","aws-fips"].includes(r)?"us-east-1":r.replace(/fips-(dkr-|prod-)?|-fips/,""):r),"getRealRegion");var I=__name((r=>{const{region:s,useFipsEndpoint:i}=r;if(!s){throw new Error("Region is missing")}return{...r,region:async()=>{if(typeof s==="string"){return y(s)}const r=await s();return y(r)},useFipsEndpoint:async()=>{const r=typeof s==="string"?s:await s();if(C(r)){return true}return typeof i!=="function"?Promise.resolve(!!i):i()}}}),"resolveRegionConfig");0&&0},52843:(r,s,i)=>{"use strict";var a=Object.create;var A=Object.defineProperty;var c=Object.getOwnPropertyDescriptor;var l=Object.getOwnPropertyNames;var d=Object.getPrototypeOf;var u=Object.prototype.hasOwnProperty;var __name=(r,s)=>A(r,"name",{value:s,configurable:true});var __export=(r,s)=>{for(var i in s)A(r,i,{get:s[i],enumerable:true})};var __copyProps=(r,s,i,a)=>{if(s&&typeof s==="object"||typeof s==="function"){for(let d of l(s))if(!u.call(r,d)&&d!==i)A(r,d,{get:()=>s[d],enumerable:!(a=c(s,d))||a.enumerable})}return r};var __toESM=(r,s,i)=>(i=r!=null?a(d(r)):{},__copyProps(s||!r||!r.__esModule?A(i,"default",{value:r,enumerable:true}):i,r));var __toCommonJS=r=>__copyProps(A({},"__esModule",{value:true}),r);var p={};__export(p,{fromSso:()=>N,fromStatic:()=>x,nodeProvider:()=>D});r.exports=__toCommonJS(p);var g=5*60*1e3;var h=`To refresh this SSO session run 'aws sso login' with the corresponding profile.`;var C=__name((async(r,s={})=>{const{SSOOIDCClient:a}=await Promise.resolve().then((()=>__toESM(i(27334))));const A=new a(Object.assign({},s.clientConfig??{},{region:r??s.clientConfig?.region,logger:s.clientConfig?.logger??s.parentClientConfig?.logger}));return A}),"getSsoOidcClient");var y=__name((async(r,s,a={})=>{const{CreateTokenCommand:A}=await Promise.resolve().then((()=>__toESM(i(27334))));const c=await C(s,a);return c.send(new A({clientId:r.clientId,clientSecret:r.clientSecret,refreshToken:r.refreshToken,grantType:"refresh_token"}))}),"getNewSsoOidcToken");var I=i(79721);var B=__name((r=>{if(r.expiration&&r.expiration.getTime(){if(typeof s==="undefined"){throw new I.TokenProviderError(`Value not present for '${r}' in SSO Token${i?". Cannot refresh":""}. ${h}`,false)}}),"validateTokenKey");var Q=i(43507);var w=i(57147);var{writeFile:v}=w.promises;var S=__name(((r,s)=>{const i=(0,Q.getSSOTokenFilepath)(r);const a=JSON.stringify(s,null,2);return v(i,a)}),"writeSSOTokenToFile");var R=new Date(0);var N=__name(((r={})=>async({callerClientConfig:s}={})=>{const i={...r,parentClientConfig:{...s,...r.parentClientConfig}};i.logger?.debug("@aws-sdk/token-providers - fromSso");const a=await(0,Q.parseKnownFiles)(i);const A=(0,Q.getProfileName)({profile:i.profile??s?.profile});const c=a[A];if(!c){throw new I.TokenProviderError(`Profile '${A}' could not be found in shared credentials file.`,false)}else if(!c["sso_session"]){throw new I.TokenProviderError(`Profile '${A}' is missing required property 'sso_session'.`)}const l=c["sso_session"];const d=await(0,Q.loadSsoSessionData)(i);const u=d[l];if(!u){throw new I.TokenProviderError(`Sso session '${l}' could not be found in shared credentials file.`,false)}for(const r of["sso_start_url","sso_region"]){if(!u[r]){throw new I.TokenProviderError(`Sso session '${l}' is missing required property '${r}'.`,false)}}const p=u["sso_start_url"];const C=u["sso_region"];let w;try{w=await(0,Q.getSSOTokenFromFile)(l)}catch(r){throw new I.TokenProviderError(`The SSO session token associated with profile=${A} was not found or is invalid. ${h}`,false)}b("accessToken",w.accessToken);b("expiresAt",w.expiresAt);const{accessToken:v,expiresAt:N}=w;const x={token:v,expiration:new Date(N)};if(x.expiration.getTime()-Date.now()>g){return x}if(Date.now()-R.getTime()<30*1e3){B(x);return x}b("clientId",w.clientId,true);b("clientSecret",w.clientSecret,true);b("refreshToken",w.refreshToken,true);try{R.setTime(Date.now());const r=await y(w,C,i);b("accessToken",r.accessToken);b("expiresIn",r.expiresIn);const s=new Date(Date.now()+r.expiresIn*1e3);try{await S(l,{...w,accessToken:r.accessToken,expiresAt:s.toISOString(),refreshToken:r.refreshToken})}catch(r){}return{token:r.accessToken,expiration:s}}catch(r){B(x);return x}}),"fromSso");var x=__name((({token:r,logger:s})=>async()=>{s?.debug("@aws-sdk/token-providers - fromStatic");if(!r||!r.token){throw new I.TokenProviderError(`Please pass a valid token to fromStatic`,false)}return r}),"fromStatic");var D=__name(((r={})=>(0,I.memoize)((0,I.chain)(N(r),(async()=>{throw new I.TokenProviderError("Could not load token from any providers",false)})),(r=>r.expiration!==void 0&&r.expiration.getTime()-Date.now()<3e5),(r=>r.expiration!==void 0))),"nodeProvider");0&&0},13350:(r,s,i)=>{"use strict";var a=Object.defineProperty;var A=Object.getOwnPropertyDescriptor;var c=Object.getOwnPropertyNames;var l=Object.prototype.hasOwnProperty;var __name=(r,s)=>a(r,"name",{value:s,configurable:true});var __export=(r,s)=>{for(var i in s)a(r,i,{get:s[i],enumerable:true})};var __copyProps=(r,s,i,d)=>{if(s&&typeof s==="object"||typeof s==="function"){for(let u of c(s))if(!l.call(r,u)&&u!==i)a(r,u,{get:()=>s[u],enumerable:!(d=A(s,u))||d.enumerable})}return r};var __toCommonJS=r=>__copyProps(a({},"__esModule",{value:true}),r);var d={};__export(d,{ConditionObject:()=>u.ConditionObject,DeprecatedObject:()=>u.DeprecatedObject,EndpointError:()=>u.EndpointError,EndpointObject:()=>u.EndpointObject,EndpointObjectHeaders:()=>u.EndpointObjectHeaders,EndpointObjectProperties:()=>u.EndpointObjectProperties,EndpointParams:()=>u.EndpointParams,EndpointResolverOptions:()=>u.EndpointResolverOptions,EndpointRuleObject:()=>u.EndpointRuleObject,ErrorRuleObject:()=>u.ErrorRuleObject,EvaluateOptions:()=>u.EvaluateOptions,Expression:()=>u.Expression,FunctionArgv:()=>u.FunctionArgv,FunctionObject:()=>u.FunctionObject,FunctionReturn:()=>u.FunctionReturn,ParameterObject:()=>u.ParameterObject,ReferenceObject:()=>u.ReferenceObject,ReferenceRecord:()=>u.ReferenceRecord,RuleSetObject:()=>u.RuleSetObject,RuleSetRules:()=>u.RuleSetRules,TreeRuleObject:()=>u.TreeRuleObject,awsEndpointFunctions:()=>S,getUserAgentPrefix:()=>v,isIpAddress:()=>u.isIpAddress,partition:()=>b,resolveEndpoint:()=>u.resolveEndpoint,setPartitionInfo:()=>Q,useDefaultPartitionInfo:()=>w});r.exports=__toCommonJS(d);var u=i(45473);var p=__name(((r,s=false)=>{if(s){for(const s of r.split(".")){if(!p(s)){return false}}return true}if(!(0,u.isValidHostLabel)(r)){return false}if(r.length<3||r.length>63){return false}if(r!==r.toLowerCase()){return false}if((0,u.isIpAddress)(r)){return false}return true}),"isVirtualHostableS3Bucket");var g=":";var h="/";var C=__name((r=>{const s=r.split(g);if(s.length<6)return null;const[i,a,A,c,l,...d]=s;if(i!=="arn"||a===""||A===""||d.join(g)==="")return null;const u=d.map((r=>r.split(h))).flat();return{partition:a,service:A,region:c,accountId:l,resourceId:u}}),"parseArn");var y={partitions:[{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-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-7":{description:"Asia Pacific (Thailand)"},"aws-global":{description:"AWS Standard 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 China global region"},"cn-north-1":{description:"China (Beijing)"},"cn-northwest-1":{description:"China (Ningxia)"}}},{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 GovCloud (US) global region"},"us-gov-east-1":{description:"AWS GovCloud (US-East)"},"us-gov-west-1":{description:"AWS GovCloud (US-West)"}}},{id:"aws-iso",outputs:{dnsSuffix:"c2s.ic.gov",dualStackDnsSuffix:"c2s.ic.gov",implicitGlobalRegion:"us-iso-east-1",name:"aws-iso",supportsDualStack:false,supportsFIPS:true},regionRegex:"^us\\-iso\\-\\w+\\-\\d+$",regions:{"aws-iso-global":{description:"AWS ISO (US) 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:"sc2s.sgov.gov",implicitGlobalRegion:"us-isob-east-1",name:"aws-iso-b",supportsDualStack:false,supportsFIPS:true},regionRegex:"^us\\-isob\\-\\w+\\-\\d+$",regions:{"aws-iso-b-global":{description:"AWS ISOB (US) global region"},"us-isob-east-1":{description:"US ISOB East (Ohio)"}}},{id:"aws-iso-e",outputs:{dnsSuffix:"cloud.adc-e.uk",dualStackDnsSuffix:"cloud.adc-e.uk",implicitGlobalRegion:"eu-isoe-west-1",name:"aws-iso-e",supportsDualStack:false,supportsFIPS:true},regionRegex:"^eu\\-isoe\\-\\w+\\-\\d+$",regions:{"eu-isoe-west-1":{description:"EU ISOE West"}}},{id:"aws-iso-f",outputs:{dnsSuffix:"csp.hci.ic.gov",dualStackDnsSuffix:"csp.hci.ic.gov",implicitGlobalRegion:"us-isof-south-1",name:"aws-iso-f",supportsDualStack:false,supportsFIPS:true},regionRegex:"^us\\-isof\\-\\w+\\-\\d+$",regions:{"aws-iso-f-global":{description:"AWS ISOF global region"},"us-isof-east-1":{description:"US ISOF EAST"},"us-isof-south-1":{description:"US ISOF SOUTH"}}}],version:"1.1"};var I=y;var B="";var b=__name((r=>{const{partitions:s}=I;for(const i of s){const{regions:s,outputs:a}=i;for(const[i,A]of Object.entries(s)){if(i===r){return{...a,...A}}}}for(const i of s){const{regionRegex:s,outputs:a}=i;if(new RegExp(s).test(r)){return{...a}}}const i=s.find((r=>r.id==="aws"));if(!i){throw new Error("Provided region was not found in the partition array or regex, and default partition with id 'aws' doesn't exist.")}return{...i.outputs}}),"partition");var Q=__name(((r,s="")=>{I=r;B=s}),"setPartitionInfo");var w=__name((()=>{Q(y,"")}),"useDefaultPartitionInfo");var v=__name((()=>B),"getUserAgentPrefix");var S={isVirtualHostableS3Bucket:p,parseArn:C,partition:b};u.customEndpointFunctions.aws=S;0&&0},98095:(r,s,i)=>{"use strict";var a=Object.defineProperty;var A=Object.getOwnPropertyDescriptor;var c=Object.getOwnPropertyNames;var l=Object.prototype.hasOwnProperty;var __name=(r,s)=>a(r,"name",{value:s,configurable:true});var __export=(r,s)=>{for(var i in s)a(r,i,{get:s[i],enumerable:true})};var __copyProps=(r,s,i,d)=>{if(s&&typeof s==="object"||typeof s==="function"){for(let u of c(s))if(!l.call(r,u)&&u!==i)a(r,u,{get:()=>s[u],enumerable:!(d=A(s,u))||d.enumerable})}return r};var __toCommonJS=r=>__copyProps(a({},"__esModule",{value:true}),r);var d={};__export(d,{NODE_APP_ID_CONFIG_OPTIONS:()=>w,UA_APP_ID_ENV_NAME:()=>B,UA_APP_ID_INI_NAME:()=>b,createDefaultUserAgentProvider:()=>C,crtAvailability:()=>g,defaultUserAgent:()=>y});r.exports=__toCommonJS(d);var u=i(22037);var p=i(77282);var g={isCrtAvailable:false};var h=__name((()=>{if(g.isCrtAvailable){return["md/crt-avail"]}return null}),"isCrtAvailable");var C=__name((({serviceId:r,clientVersion:s})=>async i=>{const a=[["aws-sdk-js",s],["ua","2.1"],[`os/${(0,u.platform)()}`,(0,u.release)()],["lang/js"],["md/nodejs",`${p.versions.node}`]];const A=h();if(A){a.push(A)}if(r){a.push([`api/${r}`,s])}if(p.env.AWS_EXECUTION_ENV){a.push([`exec-env/${p.env.AWS_EXECUTION_ENV}`])}const c=await(i?.userAgentAppId?.());const l=c?[...a,[`app/${c}`]]:[...a];return l}),"createDefaultUserAgentProvider");var y=C;var I=i(64688);var B="AWS_SDK_UA_APP_ID";var b="sdk_ua_app_id";var Q="sdk-ua-app-id";var w={environmentVariableSelector:r=>r[B],configFileSelector:r=>r[b]??r[Q],default:I.DEFAULT_UA_APP_ID};0&&0},52557:(r,s)=>{"use strict";Object.defineProperty(s,"__esModule",{value:true});const i=new WeakMap;const a=new WeakMap;class AbortSignal{constructor(){this.onabort=null;i.set(this,[]);a.set(this,false)}get aborted(){if(!a.has(this)){throw new TypeError("Expected `this` to be an instance of AbortSignal.")}return a.get(this)}static get none(){return new AbortSignal}addEventListener(r,s){if(!i.has(this)){throw new TypeError("Expected `this` to be an instance of AbortSignal.")}const a=i.get(this);a.push(s)}removeEventListener(r,s){if(!i.has(this)){throw new TypeError("Expected `this` to be an instance of AbortSignal.")}const a=i.get(this);const A=a.indexOf(s);if(A>-1){a.splice(A,1)}}dispatchEvent(r){throw new Error("This is a stub dispatchEvent implementation that should not be used. It only exists for type-checking purposes.")}}function abortSignal(r){if(r.aborted){return}if(r.onabort){r.onabort.call(r)}const s=i.get(r);if(s){s.slice().forEach((s=>{s.call(r,{type:"abort"})}))}a.set(r,true)}class AbortError extends Error{constructor(r){super(r);this.name="AbortError"}}class AbortController{constructor(r){this._signal=new AbortSignal;if(!r){return}if(!Array.isArray(r)){r=arguments}for(const s of r){if(s.aborted){this.abort()}else{s.addEventListener("abort",(()=>{this.abort()}))}}}get signal(){return this._signal}abort(){abortSignal(this._signal)}static timeout(r){const s=new AbortSignal;const i=setTimeout(abortSignal,r,s);if(typeof i.unref==="function"){i.unref()}return s}}s.AbortController=AbortController;s.AbortError=AbortError;s.AbortSignal=AbortSignal},39645:(r,s)=>{"use strict";Object.defineProperty(s,"__esModule",{value:true});class AzureKeyCredential{constructor(r){if(!r){throw new Error("key must be a non-empty string")}this._key=r}get key(){return this._key}update(r){this._key=r}}function isDefined(r){return typeof r!=="undefined"&&r!==null}function isObjectWithProperties(r,s){if(!isDefined(r)||typeof r!=="object"){return false}for(const i of s){if(!objectHasProperty(r,i)){return false}}return true}function objectHasProperty(r,s){return typeof r==="object"&&s in r}class AzureNamedKeyCredential{constructor(r,s){if(!r||!s){throw new TypeError("name and key must be non-empty strings")}this._name=r;this._key=s}get key(){return this._key}get name(){return this._name}update(r,s){if(!r||!s){throw new TypeError("newName and newKey must be non-empty strings")}this._name=r;this._key=s}}function isNamedKeyCredential(r){return isObjectWithProperties(r,["name","key"])&&typeof r.key==="string"&&typeof r.name==="string"}class AzureSASCredential{constructor(r){if(!r){throw new Error("shared access signature must be a non-empty string")}this._signature=r}get signature(){return this._signature}update(r){if(!r){throw new Error("shared access signature must be a non-empty string")}this._signature=r}}function isSASCredential(r){return isObjectWithProperties(r,["signature"])&&typeof r.signature==="string"}function isTokenCredential(r){const s=r;return s&&typeof s.getToken==="function"&&(s.signRequest===undefined||s.getToken.length>0)}s.AzureKeyCredential=AzureKeyCredential;s.AzureNamedKeyCredential=AzureNamedKeyCredential;s.AzureSASCredential=AzureSASCredential;s.isNamedKeyCredential=isNamedKeyCredential;s.isSASCredential=isSASCredential;s.isTokenCredential=isTokenCredential},24607:(r,s,i)=>{"use strict";Object.defineProperty(s,"__esModule",{value:true});var a=i(75840);var A=i(73837);var c=i(4351);var l=i(66189);var d=i(51333);var u=i(3233);var p=i(39645);var g=i(22037);var h=i(13685);var C=i(95687);var y=i(52557);var I=i(74294);var B=i(12781);var b=i(46279);var Q=i(80467);var w=i(94175);function _interopDefaultLegacy(r){return r&&typeof r==="object"&&"default"in r?r:{default:r}}function _interopNamespace(r){if(r&&r.__esModule)return r;var s=Object.create(null);if(r){Object.keys(r).forEach((function(i){if(i!=="default"){var a=Object.getOwnPropertyDescriptor(r,i);Object.defineProperty(s,i,a.get?a:{enumerable:true,get:function(){return r[i]}})}}))}s["default"]=r;return Object.freeze(s)}var v=_interopNamespace(l);var S=_interopNamespace(g);var R=_interopNamespace(h);var N=_interopNamespace(C);var x=_interopNamespace(I);var D=_interopDefaultLegacy(b);var k=_interopDefaultLegacy(Q);function getHeaderKey(r){return r.toLowerCase()}function isHttpHeadersLike(r){if(r&&typeof r==="object"){const s=r;if(typeof s.rawHeaders==="function"&&typeof s.clone==="function"&&typeof s.get==="function"&&typeof s.set==="function"&&typeof s.contains==="function"&&typeof s.remove==="function"&&typeof s.headersArray==="function"&&typeof s.headerValues==="function"&&typeof s.headerNames==="function"&&typeof s.toJson==="function"){return true}}return false}class HttpHeaders{constructor(r){this._headersMap={};if(r){for(const s in r){this.set(s,r[s])}}}set(r,s){this._headersMap[getHeaderKey(r)]={name:r,value:s.toString()}}get(r){const s=this._headersMap[getHeaderKey(r)];return!s?undefined:s.value}contains(r){return!!this._headersMap[getHeaderKey(r)]}remove(r){const s=this.contains(r);delete this._headersMap[getHeaderKey(r)];return s}rawHeaders(){return this.toJson({preserveCase:true})}headersArray(){const r=[];for(const s in this._headersMap){r.push(this._headersMap[s])}return r}headerNames(){const r=[];const s=this.headersArray();for(let i=0;i{i=i.then(r)}));return i}function promiseToCallback(r){if(typeof r.then!=="function"){throw new Error("The provided input is not a Promise.")}return s=>{r.then((r=>s(undefined,r))).catch((r=>{s(r)}))}}function promiseToServiceCallback(r){if(typeof r.then!=="function"){throw new Error("The provided input is not a Promise.")}return s=>{r.then((r=>process.nextTick(s,undefined,r.parsedBody,r.request,r))).catch((r=>{process.nextTick(s,r)}))}}function prepareXMLRootList(r,s,i,a){if(!Array.isArray(r)){r=[r]}if(!i||!a){return{[s]:r}}const A={[s]:r};A[_]={[i]:a};return A}function applyMixins(r,s){const i=r;s.forEach((r=>{Object.getOwnPropertyNames(r.prototype).forEach((s=>{i.prototype[s]=r.prototype[s]}))}))}const L=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function isDuration(r){return L.test(r)}function replaceAll(r,s,i){return!r||!s?r:r.split(s).join(i||"")}function isPrimitiveType(r){return typeof r!=="object"&&typeof r!=="function"||r===null}function getEnvironmentValue(r){if(process.env[r]){return process.env[r]}else if(process.env[r.toLowerCase()]){return process.env[r.toLowerCase()]}return undefined}function isObject(r){return typeof r==="object"&&r!==null&&!Array.isArray(r)&&!(r instanceof RegExp)&&!(r instanceof Date)}class Serializer{constructor(r={},s){this.modelMappers=r;this.isXML=s}validateConstraints(r,s,i){const failValidation=(r,a)=>{throw new Error(`"${i}" with value "${s}" should satisfy the constraint "${r}": ${a}.`)};if(r.constraints&&s!=undefined){const i=s;const{ExclusiveMaximum:a,ExclusiveMinimum:A,InclusiveMaximum:c,InclusiveMinimum:l,MaxItems:d,MaxLength:u,MinItems:p,MinLength:g,MultipleOf:h,Pattern:C,UniqueItems:y}=r.constraints;if(a!=undefined&&i>=a){failValidation("ExclusiveMaximum",a)}if(A!=undefined&&i<=A){failValidation("ExclusiveMinimum",A)}if(c!=undefined&&i>c){failValidation("InclusiveMaximum",c)}if(l!=undefined&&id){failValidation("MaxItems",d)}if(u!=undefined&&I.length>u){failValidation("MaxLength",u)}if(p!=undefined&&I.lengthi.indexOf(r)!==s))){failValidation("UniqueItems",y)}}}serialize(r,s,i,a={}){var A,c,l;const d={rootName:(A=a.rootName)!==null&&A!==void 0?A:"",includeRoot:(c=a.includeRoot)!==null&&c!==void 0?c:false,xmlCharKey:(l=a.xmlCharKey)!==null&&l!==void 0?l:P};let u={};const p=r.type.name;if(!i){i=r.serializedName}if(p.match(/^Sequence$/i)!==null){u=[]}if(r.isConstant){s=r.defaultValue}const{required:g,nullable:h}=r;if(g&&h&&s===undefined){throw new Error(`${i} cannot be undefined.`)}if(g&&!h&&s==undefined){throw new Error(`${i} cannot be null or undefined.`)}if(!g&&h===false&&s===null){throw new Error(`${i} cannot be null.`)}if(s==undefined){u=s}else{if(p.match(/^any$/i)!==null){u=s}else if(p.match(/^(Number|String|Boolean|Object|Stream|Uuid)$/i)!==null){u=serializeBasicTypes(p,i,s)}else if(p.match(/^Enum$/i)!==null){const a=r;u=serializeEnumType(i,a.type.allowedValues,s)}else if(p.match(/^(Date|DateTime|TimeSpan|DateTimeRfc1123|UnixTime)$/i)!==null){u=serializeDateTypes(p,s,i)}else if(p.match(/^ByteArray$/i)!==null){u=serializeByteArrayType(i,s)}else if(p.match(/^Base64Url$/i)!==null){u=serializeBase64UrlType(i,s)}else if(p.match(/^Sequence$/i)!==null){u=serializeSequenceType(this,r,s,i,Boolean(this.isXML),d)}else if(p.match(/^Dictionary$/i)!==null){u=serializeDictionaryType(this,r,s,i,Boolean(this.isXML),d)}else if(p.match(/^Composite$/i)!==null){u=serializeCompositeType(this,r,s,i,Boolean(this.isXML),d)}}return u}deserialize(r,s,i,a={}){var A,c,l;const d={rootName:(A=a.rootName)!==null&&A!==void 0?A:"",includeRoot:(c=a.includeRoot)!==null&&c!==void 0?c:false,xmlCharKey:(l=a.xmlCharKey)!==null&&l!==void 0?l:P};if(s==undefined){if(this.isXML&&r.type.name==="Sequence"&&!r.xmlIsWrapped){s=[]}if(r.defaultValue!==undefined){s=r.defaultValue}return s}let u;const p=r.type.name;if(!i){i=r.serializedName}if(p.match(/^Composite$/i)!==null){u=deserializeCompositeType(this,r,s,i,d)}else{if(this.isXML){const r=d.xmlCharKey;const i=s;if(i[_]!=undefined&&i[r]!=undefined){s=i[r]}}if(p.match(/^Number$/i)!==null){u=parseFloat(s);if(isNaN(u)){u=s}}else if(p.match(/^Boolean$/i)!==null){if(s==="true"){u=true}else if(s==="false"){u=false}else{u=s}}else if(p.match(/^(String|Enum|Object|Stream|Uuid|TimeSpan|any)$/i)!==null){u=s}else if(p.match(/^(Date|DateTime|DateTimeRfc1123)$/i)!==null){u=new Date(s)}else if(p.match(/^UnixTime$/i)!==null){u=unixTimeToDate(s)}else if(p.match(/^ByteArray$/i)!==null){u=decodeString(s)}else if(p.match(/^Base64Url$/i)!==null){u=base64UrlToByteArray(s)}else if(p.match(/^Sequence$/i)!==null){u=deserializeSequenceType(this,r,s,i,d)}else if(p.match(/^Dictionary$/i)!==null){u=deserializeDictionaryType(this,r,s,i,d)}}if(r.isConstant){u=r.defaultValue}return u}}function trimEnd(r,s){let i=r.length;while(i-1>=0&&r[i-1]===s){--i}return r.substr(0,i)}function bufferToBase64Url(r){if(!r){return undefined}if(!(r instanceof Uint8Array)){throw new Error(`Please provide an input of type Uint8Array for converting to Base64Url.`)}const s=encodeByteArray(r);return trimEnd(s,"=").replace(/\+/g,"-").replace(/\//g,"_")}function base64UrlToByteArray(r){if(!r){return undefined}if(r&&typeof r.valueOf()!=="string"){throw new Error("Please provide an input of type string for converting to Uint8Array")}r=r.replace(/-/g,"+").replace(/_/g,"/");return decodeString(r)}function splitSerializeName(r){const s=[];let i="";if(r){const a=r.split(".");for(const r of a){if(r.charAt(r.length-1)==="\\"){i+=r.substr(0,r.length-1)+"."}else{i+=r;s.push(i);i=""}}}return s}function dateToUnixTime(r){if(!r){return undefined}if(typeof r.valueOf()==="string"){r=new Date(r)}return Math.floor(r.getTime()/1e3)}function unixTimeToDate(r){if(!r){return undefined}return new Date(r*1e3)}function serializeBasicTypes(r,s,i){if(i!==null&&i!==undefined){if(r.match(/^Number$/i)!==null){if(typeof i!=="number"){throw new Error(`${s} with value ${i} must be of type number.`)}}else if(r.match(/^String$/i)!==null){if(typeof i.valueOf()!=="string"){throw new Error(`${s} with value "${i}" must be of type string.`)}}else if(r.match(/^Uuid$/i)!==null){if(!(typeof i.valueOf()==="string"&&isValidUuid(i))){throw new Error(`${s} with value "${i}" must be of type string and a valid uuid.`)}}else if(r.match(/^Boolean$/i)!==null){if(typeof i!=="boolean"){throw new Error(`${s} with value ${i} must be of type boolean.`)}}else if(r.match(/^Stream$/i)!==null){const r=typeof i;if(r!=="string"&&r!=="function"&&!(i instanceof ArrayBuffer)&&!ArrayBuffer.isView(i)&&!((typeof Blob==="function"||typeof Blob==="object")&&i instanceof Blob)){throw new Error(`${s} must be a string, Blob, ArrayBuffer, ArrayBufferView, or a function returning NodeJS.ReadableStream.`)}}}return i}function serializeEnumType(r,s,i){if(!s){throw new Error(`Please provide a set of allowedValues to validate ${r} as an Enum Type.`)}const a=s.some((r=>{if(typeof r.valueOf()==="string"){return r.toLowerCase()===i.toLowerCase()}return r===i}));if(!a){throw new Error(`${i} is not a valid value for ${r}. The valid values are: ${JSON.stringify(s)}.`)}return i}function serializeByteArrayType(r,s){let i="";if(s!=undefined){if(!(s instanceof Uint8Array)){throw new Error(`${r} must be of type Uint8Array.`)}i=encodeByteArray(s)}return i}function serializeBase64UrlType(r,s){let i="";if(s!=undefined){if(!(s instanceof Uint8Array)){throw new Error(`${r} must be of type Uint8Array.`)}i=bufferToBase64Url(s)||""}return i}function serializeDateTypes(r,s,i){if(s!=undefined){if(r.match(/^Date$/i)!==null){if(!(s instanceof Date||typeof s.valueOf()==="string"&&!isNaN(Date.parse(s)))){throw new Error(`${i} must be an instanceof Date or a string in ISO8601 format.`)}s=s instanceof Date?s.toISOString().substring(0,10):new Date(s).toISOString().substring(0,10)}else if(r.match(/^DateTime$/i)!==null){if(!(s instanceof Date||typeof s.valueOf()==="string"&&!isNaN(Date.parse(s)))){throw new Error(`${i} must be an instanceof Date or a string in ISO8601 format.`)}s=s instanceof Date?s.toISOString():new Date(s).toISOString()}else if(r.match(/^DateTimeRfc1123$/i)!==null){if(!(s instanceof Date||typeof s.valueOf()==="string"&&!isNaN(Date.parse(s)))){throw new Error(`${i} must be an instanceof Date or a string in RFC-1123 format.`)}s=s instanceof Date?s.toUTCString():new Date(s).toUTCString()}else if(r.match(/^UnixTime$/i)!==null){if(!(s instanceof Date||typeof s.valueOf()==="string"&&!isNaN(Date.parse(s)))){throw new Error(`${i} must be an instanceof Date or a string in RFC-1123/ISO8601 format `+`for it to be serialized in UnixTime/Epoch format.`)}s=dateToUnixTime(s)}else if(r.match(/^TimeSpan$/i)!==null){if(!isDuration(s)){throw new Error(`${i} must be a string in ISO 8601 format. Instead was "${s}".`)}}}return s}function serializeSequenceType(r,s,i,a,A,c){if(!Array.isArray(i)){throw new Error(`${a} must be of type Array.`)}const l=s.type.element;if(!l||typeof l!=="object"){throw new Error(`element" metadata for an Array must be defined in the `+`mapper and it must of type "object" in ${a}.`)}const d=[];for(let s=0;sr!==A));if(d){l[A]=r.serialize(u,i[A],a+'["'+A+'"]',c)}}}return l}return i}function getXmlObjectValue(r,s,i,a){if(!i||!r.xmlNamespace){return s}const A=r.xmlNamespacePrefix?`xmlns:${r.xmlNamespacePrefix}`:"xmlns";const c={[A]:r.xmlNamespace};if(["Composite"].includes(r.type.name)){if(s[_]){return s}else{const r=Object.assign({},s);r[_]=c;return r}}const l={};l[a.xmlCharKey]=s;l[_]=c;return l}function isSpecialXmlProperty(r,s){return[_,s.xmlCharKey].includes(r)}function deserializeCompositeType(r,s,i,a,A){var c,l;const d=(c=A.xmlCharKey)!==null&&c!==void 0?c:P;if(getPolymorphicDiscriminatorRecursively(r,s)){s=getPolymorphicMapper(r,s,i,"serializedName")}const u=resolveModelProperties(r,s,a);let p={};const g=[];for(const c of Object.keys(u)){const h=u[c];const C=splitSerializeName(u[c].serializedName);g.push(C[0]);const{serializedName:y,xmlName:I,xmlElementName:B}=h;let b=a;if(y!==""&&y!==undefined){b=a+"."+y}const Q=h.headerCollectionPrefix;if(Q){const s={};for(const a of Object.keys(i)){if(a.startsWith(Q)){s[a.substring(Q.length)]=r.deserialize(h.type.value,i[a],b,A)}g.push(a)}p[c]=s}else if(r.isXML){if(h.xmlIsAttribute&&i[_]){p[c]=r.deserialize(h,i[_][I],b,A)}else if(h.xmlIsMsText){if(i[d]!==undefined){p[c]=i[d]}else if(typeof i==="string"){p[c]=i}}else{const s=B||I||y;if(h.xmlIsWrapped){const s=i[I];const a=(l=s===null||s===void 0?void 0:s[B])!==null&&l!==void 0?l:[];p[c]=r.deserialize(h,a,b,A);g.push(I)}else{const a=i[s];p[c]=r.deserialize(h,a,b,A);g.push(s)}}}else{let a;let l=i;for(const r of C){if(!l)break;l=l[r]}a=l;const d=s.type.polymorphicDiscriminator;if(d&&c===d.clientName&&a==undefined){a=s.serializedName}let g;if(Array.isArray(i[c])&&u[c].serializedName===""){a=i[c];const s=r.deserialize(h,a,b,A);for(const[r,i]of Object.entries(p)){if(!Object.prototype.hasOwnProperty.call(s,r)){s[r]=i}}p=s}else if(a!==undefined||h.defaultValue!==undefined){g=r.deserialize(h,a,b,A);p[c]=g}}}const h=s.type.additionalProperties;if(h){const isAdditionalProperty=r=>{for(const s in u){const i=splitSerializeName(u[s].serializedName);if(i[0]===r){return false}}return true};for(const s in i){if(isAdditionalProperty(s)){p[s]=r.deserialize(h,i[s],a+'["'+s+'"]',A)}}}else if(i){for(const r of Object.keys(i)){if(p[r]===undefined&&!g.includes(r)&&!isSpecialXmlProperty(r,A)){p[r]=i[r]}}}return p}function deserializeDictionaryType(r,s,i,a,A){const c=s.type.value;if(!c||typeof c!=="object"){throw new Error(`"value" metadata for a Dictionary must be defined in the `+`mapper and it must of type "object" in ${a}`)}if(i){const s={};for(const l of Object.keys(i)){s[l]=r.deserialize(c,i[l],a,A)}return s}return i}function deserializeSequenceType(r,s,i,a,A){const c=s.type.element;if(!c||typeof c!=="object"){throw new Error(`element" metadata for an Array must be defined in the `+`mapper and it must of type "object" in ${a}`)}if(i){if(!Array.isArray(i)){i=[i]}const s=[];for(let l=0;l0}keys(){return Object.keys(this._rawQuery)}set(r,s){const i=s;if(r){if(i!==undefined&&i!==null){const s=Array.isArray(i)?i:i.toString();this._rawQuery[r]=s}else{delete this._rawQuery[r]}}}get(r){return r?this._rawQuery[r]:undefined}toString(){let r="";for(const s in this._rawQuery){if(r){r+="&"}const i=this._rawQuery[s];if(Array.isArray(i)){const a=[];for(const r of i){a.push(`${s}=${r}`)}r+=a.join("&")}else{r+=`${s}=${i}`}}return r}static parse(r){const s=new URLQuery;if(r){if(r.startsWith("?")){r=r.substring(1)}let i="ParameterName";let a="";let A="";for(let c=0;cisAlphaNumericCharacter(r)))}function readUntilCharacter(r,...s){return readWhile(r,(r=>s.indexOf(r)===-1))}function nextScheme(r){const s=readWhileLetterOrDigit(r);r._currentToken=URLToken.scheme(s);if(!hasCurrentCharacter(r)){r._currentState="DONE"}else{r._currentState="HOST"}}function nextSchemeOrHost(r){const s=readUntilCharacter(r,":","/","?");if(!hasCurrentCharacter(r)){r._currentToken=URLToken.host(s);r._currentState="DONE"}else if(getCurrentCharacter(r)===":"){if(peekCharacters(r,3)==="://"){r._currentToken=URLToken.scheme(s);r._currentState="HOST"}else{r._currentToken=URLToken.host(s);r._currentState="PORT"}}else{r._currentToken=URLToken.host(s);if(getCurrentCharacter(r)==="/"){r._currentState="PATH"}else{r._currentState="QUERY"}}}function nextHost(r){if(peekCharacters(r,3)==="://"){nextCharacter(r,3)}const s=readUntilCharacter(r,":","/","?");r._currentToken=URLToken.host(s);if(!hasCurrentCharacter(r)){r._currentState="DONE"}else if(getCurrentCharacter(r)===":"){r._currentState="PORT"}else if(getCurrentCharacter(r)==="/"){r._currentState="PATH"}else{r._currentState="QUERY"}}function nextPort(r){if(getCurrentCharacter(r)===":"){nextCharacter(r)}const s=readUntilCharacter(r,"/","?");r._currentToken=URLToken.port(s);if(!hasCurrentCharacter(r)){r._currentState="DONE"}else if(getCurrentCharacter(r)==="/"){r._currentState="PATH"}else{r._currentState="QUERY"}}function nextPath(r){const s=readUntilCharacter(r,"?");r._currentToken=URLToken.path(s);if(!hasCurrentCharacter(r)){r._currentState="DONE"}else{r._currentState="QUERY"}}function nextQuery(r){if(getCurrentCharacter(r)==="?"){nextCharacter(r)}const s=readRemaining(r);r._currentToken=URLToken.query(s);r._currentState="DONE"}function createProxyAgent(r,s,i){const a=URLBuilder.parse(s.host).getHost();if(!a){throw new Error("Expecting a non-empty host in proxy settings.")}if(!isValidPort(s.port)){throw new Error("Expecting a valid port number in the range of [0, 65535] in proxy settings.")}const A={proxy:{host:a,port:s.port,headers:i&&i.rawHeaders()||{}}};if(s.username&&s.password){A.proxy.proxyAuth=`${s.username}:${s.password}`}else if(s.username){A.proxy.proxyAuth=`${s.username}`}const c=isUrlHttps(r);const l=isUrlHttps(s.host);const d={isHttps:c,agent:createTunnel(c,l,A)};return d}function isUrlHttps(r){const s=URLBuilder.parse(r).getScheme()||"";return s.toLowerCase()==="https"}function createTunnel(r,s,i){if(r&&s){return x.httpsOverHttps(i)}else if(r&&!s){return x.httpsOverHttp(i)}else if(!r&&s){return x.httpOverHttps(i)}else{return x.httpOverHttp(i)}}function isValidPort(r){return 0<=r&&r<=65535}const U="REDACTED";const H=["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 G=["api-version"];class Sanitizer{constructor({allowedHeaderNames:r=[],allowedQueryParameters:s=[]}={}){r=Array.isArray(r)?H.concat(r):H;s=Array.isArray(s)?G.concat(s):G;this.allowedHeaderNames=new Set(r.map((r=>r.toLowerCase())));this.allowedQueryParameters=new Set(s.map((r=>r.toLowerCase())))}sanitize(r){const s=new Set;return JSON.stringify(r,((r,i)=>{if(i instanceof Error){return Object.assign(Object.assign({},i),{name:i.name,message:i.message})}if(r==="_headersMap"){return this.sanitizeHeaders(i)}else if(r==="url"){return this.sanitizeUrl(i)}else if(r==="query"){return this.sanitizeQuery(i)}else if(r==="body"){return undefined}else if(r==="response"){return undefined}else if(r==="operationSpec"){return undefined}else if(Array.isArray(i)||isObject(i)){if(s.has(i)){return"[Circular]"}s.add(i)}return i}),2)}sanitizeHeaders(r){return this.sanitizeObject(r,this.allowedHeaderNames,((r,s)=>r[s].value))}sanitizeQuery(r){return this.sanitizeObject(r,this.allowedQueryParameters,((r,s)=>r[s]))}sanitizeObject(r,s,i){if(typeof r!=="object"||r===null){return r}const a={};for(const A of Object.keys(r)){if(s.has(A.toLowerCase())){a[A]=i(r,A)}else{a[A]=U}}return a}sanitizeUrl(r){if(typeof r!=="string"||r===null){return r}const s=URLBuilder.parse(r);const i=s.getQuery();if(!i){return r}const a=URLQuery.parse(i);for(const r of a.keys()){if(!this.allowedQueryParameters.has(r.toLowerCase())){a.set(r,U)}}s.setQuery(a.toString());return s.toString()}}const q=A.inspect.custom;const V=new Sanitizer;class RestError extends Error{constructor(r,s,i,a,A){super(r);this.name="RestError";this.code=s;this.statusCode=i;this.request=a;this.response=A;Object.setPrototypeOf(this,RestError.prototype)}[q](){return`RestError: ${this.message} \n ${V.sanitize(this)}`}}RestError.REQUEST_SEND_ERROR="REQUEST_SEND_ERROR";RestError.PARSE_ERROR="PARSE_ERROR";const j=u.createClientLogger("core-http");function getCachedAgent(r,s){return r?s.httpsAgent:s.httpAgent}class ReportTransform extends B.Transform{constructor(r){super();this.progressCallback=r;this.loadedBytes=0}_transform(r,s,i){this.push(r);this.loadedBytes+=r.length;this.progressCallback({loadedBytes:this.loadedBytes});i(undefined)}}function isReadableStream(r){return r&&typeof r.pipe==="function"}function isStreamComplete(r,s){return new Promise((i=>{r.once("close",(()=>{s===null||s===void 0?void 0:s.abort();i()}));r.once("end",i);r.once("error",i)}))}function parseHeaders(r){const s=new HttpHeaders;r.forEach(((r,i)=>{s.set(i,r)}));return s}class NodeFetchHttpClient{constructor(){this.proxyAgentMap=new Map;this.keepAliveAgents={}}async sendRequest(r){var s;if(!r&&typeof r!=="object"){throw new Error("'httpRequest' (WebResourceLike) cannot be null or undefined and must be of type object.")}const i=new y.AbortController;let a;if(r.abortSignal){if(r.abortSignal.aborted){throw new y.AbortError("The operation was aborted.")}a=r=>{if(r.type==="abort"){i.abort()}};r.abortSignal.addEventListener("abort",a)}if(r.timeout){setTimeout((()=>{i.abort()}),r.timeout)}if(r.formData){const s=r.formData;const i=new D["default"];const appendFormValue=(r,s)=>{if(typeof s==="function"){s=s()}if(s&&Object.prototype.hasOwnProperty.call(s,"value")&&Object.prototype.hasOwnProperty.call(s,"options")){i.append(r,s.value,s.options)}else{i.append(r,s)}};for(const r of Object.keys(s)){const i=s[r];if(Array.isArray(i)){for(let s=0;s{var s;(s=r.abortSignal)===null||s===void 0?void 0:s.removeEventListener("abort",a);return})).catch((r=>{j.warning("Error when cleaning up abortListener on httpRequest",r)}))}}}getOrCreateAgent(r){var s;const i=isUrlHttps(r.url);if(r.proxySettings){const{host:a,port:A,username:c,password:l}=r.proxySettings;const d=`${a}:${A}:${c}:${l}`;const u=(s=this.proxyAgentMap.get(d))!==null&&s!==void 0?s:{};let p=getCachedAgent(i,u);if(p){return p}const g=createProxyAgent(r.url,r.proxySettings,r.headers);p=g.agent;if(g.isHttps){u.httpsAgent=g.agent}else{u.httpAgent=g.agent}this.proxyAgentMap.set(d,u);return p}else if(r.keepAlive){let s=getCachedAgent(i,this.keepAliveAgents);if(s){return s}const a={keepAlive:r.keepAlive};if(i){s=this.keepAliveAgents.httpsAgent=new N.Agent(a)}else{s=this.keepAliveAgents.httpAgent=new R.Agent(a)}return s}else{return i?N.globalAgent:R.globalAgent}}async fetch(r,s){return k["default"](r,s)}async prepareRequest(r){const s={};s.agent=this.getOrCreateAgent(r);s.compress=r.decompressResponse;return s}async processRequest(r){}}s.HttpPipelineLogLevel=void 0;(function(r){r[r["OFF"]=0]="OFF";r[r["ERROR"]=1]="ERROR";r[r["WARNING"]=2]="WARNING";r[r["INFO"]=3]="INFO"})(s.HttpPipelineLogLevel||(s.HttpPipelineLogLevel={}));function operationOptionsToRequestOptionsBase(r){const{requestOptions:s,tracingOptions:i}=r,a=c.__rest(r,["requestOptions","tracingOptions"]);let A=a;if(s){A=Object.assign(Object.assign({},A),s)}if(i){A.tracingContext=i.tracingContext;A.spanOptions=i===null||i===void 0?void 0:i.spanOptions}return A}class BaseRequestPolicy{constructor(r,s){this._nextPolicy=r;this._options=s}shouldLog(r){return this._options.shouldLog(r)}log(r,s){this._options.log(r,s)}}class RequestPolicyOptions{constructor(r){this._logger=r}shouldLog(r){return!!this._logger&&r!==s.HttpPipelineLogLevel.OFF&&r<=this._logger.minimumLogLevel}log(r,s){if(this._logger&&this.shouldLog(r)){this._logger.log(r,s)}}}const z={explicitCharkey:false,trim:false,normalize:false,normalizeTags:false,attrkey:_,explicitArray:true,ignoreAttrs:false,mergeAttrs:false,explicitRoot:true,validator:undefined,xmlns:false,explicitChildren:false,preserveChildrenOrder:false,childkey:"$$",charsAsChildren:false,includeWhiteChars:false,async:false,strict:true,attrNameProcessors:undefined,attrValueProcessors:undefined,tagNameProcessors:undefined,valueProcessors:undefined,rootName:"root",xmldec:{version:"1.0",encoding:"UTF-8",standalone:true},doctype:undefined,renderOpts:{pretty:true,indent:" ",newline:"\n"},headless:false,chunkSize:1e4,emptyTag:"",cdata:false};const Y=Object.assign({},z);Y.explicitArray=false;const J=Object.assign({},z);J.explicitArray=false;J.renderOpts={pretty:false};function stringifyXML(r,s={}){var i;J.rootName=s.rootName;J.charkey=(i=s.xmlCharKey)!==null&&i!==void 0?i:P;const a=new v.Builder(J);return a.buildObject(r)}function parseXML(r,s={}){var i;Y.explicitRoot=!!s.includeRoot;Y.charkey=(i=s.xmlCharKey)!==null&&i!==void 0?i:P;const a=new v.Parser(Y);return new Promise(((s,i)=>{if(!r){i(new Error("Document is empty"))}else{a.parseString(r,((r,a)=>{if(r){i(r)}else{s(a)}}))}}))}function deserializationPolicy(r,s){return{create:(i,a)=>new DeserializationPolicy(i,a,r,s)}}const W=["application/json","text/json"];const X=["application/xml","application/atom+xml"];const $={expectedContentTypes:{json:W,xml:X}};class DeserializationPolicy extends BaseRequestPolicy{constructor(r,s,i,a={}){var A;super(r,s);this.jsonContentTypes=i&&i.json||W;this.xmlContentTypes=i&&i.xml||X;this.xmlCharKey=(A=a.xmlCharKey)!==null&&A!==void 0?A:P}async sendRequest(r){return this._nextPolicy.sendRequest(r).then((r=>deserializeResponseBody(this.jsonContentTypes,this.xmlContentTypes,r,{xmlCharKey:this.xmlCharKey})))}}function getOperationResponse(r){let s;const i=r.request;const a=i.operationSpec;if(a){const A=i.operationResponseGetter;if(!A){s=a.responses[r.status]}else{s=A(a,r)}}return s}function shouldDeserializeResponse(r){const s=r.request.shouldDeserialize;let i;if(s===undefined){i=true}else if(typeof s==="boolean"){i=s}else{i=s(r)}return i}function deserializeResponseBody(r,s,i,a={}){var A,c,l;const d={rootName:(A=a.rootName)!==null&&A!==void 0?A:"",includeRoot:(c=a.includeRoot)!==null&&c!==void 0?c:false,xmlCharKey:(l=a.xmlCharKey)!==null&&l!==void 0?l:P};return parse(r,s,i,d).then((r=>{if(!shouldDeserializeResponse(r)){return r}const s=r.request.operationSpec;if(!s||!s.responses){return r}const A=getOperationResponse(r);const{error:c,shouldReturnResponse:l}=handleErrorResponse(r,s,A);if(c){throw c}else if(l){return r}if(A){if(A.bodyMapper){let i=r.parsedBody;if(s.isXML&&A.bodyMapper.type.name===M.Sequence){i=typeof i==="object"?i[A.bodyMapper.xmlElementName]:[]}try{r.parsedBody=s.serializer.deserialize(A.bodyMapper,i,"operationRes.parsedBody",a)}catch(s){const i=new RestError(`Error ${s} occurred in deserializing the responseBody - ${r.bodyAsText}`,undefined,r.status,r.request,r);throw i}}else if(s.httpMethod==="HEAD"){r.parsedBody=i.status>=200&&i.status<300}if(A.headersMapper){r.parsedHeaders=s.serializer.deserialize(A.headersMapper,r.headers.toJson(),"operationRes.parsedHeaders",a)}}return r}))}function isOperationSpecEmpty(r){const s=Object.keys(r.responses);return s.length===0||s.length===1&&s[0]==="default"}function handleErrorResponse(r,s,i){var a;const A=200<=r.status&&r.status<300;const c=isOperationSpecEmpty(s)?A:!!i;if(c){if(i){if(!i.isError){return{error:null,shouldReturnResponse:false}}}else{return{error:null,shouldReturnResponse:false}}}const l=i!==null&&i!==void 0?i:s.responses.default;const d=((a=r.request.streamResponseStatusCodes)===null||a===void 0?void 0:a.has(r.status))||r.request.streamResponseBody;const u=d?`Unexpected status code: ${r.status}`:r.bodyAsText;const p=new RestError(u,undefined,r.status,r.request,r);if(!l){throw p}const g=l.bodyMapper;const h=l.headersMapper;try{if(r.parsedBody){const i=r.parsedBody;let a;if(g){let r=i;if(s.isXML&&g.type.name===M.Sequence){r=typeof i==="object"?i[g.xmlElementName]:[]}a=s.serializer.deserialize(g,r,"error.response.parsedBody")}const A=i.error||a||i;p.code=A.code;if(A.message){p.message=A.message}if(g){p.response.parsedBody=a}}if(r.headers&&h){p.response.parsedHeaders=s.serializer.deserialize(h,r.headers.toJson(),"operationRes.parsedHeaders")}}catch(s){p.message=`Error "${s.message}" occurred in deserializing the responseBody - "${r.bodyAsText}" for the default response.`}return{error:p,shouldReturnResponse:false}}function parse(r,s,i,a){var A;const errorHandler=r=>{const s=`Error "${r}" occurred while parsing the response body - ${i.bodyAsText}.`;const a=r.code||RestError.PARSE_ERROR;const A=new RestError(s,a,i.status,i.request,i);return Promise.reject(A)};const c=((A=i.request.streamResponseStatusCodes)===null||A===void 0?void 0:A.has(i.status))||i.request.streamResponseBody;if(!c&&i.bodyAsText){const A=i.bodyAsText;const c=i.headers.get("Content-Type")||"";const l=!c?[]:c.split(";").map((r=>r.toLowerCase()));if(l.length===0||l.some((s=>r.indexOf(s)!==-1))){return new Promise((r=>{i.parsedBody=JSON.parse(A);r(i)})).catch(errorHandler)}else if(l.some((r=>s.indexOf(r)!==-1))){return parseXML(A,a).then((r=>{i.parsedBody=r;return i})).catch(errorHandler)}}return Promise.resolve(i)}const K={enable:true};function keepAlivePolicy(r){return{create:(s,i)=>new KeepAlivePolicy(s,i,r||K)}}class KeepAlivePolicy extends BaseRequestPolicy{constructor(r,s,i){super(r,s);this.keepAliveOptions=i}async sendRequest(r){r.keepAlive=this.keepAliveOptions.enable;return this._nextPolicy.sendRequest(r)}}const Z=["GET","HEAD"];const ee={handleRedirects:true,maxRetries:20};function redirectPolicy(r=20){return{create:(s,i)=>new RedirectPolicy(s,i,r)}}class RedirectPolicy extends BaseRequestPolicy{constructor(r,s,i=20){super(r,s);this.maxRetries=i}sendRequest(r){return this._nextPolicy.sendRequest(r).then((r=>handleRedirect(this,r,0)))}}function handleRedirect(r,s,i){const{request:a,status:A}=s;const c=s.headers.get("location");if(c&&(A===300||A===301&&Z.includes(a.method)||A===302&&Z.includes(a.method)||A===303&&a.method==="POST"||A===307)&&(!r.maxRetries||ihandleRedirect(r,s,i+1)))}return Promise.resolve(s)}const te=3;const re=1e3*30;const ne=1e3*90;const se=1e3*3;function isNumber(r){return typeof r==="number"}function shouldRetry(r,s,i,a,A){if(!s(a,A)){return false}return i.retryCountnew ExponentialRetryPolicy(a,A,r,s,i)}}s.RetryMode=void 0;(function(r){r[r["Exponential"]=0]="Exponential"})(s.RetryMode||(s.RetryMode={}));const ie={maxRetries:te,retryDelayInMs:re,maxRetryDelayInMs:ne};class ExponentialRetryPolicy extends BaseRequestPolicy{constructor(r,s,i,a,A){super(r,s);this.retryCount=isNumber(i)?i:te;this.retryInterval=isNumber(a)?a:re;this.maxRetryInterval=isNumber(A)?A:ne}sendRequest(r){return this._nextPolicy.sendRequest(r.clone()).then((s=>retry$1(this,r,s))).catch((s=>retry$1(this,r,s.response,undefined,s)))}}async function retry$1(r,s,i,a,A){function shouldPolicyRetry(r){const s=r===null||r===void 0?void 0:r.status;if(s===503&&(i===null||i===void 0?void 0:i.headers.get(T.HeaderConstants.RETRY_AFTER))){return false}if(s===undefined||s<500&&s!==408||s===501||s===505){return false}return true}a=updateRetryData({retryInterval:r.retryInterval,minRetryInterval:0,maxRetryInterval:r.maxRetryInterval},a,A);const c=s.abortSignal&&s.abortSignal.aborted;if(!c&&shouldRetry(r.retryCount,shouldPolicyRetry,a,i)){j.info(`Retrying request in ${a.retryInterval}`);try{await d.delay(a.retryInterval);const i=await r._nextPolicy.sendRequest(s.clone());return retry$1(r,s,i,a)}catch(A){return retry$1(r,s,i,a,A)}}else if(c||A||!i){const r=a.error||new RestError("Failed to send the request.",RestError.REQUEST_SEND_ERROR,i&&i.status,i&&i.request,i);throw r}else{return i}}function logPolicy(r={}){return{create:(s,i)=>new LogPolicy(s,i,r)}}class LogPolicy extends BaseRequestPolicy{constructor(r,s,{logger:i=j.info,allowedHeaderNames:a=[],allowedQueryParameters:A=[]}={}){super(r,s);this.logger=i;this.sanitizer=new Sanitizer({allowedHeaderNames:a,allowedQueryParameters:A})}get allowedHeaderNames(){return this.sanitizer.allowedHeaderNames}set allowedHeaderNames(r){this.sanitizer.allowedHeaderNames=r}get allowedQueryParameters(){return this.sanitizer.allowedQueryParameters}set allowedQueryParameters(r){this.sanitizer.allowedQueryParameters=r}sendRequest(r){if(!this.logger.enabled)return this._nextPolicy.sendRequest(r);this.logRequest(r);return this._nextPolicy.sendRequest(r).then((r=>this.logResponse(r)))}logRequest(r){this.logger(`Request: ${this.sanitizer.sanitize(r)}`)}logResponse(r){this.logger(`Response status code: ${r.status}`);this.logger(`Headers: ${this.sanitizer.sanitize(r.headers)}`);return r}}function getPathStringFromParameter(r){return getPathStringFromParameterPath(r.parameterPath,r.mapper)}function getPathStringFromParameterPath(r,s){let i;if(typeof r==="string"){i=r}else if(Array.isArray(r)){i=r.join(".")}else{i=s.serializedName}return i}function getStreamResponseStatusCodes(r){const s=new Set;for(const i in r.responses){const a=r.responses[i];if(a.bodyMapper&&a.bodyMapper.type.name===M.Stream){s.add(Number(i))}}return s}function getDefaultUserAgentKey(){return T.HeaderConstants.USER_AGENT}function getPlatformSpecificData(){const r={key:"Node",value:process.version};const s={key:"OS",value:`(${S.arch()}-${S.type()}-${S.release()})`};return[r,s]}function getRuntimeInfo(){const r={key:"core-http",value:T.coreHttpVersion};return[r]}function getUserAgentString(r,s=" ",i="/"){return r.map((r=>{const s=r.value?`${i}${r.value}`:"";return`${r.key}${s}`})).join(s)}const oe=getDefaultUserAgentKey;function getDefaultUserAgentValue(){const r=getRuntimeInfo();const s=getPlatformSpecificData();const i=getUserAgentString(r.concat(s));return i}function userAgentPolicy(r){const s=!r||r.key===undefined||r.key===null?getDefaultUserAgentKey():r.key;const i=!r||r.value===undefined||r.value===null?getDefaultUserAgentValue():r.value;return{create:(r,a)=>new UserAgentPolicy(r,a,s,i)}}class UserAgentPolicy extends BaseRequestPolicy{constructor(r,s,i,a){super(r,s);this._nextPolicy=r;this._options=s;this.headerKey=i;this.headerValue=a}sendRequest(r){this.addUserAgentHeader(r);return this._nextPolicy.sendRequest(r)}addUserAgentHeader(r){if(!r.headers){r.headers=new HttpHeaders}if(!r.headers.get(this.headerKey)&&this.headerValue){r.headers.set(this.headerKey,this.headerValue)}}}s.QueryCollectionFormat=void 0;(function(r){r["Csv"]=",";r["Ssv"]=" ";r["Tsv"]="\t";r["Pipes"]="|";r["Multi"]="Multi"})(s.QueryCollectionFormat||(s.QueryCollectionFormat={}));const ae={forcedRefreshWindowInMs:1e3,retryIntervalInMs:3e3,refreshWindowInMs:1e3*60*2};async function beginRefresh(r,s,i){async function tryGetAccessToken(){if(Date.now()r.getToken(s,i);a=beginRefresh(tryGetAccessToken,c.retryIntervalInMs,(d=A===null||A===void 0?void 0:A.expiresOnTimestamp)!==null&&d!==void 0?d:Date.now()).then((r=>{a=null;A=r;return A})).catch((r=>{a=null;A=null;throw r}))}return a}return async r=>{if(l.mustRefresh)return refresh(r);if(l.shouldRefresh){refresh(r)}return A}}function bearerTokenAuthenticationPolicy(r,s){const i=createTokenCycler(r,s);class BearerTokenAuthenticationPolicy extends BaseRequestPolicy{constructor(r,s){super(r,s)}async sendRequest(r){if(!r.url.toLowerCase().startsWith("https://")){throw new Error("Bearer token authentication is not permitted for non-TLS protected (non-https) URLs.")}const{token:s}=await i({abortSignal:r.abortSignal,tracingOptions:{tracingContext:r.tracingContext}});r.headers.set(T.HeaderConstants.AUTHORIZATION,`Bearer ${s}`);return this._nextPolicy.sendRequest(r)}}return{create:(r,s)=>new BearerTokenAuthenticationPolicy(r,s)}}function disableResponseDecompressionPolicy(){return{create:(r,s)=>new DisableResponseDecompressionPolicy(r,s)}}class DisableResponseDecompressionPolicy extends BaseRequestPolicy{constructor(r,s){super(r,s)}async sendRequest(r){r.decompressResponse=false;return this._nextPolicy.sendRequest(r)}}function generateClientRequestIdPolicy(r="x-ms-client-request-id"){return{create:(s,i)=>new GenerateClientRequestIdPolicy(s,i,r)}}class GenerateClientRequestIdPolicy extends BaseRequestPolicy{constructor(r,s,i){super(r,s);this._requestIdHeaderName=i}sendRequest(r){if(!r.headers.contains(this._requestIdHeaderName)){r.headers.set(this._requestIdHeaderName,r.requestId)}return this._nextPolicy.sendRequest(r)}}let Ae;function getCachedDefaultHttpClient(){if(!Ae){Ae=new NodeFetchHttpClient}return Ae}function ndJsonPolicy(){return{create:(r,s)=>new NdJsonPolicy(r,s)}}class NdJsonPolicy extends BaseRequestPolicy{constructor(r,s){super(r,s)}async sendRequest(r){if(typeof r.body==="string"&&r.body.startsWith("[")){const s=JSON.parse(r.body);if(Array.isArray(s)){r.body=s.map((r=>JSON.stringify(r)+"\n")).join("")}}return this._nextPolicy.sendRequest(r)}}const ce=[];let le=false;const de=new Map;function loadEnvironmentProxyValue(){if(!process){return undefined}const r=getEnvironmentValue(T.HTTPS_PROXY);const s=getEnvironmentValue(T.ALL_PROXY);const i=getEnvironmentValue(T.HTTP_PROXY);return r||s||i}function isBypassed(r,s,i){if(s.length===0){return false}const a=URLBuilder.parse(r).getHost();if(i===null||i===void 0?void 0:i.has(a)){return i.get(a)}let A=false;for(const r of s){if(r[0]==="."){if(a.endsWith(r)){A=true}else{if(a.length===r.length-1&&a===r.slice(1)){A=true}}}else{if(a===r){A=true}}}i===null||i===void 0?void 0:i.set(a,A);return A}function loadNoProxy(){const r=getEnvironmentValue(T.NO_PROXY);le=true;if(r){return r.split(",").map((r=>r.trim())).filter((r=>r.length))}return[]}function getDefaultProxySettings(r){if(!r){r=loadEnvironmentProxyValue();if(!r){return undefined}}const{username:s,password:i,urlWithoutAuth:a}=extractAuthFromUrl(r);const A=URLBuilder.parse(a);const c=A.getScheme()?A.getScheme()+"://":"";return{host:c+A.getHost(),port:Number.parseInt(A.getPort()||"80"),username:s,password:i}}function proxyPolicy(r,s){if(!r){r=getDefaultProxySettings()}if(!le){ce.push(...loadNoProxy())}return{create:(i,a)=>new ProxyPolicy(i,a,r,s===null||s===void 0?void 0:s.customNoProxyList)}}function extractAuthFromUrl(r){const s=r.indexOf("@");if(s===-1){return{urlWithoutAuth:r}}const i=r.indexOf("://");const a=i!==-1?i+3:0;const A=r.substring(a,s);const c=A.indexOf(":");const l=c!==-1;const d=l?A.substring(0,c):A;const u=l?A.substring(c+1):undefined;const p=r.substring(0,a)+r.substring(s+1);return{username:d,password:u,urlWithoutAuth:p}}class ProxyPolicy extends BaseRequestPolicy{constructor(r,s,i,a){super(r,s);this.proxySettings=i;this.customNoProxyList=a}sendRequest(r){var s;if(!r.proxySettings&&!isBypassed(r.url,(s=this.customNoProxyList)!==null&&s!==void 0?s:ce,this.customNoProxyList?undefined:de)){r.proxySettings=this.proxySettings}return this._nextPolicy.sendRequest(r)}}function rpRegistrationPolicy(r=30){return{create:(s,i)=>new RPRegistrationPolicy(s,i,r)}}class RPRegistrationPolicy extends BaseRequestPolicy{constructor(r,s,i=30){super(r,s);this._retryTimeout=i}sendRequest(r){return this._nextPolicy.sendRequest(r.clone()).then((s=>registerIfNeeded(this,r,s)))}}function registerIfNeeded(r,s,i){if(i.status===409){const a=checkRPNotRegisteredError(i.bodyAsText);if(a){const A=extractSubscriptionUrl(s.url);return registerRP(r,A,a,s).catch((()=>false)).then((a=>{if(a){s.headers.set("x-ms-client-request-id",generateUuid());return r._nextPolicy.sendRequest(s.clone())}return i}))}}return Promise.resolve(i)}function getRequestEssentials(r,s=false){const i=r.clone();if(s){i.url=r.url}i.headers.set("x-ms-client-request-id",generateUuid());i.headers.set("Content-Type","application/json; charset=utf-8");return i}function checkRPNotRegisteredError(r){let s,i;if(r){try{i=JSON.parse(r)}catch(r){}if(i&&i.error&&i.error.message&&i.error.code&&i.error.code==="MissingSubscriptionRegistration"){const r=i.error.message.match(/.*'(.*)'/i);if(r){s=r.pop()}}}return s}function extractSubscriptionUrl(r){let s;const i=r.match(/.*\/subscriptions\/[a-f0-9-]+\//gi);if(i&&i[0]){s=i[0]}else{throw new Error(`Unable to extract subscriptionId from the given url - ${r}.`)}return s}async function registerRP(r,s,i,a){const A=`${s}providers/${i}/register?api-version=2016-02-01`;const c=`${s}providers/${i}?api-version=2016-02-01`;const l=getRequestEssentials(a);l.method="POST";l.url=A;const d=await r._nextPolicy.sendRequest(l);if(d.status!==200){throw new Error(`Autoregistration of ${i} failed. Please try registering manually.`)}return getRegistrationStatus(r,c,a)}async function getRegistrationStatus(r,s,i){const a=getRequestEssentials(i);a.url=s;a.method="GET";const A=await r._nextPolicy.sendRequest(a);const c=A.parsedBody;if(A.parsedBody&&c.registrationState&&c.registrationState==="Registered"){return true}else{await d.delay(r._retryTimeout*1e3);return getRegistrationStatus(r,s,i)}}function signingPolicy(r){return{create:(s,i)=>new SigningPolicy(s,i,r)}}class SigningPolicy extends BaseRequestPolicy{constructor(r,s,i){super(r,s);this.authenticationProvider=i}signRequest(r){return this.authenticationProvider.signRequest(r)}sendRequest(r){return this.signRequest(r).then((r=>this._nextPolicy.sendRequest(r)))}}function systemErrorRetryPolicy(r,s,i,a){return{create:(A,c)=>new SystemErrorRetryPolicy(A,c,r,s,i,a)}}class SystemErrorRetryPolicy extends BaseRequestPolicy{constructor(r,s,i,a,A,c){super(r,s);this.retryCount=isNumber(i)?i:te;this.retryInterval=isNumber(a)?a:re;this.minRetryInterval=isNumber(A)?A:se;this.maxRetryInterval=isNumber(c)?c:ne}sendRequest(r){return this._nextPolicy.sendRequest(r.clone()).catch((s=>retry(this,r,s.response,s)))}}async function retry(r,s,i,a,A){A=updateRetryData(r,A,a);function shouldPolicyRetry(r,s){if(s&&s.code&&(s.code==="ETIMEDOUT"||s.code==="ESOCKETTIMEDOUT"||s.code==="ECONNREFUSED"||s.code==="ECONNRESET"||s.code==="ENOENT")){return true}return false}if(shouldRetry(r.retryCount,shouldPolicyRetry,A,i,a)){try{await d.delay(A.retryInterval);return r._nextPolicy.sendRequest(s.clone())}catch(a){return retry(r,s,i,a,A)}}else{if(a){return Promise.reject(A.error)}return i}}const ue=3;const pe=T.HttpConstants.StatusCodes;function throttlingRetryPolicy(){return{create:(r,s)=>new ThrottlingRetryPolicy(r,s)}}const ge="The operation was aborted.";class ThrottlingRetryPolicy extends BaseRequestPolicy{constructor(r,s,i){super(r,s);this.numberOfRetries=0;this._handleResponse=i||this._defaultResponseHandler}async sendRequest(r){const s=await this._nextPolicy.sendRequest(r.clone());if(s.status!==pe.TooManyRequests&&s.status!==pe.ServiceUnavailable){return s}else{return this._handleResponse(r,s)}}async _defaultResponseHandler(r,s){var i;const a=s.headers.get(T.HeaderConstants.RETRY_AFTER);if(a){const s=ThrottlingRetryPolicy.parseRetryAfterHeader(a);if(s){this.numberOfRetries+=1;await d.delay(s,{abortSignal:r.abortSignal,abortErrorMsg:ge});if((i=r.abortSignal)===null||i===void 0?void 0:i.aborted){throw new y.AbortError(ge)}if(this.numberOfRetries{let i=undefined;const a=this;const A=s;return{create(s,c){const l=getCredentialScopes(A,a.baseUri);if(!l){throw new Error(`When using credential, the ServiceClient must contain a baseUri or a credentialScopes in ServiceClientOptions. Unable to create a bearerTokenAuthenticationPolicy`)}if(i===undefined||i===null){i=bearerTokenAuthenticationPolicy(r,l)}return i.create(s,c)}}};a=wrappedPolicyFactory()}else if(r&&typeof r.signRequest==="function"){j.info("ServiceClient: creating signing policy from provided credentials");a=signingPolicy(r)}else if(r!==undefined&&r!==null){throw new Error("The credentials argument must implement the TokenCredential interface")}j.info("ServiceClient: using default request policies");i=createDefaultRequestPolicyFactories(a,s);if(s.requestPolicyFactories){const r=s.requestPolicyFactories(i);if(r){i=r}}}this._requestPolicyFactories=i}sendRequest(r){if(r===null||r===undefined||typeof r!=="object"){throw new Error("options cannot be null or undefined and it must be of type object.")}let s;try{if(isWebResourceLike(r)){r.validateRequestProperties();s=r}else{s=new WebResource;s=s.prepare(r)}}catch(r){return Promise.reject(r)}let i=this._httpClient;if(this._requestPolicyFactories&&this._requestPolicyFactories.length>0){for(let r=this._requestPolicyFactories.length-1;r>=0;--r){i=this._requestPolicyFactories[r].create(i,this._requestPolicyOptions)}}return i.sendRequest(s)}async sendOperationRequest(r,i,a){var A;if(typeof r.options==="function"){a=r.options;r.options=undefined}const c=(A=r.options)===null||A===void 0?void 0:A.serializerOptions;const l=new WebResource;let d;try{const a=i.baseUrl||this.baseUri;if(!a){throw new Error("If operationSpec.baseUrl is not specified, then the ServiceClient must have a baseUri string property that contains the base URL to use.")}l.method=i.httpMethod;l.operationSpec=i;const A=URLBuilder.parse(a);if(i.path){A.appendPath(i.path)}if(i.urlParameters&&i.urlParameters.length>0){for(const s of i.urlParameters){let a=getOperationArgumentValueFromParameter(this,r,s,i.serializer);a=i.serializer.serialize(s.mapper,a,getPathStringFromParameter(s),c);if(!s.skipEncoding){a=encodeURIComponent(a)}A.replaceAll(`{${s.mapper.serializedName||getPathStringFromParameter(s)}}`,a)}}if(i.queryParameters&&i.queryParameters.length>0){for(const a of i.queryParameters){let l=getOperationArgumentValueFromParameter(this,r,a,i.serializer);if(l!==undefined&&l!==null){l=i.serializer.serialize(a.mapper,l,getPathStringFromParameter(a),c);if(a.collectionFormat!==undefined&&a.collectionFormat!==null){if(a.collectionFormat===s.QueryCollectionFormat.Multi){if(l.length===0){continue}else{for(const r in l){const s=l[r];l[r]=s===undefined||s===null?"":s.toString()}}}else if(a.collectionFormat===s.QueryCollectionFormat.Ssv||a.collectionFormat===s.QueryCollectionFormat.Tsv){l=l.join(a.collectionFormat)}}if(!a.skipEncoding){if(Array.isArray(l)){for(const r in l){if(l[r]!==undefined&&l[r]!==null){l[r]=encodeURIComponent(l[r])}}}else{l=encodeURIComponent(l)}}if(a.collectionFormat!==undefined&&a.collectionFormat!==null&&a.collectionFormat!==s.QueryCollectionFormat.Multi&&a.collectionFormat!==s.QueryCollectionFormat.Ssv&&a.collectionFormat!==s.QueryCollectionFormat.Tsv){l=l.join(a.collectionFormat)}A.setQueryParameter(a.mapper.serializedName||getPathStringFromParameter(a),l)}}}l.url=A.toString();const u=i.contentType||this.requestContentType;if(u&&i.requestBody){l.headers.set("Content-Type",u)}if(i.headerParameters){for(const s of i.headerParameters){let a=getOperationArgumentValueFromParameter(this,r,s,i.serializer);if(a!==undefined&&a!==null){a=i.serializer.serialize(s.mapper,a,getPathStringFromParameter(s),c);const r=s.mapper.headerCollectionPrefix;if(r){for(const s of Object.keys(a)){l.headers.set(r+s,a[s])}}else{l.headers.set(s.mapper.serializedName||getPathStringFromParameter(s),a)}}}}const p=r.options;if(p){if(p.customHeaders){for(const r in p.customHeaders){l.headers.set(r,p.customHeaders[r])}}if(p.abortSignal){l.abortSignal=p.abortSignal}if(p.timeout){l.timeout=p.timeout}if(p.onUploadProgress){l.onUploadProgress=p.onUploadProgress}if(p.onDownloadProgress){l.onDownloadProgress=p.onDownloadProgress}if(p.spanOptions){l.spanOptions=p.spanOptions}if(p.tracingContext){l.tracingContext=p.tracingContext}if(p.shouldDeserialize!==undefined&&p.shouldDeserialize!==null){l.shouldDeserialize=p.shouldDeserialize}}l.withCredentials=this._withCredentials;serializeRequestBody(this,l,r,i);if(l.streamResponseStatusCodes===undefined){l.streamResponseStatusCodes=getStreamResponseStatusCodes(i)}let g;let h;try{g=await this.sendRequest(l)}catch(r){h=r}if(h){if(h.response){h.details=flattenResponse(h.response,i.responses[h.statusCode]||i.responses["default"])}d=Promise.reject(h)}else{d=Promise.resolve(flattenResponse(g,i.responses[g.status]))}}catch(r){d=Promise.reject(r)}const u=a;if(u){d.then((r=>u(null,r._response.parsedBody,r._response.request,r._response))).catch((r=>u(r)))}return d}}function serializeRequestBody(r,s,i,a){var A,c,l,d,u,p;const g=(c=(A=i.options)===null||A===void 0?void 0:A.serializerOptions)!==null&&c!==void 0?c:{};const h={rootName:(l=g.rootName)!==null&&l!==void 0?l:"",includeRoot:(d=g.includeRoot)!==null&&d!==void 0?d:false,xmlCharKey:(u=g.xmlCharKey)!==null&&u!==void 0?u:P};const C=g.xmlCharKey;if(a.requestBody&&a.requestBody.mapper){s.body=getOperationArgumentValueFromParameter(r,i,a.requestBody,a.serializer);const A=a.requestBody.mapper;const{required:c,xmlName:l,xmlElementName:d,serializedName:u,xmlNamespace:g,xmlNamespacePrefix:y}=A;const I=A.type.name;try{if(s.body!==undefined&&s.body!==null||c){const r=getPathStringFromParameter(a.requestBody);s.body=a.serializer.serialize(A,s.body,r,h);const i=I===M.Stream;if(a.isXML){const r=y?`xmlns:${y}`:"xmlns";const a=getXmlValueWithNamespace(g,r,I,s.body,h);if(I===M.Sequence){s.body=stringifyXML(prepareXMLRootList(a,d||l||u,r,g),{rootName:l||u,xmlCharKey:C})}else if(!i){s.body=stringifyXML(a,{rootName:l||u,xmlCharKey:C})}}else if(I===M.String&&(((p=a.contentType)===null||p===void 0?void 0:p.match("text/plain"))||a.mediaType==="text")){return}else if(!i){s.body=JSON.stringify(s.body)}}}catch(r){throw new Error(`Error "${r.message}" occurred in serializing the payload - ${JSON.stringify(u,undefined," ")}.`)}}else if(a.formDataParameters&&a.formDataParameters.length>0){s.formData={};for(const A of a.formDataParameters){const c=getOperationArgumentValueFromParameter(r,i,A,a.serializer);if(c!==undefined&&c!==null){const r=A.mapper.serializedName||getPathStringFromParameter(A);s.formData[r]=a.serializer.serialize(A.mapper,c,getPathStringFromParameter(A),h)}}}}function getXmlValueWithNamespace(r,s,i,a,A){if(r&&!["Composite","Sequence","Dictionary"].includes(i)){const i={};i[A.xmlCharKey]=a;i[_]={[s]:r};return i}return a}function getValueOrFunctionResult(r,s){let i;if(typeof r==="string"){i=r}else{i=s();if(typeof r==="function"){i=r(i)}}return i}function createDefaultRequestPolicyFactories(r,s){const i=[];if(s.generateClientRequestIdHeader){i.push(generateClientRequestIdPolicy(s.clientRequestIdHeaderName))}if(r){i.push(r)}const a=getValueOrFunctionResult(s.userAgentHeaderName,oe);const A=getValueOrFunctionResult(s.userAgent,getDefaultUserAgentValue);if(a&&A){i.push(userAgentPolicy({key:a,value:A}))}i.push(redirectPolicy());i.push(rpRegistrationPolicy(s.rpRegistrationRetryTimeout));if(!s.noRetryPolicy){i.push(exponentialRetryPolicy());i.push(systemErrorRetryPolicy());i.push(throttlingRetryPolicy())}i.push(deserializationPolicy(s.deserializationContentTypes));if(d.isNode){i.push(proxyPolicy(s.proxySettings))}i.push(logPolicy({logger:j.info}));return i}function createPipelineFromOptions(r,s){const i=[];if(r.sendStreamingJson){i.push(ndJsonPolicy())}let a=undefined;if(r.userAgentOptions&&r.userAgentOptions.userAgentPrefix){const s=[];s.push(r.userAgentOptions.userAgentPrefix);const i=getDefaultUserAgentValue();if(s.indexOf(i)===-1){s.push(i)}a=s.join(" ")}const A=Object.assign(Object.assign({},K),r.keepAliveOptions);const c=Object.assign(Object.assign({},ie),r.retryOptions);const l=Object.assign(Object.assign({},ee),r.redirectOptions);if(d.isNode){i.push(proxyPolicy(r.proxyOptions))}const u=Object.assign(Object.assign({},$),r.deserializationOptions);const p=Object.assign({},r.loggingOptions);i.push(tracingPolicy({userAgent:a}),keepAlivePolicy(A),userAgentPolicy({value:a}),generateClientRequestIdPolicy(),deserializationPolicy(u.expectedContentTypes),throttlingRetryPolicy(),systemErrorRetryPolicy(),exponentialRetryPolicy(c.maxRetries,c.retryDelayInMs,c.maxRetryDelayInMs));if(l.handleRedirects){i.push(redirectPolicy(l.maxRetries))}if(s){i.push(s)}i.push(logPolicy(p));if(d.isNode&&r.decompressResponse===false){i.push(disableResponseDecompressionPolicy())}return{httpClient:r.httpClient,requestPolicyFactories:i}}function getOperationArgumentValueFromParameter(r,s,i,a){return getOperationArgumentValueFromParameterPath(r,s,i.parameterPath,i.mapper,a)}function getOperationArgumentValueFromParameterPath(r,s,i,a,A){var c;let l;if(typeof i==="string"){i=[i]}const d=(c=s.options)===null||c===void 0?void 0:c.serializerOptions;if(Array.isArray(i)){if(i.length>0){if(a.isConstant){l=a.defaultValue}else{let A=getPropertyFromParameterPath(s,i);if(!A.propertyFound){A=getPropertyFromParameterPath(r,i)}let c=false;if(!A.propertyFound){c=a.required||i[0]==="options"&&i.length===2}l=c?a.defaultValue:A.propertyValue}const c=getPathStringFromParameterPath(i,a);A.serialize(a,l,c,d)}}else{if(a.required){l={}}for(const c in i){const u=a.type.modelProperties[c];const p=i[c];const g=getOperationArgumentValueFromParameterPath(r,s,p,u,A);const h=getPathStringFromParameterPath(p,u);A.serialize(u,g,h,d);if(g!==undefined&&g!==null){if(!l){l={}}l[c]=g}}}return l}function getPropertyFromParameterPath(r,s){const i={propertyFound:false};let a=0;for(;aObject.defineProperty(s,"_response",{value:r});if(a){const s=a.type.name;if(s==="Stream"){return addOperationResponse(Object.assign(Object.assign({},i),{blobBody:r.blobBody,readableStreamBody:r.readableStreamBody}))}const A=s==="Composite"&&a.type.modelProperties||{};const c=Object.keys(A).some((r=>A[r].serializedName===""));if(s==="Sequence"||c){const s=[...r.parsedBody||[]];for(const i of Object.keys(A)){if(A[i].serializedName){s[i]=r.parsedBody[i]}}if(i){for(const r of Object.keys(i)){s[r]=i[r]}}addOperationResponse(s);return s}if(s==="Composite"||s==="Dictionary"){return addOperationResponse(Object.assign(Object.assign({},i),r.parsedBody))}}if(a||r.request.method==="HEAD"||isPrimitiveType(r.parsedBody)){return addOperationResponse(Object.assign(Object.assign({},i),{body:r.parsedBody}))}return addOperationResponse(Object.assign(Object.assign({},i),r.parsedBody))}function getCredentialScopes(r,s){if(r===null||r===void 0?void 0:r.credentialScopes){return r.credentialScopes}if(s){return`${s}/.default`}return undefined}function createSpanFunction(r){return w.createSpanFunction(r)}const me=2*60*1e3;class ExpiringAccessTokenCache{constructor(r=me){this.cachedToken=undefined;this.tokenRefreshBufferMs=r}setCachedToken(r){this.cachedToken=r}getCachedToken(){if(this.cachedToken&&Date.now()+this.tokenRefreshBufferMs>=this.cachedToken.expiresOnTimestamp){this.cachedToken=undefined}return this.cachedToken}}class AccessTokenRefresher{constructor(r,s,i=3e4){this.credential=r;this.scopes=s;this.requiredMillisecondsBeforeNewRefresh=i;this.lastCalled=0}isReady(){return!this.lastCalled||Date.now()-this.lastCalled>this.requiredMillisecondsBeforeNewRefresh}async getToken(r){this.lastCalled=Date.now();const s=await this.credential.getToken(this.scopes,r);this.promise=undefined;return s||undefined}refresh(r){if(!this.promise){this.promise=this.getToken(r)}return this.promise}}const fe=T.HeaderConstants;const Ee="Basic";class BasicAuthenticationCredentials{constructor(r,s,i=Ee){this.authorizationScheme=Ee;if(r===null||r===undefined||typeof r.valueOf()!=="string"){throw new Error("userName cannot be null or undefined and must be of type string.")}if(s===null||s===undefined||typeof s.valueOf()!=="string"){throw new Error("password cannot be null or undefined and must be of type string.")}this.userName=r;this.password=s;this.authorizationScheme=i}signRequest(r){const s=`${this.userName}:${this.password}`;const i=`${this.authorizationScheme} ${encodeString(s)}`;if(!r.headers)r.headers=new HttpHeaders;r.headers.set(fe.AUTHORIZATION,i);return Promise.resolve(r)}}class ApiKeyCredentials{constructor(r){if(!r||r&&!r.inHeader&&!r.inQuery){throw new Error(`options cannot be null or undefined. Either "inHeader" or "inQuery" property of the options object needs to be provided.`)}this.inHeader=r.inHeader;this.inQuery=r.inQuery}signRequest(r){if(!r){return Promise.reject(new Error(`webResource cannot be null or undefined and must be of type "object".`))}if(this.inHeader){if(!r.headers){r.headers=new HttpHeaders}for(const s in this.inHeader){r.headers.set(s,this.inHeader[s])}}if(this.inQuery){if(!r.url){return Promise.reject(new Error(`url cannot be null in the request object.`))}if(r.url.indexOf("?")<0){r.url+="?"}for(const s in this.inQuery){if(!r.url.endsWith("?")){r.url+="&"}r.url+=`${s}=${this.inQuery[s]}`}}return Promise.resolve(r)}}class TopicCredentials extends ApiKeyCredentials{constructor(r){if(!r||r&&typeof r!=="string"){throw new Error("topicKey cannot be null or undefined and must be of type string.")}const s={inHeader:{"aeg-sas-key":r}};super(s)}}Object.defineProperty(s,"delay",{enumerable:true,get:function(){return d.delay}});Object.defineProperty(s,"isNode",{enumerable:true,get:function(){return d.isNode}});Object.defineProperty(s,"isTokenCredential",{enumerable:true,get:function(){return p.isTokenCredential}});s.AccessTokenRefresher=AccessTokenRefresher;s.ApiKeyCredentials=ApiKeyCredentials;s.BaseRequestPolicy=BaseRequestPolicy;s.BasicAuthenticationCredentials=BasicAuthenticationCredentials;s.Constants=T;s.DefaultHttpClient=NodeFetchHttpClient;s.ExpiringAccessTokenCache=ExpiringAccessTokenCache;s.HttpHeaders=HttpHeaders;s.MapperType=M;s.RequestPolicyOptions=RequestPolicyOptions;s.RestError=RestError;s.Serializer=Serializer;s.ServiceClient=ServiceClient;s.TopicCredentials=TopicCredentials;s.URLBuilder=URLBuilder;s.URLQuery=URLQuery;s.WebResource=WebResource;s.XML_ATTRKEY=_;s.XML_CHARKEY=P;s.applyMixins=applyMixins;s.bearerTokenAuthenticationPolicy=bearerTokenAuthenticationPolicy;s.createPipelineFromOptions=createPipelineFromOptions;s.createSpanFunction=createSpanFunction;s.deserializationPolicy=deserializationPolicy;s.deserializeResponseBody=deserializeResponseBody;s.disableResponseDecompressionPolicy=disableResponseDecompressionPolicy;s.encodeUri=encodeUri;s.executePromisesSequentially=executePromisesSequentially;s.exponentialRetryPolicy=exponentialRetryPolicy;s.flattenResponse=flattenResponse;s.generateClientRequestIdPolicy=generateClientRequestIdPolicy;s.generateUuid=generateUuid;s.getDefaultProxySettings=getDefaultProxySettings;s.getDefaultUserAgentValue=getDefaultUserAgentValue;s.isDuration=isDuration;s.isValidUuid=isValidUuid;s.keepAlivePolicy=keepAlivePolicy;s.logPolicy=logPolicy;s.operationOptionsToRequestOptionsBase=operationOptionsToRequestOptionsBase;s.parseXML=parseXML;s.promiseToCallback=promiseToCallback;s.promiseToServiceCallback=promiseToServiceCallback;s.proxyPolicy=proxyPolicy;s.redirectPolicy=redirectPolicy;s.serializeObject=serializeObject;s.signingPolicy=signingPolicy;s.stringifyXML=stringifyXML;s.stripRequest=stripRequest;s.stripResponse=stripResponse;s.systemErrorRetryPolicy=systemErrorRetryPolicy;s.throttlingRetryPolicy=throttlingRetryPolicy;s.tracingPolicy=tracingPolicy;s.userAgentPolicy=userAgentPolicy},46279:(r,s,i)=>{var a=i(85443);var A=i(73837);var c=i(71017);var l=i(13685);var d=i(95687);var u=i(57310).parse;var p=i(57147);var g=i(12781).Stream;var h=i(43583);var C=i(14812);var y=i(63971);r.exports=FormData;A.inherits(FormData,a);function FormData(r){if(!(this instanceof FormData)){return new FormData(r)}this._overheadLength=0;this._valueLength=0;this._valuesToMeasure=[];a.call(this);r=r||{};for(var s in r){this[s]=r[s]}}FormData.LINE_BREAK="\r\n";FormData.DEFAULT_CONTENT_TYPE="application/octet-stream";FormData.prototype.append=function(r,s,i){i=i||{};if(typeof i=="string"){i={filename:i}}var c=a.prototype.append.bind(this);if(typeof s=="number"){s=""+s}if(A.isArray(s)){this._error(new Error("Arrays are not supported."));return}var l=this._multiPartHeader(r,s,i);var d=this._multiPartFooter();c(l);c(s);c(d);this._trackLength(l,s,i)};FormData.prototype._trackLength=function(r,s,i){var a=0;if(i.knownLength!=null){a+=+i.knownLength}else if(Buffer.isBuffer(s)){a=s.length}else if(typeof s==="string"){a=Buffer.byteLength(s)}this._valueLength+=a;this._overheadLength+=Buffer.byteLength(r)+FormData.LINE_BREAK.length;if(!s||!s.path&&!(s.readable&&s.hasOwnProperty("httpVersion"))&&!(s instanceof g)){return}if(!i.knownLength){this._valuesToMeasure.push(s)}};FormData.prototype._lengthRetriever=function(r,s){if(r.hasOwnProperty("fd")){if(r.end!=undefined&&r.end!=Infinity&&r.start!=undefined){s(null,r.end+1-(r.start?r.start:0))}else{p.stat(r.path,(function(i,a){var A;if(i){s(i);return}A=a.size-(r.start?r.start:0);s(null,A)}))}}else if(r.hasOwnProperty("httpVersion")){s(null,+r.headers["content-length"])}else if(r.hasOwnProperty("httpModule")){r.on("response",(function(i){r.pause();s(null,+i.headers["content-length"])}));r.resume()}else{s("Unknown stream")}};FormData.prototype._multiPartHeader=function(r,s,i){if(typeof i.header=="string"){return i.header}var a=this._getContentDisposition(s,i);var A=this._getContentType(s,i);var c="";var l={"Content-Disposition":["form-data",'name="'+r+'"'].concat(a||[]),"Content-Type":[].concat(A||[])};if(typeof i.header=="object"){y(l,i.header)}var d;for(var u in l){if(!l.hasOwnProperty(u))continue;d=l[u];if(d==null){continue}if(!Array.isArray(d)){d=[d]}if(d.length){c+=u+": "+d.join("; ")+FormData.LINE_BREAK}}return"--"+this.getBoundary()+FormData.LINE_BREAK+c+FormData.LINE_BREAK};FormData.prototype._getContentDisposition=function(r,s){var i,a;if(typeof s.filepath==="string"){i=c.normalize(s.filepath).replace(/\\/g,"/")}else if(s.filename||r.name||r.path){i=c.basename(s.filename||r.name||r.path)}else if(r.readable&&r.hasOwnProperty("httpVersion")){i=c.basename(r.client._httpMessage.path||"")}if(i){a='filename="'+i+'"'}return a};FormData.prototype._getContentType=function(r,s){var i=s.contentType;if(!i&&r.name){i=h.lookup(r.name)}if(!i&&r.path){i=h.lookup(r.path)}if(!i&&r.readable&&r.hasOwnProperty("httpVersion")){i=r.headers["content-type"]}if(!i&&(s.filepath||s.filename)){i=h.lookup(s.filepath||s.filename)}if(!i&&typeof r=="object"){i=FormData.DEFAULT_CONTENT_TYPE}return i};FormData.prototype._multiPartFooter=function(){return function(r){var s=FormData.LINE_BREAK;var i=this._streams.length===0;if(i){s+=this._lastBoundary()}r(s)}.bind(this)};FormData.prototype._lastBoundary=function(){return"--"+this.getBoundary()+"--"+FormData.LINE_BREAK};FormData.prototype.getHeaders=function(r){var s;var i={"content-type":"multipart/form-data; boundary="+this.getBoundary()};for(s in r){if(r.hasOwnProperty(s)){i[s.toLowerCase()]=r[s]}}return i};FormData.prototype.setBoundary=function(r){this._boundary=r};FormData.prototype.getBoundary=function(){if(!this._boundary){this._generateBoundary()}return this._boundary};FormData.prototype.getBuffer=function(){var r=new Buffer.alloc(0);var s=this.getBoundary();for(var i=0,a=this._streams.length;i{r.exports=function(r,s){Object.keys(s).forEach((function(i){r[i]=r[i]||s[i]}));return r}},27094:(r,s,i)=>{"use strict";Object.defineProperty(s,"__esModule",{value:true});var a=i(3233);var A=i(52557);var c=i(51333);const l=a.createClientLogger("core-lro");const d=2e3;const u=["succeeded","canceled","failed"];function deserializeState(r){try{return JSON.parse(r).state}catch(s){throw new Error(`Unable to deserialize input state: ${r}`)}}function setStateError(r){const{state:s,stateProxy:i,isOperationError:a}=r;return r=>{if(a(r)){i.setError(s,r);i.setFailed(s)}throw r}}function appendReadableErrorMessage(r,s){let i=r;if(i.slice(-1)!=="."){i=i+"."}return i+" "+s}function simplifyError(r){let s=r.message;let i=r.code;let a=r;while(a.innererror){a=a.innererror;i=a.code;s=appendReadableErrorMessage(s,a.message)}return{code:i,message:s}}function processOperationStatus(r){const{state:s,stateProxy:i,status:a,isDone:A,processResult:c,getError:d,response:u,setErrorAsResult:p}=r;switch(a){case"succeeded":{i.setSucceeded(s);break}case"failed":{const r=d===null||d===void 0?void 0:d(u);let a="";if(r){const{code:s,message:i}=simplifyError(r);a=`. ${s}. ${i}`}const A=`The long-running operation has failed${a}`;i.setError(s,new Error(A));i.setFailed(s);l.warning(A);break}case"canceled":{i.setCanceled(s);break}}if((A===null||A===void 0?void 0:A(u,s))||A===undefined&&["succeeded","canceled"].concat(p?[]:["failed"]).includes(a)){i.setResult(s,buildResult({response:u,state:s,processResult:c}))}}function buildResult(r){const{processResult:s,response:i,state:a}=r;return s?s(i,a):i}async function initOperation(r){const{init:s,stateProxy:i,processResult:a,getOperationStatus:A,withOperationLocation:c,setErrorAsResult:d}=r;const{operationLocation:u,resourceLocation:p,metadata:g,response:h}=await s();if(u)c===null||c===void 0?void 0:c(u,false);const C={metadata:g,operationLocation:u,resourceLocation:p};l.verbose(`LRO: Operation description:`,C);const y=i.initState(C);const I=A({response:h,state:y,operationLocation:u});processOperationStatus({state:y,status:I,stateProxy:i,response:h,setErrorAsResult:d,processResult:a});return y}async function pollOperationHelper(r){const{poll:s,state:i,stateProxy:a,operationLocation:A,getOperationStatus:c,getResourceLocation:d,isOperationError:p,options:g}=r;const h=await s(A,g).catch(setStateError({state:i,stateProxy:a,isOperationError:p}));const C=c(h,i);l.verbose(`LRO: Status:\n\tPolling from: ${i.config.operationLocation}\n\tOperation status: ${C}\n\tPolling status: ${u.includes(C)?"Stopped":"Running"}`);if(C==="succeeded"){const r=d(h,i);if(r!==undefined){return{response:await s(r).catch(setStateError({state:i,stateProxy:a,isOperationError:p})),status:C}}}return{response:h,status:C}}async function pollOperation(r){const{poll:s,state:i,stateProxy:a,options:A,getOperationStatus:c,getResourceLocation:l,getOperationLocation:d,isOperationError:p,withOperationLocation:g,getPollingInterval:h,processResult:C,getError:y,updateState:I,setDelay:B,isDone:b,setErrorAsResult:Q}=r;const{operationLocation:w}=i.config;if(w!==undefined){const{response:r,status:v}=await pollOperationHelper({poll:s,getOperationStatus:c,state:i,stateProxy:a,operationLocation:w,getResourceLocation:l,isOperationError:p,options:A});processOperationStatus({status:v,response:r,state:i,stateProxy:a,isDone:b,processResult:C,getError:y,setErrorAsResult:Q});if(!u.includes(v)){const s=h===null||h===void 0?void 0:h(r);if(s)B(s);const a=d===null||d===void 0?void 0:d(r,i);if(a!==undefined){const r=w!==a;i.config.operationLocation=a;g===null||g===void 0?void 0:g(a,r)}else g===null||g===void 0?void 0:g(w,false)}I===null||I===void 0?void 0:I(i,r)}}function getOperationLocationPollingUrl(r){const{azureAsyncOperation:s,operationLocation:i}=r;return i!==null&&i!==void 0?i:s}function getLocationHeader(r){return r.headers["location"]}function getOperationLocationHeader(r){return r.headers["operation-location"]}function getAzureAsyncOperationHeader(r){return r.headers["azure-asyncoperation"]}function findResourceLocation(r){const{location:s,requestMethod:i,requestPath:a,resourceLocationConfig:A}=r;switch(i){case"PUT":{return a}case"DELETE":{return undefined}default:{switch(A){case"azure-async-operation":{return undefined}case"original-uri":{return a}case"location":default:{return s}}}}}function inferLroMode(r){const{rawResponse:s,requestMethod:i,requestPath:a,resourceLocationConfig:A}=r;const c=getOperationLocationHeader(s);const l=getAzureAsyncOperationHeader(s);const d=getOperationLocationPollingUrl({operationLocation:c,azureAsyncOperation:l});const u=getLocationHeader(s);const p=i===null||i===void 0?void 0:i.toLocaleUpperCase();if(d!==undefined){return{mode:"OperationLocation",operationLocation:d,resourceLocation:findResourceLocation({requestMethod:p,location:u,requestPath:a,resourceLocationConfig:A})}}else if(u!==undefined){return{mode:"ResourceLocation",operationLocation:u}}else if(p==="PUT"&&a){return{mode:"Body",operationLocation:a}}else{return undefined}}function transformStatus(r){const{status:s,statusCode:i}=r;if(typeof s!=="string"&&s!==undefined){throw new Error(`Polling was unsuccessful. Expected status to have a string value or no value but it has instead: ${s}. This doesn't necessarily indicate the operation has failed. Check your Azure subscription or resource status for more information.`)}switch(s===null||s===void 0?void 0:s.toLocaleLowerCase()){case undefined:return toOperationStatus(i);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:{l.verbose(`LRO: unrecognized operation status: ${s}`);return s}}}function getStatus(r){var s;const{status:i}=(s=r.body)!==null&&s!==void 0?s:{};return transformStatus({status:i,statusCode:r.statusCode})}function getProvisioningState(r){var s,i;const{properties:a,provisioningState:A}=(s=r.body)!==null&&s!==void 0?s:{};const c=(i=a===null||a===void 0?void 0:a.provisioningState)!==null&&i!==void 0?i:A;return transformStatus({status:c,statusCode:r.statusCode})}function toOperationStatus(r){if(r===202){return"running"}else if(r<300){return"succeeded"}else{return"failed"}}function parseRetryAfter({rawResponse:r}){const s=r.headers["retry-after"];if(s!==undefined){const r=parseInt(s);return isNaN(r)?calculatePollingIntervalFromDate(new Date(s)):r*1e3}return undefined}function getErrorFromResponse(r){const s=r.flatResponse.error;if(!s){l.warning(`The long-running operation failed but there is no error property in the response's body`);return}if(!s.code||!s.message){l.warning(`The long-running operation failed but the error property in the response's body doesn't contain code or message`);return}return s}function calculatePollingIntervalFromDate(r){const s=Math.floor((new Date).getTime());const i=r.getTime();if(s{const r=await A.sendInitialRequest();const s=inferLroMode({rawResponse:r.rawResponse,requestPath:A.requestPath,requestMethod:A.requestMethod,resourceLocationConfig:i});return Object.assign({response:r,operationLocation:s===null||s===void 0?void 0:s.operationLocation,resourceLocation:s===null||s===void 0?void 0:s.resourceLocation},(s===null||s===void 0?void 0:s.mode)?{metadata:{mode:s.mode}}:{})},stateProxy:s,processResult:a?({flatResponse:r},s)=>a(r,s):({flatResponse:r})=>r,getOperationStatus:getStatusFromInitialResponse,setErrorAsResult:c})}function getOperationLocation({rawResponse:r},s){var i;const a=(i=s.config.metadata)===null||i===void 0?void 0:i["mode"];switch(a){case"OperationLocation":{return getOperationLocationPollingUrl({operationLocation:getOperationLocationHeader(r),azureAsyncOperation:getAzureAsyncOperationHeader(r)})}case"ResourceLocation":{return getLocationHeader(r)}case"Body":default:{return undefined}}}function getOperationStatus({rawResponse:r},s){var i;const a=(i=s.config.metadata)===null||i===void 0?void 0:i["mode"];switch(a){case"OperationLocation":{return getStatus(r)}case"ResourceLocation":{return toOperationStatus(r.statusCode)}case"Body":{return getProvisioningState(r)}default:throw new Error(`Internal error: Unexpected operation mode: ${a}`)}}function getResourceLocation({flatResponse:r},s){if(typeof r==="object"){const i=r.resourceLocation;if(i!==undefined){s.config.resourceLocation=i}}return s.config.resourceLocation}function isOperationError(r){return r.name==="RestError"}async function pollHttpOperation(r){const{lro:s,stateProxy:i,options:a,processResult:A,updateState:c,setDelay:l,state:d,setErrorAsResult:u}=r;return pollOperation({state:d,stateProxy:i,setDelay:l,processResult:A?({flatResponse:r},s)=>A(r,s):({flatResponse:r})=>r,getError:getErrorFromResponse,updateState:c,getPollingInterval:parseRetryAfter,getOperationLocation:getOperationLocation,getOperationStatus:getOperationStatus,isOperationError:isOperationError,getResourceLocation:getResourceLocation,options:a,poll:async(r,i)=>s.sendPollRequest(r,i),setErrorAsResult:u})}const createStateProxy$1=()=>({initState:r=>({status:"running",config:r}),setCanceled:r=>r.status="canceled",setError:(r,s)=>r.error=s,setResult:(r,s)=>r.result=s,setRunning:r=>r.status="running",setSucceeded:r=>r.status="succeeded",setFailed:r=>r.status="failed",getError:r=>r.error,getResult:r=>r.result,isCanceled:r=>r.status==="canceled",isFailed:r=>r.status==="failed",isRunning:r=>r.status==="running",isSucceeded:r=>r.status==="succeeded"});function buildCreatePoller(r){const{getOperationLocation:s,getStatusFromInitialResponse:i,getStatusFromPollResponse:a,isOperationError:l,getResourceLocation:u,getPollingInterval:p,getError:g,resolveOnUnsuccessful:h}=r;return async({init:r,poll:C},y)=>{const{processResult:I,updateState:B,withOperationLocation:b,intervalInMs:Q=d,restoreFrom:w}=y||{};const v=createStateProxy$1();const S=b?(()=>{let r=false;return(s,i)=>{if(i)b(s);else if(!r)b(s);r=true}})():undefined;const R=w?deserializeState(w):await initOperation({init:r,stateProxy:v,processResult:I,getOperationStatus:i,withOperationLocation:S,setErrorAsResult:!h});let N;const x=new A.AbortController;const D=new Map;const handleProgressEvents=async()=>D.forEach((r=>r(R)));const k="Operation was canceled";let T=Q;const _={getOperationState:()=>R,getResult:()=>R.result,isDone:()=>["succeeded","failed","canceled"].includes(R.status),isStopped:()=>N===undefined,stopPolling:()=>{x.abort()},toString:()=>JSON.stringify({state:R}),onProgress:r=>{const s=Symbol();D.set(s,r);return()=>D.delete(s)},pollUntilDone:r=>N!==null&&N!==void 0?N:N=(async()=>{const{abortSignal:s}=r||{};const{signal:i}=s?new A.AbortController([s,x.signal]):x;if(!_.isDone()){await _.poll({abortSignal:i});while(!_.isDone()){await c.delay(T,{abortSignal:i});await _.poll({abortSignal:i})}}if(h){return _.getResult()}else{switch(R.status){case"succeeded":return _.getResult();case"canceled":throw new Error(k);case"failed":throw R.error;case"notStarted":case"running":throw new Error(`Polling completed without succeeding or failing`)}}})().finally((()=>{N=undefined})),async poll(r){if(h){if(_.isDone())return}else{switch(R.status){case"succeeded":return;case"canceled":throw new Error(k);case"failed":throw R.error}}await pollOperation({poll:C,state:R,stateProxy:v,getOperationLocation:s,isOperationError:l,withOperationLocation:S,getPollingInterval:p,getOperationStatus:a,getResourceLocation:u,processResult:I,getError:g,updateState:B,options:r,setDelay:r=>{T=r},setErrorAsResult:!h});await handleProgressEvents();if(!h){switch(R.status){case"canceled":throw new Error(k);case"failed":throw R.error}}}};return _}}async function createHttpPoller(r,s){const{resourceLocationConfig:i,intervalInMs:a,processResult:A,restoreFrom:c,updateState:l,withOperationLocation:d,resolveOnUnsuccessful:u=false}=s||{};return buildCreatePoller({getStatusFromInitialResponse:getStatusFromInitialResponse,getStatusFromPollResponse:getOperationStatus,isOperationError:isOperationError,getOperationLocation:getOperationLocation,getResourceLocation:getResourceLocation,getPollingInterval:parseRetryAfter,getError:getErrorFromResponse,resolveOnUnsuccessful:u})({init:async()=>{const s=await r.sendInitialRequest();const a=inferLroMode({rawResponse:s.rawResponse,requestPath:r.requestPath,requestMethod:r.requestMethod,resourceLocationConfig:i});return Object.assign({response:s,operationLocation:a===null||a===void 0?void 0:a.operationLocation,resourceLocation:a===null||a===void 0?void 0:a.resourceLocation},(a===null||a===void 0?void 0:a.mode)?{metadata:{mode:a.mode}}:{})},poll:r.sendPollRequest},{intervalInMs:a,withOperationLocation:d,restoreFrom:c,updateState:l,processResult:A?({flatResponse:r},s)=>A(r,s):({flatResponse:r})=>r})}const createStateProxy=()=>({initState:r=>({config:r,isStarted:true}),setCanceled:r=>r.isCancelled=true,setError:(r,s)=>r.error=s,setResult:(r,s)=>r.result=s,setRunning:r=>r.isStarted=true,setSucceeded:r=>r.isCompleted=true,setFailed:()=>{},getError:r=>r.error,getResult:r=>r.result,isCanceled:r=>!!r.isCancelled,isFailed:r=>!!r.error,isRunning:r=>!!r.isStarted,isSucceeded:r=>Boolean(r.isCompleted&&!r.isCancelled&&!r.error)});class GenericPollOperation{constructor(r,s,i,a,A,c,l){this.state=r;this.lro=s;this.setErrorAsResult=i;this.lroResourceLocationConfig=a;this.processResult=A;this.updateState=c;this.isDone=l}setPollerConfig(r){this.pollerConfig=r}async update(r){var s;const i=createStateProxy();if(!this.state.isStarted){this.state=Object.assign(Object.assign({},this.state),await initHttpOperation({lro:this.lro,stateProxy:i,resourceLocationConfig:this.lroResourceLocationConfig,processResult:this.processResult,setErrorAsResult:this.setErrorAsResult}))}const a=this.updateState;const A=this.isDone;if(!this.state.isCompleted&&this.state.error===undefined){await pollHttpOperation({lro:this.lro,state:this.state,stateProxy:i,processResult:this.processResult,updateState:a?(r,{rawResponse:s})=>a(r,s):undefined,isDone:A?({flatResponse:r},s)=>A(r,s):undefined,options:r,setDelay:r=>{this.pollerConfig.intervalInMs=r},setErrorAsResult:this.setErrorAsResult})}(s=r===null||r===void 0?void 0:r.fireProgress)===null||s===void 0?void 0:s.call(r,this.state);return this}async cancel(){l.error("`cancelOperation` is deprecated because it wasn't implemented");return this}toString(){return JSON.stringify({state:this.state})}}class PollerStoppedError extends Error{constructor(r){super(r);this.name="PollerStoppedError";Object.setPrototypeOf(this,PollerStoppedError.prototype)}}class PollerCancelledError extends Error{constructor(r){super(r);this.name="PollerCancelledError";Object.setPrototypeOf(this,PollerCancelledError.prototype)}}class Poller{constructor(r){this.resolveOnUnsuccessful=false;this.stopped=true;this.pollProgressCallbacks=[];this.operation=r;this.promise=new Promise(((r,s)=>{this.resolve=r;this.reject=s}));this.promise.catch((()=>{}))}async startPolling(r={}){if(this.stopped){this.stopped=false}while(!this.isStopped()&&!this.isDone()){await this.poll(r);await this.delay()}}async pollOnce(r={}){if(!this.isDone()){this.operation=await this.operation.update({abortSignal:r.abortSignal,fireProgress:this.fireProgress.bind(this)})}this.processUpdatedState()}fireProgress(r){for(const s of this.pollProgressCallbacks){s(r)}}async cancelOnce(r={}){this.operation=await this.operation.cancel(r)}poll(r={}){if(!this.pollOncePromise){this.pollOncePromise=this.pollOnce(r);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 r=new PollerCancelledError("Operation was canceled");this.reject(r);throw r}}if(this.isDone()&&this.resolve){this.resolve(this.getResult())}}async pollUntilDone(r={}){if(this.stopped){this.startPolling(r).catch(this.reject)}this.processUpdatedState();return this.promise}onProgress(r){this.pollProgressCallbacks.push(r);return()=>{this.pollProgressCallbacks=this.pollProgressCallbacks.filter((s=>s!==r))}}isDone(){const r=this.operation.state;return Boolean(r.isCompleted||r.isCancelled||r.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(r={}){if(!this.cancelPromise){this.cancelPromise=this.cancelOnce(r)}else if(r.abortSignal){throw new Error("A cancel request is currently pending")}return this.cancelPromise}getOperationState(){return this.operation.state}getResult(){const r=this.operation.state;return r.result}toString(){return this.operation.toString()}}class LroEngine extends Poller{constructor(r,s){const{intervalInMs:i=d,resumeFrom:a,resolveOnUnsuccessful:A=false,isDone:c,lroResourceLocationConfig:l,processResult:u,updateState:p}=s||{};const g=a?deserializeState(a):{};const h=new GenericPollOperation(g,r,!A,l,u,p,c);super(h);this.resolveOnUnsuccessful=A;this.config={intervalInMs:i};h.setPollerConfig(this.config)}delay(){return new Promise((r=>setTimeout((()=>r()),this.config.intervalInMs)))}}s.LroEngine=LroEngine;s.Poller=Poller;s.PollerCancelledError=PollerCancelledError;s.PollerStoppedError=PollerStoppedError;s.createHttpPoller=createHttpPoller},74559:(r,s,i)=>{"use strict";Object.defineProperty(s,"__esModule",{value:true});var a=i(4351);function getPagedAsyncIterator(r){var s;const i=getItemAsyncIterator(r);return{next(){return i.next()},[Symbol.asyncIterator](){return this},byPage:(s=r===null||r===void 0?void 0:r.byPage)!==null&&s!==void 0?s:s=>{const{continuationToken:i,maxPageSize:a}=s!==null&&s!==void 0?s:{};return getPageAsyncIterator(r,{pageLink:i,maxPageSize:a})}}}function getItemAsyncIterator(r){return a.__asyncGenerator(this,arguments,(function*getItemAsyncIterator_1(){var s,i,A,c;const l=getPageAsyncIterator(r);const d=yield a.__await(l.next());if(!Array.isArray(d.value)){const{toElements:A}=r;if(A){yield a.__await(yield*a.__asyncDelegator(a.__asyncValues(A(d.value))));try{for(var u=a.__asyncValues(l),p;p=yield a.__await(u.next()),!p.done;){const r=p.value;yield a.__await(yield*a.__asyncDelegator(a.__asyncValues(A(r))))}}catch(r){s={error:r}}finally{try{if(p&&!p.done&&(i=u.return))yield a.__await(i.call(u))}finally{if(s)throw s.error}}}else{yield yield a.__await(d.value);yield a.__await(yield*a.__asyncDelegator(a.__asyncValues(l)))}}else{yield a.__await(yield*a.__asyncDelegator(a.__asyncValues(d.value)));try{for(var g=a.__asyncValues(l),h;h=yield a.__await(g.next()),!h.done;){const r=h.value;yield a.__await(yield*a.__asyncDelegator(a.__asyncValues(r)))}}catch(r){A={error:r}}finally{try{if(h&&!h.done&&(c=g.return))yield a.__await(c.call(g))}finally{if(A)throw A.error}}}}))}function getPageAsyncIterator(r,s={}){return a.__asyncGenerator(this,arguments,(function*getPageAsyncIterator_1(){const{pageLink:i,maxPageSize:A}=s;let c=yield a.__await(r.getPage(i!==null&&i!==void 0?i:r.firstPageLink,A));if(!c){return yield a.__await(void 0)}yield yield a.__await(c.page);while(c.nextPageLink){c=yield a.__await(r.getPage(c.nextPageLink,A));if(!c){return yield a.__await(void 0)}yield yield a.__await(c.page)}}))}s.getPagedAsyncIterator=getPagedAsyncIterator},94175:(r,s,i)=>{"use strict";Object.defineProperty(s,"__esModule",{value:true});var a=i(65163);(function(r){r[r["INTERNAL"]=0]="INTERNAL";r[r["SERVER"]=1]="SERVER";r[r["CLIENT"]=2]="CLIENT";r[r["PRODUCER"]=3]="PRODUCER";r[r["CONSUMER"]=4]="CONSUMER"})(s.SpanKind||(s.SpanKind={}));function getSpan(r){return a.trace.getSpan(r)}function setSpan(r,s){return a.trace.setSpan(r,s)}function setSpanContext(r,s){return a.trace.setSpanContext(r,s)}function getSpanContext(r){return a.trace.getSpanContext(r)}function isSpanContextValid(r){return a.trace.isSpanContextValid(r)}function getTracer(r,s){return a.trace.getTracer(r||"azure/core-tracing",s)}const A=a.context;(function(r){r[r["UNSET"]=0]="UNSET";r[r["OK"]=1]="OK";r[r["ERROR"]=2]="ERROR"})(s.SpanStatusCode||(s.SpanStatusCode={}));function isTracingDisabled(){var r;if(typeof process==="undefined"){return false}const s=(r=process.env.AZURE_TRACING_DISABLED)===null||r===void 0?void 0:r.toLowerCase();if(s==="false"||s==="0"){return false}return Boolean(s)}function createSpanFunction(r){return function(i,c){const l=getTracer();const d=(c===null||c===void 0?void 0:c.tracingOptions)||{};const u=Object.assign({kind:s.SpanKind.INTERNAL},d.spanOptions);const p=r.packagePrefix?`${r.packagePrefix}.${i}`:i;let g;if(isTracingDisabled()){g=a.trace.wrapSpanContext(a.INVALID_SPAN_CONTEXT)}else{g=l.startSpan(p,u,d.tracingContext)}if(r.namespace){g.setAttribute("az.namespace",r.namespace)}let h=d.spanOptions||{};if(g.isRecording()&&r.namespace){h=Object.assign(Object.assign({},d.spanOptions),{attributes:Object.assign(Object.assign({},u.attributes),{"az.namespace":r.namespace})})}const C=Object.assign(Object.assign({},d),{spanOptions:h,tracingContext:setSpan(d.tracingContext||A.active(),g)});const y=Object.assign(Object.assign({},c),{tracingOptions:C});return{span:g,updatedOptions:y}}}const c="00";function extractSpanContextFromTraceParentHeader(r){const s=r.split("-");if(s.length!==4){return}const[i,a,A,l]=s;if(i!==c){return}const d=parseInt(l,16);const u={spanId:A,traceId:a,traceFlags:d};return u}function getTraceParentHeader(r){const s=[];if(!r.traceId){s.push("traceId")}if(!r.spanId){s.push("spanId")}if(s.length){return}const i=r.traceFlags||0;const a=i.toString(16);const A=a.length===1?`0${a}`:a;return`${c}-${r.traceId}-${r.spanId}-${A}`}s.context=A;s.createSpanFunction=createSpanFunction;s.extractSpanContextFromTraceParentHeader=extractSpanContextFromTraceParentHeader;s.getSpan=getSpan;s.getSpanContext=getSpanContext;s.getTraceParentHeader=getTraceParentHeader;s.getTracer=getTracer;s.isSpanContextValid=isSpanContextValid;s.setSpan=setSpan;s.setSpanContext=setSpanContext},51333:(r,s,i)=>{"use strict";Object.defineProperty(s,"__esModule",{value:true});var a=i(52557);var A=i(6113);var c;const l=typeof process!=="undefined"&&Boolean(process.version)&&Boolean((c=process.versions)===null||c===void 0?void 0:c.node);function createAbortablePromise(r,s){const{cleanupBeforeAbort:i,abortSignal:A,abortErrorMsg:c}=s!==null&&s!==void 0?s:{};return new Promise(((s,l)=>{function rejectOnAbort(){l(new a.AbortError(c!==null&&c!==void 0?c:"The operation was aborted."))}function removeListeners(){A===null||A===void 0?void 0:A.removeEventListener("abort",onAbort)}function onAbort(){i===null||i===void 0?void 0:i();removeListeners();rejectOnAbort()}if(A===null||A===void 0?void 0:A.aborted){return rejectOnAbort()}try{r((r=>{removeListeners();s(r)}),(r=>{removeListeners();l(r)}))}catch(r){l(r)}A===null||A===void 0?void 0:A.addEventListener("abort",onAbort)}))}const d="The delay was aborted.";function delay(r,s){let i;const{abortSignal:a,abortErrorMsg:A}=s!==null&&s!==void 0?s:{};return createAbortablePromise((s=>{i=setTimeout(s,r)}),{cleanupBeforeAbort:()=>clearTimeout(i),abortSignal:a,abortErrorMsg:A!==null&&A!==void 0?A:d})}function getRandomIntegerInclusive(r,s){r=Math.ceil(r);s=Math.floor(s);const i=Math.floor(Math.random()*(s-r+1));return i+r}function isObject(r){return typeof r==="object"&&r!==null&&!Array.isArray(r)&&!(r instanceof RegExp)&&!(r instanceof Date)}function isError(r){if(isObject(r)){const s=typeof r.name==="string";const i=typeof r.message==="string";return s&&i}return false}function getErrorMessage(r){if(isError(r)){return r.message}else{let s;try{if(typeof r==="object"&&r){s=JSON.stringify(r)}else{s=String(r)}}catch(r){s="[unable to stringify input]"}return`Unknown error ${s}`}}async function computeSha256Hmac(r,s,i){const a=Buffer.from(r,"base64");return A.createHmac("sha256",a).update(s).digest(i)}async function computeSha256Hash(r,s){return A.createHash("sha256").update(r).digest(s)}function isDefined(r){return typeof r!=="undefined"&&r!==null}function isObjectWithProperties(r,s){if(!isDefined(r)||typeof r!=="object"){return false}for(const i of s){if(!objectHasProperty(r,i)){return false}}return true}function objectHasProperty(r,s){return isDefined(r)&&typeof r==="object"&&s in r}function generateUUID(){let r="";for(let s=0;s<32;s++){const i=Math.floor(Math.random()*16);if(s===12){r+="4"}else if(s===16){r+=i&3|8}else{r+=i.toString(16)}if(s===7||s===11||s===15||s===19){r+="-"}}return r}var u;let p=typeof((u=globalThis===null||globalThis===void 0?void 0:globalThis.crypto)===null||u===void 0?void 0:u.randomUUID)==="function"?globalThis.crypto.randomUUID.bind(globalThis.crypto):A.randomUUID;if(!p){p=generateUUID}function randomUUID(){return p()}s.computeSha256Hash=computeSha256Hash;s.computeSha256Hmac=computeSha256Hmac;s.createAbortablePromise=createAbortablePromise;s.delay=delay;s.getErrorMessage=getErrorMessage;s.getRandomIntegerInclusive=getRandomIntegerInclusive;s.isDefined=isDefined;s.isError=isError;s.isNode=l;s.isObject=isObject;s.isObjectWithProperties=isObjectWithProperties;s.objectHasProperty=objectHasProperty;s.randomUUID=randomUUID},3233:(r,s,i)=>{"use strict";Object.defineProperty(s,"__esModule",{value:true});var a=i(22037);var A=i(73837);function _interopDefaultLegacy(r){return r&&typeof r==="object"&&"default"in r?r:{default:r}}var c=_interopDefaultLegacy(A);function log(r,...s){process.stderr.write(`${c["default"].format(r,...s)}${a.EOL}`)}const l=typeof process!=="undefined"&&process.env&&process.env.DEBUG||undefined;let d;let u=[];let p=[];const g=[];if(l){enable(l)}const h=Object.assign((r=>createDebugger(r)),{enable:enable,enabled:enabled,disable:disable,log:log});function enable(r){d=r;u=[];p=[];const s=/\*/g;const i=r.split(",").map((r=>r.trim().replace(s,".*?")));for(const r of i){if(r.startsWith("-")){p.push(new RegExp(`^${r.substr(1)}$`))}else{u.push(new RegExp(`^${r}$`))}}for(const r of g){r.enabled=enabled(r.namespace)}}function enabled(r){if(r.endsWith("*")){return true}for(const s of p){if(s.test(r)){return false}}for(const s of u){if(s.test(r)){return true}}return false}function disable(){const r=d||"";enable("");return r}function createDebugger(r){const s=Object.assign(debug,{enabled:enabled(r),destroy:destroy,log:h.log,namespace:r,extend:extend});function debug(...i){if(!s.enabled){return}if(i.length>0){i[0]=`${r} ${i[0]}`}s.log(...i)}g.push(s);return s}function destroy(){const r=g.indexOf(this);if(r>=0){g.splice(r,1);return true}return false}function extend(r){const s=createDebugger(`${this.namespace}:${r}`);s.log=this.log;return s}var C=h;const y=new Set;const I=typeof process!=="undefined"&&process.env&&process.env.AZURE_LOG_LEVEL||undefined;let B;const b=C("azure");b.log=(...r)=>{C.log(...r)};const Q=["verbose","info","warning","error"];if(I){if(isAzureLogLevel(I)){setLogLevel(I)}else{console.error(`AZURE_LOG_LEVEL set to unknown log level '${I}'; logging is not enabled. Acceptable values: ${Q.join(", ")}.`)}}function setLogLevel(r){if(r&&!isAzureLogLevel(r)){throw new Error(`Unknown log level '${r}'. Acceptable values: ${Q.join(",")}`)}B=r;const s=[];for(const r of y){if(shouldEnable(r)){s.push(r.namespace)}}C.enable(s.join(","))}function getLogLevel(){return B}const w={verbose:400,info:300,warning:200,error:100};function createClientLogger(r){const s=b.extend(r);patchLogMethod(b,s);return{error:createLogger(s,"error"),warning:createLogger(s,"warning"),info:createLogger(s,"info"),verbose:createLogger(s,"verbose")}}function patchLogMethod(r,s){s.log=(...s)=>{r.log(...s)}}function createLogger(r,s){const i=Object.assign(r.extend(s),{level:s});patchLogMethod(r,i);if(shouldEnable(i)){const r=C.disable();C.enable(r+","+i.namespace)}y.add(i);return i}function shouldEnable(r){return Boolean(B&&w[r.level]<=w[B])}function isAzureLogLevel(r){return Q.includes(r)}s.AzureLogger=b;s.createClientLogger=createClientLogger;s.getLogLevel=getLogLevel;s.setLogLevel=setLogLevel},84100:(r,s,i)=>{"use strict";Object.defineProperty(s,"__esModule",{value:true});var a=i(24607);var A=i(4351);var c=i(94175);var l=i(3233);var d=i(52557);var u=i(22037);var p=i(6113);var g=i(12781);i(74559);var h=i(27094);var C=i(82361);var y=i(57147);var I=i(73837);function _interopNamespace(r){if(r&&r.__esModule)return r;var s=Object.create(null);if(r){Object.keys(r).forEach((function(i){if(i!=="default"){var a=Object.getOwnPropertyDescriptor(r,i);Object.defineProperty(s,i,a.get?a:{enumerable:true,get:function(){return r[i]}})}}))}s["default"]=r;return Object.freeze(s)}var B=_interopNamespace(a);var b=_interopNamespace(u);var Q=_interopNamespace(y);var w=_interopNamespace(I);const v={serializedName:"BlobServiceProperties",xmlName:"StorageServiceProperties",type:{name:"Composite",className:"BlobServiceProperties",modelProperties:{blobAnalyticsLogging:{serializedName:"Logging",xmlName:"Logging",type:{name:"Composite",className:"Logging"}},hourMetrics:{serializedName:"HourMetrics",xmlName:"HourMetrics",type:{name:"Composite",className:"Metrics"}},minuteMetrics:{serializedName:"MinuteMetrics",xmlName:"MinuteMetrics",type:{name:"Composite",className:"Metrics"}},cors:{serializedName:"Cors",xmlName:"Cors",xmlIsWrapped:true,xmlElementName:"CorsRule",type:{name:"Sequence",element:{type:{name:"Composite",className:"CorsRule"}}}},defaultServiceVersion:{serializedName:"DefaultServiceVersion",xmlName:"DefaultServiceVersion",type:{name:"String"}},deleteRetentionPolicy:{serializedName:"DeleteRetentionPolicy",xmlName:"DeleteRetentionPolicy",type:{name:"Composite",className:"RetentionPolicy"}},staticWebsite:{serializedName:"StaticWebsite",xmlName:"StaticWebsite",type:{name:"Composite",className:"StaticWebsite"}}}}};const S={serializedName:"Logging",type:{name:"Composite",className:"Logging",modelProperties:{version:{serializedName:"Version",required:true,xmlName:"Version",type:{name:"String"}},deleteProperty:{serializedName:"Delete",required:true,xmlName:"Delete",type:{name:"Boolean"}},read:{serializedName:"Read",required:true,xmlName:"Read",type:{name:"Boolean"}},write:{serializedName:"Write",required:true,xmlName:"Write",type:{name:"Boolean"}},retentionPolicy:{serializedName:"RetentionPolicy",xmlName:"RetentionPolicy",type:{name:"Composite",className:"RetentionPolicy"}}}}};const R={serializedName:"RetentionPolicy",type:{name:"Composite",className:"RetentionPolicy",modelProperties:{enabled:{serializedName:"Enabled",required:true,xmlName:"Enabled",type:{name:"Boolean"}},days:{constraints:{InclusiveMinimum:1},serializedName:"Days",xmlName:"Days",type:{name:"Number"}}}}};const N={serializedName:"Metrics",type:{name:"Composite",className:"Metrics",modelProperties:{version:{serializedName:"Version",xmlName:"Version",type:{name:"String"}},enabled:{serializedName:"Enabled",required:true,xmlName:"Enabled",type:{name:"Boolean"}},includeAPIs:{serializedName:"IncludeAPIs",xmlName:"IncludeAPIs",type:{name:"Boolean"}},retentionPolicy:{serializedName:"RetentionPolicy",xmlName:"RetentionPolicy",type:{name:"Composite",className:"RetentionPolicy"}}}}};const x={serializedName:"CorsRule",type:{name:"Composite",className:"CorsRule",modelProperties:{allowedOrigins:{serializedName:"AllowedOrigins",required:true,xmlName:"AllowedOrigins",type:{name:"String"}},allowedMethods:{serializedName:"AllowedMethods",required:true,xmlName:"AllowedMethods",type:{name:"String"}},allowedHeaders:{serializedName:"AllowedHeaders",required:true,xmlName:"AllowedHeaders",type:{name:"String"}},exposedHeaders:{serializedName:"ExposedHeaders",required:true,xmlName:"ExposedHeaders",type:{name:"String"}},maxAgeInSeconds:{constraints:{InclusiveMinimum:0},serializedName:"MaxAgeInSeconds",required:true,xmlName:"MaxAgeInSeconds",type:{name:"Number"}}}}};const D={serializedName:"StaticWebsite",type:{name:"Composite",className:"StaticWebsite",modelProperties:{enabled:{serializedName:"Enabled",required:true,xmlName:"Enabled",type:{name:"Boolean"}},indexDocument:{serializedName:"IndexDocument",xmlName:"IndexDocument",type:{name:"String"}},errorDocument404Path:{serializedName:"ErrorDocument404Path",xmlName:"ErrorDocument404Path",type:{name:"String"}},defaultIndexDocumentPath:{serializedName:"DefaultIndexDocumentPath",xmlName:"DefaultIndexDocumentPath",type:{name:"String"}}}}};const k={serializedName:"StorageError",type:{name:"Composite",className:"StorageError",modelProperties:{message:{serializedName:"Message",xmlName:"Message",type:{name:"String"}},code:{serializedName:"Code",xmlName:"Code",type:{name:"String"}}}}};const T={serializedName:"BlobServiceStatistics",xmlName:"StorageServiceStats",type:{name:"Composite",className:"BlobServiceStatistics",modelProperties:{geoReplication:{serializedName:"GeoReplication",xmlName:"GeoReplication",type:{name:"Composite",className:"GeoReplication"}}}}};const _={serializedName:"GeoReplication",type:{name:"Composite",className:"GeoReplication",modelProperties:{status:{serializedName:"Status",required:true,xmlName:"Status",type:{name:"Enum",allowedValues:["live","bootstrap","unavailable"]}},lastSyncOn:{serializedName:"LastSyncTime",required:true,xmlName:"LastSyncTime",type:{name:"DateTimeRfc1123"}}}}};const P={serializedName:"ListContainersSegmentResponse",xmlName:"EnumerationResults",type:{name:"Composite",className:"ListContainersSegmentResponse",modelProperties:{serviceEndpoint:{serializedName:"ServiceEndpoint",required:true,xmlName:"ServiceEndpoint",xmlIsAttribute:true,type:{name:"String"}},prefix:{serializedName:"Prefix",xmlName:"Prefix",type:{name:"String"}},marker:{serializedName:"Marker",xmlName:"Marker",type:{name:"String"}},maxPageSize:{serializedName:"MaxResults",xmlName:"MaxResults",type:{name:"Number"}},containerItems:{serializedName:"ContainerItems",required:true,xmlName:"Containers",xmlIsWrapped:true,xmlElementName:"Container",type:{name:"Sequence",element:{type:{name:"Composite",className:"ContainerItem"}}}},continuationToken:{serializedName:"NextMarker",xmlName:"NextMarker",type:{name:"String"}}}}};const O={serializedName:"ContainerItem",xmlName:"Container",type:{name:"Composite",className:"ContainerItem",modelProperties:{name:{serializedName:"Name",required:true,xmlName:"Name",type:{name:"String"}},deleted:{serializedName:"Deleted",xmlName:"Deleted",type:{name:"Boolean"}},version:{serializedName:"Version",xmlName:"Version",type:{name:"String"}},properties:{serializedName:"Properties",xmlName:"Properties",type:{name:"Composite",className:"ContainerProperties"}},metadata:{serializedName:"Metadata",xmlName:"Metadata",type:{name:"Dictionary",value:{type:{name:"String"}}}}}}};const L={serializedName:"ContainerProperties",type:{name:"Composite",className:"ContainerProperties",modelProperties:{lastModified:{serializedName:"Last-Modified",required:true,xmlName:"Last-Modified",type:{name:"DateTimeRfc1123"}},etag:{serializedName:"Etag",required:true,xmlName:"Etag",type:{name:"String"}},leaseStatus:{serializedName:"LeaseStatus",xmlName:"LeaseStatus",type:{name:"Enum",allowedValues:["locked","unlocked"]}},leaseState:{serializedName:"LeaseState",xmlName:"LeaseState",type:{name:"Enum",allowedValues:["available","leased","expired","breaking","broken"]}},leaseDuration:{serializedName:"LeaseDuration",xmlName:"LeaseDuration",type:{name:"Enum",allowedValues:["infinite","fixed"]}},publicAccess:{serializedName:"PublicAccess",xmlName:"PublicAccess",type:{name:"Enum",allowedValues:["container","blob"]}},hasImmutabilityPolicy:{serializedName:"HasImmutabilityPolicy",xmlName:"HasImmutabilityPolicy",type:{name:"Boolean"}},hasLegalHold:{serializedName:"HasLegalHold",xmlName:"HasLegalHold",type:{name:"Boolean"}},defaultEncryptionScope:{serializedName:"DefaultEncryptionScope",xmlName:"DefaultEncryptionScope",type:{name:"String"}},preventEncryptionScopeOverride:{serializedName:"DenyEncryptionScopeOverride",xmlName:"DenyEncryptionScopeOverride",type:{name:"Boolean"}},deletedOn:{serializedName:"DeletedTime",xmlName:"DeletedTime",type:{name:"DateTimeRfc1123"}},remainingRetentionDays:{serializedName:"RemainingRetentionDays",xmlName:"RemainingRetentionDays",type:{name:"Number"}},isImmutableStorageWithVersioningEnabled:{serializedName:"ImmutableStorageWithVersioningEnabled",xmlName:"ImmutableStorageWithVersioningEnabled",type:{name:"Boolean"}}}}};const M={serializedName:"KeyInfo",type:{name:"Composite",className:"KeyInfo",modelProperties:{startsOn:{serializedName:"Start",required:true,xmlName:"Start",type:{name:"String"}},expiresOn:{serializedName:"Expiry",required:true,xmlName:"Expiry",type:{name:"String"}}}}};const U={serializedName:"UserDelegationKey",type:{name:"Composite",className:"UserDelegationKey",modelProperties:{signedObjectId:{serializedName:"SignedOid",required:true,xmlName:"SignedOid",type:{name:"String"}},signedTenantId:{serializedName:"SignedTid",required:true,xmlName:"SignedTid",type:{name:"String"}},signedStartsOn:{serializedName:"SignedStart",required:true,xmlName:"SignedStart",type:{name:"String"}},signedExpiresOn:{serializedName:"SignedExpiry",required:true,xmlName:"SignedExpiry",type:{name:"String"}},signedService:{serializedName:"SignedService",required:true,xmlName:"SignedService",type:{name:"String"}},signedVersion:{serializedName:"SignedVersion",required:true,xmlName:"SignedVersion",type:{name:"String"}},value:{serializedName:"Value",required:true,xmlName:"Value",type:{name:"String"}}}}};const H={serializedName:"FilterBlobSegment",xmlName:"EnumerationResults",type:{name:"Composite",className:"FilterBlobSegment",modelProperties:{serviceEndpoint:{serializedName:"ServiceEndpoint",required:true,xmlName:"ServiceEndpoint",xmlIsAttribute:true,type:{name:"String"}},where:{serializedName:"Where",required:true,xmlName:"Where",type:{name:"String"}},blobs:{serializedName:"Blobs",required:true,xmlName:"Blobs",xmlIsWrapped:true,xmlElementName:"Blob",type:{name:"Sequence",element:{type:{name:"Composite",className:"FilterBlobItem"}}}},continuationToken:{serializedName:"NextMarker",xmlName:"NextMarker",type:{name:"String"}}}}};const G={serializedName:"FilterBlobItem",xmlName:"Blob",type:{name:"Composite",className:"FilterBlobItem",modelProperties:{name:{serializedName:"Name",required:true,xmlName:"Name",type:{name:"String"}},containerName:{serializedName:"ContainerName",required:true,xmlName:"ContainerName",type:{name:"String"}},tags:{serializedName:"Tags",xmlName:"Tags",type:{name:"Composite",className:"BlobTags"}}}}};const q={serializedName:"BlobTags",xmlName:"Tags",type:{name:"Composite",className:"BlobTags",modelProperties:{blobTagSet:{serializedName:"BlobTagSet",required:true,xmlName:"TagSet",xmlIsWrapped:true,xmlElementName:"Tag",type:{name:"Sequence",element:{type:{name:"Composite",className:"BlobTag"}}}}}}};const V={serializedName:"BlobTag",xmlName:"Tag",type:{name:"Composite",className:"BlobTag",modelProperties:{key:{serializedName:"Key",required:true,xmlName:"Key",type:{name:"String"}},value:{serializedName:"Value",required:true,xmlName:"Value",type:{name:"String"}}}}};const j={serializedName:"SignedIdentifier",xmlName:"SignedIdentifier",type:{name:"Composite",className:"SignedIdentifier",modelProperties:{id:{serializedName:"Id",required:true,xmlName:"Id",type:{name:"String"}},accessPolicy:{serializedName:"AccessPolicy",xmlName:"AccessPolicy",type:{name:"Composite",className:"AccessPolicy"}}}}};const z={serializedName:"AccessPolicy",type:{name:"Composite",className:"AccessPolicy",modelProperties:{startsOn:{serializedName:"Start",xmlName:"Start",type:{name:"String"}},expiresOn:{serializedName:"Expiry",xmlName:"Expiry",type:{name:"String"}},permissions:{serializedName:"Permission",xmlName:"Permission",type:{name:"String"}}}}};const Y={serializedName:"ListBlobsFlatSegmentResponse",xmlName:"EnumerationResults",type:{name:"Composite",className:"ListBlobsFlatSegmentResponse",modelProperties:{serviceEndpoint:{serializedName:"ServiceEndpoint",required:true,xmlName:"ServiceEndpoint",xmlIsAttribute:true,type:{name:"String"}},containerName:{serializedName:"ContainerName",required:true,xmlName:"ContainerName",xmlIsAttribute:true,type:{name:"String"}},prefix:{serializedName:"Prefix",xmlName:"Prefix",type:{name:"String"}},marker:{serializedName:"Marker",xmlName:"Marker",type:{name:"String"}},maxPageSize:{serializedName:"MaxResults",xmlName:"MaxResults",type:{name:"Number"}},segment:{serializedName:"Segment",xmlName:"Blobs",type:{name:"Composite",className:"BlobFlatListSegment"}},continuationToken:{serializedName:"NextMarker",xmlName:"NextMarker",type:{name:"String"}}}}};const J={serializedName:"BlobFlatListSegment",xmlName:"Blobs",type:{name:"Composite",className:"BlobFlatListSegment",modelProperties:{blobItems:{serializedName:"BlobItems",required:true,xmlName:"BlobItems",xmlElementName:"Blob",type:{name:"Sequence",element:{type:{name:"Composite",className:"BlobItemInternal"}}}}}}};const W={serializedName:"BlobItemInternal",xmlName:"Blob",type:{name:"Composite",className:"BlobItemInternal",modelProperties:{name:{serializedName:"Name",xmlName:"Name",type:{name:"Composite",className:"BlobName"}},deleted:{serializedName:"Deleted",required:true,xmlName:"Deleted",type:{name:"Boolean"}},snapshot:{serializedName:"Snapshot",required:true,xmlName:"Snapshot",type:{name:"String"}},versionId:{serializedName:"VersionId",xmlName:"VersionId",type:{name:"String"}},isCurrentVersion:{serializedName:"IsCurrentVersion",xmlName:"IsCurrentVersion",type:{name:"Boolean"}},properties:{serializedName:"Properties",xmlName:"Properties",type:{name:"Composite",className:"BlobPropertiesInternal"}},metadata:{serializedName:"Metadata",xmlName:"Metadata",type:{name:"Dictionary",value:{type:{name:"String"}}}},blobTags:{serializedName:"BlobTags",xmlName:"Tags",type:{name:"Composite",className:"BlobTags"}},objectReplicationMetadata:{serializedName:"ObjectReplicationMetadata",xmlName:"OrMetadata",type:{name:"Dictionary",value:{type:{name:"String"}}}},hasVersionsOnly:{serializedName:"HasVersionsOnly",xmlName:"HasVersionsOnly",type:{name:"Boolean"}}}}};const X={serializedName:"BlobName",type:{name:"Composite",className:"BlobName",modelProperties:{encoded:{serializedName:"Encoded",xmlName:"Encoded",xmlIsAttribute:true,type:{name:"Boolean"}},content:{serializedName:"content",xmlName:"content",xmlIsMsText:true,type:{name:"String"}}}}};const $={serializedName:"BlobPropertiesInternal",xmlName:"Properties",type:{name:"Composite",className:"BlobPropertiesInternal",modelProperties:{createdOn:{serializedName:"Creation-Time",xmlName:"Creation-Time",type:{name:"DateTimeRfc1123"}},lastModified:{serializedName:"Last-Modified",required:true,xmlName:"Last-Modified",type:{name:"DateTimeRfc1123"}},etag:{serializedName:"Etag",required:true,xmlName:"Etag",type:{name:"String"}},contentLength:{serializedName:"Content-Length",xmlName:"Content-Length",type:{name:"Number"}},contentType:{serializedName:"Content-Type",xmlName:"Content-Type",type:{name:"String"}},contentEncoding:{serializedName:"Content-Encoding",xmlName:"Content-Encoding",type:{name:"String"}},contentLanguage:{serializedName:"Content-Language",xmlName:"Content-Language",type:{name:"String"}},contentMD5:{serializedName:"Content-MD5",xmlName:"Content-MD5",type:{name:"ByteArray"}},contentDisposition:{serializedName:"Content-Disposition",xmlName:"Content-Disposition",type:{name:"String"}},cacheControl:{serializedName:"Cache-Control",xmlName:"Cache-Control",type:{name:"String"}},blobSequenceNumber:{serializedName:"x-ms-blob-sequence-number",xmlName:"x-ms-blob-sequence-number",type:{name:"Number"}},blobType:{serializedName:"BlobType",xmlName:"BlobType",type:{name:"Enum",allowedValues:["BlockBlob","PageBlob","AppendBlob"]}},leaseStatus:{serializedName:"LeaseStatus",xmlName:"LeaseStatus",type:{name:"Enum",allowedValues:["locked","unlocked"]}},leaseState:{serializedName:"LeaseState",xmlName:"LeaseState",type:{name:"Enum",allowedValues:["available","leased","expired","breaking","broken"]}},leaseDuration:{serializedName:"LeaseDuration",xmlName:"LeaseDuration",type:{name:"Enum",allowedValues:["infinite","fixed"]}},copyId:{serializedName:"CopyId",xmlName:"CopyId",type:{name:"String"}},copyStatus:{serializedName:"CopyStatus",xmlName:"CopyStatus",type:{name:"Enum",allowedValues:["pending","success","aborted","failed"]}},copySource:{serializedName:"CopySource",xmlName:"CopySource",type:{name:"String"}},copyProgress:{serializedName:"CopyProgress",xmlName:"CopyProgress",type:{name:"String"}},copyCompletedOn:{serializedName:"CopyCompletionTime",xmlName:"CopyCompletionTime",type:{name:"DateTimeRfc1123"}},copyStatusDescription:{serializedName:"CopyStatusDescription",xmlName:"CopyStatusDescription",type:{name:"String"}},serverEncrypted:{serializedName:"ServerEncrypted",xmlName:"ServerEncrypted",type:{name:"Boolean"}},incrementalCopy:{serializedName:"IncrementalCopy",xmlName:"IncrementalCopy",type:{name:"Boolean"}},destinationSnapshot:{serializedName:"DestinationSnapshot",xmlName:"DestinationSnapshot",type:{name:"String"}},deletedOn:{serializedName:"DeletedTime",xmlName:"DeletedTime",type:{name:"DateTimeRfc1123"}},remainingRetentionDays:{serializedName:"RemainingRetentionDays",xmlName:"RemainingRetentionDays",type:{name:"Number"}},accessTier:{serializedName:"AccessTier",xmlName:"AccessTier",type:{name:"Enum",allowedValues:["P4","P6","P10","P15","P20","P30","P40","P50","P60","P70","P80","Hot","Cool","Archive","Cold"]}},accessTierInferred:{serializedName:"AccessTierInferred",xmlName:"AccessTierInferred",type:{name:"Boolean"}},archiveStatus:{serializedName:"ArchiveStatus",xmlName:"ArchiveStatus",type:{name:"Enum",allowedValues:["rehydrate-pending-to-hot","rehydrate-pending-to-cool","rehydrate-pending-to-cold"]}},customerProvidedKeySha256:{serializedName:"CustomerProvidedKeySha256",xmlName:"CustomerProvidedKeySha256",type:{name:"String"}},encryptionScope:{serializedName:"EncryptionScope",xmlName:"EncryptionScope",type:{name:"String"}},accessTierChangedOn:{serializedName:"AccessTierChangeTime",xmlName:"AccessTierChangeTime",type:{name:"DateTimeRfc1123"}},tagCount:{serializedName:"TagCount",xmlName:"TagCount",type:{name:"Number"}},expiresOn:{serializedName:"Expiry-Time",xmlName:"Expiry-Time",type:{name:"DateTimeRfc1123"}},isSealed:{serializedName:"Sealed",xmlName:"Sealed",type:{name:"Boolean"}},rehydratePriority:{serializedName:"RehydratePriority",xmlName:"RehydratePriority",type:{name:"Enum",allowedValues:["High","Standard"]}},lastAccessedOn:{serializedName:"LastAccessTime",xmlName:"LastAccessTime",type:{name:"DateTimeRfc1123"}},immutabilityPolicyExpiresOn:{serializedName:"ImmutabilityPolicyUntilDate",xmlName:"ImmutabilityPolicyUntilDate",type:{name:"DateTimeRfc1123"}},immutabilityPolicyMode:{serializedName:"ImmutabilityPolicyMode",xmlName:"ImmutabilityPolicyMode",type:{name:"Enum",allowedValues:["Mutable","Unlocked","Locked"]}},legalHold:{serializedName:"LegalHold",xmlName:"LegalHold",type:{name:"Boolean"}}}}};const K={serializedName:"ListBlobsHierarchySegmentResponse",xmlName:"EnumerationResults",type:{name:"Composite",className:"ListBlobsHierarchySegmentResponse",modelProperties:{serviceEndpoint:{serializedName:"ServiceEndpoint",required:true,xmlName:"ServiceEndpoint",xmlIsAttribute:true,type:{name:"String"}},containerName:{serializedName:"ContainerName",required:true,xmlName:"ContainerName",xmlIsAttribute:true,type:{name:"String"}},prefix:{serializedName:"Prefix",xmlName:"Prefix",type:{name:"String"}},marker:{serializedName:"Marker",xmlName:"Marker",type:{name:"String"}},maxPageSize:{serializedName:"MaxResults",xmlName:"MaxResults",type:{name:"Number"}},delimiter:{serializedName:"Delimiter",xmlName:"Delimiter",type:{name:"String"}},segment:{serializedName:"Segment",xmlName:"Blobs",type:{name:"Composite",className:"BlobHierarchyListSegment"}},continuationToken:{serializedName:"NextMarker",xmlName:"NextMarker",type:{name:"String"}}}}};const Z={serializedName:"BlobHierarchyListSegment",xmlName:"Blobs",type:{name:"Composite",className:"BlobHierarchyListSegment",modelProperties:{blobPrefixes:{serializedName:"BlobPrefixes",xmlName:"BlobPrefixes",xmlElementName:"BlobPrefix",type:{name:"Sequence",element:{type:{name:"Composite",className:"BlobPrefix"}}}},blobItems:{serializedName:"BlobItems",required:true,xmlName:"BlobItems",xmlElementName:"Blob",type:{name:"Sequence",element:{type:{name:"Composite",className:"BlobItemInternal"}}}}}}};const ee={serializedName:"BlobPrefix",type:{name:"Composite",className:"BlobPrefix",modelProperties:{name:{serializedName:"Name",xmlName:"Name",type:{name:"Composite",className:"BlobName"}}}}};const te={serializedName:"BlockLookupList",xmlName:"BlockList",type:{name:"Composite",className:"BlockLookupList",modelProperties:{committed:{serializedName:"Committed",xmlName:"Committed",xmlElementName:"Committed",type:{name:"Sequence",element:{type:{name:"String"}}}},uncommitted:{serializedName:"Uncommitted",xmlName:"Uncommitted",xmlElementName:"Uncommitted",type:{name:"Sequence",element:{type:{name:"String"}}}},latest:{serializedName:"Latest",xmlName:"Latest",xmlElementName:"Latest",type:{name:"Sequence",element:{type:{name:"String"}}}}}}};const re={serializedName:"BlockList",type:{name:"Composite",className:"BlockList",modelProperties:{committedBlocks:{serializedName:"CommittedBlocks",xmlName:"CommittedBlocks",xmlIsWrapped:true,xmlElementName:"Block",type:{name:"Sequence",element:{type:{name:"Composite",className:"Block"}}}},uncommittedBlocks:{serializedName:"UncommittedBlocks",xmlName:"UncommittedBlocks",xmlIsWrapped:true,xmlElementName:"Block",type:{name:"Sequence",element:{type:{name:"Composite",className:"Block"}}}}}}};const ne={serializedName:"Block",type:{name:"Composite",className:"Block",modelProperties:{name:{serializedName:"Name",required:true,xmlName:"Name",type:{name:"String"}},size:{serializedName:"Size",required:true,xmlName:"Size",type:{name:"Number"}}}}};const se={serializedName:"PageList",type:{name:"Composite",className:"PageList",modelProperties:{pageRange:{serializedName:"PageRange",xmlName:"PageRange",xmlElementName:"PageRange",type:{name:"Sequence",element:{type:{name:"Composite",className:"PageRange"}}}},clearRange:{serializedName:"ClearRange",xmlName:"ClearRange",xmlElementName:"ClearRange",type:{name:"Sequence",element:{type:{name:"Composite",className:"ClearRange"}}}},continuationToken:{serializedName:"NextMarker",xmlName:"NextMarker",type:{name:"String"}}}}};const ie={serializedName:"PageRange",xmlName:"PageRange",type:{name:"Composite",className:"PageRange",modelProperties:{start:{serializedName:"Start",required:true,xmlName:"Start",type:{name:"Number"}},end:{serializedName:"End",required:true,xmlName:"End",type:{name:"Number"}}}}};const oe={serializedName:"ClearRange",xmlName:"ClearRange",type:{name:"Composite",className:"ClearRange",modelProperties:{start:{serializedName:"Start",required:true,xmlName:"Start",type:{name:"Number"}},end:{serializedName:"End",required:true,xmlName:"End",type:{name:"Number"}}}}};const ae={serializedName:"QueryRequest",xmlName:"QueryRequest",type:{name:"Composite",className:"QueryRequest",modelProperties:{queryType:{serializedName:"QueryType",required:true,xmlName:"QueryType",type:{name:"String"}},expression:{serializedName:"Expression",required:true,xmlName:"Expression",type:{name:"String"}},inputSerialization:{serializedName:"InputSerialization",xmlName:"InputSerialization",type:{name:"Composite",className:"QuerySerialization"}},outputSerialization:{serializedName:"OutputSerialization",xmlName:"OutputSerialization",type:{name:"Composite",className:"QuerySerialization"}}}}};const Ae={serializedName:"QuerySerialization",type:{name:"Composite",className:"QuerySerialization",modelProperties:{format:{serializedName:"Format",xmlName:"Format",type:{name:"Composite",className:"QueryFormat"}}}}};const ce={serializedName:"QueryFormat",type:{name:"Composite",className:"QueryFormat",modelProperties:{type:{serializedName:"Type",required:true,xmlName:"Type",type:{name:"Enum",allowedValues:["delimited","json","arrow","parquet"]}},delimitedTextConfiguration:{serializedName:"DelimitedTextConfiguration",xmlName:"DelimitedTextConfiguration",type:{name:"Composite",className:"DelimitedTextConfiguration"}},jsonTextConfiguration:{serializedName:"JsonTextConfiguration",xmlName:"JsonTextConfiguration",type:{name:"Composite",className:"JsonTextConfiguration"}},arrowConfiguration:{serializedName:"ArrowConfiguration",xmlName:"ArrowConfiguration",type:{name:"Composite",className:"ArrowConfiguration"}},parquetTextConfiguration:{serializedName:"ParquetTextConfiguration",xmlName:"ParquetTextConfiguration",type:{name:"any"}}}}};const le={serializedName:"DelimitedTextConfiguration",xmlName:"DelimitedTextConfiguration",type:{name:"Composite",className:"DelimitedTextConfiguration",modelProperties:{columnSeparator:{serializedName:"ColumnSeparator",xmlName:"ColumnSeparator",type:{name:"String"}},fieldQuote:{serializedName:"FieldQuote",xmlName:"FieldQuote",type:{name:"String"}},recordSeparator:{serializedName:"RecordSeparator",xmlName:"RecordSeparator",type:{name:"String"}},escapeChar:{serializedName:"EscapeChar",xmlName:"EscapeChar",type:{name:"String"}},headersPresent:{serializedName:"HeadersPresent",xmlName:"HasHeaders",type:{name:"Boolean"}}}}};const de={serializedName:"JsonTextConfiguration",xmlName:"JsonTextConfiguration",type:{name:"Composite",className:"JsonTextConfiguration",modelProperties:{recordSeparator:{serializedName:"RecordSeparator",xmlName:"RecordSeparator",type:{name:"String"}}}}};const ue={serializedName:"ArrowConfiguration",xmlName:"ArrowConfiguration",type:{name:"Composite",className:"ArrowConfiguration",modelProperties:{schema:{serializedName:"Schema",required:true,xmlName:"Schema",xmlIsWrapped:true,xmlElementName:"Field",type:{name:"Sequence",element:{type:{name:"Composite",className:"ArrowField"}}}}}}};const pe={serializedName:"ArrowField",xmlName:"Field",type:{name:"Composite",className:"ArrowField",modelProperties:{type:{serializedName:"Type",required:true,xmlName:"Type",type:{name:"String"}},name:{serializedName:"Name",xmlName:"Name",type:{name:"String"}},precision:{serializedName:"Precision",xmlName:"Precision",type:{name:"Number"}},scale:{serializedName:"Scale",xmlName:"Scale",type:{name:"Number"}}}}};const ge={serializedName:"Service_setPropertiesHeaders",type:{name:"Composite",className:"ServiceSetPropertiesHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const he={serializedName:"Service_setPropertiesExceptionHeaders",type:{name:"Composite",className:"ServiceSetPropertiesExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const me={serializedName:"Service_getPropertiesHeaders",type:{name:"Composite",className:"ServiceGetPropertiesHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const fe={serializedName:"Service_getPropertiesExceptionHeaders",type:{name:"Composite",className:"ServiceGetPropertiesExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Ee={serializedName:"Service_getStatisticsHeaders",type:{name:"Composite",className:"ServiceGetStatisticsHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Ce={serializedName:"Service_getStatisticsExceptionHeaders",type:{name:"Composite",className:"ServiceGetStatisticsExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const ye={serializedName:"Service_listContainersSegmentHeaders",type:{name:"Composite",className:"ServiceListContainersSegmentHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Ie={serializedName:"Service_listContainersSegmentExceptionHeaders",type:{name:"Composite",className:"ServiceListContainersSegmentExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Be={serializedName:"Service_getUserDelegationKeyHeaders",type:{name:"Composite",className:"ServiceGetUserDelegationKeyHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const be={serializedName:"Service_getUserDelegationKeyExceptionHeaders",type:{name:"Composite",className:"ServiceGetUserDelegationKeyExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Qe={serializedName:"Service_getAccountInfoHeaders",type:{name:"Composite",className:"ServiceGetAccountInfoHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},skuName:{serializedName:"x-ms-sku-name",xmlName:"x-ms-sku-name",type:{name:"Enum",allowedValues:["Standard_LRS","Standard_GRS","Standard_RAGRS","Standard_ZRS","Premium_LRS"]}},accountKind:{serializedName:"x-ms-account-kind",xmlName:"x-ms-account-kind",type:{name:"Enum",allowedValues:["Storage","BlobStorage","StorageV2","FileStorage","BlockBlobStorage"]}},isHierarchicalNamespaceEnabled:{serializedName:"x-ms-is-hns-enabled",xmlName:"x-ms-is-hns-enabled",type:{name:"Boolean"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const we={serializedName:"Service_getAccountInfoExceptionHeaders",type:{name:"Composite",className:"ServiceGetAccountInfoExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const ve={serializedName:"Service_submitBatchHeaders",type:{name:"Composite",className:"ServiceSubmitBatchHeaders",modelProperties:{contentType:{serializedName:"content-type",xmlName:"content-type",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Se={serializedName:"Service_submitBatchExceptionHeaders",type:{name:"Composite",className:"ServiceSubmitBatchExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Re={serializedName:"Service_filterBlobsHeaders",type:{name:"Composite",className:"ServiceFilterBlobsHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Ne={serializedName:"Service_filterBlobsExceptionHeaders",type:{name:"Composite",className:"ServiceFilterBlobsExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const xe={serializedName:"Container_createHeaders",type:{name:"Composite",className:"ContainerCreateHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const De={serializedName:"Container_createExceptionHeaders",type:{name:"Composite",className:"ContainerCreateExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const ke={serializedName:"Container_getPropertiesHeaders",type:{name:"Composite",className:"ContainerGetPropertiesHeaders",modelProperties:{metadata:{serializedName:"x-ms-meta",xmlName:"x-ms-meta",type:{name:"Dictionary",value:{type:{name:"String"}}},headerCollectionPrefix:"x-ms-meta-"},etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},leaseDuration:{serializedName:"x-ms-lease-duration",xmlName:"x-ms-lease-duration",type:{name:"Enum",allowedValues:["infinite","fixed"]}},leaseState:{serializedName:"x-ms-lease-state",xmlName:"x-ms-lease-state",type:{name:"Enum",allowedValues:["available","leased","expired","breaking","broken"]}},leaseStatus:{serializedName:"x-ms-lease-status",xmlName:"x-ms-lease-status",type:{name:"Enum",allowedValues:["locked","unlocked"]}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},blobPublicAccess:{serializedName:"x-ms-blob-public-access",xmlName:"x-ms-blob-public-access",type:{name:"Enum",allowedValues:["container","blob"]}},hasImmutabilityPolicy:{serializedName:"x-ms-has-immutability-policy",xmlName:"x-ms-has-immutability-policy",type:{name:"Boolean"}},hasLegalHold:{serializedName:"x-ms-has-legal-hold",xmlName:"x-ms-has-legal-hold",type:{name:"Boolean"}},defaultEncryptionScope:{serializedName:"x-ms-default-encryption-scope",xmlName:"x-ms-default-encryption-scope",type:{name:"String"}},denyEncryptionScopeOverride:{serializedName:"x-ms-deny-encryption-scope-override",xmlName:"x-ms-deny-encryption-scope-override",type:{name:"Boolean"}},isImmutableStorageWithVersioningEnabled:{serializedName:"x-ms-immutable-storage-with-versioning-enabled",xmlName:"x-ms-immutable-storage-with-versioning-enabled",type:{name:"Boolean"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Te={serializedName:"Container_getPropertiesExceptionHeaders",type:{name:"Composite",className:"ContainerGetPropertiesExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const _e={serializedName:"Container_deleteHeaders",type:{name:"Composite",className:"ContainerDeleteHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Pe={serializedName:"Container_deleteExceptionHeaders",type:{name:"Composite",className:"ContainerDeleteExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Oe={serializedName:"Container_setMetadataHeaders",type:{name:"Composite",className:"ContainerSetMetadataHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Fe={serializedName:"Container_setMetadataExceptionHeaders",type:{name:"Composite",className:"ContainerSetMetadataExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Le={serializedName:"Container_getAccessPolicyHeaders",type:{name:"Composite",className:"ContainerGetAccessPolicyHeaders",modelProperties:{blobPublicAccess:{serializedName:"x-ms-blob-public-access",xmlName:"x-ms-blob-public-access",type:{name:"Enum",allowedValues:["container","blob"]}},etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Me={serializedName:"Container_getAccessPolicyExceptionHeaders",type:{name:"Composite",className:"ContainerGetAccessPolicyExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Ue={serializedName:"Container_setAccessPolicyHeaders",type:{name:"Composite",className:"ContainerSetAccessPolicyHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const He={serializedName:"Container_setAccessPolicyExceptionHeaders",type:{name:"Composite",className:"ContainerSetAccessPolicyExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Ge={serializedName:"Container_restoreHeaders",type:{name:"Composite",className:"ContainerRestoreHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const qe={serializedName:"Container_restoreExceptionHeaders",type:{name:"Composite",className:"ContainerRestoreExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Ve={serializedName:"Container_renameHeaders",type:{name:"Composite",className:"ContainerRenameHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const je={serializedName:"Container_renameExceptionHeaders",type:{name:"Composite",className:"ContainerRenameExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const ze={serializedName:"Container_submitBatchHeaders",type:{name:"Composite",className:"ContainerSubmitBatchHeaders",modelProperties:{contentType:{serializedName:"content-type",xmlName:"content-type",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}}}}};const Ye={serializedName:"Container_submitBatchExceptionHeaders",type:{name:"Composite",className:"ContainerSubmitBatchExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Je={serializedName:"Container_filterBlobsHeaders",type:{name:"Composite",className:"ContainerFilterBlobsHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}}}}};const We={serializedName:"Container_filterBlobsExceptionHeaders",type:{name:"Composite",className:"ContainerFilterBlobsExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Xe={serializedName:"Container_acquireLeaseHeaders",type:{name:"Composite",className:"ContainerAcquireLeaseHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},leaseId:{serializedName:"x-ms-lease-id",xmlName:"x-ms-lease-id",type:{name:"String"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}}}}};const $e={serializedName:"Container_acquireLeaseExceptionHeaders",type:{name:"Composite",className:"ContainerAcquireLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Ke={serializedName:"Container_releaseLeaseHeaders",type:{name:"Composite",className:"ContainerReleaseLeaseHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}}}}};const Ze={serializedName:"Container_releaseLeaseExceptionHeaders",type:{name:"Composite",className:"ContainerReleaseLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const et={serializedName:"Container_renewLeaseHeaders",type:{name:"Composite",className:"ContainerRenewLeaseHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},leaseId:{serializedName:"x-ms-lease-id",xmlName:"x-ms-lease-id",type:{name:"String"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}}}}};const tt={serializedName:"Container_renewLeaseExceptionHeaders",type:{name:"Composite",className:"ContainerRenewLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const rt={serializedName:"Container_breakLeaseHeaders",type:{name:"Composite",className:"ContainerBreakLeaseHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},leaseTime:{serializedName:"x-ms-lease-time",xmlName:"x-ms-lease-time",type:{name:"Number"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}}}}};const nt={serializedName:"Container_breakLeaseExceptionHeaders",type:{name:"Composite",className:"ContainerBreakLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const st={serializedName:"Container_changeLeaseHeaders",type:{name:"Composite",className:"ContainerChangeLeaseHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},leaseId:{serializedName:"x-ms-lease-id",xmlName:"x-ms-lease-id",type:{name:"String"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}}}}};const it={serializedName:"Container_changeLeaseExceptionHeaders",type:{name:"Composite",className:"ContainerChangeLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const ot={serializedName:"Container_listBlobFlatSegmentHeaders",type:{name:"Composite",className:"ContainerListBlobFlatSegmentHeaders",modelProperties:{contentType:{serializedName:"content-type",xmlName:"content-type",type:{name:"String"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const At={serializedName:"Container_listBlobFlatSegmentExceptionHeaders",type:{name:"Composite",className:"ContainerListBlobFlatSegmentExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const ct={serializedName:"Container_listBlobHierarchySegmentHeaders",type:{name:"Composite",className:"ContainerListBlobHierarchySegmentHeaders",modelProperties:{contentType:{serializedName:"content-type",xmlName:"content-type",type:{name:"String"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const dt={serializedName:"Container_listBlobHierarchySegmentExceptionHeaders",type:{name:"Composite",className:"ContainerListBlobHierarchySegmentExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const ut={serializedName:"Container_getAccountInfoHeaders",type:{name:"Composite",className:"ContainerGetAccountInfoHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},skuName:{serializedName:"x-ms-sku-name",xmlName:"x-ms-sku-name",type:{name:"Enum",allowedValues:["Standard_LRS","Standard_GRS","Standard_RAGRS","Standard_ZRS","Premium_LRS"]}},accountKind:{serializedName:"x-ms-account-kind",xmlName:"x-ms-account-kind",type:{name:"Enum",allowedValues:["Storage","BlobStorage","StorageV2","FileStorage","BlockBlobStorage"]}}}}};const pt={serializedName:"Container_getAccountInfoExceptionHeaders",type:{name:"Composite",className:"ContainerGetAccountInfoExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const ht={serializedName:"Blob_downloadHeaders",type:{name:"Composite",className:"BlobDownloadHeaders",modelProperties:{lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},createdOn:{serializedName:"x-ms-creation-time",xmlName:"x-ms-creation-time",type:{name:"DateTimeRfc1123"}},metadata:{serializedName:"x-ms-meta",xmlName:"x-ms-meta",type:{name:"Dictionary",value:{type:{name:"String"}}},headerCollectionPrefix:"x-ms-meta-"},objectReplicationPolicyId:{serializedName:"x-ms-or-policy-id",xmlName:"x-ms-or-policy-id",type:{name:"String"}},objectReplicationRules:{serializedName:"x-ms-or",xmlName:"x-ms-or",type:{name:"Dictionary",value:{type:{name:"String"}}},headerCollectionPrefix:"x-ms-or-"},contentLength:{serializedName:"content-length",xmlName:"content-length",type:{name:"Number"}},contentType:{serializedName:"content-type",xmlName:"content-type",type:{name:"String"}},contentRange:{serializedName:"content-range",xmlName:"content-range",type:{name:"String"}},etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},contentEncoding:{serializedName:"content-encoding",xmlName:"content-encoding",type:{name:"String"}},cacheControl:{serializedName:"cache-control",xmlName:"cache-control",type:{name:"String"}},contentDisposition:{serializedName:"content-disposition",xmlName:"content-disposition",type:{name:"String"}},contentLanguage:{serializedName:"content-language",xmlName:"content-language",type:{name:"String"}},blobSequenceNumber:{serializedName:"x-ms-blob-sequence-number",xmlName:"x-ms-blob-sequence-number",type:{name:"Number"}},blobType:{serializedName:"x-ms-blob-type",xmlName:"x-ms-blob-type",type:{name:"Enum",allowedValues:["BlockBlob","PageBlob","AppendBlob"]}},copyCompletedOn:{serializedName:"x-ms-copy-completion-time",xmlName:"x-ms-copy-completion-time",type:{name:"DateTimeRfc1123"}},copyStatusDescription:{serializedName:"x-ms-copy-status-description",xmlName:"x-ms-copy-status-description",type:{name:"String"}},copyId:{serializedName:"x-ms-copy-id",xmlName:"x-ms-copy-id",type:{name:"String"}},copyProgress:{serializedName:"x-ms-copy-progress",xmlName:"x-ms-copy-progress",type:{name:"String"}},copySource:{serializedName:"x-ms-copy-source",xmlName:"x-ms-copy-source",type:{name:"String"}},copyStatus:{serializedName:"x-ms-copy-status",xmlName:"x-ms-copy-status",type:{name:"Enum",allowedValues:["pending","success","aborted","failed"]}},leaseDuration:{serializedName:"x-ms-lease-duration",xmlName:"x-ms-lease-duration",type:{name:"Enum",allowedValues:["infinite","fixed"]}},leaseState:{serializedName:"x-ms-lease-state",xmlName:"x-ms-lease-state",type:{name:"Enum",allowedValues:["available","leased","expired","breaking","broken"]}},leaseStatus:{serializedName:"x-ms-lease-status",xmlName:"x-ms-lease-status",type:{name:"Enum",allowedValues:["locked","unlocked"]}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},versionId:{serializedName:"x-ms-version-id",xmlName:"x-ms-version-id",type:{name:"String"}},isCurrentVersion:{serializedName:"x-ms-is-current-version",xmlName:"x-ms-is-current-version",type:{name:"Boolean"}},acceptRanges:{serializedName:"accept-ranges",xmlName:"accept-ranges",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},blobCommittedBlockCount:{serializedName:"x-ms-blob-committed-block-count",xmlName:"x-ms-blob-committed-block-count",type:{name:"Number"}},isServerEncrypted:{serializedName:"x-ms-server-encrypted",xmlName:"x-ms-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},blobContentMD5:{serializedName:"x-ms-blob-content-md5",xmlName:"x-ms-blob-content-md5",type:{name:"ByteArray"}},tagCount:{serializedName:"x-ms-tag-count",xmlName:"x-ms-tag-count",type:{name:"Number"}},isSealed:{serializedName:"x-ms-blob-sealed",xmlName:"x-ms-blob-sealed",type:{name:"Boolean"}},lastAccessed:{serializedName:"x-ms-last-access-time",xmlName:"x-ms-last-access-time",type:{name:"DateTimeRfc1123"}},immutabilityPolicyExpiresOn:{serializedName:"x-ms-immutability-policy-until-date",xmlName:"x-ms-immutability-policy-until-date",type:{name:"DateTimeRfc1123"}},immutabilityPolicyMode:{serializedName:"x-ms-immutability-policy-mode",xmlName:"x-ms-immutability-policy-mode",type:{name:"Enum",allowedValues:["Mutable","Unlocked","Locked"]}},legalHold:{serializedName:"x-ms-legal-hold",xmlName:"x-ms-legal-hold",type:{name:"Boolean"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}},contentCrc64:{serializedName:"x-ms-content-crc64",xmlName:"x-ms-content-crc64",type:{name:"ByteArray"}}}}};const mt={serializedName:"Blob_downloadExceptionHeaders",type:{name:"Composite",className:"BlobDownloadExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const ft={serializedName:"Blob_getPropertiesHeaders",type:{name:"Composite",className:"BlobGetPropertiesHeaders",modelProperties:{lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},createdOn:{serializedName:"x-ms-creation-time",xmlName:"x-ms-creation-time",type:{name:"DateTimeRfc1123"}},metadata:{serializedName:"x-ms-meta",xmlName:"x-ms-meta",type:{name:"Dictionary",value:{type:{name:"String"}}},headerCollectionPrefix:"x-ms-meta-"},objectReplicationPolicyId:{serializedName:"x-ms-or-policy-id",xmlName:"x-ms-or-policy-id",type:{name:"String"}},objectReplicationRules:{serializedName:"x-ms-or",xmlName:"x-ms-or",type:{name:"Dictionary",value:{type:{name:"String"}}},headerCollectionPrefix:"x-ms-or-"},blobType:{serializedName:"x-ms-blob-type",xmlName:"x-ms-blob-type",type:{name:"Enum",allowedValues:["BlockBlob","PageBlob","AppendBlob"]}},copyCompletedOn:{serializedName:"x-ms-copy-completion-time",xmlName:"x-ms-copy-completion-time",type:{name:"DateTimeRfc1123"}},copyStatusDescription:{serializedName:"x-ms-copy-status-description",xmlName:"x-ms-copy-status-description",type:{name:"String"}},copyId:{serializedName:"x-ms-copy-id",xmlName:"x-ms-copy-id",type:{name:"String"}},copyProgress:{serializedName:"x-ms-copy-progress",xmlName:"x-ms-copy-progress",type:{name:"String"}},copySource:{serializedName:"x-ms-copy-source",xmlName:"x-ms-copy-source",type:{name:"String"}},copyStatus:{serializedName:"x-ms-copy-status",xmlName:"x-ms-copy-status",type:{name:"Enum",allowedValues:["pending","success","aborted","failed"]}},isIncrementalCopy:{serializedName:"x-ms-incremental-copy",xmlName:"x-ms-incremental-copy",type:{name:"Boolean"}},destinationSnapshot:{serializedName:"x-ms-copy-destination-snapshot",xmlName:"x-ms-copy-destination-snapshot",type:{name:"String"}},leaseDuration:{serializedName:"x-ms-lease-duration",xmlName:"x-ms-lease-duration",type:{name:"Enum",allowedValues:["infinite","fixed"]}},leaseState:{serializedName:"x-ms-lease-state",xmlName:"x-ms-lease-state",type:{name:"Enum",allowedValues:["available","leased","expired","breaking","broken"]}},leaseStatus:{serializedName:"x-ms-lease-status",xmlName:"x-ms-lease-status",type:{name:"Enum",allowedValues:["locked","unlocked"]}},contentLength:{serializedName:"content-length",xmlName:"content-length",type:{name:"Number"}},contentType:{serializedName:"content-type",xmlName:"content-type",type:{name:"String"}},etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},contentEncoding:{serializedName:"content-encoding",xmlName:"content-encoding",type:{name:"String"}},contentDisposition:{serializedName:"content-disposition",xmlName:"content-disposition",type:{name:"String"}},contentLanguage:{serializedName:"content-language",xmlName:"content-language",type:{name:"String"}},cacheControl:{serializedName:"cache-control",xmlName:"cache-control",type:{name:"String"}},blobSequenceNumber:{serializedName:"x-ms-blob-sequence-number",xmlName:"x-ms-blob-sequence-number",type:{name:"Number"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},acceptRanges:{serializedName:"accept-ranges",xmlName:"accept-ranges",type:{name:"String"}},blobCommittedBlockCount:{serializedName:"x-ms-blob-committed-block-count",xmlName:"x-ms-blob-committed-block-count",type:{name:"Number"}},isServerEncrypted:{serializedName:"x-ms-server-encrypted",xmlName:"x-ms-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},accessTier:{serializedName:"x-ms-access-tier",xmlName:"x-ms-access-tier",type:{name:"String"}},accessTierInferred:{serializedName:"x-ms-access-tier-inferred",xmlName:"x-ms-access-tier-inferred",type:{name:"Boolean"}},archiveStatus:{serializedName:"x-ms-archive-status",xmlName:"x-ms-archive-status",type:{name:"String"}},accessTierChangedOn:{serializedName:"x-ms-access-tier-change-time",xmlName:"x-ms-access-tier-change-time",type:{name:"DateTimeRfc1123"}},versionId:{serializedName:"x-ms-version-id",xmlName:"x-ms-version-id",type:{name:"String"}},isCurrentVersion:{serializedName:"x-ms-is-current-version",xmlName:"x-ms-is-current-version",type:{name:"Boolean"}},tagCount:{serializedName:"x-ms-tag-count",xmlName:"x-ms-tag-count",type:{name:"Number"}},expiresOn:{serializedName:"x-ms-expiry-time",xmlName:"x-ms-expiry-time",type:{name:"DateTimeRfc1123"}},isSealed:{serializedName:"x-ms-blob-sealed",xmlName:"x-ms-blob-sealed",type:{name:"Boolean"}},rehydratePriority:{serializedName:"x-ms-rehydrate-priority",xmlName:"x-ms-rehydrate-priority",type:{name:"Enum",allowedValues:["High","Standard"]}},lastAccessed:{serializedName:"x-ms-last-access-time",xmlName:"x-ms-last-access-time",type:{name:"DateTimeRfc1123"}},immutabilityPolicyExpiresOn:{serializedName:"x-ms-immutability-policy-until-date",xmlName:"x-ms-immutability-policy-until-date",type:{name:"DateTimeRfc1123"}},immutabilityPolicyMode:{serializedName:"x-ms-immutability-policy-mode",xmlName:"x-ms-immutability-policy-mode",type:{name:"Enum",allowedValues:["Mutable","Unlocked","Locked"]}},legalHold:{serializedName:"x-ms-legal-hold",xmlName:"x-ms-legal-hold",type:{name:"Boolean"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Et={serializedName:"Blob_getPropertiesExceptionHeaders",type:{name:"Composite",className:"BlobGetPropertiesExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Ct={serializedName:"Blob_deleteHeaders",type:{name:"Composite",className:"BlobDeleteHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const yt={serializedName:"Blob_deleteExceptionHeaders",type:{name:"Composite",className:"BlobDeleteExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const It={serializedName:"Blob_undeleteHeaders",type:{name:"Composite",className:"BlobUndeleteHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Bt={serializedName:"Blob_undeleteExceptionHeaders",type:{name:"Composite",className:"BlobUndeleteExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const bt={serializedName:"Blob_setExpiryHeaders",type:{name:"Composite",className:"BlobSetExpiryHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}}}}};const Qt={serializedName:"Blob_setExpiryExceptionHeaders",type:{name:"Composite",className:"BlobSetExpiryExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const wt={serializedName:"Blob_setHttpHeadersHeaders",type:{name:"Composite",className:"BlobSetHttpHeadersHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},blobSequenceNumber:{serializedName:"x-ms-blob-sequence-number",xmlName:"x-ms-blob-sequence-number",type:{name:"Number"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const vt={serializedName:"Blob_setHttpHeadersExceptionHeaders",type:{name:"Composite",className:"BlobSetHttpHeadersExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const St={serializedName:"Blob_setImmutabilityPolicyHeaders",type:{name:"Composite",className:"BlobSetImmutabilityPolicyHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},immutabilityPolicyExpiry:{serializedName:"x-ms-immutability-policy-until-date",xmlName:"x-ms-immutability-policy-until-date",type:{name:"DateTimeRfc1123"}},immutabilityPolicyMode:{serializedName:"x-ms-immutability-policy-mode",xmlName:"x-ms-immutability-policy-mode",type:{name:"Enum",allowedValues:["Mutable","Unlocked","Locked"]}}}}};const Rt={serializedName:"Blob_setImmutabilityPolicyExceptionHeaders",type:{name:"Composite",className:"BlobSetImmutabilityPolicyExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Nt={serializedName:"Blob_deleteImmutabilityPolicyHeaders",type:{name:"Composite",className:"BlobDeleteImmutabilityPolicyHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}}}}};const xt={serializedName:"Blob_deleteImmutabilityPolicyExceptionHeaders",type:{name:"Composite",className:"BlobDeleteImmutabilityPolicyExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Dt={serializedName:"Blob_setLegalHoldHeaders",type:{name:"Composite",className:"BlobSetLegalHoldHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},legalHold:{serializedName:"x-ms-legal-hold",xmlName:"x-ms-legal-hold",type:{name:"Boolean"}}}}};const kt={serializedName:"Blob_setLegalHoldExceptionHeaders",type:{name:"Composite",className:"BlobSetLegalHoldExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Tt={serializedName:"Blob_setMetadataHeaders",type:{name:"Composite",className:"BlobSetMetadataHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},versionId:{serializedName:"x-ms-version-id",xmlName:"x-ms-version-id",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},isServerEncrypted:{serializedName:"x-ms-request-server-encrypted",xmlName:"x-ms-request-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const _t={serializedName:"Blob_setMetadataExceptionHeaders",type:{name:"Composite",className:"BlobSetMetadataExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Pt={serializedName:"Blob_acquireLeaseHeaders",type:{name:"Composite",className:"BlobAcquireLeaseHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},leaseId:{serializedName:"x-ms-lease-id",xmlName:"x-ms-lease-id",type:{name:"String"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}}}}};const Ot={serializedName:"Blob_acquireLeaseExceptionHeaders",type:{name:"Composite",className:"BlobAcquireLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Ft={serializedName:"Blob_releaseLeaseHeaders",type:{name:"Composite",className:"BlobReleaseLeaseHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}}}}};const Lt={serializedName:"Blob_releaseLeaseExceptionHeaders",type:{name:"Composite",className:"BlobReleaseLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Mt={serializedName:"Blob_renewLeaseHeaders",type:{name:"Composite",className:"BlobRenewLeaseHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},leaseId:{serializedName:"x-ms-lease-id",xmlName:"x-ms-lease-id",type:{name:"String"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}}}}};const Ut={serializedName:"Blob_renewLeaseExceptionHeaders",type:{name:"Composite",className:"BlobRenewLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Ht={serializedName:"Blob_changeLeaseHeaders",type:{name:"Composite",className:"BlobChangeLeaseHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},leaseId:{serializedName:"x-ms-lease-id",xmlName:"x-ms-lease-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}}}}};const Gt={serializedName:"Blob_changeLeaseExceptionHeaders",type:{name:"Composite",className:"BlobChangeLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const qt={serializedName:"Blob_breakLeaseHeaders",type:{name:"Composite",className:"BlobBreakLeaseHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},leaseTime:{serializedName:"x-ms-lease-time",xmlName:"x-ms-lease-time",type:{name:"Number"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}}}}};const Vt={serializedName:"Blob_breakLeaseExceptionHeaders",type:{name:"Composite",className:"BlobBreakLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const jt={serializedName:"Blob_createSnapshotHeaders",type:{name:"Composite",className:"BlobCreateSnapshotHeaders",modelProperties:{snapshot:{serializedName:"x-ms-snapshot",xmlName:"x-ms-snapshot",type:{name:"String"}},etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},versionId:{serializedName:"x-ms-version-id",xmlName:"x-ms-version-id",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},isServerEncrypted:{serializedName:"x-ms-request-server-encrypted",xmlName:"x-ms-request-server-encrypted",type:{name:"Boolean"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const zt={serializedName:"Blob_createSnapshotExceptionHeaders",type:{name:"Composite",className:"BlobCreateSnapshotExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Yt={serializedName:"Blob_startCopyFromURLHeaders",type:{name:"Composite",className:"BlobStartCopyFromURLHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},versionId:{serializedName:"x-ms-version-id",xmlName:"x-ms-version-id",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},copyId:{serializedName:"x-ms-copy-id",xmlName:"x-ms-copy-id",type:{name:"String"}},copyStatus:{serializedName:"x-ms-copy-status",xmlName:"x-ms-copy-status",type:{name:"Enum",allowedValues:["pending","success","aborted","failed"]}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Jt={serializedName:"Blob_startCopyFromURLExceptionHeaders",type:{name:"Composite",className:"BlobStartCopyFromURLExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Wt={serializedName:"Blob_copyFromURLHeaders",type:{name:"Composite",className:"BlobCopyFromURLHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},versionId:{serializedName:"x-ms-version-id",xmlName:"x-ms-version-id",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},copyId:{serializedName:"x-ms-copy-id",xmlName:"x-ms-copy-id",type:{name:"String"}},copyStatus:{defaultValue:"success",isConstant:true,serializedName:"x-ms-copy-status",type:{name:"String"}},contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},xMsContentCrc64:{serializedName:"x-ms-content-crc64",xmlName:"x-ms-content-crc64",type:{name:"ByteArray"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Xt={serializedName:"Blob_copyFromURLExceptionHeaders",type:{name:"Composite",className:"BlobCopyFromURLExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const $t={serializedName:"Blob_abortCopyFromURLHeaders",type:{name:"Composite",className:"BlobAbortCopyFromURLHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Kt={serializedName:"Blob_abortCopyFromURLExceptionHeaders",type:{name:"Composite",className:"BlobAbortCopyFromURLExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Zt={serializedName:"Blob_setTierHeaders",type:{name:"Composite",className:"BlobSetTierHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const er={serializedName:"Blob_setTierExceptionHeaders",type:{name:"Composite",className:"BlobSetTierExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const tr={serializedName:"Blob_getAccountInfoHeaders",type:{name:"Composite",className:"BlobGetAccountInfoHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},skuName:{serializedName:"x-ms-sku-name",xmlName:"x-ms-sku-name",type:{name:"Enum",allowedValues:["Standard_LRS","Standard_GRS","Standard_RAGRS","Standard_ZRS","Premium_LRS"]}},accountKind:{serializedName:"x-ms-account-kind",xmlName:"x-ms-account-kind",type:{name:"Enum",allowedValues:["Storage","BlobStorage","StorageV2","FileStorage","BlockBlobStorage"]}}}}};const rr={serializedName:"Blob_getAccountInfoExceptionHeaders",type:{name:"Composite",className:"BlobGetAccountInfoExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const nr={serializedName:"Blob_queryHeaders",type:{name:"Composite",className:"BlobQueryHeaders",modelProperties:{lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},metadata:{serializedName:"x-ms-meta",xmlName:"x-ms-meta",type:{name:"Dictionary",value:{type:{name:"String"}}}},contentLength:{serializedName:"content-length",xmlName:"content-length",type:{name:"Number"}},contentType:{serializedName:"content-type",xmlName:"content-type",type:{name:"String"}},contentRange:{serializedName:"content-range",xmlName:"content-range",type:{name:"String"}},etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},contentEncoding:{serializedName:"content-encoding",xmlName:"content-encoding",type:{name:"String"}},cacheControl:{serializedName:"cache-control",xmlName:"cache-control",type:{name:"String"}},contentDisposition:{serializedName:"content-disposition",xmlName:"content-disposition",type:{name:"String"}},contentLanguage:{serializedName:"content-language",xmlName:"content-language",type:{name:"String"}},blobSequenceNumber:{serializedName:"x-ms-blob-sequence-number",xmlName:"x-ms-blob-sequence-number",type:{name:"Number"}},blobType:{serializedName:"x-ms-blob-type",xmlName:"x-ms-blob-type",type:{name:"Enum",allowedValues:["BlockBlob","PageBlob","AppendBlob"]}},copyCompletionTime:{serializedName:"x-ms-copy-completion-time",xmlName:"x-ms-copy-completion-time",type:{name:"DateTimeRfc1123"}},copyStatusDescription:{serializedName:"x-ms-copy-status-description",xmlName:"x-ms-copy-status-description",type:{name:"String"}},copyId:{serializedName:"x-ms-copy-id",xmlName:"x-ms-copy-id",type:{name:"String"}},copyProgress:{serializedName:"x-ms-copy-progress",xmlName:"x-ms-copy-progress",type:{name:"String"}},copySource:{serializedName:"x-ms-copy-source",xmlName:"x-ms-copy-source",type:{name:"String"}},copyStatus:{serializedName:"x-ms-copy-status",xmlName:"x-ms-copy-status",type:{name:"Enum",allowedValues:["pending","success","aborted","failed"]}},leaseDuration:{serializedName:"x-ms-lease-duration",xmlName:"x-ms-lease-duration",type:{name:"Enum",allowedValues:["infinite","fixed"]}},leaseState:{serializedName:"x-ms-lease-state",xmlName:"x-ms-lease-state",type:{name:"Enum",allowedValues:["available","leased","expired","breaking","broken"]}},leaseStatus:{serializedName:"x-ms-lease-status",xmlName:"x-ms-lease-status",type:{name:"Enum",allowedValues:["locked","unlocked"]}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},acceptRanges:{serializedName:"accept-ranges",xmlName:"accept-ranges",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},blobCommittedBlockCount:{serializedName:"x-ms-blob-committed-block-count",xmlName:"x-ms-blob-committed-block-count",type:{name:"Number"}},isServerEncrypted:{serializedName:"x-ms-server-encrypted",xmlName:"x-ms-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},blobContentMD5:{serializedName:"x-ms-blob-content-md5",xmlName:"x-ms-blob-content-md5",type:{name:"ByteArray"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}},contentCrc64:{serializedName:"x-ms-content-crc64",xmlName:"x-ms-content-crc64",type:{name:"ByteArray"}}}}};const sr={serializedName:"Blob_queryExceptionHeaders",type:{name:"Composite",className:"BlobQueryExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const ir={serializedName:"Blob_getTagsHeaders",type:{name:"Composite",className:"BlobGetTagsHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const or={serializedName:"Blob_getTagsExceptionHeaders",type:{name:"Composite",className:"BlobGetTagsExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const ar={serializedName:"Blob_setTagsHeaders",type:{name:"Composite",className:"BlobSetTagsHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Ar={serializedName:"Blob_setTagsExceptionHeaders",type:{name:"Composite",className:"BlobSetTagsExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const cr={serializedName:"PageBlob_createHeaders",type:{name:"Composite",className:"PageBlobCreateHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},versionId:{serializedName:"x-ms-version-id",xmlName:"x-ms-version-id",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},isServerEncrypted:{serializedName:"x-ms-request-server-encrypted",xmlName:"x-ms-request-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const lr={serializedName:"PageBlob_createExceptionHeaders",type:{name:"Composite",className:"PageBlobCreateExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const dr={serializedName:"PageBlob_uploadPagesHeaders",type:{name:"Composite",className:"PageBlobUploadPagesHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},xMsContentCrc64:{serializedName:"x-ms-content-crc64",xmlName:"x-ms-content-crc64",type:{name:"ByteArray"}},blobSequenceNumber:{serializedName:"x-ms-blob-sequence-number",xmlName:"x-ms-blob-sequence-number",type:{name:"Number"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},isServerEncrypted:{serializedName:"x-ms-request-server-encrypted",xmlName:"x-ms-request-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const ur={serializedName:"PageBlob_uploadPagesExceptionHeaders",type:{name:"Composite",className:"PageBlobUploadPagesExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const pr={serializedName:"PageBlob_clearPagesHeaders",type:{name:"Composite",className:"PageBlobClearPagesHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},xMsContentCrc64:{serializedName:"x-ms-content-crc64",xmlName:"x-ms-content-crc64",type:{name:"ByteArray"}},blobSequenceNumber:{serializedName:"x-ms-blob-sequence-number",xmlName:"x-ms-blob-sequence-number",type:{name:"Number"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const gr={serializedName:"PageBlob_clearPagesExceptionHeaders",type:{name:"Composite",className:"PageBlobClearPagesExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const hr={serializedName:"PageBlob_uploadPagesFromURLHeaders",type:{name:"Composite",className:"PageBlobUploadPagesFromURLHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},xMsContentCrc64:{serializedName:"x-ms-content-crc64",xmlName:"x-ms-content-crc64",type:{name:"ByteArray"}},blobSequenceNumber:{serializedName:"x-ms-blob-sequence-number",xmlName:"x-ms-blob-sequence-number",type:{name:"Number"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},isServerEncrypted:{serializedName:"x-ms-request-server-encrypted",xmlName:"x-ms-request-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const mr={serializedName:"PageBlob_uploadPagesFromURLExceptionHeaders",type:{name:"Composite",className:"PageBlobUploadPagesFromURLExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const fr={serializedName:"PageBlob_getPageRangesHeaders",type:{name:"Composite",className:"PageBlobGetPageRangesHeaders",modelProperties:{lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},blobContentLength:{serializedName:"x-ms-blob-content-length",xmlName:"x-ms-blob-content-length",type:{name:"Number"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Er={serializedName:"PageBlob_getPageRangesExceptionHeaders",type:{name:"Composite",className:"PageBlobGetPageRangesExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Cr={serializedName:"PageBlob_getPageRangesDiffHeaders",type:{name:"Composite",className:"PageBlobGetPageRangesDiffHeaders",modelProperties:{lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},blobContentLength:{serializedName:"x-ms-blob-content-length",xmlName:"x-ms-blob-content-length",type:{name:"Number"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const yr={serializedName:"PageBlob_getPageRangesDiffExceptionHeaders",type:{name:"Composite",className:"PageBlobGetPageRangesDiffExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Ir={serializedName:"PageBlob_resizeHeaders",type:{name:"Composite",className:"PageBlobResizeHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},blobSequenceNumber:{serializedName:"x-ms-blob-sequence-number",xmlName:"x-ms-blob-sequence-number",type:{name:"Number"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Br={serializedName:"PageBlob_resizeExceptionHeaders",type:{name:"Composite",className:"PageBlobResizeExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const br={serializedName:"PageBlob_updateSequenceNumberHeaders",type:{name:"Composite",className:"PageBlobUpdateSequenceNumberHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},blobSequenceNumber:{serializedName:"x-ms-blob-sequence-number",xmlName:"x-ms-blob-sequence-number",type:{name:"Number"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Qr={serializedName:"PageBlob_updateSequenceNumberExceptionHeaders",type:{name:"Composite",className:"PageBlobUpdateSequenceNumberExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const wr={serializedName:"PageBlob_copyIncrementalHeaders",type:{name:"Composite",className:"PageBlobCopyIncrementalHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},copyId:{serializedName:"x-ms-copy-id",xmlName:"x-ms-copy-id",type:{name:"String"}},copyStatus:{serializedName:"x-ms-copy-status",xmlName:"x-ms-copy-status",type:{name:"Enum",allowedValues:["pending","success","aborted","failed"]}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const vr={serializedName:"PageBlob_copyIncrementalExceptionHeaders",type:{name:"Composite",className:"PageBlobCopyIncrementalExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Sr={serializedName:"AppendBlob_createHeaders",type:{name:"Composite",className:"AppendBlobCreateHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},versionId:{serializedName:"x-ms-version-id",xmlName:"x-ms-version-id",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},isServerEncrypted:{serializedName:"x-ms-request-server-encrypted",xmlName:"x-ms-request-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Rr={serializedName:"AppendBlob_createExceptionHeaders",type:{name:"Composite",className:"AppendBlobCreateExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Nr={serializedName:"AppendBlob_appendBlockHeaders",type:{name:"Composite",className:"AppendBlobAppendBlockHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},xMsContentCrc64:{serializedName:"x-ms-content-crc64",xmlName:"x-ms-content-crc64",type:{name:"ByteArray"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},blobAppendOffset:{serializedName:"x-ms-blob-append-offset",xmlName:"x-ms-blob-append-offset",type:{name:"String"}},blobCommittedBlockCount:{serializedName:"x-ms-blob-committed-block-count",xmlName:"x-ms-blob-committed-block-count",type:{name:"Number"}},isServerEncrypted:{serializedName:"x-ms-request-server-encrypted",xmlName:"x-ms-request-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const xr={serializedName:"AppendBlob_appendBlockExceptionHeaders",type:{name:"Composite",className:"AppendBlobAppendBlockExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Dr={serializedName:"AppendBlob_appendBlockFromUrlHeaders",type:{name:"Composite",className:"AppendBlobAppendBlockFromUrlHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},xMsContentCrc64:{serializedName:"x-ms-content-crc64",xmlName:"x-ms-content-crc64",type:{name:"ByteArray"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},blobAppendOffset:{serializedName:"x-ms-blob-append-offset",xmlName:"x-ms-blob-append-offset",type:{name:"String"}},blobCommittedBlockCount:{serializedName:"x-ms-blob-committed-block-count",xmlName:"x-ms-blob-committed-block-count",type:{name:"Number"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},isServerEncrypted:{serializedName:"x-ms-request-server-encrypted",xmlName:"x-ms-request-server-encrypted",type:{name:"Boolean"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const kr={serializedName:"AppendBlob_appendBlockFromUrlExceptionHeaders",type:{name:"Composite",className:"AppendBlobAppendBlockFromUrlExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Tr={serializedName:"AppendBlob_sealHeaders",type:{name:"Composite",className:"AppendBlobSealHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},isSealed:{serializedName:"x-ms-blob-sealed",xmlName:"x-ms-blob-sealed",type:{name:"Boolean"}}}}};const _r={serializedName:"AppendBlob_sealExceptionHeaders",type:{name:"Composite",className:"AppendBlobSealExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Pr={serializedName:"BlockBlob_uploadHeaders",type:{name:"Composite",className:"BlockBlobUploadHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},versionId:{serializedName:"x-ms-version-id",xmlName:"x-ms-version-id",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},isServerEncrypted:{serializedName:"x-ms-request-server-encrypted",xmlName:"x-ms-request-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Or={serializedName:"BlockBlob_uploadExceptionHeaders",type:{name:"Composite",className:"BlockBlobUploadExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Fr={serializedName:"BlockBlob_putBlobFromUrlHeaders",type:{name:"Composite",className:"BlockBlobPutBlobFromUrlHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},versionId:{serializedName:"x-ms-version-id",xmlName:"x-ms-version-id",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},isServerEncrypted:{serializedName:"x-ms-request-server-encrypted",xmlName:"x-ms-request-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Lr={serializedName:"BlockBlob_putBlobFromUrlExceptionHeaders",type:{name:"Composite",className:"BlockBlobPutBlobFromUrlExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Mr={serializedName:"BlockBlob_stageBlockHeaders",type:{name:"Composite",className:"BlockBlobStageBlockHeaders",modelProperties:{contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},xMsContentCrc64:{serializedName:"x-ms-content-crc64",xmlName:"x-ms-content-crc64",type:{name:"ByteArray"}},isServerEncrypted:{serializedName:"x-ms-request-server-encrypted",xmlName:"x-ms-request-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Ur={serializedName:"BlockBlob_stageBlockExceptionHeaders",type:{name:"Composite",className:"BlockBlobStageBlockExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Hr={serializedName:"BlockBlob_stageBlockFromURLHeaders",type:{name:"Composite",className:"BlockBlobStageBlockFromURLHeaders",modelProperties:{contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},xMsContentCrc64:{serializedName:"x-ms-content-crc64",xmlName:"x-ms-content-crc64",type:{name:"ByteArray"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},isServerEncrypted:{serializedName:"x-ms-request-server-encrypted",xmlName:"x-ms-request-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Gr={serializedName:"BlockBlob_stageBlockFromURLExceptionHeaders",type:{name:"Composite",className:"BlockBlobStageBlockFromURLExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const qr={serializedName:"BlockBlob_commitBlockListHeaders",type:{name:"Composite",className:"BlockBlobCommitBlockListHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},xMsContentCrc64:{serializedName:"x-ms-content-crc64",xmlName:"x-ms-content-crc64",type:{name:"ByteArray"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},versionId:{serializedName:"x-ms-version-id",xmlName:"x-ms-version-id",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},isServerEncrypted:{serializedName:"x-ms-request-server-encrypted",xmlName:"x-ms-request-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Vr={serializedName:"BlockBlob_commitBlockListExceptionHeaders",type:{name:"Composite",className:"BlockBlobCommitBlockListExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const jr={serializedName:"BlockBlob_getBlockListHeaders",type:{name:"Composite",className:"BlockBlobGetBlockListHeaders",modelProperties:{lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},contentType:{serializedName:"content-type",xmlName:"content-type",type:{name:"String"}},blobContentLength:{serializedName:"x-ms-blob-content-length",xmlName:"x-ms-blob-content-length",type:{name:"Number"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const zr={serializedName:"BlockBlob_getBlockListExceptionHeaders",type:{name:"Composite",className:"BlockBlobGetBlockListExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};var Yr=Object.freeze({__proto__:null,BlobServiceProperties:v,Logging:S,RetentionPolicy:R,Metrics:N,CorsRule:x,StaticWebsite:D,StorageError:k,BlobServiceStatistics:T,GeoReplication:_,ListContainersSegmentResponse:P,ContainerItem:O,ContainerProperties:L,KeyInfo:M,UserDelegationKey:U,FilterBlobSegment:H,FilterBlobItem:G,BlobTags:q,BlobTag:V,SignedIdentifier:j,AccessPolicy:z,ListBlobsFlatSegmentResponse:Y,BlobFlatListSegment:J,BlobItemInternal:W,BlobName:X,BlobPropertiesInternal:$,ListBlobsHierarchySegmentResponse:K,BlobHierarchyListSegment:Z,BlobPrefix:ee,BlockLookupList:te,BlockList:re,Block:ne,PageList:se,PageRange:ie,ClearRange:oe,QueryRequest:ae,QuerySerialization:Ae,QueryFormat:ce,DelimitedTextConfiguration:le,JsonTextConfiguration:de,ArrowConfiguration:ue,ArrowField:pe,ServiceSetPropertiesHeaders:ge,ServiceSetPropertiesExceptionHeaders:he,ServiceGetPropertiesHeaders:me,ServiceGetPropertiesExceptionHeaders:fe,ServiceGetStatisticsHeaders:Ee,ServiceGetStatisticsExceptionHeaders:Ce,ServiceListContainersSegmentHeaders:ye,ServiceListContainersSegmentExceptionHeaders:Ie,ServiceGetUserDelegationKeyHeaders:Be,ServiceGetUserDelegationKeyExceptionHeaders:be,ServiceGetAccountInfoHeaders:Qe,ServiceGetAccountInfoExceptionHeaders:we,ServiceSubmitBatchHeaders:ve,ServiceSubmitBatchExceptionHeaders:Se,ServiceFilterBlobsHeaders:Re,ServiceFilterBlobsExceptionHeaders:Ne,ContainerCreateHeaders:xe,ContainerCreateExceptionHeaders:De,ContainerGetPropertiesHeaders:ke,ContainerGetPropertiesExceptionHeaders:Te,ContainerDeleteHeaders:_e,ContainerDeleteExceptionHeaders:Pe,ContainerSetMetadataHeaders:Oe,ContainerSetMetadataExceptionHeaders:Fe,ContainerGetAccessPolicyHeaders:Le,ContainerGetAccessPolicyExceptionHeaders:Me,ContainerSetAccessPolicyHeaders:Ue,ContainerSetAccessPolicyExceptionHeaders:He,ContainerRestoreHeaders:Ge,ContainerRestoreExceptionHeaders:qe,ContainerRenameHeaders:Ve,ContainerRenameExceptionHeaders:je,ContainerSubmitBatchHeaders:ze,ContainerSubmitBatchExceptionHeaders:Ye,ContainerFilterBlobsHeaders:Je,ContainerFilterBlobsExceptionHeaders:We,ContainerAcquireLeaseHeaders:Xe,ContainerAcquireLeaseExceptionHeaders:$e,ContainerReleaseLeaseHeaders:Ke,ContainerReleaseLeaseExceptionHeaders:Ze,ContainerRenewLeaseHeaders:et,ContainerRenewLeaseExceptionHeaders:tt,ContainerBreakLeaseHeaders:rt,ContainerBreakLeaseExceptionHeaders:nt,ContainerChangeLeaseHeaders:st,ContainerChangeLeaseExceptionHeaders:it,ContainerListBlobFlatSegmentHeaders:ot,ContainerListBlobFlatSegmentExceptionHeaders:At,ContainerListBlobHierarchySegmentHeaders:ct,ContainerListBlobHierarchySegmentExceptionHeaders:dt,ContainerGetAccountInfoHeaders:ut,ContainerGetAccountInfoExceptionHeaders:pt,BlobDownloadHeaders:ht,BlobDownloadExceptionHeaders:mt,BlobGetPropertiesHeaders:ft,BlobGetPropertiesExceptionHeaders:Et,BlobDeleteHeaders:Ct,BlobDeleteExceptionHeaders:yt,BlobUndeleteHeaders:It,BlobUndeleteExceptionHeaders:Bt,BlobSetExpiryHeaders:bt,BlobSetExpiryExceptionHeaders:Qt,BlobSetHttpHeadersHeaders:wt,BlobSetHttpHeadersExceptionHeaders:vt,BlobSetImmutabilityPolicyHeaders:St,BlobSetImmutabilityPolicyExceptionHeaders:Rt,BlobDeleteImmutabilityPolicyHeaders:Nt,BlobDeleteImmutabilityPolicyExceptionHeaders:xt,BlobSetLegalHoldHeaders:Dt,BlobSetLegalHoldExceptionHeaders:kt,BlobSetMetadataHeaders:Tt,BlobSetMetadataExceptionHeaders:_t,BlobAcquireLeaseHeaders:Pt,BlobAcquireLeaseExceptionHeaders:Ot,BlobReleaseLeaseHeaders:Ft,BlobReleaseLeaseExceptionHeaders:Lt,BlobRenewLeaseHeaders:Mt,BlobRenewLeaseExceptionHeaders:Ut,BlobChangeLeaseHeaders:Ht,BlobChangeLeaseExceptionHeaders:Gt,BlobBreakLeaseHeaders:qt,BlobBreakLeaseExceptionHeaders:Vt,BlobCreateSnapshotHeaders:jt,BlobCreateSnapshotExceptionHeaders:zt,BlobStartCopyFromURLHeaders:Yt,BlobStartCopyFromURLExceptionHeaders:Jt,BlobCopyFromURLHeaders:Wt,BlobCopyFromURLExceptionHeaders:Xt,BlobAbortCopyFromURLHeaders:$t,BlobAbortCopyFromURLExceptionHeaders:Kt,BlobSetTierHeaders:Zt,BlobSetTierExceptionHeaders:er,BlobGetAccountInfoHeaders:tr,BlobGetAccountInfoExceptionHeaders:rr,BlobQueryHeaders:nr,BlobQueryExceptionHeaders:sr,BlobGetTagsHeaders:ir,BlobGetTagsExceptionHeaders:or,BlobSetTagsHeaders:ar,BlobSetTagsExceptionHeaders:Ar,PageBlobCreateHeaders:cr,PageBlobCreateExceptionHeaders:lr,PageBlobUploadPagesHeaders:dr,PageBlobUploadPagesExceptionHeaders:ur,PageBlobClearPagesHeaders:pr,PageBlobClearPagesExceptionHeaders:gr,PageBlobUploadPagesFromURLHeaders:hr,PageBlobUploadPagesFromURLExceptionHeaders:mr,PageBlobGetPageRangesHeaders:fr,PageBlobGetPageRangesExceptionHeaders:Er,PageBlobGetPageRangesDiffHeaders:Cr,PageBlobGetPageRangesDiffExceptionHeaders:yr,PageBlobResizeHeaders:Ir,PageBlobResizeExceptionHeaders:Br,PageBlobUpdateSequenceNumberHeaders:br,PageBlobUpdateSequenceNumberExceptionHeaders:Qr,PageBlobCopyIncrementalHeaders:wr,PageBlobCopyIncrementalExceptionHeaders:vr,AppendBlobCreateHeaders:Sr,AppendBlobCreateExceptionHeaders:Rr,AppendBlobAppendBlockHeaders:Nr,AppendBlobAppendBlockExceptionHeaders:xr,AppendBlobAppendBlockFromUrlHeaders:Dr,AppendBlobAppendBlockFromUrlExceptionHeaders:kr,AppendBlobSealHeaders:Tr,AppendBlobSealExceptionHeaders:_r,BlockBlobUploadHeaders:Pr,BlockBlobUploadExceptionHeaders:Or,BlockBlobPutBlobFromUrlHeaders:Fr,BlockBlobPutBlobFromUrlExceptionHeaders:Lr,BlockBlobStageBlockHeaders:Mr,BlockBlobStageBlockExceptionHeaders:Ur,BlockBlobStageBlockFromURLHeaders:Hr,BlockBlobStageBlockFromURLExceptionHeaders:Gr,BlockBlobCommitBlockListHeaders:qr,BlockBlobCommitBlockListExceptionHeaders:Vr,BlockBlobGetBlockListHeaders:jr,BlockBlobGetBlockListExceptionHeaders:zr});const Jr={parameterPath:["options","contentType"],mapper:{defaultValue:"application/xml",isConstant:true,serializedName:"Content-Type",type:{name:"String"}}};const Wr={parameterPath:"blobServiceProperties",mapper:v};const Xr={parameterPath:"accept",mapper:{defaultValue:"application/xml",isConstant:true,serializedName:"Accept",type:{name:"String"}}};const $r={parameterPath:"url",mapper:{serializedName:"url",required:true,xmlName:"url",type:{name:"String"}},skipEncoding:true};const Kr={parameterPath:"restype",mapper:{defaultValue:"service",isConstant:true,serializedName:"restype",type:{name:"String"}}};const Zr={parameterPath:"comp",mapper:{defaultValue:"properties",isConstant:true,serializedName:"comp",type:{name:"String"}}};const en={parameterPath:["options","timeoutInSeconds"],mapper:{constraints:{InclusiveMinimum:0},serializedName:"timeout",xmlName:"timeout",type:{name:"Number"}}};const tn={parameterPath:"version",mapper:{defaultValue:"2024-05-04",isConstant:true,serializedName:"x-ms-version",type:{name:"String"}}};const rn={parameterPath:["options","requestId"],mapper:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}}};const nn={parameterPath:"accept",mapper:{defaultValue:"application/xml",isConstant:true,serializedName:"Accept",type:{name:"String"}}};const sn={parameterPath:"comp",mapper:{defaultValue:"stats",isConstant:true,serializedName:"comp",type:{name:"String"}}};const an={parameterPath:"comp",mapper:{defaultValue:"list",isConstant:true,serializedName:"comp",type:{name:"String"}}};const An={parameterPath:["options","prefix"],mapper:{serializedName:"prefix",xmlName:"prefix",type:{name:"String"}}};const cn={parameterPath:["options","marker"],mapper:{serializedName:"marker",xmlName:"marker",type:{name:"String"}}};const ln={parameterPath:["options","maxPageSize"],mapper:{constraints:{InclusiveMinimum:1},serializedName:"maxresults",xmlName:"maxresults",type:{name:"Number"}}};const dn={parameterPath:["options","include"],mapper:{serializedName:"include",xmlName:"include",xmlElementName:"ListContainersIncludeType",type:{name:"Sequence",element:{type:{name:"Enum",allowedValues:["metadata","deleted","system"]}}}},collectionFormat:a.QueryCollectionFormat.Csv};const un={parameterPath:"keyInfo",mapper:M};const pn={parameterPath:"comp",mapper:{defaultValue:"userdelegationkey",isConstant:true,serializedName:"comp",type:{name:"String"}}};const gn={parameterPath:"restype",mapper:{defaultValue:"account",isConstant:true,serializedName:"restype",type:{name:"String"}}};const hn={parameterPath:"body",mapper:{serializedName:"body",required:true,xmlName:"body",type:{name:"Stream"}}};const mn={parameterPath:"comp",mapper:{defaultValue:"batch",isConstant:true,serializedName:"comp",type:{name:"String"}}};const En={parameterPath:"contentLength",mapper:{serializedName:"Content-Length",required:true,xmlName:"Content-Length",type:{name:"Number"}}};const Cn={parameterPath:"multipartContentType",mapper:{serializedName:"Content-Type",required:true,xmlName:"Content-Type",type:{name:"String"}}};const yn={parameterPath:"comp",mapper:{defaultValue:"blobs",isConstant:true,serializedName:"comp",type:{name:"String"}}};const In={parameterPath:["options","where"],mapper:{serializedName:"where",xmlName:"where",type:{name:"String"}}};const Bn={parameterPath:"restype",mapper:{defaultValue:"container",isConstant:true,serializedName:"restype",type:{name:"String"}}};const bn={parameterPath:["options","metadata"],mapper:{serializedName:"x-ms-meta",xmlName:"x-ms-meta",type:{name:"Dictionary",value:{type:{name:"String"}}},headerCollectionPrefix:"x-ms-meta-"}};const Qn={parameterPath:["options","access"],mapper:{serializedName:"x-ms-blob-public-access",xmlName:"x-ms-blob-public-access",type:{name:"Enum",allowedValues:["container","blob"]}}};const wn={parameterPath:["options","containerEncryptionScope","defaultEncryptionScope"],mapper:{serializedName:"x-ms-default-encryption-scope",xmlName:"x-ms-default-encryption-scope",type:{name:"String"}}};const vn={parameterPath:["options","containerEncryptionScope","preventEncryptionScopeOverride"],mapper:{serializedName:"x-ms-deny-encryption-scope-override",xmlName:"x-ms-deny-encryption-scope-override",type:{name:"Boolean"}}};const Sn={parameterPath:["options","leaseAccessConditions","leaseId"],mapper:{serializedName:"x-ms-lease-id",xmlName:"x-ms-lease-id",type:{name:"String"}}};const Rn={parameterPath:["options","modifiedAccessConditions","ifModifiedSince"],mapper:{serializedName:"If-Modified-Since",xmlName:"If-Modified-Since",type:{name:"DateTimeRfc1123"}}};const Nn={parameterPath:["options","modifiedAccessConditions","ifUnmodifiedSince"],mapper:{serializedName:"If-Unmodified-Since",xmlName:"If-Unmodified-Since",type:{name:"DateTimeRfc1123"}}};const xn={parameterPath:"comp",mapper:{defaultValue:"metadata",isConstant:true,serializedName:"comp",type:{name:"String"}}};const Dn={parameterPath:"comp",mapper:{defaultValue:"acl",isConstant:true,serializedName:"comp",type:{name:"String"}}};const kn={parameterPath:["options","containerAcl"],mapper:{serializedName:"containerAcl",xmlName:"SignedIdentifiers",xmlIsWrapped:true,xmlElementName:"SignedIdentifier",type:{name:"Sequence",element:{type:{name:"Composite",className:"SignedIdentifier"}}}}};const Tn={parameterPath:"comp",mapper:{defaultValue:"undelete",isConstant:true,serializedName:"comp",type:{name:"String"}}};const _n={parameterPath:["options","deletedContainerName"],mapper:{serializedName:"x-ms-deleted-container-name",xmlName:"x-ms-deleted-container-name",type:{name:"String"}}};const Pn={parameterPath:["options","deletedContainerVersion"],mapper:{serializedName:"x-ms-deleted-container-version",xmlName:"x-ms-deleted-container-version",type:{name:"String"}}};const On={parameterPath:"comp",mapper:{defaultValue:"rename",isConstant:true,serializedName:"comp",type:{name:"String"}}};const Fn={parameterPath:"sourceContainerName",mapper:{serializedName:"x-ms-source-container-name",required:true,xmlName:"x-ms-source-container-name",type:{name:"String"}}};const Ln={parameterPath:["options","sourceLeaseId"],mapper:{serializedName:"x-ms-source-lease-id",xmlName:"x-ms-source-lease-id",type:{name:"String"}}};const Mn={parameterPath:"comp",mapper:{defaultValue:"lease",isConstant:true,serializedName:"comp",type:{name:"String"}}};const Un={parameterPath:"action",mapper:{defaultValue:"acquire",isConstant:true,serializedName:"x-ms-lease-action",type:{name:"String"}}};const Hn={parameterPath:["options","duration"],mapper:{serializedName:"x-ms-lease-duration",xmlName:"x-ms-lease-duration",type:{name:"Number"}}};const Gn={parameterPath:["options","proposedLeaseId"],mapper:{serializedName:"x-ms-proposed-lease-id",xmlName:"x-ms-proposed-lease-id",type:{name:"String"}}};const qn={parameterPath:"action",mapper:{defaultValue:"release",isConstant:true,serializedName:"x-ms-lease-action",type:{name:"String"}}};const Vn={parameterPath:"leaseId",mapper:{serializedName:"x-ms-lease-id",required:true,xmlName:"x-ms-lease-id",type:{name:"String"}}};const jn={parameterPath:"action",mapper:{defaultValue:"renew",isConstant:true,serializedName:"x-ms-lease-action",type:{name:"String"}}};const zn={parameterPath:"action",mapper:{defaultValue:"break",isConstant:true,serializedName:"x-ms-lease-action",type:{name:"String"}}};const Yn={parameterPath:["options","breakPeriod"],mapper:{serializedName:"x-ms-lease-break-period",xmlName:"x-ms-lease-break-period",type:{name:"Number"}}};const Jn={parameterPath:"action",mapper:{defaultValue:"change",isConstant:true,serializedName:"x-ms-lease-action",type:{name:"String"}}};const Wn={parameterPath:"proposedLeaseId",mapper:{serializedName:"x-ms-proposed-lease-id",required:true,xmlName:"x-ms-proposed-lease-id",type:{name:"String"}}};const Xn={parameterPath:["options","include"],mapper:{serializedName:"include",xmlName:"include",xmlElementName:"ListBlobsIncludeItem",type:{name:"Sequence",element:{type:{name:"Enum",allowedValues:["copy","deleted","metadata","snapshots","uncommittedblobs","versions","tags","immutabilitypolicy","legalhold","deletedwithversions"]}}}},collectionFormat:a.QueryCollectionFormat.Csv};const $n={parameterPath:"delimiter",mapper:{serializedName:"delimiter",required:true,xmlName:"delimiter",type:{name:"String"}}};const Kn={parameterPath:["options","snapshot"],mapper:{serializedName:"snapshot",xmlName:"snapshot",type:{name:"String"}}};const Zn={parameterPath:["options","versionId"],mapper:{serializedName:"versionid",xmlName:"versionid",type:{name:"String"}}};const es={parameterPath:["options","range"],mapper:{serializedName:"x-ms-range",xmlName:"x-ms-range",type:{name:"String"}}};const ts={parameterPath:["options","rangeGetContentMD5"],mapper:{serializedName:"x-ms-range-get-content-md5",xmlName:"x-ms-range-get-content-md5",type:{name:"Boolean"}}};const rs={parameterPath:["options","rangeGetContentCRC64"],mapper:{serializedName:"x-ms-range-get-content-crc64",xmlName:"x-ms-range-get-content-crc64",type:{name:"Boolean"}}};const ns={parameterPath:["options","cpkInfo","encryptionKey"],mapper:{serializedName:"x-ms-encryption-key",xmlName:"x-ms-encryption-key",type:{name:"String"}}};const ss={parameterPath:["options","cpkInfo","encryptionKeySha256"],mapper:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}}};const os={parameterPath:["options","cpkInfo","encryptionAlgorithm"],mapper:{serializedName:"x-ms-encryption-algorithm",xmlName:"x-ms-encryption-algorithm",type:{name:"String"}}};const as={parameterPath:["options","modifiedAccessConditions","ifMatch"],mapper:{serializedName:"If-Match",xmlName:"If-Match",type:{name:"String"}}};const As={parameterPath:["options","modifiedAccessConditions","ifNoneMatch"],mapper:{serializedName:"If-None-Match",xmlName:"If-None-Match",type:{name:"String"}}};const cs={parameterPath:["options","modifiedAccessConditions","ifTags"],mapper:{serializedName:"x-ms-if-tags",xmlName:"x-ms-if-tags",type:{name:"String"}}};const ls={parameterPath:["options","deleteSnapshots"],mapper:{serializedName:"x-ms-delete-snapshots",xmlName:"x-ms-delete-snapshots",type:{name:"Enum",allowedValues:["include","only"]}}};const ds={parameterPath:["options","blobDeleteType"],mapper:{serializedName:"deletetype",xmlName:"deletetype",type:{name:"String"}}};const us={parameterPath:"comp",mapper:{defaultValue:"expiry",isConstant:true,serializedName:"comp",type:{name:"String"}}};const ps={parameterPath:"expiryOptions",mapper:{serializedName:"x-ms-expiry-option",required:true,xmlName:"x-ms-expiry-option",type:{name:"String"}}};const gs={parameterPath:["options","expiresOn"],mapper:{serializedName:"x-ms-expiry-time",xmlName:"x-ms-expiry-time",type:{name:"String"}}};const hs={parameterPath:["options","blobHttpHeaders","blobCacheControl"],mapper:{serializedName:"x-ms-blob-cache-control",xmlName:"x-ms-blob-cache-control",type:{name:"String"}}};const ms={parameterPath:["options","blobHttpHeaders","blobContentType"],mapper:{serializedName:"x-ms-blob-content-type",xmlName:"x-ms-blob-content-type",type:{name:"String"}}};const fs={parameterPath:["options","blobHttpHeaders","blobContentMD5"],mapper:{serializedName:"x-ms-blob-content-md5",xmlName:"x-ms-blob-content-md5",type:{name:"ByteArray"}}};const Es={parameterPath:["options","blobHttpHeaders","blobContentEncoding"],mapper:{serializedName:"x-ms-blob-content-encoding",xmlName:"x-ms-blob-content-encoding",type:{name:"String"}}};const Cs={parameterPath:["options","blobHttpHeaders","blobContentLanguage"],mapper:{serializedName:"x-ms-blob-content-language",xmlName:"x-ms-blob-content-language",type:{name:"String"}}};const ys={parameterPath:["options","blobHttpHeaders","blobContentDisposition"],mapper:{serializedName:"x-ms-blob-content-disposition",xmlName:"x-ms-blob-content-disposition",type:{name:"String"}}};const Is={parameterPath:"comp",mapper:{defaultValue:"immutabilityPolicies",isConstant:true,serializedName:"comp",type:{name:"String"}}};const Bs={parameterPath:["options","immutabilityPolicyExpiry"],mapper:{serializedName:"x-ms-immutability-policy-until-date",xmlName:"x-ms-immutability-policy-until-date",type:{name:"DateTimeRfc1123"}}};const bs={parameterPath:["options","immutabilityPolicyMode"],mapper:{serializedName:"x-ms-immutability-policy-mode",xmlName:"x-ms-immutability-policy-mode",type:{name:"Enum",allowedValues:["Mutable","Unlocked","Locked"]}}};const Qs={parameterPath:"comp",mapper:{defaultValue:"legalhold",isConstant:true,serializedName:"comp",type:{name:"String"}}};const ws={parameterPath:"legalHold",mapper:{serializedName:"x-ms-legal-hold",required:true,xmlName:"x-ms-legal-hold",type:{name:"Boolean"}}};const vs={parameterPath:["options","encryptionScope"],mapper:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}}};const Ss={parameterPath:"comp",mapper:{defaultValue:"snapshot",isConstant:true,serializedName:"comp",type:{name:"String"}}};const Rs={parameterPath:["options","tier"],mapper:{serializedName:"x-ms-access-tier",xmlName:"x-ms-access-tier",type:{name:"Enum",allowedValues:["P4","P6","P10","P15","P20","P30","P40","P50","P60","P70","P80","Hot","Cool","Archive","Cold"]}}};const Ns={parameterPath:["options","rehydratePriority"],mapper:{serializedName:"x-ms-rehydrate-priority",xmlName:"x-ms-rehydrate-priority",type:{name:"Enum",allowedValues:["High","Standard"]}}};const xs={parameterPath:["options","sourceModifiedAccessConditions","sourceIfModifiedSince"],mapper:{serializedName:"x-ms-source-if-modified-since",xmlName:"x-ms-source-if-modified-since",type:{name:"DateTimeRfc1123"}}};const Ds={parameterPath:["options","sourceModifiedAccessConditions","sourceIfUnmodifiedSince"],mapper:{serializedName:"x-ms-source-if-unmodified-since",xmlName:"x-ms-source-if-unmodified-since",type:{name:"DateTimeRfc1123"}}};const ks={parameterPath:["options","sourceModifiedAccessConditions","sourceIfMatch"],mapper:{serializedName:"x-ms-source-if-match",xmlName:"x-ms-source-if-match",type:{name:"String"}}};const Ts={parameterPath:["options","sourceModifiedAccessConditions","sourceIfNoneMatch"],mapper:{serializedName:"x-ms-source-if-none-match",xmlName:"x-ms-source-if-none-match",type:{name:"String"}}};const _s={parameterPath:["options","sourceModifiedAccessConditions","sourceIfTags"],mapper:{serializedName:"x-ms-source-if-tags",xmlName:"x-ms-source-if-tags",type:{name:"String"}}};const Ps={parameterPath:"copySource",mapper:{serializedName:"x-ms-copy-source",required:true,xmlName:"x-ms-copy-source",type:{name:"String"}}};const Os={parameterPath:["options","blobTagsString"],mapper:{serializedName:"x-ms-tags",xmlName:"x-ms-tags",type:{name:"String"}}};const Fs={parameterPath:["options","sealBlob"],mapper:{serializedName:"x-ms-seal-blob",xmlName:"x-ms-seal-blob",type:{name:"Boolean"}}};const Ls={parameterPath:["options","legalHold"],mapper:{serializedName:"x-ms-legal-hold",xmlName:"x-ms-legal-hold",type:{name:"Boolean"}}};const Ms={parameterPath:"xMsRequiresSync",mapper:{defaultValue:"true",isConstant:true,serializedName:"x-ms-requires-sync",type:{name:"String"}}};const Us={parameterPath:["options","sourceContentMD5"],mapper:{serializedName:"x-ms-source-content-md5",xmlName:"x-ms-source-content-md5",type:{name:"ByteArray"}}};const Hs={parameterPath:["options","copySourceAuthorization"],mapper:{serializedName:"x-ms-copy-source-authorization",xmlName:"x-ms-copy-source-authorization",type:{name:"String"}}};const Gs={parameterPath:["options","copySourceTags"],mapper:{serializedName:"x-ms-copy-source-tag-option",xmlName:"x-ms-copy-source-tag-option",type:{name:"Enum",allowedValues:["REPLACE","COPY"]}}};const qs={parameterPath:"comp",mapper:{defaultValue:"copy",isConstant:true,serializedName:"comp",type:{name:"String"}}};const Vs={parameterPath:"copyActionAbortConstant",mapper:{defaultValue:"abort",isConstant:true,serializedName:"x-ms-copy-action",type:{name:"String"}}};const js={parameterPath:"copyId",mapper:{serializedName:"copyid",required:true,xmlName:"copyid",type:{name:"String"}}};const zs={parameterPath:"comp",mapper:{defaultValue:"tier",isConstant:true,serializedName:"comp",type:{name:"String"}}};const Ys={parameterPath:"tier",mapper:{serializedName:"x-ms-access-tier",required:true,xmlName:"x-ms-access-tier",type:{name:"Enum",allowedValues:["P4","P6","P10","P15","P20","P30","P40","P50","P60","P70","P80","Hot","Cool","Archive","Cold"]}}};const Js={parameterPath:["options","queryRequest"],mapper:ae};const Ws={parameterPath:"comp",mapper:{defaultValue:"query",isConstant:true,serializedName:"comp",type:{name:"String"}}};const Xs={parameterPath:"comp",mapper:{defaultValue:"tags",isConstant:true,serializedName:"comp",type:{name:"String"}}};const $s={parameterPath:["options","tags"],mapper:q};const Ks={parameterPath:["options","transactionalContentMD5"],mapper:{serializedName:"Content-MD5",xmlName:"Content-MD5",type:{name:"ByteArray"}}};const Zs={parameterPath:["options","transactionalContentCrc64"],mapper:{serializedName:"x-ms-content-crc64",xmlName:"x-ms-content-crc64",type:{name:"ByteArray"}}};const ei={parameterPath:"blobType",mapper:{defaultValue:"PageBlob",isConstant:true,serializedName:"x-ms-blob-type",type:{name:"String"}}};const ti={parameterPath:"blobContentLength",mapper:{serializedName:"x-ms-blob-content-length",required:true,xmlName:"x-ms-blob-content-length",type:{name:"Number"}}};const ri={parameterPath:["options","blobSequenceNumber"],mapper:{serializedName:"x-ms-blob-sequence-number",xmlName:"x-ms-blob-sequence-number",type:{name:"Number"}}};const ni={parameterPath:["options","contentType"],mapper:{defaultValue:"application/octet-stream",isConstant:true,serializedName:"Content-Type",type:{name:"String"}}};const si={parameterPath:"body",mapper:{serializedName:"body",required:true,xmlName:"body",type:{name:"Stream"}}};const ii={parameterPath:"accept",mapper:{defaultValue:"application/xml",isConstant:true,serializedName:"Accept",type:{name:"String"}}};const oi={parameterPath:"comp",mapper:{defaultValue:"page",isConstant:true,serializedName:"comp",type:{name:"String"}}};const ai={parameterPath:"pageWrite",mapper:{defaultValue:"update",isConstant:true,serializedName:"x-ms-page-write",type:{name:"String"}}};const Ai={parameterPath:["options","sequenceNumberAccessConditions","ifSequenceNumberLessThanOrEqualTo"],mapper:{serializedName:"x-ms-if-sequence-number-le",xmlName:"x-ms-if-sequence-number-le",type:{name:"Number"}}};const ci={parameterPath:["options","sequenceNumberAccessConditions","ifSequenceNumberLessThan"],mapper:{serializedName:"x-ms-if-sequence-number-lt",xmlName:"x-ms-if-sequence-number-lt",type:{name:"Number"}}};const li={parameterPath:["options","sequenceNumberAccessConditions","ifSequenceNumberEqualTo"],mapper:{serializedName:"x-ms-if-sequence-number-eq",xmlName:"x-ms-if-sequence-number-eq",type:{name:"Number"}}};const di={parameterPath:"pageWrite",mapper:{defaultValue:"clear",isConstant:true,serializedName:"x-ms-page-write",type:{name:"String"}}};const ui={parameterPath:"sourceUrl",mapper:{serializedName:"x-ms-copy-source",required:true,xmlName:"x-ms-copy-source",type:{name:"String"}}};const pi={parameterPath:"sourceRange",mapper:{serializedName:"x-ms-source-range",required:true,xmlName:"x-ms-source-range",type:{name:"String"}}};const gi={parameterPath:["options","sourceContentCrc64"],mapper:{serializedName:"x-ms-source-content-crc64",xmlName:"x-ms-source-content-crc64",type:{name:"ByteArray"}}};const hi={parameterPath:"range",mapper:{serializedName:"x-ms-range",required:true,xmlName:"x-ms-range",type:{name:"String"}}};const mi={parameterPath:"comp",mapper:{defaultValue:"pagelist",isConstant:true,serializedName:"comp",type:{name:"String"}}};const fi={parameterPath:["options","prevsnapshot"],mapper:{serializedName:"prevsnapshot",xmlName:"prevsnapshot",type:{name:"String"}}};const Ei={parameterPath:["options","prevSnapshotUrl"],mapper:{serializedName:"x-ms-previous-snapshot-url",xmlName:"x-ms-previous-snapshot-url",type:{name:"String"}}};const Ci={parameterPath:"sequenceNumberAction",mapper:{serializedName:"x-ms-sequence-number-action",required:true,xmlName:"x-ms-sequence-number-action",type:{name:"Enum",allowedValues:["max","update","increment"]}}};const yi={parameterPath:"comp",mapper:{defaultValue:"incrementalcopy",isConstant:true,serializedName:"comp",type:{name:"String"}}};const Ii={parameterPath:"blobType",mapper:{defaultValue:"AppendBlob",isConstant:true,serializedName:"x-ms-blob-type",type:{name:"String"}}};const Bi={parameterPath:"comp",mapper:{defaultValue:"appendblock",isConstant:true,serializedName:"comp",type:{name:"String"}}};const bi={parameterPath:["options","appendPositionAccessConditions","maxSize"],mapper:{serializedName:"x-ms-blob-condition-maxsize",xmlName:"x-ms-blob-condition-maxsize",type:{name:"Number"}}};const Qi={parameterPath:["options","appendPositionAccessConditions","appendPosition"],mapper:{serializedName:"x-ms-blob-condition-appendpos",xmlName:"x-ms-blob-condition-appendpos",type:{name:"Number"}}};const wi={parameterPath:["options","sourceRange"],mapper:{serializedName:"x-ms-source-range",xmlName:"x-ms-source-range",type:{name:"String"}}};const vi={parameterPath:"comp",mapper:{defaultValue:"seal",isConstant:true,serializedName:"comp",type:{name:"String"}}};const Si={parameterPath:"blobType",mapper:{defaultValue:"BlockBlob",isConstant:true,serializedName:"x-ms-blob-type",type:{name:"String"}}};const Ri={parameterPath:["options","copySourceBlobProperties"],mapper:{serializedName:"x-ms-copy-source-blob-properties",xmlName:"x-ms-copy-source-blob-properties",type:{name:"Boolean"}}};const Ni={parameterPath:"comp",mapper:{defaultValue:"block",isConstant:true,serializedName:"comp",type:{name:"String"}}};const xi={parameterPath:"blockId",mapper:{serializedName:"blockid",required:true,xmlName:"blockid",type:{name:"String"}}};const Di={parameterPath:"blocks",mapper:te};const ki={parameterPath:"comp",mapper:{defaultValue:"blocklist",isConstant:true,serializedName:"comp",type:{name:"String"}}};const Ti={parameterPath:"listType",mapper:{defaultValue:"committed",serializedName:"blocklisttype",required:true,xmlName:"blocklisttype",type:{name:"Enum",allowedValues:["committed","uncommitted","all"]}}};class Service{constructor(r){this.client=r}setProperties(r,s){const i={blobServiceProperties:r,options:B.operationOptionsToRequestOptionsBase(s||{})};return this.client.sendOperationRequest(i,Pi)}getProperties(r){const s={options:B.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(s,Oi)}getStatistics(r){const s={options:B.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(s,Fi)}listContainersSegment(r){const s={options:B.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(s,Li)}getUserDelegationKey(r,s){const i={keyInfo:r,options:B.operationOptionsToRequestOptionsBase(s||{})};return this.client.sendOperationRequest(i,Mi)}getAccountInfo(r){const s={options:B.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(s,Ui)}submitBatch(r,s,i,a){const A={contentLength:r,multipartContentType:s,body:i,options:B.operationOptionsToRequestOptionsBase(a||{})};return this.client.sendOperationRequest(A,Hi)}filterBlobs(r){const s={options:B.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(s,Gi)}}const _i=new B.Serializer(Yr,true);const Pi={path:"/",httpMethod:"PUT",responses:{202:{headersMapper:ge},default:{bodyMapper:k,headersMapper:he}},requestBody:Wr,queryParameters:[Kr,Zr,en],urlParameters:[$r],headerParameters:[Jr,Xr,tn,rn],isXML:true,contentType:"application/xml; charset=utf-8",mediaType:"xml",serializer:_i};const Oi={path:"/",httpMethod:"GET",responses:{200:{bodyMapper:v,headersMapper:me},default:{bodyMapper:k,headersMapper:fe}},queryParameters:[Kr,Zr,en],urlParameters:[$r],headerParameters:[tn,rn,nn],isXML:true,serializer:_i};const Fi={path:"/",httpMethod:"GET",responses:{200:{bodyMapper:T,headersMapper:Ee},default:{bodyMapper:k,headersMapper:Ce}},queryParameters:[Kr,en,sn],urlParameters:[$r],headerParameters:[tn,rn,nn],isXML:true,serializer:_i};const Li={path:"/",httpMethod:"GET",responses:{200:{bodyMapper:P,headersMapper:ye},default:{bodyMapper:k,headersMapper:Ie}},queryParameters:[en,an,An,cn,ln,dn],urlParameters:[$r],headerParameters:[tn,rn,nn],isXML:true,serializer:_i};const Mi={path:"/",httpMethod:"POST",responses:{200:{bodyMapper:U,headersMapper:Be},default:{bodyMapper:k,headersMapper:be}},requestBody:un,queryParameters:[Kr,en,pn],urlParameters:[$r],headerParameters:[Jr,Xr,tn,rn],isXML:true,contentType:"application/xml; charset=utf-8",mediaType:"xml",serializer:_i};const Ui={path:"/",httpMethod:"GET",responses:{200:{headersMapper:Qe},default:{bodyMapper:k,headersMapper:we}},queryParameters:[Zr,gn],urlParameters:[$r],headerParameters:[tn,nn],isXML:true,serializer:_i};const Hi={path:"/",httpMethod:"POST",responses:{202:{bodyMapper:{type:{name:"Stream"},serializedName:"parsedResponse"},headersMapper:ve},default:{bodyMapper:k,headersMapper:Se}},requestBody:hn,queryParameters:[en,mn],urlParameters:[$r],headerParameters:[Jr,Xr,tn,rn,En,Cn],isXML:true,contentType:"application/xml; charset=utf-8",mediaType:"xml",serializer:_i};const Gi={path:"/",httpMethod:"GET",responses:{200:{bodyMapper:H,headersMapper:Re},default:{bodyMapper:k,headersMapper:Ne}},queryParameters:[en,cn,ln,yn,In],urlParameters:[$r],headerParameters:[tn,rn,nn],isXML:true,serializer:_i};class Container{constructor(r){this.client=r}create(r){const s={options:B.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(s,Vi)}getProperties(r){const s={options:B.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(s,ji)}delete(r){const s={options:B.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(s,zi)}setMetadata(r){const s={options:B.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(s,Yi)}getAccessPolicy(r){const s={options:B.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(s,Ji)}setAccessPolicy(r){const s={options:B.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(s,Wi)}restore(r){const s={options:B.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(s,Xi)}rename(r,s){const i={sourceContainerName:r,options:B.operationOptionsToRequestOptionsBase(s||{})};return this.client.sendOperationRequest(i,$i)}submitBatch(r,s,i,a){const A={contentLength:r,multipartContentType:s,body:i,options:B.operationOptionsToRequestOptionsBase(a||{})};return this.client.sendOperationRequest(A,Ki)}filterBlobs(r){const s={options:B.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(s,Zi)}acquireLease(r){const s={options:B.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(s,eo)}releaseLease(r,s){const i={leaseId:r,options:B.operationOptionsToRequestOptionsBase(s||{})};return this.client.sendOperationRequest(i,to)}renewLease(r,s){const i={leaseId:r,options:B.operationOptionsToRequestOptionsBase(s||{})};return this.client.sendOperationRequest(i,ro)}breakLease(r){const s={options:B.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(s,no)}changeLease(r,s,i){const a={leaseId:r,proposedLeaseId:s,options:B.operationOptionsToRequestOptionsBase(i||{})};return this.client.sendOperationRequest(a,so)}listBlobFlatSegment(r){const s={options:B.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(s,io)}listBlobHierarchySegment(r,s){const i={delimiter:r,options:B.operationOptionsToRequestOptionsBase(s||{})};return this.client.sendOperationRequest(i,oo)}getAccountInfo(r){const s={options:B.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(s,ao)}}const qi=new B.Serializer(Yr,true);const Vi={path:"/{containerName}",httpMethod:"PUT",responses:{201:{headersMapper:xe},default:{bodyMapper:k,headersMapper:De}},queryParameters:[en,Bn],urlParameters:[$r],headerParameters:[tn,rn,nn,bn,Qn,wn,vn],isXML:true,serializer:qi};const ji={path:"/{containerName}",httpMethod:"GET",responses:{200:{headersMapper:ke},default:{bodyMapper:k,headersMapper:Te}},queryParameters:[en,Bn],urlParameters:[$r],headerParameters:[tn,rn,nn,Sn],isXML:true,serializer:qi};const zi={path:"/{containerName}",httpMethod:"DELETE",responses:{202:{headersMapper:_e},default:{bodyMapper:k,headersMapper:Pe}},queryParameters:[en,Bn],urlParameters:[$r],headerParameters:[tn,rn,nn,Sn,Rn,Nn],isXML:true,serializer:qi};const Yi={path:"/{containerName}",httpMethod:"PUT",responses:{200:{headersMapper:Oe},default:{bodyMapper:k,headersMapper:Fe}},queryParameters:[en,Bn,xn],urlParameters:[$r],headerParameters:[tn,rn,nn,bn,Sn,Rn],isXML:true,serializer:qi};const Ji={path:"/{containerName}",httpMethod:"GET",responses:{200:{bodyMapper:{type:{name:"Sequence",element:{type:{name:"Composite",className:"SignedIdentifier"}}},serializedName:"SignedIdentifiers",xmlName:"SignedIdentifiers",xmlIsWrapped:true,xmlElementName:"SignedIdentifier"},headersMapper:Le},default:{bodyMapper:k,headersMapper:Me}},queryParameters:[en,Bn,Dn],urlParameters:[$r],headerParameters:[tn,rn,nn,Sn],isXML:true,serializer:qi};const Wi={path:"/{containerName}",httpMethod:"PUT",responses:{200:{headersMapper:Ue},default:{bodyMapper:k,headersMapper:He}},requestBody:kn,queryParameters:[en,Bn,Dn],urlParameters:[$r],headerParameters:[Jr,Xr,tn,rn,Qn,Sn,Rn,Nn],isXML:true,contentType:"application/xml; charset=utf-8",mediaType:"xml",serializer:qi};const Xi={path:"/{containerName}",httpMethod:"PUT",responses:{201:{headersMapper:Ge},default:{bodyMapper:k,headersMapper:qe}},queryParameters:[en,Bn,Tn],urlParameters:[$r],headerParameters:[tn,rn,nn,_n,Pn],isXML:true,serializer:qi};const $i={path:"/{containerName}",httpMethod:"PUT",responses:{200:{headersMapper:Ve},default:{bodyMapper:k,headersMapper:je}},queryParameters:[en,Bn,On],urlParameters:[$r],headerParameters:[tn,rn,nn,Fn,Ln],isXML:true,serializer:qi};const Ki={path:"/{containerName}",httpMethod:"POST",responses:{202:{bodyMapper:{type:{name:"Stream"},serializedName:"parsedResponse"},headersMapper:ze},default:{bodyMapper:k,headersMapper:Ye}},requestBody:hn,queryParameters:[en,mn,Bn],urlParameters:[$r],headerParameters:[Jr,Xr,tn,rn,En,Cn],isXML:true,contentType:"application/xml; charset=utf-8",mediaType:"xml",serializer:qi};const Zi={path:"/{containerName}",httpMethod:"GET",responses:{200:{bodyMapper:H,headersMapper:Je},default:{bodyMapper:k,headersMapper:We}},queryParameters:[en,cn,ln,yn,In,Bn],urlParameters:[$r],headerParameters:[tn,rn,nn],isXML:true,serializer:qi};const eo={path:"/{containerName}",httpMethod:"PUT",responses:{201:{headersMapper:Xe},default:{bodyMapper:k,headersMapper:$e}},queryParameters:[en,Bn,Mn],urlParameters:[$r],headerParameters:[tn,rn,nn,Rn,Nn,Un,Hn,Gn],isXML:true,serializer:qi};const to={path:"/{containerName}",httpMethod:"PUT",responses:{200:{headersMapper:Ke},default:{bodyMapper:k,headersMapper:Ze}},queryParameters:[en,Bn,Mn],urlParameters:[$r],headerParameters:[tn,rn,nn,Rn,Nn,qn,Vn],isXML:true,serializer:qi};const ro={path:"/{containerName}",httpMethod:"PUT",responses:{200:{headersMapper:et},default:{bodyMapper:k,headersMapper:tt}},queryParameters:[en,Bn,Mn],urlParameters:[$r],headerParameters:[tn,rn,nn,Rn,Nn,Vn,jn],isXML:true,serializer:qi};const no={path:"/{containerName}",httpMethod:"PUT",responses:{202:{headersMapper:rt},default:{bodyMapper:k,headersMapper:nt}},queryParameters:[en,Bn,Mn],urlParameters:[$r],headerParameters:[tn,rn,nn,Rn,Nn,zn,Yn],isXML:true,serializer:qi};const so={path:"/{containerName}",httpMethod:"PUT",responses:{200:{headersMapper:st},default:{bodyMapper:k,headersMapper:it}},queryParameters:[en,Bn,Mn],urlParameters:[$r],headerParameters:[tn,rn,nn,Rn,Nn,Vn,Jn,Wn],isXML:true,serializer:qi};const io={path:"/{containerName}",httpMethod:"GET",responses:{200:{bodyMapper:Y,headersMapper:ot},default:{bodyMapper:k,headersMapper:At}},queryParameters:[en,an,An,cn,ln,Bn,Xn],urlParameters:[$r],headerParameters:[tn,rn,nn],isXML:true,serializer:qi};const oo={path:"/{containerName}",httpMethod:"GET",responses:{200:{bodyMapper:K,headersMapper:ct},default:{bodyMapper:k,headersMapper:dt}},queryParameters:[en,an,An,cn,ln,Bn,Xn,$n],urlParameters:[$r],headerParameters:[tn,rn,nn],isXML:true,serializer:qi};const ao={path:"/{containerName}",httpMethod:"GET",responses:{200:{headersMapper:ut},default:{bodyMapper:k,headersMapper:pt}},queryParameters:[Zr,gn],urlParameters:[$r],headerParameters:[tn,nn],isXML:true,serializer:qi};class Blob$1{constructor(r){this.client=r}download(r){const s={options:B.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(s,co)}getProperties(r){const s={options:B.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(s,lo)}delete(r){const s={options:B.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(s,uo)}undelete(r){const s={options:B.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(s,po)}setExpiry(r,s){const i={expiryOptions:r,options:B.operationOptionsToRequestOptionsBase(s||{})};return this.client.sendOperationRequest(i,go)}setHttpHeaders(r){const s={options:B.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(s,ho)}setImmutabilityPolicy(r){const s={options:B.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(s,mo)}deleteImmutabilityPolicy(r){const s={options:B.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(s,fo)}setLegalHold(r,s){const i={legalHold:r,options:B.operationOptionsToRequestOptionsBase(s||{})};return this.client.sendOperationRequest(i,Eo)}setMetadata(r){const s={options:B.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(s,Co)}acquireLease(r){const s={options:B.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(s,yo)}releaseLease(r,s){const i={leaseId:r,options:B.operationOptionsToRequestOptionsBase(s||{})};return this.client.sendOperationRequest(i,Io)}renewLease(r,s){const i={leaseId:r,options:B.operationOptionsToRequestOptionsBase(s||{})};return this.client.sendOperationRequest(i,Bo)}changeLease(r,s,i){const a={leaseId:r,proposedLeaseId:s,options:B.operationOptionsToRequestOptionsBase(i||{})};return this.client.sendOperationRequest(a,bo)}breakLease(r){const s={options:B.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(s,Qo)}createSnapshot(r){const s={options:B.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(s,wo)}startCopyFromURL(r,s){const i={copySource:r,options:B.operationOptionsToRequestOptionsBase(s||{})};return this.client.sendOperationRequest(i,vo)}copyFromURL(r,s){const i={copySource:r,options:B.operationOptionsToRequestOptionsBase(s||{})};return this.client.sendOperationRequest(i,So)}abortCopyFromURL(r,s){const i={copyId:r,options:B.operationOptionsToRequestOptionsBase(s||{})};return this.client.sendOperationRequest(i,Ro)}setTier(r,s){const i={tier:r,options:B.operationOptionsToRequestOptionsBase(s||{})};return this.client.sendOperationRequest(i,No)}getAccountInfo(r){const s={options:B.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(s,xo)}query(r){const s={options:B.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(s,Do)}getTags(r){const s={options:B.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(s,ko)}setTags(r){const s={options:B.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(s,To)}}const Ao=new B.Serializer(Yr,true);const co={path:"/{containerName}/{blob}",httpMethod:"GET",responses:{200:{bodyMapper:{type:{name:"Stream"},serializedName:"parsedResponse"},headersMapper:ht},206:{bodyMapper:{type:{name:"Stream"},serializedName:"parsedResponse"},headersMapper:ht},default:{bodyMapper:k,headersMapper:mt}},queryParameters:[en,Kn,Zn],urlParameters:[$r],headerParameters:[tn,rn,nn,Sn,Rn,Nn,es,ts,rs,ns,ss,os,as,As,cs],isXML:true,serializer:Ao};const lo={path:"/{containerName}/{blob}",httpMethod:"HEAD",responses:{200:{headersMapper:ft},default:{bodyMapper:k,headersMapper:Et}},queryParameters:[en,Kn,Zn],urlParameters:[$r],headerParameters:[tn,rn,nn,Sn,Rn,Nn,ns,ss,os,as,As,cs],isXML:true,serializer:Ao};const uo={path:"/{containerName}/{blob}",httpMethod:"DELETE",responses:{202:{headersMapper:Ct},default:{bodyMapper:k,headersMapper:yt}},queryParameters:[en,Kn,Zn,ds],urlParameters:[$r],headerParameters:[tn,rn,nn,Sn,Rn,Nn,as,As,cs,ls],isXML:true,serializer:Ao};const po={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:It},default:{bodyMapper:k,headersMapper:Bt}},queryParameters:[en,Tn],urlParameters:[$r],headerParameters:[tn,rn,nn],isXML:true,serializer:Ao};const go={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:bt},default:{bodyMapper:k,headersMapper:Qt}},queryParameters:[en,us],urlParameters:[$r],headerParameters:[tn,rn,nn,ps,gs],isXML:true,serializer:Ao};const ho={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:wt},default:{bodyMapper:k,headersMapper:vt}},queryParameters:[Zr,en],urlParameters:[$r],headerParameters:[tn,rn,nn,Sn,Rn,Nn,as,As,cs,hs,ms,fs,Es,Cs,ys],isXML:true,serializer:Ao};const mo={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:St},default:{bodyMapper:k,headersMapper:Rt}},queryParameters:[en,Is],urlParameters:[$r],headerParameters:[tn,rn,nn,Nn,Bs,bs],isXML:true,serializer:Ao};const fo={path:"/{containerName}/{blob}",httpMethod:"DELETE",responses:{200:{headersMapper:Nt},default:{bodyMapper:k,headersMapper:xt}},queryParameters:[en,Is],urlParameters:[$r],headerParameters:[tn,rn,nn],isXML:true,serializer:Ao};const Eo={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:Dt},default:{bodyMapper:k,headersMapper:kt}},queryParameters:[en,Qs],urlParameters:[$r],headerParameters:[tn,rn,nn,ws],isXML:true,serializer:Ao};const Co={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:Tt},default:{bodyMapper:k,headersMapper:_t}},queryParameters:[en,xn],urlParameters:[$r],headerParameters:[tn,rn,nn,bn,Sn,Rn,Nn,ns,ss,os,as,As,cs,vs],isXML:true,serializer:Ao};const yo={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:Pt},default:{bodyMapper:k,headersMapper:Ot}},queryParameters:[en,Mn],urlParameters:[$r],headerParameters:[tn,rn,nn,Rn,Nn,Un,Hn,Gn,as,As,cs],isXML:true,serializer:Ao};const Io={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:Ft},default:{bodyMapper:k,headersMapper:Lt}},queryParameters:[en,Mn],urlParameters:[$r],headerParameters:[tn,rn,nn,Rn,Nn,qn,Vn,as,As,cs],isXML:true,serializer:Ao};const Bo={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:Mt},default:{bodyMapper:k,headersMapper:Ut}},queryParameters:[en,Mn],urlParameters:[$r],headerParameters:[tn,rn,nn,Rn,Nn,Vn,jn,as,As,cs],isXML:true,serializer:Ao};const bo={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:Ht},default:{bodyMapper:k,headersMapper:Gt}},queryParameters:[en,Mn],urlParameters:[$r],headerParameters:[tn,rn,nn,Rn,Nn,Vn,Jn,Wn,as,As,cs],isXML:true,serializer:Ao};const Qo={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{202:{headersMapper:qt},default:{bodyMapper:k,headersMapper:Vt}},queryParameters:[en,Mn],urlParameters:[$r],headerParameters:[tn,rn,nn,Rn,Nn,zn,Yn,as,As,cs],isXML:true,serializer:Ao};const wo={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:jt},default:{bodyMapper:k,headersMapper:zt}},queryParameters:[en,Ss],urlParameters:[$r],headerParameters:[tn,rn,nn,bn,Sn,Rn,Nn,ns,ss,os,as,As,cs,vs],isXML:true,serializer:Ao};const vo={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{202:{headersMapper:Yt},default:{bodyMapper:k,headersMapper:Jt}},queryParameters:[en],urlParameters:[$r],headerParameters:[tn,rn,nn,bn,Sn,Rn,Nn,as,As,cs,Bs,bs,Rs,Ns,xs,Ds,ks,Ts,_s,Ps,Os,Fs,Ls],isXML:true,serializer:Ao};const So={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{202:{headersMapper:Wt},default:{bodyMapper:k,headersMapper:Xt}},queryParameters:[en],urlParameters:[$r],headerParameters:[tn,rn,nn,bn,Sn,Rn,Nn,as,As,cs,Bs,bs,vs,Rs,xs,Ds,ks,Ts,Ps,Os,Ls,Ms,Us,Hs,Gs],isXML:true,serializer:Ao};const Ro={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{204:{headersMapper:$t},default:{bodyMapper:k,headersMapper:Kt}},queryParameters:[en,qs,js],urlParameters:[$r],headerParameters:[tn,rn,nn,Sn,Vs],isXML:true,serializer:Ao};const No={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:Zt},202:{headersMapper:Zt},default:{bodyMapper:k,headersMapper:er}},queryParameters:[en,Kn,Zn,zs],urlParameters:[$r],headerParameters:[tn,rn,nn,Sn,cs,Ns,Ys],isXML:true,serializer:Ao};const xo={path:"/{containerName}/{blob}",httpMethod:"GET",responses:{200:{headersMapper:tr},default:{bodyMapper:k,headersMapper:rr}},queryParameters:[Zr,gn],urlParameters:[$r],headerParameters:[tn,nn],isXML:true,serializer:Ao};const Do={path:"/{containerName}/{blob}",httpMethod:"POST",responses:{200:{bodyMapper:{type:{name:"Stream"},serializedName:"parsedResponse"},headersMapper:nr},206:{bodyMapper:{type:{name:"Stream"},serializedName:"parsedResponse"},headersMapper:nr},default:{bodyMapper:k,headersMapper:sr}},requestBody:Js,queryParameters:[en,Kn,Ws],urlParameters:[$r],headerParameters:[Jr,Xr,tn,rn,Sn,Rn,Nn,ns,ss,os,as,As,cs],isXML:true,contentType:"application/xml; charset=utf-8",mediaType:"xml",serializer:Ao};const ko={path:"/{containerName}/{blob}",httpMethod:"GET",responses:{200:{bodyMapper:q,headersMapper:ir},default:{bodyMapper:k,headersMapper:or}},queryParameters:[en,Kn,Zn,Xs],urlParameters:[$r],headerParameters:[tn,rn,nn,Sn,cs],isXML:true,serializer:Ao};const To={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{204:{headersMapper:ar},default:{bodyMapper:k,headersMapper:Ar}},requestBody:$s,queryParameters:[en,Zn,Xs],urlParameters:[$r],headerParameters:[Jr,Xr,tn,rn,Sn,cs,Ks,Zs],isXML:true,contentType:"application/xml; charset=utf-8",mediaType:"xml",serializer:Ao};class PageBlob{constructor(r){this.client=r}create(r,s,i){const a={contentLength:r,blobContentLength:s,options:B.operationOptionsToRequestOptionsBase(i||{})};return this.client.sendOperationRequest(a,Oo)}uploadPages(r,s,i){const a={contentLength:r,body:s,options:B.operationOptionsToRequestOptionsBase(i||{})};return this.client.sendOperationRequest(a,Fo)}clearPages(r,s){const i={contentLength:r,options:B.operationOptionsToRequestOptionsBase(s||{})};return this.client.sendOperationRequest(i,Lo)}uploadPagesFromURL(r,s,i,a,A){const c={sourceUrl:r,sourceRange:s,contentLength:i,range:a,options:B.operationOptionsToRequestOptionsBase(A||{})};return this.client.sendOperationRequest(c,Mo)}getPageRanges(r){const s={options:B.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(s,Uo)}getPageRangesDiff(r){const s={options:B.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(s,Ho)}resize(r,s){const i={blobContentLength:r,options:B.operationOptionsToRequestOptionsBase(s||{})};return this.client.sendOperationRequest(i,Go)}updateSequenceNumber(r,s){const i={sequenceNumberAction:r,options:B.operationOptionsToRequestOptionsBase(s||{})};return this.client.sendOperationRequest(i,qo)}copyIncremental(r,s){const i={copySource:r,options:B.operationOptionsToRequestOptionsBase(s||{})};return this.client.sendOperationRequest(i,Vo)}}const _o=new B.Serializer(Yr,true);const Po=new B.Serializer(Yr,false);const Oo={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:cr},default:{bodyMapper:k,headersMapper:lr}},queryParameters:[en],urlParameters:[$r],headerParameters:[tn,rn,nn,En,bn,Sn,Rn,Nn,ns,ss,os,as,As,cs,hs,ms,fs,Es,Cs,ys,Bs,bs,vs,Rs,Os,Ls,ei,ti,ri],isXML:true,serializer:_o};const Fo={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:dr},default:{bodyMapper:k,headersMapper:ur}},requestBody:si,queryParameters:[en,oi],urlParameters:[$r],headerParameters:[tn,rn,En,Sn,Rn,Nn,es,ns,ss,os,as,As,cs,vs,Ks,Zs,ni,ii,ai,Ai,ci,li],mediaType:"binary",serializer:Po};const Lo={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:pr},default:{bodyMapper:k,headersMapper:gr}},queryParameters:[en,oi],urlParameters:[$r],headerParameters:[tn,rn,nn,En,Sn,Rn,Nn,es,ns,ss,os,as,As,cs,vs,Ai,ci,li,di],isXML:true,serializer:_o};const Mo={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:hr},default:{bodyMapper:k,headersMapper:mr}},queryParameters:[en,oi],urlParameters:[$r],headerParameters:[tn,rn,nn,En,Sn,Rn,Nn,ns,ss,os,as,As,cs,vs,xs,Ds,ks,Ts,Us,Hs,ai,Ai,ci,li,ui,pi,gi,hi],isXML:true,serializer:_o};const Uo={path:"/{containerName}/{blob}",httpMethod:"GET",responses:{200:{bodyMapper:se,headersMapper:fr},default:{bodyMapper:k,headersMapper:Er}},queryParameters:[en,cn,ln,Kn,mi],urlParameters:[$r],headerParameters:[tn,rn,nn,Sn,Rn,Nn,es,as,As,cs],isXML:true,serializer:_o};const Ho={path:"/{containerName}/{blob}",httpMethod:"GET",responses:{200:{bodyMapper:se,headersMapper:Cr},default:{bodyMapper:k,headersMapper:yr}},queryParameters:[en,cn,ln,Kn,mi,fi],urlParameters:[$r],headerParameters:[tn,rn,nn,Sn,Rn,Nn,es,as,As,cs,Ei],isXML:true,serializer:_o};const Go={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:Ir},default:{bodyMapper:k,headersMapper:Br}},queryParameters:[Zr,en],urlParameters:[$r],headerParameters:[tn,rn,nn,Sn,Rn,Nn,ns,ss,os,as,As,cs,vs,ti],isXML:true,serializer:_o};const qo={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:br},default:{bodyMapper:k,headersMapper:Qr}},queryParameters:[Zr,en],urlParameters:[$r],headerParameters:[tn,rn,nn,Sn,Rn,Nn,as,As,cs,ri,Ci],isXML:true,serializer:_o};const Vo={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{202:{headersMapper:wr},default:{bodyMapper:k,headersMapper:vr}},queryParameters:[en,yi],urlParameters:[$r],headerParameters:[tn,rn,nn,Rn,Nn,as,As,cs,Ps],isXML:true,serializer:_o};class AppendBlob{constructor(r){this.client=r}create(r,s){const i={contentLength:r,options:B.operationOptionsToRequestOptionsBase(s||{})};return this.client.sendOperationRequest(i,Yo)}appendBlock(r,s,i){const a={contentLength:r,body:s,options:B.operationOptionsToRequestOptionsBase(i||{})};return this.client.sendOperationRequest(a,Jo)}appendBlockFromUrl(r,s,i){const a={sourceUrl:r,contentLength:s,options:B.operationOptionsToRequestOptionsBase(i||{})};return this.client.sendOperationRequest(a,Wo)}seal(r){const s={options:B.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(s,Xo)}}const jo=new B.Serializer(Yr,true);const zo=new B.Serializer(Yr,false);const Yo={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:Sr},default:{bodyMapper:k,headersMapper:Rr}},queryParameters:[en],urlParameters:[$r],headerParameters:[tn,rn,nn,En,bn,Sn,Rn,Nn,ns,ss,os,as,As,cs,hs,ms,fs,Es,Cs,ys,Bs,bs,vs,Os,Ls,Ii],isXML:true,serializer:jo};const Jo={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:Nr},default:{bodyMapper:k,headersMapper:xr}},requestBody:si,queryParameters:[en,Bi],urlParameters:[$r],headerParameters:[tn,rn,En,Sn,Rn,Nn,ns,ss,os,as,As,cs,vs,Ks,Zs,ni,ii,bi,Qi],mediaType:"binary",serializer:zo};const Wo={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:Dr},default:{bodyMapper:k,headersMapper:kr}},queryParameters:[en,Bi],urlParameters:[$r],headerParameters:[tn,rn,nn,En,Sn,Rn,Nn,ns,ss,os,as,As,cs,vs,xs,Ds,ks,Ts,Us,Hs,Ks,ui,gi,bi,Qi,wi],isXML:true,serializer:jo};const Xo={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:Tr},default:{bodyMapper:k,headersMapper:_r}},queryParameters:[en,vi],urlParameters:[$r],headerParameters:[tn,rn,nn,Sn,Rn,Nn,as,As,Qi],isXML:true,serializer:jo};class BlockBlob{constructor(r){this.client=r}upload(r,s,i){const a={contentLength:r,body:s,options:B.operationOptionsToRequestOptionsBase(i||{})};return this.client.sendOperationRequest(a,Zo)}putBlobFromUrl(r,s,i){const a={contentLength:r,copySource:s,options:B.operationOptionsToRequestOptionsBase(i||{})};return this.client.sendOperationRequest(a,ea)}stageBlock(r,s,i,a){const A={blockId:r,contentLength:s,body:i,options:B.operationOptionsToRequestOptionsBase(a||{})};return this.client.sendOperationRequest(A,ta)}stageBlockFromURL(r,s,i,a){const A={blockId:r,contentLength:s,sourceUrl:i,options:B.operationOptionsToRequestOptionsBase(a||{})};return this.client.sendOperationRequest(A,ra)}commitBlockList(r,s){const i={blocks:r,options:B.operationOptionsToRequestOptionsBase(s||{})};return this.client.sendOperationRequest(i,na)}getBlockList(r,s){const i={listType:r,options:B.operationOptionsToRequestOptionsBase(s||{})};return this.client.sendOperationRequest(i,sa)}}const $o=new B.Serializer(Yr,true);const Ko=new B.Serializer(Yr,false);const Zo={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:Pr},default:{bodyMapper:k,headersMapper:Or}},requestBody:si,queryParameters:[en],urlParameters:[$r],headerParameters:[tn,rn,En,bn,Sn,Rn,Nn,ns,ss,os,as,As,cs,hs,ms,fs,Es,Cs,ys,Bs,bs,vs,Rs,Os,Ls,Ks,Zs,ni,ii,Si],mediaType:"binary",serializer:Ko};const ea={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:Fr},default:{bodyMapper:k,headersMapper:Lr}},queryParameters:[en],urlParameters:[$r],headerParameters:[tn,rn,nn,En,bn,Sn,Rn,Nn,ns,ss,os,as,As,cs,hs,ms,fs,Es,Cs,ys,vs,Rs,xs,Ds,ks,Ts,_s,Ps,Os,Us,Hs,Gs,Ks,Si,Ri],isXML:true,serializer:$o};const ta={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:Mr},default:{bodyMapper:k,headersMapper:Ur}},requestBody:si,queryParameters:[en,Ni,xi],urlParameters:[$r],headerParameters:[tn,rn,En,Sn,ns,ss,os,vs,Ks,Zs,ni,ii],mediaType:"binary",serializer:Ko};const ra={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:Hr},default:{bodyMapper:k,headersMapper:Gr}},queryParameters:[en,Ni,xi],urlParameters:[$r],headerParameters:[tn,rn,nn,En,Sn,ns,ss,os,vs,xs,Ds,ks,Ts,Us,Hs,ui,gi,wi],isXML:true,serializer:$o};const na={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:qr},default:{bodyMapper:k,headersMapper:Vr}},requestBody:Di,queryParameters:[en,ki],urlParameters:[$r],headerParameters:[Jr,Xr,tn,rn,bn,Sn,Rn,Nn,ns,ss,os,as,As,cs,hs,ms,fs,Es,Cs,ys,Bs,bs,vs,Rs,Os,Ls,Ks,Zs],isXML:true,contentType:"application/xml; charset=utf-8",mediaType:"xml",serializer:$o};const sa={path:"/{containerName}/{blob}",httpMethod:"GET",responses:{200:{bodyMapper:re,headersMapper:jr},default:{bodyMapper:k,headersMapper:zr}},queryParameters:[en,Kn,ki,Ti],urlParameters:[$r],headerParameters:[tn,rn,nn,Sn,cs],isXML:true,serializer:$o};const ia=l.createClientLogger("storage-blob");const oa="12.18.0";const aa="2024-05-04";const Aa=256*1024*1024;const ca=4e3*1024*1024;const la=5e4;const da=8*1024*1024;const ua=4*1024*1024;const pa=5;const ga=100*1e3;const ha="https://storage.azure.com/.default";const ma={Parameters:{FORCE_BROWSER_NO_CACHE:"_",SIGNATURE:"sig",SNAPSHOT:"snapshot",VERSIONID:"versionid",TIMEOUT:"timeout"}};const fa={HTTP_ACCEPTED:202,HTTP_CONFLICT:409,HTTP_NOT_FOUND:404,HTTP_PRECON_FAILED:412,HTTP_RANGE_NOT_SATISFIABLE:416};const Ea={AUTHORIZATION:"Authorization",AUTHORIZATION_SCHEME:"Bearer",CONTENT_ENCODING:"Content-Encoding",CONTENT_ID:"Content-ID",CONTENT_LANGUAGE:"Content-Language",CONTENT_LENGTH:"Content-Length",CONTENT_MD5:"Content-Md5",CONTENT_TRANSFER_ENCODING:"Content-Transfer-Encoding",CONTENT_TYPE:"Content-Type",COOKIE:"Cookie",DATE:"date",IF_MATCH:"if-match",IF_MODIFIED_SINCE:"if-modified-since",IF_NONE_MATCH:"if-none-match",IF_UNMODIFIED_SINCE:"if-unmodified-since",PREFIX_FOR_STORAGE:"x-ms-",RANGE:"Range",USER_AGENT:"User-Agent",X_MS_CLIENT_REQUEST_ID:"x-ms-client-request-id",X_MS_COPY_SOURCE:"x-ms-copy-source",X_MS_DATE:"x-ms-date",X_MS_ERROR_CODE:"x-ms-error-code",X_MS_VERSION:"x-ms-version"};const Ca="";const ya="*";const Ia=1*1024*1024;const Ba=256;const ba=4*Ia;const Qa="\r\n";const wa="HTTP/1.1";const va="AES256";const Sa=`DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=http://127.0.0.1:10000/devstoreaccount1;`;const Ra=["Access-Control-Allow-Origin","Cache-Control","Content-Length","Content-Type","Date","Request-Id","traceparent","Transfer-Encoding","User-Agent","x-ms-client-request-id","x-ms-date","x-ms-error-code","x-ms-request-id","x-ms-return-client-request-id","x-ms-version","Accept-Ranges","Content-Disposition","Content-Encoding","Content-Language","Content-MD5","Content-Range","ETag","Last-Modified","Server","Vary","x-ms-content-crc64","x-ms-copy-action","x-ms-copy-completion-time","x-ms-copy-id","x-ms-copy-progress","x-ms-copy-status","x-ms-has-immutability-policy","x-ms-has-legal-hold","x-ms-lease-state","x-ms-lease-status","x-ms-range","x-ms-request-server-encrypted","x-ms-server-encrypted","x-ms-snapshot","x-ms-source-range","If-Match","If-Modified-Since","If-None-Match","If-Unmodified-Since","x-ms-access-tier","x-ms-access-tier-change-time","x-ms-access-tier-inferred","x-ms-account-kind","x-ms-archive-status","x-ms-blob-append-offset","x-ms-blob-cache-control","x-ms-blob-committed-block-count","x-ms-blob-condition-appendpos","x-ms-blob-condition-maxsize","x-ms-blob-content-disposition","x-ms-blob-content-encoding","x-ms-blob-content-language","x-ms-blob-content-length","x-ms-blob-content-md5","x-ms-blob-content-type","x-ms-blob-public-access","x-ms-blob-sequence-number","x-ms-blob-type","x-ms-copy-destination-snapshot","x-ms-creation-time","x-ms-default-encryption-scope","x-ms-delete-snapshots","x-ms-delete-type-permanent","x-ms-deny-encryption-scope-override","x-ms-encryption-algorithm","x-ms-if-sequence-number-eq","x-ms-if-sequence-number-le","x-ms-if-sequence-number-lt","x-ms-incremental-copy","x-ms-lease-action","x-ms-lease-break-period","x-ms-lease-duration","x-ms-lease-id","x-ms-lease-time","x-ms-page-write","x-ms-proposed-lease-id","x-ms-range-get-content-md5","x-ms-rehydrate-priority","x-ms-sequence-number-action","x-ms-sku-name","x-ms-source-content-md5","x-ms-source-if-match","x-ms-source-if-modified-since","x-ms-source-if-none-match","x-ms-source-if-unmodified-since","x-ms-tag-count","x-ms-encryption-key-sha256","x-ms-if-tags","x-ms-source-if-tags"];const Na=["comp","maxresults","rscc","rscd","rsce","rscl","rsct","se","si","sip","sp","spr","sr","srt","ss","st","sv","include","marker","prefix","copyid","restype","blockid","blocklisttype","delimiter","prevsnapshot","ske","skoid","sks","skt","sktid","skv","snapshot"];const xa="BlobUsesCustomerSpecifiedEncryption";const Da="BlobDoesNotUseCustomerSpecifiedEncryption";const ka=["10000","10001","10002","10003","10004","10100","10101","10102","10103","10104","11000","11001","11002","11003","11004","11100","11101","11102","11103","11104"];function escapeURLPath(r){const s=a.URLBuilder.parse(r);let i=s.getPath();i=i||"/";i=escape(i);s.setPath(i);return s.toString()}function getProxyUriFromDevConnString(r){let s="";if(r.search("DevelopmentStorageProxyUri=")!==-1){const i=r.split(";");for(const r of i){if(r.trim().startsWith("DevelopmentStorageProxyUri=")){s=r.trim().match("DevelopmentStorageProxyUri=(.*)")[1]}}}return s}function getValueInConnString(r,s){const i=r.split(";");for(const r of i){if(r.trim().startsWith(s)){return r.trim().match(s+"=(.*)")[1]}}return""}function extractConnectionStringParts(r){let s="";if(r.startsWith("UseDevelopmentStorage=true")){s=getProxyUriFromDevConnString(r);r=Sa}let i=getValueInConnString(r,"BlobEndpoint");i=i.endsWith("/")?i.slice(0,-1):i;if(r.search("DefaultEndpointsProtocol=")!==-1&&r.search("AccountKey=")!==-1){let a="";let A="";let c=Buffer.from("accountKey","base64");let l="";A=getValueInConnString(r,"AccountName");c=Buffer.from(getValueInConnString(r,"AccountKey"),"base64");if(!i){a=getValueInConnString(r,"DefaultEndpointsProtocol");const s=a.toLowerCase();if(s!=="https"&&s!=="http"){throw new Error("Invalid DefaultEndpointsProtocol in the provided Connection String. Expecting 'https' or 'http'")}l=getValueInConnString(r,"EndpointSuffix");if(!l){throw new Error("Invalid EndpointSuffix in the provided Connection String")}i=`${a}://${A}.blob.${l}`}if(!A){throw new Error("Invalid AccountName in the provided Connection String")}else if(c.length===0){throw new Error("Invalid AccountKey in the provided Connection String")}return{kind:"AccountConnString",url:i,accountName:A,accountKey:c,proxyUri:s}}else{const s=getValueInConnString(r,"SharedAccessSignature");let a=getValueInConnString(r,"AccountName");if(!a){a=getAccountNameFromUrl(i)}if(!i){throw new Error("Invalid BlobEndpoint in the provided SAS Connection String")}else if(!s){throw new Error("Invalid SharedAccessSignature in the provided SAS Connection String")}return{kind:"SASConnString",url:i,accountName:a,accountSas:s}}}function escape(r){return encodeURIComponent(r).replace(/%2F/g,"/").replace(/'/g,"%27").replace(/\+/g,"%20").replace(/%25/g,"%")}function appendToURLPath(r,s){const i=a.URLBuilder.parse(r);let A=i.getPath();A=A?A.endsWith("/")?`${A}${s}`:`${A}/${s}`:s;i.setPath(A);const c=new URL(i.toString());return c.toString()}function setURLParameter(r,s,i){const A=a.URLBuilder.parse(r);A.setQueryParameter(s,i);return A.toString()}function getURLParameter(r,s){const i=a.URLBuilder.parse(r);return i.getQueryParameterValue(s)}function setURLHost(r,s){const i=a.URLBuilder.parse(r);i.setHost(s);return i.toString()}function getURLPath(r){const s=a.URLBuilder.parse(r);return s.getPath()}function getURLScheme(r){const s=a.URLBuilder.parse(r);return s.getScheme()}function getURLPathAndQuery(r){const s=a.URLBuilder.parse(r);const i=s.getPath();if(!i){throw new RangeError("Invalid url without valid path.")}let A=s.getQuery()||"";A=A.trim();if(A!==""){A=A.startsWith("?")?A:`?${A}`}return`${i}${A}`}function getURLQueries(r){let s=a.URLBuilder.parse(r).getQuery();if(!s){return{}}s=s.trim();s=s.startsWith("?")?s.substr(1):s;let i=s.split("&");i=i.filter((r=>{const s=r.indexOf("=");const i=r.lastIndexOf("=");return s>0&&s===i&&iA){r=r.slice(0,A)}const c=r+padStart(s.toString(),i-r.length,"0");return base64encode(c)}async function delay(r,s,i){return new Promise(((a,A)=>{let c;const abortHandler=()=>{if(c!==undefined){clearTimeout(c)}A(i)};const resolveHandler=()=>{if(s!==undefined){s.removeEventListener("abort",abortHandler)}a()};c=setTimeout(resolveHandler,r);if(s!==undefined){s.addEventListener("abort",abortHandler)}}))}function padStart(r,s,i=" "){if(String.prototype.padStart){return r.padStart(s,i)}i=i||" ";if(r.length>s){return r}else{s=s-r.length;if(s>i.length){i+=i.repeat(s/i.length)}return i.slice(0,s)+r}}function iEqual(r,s){return r.toLocaleLowerCase()===s.toLocaleLowerCase()}function getAccountNameFromUrl(r){const s=a.URLBuilder.parse(r);let i;try{if(s.getHost().split(".")[1]==="blob"){i=s.getHost().split(".")[0]}else if(isIpEndpointStyle(s)){i=s.getPath().split("/")[1]}else{i=""}return i}catch(r){throw new Error("Unable to extract accountName with provided information.")}}function isIpEndpointStyle(r){if(r.getHost()===undefined){return false}const s=r.getHost()+(r.getPort()===undefined?"":":"+r.getPort());return/^.*:.*:.*$|^(localhost|host.docker.internal)(:[0-9]+)?$|^(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])(\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])){3}(:[0-9]+)?$/.test(s)||r.getPort()!==undefined&&ka.includes(r.getPort())}function toBlobTagsString(r){if(r===undefined){return undefined}const s=[];for(const i in r){if(Object.prototype.hasOwnProperty.call(r,i)){const a=r[i];s.push(`${encodeURIComponent(i)}=${encodeURIComponent(a)}`)}}return s.join("&")}function toBlobTags(r){if(r===undefined){return undefined}const s={blobTagSet:[]};for(const i in r){if(Object.prototype.hasOwnProperty.call(r,i)){const a=r[i];s.blobTagSet.push({key:i,value:a})}}return s}function toTags(r){if(r===undefined){return undefined}const s={};for(const i of r.blobTagSet){s[i.key]=i.value}return s}function toQuerySerialization(r){if(r===undefined){return undefined}switch(r.kind){case"csv":return{format:{type:"delimited",delimitedTextConfiguration:{columnSeparator:r.columnSeparator||",",fieldQuote:r.fieldQuote||"",recordSeparator:r.recordSeparator,escapeChar:r.escapeCharacter||"",headersPresent:r.hasHeaders||false}}};case"json":return{format:{type:"json",jsonTextConfiguration:{recordSeparator:r.recordSeparator}}};case"arrow":return{format:{type:"arrow",arrowConfiguration:{schema:r.schema}}};case"parquet":return{format:{type:"parquet"}};default:throw Error("Invalid BlobQueryTextConfiguration.")}}function parseObjectReplicationRecord(r){if(!r){return undefined}if("policy-id"in r){return undefined}const s=[];for(const i in r){const a=i.split("_");const A="or-";if(a[0].startsWith(A)){a[0]=a[0].substring(A.length)}const c={ruleId:a[1],replicationStatus:r[i]};const l=s.findIndex((r=>r.policyId===a[0]));if(l>-1){s[l].rules.push(c)}else{s.push({policyId:a[0],rules:[c]})}}return s}function attachCredential(r,s){r.credential=s;return r}function httpAuthorizationToString(r){return r?r.scheme+" "+r.value:undefined}function BlobNameToString(r){if(r.encoded){return decodeURIComponent(r.content)}else{return r.content}}function ConvertInternalResponseOfListBlobFlat(r){return Object.assign(Object.assign({},r),{segment:{blobItems:r.segment.blobItems.map((r=>{const s=Object.assign(Object.assign({},r),{name:BlobNameToString(r.name)});return s}))}})}function ConvertInternalResponseOfListBlobHierarchy(r){var s;return Object.assign(Object.assign({},r),{segment:{blobPrefixes:(s=r.segment.blobPrefixes)===null||s===void 0?void 0:s.map((r=>{const s=Object.assign(Object.assign({},r),{name:BlobNameToString(r.name)});return s})),blobItems:r.segment.blobItems.map((r=>{const s=Object.assign(Object.assign({},r),{name:BlobNameToString(r.name)});return s}))}})}function*ExtractPageRangeInfoItems(r){let s=[];let i=[];if(r.pageRange)s=r.pageRange;if(r.clearRange)i=r.clearRange;let a=0;let A=0;while(a=1?Math.floor(i.maxTries):Ta.maxTries,tryTimeoutInMs:i.tryTimeoutInMs&&i.tryTimeoutInMs>=0?i.tryTimeoutInMs:Ta.tryTimeoutInMs,retryDelayInMs:i.retryDelayInMs&&i.retryDelayInMs>=0?Math.min(i.retryDelayInMs,i.maxRetryDelayInMs?i.maxRetryDelayInMs:Ta.maxRetryDelayInMs):Ta.retryDelayInMs,maxRetryDelayInMs:i.maxRetryDelayInMs&&i.maxRetryDelayInMs>=0?i.maxRetryDelayInMs:Ta.maxRetryDelayInMs,secondaryHost:i.secondaryHost?i.secondaryHost:Ta.secondaryHost}}async sendRequest(r){return this.attemptSendRequest(r,false,1)}async attemptSendRequest(r,s,i){const a=r.clone();const A=s||!this.retryOptions.secondaryHost||!(r.method==="GET"||r.method==="HEAD"||r.method==="OPTIONS")||i%2===1;if(!A){a.url=setURLHost(a.url,this.retryOptions.secondaryHost)}if(this.retryOptions.tryTimeoutInMs){a.url=setURLParameter(a.url,ma.Parameters.TIMEOUT,Math.floor(this.retryOptions.tryTimeoutInMs/1e3).toString())}let c;try{ia.info(`RetryPolicy: =====> Try=${i} ${A?"Primary":"Secondary"}`);c=await this._nextPolicy.sendRequest(a);if(!this.shouldRetry(A,i,c)){return c}s=s||!A&&c.status===404}catch(r){ia.error(`RetryPolicy: Caught error, message: ${r.message}, code: ${r.code}`);if(!this.shouldRetry(A,i,c,r)){throw r}}await this.delay(A,i,r.abortSignal);return this.attemptSendRequest(r,s,++i)}shouldRetry(r,s,i,a){if(s>=this.retryOptions.maxTries){ia.info(`RetryPolicy: Attempt(s) ${s} >= maxTries ${this.retryOptions.maxTries}, no further try.`);return false}const A=["ETIMEDOUT","ESOCKETTIMEDOUT","ECONNREFUSED","ECONNRESET","ENOENT","ENOTFOUND","TIMEOUT","EPIPE","REQUEST_SEND_ERROR"];if(a){for(const r of A){if(a.name.toUpperCase().includes(r)||a.message.toUpperCase().includes(r)||a.code&&a.code.toString().toUpperCase()===r){ia.info(`RetryPolicy: Network error ${r} found, will retry.`);return true}}}if(i||a){const s=i?i.status:a?a.statusCode:0;if(!r&&s===404){ia.info(`RetryPolicy: Secondary access with 404, will retry.`);return true}if(s===503||s===500){ia.info(`RetryPolicy: Will retry for status code ${s}.`);return true}}if((a===null||a===void 0?void 0:a.code)==="PARSE_ERROR"&&(a===null||a===void 0?void 0:a.message.startsWith(`Error "Error: Unclosed root tag`))){ia.info("RetryPolicy: Incomplete XML response likely due to service timeout, will retry.");return true}return false}async delay(r,i,a){let A=0;if(r){switch(this.retryOptions.retryPolicyType){case s.StorageRetryPolicyType.EXPONENTIAL:A=Math.min((Math.pow(2,i-1)-1)*this.retryOptions.retryDelayInMs,this.retryOptions.maxRetryDelayInMs);break;case s.StorageRetryPolicyType.FIXED:A=this.retryOptions.retryDelayInMs;break}}else{A=Math.random()*1e3}ia.info(`RetryPolicy: Delay for ${A}ms`);return delay(A,a,_a)}}class StorageRetryPolicyFactory{constructor(r){this.retryOptions=r}create(r,s){return new StorageRetryPolicy(r,s,this.retryOptions)}}class CredentialPolicy extends a.BaseRequestPolicy{sendRequest(r){return this._nextPolicy.sendRequest(this.signRequest(r))}signRequest(r){return r}}class AnonymousCredentialPolicy extends CredentialPolicy{constructor(r,s){super(r,s)}}class Credential{create(r,s){throw new Error("Method should be implemented in children classes.")}}class AnonymousCredential extends Credential{create(r,s){return new AnonymousCredentialPolicy(r,s)}}class TelemetryPolicy extends a.BaseRequestPolicy{constructor(r,s,i){super(r,s);this.telemetry=i}async sendRequest(r){if(a.isNode){if(!r.headers){r.headers=new a.HttpHeaders}if(!r.headers.get(Ea.USER_AGENT)){r.headers.set(Ea.USER_AGENT,this.telemetry)}}return this._nextPolicy.sendRequest(r)}}class TelemetryPolicyFactory{constructor(r){const s=[];if(a.isNode){if(r){const i=r.userAgentPrefix||"";if(i.length>0&&s.indexOf(i)===-1){s.push(i)}}const i=`azsdk-js-storageblob/${oa}`;if(s.indexOf(i)===-1){s.push(i)}let a=`(NODE-VERSION ${process.version})`;if(b){a=`(NODE-VERSION ${process.version}; ${b.type()} ${b.release()})`}if(s.indexOf(a)===-1){s.push(a)}}this.telemetryString=s.join(" ")}create(r,s){return new TelemetryPolicy(r,s,this.telemetryString)}}const Pa=new a.DefaultHttpClient;function getCachedDefaultHttpClient(){return Pa}const Oa={DefaultScope:"/.default",HeaderConstants:{AUTHORIZATION:"authorization"}};const Fa={forcedRefreshWindowInMs:1e3,retryIntervalInMs:3e3,refreshWindowInMs:1e3*60*2};async function beginRefresh(r,s,i){async function tryGetAccessToken(){if(Date.now()r.getToken(s,i);a=beginRefresh(tryGetAccessToken,c.retryIntervalInMs,(d=A===null||A===void 0?void 0:A.expiresOnTimestamp)!==null&&d!==void 0?d:Date.now()).then((r=>{a=null;A=r;return A})).catch((r=>{a=null;A=null;throw r}))}return a}return async r=>{if(l.mustRefresh)return refresh(r);if(l.shouldRefresh){refresh(r)}return A}}function getChallenge(r){const s=r.headers.get("WWW-Authenticate");if(r.status===401&&s){return s}return}function parseChallenge(r){const s=r.slice("Bearer ".length);const i=`${s.trim()} `.split(" ").filter((r=>r));const a=i.map((r=>(([r,s])=>({[r]:s}))(r.trim().split("="))));return a.reduce(((r,s)=>Object.assign(Object.assign({},r),s)),{})}function storageBearerTokenChallengeAuthenticationPolicy(r,s){let i=createTokenCycler(r,s);class StorageBearerTokenChallengeAuthenticationPolicy extends a.BaseRequestPolicy{constructor(r,s){super(r,s)}async sendRequest(s){if(!s.url.toLowerCase().startsWith("https://")){throw new Error("Bearer token authentication is not permitted for non-TLS protected (non-https) URLs.")}const A=i;const c=(await A({abortSignal:s.abortSignal,tracingOptions:{tracingContext:s.tracingContext}})).token;s.headers.set(Oa.HeaderConstants.AUTHORIZATION,`Bearer ${c}`);const l=await this._nextPolicy.sendRequest(s);if((l===null||l===void 0?void 0:l.status)===401){const A=getChallenge(l);if(A){const c=parseChallenge(A);const l=c.resource_id+Oa.DefaultScope;const d=a.URLBuilder.parse(c.authorization_uri);const u=d.getPath().split("/");const p=u[1];const g=createTokenCycler(r,l);const h=(await g({abortSignal:s.abortSignal,tracingOptions:{tracingContext:s.tracingContext},tenantId:p})).token;i=g;s.headers.set(Oa.HeaderConstants.AUTHORIZATION,`Bearer ${h}`);return this._nextPolicy.sendRequest(s)}}return l}}return{create:(r,s)=>new StorageBearerTokenChallengeAuthenticationPolicy(r,s)}}function isPipelineLike(r){if(!r||typeof r!=="object"){return false}const s=r;return Array.isArray(s.factories)&&typeof s.options==="object"&&typeof s.toServiceClientOptions==="function"}class Pipeline{constructor(r,s={}){this.factories=r;this.options=Object.assign(Object.assign({},s),{httpClient:s.httpClient||getCachedDefaultHttpClient()})}toServiceClientOptions(){return{httpClient:this.options.httpClient,requestPolicyFactories:this.factories}}}function newPipeline(r,s={}){var i;if(r===undefined){r=new AnonymousCredential}const A=new TelemetryPolicyFactory(s.userAgentOptions);const c=[a.tracingPolicy({userAgent:A.telemetryString}),a.keepAlivePolicy(s.keepAliveOptions),A,a.generateClientRequestIdPolicy(),new StorageBrowserPolicyFactory,new StorageRetryPolicyFactory(s.retryOptions),a.deserializationPolicy(undefined,{xmlCharKey:"#"}),a.logPolicy({logger:ia.info,allowedHeaderNames:Ra,allowedQueryParameters:Na})];if(a.isNode){c.push(a.proxyPolicy(s.proxyOptions));c.push(a.disableResponseDecompressionPolicy())}c.push(a.isTokenCredential(r)?attachCredential(storageBearerTokenChallengeAuthenticationPolicy(r,(i=s.audience)!==null&&i!==void 0?i:ha),r):r);return new Pipeline(c,s)}class StorageSharedKeyCredentialPolicy extends CredentialPolicy{constructor(r,s,i){super(r,s);this.factory=i}signRequest(r){r.headers.set(Ea.X_MS_DATE,(new Date).toUTCString());if(r.body&&(typeof r.body==="string"||r.body!==undefined)&&r.body.length>0){r.headers.set(Ea.CONTENT_LENGTH,Buffer.byteLength(r.body))}const s=[r.method.toUpperCase(),this.getHeaderValueToSign(r,Ea.CONTENT_LANGUAGE),this.getHeaderValueToSign(r,Ea.CONTENT_ENCODING),this.getHeaderValueToSign(r,Ea.CONTENT_LENGTH),this.getHeaderValueToSign(r,Ea.CONTENT_MD5),this.getHeaderValueToSign(r,Ea.CONTENT_TYPE),this.getHeaderValueToSign(r,Ea.DATE),this.getHeaderValueToSign(r,Ea.IF_MODIFIED_SINCE),this.getHeaderValueToSign(r,Ea.IF_MATCH),this.getHeaderValueToSign(r,Ea.IF_NONE_MATCH),this.getHeaderValueToSign(r,Ea.IF_UNMODIFIED_SINCE),this.getHeaderValueToSign(r,Ea.RANGE)].join("\n")+"\n"+this.getCanonicalizedHeadersString(r)+this.getCanonicalizedResourceString(r);const i=this.factory.computeHMACSHA256(s);r.headers.set(Ea.AUTHORIZATION,`SharedKey ${this.factory.accountName}:${i}`);return r}getHeaderValueToSign(r,s){const i=r.headers.get(s);if(!i){return""}if(s===Ea.CONTENT_LENGTH&&i==="0"){return""}return i}getCanonicalizedHeadersString(r){let s=r.headers.headersArray().filter((r=>r.name.toLowerCase().startsWith(Ea.PREFIX_FOR_STORAGE)));s.sort(((r,s)=>r.name.toLowerCase().localeCompare(s.name.toLowerCase())));s=s.filter(((r,s,i)=>{if(s>0&&r.name.toLowerCase()===i[s-1].name.toLowerCase()){return false}return true}));let i="";s.forEach((r=>{i+=`${r.name.toLowerCase().trimRight()}:${r.value.trimLeft()}\n`}));return i}getCanonicalizedResourceString(r){const s=getURLPath(r.url)||"/";let i="";i+=`/${this.factory.accountName}${s}`;const a=getURLQueries(r.url);const A={};if(a){const r=[];for(const s in a){if(Object.prototype.hasOwnProperty.call(a,s)){const i=s.toLowerCase();A[i]=a[s];r.push(i)}}r.sort();for(const s of r){i+=`\n${s}:${decodeURIComponent(A[s])}`}}return i}}class StorageSharedKeyCredential extends Credential{constructor(r,s){super();this.accountName=r;this.accountKey=Buffer.from(s,"base64")}create(r,s){return new StorageSharedKeyCredentialPolicy(r,s,this)}computeHMACSHA256(r){return p.createHmac("sha256",this.accountKey).update(r,"utf8").digest("base64")}}const La="azure-storage-blob";const Ma="12.18.0";class StorageClientContext extends B.ServiceClient{constructor(r,s){if(r===undefined){throw new Error("'url' cannot be null")}if(!s){s={}}if(!s.userAgent){const r=B.getDefaultUserAgentValue();s.userAgent=`${La}/${Ma} ${r}`}super(undefined,s);this.requestContentType="application/json; charset=utf-8";this.baseUri=s.endpoint||"{url}";this.url=r;this.version=s.version||"2024-05-04"}}class StorageClient{constructor(r,s){this.url=escapeURLPath(r);this.accountName=getAccountNameFromUrl(r);this.pipeline=s;this.storageClientContext=new StorageClientContext(this.url,s.toServiceClientOptions());this.isHttps=iEqual(getURLScheme(this.url)||"","https");this.credential=new AnonymousCredential;for(const r of this.pipeline.factories){if(a.isNode&&r instanceof StorageSharedKeyCredential||r instanceof AnonymousCredential){this.credential=r}else if(a.isTokenCredential(r.credential)){this.credential=r.credential}}const i=this.storageClientContext;i.requestContentType=undefined}}const Ua=c.createSpanFunction({packagePrefix:"Azure.Storage.Blob",namespace:"Microsoft.Storage"});function convertTracingToRequestOptionsBase(r){var s,i;return{spanOptions:(s=r===null||r===void 0?void 0:r.tracingOptions)===null||s===void 0?void 0:s.spanOptions,tracingContext:(i=r===null||r===void 0?void 0:r.tracingOptions)===null||i===void 0?void 0:i.tracingContext}}class BlobSASPermissions{constructor(){this.read=false;this.add=false;this.create=false;this.write=false;this.delete=false;this.deleteVersion=false;this.tag=false;this.move=false;this.execute=false;this.setImmutabilityPolicy=false;this.permanentDelete=false}static parse(r){const s=new BlobSASPermissions;for(const i of r){switch(i){case"r":s.read=true;break;case"a":s.add=true;break;case"c":s.create=true;break;case"w":s.write=true;break;case"d":s.delete=true;break;case"x":s.deleteVersion=true;break;case"t":s.tag=true;break;case"m":s.move=true;break;case"e":s.execute=true;break;case"i":s.setImmutabilityPolicy=true;break;case"y":s.permanentDelete=true;break;default:throw new RangeError(`Invalid permission: ${i}`)}}return s}static from(r){const s=new BlobSASPermissions;if(r.read){s.read=true}if(r.add){s.add=true}if(r.create){s.create=true}if(r.write){s.write=true}if(r.delete){s.delete=true}if(r.deleteVersion){s.deleteVersion=true}if(r.tag){s.tag=true}if(r.move){s.move=true}if(r.execute){s.execute=true}if(r.setImmutabilityPolicy){s.setImmutabilityPolicy=true}if(r.permanentDelete){s.permanentDelete=true}return s}toString(){const r=[];if(this.read){r.push("r")}if(this.add){r.push("a")}if(this.create){r.push("c")}if(this.write){r.push("w")}if(this.delete){r.push("d")}if(this.deleteVersion){r.push("x")}if(this.tag){r.push("t")}if(this.move){r.push("m")}if(this.execute){r.push("e")}if(this.setImmutabilityPolicy){r.push("i")}if(this.permanentDelete){r.push("y")}return r.join("")}}class ContainerSASPermissions{constructor(){this.read=false;this.add=false;this.create=false;this.write=false;this.delete=false;this.deleteVersion=false;this.list=false;this.tag=false;this.move=false;this.execute=false;this.setImmutabilityPolicy=false;this.permanentDelete=false;this.filterByTags=false}static parse(r){const s=new ContainerSASPermissions;for(const i of r){switch(i){case"r":s.read=true;break;case"a":s.add=true;break;case"c":s.create=true;break;case"w":s.write=true;break;case"d":s.delete=true;break;case"l":s.list=true;break;case"t":s.tag=true;break;case"x":s.deleteVersion=true;break;case"m":s.move=true;break;case"e":s.execute=true;break;case"i":s.setImmutabilityPolicy=true;break;case"y":s.permanentDelete=true;break;case"f":s.filterByTags=true;break;default:throw new RangeError(`Invalid permission ${i}`)}}return s}static from(r){const s=new ContainerSASPermissions;if(r.read){s.read=true}if(r.add){s.add=true}if(r.create){s.create=true}if(r.write){s.write=true}if(r.delete){s.delete=true}if(r.list){s.list=true}if(r.deleteVersion){s.deleteVersion=true}if(r.tag){s.tag=true}if(r.move){s.move=true}if(r.execute){s.execute=true}if(r.setImmutabilityPolicy){s.setImmutabilityPolicy=true}if(r.permanentDelete){s.permanentDelete=true}if(r.filterByTags){s.filterByTags=true}return s}toString(){const r=[];if(this.read){r.push("r")}if(this.add){r.push("a")}if(this.create){r.push("c")}if(this.write){r.push("w")}if(this.delete){r.push("d")}if(this.deleteVersion){r.push("x")}if(this.list){r.push("l")}if(this.tag){r.push("t")}if(this.move){r.push("m")}if(this.execute){r.push("e")}if(this.setImmutabilityPolicy){r.push("i")}if(this.permanentDelete){r.push("y")}if(this.filterByTags){r.push("f")}return r.join("")}}class UserDelegationKeyCredential{constructor(r,s){this.accountName=r;this.userDelegationKey=s;this.key=Buffer.from(s.value,"base64")}computeHMACSHA256(r){return p.createHmac("sha256",this.key).update(r,"utf8").digest("base64")}}function ipRangeToString(r){return r.end?`${r.start}-${r.end}`:r.start}s.SASProtocol=void 0;(function(r){r["Https"]="https";r["HttpsAndHttp"]="https,http"})(s.SASProtocol||(s.SASProtocol={}));class SASQueryParameters{constructor(r,s,i,a,A,c,l,d,u,p,g,h,C,y,I,B,b,Q,w,v){this.version=r;this.signature=s;if(i!==undefined&&typeof i!=="string"){this.permissions=i.permissions;this.services=i.services;this.resourceTypes=i.resourceTypes;this.protocol=i.protocol;this.startsOn=i.startsOn;this.expiresOn=i.expiresOn;this.ipRangeInner=i.ipRange;this.identifier=i.identifier;this.encryptionScope=i.encryptionScope;this.resource=i.resource;this.cacheControl=i.cacheControl;this.contentDisposition=i.contentDisposition;this.contentEncoding=i.contentEncoding;this.contentLanguage=i.contentLanguage;this.contentType=i.contentType;if(i.userDelegationKey){this.signedOid=i.userDelegationKey.signedObjectId;this.signedTenantId=i.userDelegationKey.signedTenantId;this.signedStartsOn=i.userDelegationKey.signedStartsOn;this.signedExpiresOn=i.userDelegationKey.signedExpiresOn;this.signedService=i.userDelegationKey.signedService;this.signedVersion=i.userDelegationKey.signedVersion;this.preauthorizedAgentObjectId=i.preauthorizedAgentObjectId;this.correlationId=i.correlationId}}else{this.services=a;this.resourceTypes=A;this.expiresOn=d;this.permissions=i;this.protocol=c;this.startsOn=l;this.ipRangeInner=u;this.encryptionScope=v;this.identifier=p;this.resource=g;this.cacheControl=h;this.contentDisposition=C;this.contentEncoding=y;this.contentLanguage=I;this.contentType=B;if(b){this.signedOid=b.signedObjectId;this.signedTenantId=b.signedTenantId;this.signedStartsOn=b.signedStartsOn;this.signedExpiresOn=b.signedExpiresOn;this.signedService=b.signedService;this.signedVersion=b.signedVersion;this.preauthorizedAgentObjectId=Q;this.correlationId=w}}}get ipRange(){if(this.ipRangeInner){return{end:this.ipRangeInner.end,start:this.ipRangeInner.start}}return undefined}toString(){const r=["sv","ss","srt","spr","st","se","sip","si","ses","skoid","sktid","skt","ske","sks","skv","sr","sp","sig","rscc","rscd","rsce","rscl","rsct","saoid","scid"];const s=[];for(const i of r){switch(i){case"sv":this.tryAppendQueryParameter(s,i,this.version);break;case"ss":this.tryAppendQueryParameter(s,i,this.services);break;case"srt":this.tryAppendQueryParameter(s,i,this.resourceTypes);break;case"spr":this.tryAppendQueryParameter(s,i,this.protocol);break;case"st":this.tryAppendQueryParameter(s,i,this.startsOn?truncatedISO8061Date(this.startsOn,false):undefined);break;case"se":this.tryAppendQueryParameter(s,i,this.expiresOn?truncatedISO8061Date(this.expiresOn,false):undefined);break;case"sip":this.tryAppendQueryParameter(s,i,this.ipRange?ipRangeToString(this.ipRange):undefined);break;case"si":this.tryAppendQueryParameter(s,i,this.identifier);break;case"ses":this.tryAppendQueryParameter(s,i,this.encryptionScope);break;case"skoid":this.tryAppendQueryParameter(s,i,this.signedOid);break;case"sktid":this.tryAppendQueryParameter(s,i,this.signedTenantId);break;case"skt":this.tryAppendQueryParameter(s,i,this.signedStartsOn?truncatedISO8061Date(this.signedStartsOn,false):undefined);break;case"ske":this.tryAppendQueryParameter(s,i,this.signedExpiresOn?truncatedISO8061Date(this.signedExpiresOn,false):undefined);break;case"sks":this.tryAppendQueryParameter(s,i,this.signedService);break;case"skv":this.tryAppendQueryParameter(s,i,this.signedVersion);break;case"sr":this.tryAppendQueryParameter(s,i,this.resource);break;case"sp":this.tryAppendQueryParameter(s,i,this.permissions);break;case"sig":this.tryAppendQueryParameter(s,i,this.signature);break;case"rscc":this.tryAppendQueryParameter(s,i,this.cacheControl);break;case"rscd":this.tryAppendQueryParameter(s,i,this.contentDisposition);break;case"rsce":this.tryAppendQueryParameter(s,i,this.contentEncoding);break;case"rscl":this.tryAppendQueryParameter(s,i,this.contentLanguage);break;case"rsct":this.tryAppendQueryParameter(s,i,this.contentType);break;case"saoid":this.tryAppendQueryParameter(s,i,this.preauthorizedAgentObjectId);break;case"scid":this.tryAppendQueryParameter(s,i,this.correlationId);break}}return s.join("&")}tryAppendQueryParameter(r,s,i){if(!i){return}s=encodeURIComponent(s);i=encodeURIComponent(i);if(s.length>0&&i.length>0){r.push(`${s}=${i}`)}}}function generateBlobSASQueryParameters(r,s,i){const a=r.version?r.version:aa;const A=s instanceof StorageSharedKeyCredential?s:undefined;let c;if(A===undefined&&i!==undefined){c=new UserDelegationKeyCredential(i,s)}if(A===undefined&&c===undefined){throw TypeError("Invalid sharedKeyCredential, userDelegationKey or accountName.")}if(a>="2020-12-06"){if(A!==undefined){return generateBlobSASQueryParameters20201206(r,A)}else{return generateBlobSASQueryParametersUDK20201206(r,c)}}if(a>="2018-11-09"){if(A!==undefined){return generateBlobSASQueryParameters20181109(r,A)}else{if(a>="2020-02-10"){return generateBlobSASQueryParametersUDK20200210(r,c)}else{return generateBlobSASQueryParametersUDK20181109(r,c)}}}if(a>="2015-04-05"){if(A!==undefined){return generateBlobSASQueryParameters20150405(r,A)}else{throw new RangeError("'version' must be >= '2018-11-09' when generating user delegation SAS using user delegation key.")}}throw new RangeError("'version' must be >= '2015-04-05'.")}function generateBlobSASQueryParameters20150405(r,s){r=SASSignatureValuesSanityCheckAndAutofill(r);if(!r.identifier&&!(r.permissions&&r.expiresOn)){throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided.")}let i="c";if(r.blobName){i="b"}let a;if(r.permissions){if(r.blobName){a=BlobSASPermissions.parse(r.permissions.toString()).toString()}else{a=ContainerSASPermissions.parse(r.permissions.toString()).toString()}}const A=[a?a:"",r.startsOn?truncatedISO8061Date(r.startsOn,false):"",r.expiresOn?truncatedISO8061Date(r.expiresOn,false):"",getCanonicalName(s.accountName,r.containerName,r.blobName),r.identifier,r.ipRange?ipRangeToString(r.ipRange):"",r.protocol?r.protocol:"",r.version,r.cacheControl?r.cacheControl:"",r.contentDisposition?r.contentDisposition:"",r.contentEncoding?r.contentEncoding:"",r.contentLanguage?r.contentLanguage:"",r.contentType?r.contentType:""].join("\n");const c=s.computeHMACSHA256(A);return new SASQueryParameters(r.version,c,a,undefined,undefined,r.protocol,r.startsOn,r.expiresOn,r.ipRange,r.identifier,i,r.cacheControl,r.contentDisposition,r.contentEncoding,r.contentLanguage,r.contentType)}function generateBlobSASQueryParameters20181109(r,s){r=SASSignatureValuesSanityCheckAndAutofill(r);if(!r.identifier&&!(r.permissions&&r.expiresOn)){throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided.")}let i="c";let a=r.snapshotTime;if(r.blobName){i="b";if(r.snapshotTime){i="bs"}else if(r.versionId){i="bv";a=r.versionId}}let A;if(r.permissions){if(r.blobName){A=BlobSASPermissions.parse(r.permissions.toString()).toString()}else{A=ContainerSASPermissions.parse(r.permissions.toString()).toString()}}const c=[A?A:"",r.startsOn?truncatedISO8061Date(r.startsOn,false):"",r.expiresOn?truncatedISO8061Date(r.expiresOn,false):"",getCanonicalName(s.accountName,r.containerName,r.blobName),r.identifier,r.ipRange?ipRangeToString(r.ipRange):"",r.protocol?r.protocol:"",r.version,i,a,r.cacheControl?r.cacheControl:"",r.contentDisposition?r.contentDisposition:"",r.contentEncoding?r.contentEncoding:"",r.contentLanguage?r.contentLanguage:"",r.contentType?r.contentType:""].join("\n");const l=s.computeHMACSHA256(c);return new SASQueryParameters(r.version,l,A,undefined,undefined,r.protocol,r.startsOn,r.expiresOn,r.ipRange,r.identifier,i,r.cacheControl,r.contentDisposition,r.contentEncoding,r.contentLanguage,r.contentType)}function generateBlobSASQueryParameters20201206(r,s){r=SASSignatureValuesSanityCheckAndAutofill(r);if(!r.identifier&&!(r.permissions&&r.expiresOn)){throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided.")}let i="c";let a=r.snapshotTime;if(r.blobName){i="b";if(r.snapshotTime){i="bs"}else if(r.versionId){i="bv";a=r.versionId}}let A;if(r.permissions){if(r.blobName){A=BlobSASPermissions.parse(r.permissions.toString()).toString()}else{A=ContainerSASPermissions.parse(r.permissions.toString()).toString()}}const c=[A?A:"",r.startsOn?truncatedISO8061Date(r.startsOn,false):"",r.expiresOn?truncatedISO8061Date(r.expiresOn,false):"",getCanonicalName(s.accountName,r.containerName,r.blobName),r.identifier,r.ipRange?ipRangeToString(r.ipRange):"",r.protocol?r.protocol:"",r.version,i,a,r.encryptionScope,r.cacheControl?r.cacheControl:"",r.contentDisposition?r.contentDisposition:"",r.contentEncoding?r.contentEncoding:"",r.contentLanguage?r.contentLanguage:"",r.contentType?r.contentType:""].join("\n");const l=s.computeHMACSHA256(c);return new SASQueryParameters(r.version,l,A,undefined,undefined,r.protocol,r.startsOn,r.expiresOn,r.ipRange,r.identifier,i,r.cacheControl,r.contentDisposition,r.contentEncoding,r.contentLanguage,r.contentType,undefined,undefined,undefined,r.encryptionScope)}function generateBlobSASQueryParametersUDK20181109(r,s){r=SASSignatureValuesSanityCheckAndAutofill(r);if(!r.permissions||!r.expiresOn){throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.")}let i="c";let a=r.snapshotTime;if(r.blobName){i="b";if(r.snapshotTime){i="bs"}else if(r.versionId){i="bv";a=r.versionId}}let A;if(r.permissions){if(r.blobName){A=BlobSASPermissions.parse(r.permissions.toString()).toString()}else{A=ContainerSASPermissions.parse(r.permissions.toString()).toString()}}const c=[A?A:"",r.startsOn?truncatedISO8061Date(r.startsOn,false):"",r.expiresOn?truncatedISO8061Date(r.expiresOn,false):"",getCanonicalName(s.accountName,r.containerName,r.blobName),s.userDelegationKey.signedObjectId,s.userDelegationKey.signedTenantId,s.userDelegationKey.signedStartsOn?truncatedISO8061Date(s.userDelegationKey.signedStartsOn,false):"",s.userDelegationKey.signedExpiresOn?truncatedISO8061Date(s.userDelegationKey.signedExpiresOn,false):"",s.userDelegationKey.signedService,s.userDelegationKey.signedVersion,r.ipRange?ipRangeToString(r.ipRange):"",r.protocol?r.protocol:"",r.version,i,a,r.cacheControl,r.contentDisposition,r.contentEncoding,r.contentLanguage,r.contentType].join("\n");const l=s.computeHMACSHA256(c);return new SASQueryParameters(r.version,l,A,undefined,undefined,r.protocol,r.startsOn,r.expiresOn,r.ipRange,r.identifier,i,r.cacheControl,r.contentDisposition,r.contentEncoding,r.contentLanguage,r.contentType,s.userDelegationKey)}function generateBlobSASQueryParametersUDK20200210(r,s){r=SASSignatureValuesSanityCheckAndAutofill(r);if(!r.permissions||!r.expiresOn){throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.")}let i="c";let a=r.snapshotTime;if(r.blobName){i="b";if(r.snapshotTime){i="bs"}else if(r.versionId){i="bv";a=r.versionId}}let A;if(r.permissions){if(r.blobName){A=BlobSASPermissions.parse(r.permissions.toString()).toString()}else{A=ContainerSASPermissions.parse(r.permissions.toString()).toString()}}const c=[A?A:"",r.startsOn?truncatedISO8061Date(r.startsOn,false):"",r.expiresOn?truncatedISO8061Date(r.expiresOn,false):"",getCanonicalName(s.accountName,r.containerName,r.blobName),s.userDelegationKey.signedObjectId,s.userDelegationKey.signedTenantId,s.userDelegationKey.signedStartsOn?truncatedISO8061Date(s.userDelegationKey.signedStartsOn,false):"",s.userDelegationKey.signedExpiresOn?truncatedISO8061Date(s.userDelegationKey.signedExpiresOn,false):"",s.userDelegationKey.signedService,s.userDelegationKey.signedVersion,r.preauthorizedAgentObjectId,undefined,r.correlationId,r.ipRange?ipRangeToString(r.ipRange):"",r.protocol?r.protocol:"",r.version,i,a,r.cacheControl,r.contentDisposition,r.contentEncoding,r.contentLanguage,r.contentType].join("\n");const l=s.computeHMACSHA256(c);return new SASQueryParameters(r.version,l,A,undefined,undefined,r.protocol,r.startsOn,r.expiresOn,r.ipRange,r.identifier,i,r.cacheControl,r.contentDisposition,r.contentEncoding,r.contentLanguage,r.contentType,s.userDelegationKey,r.preauthorizedAgentObjectId,r.correlationId)}function generateBlobSASQueryParametersUDK20201206(r,s){r=SASSignatureValuesSanityCheckAndAutofill(r);if(!r.permissions||!r.expiresOn){throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.")}let i="c";let a=r.snapshotTime;if(r.blobName){i="b";if(r.snapshotTime){i="bs"}else if(r.versionId){i="bv";a=r.versionId}}let A;if(r.permissions){if(r.blobName){A=BlobSASPermissions.parse(r.permissions.toString()).toString()}else{A=ContainerSASPermissions.parse(r.permissions.toString()).toString()}}const c=[A?A:"",r.startsOn?truncatedISO8061Date(r.startsOn,false):"",r.expiresOn?truncatedISO8061Date(r.expiresOn,false):"",getCanonicalName(s.accountName,r.containerName,r.blobName),s.userDelegationKey.signedObjectId,s.userDelegationKey.signedTenantId,s.userDelegationKey.signedStartsOn?truncatedISO8061Date(s.userDelegationKey.signedStartsOn,false):"",s.userDelegationKey.signedExpiresOn?truncatedISO8061Date(s.userDelegationKey.signedExpiresOn,false):"",s.userDelegationKey.signedService,s.userDelegationKey.signedVersion,r.preauthorizedAgentObjectId,undefined,r.correlationId,r.ipRange?ipRangeToString(r.ipRange):"",r.protocol?r.protocol:"",r.version,i,a,r.encryptionScope,r.cacheControl,r.contentDisposition,r.contentEncoding,r.contentLanguage,r.contentType].join("\n");const l=s.computeHMACSHA256(c);return new SASQueryParameters(r.version,l,A,undefined,undefined,r.protocol,r.startsOn,r.expiresOn,r.ipRange,r.identifier,i,r.cacheControl,r.contentDisposition,r.contentEncoding,r.contentLanguage,r.contentType,s.userDelegationKey,r.preauthorizedAgentObjectId,r.correlationId,r.encryptionScope)}function getCanonicalName(r,s,i){const a=[`/blob/${r}/${s}`];if(i){a.push(`/${i}`)}return a.join("")}function SASSignatureValuesSanityCheckAndAutofill(r){const s=r.version?r.version:aa;if(r.snapshotTime&&s<"2018-11-09"){throw RangeError("'version' must be >= '2018-11-09' when providing 'snapshotTime'.")}if(r.blobName===undefined&&r.snapshotTime){throw RangeError("Must provide 'blobName' when providing 'snapshotTime'.")}if(r.versionId&&s<"2019-10-10"){throw RangeError("'version' must be >= '2019-10-10' when providing 'versionId'.")}if(r.blobName===undefined&&r.versionId){throw RangeError("Must provide 'blobName' when providing 'versionId'.")}if(r.permissions&&r.permissions.setImmutabilityPolicy&&s<"2020-08-04"){throw RangeError("'version' must be >= '2020-08-04' when provided 'i' permission.")}if(r.permissions&&r.permissions.deleteVersion&&s<"2019-10-10"){throw RangeError("'version' must be >= '2019-10-10' when providing 'x' permission.")}if(r.permissions&&r.permissions.permanentDelete&&s<"2019-10-10"){throw RangeError("'version' must be >= '2019-10-10' when providing 'y' permission.")}if(r.permissions&&r.permissions.tag&&s<"2019-12-12"){throw RangeError("'version' must be >= '2019-12-12' when providing 't' permission.")}if(s<"2020-02-10"&&r.permissions&&(r.permissions.move||r.permissions.execute)){throw RangeError("'version' must be >= '2020-02-10' when providing the 'm' or 'e' permission.")}if(s<"2021-04-10"&&r.permissions&&r.permissions.filterByTags){throw RangeError("'version' must be >= '2021-04-10' when providing the 'f' permission.")}if(s<"2020-02-10"&&(r.preauthorizedAgentObjectId||r.correlationId)){throw RangeError("'version' must be >= '2020-02-10' when providing 'preauthorizedAgentObjectId' or 'correlationId'.")}if(r.encryptionScope&&s<"2020-12-06"){throw RangeError("'version' must be >= '2020-12-06' when provided 'encryptionScope' in SAS.")}r.version=s;return r}class BlobLeaseClient{constructor(r,s){const i=new StorageClientContext(r.url,r.pipeline.toServiceClientOptions());this._url=r.url;if(r.name===undefined){this._isContainer=true;this._containerOrBlobOperation=new Container(i)}else{this._isContainer=false;this._containerOrBlobOperation=new Blob$1(i)}if(!s){s=a.generateUuid()}this._leaseId=s}get leaseId(){return this._leaseId}get url(){return this._url}async acquireLease(r,s={}){var i,a,A,l,d,u;const{span:p,updatedOptions:g}=Ua("BlobLeaseClient-acquireLease",s);if(this._isContainer&&(((i=s.conditions)===null||i===void 0?void 0:i.ifMatch)&&((a=s.conditions)===null||a===void 0?void 0:a.ifMatch)!==Ca||((A=s.conditions)===null||A===void 0?void 0:A.ifNoneMatch)&&((l=s.conditions)===null||l===void 0?void 0:l.ifNoneMatch)!==Ca||((d=s.conditions)===null||d===void 0?void 0:d.tagConditions))){throw new RangeError("The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.")}try{return await this._containerOrBlobOperation.acquireLease(Object.assign({abortSignal:s.abortSignal,duration:r,modifiedAccessConditions:Object.assign(Object.assign({},s.conditions),{ifTags:(u=s.conditions)===null||u===void 0?void 0:u.tagConditions}),proposedLeaseId:this._leaseId},convertTracingToRequestOptionsBase(g)))}catch(r){p.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{p.end()}}async changeLease(r,s={}){var i,a,A,l,d,u;const{span:p,updatedOptions:g}=Ua("BlobLeaseClient-changeLease",s);if(this._isContainer&&(((i=s.conditions)===null||i===void 0?void 0:i.ifMatch)&&((a=s.conditions)===null||a===void 0?void 0:a.ifMatch)!==Ca||((A=s.conditions)===null||A===void 0?void 0:A.ifNoneMatch)&&((l=s.conditions)===null||l===void 0?void 0:l.ifNoneMatch)!==Ca||((d=s.conditions)===null||d===void 0?void 0:d.tagConditions))){throw new RangeError("The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.")}try{const i=await this._containerOrBlobOperation.changeLease(this._leaseId,r,Object.assign({abortSignal:s.abortSignal,modifiedAccessConditions:Object.assign(Object.assign({},s.conditions),{ifTags:(u=s.conditions)===null||u===void 0?void 0:u.tagConditions})},convertTracingToRequestOptionsBase(g)));this._leaseId=r;return i}catch(r){p.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{p.end()}}async releaseLease(r={}){var s,i,a,A,l,d;const{span:u,updatedOptions:p}=Ua("BlobLeaseClient-releaseLease",r);if(this._isContainer&&(((s=r.conditions)===null||s===void 0?void 0:s.ifMatch)&&((i=r.conditions)===null||i===void 0?void 0:i.ifMatch)!==Ca||((a=r.conditions)===null||a===void 0?void 0:a.ifNoneMatch)&&((A=r.conditions)===null||A===void 0?void 0:A.ifNoneMatch)!==Ca||((l=r.conditions)===null||l===void 0?void 0:l.tagConditions))){throw new RangeError("The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.")}try{return await this._containerOrBlobOperation.releaseLease(this._leaseId,Object.assign({abortSignal:r.abortSignal,modifiedAccessConditions:Object.assign(Object.assign({},r.conditions),{ifTags:(d=r.conditions)===null||d===void 0?void 0:d.tagConditions})},convertTracingToRequestOptionsBase(p)))}catch(r){u.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{u.end()}}async renewLease(r={}){var s,i,a,A,l,d;const{span:u,updatedOptions:p}=Ua("BlobLeaseClient-renewLease",r);if(this._isContainer&&(((s=r.conditions)===null||s===void 0?void 0:s.ifMatch)&&((i=r.conditions)===null||i===void 0?void 0:i.ifMatch)!==Ca||((a=r.conditions)===null||a===void 0?void 0:a.ifNoneMatch)&&((A=r.conditions)===null||A===void 0?void 0:A.ifNoneMatch)!==Ca||((l=r.conditions)===null||l===void 0?void 0:l.tagConditions))){throw new RangeError("The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.")}try{return await this._containerOrBlobOperation.renewLease(this._leaseId,Object.assign({abortSignal:r.abortSignal,modifiedAccessConditions:Object.assign(Object.assign({},r.conditions),{ifTags:(d=r.conditions)===null||d===void 0?void 0:d.tagConditions})},convertTracingToRequestOptionsBase(p)))}catch(r){u.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{u.end()}}async breakLease(r,s={}){var i,a,A,l,d,u;const{span:p,updatedOptions:g}=Ua("BlobLeaseClient-breakLease",s);if(this._isContainer&&(((i=s.conditions)===null||i===void 0?void 0:i.ifMatch)&&((a=s.conditions)===null||a===void 0?void 0:a.ifMatch)!==Ca||((A=s.conditions)===null||A===void 0?void 0:A.ifNoneMatch)&&((l=s.conditions)===null||l===void 0?void 0:l.ifNoneMatch)!==Ca||((d=s.conditions)===null||d===void 0?void 0:d.tagConditions))){throw new RangeError("The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.")}try{const i=Object.assign({abortSignal:s.abortSignal,breakPeriod:r,modifiedAccessConditions:Object.assign(Object.assign({},s.conditions),{ifTags:(u=s.conditions)===null||u===void 0?void 0:u.tagConditions})},convertTracingToRequestOptionsBase(g));return await this._containerOrBlobOperation.breakLease(i)}catch(r){p.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{p.end()}}}class RetriableReadableStream extends g.Readable{constructor(r,s,i,a,A={}){super({highWaterMark:A.highWaterMark});this.retries=0;this.sourceDataHandler=r=>{if(this.options.doInjectErrorOnce){this.options.doInjectErrorOnce=undefined;this.source.pause();this.source.removeAllListeners("data");this.source.emit("end");return}this.offset+=r.length;if(this.onProgress){this.onProgress({loadedBytes:this.offset-this.start})}if(!this.push(r)){this.source.pause()}};this.sourceErrorOrEndHandler=r=>{if(r&&r.name==="AbortError"){this.destroy(r);return}this.removeSourceEventHandlers();if(this.offset-1===this.end){this.push(null)}else if(this.offset<=this.end){if(this.retries{this.source=r;this.setSourceEventHandlers();return})).catch((r=>{this.destroy(r)}))}else{this.destroy(new Error(`Data corruption failure: received less data than required and reached maxRetires limitation. Received data offset: ${this.offset-1}, data needed offset: ${this.end}, retries: ${this.retries}, max retries: ${this.maxRetryRequests}`))}}else{this.destroy(new Error(`Data corruption failure: Received more data than original request, data needed offset is ${this.end}, received offset: ${this.offset-1}`))}};this.getter=s;this.source=r;this.start=i;this.offset=i;this.end=i+a-1;this.maxRetryRequests=A.maxRetryRequests&&A.maxRetryRequests>=0?A.maxRetryRequests:0;this.onProgress=A.onProgress;this.options=A;this.setSourceEventHandlers()}_read(){this.source.resume()}setSourceEventHandlers(){this.source.on("data",this.sourceDataHandler);this.source.on("end",this.sourceErrorOrEndHandler);this.source.on("error",this.sourceErrorOrEndHandler)}removeSourceEventHandlers(){this.source.removeListener("data",this.sourceDataHandler);this.source.removeListener("end",this.sourceErrorOrEndHandler);this.source.removeListener("error",this.sourceErrorOrEndHandler)}_destroy(r,s){this.removeSourceEventHandlers();this.source.destroy();s(r===null?undefined:r)}}class BlobDownloadResponse{constructor(r,s,i,a,A={}){this.originalResponse=r;this.blobDownloadStream=new RetriableReadableStream(this.originalResponse.readableStreamBody,s,i,a,A)}get acceptRanges(){return this.originalResponse.acceptRanges}get cacheControl(){return this.originalResponse.cacheControl}get contentDisposition(){return this.originalResponse.contentDisposition}get contentEncoding(){return this.originalResponse.contentEncoding}get contentLanguage(){return this.originalResponse.contentLanguage}get blobSequenceNumber(){return this.originalResponse.blobSequenceNumber}get blobType(){return this.originalResponse.blobType}get contentLength(){return this.originalResponse.contentLength}get contentMD5(){return this.originalResponse.contentMD5}get contentRange(){return this.originalResponse.contentRange}get contentType(){return this.originalResponse.contentType}get copyCompletedOn(){return this.originalResponse.copyCompletedOn}get copyId(){return this.originalResponse.copyId}get copyProgress(){return this.originalResponse.copyProgress}get copySource(){return this.originalResponse.copySource}get copyStatus(){return this.originalResponse.copyStatus}get copyStatusDescription(){return this.originalResponse.copyStatusDescription}get leaseDuration(){return this.originalResponse.leaseDuration}get leaseState(){return this.originalResponse.leaseState}get leaseStatus(){return this.originalResponse.leaseStatus}get date(){return this.originalResponse.date}get blobCommittedBlockCount(){return this.originalResponse.blobCommittedBlockCount}get etag(){return this.originalResponse.etag}get tagCount(){return this.originalResponse.tagCount}get errorCode(){return this.originalResponse.errorCode}get isServerEncrypted(){return this.originalResponse.isServerEncrypted}get blobContentMD5(){return this.originalResponse.blobContentMD5}get lastModified(){return this.originalResponse.lastModified}get lastAccessed(){return this.originalResponse.lastAccessed}get createdOn(){return this.originalResponse.createdOn}get metadata(){return this.originalResponse.metadata}get requestId(){return this.originalResponse.requestId}get clientRequestId(){return this.originalResponse.clientRequestId}get version(){return this.originalResponse.version}get versionId(){return this.originalResponse.versionId}get isCurrentVersion(){return this.originalResponse.isCurrentVersion}get encryptionKeySha256(){return this.originalResponse.encryptionKeySha256}get contentCrc64(){return this.originalResponse.contentCrc64}get objectReplicationDestinationPolicyId(){return this.originalResponse.objectReplicationDestinationPolicyId}get objectReplicationSourceProperties(){return this.originalResponse.objectReplicationSourceProperties}get isSealed(){return this.originalResponse.isSealed}get immutabilityPolicyExpiresOn(){return this.originalResponse.immutabilityPolicyExpiresOn}get immutabilityPolicyMode(){return this.originalResponse.immutabilityPolicyMode}get legalHold(){return this.originalResponse.legalHold}get contentAsBlob(){return this.originalResponse.blobBody}get readableStreamBody(){return a.isNode?this.blobDownloadStream:undefined}get _response(){return this.originalResponse._response}}const Ha=16;const Ga=new Uint8Array([79,98,106,1]);const qa="avro.codec";const Va="avro.schema";class AvroParser{static async readFixedBytes(r,s,i={}){const a=await r.read(s,{abortSignal:i.abortSignal});if(a.length!==s){throw new Error("Hit stream end.")}return a}static async readByte(r,s={}){const i=await AvroParser.readFixedBytes(r,1,s);return i[0]}static async readZigZagLong(r,s={}){let i=0;let a=0;let A,c,l;do{A=await AvroParser.readByte(r,s);c=A&128;i|=(A&127)<Number.MAX_SAFE_INTEGER){throw new Error("Integer overflow.")}return a}return i>>1^-(i&1)}static async readLong(r,s={}){return AvroParser.readZigZagLong(r,s)}static async readInt(r,s={}){return AvroParser.readZigZagLong(r,s)}static async readNull(){return null}static async readBoolean(r,s={}){const i=await AvroParser.readByte(r,s);if(i===1){return true}else if(i===0){return false}else{throw new Error("Byte was not a boolean.")}}static async readFloat(r,s={}){const i=await AvroParser.readFixedBytes(r,4,s);const a=new DataView(i.buffer,i.byteOffset,i.byteLength);return a.getFloat32(0,true)}static async readDouble(r,s={}){const i=await AvroParser.readFixedBytes(r,8,s);const a=new DataView(i.buffer,i.byteOffset,i.byteLength);return a.getFloat64(0,true)}static async readBytes(r,s={}){const i=await AvroParser.readLong(r,s);if(i<0){throw new Error("Bytes size was negative.")}return r.read(i,{abortSignal:s.abortSignal})}static async readString(r,s={}){const i=await AvroParser.readBytes(r,s);const a=new TextDecoder;return a.decode(i)}static async readMapPair(r,s,i={}){const a=await AvroParser.readString(r,i);const A=await s(r,i);return{key:a,value:A}}static async readMap(r,s,i={}){const readPairMethod=(r,i={})=>AvroParser.readMapPair(r,s,i);const a=await AvroParser.readArray(r,readPairMethod,i);const A={};for(const r of a){A[r.key]=r.value}return A}static async readArray(r,s,i={}){const a=[];for(let A=await AvroParser.readLong(r,i);A!==0;A=await AvroParser.readLong(r,i)){if(A<0){await AvroParser.readLong(r,i);A=-A}while(A--){const A=await s(r,i);a.push(A)}}return a}}var ja;(function(r){r["RECORD"]="record";r["ENUM"]="enum";r["ARRAY"]="array";r["MAP"]="map";r["UNION"]="union";r["FIXED"]="fixed"})(ja||(ja={}));var za;(function(r){r["NULL"]="null";r["BOOLEAN"]="boolean";r["INT"]="int";r["LONG"]="long";r["FLOAT"]="float";r["DOUBLE"]="double";r["BYTES"]="bytes";r["STRING"]="string"})(za||(za={}));class AvroType{static fromSchema(r){if(typeof r==="string"){return AvroType.fromStringSchema(r)}else if(Array.isArray(r)){return AvroType.fromArraySchema(r)}else{return AvroType.fromObjectSchema(r)}}static fromStringSchema(r){switch(r){case za.NULL:case za.BOOLEAN:case za.INT:case za.LONG:case za.FLOAT:case za.DOUBLE:case za.BYTES:case za.STRING:return new AvroPrimitiveType(r);default:throw new Error(`Unexpected Avro type ${r}`)}}static fromArraySchema(r){return new AvroUnionType(r.map(AvroType.fromSchema))}static fromObjectSchema(r){const s=r.type;try{return AvroType.fromStringSchema(s)}catch(r){}switch(s){case ja.RECORD:if(r.aliases){throw new Error(`aliases currently is not supported, schema: ${r}`)}if(!r.name){throw new Error(`Required attribute 'name' doesn't exist on schema: ${r}`)}const i={};if(!r.fields){throw new Error(`Required attribute 'fields' doesn't exist on schema: ${r}`)}for(const s of r.fields){i[s.name]=AvroType.fromSchema(s.type)}return new AvroRecordType(i,r.name);case ja.ENUM:if(r.aliases){throw new Error(`aliases currently is not supported, schema: ${r}`)}if(!r.symbols){throw new Error(`Required attribute 'symbols' doesn't exist on schema: ${r}`)}return new AvroEnumType(r.symbols);case ja.MAP:if(!r.values){throw new Error(`Required attribute 'values' doesn't exist on schema: ${r}`)}return new AvroMapType(AvroType.fromSchema(r.values));case ja.ARRAY:case ja.FIXED:default:throw new Error(`Unexpected Avro type ${s} in ${r}`)}}}class AvroPrimitiveType extends AvroType{constructor(r){super();this._primitive=r}read(r,s={}){switch(this._primitive){case za.NULL:return AvroParser.readNull();case za.BOOLEAN:return AvroParser.readBoolean(r,s);case za.INT:return AvroParser.readInt(r,s);case za.LONG:return AvroParser.readLong(r,s);case za.FLOAT:return AvroParser.readFloat(r,s);case za.DOUBLE:return AvroParser.readDouble(r,s);case za.BYTES:return AvroParser.readBytes(r,s);case za.STRING:return AvroParser.readString(r,s);default:throw new Error("Unknown Avro Primitive")}}}class AvroEnumType extends AvroType{constructor(r){super();this._symbols=r}async read(r,s={}){const i=await AvroParser.readInt(r,s);return this._symbols[i]}}class AvroUnionType extends AvroType{constructor(r){super();this._types=r}async read(r,s={}){const i=await AvroParser.readInt(r,s);return this._types[i].read(r,s)}}class AvroMapType extends AvroType{constructor(r){super();this._itemType=r}read(r,s={}){const readItemMethod=(r,s)=>this._itemType.read(r,s);return AvroParser.readMap(r,readItemMethod,s)}}class AvroRecordType extends AvroType{constructor(r,s){super();this._fields=r;this._name=s}async read(r,s={}){const i={};i["$schema"]=this._name;for(const a in this._fields){if(Object.prototype.hasOwnProperty.call(this._fields,a)){i[a]=await this._fields[a].read(r,s)}}return i}}function arraysEqual(r,s){if(r===s)return true;if(r==null||s==null)return false;if(r.length!==s.length)return false;for(let i=0;i0){for(let s=0;s0}parseObjects(r={}){return A.__asyncGenerator(this,arguments,(function*parseObjects_1(){if(!this._initialized){yield A.__await(this.initialize(r))}while(this.hasNext()){const s=yield A.__await(this._itemType.read(this._dataStream,{abortSignal:r.abortSignal}));this._itemsRemainingInBlock--;this._objectIndex++;if(this._itemsRemainingInBlock===0){const s=yield A.__await(AvroParser.readFixedBytes(this._dataStream,Ha,{abortSignal:r.abortSignal}));this._blockOffset=this._initialBlockOffset+this._dataStream.position;this._objectIndex=0;if(!arraysEqual(this._syncMarker,s)){throw new Error("Stream is not a valid Avro file.")}try{this._itemsRemainingInBlock=yield A.__await(AvroParser.readLong(this._dataStream,{abortSignal:r.abortSignal}))}catch(r){this._itemsRemainingInBlock=0}if(this._itemsRemainingInBlock>0){yield A.__await(AvroParser.readLong(this._dataStream,{abortSignal:r.abortSignal}))}}yield yield A.__await(s)}}))}}class AvroReadable{}const Ya=new d.AbortError("Reading from the avro stream was aborted.");class AvroReadableFromStream extends AvroReadable{constructor(r){super();this._readable=r;this._position=0}toUint8Array(r){if(typeof r==="string"){return Buffer.from(r)}return r}get position(){return this._position}async read(r,s={}){var i;if((i=s.abortSignal)===null||i===void 0?void 0:i.aborted){throw Ya}if(r<0){throw new Error(`size parameter should be positive: ${r}`)}if(r===0){return new Uint8Array}if(!this._readable.readable){throw new Error("Stream no longer readable.")}const a=this._readable.read(r);if(a){this._position+=a.length;return this.toUint8Array(a)}else{return new Promise(((i,a)=>{const cleanUp=()=>{this._readable.removeListener("readable",readableCallback);this._readable.removeListener("error",rejectCallback);this._readable.removeListener("end",rejectCallback);this._readable.removeListener("close",rejectCallback);if(s.abortSignal){s.abortSignal.removeEventListener("abort",abortHandler)}};const readableCallback=()=>{const s=this._readable.read(r);if(s){this._position+=s.length;cleanUp();i(this.toUint8Array(s))}};const rejectCallback=()=>{cleanUp();a()};const abortHandler=()=>{cleanUp();a(Ya)};this._readable.on("readable",readableCallback);this._readable.once("error",rejectCallback);this._readable.once("end",rejectCallback);this._readable.once("close",rejectCallback);if(s.abortSignal){s.abortSignal.addEventListener("abort",abortHandler)}}))}}}class BlobQuickQueryStream extends g.Readable{constructor(r,s={}){super();this.avroPaused=true;this.source=r;this.onProgress=s.onProgress;this.onError=s.onError;this.avroReader=new AvroReader(new AvroReadableFromStream(this.source));this.avroIter=this.avroReader.parseObjects({abortSignal:s.abortSignal})}_read(){if(this.avroPaused){this.readInternal().catch((r=>{this.emit("error",r)}))}}async readInternal(){this.avroPaused=false;let r;do{r=await this.avroIter.next();if(r.done){break}const s=r.value;const i=s.$schema;if(typeof i!=="string"){throw Error("Missing schema in avro record.")}switch(i){case"com.microsoft.azure.storage.queryBlobContents.resultData":{const r=s.data;if(r instanceof Uint8Array===false){throw Error("Invalid data in avro result record.")}if(!this.push(Buffer.from(r))){this.avroPaused=true}}break;case"com.microsoft.azure.storage.queryBlobContents.progress":{const r=s.bytesScanned;if(typeof r!=="number"){throw Error("Invalid bytesScanned in avro progress record.")}if(this.onProgress){this.onProgress({loadedBytes:r})}}break;case"com.microsoft.azure.storage.queryBlobContents.end":if(this.onProgress){const r=s.totalBytes;if(typeof r!=="number"){throw Error("Invalid totalBytes in avro end record.")}this.onProgress({loadedBytes:r})}this.push(null);break;case"com.microsoft.azure.storage.queryBlobContents.error":if(this.onError){const r=s.fatal;if(typeof r!=="boolean"){throw Error("Invalid fatal in avro error record.")}const i=s.name;if(typeof i!=="string"){throw Error("Invalid name in avro error record.")}const a=s.description;if(typeof a!=="string"){throw Error("Invalid description in avro error record.")}const A=s.position;if(typeof A!=="number"){throw Error("Invalid position in avro error record.")}this.onError({position:A,name:i,isFatal:r,description:a})}break;default:throw Error(`Unknown schema ${i} in avro progress record.`)}}while(!r.done&&!this.avroPaused)}}class BlobQueryResponse{constructor(r,s={}){this.originalResponse=r;this.blobDownloadStream=new BlobQuickQueryStream(this.originalResponse.readableStreamBody,s)}get acceptRanges(){return this.originalResponse.acceptRanges}get cacheControl(){return this.originalResponse.cacheControl}get contentDisposition(){return this.originalResponse.contentDisposition}get contentEncoding(){return this.originalResponse.contentEncoding}get contentLanguage(){return this.originalResponse.contentLanguage}get blobSequenceNumber(){return this.originalResponse.blobSequenceNumber}get blobType(){return this.originalResponse.blobType}get contentLength(){return this.originalResponse.contentLength}get contentMD5(){return this.originalResponse.contentMD5}get contentRange(){return this.originalResponse.contentRange}get contentType(){return this.originalResponse.contentType}get copyCompletedOn(){return undefined}get copyId(){return this.originalResponse.copyId}get copyProgress(){return this.originalResponse.copyProgress}get copySource(){return this.originalResponse.copySource}get copyStatus(){return this.originalResponse.copyStatus}get copyStatusDescription(){return this.originalResponse.copyStatusDescription}get leaseDuration(){return this.originalResponse.leaseDuration}get leaseState(){return this.originalResponse.leaseState}get leaseStatus(){return this.originalResponse.leaseStatus}get date(){return this.originalResponse.date}get blobCommittedBlockCount(){return this.originalResponse.blobCommittedBlockCount}get etag(){return this.originalResponse.etag}get errorCode(){return this.originalResponse.errorCode}get isServerEncrypted(){return this.originalResponse.isServerEncrypted}get blobContentMD5(){return this.originalResponse.blobContentMD5}get lastModified(){return this.originalResponse.lastModified}get metadata(){return this.originalResponse.metadata}get requestId(){return this.originalResponse.requestId}get clientRequestId(){return this.originalResponse.clientRequestId}get version(){return this.originalResponse.version}get encryptionKeySha256(){return this.originalResponse.encryptionKeySha256}get contentCrc64(){return this.originalResponse.contentCrc64}get blobBody(){return undefined}get readableStreamBody(){return a.isNode?this.blobDownloadStream:undefined}get _response(){return this.originalResponse._response}}s.BlockBlobTier=void 0;(function(r){r["Hot"]="Hot";r["Cool"]="Cool";r["Cold"]="Cold";r["Archive"]="Archive"})(s.BlockBlobTier||(s.BlockBlobTier={}));s.PremiumPageBlobTier=void 0;(function(r){r["P4"]="P4";r["P6"]="P6";r["P10"]="P10";r["P15"]="P15";r["P20"]="P20";r["P30"]="P30";r["P40"]="P40";r["P50"]="P50";r["P60"]="P60";r["P70"]="P70";r["P80"]="P80"})(s.PremiumPageBlobTier||(s.PremiumPageBlobTier={}));function toAccessTier(r){if(r===undefined){return undefined}return r}function ensureCpkIfSpecified(r,s){if(r&&!s){throw new RangeError("Customer-provided encryption key must be used over HTTPS.")}if(r&&!r.encryptionAlgorithm){r.encryptionAlgorithm=va}}s.StorageBlobAudience=void 0;(function(r){r["StorageOAuthScopes"]="https://storage.azure.com/.default";r["DiskComputeOAuthScopes"]="https://disk.compute.azure.com/.default"})(s.StorageBlobAudience||(s.StorageBlobAudience={}));function getBlobServiceAccountAudience(r){return`https://${r}.blob.core.windows.net/.default`}function rangeResponseFromModel(r){const s=(r._response.parsedBody.pageRange||[]).map((r=>({offset:r.start,count:r.end-r.start})));const i=(r._response.parsedBody.clearRange||[]).map((r=>({offset:r.start,count:r.end-r.start})));return Object.assign(Object.assign({},r),{pageRange:s,clearRange:i,_response:Object.assign(Object.assign({},r._response),{parsedBody:{pageRange:s,clearRange:i}})})}class BlobBeginCopyFromUrlPoller extends h.Poller{constructor(r){const{blobClient:s,copySource:i,intervalInMs:a=15e3,onProgress:A,resumeFrom:c,startCopyFromURLOptions:l}=r;let d;if(c){d=JSON.parse(c).state}const u=makeBlobBeginCopyFromURLPollOperation(Object.assign(Object.assign({},d),{blobClient:s,copySource:i,startCopyFromURLOptions:l}));super(u);if(typeof A==="function"){this.onProgress(A)}this.intervalInMs=a}delay(){return a.delay(this.intervalInMs)}}const Ja=async function cancel(r={}){const s=this.state;const{copyId:i}=s;if(s.isCompleted){return makeBlobBeginCopyFromURLPollOperation(s)}if(!i){s.isCancelled=true;return makeBlobBeginCopyFromURLPollOperation(s)}await s.blobClient.abortCopyFromURL(i,{abortSignal:r.abortSignal});s.isCancelled=true;return makeBlobBeginCopyFromURLPollOperation(s)};const Wa=async function update(r={}){const s=this.state;const{blobClient:i,copySource:a,startCopyFromURLOptions:A}=s;if(!s.isStarted){s.isStarted=true;const r=await i.startCopyFromURL(a,A);s.copyId=r.copyId;if(r.copyStatus==="success"){s.result=r;s.isCompleted=true}}else if(!s.isCompleted){try{const i=await s.blobClient.getProperties({abortSignal:r.abortSignal});const{copyStatus:a,copyProgress:A}=i;const c=s.copyProgress;if(A){s.copyProgress=A}if(a==="pending"&&A!==c&&typeof r.fireProgress==="function"){r.fireProgress(s)}else if(a==="success"){s.result=i;s.isCompleted=true}else if(a==="failed"){s.error=new Error(`Blob copy failed with reason: "${i.copyStatusDescription||"unknown"}"`);s.isCompleted=true}}catch(r){s.error=r;s.isCompleted=true}}return makeBlobBeginCopyFromURLPollOperation(s)};const Xa=function toString(){return JSON.stringify({state:this.state},((r,s)=>{if(r==="blobClient"){return undefined}return s}))};function makeBlobBeginCopyFromURLPollOperation(r){return{state:Object.assign({},r),cancel:Ja,toString:Xa,update:Wa}}function rangeToString(r){if(r.offset<0){throw new RangeError(`Range.offset cannot be smaller than 0.`)}if(r.count&&r.count<=0){throw new RangeError(`Range.count must be larger than 0. Leave it undefined if you want a range from offset to the end.`)}return r.count?`bytes=${r.offset}-${r.offset+r.count-1}`:`bytes=${r.offset}-`}var $a;(function(r){r[r["Good"]=0]="Good";r[r["Error"]=1]="Error"})($a||($a={}));class Batch{constructor(r=5){this.actives=0;this.completed=0;this.offset=0;this.operations=[];this.state=$a.Good;if(r<1){throw new RangeError("concurrency must be larger than 0")}this.concurrency=r;this.emitter=new C.EventEmitter}addOperation(r){this.operations.push((async()=>{try{this.actives++;await r();this.actives--;this.completed++;this.parallelExecute()}catch(r){this.emitter.emit("error",r)}}))}async do(){if(this.operations.length===0){return Promise.resolve()}this.parallelExecute();return new Promise(((r,s)=>{this.emitter.on("finish",r);this.emitter.on("error",(r=>{this.state=$a.Error;s(r)}))}))}nextOperation(){if(this.offset=this.operations.length){this.emitter.emit("finish");return}while(this.actives=this.byteLength){this.push(null)}if(!r){r=this.readableHighWaterMark}const s=[];let i=0;while(ir-i){const a=this.byteOffsetInCurrentBuffer+r-i;s.push(this.buffers[this.bufferIndex].slice(this.byteOffsetInCurrentBuffer,a));this.pushedBytesLength+=r-i;this.byteOffsetInCurrentBuffer=a;i=r;break}else{const r=this.byteOffsetInCurrentBuffer+c;s.push(this.buffers[this.bufferIndex].slice(this.byteOffsetInCurrentBuffer,r));if(c===A){this.byteOffsetInCurrentBuffer=0;this.bufferIndex++}else{this.byteOffsetInCurrentBuffer=r}this.pushedBytesLength+=c;i+=c}}if(s.length>1){this.push(Buffer.concat(s))}else if(s.length===1){this.push(s[0])}}}const Ka=i(14300).constants.MAX_LENGTH;class PooledBuffer{constructor(r,s,i){this.buffers=[];this.capacity=r;this._size=0;const a=Math.ceil(r/Ka);for(let s=0;s0){r[0]=r[0].slice(c)}}getReadableStream(){return new BuffersStream(this.buffers,this.size)}}class BufferScheduler{constructor(r,s,i,a,A,c){this.emitter=new C.EventEmitter;this.offset=0;this.isStreamEnd=false;this.isError=false;this.executingOutgoingHandlers=0;this.numBuffers=0;this.unresolvedDataArray=[];this.unresolvedLength=0;this.incoming=[];this.outgoing=[];if(s<=0){throw new RangeError(`bufferSize must be larger than 0, current is ${s}`)}if(i<=0){throw new RangeError(`maxBuffers must be larger than 0, current is ${i}`)}if(A<=0){throw new RangeError(`concurrency must be larger than 0, current is ${A}`)}this.bufferSize=s;this.maxBuffers=i;this.readable=r;this.outgoingHandler=a;this.concurrency=A;this.encoding=c}async do(){return new Promise(((r,s)=>{this.readable.on("data",(r=>{r=typeof r==="string"?Buffer.from(r,this.encoding):r;this.appendUnresolvedData(r);if(!this.resolveData()){this.readable.pause()}}));this.readable.on("error",(r=>{this.emitter.emit("error",r)}));this.readable.on("end",(()=>{this.isStreamEnd=true;this.emitter.emit("checkEnd")}));this.emitter.on("error",(r=>{this.isError=true;this.readable.pause();s(r)}));this.emitter.on("checkEnd",(()=>{if(this.outgoing.length>0){this.triggerOutgoingHandlers();return}if(this.isStreamEnd&&this.executingOutgoingHandlers===0){if(this.unresolvedLength>0&&this.unresolvedLengthi.getReadableStream()),i.size,this.offset).then(r).catch(s)}else if(this.unresolvedLength>=this.bufferSize){return}else{r()}}}))}))}appendUnresolvedData(r){this.unresolvedDataArray.push(r);this.unresolvedLength+=r.length}shiftBufferFromUnresolvedDataArray(r){if(!r){r=new PooledBuffer(this.bufferSize,this.unresolvedDataArray,this.unresolvedLength)}else{r.fill(this.unresolvedDataArray,this.unresolvedLength)}this.unresolvedLength-=r.size;return r}resolveData(){while(this.unresolvedLength>=this.bufferSize){let r;if(this.incoming.length>0){r=this.incoming.shift();this.shiftBufferFromUnresolvedDataArray(r)}else{if(this.numBuffers=this.concurrency){return}r=this.outgoing.shift();if(r){this.triggerOutgoingHandler(r)}}while(r)}async triggerOutgoingHandler(r){const s=r.size;this.executingOutgoingHandlers++;this.offset+=s;try{await this.outgoingHandler((()=>r.getReadableStream()),s,this.offset-s)}catch(r){this.emitter.emit("error",r);return}this.executingOutgoingHandlers--;this.reuseBuffer(r);this.emitter.emit("checkEnd")}reuseBuffer(r){this.incoming.push(r);if(!this.isError&&this.resolveData()&&!this.isStreamEnd){this.readable.resume()}}}async function streamToBuffer(r,s,i,a,A){let c=0;const l=a-i;return new Promise(((a,d)=>{const u=setTimeout((()=>d(new Error(`The operation cannot be completed in timeout.`))),ga);r.on("readable",(()=>{if(c>=l){clearTimeout(u);a();return}let d=r.read();if(!d){return}if(typeof d==="string"){d=Buffer.from(d,A)}const p=c+d.length>l?l-c:d.length;s.fill(d.slice(0,p),i+c,i+c+p);c+=p}));r.on("end",(()=>{clearTimeout(u);if(c{clearTimeout(u);d(r)}))}))}async function streamToBuffer2(r,s,i){let a=0;const A=s.length;return new Promise(((c,l)=>{r.on("readable",(()=>{let c=r.read();if(!c){return}if(typeof c==="string"){c=Buffer.from(c,i)}if(a+c.length>A){l(new Error(`Stream exceeds buffer size. Buffer size: ${A}`));return}s.fill(c,a,a+c.length);a+=c.length}));r.on("end",(()=>{c(a)}));r.on("error",l)}))}async function readStreamToLocalFile(r,s){return new Promise(((i,a)=>{const A=Q.createWriteStream(s);r.on("error",(r=>{a(r)}));A.on("error",(r=>{a(r)}));A.on("close",i);r.pipe(A)}))}const Za=w.promisify(Q.stat);const eA=Q.createReadStream;class BlobClient extends StorageClient{constructor(r,s,i,A){A=A||{};let c;let l;if(isPipelineLike(s)){l=r;c=s}else if(a.isNode&&s instanceof StorageSharedKeyCredential||s instanceof AnonymousCredential||a.isTokenCredential(s)){l=r;A=i;c=newPipeline(s,A)}else if(!s&&typeof s!=="string"){l=r;if(i&&typeof i!=="string"){A=i}c=newPipeline(new AnonymousCredential,A)}else if(s&&typeof s==="string"&&i&&typeof i==="string"){const d=s;const u=i;const p=extractConnectionStringParts(r);if(p.kind==="AccountConnString"){if(a.isNode){const r=new StorageSharedKeyCredential(p.accountName,p.accountKey);l=appendToURLPath(appendToURLPath(p.url,encodeURIComponent(d)),encodeURIComponent(u));if(!A.proxyOptions){A.proxyOptions=a.getDefaultProxySettings(p.proxyUri)}c=newPipeline(r,A)}else{throw new Error("Account connection string is only supported in Node.js environment")}}else if(p.kind==="SASConnString"){l=appendToURLPath(appendToURLPath(p.url,encodeURIComponent(d)),encodeURIComponent(u))+"?"+p.accountSas;c=newPipeline(new AnonymousCredential,A)}else{throw new Error("Connection string must be either an Account connection string or a SAS connection string")}}else{throw new Error("Expecting non-empty strings for containerName and blobName parameters")}super(l,c);({blobName:this._name,containerName:this._containerName}=this.getBlobAndContainerNamesFromUrl());this.blobContext=new Blob$1(this.storageClientContext);this._snapshot=getURLParameter(this.url,ma.Parameters.SNAPSHOT);this._versionId=getURLParameter(this.url,ma.Parameters.VERSIONID)}get name(){return this._name}get containerName(){return this._containerName}withSnapshot(r){return new BlobClient(setURLParameter(this.url,ma.Parameters.SNAPSHOT,r.length===0?undefined:r),this.pipeline)}withVersion(r){return new BlobClient(setURLParameter(this.url,ma.Parameters.VERSIONID,r.length===0?undefined:r),this.pipeline)}getAppendBlobClient(){return new AppendBlobClient(this.url,this.pipeline)}getBlockBlobClient(){return new BlockBlobClient(this.url,this.pipeline)}getPageBlobClient(){return new PageBlobClient(this.url,this.pipeline)}async download(r=0,s,i={}){var A;i.conditions=i.conditions||{};i.conditions=i.conditions||{};ensureCpkIfSpecified(i.customerProvidedKey,this.isHttps);const{span:l,updatedOptions:d}=Ua("BlobClient-download",i);try{const c=await this.blobContext.download(Object.assign({abortSignal:i.abortSignal,leaseAccessConditions:i.conditions,modifiedAccessConditions:Object.assign(Object.assign({},i.conditions),{ifTags:(A=i.conditions)===null||A===void 0?void 0:A.tagConditions}),requestOptions:{onDownloadProgress:a.isNode?undefined:i.onProgress},range:r===0&&!s?undefined:rangeToString({offset:r,count:s}),rangeGetContentMD5:i.rangeGetContentMD5,rangeGetContentCRC64:i.rangeGetContentCrc64,snapshot:i.snapshot,cpkInfo:i.customerProvidedKey},convertTracingToRequestOptionsBase(d)));const l=Object.assign(Object.assign({},c),{_response:c._response,objectReplicationDestinationPolicyId:c.objectReplicationPolicyId,objectReplicationSourceProperties:parseObjectReplicationRecord(c.objectReplicationRules)});if(!a.isNode){return l}if(i.maxRetryRequests===undefined||i.maxRetryRequests<0){i.maxRetryRequests=pa}if(c.contentLength===undefined){throw new RangeError(`File download response doesn't contain valid content length header`)}if(!c.etag){throw new RangeError(`File download response doesn't contain valid etag header`)}return new BlobDownloadResponse(l,(async s=>{var a;const A={leaseAccessConditions:i.conditions,modifiedAccessConditions:{ifMatch:i.conditions.ifMatch||c.etag,ifModifiedSince:i.conditions.ifModifiedSince,ifNoneMatch:i.conditions.ifNoneMatch,ifUnmodifiedSince:i.conditions.ifUnmodifiedSince,ifTags:(a=i.conditions)===null||a===void 0?void 0:a.tagConditions},range:rangeToString({count:r+c.contentLength-s,offset:s}),rangeGetContentMD5:i.rangeGetContentMD5,rangeGetContentCRC64:i.rangeGetContentCrc64,snapshot:i.snapshot,cpkInfo:i.customerProvidedKey};return(await this.blobContext.download(Object.assign({abortSignal:i.abortSignal},A))).readableStreamBody}),r,c.contentLength,{maxRetryRequests:i.maxRetryRequests,onProgress:i.onProgress})}catch(r){l.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{l.end()}}async exists(r={}){const{span:s,updatedOptions:i}=Ua("BlobClient-exists",r);try{ensureCpkIfSpecified(r.customerProvidedKey,this.isHttps);await this.getProperties({abortSignal:r.abortSignal,customerProvidedKey:r.customerProvidedKey,conditions:r.conditions,tracingOptions:i.tracingOptions});return true}catch(r){if(r.statusCode===404){return false}else if(r.statusCode===409&&(r.details.errorCode===xa||r.details.errorCode===Da)){return true}s.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{s.end()}}async getProperties(r={}){var s;const{span:i,updatedOptions:a}=Ua("BlobClient-getProperties",r);try{r.conditions=r.conditions||{};ensureCpkIfSpecified(r.customerProvidedKey,this.isHttps);const i=await this.blobContext.getProperties(Object.assign({abortSignal:r.abortSignal,leaseAccessConditions:r.conditions,modifiedAccessConditions:Object.assign(Object.assign({},r.conditions),{ifTags:(s=r.conditions)===null||s===void 0?void 0:s.tagConditions}),cpkInfo:r.customerProvidedKey},convertTracingToRequestOptionsBase(a)));return Object.assign(Object.assign({},i),{_response:i._response,objectReplicationDestinationPolicyId:i.objectReplicationPolicyId,objectReplicationSourceProperties:parseObjectReplicationRecord(i.objectReplicationRules)})}catch(r){i.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{i.end()}}async delete(r={}){var s;const{span:i,updatedOptions:a}=Ua("BlobClient-delete",r);r.conditions=r.conditions||{};try{return await this.blobContext.delete(Object.assign({abortSignal:r.abortSignal,deleteSnapshots:r.deleteSnapshots,leaseAccessConditions:r.conditions,modifiedAccessConditions:Object.assign(Object.assign({},r.conditions),{ifTags:(s=r.conditions)===null||s===void 0?void 0:s.tagConditions})},convertTracingToRequestOptionsBase(a)))}catch(r){i.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{i.end()}}async deleteIfExists(r={}){var s,i;const{span:a,updatedOptions:A}=Ua("BlobClient-deleteIfExists",r);try{const r=await this.delete(A);return Object.assign(Object.assign({succeeded:true},r),{_response:r._response})}catch(r){if(((s=r.details)===null||s===void 0?void 0:s.errorCode)==="BlobNotFound"){a.setStatus({code:c.SpanStatusCode.ERROR,message:"Expected exception when deleting a blob or snapshot only if it exists."});return Object.assign(Object.assign({succeeded:false},(i=r.response)===null||i===void 0?void 0:i.parsedHeaders),{_response:r.response})}a.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{a.end()}}async undelete(r={}){const{span:s,updatedOptions:i}=Ua("BlobClient-undelete",r);try{return await this.blobContext.undelete(Object.assign({abortSignal:r.abortSignal},convertTracingToRequestOptionsBase(i)))}catch(r){s.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{s.end()}}async setHTTPHeaders(r,s={}){var i;const{span:a,updatedOptions:A}=Ua("BlobClient-setHTTPHeaders",s);s.conditions=s.conditions||{};try{ensureCpkIfSpecified(s.customerProvidedKey,this.isHttps);return await this.blobContext.setHttpHeaders(Object.assign({abortSignal:s.abortSignal,blobHttpHeaders:r,leaseAccessConditions:s.conditions,modifiedAccessConditions:Object.assign(Object.assign({},s.conditions),{ifTags:(i=s.conditions)===null||i===void 0?void 0:i.tagConditions})},convertTracingToRequestOptionsBase(A)))}catch(r){a.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{a.end()}}async setMetadata(r,s={}){var i;const{span:a,updatedOptions:A}=Ua("BlobClient-setMetadata",s);s.conditions=s.conditions||{};try{ensureCpkIfSpecified(s.customerProvidedKey,this.isHttps);return await this.blobContext.setMetadata(Object.assign({abortSignal:s.abortSignal,leaseAccessConditions:s.conditions,metadata:r,modifiedAccessConditions:Object.assign(Object.assign({},s.conditions),{ifTags:(i=s.conditions)===null||i===void 0?void 0:i.tagConditions}),cpkInfo:s.customerProvidedKey,encryptionScope:s.encryptionScope},convertTracingToRequestOptionsBase(A)))}catch(r){a.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{a.end()}}async setTags(r,s={}){var i;const{span:a,updatedOptions:A}=Ua("BlobClient-setTags",s);try{return await this.blobContext.setTags(Object.assign(Object.assign({abortSignal:s.abortSignal,leaseAccessConditions:s.conditions,modifiedAccessConditions:Object.assign(Object.assign({},s.conditions),{ifTags:(i=s.conditions)===null||i===void 0?void 0:i.tagConditions})},convertTracingToRequestOptionsBase(A)),{tags:toBlobTags(r)}))}catch(r){a.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{a.end()}}async getTags(r={}){var s;const{span:i,updatedOptions:a}=Ua("BlobClient-getTags",r);try{const i=await this.blobContext.getTags(Object.assign({abortSignal:r.abortSignal,leaseAccessConditions:r.conditions,modifiedAccessConditions:Object.assign(Object.assign({},r.conditions),{ifTags:(s=r.conditions)===null||s===void 0?void 0:s.tagConditions})},convertTracingToRequestOptionsBase(a)));const A=Object.assign(Object.assign({},i),{_response:i._response,tags:toTags({blobTagSet:i.blobTagSet})||{}});return A}catch(r){i.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{i.end()}}getBlobLeaseClient(r){return new BlobLeaseClient(this,r)}async createSnapshot(r={}){var s;const{span:i,updatedOptions:a}=Ua("BlobClient-createSnapshot",r);r.conditions=r.conditions||{};try{ensureCpkIfSpecified(r.customerProvidedKey,this.isHttps);return await this.blobContext.createSnapshot(Object.assign({abortSignal:r.abortSignal,leaseAccessConditions:r.conditions,metadata:r.metadata,modifiedAccessConditions:Object.assign(Object.assign({},r.conditions),{ifTags:(s=r.conditions)===null||s===void 0?void 0:s.tagConditions}),cpkInfo:r.customerProvidedKey,encryptionScope:r.encryptionScope},convertTracingToRequestOptionsBase(a)))}catch(r){i.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{i.end()}}async beginCopyFromURL(r,s={}){const i={abortCopyFromURL:(...r)=>this.abortCopyFromURL(...r),getProperties:(...r)=>this.getProperties(...r),startCopyFromURL:(...r)=>this.startCopyFromURL(...r)};const a=new BlobBeginCopyFromUrlPoller({blobClient:i,copySource:r,intervalInMs:s.intervalInMs,onProgress:s.onProgress,resumeFrom:s.resumeFrom,startCopyFromURLOptions:s});await a.poll();return a}async abortCopyFromURL(r,s={}){const{span:i,updatedOptions:a}=Ua("BlobClient-abortCopyFromURL",s);try{return await this.blobContext.abortCopyFromURL(r,Object.assign({abortSignal:s.abortSignal,leaseAccessConditions:s.conditions},convertTracingToRequestOptionsBase(a)))}catch(r){i.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{i.end()}}async syncCopyFromURL(r,s={}){var i,a,A;const{span:l,updatedOptions:d}=Ua("BlobClient-syncCopyFromURL",s);s.conditions=s.conditions||{};s.sourceConditions=s.sourceConditions||{};try{return await this.blobContext.copyFromURL(r,Object.assign({abortSignal:s.abortSignal,metadata:s.metadata,leaseAccessConditions:s.conditions,modifiedAccessConditions:Object.assign(Object.assign({},s.conditions),{ifTags:(i=s.conditions)===null||i===void 0?void 0:i.tagConditions}),sourceModifiedAccessConditions:{sourceIfMatch:s.sourceConditions.ifMatch,sourceIfModifiedSince:s.sourceConditions.ifModifiedSince,sourceIfNoneMatch:s.sourceConditions.ifNoneMatch,sourceIfUnmodifiedSince:s.sourceConditions.ifUnmodifiedSince},sourceContentMD5:s.sourceContentMD5,copySourceAuthorization:httpAuthorizationToString(s.sourceAuthorization),tier:toAccessTier(s.tier),blobTagsString:toBlobTagsString(s.tags),immutabilityPolicyExpiry:(a=s.immutabilityPolicy)===null||a===void 0?void 0:a.expiriesOn,immutabilityPolicyMode:(A=s.immutabilityPolicy)===null||A===void 0?void 0:A.policyMode,legalHold:s.legalHold,encryptionScope:s.encryptionScope,copySourceTags:s.copySourceTags},convertTracingToRequestOptionsBase(d)))}catch(r){l.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{l.end()}}async setAccessTier(r,s={}){var i;const{span:a,updatedOptions:A}=Ua("BlobClient-setAccessTier",s);try{return await this.blobContext.setTier(toAccessTier(r),Object.assign({abortSignal:s.abortSignal,leaseAccessConditions:s.conditions,modifiedAccessConditions:Object.assign(Object.assign({},s.conditions),{ifTags:(i=s.conditions)===null||i===void 0?void 0:i.tagConditions}),rehydratePriority:s.rehydratePriority},convertTracingToRequestOptionsBase(A)))}catch(r){a.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{a.end()}}async downloadToBuffer(r,s,i,a={}){let A;let l=0;let d=0;let u=a;if(r instanceof Buffer){A=r;l=s||0;d=typeof i==="number"?i:0}else{l=typeof r==="number"?r:0;d=typeof s==="number"?s:0;u=i||{}}const{span:p,updatedOptions:g}=Ua("BlobClient-downloadToBuffer",u);try{if(!u.blockSize){u.blockSize=0}if(u.blockSize<0){throw new RangeError("blockSize option must be >= 0")}if(u.blockSize===0){u.blockSize=ua}if(l<0){throw new RangeError("offset option must be >= 0")}if(d&&d<=0){throw new RangeError("count option must be greater than 0")}if(!u.conditions){u.conditions={}}if(!d){const r=await this.getProperties(Object.assign(Object.assign({},u),{tracingOptions:Object.assign(Object.assign({},u.tracingOptions),convertTracingToRequestOptionsBase(g))}));d=r.contentLength-l;if(d<0){throw new RangeError(`offset ${l} shouldn't be larger than blob size ${r.contentLength}`)}}if(!A){try{A=Buffer.alloc(d)}catch(r){throw new Error(`Unable to allocate the buffer of size: ${d}(in bytes). Please try passing your own buffer to the "downloadToBuffer" method or try using other methods like "download" or "downloadToFile".\t ${r.message}`)}}if(A.length{let s=l+d;if(i+u.blockSize{if(!(this.credential instanceof StorageSharedKeyCredential)){throw new RangeError("Can only generate the SAS when the client is initialized with a shared key credential")}const i=generateBlobSASQueryParameters(Object.assign({containerName:this._containerName,blobName:this._name,snapshotTime:this._snapshot,versionId:this._versionId},r),this.credential).toString();s(appendToURLQuery(this.url,i))}))}async deleteImmutabilityPolicy(r){const{span:s,updatedOptions:i}=Ua("BlobClient-deleteImmutabilityPolicy",r);try{return await this.blobContext.deleteImmutabilityPolicy(Object.assign({abortSignal:r===null||r===void 0?void 0:r.abortSignal},convertTracingToRequestOptionsBase(i)))}catch(r){s.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{s.end()}}async setImmutabilityPolicy(r,s){const{span:i,updatedOptions:a}=Ua("BlobClient-setImmutabilityPolicy",s);try{return await this.blobContext.setImmutabilityPolicy(Object.assign({abortSignal:s===null||s===void 0?void 0:s.abortSignal,immutabilityPolicyExpiry:r.expiriesOn,immutabilityPolicyMode:r.policyMode,modifiedAccessConditions:s===null||s===void 0?void 0:s.modifiedAccessCondition},convertTracingToRequestOptionsBase(a)))}catch(r){i.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{i.end()}}async setLegalHold(r,s){const{span:i,updatedOptions:a}=Ua("BlobClient-setLegalHold",s);try{return await this.blobContext.setLegalHold(r,Object.assign({abortSignal:s===null||s===void 0?void 0:s.abortSignal},convertTracingToRequestOptionsBase(a)))}catch(r){i.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{i.end()}}}class AppendBlobClient extends BlobClient{constructor(r,s,i,A){let c;let l;A=A||{};if(isPipelineLike(s)){l=r;c=s}else if(a.isNode&&s instanceof StorageSharedKeyCredential||s instanceof AnonymousCredential||a.isTokenCredential(s)){l=r;A=i;c=newPipeline(s,A)}else if(!s&&typeof s!=="string"){l=r;c=newPipeline(new AnonymousCredential,A)}else if(s&&typeof s==="string"&&i&&typeof i==="string"){const d=s;const u=i;const p=extractConnectionStringParts(r);if(p.kind==="AccountConnString"){if(a.isNode){const r=new StorageSharedKeyCredential(p.accountName,p.accountKey);l=appendToURLPath(appendToURLPath(p.url,encodeURIComponent(d)),encodeURIComponent(u));if(!A.proxyOptions){A.proxyOptions=a.getDefaultProxySettings(p.proxyUri)}c=newPipeline(r,A)}else{throw new Error("Account connection string is only supported in Node.js environment")}}else if(p.kind==="SASConnString"){l=appendToURLPath(appendToURLPath(p.url,encodeURIComponent(d)),encodeURIComponent(u))+"?"+p.accountSas;c=newPipeline(new AnonymousCredential,A)}else{throw new Error("Connection string must be either an Account connection string or a SAS connection string")}}else{throw new Error("Expecting non-empty strings for containerName and blobName parameters")}super(l,c);this.appendBlobContext=new AppendBlob(this.storageClientContext)}withSnapshot(r){return new AppendBlobClient(setURLParameter(this.url,ma.Parameters.SNAPSHOT,r.length===0?undefined:r),this.pipeline)}async create(r={}){var s,i,a;const{span:A,updatedOptions:l}=Ua("AppendBlobClient-create",r);r.conditions=r.conditions||{};try{ensureCpkIfSpecified(r.customerProvidedKey,this.isHttps);return await this.appendBlobContext.create(0,Object.assign({abortSignal:r.abortSignal,blobHttpHeaders:r.blobHTTPHeaders,leaseAccessConditions:r.conditions,metadata:r.metadata,modifiedAccessConditions:Object.assign(Object.assign({},r.conditions),{ifTags:(s=r.conditions)===null||s===void 0?void 0:s.tagConditions}),cpkInfo:r.customerProvidedKey,encryptionScope:r.encryptionScope,immutabilityPolicyExpiry:(i=r.immutabilityPolicy)===null||i===void 0?void 0:i.expiriesOn,immutabilityPolicyMode:(a=r.immutabilityPolicy)===null||a===void 0?void 0:a.policyMode,legalHold:r.legalHold,blobTagsString:toBlobTagsString(r.tags)},convertTracingToRequestOptionsBase(l)))}catch(r){A.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{A.end()}}async createIfNotExists(r={}){var s,i;const{span:a,updatedOptions:A}=Ua("AppendBlobClient-createIfNotExists",r);const l={ifNoneMatch:ya};try{const r=await this.create(Object.assign(Object.assign({},A),{conditions:l}));return Object.assign(Object.assign({succeeded:true},r),{_response:r._response})}catch(r){if(((s=r.details)===null||s===void 0?void 0:s.errorCode)==="BlobAlreadyExists"){a.setStatus({code:c.SpanStatusCode.ERROR,message:"Expected exception when creating a blob only if it does not already exist."});return Object.assign(Object.assign({succeeded:false},(i=r.response)===null||i===void 0?void 0:i.parsedHeaders),{_response:r.response})}a.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{a.end()}}async seal(r={}){var s;const{span:i,updatedOptions:a}=Ua("AppendBlobClient-seal",r);r.conditions=r.conditions||{};try{return await this.appendBlobContext.seal(Object.assign({abortSignal:r.abortSignal,appendPositionAccessConditions:r.conditions,leaseAccessConditions:r.conditions,modifiedAccessConditions:Object.assign(Object.assign({},r.conditions),{ifTags:(s=r.conditions)===null||s===void 0?void 0:s.tagConditions})},convertTracingToRequestOptionsBase(a)))}catch(r){i.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{i.end()}}async appendBlock(r,s,i={}){var a;const{span:A,updatedOptions:l}=Ua("AppendBlobClient-appendBlock",i);i.conditions=i.conditions||{};try{ensureCpkIfSpecified(i.customerProvidedKey,this.isHttps);return await this.appendBlobContext.appendBlock(s,r,Object.assign({abortSignal:i.abortSignal,appendPositionAccessConditions:i.conditions,leaseAccessConditions:i.conditions,modifiedAccessConditions:Object.assign(Object.assign({},i.conditions),{ifTags:(a=i.conditions)===null||a===void 0?void 0:a.tagConditions}),requestOptions:{onUploadProgress:i.onProgress},transactionalContentMD5:i.transactionalContentMD5,transactionalContentCrc64:i.transactionalContentCrc64,cpkInfo:i.customerProvidedKey,encryptionScope:i.encryptionScope},convertTracingToRequestOptionsBase(l)))}catch(r){A.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{A.end()}}async appendBlockFromURL(r,s,i,a={}){var A;const{span:l,updatedOptions:d}=Ua("AppendBlobClient-appendBlockFromURL",a);a.conditions=a.conditions||{};a.sourceConditions=a.sourceConditions||{};try{ensureCpkIfSpecified(a.customerProvidedKey,this.isHttps);return await this.appendBlobContext.appendBlockFromUrl(r,0,Object.assign({abortSignal:a.abortSignal,sourceRange:rangeToString({offset:s,count:i}),sourceContentMD5:a.sourceContentMD5,sourceContentCrc64:a.sourceContentCrc64,leaseAccessConditions:a.conditions,appendPositionAccessConditions:a.conditions,modifiedAccessConditions:Object.assign(Object.assign({},a.conditions),{ifTags:(A=a.conditions)===null||A===void 0?void 0:A.tagConditions}),sourceModifiedAccessConditions:{sourceIfMatch:a.sourceConditions.ifMatch,sourceIfModifiedSince:a.sourceConditions.ifModifiedSince,sourceIfNoneMatch:a.sourceConditions.ifNoneMatch,sourceIfUnmodifiedSince:a.sourceConditions.ifUnmodifiedSince},copySourceAuthorization:httpAuthorizationToString(a.sourceAuthorization),cpkInfo:a.customerProvidedKey,encryptionScope:a.encryptionScope},convertTracingToRequestOptionsBase(d)))}catch(r){l.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{l.end()}}}class BlockBlobClient extends BlobClient{constructor(r,s,i,A){let c;let l;A=A||{};if(isPipelineLike(s)){l=r;c=s}else if(a.isNode&&s instanceof StorageSharedKeyCredential||s instanceof AnonymousCredential||a.isTokenCredential(s)){l=r;A=i;c=newPipeline(s,A)}else if(!s&&typeof s!=="string"){l=r;if(i&&typeof i!=="string"){A=i}c=newPipeline(new AnonymousCredential,A)}else if(s&&typeof s==="string"&&i&&typeof i==="string"){const d=s;const u=i;const p=extractConnectionStringParts(r);if(p.kind==="AccountConnString"){if(a.isNode){const r=new StorageSharedKeyCredential(p.accountName,p.accountKey);l=appendToURLPath(appendToURLPath(p.url,encodeURIComponent(d)),encodeURIComponent(u));if(!A.proxyOptions){A.proxyOptions=a.getDefaultProxySettings(p.proxyUri)}c=newPipeline(r,A)}else{throw new Error("Account connection string is only supported in Node.js environment")}}else if(p.kind==="SASConnString"){l=appendToURLPath(appendToURLPath(p.url,encodeURIComponent(d)),encodeURIComponent(u))+"?"+p.accountSas;c=newPipeline(new AnonymousCredential,A)}else{throw new Error("Connection string must be either an Account connection string or a SAS connection string")}}else{throw new Error("Expecting non-empty strings for containerName and blobName parameters")}super(l,c);this.blockBlobContext=new BlockBlob(this.storageClientContext);this._blobContext=new Blob$1(this.storageClientContext)}withSnapshot(r){return new BlockBlobClient(setURLParameter(this.url,ma.Parameters.SNAPSHOT,r.length===0?undefined:r),this.pipeline)}async query(r,s={}){var i;ensureCpkIfSpecified(s.customerProvidedKey,this.isHttps);const{span:A,updatedOptions:l}=Ua("BlockBlobClient-query",s);try{if(!a.isNode){throw new Error("This operation currently is only supported in Node.js.")}ensureCpkIfSpecified(s.customerProvidedKey,this.isHttps);const A=await this._blobContext.query(Object.assign({abortSignal:s.abortSignal,queryRequest:{queryType:"SQL",expression:r,inputSerialization:toQuerySerialization(s.inputTextConfiguration),outputSerialization:toQuerySerialization(s.outputTextConfiguration)},leaseAccessConditions:s.conditions,modifiedAccessConditions:Object.assign(Object.assign({},s.conditions),{ifTags:(i=s.conditions)===null||i===void 0?void 0:i.tagConditions}),cpkInfo:s.customerProvidedKey},convertTracingToRequestOptionsBase(l)));return new BlobQueryResponse(A,{abortSignal:s.abortSignal,onProgress:s.onProgress,onError:s.onError})}catch(r){A.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{A.end()}}async upload(r,s,i={}){var a,A,l;i.conditions=i.conditions||{};const{span:d,updatedOptions:u}=Ua("BlockBlobClient-upload",i);try{ensureCpkIfSpecified(i.customerProvidedKey,this.isHttps);return await this.blockBlobContext.upload(s,r,Object.assign({abortSignal:i.abortSignal,blobHttpHeaders:i.blobHTTPHeaders,leaseAccessConditions:i.conditions,metadata:i.metadata,modifiedAccessConditions:Object.assign(Object.assign({},i.conditions),{ifTags:(a=i.conditions)===null||a===void 0?void 0:a.tagConditions}),requestOptions:{onUploadProgress:i.onProgress},cpkInfo:i.customerProvidedKey,encryptionScope:i.encryptionScope,immutabilityPolicyExpiry:(A=i.immutabilityPolicy)===null||A===void 0?void 0:A.expiriesOn,immutabilityPolicyMode:(l=i.immutabilityPolicy)===null||l===void 0?void 0:l.policyMode,legalHold:i.legalHold,tier:toAccessTier(i.tier),blobTagsString:toBlobTagsString(i.tags)},convertTracingToRequestOptionsBase(u)))}catch(r){d.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{d.end()}}async syncUploadFromURL(r,s={}){var i,a,A,l,d;s.conditions=s.conditions||{};const{span:u,updatedOptions:p}=Ua("BlockBlobClient-syncUploadFromURL",s);try{ensureCpkIfSpecified(s.customerProvidedKey,this.isHttps);return await this.blockBlobContext.putBlobFromUrl(0,r,Object.assign(Object.assign(Object.assign({},s),{blobHttpHeaders:s.blobHTTPHeaders,leaseAccessConditions:s.conditions,modifiedAccessConditions:Object.assign(Object.assign({},s.conditions),{ifTags:s.conditions.tagConditions}),sourceModifiedAccessConditions:{sourceIfMatch:(i=s.sourceConditions)===null||i===void 0?void 0:i.ifMatch,sourceIfModifiedSince:(a=s.sourceConditions)===null||a===void 0?void 0:a.ifModifiedSince,sourceIfNoneMatch:(A=s.sourceConditions)===null||A===void 0?void 0:A.ifNoneMatch,sourceIfUnmodifiedSince:(l=s.sourceConditions)===null||l===void 0?void 0:l.ifUnmodifiedSince,sourceIfTags:(d=s.sourceConditions)===null||d===void 0?void 0:d.tagConditions},cpkInfo:s.customerProvidedKey,copySourceAuthorization:httpAuthorizationToString(s.sourceAuthorization),tier:toAccessTier(s.tier),blobTagsString:toBlobTagsString(s.tags),copySourceTags:s.copySourceTags}),convertTracingToRequestOptionsBase(p)))}catch(r){u.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{u.end()}}async stageBlock(r,s,i,a={}){const{span:A,updatedOptions:l}=Ua("BlockBlobClient-stageBlock",a);try{ensureCpkIfSpecified(a.customerProvidedKey,this.isHttps);return await this.blockBlobContext.stageBlock(r,i,s,Object.assign({abortSignal:a.abortSignal,leaseAccessConditions:a.conditions,requestOptions:{onUploadProgress:a.onProgress},transactionalContentMD5:a.transactionalContentMD5,transactionalContentCrc64:a.transactionalContentCrc64,cpkInfo:a.customerProvidedKey,encryptionScope:a.encryptionScope},convertTracingToRequestOptionsBase(l)))}catch(r){A.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{A.end()}}async stageBlockFromURL(r,s,i=0,a,A={}){const{span:l,updatedOptions:d}=Ua("BlockBlobClient-stageBlockFromURL",A);try{ensureCpkIfSpecified(A.customerProvidedKey,this.isHttps);return await this.blockBlobContext.stageBlockFromURL(r,0,s,Object.assign({abortSignal:A.abortSignal,leaseAccessConditions:A.conditions,sourceContentMD5:A.sourceContentMD5,sourceContentCrc64:A.sourceContentCrc64,sourceRange:i===0&&!a?undefined:rangeToString({offset:i,count:a}),cpkInfo:A.customerProvidedKey,encryptionScope:A.encryptionScope,copySourceAuthorization:httpAuthorizationToString(A.sourceAuthorization)},convertTracingToRequestOptionsBase(d)))}catch(r){l.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{l.end()}}async commitBlockList(r,s={}){var i,a,A;s.conditions=s.conditions||{};const{span:l,updatedOptions:d}=Ua("BlockBlobClient-commitBlockList",s);try{ensureCpkIfSpecified(s.customerProvidedKey,this.isHttps);return await this.blockBlobContext.commitBlockList({latest:r},Object.assign({abortSignal:s.abortSignal,blobHttpHeaders:s.blobHTTPHeaders,leaseAccessConditions:s.conditions,metadata:s.metadata,modifiedAccessConditions:Object.assign(Object.assign({},s.conditions),{ifTags:(i=s.conditions)===null||i===void 0?void 0:i.tagConditions}),cpkInfo:s.customerProvidedKey,encryptionScope:s.encryptionScope,immutabilityPolicyExpiry:(a=s.immutabilityPolicy)===null||a===void 0?void 0:a.expiriesOn,immutabilityPolicyMode:(A=s.immutabilityPolicy)===null||A===void 0?void 0:A.policyMode,legalHold:s.legalHold,tier:toAccessTier(s.tier),blobTagsString:toBlobTagsString(s.tags)},convertTracingToRequestOptionsBase(d)))}catch(r){l.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{l.end()}}async getBlockList(r,s={}){var i;const{span:a,updatedOptions:A}=Ua("BlockBlobClient-getBlockList",s);try{const a=await this.blockBlobContext.getBlockList(r,Object.assign({abortSignal:s.abortSignal,leaseAccessConditions:s.conditions,modifiedAccessConditions:Object.assign(Object.assign({},s.conditions),{ifTags:(i=s.conditions)===null||i===void 0?void 0:i.tagConditions})},convertTracingToRequestOptionsBase(A)));if(!a.committedBlocks){a.committedBlocks=[]}if(!a.uncommittedBlocks){a.uncommittedBlocks=[]}return a}catch(r){a.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{a.end()}}async uploadData(r,s={}){const{span:i,updatedOptions:A}=Ua("BlockBlobClient-uploadData",s);try{if(a.isNode){let s;if(r instanceof Buffer){s=r}else if(r instanceof ArrayBuffer){s=Buffer.from(r)}else{r=r;s=Buffer.from(r.buffer,r.byteOffset,r.byteLength)}return this.uploadSeekableInternal(((r,i)=>s.slice(r,r+i)),s.byteLength,A)}else{const s=new Blob([r]);return this.uploadSeekableInternal(((r,i)=>s.slice(r,r+i)),s.size,A)}}catch(r){i.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{i.end()}}async uploadBrowserData(r,s={}){const{span:i,updatedOptions:a}=Ua("BlockBlobClient-uploadBrowserData",s);try{const s=new Blob([r]);return await this.uploadSeekableInternal(((r,i)=>s.slice(r,r+i)),s.size,a)}catch(r){i.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{i.end()}}async uploadSeekableInternal(r,s,i={}){if(!i.blockSize){i.blockSize=0}if(i.blockSize<0||i.blockSize>ca){throw new RangeError(`blockSize option must be >= 0 and <= ${ca}`)}if(i.maxSingleShotSize!==0&&!i.maxSingleShotSize){i.maxSingleShotSize=Aa}if(i.maxSingleShotSize<0||i.maxSingleShotSize>Aa){throw new RangeError(`maxSingleShotSize option must be >= 0 and <= ${Aa}`)}if(i.blockSize===0){if(s>ca*la){throw new RangeError(`${s} is too larger to upload to a block blob.`)}if(s>i.maxSingleShotSize){i.blockSize=Math.ceil(s/la);if(i.blockSizela){throw new RangeError(`The buffer's size is too big or the BlockSize is too small;`+`the number of blocks must be <= ${la}`)}const c=[];const d=a.generateUuid();let u=0;const p=new Batch(i.concurrency);for(let a=0;a{const p=generateBlockID(d,a);const g=i.blockSize*a;const h=a===A-1?s:g+i.blockSize;const C=h-g;c.push(p);await this.stageBlock(p,r(g,C),C,{abortSignal:i.abortSignal,conditions:i.conditions,encryptionScope:i.encryptionScope,tracingOptions:l.tracingOptions});u+=C;if(i.onProgress){i.onProgress({loadedBytes:u})}}))}await p.do();return this.commitBlockList(c,l)}catch(r){A.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{A.end()}}async uploadFile(r,s={}){const{span:i,updatedOptions:a}=Ua("BlockBlobClient-uploadFile",s);try{const i=(await Za(r)).size;return await this.uploadSeekableInternal(((s,i)=>()=>eA(r,{autoClose:true,end:i?s+i-1:Infinity,start:s})),i,Object.assign(Object.assign({},s),{tracingOptions:Object.assign(Object.assign({},s.tracingOptions),convertTracingToRequestOptionsBase(a))}))}catch(r){i.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{i.end()}}async uploadStream(r,s=da,i=5,A={}){if(!A.blobHTTPHeaders){A.blobHTTPHeaders={}}if(!A.conditions){A.conditions={}}const{span:l,updatedOptions:d}=Ua("BlockBlobClient-uploadStream",A);try{let c=0;const l=a.generateUuid();let u=0;const p=[];const g=new BufferScheduler(r,s,i,(async(r,s)=>{const i=generateBlockID(l,c);p.push(i);c++;await this.stageBlock(i,r,s,{conditions:A.conditions,encryptionScope:A.encryptionScope,tracingOptions:d.tracingOptions});u+=s;if(A.onProgress){A.onProgress({loadedBytes:u})}}),Math.ceil(i/4*3));await g.do();return await this.commitBlockList(p,Object.assign(Object.assign({},A),{tracingOptions:Object.assign(Object.assign({},A.tracingOptions),convertTracingToRequestOptionsBase(d))}))}catch(r){l.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{l.end()}}}class PageBlobClient extends BlobClient{constructor(r,s,i,A){let c;let l;A=A||{};if(isPipelineLike(s)){l=r;c=s}else if(a.isNode&&s instanceof StorageSharedKeyCredential||s instanceof AnonymousCredential||a.isTokenCredential(s)){l=r;A=i;c=newPipeline(s,A)}else if(!s&&typeof s!=="string"){l=r;c=newPipeline(new AnonymousCredential,A)}else if(s&&typeof s==="string"&&i&&typeof i==="string"){const d=s;const u=i;const p=extractConnectionStringParts(r);if(p.kind==="AccountConnString"){if(a.isNode){const r=new StorageSharedKeyCredential(p.accountName,p.accountKey);l=appendToURLPath(appendToURLPath(p.url,encodeURIComponent(d)),encodeURIComponent(u));if(!A.proxyOptions){A.proxyOptions=a.getDefaultProxySettings(p.proxyUri)}c=newPipeline(r,A)}else{throw new Error("Account connection string is only supported in Node.js environment")}}else if(p.kind==="SASConnString"){l=appendToURLPath(appendToURLPath(p.url,encodeURIComponent(d)),encodeURIComponent(u))+"?"+p.accountSas;c=newPipeline(new AnonymousCredential,A)}else{throw new Error("Connection string must be either an Account connection string or a SAS connection string")}}else{throw new Error("Expecting non-empty strings for containerName and blobName parameters")}super(l,c);this.pageBlobContext=new PageBlob(this.storageClientContext)}withSnapshot(r){return new PageBlobClient(setURLParameter(this.url,ma.Parameters.SNAPSHOT,r.length===0?undefined:r),this.pipeline)}async create(r,s={}){var i,a,A;s.conditions=s.conditions||{};const{span:l,updatedOptions:d}=Ua("PageBlobClient-create",s);try{ensureCpkIfSpecified(s.customerProvidedKey,this.isHttps);return await this.pageBlobContext.create(0,r,Object.assign({abortSignal:s.abortSignal,blobHttpHeaders:s.blobHTTPHeaders,blobSequenceNumber:s.blobSequenceNumber,leaseAccessConditions:s.conditions,metadata:s.metadata,modifiedAccessConditions:Object.assign(Object.assign({},s.conditions),{ifTags:(i=s.conditions)===null||i===void 0?void 0:i.tagConditions}),cpkInfo:s.customerProvidedKey,encryptionScope:s.encryptionScope,immutabilityPolicyExpiry:(a=s.immutabilityPolicy)===null||a===void 0?void 0:a.expiriesOn,immutabilityPolicyMode:(A=s.immutabilityPolicy)===null||A===void 0?void 0:A.policyMode,legalHold:s.legalHold,tier:toAccessTier(s.tier),blobTagsString:toBlobTagsString(s.tags)},convertTracingToRequestOptionsBase(d)))}catch(r){l.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{l.end()}}async createIfNotExists(r,s={}){var i,a;const{span:A,updatedOptions:l}=Ua("PageBlobClient-createIfNotExists",s);try{const i={ifNoneMatch:ya};const a=await this.create(r,Object.assign(Object.assign({},s),{conditions:i,tracingOptions:l.tracingOptions}));return Object.assign(Object.assign({succeeded:true},a),{_response:a._response})}catch(r){if(((i=r.details)===null||i===void 0?void 0:i.errorCode)==="BlobAlreadyExists"){A.setStatus({code:c.SpanStatusCode.ERROR,message:"Expected exception when creating a blob only if it does not already exist."});return Object.assign(Object.assign({succeeded:false},(a=r.response)===null||a===void 0?void 0:a.parsedHeaders),{_response:r.response})}A.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{A.end()}}async uploadPages(r,s,i,a={}){var A;a.conditions=a.conditions||{};const{span:l,updatedOptions:d}=Ua("PageBlobClient-uploadPages",a);try{ensureCpkIfSpecified(a.customerProvidedKey,this.isHttps);return await this.pageBlobContext.uploadPages(i,r,Object.assign({abortSignal:a.abortSignal,leaseAccessConditions:a.conditions,modifiedAccessConditions:Object.assign(Object.assign({},a.conditions),{ifTags:(A=a.conditions)===null||A===void 0?void 0:A.tagConditions}),requestOptions:{onUploadProgress:a.onProgress},range:rangeToString({offset:s,count:i}),sequenceNumberAccessConditions:a.conditions,transactionalContentMD5:a.transactionalContentMD5,transactionalContentCrc64:a.transactionalContentCrc64,cpkInfo:a.customerProvidedKey,encryptionScope:a.encryptionScope},convertTracingToRequestOptionsBase(d)))}catch(r){l.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{l.end()}}async uploadPagesFromURL(r,s,i,a,A={}){var l;A.conditions=A.conditions||{};A.sourceConditions=A.sourceConditions||{};const{span:d,updatedOptions:u}=Ua("PageBlobClient-uploadPagesFromURL",A);try{ensureCpkIfSpecified(A.customerProvidedKey,this.isHttps);return await this.pageBlobContext.uploadPagesFromURL(r,rangeToString({offset:s,count:a}),0,rangeToString({offset:i,count:a}),Object.assign({abortSignal:A.abortSignal,sourceContentMD5:A.sourceContentMD5,sourceContentCrc64:A.sourceContentCrc64,leaseAccessConditions:A.conditions,sequenceNumberAccessConditions:A.conditions,modifiedAccessConditions:Object.assign(Object.assign({},A.conditions),{ifTags:(l=A.conditions)===null||l===void 0?void 0:l.tagConditions}),sourceModifiedAccessConditions:{sourceIfMatch:A.sourceConditions.ifMatch,sourceIfModifiedSince:A.sourceConditions.ifModifiedSince,sourceIfNoneMatch:A.sourceConditions.ifNoneMatch,sourceIfUnmodifiedSince:A.sourceConditions.ifUnmodifiedSince},cpkInfo:A.customerProvidedKey,encryptionScope:A.encryptionScope,copySourceAuthorization:httpAuthorizationToString(A.sourceAuthorization)},convertTracingToRequestOptionsBase(u)))}catch(r){d.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{d.end()}}async clearPages(r=0,s,i={}){var a;i.conditions=i.conditions||{};const{span:A,updatedOptions:l}=Ua("PageBlobClient-clearPages",i);try{return await this.pageBlobContext.clearPages(0,Object.assign({abortSignal:i.abortSignal,leaseAccessConditions:i.conditions,modifiedAccessConditions:Object.assign(Object.assign({},i.conditions),{ifTags:(a=i.conditions)===null||a===void 0?void 0:a.tagConditions}),range:rangeToString({offset:r,count:s}),sequenceNumberAccessConditions:i.conditions,cpkInfo:i.customerProvidedKey,encryptionScope:i.encryptionScope},convertTracingToRequestOptionsBase(l)))}catch(r){A.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{A.end()}}async getPageRanges(r=0,s,i={}){var a;i.conditions=i.conditions||{};const{span:A,updatedOptions:l}=Ua("PageBlobClient-getPageRanges",i);try{return await this.pageBlobContext.getPageRanges(Object.assign({abortSignal:i.abortSignal,leaseAccessConditions:i.conditions,modifiedAccessConditions:Object.assign(Object.assign({},i.conditions),{ifTags:(a=i.conditions)===null||a===void 0?void 0:a.tagConditions}),range:rangeToString({offset:r,count:s})},convertTracingToRequestOptionsBase(l))).then(rangeResponseFromModel)}catch(r){A.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{A.end()}}async listPageRangesSegment(r=0,s,i,a={}){var A;const{span:l,updatedOptions:d}=Ua("PageBlobClient-getPageRangesSegment",a);try{return await this.pageBlobContext.getPageRanges(Object.assign({abortSignal:a.abortSignal,leaseAccessConditions:a.conditions,modifiedAccessConditions:Object.assign(Object.assign({},a.conditions),{ifTags:(A=a.conditions)===null||A===void 0?void 0:A.tagConditions}),range:rangeToString({offset:r,count:s}),marker:i,maxPageSize:a.maxPageSize},convertTracingToRequestOptionsBase(d)))}catch(r){l.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{l.end()}}listPageRangeItemSegments(r=0,s,i,a={}){return A.__asyncGenerator(this,arguments,(function*listPageRangeItemSegments_1(){let c;if(!!i||i===undefined){do{c=yield A.__await(this.listPageRangesSegment(r,s,i,a));i=c.continuationToken;yield yield A.__await(yield A.__await(c))}while(i)}}))}listPageRangeItems(r=0,s,i={}){return A.__asyncGenerator(this,arguments,(function*listPageRangeItems_1(){var a,c;let l;try{for(var d=A.__asyncValues(this.listPageRangeItemSegments(r,s,l,i)),u;u=yield A.__await(d.next()),!u.done;){const r=u.value;yield A.__await(yield*A.__asyncDelegator(A.__asyncValues(ExtractPageRangeInfoItems(r))))}}catch(r){a={error:r}}finally{try{if(u&&!u.done&&(c=d.return))yield A.__await(c.call(d))}finally{if(a)throw a.error}}}))}listPageRanges(r=0,s,i={}){i.conditions=i.conditions||{};const a=this.listPageRangeItems(r,s,i);return{next(){return a.next()},[Symbol.asyncIterator](){return this},byPage:(a={})=>this.listPageRangeItemSegments(r,s,a.continuationToken,Object.assign({maxPageSize:a.maxPageSize},i))}}async getPageRangesDiff(r,s,i,a={}){var A;a.conditions=a.conditions||{};const{span:l,updatedOptions:d}=Ua("PageBlobClient-getPageRangesDiff",a);try{return await this.pageBlobContext.getPageRangesDiff(Object.assign({abortSignal:a.abortSignal,leaseAccessConditions:a.conditions,modifiedAccessConditions:Object.assign(Object.assign({},a.conditions),{ifTags:(A=a.conditions)===null||A===void 0?void 0:A.tagConditions}),prevsnapshot:i,range:rangeToString({offset:r,count:s})},convertTracingToRequestOptionsBase(d))).then(rangeResponseFromModel)}catch(r){l.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{l.end()}}async listPageRangesDiffSegment(r,s,i,a,A){var l;const{span:d,updatedOptions:u}=Ua("PageBlobClient-getPageRangesDiffSegment",A);try{return await this.pageBlobContext.getPageRangesDiff(Object.assign({abortSignal:A===null||A===void 0?void 0:A.abortSignal,leaseAccessConditions:A===null||A===void 0?void 0:A.conditions,modifiedAccessConditions:Object.assign(Object.assign({},A===null||A===void 0?void 0:A.conditions),{ifTags:(l=A===null||A===void 0?void 0:A.conditions)===null||l===void 0?void 0:l.tagConditions}),prevsnapshot:i,range:rangeToString({offset:r,count:s}),marker:a,maxPageSize:A===null||A===void 0?void 0:A.maxPageSize},convertTracingToRequestOptionsBase(u)))}catch(r){d.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{d.end()}}listPageRangeDiffItemSegments(r,s,i,a,c){return A.__asyncGenerator(this,arguments,(function*listPageRangeDiffItemSegments_1(){let l;if(!!a||a===undefined){do{l=yield A.__await(this.listPageRangesDiffSegment(r,s,i,a,c));a=l.continuationToken;yield yield A.__await(yield A.__await(l))}while(a)}}))}listPageRangeDiffItems(r,s,i,a){return A.__asyncGenerator(this,arguments,(function*listPageRangeDiffItems_1(){var c,l;let d;try{for(var u=A.__asyncValues(this.listPageRangeDiffItemSegments(r,s,i,d,a)),p;p=yield A.__await(u.next()),!p.done;){const r=p.value;yield A.__await(yield*A.__asyncDelegator(A.__asyncValues(ExtractPageRangeInfoItems(r))))}}catch(r){c={error:r}}finally{try{if(p&&!p.done&&(l=u.return))yield A.__await(l.call(u))}finally{if(c)throw c.error}}}))}listPageRangesDiff(r,s,i,a={}){a.conditions=a.conditions||{};const A=this.listPageRangeDiffItems(r,s,i,Object.assign({},a));return{next(){return A.next()},[Symbol.asyncIterator](){return this},byPage:(A={})=>this.listPageRangeDiffItemSegments(r,s,i,A.continuationToken,Object.assign({maxPageSize:A.maxPageSize},a))}}async getPageRangesDiffForManagedDisks(r,s,i,a={}){var A;a.conditions=a.conditions||{};const{span:l,updatedOptions:d}=Ua("PageBlobClient-GetPageRangesDiffForManagedDisks",a);try{return await this.pageBlobContext.getPageRangesDiff(Object.assign({abortSignal:a.abortSignal,leaseAccessConditions:a.conditions,modifiedAccessConditions:Object.assign(Object.assign({},a.conditions),{ifTags:(A=a.conditions)===null||A===void 0?void 0:A.tagConditions}),prevSnapshotUrl:i,range:rangeToString({offset:r,count:s})},convertTracingToRequestOptionsBase(d))).then(rangeResponseFromModel)}catch(r){l.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{l.end()}}async resize(r,s={}){var i;s.conditions=s.conditions||{};const{span:a,updatedOptions:A}=Ua("PageBlobClient-resize",s);try{return await this.pageBlobContext.resize(r,Object.assign({abortSignal:s.abortSignal,leaseAccessConditions:s.conditions,modifiedAccessConditions:Object.assign(Object.assign({},s.conditions),{ifTags:(i=s.conditions)===null||i===void 0?void 0:i.tagConditions}),encryptionScope:s.encryptionScope},convertTracingToRequestOptionsBase(A)))}catch(r){a.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{a.end()}}async updateSequenceNumber(r,s,i={}){var a;i.conditions=i.conditions||{};const{span:A,updatedOptions:l}=Ua("PageBlobClient-updateSequenceNumber",i);try{return await this.pageBlobContext.updateSequenceNumber(r,Object.assign({abortSignal:i.abortSignal,blobSequenceNumber:s,leaseAccessConditions:i.conditions,modifiedAccessConditions:Object.assign(Object.assign({},i.conditions),{ifTags:(a=i.conditions)===null||a===void 0?void 0:a.tagConditions})},convertTracingToRequestOptionsBase(l)))}catch(r){A.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{A.end()}}async startCopyIncremental(r,s={}){var i;const{span:a,updatedOptions:A}=Ua("PageBlobClient-startCopyIncremental",s);try{return await this.pageBlobContext.copyIncremental(r,Object.assign({abortSignal:s.abortSignal,modifiedAccessConditions:Object.assign(Object.assign({},s.conditions),{ifTags:(i=s.conditions)===null||i===void 0?void 0:i.tagConditions})},convertTracingToRequestOptionsBase(A)))}catch(r){a.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{a.end()}}}async function getBodyAsText(r){let s=Buffer.alloc(ba);const i=await streamToBuffer2(r.readableStreamBody,s);s=s.slice(0,i);return s.toString()}function utf8ByteLength(r){return Buffer.byteLength(r)}const tA=": ";const rA=" ";const nA=-1;class BatchResponseParser{constructor(r,s){if(!r||!r.contentType){throw new RangeError("batchResponse is malformed or doesn't contain valid content-type.")}if(!s||s.size===0){throw new RangeError("Invalid state: subRequests is not provided or size is 0.")}this.batchResponse=r;this.subRequests=s;this.responseBatchBoundary=this.batchResponse.contentType.split("=")[1];this.perResponsePrefix=`--${this.responseBatchBoundary}${Qa}`;this.batchResponseEnding=`--${this.responseBatchBoundary}--`}async parseBatchResponse(){if(this.batchResponse._response.status!==fa.HTTP_ACCEPTED){throw new Error(`Invalid state: batch request failed with status: '${this.batchResponse._response.status}'.`)}const r=await getBodyAsText(this.batchResponse);const s=r.split(this.batchResponseEnding)[0].split(this.perResponsePrefix).slice(1);const i=s.length;if(i!==this.subRequests.size&&i!==1){throw new Error("Invalid state: sub responses' count is not equal to sub requests' count.")}const A=new Array(i);let c=0;let l=0;for(let r=0;r=0&&C{if(this.keys[r]===undefined||this.keys[r]===sA.UNLOCKED){this.keys[r]=sA.LOCKED;s()}else{this.onUnlockEvent(r,(()=>{this.keys[r]=sA.LOCKED;s()}))}}))}static async unlock(r){return new Promise((s=>{if(this.keys[r]===sA.LOCKED){this.emitUnlockEvent(r)}delete this.keys[r];s()}))}static onUnlockEvent(r,s){if(this.listeners[r]===undefined){this.listeners[r]=[s]}else{this.listeners[r].push(s)}}static emitUnlockEvent(r){if(this.listeners[r]!==undefined&&this.listeners[r].length>0){const s=this.listeners[r].shift();setImmediate((()=>{s.call(this)}))}}}Mutex.keys={};Mutex.listeners={};class BlobBatch{constructor(){this.batch="batch";this.batchRequest=new InnerBatchRequest}getMultiPartContentType(){return this.batchRequest.getMultipartContentType()}getHttpRequestBody(){return this.batchRequest.getHttpRequestBody()}getSubRequests(){return this.batchRequest.getSubRequests()}async addSubRequestInternal(r,s){await Mutex.lock(this.batch);try{this.batchRequest.preAddSubRequest(r);await s();this.batchRequest.postAddSubRequest(r)}finally{await Mutex.unlock(this.batch)}}setBatchType(r){if(!this.batchType){this.batchType=r}if(this.batchType!==r){throw new RangeError(`BlobBatch only supports one operation type per batch and it already is being used for ${this.batchType} operations.`)}}async deleteBlob(r,s,i){let A;let l;if(typeof r==="string"&&(a.isNode&&s instanceof StorageSharedKeyCredential||s instanceof AnonymousCredential||a.isTokenCredential(s))){A=r;l=s}else if(r instanceof BlobClient){A=r.url;l=r.credential;i=s}else{throw new RangeError("Invalid arguments. Either url and credential, or BlobClient need be provided.")}if(!i){i={}}const{span:d,updatedOptions:u}=Ua("BatchDeleteRequest-addSubRequest",i);try{this.setBatchType("delete");await this.addSubRequestInternal({url:A,credential:l},(async()=>{await new BlobClient(A,this.batchRequest.createPipeline(l)).delete(u)}))}catch(r){d.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{d.end()}}async setBlobAccessTier(r,s,i,A){let l;let d;let u;if(typeof r==="string"&&(a.isNode&&s instanceof StorageSharedKeyCredential||s instanceof AnonymousCredential||a.isTokenCredential(s))){l=r;d=s;u=i}else if(r instanceof BlobClient){l=r.url;d=r.credential;u=s;A=i}else{throw new RangeError("Invalid arguments. Either url and credential, or BlobClient need be provided.")}if(!A){A={}}const{span:p,updatedOptions:g}=Ua("BatchSetTierRequest-addSubRequest",A);try{this.setBatchType("setAccessTier");await this.addSubRequestInternal({url:l,credential:d},(async()=>{await new BlobClient(l,this.batchRequest.createPipeline(d)).setAccessTier(u,g)}))}catch(r){p.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{p.end()}}}class InnerBatchRequest{constructor(){this.operationCount=0;this.body="";const r=a.generateUuid();this.boundary=`batch_${r}`;this.subRequestPrefix=`--${this.boundary}${Qa}${Ea.CONTENT_TYPE}: application/http${Qa}${Ea.CONTENT_TRANSFER_ENCODING}: binary`;this.multipartContentType=`multipart/mixed; boundary=${this.boundary}`;this.batchRequestEnding=`--${this.boundary}--`;this.subRequests=new Map}createPipeline(r){const s=r instanceof AnonymousCredential;const i=3+(s?0:1);const A=new Array(i);A[0]=a.deserializationPolicy();A[1]=new BatchHeaderFilterPolicyFactory;if(!s){A[2]=a.isTokenCredential(r)?attachCredential(a.bearerTokenAuthenticationPolicy(r,ha),r):r}A[i-1]=new BatchRequestAssemblePolicyFactory(this);return new Pipeline(A,{})}appendSubRequestToBody(r){this.body+=[this.subRequestPrefix,`${Ea.CONTENT_ID}: ${this.operationCount}`,"",`${r.method.toString()} ${getURLPathAndQuery(r.url)} ${wa}${Qa}`].join(Qa);for(const s of r.headers.headersArray()){this.body+=`${s.name}: ${s.value}${Qa}`}this.body+=Qa}preAddSubRequest(r){if(this.operationCount>=Ba){throw new RangeError(`Cannot exceed ${Ba} sub requests in a single batch`)}const s=getURLPath(r.url);if(!s||s===""){throw new RangeError(`Invalid url for sub request: '${r.url}'`)}}postAddSubRequest(r){this.subRequests.set(this.operationCount,r);this.operationCount++}getHttpRequestBody(){return`${this.body}${this.batchRequestEnding}${Qa}`}getMultipartContentType(){return this.multipartContentType}getSubRequests(){return this.subRequests}}class BatchRequestAssemblePolicy extends a.BaseRequestPolicy{constructor(r,s,i){super(s,i);this.dummyResponse={request:new a.WebResource,status:200,headers:new a.HttpHeaders};this.batchRequest=r}async sendRequest(r){await this.batchRequest.appendSubRequestToBody(r);return this.dummyResponse}}class BatchRequestAssemblePolicyFactory{constructor(r){this.batchRequest=r}create(r,s){return new BatchRequestAssemblePolicy(this.batchRequest,r,s)}}class BatchHeaderFilterPolicy extends a.BaseRequestPolicy{constructor(r,s){super(r,s)}async sendRequest(r){let s="";for(const i of r.headers.headersArray()){if(iEqual(i.name,Ea.X_MS_VERSION)){s=i.name}}if(s!==""){r.headers.remove(s)}return this._nextPolicy.sendRequest(r)}}class BatchHeaderFilterPolicyFactory{create(r,s){return new BatchHeaderFilterPolicy(r,s)}}class BlobBatchClient{constructor(r,s,i){let a;if(isPipelineLike(s)){a=s}else if(!s){a=newPipeline(new AnonymousCredential,i)}else{a=newPipeline(s,i)}const A=new StorageClientContext(r,a.toServiceClientOptions());const c=getURLPath(r);if(c&&c!=="/"){this.serviceOrContainerContext=new Container(A)}else{this.serviceOrContainerContext=new Service(A)}}createBatch(){return new BlobBatch}async deleteBlobs(r,s,i){const a=new BlobBatch;for(const A of r){if(typeof A==="string"){await a.deleteBlob(A,s,i)}else{await a.deleteBlob(A,s)}}return this.submitBatch(a)}async setBlobsAccessTier(r,s,i,a){const A=new BlobBatch;for(const c of r){if(typeof c==="string"){await A.setBlobAccessTier(c,s,i,a)}else{await A.setBlobAccessTier(c,s,i)}}return this.submitBatch(A)}async submitBatch(r,s={}){if(!r||r.getSubRequests().size===0){throw new RangeError("Batch request should contain one or more sub requests.")}const{span:i,updatedOptions:a}=Ua("BlobBatchClient-submitBatch",s);try{const i=r.getHttpRequestBody();const A=await this.serviceOrContainerContext.submitBatch(utf8ByteLength(i),r.getMultiPartContentType(),i,Object.assign(Object.assign({},s),convertTracingToRequestOptionsBase(a)));const c=new BatchResponseParser(A,r.getSubRequests());const l=await c.parseBatchResponse();const d={_response:A._response,contentType:A.contentType,errorCode:A.errorCode,requestId:A.requestId,clientRequestId:A.clientRequestId,version:A.version,subResponses:l.subResponses,subResponsesSucceededCount:l.subResponsesSucceededCount,subResponsesFailedCount:l.subResponsesFailedCount};return d}catch(r){i.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{i.end()}}}class ContainerClient extends StorageClient{constructor(r,s,i){let A;let c;i=i||{};if(isPipelineLike(s)){c=r;A=s}else if(a.isNode&&s instanceof StorageSharedKeyCredential||s instanceof AnonymousCredential||a.isTokenCredential(s)){c=r;A=newPipeline(s,i)}else if(!s&&typeof s!=="string"){c=r;A=newPipeline(new AnonymousCredential,i)}else if(s&&typeof s==="string"){const l=s;const d=extractConnectionStringParts(r);if(d.kind==="AccountConnString"){if(a.isNode){const r=new StorageSharedKeyCredential(d.accountName,d.accountKey);c=appendToURLPath(d.url,encodeURIComponent(l));if(!i.proxyOptions){i.proxyOptions=a.getDefaultProxySettings(d.proxyUri)}A=newPipeline(r,i)}else{throw new Error("Account connection string is only supported in Node.js environment")}}else if(d.kind==="SASConnString"){c=appendToURLPath(d.url,encodeURIComponent(l))+"?"+d.accountSas;A=newPipeline(new AnonymousCredential,i)}else{throw new Error("Connection string must be either an Account connection string or a SAS connection string")}}else{throw new Error("Expecting non-empty strings for containerName parameter")}super(c,A);this._containerName=this.getContainerNameFromUrl();this.containerContext=new Container(this.storageClientContext)}get containerName(){return this._containerName}async create(r={}){const{span:s,updatedOptions:i}=Ua("ContainerClient-create",r);try{return await this.containerContext.create(Object.assign(Object.assign({},r),convertTracingToRequestOptionsBase(i)))}catch(r){s.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{s.end()}}async createIfNotExists(r={}){var s,i;const{span:a,updatedOptions:A}=Ua("ContainerClient-createIfNotExists",r);try{const r=await this.create(A);return Object.assign(Object.assign({succeeded:true},r),{_response:r._response})}catch(r){if(((s=r.details)===null||s===void 0?void 0:s.errorCode)==="ContainerAlreadyExists"){a.setStatus({code:c.SpanStatusCode.ERROR,message:"Expected exception when creating a container only if it does not already exist."});return Object.assign(Object.assign({succeeded:false},(i=r.response)===null||i===void 0?void 0:i.parsedHeaders),{_response:r.response})}a.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{a.end()}}async exists(r={}){const{span:s,updatedOptions:i}=Ua("ContainerClient-exists",r);try{await this.getProperties({abortSignal:r.abortSignal,tracingOptions:i.tracingOptions});return true}catch(r){if(r.statusCode===404){s.setStatus({code:c.SpanStatusCode.ERROR,message:"Expected exception when checking container existence"});return false}s.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{s.end()}}getBlobClient(r){return new BlobClient(appendToURLPath(this.url,EscapePath(r)),this.pipeline)}getAppendBlobClient(r){return new AppendBlobClient(appendToURLPath(this.url,EscapePath(r)),this.pipeline)}getBlockBlobClient(r){return new BlockBlobClient(appendToURLPath(this.url,EscapePath(r)),this.pipeline)}getPageBlobClient(r){return new PageBlobClient(appendToURLPath(this.url,EscapePath(r)),this.pipeline)}async getProperties(r={}){if(!r.conditions){r.conditions={}}const{span:s,updatedOptions:i}=Ua("ContainerClient-getProperties",r);try{return await this.containerContext.getProperties(Object.assign(Object.assign({abortSignal:r.abortSignal},r.conditions),convertTracingToRequestOptionsBase(i)))}catch(r){s.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{s.end()}}async delete(r={}){if(!r.conditions){r.conditions={}}const{span:s,updatedOptions:i}=Ua("ContainerClient-delete",r);try{return await this.containerContext.delete(Object.assign({abortSignal:r.abortSignal,leaseAccessConditions:r.conditions,modifiedAccessConditions:r.conditions},convertTracingToRequestOptionsBase(i)))}catch(r){s.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{s.end()}}async deleteIfExists(r={}){var s,i;const{span:a,updatedOptions:A}=Ua("ContainerClient-deleteIfExists",r);try{const r=await this.delete(A);return Object.assign(Object.assign({succeeded:true},r),{_response:r._response})}catch(r){if(((s=r.details)===null||s===void 0?void 0:s.errorCode)==="ContainerNotFound"){a.setStatus({code:c.SpanStatusCode.ERROR,message:"Expected exception when deleting a container only if it exists."});return Object.assign(Object.assign({succeeded:false},(i=r.response)===null||i===void 0?void 0:i.parsedHeaders),{_response:r.response})}a.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{a.end()}}async setMetadata(r,s={}){if(!s.conditions){s.conditions={}}if(s.conditions.ifUnmodifiedSince){throw new RangeError("the IfUnmodifiedSince must have their default values because they are ignored by the blob service")}const{span:i,updatedOptions:a}=Ua("ContainerClient-setMetadata",s);try{return await this.containerContext.setMetadata(Object.assign({abortSignal:s.abortSignal,leaseAccessConditions:s.conditions,metadata:r,modifiedAccessConditions:s.conditions},convertTracingToRequestOptionsBase(a)))}catch(r){i.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{i.end()}}async getAccessPolicy(r={}){if(!r.conditions){r.conditions={}}const{span:s,updatedOptions:i}=Ua("ContainerClient-getAccessPolicy",r);try{const s=await this.containerContext.getAccessPolicy(Object.assign({abortSignal:r.abortSignal,leaseAccessConditions:r.conditions},convertTracingToRequestOptionsBase(i)));const a={_response:s._response,blobPublicAccess:s.blobPublicAccess,date:s.date,etag:s.etag,errorCode:s.errorCode,lastModified:s.lastModified,requestId:s.requestId,clientRequestId:s.clientRequestId,signedIdentifiers:[],version:s.version};for(const r of s){let s=undefined;if(r.accessPolicy){s={permissions:r.accessPolicy.permissions};if(r.accessPolicy.expiresOn){s.expiresOn=new Date(r.accessPolicy.expiresOn)}if(r.accessPolicy.startsOn){s.startsOn=new Date(r.accessPolicy.startsOn)}}a.signedIdentifiers.push({accessPolicy:s,id:r.id})}return a}catch(r){s.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{s.end()}}async setAccessPolicy(r,s,i={}){i.conditions=i.conditions||{};const{span:a,updatedOptions:A}=Ua("ContainerClient-setAccessPolicy",i);try{const a=[];for(const r of s||[]){a.push({accessPolicy:{expiresOn:r.accessPolicy.expiresOn?truncatedISO8061Date(r.accessPolicy.expiresOn):"",permissions:r.accessPolicy.permissions,startsOn:r.accessPolicy.startsOn?truncatedISO8061Date(r.accessPolicy.startsOn):""},id:r.id})}return await this.containerContext.setAccessPolicy(Object.assign({abortSignal:i.abortSignal,access:r,containerAcl:a,leaseAccessConditions:i.conditions,modifiedAccessConditions:i.conditions},convertTracingToRequestOptionsBase(A)))}catch(r){a.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{a.end()}}getBlobLeaseClient(r){return new BlobLeaseClient(this,r)}async uploadBlockBlob(r,s,i,a={}){const{span:A,updatedOptions:l}=Ua("ContainerClient-uploadBlockBlob",a);try{const a=this.getBlockBlobClient(r);const A=await a.upload(s,i,l);return{blockBlobClient:a,response:A}}catch(r){A.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{A.end()}}async deleteBlob(r,s={}){const{span:i,updatedOptions:a}=Ua("ContainerClient-deleteBlob",s);try{let i=this.getBlobClient(r);if(s.versionId){i=i.withVersion(s.versionId)}return await i.delete(a)}catch(r){i.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{i.end()}}async listBlobFlatSegment(r,s={}){const{span:i,updatedOptions:a}=Ua("ContainerClient-listBlobFlatSegment",s);try{const i=await this.containerContext.listBlobFlatSegment(Object.assign(Object.assign({marker:r},s),convertTracingToRequestOptionsBase(a)));const A=Object.assign(Object.assign({},i),{_response:Object.assign(Object.assign({},i._response),{parsedBody:ConvertInternalResponseOfListBlobFlat(i._response.parsedBody)}),segment:Object.assign(Object.assign({},i.segment),{blobItems:i.segment.blobItems.map((r=>{const s=Object.assign(Object.assign({},r),{name:BlobNameToString(r.name),tags:toTags(r.blobTags),objectReplicationSourceProperties:parseObjectReplicationRecord(r.objectReplicationMetadata)});return s}))})});return A}catch(r){i.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{i.end()}}async listBlobHierarchySegment(r,s,i={}){var a;const{span:A,updatedOptions:l}=Ua("ContainerClient-listBlobHierarchySegment",i);try{const A=await this.containerContext.listBlobHierarchySegment(r,Object.assign(Object.assign({marker:s},i),convertTracingToRequestOptionsBase(l)));const c=Object.assign(Object.assign({},A),{_response:Object.assign(Object.assign({},A._response),{parsedBody:ConvertInternalResponseOfListBlobHierarchy(A._response.parsedBody)}),segment:Object.assign(Object.assign({},A.segment),{blobItems:A.segment.blobItems.map((r=>{const s=Object.assign(Object.assign({},r),{name:BlobNameToString(r.name),tags:toTags(r.blobTags),objectReplicationSourceProperties:parseObjectReplicationRecord(r.objectReplicationMetadata)});return s})),blobPrefixes:(a=A.segment.blobPrefixes)===null||a===void 0?void 0:a.map((r=>{const s=Object.assign(Object.assign({},r),{name:BlobNameToString(r.name)});return s}))})});return c}catch(r){A.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{A.end()}}listSegments(r,s={}){return A.__asyncGenerator(this,arguments,(function*listSegments_1(){let i;if(!!r||r===undefined){do{i=yield A.__await(this.listBlobFlatSegment(r,s));r=i.continuationToken;yield yield A.__await(yield A.__await(i))}while(r)}}))}listItems(r={}){return A.__asyncGenerator(this,arguments,(function*listItems_1(){var s,i;let a;try{for(var c=A.__asyncValues(this.listSegments(a,r)),l;l=yield A.__await(c.next()),!l.done;){const r=l.value;yield A.__await(yield*A.__asyncDelegator(A.__asyncValues(r.segment.blobItems)))}}catch(r){s={error:r}}finally{try{if(l&&!l.done&&(i=c.return))yield A.__await(i.call(c))}finally{if(s)throw s.error}}}))}listBlobsFlat(r={}){const s=[];if(r.includeCopy){s.push("copy")}if(r.includeDeleted){s.push("deleted")}if(r.includeMetadata){s.push("metadata")}if(r.includeSnapshots){s.push("snapshots")}if(r.includeVersions){s.push("versions")}if(r.includeUncommitedBlobs){s.push("uncommittedblobs")}if(r.includeTags){s.push("tags")}if(r.includeDeletedWithVersions){s.push("deletedwithversions")}if(r.includeImmutabilityPolicy){s.push("immutabilitypolicy")}if(r.includeLegalHold){s.push("legalhold")}if(r.prefix===""){r.prefix=undefined}const i=Object.assign(Object.assign({},r),s.length>0?{include:s}:{});const a=this.listItems(i);return{next(){return a.next()},[Symbol.asyncIterator](){return this},byPage:(r={})=>this.listSegments(r.continuationToken,Object.assign({maxPageSize:r.maxPageSize},i))}}listHierarchySegments(r,s,i={}){return A.__asyncGenerator(this,arguments,(function*listHierarchySegments_1(){let a;if(!!s||s===undefined){do{a=yield A.__await(this.listBlobHierarchySegment(r,s,i));s=a.continuationToken;yield yield A.__await(yield A.__await(a))}while(s)}}))}listItemsByHierarchy(r,s={}){return A.__asyncGenerator(this,arguments,(function*listItemsByHierarchy_1(){var i,a;let c;try{for(var l=A.__asyncValues(this.listHierarchySegments(r,c,s)),d;d=yield A.__await(l.next()),!d.done;){const r=d.value;const s=r.segment;if(s.blobPrefixes){for(const r of s.blobPrefixes){yield yield A.__await(Object.assign({kind:"prefix"},r))}}for(const r of s.blobItems){yield yield A.__await(Object.assign({kind:"blob"},r))}}}catch(r){i={error:r}}finally{try{if(d&&!d.done&&(a=l.return))yield A.__await(a.call(l))}finally{if(i)throw i.error}}}))}listBlobsByHierarchy(r,s={}){if(r===""){throw new RangeError("delimiter should contain one or more characters")}const i=[];if(s.includeCopy){i.push("copy")}if(s.includeDeleted){i.push("deleted")}if(s.includeMetadata){i.push("metadata")}if(s.includeSnapshots){i.push("snapshots")}if(s.includeVersions){i.push("versions")}if(s.includeUncommitedBlobs){i.push("uncommittedblobs")}if(s.includeTags){i.push("tags")}if(s.includeDeletedWithVersions){i.push("deletedwithversions")}if(s.includeImmutabilityPolicy){i.push("immutabilitypolicy")}if(s.includeLegalHold){i.push("legalhold")}if(s.prefix===""){s.prefix=undefined}const a=Object.assign(Object.assign({},s),i.length>0?{include:i}:{});const A=this.listItemsByHierarchy(r,a);return{async next(){return A.next()},[Symbol.asyncIterator](){return this},byPage:(s={})=>this.listHierarchySegments(r,s.continuationToken,Object.assign({maxPageSize:s.maxPageSize},a))}}async findBlobsByTagsSegment(r,s,i={}){const{span:a,updatedOptions:A}=Ua("ContainerClient-findBlobsByTagsSegment",i);try{const a=await this.containerContext.filterBlobs(Object.assign({abortSignal:i.abortSignal,where:r,marker:s,maxPageSize:i.maxPageSize},convertTracingToRequestOptionsBase(A)));const c=Object.assign(Object.assign({},a),{_response:a._response,blobs:a.blobs.map((r=>{var s;let i="";if(((s=r.tags)===null||s===void 0?void 0:s.blobTagSet.length)===1){i=r.tags.blobTagSet[0].value}return Object.assign(Object.assign({},r),{tags:toTags(r.tags),tagValue:i})}))});return c}catch(r){a.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{a.end()}}findBlobsByTagsSegments(r,s,i={}){return A.__asyncGenerator(this,arguments,(function*findBlobsByTagsSegments_1(){let a;if(!!s||s===undefined){do{a=yield A.__await(this.findBlobsByTagsSegment(r,s,i));a.blobs=a.blobs||[];s=a.continuationToken;yield yield A.__await(a)}while(s)}}))}findBlobsByTagsItems(r,s={}){return A.__asyncGenerator(this,arguments,(function*findBlobsByTagsItems_1(){var i,a;let c;try{for(var l=A.__asyncValues(this.findBlobsByTagsSegments(r,c,s)),d;d=yield A.__await(l.next()),!d.done;){const r=d.value;yield A.__await(yield*A.__asyncDelegator(A.__asyncValues(r.blobs)))}}catch(r){i={error:r}}finally{try{if(d&&!d.done&&(a=l.return))yield A.__await(a.call(l))}finally{if(i)throw i.error}}}))}findBlobsByTags(r,s={}){const i=Object.assign({},s);const a=this.findBlobsByTagsItems(r,i);return{next(){return a.next()},[Symbol.asyncIterator](){return this},byPage:(s={})=>this.findBlobsByTagsSegments(r,s.continuationToken,Object.assign({maxPageSize:s.maxPageSize},i))}}getContainerNameFromUrl(){let r;try{const s=a.URLBuilder.parse(this.url);if(s.getHost().split(".")[1]==="blob"){r=s.getPath().split("/")[1]}else if(isIpEndpointStyle(s)){r=s.getPath().split("/")[2]}else{r=s.getPath().split("/")[1]}r=decodeURIComponent(r);if(!r){throw new Error("Provided containerName is invalid.")}return r}catch(r){throw new Error("Unable to extract containerName with provided information.")}}generateSasUrl(r){return new Promise((s=>{if(!(this.credential instanceof StorageSharedKeyCredential)){throw new RangeError("Can only generate the SAS when the client is initialized with a shared key credential")}const i=generateBlobSASQueryParameters(Object.assign({containerName:this._containerName},r),this.credential).toString();s(appendToURLQuery(this.url,i))}))}getBlobBatchClient(){return new BlobBatchClient(this.url,this.pipeline)}}class AccountSASPermissions{constructor(){this.read=false;this.write=false;this.delete=false;this.deleteVersion=false;this.list=false;this.add=false;this.create=false;this.update=false;this.process=false;this.tag=false;this.filter=false;this.setImmutabilityPolicy=false;this.permanentDelete=false}static parse(r){const s=new AccountSASPermissions;for(const i of r){switch(i){case"r":s.read=true;break;case"w":s.write=true;break;case"d":s.delete=true;break;case"x":s.deleteVersion=true;break;case"l":s.list=true;break;case"a":s.add=true;break;case"c":s.create=true;break;case"u":s.update=true;break;case"p":s.process=true;break;case"t":s.tag=true;break;case"f":s.filter=true;break;case"i":s.setImmutabilityPolicy=true;break;case"y":s.permanentDelete=true;break;default:throw new RangeError(`Invalid permission character: ${i}`)}}return s}static from(r){const s=new AccountSASPermissions;if(r.read){s.read=true}if(r.write){s.write=true}if(r.delete){s.delete=true}if(r.deleteVersion){s.deleteVersion=true}if(r.filter){s.filter=true}if(r.tag){s.tag=true}if(r.list){s.list=true}if(r.add){s.add=true}if(r.create){s.create=true}if(r.update){s.update=true}if(r.process){s.process=true}if(r.setImmutabilityPolicy){s.setImmutabilityPolicy=true}if(r.permanentDelete){s.permanentDelete=true}return s}toString(){const r=[];if(this.read){r.push("r")}if(this.write){r.push("w")}if(this.delete){r.push("d")}if(this.deleteVersion){r.push("x")}if(this.filter){r.push("f")}if(this.tag){r.push("t")}if(this.list){r.push("l")}if(this.add){r.push("a")}if(this.create){r.push("c")}if(this.update){r.push("u")}if(this.process){r.push("p")}if(this.setImmutabilityPolicy){r.push("i")}if(this.permanentDelete){r.push("y")}return r.join("")}}class AccountSASResourceTypes{constructor(){this.service=false;this.container=false;this.object=false}static parse(r){const s=new AccountSASResourceTypes;for(const i of r){switch(i){case"s":s.service=true;break;case"c":s.container=true;break;case"o":s.object=true;break;default:throw new RangeError(`Invalid resource type: ${i}`)}}return s}toString(){const r=[];if(this.service){r.push("s")}if(this.container){r.push("c")}if(this.object){r.push("o")}return r.join("")}}class AccountSASServices{constructor(){this.blob=false;this.file=false;this.queue=false;this.table=false}static parse(r){const s=new AccountSASServices;for(const i of r){switch(i){case"b":s.blob=true;break;case"f":s.file=true;break;case"q":s.queue=true;break;case"t":s.table=true;break;default:throw new RangeError(`Invalid service character: ${i}`)}}return s}toString(){const r=[];if(this.blob){r.push("b")}if(this.table){r.push("t")}if(this.queue){r.push("q")}if(this.file){r.push("f")}return r.join("")}}function generateAccountSASQueryParameters(r,s){const i=r.version?r.version:aa;if(r.permissions&&r.permissions.setImmutabilityPolicy&&i<"2020-08-04"){throw RangeError("'version' must be >= '2020-08-04' when provided 'i' permission.")}if(r.permissions&&r.permissions.deleteVersion&&i<"2019-10-10"){throw RangeError("'version' must be >= '2019-10-10' when provided 'x' permission.")}if(r.permissions&&r.permissions.permanentDelete&&i<"2019-10-10"){throw RangeError("'version' must be >= '2019-10-10' when provided 'y' permission.")}if(r.permissions&&r.permissions.tag&&i<"2019-12-12"){throw RangeError("'version' must be >= '2019-12-12' when provided 't' permission.")}if(r.permissions&&r.permissions.filter&&i<"2019-12-12"){throw RangeError("'version' must be >= '2019-12-12' when provided 'f' permission.")}if(r.encryptionScope&&i<"2020-12-06"){throw RangeError("'version' must be >= '2020-12-06' when provided 'encryptionScope' in SAS.")}const a=AccountSASPermissions.parse(r.permissions.toString());const A=AccountSASServices.parse(r.services).toString();const c=AccountSASResourceTypes.parse(r.resourceTypes).toString();let l;if(i>="2020-12-06"){l=[s.accountName,a,A,c,r.startsOn?truncatedISO8061Date(r.startsOn,false):"",truncatedISO8061Date(r.expiresOn,false),r.ipRange?ipRangeToString(r.ipRange):"",r.protocol?r.protocol:"",i,r.encryptionScope?r.encryptionScope:"",""].join("\n")}else{l=[s.accountName,a,A,c,r.startsOn?truncatedISO8061Date(r.startsOn,false):"",truncatedISO8061Date(r.expiresOn,false),r.ipRange?ipRangeToString(r.ipRange):"",r.protocol?r.protocol:"",i,""].join("\n")}const d=s.computeHMACSHA256(l);return new SASQueryParameters(i,d,a.toString(),A,c,r.protocol,r.startsOn,r.expiresOn,r.ipRange,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,r.encryptionScope)}class BlobServiceClient extends StorageClient{constructor(r,s,i){let A;if(isPipelineLike(s)){A=s}else if(a.isNode&&s instanceof StorageSharedKeyCredential||s instanceof AnonymousCredential||a.isTokenCredential(s)){A=newPipeline(s,i)}else{A=newPipeline(new AnonymousCredential,i)}super(r,A);this.serviceContext=new Service(this.storageClientContext)}static fromConnectionString(r,s){s=s||{};const i=extractConnectionStringParts(r);if(i.kind==="AccountConnString"){if(a.isNode){const r=new StorageSharedKeyCredential(i.accountName,i.accountKey);if(!s.proxyOptions){s.proxyOptions=a.getDefaultProxySettings(i.proxyUri)}const A=newPipeline(r,s);return new BlobServiceClient(i.url,A)}else{throw new Error("Account connection string is only supported in Node.js environment")}}else if(i.kind==="SASConnString"){const r=newPipeline(new AnonymousCredential,s);return new BlobServiceClient(i.url+"?"+i.accountSas,r)}else{throw new Error("Connection string must be either an Account connection string or a SAS connection string")}}getContainerClient(r){return new ContainerClient(appendToURLPath(this.url,encodeURIComponent(r)),this.pipeline)}async createContainer(r,s={}){const{span:i,updatedOptions:a}=Ua("BlobServiceClient-createContainer",s);try{const s=this.getContainerClient(r);const i=await s.create(a);return{containerClient:s,containerCreateResponse:i}}catch(r){i.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{i.end()}}async deleteContainer(r,s={}){const{span:i,updatedOptions:a}=Ua("BlobServiceClient-deleteContainer",s);try{const s=this.getContainerClient(r);return await s.delete(a)}catch(r){i.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{i.end()}}async undeleteContainer(r,s,i={}){const{span:a,updatedOptions:A}=Ua("BlobServiceClient-undeleteContainer",i);try{const a=this.getContainerClient(i.destinationContainerName||r);const c=new Container(a["storageClientContext"]);const l=await c.restore(Object.assign({deletedContainerName:r,deletedContainerVersion:s},A));return{containerClient:a,containerUndeleteResponse:l}}catch(r){a.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{a.end()}}async renameContainer(r,s,i={}){var a;const{span:A,updatedOptions:l}=Ua("BlobServiceClient-renameContainer",i);try{const A=this.getContainerClient(s);const c=new Container(A["storageClientContext"]);const d=await c.rename(r,Object.assign(Object.assign({},l),{sourceLeaseId:(a=i.sourceCondition)===null||a===void 0?void 0:a.leaseId}));return{containerClient:A,containerRenameResponse:d}}catch(r){A.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{A.end()}}async getProperties(r={}){const{span:s,updatedOptions:i}=Ua("BlobServiceClient-getProperties",r);try{return await this.serviceContext.getProperties(Object.assign({abortSignal:r.abortSignal},convertTracingToRequestOptionsBase(i)))}catch(r){s.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{s.end()}}async setProperties(r,s={}){const{span:i,updatedOptions:a}=Ua("BlobServiceClient-setProperties",s);try{return await this.serviceContext.setProperties(r,Object.assign({abortSignal:s.abortSignal},convertTracingToRequestOptionsBase(a)))}catch(r){i.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{i.end()}}async getStatistics(r={}){const{span:s,updatedOptions:i}=Ua("BlobServiceClient-getStatistics",r);try{return await this.serviceContext.getStatistics(Object.assign({abortSignal:r.abortSignal},convertTracingToRequestOptionsBase(i)))}catch(r){s.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{s.end()}}async getAccountInfo(r={}){const{span:s,updatedOptions:i}=Ua("BlobServiceClient-getAccountInfo",r);try{return await this.serviceContext.getAccountInfo(Object.assign({abortSignal:r.abortSignal},convertTracingToRequestOptionsBase(i)))}catch(r){s.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{s.end()}}async listContainersSegment(r,s={}){const{span:i,updatedOptions:a}=Ua("BlobServiceClient-listContainersSegment",s);try{return await this.serviceContext.listContainersSegment(Object.assign(Object.assign(Object.assign({abortSignal:s.abortSignal,marker:r},s),{include:typeof s.include==="string"?[s.include]:s.include}),convertTracingToRequestOptionsBase(a)))}catch(r){i.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{i.end()}}async findBlobsByTagsSegment(r,s,i={}){const{span:a,updatedOptions:A}=Ua("BlobServiceClient-findBlobsByTagsSegment",i);try{const a=await this.serviceContext.filterBlobs(Object.assign({abortSignal:i.abortSignal,where:r,marker:s,maxPageSize:i.maxPageSize},convertTracingToRequestOptionsBase(A)));const c=Object.assign(Object.assign({},a),{_response:a._response,blobs:a.blobs.map((r=>{var s;let i="";if(((s=r.tags)===null||s===void 0?void 0:s.blobTagSet.length)===1){i=r.tags.blobTagSet[0].value}return Object.assign(Object.assign({},r),{tags:toTags(r.tags),tagValue:i})}))});return c}catch(r){a.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{a.end()}}findBlobsByTagsSegments(r,s,i={}){return A.__asyncGenerator(this,arguments,(function*findBlobsByTagsSegments_1(){let a;if(!!s||s===undefined){do{a=yield A.__await(this.findBlobsByTagsSegment(r,s,i));a.blobs=a.blobs||[];s=a.continuationToken;yield yield A.__await(a)}while(s)}}))}findBlobsByTagsItems(r,s={}){return A.__asyncGenerator(this,arguments,(function*findBlobsByTagsItems_1(){var i,a;let c;try{for(var l=A.__asyncValues(this.findBlobsByTagsSegments(r,c,s)),d;d=yield A.__await(l.next()),!d.done;){const r=d.value;yield A.__await(yield*A.__asyncDelegator(A.__asyncValues(r.blobs)))}}catch(r){i={error:r}}finally{try{if(d&&!d.done&&(a=l.return))yield A.__await(a.call(l))}finally{if(i)throw i.error}}}))}findBlobsByTags(r,s={}){const i=Object.assign({},s);const a=this.findBlobsByTagsItems(r,i);return{next(){return a.next()},[Symbol.asyncIterator](){return this},byPage:(s={})=>this.findBlobsByTagsSegments(r,s.continuationToken,Object.assign({maxPageSize:s.maxPageSize},i))}}listSegments(r,s={}){return A.__asyncGenerator(this,arguments,(function*listSegments_1(){let i;if(!!r||r===undefined){do{i=yield A.__await(this.listContainersSegment(r,s));i.containerItems=i.containerItems||[];r=i.continuationToken;yield yield A.__await(yield A.__await(i))}while(r)}}))}listItems(r={}){return A.__asyncGenerator(this,arguments,(function*listItems_1(){var s,i;let a;try{for(var c=A.__asyncValues(this.listSegments(a,r)),l;l=yield A.__await(c.next()),!l.done;){const r=l.value;yield A.__await(yield*A.__asyncDelegator(A.__asyncValues(r.containerItems)))}}catch(r){s={error:r}}finally{try{if(l&&!l.done&&(i=c.return))yield A.__await(i.call(c))}finally{if(s)throw s.error}}}))}listContainers(r={}){if(r.prefix===""){r.prefix=undefined}const s=[];if(r.includeDeleted){s.push("deleted")}if(r.includeMetadata){s.push("metadata")}if(r.includeSystem){s.push("system")}const i=Object.assign(Object.assign({},r),s.length>0?{include:s}:{});const a=this.listItems(i);return{next(){return a.next()},[Symbol.asyncIterator](){return this},byPage:(r={})=>this.listSegments(r.continuationToken,Object.assign({maxPageSize:r.maxPageSize},i))}}async getUserDelegationKey(r,s,i={}){const{span:a,updatedOptions:A}=Ua("BlobServiceClient-getUserDelegationKey",i);try{const a=await this.serviceContext.getUserDelegationKey({startsOn:truncatedISO8061Date(r,false),expiresOn:truncatedISO8061Date(s,false)},Object.assign({abortSignal:i.abortSignal},convertTracingToRequestOptionsBase(A)));const c={signedObjectId:a.signedObjectId,signedTenantId:a.signedTenantId,signedStartsOn:new Date(a.signedStartsOn),signedExpiresOn:new Date(a.signedExpiresOn),signedService:a.signedService,signedVersion:a.signedVersion,value:a.value};const l=Object.assign({_response:a._response,requestId:a.requestId,clientRequestId:a.clientRequestId,version:a.version,date:a.date,errorCode:a.errorCode},c);return l}catch(r){a.setStatus({code:c.SpanStatusCode.ERROR,message:r.message});throw r}finally{a.end()}}getBlobBatchClient(){return new BlobBatchClient(this.url,this.pipeline)}generateAccountSasUrl(r,s=AccountSASPermissions.parse("r"),i="sco",a={}){if(!(this.credential instanceof StorageSharedKeyCredential)){throw RangeError("Can only generate the account SAS when the client is initialized with a shared key credential")}if(r===undefined){const s=new Date;r=new Date(s.getTime()+3600*1e3)}const A=generateAccountSASQueryParameters(Object.assign({permissions:s,expiresOn:r,resourceTypes:i,services:AccountSASServices.parse("b").toString()},a),this.credential).toString();return appendToURLQuery(this.url,A)}}s.KnownEncryptionAlgorithmType=void 0;(function(r){r["AES256"]="AES256"})(s.KnownEncryptionAlgorithmType||(s.KnownEncryptionAlgorithmType={}));Object.defineProperty(s,"BaseRequestPolicy",{enumerable:true,get:function(){return a.BaseRequestPolicy}});Object.defineProperty(s,"HttpHeaders",{enumerable:true,get:function(){return a.HttpHeaders}});Object.defineProperty(s,"RequestPolicyOptions",{enumerable:true,get:function(){return a.RequestPolicyOptions}});Object.defineProperty(s,"RestError",{enumerable:true,get:function(){return a.RestError}});Object.defineProperty(s,"WebResource",{enumerable:true,get:function(){return a.WebResource}});Object.defineProperty(s,"deserializationPolicy",{enumerable:true,get:function(){return a.deserializationPolicy}});s.AccountSASPermissions=AccountSASPermissions;s.AccountSASResourceTypes=AccountSASResourceTypes;s.AccountSASServices=AccountSASServices;s.AnonymousCredential=AnonymousCredential;s.AnonymousCredentialPolicy=AnonymousCredentialPolicy;s.AppendBlobClient=AppendBlobClient;s.BlobBatch=BlobBatch;s.BlobBatchClient=BlobBatchClient;s.BlobClient=BlobClient;s.BlobLeaseClient=BlobLeaseClient;s.BlobSASPermissions=BlobSASPermissions;s.BlobServiceClient=BlobServiceClient;s.BlockBlobClient=BlockBlobClient;s.ContainerClient=ContainerClient;s.ContainerSASPermissions=ContainerSASPermissions;s.Credential=Credential;s.CredentialPolicy=CredentialPolicy;s.PageBlobClient=PageBlobClient;s.Pipeline=Pipeline;s.SASQueryParameters=SASQueryParameters;s.StorageBrowserPolicy=StorageBrowserPolicy;s.StorageBrowserPolicyFactory=StorageBrowserPolicyFactory;s.StorageOAuthScopes=ha;s.StorageRetryPolicy=StorageRetryPolicy;s.StorageRetryPolicyFactory=StorageRetryPolicyFactory;s.StorageSharedKeyCredential=StorageSharedKeyCredential;s.StorageSharedKeyCredentialPolicy=StorageSharedKeyCredentialPolicy;s.generateAccountSASQueryParameters=generateAccountSASQueryParameters;s.generateBlobSASQueryParameters=generateBlobSASQueryParameters;s.getBlobServiceAccountAudience=getBlobServiceAccountAudience;s.isPipelineLike=isPipelineLike;s.logger=ia;s.newPipeline=newPipeline},91455:function(r,s,i){"use strict";var a=this&&this.__createBinding||(Object.create?function(r,s,i,a){if(a===undefined)a=i;var A=Object.getOwnPropertyDescriptor(s,i);if(!A||("get"in A?!s.__esModule:A.writable||A.configurable)){A={enumerable:true,get:function(){return s[i]}}}Object.defineProperty(r,a,A)}:function(r,s,i,a){if(a===undefined)a=i;r[a]=s[i]});var A=this&&this.__setModuleDefault||(Object.create?function(r,s){Object.defineProperty(r,"default",{enumerable:true,value:s})}:function(r,s){r["default"]=s});var c=this&&this.__importStar||function(r){if(r&&r.__esModule)return r;var s={};if(r!=null)for(var i in r)if(i!=="default"&&Object.prototype.hasOwnProperty.call(r,i))a(s,r,i);A(s,r);return s};var l=this&&this.__awaiter||function(r,s,i,a){function adopt(r){return r instanceof i?r:new i((function(s){s(r)}))}return new(i||(i=Promise))((function(i,A){function fulfilled(r){try{step(a.next(r))}catch(r){A(r)}}function rejected(r){try{step(a["throw"](r))}catch(r){A(r)}}function step(r){r.done?i(r.value):adopt(r.value).then(fulfilled,rejected)}step((a=a.apply(r,s||[])).next())}))};var d=this&&this.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(s,"__esModule",{value:true});s.Cache=void 0;const u=d(i(57147));const p=d(i(22037));const g=d(i(71017));const h=c(i(42186));const C=c(i(27784));const y=c(i(27799));const I=c(i(73837));class Cache{constructor(r){this.opts=r;this.ghaCacheKey=I.format("%s-%s-%s",this.opts.htcName,this.opts.htcVersion,this.platform());this.ghaNoCache=this.opts.ghaNoCache;this.cacheDir=g.default.join(this.opts.baseCacheDir,this.opts.htcVersion,this.platform());this.cachePath=g.default.join(this.cacheDir,this.opts.cacheFile);if(!u.default.existsSync(this.cacheDir)){u.default.mkdirSync(this.cacheDir,{recursive:true})}}save(r,s){return l(this,void 0,void 0,(function*(){h.debug(`Cache.save ${r}`);const i=this.copyToCache(r);const a=yield C.cacheDir(this.cacheDir,this.opts.htcName,this.opts.htcVersion,this.platform());h.debug(`Cache.save cached to hosted tool cache ${a}`);if(!this.ghaNoCache&&y.isFeatureAvailable()){if(s){h.debug(`Cache.save caching ${this.ghaCacheKey} to GitHub Actions cache`);yield y.saveCache([this.cacheDir],this.ghaCacheKey)}else{h.debug(`Cache.save sending ${this.ghaCacheKey} to post state`);h.saveState(Cache.POST_CACHE_KEY,JSON.stringify({dir:this.cacheDir,key:this.ghaCacheKey}))}}return i}))}find(){return l(this,void 0,void 0,(function*(){let r=C.find(this.opts.htcName,this.opts.htcVersion,this.platform());if(r){h.info(`Restored from hosted tool cache ${r}`);return this.copyToCache(`${r}/${this.opts.cacheFile}`)}if(!this.ghaNoCache&&y.isFeatureAvailable()){h.debug(`GitHub Actions cache feature available`);if(yield y.restoreCache([this.cacheDir],this.ghaCacheKey)){h.info(`Restored ${this.ghaCacheKey} from GitHub Actions cache`);r=yield C.cacheDir(this.cacheDir,this.opts.htcName,this.opts.htcVersion,this.platform());h.info(`Cached to hosted tool cache ${r}`);return this.copyToCache(`${r}/${this.opts.cacheFile}`)}}else if(this.ghaNoCache){h.info(`GitHub Actions cache disabled`)}else{h.info(`GitHub Actions cache feature not available`)}return""}))}static post(){return l(this,void 0,void 0,(function*(){const r=h.getState(Cache.POST_CACHE_KEY);if(!r){h.info(`State not set`);return Promise.resolve(undefined)}let s;try{s=JSON.parse(r)}catch(r){throw new Error(`Failed to parse cache post state: ${r}`)}if(!s.dir||!s.key){throw new Error(`Invalid cache post state: ${r}`)}h.info(`Caching ${s.key} to GitHub Actions cache`);yield y.saveCache([s.dir],s.key);return s}))}copyToCache(r){h.debug(`Copying ${r} to ${this.cachePath}`);u.default.copyFileSync(r,this.cachePath);return this.cachePath}platform(){const r=process.config.variables.arm_version;return`${p.default.platform()}-${p.default.arch()}${r?"v"+r:""}`}}s.Cache=Cache;Cache.POST_CACHE_KEY="postCache"},54051:function(r,s,i){"use strict";var a=this&&this.__createBinding||(Object.create?function(r,s,i,a){if(a===undefined)a=i;var A=Object.getOwnPropertyDescriptor(s,i);if(!A||("get"in A?!s.__esModule:A.writable||A.configurable)){A={enumerable:true,get:function(){return s[i]}}}Object.defineProperty(r,a,A)}:function(r,s,i,a){if(a===undefined)a=i;r[a]=s[i]});var A=this&&this.__setModuleDefault||(Object.create?function(r,s){Object.defineProperty(r,"default",{enumerable:true,value:s})}:function(r,s){r["default"]=s});var c=this&&this.__importStar||function(r){if(r&&r.__esModule)return r;var s={};if(r!=null)for(var i in r)if(i!=="default"&&Object.prototype.hasOwnProperty.call(r,i))a(s,r,i);A(s,r);return s};var l=this&&this.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(s,"__esModule",{value:true});s.Context=void 0;const d=l(i(57147));const u=l(i(22037));const p=l(i(71017));const g=c(i(8517));const h=c(i(9464));const C=i(6276);class Context{static ensureDirExists(r){d.default.mkdirSync(r,{recursive:true});return r}static tmpDir(){return Context._tmpDir}static tmpName(r){return g.tmpNameSync(r)}static gitRef(){return Context.parseGitRef(h.context.ref,h.context.sha)}static parseGitRef(r,s){const i=!!(process.env.DOCKER_DEFAULT_GIT_CONTEXT_PR_HEAD_REF&&process.env.DOCKER_DEFAULT_GIT_CONTEXT_PR_HEAD_REF==="true");if(s&&r&&!r.startsWith("refs/")){r=`refs/heads/${r}`}if(s&&!r.startsWith(`refs/pull/`)){r=s}else if(r.startsWith(`refs/pull/`)&&i){r=r.replace(/\/merge$/g,"/head")}return r}static gitContext(){return`${C.GitHub.serverURL}/${h.context.repo.owner}/${h.context.repo.repo}.git#${Context.gitRef()}`}}s.Context=Context;Context._tmpDir=d.default.mkdtempSync(p.default.join(Context.ensureDirExists(process.env.RUNNER_TEMP||u.default.tmpdir()),"docker-actions-toolkit-"))},50976:function(r,s,i){"use strict";var a=this&&this.__createBinding||(Object.create?function(r,s,i,a){if(a===undefined)a=i;var A=Object.getOwnPropertyDescriptor(s,i);if(!A||("get"in A?!s.__esModule:A.writable||A.configurable)){A={enumerable:true,get:function(){return s[i]}}}Object.defineProperty(r,a,A)}:function(r,s,i,a){if(a===undefined)a=i;r[a]=s[i]});var A=this&&this.__setModuleDefault||(Object.create?function(r,s){Object.defineProperty(r,"default",{enumerable:true,value:s})}:function(r,s){r["default"]=s});var c=this&&this.__importStar||function(r){if(r&&r.__esModule)return r;var s={};if(r!=null)for(var i in r)if(i!=="default"&&Object.prototype.hasOwnProperty.call(r,i))a(s,r,i);A(s,r);return s};var l=this&&this.__awaiter||function(r,s,i,a){function adopt(r){return r instanceof i?r:new i((function(s){s(r)}))}return new(i||(i=Promise))((function(i,A){function fulfilled(r){try{step(a.next(r))}catch(r){A(r)}}function rejected(r){try{step(a["throw"](r))}catch(r){A(r)}}function step(r){r.done?i(r.value):adopt(r.value).then(fulfilled,rejected)}step((a=a.apply(r,s||[])).next())}))};var d=this&&this.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(s,"__esModule",{value:true});s.Docker=void 0;const u=d(i(57147));const p=d(i(22037));const g=d(i(71017));const h=c(i(42186));const C=c(i(47351));const y=i(54051);const I=i(91455);const B=i(91949);const b=i(28662);class Docker{static get configDir(){return process.env.DOCKER_CONFIG||g.default.join(p.default.homedir(),".docker")}static configFile(){const r=g.default.join(Docker.configDir,"config.json");if(!u.default.existsSync(r)){return undefined}return JSON.parse(u.default.readFileSync(r,{encoding:"utf-8"}))}static isAvailable(){return l(this,void 0,void 0,(function*(){return yield C.which("docker",true).then((r=>{h.debug(`Docker.isAvailable ok: ${r}`);return true})).catch((r=>{h.debug(`Docker.isAvailable error: ${r}`);return false}))}))}static isDaemonRunning(){return l(this,void 0,void 0,(function*(){try{yield Docker.getExecOutput([`version`],{silent:true});return true}catch(r){return false}}))}static exec(r,s){return l(this,void 0,void 0,(function*(){return B.Exec.exec("docker",r,Docker.execOptions(s))}))}static getExecOutput(r,s){return l(this,void 0,void 0,(function*(){return B.Exec.getExecOutput("docker",r,Docker.execOptions(s))}))}static execOptions(r){if(!r){r={}}if(!r.env){r.env=Object.assign({},process.env,{DOCKER_CONTENT_TRUST:"false"})}else{r.env.DOCKER_CONTENT_TRUST="false"}return r}static context(r){return l(this,void 0,void 0,(function*(){const s=["context","inspect","--format","{{.Name}}"];if(r){s.push(r)}return yield Docker.getExecOutput(s,{ignoreReturnCode:true,silent:true}).then((r=>{if(r.stderr.length>0&&r.exitCode!=0){throw new Error(r.stderr)}return r.stdout.trim()}))}))}static contextInspect(r){return l(this,void 0,void 0,(function*(){const s=["context","inspect","--format=json"];if(r){s.push(r)}return yield Docker.getExecOutput(s,{ignoreReturnCode:true,silent:true}).then((r=>{if(r.stderr.length>0&&r.exitCode!=0){throw new Error(r.stderr.trim())}return JSON.parse(r.stdout.trim())[0]}))}))}static printVersion(){return l(this,void 0,void 0,(function*(){yield Docker.exec(["version"])}))}static printInfo(){return l(this,void 0,void 0,(function*(){yield Docker.exec(["info"])}))}static parseRepoTag(r){let s;const i=r.indexOf("@");const a=r.lastIndexOf(":");if(i>=0){s=i}else if(a>=0){s=a}else{return{repository:r,tag:"latest"}}const A=r.slice(s+1);if(A.indexOf("/")===-1){return{repository:r.slice(0,s),tag:A}}return{repository:r,tag:"latest"}}static pull(r,s){return l(this,void 0,void 0,(function*(){const i=Docker.parseRepoTag(r);const a=i.repository.replace(/[^a-zA-Z0-9.]+/g,"--");const A=i.tag.replace(/[^a-zA-Z0-9.]+/g,"--");const c=new I.Cache({htcName:a,htcVersion:A,baseCacheDir:g.default.join(Docker.configDir,".cache","images",a),cacheFile:"image.tar"});let d;if(s){d=yield c.find();if(d){h.info(`Image found from cache in ${d}`);yield Docker.getExecOutput(["load","-i",d],{ignoreReturnCode:true}).then((r=>{var s,i,a;if(r.stderr.length>0&&r.exitCode!=0){h.warning(`Failed to load image from cache: ${(a=(i=(s=r.stderr.match(/(.*)\s*$/))===null||s===void 0?void 0:s[0])===null||i===void 0?void 0:i.trim())!==null&&a!==void 0?a:"unknown error"}`)}}))}}let u=true;yield Docker.getExecOutput(["pull",r],{ignoreReturnCode:true}).then((r=>{var s,i,a;if(r.stderr.length>0&&r.exitCode!=0){u=false;const A=(a=(i=(s=r.stderr.match(/(.*)\s*$/))===null||s===void 0?void 0:s[0])===null||i===void 0?void 0:i.trim())!==null&&a!==void 0?a:"unknown error";if(d){h.warning(`Failed to pull image, using one from cache: ${A}`)}else{throw new Error(A)}}}));if(s&&u){const s=g.default.join(y.Context.tmpDir(),`${b.Util.hash(r)}.tar`);yield Docker.getExecOutput(["save","-o",s,r],{ignoreReturnCode:true}).then((r=>l(this,void 0,void 0,(function*(){var i,a,A;if(r.stderr.length>0&&r.exitCode!=0){h.warning(`Failed to save image: ${(A=(a=(i=r.stderr.match(/(.*)\s*$/))===null||i===void 0?void 0:i[0])===null||a===void 0?void 0:a.trim())!==null&&A!==void 0?A:"unknown error"}`)}else{const r=yield c.save(s);h.info(`Image cached to ${r}`)}}))))}}))}}s.Docker=Docker},91949:function(r,s,i){"use strict";var a=this&&this.__createBinding||(Object.create?function(r,s,i,a){if(a===undefined)a=i;var A=Object.getOwnPropertyDescriptor(s,i);if(!A||("get"in A?!s.__esModule:A.writable||A.configurable)){A={enumerable:true,get:function(){return s[i]}}}Object.defineProperty(r,a,A)}:function(r,s,i,a){if(a===undefined)a=i;r[a]=s[i]});var A=this&&this.__setModuleDefault||(Object.create?function(r,s){Object.defineProperty(r,"default",{enumerable:true,value:s})}:function(r,s){r["default"]=s});var c=this&&this.__importStar||function(r){if(r&&r.__esModule)return r;var s={};if(r!=null)for(var i in r)if(i!=="default"&&Object.prototype.hasOwnProperty.call(r,i))a(s,r,i);A(s,r);return s};var l=this&&this.__awaiter||function(r,s,i,a){function adopt(r){return r instanceof i?r:new i((function(s){s(r)}))}return new(i||(i=Promise))((function(i,A){function fulfilled(r){try{step(a.next(r))}catch(r){A(r)}}function rejected(r){try{step(a["throw"](r))}catch(r){A(r)}}function step(r){r.done?i(r.value):adopt(r.value).then(fulfilled,rejected)}step((a=a.apply(r,s||[])).next())}))};Object.defineProperty(s,"__esModule",{value:true});s.Exec=void 0;const d=c(i(42186));const u=c(i(71514));class Exec{static exec(r,s,i){return l(this,void 0,void 0,(function*(){d.debug(`Exec.exec: ${r} ${s===null||s===void 0?void 0:s.join(" ")}`);return u.exec(r,s,i)}))}static getExecOutput(r,s,i){return l(this,void 0,void 0,(function*(){d.debug(`Exec.getExecOutput: ${r} ${s===null||s===void 0?void 0:s.join(" ")}`);return u.getExecOutput(r,s,i)}))}}s.Exec=Exec},6276:function(r,s,i){"use strict";var a=this&&this.__createBinding||(Object.create?function(r,s,i,a){if(a===undefined)a=i;var A=Object.getOwnPropertyDescriptor(s,i);if(!A||("get"in A?!s.__esModule:A.writable||A.configurable)){A={enumerable:true,get:function(){return s[i]}}}Object.defineProperty(r,a,A)}:function(r,s,i,a){if(a===undefined)a=i;r[a]=s[i]});var A=this&&this.__setModuleDefault||(Object.create?function(r,s){Object.defineProperty(r,"default",{enumerable:true,value:s})}:function(r,s){r["default"]=s});var c=this&&this.__importStar||function(r){if(r&&r.__esModule)return r;var s={};if(r!=null)for(var i in r)if(i!=="default"&&Object.prototype.hasOwnProperty.call(r,i))a(s,r,i);A(s,r);return s};var l=this&&this.__awaiter||function(r,s,i,a){function adopt(r){return r instanceof i?r:new i((function(s){s(r)}))}return new(i||(i=Promise))((function(i,A){function fulfilled(r){try{step(a.next(r))}catch(r){A(r)}}function rejected(r){try{step(a["throw"](r))}catch(r){A(r)}}function step(r){r.done?i(r.value):adopt(r.value).then(fulfilled,rejected)}step((a=a.apply(r,s||[])).next())}))};var d=this&&this.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(s,"__esModule",{value:true});s.GitHub=void 0;const u=d(i(6113));const p=d(i(57147));const g=d(i(93527));const h=d(i(21917));const C=d(i(22037));const y=d(i(71017));const I=i(49960);const B=i(12312);const b=i(74610);const Q=i(63062);const w=i(3231);const v=i(79450);const S=c(i(42186));const R=c(i(9464));const N=i(84100);const x=i(70707);const D=i(28662);class GitHub{constructor(r){this.octokit=R.getOctokit(`${r===null||r===void 0?void 0:r.token}`)}repoData(){return this.octokit.rest.repos.get(Object.assign({},R.context.repo)).then((r=>r.data))}static get context(){return R.context}static get serverURL(){return process.env.GITHUB_SERVER_URL||"https://github.com"}static get apiURL(){return process.env.GITHUB_API_URL||"https://api.github.com"}static get isGHES(){return(0,b.isGhes)()}static get repository(){return`${R.context.repo.owner}/${R.context.repo.repo}`}static get workspace(){return process.env.GITHUB_WORKSPACE||process.cwd()}static get runId(){return process.env.GITHUB_RUN_ID?+process.env.GITHUB_RUN_ID:R.context.runId}static get runAttempt(){return process.env.GITHUB_RUN_ATTEMPT?+process.env.GITHUB_RUN_ATTEMPT:1}static workflowRunURL(r){return`${GitHub.serverURL}/${GitHub.repository}/actions/runs/${GitHub.runId}${r?`/attempts/${GitHub.runAttempt}`:""}`}static get actionsRuntimeToken(){const r=process.env["ACTIONS_RUNTIME_TOKEN"]||"";return r?(0,x.jwtDecode)(r):undefined}static printActionsRuntimeTokenACs(){return l(this,void 0,void 0,(function*(){let r;try{r=GitHub.actionsRuntimeToken}catch(r){throw new Error(`Cannot parse GitHub Actions Runtime Token: ${r.message}`)}if(!r){throw new Error(`ACTIONS_RUNTIME_TOKEN not set`)}try{JSON.parse(`${r.ac}`).forEach((r=>{let s;switch(r.Permission){case 1:s="read";break;case 2:s="write";break;case 3:s="read/write";break;default:s=`unimplemented (${r.Permission})`}S.info(`${r.Scope}: ${s}`)}))}catch(r){throw new Error(`Cannot parse GitHub Actions Runtime Token ACs: ${r.message}`)}}))}static uploadArtifact(r){return l(this,void 0,void 0,(function*(){if(GitHub.isGHES){throw new Error("@actions/artifact v2.0.0+ is currently not supported on GHES.")}const s=y.default.basename(r.filename);const i=(0,Q.getBackendIdsFromToken)();const a=(0,B.internalArtifactTwirpClient)();S.info(`Uploading ${s} to blob storage`);const A={workflowRunBackendId:i.workflowRunBackendId,workflowJobRunBackendId:i.workflowJobRunBackendId,name:s,version:4};const c=(0,w.getExpiration)(r===null||r===void 0?void 0:r.retentionDays);if(c){A.expiresAt=c}const l=yield a.CreateArtifact(A);if(!l.ok){throw new v.InvalidResponseError("cannot create artifact client")}let d=0;const g=new N.BlobClient(l.signedUploadUrl);const h=g.getBlockBlobClient();const C={blobContentDisposition:`attachment; filename="${s}"`};if(r.mimeType){C.blobContentType=r.mimeType}S.debug(`Upload headers: ${JSON.stringify(C)}`);try{S.info("Beginning upload of artifact content to blob storage");yield h.uploadFile(r.filename,{blobHTTPHeaders:C,onProgress:r=>{S.info(`Uploaded bytes ${r.loadedBytes}`);d=r.loadedBytes}})}catch(r){if(v.NetworkError.isNetworkErrorCode(r===null||r===void 0?void 0:r.code)){throw new v.NetworkError(r===null||r===void 0?void 0:r.code)}throw r}S.info("Finished uploading artifact content to blob storage!");const b=u.default.createHash("sha256").update(p.default.readFileSync(r.filename)).digest("hex");S.info(`SHA256 hash of uploaded artifact is ${b}`);const R={workflowRunBackendId:i.workflowRunBackendId,workflowJobRunBackendId:i.workflowJobRunBackendId,name:s,size:d?d.toString():"0"};if(b){R.hash=I.StringValue.create({value:`sha256:${b}`})}S.info(`Finalizing artifact upload`);const x=yield a.FinalizeArtifact(R);if(!x.ok){throw new v.InvalidResponseError("Cannot finalize artifact upload")}const D=BigInt(x.artifactId);S.info(`Artifact successfully finalized (${D})`);const k=`${GitHub.workflowRunURL()}/artifacts/${D}`;S.info(`Artifact download URL: ${k}`);return{id:Number(D),filename:s,size:d,url:k}}))}static writeBuildSummary(r){return l(this,void 0,void 0,(function*(){var s,i,a;const addLink=function(r,s,i=false){return`${r}`+(i?C.default.EOL:"")};const A=r.exportRes.refs.length;const c=A>0?(s=r.exportRes.refs)===null||s===void 0?void 0:s[0]:undefined;const l=c?(i=r.exportRes.summaries)===null||i===void 0?void 0:i[c]:undefined;const d=r.driver==="cloud"&&r.endpoint?(a=r.endpoint)===null||a===void 0?void 0:a.replace(/^cloud:\/\//,"").split("/")[0]:undefined;const u=S.summary.addHeading("Docker Build summary",2);if(d&&A===1&&c&&l){const r=GitHub.formatDBCBuildURL(d,c,l.defaultPlatform);u.addRaw(`

`).addRaw(`For a detailed look at the build, you can check the results at:`).addRaw("

").addRaw(`

`).addRaw(`:whale: ${addLink(`${r}`,r)}`).addRaw(`

`)}if(r.uploadRes){const s=`./${GitHub.runId}/${r.uploadRes.url.split("/").slice(-2).join("/")}`;if(d&&A===1){u.addRaw(`

`).addRaw(`You can also download the following build record archive and import it into Docker Desktop's Builds view. `).addBreak().addRaw(`Build records include details such as timing, dependencies, results, logs, traces, and other information about a build. `).addRaw(addLink("Learn more","https://www.docker.com/blog/new-beta-feature-deep-dive-into-github-actions-docker-builds-with-docker-desktop/?utm_source=github&utm_medium=actions")).addRaw("

")}else{u.addRaw(`

`).addRaw(`For a detailed look at the build, download the following build record archive and import it into Docker Desktop's Builds view. `).addBreak().addRaw(`Build records include details such as timing, dependencies, results, logs, traces, and other information about a build. `).addRaw(addLink("Learn more","https://www.docker.com/blog/new-beta-feature-deep-dive-into-github-actions-docker-builds-with-docker-desktop/?utm_source=github&utm_medium=actions")).addRaw("

")}u.addRaw(`

`).addRaw(`:arrow_down: ${addLink(`${D.Util.stringToUnicodeEntities(r.uploadRes.filename)}`,s)} (${D.Util.formatFileSize(r.uploadRes.size)} - includes ${A} build record${A>1?"s":""})`).addRaw(`

`)}else if(r.exportRes.summaries){u.addRaw(`

`).addRaw(`The following table provides a brief summary of your build.`).addBreak().addRaw(`For a detailed look at the build, including timing, dependencies, results, logs, traces, and other information, consider enabling the export of the build record so you can import it into Docker Desktop's Builds view. `).addRaw(addLink("Learn more","https://www.docker.com/blog/new-beta-feature-deep-dive-into-github-actions-docker-builds-with-docker-desktop/?utm_source=github&utm_medium=actions")).addRaw(`

`)}u.addRaw(`

`).addRaw(`Find this useful? `).addRaw(addLink("Let us know","https://docs.docker.com/feedback/gha-build-summary")).addRaw("

");if(r.exportRes.summaries){u.addRaw("

");const s=[[{header:true,data:"ID"},{header:true,data:"Name"},{header:true,data:"Status"},{header:true,data:"Cached"},{header:true,data:"Duration"},...d&&A>1?[{header:true,data:"Build result URL"}]:[]]];let i;for(const a in r.exportRes.summaries){if(Object.prototype.hasOwnProperty.call(r.exportRes.summaries,a)){const c=r.exportRes.summaries[a];s.push([{data:`${a.substring(0,6).toUpperCase()}`},{data:`${D.Util.stringToUnicodeEntities(c.name)}`},{data:`${c.status==="completed"?":white_check_mark:":c.status==="canceled"?":no_entry_sign:":":x:"} ${c.status}`},{data:`${c.numCachedSteps>0?Math.round(c.numCachedSteps/c.numTotalSteps*100):0}%`},{data:c.duration},...d&&A>1?[{data:addLink(":whale: Open",GitHub.formatDBCBuildURL(d,a,c.defaultPlatform))}]:[]]);if(c.error){i=c.error}}}u.addTable([...s]);u.addRaw(`

`);if(i){u.addRaw(`
`);if(D.Util.countLines(i)>10){u.addRaw(`
Error`).addCodeBlock(g.default.encode(i),"text").addRaw(`
`)}else{u.addRaw(`Error`).addBreak().addRaw(`

`).addCodeBlock(g.default.encode(i),"text").addRaw(`

`)}u.addRaw(`
`)}}if(r.inputs){u.addRaw(`
Build inputs`).addCodeBlock(h.default.dump(r.inputs,{indent:2,lineWidth:-1}),"yaml").addRaw(`
`)}if(r.bakeDefinition){u.addRaw(`
Bake definition`).addCodeBlock(JSON.stringify(r.bakeDefinition,null,2),"json").addRaw(`
`)}S.info(`Writing summary`);yield u.addSeparator().write()}))}static formatDBCBuildURL(r,s,i){return`https://app.docker.com/build/accounts/${r}/builds/${(i!==null&&i!==void 0?i:"linux/amd64").replace("/","-")}/${s}`}}s.GitHub=GitHub},56618:function(r,s,i){"use strict";var a=this&&this.__createBinding||(Object.create?function(r,s,i,a){if(a===undefined)a=i;var A=Object.getOwnPropertyDescriptor(s,i);if(!A||("get"in A?!s.__esModule:A.writable||A.configurable)){A={enumerable:true,get:function(){return s[i]}}}Object.defineProperty(r,a,A)}:function(r,s,i,a){if(a===undefined)a=i;r[a]=s[i]});var A=this&&this.__setModuleDefault||(Object.create?function(r,s){Object.defineProperty(r,"default",{enumerable:true,value:s})}:function(r,s){r["default"]=s});var c=this&&this.__importStar||function(r){if(r&&r.__esModule)return r;var s={};if(r!=null)for(var i in r)if(i!=="default"&&Object.prototype.hasOwnProperty.call(r,i))a(s,r,i);A(s,r);return s};var l=this&&this.__awaiter||function(r,s,i,a){function adopt(r){return r instanceof i?r:new i((function(s){s(r)}))}return new(i||(i=Promise))((function(i,A){function fulfilled(r){try{step(a.next(r))}catch(r){A(r)}}function rejected(r){try{step(a["throw"](r))}catch(r){A(r)}}function step(r){r.done?i(r.value):adopt(r.value).then(fulfilled,rejected)}step((a=a.apply(r,s||[])).next())}))};Object.defineProperty(s,"__esModule",{value:true});s.run=void 0;const d=c(i(42186));const u=i(91455);const p=!!process.env["STATE_isPost"];if(!p){d.saveState("isPost","true")}function run(r,s){return l(this,void 0,void 0,(function*(){if(!p){try{yield r()}catch(r){d.setFailed(r.message)}}else{if(s){yield s()}yield d.group(`Post cache`,(()=>l(this,void 0,void 0,(function*(){yield u.Cache.post()}))))}}))}s.run=run},28662:function(r,s,i){"use strict";var a=this&&this.__createBinding||(Object.create?function(r,s,i,a){if(a===undefined)a=i;var A=Object.getOwnPropertyDescriptor(s,i);if(!A||("get"in A?!s.__esModule:A.writable||A.configurable)){A={enumerable:true,get:function(){return s[i]}}}Object.defineProperty(r,a,A)}:function(r,s,i,a){if(a===undefined)a=i;r[a]=s[i]});var A=this&&this.__setModuleDefault||(Object.create?function(r,s){Object.defineProperty(r,"default",{enumerable:true,value:s})}:function(r,s){r["default"]=s});var c=this&&this.__importStar||function(r){if(r&&r.__esModule)return r;var s={};if(r!=null)for(var i in r)if(i!=="default"&&Object.prototype.hasOwnProperty.call(r,i))a(s,r,i);A(s,r);return s};var l=this&&this.__awaiter||function(r,s,i,a){function adopt(r){return r instanceof i?r:new i((function(s){s(r)}))}return new(i||(i=Promise))((function(i,A){function fulfilled(r){try{step(a.next(r))}catch(r){A(r)}}function rejected(r){try{step(a["throw"](r))}catch(r){A(r)}}function step(r){r.done?i(r.value):adopt(r.value).then(fulfilled,rejected)}step((a=a.apply(r,s||[])).next())}))};var d=this&&this.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(s,"__esModule",{value:true});s.Util=void 0;const u=d(i(6113));const p=d(i(57147));const g=d(i(71017));const h=c(i(42186));const C=c(i(47351));const y=i(74393);class Util{static getInputList(r,s){return this.getList(h.getInput(r),s)}static getList(r,s){const i=[];if(r==""){return i}const a=(0,y.parse)(r,{columns:false,relaxQuotes:true,comment:s===null||s===void 0?void 0:s.comment,relaxColumnCount:true,skipEmptyLines:true,quote:s===null||s===void 0?void 0:s.quote});for(const r of a){if(r.length==1){if(s===null||s===void 0?void 0:s.ignoreComma){i.push(r[0])}else{i.push(...r[0].split(","))}}else if(!(s===null||s===void 0?void 0:s.ignoreComma)){i.push(...r)}else{i.push(r.join(","))}}return i.filter((r=>r)).map((r=>r.trim()))}static getInputNumber(r){const s=h.getInput(r);if(!s){return undefined}return parseInt(s)}static asyncForEach(r,s){return l(this,void 0,void 0,(function*(){for(let i=0;isetTimeout(s,r*1e3)))}static hash(r){return u.default.createHash("sha256").update(r).digest("hex")}static parseBool(r){switch(r){case"1":case"t":case"T":case"true":case"TRUE":case"True":return true;case"0":case"f":case"F":case"false":case"FALSE":case"False":return false;default:throw new Error(`parseBool syntax error: ${r}`)}}static formatFileSize(r){if(r===0)return"0 Bytes";const s=1024;const i=["Bytes","KB","MB","GB","TB","PB","EB","ZB","YB"];const a=Math.floor(Math.log(r)/Math.log(s));return parseFloat((r/Math.pow(s,a)).toFixed(2))+" "+i[a]}static generateRandomString(r=10){const s=u.default.randomBytes(Math.ceil(r/2));return s.toString("hex").slice(0,r)}static stringToUnicodeEntities(r){return Array.from(r).map((r=>`&#x${r.charCodeAt(0).toString(16)};`)).join("")}static countLines(r){return r.split(/\r\n|\r|\n/).length}static isPathRelativeTo(r,s){const i=g.default.resolve(r);const a=g.default.resolve(s);return a.startsWith(i.endsWith(g.default.sep)?i:`${i}${g.default.sep}`)}static formatDuration(r){if(r===0)return"0s";const s=Math.floor(r/1e9);const i=Math.floor(s/3600);const a=Math.floor(s%3600/60);const A=s%60;const c=[];if(i)c.push(`${i}h`);if(a)c.push(`${a}m`);if(A||c.length===0)c.push(`${A}s`);return c.join("")}}s.Util=Util},33647:(r,s,i)=>{"use strict";Object.defineProperty(s,"__esModule",{value:true});s.Context=void 0;const a=i(57147);const A=i(22037);class Context{constructor(){var r,s,i;this.payload={};if(process.env.GITHUB_EVENT_PATH){if((0,a.existsSync)(process.env.GITHUB_EVENT_PATH)){this.payload=JSON.parse((0,a.readFileSync)(process.env.GITHUB_EVENT_PATH,{encoding:"utf8"}))}else{const r=process.env.GITHUB_EVENT_PATH;process.stdout.write(`GITHUB_EVENT_PATH ${r} does not exist${A.EOL}`)}}this.eventName=process.env.GITHUB_EVENT_NAME;this.sha=process.env.GITHUB_SHA;this.ref=process.env.GITHUB_REF;this.workflow=process.env.GITHUB_WORKFLOW;this.action=process.env.GITHUB_ACTION;this.actor=process.env.GITHUB_ACTOR;this.job=process.env.GITHUB_JOB;this.runAttempt=parseInt(process.env.GITHUB_RUN_ATTEMPT,10);this.runNumber=parseInt(process.env.GITHUB_RUN_NUMBER,10);this.runId=parseInt(process.env.GITHUB_RUN_ID,10);this.apiUrl=(r=process.env.GITHUB_API_URL)!==null&&r!==void 0?r:`https://api.github.com`;this.serverUrl=(s=process.env.GITHUB_SERVER_URL)!==null&&s!==void 0?s:`https://github.com`;this.graphqlUrl=(i=process.env.GITHUB_GRAPHQL_URL)!==null&&i!==void 0?i:`https://api.github.com/graphql`}get issue(){const r=this.payload;return Object.assign(Object.assign({},this.repo),{number:(r.issue||r.pull_request||r).number})}get repo(){if(process.env.GITHUB_REPOSITORY){const[r,s]=process.env.GITHUB_REPOSITORY.split("/");return{owner:r,repo:s}}if(this.payload.repository){return{owner:this.payload.repository.owner.login,repo:this.payload.repository.name}}throw new Error("context.repo requires a GITHUB_REPOSITORY environment variable like 'owner/repo'")}}s.Context=Context},9464:function(r,s,i){"use strict";var a=this&&this.__createBinding||(Object.create?function(r,s,i,a){if(a===undefined)a=i;var A=Object.getOwnPropertyDescriptor(s,i);if(!A||("get"in A?!s.__esModule:A.writable||A.configurable)){A={enumerable:true,get:function(){return s[i]}}}Object.defineProperty(r,a,A)}:function(r,s,i,a){if(a===undefined)a=i;r[a]=s[i]});var A=this&&this.__setModuleDefault||(Object.create?function(r,s){Object.defineProperty(r,"default",{enumerable:true,value:s})}:function(r,s){r["default"]=s});var c=this&&this.__importStar||function(r){if(r&&r.__esModule)return r;var s={};if(r!=null)for(var i in r)if(i!=="default"&&Object.prototype.hasOwnProperty.call(r,i))a(s,r,i);A(s,r);return s};Object.defineProperty(s,"__esModule",{value:true});s.getOctokit=s.context=void 0;const l=c(i(33647));const d=i(44668);s.context=new l.Context;function getOctokit(r,s,...i){const a=d.GitHub.plugin(...i);return new a((0,d.getOctokitOptions)(r,s))}s.getOctokit=getOctokit},54531:function(r,s,i){"use strict";var a=this&&this.__createBinding||(Object.create?function(r,s,i,a){if(a===undefined)a=i;var A=Object.getOwnPropertyDescriptor(s,i);if(!A||("get"in A?!s.__esModule:A.writable||A.configurable)){A={enumerable:true,get:function(){return s[i]}}}Object.defineProperty(r,a,A)}:function(r,s,i,a){if(a===undefined)a=i;r[a]=s[i]});var A=this&&this.__setModuleDefault||(Object.create?function(r,s){Object.defineProperty(r,"default",{enumerable:true,value:s})}:function(r,s){r["default"]=s});var c=this&&this.__importStar||function(r){if(r&&r.__esModule)return r;var s={};if(r!=null)for(var i in r)if(i!=="default"&&Object.prototype.hasOwnProperty.call(r,i))a(s,r,i);A(s,r);return s};var l=this&&this.__awaiter||function(r,s,i,a){function adopt(r){return r instanceof i?r:new i((function(s){s(r)}))}return new(i||(i=Promise))((function(i,A){function fulfilled(r){try{step(a.next(r))}catch(r){A(r)}}function rejected(r){try{step(a["throw"](r))}catch(r){A(r)}}function step(r){r.done?i(r.value):adopt(r.value).then(fulfilled,rejected)}step((a=a.apply(r,s||[])).next())}))};Object.defineProperty(s,"__esModule",{value:true});s.getApiBaseUrl=s.getProxyFetch=s.getProxyAgentDispatcher=s.getProxyAgent=s.getAuthString=void 0;const d=c(i(37555));const u=i(37409);function getAuthString(r,s){if(!r&&!s.auth){throw new Error("Parameter token or opts.auth is required")}else if(r&&s.auth){throw new Error("Parameters token and opts.auth may not both be specified")}return typeof s.auth==="string"?s.auth:`token ${r}`}s.getAuthString=getAuthString;function getProxyAgent(r){const s=new d.HttpClient;return s.getAgent(r)}s.getProxyAgent=getProxyAgent;function getProxyAgentDispatcher(r){const s=new d.HttpClient;return s.getAgentDispatcher(r)}s.getProxyAgentDispatcher=getProxyAgentDispatcher;function getProxyFetch(r){const s=getProxyAgentDispatcher(r);const proxyFetch=(r,i)=>l(this,void 0,void 0,(function*(){return(0,u.fetch)(r,Object.assign(Object.assign({},i),{dispatcher:s}))}));return proxyFetch}s.getProxyFetch=getProxyFetch;function getApiBaseUrl(){return process.env["GITHUB_API_URL"]||"https://api.github.com"}s.getApiBaseUrl=getApiBaseUrl},44668:function(r,s,i){"use strict";var a=this&&this.__createBinding||(Object.create?function(r,s,i,a){if(a===undefined)a=i;var A=Object.getOwnPropertyDescriptor(s,i);if(!A||("get"in A?!s.__esModule:A.writable||A.configurable)){A={enumerable:true,get:function(){return s[i]}}}Object.defineProperty(r,a,A)}:function(r,s,i,a){if(a===undefined)a=i;r[a]=s[i]});var A=this&&this.__setModuleDefault||(Object.create?function(r,s){Object.defineProperty(r,"default",{enumerable:true,value:s})}:function(r,s){r["default"]=s});var c=this&&this.__importStar||function(r){if(r&&r.__esModule)return r;var s={};if(r!=null)for(var i in r)if(i!=="default"&&Object.prototype.hasOwnProperty.call(r,i))a(s,r,i);A(s,r);return s};Object.defineProperty(s,"__esModule",{value:true});s.getOctokitOptions=s.GitHub=s.defaults=s.context=void 0;const l=c(i(33647));const d=c(i(54531));const u=i(17559);const p=i(1215);const g=i(46363);s.context=new l.Context;const h=d.getApiBaseUrl();s.defaults={baseUrl:h,request:{agent:d.getProxyAgent(h),fetch:d.getProxyFetch(h)}};s.GitHub=u.Octokit.plugin(p.restEndpointMethods,g.paginateRest).defaults(s.defaults);function getOctokitOptions(r,s){const i=Object.assign({},s||{});const a=d.getAuthString(r,i);if(a){i.auth=a}return i}s.getOctokitOptions=getOctokitOptions},37555:function(r,s,i){"use strict";var a=this&&this.__createBinding||(Object.create?function(r,s,i,a){if(a===undefined)a=i;var A=Object.getOwnPropertyDescriptor(s,i);if(!A||("get"in A?!s.__esModule:A.writable||A.configurable)){A={enumerable:true,get:function(){return s[i]}}}Object.defineProperty(r,a,A)}:function(r,s,i,a){if(a===undefined)a=i;r[a]=s[i]});var A=this&&this.__setModuleDefault||(Object.create?function(r,s){Object.defineProperty(r,"default",{enumerable:true,value:s})}:function(r,s){r["default"]=s});var c=this&&this.__importStar||function(r){if(r&&r.__esModule)return r;var s={};if(r!=null)for(var i in r)if(i!=="default"&&Object.prototype.hasOwnProperty.call(r,i))a(s,r,i);A(s,r);return s};var l=this&&this.__awaiter||function(r,s,i,a){function adopt(r){return r instanceof i?r:new i((function(s){s(r)}))}return new(i||(i=Promise))((function(i,A){function fulfilled(r){try{step(a.next(r))}catch(r){A(r)}}function rejected(r){try{step(a["throw"](r))}catch(r){A(r)}}function step(r){r.done?i(r.value):adopt(r.value).then(fulfilled,rejected)}step((a=a.apply(r,s||[])).next())}))};Object.defineProperty(s,"__esModule",{value:true});s.HttpClient=s.isHttps=s.HttpClientResponse=s.HttpClientError=s.getProxyUrl=s.MediaTypes=s.Headers=s.HttpCodes=void 0;const d=c(i(13685));const u=c(i(95687));const p=c(i(11753));const g=c(i(74294));const h=i(12206);var C;(function(r){r[r["OK"]=200]="OK";r[r["MultipleChoices"]=300]="MultipleChoices";r[r["MovedPermanently"]=301]="MovedPermanently";r[r["ResourceMoved"]=302]="ResourceMoved";r[r["SeeOther"]=303]="SeeOther";r[r["NotModified"]=304]="NotModified";r[r["UseProxy"]=305]="UseProxy";r[r["SwitchProxy"]=306]="SwitchProxy";r[r["TemporaryRedirect"]=307]="TemporaryRedirect";r[r["PermanentRedirect"]=308]="PermanentRedirect";r[r["BadRequest"]=400]="BadRequest";r[r["Unauthorized"]=401]="Unauthorized";r[r["PaymentRequired"]=402]="PaymentRequired";r[r["Forbidden"]=403]="Forbidden";r[r["NotFound"]=404]="NotFound";r[r["MethodNotAllowed"]=405]="MethodNotAllowed";r[r["NotAcceptable"]=406]="NotAcceptable";r[r["ProxyAuthenticationRequired"]=407]="ProxyAuthenticationRequired";r[r["RequestTimeout"]=408]="RequestTimeout";r[r["Conflict"]=409]="Conflict";r[r["Gone"]=410]="Gone";r[r["TooManyRequests"]=429]="TooManyRequests";r[r["InternalServerError"]=500]="InternalServerError";r[r["NotImplemented"]=501]="NotImplemented";r[r["BadGateway"]=502]="BadGateway";r[r["ServiceUnavailable"]=503]="ServiceUnavailable";r[r["GatewayTimeout"]=504]="GatewayTimeout"})(C||(s.HttpCodes=C={}));var y;(function(r){r["Accept"]="accept";r["ContentType"]="content-type"})(y||(s.Headers=y={}));var I;(function(r){r["ApplicationJson"]="application/json"})(I||(s.MediaTypes=I={}));function getProxyUrl(r){const s=p.getProxyUrl(new URL(r));return s?s.href:""}s.getProxyUrl=getProxyUrl;const B=[C.MovedPermanently,C.ResourceMoved,C.SeeOther,C.TemporaryRedirect,C.PermanentRedirect];const b=[C.BadGateway,C.ServiceUnavailable,C.GatewayTimeout];const Q=["OPTIONS","GET","DELETE","HEAD"];const w=10;const v=5;class HttpClientError extends Error{constructor(r,s){super(r);this.name="HttpClientError";this.statusCode=s;Object.setPrototypeOf(this,HttpClientError.prototype)}}s.HttpClientError=HttpClientError;class HttpClientResponse{constructor(r){this.message=r}readBody(){return l(this,void 0,void 0,(function*(){return new Promise((r=>l(this,void 0,void 0,(function*(){let s=Buffer.alloc(0);this.message.on("data",(r=>{s=Buffer.concat([s,r])}));this.message.on("end",(()=>{r(s.toString())}))}))))}))}readBodyBuffer(){return l(this,void 0,void 0,(function*(){return new Promise((r=>l(this,void 0,void 0,(function*(){const s=[];this.message.on("data",(r=>{s.push(r)}));this.message.on("end",(()=>{r(Buffer.concat(s))}))}))))}))}}s.HttpClientResponse=HttpClientResponse;function isHttps(r){const s=new URL(r);return s.protocol==="https:"}s.isHttps=isHttps;class HttpClient{constructor(r,s,i){this._ignoreSslError=false;this._allowRedirects=true;this._allowRedirectDowngrade=false;this._maxRedirects=50;this._allowRetries=false;this._maxRetries=1;this._keepAlive=false;this._disposed=false;this.userAgent=r;this.handlers=s||[];this.requestOptions=i;if(i){if(i.ignoreSslError!=null){this._ignoreSslError=i.ignoreSslError}this._socketTimeout=i.socketTimeout;if(i.allowRedirects!=null){this._allowRedirects=i.allowRedirects}if(i.allowRedirectDowngrade!=null){this._allowRedirectDowngrade=i.allowRedirectDowngrade}if(i.maxRedirects!=null){this._maxRedirects=Math.max(i.maxRedirects,0)}if(i.keepAlive!=null){this._keepAlive=i.keepAlive}if(i.allowRetries!=null){this._allowRetries=i.allowRetries}if(i.maxRetries!=null){this._maxRetries=i.maxRetries}}}options(r,s){return l(this,void 0,void 0,(function*(){return this.request("OPTIONS",r,null,s||{})}))}get(r,s){return l(this,void 0,void 0,(function*(){return this.request("GET",r,null,s||{})}))}del(r,s){return l(this,void 0,void 0,(function*(){return this.request("DELETE",r,null,s||{})}))}post(r,s,i){return l(this,void 0,void 0,(function*(){return this.request("POST",r,s,i||{})}))}patch(r,s,i){return l(this,void 0,void 0,(function*(){return this.request("PATCH",r,s,i||{})}))}put(r,s,i){return l(this,void 0,void 0,(function*(){return this.request("PUT",r,s,i||{})}))}head(r,s){return l(this,void 0,void 0,(function*(){return this.request("HEAD",r,null,s||{})}))}sendStream(r,s,i,a){return l(this,void 0,void 0,(function*(){return this.request(r,s,i,a)}))}getJson(r,s={}){return l(this,void 0,void 0,(function*(){s[y.Accept]=this._getExistingOrDefaultHeader(s,y.Accept,I.ApplicationJson);const i=yield this.get(r,s);return this._processResponse(i,this.requestOptions)}))}postJson(r,s,i={}){return l(this,void 0,void 0,(function*(){const a=JSON.stringify(s,null,2);i[y.Accept]=this._getExistingOrDefaultHeader(i,y.Accept,I.ApplicationJson);i[y.ContentType]=this._getExistingOrDefaultHeader(i,y.ContentType,I.ApplicationJson);const A=yield this.post(r,a,i);return this._processResponse(A,this.requestOptions)}))}putJson(r,s,i={}){return l(this,void 0,void 0,(function*(){const a=JSON.stringify(s,null,2);i[y.Accept]=this._getExistingOrDefaultHeader(i,y.Accept,I.ApplicationJson);i[y.ContentType]=this._getExistingOrDefaultHeader(i,y.ContentType,I.ApplicationJson);const A=yield this.put(r,a,i);return this._processResponse(A,this.requestOptions)}))}patchJson(r,s,i={}){return l(this,void 0,void 0,(function*(){const a=JSON.stringify(s,null,2);i[y.Accept]=this._getExistingOrDefaultHeader(i,y.Accept,I.ApplicationJson);i[y.ContentType]=this._getExistingOrDefaultHeader(i,y.ContentType,I.ApplicationJson);const A=yield this.patch(r,a,i);return this._processResponse(A,this.requestOptions)}))}request(r,s,i,a){return l(this,void 0,void 0,(function*(){if(this._disposed){throw new Error("Client has already been disposed.")}const A=new URL(s);let c=this._prepareRequest(r,A,a);const l=this._allowRetries&&Q.includes(r)?this._maxRetries+1:1;let d=0;let u;do{u=yield this.requestRaw(c,i);if(u&&u.message&&u.message.statusCode===C.Unauthorized){let r;for(const s of this.handlers){if(s.canHandleAuthentication(u)){r=s;break}}if(r){return r.handleAuthentication(this,c,i)}else{return u}}let s=this._maxRedirects;while(u.message.statusCode&&B.includes(u.message.statusCode)&&this._allowRedirects&&s>0){const l=u.message.headers["location"];if(!l){break}const d=new URL(l);if(A.protocol==="https:"&&A.protocol!==d.protocol&&!this._allowRedirectDowngrade){throw new Error("Redirect from HTTPS to HTTP protocol. This downgrade is not allowed for security reasons. If you want to allow this behavior, set the allowRedirectDowngrade option to true.")}yield u.readBody();if(d.hostname!==A.hostname){for(const r in a){if(r.toLowerCase()==="authorization"){delete a[r]}}}c=this._prepareRequest(r,d,a);u=yield this.requestRaw(c,i);s--}if(!u.message.statusCode||!b.includes(u.message.statusCode)){return u}d+=1;if(d{function callbackForResult(r,s){if(r){a(r)}else if(!s){a(new Error("Unknown error"))}else{i(s)}}this.requestRawWithCallback(r,s,callbackForResult)}))}))}requestRawWithCallback(r,s,i){if(typeof s==="string"){if(!r.options.headers){r.options.headers={}}r.options.headers["Content-Length"]=Buffer.byteLength(s,"utf8")}let a=false;function handleResult(r,s){if(!a){a=true;i(r,s)}}const A=r.httpModule.request(r.options,(r=>{const s=new HttpClientResponse(r);handleResult(undefined,s)}));let c;A.on("socket",(r=>{c=r}));A.setTimeout(this._socketTimeout||3*6e4,(()=>{if(c){c.end()}handleResult(new Error(`Request timeout: ${r.options.path}`))}));A.on("error",(function(r){handleResult(r)}));if(s&&typeof s==="string"){A.write(s,"utf8")}if(s&&typeof s!=="string"){s.on("close",(function(){A.end()}));s.pipe(A)}else{A.end()}}getAgent(r){const s=new URL(r);return this._getAgent(s)}getAgentDispatcher(r){const s=new URL(r);const i=p.getProxyUrl(s);const a=i&&i.hostname;if(!a){return}return this._getProxyAgentDispatcher(s,i)}_prepareRequest(r,s,i){const a={};a.parsedUrl=s;const A=a.parsedUrl.protocol==="https:";a.httpModule=A?u:d;const c=A?443:80;a.options={};a.options.host=a.parsedUrl.hostname;a.options.port=a.parsedUrl.port?parseInt(a.parsedUrl.port):c;a.options.path=(a.parsedUrl.pathname||"")+(a.parsedUrl.search||"");a.options.method=r;a.options.headers=this._mergeHeaders(i);if(this.userAgent!=null){a.options.headers["user-agent"]=this.userAgent}a.options.agent=this._getAgent(a.parsedUrl);if(this.handlers){for(const r of this.handlers){r.prepareRequest(a.options)}}return a}_mergeHeaders(r){if(this.requestOptions&&this.requestOptions.headers){return Object.assign({},lowercaseKeys(this.requestOptions.headers),lowercaseKeys(r||{}))}return lowercaseKeys(r||{})}_getExistingOrDefaultHeader(r,s,i){let a;if(this.requestOptions&&this.requestOptions.headers){a=lowercaseKeys(this.requestOptions.headers)[s]}return r[s]||a||i}_getAgent(r){let s;const i=p.getProxyUrl(r);const a=i&&i.hostname;if(this._keepAlive&&a){s=this._proxyAgent}if(this._keepAlive&&!a){s=this._agent}if(s){return s}const A=r.protocol==="https:";let c=100;if(this.requestOptions){c=this.requestOptions.maxSockets||d.globalAgent.maxSockets}if(i&&i.hostname){const r={maxSockets:c,keepAlive:this._keepAlive,proxy:Object.assign(Object.assign({},(i.username||i.password)&&{proxyAuth:`${i.username}:${i.password}`}),{host:i.hostname,port:i.port})};let a;const l=i.protocol==="https:";if(A){a=l?g.httpsOverHttps:g.httpsOverHttp}else{a=l?g.httpOverHttps:g.httpOverHttp}s=a(r);this._proxyAgent=s}if(this._keepAlive&&!s){const r={keepAlive:this._keepAlive,maxSockets:c};s=A?new u.Agent(r):new d.Agent(r);this._agent=s}if(!s){s=A?u.globalAgent:d.globalAgent}if(A&&this._ignoreSslError){s.options=Object.assign(s.options||{},{rejectUnauthorized:false})}return s}_getProxyAgentDispatcher(r,s){let i;if(this._keepAlive){i=this._proxyAgentDispatcher}if(i){return i}const a=r.protocol==="https:";i=new h.ProxyAgent(Object.assign({uri:s.href,pipelining:!this._keepAlive?0:1},(s.username||s.password)&&{token:`${s.username}:${s.password}`}));this._proxyAgentDispatcher=i;if(a&&this._ignoreSslError){i.options=Object.assign(i.options.requestTls||{},{rejectUnauthorized:false})}return i}_performExponentialBackoff(r){return l(this,void 0,void 0,(function*(){r=Math.min(w,r);const s=v*Math.pow(2,r);return new Promise((r=>setTimeout((()=>r()),s)))}))}_processResponse(r,s){return l(this,void 0,void 0,(function*(){return new Promise(((i,a)=>l(this,void 0,void 0,(function*(){const A=r.message.statusCode||0;const c={statusCode:A,result:null,headers:{}};if(A===C.NotFound){i(c)}function dateTimeDeserializer(r,s){if(typeof s==="string"){const r=new Date(s);if(!isNaN(r.valueOf())){return r}}return s}let l;let d;try{d=yield r.readBody();if(d&&d.length>0){if(s&&s.deserializeDates){l=JSON.parse(d,dateTimeDeserializer)}else{l=JSON.parse(d)}c.result=l}c.headers=r.message.headers}catch(r){}if(A>299){let r;if(l&&l.message){r=l.message}else if(d&&d.length>0){r=d}else{r=`Failed request: (${A})`}const s=new HttpClientError(r,A);s.result=c.result;a(s)}else{i(c)}}))))}))}}s.HttpClient=HttpClient;const lowercaseKeys=r=>Object.keys(r).reduce(((s,i)=>(s[i.toLowerCase()]=r[i],s)),{})},11753:(r,s)=>{"use strict";Object.defineProperty(s,"__esModule",{value:true});s.checkBypass=s.getProxyUrl=void 0;function getProxyUrl(r){const s=r.protocol==="https:";if(checkBypass(r)){return undefined}const i=(()=>{if(s){return process.env["https_proxy"]||process.env["HTTPS_PROXY"]}else{return process.env["http_proxy"]||process.env["HTTP_PROXY"]}})();if(i){try{return new URL(i)}catch(r){if(!i.startsWith("http://")&&!i.startsWith("https://"))return new URL(`http://${i}`)}}else{return undefined}}s.getProxyUrl=getProxyUrl;function checkBypass(r){if(!r.hostname){return false}const s=r.hostname;if(isLoopbackAddress(s)){return true}const i=process.env["no_proxy"]||process.env["NO_PROXY"]||"";if(!i){return false}let a;if(r.port){a=Number(r.port)}else if(r.protocol==="http:"){a=80}else if(r.protocol==="https:"){a=443}const A=[r.hostname.toUpperCase()];if(typeof a==="number"){A.push(`${A[0]}:${a}`)}for(const r of i.split(",").map((r=>r.trim().toUpperCase())).filter((r=>r))){if(r==="*"||A.some((s=>s===r||s.endsWith(`.${r}`)||r.startsWith(".")&&s.endsWith(`${r}`)))){return true}}return false}s.checkBypass=checkBypass;function isLoopbackAddress(r){const s=r.toLowerCase();return s==="localhost"||s.startsWith("127.")||s.startsWith("[::1]")||s.startsWith("[0:0:0:0:0:0:0:1]")}},12206:(r,s,i)=>{"use strict";const a=i(19128);const A=i(91187);const c=i(33219);const l=i(21851);const d=i(4016);const u=i(39200);const p=i(55009);const{InvalidArgumentError:g}=c;const h=i(36300);const C=i(35470);const y=i(16964);const I=i(56231);const B=i(53857);const b=i(53298);const Q=i(66734);const w=i(94051);const{getGlobalDispatcher:v,setGlobalDispatcher:S}=i(98412);const R=i(9317);const N=i(7901);const x=i(19363);let D;try{i(6113);D=true}catch{D=false}Object.assign(A.prototype,h);r.exports.Dispatcher=A;r.exports.Client=a;r.exports.Pool=l;r.exports.BalancedPool=d;r.exports.Agent=u;r.exports.ProxyAgent=Q;r.exports.RetryHandler=w;r.exports.DecoratorHandler=R;r.exports.RedirectHandler=N;r.exports.createRedirectInterceptor=x;r.exports.buildConnector=C;r.exports.errors=c;function makeDispatcher(r){return(s,i,a)=>{if(typeof i==="function"){a=i;i=null}if(!s||typeof s!=="string"&&typeof s!=="object"&&!(s instanceof URL)){throw new g("invalid url")}if(i!=null&&typeof i!=="object"){throw new g("invalid opts")}if(i&&i.path!=null){if(typeof i.path!=="string"){throw new g("invalid opts.path")}let r=i.path;if(!i.path.startsWith("/")){r=`/${r}`}s=new URL(p.parseOrigin(s).origin+r)}else{if(!i){i=typeof s==="object"?s:{}}s=p.parseURL(s)}const{agent:A,dispatcher:c=v()}=i;if(A){throw new g("unsupported opts.agent. Did you mean opts.client?")}return r.call(c,{...i,origin:s.origin,path:s.search?`${s.pathname}${s.search}`:s.pathname,method:i.method||(i.body?"PUT":"GET")},a)}}r.exports.setGlobalDispatcher=S;r.exports.getGlobalDispatcher=v;if(p.nodeMajor>16||p.nodeMajor===16&&p.nodeMinor>=8){let s=null;r.exports.fetch=async function fetch(r){if(!s){s=i(37495).fetch}try{return await s(...arguments)}catch(r){if(typeof r==="object"){Error.captureStackTrace(r,this)}throw r}};r.exports.Headers=i(96116).Headers;r.exports.Response=i(12776).Response;r.exports.Request=i(82494).Request;r.exports.FormData=i(38175).FormData;r.exports.File=i(8017).File;r.exports.FileReader=i(88633).FileReader;const{setGlobalOrigin:a,getGlobalOrigin:A}=i(11854);r.exports.setGlobalOrigin=a;r.exports.getGlobalOrigin=A;const{CacheStorage:c}=i(72219);const{kConstruct:l}=i(83485);r.exports.caches=new c(l)}if(p.nodeMajor>=16){const{deleteCookie:s,getCookies:a,getSetCookies:A,setCookie:c}=i(80435);r.exports.deleteCookie=s;r.exports.getCookies=a;r.exports.getSetCookies=A;r.exports.setCookie=c;const{parseMIMEType:l,serializeAMimeType:d}=i(88576);r.exports.parseMIMEType=l;r.exports.serializeAMimeType=d}if(p.nodeMajor>=18&&D){const{WebSocket:s}=i(46090);r.exports.WebSocket=s}r.exports.request=makeDispatcher(h.request);r.exports.stream=makeDispatcher(h.stream);r.exports.pipeline=makeDispatcher(h.pipeline);r.exports.connect=makeDispatcher(h.connect);r.exports.upgrade=makeDispatcher(h.upgrade);r.exports.MockClient=y;r.exports.MockPool=B;r.exports.MockAgent=I;r.exports.mockErrors=b},39200:(r,s,i)=>{"use strict";const{InvalidArgumentError:a}=i(33219);const{kClients:A,kRunning:c,kClose:l,kDestroy:d,kDispatch:u,kInterceptors:p}=i(52418);const g=i(25901);const h=i(21851);const C=i(19128);const y=i(55009);const I=i(19363);const{WeakRef:B,FinalizationRegistry:b}=i(91578)();const Q=Symbol("onConnect");const w=Symbol("onDisconnect");const v=Symbol("onConnectionError");const S=Symbol("maxRedirections");const R=Symbol("onDrain");const N=Symbol("factory");const x=Symbol("finalizer");const D=Symbol("options");function defaultFactory(r,s){return s&&s.connections===1?new C(r,s):new h(r,s)}class Agent extends g{constructor({factory:r=defaultFactory,maxRedirections:s=0,connect:i,...c}={}){super();if(typeof r!=="function"){throw new a("factory must be a function.")}if(i!=null&&typeof i!=="function"&&typeof i!=="object"){throw new a("connect must be a function or an object")}if(!Number.isInteger(s)||s<0){throw new a("maxRedirections must be a positive number")}if(i&&typeof i!=="function"){i={...i}}this[p]=c.interceptors&&c.interceptors.Agent&&Array.isArray(c.interceptors.Agent)?c.interceptors.Agent:[I({maxRedirections:s})];this[D]={...y.deepClone(c),connect:i};this[D].interceptors=c.interceptors?{...c.interceptors}:undefined;this[S]=s;this[N]=r;this[A]=new Map;this[x]=new b((r=>{const s=this[A].get(r);if(s!==undefined&&s.deref()===undefined){this[A].delete(r)}}));const l=this;this[R]=(r,s)=>{l.emit("drain",r,[l,...s])};this[Q]=(r,s)=>{l.emit("connect",r,[l,...s])};this[w]=(r,s,i)=>{l.emit("disconnect",r,[l,...s],i)};this[v]=(r,s,i)=>{l.emit("connectionError",r,[l,...s],i)}}get[c](){let r=0;for(const s of this[A].values()){const i=s.deref();if(i){r+=i[c]}}return r}[u](r,s){let i;if(r.origin&&(typeof r.origin==="string"||r.origin instanceof URL)){i=String(r.origin)}else{throw new a("opts.origin must be a non-empty string or URL.")}const c=this[A].get(i);let l=c?c.deref():null;if(!l){l=this[N](r.origin,this[D]).on("drain",this[R]).on("connect",this[Q]).on("disconnect",this[w]).on("connectionError",this[v]);this[A].set(i,new B(l));this[x].register(l,i)}return l.dispatch(r,s)}async[l](){const r=[];for(const s of this[A].values()){const i=s.deref();if(i){r.push(i.close())}}await Promise.all(r)}async[d](r){const s=[];for(const i of this[A].values()){const a=i.deref();if(a){s.push(a.destroy(r))}}await Promise.all(s)}}r.exports=Agent},88542:(r,s,i)=>{const{addAbortListener:a}=i(55009);const{RequestAbortedError:A}=i(33219);const c=Symbol("kListener");const l=Symbol("kSignal");function abort(r){if(r.abort){r.abort()}else{r.onError(new A)}}function addSignal(r,s){r[l]=null;r[c]=null;if(!s){return}if(s.aborted){abort(r);return}r[l]=s;r[c]=()=>{abort(r)};a(r[l],r[c])}function removeSignal(r){if(!r[l]){return}if("removeEventListener"in r[l]){r[l].removeEventListener("abort",r[c])}else{r[l].removeListener("abort",r[c])}r[l]=null;r[c]=null}r.exports={addSignal:addSignal,removeSignal:removeSignal}},49837:(r,s,i)=>{"use strict";const{AsyncResource:a}=i(50852);const{InvalidArgumentError:A,RequestAbortedError:c,SocketError:l}=i(33219);const d=i(55009);const{addSignal:u,removeSignal:p}=i(88542);class ConnectHandler extends a{constructor(r,s){if(!r||typeof r!=="object"){throw new A("invalid opts")}if(typeof s!=="function"){throw new A("invalid callback")}const{signal:i,opaque:a,responseHeaders:c}=r;if(i&&typeof i.on!=="function"&&typeof i.addEventListener!=="function"){throw new A("signal must be an EventEmitter or EventTarget")}super("UNDICI_CONNECT");this.opaque=a||null;this.responseHeaders=c||null;this.callback=s;this.abort=null;u(this,i)}onConnect(r,s){if(!this.callback){throw new c}this.abort=r;this.context=s}onHeaders(){throw new l("bad connect",null)}onUpgrade(r,s,i){const{callback:a,opaque:A,context:c}=this;p(this);this.callback=null;let l=s;if(l!=null){l=this.responseHeaders==="raw"?d.parseRawHeaders(s):d.parseHeaders(s)}this.runInAsyncScope(a,null,null,{statusCode:r,headers:l,socket:i,opaque:A,context:c})}onError(r){const{callback:s,opaque:i}=this;p(this);if(s){this.callback=null;queueMicrotask((()=>{this.runInAsyncScope(s,null,r,{opaque:i})}))}}}function connect(r,s){if(s===undefined){return new Promise(((s,i)=>{connect.call(this,r,((r,a)=>r?i(r):s(a)))}))}try{const i=new ConnectHandler(r,s);this.dispatch({...r,method:"CONNECT"},i)}catch(i){if(typeof s!=="function"){throw i}const a=r&&r.opaque;queueMicrotask((()=>s(i,{opaque:a})))}}r.exports=connect},59834:(r,s,i)=>{"use strict";const{Readable:a,Duplex:A,PassThrough:c}=i(12781);const{InvalidArgumentError:l,InvalidReturnValueError:d,RequestAbortedError:u}=i(33219);const p=i(55009);const{AsyncResource:g}=i(50852);const{addSignal:h,removeSignal:C}=i(88542);const y=i(39491);const I=Symbol("resume");class PipelineRequest extends a{constructor(){super({autoDestroy:true});this[I]=null}_read(){const{[I]:r}=this;if(r){this[I]=null;r()}}_destroy(r,s){this._read();s(r)}}class PipelineResponse extends a{constructor(r){super({autoDestroy:true});this[I]=r}_read(){this[I]()}_destroy(r,s){if(!r&&!this._readableState.endEmitted){r=new u}s(r)}}class PipelineHandler extends g{constructor(r,s){if(!r||typeof r!=="object"){throw new l("invalid opts")}if(typeof s!=="function"){throw new l("invalid handler")}const{signal:i,method:a,opaque:c,onInfo:d,responseHeaders:g}=r;if(i&&typeof i.on!=="function"&&typeof i.addEventListener!=="function"){throw new l("signal must be an EventEmitter or EventTarget")}if(a==="CONNECT"){throw new l("invalid method")}if(d&&typeof d!=="function"){throw new l("invalid onInfo callback")}super("UNDICI_PIPELINE");this.opaque=c||null;this.responseHeaders=g||null;this.handler=s;this.abort=null;this.context=null;this.onInfo=d||null;this.req=(new PipelineRequest).on("error",p.nop);this.ret=new A({readableObjectMode:r.objectMode,autoDestroy:true,read:()=>{const{body:r}=this;if(r&&r.resume){r.resume()}},write:(r,s,i)=>{const{req:a}=this;if(a.push(r,s)||a._readableState.destroyed){i()}else{a[I]=i}},destroy:(r,s)=>{const{body:i,req:a,res:A,ret:c,abort:l}=this;if(!r&&!c._readableState.endEmitted){r=new u}if(l&&r){l()}p.destroy(i,r);p.destroy(a,r);p.destroy(A,r);C(this);s(r)}}).on("prefinish",(()=>{const{req:r}=this;r.push(null)}));this.res=null;h(this,i)}onConnect(r,s){const{ret:i,res:a}=this;y(!a,"pipeline cannot be retried");if(i.destroyed){throw new u}this.abort=r;this.context=s}onHeaders(r,s,i){const{opaque:a,handler:A,context:c}=this;if(r<200){if(this.onInfo){const i=this.responseHeaders==="raw"?p.parseRawHeaders(s):p.parseHeaders(s);this.onInfo({statusCode:r,headers:i})}return}this.res=new PipelineResponse(i);let l;try{this.handler=null;const i=this.responseHeaders==="raw"?p.parseRawHeaders(s):p.parseHeaders(s);l=this.runInAsyncScope(A,null,{statusCode:r,headers:i,opaque:a,body:this.res,context:c})}catch(r){this.res.on("error",p.nop);throw r}if(!l||typeof l.on!=="function"){throw new d("expected Readable")}l.on("data",(r=>{const{ret:s,body:i}=this;if(!s.push(r)&&i.pause){i.pause()}})).on("error",(r=>{const{ret:s}=this;p.destroy(s,r)})).on("end",(()=>{const{ret:r}=this;r.push(null)})).on("close",(()=>{const{ret:r}=this;if(!r._readableState.ended){p.destroy(r,new u)}}));this.body=l}onData(r){const{res:s}=this;return s.push(r)}onComplete(r){const{res:s}=this;s.push(null)}onError(r){const{ret:s}=this;this.handler=null;p.destroy(s,r)}}function pipeline(r,s){try{const i=new PipelineHandler(r,s);this.dispatch({...r,body:i.req},i);return i.ret}catch(r){return(new c).destroy(r)}}r.exports=pipeline},31664:(r,s,i)=>{"use strict";const a=i(63164);const{InvalidArgumentError:A,RequestAbortedError:c}=i(33219);const l=i(55009);const{getResolveErrorBodyCallback:d}=i(44030);const{AsyncResource:u}=i(50852);const{addSignal:p,removeSignal:g}=i(88542);class RequestHandler extends u{constructor(r,s){if(!r||typeof r!=="object"){throw new A("invalid opts")}const{signal:i,method:a,opaque:c,body:d,onInfo:u,responseHeaders:g,throwOnError:h,highWaterMark:C}=r;try{if(typeof s!=="function"){throw new A("invalid callback")}if(C&&(typeof C!=="number"||C<0)){throw new A("invalid highWaterMark")}if(i&&typeof i.on!=="function"&&typeof i.addEventListener!=="function"){throw new A("signal must be an EventEmitter or EventTarget")}if(a==="CONNECT"){throw new A("invalid method")}if(u&&typeof u!=="function"){throw new A("invalid onInfo callback")}super("UNDICI_REQUEST")}catch(r){if(l.isStream(d)){l.destroy(d.on("error",l.nop),r)}throw r}this.responseHeaders=g||null;this.opaque=c||null;this.callback=s;this.res=null;this.abort=null;this.body=d;this.trailers={};this.context=null;this.onInfo=u||null;this.throwOnError=h;this.highWaterMark=C;if(l.isStream(d)){d.on("error",(r=>{this.onError(r)}))}p(this,i)}onConnect(r,s){if(!this.callback){throw new c}this.abort=r;this.context=s}onHeaders(r,s,i,A){const{callback:c,opaque:u,abort:p,context:g,responseHeaders:h,highWaterMark:C}=this;const y=h==="raw"?l.parseRawHeaders(s):l.parseHeaders(s);if(r<200){if(this.onInfo){this.onInfo({statusCode:r,headers:y})}return}const I=h==="raw"?l.parseHeaders(s):y;const B=I["content-type"];const b=new a({resume:i,abort:p,contentType:B,highWaterMark:C});this.callback=null;this.res=b;if(c!==null){if(this.throwOnError&&r>=400){this.runInAsyncScope(d,null,{callback:c,body:b,contentType:B,statusCode:r,statusMessage:A,headers:y})}else{this.runInAsyncScope(c,null,null,{statusCode:r,headers:y,trailers:this.trailers,opaque:u,body:b,context:g})}}}onData(r){const{res:s}=this;return s.push(r)}onComplete(r){const{res:s}=this;g(this);l.parseHeaders(r,this.trailers);s.push(null)}onError(r){const{res:s,callback:i,body:a,opaque:A}=this;g(this);if(i){this.callback=null;queueMicrotask((()=>{this.runInAsyncScope(i,null,r,{opaque:A})}))}if(s){this.res=null;queueMicrotask((()=>{l.destroy(s,r)}))}if(a){this.body=null;l.destroy(a,r)}}}function request(r,s){if(s===undefined){return new Promise(((s,i)=>{request.call(this,r,((r,a)=>r?i(r):s(a)))}))}try{this.dispatch(r,new RequestHandler(r,s))}catch(i){if(typeof s!=="function"){throw i}const a=r&&r.opaque;queueMicrotask((()=>s(i,{opaque:a})))}}r.exports=request;r.exports.RequestHandler=RequestHandler},16547:(r,s,i)=>{"use strict";const{finished:a,PassThrough:A}=i(12781);const{InvalidArgumentError:c,InvalidReturnValueError:l,RequestAbortedError:d}=i(33219);const u=i(55009);const{getResolveErrorBodyCallback:p}=i(44030);const{AsyncResource:g}=i(50852);const{addSignal:h,removeSignal:C}=i(88542);class StreamHandler extends g{constructor(r,s,i){if(!r||typeof r!=="object"){throw new c("invalid opts")}const{signal:a,method:A,opaque:l,body:d,onInfo:p,responseHeaders:g,throwOnError:C}=r;try{if(typeof i!=="function"){throw new c("invalid callback")}if(typeof s!=="function"){throw new c("invalid factory")}if(a&&typeof a.on!=="function"&&typeof a.addEventListener!=="function"){throw new c("signal must be an EventEmitter or EventTarget")}if(A==="CONNECT"){throw new c("invalid method")}if(p&&typeof p!=="function"){throw new c("invalid onInfo callback")}super("UNDICI_STREAM")}catch(r){if(u.isStream(d)){u.destroy(d.on("error",u.nop),r)}throw r}this.responseHeaders=g||null;this.opaque=l||null;this.factory=s;this.callback=i;this.res=null;this.abort=null;this.context=null;this.trailers=null;this.body=d;this.onInfo=p||null;this.throwOnError=C||false;if(u.isStream(d)){d.on("error",(r=>{this.onError(r)}))}h(this,a)}onConnect(r,s){if(!this.callback){throw new d}this.abort=r;this.context=s}onHeaders(r,s,i,c){const{factory:d,opaque:g,context:h,callback:C,responseHeaders:y}=this;const I=y==="raw"?u.parseRawHeaders(s):u.parseHeaders(s);if(r<200){if(this.onInfo){this.onInfo({statusCode:r,headers:I})}return}this.factory=null;let B;if(this.throwOnError&&r>=400){const i=y==="raw"?u.parseHeaders(s):I;const a=i["content-type"];B=new A;this.callback=null;this.runInAsyncScope(p,null,{callback:C,body:B,contentType:a,statusCode:r,statusMessage:c,headers:I})}else{if(d===null){return}B=this.runInAsyncScope(d,null,{statusCode:r,headers:I,opaque:g,context:h});if(!B||typeof B.write!=="function"||typeof B.end!=="function"||typeof B.on!=="function"){throw new l("expected Writable")}a(B,{readable:false},(r=>{const{callback:s,res:i,opaque:a,trailers:A,abort:c}=this;this.res=null;if(r||!i.readable){u.destroy(i,r)}this.callback=null;this.runInAsyncScope(s,null,r||null,{opaque:a,trailers:A});if(r){c()}}))}B.on("drain",i);this.res=B;const b=B.writableNeedDrain!==undefined?B.writableNeedDrain:B._writableState&&B._writableState.needDrain;return b!==true}onData(r){const{res:s}=this;return s?s.write(r):true}onComplete(r){const{res:s}=this;C(this);if(!s){return}this.trailers=u.parseHeaders(r);s.end()}onError(r){const{res:s,callback:i,opaque:a,body:A}=this;C(this);this.factory=null;if(s){this.res=null;u.destroy(s,r)}else if(i){this.callback=null;queueMicrotask((()=>{this.runInAsyncScope(i,null,r,{opaque:a})}))}if(A){this.body=null;u.destroy(A,r)}}}function stream(r,s,i){if(i===undefined){return new Promise(((i,a)=>{stream.call(this,r,s,((r,s)=>r?a(r):i(s)))}))}try{this.dispatch(r,new StreamHandler(r,s,i))}catch(s){if(typeof i!=="function"){throw s}const a=r&&r.opaque;queueMicrotask((()=>i(s,{opaque:a})))}}r.exports=stream},79347:(r,s,i)=>{"use strict";const{InvalidArgumentError:a,RequestAbortedError:A,SocketError:c}=i(33219);const{AsyncResource:l}=i(50852);const d=i(55009);const{addSignal:u,removeSignal:p}=i(88542);const g=i(39491);class UpgradeHandler extends l{constructor(r,s){if(!r||typeof r!=="object"){throw new a("invalid opts")}if(typeof s!=="function"){throw new a("invalid callback")}const{signal:i,opaque:A,responseHeaders:c}=r;if(i&&typeof i.on!=="function"&&typeof i.addEventListener!=="function"){throw new a("signal must be an EventEmitter or EventTarget")}super("UNDICI_UPGRADE");this.responseHeaders=c||null;this.opaque=A||null;this.callback=s;this.abort=null;this.context=null;u(this,i)}onConnect(r,s){if(!this.callback){throw new A}this.abort=r;this.context=null}onHeaders(){throw new c("bad upgrade",null)}onUpgrade(r,s,i){const{callback:a,opaque:A,context:c}=this;g.strictEqual(r,101);p(this);this.callback=null;const l=this.responseHeaders==="raw"?d.parseRawHeaders(s):d.parseHeaders(s);this.runInAsyncScope(a,null,null,{headers:l,socket:i,opaque:A,context:c})}onError(r){const{callback:s,opaque:i}=this;p(this);if(s){this.callback=null;queueMicrotask((()=>{this.runInAsyncScope(s,null,r,{opaque:i})}))}}}function upgrade(r,s){if(s===undefined){return new Promise(((s,i)=>{upgrade.call(this,r,((r,a)=>r?i(r):s(a)))}))}try{const i=new UpgradeHandler(r,s);this.dispatch({...r,method:r.method||"GET",upgrade:r.protocol||"Websocket"},i)}catch(i){if(typeof s!=="function"){throw i}const a=r&&r.opaque;queueMicrotask((()=>s(i,{opaque:a})))}}r.exports=upgrade},36300:(r,s,i)=>{"use strict";r.exports.request=i(31664);r.exports.stream=i(16547);r.exports.pipeline=i(59834);r.exports.upgrade=i(79347);r.exports.connect=i(49837)},63164:(r,s,i)=>{"use strict";const a=i(39491);const{Readable:A}=i(12781);const{RequestAbortedError:c,NotSupportedError:l,InvalidArgumentError:d}=i(33219);const u=i(55009);const{ReadableStreamFrom:p,toUSVString:g}=i(55009);let h;const C=Symbol("kConsume");const y=Symbol("kReading");const I=Symbol("kBody");const B=Symbol("abort");const b=Symbol("kContentType");const noop=()=>{};r.exports=class BodyReadable extends A{constructor({resume:r,abort:s,contentType:i="",highWaterMark:a=64*1024}){super({autoDestroy:true,read:r,highWaterMark:a});this._readableState.dataEmitted=false;this[B]=s;this[C]=null;this[I]=null;this[b]=i;this[y]=false}destroy(r){if(this.destroyed){return this}if(!r&&!this._readableState.endEmitted){r=new c}if(r){this[B]()}return super.destroy(r)}emit(r,...s){if(r==="data"){this._readableState.dataEmitted=true}else if(r==="error"){this._readableState.errorEmitted=true}return super.emit(r,...s)}on(r,...s){if(r==="data"||r==="readable"){this[y]=true}return super.on(r,...s)}addListener(r,...s){return this.on(r,...s)}off(r,...s){const i=super.off(r,...s);if(r==="data"||r==="readable"){this[y]=this.listenerCount("data")>0||this.listenerCount("readable")>0}return i}removeListener(r,...s){return this.off(r,...s)}push(r){if(this[C]&&r!==null&&this.readableLength===0){consumePush(this[C],r);return this[y]?super.push(r):true}return super.push(r)}async text(){return consume(this,"text")}async json(){return consume(this,"json")}async blob(){return consume(this,"blob")}async arrayBuffer(){return consume(this,"arrayBuffer")}async formData(){throw new l}get bodyUsed(){return u.isDisturbed(this)}get body(){if(!this[I]){this[I]=p(this);if(this[C]){this[I].getReader();a(this[I].locked)}}return this[I]}dump(r){let s=r&&Number.isFinite(r.limit)?r.limit:262144;const i=r&&r.signal;if(i){try{if(typeof i!=="object"||!("aborted"in i)){throw new d("signal must be an AbortSignal")}u.throwIfAborted(i)}catch(r){return Promise.reject(r)}}if(this.closed){return Promise.resolve(null)}return new Promise(((r,a)=>{const A=i?u.addAbortListener(i,(()=>{this.destroy()})):noop;this.on("close",(function(){A();if(i&&i.aborted){a(i.reason||Object.assign(new Error("The operation was aborted"),{name:"AbortError"}))}else{r(null)}})).on("error",noop).on("data",(function(r){s-=r.length;if(s<=0){this.destroy()}})).resume()}))}};function isLocked(r){return r[I]&&r[I].locked===true||r[C]}function isUnusable(r){return u.isDisturbed(r)||isLocked(r)}async function consume(r,s){if(isUnusable(r)){throw new TypeError("unusable")}a(!r[C]);return new Promise(((i,a)=>{r[C]={type:s,stream:r,resolve:i,reject:a,length:0,body:[]};r.on("error",(function(r){consumeFinish(this[C],r)})).on("close",(function(){if(this[C].body!==null){consumeFinish(this[C],new c)}}));process.nextTick(consumeStart,r[C])}))}function consumeStart(r){if(r.body===null){return}const{_readableState:s}=r.stream;for(const i of s.buffer){consumePush(r,i)}if(s.endEmitted){consumeEnd(this[C])}else{r.stream.on("end",(function(){consumeEnd(this[C])}))}r.stream.resume();while(r.stream.read()!=null){}}function consumeEnd(r){const{type:s,body:a,resolve:A,stream:c,length:l}=r;try{if(s==="text"){A(g(Buffer.concat(a)))}else if(s==="json"){A(JSON.parse(Buffer.concat(a)))}else if(s==="arrayBuffer"){const r=new Uint8Array(l);let s=0;for(const i of a){r.set(i,s);s+=i.byteLength}A(r.buffer)}else if(s==="blob"){if(!h){h=i(14300).Blob}A(new h(a,{type:c[b]}))}consumeFinish(r)}catch(r){c.destroy(r)}}function consumePush(r,s){r.length+=s.length;r.body.push(s)}function consumeFinish(r,s){if(r.body===null){return}if(s){r.reject(s)}else{r.resolve()}r.type=null;r.stream=null;r.resolve=null;r.reject=null;r.length=0;r.body=null}},44030:(r,s,i)=>{const a=i(39491);const{ResponseStatusCodeError:A}=i(33219);const{toUSVString:c}=i(55009);async function getResolveErrorBodyCallback({callback:r,body:s,contentType:i,statusCode:l,statusMessage:d,headers:u}){a(s);let p=[];let g=0;for await(const r of s){p.push(r);g+=r.length;if(g>128*1024){p=null;break}}if(l===204||!i||!p){process.nextTick(r,new A(`Response status code ${l}${d?`: ${d}`:""}`,l,u));return}try{if(i.startsWith("application/json")){const s=JSON.parse(c(Buffer.concat(p)));process.nextTick(r,new A(`Response status code ${l}${d?`: ${d}`:""}`,l,u,s));return}if(i.startsWith("text/")){const s=c(Buffer.concat(p));process.nextTick(r,new A(`Response status code ${l}${d?`: ${d}`:""}`,l,u,s));return}}catch(r){}process.nextTick(r,new A(`Response status code ${l}${d?`: ${d}`:""}`,l,u))}r.exports={getResolveErrorBodyCallback:getResolveErrorBodyCallback}},4016:(r,s,i)=>{"use strict";const{BalancedPoolMissingUpstreamError:a,InvalidArgumentError:A}=i(33219);const{PoolBase:c,kClients:l,kNeedDrain:d,kAddClient:u,kRemoveClient:p,kGetDispatcher:g}=i(56280);const h=i(21851);const{kUrl:C,kInterceptors:y}=i(52418);const{parseOrigin:I}=i(55009);const B=Symbol("factory");const b=Symbol("options");const Q=Symbol("kGreatestCommonDivisor");const w=Symbol("kCurrentWeight");const v=Symbol("kIndex");const S=Symbol("kWeight");const R=Symbol("kMaxWeightPerServer");const N=Symbol("kErrorPenalty");function getGreatestCommonDivisor(r,s){if(s===0)return r;return getGreatestCommonDivisor(s,r%s)}function defaultFactory(r,s){return new h(r,s)}class BalancedPool extends c{constructor(r=[],{factory:s=defaultFactory,...i}={}){super();this[b]=i;this[v]=-1;this[w]=0;this[R]=this[b].maxWeightPerServer||100;this[N]=this[b].errorPenalty||15;if(!Array.isArray(r)){r=[r]}if(typeof s!=="function"){throw new A("factory must be a function.")}this[y]=i.interceptors&&i.interceptors.BalancedPool&&Array.isArray(i.interceptors.BalancedPool)?i.interceptors.BalancedPool:[];this[B]=s;for(const s of r){this.addUpstream(s)}this._updateBalancedPoolStats()}addUpstream(r){const s=I(r).origin;if(this[l].find((r=>r[C].origin===s&&r.closed!==true&&r.destroyed!==true))){return this}const i=this[B](s,Object.assign({},this[b]));this[u](i);i.on("connect",(()=>{i[S]=Math.min(this[R],i[S]+this[N])}));i.on("connectionError",(()=>{i[S]=Math.max(1,i[S]-this[N]);this._updateBalancedPoolStats()}));i.on("disconnect",((...r)=>{const s=r[2];if(s&&s.code==="UND_ERR_SOCKET"){i[S]=Math.max(1,i[S]-this[N]);this._updateBalancedPoolStats()}}));for(const r of this[l]){r[S]=this[R]}this._updateBalancedPoolStats();return this}_updateBalancedPoolStats(){this[Q]=this[l].map((r=>r[S])).reduce(getGreatestCommonDivisor,0)}removeUpstream(r){const s=I(r).origin;const i=this[l].find((r=>r[C].origin===s&&r.closed!==true&&r.destroyed!==true));if(i){this[p](i)}return this}get upstreams(){return this[l].filter((r=>r.closed!==true&&r.destroyed!==true)).map((r=>r[C].origin))}[g](){if(this[l].length===0){throw new a}const r=this[l].find((r=>!r[d]&&r.closed!==true&&r.destroyed!==true));if(!r){return}const s=this[l].map((r=>r[d])).reduce(((r,s)=>r&&s),true);if(s){return}let i=0;let A=this[l].findIndex((r=>!r[d]));while(i++this[l][A][S]&&!r[d]){A=this[v]}if(this[v]===0){this[w]=this[w]-this[Q];if(this[w]<=0){this[w]=this[R]}}if(r[S]>=this[w]&&!r[d]){return r}}this[w]=this[l][A][S];this[v]=A;return this[l][A]}}r.exports=BalancedPool},51413:(r,s,i)=>{"use strict";const{kConstruct:a}=i(83485);const{urlEquals:A,fieldValues:c}=i(10193);const{kEnumerableProperty:l,isDisturbed:d}=i(55009);const{kHeadersList:u}=i(52418);const{webidl:p}=i(79224);const{Response:g,cloneResponse:h}=i(12776);const{Request:C}=i(82494);const{kState:y,kHeaders:I,kGuard:B,kRealm:b}=i(19226);const{fetching:Q}=i(37495);const{urlIsHttpHttpsScheme:w,createDeferredPromise:v,readAllBytes:S}=i(49950);const R=i(39491);const{getGlobalDispatcher:N}=i(98412);class Cache{#e;constructor(){if(arguments[0]!==a){p.illegalConstructor()}this.#e=arguments[1]}async match(r,s={}){p.brandCheck(this,Cache);p.argumentLengthCheck(arguments,1,{header:"Cache.match"});r=p.converters.RequestInfo(r);s=p.converters.CacheQueryOptions(s);const i=await this.matchAll(r,s);if(i.length===0){return}return i[0]}async matchAll(r=undefined,s={}){p.brandCheck(this,Cache);if(r!==undefined)r=p.converters.RequestInfo(r);s=p.converters.CacheQueryOptions(s);let i=null;if(r!==undefined){if(r instanceof C){i=r[y];if(i.method!=="GET"&&!s.ignoreMethod){return[]}}else if(typeof r==="string"){i=new C(r)[y]}}const a=[];if(r===undefined){for(const r of this.#e){a.push(r[1])}}else{const r=this.#t(i,s);for(const s of r){a.push(s[1])}}const A=[];for(const r of a){const s=new g(r.body?.source??null);const i=s[y].body;s[y]=r;s[y].body=i;s[I][u]=r.headersList;s[I][B]="immutable";A.push(s)}return Object.freeze(A)}async add(r){p.brandCheck(this,Cache);p.argumentLengthCheck(arguments,1,{header:"Cache.add"});r=p.converters.RequestInfo(r);const s=[r];const i=this.addAll(s);return await i}async addAll(r){p.brandCheck(this,Cache);p.argumentLengthCheck(arguments,1,{header:"Cache.addAll"});r=p.converters["sequence"](r);const s=[];const i=[];for(const s of r){if(typeof s==="string"){continue}const r=s[y];if(!w(r.url)||r.method!=="GET"){throw p.errors.exception({header:"Cache.addAll",message:"Expected http/s scheme when method is not GET."})}}const a=[];for(const A of r){const r=new C(A)[y];if(!w(r.url)){throw p.errors.exception({header:"Cache.addAll",message:"Expected http/s scheme."})}r.initiator="fetch";r.destination="subresource";i.push(r);const l=v();a.push(Q({request:r,dispatcher:N(),processResponse(r){if(r.type==="error"||r.status===206||r.status<200||r.status>299){l.reject(p.errors.exception({header:"Cache.addAll",message:"Received an invalid status code or the request failed."}))}else if(r.headersList.contains("vary")){const s=c(r.headersList.get("vary"));for(const r of s){if(r==="*"){l.reject(p.errors.exception({header:"Cache.addAll",message:"invalid vary field value"}));for(const r of a){r.abort()}return}}}},processResponseEndOfBody(r){if(r.aborted){l.reject(new DOMException("aborted","AbortError"));return}l.resolve(r)}}));s.push(l.promise)}const A=Promise.all(s);const l=await A;const d=[];let u=0;for(const r of l){const s={type:"put",request:i[u],response:r};d.push(s);u++}const g=v();let h=null;try{this.#r(d)}catch(r){h=r}queueMicrotask((()=>{if(h===null){g.resolve(undefined)}else{g.reject(h)}}));return g.promise}async put(r,s){p.brandCheck(this,Cache);p.argumentLengthCheck(arguments,2,{header:"Cache.put"});r=p.converters.RequestInfo(r);s=p.converters.Response(s);let i=null;if(r instanceof C){i=r[y]}else{i=new C(r)[y]}if(!w(i.url)||i.method!=="GET"){throw p.errors.exception({header:"Cache.put",message:"Expected an http/s scheme when method is not GET"})}const a=s[y];if(a.status===206){throw p.errors.exception({header:"Cache.put",message:"Got 206 status"})}if(a.headersList.contains("vary")){const r=c(a.headersList.get("vary"));for(const s of r){if(s==="*"){throw p.errors.exception({header:"Cache.put",message:"Got * vary field value"})}}}if(a.body&&(d(a.body.stream)||a.body.stream.locked)){throw p.errors.exception({header:"Cache.put",message:"Response body is locked or disturbed"})}const A=h(a);const l=v();if(a.body!=null){const r=a.body.stream;const s=r.getReader();S(s).then(l.resolve,l.reject)}else{l.resolve(undefined)}const u=[];const g={type:"put",request:i,response:A};u.push(g);const I=await l.promise;if(A.body!=null){A.body.source=I}const B=v();let b=null;try{this.#r(u)}catch(r){b=r}queueMicrotask((()=>{if(b===null){B.resolve()}else{B.reject(b)}}));return B.promise}async delete(r,s={}){p.brandCheck(this,Cache);p.argumentLengthCheck(arguments,1,{header:"Cache.delete"});r=p.converters.RequestInfo(r);s=p.converters.CacheQueryOptions(s);let i=null;if(r instanceof C){i=r[y];if(i.method!=="GET"&&!s.ignoreMethod){return false}}else{R(typeof r==="string");i=new C(r)[y]}const a=[];const A={type:"delete",request:i,options:s};a.push(A);const c=v();let l=null;let d;try{d=this.#r(a)}catch(r){l=r}queueMicrotask((()=>{if(l===null){c.resolve(!!d?.length)}else{c.reject(l)}}));return c.promise}async keys(r=undefined,s={}){p.brandCheck(this,Cache);if(r!==undefined)r=p.converters.RequestInfo(r);s=p.converters.CacheQueryOptions(s);let i=null;if(r!==undefined){if(r instanceof C){i=r[y];if(i.method!=="GET"&&!s.ignoreMethod){return[]}}else if(typeof r==="string"){i=new C(r)[y]}}const a=v();const A=[];if(r===undefined){for(const r of this.#e){A.push(r[0])}}else{const r=this.#t(i,s);for(const s of r){A.push(s[0])}}queueMicrotask((()=>{const r=[];for(const s of A){const i=new C("https://a");i[y]=s;i[I][u]=s.headersList;i[I][B]="immutable";i[b]=s.client;r.push(i)}a.resolve(Object.freeze(r))}));return a.promise}#r(r){const s=this.#e;const i=[...s];const a=[];const A=[];try{for(const i of r){if(i.type!=="delete"&&i.type!=="put"){throw p.errors.exception({header:"Cache.#batchCacheOperations",message:'operation type does not match "delete" or "put"'})}if(i.type==="delete"&&i.response!=null){throw p.errors.exception({header:"Cache.#batchCacheOperations",message:"delete operation should not have an associated response"})}if(this.#t(i.request,i.options,a).length){throw new DOMException("???","InvalidStateError")}let r;if(i.type==="delete"){r=this.#t(i.request,i.options);if(r.length===0){return[]}for(const i of r){const r=s.indexOf(i);R(r!==-1);s.splice(r,1)}}else if(i.type==="put"){if(i.response==null){throw p.errors.exception({header:"Cache.#batchCacheOperations",message:"put operation should have an associated response"})}const A=i.request;if(!w(A.url)){throw p.errors.exception({header:"Cache.#batchCacheOperations",message:"expected http or https scheme"})}if(A.method!=="GET"){throw p.errors.exception({header:"Cache.#batchCacheOperations",message:"not get method"})}if(i.options!=null){throw p.errors.exception({header:"Cache.#batchCacheOperations",message:"options must not be defined"})}r=this.#t(i.request);for(const i of r){const r=s.indexOf(i);R(r!==-1);s.splice(r,1)}s.push([i.request,i.response]);a.push([i.request,i.response])}A.push([i.request,i.response])}return A}catch(r){this.#e.length=0;this.#e=i;throw r}}#t(r,s,i){const a=[];const A=i??this.#e;for(const i of A){const[A,c]=i;if(this.#n(r,A,c,s)){a.push(i)}}return a}#n(r,s,i=null,a){const l=new URL(r.url);const d=new URL(s.url);if(a?.ignoreSearch){d.search="";l.search=""}if(!A(l,d,true)){return false}if(i==null||a?.ignoreVary||!i.headersList.contains("vary")){return true}const u=c(i.headersList.get("vary"));for(const i of u){if(i==="*"){return false}const a=s.headersList.get(i);const A=r.headersList.get(i);if(a!==A){return false}}return true}}Object.defineProperties(Cache.prototype,{[Symbol.toStringTag]:{value:"Cache",configurable:true},match:l,matchAll:l,add:l,addAll:l,put:l,delete:l,keys:l});const x=[{key:"ignoreSearch",converter:p.converters.boolean,defaultValue:false},{key:"ignoreMethod",converter:p.converters.boolean,defaultValue:false},{key:"ignoreVary",converter:p.converters.boolean,defaultValue:false}];p.converters.CacheQueryOptions=p.dictionaryConverter(x);p.converters.MultiCacheQueryOptions=p.dictionaryConverter([...x,{key:"cacheName",converter:p.converters.DOMString}]);p.converters.Response=p.interfaceConverter(g);p.converters["sequence"]=p.sequenceConverter(p.converters.RequestInfo);r.exports={Cache:Cache}},72219:(r,s,i)=>{"use strict";const{kConstruct:a}=i(83485);const{Cache:A}=i(51413);const{webidl:c}=i(79224);const{kEnumerableProperty:l}=i(55009);class CacheStorage{#s=new Map;constructor(){if(arguments[0]!==a){c.illegalConstructor()}}async match(r,s={}){c.brandCheck(this,CacheStorage);c.argumentLengthCheck(arguments,1,{header:"CacheStorage.match"});r=c.converters.RequestInfo(r);s=c.converters.MultiCacheQueryOptions(s);if(s.cacheName!=null){if(this.#s.has(s.cacheName)){const i=this.#s.get(s.cacheName);const c=new A(a,i);return await c.match(r,s)}}else{for(const i of this.#s.values()){const c=new A(a,i);const l=await c.match(r,s);if(l!==undefined){return l}}}}async has(r){c.brandCheck(this,CacheStorage);c.argumentLengthCheck(arguments,1,{header:"CacheStorage.has"});r=c.converters.DOMString(r);return this.#s.has(r)}async open(r){c.brandCheck(this,CacheStorage);c.argumentLengthCheck(arguments,1,{header:"CacheStorage.open"});r=c.converters.DOMString(r);if(this.#s.has(r)){const s=this.#s.get(r);return new A(a,s)}const s=[];this.#s.set(r,s);return new A(a,s)}async delete(r){c.brandCheck(this,CacheStorage);c.argumentLengthCheck(arguments,1,{header:"CacheStorage.delete"});r=c.converters.DOMString(r);return this.#s.delete(r)}async keys(){c.brandCheck(this,CacheStorage);const r=this.#s.keys();return[...r]}}Object.defineProperties(CacheStorage.prototype,{[Symbol.toStringTag]:{value:"CacheStorage",configurable:true},match:l,has:l,open:l,delete:l,keys:l});r.exports={CacheStorage:CacheStorage}},83485:(r,s,i)=>{"use strict";r.exports={kConstruct:i(52418).kConstruct}},10193:(r,s,i)=>{"use strict";const a=i(39491);const{URLSerializer:A}=i(88576);const{isValidHeaderName:c}=i(49950);function urlEquals(r,s,i=false){const a=A(r,i);const c=A(s,i);return a===c}function fieldValues(r){a(r!==null);const s=[];for(let i of r.split(",")){i=i.trim();if(!i.length){continue}else if(!c(i)){continue}s.push(i)}return s}r.exports={urlEquals:urlEquals,fieldValues:fieldValues}},19128:(r,s,i)=>{"use strict";const a=i(39491);const A=i(41808);const c=i(13685);const{pipeline:l}=i(12781);const d=i(55009);const u=i(21647);const p=i(38922);const g=i(25901);const{RequestContentLengthMismatchError:h,ResponseContentLengthMismatchError:C,InvalidArgumentError:y,RequestAbortedError:I,HeadersTimeoutError:B,HeadersOverflowError:b,SocketError:Q,InformationalError:w,BodyTimeoutError:v,HTTPParserError:S,ResponseExceededMaxSizeError:R,ClientDestroyedError:N}=i(33219);const x=i(35470);const{kUrl:D,kReset:k,kServerName:T,kClient:_,kBusy:P,kParser:O,kConnect:L,kBlocking:M,kResuming:U,kRunning:H,kPending:G,kSize:q,kWriting:V,kQueue:j,kConnected:z,kConnecting:Y,kNeedDrain:J,kNoRef:W,kKeepAliveDefaultTimeout:X,kHostHeader:$,kPendingIdx:K,kRunningIdx:Z,kError:ee,kPipelining:te,kSocket:re,kKeepAliveTimeoutValue:ne,kMaxHeadersSize:se,kKeepAliveMaxTimeout:ie,kKeepAliveTimeoutThreshold:oe,kHeadersTimeout:ae,kBodyTimeout:Ae,kStrictContentLength:ce,kConnector:le,kMaxRedirections:de,kMaxRequests:ue,kCounter:pe,kClose:ge,kDestroy:he,kDispatch:me,kInterceptors:fe,kLocalAddress:Ee,kMaxResponseSize:Ce,kHTTPConnVersion:ye,kHost:Ie,kHTTP2Session:Be,kHTTP2SessionState:be,kHTTP2BuildRequest:Qe,kHTTP2CopyHeaders:we,kHTTP1BuildRequest:ve}=i(52418);let Se;try{Se=i(85158)}catch{Se={constants:{}}}const{constants:{HTTP2_HEADER_AUTHORITY:Re,HTTP2_HEADER_METHOD:Ne,HTTP2_HEADER_PATH:xe,HTTP2_HEADER_SCHEME:De,HTTP2_HEADER_CONTENT_LENGTH:ke,HTTP2_HEADER_EXPECT:Te,HTTP2_HEADER_STATUS:_e}}=Se;let Pe=false;const Oe=Buffer[Symbol.species];const Fe=Symbol("kClosedResolve");const Le={};try{const r=i(67643);Le.sendHeaders=r.channel("undici:client:sendHeaders");Le.beforeConnect=r.channel("undici:client:beforeConnect");Le.connectError=r.channel("undici:client:connectError");Le.connected=r.channel("undici:client:connected")}catch{Le.sendHeaders={hasSubscribers:false};Le.beforeConnect={hasSubscribers:false};Le.connectError={hasSubscribers:false};Le.connected={hasSubscribers:false}}class Client extends g{constructor(r,{interceptors:s,maxHeaderSize:i,headersTimeout:a,socketTimeout:l,requestTimeout:u,connectTimeout:p,bodyTimeout:g,idleTimeout:h,keepAlive:C,keepAliveTimeout:I,maxKeepAliveTimeout:B,keepAliveMaxTimeout:b,keepAliveTimeoutThreshold:Q,socketPath:w,pipelining:v,tls:S,strictContentLength:R,maxCachedSessions:N,maxRedirections:k,connect:_,maxRequestsPerClient:P,localAddress:O,maxResponseSize:L,autoSelectFamily:M,autoSelectFamilyAttemptTimeout:H,allowH2:G,maxConcurrentStreams:q}={}){super();if(C!==undefined){throw new y("unsupported keepAlive, use pipelining=0 instead")}if(l!==undefined){throw new y("unsupported socketTimeout, use headersTimeout & bodyTimeout instead")}if(u!==undefined){throw new y("unsupported requestTimeout, use headersTimeout & bodyTimeout instead")}if(h!==undefined){throw new y("unsupported idleTimeout, use keepAliveTimeout instead")}if(B!==undefined){throw new y("unsupported maxKeepAliveTimeout, use keepAliveMaxTimeout instead")}if(i!=null&&!Number.isFinite(i)){throw new y("invalid maxHeaderSize")}if(w!=null&&typeof w!=="string"){throw new y("invalid socketPath")}if(p!=null&&(!Number.isFinite(p)||p<0)){throw new y("invalid connectTimeout")}if(I!=null&&(!Number.isFinite(I)||I<=0)){throw new y("invalid keepAliveTimeout")}if(b!=null&&(!Number.isFinite(b)||b<=0)){throw new y("invalid keepAliveMaxTimeout")}if(Q!=null&&!Number.isFinite(Q)){throw new y("invalid keepAliveTimeoutThreshold")}if(a!=null&&(!Number.isInteger(a)||a<0)){throw new y("headersTimeout must be a positive integer or zero")}if(g!=null&&(!Number.isInteger(g)||g<0)){throw new y("bodyTimeout must be a positive integer or zero")}if(_!=null&&typeof _!=="function"&&typeof _!=="object"){throw new y("connect must be a function or an object")}if(k!=null&&(!Number.isInteger(k)||k<0)){throw new y("maxRedirections must be a positive number")}if(P!=null&&(!Number.isInteger(P)||P<0)){throw new y("maxRequestsPerClient must be a positive number")}if(O!=null&&(typeof O!=="string"||A.isIP(O)===0)){throw new y("localAddress must be valid string IP address")}if(L!=null&&(!Number.isInteger(L)||L<-1)){throw new y("maxResponseSize must be a positive number")}if(H!=null&&(!Number.isInteger(H)||H<-1)){throw new y("autoSelectFamilyAttemptTimeout must be a positive number")}if(G!=null&&typeof G!=="boolean"){throw new y("allowH2 must be a valid boolean value")}if(q!=null&&(typeof q!=="number"||q<1)){throw new y("maxConcurrentStreams must be a possitive integer, greater than 0")}if(typeof _!=="function"){_=x({...S,maxCachedSessions:N,allowH2:G,socketPath:w,timeout:p,...d.nodeHasAutoSelectFamily&&M?{autoSelectFamily:M,autoSelectFamilyAttemptTimeout:H}:undefined,..._})}this[fe]=s&&s.Client&&Array.isArray(s.Client)?s.Client:[Ue({maxRedirections:k})];this[D]=d.parseOrigin(r);this[le]=_;this[re]=null;this[te]=v!=null?v:1;this[se]=i||c.maxHeaderSize;this[X]=I==null?4e3:I;this[ie]=b==null?6e5:b;this[oe]=Q==null?1e3:Q;this[ne]=this[X];this[T]=null;this[Ee]=O!=null?O:null;this[U]=0;this[J]=0;this[$]=`host: ${this[D].hostname}${this[D].port?`:${this[D].port}`:""}\r\n`;this[Ae]=g!=null?g:3e5;this[ae]=a!=null?a:3e5;this[ce]=R==null?true:R;this[de]=k;this[ue]=P;this[Fe]=null;this[Ce]=L>-1?L:-1;this[ye]="h1";this[Be]=null;this[be]=!G?null:{openStreams:0,maxConcurrentStreams:q!=null?q:100};this[Ie]=`${this[D].hostname}${this[D].port?`:${this[D].port}`:""}`;this[j]=[];this[Z]=0;this[K]=0}get pipelining(){return this[te]}set pipelining(r){this[te]=r;resume(this,true)}get[G](){return this[j].length-this[K]}get[H](){return this[K]-this[Z]}get[q](){return this[j].length-this[Z]}get[z](){return!!this[re]&&!this[Y]&&!this[re].destroyed}get[P](){const r=this[re];return r&&(r[k]||r[V]||r[M])||this[q]>=(this[te]||1)||this[G]>0}[L](r){connect(this);this.once("connect",r)}[me](r,s){const i=r.origin||this[D].origin;const a=this[ye]==="h2"?p[Qe](i,r,s):p[ve](i,r,s);this[j].push(a);if(this[U]){}else if(d.bodyLength(a.body)==null&&d.isIterable(a.body)){this[U]=1;process.nextTick(resume,this)}else{resume(this,true)}if(this[U]&&this[J]!==2&&this[P]){this[J]=2}return this[J]<2}async[ge](){return new Promise((r=>{if(!this[q]){r(null)}else{this[Fe]=r}}))}async[he](r){return new Promise((s=>{const i=this[j].splice(this[K]);for(let s=0;s{if(this[Fe]){this[Fe]();this[Fe]=null}s()};if(this[Be]!=null){d.destroy(this[Be],r);this[Be]=null;this[be]=null}if(!this[re]){queueMicrotask(callback)}else{d.destroy(this[re].on("close",callback),r)}resume(this)}))}}function onHttp2SessionError(r){a(r.code!=="ERR_TLS_CERT_ALTNAME_INVALID");this[re][ee]=r;onError(this[_],r)}function onHttp2FrameError(r,s,i){const a=new w(`HTTP/2: "frameError" received - type ${r}, code ${s}`);if(i===0){this[re][ee]=a;onError(this[_],a)}}function onHttp2SessionEnd(){d.destroy(this,new Q("other side closed"));d.destroy(this[re],new Q("other side closed"))}function onHTTP2GoAway(r){const s=this[_];const i=new w(`HTTP/2: "GOAWAY" frame received with code ${r}`);s[re]=null;s[Be]=null;if(s.destroyed){a(this[G]===0);const r=s[j].splice(s[Z]);for(let s=0;s0){const r=s[j][s[Z]];s[j][s[Z]++]=null;errorRequest(s,r,i)}s[K]=s[Z];a(s[H]===0);s.emit("disconnect",s[D],[s],i);resume(s)}const Me=i(53768);const Ue=i(19363);const He=Buffer.alloc(0);async function lazyllhttp(){const r=process.env.JEST_WORKER_ID?i(22155):undefined;let s;try{s=await WebAssembly.compile(Buffer.from(i(21412),"base64"))}catch(a){s=await WebAssembly.compile(Buffer.from(r||i(22155),"base64"))}return await WebAssembly.instantiate(s,{env:{wasm_on_url:(r,s,i)=>0,wasm_on_status:(r,s,i)=>{a.strictEqual(Ve.ptr,r);const A=s-Ye+je.byteOffset;return Ve.onStatus(new Oe(je.buffer,A,i))||0},wasm_on_message_begin:r=>{a.strictEqual(Ve.ptr,r);return Ve.onMessageBegin()||0},wasm_on_header_field:(r,s,i)=>{a.strictEqual(Ve.ptr,r);const A=s-Ye+je.byteOffset;return Ve.onHeaderField(new Oe(je.buffer,A,i))||0},wasm_on_header_value:(r,s,i)=>{a.strictEqual(Ve.ptr,r);const A=s-Ye+je.byteOffset;return Ve.onHeaderValue(new Oe(je.buffer,A,i))||0},wasm_on_headers_complete:(r,s,i,A)=>{a.strictEqual(Ve.ptr,r);return Ve.onHeadersComplete(s,Boolean(i),Boolean(A))||0},wasm_on_body:(r,s,i)=>{a.strictEqual(Ve.ptr,r);const A=s-Ye+je.byteOffset;return Ve.onBody(new Oe(je.buffer,A,i))||0},wasm_on_message_complete:r=>{a.strictEqual(Ve.ptr,r);return Ve.onMessageComplete()||0}}})}let Ge=null;let qe=lazyllhttp();qe.catch();let Ve=null;let je=null;let ze=0;let Ye=null;const Je=1;const We=2;const Xe=3;class Parser{constructor(r,s,{exports:i}){a(Number.isFinite(r[se])&&r[se]>0);this.llhttp=i;this.ptr=this.llhttp.llhttp_alloc(Me.TYPE.RESPONSE);this.client=r;this.socket=s;this.timeout=null;this.timeoutValue=null;this.timeoutType=null;this.statusCode=null;this.statusText="";this.upgrade=false;this.headers=[];this.headersSize=0;this.headersMaxSize=r[se];this.shouldKeepAlive=false;this.paused=false;this.resume=this.resume.bind(this);this.bytesRead=0;this.keepAlive="";this.contentLength="";this.connection="";this.maxResponseSize=r[Ce]}setTimeout(r,s){this.timeoutType=s;if(r!==this.timeoutValue){u.clearTimeout(this.timeout);if(r){this.timeout=u.setTimeout(onParserTimeout,r,this);if(this.timeout.unref){this.timeout.unref()}}else{this.timeout=null}this.timeoutValue=r}else if(this.timeout){if(this.timeout.refresh){this.timeout.refresh()}}}resume(){if(this.socket.destroyed||!this.paused){return}a(this.ptr!=null);a(Ve==null);this.llhttp.llhttp_resume(this.ptr);a(this.timeoutType===We);if(this.timeout){if(this.timeout.refresh){this.timeout.refresh()}}this.paused=false;this.execute(this.socket.read()||He);this.readMore()}readMore(){while(!this.paused&&this.ptr){const r=this.socket.read();if(r===null){break}this.execute(r)}}execute(r){a(this.ptr!=null);a(Ve==null);a(!this.paused);const{socket:s,llhttp:i}=this;if(r.length>ze){if(Ye){i.free(Ye)}ze=Math.ceil(r.length/4096)*4096;Ye=i.malloc(ze)}new Uint8Array(i.memory.buffer,Ye,ze).set(r);try{let a;try{je=r;Ve=this;a=i.llhttp_execute(this.ptr,Ye,r.length)}catch(r){throw r}finally{Ve=null;je=null}const A=i.llhttp_get_error_pos(this.ptr)-Ye;if(a===Me.ERROR.PAUSED_UPGRADE){this.onUpgrade(r.slice(A))}else if(a===Me.ERROR.PAUSED){this.paused=true;s.unshift(r.slice(A))}else if(a!==Me.ERROR.OK){const s=i.llhttp_get_error_reason(this.ptr);let c="";if(s){const r=new Uint8Array(i.memory.buffer,s).indexOf(0);c="Response does not match the HTTP/1.1 protocol ("+Buffer.from(i.memory.buffer,s,r).toString()+")"}throw new S(c,Me.ERROR[a],r.slice(A))}}catch(r){d.destroy(s,r)}}destroy(){a(this.ptr!=null);a(Ve==null);this.llhttp.llhttp_free(this.ptr);this.ptr=null;u.clearTimeout(this.timeout);this.timeout=null;this.timeoutValue=null;this.timeoutType=null;this.paused=false}onStatus(r){this.statusText=r.toString()}onMessageBegin(){const{socket:r,client:s}=this;if(r.destroyed){return-1}const i=s[j][s[Z]];if(!i){return-1}}onHeaderField(r){const s=this.headers.length;if((s&1)===0){this.headers.push(r)}else{this.headers[s-1]=Buffer.concat([this.headers[s-1],r])}this.trackHeader(r.length)}onHeaderValue(r){let s=this.headers.length;if((s&1)===1){this.headers.push(r);s+=1}else{this.headers[s-1]=Buffer.concat([this.headers[s-1],r])}const i=this.headers[s-2];if(i.length===10&&i.toString().toLowerCase()==="keep-alive"){this.keepAlive+=r.toString()}else if(i.length===10&&i.toString().toLowerCase()==="connection"){this.connection+=r.toString()}else if(i.length===14&&i.toString().toLowerCase()==="content-length"){this.contentLength+=r.toString()}this.trackHeader(r.length)}trackHeader(r){this.headersSize+=r;if(this.headersSize>=this.headersMaxSize){d.destroy(this.socket,new b)}}onUpgrade(r){const{upgrade:s,client:i,socket:A,headers:c,statusCode:l}=this;a(s);const u=i[j][i[Z]];a(u);a(!A.destroyed);a(A===i[re]);a(!this.paused);a(u.upgrade||u.method==="CONNECT");this.statusCode=null;this.statusText="";this.shouldKeepAlive=null;a(this.headers.length%2===0);this.headers=[];this.headersSize=0;A.unshift(r);A[O].destroy();A[O]=null;A[_]=null;A[ee]=null;A.removeListener("error",onSocketError).removeListener("readable",onSocketReadable).removeListener("end",onSocketEnd).removeListener("close",onSocketClose);i[re]=null;i[j][i[Z]++]=null;i.emit("disconnect",i[D],[i],new w("upgrade"));try{u.onUpgrade(l,c,A)}catch(r){d.destroy(A,r)}resume(i)}onHeadersComplete(r,s,i){const{client:A,socket:c,headers:l,statusText:u}=this;if(c.destroyed){return-1}const p=A[j][A[Z]];if(!p){return-1}a(!this.upgrade);a(this.statusCode<200);if(r===100){d.destroy(c,new Q("bad response",d.getSocketInfo(c)));return-1}if(s&&!p.upgrade){d.destroy(c,new Q("bad upgrade",d.getSocketInfo(c)));return-1}a.strictEqual(this.timeoutType,Je);this.statusCode=r;this.shouldKeepAlive=i||p.method==="HEAD"&&!c[k]&&this.connection.toLowerCase()==="keep-alive";if(this.statusCode>=200){const r=p.bodyTimeout!=null?p.bodyTimeout:A[Ae];this.setTimeout(r,We)}else if(this.timeout){if(this.timeout.refresh){this.timeout.refresh()}}if(p.method==="CONNECT"){a(A[H]===1);this.upgrade=true;return 2}if(s){a(A[H]===1);this.upgrade=true;return 2}a(this.headers.length%2===0);this.headers=[];this.headersSize=0;if(this.shouldKeepAlive&&A[te]){const r=this.keepAlive?d.parseKeepAliveTimeout(this.keepAlive):null;if(r!=null){const s=Math.min(r-A[oe],A[ie]);if(s<=0){c[k]=true}else{A[ne]=s}}else{A[ne]=A[X]}}else{c[k]=true}const g=p.onHeaders(r,l,this.resume,u)===false;if(p.aborted){return-1}if(p.method==="HEAD"){return 1}if(r<200){return 1}if(c[M]){c[M]=false;resume(A)}return g?Me.ERROR.PAUSED:0}onBody(r){const{client:s,socket:i,statusCode:A,maxResponseSize:c}=this;if(i.destroyed){return-1}const l=s[j][s[Z]];a(l);a.strictEqual(this.timeoutType,We);if(this.timeout){if(this.timeout.refresh){this.timeout.refresh()}}a(A>=200);if(c>-1&&this.bytesRead+r.length>c){d.destroy(i,new R);return-1}this.bytesRead+=r.length;if(l.onData(r)===false){return Me.ERROR.PAUSED}}onMessageComplete(){const{client:r,socket:s,statusCode:i,upgrade:A,headers:c,contentLength:l,bytesRead:u,shouldKeepAlive:p}=this;if(s.destroyed&&(!i||p)){return-1}if(A){return}const g=r[j][r[Z]];a(g);a(i>=100);this.statusCode=null;this.statusText="";this.bytesRead=0;this.contentLength="";this.keepAlive="";this.connection="";a(this.headers.length%2===0);this.headers=[];this.headersSize=0;if(i<200){return}if(g.method!=="HEAD"&&l&&u!==parseInt(l,10)){d.destroy(s,new C);return-1}g.onComplete(c);r[j][r[Z]++]=null;if(s[V]){a.strictEqual(r[H],0);d.destroy(s,new w("reset"));return Me.ERROR.PAUSED}else if(!p){d.destroy(s,new w("reset"));return Me.ERROR.PAUSED}else if(s[k]&&r[H]===0){d.destroy(s,new w("reset"));return Me.ERROR.PAUSED}else if(r[te]===1){setImmediate(resume,r)}else{resume(r)}}}function onParserTimeout(r){const{socket:s,timeoutType:i,client:A}=r;if(i===Je){if(!s[V]||s.writableNeedDrain||A[H]>1){a(!r.paused,"cannot be paused while waiting for headers");d.destroy(s,new B)}}else if(i===We){if(!r.paused){d.destroy(s,new v)}}else if(i===Xe){a(A[H]===0&&A[ne]);d.destroy(s,new w("socket idle timeout"))}}function onSocketReadable(){const{[O]:r}=this;if(r){r.readMore()}}function onSocketError(r){const{[_]:s,[O]:i}=this;a(r.code!=="ERR_TLS_CERT_ALTNAME_INVALID");if(s[ye]!=="h2"){if(r.code==="ECONNRESET"&&i.statusCode&&!i.shouldKeepAlive){i.onMessageComplete();return}}this[ee]=r;onError(this[_],r)}function onError(r,s){if(r[H]===0&&s.code!=="UND_ERR_INFO"&&s.code!=="UND_ERR_SOCKET"){a(r[K]===r[Z]);const i=r[j].splice(r[Z]);for(let a=0;a0&&i.code!=="UND_ERR_INFO"){const s=r[j][r[Z]];r[j][r[Z]++]=null;errorRequest(r,s,i)}r[K]=r[Z];a(r[H]===0);r.emit("disconnect",r[D],[r],i);resume(r)}async function connect(r){a(!r[Y]);a(!r[re]);let{host:s,hostname:i,protocol:c,port:l}=r[D];if(i[0]==="["){const r=i.indexOf("]");a(r!==-1);const s=i.substring(1,r);a(A.isIP(s));i=s}r[Y]=true;if(Le.beforeConnect.hasSubscribers){Le.beforeConnect.publish({connectParams:{host:s,hostname:i,protocol:c,port:l,servername:r[T],localAddress:r[Ee]},connector:r[le]})}try{const A=await new Promise(((a,A)=>{r[le]({host:s,hostname:i,protocol:c,port:l,servername:r[T],localAddress:r[Ee]},((r,s)=>{if(r){A(r)}else{a(s)}}))}));if(r.destroyed){d.destroy(A.on("error",(()=>{})),new N);return}r[Y]=false;a(A);const u=A.alpnProtocol==="h2";if(u){if(!Pe){Pe=true;process.emitWarning("H2 support is experimental, expect them to change at any time.",{code:"UNDICI-H2"})}const s=Se.connect(r[D],{createConnection:()=>A,peerMaxConcurrentStreams:r[be].maxConcurrentStreams});r[ye]="h2";s[_]=r;s[re]=A;s.on("error",onHttp2SessionError);s.on("frameError",onHttp2FrameError);s.on("end",onHttp2SessionEnd);s.on("goaway",onHTTP2GoAway);s.on("close",onSocketClose);s.unref();r[Be]=s;A[Be]=s}else{if(!Ge){Ge=await qe;qe=null}A[W]=false;A[V]=false;A[k]=false;A[M]=false;A[O]=new Parser(r,A,Ge)}A[pe]=0;A[ue]=r[ue];A[_]=r;A[ee]=null;A.on("error",onSocketError).on("readable",onSocketReadable).on("end",onSocketEnd).on("close",onSocketClose);r[re]=A;if(Le.connected.hasSubscribers){Le.connected.publish({connectParams:{host:s,hostname:i,protocol:c,port:l,servername:r[T],localAddress:r[Ee]},connector:r[le],socket:A})}r.emit("connect",r[D],[r])}catch(A){if(r.destroyed){return}r[Y]=false;if(Le.connectError.hasSubscribers){Le.connectError.publish({connectParams:{host:s,hostname:i,protocol:c,port:l,servername:r[T],localAddress:r[Ee]},connector:r[le],error:A})}if(A.code==="ERR_TLS_CERT_ALTNAME_INVALID"){a(r[H]===0);while(r[G]>0&&r[j][r[K]].servername===r[T]){const s=r[j][r[K]++];errorRequest(r,s,A)}}else{onError(r,A)}r.emit("connectionError",r[D],[r],A)}resume(r)}function emitDrain(r){r[J]=0;r.emit("drain",r[D],[r])}function resume(r,s){if(r[U]===2){return}r[U]=2;_resume(r,s);r[U]=0;if(r[Z]>256){r[j].splice(0,r[Z]);r[K]-=r[Z];r[Z]=0}}function _resume(r,s){while(true){if(r.destroyed){a(r[G]===0);return}if(r[Fe]&&!r[q]){r[Fe]();r[Fe]=null;return}const i=r[re];if(i&&!i.destroyed&&i.alpnProtocol!=="h2"){if(r[q]===0){if(!i[W]&&i.unref){i.unref();i[W]=true}}else if(i[W]&&i.ref){i.ref();i[W]=false}if(r[q]===0){if(i[O].timeoutType!==Xe){i[O].setTimeout(r[ne],Xe)}}else if(r[H]>0&&i[O].statusCode<200){if(i[O].timeoutType!==Je){const s=r[j][r[Z]];const a=s.headersTimeout!=null?s.headersTimeout:r[ae];i[O].setTimeout(a,Je)}}}if(r[P]){r[J]=2}else if(r[J]===2){if(s){r[J]=1;process.nextTick(emitDrain,r)}else{emitDrain(r)}continue}if(r[G]===0){return}if(r[H]>=(r[te]||1)){return}const A=r[j][r[K]];if(r[D].protocol==="https:"&&r[T]!==A.servername){if(r[H]>0){return}r[T]=A.servername;if(i&&i.servername!==A.servername){d.destroy(i,new w("servername changed"));return}}if(r[Y]){return}if(!i&&!r[Be]){connect(r);return}if(i.destroyed||i[V]||i[k]||i[M]){return}if(r[H]>0&&!A.idempotent){return}if(r[H]>0&&(A.upgrade||A.method==="CONNECT")){return}if(r[H]>0&&d.bodyLength(A.body)!==0&&(d.isStream(A.body)||d.isAsyncIterable(A.body))){return}if(!A.aborted&&write(r,A)){r[K]++}else{r[j].splice(r[K],1)}}}function shouldSendContentLength(r){return r!=="GET"&&r!=="HEAD"&&r!=="OPTIONS"&&r!=="TRACE"&&r!=="CONNECT"}function write(r,s){if(r[ye]==="h2"){writeH2(r,r[Be],s);return}const{body:i,method:A,path:c,host:l,upgrade:u,headers:p,blocking:g,reset:C}=s;const y=A==="PUT"||A==="POST"||A==="PATCH";if(i&&typeof i.read==="function"){i.read(0)}const B=d.bodyLength(i);let b=B;if(b===null){b=s.contentLength}if(b===0&&!y){b=null}if(shouldSendContentLength(A)&&b>0&&s.contentLength!==null&&s.contentLength!==b){if(r[ce]){errorRequest(r,s,new h);return false}process.emitWarning(new h)}const Q=r[re];try{s.onConnect((i=>{if(s.aborted||s.completed){return}errorRequest(r,s,i||new I);d.destroy(Q,new w("aborted"))}))}catch(i){errorRequest(r,s,i)}if(s.aborted){return false}if(A==="HEAD"){Q[k]=true}if(u||A==="CONNECT"){Q[k]=true}if(C!=null){Q[k]=C}if(r[ue]&&Q[pe]++>=r[ue]){Q[k]=true}if(g){Q[M]=true}let v=`${A} ${c} HTTP/1.1\r\n`;if(typeof l==="string"){v+=`host: ${l}\r\n`}else{v+=r[$]}if(u){v+=`connection: upgrade\r\nupgrade: ${u}\r\n`}else if(r[te]&&!Q[k]){v+="connection: keep-alive\r\n"}else{v+="connection: close\r\n"}if(p){v+=p}if(Le.sendHeaders.hasSubscribers){Le.sendHeaders.publish({request:s,headers:v,socket:Q})}if(!i||B===0){if(b===0){Q.write(`${v}content-length: 0\r\n\r\n`,"latin1")}else{a(b===null,"no body must not have content length");Q.write(`${v}\r\n`,"latin1")}s.onRequestSent()}else if(d.isBuffer(i)){a(b===i.byteLength,"buffer body must have content length");Q.cork();Q.write(`${v}content-length: ${b}\r\n\r\n`,"latin1");Q.write(i);Q.uncork();s.onBodySent(i);s.onRequestSent();if(!y){Q[k]=true}}else if(d.isBlobLike(i)){if(typeof i.stream==="function"){writeIterable({body:i.stream(),client:r,request:s,socket:Q,contentLength:b,header:v,expectsPayload:y})}else{writeBlob({body:i,client:r,request:s,socket:Q,contentLength:b,header:v,expectsPayload:y})}}else if(d.isStream(i)){writeStream({body:i,client:r,request:s,socket:Q,contentLength:b,header:v,expectsPayload:y})}else if(d.isIterable(i)){writeIterable({body:i,client:r,request:s,socket:Q,contentLength:b,header:v,expectsPayload:y})}else{a(false)}return true}function writeH2(r,s,i){const{body:A,method:c,path:l,host:u,upgrade:g,expectContinue:C,signal:y,headers:B}=i;let b;if(typeof B==="string")b=p[we](B.trim());else b=B;if(g){errorRequest(r,i,new Error("Upgrade not supported for H2"));return false}try{i.onConnect((s=>{if(i.aborted||i.completed){return}errorRequest(r,i,s||new I)}))}catch(s){errorRequest(r,i,s)}if(i.aborted){return false}let Q;const v=r[be];b[Re]=u||r[Ie];b[Ne]=c;if(c==="CONNECT"){s.ref();Q=s.request(b,{endStream:false,signal:y});if(Q.id&&!Q.pending){i.onUpgrade(null,null,Q);++v.openStreams}else{Q.once("ready",(()=>{i.onUpgrade(null,null,Q);++v.openStreams}))}Q.once("close",(()=>{v.openStreams-=1;if(v.openStreams===0)s.unref()}));return true}b[xe]=l;b[De]="https";const S=c==="PUT"||c==="POST"||c==="PATCH";if(A&&typeof A.read==="function"){A.read(0)}let R=d.bodyLength(A);if(R==null){R=i.contentLength}if(R===0||!S){R=null}if(shouldSendContentLength(c)&&R>0&&i.contentLength!=null&&i.contentLength!==R){if(r[ce]){errorRequest(r,i,new h);return false}process.emitWarning(new h)}if(R!=null){a(A,"no body must not have content length");b[ke]=`${R}`}s.ref();const N=c==="GET"||c==="HEAD";if(C){b[Te]="100-continue";Q=s.request(b,{endStream:N,signal:y});Q.once("continue",writeBodyH2)}else{Q=s.request(b,{endStream:N,signal:y});writeBodyH2()}++v.openStreams;Q.once("response",(r=>{const{[_e]:s,...a}=r;if(i.onHeaders(Number(s),a,Q.resume.bind(Q),"")===false){Q.pause()}}));Q.once("end",(()=>{i.onComplete([])}));Q.on("data",(r=>{if(i.onData(r)===false){Q.pause()}}));Q.once("close",(()=>{v.openStreams-=1;if(v.openStreams===0){s.unref()}}));Q.once("error",(function(s){if(r[Be]&&!r[Be].destroyed&&!this.closed&&!this.destroyed){v.streams-=1;d.destroy(Q,s)}}));Q.once("frameError",((s,a)=>{const A=new w(`HTTP/2: "frameError" received - type ${s}, code ${a}`);errorRequest(r,i,A);if(r[Be]&&!r[Be].destroyed&&!this.closed&&!this.destroyed){v.streams-=1;d.destroy(Q,A)}}));return true;function writeBodyH2(){if(!A){i.onRequestSent()}else if(d.isBuffer(A)){a(R===A.byteLength,"buffer body must have content length");Q.cork();Q.write(A);Q.uncork();Q.end();i.onBodySent(A);i.onRequestSent()}else if(d.isBlobLike(A)){if(typeof A.stream==="function"){writeIterable({client:r,request:i,contentLength:R,h2stream:Q,expectsPayload:S,body:A.stream(),socket:r[re],header:""})}else{writeBlob({body:A,client:r,request:i,contentLength:R,expectsPayload:S,h2stream:Q,header:"",socket:r[re]})}}else if(d.isStream(A)){writeStream({body:A,client:r,request:i,contentLength:R,expectsPayload:S,socket:r[re],h2stream:Q,header:""})}else if(d.isIterable(A)){writeIterable({body:A,client:r,request:i,contentLength:R,expectsPayload:S,header:"",h2stream:Q,socket:r[re]})}else{a(false)}}}function writeStream({h2stream:r,body:s,client:i,request:A,socket:c,contentLength:u,header:p,expectsPayload:g}){a(u!==0||i[H]===0,"stream body cannot be pipelined");if(i[ye]==="h2"){const y=l(s,r,(i=>{if(i){d.destroy(s,i);d.destroy(r,i)}else{A.onRequestSent()}}));y.on("data",onPipeData);y.once("end",(()=>{y.removeListener("data",onPipeData);d.destroy(y)}));function onPipeData(r){A.onBodySent(r)}return}let h=false;const C=new AsyncWriter({socket:c,request:A,contentLength:u,client:i,expectsPayload:g,header:p});const onData=function(r){if(h){return}try{if(!C.write(r)&&this.pause){this.pause()}}catch(r){d.destroy(this,r)}};const onDrain=function(){if(h){return}if(s.resume){s.resume()}};const onAbort=function(){if(h){return}const r=new I;queueMicrotask((()=>onFinished(r)))};const onFinished=function(r){if(h){return}h=true;a(c.destroyed||c[V]&&i[H]<=1);c.off("drain",onDrain).off("error",onFinished);s.removeListener("data",onData).removeListener("end",onFinished).removeListener("error",onFinished).removeListener("close",onAbort);if(!r){try{C.end()}catch(s){r=s}}C.destroy(r);if(r&&(r.code!=="UND_ERR_INFO"||r.message!=="reset")){d.destroy(s,r)}else{d.destroy(s)}};s.on("data",onData).on("end",onFinished).on("error",onFinished).on("close",onAbort);if(s.resume){s.resume()}c.on("drain",onDrain).on("error",onFinished)}async function writeBlob({h2stream:r,body:s,client:i,request:A,socket:c,contentLength:l,header:u,expectsPayload:p}){a(l===s.size,"blob body must have content length");const g=i[ye]==="h2";try{if(l!=null&&l!==s.size){throw new h}const a=Buffer.from(await s.arrayBuffer());if(g){r.cork();r.write(a);r.uncork()}else{c.cork();c.write(`${u}content-length: ${l}\r\n\r\n`,"latin1");c.write(a);c.uncork()}A.onBodySent(a);A.onRequestSent();if(!p){c[k]=true}resume(i)}catch(s){d.destroy(g?r:c,s)}}async function writeIterable({h2stream:r,body:s,client:i,request:A,socket:c,contentLength:l,header:d,expectsPayload:u}){a(l!==0||i[H]===0,"iterator body cannot be pipelined");let p=null;function onDrain(){if(p){const r=p;p=null;r()}}const waitForDrain=()=>new Promise(((r,s)=>{a(p===null);if(c[ee]){s(c[ee])}else{p=r}}));if(i[ye]==="h2"){r.on("close",onDrain).on("drain",onDrain);try{for await(const i of s){if(c[ee]){throw c[ee]}const s=r.write(i);A.onBodySent(i);if(!s){await waitForDrain()}}}catch(s){r.destroy(s)}finally{A.onRequestSent();r.end();r.off("close",onDrain).off("drain",onDrain)}return}c.on("close",onDrain).on("drain",onDrain);const g=new AsyncWriter({socket:c,request:A,contentLength:l,client:i,expectsPayload:u,header:d});try{for await(const r of s){if(c[ee]){throw c[ee]}if(!g.write(r)){await waitForDrain()}}g.end()}catch(r){g.destroy(r)}finally{c.off("close",onDrain).off("drain",onDrain)}}class AsyncWriter{constructor({socket:r,request:s,contentLength:i,client:a,expectsPayload:A,header:c}){this.socket=r;this.request=s;this.contentLength=i;this.client=a;this.bytesWritten=0;this.expectsPayload=A;this.header=c;r[V]=true}write(r){const{socket:s,request:i,contentLength:a,client:A,bytesWritten:c,expectsPayload:l,header:d}=this;if(s[ee]){throw s[ee]}if(s.destroyed){return false}const u=Buffer.byteLength(r);if(!u){return true}if(a!==null&&c+u>a){if(A[ce]){throw new h}process.emitWarning(new h)}s.cork();if(c===0){if(!l){s[k]=true}if(a===null){s.write(`${d}transfer-encoding: chunked\r\n`,"latin1")}else{s.write(`${d}content-length: ${a}\r\n\r\n`,"latin1")}}if(a===null){s.write(`\r\n${u.toString(16)}\r\n`,"latin1")}this.bytesWritten+=u;const p=s.write(r);s.uncork();i.onBodySent(r);if(!p){if(s[O].timeout&&s[O].timeoutType===Je){if(s[O].timeout.refresh){s[O].timeout.refresh()}}}return p}end(){const{socket:r,contentLength:s,client:i,bytesWritten:a,expectsPayload:A,header:c,request:l}=this;l.onRequestSent();r[V]=false;if(r[ee]){throw r[ee]}if(r.destroyed){return}if(a===0){if(A){r.write(`${c}content-length: 0\r\n\r\n`,"latin1")}else{r.write(`${c}\r\n`,"latin1")}}else if(s===null){r.write("\r\n0\r\n\r\n","latin1")}if(s!==null&&a!==s){if(i[ce]){throw new h}else{process.emitWarning(new h)}}if(r[O].timeout&&r[O].timeoutType===Je){if(r[O].timeout.refresh){r[O].timeout.refresh()}}resume(i)}destroy(r){const{socket:s,client:i}=this;s[V]=false;if(r){a(i[H]<=1,"pipeline should only contain this request");d.destroy(s,r)}}}function errorRequest(r,s,i){try{s.onError(i);a(s.aborted)}catch(i){r.emit("error",i)}}r.exports=Client},91578:(r,s,i)=>{"use strict";const{kConnected:a,kSize:A}=i(52418);class CompatWeakRef{constructor(r){this.value=r}deref(){return this.value[a]===0&&this.value[A]===0?undefined:this.value}}class CompatFinalizer{constructor(r){this.finalizer=r}register(r,s){if(r.on){r.on("disconnect",(()=>{if(r[a]===0&&r[A]===0){this.finalizer(s)}}))}}}r.exports=function(){if(process.env.NODE_V8_COVERAGE){return{WeakRef:CompatWeakRef,FinalizationRegistry:CompatFinalizer}}return{WeakRef:global.WeakRef||CompatWeakRef,FinalizationRegistry:global.FinalizationRegistry||CompatFinalizer}}},44316:r=>{"use strict";const s=1024;const i=4096;r.exports={maxAttributeValueSize:s,maxNameValuePairSize:i}},80435:(r,s,i)=>{"use strict";const{parseSetCookie:a}=i(12764);const{stringify:A,getHeadersList:c}=i(3883);const{webidl:l}=i(79224);const{Headers:d}=i(96116);function getCookies(r){l.argumentLengthCheck(arguments,1,{header:"getCookies"});l.brandCheck(r,d,{strict:false});const s=r.get("cookie");const i={};if(!s){return i}for(const r of s.split(";")){const[s,...a]=r.split("=");i[s.trim()]=a.join("=")}return i}function deleteCookie(r,s,i){l.argumentLengthCheck(arguments,2,{header:"deleteCookie"});l.brandCheck(r,d,{strict:false});s=l.converters.DOMString(s);i=l.converters.DeleteCookieAttributes(i);setCookie(r,{name:s,value:"",expires:new Date(0),...i})}function getSetCookies(r){l.argumentLengthCheck(arguments,1,{header:"getSetCookies"});l.brandCheck(r,d,{strict:false});const s=c(r).cookies;if(!s){return[]}return s.map((r=>a(Array.isArray(r)?r[1]:r)))}function setCookie(r,s){l.argumentLengthCheck(arguments,2,{header:"setCookie"});l.brandCheck(r,d,{strict:false});s=l.converters.Cookie(s);const i=A(s);if(i){r.append("Set-Cookie",A(s))}}l.converters.DeleteCookieAttributes=l.dictionaryConverter([{converter:l.nullableConverter(l.converters.DOMString),key:"path",defaultValue:null},{converter:l.nullableConverter(l.converters.DOMString),key:"domain",defaultValue:null}]);l.converters.Cookie=l.dictionaryConverter([{converter:l.converters.DOMString,key:"name"},{converter:l.converters.DOMString,key:"value"},{converter:l.nullableConverter((r=>{if(typeof r==="number"){return l.converters["unsigned long long"](r)}return new Date(r)})),key:"expires",defaultValue:null},{converter:l.nullableConverter(l.converters["long long"]),key:"maxAge",defaultValue:null},{converter:l.nullableConverter(l.converters.DOMString),key:"domain",defaultValue:null},{converter:l.nullableConverter(l.converters.DOMString),key:"path",defaultValue:null},{converter:l.nullableConverter(l.converters.boolean),key:"secure",defaultValue:null},{converter:l.nullableConverter(l.converters.boolean),key:"httpOnly",defaultValue:null},{converter:l.converters.USVString,key:"sameSite",allowedValues:["Strict","Lax","None"]},{converter:l.sequenceConverter(l.converters.DOMString),key:"unparsed",defaultValue:[]}]);r.exports={getCookies:getCookies,deleteCookie:deleteCookie,getSetCookies:getSetCookies,setCookie:setCookie}},12764:(r,s,i)=>{"use strict";const{maxNameValuePairSize:a,maxAttributeValueSize:A}=i(44316);const{isCTLExcludingHtab:c}=i(3883);const{collectASequenceOfCodePointsFast:l}=i(88576);const d=i(39491);function parseSetCookie(r){if(c(r)){return null}let s="";let i="";let A="";let d="";if(r.includes(";")){const a={position:0};s=l(";",r,a);i=r.slice(a.position)}else{s=r}if(!s.includes("=")){d=s}else{const r={position:0};A=l("=",s,r);d=s.slice(r.position+1)}A=A.trim();d=d.trim();if(A.length+d.length>a){return null}return{name:A,value:d,...parseUnparsedAttributes(i)}}function parseUnparsedAttributes(r,s={}){if(r.length===0){return s}d(r[0]===";");r=r.slice(1);let i="";if(r.includes(";")){i=l(";",r,{position:0});r=r.slice(i.length)}else{i=r;r=""}let a="";let c="";if(i.includes("=")){const r={position:0};a=l("=",i,r);c=i.slice(r.position+1)}else{a=i}a=a.trim();c=c.trim();if(c.length>A){return parseUnparsedAttributes(r,s)}const u=a.toLowerCase();if(u==="expires"){const r=new Date(c);s.expires=r}else if(u==="max-age"){const i=c.charCodeAt(0);if((i<48||i>57)&&c[0]!=="-"){return parseUnparsedAttributes(r,s)}if(!/^\d+$/.test(c)){return parseUnparsedAttributes(r,s)}const a=Number(c);s.maxAge=a}else if(u==="domain"){let r=c;if(r[0]==="."){r=r.slice(1)}r=r.toLowerCase();s.domain=r}else if(u==="path"){let r="";if(c.length===0||c[0]!=="/"){r="/"}else{r=c}s.path=r}else if(u==="secure"){s.secure=true}else if(u==="httponly"){s.httpOnly=true}else if(u==="samesite"){let r="Default";const i=c.toLowerCase();if(i.includes("none")){r="None"}if(i.includes("strict")){r="Strict"}if(i.includes("lax")){r="Lax"}s.sameSite=r}else{s.unparsed??=[];s.unparsed.push(`${a}=${c}`)}return parseUnparsedAttributes(r,s)}r.exports={parseSetCookie:parseSetCookie,parseUnparsedAttributes:parseUnparsedAttributes}},3883:(r,s,i)=>{"use strict";const a=i(39491);const{kHeadersList:A}=i(52418);function isCTLExcludingHtab(r){if(r.length===0){return false}for(const s of r){const r=s.charCodeAt(0);if(r>=0||r<=8||(r>=10||r<=31)||r===127){return false}}}function validateCookieName(r){for(const s of r){const r=s.charCodeAt(0);if(r<=32||r>127||s==="("||s===")"||s===">"||s==="<"||s==="@"||s===","||s===";"||s===":"||s==="\\"||s==='"'||s==="/"||s==="["||s==="]"||s==="?"||s==="="||s==="{"||s==="}"){throw new Error("Invalid cookie name")}}}function validateCookieValue(r){for(const s of r){const r=s.charCodeAt(0);if(r<33||r===34||r===44||r===59||r===92||r>126){throw new Error("Invalid header value")}}}function validateCookiePath(r){for(const s of r){const r=s.charCodeAt(0);if(r<33||s===";"){throw new Error("Invalid cookie path")}}}function validateCookieDomain(r){if(r.startsWith("-")||r.endsWith(".")||r.endsWith("-")){throw new Error("Invalid cookie domain")}}function toIMFDate(r){if(typeof r==="number"){r=new Date(r)}const s=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"];const i=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];const a=s[r.getUTCDay()];const A=r.getUTCDate().toString().padStart(2,"0");const c=i[r.getUTCMonth()];const l=r.getUTCFullYear();const d=r.getUTCHours().toString().padStart(2,"0");const u=r.getUTCMinutes().toString().padStart(2,"0");const p=r.getUTCSeconds().toString().padStart(2,"0");return`${a}, ${A} ${c} ${l} ${d}:${u}:${p} GMT`}function validateCookieMaxAge(r){if(r<0){throw new Error("Invalid cookie max-age")}}function stringify(r){if(r.name.length===0){return null}validateCookieName(r.name);validateCookieValue(r.value);const s=[`${r.name}=${r.value}`];if(r.name.startsWith("__Secure-")){r.secure=true}if(r.name.startsWith("__Host-")){r.secure=true;r.domain=null;r.path="/"}if(r.secure){s.push("Secure")}if(r.httpOnly){s.push("HttpOnly")}if(typeof r.maxAge==="number"){validateCookieMaxAge(r.maxAge);s.push(`Max-Age=${r.maxAge}`)}if(r.domain){validateCookieDomain(r.domain);s.push(`Domain=${r.domain}`)}if(r.path){validateCookiePath(r.path);s.push(`Path=${r.path}`)}if(r.expires&&r.expires.toString()!=="Invalid Date"){s.push(`Expires=${toIMFDate(r.expires)}`)}if(r.sameSite){s.push(`SameSite=${r.sameSite}`)}for(const i of r.unparsed){if(!i.includes("=")){throw new Error("Invalid unparsed")}const[r,...a]=i.split("=");s.push(`${r.trim()}=${a.join("=")}`)}return s.join("; ")}let c;function getHeadersList(r){if(r[A]){return r[A]}if(!c){c=Object.getOwnPropertySymbols(r).find((r=>r.description==="headers list"));a(c,"Headers cannot be parsed")}const s=r[c];a(s);return s}r.exports={isCTLExcludingHtab:isCTLExcludingHtab,stringify:stringify,getHeadersList:getHeadersList}},35470:(r,s,i)=>{"use strict";const a=i(41808);const A=i(39491);const c=i(55009);const{InvalidArgumentError:l,ConnectTimeoutError:d}=i(33219);let u;let p;if(global.FinalizationRegistry&&!process.env.NODE_V8_COVERAGE){p=class WeakSessionCache{constructor(r){this._maxCachedSessions=r;this._sessionCache=new Map;this._sessionRegistry=new global.FinalizationRegistry((r=>{if(this._sessionCache.size=this._maxCachedSessions){const{value:r}=this._sessionCache.keys().next();this._sessionCache.delete(r)}this._sessionCache.set(r,s)}}}function buildConnector({allowH2:r,maxCachedSessions:s,socketPath:d,timeout:g,...h}){if(s!=null&&(!Number.isInteger(s)||s<0)){throw new l("maxCachedSessions must be a positive integer or zero")}const C={path:d,...h};const y=new p(s==null?100:s);g=g==null?1e4:g;r=r!=null?r:false;return function connect({hostname:s,host:l,protocol:d,port:p,servername:h,localAddress:I,httpSocket:B},b){let Q;if(d==="https:"){if(!u){u=i(24404)}h=h||C.servername||c.getServerName(l)||null;const a=h||s;const d=y.get(a)||null;A(a);Q=u.connect({highWaterMark:16384,...C,servername:h,session:d,localAddress:I,ALPNProtocols:r?["http/1.1","h2"]:["http/1.1"],socket:B,port:p||443,host:s});Q.on("session",(function(r){y.set(a,r)}))}else{A(!B,"httpSocket can only be sent on TLS update");Q=a.connect({highWaterMark:64*1024,...C,localAddress:I,port:p||80,host:s})}if(C.keepAlive==null||C.keepAlive){const r=C.keepAliveInitialDelay===undefined?6e4:C.keepAliveInitialDelay;Q.setKeepAlive(true,r)}const w=setupTimeout((()=>onConnectTimeout(Q)),g);Q.setNoDelay(true).once(d==="https:"?"secureConnect":"connect",(function(){w();if(b){const r=b;b=null;r(null,this)}})).on("error",(function(r){w();if(b){const s=b;b=null;s(r)}}));return Q}}function setupTimeout(r,s){if(!s){return()=>{}}let i=null;let a=null;const A=setTimeout((()=>{i=setImmediate((()=>{if(process.platform==="win32"){a=setImmediate((()=>r()))}else{r()}}))}),s);return()=>{clearTimeout(A);clearImmediate(i);clearImmediate(a)}}function onConnectTimeout(r){c.destroy(r,new d)}r.exports=buildConnector},43670:r=>{"use strict";const s={};const i=["Accept","Accept-Encoding","Accept-Language","Accept-Ranges","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","Age","Allow","Alt-Svc","Alt-Used","Authorization","Cache-Control","Clear-Site-Data","Connection","Content-Disposition","Content-Encoding","Content-Language","Content-Length","Content-Location","Content-Range","Content-Security-Policy","Content-Security-Policy-Report-Only","Content-Type","Cookie","Cross-Origin-Embedder-Policy","Cross-Origin-Opener-Policy","Cross-Origin-Resource-Policy","Date","Device-Memory","Downlink","ECT","ETag","Expect","Expect-CT","Expires","Forwarded","From","Host","If-Match","If-Modified-Since","If-None-Match","If-Range","If-Unmodified-Since","Keep-Alive","Last-Modified","Link","Location","Max-Forwards","Origin","Permissions-Policy","Pragma","Proxy-Authenticate","Proxy-Authorization","RTT","Range","Referer","Referrer-Policy","Refresh","Retry-After","Sec-WebSocket-Accept","Sec-WebSocket-Extensions","Sec-WebSocket-Key","Sec-WebSocket-Protocol","Sec-WebSocket-Version","Server","Server-Timing","Service-Worker-Allowed","Service-Worker-Navigation-Preload","Set-Cookie","SourceMap","Strict-Transport-Security","Supports-Loading-Mode","TE","Timing-Allow-Origin","Trailer","Transfer-Encoding","Upgrade","Upgrade-Insecure-Requests","User-Agent","Vary","Via","WWW-Authenticate","X-Content-Type-Options","X-DNS-Prefetch-Control","X-Frame-Options","X-Permitted-Cross-Domain-Policies","X-Powered-By","X-Requested-With","X-XSS-Protection"];for(let r=0;r{"use strict";class UndiciError extends Error{constructor(r){super(r);this.name="UndiciError";this.code="UND_ERR"}}class ConnectTimeoutError extends UndiciError{constructor(r){super(r);Error.captureStackTrace(this,ConnectTimeoutError);this.name="ConnectTimeoutError";this.message=r||"Connect Timeout Error";this.code="UND_ERR_CONNECT_TIMEOUT"}}class HeadersTimeoutError extends UndiciError{constructor(r){super(r);Error.captureStackTrace(this,HeadersTimeoutError);this.name="HeadersTimeoutError";this.message=r||"Headers Timeout Error";this.code="UND_ERR_HEADERS_TIMEOUT"}}class HeadersOverflowError extends UndiciError{constructor(r){super(r);Error.captureStackTrace(this,HeadersOverflowError);this.name="HeadersOverflowError";this.message=r||"Headers Overflow Error";this.code="UND_ERR_HEADERS_OVERFLOW"}}class BodyTimeoutError extends UndiciError{constructor(r){super(r);Error.captureStackTrace(this,BodyTimeoutError);this.name="BodyTimeoutError";this.message=r||"Body Timeout Error";this.code="UND_ERR_BODY_TIMEOUT"}}class ResponseStatusCodeError extends UndiciError{constructor(r,s,i,a){super(r);Error.captureStackTrace(this,ResponseStatusCodeError);this.name="ResponseStatusCodeError";this.message=r||"Response Status Code Error";this.code="UND_ERR_RESPONSE_STATUS_CODE";this.body=a;this.status=s;this.statusCode=s;this.headers=i}}class InvalidArgumentError extends UndiciError{constructor(r){super(r);Error.captureStackTrace(this,InvalidArgumentError);this.name="InvalidArgumentError";this.message=r||"Invalid Argument Error";this.code="UND_ERR_INVALID_ARG"}}class InvalidReturnValueError extends UndiciError{constructor(r){super(r);Error.captureStackTrace(this,InvalidReturnValueError);this.name="InvalidReturnValueError";this.message=r||"Invalid Return Value Error";this.code="UND_ERR_INVALID_RETURN_VALUE"}}class RequestAbortedError extends UndiciError{constructor(r){super(r);Error.captureStackTrace(this,RequestAbortedError);this.name="AbortError";this.message=r||"Request aborted";this.code="UND_ERR_ABORTED"}}class InformationalError extends UndiciError{constructor(r){super(r);Error.captureStackTrace(this,InformationalError);this.name="InformationalError";this.message=r||"Request information";this.code="UND_ERR_INFO"}}class RequestContentLengthMismatchError extends UndiciError{constructor(r){super(r);Error.captureStackTrace(this,RequestContentLengthMismatchError);this.name="RequestContentLengthMismatchError";this.message=r||"Request body length does not match content-length header";this.code="UND_ERR_REQ_CONTENT_LENGTH_MISMATCH"}}class ResponseContentLengthMismatchError extends UndiciError{constructor(r){super(r);Error.captureStackTrace(this,ResponseContentLengthMismatchError);this.name="ResponseContentLengthMismatchError";this.message=r||"Response body length does not match content-length header";this.code="UND_ERR_RES_CONTENT_LENGTH_MISMATCH"}}class ClientDestroyedError extends UndiciError{constructor(r){super(r);Error.captureStackTrace(this,ClientDestroyedError);this.name="ClientDestroyedError";this.message=r||"The client is destroyed";this.code="UND_ERR_DESTROYED"}}class ClientClosedError extends UndiciError{constructor(r){super(r);Error.captureStackTrace(this,ClientClosedError);this.name="ClientClosedError";this.message=r||"The client is closed";this.code="UND_ERR_CLOSED"}}class SocketError extends UndiciError{constructor(r,s){super(r);Error.captureStackTrace(this,SocketError);this.name="SocketError";this.message=r||"Socket error";this.code="UND_ERR_SOCKET";this.socket=s}}class NotSupportedError extends UndiciError{constructor(r){super(r);Error.captureStackTrace(this,NotSupportedError);this.name="NotSupportedError";this.message=r||"Not supported error";this.code="UND_ERR_NOT_SUPPORTED"}}class BalancedPoolMissingUpstreamError extends UndiciError{constructor(r){super(r);Error.captureStackTrace(this,NotSupportedError);this.name="MissingUpstreamError";this.message=r||"No upstream has been added to the BalancedPool";this.code="UND_ERR_BPL_MISSING_UPSTREAM"}}class HTTPParserError extends Error{constructor(r,s,i){super(r);Error.captureStackTrace(this,HTTPParserError);this.name="HTTPParserError";this.code=s?`HPE_${s}`:undefined;this.data=i?i.toString():undefined}}class ResponseExceededMaxSizeError extends UndiciError{constructor(r){super(r);Error.captureStackTrace(this,ResponseExceededMaxSizeError);this.name="ResponseExceededMaxSizeError";this.message=r||"Response content exceeded max size";this.code="UND_ERR_RES_EXCEEDED_MAX_SIZE"}}class RequestRetryError extends UndiciError{constructor(r,s,{headers:i,data:a}){super(r);Error.captureStackTrace(this,RequestRetryError);this.name="RequestRetryError";this.message=r||"Request retry error";this.code="UND_ERR_REQ_RETRY";this.statusCode=s;this.data=a;this.headers=i}}r.exports={HTTPParserError:HTTPParserError,UndiciError:UndiciError,HeadersTimeoutError:HeadersTimeoutError,HeadersOverflowError:HeadersOverflowError,BodyTimeoutError:BodyTimeoutError,RequestContentLengthMismatchError:RequestContentLengthMismatchError,ConnectTimeoutError:ConnectTimeoutError,ResponseStatusCodeError:ResponseStatusCodeError,InvalidArgumentError:InvalidArgumentError,InvalidReturnValueError:InvalidReturnValueError,RequestAbortedError:RequestAbortedError,ClientDestroyedError:ClientDestroyedError,ClientClosedError:ClientClosedError,InformationalError:InformationalError,SocketError:SocketError,NotSupportedError:NotSupportedError,ResponseContentLengthMismatchError:ResponseContentLengthMismatchError,BalancedPoolMissingUpstreamError:BalancedPoolMissingUpstreamError,ResponseExceededMaxSizeError:ResponseExceededMaxSizeError,RequestRetryError:RequestRetryError}},38922:(r,s,i)=>{"use strict";const{InvalidArgumentError:a,NotSupportedError:A}=i(33219);const c=i(39491);const{kHTTP2BuildRequest:l,kHTTP2CopyHeaders:d,kHTTP1BuildRequest:u}=i(52418);const p=i(55009);const g=/^[\^_`a-zA-Z\-0-9!#$%&'*+.|~]+$/;const h=/[^\t\x20-\x7e\x80-\xff]/;const C=/[^\u0021-\u00ff]/;const y=Symbol("handler");const I={};let B;try{const r=i(67643);I.create=r.channel("undici:request:create");I.bodySent=r.channel("undici:request:bodySent");I.headers=r.channel("undici:request:headers");I.trailers=r.channel("undici:request:trailers");I.error=r.channel("undici:request:error")}catch{I.create={hasSubscribers:false};I.bodySent={hasSubscribers:false};I.headers={hasSubscribers:false};I.trailers={hasSubscribers:false};I.error={hasSubscribers:false}}class Request{constructor(r,{path:s,method:A,body:c,headers:l,query:d,idempotent:u,blocking:h,upgrade:b,headersTimeout:Q,bodyTimeout:w,reset:v,throwOnError:S,expectContinue:R},N){if(typeof s!=="string"){throw new a("path must be a string")}else if(s[0]!=="/"&&!(s.startsWith("http://")||s.startsWith("https://"))&&A!=="CONNECT"){throw new a("path must be an absolute URL or start with a slash")}else if(C.exec(s)!==null){throw new a("invalid request path")}if(typeof A!=="string"){throw new a("method must be a string")}else if(g.exec(A)===null){throw new a("invalid request method")}if(b&&typeof b!=="string"){throw new a("upgrade must be a string")}if(Q!=null&&(!Number.isFinite(Q)||Q<0)){throw new a("invalid headersTimeout")}if(w!=null&&(!Number.isFinite(w)||w<0)){throw new a("invalid bodyTimeout")}if(v!=null&&typeof v!=="boolean"){throw new a("invalid reset")}if(R!=null&&typeof R!=="boolean"){throw new a("invalid expectContinue")}this.headersTimeout=Q;this.bodyTimeout=w;this.throwOnError=S===true;this.method=A;this.abort=null;if(c==null){this.body=null}else if(p.isStream(c)){this.body=c;const r=this.body._readableState;if(!r||!r.autoDestroy){this.endHandler=function autoDestroy(){p.destroy(this)};this.body.on("end",this.endHandler)}this.errorHandler=r=>{if(this.abort){this.abort(r)}else{this.error=r}};this.body.on("error",this.errorHandler)}else if(p.isBuffer(c)){this.body=c.byteLength?c:null}else if(ArrayBuffer.isView(c)){this.body=c.buffer.byteLength?Buffer.from(c.buffer,c.byteOffset,c.byteLength):null}else if(c instanceof ArrayBuffer){this.body=c.byteLength?Buffer.from(c):null}else if(typeof c==="string"){this.body=c.length?Buffer.from(c):null}else if(p.isFormDataLike(c)||p.isIterable(c)||p.isBlobLike(c)){this.body=c}else{throw new a("body must be a string, a Buffer, a Readable stream, an iterable, or an async iterable")}this.completed=false;this.aborted=false;this.upgrade=b||null;this.path=d?p.buildURL(s,d):s;this.origin=r;this.idempotent=u==null?A==="HEAD"||A==="GET":u;this.blocking=h==null?false:h;this.reset=v==null?null:v;this.host=null;this.contentLength=null;this.contentType=null;this.headers="";this.expectContinue=R!=null?R:false;if(Array.isArray(l)){if(l.length%2!==0){throw new a("headers array must be even")}for(let r=0;r{r.exports={kClose:Symbol("close"),kDestroy:Symbol("destroy"),kDispatch:Symbol("dispatch"),kUrl:Symbol("url"),kWriting:Symbol("writing"),kResuming:Symbol("resuming"),kQueue:Symbol("queue"),kConnect:Symbol("connect"),kConnecting:Symbol("connecting"),kHeadersList:Symbol("headers list"),kKeepAliveDefaultTimeout:Symbol("default keep alive timeout"),kKeepAliveMaxTimeout:Symbol("max keep alive timeout"),kKeepAliveTimeoutThreshold:Symbol("keep alive timeout threshold"),kKeepAliveTimeoutValue:Symbol("keep alive timeout"),kKeepAlive:Symbol("keep alive"),kHeadersTimeout:Symbol("headers timeout"),kBodyTimeout:Symbol("body timeout"),kServerName:Symbol("server name"),kLocalAddress:Symbol("local address"),kHost:Symbol("host"),kNoRef:Symbol("no ref"),kBodyUsed:Symbol("used"),kRunning:Symbol("running"),kBlocking:Symbol("blocking"),kPending:Symbol("pending"),kSize:Symbol("size"),kBusy:Symbol("busy"),kQueued:Symbol("queued"),kFree:Symbol("free"),kConnected:Symbol("connected"),kClosed:Symbol("closed"),kNeedDrain:Symbol("need drain"),kReset:Symbol("reset"),kDestroyed:Symbol.for("nodejs.stream.destroyed"),kMaxHeadersSize:Symbol("max headers size"),kRunningIdx:Symbol("running index"),kPendingIdx:Symbol("pending index"),kError:Symbol("error"),kClients:Symbol("clients"),kClient:Symbol("client"),kParser:Symbol("parser"),kOnDestroyed:Symbol("destroy callbacks"),kPipelining:Symbol("pipelining"),kSocket:Symbol("socket"),kHostHeader:Symbol("host header"),kConnector:Symbol("connector"),kStrictContentLength:Symbol("strict content length"),kMaxRedirections:Symbol("maxRedirections"),kMaxRequests:Symbol("maxRequestsPerClient"),kProxy:Symbol("proxy agent options"),kCounter:Symbol("socket request counter"),kInterceptors:Symbol("dispatch interceptors"),kMaxResponseSize:Symbol("max response size"),kHTTP2Session:Symbol("http2Session"),kHTTP2SessionState:Symbol("http2Session state"),kHTTP2BuildRequest:Symbol("http2 build request"),kHTTP1BuildRequest:Symbol("http1 build request"),kHTTP2CopyHeaders:Symbol("http2 copy headers"),kHTTPConnVersion:Symbol("http connection version"),kRetryHandlerDefaultRetry:Symbol("retry agent default retry"),kConstruct:Symbol("constructable")}},55009:(r,s,i)=>{"use strict";const a=i(39491);const{kDestroyed:A,kBodyUsed:c}=i(52418);const{IncomingMessage:l}=i(13685);const d=i(12781);const u=i(41808);const{InvalidArgumentError:p}=i(33219);const{Blob:g}=i(14300);const h=i(73837);const{stringify:C}=i(63477);const{headerNameLowerCasedRecord:y}=i(43670);const[I,B]=process.versions.node.split(".").map((r=>Number(r)));function nop(){}function isStream(r){return r&&typeof r==="object"&&typeof r.pipe==="function"&&typeof r.on==="function"}function isBlobLike(r){return g&&r instanceof g||r&&typeof r==="object"&&(typeof r.stream==="function"||typeof r.arrayBuffer==="function")&&/^(Blob|File)$/.test(r[Symbol.toStringTag])}function buildURL(r,s){if(r.includes("?")||r.includes("#")){throw new Error('Query params cannot be passed when url already contains "?" or "#".')}const i=C(s);if(i){r+="?"+i}return r}function parseURL(r){if(typeof r==="string"){r=new URL(r);if(!/^https?:/.test(r.origin||r.protocol)){throw new p("Invalid URL protocol: the URL must start with `http:` or `https:`.")}return r}if(!r||typeof r!=="object"){throw new p("Invalid URL: The URL argument must be a non-null object.")}if(!/^https?:/.test(r.origin||r.protocol)){throw new p("Invalid URL protocol: the URL must start with `http:` or `https:`.")}if(!(r instanceof URL)){if(r.port!=null&&r.port!==""&&!Number.isFinite(parseInt(r.port))){throw new p("Invalid URL: port must be a valid integer or a string representation of an integer.")}if(r.path!=null&&typeof r.path!=="string"){throw new p("Invalid URL path: the path must be a string or null/undefined.")}if(r.pathname!=null&&typeof r.pathname!=="string"){throw new p("Invalid URL pathname: the pathname must be a string or null/undefined.")}if(r.hostname!=null&&typeof r.hostname!=="string"){throw new p("Invalid URL hostname: the hostname must be a string or null/undefined.")}if(r.origin!=null&&typeof r.origin!=="string"){throw new p("Invalid URL origin: the origin must be a string or null/undefined.")}const s=r.port!=null?r.port:r.protocol==="https:"?443:80;let i=r.origin!=null?r.origin:`${r.protocol}//${r.hostname}:${s}`;let a=r.path!=null?r.path:`${r.pathname||""}${r.search||""}`;if(i.endsWith("/")){i=i.substring(0,i.length-1)}if(a&&!a.startsWith("/")){a=`/${a}`}r=new URL(i+a)}return r}function parseOrigin(r){r=parseURL(r);if(r.pathname!=="/"||r.search||r.hash){throw new p("invalid url")}return r}function getHostname(r){if(r[0]==="["){const s=r.indexOf("]");a(s!==-1);return r.substring(1,s)}const s=r.indexOf(":");if(s===-1)return r;return r.substring(0,s)}function getServerName(r){if(!r){return null}a.strictEqual(typeof r,"string");const s=getHostname(r);if(u.isIP(s)){return""}return s}function deepClone(r){return JSON.parse(JSON.stringify(r))}function isAsyncIterable(r){return!!(r!=null&&typeof r[Symbol.asyncIterator]==="function")}function isIterable(r){return!!(r!=null&&(typeof r[Symbol.iterator]==="function"||typeof r[Symbol.asyncIterator]==="function"))}function bodyLength(r){if(r==null){return 0}else if(isStream(r)){const s=r._readableState;return s&&s.objectMode===false&&s.ended===true&&Number.isFinite(s.length)?s.length:null}else if(isBlobLike(r)){return r.size!=null?r.size:null}else if(isBuffer(r)){return r.byteLength}return null}function isDestroyed(r){return!r||!!(r.destroyed||r[A])}function isReadableAborted(r){const s=r&&r._readableState;return isDestroyed(r)&&s&&!s.endEmitted}function destroy(r,s){if(r==null||!isStream(r)||isDestroyed(r)){return}if(typeof r.destroy==="function"){if(Object.getPrototypeOf(r).constructor===l){r.socket=null}r.destroy(s)}else if(s){process.nextTick(((r,s)=>{r.emit("error",s)}),r,s)}if(r.destroyed!==true){r[A]=true}}const b=/timeout=(\d+)/;function parseKeepAliveTimeout(r){const s=r.toString().match(b);return s?parseInt(s[1],10)*1e3:null}function headerNameToString(r){return y[r]||r.toLowerCase()}function parseHeaders(r,s={}){if(!Array.isArray(r))return r;for(let i=0;ir.toString("utf8")))}else{s[a]=r[i+1].toString("utf8")}}else{if(!Array.isArray(A)){A=[A];s[a]=A}A.push(r[i+1].toString("utf8"))}}if("content-length"in s&&"content-disposition"in s){s["content-disposition"]=Buffer.from(s["content-disposition"]).toString("latin1")}return s}function parseRawHeaders(r){const s=[];let i=false;let a=-1;for(let A=0;A{r.close()}))}else{const s=Buffer.isBuffer(a)?a:Buffer.from(a);r.enqueue(new Uint8Array(s))}return r.desiredSize>0},async cancel(r){await s.return()}},0)}function isFormDataLike(r){return r&&typeof r==="object"&&typeof r.append==="function"&&typeof r.delete==="function"&&typeof r.get==="function"&&typeof r.getAll==="function"&&typeof r.has==="function"&&typeof r.set==="function"&&r[Symbol.toStringTag]==="FormData"}function throwIfAborted(r){if(!r){return}if(typeof r.throwIfAborted==="function"){r.throwIfAborted()}else{if(r.aborted){const r=new Error("The operation was aborted");r.name="AbortError";throw r}}}function addAbortListener(r,s){if("addEventListener"in r){r.addEventListener("abort",s,{once:true});return()=>r.removeEventListener("abort",s)}r.addListener("abort",s);return()=>r.removeListener("abort",s)}const w=!!String.prototype.toWellFormed;function toUSVString(r){if(w){return`${r}`.toWellFormed()}else if(h.toUSVString){return h.toUSVString(r)}return`${r}`}function parseRangeHeader(r){if(r==null||r==="")return{start:0,end:null,size:null};const s=r?r.match(/^bytes (\d+)-(\d+)\/(\d+)?$/):null;return s?{start:parseInt(s[1]),end:s[2]?parseInt(s[2]):null,size:s[3]?parseInt(s[3]):null}:null}const v=Object.create(null);v.enumerable=true;r.exports={kEnumerableProperty:v,nop:nop,isDisturbed:isDisturbed,isErrored:isErrored,isReadable:isReadable,toUSVString:toUSVString,isReadableAborted:isReadableAborted,isBlobLike:isBlobLike,parseOrigin:parseOrigin,parseURL:parseURL,getServerName:getServerName,isStream:isStream,isIterable:isIterable,isAsyncIterable:isAsyncIterable,isDestroyed:isDestroyed,headerNameToString:headerNameToString,parseRawHeaders:parseRawHeaders,parseHeaders:parseHeaders,parseKeepAliveTimeout:parseKeepAliveTimeout,destroy:destroy,bodyLength:bodyLength,deepClone:deepClone,ReadableStreamFrom:ReadableStreamFrom,isBuffer:isBuffer,validateHandler:validateHandler,getSocketInfo:getSocketInfo,isFormDataLike:isFormDataLike,buildURL:buildURL,throwIfAborted:throwIfAborted,addAbortListener:addAbortListener,parseRangeHeader:parseRangeHeader,nodeMajor:I,nodeMinor:B,nodeHasAutoSelectFamily:I>18||I===18&&B>=13,safeHTTPMethods:["GET","HEAD","OPTIONS","TRACE"]}},25901:(r,s,i)=>{"use strict";const a=i(91187);const{ClientDestroyedError:A,ClientClosedError:c,InvalidArgumentError:l}=i(33219);const{kDestroy:d,kClose:u,kDispatch:p,kInterceptors:g}=i(52418);const h=Symbol("destroyed");const C=Symbol("closed");const y=Symbol("onDestroyed");const I=Symbol("onClosed");const B=Symbol("Intercepted Dispatch");class DispatcherBase extends a{constructor(){super();this[h]=false;this[y]=null;this[C]=false;this[I]=[]}get destroyed(){return this[h]}get closed(){return this[C]}get interceptors(){return this[g]}set interceptors(r){if(r){for(let s=r.length-1;s>=0;s--){const r=this[g][s];if(typeof r!=="function"){throw new l("interceptor must be an function")}}}this[g]=r}close(r){if(r===undefined){return new Promise(((r,s)=>{this.close(((i,a)=>i?s(i):r(a)))}))}if(typeof r!=="function"){throw new l("invalid callback")}if(this[h]){queueMicrotask((()=>r(new A,null)));return}if(this[C]){if(this[I]){this[I].push(r)}else{queueMicrotask((()=>r(null,null)))}return}this[C]=true;this[I].push(r);const onClosed=()=>{const r=this[I];this[I]=null;for(let s=0;sthis.destroy())).then((()=>{queueMicrotask(onClosed)}))}destroy(r,s){if(typeof r==="function"){s=r;r=null}if(s===undefined){return new Promise(((s,i)=>{this.destroy(r,((r,a)=>r?i(r):s(a)))}))}if(typeof s!=="function"){throw new l("invalid callback")}if(this[h]){if(this[y]){this[y].push(s)}else{queueMicrotask((()=>s(null,null)))}return}if(!r){r=new A}this[h]=true;this[y]=this[y]||[];this[y].push(s);const onDestroyed=()=>{const r=this[y];this[y]=null;for(let s=0;s{queueMicrotask(onDestroyed)}))}[B](r,s){if(!this[g]||this[g].length===0){this[B]=this[p];return this[p](r,s)}let i=this[p].bind(this);for(let r=this[g].length-1;r>=0;r--){i=this[g][r](i)}this[B]=i;return i(r,s)}dispatch(r,s){if(!s||typeof s!=="object"){throw new l("handler must be an object")}try{if(!r||typeof r!=="object"){throw new l("opts must be an object.")}if(this[h]||this[y]){throw new A}if(this[C]){throw new c}return this[B](r,s)}catch(r){if(typeof s.onError!=="function"){throw new l("invalid onError method")}s.onError(r);return false}}}r.exports=DispatcherBase},91187:(r,s,i)=>{"use strict";const a=i(82361);class Dispatcher extends a{dispatch(){throw new Error("not implemented")}close(){throw new Error("not implemented")}destroy(){throw new Error("not implemented")}}r.exports=Dispatcher},58640:(r,s,i)=>{"use strict";const a=i(33438);const A=i(55009);const{ReadableStreamFrom:c,isBlobLike:l,isReadableStreamLike:d,readableStreamClose:u,createDeferredPromise:p,fullyReadBody:g}=i(49950);const{FormData:h}=i(38175);const{kState:C}=i(19226);const{webidl:y}=i(79224);const{DOMException:I,structuredClone:B}=i(17026);const{Blob:b,File:Q}=i(14300);const{kBodyUsed:w}=i(52418);const v=i(39491);const{isErrored:S}=i(55009);const{isUint8Array:R,isArrayBuffer:N}=i(29830);const{File:x}=i(8017);const{parseMIMEType:D,serializeAMimeType:k}=i(88576);let T=globalThis.ReadableStream;const _=Q??x;const P=new TextEncoder;const O=new TextDecoder;function extractBody(r,s=false){if(!T){T=i(35356).ReadableStream}let a=null;if(r instanceof T){a=r}else if(l(r)){a=r.stream()}else{a=new T({async pull(r){r.enqueue(typeof g==="string"?P.encode(g):g);queueMicrotask((()=>u(r)))},start(){},type:undefined})}v(d(a));let p=null;let g=null;let h=null;let C=null;if(typeof r==="string"){g=r;C="text/plain;charset=UTF-8"}else if(r instanceof URLSearchParams){g=r.toString();C="application/x-www-form-urlencoded;charset=UTF-8"}else if(N(r)){g=new Uint8Array(r.slice())}else if(ArrayBuffer.isView(r)){g=new Uint8Array(r.buffer.slice(r.byteOffset,r.byteOffset+r.byteLength))}else if(A.isFormDataLike(r)){const s=`----formdata-undici-0${`${Math.floor(Math.random()*1e11)}`.padStart(11,"0")}`;const i=`--${s}\r\nContent-Disposition: form-data` +/*! formdata-polyfill. MIT License. Jimmy Wärting */;const escape=r=>r.replace(/\n/g,"%0A").replace(/\r/g,"%0D").replace(/"/g,"%22");const normalizeLinefeeds=r=>r.replace(/\r?\n|\r/g,"\r\n");const a=[];const A=new Uint8Array([13,10]);h=0;let c=false;for(const[s,l]of r){if(typeof l==="string"){const r=P.encode(i+`; name="${escape(normalizeLinefeeds(s))}"`+`\r\n\r\n${normalizeLinefeeds(l)}\r\n`);a.push(r);h+=r.byteLength}else{const r=P.encode(`${i}; name="${escape(normalizeLinefeeds(s))}"`+(l.name?`; filename="${escape(l.name)}"`:"")+"\r\n"+`Content-Type: ${l.type||"application/octet-stream"}\r\n\r\n`);a.push(r,l,A);if(typeof l.size==="number"){h+=r.byteLength+l.size+A.byteLength}else{c=true}}}const l=P.encode(`--${s}--`);a.push(l);h+=l.byteLength;if(c){h=null}g=r;p=async function*(){for(const r of a){if(r.stream){yield*r.stream()}else{yield r}}};C="multipart/form-data; boundary="+s}else if(l(r)){g=r;h=r.size;if(r.type){C=r.type}}else if(typeof r[Symbol.asyncIterator]==="function"){if(s){throw new TypeError("keepalive")}if(A.isDisturbed(r)||r.locked){throw new TypeError("Response body object should not be disturbed or locked")}a=r instanceof T?r:c(r)}if(typeof g==="string"||A.isBuffer(g)){h=Buffer.byteLength(g)}if(p!=null){let s;a=new T({async start(){s=p(r)[Symbol.asyncIterator]()},async pull(r){const{value:i,done:A}=await s.next();if(A){queueMicrotask((()=>{r.close()}))}else{if(!S(a)){r.enqueue(new Uint8Array(i))}}return r.desiredSize>0},async cancel(r){await s.return()},type:undefined})}const y={stream:a,source:g,length:h};return[y,C]}function safelyExtractBody(r,s=false){if(!T){T=i(35356).ReadableStream}if(r instanceof T){v(!A.isDisturbed(r),"The body has already been consumed.");v(!r.locked,"The stream is locked.")}return extractBody(r,s)}function cloneBody(r){const[s,i]=r.stream.tee();const a=B(i,{transfer:[i]});const[,A]=a.tee();r.stream=s;return{stream:A,length:r.length,source:r.source}}async function*consumeBody(r){if(r){if(R(r)){yield r}else{const s=r.stream;if(A.isDisturbed(s)){throw new TypeError("The body has already been consumed.")}if(s.locked){throw new TypeError("The stream is locked.")}s[w]=true;yield*s}}}function throwIfAborted(r){if(r.aborted){throw new I("The operation was aborted.","AbortError")}}function bodyMixinMethods(r){const s={blob(){return specConsumeBody(this,(r=>{let s=bodyMimeType(this);if(s==="failure"){s=""}else if(s){s=k(s)}return new b([r],{type:s})}),r)},arrayBuffer(){return specConsumeBody(this,(r=>new Uint8Array(r).buffer),r)},text(){return specConsumeBody(this,utf8DecodeBytes,r)},json(){return specConsumeBody(this,parseJSONFromBytes,r)},async formData(){y.brandCheck(this,r);throwIfAborted(this[C]);const s=this.headers.get("Content-Type");if(/multipart\/form-data/.test(s)){const r={};for(const[s,i]of this.headers)r[s.toLowerCase()]=i;const s=new h;let i;try{i=new a({headers:r,preservePath:true})}catch(r){throw new I(`${r}`,"AbortError")}i.on("field",((r,i)=>{s.append(r,i)}));i.on("file",((r,i,a,A,c)=>{const l=[];if(A==="base64"||A.toLowerCase()==="base64"){let A="";i.on("data",(r=>{A+=r.toString().replace(/[\r\n]/gm,"");const s=A.length-A.length%4;l.push(Buffer.from(A.slice(0,s),"base64"));A=A.slice(s)}));i.on("end",(()=>{l.push(Buffer.from(A,"base64"));s.append(r,new _(l,a,{type:c}))}))}else{i.on("data",(r=>{l.push(r)}));i.on("end",(()=>{s.append(r,new _(l,a,{type:c}))}))}}));const A=new Promise(((r,s)=>{i.on("finish",r);i.on("error",(r=>s(new TypeError(r))))}));if(this.body!==null)for await(const r of consumeBody(this[C].body))i.write(r);i.end();await A;return s}else if(/application\/x-www-form-urlencoded/.test(s)){let r;try{let s="";const i=new TextDecoder("utf-8",{ignoreBOM:true});for await(const r of consumeBody(this[C].body)){if(!R(r)){throw new TypeError("Expected Uint8Array chunk")}s+=i.decode(r,{stream:true})}s+=i.decode();r=new URLSearchParams(s)}catch(r){throw Object.assign(new TypeError,{cause:r})}const s=new h;for(const[i,a]of r){s.append(i,a)}return s}else{await Promise.resolve();throwIfAborted(this[C]);throw y.errors.exception({header:`${r.name}.formData`,message:"Could not parse content as FormData."})}}};return s}function mixinBody(r){Object.assign(r.prototype,bodyMixinMethods(r))}async function specConsumeBody(r,s,i){y.brandCheck(r,i);throwIfAborted(r[C]);if(bodyUnusable(r[C].body)){throw new TypeError("Body is unusable")}const a=p();const errorSteps=r=>a.reject(r);const successSteps=r=>{try{a.resolve(s(r))}catch(r){errorSteps(r)}};if(r[C].body==null){successSteps(new Uint8Array);return a.promise}await g(r[C].body,successSteps,errorSteps);return a.promise}function bodyUnusable(r){return r!=null&&(r.stream.locked||A.isDisturbed(r.stream))}function utf8DecodeBytes(r){if(r.length===0){return""}if(r[0]===239&&r[1]===187&&r[2]===191){r=r.subarray(3)}const s=O.decode(r);return s}function parseJSONFromBytes(r){return JSON.parse(utf8DecodeBytes(r))}function bodyMimeType(r){const{headersList:s}=r[C];const i=s.get("content-type");if(i===null){return"failure"}return D(i)}r.exports={extractBody:extractBody,safelyExtractBody:safelyExtractBody,cloneBody:cloneBody,mixinBody:mixinBody}},17026:(r,s,i)=>{"use strict";const{MessageChannel:a,receiveMessageOnPort:A}=i(71267);const c=["GET","HEAD","POST"];const l=new Set(c);const d=[101,204,205,304];const u=[301,302,303,307,308];const p=new Set(u);const g=["1","7","9","11","13","15","17","19","20","21","22","23","25","37","42","43","53","69","77","79","87","95","101","102","103","104","109","110","111","113","115","117","119","123","135","137","139","143","161","179","389","427","465","512","513","514","515","526","530","531","532","540","548","554","556","563","587","601","636","989","990","993","995","1719","1720","1723","2049","3659","4045","5060","5061","6000","6566","6665","6666","6667","6668","6669","6697","10080"];const h=new Set(g);const C=["","no-referrer","no-referrer-when-downgrade","same-origin","origin","strict-origin","origin-when-cross-origin","strict-origin-when-cross-origin","unsafe-url"];const y=new Set(C);const I=["follow","manual","error"];const B=["GET","HEAD","OPTIONS","TRACE"];const b=new Set(B);const Q=["navigate","same-origin","no-cors","cors"];const w=["omit","same-origin","include"];const v=["default","no-store","reload","no-cache","force-cache","only-if-cached"];const S=["content-encoding","content-language","content-location","content-type","content-length"];const R=["half"];const N=["CONNECT","TRACE","TRACK"];const x=new Set(N);const D=["audio","audioworklet","font","image","manifest","paintworklet","script","style","track","video","xslt",""];const k=new Set(D);const T=globalThis.DOMException??(()=>{try{atob("~")}catch(r){return Object.getPrototypeOf(r).constructor}})();let _;const P=globalThis.structuredClone??function structuredClone(r,s=undefined){if(arguments.length===0){throw new TypeError("missing argument")}if(!_){_=new a}_.port1.unref();_.port2.unref();_.port1.postMessage(r,s?.transfer);return A(_.port2).message};r.exports={DOMException:T,structuredClone:P,subresource:D,forbiddenMethods:N,requestBodyHeader:S,referrerPolicy:C,requestRedirect:I,requestMode:Q,requestCredentials:w,requestCache:v,redirectStatus:u,corsSafeListedMethods:c,nullBodyStatus:d,safeMethods:B,badPorts:g,requestDuplex:R,subresourceSet:k,badPortsSet:h,redirectStatusSet:p,corsSafeListedMethodsSet:l,safeMethodsSet:b,forbiddenMethodsSet:x,referrerPolicySet:y}},88576:(r,s,i)=>{const a=i(39491);const{atob:A}=i(14300);const{isomorphicDecode:c}=i(49950);const l=new TextEncoder;const d=/^[!#$%&'*+-.^_|~A-Za-z0-9]+$/;const u=/(\u000A|\u000D|\u0009|\u0020)/;const p=/[\u0009|\u0020-\u007E|\u0080-\u00FF]/;function dataURLProcessor(r){a(r.protocol==="data:");let s=URLSerializer(r,true);s=s.slice(5);const i={position:0};let A=collectASequenceOfCodePointsFast(",",s,i);const l=A.length;A=removeASCIIWhitespace(A,true,true);if(i.position>=s.length){return"failure"}i.position++;const d=s.slice(l+1);let u=stringPercentDecode(d);if(/;(\u0020){0,}base64$/i.test(A)){const r=c(u);u=forgivingBase64(r);if(u==="failure"){return"failure"}A=A.slice(0,-6);A=A.replace(/(\u0020)+$/,"");A=A.slice(0,-1)}if(A.startsWith(";")){A="text/plain"+A}let p=parseMIMEType(A);if(p==="failure"){p=parseMIMEType("text/plain;charset=US-ASCII")}return{mimeType:p,body:u}}function URLSerializer(r,s=false){if(!s){return r.href}const i=r.href;const a=r.hash.length;return a===0?i:i.substring(0,i.length-a)}function collectASequenceOfCodePoints(r,s,i){let a="";while(i.positionr.length){return"failure"}s.position++;let a=collectASequenceOfCodePointsFast(";",r,s);a=removeHTTPWhitespace(a,false,true);if(a.length===0||!d.test(a)){return"failure"}const A=i.toLowerCase();const c=a.toLowerCase();const l={type:A,subtype:c,parameters:new Map,essence:`${A}/${c}`};while(s.positionu.test(r)),r,s);let i=collectASequenceOfCodePoints((r=>r!==";"&&r!=="="),r,s);i=i.toLowerCase();if(s.positionr.length){break}let a=null;if(r[s.position]==='"'){a=collectAnHTTPQuotedString(r,s,true);collectASequenceOfCodePointsFast(";",r,s)}else{a=collectASequenceOfCodePointsFast(";",r,s);a=removeHTTPWhitespace(a,false,true);if(a.length===0){continue}}if(i.length!==0&&d.test(i)&&(a.length===0||p.test(a))&&!l.parameters.has(i)){l.parameters.set(i,a)}}return l}function forgivingBase64(r){r=r.replace(/[\u0009\u000A\u000C\u000D\u0020]/g,"");if(r.length%4===0){r=r.replace(/=?=$/,"")}if(r.length%4===1){return"failure"}if(/[^+/0-9A-Za-z]/.test(r)){return"failure"}const s=A(r);const i=new Uint8Array(s.length);for(let r=0;rr!=='"'&&r!=="\\"),r,s);if(s.position>=r.length){break}const i=r[s.position];s.position++;if(i==="\\"){if(s.position>=r.length){c+="\\";break}c+=r[s.position];s.position++}else{a(i==='"');break}}if(i){return c}return r.slice(A,s.position)}function serializeAMimeType(r){a(r!=="failure");const{parameters:s,essence:i}=r;let A=i;for(let[r,i]of s.entries()){A+=";";A+=r;A+="=";if(!d.test(i)){i=i.replace(/(\\|")/g,"\\$1");i='"'+i;i+='"'}A+=i}return A}function isHTTPWhiteSpace(r){return r==="\r"||r==="\n"||r==="\t"||r===" "}function removeHTTPWhitespace(r,s=true,i=true){let a=0;let A=r.length-1;if(s){for(;a0&&isHTTPWhiteSpace(r[A]);A--);}return r.slice(a,A+1)}function isASCIIWhitespace(r){return r==="\r"||r==="\n"||r==="\t"||r==="\f"||r===" "}function removeASCIIWhitespace(r,s=true,i=true){let a=0;let A=r.length-1;if(s){for(;a0&&isASCIIWhitespace(r[A]);A--);}return r.slice(a,A+1)}r.exports={dataURLProcessor:dataURLProcessor,URLSerializer:URLSerializer,collectASequenceOfCodePoints:collectASequenceOfCodePoints,collectASequenceOfCodePointsFast:collectASequenceOfCodePointsFast,stringPercentDecode:stringPercentDecode,parseMIMEType:parseMIMEType,collectAnHTTPQuotedString:collectAnHTTPQuotedString,serializeAMimeType:serializeAMimeType}},8017:(r,s,i)=>{"use strict";const{Blob:a,File:A}=i(14300);const{types:c}=i(73837);const{kState:l}=i(19226);const{isBlobLike:d}=i(49950);const{webidl:u}=i(79224);const{parseMIMEType:p,serializeAMimeType:g}=i(88576);const{kEnumerableProperty:h}=i(55009);const C=new TextEncoder;class File extends a{constructor(r,s,i={}){u.argumentLengthCheck(arguments,2,{header:"File constructor"});r=u.converters["sequence"](r);s=u.converters.USVString(s);i=u.converters.FilePropertyBag(i);const a=s;let A=i.type;let c;e:{if(A){A=p(A);if(A==="failure"){A="";break e}A=g(A).toLowerCase()}c=i.lastModified}super(processBlobParts(r,i),{type:A});this[l]={name:a,lastModified:c,type:A}}get name(){u.brandCheck(this,File);return this[l].name}get lastModified(){u.brandCheck(this,File);return this[l].lastModified}get type(){u.brandCheck(this,File);return this[l].type}}class FileLike{constructor(r,s,i={}){const a=s;const A=i.type;const c=i.lastModified??Date.now();this[l]={blobLike:r,name:a,type:A,lastModified:c}}stream(...r){u.brandCheck(this,FileLike);return this[l].blobLike.stream(...r)}arrayBuffer(...r){u.brandCheck(this,FileLike);return this[l].blobLike.arrayBuffer(...r)}slice(...r){u.brandCheck(this,FileLike);return this[l].blobLike.slice(...r)}text(...r){u.brandCheck(this,FileLike);return this[l].blobLike.text(...r)}get size(){u.brandCheck(this,FileLike);return this[l].blobLike.size}get type(){u.brandCheck(this,FileLike);return this[l].blobLike.type}get name(){u.brandCheck(this,FileLike);return this[l].name}get lastModified(){u.brandCheck(this,FileLike);return this[l].lastModified}get[Symbol.toStringTag](){return"File"}}Object.defineProperties(File.prototype,{[Symbol.toStringTag]:{value:"File",configurable:true},name:h,lastModified:h});u.converters.Blob=u.interfaceConverter(a);u.converters.BlobPart=function(r,s){if(u.util.Type(r)==="Object"){if(d(r)){return u.converters.Blob(r,{strict:false})}if(ArrayBuffer.isView(r)||c.isAnyArrayBuffer(r)){return u.converters.BufferSource(r,s)}}return u.converters.USVString(r,s)};u.converters["sequence"]=u.sequenceConverter(u.converters.BlobPart);u.converters.FilePropertyBag=u.dictionaryConverter([{key:"lastModified",converter:u.converters["long long"],get defaultValue(){return Date.now()}},{key:"type",converter:u.converters.DOMString,defaultValue:""},{key:"endings",converter:r=>{r=u.converters.DOMString(r);r=r.toLowerCase();if(r!=="native"){r="transparent"}return r},defaultValue:"transparent"}]);function processBlobParts(r,s){const i=[];for(const a of r){if(typeof a==="string"){let r=a;if(s.endings==="native"){r=convertLineEndingsNative(r)}i.push(C.encode(r))}else if(c.isAnyArrayBuffer(a)||c.isTypedArray(a)){if(!a.buffer){i.push(new Uint8Array(a))}else{i.push(new Uint8Array(a.buffer,a.byteOffset,a.byteLength))}}else if(d(a)){i.push(a)}}return i}function convertLineEndingsNative(r){let s="\n";if(process.platform==="win32"){s="\r\n"}return r.replace(/\r?\n/g,s)}function isFileLike(r){return A&&r instanceof A||r instanceof File||r&&(typeof r.stream==="function"||typeof r.arrayBuffer==="function")&&r[Symbol.toStringTag]==="File"}r.exports={File:File,FileLike:FileLike,isFileLike:isFileLike}},38175:(r,s,i)=>{"use strict";const{isBlobLike:a,toUSVString:A,makeIterator:c}=i(49950);const{kState:l}=i(19226);const{File:d,FileLike:u,isFileLike:p}=i(8017);const{webidl:g}=i(79224);const{Blob:h,File:C}=i(14300);const y=C??d;class FormData{constructor(r){if(r!==undefined){throw g.errors.conversionFailed({prefix:"FormData constructor",argument:"Argument 1",types:["undefined"]})}this[l]=[]}append(r,s,i=undefined){g.brandCheck(this,FormData);g.argumentLengthCheck(arguments,2,{header:"FormData.append"});if(arguments.length===3&&!a(s)){throw new TypeError("Failed to execute 'append' on 'FormData': parameter 2 is not of type 'Blob'")}r=g.converters.USVString(r);s=a(s)?g.converters.Blob(s,{strict:false}):g.converters.USVString(s);i=arguments.length===3?g.converters.USVString(i):undefined;const A=makeEntry(r,s,i);this[l].push(A)}delete(r){g.brandCheck(this,FormData);g.argumentLengthCheck(arguments,1,{header:"FormData.delete"});r=g.converters.USVString(r);this[l]=this[l].filter((s=>s.name!==r))}get(r){g.brandCheck(this,FormData);g.argumentLengthCheck(arguments,1,{header:"FormData.get"});r=g.converters.USVString(r);const s=this[l].findIndex((s=>s.name===r));if(s===-1){return null}return this[l][s].value}getAll(r){g.brandCheck(this,FormData);g.argumentLengthCheck(arguments,1,{header:"FormData.getAll"});r=g.converters.USVString(r);return this[l].filter((s=>s.name===r)).map((r=>r.value))}has(r){g.brandCheck(this,FormData);g.argumentLengthCheck(arguments,1,{header:"FormData.has"});r=g.converters.USVString(r);return this[l].findIndex((s=>s.name===r))!==-1}set(r,s,i=undefined){g.brandCheck(this,FormData);g.argumentLengthCheck(arguments,2,{header:"FormData.set"});if(arguments.length===3&&!a(s)){throw new TypeError("Failed to execute 'set' on 'FormData': parameter 2 is not of type 'Blob'")}r=g.converters.USVString(r);s=a(s)?g.converters.Blob(s,{strict:false}):g.converters.USVString(s);i=arguments.length===3?A(i):undefined;const c=makeEntry(r,s,i);const d=this[l].findIndex((s=>s.name===r));if(d!==-1){this[l]=[...this[l].slice(0,d),c,...this[l].slice(d+1).filter((s=>s.name!==r))]}else{this[l].push(c)}}entries(){g.brandCheck(this,FormData);return c((()=>this[l].map((r=>[r.name,r.value]))),"FormData","key+value")}keys(){g.brandCheck(this,FormData);return c((()=>this[l].map((r=>[r.name,r.value]))),"FormData","key")}values(){g.brandCheck(this,FormData);return c((()=>this[l].map((r=>[r.name,r.value]))),"FormData","value")}forEach(r,s=globalThis){g.brandCheck(this,FormData);g.argumentLengthCheck(arguments,1,{header:"FormData.forEach"});if(typeof r!=="function"){throw new TypeError("Failed to execute 'forEach' on 'FormData': parameter 1 is not of type 'Function'.")}for(const[i,a]of this){r.apply(s,[a,i,this])}}}FormData.prototype[Symbol.iterator]=FormData.prototype.entries;Object.defineProperties(FormData.prototype,{[Symbol.toStringTag]:{value:"FormData",configurable:true}});function makeEntry(r,s,i){r=Buffer.from(r).toString("utf8");if(typeof s==="string"){s=Buffer.from(s).toString("utf8")}else{if(!p(s)){s=s instanceof h?new y([s],"blob",{type:s.type}):new u(s,"blob",{type:s.type})}if(i!==undefined){const r={type:s.type,lastModified:s.lastModified};s=C&&s instanceof C||s instanceof d?new y([s],i,r):new u(s,i,r)}}return{name:r,value:s}}r.exports={FormData:FormData}},11854:r=>{"use strict";const s=Symbol.for("undici.globalOrigin.1");function getGlobalOrigin(){return globalThis[s]}function setGlobalOrigin(r){if(r===undefined){Object.defineProperty(globalThis,s,{value:undefined,writable:true,enumerable:false,configurable:false});return}const i=new URL(r);if(i.protocol!=="http:"&&i.protocol!=="https:"){throw new TypeError(`Only http & https urls are allowed, received ${i.protocol}`)}Object.defineProperty(globalThis,s,{value:i,writable:true,enumerable:false,configurable:false})}r.exports={getGlobalOrigin:getGlobalOrigin,setGlobalOrigin:setGlobalOrigin}},96116:(r,s,i)=>{"use strict";const{kHeadersList:a,kConstruct:A}=i(52418);const{kGuard:c}=i(19226);const{kEnumerableProperty:l}=i(55009);const{makeIterator:d,isValidHeaderName:u,isValidHeaderValue:p}=i(49950);const{webidl:g}=i(79224);const h=i(39491);const C=Symbol("headers map");const y=Symbol("headers map sorted");function isHTTPWhiteSpaceCharCode(r){return r===10||r===13||r===9||r===32}function headerValueNormalize(r){let s=0;let i=r.length;while(i>s&&isHTTPWhiteSpaceCharCode(r.charCodeAt(i-1)))--i;while(i>s&&isHTTPWhiteSpaceCharCode(r.charCodeAt(s)))++s;return s===0&&i===r.length?r:r.substring(s,i)}function fill(r,s){if(Array.isArray(s)){for(let i=0;i>","record"]})}}function appendHeader(r,s,i){i=headerValueNormalize(i);if(!u(s)){throw g.errors.invalidArgument({prefix:"Headers.append",value:s,type:"header name"})}else if(!p(i)){throw g.errors.invalidArgument({prefix:"Headers.append",value:i,type:"header value"})}if(r[c]==="immutable"){throw new TypeError("immutable")}else if(r[c]==="request-no-cors"){}return r[a].append(s,i)}class HeadersList{cookies=null;constructor(r){if(r instanceof HeadersList){this[C]=new Map(r[C]);this[y]=r[y];this.cookies=r.cookies===null?null:[...r.cookies]}else{this[C]=new Map(r);this[y]=null}}contains(r){r=r.toLowerCase();return this[C].has(r)}clear(){this[C].clear();this[y]=null;this.cookies=null}append(r,s){this[y]=null;const i=r.toLowerCase();const a=this[C].get(i);if(a){const r=i==="cookie"?"; ":", ";this[C].set(i,{name:a.name,value:`${a.value}${r}${s}`})}else{this[C].set(i,{name:r,value:s})}if(i==="set-cookie"){this.cookies??=[];this.cookies.push(s)}}set(r,s){this[y]=null;const i=r.toLowerCase();if(i==="set-cookie"){this.cookies=[s]}this[C].set(i,{name:r,value:s})}delete(r){this[y]=null;r=r.toLowerCase();if(r==="set-cookie"){this.cookies=null}this[C].delete(r)}get(r){const s=this[C].get(r.toLowerCase());return s===undefined?null:s.value}*[Symbol.iterator](){for(const[r,{value:s}]of this[C]){yield[r,s]}}get entries(){const r={};if(this[C].size){for(const{name:s,value:i}of this[C].values()){r[s]=i}}return r}}class Headers{constructor(r=undefined){if(r===A){return}this[a]=new HeadersList;this[c]="none";if(r!==undefined){r=g.converters.HeadersInit(r);fill(this,r)}}append(r,s){g.brandCheck(this,Headers);g.argumentLengthCheck(arguments,2,{header:"Headers.append"});r=g.converters.ByteString(r);s=g.converters.ByteString(s);return appendHeader(this,r,s)}delete(r){g.brandCheck(this,Headers);g.argumentLengthCheck(arguments,1,{header:"Headers.delete"});r=g.converters.ByteString(r);if(!u(r)){throw g.errors.invalidArgument({prefix:"Headers.delete",value:r,type:"header name"})}if(this[c]==="immutable"){throw new TypeError("immutable")}else if(this[c]==="request-no-cors"){}if(!this[a].contains(r)){return}this[a].delete(r)}get(r){g.brandCheck(this,Headers);g.argumentLengthCheck(arguments,1,{header:"Headers.get"});r=g.converters.ByteString(r);if(!u(r)){throw g.errors.invalidArgument({prefix:"Headers.get",value:r,type:"header name"})}return this[a].get(r)}has(r){g.brandCheck(this,Headers);g.argumentLengthCheck(arguments,1,{header:"Headers.has"});r=g.converters.ByteString(r);if(!u(r)){throw g.errors.invalidArgument({prefix:"Headers.has",value:r,type:"header name"})}return this[a].contains(r)}set(r,s){g.brandCheck(this,Headers);g.argumentLengthCheck(arguments,2,{header:"Headers.set"});r=g.converters.ByteString(r);s=g.converters.ByteString(s);s=headerValueNormalize(s);if(!u(r)){throw g.errors.invalidArgument({prefix:"Headers.set",value:r,type:"header name"})}else if(!p(s)){throw g.errors.invalidArgument({prefix:"Headers.set",value:s,type:"header value"})}if(this[c]==="immutable"){throw new TypeError("immutable")}else if(this[c]==="request-no-cors"){}this[a].set(r,s)}getSetCookie(){g.brandCheck(this,Headers);const r=this[a].cookies;if(r){return[...r]}return[]}get[y](){if(this[a][y]){return this[a][y]}const r=[];const s=[...this[a]].sort(((r,s)=>r[0]r),"Headers","key")}return d((()=>[...this[y].values()]),"Headers","key")}values(){g.brandCheck(this,Headers);if(this[c]==="immutable"){const r=this[y];return d((()=>r),"Headers","value")}return d((()=>[...this[y].values()]),"Headers","value")}entries(){g.brandCheck(this,Headers);if(this[c]==="immutable"){const r=this[y];return d((()=>r),"Headers","key+value")}return d((()=>[...this[y].values()]),"Headers","key+value")}forEach(r,s=globalThis){g.brandCheck(this,Headers);g.argumentLengthCheck(arguments,1,{header:"Headers.forEach"});if(typeof r!=="function"){throw new TypeError("Failed to execute 'forEach' on 'Headers': parameter 1 is not of type 'Function'.")}for(const[i,a]of this){r.apply(s,[a,i,this])}}[Symbol.for("nodejs.util.inspect.custom")](){g.brandCheck(this,Headers);return this[a]}}Headers.prototype[Symbol.iterator]=Headers.prototype.entries;Object.defineProperties(Headers.prototype,{append:l,delete:l,get:l,has:l,set:l,getSetCookie:l,keys:l,values:l,entries:l,forEach:l,[Symbol.iterator]:{enumerable:false},[Symbol.toStringTag]:{value:"Headers",configurable:true}});g.converters.HeadersInit=function(r){if(g.util.Type(r)==="Object"){if(r[Symbol.iterator]){return g.converters["sequence>"](r)}return g.converters["record"](r)}throw g.errors.conversionFailed({prefix:"Headers constructor",argument:"Argument 1",types:["sequence>","record"]})};r.exports={fill:fill,Headers:Headers,HeadersList:HeadersList}},37495:(r,s,i)=>{"use strict";const{Response:a,makeNetworkError:A,makeAppropriateNetworkError:c,filterResponse:l,makeResponse:d}=i(12776);const{Headers:u}=i(96116);const{Request:p,makeRequest:g}=i(82494);const h=i(59796);const{bytesMatch:C,makePolicyContainer:y,clonePolicyContainer:I,requestBadPort:B,TAOCheck:b,appendRequestOriginHeader:Q,responseLocationURL:w,requestCurrentURL:v,setRequestReferrerPolicyOnRedirect:S,tryUpgradeRequestToAPotentiallyTrustworthyURL:R,createOpaqueTimingInfo:N,appendFetchMetadata:x,corsCheck:D,crossOriginResourcePolicyCheck:k,determineRequestsReferrer:T,coarsenedSharedCurrentTime:_,createDeferredPromise:P,isBlobLike:O,sameOrigin:L,isCancelled:M,isAborted:U,isErrorLike:H,fullyReadBody:G,readableStreamClose:q,isomorphicEncode:V,urlIsLocal:j,urlIsHttpHttpsScheme:z,urlHasHttpsScheme:Y}=i(49950);const{kState:J,kHeaders:W,kGuard:X,kRealm:$}=i(19226);const K=i(39491);const{safelyExtractBody:Z}=i(58640);const{redirectStatusSet:ee,nullBodyStatus:te,safeMethodsSet:re,requestBodyHeader:ne,subresourceSet:se,DOMException:ie}=i(17026);const{kHeadersList:oe}=i(52418);const ae=i(82361);const{Readable:Ae,pipeline:ce}=i(12781);const{addAbortListener:le,isErrored:de,isReadable:ue,nodeMajor:pe,nodeMinor:ge}=i(55009);const{dataURLProcessor:he,serializeAMimeType:me}=i(88576);const{TransformStream:fe}=i(35356);const{getGlobalDispatcher:Ee}=i(98412);const{webidl:Ce}=i(79224);const{STATUS_CODES:ye}=i(13685);const Ie=["GET","HEAD"];let Be;let be=globalThis.ReadableStream;class Fetch extends ae{constructor(r){super();this.dispatcher=r;this.connection=null;this.dump=false;this.state="ongoing";this.setMaxListeners(21)}terminate(r){if(this.state!=="ongoing"){return}this.state="terminated";this.connection?.destroy(r);this.emit("terminated",r)}abort(r){if(this.state!=="ongoing"){return}this.state="aborted";if(!r){r=new ie("The operation was aborted.","AbortError")}this.serializedAbortReason=r;this.connection?.destroy(r);this.emit("terminated",r)}}function fetch(r,s={}){Ce.argumentLengthCheck(arguments,1,{header:"globalThis.fetch"});const i=P();let A;try{A=new p(r,s)}catch(r){i.reject(r);return i.promise}const c=A[J];if(A.signal.aborted){abortFetch(i,c,null,A.signal.reason);return i.promise}const l=c.client.globalObject;if(l?.constructor?.name==="ServiceWorkerGlobalScope"){c.serviceWorkers="none"}let d=null;const u=null;let g=false;let h=null;le(A.signal,(()=>{g=true;K(h!=null);h.abort(A.signal.reason);abortFetch(i,c,d,A.signal.reason)}));const handleFetchDone=r=>finalizeAndReportTiming(r,"fetch");const processResponse=r=>{if(g){return Promise.resolve()}if(r.aborted){abortFetch(i,c,d,h.serializedAbortReason);return Promise.resolve()}if(r.type==="error"){i.reject(Object.assign(new TypeError("fetch failed"),{cause:r.error}));return Promise.resolve()}d=new a;d[J]=r;d[$]=u;d[W][oe]=r.headersList;d[W][X]="immutable";d[W][$]=u;i.resolve(d)};h=fetching({request:c,processResponseEndOfBody:handleFetchDone,processResponse:processResponse,dispatcher:s.dispatcher??Ee()});return i.promise}function finalizeAndReportTiming(r,s="other"){if(r.type==="error"&&r.aborted){return}if(!r.urlList?.length){return}const i=r.urlList[0];let a=r.timingInfo;let A=r.cacheState;if(!z(i)){return}if(a===null){return}if(!r.timingAllowPassed){a=N({startTime:a.startTime});A=""}a.endTime=_();r.timingInfo=a;markResourceTiming(a,i,s,globalThis,A)}function markResourceTiming(r,s,i,a,A){if(pe>18||pe===18&&ge>=2){performance.markResourceTiming(r,s.href,i,a,A)}}function abortFetch(r,s,i,a){if(!a){a=new ie("The operation was aborted.","AbortError")}r.reject(a);if(s.body!=null&&ue(s.body?.stream)){s.body.stream.cancel(a).catch((r=>{if(r.code==="ERR_INVALID_STATE"){return}throw r}))}if(i==null){return}const A=i[J];if(A.body!=null&&ue(A.body?.stream)){A.body.stream.cancel(a).catch((r=>{if(r.code==="ERR_INVALID_STATE"){return}throw r}))}}function fetching({request:r,processRequestBodyChunkLength:s,processRequestEndOfBody:i,processResponse:a,processResponseEndOfBody:A,processResponseConsumeBody:c,useParallelQueue:l=false,dispatcher:d}){let u=null;let p=false;if(r.client!=null){u=r.client.globalObject;p=r.client.crossOriginIsolatedCapability}const g=_(p);const h=N({startTime:g});const C={controller:new Fetch(d),request:r,timingInfo:h,processRequestBodyChunkLength:s,processRequestEndOfBody:i,processResponse:a,processResponseConsumeBody:c,processResponseEndOfBody:A,taskDestination:u,crossOriginIsolatedCapability:p};K(!r.body||r.body.stream);if(r.window==="client"){r.window=r.client?.globalObject?.constructor?.name==="Window"?r.client:"no-window"}if(r.origin==="client"){r.origin=r.client?.origin}if(r.policyContainer==="client"){if(r.client!=null){r.policyContainer=I(r.client.policyContainer)}else{r.policyContainer=y()}}if(!r.headersList.contains("accept")){const s="*/*";r.headersList.append("accept",s)}if(!r.headersList.contains("accept-language")){r.headersList.append("accept-language","*")}if(r.priority===null){}if(se.has(r.destination)){}mainFetch(C).catch((r=>{C.controller.terminate(r)}));return C.controller}async function mainFetch(r,s=false){const i=r.request;let a=null;if(i.localURLsOnly&&!j(v(i))){a=A("local URLs only")}R(i);if(B(i)==="blocked"){a=A("bad port")}if(i.referrerPolicy===""){i.referrerPolicy=i.policyContainer.referrerPolicy}if(i.referrer!=="no-referrer"){i.referrer=T(i)}if(a===null){a=await(async()=>{const s=v(i);if(L(s,i.url)&&i.responseTainting==="basic"||s.protocol==="data:"||(i.mode==="navigate"||i.mode==="websocket")){i.responseTainting="basic";return await schemeFetch(r)}if(i.mode==="same-origin"){return A('request mode cannot be "same-origin"')}if(i.mode==="no-cors"){if(i.redirect!=="follow"){return A('redirect mode cannot be "follow" for "no-cors" request')}i.responseTainting="opaque";return await schemeFetch(r)}if(!z(v(i))){return A("URL scheme must be a HTTP(S) scheme")}i.responseTainting="cors";return await httpFetch(r)})()}if(s){return a}if(a.status!==0&&!a.internalResponse){if(i.responseTainting==="cors"){}if(i.responseTainting==="basic"){a=l(a,"basic")}else if(i.responseTainting==="cors"){a=l(a,"cors")}else if(i.responseTainting==="opaque"){a=l(a,"opaque")}else{K(false)}}let c=a.status===0?a:a.internalResponse;if(c.urlList.length===0){c.urlList.push(...i.urlList)}if(!i.timingAllowFailed){a.timingAllowPassed=true}if(a.type==="opaque"&&c.status===206&&c.rangeRequested&&!i.headers.contains("range")){a=c=A()}if(a.status!==0&&(i.method==="HEAD"||i.method==="CONNECT"||te.includes(c.status))){c.body=null;r.controller.dump=true}if(i.integrity){const processBodyError=s=>fetchFinale(r,A(s));if(i.responseTainting==="opaque"||a.body==null){processBodyError(a.error);return}const processBody=s=>{if(!C(s,i.integrity)){processBodyError("integrity mismatch");return}a.body=Z(s)[0];fetchFinale(r,a)};await G(a.body,processBody,processBodyError)}else{fetchFinale(r,a)}}function schemeFetch(r){if(M(r)&&r.request.redirectCount===0){return Promise.resolve(c(r))}const{request:s}=r;const{protocol:a}=v(s);switch(a){case"about:":{return Promise.resolve(A("about scheme is not supported"))}case"blob:":{if(!Be){Be=i(14300).resolveObjectURL}const r=v(s);if(r.search.length!==0){return Promise.resolve(A("NetworkError when attempting to fetch resource."))}const a=Be(r.toString());if(s.method!=="GET"||!O(a)){return Promise.resolve(A("invalid method"))}const c=Z(a);const l=c[0];const u=V(`${l.length}`);const p=c[1]??"";const g=d({statusText:"OK",headersList:[["content-length",{name:"Content-Length",value:u}],["content-type",{name:"Content-Type",value:p}]]});g.body=l;return Promise.resolve(g)}case"data:":{const r=v(s);const i=he(r);if(i==="failure"){return Promise.resolve(A("failed to fetch the data URL"))}const a=me(i.mimeType);return Promise.resolve(d({statusText:"OK",headersList:[["content-type",{name:"Content-Type",value:a}]],body:Z(i.body)[0]}))}case"file:":{return Promise.resolve(A("not implemented... yet..."))}case"http:":case"https:":{return httpFetch(r).catch((r=>A(r)))}default:{return Promise.resolve(A("unknown scheme"))}}}function finalizeResponse(r,s){r.request.done=true;if(r.processResponseDone!=null){queueMicrotask((()=>r.processResponseDone(s)))}}function fetchFinale(r,s){if(s.type==="error"){s.urlList=[r.request.urlList[0]];s.timingInfo=N({startTime:r.timingInfo.startTime})}const processResponseEndOfBody=()=>{r.request.done=true;if(r.processResponseEndOfBody!=null){queueMicrotask((()=>r.processResponseEndOfBody(s)))}};if(r.processResponse!=null){queueMicrotask((()=>r.processResponse(s)))}if(s.body==null){processResponseEndOfBody()}else{const identityTransformAlgorithm=(r,s)=>{s.enqueue(r)};const r=new fe({start(){},transform:identityTransformAlgorithm,flush:processResponseEndOfBody},{size(){return 1}},{size(){return 1}});s.body={stream:s.body.stream.pipeThrough(r)}}if(r.processResponseConsumeBody!=null){const processBody=i=>r.processResponseConsumeBody(s,i);const processBodyError=i=>r.processResponseConsumeBody(s,i);if(s.body==null){queueMicrotask((()=>processBody(null)))}else{return G(s.body,processBody,processBodyError)}return Promise.resolve()}}async function httpFetch(r){const s=r.request;let i=null;let a=null;const c=r.timingInfo;if(s.serviceWorkers==="all"){}if(i===null){if(s.redirect==="follow"){s.serviceWorkers="none"}a=i=await httpNetworkOrCacheFetch(r);if(s.responseTainting==="cors"&&D(s,i)==="failure"){return A("cors failure")}if(b(s,i)==="failure"){s.timingAllowFailed=true}}if((s.responseTainting==="opaque"||i.type==="opaque")&&k(s.origin,s.client,s.destination,a)==="blocked"){return A("blocked")}if(ee.has(a.status)){if(s.redirect!=="manual"){r.controller.connection.destroy()}if(s.redirect==="error"){i=A("unexpected redirect")}else if(s.redirect==="manual"){i=a}else if(s.redirect==="follow"){i=await httpRedirectFetch(r,i)}else{K(false)}}i.timingInfo=c;return i}function httpRedirectFetch(r,s){const i=r.request;const a=s.internalResponse?s.internalResponse:s;let c;try{c=w(a,v(i).hash);if(c==null){return s}}catch(r){return Promise.resolve(A(r))}if(!z(c)){return Promise.resolve(A("URL scheme must be a HTTP(S) scheme"))}if(i.redirectCount===20){return Promise.resolve(A("redirect count exceeded"))}i.redirectCount+=1;if(i.mode==="cors"&&(c.username||c.password)&&!L(i,c)){return Promise.resolve(A('cross origin not allowed for request mode "cors"'))}if(i.responseTainting==="cors"&&(c.username||c.password)){return Promise.resolve(A('URL cannot contain credentials for request mode "cors"'))}if(a.status!==303&&i.body!=null&&i.body.source==null){return Promise.resolve(A())}if([301,302].includes(a.status)&&i.method==="POST"||a.status===303&&!Ie.includes(i.method)){i.method="GET";i.body=null;for(const r of ne){i.headersList.delete(r)}}if(!L(v(i),c)){i.headersList.delete("authorization");i.headersList.delete("proxy-authorization",true);i.headersList.delete("cookie");i.headersList.delete("host")}if(i.body!=null){K(i.body.source!=null);i.body=Z(i.body.source)[0]}const l=r.timingInfo;l.redirectEndTime=l.postRedirectStartTime=_(r.crossOriginIsolatedCapability);if(l.redirectStartTime===0){l.redirectStartTime=l.startTime}i.urlList.push(c);S(i,a);return mainFetch(r,true)}async function httpNetworkOrCacheFetch(r,s=false,i=false){const a=r.request;let l=null;let d=null;let u=null;const p=null;const h=false;if(a.window==="no-window"&&a.redirect==="error"){l=r;d=a}else{d=g(a);l={...r};l.request=d}const C=a.credentials==="include"||a.credentials==="same-origin"&&a.responseTainting==="basic";const y=d.body?d.body.length:null;let I=null;if(d.body==null&&["POST","PUT"].includes(d.method)){I="0"}if(y!=null){I=V(`${y}`)}if(I!=null){d.headersList.append("content-length",I)}if(y!=null&&d.keepalive){}if(d.referrer instanceof URL){d.headersList.append("referer",V(d.referrer.href))}Q(d);x(d);if(!d.headersList.contains("user-agent")){d.headersList.append("user-agent",typeof esbuildDetection==="undefined"?"undici":"node")}if(d.cache==="default"&&(d.headersList.contains("if-modified-since")||d.headersList.contains("if-none-match")||d.headersList.contains("if-unmodified-since")||d.headersList.contains("if-match")||d.headersList.contains("if-range"))){d.cache="no-store"}if(d.cache==="no-cache"&&!d.preventNoCacheCacheControlHeaderModification&&!d.headersList.contains("cache-control")){d.headersList.append("cache-control","max-age=0")}if(d.cache==="no-store"||d.cache==="reload"){if(!d.headersList.contains("pragma")){d.headersList.append("pragma","no-cache")}if(!d.headersList.contains("cache-control")){d.headersList.append("cache-control","no-cache")}}if(d.headersList.contains("range")){d.headersList.append("accept-encoding","identity")}if(!d.headersList.contains("accept-encoding")){if(Y(v(d))){d.headersList.append("accept-encoding","br, gzip, deflate")}else{d.headersList.append("accept-encoding","gzip, deflate")}}d.headersList.delete("host");if(C){}if(p==null){d.cache="no-store"}if(d.mode!=="no-store"&&d.mode!=="reload"){}if(u==null){if(d.mode==="only-if-cached"){return A("only if cached")}const r=await httpNetworkFetch(l,C,i);if(!re.has(d.method)&&r.status>=200&&r.status<=399){}if(h&&r.status===304){}if(u==null){u=r}}u.urlList=[...d.urlList];if(d.headersList.contains("range")){u.rangeRequested=true}u.requestIncludesCredentials=C;if(u.status===407){if(a.window==="no-window"){return A()}if(M(r)){return c(r)}return A("proxy authentication required")}if(u.status===421&&!i&&(a.body==null||a.body.source!=null)){if(M(r)){return c(r)}r.controller.connection.destroy();u=await httpNetworkOrCacheFetch(r,s,true)}if(s){}return u}async function httpNetworkFetch(r,s=false,a=false){K(!r.controller.connection||r.controller.connection.destroyed);r.controller.connection={abort:null,destroyed:false,destroy(r){if(!this.destroyed){this.destroyed=true;this.abort?.(r??new ie("The operation was aborted.","AbortError"))}}};const l=r.request;let p=null;const g=r.timingInfo;const C=null;if(C==null){l.cache="no-store"}const y=a?"yes":"no";if(l.mode==="websocket"){}else{}let I=null;if(l.body==null&&r.processRequestEndOfBody){queueMicrotask((()=>r.processRequestEndOfBody()))}else if(l.body!=null){const processBodyChunk=async function*(s){if(M(r)){return}yield s;r.processRequestBodyChunkLength?.(s.byteLength)};const processEndOfBody=()=>{if(M(r)){return}if(r.processRequestEndOfBody){r.processRequestEndOfBody()}};const processBodyError=s=>{if(M(r)){return}if(s.name==="AbortError"){r.controller.abort()}else{r.controller.terminate(s)}};I=async function*(){try{for await(const r of l.body.stream){yield*processBodyChunk(r)}processEndOfBody()}catch(r){processBodyError(r)}}()}try{const{body:s,status:i,statusText:a,headersList:A,socket:c}=await dispatch({body:I});if(c){p=d({status:i,statusText:a,headersList:A,socket:c})}else{const c=s[Symbol.asyncIterator]();r.controller.next=()=>c.next();p=d({status:i,statusText:a,headersList:A})}}catch(s){if(s.name==="AbortError"){r.controller.connection.destroy();return c(r,s)}return A(s)}const pullAlgorithm=()=>{r.controller.resume()};const cancelAlgorithm=s=>{r.controller.abort(s)};if(!be){be=i(35356).ReadableStream}const B=new be({async start(s){r.controller.controller=s},async pull(r){await pullAlgorithm(r)},async cancel(r){await cancelAlgorithm(r)}},{highWaterMark:0,size(){return 1}});p.body={stream:B};r.controller.on("terminated",onAborted);r.controller.resume=async()=>{while(true){let s;let i;try{const{done:i,value:a}=await r.controller.next();if(U(r)){break}s=i?undefined:a}catch(a){if(r.controller.ended&&!g.encodedBodySize){s=undefined}else{s=a;i=true}}if(s===undefined){q(r.controller.controller);finalizeResponse(r,p);return}g.decodedBodySize+=s?.byteLength??0;if(i){r.controller.terminate(s);return}r.controller.controller.enqueue(new Uint8Array(s));if(de(B)){r.controller.terminate();return}if(!r.controller.controller.desiredSize){return}}};function onAborted(s){if(U(r)){p.aborted=true;if(ue(B)){r.controller.controller.error(r.controller.serializedAbortReason)}}else{if(ue(B)){r.controller.controller.error(new TypeError("terminated",{cause:H(s)?s:undefined}))}}r.controller.connection.destroy()}return p;async function dispatch({body:s}){const i=v(l);const a=r.controller.dispatcher;return new Promise(((A,c)=>a.dispatch({path:i.pathname+i.search,origin:i.origin,method:l.method,body:r.controller.dispatcher.isMockActive?l.body&&(l.body.source||l.body.stream):s,headers:l.headersList.entries,maxRedirections:0,upgrade:l.mode==="websocket"?"websocket":undefined},{body:null,abort:null,onConnect(s){const{connection:i}=r.controller;if(i.destroyed){s(new ie("The operation was aborted.","AbortError"))}else{r.controller.on("terminated",s);this.abort=i.abort=s}},onHeaders(r,s,i,a){if(r<200){return}let c=[];let d="";const p=new u;if(Array.isArray(s)){for(let r=0;rr.trim()))}else if(i.toLowerCase()==="location"){d=a}p[oe].append(i,a)}}else{const r=Object.keys(s);for(const i of r){const r=s[i];if(i.toLowerCase()==="content-encoding"){c=r.toLowerCase().split(",").map((r=>r.trim())).reverse()}else if(i.toLowerCase()==="location"){d=r}p[oe].append(i,r)}}this.body=new Ae({read:i});const g=[];const C=l.redirect==="follow"&&d&&ee.has(r);if(l.method!=="HEAD"&&l.method!=="CONNECT"&&!te.includes(r)&&!C){for(const r of c){if(r==="x-gzip"||r==="gzip"){g.push(h.createGunzip({flush:h.constants.Z_SYNC_FLUSH,finishFlush:h.constants.Z_SYNC_FLUSH}))}else if(r==="deflate"){g.push(h.createInflate())}else if(r==="br"){g.push(h.createBrotliDecompress())}else{g.length=0;break}}}A({status:r,statusText:a,headersList:p[oe],body:g.length?ce(this.body,...g,(()=>{})):this.body.on("error",(()=>{}))});return true},onData(s){if(r.controller.dump){return}const i=s;g.encodedBodySize+=i.byteLength;return this.body.push(i)},onComplete(){if(this.abort){r.controller.off("terminated",this.abort)}r.controller.ended=true;this.body.push(null)},onError(s){if(this.abort){r.controller.off("terminated",this.abort)}this.body?.destroy(s);r.controller.terminate(s);c(s)},onUpgrade(r,s,i){if(r!==101){return}const a=new u;for(let r=0;r{"use strict";const{extractBody:a,mixinBody:A,cloneBody:c}=i(58640);const{Headers:l,fill:d,HeadersList:u}=i(96116);const{FinalizationRegistry:p}=i(91578)();const g=i(55009);const{isValidHTTPToken:h,sameOrigin:C,normalizeMethod:y,makePolicyContainer:I,normalizeMethodRecord:B}=i(49950);const{forbiddenMethodsSet:b,corsSafeListedMethodsSet:Q,referrerPolicy:w,requestRedirect:v,requestMode:S,requestCredentials:R,requestCache:N,requestDuplex:x}=i(17026);const{kEnumerableProperty:D}=g;const{kHeaders:k,kSignal:T,kState:_,kGuard:P,kRealm:O}=i(19226);const{webidl:L}=i(79224);const{getGlobalOrigin:M}=i(11854);const{URLSerializer:U}=i(88576);const{kHeadersList:H,kConstruct:G}=i(52418);const q=i(39491);const{getMaxListeners:V,setMaxListeners:j,getEventListeners:z,defaultMaxListeners:Y}=i(82361);let J=globalThis.TransformStream;const W=Symbol("abortController");const X=new p((({signal:r,abort:s})=>{r.removeEventListener("abort",s)}));class Request{constructor(r,s={}){if(r===G){return}L.argumentLengthCheck(arguments,1,{header:"Request constructor"});r=L.converters.RequestInfo(r);s=L.converters.RequestInit(s);this[O]={settingsObject:{baseUrl:M(),get origin(){return this.baseUrl?.origin},policyContainer:I()}};let A=null;let c=null;const p=this[O].settingsObject.baseUrl;let w=null;if(typeof r==="string"){let s;try{s=new URL(r,p)}catch(s){throw new TypeError("Failed to parse URL from "+r,{cause:s})}if(s.username||s.password){throw new TypeError("Request cannot be constructed from a URL that includes credentials: "+r)}A=makeRequest({urlList:[s]});c="cors"}else{q(r instanceof Request);A=r[_];w=r[T]}const v=this[O].settingsObject.origin;let S="client";if(A.window?.constructor?.name==="EnvironmentSettingsObject"&&C(A.window,v)){S=A.window}if(s.window!=null){throw new TypeError(`'window' option '${S}' must be null`)}if("window"in s){S="no-window"}A=makeRequest({method:A.method,headersList:A.headersList,unsafeRequest:A.unsafeRequest,client:this[O].settingsObject,window:S,priority:A.priority,origin:A.origin,referrer:A.referrer,referrerPolicy:A.referrerPolicy,mode:A.mode,credentials:A.credentials,cache:A.cache,redirect:A.redirect,integrity:A.integrity,keepalive:A.keepalive,reloadNavigation:A.reloadNavigation,historyNavigation:A.historyNavigation,urlList:[...A.urlList]});const R=Object.keys(s).length!==0;if(R){if(A.mode==="navigate"){A.mode="same-origin"}A.reloadNavigation=false;A.historyNavigation=false;A.origin="client";A.referrer="client";A.referrerPolicy="";A.url=A.urlList[A.urlList.length-1];A.urlList=[A.url]}if(s.referrer!==undefined){const r=s.referrer;if(r===""){A.referrer="no-referrer"}else{let s;try{s=new URL(r,p)}catch(s){throw new TypeError(`Referrer "${r}" is not a valid URL.`,{cause:s})}if(s.protocol==="about:"&&s.hostname==="client"||v&&!C(s,this[O].settingsObject.baseUrl)){A.referrer="client"}else{A.referrer=s}}}if(s.referrerPolicy!==undefined){A.referrerPolicy=s.referrerPolicy}let N;if(s.mode!==undefined){N=s.mode}else{N=c}if(N==="navigate"){throw L.errors.exception({header:"Request constructor",message:"invalid request mode navigate."})}if(N!=null){A.mode=N}if(s.credentials!==undefined){A.credentials=s.credentials}if(s.cache!==undefined){A.cache=s.cache}if(A.cache==="only-if-cached"&&A.mode!=="same-origin"){throw new TypeError("'only-if-cached' can be set only with 'same-origin' mode")}if(s.redirect!==undefined){A.redirect=s.redirect}if(s.integrity!=null){A.integrity=String(s.integrity)}if(s.keepalive!==undefined){A.keepalive=Boolean(s.keepalive)}if(s.method!==undefined){let r=s.method;if(!h(r)){throw new TypeError(`'${r}' is not a valid HTTP method.`)}if(b.has(r.toUpperCase())){throw new TypeError(`'${r}' HTTP method is unsupported.`)}r=B[r]??y(r);A.method=r}if(s.signal!==undefined){w=s.signal}this[_]=A;const x=new AbortController;this[T]=x.signal;this[T][O]=this[O];if(w!=null){if(!w||typeof w.aborted!=="boolean"||typeof w.addEventListener!=="function"){throw new TypeError("Failed to construct 'Request': member signal is not of type AbortSignal.")}if(w.aborted){x.abort(w.reason)}else{this[W]=x;const r=new WeakRef(x);const abort=function(){const s=r.deref();if(s!==undefined){s.abort(this.reason)}};try{if(typeof V==="function"&&V(w)===Y){j(100,w)}else if(z(w,"abort").length>=Y){j(100,w)}}catch{}g.addAbortListener(w,abort);X.register(x,{signal:w,abort:abort})}}this[k]=new l(G);this[k][H]=A.headersList;this[k][P]="request";this[k][O]=this[O];if(N==="no-cors"){if(!Q.has(A.method)){throw new TypeError(`'${A.method} is unsupported in no-cors mode.`)}this[k][P]="request-no-cors"}if(R){const r=this[k][H];const i=s.headers!==undefined?s.headers:new u(r);r.clear();if(i instanceof u){for(const[s,a]of i){r.append(s,a)}r.cookies=i.cookies}else{d(this[k],i)}}const D=r instanceof Request?r[_].body:null;if((s.body!=null||D!=null)&&(A.method==="GET"||A.method==="HEAD")){throw new TypeError("Request with GET/HEAD method cannot have body.")}let U=null;if(s.body!=null){const[r,i]=a(s.body,A.keepalive);U=r;if(i&&!this[k][H].contains("content-type")){this[k].append("content-type",i)}}const $=U??D;if($!=null&&$.source==null){if(U!=null&&s.duplex==null){throw new TypeError("RequestInit: duplex option is required when sending a body.")}if(A.mode!=="same-origin"&&A.mode!=="cors"){throw new TypeError('If request is made from ReadableStream, mode should be "same-origin" or "cors"')}A.useCORSPreflightFlag=true}let K=$;if(U==null&&D!=null){if(g.isDisturbed(D.stream)||D.stream.locked){throw new TypeError("Cannot construct a Request with a Request object that has already been used.")}if(!J){J=i(35356).TransformStream}const r=new J;D.stream.pipeThrough(r);K={source:D.source,length:D.length,stream:r.readable}}this[_].body=K}get method(){L.brandCheck(this,Request);return this[_].method}get url(){L.brandCheck(this,Request);return U(this[_].url)}get headers(){L.brandCheck(this,Request);return this[k]}get destination(){L.brandCheck(this,Request);return this[_].destination}get referrer(){L.brandCheck(this,Request);if(this[_].referrer==="no-referrer"){return""}if(this[_].referrer==="client"){return"about:client"}return this[_].referrer.toString()}get referrerPolicy(){L.brandCheck(this,Request);return this[_].referrerPolicy}get mode(){L.brandCheck(this,Request);return this[_].mode}get credentials(){return this[_].credentials}get cache(){L.brandCheck(this,Request);return this[_].cache}get redirect(){L.brandCheck(this,Request);return this[_].redirect}get integrity(){L.brandCheck(this,Request);return this[_].integrity}get keepalive(){L.brandCheck(this,Request);return this[_].keepalive}get isReloadNavigation(){L.brandCheck(this,Request);return this[_].reloadNavigation}get isHistoryNavigation(){L.brandCheck(this,Request);return this[_].historyNavigation}get signal(){L.brandCheck(this,Request);return this[T]}get body(){L.brandCheck(this,Request);return this[_].body?this[_].body.stream:null}get bodyUsed(){L.brandCheck(this,Request);return!!this[_].body&&g.isDisturbed(this[_].body.stream)}get duplex(){L.brandCheck(this,Request);return"half"}clone(){L.brandCheck(this,Request);if(this.bodyUsed||this.body?.locked){throw new TypeError("unusable")}const r=cloneRequest(this[_]);const s=new Request(G);s[_]=r;s[O]=this[O];s[k]=new l(G);s[k][H]=r.headersList;s[k][P]=this[k][P];s[k][O]=this[k][O];const i=new AbortController;if(this.signal.aborted){i.abort(this.signal.reason)}else{g.addAbortListener(this.signal,(()=>{i.abort(this.signal.reason)}))}s[T]=i.signal;return s}}A(Request);function makeRequest(r){const s={method:"GET",localURLsOnly:false,unsafeRequest:false,body:null,client:null,reservedClient:null,replacesClientId:"",window:"client",keepalive:false,serviceWorkers:"all",initiator:"",destination:"",priority:null,origin:"client",policyContainer:"client",referrer:"client",referrerPolicy:"",mode:"no-cors",useCORSPreflightFlag:false,credentials:"same-origin",useCredentials:false,cache:"default",redirect:"follow",integrity:"",cryptoGraphicsNonceMetadata:"",parserMetadata:"",reloadNavigation:false,historyNavigation:false,userActivation:false,taintedOrigin:false,redirectCount:0,responseTainting:"basic",preventNoCacheCacheControlHeaderModification:false,done:false,timingAllowFailed:false,...r,headersList:r.headersList?new u(r.headersList):new u};s.url=s.urlList[0];return s}function cloneRequest(r){const s=makeRequest({...r,body:null});if(r.body!=null){s.body=c(r.body)}return s}Object.defineProperties(Request.prototype,{method:D,url:D,headers:D,redirect:D,clone:D,signal:D,duplex:D,destination:D,body:D,bodyUsed:D,isHistoryNavigation:D,isReloadNavigation:D,keepalive:D,integrity:D,cache:D,credentials:D,attribute:D,referrerPolicy:D,referrer:D,mode:D,[Symbol.toStringTag]:{value:"Request",configurable:true}});L.converters.Request=L.interfaceConverter(Request);L.converters.RequestInfo=function(r){if(typeof r==="string"){return L.converters.USVString(r)}if(r instanceof Request){return L.converters.Request(r)}return L.converters.USVString(r)};L.converters.AbortSignal=L.interfaceConverter(AbortSignal);L.converters.RequestInit=L.dictionaryConverter([{key:"method",converter:L.converters.ByteString},{key:"headers",converter:L.converters.HeadersInit},{key:"body",converter:L.nullableConverter(L.converters.BodyInit)},{key:"referrer",converter:L.converters.USVString},{key:"referrerPolicy",converter:L.converters.DOMString,allowedValues:w},{key:"mode",converter:L.converters.DOMString,allowedValues:S},{key:"credentials",converter:L.converters.DOMString,allowedValues:R},{key:"cache",converter:L.converters.DOMString,allowedValues:N},{key:"redirect",converter:L.converters.DOMString,allowedValues:v},{key:"integrity",converter:L.converters.DOMString},{key:"keepalive",converter:L.converters.boolean},{key:"signal",converter:L.nullableConverter((r=>L.converters.AbortSignal(r,{strict:false})))},{key:"window",converter:L.converters.any},{key:"duplex",converter:L.converters.DOMString,allowedValues:x}]);r.exports={Request:Request,makeRequest:makeRequest}},12776:(r,s,i)=>{"use strict";const{Headers:a,HeadersList:A,fill:c}=i(96116);const{extractBody:l,cloneBody:d,mixinBody:u}=i(58640);const p=i(55009);const{kEnumerableProperty:g}=p;const{isValidReasonPhrase:h,isCancelled:C,isAborted:y,isBlobLike:I,serializeJavascriptValueToJSONString:B,isErrorLike:b,isomorphicEncode:Q}=i(49950);const{redirectStatusSet:w,nullBodyStatus:v,DOMException:S}=i(17026);const{kState:R,kHeaders:N,kGuard:x,kRealm:D}=i(19226);const{webidl:k}=i(79224);const{FormData:T}=i(38175);const{getGlobalOrigin:_}=i(11854);const{URLSerializer:P}=i(88576);const{kHeadersList:O,kConstruct:L}=i(52418);const M=i(39491);const{types:U}=i(73837);const H=globalThis.ReadableStream||i(35356).ReadableStream;const G=new TextEncoder("utf-8");class Response{static error(){const r={settingsObject:{}};const s=new Response;s[R]=makeNetworkError();s[D]=r;s[N][O]=s[R].headersList;s[N][x]="immutable";s[N][D]=r;return s}static json(r,s={}){k.argumentLengthCheck(arguments,1,{header:"Response.json"});if(s!==null){s=k.converters.ResponseInit(s)}const i=G.encode(B(r));const a=l(i);const A={settingsObject:{}};const c=new Response;c[D]=A;c[N][x]="response";c[N][D]=A;initializeResponse(c,s,{body:a[0],type:"application/json"});return c}static redirect(r,s=302){const i={settingsObject:{}};k.argumentLengthCheck(arguments,1,{header:"Response.redirect"});r=k.converters.USVString(r);s=k.converters["unsigned short"](s);let a;try{a=new URL(r,_())}catch(s){throw Object.assign(new TypeError("Failed to parse URL from "+r),{cause:s})}if(!w.has(s)){throw new RangeError("Invalid status code "+s)}const A=new Response;A[D]=i;A[N][x]="immutable";A[N][D]=i;A[R].status=s;const c=Q(P(a));A[R].headersList.append("location",c);return A}constructor(r=null,s={}){if(r!==null){r=k.converters.BodyInit(r)}s=k.converters.ResponseInit(s);this[D]={settingsObject:{}};this[R]=makeResponse({});this[N]=new a(L);this[N][x]="response";this[N][O]=this[R].headersList;this[N][D]=this[D];let i=null;if(r!=null){const[s,a]=l(r);i={body:s,type:a}}initializeResponse(this,s,i)}get type(){k.brandCheck(this,Response);return this[R].type}get url(){k.brandCheck(this,Response);const r=this[R].urlList;const s=r[r.length-1]??null;if(s===null){return""}return P(s,true)}get redirected(){k.brandCheck(this,Response);return this[R].urlList.length>1}get status(){k.brandCheck(this,Response);return this[R].status}get ok(){k.brandCheck(this,Response);return this[R].status>=200&&this[R].status<=299}get statusText(){k.brandCheck(this,Response);return this[R].statusText}get headers(){k.brandCheck(this,Response);return this[N]}get body(){k.brandCheck(this,Response);return this[R].body?this[R].body.stream:null}get bodyUsed(){k.brandCheck(this,Response);return!!this[R].body&&p.isDisturbed(this[R].body.stream)}clone(){k.brandCheck(this,Response);if(this.bodyUsed||this.body&&this.body.locked){throw k.errors.exception({header:"Response.clone",message:"Body has already been consumed."})}const r=cloneResponse(this[R]);const s=new Response;s[R]=r;s[D]=this[D];s[N][O]=r.headersList;s[N][x]=this[N][x];s[N][D]=this[N][D];return s}}u(Response);Object.defineProperties(Response.prototype,{type:g,url:g,status:g,ok:g,redirected:g,statusText:g,headers:g,clone:g,body:g,bodyUsed:g,[Symbol.toStringTag]:{value:"Response",configurable:true}});Object.defineProperties(Response,{json:g,redirect:g,error:g});function cloneResponse(r){if(r.internalResponse){return filterResponse(cloneResponse(r.internalResponse),r.type)}const s=makeResponse({...r,body:null});if(r.body!=null){s.body=d(r.body)}return s}function makeResponse(r){return{aborted:false,rangeRequested:false,timingAllowPassed:false,requestIncludesCredentials:false,type:"default",status:200,timingInfo:null,cacheState:"",statusText:"",...r,headersList:r.headersList?new A(r.headersList):new A,urlList:r.urlList?[...r.urlList]:[]}}function makeNetworkError(r){const s=b(r);return makeResponse({type:"error",status:0,error:s?r:new Error(r?String(r):r),aborted:r&&r.name==="AbortError"})}function makeFilteredResponse(r,s){s={internalResponse:r,...s};return new Proxy(r,{get(r,i){return i in s?s[i]:r[i]},set(r,i,a){M(!(i in s));r[i]=a;return true}})}function filterResponse(r,s){if(s==="basic"){return makeFilteredResponse(r,{type:"basic",headersList:r.headersList})}else if(s==="cors"){return makeFilteredResponse(r,{type:"cors",headersList:r.headersList})}else if(s==="opaque"){return makeFilteredResponse(r,{type:"opaque",urlList:Object.freeze([]),status:0,statusText:"",body:null})}else if(s==="opaqueredirect"){return makeFilteredResponse(r,{type:"opaqueredirect",status:0,statusText:"",headersList:[],body:null})}else{M(false)}}function makeAppropriateNetworkError(r,s=null){M(C(r));return y(r)?makeNetworkError(Object.assign(new S("The operation was aborted.","AbortError"),{cause:s})):makeNetworkError(Object.assign(new S("Request was cancelled."),{cause:s}))}function initializeResponse(r,s,i){if(s.status!==null&&(s.status<200||s.status>599)){throw new RangeError('init["status"] must be in the range of 200 to 599, inclusive.')}if("statusText"in s&&s.statusText!=null){if(!h(String(s.statusText))){throw new TypeError("Invalid statusText")}}if("status"in s&&s.status!=null){r[R].status=s.status}if("statusText"in s&&s.statusText!=null){r[R].statusText=s.statusText}if("headers"in s&&s.headers!=null){c(r[N],s.headers)}if(i){if(v.includes(r.status)){throw k.errors.exception({header:"Response constructor",message:"Invalid response status code "+r.status})}r[R].body=i.body;if(i.type!=null&&!r[R].headersList.contains("Content-Type")){r[R].headersList.append("content-type",i.type)}}}k.converters.ReadableStream=k.interfaceConverter(H);k.converters.FormData=k.interfaceConverter(T);k.converters.URLSearchParams=k.interfaceConverter(URLSearchParams);k.converters.XMLHttpRequestBodyInit=function(r){if(typeof r==="string"){return k.converters.USVString(r)}if(I(r)){return k.converters.Blob(r,{strict:false})}if(U.isArrayBuffer(r)||U.isTypedArray(r)||U.isDataView(r)){return k.converters.BufferSource(r)}if(p.isFormDataLike(r)){return k.converters.FormData(r,{strict:false})}if(r instanceof URLSearchParams){return k.converters.URLSearchParams(r)}return k.converters.DOMString(r)};k.converters.BodyInit=function(r){if(r instanceof H){return k.converters.ReadableStream(r)}if(r?.[Symbol.asyncIterator]){return r}return k.converters.XMLHttpRequestBodyInit(r)};k.converters.ResponseInit=k.dictionaryConverter([{key:"status",converter:k.converters["unsigned short"],defaultValue:200},{key:"statusText",converter:k.converters.ByteString,defaultValue:""},{key:"headers",converter:k.converters.HeadersInit}]);r.exports={makeNetworkError:makeNetworkError,makeResponse:makeResponse,makeAppropriateNetworkError:makeAppropriateNetworkError,filterResponse:filterResponse,Response:Response,cloneResponse:cloneResponse}},19226:r=>{"use strict";r.exports={kUrl:Symbol("url"),kHeaders:Symbol("headers"),kSignal:Symbol("signal"),kState:Symbol("state"),kGuard:Symbol("guard"),kRealm:Symbol("realm")}},49950:(r,s,i)=>{"use strict";const{redirectStatusSet:a,referrerPolicySet:A,badPortsSet:c}=i(17026);const{getGlobalOrigin:l}=i(11854);const{performance:d}=i(4074);const{isBlobLike:u,toUSVString:p,ReadableStreamFrom:g}=i(55009);const h=i(39491);const{isUint8Array:C}=i(29830);let y=[];let I;try{I=i(6113);const r=["sha256","sha384","sha512"];y=I.getHashes().filter((s=>r.includes(s)))}catch{}function responseURL(r){const s=r.urlList;const i=s.length;return i===0?null:s[i-1].toString()}function responseLocationURL(r,s){if(!a.has(r.status)){return null}let i=r.headersList.get("location");if(i!==null&&isValidHeaderValue(i)){i=new URL(i,responseURL(r))}if(i&&!i.hash){i.hash=s}return i}function requestCurrentURL(r){return r.urlList[r.urlList.length-1]}function requestBadPort(r){const s=requestCurrentURL(r);if(urlIsHttpHttpsScheme(s)&&c.has(s.port)){return"blocked"}return"allowed"}function isErrorLike(r){return r instanceof Error||(r?.constructor?.name==="Error"||r?.constructor?.name==="DOMException")}function isValidReasonPhrase(r){for(let s=0;s=32&&i<=126||i>=128&&i<=255)){return false}}return true}function isTokenCharCode(r){switch(r){case 34:case 40:case 41:case 44:case 47:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 91:case 92:case 93:case 123:case 125:return false;default:return r>=33&&r<=126}}function isValidHTTPToken(r){if(r.length===0){return false}for(let s=0;s0){for(let r=a.length;r!==0;r--){const s=a[r-1].trim();if(A.has(s)){c=s;break}}}if(c!==""){r.referrerPolicy=c}}function crossOriginResourcePolicyCheck(){return"allowed"}function corsCheck(){return"success"}function TAOCheck(){return"success"}function appendFetchMetadata(r){let s=null;s=r.mode;r.headersList.set("sec-fetch-mode",s)}function appendRequestOriginHeader(r){let s=r.origin;if(r.responseTainting==="cors"||r.mode==="websocket"){if(s){r.headersList.append("origin",s)}}else if(r.method!=="GET"&&r.method!=="HEAD"){switch(r.referrerPolicy){case"no-referrer":s=null;break;case"no-referrer-when-downgrade":case"strict-origin":case"strict-origin-when-cross-origin":if(r.origin&&urlHasHttpsScheme(r.origin)&&!urlHasHttpsScheme(requestCurrentURL(r))){s=null}break;case"same-origin":if(!sameOrigin(r,requestCurrentURL(r))){s=null}break;default:}if(s){r.headersList.append("origin",s)}}}function coarsenedSharedCurrentTime(r){return d.now()}function createOpaqueTimingInfo(r){return{startTime:r.startTime??0,redirectStartTime:0,redirectEndTime:0,postRedirectStartTime:r.startTime??0,finalServiceWorkerStartTime:0,finalNetworkResponseStartTime:0,finalNetworkRequestStartTime:0,endTime:0,encodedBodySize:0,decodedBodySize:0,finalConnectionTimingInfo:null}}function makePolicyContainer(){return{referrerPolicy:"strict-origin-when-cross-origin"}}function clonePolicyContainer(r){return{referrerPolicy:r.referrerPolicy}}function determineRequestsReferrer(r){const s=r.referrerPolicy;h(s);let i=null;if(r.referrer==="client"){const r=l();if(!r||r.origin==="null"){return"no-referrer"}i=new URL(r)}else if(r.referrer instanceof URL){i=r.referrer}let a=stripURLForReferrer(i);const A=stripURLForReferrer(i,true);if(a.toString().length>4096){a=A}const c=sameOrigin(r,a);const d=isURLPotentiallyTrustworthy(a)&&!isURLPotentiallyTrustworthy(r.url);switch(s){case"origin":return A!=null?A:stripURLForReferrer(i,true);case"unsafe-url":return a;case"same-origin":return c?A:"no-referrer";case"origin-when-cross-origin":return c?a:A;case"strict-origin-when-cross-origin":{const s=requestCurrentURL(r);if(sameOrigin(a,s)){return a}if(isURLPotentiallyTrustworthy(a)&&!isURLPotentiallyTrustworthy(s)){return"no-referrer"}return A}case"strict-origin":case"no-referrer-when-downgrade":default:return d?"no-referrer":A}}function stripURLForReferrer(r,s){h(r instanceof URL);if(r.protocol==="file:"||r.protocol==="about:"||r.protocol==="blank:"){return"no-referrer"}r.username="";r.password="";r.hash="";if(s){r.pathname="";r.search=""}return r}function isURLPotentiallyTrustworthy(r){if(!(r instanceof URL)){return false}if(r.href==="about:blank"||r.href==="about:srcdoc"){return true}if(r.protocol==="data:")return true;if(r.protocol==="file:")return true;return isOriginPotentiallyTrustworthy(r.origin);function isOriginPotentiallyTrustworthy(r){if(r==null||r==="null")return false;const s=new URL(r);if(s.protocol==="https:"||s.protocol==="wss:"){return true}if(/^127(?:\.[0-9]+){0,2}\.[0-9]+$|^\[(?:0*:)*?:?0*1\]$/.test(s.hostname)||(s.hostname==="localhost"||s.hostname.includes("localhost."))||s.hostname.endsWith(".localhost")){return true}return false}}function bytesMatch(r,s){if(I===undefined){return true}const i=parseMetadata(s);if(i==="no metadata"){return true}if(i.length===0){return true}const a=getStrongestMetadata(i);const A=filterMetadataListByAlgorithm(i,a);for(const s of A){const i=s.algo;const a=s.hash;let A=I.createHash(i).update(r).digest("base64");if(A[A.length-1]==="="){if(A[A.length-2]==="="){A=A.slice(0,-2)}else{A=A.slice(0,-1)}}if(compareBase64Mixed(A,a)){return true}}return false}const B=/(?sha256|sha384|sha512)-((?[A-Za-z0-9+/]+|[A-Za-z0-9_-]+)={0,2}(?:\s|$)( +[!-~]*)?)?/i;function parseMetadata(r){const s=[];let i=true;for(const a of r.split(" ")){i=false;const r=B.exec(a);if(r===null||r.groups===undefined||r.groups.algo===undefined){continue}const A=r.groups.algo.toLowerCase();if(y.includes(A)){s.push(r.groups)}}if(i===true){return"no metadata"}return s}function getStrongestMetadata(r){let s=r[0].algo;if(s[3]==="5"){return s}for(let i=1;i{r=i;s=a}));return{promise:i,resolve:r,reject:s}}function isAborted(r){return r.controller.state==="aborted"}function isCancelled(r){return r.controller.state==="aborted"||r.controller.state==="terminated"}const b={delete:"DELETE",DELETE:"DELETE",get:"GET",GET:"GET",head:"HEAD",HEAD:"HEAD",options:"OPTIONS",OPTIONS:"OPTIONS",post:"POST",POST:"POST",put:"PUT",PUT:"PUT"};Object.setPrototypeOf(b,null);function normalizeMethod(r){return b[r.toLowerCase()]??r}function serializeJavascriptValueToJSONString(r){const s=JSON.stringify(r);if(s===undefined){throw new TypeError("Value is not JSON serializable")}h(typeof s==="string");return s}const Q=Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()));function makeIterator(r,s,i){const a={index:0,kind:i,target:r};const A={next(){if(Object.getPrototypeOf(this)!==A){throw new TypeError(`'next' called on an object that does not implement interface ${s} Iterator.`)}const{index:r,kind:i,target:c}=a;const l=c();const d=l.length;if(r>=d){return{value:undefined,done:true}}const u=l[r];a.index=r+1;return iteratorResult(u,i)},[Symbol.toStringTag]:`${s} Iterator`};Object.setPrototypeOf(A,Q);return Object.setPrototypeOf({},A)}function iteratorResult(r,s){let i;switch(s){case"key":{i=r[0];break}case"value":{i=r[1];break}case"key+value":{i=r;break}}return{value:i,done:false}}async function fullyReadBody(r,s,i){const a=s;const A=i;let c;try{c=r.stream.getReader()}catch(r){A(r);return}try{const r=await readAllBytes(c);a(r)}catch(r){A(r)}}let w=globalThis.ReadableStream;function isReadableStreamLike(r){if(!w){w=i(35356).ReadableStream}return r instanceof w||r[Symbol.toStringTag]==="ReadableStream"&&typeof r.tee==="function"}const v=65535;function isomorphicDecode(r){if(r.lengthr+String.fromCharCode(s)),"")}function readableStreamClose(r){try{r.close()}catch(r){if(!r.message.includes("Controller is already closed")){throw r}}}function isomorphicEncode(r){for(let s=0;sObject.prototype.hasOwnProperty.call(r,s));r.exports={isAborted:isAborted,isCancelled:isCancelled,createDeferredPromise:createDeferredPromise,ReadableStreamFrom:g,toUSVString:p,tryUpgradeRequestToAPotentiallyTrustworthyURL:tryUpgradeRequestToAPotentiallyTrustworthyURL,coarsenedSharedCurrentTime:coarsenedSharedCurrentTime,determineRequestsReferrer:determineRequestsReferrer,makePolicyContainer:makePolicyContainer,clonePolicyContainer:clonePolicyContainer,appendFetchMetadata:appendFetchMetadata,appendRequestOriginHeader:appendRequestOriginHeader,TAOCheck:TAOCheck,corsCheck:corsCheck,crossOriginResourcePolicyCheck:crossOriginResourcePolicyCheck,createOpaqueTimingInfo:createOpaqueTimingInfo,setRequestReferrerPolicyOnRedirect:setRequestReferrerPolicyOnRedirect,isValidHTTPToken:isValidHTTPToken,requestBadPort:requestBadPort,requestCurrentURL:requestCurrentURL,responseURL:responseURL,responseLocationURL:responseLocationURL,isBlobLike:u,isURLPotentiallyTrustworthy:isURLPotentiallyTrustworthy,isValidReasonPhrase:isValidReasonPhrase,sameOrigin:sameOrigin,normalizeMethod:normalizeMethod,serializeJavascriptValueToJSONString:serializeJavascriptValueToJSONString,makeIterator:makeIterator,isValidHeaderName:isValidHeaderName,isValidHeaderValue:isValidHeaderValue,hasOwn:S,isErrorLike:isErrorLike,fullyReadBody:fullyReadBody,bytesMatch:bytesMatch,isReadableStreamLike:isReadableStreamLike,readableStreamClose:readableStreamClose,isomorphicEncode:isomorphicEncode,isomorphicDecode:isomorphicDecode,urlIsLocal:urlIsLocal,urlHasHttpsScheme:urlHasHttpsScheme,urlIsHttpHttpsScheme:urlIsHttpHttpsScheme,readAllBytes:readAllBytes,normalizeMethodRecord:b,parseMetadata:parseMetadata}},79224:(r,s,i)=>{"use strict";const{types:a}=i(73837);const{hasOwn:A,toUSVString:c}=i(49950);const l={};l.converters={};l.util={};l.errors={};l.errors.exception=function(r){return new TypeError(`${r.header}: ${r.message}`)};l.errors.conversionFailed=function(r){const s=r.types.length===1?"":" one of";const i=`${r.argument} could not be converted to`+`${s}: ${r.types.join(", ")}.`;return l.errors.exception({header:r.prefix,message:i})};l.errors.invalidArgument=function(r){return l.errors.exception({header:r.prefix,message:`"${r.value}" is an invalid ${r.type}.`})};l.brandCheck=function(r,s,i=undefined){if(i?.strict!==false&&!(r instanceof s)){throw new TypeError("Illegal invocation")}else{return r?.[Symbol.toStringTag]===s.prototype[Symbol.toStringTag]}};l.argumentLengthCheck=function({length:r},s,i){if(rA){throw l.errors.exception({header:"Integer conversion",message:`Value must be between ${c}-${A}, got ${d}.`})}return d}if(!Number.isNaN(d)&&a.clamp===true){d=Math.min(Math.max(d,c),A);if(Math.floor(d)%2===0){d=Math.floor(d)}else{d=Math.ceil(d)}return d}if(Number.isNaN(d)||d===0&&Object.is(0,d)||d===Number.POSITIVE_INFINITY||d===Number.NEGATIVE_INFINITY){return 0}d=l.util.IntegerPart(d);d=d%Math.pow(2,s);if(i==="signed"&&d>=Math.pow(2,s)-1){return d-Math.pow(2,s)}return d};l.util.IntegerPart=function(r){const s=Math.floor(Math.abs(r));if(r<0){return-1*s}return s};l.sequenceConverter=function(r){return s=>{if(l.util.Type(s)!=="Object"){throw l.errors.exception({header:"Sequence",message:`Value of type ${l.util.Type(s)} is not an Object.`})}const i=s?.[Symbol.iterator]?.();const a=[];if(i===undefined||typeof i.next!=="function"){throw l.errors.exception({header:"Sequence",message:"Object is not an iterator."})}while(true){const{done:s,value:A}=i.next();if(s){break}a.push(r(A))}return a}};l.recordConverter=function(r,s){return i=>{if(l.util.Type(i)!=="Object"){throw l.errors.exception({header:"Record",message:`Value of type ${l.util.Type(i)} is not an Object.`})}const A={};if(!a.isProxy(i)){const a=Object.keys(i);for(const c of a){const a=r(c);const l=s(i[c]);A[a]=l}return A}const c=Reflect.ownKeys(i);for(const a of c){const c=Reflect.getOwnPropertyDescriptor(i,a);if(c?.enumerable){const c=r(a);const l=s(i[a]);A[c]=l}}return A}};l.interfaceConverter=function(r){return(s,i={})=>{if(i.strict!==false&&!(s instanceof r)){throw l.errors.exception({header:r.name,message:`Expected ${s} to be an instance of ${r.name}.`})}return s}};l.dictionaryConverter=function(r){return s=>{const i=l.util.Type(s);const a={};if(i==="Null"||i==="Undefined"){return a}else if(i!=="Object"){throw l.errors.exception({header:"Dictionary",message:`Expected ${s} to be one of: Null, Undefined, Object.`})}for(const i of r){const{key:r,defaultValue:c,required:d,converter:u}=i;if(d===true){if(!A(s,r)){throw l.errors.exception({header:"Dictionary",message:`Missing required key "${r}".`})}}let p=s[r];const g=A(i,"defaultValue");if(g&&p!==null){p=p??c}if(d||g||p!==undefined){p=u(p);if(i.allowedValues&&!i.allowedValues.includes(p)){throw l.errors.exception({header:"Dictionary",message:`${p} is not an accepted type. Expected one of ${i.allowedValues.join(", ")}.`})}a[r]=p}}return a}};l.nullableConverter=function(r){return s=>{if(s===null){return s}return r(s)}};l.converters.DOMString=function(r,s={}){if(r===null&&s.legacyNullToEmptyString){return""}if(typeof r==="symbol"){throw new TypeError("Could not convert argument of type symbol to string.")}return String(r)};l.converters.ByteString=function(r){const s=l.converters.DOMString(r);for(let r=0;r255){throw new TypeError("Cannot convert argument to a ByteString because the character at "+`index ${r} has a value of ${s.charCodeAt(r)} which is greater than 255.`)}}return s};l.converters.USVString=c;l.converters.boolean=function(r){const s=Boolean(r);return s};l.converters.any=function(r){return r};l.converters["long long"]=function(r){const s=l.util.ConvertToInt(r,64,"signed");return s};l.converters["unsigned long long"]=function(r){const s=l.util.ConvertToInt(r,64,"unsigned");return s};l.converters["unsigned long"]=function(r){const s=l.util.ConvertToInt(r,32,"unsigned");return s};l.converters["unsigned short"]=function(r,s){const i=l.util.ConvertToInt(r,16,"unsigned",s);return i};l.converters.ArrayBuffer=function(r,s={}){if(l.util.Type(r)!=="Object"||!a.isAnyArrayBuffer(r)){throw l.errors.conversionFailed({prefix:`${r}`,argument:`${r}`,types:["ArrayBuffer"]})}if(s.allowShared===false&&a.isSharedArrayBuffer(r)){throw l.errors.exception({header:"ArrayBuffer",message:"SharedArrayBuffer is not allowed."})}return r};l.converters.TypedArray=function(r,s,i={}){if(l.util.Type(r)!=="Object"||!a.isTypedArray(r)||r.constructor.name!==s.name){throw l.errors.conversionFailed({prefix:`${s.name}`,argument:`${r}`,types:[s.name]})}if(i.allowShared===false&&a.isSharedArrayBuffer(r.buffer)){throw l.errors.exception({header:"ArrayBuffer",message:"SharedArrayBuffer is not allowed."})}return r};l.converters.DataView=function(r,s={}){if(l.util.Type(r)!=="Object"||!a.isDataView(r)){throw l.errors.exception({header:"DataView",message:"Object is not a DataView."})}if(s.allowShared===false&&a.isSharedArrayBuffer(r.buffer)){throw l.errors.exception({header:"ArrayBuffer",message:"SharedArrayBuffer is not allowed."})}return r};l.converters.BufferSource=function(r,s={}){if(a.isAnyArrayBuffer(r)){return l.converters.ArrayBuffer(r,s)}if(a.isTypedArray(r)){return l.converters.TypedArray(r,r.constructor)}if(a.isDataView(r)){return l.converters.DataView(r,s)}throw new TypeError(`Could not convert ${r} to a BufferSource.`)};l.converters["sequence"]=l.sequenceConverter(l.converters.ByteString);l.converters["sequence>"]=l.sequenceConverter(l.converters["sequence"]);l.converters["record"]=l.recordConverter(l.converters.ByteString,l.converters.ByteString);r.exports={webidl:l}},86274:r=>{"use strict";function getEncoding(r){if(!r){return"failure"}switch(r.trim().toLowerCase()){case"unicode-1-1-utf-8":case"unicode11utf8":case"unicode20utf8":case"utf-8":case"utf8":case"x-unicode20utf8":return"UTF-8";case"866":case"cp866":case"csibm866":case"ibm866":return"IBM866";case"csisolatin2":case"iso-8859-2":case"iso-ir-101":case"iso8859-2":case"iso88592":case"iso_8859-2":case"iso_8859-2:1987":case"l2":case"latin2":return"ISO-8859-2";case"csisolatin3":case"iso-8859-3":case"iso-ir-109":case"iso8859-3":case"iso88593":case"iso_8859-3":case"iso_8859-3:1988":case"l3":case"latin3":return"ISO-8859-3";case"csisolatin4":case"iso-8859-4":case"iso-ir-110":case"iso8859-4":case"iso88594":case"iso_8859-4":case"iso_8859-4:1988":case"l4":case"latin4":return"ISO-8859-4";case"csisolatincyrillic":case"cyrillic":case"iso-8859-5":case"iso-ir-144":case"iso8859-5":case"iso88595":case"iso_8859-5":case"iso_8859-5:1988":return"ISO-8859-5";case"arabic":case"asmo-708":case"csiso88596e":case"csiso88596i":case"csisolatinarabic":case"ecma-114":case"iso-8859-6":case"iso-8859-6-e":case"iso-8859-6-i":case"iso-ir-127":case"iso8859-6":case"iso88596":case"iso_8859-6":case"iso_8859-6:1987":return"ISO-8859-6";case"csisolatingreek":case"ecma-118":case"elot_928":case"greek":case"greek8":case"iso-8859-7":case"iso-ir-126":case"iso8859-7":case"iso88597":case"iso_8859-7":case"iso_8859-7:1987":case"sun_eu_greek":return"ISO-8859-7";case"csiso88598e":case"csisolatinhebrew":case"hebrew":case"iso-8859-8":case"iso-8859-8-e":case"iso-ir-138":case"iso8859-8":case"iso88598":case"iso_8859-8":case"iso_8859-8:1988":case"visual":return"ISO-8859-8";case"csiso88598i":case"iso-8859-8-i":case"logical":return"ISO-8859-8-I";case"csisolatin6":case"iso-8859-10":case"iso-ir-157":case"iso8859-10":case"iso885910":case"l6":case"latin6":return"ISO-8859-10";case"iso-8859-13":case"iso8859-13":case"iso885913":return"ISO-8859-13";case"iso-8859-14":case"iso8859-14":case"iso885914":return"ISO-8859-14";case"csisolatin9":case"iso-8859-15":case"iso8859-15":case"iso885915":case"iso_8859-15":case"l9":return"ISO-8859-15";case"iso-8859-16":return"ISO-8859-16";case"cskoi8r":case"koi":case"koi8":case"koi8-r":case"koi8_r":return"KOI8-R";case"koi8-ru":case"koi8-u":return"KOI8-U";case"csmacintosh":case"mac":case"macintosh":case"x-mac-roman":return"macintosh";case"iso-8859-11":case"iso8859-11":case"iso885911":case"tis-620":case"windows-874":return"windows-874";case"cp1250":case"windows-1250":case"x-cp1250":return"windows-1250";case"cp1251":case"windows-1251":case"x-cp1251":return"windows-1251";case"ansi_x3.4-1968":case"ascii":case"cp1252":case"cp819":case"csisolatin1":case"ibm819":case"iso-8859-1":case"iso-ir-100":case"iso8859-1":case"iso88591":case"iso_8859-1":case"iso_8859-1:1987":case"l1":case"latin1":case"us-ascii":case"windows-1252":case"x-cp1252":return"windows-1252";case"cp1253":case"windows-1253":case"x-cp1253":return"windows-1253";case"cp1254":case"csisolatin5":case"iso-8859-9":case"iso-ir-148":case"iso8859-9":case"iso88599":case"iso_8859-9":case"iso_8859-9:1989":case"l5":case"latin5":case"windows-1254":case"x-cp1254":return"windows-1254";case"cp1255":case"windows-1255":case"x-cp1255":return"windows-1255";case"cp1256":case"windows-1256":case"x-cp1256":return"windows-1256";case"cp1257":case"windows-1257":case"x-cp1257":return"windows-1257";case"cp1258":case"windows-1258":case"x-cp1258":return"windows-1258";case"x-mac-cyrillic":case"x-mac-ukrainian":return"x-mac-cyrillic";case"chinese":case"csgb2312":case"csiso58gb231280":case"gb2312":case"gb_2312":case"gb_2312-80":case"gbk":case"iso-ir-58":case"x-gbk":return"GBK";case"gb18030":return"gb18030";case"big5":case"big5-hkscs":case"cn-big5":case"csbig5":case"x-x-big5":return"Big5";case"cseucpkdfmtjapanese":case"euc-jp":case"x-euc-jp":return"EUC-JP";case"csiso2022jp":case"iso-2022-jp":return"ISO-2022-JP";case"csshiftjis":case"ms932":case"ms_kanji":case"shift-jis":case"shift_jis":case"sjis":case"windows-31j":case"x-sjis":return"Shift_JIS";case"cseuckr":case"csksc56011987":case"euc-kr":case"iso-ir-149":case"korean":case"ks_c_5601-1987":case"ks_c_5601-1989":case"ksc5601":case"ksc_5601":case"windows-949":return"EUC-KR";case"csiso2022kr":case"hz-gb-2312":case"iso-2022-cn":case"iso-2022-cn-ext":case"iso-2022-kr":case"replacement":return"replacement";case"unicodefffe":case"utf-16be":return"UTF-16BE";case"csunicode":case"iso-10646-ucs-2":case"ucs-2":case"unicode":case"unicodefeff":case"utf-16":case"utf-16le":return"UTF-16LE";case"x-user-defined":return"x-user-defined";default:return"failure"}}r.exports={getEncoding:getEncoding}},88633:(r,s,i)=>{"use strict";const{staticPropertyDescriptors:a,readOperation:A,fireAProgressEvent:c}=i(3991);const{kState:l,kError:d,kResult:u,kEvents:p,kAborted:g}=i(52994);const{webidl:h}=i(79224);const{kEnumerableProperty:C}=i(55009);class FileReader extends EventTarget{constructor(){super();this[l]="empty";this[u]=null;this[d]=null;this[p]={loadend:null,error:null,abort:null,load:null,progress:null,loadstart:null}}readAsArrayBuffer(r){h.brandCheck(this,FileReader);h.argumentLengthCheck(arguments,1,{header:"FileReader.readAsArrayBuffer"});r=h.converters.Blob(r,{strict:false});A(this,r,"ArrayBuffer")}readAsBinaryString(r){h.brandCheck(this,FileReader);h.argumentLengthCheck(arguments,1,{header:"FileReader.readAsBinaryString"});r=h.converters.Blob(r,{strict:false});A(this,r,"BinaryString")}readAsText(r,s=undefined){h.brandCheck(this,FileReader);h.argumentLengthCheck(arguments,1,{header:"FileReader.readAsText"});r=h.converters.Blob(r,{strict:false});if(s!==undefined){s=h.converters.DOMString(s)}A(this,r,"Text",s)}readAsDataURL(r){h.brandCheck(this,FileReader);h.argumentLengthCheck(arguments,1,{header:"FileReader.readAsDataURL"});r=h.converters.Blob(r,{strict:false});A(this,r,"DataURL")}abort(){if(this[l]==="empty"||this[l]==="done"){this[u]=null;return}if(this[l]==="loading"){this[l]="done";this[u]=null}this[g]=true;c("abort",this);if(this[l]!=="loading"){c("loadend",this)}}get readyState(){h.brandCheck(this,FileReader);switch(this[l]){case"empty":return this.EMPTY;case"loading":return this.LOADING;case"done":return this.DONE}}get result(){h.brandCheck(this,FileReader);return this[u]}get error(){h.brandCheck(this,FileReader);return this[d]}get onloadend(){h.brandCheck(this,FileReader);return this[p].loadend}set onloadend(r){h.brandCheck(this,FileReader);if(this[p].loadend){this.removeEventListener("loadend",this[p].loadend)}if(typeof r==="function"){this[p].loadend=r;this.addEventListener("loadend",r)}else{this[p].loadend=null}}get onerror(){h.brandCheck(this,FileReader);return this[p].error}set onerror(r){h.brandCheck(this,FileReader);if(this[p].error){this.removeEventListener("error",this[p].error)}if(typeof r==="function"){this[p].error=r;this.addEventListener("error",r)}else{this[p].error=null}}get onloadstart(){h.brandCheck(this,FileReader);return this[p].loadstart}set onloadstart(r){h.brandCheck(this,FileReader);if(this[p].loadstart){this.removeEventListener("loadstart",this[p].loadstart)}if(typeof r==="function"){this[p].loadstart=r;this.addEventListener("loadstart",r)}else{this[p].loadstart=null}}get onprogress(){h.brandCheck(this,FileReader);return this[p].progress}set onprogress(r){h.brandCheck(this,FileReader);if(this[p].progress){this.removeEventListener("progress",this[p].progress)}if(typeof r==="function"){this[p].progress=r;this.addEventListener("progress",r)}else{this[p].progress=null}}get onload(){h.brandCheck(this,FileReader);return this[p].load}set onload(r){h.brandCheck(this,FileReader);if(this[p].load){this.removeEventListener("load",this[p].load)}if(typeof r==="function"){this[p].load=r;this.addEventListener("load",r)}else{this[p].load=null}}get onabort(){h.brandCheck(this,FileReader);return this[p].abort}set onabort(r){h.brandCheck(this,FileReader);if(this[p].abort){this.removeEventListener("abort",this[p].abort)}if(typeof r==="function"){this[p].abort=r;this.addEventListener("abort",r)}else{this[p].abort=null}}}FileReader.EMPTY=FileReader.prototype.EMPTY=0;FileReader.LOADING=FileReader.prototype.LOADING=1;FileReader.DONE=FileReader.prototype.DONE=2;Object.defineProperties(FileReader.prototype,{EMPTY:a,LOADING:a,DONE:a,readAsArrayBuffer:C,readAsBinaryString:C,readAsText:C,readAsDataURL:C,abort:C,readyState:C,result:C,error:C,onloadstart:C,onprogress:C,onload:C,onabort:C,onerror:C,onloadend:C,[Symbol.toStringTag]:{value:"FileReader",writable:false,enumerable:false,configurable:true}});Object.defineProperties(FileReader,{EMPTY:a,LOADING:a,DONE:a});r.exports={FileReader:FileReader}},33288:(r,s,i)=>{"use strict";const{webidl:a}=i(79224);const A=Symbol("ProgressEvent state");class ProgressEvent extends Event{constructor(r,s={}){r=a.converters.DOMString(r);s=a.converters.ProgressEventInit(s??{});super(r,s);this[A]={lengthComputable:s.lengthComputable,loaded:s.loaded,total:s.total}}get lengthComputable(){a.brandCheck(this,ProgressEvent);return this[A].lengthComputable}get loaded(){a.brandCheck(this,ProgressEvent);return this[A].loaded}get total(){a.brandCheck(this,ProgressEvent);return this[A].total}}a.converters.ProgressEventInit=a.dictionaryConverter([{key:"lengthComputable",converter:a.converters.boolean,defaultValue:false},{key:"loaded",converter:a.converters["unsigned long long"],defaultValue:0},{key:"total",converter:a.converters["unsigned long long"],defaultValue:0},{key:"bubbles",converter:a.converters.boolean,defaultValue:false},{key:"cancelable",converter:a.converters.boolean,defaultValue:false},{key:"composed",converter:a.converters.boolean,defaultValue:false}]);r.exports={ProgressEvent:ProgressEvent}},52994:r=>{"use strict";r.exports={kState:Symbol("FileReader state"),kResult:Symbol("FileReader result"),kError:Symbol("FileReader error"),kLastProgressEventFired:Symbol("FileReader last progress event fired timestamp"),kEvents:Symbol("FileReader events"),kAborted:Symbol("FileReader aborted")}},3991:(r,s,i)=>{"use strict";const{kState:a,kError:A,kResult:c,kAborted:l,kLastProgressEventFired:d}=i(52994);const{ProgressEvent:u}=i(33288);const{getEncoding:p}=i(86274);const{DOMException:g}=i(17026);const{serializeAMimeType:h,parseMIMEType:C}=i(88576);const{types:y}=i(73837);const{StringDecoder:I}=i(71576);const{btoa:B}=i(14300);const b={enumerable:true,writable:false,configurable:false};function readOperation(r,s,i,u){if(r[a]==="loading"){throw new g("Invalid state","InvalidStateError")}r[a]="loading";r[c]=null;r[A]=null;const p=s.stream();const h=p.getReader();const C=[];let I=h.read();let B=true;(async()=>{while(!r[l]){try{const{done:p,value:g}=await I;if(B&&!r[l]){queueMicrotask((()=>{fireAProgressEvent("loadstart",r)}))}B=false;if(!p&&y.isUint8Array(g)){C.push(g);if((r[d]===undefined||Date.now()-r[d]>=50)&&!r[l]){r[d]=Date.now();queueMicrotask((()=>{fireAProgressEvent("progress",r)}))}I=h.read()}else if(p){queueMicrotask((()=>{r[a]="done";try{const a=packageData(C,i,s.type,u);if(r[l]){return}r[c]=a;fireAProgressEvent("load",r)}catch(s){r[A]=s;fireAProgressEvent("error",r)}if(r[a]!=="loading"){fireAProgressEvent("loadend",r)}}));break}}catch(s){if(r[l]){return}queueMicrotask((()=>{r[a]="done";r[A]=s;fireAProgressEvent("error",r);if(r[a]!=="loading"){fireAProgressEvent("loadend",r)}}));break}}})()}function fireAProgressEvent(r,s){const i=new u(r,{bubbles:false,cancelable:false});s.dispatchEvent(i)}function packageData(r,s,i,a){switch(s){case"DataURL":{let s="data:";const a=C(i||"application/octet-stream");if(a!=="failure"){s+=h(a)}s+=";base64,";const A=new I("latin1");for(const i of r){s+=B(A.write(i))}s+=B(A.end());return s}case"Text":{let s="failure";if(a){s=p(a)}if(s==="failure"&&i){const r=C(i);if(r!=="failure"){s=p(r.parameters.get("charset"))}}if(s==="failure"){s="UTF-8"}return decode(r,s)}case"ArrayBuffer":{const s=combineByteSequences(r);return s.buffer}case"BinaryString":{let s="";const i=new I("latin1");for(const a of r){s+=i.write(a)}s+=i.end();return s}}}function decode(r,s){const i=combineByteSequences(r);const a=BOMSniffing(i);let A=0;if(a!==null){s=a;A=a==="UTF-8"?3:2}const c=i.slice(A);return new TextDecoder(s).decode(c)}function BOMSniffing(r){const[s,i,a]=r;if(s===239&&i===187&&a===191){return"UTF-8"}else if(s===254&&i===255){return"UTF-16BE"}else if(s===255&&i===254){return"UTF-16LE"}return null}function combineByteSequences(r){const s=r.reduce(((r,s)=>r+s.byteLength),0);let i=0;return r.reduce(((r,s)=>{r.set(s,i);i+=s.byteLength;return r}),new Uint8Array(s))}r.exports={staticPropertyDescriptors:b,readOperation:readOperation,fireAProgressEvent:fireAProgressEvent}},98412:(r,s,i)=>{"use strict";const a=Symbol.for("undici.globalDispatcher.1");const{InvalidArgumentError:A}=i(33219);const c=i(39200);if(getGlobalDispatcher()===undefined){setGlobalDispatcher(new c)}function setGlobalDispatcher(r){if(!r||typeof r.dispatch!=="function"){throw new A("Argument agent must implement Agent")}Object.defineProperty(globalThis,a,{value:r,writable:true,enumerable:false,configurable:false})}function getGlobalDispatcher(){return globalThis[a]}r.exports={setGlobalDispatcher:setGlobalDispatcher,getGlobalDispatcher:getGlobalDispatcher}},9317:r=>{"use strict";r.exports=class DecoratorHandler{constructor(r){this.handler=r}onConnect(...r){return this.handler.onConnect(...r)}onError(...r){return this.handler.onError(...r)}onUpgrade(...r){return this.handler.onUpgrade(...r)}onHeaders(...r){return this.handler.onHeaders(...r)}onData(...r){return this.handler.onData(...r)}onComplete(...r){return this.handler.onComplete(...r)}onBodySent(...r){return this.handler.onBodySent(...r)}}},7901:(r,s,i)=>{"use strict";const a=i(55009);const{kBodyUsed:A}=i(52418);const c=i(39491);const{InvalidArgumentError:l}=i(33219);const d=i(82361);const u=[300,301,302,303,307,308];const p=Symbol("body");class BodyAsyncIterable{constructor(r){this[p]=r;this[A]=false}async*[Symbol.asyncIterator](){c(!this[A],"disturbed");this[A]=true;yield*this[p]}}class RedirectHandler{constructor(r,s,i,u){if(s!=null&&(!Number.isInteger(s)||s<0)){throw new l("maxRedirections must be a positive number")}a.validateHandler(u,i.method,i.upgrade);this.dispatch=r;this.location=null;this.abort=null;this.opts={...i,maxRedirections:0};this.maxRedirections=s;this.handler=u;this.history=[];if(a.isStream(this.opts.body)){if(a.bodyLength(this.opts.body)===0){this.opts.body.on("data",(function(){c(false)}))}if(typeof this.opts.body.readableDidRead!=="boolean"){this.opts.body[A]=false;d.prototype.on.call(this.opts.body,"data",(function(){this[A]=true}))}}else if(this.opts.body&&typeof this.opts.body.pipeTo==="function"){this.opts.body=new BodyAsyncIterable(this.opts.body)}else if(this.opts.body&&typeof this.opts.body!=="string"&&!ArrayBuffer.isView(this.opts.body)&&a.isIterable(this.opts.body)){this.opts.body=new BodyAsyncIterable(this.opts.body)}}onConnect(r){this.abort=r;this.handler.onConnect(r,{history:this.history})}onUpgrade(r,s,i){this.handler.onUpgrade(r,s,i)}onError(r){this.handler.onError(r)}onHeaders(r,s,i,A){this.location=this.history.length>=this.maxRedirections||a.isDisturbed(this.opts.body)?null:parseLocation(r,s);if(this.opts.origin){this.history.push(new URL(this.opts.path,this.opts.origin))}if(!this.location){return this.handler.onHeaders(r,s,i,A)}const{origin:c,pathname:l,search:d}=a.parseURL(new URL(this.location,this.opts.origin&&new URL(this.opts.path,this.opts.origin)));const u=d?`${l}${d}`:l;this.opts.headers=cleanRequestHeaders(this.opts.headers,r===303,this.opts.origin!==c);this.opts.path=u;this.opts.origin=c;this.opts.maxRedirections=0;this.opts.query=null;if(r===303&&this.opts.method!=="HEAD"){this.opts.method="GET";this.opts.body=null}}onData(r){if(this.location){}else{return this.handler.onData(r)}}onComplete(r){if(this.location){this.location=null;this.abort=null;this.dispatch(this.opts,this)}else{this.handler.onComplete(r)}}onBodySent(r){if(this.handler.onBodySent){this.handler.onBodySent(r)}}}function parseLocation(r,s){if(u.indexOf(r)===-1){return null}for(let r=0;r{const a=i(39491);const{kRetryHandlerDefaultRetry:A}=i(52418);const{RequestRetryError:c}=i(33219);const{isDisturbed:l,parseHeaders:d,parseRangeHeader:u}=i(55009);function calculateRetryAfterHeader(r){const s=Date.now();const i=new Date(r).getTime()-s;return i}class RetryHandler{constructor(r,s){const{retryOptions:i,...a}=r;const{retry:c,maxRetries:l,maxTimeout:d,minTimeout:u,timeoutFactor:p,methods:g,errorCodes:h,retryAfter:C,statusCodes:y}=i??{};this.dispatch=s.dispatch;this.handler=s.handler;this.opts=a;this.abort=null;this.aborted=false;this.retryOpts={retry:c??RetryHandler[A],retryAfter:C??true,maxTimeout:d??30*1e3,timeout:u??500,timeoutFactor:p??2,maxRetries:l??5,methods:g??["GET","HEAD","OPTIONS","PUT","DELETE","TRACE"],statusCodes:y??[500,502,503,504,429],errorCodes:h??["ECONNRESET","ECONNREFUSED","ENOTFOUND","ENETDOWN","ENETUNREACH","EHOSTDOWN","EHOSTUNREACH","EPIPE"]};this.retryCount=0;this.start=0;this.end=null;this.etag=null;this.resume=null;this.handler.onConnect((r=>{this.aborted=true;if(this.abort){this.abort(r)}else{this.reason=r}}))}onRequestSent(){if(this.handler.onRequestSent){this.handler.onRequestSent()}}onUpgrade(r,s,i){if(this.handler.onUpgrade){this.handler.onUpgrade(r,s,i)}}onConnect(r){if(this.aborted){r(this.reason)}else{this.abort=r}}onBodySent(r){if(this.handler.onBodySent)return this.handler.onBodySent(r)}static[A](r,{state:s,opts:i},a){const{statusCode:A,code:c,headers:l}=r;const{method:d,retryOptions:u}=i;const{maxRetries:p,timeout:g,maxTimeout:h,timeoutFactor:C,statusCodes:y,errorCodes:I,methods:B}=u;let{counter:b,currentTimeout:Q}=s;Q=Q!=null&&Q>0?Q:g;if(c&&c!=="UND_ERR_REQ_RETRY"&&c!=="UND_ERR_SOCKET"&&!I.includes(c)){a(r);return}if(Array.isArray(B)&&!B.includes(d)){a(r);return}if(A!=null&&Array.isArray(y)&&!y.includes(A)){a(r);return}if(b>p){a(r);return}let w=l!=null&&l["retry-after"];if(w){w=Number(w);w=isNaN(w)?calculateRetryAfterHeader(w):w*1e3}const v=w>0?Math.min(w,h):Math.min(Q*C**b,h);s.currentTimeout=v;setTimeout((()=>a(null)),v)}onHeaders(r,s,i,A){const l=d(s);this.retryCount+=1;if(r>=300){this.abort(new c("Request failed",r,{headers:l,count:this.retryCount}));return false}if(this.resume!=null){this.resume=null;if(r!==206){return true}const s=u(l["content-range"]);if(!s){this.abort(new c("Content-Range mismatch",r,{headers:l,count:this.retryCount}));return false}if(this.etag!=null&&this.etag!==l.etag){this.abort(new c("ETag mismatch",r,{headers:l,count:this.retryCount}));return false}const{start:A,size:d,end:p=d}=s;a(this.start===A,"content-range mismatch");a(this.end==null||this.end===p,"content-range mismatch");this.resume=i;return true}if(this.end==null){if(r===206){const c=u(l["content-range"]);if(c==null){return this.handler.onHeaders(r,s,i,A)}const{start:d,size:p,end:g=p}=c;a(d!=null&&Number.isFinite(d)&&this.start!==d,"content-range mismatch");a(Number.isFinite(d));a(g!=null&&Number.isFinite(g)&&this.end!==g,"invalid content-length");this.start=d;this.end=g}if(this.end==null){const r=l["content-length"];this.end=r!=null?Number(r):null}a(Number.isFinite(this.start));a(this.end==null||Number.isFinite(this.end),"invalid content-length");this.resume=i;this.etag=l.etag!=null?l.etag:null;return this.handler.onHeaders(r,s,i,A)}const p=new c("Request failed",r,{headers:l,count:this.retryCount});this.abort(p);return false}onData(r){this.start+=r.length;return this.handler.onData(r)}onComplete(r){this.retryCount=0;return this.handler.onComplete(r)}onError(r){if(this.aborted||l(this.opts.body)){return this.handler.onError(r)}this.retryOpts.retry(r,{state:{counter:this.retryCount++,currentTimeout:this.retryAfter},opts:{retryOptions:this.retryOpts,...this.opts}},onRetry.bind(this));function onRetry(r){if(r!=null||this.aborted||l(this.opts.body)){return this.handler.onError(r)}if(this.start!==0){this.opts={...this.opts,headers:{...this.opts.headers,range:`bytes=${this.start}-${this.end??""}`}}}try{this.dispatch(this.opts,this)}catch(r){this.handler.onError(r)}}}}r.exports=RetryHandler},19363:(r,s,i)=>{"use strict";const a=i(7901);function createRedirectInterceptor({maxRedirections:r}){return s=>function Intercept(i,A){const{maxRedirections:c=r}=i;if(!c){return s(i,A)}const l=new a(s,c,i,A);i={...i,maxRedirections:0};return s(i,l)}}r.exports=createRedirectInterceptor},53768:(r,s,i)=>{"use strict";Object.defineProperty(s,"__esModule",{value:true});s.SPECIAL_HEADERS=s.HEADER_STATE=s.MINOR=s.MAJOR=s.CONNECTION_TOKEN_CHARS=s.HEADER_CHARS=s.TOKEN=s.STRICT_TOKEN=s.HEX=s.URL_CHAR=s.STRICT_URL_CHAR=s.USERINFO_CHARS=s.MARK=s.ALPHANUM=s.NUM=s.HEX_MAP=s.NUM_MAP=s.ALPHA=s.FINISH=s.H_METHOD_MAP=s.METHOD_MAP=s.METHODS_RTSP=s.METHODS_ICE=s.METHODS_HTTP=s.METHODS=s.LENIENT_FLAGS=s.FLAGS=s.TYPE=s.ERROR=void 0;const a=i(97792);var A;(function(r){r[r["OK"]=0]="OK";r[r["INTERNAL"]=1]="INTERNAL";r[r["STRICT"]=2]="STRICT";r[r["LF_EXPECTED"]=3]="LF_EXPECTED";r[r["UNEXPECTED_CONTENT_LENGTH"]=4]="UNEXPECTED_CONTENT_LENGTH";r[r["CLOSED_CONNECTION"]=5]="CLOSED_CONNECTION";r[r["INVALID_METHOD"]=6]="INVALID_METHOD";r[r["INVALID_URL"]=7]="INVALID_URL";r[r["INVALID_CONSTANT"]=8]="INVALID_CONSTANT";r[r["INVALID_VERSION"]=9]="INVALID_VERSION";r[r["INVALID_HEADER_TOKEN"]=10]="INVALID_HEADER_TOKEN";r[r["INVALID_CONTENT_LENGTH"]=11]="INVALID_CONTENT_LENGTH";r[r["INVALID_CHUNK_SIZE"]=12]="INVALID_CHUNK_SIZE";r[r["INVALID_STATUS"]=13]="INVALID_STATUS";r[r["INVALID_EOF_STATE"]=14]="INVALID_EOF_STATE";r[r["INVALID_TRANSFER_ENCODING"]=15]="INVALID_TRANSFER_ENCODING";r[r["CB_MESSAGE_BEGIN"]=16]="CB_MESSAGE_BEGIN";r[r["CB_HEADERS_COMPLETE"]=17]="CB_HEADERS_COMPLETE";r[r["CB_MESSAGE_COMPLETE"]=18]="CB_MESSAGE_COMPLETE";r[r["CB_CHUNK_HEADER"]=19]="CB_CHUNK_HEADER";r[r["CB_CHUNK_COMPLETE"]=20]="CB_CHUNK_COMPLETE";r[r["PAUSED"]=21]="PAUSED";r[r["PAUSED_UPGRADE"]=22]="PAUSED_UPGRADE";r[r["PAUSED_H2_UPGRADE"]=23]="PAUSED_H2_UPGRADE";r[r["USER"]=24]="USER"})(A=s.ERROR||(s.ERROR={}));var c;(function(r){r[r["BOTH"]=0]="BOTH";r[r["REQUEST"]=1]="REQUEST";r[r["RESPONSE"]=2]="RESPONSE"})(c=s.TYPE||(s.TYPE={}));var l;(function(r){r[r["CONNECTION_KEEP_ALIVE"]=1]="CONNECTION_KEEP_ALIVE";r[r["CONNECTION_CLOSE"]=2]="CONNECTION_CLOSE";r[r["CONNECTION_UPGRADE"]=4]="CONNECTION_UPGRADE";r[r["CHUNKED"]=8]="CHUNKED";r[r["UPGRADE"]=16]="UPGRADE";r[r["CONTENT_LENGTH"]=32]="CONTENT_LENGTH";r[r["SKIPBODY"]=64]="SKIPBODY";r[r["TRAILING"]=128]="TRAILING";r[r["TRANSFER_ENCODING"]=512]="TRANSFER_ENCODING"})(l=s.FLAGS||(s.FLAGS={}));var d;(function(r){r[r["HEADERS"]=1]="HEADERS";r[r["CHUNKED_LENGTH"]=2]="CHUNKED_LENGTH";r[r["KEEP_ALIVE"]=4]="KEEP_ALIVE"})(d=s.LENIENT_FLAGS||(s.LENIENT_FLAGS={}));var u;(function(r){r[r["DELETE"]=0]="DELETE";r[r["GET"]=1]="GET";r[r["HEAD"]=2]="HEAD";r[r["POST"]=3]="POST";r[r["PUT"]=4]="PUT";r[r["CONNECT"]=5]="CONNECT";r[r["OPTIONS"]=6]="OPTIONS";r[r["TRACE"]=7]="TRACE";r[r["COPY"]=8]="COPY";r[r["LOCK"]=9]="LOCK";r[r["MKCOL"]=10]="MKCOL";r[r["MOVE"]=11]="MOVE";r[r["PROPFIND"]=12]="PROPFIND";r[r["PROPPATCH"]=13]="PROPPATCH";r[r["SEARCH"]=14]="SEARCH";r[r["UNLOCK"]=15]="UNLOCK";r[r["BIND"]=16]="BIND";r[r["REBIND"]=17]="REBIND";r[r["UNBIND"]=18]="UNBIND";r[r["ACL"]=19]="ACL";r[r["REPORT"]=20]="REPORT";r[r["MKACTIVITY"]=21]="MKACTIVITY";r[r["CHECKOUT"]=22]="CHECKOUT";r[r["MERGE"]=23]="MERGE";r[r["M-SEARCH"]=24]="M-SEARCH";r[r["NOTIFY"]=25]="NOTIFY";r[r["SUBSCRIBE"]=26]="SUBSCRIBE";r[r["UNSUBSCRIBE"]=27]="UNSUBSCRIBE";r[r["PATCH"]=28]="PATCH";r[r["PURGE"]=29]="PURGE";r[r["MKCALENDAR"]=30]="MKCALENDAR";r[r["LINK"]=31]="LINK";r[r["UNLINK"]=32]="UNLINK";r[r["SOURCE"]=33]="SOURCE";r[r["PRI"]=34]="PRI";r[r["DESCRIBE"]=35]="DESCRIBE";r[r["ANNOUNCE"]=36]="ANNOUNCE";r[r["SETUP"]=37]="SETUP";r[r["PLAY"]=38]="PLAY";r[r["PAUSE"]=39]="PAUSE";r[r["TEARDOWN"]=40]="TEARDOWN";r[r["GET_PARAMETER"]=41]="GET_PARAMETER";r[r["SET_PARAMETER"]=42]="SET_PARAMETER";r[r["REDIRECT"]=43]="REDIRECT";r[r["RECORD"]=44]="RECORD";r[r["FLUSH"]=45]="FLUSH"})(u=s.METHODS||(s.METHODS={}));s.METHODS_HTTP=[u.DELETE,u.GET,u.HEAD,u.POST,u.PUT,u.CONNECT,u.OPTIONS,u.TRACE,u.COPY,u.LOCK,u.MKCOL,u.MOVE,u.PROPFIND,u.PROPPATCH,u.SEARCH,u.UNLOCK,u.BIND,u.REBIND,u.UNBIND,u.ACL,u.REPORT,u.MKACTIVITY,u.CHECKOUT,u.MERGE,u["M-SEARCH"],u.NOTIFY,u.SUBSCRIBE,u.UNSUBSCRIBE,u.PATCH,u.PURGE,u.MKCALENDAR,u.LINK,u.UNLINK,u.PRI,u.SOURCE];s.METHODS_ICE=[u.SOURCE];s.METHODS_RTSP=[u.OPTIONS,u.DESCRIBE,u.ANNOUNCE,u.SETUP,u.PLAY,u.PAUSE,u.TEARDOWN,u.GET_PARAMETER,u.SET_PARAMETER,u.REDIRECT,u.RECORD,u.FLUSH,u.GET,u.POST];s.METHOD_MAP=a.enumToMap(u);s.H_METHOD_MAP={};Object.keys(s.METHOD_MAP).forEach((r=>{if(/^H/.test(r)){s.H_METHOD_MAP[r]=s.METHOD_MAP[r]}}));var p;(function(r){r[r["SAFE"]=0]="SAFE";r[r["SAFE_WITH_CB"]=1]="SAFE_WITH_CB";r[r["UNSAFE"]=2]="UNSAFE"})(p=s.FINISH||(s.FINISH={}));s.ALPHA=[];for(let r="A".charCodeAt(0);r<="Z".charCodeAt(0);r++){s.ALPHA.push(String.fromCharCode(r));s.ALPHA.push(String.fromCharCode(r+32))}s.NUM_MAP={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9};s.HEX_MAP={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15};s.NUM=["0","1","2","3","4","5","6","7","8","9"];s.ALPHANUM=s.ALPHA.concat(s.NUM);s.MARK=["-","_",".","!","~","*","'","(",")"];s.USERINFO_CHARS=s.ALPHANUM.concat(s.MARK).concat(["%",";",":","&","=","+","$",","]);s.STRICT_URL_CHAR=["!",'"',"$","%","&","'","(",")","*","+",",","-",".","/",":",";","<","=",">","@","[","\\","]","^","_","`","{","|","}","~"].concat(s.ALPHANUM);s.URL_CHAR=s.STRICT_URL_CHAR.concat(["\t","\f"]);for(let r=128;r<=255;r++){s.URL_CHAR.push(r)}s.HEX=s.NUM.concat(["a","b","c","d","e","f","A","B","C","D","E","F"]);s.STRICT_TOKEN=["!","#","$","%","&","'","*","+","-",".","^","_","`","|","~"].concat(s.ALPHANUM);s.TOKEN=s.STRICT_TOKEN.concat([" "]);s.HEADER_CHARS=["\t"];for(let r=32;r<=255;r++){if(r!==127){s.HEADER_CHARS.push(r)}}s.CONNECTION_TOKEN_CHARS=s.HEADER_CHARS.filter((r=>r!==44));s.MAJOR=s.NUM_MAP;s.MINOR=s.MAJOR;var g;(function(r){r[r["GENERAL"]=0]="GENERAL";r[r["CONNECTION"]=1]="CONNECTION";r[r["CONTENT_LENGTH"]=2]="CONTENT_LENGTH";r[r["TRANSFER_ENCODING"]=3]="TRANSFER_ENCODING";r[r["UPGRADE"]=4]="UPGRADE";r[r["CONNECTION_KEEP_ALIVE"]=5]="CONNECTION_KEEP_ALIVE";r[r["CONNECTION_CLOSE"]=6]="CONNECTION_CLOSE";r[r["CONNECTION_UPGRADE"]=7]="CONNECTION_UPGRADE";r[r["TRANSFER_ENCODING_CHUNKED"]=8]="TRANSFER_ENCODING_CHUNKED"})(g=s.HEADER_STATE||(s.HEADER_STATE={}));s.SPECIAL_HEADERS={connection:g.CONNECTION,"content-length":g.CONTENT_LENGTH,"proxy-connection":g.CONNECTION,"transfer-encoding":g.TRANSFER_ENCODING,upgrade:g.UPGRADE}},22155:r=>{r.exports="AGFzbQEAAAABMAhgAX8Bf2ADf39/AX9gBH9/f38Bf2AAAGADf39/AGABfwBgAn9/AGAGf39/f39/AALLAQgDZW52GHdhc21fb25faGVhZGVyc19jb21wbGV0ZQACA2VudhV3YXNtX29uX21lc3NhZ2VfYmVnaW4AAANlbnYLd2FzbV9vbl91cmwAAQNlbnYOd2FzbV9vbl9zdGF0dXMAAQNlbnYUd2FzbV9vbl9oZWFkZXJfZmllbGQAAQNlbnYUd2FzbV9vbl9oZWFkZXJfdmFsdWUAAQNlbnYMd2FzbV9vbl9ib2R5AAEDZW52GHdhc21fb25fbWVzc2FnZV9jb21wbGV0ZQAAA0ZFAwMEAAAFAAAAAAAABQEFAAUFBQAABgAAAAAGBgYGAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQABAAABAQcAAAUFAwABBAUBcAESEgUDAQACBggBfwFBgNQECwfRBSIGbWVtb3J5AgALX2luaXRpYWxpemUACRlfX2luZGlyZWN0X2Z1bmN0aW9uX3RhYmxlAQALbGxodHRwX2luaXQAChhsbGh0dHBfc2hvdWxkX2tlZXBfYWxpdmUAQQxsbGh0dHBfYWxsb2MADAZtYWxsb2MARgtsbGh0dHBfZnJlZQANBGZyZWUASA9sbGh0dHBfZ2V0X3R5cGUADhVsbGh0dHBfZ2V0X2h0dHBfbWFqb3IADxVsbGh0dH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AwAgAEHdATYCHEEAC3sBAX8CQCAAKAIMIgMNAAJAIAAoAgRFDQAgACABNgIECwJAIAAgASACEMSAgIAAIgMNACAAKAIMDwsgACADNgIcQQAhAyAAKAIEIgFFDQAgACABIAIgACgCCBGBgICAAAAiAUUNACAAIAI2AhQgACABNgIMIAEhAwsgAwvk8wEDDn8DfgR/I4CAgIAAQRBrIgMkgICAgAAgASEEIAEhBSABIQYgASEHIAEhCCABIQkgASEKIAEhCyABIQwgASENIAEhDiABIQ8CQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkAgACgCHCIQQX9qDt0B2gEB2QECAwQFBgcICQoLDA0O2AEPENcBERLWARMUFRYXGBkaG+AB3wEcHR7VAR8gISIjJCXUASYnKCkqKyzTAdIBLS7RAdABLzAxMjM0NTY3ODk6Ozw9Pj9AQUJDREVG2wFHSElKzwHOAUvNAUzMAU1OT1BRUlNUVVZXWFlaW1xdXl9gYWJjZGVmZ2hpamtsbW5vcHFyc3R1dnd4eXp7fH1+f4ABgQGCAYMBhAGF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EAwRC0GyASEQDBALQbQBIRAMDwtBtQEhEAwOC0G2ASEQDA0LQbcBIRAMDAtBuAEhEAwLC0G5ASEQDAoLQboBIRAMCQtBuwEhEAwIC0HGASEQDAcLQbwBIRAMBgtBvQEhEAwFC0G+ASEQDAQLQb8BIRAMAwtBwAEhEAwCC0HCASEQDAELQcEBIRALA0ACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJ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IgIAANgIQIABBBzYCDEEAIRAMqwELIBBBP0cNASABQQFqIQELQQUhEAyQAQtBACEQIABBADYCHCAAIAE2AhQgAEH9koCAADYCECAAQQc2AgwMqAELIAAoAgQhECAAQQA2AgQCQCAAIBAgARCngICAACIQDQAgASEBDEILIABB0gA2AhwgACABNgIUIAAgEDYCDEEAIRAMpwELIAAoAgQhECAAQQA2AgQCQCAAIBAgARCngICAACIQDQAgASEBDEILIABB0wA2AhwgACABNgIUIAAgEDYCDEEAIRAMpgELIAAoAgQhECAAQQA2AgQCQCAAIBAgARCngICAACIQDQAgASEBDEYLIABB5QA2AhwgACABNgIUIAAgEDYCDEEAIRAMpQELIAAoAgQhASAAQQA2AgQCQCAAIAEgFBCngICAACIBDQAgFCEBDD8LIABB0gA2AhwgACAUNgIUIAAgATYCDEEAIRAMpAELIAAoAgQhASAAQQA2AgQCQCAAIAEgFBCngICAACIBDQAgFCEBDD8LIABB0wA2AhwgACAUNgIUIAAgATYCDEEAIRAMowELIAAoAgQhASAAQQA2AgQCQCAAIAEgFBCngICAACIBDQAgFCEBDEMLIABB5QA2AhwgACAUNgIUIAAgATYCDEEAIRAMogELIABBADYCHCAAIBQ2AhQgAEHDj4CAADYCECAAQQc2AgxBACEQDKEBCyAAQQA2AhwgACABNgIUIABBw4+AgAA2AhAgAEEHNgIMQQAhEAygAQtBACEQIABBADYCHCAAIBQ2AhQgAEGMnICAADYCECAAQQc2AgwMnwELIABBADYCHCAAIBQ2AhQgAEGMnICAADYCECAAQQc2AgxBACEQDJ4BCyAAQQA2AhwgACAUNgIUIABB/pGAgAA2AhAgAEEHNgIMQQAhEAydAQsgAEEANgIcIAAgATYCFCAAQY6bgIAANgIQIABBBjYCDEEAIRAMnAELIBBBFUYNVyAAQQA2AhwgACABNgIUIABBzI6AgAA2AhAgAEEgNgIMQQAhEAybAQsgAEEANgIAIBBBAWohAUEkIRALIAAgEDoAKSAAKAIEIRAgAEEANgIEIAAgECABEKuAgIAAIhANVCABIQEMPgsg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QAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAIBAOxwEAAQIDBAUGBwgJCgsMDQ4PEBESExQVFhcYGRobHB4fICEjJSg/QEFERUZHSElKS0xNT1BRUlPeA1dZW1xdYGJlZmdoaWprbG1vcHFyc3R1dnd4eXp7fH1+gAGCAYUBhgGHAYkBiwGM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LIABB0gA2AhwgACABNgIUIAAgEDYCDEEAIRAMsgELIAAoAgQhECAAQQA2AgQCQCAAIBAgARCngICAACIQDQAgASEBDE0LIABB0wA2AhwgACABNgIUIAAgEDYCDEEAIRAMsQELIAAoAgQhECAAQQA2AgQCQCAAIBAgARCngICAACIQDQAgASEBDFELIABB5QA2AhwgACABNgIUIAAgEDYCDEEAIRAMsAELIABBADYCHCAAIAE2AhQgAEHGioCAADYCECAAQQc2AgxBACEQDK8BCyAAKAIEIRAgAEEANgIEAkAgACAQIAEQp4CAgAAiEA0AIAEhAQxJCyAAQdIANgIcIAAgATYCFCAAIBA2AgxBACEQDK4BCyAAKAIEIRAgAEEANgIEAkAgACAQIAEQp4CAgAAiEA0AIAEhAQxJCyAAQdMANgIcIAAgATYCFCAAIBA2AgxBACEQDK0BCyAAKAIEIRAgAEEANgIEAkAgACAQIAEQp4CAgAAiEA0AIAEhAQxNCyAAQeUANgIcIAAgATYCFCAAIBA2AgxBACEQDKwBCyAAQQA2AhwgACABNgIUIABB3IiAgAA2AhAgAEEHNgIMQQAhEAyrAQsgEEE/Rw0BIAFBAWohAQtBBSEQDJABC0EAIRAgAEEANgIcIAAgATYCFCAAQf2SgIAANgIQIABBBzYCDAyoAQsgACgCBCEQIABBADYCBAJAIAAgECABEKeAgIAAIhANACABIQEMQgsgAEHSADYCHCAAIAE2AhQgACAQNgIMQQAhEAynAQsgACgCBCEQIABBADYCBAJAIAAgECABEKeAgIAAIhANACABIQEMQgsgAEHTADYCHCAAIAE2AhQgACAQNgIMQQAhEAymAQsgACgCBCEQIABBADYCBAJAIAAgECABEKeAgIAAIhANACABIQEMRgsgAEHlADYCHCAAIAE2AhQgACAQNgIMQQAhEAylAQsgACgCBCEBIABBADYCBAJAIAAgASAUEKeAgIAAIgENACAUIQEMPwsgAEHSADYCHCAAIBQ2AhQgACABNgIMQQAhEAykAQsgACgCBCEBIABBADYCBAJAIAAgASAUEKeAgIAAIgENACAUIQEMPwsgAEHTADYCHCAAIB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AAAAAAAAgAAAAACAAAAAAAAAAAAAAAAAAAAAAADAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwAAAAAAAAMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAE5PVU5DRUVDS09VVE5FQ1RFVEVDUklCRUxVU0hFVEVBRFNFQVJDSFJHRUNUSVZJVFlMRU5EQVJWRU9USUZZUFRJT05TQ0hTRUFZU1RBVENIR0VPUkRJUkVDVE9SVFJDSFBBUkFNRVRFUlVSQ0VCU0NSSUJFQVJET1dOQUNFSU5ETktDS1VCU0NSSUJFSFRUUC9BRFRQLw=="},97792:(r,s)=>{"use strict";Object.defineProperty(s,"__esModule",{value:true});s.enumToMap=void 0;function enumToMap(r){const s={};Object.keys(r).forEach((i=>{const a=r[i];if(typeof a==="number"){s[i]=a}}));return s}s.enumToMap=enumToMap},56231:(r,s,i)=>{"use strict";const{kClients:a}=i(52418);const A=i(39200);const{kAgent:c,kMockAgentSet:l,kMockAgentGet:d,kDispatches:u,kIsMockActive:p,kNetConnect:g,kGetNetConnect:h,kOptions:C,kFactory:y}=i(898);const I=i(16964);const B=i(53857);const{matchValue:b,buildMockOptions:Q}=i(56795);const{InvalidArgumentError:w,UndiciError:v}=i(33219);const S=i(91187);const R=i(19193);const N=i(42428);class FakeWeakRef{constructor(r){this.value=r}deref(){return this.value}}class MockAgent extends S{constructor(r){super(r);this[g]=true;this[p]=true;if(r&&r.agent&&typeof r.agent.dispatch!=="function"){throw new w("Argument opts.agent must implement Agent")}const s=r&&r.agent?r.agent:new A(r);this[c]=s;this[a]=s[a];this[C]=Q(r)}get(r){let s=this[d](r);if(!s){s=this[y](r);this[l](r,s)}return s}dispatch(r,s){this.get(r.origin);return this[c].dispatch(r,s)}async close(){await this[c].close();this[a].clear()}deactivate(){this[p]=false}activate(){this[p]=true}enableNetConnect(r){if(typeof r==="string"||typeof r==="function"||r instanceof RegExp){if(Array.isArray(this[g])){this[g].push(r)}else{this[g]=[r]}}else if(typeof r==="undefined"){this[g]=true}else{throw new w("Unsupported matcher. Must be one of String|Function|RegExp.")}}disableNetConnect(){this[g]=false}get isMockActive(){return this[p]}[l](r,s){this[a].set(r,new FakeWeakRef(s))}[y](r){const s=Object.assign({agent:this},this[C]);return this[C]&&this[C].connections===1?new I(r,s):new B(r,s)}[d](r){const s=this[a].get(r);if(s){return s.deref()}if(typeof r!=="string"){const s=this[y]("http://localhost:9999");this[l](r,s);return s}for(const[s,i]of Array.from(this[a])){const a=i.deref();if(a&&typeof s!=="string"&&b(s,r)){const s=this[y](r);this[l](r,s);s[u]=a[u];return s}}}[h](){return this[g]}pendingInterceptors(){const r=this[a];return Array.from(r.entries()).flatMap((([r,s])=>s.deref()[u].map((s=>({...s,origin:r}))))).filter((({pending:r})=>r))}assertNoPendingInterceptors({pendingInterceptorsFormatter:r=new N}={}){const s=this.pendingInterceptors();if(s.length===0){return}const i=new R("interceptor","interceptors").pluralize(s.length);throw new v(`\n${i.count} ${i.noun} ${i.is} pending:\n\n${r.format(s)}\n`.trim())}}r.exports=MockAgent},16964:(r,s,i)=>{"use strict";const{promisify:a}=i(73837);const A=i(19128);const{buildMockDispatch:c}=i(56795);const{kDispatches:l,kMockAgent:d,kClose:u,kOriginalClose:p,kOrigin:g,kOriginalDispatch:h,kConnected:C}=i(898);const{MockInterceptor:y}=i(94488);const I=i(52418);const{InvalidArgumentError:B}=i(33219);class MockClient extends A{constructor(r,s){super(r,s);if(!s||!s.agent||typeof s.agent.dispatch!=="function"){throw new B("Argument opts.agent must implement Agent")}this[d]=s.agent;this[g]=r;this[l]=[];this[C]=1;this[h]=this.dispatch;this[p]=this.close.bind(this);this.dispatch=c.call(this);this.close=this[u]}get[I.kConnected](){return this[C]}intercept(r){return new y(r,this[l])}async[u](){await a(this[p])();this[C]=0;this[d][I.kClients].delete(this[g])}}r.exports=MockClient},53298:(r,s,i)=>{"use strict";const{UndiciError:a}=i(33219);class MockNotMatchedError extends a{constructor(r){super(r);Error.captureStackTrace(this,MockNotMatchedError);this.name="MockNotMatchedError";this.message=r||"The request does not match any registered mock dispatches";this.code="UND_MOCK_ERR_MOCK_NOT_MATCHED"}}r.exports={MockNotMatchedError:MockNotMatchedError}},94488:(r,s,i)=>{"use strict";const{getResponseData:a,buildKey:A,addMockDispatch:c}=i(56795);const{kDispatches:l,kDispatchKey:d,kDefaultHeaders:u,kDefaultTrailers:p,kContentLength:g,kMockDispatch:h}=i(898);const{InvalidArgumentError:C}=i(33219);const{buildURL:y}=i(55009);class MockScope{constructor(r){this[h]=r}delay(r){if(typeof r!=="number"||!Number.isInteger(r)||r<=0){throw new C("waitInMs must be a valid integer > 0")}this[h].delay=r;return this}persist(){this[h].persist=true;return this}times(r){if(typeof r!=="number"||!Number.isInteger(r)||r<=0){throw new C("repeatTimes must be a valid integer > 0")}this[h].times=r;return this}}class MockInterceptor{constructor(r,s){if(typeof r!=="object"){throw new C("opts must be an object")}if(typeof r.path==="undefined"){throw new C("opts.path must be defined")}if(typeof r.method==="undefined"){r.method="GET"}if(typeof r.path==="string"){if(r.query){r.path=y(r.path,r.query)}else{const s=new URL(r.path,"data://");r.path=s.pathname+s.search}}if(typeof r.method==="string"){r.method=r.method.toUpperCase()}this[d]=A(r);this[l]=s;this[u]={};this[p]={};this[g]=false}createMockScopeDispatchData(r,s,i={}){const A=a(s);const c=this[g]?{"content-length":A.length}:{};const l={...this[u],...c,...i.headers};const d={...this[p],...i.trailers};return{statusCode:r,data:s,headers:l,trailers:d}}validateReplyParameters(r,s,i){if(typeof r==="undefined"){throw new C("statusCode must be defined")}if(typeof s==="undefined"){throw new C("data must be defined")}if(typeof i!=="object"){throw new C("responseOptions must be an object")}}reply(r){if(typeof r==="function"){const wrappedDefaultsCallback=s=>{const i=r(s);if(typeof i!=="object"){throw new C("reply options callback must return an object")}const{statusCode:a,data:A="",responseOptions:c={}}=i;this.validateReplyParameters(a,A,c);return{...this.createMockScopeDispatchData(a,A,c)}};const s=c(this[l],this[d],wrappedDefaultsCallback);return new MockScope(s)}const[s,i="",a={}]=[...arguments];this.validateReplyParameters(s,i,a);const A=this.createMockScopeDispatchData(s,i,a);const u=c(this[l],this[d],A);return new MockScope(u)}replyWithError(r){if(typeof r==="undefined"){throw new C("error must be defined")}const s=c(this[l],this[d],{error:r});return new MockScope(s)}defaultReplyHeaders(r){if(typeof r==="undefined"){throw new C("headers must be defined")}this[u]=r;return this}defaultReplyTrailers(r){if(typeof r==="undefined"){throw new C("trailers must be defined")}this[p]=r;return this}replyContentLength(){this[g]=true;return this}}r.exports.MockInterceptor=MockInterceptor;r.exports.MockScope=MockScope},53857:(r,s,i)=>{"use strict";const{promisify:a}=i(73837);const A=i(21851);const{buildMockDispatch:c}=i(56795);const{kDispatches:l,kMockAgent:d,kClose:u,kOriginalClose:p,kOrigin:g,kOriginalDispatch:h,kConnected:C}=i(898);const{MockInterceptor:y}=i(94488);const I=i(52418);const{InvalidArgumentError:B}=i(33219);class MockPool extends A{constructor(r,s){super(r,s);if(!s||!s.agent||typeof s.agent.dispatch!=="function"){throw new B("Argument opts.agent must implement Agent")}this[d]=s.agent;this[g]=r;this[l]=[];this[C]=1;this[h]=this.dispatch;this[p]=this.close.bind(this);this.dispatch=c.call(this);this.close=this[u]}get[I.kConnected](){return this[C]}intercept(r){return new y(r,this[l])}async[u](){await a(this[p])();this[C]=0;this[d][I.kClients].delete(this[g])}}r.exports=MockPool},898:r=>{"use strict";r.exports={kAgent:Symbol("agent"),kOptions:Symbol("options"),kFactory:Symbol("factory"),kDispatches:Symbol("dispatches"),kDispatchKey:Symbol("dispatch key"),kDefaultHeaders:Symbol("default headers"),kDefaultTrailers:Symbol("default trailers"),kContentLength:Symbol("content length"),kMockAgent:Symbol("mock agent"),kMockAgentSet:Symbol("mock agent set"),kMockAgentGet:Symbol("mock agent get"),kMockDispatch:Symbol("mock dispatch"),kClose:Symbol("close"),kOriginalClose:Symbol("original agent close"),kOrigin:Symbol("origin"),kIsMockActive:Symbol("is mock active"),kNetConnect:Symbol("net connect"),kGetNetConnect:Symbol("get net connect"),kConnected:Symbol("connected")}},56795:(r,s,i)=>{"use strict";const{MockNotMatchedError:a}=i(53298);const{kDispatches:A,kMockAgent:c,kOriginalDispatch:l,kOrigin:d,kGetNetConnect:u}=i(898);const{buildURL:p,nop:g}=i(55009);const{STATUS_CODES:h}=i(13685);const{types:{isPromise:C}}=i(73837);function matchValue(r,s){if(typeof r==="string"){return r===s}if(r instanceof RegExp){return r.test(s)}if(typeof r==="function"){return r(s)===true}return false}function lowerCaseEntries(r){return Object.fromEntries(Object.entries(r).map((([r,s])=>[r.toLocaleLowerCase(),s])))}function getHeaderByName(r,s){if(Array.isArray(r)){for(let i=0;i!r)).filter((({path:r})=>matchValue(safeUrl(r),A)));if(c.length===0){throw new a(`Mock dispatch not matched for path '${A}'`)}c=c.filter((({method:r})=>matchValue(r,s.method)));if(c.length===0){throw new a(`Mock dispatch not matched for method '${s.method}'`)}c=c.filter((({body:r})=>typeof r!=="undefined"?matchValue(r,s.body):true));if(c.length===0){throw new a(`Mock dispatch not matched for body '${s.body}'`)}c=c.filter((r=>matchHeaders(r,s.headers)));if(c.length===0){throw new a(`Mock dispatch not matched for headers '${typeof s.headers==="object"?JSON.stringify(s.headers):s.headers}'`)}return c[0]}function addMockDispatch(r,s,i){const a={timesInvoked:0,times:1,persist:false,consumed:false};const A=typeof i==="function"?{callback:i}:{...i};const c={...a,...s,pending:true,data:{error:null,...A}};r.push(c);return c}function deleteMockDispatch(r,s){const i=r.findIndex((r=>{if(!r.consumed){return false}return matchKey(r,s)}));if(i!==-1){r.splice(i,1)}}function buildKey(r){const{path:s,method:i,body:a,headers:A,query:c}=r;return{path:s,method:i,body:a,headers:A,query:c}}function generateKeyValues(r){return Object.entries(r).reduce(((r,[s,i])=>[...r,Buffer.from(`${s}`),Array.isArray(i)?i.map((r=>Buffer.from(`${r}`))):Buffer.from(`${i}`)]),[])}function getStatusText(r){return h[r]||"unknown"}async function getResponse(r){const s=[];for await(const i of r){s.push(i)}return Buffer.concat(s).toString("utf8")}function mockDispatch(r,s){const i=buildKey(r);const a=getMockDispatch(this[A],i);a.timesInvoked++;if(a.data.callback){a.data={...a.data,...a.data.callback(r)}}const{data:{statusCode:c,data:l,headers:d,trailers:u,error:p},delay:h,persist:y}=a;const{timesInvoked:I,times:B}=a;a.consumed=!y&&I>=B;a.pending=I0){setTimeout((()=>{handleReply(this[A])}),h)}else{handleReply(this[A])}function handleReply(a,A=l){const p=Array.isArray(r.headers)?buildHeadersFromArray(r.headers):r.headers;const h=typeof A==="function"?A({...r,headers:p}):A;if(C(h)){h.then((r=>handleReply(a,r)));return}const y=getResponseData(h);const I=generateKeyValues(d);const B=generateKeyValues(u);s.abort=g;s.onHeaders(c,I,resume,getStatusText(c));s.onData(Buffer.from(y));s.onComplete(B);deleteMockDispatch(a,i)}function resume(){}return true}function buildMockDispatch(){const r=this[c];const s=this[d];const i=this[l];return function dispatch(A,c){if(r.isMockActive){try{mockDispatch.call(this,A,c)}catch(l){if(l instanceof a){const d=r[u]();if(d===false){throw new a(`${l.message}: subsequent request to origin ${s} was not allowed (net.connect disabled)`)}if(checkNetConnect(d,s)){i.call(this,A,c)}else{throw new a(`${l.message}: subsequent request to origin ${s} was not allowed (net.connect is not enabled for this origin)`)}}else{throw l}}}else{i.call(this,A,c)}}}function checkNetConnect(r,s){const i=new URL(s);if(r===true){return true}else if(Array.isArray(r)&&r.some((r=>matchValue(r,i.host)))){return true}return false}function buildMockOptions(r){if(r){const{agent:s,...i}=r;return i}}r.exports={getResponseData:getResponseData,getMockDispatch:getMockDispatch,addMockDispatch:addMockDispatch,deleteMockDispatch:deleteMockDispatch,buildKey:buildKey,generateKeyValues:generateKeyValues,matchValue:matchValue,getResponse:getResponse,getStatusText:getStatusText,mockDispatch:mockDispatch,buildMockDispatch:buildMockDispatch,checkNetConnect:checkNetConnect,buildMockOptions:buildMockOptions,getHeaderByName:getHeaderByName}},42428:(r,s,i)=>{"use strict";const{Transform:a}=i(12781);const{Console:A}=i(96206);r.exports=class PendingInterceptorsFormatter{constructor({disableColors:r}={}){this.transform=new a({transform(r,s,i){i(null,r)}});this.logger=new A({stdout:this.transform,inspectOptions:{colors:!r&&!process.env.CI}})}format(r){const s=r.map((({method:r,path:s,data:{statusCode:i},persist:a,times:A,timesInvoked:c,origin:l})=>({Method:r,Origin:l,Path:s,"Status code":i,Persistent:a?"✅":"❌",Invocations:c,Remaining:a?Infinity:A-c})));this.logger.table(s);return this.transform.read().toString()}}},19193:r=>{"use strict";const s={pronoun:"it",is:"is",was:"was",this:"this"};const i={pronoun:"they",is:"are",was:"were",this:"these"};r.exports=class Pluralizer{constructor(r,s){this.singular=r;this.plural=s}pluralize(r){const a=r===1;const A=a?s:i;const c=a?this.singular:this.plural;return{...A,count:r,noun:c}}}},21019:r=>{"use strict";const s=2048;const i=s-1;class FixedCircularBuffer{constructor(){this.bottom=0;this.top=0;this.list=new Array(s);this.next=null}isEmpty(){return this.top===this.bottom}isFull(){return(this.top+1&i)===this.bottom}push(r){this.list[this.top]=r;this.top=this.top+1&i}shift(){const r=this.list[this.bottom];if(r===undefined)return null;this.list[this.bottom]=undefined;this.bottom=this.bottom+1&i;return r}}r.exports=class FixedQueue{constructor(){this.head=this.tail=new FixedCircularBuffer}isEmpty(){return this.head.isEmpty()}push(r){if(this.head.isFull()){this.head=this.head.next=new FixedCircularBuffer}this.head.push(r)}shift(){const r=this.tail;const s=r.shift();if(r.isEmpty()&&r.next!==null){this.tail=r.next}return s}}},56280:(r,s,i)=>{"use strict";const a=i(25901);const A=i(21019);const{kConnected:c,kSize:l,kRunning:d,kPending:u,kQueued:p,kBusy:g,kFree:h,kUrl:C,kClose:y,kDestroy:I,kDispatch:B}=i(52418);const b=i(19329);const Q=Symbol("clients");const w=Symbol("needDrain");const v=Symbol("queue");const S=Symbol("closed resolve");const R=Symbol("onDrain");const N=Symbol("onConnect");const x=Symbol("onDisconnect");const D=Symbol("onConnectionError");const k=Symbol("get dispatcher");const T=Symbol("add client");const _=Symbol("remove client");const P=Symbol("stats");class PoolBase extends a{constructor(){super();this[v]=new A;this[Q]=[];this[p]=0;const r=this;this[R]=function onDrain(s,i){const a=r[v];let A=false;while(!A){const s=a.shift();if(!s){break}r[p]--;A=!this.dispatch(s.opts,s.handler)}this[w]=A;if(!this[w]&&r[w]){r[w]=false;r.emit("drain",s,[r,...i])}if(r[S]&&a.isEmpty()){Promise.all(r[Q].map((r=>r.close()))).then(r[S])}};this[N]=(s,i)=>{r.emit("connect",s,[r,...i])};this[x]=(s,i,a)=>{r.emit("disconnect",s,[r,...i],a)};this[D]=(s,i,a)=>{r.emit("connectionError",s,[r,...i],a)};this[P]=new b(this)}get[g](){return this[w]}get[c](){return this[Q].filter((r=>r[c])).length}get[h](){return this[Q].filter((r=>r[c]&&!r[w])).length}get[u](){let r=this[p];for(const{[u]:s}of this[Q]){r+=s}return r}get[d](){let r=0;for(const{[d]:s}of this[Q]){r+=s}return r}get[l](){let r=this[p];for(const{[l]:s}of this[Q]){r+=s}return r}get stats(){return this[P]}async[y](){if(this[v].isEmpty()){return Promise.all(this[Q].map((r=>r.close())))}else{return new Promise((r=>{this[S]=r}))}}async[I](r){while(true){const s=this[v].shift();if(!s){break}s.handler.onError(r)}return Promise.all(this[Q].map((s=>s.destroy(r))))}[B](r,s){const i=this[k]();if(!i){this[w]=true;this[v].push({opts:r,handler:s});this[p]++}else if(!i.dispatch(r,s)){i[w]=true;this[w]=!this[k]()}return!this[w]}[T](r){r.on("drain",this[R]).on("connect",this[N]).on("disconnect",this[x]).on("connectionError",this[D]);this[Q].push(r);if(this[w]){process.nextTick((()=>{if(this[w]){this[R](r[C],[this,r])}}))}return this}[_](r){r.close((()=>{const s=this[Q].indexOf(r);if(s!==-1){this[Q].splice(s,1)}}));this[w]=this[Q].some((r=>!r[w]&&r.closed!==true&&r.destroyed!==true))}}r.exports={PoolBase:PoolBase,kClients:Q,kNeedDrain:w,kAddClient:T,kRemoveClient:_,kGetDispatcher:k}},19329:(r,s,i)=>{const{kFree:a,kConnected:A,kPending:c,kQueued:l,kRunning:d,kSize:u}=i(52418);const p=Symbol("pool");class PoolStats{constructor(r){this[p]=r}get connected(){return this[p][A]}get free(){return this[p][a]}get pending(){return this[p][c]}get queued(){return this[p][l]}get running(){return this[p][d]}get size(){return this[p][u]}}r.exports=PoolStats},21851:(r,s,i)=>{"use strict";const{PoolBase:a,kClients:A,kNeedDrain:c,kAddClient:l,kGetDispatcher:d}=i(56280);const u=i(19128);const{InvalidArgumentError:p}=i(33219);const g=i(55009);const{kUrl:h,kInterceptors:C}=i(52418);const y=i(35470);const I=Symbol("options");const B=Symbol("connections");const b=Symbol("factory");function defaultFactory(r,s){return new u(r,s)}class Pool extends a{constructor(r,{connections:s,factory:i=defaultFactory,connect:a,connectTimeout:A,tls:c,maxCachedSessions:l,socketPath:d,autoSelectFamily:u,autoSelectFamilyAttemptTimeout:Q,allowH2:w,...v}={}){super();if(s!=null&&(!Number.isFinite(s)||s<0)){throw new p("invalid connections")}if(typeof i!=="function"){throw new p("factory must be a function.")}if(a!=null&&typeof a!=="function"&&typeof a!=="object"){throw new p("connect must be a function or an object")}if(typeof a!=="function"){a=y({...c,maxCachedSessions:l,allowH2:w,socketPath:d,timeout:A,...g.nodeHasAutoSelectFamily&&u?{autoSelectFamily:u,autoSelectFamilyAttemptTimeout:Q}:undefined,...a})}this[C]=v.interceptors&&v.interceptors.Pool&&Array.isArray(v.interceptors.Pool)?v.interceptors.Pool:[];this[B]=s||null;this[h]=g.parseOrigin(r);this[I]={...g.deepClone(v),connect:a,allowH2:w};this[I].interceptors=v.interceptors?{...v.interceptors}:undefined;this[b]=i}[d](){let r=this[A].find((r=>!r[c]));if(r){return r}if(!this[B]||this[A].length{"use strict";const{kProxy:a,kClose:A,kDestroy:c,kInterceptors:l}=i(52418);const{URL:d}=i(57310);const u=i(39200);const p=i(21851);const g=i(25901);const{InvalidArgumentError:h,RequestAbortedError:C}=i(33219);const y=i(35470);const I=Symbol("proxy agent");const B=Symbol("proxy client");const b=Symbol("proxy headers");const Q=Symbol("request tls settings");const w=Symbol("proxy tls settings");const v=Symbol("connect endpoint function");function defaultProtocolPort(r){return r==="https:"?443:80}function buildProxyOptions(r){if(typeof r==="string"){r={uri:r}}if(!r||!r.uri){throw new h("Proxy opts.uri is mandatory")}return{uri:r.uri,protocol:r.protocol||"https"}}function defaultFactory(r,s){return new p(r,s)}class ProxyAgent extends g{constructor(r){super(r);this[a]=buildProxyOptions(r);this[I]=new u(r);this[l]=r.interceptors&&r.interceptors.ProxyAgent&&Array.isArray(r.interceptors.ProxyAgent)?r.interceptors.ProxyAgent:[];if(typeof r==="string"){r={uri:r}}if(!r||!r.uri){throw new h("Proxy opts.uri is mandatory")}const{clientFactory:s=defaultFactory}=r;if(typeof s!=="function"){throw new h("Proxy opts.clientFactory must be a function.")}this[Q]=r.requestTls;this[w]=r.proxyTls;this[b]=r.headers||{};const i=new d(r.uri);const{origin:A,port:c,host:p,username:g,password:S}=i;if(r.auth&&r.token){throw new h("opts.auth cannot be used in combination with opts.token")}else if(r.auth){this[b]["proxy-authorization"]=`Basic ${r.auth}`}else if(r.token){this[b]["proxy-authorization"]=r.token}else if(g&&S){this[b]["proxy-authorization"]=`Basic ${Buffer.from(`${decodeURIComponent(g)}:${decodeURIComponent(S)}`).toString("base64")}`}const R=y({...r.proxyTls});this[v]=y({...r.requestTls});this[B]=s(i,{connect:R});this[I]=new u({...r,connect:async(r,s)=>{let i=r.host;if(!r.port){i+=`:${defaultProtocolPort(r.protocol)}`}try{const{socket:a,statusCode:l}=await this[B].connect({origin:A,port:c,path:i,signal:r.signal,headers:{...this[b],host:p}});if(l!==200){a.on("error",(()=>{})).destroy();s(new C(`Proxy response (${l}) !== 200 when HTTP Tunneling`))}if(r.protocol!=="https:"){s(null,a);return}let d;if(this[Q]){d=this[Q].servername}else{d=r.servername}this[v]({...r,servername:d,httpSocket:a},s)}catch(r){s(r)}}})}dispatch(r,s){const{host:i}=new d(r.origin);const a=buildHeaders(r.headers);throwIfProxyAuthIsSent(a);return this[I].dispatch({...r,headers:{...a,host:i}},s)}async[A](){await this[I].close();await this[B].close()}async[c](){await this[I].destroy();await this[B].destroy()}}function buildHeaders(r){if(Array.isArray(r)){const s={};for(let i=0;ir.toLowerCase()==="proxy-authorization"));if(s){throw new h("Proxy-Authorization should be sent in ProxyAgent constructor")}}r.exports=ProxyAgent},21647:r=>{"use strict";let s=Date.now();let i;const a=[];function onTimeout(){s=Date.now();let r=a.length;let i=0;while(i0&&s>=A.state){A.state=-1;A.callback(A.opaque)}if(A.state===-1){A.state=-2;if(i!==r-1){a[i]=a.pop()}else{a.pop()}r-=1}else{i+=1}}if(a.length>0){refreshTimeout()}}function refreshTimeout(){if(i&&i.refresh){i.refresh()}else{clearTimeout(i);i=setTimeout(onTimeout,1e3);if(i.unref){i.unref()}}}class Timeout{constructor(r,s,i){this.callback=r;this.delay=s;this.opaque=i;this.state=-2;this.refresh()}refresh(){if(this.state===-2){a.push(this);if(!i||a.length===1){refreshTimeout()}}this.state=0}clear(){this.state=-1}}r.exports={setTimeout(r,s,i){return s<1e3?setTimeout(r,s,i):new Timeout(r,s,i)},clearTimeout(r){if(r instanceof Timeout){r.clear()}else{clearTimeout(r)}}}},55706:(r,s,i)=>{"use strict";const a=i(67643);const{uid:A,states:c}=i(18790);const{kReadyState:l,kSentClose:d,kByteParser:u,kReceivedClose:p}=i(84258);const{fireEvent:g,failWebsocketConnection:h}=i(82557);const{CloseEvent:C}=i(71161);const{makeRequest:y}=i(82494);const{fetching:I}=i(37495);const{Headers:B}=i(96116);const{getGlobalDispatcher:b}=i(98412);const{kHeadersList:Q}=i(52418);const w={};w.open=a.channel("undici:websocket:open");w.close=a.channel("undici:websocket:close");w.socketError=a.channel("undici:websocket:socket_error");let v;try{v=i(6113)}catch{}function establishWebSocketConnection(r,s,i,a,c){const l=r;l.protocol=r.protocol==="ws:"?"http:":"https:";const d=y({urlList:[l],serviceWorkers:"none",referrer:"no-referrer",mode:"websocket",credentials:"include",cache:"no-store",redirect:"error"});if(c.headers){const r=new B(c.headers)[Q];d.headersList=r}const u=v.randomBytes(16).toString("base64");d.headersList.append("sec-websocket-key",u);d.headersList.append("sec-websocket-version","13");for(const r of s){d.headersList.append("sec-websocket-protocol",r)}const p="";const g=I({request:d,useParallelQueue:true,dispatcher:c.dispatcher??b(),processResponse(r){if(r.type==="error"||r.status!==101){h(i,"Received network error or non-101 status code.");return}if(s.length!==0&&!r.headersList.get("Sec-WebSocket-Protocol")){h(i,"Server did not respond with sent protocols.");return}if(r.headersList.get("Upgrade")?.toLowerCase()!=="websocket"){h(i,'Server did not set Upgrade header to "websocket".');return}if(r.headersList.get("Connection")?.toLowerCase()!=="upgrade"){h(i,'Server did not set Connection header to "upgrade".');return}const c=r.headersList.get("Sec-WebSocket-Accept");const l=v.createHash("sha1").update(u+A).digest("base64");if(c!==l){h(i,"Incorrect hash received in Sec-WebSocket-Accept header.");return}const g=r.headersList.get("Sec-WebSocket-Extensions");if(g!==null&&g!==p){h(i,"Received different permessage-deflate than the one set.");return}const C=r.headersList.get("Sec-WebSocket-Protocol");if(C!==null&&C!==d.headersList.get("Sec-WebSocket-Protocol")){h(i,"Protocol was not set in the opening handshake.");return}r.socket.on("data",onSocketData);r.socket.on("close",onSocketClose);r.socket.on("error",onSocketError);if(w.open.hasSubscribers){w.open.publish({address:r.socket.address(),protocol:C,extensions:g})}a(r)}});return g}function onSocketData(r){if(!this.ws[u].write(r)){this.pause()}}function onSocketClose(){const{ws:r}=this;const s=r[d]&&r[p];let i=1005;let a="";const A=r[u].closingInfo;if(A){i=A.code??1005;a=A.reason}else if(!r[d]){i=1006}r[l]=c.CLOSED;g("close",r,C,{wasClean:s,code:i,reason:a});if(w.close.hasSubscribers){w.close.publish({websocket:r,code:i,reason:a})}}function onSocketError(r){const{ws:s}=this;s[l]=c.CLOSING;if(w.socketError.hasSubscribers){w.socketError.publish(r)}this.destroy()}r.exports={establishWebSocketConnection:establishWebSocketConnection}},18790:r=>{"use strict";const s="258EAFA5-E914-47DA-95CA-C5AB0DC85B11";const i={enumerable:true,writable:false,configurable:false};const a={CONNECTING:0,OPEN:1,CLOSING:2,CLOSED:3};const A={CONTINUATION:0,TEXT:1,BINARY:2,CLOSE:8,PING:9,PONG:10};const c=2**16-1;const l={INFO:0,PAYLOADLENGTH_16:2,PAYLOADLENGTH_64:3,READ_DATA:4};const d=Buffer.allocUnsafe(0);r.exports={uid:s,staticPropertyDescriptors:i,states:a,opcodes:A,maxUnsigned16Bit:c,parserStates:l,emptyBuffer:d}},71161:(r,s,i)=>{"use strict";const{webidl:a}=i(79224);const{kEnumerableProperty:A}=i(55009);const{MessagePort:c}=i(71267);class MessageEvent extends Event{#i;constructor(r,s={}){a.argumentLengthCheck(arguments,1,{header:"MessageEvent constructor"});r=a.converters.DOMString(r);s=a.converters.MessageEventInit(s);super(r,s);this.#i=s}get data(){a.brandCheck(this,MessageEvent);return this.#i.data}get origin(){a.brandCheck(this,MessageEvent);return this.#i.origin}get lastEventId(){a.brandCheck(this,MessageEvent);return this.#i.lastEventId}get source(){a.brandCheck(this,MessageEvent);return this.#i.source}get ports(){a.brandCheck(this,MessageEvent);if(!Object.isFrozen(this.#i.ports)){Object.freeze(this.#i.ports)}return this.#i.ports}initMessageEvent(r,s=false,i=false,A=null,c="",l="",d=null,u=[]){a.brandCheck(this,MessageEvent);a.argumentLengthCheck(arguments,1,{header:"MessageEvent.initMessageEvent"});return new MessageEvent(r,{bubbles:s,cancelable:i,data:A,origin:c,lastEventId:l,source:d,ports:u})}}class CloseEvent extends Event{#i;constructor(r,s={}){a.argumentLengthCheck(arguments,1,{header:"CloseEvent constructor"});r=a.converters.DOMString(r);s=a.converters.CloseEventInit(s);super(r,s);this.#i=s}get wasClean(){a.brandCheck(this,CloseEvent);return this.#i.wasClean}get code(){a.brandCheck(this,CloseEvent);return this.#i.code}get reason(){a.brandCheck(this,CloseEvent);return this.#i.reason}}class ErrorEvent extends Event{#i;constructor(r,s){a.argumentLengthCheck(arguments,1,{header:"ErrorEvent constructor"});super(r,s);r=a.converters.DOMString(r);s=a.converters.ErrorEventInit(s??{});this.#i=s}get message(){a.brandCheck(this,ErrorEvent);return this.#i.message}get filename(){a.brandCheck(this,ErrorEvent);return this.#i.filename}get lineno(){a.brandCheck(this,ErrorEvent);return this.#i.lineno}get colno(){a.brandCheck(this,ErrorEvent);return this.#i.colno}get error(){a.brandCheck(this,ErrorEvent);return this.#i.error}}Object.defineProperties(MessageEvent.prototype,{[Symbol.toStringTag]:{value:"MessageEvent",configurable:true},data:A,origin:A,lastEventId:A,source:A,ports:A,initMessageEvent:A});Object.defineProperties(CloseEvent.prototype,{[Symbol.toStringTag]:{value:"CloseEvent",configurable:true},reason:A,code:A,wasClean:A});Object.defineProperties(ErrorEvent.prototype,{[Symbol.toStringTag]:{value:"ErrorEvent",configurable:true},message:A,filename:A,lineno:A,colno:A,error:A});a.converters.MessagePort=a.interfaceConverter(c);a.converters["sequence"]=a.sequenceConverter(a.converters.MessagePort);const l=[{key:"bubbles",converter:a.converters.boolean,defaultValue:false},{key:"cancelable",converter:a.converters.boolean,defaultValue:false},{key:"composed",converter:a.converters.boolean,defaultValue:false}];a.converters.MessageEventInit=a.dictionaryConverter([...l,{key:"data",converter:a.converters.any,defaultValue:null},{key:"origin",converter:a.converters.USVString,defaultValue:""},{key:"lastEventId",converter:a.converters.DOMString,defaultValue:""},{key:"source",converter:a.nullableConverter(a.converters.MessagePort),defaultValue:null},{key:"ports",converter:a.converters["sequence"],get defaultValue(){return[]}}]);a.converters.CloseEventInit=a.dictionaryConverter([...l,{key:"wasClean",converter:a.converters.boolean,defaultValue:false},{key:"code",converter:a.converters["unsigned short"],defaultValue:0},{key:"reason",converter:a.converters.USVString,defaultValue:""}]);a.converters.ErrorEventInit=a.dictionaryConverter([...l,{key:"message",converter:a.converters.DOMString,defaultValue:""},{key:"filename",converter:a.converters.USVString,defaultValue:""},{key:"lineno",converter:a.converters["unsigned long"],defaultValue:0},{key:"colno",converter:a.converters["unsigned long"],defaultValue:0},{key:"error",converter:a.converters.any}]);r.exports={MessageEvent:MessageEvent,CloseEvent:CloseEvent,ErrorEvent:ErrorEvent}},30374:(r,s,i)=>{"use strict";const{maxUnsigned16Bit:a}=i(18790);let A;try{A=i(6113)}catch{}class WebsocketFrameSend{constructor(r){this.frameData=r;this.maskKey=A.randomBytes(4)}createFrame(r){const s=this.frameData?.byteLength??0;let i=s;let A=6;if(s>a){A+=8;i=127}else if(s>125){A+=2;i=126}const c=Buffer.allocUnsafe(s+A);c[0]=c[1]=0;c[0]|=128;c[0]=(c[0]&240)+r; +/*! ws. MIT License. Einar Otto Stangvik */c[A-4]=this.maskKey[0];c[A-3]=this.maskKey[1];c[A-2]=this.maskKey[2];c[A-1]=this.maskKey[3];c[1]=i;if(i===126){c.writeUInt16BE(s,2)}else if(i===127){c[2]=c[3]=0;c.writeUIntBE(s,4,6)}c[1]|=128;for(let r=0;r{"use strict";const{Writable:a}=i(12781);const A=i(67643);const{parserStates:c,opcodes:l,states:d,emptyBuffer:u}=i(18790);const{kReadyState:p,kSentClose:g,kResponse:h,kReceivedClose:C}=i(84258);const{isValidStatusCode:y,failWebsocketConnection:I,websocketMessageReceived:B}=i(82557);const{WebsocketFrameSend:b}=i(30374);const Q={};Q.ping=A.channel("undici:websocket:ping");Q.pong=A.channel("undici:websocket:pong");class ByteParser extends a{#o=[];#a=0;#A=c.INFO;#c={};#l=[];constructor(r){super();this.ws=r}_write(r,s,i){this.#o.push(r);this.#a+=r.length;this.run(i)}run(r){while(true){if(this.#A===c.INFO){if(this.#a<2){return r()}const s=this.consume(2);this.#c.fin=(s[0]&128)!==0;this.#c.opcode=s[0]&15;this.#c.originalOpcode??=this.#c.opcode;this.#c.fragmented=!this.#c.fin&&this.#c.opcode!==l.CONTINUATION;if(this.#c.fragmented&&this.#c.opcode!==l.BINARY&&this.#c.opcode!==l.TEXT){I(this.ws,"Invalid frame type was fragmented.");return}const i=s[1]&127;if(i<=125){this.#c.payloadLength=i;this.#A=c.READ_DATA}else if(i===126){this.#A=c.PAYLOADLENGTH_16}else if(i===127){this.#A=c.PAYLOADLENGTH_64}if(this.#c.fragmented&&i>125){I(this.ws,"Fragmented frame exceeded 125 bytes.");return}else if((this.#c.opcode===l.PING||this.#c.opcode===l.PONG||this.#c.opcode===l.CLOSE)&&i>125){I(this.ws,"Payload length for control frame exceeded 125 bytes.");return}else if(this.#c.opcode===l.CLOSE){if(i===1){I(this.ws,"Received close frame with a 1-byte body.");return}const r=this.consume(i);this.#c.closeInfo=this.parseCloseBody(false,r);if(!this.ws[g]){const r=Buffer.allocUnsafe(2);r.writeUInt16BE(this.#c.closeInfo.code,0);const s=new b(r);this.ws[h].socket.write(s.createFrame(l.CLOSE),(r=>{if(!r){this.ws[g]=true}}))}this.ws[p]=d.CLOSING;this.ws[C]=true;this.end();return}else if(this.#c.opcode===l.PING){const s=this.consume(i);if(!this.ws[C]){const r=new b(s);this.ws[h].socket.write(r.createFrame(l.PONG));if(Q.ping.hasSubscribers){Q.ping.publish({payload:s})}}this.#A=c.INFO;if(this.#a>0){continue}else{r();return}}else if(this.#c.opcode===l.PONG){const s=this.consume(i);if(Q.pong.hasSubscribers){Q.pong.publish({payload:s})}if(this.#a>0){continue}else{r();return}}}else if(this.#A===c.PAYLOADLENGTH_16){if(this.#a<2){return r()}const s=this.consume(2);this.#c.payloadLength=s.readUInt16BE(0);this.#A=c.READ_DATA}else if(this.#A===c.PAYLOADLENGTH_64){if(this.#a<8){return r()}const s=this.consume(8);const i=s.readUInt32BE(0);if(i>2**31-1){I(this.ws,"Received payload length > 2^31 bytes.");return}const a=s.readUInt32BE(4);this.#c.payloadLength=(i<<8)+a;this.#A=c.READ_DATA}else if(this.#A===c.READ_DATA){if(this.#a=this.#c.payloadLength){const r=this.consume(this.#c.payloadLength);this.#l.push(r);if(!this.#c.fragmented||this.#c.fin&&this.#c.opcode===l.CONTINUATION){const r=Buffer.concat(this.#l);B(this.ws,this.#c.originalOpcode,r);this.#c={};this.#l.length=0}this.#A=c.INFO}}if(this.#a>0){continue}else{r();break}}}consume(r){if(r>this.#a){return null}else if(r===0){return u}if(this.#o[0].length===r){this.#a-=this.#o[0].length;return this.#o.shift()}const s=Buffer.allocUnsafe(r);let i=0;while(i!==r){const a=this.#o[0];const{length:A}=a;if(A+i===r){s.set(this.#o.shift(),i);break}else if(A+i>r){s.set(a.subarray(0,r-i),i);this.#o[0]=a.subarray(r-i);break}else{s.set(this.#o.shift(),i);i+=a.length}}this.#a-=r;return s}parseCloseBody(r,s){let i;if(s.length>=2){i=s.readUInt16BE(0)}if(r){if(!y(i)){return null}return{code:i}}let a=s.subarray(2);if(a[0]===239&&a[1]===187&&a[2]===191){a=a.subarray(3)}if(i!==undefined&&!y(i)){return null}try{a=new TextDecoder("utf-8",{fatal:true}).decode(a)}catch{return null}return{code:i,reason:a}}get closingInfo(){return this.#c.closeInfo}}r.exports={ByteParser:ByteParser}},84258:r=>{"use strict";r.exports={kWebSocketURL:Symbol("url"),kReadyState:Symbol("ready state"),kController:Symbol("controller"),kResponse:Symbol("response"),kBinaryType:Symbol("binary type"),kSentClose:Symbol("sent close"),kReceivedClose:Symbol("received close"),kByteParser:Symbol("byte parser")}},82557:(r,s,i)=>{"use strict";const{kReadyState:a,kController:A,kResponse:c,kBinaryType:l,kWebSocketURL:d}=i(84258);const{states:u,opcodes:p}=i(18790);const{MessageEvent:g,ErrorEvent:h}=i(71161);function isEstablished(r){return r[a]===u.OPEN}function isClosing(r){return r[a]===u.CLOSING}function isClosed(r){return r[a]===u.CLOSED}function fireEvent(r,s,i=Event,a){const A=new i(r,a);s.dispatchEvent(A)}function websocketMessageReceived(r,s,i){if(r[a]!==u.OPEN){return}let A;if(s===p.TEXT){try{A=new TextDecoder("utf-8",{fatal:true}).decode(i)}catch{failWebsocketConnection(r,"Received invalid UTF-8 in text frame.");return}}else if(s===p.BINARY){if(r[l]==="blob"){A=new Blob([i])}else{A=new Uint8Array(i).buffer}}fireEvent("message",r,g,{origin:r[d].origin,data:A})}function isValidSubprotocol(r){if(r.length===0){return false}for(const s of r){const r=s.charCodeAt(0);if(r<33||r>126||s==="("||s===")"||s==="<"||s===">"||s==="@"||s===","||s===";"||s===":"||s==="\\"||s==='"'||s==="/"||s==="["||s==="]"||s==="?"||s==="="||s==="{"||s==="}"||r===32||r===9){return false}}return true}function isValidStatusCode(r){if(r>=1e3&&r<1015){return r!==1004&&r!==1005&&r!==1006}return r>=3e3&&r<=4999}function failWebsocketConnection(r,s){const{[A]:i,[c]:a}=r;i.abort();if(a?.socket&&!a.socket.destroyed){a.socket.destroy()}if(s){fireEvent("error",r,h,{error:new Error(s)})}}r.exports={isEstablished:isEstablished,isClosing:isClosing,isClosed:isClosed,fireEvent:fireEvent,isValidSubprotocol:isValidSubprotocol,isValidStatusCode:isValidStatusCode,failWebsocketConnection:failWebsocketConnection,websocketMessageReceived:websocketMessageReceived}},46090:(r,s,i)=>{"use strict";const{webidl:a}=i(79224);const{DOMException:A}=i(17026);const{URLSerializer:c}=i(88576);const{getGlobalOrigin:l}=i(11854);const{staticPropertyDescriptors:d,states:u,opcodes:p,emptyBuffer:g}=i(18790);const{kWebSocketURL:h,kReadyState:C,kController:y,kBinaryType:I,kResponse:B,kSentClose:b,kByteParser:Q}=i(84258);const{isEstablished:w,isClosing:v,isValidSubprotocol:S,failWebsocketConnection:R,fireEvent:N}=i(82557);const{establishWebSocketConnection:x}=i(55706);const{WebsocketFrameSend:D}=i(30374);const{ByteParser:k}=i(1993);const{kEnumerableProperty:T,isBlobLike:_}=i(55009);const{getGlobalDispatcher:P}=i(98412);const{types:O}=i(73837);let L=false;class WebSocket extends EventTarget{#d={open:null,error:null,close:null,message:null};#u=0;#p="";#g="";constructor(r,s=[]){super();a.argumentLengthCheck(arguments,1,{header:"WebSocket constructor"});if(!L){L=true;process.emitWarning("WebSockets are experimental, expect them to change at any time.",{code:"UNDICI-WS"})}const i=a.converters["DOMString or sequence or WebSocketInit"](s);r=a.converters.USVString(r);s=i.protocols;const c=l();let d;try{d=new URL(r,c)}catch(r){throw new A(r,"SyntaxError")}if(d.protocol==="http:"){d.protocol="ws:"}else if(d.protocol==="https:"){d.protocol="wss:"}if(d.protocol!=="ws:"&&d.protocol!=="wss:"){throw new A(`Expected a ws: or wss: protocol, got ${d.protocol}`,"SyntaxError")}if(d.hash||d.href.endsWith("#")){throw new A("Got fragment","SyntaxError")}if(typeof s==="string"){s=[s]}if(s.length!==new Set(s.map((r=>r.toLowerCase()))).size){throw new A("Invalid Sec-WebSocket-Protocol value","SyntaxError")}if(s.length>0&&!s.every((r=>S(r)))){throw new A("Invalid Sec-WebSocket-Protocol value","SyntaxError")}this[h]=new URL(d.href);this[y]=x(d,s,this,(r=>this.#h(r)),i);this[C]=WebSocket.CONNECTING;this[I]="blob"}close(r=undefined,s=undefined){a.brandCheck(this,WebSocket);if(r!==undefined){r=a.converters["unsigned short"](r,{clamp:true})}if(s!==undefined){s=a.converters.USVString(s)}if(r!==undefined){if(r!==1e3&&(r<3e3||r>4999)){throw new A("invalid code","InvalidAccessError")}}let i=0;if(s!==undefined){i=Buffer.byteLength(s);if(i>123){throw new A(`Reason must be less than 123 bytes; received ${i}`,"SyntaxError")}}if(this[C]===WebSocket.CLOSING||this[C]===WebSocket.CLOSED){}else if(!w(this)){R(this,"Connection was closed before it was established.");this[C]=WebSocket.CLOSING}else if(!v(this)){const a=new D;if(r!==undefined&&s===undefined){a.frameData=Buffer.allocUnsafe(2);a.frameData.writeUInt16BE(r,0)}else if(r!==undefined&&s!==undefined){a.frameData=Buffer.allocUnsafe(2+i);a.frameData.writeUInt16BE(r,0);a.frameData.write(s,2,"utf-8")}else{a.frameData=g}const A=this[B].socket;A.write(a.createFrame(p.CLOSE),(r=>{if(!r){this[b]=true}}));this[C]=u.CLOSING}else{this[C]=WebSocket.CLOSING}}send(r){a.brandCheck(this,WebSocket);a.argumentLengthCheck(arguments,1,{header:"WebSocket.send"});r=a.converters.WebSocketSendData(r);if(this[C]===WebSocket.CONNECTING){throw new A("Sent before connected.","InvalidStateError")}if(!w(this)||v(this)){return}const s=this[B].socket;if(typeof r==="string"){const i=Buffer.from(r);const a=new D(i);const A=a.createFrame(p.TEXT);this.#u+=i.byteLength;s.write(A,(()=>{this.#u-=i.byteLength}))}else if(O.isArrayBuffer(r)){const i=Buffer.from(r);const a=new D(i);const A=a.createFrame(p.BINARY);this.#u+=i.byteLength;s.write(A,(()=>{this.#u-=i.byteLength}))}else if(ArrayBuffer.isView(r)){const i=Buffer.from(r,r.byteOffset,r.byteLength);const a=new D(i);const A=a.createFrame(p.BINARY);this.#u+=i.byteLength;s.write(A,(()=>{this.#u-=i.byteLength}))}else if(_(r)){const i=new D;r.arrayBuffer().then((r=>{const a=Buffer.from(r);i.frameData=a;const A=i.createFrame(p.BINARY);this.#u+=a.byteLength;s.write(A,(()=>{this.#u-=a.byteLength}))}))}}get readyState(){a.brandCheck(this,WebSocket);return this[C]}get bufferedAmount(){a.brandCheck(this,WebSocket);return this.#u}get url(){a.brandCheck(this,WebSocket);return c(this[h])}get extensions(){a.brandCheck(this,WebSocket);return this.#g}get protocol(){a.brandCheck(this,WebSocket);return this.#p}get onopen(){a.brandCheck(this,WebSocket);return this.#d.open}set onopen(r){a.brandCheck(this,WebSocket);if(this.#d.open){this.removeEventListener("open",this.#d.open)}if(typeof r==="function"){this.#d.open=r;this.addEventListener("open",r)}else{this.#d.open=null}}get onerror(){a.brandCheck(this,WebSocket);return this.#d.error}set onerror(r){a.brandCheck(this,WebSocket);if(this.#d.error){this.removeEventListener("error",this.#d.error)}if(typeof r==="function"){this.#d.error=r;this.addEventListener("error",r)}else{this.#d.error=null}}get onclose(){a.brandCheck(this,WebSocket);return this.#d.close}set onclose(r){a.brandCheck(this,WebSocket);if(this.#d.close){this.removeEventListener("close",this.#d.close)}if(typeof r==="function"){this.#d.close=r;this.addEventListener("close",r)}else{this.#d.close=null}}get onmessage(){a.brandCheck(this,WebSocket);return this.#d.message}set onmessage(r){a.brandCheck(this,WebSocket);if(this.#d.message){this.removeEventListener("message",this.#d.message)}if(typeof r==="function"){this.#d.message=r;this.addEventListener("message",r)}else{this.#d.message=null}}get binaryType(){a.brandCheck(this,WebSocket);return this[I]}set binaryType(r){a.brandCheck(this,WebSocket);if(r!=="blob"&&r!=="arraybuffer"){this[I]="blob"}else{this[I]=r}}#h(r){this[B]=r;const s=new k(this);s.on("drain",(function onParserDrain(){this.ws[B].socket.resume()}));r.socket.ws=this;this[Q]=s;this[C]=u.OPEN;const i=r.headersList.get("sec-websocket-extensions");if(i!==null){this.#g=i}const a=r.headersList.get("sec-websocket-protocol");if(a!==null){this.#p=a}N("open",this)}}WebSocket.CONNECTING=WebSocket.prototype.CONNECTING=u.CONNECTING;WebSocket.OPEN=WebSocket.prototype.OPEN=u.OPEN;WebSocket.CLOSING=WebSocket.prototype.CLOSING=u.CLOSING;WebSocket.CLOSED=WebSocket.prototype.CLOSED=u.CLOSED;Object.defineProperties(WebSocket.prototype,{CONNECTING:d,OPEN:d,CLOSING:d,CLOSED:d,url:T,readyState:T,bufferedAmount:T,onopen:T,onerror:T,onclose:T,close:T,onmessage:T,binaryType:T,send:T,extensions:T,protocol:T,[Symbol.toStringTag]:{value:"WebSocket",writable:false,enumerable:false,configurable:true}});Object.defineProperties(WebSocket,{CONNECTING:d,OPEN:d,CLOSING:d,CLOSED:d});a.converters["sequence"]=a.sequenceConverter(a.converters.DOMString);a.converters["DOMString or sequence"]=function(r){if(a.util.Type(r)==="Object"&&Symbol.iterator in r){return a.converters["sequence"](r)}return a.converters.DOMString(r)};a.converters.WebSocketInit=a.dictionaryConverter([{key:"protocols",converter:a.converters["DOMString or sequence"],get defaultValue(){return[]}},{key:"dispatcher",converter:r=>r,get defaultValue(){return P()}},{key:"headers",converter:a.nullableConverter(a.converters.HeadersInit)}]);a.converters["DOMString or sequence or WebSocketInit"]=function(r){if(a.util.Type(r)==="Object"&&!(Symbol.iterator in r)){return a.converters.WebSocketInit(r)}return{protocols:a.converters["DOMString or sequence"](r)}};a.converters.WebSocketSendData=function(r){if(a.util.Type(r)==="Object"){if(_(r)){return a.converters.Blob(r,{strict:false})}if(ArrayBuffer.isView(r)||O.isAnyArrayBuffer(r)){return a.converters.BufferSource(r)}}return a.converters.USVString(r)};r.exports={WebSocket:WebSocket}},37409:(r,s,i)=>{"use strict";const a=i(17152);const A=i(57587);const c=i(37715);const l=i(82928);const d=i(20619);const u=i(16202);const p=i(82423);const{InvalidArgumentError:g}=c;const h=i(23738);const C=i(69690);const y=i(8735);const I=i(94997);const B=i(57557);const b=i(62012);const Q=i(37641);const w=i(5258);const{getGlobalDispatcher:v,setGlobalDispatcher:S}=i(12475);const R=i(27410);const N=i(69173);const x=i(71856);let D;try{i(6113);D=true}catch{D=false}Object.assign(A.prototype,h);r.exports.Dispatcher=A;r.exports.Client=a;r.exports.Pool=l;r.exports.BalancedPool=d;r.exports.Agent=u;r.exports.ProxyAgent=Q;r.exports.RetryHandler=w;r.exports.DecoratorHandler=R;r.exports.RedirectHandler=N;r.exports.createRedirectInterceptor=x;r.exports.buildConnector=C;r.exports.errors=c;function makeDispatcher(r){return(s,i,a)=>{if(typeof i==="function"){a=i;i=null}if(!s||typeof s!=="string"&&typeof s!=="object"&&!(s instanceof URL)){throw new g("invalid url")}if(i!=null&&typeof i!=="object"){throw new g("invalid opts")}if(i&&i.path!=null){if(typeof i.path!=="string"){throw new g("invalid opts.path")}let r=i.path;if(!i.path.startsWith("/")){r=`/${r}`}s=new URL(p.parseOrigin(s).origin+r)}else{if(!i){i=typeof s==="object"?s:{}}s=p.parseURL(s)}const{agent:A,dispatcher:c=v()}=i;if(A){throw new g("unsupported opts.agent. Did you mean opts.client?")}return r.call(c,{...i,origin:s.origin,path:s.search?`${s.pathname}${s.search}`:s.pathname,method:i.method||(i.body?"PUT":"GET")},a)}}r.exports.setGlobalDispatcher=S;r.exports.getGlobalDispatcher=v;if(p.nodeMajor>16||p.nodeMajor===16&&p.nodeMinor>=8){let s=null;r.exports.fetch=async function fetch(r){if(!s){s=i(69538).fetch}try{return await s(...arguments)}catch(r){if(typeof r==="object"){Error.captureStackTrace(r,this)}throw r}};r.exports.Headers=i(35823).Headers;r.exports.Response=i(65876).Response;r.exports.Request=i(55247).Request;r.exports.FormData=i(31854).FormData;r.exports.File=i(89126).File;r.exports.FileReader=i(60441).FileReader;const{setGlobalOrigin:a,getGlobalOrigin:A}=i(31744);r.exports.setGlobalOrigin=a;r.exports.getGlobalOrigin=A;const{CacheStorage:c}=i(39984);const{kConstruct:l}=i(17173);r.exports.caches=new c(l)}if(p.nodeMajor>=16){const{deleteCookie:s,getCookies:a,getSetCookies:A,setCookie:c}=i(60208);r.exports.deleteCookie=s;r.exports.getCookies=a;r.exports.getSetCookies=A;r.exports.setCookie=c;const{parseMIMEType:l,serializeAMimeType:d}=i(44864);r.exports.parseMIMEType=l;r.exports.serializeAMimeType=d}if(p.nodeMajor>=18&&D){const{WebSocket:s}=i(29740);r.exports.WebSocket=s}r.exports.request=makeDispatcher(h.request);r.exports.stream=makeDispatcher(h.stream);r.exports.pipeline=makeDispatcher(h.pipeline);r.exports.connect=makeDispatcher(h.connect);r.exports.upgrade=makeDispatcher(h.upgrade);r.exports.MockClient=y;r.exports.MockPool=B;r.exports.MockAgent=I;r.exports.mockErrors=b},16202:(r,s,i)=>{"use strict";const{InvalidArgumentError:a}=i(37715);const{kClients:A,kRunning:c,kClose:l,kDestroy:d,kDispatch:u,kInterceptors:p}=i(25999);const g=i(75971);const h=i(82928);const C=i(17152);const y=i(82423);const I=i(71856);const{WeakRef:B,FinalizationRegistry:b}=i(74682)();const Q=Symbol("onConnect");const w=Symbol("onDisconnect");const v=Symbol("onConnectionError");const S=Symbol("maxRedirections");const R=Symbol("onDrain");const N=Symbol("factory");const x=Symbol("finalizer");const D=Symbol("options");function defaultFactory(r,s){return s&&s.connections===1?new C(r,s):new h(r,s)}class Agent extends g{constructor({factory:r=defaultFactory,maxRedirections:s=0,connect:i,...c}={}){super();if(typeof r!=="function"){throw new a("factory must be a function.")}if(i!=null&&typeof i!=="function"&&typeof i!=="object"){throw new a("connect must be a function or an object")}if(!Number.isInteger(s)||s<0){throw new a("maxRedirections must be a positive number")}if(i&&typeof i!=="function"){i={...i}}this[p]=c.interceptors&&c.interceptors.Agent&&Array.isArray(c.interceptors.Agent)?c.interceptors.Agent:[I({maxRedirections:s})];this[D]={...y.deepClone(c),connect:i};this[D].interceptors=c.interceptors?{...c.interceptors}:undefined;this[S]=s;this[N]=r;this[A]=new Map;this[x]=new b((r=>{const s=this[A].get(r);if(s!==undefined&&s.deref()===undefined){this[A].delete(r)}}));const l=this;this[R]=(r,s)=>{l.emit("drain",r,[l,...s])};this[Q]=(r,s)=>{l.emit("connect",r,[l,...s])};this[w]=(r,s,i)=>{l.emit("disconnect",r,[l,...s],i)};this[v]=(r,s,i)=>{l.emit("connectionError",r,[l,...s],i)}}get[c](){let r=0;for(const s of this[A].values()){const i=s.deref();if(i){r+=i[c]}}return r}[u](r,s){let i;if(r.origin&&(typeof r.origin==="string"||r.origin instanceof URL)){i=String(r.origin)}else{throw new a("opts.origin must be a non-empty string or URL.")}const c=this[A].get(i);let l=c?c.deref():null;if(!l){l=this[N](r.origin,this[D]).on("drain",this[R]).on("connect",this[Q]).on("disconnect",this[w]).on("connectionError",this[v]);this[A].set(i,new B(l));this[x].register(l,i)}return l.dispatch(r,s)}async[l](){const r=[];for(const s of this[A].values()){const i=s.deref();if(i){r.push(i.close())}}await Promise.all(r)}async[d](r){const s=[];for(const i of this[A].values()){const a=i.deref();if(a){s.push(a.destroy(r))}}await Promise.all(s)}}r.exports=Agent},99930:(r,s,i)=>{const{addAbortListener:a}=i(82423);const{RequestAbortedError:A}=i(37715);const c=Symbol("kListener");const l=Symbol("kSignal");function abort(r){if(r.abort){r.abort()}else{r.onError(new A)}}function addSignal(r,s){r[l]=null;r[c]=null;if(!s){return}if(s.aborted){abort(r);return}r[l]=s;r[c]=()=>{abort(r)};a(r[l],r[c])}function removeSignal(r){if(!r[l]){return}if("removeEventListener"in r[l]){r[l].removeEventListener("abort",r[c])}else{r[l].removeListener("abort",r[c])}r[l]=null;r[c]=null}r.exports={addSignal:addSignal,removeSignal:removeSignal}},7044:(r,s,i)=>{"use strict";const{AsyncResource:a}=i(50852);const{InvalidArgumentError:A,RequestAbortedError:c,SocketError:l}=i(37715);const d=i(82423);const{addSignal:u,removeSignal:p}=i(99930);class ConnectHandler extends a{constructor(r,s){if(!r||typeof r!=="object"){throw new A("invalid opts")}if(typeof s!=="function"){throw new A("invalid callback")}const{signal:i,opaque:a,responseHeaders:c}=r;if(i&&typeof i.on!=="function"&&typeof i.addEventListener!=="function"){throw new A("signal must be an EventEmitter or EventTarget")}super("UNDICI_CONNECT");this.opaque=a||null;this.responseHeaders=c||null;this.callback=s;this.abort=null;u(this,i)}onConnect(r,s){if(!this.callback){throw new c}this.abort=r;this.context=s}onHeaders(){throw new l("bad connect",null)}onUpgrade(r,s,i){const{callback:a,opaque:A,context:c}=this;p(this);this.callback=null;let l=s;if(l!=null){l=this.responseHeaders==="raw"?d.parseRawHeaders(s):d.parseHeaders(s)}this.runInAsyncScope(a,null,null,{statusCode:r,headers:l,socket:i,opaque:A,context:c})}onError(r){const{callback:s,opaque:i}=this;p(this);if(s){this.callback=null;queueMicrotask((()=>{this.runInAsyncScope(s,null,r,{opaque:i})}))}}}function connect(r,s){if(s===undefined){return new Promise(((s,i)=>{connect.call(this,r,((r,a)=>r?i(r):s(a)))}))}try{const i=new ConnectHandler(r,s);this.dispatch({...r,method:"CONNECT"},i)}catch(i){if(typeof s!=="function"){throw i}const a=r&&r.opaque;queueMicrotask((()=>s(i,{opaque:a})))}}r.exports=connect},2173:(r,s,i)=>{"use strict";const{Readable:a,Duplex:A,PassThrough:c}=i(12781);const{InvalidArgumentError:l,InvalidReturnValueError:d,RequestAbortedError:u}=i(37715);const p=i(82423);const{AsyncResource:g}=i(50852);const{addSignal:h,removeSignal:C}=i(99930);const y=i(39491);const I=Symbol("resume");class PipelineRequest extends a{constructor(){super({autoDestroy:true});this[I]=null}_read(){const{[I]:r}=this;if(r){this[I]=null;r()}}_destroy(r,s){this._read();s(r)}}class PipelineResponse extends a{constructor(r){super({autoDestroy:true});this[I]=r}_read(){this[I]()}_destroy(r,s){if(!r&&!this._readableState.endEmitted){r=new u}s(r)}}class PipelineHandler extends g{constructor(r,s){if(!r||typeof r!=="object"){throw new l("invalid opts")}if(typeof s!=="function"){throw new l("invalid handler")}const{signal:i,method:a,opaque:c,onInfo:d,responseHeaders:g}=r;if(i&&typeof i.on!=="function"&&typeof i.addEventListener!=="function"){throw new l("signal must be an EventEmitter or EventTarget")}if(a==="CONNECT"){throw new l("invalid method")}if(d&&typeof d!=="function"){throw new l("invalid onInfo callback")}super("UNDICI_PIPELINE");this.opaque=c||null;this.responseHeaders=g||null;this.handler=s;this.abort=null;this.context=null;this.onInfo=d||null;this.req=(new PipelineRequest).on("error",p.nop);this.ret=new A({readableObjectMode:r.objectMode,autoDestroy:true,read:()=>{const{body:r}=this;if(r&&r.resume){r.resume()}},write:(r,s,i)=>{const{req:a}=this;if(a.push(r,s)||a._readableState.destroyed){i()}else{a[I]=i}},destroy:(r,s)=>{const{body:i,req:a,res:A,ret:c,abort:l}=this;if(!r&&!c._readableState.endEmitted){r=new u}if(l&&r){l()}p.destroy(i,r);p.destroy(a,r);p.destroy(A,r);C(this);s(r)}}).on("prefinish",(()=>{const{req:r}=this;r.push(null)}));this.res=null;h(this,i)}onConnect(r,s){const{ret:i,res:a}=this;y(!a,"pipeline cannot be retried");if(i.destroyed){throw new u}this.abort=r;this.context=s}onHeaders(r,s,i){const{opaque:a,handler:A,context:c}=this;if(r<200){if(this.onInfo){const i=this.responseHeaders==="raw"?p.parseRawHeaders(s):p.parseHeaders(s);this.onInfo({statusCode:r,headers:i})}return}this.res=new PipelineResponse(i);let l;try{this.handler=null;const i=this.responseHeaders==="raw"?p.parseRawHeaders(s):p.parseHeaders(s);l=this.runInAsyncScope(A,null,{statusCode:r,headers:i,opaque:a,body:this.res,context:c})}catch(r){this.res.on("error",p.nop);throw r}if(!l||typeof l.on!=="function"){throw new d("expected Readable")}l.on("data",(r=>{const{ret:s,body:i}=this;if(!s.push(r)&&i.pause){i.pause()}})).on("error",(r=>{const{ret:s}=this;p.destroy(s,r)})).on("end",(()=>{const{ret:r}=this;r.push(null)})).on("close",(()=>{const{ret:r}=this;if(!r._readableState.ended){p.destroy(r,new u)}}));this.body=l}onData(r){const{res:s}=this;return s.push(r)}onComplete(r){const{res:s}=this;s.push(null)}onError(r){const{ret:s}=this;this.handler=null;p.destroy(s,r)}}function pipeline(r,s){try{const i=new PipelineHandler(r,s);this.dispatch({...r,body:i.req},i);return i.ret}catch(r){return(new c).destroy(r)}}r.exports=pipeline},42704:(r,s,i)=>{"use strict";const a=i(94262);const{InvalidArgumentError:A,RequestAbortedError:c}=i(37715);const l=i(82423);const{getResolveErrorBodyCallback:d}=i(60169);const{AsyncResource:u}=i(50852);const{addSignal:p,removeSignal:g}=i(99930);class RequestHandler extends u{constructor(r,s){if(!r||typeof r!=="object"){throw new A("invalid opts")}const{signal:i,method:a,opaque:c,body:d,onInfo:u,responseHeaders:g,throwOnError:h,highWaterMark:C}=r;try{if(typeof s!=="function"){throw new A("invalid callback")}if(C&&(typeof C!=="number"||C<0)){throw new A("invalid highWaterMark")}if(i&&typeof i.on!=="function"&&typeof i.addEventListener!=="function"){throw new A("signal must be an EventEmitter or EventTarget")}if(a==="CONNECT"){throw new A("invalid method")}if(u&&typeof u!=="function"){throw new A("invalid onInfo callback")}super("UNDICI_REQUEST")}catch(r){if(l.isStream(d)){l.destroy(d.on("error",l.nop),r)}throw r}this.responseHeaders=g||null;this.opaque=c||null;this.callback=s;this.res=null;this.abort=null;this.body=d;this.trailers={};this.context=null;this.onInfo=u||null;this.throwOnError=h;this.highWaterMark=C;if(l.isStream(d)){d.on("error",(r=>{this.onError(r)}))}p(this,i)}onConnect(r,s){if(!this.callback){throw new c}this.abort=r;this.context=s}onHeaders(r,s,i,A){const{callback:c,opaque:u,abort:p,context:g,responseHeaders:h,highWaterMark:C}=this;const y=h==="raw"?l.parseRawHeaders(s):l.parseHeaders(s);if(r<200){if(this.onInfo){this.onInfo({statusCode:r,headers:y})}return}const I=h==="raw"?l.parseHeaders(s):y;const B=I["content-type"];const b=new a({resume:i,abort:p,contentType:B,highWaterMark:C});this.callback=null;this.res=b;if(c!==null){if(this.throwOnError&&r>=400){this.runInAsyncScope(d,null,{callback:c,body:b,contentType:B,statusCode:r,statusMessage:A,headers:y})}else{this.runInAsyncScope(c,null,null,{statusCode:r,headers:y,trailers:this.trailers,opaque:u,body:b,context:g})}}}onData(r){const{res:s}=this;return s.push(r)}onComplete(r){const{res:s}=this;g(this);l.parseHeaders(r,this.trailers);s.push(null)}onError(r){const{res:s,callback:i,body:a,opaque:A}=this;g(this);if(i){this.callback=null;queueMicrotask((()=>{this.runInAsyncScope(i,null,r,{opaque:A})}))}if(s){this.res=null;queueMicrotask((()=>{l.destroy(s,r)}))}if(a){this.body=null;l.destroy(a,r)}}}function request(r,s){if(s===undefined){return new Promise(((s,i)=>{request.call(this,r,((r,a)=>r?i(r):s(a)))}))}try{this.dispatch(r,new RequestHandler(r,s))}catch(i){if(typeof s!=="function"){throw i}const a=r&&r.opaque;queueMicrotask((()=>s(i,{opaque:a})))}}r.exports=request;r.exports.RequestHandler=RequestHandler},26487:(r,s,i)=>{"use strict";const{finished:a,PassThrough:A}=i(12781);const{InvalidArgumentError:c,InvalidReturnValueError:l,RequestAbortedError:d}=i(37715);const u=i(82423);const{getResolveErrorBodyCallback:p}=i(60169);const{AsyncResource:g}=i(50852);const{addSignal:h,removeSignal:C}=i(99930);class StreamHandler extends g{constructor(r,s,i){if(!r||typeof r!=="object"){throw new c("invalid opts")}const{signal:a,method:A,opaque:l,body:d,onInfo:p,responseHeaders:g,throwOnError:C}=r;try{if(typeof i!=="function"){throw new c("invalid callback")}if(typeof s!=="function"){throw new c("invalid factory")}if(a&&typeof a.on!=="function"&&typeof a.addEventListener!=="function"){throw new c("signal must be an EventEmitter or EventTarget")}if(A==="CONNECT"){throw new c("invalid method")}if(p&&typeof p!=="function"){throw new c("invalid onInfo callback")}super("UNDICI_STREAM")}catch(r){if(u.isStream(d)){u.destroy(d.on("error",u.nop),r)}throw r}this.responseHeaders=g||null;this.opaque=l||null;this.factory=s;this.callback=i;this.res=null;this.abort=null;this.context=null;this.trailers=null;this.body=d;this.onInfo=p||null;this.throwOnError=C||false;if(u.isStream(d)){d.on("error",(r=>{this.onError(r)}))}h(this,a)}onConnect(r,s){if(!this.callback){throw new d}this.abort=r;this.context=s}onHeaders(r,s,i,c){const{factory:d,opaque:g,context:h,callback:C,responseHeaders:y}=this;const I=y==="raw"?u.parseRawHeaders(s):u.parseHeaders(s);if(r<200){if(this.onInfo){this.onInfo({statusCode:r,headers:I})}return}this.factory=null;let B;if(this.throwOnError&&r>=400){const i=y==="raw"?u.parseHeaders(s):I;const a=i["content-type"];B=new A;this.callback=null;this.runInAsyncScope(p,null,{callback:C,body:B,contentType:a,statusCode:r,statusMessage:c,headers:I})}else{if(d===null){return}B=this.runInAsyncScope(d,null,{statusCode:r,headers:I,opaque:g,context:h});if(!B||typeof B.write!=="function"||typeof B.end!=="function"||typeof B.on!=="function"){throw new l("expected Writable")}a(B,{readable:false},(r=>{const{callback:s,res:i,opaque:a,trailers:A,abort:c}=this;this.res=null;if(r||!i.readable){u.destroy(i,r)}this.callback=null;this.runInAsyncScope(s,null,r||null,{opaque:a,trailers:A});if(r){c()}}))}B.on("drain",i);this.res=B;const b=B.writableNeedDrain!==undefined?B.writableNeedDrain:B._writableState&&B._writableState.needDrain;return b!==true}onData(r){const{res:s}=this;return s?s.write(r):true}onComplete(r){const{res:s}=this;C(this);if(!s){return}this.trailers=u.parseHeaders(r);s.end()}onError(r){const{res:s,callback:i,opaque:a,body:A}=this;C(this);this.factory=null;if(s){this.res=null;u.destroy(s,r)}else if(i){this.callback=null;queueMicrotask((()=>{this.runInAsyncScope(i,null,r,{opaque:a})}))}if(A){this.body=null;u.destroy(A,r)}}}function stream(r,s,i){if(i===undefined){return new Promise(((i,a)=>{stream.call(this,r,s,((r,s)=>r?a(r):i(s)))}))}try{this.dispatch(r,new StreamHandler(r,s,i))}catch(s){if(typeof i!=="function"){throw s}const a=r&&r.opaque;queueMicrotask((()=>i(s,{opaque:a})))}}r.exports=stream},77438:(r,s,i)=>{"use strict";const{InvalidArgumentError:a,RequestAbortedError:A,SocketError:c}=i(37715);const{AsyncResource:l}=i(50852);const d=i(82423);const{addSignal:u,removeSignal:p}=i(99930);const g=i(39491);class UpgradeHandler extends l{constructor(r,s){if(!r||typeof r!=="object"){throw new a("invalid opts")}if(typeof s!=="function"){throw new a("invalid callback")}const{signal:i,opaque:A,responseHeaders:c}=r;if(i&&typeof i.on!=="function"&&typeof i.addEventListener!=="function"){throw new a("signal must be an EventEmitter or EventTarget")}super("UNDICI_UPGRADE");this.responseHeaders=c||null;this.opaque=A||null;this.callback=s;this.abort=null;this.context=null;u(this,i)}onConnect(r,s){if(!this.callback){throw new A}this.abort=r;this.context=null}onHeaders(){throw new c("bad upgrade",null)}onUpgrade(r,s,i){const{callback:a,opaque:A,context:c}=this;g.strictEqual(r,101);p(this);this.callback=null;const l=this.responseHeaders==="raw"?d.parseRawHeaders(s):d.parseHeaders(s);this.runInAsyncScope(a,null,null,{headers:l,socket:i,opaque:A,context:c})}onError(r){const{callback:s,opaque:i}=this;p(this);if(s){this.callback=null;queueMicrotask((()=>{this.runInAsyncScope(s,null,r,{opaque:i})}))}}}function upgrade(r,s){if(s===undefined){return new Promise(((s,i)=>{upgrade.call(this,r,((r,a)=>r?i(r):s(a)))}))}try{const i=new UpgradeHandler(r,s);this.dispatch({...r,method:r.method||"GET",upgrade:r.protocol||"Websocket"},i)}catch(i){if(typeof s!=="function"){throw i}const a=r&&r.opaque;queueMicrotask((()=>s(i,{opaque:a})))}}r.exports=upgrade},23738:(r,s,i)=>{"use strict";r.exports.request=i(42704);r.exports.stream=i(26487);r.exports.pipeline=i(2173);r.exports.upgrade=i(77438);r.exports.connect=i(7044)},94262:(r,s,i)=>{"use strict";const a=i(39491);const{Readable:A}=i(12781);const{RequestAbortedError:c,NotSupportedError:l,InvalidArgumentError:d}=i(37715);const u=i(82423);const{ReadableStreamFrom:p,toUSVString:g}=i(82423);let h;const C=Symbol("kConsume");const y=Symbol("kReading");const I=Symbol("kBody");const B=Symbol("abort");const b=Symbol("kContentType");const noop=()=>{};r.exports=class BodyReadable extends A{constructor({resume:r,abort:s,contentType:i="",highWaterMark:a=64*1024}){super({autoDestroy:true,read:r,highWaterMark:a});this._readableState.dataEmitted=false;this[B]=s;this[C]=null;this[I]=null;this[b]=i;this[y]=false}destroy(r){if(this.destroyed){return this}if(!r&&!this._readableState.endEmitted){r=new c}if(r){this[B]()}return super.destroy(r)}emit(r,...s){if(r==="data"){this._readableState.dataEmitted=true}else if(r==="error"){this._readableState.errorEmitted=true}return super.emit(r,...s)}on(r,...s){if(r==="data"||r==="readable"){this[y]=true}return super.on(r,...s)}addListener(r,...s){return this.on(r,...s)}off(r,...s){const i=super.off(r,...s);if(r==="data"||r==="readable"){this[y]=this.listenerCount("data")>0||this.listenerCount("readable")>0}return i}removeListener(r,...s){return this.off(r,...s)}push(r){if(this[C]&&r!==null&&this.readableLength===0){consumePush(this[C],r);return this[y]?super.push(r):true}return super.push(r)}async text(){return consume(this,"text")}async json(){return consume(this,"json")}async blob(){return consume(this,"blob")}async arrayBuffer(){return consume(this,"arrayBuffer")}async formData(){throw new l}get bodyUsed(){return u.isDisturbed(this)}get body(){if(!this[I]){this[I]=p(this);if(this[C]){this[I].getReader();a(this[I].locked)}}return this[I]}dump(r){let s=r&&Number.isFinite(r.limit)?r.limit:262144;const i=r&&r.signal;if(i){try{if(typeof i!=="object"||!("aborted"in i)){throw new d("signal must be an AbortSignal")}u.throwIfAborted(i)}catch(r){return Promise.reject(r)}}if(this.closed){return Promise.resolve(null)}return new Promise(((r,a)=>{const A=i?u.addAbortListener(i,(()=>{this.destroy()})):noop;this.on("close",(function(){A();if(i&&i.aborted){a(i.reason||Object.assign(new Error("The operation was aborted"),{name:"AbortError"}))}else{r(null)}})).on("error",noop).on("data",(function(r){s-=r.length;if(s<=0){this.destroy()}})).resume()}))}};function isLocked(r){return r[I]&&r[I].locked===true||r[C]}function isUnusable(r){return u.isDisturbed(r)||isLocked(r)}async function consume(r,s){if(isUnusable(r)){throw new TypeError("unusable")}a(!r[C]);return new Promise(((i,a)=>{r[C]={type:s,stream:r,resolve:i,reject:a,length:0,body:[]};r.on("error",(function(r){consumeFinish(this[C],r)})).on("close",(function(){if(this[C].body!==null){consumeFinish(this[C],new c)}}));process.nextTick(consumeStart,r[C])}))}function consumeStart(r){if(r.body===null){return}const{_readableState:s}=r.stream;for(const i of s.buffer){consumePush(r,i)}if(s.endEmitted){consumeEnd(this[C])}else{r.stream.on("end",(function(){consumeEnd(this[C])}))}r.stream.resume();while(r.stream.read()!=null){}}function consumeEnd(r){const{type:s,body:a,resolve:A,stream:c,length:l}=r;try{if(s==="text"){A(g(Buffer.concat(a)))}else if(s==="json"){A(JSON.parse(Buffer.concat(a)))}else if(s==="arrayBuffer"){const r=new Uint8Array(l);let s=0;for(const i of a){r.set(i,s);s+=i.byteLength}A(r.buffer)}else if(s==="blob"){if(!h){h=i(14300).Blob}A(new h(a,{type:c[b]}))}consumeFinish(r)}catch(r){c.destroy(r)}}function consumePush(r,s){r.length+=s.length;r.body.push(s)}function consumeFinish(r,s){if(r.body===null){return}if(s){r.reject(s)}else{r.resolve()}r.type=null;r.stream=null;r.resolve=null;r.reject=null;r.length=0;r.body=null}},60169:(r,s,i)=>{const a=i(39491);const{ResponseStatusCodeError:A}=i(37715);const{toUSVString:c}=i(82423);async function getResolveErrorBodyCallback({callback:r,body:s,contentType:i,statusCode:l,statusMessage:d,headers:u}){a(s);let p=[];let g=0;for await(const r of s){p.push(r);g+=r.length;if(g>128*1024){p=null;break}}if(l===204||!i||!p){process.nextTick(r,new A(`Response status code ${l}${d?`: ${d}`:""}`,l,u));return}try{if(i.startsWith("application/json")){const s=JSON.parse(c(Buffer.concat(p)));process.nextTick(r,new A(`Response status code ${l}${d?`: ${d}`:""}`,l,u,s));return}if(i.startsWith("text/")){const s=c(Buffer.concat(p));process.nextTick(r,new A(`Response status code ${l}${d?`: ${d}`:""}`,l,u,s));return}}catch(r){}process.nextTick(r,new A(`Response status code ${l}${d?`: ${d}`:""}`,l,u))}r.exports={getResolveErrorBodyCallback:getResolveErrorBodyCallback}},20619:(r,s,i)=>{"use strict";const{BalancedPoolMissingUpstreamError:a,InvalidArgumentError:A}=i(37715);const{PoolBase:c,kClients:l,kNeedDrain:d,kAddClient:u,kRemoveClient:p,kGetDispatcher:g}=i(71061);const h=i(82928);const{kUrl:C,kInterceptors:y}=i(25999);const{parseOrigin:I}=i(82423);const B=Symbol("factory");const b=Symbol("options");const Q=Symbol("kGreatestCommonDivisor");const w=Symbol("kCurrentWeight");const v=Symbol("kIndex");const S=Symbol("kWeight");const R=Symbol("kMaxWeightPerServer");const N=Symbol("kErrorPenalty");function getGreatestCommonDivisor(r,s){if(s===0)return r;return getGreatestCommonDivisor(s,r%s)}function defaultFactory(r,s){return new h(r,s)}class BalancedPool extends c{constructor(r=[],{factory:s=defaultFactory,...i}={}){super();this[b]=i;this[v]=-1;this[w]=0;this[R]=this[b].maxWeightPerServer||100;this[N]=this[b].errorPenalty||15;if(!Array.isArray(r)){r=[r]}if(typeof s!=="function"){throw new A("factory must be a function.")}this[y]=i.interceptors&&i.interceptors.BalancedPool&&Array.isArray(i.interceptors.BalancedPool)?i.interceptors.BalancedPool:[];this[B]=s;for(const s of r){this.addUpstream(s)}this._updateBalancedPoolStats()}addUpstream(r){const s=I(r).origin;if(this[l].find((r=>r[C].origin===s&&r.closed!==true&&r.destroyed!==true))){return this}const i=this[B](s,Object.assign({},this[b]));this[u](i);i.on("connect",(()=>{i[S]=Math.min(this[R],i[S]+this[N])}));i.on("connectionError",(()=>{i[S]=Math.max(1,i[S]-this[N]);this._updateBalancedPoolStats()}));i.on("disconnect",((...r)=>{const s=r[2];if(s&&s.code==="UND_ERR_SOCKET"){i[S]=Math.max(1,i[S]-this[N]);this._updateBalancedPoolStats()}}));for(const r of this[l]){r[S]=this[R]}this._updateBalancedPoolStats();return this}_updateBalancedPoolStats(){this[Q]=this[l].map((r=>r[S])).reduce(getGreatestCommonDivisor,0)}removeUpstream(r){const s=I(r).origin;const i=this[l].find((r=>r[C].origin===s&&r.closed!==true&&r.destroyed!==true));if(i){this[p](i)}return this}get upstreams(){return this[l].filter((r=>r.closed!==true&&r.destroyed!==true)).map((r=>r[C].origin))}[g](){if(this[l].length===0){throw new a}const r=this[l].find((r=>!r[d]&&r.closed!==true&&r.destroyed!==true));if(!r){return}const s=this[l].map((r=>r[d])).reduce(((r,s)=>r&&s),true);if(s){return}let i=0;let A=this[l].findIndex((r=>!r[d]));while(i++this[l][A][S]&&!r[d]){A=this[v]}if(this[v]===0){this[w]=this[w]-this[Q];if(this[w]<=0){this[w]=this[R]}}if(r[S]>=this[w]&&!r[d]){return r}}this[w]=this[l][A][S];this[v]=A;return this[l][A]}}r.exports=BalancedPool},46125:(r,s,i)=>{"use strict";const{kConstruct:a}=i(17173);const{urlEquals:A,fieldValues:c}=i(82414);const{kEnumerableProperty:l,isDisturbed:d}=i(82423);const{kHeadersList:u}=i(25999);const{webidl:p}=i(81825);const{Response:g,cloneResponse:h}=i(65876);const{Request:C}=i(55247);const{kState:y,kHeaders:I,kGuard:B,kRealm:b}=i(80691);const{fetching:Q}=i(69538);const{urlIsHttpHttpsScheme:w,createDeferredPromise:v,readAllBytes:S}=i(35001);const R=i(39491);const{getGlobalDispatcher:N}=i(12475);class Cache{#e;constructor(){if(arguments[0]!==a){p.illegalConstructor()}this.#e=arguments[1]}async match(r,s={}){p.brandCheck(this,Cache);p.argumentLengthCheck(arguments,1,{header:"Cache.match"});r=p.converters.RequestInfo(r);s=p.converters.CacheQueryOptions(s);const i=await this.matchAll(r,s);if(i.length===0){return}return i[0]}async matchAll(r=undefined,s={}){p.brandCheck(this,Cache);if(r!==undefined)r=p.converters.RequestInfo(r);s=p.converters.CacheQueryOptions(s);let i=null;if(r!==undefined){if(r instanceof C){i=r[y];if(i.method!=="GET"&&!s.ignoreMethod){return[]}}else if(typeof r==="string"){i=new C(r)[y]}}const a=[];if(r===undefined){for(const r of this.#e){a.push(r[1])}}else{const r=this.#t(i,s);for(const s of r){a.push(s[1])}}const A=[];for(const r of a){const s=new g(r.body?.source??null);const i=s[y].body;s[y]=r;s[y].body=i;s[I][u]=r.headersList;s[I][B]="immutable";A.push(s)}return Object.freeze(A)}async add(r){p.brandCheck(this,Cache);p.argumentLengthCheck(arguments,1,{header:"Cache.add"});r=p.converters.RequestInfo(r);const s=[r];const i=this.addAll(s);return await i}async addAll(r){p.brandCheck(this,Cache);p.argumentLengthCheck(arguments,1,{header:"Cache.addAll"});r=p.converters["sequence"](r);const s=[];const i=[];for(const s of r){if(typeof s==="string"){continue}const r=s[y];if(!w(r.url)||r.method!=="GET"){throw p.errors.exception({header:"Cache.addAll",message:"Expected http/s scheme when method is not GET."})}}const a=[];for(const A of r){const r=new C(A)[y];if(!w(r.url)){throw p.errors.exception({header:"Cache.addAll",message:"Expected http/s scheme."})}r.initiator="fetch";r.destination="subresource";i.push(r);const l=v();a.push(Q({request:r,dispatcher:N(),processResponse(r){if(r.type==="error"||r.status===206||r.status<200||r.status>299){l.reject(p.errors.exception({header:"Cache.addAll",message:"Received an invalid status code or the request failed."}))}else if(r.headersList.contains("vary")){const s=c(r.headersList.get("vary"));for(const r of s){if(r==="*"){l.reject(p.errors.exception({header:"Cache.addAll",message:"invalid vary field value"}));for(const r of a){r.abort()}return}}}},processResponseEndOfBody(r){if(r.aborted){l.reject(new DOMException("aborted","AbortError"));return}l.resolve(r)}}));s.push(l.promise)}const A=Promise.all(s);const l=await A;const d=[];let u=0;for(const r of l){const s={type:"put",request:i[u],response:r};d.push(s);u++}const g=v();let h=null;try{this.#r(d)}catch(r){h=r}queueMicrotask((()=>{if(h===null){g.resolve(undefined)}else{g.reject(h)}}));return g.promise}async put(r,s){p.brandCheck(this,Cache);p.argumentLengthCheck(arguments,2,{header:"Cache.put"});r=p.converters.RequestInfo(r);s=p.converters.Response(s);let i=null;if(r instanceof C){i=r[y]}else{i=new C(r)[y]}if(!w(i.url)||i.method!=="GET"){throw p.errors.exception({header:"Cache.put",message:"Expected an http/s scheme when method is not GET"})}const a=s[y];if(a.status===206){throw p.errors.exception({header:"Cache.put",message:"Got 206 status"})}if(a.headersList.contains("vary")){const r=c(a.headersList.get("vary"));for(const s of r){if(s==="*"){throw p.errors.exception({header:"Cache.put",message:"Got * vary field value"})}}}if(a.body&&(d(a.body.stream)||a.body.stream.locked)){throw p.errors.exception({header:"Cache.put",message:"Response body is locked or disturbed"})}const A=h(a);const l=v();if(a.body!=null){const r=a.body.stream;const s=r.getReader();S(s).then(l.resolve,l.reject)}else{l.resolve(undefined)}const u=[];const g={type:"put",request:i,response:A};u.push(g);const I=await l.promise;if(A.body!=null){A.body.source=I}const B=v();let b=null;try{this.#r(u)}catch(r){b=r}queueMicrotask((()=>{if(b===null){B.resolve()}else{B.reject(b)}}));return B.promise}async delete(r,s={}){p.brandCheck(this,Cache);p.argumentLengthCheck(arguments,1,{header:"Cache.delete"});r=p.converters.RequestInfo(r);s=p.converters.CacheQueryOptions(s);let i=null;if(r instanceof C){i=r[y];if(i.method!=="GET"&&!s.ignoreMethod){return false}}else{R(typeof r==="string");i=new C(r)[y]}const a=[];const A={type:"delete",request:i,options:s};a.push(A);const c=v();let l=null;let d;try{d=this.#r(a)}catch(r){l=r}queueMicrotask((()=>{if(l===null){c.resolve(!!d?.length)}else{c.reject(l)}}));return c.promise}async keys(r=undefined,s={}){p.brandCheck(this,Cache);if(r!==undefined)r=p.converters.RequestInfo(r);s=p.converters.CacheQueryOptions(s);let i=null;if(r!==undefined){if(r instanceof C){i=r[y];if(i.method!=="GET"&&!s.ignoreMethod){return[]}}else if(typeof r==="string"){i=new C(r)[y]}}const a=v();const A=[];if(r===undefined){for(const r of this.#e){A.push(r[0])}}else{const r=this.#t(i,s);for(const s of r){A.push(s[0])}}queueMicrotask((()=>{const r=[];for(const s of A){const i=new C("https://a");i[y]=s;i[I][u]=s.headersList;i[I][B]="immutable";i[b]=s.client;r.push(i)}a.resolve(Object.freeze(r))}));return a.promise}#r(r){const s=this.#e;const i=[...s];const a=[];const A=[];try{for(const i of r){if(i.type!=="delete"&&i.type!=="put"){throw p.errors.exception({header:"Cache.#batchCacheOperations",message:'operation type does not match "delete" or "put"'})}if(i.type==="delete"&&i.response!=null){throw p.errors.exception({header:"Cache.#batchCacheOperations",message:"delete operation should not have an associated response"})}if(this.#t(i.request,i.options,a).length){throw new DOMException("???","InvalidStateError")}let r;if(i.type==="delete"){r=this.#t(i.request,i.options);if(r.length===0){return[]}for(const i of r){const r=s.indexOf(i);R(r!==-1);s.splice(r,1)}}else if(i.type==="put"){if(i.response==null){throw p.errors.exception({header:"Cache.#batchCacheOperations",message:"put operation should have an associated response"})}const A=i.request;if(!w(A.url)){throw p.errors.exception({header:"Cache.#batchCacheOperations",message:"expected http or https scheme"})}if(A.method!=="GET"){throw p.errors.exception({header:"Cache.#batchCacheOperations",message:"not get method"})}if(i.options!=null){throw p.errors.exception({header:"Cache.#batchCacheOperations",message:"options must not be defined"})}r=this.#t(i.request);for(const i of r){const r=s.indexOf(i);R(r!==-1);s.splice(r,1)}s.push([i.request,i.response]);a.push([i.request,i.response])}A.push([i.request,i.response])}return A}catch(r){this.#e.length=0;this.#e=i;throw r}}#t(r,s,i){const a=[];const A=i??this.#e;for(const i of A){const[A,c]=i;if(this.#n(r,A,c,s)){a.push(i)}}return a}#n(r,s,i=null,a){const l=new URL(r.url);const d=new URL(s.url);if(a?.ignoreSearch){d.search="";l.search=""}if(!A(l,d,true)){return false}if(i==null||a?.ignoreVary||!i.headersList.contains("vary")){return true}const u=c(i.headersList.get("vary"));for(const i of u){if(i==="*"){return false}const a=s.headersList.get(i);const A=r.headersList.get(i);if(a!==A){return false}}return true}}Object.defineProperties(Cache.prototype,{[Symbol.toStringTag]:{value:"Cache",configurable:true},match:l,matchAll:l,add:l,addAll:l,put:l,delete:l,keys:l});const x=[{key:"ignoreSearch",converter:p.converters.boolean,defaultValue:false},{key:"ignoreMethod",converter:p.converters.boolean,defaultValue:false},{key:"ignoreVary",converter:p.converters.boolean,defaultValue:false}];p.converters.CacheQueryOptions=p.dictionaryConverter(x);p.converters.MultiCacheQueryOptions=p.dictionaryConverter([...x,{key:"cacheName",converter:p.converters.DOMString}]);p.converters.Response=p.interfaceConverter(g);p.converters["sequence"]=p.sequenceConverter(p.converters.RequestInfo);r.exports={Cache:Cache}},39984:(r,s,i)=>{"use strict";const{kConstruct:a}=i(17173);const{Cache:A}=i(46125);const{webidl:c}=i(81825);const{kEnumerableProperty:l}=i(82423);class CacheStorage{#s=new Map;constructor(){if(arguments[0]!==a){c.illegalConstructor()}}async match(r,s={}){c.brandCheck(this,CacheStorage);c.argumentLengthCheck(arguments,1,{header:"CacheStorage.match"});r=c.converters.RequestInfo(r);s=c.converters.MultiCacheQueryOptions(s);if(s.cacheName!=null){if(this.#s.has(s.cacheName)){const i=this.#s.get(s.cacheName);const c=new A(a,i);return await c.match(r,s)}}else{for(const i of this.#s.values()){const c=new A(a,i);const l=await c.match(r,s);if(l!==undefined){return l}}}}async has(r){c.brandCheck(this,CacheStorage);c.argumentLengthCheck(arguments,1,{header:"CacheStorage.has"});r=c.converters.DOMString(r);return this.#s.has(r)}async open(r){c.brandCheck(this,CacheStorage);c.argumentLengthCheck(arguments,1,{header:"CacheStorage.open"});r=c.converters.DOMString(r);if(this.#s.has(r)){const s=this.#s.get(r);return new A(a,s)}const s=[];this.#s.set(r,s);return new A(a,s)}async delete(r){c.brandCheck(this,CacheStorage);c.argumentLengthCheck(arguments,1,{header:"CacheStorage.delete"});r=c.converters.DOMString(r);return this.#s.delete(r)}async keys(){c.brandCheck(this,CacheStorage);const r=this.#s.keys();return[...r]}}Object.defineProperties(CacheStorage.prototype,{[Symbol.toStringTag]:{value:"CacheStorage",configurable:true},match:l,has:l,open:l,delete:l,keys:l});r.exports={CacheStorage:CacheStorage}},17173:(r,s,i)=>{"use strict";r.exports={kConstruct:i(25999).kConstruct}},82414:(r,s,i)=>{"use strict";const a=i(39491);const{URLSerializer:A}=i(44864);const{isValidHeaderName:c}=i(35001);function urlEquals(r,s,i=false){const a=A(r,i);const c=A(s,i);return a===c}function fieldValues(r){a(r!==null);const s=[];for(let i of r.split(",")){i=i.trim();if(!i.length){continue}else if(!c(i)){continue}s.push(i)}return s}r.exports={urlEquals:urlEquals,fieldValues:fieldValues}},17152:(r,s,i)=>{"use strict";const a=i(39491);const A=i(41808);const c=i(13685);const{pipeline:l}=i(12781);const d=i(82423);const u=i(75816);const p=i(46091);const g=i(75971);const{RequestContentLengthMismatchError:h,ResponseContentLengthMismatchError:C,InvalidArgumentError:y,RequestAbortedError:I,HeadersTimeoutError:B,HeadersOverflowError:b,SocketError:Q,InformationalError:w,BodyTimeoutError:v,HTTPParserError:S,ResponseExceededMaxSizeError:R,ClientDestroyedError:N}=i(37715);const x=i(69690);const{kUrl:D,kReset:k,kServerName:T,kClient:_,kBusy:P,kParser:O,kConnect:L,kBlocking:M,kResuming:U,kRunning:H,kPending:G,kSize:q,kWriting:V,kQueue:j,kConnected:z,kConnecting:Y,kNeedDrain:J,kNoRef:W,kKeepAliveDefaultTimeout:X,kHostHeader:$,kPendingIdx:K,kRunningIdx:Z,kError:ee,kPipelining:te,kSocket:re,kKeepAliveTimeoutValue:ne,kMaxHeadersSize:se,kKeepAliveMaxTimeout:ie,kKeepAliveTimeoutThreshold:oe,kHeadersTimeout:ae,kBodyTimeout:Ae,kStrictContentLength:ce,kConnector:le,kMaxRedirections:de,kMaxRequests:ue,kCounter:pe,kClose:ge,kDestroy:he,kDispatch:me,kInterceptors:fe,kLocalAddress:Ee,kMaxResponseSize:Ce,kHTTPConnVersion:ye,kHost:Ie,kHTTP2Session:Be,kHTTP2SessionState:be,kHTTP2BuildRequest:Qe,kHTTP2CopyHeaders:we,kHTTP1BuildRequest:ve}=i(25999);let Se;try{Se=i(85158)}catch{Se={constants:{}}}const{constants:{HTTP2_HEADER_AUTHORITY:Re,HTTP2_HEADER_METHOD:Ne,HTTP2_HEADER_PATH:xe,HTTP2_HEADER_SCHEME:De,HTTP2_HEADER_CONTENT_LENGTH:ke,HTTP2_HEADER_EXPECT:Te,HTTP2_HEADER_STATUS:_e}}=Se;let Pe=false;const Oe=Buffer[Symbol.species];const Fe=Symbol("kClosedResolve");const Le={};try{const r=i(67643);Le.sendHeaders=r.channel("undici:client:sendHeaders");Le.beforeConnect=r.channel("undici:client:beforeConnect");Le.connectError=r.channel("undici:client:connectError");Le.connected=r.channel("undici:client:connected")}catch{Le.sendHeaders={hasSubscribers:false};Le.beforeConnect={hasSubscribers:false};Le.connectError={hasSubscribers:false};Le.connected={hasSubscribers:false}}class Client extends g{constructor(r,{interceptors:s,maxHeaderSize:i,headersTimeout:a,socketTimeout:l,requestTimeout:u,connectTimeout:p,bodyTimeout:g,idleTimeout:h,keepAlive:C,keepAliveTimeout:I,maxKeepAliveTimeout:B,keepAliveMaxTimeout:b,keepAliveTimeoutThreshold:Q,socketPath:w,pipelining:v,tls:S,strictContentLength:R,maxCachedSessions:N,maxRedirections:k,connect:_,maxRequestsPerClient:P,localAddress:O,maxResponseSize:L,autoSelectFamily:M,autoSelectFamilyAttemptTimeout:H,allowH2:G,maxConcurrentStreams:q}={}){super();if(C!==undefined){throw new y("unsupported keepAlive, use pipelining=0 instead")}if(l!==undefined){throw new y("unsupported socketTimeout, use headersTimeout & bodyTimeout instead")}if(u!==undefined){throw new y("unsupported requestTimeout, use headersTimeout & bodyTimeout instead")}if(h!==undefined){throw new y("unsupported idleTimeout, use keepAliveTimeout instead")}if(B!==undefined){throw new y("unsupported maxKeepAliveTimeout, use keepAliveMaxTimeout instead")}if(i!=null&&!Number.isFinite(i)){throw new y("invalid maxHeaderSize")}if(w!=null&&typeof w!=="string"){throw new y("invalid socketPath")}if(p!=null&&(!Number.isFinite(p)||p<0)){throw new y("invalid connectTimeout")}if(I!=null&&(!Number.isFinite(I)||I<=0)){throw new y("invalid keepAliveTimeout")}if(b!=null&&(!Number.isFinite(b)||b<=0)){throw new y("invalid keepAliveMaxTimeout")}if(Q!=null&&!Number.isFinite(Q)){throw new y("invalid keepAliveTimeoutThreshold")}if(a!=null&&(!Number.isInteger(a)||a<0)){throw new y("headersTimeout must be a positive integer or zero")}if(g!=null&&(!Number.isInteger(g)||g<0)){throw new y("bodyTimeout must be a positive integer or zero")}if(_!=null&&typeof _!=="function"&&typeof _!=="object"){throw new y("connect must be a function or an object")}if(k!=null&&(!Number.isInteger(k)||k<0)){throw new y("maxRedirections must be a positive number")}if(P!=null&&(!Number.isInteger(P)||P<0)){throw new y("maxRequestsPerClient must be a positive number")}if(O!=null&&(typeof O!=="string"||A.isIP(O)===0)){throw new y("localAddress must be valid string IP address")}if(L!=null&&(!Number.isInteger(L)||L<-1)){throw new y("maxResponseSize must be a positive number")}if(H!=null&&(!Number.isInteger(H)||H<-1)){throw new y("autoSelectFamilyAttemptTimeout must be a positive number")}if(G!=null&&typeof G!=="boolean"){throw new y("allowH2 must be a valid boolean value")}if(q!=null&&(typeof q!=="number"||q<1)){throw new y("maxConcurrentStreams must be a possitive integer, greater than 0")}if(typeof _!=="function"){_=x({...S,maxCachedSessions:N,allowH2:G,socketPath:w,timeout:p,...d.nodeHasAutoSelectFamily&&M?{autoSelectFamily:M,autoSelectFamilyAttemptTimeout:H}:undefined,..._})}this[fe]=s&&s.Client&&Array.isArray(s.Client)?s.Client:[Ue({maxRedirections:k})];this[D]=d.parseOrigin(r);this[le]=_;this[re]=null;this[te]=v!=null?v:1;this[se]=i||c.maxHeaderSize;this[X]=I==null?4e3:I;this[ie]=b==null?6e5:b;this[oe]=Q==null?1e3:Q;this[ne]=this[X];this[T]=null;this[Ee]=O!=null?O:null;this[U]=0;this[J]=0;this[$]=`host: ${this[D].hostname}${this[D].port?`:${this[D].port}`:""}\r\n`;this[Ae]=g!=null?g:3e5;this[ae]=a!=null?a:3e5;this[ce]=R==null?true:R;this[de]=k;this[ue]=P;this[Fe]=null;this[Ce]=L>-1?L:-1;this[ye]="h1";this[Be]=null;this[be]=!G?null:{openStreams:0,maxConcurrentStreams:q!=null?q:100};this[Ie]=`${this[D].hostname}${this[D].port?`:${this[D].port}`:""}`;this[j]=[];this[Z]=0;this[K]=0}get pipelining(){return this[te]}set pipelining(r){this[te]=r;resume(this,true)}get[G](){return this[j].length-this[K]}get[H](){return this[K]-this[Z]}get[q](){return this[j].length-this[Z]}get[z](){return!!this[re]&&!this[Y]&&!this[re].destroyed}get[P](){const r=this[re];return r&&(r[k]||r[V]||r[M])||this[q]>=(this[te]||1)||this[G]>0}[L](r){connect(this);this.once("connect",r)}[me](r,s){const i=r.origin||this[D].origin;const a=this[ye]==="h2"?p[Qe](i,r,s):p[ve](i,r,s);this[j].push(a);if(this[U]){}else if(d.bodyLength(a.body)==null&&d.isIterable(a.body)){this[U]=1;process.nextTick(resume,this)}else{resume(this,true)}if(this[U]&&this[J]!==2&&this[P]){this[J]=2}return this[J]<2}async[ge](){return new Promise((r=>{if(!this[q]){r(null)}else{this[Fe]=r}}))}async[he](r){return new Promise((s=>{const i=this[j].splice(this[K]);for(let s=0;s{if(this[Fe]){this[Fe]();this[Fe]=null}s()};if(this[Be]!=null){d.destroy(this[Be],r);this[Be]=null;this[be]=null}if(!this[re]){queueMicrotask(callback)}else{d.destroy(this[re].on("close",callback),r)}resume(this)}))}}function onHttp2SessionError(r){a(r.code!=="ERR_TLS_CERT_ALTNAME_INVALID");this[re][ee]=r;onError(this[_],r)}function onHttp2FrameError(r,s,i){const a=new w(`HTTP/2: "frameError" received - type ${r}, code ${s}`);if(i===0){this[re][ee]=a;onError(this[_],a)}}function onHttp2SessionEnd(){d.destroy(this,new Q("other side closed"));d.destroy(this[re],new Q("other side closed"))}function onHTTP2GoAway(r){const s=this[_];const i=new w(`HTTP/2: "GOAWAY" frame received with code ${r}`);s[re]=null;s[Be]=null;if(s.destroyed){a(this[G]===0);const r=s[j].splice(s[Z]);for(let s=0;s0){const r=s[j][s[Z]];s[j][s[Z]++]=null;errorRequest(s,r,i)}s[K]=s[Z];a(s[H]===0);s.emit("disconnect",s[D],[s],i);resume(s)}const Me=i(78764);const Ue=i(71856);const He=Buffer.alloc(0);async function lazyllhttp(){const r=process.env.JEST_WORKER_ID?i(56425):undefined;let s;try{s=await WebAssembly.compile(Buffer.from(i(4509),"base64"))}catch(a){s=await WebAssembly.compile(Buffer.from(r||i(56425),"base64"))}return await WebAssembly.instantiate(s,{env:{wasm_on_url:(r,s,i)=>0,wasm_on_status:(r,s,i)=>{a.strictEqual(Ve.ptr,r);const A=s-Ye+je.byteOffset;return Ve.onStatus(new Oe(je.buffer,A,i))||0},wasm_on_message_begin:r=>{a.strictEqual(Ve.ptr,r);return Ve.onMessageBegin()||0},wasm_on_header_field:(r,s,i)=>{a.strictEqual(Ve.ptr,r);const A=s-Ye+je.byteOffset;return Ve.onHeaderField(new Oe(je.buffer,A,i))||0},wasm_on_header_value:(r,s,i)=>{a.strictEqual(Ve.ptr,r);const A=s-Ye+je.byteOffset;return Ve.onHeaderValue(new Oe(je.buffer,A,i))||0},wasm_on_headers_complete:(r,s,i,A)=>{a.strictEqual(Ve.ptr,r);return Ve.onHeadersComplete(s,Boolean(i),Boolean(A))||0},wasm_on_body:(r,s,i)=>{a.strictEqual(Ve.ptr,r);const A=s-Ye+je.byteOffset;return Ve.onBody(new Oe(je.buffer,A,i))||0},wasm_on_message_complete:r=>{a.strictEqual(Ve.ptr,r);return Ve.onMessageComplete()||0}}})}let Ge=null;let qe=lazyllhttp();qe.catch();let Ve=null;let je=null;let ze=0;let Ye=null;const Je=1;const We=2;const Xe=3;class Parser{constructor(r,s,{exports:i}){a(Number.isFinite(r[se])&&r[se]>0);this.llhttp=i;this.ptr=this.llhttp.llhttp_alloc(Me.TYPE.RESPONSE);this.client=r;this.socket=s;this.timeout=null;this.timeoutValue=null;this.timeoutType=null;this.statusCode=null;this.statusText="";this.upgrade=false;this.headers=[];this.headersSize=0;this.headersMaxSize=r[se];this.shouldKeepAlive=false;this.paused=false;this.resume=this.resume.bind(this);this.bytesRead=0;this.keepAlive="";this.contentLength="";this.connection="";this.maxResponseSize=r[Ce]}setTimeout(r,s){this.timeoutType=s;if(r!==this.timeoutValue){u.clearTimeout(this.timeout);if(r){this.timeout=u.setTimeout(onParserTimeout,r,this);if(this.timeout.unref){this.timeout.unref()}}else{this.timeout=null}this.timeoutValue=r}else if(this.timeout){if(this.timeout.refresh){this.timeout.refresh()}}}resume(){if(this.socket.destroyed||!this.paused){return}a(this.ptr!=null);a(Ve==null);this.llhttp.llhttp_resume(this.ptr);a(this.timeoutType===We);if(this.timeout){if(this.timeout.refresh){this.timeout.refresh()}}this.paused=false;this.execute(this.socket.read()||He);this.readMore()}readMore(){while(!this.paused&&this.ptr){const r=this.socket.read();if(r===null){break}this.execute(r)}}execute(r){a(this.ptr!=null);a(Ve==null);a(!this.paused);const{socket:s,llhttp:i}=this;if(r.length>ze){if(Ye){i.free(Ye)}ze=Math.ceil(r.length/4096)*4096;Ye=i.malloc(ze)}new Uint8Array(i.memory.buffer,Ye,ze).set(r);try{let a;try{je=r;Ve=this;a=i.llhttp_execute(this.ptr,Ye,r.length)}catch(r){throw r}finally{Ve=null;je=null}const A=i.llhttp_get_error_pos(this.ptr)-Ye;if(a===Me.ERROR.PAUSED_UPGRADE){this.onUpgrade(r.slice(A))}else if(a===Me.ERROR.PAUSED){this.paused=true;s.unshift(r.slice(A))}else if(a!==Me.ERROR.OK){const s=i.llhttp_get_error_reason(this.ptr);let c="";if(s){const r=new Uint8Array(i.memory.buffer,s).indexOf(0);c="Response does not match the HTTP/1.1 protocol ("+Buffer.from(i.memory.buffer,s,r).toString()+")"}throw new S(c,Me.ERROR[a],r.slice(A))}}catch(r){d.destroy(s,r)}}destroy(){a(this.ptr!=null);a(Ve==null);this.llhttp.llhttp_free(this.ptr);this.ptr=null;u.clearTimeout(this.timeout);this.timeout=null;this.timeoutValue=null;this.timeoutType=null;this.paused=false}onStatus(r){this.statusText=r.toString()}onMessageBegin(){const{socket:r,client:s}=this;if(r.destroyed){return-1}const i=s[j][s[Z]];if(!i){return-1}}onHeaderField(r){const s=this.headers.length;if((s&1)===0){this.headers.push(r)}else{this.headers[s-1]=Buffer.concat([this.headers[s-1],r])}this.trackHeader(r.length)}onHeaderValue(r){let s=this.headers.length;if((s&1)===1){this.headers.push(r);s+=1}else{this.headers[s-1]=Buffer.concat([this.headers[s-1],r])}const i=this.headers[s-2];if(i.length===10&&i.toString().toLowerCase()==="keep-alive"){this.keepAlive+=r.toString()}else if(i.length===10&&i.toString().toLowerCase()==="connection"){this.connection+=r.toString()}else if(i.length===14&&i.toString().toLowerCase()==="content-length"){this.contentLength+=r.toString()}this.trackHeader(r.length)}trackHeader(r){this.headersSize+=r;if(this.headersSize>=this.headersMaxSize){d.destroy(this.socket,new b)}}onUpgrade(r){const{upgrade:s,client:i,socket:A,headers:c,statusCode:l}=this;a(s);const u=i[j][i[Z]];a(u);a(!A.destroyed);a(A===i[re]);a(!this.paused);a(u.upgrade||u.method==="CONNECT");this.statusCode=null;this.statusText="";this.shouldKeepAlive=null;a(this.headers.length%2===0);this.headers=[];this.headersSize=0;A.unshift(r);A[O].destroy();A[O]=null;A[_]=null;A[ee]=null;A.removeListener("error",onSocketError).removeListener("readable",onSocketReadable).removeListener("end",onSocketEnd).removeListener("close",onSocketClose);i[re]=null;i[j][i[Z]++]=null;i.emit("disconnect",i[D],[i],new w("upgrade"));try{u.onUpgrade(l,c,A)}catch(r){d.destroy(A,r)}resume(i)}onHeadersComplete(r,s,i){const{client:A,socket:c,headers:l,statusText:u}=this;if(c.destroyed){return-1}const p=A[j][A[Z]];if(!p){return-1}a(!this.upgrade);a(this.statusCode<200);if(r===100){d.destroy(c,new Q("bad response",d.getSocketInfo(c)));return-1}if(s&&!p.upgrade){d.destroy(c,new Q("bad upgrade",d.getSocketInfo(c)));return-1}a.strictEqual(this.timeoutType,Je);this.statusCode=r;this.shouldKeepAlive=i||p.method==="HEAD"&&!c[k]&&this.connection.toLowerCase()==="keep-alive";if(this.statusCode>=200){const r=p.bodyTimeout!=null?p.bodyTimeout:A[Ae];this.setTimeout(r,We)}else if(this.timeout){if(this.timeout.refresh){this.timeout.refresh()}}if(p.method==="CONNECT"){a(A[H]===1);this.upgrade=true;return 2}if(s){a(A[H]===1);this.upgrade=true;return 2}a(this.headers.length%2===0);this.headers=[];this.headersSize=0;if(this.shouldKeepAlive&&A[te]){const r=this.keepAlive?d.parseKeepAliveTimeout(this.keepAlive):null;if(r!=null){const s=Math.min(r-A[oe],A[ie]);if(s<=0){c[k]=true}else{A[ne]=s}}else{A[ne]=A[X]}}else{c[k]=true}const g=p.onHeaders(r,l,this.resume,u)===false;if(p.aborted){return-1}if(p.method==="HEAD"){return 1}if(r<200){return 1}if(c[M]){c[M]=false;resume(A)}return g?Me.ERROR.PAUSED:0}onBody(r){const{client:s,socket:i,statusCode:A,maxResponseSize:c}=this;if(i.destroyed){return-1}const l=s[j][s[Z]];a(l);a.strictEqual(this.timeoutType,We);if(this.timeout){if(this.timeout.refresh){this.timeout.refresh()}}a(A>=200);if(c>-1&&this.bytesRead+r.length>c){d.destroy(i,new R);return-1}this.bytesRead+=r.length;if(l.onData(r)===false){return Me.ERROR.PAUSED}}onMessageComplete(){const{client:r,socket:s,statusCode:i,upgrade:A,headers:c,contentLength:l,bytesRead:u,shouldKeepAlive:p}=this;if(s.destroyed&&(!i||p)){return-1}if(A){return}const g=r[j][r[Z]];a(g);a(i>=100);this.statusCode=null;this.statusText="";this.bytesRead=0;this.contentLength="";this.keepAlive="";this.connection="";a(this.headers.length%2===0);this.headers=[];this.headersSize=0;if(i<200){return}if(g.method!=="HEAD"&&l&&u!==parseInt(l,10)){d.destroy(s,new C);return-1}g.onComplete(c);r[j][r[Z]++]=null;if(s[V]){a.strictEqual(r[H],0);d.destroy(s,new w("reset"));return Me.ERROR.PAUSED}else if(!p){d.destroy(s,new w("reset"));return Me.ERROR.PAUSED}else if(s[k]&&r[H]===0){d.destroy(s,new w("reset"));return Me.ERROR.PAUSED}else if(r[te]===1){setImmediate(resume,r)}else{resume(r)}}}function onParserTimeout(r){const{socket:s,timeoutType:i,client:A}=r;if(i===Je){if(!s[V]||s.writableNeedDrain||A[H]>1){a(!r.paused,"cannot be paused while waiting for headers");d.destroy(s,new B)}}else if(i===We){if(!r.paused){d.destroy(s,new v)}}else if(i===Xe){a(A[H]===0&&A[ne]);d.destroy(s,new w("socket idle timeout"))}}function onSocketReadable(){const{[O]:r}=this;if(r){r.readMore()}}function onSocketError(r){const{[_]:s,[O]:i}=this;a(r.code!=="ERR_TLS_CERT_ALTNAME_INVALID");if(s[ye]!=="h2"){if(r.code==="ECONNRESET"&&i.statusCode&&!i.shouldKeepAlive){i.onMessageComplete();return}}this[ee]=r;onError(this[_],r)}function onError(r,s){if(r[H]===0&&s.code!=="UND_ERR_INFO"&&s.code!=="UND_ERR_SOCKET"){a(r[K]===r[Z]);const i=r[j].splice(r[Z]);for(let a=0;a0&&i.code!=="UND_ERR_INFO"){const s=r[j][r[Z]];r[j][r[Z]++]=null;errorRequest(r,s,i)}r[K]=r[Z];a(r[H]===0);r.emit("disconnect",r[D],[r],i);resume(r)}async function connect(r){a(!r[Y]);a(!r[re]);let{host:s,hostname:i,protocol:c,port:l}=r[D];if(i[0]==="["){const r=i.indexOf("]");a(r!==-1);const s=i.substring(1,r);a(A.isIP(s));i=s}r[Y]=true;if(Le.beforeConnect.hasSubscribers){Le.beforeConnect.publish({connectParams:{host:s,hostname:i,protocol:c,port:l,servername:r[T],localAddress:r[Ee]},connector:r[le]})}try{const A=await new Promise(((a,A)=>{r[le]({host:s,hostname:i,protocol:c,port:l,servername:r[T],localAddress:r[Ee]},((r,s)=>{if(r){A(r)}else{a(s)}}))}));if(r.destroyed){d.destroy(A.on("error",(()=>{})),new N);return}r[Y]=false;a(A);const u=A.alpnProtocol==="h2";if(u){if(!Pe){Pe=true;process.emitWarning("H2 support is experimental, expect them to change at any time.",{code:"UNDICI-H2"})}const s=Se.connect(r[D],{createConnection:()=>A,peerMaxConcurrentStreams:r[be].maxConcurrentStreams});r[ye]="h2";s[_]=r;s[re]=A;s.on("error",onHttp2SessionError);s.on("frameError",onHttp2FrameError);s.on("end",onHttp2SessionEnd);s.on("goaway",onHTTP2GoAway);s.on("close",onSocketClose);s.unref();r[Be]=s;A[Be]=s}else{if(!Ge){Ge=await qe;qe=null}A[W]=false;A[V]=false;A[k]=false;A[M]=false;A[O]=new Parser(r,A,Ge)}A[pe]=0;A[ue]=r[ue];A[_]=r;A[ee]=null;A.on("error",onSocketError).on("readable",onSocketReadable).on("end",onSocketEnd).on("close",onSocketClose);r[re]=A;if(Le.connected.hasSubscribers){Le.connected.publish({connectParams:{host:s,hostname:i,protocol:c,port:l,servername:r[T],localAddress:r[Ee]},connector:r[le],socket:A})}r.emit("connect",r[D],[r])}catch(A){if(r.destroyed){return}r[Y]=false;if(Le.connectError.hasSubscribers){Le.connectError.publish({connectParams:{host:s,hostname:i,protocol:c,port:l,servername:r[T],localAddress:r[Ee]},connector:r[le],error:A})}if(A.code==="ERR_TLS_CERT_ALTNAME_INVALID"){a(r[H]===0);while(r[G]>0&&r[j][r[K]].servername===r[T]){const s=r[j][r[K]++];errorRequest(r,s,A)}}else{onError(r,A)}r.emit("connectionError",r[D],[r],A)}resume(r)}function emitDrain(r){r[J]=0;r.emit("drain",r[D],[r])}function resume(r,s){if(r[U]===2){return}r[U]=2;_resume(r,s);r[U]=0;if(r[Z]>256){r[j].splice(0,r[Z]);r[K]-=r[Z];r[Z]=0}}function _resume(r,s){while(true){if(r.destroyed){a(r[G]===0);return}if(r[Fe]&&!r[q]){r[Fe]();r[Fe]=null;return}const i=r[re];if(i&&!i.destroyed&&i.alpnProtocol!=="h2"){if(r[q]===0){if(!i[W]&&i.unref){i.unref();i[W]=true}}else if(i[W]&&i.ref){i.ref();i[W]=false}if(r[q]===0){if(i[O].timeoutType!==Xe){i[O].setTimeout(r[ne],Xe)}}else if(r[H]>0&&i[O].statusCode<200){if(i[O].timeoutType!==Je){const s=r[j][r[Z]];const a=s.headersTimeout!=null?s.headersTimeout:r[ae];i[O].setTimeout(a,Je)}}}if(r[P]){r[J]=2}else if(r[J]===2){if(s){r[J]=1;process.nextTick(emitDrain,r)}else{emitDrain(r)}continue}if(r[G]===0){return}if(r[H]>=(r[te]||1)){return}const A=r[j][r[K]];if(r[D].protocol==="https:"&&r[T]!==A.servername){if(r[H]>0){return}r[T]=A.servername;if(i&&i.servername!==A.servername){d.destroy(i,new w("servername changed"));return}}if(r[Y]){return}if(!i&&!r[Be]){connect(r);return}if(i.destroyed||i[V]||i[k]||i[M]){return}if(r[H]>0&&!A.idempotent){return}if(r[H]>0&&(A.upgrade||A.method==="CONNECT")){return}if(r[H]>0&&d.bodyLength(A.body)!==0&&(d.isStream(A.body)||d.isAsyncIterable(A.body))){return}if(!A.aborted&&write(r,A)){r[K]++}else{r[j].splice(r[K],1)}}}function shouldSendContentLength(r){return r!=="GET"&&r!=="HEAD"&&r!=="OPTIONS"&&r!=="TRACE"&&r!=="CONNECT"}function write(r,s){if(r[ye]==="h2"){writeH2(r,r[Be],s);return}const{body:i,method:A,path:c,host:l,upgrade:u,headers:p,blocking:g,reset:C}=s;const y=A==="PUT"||A==="POST"||A==="PATCH";if(i&&typeof i.read==="function"){i.read(0)}const B=d.bodyLength(i);let b=B;if(b===null){b=s.contentLength}if(b===0&&!y){b=null}if(shouldSendContentLength(A)&&b>0&&s.contentLength!==null&&s.contentLength!==b){if(r[ce]){errorRequest(r,s,new h);return false}process.emitWarning(new h)}const Q=r[re];try{s.onConnect((i=>{if(s.aborted||s.completed){return}errorRequest(r,s,i||new I);d.destroy(Q,new w("aborted"))}))}catch(i){errorRequest(r,s,i)}if(s.aborted){return false}if(A==="HEAD"){Q[k]=true}if(u||A==="CONNECT"){Q[k]=true}if(C!=null){Q[k]=C}if(r[ue]&&Q[pe]++>=r[ue]){Q[k]=true}if(g){Q[M]=true}let v=`${A} ${c} HTTP/1.1\r\n`;if(typeof l==="string"){v+=`host: ${l}\r\n`}else{v+=r[$]}if(u){v+=`connection: upgrade\r\nupgrade: ${u}\r\n`}else if(r[te]&&!Q[k]){v+="connection: keep-alive\r\n"}else{v+="connection: close\r\n"}if(p){v+=p}if(Le.sendHeaders.hasSubscribers){Le.sendHeaders.publish({request:s,headers:v,socket:Q})}if(!i||B===0){if(b===0){Q.write(`${v}content-length: 0\r\n\r\n`,"latin1")}else{a(b===null,"no body must not have content length");Q.write(`${v}\r\n`,"latin1")}s.onRequestSent()}else if(d.isBuffer(i)){a(b===i.byteLength,"buffer body must have content length");Q.cork();Q.write(`${v}content-length: ${b}\r\n\r\n`,"latin1");Q.write(i);Q.uncork();s.onBodySent(i);s.onRequestSent();if(!y){Q[k]=true}}else if(d.isBlobLike(i)){if(typeof i.stream==="function"){writeIterable({body:i.stream(),client:r,request:s,socket:Q,contentLength:b,header:v,expectsPayload:y})}else{writeBlob({body:i,client:r,request:s,socket:Q,contentLength:b,header:v,expectsPayload:y})}}else if(d.isStream(i)){writeStream({body:i,client:r,request:s,socket:Q,contentLength:b,header:v,expectsPayload:y})}else if(d.isIterable(i)){writeIterable({body:i,client:r,request:s,socket:Q,contentLength:b,header:v,expectsPayload:y})}else{a(false)}return true}function writeH2(r,s,i){const{body:A,method:c,path:l,host:u,upgrade:g,expectContinue:C,signal:y,headers:B}=i;let b;if(typeof B==="string")b=p[we](B.trim());else b=B;if(g){errorRequest(r,i,new Error("Upgrade not supported for H2"));return false}try{i.onConnect((s=>{if(i.aborted||i.completed){return}errorRequest(r,i,s||new I)}))}catch(s){errorRequest(r,i,s)}if(i.aborted){return false}let Q;const v=r[be];b[Re]=u||r[Ie];b[Ne]=c;if(c==="CONNECT"){s.ref();Q=s.request(b,{endStream:false,signal:y});if(Q.id&&!Q.pending){i.onUpgrade(null,null,Q);++v.openStreams}else{Q.once("ready",(()=>{i.onUpgrade(null,null,Q);++v.openStreams}))}Q.once("close",(()=>{v.openStreams-=1;if(v.openStreams===0)s.unref()}));return true}b[xe]=l;b[De]="https";const S=c==="PUT"||c==="POST"||c==="PATCH";if(A&&typeof A.read==="function"){A.read(0)}let R=d.bodyLength(A);if(R==null){R=i.contentLength}if(R===0||!S){R=null}if(shouldSendContentLength(c)&&R>0&&i.contentLength!=null&&i.contentLength!==R){if(r[ce]){errorRequest(r,i,new h);return false}process.emitWarning(new h)}if(R!=null){a(A,"no body must not have content length");b[ke]=`${R}`}s.ref();const N=c==="GET"||c==="HEAD";if(C){b[Te]="100-continue";Q=s.request(b,{endStream:N,signal:y});Q.once("continue",writeBodyH2)}else{Q=s.request(b,{endStream:N,signal:y});writeBodyH2()}++v.openStreams;Q.once("response",(r=>{const{[_e]:s,...a}=r;if(i.onHeaders(Number(s),a,Q.resume.bind(Q),"")===false){Q.pause()}}));Q.once("end",(()=>{i.onComplete([])}));Q.on("data",(r=>{if(i.onData(r)===false){Q.pause()}}));Q.once("close",(()=>{v.openStreams-=1;if(v.openStreams===0){s.unref()}}));Q.once("error",(function(s){if(r[Be]&&!r[Be].destroyed&&!this.closed&&!this.destroyed){v.streams-=1;d.destroy(Q,s)}}));Q.once("frameError",((s,a)=>{const A=new w(`HTTP/2: "frameError" received - type ${s}, code ${a}`);errorRequest(r,i,A);if(r[Be]&&!r[Be].destroyed&&!this.closed&&!this.destroyed){v.streams-=1;d.destroy(Q,A)}}));return true;function writeBodyH2(){if(!A){i.onRequestSent()}else if(d.isBuffer(A)){a(R===A.byteLength,"buffer body must have content length");Q.cork();Q.write(A);Q.uncork();Q.end();i.onBodySent(A);i.onRequestSent()}else if(d.isBlobLike(A)){if(typeof A.stream==="function"){writeIterable({client:r,request:i,contentLength:R,h2stream:Q,expectsPayload:S,body:A.stream(),socket:r[re],header:""})}else{writeBlob({body:A,client:r,request:i,contentLength:R,expectsPayload:S,h2stream:Q,header:"",socket:r[re]})}}else if(d.isStream(A)){writeStream({body:A,client:r,request:i,contentLength:R,expectsPayload:S,socket:r[re],h2stream:Q,header:""})}else if(d.isIterable(A)){writeIterable({body:A,client:r,request:i,contentLength:R,expectsPayload:S,header:"",h2stream:Q,socket:r[re]})}else{a(false)}}}function writeStream({h2stream:r,body:s,client:i,request:A,socket:c,contentLength:u,header:p,expectsPayload:g}){a(u!==0||i[H]===0,"stream body cannot be pipelined");if(i[ye]==="h2"){const y=l(s,r,(i=>{if(i){d.destroy(s,i);d.destroy(r,i)}else{A.onRequestSent()}}));y.on("data",onPipeData);y.once("end",(()=>{y.removeListener("data",onPipeData);d.destroy(y)}));function onPipeData(r){A.onBodySent(r)}return}let h=false;const C=new AsyncWriter({socket:c,request:A,contentLength:u,client:i,expectsPayload:g,header:p});const onData=function(r){if(h){return}try{if(!C.write(r)&&this.pause){this.pause()}}catch(r){d.destroy(this,r)}};const onDrain=function(){if(h){return}if(s.resume){s.resume()}};const onAbort=function(){if(h){return}const r=new I;queueMicrotask((()=>onFinished(r)))};const onFinished=function(r){if(h){return}h=true;a(c.destroyed||c[V]&&i[H]<=1);c.off("drain",onDrain).off("error",onFinished);s.removeListener("data",onData).removeListener("end",onFinished).removeListener("error",onFinished).removeListener("close",onAbort);if(!r){try{C.end()}catch(s){r=s}}C.destroy(r);if(r&&(r.code!=="UND_ERR_INFO"||r.message!=="reset")){d.destroy(s,r)}else{d.destroy(s)}};s.on("data",onData).on("end",onFinished).on("error",onFinished).on("close",onAbort);if(s.resume){s.resume()}c.on("drain",onDrain).on("error",onFinished)}async function writeBlob({h2stream:r,body:s,client:i,request:A,socket:c,contentLength:l,header:u,expectsPayload:p}){a(l===s.size,"blob body must have content length");const g=i[ye]==="h2";try{if(l!=null&&l!==s.size){throw new h}const a=Buffer.from(await s.arrayBuffer());if(g){r.cork();r.write(a);r.uncork()}else{c.cork();c.write(`${u}content-length: ${l}\r\n\r\n`,"latin1");c.write(a);c.uncork()}A.onBodySent(a);A.onRequestSent();if(!p){c[k]=true}resume(i)}catch(s){d.destroy(g?r:c,s)}}async function writeIterable({h2stream:r,body:s,client:i,request:A,socket:c,contentLength:l,header:d,expectsPayload:u}){a(l!==0||i[H]===0,"iterator body cannot be pipelined");let p=null;function onDrain(){if(p){const r=p;p=null;r()}}const waitForDrain=()=>new Promise(((r,s)=>{a(p===null);if(c[ee]){s(c[ee])}else{p=r}}));if(i[ye]==="h2"){r.on("close",onDrain).on("drain",onDrain);try{for await(const i of s){if(c[ee]){throw c[ee]}const s=r.write(i);A.onBodySent(i);if(!s){await waitForDrain()}}}catch(s){r.destroy(s)}finally{A.onRequestSent();r.end();r.off("close",onDrain).off("drain",onDrain)}return}c.on("close",onDrain).on("drain",onDrain);const g=new AsyncWriter({socket:c,request:A,contentLength:l,client:i,expectsPayload:u,header:d});try{for await(const r of s){if(c[ee]){throw c[ee]}if(!g.write(r)){await waitForDrain()}}g.end()}catch(r){g.destroy(r)}finally{c.off("close",onDrain).off("drain",onDrain)}}class AsyncWriter{constructor({socket:r,request:s,contentLength:i,client:a,expectsPayload:A,header:c}){this.socket=r;this.request=s;this.contentLength=i;this.client=a;this.bytesWritten=0;this.expectsPayload=A;this.header=c;r[V]=true}write(r){const{socket:s,request:i,contentLength:a,client:A,bytesWritten:c,expectsPayload:l,header:d}=this;if(s[ee]){throw s[ee]}if(s.destroyed){return false}const u=Buffer.byteLength(r);if(!u){return true}if(a!==null&&c+u>a){if(A[ce]){throw new h}process.emitWarning(new h)}s.cork();if(c===0){if(!l){s[k]=true}if(a===null){s.write(`${d}transfer-encoding: chunked\r\n`,"latin1")}else{s.write(`${d}content-length: ${a}\r\n\r\n`,"latin1")}}if(a===null){s.write(`\r\n${u.toString(16)}\r\n`,"latin1")}this.bytesWritten+=u;const p=s.write(r);s.uncork();i.onBodySent(r);if(!p){if(s[O].timeout&&s[O].timeoutType===Je){if(s[O].timeout.refresh){s[O].timeout.refresh()}}}return p}end(){const{socket:r,contentLength:s,client:i,bytesWritten:a,expectsPayload:A,header:c,request:l}=this;l.onRequestSent();r[V]=false;if(r[ee]){throw r[ee]}if(r.destroyed){return}if(a===0){if(A){r.write(`${c}content-length: 0\r\n\r\n`,"latin1")}else{r.write(`${c}\r\n`,"latin1")}}else if(s===null){r.write("\r\n0\r\n\r\n","latin1")}if(s!==null&&a!==s){if(i[ce]){throw new h}else{process.emitWarning(new h)}}if(r[O].timeout&&r[O].timeoutType===Je){if(r[O].timeout.refresh){r[O].timeout.refresh()}}resume(i)}destroy(r){const{socket:s,client:i}=this;s[V]=false;if(r){a(i[H]<=1,"pipeline should only contain this request");d.destroy(s,r)}}}function errorRequest(r,s,i){try{s.onError(i);a(s.aborted)}catch(i){r.emit("error",i)}}r.exports=Client},74682:(r,s,i)=>{"use strict";const{kConnected:a,kSize:A}=i(25999);class CompatWeakRef{constructor(r){this.value=r}deref(){return this.value[a]===0&&this.value[A]===0?undefined:this.value}}class CompatFinalizer{constructor(r){this.finalizer=r}register(r,s){if(r.on){r.on("disconnect",(()=>{if(r[a]===0&&r[A]===0){this.finalizer(s)}}))}}}r.exports=function(){if(process.env.NODE_V8_COVERAGE){return{WeakRef:CompatWeakRef,FinalizationRegistry:CompatFinalizer}}return{WeakRef:global.WeakRef||CompatWeakRef,FinalizationRegistry:global.FinalizationRegistry||CompatFinalizer}}},96942:r=>{"use strict";const s=1024;const i=4096;r.exports={maxAttributeValueSize:s,maxNameValuePairSize:i}},60208:(r,s,i)=>{"use strict";const{parseSetCookie:a}=i(91532);const{stringify:A}=i(94567);const{webidl:c}=i(81825);const{Headers:l}=i(35823);function getCookies(r){c.argumentLengthCheck(arguments,1,{header:"getCookies"});c.brandCheck(r,l,{strict:false});const s=r.get("cookie");const i={};if(!s){return i}for(const r of s.split(";")){const[s,...a]=r.split("=");i[s.trim()]=a.join("=")}return i}function deleteCookie(r,s,i){c.argumentLengthCheck(arguments,2,{header:"deleteCookie"});c.brandCheck(r,l,{strict:false});s=c.converters.DOMString(s);i=c.converters.DeleteCookieAttributes(i);setCookie(r,{name:s,value:"",expires:new Date(0),...i})}function getSetCookies(r){c.argumentLengthCheck(arguments,1,{header:"getSetCookies"});c.brandCheck(r,l,{strict:false});const s=r.getSetCookie();if(!s){return[]}return s.map((r=>a(r)))}function setCookie(r,s){c.argumentLengthCheck(arguments,2,{header:"setCookie"});c.brandCheck(r,l,{strict:false});s=c.converters.Cookie(s);const i=A(s);if(i){r.append("Set-Cookie",A(s))}}c.converters.DeleteCookieAttributes=c.dictionaryConverter([{converter:c.nullableConverter(c.converters.DOMString),key:"path",defaultValue:null},{converter:c.nullableConverter(c.converters.DOMString),key:"domain",defaultValue:null}]);c.converters.Cookie=c.dictionaryConverter([{converter:c.converters.DOMString,key:"name"},{converter:c.converters.DOMString,key:"value"},{converter:c.nullableConverter((r=>{if(typeof r==="number"){return c.converters["unsigned long long"](r)}return new Date(r)})),key:"expires",defaultValue:null},{converter:c.nullableConverter(c.converters["long long"]),key:"maxAge",defaultValue:null},{converter:c.nullableConverter(c.converters.DOMString),key:"domain",defaultValue:null},{converter:c.nullableConverter(c.converters.DOMString),key:"path",defaultValue:null},{converter:c.nullableConverter(c.converters.boolean),key:"secure",defaultValue:null},{converter:c.nullableConverter(c.converters.boolean),key:"httpOnly",defaultValue:null},{converter:c.converters.USVString,key:"sameSite",allowedValues:["Strict","Lax","None"]},{converter:c.sequenceConverter(c.converters.DOMString),key:"unparsed",defaultValue:[]}]);r.exports={getCookies:getCookies,deleteCookie:deleteCookie,getSetCookies:getSetCookies,setCookie:setCookie}},91532:(r,s,i)=>{"use strict";const{maxNameValuePairSize:a,maxAttributeValueSize:A}=i(96942);const{isCTLExcludingHtab:c}=i(94567);const{collectASequenceOfCodePointsFast:l}=i(44864);const d=i(39491);function parseSetCookie(r){if(c(r)){return null}let s="";let i="";let A="";let d="";if(r.includes(";")){const a={position:0};s=l(";",r,a);i=r.slice(a.position)}else{s=r}if(!s.includes("=")){d=s}else{const r={position:0};A=l("=",s,r);d=s.slice(r.position+1)}A=A.trim();d=d.trim();if(A.length+d.length>a){return null}return{name:A,value:d,...parseUnparsedAttributes(i)}}function parseUnparsedAttributes(r,s={}){if(r.length===0){return s}d(r[0]===";");r=r.slice(1);let i="";if(r.includes(";")){i=l(";",r,{position:0});r=r.slice(i.length)}else{i=r;r=""}let a="";let c="";if(i.includes("=")){const r={position:0};a=l("=",i,r);c=i.slice(r.position+1)}else{a=i}a=a.trim();c=c.trim();if(c.length>A){return parseUnparsedAttributes(r,s)}const u=a.toLowerCase();if(u==="expires"){const r=new Date(c);s.expires=r}else if(u==="max-age"){const i=c.charCodeAt(0);if((i<48||i>57)&&c[0]!=="-"){return parseUnparsedAttributes(r,s)}if(!/^\d+$/.test(c)){return parseUnparsedAttributes(r,s)}const a=Number(c);s.maxAge=a}else if(u==="domain"){let r=c;if(r[0]==="."){r=r.slice(1)}r=r.toLowerCase();s.domain=r}else if(u==="path"){let r="";if(c.length===0||c[0]!=="/"){r="/"}else{r=c}s.path=r}else if(u==="secure"){s.secure=true}else if(u==="httponly"){s.httpOnly=true}else if(u==="samesite"){let r="Default";const i=c.toLowerCase();if(i.includes("none")){r="None"}if(i.includes("strict")){r="Strict"}if(i.includes("lax")){r="Lax"}s.sameSite=r}else{s.unparsed??=[];s.unparsed.push(`${a}=${c}`)}return parseUnparsedAttributes(r,s)}r.exports={parseSetCookie:parseSetCookie,parseUnparsedAttributes:parseUnparsedAttributes}},94567:r=>{"use strict";function isCTLExcludingHtab(r){if(r.length===0){return false}for(const s of r){const r=s.charCodeAt(0);if(r>=0||r<=8||(r>=10||r<=31)||r===127){return false}}}function validateCookieName(r){for(const s of r){const r=s.charCodeAt(0);if(r<=32||r>127||s==="("||s===")"||s===">"||s==="<"||s==="@"||s===","||s===";"||s===":"||s==="\\"||s==='"'||s==="/"||s==="["||s==="]"||s==="?"||s==="="||s==="{"||s==="}"){throw new Error("Invalid cookie name")}}}function validateCookieValue(r){for(const s of r){const r=s.charCodeAt(0);if(r<33||r===34||r===44||r===59||r===92||r>126){throw new Error("Invalid header value")}}}function validateCookiePath(r){for(const s of r){const r=s.charCodeAt(0);if(r<33||s===";"){throw new Error("Invalid cookie path")}}}function validateCookieDomain(r){if(r.startsWith("-")||r.endsWith(".")||r.endsWith("-")){throw new Error("Invalid cookie domain")}}function toIMFDate(r){if(typeof r==="number"){r=new Date(r)}const s=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"];const i=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];const a=s[r.getUTCDay()];const A=r.getUTCDate().toString().padStart(2,"0");const c=i[r.getUTCMonth()];const l=r.getUTCFullYear();const d=r.getUTCHours().toString().padStart(2,"0");const u=r.getUTCMinutes().toString().padStart(2,"0");const p=r.getUTCSeconds().toString().padStart(2,"0");return`${a}, ${A} ${c} ${l} ${d}:${u}:${p} GMT`}function validateCookieMaxAge(r){if(r<0){throw new Error("Invalid cookie max-age")}}function stringify(r){if(r.name.length===0){return null}validateCookieName(r.name);validateCookieValue(r.value);const s=[`${r.name}=${r.value}`];if(r.name.startsWith("__Secure-")){r.secure=true}if(r.name.startsWith("__Host-")){r.secure=true;r.domain=null;r.path="/"}if(r.secure){s.push("Secure")}if(r.httpOnly){s.push("HttpOnly")}if(typeof r.maxAge==="number"){validateCookieMaxAge(r.maxAge);s.push(`Max-Age=${r.maxAge}`)}if(r.domain){validateCookieDomain(r.domain);s.push(`Domain=${r.domain}`)}if(r.path){validateCookiePath(r.path);s.push(`Path=${r.path}`)}if(r.expires&&r.expires.toString()!=="Invalid Date"){s.push(`Expires=${toIMFDate(r.expires)}`)}if(r.sameSite){s.push(`SameSite=${r.sameSite}`)}for(const i of r.unparsed){if(!i.includes("=")){throw new Error("Invalid unparsed")}const[r,...a]=i.split("=");s.push(`${r.trim()}=${a.join("=")}`)}return s.join("; ")}r.exports={isCTLExcludingHtab:isCTLExcludingHtab,validateCookieName:validateCookieName,validateCookiePath:validateCookiePath,validateCookieValue:validateCookieValue,toIMFDate:toIMFDate,stringify:stringify}},69690:(r,s,i)=>{"use strict";const a=i(41808);const A=i(39491);const c=i(82423);const{InvalidArgumentError:l,ConnectTimeoutError:d}=i(37715);let u;let p;if(global.FinalizationRegistry&&!process.env.NODE_V8_COVERAGE){p=class WeakSessionCache{constructor(r){this._maxCachedSessions=r;this._sessionCache=new Map;this._sessionRegistry=new global.FinalizationRegistry((r=>{if(this._sessionCache.size=this._maxCachedSessions){const{value:r}=this._sessionCache.keys().next();this._sessionCache.delete(r)}this._sessionCache.set(r,s)}}}function buildConnector({allowH2:r,maxCachedSessions:s,socketPath:d,timeout:g,...h}){if(s!=null&&(!Number.isInteger(s)||s<0)){throw new l("maxCachedSessions must be a positive integer or zero")}const C={path:d,...h};const y=new p(s==null?100:s);g=g==null?1e4:g;r=r!=null?r:false;return function connect({hostname:s,host:l,protocol:d,port:p,servername:h,localAddress:I,httpSocket:B},b){let Q;if(d==="https:"){if(!u){u=i(24404)}h=h||C.servername||c.getServerName(l)||null;const a=h||s;const d=y.get(a)||null;A(a);Q=u.connect({highWaterMark:16384,...C,servername:h,session:d,localAddress:I,ALPNProtocols:r?["http/1.1","h2"]:["http/1.1"],socket:B,port:p||443,host:s});Q.on("session",(function(r){y.set(a,r)}))}else{A(!B,"httpSocket can only be sent on TLS update");Q=a.connect({highWaterMark:64*1024,...C,localAddress:I,port:p||80,host:s})}if(C.keepAlive==null||C.keepAlive){const r=C.keepAliveInitialDelay===undefined?6e4:C.keepAliveInitialDelay;Q.setKeepAlive(true,r)}const w=setupTimeout((()=>onConnectTimeout(Q)),g);Q.setNoDelay(true).once(d==="https:"?"secureConnect":"connect",(function(){w();if(b){const r=b;b=null;r(null,this)}})).on("error",(function(r){w();if(b){const s=b;b=null;s(r)}}));return Q}}function setupTimeout(r,s){if(!s){return()=>{}}let i=null;let a=null;const A=setTimeout((()=>{i=setImmediate((()=>{if(process.platform==="win32"){a=setImmediate((()=>r()))}else{r()}}))}),s);return()=>{clearTimeout(A);clearImmediate(i);clearImmediate(a)}}function onConnectTimeout(r){c.destroy(r,new d)}r.exports=buildConnector},68085:r=>{"use strict";const s={};const i=["Accept","Accept-Encoding","Accept-Language","Accept-Ranges","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","Age","Allow","Alt-Svc","Alt-Used","Authorization","Cache-Control","Clear-Site-Data","Connection","Content-Disposition","Content-Encoding","Content-Language","Content-Length","Content-Location","Content-Range","Content-Security-Policy","Content-Security-Policy-Report-Only","Content-Type","Cookie","Cross-Origin-Embedder-Policy","Cross-Origin-Opener-Policy","Cross-Origin-Resource-Policy","Date","Device-Memory","Downlink","ECT","ETag","Expect","Expect-CT","Expires","Forwarded","From","Host","If-Match","If-Modified-Since","If-None-Match","If-Range","If-Unmodified-Since","Keep-Alive","Last-Modified","Link","Location","Max-Forwards","Origin","Permissions-Policy","Pragma","Proxy-Authenticate","Proxy-Authorization","RTT","Range","Referer","Referrer-Policy","Refresh","Retry-After","Sec-WebSocket-Accept","Sec-WebSocket-Extensions","Sec-WebSocket-Key","Sec-WebSocket-Protocol","Sec-WebSocket-Version","Server","Server-Timing","Service-Worker-Allowed","Service-Worker-Navigation-Preload","Set-Cookie","SourceMap","Strict-Transport-Security","Supports-Loading-Mode","TE","Timing-Allow-Origin","Trailer","Transfer-Encoding","Upgrade","Upgrade-Insecure-Requests","User-Agent","Vary","Via","WWW-Authenticate","X-Content-Type-Options","X-DNS-Prefetch-Control","X-Frame-Options","X-Permitted-Cross-Domain-Policies","X-Powered-By","X-Requested-With","X-XSS-Protection"];for(let r=0;r{"use strict";class UndiciError extends Error{constructor(r){super(r);this.name="UndiciError";this.code="UND_ERR"}}class ConnectTimeoutError extends UndiciError{constructor(r){super(r);Error.captureStackTrace(this,ConnectTimeoutError);this.name="ConnectTimeoutError";this.message=r||"Connect Timeout Error";this.code="UND_ERR_CONNECT_TIMEOUT"}}class HeadersTimeoutError extends UndiciError{constructor(r){super(r);Error.captureStackTrace(this,HeadersTimeoutError);this.name="HeadersTimeoutError";this.message=r||"Headers Timeout Error";this.code="UND_ERR_HEADERS_TIMEOUT"}}class HeadersOverflowError extends UndiciError{constructor(r){super(r);Error.captureStackTrace(this,HeadersOverflowError);this.name="HeadersOverflowError";this.message=r||"Headers Overflow Error";this.code="UND_ERR_HEADERS_OVERFLOW"}}class BodyTimeoutError extends UndiciError{constructor(r){super(r);Error.captureStackTrace(this,BodyTimeoutError);this.name="BodyTimeoutError";this.message=r||"Body Timeout Error";this.code="UND_ERR_BODY_TIMEOUT"}}class ResponseStatusCodeError extends UndiciError{constructor(r,s,i,a){super(r);Error.captureStackTrace(this,ResponseStatusCodeError);this.name="ResponseStatusCodeError";this.message=r||"Response Status Code Error";this.code="UND_ERR_RESPONSE_STATUS_CODE";this.body=a;this.status=s;this.statusCode=s;this.headers=i}}class InvalidArgumentError extends UndiciError{constructor(r){super(r);Error.captureStackTrace(this,InvalidArgumentError);this.name="InvalidArgumentError";this.message=r||"Invalid Argument Error";this.code="UND_ERR_INVALID_ARG"}}class InvalidReturnValueError extends UndiciError{constructor(r){super(r);Error.captureStackTrace(this,InvalidReturnValueError);this.name="InvalidReturnValueError";this.message=r||"Invalid Return Value Error";this.code="UND_ERR_INVALID_RETURN_VALUE"}}class RequestAbortedError extends UndiciError{constructor(r){super(r);Error.captureStackTrace(this,RequestAbortedError);this.name="AbortError";this.message=r||"Request aborted";this.code="UND_ERR_ABORTED"}}class InformationalError extends UndiciError{constructor(r){super(r);Error.captureStackTrace(this,InformationalError);this.name="InformationalError";this.message=r||"Request information";this.code="UND_ERR_INFO"}}class RequestContentLengthMismatchError extends UndiciError{constructor(r){super(r);Error.captureStackTrace(this,RequestContentLengthMismatchError);this.name="RequestContentLengthMismatchError";this.message=r||"Request body length does not match content-length header";this.code="UND_ERR_REQ_CONTENT_LENGTH_MISMATCH"}}class ResponseContentLengthMismatchError extends UndiciError{constructor(r){super(r);Error.captureStackTrace(this,ResponseContentLengthMismatchError);this.name="ResponseContentLengthMismatchError";this.message=r||"Response body length does not match content-length header";this.code="UND_ERR_RES_CONTENT_LENGTH_MISMATCH"}}class ClientDestroyedError extends UndiciError{constructor(r){super(r);Error.captureStackTrace(this,ClientDestroyedError);this.name="ClientDestroyedError";this.message=r||"The client is destroyed";this.code="UND_ERR_DESTROYED"}}class ClientClosedError extends UndiciError{constructor(r){super(r);Error.captureStackTrace(this,ClientClosedError);this.name="ClientClosedError";this.message=r||"The client is closed";this.code="UND_ERR_CLOSED"}}class SocketError extends UndiciError{constructor(r,s){super(r);Error.captureStackTrace(this,SocketError);this.name="SocketError";this.message=r||"Socket error";this.code="UND_ERR_SOCKET";this.socket=s}}class NotSupportedError extends UndiciError{constructor(r){super(r);Error.captureStackTrace(this,NotSupportedError);this.name="NotSupportedError";this.message=r||"Not supported error";this.code="UND_ERR_NOT_SUPPORTED"}}class BalancedPoolMissingUpstreamError extends UndiciError{constructor(r){super(r);Error.captureStackTrace(this,NotSupportedError);this.name="MissingUpstreamError";this.message=r||"No upstream has been added to the BalancedPool";this.code="UND_ERR_BPL_MISSING_UPSTREAM"}}class HTTPParserError extends Error{constructor(r,s,i){super(r);Error.captureStackTrace(this,HTTPParserError);this.name="HTTPParserError";this.code=s?`HPE_${s}`:undefined;this.data=i?i.toString():undefined}}class ResponseExceededMaxSizeError extends UndiciError{constructor(r){super(r);Error.captureStackTrace(this,ResponseExceededMaxSizeError);this.name="ResponseExceededMaxSizeError";this.message=r||"Response content exceeded max size";this.code="UND_ERR_RES_EXCEEDED_MAX_SIZE"}}class RequestRetryError extends UndiciError{constructor(r,s,{headers:i,data:a}){super(r);Error.captureStackTrace(this,RequestRetryError);this.name="RequestRetryError";this.message=r||"Request retry error";this.code="UND_ERR_REQ_RETRY";this.statusCode=s;this.data=a;this.headers=i}}r.exports={HTTPParserError:HTTPParserError,UndiciError:UndiciError,HeadersTimeoutError:HeadersTimeoutError,HeadersOverflowError:HeadersOverflowError,BodyTimeoutError:BodyTimeoutError,RequestContentLengthMismatchError:RequestContentLengthMismatchError,ConnectTimeoutError:ConnectTimeoutError,ResponseStatusCodeError:ResponseStatusCodeError,InvalidArgumentError:InvalidArgumentError,InvalidReturnValueError:InvalidReturnValueError,RequestAbortedError:RequestAbortedError,ClientDestroyedError:ClientDestroyedError,ClientClosedError:ClientClosedError,InformationalError:InformationalError,SocketError:SocketError,NotSupportedError:NotSupportedError,ResponseContentLengthMismatchError:ResponseContentLengthMismatchError,BalancedPoolMissingUpstreamError:BalancedPoolMissingUpstreamError,ResponseExceededMaxSizeError:ResponseExceededMaxSizeError,RequestRetryError:RequestRetryError}},46091:(r,s,i)=>{"use strict";const{InvalidArgumentError:a,NotSupportedError:A}=i(37715);const c=i(39491);const{kHTTP2BuildRequest:l,kHTTP2CopyHeaders:d,kHTTP1BuildRequest:u}=i(25999);const p=i(82423);const g=/^[\^_`a-zA-Z\-0-9!#$%&'*+.|~]+$/;const h=/[^\t\x20-\x7e\x80-\xff]/;const C=/[^\u0021-\u00ff]/;const y=Symbol("handler");const I={};let B;try{const r=i(67643);I.create=r.channel("undici:request:create");I.bodySent=r.channel("undici:request:bodySent");I.headers=r.channel("undici:request:headers");I.trailers=r.channel("undici:request:trailers");I.error=r.channel("undici:request:error")}catch{I.create={hasSubscribers:false};I.bodySent={hasSubscribers:false};I.headers={hasSubscribers:false};I.trailers={hasSubscribers:false};I.error={hasSubscribers:false}}class Request{constructor(r,{path:s,method:A,body:c,headers:l,query:d,idempotent:u,blocking:h,upgrade:b,headersTimeout:Q,bodyTimeout:w,reset:v,throwOnError:S,expectContinue:R},N){if(typeof s!=="string"){throw new a("path must be a string")}else if(s[0]!=="/"&&!(s.startsWith("http://")||s.startsWith("https://"))&&A!=="CONNECT"){throw new a("path must be an absolute URL or start with a slash")}else if(C.exec(s)!==null){throw new a("invalid request path")}if(typeof A!=="string"){throw new a("method must be a string")}else if(g.exec(A)===null){throw new a("invalid request method")}if(b&&typeof b!=="string"){throw new a("upgrade must be a string")}if(Q!=null&&(!Number.isFinite(Q)||Q<0)){throw new a("invalid headersTimeout")}if(w!=null&&(!Number.isFinite(w)||w<0)){throw new a("invalid bodyTimeout")}if(v!=null&&typeof v!=="boolean"){throw new a("invalid reset")}if(R!=null&&typeof R!=="boolean"){throw new a("invalid expectContinue")}this.headersTimeout=Q;this.bodyTimeout=w;this.throwOnError=S===true;this.method=A;this.abort=null;if(c==null){this.body=null}else if(p.isStream(c)){this.body=c;const r=this.body._readableState;if(!r||!r.autoDestroy){this.endHandler=function autoDestroy(){p.destroy(this)};this.body.on("end",this.endHandler)}this.errorHandler=r=>{if(this.abort){this.abort(r)}else{this.error=r}};this.body.on("error",this.errorHandler)}else if(p.isBuffer(c)){this.body=c.byteLength?c:null}else if(ArrayBuffer.isView(c)){this.body=c.buffer.byteLength?Buffer.from(c.buffer,c.byteOffset,c.byteLength):null}else if(c instanceof ArrayBuffer){this.body=c.byteLength?Buffer.from(c):null}else if(typeof c==="string"){this.body=c.length?Buffer.from(c):null}else if(p.isFormDataLike(c)||p.isIterable(c)||p.isBlobLike(c)){this.body=c}else{throw new a("body must be a string, a Buffer, a Readable stream, an iterable, or an async iterable")}this.completed=false;this.aborted=false;this.upgrade=b||null;this.path=d?p.buildURL(s,d):s;this.origin=r;this.idempotent=u==null?A==="HEAD"||A==="GET":u;this.blocking=h==null?false:h;this.reset=v==null?null:v;this.host=null;this.contentLength=null;this.contentType=null;this.headers="";this.expectContinue=R!=null?R:false;if(Array.isArray(l)){if(l.length%2!==0){throw new a("headers array must be even")}for(let r=0;r{r.exports={kClose:Symbol("close"),kDestroy:Symbol("destroy"),kDispatch:Symbol("dispatch"),kUrl:Symbol("url"),kWriting:Symbol("writing"),kResuming:Symbol("resuming"),kQueue:Symbol("queue"),kConnect:Symbol("connect"),kConnecting:Symbol("connecting"),kHeadersList:Symbol("headers list"),kKeepAliveDefaultTimeout:Symbol("default keep alive timeout"),kKeepAliveMaxTimeout:Symbol("max keep alive timeout"),kKeepAliveTimeoutThreshold:Symbol("keep alive timeout threshold"),kKeepAliveTimeoutValue:Symbol("keep alive timeout"),kKeepAlive:Symbol("keep alive"),kHeadersTimeout:Symbol("headers timeout"),kBodyTimeout:Symbol("body timeout"),kServerName:Symbol("server name"),kLocalAddress:Symbol("local address"),kHost:Symbol("host"),kNoRef:Symbol("no ref"),kBodyUsed:Symbol("used"),kRunning:Symbol("running"),kBlocking:Symbol("blocking"),kPending:Symbol("pending"),kSize:Symbol("size"),kBusy:Symbol("busy"),kQueued:Symbol("queued"),kFree:Symbol("free"),kConnected:Symbol("connected"),kClosed:Symbol("closed"),kNeedDrain:Symbol("need drain"),kReset:Symbol("reset"),kDestroyed:Symbol.for("nodejs.stream.destroyed"),kMaxHeadersSize:Symbol("max headers size"),kRunningIdx:Symbol("running index"),kPendingIdx:Symbol("pending index"),kError:Symbol("error"),kClients:Symbol("clients"),kClient:Symbol("client"),kParser:Symbol("parser"),kOnDestroyed:Symbol("destroy callbacks"),kPipelining:Symbol("pipelining"),kSocket:Symbol("socket"),kHostHeader:Symbol("host header"),kConnector:Symbol("connector"),kStrictContentLength:Symbol("strict content length"),kMaxRedirections:Symbol("maxRedirections"),kMaxRequests:Symbol("maxRequestsPerClient"),kProxy:Symbol("proxy agent options"),kCounter:Symbol("socket request counter"),kInterceptors:Symbol("dispatch interceptors"),kMaxResponseSize:Symbol("max response size"),kHTTP2Session:Symbol("http2Session"),kHTTP2SessionState:Symbol("http2Session state"),kHTTP2BuildRequest:Symbol("http2 build request"),kHTTP1BuildRequest:Symbol("http1 build request"),kHTTP2CopyHeaders:Symbol("http2 copy headers"),kHTTPConnVersion:Symbol("http connection version"),kRetryHandlerDefaultRetry:Symbol("retry agent default retry"),kConstruct:Symbol("constructable")}},82423:(r,s,i)=>{"use strict";const a=i(39491);const{kDestroyed:A,kBodyUsed:c}=i(25999);const{IncomingMessage:l}=i(13685);const d=i(12781);const u=i(41808);const{InvalidArgumentError:p}=i(37715);const{Blob:g}=i(14300);const h=i(73837);const{stringify:C}=i(63477);const{headerNameLowerCasedRecord:y}=i(68085);const[I,B]=process.versions.node.split(".").map((r=>Number(r)));function nop(){}function isStream(r){return r&&typeof r==="object"&&typeof r.pipe==="function"&&typeof r.on==="function"}function isBlobLike(r){return g&&r instanceof g||r&&typeof r==="object"&&(typeof r.stream==="function"||typeof r.arrayBuffer==="function")&&/^(Blob|File)$/.test(r[Symbol.toStringTag])}function buildURL(r,s){if(r.includes("?")||r.includes("#")){throw new Error('Query params cannot be passed when url already contains "?" or "#".')}const i=C(s);if(i){r+="?"+i}return r}function parseURL(r){if(typeof r==="string"){r=new URL(r);if(!/^https?:/.test(r.origin||r.protocol)){throw new p("Invalid URL protocol: the URL must start with `http:` or `https:`.")}return r}if(!r||typeof r!=="object"){throw new p("Invalid URL: The URL argument must be a non-null object.")}if(!/^https?:/.test(r.origin||r.protocol)){throw new p("Invalid URL protocol: the URL must start with `http:` or `https:`.")}if(!(r instanceof URL)){if(r.port!=null&&r.port!==""&&!Number.isFinite(parseInt(r.port))){throw new p("Invalid URL: port must be a valid integer or a string representation of an integer.")}if(r.path!=null&&typeof r.path!=="string"){throw new p("Invalid URL path: the path must be a string or null/undefined.")}if(r.pathname!=null&&typeof r.pathname!=="string"){throw new p("Invalid URL pathname: the pathname must be a string or null/undefined.")}if(r.hostname!=null&&typeof r.hostname!=="string"){throw new p("Invalid URL hostname: the hostname must be a string or null/undefined.")}if(r.origin!=null&&typeof r.origin!=="string"){throw new p("Invalid URL origin: the origin must be a string or null/undefined.")}const s=r.port!=null?r.port:r.protocol==="https:"?443:80;let i=r.origin!=null?r.origin:`${r.protocol}//${r.hostname}:${s}`;let a=r.path!=null?r.path:`${r.pathname||""}${r.search||""}`;if(i.endsWith("/")){i=i.substring(0,i.length-1)}if(a&&!a.startsWith("/")){a=`/${a}`}r=new URL(i+a)}return r}function parseOrigin(r){r=parseURL(r);if(r.pathname!=="/"||r.search||r.hash){throw new p("invalid url")}return r}function getHostname(r){if(r[0]==="["){const s=r.indexOf("]");a(s!==-1);return r.substring(1,s)}const s=r.indexOf(":");if(s===-1)return r;return r.substring(0,s)}function getServerName(r){if(!r){return null}a.strictEqual(typeof r,"string");const s=getHostname(r);if(u.isIP(s)){return""}return s}function deepClone(r){return JSON.parse(JSON.stringify(r))}function isAsyncIterable(r){return!!(r!=null&&typeof r[Symbol.asyncIterator]==="function")}function isIterable(r){return!!(r!=null&&(typeof r[Symbol.iterator]==="function"||typeof r[Symbol.asyncIterator]==="function"))}function bodyLength(r){if(r==null){return 0}else if(isStream(r)){const s=r._readableState;return s&&s.objectMode===false&&s.ended===true&&Number.isFinite(s.length)?s.length:null}else if(isBlobLike(r)){return r.size!=null?r.size:null}else if(isBuffer(r)){return r.byteLength}return null}function isDestroyed(r){return!r||!!(r.destroyed||r[A])}function isReadableAborted(r){const s=r&&r._readableState;return isDestroyed(r)&&s&&!s.endEmitted}function destroy(r,s){if(r==null||!isStream(r)||isDestroyed(r)){return}if(typeof r.destroy==="function"){if(Object.getPrototypeOf(r).constructor===l){r.socket=null}r.destroy(s)}else if(s){process.nextTick(((r,s)=>{r.emit("error",s)}),r,s)}if(r.destroyed!==true){r[A]=true}}const b=/timeout=(\d+)/;function parseKeepAliveTimeout(r){const s=r.toString().match(b);return s?parseInt(s[1],10)*1e3:null}function headerNameToString(r){return y[r]||r.toLowerCase()}function parseHeaders(r,s={}){if(!Array.isArray(r))return r;for(let i=0;ir.toString("utf8")))}else{s[a]=r[i+1].toString("utf8")}}else{if(!Array.isArray(A)){A=[A];s[a]=A}A.push(r[i+1].toString("utf8"))}}if("content-length"in s&&"content-disposition"in s){s["content-disposition"]=Buffer.from(s["content-disposition"]).toString("latin1")}return s}function parseRawHeaders(r){const s=[];let i=false;let a=-1;for(let A=0;A{r.close()}))}else{const s=Buffer.isBuffer(a)?a:Buffer.from(a);r.enqueue(new Uint8Array(s))}return r.desiredSize>0},async cancel(r){await s.return()}},0)}function isFormDataLike(r){return r&&typeof r==="object"&&typeof r.append==="function"&&typeof r.delete==="function"&&typeof r.get==="function"&&typeof r.getAll==="function"&&typeof r.has==="function"&&typeof r.set==="function"&&r[Symbol.toStringTag]==="FormData"}function throwIfAborted(r){if(!r){return}if(typeof r.throwIfAborted==="function"){r.throwIfAborted()}else{if(r.aborted){const r=new Error("The operation was aborted");r.name="AbortError";throw r}}}function addAbortListener(r,s){if("addEventListener"in r){r.addEventListener("abort",s,{once:true});return()=>r.removeEventListener("abort",s)}r.addListener("abort",s);return()=>r.removeListener("abort",s)}const w=!!String.prototype.toWellFormed;function toUSVString(r){if(w){return`${r}`.toWellFormed()}else if(h.toUSVString){return h.toUSVString(r)}return`${r}`}function parseRangeHeader(r){if(r==null||r==="")return{start:0,end:null,size:null};const s=r?r.match(/^bytes (\d+)-(\d+)\/(\d+)?$/):null;return s?{start:parseInt(s[1]),end:s[2]?parseInt(s[2]):null,size:s[3]?parseInt(s[3]):null}:null}const v=Object.create(null);v.enumerable=true;r.exports={kEnumerableProperty:v,nop:nop,isDisturbed:isDisturbed,isErrored:isErrored,isReadable:isReadable,toUSVString:toUSVString,isReadableAborted:isReadableAborted,isBlobLike:isBlobLike,parseOrigin:parseOrigin,parseURL:parseURL,getServerName:getServerName,isStream:isStream,isIterable:isIterable,isAsyncIterable:isAsyncIterable,isDestroyed:isDestroyed,headerNameToString:headerNameToString,parseRawHeaders:parseRawHeaders,parseHeaders:parseHeaders,parseKeepAliveTimeout:parseKeepAliveTimeout,destroy:destroy,bodyLength:bodyLength,deepClone:deepClone,ReadableStreamFrom:ReadableStreamFrom,isBuffer:isBuffer,validateHandler:validateHandler,getSocketInfo:getSocketInfo,isFormDataLike:isFormDataLike,buildURL:buildURL,throwIfAborted:throwIfAborted,addAbortListener:addAbortListener,parseRangeHeader:parseRangeHeader,nodeMajor:I,nodeMinor:B,nodeHasAutoSelectFamily:I>18||I===18&&B>=13,safeHTTPMethods:["GET","HEAD","OPTIONS","TRACE"]}},75971:(r,s,i)=>{"use strict";const a=i(57587);const{ClientDestroyedError:A,ClientClosedError:c,InvalidArgumentError:l}=i(37715);const{kDestroy:d,kClose:u,kDispatch:p,kInterceptors:g}=i(25999);const h=Symbol("destroyed");const C=Symbol("closed");const y=Symbol("onDestroyed");const I=Symbol("onClosed");const B=Symbol("Intercepted Dispatch");class DispatcherBase extends a{constructor(){super();this[h]=false;this[y]=null;this[C]=false;this[I]=[]}get destroyed(){return this[h]}get closed(){return this[C]}get interceptors(){return this[g]}set interceptors(r){if(r){for(let s=r.length-1;s>=0;s--){const r=this[g][s];if(typeof r!=="function"){throw new l("interceptor must be an function")}}}this[g]=r}close(r){if(r===undefined){return new Promise(((r,s)=>{this.close(((i,a)=>i?s(i):r(a)))}))}if(typeof r!=="function"){throw new l("invalid callback")}if(this[h]){queueMicrotask((()=>r(new A,null)));return}if(this[C]){if(this[I]){this[I].push(r)}else{queueMicrotask((()=>r(null,null)))}return}this[C]=true;this[I].push(r);const onClosed=()=>{const r=this[I];this[I]=null;for(let s=0;sthis.destroy())).then((()=>{queueMicrotask(onClosed)}))}destroy(r,s){if(typeof r==="function"){s=r;r=null}if(s===undefined){return new Promise(((s,i)=>{this.destroy(r,((r,a)=>r?i(r):s(a)))}))}if(typeof s!=="function"){throw new l("invalid callback")}if(this[h]){if(this[y]){this[y].push(s)}else{queueMicrotask((()=>s(null,null)))}return}if(!r){r=new A}this[h]=true;this[y]=this[y]||[];this[y].push(s);const onDestroyed=()=>{const r=this[y];this[y]=null;for(let s=0;s{queueMicrotask(onDestroyed)}))}[B](r,s){if(!this[g]||this[g].length===0){this[B]=this[p];return this[p](r,s)}let i=this[p].bind(this);for(let r=this[g].length-1;r>=0;r--){i=this[g][r](i)}this[B]=i;return i(r,s)}dispatch(r,s){if(!s||typeof s!=="object"){throw new l("handler must be an object")}try{if(!r||typeof r!=="object"){throw new l("opts must be an object.")}if(this[h]||this[y]){throw new A}if(this[C]){throw new c}return this[B](r,s)}catch(r){if(typeof s.onError!=="function"){throw new l("invalid onError method")}s.onError(r);return false}}}r.exports=DispatcherBase},57587:(r,s,i)=>{"use strict";const a=i(82361);class Dispatcher extends a{dispatch(){throw new Error("not implemented")}close(){throw new Error("not implemented")}destroy(){throw new Error("not implemented")}}r.exports=Dispatcher},16325:(r,s,i)=>{"use strict";const a=i(33438);const A=i(82423);const{ReadableStreamFrom:c,isBlobLike:l,isReadableStreamLike:d,readableStreamClose:u,createDeferredPromise:p,fullyReadBody:g}=i(35001);const{FormData:h}=i(31854);const{kState:C}=i(80691);const{webidl:y}=i(81825);const{DOMException:I,structuredClone:B}=i(90264);const{Blob:b,File:Q}=i(14300);const{kBodyUsed:w}=i(25999);const v=i(39491);const{isErrored:S}=i(82423);const{isUint8Array:R,isArrayBuffer:N}=i(29830);const{File:x}=i(89126);const{parseMIMEType:D,serializeAMimeType:k}=i(44864);let T;try{const r=i(6005);T=s=>r.randomInt(0,s)}catch{T=r=>Math.floor(Math.random(r))}let _=globalThis.ReadableStream;const P=Q??x;const O=new TextEncoder;const L=new TextDecoder;function extractBody(r,s=false){if(!_){_=i(35356).ReadableStream}let a=null;if(r instanceof _){a=r}else if(l(r)){a=r.stream()}else{a=new _({async pull(r){r.enqueue(typeof g==="string"?O.encode(g):g);queueMicrotask((()=>u(r)))},start(){},type:undefined})}v(d(a));let p=null;let g=null;let h=null;let C=null;if(typeof r==="string"){g=r;C="text/plain;charset=UTF-8"}else if(r instanceof URLSearchParams){g=r.toString();C="application/x-www-form-urlencoded;charset=UTF-8"}else if(N(r)){g=new Uint8Array(r.slice())}else if(ArrayBuffer.isView(r)){g=new Uint8Array(r.buffer.slice(r.byteOffset,r.byteOffset+r.byteLength))}else if(A.isFormDataLike(r)){const s=`----formdata-undici-0${`${T(1e11)}`.padStart(11,"0")}`;const i=`--${s}\r\nContent-Disposition: form-data` +/*! formdata-polyfill. MIT License. Jimmy Wärting */;const escape=r=>r.replace(/\n/g,"%0A").replace(/\r/g,"%0D").replace(/"/g,"%22");const normalizeLinefeeds=r=>r.replace(/\r?\n|\r/g,"\r\n");const a=[];const A=new Uint8Array([13,10]);h=0;let c=false;for(const[s,l]of r){if(typeof l==="string"){const r=O.encode(i+`; name="${escape(normalizeLinefeeds(s))}"`+`\r\n\r\n${normalizeLinefeeds(l)}\r\n`);a.push(r);h+=r.byteLength}else{const r=O.encode(`${i}; name="${escape(normalizeLinefeeds(s))}"`+(l.name?`; filename="${escape(l.name)}"`:"")+"\r\n"+`Content-Type: ${l.type||"application/octet-stream"}\r\n\r\n`);a.push(r,l,A);if(typeof l.size==="number"){h+=r.byteLength+l.size+A.byteLength}else{c=true}}}const l=O.encode(`--${s}--`);a.push(l);h+=l.byteLength;if(c){h=null}g=r;p=async function*(){for(const r of a){if(r.stream){yield*r.stream()}else{yield r}}};C="multipart/form-data; boundary="+s}else if(l(r)){g=r;h=r.size;if(r.type){C=r.type}}else if(typeof r[Symbol.asyncIterator]==="function"){if(s){throw new TypeError("keepalive")}if(A.isDisturbed(r)||r.locked){throw new TypeError("Response body object should not be disturbed or locked")}a=r instanceof _?r:c(r)}if(typeof g==="string"||A.isBuffer(g)){h=Buffer.byteLength(g)}if(p!=null){let s;a=new _({async start(){s=p(r)[Symbol.asyncIterator]()},async pull(r){const{value:i,done:A}=await s.next();if(A){queueMicrotask((()=>{r.close()}))}else{if(!S(a)){r.enqueue(new Uint8Array(i))}}return r.desiredSize>0},async cancel(r){await s.return()},type:undefined})}const y={stream:a,source:g,length:h};return[y,C]}function safelyExtractBody(r,s=false){if(!_){_=i(35356).ReadableStream}if(r instanceof _){v(!A.isDisturbed(r),"The body has already been consumed.");v(!r.locked,"The stream is locked.")}return extractBody(r,s)}function cloneBody(r){const[s,i]=r.stream.tee();const a=B(i,{transfer:[i]});const[,A]=a.tee();r.stream=s;return{stream:A,length:r.length,source:r.source}}async function*consumeBody(r){if(r){if(R(r)){yield r}else{const s=r.stream;if(A.isDisturbed(s)){throw new TypeError("The body has already been consumed.")}if(s.locked){throw new TypeError("The stream is locked.")}s[w]=true;yield*s}}}function throwIfAborted(r){if(r.aborted){throw new I("The operation was aborted.","AbortError")}}function bodyMixinMethods(r){const s={blob(){return specConsumeBody(this,(r=>{let s=bodyMimeType(this);if(s==="failure"){s=""}else if(s){s=k(s)}return new b([r],{type:s})}),r)},arrayBuffer(){return specConsumeBody(this,(r=>new Uint8Array(r).buffer),r)},text(){return specConsumeBody(this,utf8DecodeBytes,r)},json(){return specConsumeBody(this,parseJSONFromBytes,r)},async formData(){y.brandCheck(this,r);throwIfAborted(this[C]);const s=this.headers.get("Content-Type");if(/multipart\/form-data/.test(s)){const r={};for(const[s,i]of this.headers)r[s.toLowerCase()]=i;const s=new h;let i;try{i=new a({headers:r,preservePath:true})}catch(r){throw new I(`${r}`,"AbortError")}i.on("field",((r,i)=>{s.append(r,i)}));i.on("file",((r,i,a,A,c)=>{const l=[];if(A==="base64"||A.toLowerCase()==="base64"){let A="";i.on("data",(r=>{A+=r.toString().replace(/[\r\n]/gm,"");const s=A.length-A.length%4;l.push(Buffer.from(A.slice(0,s),"base64"));A=A.slice(s)}));i.on("end",(()=>{l.push(Buffer.from(A,"base64"));s.append(r,new P(l,a,{type:c}))}))}else{i.on("data",(r=>{l.push(r)}));i.on("end",(()=>{s.append(r,new P(l,a,{type:c}))}))}}));const A=new Promise(((r,s)=>{i.on("finish",r);i.on("error",(r=>s(new TypeError(r))))}));if(this.body!==null)for await(const r of consumeBody(this[C].body))i.write(r);i.end();await A;return s}else if(/application\/x-www-form-urlencoded/.test(s)){let r;try{let s="";const i=new TextDecoder("utf-8",{ignoreBOM:true});for await(const r of consumeBody(this[C].body)){if(!R(r)){throw new TypeError("Expected Uint8Array chunk")}s+=i.decode(r,{stream:true})}s+=i.decode();r=new URLSearchParams(s)}catch(r){throw Object.assign(new TypeError,{cause:r})}const s=new h;for(const[i,a]of r){s.append(i,a)}return s}else{await Promise.resolve();throwIfAborted(this[C]);throw y.errors.exception({header:`${r.name}.formData`,message:"Could not parse content as FormData."})}}};return s}function mixinBody(r){Object.assign(r.prototype,bodyMixinMethods(r))}async function specConsumeBody(r,s,i){y.brandCheck(r,i);throwIfAborted(r[C]);if(bodyUnusable(r[C].body)){throw new TypeError("Body is unusable")}const a=p();const errorSteps=r=>a.reject(r);const successSteps=r=>{try{a.resolve(s(r))}catch(r){errorSteps(r)}};if(r[C].body==null){successSteps(new Uint8Array);return a.promise}await g(r[C].body,successSteps,errorSteps);return a.promise}function bodyUnusable(r){return r!=null&&(r.stream.locked||A.isDisturbed(r.stream))}function utf8DecodeBytes(r){if(r.length===0){return""}if(r[0]===239&&r[1]===187&&r[2]===191){r=r.subarray(3)}const s=L.decode(r);return s}function parseJSONFromBytes(r){return JSON.parse(utf8DecodeBytes(r))}function bodyMimeType(r){const{headersList:s}=r[C];const i=s.get("content-type");if(i===null){return"failure"}return D(i)}r.exports={extractBody:extractBody,safelyExtractBody:safelyExtractBody,cloneBody:cloneBody,mixinBody:mixinBody}},90264:(r,s,i)=>{"use strict";const{MessageChannel:a,receiveMessageOnPort:A}=i(71267);const c=["GET","HEAD","POST"];const l=new Set(c);const d=[101,204,205,304];const u=[301,302,303,307,308];const p=new Set(u);const g=["1","7","9","11","13","15","17","19","20","21","22","23","25","37","42","43","53","69","77","79","87","95","101","102","103","104","109","110","111","113","115","117","119","123","135","137","139","143","161","179","389","427","465","512","513","514","515","526","530","531","532","540","548","554","556","563","587","601","636","989","990","993","995","1719","1720","1723","2049","3659","4045","5060","5061","6000","6566","6665","6666","6667","6668","6669","6697","10080"];const h=new Set(g);const C=["","no-referrer","no-referrer-when-downgrade","same-origin","origin","strict-origin","origin-when-cross-origin","strict-origin-when-cross-origin","unsafe-url"];const y=new Set(C);const I=["follow","manual","error"];const B=["GET","HEAD","OPTIONS","TRACE"];const b=new Set(B);const Q=["navigate","same-origin","no-cors","cors"];const w=["omit","same-origin","include"];const v=["default","no-store","reload","no-cache","force-cache","only-if-cached"];const S=["content-encoding","content-language","content-location","content-type","content-length"];const R=["half"];const N=["CONNECT","TRACE","TRACK"];const x=new Set(N);const D=["audio","audioworklet","font","image","manifest","paintworklet","script","style","track","video","xslt",""];const k=new Set(D);const T=globalThis.DOMException??(()=>{try{atob("~")}catch(r){return Object.getPrototypeOf(r).constructor}})();let _;const P=globalThis.structuredClone??function structuredClone(r,s=undefined){if(arguments.length===0){throw new TypeError("missing argument")}if(!_){_=new a}_.port1.unref();_.port2.unref();_.port1.postMessage(r,s?.transfer);return A(_.port2).message};r.exports={DOMException:T,structuredClone:P,subresource:D,forbiddenMethods:N,requestBodyHeader:S,referrerPolicy:C,requestRedirect:I,requestMode:Q,requestCredentials:w,requestCache:v,redirectStatus:u,corsSafeListedMethods:c,nullBodyStatus:d,safeMethods:B,badPorts:g,requestDuplex:R,subresourceSet:k,badPortsSet:h,redirectStatusSet:p,corsSafeListedMethodsSet:l,safeMethodsSet:b,forbiddenMethodsSet:x,referrerPolicySet:y}},44864:(r,s,i)=>{const a=i(39491);const{atob:A}=i(14300);const{isomorphicDecode:c}=i(35001);const l=new TextEncoder;const d=/^[!#$%&'*+-.^_|~A-Za-z0-9]+$/;const u=/(\u000A|\u000D|\u0009|\u0020)/;const p=/[\u0009|\u0020-\u007E|\u0080-\u00FF]/;function dataURLProcessor(r){a(r.protocol==="data:");let s=URLSerializer(r,true);s=s.slice(5);const i={position:0};let A=collectASequenceOfCodePointsFast(",",s,i);const l=A.length;A=removeASCIIWhitespace(A,true,true);if(i.position>=s.length){return"failure"}i.position++;const d=s.slice(l+1);let u=stringPercentDecode(d);if(/;(\u0020){0,}base64$/i.test(A)){const r=c(u);u=forgivingBase64(r);if(u==="failure"){return"failure"}A=A.slice(0,-6);A=A.replace(/(\u0020)+$/,"");A=A.slice(0,-1)}if(A.startsWith(";")){A="text/plain"+A}let p=parseMIMEType(A);if(p==="failure"){p=parseMIMEType("text/plain;charset=US-ASCII")}return{mimeType:p,body:u}}function URLSerializer(r,s=false){if(!s){return r.href}const i=r.href;const a=r.hash.length;return a===0?i:i.substring(0,i.length-a)}function collectASequenceOfCodePoints(r,s,i){let a="";while(i.positionr.length){return"failure"}s.position++;let a=collectASequenceOfCodePointsFast(";",r,s);a=removeHTTPWhitespace(a,false,true);if(a.length===0||!d.test(a)){return"failure"}const A=i.toLowerCase();const c=a.toLowerCase();const l={type:A,subtype:c,parameters:new Map,essence:`${A}/${c}`};while(s.positionu.test(r)),r,s);let i=collectASequenceOfCodePoints((r=>r!==";"&&r!=="="),r,s);i=i.toLowerCase();if(s.positionr.length){break}let a=null;if(r[s.position]==='"'){a=collectAnHTTPQuotedString(r,s,true);collectASequenceOfCodePointsFast(";",r,s)}else{a=collectASequenceOfCodePointsFast(";",r,s);a=removeHTTPWhitespace(a,false,true);if(a.length===0){continue}}if(i.length!==0&&d.test(i)&&(a.length===0||p.test(a))&&!l.parameters.has(i)){l.parameters.set(i,a)}}return l}function forgivingBase64(r){r=r.replace(/[\u0009\u000A\u000C\u000D\u0020]/g,"");if(r.length%4===0){r=r.replace(/=?=$/,"")}if(r.length%4===1){return"failure"}if(/[^+/0-9A-Za-z]/.test(r)){return"failure"}const s=A(r);const i=new Uint8Array(s.length);for(let r=0;rr!=='"'&&r!=="\\"),r,s);if(s.position>=r.length){break}const i=r[s.position];s.position++;if(i==="\\"){if(s.position>=r.length){c+="\\";break}c+=r[s.position];s.position++}else{a(i==='"');break}}if(i){return c}return r.slice(A,s.position)}function serializeAMimeType(r){a(r!=="failure");const{parameters:s,essence:i}=r;let A=i;for(let[r,i]of s.entries()){A+=";";A+=r;A+="=";if(!d.test(i)){i=i.replace(/(\\|")/g,"\\$1");i='"'+i;i+='"'}A+=i}return A}function isHTTPWhiteSpace(r){return r==="\r"||r==="\n"||r==="\t"||r===" "}function removeHTTPWhitespace(r,s=true,i=true){let a=0;let A=r.length-1;if(s){for(;a0&&isHTTPWhiteSpace(r[A]);A--);}return r.slice(a,A+1)}function isASCIIWhitespace(r){return r==="\r"||r==="\n"||r==="\t"||r==="\f"||r===" "}function removeASCIIWhitespace(r,s=true,i=true){let a=0;let A=r.length-1;if(s){for(;a0&&isASCIIWhitespace(r[A]);A--);}return r.slice(a,A+1)}r.exports={dataURLProcessor:dataURLProcessor,URLSerializer:URLSerializer,collectASequenceOfCodePoints:collectASequenceOfCodePoints,collectASequenceOfCodePointsFast:collectASequenceOfCodePointsFast,stringPercentDecode:stringPercentDecode,parseMIMEType:parseMIMEType,collectAnHTTPQuotedString:collectAnHTTPQuotedString,serializeAMimeType:serializeAMimeType}},89126:(r,s,i)=>{"use strict";const{Blob:a,File:A}=i(14300);const{types:c}=i(73837);const{kState:l}=i(80691);const{isBlobLike:d}=i(35001);const{webidl:u}=i(81825);const{parseMIMEType:p,serializeAMimeType:g}=i(44864);const{kEnumerableProperty:h}=i(82423);const C=new TextEncoder;class File extends a{constructor(r,s,i={}){u.argumentLengthCheck(arguments,2,{header:"File constructor"});r=u.converters["sequence"](r);s=u.converters.USVString(s);i=u.converters.FilePropertyBag(i);const a=s;let A=i.type;let c;e:{if(A){A=p(A);if(A==="failure"){A="";break e}A=g(A).toLowerCase()}c=i.lastModified}super(processBlobParts(r,i),{type:A});this[l]={name:a,lastModified:c,type:A}}get name(){u.brandCheck(this,File);return this[l].name}get lastModified(){u.brandCheck(this,File);return this[l].lastModified}get type(){u.brandCheck(this,File);return this[l].type}}class FileLike{constructor(r,s,i={}){const a=s;const A=i.type;const c=i.lastModified??Date.now();this[l]={blobLike:r,name:a,type:A,lastModified:c}}stream(...r){u.brandCheck(this,FileLike);return this[l].blobLike.stream(...r)}arrayBuffer(...r){u.brandCheck(this,FileLike);return this[l].blobLike.arrayBuffer(...r)}slice(...r){u.brandCheck(this,FileLike);return this[l].blobLike.slice(...r)}text(...r){u.brandCheck(this,FileLike);return this[l].blobLike.text(...r)}get size(){u.brandCheck(this,FileLike);return this[l].blobLike.size}get type(){u.brandCheck(this,FileLike);return this[l].blobLike.type}get name(){u.brandCheck(this,FileLike);return this[l].name}get lastModified(){u.brandCheck(this,FileLike);return this[l].lastModified}get[Symbol.toStringTag](){return"File"}}Object.defineProperties(File.prototype,{[Symbol.toStringTag]:{value:"File",configurable:true},name:h,lastModified:h});u.converters.Blob=u.interfaceConverter(a);u.converters.BlobPart=function(r,s){if(u.util.Type(r)==="Object"){if(d(r)){return u.converters.Blob(r,{strict:false})}if(ArrayBuffer.isView(r)||c.isAnyArrayBuffer(r)){return u.converters.BufferSource(r,s)}}return u.converters.USVString(r,s)};u.converters["sequence"]=u.sequenceConverter(u.converters.BlobPart);u.converters.FilePropertyBag=u.dictionaryConverter([{key:"lastModified",converter:u.converters["long long"],get defaultValue(){return Date.now()}},{key:"type",converter:u.converters.DOMString,defaultValue:""},{key:"endings",converter:r=>{r=u.converters.DOMString(r);r=r.toLowerCase();if(r!=="native"){r="transparent"}return r},defaultValue:"transparent"}]);function processBlobParts(r,s){const i=[];for(const a of r){if(typeof a==="string"){let r=a;if(s.endings==="native"){r=convertLineEndingsNative(r)}i.push(C.encode(r))}else if(c.isAnyArrayBuffer(a)||c.isTypedArray(a)){if(!a.buffer){i.push(new Uint8Array(a))}else{i.push(new Uint8Array(a.buffer,a.byteOffset,a.byteLength))}}else if(d(a)){i.push(a)}}return i}function convertLineEndingsNative(r){let s="\n";if(process.platform==="win32"){s="\r\n"}return r.replace(/\r?\n/g,s)}function isFileLike(r){return A&&r instanceof A||r instanceof File||r&&(typeof r.stream==="function"||typeof r.arrayBuffer==="function")&&r[Symbol.toStringTag]==="File"}r.exports={File:File,FileLike:FileLike,isFileLike:isFileLike}},31854:(r,s,i)=>{"use strict";const{isBlobLike:a,toUSVString:A,makeIterator:c}=i(35001);const{kState:l}=i(80691);const{File:d,FileLike:u,isFileLike:p}=i(89126);const{webidl:g}=i(81825);const{Blob:h,File:C}=i(14300);const y=C??d;class FormData{constructor(r){if(r!==undefined){throw g.errors.conversionFailed({prefix:"FormData constructor",argument:"Argument 1",types:["undefined"]})}this[l]=[]}append(r,s,i=undefined){g.brandCheck(this,FormData);g.argumentLengthCheck(arguments,2,{header:"FormData.append"});if(arguments.length===3&&!a(s)){throw new TypeError("Failed to execute 'append' on 'FormData': parameter 2 is not of type 'Blob'")}r=g.converters.USVString(r);s=a(s)?g.converters.Blob(s,{strict:false}):g.converters.USVString(s);i=arguments.length===3?g.converters.USVString(i):undefined;const A=makeEntry(r,s,i);this[l].push(A)}delete(r){g.brandCheck(this,FormData);g.argumentLengthCheck(arguments,1,{header:"FormData.delete"});r=g.converters.USVString(r);this[l]=this[l].filter((s=>s.name!==r))}get(r){g.brandCheck(this,FormData);g.argumentLengthCheck(arguments,1,{header:"FormData.get"});r=g.converters.USVString(r);const s=this[l].findIndex((s=>s.name===r));if(s===-1){return null}return this[l][s].value}getAll(r){g.brandCheck(this,FormData);g.argumentLengthCheck(arguments,1,{header:"FormData.getAll"});r=g.converters.USVString(r);return this[l].filter((s=>s.name===r)).map((r=>r.value))}has(r){g.brandCheck(this,FormData);g.argumentLengthCheck(arguments,1,{header:"FormData.has"});r=g.converters.USVString(r);return this[l].findIndex((s=>s.name===r))!==-1}set(r,s,i=undefined){g.brandCheck(this,FormData);g.argumentLengthCheck(arguments,2,{header:"FormData.set"});if(arguments.length===3&&!a(s)){throw new TypeError("Failed to execute 'set' on 'FormData': parameter 2 is not of type 'Blob'")}r=g.converters.USVString(r);s=a(s)?g.converters.Blob(s,{strict:false}):g.converters.USVString(s);i=arguments.length===3?A(i):undefined;const c=makeEntry(r,s,i);const d=this[l].findIndex((s=>s.name===r));if(d!==-1){this[l]=[...this[l].slice(0,d),c,...this[l].slice(d+1).filter((s=>s.name!==r))]}else{this[l].push(c)}}entries(){g.brandCheck(this,FormData);return c((()=>this[l].map((r=>[r.name,r.value]))),"FormData","key+value")}keys(){g.brandCheck(this,FormData);return c((()=>this[l].map((r=>[r.name,r.value]))),"FormData","key")}values(){g.brandCheck(this,FormData);return c((()=>this[l].map((r=>[r.name,r.value]))),"FormData","value")}forEach(r,s=globalThis){g.brandCheck(this,FormData);g.argumentLengthCheck(arguments,1,{header:"FormData.forEach"});if(typeof r!=="function"){throw new TypeError("Failed to execute 'forEach' on 'FormData': parameter 1 is not of type 'Function'.")}for(const[i,a]of this){r.apply(s,[a,i,this])}}}FormData.prototype[Symbol.iterator]=FormData.prototype.entries;Object.defineProperties(FormData.prototype,{[Symbol.toStringTag]:{value:"FormData",configurable:true}});function makeEntry(r,s,i){r=Buffer.from(r).toString("utf8");if(typeof s==="string"){s=Buffer.from(s).toString("utf8")}else{if(!p(s)){s=s instanceof h?new y([s],"blob",{type:s.type}):new u(s,"blob",{type:s.type})}if(i!==undefined){const r={type:s.type,lastModified:s.lastModified};s=C&&s instanceof C||s instanceof d?new y([s],i,r):new u(s,i,r)}}return{name:r,value:s}}r.exports={FormData:FormData}},31744:r=>{"use strict";const s=Symbol.for("undici.globalOrigin.1");function getGlobalOrigin(){return globalThis[s]}function setGlobalOrigin(r){if(r===undefined){Object.defineProperty(globalThis,s,{value:undefined,writable:true,enumerable:false,configurable:false});return}const i=new URL(r);if(i.protocol!=="http:"&&i.protocol!=="https:"){throw new TypeError(`Only http & https urls are allowed, received ${i.protocol}`)}Object.defineProperty(globalThis,s,{value:i,writable:true,enumerable:false,configurable:false})}r.exports={getGlobalOrigin:getGlobalOrigin,setGlobalOrigin:setGlobalOrigin}},35823:(r,s,i)=>{"use strict";const{kHeadersList:a,kConstruct:A}=i(25999);const{kGuard:c}=i(80691);const{kEnumerableProperty:l}=i(82423);const{makeIterator:d,isValidHeaderName:u,isValidHeaderValue:p}=i(35001);const g=i(73837);const{webidl:h}=i(81825);const C=i(39491);const y=Symbol("headers map");const I=Symbol("headers map sorted");function isHTTPWhiteSpaceCharCode(r){return r===10||r===13||r===9||r===32}function headerValueNormalize(r){let s=0;let i=r.length;while(i>s&&isHTTPWhiteSpaceCharCode(r.charCodeAt(i-1)))--i;while(i>s&&isHTTPWhiteSpaceCharCode(r.charCodeAt(s)))++s;return s===0&&i===r.length?r:r.substring(s,i)}function fill(r,s){if(Array.isArray(s)){for(let i=0;i>","record"]})}}function appendHeader(r,s,i){i=headerValueNormalize(i);if(!u(s)){throw h.errors.invalidArgument({prefix:"Headers.append",value:s,type:"header name"})}else if(!p(i)){throw h.errors.invalidArgument({prefix:"Headers.append",value:i,type:"header value"})}if(r[c]==="immutable"){throw new TypeError("immutable")}else if(r[c]==="request-no-cors"){}return r[a].append(s,i)}class HeadersList{cookies=null;constructor(r){if(r instanceof HeadersList){this[y]=new Map(r[y]);this[I]=r[I];this.cookies=r.cookies===null?null:[...r.cookies]}else{this[y]=new Map(r);this[I]=null}}contains(r){r=r.toLowerCase();return this[y].has(r)}clear(){this[y].clear();this[I]=null;this.cookies=null}append(r,s){this[I]=null;const i=r.toLowerCase();const a=this[y].get(i);if(a){const r=i==="cookie"?"; ":", ";this[y].set(i,{name:a.name,value:`${a.value}${r}${s}`})}else{this[y].set(i,{name:r,value:s})}if(i==="set-cookie"){this.cookies??=[];this.cookies.push(s)}}set(r,s){this[I]=null;const i=r.toLowerCase();if(i==="set-cookie"){this.cookies=[s]}this[y].set(i,{name:r,value:s})}delete(r){this[I]=null;r=r.toLowerCase();if(r==="set-cookie"){this.cookies=null}this[y].delete(r)}get(r){const s=this[y].get(r.toLowerCase());return s===undefined?null:s.value}*[Symbol.iterator](){for(const[r,{value:s}]of this[y]){yield[r,s]}}get entries(){const r={};if(this[y].size){for(const{name:s,value:i}of this[y].values()){r[s]=i}}return r}}class Headers{constructor(r=undefined){if(r===A){return}this[a]=new HeadersList;this[c]="none";if(r!==undefined){r=h.converters.HeadersInit(r);fill(this,r)}}append(r,s){h.brandCheck(this,Headers);h.argumentLengthCheck(arguments,2,{header:"Headers.append"});r=h.converters.ByteString(r);s=h.converters.ByteString(s);return appendHeader(this,r,s)}delete(r){h.brandCheck(this,Headers);h.argumentLengthCheck(arguments,1,{header:"Headers.delete"});r=h.converters.ByteString(r);if(!u(r)){throw h.errors.invalidArgument({prefix:"Headers.delete",value:r,type:"header name"})}if(this[c]==="immutable"){throw new TypeError("immutable")}else if(this[c]==="request-no-cors"){}if(!this[a].contains(r)){return}this[a].delete(r)}get(r){h.brandCheck(this,Headers);h.argumentLengthCheck(arguments,1,{header:"Headers.get"});r=h.converters.ByteString(r);if(!u(r)){throw h.errors.invalidArgument({prefix:"Headers.get",value:r,type:"header name"})}return this[a].get(r)}has(r){h.brandCheck(this,Headers);h.argumentLengthCheck(arguments,1,{header:"Headers.has"});r=h.converters.ByteString(r);if(!u(r)){throw h.errors.invalidArgument({prefix:"Headers.has",value:r,type:"header name"})}return this[a].contains(r)}set(r,s){h.brandCheck(this,Headers);h.argumentLengthCheck(arguments,2,{header:"Headers.set"});r=h.converters.ByteString(r);s=h.converters.ByteString(s);s=headerValueNormalize(s);if(!u(r)){throw h.errors.invalidArgument({prefix:"Headers.set",value:r,type:"header name"})}else if(!p(s)){throw h.errors.invalidArgument({prefix:"Headers.set",value:s,type:"header value"})}if(this[c]==="immutable"){throw new TypeError("immutable")}else if(this[c]==="request-no-cors"){}this[a].set(r,s)}getSetCookie(){h.brandCheck(this,Headers);const r=this[a].cookies;if(r){return[...r]}return[]}get[I](){if(this[a][I]){return this[a][I]}const r=[];const s=[...this[a]].sort(((r,s)=>r[0]r),"Headers","key")}return d((()=>[...this[I].values()]),"Headers","key")}values(){h.brandCheck(this,Headers);if(this[c]==="immutable"){const r=this[I];return d((()=>r),"Headers","value")}return d((()=>[...this[I].values()]),"Headers","value")}entries(){h.brandCheck(this,Headers);if(this[c]==="immutable"){const r=this[I];return d((()=>r),"Headers","key+value")}return d((()=>[...this[I].values()]),"Headers","key+value")}forEach(r,s=globalThis){h.brandCheck(this,Headers);h.argumentLengthCheck(arguments,1,{header:"Headers.forEach"});if(typeof r!=="function"){throw new TypeError("Failed to execute 'forEach' on 'Headers': parameter 1 is not of type 'Function'.")}for(const[i,a]of this){r.apply(s,[a,i,this])}}[Symbol.for("nodejs.util.inspect.custom")](){h.brandCheck(this,Headers);return this[a]}}Headers.prototype[Symbol.iterator]=Headers.prototype.entries;Object.defineProperties(Headers.prototype,{append:l,delete:l,get:l,has:l,set:l,getSetCookie:l,keys:l,values:l,entries:l,forEach:l,[Symbol.iterator]:{enumerable:false},[Symbol.toStringTag]:{value:"Headers",configurable:true},[g.inspect.custom]:{enumerable:false}});h.converters.HeadersInit=function(r){if(h.util.Type(r)==="Object"){if(r[Symbol.iterator]){return h.converters["sequence>"](r)}return h.converters["record"](r)}throw h.errors.conversionFailed({prefix:"Headers constructor",argument:"Argument 1",types:["sequence>","record"]})};r.exports={fill:fill,Headers:Headers,HeadersList:HeadersList}},69538:(r,s,i)=>{"use strict";const{Response:a,makeNetworkError:A,makeAppropriateNetworkError:c,filterResponse:l,makeResponse:d}=i(65876);const{Headers:u}=i(35823);const{Request:p,makeRequest:g}=i(55247);const h=i(59796);const{bytesMatch:C,makePolicyContainer:y,clonePolicyContainer:I,requestBadPort:B,TAOCheck:b,appendRequestOriginHeader:Q,responseLocationURL:w,requestCurrentURL:v,setRequestReferrerPolicyOnRedirect:S,tryUpgradeRequestToAPotentiallyTrustworthyURL:R,createOpaqueTimingInfo:N,appendFetchMetadata:x,corsCheck:D,crossOriginResourcePolicyCheck:k,determineRequestsReferrer:T,coarsenedSharedCurrentTime:_,createDeferredPromise:P,isBlobLike:O,sameOrigin:L,isCancelled:M,isAborted:U,isErrorLike:H,fullyReadBody:G,readableStreamClose:q,isomorphicEncode:V,urlIsLocal:j,urlIsHttpHttpsScheme:z,urlHasHttpsScheme:Y}=i(35001);const{kState:J,kHeaders:W,kGuard:X,kRealm:$}=i(80691);const K=i(39491);const{safelyExtractBody:Z}=i(16325);const{redirectStatusSet:ee,nullBodyStatus:te,safeMethodsSet:re,requestBodyHeader:ne,subresourceSet:se,DOMException:ie}=i(90264);const{kHeadersList:oe}=i(25999);const ae=i(82361);const{Readable:Ae,pipeline:ce}=i(12781);const{addAbortListener:le,isErrored:de,isReadable:ue,nodeMajor:pe,nodeMinor:ge}=i(82423);const{dataURLProcessor:he,serializeAMimeType:me}=i(44864);const{TransformStream:fe}=i(35356);const{getGlobalDispatcher:Ee}=i(12475);const{webidl:Ce}=i(81825);const{STATUS_CODES:ye}=i(13685);const Ie=["GET","HEAD"];let Be;let be=globalThis.ReadableStream;class Fetch extends ae{constructor(r){super();this.dispatcher=r;this.connection=null;this.dump=false;this.state="ongoing";this.setMaxListeners(21)}terminate(r){if(this.state!=="ongoing"){return}this.state="terminated";this.connection?.destroy(r);this.emit("terminated",r)}abort(r){if(this.state!=="ongoing"){return}this.state="aborted";if(!r){r=new ie("The operation was aborted.","AbortError")}this.serializedAbortReason=r;this.connection?.destroy(r);this.emit("terminated",r)}}function fetch(r,s={}){Ce.argumentLengthCheck(arguments,1,{header:"globalThis.fetch"});const i=P();let A;try{A=new p(r,s)}catch(r){i.reject(r);return i.promise}const c=A[J];if(A.signal.aborted){abortFetch(i,c,null,A.signal.reason);return i.promise}const l=c.client.globalObject;if(l?.constructor?.name==="ServiceWorkerGlobalScope"){c.serviceWorkers="none"}let d=null;const u=null;let g=false;let h=null;le(A.signal,(()=>{g=true;K(h!=null);h.abort(A.signal.reason);abortFetch(i,c,d,A.signal.reason)}));const handleFetchDone=r=>finalizeAndReportTiming(r,"fetch");const processResponse=r=>{if(g){return Promise.resolve()}if(r.aborted){abortFetch(i,c,d,h.serializedAbortReason);return Promise.resolve()}if(r.type==="error"){i.reject(Object.assign(new TypeError("fetch failed"),{cause:r.error}));return Promise.resolve()}d=new a;d[J]=r;d[$]=u;d[W][oe]=r.headersList;d[W][X]="immutable";d[W][$]=u;i.resolve(d)};h=fetching({request:c,processResponseEndOfBody:handleFetchDone,processResponse:processResponse,dispatcher:s.dispatcher??Ee()});return i.promise}function finalizeAndReportTiming(r,s="other"){if(r.type==="error"&&r.aborted){return}if(!r.urlList?.length){return}const i=r.urlList[0];let a=r.timingInfo;let A=r.cacheState;if(!z(i)){return}if(a===null){return}if(!r.timingAllowPassed){a=N({startTime:a.startTime});A=""}a.endTime=_();r.timingInfo=a;markResourceTiming(a,i,s,globalThis,A)}function markResourceTiming(r,s,i,a,A){if(pe>18||pe===18&&ge>=2){performance.markResourceTiming(r,s.href,i,a,A)}}function abortFetch(r,s,i,a){if(!a){a=new ie("The operation was aborted.","AbortError")}r.reject(a);if(s.body!=null&&ue(s.body?.stream)){s.body.stream.cancel(a).catch((r=>{if(r.code==="ERR_INVALID_STATE"){return}throw r}))}if(i==null){return}const A=i[J];if(A.body!=null&&ue(A.body?.stream)){A.body.stream.cancel(a).catch((r=>{if(r.code==="ERR_INVALID_STATE"){return}throw r}))}}function fetching({request:r,processRequestBodyChunkLength:s,processRequestEndOfBody:i,processResponse:a,processResponseEndOfBody:A,processResponseConsumeBody:c,useParallelQueue:l=false,dispatcher:d}){let u=null;let p=false;if(r.client!=null){u=r.client.globalObject;p=r.client.crossOriginIsolatedCapability}const g=_(p);const h=N({startTime:g});const C={controller:new Fetch(d),request:r,timingInfo:h,processRequestBodyChunkLength:s,processRequestEndOfBody:i,processResponse:a,processResponseConsumeBody:c,processResponseEndOfBody:A,taskDestination:u,crossOriginIsolatedCapability:p};K(!r.body||r.body.stream);if(r.window==="client"){r.window=r.client?.globalObject?.constructor?.name==="Window"?r.client:"no-window"}if(r.origin==="client"){r.origin=r.client?.origin}if(r.policyContainer==="client"){if(r.client!=null){r.policyContainer=I(r.client.policyContainer)}else{r.policyContainer=y()}}if(!r.headersList.contains("accept")){const s="*/*";r.headersList.append("accept",s)}if(!r.headersList.contains("accept-language")){r.headersList.append("accept-language","*")}if(r.priority===null){}if(se.has(r.destination)){}mainFetch(C).catch((r=>{C.controller.terminate(r)}));return C.controller}async function mainFetch(r,s=false){const i=r.request;let a=null;if(i.localURLsOnly&&!j(v(i))){a=A("local URLs only")}R(i);if(B(i)==="blocked"){a=A("bad port")}if(i.referrerPolicy===""){i.referrerPolicy=i.policyContainer.referrerPolicy}if(i.referrer!=="no-referrer"){i.referrer=T(i)}if(a===null){a=await(async()=>{const s=v(i);if(L(s,i.url)&&i.responseTainting==="basic"||s.protocol==="data:"||(i.mode==="navigate"||i.mode==="websocket")){i.responseTainting="basic";return await schemeFetch(r)}if(i.mode==="same-origin"){return A('request mode cannot be "same-origin"')}if(i.mode==="no-cors"){if(i.redirect!=="follow"){return A('redirect mode cannot be "follow" for "no-cors" request')}i.responseTainting="opaque";return await schemeFetch(r)}if(!z(v(i))){return A("URL scheme must be a HTTP(S) scheme")}i.responseTainting="cors";return await httpFetch(r)})()}if(s){return a}if(a.status!==0&&!a.internalResponse){if(i.responseTainting==="cors"){}if(i.responseTainting==="basic"){a=l(a,"basic")}else if(i.responseTainting==="cors"){a=l(a,"cors")}else if(i.responseTainting==="opaque"){a=l(a,"opaque")}else{K(false)}}let c=a.status===0?a:a.internalResponse;if(c.urlList.length===0){c.urlList.push(...i.urlList)}if(!i.timingAllowFailed){a.timingAllowPassed=true}if(a.type==="opaque"&&c.status===206&&c.rangeRequested&&!i.headers.contains("range")){a=c=A()}if(a.status!==0&&(i.method==="HEAD"||i.method==="CONNECT"||te.includes(c.status))){c.body=null;r.controller.dump=true}if(i.integrity){const processBodyError=s=>fetchFinale(r,A(s));if(i.responseTainting==="opaque"||a.body==null){processBodyError(a.error);return}const processBody=s=>{if(!C(s,i.integrity)){processBodyError("integrity mismatch");return}a.body=Z(s)[0];fetchFinale(r,a)};await G(a.body,processBody,processBodyError)}else{fetchFinale(r,a)}}function schemeFetch(r){if(M(r)&&r.request.redirectCount===0){return Promise.resolve(c(r))}const{request:s}=r;const{protocol:a}=v(s);switch(a){case"about:":{return Promise.resolve(A("about scheme is not supported"))}case"blob:":{if(!Be){Be=i(14300).resolveObjectURL}const r=v(s);if(r.search.length!==0){return Promise.resolve(A("NetworkError when attempting to fetch resource."))}const a=Be(r.toString());if(s.method!=="GET"||!O(a)){return Promise.resolve(A("invalid method"))}const c=Z(a);const l=c[0];const u=V(`${l.length}`);const p=c[1]??"";const g=d({statusText:"OK",headersList:[["content-length",{name:"Content-Length",value:u}],["content-type",{name:"Content-Type",value:p}]]});g.body=l;return Promise.resolve(g)}case"data:":{const r=v(s);const i=he(r);if(i==="failure"){return Promise.resolve(A("failed to fetch the data URL"))}const a=me(i.mimeType);return Promise.resolve(d({statusText:"OK",headersList:[["content-type",{name:"Content-Type",value:a}]],body:Z(i.body)[0]}))}case"file:":{return Promise.resolve(A("not implemented... yet..."))}case"http:":case"https:":{return httpFetch(r).catch((r=>A(r)))}default:{return Promise.resolve(A("unknown scheme"))}}}function finalizeResponse(r,s){r.request.done=true;if(r.processResponseDone!=null){queueMicrotask((()=>r.processResponseDone(s)))}}function fetchFinale(r,s){if(s.type==="error"){s.urlList=[r.request.urlList[0]];s.timingInfo=N({startTime:r.timingInfo.startTime})}const processResponseEndOfBody=()=>{r.request.done=true;if(r.processResponseEndOfBody!=null){queueMicrotask((()=>r.processResponseEndOfBody(s)))}};if(r.processResponse!=null){queueMicrotask((()=>r.processResponse(s)))}if(s.body==null){processResponseEndOfBody()}else{const identityTransformAlgorithm=(r,s)=>{s.enqueue(r)};const r=new fe({start(){},transform:identityTransformAlgorithm,flush:processResponseEndOfBody},{size(){return 1}},{size(){return 1}});s.body={stream:s.body.stream.pipeThrough(r)}}if(r.processResponseConsumeBody!=null){const processBody=i=>r.processResponseConsumeBody(s,i);const processBodyError=i=>r.processResponseConsumeBody(s,i);if(s.body==null){queueMicrotask((()=>processBody(null)))}else{return G(s.body,processBody,processBodyError)}return Promise.resolve()}}async function httpFetch(r){const s=r.request;let i=null;let a=null;const c=r.timingInfo;if(s.serviceWorkers==="all"){}if(i===null){if(s.redirect==="follow"){s.serviceWorkers="none"}a=i=await httpNetworkOrCacheFetch(r);if(s.responseTainting==="cors"&&D(s,i)==="failure"){return A("cors failure")}if(b(s,i)==="failure"){s.timingAllowFailed=true}}if((s.responseTainting==="opaque"||i.type==="opaque")&&k(s.origin,s.client,s.destination,a)==="blocked"){return A("blocked")}if(ee.has(a.status)){if(s.redirect!=="manual"){r.controller.connection.destroy()}if(s.redirect==="error"){i=A("unexpected redirect")}else if(s.redirect==="manual"){i=a}else if(s.redirect==="follow"){i=await httpRedirectFetch(r,i)}else{K(false)}}i.timingInfo=c;return i}function httpRedirectFetch(r,s){const i=r.request;const a=s.internalResponse?s.internalResponse:s;let c;try{c=w(a,v(i).hash);if(c==null){return s}}catch(r){return Promise.resolve(A(r))}if(!z(c)){return Promise.resolve(A("URL scheme must be a HTTP(S) scheme"))}if(i.redirectCount===20){return Promise.resolve(A("redirect count exceeded"))}i.redirectCount+=1;if(i.mode==="cors"&&(c.username||c.password)&&!L(i,c)){return Promise.resolve(A('cross origin not allowed for request mode "cors"'))}if(i.responseTainting==="cors"&&(c.username||c.password)){return Promise.resolve(A('URL cannot contain credentials for request mode "cors"'))}if(a.status!==303&&i.body!=null&&i.body.source==null){return Promise.resolve(A())}if([301,302].includes(a.status)&&i.method==="POST"||a.status===303&&!Ie.includes(i.method)){i.method="GET";i.body=null;for(const r of ne){i.headersList.delete(r)}}if(!L(v(i),c)){i.headersList.delete("authorization");i.headersList.delete("proxy-authorization",true);i.headersList.delete("cookie");i.headersList.delete("host")}if(i.body!=null){K(i.body.source!=null);i.body=Z(i.body.source)[0]}const l=r.timingInfo;l.redirectEndTime=l.postRedirectStartTime=_(r.crossOriginIsolatedCapability);if(l.redirectStartTime===0){l.redirectStartTime=l.startTime}i.urlList.push(c);S(i,a);return mainFetch(r,true)}async function httpNetworkOrCacheFetch(r,s=false,i=false){const a=r.request;let l=null;let d=null;let u=null;const p=null;const h=false;if(a.window==="no-window"&&a.redirect==="error"){l=r;d=a}else{d=g(a);l={...r};l.request=d}const C=a.credentials==="include"||a.credentials==="same-origin"&&a.responseTainting==="basic";const y=d.body?d.body.length:null;let I=null;if(d.body==null&&["POST","PUT"].includes(d.method)){I="0"}if(y!=null){I=V(`${y}`)}if(I!=null){d.headersList.append("content-length",I)}if(y!=null&&d.keepalive){}if(d.referrer instanceof URL){d.headersList.append("referer",V(d.referrer.href))}Q(d);x(d);if(!d.headersList.contains("user-agent")){d.headersList.append("user-agent",typeof esbuildDetection==="undefined"?"undici":"node")}if(d.cache==="default"&&(d.headersList.contains("if-modified-since")||d.headersList.contains("if-none-match")||d.headersList.contains("if-unmodified-since")||d.headersList.contains("if-match")||d.headersList.contains("if-range"))){d.cache="no-store"}if(d.cache==="no-cache"&&!d.preventNoCacheCacheControlHeaderModification&&!d.headersList.contains("cache-control")){d.headersList.append("cache-control","max-age=0")}if(d.cache==="no-store"||d.cache==="reload"){if(!d.headersList.contains("pragma")){d.headersList.append("pragma","no-cache")}if(!d.headersList.contains("cache-control")){d.headersList.append("cache-control","no-cache")}}if(d.headersList.contains("range")){d.headersList.append("accept-encoding","identity")}if(!d.headersList.contains("accept-encoding")){if(Y(v(d))){d.headersList.append("accept-encoding","br, gzip, deflate")}else{d.headersList.append("accept-encoding","gzip, deflate")}}d.headersList.delete("host");if(C){}if(p==null){d.cache="no-store"}if(d.mode!=="no-store"&&d.mode!=="reload"){}if(u==null){if(d.mode==="only-if-cached"){return A("only if cached")}const r=await httpNetworkFetch(l,C,i);if(!re.has(d.method)&&r.status>=200&&r.status<=399){}if(h&&r.status===304){}if(u==null){u=r}}u.urlList=[...d.urlList];if(d.headersList.contains("range")){u.rangeRequested=true}u.requestIncludesCredentials=C;if(u.status===407){if(a.window==="no-window"){return A()}if(M(r)){return c(r)}return A("proxy authentication required")}if(u.status===421&&!i&&(a.body==null||a.body.source!=null)){if(M(r)){return c(r)}r.controller.connection.destroy();u=await httpNetworkOrCacheFetch(r,s,true)}if(s){}return u}async function httpNetworkFetch(r,s=false,a=false){K(!r.controller.connection||r.controller.connection.destroyed);r.controller.connection={abort:null,destroyed:false,destroy(r){if(!this.destroyed){this.destroyed=true;this.abort?.(r??new ie("The operation was aborted.","AbortError"))}}};const l=r.request;let p=null;const g=r.timingInfo;const C=null;if(C==null){l.cache="no-store"}const y=a?"yes":"no";if(l.mode==="websocket"){}else{}let I=null;if(l.body==null&&r.processRequestEndOfBody){queueMicrotask((()=>r.processRequestEndOfBody()))}else if(l.body!=null){const processBodyChunk=async function*(s){if(M(r)){return}yield s;r.processRequestBodyChunkLength?.(s.byteLength)};const processEndOfBody=()=>{if(M(r)){return}if(r.processRequestEndOfBody){r.processRequestEndOfBody()}};const processBodyError=s=>{if(M(r)){return}if(s.name==="AbortError"){r.controller.abort()}else{r.controller.terminate(s)}};I=async function*(){try{for await(const r of l.body.stream){yield*processBodyChunk(r)}processEndOfBody()}catch(r){processBodyError(r)}}()}try{const{body:s,status:i,statusText:a,headersList:A,socket:c}=await dispatch({body:I});if(c){p=d({status:i,statusText:a,headersList:A,socket:c})}else{const c=s[Symbol.asyncIterator]();r.controller.next=()=>c.next();p=d({status:i,statusText:a,headersList:A})}}catch(s){if(s.name==="AbortError"){r.controller.connection.destroy();return c(r,s)}return A(s)}const pullAlgorithm=()=>{r.controller.resume()};const cancelAlgorithm=s=>{r.controller.abort(s)};if(!be){be=i(35356).ReadableStream}const B=new be({async start(s){r.controller.controller=s},async pull(r){await pullAlgorithm(r)},async cancel(r){await cancelAlgorithm(r)}},{highWaterMark:0,size(){return 1}});p.body={stream:B};r.controller.on("terminated",onAborted);r.controller.resume=async()=>{while(true){let s;let i;try{const{done:i,value:a}=await r.controller.next();if(U(r)){break}s=i?undefined:a}catch(a){if(r.controller.ended&&!g.encodedBodySize){s=undefined}else{s=a;i=true}}if(s===undefined){q(r.controller.controller);finalizeResponse(r,p);return}g.decodedBodySize+=s?.byteLength??0;if(i){r.controller.terminate(s);return}r.controller.controller.enqueue(new Uint8Array(s));if(de(B)){r.controller.terminate();return}if(!r.controller.controller.desiredSize){return}}};function onAborted(s){if(U(r)){p.aborted=true;if(ue(B)){r.controller.controller.error(r.controller.serializedAbortReason)}}else{if(ue(B)){r.controller.controller.error(new TypeError("terminated",{cause:H(s)?s:undefined}))}}r.controller.connection.destroy()}return p;async function dispatch({body:s}){const i=v(l);const a=r.controller.dispatcher;return new Promise(((A,c)=>a.dispatch({path:i.pathname+i.search,origin:i.origin,method:l.method,body:r.controller.dispatcher.isMockActive?l.body&&(l.body.source||l.body.stream):s,headers:l.headersList.entries,maxRedirections:0,upgrade:l.mode==="websocket"?"websocket":undefined},{body:null,abort:null,onConnect(s){const{connection:i}=r.controller;if(i.destroyed){s(new ie("The operation was aborted.","AbortError"))}else{r.controller.on("terminated",s);this.abort=i.abort=s}},onHeaders(r,s,i,a){if(r<200){return}let c=[];let d="";const p=new u;if(Array.isArray(s)){for(let r=0;rr.trim()))}else if(i.toLowerCase()==="location"){d=a}p[oe].append(i,a)}}else{const r=Object.keys(s);for(const i of r){const r=s[i];if(i.toLowerCase()==="content-encoding"){c=r.toLowerCase().split(",").map((r=>r.trim())).reverse()}else if(i.toLowerCase()==="location"){d=r}p[oe].append(i,r)}}this.body=new Ae({read:i});const g=[];const C=l.redirect==="follow"&&d&&ee.has(r);if(l.method!=="HEAD"&&l.method!=="CONNECT"&&!te.includes(r)&&!C){for(const r of c){if(r==="x-gzip"||r==="gzip"){g.push(h.createGunzip({flush:h.constants.Z_SYNC_FLUSH,finishFlush:h.constants.Z_SYNC_FLUSH}))}else if(r==="deflate"){g.push(h.createInflate())}else if(r==="br"){g.push(h.createBrotliDecompress())}else{g.length=0;break}}}A({status:r,statusText:a,headersList:p[oe],body:g.length?ce(this.body,...g,(()=>{})):this.body.on("error",(()=>{}))});return true},onData(s){if(r.controller.dump){return}const i=s;g.encodedBodySize+=i.byteLength;return this.body.push(i)},onComplete(){if(this.abort){r.controller.off("terminated",this.abort)}r.controller.ended=true;this.body.push(null)},onError(s){if(this.abort){r.controller.off("terminated",this.abort)}this.body?.destroy(s);r.controller.terminate(s);c(s)},onUpgrade(r,s,i){if(r!==101){return}const a=new u;for(let r=0;r{"use strict";const{extractBody:a,mixinBody:A,cloneBody:c}=i(16325);const{Headers:l,fill:d,HeadersList:u}=i(35823);const{FinalizationRegistry:p}=i(74682)();const g=i(82423);const{isValidHTTPToken:h,sameOrigin:C,normalizeMethod:y,makePolicyContainer:I,normalizeMethodRecord:B}=i(35001);const{forbiddenMethodsSet:b,corsSafeListedMethodsSet:Q,referrerPolicy:w,requestRedirect:v,requestMode:S,requestCredentials:R,requestCache:N,requestDuplex:x}=i(90264);const{kEnumerableProperty:D}=g;const{kHeaders:k,kSignal:T,kState:_,kGuard:P,kRealm:O}=i(80691);const{webidl:L}=i(81825);const{getGlobalOrigin:M}=i(31744);const{URLSerializer:U}=i(44864);const{kHeadersList:H,kConstruct:G}=i(25999);const q=i(39491);const{getMaxListeners:V,setMaxListeners:j,getEventListeners:z,defaultMaxListeners:Y}=i(82361);let J=globalThis.TransformStream;const W=Symbol("abortController");const X=new p((({signal:r,abort:s})=>{r.removeEventListener("abort",s)}));class Request{constructor(r,s={}){if(r===G){return}L.argumentLengthCheck(arguments,1,{header:"Request constructor"});r=L.converters.RequestInfo(r);s=L.converters.RequestInit(s);this[O]={settingsObject:{baseUrl:M(),get origin(){return this.baseUrl?.origin},policyContainer:I()}};let A=null;let c=null;const p=this[O].settingsObject.baseUrl;let w=null;if(typeof r==="string"){let s;try{s=new URL(r,p)}catch(s){throw new TypeError("Failed to parse URL from "+r,{cause:s})}if(s.username||s.password){throw new TypeError("Request cannot be constructed from a URL that includes credentials: "+r)}A=makeRequest({urlList:[s]});c="cors"}else{q(r instanceof Request);A=r[_];w=r[T]}const v=this[O].settingsObject.origin;let S="client";if(A.window?.constructor?.name==="EnvironmentSettingsObject"&&C(A.window,v)){S=A.window}if(s.window!=null){throw new TypeError(`'window' option '${S}' must be null`)}if("window"in s){S="no-window"}A=makeRequest({method:A.method,headersList:A.headersList,unsafeRequest:A.unsafeRequest,client:this[O].settingsObject,window:S,priority:A.priority,origin:A.origin,referrer:A.referrer,referrerPolicy:A.referrerPolicy,mode:A.mode,credentials:A.credentials,cache:A.cache,redirect:A.redirect,integrity:A.integrity,keepalive:A.keepalive,reloadNavigation:A.reloadNavigation,historyNavigation:A.historyNavigation,urlList:[...A.urlList]});const R=Object.keys(s).length!==0;if(R){if(A.mode==="navigate"){A.mode="same-origin"}A.reloadNavigation=false;A.historyNavigation=false;A.origin="client";A.referrer="client";A.referrerPolicy="";A.url=A.urlList[A.urlList.length-1];A.urlList=[A.url]}if(s.referrer!==undefined){const r=s.referrer;if(r===""){A.referrer="no-referrer"}else{let s;try{s=new URL(r,p)}catch(s){throw new TypeError(`Referrer "${r}" is not a valid URL.`,{cause:s})}if(s.protocol==="about:"&&s.hostname==="client"||v&&!C(s,this[O].settingsObject.baseUrl)){A.referrer="client"}else{A.referrer=s}}}if(s.referrerPolicy!==undefined){A.referrerPolicy=s.referrerPolicy}let N;if(s.mode!==undefined){N=s.mode}else{N=c}if(N==="navigate"){throw L.errors.exception({header:"Request constructor",message:"invalid request mode navigate."})}if(N!=null){A.mode=N}if(s.credentials!==undefined){A.credentials=s.credentials}if(s.cache!==undefined){A.cache=s.cache}if(A.cache==="only-if-cached"&&A.mode!=="same-origin"){throw new TypeError("'only-if-cached' can be set only with 'same-origin' mode")}if(s.redirect!==undefined){A.redirect=s.redirect}if(s.integrity!=null){A.integrity=String(s.integrity)}if(s.keepalive!==undefined){A.keepalive=Boolean(s.keepalive)}if(s.method!==undefined){let r=s.method;if(!h(r)){throw new TypeError(`'${r}' is not a valid HTTP method.`)}if(b.has(r.toUpperCase())){throw new TypeError(`'${r}' HTTP method is unsupported.`)}r=B[r]??y(r);A.method=r}if(s.signal!==undefined){w=s.signal}this[_]=A;const x=new AbortController;this[T]=x.signal;this[T][O]=this[O];if(w!=null){if(!w||typeof w.aborted!=="boolean"||typeof w.addEventListener!=="function"){throw new TypeError("Failed to construct 'Request': member signal is not of type AbortSignal.")}if(w.aborted){x.abort(w.reason)}else{this[W]=x;const r=new WeakRef(x);const abort=function(){const s=r.deref();if(s!==undefined){s.abort(this.reason)}};try{if(typeof V==="function"&&V(w)===Y){j(100,w)}else if(z(w,"abort").length>=Y){j(100,w)}}catch{}g.addAbortListener(w,abort);X.register(x,{signal:w,abort:abort})}}this[k]=new l(G);this[k][H]=A.headersList;this[k][P]="request";this[k][O]=this[O];if(N==="no-cors"){if(!Q.has(A.method)){throw new TypeError(`'${A.method} is unsupported in no-cors mode.`)}this[k][P]="request-no-cors"}if(R){const r=this[k][H];const i=s.headers!==undefined?s.headers:new u(r);r.clear();if(i instanceof u){for(const[s,a]of i){r.append(s,a)}r.cookies=i.cookies}else{d(this[k],i)}}const D=r instanceof Request?r[_].body:null;if((s.body!=null||D!=null)&&(A.method==="GET"||A.method==="HEAD")){throw new TypeError("Request with GET/HEAD method cannot have body.")}let U=null;if(s.body!=null){const[r,i]=a(s.body,A.keepalive);U=r;if(i&&!this[k][H].contains("content-type")){this[k].append("content-type",i)}}const $=U??D;if($!=null&&$.source==null){if(U!=null&&s.duplex==null){throw new TypeError("RequestInit: duplex option is required when sending a body.")}if(A.mode!=="same-origin"&&A.mode!=="cors"){throw new TypeError('If request is made from ReadableStream, mode should be "same-origin" or "cors"')}A.useCORSPreflightFlag=true}let K=$;if(U==null&&D!=null){if(g.isDisturbed(D.stream)||D.stream.locked){throw new TypeError("Cannot construct a Request with a Request object that has already been used.")}if(!J){J=i(35356).TransformStream}const r=new J;D.stream.pipeThrough(r);K={source:D.source,length:D.length,stream:r.readable}}this[_].body=K}get method(){L.brandCheck(this,Request);return this[_].method}get url(){L.brandCheck(this,Request);return U(this[_].url)}get headers(){L.brandCheck(this,Request);return this[k]}get destination(){L.brandCheck(this,Request);return this[_].destination}get referrer(){L.brandCheck(this,Request);if(this[_].referrer==="no-referrer"){return""}if(this[_].referrer==="client"){return"about:client"}return this[_].referrer.toString()}get referrerPolicy(){L.brandCheck(this,Request);return this[_].referrerPolicy}get mode(){L.brandCheck(this,Request);return this[_].mode}get credentials(){return this[_].credentials}get cache(){L.brandCheck(this,Request);return this[_].cache}get redirect(){L.brandCheck(this,Request);return this[_].redirect}get integrity(){L.brandCheck(this,Request);return this[_].integrity}get keepalive(){L.brandCheck(this,Request);return this[_].keepalive}get isReloadNavigation(){L.brandCheck(this,Request);return this[_].reloadNavigation}get isHistoryNavigation(){L.brandCheck(this,Request);return this[_].historyNavigation}get signal(){L.brandCheck(this,Request);return this[T]}get body(){L.brandCheck(this,Request);return this[_].body?this[_].body.stream:null}get bodyUsed(){L.brandCheck(this,Request);return!!this[_].body&&g.isDisturbed(this[_].body.stream)}get duplex(){L.brandCheck(this,Request);return"half"}clone(){L.brandCheck(this,Request);if(this.bodyUsed||this.body?.locked){throw new TypeError("unusable")}const r=cloneRequest(this[_]);const s=new Request(G);s[_]=r;s[O]=this[O];s[k]=new l(G);s[k][H]=r.headersList;s[k][P]=this[k][P];s[k][O]=this[k][O];const i=new AbortController;if(this.signal.aborted){i.abort(this.signal.reason)}else{g.addAbortListener(this.signal,(()=>{i.abort(this.signal.reason)}))}s[T]=i.signal;return s}}A(Request);function makeRequest(r){const s={method:"GET",localURLsOnly:false,unsafeRequest:false,body:null,client:null,reservedClient:null,replacesClientId:"",window:"client",keepalive:false,serviceWorkers:"all",initiator:"",destination:"",priority:null,origin:"client",policyContainer:"client",referrer:"client",referrerPolicy:"",mode:"no-cors",useCORSPreflightFlag:false,credentials:"same-origin",useCredentials:false,cache:"default",redirect:"follow",integrity:"",cryptoGraphicsNonceMetadata:"",parserMetadata:"",reloadNavigation:false,historyNavigation:false,userActivation:false,taintedOrigin:false,redirectCount:0,responseTainting:"basic",preventNoCacheCacheControlHeaderModification:false,done:false,timingAllowFailed:false,...r,headersList:r.headersList?new u(r.headersList):new u};s.url=s.urlList[0];return s}function cloneRequest(r){const s=makeRequest({...r,body:null});if(r.body!=null){s.body=c(r.body)}return s}Object.defineProperties(Request.prototype,{method:D,url:D,headers:D,redirect:D,clone:D,signal:D,duplex:D,destination:D,body:D,bodyUsed:D,isHistoryNavigation:D,isReloadNavigation:D,keepalive:D,integrity:D,cache:D,credentials:D,attribute:D,referrerPolicy:D,referrer:D,mode:D,[Symbol.toStringTag]:{value:"Request",configurable:true}});L.converters.Request=L.interfaceConverter(Request);L.converters.RequestInfo=function(r){if(typeof r==="string"){return L.converters.USVString(r)}if(r instanceof Request){return L.converters.Request(r)}return L.converters.USVString(r)};L.converters.AbortSignal=L.interfaceConverter(AbortSignal);L.converters.RequestInit=L.dictionaryConverter([{key:"method",converter:L.converters.ByteString},{key:"headers",converter:L.converters.HeadersInit},{key:"body",converter:L.nullableConverter(L.converters.BodyInit)},{key:"referrer",converter:L.converters.USVString},{key:"referrerPolicy",converter:L.converters.DOMString,allowedValues:w},{key:"mode",converter:L.converters.DOMString,allowedValues:S},{key:"credentials",converter:L.converters.DOMString,allowedValues:R},{key:"cache",converter:L.converters.DOMString,allowedValues:N},{key:"redirect",converter:L.converters.DOMString,allowedValues:v},{key:"integrity",converter:L.converters.DOMString},{key:"keepalive",converter:L.converters.boolean},{key:"signal",converter:L.nullableConverter((r=>L.converters.AbortSignal(r,{strict:false})))},{key:"window",converter:L.converters.any},{key:"duplex",converter:L.converters.DOMString,allowedValues:x}]);r.exports={Request:Request,makeRequest:makeRequest}},65876:(r,s,i)=>{"use strict";const{Headers:a,HeadersList:A,fill:c}=i(35823);const{extractBody:l,cloneBody:d,mixinBody:u}=i(16325);const p=i(82423);const{kEnumerableProperty:g}=p;const{isValidReasonPhrase:h,isCancelled:C,isAborted:y,isBlobLike:I,serializeJavascriptValueToJSONString:B,isErrorLike:b,isomorphicEncode:Q}=i(35001);const{redirectStatusSet:w,nullBodyStatus:v,DOMException:S}=i(90264);const{kState:R,kHeaders:N,kGuard:x,kRealm:D}=i(80691);const{webidl:k}=i(81825);const{FormData:T}=i(31854);const{getGlobalOrigin:_}=i(31744);const{URLSerializer:P}=i(44864);const{kHeadersList:O,kConstruct:L}=i(25999);const M=i(39491);const{types:U}=i(73837);const H=globalThis.ReadableStream||i(35356).ReadableStream;const G=new TextEncoder("utf-8");class Response{static error(){const r={settingsObject:{}};const s=new Response;s[R]=makeNetworkError();s[D]=r;s[N][O]=s[R].headersList;s[N][x]="immutable";s[N][D]=r;return s}static json(r,s={}){k.argumentLengthCheck(arguments,1,{header:"Response.json"});if(s!==null){s=k.converters.ResponseInit(s)}const i=G.encode(B(r));const a=l(i);const A={settingsObject:{}};const c=new Response;c[D]=A;c[N][x]="response";c[N][D]=A;initializeResponse(c,s,{body:a[0],type:"application/json"});return c}static redirect(r,s=302){const i={settingsObject:{}};k.argumentLengthCheck(arguments,1,{header:"Response.redirect"});r=k.converters.USVString(r);s=k.converters["unsigned short"](s);let a;try{a=new URL(r,_())}catch(s){throw Object.assign(new TypeError("Failed to parse URL from "+r),{cause:s})}if(!w.has(s)){throw new RangeError("Invalid status code "+s)}const A=new Response;A[D]=i;A[N][x]="immutable";A[N][D]=i;A[R].status=s;const c=Q(P(a));A[R].headersList.append("location",c);return A}constructor(r=null,s={}){if(r!==null){r=k.converters.BodyInit(r)}s=k.converters.ResponseInit(s);this[D]={settingsObject:{}};this[R]=makeResponse({});this[N]=new a(L);this[N][x]="response";this[N][O]=this[R].headersList;this[N][D]=this[D];let i=null;if(r!=null){const[s,a]=l(r);i={body:s,type:a}}initializeResponse(this,s,i)}get type(){k.brandCheck(this,Response);return this[R].type}get url(){k.brandCheck(this,Response);const r=this[R].urlList;const s=r[r.length-1]??null;if(s===null){return""}return P(s,true)}get redirected(){k.brandCheck(this,Response);return this[R].urlList.length>1}get status(){k.brandCheck(this,Response);return this[R].status}get ok(){k.brandCheck(this,Response);return this[R].status>=200&&this[R].status<=299}get statusText(){k.brandCheck(this,Response);return this[R].statusText}get headers(){k.brandCheck(this,Response);return this[N]}get body(){k.brandCheck(this,Response);return this[R].body?this[R].body.stream:null}get bodyUsed(){k.brandCheck(this,Response);return!!this[R].body&&p.isDisturbed(this[R].body.stream)}clone(){k.brandCheck(this,Response);if(this.bodyUsed||this.body&&this.body.locked){throw k.errors.exception({header:"Response.clone",message:"Body has already been consumed."})}const r=cloneResponse(this[R]);const s=new Response;s[R]=r;s[D]=this[D];s[N][O]=r.headersList;s[N][x]=this[N][x];s[N][D]=this[N][D];return s}}u(Response);Object.defineProperties(Response.prototype,{type:g,url:g,status:g,ok:g,redirected:g,statusText:g,headers:g,clone:g,body:g,bodyUsed:g,[Symbol.toStringTag]:{value:"Response",configurable:true}});Object.defineProperties(Response,{json:g,redirect:g,error:g});function cloneResponse(r){if(r.internalResponse){return filterResponse(cloneResponse(r.internalResponse),r.type)}const s=makeResponse({...r,body:null});if(r.body!=null){s.body=d(r.body)}return s}function makeResponse(r){return{aborted:false,rangeRequested:false,timingAllowPassed:false,requestIncludesCredentials:false,type:"default",status:200,timingInfo:null,cacheState:"",statusText:"",...r,headersList:r.headersList?new A(r.headersList):new A,urlList:r.urlList?[...r.urlList]:[]}}function makeNetworkError(r){const s=b(r);return makeResponse({type:"error",status:0,error:s?r:new Error(r?String(r):r),aborted:r&&r.name==="AbortError"})}function makeFilteredResponse(r,s){s={internalResponse:r,...s};return new Proxy(r,{get(r,i){return i in s?s[i]:r[i]},set(r,i,a){M(!(i in s));r[i]=a;return true}})}function filterResponse(r,s){if(s==="basic"){return makeFilteredResponse(r,{type:"basic",headersList:r.headersList})}else if(s==="cors"){return makeFilteredResponse(r,{type:"cors",headersList:r.headersList})}else if(s==="opaque"){return makeFilteredResponse(r,{type:"opaque",urlList:Object.freeze([]),status:0,statusText:"",body:null})}else if(s==="opaqueredirect"){return makeFilteredResponse(r,{type:"opaqueredirect",status:0,statusText:"",headersList:[],body:null})}else{M(false)}}function makeAppropriateNetworkError(r,s=null){M(C(r));return y(r)?makeNetworkError(Object.assign(new S("The operation was aborted.","AbortError"),{cause:s})):makeNetworkError(Object.assign(new S("Request was cancelled."),{cause:s}))}function initializeResponse(r,s,i){if(s.status!==null&&(s.status<200||s.status>599)){throw new RangeError('init["status"] must be in the range of 200 to 599, inclusive.')}if("statusText"in s&&s.statusText!=null){if(!h(String(s.statusText))){throw new TypeError("Invalid statusText")}}if("status"in s&&s.status!=null){r[R].status=s.status}if("statusText"in s&&s.statusText!=null){r[R].statusText=s.statusText}if("headers"in s&&s.headers!=null){c(r[N],s.headers)}if(i){if(v.includes(r.status)){throw k.errors.exception({header:"Response constructor",message:"Invalid response status code "+r.status})}r[R].body=i.body;if(i.type!=null&&!r[R].headersList.contains("Content-Type")){r[R].headersList.append("content-type",i.type)}}}k.converters.ReadableStream=k.interfaceConverter(H);k.converters.FormData=k.interfaceConverter(T);k.converters.URLSearchParams=k.interfaceConverter(URLSearchParams);k.converters.XMLHttpRequestBodyInit=function(r){if(typeof r==="string"){return k.converters.USVString(r)}if(I(r)){return k.converters.Blob(r,{strict:false})}if(U.isArrayBuffer(r)||U.isTypedArray(r)||U.isDataView(r)){return k.converters.BufferSource(r)}if(p.isFormDataLike(r)){return k.converters.FormData(r,{strict:false})}if(r instanceof URLSearchParams){return k.converters.URLSearchParams(r)}return k.converters.DOMString(r)};k.converters.BodyInit=function(r){if(r instanceof H){return k.converters.ReadableStream(r)}if(r?.[Symbol.asyncIterator]){return r}return k.converters.XMLHttpRequestBodyInit(r)};k.converters.ResponseInit=k.dictionaryConverter([{key:"status",converter:k.converters["unsigned short"],defaultValue:200},{key:"statusText",converter:k.converters.ByteString,defaultValue:""},{key:"headers",converter:k.converters.HeadersInit}]);r.exports={makeNetworkError:makeNetworkError,makeResponse:makeResponse,makeAppropriateNetworkError:makeAppropriateNetworkError,filterResponse:filterResponse,Response:Response,cloneResponse:cloneResponse}},80691:r=>{"use strict";r.exports={kUrl:Symbol("url"),kHeaders:Symbol("headers"),kSignal:Symbol("signal"),kState:Symbol("state"),kGuard:Symbol("guard"),kRealm:Symbol("realm")}},35001:(r,s,i)=>{"use strict";const{redirectStatusSet:a,referrerPolicySet:A,badPortsSet:c}=i(90264);const{getGlobalOrigin:l}=i(31744);const{performance:d}=i(4074);const{isBlobLike:u,toUSVString:p,ReadableStreamFrom:g}=i(82423);const h=i(39491);const{isUint8Array:C}=i(29830);let y=[];let I;try{I=i(6113);const r=["sha256","sha384","sha512"];y=I.getHashes().filter((s=>r.includes(s)))}catch{}function responseURL(r){const s=r.urlList;const i=s.length;return i===0?null:s[i-1].toString()}function responseLocationURL(r,s){if(!a.has(r.status)){return null}let i=r.headersList.get("location");if(i!==null&&isValidHeaderValue(i)){i=new URL(i,responseURL(r))}if(i&&!i.hash){i.hash=s}return i}function requestCurrentURL(r){return r.urlList[r.urlList.length-1]}function requestBadPort(r){const s=requestCurrentURL(r);if(urlIsHttpHttpsScheme(s)&&c.has(s.port)){return"blocked"}return"allowed"}function isErrorLike(r){return r instanceof Error||(r?.constructor?.name==="Error"||r?.constructor?.name==="DOMException")}function isValidReasonPhrase(r){for(let s=0;s=32&&i<=126||i>=128&&i<=255)){return false}}return true}function isTokenCharCode(r){switch(r){case 34:case 40:case 41:case 44:case 47:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 91:case 92:case 93:case 123:case 125:return false;default:return r>=33&&r<=126}}function isValidHTTPToken(r){if(r.length===0){return false}for(let s=0;s0){for(let r=a.length;r!==0;r--){const s=a[r-1].trim();if(A.has(s)){c=s;break}}}if(c!==""){r.referrerPolicy=c}}function crossOriginResourcePolicyCheck(){return"allowed"}function corsCheck(){return"success"}function TAOCheck(){return"success"}function appendFetchMetadata(r){let s=null;s=r.mode;r.headersList.set("sec-fetch-mode",s)}function appendRequestOriginHeader(r){let s=r.origin;if(r.responseTainting==="cors"||r.mode==="websocket"){if(s){r.headersList.append("origin",s)}}else if(r.method!=="GET"&&r.method!=="HEAD"){switch(r.referrerPolicy){case"no-referrer":s=null;break;case"no-referrer-when-downgrade":case"strict-origin":case"strict-origin-when-cross-origin":if(r.origin&&urlHasHttpsScheme(r.origin)&&!urlHasHttpsScheme(requestCurrentURL(r))){s=null}break;case"same-origin":if(!sameOrigin(r,requestCurrentURL(r))){s=null}break;default:}if(s){r.headersList.append("origin",s)}}}function coarsenedSharedCurrentTime(r){return d.now()}function createOpaqueTimingInfo(r){return{startTime:r.startTime??0,redirectStartTime:0,redirectEndTime:0,postRedirectStartTime:r.startTime??0,finalServiceWorkerStartTime:0,finalNetworkResponseStartTime:0,finalNetworkRequestStartTime:0,endTime:0,encodedBodySize:0,decodedBodySize:0,finalConnectionTimingInfo:null}}function makePolicyContainer(){return{referrerPolicy:"strict-origin-when-cross-origin"}}function clonePolicyContainer(r){return{referrerPolicy:r.referrerPolicy}}function determineRequestsReferrer(r){const s=r.referrerPolicy;h(s);let i=null;if(r.referrer==="client"){const r=l();if(!r||r.origin==="null"){return"no-referrer"}i=new URL(r)}else if(r.referrer instanceof URL){i=r.referrer}let a=stripURLForReferrer(i);const A=stripURLForReferrer(i,true);if(a.toString().length>4096){a=A}const c=sameOrigin(r,a);const d=isURLPotentiallyTrustworthy(a)&&!isURLPotentiallyTrustworthy(r.url);switch(s){case"origin":return A!=null?A:stripURLForReferrer(i,true);case"unsafe-url":return a;case"same-origin":return c?A:"no-referrer";case"origin-when-cross-origin":return c?a:A;case"strict-origin-when-cross-origin":{const s=requestCurrentURL(r);if(sameOrigin(a,s)){return a}if(isURLPotentiallyTrustworthy(a)&&!isURLPotentiallyTrustworthy(s)){return"no-referrer"}return A}case"strict-origin":case"no-referrer-when-downgrade":default:return d?"no-referrer":A}}function stripURLForReferrer(r,s){h(r instanceof URL);if(r.protocol==="file:"||r.protocol==="about:"||r.protocol==="blank:"){return"no-referrer"}r.username="";r.password="";r.hash="";if(s){r.pathname="";r.search=""}return r}function isURLPotentiallyTrustworthy(r){if(!(r instanceof URL)){return false}if(r.href==="about:blank"||r.href==="about:srcdoc"){return true}if(r.protocol==="data:")return true;if(r.protocol==="file:")return true;return isOriginPotentiallyTrustworthy(r.origin);function isOriginPotentiallyTrustworthy(r){if(r==null||r==="null")return false;const s=new URL(r);if(s.protocol==="https:"||s.protocol==="wss:"){return true}if(/^127(?:\.[0-9]+){0,2}\.[0-9]+$|^\[(?:0*:)*?:?0*1\]$/.test(s.hostname)||(s.hostname==="localhost"||s.hostname.includes("localhost."))||s.hostname.endsWith(".localhost")){return true}return false}}function bytesMatch(r,s){if(I===undefined){return true}const i=parseMetadata(s);if(i==="no metadata"){return true}if(i.length===0){return true}const a=getStrongestMetadata(i);const A=filterMetadataListByAlgorithm(i,a);for(const s of A){const i=s.algo;const a=s.hash;let A=I.createHash(i).update(r).digest("base64");if(A[A.length-1]==="="){if(A[A.length-2]==="="){A=A.slice(0,-2)}else{A=A.slice(0,-1)}}if(compareBase64Mixed(A,a)){return true}}return false}const B=/(?sha256|sha384|sha512)-((?[A-Za-z0-9+/]+|[A-Za-z0-9_-]+)={0,2}(?:\s|$)( +[!-~]*)?)?/i;function parseMetadata(r){const s=[];let i=true;for(const a of r.split(" ")){i=false;const r=B.exec(a);if(r===null||r.groups===undefined||r.groups.algo===undefined){continue}const A=r.groups.algo.toLowerCase();if(y.includes(A)){s.push(r.groups)}}if(i===true){return"no metadata"}return s}function getStrongestMetadata(r){let s=r[0].algo;if(s[3]==="5"){return s}for(let i=1;i{r=i;s=a}));return{promise:i,resolve:r,reject:s}}function isAborted(r){return r.controller.state==="aborted"}function isCancelled(r){return r.controller.state==="aborted"||r.controller.state==="terminated"}const b={delete:"DELETE",DELETE:"DELETE",get:"GET",GET:"GET",head:"HEAD",HEAD:"HEAD",options:"OPTIONS",OPTIONS:"OPTIONS",post:"POST",POST:"POST",put:"PUT",PUT:"PUT"};Object.setPrototypeOf(b,null);function normalizeMethod(r){return b[r.toLowerCase()]??r}function serializeJavascriptValueToJSONString(r){const s=JSON.stringify(r);if(s===undefined){throw new TypeError("Value is not JSON serializable")}h(typeof s==="string");return s}const Q=Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()));function makeIterator(r,s,i){const a={index:0,kind:i,target:r};const A={next(){if(Object.getPrototypeOf(this)!==A){throw new TypeError(`'next' called on an object that does not implement interface ${s} Iterator.`)}const{index:r,kind:i,target:c}=a;const l=c();const d=l.length;if(r>=d){return{value:undefined,done:true}}const u=l[r];a.index=r+1;return iteratorResult(u,i)},[Symbol.toStringTag]:`${s} Iterator`};Object.setPrototypeOf(A,Q);return Object.setPrototypeOf({},A)}function iteratorResult(r,s){let i;switch(s){case"key":{i=r[0];break}case"value":{i=r[1];break}case"key+value":{i=r;break}}return{value:i,done:false}}async function fullyReadBody(r,s,i){const a=s;const A=i;let c;try{c=r.stream.getReader()}catch(r){A(r);return}try{const r=await readAllBytes(c);a(r)}catch(r){A(r)}}let w=globalThis.ReadableStream;function isReadableStreamLike(r){if(!w){w=i(35356).ReadableStream}return r instanceof w||r[Symbol.toStringTag]==="ReadableStream"&&typeof r.tee==="function"}const v=65535;function isomorphicDecode(r){if(r.lengthr+String.fromCharCode(s)),"")}function readableStreamClose(r){try{r.close()}catch(r){if(!r.message.includes("Controller is already closed")){throw r}}}function isomorphicEncode(r){for(let s=0;sObject.prototype.hasOwnProperty.call(r,s));r.exports={isAborted:isAborted,isCancelled:isCancelled,createDeferredPromise:createDeferredPromise,ReadableStreamFrom:g,toUSVString:p,tryUpgradeRequestToAPotentiallyTrustworthyURL:tryUpgradeRequestToAPotentiallyTrustworthyURL,coarsenedSharedCurrentTime:coarsenedSharedCurrentTime,determineRequestsReferrer:determineRequestsReferrer,makePolicyContainer:makePolicyContainer,clonePolicyContainer:clonePolicyContainer,appendFetchMetadata:appendFetchMetadata,appendRequestOriginHeader:appendRequestOriginHeader,TAOCheck:TAOCheck,corsCheck:corsCheck,crossOriginResourcePolicyCheck:crossOriginResourcePolicyCheck,createOpaqueTimingInfo:createOpaqueTimingInfo,setRequestReferrerPolicyOnRedirect:setRequestReferrerPolicyOnRedirect,isValidHTTPToken:isValidHTTPToken,requestBadPort:requestBadPort,requestCurrentURL:requestCurrentURL,responseURL:responseURL,responseLocationURL:responseLocationURL,isBlobLike:u,isURLPotentiallyTrustworthy:isURLPotentiallyTrustworthy,isValidReasonPhrase:isValidReasonPhrase,sameOrigin:sameOrigin,normalizeMethod:normalizeMethod,serializeJavascriptValueToJSONString:serializeJavascriptValueToJSONString,makeIterator:makeIterator,isValidHeaderName:isValidHeaderName,isValidHeaderValue:isValidHeaderValue,hasOwn:S,isErrorLike:isErrorLike,fullyReadBody:fullyReadBody,bytesMatch:bytesMatch,isReadableStreamLike:isReadableStreamLike,readableStreamClose:readableStreamClose,isomorphicEncode:isomorphicEncode,isomorphicDecode:isomorphicDecode,urlIsLocal:urlIsLocal,urlHasHttpsScheme:urlHasHttpsScheme,urlIsHttpHttpsScheme:urlIsHttpHttpsScheme,readAllBytes:readAllBytes,normalizeMethodRecord:b,parseMetadata:parseMetadata}},81825:(r,s,i)=>{"use strict";const{types:a}=i(73837);const{hasOwn:A,toUSVString:c}=i(35001);const l={};l.converters={};l.util={};l.errors={};l.errors.exception=function(r){return new TypeError(`${r.header}: ${r.message}`)};l.errors.conversionFailed=function(r){const s=r.types.length===1?"":" one of";const i=`${r.argument} could not be converted to`+`${s}: ${r.types.join(", ")}.`;return l.errors.exception({header:r.prefix,message:i})};l.errors.invalidArgument=function(r){return l.errors.exception({header:r.prefix,message:`"${r.value}" is an invalid ${r.type}.`})};l.brandCheck=function(r,s,i=undefined){if(i?.strict!==false&&!(r instanceof s)){throw new TypeError("Illegal invocation")}else{return r?.[Symbol.toStringTag]===s.prototype[Symbol.toStringTag]}};l.argumentLengthCheck=function({length:r},s,i){if(rA){throw l.errors.exception({header:"Integer conversion",message:`Value must be between ${c}-${A}, got ${d}.`})}return d}if(!Number.isNaN(d)&&a.clamp===true){d=Math.min(Math.max(d,c),A);if(Math.floor(d)%2===0){d=Math.floor(d)}else{d=Math.ceil(d)}return d}if(Number.isNaN(d)||d===0&&Object.is(0,d)||d===Number.POSITIVE_INFINITY||d===Number.NEGATIVE_INFINITY){return 0}d=l.util.IntegerPart(d);d=d%Math.pow(2,s);if(i==="signed"&&d>=Math.pow(2,s)-1){return d-Math.pow(2,s)}return d};l.util.IntegerPart=function(r){const s=Math.floor(Math.abs(r));if(r<0){return-1*s}return s};l.sequenceConverter=function(r){return s=>{if(l.util.Type(s)!=="Object"){throw l.errors.exception({header:"Sequence",message:`Value of type ${l.util.Type(s)} is not an Object.`})}const i=s?.[Symbol.iterator]?.();const a=[];if(i===undefined||typeof i.next!=="function"){throw l.errors.exception({header:"Sequence",message:"Object is not an iterator."})}while(true){const{done:s,value:A}=i.next();if(s){break}a.push(r(A))}return a}};l.recordConverter=function(r,s){return i=>{if(l.util.Type(i)!=="Object"){throw l.errors.exception({header:"Record",message:`Value of type ${l.util.Type(i)} is not an Object.`})}const A={};if(!a.isProxy(i)){const a=Object.keys(i);for(const c of a){const a=r(c);const l=s(i[c]);A[a]=l}return A}const c=Reflect.ownKeys(i);for(const a of c){const c=Reflect.getOwnPropertyDescriptor(i,a);if(c?.enumerable){const c=r(a);const l=s(i[a]);A[c]=l}}return A}};l.interfaceConverter=function(r){return(s,i={})=>{if(i.strict!==false&&!(s instanceof r)){throw l.errors.exception({header:r.name,message:`Expected ${s} to be an instance of ${r.name}.`})}return s}};l.dictionaryConverter=function(r){return s=>{const i=l.util.Type(s);const a={};if(i==="Null"||i==="Undefined"){return a}else if(i!=="Object"){throw l.errors.exception({header:"Dictionary",message:`Expected ${s} to be one of: Null, Undefined, Object.`})}for(const i of r){const{key:r,defaultValue:c,required:d,converter:u}=i;if(d===true){if(!A(s,r)){throw l.errors.exception({header:"Dictionary",message:`Missing required key "${r}".`})}}let p=s[r];const g=A(i,"defaultValue");if(g&&p!==null){p=p??c}if(d||g||p!==undefined){p=u(p);if(i.allowedValues&&!i.allowedValues.includes(p)){throw l.errors.exception({header:"Dictionary",message:`${p} is not an accepted type. Expected one of ${i.allowedValues.join(", ")}.`})}a[r]=p}}return a}};l.nullableConverter=function(r){return s=>{if(s===null){return s}return r(s)}};l.converters.DOMString=function(r,s={}){if(r===null&&s.legacyNullToEmptyString){return""}if(typeof r==="symbol"){throw new TypeError("Could not convert argument of type symbol to string.")}return String(r)};l.converters.ByteString=function(r){const s=l.converters.DOMString(r);for(let r=0;r255){throw new TypeError("Cannot convert argument to a ByteString because the character at "+`index ${r} has a value of ${s.charCodeAt(r)} which is greater than 255.`)}}return s};l.converters.USVString=c;l.converters.boolean=function(r){const s=Boolean(r);return s};l.converters.any=function(r){return r};l.converters["long long"]=function(r){const s=l.util.ConvertToInt(r,64,"signed");return s};l.converters["unsigned long long"]=function(r){const s=l.util.ConvertToInt(r,64,"unsigned");return s};l.converters["unsigned long"]=function(r){const s=l.util.ConvertToInt(r,32,"unsigned");return s};l.converters["unsigned short"]=function(r,s){const i=l.util.ConvertToInt(r,16,"unsigned",s);return i};l.converters.ArrayBuffer=function(r,s={}){if(l.util.Type(r)!=="Object"||!a.isAnyArrayBuffer(r)){throw l.errors.conversionFailed({prefix:`${r}`,argument:`${r}`,types:["ArrayBuffer"]})}if(s.allowShared===false&&a.isSharedArrayBuffer(r)){throw l.errors.exception({header:"ArrayBuffer",message:"SharedArrayBuffer is not allowed."})}return r};l.converters.TypedArray=function(r,s,i={}){if(l.util.Type(r)!=="Object"||!a.isTypedArray(r)||r.constructor.name!==s.name){throw l.errors.conversionFailed({prefix:`${s.name}`,argument:`${r}`,types:[s.name]})}if(i.allowShared===false&&a.isSharedArrayBuffer(r.buffer)){throw l.errors.exception({header:"ArrayBuffer",message:"SharedArrayBuffer is not allowed."})}return r};l.converters.DataView=function(r,s={}){if(l.util.Type(r)!=="Object"||!a.isDataView(r)){throw l.errors.exception({header:"DataView",message:"Object is not a DataView."})}if(s.allowShared===false&&a.isSharedArrayBuffer(r.buffer)){throw l.errors.exception({header:"ArrayBuffer",message:"SharedArrayBuffer is not allowed."})}return r};l.converters.BufferSource=function(r,s={}){if(a.isAnyArrayBuffer(r)){return l.converters.ArrayBuffer(r,s)}if(a.isTypedArray(r)){return l.converters.TypedArray(r,r.constructor)}if(a.isDataView(r)){return l.converters.DataView(r,s)}throw new TypeError(`Could not convert ${r} to a BufferSource.`)};l.converters["sequence"]=l.sequenceConverter(l.converters.ByteString);l.converters["sequence>"]=l.sequenceConverter(l.converters["sequence"]);l.converters["record"]=l.recordConverter(l.converters.ByteString,l.converters.ByteString);r.exports={webidl:l}},36851:r=>{"use strict";function getEncoding(r){if(!r){return"failure"}switch(r.trim().toLowerCase()){case"unicode-1-1-utf-8":case"unicode11utf8":case"unicode20utf8":case"utf-8":case"utf8":case"x-unicode20utf8":return"UTF-8";case"866":case"cp866":case"csibm866":case"ibm866":return"IBM866";case"csisolatin2":case"iso-8859-2":case"iso-ir-101":case"iso8859-2":case"iso88592":case"iso_8859-2":case"iso_8859-2:1987":case"l2":case"latin2":return"ISO-8859-2";case"csisolatin3":case"iso-8859-3":case"iso-ir-109":case"iso8859-3":case"iso88593":case"iso_8859-3":case"iso_8859-3:1988":case"l3":case"latin3":return"ISO-8859-3";case"csisolatin4":case"iso-8859-4":case"iso-ir-110":case"iso8859-4":case"iso88594":case"iso_8859-4":case"iso_8859-4:1988":case"l4":case"latin4":return"ISO-8859-4";case"csisolatincyrillic":case"cyrillic":case"iso-8859-5":case"iso-ir-144":case"iso8859-5":case"iso88595":case"iso_8859-5":case"iso_8859-5:1988":return"ISO-8859-5";case"arabic":case"asmo-708":case"csiso88596e":case"csiso88596i":case"csisolatinarabic":case"ecma-114":case"iso-8859-6":case"iso-8859-6-e":case"iso-8859-6-i":case"iso-ir-127":case"iso8859-6":case"iso88596":case"iso_8859-6":case"iso_8859-6:1987":return"ISO-8859-6";case"csisolatingreek":case"ecma-118":case"elot_928":case"greek":case"greek8":case"iso-8859-7":case"iso-ir-126":case"iso8859-7":case"iso88597":case"iso_8859-7":case"iso_8859-7:1987":case"sun_eu_greek":return"ISO-8859-7";case"csiso88598e":case"csisolatinhebrew":case"hebrew":case"iso-8859-8":case"iso-8859-8-e":case"iso-ir-138":case"iso8859-8":case"iso88598":case"iso_8859-8":case"iso_8859-8:1988":case"visual":return"ISO-8859-8";case"csiso88598i":case"iso-8859-8-i":case"logical":return"ISO-8859-8-I";case"csisolatin6":case"iso-8859-10":case"iso-ir-157":case"iso8859-10":case"iso885910":case"l6":case"latin6":return"ISO-8859-10";case"iso-8859-13":case"iso8859-13":case"iso885913":return"ISO-8859-13";case"iso-8859-14":case"iso8859-14":case"iso885914":return"ISO-8859-14";case"csisolatin9":case"iso-8859-15":case"iso8859-15":case"iso885915":case"iso_8859-15":case"l9":return"ISO-8859-15";case"iso-8859-16":return"ISO-8859-16";case"cskoi8r":case"koi":case"koi8":case"koi8-r":case"koi8_r":return"KOI8-R";case"koi8-ru":case"koi8-u":return"KOI8-U";case"csmacintosh":case"mac":case"macintosh":case"x-mac-roman":return"macintosh";case"iso-8859-11":case"iso8859-11":case"iso885911":case"tis-620":case"windows-874":return"windows-874";case"cp1250":case"windows-1250":case"x-cp1250":return"windows-1250";case"cp1251":case"windows-1251":case"x-cp1251":return"windows-1251";case"ansi_x3.4-1968":case"ascii":case"cp1252":case"cp819":case"csisolatin1":case"ibm819":case"iso-8859-1":case"iso-ir-100":case"iso8859-1":case"iso88591":case"iso_8859-1":case"iso_8859-1:1987":case"l1":case"latin1":case"us-ascii":case"windows-1252":case"x-cp1252":return"windows-1252";case"cp1253":case"windows-1253":case"x-cp1253":return"windows-1253";case"cp1254":case"csisolatin5":case"iso-8859-9":case"iso-ir-148":case"iso8859-9":case"iso88599":case"iso_8859-9":case"iso_8859-9:1989":case"l5":case"latin5":case"windows-1254":case"x-cp1254":return"windows-1254";case"cp1255":case"windows-1255":case"x-cp1255":return"windows-1255";case"cp1256":case"windows-1256":case"x-cp1256":return"windows-1256";case"cp1257":case"windows-1257":case"x-cp1257":return"windows-1257";case"cp1258":case"windows-1258":case"x-cp1258":return"windows-1258";case"x-mac-cyrillic":case"x-mac-ukrainian":return"x-mac-cyrillic";case"chinese":case"csgb2312":case"csiso58gb231280":case"gb2312":case"gb_2312":case"gb_2312-80":case"gbk":case"iso-ir-58":case"x-gbk":return"GBK";case"gb18030":return"gb18030";case"big5":case"big5-hkscs":case"cn-big5":case"csbig5":case"x-x-big5":return"Big5";case"cseucpkdfmtjapanese":case"euc-jp":case"x-euc-jp":return"EUC-JP";case"csiso2022jp":case"iso-2022-jp":return"ISO-2022-JP";case"csshiftjis":case"ms932":case"ms_kanji":case"shift-jis":case"shift_jis":case"sjis":case"windows-31j":case"x-sjis":return"Shift_JIS";case"cseuckr":case"csksc56011987":case"euc-kr":case"iso-ir-149":case"korean":case"ks_c_5601-1987":case"ks_c_5601-1989":case"ksc5601":case"ksc_5601":case"windows-949":return"EUC-KR";case"csiso2022kr":case"hz-gb-2312":case"iso-2022-cn":case"iso-2022-cn-ext":case"iso-2022-kr":case"replacement":return"replacement";case"unicodefffe":case"utf-16be":return"UTF-16BE";case"csunicode":case"iso-10646-ucs-2":case"ucs-2":case"unicode":case"unicodefeff":case"utf-16":case"utf-16le":return"UTF-16LE";case"x-user-defined":return"x-user-defined";default:return"failure"}}r.exports={getEncoding:getEncoding}},60441:(r,s,i)=>{"use strict";const{staticPropertyDescriptors:a,readOperation:A,fireAProgressEvent:c}=i(82978);const{kState:l,kError:d,kResult:u,kEvents:p,kAborted:g}=i(46040);const{webidl:h}=i(81825);const{kEnumerableProperty:C}=i(82423);class FileReader extends EventTarget{constructor(){super();this[l]="empty";this[u]=null;this[d]=null;this[p]={loadend:null,error:null,abort:null,load:null,progress:null,loadstart:null}}readAsArrayBuffer(r){h.brandCheck(this,FileReader);h.argumentLengthCheck(arguments,1,{header:"FileReader.readAsArrayBuffer"});r=h.converters.Blob(r,{strict:false});A(this,r,"ArrayBuffer")}readAsBinaryString(r){h.brandCheck(this,FileReader);h.argumentLengthCheck(arguments,1,{header:"FileReader.readAsBinaryString"});r=h.converters.Blob(r,{strict:false});A(this,r,"BinaryString")}readAsText(r,s=undefined){h.brandCheck(this,FileReader);h.argumentLengthCheck(arguments,1,{header:"FileReader.readAsText"});r=h.converters.Blob(r,{strict:false});if(s!==undefined){s=h.converters.DOMString(s)}A(this,r,"Text",s)}readAsDataURL(r){h.brandCheck(this,FileReader);h.argumentLengthCheck(arguments,1,{header:"FileReader.readAsDataURL"});r=h.converters.Blob(r,{strict:false});A(this,r,"DataURL")}abort(){if(this[l]==="empty"||this[l]==="done"){this[u]=null;return}if(this[l]==="loading"){this[l]="done";this[u]=null}this[g]=true;c("abort",this);if(this[l]!=="loading"){c("loadend",this)}}get readyState(){h.brandCheck(this,FileReader);switch(this[l]){case"empty":return this.EMPTY;case"loading":return this.LOADING;case"done":return this.DONE}}get result(){h.brandCheck(this,FileReader);return this[u]}get error(){h.brandCheck(this,FileReader);return this[d]}get onloadend(){h.brandCheck(this,FileReader);return this[p].loadend}set onloadend(r){h.brandCheck(this,FileReader);if(this[p].loadend){this.removeEventListener("loadend",this[p].loadend)}if(typeof r==="function"){this[p].loadend=r;this.addEventListener("loadend",r)}else{this[p].loadend=null}}get onerror(){h.brandCheck(this,FileReader);return this[p].error}set onerror(r){h.brandCheck(this,FileReader);if(this[p].error){this.removeEventListener("error",this[p].error)}if(typeof r==="function"){this[p].error=r;this.addEventListener("error",r)}else{this[p].error=null}}get onloadstart(){h.brandCheck(this,FileReader);return this[p].loadstart}set onloadstart(r){h.brandCheck(this,FileReader);if(this[p].loadstart){this.removeEventListener("loadstart",this[p].loadstart)}if(typeof r==="function"){this[p].loadstart=r;this.addEventListener("loadstart",r)}else{this[p].loadstart=null}}get onprogress(){h.brandCheck(this,FileReader);return this[p].progress}set onprogress(r){h.brandCheck(this,FileReader);if(this[p].progress){this.removeEventListener("progress",this[p].progress)}if(typeof r==="function"){this[p].progress=r;this.addEventListener("progress",r)}else{this[p].progress=null}}get onload(){h.brandCheck(this,FileReader);return this[p].load}set onload(r){h.brandCheck(this,FileReader);if(this[p].load){this.removeEventListener("load",this[p].load)}if(typeof r==="function"){this[p].load=r;this.addEventListener("load",r)}else{this[p].load=null}}get onabort(){h.brandCheck(this,FileReader);return this[p].abort}set onabort(r){h.brandCheck(this,FileReader);if(this[p].abort){this.removeEventListener("abort",this[p].abort)}if(typeof r==="function"){this[p].abort=r;this.addEventListener("abort",r)}else{this[p].abort=null}}}FileReader.EMPTY=FileReader.prototype.EMPTY=0;FileReader.LOADING=FileReader.prototype.LOADING=1;FileReader.DONE=FileReader.prototype.DONE=2;Object.defineProperties(FileReader.prototype,{EMPTY:a,LOADING:a,DONE:a,readAsArrayBuffer:C,readAsBinaryString:C,readAsText:C,readAsDataURL:C,abort:C,readyState:C,result:C,error:C,onloadstart:C,onprogress:C,onload:C,onabort:C,onerror:C,onloadend:C,[Symbol.toStringTag]:{value:"FileReader",writable:false,enumerable:false,configurable:true}});Object.defineProperties(FileReader,{EMPTY:a,LOADING:a,DONE:a});r.exports={FileReader:FileReader}},1328:(r,s,i)=>{"use strict";const{webidl:a}=i(81825);const A=Symbol("ProgressEvent state");class ProgressEvent extends Event{constructor(r,s={}){r=a.converters.DOMString(r);s=a.converters.ProgressEventInit(s??{});super(r,s);this[A]={lengthComputable:s.lengthComputable,loaded:s.loaded,total:s.total}}get lengthComputable(){a.brandCheck(this,ProgressEvent);return this[A].lengthComputable}get loaded(){a.brandCheck(this,ProgressEvent);return this[A].loaded}get total(){a.brandCheck(this,ProgressEvent);return this[A].total}}a.converters.ProgressEventInit=a.dictionaryConverter([{key:"lengthComputable",converter:a.converters.boolean,defaultValue:false},{key:"loaded",converter:a.converters["unsigned long long"],defaultValue:0},{key:"total",converter:a.converters["unsigned long long"],defaultValue:0},{key:"bubbles",converter:a.converters.boolean,defaultValue:false},{key:"cancelable",converter:a.converters.boolean,defaultValue:false},{key:"composed",converter:a.converters.boolean,defaultValue:false}]);r.exports={ProgressEvent:ProgressEvent}},46040:r=>{"use strict";r.exports={kState:Symbol("FileReader state"),kResult:Symbol("FileReader result"),kError:Symbol("FileReader error"),kLastProgressEventFired:Symbol("FileReader last progress event fired timestamp"),kEvents:Symbol("FileReader events"),kAborted:Symbol("FileReader aborted")}},82978:(r,s,i)=>{"use strict";const{kState:a,kError:A,kResult:c,kAborted:l,kLastProgressEventFired:d}=i(46040);const{ProgressEvent:u}=i(1328);const{getEncoding:p}=i(36851);const{DOMException:g}=i(90264);const{serializeAMimeType:h,parseMIMEType:C}=i(44864);const{types:y}=i(73837);const{StringDecoder:I}=i(71576);const{btoa:B}=i(14300);const b={enumerable:true,writable:false,configurable:false};function readOperation(r,s,i,u){if(r[a]==="loading"){throw new g("Invalid state","InvalidStateError")}r[a]="loading";r[c]=null;r[A]=null;const p=s.stream();const h=p.getReader();const C=[];let I=h.read();let B=true;(async()=>{while(!r[l]){try{const{done:p,value:g}=await I;if(B&&!r[l]){queueMicrotask((()=>{fireAProgressEvent("loadstart",r)}))}B=false;if(!p&&y.isUint8Array(g)){C.push(g);if((r[d]===undefined||Date.now()-r[d]>=50)&&!r[l]){r[d]=Date.now();queueMicrotask((()=>{fireAProgressEvent("progress",r)}))}I=h.read()}else if(p){queueMicrotask((()=>{r[a]="done";try{const a=packageData(C,i,s.type,u);if(r[l]){return}r[c]=a;fireAProgressEvent("load",r)}catch(s){r[A]=s;fireAProgressEvent("error",r)}if(r[a]!=="loading"){fireAProgressEvent("loadend",r)}}));break}}catch(s){if(r[l]){return}queueMicrotask((()=>{r[a]="done";r[A]=s;fireAProgressEvent("error",r);if(r[a]!=="loading"){fireAProgressEvent("loadend",r)}}));break}}})()}function fireAProgressEvent(r,s){const i=new u(r,{bubbles:false,cancelable:false});s.dispatchEvent(i)}function packageData(r,s,i,a){switch(s){case"DataURL":{let s="data:";const a=C(i||"application/octet-stream");if(a!=="failure"){s+=h(a)}s+=";base64,";const A=new I("latin1");for(const i of r){s+=B(A.write(i))}s+=B(A.end());return s}case"Text":{let s="failure";if(a){s=p(a)}if(s==="failure"&&i){const r=C(i);if(r!=="failure"){s=p(r.parameters.get("charset"))}}if(s==="failure"){s="UTF-8"}return decode(r,s)}case"ArrayBuffer":{const s=combineByteSequences(r);return s.buffer}case"BinaryString":{let s="";const i=new I("latin1");for(const a of r){s+=i.write(a)}s+=i.end();return s}}}function decode(r,s){const i=combineByteSequences(r);const a=BOMSniffing(i);let A=0;if(a!==null){s=a;A=a==="UTF-8"?3:2}const c=i.slice(A);return new TextDecoder(s).decode(c)}function BOMSniffing(r){const[s,i,a]=r;if(s===239&&i===187&&a===191){return"UTF-8"}else if(s===254&&i===255){return"UTF-16BE"}else if(s===255&&i===254){return"UTF-16LE"}return null}function combineByteSequences(r){const s=r.reduce(((r,s)=>r+s.byteLength),0);let i=0;return r.reduce(((r,s)=>{r.set(s,i);i+=s.byteLength;return r}),new Uint8Array(s))}r.exports={staticPropertyDescriptors:b,readOperation:readOperation,fireAProgressEvent:fireAProgressEvent}},12475:(r,s,i)=>{"use strict";const a=Symbol.for("undici.globalDispatcher.1");const{InvalidArgumentError:A}=i(37715);const c=i(16202);if(getGlobalDispatcher()===undefined){setGlobalDispatcher(new c)}function setGlobalDispatcher(r){if(!r||typeof r.dispatch!=="function"){throw new A("Argument agent must implement Agent")}Object.defineProperty(globalThis,a,{value:r,writable:true,enumerable:false,configurable:false})}function getGlobalDispatcher(){return globalThis[a]}r.exports={setGlobalDispatcher:setGlobalDispatcher,getGlobalDispatcher:getGlobalDispatcher}},27410:r=>{"use strict";r.exports=class DecoratorHandler{constructor(r){this.handler=r}onConnect(...r){return this.handler.onConnect(...r)}onError(...r){return this.handler.onError(...r)}onUpgrade(...r){return this.handler.onUpgrade(...r)}onHeaders(...r){return this.handler.onHeaders(...r)}onData(...r){return this.handler.onData(...r)}onComplete(...r){return this.handler.onComplete(...r)}onBodySent(...r){return this.handler.onBodySent(...r)}}},69173:(r,s,i)=>{"use strict";const a=i(82423);const{kBodyUsed:A}=i(25999);const c=i(39491);const{InvalidArgumentError:l}=i(37715);const d=i(82361);const u=[300,301,302,303,307,308];const p=Symbol("body");class BodyAsyncIterable{constructor(r){this[p]=r;this[A]=false}async*[Symbol.asyncIterator](){c(!this[A],"disturbed");this[A]=true;yield*this[p]}}class RedirectHandler{constructor(r,s,i,u){if(s!=null&&(!Number.isInteger(s)||s<0)){throw new l("maxRedirections must be a positive number")}a.validateHandler(u,i.method,i.upgrade);this.dispatch=r;this.location=null;this.abort=null;this.opts={...i,maxRedirections:0};this.maxRedirections=s;this.handler=u;this.history=[];if(a.isStream(this.opts.body)){if(a.bodyLength(this.opts.body)===0){this.opts.body.on("data",(function(){c(false)}))}if(typeof this.opts.body.readableDidRead!=="boolean"){this.opts.body[A]=false;d.prototype.on.call(this.opts.body,"data",(function(){this[A]=true}))}}else if(this.opts.body&&typeof this.opts.body.pipeTo==="function"){this.opts.body=new BodyAsyncIterable(this.opts.body)}else if(this.opts.body&&typeof this.opts.body!=="string"&&!ArrayBuffer.isView(this.opts.body)&&a.isIterable(this.opts.body)){this.opts.body=new BodyAsyncIterable(this.opts.body)}}onConnect(r){this.abort=r;this.handler.onConnect(r,{history:this.history})}onUpgrade(r,s,i){this.handler.onUpgrade(r,s,i)}onError(r){this.handler.onError(r)}onHeaders(r,s,i,A){this.location=this.history.length>=this.maxRedirections||a.isDisturbed(this.opts.body)?null:parseLocation(r,s);if(this.opts.origin){this.history.push(new URL(this.opts.path,this.opts.origin))}if(!this.location){return this.handler.onHeaders(r,s,i,A)}const{origin:c,pathname:l,search:d}=a.parseURL(new URL(this.location,this.opts.origin&&new URL(this.opts.path,this.opts.origin)));const u=d?`${l}${d}`:l;this.opts.headers=cleanRequestHeaders(this.opts.headers,r===303,this.opts.origin!==c);this.opts.path=u;this.opts.origin=c;this.opts.maxRedirections=0;this.opts.query=null;if(r===303&&this.opts.method!=="HEAD"){this.opts.method="GET";this.opts.body=null}}onData(r){if(this.location){}else{return this.handler.onData(r)}}onComplete(r){if(this.location){this.location=null;this.abort=null;this.dispatch(this.opts,this)}else{this.handler.onComplete(r)}}onBodySent(r){if(this.handler.onBodySent){this.handler.onBodySent(r)}}}function parseLocation(r,s){if(u.indexOf(r)===-1){return null}for(let r=0;r{const a=i(39491);const{kRetryHandlerDefaultRetry:A}=i(25999);const{RequestRetryError:c}=i(37715);const{isDisturbed:l,parseHeaders:d,parseRangeHeader:u}=i(82423);function calculateRetryAfterHeader(r){const s=Date.now();const i=new Date(r).getTime()-s;return i}class RetryHandler{constructor(r,s){const{retryOptions:i,...a}=r;const{retry:c,maxRetries:l,maxTimeout:d,minTimeout:u,timeoutFactor:p,methods:g,errorCodes:h,retryAfter:C,statusCodes:y}=i??{};this.dispatch=s.dispatch;this.handler=s.handler;this.opts=a;this.abort=null;this.aborted=false;this.retryOpts={retry:c??RetryHandler[A],retryAfter:C??true,maxTimeout:d??30*1e3,timeout:u??500,timeoutFactor:p??2,maxRetries:l??5,methods:g??["GET","HEAD","OPTIONS","PUT","DELETE","TRACE"],statusCodes:y??[500,502,503,504,429],errorCodes:h??["ECONNRESET","ECONNREFUSED","ENOTFOUND","ENETDOWN","ENETUNREACH","EHOSTDOWN","EHOSTUNREACH","EPIPE"]};this.retryCount=0;this.start=0;this.end=null;this.etag=null;this.resume=null;this.handler.onConnect((r=>{this.aborted=true;if(this.abort){this.abort(r)}else{this.reason=r}}))}onRequestSent(){if(this.handler.onRequestSent){this.handler.onRequestSent()}}onUpgrade(r,s,i){if(this.handler.onUpgrade){this.handler.onUpgrade(r,s,i)}}onConnect(r){if(this.aborted){r(this.reason)}else{this.abort=r}}onBodySent(r){if(this.handler.onBodySent)return this.handler.onBodySent(r)}static[A](r,{state:s,opts:i},a){const{statusCode:A,code:c,headers:l}=r;const{method:d,retryOptions:u}=i;const{maxRetries:p,timeout:g,maxTimeout:h,timeoutFactor:C,statusCodes:y,errorCodes:I,methods:B}=u;let{counter:b,currentTimeout:Q}=s;Q=Q!=null&&Q>0?Q:g;if(c&&c!=="UND_ERR_REQ_RETRY"&&c!=="UND_ERR_SOCKET"&&!I.includes(c)){a(r);return}if(Array.isArray(B)&&!B.includes(d)){a(r);return}if(A!=null&&Array.isArray(y)&&!y.includes(A)){a(r);return}if(b>p){a(r);return}let w=l!=null&&l["retry-after"];if(w){w=Number(w);w=isNaN(w)?calculateRetryAfterHeader(w):w*1e3}const v=w>0?Math.min(w,h):Math.min(Q*C**b,h);s.currentTimeout=v;setTimeout((()=>a(null)),v)}onHeaders(r,s,i,A){const l=d(s);this.retryCount+=1;if(r>=300){this.abort(new c("Request failed",r,{headers:l,count:this.retryCount}));return false}if(this.resume!=null){this.resume=null;if(r!==206){return true}const s=u(l["content-range"]);if(!s){this.abort(new c("Content-Range mismatch",r,{headers:l,count:this.retryCount}));return false}if(this.etag!=null&&this.etag!==l.etag){this.abort(new c("ETag mismatch",r,{headers:l,count:this.retryCount}));return false}const{start:A,size:d,end:p=d}=s;a(this.start===A,"content-range mismatch");a(this.end==null||this.end===p,"content-range mismatch");this.resume=i;return true}if(this.end==null){if(r===206){const c=u(l["content-range"]);if(c==null){return this.handler.onHeaders(r,s,i,A)}const{start:d,size:p,end:g=p}=c;a(d!=null&&Number.isFinite(d)&&this.start!==d,"content-range mismatch");a(Number.isFinite(d));a(g!=null&&Number.isFinite(g)&&this.end!==g,"invalid content-length");this.start=d;this.end=g}if(this.end==null){const r=l["content-length"];this.end=r!=null?Number(r):null}a(Number.isFinite(this.start));a(this.end==null||Number.isFinite(this.end),"invalid content-length");this.resume=i;this.etag=l.etag!=null?l.etag:null;return this.handler.onHeaders(r,s,i,A)}const p=new c("Request failed",r,{headers:l,count:this.retryCount});this.abort(p);return false}onData(r){this.start+=r.length;return this.handler.onData(r)}onComplete(r){this.retryCount=0;return this.handler.onComplete(r)}onError(r){if(this.aborted||l(this.opts.body)){return this.handler.onError(r)}this.retryOpts.retry(r,{state:{counter:this.retryCount++,currentTimeout:this.retryAfter},opts:{retryOptions:this.retryOpts,...this.opts}},onRetry.bind(this));function onRetry(r){if(r!=null||this.aborted||l(this.opts.body)){return this.handler.onError(r)}if(this.start!==0){this.opts={...this.opts,headers:{...this.opts.headers,range:`bytes=${this.start}-${this.end??""}`}}}try{this.dispatch(this.opts,this)}catch(r){this.handler.onError(r)}}}}r.exports=RetryHandler},71856:(r,s,i)=>{"use strict";const a=i(69173);function createRedirectInterceptor({maxRedirections:r}){return s=>function Intercept(i,A){const{maxRedirections:c=r}=i;if(!c){return s(i,A)}const l=new a(s,c,i,A);i={...i,maxRedirections:0};return s(i,l)}}r.exports=createRedirectInterceptor},78764:(r,s,i)=>{"use strict";Object.defineProperty(s,"__esModule",{value:true});s.SPECIAL_HEADERS=s.HEADER_STATE=s.MINOR=s.MAJOR=s.CONNECTION_TOKEN_CHARS=s.HEADER_CHARS=s.TOKEN=s.STRICT_TOKEN=s.HEX=s.URL_CHAR=s.STRICT_URL_CHAR=s.USERINFO_CHARS=s.MARK=s.ALPHANUM=s.NUM=s.HEX_MAP=s.NUM_MAP=s.ALPHA=s.FINISH=s.H_METHOD_MAP=s.METHOD_MAP=s.METHODS_RTSP=s.METHODS_ICE=s.METHODS_HTTP=s.METHODS=s.LENIENT_FLAGS=s.FLAGS=s.TYPE=s.ERROR=void 0;const a=i(6257);var A;(function(r){r[r["OK"]=0]="OK";r[r["INTERNAL"]=1]="INTERNAL";r[r["STRICT"]=2]="STRICT";r[r["LF_EXPECTED"]=3]="LF_EXPECTED";r[r["UNEXPECTED_CONTENT_LENGTH"]=4]="UNEXPECTED_CONTENT_LENGTH";r[r["CLOSED_CONNECTION"]=5]="CLOSED_CONNECTION";r[r["INVALID_METHOD"]=6]="INVALID_METHOD";r[r["INVALID_URL"]=7]="INVALID_URL";r[r["INVALID_CONSTANT"]=8]="INVALID_CONSTANT";r[r["INVALID_VERSION"]=9]="INVALID_VERSION";r[r["INVALID_HEADER_TOKEN"]=10]="INVALID_HEADER_TOKEN";r[r["INVALID_CONTENT_LENGTH"]=11]="INVALID_CONTENT_LENGTH";r[r["INVALID_CHUNK_SIZE"]=12]="INVALID_CHUNK_SIZE";r[r["INVALID_STATUS"]=13]="INVALID_STATUS";r[r["INVALID_EOF_STATE"]=14]="INVALID_EOF_STATE";r[r["INVALID_TRANSFER_ENCODING"]=15]="INVALID_TRANSFER_ENCODING";r[r["CB_MESSAGE_BEGIN"]=16]="CB_MESSAGE_BEGIN";r[r["CB_HEADERS_COMPLETE"]=17]="CB_HEADERS_COMPLETE";r[r["CB_MESSAGE_COMPLETE"]=18]="CB_MESSAGE_COMPLETE";r[r["CB_CHUNK_HEADER"]=19]="CB_CHUNK_HEADER";r[r["CB_CHUNK_COMPLETE"]=20]="CB_CHUNK_COMPLETE";r[r["PAUSED"]=21]="PAUSED";r[r["PAUSED_UPGRADE"]=22]="PAUSED_UPGRADE";r[r["PAUSED_H2_UPGRADE"]=23]="PAUSED_H2_UPGRADE";r[r["USER"]=24]="USER"})(A=s.ERROR||(s.ERROR={}));var c;(function(r){r[r["BOTH"]=0]="BOTH";r[r["REQUEST"]=1]="REQUEST";r[r["RESPONSE"]=2]="RESPONSE"})(c=s.TYPE||(s.TYPE={}));var l;(function(r){r[r["CONNECTION_KEEP_ALIVE"]=1]="CONNECTION_KEEP_ALIVE";r[r["CONNECTION_CLOSE"]=2]="CONNECTION_CLOSE";r[r["CONNECTION_UPGRADE"]=4]="CONNECTION_UPGRADE";r[r["CHUNKED"]=8]="CHUNKED";r[r["UPGRADE"]=16]="UPGRADE";r[r["CONTENT_LENGTH"]=32]="CONTENT_LENGTH";r[r["SKIPBODY"]=64]="SKIPBODY";r[r["TRAILING"]=128]="TRAILING";r[r["TRANSFER_ENCODING"]=512]="TRANSFER_ENCODING"})(l=s.FLAGS||(s.FLAGS={}));var d;(function(r){r[r["HEADERS"]=1]="HEADERS";r[r["CHUNKED_LENGTH"]=2]="CHUNKED_LENGTH";r[r["KEEP_ALIVE"]=4]="KEEP_ALIVE"})(d=s.LENIENT_FLAGS||(s.LENIENT_FLAGS={}));var u;(function(r){r[r["DELETE"]=0]="DELETE";r[r["GET"]=1]="GET";r[r["HEAD"]=2]="HEAD";r[r["POST"]=3]="POST";r[r["PUT"]=4]="PUT";r[r["CONNECT"]=5]="CONNECT";r[r["OPTIONS"]=6]="OPTIONS";r[r["TRACE"]=7]="TRACE";r[r["COPY"]=8]="COPY";r[r["LOCK"]=9]="LOCK";r[r["MKCOL"]=10]="MKCOL";r[r["MOVE"]=11]="MOVE";r[r["PROPFIND"]=12]="PROPFIND";r[r["PROPPATCH"]=13]="PROPPATCH";r[r["SEARCH"]=14]="SEARCH";r[r["UNLOCK"]=15]="UNLOCK";r[r["BIND"]=16]="BIND";r[r["REBIND"]=17]="REBIND";r[r["UNBIND"]=18]="UNBIND";r[r["ACL"]=19]="ACL";r[r["REPORT"]=20]="REPORT";r[r["MKACTIVITY"]=21]="MKACTIVITY";r[r["CHECKOUT"]=22]="CHECKOUT";r[r["MERGE"]=23]="MERGE";r[r["M-SEARCH"]=24]="M-SEARCH";r[r["NOTIFY"]=25]="NOTIFY";r[r["SUBSCRIBE"]=26]="SUBSCRIBE";r[r["UNSUBSCRIBE"]=27]="UNSUBSCRIBE";r[r["PATCH"]=28]="PATCH";r[r["PURGE"]=29]="PURGE";r[r["MKCALENDAR"]=30]="MKCALENDAR";r[r["LINK"]=31]="LINK";r[r["UNLINK"]=32]="UNLINK";r[r["SOURCE"]=33]="SOURCE";r[r["PRI"]=34]="PRI";r[r["DESCRIBE"]=35]="DESCRIBE";r[r["ANNOUNCE"]=36]="ANNOUNCE";r[r["SETUP"]=37]="SETUP";r[r["PLAY"]=38]="PLAY";r[r["PAUSE"]=39]="PAUSE";r[r["TEARDOWN"]=40]="TEARDOWN";r[r["GET_PARAMETER"]=41]="GET_PARAMETER";r[r["SET_PARAMETER"]=42]="SET_PARAMETER";r[r["REDIRECT"]=43]="REDIRECT";r[r["RECORD"]=44]="RECORD";r[r["FLUSH"]=45]="FLUSH"})(u=s.METHODS||(s.METHODS={}));s.METHODS_HTTP=[u.DELETE,u.GET,u.HEAD,u.POST,u.PUT,u.CONNECT,u.OPTIONS,u.TRACE,u.COPY,u.LOCK,u.MKCOL,u.MOVE,u.PROPFIND,u.PROPPATCH,u.SEARCH,u.UNLOCK,u.BIND,u.REBIND,u.UNBIND,u.ACL,u.REPORT,u.MKACTIVITY,u.CHECKOUT,u.MERGE,u["M-SEARCH"],u.NOTIFY,u.SUBSCRIBE,u.UNSUBSCRIBE,u.PATCH,u.PURGE,u.MKCALENDAR,u.LINK,u.UNLINK,u.PRI,u.SOURCE];s.METHODS_ICE=[u.SOURCE];s.METHODS_RTSP=[u.OPTIONS,u.DESCRIBE,u.ANNOUNCE,u.SETUP,u.PLAY,u.PAUSE,u.TEARDOWN,u.GET_PARAMETER,u.SET_PARAMETER,u.REDIRECT,u.RECORD,u.FLUSH,u.GET,u.POST];s.METHOD_MAP=a.enumToMap(u);s.H_METHOD_MAP={};Object.keys(s.METHOD_MAP).forEach((r=>{if(/^H/.test(r)){s.H_METHOD_MAP[r]=s.METHOD_MAP[r]}}));var p;(function(r){r[r["SAFE"]=0]="SAFE";r[r["SAFE_WITH_CB"]=1]="SAFE_WITH_CB";r[r["UNSAFE"]=2]="UNSAFE"})(p=s.FINISH||(s.FINISH={}));s.ALPHA=[];for(let r="A".charCodeAt(0);r<="Z".charCodeAt(0);r++){s.ALPHA.push(String.fromCharCode(r));s.ALPHA.push(String.fromCharCode(r+32))}s.NUM_MAP={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9};s.HEX_MAP={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15};s.NUM=["0","1","2","3","4","5","6","7","8","9"];s.ALPHANUM=s.ALPHA.concat(s.NUM);s.MARK=["-","_",".","!","~","*","'","(",")"];s.USERINFO_CHARS=s.ALPHANUM.concat(s.MARK).concat(["%",";",":","&","=","+","$",","]);s.STRICT_URL_CHAR=["!",'"',"$","%","&","'","(",")","*","+",",","-",".","/",":",";","<","=",">","@","[","\\","]","^","_","`","{","|","}","~"].concat(s.ALPHANUM);s.URL_CHAR=s.STRICT_URL_CHAR.concat(["\t","\f"]);for(let r=128;r<=255;r++){s.URL_CHAR.push(r)}s.HEX=s.NUM.concat(["a","b","c","d","e","f","A","B","C","D","E","F"]);s.STRICT_TOKEN=["!","#","$","%","&","'","*","+","-",".","^","_","`","|","~"].concat(s.ALPHANUM);s.TOKEN=s.STRICT_TOKEN.concat([" "]);s.HEADER_CHARS=["\t"];for(let r=32;r<=255;r++){if(r!==127){s.HEADER_CHARS.push(r)}}s.CONNECTION_TOKEN_CHARS=s.HEADER_CHARS.filter((r=>r!==44));s.MAJOR=s.NUM_MAP;s.MINOR=s.MAJOR;var g;(function(r){r[r["GENERAL"]=0]="GENERAL";r[r["CONNECTION"]=1]="CONNECTION";r[r["CONTENT_LENGTH"]=2]="CONTENT_LENGTH";r[r["TRANSFER_ENCODING"]=3]="TRANSFER_ENCODING";r[r["UPGRADE"]=4]="UPGRADE";r[r["CONNECTION_KEEP_ALIVE"]=5]="CONNECTION_KEEP_ALIVE";r[r["CONNECTION_CLOSE"]=6]="CONNECTION_CLOSE";r[r["CONNECTION_UPGRADE"]=7]="CONNECTION_UPGRADE";r[r["TRANSFER_ENCODING_CHUNKED"]=8]="TRANSFER_ENCODING_CHUNKED"})(g=s.HEADER_STATE||(s.HEADER_STATE={}));s.SPECIAL_HEADERS={connection:g.CONNECTION,"content-length":g.CONTENT_LENGTH,"proxy-connection":g.CONNECTION,"transfer-encoding":g.TRANSFER_ENCODING,upgrade:g.UPGRADE}},56425:r=>{r.exports="AGFzbQEAAAABMAhgAX8Bf2ADf39/AX9gBH9/f38Bf2AAAGADf39/AGABfwBgAn9/AGAGf39/f39/AALLAQgDZW52GHdhc21fb25faGVhZGVyc19jb21wbGV0ZQACA2VudhV3YXNtX29uX21lc3NhZ2VfYmVnaW4AAANlbnYLd2FzbV9vbl91cmwAAQNlbnYOd2FzbV9vbl9zdGF0dXMAAQNlbnYUd2FzbV9vbl9oZWFkZXJfZmllbGQAAQNlbnYUd2FzbV9vbl9oZWFkZXJfdmFsdWUAAQNlbnYMd2FzbV9vbl9ib2R5AAEDZW52GHdhc21fb25fbWVzc2FnZV9jb21wbGV0ZQAAA0ZFAwMEAAAFAAAAAAAABQEFAAUFBQAABgAAAAAGBgYGAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQABAAABAQcAAAUFAwABBAUBcAESEgUDAQACBggBfwFBgNQECwfRBSIGbWVtb3J5AgAL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0EAIQEgAC8BMCICQQFxRQ0BC0EBIQEgAC0AKEEBRg0AIAAvATJB//8DcSIAQZx/akHkAEkNACAAQcwBRg0AIABBsAJGDQAgAkHAAHENAEEAIQEgAkGIBHFBgARGDQAgAkEocUEARyEBCyABC1kAIABBGGpCADcDACAAQgA3AwAgAEE4akIANwMAIABBMGpCADcDACAAQShqQgA3AwAgAEEgakIANwMAIABBEGpCADcDACAAQQhqQgA3AwAgAEHdATYCHEEAC3sBAX8CQCAAKAIMIgMNAAJAIAAoAgRFDQAgACABNgIECwJAIAAgASACEMSAgIAAIgMNACAAKAIMDwsgACADNgIcQQAhAyAAKAIEIgFFDQAgACABIAIgACgCCBGBgICAAAAiAUUNACAAIAI2AhQgACABNgIMIAEhAwsgAwvk8wEDDn8DfgR/I4CAgIAAQRBrIgMkgICAgAAgASEEIAEhBSABIQYgASEHIAEhCCABIQkgASEKIAEhCyABIQwgASENIAEhDiABIQ8CQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkAgACgCHCIQQX9qDt0B2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DCcLQZ4BIRAMJgtBnwEhEAwlC0GgASEQDCQLQaEBIRAMIwtBogEhEAwiC0GjASEQDCELQaQBIRAMIAtBpQEhEAwfC0GmASEQDB4LQacBIRAMHQtBqAEhEAwcC0GpASEQDBsLQaoBIRAMGgtBqwEhEAwZC0GsASEQDBgLQa0BIRAMFwtBrgEhEAwWC0EBIRAMFQtBrwEhEAwUC0GwASEQDBMLQbEBIRAMEgtBswEhEAwRC0GyASEQDBALQbQBIRAMDwtBtQEhEAwOC0G2ASEQDA0LQbcBIRAMDAtBuAEhEAwLC0G5ASEQDAoLQboBIRAMCQtBuwEhEAwIC0HGASEQDAcLQbwBIRAMBgtBvQEhEAwFC0G+ASEQDAQLQb8BIRAMAwtBwAEhEAwCC0HCASEQDAELQcEBIRALA0ACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJA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sgAEHSADYCHCAAIAE2AhQgACAQNgIMQQAhEAyuAQsgACgCBCEQIABBADYCBAJAIAAgECABEKeAgIAAIhANACABIQEMSQsgAEHTADYCHCAAIAE2AhQgACAQNgIMQQAhEAytAQsgACgCBCEQIABBADYCBAJAIAAgECABEKeAgIAAIhANACABIQEMTQsgAEHlADYCHCAAIAE2AhQgACAQNgIMQQAhEAysAQsgAEEANgIcIAAgATYCFCAAQdyIgIAANgIQIABBBzYCDEEAIRAMqwELIBBBP0cNASABQQFqIQELQQUhEAyQAQtBACEQIABBADYCHCAAIAE2AhQgAEH9koCAADYCECAAQQc2AgwMqAELIAAoAgQhECAAQQA2AgQCQCAAIBAgARCngICAACIQDQAgASEBDEILIABB0gA2AhwgACABNgIUIAAgEDYCDEEAIRAMpwELIAAoAgQhECAAQQA2AgQCQCAAIBAgARCngICAACIQDQAgASEBDEILIABB0wA2AhwgACABNgIUIAAgEDYCDEEAIRAMpgELIAAoAgQhECAAQQA2AgQCQCAAIBAgARCngICAACIQDQAgASEBDEYLIABB5QA2AhwgACABNgIUIAAgEDYCDEEAIRAMpQELIAAoAgQhASAAQQA2AgQCQCAAIAEgFBCngICAACIBDQAgFCEBDD8LIABB0gA2AhwgACAUNgIUIAAgATYCDEEAIRAMpAELIAAoAgQhASAAQQA2AgQCQCAAIAEgFBCngICAACIBDQAgFCEBDD8LIABB0wA2AhwgACAUNgIUIAAgATYCDEEAIRAMowELIAAoAgQhASAAQQA2AgQCQCAAIAEgFBCngICAACIBDQAgFCEBDEMLIABB5QA2AhwgACAUNgIUIAAgATYCDEEAIRAMogELIABBADYCHCAAIBQ2AhQgAEHDj4CAADYCECAAQQc2AgxBACEQDKEBCyAAQQA2AhwgACABNgIUIABBw4+AgAA2AhAgAEEHNgIMQQAhEAygAQtBACEQIABBADYCHCAAIBQ2AhQgAEGMnICAADYCECAAQQc2AgwMnwELIABBADYCHCAAIBQ2AhQgAEGMnICAADYCECAAQQc2AgxBACEQDJ4BCyAAQQA2AhwgAC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AJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJ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iESACIAEiEGutIhJ9IhMgEyARVhs3AyAgESASViIURQ3lAUEIIRAM6wMLAkAgASIBIAJGDQAgAEGJgICAADYCCCAAIAE2AgQgASEBQRQhEAzSAwtBCSEQDOoDCyABIQEgACkDIFAN5AEgASEBDPICCwJAIAEiASACRw0AQQshEAzpAwsgACABQQFqIgEgAhC2gICAACIQDeUBIAEhAQzyAgsgACABIgEgAhC4gICAACIQDeUBIAEhAQzyAgsgACABIgEgAhC4gICAACIQDeYBIAEhAQwNCyAAIAEiASACELqAgIAAIhAN5wEgASEBDPACCwJAIAEiASACRw0AQQ8hEAzlAwsgAS0AACIQQTtGDQggEEENRw3oASABQQFqIQEM7wILIAAgASIBIAIQuoCAgAAiEA3oASABIQEM8gILA0ACQCABLQAAQfC1gIAAai0AACIQQQFGDQAgEEECRw3rASAAKAIEIRAgAEEANgIEIAAgECABQQFqIgEQuYCAgAAiEA3qASABIQEM9AILIAFBAWoiASACRw0AC0ESIRAM4gMLIAAgASIBIAIQuoCAgAAiEA3pASABIQEMCgsgASIBIAJHDQZBGyEQDOADCwJAIAEiASACRw0AQRYhEAzgAwsgAEGKgICAADYCCCAAIAE2AgQgACABIAIQuICAgAAiEA3qASABIQFBICEQDMYDCwJAIAEiASACRg0AA0ACQCABLQAAQfC3gIAAai0AACIQQQJGDQACQCAQQX9qDgTlAewBAOsB7AELIAFBAWohAUEIIRAMyAMLIAFBAWoiASACRw0AC0EVIRAM3wMLQRUhEAzeAwsDQAJAIAEtAABB8LmAgABqLQAAIhBBAkYNACAQQX9qDgTeAewB4AHrAewBCyABQQFqIgEgAkcNAAtBGCEQDN0DCwJAIAEiASACRg0AIABBi4CAgAA2AgggACABNgIEIAEhAUEHIRAMxAMLQRkhEAzcAwsgAUEBaiEBDAILAkAgASIUIAJHDQBBGiEQDNsDCyAUIQECQCAULQAAQXNqDhTdAu4C7gLuAu4C7gLuAu4C7gLuAu4C7gLuAu4C7gLuAu4C7gLuAgDuAgtBACEQIABBADYCHCAAQa+LgI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QA2AhwgACABNgIUIABB94mAgAA2AhAgAEEINgIMDLUBCyAQQRVGDXEgAEEANgIcIAAgATYCFCAAQbmNgIAANgIQIABBGjYCDEEAIRAMtAELIAAoAgQhECAAQQA2AgQCQCAAIBAgARCngICAACIQDQAgASEBDFQLIABB5QA2AhwgACABNgIUIAAgEDYCDEEAIRAMswELIAAoAgQhECAAQQA2AgQCQCAAIBAgARCngICAACIQDQAgASEBDE0LIABB0gA2AhwgACABNgIUIAAgEDYCDEEAIRAMsgELIAAoAgQhECAAQQA2AgQCQCAAIBAgARCngICAACIQDQAgASEBDE0LIABB0wA2AhwgACABNgIUIAAgEDYCDEEAIRAMsQELIAAoAgQhECAAQQA2AgQCQCAAIBAgARCngICAACIQDQAgASEBDFELIABB5QA2AhwgACABNgIUIAAgEDYCDEEAIRAMsAELIABBADYCHCAAIAE2AhQgAEHGioCAADYCECAAQQc2AgxBACEQDK8BCyAAKAIEIRAgAEEANgIEAkAgACAQIAEQp4CAgAAiEA0AIAEhAQxJCyAAQdIANgIcIAAgATYCFCAAIBA2AgxBACEQDK4BCyAAKAIEIRAgAEEANgIEAkAgACAQIAEQp4CAgAAiEA0AIAEhAQxJCyAAQdMANgIcIAAgATYCFCAAIBA2AgxBACEQDK0BCyAAKAIEIRAgAEEANgIEAkAgACAQIAEQp4CAgAAiEA0AIAEhAQxNCyAAQeUANgIcIAAgATYCFCAAIBA2AgxBACEQDKwBCyAAQQA2AhwgACABNgIUIABB3IiAgAA2AhAgAEEHNgIMQQAhEAyrAQsgEEE/Rw0BIAFBAWohAQtBBSEQDJABC0EAIRAgAEEANgIcIAAgATYCFCAAQf2SgIAANgIQIABBBzYCDAyoAQsgACgCBCEQIABBADYCBAJAIAAgECABEKeAgIAAIhANACABIQEMQgsgAEHSADYCHCAAIAE2AhQgACAQNgIMQQAhEAynAQsgACgCBCEQIABBADYCBAJAIAAgECABEKeAgIAAIhANACABIQEMQgsgAEHTADYCHCAAIAE2AhQgACAQNgIMQQAhEAymAQsg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AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAEAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAgAAAAACAAAAAAAAAAAAAAAAAAAAAAADAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwAAAAAAAAMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAE5PVU5DRUVDS09VVE5FQ1RFVEVDUklCRUxVU0hFVEVBRFNFQVJDSFJHRUNUSVZJVFlMRU5EQVJWRU9USUZZUFRJT05TQ0hTRUFZU1RBVENIR0VPUkRJUkVDVE9SVFJDSFBBUkFNRVRFUlVSQ0VCU0NSSUJFQVJET1dOQUNFSU5ETktDS1VCU0NSSUJFSFRUUC9BRFRQLw=="},6257:(r,s)=>{"use strict";Object.defineProperty(s,"__esModule",{value:true});s.enumToMap=void 0;function enumToMap(r){const s={};Object.keys(r).forEach((i=>{const a=r[i];if(typeof a==="number"){s[i]=a}}));return s}s.enumToMap=enumToMap},94997:(r,s,i)=>{"use strict";const{kClients:a}=i(25999);const A=i(16202);const{kAgent:c,kMockAgentSet:l,kMockAgentGet:d,kDispatches:u,kIsMockActive:p,kNetConnect:g,kGetNetConnect:h,kOptions:C,kFactory:y}=i(50990);const I=i(8735);const B=i(57557);const{matchValue:b,buildMockOptions:Q}=i(23953);const{InvalidArgumentError:w,UndiciError:v}=i(37715);const S=i(57587);const R=i(39505);const N=i(66875);class FakeWeakRef{constructor(r){this.value=r}deref(){return this.value}}class MockAgent extends S{constructor(r){super(r);this[g]=true;this[p]=true;if(r&&r.agent&&typeof r.agent.dispatch!=="function"){throw new w("Argument opts.agent must implement Agent")}const s=r&&r.agent?r.agent:new A(r);this[c]=s;this[a]=s[a];this[C]=Q(r)}get(r){let s=this[d](r);if(!s){s=this[y](r);this[l](r,s)}return s}dispatch(r,s){this.get(r.origin);return this[c].dispatch(r,s)}async close(){await this[c].close();this[a].clear()}deactivate(){this[p]=false}activate(){this[p]=true}enableNetConnect(r){if(typeof r==="string"||typeof r==="function"||r instanceof RegExp){if(Array.isArray(this[g])){this[g].push(r)}else{this[g]=[r]}}else if(typeof r==="undefined"){this[g]=true}else{throw new w("Unsupported matcher. Must be one of String|Function|RegExp.")}}disableNetConnect(){this[g]=false}get isMockActive(){return this[p]}[l](r,s){this[a].set(r,new FakeWeakRef(s))}[y](r){const s=Object.assign({agent:this},this[C]);return this[C]&&this[C].connections===1?new I(r,s):new B(r,s)}[d](r){const s=this[a].get(r);if(s){return s.deref()}if(typeof r!=="string"){const s=this[y]("http://localhost:9999");this[l](r,s);return s}for(const[s,i]of Array.from(this[a])){const a=i.deref();if(a&&typeof s!=="string"&&b(s,r)){const s=this[y](r);this[l](r,s);s[u]=a[u];return s}}}[h](){return this[g]}pendingInterceptors(){const r=this[a];return Array.from(r.entries()).flatMap((([r,s])=>s.deref()[u].map((s=>({...s,origin:r}))))).filter((({pending:r})=>r))}assertNoPendingInterceptors({pendingInterceptorsFormatter:r=new N}={}){const s=this.pendingInterceptors();if(s.length===0){return}const i=new R("interceptor","interceptors").pluralize(s.length);throw new v(`\n${i.count} ${i.noun} ${i.is} pending:\n\n${r.format(s)}\n`.trim())}}r.exports=MockAgent},8735:(r,s,i)=>{"use strict";const{promisify:a}=i(73837);const A=i(17152);const{buildMockDispatch:c}=i(23953);const{kDispatches:l,kMockAgent:d,kClose:u,kOriginalClose:p,kOrigin:g,kOriginalDispatch:h,kConnected:C}=i(50990);const{MockInterceptor:y}=i(1490);const I=i(25999);const{InvalidArgumentError:B}=i(37715);class MockClient extends A{constructor(r,s){super(r,s);if(!s||!s.agent||typeof s.agent.dispatch!=="function"){throw new B("Argument opts.agent must implement Agent")}this[d]=s.agent;this[g]=r;this[l]=[];this[C]=1;this[h]=this.dispatch;this[p]=this.close.bind(this);this.dispatch=c.call(this);this.close=this[u]}get[I.kConnected](){return this[C]}intercept(r){return new y(r,this[l])}async[u](){await a(this[p])();this[C]=0;this[d][I.kClients].delete(this[g])}}r.exports=MockClient},62012:(r,s,i)=>{"use strict";const{UndiciError:a}=i(37715);class MockNotMatchedError extends a{constructor(r){super(r);Error.captureStackTrace(this,MockNotMatchedError);this.name="MockNotMatchedError";this.message=r||"The request does not match any registered mock dispatches";this.code="UND_MOCK_ERR_MOCK_NOT_MATCHED"}}r.exports={MockNotMatchedError:MockNotMatchedError}},1490:(r,s,i)=>{"use strict";const{getResponseData:a,buildKey:A,addMockDispatch:c}=i(23953);const{kDispatches:l,kDispatchKey:d,kDefaultHeaders:u,kDefaultTrailers:p,kContentLength:g,kMockDispatch:h}=i(50990);const{InvalidArgumentError:C}=i(37715);const{buildURL:y}=i(82423);class MockScope{constructor(r){this[h]=r}delay(r){if(typeof r!=="number"||!Number.isInteger(r)||r<=0){throw new C("waitInMs must be a valid integer > 0")}this[h].delay=r;return this}persist(){this[h].persist=true;return this}times(r){if(typeof r!=="number"||!Number.isInteger(r)||r<=0){throw new C("repeatTimes must be a valid integer > 0")}this[h].times=r;return this}}class MockInterceptor{constructor(r,s){if(typeof r!=="object"){throw new C("opts must be an object")}if(typeof r.path==="undefined"){throw new C("opts.path must be defined")}if(typeof r.method==="undefined"){r.method="GET"}if(typeof r.path==="string"){if(r.query){r.path=y(r.path,r.query)}else{const s=new URL(r.path,"data://");r.path=s.pathname+s.search}}if(typeof r.method==="string"){r.method=r.method.toUpperCase()}this[d]=A(r);this[l]=s;this[u]={};this[p]={};this[g]=false}createMockScopeDispatchData(r,s,i={}){const A=a(s);const c=this[g]?{"content-length":A.length}:{};const l={...this[u],...c,...i.headers};const d={...this[p],...i.trailers};return{statusCode:r,data:s,headers:l,trailers:d}}validateReplyParameters(r,s,i){if(typeof r==="undefined"){throw new C("statusCode must be defined")}if(typeof s==="undefined"){throw new C("data must be defined")}if(typeof i!=="object"){throw new C("responseOptions must be an object")}}reply(r){if(typeof r==="function"){const wrappedDefaultsCallback=s=>{const i=r(s);if(typeof i!=="object"){throw new C("reply options callback must return an object")}const{statusCode:a,data:A="",responseOptions:c={}}=i;this.validateReplyParameters(a,A,c);return{...this.createMockScopeDispatchData(a,A,c)}};const s=c(this[l],this[d],wrappedDefaultsCallback);return new MockScope(s)}const[s,i="",a={}]=[...arguments];this.validateReplyParameters(s,i,a);const A=this.createMockScopeDispatchData(s,i,a);const u=c(this[l],this[d],A);return new MockScope(u)}replyWithError(r){if(typeof r==="undefined"){throw new C("error must be defined")}const s=c(this[l],this[d],{error:r});return new MockScope(s)}defaultReplyHeaders(r){if(typeof r==="undefined"){throw new C("headers must be defined")}this[u]=r;return this}defaultReplyTrailers(r){if(typeof r==="undefined"){throw new C("trailers must be defined")}this[p]=r;return this}replyContentLength(){this[g]=true;return this}}r.exports.MockInterceptor=MockInterceptor;r.exports.MockScope=MockScope},57557:(r,s,i)=>{"use strict";const{promisify:a}=i(73837);const A=i(82928);const{buildMockDispatch:c}=i(23953);const{kDispatches:l,kMockAgent:d,kClose:u,kOriginalClose:p,kOrigin:g,kOriginalDispatch:h,kConnected:C}=i(50990);const{MockInterceptor:y}=i(1490);const I=i(25999);const{InvalidArgumentError:B}=i(37715);class MockPool extends A{constructor(r,s){super(r,s);if(!s||!s.agent||typeof s.agent.dispatch!=="function"){throw new B("Argument opts.agent must implement Agent")}this[d]=s.agent;this[g]=r;this[l]=[];this[C]=1;this[h]=this.dispatch;this[p]=this.close.bind(this);this.dispatch=c.call(this);this.close=this[u]}get[I.kConnected](){return this[C]}intercept(r){return new y(r,this[l])}async[u](){await a(this[p])();this[C]=0;this[d][I.kClients].delete(this[g])}}r.exports=MockPool},50990:r=>{"use strict";r.exports={kAgent:Symbol("agent"),kOptions:Symbol("options"),kFactory:Symbol("factory"),kDispatches:Symbol("dispatches"),kDispatchKey:Symbol("dispatch key"),kDefaultHeaders:Symbol("default headers"),kDefaultTrailers:Symbol("default trailers"),kContentLength:Symbol("content length"),kMockAgent:Symbol("mock agent"),kMockAgentSet:Symbol("mock agent set"),kMockAgentGet:Symbol("mock agent get"),kMockDispatch:Symbol("mock dispatch"),kClose:Symbol("close"),kOriginalClose:Symbol("original agent close"),kOrigin:Symbol("origin"),kIsMockActive:Symbol("is mock active"),kNetConnect:Symbol("net connect"),kGetNetConnect:Symbol("get net connect"),kConnected:Symbol("connected")}},23953:(r,s,i)=>{"use strict";const{MockNotMatchedError:a}=i(62012);const{kDispatches:A,kMockAgent:c,kOriginalDispatch:l,kOrigin:d,kGetNetConnect:u}=i(50990);const{buildURL:p,nop:g}=i(82423);const{STATUS_CODES:h}=i(13685);const{types:{isPromise:C}}=i(73837);function matchValue(r,s){if(typeof r==="string"){return r===s}if(r instanceof RegExp){return r.test(s)}if(typeof r==="function"){return r(s)===true}return false}function lowerCaseEntries(r){return Object.fromEntries(Object.entries(r).map((([r,s])=>[r.toLocaleLowerCase(),s])))}function getHeaderByName(r,s){if(Array.isArray(r)){for(let i=0;i!r)).filter((({path:r})=>matchValue(safeUrl(r),A)));if(c.length===0){throw new a(`Mock dispatch not matched for path '${A}'`)}c=c.filter((({method:r})=>matchValue(r,s.method)));if(c.length===0){throw new a(`Mock dispatch not matched for method '${s.method}'`)}c=c.filter((({body:r})=>typeof r!=="undefined"?matchValue(r,s.body):true));if(c.length===0){throw new a(`Mock dispatch not matched for body '${s.body}'`)}c=c.filter((r=>matchHeaders(r,s.headers)));if(c.length===0){throw new a(`Mock dispatch not matched for headers '${typeof s.headers==="object"?JSON.stringify(s.headers):s.headers}'`)}return c[0]}function addMockDispatch(r,s,i){const a={timesInvoked:0,times:1,persist:false,consumed:false};const A=typeof i==="function"?{callback:i}:{...i};const c={...a,...s,pending:true,data:{error:null,...A}};r.push(c);return c}function deleteMockDispatch(r,s){const i=r.findIndex((r=>{if(!r.consumed){return false}return matchKey(r,s)}));if(i!==-1){r.splice(i,1)}}function buildKey(r){const{path:s,method:i,body:a,headers:A,query:c}=r;return{path:s,method:i,body:a,headers:A,query:c}}function generateKeyValues(r){return Object.entries(r).reduce(((r,[s,i])=>[...r,Buffer.from(`${s}`),Array.isArray(i)?i.map((r=>Buffer.from(`${r}`))):Buffer.from(`${i}`)]),[])}function getStatusText(r){return h[r]||"unknown"}async function getResponse(r){const s=[];for await(const i of r){s.push(i)}return Buffer.concat(s).toString("utf8")}function mockDispatch(r,s){const i=buildKey(r);const a=getMockDispatch(this[A],i);a.timesInvoked++;if(a.data.callback){a.data={...a.data,...a.data.callback(r)}}const{data:{statusCode:c,data:l,headers:d,trailers:u,error:p},delay:h,persist:y}=a;const{timesInvoked:I,times:B}=a;a.consumed=!y&&I>=B;a.pending=I0){setTimeout((()=>{handleReply(this[A])}),h)}else{handleReply(this[A])}function handleReply(a,A=l){const p=Array.isArray(r.headers)?buildHeadersFromArray(r.headers):r.headers;const h=typeof A==="function"?A({...r,headers:p}):A;if(C(h)){h.then((r=>handleReply(a,r)));return}const y=getResponseData(h);const I=generateKeyValues(d);const B=generateKeyValues(u);s.abort=g;s.onHeaders(c,I,resume,getStatusText(c));s.onData(Buffer.from(y));s.onComplete(B);deleteMockDispatch(a,i)}function resume(){}return true}function buildMockDispatch(){const r=this[c];const s=this[d];const i=this[l];return function dispatch(A,c){if(r.isMockActive){try{mockDispatch.call(this,A,c)}catch(l){if(l instanceof a){const d=r[u]();if(d===false){throw new a(`${l.message}: subsequent request to origin ${s} was not allowed (net.connect disabled)`)}if(checkNetConnect(d,s)){i.call(this,A,c)}else{throw new a(`${l.message}: subsequent request to origin ${s} was not allowed (net.connect is not enabled for this origin)`)}}else{throw l}}}else{i.call(this,A,c)}}}function checkNetConnect(r,s){const i=new URL(s);if(r===true){return true}else if(Array.isArray(r)&&r.some((r=>matchValue(r,i.host)))){return true}return false}function buildMockOptions(r){if(r){const{agent:s,...i}=r;return i}}r.exports={getResponseData:getResponseData,getMockDispatch:getMockDispatch,addMockDispatch:addMockDispatch,deleteMockDispatch:deleteMockDispatch,buildKey:buildKey,generateKeyValues:generateKeyValues,matchValue:matchValue,getResponse:getResponse,getStatusText:getStatusText,mockDispatch:mockDispatch,buildMockDispatch:buildMockDispatch,checkNetConnect:checkNetConnect,buildMockOptions:buildMockOptions,getHeaderByName:getHeaderByName}},66875:(r,s,i)=>{"use strict";const{Transform:a}=i(12781);const{Console:A}=i(96206);r.exports=class PendingInterceptorsFormatter{constructor({disableColors:r}={}){this.transform=new a({transform(r,s,i){i(null,r)}});this.logger=new A({stdout:this.transform,inspectOptions:{colors:!r&&!process.env.CI}})}format(r){const s=r.map((({method:r,path:s,data:{statusCode:i},persist:a,times:A,timesInvoked:c,origin:l})=>({Method:r,Origin:l,Path:s,"Status code":i,Persistent:a?"✅":"❌",Invocations:c,Remaining:a?Infinity:A-c})));this.logger.table(s);return this.transform.read().toString()}}},39505:r=>{"use strict";const s={pronoun:"it",is:"is",was:"was",this:"this"};const i={pronoun:"they",is:"are",was:"were",this:"these"};r.exports=class Pluralizer{constructor(r,s){this.singular=r;this.plural=s}pluralize(r){const a=r===1;const A=a?s:i;const c=a?this.singular:this.plural;return{...A,count:r,noun:c}}}},79717:r=>{"use strict";const s=2048;const i=s-1;class FixedCircularBuffer{constructor(){this.bottom=0;this.top=0;this.list=new Array(s);this.next=null}isEmpty(){return this.top===this.bottom}isFull(){return(this.top+1&i)===this.bottom}push(r){this.list[this.top]=r;this.top=this.top+1&i}shift(){const r=this.list[this.bottom];if(r===undefined)return null;this.list[this.bottom]=undefined;this.bottom=this.bottom+1&i;return r}}r.exports=class FixedQueue{constructor(){this.head=this.tail=new FixedCircularBuffer}isEmpty(){return this.head.isEmpty()}push(r){if(this.head.isFull()){this.head=this.head.next=new FixedCircularBuffer}this.head.push(r)}shift(){const r=this.tail;const s=r.shift();if(r.isEmpty()&&r.next!==null){this.tail=r.next}return s}}},71061:(r,s,i)=>{"use strict";const a=i(75971);const A=i(79717);const{kConnected:c,kSize:l,kRunning:d,kPending:u,kQueued:p,kBusy:g,kFree:h,kUrl:C,kClose:y,kDestroy:I,kDispatch:B}=i(25999);const b=i(57388);const Q=Symbol("clients");const w=Symbol("needDrain");const v=Symbol("queue");const S=Symbol("closed resolve");const R=Symbol("onDrain");const N=Symbol("onConnect");const x=Symbol("onDisconnect");const D=Symbol("onConnectionError");const k=Symbol("get dispatcher");const T=Symbol("add client");const _=Symbol("remove client");const P=Symbol("stats");class PoolBase extends a{constructor(){super();this[v]=new A;this[Q]=[];this[p]=0;const r=this;this[R]=function onDrain(s,i){const a=r[v];let A=false;while(!A){const s=a.shift();if(!s){break}r[p]--;A=!this.dispatch(s.opts,s.handler)}this[w]=A;if(!this[w]&&r[w]){r[w]=false;r.emit("drain",s,[r,...i])}if(r[S]&&a.isEmpty()){Promise.all(r[Q].map((r=>r.close()))).then(r[S])}};this[N]=(s,i)=>{r.emit("connect",s,[r,...i])};this[x]=(s,i,a)=>{r.emit("disconnect",s,[r,...i],a)};this[D]=(s,i,a)=>{r.emit("connectionError",s,[r,...i],a)};this[P]=new b(this)}get[g](){return this[w]}get[c](){return this[Q].filter((r=>r[c])).length}get[h](){return this[Q].filter((r=>r[c]&&!r[w])).length}get[u](){let r=this[p];for(const{[u]:s}of this[Q]){r+=s}return r}get[d](){let r=0;for(const{[d]:s}of this[Q]){r+=s}return r}get[l](){let r=this[p];for(const{[l]:s}of this[Q]){r+=s}return r}get stats(){return this[P]}async[y](){if(this[v].isEmpty()){return Promise.all(this[Q].map((r=>r.close())))}else{return new Promise((r=>{this[S]=r}))}}async[I](r){while(true){const s=this[v].shift();if(!s){break}s.handler.onError(r)}return Promise.all(this[Q].map((s=>s.destroy(r))))}[B](r,s){const i=this[k]();if(!i){this[w]=true;this[v].push({opts:r,handler:s});this[p]++}else if(!i.dispatch(r,s)){i[w]=true;this[w]=!this[k]()}return!this[w]}[T](r){r.on("drain",this[R]).on("connect",this[N]).on("disconnect",this[x]).on("connectionError",this[D]);this[Q].push(r);if(this[w]){process.nextTick((()=>{if(this[w]){this[R](r[C],[this,r])}}))}return this}[_](r){r.close((()=>{const s=this[Q].indexOf(r);if(s!==-1){this[Q].splice(s,1)}}));this[w]=this[Q].some((r=>!r[w]&&r.closed!==true&&r.destroyed!==true))}}r.exports={PoolBase:PoolBase,kClients:Q,kNeedDrain:w,kAddClient:T,kRemoveClient:_,kGetDispatcher:k}},57388:(r,s,i)=>{const{kFree:a,kConnected:A,kPending:c,kQueued:l,kRunning:d,kSize:u}=i(25999);const p=Symbol("pool");class PoolStats{constructor(r){this[p]=r}get connected(){return this[p][A]}get free(){return this[p][a]}get pending(){return this[p][c]}get queued(){return this[p][l]}get running(){return this[p][d]}get size(){return this[p][u]}}r.exports=PoolStats},82928:(r,s,i)=>{"use strict";const{PoolBase:a,kClients:A,kNeedDrain:c,kAddClient:l,kGetDispatcher:d}=i(71061);const u=i(17152);const{InvalidArgumentError:p}=i(37715);const g=i(82423);const{kUrl:h,kInterceptors:C}=i(25999);const y=i(69690);const I=Symbol("options");const B=Symbol("connections");const b=Symbol("factory");function defaultFactory(r,s){return new u(r,s)}class Pool extends a{constructor(r,{connections:s,factory:i=defaultFactory,connect:a,connectTimeout:c,tls:l,maxCachedSessions:d,socketPath:u,autoSelectFamily:Q,autoSelectFamilyAttemptTimeout:w,allowH2:v,...S}={}){super();if(s!=null&&(!Number.isFinite(s)||s<0)){throw new p("invalid connections")}if(typeof i!=="function"){throw new p("factory must be a function.")}if(a!=null&&typeof a!=="function"&&typeof a!=="object"){throw new p("connect must be a function or an object")}if(typeof a!=="function"){a=y({...l,maxCachedSessions:d,allowH2:v,socketPath:u,timeout:c,...g.nodeHasAutoSelectFamily&&Q?{autoSelectFamily:Q,autoSelectFamilyAttemptTimeout:w}:undefined,...a})}this[C]=S.interceptors&&S.interceptors.Pool&&Array.isArray(S.interceptors.Pool)?S.interceptors.Pool:[];this[B]=s||null;this[h]=g.parseOrigin(r);this[I]={...g.deepClone(S),connect:a,allowH2:v};this[I].interceptors=S.interceptors?{...S.interceptors}:undefined;this[b]=i;this.on("connectionError",((r,s,i)=>{for(const r of s){const s=this[A].indexOf(r);if(s!==-1){this[A].splice(s,1)}}}))}[d](){let r=this[A].find((r=>!r[c]));if(r){return r}if(!this[B]||this[A].length{"use strict";const{kProxy:a,kClose:A,kDestroy:c,kInterceptors:l}=i(25999);const{URL:d}=i(57310);const u=i(16202);const p=i(82928);const g=i(75971);const{InvalidArgumentError:h,RequestAbortedError:C}=i(37715);const y=i(69690);const I=Symbol("proxy agent");const B=Symbol("proxy client");const b=Symbol("proxy headers");const Q=Symbol("request tls settings");const w=Symbol("proxy tls settings");const v=Symbol("connect endpoint function");function defaultProtocolPort(r){return r==="https:"?443:80}function buildProxyOptions(r){if(typeof r==="string"){r={uri:r}}if(!r||!r.uri){throw new h("Proxy opts.uri is mandatory")}return{uri:r.uri,protocol:r.protocol||"https"}}function defaultFactory(r,s){return new p(r,s)}class ProxyAgent extends g{constructor(r){super(r);this[a]=buildProxyOptions(r);this[I]=new u(r);this[l]=r.interceptors&&r.interceptors.ProxyAgent&&Array.isArray(r.interceptors.ProxyAgent)?r.interceptors.ProxyAgent:[];if(typeof r==="string"){r={uri:r}}if(!r||!r.uri){throw new h("Proxy opts.uri is mandatory")}const{clientFactory:s=defaultFactory}=r;if(typeof s!=="function"){throw new h("Proxy opts.clientFactory must be a function.")}this[Q]=r.requestTls;this[w]=r.proxyTls;this[b]=r.headers||{};const i=new d(r.uri);const{origin:A,port:c,host:p,username:g,password:S}=i;if(r.auth&&r.token){throw new h("opts.auth cannot be used in combination with opts.token")}else if(r.auth){this[b]["proxy-authorization"]=`Basic ${r.auth}`}else if(r.token){this[b]["proxy-authorization"]=r.token}else if(g&&S){this[b]["proxy-authorization"]=`Basic ${Buffer.from(`${decodeURIComponent(g)}:${decodeURIComponent(S)}`).toString("base64")}`}const R=y({...r.proxyTls});this[v]=y({...r.requestTls});this[B]=s(i,{connect:R});this[I]=new u({...r,connect:async(r,s)=>{let i=r.host;if(!r.port){i+=`:${defaultProtocolPort(r.protocol)}`}try{const{socket:a,statusCode:l}=await this[B].connect({origin:A,port:c,path:i,signal:r.signal,headers:{...this[b],host:p}});if(l!==200){a.on("error",(()=>{})).destroy();s(new C(`Proxy response (${l}) !== 200 when HTTP Tunneling`))}if(r.protocol!=="https:"){s(null,a);return}let d;if(this[Q]){d=this[Q].servername}else{d=r.servername}this[v]({...r,servername:d,httpSocket:a},s)}catch(r){s(r)}}})}dispatch(r,s){const{host:i}=new d(r.origin);const a=buildHeaders(r.headers);throwIfProxyAuthIsSent(a);return this[I].dispatch({...r,headers:{...a,host:i}},s)}async[A](){await this[I].close();await this[B].close()}async[c](){await this[I].destroy();await this[B].destroy()}}function buildHeaders(r){if(Array.isArray(r)){const s={};for(let i=0;ir.toLowerCase()==="proxy-authorization"));if(s){throw new h("Proxy-Authorization should be sent in ProxyAgent constructor")}}r.exports=ProxyAgent},75816:r=>{"use strict";let s=Date.now();let i;const a=[];function onTimeout(){s=Date.now();let r=a.length;let i=0;while(i0&&s>=A.state){A.state=-1;A.callback(A.opaque)}if(A.state===-1){A.state=-2;if(i!==r-1){a[i]=a.pop()}else{a.pop()}r-=1}else{i+=1}}if(a.length>0){refreshTimeout()}}function refreshTimeout(){if(i&&i.refresh){i.refresh()}else{clearTimeout(i);i=setTimeout(onTimeout,1e3);if(i.unref){i.unref()}}}class Timeout{constructor(r,s,i){this.callback=r;this.delay=s;this.opaque=i;this.state=-2;this.refresh()}refresh(){if(this.state===-2){a.push(this);if(!i||a.length===1){refreshTimeout()}}this.state=0}clear(){this.state=-1}}r.exports={setTimeout(r,s,i){return s<1e3?setTimeout(r,s,i):new Timeout(r,s,i)},clearTimeout(r){if(r instanceof Timeout){r.clear()}else{clearTimeout(r)}}}},84864:(r,s,i)=>{"use strict";const a=i(67643);const{uid:A,states:c}=i(529);const{kReadyState:l,kSentClose:d,kByteParser:u,kReceivedClose:p}=i(86799);const{fireEvent:g,failWebsocketConnection:h}=i(55118);const{CloseEvent:C}=i(84408);const{makeRequest:y}=i(55247);const{fetching:I}=i(69538);const{Headers:B}=i(35823);const{getGlobalDispatcher:b}=i(12475);const{kHeadersList:Q}=i(25999);const w={};w.open=a.channel("undici:websocket:open");w.close=a.channel("undici:websocket:close");w.socketError=a.channel("undici:websocket:socket_error");let v;try{v=i(6113)}catch{}function establishWebSocketConnection(r,s,i,a,c){const l=r;l.protocol=r.protocol==="ws:"?"http:":"https:";const d=y({urlList:[l],serviceWorkers:"none",referrer:"no-referrer",mode:"websocket",credentials:"include",cache:"no-store",redirect:"error"});if(c.headers){const r=new B(c.headers)[Q];d.headersList=r}const u=v.randomBytes(16).toString("base64");d.headersList.append("sec-websocket-key",u);d.headersList.append("sec-websocket-version","13");for(const r of s){d.headersList.append("sec-websocket-protocol",r)}const p="";const g=I({request:d,useParallelQueue:true,dispatcher:c.dispatcher??b(),processResponse(r){if(r.type==="error"||r.status!==101){h(i,"Received network error or non-101 status code.");return}if(s.length!==0&&!r.headersList.get("Sec-WebSocket-Protocol")){h(i,"Server did not respond with sent protocols.");return}if(r.headersList.get("Upgrade")?.toLowerCase()!=="websocket"){h(i,'Server did not set Upgrade header to "websocket".');return}if(r.headersList.get("Connection")?.toLowerCase()!=="upgrade"){h(i,'Server did not set Connection header to "upgrade".');return}const c=r.headersList.get("Sec-WebSocket-Accept");const l=v.createHash("sha1").update(u+A).digest("base64");if(c!==l){h(i,"Incorrect hash received in Sec-WebSocket-Accept header.");return}const g=r.headersList.get("Sec-WebSocket-Extensions");if(g!==null&&g!==p){h(i,"Received different permessage-deflate than the one set.");return}const C=r.headersList.get("Sec-WebSocket-Protocol");if(C!==null&&C!==d.headersList.get("Sec-WebSocket-Protocol")){h(i,"Protocol was not set in the opening handshake.");return}r.socket.on("data",onSocketData);r.socket.on("close",onSocketClose);r.socket.on("error",onSocketError);if(w.open.hasSubscribers){w.open.publish({address:r.socket.address(),protocol:C,extensions:g})}a(r)}});return g}function onSocketData(r){if(!this.ws[u].write(r)){this.pause()}}function onSocketClose(){const{ws:r}=this;const s=r[d]&&r[p];let i=1005;let a="";const A=r[u].closingInfo;if(A){i=A.code??1005;a=A.reason}else if(!r[d]){i=1006}r[l]=c.CLOSED;g("close",r,C,{wasClean:s,code:i,reason:a});if(w.close.hasSubscribers){w.close.publish({websocket:r,code:i,reason:a})}}function onSocketError(r){const{ws:s}=this;s[l]=c.CLOSING;if(w.socketError.hasSubscribers){w.socketError.publish(r)}this.destroy()}r.exports={establishWebSocketConnection:establishWebSocketConnection}},529:r=>{"use strict";const s="258EAFA5-E914-47DA-95CA-C5AB0DC85B11";const i={enumerable:true,writable:false,configurable:false};const a={CONNECTING:0,OPEN:1,CLOSING:2,CLOSED:3};const A={CONTINUATION:0,TEXT:1,BINARY:2,CLOSE:8,PING:9,PONG:10};const c=2**16-1;const l={INFO:0,PAYLOADLENGTH_16:2,PAYLOADLENGTH_64:3,READ_DATA:4};const d=Buffer.allocUnsafe(0);r.exports={uid:s,staticPropertyDescriptors:i,states:a,opcodes:A,maxUnsigned16Bit:c,parserStates:l,emptyBuffer:d}},84408:(r,s,i)=>{"use strict";const{webidl:a}=i(81825);const{kEnumerableProperty:A}=i(82423);const{MessagePort:c}=i(71267);class MessageEvent extends Event{#i;constructor(r,s={}){a.argumentLengthCheck(arguments,1,{header:"MessageEvent constructor"});r=a.converters.DOMString(r);s=a.converters.MessageEventInit(s);super(r,s);this.#i=s}get data(){a.brandCheck(this,MessageEvent);return this.#i.data}get origin(){a.brandCheck(this,MessageEvent);return this.#i.origin}get lastEventId(){a.brandCheck(this,MessageEvent);return this.#i.lastEventId}get source(){a.brandCheck(this,MessageEvent);return this.#i.source}get ports(){a.brandCheck(this,MessageEvent);if(!Object.isFrozen(this.#i.ports)){Object.freeze(this.#i.ports)}return this.#i.ports}initMessageEvent(r,s=false,i=false,A=null,c="",l="",d=null,u=[]){a.brandCheck(this,MessageEvent);a.argumentLengthCheck(arguments,1,{header:"MessageEvent.initMessageEvent"});return new MessageEvent(r,{bubbles:s,cancelable:i,data:A,origin:c,lastEventId:l,source:d,ports:u})}}class CloseEvent extends Event{#i;constructor(r,s={}){a.argumentLengthCheck(arguments,1,{header:"CloseEvent constructor"});r=a.converters.DOMString(r);s=a.converters.CloseEventInit(s);super(r,s);this.#i=s}get wasClean(){a.brandCheck(this,CloseEvent);return this.#i.wasClean}get code(){a.brandCheck(this,CloseEvent);return this.#i.code}get reason(){a.brandCheck(this,CloseEvent);return this.#i.reason}}class ErrorEvent extends Event{#i;constructor(r,s){a.argumentLengthCheck(arguments,1,{header:"ErrorEvent constructor"});super(r,s);r=a.converters.DOMString(r);s=a.converters.ErrorEventInit(s??{});this.#i=s}get message(){a.brandCheck(this,ErrorEvent);return this.#i.message}get filename(){a.brandCheck(this,ErrorEvent);return this.#i.filename}get lineno(){a.brandCheck(this,ErrorEvent);return this.#i.lineno}get colno(){a.brandCheck(this,ErrorEvent);return this.#i.colno}get error(){a.brandCheck(this,ErrorEvent);return this.#i.error}}Object.defineProperties(MessageEvent.prototype,{[Symbol.toStringTag]:{value:"MessageEvent",configurable:true},data:A,origin:A,lastEventId:A,source:A,ports:A,initMessageEvent:A});Object.defineProperties(CloseEvent.prototype,{[Symbol.toStringTag]:{value:"CloseEvent",configurable:true},reason:A,code:A,wasClean:A});Object.defineProperties(ErrorEvent.prototype,{[Symbol.toStringTag]:{value:"ErrorEvent",configurable:true},message:A,filename:A,lineno:A,colno:A,error:A});a.converters.MessagePort=a.interfaceConverter(c);a.converters["sequence"]=a.sequenceConverter(a.converters.MessagePort);const l=[{key:"bubbles",converter:a.converters.boolean,defaultValue:false},{key:"cancelable",converter:a.converters.boolean,defaultValue:false},{key:"composed",converter:a.converters.boolean,defaultValue:false}];a.converters.MessageEventInit=a.dictionaryConverter([...l,{key:"data",converter:a.converters.any,defaultValue:null},{key:"origin",converter:a.converters.USVString,defaultValue:""},{key:"lastEventId",converter:a.converters.DOMString,defaultValue:""},{key:"source",converter:a.nullableConverter(a.converters.MessagePort),defaultValue:null},{key:"ports",converter:a.converters["sequence"],get defaultValue(){return[]}}]);a.converters.CloseEventInit=a.dictionaryConverter([...l,{key:"wasClean",converter:a.converters.boolean,defaultValue:false},{key:"code",converter:a.converters["unsigned short"],defaultValue:0},{key:"reason",converter:a.converters.USVString,defaultValue:""}]);a.converters.ErrorEventInit=a.dictionaryConverter([...l,{key:"message",converter:a.converters.DOMString,defaultValue:""},{key:"filename",converter:a.converters.USVString,defaultValue:""},{key:"lineno",converter:a.converters["unsigned long"],defaultValue:0},{key:"colno",converter:a.converters["unsigned long"],defaultValue:0},{key:"error",converter:a.converters.any}]);r.exports={MessageEvent:MessageEvent,CloseEvent:CloseEvent,ErrorEvent:ErrorEvent}},60499:(r,s,i)=>{"use strict";const{maxUnsigned16Bit:a}=i(529);let A;try{A=i(6113)}catch{}class WebsocketFrameSend{constructor(r){this.frameData=r;this.maskKey=A.randomBytes(4)}createFrame(r){const s=this.frameData?.byteLength??0;let i=s;let A=6;if(s>a){A+=8;i=127}else if(s>125){A+=2;i=126}const c=Buffer.allocUnsafe(s+A);c[0]=c[1]=0;c[0]|=128;c[0]=(c[0]&240)+r; +/*! ws. MIT License. Einar Otto Stangvik */c[A-4]=this.maskKey[0];c[A-3]=this.maskKey[1];c[A-2]=this.maskKey[2];c[A-1]=this.maskKey[3];c[1]=i;if(i===126){c.writeUInt16BE(s,2)}else if(i===127){c[2]=c[3]=0;c.writeUIntBE(s,4,6)}c[1]|=128;for(let r=0;r{"use strict";const{Writable:a}=i(12781);const A=i(67643);const{parserStates:c,opcodes:l,states:d,emptyBuffer:u}=i(529);const{kReadyState:p,kSentClose:g,kResponse:h,kReceivedClose:C}=i(86799);const{isValidStatusCode:y,failWebsocketConnection:I,websocketMessageReceived:B}=i(55118);const{WebsocketFrameSend:b}=i(60499);const Q={};Q.ping=A.channel("undici:websocket:ping");Q.pong=A.channel("undici:websocket:pong");class ByteParser extends a{#o=[];#a=0;#A=c.INFO;#c={};#l=[];constructor(r){super();this.ws=r}_write(r,s,i){this.#o.push(r);this.#a+=r.length;this.run(i)}run(r){while(true){if(this.#A===c.INFO){if(this.#a<2){return r()}const s=this.consume(2);this.#c.fin=(s[0]&128)!==0;this.#c.opcode=s[0]&15;this.#c.originalOpcode??=this.#c.opcode;this.#c.fragmented=!this.#c.fin&&this.#c.opcode!==l.CONTINUATION;if(this.#c.fragmented&&this.#c.opcode!==l.BINARY&&this.#c.opcode!==l.TEXT){I(this.ws,"Invalid frame type was fragmented.");return}const i=s[1]&127;if(i<=125){this.#c.payloadLength=i;this.#A=c.READ_DATA}else if(i===126){this.#A=c.PAYLOADLENGTH_16}else if(i===127){this.#A=c.PAYLOADLENGTH_64}if(this.#c.fragmented&&i>125){I(this.ws,"Fragmented frame exceeded 125 bytes.");return}else if((this.#c.opcode===l.PING||this.#c.opcode===l.PONG||this.#c.opcode===l.CLOSE)&&i>125){I(this.ws,"Payload length for control frame exceeded 125 bytes.");return}else if(this.#c.opcode===l.CLOSE){if(i===1){I(this.ws,"Received close frame with a 1-byte body.");return}const r=this.consume(i);this.#c.closeInfo=this.parseCloseBody(false,r);if(!this.ws[g]){const r=Buffer.allocUnsafe(2);r.writeUInt16BE(this.#c.closeInfo.code,0);const s=new b(r);this.ws[h].socket.write(s.createFrame(l.CLOSE),(r=>{if(!r){this.ws[g]=true}}))}this.ws[p]=d.CLOSING;this.ws[C]=true;this.end();return}else if(this.#c.opcode===l.PING){const s=this.consume(i);if(!this.ws[C]){const r=new b(s);this.ws[h].socket.write(r.createFrame(l.PONG));if(Q.ping.hasSubscribers){Q.ping.publish({payload:s})}}this.#A=c.INFO;if(this.#a>0){continue}else{r();return}}else if(this.#c.opcode===l.PONG){const s=this.consume(i);if(Q.pong.hasSubscribers){Q.pong.publish({payload:s})}if(this.#a>0){continue}else{r();return}}}else if(this.#A===c.PAYLOADLENGTH_16){if(this.#a<2){return r()}const s=this.consume(2);this.#c.payloadLength=s.readUInt16BE(0);this.#A=c.READ_DATA}else if(this.#A===c.PAYLOADLENGTH_64){if(this.#a<8){return r()}const s=this.consume(8);const i=s.readUInt32BE(0);if(i>2**31-1){I(this.ws,"Received payload length > 2^31 bytes.");return}const a=s.readUInt32BE(4);this.#c.payloadLength=(i<<8)+a;this.#A=c.READ_DATA}else if(this.#A===c.READ_DATA){if(this.#a=this.#c.payloadLength){const r=this.consume(this.#c.payloadLength);this.#l.push(r);if(!this.#c.fragmented||this.#c.fin&&this.#c.opcode===l.CONTINUATION){const r=Buffer.concat(this.#l);B(this.ws,this.#c.originalOpcode,r);this.#c={};this.#l.length=0}this.#A=c.INFO}}if(this.#a>0){continue}else{r();break}}}consume(r){if(r>this.#a){return null}else if(r===0){return u}if(this.#o[0].length===r){this.#a-=this.#o[0].length;return this.#o.shift()}const s=Buffer.allocUnsafe(r);let i=0;while(i!==r){const a=this.#o[0];const{length:A}=a;if(A+i===r){s.set(this.#o.shift(),i);break}else if(A+i>r){s.set(a.subarray(0,r-i),i);this.#o[0]=a.subarray(r-i);break}else{s.set(this.#o.shift(),i);i+=a.length}}this.#a-=r;return s}parseCloseBody(r,s){let i;if(s.length>=2){i=s.readUInt16BE(0)}if(r){if(!y(i)){return null}return{code:i}}let a=s.subarray(2);if(a[0]===239&&a[1]===187&&a[2]===191){a=a.subarray(3)}if(i!==undefined&&!y(i)){return null}try{a=new TextDecoder("utf-8",{fatal:true}).decode(a)}catch{return null}return{code:i,reason:a}}get closingInfo(){return this.#c.closeInfo}}r.exports={ByteParser:ByteParser}},86799:r=>{"use strict";r.exports={kWebSocketURL:Symbol("url"),kReadyState:Symbol("ready state"),kController:Symbol("controller"),kResponse:Symbol("response"),kBinaryType:Symbol("binary type"),kSentClose:Symbol("sent close"),kReceivedClose:Symbol("received close"),kByteParser:Symbol("byte parser")}},55118:(r,s,i)=>{"use strict";const{kReadyState:a,kController:A,kResponse:c,kBinaryType:l,kWebSocketURL:d}=i(86799);const{states:u,opcodes:p}=i(529);const{MessageEvent:g,ErrorEvent:h}=i(84408);function isEstablished(r){return r[a]===u.OPEN}function isClosing(r){return r[a]===u.CLOSING}function isClosed(r){return r[a]===u.CLOSED}function fireEvent(r,s,i=Event,a){const A=new i(r,a);s.dispatchEvent(A)}function websocketMessageReceived(r,s,i){if(r[a]!==u.OPEN){return}let A;if(s===p.TEXT){try{A=new TextDecoder("utf-8",{fatal:true}).decode(i)}catch{failWebsocketConnection(r,"Received invalid UTF-8 in text frame.");return}}else if(s===p.BINARY){if(r[l]==="blob"){A=new Blob([i])}else{A=new Uint8Array(i).buffer}}fireEvent("message",r,g,{origin:r[d].origin,data:A})}function isValidSubprotocol(r){if(r.length===0){return false}for(const s of r){const r=s.charCodeAt(0);if(r<33||r>126||s==="("||s===")"||s==="<"||s===">"||s==="@"||s===","||s===";"||s===":"||s==="\\"||s==='"'||s==="/"||s==="["||s==="]"||s==="?"||s==="="||s==="{"||s==="}"||r===32||r===9){return false}}return true}function isValidStatusCode(r){if(r>=1e3&&r<1015){return r!==1004&&r!==1005&&r!==1006}return r>=3e3&&r<=4999}function failWebsocketConnection(r,s){const{[A]:i,[c]:a}=r;i.abort();if(a?.socket&&!a.socket.destroyed){a.socket.destroy()}if(s){fireEvent("error",r,h,{error:new Error(s)})}}r.exports={isEstablished:isEstablished,isClosing:isClosing,isClosed:isClosed,fireEvent:fireEvent,isValidSubprotocol:isValidSubprotocol,isValidStatusCode:isValidStatusCode,failWebsocketConnection:failWebsocketConnection,websocketMessageReceived:websocketMessageReceived}},29740:(r,s,i)=>{"use strict";const{webidl:a}=i(81825);const{DOMException:A}=i(90264);const{URLSerializer:c}=i(44864);const{getGlobalOrigin:l}=i(31744);const{staticPropertyDescriptors:d,states:u,opcodes:p,emptyBuffer:g}=i(529);const{kWebSocketURL:h,kReadyState:C,kController:y,kBinaryType:I,kResponse:B,kSentClose:b,kByteParser:Q}=i(86799);const{isEstablished:w,isClosing:v,isValidSubprotocol:S,failWebsocketConnection:R,fireEvent:N}=i(55118);const{establishWebSocketConnection:x}=i(84864);const{WebsocketFrameSend:D}=i(60499);const{ByteParser:k}=i(18096);const{kEnumerableProperty:T,isBlobLike:_}=i(82423);const{getGlobalDispatcher:P}=i(12475);const{types:O}=i(73837);let L=false;class WebSocket extends EventTarget{#d={open:null,error:null,close:null,message:null};#u=0;#p="";#g="";constructor(r,s=[]){super();a.argumentLengthCheck(arguments,1,{header:"WebSocket constructor"});if(!L){L=true;process.emitWarning("WebSockets are experimental, expect them to change at any time.",{code:"UNDICI-WS"})}const i=a.converters["DOMString or sequence or WebSocketInit"](s);r=a.converters.USVString(r);s=i.protocols;const c=l();let d;try{d=new URL(r,c)}catch(r){throw new A(r,"SyntaxError")}if(d.protocol==="http:"){d.protocol="ws:"}else if(d.protocol==="https:"){d.protocol="wss:"}if(d.protocol!=="ws:"&&d.protocol!=="wss:"){throw new A(`Expected a ws: or wss: protocol, got ${d.protocol}`,"SyntaxError")}if(d.hash||d.href.endsWith("#")){throw new A("Got fragment","SyntaxError")}if(typeof s==="string"){s=[s]}if(s.length!==new Set(s.map((r=>r.toLowerCase()))).size){throw new A("Invalid Sec-WebSocket-Protocol value","SyntaxError")}if(s.length>0&&!s.every((r=>S(r)))){throw new A("Invalid Sec-WebSocket-Protocol value","SyntaxError")}this[h]=new URL(d.href);this[y]=x(d,s,this,(r=>this.#h(r)),i);this[C]=WebSocket.CONNECTING;this[I]="blob"}close(r=undefined,s=undefined){a.brandCheck(this,WebSocket);if(r!==undefined){r=a.converters["unsigned short"](r,{clamp:true})}if(s!==undefined){s=a.converters.USVString(s)}if(r!==undefined){if(r!==1e3&&(r<3e3||r>4999)){throw new A("invalid code","InvalidAccessError")}}let i=0;if(s!==undefined){i=Buffer.byteLength(s);if(i>123){throw new A(`Reason must be less than 123 bytes; received ${i}`,"SyntaxError")}}if(this[C]===WebSocket.CLOSING||this[C]===WebSocket.CLOSED){}else if(!w(this)){R(this,"Connection was closed before it was established.");this[C]=WebSocket.CLOSING}else if(!v(this)){const a=new D;if(r!==undefined&&s===undefined){a.frameData=Buffer.allocUnsafe(2);a.frameData.writeUInt16BE(r,0)}else if(r!==undefined&&s!==undefined){a.frameData=Buffer.allocUnsafe(2+i);a.frameData.writeUInt16BE(r,0);a.frameData.write(s,2,"utf-8")}else{a.frameData=g}const A=this[B].socket;A.write(a.createFrame(p.CLOSE),(r=>{if(!r){this[b]=true}}));this[C]=u.CLOSING}else{this[C]=WebSocket.CLOSING}}send(r){a.brandCheck(this,WebSocket);a.argumentLengthCheck(arguments,1,{header:"WebSocket.send"});r=a.converters.WebSocketSendData(r);if(this[C]===WebSocket.CONNECTING){throw new A("Sent before connected.","InvalidStateError")}if(!w(this)||v(this)){return}const s=this[B].socket;if(typeof r==="string"){const i=Buffer.from(r);const a=new D(i);const A=a.createFrame(p.TEXT);this.#u+=i.byteLength;s.write(A,(()=>{this.#u-=i.byteLength}))}else if(O.isArrayBuffer(r)){const i=Buffer.from(r);const a=new D(i);const A=a.createFrame(p.BINARY);this.#u+=i.byteLength;s.write(A,(()=>{this.#u-=i.byteLength}))}else if(ArrayBuffer.isView(r)){const i=Buffer.from(r,r.byteOffset,r.byteLength);const a=new D(i);const A=a.createFrame(p.BINARY);this.#u+=i.byteLength;s.write(A,(()=>{this.#u-=i.byteLength}))}else if(_(r)){const i=new D;r.arrayBuffer().then((r=>{const a=Buffer.from(r);i.frameData=a;const A=i.createFrame(p.BINARY);this.#u+=a.byteLength;s.write(A,(()=>{this.#u-=a.byteLength}))}))}}get readyState(){a.brandCheck(this,WebSocket);return this[C]}get bufferedAmount(){a.brandCheck(this,WebSocket);return this.#u}get url(){a.brandCheck(this,WebSocket);return c(this[h])}get extensions(){a.brandCheck(this,WebSocket);return this.#g}get protocol(){a.brandCheck(this,WebSocket);return this.#p}get onopen(){a.brandCheck(this,WebSocket);return this.#d.open}set onopen(r){a.brandCheck(this,WebSocket);if(this.#d.open){this.removeEventListener("open",this.#d.open)}if(typeof r==="function"){this.#d.open=r;this.addEventListener("open",r)}else{this.#d.open=null}}get onerror(){a.brandCheck(this,WebSocket);return this.#d.error}set onerror(r){a.brandCheck(this,WebSocket);if(this.#d.error){this.removeEventListener("error",this.#d.error)}if(typeof r==="function"){this.#d.error=r;this.addEventListener("error",r)}else{this.#d.error=null}}get onclose(){a.brandCheck(this,WebSocket);return this.#d.close}set onclose(r){a.brandCheck(this,WebSocket);if(this.#d.close){this.removeEventListener("close",this.#d.close)}if(typeof r==="function"){this.#d.close=r;this.addEventListener("close",r)}else{this.#d.close=null}}get onmessage(){a.brandCheck(this,WebSocket);return this.#d.message}set onmessage(r){a.brandCheck(this,WebSocket);if(this.#d.message){this.removeEventListener("message",this.#d.message)}if(typeof r==="function"){this.#d.message=r;this.addEventListener("message",r)}else{this.#d.message=null}}get binaryType(){a.brandCheck(this,WebSocket);return this[I]}set binaryType(r){a.brandCheck(this,WebSocket);if(r!=="blob"&&r!=="arraybuffer"){this[I]="blob"}else{this[I]=r}}#h(r){this[B]=r;const s=new k(this);s.on("drain",(function onParserDrain(){this.ws[B].socket.resume()}));r.socket.ws=this;this[Q]=s;this[C]=u.OPEN;const i=r.headersList.get("sec-websocket-extensions");if(i!==null){this.#g=i}const a=r.headersList.get("sec-websocket-protocol");if(a!==null){this.#p=a}N("open",this)}}WebSocket.CONNECTING=WebSocket.prototype.CONNECTING=u.CONNECTING;WebSocket.OPEN=WebSocket.prototype.OPEN=u.OPEN;WebSocket.CLOSING=WebSocket.prototype.CLOSING=u.CLOSING;WebSocket.CLOSED=WebSocket.prototype.CLOSED=u.CLOSED;Object.defineProperties(WebSocket.prototype,{CONNECTING:d,OPEN:d,CLOSING:d,CLOSED:d,url:T,readyState:T,bufferedAmount:T,onopen:T,onerror:T,onclose:T,close:T,onmessage:T,binaryType:T,send:T,extensions:T,protocol:T,[Symbol.toStringTag]:{value:"WebSocket",writable:false,enumerable:false,configurable:true}});Object.defineProperties(WebSocket,{CONNECTING:d,OPEN:d,CLOSING:d,CLOSED:d});a.converters["sequence"]=a.sequenceConverter(a.converters.DOMString);a.converters["DOMString or sequence"]=function(r){if(a.util.Type(r)==="Object"&&Symbol.iterator in r){return a.converters["sequence"](r)}return a.converters.DOMString(r)};a.converters.WebSocketInit=a.dictionaryConverter([{key:"protocols",converter:a.converters["DOMString or sequence"],get defaultValue(){return[]}},{key:"dispatcher",converter:r=>r,get defaultValue(){return P()}},{key:"headers",converter:a.nullableConverter(a.converters.HeadersInit)}]);a.converters["DOMString or sequence or WebSocketInit"]=function(r){if(a.util.Type(r)==="Object"&&!(Symbol.iterator in r)){return a.converters.WebSocketInit(r)}return{protocols:a.converters["DOMString or sequence"](r)}};a.converters.WebSocketSendData=function(r){if(a.util.Type(r)==="Object"){if(_(r)){return a.converters.Blob(r,{strict:false})}if(ArrayBuffer.isView(r)||O.isAnyArrayBuffer(r)){return a.converters.BufferSource(r)}}return a.converters.USVString(r)};r.exports={WebSocket:WebSocket}},36837:r=>{"use strict";var s=Object.defineProperty;var i=Object.getOwnPropertyDescriptor;var a=Object.getOwnPropertyNames;var A=Object.prototype.hasOwnProperty;var __export=(r,i)=>{for(var a in i)s(r,a,{get:i[a],enumerable:true})};var __copyProps=(r,c,l,d)=>{if(c&&typeof c==="object"||typeof c==="function"){for(let u of a(c))if(!A.call(r,u)&&u!==l)s(r,u,{get:()=>c[u],enumerable:!(d=i(c,u))||d.enumerable})}return r};var __toCommonJS=r=>__copyProps(s({},"__esModule",{value:true}),r);var c={};__export(c,{createTokenAuth:()=>p});r.exports=__toCommonJS(c);var l=/^v1\./;var d=/^ghs_/;var u=/^ghu_/;async function auth(r){const s=r.split(/\./).length===3;const i=l.test(r)||d.test(r);const a=u.test(r);const A=s?"app":i?"installation":a?"user-to-server":"oauth";return{type:"token",token:r,tokenType:A}}function withAuthorizationPrefix(r){if(r.split(/\./).length===3){return`bearer ${r}`}return`token ${r}`}async function hook(r,s,i,a){const A=s.endpoint.merge(i,a);A.headers.authorization=withAuthorizationPrefix(r);return s(A)}var p=function createTokenAuth2(r){if(!r){throw new Error("[@octokit/auth-token] No token passed to createTokenAuth")}if(typeof r!=="string"){throw new Error("[@octokit/auth-token] Token passed to createTokenAuth is not a string")}r=r.replace(/^(token|bearer) +/i,"");return Object.assign(auth.bind(null,r),{hook:hook.bind(null,r)})};0&&0},17559:(r,s,i)=>{"use strict";var a=Object.defineProperty;var A=Object.getOwnPropertyDescriptor;var c=Object.getOwnPropertyNames;var l=Object.prototype.hasOwnProperty;var __export=(r,s)=>{for(var i in s)a(r,i,{get:s[i],enumerable:true})};var __copyProps=(r,s,i,d)=>{if(s&&typeof s==="object"||typeof s==="function"){for(let u of c(s))if(!l.call(r,u)&&u!==i)a(r,u,{get:()=>s[u],enumerable:!(d=A(s,u))||d.enumerable})}return r};var __toCommonJS=r=>__copyProps(a({},"__esModule",{value:true}),r);var d={};__export(d,{Octokit:()=>Q});r.exports=__toCommonJS(d);var u=i(45030);var p=i(83682);var g=i(8317);var h=i(83069);var C=i(36837);var y="5.1.0";var noop=()=>{};var I=console.warn.bind(console);var B=console.error.bind(console);var b=`octokit-core.js/${y} ${(0,u.getUserAgent)()}`;var Q=class{static{this.VERSION=y}static defaults(r){const s=class extends(this){constructor(...s){const i=s[0]||{};if(typeof r==="function"){super(r(i));return}super(Object.assign({},r,i,i.userAgent&&r.userAgent?{userAgent:`${i.userAgent} ${r.userAgent}`}:null))}};return s}static{this.plugins=[]}static plugin(...r){const s=this.plugins;const i=class extends(this){static{this.plugins=s.concat(r.filter((r=>!s.includes(r))))}};return i}constructor(r={}){const s=new p.Collection;const i={baseUrl:g.request.endpoint.DEFAULTS.baseUrl,headers:{},request:Object.assign({},r.request,{hook:s.bind(null,"request")}),mediaType:{previews:[],format:""}};i.headers["user-agent"]=r.userAgent?`${r.userAgent} ${b}`:b;if(r.baseUrl){i.baseUrl=r.baseUrl}if(r.previews){i.mediaType.previews=r.previews}if(r.timeZone){i.headers["time-zone"]=r.timeZone}this.request=g.request.defaults(i);this.graphql=(0,h.withCustomRequest)(this.request).defaults(i);this.log=Object.assign({debug:noop,info:noop,warn:I,error:B},r.log);this.hook=s;if(!r.authStrategy){if(!r.auth){this.auth=async()=>({type:"unauthenticated"})}else{const i=(0,C.createTokenAuth)(r.auth);s.wrap("request",i.hook);this.auth=i}}else{const{authStrategy:i,...a}=r;const A=i(Object.assign({request:this.request,log:this.log,octokit:this,octokitOptions:a},r.auth));s.wrap("request",A.hook);this.auth=A}const a=this.constructor;for(let s=0;s{"use strict";var a=Object.defineProperty;var A=Object.getOwnPropertyDescriptor;var c=Object.getOwnPropertyNames;var l=Object.prototype.hasOwnProperty;var __export=(r,s)=>{for(var i in s)a(r,i,{get:s[i],enumerable:true})};var __copyProps=(r,s,i,d)=>{if(s&&typeof s==="object"||typeof s==="function"){for(let u of c(s))if(!l.call(r,u)&&u!==i)a(r,u,{get:()=>s[u],enumerable:!(d=A(s,u))||d.enumerable})}return r};var __toCommonJS=r=>__copyProps(a({},"__esModule",{value:true}),r);var d={};__export(d,{endpoint:()=>I});r.exports=__toCommonJS(d);var u=i(45030);var p="9.0.1";var g=`octokit-endpoint.js/${p} ${(0,u.getUserAgent)()}`;var h={method:"GET",baseUrl:"https://api.github.com",headers:{accept:"application/vnd.github.v3+json","user-agent":g},mediaType:{format:""}};function lowercaseKeys(r){if(!r){return{}}return Object.keys(r).reduce(((s,i)=>{s[i.toLowerCase()]=r[i];return s}),{})}var C=i(63287);function mergeDeep(r,s){const i=Object.assign({},r);Object.keys(s).forEach((a=>{if((0,C.isPlainObject)(s[a])){if(!(a in r))Object.assign(i,{[a]:s[a]});else i[a]=mergeDeep(r[a],s[a])}else{Object.assign(i,{[a]:s[a]})}}));return i}function removeUndefinedProperties(r){for(const s in r){if(r[s]===void 0){delete r[s]}}return r}function merge(r,s,i){if(typeof s==="string"){let[r,a]=s.split(" ");i=Object.assign(a?{method:r,url:a}:{url:r},i)}else{i=Object.assign({},s)}i.headers=lowercaseKeys(i.headers);removeUndefinedProperties(i);removeUndefinedProperties(i.headers);const a=mergeDeep(r||{},i);if(i.url==="/graphql"){if(r&&r.mediaType.previews?.length){a.mediaType.previews=r.mediaType.previews.filter((r=>!a.mediaType.previews.includes(r))).concat(a.mediaType.previews)}a.mediaType.previews=(a.mediaType.previews||[]).map((r=>r.replace(/-preview/,"")))}return a}function addQueryParameters(r,s){const i=/\?/.test(r)?"&":"?";const a=Object.keys(s);if(a.length===0){return r}return r+i+a.map((r=>{if(r==="q"){return"q="+s.q.split("+").map(encodeURIComponent).join("+")}return`${r}=${encodeURIComponent(s[r])}`})).join("&")}var y=/\{[^}]+\}/g;function removeNonChars(r){return r.replace(/^\W+|\W+$/g,"").split(/,/)}function extractUrlVariableNames(r){const s=r.match(y);if(!s){return[]}return s.map(removeNonChars).reduce(((r,s)=>r.concat(s)),[])}function omit(r,s){return Object.keys(r).filter((r=>!s.includes(r))).reduce(((s,i)=>{s[i]=r[i];return s}),{})}function encodeReserved(r){return r.split(/(%[0-9A-Fa-f]{2})/g).map((function(r){if(!/%[0-9A-Fa-f]/.test(r)){r=encodeURI(r).replace(/%5B/g,"[").replace(/%5D/g,"]")}return r})).join("")}function encodeUnreserved(r){return encodeURIComponent(r).replace(/[!'()*]/g,(function(r){return"%"+r.charCodeAt(0).toString(16).toUpperCase()}))}function encodeValue(r,s,i){s=r==="+"||r==="#"?encodeReserved(s):encodeUnreserved(s);if(i){return encodeUnreserved(i)+"="+s}else{return s}}function isDefined(r){return r!==void 0&&r!==null}function isKeyOperator(r){return r===";"||r==="&"||r==="?"}function getValues(r,s,i,a){var A=r[i],c=[];if(isDefined(A)&&A!==""){if(typeof A==="string"||typeof A==="number"||typeof A==="boolean"){A=A.toString();if(a&&a!=="*"){A=A.substring(0,parseInt(a,10))}c.push(encodeValue(s,A,isKeyOperator(s)?i:""))}else{if(a==="*"){if(Array.isArray(A)){A.filter(isDefined).forEach((function(r){c.push(encodeValue(s,r,isKeyOperator(s)?i:""))}))}else{Object.keys(A).forEach((function(r){if(isDefined(A[r])){c.push(encodeValue(s,A[r],r))}}))}}else{const r=[];if(Array.isArray(A)){A.filter(isDefined).forEach((function(i){r.push(encodeValue(s,i))}))}else{Object.keys(A).forEach((function(i){if(isDefined(A[i])){r.push(encodeUnreserved(i));r.push(encodeValue(s,A[i].toString()))}}))}if(isKeyOperator(s)){c.push(encodeUnreserved(i)+"="+r.join(","))}else if(r.length!==0){c.push(r.join(","))}}}}else{if(s===";"){if(isDefined(A)){c.push(encodeUnreserved(i))}}else if(A===""&&(s==="&"||s==="?")){c.push(encodeUnreserved(i)+"=")}else if(A===""){c.push("")}}return c}function parseUrl(r){return{expand:expand.bind(null,r)}}function expand(r,s){var i=["+","#",".","/",";","?","&"];return r.replace(/\{([^\{\}]+)\}|([^\{\}]+)/g,(function(r,a,A){if(a){let r="";const A=[];if(i.indexOf(a.charAt(0))!==-1){r=a.charAt(0);a=a.substr(1)}a.split(/,/g).forEach((function(i){var a=/([^:\*]*)(?::(\d+)|(\*))?/.exec(i);A.push(getValues(s,r,a[1],a[2]||a[3]))}));if(r&&r!=="+"){var c=",";if(r==="?"){c="&"}else if(r!=="#"){c=r}return(A.length!==0?r:"")+A.join(c)}else{return A.join(",")}}else{return encodeReserved(A)}}))}function parse(r){let s=r.method.toUpperCase();let i=(r.url||"/").replace(/:([a-z]\w+)/g,"{$1}");let a=Object.assign({},r.headers);let A;let c=omit(r,["method","baseUrl","url","headers","request","mediaType"]);const l=extractUrlVariableNames(i);i=parseUrl(i).expand(c);if(!/^http/.test(i)){i=r.baseUrl+i}const d=Object.keys(r).filter((r=>l.includes(r))).concat("baseUrl");const u=omit(c,d);const p=/application\/octet-stream/i.test(a.accept);if(!p){if(r.mediaType.format){a.accept=a.accept.split(/,/).map((s=>s.replace(/application\/vnd(\.\w+)(\.v3)?(\.\w+)?(\+json)?$/,`application/vnd$1$2.${r.mediaType.format}`))).join(",")}if(i.endsWith("/graphql")){if(r.mediaType.previews?.length){const s=a.accept.match(/[\w-]+(?=-preview)/g)||[];a.accept=s.concat(r.mediaType.previews).map((s=>{const i=r.mediaType.format?`.${r.mediaType.format}`:"+json";return`application/vnd.github.${s}-preview${i}`})).join(",")}}}if(["GET","HEAD"].includes(s)){i=addQueryParameters(i,u)}else{if("data"in u){A=u.data}else{if(Object.keys(u).length){A=u}}}if(!a["content-type"]&&typeof A!=="undefined"){a["content-type"]="application/json; charset=utf-8"}if(["PATCH","PUT"].includes(s)&&typeof A==="undefined"){A=""}return Object.assign({method:s,url:i,headers:a},typeof A!=="undefined"?{body:A}:null,r.request?{request:r.request}:null)}function endpointWithDefaults(r,s,i){return parse(merge(r,s,i))}function withDefaults(r,s){const i=merge(r,s);const a=endpointWithDefaults.bind(null,i);return Object.assign(a,{DEFAULTS:i,defaults:withDefaults.bind(null,i),merge:merge.bind(null,i),parse:parse})}var I=withDefaults(null,h);0&&0},83069:(r,s,i)=>{"use strict";var a=Object.defineProperty;var A=Object.getOwnPropertyDescriptor;var c=Object.getOwnPropertyNames;var l=Object.prototype.hasOwnProperty;var __export=(r,s)=>{for(var i in s)a(r,i,{get:s[i],enumerable:true})};var __copyProps=(r,s,i,d)=>{if(s&&typeof s==="object"||typeof s==="function"){for(let u of c(s))if(!l.call(r,u)&&u!==i)a(r,u,{get:()=>s[u],enumerable:!(d=A(s,u))||d.enumerable})}return r};var __toCommonJS=r=>__copyProps(a({},"__esModule",{value:true}),r);var d={};__export(d,{GraphqlResponseError:()=>y,graphql:()=>Q,withCustomRequest:()=>withCustomRequest});r.exports=__toCommonJS(d);var u=i(8317);var p=i(45030);var g="7.0.2";var h=i(8317);var C=i(8317);function _buildMessageForResponseErrors(r){return`Request failed due to following response errors:\n`+r.errors.map((r=>` - ${r.message}`)).join("\n")}var y=class extends Error{constructor(r,s,i){super(_buildMessageForResponseErrors(i));this.request=r;this.headers=s;this.response=i;this.name="GraphqlResponseError";this.errors=i.errors;this.data=i.data;if(Error.captureStackTrace){Error.captureStackTrace(this,this.constructor)}}};var I=["method","baseUrl","url","headers","request","query","mediaType"];var B=["query","method","url"];var b=/\/api\/v3\/?$/;function graphql(r,s,i){if(i){if(typeof s==="string"&&"query"in i){return Promise.reject(new Error(`[@octokit/graphql] "query" cannot be used as variable name`))}for(const r in i){if(!B.includes(r))continue;return Promise.reject(new Error(`[@octokit/graphql] "${r}" cannot be used as variable name`))}}const a=typeof s==="string"?Object.assign({query:s},i):s;const A=Object.keys(a).reduce(((r,s)=>{if(I.includes(s)){r[s]=a[s];return r}if(!r.variables){r.variables={}}r.variables[s]=a[s];return r}),{});const c=a.baseUrl||r.endpoint.DEFAULTS.baseUrl;if(b.test(c)){A.url=c.replace(b,"/api/graphql")}return r(A).then((r=>{if(r.data.errors){const s={};for(const i of Object.keys(r.headers)){s[i]=r.headers[i]}throw new y(A,s,r.data)}return r.data.data}))}function withDefaults(r,s){const i=r.defaults(s);const newApi=(r,s)=>graphql(i,r,s);return Object.assign(newApi,{defaults:withDefaults.bind(null,i),endpoint:i.endpoint})}var Q=withDefaults(u.request,{headers:{"user-agent":`octokit-graphql.js/${g} ${(0,p.getUserAgent)()}`},method:"POST",url:"/graphql"});function withCustomRequest(r){return withDefaults(r,{method:"POST",url:"/graphql"})}0&&0},46363:r=>{"use strict";var s=Object.defineProperty;var i=Object.getOwnPropertyDescriptor;var a=Object.getOwnPropertyNames;var A=Object.prototype.hasOwnProperty;var __export=(r,i)=>{for(var a in i)s(r,a,{get:i[a],enumerable:true})};var __copyProps=(r,c,l,d)=>{if(c&&typeof c==="object"||typeof c==="function"){for(let u of a(c))if(!A.call(r,u)&&u!==l)s(r,u,{get:()=>c[u],enumerable:!(d=i(c,u))||d.enumerable})}return r};var __toCommonJS=r=>__copyProps(s({},"__esModule",{value:true}),r);var c={};__export(c,{composePaginateRest:()=>d,isPaginatingEndpoint:()=>isPaginatingEndpoint,paginateRest:()=>paginateRest,paginatingEndpoints:()=>u});r.exports=__toCommonJS(c);var l="9.2.2";function normalizePaginatedListResponse(r){if(!r.data){return{...r,data:[]}}const s="total_count"in r.data&&!("url"in r.data);if(!s)return r;const i=r.data.incomplete_results;const a=r.data.repository_selection;const A=r.data.total_count;delete r.data.incomplete_results;delete r.data.repository_selection;delete r.data.total_count;const c=Object.keys(r.data)[0];const l=r.data[c];r.data=l;if(typeof i!=="undefined"){r.data.incomplete_results=i}if(typeof a!=="undefined"){r.data.repository_selection=a}r.data.total_count=A;return r}function iterator(r,s,i){const a=typeof s==="function"?s.endpoint(i):r.request.endpoint(s,i);const A=typeof s==="function"?s:r.request;const c=a.method;const l=a.headers;let d=a.url;return{[Symbol.asyncIterator]:()=>({async next(){if(!d)return{done:true};try{const r=await A({method:c,url:d,headers:l});const s=normalizePaginatedListResponse(r);d=((s.headers.link||"").match(/<([^<>]+)>;\s*rel="next"/)||[])[1];return{value:s}}catch(r){if(r.status!==409)throw r;d="";return{value:{status:200,headers:{},data:[]}}}}})}}function paginate(r,s,i,a){if(typeof i==="function"){a=i;i=void 0}return gather(r,[],iterator(r,s,i)[Symbol.asyncIterator](),a)}function gather(r,s,i,a){return i.next().then((A=>{if(A.done){return s}let c=false;function done(){c=true}s=s.concat(a?a(A.value,done):A.value.data);if(c){return s}return gather(r,s,i,a)}))}var d=Object.assign(paginate,{iterator:iterator});var u=["GET /advisories","GET /app/hook/deliveries","GET /app/installation-requests","GET /app/installations","GET /assignments/{assignment_id}/accepted_assignments","GET /classrooms","GET /classrooms/{classroom_id}/assignments","GET /enterprises/{enterprise}/dependabot/alerts","GET /enterprises/{enterprise}/secret-scanning/alerts","GET /events","GET /gists","GET /gists/public","GET /gists/starred","GET /gists/{gist_id}/comments","GET /gists/{gist_id}/commits","GET /gists/{gist_id}/forks","GET /installation/repositories","GET /issues","GET /licenses","GET /marketplace_listing/plans","GET /marketplace_listing/plans/{plan_id}/accounts","GET /marketplace_listing/stubbed/plans","GET /marketplace_listing/stubbed/plans/{plan_id}/accounts","GET /networks/{owner}/{repo}/events","GET /notifications","GET /organizations","GET /orgs/{org}/actions/cache/usage-by-repository","GET /orgs/{org}/actions/permissions/repositories","GET /orgs/{org}/actions/runners","GET /orgs/{org}/actions/secrets","GET /orgs/{org}/actions/secrets/{secret_name}/repositories","GET /orgs/{org}/actions/variables","GET /orgs/{org}/actions/variables/{name}/repositories","GET /orgs/{org}/blocks","GET /orgs/{org}/code-scanning/alerts","GET /orgs/{org}/codespaces","GET /orgs/{org}/codespaces/secrets","GET /orgs/{org}/codespaces/secrets/{secret_name}/repositories","GET /orgs/{org}/copilot/billing/seats","GET /orgs/{org}/dependabot/alerts","GET /orgs/{org}/dependabot/secrets","GET /orgs/{org}/dependabot/secrets/{secret_name}/repositories","GET /orgs/{org}/events","GET /orgs/{org}/failed_invitations","GET /orgs/{org}/hooks","GET /orgs/{org}/hooks/{hook_id}/deliveries","GET /orgs/{org}/installations","GET /orgs/{org}/invitations","GET /orgs/{org}/invitations/{invitation_id}/teams","GET /orgs/{org}/issues","GET /orgs/{org}/members","GET /orgs/{org}/members/{username}/codespaces","GET /orgs/{org}/migrations","GET /orgs/{org}/migrations/{migration_id}/repositories","GET /orgs/{org}/organization-roles/{role_id}/teams","GET /orgs/{org}/organization-roles/{role_id}/users","GET /orgs/{org}/outside_collaborators","GET /orgs/{org}/packages","GET /orgs/{org}/packages/{package_type}/{package_name}/versions","GET /orgs/{org}/personal-access-token-requests","GET /orgs/{org}/personal-access-token-requests/{pat_request_id}/repositories","GET /orgs/{org}/personal-access-tokens","GET /orgs/{org}/personal-access-tokens/{pat_id}/repositories","GET /orgs/{org}/projects","GET /orgs/{org}/properties/values","GET /orgs/{org}/public_members","GET /orgs/{org}/repos","GET /orgs/{org}/rulesets","GET /orgs/{org}/rulesets/rule-suites","GET /orgs/{org}/secret-scanning/alerts","GET /orgs/{org}/security-advisories","GET /orgs/{org}/teams","GET /orgs/{org}/teams/{team_slug}/discussions","GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments","GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions","GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions","GET /orgs/{org}/teams/{team_slug}/invitations","GET /orgs/{org}/teams/{team_slug}/members","GET /orgs/{org}/teams/{team_slug}/projects","GET /orgs/{org}/teams/{team_slug}/repos","GET /orgs/{org}/teams/{team_slug}/teams","GET /projects/columns/{column_id}/cards","GET /projects/{project_id}/collaborators","GET /projects/{project_id}/columns","GET /repos/{owner}/{repo}/actions/artifacts","GET /repos/{owner}/{repo}/actions/caches","GET /repos/{owner}/{repo}/actions/organization-secrets","GET /repos/{owner}/{repo}/actions/organization-variables","GET /repos/{owner}/{repo}/actions/runners","GET /repos/{owner}/{repo}/actions/runs","GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts","GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}/jobs","GET /repos/{owner}/{repo}/actions/runs/{run_id}/jobs","GET /repos/{owner}/{repo}/actions/secrets","GET /repos/{owner}/{repo}/actions/variables","GET /repos/{owner}/{repo}/actions/workflows","GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/runs","GET /repos/{owner}/{repo}/activity","GET /repos/{owner}/{repo}/assignees","GET /repos/{owner}/{repo}/branches","GET /repos/{owner}/{repo}/check-runs/{check_run_id}/annotations","GET /repos/{owner}/{repo}/check-suites/{check_suite_id}/check-runs","GET /repos/{owner}/{repo}/code-scanning/alerts","GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/instances","GET /repos/{owner}/{repo}/code-scanning/analyses","GET /repos/{owner}/{repo}/codespaces","GET /repos/{owner}/{repo}/codespaces/devcontainers","GET /repos/{owner}/{repo}/codespaces/secrets","GET /repos/{owner}/{repo}/collaborators","GET /repos/{owner}/{repo}/comments","GET /repos/{owner}/{repo}/comments/{comment_id}/reactions","GET /repos/{owner}/{repo}/commits","GET /repos/{owner}/{repo}/commits/{commit_sha}/comments","GET /repos/{owner}/{repo}/commits/{commit_sha}/pulls","GET /repos/{owner}/{repo}/commits/{ref}/check-runs","GET /repos/{owner}/{repo}/commits/{ref}/check-suites","GET /repos/{owner}/{repo}/commits/{ref}/status","GET /repos/{owner}/{repo}/commits/{ref}/statuses","GET /repos/{owner}/{repo}/contributors","GET /repos/{owner}/{repo}/dependabot/alerts","GET /repos/{owner}/{repo}/dependabot/secrets","GET /repos/{owner}/{repo}/deployments","GET /repos/{owner}/{repo}/deployments/{deployment_id}/statuses","GET /repos/{owner}/{repo}/environments","GET /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies","GET /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/apps","GET /repos/{owner}/{repo}/events","GET /repos/{owner}/{repo}/forks","GET /repos/{owner}/{repo}/hooks","GET /repos/{owner}/{repo}/hooks/{hook_id}/deliveries","GET /repos/{owner}/{repo}/invitations","GET /repos/{owner}/{repo}/issues","GET /repos/{owner}/{repo}/issues/comments","GET /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions","GET /repos/{owner}/{repo}/issues/events","GET /repos/{owner}/{repo}/issues/{issue_number}/comments","GET /repos/{owner}/{repo}/issues/{issue_number}/events","GET /repos/{owner}/{repo}/issues/{issue_number}/labels","GET /repos/{owner}/{repo}/issues/{issue_number}/reactions","GET /repos/{owner}/{repo}/issues/{issue_number}/timeline","GET /repos/{owner}/{repo}/keys","GET /repos/{owner}/{repo}/labels","GET /repos/{owner}/{repo}/milestones","GET /repos/{owner}/{repo}/milestones/{milestone_number}/labels","GET /repos/{owner}/{repo}/notifications","GET /repos/{owner}/{repo}/pages/builds","GET /repos/{owner}/{repo}/projects","GET /repos/{owner}/{repo}/pulls","GET /repos/{owner}/{repo}/pulls/comments","GET /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions","GET /repos/{owner}/{repo}/pulls/{pull_number}/comments","GET /repos/{owner}/{repo}/pulls/{pull_number}/commits","GET /repos/{owner}/{repo}/pulls/{pull_number}/files","GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews","GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/comments","GET /repos/{owner}/{repo}/releases","GET /repos/{owner}/{repo}/releases/{release_id}/assets","GET /repos/{owner}/{repo}/releases/{release_id}/reactions","GET /repos/{owner}/{repo}/rules/branches/{branch}","GET /repos/{owner}/{repo}/rulesets","GET /repos/{owner}/{repo}/rulesets/rule-suites","GET /repos/{owner}/{repo}/secret-scanning/alerts","GET /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}/locations","GET /repos/{owner}/{repo}/security-advisories","GET /repos/{owner}/{repo}/stargazers","GET /repos/{owner}/{repo}/subscribers","GET /repos/{owner}/{repo}/tags","GET /repos/{owner}/{repo}/teams","GET /repos/{owner}/{repo}/topics","GET /repositories","GET /repositories/{repository_id}/environments/{environment_name}/secrets","GET /repositories/{repository_id}/environments/{environment_name}/variables","GET /search/code","GET /search/commits","GET /search/issues","GET /search/labels","GET /search/repositories","GET /search/topics","GET /search/users","GET /teams/{team_id}/discussions","GET /teams/{team_id}/discussions/{discussion_number}/comments","GET /teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}/reactions","GET /teams/{team_id}/discussions/{discussion_number}/reactions","GET /teams/{team_id}/invitations","GET /teams/{team_id}/members","GET /teams/{team_id}/projects","GET /teams/{team_id}/repos","GET /teams/{team_id}/teams","GET /user/blocks","GET /user/codespaces","GET /user/codespaces/secrets","GET /user/emails","GET /user/followers","GET /user/following","GET /user/gpg_keys","GET /user/installations","GET /user/installations/{installation_id}/repositories","GET /user/issues","GET /user/keys","GET /user/marketplace_purchases","GET /user/marketplace_purchases/stubbed","GET /user/memberships/orgs","GET /user/migrations","GET /user/migrations/{migration_id}/repositories","GET /user/orgs","GET /user/packages","GET /user/packages/{package_type}/{package_name}/versions","GET /user/public_emails","GET /user/repos","GET /user/repository_invitations","GET /user/social_accounts","GET /user/ssh_signing_keys","GET /user/starred","GET /user/subscriptions","GET /user/teams","GET /users","GET /users/{username}/events","GET /users/{username}/events/orgs/{org}","GET /users/{username}/events/public","GET /users/{username}/followers","GET /users/{username}/following","GET /users/{username}/gists","GET /users/{username}/gpg_keys","GET /users/{username}/keys","GET /users/{username}/orgs","GET /users/{username}/packages","GET /users/{username}/projects","GET /users/{username}/received_events","GET /users/{username}/received_events/public","GET /users/{username}/repos","GET /users/{username}/social_accounts","GET /users/{username}/ssh_signing_keys","GET /users/{username}/starred","GET /users/{username}/subscriptions"];function isPaginatingEndpoint(r){if(typeof r==="string"){return u.includes(r)}else{return false}}function paginateRest(r){return{paginate:Object.assign(paginate.bind(null,r),{iterator:iterator.bind(null,r)})}}paginateRest.VERSION=l;0&&0},1215:r=>{"use strict";var s=Object.defineProperty;var i=Object.getOwnPropertyDescriptor;var a=Object.getOwnPropertyNames;var A=Object.prototype.hasOwnProperty;var __export=(r,i)=>{for(var a in i)s(r,a,{get:i[a],enumerable:true})};var __copyProps=(r,c,l,d)=>{if(c&&typeof c==="object"||typeof c==="function"){for(let u of a(c))if(!A.call(r,u)&&u!==l)s(r,u,{get:()=>c[u],enumerable:!(d=i(c,u))||d.enumerable})}return r};var __toCommonJS=r=>__copyProps(s({},"__esModule",{value:true}),r);var c={};__export(c,{legacyRestEndpointMethods:()=>legacyRestEndpointMethods,restEndpointMethods:()=>restEndpointMethods});r.exports=__toCommonJS(c);var l="10.4.0";var d={actions:{addCustomLabelsToSelfHostedRunnerForOrg:["POST /orgs/{org}/actions/runners/{runner_id}/labels"],addCustomLabelsToSelfHostedRunnerForRepo:["POST /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"],addSelectedRepoToOrgSecret:["PUT /orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}"],addSelectedRepoToOrgVariable:["PUT /orgs/{org}/actions/variables/{name}/repositories/{repository_id}"],approveWorkflowRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/approve"],cancelWorkflowRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/cancel"],createEnvironmentVariable:["POST /repositories/{repository_id}/environments/{environment_name}/variables"],createOrUpdateEnvironmentSecret:["PUT /repositories/{repository_id}/environments/{environment_name}/secrets/{secret_name}"],createOrUpdateOrgSecret:["PUT /orgs/{org}/actions/secrets/{secret_name}"],createOrUpdateRepoSecret:["PUT /repos/{owner}/{repo}/actions/secrets/{secret_name}"],createOrgVariable:["POST /orgs/{org}/actions/variables"],createRegistrationTokenForOrg:["POST /orgs/{org}/actions/runners/registration-token"],createRegistrationTokenForRepo:["POST /repos/{owner}/{repo}/actions/runners/registration-token"],createRemoveTokenForOrg:["POST /orgs/{org}/actions/runners/remove-token"],createRemoveTokenForRepo:["POST /repos/{owner}/{repo}/actions/runners/remove-token"],createRepoVariable:["POST /repos/{owner}/{repo}/actions/variables"],createWorkflowDispatch:["POST /repos/{owner}/{repo}/actions/workflows/{workflow_id}/dispatches"],deleteActionsCacheById:["DELETE /repos/{owner}/{repo}/actions/caches/{cache_id}"],deleteActionsCacheByKey:["DELETE /repos/{owner}/{repo}/actions/caches{?key,ref}"],deleteArtifact:["DELETE /repos/{owner}/{repo}/actions/artifacts/{artifact_id}"],deleteEnvironmentSecret:["DELETE /repositories/{repository_id}/environments/{environment_name}/secrets/{secret_name}"],deleteEnvironmentVariable:["DELETE /repositories/{repository_id}/environments/{environment_name}/variables/{name}"],deleteOrgSecret:["DELETE /orgs/{org}/actions/secrets/{secret_name}"],deleteOrgVariable:["DELETE /orgs/{org}/actions/variables/{name}"],deleteRepoSecret:["DELETE /repos/{owner}/{repo}/actions/secrets/{secret_name}"],deleteRepoVariable:["DELETE /repos/{owner}/{repo}/actions/variables/{name}"],deleteSelfHostedRunnerFromOrg:["DELETE /orgs/{org}/actions/runners/{runner_id}"],deleteSelfHostedRunnerFromRepo:["DELETE /repos/{owner}/{repo}/actions/runners/{runner_id}"],deleteWorkflowRun:["DELETE /repos/{owner}/{repo}/actions/runs/{run_id}"],deleteWorkflowRunLogs:["DELETE /repos/{owner}/{repo}/actions/runs/{run_id}/logs"],disableSelectedRepositoryGithubActionsOrganization:["DELETE /orgs/{org}/actions/permissions/repositories/{repository_id}"],disableWorkflow:["PUT /repos/{owner}/{repo}/actions/workflows/{workflow_id}/disable"],downloadArtifact:["GET /repos/{owner}/{repo}/actions/artifacts/{artifact_id}/{archive_format}"],downloadJobLogsForWorkflowRun:["GET /repos/{owner}/{repo}/actions/jobs/{job_id}/logs"],downloadWorkflowRunAttemptLogs:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}/logs"],downloadWorkflowRunLogs:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/logs"],enableSelectedRepositoryGithubActionsOrganization:["PUT /orgs/{org}/actions/permissions/repositories/{repository_id}"],enableWorkflow:["PUT /repos/{owner}/{repo}/actions/workflows/{workflow_id}/enable"],forceCancelWorkflowRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/force-cancel"],generateRunnerJitconfigForOrg:["POST /orgs/{org}/actions/runners/generate-jitconfig"],generateRunnerJitconfigForRepo:["POST /repos/{owner}/{repo}/actions/runners/generate-jitconfig"],getActionsCacheList:["GET /repos/{owner}/{repo}/actions/caches"],getActionsCacheUsage:["GET /repos/{owner}/{repo}/actions/cache/usage"],getActionsCacheUsageByRepoForOrg:["GET /orgs/{org}/actions/cache/usage-by-repository"],getActionsCacheUsageForOrg:["GET /orgs/{org}/actions/cache/usage"],getAllowedActionsOrganization:["GET /orgs/{org}/actions/permissions/selected-actions"],getAllowedActionsRepository:["GET /repos/{owner}/{repo}/actions/permissions/selected-actions"],getArtifact:["GET /repos/{owner}/{repo}/actions/artifacts/{artifact_id}"],getCustomOidcSubClaimForRepo:["GET /repos/{owner}/{repo}/actions/oidc/customization/sub"],getEnvironmentPublicKey:["GET /repositories/{repository_id}/environments/{environment_name}/secrets/public-key"],getEnvironmentSecret:["GET /repositories/{repository_id}/environments/{environment_name}/secrets/{secret_name}"],getEnvironmentVariable:["GET /repositories/{repository_id}/environments/{environment_name}/variables/{name}"],getGithubActionsDefaultWorkflowPermissionsOrganization:["GET /orgs/{org}/actions/permissions/workflow"],getGithubActionsDefaultWorkflowPermissionsRepository:["GET /repos/{owner}/{repo}/actions/permissions/workflow"],getGithubActionsPermissionsOrganization:["GET /orgs/{org}/actions/permissions"],getGithubActionsPermissionsRepository:["GET /repos/{owner}/{repo}/actions/permissions"],getJobForWorkflowRun:["GET /repos/{owner}/{repo}/actions/jobs/{job_id}"],getOrgPublicKey:["GET /orgs/{org}/actions/secrets/public-key"],getOrgSecret:["GET /orgs/{org}/actions/secrets/{secret_name}"],getOrgVariable:["GET /orgs/{org}/actions/variables/{name}"],getPendingDeploymentsForRun:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/pending_deployments"],getRepoPermissions:["GET /repos/{owner}/{repo}/actions/permissions",{},{renamed:["actions","getGithubActionsPermissionsRepository"]}],getRepoPublicKey:["GET /repos/{owner}/{repo}/actions/secrets/public-key"],getRepoSecret:["GET /repos/{owner}/{repo}/actions/secrets/{secret_name}"],getRepoVariable:["GET /repos/{owner}/{repo}/actions/variables/{name}"],getReviewsForRun:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/approvals"],getSelfHostedRunnerForOrg:["GET /orgs/{org}/actions/runners/{runner_id}"],getSelfHostedRunnerForRepo:["GET /repos/{owner}/{repo}/actions/runners/{runner_id}"],getWorkflow:["GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}"],getWorkflowAccessToRepository:["GET /repos/{owner}/{repo}/actions/permissions/access"],getWorkflowRun:["GET /repos/{owner}/{repo}/actions/runs/{run_id}"],getWorkflowRunAttempt:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}"],getWorkflowRunUsage:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/timing"],getWorkflowUsage:["GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/timing"],listArtifactsForRepo:["GET /repos/{owner}/{repo}/actions/artifacts"],listEnvironmentSecrets:["GET /repositories/{repository_id}/environments/{environment_name}/secrets"],listEnvironmentVariables:["GET /repositories/{repository_id}/environments/{environment_name}/variables"],listJobsForWorkflowRun:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/jobs"],listJobsForWorkflowRunAttempt:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}/jobs"],listLabelsForSelfHostedRunnerForOrg:["GET /orgs/{org}/actions/runners/{runner_id}/labels"],listLabelsForSelfHostedRunnerForRepo:["GET /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"],listOrgSecrets:["GET /orgs/{org}/actions/secrets"],listOrgVariables:["GET /orgs/{org}/actions/variables"],listRepoOrganizationSecrets:["GET /repos/{owner}/{repo}/actions/organization-secrets"],listRepoOrganizationVariables:["GET /repos/{owner}/{repo}/actions/organization-variables"],listRepoSecrets:["GET /repos/{owner}/{repo}/actions/secrets"],listRepoVariables:["GET /repos/{owner}/{repo}/actions/variables"],listRepoWorkflows:["GET /repos/{owner}/{repo}/actions/workflows"],listRunnerApplicationsForOrg:["GET /orgs/{org}/actions/runners/downloads"],listRunnerApplicationsForRepo:["GET /repos/{owner}/{repo}/actions/runners/downloads"],listSelectedReposForOrgSecret:["GET /orgs/{org}/actions/secrets/{secret_name}/repositories"],listSelectedReposForOrgVariable:["GET /orgs/{org}/actions/variables/{name}/repositories"],listSelectedRepositoriesEnabledGithubActionsOrganization:["GET /orgs/{org}/actions/permissions/repositories"],listSelfHostedRunnersForOrg:["GET /orgs/{org}/actions/runners"],listSelfHostedRunnersForRepo:["GET /repos/{owner}/{repo}/actions/runners"],listWorkflowRunArtifacts:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts"],listWorkflowRuns:["GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/runs"],listWorkflowRunsForRepo:["GET /repos/{owner}/{repo}/actions/runs"],reRunJobForWorkflowRun:["POST /repos/{owner}/{repo}/actions/jobs/{job_id}/rerun"],reRunWorkflow:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/rerun"],reRunWorkflowFailedJobs:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/rerun-failed-jobs"],removeAllCustomLabelsFromSelfHostedRunnerForOrg:["DELETE /orgs/{org}/actions/runners/{runner_id}/labels"],removeAllCustomLabelsFromSelfHostedRunnerForRepo:["DELETE /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"],removeCustomLabelFromSelfHostedRunnerForOrg:["DELETE /orgs/{org}/actions/runners/{runner_id}/labels/{name}"],removeCustomLabelFromSelfHostedRunnerForRepo:["DELETE /repos/{owner}/{repo}/actions/runners/{runner_id}/labels/{name}"],removeSelectedRepoFromOrgSecret:["DELETE /orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}"],removeSelectedRepoFromOrgVariable:["DELETE /orgs/{org}/actions/variables/{name}/repositories/{repository_id}"],reviewCustomGatesForRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/deployment_protection_rule"],reviewPendingDeploymentsForRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/pending_deployments"],setAllowedActionsOrganization:["PUT /orgs/{org}/actions/permissions/selected-actions"],setAllowedActionsRepository:["PUT /repos/{owner}/{repo}/actions/permissions/selected-actions"],setCustomLabelsForSelfHostedRunnerForOrg:["PUT /orgs/{org}/actions/runners/{runner_id}/labels"],setCustomLabelsForSelfHostedRunnerForRepo:["PUT /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"],setCustomOidcSubClaimForRepo:["PUT /repos/{owner}/{repo}/actions/oidc/customization/sub"],setGithubActionsDefaultWorkflowPermissionsOrganization:["PUT /orgs/{org}/actions/permissions/workflow"],setGithubActionsDefaultWorkflowPermissionsRepository:["PUT /repos/{owner}/{repo}/actions/permissions/workflow"],setGithubActionsPermissionsOrganization:["PUT /orgs/{org}/actions/permissions"],setGithubActionsPermissionsRepository:["PUT /repos/{owner}/{repo}/actions/permissions"],setSelectedReposForOrgSecret:["PUT /orgs/{org}/actions/secrets/{secret_name}/repositories"],setSelectedReposForOrgVariable:["PUT /orgs/{org}/actions/variables/{name}/repositories"],setSelectedRepositoriesEnabledGithubActionsOrganization:["PUT /orgs/{org}/actions/permissions/repositories"],setWorkflowAccessToRepository:["PUT /repos/{owner}/{repo}/actions/permissions/access"],updateEnvironmentVariable:["PATCH /repositories/{repository_id}/environments/{environment_name}/variables/{name}"],updateOrgVariable:["PATCH /orgs/{org}/actions/variables/{name}"],updateRepoVariable:["PATCH /repos/{owner}/{repo}/actions/variables/{name}"]},activity:{checkRepoIsStarredByAuthenticatedUser:["GET /user/starred/{owner}/{repo}"],deleteRepoSubscription:["DELETE /repos/{owner}/{repo}/subscription"],deleteThreadSubscription:["DELETE /notifications/threads/{thread_id}/subscription"],getFeeds:["GET /feeds"],getRepoSubscription:["GET /repos/{owner}/{repo}/subscription"],getThread:["GET /notifications/threads/{thread_id}"],getThreadSubscriptionForAuthenticatedUser:["GET /notifications/threads/{thread_id}/subscription"],listEventsForAuthenticatedUser:["GET /users/{username}/events"],listNotificationsForAuthenticatedUser:["GET /notifications"],listOrgEventsForAuthenticatedUser:["GET /users/{username}/events/orgs/{org}"],listPublicEvents:["GET /events"],listPublicEventsForRepoNetwork:["GET /networks/{owner}/{repo}/events"],listPublicEventsForUser:["GET /users/{username}/events/public"],listPublicOrgEvents:["GET /orgs/{org}/events"],listReceivedEventsForUser:["GET /users/{username}/received_events"],listReceivedPublicEventsForUser:["GET /users/{username}/received_events/public"],listRepoEvents:["GET /repos/{owner}/{repo}/events"],listRepoNotificationsForAuthenticatedUser:["GET /repos/{owner}/{repo}/notifications"],listReposStarredByAuthenticatedUser:["GET /user/starred"],listReposStarredByUser:["GET /users/{username}/starred"],listReposWatchedByUser:["GET /users/{username}/subscriptions"],listStargazersForRepo:["GET /repos/{owner}/{repo}/stargazers"],listWatchedReposForAuthenticatedUser:["GET /user/subscriptions"],listWatchersForRepo:["GET /repos/{owner}/{repo}/subscribers"],markNotificationsAsRead:["PUT /notifications"],markRepoNotificationsAsRead:["PUT /repos/{owner}/{repo}/notifications"],markThreadAsDone:["DELETE /notifications/threads/{thread_id}"],markThreadAsRead:["PATCH /notifications/threads/{thread_id}"],setRepoSubscription:["PUT /repos/{owner}/{repo}/subscription"],setThreadSubscription:["PUT /notifications/threads/{thread_id}/subscription"],starRepoForAuthenticatedUser:["PUT /user/starred/{owner}/{repo}"],unstarRepoForAuthenticatedUser:["DELETE /user/starred/{owner}/{repo}"]},apps:{addRepoToInstallation:["PUT /user/installations/{installation_id}/repositories/{repository_id}",{},{renamed:["apps","addRepoToInstallationForAuthenticatedUser"]}],addRepoToInstallationForAuthenticatedUser:["PUT /user/installations/{installation_id}/repositories/{repository_id}"],checkToken:["POST /applications/{client_id}/token"],createFromManifest:["POST /app-manifests/{code}/conversions"],createInstallationAccessToken:["POST /app/installations/{installation_id}/access_tokens"],deleteAuthorization:["DELETE /applications/{client_id}/grant"],deleteInstallation:["DELETE /app/installations/{installation_id}"],deleteToken:["DELETE /applications/{client_id}/token"],getAuthenticated:["GET /app"],getBySlug:["GET /apps/{app_slug}"],getInstallation:["GET /app/installations/{installation_id}"],getOrgInstallation:["GET /orgs/{org}/installation"],getRepoInstallation:["GET /repos/{owner}/{repo}/installation"],getSubscriptionPlanForAccount:["GET /marketplace_listing/accounts/{account_id}"],getSubscriptionPlanForAccountStubbed:["GET /marketplace_listing/stubbed/accounts/{account_id}"],getUserInstallation:["GET /users/{username}/installation"],getWebhookConfigForApp:["GET /app/hook/config"],getWebhookDelivery:["GET /app/hook/deliveries/{delivery_id}"],listAccountsForPlan:["GET /marketplace_listing/plans/{plan_id}/accounts"],listAccountsForPlanStubbed:["GET /marketplace_listing/stubbed/plans/{plan_id}/accounts"],listInstallationReposForAuthenticatedUser:["GET /user/installations/{installation_id}/repositories"],listInstallationRequestsForAuthenticatedApp:["GET /app/installation-requests"],listInstallations:["GET /app/installations"],listInstallationsForAuthenticatedUser:["GET /user/installations"],listPlans:["GET /marketplace_listing/plans"],listPlansStubbed:["GET /marketplace_listing/stubbed/plans"],listReposAccessibleToInstallation:["GET /installation/repositories"],listSubscriptionsForAuthenticatedUser:["GET /user/marketplace_purchases"],listSubscriptionsForAuthenticatedUserStubbed:["GET /user/marketplace_purchases/stubbed"],listWebhookDeliveries:["GET /app/hook/deliveries"],redeliverWebhookDelivery:["POST /app/hook/deliveries/{delivery_id}/attempts"],removeRepoFromInstallation:["DELETE /user/installations/{installation_id}/repositories/{repository_id}",{},{renamed:["apps","removeRepoFromInstallationForAuthenticatedUser"]}],removeRepoFromInstallationForAuthenticatedUser:["DELETE /user/installations/{installation_id}/repositories/{repository_id}"],resetToken:["PATCH /applications/{client_id}/token"],revokeInstallationAccessToken:["DELETE /installation/token"],scopeToken:["POST /applications/{client_id}/token/scoped"],suspendInstallation:["PUT /app/installations/{installation_id}/suspended"],unsuspendInstallation:["DELETE /app/installations/{installation_id}/suspended"],updateWebhookConfigForApp:["PATCH /app/hook/config"]},billing:{getGithubActionsBillingOrg:["GET /orgs/{org}/settings/billing/actions"],getGithubActionsBillingUser:["GET /users/{username}/settings/billing/actions"],getGithubPackagesBillingOrg:["GET /orgs/{org}/settings/billing/packages"],getGithubPackagesBillingUser:["GET /users/{username}/settings/billing/packages"],getSharedStorageBillingOrg:["GET /orgs/{org}/settings/billing/shared-storage"],getSharedStorageBillingUser:["GET /users/{username}/settings/billing/shared-storage"]},checks:{create:["POST /repos/{owner}/{repo}/check-runs"],createSuite:["POST /repos/{owner}/{repo}/check-suites"],get:["GET /repos/{owner}/{repo}/check-runs/{check_run_id}"],getSuite:["GET /repos/{owner}/{repo}/check-suites/{check_suite_id}"],listAnnotations:["GET /repos/{owner}/{repo}/check-runs/{check_run_id}/annotations"],listForRef:["GET /repos/{owner}/{repo}/commits/{ref}/check-runs"],listForSuite:["GET /repos/{owner}/{repo}/check-suites/{check_suite_id}/check-runs"],listSuitesForRef:["GET /repos/{owner}/{repo}/commits/{ref}/check-suites"],rerequestRun:["POST /repos/{owner}/{repo}/check-runs/{check_run_id}/rerequest"],rerequestSuite:["POST /repos/{owner}/{repo}/check-suites/{check_suite_id}/rerequest"],setSuitesPreferences:["PATCH /repos/{owner}/{repo}/check-suites/preferences"],update:["PATCH /repos/{owner}/{repo}/check-runs/{check_run_id}"]},codeScanning:{deleteAnalysis:["DELETE /repos/{owner}/{repo}/code-scanning/analyses/{analysis_id}{?confirm_delete}"],getAlert:["GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}",{},{renamedParameters:{alert_id:"alert_number"}}],getAnalysis:["GET /repos/{owner}/{repo}/code-scanning/analyses/{analysis_id}"],getCodeqlDatabase:["GET /repos/{owner}/{repo}/code-scanning/codeql/databases/{language}"],getDefaultSetup:["GET /repos/{owner}/{repo}/code-scanning/default-setup"],getSarif:["GET /repos/{owner}/{repo}/code-scanning/sarifs/{sarif_id}"],listAlertInstances:["GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/instances"],listAlertsForOrg:["GET /orgs/{org}/code-scanning/alerts"],listAlertsForRepo:["GET /repos/{owner}/{repo}/code-scanning/alerts"],listAlertsInstances:["GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/instances",{},{renamed:["codeScanning","listAlertInstances"]}],listCodeqlDatabases:["GET /repos/{owner}/{repo}/code-scanning/codeql/databases"],listRecentAnalyses:["GET /repos/{owner}/{repo}/code-scanning/analyses"],updateAlert:["PATCH /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}"],updateDefaultSetup:["PATCH /repos/{owner}/{repo}/code-scanning/default-setup"],uploadSarif:["POST /repos/{owner}/{repo}/code-scanning/sarifs"]},codesOfConduct:{getAllCodesOfConduct:["GET /codes_of_conduct"],getConductCode:["GET /codes_of_conduct/{key}"]},codespaces:{addRepositoryForSecretForAuthenticatedUser:["PUT /user/codespaces/secrets/{secret_name}/repositories/{repository_id}"],addSelectedRepoToOrgSecret:["PUT /orgs/{org}/codespaces/secrets/{secret_name}/repositories/{repository_id}"],checkPermissionsForDevcontainer:["GET /repos/{owner}/{repo}/codespaces/permissions_check"],codespaceMachinesForAuthenticatedUser:["GET /user/codespaces/{codespace_name}/machines"],createForAuthenticatedUser:["POST /user/codespaces"],createOrUpdateOrgSecret:["PUT /orgs/{org}/codespaces/secrets/{secret_name}"],createOrUpdateRepoSecret:["PUT /repos/{owner}/{repo}/codespaces/secrets/{secret_name}"],createOrUpdateSecretForAuthenticatedUser:["PUT /user/codespaces/secrets/{secret_name}"],createWithPrForAuthenticatedUser:["POST /repos/{owner}/{repo}/pulls/{pull_number}/codespaces"],createWithRepoForAuthenticatedUser:["POST /repos/{owner}/{repo}/codespaces"],deleteForAuthenticatedUser:["DELETE /user/codespaces/{codespace_name}"],deleteFromOrganization:["DELETE /orgs/{org}/members/{username}/codespaces/{codespace_name}"],deleteOrgSecret:["DELETE /orgs/{org}/codespaces/secrets/{secret_name}"],deleteRepoSecret:["DELETE /repos/{owner}/{repo}/codespaces/secrets/{secret_name}"],deleteSecretForAuthenticatedUser:["DELETE /user/codespaces/secrets/{secret_name}"],exportForAuthenticatedUser:["POST /user/codespaces/{codespace_name}/exports"],getCodespacesForUserInOrg:["GET /orgs/{org}/members/{username}/codespaces"],getExportDetailsForAuthenticatedUser:["GET /user/codespaces/{codespace_name}/exports/{export_id}"],getForAuthenticatedUser:["GET /user/codespaces/{codespace_name}"],getOrgPublicKey:["GET /orgs/{org}/codespaces/secrets/public-key"],getOrgSecret:["GET /orgs/{org}/codespaces/secrets/{secret_name}"],getPublicKeyForAuthenticatedUser:["GET /user/codespaces/secrets/public-key"],getRepoPublicKey:["GET /repos/{owner}/{repo}/codespaces/secrets/public-key"],getRepoSecret:["GET /repos/{owner}/{repo}/codespaces/secrets/{secret_name}"],getSecretForAuthenticatedUser:["GET /user/codespaces/secrets/{secret_name}"],listDevcontainersInRepositoryForAuthenticatedUser:["GET /repos/{owner}/{repo}/codespaces/devcontainers"],listForAuthenticatedUser:["GET /user/codespaces"],listInOrganization:["GET /orgs/{org}/codespaces",{},{renamedParameters:{org_id:"org"}}],listInRepositoryForAuthenticatedUser:["GET /repos/{owner}/{repo}/codespaces"],listOrgSecrets:["GET /orgs/{org}/codespaces/secrets"],listRepoSecrets:["GET /repos/{owner}/{repo}/codespaces/secrets"],listRepositoriesForSecretForAuthenticatedUser:["GET /user/codespaces/secrets/{secret_name}/repositories"],listSecretsForAuthenticatedUser:["GET /user/codespaces/secrets"],listSelectedReposForOrgSecret:["GET /orgs/{org}/codespaces/secrets/{secret_name}/repositories"],preFlightWithRepoForAuthenticatedUser:["GET /repos/{owner}/{repo}/codespaces/new"],publishForAuthenticatedUser:["POST /user/codespaces/{codespace_name}/publish"],removeRepositoryForSecretForAuthenticatedUser:["DELETE /user/codespaces/secrets/{secret_name}/repositories/{repository_id}"],removeSelectedRepoFromOrgSecret:["DELETE /orgs/{org}/codespaces/secrets/{secret_name}/repositories/{repository_id}"],repoMachinesForAuthenticatedUser:["GET /repos/{owner}/{repo}/codespaces/machines"],setRepositoriesForSecretForAuthenticatedUser:["PUT /user/codespaces/secrets/{secret_name}/repositories"],setSelectedReposForOrgSecret:["PUT /orgs/{org}/codespaces/secrets/{secret_name}/repositories"],startForAuthenticatedUser:["POST /user/codespaces/{codespace_name}/start"],stopForAuthenticatedUser:["POST /user/codespaces/{codespace_name}/stop"],stopInOrganization:["POST /orgs/{org}/members/{username}/codespaces/{codespace_name}/stop"],updateForAuthenticatedUser:["PATCH /user/codespaces/{codespace_name}"]},copilot:{addCopilotSeatsForTeams:["POST /orgs/{org}/copilot/billing/selected_teams"],addCopilotSeatsForUsers:["POST /orgs/{org}/copilot/billing/selected_users"],cancelCopilotSeatAssignmentForTeams:["DELETE /orgs/{org}/copilot/billing/selected_teams"],cancelCopilotSeatAssignmentForUsers:["DELETE /orgs/{org}/copilot/billing/selected_users"],getCopilotOrganizationDetails:["GET /orgs/{org}/copilot/billing"],getCopilotSeatDetailsForUser:["GET /orgs/{org}/members/{username}/copilot"],listCopilotSeats:["GET /orgs/{org}/copilot/billing/seats"]},dependabot:{addSelectedRepoToOrgSecret:["PUT /orgs/{org}/dependabot/secrets/{secret_name}/repositories/{repository_id}"],createOrUpdateOrgSecret:["PUT /orgs/{org}/dependabot/secrets/{secret_name}"],createOrUpdateRepoSecret:["PUT /repos/{owner}/{repo}/dependabot/secrets/{secret_name}"],deleteOrgSecret:["DELETE /orgs/{org}/dependabot/secrets/{secret_name}"],deleteRepoSecret:["DELETE /repos/{owner}/{repo}/dependabot/secrets/{secret_name}"],getAlert:["GET /repos/{owner}/{repo}/dependabot/alerts/{alert_number}"],getOrgPublicKey:["GET /orgs/{org}/dependabot/secrets/public-key"],getOrgSecret:["GET /orgs/{org}/dependabot/secrets/{secret_name}"],getRepoPublicKey:["GET /repos/{owner}/{repo}/dependabot/secrets/public-key"],getRepoSecret:["GET /repos/{owner}/{repo}/dependabot/secrets/{secret_name}"],listAlertsForEnterprise:["GET /enterprises/{enterprise}/dependabot/alerts"],listAlertsForOrg:["GET /orgs/{org}/dependabot/alerts"],listAlertsForRepo:["GET /repos/{owner}/{repo}/dependabot/alerts"],listOrgSecrets:["GET /orgs/{org}/dependabot/secrets"],listRepoSecrets:["GET /repos/{owner}/{repo}/dependabot/secrets"],listSelectedReposForOrgSecret:["GET /orgs/{org}/dependabot/secrets/{secret_name}/repositories"],removeSelectedRepoFromOrgSecret:["DELETE /orgs/{org}/dependabot/secrets/{secret_name}/repositories/{repository_id}"],setSelectedReposForOrgSecret:["PUT /orgs/{org}/dependabot/secrets/{secret_name}/repositories"],updateAlert:["PATCH /repos/{owner}/{repo}/dependabot/alerts/{alert_number}"]},dependencyGraph:{createRepositorySnapshot:["POST /repos/{owner}/{repo}/dependency-graph/snapshots"],diffRange:["GET /repos/{owner}/{repo}/dependency-graph/compare/{basehead}"],exportSbom:["GET /repos/{owner}/{repo}/dependency-graph/sbom"]},emojis:{get:["GET /emojis"]},gists:{checkIsStarred:["GET /gists/{gist_id}/star"],create:["POST /gists"],createComment:["POST /gists/{gist_id}/comments"],delete:["DELETE /gists/{gist_id}"],deleteComment:["DELETE /gists/{gist_id}/comments/{comment_id}"],fork:["POST /gists/{gist_id}/forks"],get:["GET /gists/{gist_id}"],getComment:["GET /gists/{gist_id}/comments/{comment_id}"],getRevision:["GET /gists/{gist_id}/{sha}"],list:["GET /gists"],listComments:["GET /gists/{gist_id}/comments"],listCommits:["GET /gists/{gist_id}/commits"],listForUser:["GET /users/{username}/gists"],listForks:["GET /gists/{gist_id}/forks"],listPublic:["GET /gists/public"],listStarred:["GET /gists/starred"],star:["PUT /gists/{gist_id}/star"],unstar:["DELETE /gists/{gist_id}/star"],update:["PATCH /gists/{gist_id}"],updateComment:["PATCH /gists/{gist_id}/comments/{comment_id}"]},git:{createBlob:["POST /repos/{owner}/{repo}/git/blobs"],createCommit:["POST /repos/{owner}/{repo}/git/commits"],createRef:["POST /repos/{owner}/{repo}/git/refs"],createTag:["POST /repos/{owner}/{repo}/git/tags"],createTree:["POST /repos/{owner}/{repo}/git/trees"],deleteRef:["DELETE /repos/{owner}/{repo}/git/refs/{ref}"],getBlob:["GET /repos/{owner}/{repo}/git/blobs/{file_sha}"],getCommit:["GET /repos/{owner}/{repo}/git/commits/{commit_sha}"],getRef:["GET /repos/{owner}/{repo}/git/ref/{ref}"],getTag:["GET /repos/{owner}/{repo}/git/tags/{tag_sha}"],getTree:["GET /repos/{owner}/{repo}/git/trees/{tree_sha}"],listMatchingRefs:["GET /repos/{owner}/{repo}/git/matching-refs/{ref}"],updateRef:["PATCH /repos/{owner}/{repo}/git/refs/{ref}"]},gitignore:{getAllTemplates:["GET /gitignore/templates"],getTemplate:["GET /gitignore/templates/{name}"]},interactions:{getRestrictionsForAuthenticatedUser:["GET /user/interaction-limits"],getRestrictionsForOrg:["GET /orgs/{org}/interaction-limits"],getRestrictionsForRepo:["GET /repos/{owner}/{repo}/interaction-limits"],getRestrictionsForYourPublicRepos:["GET /user/interaction-limits",{},{renamed:["interactions","getRestrictionsForAuthenticatedUser"]}],removeRestrictionsForAuthenticatedUser:["DELETE /user/interaction-limits"],removeRestrictionsForOrg:["DELETE /orgs/{org}/interaction-limits"],removeRestrictionsForRepo:["DELETE /repos/{owner}/{repo}/interaction-limits"],removeRestrictionsForYourPublicRepos:["DELETE /user/interaction-limits",{},{renamed:["interactions","removeRestrictionsForAuthenticatedUser"]}],setRestrictionsForAuthenticatedUser:["PUT /user/interaction-limits"],setRestrictionsForOrg:["PUT /orgs/{org}/interaction-limits"],setRestrictionsForRepo:["PUT /repos/{owner}/{repo}/interaction-limits"],setRestrictionsForYourPublicRepos:["PUT /user/interaction-limits",{},{renamed:["interactions","setRestrictionsForAuthenticatedUser"]}]},issues:{addAssignees:["POST /repos/{owner}/{repo}/issues/{issue_number}/assignees"],addLabels:["POST /repos/{owner}/{repo}/issues/{issue_number}/labels"],checkUserCanBeAssigned:["GET /repos/{owner}/{repo}/assignees/{assignee}"],checkUserCanBeAssignedToIssue:["GET /repos/{owner}/{repo}/issues/{issue_number}/assignees/{assignee}"],create:["POST /repos/{owner}/{repo}/issues"],createComment:["POST /repos/{owner}/{repo}/issues/{issue_number}/comments"],createLabel:["POST /repos/{owner}/{repo}/labels"],createMilestone:["POST /repos/{owner}/{repo}/milestones"],deleteComment:["DELETE /repos/{owner}/{repo}/issues/comments/{comment_id}"],deleteLabel:["DELETE /repos/{owner}/{repo}/labels/{name}"],deleteMilestone:["DELETE /repos/{owner}/{repo}/milestones/{milestone_number}"],get:["GET /repos/{owner}/{repo}/issues/{issue_number}"],getComment:["GET /repos/{owner}/{repo}/issues/comments/{comment_id}"],getEvent:["GET /repos/{owner}/{repo}/issues/events/{event_id}"],getLabel:["GET /repos/{owner}/{repo}/labels/{name}"],getMilestone:["GET /repos/{owner}/{repo}/milestones/{milestone_number}"],list:["GET /issues"],listAssignees:["GET /repos/{owner}/{repo}/assignees"],listComments:["GET /repos/{owner}/{repo}/issues/{issue_number}/comments"],listCommentsForRepo:["GET /repos/{owner}/{repo}/issues/comments"],listEvents:["GET /repos/{owner}/{repo}/issues/{issue_number}/events"],listEventsForRepo:["GET /repos/{owner}/{repo}/issues/events"],listEventsForTimeline:["GET /repos/{owner}/{repo}/issues/{issue_number}/timeline"],listForAuthenticatedUser:["GET /user/issues"],listForOrg:["GET /orgs/{org}/issues"],listForRepo:["GET /repos/{owner}/{repo}/issues"],listLabelsForMilestone:["GET /repos/{owner}/{repo}/milestones/{milestone_number}/labels"],listLabelsForRepo:["GET /repos/{owner}/{repo}/labels"],listLabelsOnIssue:["GET /repos/{owner}/{repo}/issues/{issue_number}/labels"],listMilestones:["GET /repos/{owner}/{repo}/milestones"],lock:["PUT /repos/{owner}/{repo}/issues/{issue_number}/lock"],removeAllLabels:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/labels"],removeAssignees:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/assignees"],removeLabel:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/labels/{name}"],setLabels:["PUT /repos/{owner}/{repo}/issues/{issue_number}/labels"],unlock:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/lock"],update:["PATCH /repos/{owner}/{repo}/issues/{issue_number}"],updateComment:["PATCH /repos/{owner}/{repo}/issues/comments/{comment_id}"],updateLabel:["PATCH /repos/{owner}/{repo}/labels/{name}"],updateMilestone:["PATCH /repos/{owner}/{repo}/milestones/{milestone_number}"]},licenses:{get:["GET /licenses/{license}"],getAllCommonlyUsed:["GET /licenses"],getForRepo:["GET /repos/{owner}/{repo}/license"]},markdown:{render:["POST /markdown"],renderRaw:["POST /markdown/raw",{headers:{"content-type":"text/plain; charset=utf-8"}}]},meta:{get:["GET /meta"],getAllVersions:["GET /versions"],getOctocat:["GET /octocat"],getZen:["GET /zen"],root:["GET /"]},migrations:{cancelImport:["DELETE /repos/{owner}/{repo}/import",{},{deprecated:"octokit.rest.migrations.cancelImport() is deprecated, see https://docs.github.com/rest/migrations/source-imports#cancel-an-import"}],deleteArchiveForAuthenticatedUser:["DELETE /user/migrations/{migration_id}/archive"],deleteArchiveForOrg:["DELETE /orgs/{org}/migrations/{migration_id}/archive"],downloadArchiveForOrg:["GET /orgs/{org}/migrations/{migration_id}/archive"],getArchiveForAuthenticatedUser:["GET /user/migrations/{migration_id}/archive"],getCommitAuthors:["GET /repos/{owner}/{repo}/import/authors",{},{deprecated:"octokit.rest.migrations.getCommitAuthors() is deprecated, see https://docs.github.com/rest/migrations/source-imports#get-commit-authors"}],getImportStatus:["GET /repos/{owner}/{repo}/import",{},{deprecated:"octokit.rest.migrations.getImportStatus() is deprecated, see https://docs.github.com/rest/migrations/source-imports#get-an-import-status"}],getLargeFiles:["GET /repos/{owner}/{repo}/import/large_files",{},{deprecated:"octokit.rest.migrations.getLargeFiles() is deprecated, see https://docs.github.com/rest/migrations/source-imports#get-large-files"}],getStatusForAuthenticatedUser:["GET /user/migrations/{migration_id}"],getStatusForOrg:["GET /orgs/{org}/migrations/{migration_id}"],listForAuthenticatedUser:["GET /user/migrations"],listForOrg:["GET /orgs/{org}/migrations"],listReposForAuthenticatedUser:["GET /user/migrations/{migration_id}/repositories"],listReposForOrg:["GET /orgs/{org}/migrations/{migration_id}/repositories"],listReposForUser:["GET /user/migrations/{migration_id}/repositories",{},{renamed:["migrations","listReposForAuthenticatedUser"]}],mapCommitAuthor:["PATCH /repos/{owner}/{repo}/import/authors/{author_id}",{},{deprecated:"octokit.rest.migrations.mapCommitAuthor() is deprecated, see https://docs.github.com/rest/migrations/source-imports#map-a-commit-author"}],setLfsPreference:["PATCH /repos/{owner}/{repo}/import/lfs",{},{deprecated:"octokit.rest.migrations.setLfsPreference() is deprecated, see https://docs.github.com/rest/migrations/source-imports#update-git-lfs-preference"}],startForAuthenticatedUser:["POST /user/migrations"],startForOrg:["POST /orgs/{org}/migrations"],startImport:["PUT /repos/{owner}/{repo}/import",{},{deprecated:"octokit.rest.migrations.startImport() is deprecated, see https://docs.github.com/rest/migrations/source-imports#start-an-import"}],unlockRepoForAuthenticatedUser:["DELETE /user/migrations/{migration_id}/repos/{repo_name}/lock"],unlockRepoForOrg:["DELETE /orgs/{org}/migrations/{migration_id}/repos/{repo_name}/lock"],updateImport:["PATCH /repos/{owner}/{repo}/import",{},{deprecated:"octokit.rest.migrations.updateImport() is deprecated, see https://docs.github.com/rest/migrations/source-imports#update-an-import"}]},oidc:{getOidcCustomSubTemplateForOrg:["GET /orgs/{org}/actions/oidc/customization/sub"],updateOidcCustomSubTemplateForOrg:["PUT /orgs/{org}/actions/oidc/customization/sub"]},orgs:{addSecurityManagerTeam:["PUT /orgs/{org}/security-managers/teams/{team_slug}"],assignTeamToOrgRole:["PUT /orgs/{org}/organization-roles/teams/{team_slug}/{role_id}"],assignUserToOrgRole:["PUT /orgs/{org}/organization-roles/users/{username}/{role_id}"],blockUser:["PUT /orgs/{org}/blocks/{username}"],cancelInvitation:["DELETE /orgs/{org}/invitations/{invitation_id}"],checkBlockedUser:["GET /orgs/{org}/blocks/{username}"],checkMembershipForUser:["GET /orgs/{org}/members/{username}"],checkPublicMembershipForUser:["GET /orgs/{org}/public_members/{username}"],convertMemberToOutsideCollaborator:["PUT /orgs/{org}/outside_collaborators/{username}"],createCustomOrganizationRole:["POST /orgs/{org}/organization-roles"],createInvitation:["POST /orgs/{org}/invitations"],createOrUpdateCustomProperties:["PATCH /orgs/{org}/properties/schema"],createOrUpdateCustomPropertiesValuesForRepos:["PATCH /orgs/{org}/properties/values"],createOrUpdateCustomProperty:["PUT /orgs/{org}/properties/schema/{custom_property_name}"],createWebhook:["POST /orgs/{org}/hooks"],delete:["DELETE /orgs/{org}"],deleteCustomOrganizationRole:["DELETE /orgs/{org}/organization-roles/{role_id}"],deleteWebhook:["DELETE /orgs/{org}/hooks/{hook_id}"],enableOrDisableSecurityProductOnAllOrgRepos:["POST /orgs/{org}/{security_product}/{enablement}"],get:["GET /orgs/{org}"],getAllCustomProperties:["GET /orgs/{org}/properties/schema"],getCustomProperty:["GET /orgs/{org}/properties/schema/{custom_property_name}"],getMembershipForAuthenticatedUser:["GET /user/memberships/orgs/{org}"],getMembershipForUser:["GET /orgs/{org}/memberships/{username}"],getOrgRole:["GET /orgs/{org}/organization-roles/{role_id}"],getWebhook:["GET /orgs/{org}/hooks/{hook_id}"],getWebhookConfigForOrg:["GET /orgs/{org}/hooks/{hook_id}/config"],getWebhookDelivery:["GET /orgs/{org}/hooks/{hook_id}/deliveries/{delivery_id}"],list:["GET /organizations"],listAppInstallations:["GET /orgs/{org}/installations"],listBlockedUsers:["GET /orgs/{org}/blocks"],listCustomPropertiesValuesForRepos:["GET /orgs/{org}/properties/values"],listFailedInvitations:["GET /orgs/{org}/failed_invitations"],listForAuthenticatedUser:["GET /user/orgs"],listForUser:["GET /users/{username}/orgs"],listInvitationTeams:["GET /orgs/{org}/invitations/{invitation_id}/teams"],listMembers:["GET /orgs/{org}/members"],listMembershipsForAuthenticatedUser:["GET /user/memberships/orgs"],listOrgRoleTeams:["GET /orgs/{org}/organization-roles/{role_id}/teams"],listOrgRoleUsers:["GET /orgs/{org}/organization-roles/{role_id}/users"],listOrgRoles:["GET /orgs/{org}/organization-roles"],listOrganizationFineGrainedPermissions:["GET /orgs/{org}/organization-fine-grained-permissions"],listOutsideCollaborators:["GET /orgs/{org}/outside_collaborators"],listPatGrantRepositories:["GET /orgs/{org}/personal-access-tokens/{pat_id}/repositories"],listPatGrantRequestRepositories:["GET /orgs/{org}/personal-access-token-requests/{pat_request_id}/repositories"],listPatGrantRequests:["GET /orgs/{org}/personal-access-token-requests"],listPatGrants:["GET /orgs/{org}/personal-access-tokens"],listPendingInvitations:["GET /orgs/{org}/invitations"],listPublicMembers:["GET /orgs/{org}/public_members"],listSecurityManagerTeams:["GET /orgs/{org}/security-managers"],listWebhookDeliveries:["GET /orgs/{org}/hooks/{hook_id}/deliveries"],listWebhooks:["GET /orgs/{org}/hooks"],patchCustomOrganizationRole:["PATCH /orgs/{org}/organization-roles/{role_id}"],pingWebhook:["POST /orgs/{org}/hooks/{hook_id}/pings"],redeliverWebhookDelivery:["POST /orgs/{org}/hooks/{hook_id}/deliveries/{delivery_id}/attempts"],removeCustomProperty:["DELETE /orgs/{org}/properties/schema/{custom_property_name}"],removeMember:["DELETE /orgs/{org}/members/{username}"],removeMembershipForUser:["DELETE /orgs/{org}/memberships/{username}"],removeOutsideCollaborator:["DELETE /orgs/{org}/outside_collaborators/{username}"],removePublicMembershipForAuthenticatedUser:["DELETE /orgs/{org}/public_members/{username}"],removeSecurityManagerTeam:["DELETE /orgs/{org}/security-managers/teams/{team_slug}"],reviewPatGrantRequest:["POST /orgs/{org}/personal-access-token-requests/{pat_request_id}"],reviewPatGrantRequestsInBulk:["POST /orgs/{org}/personal-access-token-requests"],revokeAllOrgRolesTeam:["DELETE /orgs/{org}/organization-roles/teams/{team_slug}"],revokeAllOrgRolesUser:["DELETE /orgs/{org}/organization-roles/users/{username}"],revokeOrgRoleTeam:["DELETE /orgs/{org}/organization-roles/teams/{team_slug}/{role_id}"],revokeOrgRoleUser:["DELETE /orgs/{org}/organization-roles/users/{username}/{role_id}"],setMembershipForUser:["PUT /orgs/{org}/memberships/{username}"],setPublicMembershipForAuthenticatedUser:["PUT /orgs/{org}/public_members/{username}"],unblockUser:["DELETE /orgs/{org}/blocks/{username}"],update:["PATCH /orgs/{org}"],updateMembershipForAuthenticatedUser:["PATCH /user/memberships/orgs/{org}"],updatePatAccess:["POST /orgs/{org}/personal-access-tokens/{pat_id}"],updatePatAccesses:["POST /orgs/{org}/personal-access-tokens"],updateWebhook:["PATCH /orgs/{org}/hooks/{hook_id}"],updateWebhookConfigForOrg:["PATCH /orgs/{org}/hooks/{hook_id}/config"]},packages:{deletePackageForAuthenticatedUser:["DELETE /user/packages/{package_type}/{package_name}"],deletePackageForOrg:["DELETE /orgs/{org}/packages/{package_type}/{package_name}"],deletePackageForUser:["DELETE /users/{username}/packages/{package_type}/{package_name}"],deletePackageVersionForAuthenticatedUser:["DELETE /user/packages/{package_type}/{package_name}/versions/{package_version_id}"],deletePackageVersionForOrg:["DELETE /orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}"],deletePackageVersionForUser:["DELETE /users/{username}/packages/{package_type}/{package_name}/versions/{package_version_id}"],getAllPackageVersionsForAPackageOwnedByAnOrg:["GET /orgs/{org}/packages/{package_type}/{package_name}/versions",{},{renamed:["packages","getAllPackageVersionsForPackageOwnedByOrg"]}],getAllPackageVersionsForAPackageOwnedByTheAuthenticatedUser:["GET /user/packages/{package_type}/{package_name}/versions",{},{renamed:["packages","getAllPackageVersionsForPackageOwnedByAuthenticatedUser"]}],getAllPackageVersionsForPackageOwnedByAuthenticatedUser:["GET /user/packages/{package_type}/{package_name}/versions"],getAllPackageVersionsForPackageOwnedByOrg:["GET /orgs/{org}/packages/{package_type}/{package_name}/versions"],getAllPackageVersionsForPackageOwnedByUser:["GET /users/{username}/packages/{package_type}/{package_name}/versions"],getPackageForAuthenticatedUser:["GET /user/packages/{package_type}/{package_name}"],getPackageForOrganization:["GET /orgs/{org}/packages/{package_type}/{package_name}"],getPackageForUser:["GET /users/{username}/packages/{package_type}/{package_name}"],getPackageVersionForAuthenticatedUser:["GET /user/packages/{package_type}/{package_name}/versions/{package_version_id}"],getPackageVersionForOrganization:["GET /orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}"],getPackageVersionForUser:["GET /users/{username}/packages/{package_type}/{package_name}/versions/{package_version_id}"],listDockerMigrationConflictingPackagesForAuthenticatedUser:["GET /user/docker/conflicts"],listDockerMigrationConflictingPackagesForOrganization:["GET /orgs/{org}/docker/conflicts"],listDockerMigrationConflictingPackagesForUser:["GET /users/{username}/docker/conflicts"],listPackagesForAuthenticatedUser:["GET /user/packages"],listPackagesForOrganization:["GET /orgs/{org}/packages"],listPackagesForUser:["GET /users/{username}/packages"],restorePackageForAuthenticatedUser:["POST /user/packages/{package_type}/{package_name}/restore{?token}"],restorePackageForOrg:["POST /orgs/{org}/packages/{package_type}/{package_name}/restore{?token}"],restorePackageForUser:["POST /users/{username}/packages/{package_type}/{package_name}/restore{?token}"],restorePackageVersionForAuthenticatedUser:["POST /user/packages/{package_type}/{package_name}/versions/{package_version_id}/restore"],restorePackageVersionForOrg:["POST /orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}/restore"],restorePackageVersionForUser:["POST /users/{username}/packages/{package_type}/{package_name}/versions/{package_version_id}/restore"]},projects:{addCollaborator:["PUT /projects/{project_id}/collaborators/{username}"],createCard:["POST /projects/columns/{column_id}/cards"],createColumn:["POST /projects/{project_id}/columns"],createForAuthenticatedUser:["POST /user/projects"],createForOrg:["POST /orgs/{org}/projects"],createForRepo:["POST /repos/{owner}/{repo}/projects"],delete:["DELETE /projects/{project_id}"],deleteCard:["DELETE /projects/columns/cards/{card_id}"],deleteColumn:["DELETE /projects/columns/{column_id}"],get:["GET /projects/{project_id}"],getCard:["GET /projects/columns/cards/{card_id}"],getColumn:["GET /projects/columns/{column_id}"],getPermissionForUser:["GET /projects/{project_id}/collaborators/{username}/permission"],listCards:["GET /projects/columns/{column_id}/cards"],listCollaborators:["GET /projects/{project_id}/collaborators"],listColumns:["GET /projects/{project_id}/columns"],listForOrg:["GET /orgs/{org}/projects"],listForRepo:["GET /repos/{owner}/{repo}/projects"],listForUser:["GET /users/{username}/projects"],moveCard:["POST /projects/columns/cards/{card_id}/moves"],moveColumn:["POST /projects/columns/{column_id}/moves"],removeCollaborator:["DELETE /projects/{project_id}/collaborators/{username}"],update:["PATCH /projects/{project_id}"],updateCard:["PATCH /projects/columns/cards/{card_id}"],updateColumn:["PATCH /projects/columns/{column_id}"]},pulls:{checkIfMerged:["GET /repos/{owner}/{repo}/pulls/{pull_number}/merge"],create:["POST /repos/{owner}/{repo}/pulls"],createReplyForReviewComment:["POST /repos/{owner}/{repo}/pulls/{pull_number}/comments/{comment_id}/replies"],createReview:["POST /repos/{owner}/{repo}/pulls/{pull_number}/reviews"],createReviewComment:["POST /repos/{owner}/{repo}/pulls/{pull_number}/comments"],deletePendingReview:["DELETE /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}"],deleteReviewComment:["DELETE /repos/{owner}/{repo}/pulls/comments/{comment_id}"],dismissReview:["PUT /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/dismissals"],get:["GET /repos/{owner}/{repo}/pulls/{pull_number}"],getReview:["GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}"],getReviewComment:["GET /repos/{owner}/{repo}/pulls/comments/{comment_id}"],list:["GET /repos/{owner}/{repo}/pulls"],listCommentsForReview:["GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/comments"],listCommits:["GET /repos/{owner}/{repo}/pulls/{pull_number}/commits"],listFiles:["GET /repos/{owner}/{repo}/pulls/{pull_number}/files"],listRequestedReviewers:["GET /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers"],listReviewComments:["GET /repos/{owner}/{repo}/pulls/{pull_number}/comments"],listReviewCommentsForRepo:["GET /repos/{owner}/{repo}/pulls/comments"],listReviews:["GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews"],merge:["PUT /repos/{owner}/{repo}/pulls/{pull_number}/merge"],removeRequestedReviewers:["DELETE /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers"],requestReviewers:["POST /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers"],submitReview:["POST /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/events"],update:["PATCH /repos/{owner}/{repo}/pulls/{pull_number}"],updateBranch:["PUT /repos/{owner}/{repo}/pulls/{pull_number}/update-branch"],updateReview:["PUT /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}"],updateReviewComment:["PATCH /repos/{owner}/{repo}/pulls/comments/{comment_id}"]},rateLimit:{get:["GET /rate_limit"]},reactions:{createForCommitComment:["POST /repos/{owner}/{repo}/comments/{comment_id}/reactions"],createForIssue:["POST /repos/{owner}/{repo}/issues/{issue_number}/reactions"],createForIssueComment:["POST /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions"],createForPullRequestReviewComment:["POST /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions"],createForRelease:["POST /repos/{owner}/{repo}/releases/{release_id}/reactions"],createForTeamDiscussionCommentInOrg:["POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions"],createForTeamDiscussionInOrg:["POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions"],deleteForCommitComment:["DELETE /repos/{owner}/{repo}/comments/{comment_id}/reactions/{reaction_id}"],deleteForIssue:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/reactions/{reaction_id}"],deleteForIssueComment:["DELETE /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions/{reaction_id}"],deleteForPullRequestComment:["DELETE /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions/{reaction_id}"],deleteForRelease:["DELETE /repos/{owner}/{repo}/releases/{release_id}/reactions/{reaction_id}"],deleteForTeamDiscussion:["DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions/{reaction_id}"],deleteForTeamDiscussionComment:["DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions/{reaction_id}"],listForCommitComment:["GET /repos/{owner}/{repo}/comments/{comment_id}/reactions"],listForIssue:["GET /repos/{owner}/{repo}/issues/{issue_number}/reactions"],listForIssueComment:["GET /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions"],listForPullRequestReviewComment:["GET /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions"],listForRelease:["GET /repos/{owner}/{repo}/releases/{release_id}/reactions"],listForTeamDiscussionCommentInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions"],listForTeamDiscussionInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions"]},repos:{acceptInvitation:["PATCH /user/repository_invitations/{invitation_id}",{},{renamed:["repos","acceptInvitationForAuthenticatedUser"]}],acceptInvitationForAuthenticatedUser:["PATCH /user/repository_invitations/{invitation_id}"],addAppAccessRestrictions:["POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps",{},{mapToData:"apps"}],addCollaborator:["PUT /repos/{owner}/{repo}/collaborators/{username}"],addStatusCheckContexts:["POST /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts",{},{mapToData:"contexts"}],addTeamAccessRestrictions:["POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams",{},{mapToData:"teams"}],addUserAccessRestrictions:["POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users",{},{mapToData:"users"}],cancelPagesDeployment:["POST /repos/{owner}/{repo}/pages/deployments/{pages_deployment_id}/cancel"],checkAutomatedSecurityFixes:["GET /repos/{owner}/{repo}/automated-security-fixes"],checkCollaborator:["GET /repos/{owner}/{repo}/collaborators/{username}"],checkVulnerabilityAlerts:["GET /repos/{owner}/{repo}/vulnerability-alerts"],codeownersErrors:["GET /repos/{owner}/{repo}/codeowners/errors"],compareCommits:["GET /repos/{owner}/{repo}/compare/{base}...{head}"],compareCommitsWithBasehead:["GET /repos/{owner}/{repo}/compare/{basehead}"],createAutolink:["POST /repos/{owner}/{repo}/autolinks"],createCommitComment:["POST /repos/{owner}/{repo}/commits/{commit_sha}/comments"],createCommitSignatureProtection:["POST /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures"],createCommitStatus:["POST /repos/{owner}/{repo}/statuses/{sha}"],createDeployKey:["POST /repos/{owner}/{repo}/keys"],createDeployment:["POST /repos/{owner}/{repo}/deployments"],createDeploymentBranchPolicy:["POST /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies"],createDeploymentProtectionRule:["POST /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules"],createDeploymentStatus:["POST /repos/{owner}/{repo}/deployments/{deployment_id}/statuses"],createDispatchEvent:["POST /repos/{owner}/{repo}/dispatches"],createForAuthenticatedUser:["POST /user/repos"],createFork:["POST /repos/{owner}/{repo}/forks"],createInOrg:["POST /orgs/{org}/repos"],createOrUpdateCustomPropertiesValues:["PATCH /repos/{owner}/{repo}/properties/values"],createOrUpdateEnvironment:["PUT /repos/{owner}/{repo}/environments/{environment_name}"],createOrUpdateFileContents:["PUT /repos/{owner}/{repo}/contents/{path}"],createOrgRuleset:["POST /orgs/{org}/rulesets"],createPagesDeployment:["POST /repos/{owner}/{repo}/pages/deployments"],createPagesSite:["POST /repos/{owner}/{repo}/pages"],createRelease:["POST /repos/{owner}/{repo}/releases"],createRepoRuleset:["POST /repos/{owner}/{repo}/rulesets"],createTagProtection:["POST /repos/{owner}/{repo}/tags/protection"],createUsingTemplate:["POST /repos/{template_owner}/{template_repo}/generate"],createWebhook:["POST /repos/{owner}/{repo}/hooks"],declineInvitation:["DELETE /user/repository_invitations/{invitation_id}",{},{renamed:["repos","declineInvitationForAuthenticatedUser"]}],declineInvitationForAuthenticatedUser:["DELETE /user/repository_invitations/{invitation_id}"],delete:["DELETE /repos/{owner}/{repo}"],deleteAccessRestrictions:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions"],deleteAdminBranchProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins"],deleteAnEnvironment:["DELETE /repos/{owner}/{repo}/environments/{environment_name}"],deleteAutolink:["DELETE /repos/{owner}/{repo}/autolinks/{autolink_id}"],deleteBranchProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection"],deleteCommitComment:["DELETE /repos/{owner}/{repo}/comments/{comment_id}"],deleteCommitSignatureProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures"],deleteDeployKey:["DELETE /repos/{owner}/{repo}/keys/{key_id}"],deleteDeployment:["DELETE /repos/{owner}/{repo}/deployments/{deployment_id}"],deleteDeploymentBranchPolicy:["DELETE /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}"],deleteFile:["DELETE /repos/{owner}/{repo}/contents/{path}"],deleteInvitation:["DELETE /repos/{owner}/{repo}/invitations/{invitation_id}"],deleteOrgRuleset:["DELETE /orgs/{org}/rulesets/{ruleset_id}"],deletePagesSite:["DELETE /repos/{owner}/{repo}/pages"],deletePullRequestReviewProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews"],deleteRelease:["DELETE /repos/{owner}/{repo}/releases/{release_id}"],deleteReleaseAsset:["DELETE /repos/{owner}/{repo}/releases/assets/{asset_id}"],deleteRepoRuleset:["DELETE /repos/{owner}/{repo}/rulesets/{ruleset_id}"],deleteTagProtection:["DELETE /repos/{owner}/{repo}/tags/protection/{tag_protection_id}"],deleteWebhook:["DELETE /repos/{owner}/{repo}/hooks/{hook_id}"],disableAutomatedSecurityFixes:["DELETE /repos/{owner}/{repo}/automated-security-fixes"],disableDeploymentProtectionRule:["DELETE /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/{protection_rule_id}"],disablePrivateVulnerabilityReporting:["DELETE /repos/{owner}/{repo}/private-vulnerability-reporting"],disableVulnerabilityAlerts:["DELETE /repos/{owner}/{repo}/vulnerability-alerts"],downloadArchive:["GET /repos/{owner}/{repo}/zipball/{ref}",{},{renamed:["repos","downloadZipballArchive"]}],downloadTarballArchive:["GET /repos/{owner}/{repo}/tarball/{ref}"],downloadZipballArchive:["GET /repos/{owner}/{repo}/zipball/{ref}"],enableAutomatedSecurityFixes:["PUT /repos/{owner}/{repo}/automated-security-fixes"],enablePrivateVulnerabilityReporting:["PUT /repos/{owner}/{repo}/private-vulnerability-reporting"],enableVulnerabilityAlerts:["PUT /repos/{owner}/{repo}/vulnerability-alerts"],generateReleaseNotes:["POST /repos/{owner}/{repo}/releases/generate-notes"],get:["GET /repos/{owner}/{repo}"],getAccessRestrictions:["GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions"],getAdminBranchProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins"],getAllDeploymentProtectionRules:["GET /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules"],getAllEnvironments:["GET /repos/{owner}/{repo}/environments"],getAllStatusCheckContexts:["GET /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts"],getAllTopics:["GET /repos/{owner}/{repo}/topics"],getAppsWithAccessToProtectedBranch:["GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps"],getAutolink:["GET /repos/{owner}/{repo}/autolinks/{autolink_id}"],getBranch:["GET /repos/{owner}/{repo}/branches/{branch}"],getBranchProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection"],getBranchRules:["GET /repos/{owner}/{repo}/rules/branches/{branch}"],getClones:["GET /repos/{owner}/{repo}/traffic/clones"],getCodeFrequencyStats:["GET /repos/{owner}/{repo}/stats/code_frequency"],getCollaboratorPermissionLevel:["GET /repos/{owner}/{repo}/collaborators/{username}/permission"],getCombinedStatusForRef:["GET /repos/{owner}/{repo}/commits/{ref}/status"],getCommit:["GET /repos/{owner}/{repo}/commits/{ref}"],getCommitActivityStats:["GET /repos/{owner}/{repo}/stats/commit_activity"],getCommitComment:["GET /repos/{owner}/{repo}/comments/{comment_id}"],getCommitSignatureProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures"],getCommunityProfileMetrics:["GET /repos/{owner}/{repo}/community/profile"],getContent:["GET /repos/{owner}/{repo}/contents/{path}"],getContributorsStats:["GET /repos/{owner}/{repo}/stats/contributors"],getCustomDeploymentProtectionRule:["GET /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/{protection_rule_id}"],getCustomPropertiesValues:["GET /repos/{owner}/{repo}/properties/values"],getDeployKey:["GET /repos/{owner}/{repo}/keys/{key_id}"],getDeployment:["GET /repos/{owner}/{repo}/deployments/{deployment_id}"],getDeploymentBranchPolicy:["GET /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}"],getDeploymentStatus:["GET /repos/{owner}/{repo}/deployments/{deployment_id}/statuses/{status_id}"],getEnvironment:["GET /repos/{owner}/{repo}/environments/{environment_name}"],getLatestPagesBuild:["GET /repos/{owner}/{repo}/pages/builds/latest"],getLatestRelease:["GET /repos/{owner}/{repo}/releases/latest"],getOrgRuleSuite:["GET /orgs/{org}/rulesets/rule-suites/{rule_suite_id}"],getOrgRuleSuites:["GET /orgs/{org}/rulesets/rule-suites"],getOrgRuleset:["GET /orgs/{org}/rulesets/{ruleset_id}"],getOrgRulesets:["GET /orgs/{org}/rulesets"],getPages:["GET /repos/{owner}/{repo}/pages"],getPagesBuild:["GET /repos/{owner}/{repo}/pages/builds/{build_id}"],getPagesDeployment:["GET /repos/{owner}/{repo}/pages/deployments/{pages_deployment_id}"],getPagesHealthCheck:["GET /repos/{owner}/{repo}/pages/health"],getParticipationStats:["GET /repos/{owner}/{repo}/stats/participation"],getPullRequestReviewProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews"],getPunchCardStats:["GET /repos/{owner}/{repo}/stats/punch_card"],getReadme:["GET /repos/{owner}/{repo}/readme"],getReadmeInDirectory:["GET /repos/{owner}/{repo}/readme/{dir}"],getRelease:["GET /repos/{owner}/{repo}/releases/{release_id}"],getReleaseAsset:["GET /repos/{owner}/{repo}/releases/assets/{asset_id}"],getReleaseByTag:["GET /repos/{owner}/{repo}/releases/tags/{tag}"],getRepoRuleSuite:["GET /repos/{owner}/{repo}/rulesets/rule-suites/{rule_suite_id}"],getRepoRuleSuites:["GET /repos/{owner}/{repo}/rulesets/rule-suites"],getRepoRuleset:["GET /repos/{owner}/{repo}/rulesets/{ruleset_id}"],getRepoRulesets:["GET /repos/{owner}/{repo}/rulesets"],getStatusChecksProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks"],getTeamsWithAccessToProtectedBranch:["GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams"],getTopPaths:["GET /repos/{owner}/{repo}/traffic/popular/paths"],getTopReferrers:["GET /repos/{owner}/{repo}/traffic/popular/referrers"],getUsersWithAccessToProtectedBranch:["GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users"],getViews:["GET /repos/{owner}/{repo}/traffic/views"],getWebhook:["GET /repos/{owner}/{repo}/hooks/{hook_id}"],getWebhookConfigForRepo:["GET /repos/{owner}/{repo}/hooks/{hook_id}/config"],getWebhookDelivery:["GET /repos/{owner}/{repo}/hooks/{hook_id}/deliveries/{delivery_id}"],listActivities:["GET /repos/{owner}/{repo}/activity"],listAutolinks:["GET /repos/{owner}/{repo}/autolinks"],listBranches:["GET /repos/{owner}/{repo}/branches"],listBranchesForHeadCommit:["GET /repos/{owner}/{repo}/commits/{commit_sha}/branches-where-head"],listCollaborators:["GET /repos/{owner}/{repo}/collaborators"],listCommentsForCommit:["GET /repos/{owner}/{repo}/commits/{commit_sha}/comments"],listCommitCommentsForRepo:["GET /repos/{owner}/{repo}/comments"],listCommitStatusesForRef:["GET /repos/{owner}/{repo}/commits/{ref}/statuses"],listCommits:["GET /repos/{owner}/{repo}/commits"],listContributors:["GET /repos/{owner}/{repo}/contributors"],listCustomDeploymentRuleIntegrations:["GET /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/apps"],listDeployKeys:["GET /repos/{owner}/{repo}/keys"],listDeploymentBranchPolicies:["GET /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies"],listDeploymentStatuses:["GET /repos/{owner}/{repo}/deployments/{deployment_id}/statuses"],listDeployments:["GET /repos/{owner}/{repo}/deployments"],listForAuthenticatedUser:["GET /user/repos"],listForOrg:["GET /orgs/{org}/repos"],listForUser:["GET /users/{username}/repos"],listForks:["GET /repos/{owner}/{repo}/forks"],listInvitations:["GET /repos/{owner}/{repo}/invitations"],listInvitationsForAuthenticatedUser:["GET /user/repository_invitations"],listLanguages:["GET /repos/{owner}/{repo}/languages"],listPagesBuilds:["GET /repos/{owner}/{repo}/pages/builds"],listPublic:["GET /repositories"],listPullRequestsAssociatedWithCommit:["GET /repos/{owner}/{repo}/commits/{commit_sha}/pulls"],listReleaseAssets:["GET /repos/{owner}/{repo}/releases/{release_id}/assets"],listReleases:["GET /repos/{owner}/{repo}/releases"],listTagProtection:["GET /repos/{owner}/{repo}/tags/protection"],listTags:["GET /repos/{owner}/{repo}/tags"],listTeams:["GET /repos/{owner}/{repo}/teams"],listWebhookDeliveries:["GET /repos/{owner}/{repo}/hooks/{hook_id}/deliveries"],listWebhooks:["GET /repos/{owner}/{repo}/hooks"],merge:["POST /repos/{owner}/{repo}/merges"],mergeUpstream:["POST /repos/{owner}/{repo}/merge-upstream"],pingWebhook:["POST /repos/{owner}/{repo}/hooks/{hook_id}/pings"],redeliverWebhookDelivery:["POST /repos/{owner}/{repo}/hooks/{hook_id}/deliveries/{delivery_id}/attempts"],removeAppAccessRestrictions:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps",{},{mapToData:"apps"}],removeCollaborator:["DELETE /repos/{owner}/{repo}/collaborators/{username}"],removeStatusCheckContexts:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts",{},{mapToData:"contexts"}],removeStatusCheckProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks"],removeTeamAccessRestrictions:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams",{},{mapToData:"teams"}],removeUserAccessRestrictions:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users",{},{mapToData:"users"}],renameBranch:["POST /repos/{owner}/{repo}/branches/{branch}/rename"],replaceAllTopics:["PUT /repos/{owner}/{repo}/topics"],requestPagesBuild:["POST /repos/{owner}/{repo}/pages/builds"],setAdminBranchProtection:["POST /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins"],setAppAccessRestrictions:["PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps",{},{mapToData:"apps"}],setStatusCheckContexts:["PUT /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts",{},{mapToData:"contexts"}],setTeamAccessRestrictions:["PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams",{},{mapToData:"teams"}],setUserAccessRestrictions:["PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users",{},{mapToData:"users"}],testPushWebhook:["POST /repos/{owner}/{repo}/hooks/{hook_id}/tests"],transfer:["POST /repos/{owner}/{repo}/transfer"],update:["PATCH /repos/{owner}/{repo}"],updateBranchProtection:["PUT /repos/{owner}/{repo}/branches/{branch}/protection"],updateCommitComment:["PATCH /repos/{owner}/{repo}/comments/{comment_id}"],updateDeploymentBranchPolicy:["PUT /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}"],updateInformationAboutPagesSite:["PUT /repos/{owner}/{repo}/pages"],updateInvitation:["PATCH /repos/{owner}/{repo}/invitations/{invitation_id}"],updateOrgRuleset:["PUT /orgs/{org}/rulesets/{ruleset_id}"],updatePullRequestReviewProtection:["PATCH /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews"],updateRelease:["PATCH /repos/{owner}/{repo}/releases/{release_id}"],updateReleaseAsset:["PATCH /repos/{owner}/{repo}/releases/assets/{asset_id}"],updateRepoRuleset:["PUT /repos/{owner}/{repo}/rulesets/{ruleset_id}"],updateStatusCheckPotection:["PATCH /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks",{},{renamed:["repos","updateStatusCheckProtection"]}],updateStatusCheckProtection:["PATCH /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks"],updateWebhook:["PATCH /repos/{owner}/{repo}/hooks/{hook_id}"],updateWebhookConfigForRepo:["PATCH /repos/{owner}/{repo}/hooks/{hook_id}/config"],uploadReleaseAsset:["POST /repos/{owner}/{repo}/releases/{release_id}/assets{?name,label}",{baseUrl:"https://uploads.github.com"}]},search:{code:["GET /search/code"],commits:["GET /search/commits"],issuesAndPullRequests:["GET /search/issues"],labels:["GET /search/labels"],repos:["GET /search/repositories"],topics:["GET /search/topics"],users:["GET /search/users"]},secretScanning:{getAlert:["GET /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}"],listAlertsForEnterprise:["GET /enterprises/{enterprise}/secret-scanning/alerts"],listAlertsForOrg:["GET /orgs/{org}/secret-scanning/alerts"],listAlertsForRepo:["GET /repos/{owner}/{repo}/secret-scanning/alerts"],listLocationsForAlert:["GET /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}/locations"],updateAlert:["PATCH /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}"]},securityAdvisories:{createFork:["POST /repos/{owner}/{repo}/security-advisories/{ghsa_id}/forks"],createPrivateVulnerabilityReport:["POST /repos/{owner}/{repo}/security-advisories/reports"],createRepositoryAdvisory:["POST /repos/{owner}/{repo}/security-advisories"],createRepositoryAdvisoryCveRequest:["POST /repos/{owner}/{repo}/security-advisories/{ghsa_id}/cve"],getGlobalAdvisory:["GET /advisories/{ghsa_id}"],getRepositoryAdvisory:["GET /repos/{owner}/{repo}/security-advisories/{ghsa_id}"],listGlobalAdvisories:["GET /advisories"],listOrgRepositoryAdvisories:["GET /orgs/{org}/security-advisories"],listRepositoryAdvisories:["GET /repos/{owner}/{repo}/security-advisories"],updateRepositoryAdvisory:["PATCH /repos/{owner}/{repo}/security-advisories/{ghsa_id}"]},teams:{addOrUpdateMembershipForUserInOrg:["PUT /orgs/{org}/teams/{team_slug}/memberships/{username}"],addOrUpdateProjectPermissionsInOrg:["PUT /orgs/{org}/teams/{team_slug}/projects/{project_id}"],addOrUpdateRepoPermissionsInOrg:["PUT /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}"],checkPermissionsForProjectInOrg:["GET /orgs/{org}/teams/{team_slug}/projects/{project_id}"],checkPermissionsForRepoInOrg:["GET /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}"],create:["POST /orgs/{org}/teams"],createDiscussionCommentInOrg:["POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments"],createDiscussionInOrg:["POST /orgs/{org}/teams/{team_slug}/discussions"],deleteDiscussionCommentInOrg:["DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}"],deleteDiscussionInOrg:["DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}"],deleteInOrg:["DELETE /orgs/{org}/teams/{team_slug}"],getByName:["GET /orgs/{org}/teams/{team_slug}"],getDiscussionCommentInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}"],getDiscussionInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}"],getMembershipForUserInOrg:["GET /orgs/{org}/teams/{team_slug}/memberships/{username}"],list:["GET /orgs/{org}/teams"],listChildInOrg:["GET /orgs/{org}/teams/{team_slug}/teams"],listDiscussionCommentsInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments"],listDiscussionsInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions"],listForAuthenticatedUser:["GET /user/teams"],listMembersInOrg:["GET /orgs/{org}/teams/{team_slug}/members"],listPendingInvitationsInOrg:["GET /orgs/{org}/teams/{team_slug}/invitations"],listProjectsInOrg:["GET /orgs/{org}/teams/{team_slug}/projects"],listReposInOrg:["GET /orgs/{org}/teams/{team_slug}/repos"],removeMembershipForUserInOrg:["DELETE /orgs/{org}/teams/{team_slug}/memberships/{username}"],removeProjectInOrg:["DELETE /orgs/{org}/teams/{team_slug}/projects/{project_id}"],removeRepoInOrg:["DELETE /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}"],updateDiscussionCommentInOrg:["PATCH /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}"],updateDiscussionInOrg:["PATCH /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}"],updateInOrg:["PATCH /orgs/{org}/teams/{team_slug}"]},users:{addEmailForAuthenticated:["POST /user/emails",{},{renamed:["users","addEmailForAuthenticatedUser"]}],addEmailForAuthenticatedUser:["POST /user/emails"],addSocialAccountForAuthenticatedUser:["POST /user/social_accounts"],block:["PUT /user/blocks/{username}"],checkBlocked:["GET /user/blocks/{username}"],checkFollowingForUser:["GET /users/{username}/following/{target_user}"],checkPersonIsFollowedByAuthenticated:["GET /user/following/{username}"],createGpgKeyForAuthenticated:["POST /user/gpg_keys",{},{renamed:["users","createGpgKeyForAuthenticatedUser"]}],createGpgKeyForAuthenticatedUser:["POST /user/gpg_keys"],createPublicSshKeyForAuthenticated:["POST /user/keys",{},{renamed:["users","createPublicSshKeyForAuthenticatedUser"]}],createPublicSshKeyForAuthenticatedUser:["POST /user/keys"],createSshSigningKeyForAuthenticatedUser:["POST /user/ssh_signing_keys"],deleteEmailForAuthenticated:["DELETE /user/emails",{},{renamed:["users","deleteEmailForAuthenticatedUser"]}],deleteEmailForAuthenticatedUser:["DELETE /user/emails"],deleteGpgKeyForAuthenticated:["DELETE /user/gpg_keys/{gpg_key_id}",{},{renamed:["users","deleteGpgKeyForAuthenticatedUser"]}],deleteGpgKeyForAuthenticatedUser:["DELETE /user/gpg_keys/{gpg_key_id}"],deletePublicSshKeyForAuthenticated:["DELETE /user/keys/{key_id}",{},{renamed:["users","deletePublicSshKeyForAuthenticatedUser"]}],deletePublicSshKeyForAuthenticatedUser:["DELETE /user/keys/{key_id}"],deleteSocialAccountForAuthenticatedUser:["DELETE /user/social_accounts"],deleteSshSigningKeyForAuthenticatedUser:["DELETE /user/ssh_signing_keys/{ssh_signing_key_id}"],follow:["PUT /user/following/{username}"],getAuthenticated:["GET /user"],getByUsername:["GET /users/{username}"],getContextForUser:["GET /users/{username}/hovercard"],getGpgKeyForAuthenticated:["GET /user/gpg_keys/{gpg_key_id}",{},{renamed:["users","getGpgKeyForAuthenticatedUser"]}],getGpgKeyForAuthenticatedUser:["GET /user/gpg_keys/{gpg_key_id}"],getPublicSshKeyForAuthenticated:["GET /user/keys/{key_id}",{},{renamed:["users","getPublicSshKeyForAuthenticatedUser"]}],getPublicSshKeyForAuthenticatedUser:["GET /user/keys/{key_id}"],getSshSigningKeyForAuthenticatedUser:["GET /user/ssh_signing_keys/{ssh_signing_key_id}"],list:["GET /users"],listBlockedByAuthenticated:["GET /user/blocks",{},{renamed:["users","listBlockedByAuthenticatedUser"]}],listBlockedByAuthenticatedUser:["GET /user/blocks"],listEmailsForAuthenticated:["GET /user/emails",{},{renamed:["users","listEmailsForAuthenticatedUser"]}],listEmailsForAuthenticatedUser:["GET /user/emails"],listFollowedByAuthenticated:["GET /user/following",{},{renamed:["users","listFollowedByAuthenticatedUser"]}],listFollowedByAuthenticatedUser:["GET /user/following"],listFollowersForAuthenticatedUser:["GET /user/followers"],listFollowersForUser:["GET /users/{username}/followers"],listFollowingForUser:["GET /users/{username}/following"],listGpgKeysForAuthenticated:["GET /user/gpg_keys",{},{renamed:["users","listGpgKeysForAuthenticatedUser"]}],listGpgKeysForAuthenticatedUser:["GET /user/gpg_keys"],listGpgKeysForUser:["GET /users/{username}/gpg_keys"],listPublicEmailsForAuthenticated:["GET /user/public_emails",{},{renamed:["users","listPublicEmailsForAuthenticatedUser"]}],listPublicEmailsForAuthenticatedUser:["GET /user/public_emails"],listPublicKeysForUser:["GET /users/{username}/keys"],listPublicSshKeysForAuthenticated:["GET /user/keys",{},{renamed:["users","listPublicSshKeysForAuthenticatedUser"]}],listPublicSshKeysForAuthenticatedUser:["GET /user/keys"],listSocialAccountsForAuthenticatedUser:["GET /user/social_accounts"],listSocialAccountsForUser:["GET /users/{username}/social_accounts"],listSshSigningKeysForAuthenticatedUser:["GET /user/ssh_signing_keys"],listSshSigningKeysForUser:["GET /users/{username}/ssh_signing_keys"],setPrimaryEmailVisibilityForAuthenticated:["PATCH /user/email/visibility",{},{renamed:["users","setPrimaryEmailVisibilityForAuthenticatedUser"]}],setPrimaryEmailVisibilityForAuthenticatedUser:["PATCH /user/email/visibility"],unblock:["DELETE /user/blocks/{username}"],unfollow:["DELETE /user/following/{username}"],updateAuthenticated:["PATCH /user"]}};var u=d;var p=new Map;for(const[r,s]of Object.entries(u)){for(const[i,a]of Object.entries(s)){const[s,A,c]=a;const[l,d]=s.split(/ /);const u=Object.assign({method:l,url:d},A);if(!p.has(r)){p.set(r,new Map)}p.get(r).set(i,{scope:r,methodName:i,endpointDefaults:u,decorations:c})}}var g={has({scope:r},s){return p.get(r).has(s)},getOwnPropertyDescriptor(r,s){return{value:this.get(r,s),configurable:true,writable:true,enumerable:true}},defineProperty(r,s,i){Object.defineProperty(r.cache,s,i);return true},deleteProperty(r,s){delete r.cache[s];return true},ownKeys({scope:r}){return[...p.get(r).keys()]},set(r,s,i){return r.cache[s]=i},get({octokit:r,scope:s,cache:i},a){if(i[a]){return i[a]}const A=p.get(s).get(a);if(!A){return void 0}const{endpointDefaults:c,decorations:l}=A;if(l){i[a]=decorate(r,s,a,c,l)}else{i[a]=r.request.defaults(c)}return i[a]}};function endpointsToMethods(r){const s={};for(const i of p.keys()){s[i]=new Proxy({octokit:r,scope:i,cache:{}},g)}return s}function decorate(r,s,i,a,A){const c=r.request.defaults(a);function withDecorations(...a){let l=c.endpoint.merge(...a);if(A.mapToData){l=Object.assign({},l,{data:l[A.mapToData],[A.mapToData]:void 0});return c(l)}if(A.renamed){const[a,c]=A.renamed;r.log.warn(`octokit.${s}.${i}() has been renamed to octokit.${a}.${c}()`)}if(A.deprecated){r.log.warn(A.deprecated)}if(A.renamedParameters){const l=c.endpoint.merge(...a);for(const[a,c]of Object.entries(A.renamedParameters)){if(a in l){r.log.warn(`"${a}" parameter is deprecated for "octokit.${s}.${i}()". Use "${c}" instead`);if(!(c in l)){l[c]=l[a]}delete l[a]}}return c(l)}return c(...a)}return Object.assign(withDecorations,c)}function restEndpointMethods(r){const s=endpointsToMethods(r);return{rest:s}}restEndpointMethods.VERSION=l;function legacyRestEndpointMethods(r){const s=endpointsToMethods(r);return{...s,rest:s}}legacyRestEndpointMethods.VERSION=l;0&&0},8317:(r,s,i)=>{"use strict";var a=Object.defineProperty;var A=Object.getOwnPropertyDescriptor;var c=Object.getOwnPropertyNames;var l=Object.prototype.hasOwnProperty;var __export=(r,s)=>{for(var i in s)a(r,i,{get:s[i],enumerable:true})};var __copyProps=(r,s,i,d)=>{if(s&&typeof s==="object"||typeof s==="function"){for(let u of c(s))if(!l.call(r,u)&&u!==i)a(r,u,{get:()=>s[u],enumerable:!(d=A(s,u))||d.enumerable})}return r};var __toCommonJS=r=>__copyProps(a({},"__esModule",{value:true}),r);var d={};__export(d,{request:()=>y});r.exports=__toCommonJS(d);var u=i(44515);var p=i(45030);var g="8.1.4";var h=i(63287);var C=i(10537);function getBufferResponse(r){return r.arrayBuffer()}function fetchWrapper(r){var s,i,a;const A=r.request&&r.request.log?r.request.log:console;const c=((s=r.request)==null?void 0:s.parseSuccessResponseBody)!==false;if((0,h.isPlainObject)(r.body)||Array.isArray(r.body)){r.body=JSON.stringify(r.body)}let l={};let d;let u;let{fetch:p}=globalThis;if((i=r.request)==null?void 0:i.fetch){p=r.request.fetch}if(!p){throw new Error("fetch is not set. Please pass a fetch implementation as new Octokit({ request: { fetch }}). Learn more at https://github.com/octokit/octokit.js/#fetch-missing")}return p(r.url,{method:r.method,body:r.body,headers:r.headers,signal:(a=r.request)==null?void 0:a.signal,...r.body&&{duplex:"half"}}).then((async s=>{u=s.url;d=s.status;for(const r of s.headers){l[r[0]]=r[1]}if("deprecation"in l){const s=l.link&&l.link.match(/<([^>]+)>; rel="deprecation"/);const i=s&&s.pop();A.warn(`[@octokit/request] "${r.method} ${r.url}" is deprecated. It is scheduled to be removed on ${l.sunset}${i?`. See ${i}`:""}`)}if(d===204||d===205){return}if(r.method==="HEAD"){if(d<400){return}throw new C.RequestError(s.statusText,d,{response:{url:u,status:d,headers:l,data:void 0},request:r})}if(d===304){throw new C.RequestError("Not modified",d,{response:{url:u,status:d,headers:l,data:await getResponseData(s)},request:r})}if(d>=400){const i=await getResponseData(s);const a=new C.RequestError(toErrorMessage(i),d,{response:{url:u,status:d,headers:l,data:i},request:r});throw a}return c?await getResponseData(s):s.body})).then((r=>({status:d,url:u,headers:l,data:r}))).catch((s=>{if(s instanceof C.RequestError)throw s;else if(s.name==="AbortError")throw s;let i=s.message;if(s.name==="TypeError"&&"cause"in s){if(s.cause instanceof Error){i=s.cause.message}else if(typeof s.cause==="string"){i=s.cause}}throw new C.RequestError(i,500,{request:r})}))}async function getResponseData(r){const s=r.headers.get("content-type");if(/application\/json/.test(s)){return r.json()}if(!s||/^text\/|charset=utf-8$/.test(s)){return r.text()}return getBufferResponse(r)}function toErrorMessage(r){if(typeof r==="string")return r;if("message"in r){if(Array.isArray(r.errors)){return`${r.message}: ${r.errors.map(JSON.stringify).join(", ")}`}return r.message}return`Unknown error: ${JSON.stringify(r)}`}function withDefaults(r,s){const i=r.defaults(s);const newApi=function(r,s){const a=i.merge(r,s);if(!a.request||!a.request.hook){return fetchWrapper(i.parse(a))}const request2=(r,s)=>fetchWrapper(i.parse(i.merge(r,s)));Object.assign(request2,{endpoint:i,defaults:withDefaults.bind(null,i)});return a.request.hook(request2,a)};return Object.assign(newApi,{endpoint:i,defaults:withDefaults.bind(null,i)})}var y=withDefaults(u.endpoint,{headers:{"user-agent":`octokit-request.js/${g} ${(0,p.getUserAgent)()}`}});0&&0},2856:(r,s,i)=>{"use strict";const a=i(84492).Writable;const A=i(47261).inherits;const c=i(88534);const l=i(38710);const d=i(90333);const u=45;const p=Buffer.from("-");const g=Buffer.from("\r\n");const EMPTY_FN=function(){};function Dicer(r){if(!(this instanceof Dicer)){return new Dicer(r)}a.call(this,r);if(!r||!r.headerFirst&&typeof r.boundary!=="string"){throw new TypeError("Boundary required")}if(typeof r.boundary==="string"){this.setBoundary(r.boundary)}else{this._bparser=undefined}this._headerFirst=r.headerFirst;this._dashes=0;this._parts=0;this._finished=false;this._realFinish=false;this._isPreamble=true;this._justMatched=false;this._firstWrite=true;this._inHeader=true;this._part=undefined;this._cb=undefined;this._ignoreData=false;this._partOpts={highWaterMark:r.partHwm};this._pause=false;const s=this;this._hparser=new d(r);this._hparser.on("header",(function(r){s._inHeader=false;s._part.emit("header",r)}))}A(Dicer,a);Dicer.prototype.emit=function(r){if(r==="finish"&&!this._realFinish){if(!this._finished){const r=this;process.nextTick((function(){r.emit("error",new Error("Unexpected end of multipart data"));if(r._part&&!r._ignoreData){const s=r._isPreamble?"Preamble":"Part";r._part.emit("error",new Error(s+" terminated early due to unexpected end of multipart data"));r._part.push(null);process.nextTick((function(){r._realFinish=true;r.emit("finish");r._realFinish=false}));return}r._realFinish=true;r.emit("finish");r._realFinish=false}))}}else{a.prototype.emit.apply(this,arguments)}};Dicer.prototype._write=function(r,s,i){if(!this._hparser&&!this._bparser){return i()}if(this._headerFirst&&this._isPreamble){if(!this._part){this._part=new l(this._partOpts);if(this._events.preamble){this.emit("preamble",this._part)}else{this._ignore()}}const s=this._hparser.push(r);if(!this._inHeader&&s!==undefined&&s{"use strict";const a=i(15673).EventEmitter;const A=i(47261).inherits;const c=i(49692);const l=i(88534);const d=Buffer.from("\r\n\r\n");const u=/\r\n/g;const p=/^([^:]+):[ \t]?([\x00-\xFF]+)?$/;function HeaderParser(r){a.call(this);r=r||{};const s=this;this.nread=0;this.maxed=false;this.npairs=0;this.maxHeaderPairs=c(r,"maxHeaderPairs",2e3);this.maxHeaderSize=c(r,"maxHeaderSize",80*1024);this.buffer="";this.header={};this.finished=false;this.ss=new l(d);this.ss.on("info",(function(r,i,a,A){if(i&&!s.maxed){if(s.nread+A-a>=s.maxHeaderSize){A=s.maxHeaderSize-s.nread+a;s.nread=s.maxHeaderSize;s.maxed=true}else{s.nread+=A-a}s.buffer+=i.toString("binary",a,A)}if(r){s._finish()}}))}A(HeaderParser,a);HeaderParser.prototype.push=function(r){const s=this.ss.push(r);if(this.finished){return s}};HeaderParser.prototype.reset=function(){this.finished=false;this.buffer="";this.header={};this.ss.reset()};HeaderParser.prototype._finish=function(){if(this.buffer){this._parseHeader()}this.ss.matches=this.ss.maxMatches;const r=this.header;this.header={};this.buffer="";this.finished=true;this.nread=this.npairs=0;this.maxed=false;this.emit("header",r)};HeaderParser.prototype._parseHeader=function(){if(this.npairs===this.maxHeaderPairs){return}const r=this.buffer.split(u);const s=r.length;let i,a;for(var A=0;A{"use strict";const a=i(47261).inherits;const A=i(84492).Readable;function PartStream(r){A.call(this,r)}a(PartStream,A);PartStream.prototype._read=function(r){};r.exports=PartStream},88534:(r,s,i)=>{"use strict";const a=i(15673).EventEmitter;const A=i(47261).inherits;function SBMH(r){if(typeof r==="string"){r=Buffer.from(r)}if(!Buffer.isBuffer(r)){throw new TypeError("The needle has to be a String or a Buffer.")}const s=r.length;if(s===0){throw new Error("The needle cannot be an empty String/Buffer.")}if(s>256){throw new Error("The needle cannot have a length bigger than 256.")}this.maxMatches=Infinity;this.matches=0;this._occ=new Array(256).fill(s);this._lookbehind_size=0;this._needle=r;this._bufpos=0;this._lookbehind=Buffer.alloc(s);for(var i=0;i=0){this.emit("info",false,this._lookbehind,0,this._lookbehind_size);this._lookbehind_size=0}else{const i=this._lookbehind_size+c;if(i>0){this.emit("info",false,this._lookbehind,0,i)}this._lookbehind.copy(this._lookbehind,0,i,this._lookbehind_size-i);this._lookbehind_size-=i;r.copy(this._lookbehind,this._lookbehind_size);this._lookbehind_size+=s;this._bufpos=s;return s}}c+=(c>=0)*this._bufpos;if(r.indexOf(i,c)!==-1){c=r.indexOf(i,c);++this.matches;if(c>0){this.emit("info",true,r,this._bufpos,c)}else{this.emit("info",true)}return this._bufpos=c+a}else{c=s-a}while(c0){this.emit("info",false,r,this._bufpos,c{"use strict";const a=i(84492).Writable;const{inherits:A}=i(47261);const c=i(2856);const l=i(90415);const d=i(16780);const u=i(34426);function Busboy(r){if(!(this instanceof Busboy)){return new Busboy(r)}if(typeof r!=="object"){throw new TypeError("Busboy expected an options-Object.")}if(typeof r.headers!=="object"){throw new TypeError("Busboy expected an options-Object with headers-attribute.")}if(typeof r.headers["content-type"]!=="string"){throw new TypeError("Missing Content-Type-header.")}const{headers:s,...i}=r;this.opts={autoDestroy:false,...i};a.call(this,this.opts);this._done=false;this._parser=this.getParserByHeaders(s);this._finished=false}A(Busboy,a);Busboy.prototype.emit=function(r){if(r==="finish"){if(!this._done){this._parser?.end();return}else if(this._finished){return}this._finished=true}a.prototype.emit.apply(this,arguments)};Busboy.prototype.getParserByHeaders=function(r){const s=u(r["content-type"]);const i={defCharset:this.opts.defCharset,fileHwm:this.opts.fileHwm,headers:r,highWaterMark:this.opts.highWaterMark,isPartAFile:this.opts.isPartAFile,limits:this.opts.limits,parsedConType:s,preservePath:this.opts.preservePath};if(l.detect.test(s[0])){return new l(this,i)}if(d.detect.test(s[0])){return new d(this,i)}throw new Error("Unsupported Content-Type.")};Busboy.prototype._write=function(r,s,i){this._parser.write(r,i)};r.exports=Busboy;r.exports["default"]=Busboy;r.exports.Busboy=Busboy;r.exports.Dicer=c},90415:(r,s,i)=>{"use strict";const{Readable:a}=i(84492);const{inherits:A}=i(47261);const c=i(2856);const l=i(34426);const d=i(99136);const u=i(60496);const p=i(49692);const g=/^boundary$/i;const h=/^form-data$/i;const C=/^charset$/i;const y=/^filename$/i;const I=/^name$/i;Multipart.detect=/^multipart\/form-data/i;function Multipart(r,s){let i;let a;const A=this;let B;const b=s.limits;const Q=s.isPartAFile||((r,s,i)=>s==="application/octet-stream"||i!==undefined);const w=s.parsedConType||[];const v=s.defCharset||"utf8";const S=s.preservePath;const R={highWaterMark:s.fileHwm};for(i=0,a=w.length;iT){A.parser.removeListener("part",onPart);A.parser.on("part",skipPart);r.hitPartsLimit=true;r.emit("partsLimit");return skipPart(s)}if(H){const r=H;r.emit("end");r.removeAllListeners("end")}s.on("header",(function(c){let p;let g;let B;let b;let w;let T;let _=0;if(c["content-type"]){B=l(c["content-type"][0]);if(B[0]){p=B[0].toLowerCase();for(i=0,a=B.length;ix){const a=x-_+r.length;if(a>0){i.push(r.slice(0,a))}i.truncated=true;i.bytesRead=x;s.removeAllListeners("data");i.emit("limit");return}else if(!i.push(r)){A._pause=true}i.bytesRead=_};G=function(){U=undefined;i.push(null)}}else{if(L===k){if(!r.hitFieldsLimit){r.hitFieldsLimit=true;r.emit("fieldsLimit")}return skipPart(s)}++L;++M;let i="";let a=false;H=s;P=function(r){if((_+=r.length)>N){const A=N-(_-r.length);i+=r.toString("binary",0,A);a=true;s.removeAllListeners("data")}else{i+=r.toString("binary")}};G=function(){H=undefined;if(i.length){i=d(i,"binary",b)}r.emit("field",g,i,false,a,w,p);--M;checkFinished()}}s._readableState.sync=false;s.on("data",P);s.on("end",G)})).on("error",(function(r){if(U){U.emit("error",r)}}))})).on("error",(function(s){r.emit("error",s)})).on("finish",(function(){G=true;checkFinished()}))}Multipart.prototype.write=function(r,s){const i=this.parser.write(r);if(i&&!this._pause){s()}else{this._needDrain=!i;this._cb=s}};Multipart.prototype.end=function(){const r=this;if(r.parser.writable){r.parser.end()}else if(!r._boy._done){process.nextTick((function(){r._boy._done=true;r._boy.emit("finish")}))}};function skipPart(r){r.resume()}function FileStream(r){a.call(this,r);this.bytesRead=0;this.truncated=false}A(FileStream,a);FileStream.prototype._read=function(r){};r.exports=Multipart},16780:(r,s,i)=>{"use strict";const a=i(89730);const A=i(99136);const c=i(49692);const l=/^charset$/i;UrlEncoded.detect=/^application\/x-www-form-urlencoded/i;function UrlEncoded(r,s){const i=s.limits;const A=s.parsedConType;this.boy=r;this.fieldSizeLimit=c(i,"fieldSize",1*1024*1024);this.fieldNameSizeLimit=c(i,"fieldNameSize",100);this.fieldsLimit=c(i,"fields",Infinity);let d;for(var u=0,p=A.length;ul){this._key+=this.decoder.write(r.toString("binary",l,i))}this._state="val";this._hitLimit=false;this._checkingBytes=true;this._val="";this._bytesVal=0;this._valTrunc=false;this.decoder.reset();l=i+1}else if(a!==undefined){++this._fields;let i;const c=this._keyTrunc;if(a>l){i=this._key+=this.decoder.write(r.toString("binary",l,a))}else{i=this._key}this._hitLimit=false;this._checkingBytes=true;this._key="";this._bytesKey=0;this._keyTrunc=false;this.decoder.reset();if(i.length){this.boy.emit("field",A(i,"binary",this.charset),"",c,false)}l=a+1;if(this._fields===this.fieldsLimit){return s()}}else if(this._hitLimit){if(c>l){this._key+=this.decoder.write(r.toString("binary",l,c))}l=c;if((this._bytesKey=this._key.length)===this.fieldNameSizeLimit){this._checkingBytes=false;this._keyTrunc=true}}else{if(ll){this._val+=this.decoder.write(r.toString("binary",l,a))}this.boy.emit("field",A(this._key,"binary",this.charset),A(this._val,"binary",this.charset),this._keyTrunc,this._valTrunc);this._state="key";this._hitLimit=false;this._checkingBytes=true;this._key="";this._bytesKey=0;this._keyTrunc=false;this.decoder.reset();l=a+1;if(this._fields===this.fieldsLimit){return s()}}else if(this._hitLimit){if(c>l){this._val+=this.decoder.write(r.toString("binary",l,c))}l=c;if(this._val===""&&this.fieldSizeLimit===0||(this._bytesVal=this._val.length)===this.fieldSizeLimit){this._checkingBytes=false;this._valTrunc=true}}else{if(l0){this.boy.emit("field",A(this._key,"binary",this.charset),"",this._keyTrunc,false)}else if(this._state==="val"){this.boy.emit("field",A(this._key,"binary",this.charset),A(this._val,"binary",this.charset),this._keyTrunc,this._valTrunc)}this.boy._done=true;this.boy.emit("finish")};r.exports=UrlEncoded},89730:r=>{"use strict";const s=/\+/g;const i=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];function Decoder(){this.buffer=undefined}Decoder.prototype.write=function(r){r=r.replace(s," ");let a="";let A=0;let c=0;const l=r.length;for(;Ac){a+=r.substring(c,A);c=A}this.buffer="";++c}}if(c{"use strict";r.exports=function basename(r){if(typeof r!=="string"){return""}for(var s=r.length-1;s>=0;--s){switch(r.charCodeAt(s)){case 47:case 92:r=r.slice(s+1);return r===".."||r==="."?"":r}}return r===".."||r==="."?"":r}},99136:r=>{"use strict";const s=new TextDecoder("utf-8");const i=new Map([["utf-8",s],["utf8",s]]);function decodeText(r,s,a){if(r){if(i.has(a)){try{return i.get(a).decode(Buffer.from(r,s))}catch(r){}}else{try{i.set(a,new TextDecoder(a));return i.get(a).decode(Buffer.from(r,s))}catch(r){}}}return r}r.exports=decodeText},49692:r=>{"use strict";r.exports=function getLimit(r,s,i){if(!r||r[s]===undefined||r[s]===null){return i}if(typeof r[s]!=="number"||isNaN(r[s])){throw new TypeError("Limit "+s+" is not a valid number")}return r[s]}},34426:(r,s,i)=>{"use strict";const a=i(99136);const A=/%([a-fA-F0-9]{2})/g;function encodedReplacer(r,s){return String.fromCharCode(parseInt(s,16))}function parseParams(r){const s=[];let i="key";let c="";let l=false;let d=false;let u=0;let p="";for(var g=0,h=r.length;g{"use strict";Object.defineProperty(s,"__esModule",{value:true});const i=/^v1\./;const a=/^ghs_/;const A=/^ghu_/;async function auth(r){const s=r.split(/\./).length===3;const c=i.test(r)||a.test(r);const l=A.test(r);const d=s?"app":c?"installation":l?"user-to-server":"oauth";return{type:"token",token:r,tokenType:d}}function withAuthorizationPrefix(r){if(r.split(/\./).length===3){return`bearer ${r}`}return`token ${r}`}async function hook(r,s,i,a){const A=s.endpoint.merge(i,a);A.headers.authorization=withAuthorizationPrefix(r);return s(A)}const c=function createTokenAuth(r){if(!r){throw new Error("[@octokit/auth-token] No token passed to createTokenAuth")}if(typeof r!=="string"){throw new Error("[@octokit/auth-token] Token passed to createTokenAuth is not a string")}r=r.replace(/^(token|bearer) +/i,"");return Object.assign(auth.bind(null,r),{hook:hook.bind(null,r)})};s.createTokenAuth=c},76762:(r,s,i)=>{"use strict";Object.defineProperty(s,"__esModule",{value:true});var a=i(45030);var A=i(83682);var c=i(36234);var l=i(88467);var d=i(40334);function _objectWithoutPropertiesLoose(r,s){if(r==null)return{};var i={};var a=Object.keys(r);var A,c;for(c=0;c=0)continue;i[A]=r[A]}return i}function _objectWithoutProperties(r,s){if(r==null)return{};var i=_objectWithoutPropertiesLoose(r,s);var a,A;if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(r);for(A=0;A=0)continue;if(!Object.prototype.propertyIsEnumerable.call(r,a))continue;i[a]=r[a]}}return i}const u="3.6.0";const p=["authStrategy"];class Octokit{constructor(r={}){const s=new A.Collection;const i={baseUrl:c.request.endpoint.DEFAULTS.baseUrl,headers:{},request:Object.assign({},r.request,{hook:s.bind(null,"request")}),mediaType:{previews:[],format:""}};i.headers["user-agent"]=[r.userAgent,`octokit-core.js/${u} ${a.getUserAgent()}`].filter(Boolean).join(" ");if(r.baseUrl){i.baseUrl=r.baseUrl}if(r.previews){i.mediaType.previews=r.previews}if(r.timeZone){i.headers["time-zone"]=r.timeZone}this.request=c.request.defaults(i);this.graphql=l.withCustomRequest(this.request).defaults(i);this.log=Object.assign({debug:()=>{},info:()=>{},warn:console.warn.bind(console),error:console.error.bind(console)},r.log);this.hook=s;if(!r.authStrategy){if(!r.auth){this.auth=async()=>({type:"unauthenticated"})}else{const i=d.createTokenAuth(r.auth);s.wrap("request",i.hook);this.auth=i}}else{const{authStrategy:i}=r,a=_objectWithoutProperties(r,p);const A=i(Object.assign({request:this.request,log:this.log,octokit:this,octokitOptions:a},r.auth));s.wrap("request",A.hook);this.auth=A}const g=this.constructor;g.plugins.forEach((s=>{Object.assign(this,s(this,r))}))}static defaults(r){const s=class extends(this){constructor(...s){const i=s[0]||{};if(typeof r==="function"){super(r(i));return}super(Object.assign({},r,i,i.userAgent&&r.userAgent?{userAgent:`${i.userAgent} ${r.userAgent}`}:null))}};return s}static plugin(...r){var s;const i=this.plugins;const a=(s=class extends(this){},s.plugins=i.concat(r.filter((r=>!i.includes(r)))),s);return a}}Octokit.VERSION=u;Octokit.plugins=[];s.Octokit=Octokit},59440:(r,s,i)=>{"use strict";Object.defineProperty(s,"__esModule",{value:true});var a=i(63287);var A=i(45030);function lowercaseKeys(r){if(!r){return{}}return Object.keys(r).reduce(((s,i)=>{s[i.toLowerCase()]=r[i];return s}),{})}function mergeDeep(r,s){const i=Object.assign({},r);Object.keys(s).forEach((A=>{if(a.isPlainObject(s[A])){if(!(A in r))Object.assign(i,{[A]:s[A]});else i[A]=mergeDeep(r[A],s[A])}else{Object.assign(i,{[A]:s[A]})}}));return i}function removeUndefinedProperties(r){for(const s in r){if(r[s]===undefined){delete r[s]}}return r}function merge(r,s,i){if(typeof s==="string"){let[r,a]=s.split(" ");i=Object.assign(a?{method:r,url:a}:{url:r},i)}else{i=Object.assign({},s)}i.headers=lowercaseKeys(i.headers);removeUndefinedProperties(i);removeUndefinedProperties(i.headers);const a=mergeDeep(r||{},i);if(r&&r.mediaType.previews.length){a.mediaType.previews=r.mediaType.previews.filter((r=>!a.mediaType.previews.includes(r))).concat(a.mediaType.previews)}a.mediaType.previews=a.mediaType.previews.map((r=>r.replace(/-preview/,"")));return a}function addQueryParameters(r,s){const i=/\?/.test(r)?"&":"?";const a=Object.keys(s);if(a.length===0){return r}return r+i+a.map((r=>{if(r==="q"){return"q="+s.q.split("+").map(encodeURIComponent).join("+")}return`${r}=${encodeURIComponent(s[r])}`})).join("&")}const c=/\{[^}]+\}/g;function removeNonChars(r){return r.replace(/^\W+|\W+$/g,"").split(/,/)}function extractUrlVariableNames(r){const s=r.match(c);if(!s){return[]}return s.map(removeNonChars).reduce(((r,s)=>r.concat(s)),[])}function omit(r,s){return Object.keys(r).filter((r=>!s.includes(r))).reduce(((s,i)=>{s[i]=r[i];return s}),{})}function encodeReserved(r){return r.split(/(%[0-9A-Fa-f]{2})/g).map((function(r){if(!/%[0-9A-Fa-f]/.test(r)){r=encodeURI(r).replace(/%5B/g,"[").replace(/%5D/g,"]")}return r})).join("")}function encodeUnreserved(r){return encodeURIComponent(r).replace(/[!'()*]/g,(function(r){return"%"+r.charCodeAt(0).toString(16).toUpperCase()}))}function encodeValue(r,s,i){s=r==="+"||r==="#"?encodeReserved(s):encodeUnreserved(s);if(i){return encodeUnreserved(i)+"="+s}else{return s}}function isDefined(r){return r!==undefined&&r!==null}function isKeyOperator(r){return r===";"||r==="&"||r==="?"}function getValues(r,s,i,a){var A=r[i],c=[];if(isDefined(A)&&A!==""){if(typeof A==="string"||typeof A==="number"||typeof A==="boolean"){A=A.toString();if(a&&a!=="*"){A=A.substring(0,parseInt(a,10))}c.push(encodeValue(s,A,isKeyOperator(s)?i:""))}else{if(a==="*"){if(Array.isArray(A)){A.filter(isDefined).forEach((function(r){c.push(encodeValue(s,r,isKeyOperator(s)?i:""))}))}else{Object.keys(A).forEach((function(r){if(isDefined(A[r])){c.push(encodeValue(s,A[r],r))}}))}}else{const r=[];if(Array.isArray(A)){A.filter(isDefined).forEach((function(i){r.push(encodeValue(s,i))}))}else{Object.keys(A).forEach((function(i){if(isDefined(A[i])){r.push(encodeUnreserved(i));r.push(encodeValue(s,A[i].toString()))}}))}if(isKeyOperator(s)){c.push(encodeUnreserved(i)+"="+r.join(","))}else if(r.length!==0){c.push(r.join(","))}}}}else{if(s===";"){if(isDefined(A)){c.push(encodeUnreserved(i))}}else if(A===""&&(s==="&"||s==="?")){c.push(encodeUnreserved(i)+"=")}else if(A===""){c.push("")}}return c}function parseUrl(r){return{expand:expand.bind(null,r)}}function expand(r,s){var i=["+","#",".","/",";","?","&"];return r.replace(/\{([^\{\}]+)\}|([^\{\}]+)/g,(function(r,a,A){if(a){let r="";const A=[];if(i.indexOf(a.charAt(0))!==-1){r=a.charAt(0);a=a.substr(1)}a.split(/,/g).forEach((function(i){var a=/([^:\*]*)(?::(\d+)|(\*))?/.exec(i);A.push(getValues(s,r,a[1],a[2]||a[3]))}));if(r&&r!=="+"){var c=",";if(r==="?"){c="&"}else if(r!=="#"){c=r}return(A.length!==0?r:"")+A.join(c)}else{return A.join(",")}}else{return encodeReserved(A)}}))}function parse(r){let s=r.method.toUpperCase();let i=(r.url||"/").replace(/:([a-z]\w+)/g,"{$1}");let a=Object.assign({},r.headers);let A;let c=omit(r,["method","baseUrl","url","headers","request","mediaType"]);const l=extractUrlVariableNames(i);i=parseUrl(i).expand(c);if(!/^http/.test(i)){i=r.baseUrl+i}const d=Object.keys(r).filter((r=>l.includes(r))).concat("baseUrl");const u=omit(c,d);const p=/application\/octet-stream/i.test(a.accept);if(!p){if(r.mediaType.format){a.accept=a.accept.split(/,/).map((s=>s.replace(/application\/vnd(\.\w+)(\.v3)?(\.\w+)?(\+json)?$/,`application/vnd$1$2.${r.mediaType.format}`))).join(",")}if(r.mediaType.previews.length){const s=a.accept.match(/[\w-]+(?=-preview)/g)||[];a.accept=s.concat(r.mediaType.previews).map((s=>{const i=r.mediaType.format?`.${r.mediaType.format}`:"+json";return`application/vnd.github.${s}-preview${i}`})).join(",")}}if(["GET","HEAD"].includes(s)){i=addQueryParameters(i,u)}else{if("data"in u){A=u.data}else{if(Object.keys(u).length){A=u}else{a["content-length"]=0}}}if(!a["content-type"]&&typeof A!=="undefined"){a["content-type"]="application/json; charset=utf-8"}if(["PATCH","PUT"].includes(s)&&typeof A==="undefined"){A=""}return Object.assign({method:s,url:i,headers:a},typeof A!=="undefined"?{body:A}:null,r.request?{request:r.request}:null)}function endpointWithDefaults(r,s,i){return parse(merge(r,s,i))}function withDefaults(r,s){const i=merge(r,s);const a=endpointWithDefaults.bind(null,i);return Object.assign(a,{DEFAULTS:i,defaults:withDefaults.bind(null,i),merge:merge.bind(null,i),parse:parse})}const l="6.0.12";const d=`octokit-endpoint.js/${l} ${A.getUserAgent()}`;const u={method:"GET",baseUrl:"https://api.github.com",headers:{accept:"application/vnd.github.v3+json","user-agent":d},mediaType:{format:"",previews:[]}};const p=withDefaults(null,u);s.endpoint=p},88467:(r,s,i)=>{"use strict";Object.defineProperty(s,"__esModule",{value:true});var a=i(36234);var A=i(45030);const c="4.8.0";function _buildMessageForResponseErrors(r){return`Request failed due to following response errors:\n`+r.errors.map((r=>` - ${r.message}`)).join("\n")}class GraphqlResponseError extends Error{constructor(r,s,i){super(_buildMessageForResponseErrors(i));this.request=r;this.headers=s;this.response=i;this.name="GraphqlResponseError";this.errors=i.errors;this.data=i.data;if(Error.captureStackTrace){Error.captureStackTrace(this,this.constructor)}}}const l=["method","baseUrl","url","headers","request","query","mediaType"];const d=["query","method","url"];const u=/\/api\/v3\/?$/;function graphql(r,s,i){if(i){if(typeof s==="string"&&"query"in i){return Promise.reject(new Error(`[@octokit/graphql] "query" cannot be used as variable name`))}for(const r in i){if(!d.includes(r))continue;return Promise.reject(new Error(`[@octokit/graphql] "${r}" cannot be used as variable name`))}}const a=typeof s==="string"?Object.assign({query:s},i):s;const A=Object.keys(a).reduce(((r,s)=>{if(l.includes(s)){r[s]=a[s];return r}if(!r.variables){r.variables={}}r.variables[s]=a[s];return r}),{});const c=a.baseUrl||r.endpoint.DEFAULTS.baseUrl;if(u.test(c)){A.url=c.replace(u,"/api/graphql")}return r(A).then((r=>{if(r.data.errors){const s={};for(const i of Object.keys(r.headers)){s[i]=r.headers[i]}throw new GraphqlResponseError(A,s,r.data)}return r.data.data}))}function withDefaults(r,s){const i=r.defaults(s);const newApi=(r,s)=>graphql(i,r,s);return Object.assign(newApi,{defaults:withDefaults.bind(null,i),endpoint:a.request.endpoint})}const p=withDefaults(a.request,{headers:{"user-agent":`octokit-graphql.js/${c} ${A.getUserAgent()}`},method:"POST",url:"/graphql"});function withCustomRequest(r){return withDefaults(r,{method:"POST",url:"/graphql"})}s.GraphqlResponseError=GraphqlResponseError;s.graphql=p;s.withCustomRequest=withCustomRequest},64193:(r,s)=>{"use strict";Object.defineProperty(s,"__esModule",{value:true});const i="2.21.3";function ownKeys(r,s){var i=Object.keys(r);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(r);s&&(a=a.filter((function(s){return Object.getOwnPropertyDescriptor(r,s).enumerable}))),i.push.apply(i,a)}return i}function _objectSpread2(r){for(var s=1;s({async next(){if(!d)return{done:true};try{const r=await A({method:c,url:d,headers:l});const s=normalizePaginatedListResponse(r);d=((s.headers.link||"").match(/<([^>]+)>;\s*rel="next"/)||[])[1];return{value:s}}catch(r){if(r.status!==409)throw r;d="";return{value:{status:200,headers:{},data:[]}}}}})}}function paginate(r,s,i,a){if(typeof i==="function"){a=i;i=undefined}return gather(r,[],iterator(r,s,i)[Symbol.asyncIterator](),a)}function gather(r,s,i,a){return i.next().then((A=>{if(A.done){return s}let c=false;function done(){c=true}s=s.concat(a?a(A.value,done):A.value.data);if(c){return s}return gather(r,s,i,a)}))}const a=Object.assign(paginate,{iterator:iterator});const A=["GET /app/hook/deliveries","GET /app/installations","GET /applications/grants","GET /authorizations","GET /enterprises/{enterprise}/actions/permissions/organizations","GET /enterprises/{enterprise}/actions/runner-groups","GET /enterprises/{enterprise}/actions/runner-groups/{runner_group_id}/organizations","GET /enterprises/{enterprise}/actions/runner-groups/{runner_group_id}/runners","GET /enterprises/{enterprise}/actions/runners","GET /enterprises/{enterprise}/audit-log","GET /enterprises/{enterprise}/secret-scanning/alerts","GET /enterprises/{enterprise}/settings/billing/advanced-security","GET /events","GET /gists","GET /gists/public","GET /gists/starred","GET /gists/{gist_id}/comments","GET /gists/{gist_id}/commits","GET /gists/{gist_id}/forks","GET /installation/repositories","GET /issues","GET /licenses","GET /marketplace_listing/plans","GET /marketplace_listing/plans/{plan_id}/accounts","GET /marketplace_listing/stubbed/plans","GET /marketplace_listing/stubbed/plans/{plan_id}/accounts","GET /networks/{owner}/{repo}/events","GET /notifications","GET /organizations","GET /orgs/{org}/actions/cache/usage-by-repository","GET /orgs/{org}/actions/permissions/repositories","GET /orgs/{org}/actions/runner-groups","GET /orgs/{org}/actions/runner-groups/{runner_group_id}/repositories","GET /orgs/{org}/actions/runner-groups/{runner_group_id}/runners","GET /orgs/{org}/actions/runners","GET /orgs/{org}/actions/secrets","GET /orgs/{org}/actions/secrets/{secret_name}/repositories","GET /orgs/{org}/audit-log","GET /orgs/{org}/blocks","GET /orgs/{org}/code-scanning/alerts","GET /orgs/{org}/codespaces","GET /orgs/{org}/credential-authorizations","GET /orgs/{org}/dependabot/secrets","GET /orgs/{org}/dependabot/secrets/{secret_name}/repositories","GET /orgs/{org}/events","GET /orgs/{org}/external-groups","GET /orgs/{org}/failed_invitations","GET /orgs/{org}/hooks","GET /orgs/{org}/hooks/{hook_id}/deliveries","GET /orgs/{org}/installations","GET /orgs/{org}/invitations","GET /orgs/{org}/invitations/{invitation_id}/teams","GET /orgs/{org}/issues","GET /orgs/{org}/members","GET /orgs/{org}/migrations","GET /orgs/{org}/migrations/{migration_id}/repositories","GET /orgs/{org}/outside_collaborators","GET /orgs/{org}/packages","GET /orgs/{org}/packages/{package_type}/{package_name}/versions","GET /orgs/{org}/projects","GET /orgs/{org}/public_members","GET /orgs/{org}/repos","GET /orgs/{org}/secret-scanning/alerts","GET /orgs/{org}/settings/billing/advanced-security","GET /orgs/{org}/team-sync/groups","GET /orgs/{org}/teams","GET /orgs/{org}/teams/{team_slug}/discussions","GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments","GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions","GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions","GET /orgs/{org}/teams/{team_slug}/invitations","GET /orgs/{org}/teams/{team_slug}/members","GET /orgs/{org}/teams/{team_slug}/projects","GET /orgs/{org}/teams/{team_slug}/repos","GET /orgs/{org}/teams/{team_slug}/teams","GET /projects/columns/{column_id}/cards","GET /projects/{project_id}/collaborators","GET /projects/{project_id}/columns","GET /repos/{owner}/{repo}/actions/artifacts","GET /repos/{owner}/{repo}/actions/caches","GET /repos/{owner}/{repo}/actions/runners","GET /repos/{owner}/{repo}/actions/runs","GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts","GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}/jobs","GET /repos/{owner}/{repo}/actions/runs/{run_id}/jobs","GET /repos/{owner}/{repo}/actions/secrets","GET /repos/{owner}/{repo}/actions/workflows","GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/runs","GET /repos/{owner}/{repo}/assignees","GET /repos/{owner}/{repo}/branches","GET /repos/{owner}/{repo}/check-runs/{check_run_id}/annotations","GET /repos/{owner}/{repo}/check-suites/{check_suite_id}/check-runs","GET /repos/{owner}/{repo}/code-scanning/alerts","GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/instances","GET /repos/{owner}/{repo}/code-scanning/analyses","GET /repos/{owner}/{repo}/codespaces","GET /repos/{owner}/{repo}/codespaces/devcontainers","GET /repos/{owner}/{repo}/codespaces/secrets","GET /repos/{owner}/{repo}/collaborators","GET /repos/{owner}/{repo}/comments","GET /repos/{owner}/{repo}/comments/{comment_id}/reactions","GET /repos/{owner}/{repo}/commits","GET /repos/{owner}/{repo}/commits/{commit_sha}/comments","GET /repos/{owner}/{repo}/commits/{commit_sha}/pulls","GET /repos/{owner}/{repo}/commits/{ref}/check-runs","GET /repos/{owner}/{repo}/commits/{ref}/check-suites","GET /repos/{owner}/{repo}/commits/{ref}/status","GET /repos/{owner}/{repo}/commits/{ref}/statuses","GET /repos/{owner}/{repo}/contributors","GET /repos/{owner}/{repo}/dependabot/secrets","GET /repos/{owner}/{repo}/deployments","GET /repos/{owner}/{repo}/deployments/{deployment_id}/statuses","GET /repos/{owner}/{repo}/environments","GET /repos/{owner}/{repo}/events","GET /repos/{owner}/{repo}/forks","GET /repos/{owner}/{repo}/git/matching-refs/{ref}","GET /repos/{owner}/{repo}/hooks","GET /repos/{owner}/{repo}/hooks/{hook_id}/deliveries","GET /repos/{owner}/{repo}/invitations","GET /repos/{owner}/{repo}/issues","GET /repos/{owner}/{repo}/issues/comments","GET /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions","GET /repos/{owner}/{repo}/issues/events","GET /repos/{owner}/{repo}/issues/{issue_number}/comments","GET /repos/{owner}/{repo}/issues/{issue_number}/events","GET /repos/{owner}/{repo}/issues/{issue_number}/labels","GET /repos/{owner}/{repo}/issues/{issue_number}/reactions","GET /repos/{owner}/{repo}/issues/{issue_number}/timeline","GET /repos/{owner}/{repo}/keys","GET /repos/{owner}/{repo}/labels","GET /repos/{owner}/{repo}/milestones","GET /repos/{owner}/{repo}/milestones/{milestone_number}/labels","GET /repos/{owner}/{repo}/notifications","GET /repos/{owner}/{repo}/pages/builds","GET /repos/{owner}/{repo}/projects","GET /repos/{owner}/{repo}/pulls","GET /repos/{owner}/{repo}/pulls/comments","GET /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions","GET /repos/{owner}/{repo}/pulls/{pull_number}/comments","GET /repos/{owner}/{repo}/pulls/{pull_number}/commits","GET /repos/{owner}/{repo}/pulls/{pull_number}/files","GET /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers","GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews","GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/comments","GET /repos/{owner}/{repo}/releases","GET /repos/{owner}/{repo}/releases/{release_id}/assets","GET /repos/{owner}/{repo}/releases/{release_id}/reactions","GET /repos/{owner}/{repo}/secret-scanning/alerts","GET /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}/locations","GET /repos/{owner}/{repo}/stargazers","GET /repos/{owner}/{repo}/subscribers","GET /repos/{owner}/{repo}/tags","GET /repos/{owner}/{repo}/teams","GET /repos/{owner}/{repo}/topics","GET /repositories","GET /repositories/{repository_id}/environments/{environment_name}/secrets","GET /search/code","GET /search/commits","GET /search/issues","GET /search/labels","GET /search/repositories","GET /search/topics","GET /search/users","GET /teams/{team_id}/discussions","GET /teams/{team_id}/discussions/{discussion_number}/comments","GET /teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}/reactions","GET /teams/{team_id}/discussions/{discussion_number}/reactions","GET /teams/{team_id}/invitations","GET /teams/{team_id}/members","GET /teams/{team_id}/projects","GET /teams/{team_id}/repos","GET /teams/{team_id}/teams","GET /user/blocks","GET /user/codespaces","GET /user/codespaces/secrets","GET /user/emails","GET /user/followers","GET /user/following","GET /user/gpg_keys","GET /user/installations","GET /user/installations/{installation_id}/repositories","GET /user/issues","GET /user/keys","GET /user/marketplace_purchases","GET /user/marketplace_purchases/stubbed","GET /user/memberships/orgs","GET /user/migrations","GET /user/migrations/{migration_id}/repositories","GET /user/orgs","GET /user/packages","GET /user/packages/{package_type}/{package_name}/versions","GET /user/public_emails","GET /user/repos","GET /user/repository_invitations","GET /user/starred","GET /user/subscriptions","GET /user/teams","GET /users","GET /users/{username}/events","GET /users/{username}/events/orgs/{org}","GET /users/{username}/events/public","GET /users/{username}/followers","GET /users/{username}/following","GET /users/{username}/gists","GET /users/{username}/gpg_keys","GET /users/{username}/keys","GET /users/{username}/orgs","GET /users/{username}/packages","GET /users/{username}/projects","GET /users/{username}/received_events","GET /users/{username}/received_events/public","GET /users/{username}/repos","GET /users/{username}/starred","GET /users/{username}/subscriptions"];function isPaginatingEndpoint(r){if(typeof r==="string"){return A.includes(r)}else{return false}}function paginateRest(r){return{paginate:Object.assign(paginate.bind(null,r),{iterator:iterator.bind(null,r)})}}paginateRest.VERSION=i;s.composePaginateRest=a;s.isPaginatingEndpoint=isPaginatingEndpoint;s.paginateRest=paginateRest;s.paginatingEndpoints=A},68883:(r,s)=>{"use strict";Object.defineProperty(s,"__esModule",{value:true});const i="1.0.4";function requestLog(r){r.hook.wrap("request",((s,i)=>{r.log.debug("request",i);const a=Date.now();const A=r.request.endpoint.parse(i);const c=A.url.replace(i.baseUrl,"");return s(i).then((s=>{r.log.info(`${A.method} ${c} - ${s.status} in ${Date.now()-a}ms`);return s})).catch((s=>{r.log.info(`${A.method} ${c} - ${s.status} in ${Date.now()-a}ms`);throw s}))}))}requestLog.VERSION=i;s.requestLog=requestLog},83044:(r,s)=>{"use strict";Object.defineProperty(s,"__esModule",{value:true});function ownKeys(r,s){var i=Object.keys(r);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(r);if(s){a=a.filter((function(s){return Object.getOwnPropertyDescriptor(r,s).enumerable}))}i.push.apply(i,a)}return i}function _objectSpread2(r){for(var s=1;s{"use strict";Object.defineProperty(s,"__esModule",{value:true});function _interopDefault(r){return r&&typeof r==="object"&&"default"in r?r["default"]:r}var a=_interopDefault(i(11174));async function errorRequest(r,s,i,a){if(!i.request||!i.request.request){throw i}if(i.status>=400&&!s.doNotRetry.includes(i.status)){const A=a.request.retries!=null?a.request.retries:s.retries;const c=Math.pow((a.request.retryCount||0)+1,2);throw r.retry.retryRequest(i,A,c)}throw i}async function wrapRequest(r,s,i){const A=new a;A.on("failed",(function(s,a){const A=~~s.request.request.retries;const c=~~s.request.request.retryAfter;i.request.retryCount=a.retryCount+1;if(A>a.retryCount){return c*r.retryAfterBaseValue}}));return A.schedule(s,i)}const A="3.0.9";function retry(r,s){const i=Object.assign({enabled:true,retryAfterBaseValue:1e3,doNotRetry:[400,401,403,404,422],retries:3},s.retry);if(i.enabled){r.hook.error("request",errorRequest.bind(null,r,i));r.hook.wrap("request",wrapRequest.bind(null,i))}return{retry:{retryRequest:(r,s,i)=>{r.request.request=Object.assign({},r.request.request,{retries:s,retryAfter:i});return r}}}}retry.VERSION=A;s.VERSION=A;s.retry=retry},10537:(r,s,i)=>{"use strict";var a=Object.create;var A=Object.defineProperty;var c=Object.getOwnPropertyDescriptor;var l=Object.getOwnPropertyNames;var d=Object.getPrototypeOf;var u=Object.prototype.hasOwnProperty;var __export=(r,s)=>{for(var i in s)A(r,i,{get:s[i],enumerable:true})};var __copyProps=(r,s,i,a)=>{if(s&&typeof s==="object"||typeof s==="function"){for(let d of l(s))if(!u.call(r,d)&&d!==i)A(r,d,{get:()=>s[d],enumerable:!(a=c(s,d))||a.enumerable})}return r};var __toESM=(r,s,i)=>(i=r!=null?a(d(r)):{},__copyProps(s||!r||!r.__esModule?A(i,"default",{value:r,enumerable:true}):i,r));var __toCommonJS=r=>__copyProps(A({},"__esModule",{value:true}),r);var p={};__export(p,{RequestError:()=>I});r.exports=__toCommonJS(p);var g=i(58932);var h=__toESM(i(1223));var C=(0,h.default)((r=>console.warn(r)));var y=(0,h.default)((r=>console.warn(r)));var I=class extends Error{constructor(r,s,i){super(r);if(Error.captureStackTrace){Error.captureStackTrace(this,this.constructor)}this.name="HttpError";this.status=s;let a;if("headers"in i&&typeof i.headers!=="undefined"){a=i.headers}if("response"in i){this.response=i.response;a=i.response.headers}const A=Object.assign({},i.request);if(i.request.headers.authorization){A.headers=Object.assign({},i.request.headers,{authorization:i.request.headers.authorization.replace(/ .*$/," [REDACTED]")})}A.url=A.url.replace(/\bclient_secret=\w+/g,"client_secret=[REDACTED]").replace(/\baccess_token=\w+/g,"access_token=[REDACTED]");this.request=A;Object.defineProperty(this,"code",{get(){C(new g.Deprecation("[@octokit/request-error] `error.code` is deprecated, use `error.status`."));return s}});Object.defineProperty(this,"headers",{get(){y(new g.Deprecation("[@octokit/request-error] `error.headers` is deprecated, use `error.response.headers`."));return a||{}}})}};0&&0},36234:(r,s,i)=>{"use strict";Object.defineProperty(s,"__esModule",{value:true});function _interopDefault(r){return r&&typeof r==="object"&&"default"in r?r["default"]:r}var a=i(59440);var A=i(45030);var c=i(63287);var l=_interopDefault(i(80467));var d=i(30013);const u="5.6.3";function getBufferResponse(r){return r.arrayBuffer()}function fetchWrapper(r){const s=r.request&&r.request.log?r.request.log:console;if(c.isPlainObject(r.body)||Array.isArray(r.body)){r.body=JSON.stringify(r.body)}let i={};let a;let A;const u=r.request&&r.request.fetch||l;return u(r.url,Object.assign({method:r.method,body:r.body,headers:r.headers,redirect:r.redirect},r.request)).then((async c=>{A=c.url;a=c.status;for(const r of c.headers){i[r[0]]=r[1]}if("deprecation"in i){const a=i.link&&i.link.match(/<([^>]+)>; rel="deprecation"/);const A=a&&a.pop();s.warn(`[@octokit/request] "${r.method} ${r.url}" is deprecated. It is scheduled to be removed on ${i.sunset}${A?`. See ${A}`:""}`)}if(a===204||a===205){return}if(r.method==="HEAD"){if(a<400){return}throw new d.RequestError(c.statusText,a,{response:{url:A,status:a,headers:i,data:undefined},request:r})}if(a===304){throw new d.RequestError("Not modified",a,{response:{url:A,status:a,headers:i,data:await getResponseData(c)},request:r})}if(a>=400){const s=await getResponseData(c);const l=new d.RequestError(toErrorMessage(s),a,{response:{url:A,status:a,headers:i,data:s},request:r});throw l}return getResponseData(c)})).then((r=>({status:a,url:A,headers:i,data:r}))).catch((s=>{if(s instanceof d.RequestError)throw s;throw new d.RequestError(s.message,500,{request:r})}))}async function getResponseData(r){const s=r.headers.get("content-type");if(/application\/json/.test(s)){return r.json()}if(!s||/^text\/|charset=utf-8$/.test(s)){return r.text()}return getBufferResponse(r)}function toErrorMessage(r){if(typeof r==="string")return r;if("message"in r){if(Array.isArray(r.errors)){return`${r.message}: ${r.errors.map(JSON.stringify).join(", ")}`}return r.message}return`Unknown error: ${JSON.stringify(r)}`}function withDefaults(r,s){const i=r.defaults(s);const newApi=function(r,s){const a=i.merge(r,s);if(!a.request||!a.request.hook){return fetchWrapper(i.parse(a))}const request=(r,s)=>fetchWrapper(i.parse(i.merge(r,s)));Object.assign(request,{endpoint:i,defaults:withDefaults.bind(null,i)});return a.request.hook(request,a)};return Object.assign(newApi,{endpoint:i,defaults:withDefaults.bind(null,i)})}const p=withDefaults(a.endpoint,{headers:{"user-agent":`octokit-request.js/${u} ${A.getUserAgent()}`}});s.request=p},30013:(r,s,i)=>{"use strict";Object.defineProperty(s,"__esModule",{value:true});function _interopDefault(r){return r&&typeof r==="object"&&"default"in r?r["default"]:r}var a=i(58932);var A=_interopDefault(i(1223));const c=A((r=>console.warn(r)));const l=A((r=>console.warn(r)));class RequestError extends Error{constructor(r,s,i){super(r);if(Error.captureStackTrace){Error.captureStackTrace(this,this.constructor)}this.name="HttpError";this.status=s;let A;if("headers"in i&&typeof i.headers!=="undefined"){A=i.headers}if("response"in i){this.response=i.response;A=i.response.headers}const d=Object.assign({},i.request);if(i.request.headers.authorization){d.headers=Object.assign({},i.request.headers,{authorization:i.request.headers.authorization.replace(/ .*$/," [REDACTED]")})}d.url=d.url.replace(/\bclient_secret=\w+/g,"client_secret=[REDACTED]").replace(/\baccess_token=\w+/g,"access_token=[REDACTED]");this.request=d;Object.defineProperty(this,"code",{get(){c(new a.Deprecation("[@octokit/request-error] `error.code` is deprecated, use `error.status`."));return s}});Object.defineProperty(this,"headers",{get(){l(new a.Deprecation("[@octokit/request-error] `error.headers` is deprecated, use `error.response.headers`."));return A||{}}})}}s.RequestError=RequestError},57171:(r,s,i)=>{"use strict";Object.defineProperty(s,"__esModule",{value:true});s.ContextAPI=void 0;const a=i(54118);const A=i(85135);const c=i(11877);const l="context";const d=new a.NoopContextManager;class ContextAPI{constructor(){}static getInstance(){if(!this._instance){this._instance=new ContextAPI}return this._instance}setGlobalContextManager(r){return(0,A.registerGlobal)(l,r,c.DiagAPI.instance())}active(){return this._getContextManager().active()}with(r,s,i,...a){return this._getContextManager().with(r,s,i,...a)}bind(r,s){return this._getContextManager().bind(r,s)}_getContextManager(){return(0,A.getGlobal)(l)||d}disable(){this._getContextManager().disable();(0,A.unregisterGlobal)(l,c.DiagAPI.instance())}}s.ContextAPI=ContextAPI},11877:(r,s,i)=>{"use strict";Object.defineProperty(s,"__esModule",{value:true});s.DiagAPI=void 0;const a=i(17978);const A=i(99639);const c=i(78077);const l=i(85135);const d="diag";class DiagAPI{constructor(){function _logProxy(r){return function(...s){const i=(0,l.getGlobal)("diag");if(!i)return;return i[r](...s)}}const r=this;const setLogger=(s,i={logLevel:c.DiagLogLevel.INFO})=>{var a,d,u;if(s===r){const s=new Error("Cannot use diag as the logger for itself. Please use a DiagLogger implementation like ConsoleDiagLogger or a custom implementation");r.error((a=s.stack)!==null&&a!==void 0?a:s.message);return false}if(typeof i==="number"){i={logLevel:i}}const p=(0,l.getGlobal)("diag");const g=(0,A.createLogLevelDiagLogger)((d=i.logLevel)!==null&&d!==void 0?d:c.DiagLogLevel.INFO,s);if(p&&!i.suppressOverrideMessage){const r=(u=(new Error).stack)!==null&&u!==void 0?u:"";p.warn(`Current logger will be overwritten from ${r}`);g.warn(`Current logger will overwrite one already registered from ${r}`)}return(0,l.registerGlobal)("diag",g,r,true)};r.setLogger=setLogger;r.disable=()=>{(0,l.unregisterGlobal)(d,r)};r.createComponentLogger=r=>new a.DiagComponentLogger(r);r.verbose=_logProxy("verbose");r.debug=_logProxy("debug");r.info=_logProxy("info");r.warn=_logProxy("warn");r.error=_logProxy("error")}static instance(){if(!this._instance){this._instance=new DiagAPI}return this._instance}}s.DiagAPI=DiagAPI},17696:(r,s,i)=>{"use strict";Object.defineProperty(s,"__esModule",{value:true});s.MetricsAPI=void 0;const a=i(72647);const A=i(85135);const c=i(11877);const l="metrics";class MetricsAPI{constructor(){}static getInstance(){if(!this._instance){this._instance=new MetricsAPI}return this._instance}setGlobalMeterProvider(r){return(0,A.registerGlobal)(l,r,c.DiagAPI.instance())}getMeterProvider(){return(0,A.getGlobal)(l)||a.NOOP_METER_PROVIDER}getMeter(r,s,i){return this.getMeterProvider().getMeter(r,s,i)}disable(){(0,A.unregisterGlobal)(l,c.DiagAPI.instance())}}s.MetricsAPI=MetricsAPI},89909:(r,s,i)=>{"use strict";Object.defineProperty(s,"__esModule",{value:true});s.PropagationAPI=void 0;const a=i(85135);const A=i(72368);const c=i(80865);const l=i(37682);const d=i(28136);const u=i(11877);const p="propagation";const g=new A.NoopTextMapPropagator;class PropagationAPI{constructor(){this.createBaggage=d.createBaggage;this.getBaggage=l.getBaggage;this.getActiveBaggage=l.getActiveBaggage;this.setBaggage=l.setBaggage;this.deleteBaggage=l.deleteBaggage}static getInstance(){if(!this._instance){this._instance=new PropagationAPI}return this._instance}setGlobalPropagator(r){return(0,a.registerGlobal)(p,r,u.DiagAPI.instance())}inject(r,s,i=c.defaultTextMapSetter){return this._getGlobalPropagator().inject(r,s,i)}extract(r,s,i=c.defaultTextMapGetter){return this._getGlobalPropagator().extract(r,s,i)}fields(){return this._getGlobalPropagator().fields()}disable(){(0,a.unregisterGlobal)(p,u.DiagAPI.instance())}_getGlobalPropagator(){return(0,a.getGlobal)(p)||g}}s.PropagationAPI=PropagationAPI},81539:(r,s,i)=>{"use strict";Object.defineProperty(s,"__esModule",{value:true});s.TraceAPI=void 0;const a=i(85135);const A=i(2285);const c=i(49745);const l=i(23326);const d=i(11877);const u="trace";class TraceAPI{constructor(){this._proxyTracerProvider=new A.ProxyTracerProvider;this.wrapSpanContext=c.wrapSpanContext;this.isSpanContextValid=c.isSpanContextValid;this.deleteSpan=l.deleteSpan;this.getSpan=l.getSpan;this.getActiveSpan=l.getActiveSpan;this.getSpanContext=l.getSpanContext;this.setSpan=l.setSpan;this.setSpanContext=l.setSpanContext}static getInstance(){if(!this._instance){this._instance=new TraceAPI}return this._instance}setGlobalTracerProvider(r){const s=(0,a.registerGlobal)(u,this._proxyTracerProvider,d.DiagAPI.instance());if(s){this._proxyTracerProvider.setDelegate(r)}return s}getTracerProvider(){return(0,a.getGlobal)(u)||this._proxyTracerProvider}getTracer(r,s){return this.getTracerProvider().getTracer(r,s)}disable(){(0,a.unregisterGlobal)(u,d.DiagAPI.instance());this._proxyTracerProvider=new A.ProxyTracerProvider}}s.TraceAPI=TraceAPI},37682:(r,s,i)=>{"use strict";Object.defineProperty(s,"__esModule",{value:true});s.deleteBaggage=s.setBaggage=s.getActiveBaggage=s.getBaggage=void 0;const a=i(57171);const A=i(78242);const c=(0,A.createContextKey)("OpenTelemetry Baggage Key");function getBaggage(r){return r.getValue(c)||undefined}s.getBaggage=getBaggage;function getActiveBaggage(){return getBaggage(a.ContextAPI.getInstance().active())}s.getActiveBaggage=getActiveBaggage;function setBaggage(r,s){return r.setValue(c,s)}s.setBaggage=setBaggage;function deleteBaggage(r){return r.deleteValue(c)}s.deleteBaggage=deleteBaggage},84811:(r,s)=>{"use strict";Object.defineProperty(s,"__esModule",{value:true});s.BaggageImpl=void 0;class BaggageImpl{constructor(r){this._entries=r?new Map(r):new Map}getEntry(r){const s=this._entries.get(r);if(!s){return undefined}return Object.assign({},s)}getAllEntries(){return Array.from(this._entries.entries()).map((([r,s])=>[r,s]))}setEntry(r,s){const i=new BaggageImpl(this._entries);i._entries.set(r,s);return i}removeEntry(r){const s=new BaggageImpl(this._entries);s._entries.delete(r);return s}removeEntries(...r){const s=new BaggageImpl(this._entries);for(const i of r){s._entries.delete(i)}return s}clear(){return new BaggageImpl}}s.BaggageImpl=BaggageImpl},23542:(r,s)=>{"use strict";Object.defineProperty(s,"__esModule",{value:true});s.baggageEntryMetadataSymbol=void 0;s.baggageEntryMetadataSymbol=Symbol("BaggageEntryMetadata")},28136:(r,s,i)=>{"use strict";Object.defineProperty(s,"__esModule",{value:true});s.baggageEntryMetadataFromString=s.createBaggage=void 0;const a=i(11877);const A=i(84811);const c=i(23542);const l=a.DiagAPI.instance();function createBaggage(r={}){return new A.BaggageImpl(new Map(Object.entries(r)))}s.createBaggage=createBaggage;function baggageEntryMetadataFromString(r){if(typeof r!=="string"){l.error(`Cannot create baggage metadata from unknown type: ${typeof r}`);r=""}return{__TYPE__:c.baggageEntryMetadataSymbol,toString(){return r}}}s.baggageEntryMetadataFromString=baggageEntryMetadataFromString},7393:(r,s,i)=>{"use strict";Object.defineProperty(s,"__esModule",{value:true});s.context=void 0;const a=i(57171);s.context=a.ContextAPI.getInstance()},54118:(r,s,i)=>{"use strict";Object.defineProperty(s,"__esModule",{value:true});s.NoopContextManager=void 0;const a=i(78242);class NoopContextManager{active(){return a.ROOT_CONTEXT}with(r,s,i,...a){return s.call(i,...a)}bind(r,s){return s}enable(){return this}disable(){return this}}s.NoopContextManager=NoopContextManager},78242:(r,s)=>{"use strict";Object.defineProperty(s,"__esModule",{value:true});s.ROOT_CONTEXT=s.createContextKey=void 0;function createContextKey(r){return Symbol.for(r)}s.createContextKey=createContextKey;class BaseContext{constructor(r){const s=this;s._currentContext=r?new Map(r):new Map;s.getValue=r=>s._currentContext.get(r);s.setValue=(r,i)=>{const a=new BaseContext(s._currentContext);a._currentContext.set(r,i);return a};s.deleteValue=r=>{const i=new BaseContext(s._currentContext);i._currentContext.delete(r);return i}}}s.ROOT_CONTEXT=new BaseContext},39721:(r,s,i)=>{"use strict";Object.defineProperty(s,"__esModule",{value:true});s.diag=void 0;const a=i(11877);s.diag=a.DiagAPI.instance()},17978:(r,s,i)=>{"use strict";Object.defineProperty(s,"__esModule",{value:true});s.DiagComponentLogger=void 0;const a=i(85135);class DiagComponentLogger{constructor(r){this._namespace=r.namespace||"DiagComponentLogger"}debug(...r){return logProxy("debug",this._namespace,r)}error(...r){return logProxy("error",this._namespace,r)}info(...r){return logProxy("info",this._namespace,r)}warn(...r){return logProxy("warn",this._namespace,r)}verbose(...r){return logProxy("verbose",this._namespace,r)}}s.DiagComponentLogger=DiagComponentLogger;function logProxy(r,s,i){const A=(0,a.getGlobal)("diag");if(!A){return}i.unshift(s);return A[r](...i)}},3041:(r,s)=>{"use strict";Object.defineProperty(s,"__esModule",{value:true});s.DiagConsoleLogger=void 0;const i=[{n:"error",c:"error"},{n:"warn",c:"warn"},{n:"info",c:"info"},{n:"debug",c:"debug"},{n:"verbose",c:"trace"}];class DiagConsoleLogger{constructor(){function _consoleFunc(r){return function(...s){if(console){let i=console[r];if(typeof i!=="function"){i=console.log}if(typeof i==="function"){return i.apply(console,s)}}}}for(let r=0;r{"use strict";Object.defineProperty(s,"__esModule",{value:true});s.createLogLevelDiagLogger=void 0;const a=i(78077);function createLogLevelDiagLogger(r,s){if(ra.DiagLogLevel.ALL){r=a.DiagLogLevel.ALL}s=s||{};function _filterFunc(i,a){const A=s[i];if(typeof A==="function"&&r>=a){return A.bind(s)}return function(){}}return{error:_filterFunc("error",a.DiagLogLevel.ERROR),warn:_filterFunc("warn",a.DiagLogLevel.WARN),info:_filterFunc("info",a.DiagLogLevel.INFO),debug:_filterFunc("debug",a.DiagLogLevel.DEBUG),verbose:_filterFunc("verbose",a.DiagLogLevel.VERBOSE)}}s.createLogLevelDiagLogger=createLogLevelDiagLogger},78077:(r,s)=>{"use strict";Object.defineProperty(s,"__esModule",{value:true});s.DiagLogLevel=void 0;var i;(function(r){r[r["NONE"]=0]="NONE";r[r["ERROR"]=30]="ERROR";r[r["WARN"]=50]="WARN";r[r["INFO"]=60]="INFO";r[r["DEBUG"]=70]="DEBUG";r[r["VERBOSE"]=80]="VERBOSE";r[r["ALL"]=9999]="ALL"})(i=s.DiagLogLevel||(s.DiagLogLevel={}))},65163:(r,s,i)=>{"use strict";Object.defineProperty(s,"__esModule",{value:true});s.trace=s.propagation=s.metrics=s.diag=s.context=s.INVALID_SPAN_CONTEXT=s.INVALID_TRACEID=s.INVALID_SPANID=s.isValidSpanId=s.isValidTraceId=s.isSpanContextValid=s.createTraceState=s.TraceFlags=s.SpanStatusCode=s.SpanKind=s.SamplingDecision=s.ProxyTracerProvider=s.ProxyTracer=s.defaultTextMapSetter=s.defaultTextMapGetter=s.ValueType=s.createNoopMeter=s.DiagLogLevel=s.DiagConsoleLogger=s.ROOT_CONTEXT=s.createContextKey=s.baggageEntryMetadataFromString=void 0;var a=i(28136);Object.defineProperty(s,"baggageEntryMetadataFromString",{enumerable:true,get:function(){return a.baggageEntryMetadataFromString}});var A=i(78242);Object.defineProperty(s,"createContextKey",{enumerable:true,get:function(){return A.createContextKey}});Object.defineProperty(s,"ROOT_CONTEXT",{enumerable:true,get:function(){return A.ROOT_CONTEXT}});var c=i(3041);Object.defineProperty(s,"DiagConsoleLogger",{enumerable:true,get:function(){return c.DiagConsoleLogger}});var l=i(78077);Object.defineProperty(s,"DiagLogLevel",{enumerable:true,get:function(){return l.DiagLogLevel}});var d=i(4837);Object.defineProperty(s,"createNoopMeter",{enumerable:true,get:function(){return d.createNoopMeter}});var u=i(89999);Object.defineProperty(s,"ValueType",{enumerable:true,get:function(){return u.ValueType}});var p=i(80865);Object.defineProperty(s,"defaultTextMapGetter",{enumerable:true,get:function(){return p.defaultTextMapGetter}});Object.defineProperty(s,"defaultTextMapSetter",{enumerable:true,get:function(){return p.defaultTextMapSetter}});var g=i(43503);Object.defineProperty(s,"ProxyTracer",{enumerable:true,get:function(){return g.ProxyTracer}});var h=i(2285);Object.defineProperty(s,"ProxyTracerProvider",{enumerable:true,get:function(){return h.ProxyTracerProvider}});var C=i(33209);Object.defineProperty(s,"SamplingDecision",{enumerable:true,get:function(){return C.SamplingDecision}});var y=i(31424);Object.defineProperty(s,"SpanKind",{enumerable:true,get:function(){return y.SpanKind}});var I=i(48845);Object.defineProperty(s,"SpanStatusCode",{enumerable:true,get:function(){return I.SpanStatusCode}});var B=i(26905);Object.defineProperty(s,"TraceFlags",{enumerable:true,get:function(){return B.TraceFlags}});var b=i(32615);Object.defineProperty(s,"createTraceState",{enumerable:true,get:function(){return b.createTraceState}});var Q=i(49745);Object.defineProperty(s,"isSpanContextValid",{enumerable:true,get:function(){return Q.isSpanContextValid}});Object.defineProperty(s,"isValidTraceId",{enumerable:true,get:function(){return Q.isValidTraceId}});Object.defineProperty(s,"isValidSpanId",{enumerable:true,get:function(){return Q.isValidSpanId}});var w=i(91760);Object.defineProperty(s,"INVALID_SPANID",{enumerable:true,get:function(){return w.INVALID_SPANID}});Object.defineProperty(s,"INVALID_TRACEID",{enumerable:true,get:function(){return w.INVALID_TRACEID}});Object.defineProperty(s,"INVALID_SPAN_CONTEXT",{enumerable:true,get:function(){return w.INVALID_SPAN_CONTEXT}});const v=i(7393);Object.defineProperty(s,"context",{enumerable:true,get:function(){return v.context}});const S=i(39721);Object.defineProperty(s,"diag",{enumerable:true,get:function(){return S.diag}});const R=i(72601);Object.defineProperty(s,"metrics",{enumerable:true,get:function(){return R.metrics}});const N=i(17591);Object.defineProperty(s,"propagation",{enumerable:true,get:function(){return N.propagation}});const x=i(98989);Object.defineProperty(s,"trace",{enumerable:true,get:function(){return x.trace}});s["default"]={context:v.context,diag:S.diag,metrics:R.metrics,propagation:N.propagation,trace:x.trace}},85135:(r,s,i)=>{"use strict";Object.defineProperty(s,"__esModule",{value:true});s.unregisterGlobal=s.getGlobal=s.registerGlobal=void 0;const a=i(99957);const A=i(98996);const c=i(81522);const l=A.VERSION.split(".")[0];const d=Symbol.for(`opentelemetry.js.api.${l}`);const u=a._globalThis;function registerGlobal(r,s,i,a=false){var c;const l=u[d]=(c=u[d])!==null&&c!==void 0?c:{version:A.VERSION};if(!a&&l[r]){const s=new Error(`@opentelemetry/api: Attempted duplicate registration of API: ${r}`);i.error(s.stack||s.message);return false}if(l.version!==A.VERSION){const s=new Error(`@opentelemetry/api: Registration of version v${l.version} for ${r} does not match previously registered API v${A.VERSION}`);i.error(s.stack||s.message);return false}l[r]=s;i.debug(`@opentelemetry/api: Registered a global for ${r} v${A.VERSION}.`);return true}s.registerGlobal=registerGlobal;function getGlobal(r){var s,i;const a=(s=u[d])===null||s===void 0?void 0:s.version;if(!a||!(0,c.isCompatible)(a)){return}return(i=u[d])===null||i===void 0?void 0:i[r]}s.getGlobal=getGlobal;function unregisterGlobal(r,s){s.debug(`@opentelemetry/api: Unregistering a global for ${r} v${A.VERSION}.`);const i=u[d];if(i){delete i[r]}}s.unregisterGlobal=unregisterGlobal},81522:(r,s,i)=>{"use strict";Object.defineProperty(s,"__esModule",{value:true});s.isCompatible=s._makeCompatibilityCheck=void 0;const a=i(98996);const A=/^(\d+)\.(\d+)\.(\d+)(-(.+))?$/;function _makeCompatibilityCheck(r){const s=new Set([r]);const i=new Set;const a=r.match(A);if(!a){return()=>false}const c={major:+a[1],minor:+a[2],patch:+a[3],prerelease:a[4]};if(c.prerelease!=null){return function isExactmatch(s){return s===r}}function _reject(r){i.add(r);return false}function _accept(r){s.add(r);return true}return function isCompatible(r){if(s.has(r)){return true}if(i.has(r)){return false}const a=r.match(A);if(!a){return _reject(r)}const l={major:+a[1],minor:+a[2],patch:+a[3],prerelease:a[4]};if(l.prerelease!=null){return _reject(r)}if(c.major!==l.major){return _reject(r)}if(c.major===0){if(c.minor===l.minor&&c.patch<=l.patch){return _accept(r)}return _reject(r)}if(c.minor<=l.minor){return _accept(r)}return _reject(r)}}s._makeCompatibilityCheck=_makeCompatibilityCheck;s.isCompatible=_makeCompatibilityCheck(a.VERSION)},72601:(r,s,i)=>{"use strict";Object.defineProperty(s,"__esModule",{value:true});s.metrics=void 0;const a=i(17696);s.metrics=a.MetricsAPI.getInstance()},89999:(r,s)=>{"use strict";Object.defineProperty(s,"__esModule",{value:true});s.ValueType=void 0;var i;(function(r){r[r["INT"]=0]="INT";r[r["DOUBLE"]=1]="DOUBLE"})(i=s.ValueType||(s.ValueType={}))},4837:(r,s)=>{"use strict";Object.defineProperty(s,"__esModule",{value:true});s.createNoopMeter=s.NOOP_OBSERVABLE_UP_DOWN_COUNTER_METRIC=s.NOOP_OBSERVABLE_GAUGE_METRIC=s.NOOP_OBSERVABLE_COUNTER_METRIC=s.NOOP_UP_DOWN_COUNTER_METRIC=s.NOOP_HISTOGRAM_METRIC=s.NOOP_COUNTER_METRIC=s.NOOP_METER=s.NoopObservableUpDownCounterMetric=s.NoopObservableGaugeMetric=s.NoopObservableCounterMetric=s.NoopObservableMetric=s.NoopHistogramMetric=s.NoopUpDownCounterMetric=s.NoopCounterMetric=s.NoopMetric=s.NoopMeter=void 0;class NoopMeter{constructor(){}createHistogram(r,i){return s.NOOP_HISTOGRAM_METRIC}createCounter(r,i){return s.NOOP_COUNTER_METRIC}createUpDownCounter(r,i){return s.NOOP_UP_DOWN_COUNTER_METRIC}createObservableGauge(r,i){return s.NOOP_OBSERVABLE_GAUGE_METRIC}createObservableCounter(r,i){return s.NOOP_OBSERVABLE_COUNTER_METRIC}createObservableUpDownCounter(r,i){return s.NOOP_OBSERVABLE_UP_DOWN_COUNTER_METRIC}addBatchObservableCallback(r,s){}removeBatchObservableCallback(r){}}s.NoopMeter=NoopMeter;class NoopMetric{}s.NoopMetric=NoopMetric;class NoopCounterMetric extends NoopMetric{add(r,s){}}s.NoopCounterMetric=NoopCounterMetric;class NoopUpDownCounterMetric extends NoopMetric{add(r,s){}}s.NoopUpDownCounterMetric=NoopUpDownCounterMetric;class NoopHistogramMetric extends NoopMetric{record(r,s){}}s.NoopHistogramMetric=NoopHistogramMetric;class NoopObservableMetric{addCallback(r){}removeCallback(r){}}s.NoopObservableMetric=NoopObservableMetric;class NoopObservableCounterMetric extends NoopObservableMetric{}s.NoopObservableCounterMetric=NoopObservableCounterMetric;class NoopObservableGaugeMetric extends NoopObservableMetric{}s.NoopObservableGaugeMetric=NoopObservableGaugeMetric;class NoopObservableUpDownCounterMetric extends NoopObservableMetric{}s.NoopObservableUpDownCounterMetric=NoopObservableUpDownCounterMetric;s.NOOP_METER=new NoopMeter;s.NOOP_COUNTER_METRIC=new NoopCounterMetric;s.NOOP_HISTOGRAM_METRIC=new NoopHistogramMetric;s.NOOP_UP_DOWN_COUNTER_METRIC=new NoopUpDownCounterMetric;s.NOOP_OBSERVABLE_COUNTER_METRIC=new NoopObservableCounterMetric;s.NOOP_OBSERVABLE_GAUGE_METRIC=new NoopObservableGaugeMetric;s.NOOP_OBSERVABLE_UP_DOWN_COUNTER_METRIC=new NoopObservableUpDownCounterMetric;function createNoopMeter(){return s.NOOP_METER}s.createNoopMeter=createNoopMeter},72647:(r,s,i)=>{"use strict";Object.defineProperty(s,"__esModule",{value:true});s.NOOP_METER_PROVIDER=s.NoopMeterProvider=void 0;const a=i(4837);class NoopMeterProvider{getMeter(r,s,i){return a.NOOP_METER}}s.NoopMeterProvider=NoopMeterProvider;s.NOOP_METER_PROVIDER=new NoopMeterProvider},99957:function(r,s,i){"use strict";var a=this&&this.__createBinding||(Object.create?function(r,s,i,a){if(a===undefined)a=i;Object.defineProperty(r,a,{enumerable:true,get:function(){return s[i]}})}:function(r,s,i,a){if(a===undefined)a=i;r[a]=s[i]});var A=this&&this.__exportStar||function(r,s){for(var i in r)if(i!=="default"&&!Object.prototype.hasOwnProperty.call(s,i))a(s,r,i)};Object.defineProperty(s,"__esModule",{value:true});A(i(87200),s)},89406:(r,s)=>{"use strict";Object.defineProperty(s,"__esModule",{value:true});s._globalThis=void 0;s._globalThis=typeof globalThis==="object"?globalThis:global},87200:function(r,s,i){"use strict";var a=this&&this.__createBinding||(Object.create?function(r,s,i,a){if(a===undefined)a=i;Object.defineProperty(r,a,{enumerable:true,get:function(){return s[i]}})}:function(r,s,i,a){if(a===undefined)a=i;r[a]=s[i]});var A=this&&this.__exportStar||function(r,s){for(var i in r)if(i!=="default"&&!Object.prototype.hasOwnProperty.call(s,i))a(s,r,i)};Object.defineProperty(s,"__esModule",{value:true});A(i(89406),s)},17591:(r,s,i)=>{"use strict";Object.defineProperty(s,"__esModule",{value:true});s.propagation=void 0;const a=i(89909);s.propagation=a.PropagationAPI.getInstance()},72368:(r,s)=>{"use strict";Object.defineProperty(s,"__esModule",{value:true});s.NoopTextMapPropagator=void 0;class NoopTextMapPropagator{inject(r,s){}extract(r,s){return r}fields(){return[]}}s.NoopTextMapPropagator=NoopTextMapPropagator},80865:(r,s)=>{"use strict";Object.defineProperty(s,"__esModule",{value:true});s.defaultTextMapSetter=s.defaultTextMapGetter=void 0;s.defaultTextMapGetter={get(r,s){if(r==null){return undefined}return r[s]},keys(r){if(r==null){return[]}return Object.keys(r)}};s.defaultTextMapSetter={set(r,s,i){if(r==null){return}r[s]=i}}},98989:(r,s,i)=>{"use strict";Object.defineProperty(s,"__esModule",{value:true});s.trace=void 0;const a=i(81539);s.trace=a.TraceAPI.getInstance()},81462:(r,s,i)=>{"use strict";Object.defineProperty(s,"__esModule",{value:true});s.NonRecordingSpan=void 0;const a=i(91760);class NonRecordingSpan{constructor(r=a.INVALID_SPAN_CONTEXT){this._spanContext=r}spanContext(){return this._spanContext}setAttribute(r,s){return this}setAttributes(r){return this}addEvent(r,s){return this}setStatus(r){return this}updateName(r){return this}end(r){}isRecording(){return false}recordException(r,s){}}s.NonRecordingSpan=NonRecordingSpan},17606:(r,s,i)=>{"use strict";Object.defineProperty(s,"__esModule",{value:true});s.NoopTracer=void 0;const a=i(57171);const A=i(23326);const c=i(81462);const l=i(49745);const d=a.ContextAPI.getInstance();class NoopTracer{startSpan(r,s,i=d.active()){const a=Boolean(s===null||s===void 0?void 0:s.root);if(a){return new c.NonRecordingSpan}const u=i&&(0,A.getSpanContext)(i);if(isSpanContext(u)&&(0,l.isSpanContextValid)(u)){return new c.NonRecordingSpan(u)}else{return new c.NonRecordingSpan}}startActiveSpan(r,s,i,a){let c;let l;let u;if(arguments.length<2){return}else if(arguments.length===2){u=s}else if(arguments.length===3){c=s;u=i}else{c=s;l=i;u=a}const p=l!==null&&l!==void 0?l:d.active();const g=this.startSpan(r,c,p);const h=(0,A.setSpan)(p,g);return d.with(h,u,undefined,g)}}s.NoopTracer=NoopTracer;function isSpanContext(r){return typeof r==="object"&&typeof r["spanId"]==="string"&&typeof r["traceId"]==="string"&&typeof r["traceFlags"]==="number"}},23259:(r,s,i)=>{"use strict";Object.defineProperty(s,"__esModule",{value:true});s.NoopTracerProvider=void 0;const a=i(17606);class NoopTracerProvider{getTracer(r,s,i){return new a.NoopTracer}}s.NoopTracerProvider=NoopTracerProvider},43503:(r,s,i)=>{"use strict";Object.defineProperty(s,"__esModule",{value:true});s.ProxyTracer=void 0;const a=i(17606);const A=new a.NoopTracer;class ProxyTracer{constructor(r,s,i,a){this._provider=r;this.name=s;this.version=i;this.options=a}startSpan(r,s,i){return this._getTracer().startSpan(r,s,i)}startActiveSpan(r,s,i,a){const A=this._getTracer();return Reflect.apply(A.startActiveSpan,A,arguments)}_getTracer(){if(this._delegate){return this._delegate}const r=this._provider.getDelegateTracer(this.name,this.version,this.options);if(!r){return A}this._delegate=r;return this._delegate}}s.ProxyTracer=ProxyTracer},2285:(r,s,i)=>{"use strict";Object.defineProperty(s,"__esModule",{value:true});s.ProxyTracerProvider=void 0;const a=i(43503);const A=i(23259);const c=new A.NoopTracerProvider;class ProxyTracerProvider{getTracer(r,s,i){var A;return(A=this.getDelegateTracer(r,s,i))!==null&&A!==void 0?A:new a.ProxyTracer(this,r,s,i)}getDelegate(){var r;return(r=this._delegate)!==null&&r!==void 0?r:c}setDelegate(r){this._delegate=r}getDelegateTracer(r,s,i){var a;return(a=this._delegate)===null||a===void 0?void 0:a.getTracer(r,s,i)}}s.ProxyTracerProvider=ProxyTracerProvider},33209:(r,s)=>{"use strict";Object.defineProperty(s,"__esModule",{value:true});s.SamplingDecision=void 0;var i;(function(r){r[r["NOT_RECORD"]=0]="NOT_RECORD";r[r["RECORD"]=1]="RECORD";r[r["RECORD_AND_SAMPLED"]=2]="RECORD_AND_SAMPLED"})(i=s.SamplingDecision||(s.SamplingDecision={}))},23326:(r,s,i)=>{"use strict";Object.defineProperty(s,"__esModule",{value:true});s.getSpanContext=s.setSpanContext=s.deleteSpan=s.setSpan=s.getActiveSpan=s.getSpan=void 0;const a=i(78242);const A=i(81462);const c=i(57171);const l=(0,a.createContextKey)("OpenTelemetry Context Key SPAN");function getSpan(r){return r.getValue(l)||undefined}s.getSpan=getSpan;function getActiveSpan(){return getSpan(c.ContextAPI.getInstance().active())}s.getActiveSpan=getActiveSpan;function setSpan(r,s){return r.setValue(l,s)}s.setSpan=setSpan;function deleteSpan(r){return r.deleteValue(l)}s.deleteSpan=deleteSpan;function setSpanContext(r,s){return setSpan(r,new A.NonRecordingSpan(s))}s.setSpanContext=setSpanContext;function getSpanContext(r){var s;return(s=getSpan(r))===null||s===void 0?void 0:s.spanContext()}s.getSpanContext=getSpanContext},62110:(r,s,i)=>{"use strict";Object.defineProperty(s,"__esModule",{value:true});s.TraceStateImpl=void 0;const a=i(54864);const A=32;const c=512;const l=",";const d="=";class TraceStateImpl{constructor(r){this._internalState=new Map;if(r)this._parse(r)}set(r,s){const i=this._clone();if(i._internalState.has(r)){i._internalState.delete(r)}i._internalState.set(r,s);return i}unset(r){const s=this._clone();s._internalState.delete(r);return s}get(r){return this._internalState.get(r)}serialize(){return this._keys().reduce(((r,s)=>{r.push(s+d+this.get(s));return r}),[]).join(l)}_parse(r){if(r.length>c)return;this._internalState=r.split(l).reverse().reduce(((r,s)=>{const i=s.trim();const A=i.indexOf(d);if(A!==-1){const c=i.slice(0,A);const l=i.slice(A+1,s.length);if((0,a.validateKey)(c)&&(0,a.validateValue)(l)){r.set(c,l)}else{}}return r}),new Map);if(this._internalState.size>A){this._internalState=new Map(Array.from(this._internalState.entries()).reverse().slice(0,A))}}_keys(){return Array.from(this._internalState.keys()).reverse()}_clone(){const r=new TraceStateImpl;r._internalState=new Map(this._internalState);return r}}s.TraceStateImpl=TraceStateImpl},54864:(r,s)=>{"use strict";Object.defineProperty(s,"__esModule",{value:true});s.validateValue=s.validateKey=void 0;const i="[_0-9a-z-*/]";const a=`[a-z]${i}{0,255}`;const A=`[a-z0-9]${i}{0,240}@[a-z]${i}{0,13}`;const c=new RegExp(`^(?:${a}|${A})$`);const l=/^[ -~]{0,255}[!-~]$/;const d=/,|=/;function validateKey(r){return c.test(r)}s.validateKey=validateKey;function validateValue(r){return l.test(r)&&!d.test(r)}s.validateValue=validateValue},32615:(r,s,i)=>{"use strict";Object.defineProperty(s,"__esModule",{value:true});s.createTraceState=void 0;const a=i(62110);function createTraceState(r){return new a.TraceStateImpl(r)}s.createTraceState=createTraceState},91760:(r,s,i)=>{"use strict";Object.defineProperty(s,"__esModule",{value:true});s.INVALID_SPAN_CONTEXT=s.INVALID_TRACEID=s.INVALID_SPANID=void 0;const a=i(26905);s.INVALID_SPANID="0000000000000000";s.INVALID_TRACEID="00000000000000000000000000000000";s.INVALID_SPAN_CONTEXT={traceId:s.INVALID_TRACEID,spanId:s.INVALID_SPANID,traceFlags:a.TraceFlags.NONE}},31424:(r,s)=>{"use strict";Object.defineProperty(s,"__esModule",{value:true});s.SpanKind=void 0;var i;(function(r){r[r["INTERNAL"]=0]="INTERNAL";r[r["SERVER"]=1]="SERVER";r[r["CLIENT"]=2]="CLIENT";r[r["PRODUCER"]=3]="PRODUCER";r[r["CONSUMER"]=4]="CONSUMER"})(i=s.SpanKind||(s.SpanKind={}))},49745:(r,s,i)=>{"use strict";Object.defineProperty(s,"__esModule",{value:true});s.wrapSpanContext=s.isSpanContextValid=s.isValidSpanId=s.isValidTraceId=void 0;const a=i(91760);const A=i(81462);const c=/^([0-9a-f]{32})$/i;const l=/^[0-9a-f]{16}$/i;function isValidTraceId(r){return c.test(r)&&r!==a.INVALID_TRACEID}s.isValidTraceId=isValidTraceId;function isValidSpanId(r){return l.test(r)&&r!==a.INVALID_SPANID}s.isValidSpanId=isValidSpanId;function isSpanContextValid(r){return isValidTraceId(r.traceId)&&isValidSpanId(r.spanId)}s.isSpanContextValid=isSpanContextValid;function wrapSpanContext(r){return new A.NonRecordingSpan(r)}s.wrapSpanContext=wrapSpanContext},48845:(r,s)=>{"use strict";Object.defineProperty(s,"__esModule",{value:true});s.SpanStatusCode=void 0;var i;(function(r){r[r["UNSET"]=0]="UNSET";r[r["OK"]=1]="OK";r[r["ERROR"]=2]="ERROR"})(i=s.SpanStatusCode||(s.SpanStatusCode={}))},26905:(r,s)=>{"use strict";Object.defineProperty(s,"__esModule",{value:true});s.TraceFlags=void 0;var i;(function(r){r[r["NONE"]=0]="NONE";r[r["SAMPLED"]=1]="SAMPLED"})(i=s.TraceFlags||(s.TraceFlags={}))},98996:(r,s)=>{"use strict";Object.defineProperty(s,"__esModule",{value:true});s.VERSION=void 0;s.VERSION="1.4.1"},29912:function(r,s){"use strict";var i=this&&this.__awaiter||function(r,s,i,a){function adopt(r){return r instanceof i?r:new i((function(s){s(r)}))}return new(i||(i=Promise))((function(i,A){function fulfilled(r){try{step(a.next(r))}catch(r){A(r)}}function rejected(r){try{step(a["throw"](r))}catch(r){A(r)}}function step(r){r.done?i(r.value):adopt(r.value).then(fulfilled,rejected)}step((a=a.apply(r,s||[])).next())}))};Object.defineProperty(s,"__esModule",{value:true});s.ClientStreamingCall=void 0;class ClientStreamingCall{constructor(r,s,i,a,A,c,l){this.method=r;this.requestHeaders=s;this.requests=i;this.headers=a;this.response=A;this.status=c;this.trailers=l}then(r,s){return this.promiseFinished().then((s=>r?Promise.resolve(r(s)):s),(r=>s?Promise.resolve(s(r)):Promise.reject(r)))}promiseFinished(){return i(this,void 0,void 0,(function*(){let[r,s,i,a]=yield Promise.all([this.headers,this.response,this.status,this.trailers]);return{method:this.method,requestHeaders:this.requestHeaders,headers:r,response:s,status:i,trailers:a}}))}}s.ClientStreamingCall=ClientStreamingCall},85702:(r,s)=>{"use strict";Object.defineProperty(s,"__esModule",{value:true});s.Deferred=s.DeferredState=void 0;var i;(function(r){r[r["PENDING"]=0]="PENDING";r[r["REJECTED"]=1]="REJECTED";r[r["RESOLVED"]=2]="RESOLVED"})(i=s.DeferredState||(s.DeferredState={}));class Deferred{constructor(r=true){this._state=i.PENDING;this._promise=new Promise(((r,s)=>{this._resolve=r;this._reject=s}));if(r){this._promise.catch((r=>{}))}}get state(){return this._state}get promise(){return this._promise}resolve(r){if(this.state!==i.PENDING)throw new Error(`cannot resolve ${i[this.state].toLowerCase()}`);this._resolve(r);this._state=i.RESOLVED}reject(r){if(this.state!==i.PENDING)throw new Error(`cannot reject ${i[this.state].toLowerCase()}`);this._reject(r);this._state=i.REJECTED}resolvePending(r){if(this._state===i.PENDING)this.resolve(r)}rejectPending(r){if(this._state===i.PENDING)this.reject(r)}}s.Deferred=Deferred},17042:function(r,s){"use strict";var i=this&&this.__awaiter||function(r,s,i,a){function adopt(r){return r instanceof i?r:new i((function(s){s(r)}))}return new(i||(i=Promise))((function(i,A){function fulfilled(r){try{step(a.next(r))}catch(r){A(r)}}function rejected(r){try{step(a["throw"](r))}catch(r){A(r)}}function step(r){r.done?i(r.value):adopt(r.value).then(fulfilled,rejected)}step((a=a.apply(r,s||[])).next())}))};Object.defineProperty(s,"__esModule",{value:true});s.DuplexStreamingCall=void 0;class DuplexStreamingCall{constructor(r,s,i,a,A,c,l){this.method=r;this.requestHeaders=s;this.requests=i;this.headers=a;this.responses=A;this.status=c;this.trailers=l}then(r,s){return this.promiseFinished().then((s=>r?Promise.resolve(r(s)):s),(r=>s?Promise.resolve(s(r)):Promise.reject(r)))}promiseFinished(){return i(this,void 0,void 0,(function*(){let[r,s,i]=yield Promise.all([this.headers,this.status,this.trailers]);return{method:this.method,requestHeaders:this.requestHeaders,headers:r,status:s,trailers:i}}))}}s.DuplexStreamingCall=DuplexStreamingCall},60012:(r,s,i)=>{"use strict";Object.defineProperty(s,"__esModule",{value:true});var a=i(14107);Object.defineProperty(s,"ServiceType",{enumerable:true,get:function(){return a.ServiceType}});var A=i(44331);Object.defineProperty(s,"readMethodOptions",{enumerable:true,get:function(){return A.readMethodOptions}});Object.defineProperty(s,"readMethodOption",{enumerable:true,get:function(){return A.readMethodOption}});Object.defineProperty(s,"readServiceOption",{enumerable:true,get:function(){return A.readServiceOption}});var c=i(63159);Object.defineProperty(s,"RpcError",{enumerable:true,get:function(){return c.RpcError}});var l=i(67386);Object.defineProperty(s,"mergeRpcOptions",{enumerable:true,get:function(){return l.mergeRpcOptions}});var d=i(76637);Object.defineProperty(s,"RpcOutputStreamController",{enumerable:true,get:function(){return d.RpcOutputStreamController}});var u=i(87008);Object.defineProperty(s,"TestTransport",{enumerable:true,get:function(){return u.TestTransport}});var p=i(85702);Object.defineProperty(s,"Deferred",{enumerable:true,get:function(){return p.Deferred}});Object.defineProperty(s,"DeferredState",{enumerable:true,get:function(){return p.DeferredState}});var g=i(17042);Object.defineProperty(s,"DuplexStreamingCall",{enumerable:true,get:function(){return g.DuplexStreamingCall}});var h=i(29912);Object.defineProperty(s,"ClientStreamingCall",{enumerable:true,get:function(){return h.ClientStreamingCall}});var C=i(30066);Object.defineProperty(s,"ServerStreamingCall",{enumerable:true,get:function(){return C.ServerStreamingCall}});var y=i(84175);Object.defineProperty(s,"UnaryCall",{enumerable:true,get:function(){return y.UnaryCall}});var I=i(51680);Object.defineProperty(s,"stackIntercept",{enumerable:true,get:function(){return I.stackIntercept}});Object.defineProperty(s,"stackDuplexStreamingInterceptors",{enumerable:true,get:function(){return I.stackDuplexStreamingInterceptors}});Object.defineProperty(s,"stackClientStreamingInterceptors",{enumerable:true,get:function(){return I.stackClientStreamingInterceptors}});Object.defineProperty(s,"stackServerStreamingInterceptors",{enumerable:true,get:function(){return I.stackServerStreamingInterceptors}});Object.defineProperty(s,"stackUnaryInterceptors",{enumerable:true,get:function(){return I.stackUnaryInterceptors}});var B=i(25320);Object.defineProperty(s,"ServerCallContextController",{enumerable:true,get:function(){return B.ServerCallContextController}})},44331:(r,s,i)=>{"use strict";Object.defineProperty(s,"__esModule",{value:true});s.readServiceOption=s.readMethodOption=s.readMethodOptions=s.normalizeMethodInfo=void 0;const a=i(4061);function normalizeMethodInfo(r,s){var i,A,c;let l=r;l.service=s;l.localName=(i=l.localName)!==null&&i!==void 0?i:a.lowerCamelCase(l.name);l.serverStreaming=!!l.serverStreaming;l.clientStreaming=!!l.clientStreaming;l.options=(A=l.options)!==null&&A!==void 0?A:{};l.idempotency=(c=l.idempotency)!==null&&c!==void 0?c:undefined;return l}s.normalizeMethodInfo=normalizeMethodInfo;function readMethodOptions(r,s,i,a){var A;const c=(A=r.methods.find(((r,i)=>r.localName===s||i===s)))===null||A===void 0?void 0:A.options;return c&&c[i]?a.fromJson(c[i]):undefined}s.readMethodOptions=readMethodOptions;function readMethodOption(r,s,i,a){var A;const c=(A=r.methods.find(((r,i)=>r.localName===s||i===s)))===null||A===void 0?void 0:A.options;if(!c){return undefined}const l=c[i];if(l===undefined){return l}return a?a.fromJson(l):l}s.readMethodOption=readMethodOption;function readServiceOption(r,s,i){const a=r.options;if(!a){return undefined}const A=a[s];if(A===undefined){return A}return i?i.fromJson(A):A}s.readServiceOption=readServiceOption},63159:(r,s)=>{"use strict";Object.defineProperty(s,"__esModule",{value:true});s.RpcError=void 0;class RpcError extends Error{constructor(r,s="UNKNOWN",i){super(r);this.name="RpcError";Object.setPrototypeOf(this,new.target.prototype);this.code=s;this.meta=i!==null&&i!==void 0?i:{}}toString(){const r=[this.name+": "+this.message];if(this.code){r.push("");r.push("Code: "+this.code)}if(this.serviceName&&this.methodName){r.push("Method: "+this.serviceName+"/"+this.methodName)}let s=Object.entries(this.meta);if(s.length){r.push("");r.push("Meta:");for(let[i,a]of s){r.push(` ${i}: ${a}`)}}return r.join("\n")}}s.RpcError=RpcError},51680:(r,s,i)=>{"use strict";Object.defineProperty(s,"__esModule",{value:true});s.stackDuplexStreamingInterceptors=s.stackClientStreamingInterceptors=s.stackServerStreamingInterceptors=s.stackUnaryInterceptors=s.stackIntercept=void 0;const a=i(4061);function stackIntercept(r,s,i,A,c){var l,d,u,p;if(r=="unary"){let tail=(r,i,a)=>s.unary(r,i,a);for(const r of((l=A.interceptors)!==null&&l!==void 0?l:[]).filter((r=>r.interceptUnary)).reverse()){const s=tail;tail=(i,a,A)=>r.interceptUnary(s,i,a,A)}return tail(i,c,A)}if(r=="serverStreaming"){let tail=(r,i,a)=>s.serverStreaming(r,i,a);for(const r of((d=A.interceptors)!==null&&d!==void 0?d:[]).filter((r=>r.interceptServerStreaming)).reverse()){const s=tail;tail=(i,a,A)=>r.interceptServerStreaming(s,i,a,A)}return tail(i,c,A)}if(r=="clientStreaming"){let tail=(r,i)=>s.clientStreaming(r,i);for(const r of((u=A.interceptors)!==null&&u!==void 0?u:[]).filter((r=>r.interceptClientStreaming)).reverse()){const s=tail;tail=(i,a)=>r.interceptClientStreaming(s,i,a)}return tail(i,A)}if(r=="duplex"){let tail=(r,i)=>s.duplex(r,i);for(const r of((p=A.interceptors)!==null&&p!==void 0?p:[]).filter((r=>r.interceptDuplex)).reverse()){const s=tail;tail=(i,a)=>r.interceptDuplex(s,i,a)}return tail(i,A)}a.assertNever(r)}s.stackIntercept=stackIntercept;function stackUnaryInterceptors(r,s,i,a){return stackIntercept("unary",r,s,a,i)}s.stackUnaryInterceptors=stackUnaryInterceptors;function stackServerStreamingInterceptors(r,s,i,a){return stackIntercept("serverStreaming",r,s,a,i)}s.stackServerStreamingInterceptors=stackServerStreamingInterceptors;function stackClientStreamingInterceptors(r,s,i){return stackIntercept("clientStreaming",r,s,i)}s.stackClientStreamingInterceptors=stackClientStreamingInterceptors;function stackDuplexStreamingInterceptors(r,s,i){return stackIntercept("duplex",r,s,i)}s.stackDuplexStreamingInterceptors=stackDuplexStreamingInterceptors},67386:(r,s,i)=>{"use strict";Object.defineProperty(s,"__esModule",{value:true});s.mergeRpcOptions=void 0;const a=i(4061);function mergeRpcOptions(r,s){if(!s)return r;let i={};copy(r,i);copy(s,i);for(let A of Object.keys(s)){let c=s[A];switch(A){case"jsonOptions":i.jsonOptions=a.mergeJsonOptions(r.jsonOptions,i.jsonOptions);break;case"binaryOptions":i.binaryOptions=a.mergeBinaryOptions(r.binaryOptions,i.binaryOptions);break;case"meta":i.meta={};copy(r.meta,i.meta);copy(s.meta,i.meta);break;case"interceptors":i.interceptors=r.interceptors?r.interceptors.concat(c):c.concat();break}}return i}s.mergeRpcOptions=mergeRpcOptions;function copy(r,s){if(!r)return;let i=s;for(let[s,a]of Object.entries(r)){if(a instanceof Date)i[s]=new Date(a.getTime());else if(Array.isArray(a))i[s]=a.concat();else i[s]=a}}},76637:(r,s,i)=>{"use strict";Object.defineProperty(s,"__esModule",{value:true});s.RpcOutputStreamController=void 0;const a=i(85702);const A=i(4061);class RpcOutputStreamController{constructor(){this._lis={nxt:[],msg:[],err:[],cmp:[]};this._closed=false}onNext(r){return this.addLis(r,this._lis.nxt)}onMessage(r){return this.addLis(r,this._lis.msg)}onError(r){return this.addLis(r,this._lis.err)}onComplete(r){return this.addLis(r,this._lis.cmp)}addLis(r,s){s.push(r);return()=>{let i=s.indexOf(r);if(i>=0)s.splice(i,1)}}clearLis(){for(let r of Object.values(this._lis))r.splice(0,r.length)}get closed(){return this._closed!==false}notifyNext(r,s,i){A.assert((r?1:0)+(s?1:0)+(i?1:0)<=1,"only one emission at a time");if(r)this.notifyMessage(r);if(s)this.notifyError(s);if(i)this.notifyComplete()}notifyMessage(r){A.assert(!this.closed,"stream is closed");this.pushIt({value:r,done:false});this._lis.msg.forEach((s=>s(r)));this._lis.nxt.forEach((s=>s(r,undefined,false)))}notifyError(r){A.assert(!this.closed,"stream is closed");this._closed=r;this.pushIt(r);this._lis.err.forEach((s=>s(r)));this._lis.nxt.forEach((s=>s(undefined,r,false)));this.clearLis()}notifyComplete(){A.assert(!this.closed,"stream is closed");this._closed=true;this.pushIt({value:null,done:true});this._lis.cmp.forEach((r=>r()));this._lis.nxt.forEach((r=>r(undefined,undefined,true)));this.clearLis()}[Symbol.asyncIterator](){if(!this._itState){this._itState={q:[]}}if(this._closed===true)this.pushIt({value:null,done:true});else if(this._closed!==false)this.pushIt(this._closed);return{next:()=>{let r=this._itState;A.assert(r,"bad state");A.assert(!r.p,"iterator contract broken");let s=r.q.shift();if(s)return"value"in s?Promise.resolve(s):Promise.reject(s);r.p=new a.Deferred;return r.p.promise}}}pushIt(r){let s=this._itState;if(!s)return;if(s.p){const i=s.p;A.assert(i.state==a.DeferredState.PENDING,"iterator contract broken");"value"in r?i.resolve(r):i.reject(r);delete s.p}else{s.q.push(r)}}}s.RpcOutputStreamController=RpcOutputStreamController},25320:(r,s)=>{"use strict";Object.defineProperty(s,"__esModule",{value:true});s.ServerCallContextController=void 0;class ServerCallContextController{constructor(r,s,i,a,A={code:"OK",detail:""}){this._cancelled=false;this._listeners=[];this.method=r;this.headers=s;this.deadline=i;this.trailers={};this._sendRH=a;this.status=A}notifyCancelled(){if(!this._cancelled){this._cancelled=true;for(let r of this._listeners){r()}}}sendResponseHeaders(r){this._sendRH(r)}get cancelled(){return this._cancelled}onCancel(r){const s=this._listeners;s.push(r);return()=>{let i=s.indexOf(r);if(i>=0)s.splice(i,1)}}}s.ServerCallContextController=ServerCallContextController},30066:function(r,s){"use strict";var i=this&&this.__awaiter||function(r,s,i,a){function adopt(r){return r instanceof i?r:new i((function(s){s(r)}))}return new(i||(i=Promise))((function(i,A){function fulfilled(r){try{step(a.next(r))}catch(r){A(r)}}function rejected(r){try{step(a["throw"](r))}catch(r){A(r)}}function step(r){r.done?i(r.value):adopt(r.value).then(fulfilled,rejected)}step((a=a.apply(r,s||[])).next())}))};Object.defineProperty(s,"__esModule",{value:true});s.ServerStreamingCall=void 0;class ServerStreamingCall{constructor(r,s,i,a,A,c,l){this.method=r;this.requestHeaders=s;this.request=i;this.headers=a;this.responses=A;this.status=c;this.trailers=l}then(r,s){return this.promiseFinished().then((s=>r?Promise.resolve(r(s)):s),(r=>s?Promise.resolve(s(r)):Promise.reject(r)))}promiseFinished(){return i(this,void 0,void 0,(function*(){let[r,s,i]=yield Promise.all([this.headers,this.status,this.trailers]);return{method:this.method,requestHeaders:this.requestHeaders,request:this.request,headers:r,status:s,trailers:i}}))}}s.ServerStreamingCall=ServerStreamingCall},14107:(r,s,i)=>{"use strict";Object.defineProperty(s,"__esModule",{value:true});s.ServiceType=void 0;const a=i(44331);class ServiceType{constructor(r,s,i){this.typeName=r;this.methods=s.map((r=>a.normalizeMethodInfo(r,this)));this.options=i!==null&&i!==void 0?i:{}}}s.ServiceType=ServiceType},87008:function(r,s,i){"use strict";var a=this&&this.__awaiter||function(r,s,i,a){function adopt(r){return r instanceof i?r:new i((function(s){s(r)}))}return new(i||(i=Promise))((function(i,A){function fulfilled(r){try{step(a.next(r))}catch(r){A(r)}}function rejected(r){try{step(a["throw"](r))}catch(r){A(r)}}function step(r){r.done?i(r.value):adopt(r.value).then(fulfilled,rejected)}step((a=a.apply(r,s||[])).next())}))};Object.defineProperty(s,"__esModule",{value:true});s.TestTransport=void 0;const A=i(63159);const c=i(4061);const l=i(76637);const d=i(67386);const u=i(84175);const p=i(30066);const g=i(29912);const h=i(17042);class TestTransport{constructor(r){this.suppressUncaughtRejections=true;this.headerDelay=10;this.responseDelay=50;this.betweenResponseDelay=10;this.afterResponseDelay=10;this.data=r!==null&&r!==void 0?r:{}}get sentMessages(){if(this.lastInput instanceof TestInputStream){return this.lastInput.sent}else if(typeof this.lastInput=="object"){return[this.lastInput.single]}return[]}get sendComplete(){if(this.lastInput instanceof TestInputStream){return this.lastInput.completed}else if(typeof this.lastInput=="object"){return true}return false}promiseHeaders(){var r;const s=(r=this.data.headers)!==null&&r!==void 0?r:TestTransport.defaultHeaders;return s instanceof A.RpcError?Promise.reject(s):Promise.resolve(s)}promiseSingleResponse(r){if(this.data.response instanceof A.RpcError){return Promise.reject(this.data.response)}let s;if(Array.isArray(this.data.response)){c.assert(this.data.response.length>0);s=this.data.response[0]}else if(this.data.response!==undefined){s=this.data.response}else{s=r.O.create()}c.assert(r.O.is(s));return Promise.resolve(s)}streamResponses(r,s,i){return a(this,void 0,void 0,(function*(){const a=[];if(this.data.response===undefined){a.push(r.O.create())}else if(Array.isArray(this.data.response)){for(let s of this.data.response){c.assert(r.O.is(s));a.push(s)}}else if(!(this.data.response instanceof A.RpcError)){c.assert(r.O.is(this.data.response));a.push(this.data.response)}try{yield delay(this.responseDelay,i)(undefined)}catch(r){s.notifyError(r);return}if(this.data.response instanceof A.RpcError){s.notifyError(this.data.response);return}for(let r of a){s.notifyMessage(r);try{yield delay(this.betweenResponseDelay,i)(undefined)}catch(r){s.notifyError(r);return}}if(this.data.status instanceof A.RpcError){s.notifyError(this.data.status);return}if(this.data.trailers instanceof A.RpcError){s.notifyError(this.data.trailers);return}s.notifyComplete()}))}promiseStatus(){var r;const s=(r=this.data.status)!==null&&r!==void 0?r:TestTransport.defaultStatus;return s instanceof A.RpcError?Promise.reject(s):Promise.resolve(s)}promiseTrailers(){var r;const s=(r=this.data.trailers)!==null&&r!==void 0?r:TestTransport.defaultTrailers;return s instanceof A.RpcError?Promise.reject(s):Promise.resolve(s)}maybeSuppressUncaught(...r){if(this.suppressUncaughtRejections){for(let s of r){s.catch((()=>{}))}}}mergeOptions(r){return d.mergeRpcOptions({},r)}unary(r,s,i){var a;const A=(a=i.meta)!==null&&a!==void 0?a:{},c=this.promiseHeaders().then(delay(this.headerDelay,i.abort)),l=c.catch((r=>{})).then(delay(this.responseDelay,i.abort)).then((s=>this.promiseSingleResponse(r))),d=l.catch((r=>{})).then(delay(this.afterResponseDelay,i.abort)).then((r=>this.promiseStatus())),p=l.catch((r=>{})).then(delay(this.afterResponseDelay,i.abort)).then((r=>this.promiseTrailers()));this.maybeSuppressUncaught(d,p);this.lastInput={single:s};return new u.UnaryCall(r,A,s,c,l,d,p)}serverStreaming(r,s,i){var a;const A=(a=i.meta)!==null&&a!==void 0?a:{},c=this.promiseHeaders().then(delay(this.headerDelay,i.abort)),d=new l.RpcOutputStreamController,u=c.then(delay(this.responseDelay,i.abort)).catch((()=>{})).then((()=>this.streamResponses(r,d,i.abort))).then(delay(this.afterResponseDelay,i.abort)),g=u.then((()=>this.promiseStatus())),h=u.then((()=>this.promiseTrailers()));this.maybeSuppressUncaught(g,h);this.lastInput={single:s};return new p.ServerStreamingCall(r,A,s,c,d,g,h)}clientStreaming(r,s){var i;const a=(i=s.meta)!==null&&i!==void 0?i:{},A=this.promiseHeaders().then(delay(this.headerDelay,s.abort)),c=A.catch((r=>{})).then(delay(this.responseDelay,s.abort)).then((s=>this.promiseSingleResponse(r))),l=c.catch((r=>{})).then(delay(this.afterResponseDelay,s.abort)).then((r=>this.promiseStatus())),d=c.catch((r=>{})).then(delay(this.afterResponseDelay,s.abort)).then((r=>this.promiseTrailers()));this.maybeSuppressUncaught(l,d);this.lastInput=new TestInputStream(this.data,s.abort);return new g.ClientStreamingCall(r,a,this.lastInput,A,c,l,d)}duplex(r,s){var i;const a=(i=s.meta)!==null&&i!==void 0?i:{},A=this.promiseHeaders().then(delay(this.headerDelay,s.abort)),c=new l.RpcOutputStreamController,d=A.then(delay(this.responseDelay,s.abort)).catch((()=>{})).then((()=>this.streamResponses(r,c,s.abort))).then(delay(this.afterResponseDelay,s.abort)),u=d.then((()=>this.promiseStatus())),p=d.then((()=>this.promiseTrailers()));this.maybeSuppressUncaught(u,p);this.lastInput=new TestInputStream(this.data,s.abort);return new h.DuplexStreamingCall(r,a,this.lastInput,A,c,u,p)}}s.TestTransport=TestTransport;TestTransport.defaultHeaders={responseHeader:"test"};TestTransport.defaultStatus={code:"OK",detail:"all good"};TestTransport.defaultTrailers={responseTrailer:"test"};function delay(r,s){return i=>new Promise(((a,c)=>{if(s===null||s===void 0?void 0:s.aborted){c(new A.RpcError("user cancel","CANCELLED"))}else{const l=setTimeout((()=>a(i)),r);if(s){s.addEventListener("abort",(r=>{clearTimeout(l);c(new A.RpcError("user cancel","CANCELLED"))}))}}}))}class TestInputStream{constructor(r,s){this._completed=false;this._sent=[];this.data=r;this.abort=s}get sent(){return this._sent}get completed(){return this._completed}send(r){if(this.data.inputMessage instanceof A.RpcError){return Promise.reject(this.data.inputMessage)}const s=this.data.inputMessage===undefined?10:this.data.inputMessage;return Promise.resolve(undefined).then((()=>{this._sent.push(r)})).then(delay(s,this.abort))}complete(){if(this.data.inputComplete instanceof A.RpcError){return Promise.reject(this.data.inputComplete)}const r=this.data.inputComplete===undefined?10:this.data.inputComplete;return Promise.resolve(undefined).then((()=>{this._completed=true})).then(delay(r,this.abort))}}},84175:function(r,s){"use strict";var i=this&&this.__awaiter||function(r,s,i,a){function adopt(r){return r instanceof i?r:new i((function(s){s(r)}))}return new(i||(i=Promise))((function(i,A){function fulfilled(r){try{step(a.next(r))}catch(r){A(r)}}function rejected(r){try{step(a["throw"](r))}catch(r){A(r)}}function step(r){r.done?i(r.value):adopt(r.value).then(fulfilled,rejected)}step((a=a.apply(r,s||[])).next())}))};Object.defineProperty(s,"__esModule",{value:true});s.UnaryCall=void 0;class UnaryCall{constructor(r,s,i,a,A,c,l){this.method=r;this.requestHeaders=s;this.request=i;this.headers=a;this.response=A;this.status=c;this.trailers=l}then(r,s){return this.promiseFinished().then((s=>r?Promise.resolve(r(s)):s),(r=>s?Promise.resolve(s(r)):Promise.reject(r)))}promiseFinished(){return i(this,void 0,void 0,(function*(){let[r,s,i,a]=yield Promise.all([this.headers,this.response,this.status,this.trailers]);return{method:this.method,requestHeaders:this.requestHeaders,request:this.request,headers:r,response:s,status:i,trailers:a}}))}}s.UnaryCall=UnaryCall},54253:(r,s)=>{"use strict";Object.defineProperty(s,"__esModule",{value:true});s.assertFloat32=s.assertUInt32=s.assertInt32=s.assertNever=s.assert=void 0;function assert(r,s){if(!r){throw new Error(s)}}s.assert=assert;function assertNever(r,s){throw new Error(s!==null&&s!==void 0?s:"Unexpected object: "+r)}s.assertNever=assertNever;const i=34028234663852886e22,a=-34028234663852886e22,A=4294967295,c=2147483647,l=-2147483648;function assertInt32(r){if(typeof r!=="number")throw new Error("invalid int 32: "+typeof r);if(!Number.isInteger(r)||r>c||rA||r<0)throw new Error("invalid uint 32: "+r)}s.assertUInt32=assertUInt32;function assertFloat32(r){if(typeof r!=="number")throw new Error("invalid float 32: "+typeof r);if(!Number.isFinite(r))return;if(r>i||r{"use strict";Object.defineProperty(s,"__esModule",{value:true});s.base64encode=s.base64decode=void 0;let i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");let a=[];for(let r=0;r>4;d=l;c=2;break;case 2:i[A++]=(d&15)<<4|(l&60)>>2;d=l;c=3;break;case 3:i[A++]=(d&3)<<6|l;c=0;break}}if(c==1)throw Error(`invalid base64 string.`);return i.subarray(0,A)}s.base64decode=base64decode;function base64encode(r){let s="",a=0,A,c=0;for(let l=0;l>2];c=(A&3)<<4;a=1;break;case 1:s+=i[c|A>>4];c=(A&15)<<2;a=2;break;case 2:s+=i[c|A>>6];s+=i[A&63];a=0;break}}if(a){s+=i[c];s+="=";if(a==1)s+="="}return s}s.base64encode=base64encode},84921:(r,s)=>{"use strict";Object.defineProperty(s,"__esModule",{value:true});s.WireType=s.mergeBinaryOptions=s.UnknownFieldHandler=void 0;var i;(function(r){r.symbol=Symbol.for("protobuf-ts/unknown");r.onRead=(s,i,a,A,c)=>{let l=is(i)?i[r.symbol]:i[r.symbol]=[];l.push({no:a,wireType:A,data:c})};r.onWrite=(s,i,a)=>{for(let{no:s,wireType:A,data:c}of r.list(i))a.tag(s,A).raw(c)};r.list=(s,i)=>{if(is(s)){let a=s[r.symbol];return i?a.filter((r=>r.no==i)):a}return[]};r.last=(s,i)=>r.list(s,i).slice(-1)[0];const is=s=>s&&Array.isArray(s[r.symbol])})(i=s.UnknownFieldHandler||(s.UnknownFieldHandler={}));function mergeBinaryOptions(r,s){return Object.assign(Object.assign({},r),s)}s.mergeBinaryOptions=mergeBinaryOptions;var a;(function(r){r[r["Varint"]=0]="Varint";r[r["Bit64"]=1]="Bit64";r[r["LengthDelimited"]=2]="LengthDelimited";r[r["StartGroup"]=3]="StartGroup";r[r["EndGroup"]=4]="EndGroup";r[r["Bit32"]=5]="Bit32"})(a=s.WireType||(s.WireType={}))},65210:(r,s,i)=>{"use strict";Object.defineProperty(s,"__esModule",{value:true});s.BinaryReader=s.binaryReadOptions=void 0;const a=i(84921);const A=i(47777);const c=i(30433);const l={readUnknownField:true,readerFactory:r=>new BinaryReader(r)};function binaryReadOptions(r){return r?Object.assign(Object.assign({},l),r):l}s.binaryReadOptions=binaryReadOptions;class BinaryReader{constructor(r,s){this.varint64=c.varint64read;this.uint32=c.varint32read;this.buf=r;this.len=r.length;this.pos=0;this.view=new DataView(r.buffer,r.byteOffset,r.byteLength);this.textDecoder=s!==null&&s!==void 0?s:new TextDecoder("utf-8",{fatal:true,ignoreBOM:true})}tag(){let r=this.uint32(),s=r>>>3,i=r&7;if(s<=0||i<0||i>5)throw new Error("illegal tag: field no "+s+" wire type "+i);return[s,i]}skip(r){let s=this.pos;switch(r){case a.WireType.Varint:while(this.buf[this.pos++]&128){}break;case a.WireType.Bit64:this.pos+=4;case a.WireType.Bit32:this.pos+=4;break;case a.WireType.LengthDelimited:let s=this.uint32();this.pos+=s;break;case a.WireType.StartGroup:let i;while((i=this.tag()[1])!==a.WireType.EndGroup){this.skip(i)}break;default:throw new Error("cant skip wire type "+r)}this.assertBounds();return this.buf.subarray(s,this.pos)}assertBounds(){if(this.pos>this.len)throw new RangeError("premature EOF")}int32(){return this.uint32()|0}sint32(){let r=this.uint32();return r>>>1^-(r&1)}int64(){return new A.PbLong(...this.varint64())}uint64(){return new A.PbULong(...this.varint64())}sint64(){let[r,s]=this.varint64();let i=-(r&1);r=(r>>>1|(s&1)<<31)^i;s=s>>>1^i;return new A.PbLong(r,s)}bool(){let[r,s]=this.varint64();return r!==0||s!==0}fixed32(){return this.view.getUint32((this.pos+=4)-4,true)}sfixed32(){return this.view.getInt32((this.pos+=4)-4,true)}fixed64(){return new A.PbULong(this.sfixed32(),this.sfixed32())}sfixed64(){return new A.PbLong(this.sfixed32(),this.sfixed32())}float(){return this.view.getFloat32((this.pos+=4)-4,true)}double(){return this.view.getFloat64((this.pos+=8)-8,true)}bytes(){let r=this.uint32();let s=this.pos;this.pos+=r;this.assertBounds();return this.buf.subarray(s,s+r)}string(){return this.textDecoder.decode(this.bytes())}}s.BinaryReader=BinaryReader},44354:(r,s,i)=>{"use strict";Object.defineProperty(s,"__esModule",{value:true});s.BinaryWriter=s.binaryWriteOptions=void 0;const a=i(47777);const A=i(30433);const c=i(54253);const l={writeUnknownFields:true,writerFactory:()=>new BinaryWriter};function binaryWriteOptions(r){return r?Object.assign(Object.assign({},l),r):l}s.binaryWriteOptions=binaryWriteOptions;class BinaryWriter{constructor(r){this.stack=[];this.textEncoder=r!==null&&r!==void 0?r:new TextEncoder;this.chunks=[];this.buf=[]}finish(){this.chunks.push(new Uint8Array(this.buf));let r=0;for(let s=0;s>>0)}raw(r){if(this.buf.length){this.chunks.push(new Uint8Array(this.buf));this.buf=[]}this.chunks.push(r);return this}uint32(r){c.assertUInt32(r);while(r>127){this.buf.push(r&127|128);r=r>>>7}this.buf.push(r);return this}int32(r){c.assertInt32(r);A.varint32write(r,this.buf);return this}bool(r){this.buf.push(r?1:0);return this}bytes(r){this.uint32(r.byteLength);return this.raw(r)}string(r){let s=this.textEncoder.encode(r);this.uint32(s.byteLength);return this.raw(s)}float(r){c.assertFloat32(r);let s=new Uint8Array(4);new DataView(s.buffer).setFloat32(0,r,true);return this.raw(s)}double(r){let s=new Uint8Array(8);new DataView(s.buffer).setFloat64(0,r,true);return this.raw(s)}fixed32(r){c.assertUInt32(r);let s=new Uint8Array(4);new DataView(s.buffer).setUint32(0,r,true);return this.raw(s)}sfixed32(r){c.assertInt32(r);let s=new Uint8Array(4);new DataView(s.buffer).setInt32(0,r,true);return this.raw(s)}sint32(r){c.assertInt32(r);r=(r<<1^r>>31)>>>0;A.varint32write(r,this.buf);return this}sfixed64(r){let s=new Uint8Array(8);let i=new DataView(s.buffer);let A=a.PbLong.from(r);i.setInt32(0,A.lo,true);i.setInt32(4,A.hi,true);return this.raw(s)}fixed64(r){let s=new Uint8Array(8);let i=new DataView(s.buffer);let A=a.PbULong.from(r);i.setInt32(0,A.lo,true);i.setInt32(4,A.hi,true);return this.raw(s)}int64(r){let s=a.PbLong.from(r);A.varint64write(s.lo,s.hi,this.buf);return this}sint64(r){let s=a.PbLong.from(r),i=s.hi>>31,c=s.lo<<1^i,l=(s.hi<<1|s.lo>>>31)^i;A.varint64write(c,l,this.buf);return this}uint64(r){let s=a.PbULong.from(r);A.varint64write(s.lo,s.hi,this.buf);return this}}s.BinaryWriter=BinaryWriter},20085:(r,s)=>{"use strict";Object.defineProperty(s,"__esModule",{value:true});s.listEnumNumbers=s.listEnumNames=s.listEnumValues=s.isEnumObject=void 0;function isEnumObject(r){if(typeof r!="object"||r===null){return false}if(!r.hasOwnProperty(0)){return false}for(let s of Object.keys(r)){let i=parseInt(s);if(!Number.isNaN(i)){let s=r[i];if(s===undefined)return false;if(r[s]!==i)return false}else{let i=r[s];if(i===undefined)return false;if(typeof i!=="number")return false;if(r[i]===undefined)return false}}return true}s.isEnumObject=isEnumObject;function listEnumValues(r){if(!isEnumObject(r))throw new Error("not a typescript enum object");let s=[];for(let[i,a]of Object.entries(r))if(typeof a=="number")s.push({name:i,number:a});return s}s.listEnumValues=listEnumValues;function listEnumNames(r){return listEnumValues(r).map((r=>r.name))}s.listEnumNames=listEnumNames;function listEnumNumbers(r){return listEnumValues(r).map((r=>r.number)).filter(((r,s,i)=>i.indexOf(r)==s))}s.listEnumNumbers=listEnumNumbers},30433:(r,s)=>{"use strict";Object.defineProperty(s,"__esModule",{value:true});s.varint32read=s.varint32write=s.int64toString=s.int64fromString=s.varint64write=s.varint64read=void 0;function varint64read(){let r=0;let s=0;for(let i=0;i<28;i+=7){let a=this.buf[this.pos++];r|=(a&127)<>4;if((i&128)==0){this.assertBounds();return[r,s]}for(let i=3;i<=31;i+=7){let a=this.buf[this.pos++];s|=(a&127)<>>a;const c=!(A>>>7==0&&s==0);const l=(c?A|128:A)&255;i.push(l);if(!c){return}}const a=r>>>28&15|(s&7)<<4;const A=!(s>>3==0);i.push((A?a|128:a)&255);if(!A){return}for(let r=3;r<31;r=r+7){const a=s>>>r;const A=!(a>>>7==0);const c=(A?a|128:a)&255;i.push(c);if(!A){return}}i.push(s>>>31&1)}s.varint64write=varint64write;const i=(1<<16)*(1<<16);function int64fromString(r){let s=r[0]=="-";if(s)r=r.slice(1);const a=1e6;let A=0;let c=0;function add1e6digit(s,l){const d=Number(r.slice(s,l));c*=a;A=A*a+d;if(A>=i){c=c+(A/i|0);A=A%i}}add1e6digit(-24,-18);add1e6digit(-18,-12);add1e6digit(-12,-6);add1e6digit(-6);return[s,A,c]}s.int64fromString=int64fromString;function int64toString(r,s){if(s>>>0<=2097151){return""+(i*s+(r>>>0))}let a=r&16777215;let A=(r>>>24|s<<8)>>>0&16777215;let c=s>>16&65535;let l=a+A*6777216+c*6710656;let d=A+c*8147497;let u=c*2;let p=1e7;if(l>=p){d+=Math.floor(l/p);l%=p}if(d>=p){u+=Math.floor(d/p);d%=p}function decimalFrom1e7(r,s){let i=r?String(r):"";if(s){return"0000000".slice(i.length)+i}return i}return decimalFrom1e7(u,0)+decimalFrom1e7(d,u)+decimalFrom1e7(l,1)}s.int64toString=int64toString;function varint32write(r,s){if(r>=0){while(r>127){s.push(r&127|128);r=r>>>7}s.push(r)}else{for(let i=0;i<9;i++){s.push(r&127|128);r=r>>7}s.push(1)}}s.varint32write=varint32write;function varint32read(){let r=this.buf[this.pos++];let s=r&127;if((r&128)==0){this.assertBounds();return s}r=this.buf[this.pos++];s|=(r&127)<<7;if((r&128)==0){this.assertBounds();return s}r=this.buf[this.pos++];s|=(r&127)<<14;if((r&128)==0){this.assertBounds();return s}r=this.buf[this.pos++];s|=(r&127)<<21;if((r&128)==0){this.assertBounds();return s}r=this.buf[this.pos++];s|=(r&15)<<28;for(let s=5;(r&128)!==0&&s<10;s++)r=this.buf[this.pos++];if((r&128)!=0)throw new Error("invalid varint");this.assertBounds();return s>>>0}s.varint32read=varint32read},4061:(r,s,i)=>{"use strict";Object.defineProperty(s,"__esModule",{value:true});var a=i(70661);Object.defineProperty(s,"typeofJsonValue",{enumerable:true,get:function(){return a.typeofJsonValue}});Object.defineProperty(s,"isJsonObject",{enumerable:true,get:function(){return a.isJsonObject}});var A=i(20196);Object.defineProperty(s,"base64decode",{enumerable:true,get:function(){return A.base64decode}});Object.defineProperty(s,"base64encode",{enumerable:true,get:function(){return A.base64encode}});var c=i(95290);Object.defineProperty(s,"utf8read",{enumerable:true,get:function(){return c.utf8read}});var l=i(84921);Object.defineProperty(s,"WireType",{enumerable:true,get:function(){return l.WireType}});Object.defineProperty(s,"mergeBinaryOptions",{enumerable:true,get:function(){return l.mergeBinaryOptions}});Object.defineProperty(s,"UnknownFieldHandler",{enumerable:true,get:function(){return l.UnknownFieldHandler}});var d=i(65210);Object.defineProperty(s,"BinaryReader",{enumerable:true,get:function(){return d.BinaryReader}});Object.defineProperty(s,"binaryReadOptions",{enumerable:true,get:function(){return d.binaryReadOptions}});var u=i(44354);Object.defineProperty(s,"BinaryWriter",{enumerable:true,get:function(){return u.BinaryWriter}});Object.defineProperty(s,"binaryWriteOptions",{enumerable:true,get:function(){return u.binaryWriteOptions}});var p=i(47777);Object.defineProperty(s,"PbLong",{enumerable:true,get:function(){return p.PbLong}});Object.defineProperty(s,"PbULong",{enumerable:true,get:function(){return p.PbULong}});var g=i(48139);Object.defineProperty(s,"jsonReadOptions",{enumerable:true,get:function(){return g.jsonReadOptions}});Object.defineProperty(s,"jsonWriteOptions",{enumerable:true,get:function(){return g.jsonWriteOptions}});Object.defineProperty(s,"mergeJsonOptions",{enumerable:true,get:function(){return g.mergeJsonOptions}});var h=i(1682);Object.defineProperty(s,"MESSAGE_TYPE",{enumerable:true,get:function(){return h.MESSAGE_TYPE}});var C=i(63664);Object.defineProperty(s,"MessageType",{enumerable:true,get:function(){return C.MessageType}});var y=i(21370);Object.defineProperty(s,"ScalarType",{enumerable:true,get:function(){return y.ScalarType}});Object.defineProperty(s,"LongType",{enumerable:true,get:function(){return y.LongType}});Object.defineProperty(s,"RepeatType",{enumerable:true,get:function(){return y.RepeatType}});Object.defineProperty(s,"normalizeFieldInfo",{enumerable:true,get:function(){return y.normalizeFieldInfo}});Object.defineProperty(s,"readFieldOptions",{enumerable:true,get:function(){return y.readFieldOptions}});Object.defineProperty(s,"readFieldOption",{enumerable:true,get:function(){return y.readFieldOption}});Object.defineProperty(s,"readMessageOption",{enumerable:true,get:function(){return y.readMessageOption}});var I=i(20903);Object.defineProperty(s,"ReflectionTypeCheck",{enumerable:true,get:function(){return I.ReflectionTypeCheck}});var B=i(60390);Object.defineProperty(s,"reflectionCreate",{enumerable:true,get:function(){return B.reflectionCreate}});var b=i(74863);Object.defineProperty(s,"reflectionScalarDefault",{enumerable:true,get:function(){return b.reflectionScalarDefault}});var Q=i(7869);Object.defineProperty(s,"reflectionMergePartial",{enumerable:true,get:function(){return Q.reflectionMergePartial}});var w=i(39473);Object.defineProperty(s,"reflectionEquals",{enumerable:true,get:function(){return w.reflectionEquals}});var v=i(91593);Object.defineProperty(s,"ReflectionBinaryReader",{enumerable:true,get:function(){return v.ReflectionBinaryReader}});var S=i(57170);Object.defineProperty(s,"ReflectionBinaryWriter",{enumerable:true,get:function(){return S.ReflectionBinaryWriter}});var R=i(229);Object.defineProperty(s,"ReflectionJsonReader",{enumerable:true,get:function(){return R.ReflectionJsonReader}});var N=i(68980);Object.defineProperty(s,"ReflectionJsonWriter",{enumerable:true,get:function(){return N.ReflectionJsonWriter}});var x=i(67317);Object.defineProperty(s,"containsMessageType",{enumerable:true,get:function(){return x.containsMessageType}});var D=i(78531);Object.defineProperty(s,"isOneofGroup",{enumerable:true,get:function(){return D.isOneofGroup}});Object.defineProperty(s,"setOneofValue",{enumerable:true,get:function(){return D.setOneofValue}});Object.defineProperty(s,"getOneofValue",{enumerable:true,get:function(){return D.getOneofValue}});Object.defineProperty(s,"clearOneofValue",{enumerable:true,get:function(){return D.clearOneofValue}});Object.defineProperty(s,"getSelectedOneofValue",{enumerable:true,get:function(){return D.getSelectedOneofValue}});var k=i(20085);Object.defineProperty(s,"listEnumValues",{enumerable:true,get:function(){return k.listEnumValues}});Object.defineProperty(s,"listEnumNames",{enumerable:true,get:function(){return k.listEnumNames}});Object.defineProperty(s,"listEnumNumbers",{enumerable:true,get:function(){return k.listEnumNumbers}});Object.defineProperty(s,"isEnumObject",{enumerable:true,get:function(){return k.isEnumObject}});var T=i(34772);Object.defineProperty(s,"lowerCamelCase",{enumerable:true,get:function(){return T.lowerCamelCase}});var _=i(54253);Object.defineProperty(s,"assert",{enumerable:true,get:function(){return _.assert}});Object.defineProperty(s,"assertNever",{enumerable:true,get:function(){return _.assertNever}});Object.defineProperty(s,"assertInt32",{enumerable:true,get:function(){return _.assertInt32}});Object.defineProperty(s,"assertUInt32",{enumerable:true,get:function(){return _.assertUInt32}});Object.defineProperty(s,"assertFloat32",{enumerable:true,get:function(){return _.assertFloat32}})},48139:(r,s)=>{"use strict";Object.defineProperty(s,"__esModule",{value:true});s.mergeJsonOptions=s.jsonWriteOptions=s.jsonReadOptions=void 0;const i={emitDefaultValues:false,enumAsInteger:false,useProtoFieldName:false,prettySpaces:0},a={ignoreUnknownFields:false};function jsonReadOptions(r){return r?Object.assign(Object.assign({},a),r):a}s.jsonReadOptions=jsonReadOptions;function jsonWriteOptions(r){return r?Object.assign(Object.assign({},i),r):i}s.jsonWriteOptions=jsonWriteOptions;function mergeJsonOptions(r,s){var i,a;let A=Object.assign(Object.assign({},r),s);A.typeRegistry=[...(i=r===null||r===void 0?void 0:r.typeRegistry)!==null&&i!==void 0?i:[],...(a=s===null||s===void 0?void 0:s.typeRegistry)!==null&&a!==void 0?a:[]];return A}s.mergeJsonOptions=mergeJsonOptions},70661:(r,s)=>{"use strict";Object.defineProperty(s,"__esModule",{value:true});s.isJsonObject=s.typeofJsonValue=void 0;function typeofJsonValue(r){let s=typeof r;if(s=="object"){if(Array.isArray(r))return"array";if(r===null)return"null"}return s}s.typeofJsonValue=typeofJsonValue;function isJsonObject(r){return r!==null&&typeof r=="object"&&!Array.isArray(r)}s.isJsonObject=isJsonObject},34772:(r,s)=>{"use strict";Object.defineProperty(s,"__esModule",{value:true});s.lowerCamelCase=void 0;function lowerCamelCase(r){let s=false;const i=[];for(let a=0;a{"use strict";Object.defineProperty(s,"__esModule",{value:true});s.MESSAGE_TYPE=void 0;s.MESSAGE_TYPE=Symbol.for("protobuf-ts/message-type")},63664:(r,s,i)=>{"use strict";Object.defineProperty(s,"__esModule",{value:true});s.MessageType=void 0;const a=i(1682);const A=i(21370);const c=i(20903);const l=i(229);const d=i(68980);const u=i(91593);const p=i(57170);const g=i(60390);const h=i(7869);const C=i(70661);const y=i(48139);const I=i(39473);const B=i(44354);const b=i(65210);const Q=Object.getOwnPropertyDescriptors(Object.getPrototypeOf({}));class MessageType{constructor(r,s,i){this.defaultCheckDepth=16;this.typeName=r;this.fields=s.map(A.normalizeFieldInfo);this.options=i!==null&&i!==void 0?i:{};this.messagePrototype=Object.create(null,Object.assign(Object.assign({},Q),{[a.MESSAGE_TYPE]:{value:this}}));this.refTypeCheck=new c.ReflectionTypeCheck(this);this.refJsonReader=new l.ReflectionJsonReader(this);this.refJsonWriter=new d.ReflectionJsonWriter(this);this.refBinReader=new u.ReflectionBinaryReader(this);this.refBinWriter=new p.ReflectionBinaryWriter(this)}create(r){let s=g.reflectionCreate(this);if(r!==undefined){h.reflectionMergePartial(this,s,r)}return s}clone(r){let s=this.create();h.reflectionMergePartial(this,s,r);return s}equals(r,s){return I.reflectionEquals(this,r,s)}is(r,s=this.defaultCheckDepth){return this.refTypeCheck.is(r,s,false)}isAssignable(r,s=this.defaultCheckDepth){return this.refTypeCheck.is(r,s,true)}mergePartial(r,s){h.reflectionMergePartial(this,r,s)}fromBinary(r,s){let i=b.binaryReadOptions(s);return this.internalBinaryRead(i.readerFactory(r),r.byteLength,i)}fromJson(r,s){return this.internalJsonRead(r,y.jsonReadOptions(s))}fromJsonString(r,s){let i=JSON.parse(r);return this.fromJson(i,s)}toJson(r,s){return this.internalJsonWrite(r,y.jsonWriteOptions(s))}toJsonString(r,s){var i;let a=this.toJson(r,s);return JSON.stringify(a,null,(i=s===null||s===void 0?void 0:s.prettySpaces)!==null&&i!==void 0?i:0)}toBinary(r,s){let i=B.binaryWriteOptions(s);return this.internalBinaryWrite(r,i.writerFactory(),i).finish()}internalJsonRead(r,s,i){if(r!==null&&typeof r=="object"&&!Array.isArray(r)){let a=i!==null&&i!==void 0?i:this.create();this.refJsonReader.read(r,a,s);return a}throw new Error(`Unable to parse message ${this.typeName} from JSON ${C.typeofJsonValue(r)}.`)}internalJsonWrite(r,s){return this.refJsonWriter.write(r,s)}internalBinaryWrite(r,s,i){this.refBinWriter.write(r,s,i);return s}internalBinaryRead(r,s,i,a){let A=a!==null&&a!==void 0?a:this.create();this.refBinReader.read(r,A,i,s);return A}}s.MessageType=MessageType},78531:(r,s)=>{"use strict";Object.defineProperty(s,"__esModule",{value:true});s.getSelectedOneofValue=s.clearOneofValue=s.setUnknownOneofValue=s.setOneofValue=s.getOneofValue=s.isOneofGroup=void 0;function isOneofGroup(r){if(typeof r!="object"||r===null||!r.hasOwnProperty("oneofKind")){return false}switch(typeof r.oneofKind){case"string":if(r[r.oneofKind]===undefined)return false;return Object.keys(r).length==2;case"undefined":return Object.keys(r).length==1;default:return false}}s.isOneofGroup=isOneofGroup;function getOneofValue(r,s){return r[s]}s.getOneofValue=getOneofValue;function setOneofValue(r,s,i){if(r.oneofKind!==undefined){delete r[r.oneofKind]}r.oneofKind=s;if(i!==undefined){r[s]=i}}s.setOneofValue=setOneofValue;function setUnknownOneofValue(r,s,i){if(r.oneofKind!==undefined){delete r[r.oneofKind]}r.oneofKind=s;if(i!==undefined&&s!==undefined){r[s]=i}}s.setUnknownOneofValue=setUnknownOneofValue;function clearOneofValue(r){if(r.oneofKind!==undefined){delete r[r.oneofKind]}r.oneofKind=undefined}s.clearOneofValue=clearOneofValue;function getSelectedOneofValue(r){if(r.oneofKind===undefined){return undefined}return r[r.oneofKind]}s.getSelectedOneofValue=getSelectedOneofValue},47777:(r,s,i)=>{"use strict";Object.defineProperty(s,"__esModule",{value:true});s.PbLong=s.PbULong=s.detectBi=void 0;const a=i(30433);let A;function detectBi(){const r=new DataView(new ArrayBuffer(8));const s=globalThis.BigInt!==undefined&&typeof r.getBigInt64==="function"&&typeof r.getBigUint64==="function"&&typeof r.setBigInt64==="function"&&typeof r.setBigUint64==="function";A=s?{MIN:BigInt("-9223372036854775808"),MAX:BigInt("9223372036854775807"),UMIN:BigInt("0"),UMAX:BigInt("18446744073709551615"),C:BigInt,V:r}:undefined}s.detectBi=detectBi;detectBi();function assertBi(r){if(!r)throw new Error("BigInt unavailable, see https://github.com/timostamm/protobuf-ts/blob/v1.0.8/MANUAL.md#bigint-support")}const c=/^-?[0-9]+$/;const l=4294967296;const d=2147483648;class SharedPbLong{constructor(r,s){this.lo=r|0;this.hi=s|0}isZero(){return this.lo==0&&this.hi==0}toNumber(){let r=this.hi*l+(this.lo>>>0);if(!Number.isSafeInteger(r))throw new Error("cannot convert to safe number");return r}}class PbULong extends SharedPbLong{static from(r){if(A)switch(typeof r){case"string":if(r=="0")return this.ZERO;if(r=="")throw new Error("string is no integer");r=A.C(r);case"number":if(r===0)return this.ZERO;r=A.C(r);case"bigint":if(!r)return this.ZERO;if(rA.UMAX)throw new Error("ulong too large");A.V.setBigUint64(0,r,true);return new PbULong(A.V.getInt32(0,true),A.V.getInt32(4,true))}else switch(typeof r){case"string":if(r=="0")return this.ZERO;r=r.trim();if(!c.test(r))throw new Error("string is no integer");let[s,i,A]=a.int64fromString(r);if(s)throw new Error("signed value for ulong");return new PbULong(i,A);case"number":if(r==0)return this.ZERO;if(!Number.isSafeInteger(r))throw new Error("number is no integer");if(r<0)throw new Error("signed value for ulong");return new PbULong(r,r/l)}throw new Error("unknown value "+typeof r)}toString(){return A?this.toBigInt().toString():a.int64toString(this.lo,this.hi)}toBigInt(){assertBi(A);A.V.setInt32(0,this.lo,true);A.V.setInt32(4,this.hi,true);return A.V.getBigUint64(0,true)}}s.PbULong=PbULong;PbULong.ZERO=new PbULong(0,0);class PbLong extends SharedPbLong{static from(r){if(A)switch(typeof r){case"string":if(r=="0")return this.ZERO;if(r=="")throw new Error("string is no integer");r=A.C(r);case"number":if(r===0)return this.ZERO;r=A.C(r);case"bigint":if(!r)return this.ZERO;if(rA.MAX)throw new Error("signed long too large");A.V.setBigInt64(0,r,true);return new PbLong(A.V.getInt32(0,true),A.V.getInt32(4,true))}else switch(typeof r){case"string":if(r=="0")return this.ZERO;r=r.trim();if(!c.test(r))throw new Error("string is no integer");let[s,i,A]=a.int64fromString(r);if(s){if(A>d||A==d&&i!=0)throw new Error("signed long too small")}else if(A>=d)throw new Error("signed long too large");let u=new PbLong(i,A);return s?u.negate():u;case"number":if(r==0)return this.ZERO;if(!Number.isSafeInteger(r))throw new Error("number is no integer");return r>0?new PbLong(r,r/l):new PbLong(-r,-r/l).negate()}throw new Error("unknown value "+typeof r)}isNegative(){return(this.hi&d)!==0}negate(){let r=~this.hi,s=this.lo;if(s)s=~s+1;else r+=1;return new PbLong(s,r)}toString(){if(A)return this.toBigInt().toString();if(this.isNegative()){let r=this.negate();return"-"+a.int64toString(r.lo,r.hi)}return a.int64toString(this.lo,this.hi)}toBigInt(){assertBi(A);A.V.setInt32(0,this.lo,true);A.V.setInt32(4,this.hi,true);return A.V.getBigInt64(0,true)}}s.PbLong=PbLong;PbLong.ZERO=new PbLong(0,0)},95290:(r,s)=>{"use strict";Object.defineProperty(s,"__esModule",{value:true});s.utf8read=void 0;const fromCharCodes=r=>String.fromCharCode.apply(String,r);function utf8read(r){if(r.length<1)return"";let s=0,i=[],a=[],A=0,c;let l=r.length;while(s191&&c<224)a[A++]=(c&31)<<6|r[s++]&63;else if(c>239&&c<365){c=((c&7)<<18|(r[s++]&63)<<12|(r[s++]&63)<<6|r[s++]&63)-65536;a[A++]=55296+(c>>10);a[A++]=56320+(c&1023)}else a[A++]=(c&15)<<12|(r[s++]&63)<<6|r[s++]&63;if(A>8191){i.push(fromCharCodes(a));A=0}}if(i.length){if(A)i.push(fromCharCodes(a.slice(0,A)));return i.join("")}return fromCharCodes(a.slice(0,A))}s.utf8read=utf8read},91593:(r,s,i)=>{"use strict";Object.defineProperty(s,"__esModule",{value:true});s.ReflectionBinaryReader=void 0;const a=i(84921);const A=i(21370);const c=i(24612);const l=i(74863);class ReflectionBinaryReader{constructor(r){this.info=r}prepare(){var r;if(!this.fieldNoToField){const s=(r=this.info.fields)!==null&&r!==void 0?r:[];this.fieldNoToField=new Map(s.map((r=>[r.no,r])))}}read(r,s,i,c){this.prepare();const l=c===undefined?r.len:r.pos+c;while(r.pos{"use strict";Object.defineProperty(s,"__esModule",{value:true});s.ReflectionBinaryWriter=void 0;const a=i(84921);const A=i(21370);const c=i(54253);const l=i(47777);class ReflectionBinaryWriter{constructor(r){this.info=r}prepare(){if(!this.fields){const r=this.info.fields?this.info.fields.concat():[];this.fields=r.sort(((r,s)=>r.no-s.no))}}write(r,s,i){this.prepare();for(const a of this.fields){let l,d,u=a.repeat,p=a.localName;if(a.oneof){const s=r[a.oneof];if(s.oneofKind!==p)continue;l=s[p];d=true}else{l=r[p];d=false}switch(a.kind){case"scalar":case"enum":let r=a.kind=="enum"?A.ScalarType.INT32:a.T;if(u){c.assert(Array.isArray(l));if(u==A.RepeatType.PACKED)this.packed(s,r,a.no,l);else for(const i of l)this.scalar(s,r,a.no,i,true)}else if(l===undefined)c.assert(a.opt);else this.scalar(s,r,a.no,l,d||a.opt);break;case"message":if(u){c.assert(Array.isArray(l));for(const r of l)this.message(s,i,a.T(),a.no,r)}else{this.message(s,i,a.T(),a.no,l)}break;case"map":c.assert(typeof l=="object"&&l!==null);for(const[r,A]of Object.entries(l))this.mapEntry(s,i,a,r,A);break}}let l=i.writeUnknownFields;if(l!==false)(l===true?a.UnknownFieldHandler.onWrite:l)(this.info.typeName,r,s)}mapEntry(r,s,i,l,d){r.tag(i.no,a.WireType.LengthDelimited);r.fork();let u=l;switch(i.K){case A.ScalarType.INT32:case A.ScalarType.FIXED32:case A.ScalarType.UINT32:case A.ScalarType.SFIXED32:case A.ScalarType.SINT32:u=Number.parseInt(l);break;case A.ScalarType.BOOL:c.assert(l=="true"||l=="false");u=l=="true";break}this.scalar(r,i.K,1,u,true);switch(i.V.kind){case"scalar":this.scalar(r,i.V.T,2,d,true);break;case"enum":this.scalar(r,A.ScalarType.INT32,2,d,true);break;case"message":this.message(r,s,i.V.T(),2,d);break}r.join()}message(r,s,i,A,c){if(c===undefined)return;i.internalBinaryWrite(c,r.tag(A,a.WireType.LengthDelimited).fork(),s);r.join()}scalar(r,s,i,a,A){let[c,l,d]=this.scalarInfo(s,a);if(!d||A){r.tag(i,c);r[l](a)}}packed(r,s,i,l){if(!l.length)return;c.assert(s!==A.ScalarType.BYTES&&s!==A.ScalarType.STRING);r.tag(i,a.WireType.LengthDelimited);r.fork();let[,d]=this.scalarInfo(s);for(let s=0;s{"use strict";Object.defineProperty(s,"__esModule",{value:true});s.containsMessageType=void 0;const a=i(1682);function containsMessageType(r){return r[a.MESSAGE_TYPE]!=null}s.containsMessageType=containsMessageType},60390:(r,s,i)=>{"use strict";Object.defineProperty(s,"__esModule",{value:true});s.reflectionCreate=void 0;const a=i(74863);const A=i(1682);function reflectionCreate(r){const s=r.messagePrototype?Object.create(r.messagePrototype):Object.defineProperty({},A.MESSAGE_TYPE,{value:r});for(let i of r.fields){let r=i.localName;if(i.opt)continue;if(i.oneof)s[i.oneof]={oneofKind:undefined};else if(i.repeat)s[r]=[];else switch(i.kind){case"scalar":s[r]=a.reflectionScalarDefault(i.T,i.L);break;case"enum":s[r]=0;break;case"map":s[r]={};break}}return s}s.reflectionCreate=reflectionCreate},39473:(r,s,i)=>{"use strict";Object.defineProperty(s,"__esModule",{value:true});s.reflectionEquals=void 0;const a=i(21370);function reflectionEquals(r,s,i){if(s===i)return true;if(!s||!i)return false;for(let c of r.fields){let r=c.localName;let l=c.oneof?s[c.oneof][r]:s[r];let d=c.oneof?i[c.oneof][r]:i[r];switch(c.kind){case"enum":case"scalar":let r=c.kind=="enum"?a.ScalarType.INT32:c.T;if(!(c.repeat?repeatedPrimitiveEq(r,l,d):primitiveEq(r,l,d)))return false;break;case"map":if(!(c.V.kind=="message"?repeatedMsgEq(c.V.T(),A(l),A(d)):repeatedPrimitiveEq(c.V.kind=="enum"?a.ScalarType.INT32:c.V.T,A(l),A(d))))return false;break;case"message":let s=c.T();if(!(c.repeat?repeatedMsgEq(s,l,d):s.equals(l,d)))return false;break}}return true}s.reflectionEquals=reflectionEquals;const A=Object.values;function primitiveEq(r,s,i){if(s===i)return true;if(r!==a.ScalarType.BYTES)return false;let A=s;let c=i;if(A.length!==c.length)return false;for(let r=0;r{"use strict";Object.defineProperty(s,"__esModule",{value:true});s.readMessageOption=s.readFieldOption=s.readFieldOptions=s.normalizeFieldInfo=s.RepeatType=s.LongType=s.ScalarType=void 0;const a=i(34772);var A;(function(r){r[r["DOUBLE"]=1]="DOUBLE";r[r["FLOAT"]=2]="FLOAT";r[r["INT64"]=3]="INT64";r[r["UINT64"]=4]="UINT64";r[r["INT32"]=5]="INT32";r[r["FIXED64"]=6]="FIXED64";r[r["FIXED32"]=7]="FIXED32";r[r["BOOL"]=8]="BOOL";r[r["STRING"]=9]="STRING";r[r["BYTES"]=12]="BYTES";r[r["UINT32"]=13]="UINT32";r[r["SFIXED32"]=15]="SFIXED32";r[r["SFIXED64"]=16]="SFIXED64";r[r["SINT32"]=17]="SINT32";r[r["SINT64"]=18]="SINT64"})(A=s.ScalarType||(s.ScalarType={}));var c;(function(r){r[r["BIGINT"]=0]="BIGINT";r[r["STRING"]=1]="STRING";r[r["NUMBER"]=2]="NUMBER"})(c=s.LongType||(s.LongType={}));var l;(function(r){r[r["NO"]=0]="NO";r[r["PACKED"]=1]="PACKED";r[r["UNPACKED"]=2]="UNPACKED"})(l=s.RepeatType||(s.RepeatType={}));function normalizeFieldInfo(r){var s,i,A,c;r.localName=(s=r.localName)!==null&&s!==void 0?s:a.lowerCamelCase(r.name);r.jsonName=(i=r.jsonName)!==null&&i!==void 0?i:a.lowerCamelCase(r.name);r.repeat=(A=r.repeat)!==null&&A!==void 0?A:l.NO;r.opt=(c=r.opt)!==null&&c!==void 0?c:r.repeat?false:r.oneof?false:r.kind=="message";return r}s.normalizeFieldInfo=normalizeFieldInfo;function readFieldOptions(r,s,i,a){var A;const c=(A=r.fields.find(((r,i)=>r.localName==s||i==s)))===null||A===void 0?void 0:A.options;return c&&c[i]?a.fromJson(c[i]):undefined}s.readFieldOptions=readFieldOptions;function readFieldOption(r,s,i,a){var A;const c=(A=r.fields.find(((r,i)=>r.localName==s||i==s)))===null||A===void 0?void 0:A.options;if(!c){return undefined}const l=c[i];if(l===undefined){return l}return a?a.fromJson(l):l}s.readFieldOption=readFieldOption;function readMessageOption(r,s,i){const a=r.options;const A=a[s];if(A===undefined){return A}return i?i.fromJson(A):A}s.readMessageOption=readMessageOption},229:(r,s,i)=>{"use strict";Object.defineProperty(s,"__esModule",{value:true});s.ReflectionJsonReader=void 0;const a=i(70661);const A=i(20196);const c=i(21370);const l=i(47777);const d=i(54253);const u=i(24612);class ReflectionJsonReader{constructor(r){this.info=r}prepare(){var r;if(this.fMap===undefined){this.fMap={};const s=(r=this.info.fields)!==null&&r!==void 0?r:[];for(const r of s){this.fMap[r.name]=r;this.fMap[r.jsonName]=r;this.fMap[r.localName]=r}}}assert(r,s,i){if(!r){let r=a.typeofJsonValue(i);if(r=="number"||r=="boolean")r=i.toString();throw new Error(`Cannot parse JSON ${r} for ${this.info.typeName}#${s}`)}}read(r,s,i){this.prepare();const A=[];for(const[l,d]of Object.entries(r)){const r=this.fMap[l];if(!r){if(!i.ignoreUnknownFields)throw new Error(`Found unknown field while reading ${this.info.typeName} from JSON format. JSON key: ${l}`);continue}const u=r.localName;let p;if(r.oneof){if(d===null&&(r.kind!=="enum"||r.T()[0]!=="google.protobuf.NullValue")){continue}if(A.includes(r.oneof))throw new Error(`Multiple members of the oneof group "${r.oneof}" of ${this.info.typeName} are present in JSON.`);A.push(r.oneof);p=s[r.oneof]={oneofKind:u}}else{p=s}if(r.kind=="map"){if(d===null){continue}this.assert(a.isJsonObject(d),r.name,d);const s=p[u];for(const[a,A]of Object.entries(d)){this.assert(A!==null,r.name+" map value",null);let l;switch(r.V.kind){case"message":l=r.V.T().internalJsonRead(A,i);break;case"enum":l=this.enum(r.V.T(),A,r.name,i.ignoreUnknownFields);if(l===false)continue;break;case"scalar":l=this.scalar(A,r.V.T,r.V.L,r.name);break}this.assert(l!==undefined,r.name+" map value",A);let d=a;if(r.K==c.ScalarType.BOOL)d=d=="true"?true:d=="false"?false:d;d=this.scalar(d,r.K,c.LongType.STRING,r.name).toString();s[d]=l}}else if(r.repeat){if(d===null)continue;this.assert(Array.isArray(d),r.name,d);const s=p[u];for(const a of d){this.assert(a!==null,r.name,null);let A;switch(r.kind){case"message":A=r.T().internalJsonRead(a,i);break;case"enum":A=this.enum(r.T(),a,r.name,i.ignoreUnknownFields);if(A===false)continue;break;case"scalar":A=this.scalar(a,r.T,r.L,r.name);break}this.assert(A!==undefined,r.name,d);s.push(A)}}else{switch(r.kind){case"message":if(d===null&&r.T().typeName!="google.protobuf.Value"){this.assert(r.oneof===undefined,r.name+" (oneof member)",null);continue}p[u]=r.T().internalJsonRead(d,i,p[u]);break;case"enum":let s=this.enum(r.T(),d,r.name,i.ignoreUnknownFields);if(s===false)continue;p[u]=s;break;case"scalar":p[u]=this.scalar(d,r.T,r.L,r.name);break}}}}enum(r,s,i,a){if(r[0]=="google.protobuf.NullValue")d.assert(s===null||s==="NULL_VALUE",`Unable to parse field ${this.info.typeName}#${i}, enum ${r[0]} only accepts null.`);if(s===null)return 0;switch(typeof s){case"number":d.assert(Number.isInteger(s),`Unable to parse field ${this.info.typeName}#${i}, enum can only be integral number, got ${s}.`);return s;case"string":let A=s;if(r[2]&&s.substring(0,r[2].length)===r[2])A=s.substring(r[2].length);let c=r[1][A];if(typeof c==="undefined"&&a){return false}d.assert(typeof c=="number",`Unable to parse field ${this.info.typeName}#${i}, enum ${r[0]} has no value for "${s}".`);return c}d.assert(false,`Unable to parse field ${this.info.typeName}#${i}, cannot parse enum value from ${typeof s}".`)}scalar(r,s,i,a){let p;try{switch(s){case c.ScalarType.DOUBLE:case c.ScalarType.FLOAT:if(r===null)return 0;if(r==="NaN")return Number.NaN;if(r==="Infinity")return Number.POSITIVE_INFINITY;if(r==="-Infinity")return Number.NEGATIVE_INFINITY;if(r===""){p="empty string";break}if(typeof r=="string"&&r.trim().length!==r.length){p="extra whitespace";break}if(typeof r!="string"&&typeof r!="number"){break}let a=Number(r);if(Number.isNaN(a)){p="not a number";break}if(!Number.isFinite(a)){p="too large or small";break}if(s==c.ScalarType.FLOAT)d.assertFloat32(a);return a;case c.ScalarType.INT32:case c.ScalarType.FIXED32:case c.ScalarType.SFIXED32:case c.ScalarType.SINT32:case c.ScalarType.UINT32:if(r===null)return 0;let g;if(typeof r=="number")g=r;else if(r==="")p="empty string";else if(typeof r=="string"){if(r.trim().length!==r.length)p="extra whitespace";else g=Number(r)}if(g===undefined)break;if(s==c.ScalarType.UINT32)d.assertUInt32(g);else d.assertInt32(g);return g;case c.ScalarType.INT64:case c.ScalarType.SFIXED64:case c.ScalarType.SINT64:if(r===null)return u.reflectionLongConvert(l.PbLong.ZERO,i);if(typeof r!="number"&&typeof r!="string")break;return u.reflectionLongConvert(l.PbLong.from(r),i);case c.ScalarType.FIXED64:case c.ScalarType.UINT64:if(r===null)return u.reflectionLongConvert(l.PbULong.ZERO,i);if(typeof r!="number"&&typeof r!="string")break;return u.reflectionLongConvert(l.PbULong.from(r),i);case c.ScalarType.BOOL:if(r===null)return false;if(typeof r!=="boolean")break;return r;case c.ScalarType.STRING:if(r===null)return"";if(typeof r!=="string"){p="extra whitespace";break}try{encodeURIComponent(r)}catch(p){p="invalid UTF8";break}return r;case c.ScalarType.BYTES:if(r===null||r==="")return new Uint8Array(0);if(typeof r!=="string")break;return A.base64decode(r)}}catch(r){p=r.message}this.assert(false,a+(p?" - "+p:""),r)}}s.ReflectionJsonReader=ReflectionJsonReader},68980:(r,s,i)=>{"use strict";Object.defineProperty(s,"__esModule",{value:true});s.ReflectionJsonWriter=void 0;const a=i(20196);const A=i(47777);const c=i(21370);const l=i(54253);class ReflectionJsonWriter{constructor(r){var s;this.fields=(s=r.fields)!==null&&s!==void 0?s:[]}write(r,s){const i={},a=r;for(const r of this.fields){if(!r.oneof){let A=this.field(r,a[r.localName],s);if(A!==undefined)i[s.useProtoFieldName?r.name:r.jsonName]=A;continue}const A=a[r.oneof];if(A.oneofKind!==r.localName)continue;const c=r.kind=="scalar"||r.kind=="enum"?Object.assign(Object.assign({},s),{emitDefaultValues:true}):s;let d=this.field(r,A[r.localName],c);l.assert(d!==undefined);i[s.useProtoFieldName?r.name:r.jsonName]=d}return i}field(r,s,i){let a=undefined;if(r.kind=="map"){l.assert(typeof s=="object"&&s!==null);const A={};switch(r.V.kind){case"scalar":for(const[i,a]of Object.entries(s)){const s=this.scalar(r.V.T,a,r.name,false,true);l.assert(s!==undefined);A[i.toString()]=s}break;case"message":const a=r.V.T();for(const[c,d]of Object.entries(s)){const s=this.message(a,d,r.name,i);l.assert(s!==undefined);A[c.toString()]=s}break;case"enum":const c=r.V.T();for(const[a,d]of Object.entries(s)){l.assert(d===undefined||typeof d=="number");const s=this.enum(c,d,r.name,false,true,i.enumAsInteger);l.assert(s!==undefined);A[a.toString()]=s}break}if(i.emitDefaultValues||Object.keys(A).length>0)a=A}else if(r.repeat){l.assert(Array.isArray(s));const A=[];switch(r.kind){case"scalar":for(let i=0;i0||i.emitDefaultValues)a=A}else{switch(r.kind){case"scalar":a=this.scalar(r.T,s,r.name,r.opt,i.emitDefaultValues);break;case"enum":a=this.enum(r.T(),s,r.name,r.opt,i.emitDefaultValues,i.enumAsInteger);break;case"message":a=this.message(r.T(),s,r.name,i);break}}return a}enum(r,s,i,a,A,c){if(r[0]=="google.protobuf.NullValue")return!A&&!a?undefined:null;if(s===undefined){l.assert(a);return undefined}if(s===0&&!A&&!a)return undefined;l.assert(typeof s=="number");l.assert(Number.isInteger(s));if(c||!r[1].hasOwnProperty(s))return s;if(r[2])return r[2]+r[1][s];return r[1][s]}message(r,s,i,a){if(s===undefined)return a.emitDefaultValues?null:undefined;return r.internalJsonWrite(s,a)}scalar(r,s,i,d,u){if(s===undefined){l.assert(d);return undefined}const p=u||d;switch(r){case c.ScalarType.INT32:case c.ScalarType.SFIXED32:case c.ScalarType.SINT32:if(s===0)return p?0:undefined;l.assertInt32(s);return s;case c.ScalarType.FIXED32:case c.ScalarType.UINT32:if(s===0)return p?0:undefined;l.assertUInt32(s);return s;case c.ScalarType.FLOAT:l.assertFloat32(s);case c.ScalarType.DOUBLE:if(s===0)return p?0:undefined;l.assert(typeof s=="number");if(Number.isNaN(s))return"NaN";if(s===Number.POSITIVE_INFINITY)return"Infinity";if(s===Number.NEGATIVE_INFINITY)return"-Infinity";return s;case c.ScalarType.STRING:if(s==="")return p?"":undefined;l.assert(typeof s=="string");return s;case c.ScalarType.BOOL:if(s===false)return p?false:undefined;l.assert(typeof s=="boolean");return s;case c.ScalarType.UINT64:case c.ScalarType.FIXED64:l.assert(typeof s=="number"||typeof s=="string"||typeof s=="bigint");let r=A.PbULong.from(s);if(r.isZero()&&!p)return undefined;return r.toString();case c.ScalarType.INT64:case c.ScalarType.SFIXED64:case c.ScalarType.SINT64:l.assert(typeof s=="number"||typeof s=="string"||typeof s=="bigint");let i=A.PbLong.from(s);if(i.isZero()&&!p)return undefined;return i.toString();case c.ScalarType.BYTES:l.assert(s instanceof Uint8Array);if(!s.byteLength)return p?"":undefined;return a.base64encode(s)}}}s.ReflectionJsonWriter=ReflectionJsonWriter},24612:(r,s,i)=>{"use strict";Object.defineProperty(s,"__esModule",{value:true});s.reflectionLongConvert=void 0;const a=i(21370);function reflectionLongConvert(r,s){switch(s){case a.LongType.BIGINT:return r.toBigInt();case a.LongType.NUMBER:return r.toNumber();default:return r.toString()}}s.reflectionLongConvert=reflectionLongConvert},7869:(r,s)=>{"use strict";Object.defineProperty(s,"__esModule",{value:true});s.reflectionMergePartial=void 0;function reflectionMergePartial(r,s,i){let a,A=i,c;for(let i of r.fields){let r=i.localName;if(i.oneof){const l=A[i.oneof];if((l===null||l===void 0?void 0:l.oneofKind)==undefined){continue}a=l[r];c=s[i.oneof];c.oneofKind=l.oneofKind;if(a==undefined){delete c[r];continue}}else{a=A[r];c=s;if(a==undefined){continue}}if(i.repeat)c[r].length=a.length;switch(i.kind){case"scalar":case"enum":if(i.repeat)for(let s=0;s{"use strict";Object.defineProperty(s,"__esModule",{value:true});s.reflectionScalarDefault=void 0;const a=i(21370);const A=i(24612);const c=i(47777);function reflectionScalarDefault(r,s=a.LongType.STRING){switch(r){case a.ScalarType.BOOL:return false;case a.ScalarType.UINT64:case a.ScalarType.FIXED64:return A.reflectionLongConvert(c.PbULong.ZERO,s);case a.ScalarType.INT64:case a.ScalarType.SFIXED64:case a.ScalarType.SINT64:return A.reflectionLongConvert(c.PbLong.ZERO,s);case a.ScalarType.DOUBLE:case a.ScalarType.FLOAT:return 0;case a.ScalarType.BYTES:return new Uint8Array(0);case a.ScalarType.STRING:return"";default:return 0}}s.reflectionScalarDefault=reflectionScalarDefault},20903:(r,s,i)=>{"use strict";Object.defineProperty(s,"__esModule",{value:true});s.ReflectionTypeCheck=void 0;const a=i(21370);const A=i(78531);class ReflectionTypeCheck{constructor(r){var s;this.fields=(s=r.fields)!==null&&s!==void 0?s:[]}prepare(){if(this.data)return;const r=[],s=[],i=[];for(let a of this.fields){if(a.oneof){if(!i.includes(a.oneof)){i.push(a.oneof);r.push(a.oneof);s.push(a.oneof)}}else{s.push(a.localName);switch(a.kind){case"scalar":case"enum":if(!a.opt||a.repeat)r.push(a.localName);break;case"message":if(a.repeat)r.push(a.localName);break;case"map":r.push(a.localName);break}}}this.data={req:r,known:s,oneofs:Object.values(i)}}is(r,s,i=false){if(s<0)return true;if(r===null||r===undefined||typeof r!="object")return false;this.prepare();let a=Object.keys(r),c=this.data;if(a.length!a.includes(r))))return false;if(!i){if(a.some((r=>!c.known.includes(r))))return false}if(s<1){return true}for(const a of c.oneofs){const c=r[a];if(!A.isOneofGroup(c))return false;if(c.oneofKind===undefined)continue;const l=this.fields.find((r=>r.localName===c.oneofKind));if(!l)return false;if(!this.field(c[c.oneofKind],l,i,s))return false}for(const a of this.fields){if(a.oneof!==undefined)continue;if(!this.field(r[a.localName],a,i,s))return false}return true}field(r,s,i,A){let c=s.repeat;switch(s.kind){case"scalar":if(r===undefined)return s.opt;if(c)return this.scalars(r,s.T,A,s.L);return this.scalar(r,s.T,s.L);case"enum":if(r===undefined)return s.opt;if(c)return this.scalars(r,a.ScalarType.INT32,A);return this.scalar(r,a.ScalarType.INT32);case"message":if(r===undefined)return true;if(c)return this.messages(r,s.T(),i,A);return this.message(r,s.T(),i,A);case"map":if(typeof r!="object"||r===null)return false;if(A<2)return true;if(!this.mapKeys(r,s.K,A))return false;switch(s.V.kind){case"scalar":return this.scalars(Object.values(r),s.V.T,A,s.V.L);case"enum":return this.scalars(Object.values(r),a.ScalarType.INT32,A);case"message":return this.messages(Object.values(r),s.V.T(),i,A)}break}return true}message(r,s,i,a){if(i){return s.isAssignable(r,a)}return s.is(r,a)}messages(r,s,i,a){if(!Array.isArray(r))return false;if(a<2)return true;if(i){for(let i=0;iparseInt(r))),s,i);case a.ScalarType.BOOL:return this.scalars(A.slice(0,i).map((r=>r=="true"?true:r=="false"?false:r)),s,i);default:return this.scalars(A,s,i,a.LongType.STRING)}}}s.ReflectionTypeCheck=ReflectionTypeCheck},53098:(r,s,i)=>{var a=Object.defineProperty;var A=Object.getOwnPropertyDescriptor;var c=Object.getOwnPropertyNames;var l=Object.prototype.hasOwnProperty;var __name=(r,s)=>a(r,"name",{value:s,configurable:true});var __export=(r,s)=>{for(var i in s)a(r,i,{get:s[i],enumerable:true})};var __copyProps=(r,s,i,d)=>{if(s&&typeof s==="object"||typeof s==="function"){for(let u of c(s))if(!l.call(r,u)&&u!==i)a(r,u,{get:()=>s[u],enumerable:!(d=A(s,u))||d.enumerable})}return r};var __toCommonJS=r=>__copyProps(a({},"__esModule",{value:true}),r);var d={};__export(d,{CONFIG_USE_DUALSTACK_ENDPOINT:()=>g,CONFIG_USE_FIPS_ENDPOINT:()=>I,DEFAULT_USE_DUALSTACK_ENDPOINT:()=>h,DEFAULT_USE_FIPS_ENDPOINT:()=>B,ENV_USE_DUALSTACK_ENDPOINT:()=>p,ENV_USE_FIPS_ENDPOINT:()=>y,NODE_REGION_CONFIG_FILE_OPTIONS:()=>D,NODE_REGION_CONFIG_OPTIONS:()=>x,NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS:()=>C,NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS:()=>b,REGION_ENV_NAME:()=>R,REGION_INI_NAME:()=>N,getRegionInfo:()=>U,resolveCustomEndpointsConfig:()=>w,resolveEndpointsConfig:()=>S,resolveRegionConfig:()=>_});r.exports=__toCommonJS(d);var u=i(83375);var p="AWS_USE_DUALSTACK_ENDPOINT";var g="use_dualstack_endpoint";var h=false;var C={environmentVariableSelector:r=>(0,u.booleanSelector)(r,p,u.SelectorType.ENV),configFileSelector:r=>(0,u.booleanSelector)(r,g,u.SelectorType.CONFIG),default:false};var y="AWS_USE_FIPS_ENDPOINT";var I="use_fips_endpoint";var B=false;var b={environmentVariableSelector:r=>(0,u.booleanSelector)(r,y,u.SelectorType.ENV),configFileSelector:r=>(0,u.booleanSelector)(r,I,u.SelectorType.CONFIG),default:false};var Q=i(2390);var w=__name((r=>{const{endpoint:s,urlParser:i}=r;return{...r,tls:r.tls??true,endpoint:(0,Q.normalizeProvider)(typeof s==="string"?i(s):s),isCustomEndpoint:true,useDualstackEndpoint:(0,Q.normalizeProvider)(r.useDualstackEndpoint??false)}}),"resolveCustomEndpointsConfig");var v=__name((async r=>{const{tls:s=true}=r;const i=await r.region();const a=new RegExp(/^([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9-]{0,61}[a-zA-Z0-9])$/);if(!a.test(i)){throw new Error("Invalid region in client config")}const A=await r.useDualstackEndpoint();const c=await r.useFipsEndpoint();const{hostname:l}=await r.regionInfoProvider(i,{useDualstackEndpoint:A,useFipsEndpoint:c})??{};if(!l){throw new Error("Cannot resolve hostname from client config")}return r.urlParser(`${s?"https:":"http:"}//${l}`)}),"getEndpointFromRegion");var S=__name((r=>{const s=(0,Q.normalizeProvider)(r.useDualstackEndpoint??false);const{endpoint:i,useFipsEndpoint:a,urlParser:A}=r;return{...r,tls:r.tls??true,endpoint:i?(0,Q.normalizeProvider)(typeof i==="string"?A(i):i):()=>v({...r,useDualstackEndpoint:s,useFipsEndpoint:a}),isCustomEndpoint:!!i,useDualstackEndpoint:s}}),"resolveEndpointsConfig");var R="AWS_REGION";var N="region";var x={environmentVariableSelector:r=>r[R],configFileSelector:r=>r[N],default:()=>{throw new Error("Region is missing")}};var D={preferredFile:"credentials"};var k=__name((r=>typeof r==="string"&&(r.startsWith("fips-")||r.endsWith("-fips"))),"isFipsRegion");var T=__name((r=>k(r)?["fips-aws-global","aws-fips"].includes(r)?"us-east-1":r.replace(/fips-(dkr-|prod-)?|-fips/,""):r),"getRealRegion");var _=__name((r=>{const{region:s,useFipsEndpoint:i}=r;if(!s){throw new Error("Region is missing")}return{...r,region:async()=>{if(typeof s==="string"){return T(s)}const r=await s();return T(r)},useFipsEndpoint:async()=>{const r=typeof s==="string"?s:await s();if(k(r)){return true}return typeof i!=="function"?Promise.resolve(!!i):i()}}}),"resolveRegionConfig");var P=__name(((r=[],{useFipsEndpoint:s,useDualstackEndpoint:i})=>r.find((({tags:r})=>s===r.includes("fips")&&i===r.includes("dualstack")))?.hostname),"getHostnameFromVariants");var O=__name(((r,{regionHostname:s,partitionHostname:i})=>s?s:i?i.replace("{region}",r):void 0),"getResolvedHostname");var L=__name(((r,{partitionHash:s})=>Object.keys(s||{}).find((i=>s[i].regions.includes(r)))??"aws"),"getResolvedPartition");var M=__name(((r,{signingRegion:s,regionRegex:i,useFipsEndpoint:a})=>{if(s){return s}else if(a){const s=i.replace("\\\\","\\").replace(/^\^/g,"\\.").replace(/\$$/g,"\\.");const a=r.match(s);if(a){return a[0].slice(1,-1)}}}),"getResolvedSigningRegion");var U=__name(((r,{useFipsEndpoint:s=false,useDualstackEndpoint:i=false,signingService:a,regionHash:A,partitionHash:c})=>{const l=L(r,{partitionHash:c});const d=r in A?r:c[l]?.endpoint??r;const u={useFipsEndpoint:s,useDualstackEndpoint:i};const p=P(A[d]?.variants,u);const g=P(c[l]?.variants,u);const h=O(d,{regionHostname:p,partitionHostname:g});if(h===void 0){throw new Error(`Endpoint resolution failed for: ${{resolvedRegion:d,useFipsEndpoint:s,useDualstackEndpoint:i}}`)}const C=M(h,{signingRegion:A[d]?.signingRegion,regionRegex:c[l].regionRegex,useFipsEndpoint:s});return{partition:l,signingService:a,hostname:h,...C&&{signingRegion:C},...A[d]?.signingService&&{signingService:A[d].signingService}}}),"getRegionInfo");0&&0},55829:(r,s,i)=>{var a=Object.defineProperty;var A=Object.getOwnPropertyDescriptor;var c=Object.getOwnPropertyNames;var l=Object.prototype.hasOwnProperty;var __name=(r,s)=>a(r,"name",{value:s,configurable:true});var __export=(r,s)=>{for(var i in s)a(r,i,{get:s[i],enumerable:true})};var __copyProps=(r,s,i,d)=>{if(s&&typeof s==="object"||typeof s==="function"){for(let u of c(s))if(!l.call(r,u)&&u!==i)a(r,u,{get:()=>s[u],enumerable:!(d=A(s,u))||d.enumerable})}return r};var __toCommonJS=r=>__copyProps(a({},"__esModule",{value:true}),r);var d={};__export(d,{DefaultIdentityProviderConfig:()=>_,EXPIRATION_MS:()=>U,HttpApiKeyAuthSigner:()=>P,HttpBearerAuthSigner:()=>O,NoAuthSigner:()=>L,createIsIdentityExpiredFunction:()=>M,createPaginator:()=>createPaginator,doesIdentityRequireRefresh:()=>G,getHttpAuthSchemeEndpointRuleSetPlugin:()=>y,getHttpAuthSchemePlugin:()=>b,getHttpSigningPlugin:()=>N,getSmithyContext:()=>p,httpAuthSchemeEndpointRuleSetMiddlewareOptions:()=>C,httpAuthSchemeMiddleware:()=>h,httpAuthSchemeMiddlewareOptions:()=>B,httpSigningMiddleware:()=>S,httpSigningMiddlewareOptions:()=>R,isIdentityExpired:()=>H,memoizeIdentityProvider:()=>q,normalizeProvider:()=>x,requestBuilder:()=>T.requestBuilder,setFeature:()=>setFeature});r.exports=__toCommonJS(d);var u=i(55756);var p=__name((r=>r[u.SMITHY_CONTEXT_KEY]||(r[u.SMITHY_CONTEXT_KEY]={})),"getSmithyContext");var g=i(2390);function convertHttpAuthSchemesToMap(r){const s=new Map;for(const i of r){s.set(i.schemeId,i)}return s}__name(convertHttpAuthSchemesToMap,"convertHttpAuthSchemesToMap");var h=__name(((r,s)=>(i,a)=>async A=>{const c=r.httpAuthSchemeProvider(await s.httpAuthSchemeParametersProvider(r,a,A.input));const l=convertHttpAuthSchemesToMap(r.httpAuthSchemes);const d=(0,g.getSmithyContext)(a);const u=[];for(const i of c){const A=l.get(i.schemeId);if(!A){u.push(`HttpAuthScheme \`${i.schemeId}\` was not enabled for this service.`);continue}const c=A.identityProvider(await s.identityProviderConfigProvider(r));if(!c){u.push(`HttpAuthScheme \`${i.schemeId}\` did not have an IdentityProvider configured.`);continue}const{identityProperties:p={},signingProperties:g={}}=i.propertiesExtractor?.(r,a)||{};i.identityProperties=Object.assign(i.identityProperties||{},p);i.signingProperties=Object.assign(i.signingProperties||{},g);d.selectedHttpAuthScheme={httpAuthOption:i,identity:await c(i.identityProperties),signer:A.signer};break}if(!d.selectedHttpAuthScheme){throw new Error(u.join("\n"))}return i(A)}),"httpAuthSchemeMiddleware");var C={step:"serialize",tags:["HTTP_AUTH_SCHEME"],name:"httpAuthSchemeMiddleware",override:true,relation:"before",toMiddleware:"endpointV2Middleware"};var y=__name(((r,{httpAuthSchemeParametersProvider:s,identityProviderConfigProvider:i})=>({applyToStack:a=>{a.addRelativeTo(h(r,{httpAuthSchemeParametersProvider:s,identityProviderConfigProvider:i}),C)}})),"getHttpAuthSchemeEndpointRuleSetPlugin");var I=i(81238);var B={step:"serialize",tags:["HTTP_AUTH_SCHEME"],name:"httpAuthSchemeMiddleware",override:true,relation:"before",toMiddleware:I.serializerMiddlewareOption.name};var b=__name(((r,{httpAuthSchemeParametersProvider:s,identityProviderConfigProvider:i})=>({applyToStack:a=>{a.addRelativeTo(h(r,{httpAuthSchemeParametersProvider:s,identityProviderConfigProvider:i}),B)}})),"getHttpAuthSchemePlugin");var Q=i(64418);var w=__name((r=>r=>{throw r}),"defaultErrorHandler");var v=__name(((r,s)=>{}),"defaultSuccessHandler");var S=__name((r=>(r,s)=>async i=>{if(!Q.HttpRequest.isInstance(i.request)){return r(i)}const a=(0,g.getSmithyContext)(s);const A=a.selectedHttpAuthScheme;if(!A){throw new Error(`No HttpAuthScheme was selected: unable to sign request`)}const{httpAuthOption:{signingProperties:c={}},identity:l,signer:d}=A;const u=await r({...i,request:await d.sign(i.request,l,c)}).catch((d.errorHandler||w)(c));(d.successHandler||v)(u.response,c);return u}),"httpSigningMiddleware");var R={step:"finalizeRequest",tags:["HTTP_SIGNING"],name:"httpSigningMiddleware",aliases:["apiKeyMiddleware","tokenMiddleware","awsAuthMiddleware"],override:true,relation:"after",toMiddleware:"retryMiddleware"};var N=__name((r=>({applyToStack:s=>{s.addRelativeTo(S(r),R)}})),"getHttpSigningPlugin");var x=__name((r=>{if(typeof r==="function")return r;const s=Promise.resolve(r);return()=>s}),"normalizeProvider");var D=__name((async(r,s,i,a=(r=>r),...A)=>{let c=new r(i);c=a(c)??c;return await s.send(c,...A)}),"makePagedClientRequest");function createPaginator(r,s,i,a,A){return __name((async function*paginateOperation(c,l,...d){const u=l;let p=c.startingToken??u[i];let g=true;let h;while(g){u[i]=p;if(A){u[A]=u[A]??c.pageSize}if(c.client instanceof r){h=await D(s,c.client,l,c.withCommand,...d)}else{throw new Error(`Invalid client, expected instance of ${r.name}`)}yield h;const C=p;p=k(h,a);g=!!(p&&(!c.stopOnSameToken||p!==C))}return void 0}),"paginateOperation")}__name(createPaginator,"createPaginator");var k=__name(((r,s)=>{let i=r;const a=s.split(".");for(const r of a){if(!i||typeof i!=="object"){return void 0}i=i[r]}return i}),"get");var T=i(2241);function setFeature(r,s,i){if(!r.__smithy_context){r.__smithy_context={features:{}}}else if(!r.__smithy_context.features){r.__smithy_context.features={}}r.__smithy_context.features[s]=i}__name(setFeature,"setFeature");var _=class{constructor(r){this.authSchemes=new Map;for(const[s,i]of Object.entries(r)){if(i!==void 0){this.authSchemes.set(s,i)}}}static{__name(this,"DefaultIdentityProviderConfig")}getIdentityProvider(r){return this.authSchemes.get(r)}};var P=class{static{__name(this,"HttpApiKeyAuthSigner")}async sign(r,s,i){if(!i){throw new Error("request could not be signed with `apiKey` since the `name` and `in` signer properties are missing")}if(!i.name){throw new Error("request could not be signed with `apiKey` since the `name` signer property is missing")}if(!i.in){throw new Error("request could not be signed with `apiKey` since the `in` signer property is missing")}if(!s.apiKey){throw new Error("request could not be signed with `apiKey` since the `apiKey` is not defined")}const a=Q.HttpRequest.clone(r);if(i.in===u.HttpApiKeyAuthLocation.QUERY){a.query[i.name]=s.apiKey}else if(i.in===u.HttpApiKeyAuthLocation.HEADER){a.headers[i.name]=i.scheme?`${i.scheme} ${s.apiKey}`:s.apiKey}else{throw new Error("request can only be signed with `apiKey` locations `query` or `header`, but found: `"+i.in+"`")}return a}};var O=class{static{__name(this,"HttpBearerAuthSigner")}async sign(r,s,i){const a=Q.HttpRequest.clone(r);if(!s.token){throw new Error("request could not be signed with `token` since the `token` is not defined")}a.headers["Authorization"]=`Bearer ${s.token}`;return a}};var L=class{static{__name(this,"NoAuthSigner")}async sign(r,s,i){return r}};var M=__name((r=>s=>G(s)&&s.expiration.getTime()-Date.now()r.expiration!==void 0),"doesIdentityRequireRefresh");var q=__name(((r,s,i)=>{if(r===void 0){return void 0}const a=typeof r!=="function"?async()=>Promise.resolve(r):r;let A;let c;let l;let d=false;const u=__name((async r=>{if(!c){c=a(r)}try{A=await c;l=true;d=false}finally{c=void 0}return A}),"coalesceProvider");if(s===void 0){return async r=>{if(!l||r?.forceRefresh){A=await u(r)}return A}}return async r=>{if(!l||r?.forceRefresh){A=await u(r)}if(d){return A}if(!i(A)){d=true;return A}if(s(A)){await u(r);return A}return A}}),"memoizeIdentityProvider");0&&0},2241:(r,s,i)=>{var a=Object.defineProperty;var A=Object.getOwnPropertyDescriptor;var c=Object.getOwnPropertyNames;var l=Object.prototype.hasOwnProperty;var __export=(r,s)=>{for(var i in s)a(r,i,{get:s[i],enumerable:true})};var __copyProps=(r,s,i,d)=>{if(s&&typeof s==="object"||typeof s==="function"){for(let u of c(s))if(!l.call(r,u)&&u!==i)a(r,u,{get:()=>s[u],enumerable:!(d=A(s,u))||d.enumerable})}return r};var __toCommonJS=r=>__copyProps(a({},"__esModule",{value:true}),r);var d={};__export(d,{RequestBuilder:()=>g,collectBody:()=>collectBody,extendedEncodeURIComponent:()=>extendedEncodeURIComponent,requestBuilder:()=>requestBuilder,resolvedPath:()=>resolvedPath});r.exports=__toCommonJS(d);var u=i(96607);var collectBody=async(r=new Uint8Array,s)=>{if(r instanceof Uint8Array){return u.Uint8ArrayBlobAdapter.mutate(r)}if(!r){return u.Uint8ArrayBlobAdapter.mutate(new Uint8Array)}const i=s.streamCollector(r);return u.Uint8ArrayBlobAdapter.mutate(await i)};function extendedEncodeURIComponent(r){return encodeURIComponent(r).replace(/[!'()*]/g,(function(r){return"%"+r.charCodeAt(0).toString(16).toUpperCase()}))}var p=i(64418);var resolvedPath=(r,s,i,a,A,c)=>{if(s!=null&&s[i]!==void 0){const s=a();if(s.length<=0){throw new Error("Empty value provided for input HTTP label: "+i+".")}r=r.replace(A,c?s.split("/").map((r=>extendedEncodeURIComponent(r))).join("/"):extendedEncodeURIComponent(s))}else{throw new Error("No value provided for input HTTP label: "+i+".")}return r};function requestBuilder(r,s){return new g(r,s)}var g=class{constructor(r,s){this.input=r;this.context=s;this.query={};this.method="";this.headers={};this.path="";this.body=null;this.hostname="";this.resolvePathStack=[]}async build(){const{hostname:r,protocol:s="https",port:i,path:a}=await this.context.endpoint();this.path=a;for(const r of this.resolvePathStack){r(this.path)}return new p.HttpRequest({protocol:s,hostname:this.hostname||r,port:i,method:this.method,path:this.path,query:this.query,body:this.body,headers:this.headers})}hn(r){this.hostname=r;return this}bp(r){this.resolvePathStack.push((s=>{this.path=`${s?.endsWith("/")?s.slice(0,-1):s||""}`+r}));return this}p(r,s,i,a){this.resolvePathStack.push((A=>{this.path=resolvedPath(A,this.input,r,s,i,a)}));return this}h(r){this.headers=r;return this}q(r){this.query=r;return this}b(r){this.body=r;return this}m(r){this.method=r;return this}};0&&0},7477:(r,s,i)=>{var a=Object.defineProperty;var A=Object.getOwnPropertyDescriptor;var c=Object.getOwnPropertyNames;var l=Object.prototype.hasOwnProperty;var __name=(r,s)=>a(r,"name",{value:s,configurable:true});var __export=(r,s)=>{for(var i in s)a(r,i,{get:s[i],enumerable:true})};var __copyProps=(r,s,i,d)=>{if(s&&typeof s==="object"||typeof s==="function"){for(let u of c(s))if(!l.call(r,u)&&u!==i)a(r,u,{get:()=>s[u],enumerable:!(d=A(s,u))||d.enumerable})}return r};var __toCommonJS=r=>__copyProps(a({},"__esModule",{value:true}),r);var d={};__export(d,{DEFAULT_MAX_RETRIES:()=>B,DEFAULT_TIMEOUT:()=>I,ENV_CMDS_AUTH_TOKEN:()=>S,ENV_CMDS_FULL_URI:()=>w,ENV_CMDS_RELATIVE_URI:()=>v,Endpoint:()=>L,fromContainerMetadata:()=>R,fromInstanceMetadata:()=>ie,getInstanceMetadataEndpoint:()=>z,httpRequest:()=>httpRequest,providerConfigFromInit:()=>b});r.exports=__toCommonJS(d);var u=i(57310);var p=i(79721);var g=i(14300);var h=i(13685);function httpRequest(r){return new Promise(((s,i)=>{const a=(0,h.request)({method:"GET",...r,hostname:r.hostname?.replace(/^\[(.+)\]$/,"$1")});a.on("error",(r=>{i(Object.assign(new p.ProviderError("Unable to connect to instance metadata service"),r));a.destroy()}));a.on("timeout",(()=>{i(new p.ProviderError("TimeoutError from instance metadata service"));a.destroy()}));a.on("response",(r=>{const{statusCode:A=400}=r;if(A<200||300<=A){i(Object.assign(new p.ProviderError("Error response received from instance metadata service"),{statusCode:A}));a.destroy()}const c=[];r.on("data",(r=>{c.push(r)}));r.on("end",(()=>{s(g.Buffer.concat(c));a.destroy()}))}));a.end()}))}__name(httpRequest,"httpRequest");var C=__name((r=>Boolean(r)&&typeof r==="object"&&typeof r.AccessKeyId==="string"&&typeof r.SecretAccessKey==="string"&&typeof r.Token==="string"&&typeof r.Expiration==="string"),"isImdsCredentials");var y=__name((r=>({accessKeyId:r.AccessKeyId,secretAccessKey:r.SecretAccessKey,sessionToken:r.Token,expiration:new Date(r.Expiration),...r.AccountId&&{accountId:r.AccountId}})),"fromImdsCredentials");var I=1e3;var B=0;var b=__name((({maxRetries:r=B,timeout:s=I})=>({maxRetries:r,timeout:s})),"providerConfigFromInit");var Q=__name(((r,s)=>{let i=r();for(let a=0;a{const{timeout:s,maxRetries:i}=b(r);return()=>Q((async()=>{const i=await T({logger:r.logger});const a=JSON.parse(await N(s,i));if(!C(a)){throw new p.CredentialsProviderError("Invalid response received from instance metadata service.",{logger:r.logger})}return y(a)}),i)}),"fromContainerMetadata");var N=__name((async(r,s)=>{if(process.env[S]){s.headers={...s.headers,Authorization:process.env[S]}}const i=await httpRequest({...s,timeout:r});return i.toString()}),"requestFromEcsImds");var x="169.254.170.2";var D={localhost:true,"127.0.0.1":true};var k={"http:":true,"https:":true};var T=__name((async({logger:r})=>{if(process.env[v]){return{hostname:x,path:process.env[v]}}if(process.env[w]){const s=(0,u.parse)(process.env[w]);if(!s.hostname||!(s.hostname in D)){throw new p.CredentialsProviderError(`${s.hostname} is not a valid container metadata service hostname`,{tryNextLink:false,logger:r})}if(!s.protocol||!(s.protocol in k)){throw new p.CredentialsProviderError(`${s.protocol} is not a valid container metadata service protocol`,{tryNextLink:false,logger:r})}return{...s,port:s.port?parseInt(s.port,10):void 0}}throw new p.CredentialsProviderError(`The container metadata credential provider cannot be used unless the ${v} or ${w} environment variable is set`,{tryNextLink:false,logger:r})}),"getCmdsUri");var _=class _InstanceMetadataV1FallbackError extends p.CredentialsProviderError{constructor(r,s=true){super(r,s);this.tryNextLink=s;this.name="InstanceMetadataV1FallbackError";Object.setPrototypeOf(this,_InstanceMetadataV1FallbackError.prototype)}static{__name(this,"InstanceMetadataV1FallbackError")}};var P=i(33461);var O=i(14681);var L=(r=>{r["IPv4"]="http://169.254.169.254";r["IPv6"]="http://[fd00:ec2::254]";return r})(L||{});var M="AWS_EC2_METADATA_SERVICE_ENDPOINT";var U="ec2_metadata_service_endpoint";var H={environmentVariableSelector:r=>r[M],configFileSelector:r=>r[U],default:void 0};var G=(r=>{r["IPv4"]="IPv4";r["IPv6"]="IPv6";return r})(G||{});var q="AWS_EC2_METADATA_SERVICE_ENDPOINT_MODE";var V="ec2_metadata_service_endpoint_mode";var j={environmentVariableSelector:r=>r[q],configFileSelector:r=>r[V],default:"IPv4"};var z=__name((async()=>(0,O.parseUrl)(await Y()||await J())),"getInstanceMetadataEndpoint");var Y=__name((async()=>(0,P.loadConfig)(H)()),"getFromEndpointConfig");var J=__name((async()=>{const r=await(0,P.loadConfig)(j)();switch(r){case"IPv4":return"http://169.254.169.254";case"IPv6":return"http://[fd00:ec2::254]";default:throw new Error(`Unsupported endpoint mode: ${r}. Select from ${Object.values(G)}`)}}),"getFromEndpointModeConfig");var W=5*60;var X=5*60;var $="https://docs.aws.amazon.com/sdkref/latest/guide/feature-static-credentials.html";var K=__name(((r,s)=>{const i=W+Math.floor(Math.random()*X);const a=new Date(Date.now()+i*1e3);s.warn(`Attempting credential expiration extension due to a credential service availability issue. A refresh of these credentials will be attempted after ${new Date(a)}.\nFor more information, please visit: `+$);const A=r.originalExpiration??r.expiration;return{...r,...A?{originalExpiration:A}:{},expiration:a}}),"getExtendedInstanceMetadataCredentials");var Z=__name(((r,s={})=>{const i=s?.logger||console;let a;return async()=>{let s;try{s=await r();if(s.expiration&&s.expiration.getTime()Z(oe(r),{logger:r.logger})),"fromInstanceMetadata");var oe=__name(((r={})=>{let s=false;const{logger:i,profile:a}=r;const{timeout:A,maxRetries:c}=b(r);const l=__name((async(i,A)=>{const c=s||A.headers?.[se]==null;if(c){let s=false;let i=false;const A=await(0,P.loadConfig)({environmentVariableSelector:s=>{const a=s[re];i=!!a&&a!=="false";if(a===void 0){throw new p.CredentialsProviderError(`${re} not set in env, checking config file next.`,{logger:r.logger})}return i},configFileSelector:r=>{const i=r[ne];s=!!i&&i!=="false";return s},default:false},{profile:a})();if(r.ec2MetadataV1Disabled||A){const a=[];if(r.ec2MetadataV1Disabled)a.push("credential provider initialization (runtime option ec2MetadataV1Disabled)");if(s)a.push(`config file profile (${ne})`);if(i)a.push(`process environment variable (${re})`);throw new _(`AWS EC2 Metadata v1 fallback has been blocked by AWS SDK configuration in the following: [${a.join(", ")}].`)}}const l=(await Q((async()=>{let r;try{r=await Ae(A)}catch(r){if(r.statusCode===401){s=false}throw r}return r}),i)).trim();return Q((async()=>{let i;try{i=await ce(l,A,r)}catch(r){if(r.statusCode===401){s=false}throw r}return i}),i)}),"getCredentials");return async()=>{const r=await z();if(s){i?.debug("AWS SDK Instance Metadata","using v1 fallback (no token fetch)");return l(c,{...r,timeout:A})}else{let a;try{a=(await ae({...r,timeout:A})).toString()}catch(a){if(a?.statusCode===400){throw Object.assign(a,{message:"EC2 Metadata token request returned error"})}else if(a.message==="TimeoutError"||[403,404,405].includes(a.statusCode)){s=true}i?.debug("AWS SDK Instance Metadata","using v1 fallback (initial)");return l(c,{...r,timeout:A})}return l(c,{...r,headers:{[se]:a},timeout:A})}}}),"getInstanceMetadataProvider");var ae=__name((async r=>httpRequest({...r,path:te,method:"PUT",headers:{"x-aws-ec2-metadata-token-ttl-seconds":"21600"}})),"getMetadataToken");var Ae=__name((async r=>(await httpRequest({...r,path:ee})).toString()),"getProfile");var ce=__name((async(r,s,i)=>{const a=JSON.parse((await httpRequest({...s,path:ee+r})).toString());if(!C(a)){throw new p.CredentialsProviderError("Invalid response received from instance metadata service.",{logger:i.logger})}return y(a)}),"getCredentialsFromProfile");0&&0},82687:(r,s,i)=>{var a=Object.defineProperty;var A=Object.getOwnPropertyDescriptor;var c=Object.getOwnPropertyNames;var l=Object.prototype.hasOwnProperty;var __name=(r,s)=>a(r,"name",{value:s,configurable:true});var __export=(r,s)=>{for(var i in s)a(r,i,{get:s[i],enumerable:true})};var __copyProps=(r,s,i,d)=>{if(s&&typeof s==="object"||typeof s==="function"){for(let u of c(s))if(!l.call(r,u)&&u!==i)a(r,u,{get:()=>s[u],enumerable:!(d=A(s,u))||d.enumerable})}return r};var __toCommonJS=r=>__copyProps(a({},"__esModule",{value:true}),r);var d={};__export(d,{FetchHttpHandler:()=>h,keepAliveSupport:()=>g,streamCollector:()=>y});r.exports=__toCommonJS(d);var u=i(64418);var p=i(68031);function createRequest(r,s){return new Request(r,s)}__name(createRequest,"createRequest");function requestTimeout(r=0){return new Promise(((s,i)=>{if(r){setTimeout((()=>{const s=new Error(`Request did not complete within ${r} ms`);s.name="TimeoutError";i(s)}),r)}}))}__name(requestTimeout,"requestTimeout");var g={supported:void 0};var h=class _FetchHttpHandler{static{__name(this,"FetchHttpHandler")}static create(r){if(typeof r?.handle==="function"){return r}return new _FetchHttpHandler(r)}constructor(r){if(typeof r==="function"){this.configProvider=r().then((r=>r||{}))}else{this.config=r??{};this.configProvider=Promise.resolve(this.config)}if(g.supported===void 0){g.supported=Boolean(typeof Request!=="undefined"&&"keepalive"in createRequest("https://[::1]"))}}destroy(){}async handle(r,{abortSignal:s}={}){if(!this.config){this.config=await this.configProvider}const i=this.config.requestTimeout;const a=this.config.keepAlive===true;const A=this.config.credentials;if(s?.aborted){const r=new Error("Request aborted");r.name="AbortError";return Promise.reject(r)}let c=r.path;const l=(0,p.buildQueryString)(r.query||{});if(l){c+=`?${l}`}if(r.fragment){c+=`#${r.fragment}`}let d="";if(r.username!=null||r.password!=null){const s=r.username??"";const i=r.password??"";d=`${s}:${i}@`}const{port:h,method:C}=r;const y=`${r.protocol}//${d}${r.hostname}${h?`:${h}`:""}${c}`;const I=C==="GET"||C==="HEAD"?void 0:r.body;const B={body:I,headers:new Headers(r.headers),method:C,credentials:A};if(this.config?.cache){B.cache=this.config.cache}if(I){B.duplex="half"}if(typeof AbortController!=="undefined"){B.signal=s}if(g.supported){B.keepalive=a}if(typeof this.config.requestInit==="function"){Object.assign(B,this.config.requestInit(r))}let b=__name((()=>{}),"removeSignalEventListener");const Q=createRequest(y,B);const w=[fetch(Q).then((r=>{const s=r.headers;const i={};for(const r of s.entries()){i[r[0]]=r[1]}const a=r.body!=void 0;if(!a){return r.blob().then((s=>({response:new u.HttpResponse({headers:i,reason:r.statusText,statusCode:r.status,body:s})})))}return{response:new u.HttpResponse({headers:i,reason:r.statusText,statusCode:r.status,body:r.body})}})),requestTimeout(i)];if(s){w.push(new Promise(((r,i)=>{const a=__name((()=>{const r=new Error("Request aborted");r.name="AbortError";i(r)}),"onAbort");if(typeof s.addEventListener==="function"){const r=s;r.addEventListener("abort",a,{once:true});b=__name((()=>r.removeEventListener("abort",a)),"removeSignalEventListener")}else{s.onabort=a}})))}return Promise.race(w).finally(b)}updateHttpClientConfig(r,s){this.config=void 0;this.configProvider=this.configProvider.then((i=>{i[r]=s;return i}))}httpHandlerConfigs(){return this.config??{}}};var C=i(75600);var y=__name((async r=>{if(typeof Blob==="function"&&r instanceof Blob||r.constructor?.name==="Blob"){if(Blob.prototype.arrayBuffer!==void 0){return new Uint8Array(await r.arrayBuffer())}return collectBlob(r)}return collectStream(r)}),"streamCollector");async function collectBlob(r){const s=await readToBase64(r);const i=(0,C.fromBase64)(s);return new Uint8Array(i)}__name(collectBlob,"collectBlob");async function collectStream(r){const s=[];const i=r.getReader();let a=false;let A=0;while(!a){const{done:r,value:c}=await i.read();if(c){s.push(c);A+=c.length}a=r}const c=new Uint8Array(A);let l=0;for(const r of s){c.set(r,l);l+=r.length}return c}__name(collectStream,"collectStream");function readToBase64(r){return new Promise(((s,i)=>{const a=new FileReader;a.onloadend=()=>{if(a.readyState!==2){return i(new Error("Reader aborted too early"))}const r=a.result??"";const A=r.indexOf(",");const c=A>-1?A+1:r.length;s(r.substring(c))};a.onabort=()=>i(new Error("Read aborted"));a.onerror=()=>i(a.error);a.readAsDataURL(r)}))}__name(readToBase64,"readToBase64");0&&0},3081:(r,s,i)=>{var a=Object.defineProperty;var A=Object.getOwnPropertyDescriptor;var c=Object.getOwnPropertyNames;var l=Object.prototype.hasOwnProperty;var __name=(r,s)=>a(r,"name",{value:s,configurable:true});var __export=(r,s)=>{for(var i in s)a(r,i,{get:s[i],enumerable:true})};var __copyProps=(r,s,i,d)=>{if(s&&typeof s==="object"||typeof s==="function"){for(let u of c(s))if(!l.call(r,u)&&u!==i)a(r,u,{get:()=>s[u],enumerable:!(d=A(s,u))||d.enumerable})}return r};var __toCommonJS=r=>__copyProps(a({},"__esModule",{value:true}),r);var d={};__export(d,{Hash:()=>C});r.exports=__toCommonJS(d);var u=i(31381);var p=i(41895);var g=i(14300);var h=i(6113);var C=class{static{__name(this,"Hash")}constructor(r,s){this.algorithmIdentifier=r;this.secret=s;this.reset()}update(r,s){this.hash.update((0,p.toUint8Array)(castSourceData(r,s)))}digest(){return Promise.resolve(this.hash.digest())}reset(){this.hash=this.secret?(0,h.createHmac)(this.algorithmIdentifier,castSourceData(this.secret)):(0,h.createHash)(this.algorithmIdentifier)}};function castSourceData(r,s){if(g.Buffer.isBuffer(r)){return r}if(typeof r==="string"){return(0,u.fromString)(r,s)}if(ArrayBuffer.isView(r)){return(0,u.fromArrayBuffer)(r.buffer,r.byteOffset,r.byteLength)}return(0,u.fromArrayBuffer)(r)}__name(castSourceData,"castSourceData");0&&0},10780:r=>{var s=Object.defineProperty;var i=Object.getOwnPropertyDescriptor;var a=Object.getOwnPropertyNames;var A=Object.prototype.hasOwnProperty;var __name=(r,i)=>s(r,"name",{value:i,configurable:true});var __export=(r,i)=>{for(var a in i)s(r,a,{get:i[a],enumerable:true})};var __copyProps=(r,c,l,d)=>{if(c&&typeof c==="object"||typeof c==="function"){for(let u of a(c))if(!A.call(r,u)&&u!==l)s(r,u,{get:()=>c[u],enumerable:!(d=i(c,u))||d.enumerable})}return r};var __toCommonJS=r=>__copyProps(s({},"__esModule",{value:true}),r);var c={};__export(c,{isArrayBuffer:()=>l});r.exports=__toCommonJS(c);var l=__name((r=>typeof ArrayBuffer==="function"&&r instanceof ArrayBuffer||Object.prototype.toString.call(r)==="[object ArrayBuffer]"),"isArrayBuffer");0&&0},82800:(r,s,i)=>{var a=Object.defineProperty;var A=Object.getOwnPropertyDescriptor;var c=Object.getOwnPropertyNames;var l=Object.prototype.hasOwnProperty;var __name=(r,s)=>a(r,"name",{value:s,configurable:true});var __export=(r,s)=>{for(var i in s)a(r,i,{get:s[i],enumerable:true})};var __copyProps=(r,s,i,d)=>{if(s&&typeof s==="object"||typeof s==="function"){for(let u of c(s))if(!l.call(r,u)&&u!==i)a(r,u,{get:()=>s[u],enumerable:!(d=A(s,u))||d.enumerable})}return r};var __toCommonJS=r=>__copyProps(a({},"__esModule",{value:true}),r);var d={};__export(d,{contentLengthMiddleware:()=>contentLengthMiddleware,contentLengthMiddlewareOptions:()=>g,getContentLengthPlugin:()=>h});r.exports=__toCommonJS(d);var u=i(64418);var p="content-length";function contentLengthMiddleware(r){return s=>async i=>{const a=i.request;if(u.HttpRequest.isInstance(a)){const{body:s,headers:i}=a;if(s&&Object.keys(i).map((r=>r.toLowerCase())).indexOf(p)===-1){try{const i=r(s);a.headers={...a.headers,[p]:String(i)}}catch(r){}}}return s({...i,request:a})}}__name(contentLengthMiddleware,"contentLengthMiddleware");var g={step:"build",tags:["SET_CONTENT_LENGTH","CONTENT_LENGTH"],name:"contentLengthMiddleware",override:true};var h=__name((r=>({applyToStack:s=>{s.add(contentLengthMiddleware(r.bodyLengthChecker),g)}})),"getContentLengthPlugin");0&&0},31518:(r,s,i)=>{"use strict";Object.defineProperty(s,"__esModule",{value:true});s.getEndpointFromConfig=void 0;const a=i(33461);const A=i(7574);const getEndpointFromConfig=async r=>(0,a.loadConfig)((0,A.getEndpointUrlConfig)(r!==null&&r!==void 0?r:""))();s.getEndpointFromConfig=getEndpointFromConfig},7574:(r,s,i)=>{"use strict";Object.defineProperty(s,"__esModule",{value:true});s.getEndpointUrlConfig=void 0;const a=i(43507);const A="AWS_ENDPOINT_URL";const c="endpoint_url";const getEndpointUrlConfig=r=>({environmentVariableSelector:s=>{const i=r.split(" ").map((r=>r.toUpperCase()));const a=s[[A,...i].join("_")];if(a)return a;const c=s[A];if(c)return c;return undefined},configFileSelector:(s,i)=>{if(i&&s.services){const A=i[["services",s.services].join(a.CONFIG_PREFIX_SEPARATOR)];if(A){const s=r.split(" ").map((r=>r.toLowerCase()));const i=A[[s.join("_"),c].join(a.CONFIG_PREFIX_SEPARATOR)];if(i)return i}}const A=s[c];if(A)return A;return undefined},default:undefined});s.getEndpointUrlConfig=getEndpointUrlConfig},82918:(r,s,i)=>{var a=Object.defineProperty;var A=Object.getOwnPropertyDescriptor;var c=Object.getOwnPropertyNames;var l=Object.prototype.hasOwnProperty;var __name=(r,s)=>a(r,"name",{value:s,configurable:true});var __export=(r,s)=>{for(var i in s)a(r,i,{get:s[i],enumerable:true})};var __copyProps=(r,s,i,d)=>{if(s&&typeof s==="object"||typeof s==="function"){for(let u of c(s))if(!l.call(r,u)&&u!==i)a(r,u,{get:()=>s[u],enumerable:!(d=A(s,u))||d.enumerable})}return r};var __toCommonJS=r=>__copyProps(a({},"__esModule",{value:true}),r);var d={};__export(d,{endpointMiddleware:()=>N,endpointMiddlewareOptions:()=>D,getEndpointFromInstructions:()=>w,getEndpointPlugin:()=>k,resolveEndpointConfig:()=>_,resolveParams:()=>v,toEndpointV1:()=>Q});r.exports=__toCommonJS(d);var u=__name((async r=>{const s=r?.Bucket||"";if(typeof r.Bucket==="string"){r.Bucket=s.replace(/#/g,encodeURIComponent("#")).replace(/\?/g,encodeURIComponent("?"))}if(y(s)){if(r.ForcePathStyle===true){throw new Error("Path-style addressing cannot be used with ARN buckets")}}else if(!C(s)||s.indexOf(".")!==-1&&!String(r.Endpoint).startsWith("http:")||s.toLowerCase()!==s||s.length<3){r.ForcePathStyle=true}if(r.DisableMultiRegionAccessPoints){r.disableMultiRegionAccessPoints=true;r.DisableMRAP=true}return r}),"resolveParamsForS3");var p=/^[a-z0-9][a-z0-9\.\-]{1,61}[a-z0-9]$/;var g=/(\d+\.){3}\d+/;var h=/\.\./;var C=__name((r=>p.test(r)&&!g.test(r)&&!h.test(r)),"isDnsCompatibleBucketName");var y=__name((r=>{const[s,i,a,,,A]=r.split(":");const c=s==="arn"&&r.split(":").length>=6;const l=Boolean(c&&i&&a&&A);if(c&&!l){throw new Error(`Invalid ARN: ${r} was an invalid ARN.`)}return l}),"isArnBucketName");var I=__name(((r,s,i)=>{const a=__name((async()=>{const a=i[r]??i[s];if(typeof a==="function"){return a()}return a}),"configProvider");if(r==="credentialScope"||s==="CredentialScope"){return async()=>{const r=typeof i.credentials==="function"?await i.credentials():i.credentials;const s=r?.credentialScope??r?.CredentialScope;return s}}if(r==="accountId"||s==="AccountId"){return async()=>{const r=typeof i.credentials==="function"?await i.credentials():i.credentials;const s=r?.accountId??r?.AccountId;return s}}if(r==="endpoint"||s==="endpoint"){return async()=>{const r=await a();if(r&&typeof r==="object"){if("url"in r){return r.url.href}if("hostname"in r){const{protocol:s,hostname:i,port:a,path:A}=r;return`${s}//${i}${a?":"+a:""}${A}`}}return r}}return a}),"createConfigValueProvider");var B=i(31518);var b=i(14681);var Q=__name((r=>{if(typeof r==="object"){if("url"in r){return(0,b.parseUrl)(r.url)}return r}return(0,b.parseUrl)(r)}),"toEndpointV1");var w=__name((async(r,s,i,a)=>{if(!i.endpoint){let r;if(i.serviceConfiguredEndpoint){r=await i.serviceConfiguredEndpoint()}else{r=await(0,B.getEndpointFromConfig)(i.serviceId)}if(r){i.endpoint=()=>Promise.resolve(Q(r))}}const A=await v(r,s,i);if(typeof i.endpointProvider!=="function"){throw new Error("config.endpointProvider is not set.")}const c=i.endpointProvider(A,a);return c}),"getEndpointFromInstructions");var v=__name((async(r,s,i)=>{const a={};const A=s?.getEndpointParameterInstructions?.()||{};for(const[s,c]of Object.entries(A)){switch(c.type){case"staticContextParams":a[s]=c.value;break;case"contextParams":a[s]=r[c.name];break;case"clientContextParams":case"builtInParams":a[s]=await I(c.name,s,i)();break;case"operationContextParams":a[s]=c.get(r);break;default:throw new Error("Unrecognized endpoint parameter instruction: "+JSON.stringify(c))}}if(Object.keys(A).length===0){Object.assign(a,i)}if(String(i.serviceId).toLowerCase()==="s3"){await u(a)}return a}),"resolveParams");var S=i(55829);var R=i(2390);var N=__name((({config:r,instructions:s})=>(i,a)=>async A=>{if(r.endpoint){(0,S.setFeature)(a,"ENDPOINT_OVERRIDE","N")}const c=await w(A.input,{getEndpointParameterInstructions(){return s}},{...r},a);a.endpointV2=c;a.authSchemes=c.properties?.authSchemes;const l=a.authSchemes?.[0];if(l){a["signing_region"]=l.signingRegion;a["signing_service"]=l.signingName;const r=(0,R.getSmithyContext)(a);const s=r?.selectedHttpAuthScheme?.httpAuthOption;if(s){s.signingProperties=Object.assign(s.signingProperties||{},{signing_region:l.signingRegion,signingRegion:l.signingRegion,signing_service:l.signingName,signingName:l.signingName,signingRegionSet:l.signingRegionSet},l.properties)}}return i({...A})}),"endpointMiddleware");var x=i(81238);var D={step:"serialize",tags:["ENDPOINT_PARAMETERS","ENDPOINT_V2","ENDPOINT"],name:"endpointV2Middleware",override:true,relation:"before",toMiddleware:x.serializerMiddlewareOption.name};var k=__name(((r,s)=>({applyToStack:i=>{i.addRelativeTo(N({config:r,instructions:s}),D)}})),"getEndpointPlugin");var T=i(31518);var _=__name((r=>{const s=r.tls??true;const{endpoint:i}=r;const a=i!=null?async()=>Q(await(0,R.normalizeProvider)(i)()):void 0;const A=!!i;const c={...r,endpoint:a,tls:s,isCustomEndpoint:A,useDualstackEndpoint:(0,R.normalizeProvider)(r.useDualstackEndpoint??false),useFipsEndpoint:(0,R.normalizeProvider)(r.useFipsEndpoint??false)};let l=void 0;c.serviceConfiguredEndpoint=async()=>{if(r.serviceId&&!l){l=(0,T.getEndpointFromConfig)(r.serviceId)}return l};return c}),"resolveEndpointConfig");0&&0},96039:(r,s,i)=>{var a=Object.defineProperty;var A=Object.getOwnPropertyDescriptor;var c=Object.getOwnPropertyNames;var l=Object.prototype.hasOwnProperty;var __name=(r,s)=>a(r,"name",{value:s,configurable:true});var __export=(r,s)=>{for(var i in s)a(r,i,{get:s[i],enumerable:true})};var __copyProps=(r,s,i,d)=>{if(s&&typeof s==="object"||typeof s==="function"){for(let u of c(s))if(!l.call(r,u)&&u!==i)a(r,u,{get:()=>s[u],enumerable:!(d=A(s,u))||d.enumerable})}return r};var __toCommonJS=r=>__copyProps(a({},"__esModule",{value:true}),r);var d={};__export(d,{AdaptiveRetryStrategy:()=>w,CONFIG_MAX_ATTEMPTS:()=>R,CONFIG_RETRY_MODE:()=>k,ENV_MAX_ATTEMPTS:()=>S,ENV_RETRY_MODE:()=>D,NODE_MAX_ATTEMPT_CONFIG_OPTIONS:()=>N,NODE_RETRY_MODE_CONFIG_OPTIONS:()=>T,StandardRetryStrategy:()=>b,defaultDelayDecider:()=>C,defaultRetryDecider:()=>I,getOmitRetryHeadersPlugin:()=>O,getRetryAfterHint:()=>z,getRetryPlugin:()=>j,omitRetryHeadersMiddleware:()=>_,omitRetryHeadersMiddlewareOptions:()=>P,resolveRetryConfig:()=>x,retryMiddleware:()=>U,retryMiddlewareOptions:()=>V});r.exports=__toCommonJS(d);var u=i(64418);var p=i(7761);var g=i(84902);var h=__name(((r,s)=>{const i=r;const a=s?.noRetryIncrement??g.NO_RETRY_INCREMENT;const A=s?.retryCost??g.RETRY_COST;const c=s?.timeoutRetryCost??g.TIMEOUT_RETRY_COST;let l=r;const d=__name((r=>r.name==="TimeoutError"?c:A),"getCapacityAmount");const u=__name((r=>d(r)<=l),"hasRetryTokens");const p=__name((r=>{if(!u(r)){throw new Error("No retry token available")}const s=d(r);l-=s;return s}),"retrieveRetryTokens");const h=__name((r=>{l+=r??a;l=Math.min(l,i)}),"releaseRetryTokens");return Object.freeze({hasRetryTokens:u,retrieveRetryTokens:p,releaseRetryTokens:h})}),"getDefaultRetryQuota");var C=__name(((r,s)=>Math.floor(Math.min(g.MAXIMUM_RETRY_DELAY,Math.random()*2**s*r))),"defaultDelayDecider");var y=i(6375);var I=__name((r=>{if(!r){return false}return(0,y.isRetryableByTrait)(r)||(0,y.isClockSkewError)(r)||(0,y.isThrottlingError)(r)||(0,y.isTransientError)(r)}),"defaultRetryDecider");var B=__name((r=>{if(r instanceof Error)return r;if(r instanceof Object)return Object.assign(new Error,r);if(typeof r==="string")return new Error(r);return new Error(`AWS SDK error wrapper for ${r}`)}),"asSdkError");var b=class{constructor(r,s){this.maxAttemptsProvider=r;this.mode=g.RETRY_MODES.STANDARD;this.retryDecider=s?.retryDecider??I;this.delayDecider=s?.delayDecider??C;this.retryQuota=s?.retryQuota??h(g.INITIAL_RETRY_TOKENS)}static{__name(this,"StandardRetryStrategy")}shouldRetry(r,s,i){return ssetTimeout(r,l)));continue}if(!s.$metadata){s.$metadata={}}s.$metadata.attempts=A;s.$metadata.totalRetryDelay=c;throw s}}}};var Q=__name((r=>{if(!u.HttpResponse.isInstance(r))return;const s=Object.keys(r.headers).find((r=>r.toLowerCase()==="retry-after"));if(!s)return;const i=r.headers[s];const a=Number(i);if(!Number.isNaN(a))return a*1e3;const A=new Date(i);return A.getTime()-Date.now()}),"getDelayFromRetryAfterHeader");var w=class extends b{static{__name(this,"AdaptiveRetryStrategy")}constructor(r,s){const{rateLimiter:i,...a}=s??{};super(r,a);this.rateLimiter=i??new g.DefaultRateLimiter;this.mode=g.RETRY_MODES.ADAPTIVE}async retry(r,s){return super.retry(r,s,{beforeRequest:async()=>this.rateLimiter.getSendToken(),afterRequest:r=>{this.rateLimiter.updateClientSendingRate(r)}})}};var v=i(2390);var S="AWS_MAX_ATTEMPTS";var R="max_attempts";var N={environmentVariableSelector:r=>{const s=r[S];if(!s)return void 0;const i=parseInt(s);if(Number.isNaN(i)){throw new Error(`Environment variable ${S} mast be a number, got "${s}"`)}return i},configFileSelector:r=>{const s=r[R];if(!s)return void 0;const i=parseInt(s);if(Number.isNaN(i)){throw new Error(`Shared config file entry ${R} mast be a number, got "${s}"`)}return i},default:g.DEFAULT_MAX_ATTEMPTS};var x=__name((r=>{const{retryStrategy:s}=r;const i=(0,v.normalizeProvider)(r.maxAttempts??g.DEFAULT_MAX_ATTEMPTS);return{...r,maxAttempts:i,retryStrategy:async()=>{if(s){return s}const a=await(0,v.normalizeProvider)(r.retryMode)();if(a===g.RETRY_MODES.ADAPTIVE){return new g.AdaptiveRetryStrategy(i)}return new g.StandardRetryStrategy(i)}}}),"resolveRetryConfig");var D="AWS_RETRY_MODE";var k="retry_mode";var T={environmentVariableSelector:r=>r[D],configFileSelector:r=>r[k],default:g.DEFAULT_RETRY_MODE};var _=__name((()=>r=>async s=>{const{request:i}=s;if(u.HttpRequest.isInstance(i)){delete i.headers[g.INVOCATION_ID_HEADER];delete i.headers[g.REQUEST_HEADER]}return r(s)}),"omitRetryHeadersMiddleware");var P={name:"omitRetryHeadersMiddleware",tags:["RETRY","HEADERS","OMIT_RETRY_HEADERS"],relation:"before",toMiddleware:"awsAuthMiddleware",override:true};var O=__name((r=>({applyToStack:r=>{r.addRelativeTo(_(),P)}})),"getOmitRetryHeadersPlugin");var L=i(63570);var M=i(18977);var U=__name((r=>(s,i)=>async a=>{let A=await r.retryStrategy();const c=await r.maxAttempts();if(H(A)){A=A;let r=await A.acquireInitialRetryToken(i["partition_id"]);let l=new Error;let d=0;let h=0;const{request:C}=a;const y=u.HttpRequest.isInstance(C);if(y){C.headers[g.INVOCATION_ID_HEADER]=(0,p.v4)()}while(true){try{if(y){C.headers[g.REQUEST_HEADER]=`attempt=${d+1}; max=${c}`}const{response:i,output:l}=await s(a);A.recordSuccess(r);l.$metadata.attempts=d+1;l.$metadata.totalRetryDelay=h;return{response:i,output:l}}catch(s){const a=G(s);l=B(s);if(y&&(0,M.isStreamingPayload)(C)){(i.logger instanceof L.NoOpLogger?console:i.logger)?.warn("An error was encountered in a non-retryable streaming request.");throw l}try{r=await A.refreshRetryTokenForRetry(r,a)}catch(r){if(!l.$metadata){l.$metadata={}}l.$metadata.attempts=d+1;l.$metadata.totalRetryDelay=h;throw l}d=r.getRetryCount();const c=r.getRetryDelay();h+=c;await new Promise((r=>setTimeout(r,c)))}}}else{A=A;if(A?.mode)i.userAgent=[...i.userAgent||[],["cfg/retry-mode",A.mode]];return A.retry(s,a)}}),"retryMiddleware");var H=__name((r=>typeof r.acquireInitialRetryToken!=="undefined"&&typeof r.refreshRetryTokenForRetry!=="undefined"&&typeof r.recordSuccess!=="undefined"),"isRetryStrategyV2");var G=__name((r=>{const s={error:r,errorType:q(r)};const i=z(r.$response);if(i){s.retryAfterHint=i}return s}),"getRetryErrorInfo");var q=__name((r=>{if((0,y.isThrottlingError)(r))return"THROTTLING";if((0,y.isTransientError)(r))return"TRANSIENT";if((0,y.isServerError)(r))return"SERVER_ERROR";return"CLIENT_ERROR"}),"getRetryErrorType");var V={name:"retryMiddleware",tags:["RETRY"],step:"finalizeRequest",priority:"high",override:true};var j=__name((r=>({applyToStack:s=>{s.add(U(r),V)}})),"getRetryPlugin");var z=__name((r=>{if(!u.HttpResponse.isInstance(r))return;const s=Object.keys(r.headers).find((r=>r.toLowerCase()==="retry-after"));if(!s)return;const i=r.headers[s];const a=Number(i);if(!Number.isNaN(a))return new Date(a*1e3);const A=new Date(i);return A}),"getRetryAfterHint");0&&0},18977:(r,s,i)=>{"use strict";Object.defineProperty(s,"__esModule",{value:true});s.isStreamingPayload=void 0;const a=i(12781);const isStreamingPayload=r=>(r===null||r===void 0?void 0:r.body)instanceof a.Readable||typeof ReadableStream!=="undefined"&&(r===null||r===void 0?void 0:r.body)instanceof ReadableStream;s.isStreamingPayload=isStreamingPayload},7761:(r,s,i)=>{"use strict";Object.defineProperty(s,"__esModule",{value:true});Object.defineProperty(s,"NIL",{enumerable:true,get:function(){return d.default}});Object.defineProperty(s,"parse",{enumerable:true,get:function(){return h.default}});Object.defineProperty(s,"stringify",{enumerable:true,get:function(){return g.default}});Object.defineProperty(s,"v1",{enumerable:true,get:function(){return a.default}});Object.defineProperty(s,"v3",{enumerable:true,get:function(){return A.default}});Object.defineProperty(s,"v4",{enumerable:true,get:function(){return c.default}});Object.defineProperty(s,"v5",{enumerable:true,get:function(){return l.default}});Object.defineProperty(s,"validate",{enumerable:true,get:function(){return p.default}});Object.defineProperty(s,"version",{enumerable:true,get:function(){return u.default}});var a=_interopRequireDefault(i(36310));var A=_interopRequireDefault(i(9465));var c=_interopRequireDefault(i(86001));var l=_interopRequireDefault(i(38310));var d=_interopRequireDefault(i(3436));var u=_interopRequireDefault(i(17780));var p=_interopRequireDefault(i(66992));var g=_interopRequireDefault(i(79618));var h=_interopRequireDefault(i(40086));function _interopRequireDefault(r){return r&&r.__esModule?r:{default:r}}},11380:(r,s,i)=>{"use strict";Object.defineProperty(s,"__esModule",{value:true});s["default"]=void 0;var a=_interopRequireDefault(i(6113));function _interopRequireDefault(r){return r&&r.__esModule?r:{default:r}}function md5(r){if(Array.isArray(r)){r=Buffer.from(r)}else if(typeof r==="string"){r=Buffer.from(r,"utf8")}return a.default.createHash("md5").update(r).digest()}var A=md5;s["default"]=A},34672:(r,s,i)=>{"use strict";Object.defineProperty(s,"__esModule",{value:true});s["default"]=void 0;var a=_interopRequireDefault(i(6113));function _interopRequireDefault(r){return r&&r.__esModule?r:{default:r}}var A={randomUUID:a.default.randomUUID};s["default"]=A},3436:(r,s)=>{"use strict";Object.defineProperty(s,"__esModule",{value:true});s["default"]=void 0;var i="00000000-0000-0000-0000-000000000000";s["default"]=i},40086:(r,s,i)=>{"use strict";Object.defineProperty(s,"__esModule",{value:true});s["default"]=void 0;var a=_interopRequireDefault(i(66992));function _interopRequireDefault(r){return r&&r.__esModule?r:{default:r}}function parse(r){if(!(0,a.default)(r)){throw TypeError("Invalid UUID")}let s;const i=new Uint8Array(16);i[0]=(s=parseInt(r.slice(0,8),16))>>>24;i[1]=s>>>16&255;i[2]=s>>>8&255;i[3]=s&255;i[4]=(s=parseInt(r.slice(9,13),16))>>>8;i[5]=s&255;i[6]=(s=parseInt(r.slice(14,18),16))>>>8;i[7]=s&255;i[8]=(s=parseInt(r.slice(19,23),16))>>>8;i[9]=s&255;i[10]=(s=parseInt(r.slice(24,36),16))/1099511627776&255;i[11]=s/4294967296&255;i[12]=s>>>24&255;i[13]=s>>>16&255;i[14]=s>>>8&255;i[15]=s&255;return i}var A=parse;s["default"]=A},3194:(r,s)=>{"use strict";Object.defineProperty(s,"__esModule",{value:true});s["default"]=void 0;var i=/^(?:[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;s["default"]=i},68136:(r,s,i)=>{"use strict";Object.defineProperty(s,"__esModule",{value:true});s["default"]=rng;var a=_interopRequireDefault(i(6113));function _interopRequireDefault(r){return r&&r.__esModule?r:{default:r}}const A=new Uint8Array(256);let c=A.length;function rng(){if(c>A.length-16){a.default.randomFillSync(A);c=0}return A.slice(c,c+=16)}},46679:(r,s,i)=>{"use strict";Object.defineProperty(s,"__esModule",{value:true});s["default"]=void 0;var a=_interopRequireDefault(i(6113));function _interopRequireDefault(r){return r&&r.__esModule?r:{default:r}}function sha1(r){if(Array.isArray(r)){r=Buffer.from(r)}else if(typeof r==="string"){r=Buffer.from(r,"utf8")}return a.default.createHash("sha1").update(r).digest()}var A=sha1;s["default"]=A},79618:(r,s,i)=>{"use strict";Object.defineProperty(s,"__esModule",{value:true});s["default"]=void 0;s.unsafeStringify=unsafeStringify;var a=_interopRequireDefault(i(66992));function _interopRequireDefault(r){return r&&r.__esModule?r:{default:r}}const A=[];for(let r=0;r<256;++r){A.push((r+256).toString(16).slice(1))}function unsafeStringify(r,s=0){return A[r[s+0]]+A[r[s+1]]+A[r[s+2]]+A[r[s+3]]+"-"+A[r[s+4]]+A[r[s+5]]+"-"+A[r[s+6]]+A[r[s+7]]+"-"+A[r[s+8]]+A[r[s+9]]+"-"+A[r[s+10]]+A[r[s+11]]+A[r[s+12]]+A[r[s+13]]+A[r[s+14]]+A[r[s+15]]}function stringify(r,s=0){const i=unsafeStringify(r,s);if(!(0,a.default)(i)){throw TypeError("Stringified UUID is invalid")}return i}var c=stringify;s["default"]=c},36310:(r,s,i)=>{"use strict";Object.defineProperty(s,"__esModule",{value:true});s["default"]=void 0;var a=_interopRequireDefault(i(68136));var A=i(79618);function _interopRequireDefault(r){return r&&r.__esModule?r:{default:r}}let c;let l;let d=0;let u=0;function v1(r,s,i){let p=s&&i||0;const g=s||new Array(16);r=r||{};let h=r.node||c;let C=r.clockseq!==undefined?r.clockseq:l;if(h==null||C==null){const s=r.random||(r.rng||a.default)();if(h==null){h=c=[s[0]|1,s[1],s[2],s[3],s[4],s[5]]}if(C==null){C=l=(s[6]<<8|s[7])&16383}}let y=r.msecs!==undefined?r.msecs:Date.now();let I=r.nsecs!==undefined?r.nsecs:u+1;const B=y-d+(I-u)/1e4;if(B<0&&r.clockseq===undefined){C=C+1&16383}if((B<0||y>d)&&r.nsecs===undefined){I=0}if(I>=1e4){throw new Error("uuid.v1(): Can't create more than 10M uuids/sec")}d=y;u=I;l=C;y+=122192928e5;const b=((y&268435455)*1e4+I)%4294967296;g[p++]=b>>>24&255;g[p++]=b>>>16&255;g[p++]=b>>>8&255;g[p++]=b&255;const Q=y/4294967296*1e4&268435455;g[p++]=Q>>>8&255;g[p++]=Q&255;g[p++]=Q>>>24&15|16;g[p++]=Q>>>16&255;g[p++]=C>>>8|128;g[p++]=C&255;for(let r=0;r<6;++r){g[p+r]=h[r]}return s||(0,A.unsafeStringify)(g)}var p=v1;s["default"]=p},9465:(r,s,i)=>{"use strict";Object.defineProperty(s,"__esModule",{value:true});s["default"]=void 0;var a=_interopRequireDefault(i(2568));var A=_interopRequireDefault(i(11380));function _interopRequireDefault(r){return r&&r.__esModule?r:{default:r}}const c=(0,a.default)("v3",48,A.default);var l=c;s["default"]=l},2568:(r,s,i)=>{"use strict";Object.defineProperty(s,"__esModule",{value:true});s.URL=s.DNS=void 0;s["default"]=v35;var a=i(79618);var A=_interopRequireDefault(i(40086));function _interopRequireDefault(r){return r&&r.__esModule?r:{default:r}}function stringToBytes(r){r=unescape(encodeURIComponent(r));const s=[];for(let i=0;i{"use strict";Object.defineProperty(s,"__esModule",{value:true});s["default"]=void 0;var a=_interopRequireDefault(i(34672));var A=_interopRequireDefault(i(68136));var c=i(79618);function _interopRequireDefault(r){return r&&r.__esModule?r:{default:r}}function v4(r,s,i){if(a.default.randomUUID&&!s&&!r){return a.default.randomUUID()}r=r||{};const l=r.random||(r.rng||A.default)();l[6]=l[6]&15|64;l[8]=l[8]&63|128;if(s){i=i||0;for(let r=0;r<16;++r){s[i+r]=l[r]}return s}return(0,c.unsafeStringify)(l)}var l=v4;s["default"]=l},38310:(r,s,i)=>{"use strict";Object.defineProperty(s,"__esModule",{value:true});s["default"]=void 0;var a=_interopRequireDefault(i(2568));var A=_interopRequireDefault(i(46679));function _interopRequireDefault(r){return r&&r.__esModule?r:{default:r}}const c=(0,a.default)("v5",80,A.default);var l=c;s["default"]=l},66992:(r,s,i)=>{"use strict";Object.defineProperty(s,"__esModule",{value:true});s["default"]=void 0;var a=_interopRequireDefault(i(3194));function _interopRequireDefault(r){return r&&r.__esModule?r:{default:r}}function validate(r){return typeof r==="string"&&a.default.test(r)}var A=validate;s["default"]=A},17780:(r,s,i)=>{"use strict";Object.defineProperty(s,"__esModule",{value:true});s["default"]=void 0;var a=_interopRequireDefault(i(66992));function _interopRequireDefault(r){return r&&r.__esModule?r:{default:r}}function version(r){if(!(0,a.default)(r)){throw TypeError("Invalid UUID")}return parseInt(r.slice(14,15),16)}var A=version;s["default"]=A},81238:r=>{var s=Object.defineProperty;var i=Object.getOwnPropertyDescriptor;var a=Object.getOwnPropertyNames;var A=Object.prototype.hasOwnProperty;var __name=(r,i)=>s(r,"name",{value:i,configurable:true});var __export=(r,i)=>{for(var a in i)s(r,a,{get:i[a],enumerable:true})};var __copyProps=(r,c,l,d)=>{if(c&&typeof c==="object"||typeof c==="function"){for(let u of a(c))if(!A.call(r,u)&&u!==l)s(r,u,{get:()=>c[u],enumerable:!(d=i(c,u))||d.enumerable})}return r};var __toCommonJS=r=>__copyProps(s({},"__esModule",{value:true}),r);var c={};__export(c,{deserializerMiddleware:()=>l,deserializerMiddlewareOption:()=>u,getSerdePlugin:()=>getSerdePlugin,serializerMiddleware:()=>d,serializerMiddlewareOption:()=>p});r.exports=__toCommonJS(c);var l=__name(((r,s)=>(i,a)=>async A=>{const{response:c}=await i(A);try{const i=await s(c,r);return{response:c,output:i}}catch(r){Object.defineProperty(r,"$response",{value:c});if(!("$metadata"in r)){const s=`Deserialization error: to see the raw response, inspect the hidden field {error}.$response on this object.`;try{r.message+="\n "+s}catch(r){if(!a.logger||a.logger?.constructor?.name==="NoOpLogger"){console.warn(s)}else{a.logger?.warn?.(s)}}if(typeof r.$responseBodyText!=="undefined"){if(r.$response){r.$response.body=r.$responseBodyText}}}throw r}}),"deserializerMiddleware");var d=__name(((r,s)=>(i,a)=>async A=>{const c=a.endpointV2?.url&&r.urlParser?async()=>r.urlParser(a.endpointV2.url):r.endpoint;if(!c){throw new Error("No valid endpoint provider available.")}const l=await s(A.input,{...r,endpoint:c});return i({...A,request:l})}),"serializerMiddleware");var u={name:"deserializerMiddleware",step:"deserialize",tags:["DESERIALIZER"],override:true};var p={name:"serializerMiddleware",step:"serialize",tags:["SERIALIZER"],override:true};function getSerdePlugin(r,s,i){return{applyToStack:a=>{a.add(l(r,i),u);a.add(d(r,s),p)}}}__name(getSerdePlugin,"getSerdePlugin");0&&0},97911:r=>{var s=Object.defineProperty;var i=Object.getOwnPropertyDescriptor;var a=Object.getOwnPropertyNames;var A=Object.prototype.hasOwnProperty;var __name=(r,i)=>s(r,"name",{value:i,configurable:true});var __export=(r,i)=>{for(var a in i)s(r,a,{get:i[a],enumerable:true})};var __copyProps=(r,c,l,d)=>{if(c&&typeof c==="object"||typeof c==="function"){for(let u of a(c))if(!A.call(r,u)&&u!==l)s(r,u,{get:()=>c[u],enumerable:!(d=i(c,u))||d.enumerable})}return r};var __toCommonJS=r=>__copyProps(s({},"__esModule",{value:true}),r);var c={};__export(c,{constructStack:()=>u});r.exports=__toCommonJS(c);var l=__name(((r,s)=>{const i=[];if(r){i.push(r)}if(s){for(const r of s){i.push(r)}}return i}),"getAllAliases");var d=__name(((r,s)=>`${r||"anonymous"}${s&&s.length>0?` (a.k.a. ${s.join(",")})`:""}`),"getMiddlewareNameWithAliases");var u=__name((()=>{let r=[];let s=[];let i=false;const a=new Set;const A=__name((r=>r.sort(((r,s)=>p[s.step]-p[r.step]||g[s.priority||"normal"]-g[r.priority||"normal"]))),"sort");const c=__name((i=>{let A=false;const c=__name((r=>{const s=l(r.name,r.aliases);if(s.includes(i)){A=true;for(const r of s){a.delete(r)}return false}return true}),"filterCb");r=r.filter(c);s=s.filter(c);return A}),"removeByName");const h=__name((i=>{let A=false;const c=__name((r=>{if(r.middleware===i){A=true;for(const s of l(r.name,r.aliases)){a.delete(s)}return false}return true}),"filterCb");r=r.filter(c);s=s.filter(c);return A}),"removeByReference");const C=__name((i=>{r.forEach((r=>{i.add(r.middleware,{...r})}));s.forEach((r=>{i.addRelativeTo(r.middleware,{...r})}));i.identifyOnResolve?.(B.identifyOnResolve());return i}),"cloneTo");const y=__name((r=>{const s=[];r.before.forEach((r=>{if(r.before.length===0&&r.after.length===0){s.push(r)}else{s.push(...y(r))}}));s.push(r);r.after.reverse().forEach((r=>{if(r.before.length===0&&r.after.length===0){s.push(r)}else{s.push(...y(r))}}));return s}),"expandRelativeMiddlewareList");const I=__name(((i=false)=>{const a=[];const c=[];const u={};r.forEach((r=>{const s={...r,before:[],after:[]};for(const r of l(s.name,s.aliases)){u[r]=s}a.push(s)}));s.forEach((r=>{const s={...r,before:[],after:[]};for(const r of l(s.name,s.aliases)){u[r]=s}c.push(s)}));c.forEach((r=>{if(r.toMiddleware){const s=u[r.toMiddleware];if(s===void 0){if(i){return}throw new Error(`${r.toMiddleware} is not found when adding ${d(r.name,r.aliases)} middleware ${r.relation} ${r.toMiddleware}`)}if(r.relation==="after"){s.after.push(r)}if(r.relation==="before"){s.before.push(r)}}}));const p=A(a).map(y).reduce(((r,s)=>{r.push(...s);return r}),[]);return p}),"getMiddlewareList");const B={add:(s,i={})=>{const{name:A,override:c,aliases:u}=i;const p={step:"initialize",priority:"normal",middleware:s,...i};const g=l(A,u);if(g.length>0){if(g.some((r=>a.has(r)))){if(!c)throw new Error(`Duplicate middleware name '${d(A,u)}'`);for(const s of g){const i=r.findIndex((r=>r.name===s||r.aliases?.some((r=>r===s))));if(i===-1){continue}const a=r[i];if(a.step!==p.step||p.priority!==a.priority){throw new Error(`"${d(a.name,a.aliases)}" middleware with ${a.priority} priority in ${a.step} step cannot be overridden by "${d(A,u)}" middleware with ${p.priority} priority in ${p.step} step.`)}r.splice(i,1)}}for(const r of g){a.add(r)}}r.push(p)},addRelativeTo:(r,i)=>{const{name:A,override:c,aliases:u}=i;const p={middleware:r,...i};const g=l(A,u);if(g.length>0){if(g.some((r=>a.has(r)))){if(!c)throw new Error(`Duplicate middleware name '${d(A,u)}'`);for(const r of g){const i=s.findIndex((s=>s.name===r||s.aliases?.some((s=>s===r))));if(i===-1){continue}const a=s[i];if(a.toMiddleware!==p.toMiddleware||a.relation!==p.relation){throw new Error(`"${d(a.name,a.aliases)}" middleware ${a.relation} "${a.toMiddleware}" middleware cannot be overridden by "${d(A,u)}" middleware ${p.relation} "${p.toMiddleware}" middleware.`)}s.splice(i,1)}}for(const r of g){a.add(r)}}s.push(p)},clone:()=>C(u()),use:r=>{r.applyToStack(B)},remove:r=>{if(typeof r==="string")return c(r);else return h(r)},removeByTag:i=>{let A=false;const c=__name((r=>{const{tags:s,name:c,aliases:d}=r;if(s&&s.includes(i)){const r=l(c,d);for(const s of r){a.delete(s)}A=true;return false}return true}),"filterCb");r=r.filter(c);s=s.filter(c);return A},concat:r=>{const s=C(u());s.use(r);s.identifyOnResolve(i||s.identifyOnResolve()||(r.identifyOnResolve?.()??false));return s},applyToStack:C,identify:()=>I(true).map((r=>{const s=r.step??r.relation+" "+r.toMiddleware;return d(r.name,r.aliases)+" - "+s})),identifyOnResolve(r){if(typeof r==="boolean")i=r;return i},resolve:(r,s)=>{for(const i of I().map((r=>r.middleware)).reverse()){r=i(r,s)}if(i){console.log(B.identify())}return r}};return B}),"constructStack");var p={initialize:5,serialize:4,build:3,finalizeRequest:2,deserialize:1};var g={high:3,normal:2,low:1};0&&0},33461:(r,s,i)=>{var a=Object.defineProperty;var A=Object.getOwnPropertyDescriptor;var c=Object.getOwnPropertyNames;var l=Object.prototype.hasOwnProperty;var __name=(r,s)=>a(r,"name",{value:s,configurable:true});var __export=(r,s)=>{for(var i in s)a(r,i,{get:s[i],enumerable:true})};var __copyProps=(r,s,i,d)=>{if(s&&typeof s==="object"||typeof s==="function"){for(let u of c(s))if(!l.call(r,u)&&u!==i)a(r,u,{get:()=>s[u],enumerable:!(d=A(s,u))||d.enumerable})}return r};var __toCommonJS=r=>__copyProps(a({},"__esModule",{value:true}),r);var d={};__export(d,{loadConfig:()=>I});r.exports=__toCommonJS(d);var u=i(79721);function getSelectorName(r){try{const s=new Set(Array.from(r.match(/([A-Z_]){3,}/g)??[]));s.delete("CONFIG");s.delete("CONFIG_PREFIX_SEPARATOR");s.delete("ENV");return[...s].join(", ")}catch(s){return r}}__name(getSelectorName,"getSelectorName");var p=__name(((r,s)=>async()=>{try{const s=r(process.env);if(s===void 0){throw new Error}return s}catch(i){throw new u.CredentialsProviderError(i.message||`Not found in ENV: ${getSelectorName(r.toString())}`,{logger:s})}}),"fromEnv");var g=i(43507);var h=__name(((r,{preferredFile:s="config",...i}={})=>async()=>{const a=(0,g.getProfileName)(i);const{configFile:A,credentialsFile:c}=await(0,g.loadSharedConfigFiles)(i);const l=c[a]||{};const d=A[a]||{};const p=s==="config"?{...l,...d}:{...d,...l};try{const i=s==="config"?A:c;const a=r(p,i);if(a===void 0){throw new Error}return a}catch(s){throw new u.CredentialsProviderError(s.message||`Not found in config files w/ profile [${a}]: ${getSelectorName(r.toString())}`,{logger:i.logger})}}),"fromSharedConfigFiles");var C=__name((r=>typeof r==="function"),"isFunction");var y=__name((r=>C(r)?async()=>await r():(0,u.fromStatic)(r)),"fromStatic");var I=__name((({environmentVariableSelector:r,configFileSelector:s,default:i},a={})=>(0,u.memoize)((0,u.chain)(p(r),h(s,a),y(i)))),"loadConfig");0&&0},20258:(r,s,i)=>{var a=Object.create;var A=Object.defineProperty;var c=Object.getOwnPropertyDescriptor;var l=Object.getOwnPropertyNames;var d=Object.getPrototypeOf;var u=Object.prototype.hasOwnProperty;var __name=(r,s)=>A(r,"name",{value:s,configurable:true});var __export=(r,s)=>{for(var i in s)A(r,i,{get:s[i],enumerable:true})};var __copyProps=(r,s,i,a)=>{if(s&&typeof s==="object"||typeof s==="function"){for(let d of l(s))if(!u.call(r,d)&&d!==i)A(r,d,{get:()=>s[d],enumerable:!(a=c(s,d))||a.enumerable})}return r};var __toESM=(r,s,i)=>(i=r!=null?a(d(r)):{},__copyProps(s||!r||!r.__esModule?A(i,"default",{value:r,enumerable:true}):i,r));var __toCommonJS=r=>__copyProps(A({},"__esModule",{value:true}),r);var p={};__export(p,{DEFAULT_REQUEST_TIMEOUT:()=>k,NodeHttp2Handler:()=>M,NodeHttpHandler:()=>T,streamCollector:()=>H});r.exports=__toCommonJS(p);var g=i(64418);var h=i(68031);var C=i(13685);var y=i(95687);var I=["ECONNRESET","EPIPE","ETIMEDOUT"];var B=__name((r=>{const s={};for(const i of Object.keys(r)){const a=r[i];s[i]=Array.isArray(a)?a.join(","):a}return s}),"getTransformedHeaders");var b={setTimeout:(r,s)=>setTimeout(r,s),clearTimeout:r=>clearTimeout(r)};var Q=1e3;var w=__name(((r,s,i=0)=>{if(!i){return-1}const a=__name((a=>{const A=b.setTimeout((()=>{r.destroy();s(Object.assign(new Error(`Socket timed out without establishing a connection within ${i} ms`),{name:"TimeoutError"}))}),i-a);const c=__name((r=>{if(r?.connecting){r.on("connect",(()=>{b.clearTimeout(A)}))}else{b.clearTimeout(A)}}),"doWithSocket");if(r.socket){c(r.socket)}else{r.on("socket",c)}}),"registerTimeout");if(i<2e3){a(0);return 0}return b.setTimeout(a.bind(null,Q),Q)}),"setConnectionTimeout");var v=3e3;var S=__name(((r,{keepAlive:s,keepAliveMsecs:i},a=v)=>{if(s!==true){return-1}const A=__name((()=>{if(r.socket){r.socket.setKeepAlive(s,i||0)}else{r.on("socket",(r=>{r.setKeepAlive(s,i||0)}))}}),"registerListener");if(a===0){A();return 0}return b.setTimeout(A,a)}),"setSocketKeepAlive");var R=3e3;var N=__name(((r,s,i=k)=>{const a=__name((a=>{const A=i-a;const c=__name((()=>{r.destroy();s(Object.assign(new Error(`Connection timed out after ${i} ms`),{name:"TimeoutError"}))}),"onTimeout");if(r.socket){r.socket.setTimeout(A,c);r.on("close",(()=>r.socket?.removeListener("timeout",c)))}else{r.setTimeout(A,c)}}),"registerTimeout");if(0{c=Number(b.setTimeout((()=>r(true)),Math.max(D,i)))})),new Promise((s=>{r.on("continue",(()=>{b.clearTimeout(c);s(true)}));r.on("response",(()=>{b.clearTimeout(c);s(false)}));r.on("error",(()=>{b.clearTimeout(c);s(false)}))}))])}if(l){writeBody(r,s.body)}}__name(writeRequestBody,"writeRequestBody");function writeBody(r,s){if(s instanceof x.Readable){s.pipe(r);return}if(s){if(Buffer.isBuffer(s)||typeof s==="string"){r.end(s);return}const i=s;if(typeof i==="object"&&i.buffer&&typeof i.byteOffset==="number"&&typeof i.byteLength==="number"){r.end(Buffer.from(i.buffer,i.byteOffset,i.byteLength));return}r.end(Buffer.from(s));return}r.end()}__name(writeBody,"writeBody");var k=0;var T=class _NodeHttpHandler{constructor(r){this.socketWarningTimestamp=0;this.metadata={handlerProtocol:"http/1.1"};this.configProvider=new Promise(((s,i)=>{if(typeof r==="function"){r().then((r=>{s(this.resolveDefaultConfig(r))})).catch(i)}else{s(this.resolveDefaultConfig(r))}}))}static{__name(this,"NodeHttpHandler")}static create(r){if(typeof r?.handle==="function"){return r}return new _NodeHttpHandler(r)}static checkSocketUsage(r,s,i=console){const{sockets:a,requests:A,maxSockets:c}=r;if(typeof c!=="number"||c===Infinity){return s}const l=15e3;if(Date.now()-l=c&&l>=2*c){i?.warn?.(`@smithy/node-http-handler:WARN - socket usage at capacity=${s} and ${l} 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 s}resolveDefaultConfig(r){const{requestTimeout:s,connectionTimeout:i,socketTimeout:a,socketAcquisitionWarningTimeout:A,httpAgent:c,httpsAgent:l}=r||{};const d=true;const u=50;return{connectionTimeout:i,requestTimeout:s??a,socketAcquisitionWarningTimeout:A,httpAgent:(()=>{if(c instanceof C.Agent||typeof c?.destroy==="function"){return c}return new C.Agent({keepAlive:d,maxSockets:u,...c})})(),httpsAgent:(()=>{if(l instanceof y.Agent||typeof l?.destroy==="function"){return l}return new y.Agent({keepAlive:d,maxSockets:u,...l})})(),logger:console}}destroy(){this.config?.httpAgent?.destroy();this.config?.httpsAgent?.destroy()}async handle(r,{abortSignal:s}={}){if(!this.config){this.config=await this.configProvider}return new Promise(((i,a)=>{let A=void 0;const c=[];const l=__name((async r=>{await A;c.forEach(b.clearTimeout);i(r)}),"resolve");const d=__name((async r=>{await A;c.forEach(b.clearTimeout);a(r)}),"reject");if(!this.config){throw new Error("Node HTTP request handler config is not resolved")}if(s?.aborted){const r=new Error("Request aborted");r.name="AbortError";d(r);return}const u=r.protocol==="https:";const p=u?this.config.httpsAgent:this.config.httpAgent;c.push(b.setTimeout((()=>{this.socketWarningTimestamp=_NodeHttpHandler.checkSocketUsage(p,this.socketWarningTimestamp,this.config.logger)}),this.config.socketAcquisitionWarningTimeout??(this.config.requestTimeout??2e3)+(this.config.connectionTimeout??1e3)));const Q=(0,h.buildQueryString)(r.query||{});let v=void 0;if(r.username!=null||r.password!=null){const s=r.username??"";const i=r.password??"";v=`${s}:${i}`}let R=r.path;if(Q){R+=`?${Q}`}if(r.fragment){R+=`#${r.fragment}`}let x=r.hostname??"";if(x[0]==="["&&x.endsWith("]")){x=r.hostname.slice(1,-1)}else{x=r.hostname}const D={headers:r.headers,host:x,method:r.method,path:R,port:r.port,agent:p,auth:v};const k=u?y.request:C.request;const T=k(D,(r=>{const s=new g.HttpResponse({statusCode:r.statusCode||-1,reason:r.statusMessage,headers:B(r.headers),body:r});l({response:s})}));T.on("error",(r=>{if(I.includes(r.code)){d(Object.assign(r,{name:"TimeoutError"}))}else{d(r)}}));if(s){const r=__name((()=>{T.destroy();const r=new Error("Request aborted");r.name="AbortError";d(r)}),"onAbort");if(typeof s.addEventListener==="function"){const i=s;i.addEventListener("abort",r,{once:true});T.once("close",(()=>i.removeEventListener("abort",r)))}else{s.onabort=r}}c.push(w(T,d,this.config.connectionTimeout));c.push(N(T,d,this.config.requestTimeout));const _=D.agent;if(typeof _==="object"&&"keepAlive"in _){c.push(S(T,{keepAlive:_.keepAlive,keepAliveMsecs:_.keepAliveMsecs}))}A=writeRequestBody(T,r,this.config.requestTimeout).catch((r=>{c.forEach(b.clearTimeout);return a(r)}))}))}updateHttpClientConfig(r,s){this.config=void 0;this.configProvider=this.configProvider.then((i=>({...i,[r]:s})))}httpHandlerConfigs(){return this.config??{}}};var _=i(85158);var P=__toESM(i(85158));var O=class{constructor(r){this.sessions=[];this.sessions=r??[]}static{__name(this,"NodeHttp2ConnectionPool")}poll(){if(this.sessions.length>0){return this.sessions.shift()}}offerLast(r){this.sessions.push(r)}contains(r){return this.sessions.includes(r)}remove(r){this.sessions=this.sessions.filter((s=>s!==r))}[Symbol.iterator](){return this.sessions[Symbol.iterator]()}destroy(r){for(const s of this.sessions){if(s===r){if(!s.destroyed){s.destroy()}}}}};var L=class{constructor(r){this.sessionCache=new Map;this.config=r;if(this.config.maxConcurrency&&this.config.maxConcurrency<=0){throw new RangeError("maxConcurrency must be greater than zero.")}}static{__name(this,"NodeHttp2ConnectionManager")}lease(r,s){const i=this.getUrlString(r);const a=this.sessionCache.get(i);if(a){const r=a.poll();if(r&&!this.config.disableConcurrency){return r}}const A=P.default.connect(i);if(this.config.maxConcurrency){A.settings({maxConcurrentStreams:this.config.maxConcurrency},(s=>{if(s){throw new Error("Fail to set maxConcurrentStreams to "+this.config.maxConcurrency+"when creating new session for "+r.destination.toString())}}))}A.unref();const c=__name((()=>{A.destroy();this.deleteSession(i,A)}),"destroySessionCb");A.on("goaway",c);A.on("error",c);A.on("frameError",c);A.on("close",(()=>this.deleteSession(i,A)));if(s.requestTimeout){A.setTimeout(s.requestTimeout,c)}const l=this.sessionCache.get(i)||new O;l.offerLast(A);this.sessionCache.set(i,l);return A}deleteSession(r,s){const i=this.sessionCache.get(r);if(!i){return}if(!i.contains(s)){return}i.remove(s);this.sessionCache.set(r,i)}release(r,s){const i=this.getUrlString(r);this.sessionCache.get(i)?.offerLast(s)}destroy(){for(const[r,s]of this.sessionCache){for(const r of s){if(!r.destroyed){r.destroy()}s.remove(r)}this.sessionCache.delete(r)}}setMaxConcurrentStreams(r){if(r&&r<=0){throw new RangeError("maxConcurrentStreams must be greater than zero.")}this.config.maxConcurrency=r}setDisableConcurrentStreams(r){this.config.disableConcurrency=r}getUrlString(r){return r.destination.toString()}};var M=class _NodeHttp2Handler{constructor(r){this.metadata={handlerProtocol:"h2"};this.connectionManager=new L({});this.configProvider=new Promise(((s,i)=>{if(typeof r==="function"){r().then((r=>{s(r||{})})).catch(i)}else{s(r||{})}}))}static{__name(this,"NodeHttp2Handler")}static create(r){if(typeof r?.handle==="function"){return r}return new _NodeHttp2Handler(r)}destroy(){this.connectionManager.destroy()}async handle(r,{abortSignal:s}={}){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:i,disableConcurrentStreams:a}=this.config;return new Promise(((A,c)=>{let l=false;let d=void 0;const u=__name((async r=>{await d;A(r)}),"resolve");const p=__name((async r=>{await d;c(r)}),"reject");if(s?.aborted){l=true;const r=new Error("Request aborted");r.name="AbortError";p(r);return}const{hostname:C,method:y,port:I,protocol:b,query:Q}=r;let w="";if(r.username!=null||r.password!=null){const s=r.username??"";const i=r.password??"";w=`${s}:${i}@`}const v=`${b}//${w}${C}${I?`:${I}`:""}`;const S={destination:new URL(v)};const R=this.connectionManager.lease(S,{requestTimeout:this.config?.sessionTimeout,disableConcurrentStreams:a||false});const N=__name((r=>{if(a){this.destroySession(R)}l=true;p(r)}),"rejectWithDestroy");const x=(0,h.buildQueryString)(Q||{});let D=r.path;if(x){D+=`?${x}`}if(r.fragment){D+=`#${r.fragment}`}const k=R.request({...r.headers,[_.constants.HTTP2_HEADER_PATH]:D,[_.constants.HTTP2_HEADER_METHOD]:y});R.ref();k.on("response",(r=>{const s=new g.HttpResponse({statusCode:r[":status"]||-1,headers:B(r),body:k});l=true;u({response:s});if(a){R.close();this.connectionManager.deleteSession(v,R)}}));if(i){k.setTimeout(i,(()=>{k.close();const r=new Error(`Stream timed out because of no activity for ${i} ms`);r.name="TimeoutError";N(r)}))}if(s){const r=__name((()=>{k.close();const r=new Error("Request aborted");r.name="AbortError";N(r)}),"onAbort");if(typeof s.addEventListener==="function"){const i=s;i.addEventListener("abort",r,{once:true});k.once("close",(()=>i.removeEventListener("abort",r)))}else{s.onabort=r}}k.on("frameError",((r,s,i)=>{N(new Error(`Frame type id ${r} in stream id ${i} has failed with code ${s}.`))}));k.on("error",N);k.on("aborted",(()=>{N(new Error(`HTTP/2 stream is abnormally aborted in mid-communication with result code ${k.rstCode}.`))}));k.on("close",(()=>{R.unref();if(a){R.destroy()}if(!l){N(new Error("Unexpected error: http2 request did not get a response"))}}));d=writeRequestBody(k,r,i)}))}updateHttpClientConfig(r,s){this.config=void 0;this.configProvider=this.configProvider.then((i=>({...i,[r]:s})))}httpHandlerConfigs(){return this.config??{}}destroySession(r){if(!r.destroyed){r.destroy()}}};var U=class extends x.Writable{constructor(){super(...arguments);this.bufferedBytes=[]}static{__name(this,"Collector")}_write(r,s,i){this.bufferedBytes.push(r);i()}};var H=__name((r=>{if(G(r)){return collectReadableStream(r)}return new Promise(((s,i)=>{const a=new U;r.pipe(a);r.on("error",(r=>{a.end();i(r)}));a.on("error",i);a.on("finish",(function(){const r=new Uint8Array(Buffer.concat(this.bufferedBytes));s(r)}))}))}),"streamCollector");var G=__name((r=>typeof ReadableStream==="function"&&r instanceof ReadableStream),"isReadableStreamInstance");async function collectReadableStream(r){const s=[];const i=r.getReader();let a=false;let A=0;while(!a){const{done:r,value:c}=await i.read();if(c){s.push(c);A+=c.length}a=r}const c=new Uint8Array(A);let l=0;for(const r of s){c.set(r,l);l+=r.length}return c}__name(collectReadableStream,"collectReadableStream");0&&0},79721:r=>{var s=Object.defineProperty;var i=Object.getOwnPropertyDescriptor;var a=Object.getOwnPropertyNames;var A=Object.prototype.hasOwnProperty;var __name=(r,i)=>s(r,"name",{value:i,configurable:true});var __export=(r,i)=>{for(var a in i)s(r,a,{get:i[a],enumerable:true})};var __copyProps=(r,c,l,d)=>{if(c&&typeof c==="object"||typeof c==="function"){for(let u of a(c))if(!A.call(r,u)&&u!==l)s(r,u,{get:()=>c[u],enumerable:!(d=i(c,u))||d.enumerable})}return r};var __toCommonJS=r=>__copyProps(s({},"__esModule",{value:true}),r);var c={};__export(c,{CredentialsProviderError:()=>d,ProviderError:()=>l,TokenProviderError:()=>u,chain:()=>p,fromStatic:()=>g,memoize:()=>h});r.exports=__toCommonJS(c);var l=class _ProviderError extends Error{constructor(r,s=true){let i;let a=true;if(typeof s==="boolean"){i=void 0;a=s}else if(s!=null&&typeof s==="object"){i=s.logger;a=s.tryNextLink??true}super(r);this.name="ProviderError";this.tryNextLink=a;Object.setPrototypeOf(this,_ProviderError.prototype);i?.debug?.(`@smithy/property-provider ${a?"->":"(!)"} ${r}`)}static{__name(this,"ProviderError")}static from(r,s=true){return Object.assign(new this(r.message,s),r)}};var d=class _CredentialsProviderError extends l{constructor(r,s=true){super(r,s);this.name="CredentialsProviderError";Object.setPrototypeOf(this,_CredentialsProviderError.prototype)}static{__name(this,"CredentialsProviderError")}};var u=class _TokenProviderError extends l{constructor(r,s=true){super(r,s);this.name="TokenProviderError";Object.setPrototypeOf(this,_TokenProviderError.prototype)}static{__name(this,"TokenProviderError")}};var p=__name(((...r)=>async()=>{if(r.length===0){throw new l("No providers in chain")}let s;for(const i of r){try{const r=await i();return r}catch(r){s=r;if(r?.tryNextLink){continue}throw r}}throw s}),"chain");var g=__name((r=>()=>Promise.resolve(r)),"fromStatic");var h=__name(((r,s,i)=>{let a;let A;let c;let l=false;const d=__name((async()=>{if(!A){A=r()}try{a=await A;c=true;l=false}finally{A=void 0}return a}),"coalesceProvider");if(s===void 0){return async r=>{if(!c||r?.forceRefresh){a=await d()}return a}}return async r=>{if(!c||r?.forceRefresh){a=await d()}if(l){return a}if(i&&!i(a)){l=true;return a}if(s(a)){await d();return a}return a}}),"memoize");0&&0},64418:(r,s,i)=>{var a=Object.defineProperty;var A=Object.getOwnPropertyDescriptor;var c=Object.getOwnPropertyNames;var l=Object.prototype.hasOwnProperty;var __name=(r,s)=>a(r,"name",{value:s,configurable:true});var __export=(r,s)=>{for(var i in s)a(r,i,{get:s[i],enumerable:true})};var __copyProps=(r,s,i,d)=>{if(s&&typeof s==="object"||typeof s==="function"){for(let u of c(s))if(!l.call(r,u)&&u!==i)a(r,u,{get:()=>s[u],enumerable:!(d=A(s,u))||d.enumerable})}return r};var __toCommonJS=r=>__copyProps(a({},"__esModule",{value:true}),r);var d={};__export(d,{Field:()=>h,Fields:()=>C,HttpRequest:()=>y,HttpResponse:()=>I,IHttpRequest:()=>g.HttpRequest,getHttpHandlerExtensionConfiguration:()=>u,isValidHostname:()=>isValidHostname,resolveHttpHandlerRuntimeConfig:()=>p});r.exports=__toCommonJS(d);var u=__name((r=>{let s=r.httpHandler;return{setHttpHandler(r){s=r},httpHandler(){return s},updateHttpClientConfig(r,i){s.updateHttpClientConfig(r,i)},httpHandlerConfigs(){return s.httpHandlerConfigs()}}}),"getHttpHandlerExtensionConfiguration");var p=__name((r=>({httpHandler:r.httpHandler()})),"resolveHttpHandlerRuntimeConfig");var g=i(55756);var h=class{static{__name(this,"Field")}constructor({name:r,kind:s=g.FieldPosition.HEADER,values:i=[]}){this.name=r;this.kind=s;this.values=i}add(r){this.values.push(r)}set(r){this.values=r}remove(r){this.values=this.values.filter((s=>s!==r))}toString(){return this.values.map((r=>r.includes(",")||r.includes(" ")?`"${r}"`:r)).join(", ")}get(){return this.values}};var C=class{constructor({fields:r=[],encoding:s="utf-8"}){this.entries={};r.forEach(this.setField.bind(this));this.encoding=s}static{__name(this,"Fields")}setField(r){this.entries[r.name.toLowerCase()]=r}getField(r){return this.entries[r.toLowerCase()]}removeField(r){delete this.entries[r.toLowerCase()]}getByType(r){return Object.values(this.entries).filter((s=>s.kind===r))}};var y=class _HttpRequest{static{__name(this,"HttpRequest")}constructor(r){this.method=r.method||"GET";this.hostname=r.hostname||"localhost";this.port=r.port;this.query=r.query||{};this.headers=r.headers||{};this.body=r.body;this.protocol=r.protocol?r.protocol.slice(-1)!==":"?`${r.protocol}:`:r.protocol:"https:";this.path=r.path?r.path.charAt(0)!=="/"?`/${r.path}`:r.path:"/";this.username=r.username;this.password=r.password;this.fragment=r.fragment}static clone(r){const s=new _HttpRequest({...r,headers:{...r.headers}});if(s.query){s.query=cloneQuery(s.query)}return s}static isInstance(r){if(!r){return false}const s=r;return"method"in s&&"protocol"in s&&"hostname"in s&&"path"in s&&typeof s["query"]==="object"&&typeof s["headers"]==="object"}clone(){return _HttpRequest.clone(this)}};function cloneQuery(r){return Object.keys(r).reduce(((s,i)=>{const a=r[i];return{...s,[i]:Array.isArray(a)?[...a]:a}}),{})}__name(cloneQuery,"cloneQuery");var I=class{static{__name(this,"HttpResponse")}constructor(r){this.statusCode=r.statusCode;this.reason=r.reason;this.headers=r.headers||{};this.body=r.body}static isInstance(r){if(!r)return false;const s=r;return typeof s.statusCode==="number"&&typeof s.headers==="object"}};function isValidHostname(r){const s=/^[a-z0-9][a-z0-9\.\-]*[a-z0-9]$/;return s.test(r)}__name(isValidHostname,"isValidHostname");0&&0},68031:(r,s,i)=>{var a=Object.defineProperty;var A=Object.getOwnPropertyDescriptor;var c=Object.getOwnPropertyNames;var l=Object.prototype.hasOwnProperty;var __name=(r,s)=>a(r,"name",{value:s,configurable:true});var __export=(r,s)=>{for(var i in s)a(r,i,{get:s[i],enumerable:true})};var __copyProps=(r,s,i,d)=>{if(s&&typeof s==="object"||typeof s==="function"){for(let u of c(s))if(!l.call(r,u)&&u!==i)a(r,u,{get:()=>s[u],enumerable:!(d=A(s,u))||d.enumerable})}return r};var __toCommonJS=r=>__copyProps(a({},"__esModule",{value:true}),r);var d={};__export(d,{buildQueryString:()=>buildQueryString});r.exports=__toCommonJS(d);var u=i(54197);function buildQueryString(r){const s=[];for(let i of Object.keys(r).sort()){const a=r[i];i=(0,u.escapeUri)(i);if(Array.isArray(a)){for(let r=0,A=a.length;r{var s=Object.defineProperty;var i=Object.getOwnPropertyDescriptor;var a=Object.getOwnPropertyNames;var A=Object.prototype.hasOwnProperty;var __name=(r,i)=>s(r,"name",{value:i,configurable:true});var __export=(r,i)=>{for(var a in i)s(r,a,{get:i[a],enumerable:true})};var __copyProps=(r,c,l,d)=>{if(c&&typeof c==="object"||typeof c==="function"){for(let u of a(c))if(!A.call(r,u)&&u!==l)s(r,u,{get:()=>c[u],enumerable:!(d=i(c,u))||d.enumerable})}return r};var __toCommonJS=r=>__copyProps(s({},"__esModule",{value:true}),r);var c={};__export(c,{parseQueryString:()=>parseQueryString});r.exports=__toCommonJS(c);function parseQueryString(r){const s={};r=r.replace(/^\?/,"");if(r){for(const i of r.split("&")){let[r,a=null]=i.split("=");r=decodeURIComponent(r);if(a){a=decodeURIComponent(a)}if(!(r in s)){s[r]=a}else if(Array.isArray(s[r])){s[r].push(a)}else{s[r]=[s[r],a]}}}return s}__name(parseQueryString,"parseQueryString");0&&0},6375:r=>{var s=Object.defineProperty;var i=Object.getOwnPropertyDescriptor;var a=Object.getOwnPropertyNames;var A=Object.prototype.hasOwnProperty;var __name=(r,i)=>s(r,"name",{value:i,configurable:true});var __export=(r,i)=>{for(var a in i)s(r,a,{get:i[a],enumerable:true})};var __copyProps=(r,c,l,d)=>{if(c&&typeof c==="object"||typeof c==="function"){for(let u of a(c))if(!A.call(r,u)&&u!==l)s(r,u,{get:()=>c[u],enumerable:!(d=i(c,u))||d.enumerable})}return r};var __toCommonJS=r=>__copyProps(s({},"__esModule",{value:true}),r);var c={};__export(c,{isClockSkewCorrectedError:()=>y,isClockSkewError:()=>C,isRetryableByTrait:()=>h,isServerError:()=>b,isThrottlingError:()=>I,isTransientError:()=>B});r.exports=__toCommonJS(c);var l=["AuthFailure","InvalidSignatureException","RequestExpired","RequestInTheFuture","RequestTimeTooSkewed","SignatureDoesNotMatch"];var d=["BandwidthLimitExceeded","EC2ThrottledException","LimitExceededException","PriorRequestNotComplete","ProvisionedThroughputExceededException","RequestLimitExceeded","RequestThrottled","RequestThrottledException","SlowDown","ThrottledException","Throttling","ThrottlingException","TooManyRequestsException","TransactionInProgressException"];var u=["TimeoutError","RequestTimeout","RequestTimeoutException"];var p=[500,502,503,504];var g=["ECONNRESET","ECONNREFUSED","EPIPE","ETIMEDOUT"];var h=__name((r=>r.$retryable!==void 0),"isRetryableByTrait");var C=__name((r=>l.includes(r.name)),"isClockSkewError");var y=__name((r=>r.$metadata?.clockSkewCorrected),"isClockSkewCorrectedError");var I=__name((r=>r.$metadata?.httpStatusCode===429||d.includes(r.name)||r.$retryable?.throttling==true),"isThrottlingError");var B=__name(((r,s=0)=>y(r)||u.includes(r.name)||g.includes(r?.code||"")||p.includes(r.$metadata?.httpStatusCode||0)||r.cause!==void 0&&s<=10&&B(r.cause,s+1)),"isTransientError");var b=__name((r=>{if(r.$metadata?.httpStatusCode!==void 0){const s=r.$metadata.httpStatusCode;if(500<=s&&s<=599&&!B(r)){return true}return false}return false}),"isServerError");0&&0},68340:(r,s,i)=>{"use strict";Object.defineProperty(s,"__esModule",{value:true});s.getHomeDir=void 0;const a=i(22037);const A=i(71017);const c={};const getHomeDirCacheKey=()=>{if(process&&process.geteuid){return`${process.geteuid()}`}return"DEFAULT"};const getHomeDir=()=>{const{HOME:r,USERPROFILE:s,HOMEPATH:i,HOMEDRIVE:l=`C:${A.sep}`}=process.env;if(r)return r;if(s)return s;if(i)return`${l}${i}`;const d=getHomeDirCacheKey();if(!c[d])c[d]=(0,a.homedir)();return c[d]};s.getHomeDir=getHomeDir},24740:(r,s,i)=>{"use strict";Object.defineProperty(s,"__esModule",{value:true});s.getSSOTokenFilepath=void 0;const a=i(6113);const A=i(71017);const c=i(68340);const getSSOTokenFilepath=r=>{const s=(0,a.createHash)("sha1");const i=s.update(r).digest("hex");return(0,A.join)((0,c.getHomeDir)(),".aws","sso","cache",`${i}.json`)};s.getSSOTokenFilepath=getSSOTokenFilepath},69678:(r,s,i)=>{"use strict";Object.defineProperty(s,"__esModule",{value:true});s.getSSOTokenFromFile=void 0;const a=i(57147);const A=i(24740);const{readFile:c}=a.promises;const getSSOTokenFromFile=async r=>{const s=(0,A.getSSOTokenFilepath)(r);const i=await c(s,"utf8");return JSON.parse(i)};s.getSSOTokenFromFile=getSSOTokenFromFile},43507:(r,s,i)=>{var a=Object.defineProperty;var A=Object.getOwnPropertyDescriptor;var c=Object.getOwnPropertyNames;var l=Object.prototype.hasOwnProperty;var __name=(r,s)=>a(r,"name",{value:s,configurable:true});var __export=(r,s)=>{for(var i in s)a(r,i,{get:s[i],enumerable:true})};var __copyProps=(r,s,i,d)=>{if(s&&typeof s==="object"||typeof s==="function"){for(let u of c(s))if(!l.call(r,u)&&u!==i)a(r,u,{get:()=>s[u],enumerable:!(d=A(s,u))||d.enumerable})}return r};var __reExport=(r,s,i)=>(__copyProps(r,s,"default"),i&&__copyProps(i,s,"default"));var __toCommonJS=r=>__copyProps(a({},"__esModule",{value:true}),r);var d={};__export(d,{CONFIG_PREFIX_SEPARATOR:()=>T,DEFAULT_PROFILE:()=>p,ENV_PROFILE:()=>u,getProfileName:()=>g,loadSharedConfigFiles:()=>_,loadSsoSessionData:()=>M,parseKnownFiles:()=>H});r.exports=__toCommonJS(d);__reExport(d,i(68340),r.exports);var u="AWS_PROFILE";var p="default";var g=__name((r=>r.profile||process.env[u]||p),"getProfileName");__reExport(d,i(24740),r.exports);__reExport(d,i(69678),r.exports);var h=i(55756);var C=__name((r=>Object.entries(r).filter((([r])=>{const s=r.indexOf(T);if(s===-1){return false}return Object.values(h.IniSectionType).includes(r.substring(0,s))})).reduce(((r,[s,i])=>{const a=s.indexOf(T);const A=s.substring(0,a)===h.IniSectionType.PROFILE?s.substring(a+1):s;r[A]=i;return r}),{...r.default&&{default:r.default}})),"getConfigData");var y=i(71017);var I=i(68340);var B="AWS_CONFIG_FILE";var b=__name((()=>process.env[B]||(0,y.join)((0,I.getHomeDir)(),".aws","config")),"getConfigFilepath");var Q=i(68340);var w="AWS_SHARED_CREDENTIALS_FILE";var v=__name((()=>process.env[w]||(0,y.join)((0,Q.getHomeDir)(),".aws","credentials")),"getCredentialsFilepath");var S=i(68340);var R=/^([\w-]+)\s(["'])?([\w-@\+\.%:/]+)\2$/;var N=["__proto__","profile __proto__"];var x=__name((r=>{const s={};let i;let a;for(const A of r.split(/\r?\n/)){const r=A.split(/(^|\s)[;#]/)[0].trim();const c=r[0]==="["&&r[r.length-1]==="]";if(c){i=void 0;a=void 0;const s=r.substring(1,r.length-1);const A=R.exec(s);if(A){const[,r,,s]=A;if(Object.values(h.IniSectionType).includes(r)){i=[r,s].join(T)}}else{i=s}if(N.includes(s)){throw new Error(`Found invalid profile name "${s}"`)}}else if(i){const c=r.indexOf("=");if(![0,-1].includes(c)){const[l,d]=[r.substring(0,c).trim(),r.substring(c+1).trim()];if(d===""){a=l}else{if(a&&A.trimStart()===A){a=void 0}s[i]=s[i]||{};const r=a?[a,l].join(T):l;s[i][r]=d}}}}return s}),"parseIni");var D=i(19155);var k=__name((()=>({})),"swallowError");var T=".";var _=__name((async(r={})=>{const{filepath:s=v(),configFilepath:i=b()}=r;const a=(0,S.getHomeDir)();const A="~/";let c=s;if(s.startsWith(A)){c=(0,y.join)(a,s.slice(2))}let l=i;if(i.startsWith(A)){l=(0,y.join)(a,i.slice(2))}const d=await Promise.all([(0,D.slurpFile)(l,{ignoreCache:r.ignoreCache}).then(x).then(C).catch(k),(0,D.slurpFile)(c,{ignoreCache:r.ignoreCache}).then(x).catch(k)]);return{configFile:d[0],credentialsFile:d[1]}}),"loadSharedConfigFiles");var P=__name((r=>Object.entries(r).filter((([r])=>r.startsWith(h.IniSectionType.SSO_SESSION+T))).reduce(((r,[s,i])=>({...r,[s.substring(s.indexOf(T)+1)]:i})),{})),"getSsoSessionData");var O=i(19155);var L=__name((()=>({})),"swallowError");var M=__name((async(r={})=>(0,O.slurpFile)(r.configFilepath??b()).then(x).then(P).catch(L)),"loadSsoSessionData");var U=__name(((...r)=>{const s={};for(const i of r){for(const[r,a]of Object.entries(i)){if(s[r]!==void 0){Object.assign(s[r],a)}else{s[r]=a}}}return s}),"mergeConfigFiles");var H=__name((async r=>{const s=await _(r);return U(s.configFile,s.credentialsFile)}),"parseKnownFiles");0&&0},19155:(r,s,i)=>{"use strict";Object.defineProperty(s,"__esModule",{value:true});s.slurpFile=void 0;const a=i(57147);const{readFile:A}=a.promises;const c={};const slurpFile=(r,s)=>{if(!c[r]||(s===null||s===void 0?void 0:s.ignoreCache)){c[r]=A(r,"utf8")}return c[r]};s.slurpFile=slurpFile},11528:(r,s,i)=>{var a=Object.defineProperty;var A=Object.getOwnPropertyDescriptor;var c=Object.getOwnPropertyNames;var l=Object.prototype.hasOwnProperty;var __name=(r,s)=>a(r,"name",{value:s,configurable:true});var __export=(r,s)=>{for(var i in s)a(r,i,{get:s[i],enumerable:true})};var __copyProps=(r,s,i,d)=>{if(s&&typeof s==="object"||typeof s==="function"){for(let u of c(s))if(!l.call(r,u)&&u!==i)a(r,u,{get:()=>s[u],enumerable:!(d=A(s,u))||d.enumerable})}return r};var __toCommonJS=r=>__copyProps(a({},"__esModule",{value:true}),r);var d={};__export(d,{SignatureV4:()=>de,clearCredentialCache:()=>Y,createScope:()=>j,getCanonicalHeaders:()=>W,getCanonicalQuery:()=>$,getPayloadHash:()=>ee,getSigningKey:()=>z,moveHeadersToQuery:()=>ae,prepareRequest:()=>Ae});r.exports=__toCommonJS(d);var u=i(2390);var p=i(41895);var g="X-Amz-Algorithm";var h="X-Amz-Credential";var C="X-Amz-Date";var y="X-Amz-SignedHeaders";var I="X-Amz-Expires";var B="X-Amz-Signature";var b="X-Amz-Security-Token";var Q="authorization";var w=C.toLowerCase();var v="date";var S=[Q,w,v];var R=B.toLowerCase();var N="x-amz-content-sha256";var x=b.toLowerCase();var D={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};var k=/^proxy-/;var T=/^sec-/;var _="AWS4-HMAC-SHA256";var P="AWS4-HMAC-SHA256-PAYLOAD";var O="UNSIGNED-PAYLOAD";var L=50;var M="aws4_request";var U=60*60*24*7;var H=i(45364);var G=i(41895);var q={};var V=[];var j=__name(((r,s,i)=>`${r}/${s}/${i}/${M}`),"createScope");var z=__name((async(r,s,i,a,A)=>{const c=await J(r,s.secretAccessKey,s.accessKeyId);const l=`${i}:${a}:${A}:${(0,H.toHex)(c)}:${s.sessionToken}`;if(l in q){return q[l]}V.push(l);while(V.length>L){delete q[V.shift()]}let d=`AWS4${s.secretAccessKey}`;for(const s of[i,a,A,M]){d=await J(r,d,s)}return q[l]=d}),"getSigningKey");var Y=__name((()=>{V.length=0;Object.keys(q).forEach((r=>{delete q[r]}))}),"clearCredentialCache");var J=__name(((r,s,i)=>{const a=new r(s);a.update((0,G.toUint8Array)(i));return a.digest()}),"hmac");var W=__name((({headers:r},s,i)=>{const a={};for(const A of Object.keys(r).sort()){if(r[A]==void 0){continue}const c=A.toLowerCase();if(c in D||s?.has(c)||k.test(c)||T.test(c)){if(!i||i&&!i.has(c)){continue}}a[c]=r[A].trim().replace(/\s+/g," ")}return a}),"getCanonicalHeaders");var X=i(54197);var $=__name((({query:r={}})=>{const s=[];const i={};for(const a of Object.keys(r)){if(a.toLowerCase()===R){continue}const A=(0,X.escapeUri)(a);s.push(A);const c=r[a];if(typeof c==="string"){i[A]=`${A}=${(0,X.escapeUri)(c)}`}else if(Array.isArray(c)){i[A]=c.slice(0).reduce(((r,s)=>r.concat([`${A}=${(0,X.escapeUri)(s)}`])),[]).sort().join("&")}}return s.sort().map((r=>i[r])).filter((r=>r)).join("&")}),"getCanonicalQuery");var K=i(10780);var Z=i(41895);var ee=__name((async({headers:r,body:s},i)=>{for(const s of Object.keys(r)){if(s.toLowerCase()===N){return r[s]}}if(s==void 0){return"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"}else if(typeof s==="string"||ArrayBuffer.isView(s)||(0,K.isArrayBuffer)(s)){const r=new i;r.update((0,Z.toUint8Array)(s));return(0,H.toHex)(await r.digest())}return O}),"getPayloadHash");var te=i(41895);var re=class{static{__name(this,"HeaderFormatter")}format(r){const s=[];for(const i of Object.keys(r)){const a=(0,te.fromUtf8)(i);s.push(Uint8Array.from([a.byteLength]),a,this.formatHeaderValue(r[i]))}const i=new Uint8Array(s.reduce(((r,s)=>r+s.byteLength),0));let a=0;for(const r of s){i.set(r,a);a+=r.byteLength}return i}formatHeaderValue(r){switch(r.type){case"boolean":return Uint8Array.from([r.value?0:1]);case"byte":return Uint8Array.from([2,r.value]);case"short":const s=new DataView(new ArrayBuffer(3));s.setUint8(0,3);s.setInt16(1,r.value,false);return new Uint8Array(s.buffer);case"integer":const i=new DataView(new ArrayBuffer(5));i.setUint8(0,4);i.setInt32(1,r.value,false);return new Uint8Array(i.buffer);case"long":const a=new Uint8Array(9);a[0]=5;a.set(r.value.bytes,1);return a;case"binary":const A=new DataView(new ArrayBuffer(3+r.value.byteLength));A.setUint8(0,6);A.setUint16(1,r.value.byteLength,false);const c=new Uint8Array(A.buffer);c.set(r.value,3);return c;case"string":const l=(0,te.fromUtf8)(r.value);const d=new DataView(new ArrayBuffer(3+l.byteLength));d.setUint8(0,7);d.setUint16(1,l.byteLength,false);const u=new Uint8Array(d.buffer);u.set(l,3);return u;case"timestamp":const p=new Uint8Array(9);p[0]=8;p.set(se.fromNumber(r.value.valueOf()).bytes,1);return p;case"uuid":if(!ne.test(r.value)){throw new Error(`Invalid UUID received: ${r.value}`)}const g=new Uint8Array(17);g[0]=9;g.set((0,H.fromHex)(r.value.replace(/\-/g,"")),1);return g}}};var ne=/^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$/;var se=class _Int64{constructor(r){this.bytes=r;if(r.byteLength!==8){throw new Error("Int64 buffers must be exactly 8 bytes")}}static{__name(this,"Int64")}static fromNumber(r){if(r>0x8000000000000000||r<-0x8000000000000000){throw new Error(`${r} is too large (or, if negative, too small) to represent as an Int64`)}const s=new Uint8Array(8);for(let i=7,a=Math.abs(Math.round(r));i>-1&&a>0;i--,a/=256){s[i]=a}if(r<0){negate(s)}return new _Int64(s)}valueOf(){const r=this.bytes.slice(0);const s=r[0]&128;if(s){negate(r)}return parseInt((0,H.toHex)(r),16)*(s?-1:1)}toString(){return String(this.valueOf())}};function negate(r){for(let s=0;s<8;s++){r[s]^=255}for(let s=7;s>-1;s--){r[s]++;if(r[s]!==0)break}}__name(negate,"negate");var ie=__name(((r,s)=>{r=r.toLowerCase();for(const i of Object.keys(s)){if(r===i.toLowerCase()){return true}}return false}),"hasHeader");var oe=i(64418);var ae=__name(((r,s={})=>{const{headers:i,query:a={}}=oe.HttpRequest.clone(r);for(const r of Object.keys(i)){const A=r.toLowerCase();if(A.slice(0,6)==="x-amz-"&&!s.unhoistableHeaders?.has(A)||s.hoistableHeaders?.has(A)){a[r]=i[r];delete i[r]}}return{...r,headers:i,query:a}}),"moveHeadersToQuery");var Ae=__name((r=>{r=oe.HttpRequest.clone(r);for(const s of Object.keys(r.headers)){if(S.indexOf(s.toLowerCase())>-1){delete r.headers[s]}}return r}),"prepareRequest");var ce=__name((r=>le(r).toISOString().replace(/\.\d{3}Z$/,"Z")),"iso8601");var le=__name((r=>{if(typeof r==="number"){return new Date(r*1e3)}if(typeof r==="string"){if(Number(r)){return new Date(Number(r)*1e3)}return new Date(r)}return r}),"toDate");var de=class{constructor({applyChecksum:r,credentials:s,region:i,service:a,sha256:A,uriEscapePath:c=true}){this.headerFormatter=new re;this.service=a;this.sha256=A;this.uriEscapePath=c;this.applyChecksum=typeof r==="boolean"?r:true;this.regionProvider=(0,u.normalizeProvider)(i);this.credentialProvider=(0,u.normalizeProvider)(s)}static{__name(this,"SignatureV4")}async presign(r,s={}){const{signingDate:i=new Date,expiresIn:a=3600,unsignableHeaders:A,unhoistableHeaders:c,signableHeaders:l,hoistableHeaders:d,signingRegion:u,signingService:p}=s;const Q=await this.credentialProvider();this.validateResolvedCredentials(Q);const w=u??await this.regionProvider();const{longDate:v,shortDate:S}=ue(i);if(a>U){return Promise.reject("Signature version 4 presigned URLs must have an expiration date less than one week in the future")}const R=j(S,w,p??this.service);const N=ae(Ae(r),{unhoistableHeaders:c,hoistableHeaders:d});if(Q.sessionToken){N.query[b]=Q.sessionToken}N.query[g]=_;N.query[h]=`${Q.accessKeyId}/${R}`;N.query[C]=v;N.query[I]=a.toString(10);const x=W(N,A,l);N.query[y]=pe(x);N.query[B]=await this.getSignature(v,R,this.getSigningKey(Q,w,S,p),this.createCanonicalRequest(N,x,await ee(r,this.sha256)));return N}async sign(r,s){if(typeof r==="string"){return this.signString(r,s)}else if(r.headers&&r.payload){return this.signEvent(r,s)}else if(r.message){return this.signMessage(r,s)}else{return this.signRequest(r,s)}}async signEvent({headers:r,payload:s},{signingDate:i=new Date,priorSignature:a,signingRegion:A,signingService:c}){const l=A??await this.regionProvider();const{shortDate:d,longDate:u}=ue(i);const p=j(d,l,c??this.service);const g=await ee({headers:{},body:s},this.sha256);const h=new this.sha256;h.update(r);const C=(0,H.toHex)(await h.digest());const y=[P,u,p,a,C,g].join("\n");return this.signString(y,{signingDate:i,signingRegion:l,signingService:c})}async signMessage(r,{signingDate:s=new Date,signingRegion:i,signingService:a}){const A=this.signEvent({headers:this.headerFormatter.format(r.message.headers),payload:r.message.body},{signingDate:s,signingRegion:i,signingService:a,priorSignature:r.priorSignature});return A.then((s=>({message:r.message,signature:s})))}async signString(r,{signingDate:s=new Date,signingRegion:i,signingService:a}={}){const A=await this.credentialProvider();this.validateResolvedCredentials(A);const c=i??await this.regionProvider();const{shortDate:l}=ue(s);const d=new this.sha256(await this.getSigningKey(A,c,l,a));d.update((0,p.toUint8Array)(r));return(0,H.toHex)(await d.digest())}async signRequest(r,{signingDate:s=new Date,signableHeaders:i,unsignableHeaders:a,signingRegion:A,signingService:c}={}){const l=await this.credentialProvider();this.validateResolvedCredentials(l);const d=A??await this.regionProvider();const u=Ae(r);const{longDate:p,shortDate:g}=ue(s);const h=j(g,d,c??this.service);u.headers[w]=p;if(l.sessionToken){u.headers[x]=l.sessionToken}const C=await ee(u,this.sha256);if(!ie(N,u.headers)&&this.applyChecksum){u.headers[N]=C}const y=W(u,a,i);const I=await this.getSignature(p,h,this.getSigningKey(l,d,g,c),this.createCanonicalRequest(u,y,C));u.headers[Q]=`${_} Credential=${l.accessKeyId}/${h}, SignedHeaders=${pe(y)}, Signature=${I}`;return u}createCanonicalRequest(r,s,i){const a=Object.keys(s).sort();return`${r.method}\n${this.getCanonicalPath(r)}\n${$(r)}\n${a.map((r=>`${r}:${s[r]}`)).join("\n")}\n\n${a.join(";")}\n${i}`}async createStringToSign(r,s,i){const a=new this.sha256;a.update((0,p.toUint8Array)(i));const A=await a.digest();return`${_}\n${r}\n${s}\n${(0,H.toHex)(A)}`}getCanonicalPath({path:r}){if(this.uriEscapePath){const s=[];for(const i of r.split("/")){if(i?.length===0)continue;if(i===".")continue;if(i===".."){s.pop()}else{s.push(i)}}const i=`${r?.startsWith("/")?"/":""}${s.join("/")}${s.length>0&&r?.endsWith("/")?"/":""}`;const a=(0,X.escapeUri)(i);return a.replace(/%2F/g,"/")}return r}async getSignature(r,s,i,a){const A=await this.createStringToSign(r,s,a);const c=new this.sha256(await i);c.update((0,p.toUint8Array)(A));return(0,H.toHex)(await c.digest())}getSigningKey(r,s,i,a){return z(this.sha256,r,i,s,a||this.service)}validateResolvedCredentials(r){if(typeof r!=="object"||typeof r.accessKeyId!=="string"||typeof r.secretAccessKey!=="string"){throw new Error("Resolved credential object is not valid")}}};var ue=__name((r=>{const s=ce(r).replace(/[\-:]/g,"");return{longDate:s,shortDate:s.slice(0,8)}}),"formatDate");var pe=__name((r=>Object.keys(r).sort().join(";")),"getCanonicalHeaderList");0&&0},63570:(r,s,i)=>{var a=Object.defineProperty;var A=Object.getOwnPropertyDescriptor;var c=Object.getOwnPropertyNames;var l=Object.prototype.hasOwnProperty;var __name=(r,s)=>a(r,"name",{value:s,configurable:true});var __export=(r,s)=>{for(var i in s)a(r,i,{get:s[i],enumerable:true})};var __copyProps=(r,s,i,d)=>{if(s&&typeof s==="object"||typeof s==="function"){for(let u of c(s))if(!l.call(r,u)&&u!==i)a(r,u,{get:()=>s[u],enumerable:!(d=A(s,u))||d.enumerable})}return r};var __toCommonJS=r=>__copyProps(a({},"__esModule",{value:true}),r);var d={};__export(d,{Client:()=>p,Command:()=>C,LazyJsonString:()=>Ve,NoOpLogger:()=>je,SENSITIVE_STRING:()=>I,ServiceException:()=>ve,_json:()=>et,collectBody:()=>g.collectBody,convertMap:()=>ze,createAggregatedClient:()=>B,dateToUtcString:()=>dateToUtcString,decorateServiceException:()=>Se,emitWarningIfUnsupportedVersion:()=>Te,expectBoolean:()=>Q,expectByte:()=>k,expectFloat32:()=>S,expectInt:()=>N,expectInt32:()=>x,expectLong:()=>R,expectNonNull:()=>P,expectNumber:()=>w,expectObject:()=>O,expectShort:()=>D,expectString:()=>L,expectUnion:()=>M,extendedEncodeURIComponent:()=>g.extendedEncodeURIComponent,getArrayIfSingleItem:()=>He,getDefaultClientConfiguration:()=>Me,getDefaultExtensionConfiguration:()=>Le,getValueFromTextNode:()=>Ge,handleFloat:()=>z,isSerializableHeaderValue:()=>qe,limitedParseDouble:()=>j,limitedParseFloat:()=>Y,limitedParseFloat32:()=>J,loadConfigsForDefaultMode:()=>De,logger:()=>re,map:()=>map,parseBoolean:()=>b,parseEpochTimestamp:()=>pe,parseRfc3339DateTime:()=>oe,parseRfc3339DateTimeWithOffset:()=>Ae,parseRfc7231DateTime:()=>ue,quoteHeader:()=>quoteHeader,resolveDefaultRuntimeConfig:()=>Ue,resolvedPath:()=>g.resolvedPath,serializeDateTime:()=>Ze,serializeFloat:()=>Ke,splitEvery:()=>splitEvery,splitHeader:()=>tt,strictParseByte:()=>ee,strictParseDouble:()=>U,strictParseFloat:()=>H,strictParseFloat32:()=>G,strictParseInt:()=>$,strictParseInt32:()=>K,strictParseLong:()=>X,strictParseShort:()=>Z,take:()=>Ye,throwDefaultError:()=>Re,withBaseException:()=>Ne});r.exports=__toCommonJS(d);var u=i(97911);var p=class{constructor(r){this.config=r;this.middlewareStack=(0,u.constructStack)()}static{__name(this,"Client")}send(r,s,i){const a=typeof s!=="function"?s:void 0;const A=typeof s==="function"?s:i;const c=a===void 0&&this.config.cacheMiddleware===true;let l;if(c){if(!this.handlers){this.handlers=new WeakMap}const s=this.handlers;if(s.has(r.constructor)){l=s.get(r.constructor)}else{l=r.resolveMiddleware(this.middlewareStack,this.config,a);s.set(r.constructor,l)}}else{delete this.handlers;l=r.resolveMiddleware(this.middlewareStack,this.config,a)}if(A){l(r).then((r=>A(null,r.output)),(r=>A(r))).catch((()=>{}))}else{return l(r).then((r=>r.output))}}destroy(){this.config?.requestHandler?.destroy?.();delete this.handlers}};var g=i(2241);var h=i(55756);var C=class{constructor(){this.middlewareStack=(0,u.constructStack)()}static{__name(this,"Command")}static classBuilder(){return new y}resolveMiddlewareWithContext(r,s,i,{middlewareFn:a,clientName:A,commandName:c,inputFilterSensitiveLog:l,outputFilterSensitiveLog:d,smithyContext:u,additionalContext:p,CommandCtor:g}){for(const A of a.bind(this)(g,r,s,i)){this.middlewareStack.use(A)}const C=r.concat(this.middlewareStack);const{logger:y}=s;const I={logger:y,clientName:A,commandName:c,inputFilterSensitiveLog:l,outputFilterSensitiveLog:d,[h.SMITHY_CONTEXT_KEY]:{commandInstance:this,...u},...p};const{requestHandler:B}=s;return C.resolve((r=>B.handle(r.request,i||{})),I)}};var y=class{constructor(){this._init=()=>{};this._ep={};this._middlewareFn=()=>[];this._commandName="";this._clientName="";this._additionalContext={};this._smithyContext={};this._inputFilterSensitiveLog=r=>r;this._outputFilterSensitiveLog=r=>r;this._serializer=null;this._deserializer=null}static{__name(this,"ClassBuilder")}init(r){this._init=r}ep(r){this._ep=r;return this}m(r){this._middlewareFn=r;return this}s(r,s,i={}){this._smithyContext={service:r,operation:s,...i};return this}c(r={}){this._additionalContext=r;return this}n(r,s){this._clientName=r;this._commandName=s;return this}f(r=(r=>r),s=(r=>r)){this._inputFilterSensitiveLog=r;this._outputFilterSensitiveLog=s;return this}ser(r){this._serializer=r;return this}de(r){this._deserializer=r;return this}build(){const r=this;let s;return s=class extends C{constructor(...[s]){super();this.serialize=r._serializer;this.deserialize=r._deserializer;this.input=s??{};r._init(this)}static{__name(this,"CommandRef")}static getEndpointParameterInstructions(){return r._ep}resolveMiddleware(i,a,A){return this.resolveMiddlewareWithContext(i,a,A,{CommandCtor:s,middlewareFn:r._middlewareFn,clientName:r._clientName,commandName:r._commandName,inputFilterSensitiveLog:r._inputFilterSensitiveLog,outputFilterSensitiveLog:r._outputFilterSensitiveLog,smithyContext:r._smithyContext,additionalContext:r._additionalContext})}}}};var I="***SensitiveInformation***";var B=__name(((r,s)=>{for(const i of Object.keys(r)){const a=r[i];const A=__name((async function(r,s,i){const A=new a(r);if(typeof s==="function"){this.send(A,s)}else if(typeof i==="function"){if(typeof s!=="object")throw new Error(`Expected http options but got ${typeof s}`);this.send(A,s||{},i)}else{return this.send(A,s)}}),"methodImpl");const c=(i[0].toLowerCase()+i.slice(1)).replace(/Command$/,"");s.prototype[c]=A}}),"createAggregatedClient");var b=__name((r=>{switch(r){case"true":return true;case"false":return false;default:throw new Error(`Unable to parse boolean value "${r}"`)}}),"parseBoolean");var Q=__name((r=>{if(r===null||r===void 0){return void 0}if(typeof r==="number"){if(r===0||r===1){re.warn(te(`Expected boolean, got ${typeof r}: ${r}`))}if(r===0){return false}if(r===1){return true}}if(typeof r==="string"){const s=r.toLowerCase();if(s==="false"||s==="true"){re.warn(te(`Expected boolean, got ${typeof r}: ${r}`))}if(s==="false"){return false}if(s==="true"){return true}}if(typeof r==="boolean"){return r}throw new TypeError(`Expected boolean, got ${typeof r}: ${r}`)}),"expectBoolean");var w=__name((r=>{if(r===null||r===void 0){return void 0}if(typeof r==="string"){const s=parseFloat(r);if(!Number.isNaN(s)){if(String(s)!==String(r)){re.warn(te(`Expected number but observed string: ${r}`))}return s}}if(typeof r==="number"){return r}throw new TypeError(`Expected number, got ${typeof r}: ${r}`)}),"expectNumber");var v=Math.ceil(2**127*(2-2**-23));var S=__name((r=>{const s=w(r);if(s!==void 0&&!Number.isNaN(s)&&s!==Infinity&&s!==-Infinity){if(Math.abs(s)>v){throw new TypeError(`Expected 32-bit float, got ${r}`)}}return s}),"expectFloat32");var R=__name((r=>{if(r===null||r===void 0){return void 0}if(Number.isInteger(r)&&!Number.isNaN(r)){return r}throw new TypeError(`Expected integer, got ${typeof r}: ${r}`)}),"expectLong");var N=R;var x=__name((r=>T(r,32)),"expectInt32");var D=__name((r=>T(r,16)),"expectShort");var k=__name((r=>T(r,8)),"expectByte");var T=__name(((r,s)=>{const i=R(r);if(i!==void 0&&_(i,s)!==i){throw new TypeError(`Expected ${s}-bit integer, got ${r}`)}return i}),"expectSizedInt");var _=__name(((r,s)=>{switch(s){case 32:return Int32Array.of(r)[0];case 16:return Int16Array.of(r)[0];case 8:return Int8Array.of(r)[0]}}),"castInt");var P=__name(((r,s)=>{if(r===null||r===void 0){if(s){throw new TypeError(`Expected a non-null value for ${s}`)}throw new TypeError("Expected a non-null value")}return r}),"expectNonNull");var O=__name((r=>{if(r===null||r===void 0){return void 0}if(typeof r==="object"&&!Array.isArray(r)){return r}const s=Array.isArray(r)?"array":typeof r;throw new TypeError(`Expected object, got ${s}: ${r}`)}),"expectObject");var L=__name((r=>{if(r===null||r===void 0){return void 0}if(typeof r==="string"){return r}if(["boolean","number","bigint"].includes(typeof r)){re.warn(te(`Expected string, got ${typeof r}: ${r}`));return String(r)}throw new TypeError(`Expected string, got ${typeof r}: ${r}`)}),"expectString");var M=__name((r=>{if(r===null||r===void 0){return void 0}const s=O(r);const i=Object.entries(s).filter((([,r])=>r!=null)).map((([r])=>r));if(i.length===0){throw new TypeError(`Unions must have exactly one non-null member. None were found.`)}if(i.length>1){throw new TypeError(`Unions must have exactly one non-null member. Keys ${i} were not null.`)}return s}),"expectUnion");var U=__name((r=>{if(typeof r=="string"){return w(V(r))}return w(r)}),"strictParseDouble");var H=U;var G=__name((r=>{if(typeof r=="string"){return S(V(r))}return S(r)}),"strictParseFloat32");var q=/(-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?)|(-?Infinity)|(NaN)/g;var V=__name((r=>{const s=r.match(q);if(s===null||s[0].length!==r.length){throw new TypeError(`Expected real number, got implicit NaN`)}return parseFloat(r)}),"parseNumber");var j=__name((r=>{if(typeof r=="string"){return W(r)}return w(r)}),"limitedParseDouble");var z=j;var Y=j;var J=__name((r=>{if(typeof r=="string"){return W(r)}return S(r)}),"limitedParseFloat32");var W=__name((r=>{switch(r){case"NaN":return NaN;case"Infinity":return Infinity;case"-Infinity":return-Infinity;default:throw new Error(`Unable to parse float value: ${r}`)}}),"parseFloatString");var X=__name((r=>{if(typeof r==="string"){return R(V(r))}return R(r)}),"strictParseLong");var $=X;var K=__name((r=>{if(typeof r==="string"){return x(V(r))}return x(r)}),"strictParseInt32");var Z=__name((r=>{if(typeof r==="string"){return D(V(r))}return D(r)}),"strictParseShort");var ee=__name((r=>{if(typeof r==="string"){return k(V(r))}return k(r)}),"strictParseByte");var te=__name((r=>String(new TypeError(r).stack||r).split("\n").slice(0,5).filter((r=>!r.includes("stackTraceWarning"))).join("\n")),"stackTraceWarning");var re={warn:console.warn};var ne=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"];var se=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function dateToUtcString(r){const s=r.getUTCFullYear();const i=r.getUTCMonth();const a=r.getUTCDay();const A=r.getUTCDate();const c=r.getUTCHours();const l=r.getUTCMinutes();const d=r.getUTCSeconds();const u=A<10?`0${A}`:`${A}`;const p=c<10?`0${c}`:`${c}`;const g=l<10?`0${l}`:`${l}`;const h=d<10?`0${d}`:`${d}`;return`${ne[a]}, ${u} ${se[i]} ${s} ${p}:${g}:${h} GMT`}__name(dateToUtcString,"dateToUtcString");var ie=new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?[zZ]$/);var oe=__name((r=>{if(r===null||r===void 0){return void 0}if(typeof r!=="string"){throw new TypeError("RFC-3339 date-times must be expressed as strings")}const s=ie.exec(r);if(!s){throw new TypeError("Invalid RFC-3339 date-time value")}const[i,a,A,c,l,d,u,p]=s;const g=Z(we(a));const h=Be(A,"month",1,12);const C=Be(c,"day",1,31);return ge(g,h,C,{hours:l,minutes:d,seconds:u,fractionalMilliseconds:p})}),"parseRfc3339DateTime");var ae=new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?(([-+]\d{2}\:\d{2})|[zZ])$/);var Ae=__name((r=>{if(r===null||r===void 0){return void 0}if(typeof r!=="string"){throw new TypeError("RFC-3339 date-times must be expressed as strings")}const s=ae.exec(r);if(!s){throw new TypeError("Invalid RFC-3339 date-time value")}const[i,a,A,c,l,d,u,p,g]=s;const h=Z(we(a));const C=Be(A,"month",1,12);const y=Be(c,"day",1,31);const I=ge(h,C,y,{hours:l,minutes:d,seconds:u,fractionalMilliseconds:p});if(g.toUpperCase()!="Z"){I.setTime(I.getTime()-Qe(g))}return I}),"parseRfc3339DateTimeWithOffset");var ce=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$/);var le=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$/);var de=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})$/);var ue=__name((r=>{if(r===null||r===void 0){return void 0}if(typeof r!=="string"){throw new TypeError("RFC-7231 date-times must be expressed as strings")}let s=ce.exec(r);if(s){const[r,i,a,A,c,l,d,u]=s;return ge(Z(we(A)),Ee(a),Be(i,"day",1,31),{hours:c,minutes:l,seconds:d,fractionalMilliseconds:u})}s=le.exec(r);if(s){const[r,i,a,A,c,l,d,u]=s;return fe(ge(he(A),Ee(a),Be(i,"day",1,31),{hours:c,minutes:l,seconds:d,fractionalMilliseconds:u}))}s=de.exec(r);if(s){const[r,i,a,A,c,l,d,u]=s;return ge(Z(we(u)),Ee(i),Be(a.trimLeft(),"day",1,31),{hours:A,minutes:c,seconds:l,fractionalMilliseconds:d})}throw new TypeError("Invalid RFC-7231 date-time value")}),"parseRfc7231DateTime");var pe=__name((r=>{if(r===null||r===void 0){return void 0}let s;if(typeof r==="number"){s=r}else if(typeof r==="string"){s=U(r)}else if(typeof r==="object"&&r.tag===1){s=r.value}else{throw new TypeError("Epoch timestamps must be expressed as floating point numbers or their string representation")}if(Number.isNaN(s)||s===Infinity||s===-Infinity){throw new TypeError("Epoch timestamps must be valid, non-Infinite, non-NaN numerics")}return new Date(Math.round(s*1e3))}),"parseEpochTimestamp");var ge=__name(((r,s,i,a)=>{const A=s-1;ye(r,A,i);return new Date(Date.UTC(r,A,i,Be(a.hours,"hour",0,23),Be(a.minutes,"minute",0,59),Be(a.seconds,"seconds",0,60),be(a.fractionalMilliseconds)))}),"buildDate");var he=__name((r=>{const s=(new Date).getUTCFullYear();const i=Math.floor(s/100)*100+Z(we(r));if(i{if(r.getTime()-(new Date).getTime()>me){return new Date(Date.UTC(r.getUTCFullYear()-100,r.getUTCMonth(),r.getUTCDate(),r.getUTCHours(),r.getUTCMinutes(),r.getUTCSeconds(),r.getUTCMilliseconds()))}return r}),"adjustRfc850Year");var Ee=__name((r=>{const s=se.indexOf(r);if(s<0){throw new TypeError(`Invalid month: ${r}`)}return s+1}),"parseMonthByShortName");var Ce=[31,28,31,30,31,30,31,31,30,31,30,31];var ye=__name(((r,s,i)=>{let a=Ce[s];if(s===1&&Ie(r)){a=29}if(i>a){throw new TypeError(`Invalid day for ${se[s]} in ${r}: ${i}`)}}),"validateDayOfMonth");var Ie=__name((r=>r%4===0&&(r%100!==0||r%400===0)),"isLeapYear");var Be=__name(((r,s,i,a)=>{const A=ee(we(r));if(Aa){throw new TypeError(`${s} must be between ${i} and ${a}, inclusive`)}return A}),"parseDateValue");var be=__name((r=>{if(r===null||r===void 0){return 0}return G("0."+r)*1e3}),"parseMilliseconds");var Qe=__name((r=>{const s=r[0];let i=1;if(s=="+"){i=1}else if(s=="-"){i=-1}else{throw new TypeError(`Offset direction, ${s}, must be "+" or "-"`)}const a=Number(r.substring(1,3));const A=Number(r.substring(4,6));return i*(a*60+A)*60*1e3}),"parseOffsetToMilliseconds");var we=__name((r=>{let s=0;while(s{Object.entries(s).filter((([,r])=>r!==void 0)).forEach((([s,i])=>{if(r[s]==void 0||r[s]===""){r[s]=i}}));const i=r.message||r.Message||"UnknownError";r.message=i;delete r.Message;return r}),"decorateServiceException");var Re=__name((({output:r,parsedBody:s,exceptionCtor:i,errorCode:a})=>{const A=xe(r);const c=A.httpStatusCode?A.httpStatusCode+"":void 0;const l=new i({name:s?.code||s?.Code||a||c||"UnknownError",$fault:"client",$metadata:A});throw Se(l,s)}),"throwDefaultError");var Ne=__name((r=>({output:s,parsedBody:i,errorCode:a})=>{Re({output:s,parsedBody:i,exceptionCtor:r,errorCode:a})}),"withBaseException");var xe=__name((r=>({httpStatusCode:r.statusCode,requestId:r.headers["x-amzn-requestid"]??r.headers["x-amzn-request-id"]??r.headers["x-amz-request-id"],extendedRequestId:r.headers["x-amz-id-2"],cfId:r.headers["x-amz-cf-id"]})),"deserializeMetadata");var De=__name((r=>{switch(r){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{}}}),"loadConfigsForDefaultMode");var ke=false;var Te=__name((r=>{if(r&&!ke&&parseInt(r.substring(1,r.indexOf(".")))<16){ke=true}}),"emitWarningIfUnsupportedVersion");var _e=__name((r=>{const s=[];for(const i in h.AlgorithmId){const a=h.AlgorithmId[i];if(r[a]===void 0){continue}s.push({algorithmId:()=>a,checksumConstructor:()=>r[a]})}return{_checksumAlgorithms:s,addChecksumAlgorithm(r){this._checksumAlgorithms.push(r)},checksumAlgorithms(){return this._checksumAlgorithms}}}),"getChecksumConfiguration");var Pe=__name((r=>{const s={};r.checksumAlgorithms().forEach((r=>{s[r.algorithmId()]=r.checksumConstructor()}));return s}),"resolveChecksumRuntimeConfig");var Oe=__name((r=>{let s=r.retryStrategy;return{setRetryStrategy(r){s=r},retryStrategy(){return s}}}),"getRetryConfiguration");var Fe=__name((r=>{const s={};s.retryStrategy=r.retryStrategy();return s}),"resolveRetryRuntimeConfig");var Le=__name((r=>({..._e(r),...Oe(r)})),"getDefaultExtensionConfiguration");var Me=Le;var Ue=__name((r=>({...Pe(r),...Fe(r)})),"resolveDefaultRuntimeConfig");var He=__name((r=>Array.isArray(r)?r:[r]),"getArrayIfSingleItem");var Ge=__name((r=>{const s="#text";for(const i in r){if(r.hasOwnProperty(i)&&r[i][s]!==void 0){r[i]=r[i][s]}else if(typeof r[i]==="object"&&r[i]!==null){r[i]=Ge(r[i])}}return r}),"getValueFromTextNode");var qe=__name((r=>r!=null),"isSerializableHeaderValue");var Ve=__name((function LazyJsonString2(r){const s=Object.assign(new String(r),{deserializeJSON(){return JSON.parse(String(r))},toString(){return String(r)},toJSON(){return String(r)}});return s}),"LazyJsonString");Ve.from=r=>{if(r&&typeof r==="object"&&(r instanceof Ve||"deserializeJSON"in r)){return r}else if(typeof r==="string"||Object.getPrototypeOf(r)===String.prototype){return Ve(String(r))}return Ve(JSON.stringify(r))};Ve.fromObject=Ve.from;var je=class{static{__name(this,"NoOpLogger")}trace(){}debug(){}info(){}warn(){}error(){}};function map(r,s,i){let a;let A;let c;if(typeof s==="undefined"&&typeof i==="undefined"){a={};c=r}else{a=r;if(typeof s==="function"){A=s;c=i;return Je(a,A,c)}else{c=s}}for(const r of Object.keys(c)){if(!Array.isArray(c[r])){a[r]=c[r];continue}We(a,null,c,r)}return a}__name(map,"map");var ze=__name((r=>{const s={};for(const[i,a]of Object.entries(r||{})){s[i]=[,a]}return s}),"convertMap");var Ye=__name(((r,s)=>{const i={};for(const a in s){We(i,r,s,a)}return i}),"take");var Je=__name(((r,s,i)=>map(r,Object.entries(i).reduce(((r,[i,a])=>{if(Array.isArray(a)){r[i]=a}else{if(typeof a==="function"){r[i]=[s,a()]}else{r[i]=[s,a]}}return r}),{}))),"mapWithFilter");var We=__name(((r,s,i,a)=>{if(s!==null){let A=i[a];if(typeof A==="function"){A=[,A]}const[c=Xe,l=$e,d=a]=A;if(typeof c==="function"&&c(s[d])||typeof c!=="function"&&!!c){r[a]=l(s[d])}return}let[A,c]=i[a];if(typeof c==="function"){let s;const i=A===void 0&&(s=c())!=null;const l=typeof A==="function"&&!!A(void 0)||typeof A!=="function"&&!!A;if(i){r[a]=s}else if(l){r[a]=c()}}else{const s=A===void 0&&c!=null;const i=typeof A==="function"&&!!A(c)||typeof A!=="function"&&!!A;if(s||i){r[a]=c}}}),"applyInstruction");var Xe=__name((r=>r!=null),"nonNullish");var $e=__name((r=>r),"pass");function quoteHeader(r){if(r.includes(",")||r.includes('"')){r=`"${r.replace(/"/g,'\\"')}"`}return r}__name(quoteHeader,"quoteHeader");var Ke=__name((r=>{if(r!==r){return"NaN"}switch(r){case Infinity:return"Infinity";case-Infinity:return"-Infinity";default:return r}}),"serializeFloat");var Ze=__name((r=>r.toISOString().replace(".000Z","Z")),"serializeDateTime");var et=__name((r=>{if(r==null){return{}}if(Array.isArray(r)){return r.filter((r=>r!=null)).map(et)}if(typeof r==="object"){const s={};for(const i of Object.keys(r)){if(r[i]==null){continue}s[i]=et(r[i])}return s}return r}),"_json");function splitEvery(r,s,i){if(i<=0||!Number.isInteger(i)){throw new Error("Invalid number of delimiters ("+i+") for splitEvery.")}const a=r.split(s);if(i===1){return a}const A=[];let c="";for(let r=0;r{const s=r.length;const i=[];let a=false;let A=void 0;let c=0;for(let l=0;l{r=r.trim();const s=r.length;if(s<2){return r}if(r[0]===`"`&&r[s-1]===`"`){r=r.slice(1,s-1)}return r.replace(/\\"/g,'"')}))}),"splitHeader");0&&0},55756:r=>{var s=Object.defineProperty;var i=Object.getOwnPropertyDescriptor;var a=Object.getOwnPropertyNames;var A=Object.prototype.hasOwnProperty;var __name=(r,i)=>s(r,"name",{value:i,configurable:true});var __export=(r,i)=>{for(var a in i)s(r,a,{get:i[a],enumerable:true})};var __copyProps=(r,c,l,d)=>{if(c&&typeof c==="object"||typeof c==="function"){for(let u of a(c))if(!A.call(r,u)&&u!==l)s(r,u,{get:()=>c[u],enumerable:!(d=i(c,u))||d.enumerable})}return r};var __toCommonJS=r=>__copyProps(s({},"__esModule",{value:true}),r);var c={};__export(c,{AlgorithmId:()=>p,EndpointURLScheme:()=>u,FieldPosition:()=>I,HttpApiKeyAuthLocation:()=>d,HttpAuthLocation:()=>l,IniSectionType:()=>b,RequestHandlerProtocol:()=>Q,SMITHY_CONTEXT_KEY:()=>B,getDefaultClientConfiguration:()=>C,resolveDefaultRuntimeConfig:()=>y});r.exports=__toCommonJS(c);var l=(r=>{r["HEADER"]="header";r["QUERY"]="query";return r})(l||{});var d=(r=>{r["HEADER"]="header";r["QUERY"]="query";return r})(d||{});var u=(r=>{r["HTTP"]="http";r["HTTPS"]="https";return r})(u||{});var p=(r=>{r["MD5"]="md5";r["CRC32"]="crc32";r["CRC32C"]="crc32c";r["SHA1"]="sha1";r["SHA256"]="sha256";return r})(p||{});var g=__name((r=>{const s=[];if(r.sha256!==void 0){s.push({algorithmId:()=>"sha256",checksumConstructor:()=>r.sha256})}if(r.md5!=void 0){s.push({algorithmId:()=>"md5",checksumConstructor:()=>r.md5})}return{_checksumAlgorithms:s,addChecksumAlgorithm(r){this._checksumAlgorithms.push(r)},checksumAlgorithms(){return this._checksumAlgorithms}}}),"getChecksumConfiguration");var h=__name((r=>{const s={};r.checksumAlgorithms().forEach((r=>{s[r.algorithmId()]=r.checksumConstructor()}));return s}),"resolveChecksumRuntimeConfig");var C=__name((r=>({...g(r)})),"getDefaultClientConfiguration");var y=__name((r=>({...h(r)})),"resolveDefaultRuntimeConfig");var I=(r=>{r[r["HEADER"]=0]="HEADER";r[r["TRAILER"]=1]="TRAILER";return r})(I||{});var B="__smithy_context";var b=(r=>{r["PROFILE"]="profile";r["SSO_SESSION"]="sso-session";r["SERVICES"]="services";return r})(b||{});var Q=(r=>{r["HTTP_0_9"]="http/0.9";r["HTTP_1_0"]="http/1.0";r["TDS_8_0"]="tds/8.0";return r})(Q||{});0&&0},14681:(r,s,i)=>{var a=Object.defineProperty;var A=Object.getOwnPropertyDescriptor;var c=Object.getOwnPropertyNames;var l=Object.prototype.hasOwnProperty;var __name=(r,s)=>a(r,"name",{value:s,configurable:true});var __export=(r,s)=>{for(var i in s)a(r,i,{get:s[i],enumerable:true})};var __copyProps=(r,s,i,d)=>{if(s&&typeof s==="object"||typeof s==="function"){for(let u of c(s))if(!l.call(r,u)&&u!==i)a(r,u,{get:()=>s[u],enumerable:!(d=A(s,u))||d.enumerable})}return r};var __toCommonJS=r=>__copyProps(a({},"__esModule",{value:true}),r);var d={};__export(d,{parseUrl:()=>p});r.exports=__toCommonJS(d);var u=i(4769);var p=__name((r=>{if(typeof r==="string"){return p(new URL(r))}const{hostname:s,pathname:i,port:a,protocol:A,search:c}=r;let l;if(c){l=(0,u.parseQueryString)(c)}return{hostname:s,port:a?parseInt(a):void 0,protocol:A,path:i,query:l}}),"parseUrl");0&&0},30305:(r,s,i)=>{"use strict";Object.defineProperty(s,"__esModule",{value:true});s.fromBase64=void 0;const a=i(31381);const A=/^[A-Za-z0-9+/]*={0,2}$/;const fromBase64=r=>{if(r.length*3%4!==0){throw new TypeError(`Incorrect padding on base64 string.`)}if(!A.exec(r)){throw new TypeError(`Invalid base64 string.`)}const s=(0,a.fromString)(r,"base64");return new Uint8Array(s.buffer,s.byteOffset,s.byteLength)};s.fromBase64=fromBase64},75600:(r,s,i)=>{var a=Object.defineProperty;var A=Object.getOwnPropertyDescriptor;var c=Object.getOwnPropertyNames;var l=Object.prototype.hasOwnProperty;var __copyProps=(r,s,i,d)=>{if(s&&typeof s==="object"||typeof s==="function"){for(let u of c(s))if(!l.call(r,u)&&u!==i)a(r,u,{get:()=>s[u],enumerable:!(d=A(s,u))||d.enumerable})}return r};var __reExport=(r,s,i)=>(__copyProps(r,s,"default"),i&&__copyProps(i,s,"default"));var __toCommonJS=r=>__copyProps(a({},"__esModule",{value:true}),r);var d={};r.exports=__toCommonJS(d);__reExport(d,i(30305),r.exports);__reExport(d,i(74730),r.exports);0&&0},74730:(r,s,i)=>{"use strict";Object.defineProperty(s,"__esModule",{value:true});s.toBase64=void 0;const a=i(31381);const A=i(41895);const toBase64=r=>{let s;if(typeof r==="string"){s=(0,A.fromUtf8)(r)}else{s=r}if(typeof s!=="object"||typeof s.byteOffset!=="number"||typeof s.byteLength!=="number"){throw new Error("@smithy/util-base64: toBase64 encoder function only accepts string | Uint8Array.")}return(0,a.fromArrayBuffer)(s.buffer,s.byteOffset,s.byteLength).toString("base64")};s.toBase64=toBase64},68075:(r,s,i)=>{var a=Object.defineProperty;var A=Object.getOwnPropertyDescriptor;var c=Object.getOwnPropertyNames;var l=Object.prototype.hasOwnProperty;var __name=(r,s)=>a(r,"name",{value:s,configurable:true});var __export=(r,s)=>{for(var i in s)a(r,i,{get:s[i],enumerable:true})};var __copyProps=(r,s,i,d)=>{if(s&&typeof s==="object"||typeof s==="function"){for(let u of c(s))if(!l.call(r,u)&&u!==i)a(r,u,{get:()=>s[u],enumerable:!(d=A(s,u))||d.enumerable})}return r};var __toCommonJS=r=>__copyProps(a({},"__esModule",{value:true}),r);var d={};__export(d,{calculateBodyLength:()=>p});r.exports=__toCommonJS(d);var u=i(57147);var p=__name((r=>{if(!r){return 0}if(typeof r==="string"){return Buffer.byteLength(r)}else if(typeof r.byteLength==="number"){return r.byteLength}else if(typeof r.size==="number"){return r.size}else if(typeof r.start==="number"&&typeof r.end==="number"){return r.end+1-r.start}else if(typeof r.path==="string"||Buffer.isBuffer(r.path)){return(0,u.lstatSync)(r.path).size}else if(typeof r.fd==="number"){return(0,u.fstatSync)(r.fd).size}throw new Error(`Body Length computation failed for ${r}`)}),"calculateBodyLength");0&&0},31381:(r,s,i)=>{var a=Object.defineProperty;var A=Object.getOwnPropertyDescriptor;var c=Object.getOwnPropertyNames;var l=Object.prototype.hasOwnProperty;var __name=(r,s)=>a(r,"name",{value:s,configurable:true});var __export=(r,s)=>{for(var i in s)a(r,i,{get:s[i],enumerable:true})};var __copyProps=(r,s,i,d)=>{if(s&&typeof s==="object"||typeof s==="function"){for(let u of c(s))if(!l.call(r,u)&&u!==i)a(r,u,{get:()=>s[u],enumerable:!(d=A(s,u))||d.enumerable})}return r};var __toCommonJS=r=>__copyProps(a({},"__esModule",{value:true}),r);var d={};__export(d,{fromArrayBuffer:()=>g,fromString:()=>h});r.exports=__toCommonJS(d);var u=i(10780);var p=i(14300);var g=__name(((r,s=0,i=r.byteLength-s)=>{if(!(0,u.isArrayBuffer)(r)){throw new TypeError(`The "input" argument must be ArrayBuffer. Received type ${typeof r} (${r})`)}return p.Buffer.from(r,s,i)}),"fromArrayBuffer");var h=__name(((r,s)=>{if(typeof r!=="string"){throw new TypeError(`The "input" argument must be of type string. Received type ${typeof r} (${r})`)}return s?p.Buffer.from(r,s):p.Buffer.from(r)}),"fromString");0&&0},83375:r=>{var s=Object.defineProperty;var i=Object.getOwnPropertyDescriptor;var a=Object.getOwnPropertyNames;var A=Object.prototype.hasOwnProperty;var __name=(r,i)=>s(r,"name",{value:i,configurable:true});var __export=(r,i)=>{for(var a in i)s(r,a,{get:i[a],enumerable:true})};var __copyProps=(r,c,l,d)=>{if(c&&typeof c==="object"||typeof c==="function"){for(let u of a(c))if(!A.call(r,u)&&u!==l)s(r,u,{get:()=>c[u],enumerable:!(d=i(c,u))||d.enumerable})}return r};var __toCommonJS=r=>__copyProps(s({},"__esModule",{value:true}),r);var c={};__export(c,{SelectorType:()=>u,booleanSelector:()=>l,numberSelector:()=>d});r.exports=__toCommonJS(c);var l=__name(((r,s,i)=>{if(!(s in r))return void 0;if(r[s]==="true")return true;if(r[s]==="false")return false;throw new Error(`Cannot load ${i} "${s}". Expected "true" or "false", got ${r[s]}.`)}),"booleanSelector");var d=__name(((r,s,i)=>{if(!(s in r))return void 0;const a=parseInt(r[s],10);if(Number.isNaN(a)){throw new TypeError(`Cannot load ${i} '${s}'. Expected number, got '${r[s]}'.`)}return a}),"numberSelector");var u=(r=>{r["ENV"]="env";r["CONFIG"]="shared config entry";return r})(u||{});0&&0},72429:(r,s,i)=>{var a=Object.create;var A=Object.defineProperty;var c=Object.getOwnPropertyDescriptor;var l=Object.getOwnPropertyNames;var d=Object.getPrototypeOf;var u=Object.prototype.hasOwnProperty;var __name=(r,s)=>A(r,"name",{value:s,configurable:true});var __export=(r,s)=>{for(var i in s)A(r,i,{get:s[i],enumerable:true})};var __copyProps=(r,s,i,a)=>{if(s&&typeof s==="object"||typeof s==="function"){for(let d of l(s))if(!u.call(r,d)&&d!==i)A(r,d,{get:()=>s[d],enumerable:!(a=c(s,d))||a.enumerable})}return r};var __toESM=(r,s,i)=>(i=r!=null?a(d(r)):{},__copyProps(s||!r||!r.__esModule?A(i,"default",{value:r,enumerable:true}):i,r));var __toCommonJS=r=>__copyProps(A({},"__esModule",{value:true}),r);var p={};__export(p,{resolveDefaultsModeConfig:()=>N});r.exports=__toCommonJS(p);var g=i(53098);var h=i(33461);var C=i(79721);var y="AWS_EXECUTION_ENV";var I="AWS_REGION";var B="AWS_DEFAULT_REGION";var b="AWS_EC2_METADATA_DISABLED";var Q=["in-region","cross-region","mobile","standard","legacy"];var w="/latest/meta-data/placement/region";var v="AWS_DEFAULTS_MODE";var S="defaults_mode";var R={environmentVariableSelector:r=>r[v],configFileSelector:r=>r[S],default:"legacy"};var N=__name((({region:r=(0,h.loadConfig)(g.NODE_REGION_CONFIG_OPTIONS),defaultsMode:s=(0,h.loadConfig)(R)}={})=>(0,C.memoize)((async()=>{const i=typeof s==="function"?await s():s;switch(i?.toLowerCase()){case"auto":return x(r);case"in-region":case"cross-region":case"mobile":case"standard":case"legacy":return Promise.resolve(i?.toLocaleLowerCase());case void 0:return Promise.resolve("legacy");default:throw new Error(`Invalid parameter for "defaultsMode", expect ${Q.join(", ")}, got ${i}`)}}))),"resolveDefaultsModeConfig");var x=__name((async r=>{if(r){const s=typeof r==="function"?await r():r;const i=await D();if(!i){return"standard"}if(s===i){return"in-region"}else{return"cross-region"}}return"standard"}),"resolveNodeDefaultsModeAuto");var D=__name((async()=>{if(process.env[y]&&(process.env[I]||process.env[B])){return process.env[I]??process.env[B]}if(!process.env[b]){try{const{getInstanceMetadataEndpoint:r,httpRequest:s}=await Promise.resolve().then((()=>__toESM(i(7477))));const a=await r();return(await s({...a,path:w})).toString()}catch(r){}}}),"inferPhysicalRegion");0&&0},45473:(r,s,i)=>{var a=Object.defineProperty;var A=Object.getOwnPropertyDescriptor;var c=Object.getOwnPropertyNames;var l=Object.prototype.hasOwnProperty;var __name=(r,s)=>a(r,"name",{value:s,configurable:true});var __export=(r,s)=>{for(var i in s)a(r,i,{get:s[i],enumerable:true})};var __copyProps=(r,s,i,d)=>{if(s&&typeof s==="object"||typeof s==="function"){for(let u of c(s))if(!l.call(r,u)&&u!==i)a(r,u,{get:()=>s[u],enumerable:!(d=A(s,u))||d.enumerable})}return r};var __toCommonJS=r=>__copyProps(a({},"__esModule",{value:true}),r);var d={};__export(d,{EndpointCache:()=>u,EndpointError:()=>B,customEndpointFunctions:()=>y,isIpAddress:()=>g,isValidHostLabel:()=>C,resolveEndpoint:()=>X});r.exports=__toCommonJS(d);var u=class{constructor({size:r,params:s}){this.data=new Map;this.parameters=[];this.capacity=r??50;if(s){this.parameters=s}}static{__name(this,"EndpointCache")}get(r,s){const i=this.hash(r);if(i===false){return s()}if(!this.data.has(i)){if(this.data.size>this.capacity+10){const r=this.data.keys();let s=0;while(true){const{value:i,done:a}=r.next();this.data.delete(i);if(a||++s>10){break}}}this.data.set(i,s())}return this.data.get(i)}size(){return this.data.size}hash(r){let s="";const{parameters:i}=this;if(i.length===0){return false}for(const a of i){const i=String(r[a]??"");if(i.includes("|;")){return false}s+=i+"|;"}return s}};var p=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}$`);var g=__name((r=>p.test(r)||r.startsWith("[")&&r.endsWith("]")),"isIpAddress");var h=new RegExp(`^(?!.*-$)(?!-)[a-zA-Z0-9-]{1,63}$`);var C=__name(((r,s=false)=>{if(!s){return h.test(r)}const i=r.split(".");for(const r of i){if(!C(r)){return false}}return true}),"isValidHostLabel");var y={};var I="endpoints";function toDebugString(r){if(typeof r!=="object"||r==null){return r}if("ref"in r){return`$${toDebugString(r.ref)}`}if("fn"in r){return`${r.fn}(${(r.argv||[]).map(toDebugString).join(", ")})`}return JSON.stringify(r,null,2)}__name(toDebugString,"toDebugString");var B=class extends Error{static{__name(this,"EndpointError")}constructor(r){super(r);this.name="EndpointError"}};var b=__name(((r,s)=>r===s),"booleanEquals");var Q=__name((r=>{const s=r.split(".");const i=[];for(const a of s){const s=a.indexOf("[");if(s!==-1){if(a.indexOf("]")!==a.length-1){throw new B(`Path: '${r}' does not end with ']'`)}const A=a.slice(s+1,-1);if(Number.isNaN(parseInt(A))){throw new B(`Invalid array index: '${A}' in path: '${r}'`)}if(s!==0){i.push(a.slice(0,s))}i.push(A)}else{i.push(a)}}return i}),"getAttrPathList");var w=__name(((r,s)=>Q(s).reduce(((i,a)=>{if(typeof i!=="object"){throw new B(`Index '${a}' in '${s}' not found in '${JSON.stringify(r)}'`)}else if(Array.isArray(i)){return i[parseInt(a)]}return i[a]}),r)),"getAttr");var v=__name((r=>r!=null),"isSet");var S=__name((r=>!r),"not");var R=i(55756);var N={[R.EndpointURLScheme.HTTP]:80,[R.EndpointURLScheme.HTTPS]:443};var x=__name((r=>{const s=(()=>{try{if(r instanceof URL){return r}if(typeof r==="object"&&"hostname"in r){const{hostname:s,port:i,protocol:a="",path:A="",query:c={}}=r;const l=new URL(`${a}//${s}${i?`:${i}`:""}${A}`);l.search=Object.entries(c).map((([r,s])=>`${r}=${s}`)).join("&");return l}return new URL(r)}catch(r){return null}})();if(!s){console.error(`Unable to parse ${JSON.stringify(r)} as a whatwg URL.`);return null}const i=s.href;const{host:a,hostname:A,pathname:c,protocol:l,search:d}=s;if(d){return null}const u=l.slice(0,-1);if(!Object.values(R.EndpointURLScheme).includes(u)){return null}const p=g(A);const h=i.includes(`${a}:${N[u]}`)||typeof r==="string"&&r.includes(`${a}:${N[u]}`);const C=`${a}${h?`:${N[u]}`:``}`;return{scheme:u,authority:C,path:c,normalizedPath:c.endsWith("/")?c:`${c}/`,isIp:p}}),"parseURL");var D=__name(((r,s)=>r===s),"stringEquals");var k=__name(((r,s,i,a)=>{if(s>=i||r.lengthencodeURIComponent(r).replace(/[!*'()]/g,(r=>`%${r.charCodeAt(0).toString(16).toUpperCase()}`))),"uriEncode");var _={booleanEquals:b,getAttr:w,isSet:v,isValidHostLabel:C,not:S,parseURL:x,stringEquals:D,substring:k,uriEncode:T};var P=__name(((r,s)=>{const i=[];const a={...s.endpointParams,...s.referenceRecord};let A=0;while(A{const i={...s.endpointParams,...s.referenceRecord};return i[r]}),"getReferenceValue");var L=__name(((r,s,i)=>{if(typeof r==="string"){return P(r,i)}else if(r["fn"]){return M(r,i)}else if(r["ref"]){return O(r,i)}throw new B(`'${s}': ${String(r)} is not a string, function or reference.`)}),"evaluateExpression");var M=__name((({fn:r,argv:s},i)=>{const a=s.map((r=>["boolean","number"].includes(typeof r)?r:L(r,"arg",i)));const A=r.split(".");if(A[0]in y&&A[1]!=null){return y[A[0]][A[1]](...a)}return _[r](...a)}),"callFunction");var U=__name((({assign:r,...s},i)=>{if(r&&r in i.referenceRecord){throw new B(`'${r}' is already defined in Reference Record.`)}const a=M(s,i);i.logger?.debug?.(`${I} evaluateCondition: ${toDebugString(s)} = ${toDebugString(a)}`);return{result:a===""?true:!!a,...r!=null&&{toAssign:{name:r,value:a}}}}),"evaluateCondition");var H=__name(((r=[],s)=>{const i={};for(const a of r){const{result:r,toAssign:A}=U(a,{...s,referenceRecord:{...s.referenceRecord,...i}});if(!r){return{result:r}}if(A){i[A.name]=A.value;s.logger?.debug?.(`${I} assign: ${A.name} := ${toDebugString(A.value)}`)}}return{result:true,referenceRecord:i}}),"evaluateConditions");var G=__name(((r,s)=>Object.entries(r).reduce(((r,[i,a])=>({...r,[i]:a.map((r=>{const a=L(r,"Header value entry",s);if(typeof a!=="string"){throw new B(`Header '${i}' value '${a}' is not a string`)}return a}))})),{})),"getEndpointHeaders");var q=__name(((r,s)=>{if(Array.isArray(r)){return r.map((r=>q(r,s)))}switch(typeof r){case"string":return P(r,s);case"object":if(r===null){throw new B(`Unexpected endpoint property: ${r}`)}return V(r,s);case"boolean":return r;default:throw new B(`Unexpected endpoint property type: ${typeof r}`)}}),"getEndpointProperty");var V=__name(((r,s)=>Object.entries(r).reduce(((r,[i,a])=>({...r,[i]:q(a,s)})),{})),"getEndpointProperties");var j=__name(((r,s)=>{const i=L(r,"Endpoint URL",s);if(typeof i==="string"){try{return new URL(i)}catch(r){console.error(`Failed to construct URL with ${i}`,r);throw r}}throw new B(`Endpoint URL must be a string, got ${typeof i}`)}),"getEndpointUrl");var z=__name(((r,s)=>{const{conditions:i,endpoint:a}=r;const{result:A,referenceRecord:c}=H(i,s);if(!A){return}const l={...s,referenceRecord:{...s.referenceRecord,...c}};const{url:d,properties:u,headers:p}=a;s.logger?.debug?.(`${I} Resolving endpoint from template: ${toDebugString(a)}`);return{...p!=void 0&&{headers:G(p,l)},...u!=void 0&&{properties:V(u,l)},url:j(d,l)}}),"evaluateEndpointRule");var Y=__name(((r,s)=>{const{conditions:i,error:a}=r;const{result:A,referenceRecord:c}=H(i,s);if(!A){return}throw new B(L(a,"Error",{...s,referenceRecord:{...s.referenceRecord,...c}}))}),"evaluateErrorRule");var J=__name(((r,s)=>{const{conditions:i,rules:a}=r;const{result:A,referenceRecord:c}=H(i,s);if(!A){return}return W(a,{...s,referenceRecord:{...s.referenceRecord,...c}})}),"evaluateTreeRule");var W=__name(((r,s)=>{for(const i of r){if(i.type==="endpoint"){const r=z(i,s);if(r){return r}}else if(i.type==="error"){Y(i,s)}else if(i.type==="tree"){const r=J(i,s);if(r){return r}}else{throw new B(`Unknown endpoint rule: ${i}`)}}throw new B(`Rules evaluation failed`)}),"evaluateRules");var X=__name(((r,s)=>{const{endpointParams:i,logger:a}=s;const{parameters:A,rules:c}=r;s.logger?.debug?.(`${I} Initial EndpointParams: ${toDebugString(i)}`);const l=Object.entries(A).filter((([,r])=>r.default!=null)).map((([r,s])=>[r,s.default]));if(l.length>0){for(const[r,s]of l){i[r]=i[r]??s}}const d=Object.entries(A).filter((([,r])=>r.required)).map((([r])=>r));for(const r of d){if(i[r]==null){throw new B(`Missing required parameter: '${r}'`)}}const u=W(c,{endpointParams:i,logger:a,referenceRecord:{}});s.logger?.debug?.(`${I} Resolved endpoint: ${toDebugString(u)}`);return u}),"resolveEndpoint");0&&0},45364:r=>{var s=Object.defineProperty;var i=Object.getOwnPropertyDescriptor;var a=Object.getOwnPropertyNames;var A=Object.prototype.hasOwnProperty;var __name=(r,i)=>s(r,"name",{value:i,configurable:true});var __export=(r,i)=>{for(var a in i)s(r,a,{get:i[a],enumerable:true})};var __copyProps=(r,c,l,d)=>{if(c&&typeof c==="object"||typeof c==="function"){for(let u of a(c))if(!A.call(r,u)&&u!==l)s(r,u,{get:()=>c[u],enumerable:!(d=i(c,u))||d.enumerable})}return r};var __toCommonJS=r=>__copyProps(s({},"__esModule",{value:true}),r);var c={};__export(c,{fromHex:()=>fromHex,toHex:()=>toHex});r.exports=__toCommonJS(c);var l={};var d={};for(let r=0;r<256;r++){let s=r.toString(16).toLowerCase();if(s.length===1){s=`0${s}`}l[r]=s;d[s]=r}function fromHex(r){if(r.length%2!==0){throw new Error("Hex encoded strings must have an even number length")}const s=new Uint8Array(r.length/2);for(let i=0;i{var a=Object.defineProperty;var A=Object.getOwnPropertyDescriptor;var c=Object.getOwnPropertyNames;var l=Object.prototype.hasOwnProperty;var __name=(r,s)=>a(r,"name",{value:s,configurable:true});var __export=(r,s)=>{for(var i in s)a(r,i,{get:s[i],enumerable:true})};var __copyProps=(r,s,i,d)=>{if(s&&typeof s==="object"||typeof s==="function"){for(let u of c(s))if(!l.call(r,u)&&u!==i)a(r,u,{get:()=>s[u],enumerable:!(d=A(s,u))||d.enumerable})}return r};var __toCommonJS=r=>__copyProps(a({},"__esModule",{value:true}),r);var d={};__export(d,{getSmithyContext:()=>p,normalizeProvider:()=>g});r.exports=__toCommonJS(d);var u=i(55756);var p=__name((r=>r[u.SMITHY_CONTEXT_KEY]||(r[u.SMITHY_CONTEXT_KEY]={})),"getSmithyContext");var g=__name((r=>{if(typeof r==="function")return r;const s=Promise.resolve(r);return()=>s}),"normalizeProvider");0&&0},84902:(r,s,i)=>{var a=Object.defineProperty;var A=Object.getOwnPropertyDescriptor;var c=Object.getOwnPropertyNames;var l=Object.prototype.hasOwnProperty;var __name=(r,s)=>a(r,"name",{value:s,configurable:true});var __export=(r,s)=>{for(var i in s)a(r,i,{get:s[i],enumerable:true})};var __copyProps=(r,s,i,d)=>{if(s&&typeof s==="object"||typeof s==="function"){for(let u of c(s))if(!l.call(r,u)&&u!==i)a(r,u,{get:()=>s[u],enumerable:!(d=A(s,u))||d.enumerable})}return r};var __toCommonJS=r=>__copyProps(a({},"__esModule",{value:true}),r);var d={};__export(d,{AdaptiveRetryStrategy:()=>k,ConfiguredRetryStrategy:()=>T,DEFAULT_MAX_ATTEMPTS:()=>p,DEFAULT_RETRY_DELAY_BASE:()=>y,DEFAULT_RETRY_MODE:()=>g,DefaultRateLimiter:()=>C,INITIAL_RETRY_TOKENS:()=>b,INVOCATION_ID_HEADER:()=>S,MAXIMUM_RETRY_DELAY:()=>I,NO_RETRY_INCREMENT:()=>v,REQUEST_HEADER:()=>R,RETRY_COST:()=>Q,RETRY_MODES:()=>u,StandardRetryStrategy:()=>D,THROTTLING_RETRY_DELAY_BASE:()=>B,TIMEOUT_RETRY_COST:()=>w});r.exports=__toCommonJS(d);var u=(r=>{r["STANDARD"]="standard";r["ADAPTIVE"]="adaptive";return r})(u||{});var p=3;var g="standard";var h=i(6375);var C=class _DefaultRateLimiter{constructor(r){this.currentCapacity=0;this.enabled=false;this.lastMaxRate=0;this.measuredTxRate=0;this.requestCount=0;this.lastTimestamp=0;this.timeWindow=0;this.beta=r?.beta??.7;this.minCapacity=r?.minCapacity??1;this.minFillRate=r?.minFillRate??.5;this.scaleConstant=r?.scaleConstant??.4;this.smooth=r?.smooth??.8;const s=this.getCurrentTimeInSeconds();this.lastThrottleTime=s;this.lastTxRateBucket=Math.floor(this.getCurrentTimeInSeconds());this.fillRate=this.minFillRate;this.maxCapacity=this.minCapacity}static{__name(this,"DefaultRateLimiter")}static{this.setTimeoutFn=setTimeout}getCurrentTimeInSeconds(){return Date.now()/1e3}async getSendToken(){return this.acquireTokenBucket(1)}async acquireTokenBucket(r){if(!this.enabled){return}this.refillTokenBucket();if(r>this.currentCapacity){const s=(r-this.currentCapacity)/this.fillRate*1e3;await new Promise((r=>_DefaultRateLimiter.setTimeoutFn(r,s)))}this.currentCapacity=this.currentCapacity-r}refillTokenBucket(){const r=this.getCurrentTimeInSeconds();if(!this.lastTimestamp){this.lastTimestamp=r;return}const s=(r-this.lastTimestamp)*this.fillRate;this.currentCapacity=Math.min(this.maxCapacity,this.currentCapacity+s);this.lastTimestamp=r}updateClientSendingRate(r){let s;this.updateMeasuredRate();if((0,h.isThrottlingError)(r)){const r=!this.enabled?this.measuredTxRate:Math.min(this.measuredTxRate,this.fillRate);this.lastMaxRate=r;this.calculateTimeWindow();this.lastThrottleTime=this.getCurrentTimeInSeconds();s=this.cubicThrottle(r);this.enableTokenBucket()}else{this.calculateTimeWindow();s=this.cubicSuccess(this.getCurrentTimeInSeconds())}const i=Math.min(s,2*this.measuredTxRate);this.updateTokenBucketRate(i)}calculateTimeWindow(){this.timeWindow=this.getPrecise(Math.pow(this.lastMaxRate*(1-this.beta)/this.scaleConstant,1/3))}cubicThrottle(r){return this.getPrecise(r*this.beta)}cubicSuccess(r){return this.getPrecise(this.scaleConstant*Math.pow(r-this.lastThrottleTime-this.timeWindow,3)+this.lastMaxRate)}enableTokenBucket(){this.enabled=true}updateTokenBucketRate(r){this.refillTokenBucket();this.fillRate=Math.max(r,this.minFillRate);this.maxCapacity=Math.max(r,this.minCapacity);this.currentCapacity=Math.min(this.currentCapacity,this.maxCapacity)}updateMeasuredRate(){const r=this.getCurrentTimeInSeconds();const s=Math.floor(r*2)/2;this.requestCount++;if(s>this.lastTxRateBucket){const r=this.requestCount/(s-this.lastTxRateBucket);this.measuredTxRate=this.getPrecise(r*this.smooth+this.measuredTxRate*(1-this.smooth));this.requestCount=0;this.lastTxRateBucket=s}}getPrecise(r){return parseFloat(r.toFixed(8))}};var y=100;var I=20*1e3;var B=500;var b=500;var Q=5;var w=10;var v=1;var S="amz-sdk-invocation-id";var R="amz-sdk-request";var N=__name((()=>{let r=y;const s=__name((s=>Math.floor(Math.min(I,Math.random()*2**s*r))),"computeNextBackoffDelay");const i=__name((s=>{r=s}),"setDelayBase");return{computeNextBackoffDelay:s,setDelayBase:i}}),"getDefaultRetryBackoffStrategy");var x=__name((({retryDelay:r,retryCount:s,retryCost:i})=>{const a=__name((()=>s),"getRetryCount");const A=__name((()=>Math.min(I,r)),"getRetryDelay");const c=__name((()=>i),"getRetryCost");return{getRetryCount:a,getRetryDelay:A,getRetryCost:c}}),"createDefaultRetryToken");var D=class{constructor(r){this.maxAttempts=r;this.mode="standard";this.capacity=b;this.retryBackoffStrategy=N();this.maxAttemptsProvider=typeof r==="function"?r:async()=>r}static{__name(this,"StandardRetryStrategy")}async acquireInitialRetryToken(r){return x({retryDelay:y,retryCount:0})}async refreshRetryTokenForRetry(r,s){const i=await this.getMaxAttempts();if(this.shouldRetry(r,s,i)){const i=s.errorType;this.retryBackoffStrategy.setDelayBase(i==="THROTTLING"?B:y);const a=this.retryBackoffStrategy.computeNextBackoffDelay(r.getRetryCount());const A=s.retryAfterHint?Math.max(s.retryAfterHint.getTime()-Date.now()||0,a):a;const c=this.getCapacityCost(i);this.capacity-=c;return x({retryDelay:A,retryCount:r.getRetryCount()+1,retryCost:c})}throw new Error("No retry token available")}recordSuccess(r){this.capacity=Math.max(b,this.capacity+(r.getRetryCost()??v))}getCapacity(){return this.capacity}async getMaxAttempts(){try{return await this.maxAttemptsProvider()}catch(r){console.warn(`Max attempts provider could not resolve. Using default of ${p}`);return p}}shouldRetry(r,s,i){const a=r.getRetryCount()+1;return a=this.getCapacityCost(s.errorType)&&this.isRetryableError(s.errorType)}getCapacityCost(r){return r==="TRANSIENT"?w:Q}isRetryableError(r){return r==="THROTTLING"||r==="TRANSIENT"}};var k=class{constructor(r,s){this.maxAttemptsProvider=r;this.mode="adaptive";const{rateLimiter:i}=s??{};this.rateLimiter=i??new C;this.standardRetryStrategy=new D(r)}static{__name(this,"AdaptiveRetryStrategy")}async acquireInitialRetryToken(r){await this.rateLimiter.getSendToken();return this.standardRetryStrategy.acquireInitialRetryToken(r)}async refreshRetryTokenForRetry(r,s){this.rateLimiter.updateClientSendingRate(s);return this.standardRetryStrategy.refreshRetryTokenForRetry(r,s)}recordSuccess(r){this.rateLimiter.updateClientSendingRate({});this.standardRetryStrategy.recordSuccess(r)}};var T=class extends D{static{__name(this,"ConfiguredRetryStrategy")}constructor(r,s=y){super(typeof r==="function"?r:async()=>r);if(typeof s==="number"){this.computeNextBackoffDelay=()=>s}else{this.computeNextBackoffDelay=s}}async refreshRetryTokenForRetry(r,s){const i=await super.refreshRetryTokenForRetry(r,s);i.getRetryDelay=()=>this.computeNextBackoffDelay(i.getRetryCount());return i}};0&&0},39361:(r,s)=>{"use strict";Object.defineProperty(s,"__esModule",{value:true});s.ByteArrayCollector=void 0;class ByteArrayCollector{constructor(r){this.allocByteArray=r;this.byteLength=0;this.byteArrays=[]}push(r){this.byteArrays.push(r);this.byteLength+=r.byteLength}flush(){if(this.byteArrays.length===1){const r=this.byteArrays[0];this.reset();return r}const r=this.allocByteArray(this.byteLength);let s=0;for(let i=0;i{"use strict";Object.defineProperty(s,"__esModule",{value:true});s.ChecksumStream=void 0;const i=typeof ReadableStream==="function"?ReadableStream:function(){};class ChecksumStream extends i{}s.ChecksumStream=ChecksumStream},6982:(r,s,i)=>{"use strict";Object.defineProperty(s,"__esModule",{value:true});s.ChecksumStream=void 0;const a=i(75600);const A=i(12781);class ChecksumStream extends A.Duplex{constructor({expectedChecksum:r,checksum:s,source:i,checksumSourceLocation:A,base64Encoder:c}){var l,d;super();if(typeof i.pipe==="function"){this.source=i}else{throw new Error(`@smithy/util-stream: unsupported source type ${(d=(l=i===null||i===void 0?void 0:i.constructor)===null||l===void 0?void 0:l.name)!==null&&d!==void 0?d:i} in ChecksumStream.`)}this.base64Encoder=c!==null&&c!==void 0?c:a.toBase64;this.expectedChecksum=r;this.checksum=s;this.checksumSourceLocation=A;this.source.pipe(this)}_read(r){}_write(r,s,i){try{this.checksum.update(r);this.push(r)}catch(r){return i(r)}return i()}async _final(r){try{const s=await this.checksum.digest();const i=this.base64Encoder(s);if(this.expectedChecksum!==i){return r(new Error(`Checksum mismatch: expected "${this.expectedChecksum}" but received "${i}"`+` in response header "${this.checksumSourceLocation}".`))}}catch(s){return r(s)}this.push(null);return r()}}s.ChecksumStream=ChecksumStream},72313:(r,s,i)=>{"use strict";Object.defineProperty(s,"__esModule",{value:true});s.createChecksumStream=void 0;const a=i(75600);const A=i(57578);const c=i(78551);const createChecksumStream=({expectedChecksum:r,checksum:s,source:i,checksumSourceLocation:l,base64Encoder:d})=>{var u,p;if(!(0,A.isReadableStream)(i)){throw new Error(`@smithy/util-stream: unsupported source type ${(p=(u=i===null||i===void 0?void 0:i.constructor)===null||u===void 0?void 0:u.name)!==null&&p!==void 0?p:i} in ChecksumStream.`)}const g=d!==null&&d!==void 0?d:a.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(r,i){s.update(r);i.enqueue(r)},async flush(i){const a=await s.digest();const A=g(a);if(r!==A){const s=new Error(`Checksum mismatch: expected "${r}" but received "${A}"`+` in response header "${l}".`);i.error(s)}else{i.terminate()}}});i.pipeThrough(h);const C=h.readable;Object.setPrototypeOf(C,c.ChecksumStream.prototype);return C};s.createChecksumStream=createChecksumStream},21927:(r,s,i)=>{"use strict";Object.defineProperty(s,"__esModule",{value:true});s.createChecksumStream=void 0;const a=i(57578);const A=i(6982);const c=i(72313);function createChecksumStream(r){if(typeof ReadableStream==="function"&&(0,a.isReadableStream)(r.source)){return(0,c.createChecksumStream)(r)}return new A.ChecksumStream(r)}s.createChecksumStream=createChecksumStream},33259:(r,s,i)=>{"use strict";Object.defineProperty(s,"__esModule",{value:true});s.createBufferedReadable=void 0;const a=i(84492);const A=i(39361);const c=i(92558);const l=i(57578);function createBufferedReadable(r,s,i){if((0,l.isReadableStream)(r)){return(0,c.createBufferedReadableStream)(r,s,i)}const d=new a.Readable({read(){}});let u=false;let p=0;const g=["",new A.ByteArrayCollector((r=>new Uint8Array(r))),new A.ByteArrayCollector((r=>Buffer.from(new Uint8Array(r))))];let h=-1;r.on("data",(r=>{const a=(0,c.modeOf)(r);if(h!==a){if(h>=0){d.push((0,c.flush)(g,h))}h=a}if(h===-1){d.push(r);return}const A=(0,c.sizeOf)(r);p+=A;const l=(0,c.sizeOf)(g[h]);if(A>=s&&l===0){d.push(r)}else{const a=(0,c.merge)(g,h,r);if(!u&&p>s*2){u=true;i===null||i===void 0?void 0:i.warn(`@smithy/util-stream - stream chunk size ${A} is below threshold of ${s}, automatically buffering.`)}if(a>=s){d.push((0,c.flush)(g,h))}}}));r.on("end",(()=>{if(h!==-1){const r=(0,c.flush)(g,h);if((0,c.sizeOf)(r)>0){d.push(r)}}d.push(null)}));return d}s.createBufferedReadable=createBufferedReadable},92558:(r,s,i)=>{"use strict";Object.defineProperty(s,"__esModule",{value:true});s.modeOf=s.sizeOf=s.flush=s.merge=s.createBufferedReadable=s.createBufferedReadableStream=void 0;const a=i(39361);function createBufferedReadableStream(r,s,i){const A=r.getReader();let c=false;let l=0;const d=["",new a.ByteArrayCollector((r=>new Uint8Array(r)))];let u=-1;const pull=async r=>{const{value:a,done:p}=await A.read();const g=a;if(p){if(u!==-1){const s=flush(d,u);if(sizeOf(s)>0){r.enqueue(s)}}r.close()}else{const a=modeOf(g);if(u!==a){if(u>=0){r.enqueue(flush(d,u))}u=a}if(u===-1){r.enqueue(g);return}const A=sizeOf(g);l+=A;const p=sizeOf(d[u]);if(A>=s&&p===0){r.enqueue(g)}else{const a=merge(d,u,g);if(!c&&l>s*2){c=true;i===null||i===void 0?void 0:i.warn(`@smithy/util-stream - stream chunk size ${A} is below threshold of ${s}, automatically buffering.`)}if(a>=s){r.enqueue(flush(d,u))}else{await pull(r)}}}};return new ReadableStream({pull:pull})}s.createBufferedReadableStream=createBufferedReadableStream;s.createBufferedReadable=createBufferedReadableStream;function merge(r,s,i){switch(s){case 0:r[0]+=i;return sizeOf(r[0]);case 1:case 2:r[s].push(i);return sizeOf(r[s])}}s.merge=merge;function flush(r,s){switch(s){case 0:const i=r[0];r[0]="";return i;case 1:case 2:return r[s].flush()}throw new Error(`@smithy/util-stream - invalid index ${s} given to flush()`)}s.flush=flush;function sizeOf(r){var s,i;return(i=(s=r===null||r===void 0?void 0:r.byteLength)!==null&&s!==void 0?s:r===null||r===void 0?void 0:r.length)!==null&&i!==void 0?i:0}s.sizeOf=sizeOf;function modeOf(r){if(typeof Buffer!=="undefined"&&r instanceof Buffer){return 2}if(r instanceof Uint8Array){return 1}if(typeof r==="string"){return 0}return-1}s.modeOf=modeOf},23636:(r,s,i)=>{"use strict";Object.defineProperty(s,"__esModule",{value:true});s.getAwsChunkedEncodingStream=void 0;const a=i(12781);const getAwsChunkedEncodingStream=(r,s)=>{const{base64Encoder:i,bodyLengthChecker:A,checksumAlgorithmFn:c,checksumLocationName:l,streamHasher:d}=s;const u=i!==undefined&&c!==undefined&&l!==undefined&&d!==undefined;const p=u?d(c,r):undefined;const g=new a.Readable({read:()=>{}});r.on("data",(r=>{const s=A(r)||0;g.push(`${s.toString(16)}\r\n`);g.push(r);g.push("\r\n")}));r.on("end",(async()=>{g.push(`0\r\n`);if(u){const r=i(await p);g.push(`${l}:${r}\r\n`);g.push(`\r\n`)}g.push(null)}));return g};s.getAwsChunkedEncodingStream=getAwsChunkedEncodingStream},56711:(r,s)=>{"use strict";Object.defineProperty(s,"__esModule",{value:true});s.headStream=void 0;async function headStream(r,s){var i;let a=0;const A=[];const c=r.getReader();let l=false;while(!l){const{done:r,value:d}=await c.read();if(d){A.push(d);a+=(i=d===null||d===void 0?void 0:d.byteLength)!==null&&i!==void 0?i:0}if(a>=s){break}l=r}c.releaseLock();const d=new Uint8Array(Math.min(s,a));let u=0;for(const r of A){if(r.byteLength>d.byteLength-u){d.set(r.subarray(0,d.byteLength-u),u);break}else{d.set(r,u)}u+=r.length}return d}s.headStream=headStream},6708:(r,s,i)=>{"use strict";Object.defineProperty(s,"__esModule",{value:true});s.headStream=void 0;const a=i(12781);const A=i(56711);const c=i(57578);const headStream=(r,s)=>{if((0,c.isReadableStream)(r)){return(0,A.headStream)(r,s)}return new Promise(((i,a)=>{const A=new Collector;A.limit=s;r.pipe(A);r.on("error",(r=>{A.end();a(r)}));A.on("error",a);A.on("finish",(function(){const r=new Uint8Array(Buffer.concat(this.buffers));i(r)}))}))};s.headStream=headStream;class Collector extends a.Writable{constructor(){super(...arguments);this.buffers=[];this.limit=Infinity;this.bytesBuffered=0}_write(r,s,i){var a;this.buffers.push(r);this.bytesBuffered+=(a=r.byteLength)!==null&&a!==void 0?a:0;if(this.bytesBuffered>=this.limit){const r=this.bytesBuffered-this.limit;const s=this.buffers[this.buffers.length-1];this.buffers[this.buffers.length-1]=s.subarray(0,s.byteLength-r);this.emit("finish")}i()}}},96607:(r,s,i)=>{var a=Object.defineProperty;var A=Object.getOwnPropertyDescriptor;var c=Object.getOwnPropertyNames;var l=Object.prototype.hasOwnProperty;var __name=(r,s)=>a(r,"name",{value:s,configurable:true});var __export=(r,s)=>{for(var i in s)a(r,i,{get:s[i],enumerable:true})};var __copyProps=(r,s,i,d)=>{if(s&&typeof s==="object"||typeof s==="function"){for(let u of c(s))if(!l.call(r,u)&&u!==i)a(r,u,{get:()=>s[u],enumerable:!(d=A(s,u))||d.enumerable})}return r};var __reExport=(r,s,i)=>(__copyProps(r,s,"default"),i&&__copyProps(i,s,"default"));var __toCommonJS=r=>__copyProps(a({},"__esModule",{value:true}),r);var d={};__export(d,{Uint8ArrayBlobAdapter:()=>g});r.exports=__toCommonJS(d);var u=i(75600);var p=i(41895);function transformToString(r,s="utf-8"){if(s==="base64"){return(0,u.toBase64)(r)}return(0,p.toUtf8)(r)}__name(transformToString,"transformToString");function transformFromString(r,s){if(s==="base64"){return g.mutate((0,u.fromBase64)(r))}return g.mutate((0,p.fromUtf8)(r))}__name(transformFromString,"transformFromString");var g=class _Uint8ArrayBlobAdapter extends Uint8Array{static{__name(this,"Uint8ArrayBlobAdapter")}static fromString(r,s="utf-8"){switch(typeof r){case"string":return transformFromString(r,s);default:throw new Error(`Unsupported conversion from ${typeof r} to Uint8ArrayBlobAdapter.`)}}static mutate(r){Object.setPrototypeOf(r,_Uint8ArrayBlobAdapter.prototype);return r}transformToString(r="utf-8"){return transformToString(this,r)}};__reExport(d,i(6982),r.exports);__reExport(d,i(21927),r.exports);__reExport(d,i(33259),r.exports);__reExport(d,i(23636),r.exports);__reExport(d,i(6708),r.exports);__reExport(d,i(4515),r.exports);__reExport(d,i(88321),r.exports);__reExport(d,i(57578),r.exports);0&&0},12942:(r,s,i)=>{"use strict";Object.defineProperty(s,"__esModule",{value:true});s.sdkStreamMixin=void 0;const a=i(82687);const A=i(75600);const c=i(45364);const l=i(41895);const d=i(57578);const u="The stream has already been transformed.";const sdkStreamMixin=r=>{var s,i;if(!isBlobInstance(r)&&!(0,d.isReadableStream)(r)){const a=((i=(s=r===null||r===void 0?void 0:r.__proto__)===null||s===void 0?void 0:s.constructor)===null||i===void 0?void 0:i.name)||r;throw new Error(`Unexpected stream implementation, expect Blob or ReadableStream, got ${a}`)}let p=false;const transformToByteArray=async()=>{if(p){throw new Error(u)}p=true;return await(0,a.streamCollector)(r)};const blobToWebStream=r=>{if(typeof r.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 r.stream()};return Object.assign(r,{transformToByteArray:transformToByteArray,transformToString:async r=>{const s=await transformToByteArray();if(r==="base64"){return(0,A.toBase64)(s)}else if(r==="hex"){return(0,c.toHex)(s)}else if(r===undefined||r==="utf8"||r==="utf-8"){return(0,l.toUtf8)(s)}else if(typeof TextDecoder==="function"){return new TextDecoder(r).decode(s)}else{throw new Error("TextDecoder is not available, please make sure polyfill is provided.")}},transformToWebStream:()=>{if(p){throw new Error(u)}p=true;if(isBlobInstance(r)){return blobToWebStream(r)}else if((0,d.isReadableStream)(r)){return r}else{throw new Error(`Cannot transform payload to web stream, got ${r}`)}}})};s.sdkStreamMixin=sdkStreamMixin;const isBlobInstance=r=>typeof Blob==="function"&&r instanceof Blob},4515:(r,s,i)=>{"use strict";Object.defineProperty(s,"__esModule",{value:true});s.sdkStreamMixin=void 0;const a=i(20258);const A=i(31381);const c=i(12781);const l=i(12942);const d="The stream has already been transformed.";const sdkStreamMixin=r=>{var s,i;if(!(r instanceof c.Readable)){try{return(0,l.sdkStreamMixin)(r)}catch(a){const A=((i=(s=r===null||r===void 0?void 0:r.__proto__)===null||s===void 0?void 0:s.constructor)===null||i===void 0?void 0:i.name)||r;throw new Error(`Unexpected stream implementation, expect Stream.Readable instance, got ${A}`)}}let u=false;const transformToByteArray=async()=>{if(u){throw new Error(d)}u=true;return await(0,a.streamCollector)(r)};return Object.assign(r,{transformToByteArray:transformToByteArray,transformToString:async r=>{const s=await transformToByteArray();if(r===undefined||Buffer.isEncoding(r)){return(0,A.fromArrayBuffer)(s.buffer,s.byteOffset,s.byteLength).toString(r)}else{const i=new TextDecoder(r);return i.decode(s)}},transformToWebStream:()=>{if(u){throw new Error(d)}if(r.readableFlowing!==null){throw new Error("The stream has been consumed by other callbacks.")}if(typeof c.Readable.toWeb!=="function"){throw new Error("Readable.toWeb() is not supported. Please ensure a polyfill is available.")}u=true;return c.Readable.toWeb(r)}})};s.sdkStreamMixin=sdkStreamMixin},64693:(r,s)=>{"use strict";Object.defineProperty(s,"__esModule",{value:true});s.splitStream=void 0;async function splitStream(r){if(typeof r.stream==="function"){r=r.stream()}const s=r;return s.tee()}s.splitStream=splitStream},88321:(r,s,i)=>{"use strict";Object.defineProperty(s,"__esModule",{value:true});s.splitStream=void 0;const a=i(12781);const A=i(64693);const c=i(57578);async function splitStream(r){if((0,c.isReadableStream)(r)||(0,c.isBlob)(r)){return(0,A.splitStream)(r)}const s=new a.PassThrough;const i=new a.PassThrough;r.pipe(s);r.pipe(i);return[s,i]}s.splitStream=splitStream},57578:(r,s)=>{"use strict";Object.defineProperty(s,"__esModule",{value:true});s.isBlob=s.isReadableStream=void 0;const isReadableStream=r=>{var s;return typeof ReadableStream==="function"&&(((s=r===null||r===void 0?void 0:r.constructor)===null||s===void 0?void 0:s.name)===ReadableStream.name||r instanceof ReadableStream)};s.isReadableStream=isReadableStream;const isBlob=r=>{var s;return typeof Blob==="function"&&(((s=r===null||r===void 0?void 0:r.constructor)===null||s===void 0?void 0:s.name)===Blob.name||r instanceof Blob)};s.isBlob=isBlob},54197:r=>{var s=Object.defineProperty;var i=Object.getOwnPropertyDescriptor;var a=Object.getOwnPropertyNames;var A=Object.prototype.hasOwnProperty;var __name=(r,i)=>s(r,"name",{value:i,configurable:true});var __export=(r,i)=>{for(var a in i)s(r,a,{get:i[a],enumerable:true})};var __copyProps=(r,c,l,d)=>{if(c&&typeof c==="object"||typeof c==="function"){for(let u of a(c))if(!A.call(r,u)&&u!==l)s(r,u,{get:()=>c[u],enumerable:!(d=i(c,u))||d.enumerable})}return r};var __toCommonJS=r=>__copyProps(s({},"__esModule",{value:true}),r);var c={};__export(c,{escapeUri:()=>l,escapeUriPath:()=>u});r.exports=__toCommonJS(c);var l=__name((r=>encodeURIComponent(r).replace(/[!'()*]/g,d)),"escapeUri");var d=__name((r=>`%${r.charCodeAt(0).toString(16).toUpperCase()}`),"hexEncode");var u=__name((r=>r.split("/").map(l).join("/")),"escapeUriPath");0&&0},41895:(r,s,i)=>{var a=Object.defineProperty;var A=Object.getOwnPropertyDescriptor;var c=Object.getOwnPropertyNames;var l=Object.prototype.hasOwnProperty;var __name=(r,s)=>a(r,"name",{value:s,configurable:true});var __export=(r,s)=>{for(var i in s)a(r,i,{get:s[i],enumerable:true})};var __copyProps=(r,s,i,d)=>{if(s&&typeof s==="object"||typeof s==="function"){for(let u of c(s))if(!l.call(r,u)&&u!==i)a(r,u,{get:()=>s[u],enumerable:!(d=A(s,u))||d.enumerable})}return r};var __toCommonJS=r=>__copyProps(a({},"__esModule",{value:true}),r);var d={};__export(d,{fromUtf8:()=>p,toUint8Array:()=>g,toUtf8:()=>h});r.exports=__toCommonJS(d);var u=i(31381);var p=__name((r=>{const s=(0,u.fromString)(r,"utf8");return new Uint8Array(s.buffer,s.byteOffset,s.byteLength/Uint8Array.BYTES_PER_ELEMENT)}),"fromUtf8");var g=__name((r=>{if(typeof r==="string"){return p(r)}if(ArrayBuffer.isView(r)){return new Uint8Array(r.buffer,r.byteOffset,r.byteLength/Uint8Array.BYTES_PER_ELEMENT)}return new Uint8Array(r)}),"toUint8Array");var h=__name((r=>{if(typeof r==="string"){return r}if(typeof r!=="object"||typeof r.byteOffset!=="number"||typeof r.byteLength!=="number"){throw new Error("@smithy/util-utf8: toUtf8 encoder function only accepts string | Uint8Array.")}return(0,u.fromArrayBuffer)(r.buffer,r.byteOffset,r.byteLength).toString("utf8")}),"toUtf8");0&&0},78011:r=>{var s=Object.defineProperty;var i=Object.getOwnPropertyDescriptor;var a=Object.getOwnPropertyNames;var A=Object.prototype.hasOwnProperty;var __name=(r,i)=>s(r,"name",{value:i,configurable:true});var __export=(r,i)=>{for(var a in i)s(r,a,{get:i[a],enumerable:true})};var __copyProps=(r,c,l,d)=>{if(c&&typeof c==="object"||typeof c==="function"){for(let u of a(c))if(!A.call(r,u)&&u!==l)s(r,u,{get:()=>c[u],enumerable:!(d=i(c,u))||d.enumerable})}return r};var __toCommonJS=r=>__copyProps(s({},"__esModule",{value:true}),r);var c={};__export(c,{WaiterState:()=>u,checkExceptions:()=>p,createWaiter:()=>b,waiterServiceDefaults:()=>d});r.exports=__toCommonJS(c);var l=__name((r=>new Promise((s=>setTimeout(s,r*1e3)))),"sleep");var d={minDelay:2,maxDelay:120};var u=(r=>{r["ABORTED"]="ABORTED";r["FAILURE"]="FAILURE";r["SUCCESS"]="SUCCESS";r["RETRY"]="RETRY";r["TIMEOUT"]="TIMEOUT";return r})(u||{});var p=__name((r=>{if(r.state==="ABORTED"){const s=new Error(`${JSON.stringify({...r,reason:"Request was aborted"})}`);s.name="AbortError";throw s}else if(r.state==="TIMEOUT"){const s=new Error(`${JSON.stringify({...r,reason:"Waiter has timed out"})}`);s.name="TimeoutError";throw s}else if(r.state!=="SUCCESS"){throw new Error(`${JSON.stringify(r)}`)}return r}),"checkExceptions");var g=__name(((r,s,i,a)=>{if(a>i)return s;const A=r*2**(a-1);return h(r,A)}),"exponentialBackoffWithJitter");var h=__name(((r,s)=>r+Math.random()*(s-r)),"randomInRange");var C=__name((async({minDelay:r,maxDelay:s,maxWaitTime:i,abortController:a,client:A,abortSignal:c},d,u)=>{const p={};const{state:h,reason:C}=await u(A,d);if(C){const r=y(C);p[r]|=0;p[r]+=1}if(h!=="RETRY"){return{state:h,reason:C,observedResponses:p}}let I=1;const B=Date.now()+i*1e3;const b=Math.log(s/r)/Math.log(2)+1;while(true){if(a?.signal?.aborted||c?.aborted){const r="AbortController signal aborted.";p[r]|=0;p[r]+=1;return{state:"ABORTED",observedResponses:p}}const i=g(r,s,b,I);if(Date.now()+i*1e3>B){return{state:"TIMEOUT",observedResponses:p}}await l(i);const{state:h,reason:C}=await u(A,d);if(C){const r=y(C);p[r]|=0;p[r]+=1}if(h!=="RETRY"){return{state:h,reason:C,observedResponses:p}}I+=1}}),"runPolling");var y=__name((r=>{if(r?.$responseBodyText){return`Deserialization error for body: ${r.$responseBodyText}`}if(r?.$metadata?.httpStatusCode){if(r.$response||r.message){return`${r.$response.statusCode??r.$metadata.httpStatusCode??"Unknown"}: ${r.message}`}return`${r.$metadata.httpStatusCode}: OK`}return String(r?.message??JSON.stringify(r)??"Unknown")}),"createMessageFromResponse");var I=__name((r=>{if(r.maxWaitTime<=0){throw new Error(`WaiterConfiguration.maxWaitTime must be greater than 0`)}else if(r.minDelay<=0){throw new Error(`WaiterConfiguration.minDelay must be greater than 0`)}else if(r.maxDelay<=0){throw new Error(`WaiterConfiguration.maxDelay must be greater than 0`)}else if(r.maxWaitTime<=r.minDelay){throw new Error(`WaiterConfiguration.maxWaitTime [${r.maxWaitTime}] must be greater than WaiterConfiguration.minDelay [${r.minDelay}] for this waiter`)}else if(r.maxDelaynew Promise((s=>{const i=__name((()=>s({state:"ABORTED"})),"onAbort");if(typeof r.addEventListener==="function"){r.addEventListener("abort",i)}else{r.onabort=i}}))),"abortTimeout");var b=__name((async(r,s,i)=>{const a={...d,...r};I(a);const A=[C(a,s,i)];if(r.abortController){A.push(B(r.abortController.signal))}if(r.abortSignal){A.push(B(r.abortSignal))}return Promise.race(A)}),"createWaiter");0&&0},61659:(r,s,i)=>{"use strict";Object.defineProperty(s,"__esModule",{value:true});var a=i(84697);class AbortSignal extends a.EventTarget{constructor(){super();throw new TypeError("AbortSignal cannot be constructed directly")}get aborted(){const r=A.get(this);if(typeof r!=="boolean"){throw new TypeError(`Expected 'this' to be an 'AbortSignal' object, but got ${this===null?"null":typeof this}`)}return r}}a.defineEventAttribute(AbortSignal.prototype,"abort");function createAbortSignal(){const r=Object.create(AbortSignal.prototype);a.EventTarget.call(r);A.set(r,false);return r}function abortSignal(r){if(A.get(r)!==false){return}A.set(r,true);r.dispatchEvent({type:"abort"})}const A=new WeakMap;Object.defineProperties(AbortSignal.prototype,{aborted:{enumerable:true}});if(typeof Symbol==="function"&&typeof Symbol.toStringTag==="symbol"){Object.defineProperty(AbortSignal.prototype,Symbol.toStringTag,{configurable:true,value:"AbortSignal"})}class AbortController{constructor(){c.set(this,createAbortSignal())}get signal(){return getSignal(this)}abort(){abortSignal(getSignal(this))}}const c=new WeakMap;function getSignal(r){const s=c.get(r);if(s==null){throw new TypeError(`Expected 'this' to be an 'AbortController' object, but got ${r===null?"null":typeof r}`)}return s}Object.defineProperties(AbortController.prototype,{signal:{enumerable:true},abort:{enumerable:true}});if(typeof Symbol==="function"&&typeof Symbol.toStringTag==="symbol"){Object.defineProperty(AbortController.prototype,Symbol.toStringTag,{configurable:true,value:"AbortController"})}s.AbortController=AbortController;s.AbortSignal=AbortSignal;s["default"]=AbortController;r.exports=AbortController;r.exports.AbortController=r.exports["default"]=AbortController;r.exports.AbortSignal=AbortSignal},8348:function(r,s,i){"use strict";var a=this&&this.__createBinding||(Object.create?function(r,s,i,a){if(a===undefined)a=i;var A=Object.getOwnPropertyDescriptor(s,i);if(!A||("get"in A?!s.__esModule:A.writable||A.configurable)){A={enumerable:true,get:function(){return s[i]}}}Object.defineProperty(r,a,A)}:function(r,s,i,a){if(a===undefined)a=i;r[a]=s[i]});var A=this&&this.__setModuleDefault||(Object.create?function(r,s){Object.defineProperty(r,"default",{enumerable:true,value:s})}:function(r,s){r["default"]=s});var c=this&&this.__importStar||function(r){if(r&&r.__esModule)return r;var s={};if(r!=null)for(var i in r)if(i!=="default"&&Object.prototype.hasOwnProperty.call(r,i))a(s,r,i);A(s,r);return s};Object.defineProperty(s,"__esModule",{value:true});s.req=s.json=s.toBuffer=void 0;const l=c(i(13685));const d=c(i(95687));async function toBuffer(r){let s=0;const i=[];for await(const a of r){s+=a.length;i.push(a)}return Buffer.concat(i,s)}s.toBuffer=toBuffer;async function json(r){const s=await toBuffer(r);const i=s.toString("utf8");try{return JSON.parse(i)}catch(r){const s=r;s.message+=` (input: ${i})`;throw s}}s.json=json;function req(r,s={}){const i=typeof r==="string"?r:r.href;const a=(i.startsWith("https:")?d:l).request(r,s);const A=new Promise(((r,s)=>{a.once("response",r).once("error",s).end()}));a.then=A.then.bind(A);return a}s.req=req},70694:function(r,s,i){"use strict";var a=this&&this.__createBinding||(Object.create?function(r,s,i,a){if(a===undefined)a=i;var A=Object.getOwnPropertyDescriptor(s,i);if(!A||("get"in A?!s.__esModule:A.writable||A.configurable)){A={enumerable:true,get:function(){return s[i]}}}Object.defineProperty(r,a,A)}:function(r,s,i,a){if(a===undefined)a=i;r[a]=s[i]});var A=this&&this.__setModuleDefault||(Object.create?function(r,s){Object.defineProperty(r,"default",{enumerable:true,value:s})}:function(r,s){r["default"]=s});var c=this&&this.__importStar||function(r){if(r&&r.__esModule)return r;var s={};if(r!=null)for(var i in r)if(i!=="default"&&Object.prototype.hasOwnProperty.call(r,i))a(s,r,i);A(s,r);return s};var l=this&&this.__exportStar||function(r,s){for(var i in r)if(i!=="default"&&!Object.prototype.hasOwnProperty.call(s,i))a(s,r,i)};Object.defineProperty(s,"__esModule",{value:true});s.Agent=void 0;const d=c(i(13685));l(i(8348),s);const u=Symbol("AgentBaseInternalState");class Agent extends d.Agent{constructor(r){super(r);this[u]={}}isSecureEndpoint(r){if(r){if(typeof r.secureEndpoint==="boolean"){return r.secureEndpoint}if(typeof r.protocol==="string"){return r.protocol==="https:"}}const{stack:s}=new Error;if(typeof s!=="string")return false;return s.split("\n").some((r=>r.indexOf("(https.js:")!==-1||r.indexOf("node:https:")!==-1))}createSocket(r,s,i){const a={...s,secureEndpoint:this.isSecureEndpoint(s)};Promise.resolve().then((()=>this.connect(r,a))).then((A=>{if(A instanceof d.Agent){return A.addRequest(r,a)}this[u].currentSocket=A;super.createSocket(r,s,i)}),i)}createConnection(){const r=this[u].currentSocket;this[u].currentSocket=undefined;if(!r){throw new Error("No socket was returned in the `connect()` function")}return r}get defaultPort(){return this[u].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(r){if(this[u]){this[u].defaultPort=r}}get protocol(){return this[u].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(r){if(this[u]){this[u].protocol=r}}}s.Agent=Agent},81231:(r,s,i)=>{var a=i(24045);var A=i(71017);var c=i(42394);var l=i(44031);var d=i(11620);var u=i(46169);var p=i(19834);var g=r.exports={};var h=/[\/\\]/g;var processPatterns=function(r,s){var i=[];c(r).forEach((function(r){var a=r.indexOf("!")===0;if(a){r=r.slice(1)}var A=s(r);if(a){i=l(i,A)}else{i=d(i,A)}}));return i};g.exists=function(){var r=A.join.apply(A,arguments);return a.existsSync(r)};g.expand=function(...r){var s=u(r[0])?r.shift():{};var i=Array.isArray(r[0])?r[0]:r;if(i.length===0){return[]}var c=processPatterns(i,(function(r){return p.sync(r,s)}));if(s.filter){c=c.filter((function(r){r=A.join(s.cwd||"",r);try{if(typeof s.filter==="function"){return s.filter(r)}else{return a.statSync(r)[s.filter]()}}catch(r){return false}}))}return c};g.expandMapping=function(r,s,i){i=Object.assign({rename:function(r,s){return A.join(r||"",s)}},i);var a=[];var c={};g.expand(i,r).forEach((function(r){var l=r;if(i.flatten){l=A.basename(l)}if(i.ext){l=l.replace(/(\.[^\/]*)?$/,i.ext)}var d=i.rename(s,l,i);if(i.cwd){r=A.join(i.cwd,r)}d=d.replace(h,"/");r=r.replace(h,"/");if(c[d]){c[d].src.push(r)}else{a.push({src:[r],dest:d});c[d]=a[a.length-1]}}));return a};g.normalizeFilesArray=function(r){var s=[];r.forEach((function(r){var i;if("src"in r||"dest"in r){s.push(r)}}));if(s.length===0){return[]}s=_(s).chain().forEach((function(r){if(!("src"in r)||!r.src){return}if(Array.isArray(r.src)){r.src=c(r.src)}else{r.src=[r.src]}})).map((function(r){var s=Object.assign({},r);delete s.src;delete s.dest;if(r.expand){return g.expandMapping(r.src,r.dest,s).map((function(s){var i=Object.assign({},r);i.orig=Object.assign({},r);i.src=s.src;i.dest=s.dest;["expand","cwd","flatten","rename","ext"].forEach((function(r){delete i[r]}));return i}))}var i=Object.assign({},r);i.orig=Object.assign({},r);if("src"in i){Object.defineProperty(i,"src",{enumerable:true,get:function fn(){var i;if(!("result"in fn)){i=r.src;i=Array.isArray(i)?c(i):[i];fn.result=g.expand(s,i)}return fn.result}})}if("dest"in i){i.dest=r.dest}return i})).flatten().value();return s}},82072:(r,s,i)=>{var a=i(24045);var A=i(71017);var c=i(41554);var l=i(12084);var d=i(55388);var u=i(3508);var p=i(12781).Stream;var g=i(45193).PassThrough;var h=r.exports={};h.file=i(81231);h.collectStream=function(r,s){var i=[];var a=0;r.on("error",s);r.on("data",(function(r){i.push(r);a+=r.length}));r.on("end",(function(){var r=Buffer.alloc(a);var A=0;i.forEach((function(s){s.copy(r,A);A+=s.length}));s(null,r)}))};h.dateify=function(r){r=r||new Date;if(r instanceof Date){r=r}else if(typeof r==="string"){r=new Date(r)}else{r=new Date}return r};h.defaults=function(r,s,i){var a=arguments;a[0]=a[0]||{};return u(...a)};h.isStream=function(r){return c(r)};h.lazyReadStream=function(r){return new l.Readable((function(){return a.createReadStream(r)}))};h.normalizeInputSource=function(r){if(r===null){return Buffer.alloc(0)}else if(typeof r==="string"){return Buffer.from(r)}else if(h.isStream(r)){return r.pipe(new g)}return r};h.sanitizePath=function(r){return d(r,false).replace(/^\w+:/,"").replace(/^(\.\.\/|\/)+/,"")};h.trailingSlashIt=function(r){return r.slice(-1)!=="/"?r+"/":r};h.unixifyPath=function(r){return d(r,false).replace(/^\w+:/,"")};h.walkdir=function(r,s,i){var c=[];if(typeof s==="function"){i=s;s=r}a.readdir(r,(function(l,d){var u=0;var p;var g;if(l){return i(l)}(function next(){p=d[u++];if(!p){return i(null,c)}g=A.join(r,p);a.stat(g,(function(r,a){c.push({path:g,relative:A.relative(s,g).replace(/\\/g,"/"),stats:a});if(a&&a.isDirectory()){h.walkdir(g,s,(function(r,s){if(r){return i(r)}s.forEach((function(r){c.push(r)}));next()}))}else{next()}}))})()}))}},97473:r=>{"use strict";r.exports=clone;var s=Object.getPrototypeOf||function(r){return r.__proto__};function clone(r){if(r===null||typeof r!=="object")return r;if(r instanceof Object)var i={__proto__:s(r)};else var i=Object.create(null);Object.getOwnPropertyNames(r).forEach((function(s){Object.defineProperty(i,s,Object.getOwnPropertyDescriptor(r,s))}));return i}},24045:(r,s,i)=>{var a=i(57147);var A=i(67860);var c=i(21316);var l=i(97473);var d=i(73837);var u;var p;if(typeof Symbol==="function"&&typeof Symbol.for==="function"){u=Symbol.for("graceful-fs.queue");p=Symbol.for("graceful-fs.previous")}else{u="___graceful-fs.queue";p="___graceful-fs.previous"}function noop(){}function publishQueue(r,s){Object.defineProperty(r,u,{get:function(){return s}})}var g=noop;if(d.debuglog)g=d.debuglog("gfs4");else if(/\bgfs4\b/i.test(process.env.NODE_DEBUG||""))g=function(){var r=d.format.apply(d,arguments);r="GFS4: "+r.split(/\n/).join("\nGFS4: ");console.error(r)};if(!a[u]){var h=global[u]||[];publishQueue(a,h);a.close=function(r){function close(s,i){return r.call(a,s,(function(r){if(!r){resetQueue()}if(typeof i==="function")i.apply(this,arguments)}))}Object.defineProperty(close,p,{value:r});return close}(a.close);a.closeSync=function(r){function closeSync(s){r.apply(a,arguments);resetQueue()}Object.defineProperty(closeSync,p,{value:r});return closeSync}(a.closeSync);if(/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")){process.on("exit",(function(){g(a[u]);i(39491).equal(a[u].length,0)}))}}if(!global[u]){publishQueue(global,a[u])}r.exports=patch(l(a));if(process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!a.__patched){r.exports=patch(a);a.__patched=true}function patch(r){A(r);r.gracefulify=patch;r.createReadStream=createReadStream;r.createWriteStream=createWriteStream;var s=r.readFile;r.readFile=readFile;function readFile(r,i,a){if(typeof i==="function")a=i,i=null;return go$readFile(r,i,a);function go$readFile(r,i,a,A){return s(r,i,(function(s){if(s&&(s.code==="EMFILE"||s.code==="ENFILE"))enqueue([go$readFile,[r,i,a],s,A||Date.now(),Date.now()]);else{if(typeof a==="function")a.apply(this,arguments)}}))}}var i=r.writeFile;r.writeFile=writeFile;function writeFile(r,s,a,A){if(typeof a==="function")A=a,a=null;return go$writeFile(r,s,a,A);function go$writeFile(r,s,a,A,c){return i(r,s,a,(function(i){if(i&&(i.code==="EMFILE"||i.code==="ENFILE"))enqueue([go$writeFile,[r,s,a,A],i,c||Date.now(),Date.now()]);else{if(typeof A==="function")A.apply(this,arguments)}}))}}var a=r.appendFile;if(a)r.appendFile=appendFile;function appendFile(r,s,i,A){if(typeof i==="function")A=i,i=null;return go$appendFile(r,s,i,A);function go$appendFile(r,s,i,A,c){return a(r,s,i,(function(a){if(a&&(a.code==="EMFILE"||a.code==="ENFILE"))enqueue([go$appendFile,[r,s,i,A],a,c||Date.now(),Date.now()]);else{if(typeof A==="function")A.apply(this,arguments)}}))}}var l=r.copyFile;if(l)r.copyFile=copyFile;function copyFile(r,s,i,a){if(typeof i==="function"){a=i;i=0}return go$copyFile(r,s,i,a);function go$copyFile(r,s,i,a,A){return l(r,s,i,(function(c){if(c&&(c.code==="EMFILE"||c.code==="ENFILE"))enqueue([go$copyFile,[r,s,i,a],c,A||Date.now(),Date.now()]);else{if(typeof a==="function")a.apply(this,arguments)}}))}}var d=r.readdir;r.readdir=readdir;var u=/^v[0-5]\./;function readdir(r,s,i){if(typeof s==="function")i=s,s=null;var a=u.test(process.version)?function go$readdir(r,s,i,a){return d(r,fs$readdirCallback(r,s,i,a))}:function go$readdir(r,s,i,a){return d(r,s,fs$readdirCallback(r,s,i,a))};return a(r,s,i);function fs$readdirCallback(r,s,i,A){return function(c,l){if(c&&(c.code==="EMFILE"||c.code==="ENFILE"))enqueue([a,[r,s,i],c,A||Date.now(),Date.now()]);else{if(l&&l.sort)l.sort();if(typeof i==="function")i.call(this,c,l)}}}}if(process.version.substr(0,4)==="v0.8"){var p=c(r);ReadStream=p.ReadStream;WriteStream=p.WriteStream}var g=r.ReadStream;if(g){ReadStream.prototype=Object.create(g.prototype);ReadStream.prototype.open=ReadStream$open}var h=r.WriteStream;if(h){WriteStream.prototype=Object.create(h.prototype);WriteStream.prototype.open=WriteStream$open}Object.defineProperty(r,"ReadStream",{get:function(){return ReadStream},set:function(r){ReadStream=r},enumerable:true,configurable:true});Object.defineProperty(r,"WriteStream",{get:function(){return WriteStream},set:function(r){WriteStream=r},enumerable:true,configurable:true});var C=ReadStream;Object.defineProperty(r,"FileReadStream",{get:function(){return C},set:function(r){C=r},enumerable:true,configurable:true});var y=WriteStream;Object.defineProperty(r,"FileWriteStream",{get:function(){return y},set:function(r){y=r},enumerable:true,configurable:true});function ReadStream(r,s){if(this instanceof ReadStream)return g.apply(this,arguments),this;else return ReadStream.apply(Object.create(ReadStream.prototype),arguments)}function ReadStream$open(){var r=this;open(r.path,r.flags,r.mode,(function(s,i){if(s){if(r.autoClose)r.destroy();r.emit("error",s)}else{r.fd=i;r.emit("open",i);r.read()}}))}function WriteStream(r,s){if(this instanceof WriteStream)return h.apply(this,arguments),this;else return WriteStream.apply(Object.create(WriteStream.prototype),arguments)}function WriteStream$open(){var r=this;open(r.path,r.flags,r.mode,(function(s,i){if(s){r.destroy();r.emit("error",s)}else{r.fd=i;r.emit("open",i)}}))}function createReadStream(s,i){return new r.ReadStream(s,i)}function createWriteStream(s,i){return new r.WriteStream(s,i)}var I=r.open;r.open=open;function open(r,s,i,a){if(typeof i==="function")a=i,i=null;return go$open(r,s,i,a);function go$open(r,s,i,a,A){return I(r,s,i,(function(c,l){if(c&&(c.code==="EMFILE"||c.code==="ENFILE"))enqueue([go$open,[r,s,i,a],c,A||Date.now(),Date.now()]);else{if(typeof a==="function")a.apply(this,arguments)}}))}}return r}function enqueue(r){g("ENQUEUE",r[0].name,r[1]);a[u].push(r);retry()}var C;function resetQueue(){var r=Date.now();for(var s=0;s2){a[u][s][3]=r;a[u][s][4]=r}}retry()}function retry(){clearTimeout(C);C=undefined;if(a[u].length===0)return;var r=a[u].shift();var s=r[0];var i=r[1];var A=r[2];var c=r[3];var l=r[4];if(c===undefined){g("RETRY",s.name,i);s.apply(null,i)}else if(Date.now()-c>=6e4){g("TIMEOUT",s.name,i);var d=i.pop();if(typeof d==="function")d.call(null,A)}else{var p=Date.now()-l;var h=Math.max(l-c,1);var y=Math.min(h*1.2,100);if(p>=y){g("RETRY",s.name,i);s.apply(null,i.concat([c]))}else{a[u].push(r)}}if(C===undefined){C=setTimeout(retry,0)}}},21316:(r,s,i)=>{var a=i(12781).Stream;r.exports=legacy;function legacy(r){return{ReadStream:ReadStream,WriteStream:WriteStream};function ReadStream(s,i){if(!(this instanceof ReadStream))return new ReadStream(s,i);a.call(this);var A=this;this.path=s;this.fd=null;this.readable=true;this.paused=false;this.flags="r";this.mode=438;this.bufferSize=64*1024;i=i||{};var c=Object.keys(i);for(var l=0,d=c.length;lthis.end){throw new Error("start must be <= end")}this.pos=this.start}if(this.fd!==null){process.nextTick((function(){A._read()}));return}r.open(this.path,this.flags,this.mode,(function(r,s){if(r){A.emit("error",r);A.readable=false;return}A.fd=s;A.emit("open",s);A._read()}))}function WriteStream(s,i){if(!(this instanceof WriteStream))return new WriteStream(s,i);a.call(this);this.path=s;this.fd=null;this.writable=true;this.flags="w";this.encoding="binary";this.mode=438;this.bytesWritten=0;i=i||{};var A=Object.keys(i);for(var c=0,l=A.length;c= zero")}this.pos=this.start}this.busy=false;this._queue=[];if(this.fd===null){this._open=r.open;this._queue.push([this._open,this.path,this.flags,this.mode,undefined]);this.flush()}}}},67860:(r,s,i)=>{var a=i(22057);var A=process.cwd;var c=null;var l=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){if(!c)c=A.call(process);return c};try{process.cwd()}catch(r){}if(typeof process.chdir==="function"){var d=process.chdir;process.chdir=function(r){c=null;d.call(process,r)};if(Object.setPrototypeOf)Object.setPrototypeOf(process.chdir,d)}r.exports=patch;function patch(r){if(a.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)){patchLchmod(r)}if(!r.lutimes){patchLutimes(r)}r.chown=chownFix(r.chown);r.fchown=chownFix(r.fchown);r.lchown=chownFix(r.lchown);r.chmod=chmodFix(r.chmod);r.fchmod=chmodFix(r.fchmod);r.lchmod=chmodFix(r.lchmod);r.chownSync=chownFixSync(r.chownSync);r.fchownSync=chownFixSync(r.fchownSync);r.lchownSync=chownFixSync(r.lchownSync);r.chmodSync=chmodFixSync(r.chmodSync);r.fchmodSync=chmodFixSync(r.fchmodSync);r.lchmodSync=chmodFixSync(r.lchmodSync);r.stat=statFix(r.stat);r.fstat=statFix(r.fstat);r.lstat=statFix(r.lstat);r.statSync=statFixSync(r.statSync);r.fstatSync=statFixSync(r.fstatSync);r.lstatSync=statFixSync(r.lstatSync);if(r.chmod&&!r.lchmod){r.lchmod=function(r,s,i){if(i)process.nextTick(i)};r.lchmodSync=function(){}}if(r.chown&&!r.lchown){r.lchown=function(r,s,i,a){if(a)process.nextTick(a)};r.lchownSync=function(){}}if(l==="win32"){r.rename=typeof r.rename!=="function"?r.rename:function(s){function rename(i,a,A){var c=Date.now();var l=0;s(i,a,(function CB(d){if(d&&(d.code==="EACCES"||d.code==="EPERM"||d.code==="EBUSY")&&Date.now()-c<6e4){setTimeout((function(){r.stat(a,(function(r,c){if(r&&r.code==="ENOENT")s(i,a,CB);else A(d)}))}),l);if(l<100)l+=10;return}if(A)A(d)}))}if(Object.setPrototypeOf)Object.setPrototypeOf(rename,s);return rename}(r.rename)}r.read=typeof r.read!=="function"?r.read:function(s){function read(i,a,A,c,l,d){var u;if(d&&typeof d==="function"){var p=0;u=function(g,h,C){if(g&&g.code==="EAGAIN"&&p<10){p++;return s.call(r,i,a,A,c,l,u)}d.apply(this,arguments)}}return s.call(r,i,a,A,c,l,u)}if(Object.setPrototypeOf)Object.setPrototypeOf(read,s);return read}(r.read);r.readSync=typeof r.readSync!=="function"?r.readSync:function(s){return function(i,a,A,c,l){var d=0;while(true){try{return s.call(r,i,a,A,c,l)}catch(r){if(r.code==="EAGAIN"&&d<10){d++;continue}throw r}}}}(r.readSync);function patchLchmod(r){r.lchmod=function(s,i,A){r.open(s,a.O_WRONLY|a.O_SYMLINK,i,(function(s,a){if(s){if(A)A(s);return}r.fchmod(a,i,(function(s){r.close(a,(function(r){if(A)A(s||r)}))}))}))};r.lchmodSync=function(s,i){var A=r.openSync(s,a.O_WRONLY|a.O_SYMLINK,i);var c=true;var l;try{l=r.fchmodSync(A,i);c=false}finally{if(c){try{r.closeSync(A)}catch(r){}}else{r.closeSync(A)}}return l}}function patchLutimes(r){if(a.hasOwnProperty("O_SYMLINK")&&r.futimes){r.lutimes=function(s,i,A,c){r.open(s,a.O_SYMLINK,(function(s,a){if(s){if(c)c(s);return}r.futimes(a,i,A,(function(s){r.close(a,(function(r){if(c)c(s||r)}))}))}))};r.lutimesSync=function(s,i,A){var c=r.openSync(s,a.O_SYMLINK);var l;var d=true;try{l=r.futimesSync(c,i,A);d=false}finally{if(d){try{r.closeSync(c)}catch(r){}}else{r.closeSync(c)}}return l}}else if(r.futimes){r.lutimes=function(r,s,i,a){if(a)process.nextTick(a)};r.lutimesSync=function(){}}}function chmodFix(s){if(!s)return s;return function(i,a,A){return s.call(r,i,a,(function(r){if(chownErOk(r))r=null;if(A)A.apply(this,arguments)}))}}function chmodFixSync(s){if(!s)return s;return function(i,a){try{return s.call(r,i,a)}catch(r){if(!chownErOk(r))throw r}}}function chownFix(s){if(!s)return s;return function(i,a,A,c){return s.call(r,i,a,A,(function(r){if(chownErOk(r))r=null;if(c)c.apply(this,arguments)}))}}function chownFixSync(s){if(!s)return s;return function(i,a,A){try{return s.call(r,i,a,A)}catch(r){if(!chownErOk(r))throw r}}}function statFix(s){if(!s)return s;return function(i,a,A){if(typeof a==="function"){A=a;a=null}function callback(r,s){if(s){if(s.uid<0)s.uid+=4294967296;if(s.gid<0)s.gid+=4294967296}if(A)A.apply(this,arguments)}return a?s.call(r,i,a,callback):s.call(r,i,callback)}}function statFixSync(s){if(!s)return s;return function(i,a){var A=a?s.call(r,i,a):s.call(r,i);if(A){if(A.uid<0)A.uid+=4294967296;if(A.gid<0)A.gid+=4294967296}return A}}function chownErOk(r){if(!r)return true;if(r.code==="ENOSYS")return true;var s=!process.getuid||process.getuid()!==0;if(s){if(r.code==="EINVAL"||r.code==="EPERM")return true}return false}}},43084:(r,s,i)=>{ /** - * Commands + * Archiver Vending * - * Command Format: - * ::name key=value,key=value::message + * @ignore + * @license [MIT]{@link https://github.com/archiverjs/node-archiver/blob/master/LICENSE} + * @copyright (c) 2012-2014 Chris Talkington, contributors. + */ +var a=i(35010);var A={};var vending=function(r,s){return vending.create(r,s)};vending.create=function(r,s){if(A[r]){var i=new a(r,s);i.setFormat(r);i.setModule(new A[r](s));return i}else{throw new Error("create("+r+"): format not registered")}};vending.registerFormat=function(r,s){if(A[r]){throw new Error("register("+r+"): format already registered")}if(typeof s!=="function"){throw new Error("register("+r+"): format module invalid")}if(typeof s.prototype.append!=="function"||typeof s.prototype.finalize!=="function"){throw new Error("register("+r+"): format module missing methods")}A[r]=s};vending.isRegisteredFormat=function(r){if(A[r]){return true}return false};vending.registerFormat("zip",i(8987));vending.registerFormat("tar",i(33614));vending.registerFormat("json",i(99827));r.exports=vending},35010:(r,s,i)=>{ +/** + * Archiver Core * - * Examples: - * ::warning::This is the message - * ::set-env name=MY_VAR::some value + * @ignore + * @license [MIT]{@link https://github.com/archiverjs/node-archiver/blob/master/LICENSE} + * @copyright (c) 2012-2014 Chris Talkington, contributors. */ -function issueCommand(command, properties, message) { - const cmd = new Command(command, properties, message); - process.stdout.write(cmd.toString() + os.EOL); -} -exports.issueCommand = issueCommand; -function issue(name, message = '') { - issueCommand(name, {}, message); -} -exports.issue = issue; -const CMD_STRING = '::'; -class Command { - constructor(command, properties, message) { - if (!command) { - command = 'missing.command'; - } - this.command = command; - this.properties = properties; - this.message = message; - } - toString() { - let cmdStr = CMD_STRING + this.command; - if (this.properties && Object.keys(this.properties).length > 0) { - cmdStr += ' '; - let first = true; - for (const key in this.properties) { - if (this.properties.hasOwnProperty(key)) { - const val = this.properties[key]; - if (val) { - if (first) { - first = false; - } - else { - cmdStr += ','; - } - cmdStr += `${key}=${escapeProperty(val)}`; - } - } - } - } - cmdStr += `${CMD_STRING}${escapeData(this.message)}`; - return cmdStr; - } -} -function escapeData(s) { - return utils_1.toCommandValue(s) - .replace(/%/g, '%25') - .replace(/\r/g, '%0D') - .replace(/\n/g, '%0A'); -} -function escapeProperty(s) { - return utils_1.toCommandValue(s) - .replace(/%/g, '%25') - .replace(/\r/g, '%0D') - .replace(/\n/g, '%0A') - .replace(/:/g, '%3A') - .replace(/,/g, '%2C'); -} -//# sourceMappingURL=command.js.map - -/***/ }), - -/***/ 42186: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { - function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } - return new (P || (P = Promise))(function (resolve, reject) { - function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } - function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } - function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } - step((generator = generator.apply(thisArg, _arguments || [])).next()); - }); -}; -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.getIDToken = exports.getState = exports.saveState = exports.group = exports.endGroup = exports.startGroup = exports.info = exports.notice = exports.warning = exports.error = exports.debug = exports.isDebug = exports.setFailed = exports.setCommandEcho = exports.setOutput = exports.getBooleanInput = exports.getMultilineInput = exports.getInput = exports.addPath = exports.setSecret = exports.exportVariable = exports.ExitCode = void 0; -const command_1 = __nccwpck_require__(87351); -const file_command_1 = __nccwpck_require__(717); -const utils_1 = __nccwpck_require__(5278); -const os = __importStar(__nccwpck_require__(12087)); -const path = __importStar(__nccwpck_require__(85622)); -const oidc_utils_1 = __nccwpck_require__(98041); +var a=i(57147);var A=i(44967);var c=i(57888);var l=i(71017);var d=i(82072);var u=i(73837).inherits;var p=i(13143);var g=i(45193).Transform;var h=process.platform==="win32";var Archiver=function(r,s){if(!(this instanceof Archiver)){return new Archiver(r,s)}if(typeof r!=="string"){s=r;r="zip"}s=this.options=d.defaults(s,{highWaterMark:1024*1024,statConcurrency:4});g.call(this,s);this._format=false;this._module=false;this._pending=0;this._pointer=0;this._entriesCount=0;this._entriesProcessedCount=0;this._fsEntriesTotalBytes=0;this._fsEntriesProcessedBytes=0;this._queue=c.queue(this._onQueueTask.bind(this),1);this._queue.drain(this._onQueueDrain.bind(this));this._statQueue=c.queue(this._onStatQueueTask.bind(this),s.statConcurrency);this._statQueue.drain(this._onQueueDrain.bind(this));this._state={aborted:false,finalize:false,finalizing:false,finalized:false,modulePiped:false};this._streams=[]};u(Archiver,g);Archiver.prototype._abort=function(){this._state.aborted=true;this._queue.kill();this._statQueue.kill();if(this._queue.idle()){this._shutdown()}};Archiver.prototype._append=function(r,s){s=s||{};var i={source:null,filepath:r};if(!s.name){s.name=r}s.sourcePath=r;i.data=s;this._entriesCount++;if(s.stats&&s.stats instanceof a.Stats){i=this._updateQueueTaskWithStats(i,s.stats);if(i){if(s.stats.size){this._fsEntriesTotalBytes+=s.stats.size}this._queue.push(i)}}else{this._statQueue.push(i)}};Archiver.prototype._finalize=function(){if(this._state.finalizing||this._state.finalized||this._state.aborted){return}this._state.finalizing=true;this._moduleFinalize();this._state.finalizing=false;this._state.finalized=true};Archiver.prototype._maybeFinalize=function(){if(this._state.finalizing||this._state.finalized||this._state.aborted){return false}if(this._state.finalize&&this._pending===0&&this._queue.idle()&&this._statQueue.idle()){this._finalize();return true}return false};Archiver.prototype._moduleAppend=function(r,s,i){if(this._state.aborted){i();return}this._module.append(r,s,function(r){this._task=null;if(this._state.aborted){this._shutdown();return}if(r){this.emit("error",r);setImmediate(i);return}this.emit("entry",s);this._entriesProcessedCount++;if(s.stats&&s.stats.size){this._fsEntriesProcessedBytes+=s.stats.size}this.emit("progress",{entries:{total:this._entriesCount,processed:this._entriesProcessedCount},fs:{totalBytes:this._fsEntriesTotalBytes,processedBytes:this._fsEntriesProcessedBytes}});setImmediate(i)}.bind(this))};Archiver.prototype._moduleFinalize=function(){if(typeof this._module.finalize==="function"){this._module.finalize()}else if(typeof this._module.end==="function"){this._module.end()}else{this.emit("error",new p("NOENDMETHOD"))}};Archiver.prototype._modulePipe=function(){this._module.on("error",this._onModuleError.bind(this));this._module.pipe(this);this._state.modulePiped=true};Archiver.prototype._moduleSupports=function(r){if(!this._module.supports||!this._module.supports[r]){return false}return this._module.supports[r]};Archiver.prototype._moduleUnpipe=function(){this._module.unpipe(this);this._state.modulePiped=false};Archiver.prototype._normalizeEntryData=function(r,s){r=d.defaults(r,{type:"file",name:null,date:null,mode:null,prefix:null,sourcePath:null,stats:false});if(s&&r.stats===false){r.stats=s}var i=r.type==="directory";if(r.name){if(typeof r.prefix==="string"&&""!==r.prefix){r.name=r.prefix+"/"+r.name;r.prefix=null}r.name=d.sanitizePath(r.name);if(r.type!=="symlink"&&r.name.slice(-1)==="/"){i=true;r.type="directory"}else if(i){r.name+="/"}}if(typeof r.mode==="number"){if(h){r.mode&=511}else{r.mode&=4095}}else if(r.stats&&r.mode===null){if(h){r.mode=r.stats.mode&511}else{r.mode=r.stats.mode&4095}if(h&&i){r.mode=493}}else if(r.mode===null){r.mode=i?493:420}if(r.stats&&r.date===null){r.date=r.stats.mtime}else{r.date=d.dateify(r.date)}return r};Archiver.prototype._onModuleError=function(r){this.emit("error",r)};Archiver.prototype._onQueueDrain=function(){if(this._state.finalizing||this._state.finalized||this._state.aborted){return}if(this._state.finalize&&this._pending===0&&this._queue.idle()&&this._statQueue.idle()){this._finalize()}};Archiver.prototype._onQueueTask=function(r,s){var fullCallback=()=>{if(r.data.callback){r.data.callback()}s()};if(this._state.finalizing||this._state.finalized||this._state.aborted){fullCallback();return}this._task=r;this._moduleAppend(r.source,r.data,fullCallback)};Archiver.prototype._onStatQueueTask=function(r,s){if(this._state.finalizing||this._state.finalized||this._state.aborted){s();return}a.lstat(r.filepath,function(i,a){if(this._state.aborted){setImmediate(s);return}if(i){this._entriesCount--;this.emit("warning",i);setImmediate(s);return}r=this._updateQueueTaskWithStats(r,a);if(r){if(a.size){this._fsEntriesTotalBytes+=a.size}this._queue.push(r)}setImmediate(s)}.bind(this))};Archiver.prototype._shutdown=function(){this._moduleUnpipe();this.end()};Archiver.prototype._transform=function(r,s,i){if(r){this._pointer+=r.length}i(null,r)};Archiver.prototype._updateQueueTaskWithStats=function(r,s){if(s.isFile()){r.data.type="file";r.data.sourceType="stream";r.source=d.lazyReadStream(r.filepath)}else if(s.isDirectory()&&this._moduleSupports("directory")){r.data.name=d.trailingSlashIt(r.data.name);r.data.type="directory";r.data.sourcePath=d.trailingSlashIt(r.filepath);r.data.sourceType="buffer";r.source=Buffer.concat([])}else if(s.isSymbolicLink()&&this._moduleSupports("symlink")){var i=a.readlinkSync(r.filepath);var A=l.dirname(r.filepath);r.data.type="symlink";r.data.linkname=l.relative(A,l.resolve(A,i));r.data.sourceType="buffer";r.source=Buffer.concat([])}else{if(s.isDirectory()){this.emit("warning",new p("DIRECTORYNOTSUPPORTED",r.data))}else if(s.isSymbolicLink()){this.emit("warning",new p("SYMLINKNOTSUPPORTED",r.data))}else{this.emit("warning",new p("ENTRYNOTSUPPORTED",r.data))}return null}r.data=this._normalizeEntryData(r.data,s);return r};Archiver.prototype.abort=function(){if(this._state.aborted||this._state.finalized){return this}this._abort();return this};Archiver.prototype.append=function(r,s){if(this._state.finalize||this._state.aborted){this.emit("error",new p("QUEUECLOSED"));return this}s=this._normalizeEntryData(s);if(typeof s.name!=="string"||s.name.length===0){this.emit("error",new p("ENTRYNAMEREQUIRED"));return this}if(s.type==="directory"&&!this._moduleSupports("directory")){this.emit("error",new p("DIRECTORYNOTSUPPORTED",{name:s.name}));return this}r=d.normalizeInputSource(r);if(Buffer.isBuffer(r)){s.sourceType="buffer"}else if(d.isStream(r)){s.sourceType="stream"}else{this.emit("error",new p("INPUTSTEAMBUFFERREQUIRED",{name:s.name}));return this}this._entriesCount++;this._queue.push({data:s,source:r});return this};Archiver.prototype.directory=function(r,s,i){if(this._state.finalize||this._state.aborted){this.emit("error",new p("QUEUECLOSED"));return this}if(typeof r!=="string"||r.length===0){this.emit("error",new p("DIRECTORYDIRPATHREQUIRED"));return this}this._pending++;if(s===false){s=""}else if(typeof s!=="string"){s=r}var a=false;if(typeof i==="function"){a=i;i={}}else if(typeof i!=="object"){i={}}var c={stat:true,dot:true};function onGlobEnd(){this._pending--;this._maybeFinalize()}function onGlobError(r){this.emit("error",r)}function onGlobMatch(A){l.pause();var c=false;var d=Object.assign({},i);d.name=A.relative;d.prefix=s;d.stats=A.stat;d.callback=l.resume.bind(l);try{if(a){d=a(d);if(d===false){c=true}else if(typeof d!=="object"){throw new p("DIRECTORYFUNCTIONINVALIDDATA",{dirpath:r})}}}catch(r){this.emit("error",r);return}if(c){l.resume();return}this._append(A.absolute,d)}var l=A(r,c);l.on("error",onGlobError.bind(this));l.on("match",onGlobMatch.bind(this));l.on("end",onGlobEnd.bind(this));return this};Archiver.prototype.file=function(r,s){if(this._state.finalize||this._state.aborted){this.emit("error",new p("QUEUECLOSED"));return this}if(typeof r!=="string"||r.length===0){this.emit("error",new p("FILEFILEPATHREQUIRED"));return this}this._append(r,s);return this};Archiver.prototype.glob=function(r,s,i){this._pending++;s=d.defaults(s,{stat:true,pattern:r});function onGlobEnd(){this._pending--;this._maybeFinalize()}function onGlobError(r){this.emit("error",r)}function onGlobMatch(r){a.pause();var s=Object.assign({},i);s.callback=a.resume.bind(a);s.stats=r.stat;s.name=r.relative;this._append(r.absolute,s)}var a=A(s.cwd||".",s);a.on("error",onGlobError.bind(this));a.on("match",onGlobMatch.bind(this));a.on("end",onGlobEnd.bind(this));return this};Archiver.prototype.finalize=function(){if(this._state.aborted){var r=new p("ABORTED");this.emit("error",r);return Promise.reject(r)}if(this._state.finalize){var s=new p("FINALIZING");this.emit("error",s);return Promise.reject(s)}this._state.finalize=true;if(this._pending===0&&this._queue.idle()&&this._statQueue.idle()){this._finalize()}var i=this;return new Promise((function(r,s){var a;i._module.on("end",(function(){if(!a){r()}}));i._module.on("error",(function(r){a=true;s(r)}))}))};Archiver.prototype.setFormat=function(r){if(this._format){this.emit("error",new p("FORMATSET"));return this}this._format=r;return this};Archiver.prototype.setModule=function(r){if(this._state.aborted){this.emit("error",new p("ABORTED"));return this}if(this._state.module){this.emit("error",new p("MODULESET"));return this}this._module=r;this._modulePipe();return this};Archiver.prototype.symlink=function(r,s,i){if(this._state.finalize||this._state.aborted){this.emit("error",new p("QUEUECLOSED"));return this}if(typeof r!=="string"||r.length===0){this.emit("error",new p("SYMLINKFILEPATHREQUIRED"));return this}if(typeof s!=="string"||s.length===0){this.emit("error",new p("SYMLINKTARGETREQUIRED",{filepath:r}));return this}if(!this._moduleSupports("symlink")){this.emit("error",new p("SYMLINKNOTSUPPORTED",{filepath:r}));return this}var a={};a.type="symlink";a.name=r.replace(/\\/g,"/");a.linkname=s.replace(/\\/g,"/");a.sourceType="buffer";if(typeof i==="number"){a.mode=i}this._entriesCount++;this._queue.push({data:a,source:Buffer.concat([])});return this};Archiver.prototype.pointer=function(){return this._pointer};Archiver.prototype.use=function(r){this._streams.push(r);return this};r.exports=Archiver},13143:(r,s,i)=>{ /** - * The code to exit an action - */ -var ExitCode; -(function (ExitCode) { - /** - * A code indicating that the action was successful - */ - ExitCode[ExitCode["Success"] = 0] = "Success"; - /** - * A code indicating that the action was a failure - */ - ExitCode[ExitCode["Failure"] = 1] = "Failure"; -})(ExitCode = exports.ExitCode || (exports.ExitCode = {})); -//----------------------------------------------------------------------- -// Variables -//----------------------------------------------------------------------- -/** - * Sets env variable for this action and future actions in the job - * @param name the name of the variable to set - * @param val the value of the variable. Non-string values will be converted to a string via JSON.stringify - */ -// eslint-disable-next-line @typescript-eslint/no-explicit-any -function exportVariable(name, val) { - const convertedVal = utils_1.toCommandValue(val); - process.env[name] = convertedVal; - const filePath = process.env['GITHUB_ENV'] || ''; - if (filePath) { - const delimiter = '_GitHubActionsFileCommandDelimeter_'; - const commandValue = `${name}<<${delimiter}${os.EOL}${convertedVal}${os.EOL}${delimiter}`; - file_command_1.issueCommand('ENV', commandValue); - } - else { - command_1.issueCommand('set-env', { name }, convertedVal); - } -} -exports.exportVariable = exportVariable; -/** - * Registers a secret which will get masked from logs - * @param secret value of the secret - */ -function setSecret(secret) { - command_1.issueCommand('add-mask', {}, secret); -} -exports.setSecret = setSecret; -/** - * Prepends inputPath to the PATH (for this action and future actions) - * @param inputPath - */ -function addPath(inputPath) { - const filePath = process.env['GITHUB_PATH'] || ''; - if (filePath) { - file_command_1.issueCommand('PATH', inputPath); - } - else { - command_1.issueCommand('add-path', {}, inputPath); - } - process.env['PATH'] = `${inputPath}${path.delimiter}${process.env['PATH']}`; -} -exports.addPath = addPath; -/** - * Gets the value of an input. - * Unless trimWhitespace is set to false in InputOptions, the value is also trimmed. - * Returns an empty string if the value is not defined. + * Archiver Core * - * @param name name of the input to get - * @param options optional. See InputOptions. - * @returns string + * @ignore + * @license [MIT]{@link https://github.com/archiverjs/node-archiver/blob/master/LICENSE} + * @copyright (c) 2012-2014 Chris Talkington, contributors. */ -function getInput(name, options) { - const val = process.env[`INPUT_${name.replace(/ /g, '_').toUpperCase()}`] || ''; - if (options && options.required && !val) { - throw new Error(`Input required and not supplied: ${name}`); - } - if (options && options.trimWhitespace === false) { - return val; - } - return val.trim(); -} -exports.getInput = getInput; +var a=i(73837);const A={ABORTED:"archive was aborted",DIRECTORYDIRPATHREQUIRED:"diretory dirpath argument must be a non-empty string value",DIRECTORYFUNCTIONINVALIDDATA:"invalid data returned by directory custom data function",ENTRYNAMEREQUIRED:"entry name must be a non-empty string value",FILEFILEPATHREQUIRED:"file filepath argument must be a non-empty string value",FINALIZING:"archive already finalizing",QUEUECLOSED:"queue closed",NOENDMETHOD:"no suitable finalize/end method defined by module",DIRECTORYNOTSUPPORTED:"support for directory entries not defined by module",FORMATSET:"archive format already set",INPUTSTEAMBUFFERREQUIRED:"input source must be valid Stream or Buffer instance",MODULESET:"module already set",SYMLINKNOTSUPPORTED:"support for symlink entries not defined by module",SYMLINKFILEPATHREQUIRED:"symlink filepath argument must be a non-empty string value",SYMLINKTARGETREQUIRED:"symlink target argument must be a non-empty string value",ENTRYNOTSUPPORTED:"entry not supported"};function ArchiverError(r,s){Error.captureStackTrace(this,this.constructor);this.message=A[r]||r;this.code=r;this.data=s}a.inherits(ArchiverError,Error);s=r.exports=ArchiverError},99827:(r,s,i)=>{ /** - * Gets the values of an multiline input. Each value is also trimmed. + * JSON Format Plugin * - * @param name name of the input to get - * @param options optional. See InputOptions. - * @returns string[] + * @module plugins/json + * @license [MIT]{@link https://github.com/archiverjs/node-archiver/blob/master/LICENSE} + * @copyright (c) 2012-2014 Chris Talkington, contributors. + */ +var a=i(73837).inherits;var A=i(45193).Transform;var c=i(54119);var l=i(82072);var Json=function(r){if(!(this instanceof Json)){return new Json(r)}r=this.options=l.defaults(r,{});A.call(this,r);this.supports={directory:true,symlink:true};this.files=[]};a(Json,A);Json.prototype._transform=function(r,s,i){i(null,r)};Json.prototype._writeStringified=function(){var r=JSON.stringify(this.files);this.write(r)};Json.prototype.append=function(r,s,i){var a=this;s.crc32=0;function onend(r,A){if(r){i(r);return}s.size=A.length||0;s.crc32=c.unsigned(A);a.files.push(s);i(null,s)}if(s.sourceType==="buffer"){onend(null,r)}else if(s.sourceType==="stream"){l.collectStream(r,onend)}};Json.prototype.finalize=function(){this._writeStringified();this.end()};r.exports=Json},33614:(r,s,i)=>{ +/** + * TAR Format Plugin * + * @module plugins/tar + * @license [MIT]{@link https://github.com/archiverjs/node-archiver/blob/master/LICENSE} + * @copyright (c) 2012-2014 Chris Talkington, contributors. */ -function getMultilineInput(name, options) { - const inputs = getInput(name, options) - .split('\n') - .filter(x => x !== ''); - return inputs; -} -exports.getMultilineInput = getMultilineInput; +var a=i(59796);var A=i(2283);var c=i(82072);var Tar=function(r){if(!(this instanceof Tar)){return new Tar(r)}r=this.options=c.defaults(r,{gzip:false});if(typeof r.gzipOptions!=="object"){r.gzipOptions={}}this.supports={directory:true,symlink:true};this.engine=A.pack(r);this.compressor=false;if(r.gzip){this.compressor=a.createGzip(r.gzipOptions);this.compressor.on("error",this._onCompressorError.bind(this))}};Tar.prototype._onCompressorError=function(r){this.engine.emit("error",r)};Tar.prototype.append=function(r,s,i){var a=this;s.mtime=s.date;function append(r,A){if(r){i(r);return}a.engine.entry(s,A,(function(r){i(r,s)}))}if(s.sourceType==="buffer"){append(null,r)}else if(s.sourceType==="stream"&&s.stats){s.size=s.stats.size;var A=a.engine.entry(s,(function(r){i(r,s)}));r.pipe(A)}else if(s.sourceType==="stream"){c.collectStream(r,append)}};Tar.prototype.finalize=function(){this.engine.finalize()};Tar.prototype.on=function(){return this.engine.on.apply(this.engine,arguments)};Tar.prototype.pipe=function(r,s){if(this.compressor){return this.engine.pipe.apply(this.engine,[this.compressor]).pipe(r,s)}else{return this.engine.pipe.apply(this.engine,arguments)}};Tar.prototype.unpipe=function(){if(this.compressor){return this.compressor.unpipe.apply(this.compressor,arguments)}else{return this.engine.unpipe.apply(this.engine,arguments)}};r.exports=Tar},8987:(r,s,i)=>{ /** - * Gets the input value of the boolean type in the YAML 1.2 "core schema" specification. - * Support boolean input list: `true | True | TRUE | false | False | FALSE` . - * The return value is also in boolean type. - * ref: https://yaml.org/spec/1.2/spec.html#id2804923 + * ZIP Format Plugin * - * @param name name of the input to get - * @param options optional. See InputOptions. - * @returns boolean + * @module plugins/zip + * @license [MIT]{@link https://github.com/archiverjs/node-archiver/blob/master/LICENSE} + * @copyright (c) 2012-2014 Chris Talkington, contributors. */ -function getBooleanInput(name, options) { - const trueValue = ['true', 'True', 'TRUE']; - const falseValue = ['false', 'False', 'FALSE']; - const val = getInput(name, options); - if (trueValue.includes(val)) - return true; - if (falseValue.includes(val)) - return false; - throw new TypeError(`Input does not meet YAML 1.2 "Core Schema" specification: ${name}\n` + - `Support boolean input list: \`true | True | TRUE | false | False | FALSE\``); -} -exports.getBooleanInput = getBooleanInput; +var a=i(86454);var A=i(82072);var Zip=function(r){if(!(this instanceof Zip)){return new Zip(r)}r=this.options=A.defaults(r,{comment:"",forceUTC:false,namePrependSlash:false,store:false});this.supports={directory:true,symlink:true};this.engine=new a(r)};Zip.prototype.append=function(r,s,i){this.engine.entry(r,s,i)};Zip.prototype.finalize=function(){this.engine.finalize()};Zip.prototype.on=function(){return this.engine.on.apply(this.engine,arguments)};Zip.prototype.pipe=function(){return this.engine.pipe.apply(this.engine,arguments)};Zip.prototype.unpipe=function(){return this.engine.unpipe.apply(this.engine,arguments)};r.exports=Zip},57888:function(r,s){(function(r,i){true?i(s):0})(this,(function(r){"use strict";function apply(r,...s){return(...i)=>r(...s,...i)}function initialParams(r){return function(...s){var i=s.pop();return r.call(this,s,i)}}var s=typeof queueMicrotask==="function"&&queueMicrotask;var i=typeof setImmediate==="function"&&setImmediate;var a=typeof process==="object"&&typeof process.nextTick==="function";function fallback(r){setTimeout(r,0)}function wrap(r){return(s,...i)=>r((()=>s(...i)))}var A;if(s){A=queueMicrotask}else if(i){A=setImmediate}else if(a){A=process.nextTick}else{A=fallback}var c=wrap(A);function asyncify(r){if(isAsync(r)){return function(...s){const i=s.pop();const a=r.apply(this,s);return handlePromise(a,i)}}return initialParams((function(s,i){var a;try{a=r.apply(this,s)}catch(r){return i(r)}if(a&&typeof a.then==="function"){return handlePromise(a,i)}else{i(null,a)}}))}function handlePromise(r,s){return r.then((r=>{invokeCallback(s,null,r)}),(r=>{invokeCallback(s,r&&(r instanceof Error||r.message)?r:new Error(r))}))}function invokeCallback(r,s,i){try{r(s,i)}catch(r){c((r=>{throw r}),r)}}function isAsync(r){return r[Symbol.toStringTag]==="AsyncFunction"}function isAsyncGenerator(r){return r[Symbol.toStringTag]==="AsyncGenerator"}function isAsyncIterable(r){return typeof r[Symbol.asyncIterator]==="function"}function wrapAsync(r){if(typeof r!=="function")throw new Error("expected a function");return isAsync(r)?asyncify(r):r}function awaitify(r,s){if(!s)s=r.length;if(!s)throw new Error("arity is undefined");function awaitable(...i){if(typeof i[s-1]==="function"){return r.apply(this,i)}return new Promise(((a,A)=>{i[s-1]=(r,...s)=>{if(r)return A(r);a(s.length>1?s:s[0])};r.apply(this,i)}))}return awaitable}function applyEach$1(r){return function applyEach(s,...i){const a=awaitify((function(a){var A=this;return r(s,((r,s)=>{wrapAsync(r).apply(A,i.concat(s))}),a)}));return a}}function _asyncMap(r,s,i,a){s=s||[];var A=[];var c=0;var l=wrapAsync(i);return r(s,((r,s,i)=>{var a=c++;l(r,((r,s)=>{A[a]=s;i(r)}))}),(r=>{a(r,A)}))}function isArrayLike(r){return r&&typeof r.length==="number"&&r.length>=0&&r.length%1===0}const l={};var d=l;function once(r){function wrapper(...s){if(r===null)return;var i=r;r=null;i.apply(this,s)}Object.assign(wrapper,r);return wrapper}function getIterator(r){return r[Symbol.iterator]&&r[Symbol.iterator]()}function createArrayIterator(r){var s=-1;var i=r.length;return function next(){return++s=s||l||A)return;l=true;r.next().then((({value:r,done:s})=>{if(c||A)return;l=false;if(s){A=true;if(u<=0){a(null)}return}u++;i(r,p,iterateeCallback);p++;replenish()})).catch(handleError)}function iterateeCallback(r,s){u-=1;if(c)return;if(r)return handleError(r);if(r===false){A=true;c=true;return}if(s===d||A&&u<=0){A=true;return a(null)}replenish()}function handleError(r){if(c)return;l=false;A=true;a(r)}replenish()}var eachOfLimit$2=r=>(s,i,a)=>{a=once(a);if(r<=0){throw new RangeError("concurrency limit cannot be less than 1")}if(!s){return a(null)}if(isAsyncGenerator(s)){return asyncEachOfLimit(s,r,i,a)}if(isAsyncIterable(s)){return asyncEachOfLimit(s[Symbol.asyncIterator](),r,i,a)}var A=createIterator(s);var c=false;var l=false;var u=0;var p=false;function iterateeCallback(r,s){if(l)return;u-=1;if(r){c=true;a(r)}else if(r===false){c=true;l=true}else if(s===d||c&&u<=0){c=true;return a(null)}else if(!p){replenish()}}function replenish(){p=true;while(u1?a:a[0])}callback[B]=new Promise(((i,a)=>{r=i,s=a}));return callback}function auto(r,s,i){if(typeof s!=="number"){i=s;s=null}i=once(i||promiseCallback());var a=Object.keys(r).length;if(!a){return i(null)}if(!s){s=a}var A={};var c=0;var l=false;var d=false;var u=Object.create(null);var p=[];var g=[];var h={};Object.keys(r).forEach((s=>{var i=r[s];if(!Array.isArray(i)){enqueueTask(s,[i]);g.push(s);return}var a=i.slice(0,i.length-1);var A=a.length;if(A===0){enqueueTask(s,i);g.push(s);return}h[s]=A;a.forEach((c=>{if(!r[c]){throw new Error("async.auto task `"+s+"` has a non-existent dependency `"+c+"` in "+a.join(", "))}addListener(c,(()=>{A--;if(A===0){enqueueTask(s,i)}}))}))}));checkForDeadlocks();processQueue();function enqueueTask(r,s){p.push((()=>runTask(r,s)))}function processQueue(){if(l)return;if(p.length===0&&c===0){return i(null,A)}while(p.length&&cr()));processQueue()}function runTask(r,s){if(d)return;var a=onlyOnce(((s,...a)=>{c--;if(s===false){l=true;return}if(a.length<2){[a]=a}if(s){var p={};Object.keys(A).forEach((r=>{p[r]=A[r]}));p[r]=a;d=true;u=Object.create(null);if(l)return;i(s,p)}else{A[r]=a;taskComplete(r)}}));c++;var p=wrapAsync(s[s.length-1]);if(s.length>1){p(A,a)}else{p(a)}}function checkForDeadlocks(){var r;var s=0;while(g.length){r=g.pop();s++;getDependents(r).forEach((r=>{if(--h[r]===0){g.push(r)}}))}if(s!==a){throw new Error("async.auto cannot execute tasks due to a recursive dependency")}}function getDependents(s){var i=[];Object.keys(r).forEach((a=>{const A=r[a];if(Array.isArray(A)&&A.indexOf(s)>=0){i.push(a)}}));return i}return i[B]}var b=/^(?:async\s+)?(?:function)?\s*\w*\s*\(\s*([^)]+)\s*\)(?:\s*{)/;var Q=/^(?:async\s+)?\(?\s*([^)=]+)\s*\)?(?:\s*=>)/;var w=/,/;var v=/(=.+)?(\s*)$/;function stripComments(r){let s="";let i=0;let a=r.indexOf("*/");while(ir.replace(v,"").trim()))}function autoInject(r,s){var i={};Object.keys(r).forEach((s=>{var a=r[s];var A;var c=isAsync(a);var l=!c&&a.length===1||c&&a.length===0;if(Array.isArray(a)){A=[...a];a=A.pop();i[s]=A.concat(A.length>0?newTask:a)}else if(l){i[s]=a}else{A=parseParams(a);if(a.length===0&&!c&&A.length===0){throw new Error("autoInject task functions require explicit parameters.")}if(!c)A.pop();i[s]=A.concat(newTask)}function newTask(r,s){var i=A.map((s=>r[s]));i.push(s);wrapAsync(a)(...i)}}));return auto(i,s)}class DLL{constructor(){this.head=this.tail=null;this.length=0}removeLink(r){if(r.prev)r.prev.next=r.next;else this.head=r.next;if(r.next)r.next.prev=r.prev;else this.tail=r.prev;r.prev=r.next=null;this.length-=1;return r}empty(){while(this.head)this.shift();return this}insertAfter(r,s){s.prev=r;s.next=r.next;if(r.next)r.next.prev=s;else this.tail=s;r.next=s;this.length+=1}insertBefore(r,s){s.prev=r.prev;s.next=r;if(r.prev)r.prev.next=s;else this.head=s;r.prev=s;this.length+=1}unshift(r){if(this.head)this.insertBefore(this.head,r);else setInitial(this,r)}push(r){if(this.tail)this.insertAfter(this.tail,r);else setInitial(this,r)}shift(){return this.head&&this.removeLink(this.head)}pop(){return this.tail&&this.removeLink(this.tail)}toArray(){return[...this]}*[Symbol.iterator](){var r=this.head;while(r){yield r.data;r=r.next}}remove(r){var s=this.head;while(s){var{next:i}=s;if(r(s)){this.removeLink(s)}s=i}return this}}function setInitial(r,s){r.length=1;r.head=r.tail=s}function queue$1(r,s,i){if(s==null){s=1}else if(s===0){throw new RangeError("Concurrency must not be zero")}var a=wrapAsync(r);var A=0;var l=[];const d={error:[],drain:[],saturated:[],unsaturated:[],empty:[]};function on(r,s){d[r].push(s)}function once(r,s){const handleAndRemove=(...i)=>{off(r,handleAndRemove);s(...i)};d[r].push(handleAndRemove)}function off(r,s){if(!r)return Object.keys(d).forEach((r=>d[r]=[]));if(!s)return d[r]=[];d[r]=d[r].filter((r=>r!==s))}function trigger(r,...s){d[r].forEach((r=>r(...s)))}var u=false;function _insert(r,s,i,a){if(a!=null&&typeof a!=="function"){throw new Error("task callback must be a function")}g.started=true;var A,l;function promiseCallback(r,...s){if(r)return i?l(r):A();if(s.length<=1)return A(s[0]);A(s)}var d=g._createTaskItem(r,i?promiseCallback:a||promiseCallback);if(s){g._tasks.unshift(d)}else{g._tasks.push(d)}if(!u){u=true;c((()=>{u=false;g.process()}))}if(i||!a){return new Promise(((r,s)=>{A=r;l=s}))}}function _createCB(r){return function(s,...i){A-=1;for(var a=0,c=r.length;a0){l.splice(u,1)}d.callback(s,...i);if(s!=null){trigger("error",s,d.data)}}if(A<=g.concurrency-g.buffer){trigger("unsaturated")}if(g.idle()){trigger("drain")}g.process()}}function _maybeDrain(r){if(r.length===0&&g.idle()){c((()=>trigger("drain")));return true}return false}const eventMethod=r=>s=>{if(!s){return new Promise(((s,i)=>{once(r,((r,a)=>{if(r)return i(r);s(a)}))}))}off(r);on(r,s)};var p=false;var g={_tasks:new DLL,_createTaskItem(r,s){return{data:r,callback:s}},*[Symbol.iterator](){yield*g._tasks[Symbol.iterator]()},concurrency:s,payload:i,buffer:s/4,started:false,paused:false,push(r,s){if(Array.isArray(r)){if(_maybeDrain(r))return;return r.map((r=>_insert(r,false,false,s)))}return _insert(r,false,false,s)},pushAsync(r,s){if(Array.isArray(r)){if(_maybeDrain(r))return;return r.map((r=>_insert(r,false,true,s)))}return _insert(r,false,true,s)},kill(){off();g._tasks.empty()},unshift(r,s){if(Array.isArray(r)){if(_maybeDrain(r))return;return r.map((r=>_insert(r,true,false,s)))}return _insert(r,true,false,s)},unshiftAsync(r,s){if(Array.isArray(r)){if(_maybeDrain(r))return;return r.map((r=>_insert(r,true,true,s)))}return _insert(r,true,true,s)},remove(r){g._tasks.remove(r)},process(){if(p){return}p=true;while(!g.paused&&A{A(s,r,((r,i)=>{s=i;a(r)}))}),(r=>a(r,s)))}var S=awaitify(reduce,4);function seq(...r){var s=r.map(wrapAsync);return function(...r){var i=this;var a=r[r.length-1];if(typeof a=="function"){r.pop()}else{a=promiseCallback()}S(s,r,((r,s,a)=>{s.apply(i,r.concat(((r,...s)=>{a(r,s)})))}),((r,s)=>a(r,...s)));return a[B]}}function compose(...r){return seq(...r.reverse())}function mapLimit(r,s,i,a){return _asyncMap(eachOfLimit$2(s),r,i,a)}var R=awaitify(mapLimit,4);function concatLimit(r,s,i,a){var A=wrapAsync(i);return R(r,s,((r,s)=>{A(r,((r,...i)=>{if(r)return s(r);return s(r,i)}))}),((r,s)=>{var i=[];for(var A=0;A{var l=false;var u;const p=wrapAsync(A);i(a,((i,a,A)=>{p(i,((a,c)=>{if(a||a===false)return A(a);if(r(c)&&!u){l=true;u=s(true,i);return A(null,d)}A()}))}),(r=>{if(r)return c(r);c(null,l?u:s(false))}))}}function detect(r,s,i){return _createTester((r=>r),((r,s)=>s))(p,r,s,i)}var k=awaitify(detect,3);function detectLimit(r,s,i,a){return _createTester((r=>r),((r,s)=>s))(eachOfLimit$2(s),r,i,a)}var T=awaitify(detectLimit,4);function detectSeries(r,s,i){return _createTester((r=>r),((r,s)=>s))(eachOfLimit$2(1),r,s,i)}var _=awaitify(detectSeries,3);function consoleFunc(r){return(s,...i)=>wrapAsync(s)(...i,((s,...i)=>{if(typeof console==="object"){if(s){if(console.error){console.error(s)}}else if(console[r]){i.forEach((s=>console[r](s)))}}}))}var P=consoleFunc("dir");function doWhilst(r,s,i){i=onlyOnce(i);var a=wrapAsync(r);var A=wrapAsync(s);var c;function next(r,...s){if(r)return i(r);if(r===false)return;c=s;A(...s,check)}function check(r,s){if(r)return i(r);if(r===false)return;if(!s)return i(null,...c);a(next)}return check(null,true)}var O=awaitify(doWhilst,3);function doUntil(r,s,i){const a=wrapAsync(s);return O(r,((...r)=>{const s=r.pop();a(...r,((r,i)=>s(r,!i)))}),i)}function _withoutIndex(r){return(s,i,a)=>r(s,a)}function eachLimit$2(r,s,i){return p(r,_withoutIndex(wrapAsync(s)),i)}var L=awaitify(eachLimit$2,3);function eachLimit(r,s,i,a){return eachOfLimit$2(s)(r,_withoutIndex(wrapAsync(i)),a)}var M=awaitify(eachLimit,4);function eachSeries(r,s,i){return M(r,1,s,i)}var U=awaitify(eachSeries,3);function ensureAsync(r){if(isAsync(r))return r;return function(...s){var i=s.pop();var a=true;s.push(((...r)=>{if(a){c((()=>i(...r)))}else{i(...r)}}));r.apply(this,s);a=false}}function every(r,s,i){return _createTester((r=>!r),(r=>!r))(p,r,s,i)}var H=awaitify(every,3);function everyLimit(r,s,i,a){return _createTester((r=>!r),(r=>!r))(eachOfLimit$2(s),r,i,a)}var G=awaitify(everyLimit,4);function everySeries(r,s,i){return _createTester((r=>!r),(r=>!r))(C,r,s,i)}var q=awaitify(everySeries,3);function filterArray(r,s,i,a){var A=new Array(s.length);r(s,((r,s,a)=>{i(r,((r,i)=>{A[s]=!!i;a(r)}))}),(r=>{if(r)return a(r);var i=[];for(var c=0;c{i(r,((i,c)=>{if(i)return a(i);if(c){A.push({index:s,value:r})}a(i)}))}),(r=>{if(r)return a(r);a(null,A.sort(((r,s)=>r.index-s.index)).map((r=>r.value)))}))}function _filter(r,s,i,a){var A=isArrayLike(s)?filterArray:filterGeneric;return A(r,s,wrapAsync(i),a)}function filter(r,s,i){return _filter(p,r,s,i)}var V=awaitify(filter,3);function filterLimit(r,s,i,a){return _filter(eachOfLimit$2(s),r,i,a)}var j=awaitify(filterLimit,4);function filterSeries(r,s,i){return _filter(C,r,s,i)}var z=awaitify(filterSeries,3);function forever(r,s){var i=onlyOnce(s);var a=wrapAsync(ensureAsync(r));function next(r){if(r)return i(r);if(r===false)return;a(next)}return next()}var Y=awaitify(forever,2);function groupByLimit(r,s,i,a){var A=wrapAsync(i);return R(r,s,((r,s)=>{A(r,((i,a)=>{if(i)return s(i);return s(i,{key:a,val:r})}))}),((r,s)=>{var i={};var{hasOwnProperty:A}=Object.prototype;for(var c=0;c{c(r,s,((r,a)=>{if(r)return i(r);A[s]=a;i(r)}))}),(r=>a(r,A)))}var X=awaitify(mapValuesLimit,4);function mapValues(r,s,i){return X(r,Infinity,s,i)}function mapValuesSeries(r,s,i){return X(r,1,s,i)}function memoize(r,s=(r=>r)){var i=Object.create(null);var a=Object.create(null);var A=wrapAsync(r);var l=initialParams(((r,l)=>{var d=s(...r);if(d in i){c((()=>l(null,...i[d])))}else if(d in a){a[d].push(l)}else{a[d]=[l];A(...r,((r,...s)=>{if(!r){i[d]=s}var A=a[d];delete a[d];for(var c=0,l=A.length;c{var a=isArrayLike(s)?[]:{};r(s,((r,s,i)=>{wrapAsync(r)(((r,...A)=>{if(A.length<2){[A]=A}a[s]=A;i(r)}))}),(r=>i(r,a)))}),3);function parallel(r,s){return Z(p,r,s)}function parallelLimit(r,s,i){return Z(eachOfLimit$2(s),r,i)}function queue(r,s){var i=wrapAsync(r);return queue$1(((r,s)=>{i(r[0],s)}),s,1)}class Heap{constructor(){this.heap=[];this.pushCount=Number.MIN_SAFE_INTEGER}get length(){return this.heap.length}empty(){this.heap=[];return this}percUp(r){let s;while(r>0&&smaller(this.heap[r],this.heap[s=parent(r)])){let i=this.heap[r];this.heap[r]=this.heap[s];this.heap[s]=i;r=s}}percDown(r){let s;while((s=leftChi(r))=0;r--){this.percDown(r)}return this}}function leftChi(r){return(r<<1)+1}function parent(r){return(r+1>>1)-1}function smaller(r,s){if(r.priority!==s.priority){return r.priority({data:r,priority:s,callback:i});function createDataItems(r,s){if(!Array.isArray(r)){return{data:r,priority:s}}return r.map((r=>({data:r,priority:s})))}i.push=function(r,s=0,i){return a(createDataItems(r,s),i)};i.pushAsync=function(r,s=0,i){return A(createDataItems(r,s),i)};delete i.unshift;delete i.unshiftAsync;return i}function race(r,s){s=once(s);if(!Array.isArray(r))return s(new TypeError("First argument to race must be an array of functions"));if(!r.length)return s();for(var i=0,a=r.length;i{let a={};if(r){a.error=r}if(s.length>0){var A=s;if(s.length<=1){[A]=s}a.value=A}i(null,a)}));return s.apply(this,r)}))}function reflectAll(r){var s;if(Array.isArray(r)){s=r.map(reflect)}else{s={};Object.keys(r).forEach((i=>{s[i]=reflect.call(this,r[i])}))}return s}function reject$2(r,s,i,a){const A=wrapAsync(i);return _filter(r,s,((r,s)=>{A(r,((r,i)=>{s(r,!i)}))}),a)}function reject(r,s,i){return reject$2(p,r,s,i)}var te=awaitify(reject,3);function rejectLimit(r,s,i,a){return reject$2(eachOfLimit$2(s),r,i,a)}var re=awaitify(rejectLimit,4);function rejectSeries(r,s,i){return reject$2(C,r,s,i)}var ne=awaitify(rejectSeries,3);function constant(r){return function(){return r}}const se=5;const ie=0;function retry(r,s,i){var a={times:se,intervalFunc:constant(ie)};if(arguments.length<3&&typeof r==="function"){i=s||promiseCallback();s=r}else{parseTimes(a,r);i=i||promiseCallback()}if(typeof s!=="function"){throw new Error("Invalid arguments for async.retry")}var A=wrapAsync(s);var c=1;function retryAttempt(){A(((r,...s)=>{if(r===false)return;if(r&&c++{if(s.lengthr))(p,r,s,i)}var oe=awaitify(some,3);function someLimit(r,s,i,a){return _createTester(Boolean,(r=>r))(eachOfLimit$2(s),r,i,a)}var ae=awaitify(someLimit,4);function someSeries(r,s,i){return _createTester(Boolean,(r=>r))(C,r,s,i)}var Ae=awaitify(someSeries,3);function sortBy(r,s,i){var a=wrapAsync(s);return g(r,((r,s)=>{a(r,((i,a)=>{if(i)return s(i);s(i,{value:r,criteria:a})}))}),((r,s)=>{if(r)return i(r);i(null,s.sort(comparator).map((r=>r.value)))}));function comparator(r,s){var i=r.criteria,a=s.criteria;return ia?1:0}}var ce=awaitify(sortBy,3);function timeout(r,s,i){var a=wrapAsync(r);return initialParams(((A,c)=>{var l=false;var d;function timeoutCallback(){var s=r.name||"anonymous";var a=new Error('Callback function "'+s+'" timed out.');a.code="ETIMEDOUT";if(i){a.info=i}l=true;c(a)}A.push(((...r)=>{if(!l){c(...r);clearTimeout(d)}}));d=setTimeout(timeoutCallback,s);a(...A)}))}function range(r){var s=Array(r);while(r--){s[r]=r}return s}function timesLimit(r,s,i,a){var A=wrapAsync(i);return R(range(r),s,A,a)}function times(r,s,i){return timesLimit(r,Infinity,s,i)}function timesSeries(r,s,i){return timesLimit(r,1,s,i)}function transform(r,s,i,a){if(arguments.length<=3&&typeof s==="function"){a=i;i=s;s=Array.isArray(r)?[]:{}}a=once(a||promiseCallback());var A=wrapAsync(i);p(r,((r,i,a)=>{A(s,r,i,a)}),(r=>a(r,s)));return a[B]}function tryEach(r,s){var i=null;var a;return U(r,((r,s)=>{wrapAsync(r)(((r,...A)=>{if(r===false)return s(r);if(A.length<2){[a]=A}else{a=A}i=r;s(r?null:{})}))}),(()=>s(i,a)))}var le=awaitify(tryEach);function unmemoize(r){return(...s)=>(r.unmemoized||r)(...s)}function whilst(r,s,i){i=onlyOnce(i);var a=wrapAsync(s);var A=wrapAsync(r);var c=[];function next(r,...s){if(r)return i(r);c=s;if(r===false)return;A(check)}function check(r,s){if(r)return i(r);if(r===false)return;if(!s)return i(null,...c);a(next)}return A(check)}var de=awaitify(whilst,3);function until(r,s,i){const a=wrapAsync(r);return de((r=>a(((s,i)=>r(s,!i)))),s,i)}function waterfall(r,s){s=once(s);if(!Array.isArray(r))return s(new Error("First argument to waterfall must be an array of functions"));if(!r.length)return s();var i=0;function nextTask(s){var a=wrapAsync(r[i++]);a(...s,onlyOnce(next))}function next(a,...A){if(a===false)return;if(a||i===r.length){return s(a,...A)}nextTask(A)}nextTask([])}var ue=awaitify(waterfall);var pe={apply:apply,applyEach:h,applyEachSeries:I,asyncify:asyncify,auto:auto,autoInject:autoInject,cargo:cargo$1,cargoQueue:cargo,compose:compose,concat:x,concatLimit:N,concatSeries:D,constant:constant$1,detect:k,detectLimit:T,detectSeries:_,dir:P,doUntil:doUntil,doWhilst:O,each:L,eachLimit:M,eachOf:p,eachOfLimit:u,eachOfSeries:C,eachSeries:U,ensureAsync:ensureAsync,every:H,everyLimit:G,everySeries:q,filter:V,filterLimit:j,filterSeries:z,forever:Y,groupBy:groupBy,groupByLimit:J,groupBySeries:groupBySeries,log:W,map:g,mapLimit:R,mapSeries:y,mapValues:mapValues,mapValuesLimit:X,mapValuesSeries:mapValuesSeries,memoize:memoize,nextTick:K,parallel:parallel,parallelLimit:parallelLimit,priorityQueue:priorityQueue,queue:queue,race:ee,reduce:S,reduceRight:reduceRight,reflect:reflect,reflectAll:reflectAll,reject:te,rejectLimit:re,rejectSeries:ne,retry:retry,retryable:retryable,seq:seq,series:series,setImmediate:c,some:oe,someLimit:ae,someSeries:Ae,sortBy:ce,timeout:timeout,times:times,timesLimit:timesLimit,timesSeries:timesSeries,transform:transform,tryEach:le,unmemoize:unmemoize,until:until,waterfall:ue,whilst:de,all:H,allLimit:G,allSeries:q,any:oe,anyLimit:ae,anySeries:Ae,find:k,findLimit:T,findSeries:_,flatMap:x,flatMapLimit:N,flatMapSeries:D,forEach:L,forEachSeries:U,forEachLimit:M,forEachOf:p,forEachOfSeries:C,forEachOfLimit:u,inject:S,foldl:S,foldr:reduceRight,select:V,selectLimit:j,selectSeries:z,wrapSync:asyncify,during:de,doDuring:O};r.all=H;r.allLimit=G;r.allSeries=q;r.any=oe;r.anyLimit=ae;r.anySeries=Ae;r.apply=apply;r.applyEach=h;r.applyEachSeries=I;r.asyncify=asyncify;r.auto=auto;r.autoInject=autoInject;r.cargo=cargo$1;r.cargoQueue=cargo;r.compose=compose;r.concat=x;r.concatLimit=N;r.concatSeries=D;r.constant=constant$1;r.default=pe;r.detect=k;r.detectLimit=T;r.detectSeries=_;r.dir=P;r.doDuring=O;r.doUntil=doUntil;r.doWhilst=O;r.during=de;r.each=L;r.eachLimit=M;r.eachOf=p;r.eachOfLimit=u;r.eachOfSeries=C;r.eachSeries=U;r.ensureAsync=ensureAsync;r.every=H;r.everyLimit=G;r.everySeries=q;r.filter=V;r.filterLimit=j;r.filterSeries=z;r.find=k;r.findLimit=T;r.findSeries=_;r.flatMap=x;r.flatMapLimit=N;r.flatMapSeries=D;r.foldl=S;r.foldr=reduceRight;r.forEach=L;r.forEachLimit=M;r.forEachOf=p;r.forEachOfLimit=u;r.forEachOfSeries=C;r.forEachSeries=U;r.forever=Y;r.groupBy=groupBy;r.groupByLimit=J;r.groupBySeries=groupBySeries;r.inject=S;r.log=W;r.map=g;r.mapLimit=R;r.mapSeries=y;r.mapValues=mapValues;r.mapValuesLimit=X;r.mapValuesSeries=mapValuesSeries;r.memoize=memoize;r.nextTick=K;r.parallel=parallel;r.parallelLimit=parallelLimit;r.priorityQueue=priorityQueue;r.queue=queue;r.race=ee;r.reduce=S;r.reduceRight=reduceRight;r.reflect=reflect;r.reflectAll=reflectAll;r.reject=te;r.rejectLimit=re;r.rejectSeries=ne;r.retry=retry;r.retryable=retryable;r.select=V;r.selectLimit=j;r.selectSeries=z;r.seq=seq;r.series=series;r.setImmediate=c;r.some=oe;r.someLimit=ae;r.someSeries=Ae;r.sortBy=ce;r.timeout=timeout;r.times=times;r.timesLimit=timesLimit;r.timesSeries=timesSeries;r.transform=transform;r.tryEach=le;r.unmemoize=unmemoize;r.until=until;r.waterfall=ue;r.whilst=de;r.wrapSync=asyncify;Object.defineProperty(r,"__esModule",{value:true})}))},14812:(r,s,i)=>{r.exports={parallel:i(8210),serial:i(50445),serialOrdered:i(3578)}},1700:r=>{r.exports=abort;function abort(r){Object.keys(r.jobs).forEach(clean.bind(r));r.jobs={}}function clean(r){if(typeof this.jobs[r]=="function"){this.jobs[r]()}}},72794:(r,s,i)=>{var a=i(15295);r.exports=async;function async(r){var s=false;a((function(){s=true}));return function async_callback(i,A){if(s){r(i,A)}else{a((function nextTick_callback(){r(i,A)}))}}}},15295:r=>{r.exports=defer;function defer(r){var s=typeof setImmediate=="function"?setImmediate:typeof process=="object"&&typeof process.nextTick=="function"?process.nextTick:null;if(s){s(r)}else{setTimeout(r,0)}}},9023:(r,s,i)=>{var a=i(72794),A=i(1700);r.exports=iterate;function iterate(r,s,i,a){var c=i["keyedList"]?i["keyedList"][i.index]:i.index;i.jobs[c]=runJob(s,c,r[c],(function(r,s){if(!(c in i.jobs)){return}delete i.jobs[c];if(r){A(i)}else{i.results[c]=s}a(r,i.results)}))}function runJob(r,s,i,A){var c;if(r.length==2){c=r(i,a(A))}else{c=r(i,s,a(A))}return c}},42474:r=>{r.exports=state;function state(r,s){var i=!Array.isArray(r),a={index:0,keyedList:i||s?Object.keys(r):null,jobs:{},results:i?{}:[],size:i?Object.keys(r).length:r.length};if(s){a.keyedList.sort(i?s:function(i,a){return s(r[i],r[a])})}return a}},37942:(r,s,i)=>{var a=i(1700),A=i(72794);r.exports=terminator;function terminator(r){if(!Object.keys(this.jobs).length){return}this.index=this.size;a(this);A(r)(null,this.results)}},8210:(r,s,i)=>{var a=i(9023),A=i(42474),c=i(37942);r.exports=parallel;function parallel(r,s,i){var l=A(r);while(l.index<(l["keyedList"]||r).length){a(r,s,l,(function(r,s){if(r){i(r,s);return}if(Object.keys(l.jobs).length===0){i(null,l.results);return}}));l.index++}return c.bind(l,i)}},50445:(r,s,i)=>{var a=i(3578);r.exports=serial;function serial(r,s,i){return a(r,s,null,i)}},3578:(r,s,i)=>{var a=i(9023),A=i(42474),c=i(37942);r.exports=serialOrdered;r.exports.ascending=ascending;r.exports.descending=descending;function serialOrdered(r,s,i,l){var d=A(r,i);a(r,s,d,(function iteratorHandler(i,A){if(i){l(i,A);return}d.index++;if(d.index<(d["keyedList"]||r).length){a(r,s,d,iteratorHandler);return}l(null,d.results)}));return c.bind(d,l)}function ascending(r,s){return rs?1:0}function descending(r,s){return-1*ascending(r,s)}},33497:r=>{function isBuffer(r){return Buffer.isBuffer(r)||r instanceof Uint8Array}function isEncoding(r){return Buffer.isEncoding(r)}function alloc(r,s,i){return Buffer.alloc(r,s,i)}function allocUnsafe(r){return Buffer.allocUnsafe(r)}function allocUnsafeSlow(r){return Buffer.allocUnsafeSlow(r)}function byteLength(r,s){return Buffer.byteLength(r,s)}function compare(r,s){return Buffer.compare(r,s)}function concat(r,s){return Buffer.concat(r,s)}function copy(r,s,i,a,A){return toBuffer(r).copy(s,i,a,A)}function equals(r,s){return toBuffer(r).equals(s)}function fill(r,s,i,a,A){return toBuffer(r).fill(s,i,a,A)}function from(r,s,i){return Buffer.from(r,s,i)}function includes(r,s,i,a){return toBuffer(r).includes(s,i,a)}function indexOf(r,s,i,a){return toBuffer(r).indexOf(s,i,a)}function lastIndexOf(r,s,i,a){return toBuffer(r).lastIndexOf(s,i,a)}function swap16(r){return toBuffer(r).swap16()}function swap32(r){return toBuffer(r).swap32()}function swap64(r){return toBuffer(r).swap64()}function toBuffer(r){if(Buffer.isBuffer(r))return r;return Buffer.from(r.buffer,r.byteOffset,r.byteLength)}function toString(r,s,i,a){return toBuffer(r).toString(s,i,a)}function write(r,s,i,a,A){return toBuffer(r).write(s,i,a,A)}function writeDoubleLE(r,s,i){return toBuffer(r).writeDoubleLE(s,i)}function writeFloatLE(r,s,i){return toBuffer(r).writeFloatLE(s,i)}function writeUInt32LE(r,s,i){return toBuffer(r).writeUInt32LE(s,i)}function writeInt32LE(r,s,i){return toBuffer(r).writeInt32LE(s,i)}function readDoubleLE(r,s){return toBuffer(r).readDoubleLE(s)}function readFloatLE(r,s){return toBuffer(r).readFloatLE(s)}function readUInt32LE(r,s){return toBuffer(r).readUInt32LE(s)}function readInt32LE(r,s){return toBuffer(r).readInt32LE(s)}r.exports={isBuffer:isBuffer,isEncoding:isEncoding,alloc:alloc,allocUnsafe:allocUnsafe,allocUnsafeSlow:allocUnsafeSlow,byteLength:byteLength,compare:compare,concat:concat,copy:copy,equals:equals,fill:fill,from:from,includes:includes,indexOf:indexOf,lastIndexOf:lastIndexOf,swap16:swap16,swap32:swap32,swap64:swap64,toBuffer:toBuffer,toString:toString,write:write,writeDoubleLE:writeDoubleLE,writeFloatLE:writeFloatLE,writeUInt32LE:writeUInt32LE,writeInt32LE:writeInt32LE,readDoubleLE:readDoubleLE,readFloatLE:readFloatLE,readUInt32LE:readUInt32LE,readInt32LE:readInt32LE}},9417:r=>{"use strict";r.exports=balanced;function balanced(r,s,i){if(r instanceof RegExp)r=maybeMatch(r,i);if(s instanceof RegExp)s=maybeMatch(s,i);var a=range(r,s,i);return a&&{start:a[0],end:a[1],pre:i.slice(0,a[0]),body:i.slice(a[0]+r.length,a[1]),post:i.slice(a[1]+s.length)}}function maybeMatch(r,s){var i=s.match(r);return i?i[0]:null}balanced.range=range;function range(r,s,i){var a,A,c,l,d;var u=i.indexOf(r);var p=i.indexOf(s,u+1);var g=u;if(u>=0&&p>0){if(r===s){return[u,p]}a=[];c=i.length;while(g>=0&&!d){if(g==u){a.push(g);u=i.indexOf(r,g+1)}else if(a.length==1){d=[a.pop(),p]}else{A=a.pop();if(A=0?u:p}if(a.length){d=[c,l]}}return d}},83682:(r,s,i)=>{var a=i(44670);var A=i(5549);var c=i(6819);var l=Function.bind;var d=l.bind(l);function bindApi(r,s,i){var a=d(c,null).apply(null,i?[s,i]:[s]);r.api={remove:a};r.remove=a;["before","error","after","wrap"].forEach((function(a){var c=i?[s,a,i]:[s,a];r[a]=r.api[a]=d(A,null).apply(null,c)}))}function HookSingular(){var r="h";var s={registry:{}};var i=a.bind(null,s,r);bindApi(i,s,r);return i}function HookCollection(){var r={registry:{}};var s=a.bind(null,r);bindApi(s,r);return s}var u=false;function Hook(){if(!u){console.warn('[before-after-hook]: "Hook()" repurposing warning, use "Hook.Collection()". Read more: https://git.io/upgrade-before-after-hook-to-1.4');u=true}return HookCollection()}Hook.Singular=HookSingular.bind();Hook.Collection=HookCollection.bind();r.exports=Hook;r.exports.Hook=Hook;r.exports.Singular=Hook.Singular;r.exports.Collection=Hook.Collection},5549:r=>{r.exports=addHook;function addHook(r,s,i,a){var A=a;if(!r.registry[i]){r.registry[i]=[]}if(s==="before"){a=function(r,s){return Promise.resolve().then(A.bind(null,s)).then(r.bind(null,s))}}if(s==="after"){a=function(r,s){var i;return Promise.resolve().then(r.bind(null,s)).then((function(r){i=r;return A(i,s)})).then((function(){return i}))}}if(s==="error"){a=function(r,s){return Promise.resolve().then(r.bind(null,s)).catch((function(r){return A(r,s)}))}}r.registry[i].push({hook:a,orig:A})}},44670:r=>{r.exports=register;function register(r,s,i,a){if(typeof i!=="function"){throw new Error("method for before hook must be a function")}if(!a){a={}}if(Array.isArray(s)){return s.reverse().reduce((function(s,i){return register.bind(null,r,i,s,a)}),i)()}return Promise.resolve().then((function(){if(!r.registry[s]){return i(a)}return r.registry[s].reduce((function(r,s){return s.hook.bind(null,r,a)}),i)()}))}},6819:r=>{r.exports=removeHook;function removeHook(r,s,i){if(!r.registry[s]){return}var a=r.registry[s].map((function(r){return r.orig})).indexOf(i);if(a===-1){return}r.registry[s].splice(a,1)}},66474:(r,s,i)=>{var a=i(46533);var A=i(82361).EventEmitter;var c=i(51590);var l=i(13755);var d=i(12781).Stream;s=r.exports=function(r,i){if(Buffer.isBuffer(r)){return s.parse(r)}var a=s.stream();if(r&&r.pipe){r.pipe(a)}else if(r){r.on(i||"data",(function(r){a.write(r)}));r.on("end",(function(){a.end()}))}return a};s.stream=function(r){if(r)return s.apply(null,arguments);var i=null;function getBytes(r,s,a){i={bytes:r,skip:a,cb:function(r){i=null;s(r)}};dispatch()}var u=null;function dispatch(){if(!i){if(y)C=true;return}if(typeof i==="function"){i()}else{var r=u+i.bytes;if(g.length>=r){var s;if(u==null){s=g.splice(0,r);if(!i.skip){s=s.slice()}}else{if(!i.skip){s=g.slice(u,r)}u=r}if(i.skip){i.cb()}else{i.cb(s)}}}}function builder(r){function next(){if(!C)r.next()}var s=words((function(r,s){return function(i){getBytes(r,(function(r){h.set(i,s(r));next()}))}}));s.tap=function(s){r.nest(s,h.store)};s.into=function(s,i){if(!h.get(s))h.set(s,{});var a=h;h=l(a.get(s));r.nest((function(){i.apply(this,arguments);this.tap((function(){h=a}))}),h.store)};s.flush=function(){h.store={};next()};s.loop=function(s){var i=false;r.nest(false,(function loop(){this.vars=h.store;s.call(this,(function(){i=true;next()}),h.store);this.tap(function(){if(i)r.next();else loop.call(this)}.bind(this))}),h.store)};s.buffer=function(r,s){if(typeof s==="string"){s=h.get(s)}getBytes(s,(function(s){h.set(r,s);next()}))};s.skip=function(r){if(typeof r==="string"){r=h.get(r)}getBytes(r,(function(){next()}))};s.scan=function find(r,s){if(typeof s==="string"){s=new Buffer(s)}else if(!Buffer.isBuffer(s)){throw new Error("search must be a Buffer or a string")}var a=0;i=function(){var A=g.indexOf(s,u+a);var c=A-u-a;if(A!==-1){i=null;if(u!=null){h.set(r,g.slice(u,u+a+c));u+=a+c+s.length}else{h.set(r,g.slice(0,a+c));g.splice(0,a+c+s.length)}next();dispatch()}else{c=Math.max(g.length-s.length-u-a,0)}a+=c};dispatch()};s.peek=function(s){u=0;r.nest((function(){s.call(this,h.store);this.tap((function(){u=null}))}))};return s}var p=a.light(builder);p.writable=true;var g=c();p.write=function(r){g.push(r);dispatch()};var h=l();var C=false,y=false;p.end=function(){y=true};p.pipe=d.prototype.pipe;Object.getOwnPropertyNames(A.prototype).forEach((function(r){p[r]=A.prototype[r]}));return p};s.parse=function parse(r){var s=words((function(A,c){return function(l){if(i+A<=r.length){var d=r.slice(i,i+A);i+=A;a.set(l,c(d))}else{a.set(l,null)}return s}}));var i=0;var a=l();s.vars=a.store;s.tap=function(r){r.call(s,a.store);return s};s.into=function(r,i){if(!a.get(r)){a.set(r,{})}var A=a;a=l(A.get(r));i.call(s,a.store);a=A;return s};s.loop=function(r){var i=false;var ender=function(){i=true};while(i===false){r.call(s,ender,a.store)}return s};s.buffer=function(A,c){if(typeof c==="string"){c=a.get(c)}var l=r.slice(i,Math.min(r.length,i+c));i+=c;a.set(A,l);return s};s.skip=function(r){if(typeof r==="string"){r=a.get(r)}i+=r;return s};s.scan=function(A,c){if(typeof c==="string"){c=new Buffer(c)}else if(!Buffer.isBuffer(c)){throw new Error("search must be a Buffer or a string")}a.set(A,null);for(var l=0;l+i<=r.length-c.length+1;l++){for(var d=0;d=r.length};return s};function decodeLEu(r){var s=0;for(var i=0;i{r.exports=function(r){function getset(r,i){var a=s.store;var A=r.split(".");A.slice(0,-1).forEach((function(r){if(a[r]===undefined)a[r]={};a=a[r]}));var c=A[A.length-1];if(arguments.length==1){return a[c]}else{return a[c]=i}}var s={get:function(r){return getset(r)},set:function(r,s){return getset(r,s)},store:r||{}};return s}},11174:function(r){(function(s,i){true?r.exports=i():0})(this,(function(){"use strict";var r=typeof globalThis!=="undefined"?globalThis:typeof window!=="undefined"?window:typeof global!=="undefined"?global:typeof self!=="undefined"?self:{};function getCjsExportFromNamespace(r){return r&&r["default"]||r}var load=function(r,s,i={}){var a,A,c;for(a in s){c=s[a];i[a]=(A=r[a])!=null?A:c}return i};var overwrite=function(r,s,i={}){var a,A;for(a in r){A=r[a];if(s[a]!==void 0){i[a]=A}}return i};var s={load:load,overwrite:overwrite};var i;i=class DLList{constructor(r,s){this.incr=r;this.decr=s;this._first=null;this._last=null;this.length=0}push(r){var s;this.length++;if(typeof this.incr==="function"){this.incr()}s={value:r,prev:this._last,next:null};if(this._last!=null){this._last.next=s;this._last=s}else{this._first=this._last=s}return void 0}shift(){var r;if(this._first==null){return}else{this.length--;if(typeof this.decr==="function"){this.decr()}}r=this._first.value;if((this._first=this._first.next)!=null){this._first.prev=null}else{this._last=null}return r}first(){if(this._first!=null){return this._first.value}}getArray(){var r,s,i;r=this._first;i=[];while(r!=null){i.push((s=r,r=r.next,s.value))}return i}forEachShift(r){var s;s=this.shift();while(s!=null){r(s),s=this.shift()}return void 0}debug(){var r,s,i,a,A;r=this._first;A=[];while(r!=null){A.push((s=r,r=r.next,{value:s.value,prev:(i=s.prev)!=null?i.value:void 0,next:(a=s.next)!=null?a.value:void 0}))}return A}};var a=i;var A;A=class Events{constructor(r){this.instance=r;this._events={};if(this.instance.on!=null||this.instance.once!=null||this.instance.removeAllListeners!=null){throw new Error("An Emitter already exists for this object")}this.instance.on=(r,s)=>this._addListener(r,"many",s);this.instance.once=(r,s)=>this._addListener(r,"once",s);this.instance.removeAllListeners=(r=null)=>{if(r!=null){return delete this._events[r]}else{return this._events={}}}}_addListener(r,s,i){var a;if((a=this._events)[r]==null){a[r]=[]}this._events[r].push({cb:i,status:s});return this.instance}listenerCount(r){if(this._events[r]!=null){return this._events[r].length}else{return 0}}async trigger(r,...s){var i,a;try{if(r!=="debug"){this.trigger("debug",`Event triggered: ${r}`,s)}if(this._events[r]==null){return}this._events[r]=this._events[r].filter((function(r){return r.status!=="none"}));a=this._events[r].map((async r=>{var i,a;if(r.status==="none"){return}if(r.status==="once"){r.status="none"}try{a=typeof r.cb==="function"?r.cb(...s):void 0;if(typeof(a!=null?a.then:void 0)==="function"){return await a}else{return a}}catch(r){i=r;{this.trigger("error",i)}return null}}));return(await Promise.all(a)).find((function(r){return r!=null}))}catch(r){i=r;{this.trigger("error",i)}return null}}};var c=A;var l,d,u;l=a;d=c;u=class Queues{constructor(r){var s;this.Events=new d(this);this._length=0;this._lists=function(){var i,a,A;A=[];for(s=i=1,a=r;1<=a?i<=a:i>=a;s=1<=a?++i:--i){A.push(new l((()=>this.incr()),(()=>this.decr())))}return A}.call(this)}incr(){if(this._length++===0){return this.Events.trigger("leftzero")}}decr(){if(--this._length===0){return this.Events.trigger("zero")}}push(r){return this._lists[r.options.priority].push(r)}queued(r){if(r!=null){return this._lists[r].length}else{return this._length}}shiftAll(r){return this._lists.forEach((function(s){return s.forEachShift(r)}))}getFirst(r=this._lists){var s,i,a;for(s=0,i=r.length;s0){return a}}return[]}shiftLastFrom(r){return this.getFirst(this._lists.slice(r).reverse()).shift()}};var p=u;var g;g=class BottleneckError extends Error{};var h=g;var C,y,I,B,b;B=10;y=5;b=s;C=h;I=class Job{constructor(r,s,i,a,A,c,l,d){this.task=r;this.args=s;this.rejectOnDrop=A;this.Events=c;this._states=l;this.Promise=d;this.options=b.load(i,a);this.options.priority=this._sanitizePriority(this.options.priority);if(this.options.id===a.id){this.options.id=`${this.options.id}-${this._randomIndex()}`}this.promise=new this.Promise(((r,s)=>{this._resolve=r;this._reject=s}));this.retryCount=0}_sanitizePriority(r){var s;s=~~r!==r?y:r;if(s<0){return 0}else if(s>B-1){return B-1}else{return s}}_randomIndex(){return Math.random().toString(36).slice(2)}doDrop({error:r,message:s="This job has been dropped by Bottleneck"}={}){if(this._states.remove(this.options.id)){if(this.rejectOnDrop){this._reject(r!=null?r:new C(s))}this.Events.trigger("dropped",{args:this.args,options:this.options,task:this.task,promise:this.promise});return true}else{return false}}_assertStatus(r){var s;s=this._states.jobStatus(this.options.id);if(!(s===r||r==="DONE"&&s===null)){throw new C(`Invalid job status ${s}, expected ${r}. Please open an issue at https://github.com/SGrondin/bottleneck/issues`)}}doReceive(){this._states.start(this.options.id);return this.Events.trigger("received",{args:this.args,options:this.options})}doQueue(r,s){this._assertStatus("RECEIVED");this._states.next(this.options.id);return this.Events.trigger("queued",{args:this.args,options:this.options,reachedHWM:r,blocked:s})}doRun(){if(this.retryCount===0){this._assertStatus("QUEUED");this._states.next(this.options.id)}else{this._assertStatus("EXECUTING")}return this.Events.trigger("scheduled",{args:this.args,options:this.options})}async doExecute(r,s,i,a){var A,c,l;if(this.retryCount===0){this._assertStatus("RUNNING");this._states.next(this.options.id)}else{this._assertStatus("EXECUTING")}c={args:this.args,options:this.options,retryCount:this.retryCount};this.Events.trigger("executing",c);try{l=await(r!=null?r.schedule(this.options,this.task,...this.args):this.task(...this.args));if(s()){this.doDone(c);await a(this.options,c);this._assertStatus("DONE");return this._resolve(l)}}catch(r){A=r;return this._onFailure(A,c,s,i,a)}}doExpire(r,s,i){var a,A;if(this._states.jobStatus(this.options.id==="RUNNING")){this._states.next(this.options.id)}this._assertStatus("EXECUTING");A={args:this.args,options:this.options,retryCount:this.retryCount};a=new C(`This job timed out after ${this.options.expiration} ms.`);return this._onFailure(a,A,r,s,i)}async _onFailure(r,s,i,a,A){var c,l;if(i()){c=await this.Events.trigger("failed",r,s);if(c!=null){l=~~c;this.Events.trigger("retry",`Retrying ${this.options.id} after ${l} ms`,s);this.retryCount++;return a(l)}else{this.doDone(s);await A(this.options,s);this._assertStatus("DONE");return this._reject(r)}}}doDone(r){this._assertStatus("EXECUTING");this._states.next(this.options.id);return this.Events.trigger("done",r)}};var Q=I;var w,v,S;S=s;w=h;v=class LocalDatastore{constructor(r,s,i){this.instance=r;this.storeOptions=s;this.clientId=this.instance._randomIndex();S.load(i,i,this);this._nextRequest=this._lastReservoirRefresh=this._lastReservoirIncrease=Date.now();this._running=0;this._done=0;this._unblockTime=0;this.ready=this.Promise.resolve();this.clients={};this._startHeartbeat()}_startHeartbeat(){var r;if(this.heartbeat==null&&(this.storeOptions.reservoirRefreshInterval!=null&&this.storeOptions.reservoirRefreshAmount!=null||this.storeOptions.reservoirIncreaseInterval!=null&&this.storeOptions.reservoirIncreaseAmount!=null)){return typeof(r=this.heartbeat=setInterval((()=>{var r,s,i,a,A;a=Date.now();if(this.storeOptions.reservoirRefreshInterval!=null&&a>=this._lastReservoirRefresh+this.storeOptions.reservoirRefreshInterval){this._lastReservoirRefresh=a;this.storeOptions.reservoir=this.storeOptions.reservoirRefreshAmount;this.instance._drainAll(this.computeCapacity())}if(this.storeOptions.reservoirIncreaseInterval!=null&&a>=this._lastReservoirIncrease+this.storeOptions.reservoirIncreaseInterval){({reservoirIncreaseAmount:r,reservoirIncreaseMaximum:i,reservoir:A}=this.storeOptions);this._lastReservoirIncrease=a;s=i!=null?Math.min(r,i-A):r;if(s>0){this.storeOptions.reservoir+=s;return this.instance._drainAll(this.computeCapacity())}}}),this.heartbeatInterval)).unref==="function"?r.unref():void 0}else{return clearInterval(this.heartbeat)}}async __publish__(r){await this.yieldLoop();return this.instance.Events.trigger("message",r.toString())}async __disconnect__(r){await this.yieldLoop();clearInterval(this.heartbeat);return this.Promise.resolve()}yieldLoop(r=0){return new this.Promise((function(s,i){return setTimeout(s,r)}))}computePenalty(){var r;return(r=this.storeOptions.penalty)!=null?r:15*this.storeOptions.minTime||5e3}async __updateSettings__(r){await this.yieldLoop();S.overwrite(r,r,this.storeOptions);this._startHeartbeat();this.instance._drainAll(this.computeCapacity());return true}async __running__(){await this.yieldLoop();return this._running}async __queued__(){await this.yieldLoop();return this.instance.queued()}async __done__(){await this.yieldLoop();return this._done}async __groupCheck__(r){await this.yieldLoop();return this._nextRequest+this.timeout=r}check(r,s){return this.conditionsCheck(r)&&this._nextRequest-s<=0}async __check__(r){var s;await this.yieldLoop();s=Date.now();return this.check(r,s)}async __register__(r,s,i){var a,A;await this.yieldLoop();a=Date.now();if(this.conditionsCheck(s)){this._running+=s;if(this.storeOptions.reservoir!=null){this.storeOptions.reservoir-=s}A=Math.max(this._nextRequest-a,0);this._nextRequest=a+A+this.storeOptions.minTime;return{success:true,wait:A,reservoir:this.storeOptions.reservoir}}else{return{success:false}}}strategyIsBlock(){return this.storeOptions.strategy===3}async __submit__(r,s){var i,a,A;await this.yieldLoop();if(this.storeOptions.maxConcurrent!=null&&s>this.storeOptions.maxConcurrent){throw new w(`Impossible to add a job having a weight of ${s} to a limiter having a maxConcurrent setting of ${this.storeOptions.maxConcurrent}`)}a=Date.now();A=this.storeOptions.highWater!=null&&r===this.storeOptions.highWater&&!this.check(s,a);i=this.strategyIsBlock()&&(A||this.isBlocked(a));if(i){this._unblockTime=a+this.computePenalty();this._nextRequest=this._unblockTime+this.storeOptions.minTime;this.instance._dropAllQueued()}return{reachedHWM:A,blocked:i,strategy:this.storeOptions.strategy}}async __free__(r,s){await this.yieldLoop();this._running-=s;this._done+=s;this.instance._drainAll(this.computeCapacity());return{running:this._running}}};var R=v;var N,x;N=h;x=class States{constructor(r){this.status=r;this._jobs={};this.counts=this.status.map((function(){return 0}))}next(r){var s,i;s=this._jobs[r];i=s+1;if(s!=null&&i{r[this.status[i]]=s;return r}),{})}};var D=x;var k,T;k=a;T=class Sync{constructor(r,s){this.schedule=this.schedule.bind(this);this.name=r;this.Promise=s;this._running=0;this._queue=new k}isEmpty(){return this._queue.length===0}async _tryToRun(){var r,s,i,a,A,c,l;if(this._running<1&&this._queue.length>0){this._running++;({task:l,args:r,resolve:A,reject:a}=this._queue.shift());s=await async function(){try{c=await l(...r);return function(){return A(c)}}catch(r){i=r;return function(){return a(i)}}}();this._running--;this._tryToRun();return s()}}schedule(r,...s){var i,a,A;A=a=null;i=new this.Promise((function(r,s){A=r;return a=s}));this._queue.push({task:r,args:s,resolve:A,reject:a});this._tryToRun();return i}};var _=T;var P="2.19.5";var O={version:P};var L=Object.freeze({version:P,default:O});var require$$2=()=>console.log("You must import the full version of Bottleneck in order to use this feature.");var require$$3=()=>console.log("You must import the full version of Bottleneck in order to use this feature.");var require$$4=()=>console.log("You must import the full version of Bottleneck in order to use this feature.");var M,U,H,G,q,V;V=s;M=c;G=require$$2;H=require$$3;q=require$$4;U=function(){class Group{constructor(r={}){this.deleteKey=this.deleteKey.bind(this);this.limiterOptions=r;V.load(this.limiterOptions,this.defaults,this);this.Events=new M(this);this.instances={};this.Bottleneck=ce;this._startAutoCleanup();this.sharedConnection=this.connection!=null;if(this.connection==null){if(this.limiterOptions.datastore==="redis"){this.connection=new G(Object.assign({},this.limiterOptions,{Events:this.Events}))}else if(this.limiterOptions.datastore==="ioredis"){this.connection=new H(Object.assign({},this.limiterOptions,{Events:this.Events}))}}}key(r=""){var s;return(s=this.instances[r])!=null?s:(()=>{var s;s=this.instances[r]=new this.Bottleneck(Object.assign(this.limiterOptions,{id:`${this.id}-${r}`,timeout:this.timeout,connection:this.connection}));this.Events.trigger("created",s,r);return s})()}async deleteKey(r=""){var s,i;i=this.instances[r];if(this.connection){s=await this.connection.__runCommand__(["del",...q.allKeys(`${this.id}-${r}`)])}if(i!=null){delete this.instances[r];await i.disconnect()}return i!=null||s>0}limiters(){var r,s,i,a;s=this.instances;i=[];for(r in s){a=s[r];i.push({key:r,limiter:a})}return i}keys(){return Object.keys(this.instances)}async clusterKeys(){var r,s,i,a,A,c,l,d,u;if(this.connection==null){return this.Promise.resolve(this.keys())}c=[];r=null;u=`b_${this.id}-`.length;s="_settings".length;while(r!==0){[d,i]=await this.connection.__runCommand__(["scan",r!=null?r:0,"match",`b_${this.id}-*_settings`,"count",1e4]);r=~~d;for(a=0,l=i.length;a{var r,s,i,a,A,c;A=Date.now();i=this.instances;a=[];for(s in i){c=i[s];try{if(await c._store.__groupCheck__(A)){a.push(this.deleteKey(s))}else{a.push(void 0)}}catch(s){r=s;a.push(c.Events.trigger("error",r))}}return a}),this.timeout/2)).unref==="function"?r.unref():void 0}updateSettings(r={}){V.overwrite(r,this.defaults,this);V.overwrite(r,r,this.limiterOptions);if(r.timeout!=null){return this._startAutoCleanup()}}disconnect(r=true){var s;if(!this.sharedConnection){return(s=this.connection)!=null?s.disconnect(r):void 0}}}Group.prototype.defaults={timeout:1e3*60*5,connection:null,Promise:Promise,id:"group-key"};return Group}.call(r);var j=U;var z,Y,J;J=s;Y=c;z=function(){class Batcher{constructor(r={}){this.options=r;J.load(this.options,this.defaults,this);this.Events=new Y(this);this._arr=[];this._resetPromise();this._lastFlush=Date.now()}_resetPromise(){return this._promise=new this.Promise(((r,s)=>this._resolve=r))}_flush(){clearTimeout(this._timeout);this._lastFlush=Date.now();this._resolve();this.Events.trigger("batch",this._arr);this._arr=[];return this._resetPromise()}add(r){var s;this._arr.push(r);s=this._promise;if(this._arr.length===this.maxSize){this._flush()}else if(this.maxTime!=null&&this._arr.length===1){this._timeout=setTimeout((()=>this._flush()),this.maxTime)}return s}}Batcher.prototype.defaults={maxTime:null,maxSize:null,Promise:Promise};return Batcher}.call(r);var W=z;var require$$4$1=()=>console.log("You must import the full version of Bottleneck in order to use this feature.");var X=getCjsExportFromNamespace(L);var $,K,Z,ee,te,re,ne,se,ie,oe,ae,Ae=[].splice;re=10;K=5;ae=s;ne=p;ee=Q;te=R;se=require$$4$1;Z=c;ie=D;oe=_;$=function(){class Bottleneck{constructor(r={},...s){var i,a;this._addToQueue=this._addToQueue.bind(this);this._validateOptions(r,s);ae.load(r,this.instanceDefaults,this);this._queues=new ne(re);this._scheduled={};this._states=new ie(["RECEIVED","QUEUED","RUNNING","EXECUTING"].concat(this.trackDoneStatus?["DONE"]:[]));this._limiter=null;this.Events=new Z(this);this._submitLock=new oe("submit",this.Promise);this._registerLock=new oe("register",this.Promise);a=ae.load(r,this.storeDefaults,{});this._store=function(){if(this.datastore==="redis"||this.datastore==="ioredis"||this.connection!=null){i=ae.load(r,this.redisStoreDefaults,{});return new se(this,a,i)}else if(this.datastore==="local"){i=ae.load(r,this.localStoreDefaults,{});return new te(this,a,i)}else{throw new Bottleneck.prototype.BottleneckError(`Invalid datastore type: ${this.datastore}`)}}.call(this);this._queues.on("leftzero",(()=>{var r;return(r=this._store.heartbeat)!=null?typeof r.ref==="function"?r.ref():void 0:void 0}));this._queues.on("zero",(()=>{var r;return(r=this._store.heartbeat)!=null?typeof r.unref==="function"?r.unref():void 0:void 0}))}_validateOptions(r,s){if(!(r!=null&&typeof r==="object"&&s.length===0)){throw new Bottleneck.prototype.BottleneckError("Bottleneck v2 takes a single object argument. Refer to https://github.com/SGrondin/bottleneck#upgrading-to-v2 if you're upgrading from Bottleneck v1.")}}ready(){return this._store.ready}clients(){return this._store.clients}channel(){return`b_${this.id}`}channel_client(){return`b_${this.id}_${this._store.clientId}`}publish(r){return this._store.__publish__(r)}disconnect(r=true){return this._store.__disconnect__(r)}chain(r){this._limiter=r;return this}queued(r){return this._queues.queued(r)}clusterQueued(){return this._store.__queued__()}empty(){return this.queued()===0&&this._submitLock.isEmpty()}running(){return this._store.__running__()}done(){return this._store.__done__()}jobStatus(r){return this._states.jobStatus(r)}jobs(r){return this._states.statusJobs(r)}counts(){return this._states.statusCounts()}_randomIndex(){return Math.random().toString(36).slice(2)}check(r=1){return this._store.__check__(r)}_clearGlobalState(r){if(this._scheduled[r]!=null){clearTimeout(this._scheduled[r].expiration);delete this._scheduled[r];return true}else{return false}}async _free(r,s,i,a){var A,c;try{({running:c}=await this._store.__free__(r,i.weight));this.Events.trigger("debug",`Freed ${i.id}`,a);if(c===0&&this.empty()){return this.Events.trigger("idle")}}catch(r){A=r;return this.Events.trigger("error",A)}}_run(r,s,i){var a,A,c;s.doRun();a=this._clearGlobalState.bind(this,r);c=this._run.bind(this,r,s);A=this._free.bind(this,r,s);return this._scheduled[r]={timeout:setTimeout((()=>s.doExecute(this._limiter,a,c,A)),i),expiration:s.options.expiration!=null?setTimeout((function(){return s.doExpire(a,c,A)}),i+s.options.expiration):void 0,job:s}}_drainOne(r){return this._registerLock.schedule((()=>{var s,i,a,A,c;if(this.queued()===0){return this.Promise.resolve(null)}c=this._queues.getFirst();({options:A,args:s}=a=c.first());if(r!=null&&A.weight>r){return this.Promise.resolve(null)}this.Events.trigger("debug",`Draining ${A.id}`,{args:s,options:A});i=this._randomIndex();return this._store.__register__(i,A.weight,A.expiration).then((({success:r,wait:l,reservoir:d})=>{var u;this.Events.trigger("debug",`Drained ${A.id}`,{success:r,args:s,options:A});if(r){c.shift();u=this.empty();if(u){this.Events.trigger("empty")}if(d===0){this.Events.trigger("depleted",u)}this._run(i,a,l);return this.Promise.resolve(A.weight)}else{return this.Promise.resolve(null)}}))}))}_drainAll(r,s=0){return this._drainOne(r).then((i=>{var a;if(i!=null){a=r!=null?r-i:r;return this._drainAll(a,s+i)}else{return this.Promise.resolve(s)}})).catch((r=>this.Events.trigger("error",r)))}_dropAllQueued(r){return this._queues.shiftAll((function(s){return s.doDrop({message:r})}))}stop(r={}){var s,i;r=ae.load(r,this.stopDefaults);i=r=>{var s;s=()=>{var s;s=this._states.counts;return s[0]+s[1]+s[2]+s[3]===r};return new this.Promise(((r,i)=>{if(s()){return r()}else{return this.on("done",(()=>{if(s()){this.removeAllListeners("done");return r()}}))}}))};s=r.dropWaitingJobs?(this._run=function(s,i){return i.doDrop({message:r.dropErrorMessage})},this._drainOne=()=>this.Promise.resolve(null),this._registerLock.schedule((()=>this._submitLock.schedule((()=>{var s,a,A;a=this._scheduled;for(s in a){A=a[s];if(this.jobStatus(A.job.options.id)==="RUNNING"){clearTimeout(A.timeout);clearTimeout(A.expiration);A.job.doDrop({message:r.dropErrorMessage})}}this._dropAllQueued(r.dropErrorMessage);return i(0)}))))):this.schedule({priority:re-1,weight:0},(()=>i(1)));this._receive=function(s){return s._reject(new Bottleneck.prototype.BottleneckError(r.enqueueErrorMessage))};this.stop=()=>this.Promise.reject(new Bottleneck.prototype.BottleneckError("stop() has already been called"));return s}async _addToQueue(r){var s,i,a,A,c,l,d;({args:s,options:A}=r);try{({reachedHWM:c,blocked:i,strategy:d}=await this._store.__submit__(this.queued(),A.weight))}catch(i){a=i;this.Events.trigger("debug",`Could not queue ${A.id}`,{args:s,options:A,error:a});r.doDrop({error:a});return false}if(i){r.doDrop();return true}else if(c){l=d===Bottleneck.prototype.strategy.LEAK?this._queues.shiftLastFrom(A.priority):d===Bottleneck.prototype.strategy.OVERFLOW_PRIORITY?this._queues.shiftLastFrom(A.priority+1):d===Bottleneck.prototype.strategy.OVERFLOW?r:void 0;if(l!=null){l.doDrop()}if(l==null||d===Bottleneck.prototype.strategy.OVERFLOW){if(l==null){r.doDrop()}return c}}r.doQueue(c,i);this._queues.push(r);await this._drainAll();return c}_receive(r){if(this._states.jobStatus(r.options.id)!=null){r._reject(new Bottleneck.prototype.BottleneckError(`A job with the same id already exists (id=${r.options.id})`));return false}else{r.doReceive();return this._submitLock.schedule(this._addToQueue,r)}}submit(...r){var s,i,a,A,c,l,d;if(typeof r[0]==="function"){c=r,[i,...r]=c,[s]=Ae.call(r,-1);A=ae.load({},this.jobDefaults)}else{l=r,[A,i,...r]=l,[s]=Ae.call(r,-1);A=ae.load(A,this.jobDefaults)}d=(...r)=>new this.Promise((function(s,a){return i(...r,(function(...r){return(r[0]!=null?a:s)(r)}))}));a=new ee(d,r,A,this.jobDefaults,this.rejectOnDrop,this.Events,this._states,this.Promise);a.promise.then((function(r){return typeof s==="function"?s(...r):void 0})).catch((function(r){if(Array.isArray(r)){return typeof s==="function"?s(...r):void 0}else{return typeof s==="function"?s(r):void 0}}));return this._receive(a)}schedule(...r){var s,i,a;if(typeof r[0]==="function"){[a,...r]=r;i={}}else{[i,a,...r]=r}s=new ee(a,r,i,this.jobDefaults,this.rejectOnDrop,this.Events,this._states,this.Promise);this._receive(s);return s.promise}wrap(r){var s,i;s=this.schedule.bind(this);i=function(...i){return s(r.bind(this),...i)};i.withOptions=function(i,...a){return s(i,r,...a)};return i}async updateSettings(r={}){await this._store.__updateSettings__(ae.overwrite(r,this.storeDefaults));ae.overwrite(r,this.instanceDefaults,this);return this}currentReservoir(){return this._store.__currentReservoir__()}incrementReservoir(r=0){return this._store.__incrementReservoir__(r)}}Bottleneck.default=Bottleneck;Bottleneck.Events=Z;Bottleneck.version=Bottleneck.prototype.version=X.version;Bottleneck.strategy=Bottleneck.prototype.strategy={LEAK:1,OVERFLOW:2,OVERFLOW_PRIORITY:4,BLOCK:3};Bottleneck.BottleneckError=Bottleneck.prototype.BottleneckError=h;Bottleneck.Group=Bottleneck.prototype.Group=j;Bottleneck.RedisConnection=Bottleneck.prototype.RedisConnection=require$$2;Bottleneck.IORedisConnection=Bottleneck.prototype.IORedisConnection=require$$3;Bottleneck.Batcher=Bottleneck.prototype.Batcher=W;Bottleneck.prototype.jobDefaults={priority:K,weight:1,expiration:null,id:""};Bottleneck.prototype.storeDefaults={maxConcurrent:null,minTime:0,highWater:null,strategy:Bottleneck.prototype.strategy.LEAK,penalty:null,reservoir:null,reservoirRefreshInterval:null,reservoirRefreshAmount:null,reservoirIncreaseInterval:null,reservoirIncreaseAmount:null,reservoirIncreaseMaximum:null};Bottleneck.prototype.localStoreDefaults={Promise:Promise,timeout:null,heartbeatInterval:250};Bottleneck.prototype.redisStoreDefaults={Promise:Promise,timeout:null,heartbeatInterval:5e3,clientTimeout:1e4,Redis:null,clientOptions:{},clusterNodes:null,clearDatastore:false,connection:null};Bottleneck.prototype.instanceDefaults={datastore:"local",connection:null,id:"",rejectOnDrop:true,trackDoneStatus:false,Promise:Promise};Bottleneck.prototype.stopDefaults={enqueueErrorMessage:"This limiter has been stopped and cannot accept new jobs.",dropWaitingJobs:true,dropErrorMessage:"This limiter has been stopped."};return Bottleneck}.call(r);var ce=$;var le=ce;return le}))},33717:(r,s,i)=>{var a=i(9417);r.exports=expandTop;var A="\0SLASH"+Math.random()+"\0";var c="\0OPEN"+Math.random()+"\0";var l="\0CLOSE"+Math.random()+"\0";var d="\0COMMA"+Math.random()+"\0";var u="\0PERIOD"+Math.random()+"\0";function numeric(r){return parseInt(r,10)==r?parseInt(r,10):r.charCodeAt(0)}function escapeBraces(r){return r.split("\\\\").join(A).split("\\{").join(c).split("\\}").join(l).split("\\,").join(d).split("\\.").join(u)}function unescapeBraces(r){return r.split(A).join("\\").split(c).join("{").split(l).join("}").split(d).join(",").split(u).join(".")}function parseCommaParts(r){if(!r)return[""];var s=[];var i=a("{","}",r);if(!i)return r.split(",");var A=i.pre;var c=i.body;var l=i.post;var d=A.split(",");d[d.length-1]+="{"+c+"}";var u=parseCommaParts(l);if(l.length){d[d.length-1]+=u.shift();d.push.apply(d,u)}s.push.apply(s,d);return s}function expandTop(r){if(!r)return[];if(r.substr(0,2)==="{}"){r="\\{\\}"+r.substr(2)}return expand(escapeBraces(r),true).map(unescapeBraces)}function embrace(r){return"{"+r+"}"}function isPadded(r){return/^-?0\d/.test(r)}function lte(r,s){return r<=s}function gte(r,s){return r>=s}function expand(r,s){var i=[];var A=a("{","}",r);if(!A)return[r];var c=A.pre;var d=A.post.length?expand(A.post,false):[""];if(/\$$/.test(A.pre)){for(var u=0;u=0;if(!C&&!y){if(A.post.match(/,.*\}/)){r=A.pre+"{"+A.body+l+A.post;return expand(r)}return[r]}var I;if(C){I=A.body.split(/\.\./)}else{I=parseCommaParts(A.body);if(I.length===1){I=expand(I[0],false).map(embrace);if(I.length===1){return d.map((function(r){return A.pre+I[0]+r}))}}}var B;if(C){var b=numeric(I[0]);var Q=numeric(I[1]);var w=Math.max(I[0].length,I[1].length);var v=I.length==3?Math.abs(numeric(I[2])):1;var S=lte;var R=Q0){var T=new Array(k+1).join("0");if(x<0)D="-"+T+D.slice(1);else D=T+D}}}B.push(D)}}else{B=[];for(var _=0;_{r.exports=Buffers;function Buffers(r){if(!(this instanceof Buffers))return new Buffers(r);this.buffers=r||[];this.length=this.buffers.reduce((function(r,s){return r+s.length}),0)}Buffers.prototype.push=function(){for(var r=0;r=0?r:this.length-r;var A=[].slice.call(arguments,2);if(s===undefined){s=this.length-a}else if(s>this.length-a){s=this.length-a}for(var r=0;r0){var p=a-d;if(p+s0){var y=A.slice();y.unshift(h);y.push(C);i.splice.apply(i,[u,1].concat(y));u+=y.length;A=[]}else{i.splice(u,1,h,C);u+=2}}else{c.push(i[u].slice(p));i[u]=i[u].slice(0,p);u++}}if(A.length>0){i.splice.apply(i,[u,0].concat(A));u+=A.length}while(c.lengththis.length)s=this.length;var a=0;for(var A=0;A=s-r?Math.min(p+(s-r)-l,u):u;i[d].copy(c,l,p,g);l+=g-p}return c};Buffers.prototype.pos=function(r){if(r<0||r>=this.length)throw new Error("oob");var s=r,i=0,a=null;for(;;){a=this.buffers[i];if(s=this.buffers[i].length){a=0;i++;if(i>=this.buffers.length){return-1}}var u=this.buffers[i][a];if(u==r[A]){if(A==0){c={i:i,j:a,pos:l}}A++;if(A==r.length){return c.pos}}else if(A!=0){i=c.i;a=c.j;l=c.pos;A=0}a++;l++}};Buffers.prototype.toBuffer=function(){return this.slice()};Buffers.prototype.toString=function(r,s,i){return this.slice(s,i).toString(r)}},46533:(r,s,i)=>{var a=i(8588);var A=i(82361).EventEmitter;r.exports=Chainsaw;function Chainsaw(r){var s=Chainsaw.saw(r,{});var i=r.call(s.handlers,s);if(i!==undefined)s.handlers=i;s.record();return s.chain()}Chainsaw.light=function ChainsawLight(r){var s=Chainsaw.saw(r,{});var i=r.call(s.handlers,s);if(i!==undefined)s.handlers=i;return s.chain()};Chainsaw.saw=function(r,s){var i=new A;i.handlers=s;i.actions=[];i.chain=function(){var r=a(i.handlers).map((function(s){if(this.isRoot)return s;var a=this.path;if(typeof s==="function"){this.update((function(){i.actions.push({path:a,args:[].slice.call(arguments)});return r}))}}));process.nextTick((function(){i.emit("begin");i.next()}));return r};i.pop=function(){return i.actions.shift()};i.next=function(){var r=i.pop();if(!r){i.emit("end")}else if(!r.trap){var s=i.handlers;r.path.forEach((function(r){s=s[r]}));s.apply(i.handlers,r.args)}};i.nest=function(s){var a=[].slice.call(arguments,1);var A=true;if(typeof s==="boolean"){var A=s;s=a.shift()}var c=Chainsaw.saw(r,{});var l=r.call(c.handlers,c);if(l!==undefined)c.handlers=l;if("undefined"!==typeof i.step){c.record()}s.apply(c.chain(),a);if(A!==false)c.on("end",i.next)};i.record=function(){upgradeChainsaw(i)};["trap","down","jump"].forEach((function(r){i[r]=function(){throw new Error("To use the trap, down and jump features, please "+"call record() first to start recording actions.")}}));return i};function upgradeChainsaw(r){r.step=0;r.pop=function(){return r.actions[r.step++]};r.trap=function(s,i){var a=Array.isArray(s)?s:[s];r.actions.push({path:a,step:r.step,cb:i,trap:true})};r.down=function(s){var i=(Array.isArray(s)?s:[s]).join("/");var a=r.actions.slice(r.step).map((function(s){if(s.trap&&s.step<=r.step)return false;return s.path.join("/")==i})).indexOf(true);if(a>=0)r.step+=a;else r.step=r.actions.length;var A=r.actions[r.step-1];if(A&&A.trap){r.step=A.step;A.cb()}else r.next()};r.jump=function(s){r.step=s;r.next()}}},85443:(r,s,i)=>{var a=i(73837);var A=i(12781).Stream;var c=i(18611);r.exports=CombinedStream;function CombinedStream(){this.writable=false;this.readable=true;this.dataSize=0;this.maxDataSize=2*1024*1024;this.pauseStreams=true;this._released=false;this._streams=[];this._currentStream=null;this._insideLoop=false;this._pendingNext=false}a.inherits(CombinedStream,A);CombinedStream.create=function(r){var s=new this;r=r||{};for(var i in r){s[i]=r[i]}return s};CombinedStream.isStreamLike=function(r){return typeof r!=="function"&&typeof r!=="string"&&typeof r!=="boolean"&&typeof r!=="number"&&!Buffer.isBuffer(r)};CombinedStream.prototype.append=function(r){var s=CombinedStream.isStreamLike(r);if(s){if(!(r instanceof c)){var i=c.create(r,{maxDataSize:Infinity,pauseStream:this.pauseStreams});r.on("data",this._checkDataSize.bind(this));r=i}this._handleErrors(r);if(this.pauseStreams){r.pause()}}this._streams.push(r);return this};CombinedStream.prototype.pipe=function(r,s){A.prototype.pipe.call(this,r,s);this.resume();return r};CombinedStream.prototype._getNext=function(){this._currentStream=null;if(this._insideLoop){this._pendingNext=true;return}this._insideLoop=true;try{do{this._pendingNext=false;this._realGetNext()}while(this._pendingNext)}finally{this._insideLoop=false}};CombinedStream.prototype._realGetNext=function(){var r=this._streams.shift();if(typeof r=="undefined"){this.end();return}if(typeof r!=="function"){this._pipeNext(r);return}var s=r;s(function(r){var s=CombinedStream.isStreamLike(r);if(s){r.on("data",this._checkDataSize.bind(this));this._handleErrors(r)}this._pipeNext(r)}.bind(this))};CombinedStream.prototype._pipeNext=function(r){this._currentStream=r;var s=CombinedStream.isStreamLike(r);if(s){r.on("end",this._getNext.bind(this));r.pipe(this,{end:false});return}var i=r;this.write(i);this._getNext()};CombinedStream.prototype._handleErrors=function(r){var s=this;r.on("error",(function(r){s._emitError(r)}))};CombinedStream.prototype.write=function(r){this.emit("data",r)};CombinedStream.prototype.pause=function(){if(!this.pauseStreams){return}if(this.pauseStreams&&this._currentStream&&typeof this._currentStream.pause=="function")this._currentStream.pause();this.emit("pause")};CombinedStream.prototype.resume=function(){if(!this._released){this._released=true;this.writable=true;this._getNext()}if(this.pauseStreams&&this._currentStream&&typeof this._currentStream.resume=="function")this._currentStream.resume();this.emit("resume")};CombinedStream.prototype.end=function(){this._reset();this.emit("end")};CombinedStream.prototype.destroy=function(){this._reset();this.emit("close")};CombinedStream.prototype._reset=function(){this.writable=false;this._streams=[];this._currentStream=null};CombinedStream.prototype._checkDataSize=function(){this._updateDataSize();if(this.dataSize<=this.maxDataSize){return}var r="DelayedStream#maxDataSize of "+this.maxDataSize+" bytes exceeded.";this._emitError(new Error(r))};CombinedStream.prototype._updateDataSize=function(){this.dataSize=0;var r=this;this._streams.forEach((function(s){if(!s.dataSize){return}r.dataSize+=s.dataSize}));if(this._currentStream&&this._currentStream.dataSize){this.dataSize+=this._currentStream.dataSize}};CombinedStream.prototype._emitError=function(r){this._reset();this.emit("error",r)}},92240:r=>{var s=r.exports=function(){};s.prototype.getName=function(){};s.prototype.getSize=function(){};s.prototype.getLastModifiedDate=function(){};s.prototype.isDirectory=function(){}},36728:(r,s,i)=>{var a=i(73837).inherits;var A=i(41554);var c=i(45193).Transform;var l=i(92240);var d=i(95208);var u=r.exports=function(r){if(!(this instanceof u)){return new u(r)}c.call(this,r);this.offset=0;this._archive={finish:false,finished:false,processing:false}};a(u,c);u.prototype._appendBuffer=function(r,s,i){};u.prototype._appendStream=function(r,s,i){};u.prototype._emitErrorCallback=function(r){if(r){this.emit("error",r)}};u.prototype._finish=function(r){};u.prototype._normalizeEntry=function(r){};u.prototype._transform=function(r,s,i){i(null,r)};u.prototype.entry=function(r,s,i){s=s||null;if(typeof i!=="function"){i=this._emitErrorCallback.bind(this)}if(!(r instanceof l)){i(new Error("not a valid instance of ArchiveEntry"));return}if(this._archive.finish||this._archive.finished){i(new Error("unacceptable entry after finish"));return}if(this._archive.processing){i(new Error("already processing an entry"));return}this._archive.processing=true;this._normalizeEntry(r);this._entry=r;s=d.normalizeInputSource(s);if(Buffer.isBuffer(s)){this._appendBuffer(r,s,i)}else if(A(s)){this._appendStream(r,s,i)}else{this._archive.processing=false;i(new Error("input source must be valid Stream or Buffer instance"));return}return this};u.prototype.finish=function(){if(this._archive.processing){this._archive.finish=true;return}this._finish()};u.prototype.getBytesWritten=function(){return this.offset};u.prototype.write=function(r,s){if(r){this.offset+=r.length}return c.prototype.write.call(this,r,s)}},11704:r=>{r.exports={WORD:4,DWORD:8,EMPTY:Buffer.alloc(0),SHORT:2,SHORT_MASK:65535,SHORT_SHIFT:16,SHORT_ZERO:Buffer.from(Array(2)),LONG:4,LONG_ZERO:Buffer.from(Array(4)),MIN_VERSION_INITIAL:10,MIN_VERSION_DATA_DESCRIPTOR:20,MIN_VERSION_ZIP64:45,VERSION_MADEBY:45,METHOD_STORED:0,METHOD_DEFLATED:8,PLATFORM_UNIX:3,PLATFORM_FAT:0,SIG_LFH:67324752,SIG_DD:134695760,SIG_CFH:33639248,SIG_EOCD:101010256,SIG_ZIP64_EOCD:101075792,SIG_ZIP64_EOCD_LOC:117853008,ZIP64_MAGIC_SHORT:65535,ZIP64_MAGIC:4294967295,ZIP64_EXTRA_ID:1,ZLIB_NO_COMPRESSION:0,ZLIB_BEST_SPEED:1,ZLIB_BEST_COMPRESSION:9,ZLIB_DEFAULT_COMPRESSION:-1,MODE_MASK:4095,DEFAULT_FILE_MODE:33188,DEFAULT_DIR_MODE:16877,EXT_FILE_ATTR_DIR:1106051088,EXT_FILE_ATTR_FILE:2175008800,S_IFMT:61440,S_IFIFO:4096,S_IFCHR:8192,S_IFDIR:16384,S_IFBLK:24576,S_IFREG:32768,S_IFLNK:40960,S_IFSOCK:49152,S_DOS_A:32,S_DOS_D:16,S_DOS_V:8,S_DOS_S:4,S_DOS_H:2,S_DOS_R:1}},63229:(r,s,i)=>{var a=i(68682);var A=1<<3;var c=1<<0;var l=1<<2;var d=1<<1;var u=1<<6;var p=1<<11;var g=r.exports=function(){if(!(this instanceof g)){return new g}this.descriptor=false;this.encryption=false;this.utf8=false;this.numberOfShannonFanoTrees=0;this.strongEncryption=false;this.slidingDictionarySize=0;return this};g.prototype.encode=function(){return a.getShortBytes((this.descriptor?A:0)|(this.utf8?p:0)|(this.encryption?c:0)|(this.strongEncryption?u:0))};g.prototype.parse=function(r,s){var i=a.getShortBytesValue(r,s);var h=new g;h.useDataDescriptor((i&A)!==0);h.useUTF8ForNames((i&p)!==0);h.useStrongEncryption((i&u)!==0);h.useEncryption((i&c)!==0);h.setSlidingDictionarySize((i&d)!==0?8192:4096);h.setNumberOfShannonFanoTrees((i&l)!==0?3:2);return h};g.prototype.setNumberOfShannonFanoTrees=function(r){this.numberOfShannonFanoTrees=r};g.prototype.getNumberOfShannonFanoTrees=function(){return this.numberOfShannonFanoTrees};g.prototype.setSlidingDictionarySize=function(r){this.slidingDictionarySize=r};g.prototype.getSlidingDictionarySize=function(){return this.slidingDictionarySize};g.prototype.useDataDescriptor=function(r){this.descriptor=r};g.prototype.usesDataDescriptor=function(){return this.descriptor};g.prototype.useEncryption=function(r){this.encryption=r};g.prototype.usesEncryption=function(){return this.encryption};g.prototype.useStrongEncryption=function(r){this.strongEncryption=r};g.prototype.usesStrongEncryption=function(){return this.strongEncryption};g.prototype.useUTF8ForNames=function(r){this.utf8=r};g.prototype.usesUTF8ForNames=function(){return this.utf8}},70713:r=>{r.exports={PERM_MASK:4095,FILE_TYPE_FLAG:61440,LINK_FLAG:40960,FILE_FLAG:32768,DIR_FLAG:16384,DEFAULT_LINK_PERM:511,DEFAULT_DIR_PERM:493,DEFAULT_FILE_PERM:420}},68682:r=>{var s=r.exports={};s.dateToDos=function(r,s){s=s||false;var i=s?r.getFullYear():r.getUTCFullYear();if(i<1980){return 2162688}else if(i>=2044){return 2141175677}var a={year:i,month:s?r.getMonth():r.getUTCMonth(),date:s?r.getDate():r.getUTCDate(),hours:s?r.getHours():r.getUTCHours(),minutes:s?r.getMinutes():r.getUTCMinutes(),seconds:s?r.getSeconds():r.getUTCSeconds()};return a.year-1980<<25|a.month+1<<21|a.date<<16|a.hours<<11|a.minutes<<5|a.seconds/2};s.dosToDate=function(r){return new Date((r>>25&127)+1980,(r>>21&15)-1,r>>16&31,r>>11&31,r>>5&63,(r&31)<<1)};s.fromDosTime=function(r){return s.dosToDate(r.readUInt32LE(0))};s.getEightBytes=function(r){var s=Buffer.alloc(8);s.writeUInt32LE(r%4294967296,0);s.writeUInt32LE(r/4294967296|0,4);return s};s.getShortBytes=function(r){var s=Buffer.alloc(2);s.writeUInt16LE((r&65535)>>>0,0);return s};s.getShortBytesValue=function(r,s){return r.readUInt16LE(s)};s.getLongBytes=function(r){var s=Buffer.alloc(4);s.writeUInt32LE((r&4294967295)>>>0,0);return s};s.getLongBytesValue=function(r,s){return r.readUInt32LE(s)};s.toDosTime=function(r){return s.getLongBytes(s.dateToDos(r))}},3179:(r,s,i)=>{var a=i(73837).inherits;var A=i(55388);var c=i(92240);var l=i(63229);var d=i(70713);var u=i(11704);var p=i(68682);var g=r.exports=function(r){if(!(this instanceof g)){return new g(r)}c.call(this);this.platform=u.PLATFORM_FAT;this.method=-1;this.name=null;this.size=0;this.csize=0;this.gpb=new l;this.crc=0;this.time=-1;this.minver=u.MIN_VERSION_INITIAL;this.mode=-1;this.extra=null;this.exattr=0;this.inattr=0;this.comment=null;if(r){this.setName(r)}};a(g,c);g.prototype.getCentralDirectoryExtra=function(){return this.getExtra()};g.prototype.getComment=function(){return this.comment!==null?this.comment:""};g.prototype.getCompressedSize=function(){return this.csize};g.prototype.getCrc=function(){return this.crc};g.prototype.getExternalAttributes=function(){return this.exattr};g.prototype.getExtra=function(){return this.extra!==null?this.extra:u.EMPTY};g.prototype.getGeneralPurposeBit=function(){return this.gpb};g.prototype.getInternalAttributes=function(){return this.inattr};g.prototype.getLastModifiedDate=function(){return this.getTime()};g.prototype.getLocalFileDataExtra=function(){return this.getExtra()};g.prototype.getMethod=function(){return this.method};g.prototype.getName=function(){return this.name};g.prototype.getPlatform=function(){return this.platform};g.prototype.getSize=function(){return this.size};g.prototype.getTime=function(){return this.time!==-1?p.dosToDate(this.time):-1};g.prototype.getTimeDos=function(){return this.time!==-1?this.time:0};g.prototype.getUnixMode=function(){return this.platform!==u.PLATFORM_UNIX?0:this.getExternalAttributes()>>u.SHORT_SHIFT&u.SHORT_MASK};g.prototype.getVersionNeededToExtract=function(){return this.minver};g.prototype.setComment=function(r){if(Buffer.byteLength(r)!==r.length){this.getGeneralPurposeBit().useUTF8ForNames(true)}this.comment=r};g.prototype.setCompressedSize=function(r){if(r<0){throw new Error("invalid entry compressed size")}this.csize=r};g.prototype.setCrc=function(r){if(r<0){throw new Error("invalid entry crc32")}this.crc=r};g.prototype.setExternalAttributes=function(r){this.exattr=r>>>0};g.prototype.setExtra=function(r){this.extra=r};g.prototype.setGeneralPurposeBit=function(r){if(!(r instanceof l)){throw new Error("invalid entry GeneralPurposeBit")}this.gpb=r};g.prototype.setInternalAttributes=function(r){this.inattr=r};g.prototype.setMethod=function(r){if(r<0){throw new Error("invalid entry compression method")}this.method=r};g.prototype.setName=function(r,s=false){r=A(r,false).replace(/^\w+:/,"").replace(/^(\.\.\/|\/)+/,"");if(s){r=`/${r}`}if(Buffer.byteLength(r)!==r.length){this.getGeneralPurposeBit().useUTF8ForNames(true)}this.name=r};g.prototype.setPlatform=function(r){this.platform=r};g.prototype.setSize=function(r){if(r<0){throw new Error("invalid entry size")}this.size=r};g.prototype.setTime=function(r,s){if(!(r instanceof Date)){throw new Error("invalid entry time")}this.time=p.dateToDos(r,s)};g.prototype.setUnixMode=function(r){r|=this.isDirectory()?u.S_IFDIR:u.S_IFREG;var s=0;s|=r<u.ZIP64_MAGIC||this.size>u.ZIP64_MAGIC}},44432:(r,s,i)=>{var a=i(73837).inherits;var A=i(83201);var{CRC32Stream:c}=i(5101);var{DeflateCRC32Stream:l}=i(5101);var d=i(36728);var u=i(3179);var p=i(63229);var g=i(11704);var h=i(95208);var C=i(68682);var y=r.exports=function(r){if(!(this instanceof y)){return new y(r)}r=this.options=this._defaults(r);d.call(this,r);this._entry=null;this._entries=[];this._archive={centralLength:0,centralOffset:0,comment:"",finish:false,finished:false,processing:false,forceZip64:r.forceZip64,forceLocalTime:r.forceLocalTime}};a(y,d);y.prototype._afterAppend=function(r){this._entries.push(r);if(r.getGeneralPurposeBit().usesDataDescriptor()){this._writeDataDescriptor(r)}this._archive.processing=false;this._entry=null;if(this._archive.finish&&!this._archive.finished){this._finish()}};y.prototype._appendBuffer=function(r,s,i){if(s.length===0){r.setMethod(g.METHOD_STORED)}var a=r.getMethod();if(a===g.METHOD_STORED){r.setSize(s.length);r.setCompressedSize(s.length);r.setCrc(A.buf(s)>>>0)}this._writeLocalFileHeader(r);if(a===g.METHOD_STORED){this.write(s);this._afterAppend(r);i(null,r);return}else if(a===g.METHOD_DEFLATED){this._smartStream(r,i).end(s);return}else{i(new Error("compression method "+a+" not implemented"));return}};y.prototype._appendStream=function(r,s,i){r.getGeneralPurposeBit().useDataDescriptor(true);r.setVersionNeededToExtract(g.MIN_VERSION_DATA_DESCRIPTOR);this._writeLocalFileHeader(r);var a=this._smartStream(r,i);s.once("error",(function(r){a.emit("error",r);a.end()}));s.pipe(a)};y.prototype._defaults=function(r){if(typeof r!=="object"){r={}}if(typeof r.zlib!=="object"){r.zlib={}}if(typeof r.zlib.level!=="number"){r.zlib.level=g.ZLIB_BEST_SPEED}r.forceZip64=!!r.forceZip64;r.forceLocalTime=!!r.forceLocalTime;return r};y.prototype._finish=function(){this._archive.centralOffset=this.offset;this._entries.forEach(function(r){this._writeCentralFileHeader(r)}.bind(this));this._archive.centralLength=this.offset-this._archive.centralOffset;if(this.isZip64()){this._writeCentralDirectoryZip64()}this._writeCentralDirectoryEnd();this._archive.processing=false;this._archive.finish=true;this._archive.finished=true;this.end()};y.prototype._normalizeEntry=function(r){if(r.getMethod()===-1){r.setMethod(g.METHOD_DEFLATED)}if(r.getMethod()===g.METHOD_DEFLATED){r.getGeneralPurposeBit().useDataDescriptor(true);r.setVersionNeededToExtract(g.MIN_VERSION_DATA_DESCRIPTOR)}if(r.getTime()===-1){r.setTime(new Date,this._archive.forceLocalTime)}r._offsets={file:0,data:0,contents:0}};y.prototype._smartStream=function(r,s){var i=r.getMethod()===g.METHOD_DEFLATED;var a=i?new l(this.options.zlib):new c;var A=null;function handleStuff(){var i=a.digest().readUInt32BE(0);r.setCrc(i);r.setSize(a.size());r.setCompressedSize(a.size(true));this._afterAppend(r);s(A,r)}a.once("end",handleStuff.bind(this));a.once("error",(function(r){A=r}));a.pipe(this,{end:false});return a};y.prototype._writeCentralDirectoryEnd=function(){var r=this._entries.length;var s=this._archive.centralLength;var i=this._archive.centralOffset;if(this.isZip64()){r=g.ZIP64_MAGIC_SHORT;s=g.ZIP64_MAGIC;i=g.ZIP64_MAGIC}this.write(C.getLongBytes(g.SIG_EOCD));this.write(g.SHORT_ZERO);this.write(g.SHORT_ZERO);this.write(C.getShortBytes(r));this.write(C.getShortBytes(r));this.write(C.getLongBytes(s));this.write(C.getLongBytes(i));var a=this.getComment();var A=Buffer.byteLength(a);this.write(C.getShortBytes(A));this.write(a)};y.prototype._writeCentralDirectoryZip64=function(){this.write(C.getLongBytes(g.SIG_ZIP64_EOCD));this.write(C.getEightBytes(44));this.write(C.getShortBytes(g.MIN_VERSION_ZIP64));this.write(C.getShortBytes(g.MIN_VERSION_ZIP64));this.write(g.LONG_ZERO);this.write(g.LONG_ZERO);this.write(C.getEightBytes(this._entries.length));this.write(C.getEightBytes(this._entries.length));this.write(C.getEightBytes(this._archive.centralLength));this.write(C.getEightBytes(this._archive.centralOffset));this.write(C.getLongBytes(g.SIG_ZIP64_EOCD_LOC));this.write(g.LONG_ZERO);this.write(C.getEightBytes(this._archive.centralOffset+this._archive.centralLength));this.write(C.getLongBytes(1))};y.prototype._writeCentralFileHeader=function(r){var s=r.getGeneralPurposeBit();var i=r.getMethod();var a=r._offsets.file;var A=r.getSize();var c=r.getCompressedSize();if(r.isZip64()||a>g.ZIP64_MAGIC){A=g.ZIP64_MAGIC;c=g.ZIP64_MAGIC;a=g.ZIP64_MAGIC;r.setVersionNeededToExtract(g.MIN_VERSION_ZIP64);var l=Buffer.concat([C.getShortBytes(g.ZIP64_EXTRA_ID),C.getShortBytes(24),C.getEightBytes(r.getSize()),C.getEightBytes(r.getCompressedSize()),C.getEightBytes(r._offsets.file)],28);r.setExtra(l)}this.write(C.getLongBytes(g.SIG_CFH));this.write(C.getShortBytes(r.getPlatform()<<8|g.VERSION_MADEBY));this.write(C.getShortBytes(r.getVersionNeededToExtract()));this.write(s.encode());this.write(C.getShortBytes(i));this.write(C.getLongBytes(r.getTimeDos()));this.write(C.getLongBytes(r.getCrc()));this.write(C.getLongBytes(c));this.write(C.getLongBytes(A));var d=r.getName();var u=r.getComment();var p=r.getCentralDirectoryExtra();if(s.usesUTF8ForNames()){d=Buffer.from(d);u=Buffer.from(u)}this.write(C.getShortBytes(d.length));this.write(C.getShortBytes(p.length));this.write(C.getShortBytes(u.length));this.write(g.SHORT_ZERO);this.write(C.getShortBytes(r.getInternalAttributes()));this.write(C.getLongBytes(r.getExternalAttributes()));this.write(C.getLongBytes(a));this.write(d);this.write(p);this.write(u)};y.prototype._writeDataDescriptor=function(r){this.write(C.getLongBytes(g.SIG_DD));this.write(C.getLongBytes(r.getCrc()));if(r.isZip64()){this.write(C.getEightBytes(r.getCompressedSize()));this.write(C.getEightBytes(r.getSize()))}else{this.write(C.getLongBytes(r.getCompressedSize()));this.write(C.getLongBytes(r.getSize()))}};y.prototype._writeLocalFileHeader=function(r){var s=r.getGeneralPurposeBit();var i=r.getMethod();var a=r.getName();var A=r.getLocalFileDataExtra();if(r.isZip64()){s.useDataDescriptor(true);r.setVersionNeededToExtract(g.MIN_VERSION_ZIP64)}if(s.usesUTF8ForNames()){a=Buffer.from(a)}r._offsets.file=this.offset;this.write(C.getLongBytes(g.SIG_LFH));this.write(C.getShortBytes(r.getVersionNeededToExtract()));this.write(s.encode());this.write(C.getShortBytes(i));this.write(C.getLongBytes(r.getTimeDos()));r._offsets.data=this.offset;if(s.usesDataDescriptor()){this.write(g.LONG_ZERO);this.write(g.LONG_ZERO);this.write(g.LONG_ZERO)}else{this.write(C.getLongBytes(r.getCrc()));this.write(C.getLongBytes(r.getCompressedSize()));this.write(C.getLongBytes(r.getSize()))}this.write(C.getShortBytes(a.length));this.write(C.getShortBytes(A.length));this.write(a);this.write(A);r._offsets.contents=this.offset};y.prototype.getComment=function(r){return this._archive.comment!==null?this._archive.comment:""};y.prototype.isZip64=function(){return this._archive.forceZip64||this._entries.length>g.ZIP64_MAGIC_SHORT||this._archive.centralLength>g.ZIP64_MAGIC||this._archive.centralOffset>g.ZIP64_MAGIC};y.prototype.setComment=function(r){this._archive.comment=r}},25445:(r,s,i)=>{r.exports={ArchiveEntry:i(92240),ZipArchiveEntry:i(3179),ArchiveOutputStream:i(36728),ZipArchiveOutputStream:i(44432)}},95208:(r,s,i)=>{var a=i(12781).Stream;var A=i(45193).PassThrough;var c=i(41554);var l=r.exports={};l.normalizeInputSource=function(r){if(r===null){return Buffer.alloc(0)}else if(typeof r==="string"){return Buffer.from(r)}else if(c(r)&&!r._readableState){var s=new A;r.pipe(s);return s}return r}},86891:r=>{r.exports=function(r,i){var a=[];for(var A=0;A{function isArray(r){if(Array.isArray){return Array.isArray(r)}return objectToString(r)==="[object Array]"}s.isArray=isArray;function isBoolean(r){return typeof r==="boolean"}s.isBoolean=isBoolean;function isNull(r){return r===null}s.isNull=isNull;function isNullOrUndefined(r){return r==null}s.isNullOrUndefined=isNullOrUndefined;function isNumber(r){return typeof r==="number"}s.isNumber=isNumber;function isString(r){return typeof r==="string"}s.isString=isString;function isSymbol(r){return typeof r==="symbol"}s.isSymbol=isSymbol;function isUndefined(r){return r===void 0}s.isUndefined=isUndefined;function isRegExp(r){return objectToString(r)==="[object RegExp]"}s.isRegExp=isRegExp;function isObject(r){return typeof r==="object"&&r!==null}s.isObject=isObject;function isDate(r){return objectToString(r)==="[object Date]"}s.isDate=isDate;function isError(r){return objectToString(r)==="[object Error]"||r instanceof Error}s.isError=isError;function isFunction(r){return typeof r==="function"}s.isFunction=isFunction;function isPrimitive(r){return r===null||typeof r==="boolean"||typeof r==="number"||typeof r==="string"||typeof r==="symbol"||typeof r==="undefined"}s.isPrimitive=isPrimitive;s.isBuffer=i(14300).Buffer.isBuffer;function objectToString(r){return Object.prototype.toString.call(r)}},83201:(r,s)=>{ +/*! crc32.js (C) 2014-present SheetJS -- http://sheetjs.com */ +var i;(function(r){if(typeof DO_NOT_EXPORT_CRC==="undefined"){if(true){r(s)}else{}}else{r(i={})}})((function(r){r.version="1.2.2";function signed_crc_table(){var r=0,s=new Array(256);for(var i=0;i!=256;++i){r=i;r=r&1?-306674912^r>>>1:r>>>1;r=r&1?-306674912^r>>>1:r>>>1;r=r&1?-306674912^r>>>1:r>>>1;r=r&1?-306674912^r>>>1:r>>>1;r=r&1?-306674912^r>>>1:r>>>1;r=r&1?-306674912^r>>>1:r>>>1;r=r&1?-306674912^r>>>1:r>>>1;r=r&1?-306674912^r>>>1:r>>>1;s[i]=r}return typeof Int32Array!=="undefined"?new Int32Array(s):s}var s=signed_crc_table();function slice_by_16_tables(r){var s=0,i=0,a=0,A=typeof Int32Array!=="undefined"?new Int32Array(4096):new Array(4096);for(a=0;a!=256;++a)A[a]=r[a];for(a=0;a!=256;++a){i=r[a];for(s=256+a;s<4096;s+=256)i=A[s]=i>>>8^r[i&255]}var c=[];for(a=1;a!=16;++a)c[a-1]=typeof Int32Array!=="undefined"?A.subarray(a*256,a*256+256):A.slice(a*256,a*256+256);return c}var i=slice_by_16_tables(s);var a=i[0],A=i[1],c=i[2],l=i[3],d=i[4];var u=i[5],p=i[6],g=i[7],h=i[8],C=i[9];var y=i[10],I=i[11],B=i[12],b=i[13],Q=i[14];function crc32_bstr(r,i){var a=i^-1;for(var A=0,c=r.length;A>>8^s[(a^r.charCodeAt(A++))&255];return~a}function crc32_buf(r,i){var w=i^-1,v=r.length-15,S=0;for(;S>8&255]^B[r[S++]^w>>16&255]^I[r[S++]^w>>>24]^y[r[S++]]^C[r[S++]]^h[r[S++]]^g[r[S++]]^p[r[S++]]^u[r[S++]]^d[r[S++]]^l[r[S++]]^c[r[S++]]^A[r[S++]]^a[r[S++]]^s[r[S++]];v+=15;while(S>>8^s[(w^r[S++])&255];return~w}function crc32_str(r,i){var a=i^-1;for(var A=0,c=r.length,l=0,d=0;A>>8^s[(a^l)&255]}else if(l<2048){a=a>>>8^s[(a^(192|l>>6&31))&255];a=a>>>8^s[(a^(128|l&63))&255]}else if(l>=55296&&l<57344){l=(l&1023)+64;d=r.charCodeAt(A++)&1023;a=a>>>8^s[(a^(240|l>>8&7))&255];a=a>>>8^s[(a^(128|l>>2&63))&255];a=a>>>8^s[(a^(128|d>>6&15|(l&3)<<4))&255];a=a>>>8^s[(a^(128|d&63))&255]}else{a=a>>>8^s[(a^(224|l>>12&15))&255];a=a>>>8^s[(a^(128|l>>6&63))&255];a=a>>>8^s[(a^(128|l&63))&255]}}return~a}r.table=s;r.bstr=crc32_bstr;r.buf=crc32_buf;r.str=crc32_str}))},94521:(r,s,i)=>{"use strict";const{Transform:a}=i(45193);const A=i(83201);class CRC32Stream extends a{constructor(r){super(r);this.checksum=Buffer.allocUnsafe(4);this.checksum.writeInt32BE(0,0);this.rawSize=0}_transform(r,s,i){if(r){this.checksum=A.buf(r,this.checksum)>>>0;this.rawSize+=r.length}i(null,r)}digest(r){const s=Buffer.allocUnsafe(4);s.writeUInt32BE(this.checksum>>>0,0);return r?s.toString(r):s}hex(){return this.digest("hex").toUpperCase()}size(){return this.rawSize}}r.exports=CRC32Stream},92563:(r,s,i)=>{"use strict";const{DeflateRaw:a}=i(59796);const A=i(83201);class DeflateCRC32Stream extends a{constructor(r){super(r);this.checksum=Buffer.allocUnsafe(4);this.checksum.writeInt32BE(0,0);this.rawSize=0;this.compressedSize=0}push(r,s){if(r){this.compressedSize+=r.length}return super.push(r,s)}_transform(r,s,i){if(r){this.checksum=A.buf(r,this.checksum)>>>0;this.rawSize+=r.length}super._transform(r,s,i)}digest(r){const s=Buffer.allocUnsafe(4);s.writeUInt32BE(this.checksum>>>0,0);return r?s.toString(r):s}hex(){return this.digest("hex").toUpperCase()}size(r=false){if(r){return this.compressedSize}else{return this.rawSize}}}r.exports=DeflateCRC32Stream},5101:(r,s,i)=>{"use strict";r.exports={CRC32Stream:i(94521),DeflateCRC32Stream:i(92563)}},28222:(r,s,i)=>{s.formatArgs=formatArgs;s.save=save;s.load=load;s.useColors=useColors;s.storage=localstorage();s.destroy=(()=>{let r=false;return()=>{if(!r){r=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`.")}}})();s.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}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&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator!=="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function formatArgs(s){s[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+s[0]+(this.useColors?"%c ":" ")+"+"+r.exports.humanize(this.diff);if(!this.useColors){return}const i="color: "+this.color;s.splice(1,0,i,"color: inherit");let a=0;let A=0;s[0].replace(/%[a-zA-Z%]/g,(r=>{if(r==="%%"){return}a++;if(r==="%c"){A=a}}));s.splice(A,0,i)}s.log=console.debug||console.log||(()=>{});function save(r){try{if(r){s.storage.setItem("debug",r)}else{s.storage.removeItem("debug")}}catch(r){}}function load(){let r;try{r=s.storage.getItem("debug")}catch(r){}if(!r&&typeof process!=="undefined"&&"env"in process){r=process.env.DEBUG}return r}function localstorage(){try{return localStorage}catch(r){}}r.exports=i(46243)(s);const{formatters:a}=r.exports;a.j=function(r){try{return JSON.stringify(r)}catch(r){return"[UnexpectedJSONParseError]: "+r.message}}},46243:(r,s,i)=>{function setup(r){createDebug.debug=createDebug;createDebug.default=createDebug;createDebug.coerce=coerce;createDebug.disable=disable;createDebug.enable=enable;createDebug.enabled=enabled;createDebug.humanize=i(80900);createDebug.destroy=destroy;Object.keys(r).forEach((s=>{createDebug[s]=r[s]}));createDebug.names=[];createDebug.skips=[];createDebug.formatters={};function selectColor(r){let s=0;for(let i=0;i{if(s==="%%"){return"%"}c++;const A=createDebug.formatters[a];if(typeof A==="function"){const a=r[c];s=A.call(i,a);r.splice(c,1);c--}return s}));createDebug.formatArgs.call(i,r);const l=i.log||createDebug.log;l.apply(i,r)}debug.namespace=r;debug.useColors=createDebug.useColors();debug.color=createDebug.selectColor(r);debug.extend=extend;debug.destroy=createDebug.destroy;Object.defineProperty(debug,"enabled",{enumerable:true,configurable:false,get:()=>{if(i!==null){return i}if(a!==createDebug.namespaces){a=createDebug.namespaces;A=createDebug.enabled(r)}return A},set:r=>{i=r}});if(typeof createDebug.init==="function"){createDebug.init(debug)}return debug}function extend(r,s){const i=createDebug(this.namespace+(typeof s==="undefined"?":":s)+r);i.log=this.log;return i}function enable(r){createDebug.save(r);createDebug.namespaces=r;createDebug.names=[];createDebug.skips=[];let s;const i=(typeof r==="string"?r:"").split(/[\s,]+/);const a=i.length;for(s=0;s"-"+r))].join(",");createDebug.enable("");return r}function enabled(r){if(r[r.length-1]==="*"){return true}let s;let i;for(s=0,i=createDebug.skips.length;s{if(typeof process==="undefined"||process.type==="renderer"||process.browser===true||process.__nwjs){r.exports=i(28222)}else{r.exports=i(35332)}},35332:(r,s,i)=>{const a=i(76224);const A=i(73837);s.init=init;s.log=log;s.formatArgs=formatArgs;s.save=save;s.load=load;s.useColors=useColors;s.destroy=A.deprecate((()=>{}),"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");s.colors=[6,2,3,4,5,1];try{const r=i(59318);if(r&&(r.stderr||r).level>=2){s.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(r){}s.inspectOpts=Object.keys(process.env).filter((r=>/^debug_/i.test(r))).reduce(((r,s)=>{const i=s.substring(6).toLowerCase().replace(/_([a-z])/g,((r,s)=>s.toUpperCase()));let a=process.env[s];if(/^(yes|on|true|enabled)$/i.test(a)){a=true}else if(/^(no|off|false|disabled)$/i.test(a)){a=false}else if(a==="null"){a=null}else{a=Number(a)}r[i]=a;return r}),{});function useColors(){return"colors"in s.inspectOpts?Boolean(s.inspectOpts.colors):a.isatty(process.stderr.fd)}function formatArgs(s){const{namespace:i,useColors:a}=this;if(a){const a=this.color;const A="[3"+(a<8?a:"8;5;"+a);const c=` ${A};1m${i} `;s[0]=c+s[0].split("\n").join("\n"+c);s.push(A+"m+"+r.exports.humanize(this.diff)+"")}else{s[0]=getDate()+i+" "+s[0]}}function getDate(){if(s.inspectOpts.hideDate){return""}return(new Date).toISOString()+" "}function log(...r){return process.stderr.write(A.format(...r)+"\n")}function save(r){if(r){process.env.DEBUG=r}else{delete process.env.DEBUG}}function load(){return process.env.DEBUG}function init(r){r.inspectOpts={};const i=Object.keys(s.inspectOpts);for(let a=0;ar.trim())).join(" ")};c.O=function(r){this.inspectOpts.colors=this.useColors;return A.inspect(r,this.inspectOpts)}},18611:(r,s,i)=>{var a=i(12781).Stream;var A=i(73837);r.exports=DelayedStream;function DelayedStream(){this.source=null;this.dataSize=0;this.maxDataSize=1024*1024;this.pauseStream=true;this._maxDataSizeExceeded=false;this._released=false;this._bufferedEvents=[]}A.inherits(DelayedStream,a);DelayedStream.create=function(r,s){var i=new this;s=s||{};for(var a in s){i[a]=s[a]}i.source=r;var A=r.emit;r.emit=function(){i._handleEmit(arguments);return A.apply(r,arguments)};r.on("error",(function(){}));if(i.pauseStream){r.pause()}return i};Object.defineProperty(DelayedStream.prototype,"readable",{configurable:true,enumerable:true,get:function(){return this.source.readable}});DelayedStream.prototype.setEncoding=function(){return this.source.setEncoding.apply(this.source,arguments)};DelayedStream.prototype.resume=function(){if(!this._released){this.release()}this.source.resume()};DelayedStream.prototype.pause=function(){this.source.pause()};DelayedStream.prototype.release=function(){this._released=true;this._bufferedEvents.forEach(function(r){this.emit.apply(this,r)}.bind(this));this._bufferedEvents=[]};DelayedStream.prototype.pipe=function(){var r=a.prototype.pipe.apply(this,arguments);this.resume();return r};DelayedStream.prototype._handleEmit=function(r){if(this._released){this.emit.apply(this,r);return}if(r[0]==="data"){this.dataSize+=r[1].length;this._checkIfMaxDataSizeExceeded()}this._bufferedEvents.push(r)};DelayedStream.prototype._checkIfMaxDataSizeExceeded=function(){if(this._maxDataSizeExceeded){return}if(this.dataSize<=this.maxDataSize){return}this._maxDataSizeExceeded=true;var r="DelayedStream#maxDataSize of "+this.maxDataSize+" bytes exceeded.";this.emit("error",new Error(r))}},58932:(r,s)=>{"use strict";Object.defineProperty(s,"__esModule",{value:true});class Deprecation extends Error{constructor(r){super(r);if(Error.captureStackTrace){Error.captureStackTrace(this,this.constructor)}this.name="Deprecation"}}s.Deprecation=Deprecation},28685:(r,s,i)=>{"use strict";var a=i(19032);r.exports.O=convert;function convert(r,s,i){i=checkEncoding(i||"UTF-8");s=checkEncoding(s||"UTF-8");r=r||"";var a;if(i!=="UTF-8"&&typeof r==="string"){r=Buffer.from(r,"binary")}if(i===s){if(typeof r==="string"){a=Buffer.from(r)}else{a=r}}else{try{a=convertIconvLite(r,s,i)}catch(s){console.error(s);a=r}}if(typeof a==="string"){a=Buffer.from(a,"utf-8")}return a}function convertIconvLite(r,s,i){if(s==="UTF-8"){return a.decode(r,i)}else if(i==="UTF-8"){return a.encode(r,s)}else{return a.encode(a.decode(r,i),s)}}function checkEncoding(r){return(r||"").toString().trim().replace(/^latin[\-_]?(\d+)$/i,"ISO-8859-$1").replace(/^win(?:dows)?[\-_]?(\d+)$/i,"WINDOWS-$1").replace(/^utf[\-_]?(\d+)$/i,"UTF-$1").replace(/^ks_c_5601\-1987$/i,"CP949").replace(/^us[\-_]?ascii$/i,"ASCII").toUpperCase()}},84697:(r,s)=>{"use strict"; /** - * Sets the value of an output. - * - * @param name name of the output to set - * @param value value to store. Non-string values will be converted to a string via JSON.stringify - */ -// eslint-disable-next-line @typescript-eslint/no-explicit-any -function setOutput(name, value) { - process.stdout.write(os.EOL); - command_1.issueCommand('set-output', { name }, value); -} -exports.setOutput = setOutput; -/** - * Enables or disables the echoing of commands into stdout for the rest of the step. - * Echoing is disabled by default if ACTIONS_STEP_DEBUG is not set. - * - */ -function setCommandEcho(enabled) { - command_1.issue('echo', enabled ? 'on' : 'off'); -} -exports.setCommandEcho = setCommandEcho; -//----------------------------------------------------------------------- -// Results -//----------------------------------------------------------------------- -/** - * Sets the action status to failed. - * When the action exits it will be with an exit code of 1 - * @param message add error issue message - */ -function setFailed(message) { - process.exitCode = ExitCode.Failure; - error(message); -} -exports.setFailed = setFailed; -//----------------------------------------------------------------------- -// Logging Commands -//----------------------------------------------------------------------- -/** - * Gets whether Actions Step Debug is on or not - */ -function isDebug() { - return process.env['RUNNER_DEBUG'] === '1'; -} -exports.isDebug = isDebug; -/** - * Writes debug message to user log - * @param message debug message - */ -function debug(message) { - command_1.issueCommand('debug', {}, message); -} -exports.debug = debug; -/** - * Adds an error issue - * @param message error issue message. Errors will be converted to string via toString() - * @param properties optional properties to add to the annotation. - */ -function error(message, properties = {}) { - command_1.issueCommand('error', utils_1.toCommandProperties(properties), message instanceof Error ? message.toString() : message); -} -exports.error = error; -/** - * Adds a warning issue - * @param message warning issue message. Errors will be converted to string via toString() - * @param properties optional properties to add to the annotation. - */ -function warning(message, properties = {}) { - command_1.issueCommand('warning', utils_1.toCommandProperties(properties), message instanceof Error ? message.toString() : message); -} -exports.warning = warning; -/** - * Adds a notice issue - * @param message notice issue message. Errors will be converted to string via toString() - * @param properties optional properties to add to the annotation. - */ -function notice(message, properties = {}) { - command_1.issueCommand('notice', utils_1.toCommandProperties(properties), message instanceof Error ? message.toString() : message); -} -exports.notice = notice; -/** - * Writes info to log with console.log. - * @param message info message - */ -function info(message) { - process.stdout.write(message + os.EOL); -} -exports.info = info; -/** - * Begin an output group. - * - * Output until the next `groupEnd` will be foldable in this group - * - * @param name The name of the output group - */ -function startGroup(name) { - command_1.issue('group', name); -} -exports.startGroup = startGroup; -/** - * End an output group. - */ -function endGroup() { - command_1.issue('endgroup'); -} -exports.endGroup = endGroup; -/** - * Wrap an asynchronous function call in a group. - * - * Returns the same type as the function itself. - * - * @param name The name of the group - * @param fn The function to wrap in the group - */ -function group(name, fn) { - return __awaiter(this, void 0, void 0, function* () { - startGroup(name); - let result; - try { - result = yield fn(); - } - finally { - endGroup(); - } - return result; - }); -} -exports.group = group; -//----------------------------------------------------------------------- -// Wrapper action state -//----------------------------------------------------------------------- -/** - * Saves state for current action, the state can only be retrieved by this action's post job execution. - * - * @param name name of the state to store - * @param value value to store. Non-string values will be converted to a string via JSON.stringify - */ -// eslint-disable-next-line @typescript-eslint/no-explicit-any -function saveState(name, value) { - command_1.issueCommand('save-state', { name }, value); -} -exports.saveState = saveState; -/** - * Gets the value of an state set by this action's main execution. - * - * @param name name of the state to get - * @returns string - */ -function getState(name) { - return process.env[`STATE_${name}`] || ''; -} -exports.getState = getState; -function getIDToken(aud) { - return __awaiter(this, void 0, void 0, function* () { - return yield oidc_utils_1.OidcClient.getIDToken(aud); - }); -} -exports.getIDToken = getIDToken; -//# sourceMappingURL=core.js.map - -/***/ }), - -/***/ 717: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - -// For internal use, subject to change. -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.issueCommand = void 0; -// We use any as a valid input type -/* eslint-disable @typescript-eslint/no-explicit-any */ -const fs = __importStar(__nccwpck_require__(35747)); -const os = __importStar(__nccwpck_require__(12087)); -const utils_1 = __nccwpck_require__(5278); -function issueCommand(command, message) { - const filePath = process.env[`GITHUB_${command}`]; - if (!filePath) { - throw new Error(`Unable to find environment variable for file command ${command}`); - } - if (!fs.existsSync(filePath)) { - throw new Error(`Missing file at path: ${filePath}`); - } - fs.appendFileSync(filePath, `${utils_1.toCommandValue(message)}${os.EOL}`, { - encoding: 'utf8' - }); -} -exports.issueCommand = issueCommand; -//# sourceMappingURL=file-command.js.map - -/***/ }), - -/***/ 98041: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - -var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { - function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } - return new (P || (P = Promise))(function (resolve, reject) { - function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } - function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } - function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } - step((generator = generator.apply(thisArg, _arguments || [])).next()); - }); -}; -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.OidcClient = void 0; -const http_client_1 = __nccwpck_require__(39925); -const auth_1 = __nccwpck_require__(23702); -const core_1 = __nccwpck_require__(42186); -class OidcClient { - static createHttpClient(allowRetry = true, maxRetry = 10) { - const requestOptions = { - allowRetries: allowRetry, - maxRetries: maxRetry - }; - return new http_client_1.HttpClient('actions/oidc-client', [new auth_1.BearerCredentialHandler(OidcClient.getRequestToken())], requestOptions); - } - static getRequestToken() { - const token = process.env['ACTIONS_ID_TOKEN_REQUEST_TOKEN']; - if (!token) { - throw new Error('Unable to get ACTIONS_ID_TOKEN_REQUEST_TOKEN env variable'); - } - return token; - } - static getIDTokenUrl() { - const runtimeUrl = process.env['ACTIONS_ID_TOKEN_REQUEST_URL']; - if (!runtimeUrl) { - throw new Error('Unable to get ACTIONS_ID_TOKEN_REQUEST_URL env variable'); - } - return runtimeUrl; - } - static getCall(id_token_url) { - var _a; - return __awaiter(this, void 0, void 0, function* () { - const httpclient = OidcClient.createHttpClient(); - const res = yield httpclient - .getJson(id_token_url) - .catch(error => { - throw new Error(`Failed to get ID Token. \n - Error Code : ${error.statusCode}\n - Error Message: ${error.result.message}`); - }); - const id_token = (_a = res.result) === null || _a === void 0 ? void 0 : _a.value; - if (!id_token) { - throw new Error('Response json body do not have ID Token field'); - } - return id_token; - }); - } - static getIDToken(audience) { - return __awaiter(this, void 0, void 0, function* () { - try { - // New ID Token is requested from action service - let id_token_url = OidcClient.getIDTokenUrl(); - if (audience) { - const encodedAudience = encodeURIComponent(audience); - id_token_url = `${id_token_url}&audience=${encodedAudience}`; - } - core_1.debug(`ID token url is ${id_token_url}`); - const id_token = yield OidcClient.getCall(id_token_url); - core_1.setSecret(id_token); - return id_token; - } - catch (error) { - throw new Error(`Error message: ${error.message}`); - } - }); - } -} -exports.OidcClient = OidcClient; -//# sourceMappingURL=oidc-utils.js.map - -/***/ }), - -/***/ 5278: -/***/ ((__unused_webpack_module, exports) => { - -"use strict"; - -// We use any as a valid input type -/* eslint-disable @typescript-eslint/no-explicit-any */ -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.toCommandProperties = exports.toCommandValue = void 0; -/** - * Sanitizes an input into a string so it can be passed into issueCommand safely - * @param input input to sanitize into a string - */ -function toCommandValue(input) { - if (input === null || input === undefined) { - return ''; - } - else if (typeof input === 'string' || input instanceof String) { - return input; - } - return JSON.stringify(input); -} -exports.toCommandValue = toCommandValue; -/** - * - * @param annotationProperties - * @returns The command properties to send with the actual annotation command - * See IssueCommandProperties: https://github.com/actions/runner/blob/main/src/Runner.Worker/ActionCommandManager.cs#L646 - */ -function toCommandProperties(annotationProperties) { - if (!Object.keys(annotationProperties).length) { - return {}; - } - return { - title: annotationProperties.title, - file: annotationProperties.file, - line: annotationProperties.startLine, - endLine: annotationProperties.endLine, - col: annotationProperties.startColumn, - endColumn: annotationProperties.endColumn - }; -} -exports.toCommandProperties = toCommandProperties; -//# sourceMappingURL=utils.js.map - -/***/ }), - -/***/ 71514: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { - function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } - return new (P || (P = Promise))(function (resolve, reject) { - function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } - function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } - function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } - step((generator = generator.apply(thisArg, _arguments || [])).next()); - }); -}; -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.getExecOutput = exports.exec = void 0; -const string_decoder_1 = __nccwpck_require__(24304); -const tr = __importStar(__nccwpck_require__(88159)); -/** - * Exec a command. - * Output will be streamed to the live console. - * Returns promise with return code - * - * @param commandLine command to execute (can include additional args). Must be correctly escaped. - * @param args optional arguments for tool. Escaping is handled by the lib. - * @param options optional exec options. See ExecOptions - * @returns Promise exit code - */ -function exec(commandLine, args, options) { - return __awaiter(this, void 0, void 0, function* () { - const commandArgs = tr.argStringToArray(commandLine); - if (commandArgs.length === 0) { - throw new Error(`Parameter 'commandLine' cannot be null or empty.`); - } - // Path to tool to execute should be first arg - const toolPath = commandArgs[0]; - args = commandArgs.slice(1).concat(args || []); - const runner = new tr.ToolRunner(toolPath, args, options); - return runner.exec(); - }); -} -exports.exec = exec; -/** - * Exec a command and get the output. - * Output will be streamed to the live console. - * Returns promise with the exit code and collected stdout and stderr - * - * @param commandLine command to execute (can include additional args). Must be correctly escaped. - * @param args optional arguments for tool. Escaping is handled by the lib. - * @param options optional exec options. See ExecOptions - * @returns Promise exit code, stdout, and stderr - */ -function getExecOutput(commandLine, args, options) { - var _a, _b; - return __awaiter(this, void 0, void 0, function* () { - let stdout = ''; - let stderr = ''; - //Using string decoder covers the case where a mult-byte character is split - const stdoutDecoder = new string_decoder_1.StringDecoder('utf8'); - const stderrDecoder = new string_decoder_1.StringDecoder('utf8'); - const originalStdoutListener = (_a = options === null || options === void 0 ? void 0 : options.listeners) === null || _a === void 0 ? void 0 : _a.stdout; - const originalStdErrListener = (_b = options === null || options === void 0 ? void 0 : options.listeners) === null || _b === void 0 ? void 0 : _b.stderr; - const stdErrListener = (data) => { - stderr += stderrDecoder.write(data); - if (originalStdErrListener) { - originalStdErrListener(data); - } - }; - const stdOutListener = (data) => { - stdout += stdoutDecoder.write(data); - if (originalStdoutListener) { - originalStdoutListener(data); - } - }; - const listeners = Object.assign(Object.assign({}, options === null || options === void 0 ? void 0 : options.listeners), { stdout: stdOutListener, stderr: stdErrListener }); - const exitCode = yield exec(commandLine, args, Object.assign(Object.assign({}, options), { listeners })); - //flush any remaining characters - stdout += stdoutDecoder.end(); - stderr += stderrDecoder.end(); - return { - exitCode, - stdout, - stderr - }; - }); -} -exports.getExecOutput = getExecOutput; -//# sourceMappingURL=exec.js.map - -/***/ }), - -/***/ 88159: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { - function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } - return new (P || (P = Promise))(function (resolve, reject) { - function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } - function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } - function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } - step((generator = generator.apply(thisArg, _arguments || [])).next()); - }); -}; -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.argStringToArray = exports.ToolRunner = void 0; -const os = __importStar(__nccwpck_require__(12087)); -const events = __importStar(__nccwpck_require__(28614)); -const child = __importStar(__nccwpck_require__(63129)); -const path = __importStar(__nccwpck_require__(85622)); -const io = __importStar(__nccwpck_require__(47351)); -const ioUtil = __importStar(__nccwpck_require__(81962)); -const timers_1 = __nccwpck_require__(78213); -/* eslint-disable @typescript-eslint/unbound-method */ -const IS_WINDOWS = process.platform === 'win32'; -/* - * Class for running command line tools. Handles quoting and arg parsing in a platform agnostic way. - */ -class ToolRunner extends events.EventEmitter { - constructor(toolPath, args, options) { - super(); - if (!toolPath) { - throw new Error("Parameter 'toolPath' cannot be null or empty."); - } - this.toolPath = toolPath; - this.args = args || []; - this.options = options || {}; - } - _debug(message) { - if (this.options.listeners && this.options.listeners.debug) { - this.options.listeners.debug(message); - } - } - _getCommandString(options, noPrefix) { - const toolPath = this._getSpawnFileName(); - const args = this._getSpawnArgs(options); - let cmd = noPrefix ? '' : '[command]'; // omit prefix when piped to a second tool - if (IS_WINDOWS) { - // Windows + cmd file - if (this._isCmdFile()) { - cmd += toolPath; - for (const a of args) { - cmd += ` ${a}`; - } - } - // Windows + verbatim - else if (options.windowsVerbatimArguments) { - cmd += `"${toolPath}"`; - for (const a of args) { - cmd += ` ${a}`; - } - } - // Windows (regular) - else { - cmd += this._windowsQuoteCmdArg(toolPath); - for (const a of args) { - cmd += ` ${this._windowsQuoteCmdArg(a)}`; - } - } - } - else { - // OSX/Linux - this can likely be improved with some form of quoting. - // creating processes on Unix is fundamentally different than Windows. - // on Unix, execvp() takes an arg array. - cmd += toolPath; - for (const a of args) { - cmd += ` ${a}`; - } - } - return cmd; - } - _processLineBuffer(data, strBuffer, onLine) { - try { - let s = strBuffer + data.toString(); - let n = s.indexOf(os.EOL); - while (n > -1) { - const line = s.substring(0, n); - onLine(line); - // the rest of the string ... - s = s.substring(n + os.EOL.length); - n = s.indexOf(os.EOL); - } - return s; - } - catch (err) { - // streaming lines to console is best effort. Don't fail a build. - this._debug(`error processing line. Failed with error ${err}`); - return ''; - } - } - _getSpawnFileName() { - if (IS_WINDOWS) { - if (this._isCmdFile()) { - return process.env['COMSPEC'] || 'cmd.exe'; - } - } - return this.toolPath; - } - _getSpawnArgs(options) { - if (IS_WINDOWS) { - if (this._isCmdFile()) { - let argline = `/D /S /C "${this._windowsQuoteCmdArg(this.toolPath)}`; - for (const a of this.args) { - argline += ' '; - argline += options.windowsVerbatimArguments - ? a - : this._windowsQuoteCmdArg(a); - } - argline += '"'; - return [argline]; - } - } - return this.args; - } - _endsWith(str, end) { - return str.endsWith(end); - } - _isCmdFile() { - const upperToolPath = this.toolPath.toUpperCase(); - return (this._endsWith(upperToolPath, '.CMD') || - this._endsWith(upperToolPath, '.BAT')); - } - _windowsQuoteCmdArg(arg) { - // for .exe, apply the normal quoting rules that libuv applies - if (!this._isCmdFile()) { - return this._uvQuoteCmdArg(arg); - } - // otherwise apply quoting rules specific to the cmd.exe command line parser. - // the libuv rules are generic and are not designed specifically for cmd.exe - // command line parser. - // - // for a detailed description of the cmd.exe command line parser, refer to - // http://stackoverflow.com/questions/4094699/how-does-the-windows-command-interpreter-cmd-exe-parse-scripts/7970912#7970912 - // need quotes for empty arg - if (!arg) { - return '""'; - } - // determine whether the arg needs to be quoted - const cmdSpecialChars = [ - ' ', - '\t', - '&', - '(', - ')', - '[', - ']', - '{', - '}', - '^', - '=', - ';', - '!', - "'", - '+', - ',', - '`', - '~', - '|', - '<', - '>', - '"' - ]; - let needsQuotes = false; - for (const char of arg) { - if (cmdSpecialChars.some(x => x === char)) { - needsQuotes = true; - break; - } - } - // short-circuit if quotes not needed - if (!needsQuotes) { - return arg; - } - // the following quoting rules are very similar to the rules that by libuv applies. - // - // 1) wrap the string in quotes - // - // 2) double-up quotes - i.e. " => "" - // - // this is different from the libuv quoting rules. libuv replaces " with \", which unfortunately - // doesn't work well with a cmd.exe command line. - // - // note, replacing " with "" also works well if the arg is passed to a downstream .NET console app. - // for example, the command line: - // foo.exe "myarg:""my val""" - // is parsed by a .NET console app into an arg array: - // [ "myarg:\"my val\"" ] - // which is the same end result when applying libuv quoting rules. although the actual - // command line from libuv quoting rules would look like: - // foo.exe "myarg:\"my val\"" - // - // 3) double-up slashes that precede a quote, - // e.g. hello \world => "hello \world" - // hello\"world => "hello\\""world" - // hello\\"world => "hello\\\\""world" - // hello world\ => "hello world\\" - // - // technically this is not required for a cmd.exe command line, or the batch argument parser. - // the reasons for including this as a .cmd quoting rule are: - // - // a) this is optimized for the scenario where the argument is passed from the .cmd file to an - // external program. many programs (e.g. .NET console apps) rely on the slash-doubling rule. - // - // b) it's what we've been doing previously (by deferring to node default behavior) and we - // haven't heard any complaints about that aspect. - // - // note, a weakness of the quoting rules chosen here, is that % is not escaped. in fact, % cannot be - // escaped when used on the command line directly - even though within a .cmd file % can be escaped - // by using %%. - // - // the saving grace is, on the command line, %var% is left as-is if var is not defined. this contrasts - // the line parsing rules within a .cmd file, where if var is not defined it is replaced with nothing. - // - // one option that was explored was replacing % with ^% - i.e. %var% => ^%var^%. this hack would - // often work, since it is unlikely that var^ would exist, and the ^ character is removed when the - // variable is used. the problem, however, is that ^ is not removed when %* is used to pass the args - // to an external program. - // - // an unexplored potential solution for the % escaping problem, is to create a wrapper .cmd file. - // % can be escaped within a .cmd file. - let reverse = '"'; - let quoteHit = true; - for (let i = arg.length; i > 0; i--) { - // walk the string in reverse - reverse += arg[i - 1]; - if (quoteHit && arg[i - 1] === '\\') { - reverse += '\\'; // double the slash - } - else if (arg[i - 1] === '"') { - quoteHit = true; - reverse += '"'; // double the quote - } - else { - quoteHit = false; - } - } - reverse += '"'; - return reverse - .split('') - .reverse() - .join(''); - } - _uvQuoteCmdArg(arg) { - // Tool runner wraps child_process.spawn() and needs to apply the same quoting as - // Node in certain cases where the undocumented spawn option windowsVerbatimArguments - // is used. - // - // Since this function is a port of quote_cmd_arg from Node 4.x (technically, lib UV, - // see https://github.com/nodejs/node/blob/v4.x/deps/uv/src/win/process.c for details), - // pasting copyright notice from Node within this function: - // - // Copyright Joyent, Inc. and other Node contributors. All rights reserved. - // - // Permission is hereby granted, free of charge, to any person obtaining a copy - // of this software and associated documentation files (the "Software"), to - // deal in the Software without restriction, including without limitation the - // rights to use, copy, modify, merge, publish, distribute, sublicense, and/or - // sell copies of the Software, and to permit persons to whom the Software is - // furnished to do so, subject to the following conditions: - // - // The above copyright notice and this permission notice shall be included in - // all copies or substantial portions of the Software. - // - // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING - // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS - // IN THE SOFTWARE. - if (!arg) { - // Need double quotation for empty argument - return '""'; - } - if (!arg.includes(' ') && !arg.includes('\t') && !arg.includes('"')) { - // No quotation needed - return arg; - } - if (!arg.includes('"') && !arg.includes('\\')) { - // No embedded double quotes or backslashes, so I can just wrap - // quote marks around the whole thing. - return `"${arg}"`; - } - // Expected input/output: - // input : hello"world - // output: "hello\"world" - // input : hello""world - // output: "hello\"\"world" - // input : hello\world - // output: hello\world - // input : hello\\world - // output: hello\\world - // input : hello\"world - // output: "hello\\\"world" - // input : hello\\"world - // output: "hello\\\\\"world" - // input : hello world\ - // output: "hello world\\" - note the comment in libuv actually reads "hello world\" - // but it appears the comment is wrong, it should be "hello world\\" - let reverse = '"'; - let quoteHit = true; - for (let i = arg.length; i > 0; i--) { - // walk the string in reverse - reverse += arg[i - 1]; - if (quoteHit && arg[i - 1] === '\\') { - reverse += '\\'; - } - else if (arg[i - 1] === '"') { - quoteHit = true; - reverse += '\\'; - } - else { - quoteHit = false; - } - } - reverse += '"'; - return reverse - .split('') - .reverse() - .join(''); - } - _cloneExecOptions(options) { - options = options || {}; - const result = { - cwd: options.cwd || process.cwd(), - env: options.env || process.env, - silent: options.silent || false, - windowsVerbatimArguments: options.windowsVerbatimArguments || false, - failOnStdErr: options.failOnStdErr || false, - ignoreReturnCode: options.ignoreReturnCode || false, - delay: options.delay || 10000 - }; - result.outStream = options.outStream || process.stdout; - result.errStream = options.errStream || process.stderr; - return result; - } - _getSpawnOptions(options, toolPath) { - options = options || {}; - const result = {}; - result.cwd = options.cwd; - result.env = options.env; - result['windowsVerbatimArguments'] = - options.windowsVerbatimArguments || this._isCmdFile(); - if (options.windowsVerbatimArguments) { - result.argv0 = `"${toolPath}"`; - } - return result; - } - /** - * Exec a tool. - * Output will be streamed to the live console. - * Returns promise with return code - * - * @param tool path to tool to exec - * @param options optional exec options. See ExecOptions - * @returns number - */ - exec() { - return __awaiter(this, void 0, void 0, function* () { - // root the tool path if it is unrooted and contains relative pathing - if (!ioUtil.isRooted(this.toolPath) && - (this.toolPath.includes('/') || - (IS_WINDOWS && this.toolPath.includes('\\')))) { - // prefer options.cwd if it is specified, however options.cwd may also need to be rooted - this.toolPath = path.resolve(process.cwd(), this.options.cwd || process.cwd(), this.toolPath); - } - // if the tool is only a file name, then resolve it from the PATH - // otherwise verify it exists (add extension on Windows if necessary) - this.toolPath = yield io.which(this.toolPath, true); - return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () { - this._debug(`exec tool: ${this.toolPath}`); - this._debug('arguments:'); - for (const arg of this.args) { - this._debug(` ${arg}`); - } - const optionsNonNull = this._cloneExecOptions(this.options); - if (!optionsNonNull.silent && optionsNonNull.outStream) { - optionsNonNull.outStream.write(this._getCommandString(optionsNonNull) + os.EOL); - } - const state = new ExecState(optionsNonNull, this.toolPath); - state.on('debug', (message) => { - this._debug(message); - }); - if (this.options.cwd && !(yield ioUtil.exists(this.options.cwd))) { - return reject(new Error(`The cwd: ${this.options.cwd} does not exist!`)); - } - const fileName = this._getSpawnFileName(); - const cp = child.spawn(fileName, this._getSpawnArgs(optionsNonNull), this._getSpawnOptions(this.options, fileName)); - let stdbuffer = ''; - if (cp.stdout) { - cp.stdout.on('data', (data) => { - if (this.options.listeners && this.options.listeners.stdout) { - this.options.listeners.stdout(data); - } - if (!optionsNonNull.silent && optionsNonNull.outStream) { - optionsNonNull.outStream.write(data); - } - stdbuffer = this._processLineBuffer(data, stdbuffer, (line) => { - if (this.options.listeners && this.options.listeners.stdline) { - this.options.listeners.stdline(line); - } - }); - }); - } - let errbuffer = ''; - if (cp.stderr) { - cp.stderr.on('data', (data) => { - state.processStderr = true; - if (this.options.listeners && this.options.listeners.stderr) { - this.options.listeners.stderr(data); - } - if (!optionsNonNull.silent && - optionsNonNull.errStream && - optionsNonNull.outStream) { - const s = optionsNonNull.failOnStdErr - ? optionsNonNull.errStream - : optionsNonNull.outStream; - s.write(data); - } - errbuffer = this._processLineBuffer(data, errbuffer, (line) => { - if (this.options.listeners && this.options.listeners.errline) { - this.options.listeners.errline(line); - } - }); - }); - } - cp.on('error', (err) => { - state.processError = err.message; - state.processExited = true; - state.processClosed = true; - state.CheckComplete(); - }); - cp.on('exit', (code) => { - state.processExitCode = code; - state.processExited = true; - this._debug(`Exit code ${code} received from tool '${this.toolPath}'`); - state.CheckComplete(); - }); - cp.on('close', (code) => { - state.processExitCode = code; - state.processExited = true; - state.processClosed = true; - this._debug(`STDIO streams have closed for tool '${this.toolPath}'`); - state.CheckComplete(); - }); - state.on('done', (error, exitCode) => { - if (stdbuffer.length > 0) { - this.emit('stdline', stdbuffer); - } - if (errbuffer.length > 0) { - this.emit('errline', errbuffer); - } - cp.removeAllListeners(); - if (error) { - reject(error); - } - else { - resolve(exitCode); - } - }); - if (this.options.input) { - if (!cp.stdin) { - throw new Error('child process missing stdin'); - } - cp.stdin.end(this.options.input); - } - })); - }); - } -} -exports.ToolRunner = ToolRunner; -/** - * Convert an arg string to an array of args. Handles escaping - * - * @param argString string of arguments - * @returns string[] array of arguments - */ -function argStringToArray(argString) { - const args = []; - let inQuotes = false; - let escaped = false; - let arg = ''; - function append(c) { - // we only escape double quotes. - if (escaped && c !== '"') { - arg += '\\'; - } - arg += c; - escaped = false; - } - for (let i = 0; i < argString.length; i++) { - const c = argString.charAt(i); - if (c === '"') { - if (!escaped) { - inQuotes = !inQuotes; - } - else { - append(c); - } - continue; - } - if (c === '\\' && escaped) { - append(c); - continue; - } - if (c === '\\' && inQuotes) { - escaped = true; - continue; - } - if (c === ' ' && !inQuotes) { - if (arg.length > 0) { - args.push(arg); - arg = ''; - } - continue; - } - append(c); - } - if (arg.length > 0) { - args.push(arg.trim()); - } - return args; -} -exports.argStringToArray = argStringToArray; -class ExecState extends events.EventEmitter { - constructor(options, toolPath) { - super(); - this.processClosed = false; // tracks whether the process has exited and stdio is closed - this.processError = ''; - this.processExitCode = 0; - this.processExited = false; // tracks whether the process has exited - this.processStderr = false; // tracks whether stderr was written to - this.delay = 10000; // 10 seconds - this.done = false; - this.timeout = null; - if (!toolPath) { - throw new Error('toolPath must not be empty'); - } - this.options = options; - this.toolPath = toolPath; - if (options.delay) { - this.delay = options.delay; - } - } - CheckComplete() { - if (this.done) { - return; - } - if (this.processClosed) { - this._setResult(); - } - else if (this.processExited) { - this.timeout = timers_1.setTimeout(ExecState.HandleTimeout, this.delay, this); - } - } - _debug(message) { - this.emit('debug', message); - } - _setResult() { - // determine whether there is an error - let error; - if (this.processExited) { - if (this.processError) { - error = new Error(`There was an error when attempting to execute the process '${this.toolPath}'. This may indicate the process failed to start. Error: ${this.processError}`); - } - else if (this.processExitCode !== 0 && !this.options.ignoreReturnCode) { - error = new Error(`The process '${this.toolPath}' failed with exit code ${this.processExitCode}`); - } - else if (this.processStderr && this.options.failOnStdErr) { - error = new Error(`The process '${this.toolPath}' failed because one or more lines were written to the STDERR stream`); - } - } - // clear the timeout - if (this.timeout) { - clearTimeout(this.timeout); - this.timeout = null; - } - this.done = true; - this.emit('done', error, this.processExitCode); - } - static HandleTimeout(state) { - if (state.done) { - return; - } - if (!state.processClosed && state.processExited) { - const message = `The STDIO streams did not close within ${state.delay / - 1000} seconds of the exit event from process '${state.toolPath}'. This may indicate a child process inherited the STDIO streams and has not yet exited.`; - state._debug(message); - } - state._setResult(); - } -} -//# sourceMappingURL=toolrunner.js.map - -/***/ }), - -/***/ 23702: -/***/ ((__unused_webpack_module, exports) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -class BasicCredentialHandler { - constructor(username, password) { - this.username = username; - this.password = password; - } - prepareRequest(options) { - options.headers['Authorization'] = - 'Basic ' + - Buffer.from(this.username + ':' + this.password).toString('base64'); - } - // This handler cannot handle 401 - canHandleAuthentication(response) { - return false; - } - handleAuthentication(httpClient, requestInfo, objs) { - return null; - } -} -exports.BasicCredentialHandler = BasicCredentialHandler; -class BearerCredentialHandler { - constructor(token) { - this.token = token; - } - // currently implements pre-authorization - // TODO: support preAuth = false where it hooks on 401 - prepareRequest(options) { - options.headers['Authorization'] = 'Bearer ' + this.token; - } - // This handler cannot handle 401 - canHandleAuthentication(response) { - return false; - } - handleAuthentication(httpClient, requestInfo, objs) { - return null; - } -} -exports.BearerCredentialHandler = BearerCredentialHandler; -class PersonalAccessTokenCredentialHandler { - constructor(token) { - this.token = token; - } - // currently implements pre-authorization - // TODO: support preAuth = false where it hooks on 401 - prepareRequest(options) { - options.headers['Authorization'] = - 'Basic ' + Buffer.from('PAT:' + this.token).toString('base64'); - } - // This handler cannot handle 401 - canHandleAuthentication(response) { - return false; - } - handleAuthentication(httpClient, requestInfo, objs) { - return null; - } -} -exports.PersonalAccessTokenCredentialHandler = PersonalAccessTokenCredentialHandler; - - -/***/ }), - -/***/ 39925: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -const http = __nccwpck_require__(98605); -const https = __nccwpck_require__(57211); -const pm = __nccwpck_require__(16443); -let tunnel; -var HttpCodes; -(function (HttpCodes) { - HttpCodes[HttpCodes["OK"] = 200] = "OK"; - HttpCodes[HttpCodes["MultipleChoices"] = 300] = "MultipleChoices"; - HttpCodes[HttpCodes["MovedPermanently"] = 301] = "MovedPermanently"; - HttpCodes[HttpCodes["ResourceMoved"] = 302] = "ResourceMoved"; - HttpCodes[HttpCodes["SeeOther"] = 303] = "SeeOther"; - HttpCodes[HttpCodes["NotModified"] = 304] = "NotModified"; - HttpCodes[HttpCodes["UseProxy"] = 305] = "UseProxy"; - HttpCodes[HttpCodes["SwitchProxy"] = 306] = "SwitchProxy"; - HttpCodes[HttpCodes["TemporaryRedirect"] = 307] = "TemporaryRedirect"; - HttpCodes[HttpCodes["PermanentRedirect"] = 308] = "PermanentRedirect"; - HttpCodes[HttpCodes["BadRequest"] = 400] = "BadRequest"; - HttpCodes[HttpCodes["Unauthorized"] = 401] = "Unauthorized"; - HttpCodes[HttpCodes["PaymentRequired"] = 402] = "PaymentRequired"; - HttpCodes[HttpCodes["Forbidden"] = 403] = "Forbidden"; - HttpCodes[HttpCodes["NotFound"] = 404] = "NotFound"; - HttpCodes[HttpCodes["MethodNotAllowed"] = 405] = "MethodNotAllowed"; - HttpCodes[HttpCodes["NotAcceptable"] = 406] = "NotAcceptable"; - HttpCodes[HttpCodes["ProxyAuthenticationRequired"] = 407] = "ProxyAuthenticationRequired"; - HttpCodes[HttpCodes["RequestTimeout"] = 408] = "RequestTimeout"; - HttpCodes[HttpCodes["Conflict"] = 409] = "Conflict"; - HttpCodes[HttpCodes["Gone"] = 410] = "Gone"; - HttpCodes[HttpCodes["TooManyRequests"] = 429] = "TooManyRequests"; - HttpCodes[HttpCodes["InternalServerError"] = 500] = "InternalServerError"; - HttpCodes[HttpCodes["NotImplemented"] = 501] = "NotImplemented"; - HttpCodes[HttpCodes["BadGateway"] = 502] = "BadGateway"; - HttpCodes[HttpCodes["ServiceUnavailable"] = 503] = "ServiceUnavailable"; - HttpCodes[HttpCodes["GatewayTimeout"] = 504] = "GatewayTimeout"; -})(HttpCodes = exports.HttpCodes || (exports.HttpCodes = {})); -var Headers; -(function (Headers) { - Headers["Accept"] = "accept"; - Headers["ContentType"] = "content-type"; -})(Headers = exports.Headers || (exports.Headers = {})); -var MediaTypes; -(function (MediaTypes) { - MediaTypes["ApplicationJson"] = "application/json"; -})(MediaTypes = exports.MediaTypes || (exports.MediaTypes = {})); -/** - * Returns the proxy URL, depending upon the supplied url and proxy environment variables. - * @param serverUrl The server URL where the request will be sent. For example, https://api.github.com - */ -function getProxyUrl(serverUrl) { - let proxyUrl = pm.getProxyUrl(new URL(serverUrl)); - return proxyUrl ? proxyUrl.href : ''; -} -exports.getProxyUrl = getProxyUrl; -const HttpRedirectCodes = [ - HttpCodes.MovedPermanently, - HttpCodes.ResourceMoved, - HttpCodes.SeeOther, - HttpCodes.TemporaryRedirect, - HttpCodes.PermanentRedirect -]; -const HttpResponseRetryCodes = [ - HttpCodes.BadGateway, - HttpCodes.ServiceUnavailable, - HttpCodes.GatewayTimeout -]; -const RetryableHttpVerbs = ['OPTIONS', 'GET', 'DELETE', 'HEAD']; -const ExponentialBackoffCeiling = 10; -const ExponentialBackoffTimeSlice = 5; -class HttpClientError extends Error { - constructor(message, statusCode) { - super(message); - this.name = 'HttpClientError'; - this.statusCode = statusCode; - Object.setPrototypeOf(this, HttpClientError.prototype); - } -} -exports.HttpClientError = HttpClientError; -class HttpClientResponse { - constructor(message) { - this.message = message; - } - readBody() { - return new Promise(async (resolve, reject) => { - let output = Buffer.alloc(0); - this.message.on('data', (chunk) => { - output = Buffer.concat([output, chunk]); - }); - this.message.on('end', () => { - resolve(output.toString()); - }); - }); - } -} -exports.HttpClientResponse = HttpClientResponse; -function isHttps(requestUrl) { - let parsedUrl = new URL(requestUrl); - return parsedUrl.protocol === 'https:'; -} -exports.isHttps = isHttps; -class HttpClient { - constructor(userAgent, handlers, requestOptions) { - this._ignoreSslError = false; - this._allowRedirects = true; - this._allowRedirectDowngrade = false; - this._maxRedirects = 50; - this._allowRetries = false; - this._maxRetries = 1; - this._keepAlive = false; - this._disposed = false; - this.userAgent = userAgent; - this.handlers = handlers || []; - this.requestOptions = requestOptions; - if (requestOptions) { - if (requestOptions.ignoreSslError != null) { - this._ignoreSslError = requestOptions.ignoreSslError; - } - this._socketTimeout = requestOptions.socketTimeout; - if (requestOptions.allowRedirects != null) { - this._allowRedirects = requestOptions.allowRedirects; - } - if (requestOptions.allowRedirectDowngrade != null) { - this._allowRedirectDowngrade = requestOptions.allowRedirectDowngrade; - } - if (requestOptions.maxRedirects != null) { - this._maxRedirects = Math.max(requestOptions.maxRedirects, 0); - } - if (requestOptions.keepAlive != null) { - this._keepAlive = requestOptions.keepAlive; - } - if (requestOptions.allowRetries != null) { - this._allowRetries = requestOptions.allowRetries; - } - if (requestOptions.maxRetries != null) { - this._maxRetries = requestOptions.maxRetries; - } - } - } - options(requestUrl, additionalHeaders) { - return this.request('OPTIONS', requestUrl, null, additionalHeaders || {}); - } - get(requestUrl, additionalHeaders) { - return this.request('GET', requestUrl, null, additionalHeaders || {}); - } - del(requestUrl, additionalHeaders) { - return this.request('DELETE', requestUrl, null, additionalHeaders || {}); - } - post(requestUrl, data, additionalHeaders) { - return this.request('POST', requestUrl, data, additionalHeaders || {}); - } - patch(requestUrl, data, additionalHeaders) { - return this.request('PATCH', requestUrl, data, additionalHeaders || {}); - } - put(requestUrl, data, additionalHeaders) { - return this.request('PUT', requestUrl, data, additionalHeaders || {}); - } - head(requestUrl, additionalHeaders) { - return this.request('HEAD', requestUrl, null, additionalHeaders || {}); - } - sendStream(verb, requestUrl, stream, additionalHeaders) { - return this.request(verb, requestUrl, stream, additionalHeaders); - } - /** - * Gets a typed object from an endpoint - * Be aware that not found returns a null. Other errors (4xx, 5xx) reject the promise - */ - async getJson(requestUrl, additionalHeaders = {}) { - additionalHeaders[Headers.Accept] = this._getExistingOrDefaultHeader(additionalHeaders, Headers.Accept, MediaTypes.ApplicationJson); - let res = await this.get(requestUrl, additionalHeaders); - return this._processResponse(res, this.requestOptions); - } - async postJson(requestUrl, obj, additionalHeaders = {}) { - let data = JSON.stringify(obj, null, 2); - additionalHeaders[Headers.Accept] = this._getExistingOrDefaultHeader(additionalHeaders, Headers.Accept, MediaTypes.ApplicationJson); - additionalHeaders[Headers.ContentType] = this._getExistingOrDefaultHeader(additionalHeaders, Headers.ContentType, MediaTypes.ApplicationJson); - let res = await this.post(requestUrl, data, additionalHeaders); - return this._processResponse(res, this.requestOptions); - } - async putJson(requestUrl, obj, additionalHeaders = {}) { - let data = JSON.stringify(obj, null, 2); - additionalHeaders[Headers.Accept] = this._getExistingOrDefaultHeader(additionalHeaders, Headers.Accept, MediaTypes.ApplicationJson); - additionalHeaders[Headers.ContentType] = this._getExistingOrDefaultHeader(additionalHeaders, Headers.ContentType, MediaTypes.ApplicationJson); - let res = await this.put(requestUrl, data, additionalHeaders); - return this._processResponse(res, this.requestOptions); - } - async patchJson(requestUrl, obj, additionalHeaders = {}) { - let data = JSON.stringify(obj, null, 2); - additionalHeaders[Headers.Accept] = this._getExistingOrDefaultHeader(additionalHeaders, Headers.Accept, MediaTypes.ApplicationJson); - additionalHeaders[Headers.ContentType] = this._getExistingOrDefaultHeader(additionalHeaders, Headers.ContentType, MediaTypes.ApplicationJson); - let res = await this.patch(requestUrl, data, additionalHeaders); - return this._processResponse(res, this.requestOptions); - } - /** - * Makes a raw http request. - * All other methods such as get, post, patch, and request ultimately call this. - * Prefer get, del, post and patch - */ - async request(verb, requestUrl, data, headers) { - if (this._disposed) { - throw new Error('Client has already been disposed.'); - } - let parsedUrl = new URL(requestUrl); - let info = this._prepareRequest(verb, parsedUrl, headers); - // Only perform retries on reads since writes may not be idempotent. - let maxTries = this._allowRetries && RetryableHttpVerbs.indexOf(verb) != -1 - ? this._maxRetries + 1 - : 1; - let numTries = 0; - let response; - while (numTries < maxTries) { - response = await this.requestRaw(info, data); - // Check if it's an authentication challenge - if (response && - response.message && - response.message.statusCode === HttpCodes.Unauthorized) { - let authenticationHandler; - for (let i = 0; i < this.handlers.length; i++) { - if (this.handlers[i].canHandleAuthentication(response)) { - authenticationHandler = this.handlers[i]; - break; - } - } - if (authenticationHandler) { - return authenticationHandler.handleAuthentication(this, info, data); - } - else { - // We have received an unauthorized response but have no handlers to handle it. - // Let the response return to the caller. - return response; - } - } - let redirectsRemaining = this._maxRedirects; - while (HttpRedirectCodes.indexOf(response.message.statusCode) != -1 && - this._allowRedirects && - redirectsRemaining > 0) { - const redirectUrl = response.message.headers['location']; - if (!redirectUrl) { - // if there's no location to redirect to, we won't - break; - } - let parsedRedirectUrl = new URL(redirectUrl); - if (parsedUrl.protocol == 'https:' && - parsedUrl.protocol != parsedRedirectUrl.protocol && - !this._allowRedirectDowngrade) { - throw new Error('Redirect from HTTPS to HTTP protocol. This downgrade is not allowed for security reasons. If you want to allow this behavior, set the allowRedirectDowngrade option to true.'); - } - // we need to finish reading the response before reassigning response - // which will leak the open socket. - await response.readBody(); - // strip authorization header if redirected to a different hostname - if (parsedRedirectUrl.hostname !== parsedUrl.hostname) { - for (let header in headers) { - // header names are case insensitive - if (header.toLowerCase() === 'authorization') { - delete headers[header]; - } - } - } - // let's make the request with the new redirectUrl - info = this._prepareRequest(verb, parsedRedirectUrl, headers); - response = await this.requestRaw(info, data); - redirectsRemaining--; - } - if (HttpResponseRetryCodes.indexOf(response.message.statusCode) == -1) { - // If not a retry code, return immediately instead of retrying - return response; - } - numTries += 1; - if (numTries < maxTries) { - await response.readBody(); - await this._performExponentialBackoff(numTries); - } - } - return response; - } - /** - * Needs to be called if keepAlive is set to true in request options. - */ - dispose() { - if (this._agent) { - this._agent.destroy(); - } - this._disposed = true; - } - /** - * Raw request. - * @param info - * @param data - */ - requestRaw(info, data) { - return new Promise((resolve, reject) => { - let callbackForResult = function (err, res) { - if (err) { - reject(err); - } - resolve(res); - }; - this.requestRawWithCallback(info, data, callbackForResult); - }); - } - /** - * Raw request with callback. - * @param info - * @param data - * @param onResult - */ - requestRawWithCallback(info, data, onResult) { - let socket; - if (typeof data === 'string') { - info.options.headers['Content-Length'] = Buffer.byteLength(data, 'utf8'); - } - let callbackCalled = false; - let handleResult = (err, res) => { - if (!callbackCalled) { - callbackCalled = true; - onResult(err, res); - } - }; - let req = info.httpModule.request(info.options, (msg) => { - let res = new HttpClientResponse(msg); - handleResult(null, res); - }); - req.on('socket', sock => { - socket = sock; - }); - // If we ever get disconnected, we want the socket to timeout eventually - req.setTimeout(this._socketTimeout || 3 * 60000, () => { - if (socket) { - socket.end(); - } - handleResult(new Error('Request timeout: ' + info.options.path), null); - }); - req.on('error', function (err) { - // err has statusCode property - // res should have headers - handleResult(err, null); - }); - if (data && typeof data === 'string') { - req.write(data, 'utf8'); - } - if (data && typeof data !== 'string') { - data.on('close', function () { - req.end(); - }); - data.pipe(req); - } - else { - req.end(); - } - } - /** - * Gets an http agent. This function is useful when you need an http agent that handles - * routing through a proxy server - depending upon the url and proxy environment variables. - * @param serverUrl The server URL where the request will be sent. For example, https://api.github.com - */ - getAgent(serverUrl) { - let parsedUrl = new URL(serverUrl); - return this._getAgent(parsedUrl); - } - _prepareRequest(method, requestUrl, headers) { - const info = {}; - info.parsedUrl = requestUrl; - const usingSsl = info.parsedUrl.protocol === 'https:'; - info.httpModule = usingSsl ? https : http; - const defaultPort = usingSsl ? 443 : 80; - info.options = {}; - info.options.host = info.parsedUrl.hostname; - info.options.port = info.parsedUrl.port - ? parseInt(info.parsedUrl.port) - : defaultPort; - info.options.path = - (info.parsedUrl.pathname || '') + (info.parsedUrl.search || ''); - info.options.method = method; - info.options.headers = this._mergeHeaders(headers); - if (this.userAgent != null) { - info.options.headers['user-agent'] = this.userAgent; - } - info.options.agent = this._getAgent(info.parsedUrl); - // gives handlers an opportunity to participate - if (this.handlers) { - this.handlers.forEach(handler => { - handler.prepareRequest(info.options); - }); - } - return info; - } - _mergeHeaders(headers) { - const lowercaseKeys = obj => Object.keys(obj).reduce((c, k) => ((c[k.toLowerCase()] = obj[k]), c), {}); - if (this.requestOptions && this.requestOptions.headers) { - return Object.assign({}, lowercaseKeys(this.requestOptions.headers), lowercaseKeys(headers)); - } - return lowercaseKeys(headers || {}); - } - _getExistingOrDefaultHeader(additionalHeaders, header, _default) { - const lowercaseKeys = obj => Object.keys(obj).reduce((c, k) => ((c[k.toLowerCase()] = obj[k]), c), {}); - let clientHeader; - if (this.requestOptions && this.requestOptions.headers) { - clientHeader = lowercaseKeys(this.requestOptions.headers)[header]; - } - return additionalHeaders[header] || clientHeader || _default; - } - _getAgent(parsedUrl) { - let agent; - let proxyUrl = pm.getProxyUrl(parsedUrl); - let useProxy = proxyUrl && proxyUrl.hostname; - if (this._keepAlive && useProxy) { - agent = this._proxyAgent; - } - if (this._keepAlive && !useProxy) { - agent = this._agent; - } - // if agent is already assigned use that agent. - if (!!agent) { - return agent; - } - const usingSsl = parsedUrl.protocol === 'https:'; - let maxSockets = 100; - if (!!this.requestOptions) { - maxSockets = this.requestOptions.maxSockets || http.globalAgent.maxSockets; - } - if (useProxy) { - // If using proxy, need tunnel - if (!tunnel) { - tunnel = __nccwpck_require__(74294); - } - const agentOptions = { - maxSockets: maxSockets, - keepAlive: this._keepAlive, - proxy: { - ...((proxyUrl.username || proxyUrl.password) && { - proxyAuth: `${proxyUrl.username}:${proxyUrl.password}` - }), - host: proxyUrl.hostname, - port: proxyUrl.port - } - }; - let tunnelAgent; - const overHttps = proxyUrl.protocol === 'https:'; - if (usingSsl) { - tunnelAgent = overHttps ? tunnel.httpsOverHttps : tunnel.httpsOverHttp; - } - else { - tunnelAgent = overHttps ? tunnel.httpOverHttps : tunnel.httpOverHttp; - } - agent = tunnelAgent(agentOptions); - this._proxyAgent = agent; - } - // if reusing agent across request and tunneling agent isn't assigned create a new agent - if (this._keepAlive && !agent) { - const options = { keepAlive: this._keepAlive, maxSockets: maxSockets }; - agent = usingSsl ? new https.Agent(options) : new http.Agent(options); - this._agent = agent; - } - // if not using private agent and tunnel agent isn't setup then use global agent - if (!agent) { - agent = usingSsl ? https.globalAgent : http.globalAgent; - } - if (usingSsl && this._ignoreSslError) { - // we don't want to set NODE_TLS_REJECT_UNAUTHORIZED=0 since that will affect request for entire process - // http.RequestOptions doesn't expose a way to modify RequestOptions.agent.options - // we have to cast it to any and change it directly - agent.options = Object.assign(agent.options || {}, { - rejectUnauthorized: false - }); - } - return agent; - } - _performExponentialBackoff(retryNumber) { - retryNumber = Math.min(ExponentialBackoffCeiling, retryNumber); - const ms = ExponentialBackoffTimeSlice * Math.pow(2, retryNumber); - return new Promise(resolve => setTimeout(() => resolve(), ms)); - } - static dateTimeDeserializer(key, value) { - if (typeof value === 'string') { - let a = new Date(value); - if (!isNaN(a.valueOf())) { - return a; - } - } - return value; - } - async _processResponse(res, options) { - return new Promise(async (resolve, reject) => { - const statusCode = res.message.statusCode; - const response = { - statusCode: statusCode, - result: null, - headers: {} - }; - // not found leads to null obj returned - if (statusCode == HttpCodes.NotFound) { - resolve(response); - } - let obj; - let contents; - // get the result from the body - try { - contents = await res.readBody(); - if (contents && contents.length > 0) { - if (options && options.deserializeDates) { - obj = JSON.parse(contents, HttpClient.dateTimeDeserializer); - } - else { - obj = JSON.parse(contents); - } - response.result = obj; - } - response.headers = res.message.headers; - } - catch (err) { - // Invalid resource (contents not json); leaving result obj null - } - // note that 3xx redirects are handled by the http layer. - if (statusCode > 299) { - let msg; - // if exception/error in body, attempt to get better error - if (obj && obj.message) { - msg = obj.message; - } - else if (contents && contents.length > 0) { - // it may be the case that the exception is in the body message as string - msg = contents; - } - else { - msg = 'Failed request: (' + statusCode + ')'; - } - let err = new HttpClientError(msg, statusCode); - err.result = response.result; - reject(err); - } - else { - resolve(response); - } - }); - } -} -exports.HttpClient = HttpClient; - - -/***/ }), - -/***/ 16443: -/***/ ((__unused_webpack_module, exports) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -function getProxyUrl(reqUrl) { - let usingSsl = reqUrl.protocol === 'https:'; - let proxyUrl; - if (checkBypass(reqUrl)) { - return proxyUrl; - } - let proxyVar; - if (usingSsl) { - proxyVar = process.env['https_proxy'] || process.env['HTTPS_PROXY']; - } - else { - proxyVar = process.env['http_proxy'] || process.env['HTTP_PROXY']; - } - if (proxyVar) { - proxyUrl = new URL(proxyVar); - } - return proxyUrl; -} -exports.getProxyUrl = getProxyUrl; -function checkBypass(reqUrl) { - if (!reqUrl.hostname) { - return false; - } - let noProxy = process.env['no_proxy'] || process.env['NO_PROXY'] || ''; - if (!noProxy) { - return false; - } - // Determine the request port - let reqPort; - if (reqUrl.port) { - reqPort = Number(reqUrl.port); - } - else if (reqUrl.protocol === 'http:') { - reqPort = 80; - } - else if (reqUrl.protocol === 'https:') { - reqPort = 443; - } - // Format the request hostname and hostname with port - let upperReqHosts = [reqUrl.hostname.toUpperCase()]; - if (typeof reqPort === 'number') { - upperReqHosts.push(`${upperReqHosts[0]}:${reqPort}`); - } - // Compare request host against noproxy - for (let upperNoProxyItem of noProxy - .split(',') - .map(x => x.trim().toUpperCase()) - .filter(x => x)) { - if (upperReqHosts.some(x => x === upperNoProxyItem)) { - return true; - } - } - return false; -} -exports.checkBypass = checkBypass; - - -/***/ }), - -/***/ 81962: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { - function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } - return new (P || (P = Promise))(function (resolve, reject) { - function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } - function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } - function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } - step((generator = generator.apply(thisArg, _arguments || [])).next()); - }); -}; -var _a; -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.getCmdPath = exports.tryGetExecutablePath = exports.isRooted = exports.isDirectory = exports.exists = exports.IS_WINDOWS = exports.unlink = exports.symlink = exports.stat = exports.rmdir = exports.rename = exports.readlink = exports.readdir = exports.mkdir = exports.lstat = exports.copyFile = exports.chmod = void 0; -const fs = __importStar(__nccwpck_require__(35747)); -const path = __importStar(__nccwpck_require__(85622)); -_a = fs.promises, exports.chmod = _a.chmod, exports.copyFile = _a.copyFile, exports.lstat = _a.lstat, exports.mkdir = _a.mkdir, exports.readdir = _a.readdir, exports.readlink = _a.readlink, exports.rename = _a.rename, exports.rmdir = _a.rmdir, exports.stat = _a.stat, exports.symlink = _a.symlink, exports.unlink = _a.unlink; -exports.IS_WINDOWS = process.platform === 'win32'; -function exists(fsPath) { - return __awaiter(this, void 0, void 0, function* () { - try { - yield exports.stat(fsPath); - } - catch (err) { - if (err.code === 'ENOENT') { - return false; - } - throw err; - } - return true; - }); -} -exports.exists = exists; -function isDirectory(fsPath, useStat = false) { - return __awaiter(this, void 0, void 0, function* () { - const stats = useStat ? yield exports.stat(fsPath) : yield exports.lstat(fsPath); - return stats.isDirectory(); - }); -} -exports.isDirectory = isDirectory; -/** - * On OSX/Linux, true if path starts with '/'. On Windows, true for paths like: - * \, \hello, \\hello\share, C:, and C:\hello (and corresponding alternate separator cases). - */ -function isRooted(p) { - p = normalizeSeparators(p); - if (!p) { - throw new Error('isRooted() parameter "p" cannot be empty'); - } - if (exports.IS_WINDOWS) { - return (p.startsWith('\\') || /^[A-Z]:/i.test(p) // e.g. \ or \hello or \\hello - ); // e.g. C: or C:\hello - } - return p.startsWith('/'); -} -exports.isRooted = isRooted; -/** - * Best effort attempt to determine whether a file exists and is executable. - * @param filePath file path to check - * @param extensions additional file extensions to try - * @return if file exists and is executable, returns the file path. otherwise empty string. - */ -function tryGetExecutablePath(filePath, extensions) { - return __awaiter(this, void 0, void 0, function* () { - let stats = undefined; - try { - // test file exists - stats = yield exports.stat(filePath); - } - catch (err) { - if (err.code !== 'ENOENT') { - // eslint-disable-next-line no-console - console.log(`Unexpected error attempting to determine if executable file exists '${filePath}': ${err}`); - } - } - if (stats && stats.isFile()) { - if (exports.IS_WINDOWS) { - // on Windows, test for valid extension - const upperExt = path.extname(filePath).toUpperCase(); - if (extensions.some(validExt => validExt.toUpperCase() === upperExt)) { - return filePath; - } - } - else { - if (isUnixExecutable(stats)) { - return filePath; - } - } - } - // try each extension - const originalFilePath = filePath; - for (const extension of extensions) { - filePath = originalFilePath + extension; - stats = undefined; - try { - stats = yield exports.stat(filePath); - } - catch (err) { - if (err.code !== 'ENOENT') { - // eslint-disable-next-line no-console - console.log(`Unexpected error attempting to determine if executable file exists '${filePath}': ${err}`); - } - } - if (stats && stats.isFile()) { - if (exports.IS_WINDOWS) { - // preserve the case of the actual file (since an extension was appended) - try { - const directory = path.dirname(filePath); - const upperName = path.basename(filePath).toUpperCase(); - for (const actualName of yield exports.readdir(directory)) { - if (upperName === actualName.toUpperCase()) { - filePath = path.join(directory, actualName); - break; - } - } - } - catch (err) { - // eslint-disable-next-line no-console - console.log(`Unexpected error attempting to determine the actual case of the file '${filePath}': ${err}`); - } - return filePath; - } - else { - if (isUnixExecutable(stats)) { - return filePath; - } - } - } - } - return ''; - }); -} -exports.tryGetExecutablePath = tryGetExecutablePath; -function normalizeSeparators(p) { - p = p || ''; - if (exports.IS_WINDOWS) { - // convert slashes on Windows - p = p.replace(/\//g, '\\'); - // remove redundant slashes - return p.replace(/\\\\+/g, '\\'); - } - // remove redundant slashes - return p.replace(/\/\/+/g, '/'); -} -// on Mac/Linux, test the execute bit -// R W X R W X R W X -// 256 128 64 32 16 8 4 2 1 -function isUnixExecutable(stats) { - return ((stats.mode & 1) > 0 || - ((stats.mode & 8) > 0 && stats.gid === process.getgid()) || - ((stats.mode & 64) > 0 && stats.uid === process.getuid())); -} -// Get the path of cmd.exe in windows -function getCmdPath() { - var _a; - return (_a = process.env['COMSPEC']) !== null && _a !== void 0 ? _a : `cmd.exe`; -} -exports.getCmdPath = getCmdPath; -//# sourceMappingURL=io-util.js.map - -/***/ }), - -/***/ 47351: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { - function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } - return new (P || (P = Promise))(function (resolve, reject) { - function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } - function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } - function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } - step((generator = generator.apply(thisArg, _arguments || [])).next()); - }); -}; -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.findInPath = exports.which = exports.mkdirP = exports.rmRF = exports.mv = exports.cp = void 0; -const assert_1 = __nccwpck_require__(42357); -const childProcess = __importStar(__nccwpck_require__(63129)); -const path = __importStar(__nccwpck_require__(85622)); -const util_1 = __nccwpck_require__(31669); -const ioUtil = __importStar(__nccwpck_require__(81962)); -const exec = util_1.promisify(childProcess.exec); -const execFile = util_1.promisify(childProcess.execFile); -/** - * Copies a file or folder. - * Based off of shelljs - https://github.com/shelljs/shelljs/blob/9237f66c52e5daa40458f94f9565e18e8132f5a6/src/cp.js - * - * @param source source path - * @param dest destination path - * @param options optional. See CopyOptions. - */ -function cp(source, dest, options = {}) { - return __awaiter(this, void 0, void 0, function* () { - const { force, recursive, copySourceDirectory } = readCopyOptions(options); - const destStat = (yield ioUtil.exists(dest)) ? yield ioUtil.stat(dest) : null; - // Dest is an existing file, but not forcing - if (destStat && destStat.isFile() && !force) { - return; - } - // If dest is an existing directory, should copy inside. - const newDest = destStat && destStat.isDirectory() && copySourceDirectory - ? path.join(dest, path.basename(source)) - : dest; - if (!(yield ioUtil.exists(source))) { - throw new Error(`no such file or directory: ${source}`); - } - const sourceStat = yield ioUtil.stat(source); - if (sourceStat.isDirectory()) { - if (!recursive) { - throw new Error(`Failed to copy. ${source} is a directory, but tried to copy without recursive flag.`); - } - else { - yield cpDirRecursive(source, newDest, 0, force); - } - } - else { - if (path.relative(source, newDest) === '') { - // a file cannot be copied to itself - throw new Error(`'${newDest}' and '${source}' are the same file`); - } - yield copyFile(source, newDest, force); - } - }); -} -exports.cp = cp; -/** - * Moves a path. - * - * @param source source path - * @param dest destination path - * @param options optional. See MoveOptions. - */ -function mv(source, dest, options = {}) { - return __awaiter(this, void 0, void 0, function* () { - if (yield ioUtil.exists(dest)) { - let destExists = true; - if (yield ioUtil.isDirectory(dest)) { - // If dest is directory copy src into dest - dest = path.join(dest, path.basename(source)); - destExists = yield ioUtil.exists(dest); - } - if (destExists) { - if (options.force == null || options.force) { - yield rmRF(dest); - } - else { - throw new Error('Destination already exists'); - } - } - } - yield mkdirP(path.dirname(dest)); - yield ioUtil.rename(source, dest); - }); -} -exports.mv = mv; -/** - * Remove a path recursively with force - * - * @param inputPath path to remove - */ -function rmRF(inputPath) { - return __awaiter(this, void 0, void 0, function* () { - if (ioUtil.IS_WINDOWS) { - // Node doesn't provide a delete operation, only an unlink function. This means that if the file is being used by another - // program (e.g. antivirus), it won't be deleted. To address this, we shell out the work to rd/del. - // Check for invalid characters - // https://docs.microsoft.com/en-us/windows/win32/fileio/naming-a-file - if (/[*"<>|]/.test(inputPath)) { - throw new Error('File path must not contain `*`, `"`, `<`, `>` or `|` on Windows'); - } - try { - const cmdPath = ioUtil.getCmdPath(); - if (yield ioUtil.isDirectory(inputPath, true)) { - yield exec(`${cmdPath} /s /c "rd /s /q "%inputPath%""`, { - env: { inputPath } - }); - } - else { - yield exec(`${cmdPath} /s /c "del /f /a "%inputPath%""`, { - env: { inputPath } - }); - } - } - catch (err) { - // if you try to delete a file that doesn't exist, desired result is achieved - // other errors are valid - if (err.code !== 'ENOENT') - throw err; - } - // Shelling out fails to remove a symlink folder with missing source, this unlink catches that - try { - yield ioUtil.unlink(inputPath); - } - catch (err) { - // if you try to delete a file that doesn't exist, desired result is achieved - // other errors are valid - if (err.code !== 'ENOENT') - throw err; - } - } - else { - let isDir = false; - try { - isDir = yield ioUtil.isDirectory(inputPath); - } - catch (err) { - // if you try to delete a file that doesn't exist, desired result is achieved - // other errors are valid - if (err.code !== 'ENOENT') - throw err; - return; - } - if (isDir) { - yield execFile(`rm`, [`-rf`, `${inputPath}`]); - } - else { - yield ioUtil.unlink(inputPath); - } - } - }); -} -exports.rmRF = rmRF; -/** - * Make a directory. Creates the full path with folders in between - * Will throw if it fails - * - * @param fsPath path to create - * @returns Promise - */ -function mkdirP(fsPath) { - return __awaiter(this, void 0, void 0, function* () { - assert_1.ok(fsPath, 'a path argument must be provided'); - yield ioUtil.mkdir(fsPath, { recursive: true }); - }); -} -exports.mkdirP = mkdirP; -/** - * Returns path of a tool had the tool actually been invoked. Resolves via paths. - * If you check and the tool does not exist, it will throw. - * - * @param tool name of the tool - * @param check whether to check if tool exists - * @returns Promise path to tool - */ -function which(tool, check) { - return __awaiter(this, void 0, void 0, function* () { - if (!tool) { - throw new Error("parameter 'tool' is required"); - } - // recursive when check=true - if (check) { - const result = yield which(tool, false); - if (!result) { - if (ioUtil.IS_WINDOWS) { - throw new Error(`Unable to locate executable file: ${tool}. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also verify the file has a valid extension for an executable file.`); - } - else { - throw new Error(`Unable to locate executable file: ${tool}. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also check the file mode to verify the file is executable.`); - } - } - return result; - } - const matches = yield findInPath(tool); - if (matches && matches.length > 0) { - return matches[0]; - } - return ''; - }); -} -exports.which = which; -/** - * Returns a list of all occurrences of the given tool on the system path. - * - * @returns Promise the paths of the tool - */ -function findInPath(tool) { - return __awaiter(this, void 0, void 0, function* () { - if (!tool) { - throw new Error("parameter 'tool' is required"); - } - // build the list of extensions to try - const extensions = []; - if (ioUtil.IS_WINDOWS && process.env['PATHEXT']) { - for (const extension of process.env['PATHEXT'].split(path.delimiter)) { - if (extension) { - extensions.push(extension); - } - } - } - // if it's rooted, return it if exists. otherwise return empty. - if (ioUtil.isRooted(tool)) { - const filePath = yield ioUtil.tryGetExecutablePath(tool, extensions); - if (filePath) { - return [filePath]; - } - return []; - } - // if any path separators, return empty - if (tool.includes(path.sep)) { - return []; - } - // build the list of directories - // - // Note, technically "where" checks the current directory on Windows. From a toolkit perspective, - // it feels like we should not do this. Checking the current directory seems like more of a use - // case of a shell, and the which() function exposed by the toolkit should strive for consistency - // across platforms. - const directories = []; - if (process.env.PATH) { - for (const p of process.env.PATH.split(path.delimiter)) { - if (p) { - directories.push(p); - } - } - } - // find all matches - const matches = []; - for (const directory of directories) { - const filePath = yield ioUtil.tryGetExecutablePath(path.join(directory, tool), extensions); - if (filePath) { - matches.push(filePath); - } - } - return matches; - }); -} -exports.findInPath = findInPath; -function readCopyOptions(options) { - const force = options.force == null ? true : options.force; - const recursive = Boolean(options.recursive); - const copySourceDirectory = options.copySourceDirectory == null - ? true - : Boolean(options.copySourceDirectory); - return { force, recursive, copySourceDirectory }; -} -function cpDirRecursive(sourceDir, destDir, currentDepth, force) { - return __awaiter(this, void 0, void 0, function* () { - // Ensure there is not a run away recursive copy - if (currentDepth >= 255) - return; - currentDepth++; - yield mkdirP(destDir); - const files = yield ioUtil.readdir(sourceDir); - for (const fileName of files) { - const srcFile = `${sourceDir}/${fileName}`; - const destFile = `${destDir}/${fileName}`; - const srcFileStat = yield ioUtil.lstat(srcFile); - if (srcFileStat.isDirectory()) { - // Recurse - yield cpDirRecursive(srcFile, destFile, currentDepth, force); - } - else { - yield copyFile(srcFile, destFile, force); - } - } - // Change the mode for the newly created directory - yield ioUtil.chmod(destDir, (yield ioUtil.stat(sourceDir)).mode); - }); -} -// Buffered file copy -function copyFile(srcFile, destFile, force) { - return __awaiter(this, void 0, void 0, function* () { - if ((yield ioUtil.lstat(srcFile)).isSymbolicLink()) { - // unlink/re-link it - try { - yield ioUtil.lstat(destFile); - yield ioUtil.unlink(destFile); - } - catch (e) { - // Try to override file permission - if (e.code === 'EPERM') { - yield ioUtil.chmod(destFile, '0666'); - yield ioUtil.unlink(destFile); - } - // other errors = it doesn't exist, no work to do - } - // Copy over symlink - const symlinkFull = yield ioUtil.readlink(srcFile); - yield ioUtil.symlink(symlinkFull, destFile, ioUtil.IS_WINDOWS ? 'junction' : null); - } - else if (!(yield ioUtil.exists(destFile)) || force) { - yield ioUtil.copyFile(srcFile, destFile); - } - }); -} -//# sourceMappingURL=io.js.map - -/***/ }), - -/***/ 86087: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.ECRPUBLIC = void 0; -const BatchCheckLayerAvailabilityCommand_1 = __nccwpck_require__(25356); -const BatchDeleteImageCommand_1 = __nccwpck_require__(56517); -const CompleteLayerUploadCommand_1 = __nccwpck_require__(55490); -const CreateRepositoryCommand_1 = __nccwpck_require__(39633); -const DeleteRepositoryCommand_1 = __nccwpck_require__(60467); -const DeleteRepositoryPolicyCommand_1 = __nccwpck_require__(62528); -const DescribeImagesCommand_1 = __nccwpck_require__(22776); -const DescribeImageTagsCommand_1 = __nccwpck_require__(47670); -const DescribeRegistriesCommand_1 = __nccwpck_require__(78696); -const DescribeRepositoriesCommand_1 = __nccwpck_require__(82218); -const GetAuthorizationTokenCommand_1 = __nccwpck_require__(92674); -const GetRegistryCatalogDataCommand_1 = __nccwpck_require__(26518); -const GetRepositoryCatalogDataCommand_1 = __nccwpck_require__(53189); -const GetRepositoryPolicyCommand_1 = __nccwpck_require__(8562); -const InitiateLayerUploadCommand_1 = __nccwpck_require__(83675); -const ListTagsForResourceCommand_1 = __nccwpck_require__(80575); -const PutImageCommand_1 = __nccwpck_require__(86486); -const PutRegistryCatalogDataCommand_1 = __nccwpck_require__(46805); -const PutRepositoryCatalogDataCommand_1 = __nccwpck_require__(83753); -const SetRepositoryPolicyCommand_1 = __nccwpck_require__(79838); -const TagResourceCommand_1 = __nccwpck_require__(39869); -const UntagResourceCommand_1 = __nccwpck_require__(66689); -const UploadLayerPartCommand_1 = __nccwpck_require__(97429); -const ECRPUBLICClient_1 = __nccwpck_require__(30608); -class ECRPUBLIC extends ECRPUBLICClient_1.ECRPUBLICClient { - batchCheckLayerAvailability(args, optionsOrCb, cb) { - const command = new BatchCheckLayerAvailabilityCommand_1.BatchCheckLayerAvailabilityCommand(args); - if (typeof optionsOrCb === "function") { - this.send(command, optionsOrCb); - } - else if (typeof cb === "function") { - if (typeof optionsOrCb !== "object") - throw new Error(`Expect http options but get ${typeof optionsOrCb}`); - this.send(command, optionsOrCb || {}, cb); - } - else { - return this.send(command, optionsOrCb); - } - } - batchDeleteImage(args, optionsOrCb, cb) { - const command = new BatchDeleteImageCommand_1.BatchDeleteImageCommand(args); - if (typeof optionsOrCb === "function") { - this.send(command, optionsOrCb); - } - else if (typeof cb === "function") { - if (typeof optionsOrCb !== "object") - throw new Error(`Expect http options but get ${typeof optionsOrCb}`); - this.send(command, optionsOrCb || {}, cb); - } - else { - return this.send(command, optionsOrCb); - } - } - completeLayerUpload(args, optionsOrCb, cb) { - const command = new CompleteLayerUploadCommand_1.CompleteLayerUploadCommand(args); - if (typeof optionsOrCb === "function") { - this.send(command, optionsOrCb); - } - else if (typeof cb === "function") { - if (typeof optionsOrCb !== "object") - throw new Error(`Expect http options but get ${typeof optionsOrCb}`); - this.send(command, optionsOrCb || {}, cb); - } - else { - return this.send(command, optionsOrCb); - } - } - createRepository(args, optionsOrCb, cb) { - const command = new CreateRepositoryCommand_1.CreateRepositoryCommand(args); - if (typeof optionsOrCb === "function") { - this.send(command, optionsOrCb); - } - else if (typeof cb === "function") { - if (typeof optionsOrCb !== "object") - throw new Error(`Expect http options but get ${typeof optionsOrCb}`); - this.send(command, optionsOrCb || {}, cb); - } - else { - return this.send(command, optionsOrCb); - } - } - deleteRepository(args, optionsOrCb, cb) { - const command = new DeleteRepositoryCommand_1.DeleteRepositoryCommand(args); - if (typeof optionsOrCb === "function") { - this.send(command, optionsOrCb); - } - else if (typeof cb === "function") { - if (typeof optionsOrCb !== "object") - throw new Error(`Expect http options but get ${typeof optionsOrCb}`); - this.send(command, optionsOrCb || {}, cb); - } - else { - return this.send(command, optionsOrCb); - } - } - deleteRepositoryPolicy(args, optionsOrCb, cb) { - const command = new DeleteRepositoryPolicyCommand_1.DeleteRepositoryPolicyCommand(args); - if (typeof optionsOrCb === "function") { - this.send(command, optionsOrCb); - } - else if (typeof cb === "function") { - if (typeof optionsOrCb !== "object") - throw new Error(`Expect http options but get ${typeof optionsOrCb}`); - this.send(command, optionsOrCb || {}, cb); - } - else { - return this.send(command, optionsOrCb); - } - } - describeImages(args, optionsOrCb, cb) { - const command = new DescribeImagesCommand_1.DescribeImagesCommand(args); - if (typeof optionsOrCb === "function") { - this.send(command, optionsOrCb); - } - else if (typeof cb === "function") { - if (typeof optionsOrCb !== "object") - throw new Error(`Expect http options but get ${typeof optionsOrCb}`); - this.send(command, optionsOrCb || {}, cb); - } - else { - return this.send(command, optionsOrCb); - } - } - describeImageTags(args, optionsOrCb, cb) { - const command = new DescribeImageTagsCommand_1.DescribeImageTagsCommand(args); - if (typeof optionsOrCb === "function") { - this.send(command, optionsOrCb); - } - else if (typeof cb === "function") { - if (typeof optionsOrCb !== "object") - throw new Error(`Expect http options but get ${typeof optionsOrCb}`); - this.send(command, optionsOrCb || {}, cb); - } - else { - return this.send(command, optionsOrCb); - } - } - describeRegistries(args, optionsOrCb, cb) { - const command = new DescribeRegistriesCommand_1.DescribeRegistriesCommand(args); - if (typeof optionsOrCb === "function") { - this.send(command, optionsOrCb); - } - else if (typeof cb === "function") { - if (typeof optionsOrCb !== "object") - throw new Error(`Expect http options but get ${typeof optionsOrCb}`); - this.send(command, optionsOrCb || {}, cb); - } - else { - return this.send(command, optionsOrCb); - } - } - describeRepositories(args, optionsOrCb, cb) { - const command = new DescribeRepositoriesCommand_1.DescribeRepositoriesCommand(args); - if (typeof optionsOrCb === "function") { - this.send(command, optionsOrCb); - } - else if (typeof cb === "function") { - if (typeof optionsOrCb !== "object") - throw new Error(`Expect http options but get ${typeof optionsOrCb}`); - this.send(command, optionsOrCb || {}, cb); - } - else { - return this.send(command, optionsOrCb); - } - } - getAuthorizationToken(args, optionsOrCb, cb) { - const command = new GetAuthorizationTokenCommand_1.GetAuthorizationTokenCommand(args); - if (typeof optionsOrCb === "function") { - this.send(command, optionsOrCb); - } - else if (typeof cb === "function") { - if (typeof optionsOrCb !== "object") - throw new Error(`Expect http options but get ${typeof optionsOrCb}`); - this.send(command, optionsOrCb || {}, cb); - } - else { - return this.send(command, optionsOrCb); - } - } - getRegistryCatalogData(args, optionsOrCb, cb) { - const command = new GetRegistryCatalogDataCommand_1.GetRegistryCatalogDataCommand(args); - if (typeof optionsOrCb === "function") { - this.send(command, optionsOrCb); - } - else if (typeof cb === "function") { - if (typeof optionsOrCb !== "object") - throw new Error(`Expect http options but get ${typeof optionsOrCb}`); - this.send(command, optionsOrCb || {}, cb); - } - else { - return this.send(command, optionsOrCb); - } - } - getRepositoryCatalogData(args, optionsOrCb, cb) { - const command = new GetRepositoryCatalogDataCommand_1.GetRepositoryCatalogDataCommand(args); - if (typeof optionsOrCb === "function") { - this.send(command, optionsOrCb); - } - else if (typeof cb === "function") { - if (typeof optionsOrCb !== "object") - throw new Error(`Expect http options but get ${typeof optionsOrCb}`); - this.send(command, optionsOrCb || {}, cb); - } - else { - return this.send(command, optionsOrCb); - } - } - getRepositoryPolicy(args, optionsOrCb, cb) { - const command = new GetRepositoryPolicyCommand_1.GetRepositoryPolicyCommand(args); - if (typeof optionsOrCb === "function") { - this.send(command, optionsOrCb); - } - else if (typeof cb === "function") { - if (typeof optionsOrCb !== "object") - throw new Error(`Expect http options but get ${typeof optionsOrCb}`); - this.send(command, optionsOrCb || {}, cb); - } - else { - return this.send(command, optionsOrCb); - } - } - initiateLayerUpload(args, optionsOrCb, cb) { - const command = new InitiateLayerUploadCommand_1.InitiateLayerUploadCommand(args); - if (typeof optionsOrCb === "function") { - this.send(command, optionsOrCb); - } - else if (typeof cb === "function") { - if (typeof optionsOrCb !== "object") - throw new Error(`Expect http options but get ${typeof optionsOrCb}`); - this.send(command, optionsOrCb || {}, cb); - } - else { - return this.send(command, optionsOrCb); - } - } - listTagsForResource(args, optionsOrCb, cb) { - const command = new ListTagsForResourceCommand_1.ListTagsForResourceCommand(args); - if (typeof optionsOrCb === "function") { - this.send(command, optionsOrCb); - } - else if (typeof cb === "function") { - if (typeof optionsOrCb !== "object") - throw new Error(`Expect http options but get ${typeof optionsOrCb}`); - this.send(command, optionsOrCb || {}, cb); - } - else { - return this.send(command, optionsOrCb); - } - } - putImage(args, optionsOrCb, cb) { - const command = new PutImageCommand_1.PutImageCommand(args); - if (typeof optionsOrCb === "function") { - this.send(command, optionsOrCb); - } - else if (typeof cb === "function") { - if (typeof optionsOrCb !== "object") - throw new Error(`Expect http options but get ${typeof optionsOrCb}`); - this.send(command, optionsOrCb || {}, cb); - } - else { - return this.send(command, optionsOrCb); - } - } - putRegistryCatalogData(args, optionsOrCb, cb) { - const command = new PutRegistryCatalogDataCommand_1.PutRegistryCatalogDataCommand(args); - if (typeof optionsOrCb === "function") { - this.send(command, optionsOrCb); - } - else if (typeof cb === "function") { - if (typeof optionsOrCb !== "object") - throw new Error(`Expect http options but get ${typeof optionsOrCb}`); - this.send(command, optionsOrCb || {}, cb); - } - else { - return this.send(command, optionsOrCb); - } - } - putRepositoryCatalogData(args, optionsOrCb, cb) { - const command = new PutRepositoryCatalogDataCommand_1.PutRepositoryCatalogDataCommand(args); - if (typeof optionsOrCb === "function") { - this.send(command, optionsOrCb); - } - else if (typeof cb === "function") { - if (typeof optionsOrCb !== "object") - throw new Error(`Expect http options but get ${typeof optionsOrCb}`); - this.send(command, optionsOrCb || {}, cb); - } - else { - return this.send(command, optionsOrCb); - } - } - setRepositoryPolicy(args, optionsOrCb, cb) { - const command = new SetRepositoryPolicyCommand_1.SetRepositoryPolicyCommand(args); - if (typeof optionsOrCb === "function") { - this.send(command, optionsOrCb); - } - else if (typeof cb === "function") { - if (typeof optionsOrCb !== "object") - throw new Error(`Expect http options but get ${typeof optionsOrCb}`); - this.send(command, optionsOrCb || {}, cb); - } - else { - return this.send(command, optionsOrCb); - } - } - tagResource(args, optionsOrCb, cb) { - const command = new TagResourceCommand_1.TagResourceCommand(args); - if (typeof optionsOrCb === "function") { - this.send(command, optionsOrCb); - } - else if (typeof cb === "function") { - if (typeof optionsOrCb !== "object") - throw new Error(`Expect http options but get ${typeof optionsOrCb}`); - this.send(command, optionsOrCb || {}, cb); - } - else { - return this.send(command, optionsOrCb); - } - } - untagResource(args, optionsOrCb, cb) { - const command = new UntagResourceCommand_1.UntagResourceCommand(args); - if (typeof optionsOrCb === "function") { - this.send(command, optionsOrCb); - } - else if (typeof cb === "function") { - if (typeof optionsOrCb !== "object") - throw new Error(`Expect http options but get ${typeof optionsOrCb}`); - this.send(command, optionsOrCb || {}, cb); - } - else { - return this.send(command, optionsOrCb); - } - } - uploadLayerPart(args, optionsOrCb, cb) { - const command = new UploadLayerPartCommand_1.UploadLayerPartCommand(args); - if (typeof optionsOrCb === "function") { - this.send(command, optionsOrCb); - } - else if (typeof cb === "function") { - if (typeof optionsOrCb !== "object") - throw new Error(`Expect http options but get ${typeof optionsOrCb}`); - this.send(command, optionsOrCb || {}, cb); - } - else { - return this.send(command, optionsOrCb); - } - } -} -exports.ECRPUBLIC = ECRPUBLIC; - - -/***/ }), - -/***/ 30608: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.ECRPUBLICClient = void 0; -const config_resolver_1 = __nccwpck_require__(56153); -const middleware_content_length_1 = __nccwpck_require__(42245); -const middleware_host_header_1 = __nccwpck_require__(22545); -const middleware_logger_1 = __nccwpck_require__(20014); -const middleware_retry_1 = __nccwpck_require__(96064); -const middleware_signing_1 = __nccwpck_require__(14935); -const middleware_user_agent_1 = __nccwpck_require__(64688); -const smithy_client_1 = __nccwpck_require__(4963); -const runtimeConfig_1 = __nccwpck_require__(49324); -class ECRPUBLICClient extends smithy_client_1.Client { - constructor(configuration) { - const _config_0 = runtimeConfig_1.getRuntimeConfig(configuration); - const _config_1 = config_resolver_1.resolveRegionConfig(_config_0); - const _config_2 = config_resolver_1.resolveEndpointsConfig(_config_1); - const _config_3 = middleware_retry_1.resolveRetryConfig(_config_2); - const _config_4 = middleware_host_header_1.resolveHostHeaderConfig(_config_3); - const _config_5 = middleware_signing_1.resolveAwsAuthConfig(_config_4); - const _config_6 = middleware_user_agent_1.resolveUserAgentConfig(_config_5); - super(_config_6); - this.config = _config_6; - this.middlewareStack.use(middleware_retry_1.getRetryPlugin(this.config)); - this.middlewareStack.use(middleware_content_length_1.getContentLengthPlugin(this.config)); - this.middlewareStack.use(middleware_host_header_1.getHostHeaderPlugin(this.config)); - this.middlewareStack.use(middleware_logger_1.getLoggerPlugin(this.config)); - this.middlewareStack.use(middleware_signing_1.getAwsAuthPlugin(this.config)); - this.middlewareStack.use(middleware_user_agent_1.getUserAgentPlugin(this.config)); - } - destroy() { - super.destroy(); - } -} -exports.ECRPUBLICClient = ECRPUBLICClient; - - -/***/ }), - -/***/ 25356: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.BatchCheckLayerAvailabilityCommand = void 0; -const middleware_serde_1 = __nccwpck_require__(93631); -const smithy_client_1 = __nccwpck_require__(4963); -const models_0_1 = __nccwpck_require__(38818); -const Aws_json1_1_1 = __nccwpck_require__(64170); -class BatchCheckLayerAvailabilityCommand extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "ECRPUBLICClient"; - const commandName = "BatchCheckLayerAvailabilityCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_0_1.BatchCheckLayerAvailabilityRequest.filterSensitiveLog, - outputFilterSensitiveLog: models_0_1.BatchCheckLayerAvailabilityResponse.filterSensitiveLog, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return Aws_json1_1_1.serializeAws_json1_1BatchCheckLayerAvailabilityCommand(input, context); - } - deserialize(output, context) { - return Aws_json1_1_1.deserializeAws_json1_1BatchCheckLayerAvailabilityCommand(output, context); - } -} -exports.BatchCheckLayerAvailabilityCommand = BatchCheckLayerAvailabilityCommand; - - -/***/ }), - -/***/ 56517: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.BatchDeleteImageCommand = void 0; -const middleware_serde_1 = __nccwpck_require__(93631); -const smithy_client_1 = __nccwpck_require__(4963); -const models_0_1 = __nccwpck_require__(38818); -const Aws_json1_1_1 = __nccwpck_require__(64170); -class BatchDeleteImageCommand extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "ECRPUBLICClient"; - const commandName = "BatchDeleteImageCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_0_1.BatchDeleteImageRequest.filterSensitiveLog, - outputFilterSensitiveLog: models_0_1.BatchDeleteImageResponse.filterSensitiveLog, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return Aws_json1_1_1.serializeAws_json1_1BatchDeleteImageCommand(input, context); - } - deserialize(output, context) { - return Aws_json1_1_1.deserializeAws_json1_1BatchDeleteImageCommand(output, context); - } -} -exports.BatchDeleteImageCommand = BatchDeleteImageCommand; - - -/***/ }), - -/***/ 55490: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.CompleteLayerUploadCommand = void 0; -const middleware_serde_1 = __nccwpck_require__(93631); -const smithy_client_1 = __nccwpck_require__(4963); -const models_0_1 = __nccwpck_require__(38818); -const Aws_json1_1_1 = __nccwpck_require__(64170); -class CompleteLayerUploadCommand extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "ECRPUBLICClient"; - const commandName = "CompleteLayerUploadCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_0_1.CompleteLayerUploadRequest.filterSensitiveLog, - outputFilterSensitiveLog: models_0_1.CompleteLayerUploadResponse.filterSensitiveLog, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return Aws_json1_1_1.serializeAws_json1_1CompleteLayerUploadCommand(input, context); - } - deserialize(output, context) { - return Aws_json1_1_1.deserializeAws_json1_1CompleteLayerUploadCommand(output, context); - } -} -exports.CompleteLayerUploadCommand = CompleteLayerUploadCommand; - - -/***/ }), - -/***/ 39633: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.CreateRepositoryCommand = void 0; -const middleware_serde_1 = __nccwpck_require__(93631); -const smithy_client_1 = __nccwpck_require__(4963); -const models_0_1 = __nccwpck_require__(38818); -const Aws_json1_1_1 = __nccwpck_require__(64170); -class CreateRepositoryCommand extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "ECRPUBLICClient"; - const commandName = "CreateRepositoryCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_0_1.CreateRepositoryRequest.filterSensitiveLog, - outputFilterSensitiveLog: models_0_1.CreateRepositoryResponse.filterSensitiveLog, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return Aws_json1_1_1.serializeAws_json1_1CreateRepositoryCommand(input, context); - } - deserialize(output, context) { - return Aws_json1_1_1.deserializeAws_json1_1CreateRepositoryCommand(output, context); - } -} -exports.CreateRepositoryCommand = CreateRepositoryCommand; - - -/***/ }), - -/***/ 60467: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.DeleteRepositoryCommand = void 0; -const middleware_serde_1 = __nccwpck_require__(93631); -const smithy_client_1 = __nccwpck_require__(4963); -const models_0_1 = __nccwpck_require__(38818); -const Aws_json1_1_1 = __nccwpck_require__(64170); -class DeleteRepositoryCommand extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "ECRPUBLICClient"; - const commandName = "DeleteRepositoryCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_0_1.DeleteRepositoryRequest.filterSensitiveLog, - outputFilterSensitiveLog: models_0_1.DeleteRepositoryResponse.filterSensitiveLog, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return Aws_json1_1_1.serializeAws_json1_1DeleteRepositoryCommand(input, context); - } - deserialize(output, context) { - return Aws_json1_1_1.deserializeAws_json1_1DeleteRepositoryCommand(output, context); - } -} -exports.DeleteRepositoryCommand = DeleteRepositoryCommand; - - -/***/ }), - -/***/ 62528: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.DeleteRepositoryPolicyCommand = void 0; -const middleware_serde_1 = __nccwpck_require__(93631); -const smithy_client_1 = __nccwpck_require__(4963); -const models_0_1 = __nccwpck_require__(38818); -const Aws_json1_1_1 = __nccwpck_require__(64170); -class DeleteRepositoryPolicyCommand extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "ECRPUBLICClient"; - const commandName = "DeleteRepositoryPolicyCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_0_1.DeleteRepositoryPolicyRequest.filterSensitiveLog, - outputFilterSensitiveLog: models_0_1.DeleteRepositoryPolicyResponse.filterSensitiveLog, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return Aws_json1_1_1.serializeAws_json1_1DeleteRepositoryPolicyCommand(input, context); - } - deserialize(output, context) { - return Aws_json1_1_1.deserializeAws_json1_1DeleteRepositoryPolicyCommand(output, context); - } -} -exports.DeleteRepositoryPolicyCommand = DeleteRepositoryPolicyCommand; - - -/***/ }), - -/***/ 47670: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.DescribeImageTagsCommand = void 0; -const middleware_serde_1 = __nccwpck_require__(93631); -const smithy_client_1 = __nccwpck_require__(4963); -const models_0_1 = __nccwpck_require__(38818); -const Aws_json1_1_1 = __nccwpck_require__(64170); -class DescribeImageTagsCommand extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "ECRPUBLICClient"; - const commandName = "DescribeImageTagsCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_0_1.DescribeImageTagsRequest.filterSensitiveLog, - outputFilterSensitiveLog: models_0_1.DescribeImageTagsResponse.filterSensitiveLog, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return Aws_json1_1_1.serializeAws_json1_1DescribeImageTagsCommand(input, context); - } - deserialize(output, context) { - return Aws_json1_1_1.deserializeAws_json1_1DescribeImageTagsCommand(output, context); - } -} -exports.DescribeImageTagsCommand = DescribeImageTagsCommand; - - -/***/ }), - -/***/ 22776: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.DescribeImagesCommand = void 0; -const middleware_serde_1 = __nccwpck_require__(93631); -const smithy_client_1 = __nccwpck_require__(4963); -const models_0_1 = __nccwpck_require__(38818); -const Aws_json1_1_1 = __nccwpck_require__(64170); -class DescribeImagesCommand extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "ECRPUBLICClient"; - const commandName = "DescribeImagesCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_0_1.DescribeImagesRequest.filterSensitiveLog, - outputFilterSensitiveLog: models_0_1.DescribeImagesResponse.filterSensitiveLog, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return Aws_json1_1_1.serializeAws_json1_1DescribeImagesCommand(input, context); - } - deserialize(output, context) { - return Aws_json1_1_1.deserializeAws_json1_1DescribeImagesCommand(output, context); - } -} -exports.DescribeImagesCommand = DescribeImagesCommand; - - -/***/ }), - -/***/ 78696: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.DescribeRegistriesCommand = void 0; -const middleware_serde_1 = __nccwpck_require__(93631); -const smithy_client_1 = __nccwpck_require__(4963); -const models_0_1 = __nccwpck_require__(38818); -const Aws_json1_1_1 = __nccwpck_require__(64170); -class DescribeRegistriesCommand extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "ECRPUBLICClient"; - const commandName = "DescribeRegistriesCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_0_1.DescribeRegistriesRequest.filterSensitiveLog, - outputFilterSensitiveLog: models_0_1.DescribeRegistriesResponse.filterSensitiveLog, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return Aws_json1_1_1.serializeAws_json1_1DescribeRegistriesCommand(input, context); - } - deserialize(output, context) { - return Aws_json1_1_1.deserializeAws_json1_1DescribeRegistriesCommand(output, context); - } -} -exports.DescribeRegistriesCommand = DescribeRegistriesCommand; - - -/***/ }), - -/***/ 82218: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.DescribeRepositoriesCommand = void 0; -const middleware_serde_1 = __nccwpck_require__(93631); -const smithy_client_1 = __nccwpck_require__(4963); -const models_0_1 = __nccwpck_require__(38818); -const Aws_json1_1_1 = __nccwpck_require__(64170); -class DescribeRepositoriesCommand extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "ECRPUBLICClient"; - const commandName = "DescribeRepositoriesCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_0_1.DescribeRepositoriesRequest.filterSensitiveLog, - outputFilterSensitiveLog: models_0_1.DescribeRepositoriesResponse.filterSensitiveLog, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return Aws_json1_1_1.serializeAws_json1_1DescribeRepositoriesCommand(input, context); - } - deserialize(output, context) { - return Aws_json1_1_1.deserializeAws_json1_1DescribeRepositoriesCommand(output, context); - } -} -exports.DescribeRepositoriesCommand = DescribeRepositoriesCommand; - - -/***/ }), - -/***/ 92674: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.GetAuthorizationTokenCommand = void 0; -const middleware_serde_1 = __nccwpck_require__(93631); -const smithy_client_1 = __nccwpck_require__(4963); -const models_0_1 = __nccwpck_require__(38818); -const Aws_json1_1_1 = __nccwpck_require__(64170); -class GetAuthorizationTokenCommand extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "ECRPUBLICClient"; - const commandName = "GetAuthorizationTokenCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_0_1.GetAuthorizationTokenRequest.filterSensitiveLog, - outputFilterSensitiveLog: models_0_1.GetAuthorizationTokenResponse.filterSensitiveLog, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return Aws_json1_1_1.serializeAws_json1_1GetAuthorizationTokenCommand(input, context); - } - deserialize(output, context) { - return Aws_json1_1_1.deserializeAws_json1_1GetAuthorizationTokenCommand(output, context); - } -} -exports.GetAuthorizationTokenCommand = GetAuthorizationTokenCommand; - - -/***/ }), - -/***/ 26518: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.GetRegistryCatalogDataCommand = void 0; -const middleware_serde_1 = __nccwpck_require__(93631); -const smithy_client_1 = __nccwpck_require__(4963); -const models_0_1 = __nccwpck_require__(38818); -const Aws_json1_1_1 = __nccwpck_require__(64170); -class GetRegistryCatalogDataCommand extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "ECRPUBLICClient"; - const commandName = "GetRegistryCatalogDataCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_0_1.GetRegistryCatalogDataRequest.filterSensitiveLog, - outputFilterSensitiveLog: models_0_1.GetRegistryCatalogDataResponse.filterSensitiveLog, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return Aws_json1_1_1.serializeAws_json1_1GetRegistryCatalogDataCommand(input, context); - } - deserialize(output, context) { - return Aws_json1_1_1.deserializeAws_json1_1GetRegistryCatalogDataCommand(output, context); - } -} -exports.GetRegistryCatalogDataCommand = GetRegistryCatalogDataCommand; - - -/***/ }), - -/***/ 53189: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.GetRepositoryCatalogDataCommand = void 0; -const middleware_serde_1 = __nccwpck_require__(93631); -const smithy_client_1 = __nccwpck_require__(4963); -const models_0_1 = __nccwpck_require__(38818); -const Aws_json1_1_1 = __nccwpck_require__(64170); -class GetRepositoryCatalogDataCommand extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "ECRPUBLICClient"; - const commandName = "GetRepositoryCatalogDataCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_0_1.GetRepositoryCatalogDataRequest.filterSensitiveLog, - outputFilterSensitiveLog: models_0_1.GetRepositoryCatalogDataResponse.filterSensitiveLog, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return Aws_json1_1_1.serializeAws_json1_1GetRepositoryCatalogDataCommand(input, context); - } - deserialize(output, context) { - return Aws_json1_1_1.deserializeAws_json1_1GetRepositoryCatalogDataCommand(output, context); - } -} -exports.GetRepositoryCatalogDataCommand = GetRepositoryCatalogDataCommand; - - -/***/ }), - -/***/ 8562: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.GetRepositoryPolicyCommand = void 0; -const middleware_serde_1 = __nccwpck_require__(93631); -const smithy_client_1 = __nccwpck_require__(4963); -const models_0_1 = __nccwpck_require__(38818); -const Aws_json1_1_1 = __nccwpck_require__(64170); -class GetRepositoryPolicyCommand extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "ECRPUBLICClient"; - const commandName = "GetRepositoryPolicyCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_0_1.GetRepositoryPolicyRequest.filterSensitiveLog, - outputFilterSensitiveLog: models_0_1.GetRepositoryPolicyResponse.filterSensitiveLog, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return Aws_json1_1_1.serializeAws_json1_1GetRepositoryPolicyCommand(input, context); - } - deserialize(output, context) { - return Aws_json1_1_1.deserializeAws_json1_1GetRepositoryPolicyCommand(output, context); - } -} -exports.GetRepositoryPolicyCommand = GetRepositoryPolicyCommand; - - -/***/ }), - -/***/ 83675: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.InitiateLayerUploadCommand = void 0; -const middleware_serde_1 = __nccwpck_require__(93631); -const smithy_client_1 = __nccwpck_require__(4963); -const models_0_1 = __nccwpck_require__(38818); -const Aws_json1_1_1 = __nccwpck_require__(64170); -class InitiateLayerUploadCommand extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "ECRPUBLICClient"; - const commandName = "InitiateLayerUploadCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_0_1.InitiateLayerUploadRequest.filterSensitiveLog, - outputFilterSensitiveLog: models_0_1.InitiateLayerUploadResponse.filterSensitiveLog, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return Aws_json1_1_1.serializeAws_json1_1InitiateLayerUploadCommand(input, context); - } - deserialize(output, context) { - return Aws_json1_1_1.deserializeAws_json1_1InitiateLayerUploadCommand(output, context); - } -} -exports.InitiateLayerUploadCommand = InitiateLayerUploadCommand; - - -/***/ }), - -/***/ 80575: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.ListTagsForResourceCommand = void 0; -const middleware_serde_1 = __nccwpck_require__(93631); -const smithy_client_1 = __nccwpck_require__(4963); -const models_0_1 = __nccwpck_require__(38818); -const Aws_json1_1_1 = __nccwpck_require__(64170); -class ListTagsForResourceCommand extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "ECRPUBLICClient"; - const commandName = "ListTagsForResourceCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_0_1.ListTagsForResourceRequest.filterSensitiveLog, - outputFilterSensitiveLog: models_0_1.ListTagsForResourceResponse.filterSensitiveLog, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return Aws_json1_1_1.serializeAws_json1_1ListTagsForResourceCommand(input, context); - } - deserialize(output, context) { - return Aws_json1_1_1.deserializeAws_json1_1ListTagsForResourceCommand(output, context); - } -} -exports.ListTagsForResourceCommand = ListTagsForResourceCommand; - - -/***/ }), - -/***/ 86486: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.PutImageCommand = void 0; -const middleware_serde_1 = __nccwpck_require__(93631); -const smithy_client_1 = __nccwpck_require__(4963); -const models_0_1 = __nccwpck_require__(38818); -const Aws_json1_1_1 = __nccwpck_require__(64170); -class PutImageCommand extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "ECRPUBLICClient"; - const commandName = "PutImageCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_0_1.PutImageRequest.filterSensitiveLog, - outputFilterSensitiveLog: models_0_1.PutImageResponse.filterSensitiveLog, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return Aws_json1_1_1.serializeAws_json1_1PutImageCommand(input, context); - } - deserialize(output, context) { - return Aws_json1_1_1.deserializeAws_json1_1PutImageCommand(output, context); - } -} -exports.PutImageCommand = PutImageCommand; - - -/***/ }), - -/***/ 46805: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.PutRegistryCatalogDataCommand = void 0; -const middleware_serde_1 = __nccwpck_require__(93631); -const smithy_client_1 = __nccwpck_require__(4963); -const models_0_1 = __nccwpck_require__(38818); -const Aws_json1_1_1 = __nccwpck_require__(64170); -class PutRegistryCatalogDataCommand extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "ECRPUBLICClient"; - const commandName = "PutRegistryCatalogDataCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_0_1.PutRegistryCatalogDataRequest.filterSensitiveLog, - outputFilterSensitiveLog: models_0_1.PutRegistryCatalogDataResponse.filterSensitiveLog, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return Aws_json1_1_1.serializeAws_json1_1PutRegistryCatalogDataCommand(input, context); - } - deserialize(output, context) { - return Aws_json1_1_1.deserializeAws_json1_1PutRegistryCatalogDataCommand(output, context); - } -} -exports.PutRegistryCatalogDataCommand = PutRegistryCatalogDataCommand; - - -/***/ }), - -/***/ 83753: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.PutRepositoryCatalogDataCommand = void 0; -const middleware_serde_1 = __nccwpck_require__(93631); -const smithy_client_1 = __nccwpck_require__(4963); -const models_0_1 = __nccwpck_require__(38818); -const Aws_json1_1_1 = __nccwpck_require__(64170); -class PutRepositoryCatalogDataCommand extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "ECRPUBLICClient"; - const commandName = "PutRepositoryCatalogDataCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_0_1.PutRepositoryCatalogDataRequest.filterSensitiveLog, - outputFilterSensitiveLog: models_0_1.PutRepositoryCatalogDataResponse.filterSensitiveLog, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return Aws_json1_1_1.serializeAws_json1_1PutRepositoryCatalogDataCommand(input, context); - } - deserialize(output, context) { - return Aws_json1_1_1.deserializeAws_json1_1PutRepositoryCatalogDataCommand(output, context); - } -} -exports.PutRepositoryCatalogDataCommand = PutRepositoryCatalogDataCommand; - - -/***/ }), - -/***/ 79838: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.SetRepositoryPolicyCommand = void 0; -const middleware_serde_1 = __nccwpck_require__(93631); -const smithy_client_1 = __nccwpck_require__(4963); -const models_0_1 = __nccwpck_require__(38818); -const Aws_json1_1_1 = __nccwpck_require__(64170); -class SetRepositoryPolicyCommand extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "ECRPUBLICClient"; - const commandName = "SetRepositoryPolicyCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_0_1.SetRepositoryPolicyRequest.filterSensitiveLog, - outputFilterSensitiveLog: models_0_1.SetRepositoryPolicyResponse.filterSensitiveLog, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return Aws_json1_1_1.serializeAws_json1_1SetRepositoryPolicyCommand(input, context); - } - deserialize(output, context) { - return Aws_json1_1_1.deserializeAws_json1_1SetRepositoryPolicyCommand(output, context); - } -} -exports.SetRepositoryPolicyCommand = SetRepositoryPolicyCommand; - - -/***/ }), - -/***/ 39869: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.TagResourceCommand = void 0; -const middleware_serde_1 = __nccwpck_require__(93631); -const smithy_client_1 = __nccwpck_require__(4963); -const models_0_1 = __nccwpck_require__(38818); -const Aws_json1_1_1 = __nccwpck_require__(64170); -class TagResourceCommand extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "ECRPUBLICClient"; - const commandName = "TagResourceCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_0_1.TagResourceRequest.filterSensitiveLog, - outputFilterSensitiveLog: models_0_1.TagResourceResponse.filterSensitiveLog, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return Aws_json1_1_1.serializeAws_json1_1TagResourceCommand(input, context); - } - deserialize(output, context) { - return Aws_json1_1_1.deserializeAws_json1_1TagResourceCommand(output, context); - } -} -exports.TagResourceCommand = TagResourceCommand; - - -/***/ }), - -/***/ 66689: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.UntagResourceCommand = void 0; -const middleware_serde_1 = __nccwpck_require__(93631); -const smithy_client_1 = __nccwpck_require__(4963); -const models_0_1 = __nccwpck_require__(38818); -const Aws_json1_1_1 = __nccwpck_require__(64170); -class UntagResourceCommand extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "ECRPUBLICClient"; - const commandName = "UntagResourceCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_0_1.UntagResourceRequest.filterSensitiveLog, - outputFilterSensitiveLog: models_0_1.UntagResourceResponse.filterSensitiveLog, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return Aws_json1_1_1.serializeAws_json1_1UntagResourceCommand(input, context); - } - deserialize(output, context) { - return Aws_json1_1_1.deserializeAws_json1_1UntagResourceCommand(output, context); - } -} -exports.UntagResourceCommand = UntagResourceCommand; - - -/***/ }), - -/***/ 97429: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.UploadLayerPartCommand = void 0; -const middleware_serde_1 = __nccwpck_require__(93631); -const smithy_client_1 = __nccwpck_require__(4963); -const models_0_1 = __nccwpck_require__(38818); -const Aws_json1_1_1 = __nccwpck_require__(64170); -class UploadLayerPartCommand extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "ECRPUBLICClient"; - const commandName = "UploadLayerPartCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_0_1.UploadLayerPartRequest.filterSensitiveLog, - outputFilterSensitiveLog: models_0_1.UploadLayerPartResponse.filterSensitiveLog, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return Aws_json1_1_1.serializeAws_json1_1UploadLayerPartCommand(input, context); - } - deserialize(output, context) { - return Aws_json1_1_1.deserializeAws_json1_1UploadLayerPartCommand(output, context); - } -} -exports.UploadLayerPartCommand = UploadLayerPartCommand; - - -/***/ }), - -/***/ 65442: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -const tslib_1 = __nccwpck_require__(4351); -tslib_1.__exportStar(__nccwpck_require__(25356), exports); -tslib_1.__exportStar(__nccwpck_require__(56517), exports); -tslib_1.__exportStar(__nccwpck_require__(55490), exports); -tslib_1.__exportStar(__nccwpck_require__(39633), exports); -tslib_1.__exportStar(__nccwpck_require__(60467), exports); -tslib_1.__exportStar(__nccwpck_require__(62528), exports); -tslib_1.__exportStar(__nccwpck_require__(47670), exports); -tslib_1.__exportStar(__nccwpck_require__(22776), exports); -tslib_1.__exportStar(__nccwpck_require__(78696), exports); -tslib_1.__exportStar(__nccwpck_require__(82218), exports); -tslib_1.__exportStar(__nccwpck_require__(92674), exports); -tslib_1.__exportStar(__nccwpck_require__(26518), exports); -tslib_1.__exportStar(__nccwpck_require__(53189), exports); -tslib_1.__exportStar(__nccwpck_require__(8562), exports); -tslib_1.__exportStar(__nccwpck_require__(83675), exports); -tslib_1.__exportStar(__nccwpck_require__(80575), exports); -tslib_1.__exportStar(__nccwpck_require__(86486), exports); -tslib_1.__exportStar(__nccwpck_require__(46805), exports); -tslib_1.__exportStar(__nccwpck_require__(83753), exports); -tslib_1.__exportStar(__nccwpck_require__(79838), exports); -tslib_1.__exportStar(__nccwpck_require__(39869), exports); -tslib_1.__exportStar(__nccwpck_require__(66689), exports); -tslib_1.__exportStar(__nccwpck_require__(97429), exports); - - -/***/ }), - -/***/ 68593: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.defaultRegionInfoProvider = void 0; -const config_resolver_1 = __nccwpck_require__(56153); -const regionHash = {}; -const partitionHash = { - aws: { - regions: [ - "af-south-1", - "ap-east-1", - "ap-northeast-1", - "ap-northeast-2", - "ap-northeast-3", - "ap-south-1", - "ap-southeast-1", - "ap-southeast-2", - "ap-southeast-3", - "ca-central-1", - "eu-central-1", - "eu-north-1", - "eu-south-1", - "eu-west-1", - "eu-west-2", - "eu-west-3", - "me-south-1", - "sa-east-1", - "us-east-1", - "us-east-2", - "us-west-1", - "us-west-2", - ], - regionRegex: "^(us|eu|ap|sa|ca|me|af)\\-\\w+\\-\\d+$", - variants: [ - { - hostname: "api.ecr-public.{region}.amazonaws.com", - tags: [], - }, - { - hostname: "api.ecr-public-fips.{region}.amazonaws.com", - tags: ["fips"], - }, - { - hostname: "api.ecr-public-fips.{region}.api.aws", - tags: ["dualstack", "fips"], - }, - { - hostname: "api.ecr-public.{region}.api.aws", - tags: ["dualstack"], - }, - ], - }, - "aws-cn": { - regions: ["cn-north-1", "cn-northwest-1"], - regionRegex: "^cn\\-\\w+\\-\\d+$", - variants: [ - { - hostname: "api.ecr-public.{region}.amazonaws.com.cn", - tags: [], - }, - { - hostname: "api.ecr-public-fips.{region}.amazonaws.com.cn", - tags: ["fips"], - }, - { - hostname: "api.ecr-public-fips.{region}.api.amazonwebservices.com.cn", - tags: ["dualstack", "fips"], - }, - { - hostname: "api.ecr-public.{region}.api.amazonwebservices.com.cn", - tags: ["dualstack"], - }, - ], - }, - "aws-iso": { - regions: ["us-iso-east-1", "us-iso-west-1"], - regionRegex: "^us\\-iso\\-\\w+\\-\\d+$", - variants: [ - { - hostname: "api.ecr-public.{region}.c2s.ic.gov", - tags: [], - }, - { - hostname: "api.ecr-public-fips.{region}.c2s.ic.gov", - tags: ["fips"], - }, - ], - }, - "aws-iso-b": { - regions: ["us-isob-east-1"], - regionRegex: "^us\\-isob\\-\\w+\\-\\d+$", - variants: [ - { - hostname: "api.ecr-public.{region}.sc2s.sgov.gov", - tags: [], - }, - { - hostname: "api.ecr-public-fips.{region}.sc2s.sgov.gov", - tags: ["fips"], - }, - ], - }, - "aws-us-gov": { - regions: ["us-gov-east-1", "us-gov-west-1"], - regionRegex: "^us\\-gov\\-\\w+\\-\\d+$", - variants: [ - { - hostname: "api.ecr-public.{region}.amazonaws.com", - tags: [], - }, - { - hostname: "api.ecr-public-fips.{region}.amazonaws.com", - tags: ["fips"], - }, - { - hostname: "api.ecr-public-fips.{region}.api.aws", - tags: ["dualstack", "fips"], - }, - { - hostname: "api.ecr-public.{region}.api.aws", - tags: ["dualstack"], - }, - ], - }, -}; -const defaultRegionInfoProvider = async (region, options) => config_resolver_1.getRegionInfo(region, { - ...options, - signingService: "ecr-public", - regionHash, - partitionHash, -}); -exports.defaultRegionInfoProvider = defaultRegionInfoProvider; - - -/***/ }), - -/***/ 42308: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -const tslib_1 = __nccwpck_require__(4351); -tslib_1.__exportStar(__nccwpck_require__(86087), exports); -tslib_1.__exportStar(__nccwpck_require__(30608), exports); -tslib_1.__exportStar(__nccwpck_require__(65442), exports); -tslib_1.__exportStar(__nccwpck_require__(30183), exports); -tslib_1.__exportStar(__nccwpck_require__(75945), exports); - - -/***/ }), - -/***/ 30183: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -const tslib_1 = __nccwpck_require__(4351); -tslib_1.__exportStar(__nccwpck_require__(38818), exports); - - -/***/ }), - -/***/ 38818: -/***/ ((__unused_webpack_module, exports) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.RegistryAliasStatus = exports.DescribeRegistriesRequest = exports.DescribeImageTagsResponse = exports.ImageTagDetail = exports.ReferencedImageDetail = exports.DescribeImageTagsRequest = exports.ImageNotFoundException = exports.DescribeImagesResponse = exports.ImageDetail = exports.DescribeImagesRequest = exports.RepositoryPolicyNotFoundException = exports.DeleteRepositoryPolicyResponse = exports.DeleteRepositoryPolicyRequest = exports.RepositoryNotEmptyException = exports.DeleteRepositoryResponse = exports.DeleteRepositoryRequest = exports.TooManyTagsException = exports.RepositoryAlreadyExistsException = exports.LimitExceededException = exports.InvalidTagParameterException = exports.CreateRepositoryResponse = exports.Repository = exports.RepositoryCatalogData = exports.CreateRepositoryRequest = exports.Tag = exports.RepositoryCatalogDataInput = exports.UploadNotFoundException = exports.UnsupportedCommandException = exports.LayerPartTooSmallException = exports.LayerAlreadyExistsException = exports.InvalidLayerException = exports.EmptyUploadException = exports.CompleteLayerUploadResponse = exports.CompleteLayerUploadRequest = exports.BatchDeleteImageResponse = exports.ImageFailure = exports.ImageFailureCode = exports.BatchDeleteImageRequest = exports.ImageIdentifier = exports.ServerException = exports.RepositoryNotFoundException = exports.RegistryNotFoundException = exports.InvalidParameterException = exports.BatchCheckLayerAvailabilityResponse = exports.Layer = exports.LayerAvailability = exports.LayerFailure = exports.LayerFailureCode = exports.BatchCheckLayerAvailabilityRequest = exports.AuthorizationData = void 0; -exports.UploadLayerPartResponse = exports.UploadLayerPartRequest = exports.UntagResourceResponse = exports.UntagResourceRequest = exports.TagResourceResponse = exports.TagResourceRequest = exports.SetRepositoryPolicyResponse = exports.SetRepositoryPolicyRequest = exports.PutRepositoryCatalogDataResponse = exports.PutRepositoryCatalogDataRequest = exports.PutRegistryCatalogDataResponse = exports.PutRegistryCatalogDataRequest = exports.ReferencedImagesNotFoundException = exports.PutImageResponse = exports.PutImageRequest = exports.ListTagsForResourceResponse = exports.ListTagsForResourceRequest = exports.LayersNotFoundException = exports.InvalidLayerPartException = exports.InitiateLayerUploadResponse = exports.InitiateLayerUploadRequest = exports.ImageTagAlreadyExistsException = exports.ImageDigestDoesNotMatchException = exports.ImageAlreadyExistsException = exports.Image = exports.GetRepositoryPolicyResponse = exports.GetRepositoryPolicyRequest = exports.GetRepositoryCatalogDataResponse = exports.GetRepositoryCatalogDataRequest = exports.GetRegistryCatalogDataResponse = exports.RegistryCatalogData = exports.GetRegistryCatalogDataRequest = exports.GetAuthorizationTokenResponse = exports.GetAuthorizationTokenRequest = exports.DescribeRepositoriesResponse = exports.DescribeRepositoriesRequest = exports.DescribeRegistriesResponse = exports.Registry = exports.RegistryAlias = void 0; -var AuthorizationData; -(function (AuthorizationData) { - AuthorizationData.filterSensitiveLog = (obj) => ({ - ...obj, - }); -})(AuthorizationData = exports.AuthorizationData || (exports.AuthorizationData = {})); -var BatchCheckLayerAvailabilityRequest; -(function (BatchCheckLayerAvailabilityRequest) { - BatchCheckLayerAvailabilityRequest.filterSensitiveLog = (obj) => ({ - ...obj, - }); -})(BatchCheckLayerAvailabilityRequest = exports.BatchCheckLayerAvailabilityRequest || (exports.BatchCheckLayerAvailabilityRequest = {})); -var LayerFailureCode; -(function (LayerFailureCode) { - LayerFailureCode["InvalidLayerDigest"] = "InvalidLayerDigest"; - LayerFailureCode["MissingLayerDigest"] = "MissingLayerDigest"; -})(LayerFailureCode = exports.LayerFailureCode || (exports.LayerFailureCode = {})); -var LayerFailure; -(function (LayerFailure) { - LayerFailure.filterSensitiveLog = (obj) => ({ - ...obj, - }); -})(LayerFailure = exports.LayerFailure || (exports.LayerFailure = {})); -var LayerAvailability; -(function (LayerAvailability) { - LayerAvailability["AVAILABLE"] = "AVAILABLE"; - LayerAvailability["UNAVAILABLE"] = "UNAVAILABLE"; -})(LayerAvailability = exports.LayerAvailability || (exports.LayerAvailability = {})); -var Layer; -(function (Layer) { - Layer.filterSensitiveLog = (obj) => ({ - ...obj, - }); -})(Layer = exports.Layer || (exports.Layer = {})); -var BatchCheckLayerAvailabilityResponse; -(function (BatchCheckLayerAvailabilityResponse) { - BatchCheckLayerAvailabilityResponse.filterSensitiveLog = (obj) => ({ - ...obj, - }); -})(BatchCheckLayerAvailabilityResponse = exports.BatchCheckLayerAvailabilityResponse || (exports.BatchCheckLayerAvailabilityResponse = {})); -var InvalidParameterException; -(function (InvalidParameterException) { - InvalidParameterException.filterSensitiveLog = (obj) => ({ - ...obj, - }); -})(InvalidParameterException = exports.InvalidParameterException || (exports.InvalidParameterException = {})); -var RegistryNotFoundException; -(function (RegistryNotFoundException) { - RegistryNotFoundException.filterSensitiveLog = (obj) => ({ - ...obj, - }); -})(RegistryNotFoundException = exports.RegistryNotFoundException || (exports.RegistryNotFoundException = {})); -var RepositoryNotFoundException; -(function (RepositoryNotFoundException) { - RepositoryNotFoundException.filterSensitiveLog = (obj) => ({ - ...obj, - }); -})(RepositoryNotFoundException = exports.RepositoryNotFoundException || (exports.RepositoryNotFoundException = {})); -var ServerException; -(function (ServerException) { - ServerException.filterSensitiveLog = (obj) => ({ - ...obj, - }); -})(ServerException = exports.ServerException || (exports.ServerException = {})); -var ImageIdentifier; -(function (ImageIdentifier) { - ImageIdentifier.filterSensitiveLog = (obj) => ({ - ...obj, - }); -})(ImageIdentifier = exports.ImageIdentifier || (exports.ImageIdentifier = {})); -var BatchDeleteImageRequest; -(function (BatchDeleteImageRequest) { - BatchDeleteImageRequest.filterSensitiveLog = (obj) => ({ - ...obj, - }); -})(BatchDeleteImageRequest = exports.BatchDeleteImageRequest || (exports.BatchDeleteImageRequest = {})); -var ImageFailureCode; -(function (ImageFailureCode) { - ImageFailureCode["ImageNotFound"] = "ImageNotFound"; - ImageFailureCode["ImageReferencedByManifestList"] = "ImageReferencedByManifestList"; - ImageFailureCode["ImageTagDoesNotMatchDigest"] = "ImageTagDoesNotMatchDigest"; - ImageFailureCode["InvalidImageDigest"] = "InvalidImageDigest"; - ImageFailureCode["InvalidImageTag"] = "InvalidImageTag"; - ImageFailureCode["KmsError"] = "KmsError"; - ImageFailureCode["MissingDigestAndTag"] = "MissingDigestAndTag"; -})(ImageFailureCode = exports.ImageFailureCode || (exports.ImageFailureCode = {})); -var ImageFailure; -(function (ImageFailure) { - ImageFailure.filterSensitiveLog = (obj) => ({ - ...obj, - }); -})(ImageFailure = exports.ImageFailure || (exports.ImageFailure = {})); -var BatchDeleteImageResponse; -(function (BatchDeleteImageResponse) { - BatchDeleteImageResponse.filterSensitiveLog = (obj) => ({ - ...obj, - }); -})(BatchDeleteImageResponse = exports.BatchDeleteImageResponse || (exports.BatchDeleteImageResponse = {})); -var CompleteLayerUploadRequest; -(function (CompleteLayerUploadRequest) { - CompleteLayerUploadRequest.filterSensitiveLog = (obj) => ({ - ...obj, - }); -})(CompleteLayerUploadRequest = exports.CompleteLayerUploadRequest || (exports.CompleteLayerUploadRequest = {})); -var CompleteLayerUploadResponse; -(function (CompleteLayerUploadResponse) { - CompleteLayerUploadResponse.filterSensitiveLog = (obj) => ({ - ...obj, - }); -})(CompleteLayerUploadResponse = exports.CompleteLayerUploadResponse || (exports.CompleteLayerUploadResponse = {})); -var EmptyUploadException; -(function (EmptyUploadException) { - EmptyUploadException.filterSensitiveLog = (obj) => ({ - ...obj, - }); -})(EmptyUploadException = exports.EmptyUploadException || (exports.EmptyUploadException = {})); -var InvalidLayerException; -(function (InvalidLayerException) { - InvalidLayerException.filterSensitiveLog = (obj) => ({ - ...obj, - }); -})(InvalidLayerException = exports.InvalidLayerException || (exports.InvalidLayerException = {})); -var LayerAlreadyExistsException; -(function (LayerAlreadyExistsException) { - LayerAlreadyExistsException.filterSensitiveLog = (obj) => ({ - ...obj, - }); -})(LayerAlreadyExistsException = exports.LayerAlreadyExistsException || (exports.LayerAlreadyExistsException = {})); -var LayerPartTooSmallException; -(function (LayerPartTooSmallException) { - LayerPartTooSmallException.filterSensitiveLog = (obj) => ({ - ...obj, - }); -})(LayerPartTooSmallException = exports.LayerPartTooSmallException || (exports.LayerPartTooSmallException = {})); -var UnsupportedCommandException; -(function (UnsupportedCommandException) { - UnsupportedCommandException.filterSensitiveLog = (obj) => ({ - ...obj, - }); -})(UnsupportedCommandException = exports.UnsupportedCommandException || (exports.UnsupportedCommandException = {})); -var UploadNotFoundException; -(function (UploadNotFoundException) { - UploadNotFoundException.filterSensitiveLog = (obj) => ({ - ...obj, - }); -})(UploadNotFoundException = exports.UploadNotFoundException || (exports.UploadNotFoundException = {})); -var RepositoryCatalogDataInput; -(function (RepositoryCatalogDataInput) { - RepositoryCatalogDataInput.filterSensitiveLog = (obj) => ({ - ...obj, - }); -})(RepositoryCatalogDataInput = exports.RepositoryCatalogDataInput || (exports.RepositoryCatalogDataInput = {})); -var Tag; -(function (Tag) { - Tag.filterSensitiveLog = (obj) => ({ - ...obj, - }); -})(Tag = exports.Tag || (exports.Tag = {})); -var CreateRepositoryRequest; -(function (CreateRepositoryRequest) { - CreateRepositoryRequest.filterSensitiveLog = (obj) => ({ - ...obj, - }); -})(CreateRepositoryRequest = exports.CreateRepositoryRequest || (exports.CreateRepositoryRequest = {})); -var RepositoryCatalogData; -(function (RepositoryCatalogData) { - RepositoryCatalogData.filterSensitiveLog = (obj) => ({ - ...obj, - }); -})(RepositoryCatalogData = exports.RepositoryCatalogData || (exports.RepositoryCatalogData = {})); -var Repository; -(function (Repository) { - Repository.filterSensitiveLog = (obj) => ({ - ...obj, - }); -})(Repository = exports.Repository || (exports.Repository = {})); -var CreateRepositoryResponse; -(function (CreateRepositoryResponse) { - CreateRepositoryResponse.filterSensitiveLog = (obj) => ({ - ...obj, - }); -})(CreateRepositoryResponse = exports.CreateRepositoryResponse || (exports.CreateRepositoryResponse = {})); -var InvalidTagParameterException; -(function (InvalidTagParameterException) { - InvalidTagParameterException.filterSensitiveLog = (obj) => ({ - ...obj, - }); -})(InvalidTagParameterException = exports.InvalidTagParameterException || (exports.InvalidTagParameterException = {})); -var LimitExceededException; -(function (LimitExceededException) { - LimitExceededException.filterSensitiveLog = (obj) => ({ - ...obj, - }); -})(LimitExceededException = exports.LimitExceededException || (exports.LimitExceededException = {})); -var RepositoryAlreadyExistsException; -(function (RepositoryAlreadyExistsException) { - RepositoryAlreadyExistsException.filterSensitiveLog = (obj) => ({ - ...obj, - }); -})(RepositoryAlreadyExistsException = exports.RepositoryAlreadyExistsException || (exports.RepositoryAlreadyExistsException = {})); -var TooManyTagsException; -(function (TooManyTagsException) { - TooManyTagsException.filterSensitiveLog = (obj) => ({ - ...obj, - }); -})(TooManyTagsException = exports.TooManyTagsException || (exports.TooManyTagsException = {})); -var DeleteRepositoryRequest; -(function (DeleteRepositoryRequest) { - DeleteRepositoryRequest.filterSensitiveLog = (obj) => ({ - ...obj, - }); -})(DeleteRepositoryRequest = exports.DeleteRepositoryRequest || (exports.DeleteRepositoryRequest = {})); -var DeleteRepositoryResponse; -(function (DeleteRepositoryResponse) { - DeleteRepositoryResponse.filterSensitiveLog = (obj) => ({ - ...obj, - }); -})(DeleteRepositoryResponse = exports.DeleteRepositoryResponse || (exports.DeleteRepositoryResponse = {})); -var RepositoryNotEmptyException; -(function (RepositoryNotEmptyException) { - RepositoryNotEmptyException.filterSensitiveLog = (obj) => ({ - ...obj, - }); -})(RepositoryNotEmptyException = exports.RepositoryNotEmptyException || (exports.RepositoryNotEmptyException = {})); -var DeleteRepositoryPolicyRequest; -(function (DeleteRepositoryPolicyRequest) { - DeleteRepositoryPolicyRequest.filterSensitiveLog = (obj) => ({ - ...obj, - }); -})(DeleteRepositoryPolicyRequest = exports.DeleteRepositoryPolicyRequest || (exports.DeleteRepositoryPolicyRequest = {})); -var DeleteRepositoryPolicyResponse; -(function (DeleteRepositoryPolicyResponse) { - DeleteRepositoryPolicyResponse.filterSensitiveLog = (obj) => ({ - ...obj, - }); -})(DeleteRepositoryPolicyResponse = exports.DeleteRepositoryPolicyResponse || (exports.DeleteRepositoryPolicyResponse = {})); -var RepositoryPolicyNotFoundException; -(function (RepositoryPolicyNotFoundException) { - RepositoryPolicyNotFoundException.filterSensitiveLog = (obj) => ({ - ...obj, - }); -})(RepositoryPolicyNotFoundException = exports.RepositoryPolicyNotFoundException || (exports.RepositoryPolicyNotFoundException = {})); -var DescribeImagesRequest; -(function (DescribeImagesRequest) { - DescribeImagesRequest.filterSensitiveLog = (obj) => ({ - ...obj, - }); -})(DescribeImagesRequest = exports.DescribeImagesRequest || (exports.DescribeImagesRequest = {})); -var ImageDetail; -(function (ImageDetail) { - ImageDetail.filterSensitiveLog = (obj) => ({ - ...obj, - }); -})(ImageDetail = exports.ImageDetail || (exports.ImageDetail = {})); -var DescribeImagesResponse; -(function (DescribeImagesResponse) { - DescribeImagesResponse.filterSensitiveLog = (obj) => ({ - ...obj, - }); -})(DescribeImagesResponse = exports.DescribeImagesResponse || (exports.DescribeImagesResponse = {})); -var ImageNotFoundException; -(function (ImageNotFoundException) { - ImageNotFoundException.filterSensitiveLog = (obj) => ({ - ...obj, - }); -})(ImageNotFoundException = exports.ImageNotFoundException || (exports.ImageNotFoundException = {})); -var DescribeImageTagsRequest; -(function (DescribeImageTagsRequest) { - DescribeImageTagsRequest.filterSensitiveLog = (obj) => ({ - ...obj, - }); -})(DescribeImageTagsRequest = exports.DescribeImageTagsRequest || (exports.DescribeImageTagsRequest = {})); -var ReferencedImageDetail; -(function (ReferencedImageDetail) { - ReferencedImageDetail.filterSensitiveLog = (obj) => ({ - ...obj, - }); -})(ReferencedImageDetail = exports.ReferencedImageDetail || (exports.ReferencedImageDetail = {})); -var ImageTagDetail; -(function (ImageTagDetail) { - ImageTagDetail.filterSensitiveLog = (obj) => ({ - ...obj, - }); -})(ImageTagDetail = exports.ImageTagDetail || (exports.ImageTagDetail = {})); -var DescribeImageTagsResponse; -(function (DescribeImageTagsResponse) { - DescribeImageTagsResponse.filterSensitiveLog = (obj) => ({ - ...obj, - }); -})(DescribeImageTagsResponse = exports.DescribeImageTagsResponse || (exports.DescribeImageTagsResponse = {})); -var DescribeRegistriesRequest; -(function (DescribeRegistriesRequest) { - DescribeRegistriesRequest.filterSensitiveLog = (obj) => ({ - ...obj, - }); -})(DescribeRegistriesRequest = exports.DescribeRegistriesRequest || (exports.DescribeRegistriesRequest = {})); -var RegistryAliasStatus; -(function (RegistryAliasStatus) { - RegistryAliasStatus["ACTIVE"] = "ACTIVE"; - RegistryAliasStatus["PENDING"] = "PENDING"; - RegistryAliasStatus["REJECTED"] = "REJECTED"; -})(RegistryAliasStatus = exports.RegistryAliasStatus || (exports.RegistryAliasStatus = {})); -var RegistryAlias; -(function (RegistryAlias) { - RegistryAlias.filterSensitiveLog = (obj) => ({ - ...obj, - }); -})(RegistryAlias = exports.RegistryAlias || (exports.RegistryAlias = {})); -var Registry; -(function (Registry) { - Registry.filterSensitiveLog = (obj) => ({ - ...obj, - }); -})(Registry = exports.Registry || (exports.Registry = {})); -var DescribeRegistriesResponse; -(function (DescribeRegistriesResponse) { - DescribeRegistriesResponse.filterSensitiveLog = (obj) => ({ - ...obj, - }); -})(DescribeRegistriesResponse = exports.DescribeRegistriesResponse || (exports.DescribeRegistriesResponse = {})); -var DescribeRepositoriesRequest; -(function (DescribeRepositoriesRequest) { - DescribeRepositoriesRequest.filterSensitiveLog = (obj) => ({ - ...obj, - }); -})(DescribeRepositoriesRequest = exports.DescribeRepositoriesRequest || (exports.DescribeRepositoriesRequest = {})); -var DescribeRepositoriesResponse; -(function (DescribeRepositoriesResponse) { - DescribeRepositoriesResponse.filterSensitiveLog = (obj) => ({ - ...obj, - }); -})(DescribeRepositoriesResponse = exports.DescribeRepositoriesResponse || (exports.DescribeRepositoriesResponse = {})); -var GetAuthorizationTokenRequest; -(function (GetAuthorizationTokenRequest) { - GetAuthorizationTokenRequest.filterSensitiveLog = (obj) => ({ - ...obj, - }); -})(GetAuthorizationTokenRequest = exports.GetAuthorizationTokenRequest || (exports.GetAuthorizationTokenRequest = {})); -var GetAuthorizationTokenResponse; -(function (GetAuthorizationTokenResponse) { - GetAuthorizationTokenResponse.filterSensitiveLog = (obj) => ({ - ...obj, - }); -})(GetAuthorizationTokenResponse = exports.GetAuthorizationTokenResponse || (exports.GetAuthorizationTokenResponse = {})); -var GetRegistryCatalogDataRequest; -(function (GetRegistryCatalogDataRequest) { - GetRegistryCatalogDataRequest.filterSensitiveLog = (obj) => ({ - ...obj, - }); -})(GetRegistryCatalogDataRequest = exports.GetRegistryCatalogDataRequest || (exports.GetRegistryCatalogDataRequest = {})); -var RegistryCatalogData; -(function (RegistryCatalogData) { - RegistryCatalogData.filterSensitiveLog = (obj) => ({ - ...obj, - }); -})(RegistryCatalogData = exports.RegistryCatalogData || (exports.RegistryCatalogData = {})); -var GetRegistryCatalogDataResponse; -(function (GetRegistryCatalogDataResponse) { - GetRegistryCatalogDataResponse.filterSensitiveLog = (obj) => ({ - ...obj, - }); -})(GetRegistryCatalogDataResponse = exports.GetRegistryCatalogDataResponse || (exports.GetRegistryCatalogDataResponse = {})); -var GetRepositoryCatalogDataRequest; -(function (GetRepositoryCatalogDataRequest) { - GetRepositoryCatalogDataRequest.filterSensitiveLog = (obj) => ({ - ...obj, - }); -})(GetRepositoryCatalogDataRequest = exports.GetRepositoryCatalogDataRequest || (exports.GetRepositoryCatalogDataRequest = {})); -var GetRepositoryCatalogDataResponse; -(function (GetRepositoryCatalogDataResponse) { - GetRepositoryCatalogDataResponse.filterSensitiveLog = (obj) => ({ - ...obj, - }); -})(GetRepositoryCatalogDataResponse = exports.GetRepositoryCatalogDataResponse || (exports.GetRepositoryCatalogDataResponse = {})); -var GetRepositoryPolicyRequest; -(function (GetRepositoryPolicyRequest) { - GetRepositoryPolicyRequest.filterSensitiveLog = (obj) => ({ - ...obj, - }); -})(GetRepositoryPolicyRequest = exports.GetRepositoryPolicyRequest || (exports.GetRepositoryPolicyRequest = {})); -var GetRepositoryPolicyResponse; -(function (GetRepositoryPolicyResponse) { - GetRepositoryPolicyResponse.filterSensitiveLog = (obj) => ({ - ...obj, - }); -})(GetRepositoryPolicyResponse = exports.GetRepositoryPolicyResponse || (exports.GetRepositoryPolicyResponse = {})); -var Image; -(function (Image) { - Image.filterSensitiveLog = (obj) => ({ - ...obj, - }); -})(Image = exports.Image || (exports.Image = {})); -var ImageAlreadyExistsException; -(function (ImageAlreadyExistsException) { - ImageAlreadyExistsException.filterSensitiveLog = (obj) => ({ - ...obj, - }); -})(ImageAlreadyExistsException = exports.ImageAlreadyExistsException || (exports.ImageAlreadyExistsException = {})); -var ImageDigestDoesNotMatchException; -(function (ImageDigestDoesNotMatchException) { - ImageDigestDoesNotMatchException.filterSensitiveLog = (obj) => ({ - ...obj, - }); -})(ImageDigestDoesNotMatchException = exports.ImageDigestDoesNotMatchException || (exports.ImageDigestDoesNotMatchException = {})); -var ImageTagAlreadyExistsException; -(function (ImageTagAlreadyExistsException) { - ImageTagAlreadyExistsException.filterSensitiveLog = (obj) => ({ - ...obj, - }); -})(ImageTagAlreadyExistsException = exports.ImageTagAlreadyExistsException || (exports.ImageTagAlreadyExistsException = {})); -var InitiateLayerUploadRequest; -(function (InitiateLayerUploadRequest) { - InitiateLayerUploadRequest.filterSensitiveLog = (obj) => ({ - ...obj, - }); -})(InitiateLayerUploadRequest = exports.InitiateLayerUploadRequest || (exports.InitiateLayerUploadRequest = {})); -var InitiateLayerUploadResponse; -(function (InitiateLayerUploadResponse) { - InitiateLayerUploadResponse.filterSensitiveLog = (obj) => ({ - ...obj, - }); -})(InitiateLayerUploadResponse = exports.InitiateLayerUploadResponse || (exports.InitiateLayerUploadResponse = {})); -var InvalidLayerPartException; -(function (InvalidLayerPartException) { - InvalidLayerPartException.filterSensitiveLog = (obj) => ({ - ...obj, - }); -})(InvalidLayerPartException = exports.InvalidLayerPartException || (exports.InvalidLayerPartException = {})); -var LayersNotFoundException; -(function (LayersNotFoundException) { - LayersNotFoundException.filterSensitiveLog = (obj) => ({ - ...obj, - }); -})(LayersNotFoundException = exports.LayersNotFoundException || (exports.LayersNotFoundException = {})); -var ListTagsForResourceRequest; -(function (ListTagsForResourceRequest) { - ListTagsForResourceRequest.filterSensitiveLog = (obj) => ({ - ...obj, - }); -})(ListTagsForResourceRequest = exports.ListTagsForResourceRequest || (exports.ListTagsForResourceRequest = {})); -var ListTagsForResourceResponse; -(function (ListTagsForResourceResponse) { - ListTagsForResourceResponse.filterSensitiveLog = (obj) => ({ - ...obj, - }); -})(ListTagsForResourceResponse = exports.ListTagsForResourceResponse || (exports.ListTagsForResourceResponse = {})); -var PutImageRequest; -(function (PutImageRequest) { - PutImageRequest.filterSensitiveLog = (obj) => ({ - ...obj, - }); -})(PutImageRequest = exports.PutImageRequest || (exports.PutImageRequest = {})); -var PutImageResponse; -(function (PutImageResponse) { - PutImageResponse.filterSensitiveLog = (obj) => ({ - ...obj, - }); -})(PutImageResponse = exports.PutImageResponse || (exports.PutImageResponse = {})); -var ReferencedImagesNotFoundException; -(function (ReferencedImagesNotFoundException) { - ReferencedImagesNotFoundException.filterSensitiveLog = (obj) => ({ - ...obj, - }); -})(ReferencedImagesNotFoundException = exports.ReferencedImagesNotFoundException || (exports.ReferencedImagesNotFoundException = {})); -var PutRegistryCatalogDataRequest; -(function (PutRegistryCatalogDataRequest) { - PutRegistryCatalogDataRequest.filterSensitiveLog = (obj) => ({ - ...obj, - }); -})(PutRegistryCatalogDataRequest = exports.PutRegistryCatalogDataRequest || (exports.PutRegistryCatalogDataRequest = {})); -var PutRegistryCatalogDataResponse; -(function (PutRegistryCatalogDataResponse) { - PutRegistryCatalogDataResponse.filterSensitiveLog = (obj) => ({ - ...obj, - }); -})(PutRegistryCatalogDataResponse = exports.PutRegistryCatalogDataResponse || (exports.PutRegistryCatalogDataResponse = {})); -var PutRepositoryCatalogDataRequest; -(function (PutRepositoryCatalogDataRequest) { - PutRepositoryCatalogDataRequest.filterSensitiveLog = (obj) => ({ - ...obj, - }); -})(PutRepositoryCatalogDataRequest = exports.PutRepositoryCatalogDataRequest || (exports.PutRepositoryCatalogDataRequest = {})); -var PutRepositoryCatalogDataResponse; -(function (PutRepositoryCatalogDataResponse) { - PutRepositoryCatalogDataResponse.filterSensitiveLog = (obj) => ({ - ...obj, - }); -})(PutRepositoryCatalogDataResponse = exports.PutRepositoryCatalogDataResponse || (exports.PutRepositoryCatalogDataResponse = {})); -var SetRepositoryPolicyRequest; -(function (SetRepositoryPolicyRequest) { - SetRepositoryPolicyRequest.filterSensitiveLog = (obj) => ({ - ...obj, - }); -})(SetRepositoryPolicyRequest = exports.SetRepositoryPolicyRequest || (exports.SetRepositoryPolicyRequest = {})); -var SetRepositoryPolicyResponse; -(function (SetRepositoryPolicyResponse) { - SetRepositoryPolicyResponse.filterSensitiveLog = (obj) => ({ - ...obj, - }); -})(SetRepositoryPolicyResponse = exports.SetRepositoryPolicyResponse || (exports.SetRepositoryPolicyResponse = {})); -var TagResourceRequest; -(function (TagResourceRequest) { - TagResourceRequest.filterSensitiveLog = (obj) => ({ - ...obj, - }); -})(TagResourceRequest = exports.TagResourceRequest || (exports.TagResourceRequest = {})); -var TagResourceResponse; -(function (TagResourceResponse) { - TagResourceResponse.filterSensitiveLog = (obj) => ({ - ...obj, - }); -})(TagResourceResponse = exports.TagResourceResponse || (exports.TagResourceResponse = {})); -var UntagResourceRequest; -(function (UntagResourceRequest) { - UntagResourceRequest.filterSensitiveLog = (obj) => ({ - ...obj, - }); -})(UntagResourceRequest = exports.UntagResourceRequest || (exports.UntagResourceRequest = {})); -var UntagResourceResponse; -(function (UntagResourceResponse) { - UntagResourceResponse.filterSensitiveLog = (obj) => ({ - ...obj, - }); -})(UntagResourceResponse = exports.UntagResourceResponse || (exports.UntagResourceResponse = {})); -var UploadLayerPartRequest; -(function (UploadLayerPartRequest) { - UploadLayerPartRequest.filterSensitiveLog = (obj) => ({ - ...obj, - }); -})(UploadLayerPartRequest = exports.UploadLayerPartRequest || (exports.UploadLayerPartRequest = {})); -var UploadLayerPartResponse; -(function (UploadLayerPartResponse) { - UploadLayerPartResponse.filterSensitiveLog = (obj) => ({ - ...obj, - }); -})(UploadLayerPartResponse = exports.UploadLayerPartResponse || (exports.UploadLayerPartResponse = {})); - - -/***/ }), - -/***/ 99634: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.paginateDescribeImageTags = void 0; -const DescribeImageTagsCommand_1 = __nccwpck_require__(47670); -const ECRPUBLIC_1 = __nccwpck_require__(86087); -const ECRPUBLICClient_1 = __nccwpck_require__(30608); -const makePagedClientRequest = async (client, input, ...args) => { - return await client.send(new DescribeImageTagsCommand_1.DescribeImageTagsCommand(input), ...args); -}; -const makePagedRequest = async (client, input, ...args) => { - return await client.describeImageTags(input, ...args); -}; -async function* paginateDescribeImageTags(config, input, ...additionalArguments) { - let token = config.startingToken || undefined; - let hasNext = true; - let page; - while (hasNext) { - input.nextToken = token; - input["maxResults"] = config.pageSize; - if (config.client instanceof ECRPUBLIC_1.ECRPUBLIC) { - page = await makePagedRequest(config.client, input, ...additionalArguments); - } - else if (config.client instanceof ECRPUBLICClient_1.ECRPUBLICClient) { - page = await makePagedClientRequest(config.client, input, ...additionalArguments); - } - else { - throw new Error("Invalid client, expected ECRPUBLIC | ECRPUBLICClient"); - } - yield page; - token = page.nextToken; - hasNext = !!token; - } - return undefined; -} -exports.paginateDescribeImageTags = paginateDescribeImageTags; - - -/***/ }), - -/***/ 74128: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.paginateDescribeImages = void 0; -const DescribeImagesCommand_1 = __nccwpck_require__(22776); -const ECRPUBLIC_1 = __nccwpck_require__(86087); -const ECRPUBLICClient_1 = __nccwpck_require__(30608); -const makePagedClientRequest = async (client, input, ...args) => { - return await client.send(new DescribeImagesCommand_1.DescribeImagesCommand(input), ...args); -}; -const makePagedRequest = async (client, input, ...args) => { - return await client.describeImages(input, ...args); -}; -async function* paginateDescribeImages(config, input, ...additionalArguments) { - let token = config.startingToken || undefined; - let hasNext = true; - let page; - while (hasNext) { - input.nextToken = token; - input["maxResults"] = config.pageSize; - if (config.client instanceof ECRPUBLIC_1.ECRPUBLIC) { - page = await makePagedRequest(config.client, input, ...additionalArguments); - } - else if (config.client instanceof ECRPUBLICClient_1.ECRPUBLICClient) { - page = await makePagedClientRequest(config.client, input, ...additionalArguments); - } - else { - throw new Error("Invalid client, expected ECRPUBLIC | ECRPUBLICClient"); - } - yield page; - token = page.nextToken; - hasNext = !!token; - } - return undefined; -} -exports.paginateDescribeImages = paginateDescribeImages; - - -/***/ }), - -/***/ 11720: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.paginateDescribeRegistries = void 0; -const DescribeRegistriesCommand_1 = __nccwpck_require__(78696); -const ECRPUBLIC_1 = __nccwpck_require__(86087); -const ECRPUBLICClient_1 = __nccwpck_require__(30608); -const makePagedClientRequest = async (client, input, ...args) => { - return await client.send(new DescribeRegistriesCommand_1.DescribeRegistriesCommand(input), ...args); -}; -const makePagedRequest = async (client, input, ...args) => { - return await client.describeRegistries(input, ...args); -}; -async function* paginateDescribeRegistries(config, input, ...additionalArguments) { - let token = config.startingToken || undefined; - let hasNext = true; - let page; - while (hasNext) { - input.nextToken = token; - input["maxResults"] = config.pageSize; - if (config.client instanceof ECRPUBLIC_1.ECRPUBLIC) { - page = await makePagedRequest(config.client, input, ...additionalArguments); - } - else if (config.client instanceof ECRPUBLICClient_1.ECRPUBLICClient) { - page = await makePagedClientRequest(config.client, input, ...additionalArguments); - } - else { - throw new Error("Invalid client, expected ECRPUBLIC | ECRPUBLICClient"); - } - yield page; - token = page.nextToken; - hasNext = !!token; - } - return undefined; -} -exports.paginateDescribeRegistries = paginateDescribeRegistries; - - -/***/ }), - -/***/ 65474: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.paginateDescribeRepositories = void 0; -const DescribeRepositoriesCommand_1 = __nccwpck_require__(82218); -const ECRPUBLIC_1 = __nccwpck_require__(86087); -const ECRPUBLICClient_1 = __nccwpck_require__(30608); -const makePagedClientRequest = async (client, input, ...args) => { - return await client.send(new DescribeRepositoriesCommand_1.DescribeRepositoriesCommand(input), ...args); -}; -const makePagedRequest = async (client, input, ...args) => { - return await client.describeRepositories(input, ...args); -}; -async function* paginateDescribeRepositories(config, input, ...additionalArguments) { - let token = config.startingToken || undefined; - let hasNext = true; - let page; - while (hasNext) { - input.nextToken = token; - input["maxResults"] = config.pageSize; - if (config.client instanceof ECRPUBLIC_1.ECRPUBLIC) { - page = await makePagedRequest(config.client, input, ...additionalArguments); - } - else if (config.client instanceof ECRPUBLICClient_1.ECRPUBLICClient) { - page = await makePagedClientRequest(config.client, input, ...additionalArguments); - } - else { - throw new Error("Invalid client, expected ECRPUBLIC | ECRPUBLICClient"); - } - yield page; - token = page.nextToken; - hasNext = !!token; - } - return undefined; -} -exports.paginateDescribeRepositories = paginateDescribeRepositories; - - -/***/ }), - -/***/ 93463: -/***/ ((__unused_webpack_module, exports) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); - - -/***/ }), - -/***/ 75945: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -const tslib_1 = __nccwpck_require__(4351); -tslib_1.__exportStar(__nccwpck_require__(99634), exports); -tslib_1.__exportStar(__nccwpck_require__(74128), exports); -tslib_1.__exportStar(__nccwpck_require__(11720), exports); -tslib_1.__exportStar(__nccwpck_require__(65474), exports); -tslib_1.__exportStar(__nccwpck_require__(93463), exports); - - -/***/ }), - -/***/ 64170: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.deserializeAws_json1_1UploadLayerPartCommand = exports.deserializeAws_json1_1UntagResourceCommand = exports.deserializeAws_json1_1TagResourceCommand = exports.deserializeAws_json1_1SetRepositoryPolicyCommand = exports.deserializeAws_json1_1PutRepositoryCatalogDataCommand = exports.deserializeAws_json1_1PutRegistryCatalogDataCommand = exports.deserializeAws_json1_1PutImageCommand = exports.deserializeAws_json1_1ListTagsForResourceCommand = exports.deserializeAws_json1_1InitiateLayerUploadCommand = exports.deserializeAws_json1_1GetRepositoryPolicyCommand = exports.deserializeAws_json1_1GetRepositoryCatalogDataCommand = exports.deserializeAws_json1_1GetRegistryCatalogDataCommand = exports.deserializeAws_json1_1GetAuthorizationTokenCommand = exports.deserializeAws_json1_1DescribeRepositoriesCommand = exports.deserializeAws_json1_1DescribeRegistriesCommand = exports.deserializeAws_json1_1DescribeImageTagsCommand = exports.deserializeAws_json1_1DescribeImagesCommand = exports.deserializeAws_json1_1DeleteRepositoryPolicyCommand = exports.deserializeAws_json1_1DeleteRepositoryCommand = exports.deserializeAws_json1_1CreateRepositoryCommand = exports.deserializeAws_json1_1CompleteLayerUploadCommand = exports.deserializeAws_json1_1BatchDeleteImageCommand = exports.deserializeAws_json1_1BatchCheckLayerAvailabilityCommand = exports.serializeAws_json1_1UploadLayerPartCommand = exports.serializeAws_json1_1UntagResourceCommand = exports.serializeAws_json1_1TagResourceCommand = exports.serializeAws_json1_1SetRepositoryPolicyCommand = exports.serializeAws_json1_1PutRepositoryCatalogDataCommand = exports.serializeAws_json1_1PutRegistryCatalogDataCommand = exports.serializeAws_json1_1PutImageCommand = exports.serializeAws_json1_1ListTagsForResourceCommand = exports.serializeAws_json1_1InitiateLayerUploadCommand = exports.serializeAws_json1_1GetRepositoryPolicyCommand = exports.serializeAws_json1_1GetRepositoryCatalogDataCommand = exports.serializeAws_json1_1GetRegistryCatalogDataCommand = exports.serializeAws_json1_1GetAuthorizationTokenCommand = exports.serializeAws_json1_1DescribeRepositoriesCommand = exports.serializeAws_json1_1DescribeRegistriesCommand = exports.serializeAws_json1_1DescribeImageTagsCommand = exports.serializeAws_json1_1DescribeImagesCommand = exports.serializeAws_json1_1DeleteRepositoryPolicyCommand = exports.serializeAws_json1_1DeleteRepositoryCommand = exports.serializeAws_json1_1CreateRepositoryCommand = exports.serializeAws_json1_1CompleteLayerUploadCommand = exports.serializeAws_json1_1BatchDeleteImageCommand = exports.serializeAws_json1_1BatchCheckLayerAvailabilityCommand = void 0; -const protocol_http_1 = __nccwpck_require__(70223); -const smithy_client_1 = __nccwpck_require__(4963); -const serializeAws_json1_1BatchCheckLayerAvailabilityCommand = async (input, context) => { - const headers = { - "content-type": "application/x-amz-json-1.1", - "x-amz-target": "SpencerFrontendService.BatchCheckLayerAvailability", - }; - let body; - body = JSON.stringify(serializeAws_json1_1BatchCheckLayerAvailabilityRequest(input, context)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.serializeAws_json1_1BatchCheckLayerAvailabilityCommand = serializeAws_json1_1BatchCheckLayerAvailabilityCommand; -const serializeAws_json1_1BatchDeleteImageCommand = async (input, context) => { - const headers = { - "content-type": "application/x-amz-json-1.1", - "x-amz-target": "SpencerFrontendService.BatchDeleteImage", - }; - let body; - body = JSON.stringify(serializeAws_json1_1BatchDeleteImageRequest(input, context)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.serializeAws_json1_1BatchDeleteImageCommand = serializeAws_json1_1BatchDeleteImageCommand; -const serializeAws_json1_1CompleteLayerUploadCommand = async (input, context) => { - const headers = { - "content-type": "application/x-amz-json-1.1", - "x-amz-target": "SpencerFrontendService.CompleteLayerUpload", - }; - let body; - body = JSON.stringify(serializeAws_json1_1CompleteLayerUploadRequest(input, context)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.serializeAws_json1_1CompleteLayerUploadCommand = serializeAws_json1_1CompleteLayerUploadCommand; -const serializeAws_json1_1CreateRepositoryCommand = async (input, context) => { - const headers = { - "content-type": "application/x-amz-json-1.1", - "x-amz-target": "SpencerFrontendService.CreateRepository", - }; - let body; - body = JSON.stringify(serializeAws_json1_1CreateRepositoryRequest(input, context)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.serializeAws_json1_1CreateRepositoryCommand = serializeAws_json1_1CreateRepositoryCommand; -const serializeAws_json1_1DeleteRepositoryCommand = async (input, context) => { - const headers = { - "content-type": "application/x-amz-json-1.1", - "x-amz-target": "SpencerFrontendService.DeleteRepository", - }; - let body; - body = JSON.stringify(serializeAws_json1_1DeleteRepositoryRequest(input, context)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.serializeAws_json1_1DeleteRepositoryCommand = serializeAws_json1_1DeleteRepositoryCommand; -const serializeAws_json1_1DeleteRepositoryPolicyCommand = async (input, context) => { - const headers = { - "content-type": "application/x-amz-json-1.1", - "x-amz-target": "SpencerFrontendService.DeleteRepositoryPolicy", - }; - let body; - body = JSON.stringify(serializeAws_json1_1DeleteRepositoryPolicyRequest(input, context)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.serializeAws_json1_1DeleteRepositoryPolicyCommand = serializeAws_json1_1DeleteRepositoryPolicyCommand; -const serializeAws_json1_1DescribeImagesCommand = async (input, context) => { - const headers = { - "content-type": "application/x-amz-json-1.1", - "x-amz-target": "SpencerFrontendService.DescribeImages", - }; - let body; - body = JSON.stringify(serializeAws_json1_1DescribeImagesRequest(input, context)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.serializeAws_json1_1DescribeImagesCommand = serializeAws_json1_1DescribeImagesCommand; -const serializeAws_json1_1DescribeImageTagsCommand = async (input, context) => { - const headers = { - "content-type": "application/x-amz-json-1.1", - "x-amz-target": "SpencerFrontendService.DescribeImageTags", - }; - let body; - body = JSON.stringify(serializeAws_json1_1DescribeImageTagsRequest(input, context)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.serializeAws_json1_1DescribeImageTagsCommand = serializeAws_json1_1DescribeImageTagsCommand; -const serializeAws_json1_1DescribeRegistriesCommand = async (input, context) => { - const headers = { - "content-type": "application/x-amz-json-1.1", - "x-amz-target": "SpencerFrontendService.DescribeRegistries", - }; - let body; - body = JSON.stringify(serializeAws_json1_1DescribeRegistriesRequest(input, context)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.serializeAws_json1_1DescribeRegistriesCommand = serializeAws_json1_1DescribeRegistriesCommand; -const serializeAws_json1_1DescribeRepositoriesCommand = async (input, context) => { - const headers = { - "content-type": "application/x-amz-json-1.1", - "x-amz-target": "SpencerFrontendService.DescribeRepositories", - }; - let body; - body = JSON.stringify(serializeAws_json1_1DescribeRepositoriesRequest(input, context)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.serializeAws_json1_1DescribeRepositoriesCommand = serializeAws_json1_1DescribeRepositoriesCommand; -const serializeAws_json1_1GetAuthorizationTokenCommand = async (input, context) => { - const headers = { - "content-type": "application/x-amz-json-1.1", - "x-amz-target": "SpencerFrontendService.GetAuthorizationToken", - }; - let body; - body = JSON.stringify(serializeAws_json1_1GetAuthorizationTokenRequest(input, context)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.serializeAws_json1_1GetAuthorizationTokenCommand = serializeAws_json1_1GetAuthorizationTokenCommand; -const serializeAws_json1_1GetRegistryCatalogDataCommand = async (input, context) => { - const headers = { - "content-type": "application/x-amz-json-1.1", - "x-amz-target": "SpencerFrontendService.GetRegistryCatalogData", - }; - let body; - body = JSON.stringify(serializeAws_json1_1GetRegistryCatalogDataRequest(input, context)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.serializeAws_json1_1GetRegistryCatalogDataCommand = serializeAws_json1_1GetRegistryCatalogDataCommand; -const serializeAws_json1_1GetRepositoryCatalogDataCommand = async (input, context) => { - const headers = { - "content-type": "application/x-amz-json-1.1", - "x-amz-target": "SpencerFrontendService.GetRepositoryCatalogData", - }; - let body; - body = JSON.stringify(serializeAws_json1_1GetRepositoryCatalogDataRequest(input, context)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.serializeAws_json1_1GetRepositoryCatalogDataCommand = serializeAws_json1_1GetRepositoryCatalogDataCommand; -const serializeAws_json1_1GetRepositoryPolicyCommand = async (input, context) => { - const headers = { - "content-type": "application/x-amz-json-1.1", - "x-amz-target": "SpencerFrontendService.GetRepositoryPolicy", - }; - let body; - body = JSON.stringify(serializeAws_json1_1GetRepositoryPolicyRequest(input, context)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.serializeAws_json1_1GetRepositoryPolicyCommand = serializeAws_json1_1GetRepositoryPolicyCommand; -const serializeAws_json1_1InitiateLayerUploadCommand = async (input, context) => { - const headers = { - "content-type": "application/x-amz-json-1.1", - "x-amz-target": "SpencerFrontendService.InitiateLayerUpload", - }; - let body; - body = JSON.stringify(serializeAws_json1_1InitiateLayerUploadRequest(input, context)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.serializeAws_json1_1InitiateLayerUploadCommand = serializeAws_json1_1InitiateLayerUploadCommand; -const serializeAws_json1_1ListTagsForResourceCommand = async (input, context) => { - const headers = { - "content-type": "application/x-amz-json-1.1", - "x-amz-target": "SpencerFrontendService.ListTagsForResource", - }; - let body; - body = JSON.stringify(serializeAws_json1_1ListTagsForResourceRequest(input, context)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.serializeAws_json1_1ListTagsForResourceCommand = serializeAws_json1_1ListTagsForResourceCommand; -const serializeAws_json1_1PutImageCommand = async (input, context) => { - const headers = { - "content-type": "application/x-amz-json-1.1", - "x-amz-target": "SpencerFrontendService.PutImage", - }; - let body; - body = JSON.stringify(serializeAws_json1_1PutImageRequest(input, context)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.serializeAws_json1_1PutImageCommand = serializeAws_json1_1PutImageCommand; -const serializeAws_json1_1PutRegistryCatalogDataCommand = async (input, context) => { - const headers = { - "content-type": "application/x-amz-json-1.1", - "x-amz-target": "SpencerFrontendService.PutRegistryCatalogData", - }; - let body; - body = JSON.stringify(serializeAws_json1_1PutRegistryCatalogDataRequest(input, context)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.serializeAws_json1_1PutRegistryCatalogDataCommand = serializeAws_json1_1PutRegistryCatalogDataCommand; -const serializeAws_json1_1PutRepositoryCatalogDataCommand = async (input, context) => { - const headers = { - "content-type": "application/x-amz-json-1.1", - "x-amz-target": "SpencerFrontendService.PutRepositoryCatalogData", - }; - let body; - body = JSON.stringify(serializeAws_json1_1PutRepositoryCatalogDataRequest(input, context)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.serializeAws_json1_1PutRepositoryCatalogDataCommand = serializeAws_json1_1PutRepositoryCatalogDataCommand; -const serializeAws_json1_1SetRepositoryPolicyCommand = async (input, context) => { - const headers = { - "content-type": "application/x-amz-json-1.1", - "x-amz-target": "SpencerFrontendService.SetRepositoryPolicy", - }; - let body; - body = JSON.stringify(serializeAws_json1_1SetRepositoryPolicyRequest(input, context)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.serializeAws_json1_1SetRepositoryPolicyCommand = serializeAws_json1_1SetRepositoryPolicyCommand; -const serializeAws_json1_1TagResourceCommand = async (input, context) => { - const headers = { - "content-type": "application/x-amz-json-1.1", - "x-amz-target": "SpencerFrontendService.TagResource", - }; - let body; - body = JSON.stringify(serializeAws_json1_1TagResourceRequest(input, context)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.serializeAws_json1_1TagResourceCommand = serializeAws_json1_1TagResourceCommand; -const serializeAws_json1_1UntagResourceCommand = async (input, context) => { - const headers = { - "content-type": "application/x-amz-json-1.1", - "x-amz-target": "SpencerFrontendService.UntagResource", - }; - let body; - body = JSON.stringify(serializeAws_json1_1UntagResourceRequest(input, context)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.serializeAws_json1_1UntagResourceCommand = serializeAws_json1_1UntagResourceCommand; -const serializeAws_json1_1UploadLayerPartCommand = async (input, context) => { - const headers = { - "content-type": "application/x-amz-json-1.1", - "x-amz-target": "SpencerFrontendService.UploadLayerPart", - }; - let body; - body = JSON.stringify(serializeAws_json1_1UploadLayerPartRequest(input, context)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.serializeAws_json1_1UploadLayerPartCommand = serializeAws_json1_1UploadLayerPartCommand; -const deserializeAws_json1_1BatchCheckLayerAvailabilityCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_json1_1BatchCheckLayerAvailabilityCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_json1_1BatchCheckLayerAvailabilityResponse(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return Promise.resolve(response); -}; -exports.deserializeAws_json1_1BatchCheckLayerAvailabilityCommand = deserializeAws_json1_1BatchCheckLayerAvailabilityCommand; -const deserializeAws_json1_1BatchCheckLayerAvailabilityCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context), - }; - let response; - let errorCode = "UnknownError"; - errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InvalidParameterException": - case "com.amazonaws.ecrpublic#InvalidParameterException": - response = { - ...(await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)), - name: errorCode, - $metadata: deserializeMetadata(output), - }; - break; - case "RegistryNotFoundException": - case "com.amazonaws.ecrpublic#RegistryNotFoundException": - response = { - ...(await deserializeAws_json1_1RegistryNotFoundExceptionResponse(parsedOutput, context)), - name: errorCode, - $metadata: deserializeMetadata(output), - }; - break; - case "RepositoryNotFoundException": - case "com.amazonaws.ecrpublic#RepositoryNotFoundException": - response = { - ...(await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(parsedOutput, context)), - name: errorCode, - $metadata: deserializeMetadata(output), - }; - break; - case "ServerException": - case "com.amazonaws.ecrpublic#ServerException": - response = { - ...(await deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context)), - name: errorCode, - $metadata: deserializeMetadata(output), - }; - break; - default: - const parsedBody = parsedOutput.body; - errorCode = parsedBody.code || parsedBody.Code || errorCode; - response = { - ...parsedBody, - name: `${errorCode}`, - message: parsedBody.message || parsedBody.Message || errorCode, - $fault: "client", - $metadata: deserializeMetadata(output), - }; - } - const message = response.message || response.Message || errorCode; - response.message = message; - delete response.Message; - return Promise.reject(Object.assign(new Error(message), response)); -}; -const deserializeAws_json1_1BatchDeleteImageCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_json1_1BatchDeleteImageCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_json1_1BatchDeleteImageResponse(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return Promise.resolve(response); -}; -exports.deserializeAws_json1_1BatchDeleteImageCommand = deserializeAws_json1_1BatchDeleteImageCommand; -const deserializeAws_json1_1BatchDeleteImageCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context), - }; - let response; - let errorCode = "UnknownError"; - errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InvalidParameterException": - case "com.amazonaws.ecrpublic#InvalidParameterException": - response = { - ...(await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)), - name: errorCode, - $metadata: deserializeMetadata(output), - }; - break; - case "RepositoryNotFoundException": - case "com.amazonaws.ecrpublic#RepositoryNotFoundException": - response = { - ...(await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(parsedOutput, context)), - name: errorCode, - $metadata: deserializeMetadata(output), - }; - break; - case "ServerException": - case "com.amazonaws.ecrpublic#ServerException": - response = { - ...(await deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context)), - name: errorCode, - $metadata: deserializeMetadata(output), - }; - break; - default: - const parsedBody = parsedOutput.body; - errorCode = parsedBody.code || parsedBody.Code || errorCode; - response = { - ...parsedBody, - name: `${errorCode}`, - message: parsedBody.message || parsedBody.Message || errorCode, - $fault: "client", - $metadata: deserializeMetadata(output), - }; - } - const message = response.message || response.Message || errorCode; - response.message = message; - delete response.Message; - return Promise.reject(Object.assign(new Error(message), response)); -}; -const deserializeAws_json1_1CompleteLayerUploadCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_json1_1CompleteLayerUploadCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_json1_1CompleteLayerUploadResponse(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return Promise.resolve(response); -}; -exports.deserializeAws_json1_1CompleteLayerUploadCommand = deserializeAws_json1_1CompleteLayerUploadCommand; -const deserializeAws_json1_1CompleteLayerUploadCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context), - }; - let response; - let errorCode = "UnknownError"; - errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "EmptyUploadException": - case "com.amazonaws.ecrpublic#EmptyUploadException": - response = { - ...(await deserializeAws_json1_1EmptyUploadExceptionResponse(parsedOutput, context)), - name: errorCode, - $metadata: deserializeMetadata(output), - }; - break; - case "InvalidLayerException": - case "com.amazonaws.ecrpublic#InvalidLayerException": - response = { - ...(await deserializeAws_json1_1InvalidLayerExceptionResponse(parsedOutput, context)), - name: errorCode, - $metadata: deserializeMetadata(output), - }; - break; - case "InvalidParameterException": - case "com.amazonaws.ecrpublic#InvalidParameterException": - response = { - ...(await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)), - name: errorCode, - $metadata: deserializeMetadata(output), - }; - break; - case "LayerAlreadyExistsException": - case "com.amazonaws.ecrpublic#LayerAlreadyExistsException": - response = { - ...(await deserializeAws_json1_1LayerAlreadyExistsExceptionResponse(parsedOutput, context)), - name: errorCode, - $metadata: deserializeMetadata(output), - }; - break; - case "LayerPartTooSmallException": - case "com.amazonaws.ecrpublic#LayerPartTooSmallException": - response = { - ...(await deserializeAws_json1_1LayerPartTooSmallExceptionResponse(parsedOutput, context)), - name: errorCode, - $metadata: deserializeMetadata(output), - }; - break; - case "RegistryNotFoundException": - case "com.amazonaws.ecrpublic#RegistryNotFoundException": - response = { - ...(await deserializeAws_json1_1RegistryNotFoundExceptionResponse(parsedOutput, context)), - name: errorCode, - $metadata: deserializeMetadata(output), - }; - break; - case "RepositoryNotFoundException": - case "com.amazonaws.ecrpublic#RepositoryNotFoundException": - response = { - ...(await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(parsedOutput, context)), - name: errorCode, - $metadata: deserializeMetadata(output), - }; - break; - case "ServerException": - case "com.amazonaws.ecrpublic#ServerException": - response = { - ...(await deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context)), - name: errorCode, - $metadata: deserializeMetadata(output), - }; - break; - case "UnsupportedCommandException": - case "com.amazonaws.ecrpublic#UnsupportedCommandException": - response = { - ...(await deserializeAws_json1_1UnsupportedCommandExceptionResponse(parsedOutput, context)), - name: errorCode, - $metadata: deserializeMetadata(output), - }; - break; - case "UploadNotFoundException": - case "com.amazonaws.ecrpublic#UploadNotFoundException": - response = { - ...(await deserializeAws_json1_1UploadNotFoundExceptionResponse(parsedOutput, context)), - name: errorCode, - $metadata: deserializeMetadata(output), - }; - break; - default: - const parsedBody = parsedOutput.body; - errorCode = parsedBody.code || parsedBody.Code || errorCode; - response = { - ...parsedBody, - name: `${errorCode}`, - message: parsedBody.message || parsedBody.Message || errorCode, - $fault: "client", - $metadata: deserializeMetadata(output), - }; - } - const message = response.message || response.Message || errorCode; - response.message = message; - delete response.Message; - return Promise.reject(Object.assign(new Error(message), response)); -}; -const deserializeAws_json1_1CreateRepositoryCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_json1_1CreateRepositoryCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_json1_1CreateRepositoryResponse(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return Promise.resolve(response); -}; -exports.deserializeAws_json1_1CreateRepositoryCommand = deserializeAws_json1_1CreateRepositoryCommand; -const deserializeAws_json1_1CreateRepositoryCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context), - }; - let response; - let errorCode = "UnknownError"; - errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InvalidParameterException": - case "com.amazonaws.ecrpublic#InvalidParameterException": - response = { - ...(await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)), - name: errorCode, - $metadata: deserializeMetadata(output), - }; - break; - case "InvalidTagParameterException": - case "com.amazonaws.ecrpublic#InvalidTagParameterException": - response = { - ...(await deserializeAws_json1_1InvalidTagParameterExceptionResponse(parsedOutput, context)), - name: errorCode, - $metadata: deserializeMetadata(output), - }; - break; - case "LimitExceededException": - case "com.amazonaws.ecrpublic#LimitExceededException": - response = { - ...(await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)), - name: errorCode, - $metadata: deserializeMetadata(output), - }; - break; - case "RepositoryAlreadyExistsException": - case "com.amazonaws.ecrpublic#RepositoryAlreadyExistsException": - response = { - ...(await deserializeAws_json1_1RepositoryAlreadyExistsExceptionResponse(parsedOutput, context)), - name: errorCode, - $metadata: deserializeMetadata(output), - }; - break; - case "ServerException": - case "com.amazonaws.ecrpublic#ServerException": - response = { - ...(await deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context)), - name: errorCode, - $metadata: deserializeMetadata(output), - }; - break; - case "TooManyTagsException": - case "com.amazonaws.ecrpublic#TooManyTagsException": - response = { - ...(await deserializeAws_json1_1TooManyTagsExceptionResponse(parsedOutput, context)), - name: errorCode, - $metadata: deserializeMetadata(output), - }; - break; - default: - const parsedBody = parsedOutput.body; - errorCode = parsedBody.code || parsedBody.Code || errorCode; - response = { - ...parsedBody, - name: `${errorCode}`, - message: parsedBody.message || parsedBody.Message || errorCode, - $fault: "client", - $metadata: deserializeMetadata(output), - }; - } - const message = response.message || response.Message || errorCode; - response.message = message; - delete response.Message; - return Promise.reject(Object.assign(new Error(message), response)); -}; -const deserializeAws_json1_1DeleteRepositoryCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_json1_1DeleteRepositoryCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_json1_1DeleteRepositoryResponse(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return Promise.resolve(response); -}; -exports.deserializeAws_json1_1DeleteRepositoryCommand = deserializeAws_json1_1DeleteRepositoryCommand; -const deserializeAws_json1_1DeleteRepositoryCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context), - }; - let response; - let errorCode = "UnknownError"; - errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InvalidParameterException": - case "com.amazonaws.ecrpublic#InvalidParameterException": - response = { - ...(await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)), - name: errorCode, - $metadata: deserializeMetadata(output), - }; - break; - case "RepositoryNotEmptyException": - case "com.amazonaws.ecrpublic#RepositoryNotEmptyException": - response = { - ...(await deserializeAws_json1_1RepositoryNotEmptyExceptionResponse(parsedOutput, context)), - name: errorCode, - $metadata: deserializeMetadata(output), - }; - break; - case "RepositoryNotFoundException": - case "com.amazonaws.ecrpublic#RepositoryNotFoundException": - response = { - ...(await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(parsedOutput, context)), - name: errorCode, - $metadata: deserializeMetadata(output), - }; - break; - case "ServerException": - case "com.amazonaws.ecrpublic#ServerException": - response = { - ...(await deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context)), - name: errorCode, - $metadata: deserializeMetadata(output), - }; - break; - default: - const parsedBody = parsedOutput.body; - errorCode = parsedBody.code || parsedBody.Code || errorCode; - response = { - ...parsedBody, - name: `${errorCode}`, - message: parsedBody.message || parsedBody.Message || errorCode, - $fault: "client", - $metadata: deserializeMetadata(output), - }; - } - const message = response.message || response.Message || errorCode; - response.message = message; - delete response.Message; - return Promise.reject(Object.assign(new Error(message), response)); -}; -const deserializeAws_json1_1DeleteRepositoryPolicyCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_json1_1DeleteRepositoryPolicyCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_json1_1DeleteRepositoryPolicyResponse(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return Promise.resolve(response); -}; -exports.deserializeAws_json1_1DeleteRepositoryPolicyCommand = deserializeAws_json1_1DeleteRepositoryPolicyCommand; -const deserializeAws_json1_1DeleteRepositoryPolicyCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context), - }; - let response; - let errorCode = "UnknownError"; - errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InvalidParameterException": - case "com.amazonaws.ecrpublic#InvalidParameterException": - response = { - ...(await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)), - name: errorCode, - $metadata: deserializeMetadata(output), - }; - break; - case "RepositoryNotFoundException": - case "com.amazonaws.ecrpublic#RepositoryNotFoundException": - response = { - ...(await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(parsedOutput, context)), - name: errorCode, - $metadata: deserializeMetadata(output), - }; - break; - case "RepositoryPolicyNotFoundException": - case "com.amazonaws.ecrpublic#RepositoryPolicyNotFoundException": - response = { - ...(await deserializeAws_json1_1RepositoryPolicyNotFoundExceptionResponse(parsedOutput, context)), - name: errorCode, - $metadata: deserializeMetadata(output), - }; - break; - case "ServerException": - case "com.amazonaws.ecrpublic#ServerException": - response = { - ...(await deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context)), - name: errorCode, - $metadata: deserializeMetadata(output), - }; - break; - default: - const parsedBody = parsedOutput.body; - errorCode = parsedBody.code || parsedBody.Code || errorCode; - response = { - ...parsedBody, - name: `${errorCode}`, - message: parsedBody.message || parsedBody.Message || errorCode, - $fault: "client", - $metadata: deserializeMetadata(output), - }; - } - const message = response.message || response.Message || errorCode; - response.message = message; - delete response.Message; - return Promise.reject(Object.assign(new Error(message), response)); -}; -const deserializeAws_json1_1DescribeImagesCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_json1_1DescribeImagesCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_json1_1DescribeImagesResponse(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return Promise.resolve(response); -}; -exports.deserializeAws_json1_1DescribeImagesCommand = deserializeAws_json1_1DescribeImagesCommand; -const deserializeAws_json1_1DescribeImagesCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context), - }; - let response; - let errorCode = "UnknownError"; - errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "ImageNotFoundException": - case "com.amazonaws.ecrpublic#ImageNotFoundException": - response = { - ...(await deserializeAws_json1_1ImageNotFoundExceptionResponse(parsedOutput, context)), - name: errorCode, - $metadata: deserializeMetadata(output), - }; - break; - case "InvalidParameterException": - case "com.amazonaws.ecrpublic#InvalidParameterException": - response = { - ...(await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)), - name: errorCode, - $metadata: deserializeMetadata(output), - }; - break; - case "RepositoryNotFoundException": - case "com.amazonaws.ecrpublic#RepositoryNotFoundException": - response = { - ...(await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(parsedOutput, context)), - name: errorCode, - $metadata: deserializeMetadata(output), - }; - break; - case "ServerException": - case "com.amazonaws.ecrpublic#ServerException": - response = { - ...(await deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context)), - name: errorCode, - $metadata: deserializeMetadata(output), - }; - break; - default: - const parsedBody = parsedOutput.body; - errorCode = parsedBody.code || parsedBody.Code || errorCode; - response = { - ...parsedBody, - name: `${errorCode}`, - message: parsedBody.message || parsedBody.Message || errorCode, - $fault: "client", - $metadata: deserializeMetadata(output), - }; - } - const message = response.message || response.Message || errorCode; - response.message = message; - delete response.Message; - return Promise.reject(Object.assign(new Error(message), response)); -}; -const deserializeAws_json1_1DescribeImageTagsCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_json1_1DescribeImageTagsCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_json1_1DescribeImageTagsResponse(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return Promise.resolve(response); -}; -exports.deserializeAws_json1_1DescribeImageTagsCommand = deserializeAws_json1_1DescribeImageTagsCommand; -const deserializeAws_json1_1DescribeImageTagsCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context), - }; - let response; - let errorCode = "UnknownError"; - errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InvalidParameterException": - case "com.amazonaws.ecrpublic#InvalidParameterException": - response = { - ...(await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)), - name: errorCode, - $metadata: deserializeMetadata(output), - }; - break; - case "RepositoryNotFoundException": - case "com.amazonaws.ecrpublic#RepositoryNotFoundException": - response = { - ...(await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(parsedOutput, context)), - name: errorCode, - $metadata: deserializeMetadata(output), - }; - break; - case "ServerException": - case "com.amazonaws.ecrpublic#ServerException": - response = { - ...(await deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context)), - name: errorCode, - $metadata: deserializeMetadata(output), - }; - break; - default: - const parsedBody = parsedOutput.body; - errorCode = parsedBody.code || parsedBody.Code || errorCode; - response = { - ...parsedBody, - name: `${errorCode}`, - message: parsedBody.message || parsedBody.Message || errorCode, - $fault: "client", - $metadata: deserializeMetadata(output), - }; - } - const message = response.message || response.Message || errorCode; - response.message = message; - delete response.Message; - return Promise.reject(Object.assign(new Error(message), response)); -}; -const deserializeAws_json1_1DescribeRegistriesCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_json1_1DescribeRegistriesCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_json1_1DescribeRegistriesResponse(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return Promise.resolve(response); -}; -exports.deserializeAws_json1_1DescribeRegistriesCommand = deserializeAws_json1_1DescribeRegistriesCommand; -const deserializeAws_json1_1DescribeRegistriesCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context), - }; - let response; - let errorCode = "UnknownError"; - errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InvalidParameterException": - case "com.amazonaws.ecrpublic#InvalidParameterException": - response = { - ...(await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)), - name: errorCode, - $metadata: deserializeMetadata(output), - }; - break; - case "ServerException": - case "com.amazonaws.ecrpublic#ServerException": - response = { - ...(await deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context)), - name: errorCode, - $metadata: deserializeMetadata(output), - }; - break; - case "UnsupportedCommandException": - case "com.amazonaws.ecrpublic#UnsupportedCommandException": - response = { - ...(await deserializeAws_json1_1UnsupportedCommandExceptionResponse(parsedOutput, context)), - name: errorCode, - $metadata: deserializeMetadata(output), - }; - break; - default: - const parsedBody = parsedOutput.body; - errorCode = parsedBody.code || parsedBody.Code || errorCode; - response = { - ...parsedBody, - name: `${errorCode}`, - message: parsedBody.message || parsedBody.Message || errorCode, - $fault: "client", - $metadata: deserializeMetadata(output), - }; - } - const message = response.message || response.Message || errorCode; - response.message = message; - delete response.Message; - return Promise.reject(Object.assign(new Error(message), response)); -}; -const deserializeAws_json1_1DescribeRepositoriesCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_json1_1DescribeRepositoriesCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_json1_1DescribeRepositoriesResponse(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return Promise.resolve(response); -}; -exports.deserializeAws_json1_1DescribeRepositoriesCommand = deserializeAws_json1_1DescribeRepositoriesCommand; -const deserializeAws_json1_1DescribeRepositoriesCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context), - }; - let response; - let errorCode = "UnknownError"; - errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InvalidParameterException": - case "com.amazonaws.ecrpublic#InvalidParameterException": - response = { - ...(await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)), - name: errorCode, - $metadata: deserializeMetadata(output), - }; - break; - case "RepositoryNotFoundException": - case "com.amazonaws.ecrpublic#RepositoryNotFoundException": - response = { - ...(await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(parsedOutput, context)), - name: errorCode, - $metadata: deserializeMetadata(output), - }; - break; - case "ServerException": - case "com.amazonaws.ecrpublic#ServerException": - response = { - ...(await deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context)), - name: errorCode, - $metadata: deserializeMetadata(output), - }; - break; - default: - const parsedBody = parsedOutput.body; - errorCode = parsedBody.code || parsedBody.Code || errorCode; - response = { - ...parsedBody, - name: `${errorCode}`, - message: parsedBody.message || parsedBody.Message || errorCode, - $fault: "client", - $metadata: deserializeMetadata(output), - }; - } - const message = response.message || response.Message || errorCode; - response.message = message; - delete response.Message; - return Promise.reject(Object.assign(new Error(message), response)); -}; -const deserializeAws_json1_1GetAuthorizationTokenCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_json1_1GetAuthorizationTokenCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_json1_1GetAuthorizationTokenResponse(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return Promise.resolve(response); -}; -exports.deserializeAws_json1_1GetAuthorizationTokenCommand = deserializeAws_json1_1GetAuthorizationTokenCommand; -const deserializeAws_json1_1GetAuthorizationTokenCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context), - }; - let response; - let errorCode = "UnknownError"; - errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InvalidParameterException": - case "com.amazonaws.ecrpublic#InvalidParameterException": - response = { - ...(await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)), - name: errorCode, - $metadata: deserializeMetadata(output), - }; - break; - case "ServerException": - case "com.amazonaws.ecrpublic#ServerException": - response = { - ...(await deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context)), - name: errorCode, - $metadata: deserializeMetadata(output), - }; - break; - default: - const parsedBody = parsedOutput.body; - errorCode = parsedBody.code || parsedBody.Code || errorCode; - response = { - ...parsedBody, - name: `${errorCode}`, - message: parsedBody.message || parsedBody.Message || errorCode, - $fault: "client", - $metadata: deserializeMetadata(output), - }; - } - const message = response.message || response.Message || errorCode; - response.message = message; - delete response.Message; - return Promise.reject(Object.assign(new Error(message), response)); -}; -const deserializeAws_json1_1GetRegistryCatalogDataCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_json1_1GetRegistryCatalogDataCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_json1_1GetRegistryCatalogDataResponse(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return Promise.resolve(response); -}; -exports.deserializeAws_json1_1GetRegistryCatalogDataCommand = deserializeAws_json1_1GetRegistryCatalogDataCommand; -const deserializeAws_json1_1GetRegistryCatalogDataCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context), - }; - let response; - let errorCode = "UnknownError"; - errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "ServerException": - case "com.amazonaws.ecrpublic#ServerException": - response = { - ...(await deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context)), - name: errorCode, - $metadata: deserializeMetadata(output), - }; - break; - case "UnsupportedCommandException": - case "com.amazonaws.ecrpublic#UnsupportedCommandException": - response = { - ...(await deserializeAws_json1_1UnsupportedCommandExceptionResponse(parsedOutput, context)), - name: errorCode, - $metadata: deserializeMetadata(output), - }; - break; - default: - const parsedBody = parsedOutput.body; - errorCode = parsedBody.code || parsedBody.Code || errorCode; - response = { - ...parsedBody, - name: `${errorCode}`, - message: parsedBody.message || parsedBody.Message || errorCode, - $fault: "client", - $metadata: deserializeMetadata(output), - }; - } - const message = response.message || response.Message || errorCode; - response.message = message; - delete response.Message; - return Promise.reject(Object.assign(new Error(message), response)); -}; -const deserializeAws_json1_1GetRepositoryCatalogDataCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_json1_1GetRepositoryCatalogDataCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_json1_1GetRepositoryCatalogDataResponse(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return Promise.resolve(response); -}; -exports.deserializeAws_json1_1GetRepositoryCatalogDataCommand = deserializeAws_json1_1GetRepositoryCatalogDataCommand; -const deserializeAws_json1_1GetRepositoryCatalogDataCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context), - }; - let response; - let errorCode = "UnknownError"; - errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InvalidParameterException": - case "com.amazonaws.ecrpublic#InvalidParameterException": - response = { - ...(await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)), - name: errorCode, - $metadata: deserializeMetadata(output), - }; - break; - case "RepositoryNotFoundException": - case "com.amazonaws.ecrpublic#RepositoryNotFoundException": - response = { - ...(await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(parsedOutput, context)), - name: errorCode, - $metadata: deserializeMetadata(output), - }; - break; - case "ServerException": - case "com.amazonaws.ecrpublic#ServerException": - response = { - ...(await deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context)), - name: errorCode, - $metadata: deserializeMetadata(output), - }; - break; - default: - const parsedBody = parsedOutput.body; - errorCode = parsedBody.code || parsedBody.Code || errorCode; - response = { - ...parsedBody, - name: `${errorCode}`, - message: parsedBody.message || parsedBody.Message || errorCode, - $fault: "client", - $metadata: deserializeMetadata(output), - }; - } - const message = response.message || response.Message || errorCode; - response.message = message; - delete response.Message; - return Promise.reject(Object.assign(new Error(message), response)); -}; -const deserializeAws_json1_1GetRepositoryPolicyCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_json1_1GetRepositoryPolicyCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_json1_1GetRepositoryPolicyResponse(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return Promise.resolve(response); -}; -exports.deserializeAws_json1_1GetRepositoryPolicyCommand = deserializeAws_json1_1GetRepositoryPolicyCommand; -const deserializeAws_json1_1GetRepositoryPolicyCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context), - }; - let response; - let errorCode = "UnknownError"; - errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InvalidParameterException": - case "com.amazonaws.ecrpublic#InvalidParameterException": - response = { - ...(await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)), - name: errorCode, - $metadata: deserializeMetadata(output), - }; - break; - case "RepositoryNotFoundException": - case "com.amazonaws.ecrpublic#RepositoryNotFoundException": - response = { - ...(await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(parsedOutput, context)), - name: errorCode, - $metadata: deserializeMetadata(output), - }; - break; - case "RepositoryPolicyNotFoundException": - case "com.amazonaws.ecrpublic#RepositoryPolicyNotFoundException": - response = { - ...(await deserializeAws_json1_1RepositoryPolicyNotFoundExceptionResponse(parsedOutput, context)), - name: errorCode, - $metadata: deserializeMetadata(output), - }; - break; - case "ServerException": - case "com.amazonaws.ecrpublic#ServerException": - response = { - ...(await deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context)), - name: errorCode, - $metadata: deserializeMetadata(output), - }; - break; - default: - const parsedBody = parsedOutput.body; - errorCode = parsedBody.code || parsedBody.Code || errorCode; - response = { - ...parsedBody, - name: `${errorCode}`, - message: parsedBody.message || parsedBody.Message || errorCode, - $fault: "client", - $metadata: deserializeMetadata(output), - }; - } - const message = response.message || response.Message || errorCode; - response.message = message; - delete response.Message; - return Promise.reject(Object.assign(new Error(message), response)); -}; -const deserializeAws_json1_1InitiateLayerUploadCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_json1_1InitiateLayerUploadCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_json1_1InitiateLayerUploadResponse(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return Promise.resolve(response); -}; -exports.deserializeAws_json1_1InitiateLayerUploadCommand = deserializeAws_json1_1InitiateLayerUploadCommand; -const deserializeAws_json1_1InitiateLayerUploadCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context), - }; - let response; - let errorCode = "UnknownError"; - errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InvalidParameterException": - case "com.amazonaws.ecrpublic#InvalidParameterException": - response = { - ...(await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)), - name: errorCode, - $metadata: deserializeMetadata(output), - }; - break; - case "RegistryNotFoundException": - case "com.amazonaws.ecrpublic#RegistryNotFoundException": - response = { - ...(await deserializeAws_json1_1RegistryNotFoundExceptionResponse(parsedOutput, context)), - name: errorCode, - $metadata: deserializeMetadata(output), - }; - break; - case "RepositoryNotFoundException": - case "com.amazonaws.ecrpublic#RepositoryNotFoundException": - response = { - ...(await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(parsedOutput, context)), - name: errorCode, - $metadata: deserializeMetadata(output), - }; - break; - case "ServerException": - case "com.amazonaws.ecrpublic#ServerException": - response = { - ...(await deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context)), - name: errorCode, - $metadata: deserializeMetadata(output), - }; - break; - case "UnsupportedCommandException": - case "com.amazonaws.ecrpublic#UnsupportedCommandException": - response = { - ...(await deserializeAws_json1_1UnsupportedCommandExceptionResponse(parsedOutput, context)), - name: errorCode, - $metadata: deserializeMetadata(output), - }; - break; - default: - const parsedBody = parsedOutput.body; - errorCode = parsedBody.code || parsedBody.Code || errorCode; - response = { - ...parsedBody, - name: `${errorCode}`, - message: parsedBody.message || parsedBody.Message || errorCode, - $fault: "client", - $metadata: deserializeMetadata(output), - }; - } - const message = response.message || response.Message || errorCode; - response.message = message; - delete response.Message; - return Promise.reject(Object.assign(new Error(message), response)); -}; -const deserializeAws_json1_1ListTagsForResourceCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_json1_1ListTagsForResourceCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_json1_1ListTagsForResourceResponse(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return Promise.resolve(response); -}; -exports.deserializeAws_json1_1ListTagsForResourceCommand = deserializeAws_json1_1ListTagsForResourceCommand; -const deserializeAws_json1_1ListTagsForResourceCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context), - }; - let response; - let errorCode = "UnknownError"; - errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InvalidParameterException": - case "com.amazonaws.ecrpublic#InvalidParameterException": - response = { - ...(await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)), - name: errorCode, - $metadata: deserializeMetadata(output), - }; - break; - case "RepositoryNotFoundException": - case "com.amazonaws.ecrpublic#RepositoryNotFoundException": - response = { - ...(await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(parsedOutput, context)), - name: errorCode, - $metadata: deserializeMetadata(output), - }; - break; - case "ServerException": - case "com.amazonaws.ecrpublic#ServerException": - response = { - ...(await deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context)), - name: errorCode, - $metadata: deserializeMetadata(output), - }; - break; - default: - const parsedBody = parsedOutput.body; - errorCode = parsedBody.code || parsedBody.Code || errorCode; - response = { - ...parsedBody, - name: `${errorCode}`, - message: parsedBody.message || parsedBody.Message || errorCode, - $fault: "client", - $metadata: deserializeMetadata(output), - }; - } - const message = response.message || response.Message || errorCode; - response.message = message; - delete response.Message; - return Promise.reject(Object.assign(new Error(message), response)); -}; -const deserializeAws_json1_1PutImageCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_json1_1PutImageCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_json1_1PutImageResponse(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return Promise.resolve(response); -}; -exports.deserializeAws_json1_1PutImageCommand = deserializeAws_json1_1PutImageCommand; -const deserializeAws_json1_1PutImageCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context), - }; - let response; - let errorCode = "UnknownError"; - errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "ImageAlreadyExistsException": - case "com.amazonaws.ecrpublic#ImageAlreadyExistsException": - response = { - ...(await deserializeAws_json1_1ImageAlreadyExistsExceptionResponse(parsedOutput, context)), - name: errorCode, - $metadata: deserializeMetadata(output), - }; - break; - case "ImageDigestDoesNotMatchException": - case "com.amazonaws.ecrpublic#ImageDigestDoesNotMatchException": - response = { - ...(await deserializeAws_json1_1ImageDigestDoesNotMatchExceptionResponse(parsedOutput, context)), - name: errorCode, - $metadata: deserializeMetadata(output), - }; - break; - case "ImageTagAlreadyExistsException": - case "com.amazonaws.ecrpublic#ImageTagAlreadyExistsException": - response = { - ...(await deserializeAws_json1_1ImageTagAlreadyExistsExceptionResponse(parsedOutput, context)), - name: errorCode, - $metadata: deserializeMetadata(output), - }; - break; - case "InvalidParameterException": - case "com.amazonaws.ecrpublic#InvalidParameterException": - response = { - ...(await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)), - name: errorCode, - $metadata: deserializeMetadata(output), - }; - break; - case "LayersNotFoundException": - case "com.amazonaws.ecrpublic#LayersNotFoundException": - response = { - ...(await deserializeAws_json1_1LayersNotFoundExceptionResponse(parsedOutput, context)), - name: errorCode, - $metadata: deserializeMetadata(output), - }; - break; - case "LimitExceededException": - case "com.amazonaws.ecrpublic#LimitExceededException": - response = { - ...(await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)), - name: errorCode, - $metadata: deserializeMetadata(output), - }; - break; - case "ReferencedImagesNotFoundException": - case "com.amazonaws.ecrpublic#ReferencedImagesNotFoundException": - response = { - ...(await deserializeAws_json1_1ReferencedImagesNotFoundExceptionResponse(parsedOutput, context)), - name: errorCode, - $metadata: deserializeMetadata(output), - }; - break; - case "RegistryNotFoundException": - case "com.amazonaws.ecrpublic#RegistryNotFoundException": - response = { - ...(await deserializeAws_json1_1RegistryNotFoundExceptionResponse(parsedOutput, context)), - name: errorCode, - $metadata: deserializeMetadata(output), - }; - break; - case "RepositoryNotFoundException": - case "com.amazonaws.ecrpublic#RepositoryNotFoundException": - response = { - ...(await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(parsedOutput, context)), - name: errorCode, - $metadata: deserializeMetadata(output), - }; - break; - case "ServerException": - case "com.amazonaws.ecrpublic#ServerException": - response = { - ...(await deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context)), - name: errorCode, - $metadata: deserializeMetadata(output), - }; - break; - case "UnsupportedCommandException": - case "com.amazonaws.ecrpublic#UnsupportedCommandException": - response = { - ...(await deserializeAws_json1_1UnsupportedCommandExceptionResponse(parsedOutput, context)), - name: errorCode, - $metadata: deserializeMetadata(output), - }; - break; - default: - const parsedBody = parsedOutput.body; - errorCode = parsedBody.code || parsedBody.Code || errorCode; - response = { - ...parsedBody, - name: `${errorCode}`, - message: parsedBody.message || parsedBody.Message || errorCode, - $fault: "client", - $metadata: deserializeMetadata(output), - }; - } - const message = response.message || response.Message || errorCode; - response.message = message; - delete response.Message; - return Promise.reject(Object.assign(new Error(message), response)); -}; -const deserializeAws_json1_1PutRegistryCatalogDataCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_json1_1PutRegistryCatalogDataCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_json1_1PutRegistryCatalogDataResponse(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return Promise.resolve(response); -}; -exports.deserializeAws_json1_1PutRegistryCatalogDataCommand = deserializeAws_json1_1PutRegistryCatalogDataCommand; -const deserializeAws_json1_1PutRegistryCatalogDataCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context), - }; - let response; - let errorCode = "UnknownError"; - errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InvalidParameterException": - case "com.amazonaws.ecrpublic#InvalidParameterException": - response = { - ...(await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)), - name: errorCode, - $metadata: deserializeMetadata(output), - }; - break; - case "ServerException": - case "com.amazonaws.ecrpublic#ServerException": - response = { - ...(await deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context)), - name: errorCode, - $metadata: deserializeMetadata(output), - }; - break; - case "UnsupportedCommandException": - case "com.amazonaws.ecrpublic#UnsupportedCommandException": - response = { - ...(await deserializeAws_json1_1UnsupportedCommandExceptionResponse(parsedOutput, context)), - name: errorCode, - $metadata: deserializeMetadata(output), - }; - break; - default: - const parsedBody = parsedOutput.body; - errorCode = parsedBody.code || parsedBody.Code || errorCode; - response = { - ...parsedBody, - name: `${errorCode}`, - message: parsedBody.message || parsedBody.Message || errorCode, - $fault: "client", - $metadata: deserializeMetadata(output), - }; - } - const message = response.message || response.Message || errorCode; - response.message = message; - delete response.Message; - return Promise.reject(Object.assign(new Error(message), response)); -}; -const deserializeAws_json1_1PutRepositoryCatalogDataCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_json1_1PutRepositoryCatalogDataCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_json1_1PutRepositoryCatalogDataResponse(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return Promise.resolve(response); -}; -exports.deserializeAws_json1_1PutRepositoryCatalogDataCommand = deserializeAws_json1_1PutRepositoryCatalogDataCommand; -const deserializeAws_json1_1PutRepositoryCatalogDataCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context), - }; - let response; - let errorCode = "UnknownError"; - errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InvalidParameterException": - case "com.amazonaws.ecrpublic#InvalidParameterException": - response = { - ...(await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)), - name: errorCode, - $metadata: deserializeMetadata(output), - }; - break; - case "RepositoryNotFoundException": - case "com.amazonaws.ecrpublic#RepositoryNotFoundException": - response = { - ...(await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(parsedOutput, context)), - name: errorCode, - $metadata: deserializeMetadata(output), - }; - break; - case "ServerException": - case "com.amazonaws.ecrpublic#ServerException": - response = { - ...(await deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context)), - name: errorCode, - $metadata: deserializeMetadata(output), - }; - break; - default: - const parsedBody = parsedOutput.body; - errorCode = parsedBody.code || parsedBody.Code || errorCode; - response = { - ...parsedBody, - name: `${errorCode}`, - message: parsedBody.message || parsedBody.Message || errorCode, - $fault: "client", - $metadata: deserializeMetadata(output), - }; - } - const message = response.message || response.Message || errorCode; - response.message = message; - delete response.Message; - return Promise.reject(Object.assign(new Error(message), response)); -}; -const deserializeAws_json1_1SetRepositoryPolicyCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_json1_1SetRepositoryPolicyCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_json1_1SetRepositoryPolicyResponse(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return Promise.resolve(response); -}; -exports.deserializeAws_json1_1SetRepositoryPolicyCommand = deserializeAws_json1_1SetRepositoryPolicyCommand; -const deserializeAws_json1_1SetRepositoryPolicyCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context), - }; - let response; - let errorCode = "UnknownError"; - errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InvalidParameterException": - case "com.amazonaws.ecrpublic#InvalidParameterException": - response = { - ...(await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)), - name: errorCode, - $metadata: deserializeMetadata(output), - }; - break; - case "RepositoryNotFoundException": - case "com.amazonaws.ecrpublic#RepositoryNotFoundException": - response = { - ...(await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(parsedOutput, context)), - name: errorCode, - $metadata: deserializeMetadata(output), - }; - break; - case "ServerException": - case "com.amazonaws.ecrpublic#ServerException": - response = { - ...(await deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context)), - name: errorCode, - $metadata: deserializeMetadata(output), - }; - break; - default: - const parsedBody = parsedOutput.body; - errorCode = parsedBody.code || parsedBody.Code || errorCode; - response = { - ...parsedBody, - name: `${errorCode}`, - message: parsedBody.message || parsedBody.Message || errorCode, - $fault: "client", - $metadata: deserializeMetadata(output), - }; - } - const message = response.message || response.Message || errorCode; - response.message = message; - delete response.Message; - return Promise.reject(Object.assign(new Error(message), response)); -}; -const deserializeAws_json1_1TagResourceCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_json1_1TagResourceCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_json1_1TagResourceResponse(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return Promise.resolve(response); -}; -exports.deserializeAws_json1_1TagResourceCommand = deserializeAws_json1_1TagResourceCommand; -const deserializeAws_json1_1TagResourceCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context), - }; - let response; - let errorCode = "UnknownError"; - errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InvalidParameterException": - case "com.amazonaws.ecrpublic#InvalidParameterException": - response = { - ...(await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)), - name: errorCode, - $metadata: deserializeMetadata(output), - }; - break; - case "InvalidTagParameterException": - case "com.amazonaws.ecrpublic#InvalidTagParameterException": - response = { - ...(await deserializeAws_json1_1InvalidTagParameterExceptionResponse(parsedOutput, context)), - name: errorCode, - $metadata: deserializeMetadata(output), - }; - break; - case "RepositoryNotFoundException": - case "com.amazonaws.ecrpublic#RepositoryNotFoundException": - response = { - ...(await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(parsedOutput, context)), - name: errorCode, - $metadata: deserializeMetadata(output), - }; - break; - case "ServerException": - case "com.amazonaws.ecrpublic#ServerException": - response = { - ...(await deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context)), - name: errorCode, - $metadata: deserializeMetadata(output), - }; - break; - case "TooManyTagsException": - case "com.amazonaws.ecrpublic#TooManyTagsException": - response = { - ...(await deserializeAws_json1_1TooManyTagsExceptionResponse(parsedOutput, context)), - name: errorCode, - $metadata: deserializeMetadata(output), - }; - break; - default: - const parsedBody = parsedOutput.body; - errorCode = parsedBody.code || parsedBody.Code || errorCode; - response = { - ...parsedBody, - name: `${errorCode}`, - message: parsedBody.message || parsedBody.Message || errorCode, - $fault: "client", - $metadata: deserializeMetadata(output), - }; - } - const message = response.message || response.Message || errorCode; - response.message = message; - delete response.Message; - return Promise.reject(Object.assign(new Error(message), response)); -}; -const deserializeAws_json1_1UntagResourceCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_json1_1UntagResourceCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_json1_1UntagResourceResponse(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return Promise.resolve(response); -}; -exports.deserializeAws_json1_1UntagResourceCommand = deserializeAws_json1_1UntagResourceCommand; -const deserializeAws_json1_1UntagResourceCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context), - }; - let response; - let errorCode = "UnknownError"; - errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InvalidParameterException": - case "com.amazonaws.ecrpublic#InvalidParameterException": - response = { - ...(await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)), - name: errorCode, - $metadata: deserializeMetadata(output), - }; - break; - case "InvalidTagParameterException": - case "com.amazonaws.ecrpublic#InvalidTagParameterException": - response = { - ...(await deserializeAws_json1_1InvalidTagParameterExceptionResponse(parsedOutput, context)), - name: errorCode, - $metadata: deserializeMetadata(output), - }; - break; - case "RepositoryNotFoundException": - case "com.amazonaws.ecrpublic#RepositoryNotFoundException": - response = { - ...(await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(parsedOutput, context)), - name: errorCode, - $metadata: deserializeMetadata(output), - }; - break; - case "ServerException": - case "com.amazonaws.ecrpublic#ServerException": - response = { - ...(await deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context)), - name: errorCode, - $metadata: deserializeMetadata(output), - }; - break; - case "TooManyTagsException": - case "com.amazonaws.ecrpublic#TooManyTagsException": - response = { - ...(await deserializeAws_json1_1TooManyTagsExceptionResponse(parsedOutput, context)), - name: errorCode, - $metadata: deserializeMetadata(output), - }; - break; - default: - const parsedBody = parsedOutput.body; - errorCode = parsedBody.code || parsedBody.Code || errorCode; - response = { - ...parsedBody, - name: `${errorCode}`, - message: parsedBody.message || parsedBody.Message || errorCode, - $fault: "client", - $metadata: deserializeMetadata(output), - }; - } - const message = response.message || response.Message || errorCode; - response.message = message; - delete response.Message; - return Promise.reject(Object.assign(new Error(message), response)); -}; -const deserializeAws_json1_1UploadLayerPartCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_json1_1UploadLayerPartCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_json1_1UploadLayerPartResponse(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return Promise.resolve(response); -}; -exports.deserializeAws_json1_1UploadLayerPartCommand = deserializeAws_json1_1UploadLayerPartCommand; -const deserializeAws_json1_1UploadLayerPartCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context), - }; - let response; - let errorCode = "UnknownError"; - errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InvalidLayerPartException": - case "com.amazonaws.ecrpublic#InvalidLayerPartException": - response = { - ...(await deserializeAws_json1_1InvalidLayerPartExceptionResponse(parsedOutput, context)), - name: errorCode, - $metadata: deserializeMetadata(output), - }; - break; - case "InvalidParameterException": - case "com.amazonaws.ecrpublic#InvalidParameterException": - response = { - ...(await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)), - name: errorCode, - $metadata: deserializeMetadata(output), - }; - break; - case "LimitExceededException": - case "com.amazonaws.ecrpublic#LimitExceededException": - response = { - ...(await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)), - name: errorCode, - $metadata: deserializeMetadata(output), - }; - break; - case "RegistryNotFoundException": - case "com.amazonaws.ecrpublic#RegistryNotFoundException": - response = { - ...(await deserializeAws_json1_1RegistryNotFoundExceptionResponse(parsedOutput, context)), - name: errorCode, - $metadata: deserializeMetadata(output), - }; - break; - case "RepositoryNotFoundException": - case "com.amazonaws.ecrpublic#RepositoryNotFoundException": - response = { - ...(await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(parsedOutput, context)), - name: errorCode, - $metadata: deserializeMetadata(output), - }; - break; - case "ServerException": - case "com.amazonaws.ecrpublic#ServerException": - response = { - ...(await deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context)), - name: errorCode, - $metadata: deserializeMetadata(output), - }; - break; - case "UnsupportedCommandException": - case "com.amazonaws.ecrpublic#UnsupportedCommandException": - response = { - ...(await deserializeAws_json1_1UnsupportedCommandExceptionResponse(parsedOutput, context)), - name: errorCode, - $metadata: deserializeMetadata(output), - }; - break; - case "UploadNotFoundException": - case "com.amazonaws.ecrpublic#UploadNotFoundException": - response = { - ...(await deserializeAws_json1_1UploadNotFoundExceptionResponse(parsedOutput, context)), - name: errorCode, - $metadata: deserializeMetadata(output), - }; - break; - default: - const parsedBody = parsedOutput.body; - errorCode = parsedBody.code || parsedBody.Code || errorCode; - response = { - ...parsedBody, - name: `${errorCode}`, - message: parsedBody.message || parsedBody.Message || errorCode, - $fault: "client", - $metadata: deserializeMetadata(output), - }; - } - const message = response.message || response.Message || errorCode; - response.message = message; - delete response.Message; - return Promise.reject(Object.assign(new Error(message), response)); -}; -const deserializeAws_json1_1EmptyUploadExceptionResponse = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = deserializeAws_json1_1EmptyUploadException(body, context); - const contents = { - name: "EmptyUploadException", - $fault: "client", - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }; - return contents; -}; -const deserializeAws_json1_1ImageAlreadyExistsExceptionResponse = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = deserializeAws_json1_1ImageAlreadyExistsException(body, context); - const contents = { - name: "ImageAlreadyExistsException", - $fault: "client", - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }; - return contents; -}; -const deserializeAws_json1_1ImageDigestDoesNotMatchExceptionResponse = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = deserializeAws_json1_1ImageDigestDoesNotMatchException(body, context); - const contents = { - name: "ImageDigestDoesNotMatchException", - $fault: "client", - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }; - return contents; -}; -const deserializeAws_json1_1ImageNotFoundExceptionResponse = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = deserializeAws_json1_1ImageNotFoundException(body, context); - const contents = { - name: "ImageNotFoundException", - $fault: "client", - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }; - return contents; -}; -const deserializeAws_json1_1ImageTagAlreadyExistsExceptionResponse = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = deserializeAws_json1_1ImageTagAlreadyExistsException(body, context); - const contents = { - name: "ImageTagAlreadyExistsException", - $fault: "client", - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }; - return contents; -}; -const deserializeAws_json1_1InvalidLayerExceptionResponse = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = deserializeAws_json1_1InvalidLayerException(body, context); - const contents = { - name: "InvalidLayerException", - $fault: "client", - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }; - return contents; -}; -const deserializeAws_json1_1InvalidLayerPartExceptionResponse = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = deserializeAws_json1_1InvalidLayerPartException(body, context); - const contents = { - name: "InvalidLayerPartException", - $fault: "client", - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }; - return contents; -}; -const deserializeAws_json1_1InvalidParameterExceptionResponse = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = deserializeAws_json1_1InvalidParameterException(body, context); - const contents = { - name: "InvalidParameterException", - $fault: "client", - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }; - return contents; -}; -const deserializeAws_json1_1InvalidTagParameterExceptionResponse = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = deserializeAws_json1_1InvalidTagParameterException(body, context); - const contents = { - name: "InvalidTagParameterException", - $fault: "client", - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }; - return contents; -}; -const deserializeAws_json1_1LayerAlreadyExistsExceptionResponse = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = deserializeAws_json1_1LayerAlreadyExistsException(body, context); - const contents = { - name: "LayerAlreadyExistsException", - $fault: "client", - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }; - return contents; -}; -const deserializeAws_json1_1LayerPartTooSmallExceptionResponse = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = deserializeAws_json1_1LayerPartTooSmallException(body, context); - const contents = { - name: "LayerPartTooSmallException", - $fault: "client", - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }; - return contents; -}; -const deserializeAws_json1_1LayersNotFoundExceptionResponse = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = deserializeAws_json1_1LayersNotFoundException(body, context); - const contents = { - name: "LayersNotFoundException", - $fault: "client", - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }; - return contents; -}; -const deserializeAws_json1_1LimitExceededExceptionResponse = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = deserializeAws_json1_1LimitExceededException(body, context); - const contents = { - name: "LimitExceededException", - $fault: "client", - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }; - return contents; -}; -const deserializeAws_json1_1ReferencedImagesNotFoundExceptionResponse = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = deserializeAws_json1_1ReferencedImagesNotFoundException(body, context); - const contents = { - name: "ReferencedImagesNotFoundException", - $fault: "client", - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }; - return contents; -}; -const deserializeAws_json1_1RegistryNotFoundExceptionResponse = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = deserializeAws_json1_1RegistryNotFoundException(body, context); - const contents = { - name: "RegistryNotFoundException", - $fault: "client", - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }; - return contents; -}; -const deserializeAws_json1_1RepositoryAlreadyExistsExceptionResponse = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = deserializeAws_json1_1RepositoryAlreadyExistsException(body, context); - const contents = { - name: "RepositoryAlreadyExistsException", - $fault: "client", - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }; - return contents; -}; -const deserializeAws_json1_1RepositoryNotEmptyExceptionResponse = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = deserializeAws_json1_1RepositoryNotEmptyException(body, context); - const contents = { - name: "RepositoryNotEmptyException", - $fault: "client", - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }; - return contents; -}; -const deserializeAws_json1_1RepositoryNotFoundExceptionResponse = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = deserializeAws_json1_1RepositoryNotFoundException(body, context); - const contents = { - name: "RepositoryNotFoundException", - $fault: "client", - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }; - return contents; -}; -const deserializeAws_json1_1RepositoryPolicyNotFoundExceptionResponse = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = deserializeAws_json1_1RepositoryPolicyNotFoundException(body, context); - const contents = { - name: "RepositoryPolicyNotFoundException", - $fault: "client", - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }; - return contents; -}; -const deserializeAws_json1_1ServerExceptionResponse = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = deserializeAws_json1_1ServerException(body, context); - const contents = { - name: "ServerException", - $fault: "server", - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }; - return contents; -}; -const deserializeAws_json1_1TooManyTagsExceptionResponse = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = deserializeAws_json1_1TooManyTagsException(body, context); - const contents = { - name: "TooManyTagsException", - $fault: "client", - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }; - return contents; -}; -const deserializeAws_json1_1UnsupportedCommandExceptionResponse = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = deserializeAws_json1_1UnsupportedCommandException(body, context); - const contents = { - name: "UnsupportedCommandException", - $fault: "client", - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }; - return contents; -}; -const deserializeAws_json1_1UploadNotFoundExceptionResponse = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = deserializeAws_json1_1UploadNotFoundException(body, context); - const contents = { - name: "UploadNotFoundException", - $fault: "client", - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }; - return contents; -}; -const serializeAws_json1_1ArchitectureList = (input, context) => { - return input - .filter((e) => e != null) - .map((entry) => { - if (entry === null) { - return null; - } - return entry; - }); -}; -const serializeAws_json1_1BatchCheckLayerAvailabilityRequest = (input, context) => { - return { - ...(input.layerDigests !== undefined && - input.layerDigests !== null && { - layerDigests: serializeAws_json1_1BatchedOperationLayerDigestList(input.layerDigests, context), - }), - ...(input.registryId !== undefined && input.registryId !== null && { registryId: input.registryId }), - ...(input.repositoryName !== undefined && - input.repositoryName !== null && { repositoryName: input.repositoryName }), - }; -}; -const serializeAws_json1_1BatchDeleteImageRequest = (input, context) => { - return { - ...(input.imageIds !== undefined && - input.imageIds !== null && { imageIds: serializeAws_json1_1ImageIdentifierList(input.imageIds, context) }), - ...(input.registryId !== undefined && input.registryId !== null && { registryId: input.registryId }), - ...(input.repositoryName !== undefined && - input.repositoryName !== null && { repositoryName: input.repositoryName }), - }; -}; -const serializeAws_json1_1BatchedOperationLayerDigestList = (input, context) => { - return input - .filter((e) => e != null) - .map((entry) => { - if (entry === null) { - return null; - } - return entry; - }); -}; -const serializeAws_json1_1CompleteLayerUploadRequest = (input, context) => { - return { - ...(input.layerDigests !== undefined && - input.layerDigests !== null && { - layerDigests: serializeAws_json1_1LayerDigestList(input.layerDigests, context), - }), - ...(input.registryId !== undefined && input.registryId !== null && { registryId: input.registryId }), - ...(input.repositoryName !== undefined && - input.repositoryName !== null && { repositoryName: input.repositoryName }), - ...(input.uploadId !== undefined && input.uploadId !== null && { uploadId: input.uploadId }), - }; -}; -const serializeAws_json1_1CreateRepositoryRequest = (input, context) => { - return { - ...(input.catalogData !== undefined && - input.catalogData !== null && { - catalogData: serializeAws_json1_1RepositoryCatalogDataInput(input.catalogData, context), - }), - ...(input.repositoryName !== undefined && - input.repositoryName !== null && { repositoryName: input.repositoryName }), - ...(input.tags !== undefined && input.tags !== null && { tags: serializeAws_json1_1TagList(input.tags, context) }), - }; -}; -const serializeAws_json1_1DeleteRepositoryPolicyRequest = (input, context) => { - return { - ...(input.registryId !== undefined && input.registryId !== null && { registryId: input.registryId }), - ...(input.repositoryName !== undefined && - input.repositoryName !== null && { repositoryName: input.repositoryName }), - }; -}; -const serializeAws_json1_1DeleteRepositoryRequest = (input, context) => { - return { - ...(input.force !== undefined && input.force !== null && { force: input.force }), - ...(input.registryId !== undefined && input.registryId !== null && { registryId: input.registryId }), - ...(input.repositoryName !== undefined && - input.repositoryName !== null && { repositoryName: input.repositoryName }), - }; -}; -const serializeAws_json1_1DescribeImagesRequest = (input, context) => { - return { - ...(input.imageIds !== undefined && - input.imageIds !== null && { imageIds: serializeAws_json1_1ImageIdentifierList(input.imageIds, context) }), - ...(input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults }), - ...(input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }), - ...(input.registryId !== undefined && input.registryId !== null && { registryId: input.registryId }), - ...(input.repositoryName !== undefined && - input.repositoryName !== null && { repositoryName: input.repositoryName }), - }; -}; -const serializeAws_json1_1DescribeImageTagsRequest = (input, context) => { - return { - ...(input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults }), - ...(input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }), - ...(input.registryId !== undefined && input.registryId !== null && { registryId: input.registryId }), - ...(input.repositoryName !== undefined && - input.repositoryName !== null && { repositoryName: input.repositoryName }), - }; -}; -const serializeAws_json1_1DescribeRegistriesRequest = (input, context) => { - return { - ...(input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults }), - ...(input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }), - }; -}; -const serializeAws_json1_1DescribeRepositoriesRequest = (input, context) => { - return { - ...(input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults }), - ...(input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }), - ...(input.registryId !== undefined && input.registryId !== null && { registryId: input.registryId }), - ...(input.repositoryNames !== undefined && - input.repositoryNames !== null && { - repositoryNames: serializeAws_json1_1RepositoryNameList(input.repositoryNames, context), - }), - }; -}; -const serializeAws_json1_1GetAuthorizationTokenRequest = (input, context) => { - return {}; -}; -const serializeAws_json1_1GetRegistryCatalogDataRequest = (input, context) => { - return {}; -}; -const serializeAws_json1_1GetRepositoryCatalogDataRequest = (input, context) => { - return { - ...(input.registryId !== undefined && input.registryId !== null && { registryId: input.registryId }), - ...(input.repositoryName !== undefined && - input.repositoryName !== null && { repositoryName: input.repositoryName }), - }; -}; -const serializeAws_json1_1GetRepositoryPolicyRequest = (input, context) => { - return { - ...(input.registryId !== undefined && input.registryId !== null && { registryId: input.registryId }), - ...(input.repositoryName !== undefined && - input.repositoryName !== null && { repositoryName: input.repositoryName }), - }; -}; -const serializeAws_json1_1ImageIdentifier = (input, context) => { - return { - ...(input.imageDigest !== undefined && input.imageDigest !== null && { imageDigest: input.imageDigest }), - ...(input.imageTag !== undefined && input.imageTag !== null && { imageTag: input.imageTag }), - }; -}; -const serializeAws_json1_1ImageIdentifierList = (input, context) => { - return input - .filter((e) => e != null) - .map((entry) => { - if (entry === null) { - return null; - } - return serializeAws_json1_1ImageIdentifier(entry, context); - }); -}; -const serializeAws_json1_1InitiateLayerUploadRequest = (input, context) => { - return { - ...(input.registryId !== undefined && input.registryId !== null && { registryId: input.registryId }), - ...(input.repositoryName !== undefined && - input.repositoryName !== null && { repositoryName: input.repositoryName }), - }; -}; -const serializeAws_json1_1LayerDigestList = (input, context) => { - return input - .filter((e) => e != null) - .map((entry) => { - if (entry === null) { - return null; - } - return entry; - }); -}; -const serializeAws_json1_1ListTagsForResourceRequest = (input, context) => { - return { - ...(input.resourceArn !== undefined && input.resourceArn !== null && { resourceArn: input.resourceArn }), - }; -}; -const serializeAws_json1_1OperatingSystemList = (input, context) => { - return input - .filter((e) => e != null) - .map((entry) => { - if (entry === null) { - return null; - } - return entry; - }); -}; -const serializeAws_json1_1PutImageRequest = (input, context) => { - return { - ...(input.imageDigest !== undefined && input.imageDigest !== null && { imageDigest: input.imageDigest }), - ...(input.imageManifest !== undefined && input.imageManifest !== null && { imageManifest: input.imageManifest }), - ...(input.imageManifestMediaType !== undefined && - input.imageManifestMediaType !== null && { imageManifestMediaType: input.imageManifestMediaType }), - ...(input.imageTag !== undefined && input.imageTag !== null && { imageTag: input.imageTag }), - ...(input.registryId !== undefined && input.registryId !== null && { registryId: input.registryId }), - ...(input.repositoryName !== undefined && - input.repositoryName !== null && { repositoryName: input.repositoryName }), - }; -}; -const serializeAws_json1_1PutRegistryCatalogDataRequest = (input, context) => { - return { - ...(input.displayName !== undefined && input.displayName !== null && { displayName: input.displayName }), - }; -}; -const serializeAws_json1_1PutRepositoryCatalogDataRequest = (input, context) => { - return { - ...(input.catalogData !== undefined && - input.catalogData !== null && { - catalogData: serializeAws_json1_1RepositoryCatalogDataInput(input.catalogData, context), - }), - ...(input.registryId !== undefined && input.registryId !== null && { registryId: input.registryId }), - ...(input.repositoryName !== undefined && - input.repositoryName !== null && { repositoryName: input.repositoryName }), - }; -}; -const serializeAws_json1_1RepositoryCatalogDataInput = (input, context) => { - return { - ...(input.aboutText !== undefined && input.aboutText !== null && { aboutText: input.aboutText }), - ...(input.architectures !== undefined && - input.architectures !== null && { - architectures: serializeAws_json1_1ArchitectureList(input.architectures, context), - }), - ...(input.description !== undefined && input.description !== null && { description: input.description }), - ...(input.logoImageBlob !== undefined && - input.logoImageBlob !== null && { logoImageBlob: context.base64Encoder(input.logoImageBlob) }), - ...(input.operatingSystems !== undefined && - input.operatingSystems !== null && { - operatingSystems: serializeAws_json1_1OperatingSystemList(input.operatingSystems, context), - }), - ...(input.usageText !== undefined && input.usageText !== null && { usageText: input.usageText }), - }; -}; -const serializeAws_json1_1RepositoryNameList = (input, context) => { - return input - .filter((e) => e != null) - .map((entry) => { - if (entry === null) { - return null; - } - return entry; - }); -}; -const serializeAws_json1_1SetRepositoryPolicyRequest = (input, context) => { - return { - ...(input.force !== undefined && input.force !== null && { force: input.force }), - ...(input.policyText !== undefined && input.policyText !== null && { policyText: input.policyText }), - ...(input.registryId !== undefined && input.registryId !== null && { registryId: input.registryId }), - ...(input.repositoryName !== undefined && - input.repositoryName !== null && { repositoryName: input.repositoryName }), - }; -}; -const serializeAws_json1_1Tag = (input, context) => { - return { - ...(input.Key !== undefined && input.Key !== null && { Key: input.Key }), - ...(input.Value !== undefined && input.Value !== null && { Value: input.Value }), - }; -}; -const serializeAws_json1_1TagKeyList = (input, context) => { - return input - .filter((e) => e != null) - .map((entry) => { - if (entry === null) { - return null; - } - return entry; - }); -}; -const serializeAws_json1_1TagList = (input, context) => { - return input - .filter((e) => e != null) - .map((entry) => { - if (entry === null) { - return null; - } - return serializeAws_json1_1Tag(entry, context); - }); -}; -const serializeAws_json1_1TagResourceRequest = (input, context) => { - return { - ...(input.resourceArn !== undefined && input.resourceArn !== null && { resourceArn: input.resourceArn }), - ...(input.tags !== undefined && input.tags !== null && { tags: serializeAws_json1_1TagList(input.tags, context) }), - }; -}; -const serializeAws_json1_1UntagResourceRequest = (input, context) => { - return { - ...(input.resourceArn !== undefined && input.resourceArn !== null && { resourceArn: input.resourceArn }), - ...(input.tagKeys !== undefined && - input.tagKeys !== null && { tagKeys: serializeAws_json1_1TagKeyList(input.tagKeys, context) }), - }; -}; -const serializeAws_json1_1UploadLayerPartRequest = (input, context) => { - return { - ...(input.layerPartBlob !== undefined && - input.layerPartBlob !== null && { layerPartBlob: context.base64Encoder(input.layerPartBlob) }), - ...(input.partFirstByte !== undefined && input.partFirstByte !== null && { partFirstByte: input.partFirstByte }), - ...(input.partLastByte !== undefined && input.partLastByte !== null && { partLastByte: input.partLastByte }), - ...(input.registryId !== undefined && input.registryId !== null && { registryId: input.registryId }), - ...(input.repositoryName !== undefined && - input.repositoryName !== null && { repositoryName: input.repositoryName }), - ...(input.uploadId !== undefined && input.uploadId !== null && { uploadId: input.uploadId }), - }; -}; -const deserializeAws_json1_1ArchitectureList = (output, context) => { - return (output || []) - .filter((e) => e != null) - .map((entry) => { - if (entry === null) { - return null; - } - return smithy_client_1.expectString(entry); - }); -}; -const deserializeAws_json1_1AuthorizationData = (output, context) => { - return { - authorizationToken: smithy_client_1.expectString(output.authorizationToken), - expiresAt: output.expiresAt !== undefined && output.expiresAt !== null - ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.expiresAt))) - : undefined, - }; -}; -const deserializeAws_json1_1BatchCheckLayerAvailabilityResponse = (output, context) => { - return { - failures: output.failures !== undefined && output.failures !== null - ? deserializeAws_json1_1LayerFailureList(output.failures, context) - : undefined, - layers: output.layers !== undefined && output.layers !== null - ? deserializeAws_json1_1LayerList(output.layers, context) - : undefined, - }; -}; -const deserializeAws_json1_1BatchDeleteImageResponse = (output, context) => { - return { - failures: output.failures !== undefined && output.failures !== null - ? deserializeAws_json1_1ImageFailureList(output.failures, context) - : undefined, - imageIds: output.imageIds !== undefined && output.imageIds !== null - ? deserializeAws_json1_1ImageIdentifierList(output.imageIds, context) - : undefined, - }; -}; -const deserializeAws_json1_1CompleteLayerUploadResponse = (output, context) => { - return { - layerDigest: smithy_client_1.expectString(output.layerDigest), - registryId: smithy_client_1.expectString(output.registryId), - repositoryName: smithy_client_1.expectString(output.repositoryName), - uploadId: smithy_client_1.expectString(output.uploadId), - }; -}; -const deserializeAws_json1_1CreateRepositoryResponse = (output, context) => { - return { - catalogData: output.catalogData !== undefined && output.catalogData !== null - ? deserializeAws_json1_1RepositoryCatalogData(output.catalogData, context) - : undefined, - repository: output.repository !== undefined && output.repository !== null - ? deserializeAws_json1_1Repository(output.repository, context) - : undefined, - }; -}; -const deserializeAws_json1_1DeleteRepositoryPolicyResponse = (output, context) => { - return { - policyText: smithy_client_1.expectString(output.policyText), - registryId: smithy_client_1.expectString(output.registryId), - repositoryName: smithy_client_1.expectString(output.repositoryName), - }; -}; -const deserializeAws_json1_1DeleteRepositoryResponse = (output, context) => { - return { - repository: output.repository !== undefined && output.repository !== null - ? deserializeAws_json1_1Repository(output.repository, context) - : undefined, - }; -}; -const deserializeAws_json1_1DescribeImagesResponse = (output, context) => { - return { - imageDetails: output.imageDetails !== undefined && output.imageDetails !== null - ? deserializeAws_json1_1ImageDetailList(output.imageDetails, context) - : undefined, - nextToken: smithy_client_1.expectString(output.nextToken), - }; -}; -const deserializeAws_json1_1DescribeImageTagsResponse = (output, context) => { - return { - imageTagDetails: output.imageTagDetails !== undefined && output.imageTagDetails !== null - ? deserializeAws_json1_1ImageTagDetailList(output.imageTagDetails, context) - : undefined, - nextToken: smithy_client_1.expectString(output.nextToken), - }; -}; -const deserializeAws_json1_1DescribeRegistriesResponse = (output, context) => { - return { - nextToken: smithy_client_1.expectString(output.nextToken), - registries: output.registries !== undefined && output.registries !== null - ? deserializeAws_json1_1RegistryList(output.registries, context) - : undefined, - }; -}; -const deserializeAws_json1_1DescribeRepositoriesResponse = (output, context) => { - return { - nextToken: smithy_client_1.expectString(output.nextToken), - repositories: output.repositories !== undefined && output.repositories !== null - ? deserializeAws_json1_1RepositoryList(output.repositories, context) - : undefined, - }; -}; -const deserializeAws_json1_1EmptyUploadException = (output, context) => { - return { - message: smithy_client_1.expectString(output.message), - }; -}; -const deserializeAws_json1_1GetAuthorizationTokenResponse = (output, context) => { - return { - authorizationData: output.authorizationData !== undefined && output.authorizationData !== null - ? deserializeAws_json1_1AuthorizationData(output.authorizationData, context) - : undefined, - }; -}; -const deserializeAws_json1_1GetRegistryCatalogDataResponse = (output, context) => { - return { - registryCatalogData: output.registryCatalogData !== undefined && output.registryCatalogData !== null - ? deserializeAws_json1_1RegistryCatalogData(output.registryCatalogData, context) - : undefined, - }; -}; -const deserializeAws_json1_1GetRepositoryCatalogDataResponse = (output, context) => { - return { - catalogData: output.catalogData !== undefined && output.catalogData !== null - ? deserializeAws_json1_1RepositoryCatalogData(output.catalogData, context) - : undefined, - }; -}; -const deserializeAws_json1_1GetRepositoryPolicyResponse = (output, context) => { - return { - policyText: smithy_client_1.expectString(output.policyText), - registryId: smithy_client_1.expectString(output.registryId), - repositoryName: smithy_client_1.expectString(output.repositoryName), - }; -}; -const deserializeAws_json1_1Image = (output, context) => { - return { - imageId: output.imageId !== undefined && output.imageId !== null - ? deserializeAws_json1_1ImageIdentifier(output.imageId, context) - : undefined, - imageManifest: smithy_client_1.expectString(output.imageManifest), - imageManifestMediaType: smithy_client_1.expectString(output.imageManifestMediaType), - registryId: smithy_client_1.expectString(output.registryId), - repositoryName: smithy_client_1.expectString(output.repositoryName), - }; -}; -const deserializeAws_json1_1ImageAlreadyExistsException = (output, context) => { - return { - message: smithy_client_1.expectString(output.message), - }; -}; -const deserializeAws_json1_1ImageDetail = (output, context) => { - return { - artifactMediaType: smithy_client_1.expectString(output.artifactMediaType), - imageDigest: smithy_client_1.expectString(output.imageDigest), - imageManifestMediaType: smithy_client_1.expectString(output.imageManifestMediaType), - imagePushedAt: output.imagePushedAt !== undefined && output.imagePushedAt !== null - ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.imagePushedAt))) - : undefined, - imageSizeInBytes: smithy_client_1.expectLong(output.imageSizeInBytes), - imageTags: output.imageTags !== undefined && output.imageTags !== null - ? deserializeAws_json1_1ImageTagList(output.imageTags, context) - : undefined, - registryId: smithy_client_1.expectString(output.registryId), - repositoryName: smithy_client_1.expectString(output.repositoryName), - }; -}; -const deserializeAws_json1_1ImageDetailList = (output, context) => { - return (output || []) - .filter((e) => e != null) - .map((entry) => { - if (entry === null) { - return null; - } - return deserializeAws_json1_1ImageDetail(entry, context); - }); -}; -const deserializeAws_json1_1ImageDigestDoesNotMatchException = (output, context) => { - return { - message: smithy_client_1.expectString(output.message), - }; -}; -const deserializeAws_json1_1ImageFailure = (output, context) => { - return { - failureCode: smithy_client_1.expectString(output.failureCode), - failureReason: smithy_client_1.expectString(output.failureReason), - imageId: output.imageId !== undefined && output.imageId !== null - ? deserializeAws_json1_1ImageIdentifier(output.imageId, context) - : undefined, - }; -}; -const deserializeAws_json1_1ImageFailureList = (output, context) => { - return (output || []) - .filter((e) => e != null) - .map((entry) => { - if (entry === null) { - return null; - } - return deserializeAws_json1_1ImageFailure(entry, context); - }); -}; -const deserializeAws_json1_1ImageIdentifier = (output, context) => { - return { - imageDigest: smithy_client_1.expectString(output.imageDigest), - imageTag: smithy_client_1.expectString(output.imageTag), - }; -}; -const deserializeAws_json1_1ImageIdentifierList = (output, context) => { - return (output || []) - .filter((e) => e != null) - .map((entry) => { - if (entry === null) { - return null; - } - return deserializeAws_json1_1ImageIdentifier(entry, context); - }); -}; -const deserializeAws_json1_1ImageNotFoundException = (output, context) => { - return { - message: smithy_client_1.expectString(output.message), - }; -}; -const deserializeAws_json1_1ImageTagAlreadyExistsException = (output, context) => { - return { - message: smithy_client_1.expectString(output.message), - }; -}; -const deserializeAws_json1_1ImageTagDetail = (output, context) => { - return { - createdAt: output.createdAt !== undefined && output.createdAt !== null - ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.createdAt))) - : undefined, - imageDetail: output.imageDetail !== undefined && output.imageDetail !== null - ? deserializeAws_json1_1ReferencedImageDetail(output.imageDetail, context) - : undefined, - imageTag: smithy_client_1.expectString(output.imageTag), - }; -}; -const deserializeAws_json1_1ImageTagDetailList = (output, context) => { - return (output || []) - .filter((e) => e != null) - .map((entry) => { - if (entry === null) { - return null; - } - return deserializeAws_json1_1ImageTagDetail(entry, context); - }); -}; -const deserializeAws_json1_1ImageTagList = (output, context) => { - return (output || []) - .filter((e) => e != null) - .map((entry) => { - if (entry === null) { - return null; - } - return smithy_client_1.expectString(entry); - }); -}; -const deserializeAws_json1_1InitiateLayerUploadResponse = (output, context) => { - return { - partSize: smithy_client_1.expectLong(output.partSize), - uploadId: smithy_client_1.expectString(output.uploadId), - }; -}; -const deserializeAws_json1_1InvalidLayerException = (output, context) => { - return { - message: smithy_client_1.expectString(output.message), - }; -}; -const deserializeAws_json1_1InvalidLayerPartException = (output, context) => { - return { - lastValidByteReceived: smithy_client_1.expectLong(output.lastValidByteReceived), - message: smithy_client_1.expectString(output.message), - registryId: smithy_client_1.expectString(output.registryId), - repositoryName: smithy_client_1.expectString(output.repositoryName), - uploadId: smithy_client_1.expectString(output.uploadId), - }; -}; -const deserializeAws_json1_1InvalidParameterException = (output, context) => { - return { - message: smithy_client_1.expectString(output.message), - }; -}; -const deserializeAws_json1_1InvalidTagParameterException = (output, context) => { - return { - message: smithy_client_1.expectString(output.message), - }; -}; -const deserializeAws_json1_1Layer = (output, context) => { - return { - layerAvailability: smithy_client_1.expectString(output.layerAvailability), - layerDigest: smithy_client_1.expectString(output.layerDigest), - layerSize: smithy_client_1.expectLong(output.layerSize), - mediaType: smithy_client_1.expectString(output.mediaType), - }; -}; -const deserializeAws_json1_1LayerAlreadyExistsException = (output, context) => { - return { - message: smithy_client_1.expectString(output.message), - }; -}; -const deserializeAws_json1_1LayerFailure = (output, context) => { - return { - failureCode: smithy_client_1.expectString(output.failureCode), - failureReason: smithy_client_1.expectString(output.failureReason), - layerDigest: smithy_client_1.expectString(output.layerDigest), - }; -}; -const deserializeAws_json1_1LayerFailureList = (output, context) => { - return (output || []) - .filter((e) => e != null) - .map((entry) => { - if (entry === null) { - return null; - } - return deserializeAws_json1_1LayerFailure(entry, context); - }); -}; -const deserializeAws_json1_1LayerList = (output, context) => { - return (output || []) - .filter((e) => e != null) - .map((entry) => { - if (entry === null) { - return null; - } - return deserializeAws_json1_1Layer(entry, context); - }); -}; -const deserializeAws_json1_1LayerPartTooSmallException = (output, context) => { - return { - message: smithy_client_1.expectString(output.message), - }; -}; -const deserializeAws_json1_1LayersNotFoundException = (output, context) => { - return { - message: smithy_client_1.expectString(output.message), - }; -}; -const deserializeAws_json1_1LimitExceededException = (output, context) => { - return { - message: smithy_client_1.expectString(output.message), - }; -}; -const deserializeAws_json1_1ListTagsForResourceResponse = (output, context) => { - return { - tags: output.tags !== undefined && output.tags !== null - ? deserializeAws_json1_1TagList(output.tags, context) - : undefined, - }; -}; -const deserializeAws_json1_1OperatingSystemList = (output, context) => { - return (output || []) - .filter((e) => e != null) - .map((entry) => { - if (entry === null) { - return null; - } - return smithy_client_1.expectString(entry); - }); -}; -const deserializeAws_json1_1PutImageResponse = (output, context) => { - return { - image: output.image !== undefined && output.image !== null - ? deserializeAws_json1_1Image(output.image, context) - : undefined, - }; -}; -const deserializeAws_json1_1PutRegistryCatalogDataResponse = (output, context) => { - return { - registryCatalogData: output.registryCatalogData !== undefined && output.registryCatalogData !== null - ? deserializeAws_json1_1RegistryCatalogData(output.registryCatalogData, context) - : undefined, - }; -}; -const deserializeAws_json1_1PutRepositoryCatalogDataResponse = (output, context) => { - return { - catalogData: output.catalogData !== undefined && output.catalogData !== null - ? deserializeAws_json1_1RepositoryCatalogData(output.catalogData, context) - : undefined, - }; -}; -const deserializeAws_json1_1ReferencedImageDetail = (output, context) => { - return { - artifactMediaType: smithy_client_1.expectString(output.artifactMediaType), - imageDigest: smithy_client_1.expectString(output.imageDigest), - imageManifestMediaType: smithy_client_1.expectString(output.imageManifestMediaType), - imagePushedAt: output.imagePushedAt !== undefined && output.imagePushedAt !== null - ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.imagePushedAt))) - : undefined, - imageSizeInBytes: smithy_client_1.expectLong(output.imageSizeInBytes), - }; -}; -const deserializeAws_json1_1ReferencedImagesNotFoundException = (output, context) => { - return { - message: smithy_client_1.expectString(output.message), - }; -}; -const deserializeAws_json1_1Registry = (output, context) => { - return { - aliases: output.aliases !== undefined && output.aliases !== null - ? deserializeAws_json1_1RegistryAliasList(output.aliases, context) - : undefined, - registryArn: smithy_client_1.expectString(output.registryArn), - registryId: smithy_client_1.expectString(output.registryId), - registryUri: smithy_client_1.expectString(output.registryUri), - verified: smithy_client_1.expectBoolean(output.verified), - }; -}; -const deserializeAws_json1_1RegistryAlias = (output, context) => { - return { - defaultRegistryAlias: smithy_client_1.expectBoolean(output.defaultRegistryAlias), - name: smithy_client_1.expectString(output.name), - primaryRegistryAlias: smithy_client_1.expectBoolean(output.primaryRegistryAlias), - status: smithy_client_1.expectString(output.status), - }; -}; -const deserializeAws_json1_1RegistryAliasList = (output, context) => { - return (output || []) - .filter((e) => e != null) - .map((entry) => { - if (entry === null) { - return null; - } - return deserializeAws_json1_1RegistryAlias(entry, context); - }); -}; -const deserializeAws_json1_1RegistryCatalogData = (output, context) => { - return { - displayName: smithy_client_1.expectString(output.displayName), - }; -}; -const deserializeAws_json1_1RegistryList = (output, context) => { - return (output || []) - .filter((e) => e != null) - .map((entry) => { - if (entry === null) { - return null; - } - return deserializeAws_json1_1Registry(entry, context); - }); -}; -const deserializeAws_json1_1RegistryNotFoundException = (output, context) => { - return { - message: smithy_client_1.expectString(output.message), - }; -}; -const deserializeAws_json1_1Repository = (output, context) => { - return { - createdAt: output.createdAt !== undefined && output.createdAt !== null - ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.createdAt))) - : undefined, - registryId: smithy_client_1.expectString(output.registryId), - repositoryArn: smithy_client_1.expectString(output.repositoryArn), - repositoryName: smithy_client_1.expectString(output.repositoryName), - repositoryUri: smithy_client_1.expectString(output.repositoryUri), - }; -}; -const deserializeAws_json1_1RepositoryAlreadyExistsException = (output, context) => { - return { - message: smithy_client_1.expectString(output.message), - }; -}; -const deserializeAws_json1_1RepositoryCatalogData = (output, context) => { - return { - aboutText: smithy_client_1.expectString(output.aboutText), - architectures: output.architectures !== undefined && output.architectures !== null - ? deserializeAws_json1_1ArchitectureList(output.architectures, context) - : undefined, - description: smithy_client_1.expectString(output.description), - logoUrl: smithy_client_1.expectString(output.logoUrl), - marketplaceCertified: smithy_client_1.expectBoolean(output.marketplaceCertified), - operatingSystems: output.operatingSystems !== undefined && output.operatingSystems !== null - ? deserializeAws_json1_1OperatingSystemList(output.operatingSystems, context) - : undefined, - usageText: smithy_client_1.expectString(output.usageText), - }; -}; -const deserializeAws_json1_1RepositoryList = (output, context) => { - return (output || []) - .filter((e) => e != null) - .map((entry) => { - if (entry === null) { - return null; - } - return deserializeAws_json1_1Repository(entry, context); - }); -}; -const deserializeAws_json1_1RepositoryNotEmptyException = (output, context) => { - return { - message: smithy_client_1.expectString(output.message), - }; -}; -const deserializeAws_json1_1RepositoryNotFoundException = (output, context) => { - return { - message: smithy_client_1.expectString(output.message), - }; -}; -const deserializeAws_json1_1RepositoryPolicyNotFoundException = (output, context) => { - return { - message: smithy_client_1.expectString(output.message), - }; -}; -const deserializeAws_json1_1ServerException = (output, context) => { - return { - message: smithy_client_1.expectString(output.message), - }; -}; -const deserializeAws_json1_1SetRepositoryPolicyResponse = (output, context) => { - return { - policyText: smithy_client_1.expectString(output.policyText), - registryId: smithy_client_1.expectString(output.registryId), - repositoryName: smithy_client_1.expectString(output.repositoryName), - }; -}; -const deserializeAws_json1_1Tag = (output, context) => { - return { - Key: smithy_client_1.expectString(output.Key), - Value: smithy_client_1.expectString(output.Value), - }; -}; -const deserializeAws_json1_1TagList = (output, context) => { - return (output || []) - .filter((e) => e != null) - .map((entry) => { - if (entry === null) { - return null; - } - return deserializeAws_json1_1Tag(entry, context); - }); -}; -const deserializeAws_json1_1TagResourceResponse = (output, context) => { - return {}; -}; -const deserializeAws_json1_1TooManyTagsException = (output, context) => { - return { - message: smithy_client_1.expectString(output.message), - }; -}; -const deserializeAws_json1_1UnsupportedCommandException = (output, context) => { - return { - message: smithy_client_1.expectString(output.message), - }; -}; -const deserializeAws_json1_1UntagResourceResponse = (output, context) => { - return {}; -}; -const deserializeAws_json1_1UploadLayerPartResponse = (output, context) => { - return { - lastByteReceived: smithy_client_1.expectLong(output.lastByteReceived), - registryId: smithy_client_1.expectString(output.registryId), - repositoryName: smithy_client_1.expectString(output.repositoryName), - uploadId: smithy_client_1.expectString(output.uploadId), - }; -}; -const deserializeAws_json1_1UploadNotFoundException = (output, context) => { - return { - message: smithy_client_1.expectString(output.message), - }; -}; -const deserializeMetadata = (output) => { - var _a; - return ({ - httpStatusCode: output.statusCode, - requestId: (_a = output.headers["x-amzn-requestid"]) !== null && _a !== void 0 ? _a : output.headers["x-amzn-request-id"], - extendedRequestId: output.headers["x-amz-id-2"], - cfId: output.headers["x-amz-cf-id"], - }); -}; -const collectBody = (streamBody = new Uint8Array(), context) => { - if (streamBody instanceof Uint8Array) { - return Promise.resolve(streamBody); - } - return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array()); -}; -const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body)); -const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); - const contents = { - protocol, - hostname, - port, - method: "POST", - path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path, - headers, - }; - if (resolvedHostname !== undefined) { - contents.hostname = resolvedHostname; - } - if (body !== undefined) { - contents.body = body; - } - return new protocol_http_1.HttpRequest(contents); -}; -const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => { - if (encoded.length) { - return JSON.parse(encoded); - } - return {}; -}); -const loadRestJsonErrorCode = (output, data) => { - const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase()); - const sanitizeErrorCode = (rawValue) => { - let cleanValue = rawValue; - if (cleanValue.indexOf(":") >= 0) { - cleanValue = cleanValue.split(":")[0]; - } - if (cleanValue.indexOf("#") >= 0) { - cleanValue = cleanValue.split("#")[1]; - } - return cleanValue; - }; - const headerKey = findKey(output.headers, "x-amzn-errortype"); - if (headerKey !== undefined) { - return sanitizeErrorCode(output.headers[headerKey]); - } - if (data.code !== undefined) { - return sanitizeErrorCode(data.code); - } - if (data["__type"] !== undefined) { - return sanitizeErrorCode(data["__type"]); - } - return ""; -}; - - -/***/ }), - -/***/ 49324: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.getRuntimeConfig = void 0; -const tslib_1 = __nccwpck_require__(4351); -const package_json_1 = tslib_1.__importDefault(__nccwpck_require__(46748)); -const client_sts_1 = __nccwpck_require__(52209); -const config_resolver_1 = __nccwpck_require__(56153); -const credential_provider_node_1 = __nccwpck_require__(75531); -const hash_node_1 = __nccwpck_require__(97442); -const middleware_retry_1 = __nccwpck_require__(96064); -const node_config_provider_1 = __nccwpck_require__(87684); -const node_http_handler_1 = __nccwpck_require__(68805); -const util_base64_node_1 = __nccwpck_require__(18588); -const util_body_length_node_1 = __nccwpck_require__(74147); -const util_user_agent_node_1 = __nccwpck_require__(98095); -const util_utf8_node_1 = __nccwpck_require__(66278); -const runtimeConfig_shared_1 = __nccwpck_require__(76746); -const smithy_client_1 = __nccwpck_require__(4963); -const getRuntimeConfig = (config) => { - var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q; - smithy_client_1.emitWarningIfUnsupportedVersion(process.version); - const clientSharedValues = runtimeConfig_shared_1.getRuntimeConfig(config); - return { - ...clientSharedValues, - ...config, - runtime: "node", - base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : util_base64_node_1.fromBase64, - base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : util_base64_node_1.toBase64, - bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : util_body_length_node_1.calculateBodyLength, - credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : client_sts_1.decorateDefaultCredentialProvider(credential_provider_node_1.defaultProvider), - defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : util_user_agent_node_1.defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }), - maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : node_config_provider_1.loadConfig(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS), - region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : node_config_provider_1.loadConfig(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS), - requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new node_http_handler_1.NodeHttpHandler(), - retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : node_config_provider_1.loadConfig(middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS), - sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : hash_node_1.Hash.bind(null, "sha256"), - streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : node_http_handler_1.streamCollector, - useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : node_config_provider_1.loadConfig(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS), - useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : node_config_provider_1.loadConfig(config_resolver_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS), - utf8Decoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _p !== void 0 ? _p : util_utf8_node_1.fromUtf8, - utf8Encoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _q !== void 0 ? _q : util_utf8_node_1.toUtf8, - }; -}; -exports.getRuntimeConfig = getRuntimeConfig; - - -/***/ }), - -/***/ 76746: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.getRuntimeConfig = void 0; -const url_parser_1 = __nccwpck_require__(2992); -const endpoints_1 = __nccwpck_require__(68593); -const getRuntimeConfig = (config) => { - var _a, _b, _c, _d, _e; - return ({ - apiVersion: "2020-10-30", - disableHostPrefix: (_a = config === null || config === void 0 ? void 0 : config.disableHostPrefix) !== null && _a !== void 0 ? _a : false, - logger: (_b = config === null || config === void 0 ? void 0 : config.logger) !== null && _b !== void 0 ? _b : {}, - regionInfoProvider: (_c = config === null || config === void 0 ? void 0 : config.regionInfoProvider) !== null && _c !== void 0 ? _c : endpoints_1.defaultRegionInfoProvider, - serviceId: (_d = config === null || config === void 0 ? void 0 : config.serviceId) !== null && _d !== void 0 ? _d : "ECR PUBLIC", - urlParser: (_e = config === null || config === void 0 ? void 0 : config.urlParser) !== null && _e !== void 0 ? _e : url_parser_1.parseUrl, - }); -}; -exports.getRuntimeConfig = getRuntimeConfig; - - -/***/ }), - -/***/ 59167: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.ECR = void 0; -const BatchCheckLayerAvailabilityCommand_1 = __nccwpck_require__(63804); -const BatchDeleteImageCommand_1 = __nccwpck_require__(15511); -const BatchGetImageCommand_1 = __nccwpck_require__(78859); -const BatchGetRepositoryScanningConfigurationCommand_1 = __nccwpck_require__(79728); -const CompleteLayerUploadCommand_1 = __nccwpck_require__(49003); -const CreatePullThroughCacheRuleCommand_1 = __nccwpck_require__(71454); -const CreateRepositoryCommand_1 = __nccwpck_require__(5074); -const DeleteLifecyclePolicyCommand_1 = __nccwpck_require__(48981); -const DeletePullThroughCacheRuleCommand_1 = __nccwpck_require__(83793); -const DeleteRegistryPolicyCommand_1 = __nccwpck_require__(31424); -const DeleteRepositoryCommand_1 = __nccwpck_require__(88651); -const DeleteRepositoryPolicyCommand_1 = __nccwpck_require__(36828); -const DescribeImageReplicationStatusCommand_1 = __nccwpck_require__(39694); -const DescribeImageScanFindingsCommand_1 = __nccwpck_require__(72987); -const DescribeImagesCommand_1 = __nccwpck_require__(95353); -const DescribePullThroughCacheRulesCommand_1 = __nccwpck_require__(31484); -const DescribeRegistryCommand_1 = __nccwpck_require__(26166); -const DescribeRepositoriesCommand_1 = __nccwpck_require__(21200); -const GetAuthorizationTokenCommand_1 = __nccwpck_require__(35828); -const GetDownloadUrlForLayerCommand_1 = __nccwpck_require__(51401); -const GetLifecyclePolicyCommand_1 = __nccwpck_require__(48469); -const GetLifecyclePolicyPreviewCommand_1 = __nccwpck_require__(17006); -const GetRegistryPolicyCommand_1 = __nccwpck_require__(33685); -const GetRegistryScanningConfigurationCommand_1 = __nccwpck_require__(82741); -const GetRepositoryPolicyCommand_1 = __nccwpck_require__(46330); -const InitiateLayerUploadCommand_1 = __nccwpck_require__(6936); -const ListImagesCommand_1 = __nccwpck_require__(3854); -const ListTagsForResourceCommand_1 = __nccwpck_require__(97403); -const PutImageCommand_1 = __nccwpck_require__(66844); -const PutImageScanningConfigurationCommand_1 = __nccwpck_require__(87935); -const PutImageTagMutabilityCommand_1 = __nccwpck_require__(66495); -const PutLifecyclePolicyCommand_1 = __nccwpck_require__(33854); -const PutRegistryPolicyCommand_1 = __nccwpck_require__(97928); -const PutRegistryScanningConfigurationCommand_1 = __nccwpck_require__(29529); -const PutReplicationConfigurationCommand_1 = __nccwpck_require__(13350); -const SetRepositoryPolicyCommand_1 = __nccwpck_require__(78300); -const StartImageScanCommand_1 = __nccwpck_require__(47984); -const StartLifecyclePolicyPreviewCommand_1 = __nccwpck_require__(35905); -const TagResourceCommand_1 = __nccwpck_require__(82665); -const UntagResourceCommand_1 = __nccwpck_require__(37225); -const UploadLayerPartCommand_1 = __nccwpck_require__(55825); -const ECRClient_1 = __nccwpck_require__(83391); -class ECR extends ECRClient_1.ECRClient { - batchCheckLayerAvailability(args, optionsOrCb, cb) { - const command = new BatchCheckLayerAvailabilityCommand_1.BatchCheckLayerAvailabilityCommand(args); - if (typeof optionsOrCb === "function") { - this.send(command, optionsOrCb); - } - else if (typeof cb === "function") { - if (typeof optionsOrCb !== "object") - throw new Error(`Expect http options but get ${typeof optionsOrCb}`); - this.send(command, optionsOrCb || {}, cb); - } - else { - return this.send(command, optionsOrCb); - } - } - batchDeleteImage(args, optionsOrCb, cb) { - const command = new BatchDeleteImageCommand_1.BatchDeleteImageCommand(args); - if (typeof optionsOrCb === "function") { - this.send(command, optionsOrCb); - } - else if (typeof cb === "function") { - if (typeof optionsOrCb !== "object") - throw new Error(`Expect http options but get ${typeof optionsOrCb}`); - this.send(command, optionsOrCb || {}, cb); - } - else { - return this.send(command, optionsOrCb); - } - } - batchGetImage(args, optionsOrCb, cb) { - const command = new BatchGetImageCommand_1.BatchGetImageCommand(args); - if (typeof optionsOrCb === "function") { - this.send(command, optionsOrCb); - } - else if (typeof cb === "function") { - if (typeof optionsOrCb !== "object") - throw new Error(`Expect http options but get ${typeof optionsOrCb}`); - this.send(command, optionsOrCb || {}, cb); - } - else { - return this.send(command, optionsOrCb); - } - } - batchGetRepositoryScanningConfiguration(args, optionsOrCb, cb) { - const command = new BatchGetRepositoryScanningConfigurationCommand_1.BatchGetRepositoryScanningConfigurationCommand(args); - if (typeof optionsOrCb === "function") { - this.send(command, optionsOrCb); - } - else if (typeof cb === "function") { - if (typeof optionsOrCb !== "object") - throw new Error(`Expect http options but get ${typeof optionsOrCb}`); - this.send(command, optionsOrCb || {}, cb); - } - else { - return this.send(command, optionsOrCb); - } - } - completeLayerUpload(args, optionsOrCb, cb) { - const command = new CompleteLayerUploadCommand_1.CompleteLayerUploadCommand(args); - if (typeof optionsOrCb === "function") { - this.send(command, optionsOrCb); - } - else if (typeof cb === "function") { - if (typeof optionsOrCb !== "object") - throw new Error(`Expect http options but get ${typeof optionsOrCb}`); - this.send(command, optionsOrCb || {}, cb); - } - else { - return this.send(command, optionsOrCb); - } - } - createPullThroughCacheRule(args, optionsOrCb, cb) { - const command = new CreatePullThroughCacheRuleCommand_1.CreatePullThroughCacheRuleCommand(args); - if (typeof optionsOrCb === "function") { - this.send(command, optionsOrCb); - } - else if (typeof cb === "function") { - if (typeof optionsOrCb !== "object") - throw new Error(`Expect http options but get ${typeof optionsOrCb}`); - this.send(command, optionsOrCb || {}, cb); - } - else { - return this.send(command, optionsOrCb); - } - } - createRepository(args, optionsOrCb, cb) { - const command = new CreateRepositoryCommand_1.CreateRepositoryCommand(args); - if (typeof optionsOrCb === "function") { - this.send(command, optionsOrCb); - } - else if (typeof cb === "function") { - if (typeof optionsOrCb !== "object") - throw new Error(`Expect http options but get ${typeof optionsOrCb}`); - this.send(command, optionsOrCb || {}, cb); - } - else { - return this.send(command, optionsOrCb); - } - } - deleteLifecyclePolicy(args, optionsOrCb, cb) { - const command = new DeleteLifecyclePolicyCommand_1.DeleteLifecyclePolicyCommand(args); - if (typeof optionsOrCb === "function") { - this.send(command, optionsOrCb); - } - else if (typeof cb === "function") { - if (typeof optionsOrCb !== "object") - throw new Error(`Expect http options but get ${typeof optionsOrCb}`); - this.send(command, optionsOrCb || {}, cb); - } - else { - return this.send(command, optionsOrCb); - } - } - deletePullThroughCacheRule(args, optionsOrCb, cb) { - const command = new DeletePullThroughCacheRuleCommand_1.DeletePullThroughCacheRuleCommand(args); - if (typeof optionsOrCb === "function") { - this.send(command, optionsOrCb); - } - else if (typeof cb === "function") { - if (typeof optionsOrCb !== "object") - throw new Error(`Expect http options but get ${typeof optionsOrCb}`); - this.send(command, optionsOrCb || {}, cb); - } - else { - return this.send(command, optionsOrCb); - } - } - deleteRegistryPolicy(args, optionsOrCb, cb) { - const command = new DeleteRegistryPolicyCommand_1.DeleteRegistryPolicyCommand(args); - if (typeof optionsOrCb === "function") { - this.send(command, optionsOrCb); - } - else if (typeof cb === "function") { - if (typeof optionsOrCb !== "object") - throw new Error(`Expect http options but get ${typeof optionsOrCb}`); - this.send(command, optionsOrCb || {}, cb); - } - else { - return this.send(command, optionsOrCb); - } - } - deleteRepository(args, optionsOrCb, cb) { - const command = new DeleteRepositoryCommand_1.DeleteRepositoryCommand(args); - if (typeof optionsOrCb === "function") { - this.send(command, optionsOrCb); - } - else if (typeof cb === "function") { - if (typeof optionsOrCb !== "object") - throw new Error(`Expect http options but get ${typeof optionsOrCb}`); - this.send(command, optionsOrCb || {}, cb); - } - else { - return this.send(command, optionsOrCb); - } - } - deleteRepositoryPolicy(args, optionsOrCb, cb) { - const command = new DeleteRepositoryPolicyCommand_1.DeleteRepositoryPolicyCommand(args); - if (typeof optionsOrCb === "function") { - this.send(command, optionsOrCb); - } - else if (typeof cb === "function") { - if (typeof optionsOrCb !== "object") - throw new Error(`Expect http options but get ${typeof optionsOrCb}`); - this.send(command, optionsOrCb || {}, cb); - } - else { - return this.send(command, optionsOrCb); - } - } - describeImageReplicationStatus(args, optionsOrCb, cb) { - const command = new DescribeImageReplicationStatusCommand_1.DescribeImageReplicationStatusCommand(args); - if (typeof optionsOrCb === "function") { - this.send(command, optionsOrCb); - } - else if (typeof cb === "function") { - if (typeof optionsOrCb !== "object") - throw new Error(`Expect http options but get ${typeof optionsOrCb}`); - this.send(command, optionsOrCb || {}, cb); - } - else { - return this.send(command, optionsOrCb); - } - } - describeImages(args, optionsOrCb, cb) { - const command = new DescribeImagesCommand_1.DescribeImagesCommand(args); - if (typeof optionsOrCb === "function") { - this.send(command, optionsOrCb); - } - else if (typeof cb === "function") { - if (typeof optionsOrCb !== "object") - throw new Error(`Expect http options but get ${typeof optionsOrCb}`); - this.send(command, optionsOrCb || {}, cb); - } - else { - return this.send(command, optionsOrCb); - } - } - describeImageScanFindings(args, optionsOrCb, cb) { - const command = new DescribeImageScanFindingsCommand_1.DescribeImageScanFindingsCommand(args); - if (typeof optionsOrCb === "function") { - this.send(command, optionsOrCb); - } - else if (typeof cb === "function") { - if (typeof optionsOrCb !== "object") - throw new Error(`Expect http options but get ${typeof optionsOrCb}`); - this.send(command, optionsOrCb || {}, cb); - } - else { - return this.send(command, optionsOrCb); - } - } - describePullThroughCacheRules(args, optionsOrCb, cb) { - const command = new DescribePullThroughCacheRulesCommand_1.DescribePullThroughCacheRulesCommand(args); - if (typeof optionsOrCb === "function") { - this.send(command, optionsOrCb); - } - else if (typeof cb === "function") { - if (typeof optionsOrCb !== "object") - throw new Error(`Expect http options but get ${typeof optionsOrCb}`); - this.send(command, optionsOrCb || {}, cb); - } - else { - return this.send(command, optionsOrCb); - } - } - describeRegistry(args, optionsOrCb, cb) { - const command = new DescribeRegistryCommand_1.DescribeRegistryCommand(args); - if (typeof optionsOrCb === "function") { - this.send(command, optionsOrCb); - } - else if (typeof cb === "function") { - if (typeof optionsOrCb !== "object") - throw new Error(`Expect http options but get ${typeof optionsOrCb}`); - this.send(command, optionsOrCb || {}, cb); - } - else { - return this.send(command, optionsOrCb); - } - } - describeRepositories(args, optionsOrCb, cb) { - const command = new DescribeRepositoriesCommand_1.DescribeRepositoriesCommand(args); - if (typeof optionsOrCb === "function") { - this.send(command, optionsOrCb); - } - else if (typeof cb === "function") { - if (typeof optionsOrCb !== "object") - throw new Error(`Expect http options but get ${typeof optionsOrCb}`); - this.send(command, optionsOrCb || {}, cb); - } - else { - return this.send(command, optionsOrCb); - } - } - getAuthorizationToken(args, optionsOrCb, cb) { - const command = new GetAuthorizationTokenCommand_1.GetAuthorizationTokenCommand(args); - if (typeof optionsOrCb === "function") { - this.send(command, optionsOrCb); - } - else if (typeof cb === "function") { - if (typeof optionsOrCb !== "object") - throw new Error(`Expect http options but get ${typeof optionsOrCb}`); - this.send(command, optionsOrCb || {}, cb); - } - else { - return this.send(command, optionsOrCb); - } - } - getDownloadUrlForLayer(args, optionsOrCb, cb) { - const command = new GetDownloadUrlForLayerCommand_1.GetDownloadUrlForLayerCommand(args); - if (typeof optionsOrCb === "function") { - this.send(command, optionsOrCb); - } - else if (typeof cb === "function") { - if (typeof optionsOrCb !== "object") - throw new Error(`Expect http options but get ${typeof optionsOrCb}`); - this.send(command, optionsOrCb || {}, cb); - } - else { - return this.send(command, optionsOrCb); - } - } - getLifecyclePolicy(args, optionsOrCb, cb) { - const command = new GetLifecyclePolicyCommand_1.GetLifecyclePolicyCommand(args); - if (typeof optionsOrCb === "function") { - this.send(command, optionsOrCb); - } - else if (typeof cb === "function") { - if (typeof optionsOrCb !== "object") - throw new Error(`Expect http options but get ${typeof optionsOrCb}`); - this.send(command, optionsOrCb || {}, cb); - } - else { - return this.send(command, optionsOrCb); - } - } - getLifecyclePolicyPreview(args, optionsOrCb, cb) { - const command = new GetLifecyclePolicyPreviewCommand_1.GetLifecyclePolicyPreviewCommand(args); - if (typeof optionsOrCb === "function") { - this.send(command, optionsOrCb); - } - else if (typeof cb === "function") { - if (typeof optionsOrCb !== "object") - throw new Error(`Expect http options but get ${typeof optionsOrCb}`); - this.send(command, optionsOrCb || {}, cb); - } - else { - return this.send(command, optionsOrCb); - } - } - getRegistryPolicy(args, optionsOrCb, cb) { - const command = new GetRegistryPolicyCommand_1.GetRegistryPolicyCommand(args); - if (typeof optionsOrCb === "function") { - this.send(command, optionsOrCb); - } - else if (typeof cb === "function") { - if (typeof optionsOrCb !== "object") - throw new Error(`Expect http options but get ${typeof optionsOrCb}`); - this.send(command, optionsOrCb || {}, cb); - } - else { - return this.send(command, optionsOrCb); - } - } - getRegistryScanningConfiguration(args, optionsOrCb, cb) { - const command = new GetRegistryScanningConfigurationCommand_1.GetRegistryScanningConfigurationCommand(args); - if (typeof optionsOrCb === "function") { - this.send(command, optionsOrCb); - } - else if (typeof cb === "function") { - if (typeof optionsOrCb !== "object") - throw new Error(`Expect http options but get ${typeof optionsOrCb}`); - this.send(command, optionsOrCb || {}, cb); - } - else { - return this.send(command, optionsOrCb); - } - } - getRepositoryPolicy(args, optionsOrCb, cb) { - const command = new GetRepositoryPolicyCommand_1.GetRepositoryPolicyCommand(args); - if (typeof optionsOrCb === "function") { - this.send(command, optionsOrCb); - } - else if (typeof cb === "function") { - if (typeof optionsOrCb !== "object") - throw new Error(`Expect http options but get ${typeof optionsOrCb}`); - this.send(command, optionsOrCb || {}, cb); - } - else { - return this.send(command, optionsOrCb); - } - } - initiateLayerUpload(args, optionsOrCb, cb) { - const command = new InitiateLayerUploadCommand_1.InitiateLayerUploadCommand(args); - if (typeof optionsOrCb === "function") { - this.send(command, optionsOrCb); - } - else if (typeof cb === "function") { - if (typeof optionsOrCb !== "object") - throw new Error(`Expect http options but get ${typeof optionsOrCb}`); - this.send(command, optionsOrCb || {}, cb); - } - else { - return this.send(command, optionsOrCb); - } - } - listImages(args, optionsOrCb, cb) { - const command = new ListImagesCommand_1.ListImagesCommand(args); - if (typeof optionsOrCb === "function") { - this.send(command, optionsOrCb); - } - else if (typeof cb === "function") { - if (typeof optionsOrCb !== "object") - throw new Error(`Expect http options but get ${typeof optionsOrCb}`); - this.send(command, optionsOrCb || {}, cb); - } - else { - return this.send(command, optionsOrCb); - } - } - listTagsForResource(args, optionsOrCb, cb) { - const command = new ListTagsForResourceCommand_1.ListTagsForResourceCommand(args); - if (typeof optionsOrCb === "function") { - this.send(command, optionsOrCb); - } - else if (typeof cb === "function") { - if (typeof optionsOrCb !== "object") - throw new Error(`Expect http options but get ${typeof optionsOrCb}`); - this.send(command, optionsOrCb || {}, cb); - } - else { - return this.send(command, optionsOrCb); - } - } - putImage(args, optionsOrCb, cb) { - const command = new PutImageCommand_1.PutImageCommand(args); - if (typeof optionsOrCb === "function") { - this.send(command, optionsOrCb); - } - else if (typeof cb === "function") { - if (typeof optionsOrCb !== "object") - throw new Error(`Expect http options but get ${typeof optionsOrCb}`); - this.send(command, optionsOrCb || {}, cb); - } - else { - return this.send(command, optionsOrCb); - } - } - putImageScanningConfiguration(args, optionsOrCb, cb) { - const command = new PutImageScanningConfigurationCommand_1.PutImageScanningConfigurationCommand(args); - if (typeof optionsOrCb === "function") { - this.send(command, optionsOrCb); - } - else if (typeof cb === "function") { - if (typeof optionsOrCb !== "object") - throw new Error(`Expect http options but get ${typeof optionsOrCb}`); - this.send(command, optionsOrCb || {}, cb); - } - else { - return this.send(command, optionsOrCb); - } - } - putImageTagMutability(args, optionsOrCb, cb) { - const command = new PutImageTagMutabilityCommand_1.PutImageTagMutabilityCommand(args); - if (typeof optionsOrCb === "function") { - this.send(command, optionsOrCb); - } - else if (typeof cb === "function") { - if (typeof optionsOrCb !== "object") - throw new Error(`Expect http options but get ${typeof optionsOrCb}`); - this.send(command, optionsOrCb || {}, cb); - } - else { - return this.send(command, optionsOrCb); - } - } - putLifecyclePolicy(args, optionsOrCb, cb) { - const command = new PutLifecyclePolicyCommand_1.PutLifecyclePolicyCommand(args); - if (typeof optionsOrCb === "function") { - this.send(command, optionsOrCb); - } - else if (typeof cb === "function") { - if (typeof optionsOrCb !== "object") - throw new Error(`Expect http options but get ${typeof optionsOrCb}`); - this.send(command, optionsOrCb || {}, cb); - } - else { - return this.send(command, optionsOrCb); - } - } - putRegistryPolicy(args, optionsOrCb, cb) { - const command = new PutRegistryPolicyCommand_1.PutRegistryPolicyCommand(args); - if (typeof optionsOrCb === "function") { - this.send(command, optionsOrCb); - } - else if (typeof cb === "function") { - if (typeof optionsOrCb !== "object") - throw new Error(`Expect http options but get ${typeof optionsOrCb}`); - this.send(command, optionsOrCb || {}, cb); - } - else { - return this.send(command, optionsOrCb); - } - } - putRegistryScanningConfiguration(args, optionsOrCb, cb) { - const command = new PutRegistryScanningConfigurationCommand_1.PutRegistryScanningConfigurationCommand(args); - if (typeof optionsOrCb === "function") { - this.send(command, optionsOrCb); - } - else if (typeof cb === "function") { - if (typeof optionsOrCb !== "object") - throw new Error(`Expect http options but get ${typeof optionsOrCb}`); - this.send(command, optionsOrCb || {}, cb); - } - else { - return this.send(command, optionsOrCb); - } - } - putReplicationConfiguration(args, optionsOrCb, cb) { - const command = new PutReplicationConfigurationCommand_1.PutReplicationConfigurationCommand(args); - if (typeof optionsOrCb === "function") { - this.send(command, optionsOrCb); - } - else if (typeof cb === "function") { - if (typeof optionsOrCb !== "object") - throw new Error(`Expect http options but get ${typeof optionsOrCb}`); - this.send(command, optionsOrCb || {}, cb); - } - else { - return this.send(command, optionsOrCb); - } - } - setRepositoryPolicy(args, optionsOrCb, cb) { - const command = new SetRepositoryPolicyCommand_1.SetRepositoryPolicyCommand(args); - if (typeof optionsOrCb === "function") { - this.send(command, optionsOrCb); - } - else if (typeof cb === "function") { - if (typeof optionsOrCb !== "object") - throw new Error(`Expect http options but get ${typeof optionsOrCb}`); - this.send(command, optionsOrCb || {}, cb); - } - else { - return this.send(command, optionsOrCb); - } - } - startImageScan(args, optionsOrCb, cb) { - const command = new StartImageScanCommand_1.StartImageScanCommand(args); - if (typeof optionsOrCb === "function") { - this.send(command, optionsOrCb); - } - else if (typeof cb === "function") { - if (typeof optionsOrCb !== "object") - throw new Error(`Expect http options but get ${typeof optionsOrCb}`); - this.send(command, optionsOrCb || {}, cb); - } - else { - return this.send(command, optionsOrCb); - } - } - startLifecyclePolicyPreview(args, optionsOrCb, cb) { - const command = new StartLifecyclePolicyPreviewCommand_1.StartLifecyclePolicyPreviewCommand(args); - if (typeof optionsOrCb === "function") { - this.send(command, optionsOrCb); - } - else if (typeof cb === "function") { - if (typeof optionsOrCb !== "object") - throw new Error(`Expect http options but get ${typeof optionsOrCb}`); - this.send(command, optionsOrCb || {}, cb); - } - else { - return this.send(command, optionsOrCb); - } - } - tagResource(args, optionsOrCb, cb) { - const command = new TagResourceCommand_1.TagResourceCommand(args); - if (typeof optionsOrCb === "function") { - this.send(command, optionsOrCb); - } - else if (typeof cb === "function") { - if (typeof optionsOrCb !== "object") - throw new Error(`Expect http options but get ${typeof optionsOrCb}`); - this.send(command, optionsOrCb || {}, cb); - } - else { - return this.send(command, optionsOrCb); - } - } - untagResource(args, optionsOrCb, cb) { - const command = new UntagResourceCommand_1.UntagResourceCommand(args); - if (typeof optionsOrCb === "function") { - this.send(command, optionsOrCb); - } - else if (typeof cb === "function") { - if (typeof optionsOrCb !== "object") - throw new Error(`Expect http options but get ${typeof optionsOrCb}`); - this.send(command, optionsOrCb || {}, cb); - } - else { - return this.send(command, optionsOrCb); - } - } - uploadLayerPart(args, optionsOrCb, cb) { - const command = new UploadLayerPartCommand_1.UploadLayerPartCommand(args); - if (typeof optionsOrCb === "function") { - this.send(command, optionsOrCb); - } - else if (typeof cb === "function") { - if (typeof optionsOrCb !== "object") - throw new Error(`Expect http options but get ${typeof optionsOrCb}`); - this.send(command, optionsOrCb || {}, cb); - } - else { - return this.send(command, optionsOrCb); - } - } -} -exports.ECR = ECR; - - -/***/ }), - -/***/ 83391: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.ECRClient = void 0; -const config_resolver_1 = __nccwpck_require__(56153); -const middleware_content_length_1 = __nccwpck_require__(42245); -const middleware_host_header_1 = __nccwpck_require__(22545); -const middleware_logger_1 = __nccwpck_require__(20014); -const middleware_retry_1 = __nccwpck_require__(96064); -const middleware_signing_1 = __nccwpck_require__(14935); -const middleware_user_agent_1 = __nccwpck_require__(64688); -const smithy_client_1 = __nccwpck_require__(4963); -const runtimeConfig_1 = __nccwpck_require__(869); -class ECRClient extends smithy_client_1.Client { - constructor(configuration) { - const _config_0 = runtimeConfig_1.getRuntimeConfig(configuration); - const _config_1 = config_resolver_1.resolveRegionConfig(_config_0); - const _config_2 = config_resolver_1.resolveEndpointsConfig(_config_1); - const _config_3 = middleware_retry_1.resolveRetryConfig(_config_2); - const _config_4 = middleware_host_header_1.resolveHostHeaderConfig(_config_3); - const _config_5 = middleware_signing_1.resolveAwsAuthConfig(_config_4); - const _config_6 = middleware_user_agent_1.resolveUserAgentConfig(_config_5); - super(_config_6); - this.config = _config_6; - this.middlewareStack.use(middleware_retry_1.getRetryPlugin(this.config)); - this.middlewareStack.use(middleware_content_length_1.getContentLengthPlugin(this.config)); - this.middlewareStack.use(middleware_host_header_1.getHostHeaderPlugin(this.config)); - this.middlewareStack.use(middleware_logger_1.getLoggerPlugin(this.config)); - this.middlewareStack.use(middleware_signing_1.getAwsAuthPlugin(this.config)); - this.middlewareStack.use(middleware_user_agent_1.getUserAgentPlugin(this.config)); - } - destroy() { - super.destroy(); - } -} -exports.ECRClient = ECRClient; - - -/***/ }), - -/***/ 63804: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.BatchCheckLayerAvailabilityCommand = void 0; -const middleware_serde_1 = __nccwpck_require__(93631); -const smithy_client_1 = __nccwpck_require__(4963); -const models_0_1 = __nccwpck_require__(79088); -const Aws_json1_1_1 = __nccwpck_require__(56704); -class BatchCheckLayerAvailabilityCommand extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "ECRClient"; - const commandName = "BatchCheckLayerAvailabilityCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_0_1.BatchCheckLayerAvailabilityRequest.filterSensitiveLog, - outputFilterSensitiveLog: models_0_1.BatchCheckLayerAvailabilityResponse.filterSensitiveLog, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return Aws_json1_1_1.serializeAws_json1_1BatchCheckLayerAvailabilityCommand(input, context); - } - deserialize(output, context) { - return Aws_json1_1_1.deserializeAws_json1_1BatchCheckLayerAvailabilityCommand(output, context); - } -} -exports.BatchCheckLayerAvailabilityCommand = BatchCheckLayerAvailabilityCommand; - - -/***/ }), - -/***/ 15511: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.BatchDeleteImageCommand = void 0; -const middleware_serde_1 = __nccwpck_require__(93631); -const smithy_client_1 = __nccwpck_require__(4963); -const models_0_1 = __nccwpck_require__(79088); -const Aws_json1_1_1 = __nccwpck_require__(56704); -class BatchDeleteImageCommand extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "ECRClient"; - const commandName = "BatchDeleteImageCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_0_1.BatchDeleteImageRequest.filterSensitiveLog, - outputFilterSensitiveLog: models_0_1.BatchDeleteImageResponse.filterSensitiveLog, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return Aws_json1_1_1.serializeAws_json1_1BatchDeleteImageCommand(input, context); - } - deserialize(output, context) { - return Aws_json1_1_1.deserializeAws_json1_1BatchDeleteImageCommand(output, context); - } -} -exports.BatchDeleteImageCommand = BatchDeleteImageCommand; - - -/***/ }), - -/***/ 78859: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.BatchGetImageCommand = void 0; -const middleware_serde_1 = __nccwpck_require__(93631); -const smithy_client_1 = __nccwpck_require__(4963); -const models_0_1 = __nccwpck_require__(79088); -const Aws_json1_1_1 = __nccwpck_require__(56704); -class BatchGetImageCommand extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "ECRClient"; - const commandName = "BatchGetImageCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_0_1.BatchGetImageRequest.filterSensitiveLog, - outputFilterSensitiveLog: models_0_1.BatchGetImageResponse.filterSensitiveLog, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return Aws_json1_1_1.serializeAws_json1_1BatchGetImageCommand(input, context); - } - deserialize(output, context) { - return Aws_json1_1_1.deserializeAws_json1_1BatchGetImageCommand(output, context); - } -} -exports.BatchGetImageCommand = BatchGetImageCommand; - - -/***/ }), - -/***/ 79728: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.BatchGetRepositoryScanningConfigurationCommand = void 0; -const middleware_serde_1 = __nccwpck_require__(93631); -const smithy_client_1 = __nccwpck_require__(4963); -const models_0_1 = __nccwpck_require__(79088); -const Aws_json1_1_1 = __nccwpck_require__(56704); -class BatchGetRepositoryScanningConfigurationCommand extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "ECRClient"; - const commandName = "BatchGetRepositoryScanningConfigurationCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_0_1.BatchGetRepositoryScanningConfigurationRequest.filterSensitiveLog, - outputFilterSensitiveLog: models_0_1.BatchGetRepositoryScanningConfigurationResponse.filterSensitiveLog, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return Aws_json1_1_1.serializeAws_json1_1BatchGetRepositoryScanningConfigurationCommand(input, context); - } - deserialize(output, context) { - return Aws_json1_1_1.deserializeAws_json1_1BatchGetRepositoryScanningConfigurationCommand(output, context); - } -} -exports.BatchGetRepositoryScanningConfigurationCommand = BatchGetRepositoryScanningConfigurationCommand; - - -/***/ }), - -/***/ 49003: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.CompleteLayerUploadCommand = void 0; -const middleware_serde_1 = __nccwpck_require__(93631); -const smithy_client_1 = __nccwpck_require__(4963); -const models_0_1 = __nccwpck_require__(79088); -const Aws_json1_1_1 = __nccwpck_require__(56704); -class CompleteLayerUploadCommand extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "ECRClient"; - const commandName = "CompleteLayerUploadCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_0_1.CompleteLayerUploadRequest.filterSensitiveLog, - outputFilterSensitiveLog: models_0_1.CompleteLayerUploadResponse.filterSensitiveLog, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return Aws_json1_1_1.serializeAws_json1_1CompleteLayerUploadCommand(input, context); - } - deserialize(output, context) { - return Aws_json1_1_1.deserializeAws_json1_1CompleteLayerUploadCommand(output, context); - } -} -exports.CompleteLayerUploadCommand = CompleteLayerUploadCommand; - - -/***/ }), - -/***/ 71454: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.CreatePullThroughCacheRuleCommand = void 0; -const middleware_serde_1 = __nccwpck_require__(93631); -const smithy_client_1 = __nccwpck_require__(4963); -const models_0_1 = __nccwpck_require__(79088); -const Aws_json1_1_1 = __nccwpck_require__(56704); -class CreatePullThroughCacheRuleCommand extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "ECRClient"; - const commandName = "CreatePullThroughCacheRuleCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_0_1.CreatePullThroughCacheRuleRequest.filterSensitiveLog, - outputFilterSensitiveLog: models_0_1.CreatePullThroughCacheRuleResponse.filterSensitiveLog, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return Aws_json1_1_1.serializeAws_json1_1CreatePullThroughCacheRuleCommand(input, context); - } - deserialize(output, context) { - return Aws_json1_1_1.deserializeAws_json1_1CreatePullThroughCacheRuleCommand(output, context); - } -} -exports.CreatePullThroughCacheRuleCommand = CreatePullThroughCacheRuleCommand; - - -/***/ }), - -/***/ 5074: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.CreateRepositoryCommand = void 0; -const middleware_serde_1 = __nccwpck_require__(93631); -const smithy_client_1 = __nccwpck_require__(4963); -const models_0_1 = __nccwpck_require__(79088); -const Aws_json1_1_1 = __nccwpck_require__(56704); -class CreateRepositoryCommand extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "ECRClient"; - const commandName = "CreateRepositoryCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_0_1.CreateRepositoryRequest.filterSensitiveLog, - outputFilterSensitiveLog: models_0_1.CreateRepositoryResponse.filterSensitiveLog, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return Aws_json1_1_1.serializeAws_json1_1CreateRepositoryCommand(input, context); - } - deserialize(output, context) { - return Aws_json1_1_1.deserializeAws_json1_1CreateRepositoryCommand(output, context); - } -} -exports.CreateRepositoryCommand = CreateRepositoryCommand; - - -/***/ }), - -/***/ 48981: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.DeleteLifecyclePolicyCommand = void 0; -const middleware_serde_1 = __nccwpck_require__(93631); -const smithy_client_1 = __nccwpck_require__(4963); -const models_0_1 = __nccwpck_require__(79088); -const Aws_json1_1_1 = __nccwpck_require__(56704); -class DeleteLifecyclePolicyCommand extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "ECRClient"; - const commandName = "DeleteLifecyclePolicyCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_0_1.DeleteLifecyclePolicyRequest.filterSensitiveLog, - outputFilterSensitiveLog: models_0_1.DeleteLifecyclePolicyResponse.filterSensitiveLog, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return Aws_json1_1_1.serializeAws_json1_1DeleteLifecyclePolicyCommand(input, context); - } - deserialize(output, context) { - return Aws_json1_1_1.deserializeAws_json1_1DeleteLifecyclePolicyCommand(output, context); - } -} -exports.DeleteLifecyclePolicyCommand = DeleteLifecyclePolicyCommand; - - -/***/ }), - -/***/ 83793: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.DeletePullThroughCacheRuleCommand = void 0; -const middleware_serde_1 = __nccwpck_require__(93631); -const smithy_client_1 = __nccwpck_require__(4963); -const models_0_1 = __nccwpck_require__(79088); -const Aws_json1_1_1 = __nccwpck_require__(56704); -class DeletePullThroughCacheRuleCommand extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "ECRClient"; - const commandName = "DeletePullThroughCacheRuleCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_0_1.DeletePullThroughCacheRuleRequest.filterSensitiveLog, - outputFilterSensitiveLog: models_0_1.DeletePullThroughCacheRuleResponse.filterSensitiveLog, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return Aws_json1_1_1.serializeAws_json1_1DeletePullThroughCacheRuleCommand(input, context); - } - deserialize(output, context) { - return Aws_json1_1_1.deserializeAws_json1_1DeletePullThroughCacheRuleCommand(output, context); - } -} -exports.DeletePullThroughCacheRuleCommand = DeletePullThroughCacheRuleCommand; - - -/***/ }), - -/***/ 31424: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.DeleteRegistryPolicyCommand = void 0; -const middleware_serde_1 = __nccwpck_require__(93631); -const smithy_client_1 = __nccwpck_require__(4963); -const models_0_1 = __nccwpck_require__(79088); -const Aws_json1_1_1 = __nccwpck_require__(56704); -class DeleteRegistryPolicyCommand extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "ECRClient"; - const commandName = "DeleteRegistryPolicyCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_0_1.DeleteRegistryPolicyRequest.filterSensitiveLog, - outputFilterSensitiveLog: models_0_1.DeleteRegistryPolicyResponse.filterSensitiveLog, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return Aws_json1_1_1.serializeAws_json1_1DeleteRegistryPolicyCommand(input, context); - } - deserialize(output, context) { - return Aws_json1_1_1.deserializeAws_json1_1DeleteRegistryPolicyCommand(output, context); - } -} -exports.DeleteRegistryPolicyCommand = DeleteRegistryPolicyCommand; - - -/***/ }), - -/***/ 88651: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.DeleteRepositoryCommand = void 0; -const middleware_serde_1 = __nccwpck_require__(93631); -const smithy_client_1 = __nccwpck_require__(4963); -const models_0_1 = __nccwpck_require__(79088); -const Aws_json1_1_1 = __nccwpck_require__(56704); -class DeleteRepositoryCommand extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "ECRClient"; - const commandName = "DeleteRepositoryCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_0_1.DeleteRepositoryRequest.filterSensitiveLog, - outputFilterSensitiveLog: models_0_1.DeleteRepositoryResponse.filterSensitiveLog, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return Aws_json1_1_1.serializeAws_json1_1DeleteRepositoryCommand(input, context); - } - deserialize(output, context) { - return Aws_json1_1_1.deserializeAws_json1_1DeleteRepositoryCommand(output, context); - } -} -exports.DeleteRepositoryCommand = DeleteRepositoryCommand; - - -/***/ }), - -/***/ 36828: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.DeleteRepositoryPolicyCommand = void 0; -const middleware_serde_1 = __nccwpck_require__(93631); -const smithy_client_1 = __nccwpck_require__(4963); -const models_0_1 = __nccwpck_require__(79088); -const Aws_json1_1_1 = __nccwpck_require__(56704); -class DeleteRepositoryPolicyCommand extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "ECRClient"; - const commandName = "DeleteRepositoryPolicyCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_0_1.DeleteRepositoryPolicyRequest.filterSensitiveLog, - outputFilterSensitiveLog: models_0_1.DeleteRepositoryPolicyResponse.filterSensitiveLog, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return Aws_json1_1_1.serializeAws_json1_1DeleteRepositoryPolicyCommand(input, context); - } - deserialize(output, context) { - return Aws_json1_1_1.deserializeAws_json1_1DeleteRepositoryPolicyCommand(output, context); - } -} -exports.DeleteRepositoryPolicyCommand = DeleteRepositoryPolicyCommand; - - -/***/ }), - -/***/ 39694: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.DescribeImageReplicationStatusCommand = void 0; -const middleware_serde_1 = __nccwpck_require__(93631); -const smithy_client_1 = __nccwpck_require__(4963); -const models_0_1 = __nccwpck_require__(79088); -const Aws_json1_1_1 = __nccwpck_require__(56704); -class DescribeImageReplicationStatusCommand extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "ECRClient"; - const commandName = "DescribeImageReplicationStatusCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_0_1.DescribeImageReplicationStatusRequest.filterSensitiveLog, - outputFilterSensitiveLog: models_0_1.DescribeImageReplicationStatusResponse.filterSensitiveLog, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return Aws_json1_1_1.serializeAws_json1_1DescribeImageReplicationStatusCommand(input, context); - } - deserialize(output, context) { - return Aws_json1_1_1.deserializeAws_json1_1DescribeImageReplicationStatusCommand(output, context); - } -} -exports.DescribeImageReplicationStatusCommand = DescribeImageReplicationStatusCommand; - - -/***/ }), - -/***/ 72987: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.DescribeImageScanFindingsCommand = void 0; -const middleware_serde_1 = __nccwpck_require__(93631); -const smithy_client_1 = __nccwpck_require__(4963); -const models_0_1 = __nccwpck_require__(79088); -const Aws_json1_1_1 = __nccwpck_require__(56704); -class DescribeImageScanFindingsCommand extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "ECRClient"; - const commandName = "DescribeImageScanFindingsCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_0_1.DescribeImageScanFindingsRequest.filterSensitiveLog, - outputFilterSensitiveLog: models_0_1.DescribeImageScanFindingsResponse.filterSensitiveLog, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return Aws_json1_1_1.serializeAws_json1_1DescribeImageScanFindingsCommand(input, context); - } - deserialize(output, context) { - return Aws_json1_1_1.deserializeAws_json1_1DescribeImageScanFindingsCommand(output, context); - } -} -exports.DescribeImageScanFindingsCommand = DescribeImageScanFindingsCommand; - - -/***/ }), - -/***/ 95353: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.DescribeImagesCommand = void 0; -const middleware_serde_1 = __nccwpck_require__(93631); -const smithy_client_1 = __nccwpck_require__(4963); -const models_0_1 = __nccwpck_require__(79088); -const Aws_json1_1_1 = __nccwpck_require__(56704); -class DescribeImagesCommand extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "ECRClient"; - const commandName = "DescribeImagesCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_0_1.DescribeImagesRequest.filterSensitiveLog, - outputFilterSensitiveLog: models_0_1.DescribeImagesResponse.filterSensitiveLog, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return Aws_json1_1_1.serializeAws_json1_1DescribeImagesCommand(input, context); - } - deserialize(output, context) { - return Aws_json1_1_1.deserializeAws_json1_1DescribeImagesCommand(output, context); - } -} -exports.DescribeImagesCommand = DescribeImagesCommand; - - -/***/ }), - -/***/ 31484: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.DescribePullThroughCacheRulesCommand = void 0; -const middleware_serde_1 = __nccwpck_require__(93631); -const smithy_client_1 = __nccwpck_require__(4963); -const models_0_1 = __nccwpck_require__(79088); -const Aws_json1_1_1 = __nccwpck_require__(56704); -class DescribePullThroughCacheRulesCommand extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "ECRClient"; - const commandName = "DescribePullThroughCacheRulesCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_0_1.DescribePullThroughCacheRulesRequest.filterSensitiveLog, - outputFilterSensitiveLog: models_0_1.DescribePullThroughCacheRulesResponse.filterSensitiveLog, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return Aws_json1_1_1.serializeAws_json1_1DescribePullThroughCacheRulesCommand(input, context); - } - deserialize(output, context) { - return Aws_json1_1_1.deserializeAws_json1_1DescribePullThroughCacheRulesCommand(output, context); - } -} -exports.DescribePullThroughCacheRulesCommand = DescribePullThroughCacheRulesCommand; - - -/***/ }), - -/***/ 26166: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.DescribeRegistryCommand = void 0; -const middleware_serde_1 = __nccwpck_require__(93631); -const smithy_client_1 = __nccwpck_require__(4963); -const models_0_1 = __nccwpck_require__(79088); -const Aws_json1_1_1 = __nccwpck_require__(56704); -class DescribeRegistryCommand extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "ECRClient"; - const commandName = "DescribeRegistryCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_0_1.DescribeRegistryRequest.filterSensitiveLog, - outputFilterSensitiveLog: models_0_1.DescribeRegistryResponse.filterSensitiveLog, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return Aws_json1_1_1.serializeAws_json1_1DescribeRegistryCommand(input, context); - } - deserialize(output, context) { - return Aws_json1_1_1.deserializeAws_json1_1DescribeRegistryCommand(output, context); - } -} -exports.DescribeRegistryCommand = DescribeRegistryCommand; - - -/***/ }), - -/***/ 21200: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.DescribeRepositoriesCommand = void 0; -const middleware_serde_1 = __nccwpck_require__(93631); -const smithy_client_1 = __nccwpck_require__(4963); -const models_0_1 = __nccwpck_require__(79088); -const Aws_json1_1_1 = __nccwpck_require__(56704); -class DescribeRepositoriesCommand extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "ECRClient"; - const commandName = "DescribeRepositoriesCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_0_1.DescribeRepositoriesRequest.filterSensitiveLog, - outputFilterSensitiveLog: models_0_1.DescribeRepositoriesResponse.filterSensitiveLog, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return Aws_json1_1_1.serializeAws_json1_1DescribeRepositoriesCommand(input, context); - } - deserialize(output, context) { - return Aws_json1_1_1.deserializeAws_json1_1DescribeRepositoriesCommand(output, context); - } -} -exports.DescribeRepositoriesCommand = DescribeRepositoriesCommand; - - -/***/ }), - -/***/ 35828: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.GetAuthorizationTokenCommand = void 0; -const middleware_serde_1 = __nccwpck_require__(93631); -const smithy_client_1 = __nccwpck_require__(4963); -const models_0_1 = __nccwpck_require__(79088); -const Aws_json1_1_1 = __nccwpck_require__(56704); -class GetAuthorizationTokenCommand extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "ECRClient"; - const commandName = "GetAuthorizationTokenCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_0_1.GetAuthorizationTokenRequest.filterSensitiveLog, - outputFilterSensitiveLog: models_0_1.GetAuthorizationTokenResponse.filterSensitiveLog, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return Aws_json1_1_1.serializeAws_json1_1GetAuthorizationTokenCommand(input, context); - } - deserialize(output, context) { - return Aws_json1_1_1.deserializeAws_json1_1GetAuthorizationTokenCommand(output, context); - } -} -exports.GetAuthorizationTokenCommand = GetAuthorizationTokenCommand; - - -/***/ }), - -/***/ 51401: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.GetDownloadUrlForLayerCommand = void 0; -const middleware_serde_1 = __nccwpck_require__(93631); -const smithy_client_1 = __nccwpck_require__(4963); -const models_0_1 = __nccwpck_require__(79088); -const Aws_json1_1_1 = __nccwpck_require__(56704); -class GetDownloadUrlForLayerCommand extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "ECRClient"; - const commandName = "GetDownloadUrlForLayerCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_0_1.GetDownloadUrlForLayerRequest.filterSensitiveLog, - outputFilterSensitiveLog: models_0_1.GetDownloadUrlForLayerResponse.filterSensitiveLog, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return Aws_json1_1_1.serializeAws_json1_1GetDownloadUrlForLayerCommand(input, context); - } - deserialize(output, context) { - return Aws_json1_1_1.deserializeAws_json1_1GetDownloadUrlForLayerCommand(output, context); - } -} -exports.GetDownloadUrlForLayerCommand = GetDownloadUrlForLayerCommand; - - -/***/ }), - -/***/ 48469: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.GetLifecyclePolicyCommand = void 0; -const middleware_serde_1 = __nccwpck_require__(93631); -const smithy_client_1 = __nccwpck_require__(4963); -const models_0_1 = __nccwpck_require__(79088); -const Aws_json1_1_1 = __nccwpck_require__(56704); -class GetLifecyclePolicyCommand extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "ECRClient"; - const commandName = "GetLifecyclePolicyCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_0_1.GetLifecyclePolicyRequest.filterSensitiveLog, - outputFilterSensitiveLog: models_0_1.GetLifecyclePolicyResponse.filterSensitiveLog, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return Aws_json1_1_1.serializeAws_json1_1GetLifecyclePolicyCommand(input, context); - } - deserialize(output, context) { - return Aws_json1_1_1.deserializeAws_json1_1GetLifecyclePolicyCommand(output, context); - } -} -exports.GetLifecyclePolicyCommand = GetLifecyclePolicyCommand; - - -/***/ }), - -/***/ 17006: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.GetLifecyclePolicyPreviewCommand = void 0; -const middleware_serde_1 = __nccwpck_require__(93631); -const smithy_client_1 = __nccwpck_require__(4963); -const models_0_1 = __nccwpck_require__(79088); -const Aws_json1_1_1 = __nccwpck_require__(56704); -class GetLifecyclePolicyPreviewCommand extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "ECRClient"; - const commandName = "GetLifecyclePolicyPreviewCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_0_1.GetLifecyclePolicyPreviewRequest.filterSensitiveLog, - outputFilterSensitiveLog: models_0_1.GetLifecyclePolicyPreviewResponse.filterSensitiveLog, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return Aws_json1_1_1.serializeAws_json1_1GetLifecyclePolicyPreviewCommand(input, context); - } - deserialize(output, context) { - return Aws_json1_1_1.deserializeAws_json1_1GetLifecyclePolicyPreviewCommand(output, context); - } -} -exports.GetLifecyclePolicyPreviewCommand = GetLifecyclePolicyPreviewCommand; - - -/***/ }), - -/***/ 33685: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.GetRegistryPolicyCommand = void 0; -const middleware_serde_1 = __nccwpck_require__(93631); -const smithy_client_1 = __nccwpck_require__(4963); -const models_0_1 = __nccwpck_require__(79088); -const Aws_json1_1_1 = __nccwpck_require__(56704); -class GetRegistryPolicyCommand extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "ECRClient"; - const commandName = "GetRegistryPolicyCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_0_1.GetRegistryPolicyRequest.filterSensitiveLog, - outputFilterSensitiveLog: models_0_1.GetRegistryPolicyResponse.filterSensitiveLog, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return Aws_json1_1_1.serializeAws_json1_1GetRegistryPolicyCommand(input, context); - } - deserialize(output, context) { - return Aws_json1_1_1.deserializeAws_json1_1GetRegistryPolicyCommand(output, context); - } -} -exports.GetRegistryPolicyCommand = GetRegistryPolicyCommand; - - -/***/ }), - -/***/ 82741: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.GetRegistryScanningConfigurationCommand = void 0; -const middleware_serde_1 = __nccwpck_require__(93631); -const smithy_client_1 = __nccwpck_require__(4963); -const models_0_1 = __nccwpck_require__(79088); -const Aws_json1_1_1 = __nccwpck_require__(56704); -class GetRegistryScanningConfigurationCommand extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "ECRClient"; - const commandName = "GetRegistryScanningConfigurationCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_0_1.GetRegistryScanningConfigurationRequest.filterSensitiveLog, - outputFilterSensitiveLog: models_0_1.GetRegistryScanningConfigurationResponse.filterSensitiveLog, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return Aws_json1_1_1.serializeAws_json1_1GetRegistryScanningConfigurationCommand(input, context); - } - deserialize(output, context) { - return Aws_json1_1_1.deserializeAws_json1_1GetRegistryScanningConfigurationCommand(output, context); - } -} -exports.GetRegistryScanningConfigurationCommand = GetRegistryScanningConfigurationCommand; - - -/***/ }), - -/***/ 46330: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.GetRepositoryPolicyCommand = void 0; -const middleware_serde_1 = __nccwpck_require__(93631); -const smithy_client_1 = __nccwpck_require__(4963); -const models_0_1 = __nccwpck_require__(79088); -const Aws_json1_1_1 = __nccwpck_require__(56704); -class GetRepositoryPolicyCommand extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "ECRClient"; - const commandName = "GetRepositoryPolicyCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_0_1.GetRepositoryPolicyRequest.filterSensitiveLog, - outputFilterSensitiveLog: models_0_1.GetRepositoryPolicyResponse.filterSensitiveLog, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return Aws_json1_1_1.serializeAws_json1_1GetRepositoryPolicyCommand(input, context); - } - deserialize(output, context) { - return Aws_json1_1_1.deserializeAws_json1_1GetRepositoryPolicyCommand(output, context); - } -} -exports.GetRepositoryPolicyCommand = GetRepositoryPolicyCommand; - - -/***/ }), - -/***/ 6936: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.InitiateLayerUploadCommand = void 0; -const middleware_serde_1 = __nccwpck_require__(93631); -const smithy_client_1 = __nccwpck_require__(4963); -const models_0_1 = __nccwpck_require__(79088); -const Aws_json1_1_1 = __nccwpck_require__(56704); -class InitiateLayerUploadCommand extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "ECRClient"; - const commandName = "InitiateLayerUploadCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_0_1.InitiateLayerUploadRequest.filterSensitiveLog, - outputFilterSensitiveLog: models_0_1.InitiateLayerUploadResponse.filterSensitiveLog, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return Aws_json1_1_1.serializeAws_json1_1InitiateLayerUploadCommand(input, context); - } - deserialize(output, context) { - return Aws_json1_1_1.deserializeAws_json1_1InitiateLayerUploadCommand(output, context); - } -} -exports.InitiateLayerUploadCommand = InitiateLayerUploadCommand; - - -/***/ }), - -/***/ 3854: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.ListImagesCommand = void 0; -const middleware_serde_1 = __nccwpck_require__(93631); -const smithy_client_1 = __nccwpck_require__(4963); -const models_0_1 = __nccwpck_require__(79088); -const Aws_json1_1_1 = __nccwpck_require__(56704); -class ListImagesCommand extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "ECRClient"; - const commandName = "ListImagesCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_0_1.ListImagesRequest.filterSensitiveLog, - outputFilterSensitiveLog: models_0_1.ListImagesResponse.filterSensitiveLog, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return Aws_json1_1_1.serializeAws_json1_1ListImagesCommand(input, context); - } - deserialize(output, context) { - return Aws_json1_1_1.deserializeAws_json1_1ListImagesCommand(output, context); - } -} -exports.ListImagesCommand = ListImagesCommand; - - -/***/ }), - -/***/ 97403: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.ListTagsForResourceCommand = void 0; -const middleware_serde_1 = __nccwpck_require__(93631); -const smithy_client_1 = __nccwpck_require__(4963); -const models_0_1 = __nccwpck_require__(79088); -const Aws_json1_1_1 = __nccwpck_require__(56704); -class ListTagsForResourceCommand extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "ECRClient"; - const commandName = "ListTagsForResourceCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_0_1.ListTagsForResourceRequest.filterSensitiveLog, - outputFilterSensitiveLog: models_0_1.ListTagsForResourceResponse.filterSensitiveLog, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return Aws_json1_1_1.serializeAws_json1_1ListTagsForResourceCommand(input, context); - } - deserialize(output, context) { - return Aws_json1_1_1.deserializeAws_json1_1ListTagsForResourceCommand(output, context); - } -} -exports.ListTagsForResourceCommand = ListTagsForResourceCommand; - - -/***/ }), - -/***/ 66844: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.PutImageCommand = void 0; -const middleware_serde_1 = __nccwpck_require__(93631); -const smithy_client_1 = __nccwpck_require__(4963); -const models_0_1 = __nccwpck_require__(79088); -const Aws_json1_1_1 = __nccwpck_require__(56704); -class PutImageCommand extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "ECRClient"; - const commandName = "PutImageCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_0_1.PutImageRequest.filterSensitiveLog, - outputFilterSensitiveLog: models_0_1.PutImageResponse.filterSensitiveLog, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return Aws_json1_1_1.serializeAws_json1_1PutImageCommand(input, context); - } - deserialize(output, context) { - return Aws_json1_1_1.deserializeAws_json1_1PutImageCommand(output, context); - } -} -exports.PutImageCommand = PutImageCommand; - - -/***/ }), - -/***/ 87935: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.PutImageScanningConfigurationCommand = void 0; -const middleware_serde_1 = __nccwpck_require__(93631); -const smithy_client_1 = __nccwpck_require__(4963); -const models_0_1 = __nccwpck_require__(79088); -const Aws_json1_1_1 = __nccwpck_require__(56704); -class PutImageScanningConfigurationCommand extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "ECRClient"; - const commandName = "PutImageScanningConfigurationCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_0_1.PutImageScanningConfigurationRequest.filterSensitiveLog, - outputFilterSensitiveLog: models_0_1.PutImageScanningConfigurationResponse.filterSensitiveLog, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return Aws_json1_1_1.serializeAws_json1_1PutImageScanningConfigurationCommand(input, context); - } - deserialize(output, context) { - return Aws_json1_1_1.deserializeAws_json1_1PutImageScanningConfigurationCommand(output, context); - } -} -exports.PutImageScanningConfigurationCommand = PutImageScanningConfigurationCommand; - - -/***/ }), - -/***/ 66495: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.PutImageTagMutabilityCommand = void 0; -const middleware_serde_1 = __nccwpck_require__(93631); -const smithy_client_1 = __nccwpck_require__(4963); -const models_0_1 = __nccwpck_require__(79088); -const Aws_json1_1_1 = __nccwpck_require__(56704); -class PutImageTagMutabilityCommand extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "ECRClient"; - const commandName = "PutImageTagMutabilityCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_0_1.PutImageTagMutabilityRequest.filterSensitiveLog, - outputFilterSensitiveLog: models_0_1.PutImageTagMutabilityResponse.filterSensitiveLog, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return Aws_json1_1_1.serializeAws_json1_1PutImageTagMutabilityCommand(input, context); - } - deserialize(output, context) { - return Aws_json1_1_1.deserializeAws_json1_1PutImageTagMutabilityCommand(output, context); - } -} -exports.PutImageTagMutabilityCommand = PutImageTagMutabilityCommand; - - -/***/ }), - -/***/ 33854: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.PutLifecyclePolicyCommand = void 0; -const middleware_serde_1 = __nccwpck_require__(93631); -const smithy_client_1 = __nccwpck_require__(4963); -const models_0_1 = __nccwpck_require__(79088); -const Aws_json1_1_1 = __nccwpck_require__(56704); -class PutLifecyclePolicyCommand extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "ECRClient"; - const commandName = "PutLifecyclePolicyCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_0_1.PutLifecyclePolicyRequest.filterSensitiveLog, - outputFilterSensitiveLog: models_0_1.PutLifecyclePolicyResponse.filterSensitiveLog, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return Aws_json1_1_1.serializeAws_json1_1PutLifecyclePolicyCommand(input, context); - } - deserialize(output, context) { - return Aws_json1_1_1.deserializeAws_json1_1PutLifecyclePolicyCommand(output, context); - } -} -exports.PutLifecyclePolicyCommand = PutLifecyclePolicyCommand; - - -/***/ }), - -/***/ 97928: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.PutRegistryPolicyCommand = void 0; -const middleware_serde_1 = __nccwpck_require__(93631); -const smithy_client_1 = __nccwpck_require__(4963); -const models_0_1 = __nccwpck_require__(79088); -const Aws_json1_1_1 = __nccwpck_require__(56704); -class PutRegistryPolicyCommand extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "ECRClient"; - const commandName = "PutRegistryPolicyCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_0_1.PutRegistryPolicyRequest.filterSensitiveLog, - outputFilterSensitiveLog: models_0_1.PutRegistryPolicyResponse.filterSensitiveLog, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return Aws_json1_1_1.serializeAws_json1_1PutRegistryPolicyCommand(input, context); - } - deserialize(output, context) { - return Aws_json1_1_1.deserializeAws_json1_1PutRegistryPolicyCommand(output, context); - } -} -exports.PutRegistryPolicyCommand = PutRegistryPolicyCommand; - - -/***/ }), - -/***/ 29529: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.PutRegistryScanningConfigurationCommand = void 0; -const middleware_serde_1 = __nccwpck_require__(93631); -const smithy_client_1 = __nccwpck_require__(4963); -const models_0_1 = __nccwpck_require__(79088); -const Aws_json1_1_1 = __nccwpck_require__(56704); -class PutRegistryScanningConfigurationCommand extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "ECRClient"; - const commandName = "PutRegistryScanningConfigurationCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_0_1.PutRegistryScanningConfigurationRequest.filterSensitiveLog, - outputFilterSensitiveLog: models_0_1.PutRegistryScanningConfigurationResponse.filterSensitiveLog, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return Aws_json1_1_1.serializeAws_json1_1PutRegistryScanningConfigurationCommand(input, context); - } - deserialize(output, context) { - return Aws_json1_1_1.deserializeAws_json1_1PutRegistryScanningConfigurationCommand(output, context); - } -} -exports.PutRegistryScanningConfigurationCommand = PutRegistryScanningConfigurationCommand; - - -/***/ }), - -/***/ 13350: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.PutReplicationConfigurationCommand = void 0; -const middleware_serde_1 = __nccwpck_require__(93631); -const smithy_client_1 = __nccwpck_require__(4963); -const models_0_1 = __nccwpck_require__(79088); -const Aws_json1_1_1 = __nccwpck_require__(56704); -class PutReplicationConfigurationCommand extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "ECRClient"; - const commandName = "PutReplicationConfigurationCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_0_1.PutReplicationConfigurationRequest.filterSensitiveLog, - outputFilterSensitiveLog: models_0_1.PutReplicationConfigurationResponse.filterSensitiveLog, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return Aws_json1_1_1.serializeAws_json1_1PutReplicationConfigurationCommand(input, context); - } - deserialize(output, context) { - return Aws_json1_1_1.deserializeAws_json1_1PutReplicationConfigurationCommand(output, context); - } -} -exports.PutReplicationConfigurationCommand = PutReplicationConfigurationCommand; - - -/***/ }), - -/***/ 78300: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.SetRepositoryPolicyCommand = void 0; -const middleware_serde_1 = __nccwpck_require__(93631); -const smithy_client_1 = __nccwpck_require__(4963); -const models_0_1 = __nccwpck_require__(79088); -const Aws_json1_1_1 = __nccwpck_require__(56704); -class SetRepositoryPolicyCommand extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "ECRClient"; - const commandName = "SetRepositoryPolicyCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_0_1.SetRepositoryPolicyRequest.filterSensitiveLog, - outputFilterSensitiveLog: models_0_1.SetRepositoryPolicyResponse.filterSensitiveLog, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return Aws_json1_1_1.serializeAws_json1_1SetRepositoryPolicyCommand(input, context); - } - deserialize(output, context) { - return Aws_json1_1_1.deserializeAws_json1_1SetRepositoryPolicyCommand(output, context); - } -} -exports.SetRepositoryPolicyCommand = SetRepositoryPolicyCommand; - - -/***/ }), - -/***/ 47984: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.StartImageScanCommand = void 0; -const middleware_serde_1 = __nccwpck_require__(93631); -const smithy_client_1 = __nccwpck_require__(4963); -const models_0_1 = __nccwpck_require__(79088); -const Aws_json1_1_1 = __nccwpck_require__(56704); -class StartImageScanCommand extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "ECRClient"; - const commandName = "StartImageScanCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_0_1.StartImageScanRequest.filterSensitiveLog, - outputFilterSensitiveLog: models_0_1.StartImageScanResponse.filterSensitiveLog, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return Aws_json1_1_1.serializeAws_json1_1StartImageScanCommand(input, context); - } - deserialize(output, context) { - return Aws_json1_1_1.deserializeAws_json1_1StartImageScanCommand(output, context); - } -} -exports.StartImageScanCommand = StartImageScanCommand; - - -/***/ }), - -/***/ 35905: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.StartLifecyclePolicyPreviewCommand = void 0; -const middleware_serde_1 = __nccwpck_require__(93631); -const smithy_client_1 = __nccwpck_require__(4963); -const models_0_1 = __nccwpck_require__(79088); -const Aws_json1_1_1 = __nccwpck_require__(56704); -class StartLifecyclePolicyPreviewCommand extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "ECRClient"; - const commandName = "StartLifecyclePolicyPreviewCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_0_1.StartLifecyclePolicyPreviewRequest.filterSensitiveLog, - outputFilterSensitiveLog: models_0_1.StartLifecyclePolicyPreviewResponse.filterSensitiveLog, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return Aws_json1_1_1.serializeAws_json1_1StartLifecyclePolicyPreviewCommand(input, context); - } - deserialize(output, context) { - return Aws_json1_1_1.deserializeAws_json1_1StartLifecyclePolicyPreviewCommand(output, context); - } -} -exports.StartLifecyclePolicyPreviewCommand = StartLifecyclePolicyPreviewCommand; - - -/***/ }), - -/***/ 82665: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.TagResourceCommand = void 0; -const middleware_serde_1 = __nccwpck_require__(93631); -const smithy_client_1 = __nccwpck_require__(4963); -const models_0_1 = __nccwpck_require__(79088); -const Aws_json1_1_1 = __nccwpck_require__(56704); -class TagResourceCommand extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "ECRClient"; - const commandName = "TagResourceCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_0_1.TagResourceRequest.filterSensitiveLog, - outputFilterSensitiveLog: models_0_1.TagResourceResponse.filterSensitiveLog, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return Aws_json1_1_1.serializeAws_json1_1TagResourceCommand(input, context); - } - deserialize(output, context) { - return Aws_json1_1_1.deserializeAws_json1_1TagResourceCommand(output, context); - } -} -exports.TagResourceCommand = TagResourceCommand; - - -/***/ }), - -/***/ 37225: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.UntagResourceCommand = void 0; -const middleware_serde_1 = __nccwpck_require__(93631); -const smithy_client_1 = __nccwpck_require__(4963); -const models_0_1 = __nccwpck_require__(79088); -const Aws_json1_1_1 = __nccwpck_require__(56704); -class UntagResourceCommand extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "ECRClient"; - const commandName = "UntagResourceCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_0_1.UntagResourceRequest.filterSensitiveLog, - outputFilterSensitiveLog: models_0_1.UntagResourceResponse.filterSensitiveLog, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return Aws_json1_1_1.serializeAws_json1_1UntagResourceCommand(input, context); - } - deserialize(output, context) { - return Aws_json1_1_1.deserializeAws_json1_1UntagResourceCommand(output, context); - } -} -exports.UntagResourceCommand = UntagResourceCommand; - - -/***/ }), - -/***/ 55825: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.UploadLayerPartCommand = void 0; -const middleware_serde_1 = __nccwpck_require__(93631); -const smithy_client_1 = __nccwpck_require__(4963); -const models_0_1 = __nccwpck_require__(79088); -const Aws_json1_1_1 = __nccwpck_require__(56704); -class UploadLayerPartCommand extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "ECRClient"; - const commandName = "UploadLayerPartCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_0_1.UploadLayerPartRequest.filterSensitiveLog, - outputFilterSensitiveLog: models_0_1.UploadLayerPartResponse.filterSensitiveLog, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return Aws_json1_1_1.serializeAws_json1_1UploadLayerPartCommand(input, context); - } - deserialize(output, context) { - return Aws_json1_1_1.deserializeAws_json1_1UploadLayerPartCommand(output, context); - } -} -exports.UploadLayerPartCommand = UploadLayerPartCommand; - - -/***/ }), - -/***/ 67407: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -const tslib_1 = __nccwpck_require__(4351); -tslib_1.__exportStar(__nccwpck_require__(63804), exports); -tslib_1.__exportStar(__nccwpck_require__(15511), exports); -tslib_1.__exportStar(__nccwpck_require__(78859), exports); -tslib_1.__exportStar(__nccwpck_require__(79728), exports); -tslib_1.__exportStar(__nccwpck_require__(49003), exports); -tslib_1.__exportStar(__nccwpck_require__(71454), exports); -tslib_1.__exportStar(__nccwpck_require__(5074), exports); -tslib_1.__exportStar(__nccwpck_require__(48981), exports); -tslib_1.__exportStar(__nccwpck_require__(83793), exports); -tslib_1.__exportStar(__nccwpck_require__(31424), exports); -tslib_1.__exportStar(__nccwpck_require__(88651), exports); -tslib_1.__exportStar(__nccwpck_require__(36828), exports); -tslib_1.__exportStar(__nccwpck_require__(39694), exports); -tslib_1.__exportStar(__nccwpck_require__(72987), exports); -tslib_1.__exportStar(__nccwpck_require__(95353), exports); -tslib_1.__exportStar(__nccwpck_require__(31484), exports); -tslib_1.__exportStar(__nccwpck_require__(26166), exports); -tslib_1.__exportStar(__nccwpck_require__(21200), exports); -tslib_1.__exportStar(__nccwpck_require__(35828), exports); -tslib_1.__exportStar(__nccwpck_require__(51401), exports); -tslib_1.__exportStar(__nccwpck_require__(48469), exports); -tslib_1.__exportStar(__nccwpck_require__(17006), exports); -tslib_1.__exportStar(__nccwpck_require__(33685), exports); -tslib_1.__exportStar(__nccwpck_require__(82741), exports); -tslib_1.__exportStar(__nccwpck_require__(46330), exports); -tslib_1.__exportStar(__nccwpck_require__(6936), exports); -tslib_1.__exportStar(__nccwpck_require__(3854), exports); -tslib_1.__exportStar(__nccwpck_require__(97403), exports); -tslib_1.__exportStar(__nccwpck_require__(66844), exports); -tslib_1.__exportStar(__nccwpck_require__(87935), exports); -tslib_1.__exportStar(__nccwpck_require__(66495), exports); -tslib_1.__exportStar(__nccwpck_require__(33854), exports); -tslib_1.__exportStar(__nccwpck_require__(97928), exports); -tslib_1.__exportStar(__nccwpck_require__(29529), exports); -tslib_1.__exportStar(__nccwpck_require__(13350), exports); -tslib_1.__exportStar(__nccwpck_require__(78300), exports); -tslib_1.__exportStar(__nccwpck_require__(47984), exports); -tslib_1.__exportStar(__nccwpck_require__(35905), exports); -tslib_1.__exportStar(__nccwpck_require__(82665), exports); -tslib_1.__exportStar(__nccwpck_require__(37225), exports); -tslib_1.__exportStar(__nccwpck_require__(55825), exports); - - -/***/ }), - -/***/ 63070: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.defaultRegionInfoProvider = void 0; -const config_resolver_1 = __nccwpck_require__(56153); -const regionHash = { - "af-south-1": { - variants: [ - { - hostname: "api.ecr.af-south-1.amazonaws.com", - tags: [], - }, - ], - signingRegion: "af-south-1", - }, - "ap-east-1": { - variants: [ - { - hostname: "api.ecr.ap-east-1.amazonaws.com", - tags: [], - }, - ], - signingRegion: "ap-east-1", - }, - "ap-northeast-1": { - variants: [ - { - hostname: "api.ecr.ap-northeast-1.amazonaws.com", - tags: [], - }, - ], - signingRegion: "ap-northeast-1", - }, - "ap-northeast-2": { - variants: [ - { - hostname: "api.ecr.ap-northeast-2.amazonaws.com", - tags: [], - }, - ], - signingRegion: "ap-northeast-2", - }, - "ap-northeast-3": { - variants: [ - { - hostname: "api.ecr.ap-northeast-3.amazonaws.com", - tags: [], - }, - ], - signingRegion: "ap-northeast-3", - }, - "ap-south-1": { - variants: [ - { - hostname: "api.ecr.ap-south-1.amazonaws.com", - tags: [], - }, - ], - signingRegion: "ap-south-1", - }, - "ap-southeast-1": { - variants: [ - { - hostname: "api.ecr.ap-southeast-1.amazonaws.com", - tags: [], - }, - ], - signingRegion: "ap-southeast-1", - }, - "ap-southeast-2": { - variants: [ - { - hostname: "api.ecr.ap-southeast-2.amazonaws.com", - tags: [], - }, - ], - signingRegion: "ap-southeast-2", - }, - "ap-southeast-3": { - variants: [ - { - hostname: "api.ecr.ap-southeast-3.amazonaws.com", - tags: [], - }, - ], - signingRegion: "ap-southeast-3", - }, - "ca-central-1": { - variants: [ - { - hostname: "api.ecr.ca-central-1.amazonaws.com", - tags: [], - }, - ], - signingRegion: "ca-central-1", - }, - "cn-north-1": { - variants: [ - { - hostname: "api.ecr.cn-north-1.amazonaws.com.cn", - tags: [], - }, - ], - signingRegion: "cn-north-1", - }, - "cn-northwest-1": { - variants: [ - { - hostname: "api.ecr.cn-northwest-1.amazonaws.com.cn", - tags: [], - }, - ], - signingRegion: "cn-northwest-1", - }, - "eu-central-1": { - variants: [ - { - hostname: "api.ecr.eu-central-1.amazonaws.com", - tags: [], - }, - ], - signingRegion: "eu-central-1", - }, - "eu-north-1": { - variants: [ - { - hostname: "api.ecr.eu-north-1.amazonaws.com", - tags: [], - }, - ], - signingRegion: "eu-north-1", - }, - "eu-south-1": { - variants: [ - { - hostname: "api.ecr.eu-south-1.amazonaws.com", - tags: [], - }, - ], - signingRegion: "eu-south-1", - }, - "eu-west-1": { - variants: [ - { - hostname: "api.ecr.eu-west-1.amazonaws.com", - tags: [], - }, - ], - signingRegion: "eu-west-1", - }, - "eu-west-2": { - variants: [ - { - hostname: "api.ecr.eu-west-2.amazonaws.com", - tags: [], - }, - ], - signingRegion: "eu-west-2", - }, - "eu-west-3": { - variants: [ - { - hostname: "api.ecr.eu-west-3.amazonaws.com", - tags: [], - }, - ], - signingRegion: "eu-west-3", - }, - "me-south-1": { - variants: [ - { - hostname: "api.ecr.me-south-1.amazonaws.com", - tags: [], - }, - ], - signingRegion: "me-south-1", - }, - "sa-east-1": { - variants: [ - { - hostname: "api.ecr.sa-east-1.amazonaws.com", - tags: [], - }, - ], - signingRegion: "sa-east-1", - }, - "us-east-1": { - variants: [ - { - hostname: "api.ecr.us-east-1.amazonaws.com", - tags: [], - }, - { - hostname: "ecr-fips.us-east-1.amazonaws.com", - tags: ["fips"], - }, - ], - signingRegion: "us-east-1", - }, - "us-east-2": { - variants: [ - { - hostname: "api.ecr.us-east-2.amazonaws.com", - tags: [], - }, - { - hostname: "ecr-fips.us-east-2.amazonaws.com", - tags: ["fips"], - }, - ], - signingRegion: "us-east-2", - }, - "us-gov-east-1": { - variants: [ - { - hostname: "api.ecr.us-gov-east-1.amazonaws.com", - tags: [], - }, - { - hostname: "ecr-fips.us-gov-east-1.amazonaws.com", - tags: ["fips"], - }, - ], - signingRegion: "us-gov-east-1", - }, - "us-gov-west-1": { - variants: [ - { - hostname: "api.ecr.us-gov-west-1.amazonaws.com", - tags: [], - }, - { - hostname: "ecr-fips.us-gov-west-1.amazonaws.com", - tags: ["fips"], - }, - ], - signingRegion: "us-gov-west-1", - }, - "us-iso-east-1": { - variants: [ - { - hostname: "api.ecr.us-iso-east-1.c2s.ic.gov", - tags: [], - }, - ], - signingRegion: "us-iso-east-1", - }, - "us-iso-west-1": { - variants: [ - { - hostname: "api.ecr.us-iso-west-1.c2s.ic.gov", - tags: [], - }, - ], - signingRegion: "us-iso-west-1", - }, - "us-isob-east-1": { - variants: [ - { - hostname: "api.ecr.us-isob-east-1.sc2s.sgov.gov", - tags: [], - }, - ], - signingRegion: "us-isob-east-1", - }, - "us-west-1": { - variants: [ - { - hostname: "api.ecr.us-west-1.amazonaws.com", - tags: [], - }, - { - hostname: "ecr-fips.us-west-1.amazonaws.com", - tags: ["fips"], - }, - ], - signingRegion: "us-west-1", - }, - "us-west-2": { - variants: [ - { - hostname: "api.ecr.us-west-2.amazonaws.com", - tags: [], - }, - { - hostname: "ecr-fips.us-west-2.amazonaws.com", - tags: ["fips"], - }, - ], - signingRegion: "us-west-2", - }, -}; -const partitionHash = { - aws: { - regions: [ - "af-south-1", - "ap-east-1", - "ap-northeast-1", - "ap-northeast-2", - "ap-northeast-3", - "ap-south-1", - "ap-southeast-1", - "ap-southeast-2", - "ap-southeast-3", - "ca-central-1", - "dkr-us-east-1", - "dkr-us-east-2", - "dkr-us-west-1", - "dkr-us-west-2", - "eu-central-1", - "eu-north-1", - "eu-south-1", - "eu-west-1", - "eu-west-2", - "eu-west-3", - "fips-dkr-us-east-1", - "fips-dkr-us-east-2", - "fips-dkr-us-west-1", - "fips-dkr-us-west-2", - "fips-us-east-1", - "fips-us-east-2", - "fips-us-west-1", - "fips-us-west-2", - "me-south-1", - "sa-east-1", - "us-east-1", - "us-east-2", - "us-west-1", - "us-west-2", - ], - regionRegex: "^(us|eu|ap|sa|ca|me|af)\\-\\w+\\-\\d+$", - variants: [ - { - hostname: "api.ecr.{region}.amazonaws.com", - tags: [], - }, - { - hostname: "ecr-fips.{region}.amazonaws.com", - tags: ["fips"], - }, - { - hostname: "api.ecr-fips.{region}.api.aws", - tags: ["dualstack", "fips"], - }, - { - hostname: "api.ecr.{region}.api.aws", - tags: ["dualstack"], - }, - ], - }, - "aws-cn": { - regions: ["cn-north-1", "cn-northwest-1"], - regionRegex: "^cn\\-\\w+\\-\\d+$", - variants: [ - { - hostname: "api.ecr.{region}.amazonaws.com.cn", - tags: [], - }, - { - hostname: "api.ecr-fips.{region}.amazonaws.com.cn", - tags: ["fips"], - }, - { - hostname: "api.ecr-fips.{region}.api.amazonwebservices.com.cn", - tags: ["dualstack", "fips"], - }, - { - hostname: "api.ecr.{region}.api.amazonwebservices.com.cn", - tags: ["dualstack"], - }, - ], - }, - "aws-iso": { - regions: ["us-iso-east-1", "us-iso-west-1"], - regionRegex: "^us\\-iso\\-\\w+\\-\\d+$", - variants: [ - { - hostname: "api.ecr.{region}.c2s.ic.gov", - tags: [], - }, - { - hostname: "api.ecr-fips.{region}.c2s.ic.gov", - tags: ["fips"], - }, - ], - }, - "aws-iso-b": { - regions: ["us-isob-east-1"], - regionRegex: "^us\\-isob\\-\\w+\\-\\d+$", - variants: [ - { - hostname: "api.ecr.{region}.sc2s.sgov.gov", - tags: [], - }, - { - hostname: "api.ecr-fips.{region}.sc2s.sgov.gov", - tags: ["fips"], - }, - ], - }, - "aws-us-gov": { - regions: [ - "dkr-us-gov-east-1", - "dkr-us-gov-west-1", - "fips-dkr-us-gov-east-1", - "fips-dkr-us-gov-west-1", - "fips-us-gov-east-1", - "fips-us-gov-west-1", - "us-gov-east-1", - "us-gov-west-1", - ], - regionRegex: "^us\\-gov\\-\\w+\\-\\d+$", - variants: [ - { - hostname: "api.ecr.{region}.amazonaws.com", - tags: [], - }, - { - hostname: "ecr-fips.{region}.amazonaws.com", - tags: ["fips"], - }, - { - hostname: "api.ecr-fips.{region}.api.aws", - tags: ["dualstack", "fips"], - }, - { - hostname: "api.ecr.{region}.api.aws", - tags: ["dualstack"], - }, - ], - }, -}; -const defaultRegionInfoProvider = async (region, options) => config_resolver_1.getRegionInfo(region, { - ...options, - signingService: "ecr", - regionHash, - partitionHash, -}); -exports.defaultRegionInfoProvider = defaultRegionInfoProvider; - - -/***/ }), - -/***/ 8923: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -const tslib_1 = __nccwpck_require__(4351); -tslib_1.__exportStar(__nccwpck_require__(59167), exports); -tslib_1.__exportStar(__nccwpck_require__(83391), exports); -tslib_1.__exportStar(__nccwpck_require__(67407), exports); -tslib_1.__exportStar(__nccwpck_require__(57451), exports); -tslib_1.__exportStar(__nccwpck_require__(35356), exports); -tslib_1.__exportStar(__nccwpck_require__(28406), exports); - - -/***/ }), - -/***/ 57451: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -const tslib_1 = __nccwpck_require__(4351); -tslib_1.__exportStar(__nccwpck_require__(79088), exports); - - -/***/ }), - -/***/ 79088: -/***/ ((__unused_webpack_module, exports) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.TooManyTagsException = exports.RepositoryAlreadyExistsException = exports.InvalidTagParameterException = exports.CreateRepositoryResponse = exports.Repository = exports.CreateRepositoryRequest = exports.Tag = exports.ImageTagMutability = exports.ImageScanningConfiguration = exports.EncryptionConfiguration = exports.EncryptionType = exports.UnsupportedUpstreamRegistryException = exports.PullThroughCacheRuleAlreadyExistsException = exports.LimitExceededException = exports.CreatePullThroughCacheRuleResponse = exports.CreatePullThroughCacheRuleRequest = exports.UploadNotFoundException = exports.LayerPartTooSmallException = exports.LayerAlreadyExistsException = exports.KmsException = exports.InvalidLayerException = exports.EmptyUploadException = exports.CompleteLayerUploadResponse = exports.CompleteLayerUploadRequest = exports.ValidationException = exports.BatchGetRepositoryScanningConfigurationResponse = exports.RepositoryScanningConfiguration = exports.ScanFrequency = exports.ScanningRepositoryFilter = exports.ScanningRepositoryFilterType = exports.RepositoryScanningConfigurationFailure = exports.ScanningConfigurationFailureCode = exports.BatchGetRepositoryScanningConfigurationRequest = exports.BatchGetImageResponse = exports.Image = exports.BatchGetImageRequest = exports.BatchDeleteImageResponse = exports.ImageFailure = exports.ImageFailureCode = exports.BatchDeleteImageRequest = exports.ImageIdentifier = exports.ServerException = exports.RepositoryNotFoundException = exports.InvalidParameterException = exports.BatchCheckLayerAvailabilityResponse = exports.Layer = exports.LayerAvailability = exports.LayerFailure = exports.LayerFailureCode = exports.BatchCheckLayerAvailabilityRequest = void 0; -exports.DescribePullThroughCacheRulesResponse = exports.PullThroughCacheRule = exports.DescribePullThroughCacheRulesRequest = exports.ScanNotFoundException = exports.DescribeImageScanFindingsResponse = exports.ImageScanFindings = exports.ImageScanFinding = exports.Attribute = exports.EnhancedImageScanFinding = exports.ScoreDetails = exports.CvssScoreDetails = exports.CvssScoreAdjustment = exports.Resource = exports.ResourceDetails = exports.AwsEcrContainerImageDetails = exports.Remediation = exports.Recommendation = exports.PackageVulnerabilityDetails = exports.VulnerablePackage = exports.CvssScore = exports.DescribeImageScanFindingsRequest = exports.DescribeImagesResponse = exports.ImageDetail = exports.ImageScanStatus = exports.ScanStatus = exports.ImageScanFindingsSummary = exports.FindingSeverity = exports.DescribeImagesRequest = exports.DescribeImagesFilter = exports.TagStatus = exports.ImageNotFoundException = exports.DescribeImageReplicationStatusResponse = exports.ImageReplicationStatus = exports.ReplicationStatus = exports.DescribeImageReplicationStatusRequest = exports.RepositoryPolicyNotFoundException = exports.DeleteRepositoryPolicyResponse = exports.DeleteRepositoryPolicyRequest = exports.RepositoryNotEmptyException = exports.DeleteRepositoryResponse = exports.DeleteRepositoryRequest = exports.RegistryPolicyNotFoundException = exports.DeleteRegistryPolicyResponse = exports.DeleteRegistryPolicyRequest = exports.PullThroughCacheRuleNotFoundException = exports.DeletePullThroughCacheRuleResponse = exports.DeletePullThroughCacheRuleRequest = exports.LifecyclePolicyNotFoundException = exports.DeleteLifecyclePolicyResponse = exports.DeleteLifecyclePolicyRequest = void 0; -exports.PutImageScanningConfigurationRequest = exports.ReferencedImagesNotFoundException = exports.PutImageResponse = exports.PutImageRequest = exports.ImageTagAlreadyExistsException = exports.ImageDigestDoesNotMatchException = exports.ImageAlreadyExistsException = exports.ListTagsForResourceResponse = exports.ListTagsForResourceRequest = exports.ListImagesResponse = exports.ListImagesRequest = exports.ListImagesFilter = exports.InitiateLayerUploadResponse = exports.InitiateLayerUploadRequest = exports.GetRepositoryPolicyResponse = exports.GetRepositoryPolicyRequest = exports.GetRegistryScanningConfigurationResponse = exports.RegistryScanningConfiguration = exports.ScanType = exports.RegistryScanningRule = exports.GetRegistryScanningConfigurationRequest = exports.GetRegistryPolicyResponse = exports.GetRegistryPolicyRequest = exports.LifecyclePolicyPreviewNotFoundException = exports.GetLifecyclePolicyPreviewResponse = exports.LifecyclePolicyPreviewSummary = exports.LifecyclePolicyPreviewStatus = exports.LifecyclePolicyPreviewResult = exports.LifecyclePolicyRuleAction = exports.ImageActionType = exports.GetLifecyclePolicyPreviewRequest = exports.LifecyclePolicyPreviewFilter = exports.GetLifecyclePolicyResponse = exports.GetLifecyclePolicyRequest = exports.LayersNotFoundException = exports.LayerInaccessibleException = exports.GetDownloadUrlForLayerResponse = exports.GetDownloadUrlForLayerRequest = exports.GetAuthorizationTokenResponse = exports.AuthorizationData = exports.GetAuthorizationTokenRequest = exports.DescribeRepositoriesResponse = exports.DescribeRepositoriesRequest = exports.DescribeRegistryResponse = exports.ReplicationConfiguration = exports.ReplicationRule = exports.RepositoryFilter = exports.RepositoryFilterType = exports.ReplicationDestination = exports.DescribeRegistryRequest = void 0; -exports.UploadLayerPartResponse = exports.UploadLayerPartRequest = exports.InvalidLayerPartException = exports.UntagResourceResponse = exports.UntagResourceRequest = exports.TagResourceResponse = exports.TagResourceRequest = exports.StartLifecyclePolicyPreviewResponse = exports.StartLifecyclePolicyPreviewRequest = exports.LifecyclePolicyPreviewInProgressException = exports.UnsupportedImageTypeException = exports.StartImageScanResponse = exports.StartImageScanRequest = exports.SetRepositoryPolicyResponse = exports.SetRepositoryPolicyRequest = exports.PutReplicationConfigurationResponse = exports.PutReplicationConfigurationRequest = exports.PutRegistryScanningConfigurationResponse = exports.PutRegistryScanningConfigurationRequest = exports.PutRegistryPolicyResponse = exports.PutRegistryPolicyRequest = exports.PutLifecyclePolicyResponse = exports.PutLifecyclePolicyRequest = exports.PutImageTagMutabilityResponse = exports.PutImageTagMutabilityRequest = exports.PutImageScanningConfigurationResponse = void 0; -var BatchCheckLayerAvailabilityRequest; -(function (BatchCheckLayerAvailabilityRequest) { - BatchCheckLayerAvailabilityRequest.filterSensitiveLog = (obj) => ({ - ...obj, - }); -})(BatchCheckLayerAvailabilityRequest = exports.BatchCheckLayerAvailabilityRequest || (exports.BatchCheckLayerAvailabilityRequest = {})); -var LayerFailureCode; -(function (LayerFailureCode) { - LayerFailureCode["InvalidLayerDigest"] = "InvalidLayerDigest"; - LayerFailureCode["MissingLayerDigest"] = "MissingLayerDigest"; -})(LayerFailureCode = exports.LayerFailureCode || (exports.LayerFailureCode = {})); -var LayerFailure; -(function (LayerFailure) { - LayerFailure.filterSensitiveLog = (obj) => ({ - ...obj, - }); -})(LayerFailure = exports.LayerFailure || (exports.LayerFailure = {})); -var LayerAvailability; -(function (LayerAvailability) { - LayerAvailability["AVAILABLE"] = "AVAILABLE"; - LayerAvailability["UNAVAILABLE"] = "UNAVAILABLE"; -})(LayerAvailability = exports.LayerAvailability || (exports.LayerAvailability = {})); -var Layer; -(function (Layer) { - Layer.filterSensitiveLog = (obj) => ({ - ...obj, - }); -})(Layer = exports.Layer || (exports.Layer = {})); -var BatchCheckLayerAvailabilityResponse; -(function (BatchCheckLayerAvailabilityResponse) { - BatchCheckLayerAvailabilityResponse.filterSensitiveLog = (obj) => ({ - ...obj, - }); -})(BatchCheckLayerAvailabilityResponse = exports.BatchCheckLayerAvailabilityResponse || (exports.BatchCheckLayerAvailabilityResponse = {})); -var InvalidParameterException; -(function (InvalidParameterException) { - InvalidParameterException.filterSensitiveLog = (obj) => ({ - ...obj, - }); -})(InvalidParameterException = exports.InvalidParameterException || (exports.InvalidParameterException = {})); -var RepositoryNotFoundException; -(function (RepositoryNotFoundException) { - RepositoryNotFoundException.filterSensitiveLog = (obj) => ({ - ...obj, - }); -})(RepositoryNotFoundException = exports.RepositoryNotFoundException || (exports.RepositoryNotFoundException = {})); -var ServerException; -(function (ServerException) { - ServerException.filterSensitiveLog = (obj) => ({ - ...obj, - }); -})(ServerException = exports.ServerException || (exports.ServerException = {})); -var ImageIdentifier; -(function (ImageIdentifier) { - ImageIdentifier.filterSensitiveLog = (obj) => ({ - ...obj, - }); -})(ImageIdentifier = exports.ImageIdentifier || (exports.ImageIdentifier = {})); -var BatchDeleteImageRequest; -(function (BatchDeleteImageRequest) { - BatchDeleteImageRequest.filterSensitiveLog = (obj) => ({ - ...obj, - }); -})(BatchDeleteImageRequest = exports.BatchDeleteImageRequest || (exports.BatchDeleteImageRequest = {})); -var ImageFailureCode; -(function (ImageFailureCode) { - ImageFailureCode["ImageNotFound"] = "ImageNotFound"; - ImageFailureCode["ImageReferencedByManifestList"] = "ImageReferencedByManifestList"; - ImageFailureCode["ImageTagDoesNotMatchDigest"] = "ImageTagDoesNotMatchDigest"; - ImageFailureCode["InvalidImageDigest"] = "InvalidImageDigest"; - ImageFailureCode["InvalidImageTag"] = "InvalidImageTag"; - ImageFailureCode["KmsError"] = "KmsError"; - ImageFailureCode["MissingDigestAndTag"] = "MissingDigestAndTag"; -})(ImageFailureCode = exports.ImageFailureCode || (exports.ImageFailureCode = {})); -var ImageFailure; -(function (ImageFailure) { - ImageFailure.filterSensitiveLog = (obj) => ({ - ...obj, - }); -})(ImageFailure = exports.ImageFailure || (exports.ImageFailure = {})); -var BatchDeleteImageResponse; -(function (BatchDeleteImageResponse) { - BatchDeleteImageResponse.filterSensitiveLog = (obj) => ({ - ...obj, - }); -})(BatchDeleteImageResponse = exports.BatchDeleteImageResponse || (exports.BatchDeleteImageResponse = {})); -var BatchGetImageRequest; -(function (BatchGetImageRequest) { - BatchGetImageRequest.filterSensitiveLog = (obj) => ({ - ...obj, - }); -})(BatchGetImageRequest = exports.BatchGetImageRequest || (exports.BatchGetImageRequest = {})); -var Image; -(function (Image) { - Image.filterSensitiveLog = (obj) => ({ - ...obj, - }); -})(Image = exports.Image || (exports.Image = {})); -var BatchGetImageResponse; -(function (BatchGetImageResponse) { - BatchGetImageResponse.filterSensitiveLog = (obj) => ({ - ...obj, - }); -})(BatchGetImageResponse = exports.BatchGetImageResponse || (exports.BatchGetImageResponse = {})); -var BatchGetRepositoryScanningConfigurationRequest; -(function (BatchGetRepositoryScanningConfigurationRequest) { - BatchGetRepositoryScanningConfigurationRequest.filterSensitiveLog = (obj) => ({ - ...obj, - }); -})(BatchGetRepositoryScanningConfigurationRequest = exports.BatchGetRepositoryScanningConfigurationRequest || (exports.BatchGetRepositoryScanningConfigurationRequest = {})); -var ScanningConfigurationFailureCode; -(function (ScanningConfigurationFailureCode) { - ScanningConfigurationFailureCode["REPOSITORY_NOT_FOUND"] = "REPOSITORY_NOT_FOUND"; -})(ScanningConfigurationFailureCode = exports.ScanningConfigurationFailureCode || (exports.ScanningConfigurationFailureCode = {})); -var RepositoryScanningConfigurationFailure; -(function (RepositoryScanningConfigurationFailure) { - RepositoryScanningConfigurationFailure.filterSensitiveLog = (obj) => ({ - ...obj, - }); -})(RepositoryScanningConfigurationFailure = exports.RepositoryScanningConfigurationFailure || (exports.RepositoryScanningConfigurationFailure = {})); -var ScanningRepositoryFilterType; -(function (ScanningRepositoryFilterType) { - ScanningRepositoryFilterType["WILDCARD"] = "WILDCARD"; -})(ScanningRepositoryFilterType = exports.ScanningRepositoryFilterType || (exports.ScanningRepositoryFilterType = {})); -var ScanningRepositoryFilter; -(function (ScanningRepositoryFilter) { - ScanningRepositoryFilter.filterSensitiveLog = (obj) => ({ - ...obj, - }); -})(ScanningRepositoryFilter = exports.ScanningRepositoryFilter || (exports.ScanningRepositoryFilter = {})); -var ScanFrequency; -(function (ScanFrequency) { - ScanFrequency["CONTINUOUS_SCAN"] = "CONTINUOUS_SCAN"; - ScanFrequency["MANUAL"] = "MANUAL"; - ScanFrequency["SCAN_ON_PUSH"] = "SCAN_ON_PUSH"; -})(ScanFrequency = exports.ScanFrequency || (exports.ScanFrequency = {})); -var RepositoryScanningConfiguration; -(function (RepositoryScanningConfiguration) { - RepositoryScanningConfiguration.filterSensitiveLog = (obj) => ({ - ...obj, - }); -})(RepositoryScanningConfiguration = exports.RepositoryScanningConfiguration || (exports.RepositoryScanningConfiguration = {})); -var BatchGetRepositoryScanningConfigurationResponse; -(function (BatchGetRepositoryScanningConfigurationResponse) { - BatchGetRepositoryScanningConfigurationResponse.filterSensitiveLog = (obj) => ({ - ...obj, - }); -})(BatchGetRepositoryScanningConfigurationResponse = exports.BatchGetRepositoryScanningConfigurationResponse || (exports.BatchGetRepositoryScanningConfigurationResponse = {})); -var ValidationException; -(function (ValidationException) { - ValidationException.filterSensitiveLog = (obj) => ({ - ...obj, - }); -})(ValidationException = exports.ValidationException || (exports.ValidationException = {})); -var CompleteLayerUploadRequest; -(function (CompleteLayerUploadRequest) { - CompleteLayerUploadRequest.filterSensitiveLog = (obj) => ({ - ...obj, - }); -})(CompleteLayerUploadRequest = exports.CompleteLayerUploadRequest || (exports.CompleteLayerUploadRequest = {})); -var CompleteLayerUploadResponse; -(function (CompleteLayerUploadResponse) { - CompleteLayerUploadResponse.filterSensitiveLog = (obj) => ({ - ...obj, - }); -})(CompleteLayerUploadResponse = exports.CompleteLayerUploadResponse || (exports.CompleteLayerUploadResponse = {})); -var EmptyUploadException; -(function (EmptyUploadException) { - EmptyUploadException.filterSensitiveLog = (obj) => ({ - ...obj, - }); -})(EmptyUploadException = exports.EmptyUploadException || (exports.EmptyUploadException = {})); -var InvalidLayerException; -(function (InvalidLayerException) { - InvalidLayerException.filterSensitiveLog = (obj) => ({ - ...obj, - }); -})(InvalidLayerException = exports.InvalidLayerException || (exports.InvalidLayerException = {})); -var KmsException; -(function (KmsException) { - KmsException.filterSensitiveLog = (obj) => ({ - ...obj, - }); -})(KmsException = exports.KmsException || (exports.KmsException = {})); -var LayerAlreadyExistsException; -(function (LayerAlreadyExistsException) { - LayerAlreadyExistsException.filterSensitiveLog = (obj) => ({ - ...obj, - }); -})(LayerAlreadyExistsException = exports.LayerAlreadyExistsException || (exports.LayerAlreadyExistsException = {})); -var LayerPartTooSmallException; -(function (LayerPartTooSmallException) { - LayerPartTooSmallException.filterSensitiveLog = (obj) => ({ - ...obj, - }); -})(LayerPartTooSmallException = exports.LayerPartTooSmallException || (exports.LayerPartTooSmallException = {})); -var UploadNotFoundException; -(function (UploadNotFoundException) { - UploadNotFoundException.filterSensitiveLog = (obj) => ({ - ...obj, - }); -})(UploadNotFoundException = exports.UploadNotFoundException || (exports.UploadNotFoundException = {})); -var CreatePullThroughCacheRuleRequest; -(function (CreatePullThroughCacheRuleRequest) { - CreatePullThroughCacheRuleRequest.filterSensitiveLog = (obj) => ({ - ...obj, - }); -})(CreatePullThroughCacheRuleRequest = exports.CreatePullThroughCacheRuleRequest || (exports.CreatePullThroughCacheRuleRequest = {})); -var CreatePullThroughCacheRuleResponse; -(function (CreatePullThroughCacheRuleResponse) { - CreatePullThroughCacheRuleResponse.filterSensitiveLog = (obj) => ({ - ...obj, - }); -})(CreatePullThroughCacheRuleResponse = exports.CreatePullThroughCacheRuleResponse || (exports.CreatePullThroughCacheRuleResponse = {})); -var LimitExceededException; -(function (LimitExceededException) { - LimitExceededException.filterSensitiveLog = (obj) => ({ - ...obj, - }); -})(LimitExceededException = exports.LimitExceededException || (exports.LimitExceededException = {})); -var PullThroughCacheRuleAlreadyExistsException; -(function (PullThroughCacheRuleAlreadyExistsException) { - PullThroughCacheRuleAlreadyExistsException.filterSensitiveLog = (obj) => ({ - ...obj, - }); -})(PullThroughCacheRuleAlreadyExistsException = exports.PullThroughCacheRuleAlreadyExistsException || (exports.PullThroughCacheRuleAlreadyExistsException = {})); -var UnsupportedUpstreamRegistryException; -(function (UnsupportedUpstreamRegistryException) { - UnsupportedUpstreamRegistryException.filterSensitiveLog = (obj) => ({ - ...obj, - }); -})(UnsupportedUpstreamRegistryException = exports.UnsupportedUpstreamRegistryException || (exports.UnsupportedUpstreamRegistryException = {})); -var EncryptionType; -(function (EncryptionType) { - EncryptionType["AES256"] = "AES256"; - EncryptionType["KMS"] = "KMS"; -})(EncryptionType = exports.EncryptionType || (exports.EncryptionType = {})); -var EncryptionConfiguration; -(function (EncryptionConfiguration) { - EncryptionConfiguration.filterSensitiveLog = (obj) => ({ - ...obj, - }); -})(EncryptionConfiguration = exports.EncryptionConfiguration || (exports.EncryptionConfiguration = {})); -var ImageScanningConfiguration; -(function (ImageScanningConfiguration) { - ImageScanningConfiguration.filterSensitiveLog = (obj) => ({ - ...obj, - }); -})(ImageScanningConfiguration = exports.ImageScanningConfiguration || (exports.ImageScanningConfiguration = {})); -var ImageTagMutability; -(function (ImageTagMutability) { - ImageTagMutability["IMMUTABLE"] = "IMMUTABLE"; - ImageTagMutability["MUTABLE"] = "MUTABLE"; -})(ImageTagMutability = exports.ImageTagMutability || (exports.ImageTagMutability = {})); -var Tag; -(function (Tag) { - Tag.filterSensitiveLog = (obj) => ({ - ...obj, - }); -})(Tag = exports.Tag || (exports.Tag = {})); -var CreateRepositoryRequest; -(function (CreateRepositoryRequest) { - CreateRepositoryRequest.filterSensitiveLog = (obj) => ({ - ...obj, - }); -})(CreateRepositoryRequest = exports.CreateRepositoryRequest || (exports.CreateRepositoryRequest = {})); -var Repository; -(function (Repository) { - Repository.filterSensitiveLog = (obj) => ({ - ...obj, - }); -})(Repository = exports.Repository || (exports.Repository = {})); -var CreateRepositoryResponse; -(function (CreateRepositoryResponse) { - CreateRepositoryResponse.filterSensitiveLog = (obj) => ({ - ...obj, - }); -})(CreateRepositoryResponse = exports.CreateRepositoryResponse || (exports.CreateRepositoryResponse = {})); -var InvalidTagParameterException; -(function (InvalidTagParameterException) { - InvalidTagParameterException.filterSensitiveLog = (obj) => ({ - ...obj, - }); -})(InvalidTagParameterException = exports.InvalidTagParameterException || (exports.InvalidTagParameterException = {})); -var RepositoryAlreadyExistsException; -(function (RepositoryAlreadyExistsException) { - RepositoryAlreadyExistsException.filterSensitiveLog = (obj) => ({ - ...obj, - }); -})(RepositoryAlreadyExistsException = exports.RepositoryAlreadyExistsException || (exports.RepositoryAlreadyExistsException = {})); -var TooManyTagsException; -(function (TooManyTagsException) { - TooManyTagsException.filterSensitiveLog = (obj) => ({ - ...obj, - }); -})(TooManyTagsException = exports.TooManyTagsException || (exports.TooManyTagsException = {})); -var DeleteLifecyclePolicyRequest; -(function (DeleteLifecyclePolicyRequest) { - DeleteLifecyclePolicyRequest.filterSensitiveLog = (obj) => ({ - ...obj, - }); -})(DeleteLifecyclePolicyRequest = exports.DeleteLifecyclePolicyRequest || (exports.DeleteLifecyclePolicyRequest = {})); -var DeleteLifecyclePolicyResponse; -(function (DeleteLifecyclePolicyResponse) { - DeleteLifecyclePolicyResponse.filterSensitiveLog = (obj) => ({ - ...obj, - }); -})(DeleteLifecyclePolicyResponse = exports.DeleteLifecyclePolicyResponse || (exports.DeleteLifecyclePolicyResponse = {})); -var LifecyclePolicyNotFoundException; -(function (LifecyclePolicyNotFoundException) { - LifecyclePolicyNotFoundException.filterSensitiveLog = (obj) => ({ - ...obj, - }); -})(LifecyclePolicyNotFoundException = exports.LifecyclePolicyNotFoundException || (exports.LifecyclePolicyNotFoundException = {})); -var DeletePullThroughCacheRuleRequest; -(function (DeletePullThroughCacheRuleRequest) { - DeletePullThroughCacheRuleRequest.filterSensitiveLog = (obj) => ({ - ...obj, - }); -})(DeletePullThroughCacheRuleRequest = exports.DeletePullThroughCacheRuleRequest || (exports.DeletePullThroughCacheRuleRequest = {})); -var DeletePullThroughCacheRuleResponse; -(function (DeletePullThroughCacheRuleResponse) { - DeletePullThroughCacheRuleResponse.filterSensitiveLog = (obj) => ({ - ...obj, - }); -})(DeletePullThroughCacheRuleResponse = exports.DeletePullThroughCacheRuleResponse || (exports.DeletePullThroughCacheRuleResponse = {})); -var PullThroughCacheRuleNotFoundException; -(function (PullThroughCacheRuleNotFoundException) { - PullThroughCacheRuleNotFoundException.filterSensitiveLog = (obj) => ({ - ...obj, - }); -})(PullThroughCacheRuleNotFoundException = exports.PullThroughCacheRuleNotFoundException || (exports.PullThroughCacheRuleNotFoundException = {})); -var DeleteRegistryPolicyRequest; -(function (DeleteRegistryPolicyRequest) { - DeleteRegistryPolicyRequest.filterSensitiveLog = (obj) => ({ - ...obj, - }); -})(DeleteRegistryPolicyRequest = exports.DeleteRegistryPolicyRequest || (exports.DeleteRegistryPolicyRequest = {})); -var DeleteRegistryPolicyResponse; -(function (DeleteRegistryPolicyResponse) { - DeleteRegistryPolicyResponse.filterSensitiveLog = (obj) => ({ - ...obj, - }); -})(DeleteRegistryPolicyResponse = exports.DeleteRegistryPolicyResponse || (exports.DeleteRegistryPolicyResponse = {})); -var RegistryPolicyNotFoundException; -(function (RegistryPolicyNotFoundException) { - RegistryPolicyNotFoundException.filterSensitiveLog = (obj) => ({ - ...obj, - }); -})(RegistryPolicyNotFoundException = exports.RegistryPolicyNotFoundException || (exports.RegistryPolicyNotFoundException = {})); -var DeleteRepositoryRequest; -(function (DeleteRepositoryRequest) { - DeleteRepositoryRequest.filterSensitiveLog = (obj) => ({ - ...obj, - }); -})(DeleteRepositoryRequest = exports.DeleteRepositoryRequest || (exports.DeleteRepositoryRequest = {})); -var DeleteRepositoryResponse; -(function (DeleteRepositoryResponse) { - DeleteRepositoryResponse.filterSensitiveLog = (obj) => ({ - ...obj, - }); -})(DeleteRepositoryResponse = exports.DeleteRepositoryResponse || (exports.DeleteRepositoryResponse = {})); -var RepositoryNotEmptyException; -(function (RepositoryNotEmptyException) { - RepositoryNotEmptyException.filterSensitiveLog = (obj) => ({ - ...obj, - }); -})(RepositoryNotEmptyException = exports.RepositoryNotEmptyException || (exports.RepositoryNotEmptyException = {})); -var DeleteRepositoryPolicyRequest; -(function (DeleteRepositoryPolicyRequest) { - DeleteRepositoryPolicyRequest.filterSensitiveLog = (obj) => ({ - ...obj, - }); -})(DeleteRepositoryPolicyRequest = exports.DeleteRepositoryPolicyRequest || (exports.DeleteRepositoryPolicyRequest = {})); -var DeleteRepositoryPolicyResponse; -(function (DeleteRepositoryPolicyResponse) { - DeleteRepositoryPolicyResponse.filterSensitiveLog = (obj) => ({ - ...obj, - }); -})(DeleteRepositoryPolicyResponse = exports.DeleteRepositoryPolicyResponse || (exports.DeleteRepositoryPolicyResponse = {})); -var RepositoryPolicyNotFoundException; -(function (RepositoryPolicyNotFoundException) { - RepositoryPolicyNotFoundException.filterSensitiveLog = (obj) => ({ - ...obj, - }); -})(RepositoryPolicyNotFoundException = exports.RepositoryPolicyNotFoundException || (exports.RepositoryPolicyNotFoundException = {})); -var DescribeImageReplicationStatusRequest; -(function (DescribeImageReplicationStatusRequest) { - DescribeImageReplicationStatusRequest.filterSensitiveLog = (obj) => ({ - ...obj, - }); -})(DescribeImageReplicationStatusRequest = exports.DescribeImageReplicationStatusRequest || (exports.DescribeImageReplicationStatusRequest = {})); -var ReplicationStatus; -(function (ReplicationStatus) { - ReplicationStatus["COMPLETE"] = "COMPLETE"; - ReplicationStatus["FAILED"] = "FAILED"; - ReplicationStatus["IN_PROGRESS"] = "IN_PROGRESS"; -})(ReplicationStatus = exports.ReplicationStatus || (exports.ReplicationStatus = {})); -var ImageReplicationStatus; -(function (ImageReplicationStatus) { - ImageReplicationStatus.filterSensitiveLog = (obj) => ({ - ...obj, - }); -})(ImageReplicationStatus = exports.ImageReplicationStatus || (exports.ImageReplicationStatus = {})); -var DescribeImageReplicationStatusResponse; -(function (DescribeImageReplicationStatusResponse) { - DescribeImageReplicationStatusResponse.filterSensitiveLog = (obj) => ({ - ...obj, - }); -})(DescribeImageReplicationStatusResponse = exports.DescribeImageReplicationStatusResponse || (exports.DescribeImageReplicationStatusResponse = {})); -var ImageNotFoundException; -(function (ImageNotFoundException) { - ImageNotFoundException.filterSensitiveLog = (obj) => ({ - ...obj, - }); -})(ImageNotFoundException = exports.ImageNotFoundException || (exports.ImageNotFoundException = {})); -var TagStatus; -(function (TagStatus) { - TagStatus["ANY"] = "ANY"; - TagStatus["TAGGED"] = "TAGGED"; - TagStatus["UNTAGGED"] = "UNTAGGED"; -})(TagStatus = exports.TagStatus || (exports.TagStatus = {})); -var DescribeImagesFilter; -(function (DescribeImagesFilter) { - DescribeImagesFilter.filterSensitiveLog = (obj) => ({ - ...obj, - }); -})(DescribeImagesFilter = exports.DescribeImagesFilter || (exports.DescribeImagesFilter = {})); -var DescribeImagesRequest; -(function (DescribeImagesRequest) { - DescribeImagesRequest.filterSensitiveLog = (obj) => ({ - ...obj, - }); -})(DescribeImagesRequest = exports.DescribeImagesRequest || (exports.DescribeImagesRequest = {})); -var FindingSeverity; -(function (FindingSeverity) { - FindingSeverity["CRITICAL"] = "CRITICAL"; - FindingSeverity["HIGH"] = "HIGH"; - FindingSeverity["INFORMATIONAL"] = "INFORMATIONAL"; - FindingSeverity["LOW"] = "LOW"; - FindingSeverity["MEDIUM"] = "MEDIUM"; - FindingSeverity["UNDEFINED"] = "UNDEFINED"; -})(FindingSeverity = exports.FindingSeverity || (exports.FindingSeverity = {})); -var ImageScanFindingsSummary; -(function (ImageScanFindingsSummary) { - ImageScanFindingsSummary.filterSensitiveLog = (obj) => ({ - ...obj, - }); -})(ImageScanFindingsSummary = exports.ImageScanFindingsSummary || (exports.ImageScanFindingsSummary = {})); -var ScanStatus; -(function (ScanStatus) { - ScanStatus["ACTIVE"] = "ACTIVE"; - ScanStatus["COMPLETE"] = "COMPLETE"; - ScanStatus["FAILED"] = "FAILED"; - ScanStatus["FINDINGS_UNAVAILABLE"] = "FINDINGS_UNAVAILABLE"; - ScanStatus["IN_PROGRESS"] = "IN_PROGRESS"; - ScanStatus["PENDING"] = "PENDING"; - ScanStatus["SCAN_ELIGIBILITY_EXPIRED"] = "SCAN_ELIGIBILITY_EXPIRED"; - ScanStatus["UNSUPPORTED_IMAGE"] = "UNSUPPORTED_IMAGE"; -})(ScanStatus = exports.ScanStatus || (exports.ScanStatus = {})); -var ImageScanStatus; -(function (ImageScanStatus) { - ImageScanStatus.filterSensitiveLog = (obj) => ({ - ...obj, - }); -})(ImageScanStatus = exports.ImageScanStatus || (exports.ImageScanStatus = {})); -var ImageDetail; -(function (ImageDetail) { - ImageDetail.filterSensitiveLog = (obj) => ({ - ...obj, - }); -})(ImageDetail = exports.ImageDetail || (exports.ImageDetail = {})); -var DescribeImagesResponse; -(function (DescribeImagesResponse) { - DescribeImagesResponse.filterSensitiveLog = (obj) => ({ - ...obj, - }); -})(DescribeImagesResponse = exports.DescribeImagesResponse || (exports.DescribeImagesResponse = {})); -var DescribeImageScanFindingsRequest; -(function (DescribeImageScanFindingsRequest) { - DescribeImageScanFindingsRequest.filterSensitiveLog = (obj) => ({ - ...obj, - }); -})(DescribeImageScanFindingsRequest = exports.DescribeImageScanFindingsRequest || (exports.DescribeImageScanFindingsRequest = {})); -var CvssScore; -(function (CvssScore) { - CvssScore.filterSensitiveLog = (obj) => ({ - ...obj, - }); -})(CvssScore = exports.CvssScore || (exports.CvssScore = {})); -var VulnerablePackage; -(function (VulnerablePackage) { - VulnerablePackage.filterSensitiveLog = (obj) => ({ - ...obj, - }); -})(VulnerablePackage = exports.VulnerablePackage || (exports.VulnerablePackage = {})); -var PackageVulnerabilityDetails; -(function (PackageVulnerabilityDetails) { - PackageVulnerabilityDetails.filterSensitiveLog = (obj) => ({ - ...obj, - }); -})(PackageVulnerabilityDetails = exports.PackageVulnerabilityDetails || (exports.PackageVulnerabilityDetails = {})); -var Recommendation; -(function (Recommendation) { - Recommendation.filterSensitiveLog = (obj) => ({ - ...obj, - }); -})(Recommendation = exports.Recommendation || (exports.Recommendation = {})); -var Remediation; -(function (Remediation) { - Remediation.filterSensitiveLog = (obj) => ({ - ...obj, - }); -})(Remediation = exports.Remediation || (exports.Remediation = {})); -var AwsEcrContainerImageDetails; -(function (AwsEcrContainerImageDetails) { - AwsEcrContainerImageDetails.filterSensitiveLog = (obj) => ({ - ...obj, - }); -})(AwsEcrContainerImageDetails = exports.AwsEcrContainerImageDetails || (exports.AwsEcrContainerImageDetails = {})); -var ResourceDetails; -(function (ResourceDetails) { - ResourceDetails.filterSensitiveLog = (obj) => ({ - ...obj, - }); -})(ResourceDetails = exports.ResourceDetails || (exports.ResourceDetails = {})); -var Resource; -(function (Resource) { - Resource.filterSensitiveLog = (obj) => ({ - ...obj, - }); -})(Resource = exports.Resource || (exports.Resource = {})); -var CvssScoreAdjustment; -(function (CvssScoreAdjustment) { - CvssScoreAdjustment.filterSensitiveLog = (obj) => ({ - ...obj, - }); -})(CvssScoreAdjustment = exports.CvssScoreAdjustment || (exports.CvssScoreAdjustment = {})); -var CvssScoreDetails; -(function (CvssScoreDetails) { - CvssScoreDetails.filterSensitiveLog = (obj) => ({ - ...obj, - }); -})(CvssScoreDetails = exports.CvssScoreDetails || (exports.CvssScoreDetails = {})); -var ScoreDetails; -(function (ScoreDetails) { - ScoreDetails.filterSensitiveLog = (obj) => ({ - ...obj, - }); -})(ScoreDetails = exports.ScoreDetails || (exports.ScoreDetails = {})); -var EnhancedImageScanFinding; -(function (EnhancedImageScanFinding) { - EnhancedImageScanFinding.filterSensitiveLog = (obj) => ({ - ...obj, - }); -})(EnhancedImageScanFinding = exports.EnhancedImageScanFinding || (exports.EnhancedImageScanFinding = {})); -var Attribute; -(function (Attribute) { - Attribute.filterSensitiveLog = (obj) => ({ - ...obj, - }); -})(Attribute = exports.Attribute || (exports.Attribute = {})); -var ImageScanFinding; -(function (ImageScanFinding) { - ImageScanFinding.filterSensitiveLog = (obj) => ({ - ...obj, - }); -})(ImageScanFinding = exports.ImageScanFinding || (exports.ImageScanFinding = {})); -var ImageScanFindings; -(function (ImageScanFindings) { - ImageScanFindings.filterSensitiveLog = (obj) => ({ - ...obj, - }); -})(ImageScanFindings = exports.ImageScanFindings || (exports.ImageScanFindings = {})); -var DescribeImageScanFindingsResponse; -(function (DescribeImageScanFindingsResponse) { - DescribeImageScanFindingsResponse.filterSensitiveLog = (obj) => ({ - ...obj, - }); -})(DescribeImageScanFindingsResponse = exports.DescribeImageScanFindingsResponse || (exports.DescribeImageScanFindingsResponse = {})); -var ScanNotFoundException; -(function (ScanNotFoundException) { - ScanNotFoundException.filterSensitiveLog = (obj) => ({ - ...obj, - }); -})(ScanNotFoundException = exports.ScanNotFoundException || (exports.ScanNotFoundException = {})); -var DescribePullThroughCacheRulesRequest; -(function (DescribePullThroughCacheRulesRequest) { - DescribePullThroughCacheRulesRequest.filterSensitiveLog = (obj) => ({ - ...obj, - }); -})(DescribePullThroughCacheRulesRequest = exports.DescribePullThroughCacheRulesRequest || (exports.DescribePullThroughCacheRulesRequest = {})); -var PullThroughCacheRule; -(function (PullThroughCacheRule) { - PullThroughCacheRule.filterSensitiveLog = (obj) => ({ - ...obj, - }); -})(PullThroughCacheRule = exports.PullThroughCacheRule || (exports.PullThroughCacheRule = {})); -var DescribePullThroughCacheRulesResponse; -(function (DescribePullThroughCacheRulesResponse) { - DescribePullThroughCacheRulesResponse.filterSensitiveLog = (obj) => ({ - ...obj, - }); -})(DescribePullThroughCacheRulesResponse = exports.DescribePullThroughCacheRulesResponse || (exports.DescribePullThroughCacheRulesResponse = {})); -var DescribeRegistryRequest; -(function (DescribeRegistryRequest) { - DescribeRegistryRequest.filterSensitiveLog = (obj) => ({ - ...obj, - }); -})(DescribeRegistryRequest = exports.DescribeRegistryRequest || (exports.DescribeRegistryRequest = {})); -var ReplicationDestination; -(function (ReplicationDestination) { - ReplicationDestination.filterSensitiveLog = (obj) => ({ - ...obj, - }); -})(ReplicationDestination = exports.ReplicationDestination || (exports.ReplicationDestination = {})); -var RepositoryFilterType; -(function (RepositoryFilterType) { - RepositoryFilterType["PREFIX_MATCH"] = "PREFIX_MATCH"; -})(RepositoryFilterType = exports.RepositoryFilterType || (exports.RepositoryFilterType = {})); -var RepositoryFilter; -(function (RepositoryFilter) { - RepositoryFilter.filterSensitiveLog = (obj) => ({ - ...obj, - }); -})(RepositoryFilter = exports.RepositoryFilter || (exports.RepositoryFilter = {})); -var ReplicationRule; -(function (ReplicationRule) { - ReplicationRule.filterSensitiveLog = (obj) => ({ - ...obj, - }); -})(ReplicationRule = exports.ReplicationRule || (exports.ReplicationRule = {})); -var ReplicationConfiguration; -(function (ReplicationConfiguration) { - ReplicationConfiguration.filterSensitiveLog = (obj) => ({ - ...obj, - }); -})(ReplicationConfiguration = exports.ReplicationConfiguration || (exports.ReplicationConfiguration = {})); -var DescribeRegistryResponse; -(function (DescribeRegistryResponse) { - DescribeRegistryResponse.filterSensitiveLog = (obj) => ({ - ...obj, - }); -})(DescribeRegistryResponse = exports.DescribeRegistryResponse || (exports.DescribeRegistryResponse = {})); -var DescribeRepositoriesRequest; -(function (DescribeRepositoriesRequest) { - DescribeRepositoriesRequest.filterSensitiveLog = (obj) => ({ - ...obj, - }); -})(DescribeRepositoriesRequest = exports.DescribeRepositoriesRequest || (exports.DescribeRepositoriesRequest = {})); -var DescribeRepositoriesResponse; -(function (DescribeRepositoriesResponse) { - DescribeRepositoriesResponse.filterSensitiveLog = (obj) => ({ - ...obj, - }); -})(DescribeRepositoriesResponse = exports.DescribeRepositoriesResponse || (exports.DescribeRepositoriesResponse = {})); -var GetAuthorizationTokenRequest; -(function (GetAuthorizationTokenRequest) { - GetAuthorizationTokenRequest.filterSensitiveLog = (obj) => ({ - ...obj, - }); -})(GetAuthorizationTokenRequest = exports.GetAuthorizationTokenRequest || (exports.GetAuthorizationTokenRequest = {})); -var AuthorizationData; -(function (AuthorizationData) { - AuthorizationData.filterSensitiveLog = (obj) => ({ - ...obj, - }); -})(AuthorizationData = exports.AuthorizationData || (exports.AuthorizationData = {})); -var GetAuthorizationTokenResponse; -(function (GetAuthorizationTokenResponse) { - GetAuthorizationTokenResponse.filterSensitiveLog = (obj) => ({ - ...obj, - }); -})(GetAuthorizationTokenResponse = exports.GetAuthorizationTokenResponse || (exports.GetAuthorizationTokenResponse = {})); -var GetDownloadUrlForLayerRequest; -(function (GetDownloadUrlForLayerRequest) { - GetDownloadUrlForLayerRequest.filterSensitiveLog = (obj) => ({ - ...obj, - }); -})(GetDownloadUrlForLayerRequest = exports.GetDownloadUrlForLayerRequest || (exports.GetDownloadUrlForLayerRequest = {})); -var GetDownloadUrlForLayerResponse; -(function (GetDownloadUrlForLayerResponse) { - GetDownloadUrlForLayerResponse.filterSensitiveLog = (obj) => ({ - ...obj, - }); -})(GetDownloadUrlForLayerResponse = exports.GetDownloadUrlForLayerResponse || (exports.GetDownloadUrlForLayerResponse = {})); -var LayerInaccessibleException; -(function (LayerInaccessibleException) { - LayerInaccessibleException.filterSensitiveLog = (obj) => ({ - ...obj, - }); -})(LayerInaccessibleException = exports.LayerInaccessibleException || (exports.LayerInaccessibleException = {})); -var LayersNotFoundException; -(function (LayersNotFoundException) { - LayersNotFoundException.filterSensitiveLog = (obj) => ({ - ...obj, - }); -})(LayersNotFoundException = exports.LayersNotFoundException || (exports.LayersNotFoundException = {})); -var GetLifecyclePolicyRequest; -(function (GetLifecyclePolicyRequest) { - GetLifecyclePolicyRequest.filterSensitiveLog = (obj) => ({ - ...obj, - }); -})(GetLifecyclePolicyRequest = exports.GetLifecyclePolicyRequest || (exports.GetLifecyclePolicyRequest = {})); -var GetLifecyclePolicyResponse; -(function (GetLifecyclePolicyResponse) { - GetLifecyclePolicyResponse.filterSensitiveLog = (obj) => ({ - ...obj, - }); -})(GetLifecyclePolicyResponse = exports.GetLifecyclePolicyResponse || (exports.GetLifecyclePolicyResponse = {})); -var LifecyclePolicyPreviewFilter; -(function (LifecyclePolicyPreviewFilter) { - LifecyclePolicyPreviewFilter.filterSensitiveLog = (obj) => ({ - ...obj, - }); -})(LifecyclePolicyPreviewFilter = exports.LifecyclePolicyPreviewFilter || (exports.LifecyclePolicyPreviewFilter = {})); -var GetLifecyclePolicyPreviewRequest; -(function (GetLifecyclePolicyPreviewRequest) { - GetLifecyclePolicyPreviewRequest.filterSensitiveLog = (obj) => ({ - ...obj, - }); -})(GetLifecyclePolicyPreviewRequest = exports.GetLifecyclePolicyPreviewRequest || (exports.GetLifecyclePolicyPreviewRequest = {})); -var ImageActionType; -(function (ImageActionType) { - ImageActionType["EXPIRE"] = "EXPIRE"; -})(ImageActionType = exports.ImageActionType || (exports.ImageActionType = {})); -var LifecyclePolicyRuleAction; -(function (LifecyclePolicyRuleAction) { - LifecyclePolicyRuleAction.filterSensitiveLog = (obj) => ({ - ...obj, - }); -})(LifecyclePolicyRuleAction = exports.LifecyclePolicyRuleAction || (exports.LifecyclePolicyRuleAction = {})); -var LifecyclePolicyPreviewResult; -(function (LifecyclePolicyPreviewResult) { - LifecyclePolicyPreviewResult.filterSensitiveLog = (obj) => ({ - ...obj, - }); -})(LifecyclePolicyPreviewResult = exports.LifecyclePolicyPreviewResult || (exports.LifecyclePolicyPreviewResult = {})); -var LifecyclePolicyPreviewStatus; -(function (LifecyclePolicyPreviewStatus) { - LifecyclePolicyPreviewStatus["COMPLETE"] = "COMPLETE"; - LifecyclePolicyPreviewStatus["EXPIRED"] = "EXPIRED"; - LifecyclePolicyPreviewStatus["FAILED"] = "FAILED"; - LifecyclePolicyPreviewStatus["IN_PROGRESS"] = "IN_PROGRESS"; -})(LifecyclePolicyPreviewStatus = exports.LifecyclePolicyPreviewStatus || (exports.LifecyclePolicyPreviewStatus = {})); -var LifecyclePolicyPreviewSummary; -(function (LifecyclePolicyPreviewSummary) { - LifecyclePolicyPreviewSummary.filterSensitiveLog = (obj) => ({ - ...obj, - }); -})(LifecyclePolicyPreviewSummary = exports.LifecyclePolicyPreviewSummary || (exports.LifecyclePolicyPreviewSummary = {})); -var GetLifecyclePolicyPreviewResponse; -(function (GetLifecyclePolicyPreviewResponse) { - GetLifecyclePolicyPreviewResponse.filterSensitiveLog = (obj) => ({ - ...obj, - }); -})(GetLifecyclePolicyPreviewResponse = exports.GetLifecyclePolicyPreviewResponse || (exports.GetLifecyclePolicyPreviewResponse = {})); -var LifecyclePolicyPreviewNotFoundException; -(function (LifecyclePolicyPreviewNotFoundException) { - LifecyclePolicyPreviewNotFoundException.filterSensitiveLog = (obj) => ({ - ...obj, - }); -})(LifecyclePolicyPreviewNotFoundException = exports.LifecyclePolicyPreviewNotFoundException || (exports.LifecyclePolicyPreviewNotFoundException = {})); -var GetRegistryPolicyRequest; -(function (GetRegistryPolicyRequest) { - GetRegistryPolicyRequest.filterSensitiveLog = (obj) => ({ - ...obj, - }); -})(GetRegistryPolicyRequest = exports.GetRegistryPolicyRequest || (exports.GetRegistryPolicyRequest = {})); -var GetRegistryPolicyResponse; -(function (GetRegistryPolicyResponse) { - GetRegistryPolicyResponse.filterSensitiveLog = (obj) => ({ - ...obj, - }); -})(GetRegistryPolicyResponse = exports.GetRegistryPolicyResponse || (exports.GetRegistryPolicyResponse = {})); -var GetRegistryScanningConfigurationRequest; -(function (GetRegistryScanningConfigurationRequest) { - GetRegistryScanningConfigurationRequest.filterSensitiveLog = (obj) => ({ - ...obj, - }); -})(GetRegistryScanningConfigurationRequest = exports.GetRegistryScanningConfigurationRequest || (exports.GetRegistryScanningConfigurationRequest = {})); -var RegistryScanningRule; -(function (RegistryScanningRule) { - RegistryScanningRule.filterSensitiveLog = (obj) => ({ - ...obj, - }); -})(RegistryScanningRule = exports.RegistryScanningRule || (exports.RegistryScanningRule = {})); -var ScanType; -(function (ScanType) { - ScanType["BASIC"] = "BASIC"; - ScanType["ENHANCED"] = "ENHANCED"; -})(ScanType = exports.ScanType || (exports.ScanType = {})); -var RegistryScanningConfiguration; -(function (RegistryScanningConfiguration) { - RegistryScanningConfiguration.filterSensitiveLog = (obj) => ({ - ...obj, - }); -})(RegistryScanningConfiguration = exports.RegistryScanningConfiguration || (exports.RegistryScanningConfiguration = {})); -var GetRegistryScanningConfigurationResponse; -(function (GetRegistryScanningConfigurationResponse) { - GetRegistryScanningConfigurationResponse.filterSensitiveLog = (obj) => ({ - ...obj, - }); -})(GetRegistryScanningConfigurationResponse = exports.GetRegistryScanningConfigurationResponse || (exports.GetRegistryScanningConfigurationResponse = {})); -var GetRepositoryPolicyRequest; -(function (GetRepositoryPolicyRequest) { - GetRepositoryPolicyRequest.filterSensitiveLog = (obj) => ({ - ...obj, - }); -})(GetRepositoryPolicyRequest = exports.GetRepositoryPolicyRequest || (exports.GetRepositoryPolicyRequest = {})); -var GetRepositoryPolicyResponse; -(function (GetRepositoryPolicyResponse) { - GetRepositoryPolicyResponse.filterSensitiveLog = (obj) => ({ - ...obj, - }); -})(GetRepositoryPolicyResponse = exports.GetRepositoryPolicyResponse || (exports.GetRepositoryPolicyResponse = {})); -var InitiateLayerUploadRequest; -(function (InitiateLayerUploadRequest) { - InitiateLayerUploadRequest.filterSensitiveLog = (obj) => ({ - ...obj, - }); -})(InitiateLayerUploadRequest = exports.InitiateLayerUploadRequest || (exports.InitiateLayerUploadRequest = {})); -var InitiateLayerUploadResponse; -(function (InitiateLayerUploadResponse) { - InitiateLayerUploadResponse.filterSensitiveLog = (obj) => ({ - ...obj, - }); -})(InitiateLayerUploadResponse = exports.InitiateLayerUploadResponse || (exports.InitiateLayerUploadResponse = {})); -var ListImagesFilter; -(function (ListImagesFilter) { - ListImagesFilter.filterSensitiveLog = (obj) => ({ - ...obj, - }); -})(ListImagesFilter = exports.ListImagesFilter || (exports.ListImagesFilter = {})); -var ListImagesRequest; -(function (ListImagesRequest) { - ListImagesRequest.filterSensitiveLog = (obj) => ({ - ...obj, - }); -})(ListImagesRequest = exports.ListImagesRequest || (exports.ListImagesRequest = {})); -var ListImagesResponse; -(function (ListImagesResponse) { - ListImagesResponse.filterSensitiveLog = (obj) => ({ - ...obj, - }); -})(ListImagesResponse = exports.ListImagesResponse || (exports.ListImagesResponse = {})); -var ListTagsForResourceRequest; -(function (ListTagsForResourceRequest) { - ListTagsForResourceRequest.filterSensitiveLog = (obj) => ({ - ...obj, - }); -})(ListTagsForResourceRequest = exports.ListTagsForResourceRequest || (exports.ListTagsForResourceRequest = {})); -var ListTagsForResourceResponse; -(function (ListTagsForResourceResponse) { - ListTagsForResourceResponse.filterSensitiveLog = (obj) => ({ - ...obj, - }); -})(ListTagsForResourceResponse = exports.ListTagsForResourceResponse || (exports.ListTagsForResourceResponse = {})); -var ImageAlreadyExistsException; -(function (ImageAlreadyExistsException) { - ImageAlreadyExistsException.filterSensitiveLog = (obj) => ({ - ...obj, - }); -})(ImageAlreadyExistsException = exports.ImageAlreadyExistsException || (exports.ImageAlreadyExistsException = {})); -var ImageDigestDoesNotMatchException; -(function (ImageDigestDoesNotMatchException) { - ImageDigestDoesNotMatchException.filterSensitiveLog = (obj) => ({ - ...obj, - }); -})(ImageDigestDoesNotMatchException = exports.ImageDigestDoesNotMatchException || (exports.ImageDigestDoesNotMatchException = {})); -var ImageTagAlreadyExistsException; -(function (ImageTagAlreadyExistsException) { - ImageTagAlreadyExistsException.filterSensitiveLog = (obj) => ({ - ...obj, - }); -})(ImageTagAlreadyExistsException = exports.ImageTagAlreadyExistsException || (exports.ImageTagAlreadyExistsException = {})); -var PutImageRequest; -(function (PutImageRequest) { - PutImageRequest.filterSensitiveLog = (obj) => ({ - ...obj, - }); -})(PutImageRequest = exports.PutImageRequest || (exports.PutImageRequest = {})); -var PutImageResponse; -(function (PutImageResponse) { - PutImageResponse.filterSensitiveLog = (obj) => ({ - ...obj, - }); -})(PutImageResponse = exports.PutImageResponse || (exports.PutImageResponse = {})); -var ReferencedImagesNotFoundException; -(function (ReferencedImagesNotFoundException) { - ReferencedImagesNotFoundException.filterSensitiveLog = (obj) => ({ - ...obj, - }); -})(ReferencedImagesNotFoundException = exports.ReferencedImagesNotFoundException || (exports.ReferencedImagesNotFoundException = {})); -var PutImageScanningConfigurationRequest; -(function (PutImageScanningConfigurationRequest) { - PutImageScanningConfigurationRequest.filterSensitiveLog = (obj) => ({ - ...obj, - }); -})(PutImageScanningConfigurationRequest = exports.PutImageScanningConfigurationRequest || (exports.PutImageScanningConfigurationRequest = {})); -var PutImageScanningConfigurationResponse; -(function (PutImageScanningConfigurationResponse) { - PutImageScanningConfigurationResponse.filterSensitiveLog = (obj) => ({ - ...obj, - }); -})(PutImageScanningConfigurationResponse = exports.PutImageScanningConfigurationResponse || (exports.PutImageScanningConfigurationResponse = {})); -var PutImageTagMutabilityRequest; -(function (PutImageTagMutabilityRequest) { - PutImageTagMutabilityRequest.filterSensitiveLog = (obj) => ({ - ...obj, - }); -})(PutImageTagMutabilityRequest = exports.PutImageTagMutabilityRequest || (exports.PutImageTagMutabilityRequest = {})); -var PutImageTagMutabilityResponse; -(function (PutImageTagMutabilityResponse) { - PutImageTagMutabilityResponse.filterSensitiveLog = (obj) => ({ - ...obj, - }); -})(PutImageTagMutabilityResponse = exports.PutImageTagMutabilityResponse || (exports.PutImageTagMutabilityResponse = {})); -var PutLifecyclePolicyRequest; -(function (PutLifecyclePolicyRequest) { - PutLifecyclePolicyRequest.filterSensitiveLog = (obj) => ({ - ...obj, - }); -})(PutLifecyclePolicyRequest = exports.PutLifecyclePolicyRequest || (exports.PutLifecyclePolicyRequest = {})); -var PutLifecyclePolicyResponse; -(function (PutLifecyclePolicyResponse) { - PutLifecyclePolicyResponse.filterSensitiveLog = (obj) => ({ - ...obj, - }); -})(PutLifecyclePolicyResponse = exports.PutLifecyclePolicyResponse || (exports.PutLifecyclePolicyResponse = {})); -var PutRegistryPolicyRequest; -(function (PutRegistryPolicyRequest) { - PutRegistryPolicyRequest.filterSensitiveLog = (obj) => ({ - ...obj, - }); -})(PutRegistryPolicyRequest = exports.PutRegistryPolicyRequest || (exports.PutRegistryPolicyRequest = {})); -var PutRegistryPolicyResponse; -(function (PutRegistryPolicyResponse) { - PutRegistryPolicyResponse.filterSensitiveLog = (obj) => ({ - ...obj, - }); -})(PutRegistryPolicyResponse = exports.PutRegistryPolicyResponse || (exports.PutRegistryPolicyResponse = {})); -var PutRegistryScanningConfigurationRequest; -(function (PutRegistryScanningConfigurationRequest) { - PutRegistryScanningConfigurationRequest.filterSensitiveLog = (obj) => ({ - ...obj, - }); -})(PutRegistryScanningConfigurationRequest = exports.PutRegistryScanningConfigurationRequest || (exports.PutRegistryScanningConfigurationRequest = {})); -var PutRegistryScanningConfigurationResponse; -(function (PutRegistryScanningConfigurationResponse) { - PutRegistryScanningConfigurationResponse.filterSensitiveLog = (obj) => ({ - ...obj, - }); -})(PutRegistryScanningConfigurationResponse = exports.PutRegistryScanningConfigurationResponse || (exports.PutRegistryScanningConfigurationResponse = {})); -var PutReplicationConfigurationRequest; -(function (PutReplicationConfigurationRequest) { - PutReplicationConfigurationRequest.filterSensitiveLog = (obj) => ({ - ...obj, - }); -})(PutReplicationConfigurationRequest = exports.PutReplicationConfigurationRequest || (exports.PutReplicationConfigurationRequest = {})); -var PutReplicationConfigurationResponse; -(function (PutReplicationConfigurationResponse) { - PutReplicationConfigurationResponse.filterSensitiveLog = (obj) => ({ - ...obj, - }); -})(PutReplicationConfigurationResponse = exports.PutReplicationConfigurationResponse || (exports.PutReplicationConfigurationResponse = {})); -var SetRepositoryPolicyRequest; -(function (SetRepositoryPolicyRequest) { - SetRepositoryPolicyRequest.filterSensitiveLog = (obj) => ({ - ...obj, - }); -})(SetRepositoryPolicyRequest = exports.SetRepositoryPolicyRequest || (exports.SetRepositoryPolicyRequest = {})); -var SetRepositoryPolicyResponse; -(function (SetRepositoryPolicyResponse) { - SetRepositoryPolicyResponse.filterSensitiveLog = (obj) => ({ - ...obj, - }); -})(SetRepositoryPolicyResponse = exports.SetRepositoryPolicyResponse || (exports.SetRepositoryPolicyResponse = {})); -var StartImageScanRequest; -(function (StartImageScanRequest) { - StartImageScanRequest.filterSensitiveLog = (obj) => ({ - ...obj, - }); -})(StartImageScanRequest = exports.StartImageScanRequest || (exports.StartImageScanRequest = {})); -var StartImageScanResponse; -(function (StartImageScanResponse) { - StartImageScanResponse.filterSensitiveLog = (obj) => ({ - ...obj, - }); -})(StartImageScanResponse = exports.StartImageScanResponse || (exports.StartImageScanResponse = {})); -var UnsupportedImageTypeException; -(function (UnsupportedImageTypeException) { - UnsupportedImageTypeException.filterSensitiveLog = (obj) => ({ - ...obj, - }); -})(UnsupportedImageTypeException = exports.UnsupportedImageTypeException || (exports.UnsupportedImageTypeException = {})); -var LifecyclePolicyPreviewInProgressException; -(function (LifecyclePolicyPreviewInProgressException) { - LifecyclePolicyPreviewInProgressException.filterSensitiveLog = (obj) => ({ - ...obj, - }); -})(LifecyclePolicyPreviewInProgressException = exports.LifecyclePolicyPreviewInProgressException || (exports.LifecyclePolicyPreviewInProgressException = {})); -var StartLifecyclePolicyPreviewRequest; -(function (StartLifecyclePolicyPreviewRequest) { - StartLifecyclePolicyPreviewRequest.filterSensitiveLog = (obj) => ({ - ...obj, - }); -})(StartLifecyclePolicyPreviewRequest = exports.StartLifecyclePolicyPreviewRequest || (exports.StartLifecyclePolicyPreviewRequest = {})); -var StartLifecyclePolicyPreviewResponse; -(function (StartLifecyclePolicyPreviewResponse) { - StartLifecyclePolicyPreviewResponse.filterSensitiveLog = (obj) => ({ - ...obj, - }); -})(StartLifecyclePolicyPreviewResponse = exports.StartLifecyclePolicyPreviewResponse || (exports.StartLifecyclePolicyPreviewResponse = {})); -var TagResourceRequest; -(function (TagResourceRequest) { - TagResourceRequest.filterSensitiveLog = (obj) => ({ - ...obj, - }); -})(TagResourceRequest = exports.TagResourceRequest || (exports.TagResourceRequest = {})); -var TagResourceResponse; -(function (TagResourceResponse) { - TagResourceResponse.filterSensitiveLog = (obj) => ({ - ...obj, - }); -})(TagResourceResponse = exports.TagResourceResponse || (exports.TagResourceResponse = {})); -var UntagResourceRequest; -(function (UntagResourceRequest) { - UntagResourceRequest.filterSensitiveLog = (obj) => ({ - ...obj, - }); -})(UntagResourceRequest = exports.UntagResourceRequest || (exports.UntagResourceRequest = {})); -var UntagResourceResponse; -(function (UntagResourceResponse) { - UntagResourceResponse.filterSensitiveLog = (obj) => ({ - ...obj, - }); -})(UntagResourceResponse = exports.UntagResourceResponse || (exports.UntagResourceResponse = {})); -var InvalidLayerPartException; -(function (InvalidLayerPartException) { - InvalidLayerPartException.filterSensitiveLog = (obj) => ({ - ...obj, - }); -})(InvalidLayerPartException = exports.InvalidLayerPartException || (exports.InvalidLayerPartException = {})); -var UploadLayerPartRequest; -(function (UploadLayerPartRequest) { - UploadLayerPartRequest.filterSensitiveLog = (obj) => ({ - ...obj, - }); -})(UploadLayerPartRequest = exports.UploadLayerPartRequest || (exports.UploadLayerPartRequest = {})); -var UploadLayerPartResponse; -(function (UploadLayerPartResponse) { - UploadLayerPartResponse.filterSensitiveLog = (obj) => ({ - ...obj, - }); -})(UploadLayerPartResponse = exports.UploadLayerPartResponse || (exports.UploadLayerPartResponse = {})); - - -/***/ }), - -/***/ 30862: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.paginateDescribeImageScanFindings = void 0; -const DescribeImageScanFindingsCommand_1 = __nccwpck_require__(72987); -const ECR_1 = __nccwpck_require__(59167); -const ECRClient_1 = __nccwpck_require__(83391); -const makePagedClientRequest = async (client, input, ...args) => { - return await client.send(new DescribeImageScanFindingsCommand_1.DescribeImageScanFindingsCommand(input), ...args); -}; -const makePagedRequest = async (client, input, ...args) => { - return await client.describeImageScanFindings(input, ...args); -}; -async function* paginateDescribeImageScanFindings(config, input, ...additionalArguments) { - let token = config.startingToken || undefined; - let hasNext = true; - let page; - while (hasNext) { - input.nextToken = token; - input["maxResults"] = config.pageSize; - if (config.client instanceof ECR_1.ECR) { - page = await makePagedRequest(config.client, input, ...additionalArguments); - } - else if (config.client instanceof ECRClient_1.ECRClient) { - page = await makePagedClientRequest(config.client, input, ...additionalArguments); - } - else { - throw new Error("Invalid client, expected ECR | ECRClient"); - } - yield page; - token = page.nextToken; - hasNext = !!token; - } - return undefined; -} -exports.paginateDescribeImageScanFindings = paginateDescribeImageScanFindings; - - -/***/ }), - -/***/ 51351: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.paginateDescribeImages = void 0; -const DescribeImagesCommand_1 = __nccwpck_require__(95353); -const ECR_1 = __nccwpck_require__(59167); -const ECRClient_1 = __nccwpck_require__(83391); -const makePagedClientRequest = async (client, input, ...args) => { - return await client.send(new DescribeImagesCommand_1.DescribeImagesCommand(input), ...args); -}; -const makePagedRequest = async (client, input, ...args) => { - return await client.describeImages(input, ...args); -}; -async function* paginateDescribeImages(config, input, ...additionalArguments) { - let token = config.startingToken || undefined; - let hasNext = true; - let page; - while (hasNext) { - input.nextToken = token; - input["maxResults"] = config.pageSize; - if (config.client instanceof ECR_1.ECR) { - page = await makePagedRequest(config.client, input, ...additionalArguments); - } - else if (config.client instanceof ECRClient_1.ECRClient) { - page = await makePagedClientRequest(config.client, input, ...additionalArguments); - } - else { - throw new Error("Invalid client, expected ECR | ECRClient"); - } - yield page; - token = page.nextToken; - hasNext = !!token; - } - return undefined; -} -exports.paginateDescribeImages = paginateDescribeImages; - - -/***/ }), - -/***/ 59589: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.paginateDescribePullThroughCacheRules = void 0; -const DescribePullThroughCacheRulesCommand_1 = __nccwpck_require__(31484); -const ECR_1 = __nccwpck_require__(59167); -const ECRClient_1 = __nccwpck_require__(83391); -const makePagedClientRequest = async (client, input, ...args) => { - return await client.send(new DescribePullThroughCacheRulesCommand_1.DescribePullThroughCacheRulesCommand(input), ...args); -}; -const makePagedRequest = async (client, input, ...args) => { - return await client.describePullThroughCacheRules(input, ...args); -}; -async function* paginateDescribePullThroughCacheRules(config, input, ...additionalArguments) { - let token = config.startingToken || undefined; - let hasNext = true; - let page; - while (hasNext) { - input.nextToken = token; - input["maxResults"] = config.pageSize; - if (config.client instanceof ECR_1.ECR) { - page = await makePagedRequest(config.client, input, ...additionalArguments); - } - else if (config.client instanceof ECRClient_1.ECRClient) { - page = await makePagedClientRequest(config.client, input, ...additionalArguments); - } - else { - throw new Error("Invalid client, expected ECR | ECRClient"); - } - yield page; - token = page.nextToken; - hasNext = !!token; - } - return undefined; -} -exports.paginateDescribePullThroughCacheRules = paginateDescribePullThroughCacheRules; - - -/***/ }), - -/***/ 16404: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.paginateDescribeRepositories = void 0; -const DescribeRepositoriesCommand_1 = __nccwpck_require__(21200); -const ECR_1 = __nccwpck_require__(59167); -const ECRClient_1 = __nccwpck_require__(83391); -const makePagedClientRequest = async (client, input, ...args) => { - return await client.send(new DescribeRepositoriesCommand_1.DescribeRepositoriesCommand(input), ...args); -}; -const makePagedRequest = async (client, input, ...args) => { - return await client.describeRepositories(input, ...args); -}; -async function* paginateDescribeRepositories(config, input, ...additionalArguments) { - let token = config.startingToken || undefined; - let hasNext = true; - let page; - while (hasNext) { - input.nextToken = token; - input["maxResults"] = config.pageSize; - if (config.client instanceof ECR_1.ECR) { - page = await makePagedRequest(config.client, input, ...additionalArguments); - } - else if (config.client instanceof ECRClient_1.ECRClient) { - page = await makePagedClientRequest(config.client, input, ...additionalArguments); - } - else { - throw new Error("Invalid client, expected ECR | ECRClient"); - } - yield page; - token = page.nextToken; - hasNext = !!token; - } - return undefined; -} -exports.paginateDescribeRepositories = paginateDescribeRepositories; - - -/***/ }), - -/***/ 50987: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.paginateGetLifecyclePolicyPreview = void 0; -const GetLifecyclePolicyPreviewCommand_1 = __nccwpck_require__(17006); -const ECR_1 = __nccwpck_require__(59167); -const ECRClient_1 = __nccwpck_require__(83391); -const makePagedClientRequest = async (client, input, ...args) => { - return await client.send(new GetLifecyclePolicyPreviewCommand_1.GetLifecyclePolicyPreviewCommand(input), ...args); -}; -const makePagedRequest = async (client, input, ...args) => { - return await client.getLifecyclePolicyPreview(input, ...args); -}; -async function* paginateGetLifecyclePolicyPreview(config, input, ...additionalArguments) { - let token = config.startingToken || undefined; - let hasNext = true; - let page; - while (hasNext) { - input.nextToken = token; - input["maxResults"] = config.pageSize; - if (config.client instanceof ECR_1.ECR) { - page = await makePagedRequest(config.client, input, ...additionalArguments); - } - else if (config.client instanceof ECRClient_1.ECRClient) { - page = await makePagedClientRequest(config.client, input, ...additionalArguments); - } - else { - throw new Error("Invalid client, expected ECR | ECRClient"); - } - yield page; - token = page.nextToken; - hasNext = !!token; - } - return undefined; -} -exports.paginateGetLifecyclePolicyPreview = paginateGetLifecyclePolicyPreview; - - -/***/ }), - -/***/ 9010: -/***/ ((__unused_webpack_module, exports) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); - - -/***/ }), - -/***/ 1066: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.paginateListImages = void 0; -const ListImagesCommand_1 = __nccwpck_require__(3854); -const ECR_1 = __nccwpck_require__(59167); -const ECRClient_1 = __nccwpck_require__(83391); -const makePagedClientRequest = async (client, input, ...args) => { - return await client.send(new ListImagesCommand_1.ListImagesCommand(input), ...args); -}; -const makePagedRequest = async (client, input, ...args) => { - return await client.listImages(input, ...args); -}; -async function* paginateListImages(config, input, ...additionalArguments) { - let token = config.startingToken || undefined; - let hasNext = true; - let page; - while (hasNext) { - input.nextToken = token; - input["maxResults"] = config.pageSize; - if (config.client instanceof ECR_1.ECR) { - page = await makePagedRequest(config.client, input, ...additionalArguments); - } - else if (config.client instanceof ECRClient_1.ECRClient) { - page = await makePagedClientRequest(config.client, input, ...additionalArguments); - } - else { - throw new Error("Invalid client, expected ECR | ECRClient"); - } - yield page; - token = page.nextToken; - hasNext = !!token; - } - return undefined; -} -exports.paginateListImages = paginateListImages; - - -/***/ }), - -/***/ 35356: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -const tslib_1 = __nccwpck_require__(4351); -tslib_1.__exportStar(__nccwpck_require__(30862), exports); -tslib_1.__exportStar(__nccwpck_require__(51351), exports); -tslib_1.__exportStar(__nccwpck_require__(59589), exports); -tslib_1.__exportStar(__nccwpck_require__(16404), exports); -tslib_1.__exportStar(__nccwpck_require__(50987), exports); -tslib_1.__exportStar(__nccwpck_require__(9010), exports); -tslib_1.__exportStar(__nccwpck_require__(1066), exports); - - -/***/ }), - -/***/ 56704: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.deserializeAws_json1_1DeletePullThroughCacheRuleCommand = exports.deserializeAws_json1_1DeleteLifecyclePolicyCommand = exports.deserializeAws_json1_1CreateRepositoryCommand = exports.deserializeAws_json1_1CreatePullThroughCacheRuleCommand = exports.deserializeAws_json1_1CompleteLayerUploadCommand = exports.deserializeAws_json1_1BatchGetRepositoryScanningConfigurationCommand = exports.deserializeAws_json1_1BatchGetImageCommand = exports.deserializeAws_json1_1BatchDeleteImageCommand = exports.deserializeAws_json1_1BatchCheckLayerAvailabilityCommand = exports.serializeAws_json1_1UploadLayerPartCommand = exports.serializeAws_json1_1UntagResourceCommand = exports.serializeAws_json1_1TagResourceCommand = exports.serializeAws_json1_1StartLifecyclePolicyPreviewCommand = exports.serializeAws_json1_1StartImageScanCommand = exports.serializeAws_json1_1SetRepositoryPolicyCommand = exports.serializeAws_json1_1PutReplicationConfigurationCommand = exports.serializeAws_json1_1PutRegistryScanningConfigurationCommand = exports.serializeAws_json1_1PutRegistryPolicyCommand = exports.serializeAws_json1_1PutLifecyclePolicyCommand = exports.serializeAws_json1_1PutImageTagMutabilityCommand = exports.serializeAws_json1_1PutImageScanningConfigurationCommand = exports.serializeAws_json1_1PutImageCommand = exports.serializeAws_json1_1ListTagsForResourceCommand = exports.serializeAws_json1_1ListImagesCommand = exports.serializeAws_json1_1InitiateLayerUploadCommand = exports.serializeAws_json1_1GetRepositoryPolicyCommand = exports.serializeAws_json1_1GetRegistryScanningConfigurationCommand = exports.serializeAws_json1_1GetRegistryPolicyCommand = exports.serializeAws_json1_1GetLifecyclePolicyPreviewCommand = exports.serializeAws_json1_1GetLifecyclePolicyCommand = exports.serializeAws_json1_1GetDownloadUrlForLayerCommand = exports.serializeAws_json1_1GetAuthorizationTokenCommand = exports.serializeAws_json1_1DescribeRepositoriesCommand = exports.serializeAws_json1_1DescribeRegistryCommand = exports.serializeAws_json1_1DescribePullThroughCacheRulesCommand = exports.serializeAws_json1_1DescribeImageScanFindingsCommand = exports.serializeAws_json1_1DescribeImagesCommand = exports.serializeAws_json1_1DescribeImageReplicationStatusCommand = exports.serializeAws_json1_1DeleteRepositoryPolicyCommand = exports.serializeAws_json1_1DeleteRepositoryCommand = exports.serializeAws_json1_1DeleteRegistryPolicyCommand = exports.serializeAws_json1_1DeletePullThroughCacheRuleCommand = exports.serializeAws_json1_1DeleteLifecyclePolicyCommand = exports.serializeAws_json1_1CreateRepositoryCommand = exports.serializeAws_json1_1CreatePullThroughCacheRuleCommand = exports.serializeAws_json1_1CompleteLayerUploadCommand = exports.serializeAws_json1_1BatchGetRepositoryScanningConfigurationCommand = exports.serializeAws_json1_1BatchGetImageCommand = exports.serializeAws_json1_1BatchDeleteImageCommand = exports.serializeAws_json1_1BatchCheckLayerAvailabilityCommand = void 0; -exports.deserializeAws_json1_1UploadLayerPartCommand = exports.deserializeAws_json1_1UntagResourceCommand = exports.deserializeAws_json1_1TagResourceCommand = exports.deserializeAws_json1_1StartLifecyclePolicyPreviewCommand = exports.deserializeAws_json1_1StartImageScanCommand = exports.deserializeAws_json1_1SetRepositoryPolicyCommand = exports.deserializeAws_json1_1PutReplicationConfigurationCommand = exports.deserializeAws_json1_1PutRegistryScanningConfigurationCommand = exports.deserializeAws_json1_1PutRegistryPolicyCommand = exports.deserializeAws_json1_1PutLifecyclePolicyCommand = exports.deserializeAws_json1_1PutImageTagMutabilityCommand = exports.deserializeAws_json1_1PutImageScanningConfigurationCommand = exports.deserializeAws_json1_1PutImageCommand = exports.deserializeAws_json1_1ListTagsForResourceCommand = exports.deserializeAws_json1_1ListImagesCommand = exports.deserializeAws_json1_1InitiateLayerUploadCommand = exports.deserializeAws_json1_1GetRepositoryPolicyCommand = exports.deserializeAws_json1_1GetRegistryScanningConfigurationCommand = exports.deserializeAws_json1_1GetRegistryPolicyCommand = exports.deserializeAws_json1_1GetLifecyclePolicyPreviewCommand = exports.deserializeAws_json1_1GetLifecyclePolicyCommand = exports.deserializeAws_json1_1GetDownloadUrlForLayerCommand = exports.deserializeAws_json1_1GetAuthorizationTokenCommand = exports.deserializeAws_json1_1DescribeRepositoriesCommand = exports.deserializeAws_json1_1DescribeRegistryCommand = exports.deserializeAws_json1_1DescribePullThroughCacheRulesCommand = exports.deserializeAws_json1_1DescribeImageScanFindingsCommand = exports.deserializeAws_json1_1DescribeImagesCommand = exports.deserializeAws_json1_1DescribeImageReplicationStatusCommand = exports.deserializeAws_json1_1DeleteRepositoryPolicyCommand = exports.deserializeAws_json1_1DeleteRepositoryCommand = exports.deserializeAws_json1_1DeleteRegistryPolicyCommand = void 0; -const protocol_http_1 = __nccwpck_require__(70223); -const smithy_client_1 = __nccwpck_require__(4963); -const serializeAws_json1_1BatchCheckLayerAvailabilityCommand = async (input, context) => { - const headers = { - "content-type": "application/x-amz-json-1.1", - "x-amz-target": "AmazonEC2ContainerRegistry_V20150921.BatchCheckLayerAvailability", - }; - let body; - body = JSON.stringify(serializeAws_json1_1BatchCheckLayerAvailabilityRequest(input, context)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.serializeAws_json1_1BatchCheckLayerAvailabilityCommand = serializeAws_json1_1BatchCheckLayerAvailabilityCommand; -const serializeAws_json1_1BatchDeleteImageCommand = async (input, context) => { - const headers = { - "content-type": "application/x-amz-json-1.1", - "x-amz-target": "AmazonEC2ContainerRegistry_V20150921.BatchDeleteImage", - }; - let body; - body = JSON.stringify(serializeAws_json1_1BatchDeleteImageRequest(input, context)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.serializeAws_json1_1BatchDeleteImageCommand = serializeAws_json1_1BatchDeleteImageCommand; -const serializeAws_json1_1BatchGetImageCommand = async (input, context) => { - const headers = { - "content-type": "application/x-amz-json-1.1", - "x-amz-target": "AmazonEC2ContainerRegistry_V20150921.BatchGetImage", - }; - let body; - body = JSON.stringify(serializeAws_json1_1BatchGetImageRequest(input, context)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.serializeAws_json1_1BatchGetImageCommand = serializeAws_json1_1BatchGetImageCommand; -const serializeAws_json1_1BatchGetRepositoryScanningConfigurationCommand = async (input, context) => { - const headers = { - "content-type": "application/x-amz-json-1.1", - "x-amz-target": "AmazonEC2ContainerRegistry_V20150921.BatchGetRepositoryScanningConfiguration", - }; - let body; - body = JSON.stringify(serializeAws_json1_1BatchGetRepositoryScanningConfigurationRequest(input, context)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.serializeAws_json1_1BatchGetRepositoryScanningConfigurationCommand = serializeAws_json1_1BatchGetRepositoryScanningConfigurationCommand; -const serializeAws_json1_1CompleteLayerUploadCommand = async (input, context) => { - const headers = { - "content-type": "application/x-amz-json-1.1", - "x-amz-target": "AmazonEC2ContainerRegistry_V20150921.CompleteLayerUpload", - }; - let body; - body = JSON.stringify(serializeAws_json1_1CompleteLayerUploadRequest(input, context)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.serializeAws_json1_1CompleteLayerUploadCommand = serializeAws_json1_1CompleteLayerUploadCommand; -const serializeAws_json1_1CreatePullThroughCacheRuleCommand = async (input, context) => { - const headers = { - "content-type": "application/x-amz-json-1.1", - "x-amz-target": "AmazonEC2ContainerRegistry_V20150921.CreatePullThroughCacheRule", - }; - let body; - body = JSON.stringify(serializeAws_json1_1CreatePullThroughCacheRuleRequest(input, context)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.serializeAws_json1_1CreatePullThroughCacheRuleCommand = serializeAws_json1_1CreatePullThroughCacheRuleCommand; -const serializeAws_json1_1CreateRepositoryCommand = async (input, context) => { - const headers = { - "content-type": "application/x-amz-json-1.1", - "x-amz-target": "AmazonEC2ContainerRegistry_V20150921.CreateRepository", - }; - let body; - body = JSON.stringify(serializeAws_json1_1CreateRepositoryRequest(input, context)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.serializeAws_json1_1CreateRepositoryCommand = serializeAws_json1_1CreateRepositoryCommand; -const serializeAws_json1_1DeleteLifecyclePolicyCommand = async (input, context) => { - const headers = { - "content-type": "application/x-amz-json-1.1", - "x-amz-target": "AmazonEC2ContainerRegistry_V20150921.DeleteLifecyclePolicy", - }; - let body; - body = JSON.stringify(serializeAws_json1_1DeleteLifecyclePolicyRequest(input, context)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.serializeAws_json1_1DeleteLifecyclePolicyCommand = serializeAws_json1_1DeleteLifecyclePolicyCommand; -const serializeAws_json1_1DeletePullThroughCacheRuleCommand = async (input, context) => { - const headers = { - "content-type": "application/x-amz-json-1.1", - "x-amz-target": "AmazonEC2ContainerRegistry_V20150921.DeletePullThroughCacheRule", - }; - let body; - body = JSON.stringify(serializeAws_json1_1DeletePullThroughCacheRuleRequest(input, context)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.serializeAws_json1_1DeletePullThroughCacheRuleCommand = serializeAws_json1_1DeletePullThroughCacheRuleCommand; -const serializeAws_json1_1DeleteRegistryPolicyCommand = async (input, context) => { - const headers = { - "content-type": "application/x-amz-json-1.1", - "x-amz-target": "AmazonEC2ContainerRegistry_V20150921.DeleteRegistryPolicy", - }; - let body; - body = JSON.stringify(serializeAws_json1_1DeleteRegistryPolicyRequest(input, context)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.serializeAws_json1_1DeleteRegistryPolicyCommand = serializeAws_json1_1DeleteRegistryPolicyCommand; -const serializeAws_json1_1DeleteRepositoryCommand = async (input, context) => { - const headers = { - "content-type": "application/x-amz-json-1.1", - "x-amz-target": "AmazonEC2ContainerRegistry_V20150921.DeleteRepository", - }; - let body; - body = JSON.stringify(serializeAws_json1_1DeleteRepositoryRequest(input, context)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.serializeAws_json1_1DeleteRepositoryCommand = serializeAws_json1_1DeleteRepositoryCommand; -const serializeAws_json1_1DeleteRepositoryPolicyCommand = async (input, context) => { - const headers = { - "content-type": "application/x-amz-json-1.1", - "x-amz-target": "AmazonEC2ContainerRegistry_V20150921.DeleteRepositoryPolicy", - }; - let body; - body = JSON.stringify(serializeAws_json1_1DeleteRepositoryPolicyRequest(input, context)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.serializeAws_json1_1DeleteRepositoryPolicyCommand = serializeAws_json1_1DeleteRepositoryPolicyCommand; -const serializeAws_json1_1DescribeImageReplicationStatusCommand = async (input, context) => { - const headers = { - "content-type": "application/x-amz-json-1.1", - "x-amz-target": "AmazonEC2ContainerRegistry_V20150921.DescribeImageReplicationStatus", - }; - let body; - body = JSON.stringify(serializeAws_json1_1DescribeImageReplicationStatusRequest(input, context)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.serializeAws_json1_1DescribeImageReplicationStatusCommand = serializeAws_json1_1DescribeImageReplicationStatusCommand; -const serializeAws_json1_1DescribeImagesCommand = async (input, context) => { - const headers = { - "content-type": "application/x-amz-json-1.1", - "x-amz-target": "AmazonEC2ContainerRegistry_V20150921.DescribeImages", - }; - let body; - body = JSON.stringify(serializeAws_json1_1DescribeImagesRequest(input, context)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.serializeAws_json1_1DescribeImagesCommand = serializeAws_json1_1DescribeImagesCommand; -const serializeAws_json1_1DescribeImageScanFindingsCommand = async (input, context) => { - const headers = { - "content-type": "application/x-amz-json-1.1", - "x-amz-target": "AmazonEC2ContainerRegistry_V20150921.DescribeImageScanFindings", - }; - let body; - body = JSON.stringify(serializeAws_json1_1DescribeImageScanFindingsRequest(input, context)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.serializeAws_json1_1DescribeImageScanFindingsCommand = serializeAws_json1_1DescribeImageScanFindingsCommand; -const serializeAws_json1_1DescribePullThroughCacheRulesCommand = async (input, context) => { - const headers = { - "content-type": "application/x-amz-json-1.1", - "x-amz-target": "AmazonEC2ContainerRegistry_V20150921.DescribePullThroughCacheRules", - }; - let body; - body = JSON.stringify(serializeAws_json1_1DescribePullThroughCacheRulesRequest(input, context)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.serializeAws_json1_1DescribePullThroughCacheRulesCommand = serializeAws_json1_1DescribePullThroughCacheRulesCommand; -const serializeAws_json1_1DescribeRegistryCommand = async (input, context) => { - const headers = { - "content-type": "application/x-amz-json-1.1", - "x-amz-target": "AmazonEC2ContainerRegistry_V20150921.DescribeRegistry", - }; - let body; - body = JSON.stringify(serializeAws_json1_1DescribeRegistryRequest(input, context)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.serializeAws_json1_1DescribeRegistryCommand = serializeAws_json1_1DescribeRegistryCommand; -const serializeAws_json1_1DescribeRepositoriesCommand = async (input, context) => { - const headers = { - "content-type": "application/x-amz-json-1.1", - "x-amz-target": "AmazonEC2ContainerRegistry_V20150921.DescribeRepositories", - }; - let body; - body = JSON.stringify(serializeAws_json1_1DescribeRepositoriesRequest(input, context)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.serializeAws_json1_1DescribeRepositoriesCommand = serializeAws_json1_1DescribeRepositoriesCommand; -const serializeAws_json1_1GetAuthorizationTokenCommand = async (input, context) => { - const headers = { - "content-type": "application/x-amz-json-1.1", - "x-amz-target": "AmazonEC2ContainerRegistry_V20150921.GetAuthorizationToken", - }; - let body; - body = JSON.stringify(serializeAws_json1_1GetAuthorizationTokenRequest(input, context)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.serializeAws_json1_1GetAuthorizationTokenCommand = serializeAws_json1_1GetAuthorizationTokenCommand; -const serializeAws_json1_1GetDownloadUrlForLayerCommand = async (input, context) => { - const headers = { - "content-type": "application/x-amz-json-1.1", - "x-amz-target": "AmazonEC2ContainerRegistry_V20150921.GetDownloadUrlForLayer", - }; - let body; - body = JSON.stringify(serializeAws_json1_1GetDownloadUrlForLayerRequest(input, context)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.serializeAws_json1_1GetDownloadUrlForLayerCommand = serializeAws_json1_1GetDownloadUrlForLayerCommand; -const serializeAws_json1_1GetLifecyclePolicyCommand = async (input, context) => { - const headers = { - "content-type": "application/x-amz-json-1.1", - "x-amz-target": "AmazonEC2ContainerRegistry_V20150921.GetLifecyclePolicy", - }; - let body; - body = JSON.stringify(serializeAws_json1_1GetLifecyclePolicyRequest(input, context)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.serializeAws_json1_1GetLifecyclePolicyCommand = serializeAws_json1_1GetLifecyclePolicyCommand; -const serializeAws_json1_1GetLifecyclePolicyPreviewCommand = async (input, context) => { - const headers = { - "content-type": "application/x-amz-json-1.1", - "x-amz-target": "AmazonEC2ContainerRegistry_V20150921.GetLifecyclePolicyPreview", - }; - let body; - body = JSON.stringify(serializeAws_json1_1GetLifecyclePolicyPreviewRequest(input, context)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.serializeAws_json1_1GetLifecyclePolicyPreviewCommand = serializeAws_json1_1GetLifecyclePolicyPreviewCommand; -const serializeAws_json1_1GetRegistryPolicyCommand = async (input, context) => { - const headers = { - "content-type": "application/x-amz-json-1.1", - "x-amz-target": "AmazonEC2ContainerRegistry_V20150921.GetRegistryPolicy", - }; - let body; - body = JSON.stringify(serializeAws_json1_1GetRegistryPolicyRequest(input, context)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.serializeAws_json1_1GetRegistryPolicyCommand = serializeAws_json1_1GetRegistryPolicyCommand; -const serializeAws_json1_1GetRegistryScanningConfigurationCommand = async (input, context) => { - const headers = { - "content-type": "application/x-amz-json-1.1", - "x-amz-target": "AmazonEC2ContainerRegistry_V20150921.GetRegistryScanningConfiguration", - }; - let body; - body = JSON.stringify(serializeAws_json1_1GetRegistryScanningConfigurationRequest(input, context)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.serializeAws_json1_1GetRegistryScanningConfigurationCommand = serializeAws_json1_1GetRegistryScanningConfigurationCommand; -const serializeAws_json1_1GetRepositoryPolicyCommand = async (input, context) => { - const headers = { - "content-type": "application/x-amz-json-1.1", - "x-amz-target": "AmazonEC2ContainerRegistry_V20150921.GetRepositoryPolicy", - }; - let body; - body = JSON.stringify(serializeAws_json1_1GetRepositoryPolicyRequest(input, context)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.serializeAws_json1_1GetRepositoryPolicyCommand = serializeAws_json1_1GetRepositoryPolicyCommand; -const serializeAws_json1_1InitiateLayerUploadCommand = async (input, context) => { - const headers = { - "content-type": "application/x-amz-json-1.1", - "x-amz-target": "AmazonEC2ContainerRegistry_V20150921.InitiateLayerUpload", - }; - let body; - body = JSON.stringify(serializeAws_json1_1InitiateLayerUploadRequest(input, context)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.serializeAws_json1_1InitiateLayerUploadCommand = serializeAws_json1_1InitiateLayerUploadCommand; -const serializeAws_json1_1ListImagesCommand = async (input, context) => { - const headers = { - "content-type": "application/x-amz-json-1.1", - "x-amz-target": "AmazonEC2ContainerRegistry_V20150921.ListImages", - }; - let body; - body = JSON.stringify(serializeAws_json1_1ListImagesRequest(input, context)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.serializeAws_json1_1ListImagesCommand = serializeAws_json1_1ListImagesCommand; -const serializeAws_json1_1ListTagsForResourceCommand = async (input, context) => { - const headers = { - "content-type": "application/x-amz-json-1.1", - "x-amz-target": "AmazonEC2ContainerRegistry_V20150921.ListTagsForResource", - }; - let body; - body = JSON.stringify(serializeAws_json1_1ListTagsForResourceRequest(input, context)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.serializeAws_json1_1ListTagsForResourceCommand = serializeAws_json1_1ListTagsForResourceCommand; -const serializeAws_json1_1PutImageCommand = async (input, context) => { - const headers = { - "content-type": "application/x-amz-json-1.1", - "x-amz-target": "AmazonEC2ContainerRegistry_V20150921.PutImage", - }; - let body; - body = JSON.stringify(serializeAws_json1_1PutImageRequest(input, context)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.serializeAws_json1_1PutImageCommand = serializeAws_json1_1PutImageCommand; -const serializeAws_json1_1PutImageScanningConfigurationCommand = async (input, context) => { - const headers = { - "content-type": "application/x-amz-json-1.1", - "x-amz-target": "AmazonEC2ContainerRegistry_V20150921.PutImageScanningConfiguration", - }; - let body; - body = JSON.stringify(serializeAws_json1_1PutImageScanningConfigurationRequest(input, context)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.serializeAws_json1_1PutImageScanningConfigurationCommand = serializeAws_json1_1PutImageScanningConfigurationCommand; -const serializeAws_json1_1PutImageTagMutabilityCommand = async (input, context) => { - const headers = { - "content-type": "application/x-amz-json-1.1", - "x-amz-target": "AmazonEC2ContainerRegistry_V20150921.PutImageTagMutability", - }; - let body; - body = JSON.stringify(serializeAws_json1_1PutImageTagMutabilityRequest(input, context)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.serializeAws_json1_1PutImageTagMutabilityCommand = serializeAws_json1_1PutImageTagMutabilityCommand; -const serializeAws_json1_1PutLifecyclePolicyCommand = async (input, context) => { - const headers = { - "content-type": "application/x-amz-json-1.1", - "x-amz-target": "AmazonEC2ContainerRegistry_V20150921.PutLifecyclePolicy", - }; - let body; - body = JSON.stringify(serializeAws_json1_1PutLifecyclePolicyRequest(input, context)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.serializeAws_json1_1PutLifecyclePolicyCommand = serializeAws_json1_1PutLifecyclePolicyCommand; -const serializeAws_json1_1PutRegistryPolicyCommand = async (input, context) => { - const headers = { - "content-type": "application/x-amz-json-1.1", - "x-amz-target": "AmazonEC2ContainerRegistry_V20150921.PutRegistryPolicy", - }; - let body; - body = JSON.stringify(serializeAws_json1_1PutRegistryPolicyRequest(input, context)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.serializeAws_json1_1PutRegistryPolicyCommand = serializeAws_json1_1PutRegistryPolicyCommand; -const serializeAws_json1_1PutRegistryScanningConfigurationCommand = async (input, context) => { - const headers = { - "content-type": "application/x-amz-json-1.1", - "x-amz-target": "AmazonEC2ContainerRegistry_V20150921.PutRegistryScanningConfiguration", - }; - let body; - body = JSON.stringify(serializeAws_json1_1PutRegistryScanningConfigurationRequest(input, context)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.serializeAws_json1_1PutRegistryScanningConfigurationCommand = serializeAws_json1_1PutRegistryScanningConfigurationCommand; -const serializeAws_json1_1PutReplicationConfigurationCommand = async (input, context) => { - const headers = { - "content-type": "application/x-amz-json-1.1", - "x-amz-target": "AmazonEC2ContainerRegistry_V20150921.PutReplicationConfiguration", - }; - let body; - body = JSON.stringify(serializeAws_json1_1PutReplicationConfigurationRequest(input, context)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.serializeAws_json1_1PutReplicationConfigurationCommand = serializeAws_json1_1PutReplicationConfigurationCommand; -const serializeAws_json1_1SetRepositoryPolicyCommand = async (input, context) => { - const headers = { - "content-type": "application/x-amz-json-1.1", - "x-amz-target": "AmazonEC2ContainerRegistry_V20150921.SetRepositoryPolicy", - }; - let body; - body = JSON.stringify(serializeAws_json1_1SetRepositoryPolicyRequest(input, context)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.serializeAws_json1_1SetRepositoryPolicyCommand = serializeAws_json1_1SetRepositoryPolicyCommand; -const serializeAws_json1_1StartImageScanCommand = async (input, context) => { - const headers = { - "content-type": "application/x-amz-json-1.1", - "x-amz-target": "AmazonEC2ContainerRegistry_V20150921.StartImageScan", - }; - let body; - body = JSON.stringify(serializeAws_json1_1StartImageScanRequest(input, context)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.serializeAws_json1_1StartImageScanCommand = serializeAws_json1_1StartImageScanCommand; -const serializeAws_json1_1StartLifecyclePolicyPreviewCommand = async (input, context) => { - const headers = { - "content-type": "application/x-amz-json-1.1", - "x-amz-target": "AmazonEC2ContainerRegistry_V20150921.StartLifecyclePolicyPreview", - }; - let body; - body = JSON.stringify(serializeAws_json1_1StartLifecyclePolicyPreviewRequest(input, context)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.serializeAws_json1_1StartLifecyclePolicyPreviewCommand = serializeAws_json1_1StartLifecyclePolicyPreviewCommand; -const serializeAws_json1_1TagResourceCommand = async (input, context) => { - const headers = { - "content-type": "application/x-amz-json-1.1", - "x-amz-target": "AmazonEC2ContainerRegistry_V20150921.TagResource", - }; - let body; - body = JSON.stringify(serializeAws_json1_1TagResourceRequest(input, context)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.serializeAws_json1_1TagResourceCommand = serializeAws_json1_1TagResourceCommand; -const serializeAws_json1_1UntagResourceCommand = async (input, context) => { - const headers = { - "content-type": "application/x-amz-json-1.1", - "x-amz-target": "AmazonEC2ContainerRegistry_V20150921.UntagResource", - }; - let body; - body = JSON.stringify(serializeAws_json1_1UntagResourceRequest(input, context)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.serializeAws_json1_1UntagResourceCommand = serializeAws_json1_1UntagResourceCommand; -const serializeAws_json1_1UploadLayerPartCommand = async (input, context) => { - const headers = { - "content-type": "application/x-amz-json-1.1", - "x-amz-target": "AmazonEC2ContainerRegistry_V20150921.UploadLayerPart", - }; - let body; - body = JSON.stringify(serializeAws_json1_1UploadLayerPartRequest(input, context)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.serializeAws_json1_1UploadLayerPartCommand = serializeAws_json1_1UploadLayerPartCommand; -const deserializeAws_json1_1BatchCheckLayerAvailabilityCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_json1_1BatchCheckLayerAvailabilityCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_json1_1BatchCheckLayerAvailabilityResponse(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return Promise.resolve(response); -}; -exports.deserializeAws_json1_1BatchCheckLayerAvailabilityCommand = deserializeAws_json1_1BatchCheckLayerAvailabilityCommand; -const deserializeAws_json1_1BatchCheckLayerAvailabilityCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context), - }; - let response; - let errorCode = "UnknownError"; - errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InvalidParameterException": - case "com.amazonaws.ecr#InvalidParameterException": - response = { - ...(await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)), - name: errorCode, - $metadata: deserializeMetadata(output), - }; - break; - case "RepositoryNotFoundException": - case "com.amazonaws.ecr#RepositoryNotFoundException": - response = { - ...(await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(parsedOutput, context)), - name: errorCode, - $metadata: deserializeMetadata(output), - }; - break; - case "ServerException": - case "com.amazonaws.ecr#ServerException": - response = { - ...(await deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context)), - name: errorCode, - $metadata: deserializeMetadata(output), - }; - break; - default: - const parsedBody = parsedOutput.body; - errorCode = parsedBody.code || parsedBody.Code || errorCode; - response = { - ...parsedBody, - name: `${errorCode}`, - message: parsedBody.message || parsedBody.Message || errorCode, - $fault: "client", - $metadata: deserializeMetadata(output), - }; - } - const message = response.message || response.Message || errorCode; - response.message = message; - delete response.Message; - return Promise.reject(Object.assign(new Error(message), response)); -}; -const deserializeAws_json1_1BatchDeleteImageCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_json1_1BatchDeleteImageCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_json1_1BatchDeleteImageResponse(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return Promise.resolve(response); -}; -exports.deserializeAws_json1_1BatchDeleteImageCommand = deserializeAws_json1_1BatchDeleteImageCommand; -const deserializeAws_json1_1BatchDeleteImageCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context), - }; - let response; - let errorCode = "UnknownError"; - errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InvalidParameterException": - case "com.amazonaws.ecr#InvalidParameterException": - response = { - ...(await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)), - name: errorCode, - $metadata: deserializeMetadata(output), - }; - break; - case "RepositoryNotFoundException": - case "com.amazonaws.ecr#RepositoryNotFoundException": - response = { - ...(await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(parsedOutput, context)), - name: errorCode, - $metadata: deserializeMetadata(output), - }; - break; - case "ServerException": - case "com.amazonaws.ecr#ServerException": - response = { - ...(await deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context)), - name: errorCode, - $metadata: deserializeMetadata(output), - }; - break; - default: - const parsedBody = parsedOutput.body; - errorCode = parsedBody.code || parsedBody.Code || errorCode; - response = { - ...parsedBody, - name: `${errorCode}`, - message: parsedBody.message || parsedBody.Message || errorCode, - $fault: "client", - $metadata: deserializeMetadata(output), - }; - } - const message = response.message || response.Message || errorCode; - response.message = message; - delete response.Message; - return Promise.reject(Object.assign(new Error(message), response)); -}; -const deserializeAws_json1_1BatchGetImageCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_json1_1BatchGetImageCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_json1_1BatchGetImageResponse(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return Promise.resolve(response); -}; -exports.deserializeAws_json1_1BatchGetImageCommand = deserializeAws_json1_1BatchGetImageCommand; -const deserializeAws_json1_1BatchGetImageCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context), - }; - let response; - let errorCode = "UnknownError"; - errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InvalidParameterException": - case "com.amazonaws.ecr#InvalidParameterException": - response = { - ...(await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)), - name: errorCode, - $metadata: deserializeMetadata(output), - }; - break; - case "RepositoryNotFoundException": - case "com.amazonaws.ecr#RepositoryNotFoundException": - response = { - ...(await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(parsedOutput, context)), - name: errorCode, - $metadata: deserializeMetadata(output), - }; - break; - case "ServerException": - case "com.amazonaws.ecr#ServerException": - response = { - ...(await deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context)), - name: errorCode, - $metadata: deserializeMetadata(output), - }; - break; - default: - const parsedBody = parsedOutput.body; - errorCode = parsedBody.code || parsedBody.Code || errorCode; - response = { - ...parsedBody, - name: `${errorCode}`, - message: parsedBody.message || parsedBody.Message || errorCode, - $fault: "client", - $metadata: deserializeMetadata(output), - }; - } - const message = response.message || response.Message || errorCode; - response.message = message; - delete response.Message; - return Promise.reject(Object.assign(new Error(message), response)); -}; -const deserializeAws_json1_1BatchGetRepositoryScanningConfigurationCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_json1_1BatchGetRepositoryScanningConfigurationCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_json1_1BatchGetRepositoryScanningConfigurationResponse(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return Promise.resolve(response); -}; -exports.deserializeAws_json1_1BatchGetRepositoryScanningConfigurationCommand = deserializeAws_json1_1BatchGetRepositoryScanningConfigurationCommand; -const deserializeAws_json1_1BatchGetRepositoryScanningConfigurationCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context), - }; - let response; - let errorCode = "UnknownError"; - errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InvalidParameterException": - case "com.amazonaws.ecr#InvalidParameterException": - response = { - ...(await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)), - name: errorCode, - $metadata: deserializeMetadata(output), - }; - break; - case "RepositoryNotFoundException": - case "com.amazonaws.ecr#RepositoryNotFoundException": - response = { - ...(await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(parsedOutput, context)), - name: errorCode, - $metadata: deserializeMetadata(output), - }; - break; - case "ServerException": - case "com.amazonaws.ecr#ServerException": - response = { - ...(await deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context)), - name: errorCode, - $metadata: deserializeMetadata(output), - }; - break; - case "ValidationException": - case "com.amazonaws.ecr#ValidationException": - response = { - ...(await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)), - name: errorCode, - $metadata: deserializeMetadata(output), - }; - break; - default: - const parsedBody = parsedOutput.body; - errorCode = parsedBody.code || parsedBody.Code || errorCode; - response = { - ...parsedBody, - name: `${errorCode}`, - message: parsedBody.message || parsedBody.Message || errorCode, - $fault: "client", - $metadata: deserializeMetadata(output), - }; - } - const message = response.message || response.Message || errorCode; - response.message = message; - delete response.Message; - return Promise.reject(Object.assign(new Error(message), response)); -}; -const deserializeAws_json1_1CompleteLayerUploadCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_json1_1CompleteLayerUploadCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_json1_1CompleteLayerUploadResponse(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return Promise.resolve(response); -}; -exports.deserializeAws_json1_1CompleteLayerUploadCommand = deserializeAws_json1_1CompleteLayerUploadCommand; -const deserializeAws_json1_1CompleteLayerUploadCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context), - }; - let response; - let errorCode = "UnknownError"; - errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "EmptyUploadException": - case "com.amazonaws.ecr#EmptyUploadException": - response = { - ...(await deserializeAws_json1_1EmptyUploadExceptionResponse(parsedOutput, context)), - name: errorCode, - $metadata: deserializeMetadata(output), - }; - break; - case "InvalidLayerException": - case "com.amazonaws.ecr#InvalidLayerException": - response = { - ...(await deserializeAws_json1_1InvalidLayerExceptionResponse(parsedOutput, context)), - name: errorCode, - $metadata: deserializeMetadata(output), - }; - break; - case "InvalidParameterException": - case "com.amazonaws.ecr#InvalidParameterException": - response = { - ...(await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)), - name: errorCode, - $metadata: deserializeMetadata(output), - }; - break; - case "KmsException": - case "com.amazonaws.ecr#KmsException": - response = { - ...(await deserializeAws_json1_1KmsExceptionResponse(parsedOutput, context)), - name: errorCode, - $metadata: deserializeMetadata(output), - }; - break; - case "LayerAlreadyExistsException": - case "com.amazonaws.ecr#LayerAlreadyExistsException": - response = { - ...(await deserializeAws_json1_1LayerAlreadyExistsExceptionResponse(parsedOutput, context)), - name: errorCode, - $metadata: deserializeMetadata(output), - }; - break; - case "LayerPartTooSmallException": - case "com.amazonaws.ecr#LayerPartTooSmallException": - response = { - ...(await deserializeAws_json1_1LayerPartTooSmallExceptionResponse(parsedOutput, context)), - name: errorCode, - $metadata: deserializeMetadata(output), - }; - break; - case "RepositoryNotFoundException": - case "com.amazonaws.ecr#RepositoryNotFoundException": - response = { - ...(await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(parsedOutput, context)), - name: errorCode, - $metadata: deserializeMetadata(output), - }; - break; - case "ServerException": - case "com.amazonaws.ecr#ServerException": - response = { - ...(await deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context)), - name: errorCode, - $metadata: deserializeMetadata(output), - }; - break; - case "UploadNotFoundException": - case "com.amazonaws.ecr#UploadNotFoundException": - response = { - ...(await deserializeAws_json1_1UploadNotFoundExceptionResponse(parsedOutput, context)), - name: errorCode, - $metadata: deserializeMetadata(output), - }; - break; - default: - const parsedBody = parsedOutput.body; - errorCode = parsedBody.code || parsedBody.Code || errorCode; - response = { - ...parsedBody, - name: `${errorCode}`, - message: parsedBody.message || parsedBody.Message || errorCode, - $fault: "client", - $metadata: deserializeMetadata(output), - }; - } - const message = response.message || response.Message || errorCode; - response.message = message; - delete response.Message; - return Promise.reject(Object.assign(new Error(message), response)); -}; -const deserializeAws_json1_1CreatePullThroughCacheRuleCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_json1_1CreatePullThroughCacheRuleCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_json1_1CreatePullThroughCacheRuleResponse(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return Promise.resolve(response); -}; -exports.deserializeAws_json1_1CreatePullThroughCacheRuleCommand = deserializeAws_json1_1CreatePullThroughCacheRuleCommand; -const deserializeAws_json1_1CreatePullThroughCacheRuleCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context), - }; - let response; - let errorCode = "UnknownError"; - errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InvalidParameterException": - case "com.amazonaws.ecr#InvalidParameterException": - response = { - ...(await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)), - name: errorCode, - $metadata: deserializeMetadata(output), - }; - break; - case "LimitExceededException": - case "com.amazonaws.ecr#LimitExceededException": - response = { - ...(await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)), - name: errorCode, - $metadata: deserializeMetadata(output), - }; - break; - case "PullThroughCacheRuleAlreadyExistsException": - case "com.amazonaws.ecr#PullThroughCacheRuleAlreadyExistsException": - response = { - ...(await deserializeAws_json1_1PullThroughCacheRuleAlreadyExistsExceptionResponse(parsedOutput, context)), - name: errorCode, - $metadata: deserializeMetadata(output), - }; - break; - case "ServerException": - case "com.amazonaws.ecr#ServerException": - response = { - ...(await deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context)), - name: errorCode, - $metadata: deserializeMetadata(output), - }; - break; - case "UnsupportedUpstreamRegistryException": - case "com.amazonaws.ecr#UnsupportedUpstreamRegistryException": - response = { - ...(await deserializeAws_json1_1UnsupportedUpstreamRegistryExceptionResponse(parsedOutput, context)), - name: errorCode, - $metadata: deserializeMetadata(output), - }; - break; - case "ValidationException": - case "com.amazonaws.ecr#ValidationException": - response = { - ...(await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)), - name: errorCode, - $metadata: deserializeMetadata(output), - }; - break; - default: - const parsedBody = parsedOutput.body; - errorCode = parsedBody.code || parsedBody.Code || errorCode; - response = { - ...parsedBody, - name: `${errorCode}`, - message: parsedBody.message || parsedBody.Message || errorCode, - $fault: "client", - $metadata: deserializeMetadata(output), - }; - } - const message = response.message || response.Message || errorCode; - response.message = message; - delete response.Message; - return Promise.reject(Object.assign(new Error(message), response)); -}; -const deserializeAws_json1_1CreateRepositoryCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_json1_1CreateRepositoryCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_json1_1CreateRepositoryResponse(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return Promise.resolve(response); -}; -exports.deserializeAws_json1_1CreateRepositoryCommand = deserializeAws_json1_1CreateRepositoryCommand; -const deserializeAws_json1_1CreateRepositoryCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context), - }; - let response; - let errorCode = "UnknownError"; - errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InvalidParameterException": - case "com.amazonaws.ecr#InvalidParameterException": - response = { - ...(await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)), - name: errorCode, - $metadata: deserializeMetadata(output), - }; - break; - case "InvalidTagParameterException": - case "com.amazonaws.ecr#InvalidTagParameterException": - response = { - ...(await deserializeAws_json1_1InvalidTagParameterExceptionResponse(parsedOutput, context)), - name: errorCode, - $metadata: deserializeMetadata(output), - }; - break; - case "KmsException": - case "com.amazonaws.ecr#KmsException": - response = { - ...(await deserializeAws_json1_1KmsExceptionResponse(parsedOutput, context)), - name: errorCode, - $metadata: deserializeMetadata(output), - }; - break; - case "LimitExceededException": - case "com.amazonaws.ecr#LimitExceededException": - response = { - ...(await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)), - name: errorCode, - $metadata: deserializeMetadata(output), - }; - break; - case "RepositoryAlreadyExistsException": - case "com.amazonaws.ecr#RepositoryAlreadyExistsException": - response = { - ...(await deserializeAws_json1_1RepositoryAlreadyExistsExceptionResponse(parsedOutput, context)), - name: errorCode, - $metadata: deserializeMetadata(output), - }; - break; - case "ServerException": - case "com.amazonaws.ecr#ServerException": - response = { - ...(await deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context)), - name: errorCode, - $metadata: deserializeMetadata(output), - }; - break; - case "TooManyTagsException": - case "com.amazonaws.ecr#TooManyTagsException": - response = { - ...(await deserializeAws_json1_1TooManyTagsExceptionResponse(parsedOutput, context)), - name: errorCode, - $metadata: deserializeMetadata(output), - }; - break; - default: - const parsedBody = parsedOutput.body; - errorCode = parsedBody.code || parsedBody.Code || errorCode; - response = { - ...parsedBody, - name: `${errorCode}`, - message: parsedBody.message || parsedBody.Message || errorCode, - $fault: "client", - $metadata: deserializeMetadata(output), - }; - } - const message = response.message || response.Message || errorCode; - response.message = message; - delete response.Message; - return Promise.reject(Object.assign(new Error(message), response)); -}; -const deserializeAws_json1_1DeleteLifecyclePolicyCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_json1_1DeleteLifecyclePolicyCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_json1_1DeleteLifecyclePolicyResponse(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return Promise.resolve(response); -}; -exports.deserializeAws_json1_1DeleteLifecyclePolicyCommand = deserializeAws_json1_1DeleteLifecyclePolicyCommand; -const deserializeAws_json1_1DeleteLifecyclePolicyCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context), - }; - let response; - let errorCode = "UnknownError"; - errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InvalidParameterException": - case "com.amazonaws.ecr#InvalidParameterException": - response = { - ...(await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)), - name: errorCode, - $metadata: deserializeMetadata(output), - }; - break; - case "LifecyclePolicyNotFoundException": - case "com.amazonaws.ecr#LifecyclePolicyNotFoundException": - response = { - ...(await deserializeAws_json1_1LifecyclePolicyNotFoundExceptionResponse(parsedOutput, context)), - name: errorCode, - $metadata: deserializeMetadata(output), - }; - break; - case "RepositoryNotFoundException": - case "com.amazonaws.ecr#RepositoryNotFoundException": - response = { - ...(await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(parsedOutput, context)), - name: errorCode, - $metadata: deserializeMetadata(output), - }; - break; - case "ServerException": - case "com.amazonaws.ecr#ServerException": - response = { - ...(await deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context)), - name: errorCode, - $metadata: deserializeMetadata(output), - }; - break; - default: - const parsedBody = parsedOutput.body; - errorCode = parsedBody.code || parsedBody.Code || errorCode; - response = { - ...parsedBody, - name: `${errorCode}`, - message: parsedBody.message || parsedBody.Message || errorCode, - $fault: "client", - $metadata: deserializeMetadata(output), - }; - } - const message = response.message || response.Message || errorCode; - response.message = message; - delete response.Message; - return Promise.reject(Object.assign(new Error(message), response)); -}; -const deserializeAws_json1_1DeletePullThroughCacheRuleCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_json1_1DeletePullThroughCacheRuleCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_json1_1DeletePullThroughCacheRuleResponse(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return Promise.resolve(response); -}; -exports.deserializeAws_json1_1DeletePullThroughCacheRuleCommand = deserializeAws_json1_1DeletePullThroughCacheRuleCommand; -const deserializeAws_json1_1DeletePullThroughCacheRuleCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context), - }; - let response; - let errorCode = "UnknownError"; - errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InvalidParameterException": - case "com.amazonaws.ecr#InvalidParameterException": - response = { - ...(await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)), - name: errorCode, - $metadata: deserializeMetadata(output), - }; - break; - case "PullThroughCacheRuleNotFoundException": - case "com.amazonaws.ecr#PullThroughCacheRuleNotFoundException": - response = { - ...(await deserializeAws_json1_1PullThroughCacheRuleNotFoundExceptionResponse(parsedOutput, context)), - name: errorCode, - $metadata: deserializeMetadata(output), - }; - break; - case "ServerException": - case "com.amazonaws.ecr#ServerException": - response = { - ...(await deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context)), - name: errorCode, - $metadata: deserializeMetadata(output), - }; - break; - case "ValidationException": - case "com.amazonaws.ecr#ValidationException": - response = { - ...(await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)), - name: errorCode, - $metadata: deserializeMetadata(output), - }; - break; - default: - const parsedBody = parsedOutput.body; - errorCode = parsedBody.code || parsedBody.Code || errorCode; - response = { - ...parsedBody, - name: `${errorCode}`, - message: parsedBody.message || parsedBody.Message || errorCode, - $fault: "client", - $metadata: deserializeMetadata(output), - }; - } - const message = response.message || response.Message || errorCode; - response.message = message; - delete response.Message; - return Promise.reject(Object.assign(new Error(message), response)); -}; -const deserializeAws_json1_1DeleteRegistryPolicyCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_json1_1DeleteRegistryPolicyCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_json1_1DeleteRegistryPolicyResponse(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return Promise.resolve(response); -}; -exports.deserializeAws_json1_1DeleteRegistryPolicyCommand = deserializeAws_json1_1DeleteRegistryPolicyCommand; -const deserializeAws_json1_1DeleteRegistryPolicyCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context), - }; - let response; - let errorCode = "UnknownError"; - errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InvalidParameterException": - case "com.amazonaws.ecr#InvalidParameterException": - response = { - ...(await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)), - name: errorCode, - $metadata: deserializeMetadata(output), - }; - break; - case "RegistryPolicyNotFoundException": - case "com.amazonaws.ecr#RegistryPolicyNotFoundException": - response = { - ...(await deserializeAws_json1_1RegistryPolicyNotFoundExceptionResponse(parsedOutput, context)), - name: errorCode, - $metadata: deserializeMetadata(output), - }; - break; - case "ServerException": - case "com.amazonaws.ecr#ServerException": - response = { - ...(await deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context)), - name: errorCode, - $metadata: deserializeMetadata(output), - }; - break; - case "ValidationException": - case "com.amazonaws.ecr#ValidationException": - response = { - ...(await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)), - name: errorCode, - $metadata: deserializeMetadata(output), - }; - break; - default: - const parsedBody = parsedOutput.body; - errorCode = parsedBody.code || parsedBody.Code || errorCode; - response = { - ...parsedBody, - name: `${errorCode}`, - message: parsedBody.message || parsedBody.Message || errorCode, - $fault: "client", - $metadata: deserializeMetadata(output), - }; - } - const message = response.message || response.Message || errorCode; - response.message = message; - delete response.Message; - return Promise.reject(Object.assign(new Error(message), response)); -}; -const deserializeAws_json1_1DeleteRepositoryCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_json1_1DeleteRepositoryCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_json1_1DeleteRepositoryResponse(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return Promise.resolve(response); -}; -exports.deserializeAws_json1_1DeleteRepositoryCommand = deserializeAws_json1_1DeleteRepositoryCommand; -const deserializeAws_json1_1DeleteRepositoryCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context), - }; - let response; - let errorCode = "UnknownError"; - errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InvalidParameterException": - case "com.amazonaws.ecr#InvalidParameterException": - response = { - ...(await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)), - name: errorCode, - $metadata: deserializeMetadata(output), - }; - break; - case "KmsException": - case "com.amazonaws.ecr#KmsException": - response = { - ...(await deserializeAws_json1_1KmsExceptionResponse(parsedOutput, context)), - name: errorCode, - $metadata: deserializeMetadata(output), - }; - break; - case "RepositoryNotEmptyException": - case "com.amazonaws.ecr#RepositoryNotEmptyException": - response = { - ...(await deserializeAws_json1_1RepositoryNotEmptyExceptionResponse(parsedOutput, context)), - name: errorCode, - $metadata: deserializeMetadata(output), - }; - break; - case "RepositoryNotFoundException": - case "com.amazonaws.ecr#RepositoryNotFoundException": - response = { - ...(await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(parsedOutput, context)), - name: errorCode, - $metadata: deserializeMetadata(output), - }; - break; - case "ServerException": - case "com.amazonaws.ecr#ServerException": - response = { - ...(await deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context)), - name: errorCode, - $metadata: deserializeMetadata(output), - }; - break; - default: - const parsedBody = parsedOutput.body; - errorCode = parsedBody.code || parsedBody.Code || errorCode; - response = { - ...parsedBody, - name: `${errorCode}`, - message: parsedBody.message || parsedBody.Message || errorCode, - $fault: "client", - $metadata: deserializeMetadata(output), - }; - } - const message = response.message || response.Message || errorCode; - response.message = message; - delete response.Message; - return Promise.reject(Object.assign(new Error(message), response)); -}; -const deserializeAws_json1_1DeleteRepositoryPolicyCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_json1_1DeleteRepositoryPolicyCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_json1_1DeleteRepositoryPolicyResponse(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return Promise.resolve(response); -}; -exports.deserializeAws_json1_1DeleteRepositoryPolicyCommand = deserializeAws_json1_1DeleteRepositoryPolicyCommand; -const deserializeAws_json1_1DeleteRepositoryPolicyCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context), - }; - let response; - let errorCode = "UnknownError"; - errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InvalidParameterException": - case "com.amazonaws.ecr#InvalidParameterException": - response = { - ...(await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)), - name: errorCode, - $metadata: deserializeMetadata(output), - }; - break; - case "RepositoryNotFoundException": - case "com.amazonaws.ecr#RepositoryNotFoundException": - response = { - ...(await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(parsedOutput, context)), - name: errorCode, - $metadata: deserializeMetadata(output), - }; - break; - case "RepositoryPolicyNotFoundException": - case "com.amazonaws.ecr#RepositoryPolicyNotFoundException": - response = { - ...(await deserializeAws_json1_1RepositoryPolicyNotFoundExceptionResponse(parsedOutput, context)), - name: errorCode, - $metadata: deserializeMetadata(output), - }; - break; - case "ServerException": - case "com.amazonaws.ecr#ServerException": - response = { - ...(await deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context)), - name: errorCode, - $metadata: deserializeMetadata(output), - }; - break; - default: - const parsedBody = parsedOutput.body; - errorCode = parsedBody.code || parsedBody.Code || errorCode; - response = { - ...parsedBody, - name: `${errorCode}`, - message: parsedBody.message || parsedBody.Message || errorCode, - $fault: "client", - $metadata: deserializeMetadata(output), - }; - } - const message = response.message || response.Message || errorCode; - response.message = message; - delete response.Message; - return Promise.reject(Object.assign(new Error(message), response)); -}; -const deserializeAws_json1_1DescribeImageReplicationStatusCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_json1_1DescribeImageReplicationStatusCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_json1_1DescribeImageReplicationStatusResponse(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return Promise.resolve(response); -}; -exports.deserializeAws_json1_1DescribeImageReplicationStatusCommand = deserializeAws_json1_1DescribeImageReplicationStatusCommand; -const deserializeAws_json1_1DescribeImageReplicationStatusCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context), - }; - let response; - let errorCode = "UnknownError"; - errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "ImageNotFoundException": - case "com.amazonaws.ecr#ImageNotFoundException": - response = { - ...(await deserializeAws_json1_1ImageNotFoundExceptionResponse(parsedOutput, context)), - name: errorCode, - $metadata: deserializeMetadata(output), - }; - break; - case "InvalidParameterException": - case "com.amazonaws.ecr#InvalidParameterException": - response = { - ...(await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)), - name: errorCode, - $metadata: deserializeMetadata(output), - }; - break; - case "RepositoryNotFoundException": - case "com.amazonaws.ecr#RepositoryNotFoundException": - response = { - ...(await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(parsedOutput, context)), - name: errorCode, - $metadata: deserializeMetadata(output), - }; - break; - case "ServerException": - case "com.amazonaws.ecr#ServerException": - response = { - ...(await deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context)), - name: errorCode, - $metadata: deserializeMetadata(output), - }; - break; - case "ValidationException": - case "com.amazonaws.ecr#ValidationException": - response = { - ...(await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)), - name: errorCode, - $metadata: deserializeMetadata(output), - }; - break; - default: - const parsedBody = parsedOutput.body; - errorCode = parsedBody.code || parsedBody.Code || errorCode; - response = { - ...parsedBody, - name: `${errorCode}`, - message: parsedBody.message || parsedBody.Message || errorCode, - $fault: "client", - $metadata: deserializeMetadata(output), - }; - } - const message = response.message || response.Message || errorCode; - response.message = message; - delete response.Message; - return Promise.reject(Object.assign(new Error(message), response)); -}; -const deserializeAws_json1_1DescribeImagesCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_json1_1DescribeImagesCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_json1_1DescribeImagesResponse(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return Promise.resolve(response); -}; -exports.deserializeAws_json1_1DescribeImagesCommand = deserializeAws_json1_1DescribeImagesCommand; -const deserializeAws_json1_1DescribeImagesCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context), - }; - let response; - let errorCode = "UnknownError"; - errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "ImageNotFoundException": - case "com.amazonaws.ecr#ImageNotFoundException": - response = { - ...(await deserializeAws_json1_1ImageNotFoundExceptionResponse(parsedOutput, context)), - name: errorCode, - $metadata: deserializeMetadata(output), - }; - break; - case "InvalidParameterException": - case "com.amazonaws.ecr#InvalidParameterException": - response = { - ...(await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)), - name: errorCode, - $metadata: deserializeMetadata(output), - }; - break; - case "RepositoryNotFoundException": - case "com.amazonaws.ecr#RepositoryNotFoundException": - response = { - ...(await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(parsedOutput, context)), - name: errorCode, - $metadata: deserializeMetadata(output), - }; - break; - case "ServerException": - case "com.amazonaws.ecr#ServerException": - response = { - ...(await deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context)), - name: errorCode, - $metadata: deserializeMetadata(output), - }; - break; - default: - const parsedBody = parsedOutput.body; - errorCode = parsedBody.code || parsedBody.Code || errorCode; - response = { - ...parsedBody, - name: `${errorCode}`, - message: parsedBody.message || parsedBody.Message || errorCode, - $fault: "client", - $metadata: deserializeMetadata(output), - }; - } - const message = response.message || response.Message || errorCode; - response.message = message; - delete response.Message; - return Promise.reject(Object.assign(new Error(message), response)); -}; -const deserializeAws_json1_1DescribeImageScanFindingsCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_json1_1DescribeImageScanFindingsCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_json1_1DescribeImageScanFindingsResponse(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return Promise.resolve(response); -}; -exports.deserializeAws_json1_1DescribeImageScanFindingsCommand = deserializeAws_json1_1DescribeImageScanFindingsCommand; -const deserializeAws_json1_1DescribeImageScanFindingsCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context), - }; - let response; - let errorCode = "UnknownError"; - errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "ImageNotFoundException": - case "com.amazonaws.ecr#ImageNotFoundException": - response = { - ...(await deserializeAws_json1_1ImageNotFoundExceptionResponse(parsedOutput, context)), - name: errorCode, - $metadata: deserializeMetadata(output), - }; - break; - case "InvalidParameterException": - case "com.amazonaws.ecr#InvalidParameterException": - response = { - ...(await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)), - name: errorCode, - $metadata: deserializeMetadata(output), - }; - break; - case "RepositoryNotFoundException": - case "com.amazonaws.ecr#RepositoryNotFoundException": - response = { - ...(await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(parsedOutput, context)), - name: errorCode, - $metadata: deserializeMetadata(output), - }; - break; - case "ScanNotFoundException": - case "com.amazonaws.ecr#ScanNotFoundException": - response = { - ...(await deserializeAws_json1_1ScanNotFoundExceptionResponse(parsedOutput, context)), - name: errorCode, - $metadata: deserializeMetadata(output), - }; - break; - case "ServerException": - case "com.amazonaws.ecr#ServerException": - response = { - ...(await deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context)), - name: errorCode, - $metadata: deserializeMetadata(output), - }; - break; - case "ValidationException": - case "com.amazonaws.ecr#ValidationException": - response = { - ...(await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)), - name: errorCode, - $metadata: deserializeMetadata(output), - }; - break; - default: - const parsedBody = parsedOutput.body; - errorCode = parsedBody.code || parsedBody.Code || errorCode; - response = { - ...parsedBody, - name: `${errorCode}`, - message: parsedBody.message || parsedBody.Message || errorCode, - $fault: "client", - $metadata: deserializeMetadata(output), - }; - } - const message = response.message || response.Message || errorCode; - response.message = message; - delete response.Message; - return Promise.reject(Object.assign(new Error(message), response)); -}; -const deserializeAws_json1_1DescribePullThroughCacheRulesCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_json1_1DescribePullThroughCacheRulesCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_json1_1DescribePullThroughCacheRulesResponse(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return Promise.resolve(response); -}; -exports.deserializeAws_json1_1DescribePullThroughCacheRulesCommand = deserializeAws_json1_1DescribePullThroughCacheRulesCommand; -const deserializeAws_json1_1DescribePullThroughCacheRulesCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context), - }; - let response; - let errorCode = "UnknownError"; - errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InvalidParameterException": - case "com.amazonaws.ecr#InvalidParameterException": - response = { - ...(await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)), - name: errorCode, - $metadata: deserializeMetadata(output), - }; - break; - case "PullThroughCacheRuleNotFoundException": - case "com.amazonaws.ecr#PullThroughCacheRuleNotFoundException": - response = { - ...(await deserializeAws_json1_1PullThroughCacheRuleNotFoundExceptionResponse(parsedOutput, context)), - name: errorCode, - $metadata: deserializeMetadata(output), - }; - break; - case "ServerException": - case "com.amazonaws.ecr#ServerException": - response = { - ...(await deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context)), - name: errorCode, - $metadata: deserializeMetadata(output), - }; - break; - case "ValidationException": - case "com.amazonaws.ecr#ValidationException": - response = { - ...(await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)), - name: errorCode, - $metadata: deserializeMetadata(output), - }; - break; - default: - const parsedBody = parsedOutput.body; - errorCode = parsedBody.code || parsedBody.Code || errorCode; - response = { - ...parsedBody, - name: `${errorCode}`, - message: parsedBody.message || parsedBody.Message || errorCode, - $fault: "client", - $metadata: deserializeMetadata(output), - }; - } - const message = response.message || response.Message || errorCode; - response.message = message; - delete response.Message; - return Promise.reject(Object.assign(new Error(message), response)); -}; -const deserializeAws_json1_1DescribeRegistryCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_json1_1DescribeRegistryCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_json1_1DescribeRegistryResponse(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return Promise.resolve(response); -}; -exports.deserializeAws_json1_1DescribeRegistryCommand = deserializeAws_json1_1DescribeRegistryCommand; -const deserializeAws_json1_1DescribeRegistryCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context), - }; - let response; - let errorCode = "UnknownError"; - errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InvalidParameterException": - case "com.amazonaws.ecr#InvalidParameterException": - response = { - ...(await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)), - name: errorCode, - $metadata: deserializeMetadata(output), - }; - break; - case "ServerException": - case "com.amazonaws.ecr#ServerException": - response = { - ...(await deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context)), - name: errorCode, - $metadata: deserializeMetadata(output), - }; - break; - case "ValidationException": - case "com.amazonaws.ecr#ValidationException": - response = { - ...(await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)), - name: errorCode, - $metadata: deserializeMetadata(output), - }; - break; - default: - const parsedBody = parsedOutput.body; - errorCode = parsedBody.code || parsedBody.Code || errorCode; - response = { - ...parsedBody, - name: `${errorCode}`, - message: parsedBody.message || parsedBody.Message || errorCode, - $fault: "client", - $metadata: deserializeMetadata(output), - }; - } - const message = response.message || response.Message || errorCode; - response.message = message; - delete response.Message; - return Promise.reject(Object.assign(new Error(message), response)); -}; -const deserializeAws_json1_1DescribeRepositoriesCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_json1_1DescribeRepositoriesCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_json1_1DescribeRepositoriesResponse(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return Promise.resolve(response); -}; -exports.deserializeAws_json1_1DescribeRepositoriesCommand = deserializeAws_json1_1DescribeRepositoriesCommand; -const deserializeAws_json1_1DescribeRepositoriesCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context), - }; - let response; - let errorCode = "UnknownError"; - errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InvalidParameterException": - case "com.amazonaws.ecr#InvalidParameterException": - response = { - ...(await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)), - name: errorCode, - $metadata: deserializeMetadata(output), - }; - break; - case "RepositoryNotFoundException": - case "com.amazonaws.ecr#RepositoryNotFoundException": - response = { - ...(await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(parsedOutput, context)), - name: errorCode, - $metadata: deserializeMetadata(output), - }; - break; - case "ServerException": - case "com.amazonaws.ecr#ServerException": - response = { - ...(await deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context)), - name: errorCode, - $metadata: deserializeMetadata(output), - }; - break; - default: - const parsedBody = parsedOutput.body; - errorCode = parsedBody.code || parsedBody.Code || errorCode; - response = { - ...parsedBody, - name: `${errorCode}`, - message: parsedBody.message || parsedBody.Message || errorCode, - $fault: "client", - $metadata: deserializeMetadata(output), - }; - } - const message = response.message || response.Message || errorCode; - response.message = message; - delete response.Message; - return Promise.reject(Object.assign(new Error(message), response)); -}; -const deserializeAws_json1_1GetAuthorizationTokenCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_json1_1GetAuthorizationTokenCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_json1_1GetAuthorizationTokenResponse(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return Promise.resolve(response); -}; -exports.deserializeAws_json1_1GetAuthorizationTokenCommand = deserializeAws_json1_1GetAuthorizationTokenCommand; -const deserializeAws_json1_1GetAuthorizationTokenCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context), - }; - let response; - let errorCode = "UnknownError"; - errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InvalidParameterException": - case "com.amazonaws.ecr#InvalidParameterException": - response = { - ...(await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)), - name: errorCode, - $metadata: deserializeMetadata(output), - }; - break; - case "ServerException": - case "com.amazonaws.ecr#ServerException": - response = { - ...(await deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context)), - name: errorCode, - $metadata: deserializeMetadata(output), - }; - break; - default: - const parsedBody = parsedOutput.body; - errorCode = parsedBody.code || parsedBody.Code || errorCode; - response = { - ...parsedBody, - name: `${errorCode}`, - message: parsedBody.message || parsedBody.Message || errorCode, - $fault: "client", - $metadata: deserializeMetadata(output), - }; - } - const message = response.message || response.Message || errorCode; - response.message = message; - delete response.Message; - return Promise.reject(Object.assign(new Error(message), response)); -}; -const deserializeAws_json1_1GetDownloadUrlForLayerCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_json1_1GetDownloadUrlForLayerCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_json1_1GetDownloadUrlForLayerResponse(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return Promise.resolve(response); -}; -exports.deserializeAws_json1_1GetDownloadUrlForLayerCommand = deserializeAws_json1_1GetDownloadUrlForLayerCommand; -const deserializeAws_json1_1GetDownloadUrlForLayerCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context), - }; - let response; - let errorCode = "UnknownError"; - errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InvalidParameterException": - case "com.amazonaws.ecr#InvalidParameterException": - response = { - ...(await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)), - name: errorCode, - $metadata: deserializeMetadata(output), - }; - break; - case "LayerInaccessibleException": - case "com.amazonaws.ecr#LayerInaccessibleException": - response = { - ...(await deserializeAws_json1_1LayerInaccessibleExceptionResponse(parsedOutput, context)), - name: errorCode, - $metadata: deserializeMetadata(output), - }; - break; - case "LayersNotFoundException": - case "com.amazonaws.ecr#LayersNotFoundException": - response = { - ...(await deserializeAws_json1_1LayersNotFoundExceptionResponse(parsedOutput, context)), - name: errorCode, - $metadata: deserializeMetadata(output), - }; - break; - case "RepositoryNotFoundException": - case "com.amazonaws.ecr#RepositoryNotFoundException": - response = { - ...(await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(parsedOutput, context)), - name: errorCode, - $metadata: deserializeMetadata(output), - }; - break; - case "ServerException": - case "com.amazonaws.ecr#ServerException": - response = { - ...(await deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context)), - name: errorCode, - $metadata: deserializeMetadata(output), - }; - break; - default: - const parsedBody = parsedOutput.body; - errorCode = parsedBody.code || parsedBody.Code || errorCode; - response = { - ...parsedBody, - name: `${errorCode}`, - message: parsedBody.message || parsedBody.Message || errorCode, - $fault: "client", - $metadata: deserializeMetadata(output), - }; - } - const message = response.message || response.Message || errorCode; - response.message = message; - delete response.Message; - return Promise.reject(Object.assign(new Error(message), response)); -}; -const deserializeAws_json1_1GetLifecyclePolicyCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_json1_1GetLifecyclePolicyCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_json1_1GetLifecyclePolicyResponse(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return Promise.resolve(response); -}; -exports.deserializeAws_json1_1GetLifecyclePolicyCommand = deserializeAws_json1_1GetLifecyclePolicyCommand; -const deserializeAws_json1_1GetLifecyclePolicyCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context), - }; - let response; - let errorCode = "UnknownError"; - errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InvalidParameterException": - case "com.amazonaws.ecr#InvalidParameterException": - response = { - ...(await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)), - name: errorCode, - $metadata: deserializeMetadata(output), - }; - break; - case "LifecyclePolicyNotFoundException": - case "com.amazonaws.ecr#LifecyclePolicyNotFoundException": - response = { - ...(await deserializeAws_json1_1LifecyclePolicyNotFoundExceptionResponse(parsedOutput, context)), - name: errorCode, - $metadata: deserializeMetadata(output), - }; - break; - case "RepositoryNotFoundException": - case "com.amazonaws.ecr#RepositoryNotFoundException": - response = { - ...(await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(parsedOutput, context)), - name: errorCode, - $metadata: deserializeMetadata(output), - }; - break; - case "ServerException": - case "com.amazonaws.ecr#ServerException": - response = { - ...(await deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context)), - name: errorCode, - $metadata: deserializeMetadata(output), - }; - break; - default: - const parsedBody = parsedOutput.body; - errorCode = parsedBody.code || parsedBody.Code || errorCode; - response = { - ...parsedBody, - name: `${errorCode}`, - message: parsedBody.message || parsedBody.Message || errorCode, - $fault: "client", - $metadata: deserializeMetadata(output), - }; - } - const message = response.message || response.Message || errorCode; - response.message = message; - delete response.Message; - return Promise.reject(Object.assign(new Error(message), response)); -}; -const deserializeAws_json1_1GetLifecyclePolicyPreviewCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_json1_1GetLifecyclePolicyPreviewCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_json1_1GetLifecyclePolicyPreviewResponse(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return Promise.resolve(response); -}; -exports.deserializeAws_json1_1GetLifecyclePolicyPreviewCommand = deserializeAws_json1_1GetLifecyclePolicyPreviewCommand; -const deserializeAws_json1_1GetLifecyclePolicyPreviewCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context), - }; - let response; - let errorCode = "UnknownError"; - errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InvalidParameterException": - case "com.amazonaws.ecr#InvalidParameterException": - response = { - ...(await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)), - name: errorCode, - $metadata: deserializeMetadata(output), - }; - break; - case "LifecyclePolicyPreviewNotFoundException": - case "com.amazonaws.ecr#LifecyclePolicyPreviewNotFoundException": - response = { - ...(await deserializeAws_json1_1LifecyclePolicyPreviewNotFoundExceptionResponse(parsedOutput, context)), - name: errorCode, - $metadata: deserializeMetadata(output), - }; - break; - case "RepositoryNotFoundException": - case "com.amazonaws.ecr#RepositoryNotFoundException": - response = { - ...(await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(parsedOutput, context)), - name: errorCode, - $metadata: deserializeMetadata(output), - }; - break; - case "ServerException": - case "com.amazonaws.ecr#ServerException": - response = { - ...(await deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context)), - name: errorCode, - $metadata: deserializeMetadata(output), - }; - break; - default: - const parsedBody = parsedOutput.body; - errorCode = parsedBody.code || parsedBody.Code || errorCode; - response = { - ...parsedBody, - name: `${errorCode}`, - message: parsedBody.message || parsedBody.Message || errorCode, - $fault: "client", - $metadata: deserializeMetadata(output), - }; - } - const message = response.message || response.Message || errorCode; - response.message = message; - delete response.Message; - return Promise.reject(Object.assign(new Error(message), response)); -}; -const deserializeAws_json1_1GetRegistryPolicyCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_json1_1GetRegistryPolicyCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_json1_1GetRegistryPolicyResponse(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return Promise.resolve(response); -}; -exports.deserializeAws_json1_1GetRegistryPolicyCommand = deserializeAws_json1_1GetRegistryPolicyCommand; -const deserializeAws_json1_1GetRegistryPolicyCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context), - }; - let response; - let errorCode = "UnknownError"; - errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InvalidParameterException": - case "com.amazonaws.ecr#InvalidParameterException": - response = { - ...(await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)), - name: errorCode, - $metadata: deserializeMetadata(output), - }; - break; - case "RegistryPolicyNotFoundException": - case "com.amazonaws.ecr#RegistryPolicyNotFoundException": - response = { - ...(await deserializeAws_json1_1RegistryPolicyNotFoundExceptionResponse(parsedOutput, context)), - name: errorCode, - $metadata: deserializeMetadata(output), - }; - break; - case "ServerException": - case "com.amazonaws.ecr#ServerException": - response = { - ...(await deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context)), - name: errorCode, - $metadata: deserializeMetadata(output), - }; - break; - case "ValidationException": - case "com.amazonaws.ecr#ValidationException": - response = { - ...(await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)), - name: errorCode, - $metadata: deserializeMetadata(output), - }; - break; - default: - const parsedBody = parsedOutput.body; - errorCode = parsedBody.code || parsedBody.Code || errorCode; - response = { - ...parsedBody, - name: `${errorCode}`, - message: parsedBody.message || parsedBody.Message || errorCode, - $fault: "client", - $metadata: deserializeMetadata(output), - }; - } - const message = response.message || response.Message || errorCode; - response.message = message; - delete response.Message; - return Promise.reject(Object.assign(new Error(message), response)); -}; -const deserializeAws_json1_1GetRegistryScanningConfigurationCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_json1_1GetRegistryScanningConfigurationCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_json1_1GetRegistryScanningConfigurationResponse(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return Promise.resolve(response); -}; -exports.deserializeAws_json1_1GetRegistryScanningConfigurationCommand = deserializeAws_json1_1GetRegistryScanningConfigurationCommand; -const deserializeAws_json1_1GetRegistryScanningConfigurationCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context), - }; - let response; - let errorCode = "UnknownError"; - errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InvalidParameterException": - case "com.amazonaws.ecr#InvalidParameterException": - response = { - ...(await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)), - name: errorCode, - $metadata: deserializeMetadata(output), - }; - break; - case "ServerException": - case "com.amazonaws.ecr#ServerException": - response = { - ...(await deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context)), - name: errorCode, - $metadata: deserializeMetadata(output), - }; - break; - case "ValidationException": - case "com.amazonaws.ecr#ValidationException": - response = { - ...(await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)), - name: errorCode, - $metadata: deserializeMetadata(output), - }; - break; - default: - const parsedBody = parsedOutput.body; - errorCode = parsedBody.code || parsedBody.Code || errorCode; - response = { - ...parsedBody, - name: `${errorCode}`, - message: parsedBody.message || parsedBody.Message || errorCode, - $fault: "client", - $metadata: deserializeMetadata(output), - }; - } - const message = response.message || response.Message || errorCode; - response.message = message; - delete response.Message; - return Promise.reject(Object.assign(new Error(message), response)); -}; -const deserializeAws_json1_1GetRepositoryPolicyCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_json1_1GetRepositoryPolicyCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_json1_1GetRepositoryPolicyResponse(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return Promise.resolve(response); -}; -exports.deserializeAws_json1_1GetRepositoryPolicyCommand = deserializeAws_json1_1GetRepositoryPolicyCommand; -const deserializeAws_json1_1GetRepositoryPolicyCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context), - }; - let response; - let errorCode = "UnknownError"; - errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InvalidParameterException": - case "com.amazonaws.ecr#InvalidParameterException": - response = { - ...(await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)), - name: errorCode, - $metadata: deserializeMetadata(output), - }; - break; - case "RepositoryNotFoundException": - case "com.amazonaws.ecr#RepositoryNotFoundException": - response = { - ...(await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(parsedOutput, context)), - name: errorCode, - $metadata: deserializeMetadata(output), - }; - break; - case "RepositoryPolicyNotFoundException": - case "com.amazonaws.ecr#RepositoryPolicyNotFoundException": - response = { - ...(await deserializeAws_json1_1RepositoryPolicyNotFoundExceptionResponse(parsedOutput, context)), - name: errorCode, - $metadata: deserializeMetadata(output), - }; - break; - case "ServerException": - case "com.amazonaws.ecr#ServerException": - response = { - ...(await deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context)), - name: errorCode, - $metadata: deserializeMetadata(output), - }; - break; - default: - const parsedBody = parsedOutput.body; - errorCode = parsedBody.code || parsedBody.Code || errorCode; - response = { - ...parsedBody, - name: `${errorCode}`, - message: parsedBody.message || parsedBody.Message || errorCode, - $fault: "client", - $metadata: deserializeMetadata(output), - }; - } - const message = response.message || response.Message || errorCode; - response.message = message; - delete response.Message; - return Promise.reject(Object.assign(new Error(message), response)); -}; -const deserializeAws_json1_1InitiateLayerUploadCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_json1_1InitiateLayerUploadCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_json1_1InitiateLayerUploadResponse(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return Promise.resolve(response); -}; -exports.deserializeAws_json1_1InitiateLayerUploadCommand = deserializeAws_json1_1InitiateLayerUploadCommand; -const deserializeAws_json1_1InitiateLayerUploadCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context), - }; - let response; - let errorCode = "UnknownError"; - errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InvalidParameterException": - case "com.amazonaws.ecr#InvalidParameterException": - response = { - ...(await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)), - name: errorCode, - $metadata: deserializeMetadata(output), - }; - break; - case "KmsException": - case "com.amazonaws.ecr#KmsException": - response = { - ...(await deserializeAws_json1_1KmsExceptionResponse(parsedOutput, context)), - name: errorCode, - $metadata: deserializeMetadata(output), - }; - break; - case "RepositoryNotFoundException": - case "com.amazonaws.ecr#RepositoryNotFoundException": - response = { - ...(await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(parsedOutput, context)), - name: errorCode, - $metadata: deserializeMetadata(output), - }; - break; - case "ServerException": - case "com.amazonaws.ecr#ServerException": - response = { - ...(await deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context)), - name: errorCode, - $metadata: deserializeMetadata(output), - }; - break; - default: - const parsedBody = parsedOutput.body; - errorCode = parsedBody.code || parsedBody.Code || errorCode; - response = { - ...parsedBody, - name: `${errorCode}`, - message: parsedBody.message || parsedBody.Message || errorCode, - $fault: "client", - $metadata: deserializeMetadata(output), - }; - } - const message = response.message || response.Message || errorCode; - response.message = message; - delete response.Message; - return Promise.reject(Object.assign(new Error(message), response)); -}; -const deserializeAws_json1_1ListImagesCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_json1_1ListImagesCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_json1_1ListImagesResponse(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return Promise.resolve(response); -}; -exports.deserializeAws_json1_1ListImagesCommand = deserializeAws_json1_1ListImagesCommand; -const deserializeAws_json1_1ListImagesCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context), - }; - let response; - let errorCode = "UnknownError"; - errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InvalidParameterException": - case "com.amazonaws.ecr#InvalidParameterException": - response = { - ...(await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)), - name: errorCode, - $metadata: deserializeMetadata(output), - }; - break; - case "RepositoryNotFoundException": - case "com.amazonaws.ecr#RepositoryNotFoundException": - response = { - ...(await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(parsedOutput, context)), - name: errorCode, - $metadata: deserializeMetadata(output), - }; - break; - case "ServerException": - case "com.amazonaws.ecr#ServerException": - response = { - ...(await deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context)), - name: errorCode, - $metadata: deserializeMetadata(output), - }; - break; - default: - const parsedBody = parsedOutput.body; - errorCode = parsedBody.code || parsedBody.Code || errorCode; - response = { - ...parsedBody, - name: `${errorCode}`, - message: parsedBody.message || parsedBody.Message || errorCode, - $fault: "client", - $metadata: deserializeMetadata(output), - }; - } - const message = response.message || response.Message || errorCode; - response.message = message; - delete response.Message; - return Promise.reject(Object.assign(new Error(message), response)); -}; -const deserializeAws_json1_1ListTagsForResourceCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_json1_1ListTagsForResourceCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_json1_1ListTagsForResourceResponse(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return Promise.resolve(response); -}; -exports.deserializeAws_json1_1ListTagsForResourceCommand = deserializeAws_json1_1ListTagsForResourceCommand; -const deserializeAws_json1_1ListTagsForResourceCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context), - }; - let response; - let errorCode = "UnknownError"; - errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InvalidParameterException": - case "com.amazonaws.ecr#InvalidParameterException": - response = { - ...(await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)), - name: errorCode, - $metadata: deserializeMetadata(output), - }; - break; - case "RepositoryNotFoundException": - case "com.amazonaws.ecr#RepositoryNotFoundException": - response = { - ...(await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(parsedOutput, context)), - name: errorCode, - $metadata: deserializeMetadata(output), - }; - break; - case "ServerException": - case "com.amazonaws.ecr#ServerException": - response = { - ...(await deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context)), - name: errorCode, - $metadata: deserializeMetadata(output), - }; - break; - default: - const parsedBody = parsedOutput.body; - errorCode = parsedBody.code || parsedBody.Code || errorCode; - response = { - ...parsedBody, - name: `${errorCode}`, - message: parsedBody.message || parsedBody.Message || errorCode, - $fault: "client", - $metadata: deserializeMetadata(output), - }; - } - const message = response.message || response.Message || errorCode; - response.message = message; - delete response.Message; - return Promise.reject(Object.assign(new Error(message), response)); -}; -const deserializeAws_json1_1PutImageCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_json1_1PutImageCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_json1_1PutImageResponse(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return Promise.resolve(response); -}; -exports.deserializeAws_json1_1PutImageCommand = deserializeAws_json1_1PutImageCommand; -const deserializeAws_json1_1PutImageCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context), - }; - let response; - let errorCode = "UnknownError"; - errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "ImageAlreadyExistsException": - case "com.amazonaws.ecr#ImageAlreadyExistsException": - response = { - ...(await deserializeAws_json1_1ImageAlreadyExistsExceptionResponse(parsedOutput, context)), - name: errorCode, - $metadata: deserializeMetadata(output), - }; - break; - case "ImageDigestDoesNotMatchException": - case "com.amazonaws.ecr#ImageDigestDoesNotMatchException": - response = { - ...(await deserializeAws_json1_1ImageDigestDoesNotMatchExceptionResponse(parsedOutput, context)), - name: errorCode, - $metadata: deserializeMetadata(output), - }; - break; - case "ImageTagAlreadyExistsException": - case "com.amazonaws.ecr#ImageTagAlreadyExistsException": - response = { - ...(await deserializeAws_json1_1ImageTagAlreadyExistsExceptionResponse(parsedOutput, context)), - name: errorCode, - $metadata: deserializeMetadata(output), - }; - break; - case "InvalidParameterException": - case "com.amazonaws.ecr#InvalidParameterException": - response = { - ...(await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)), - name: errorCode, - $metadata: deserializeMetadata(output), - }; - break; - case "KmsException": - case "com.amazonaws.ecr#KmsException": - response = { - ...(await deserializeAws_json1_1KmsExceptionResponse(parsedOutput, context)), - name: errorCode, - $metadata: deserializeMetadata(output), - }; - break; - case "LayersNotFoundException": - case "com.amazonaws.ecr#LayersNotFoundException": - response = { - ...(await deserializeAws_json1_1LayersNotFoundExceptionResponse(parsedOutput, context)), - name: errorCode, - $metadata: deserializeMetadata(output), - }; - break; - case "LimitExceededException": - case "com.amazonaws.ecr#LimitExceededException": - response = { - ...(await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)), - name: errorCode, - $metadata: deserializeMetadata(output), - }; - break; - case "ReferencedImagesNotFoundException": - case "com.amazonaws.ecr#ReferencedImagesNotFoundException": - response = { - ...(await deserializeAws_json1_1ReferencedImagesNotFoundExceptionResponse(parsedOutput, context)), - name: errorCode, - $metadata: deserializeMetadata(output), - }; - break; - case "RepositoryNotFoundException": - case "com.amazonaws.ecr#RepositoryNotFoundException": - response = { - ...(await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(parsedOutput, context)), - name: errorCode, - $metadata: deserializeMetadata(output), - }; - break; - case "ServerException": - case "com.amazonaws.ecr#ServerException": - response = { - ...(await deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context)), - name: errorCode, - $metadata: deserializeMetadata(output), - }; - break; - default: - const parsedBody = parsedOutput.body; - errorCode = parsedBody.code || parsedBody.Code || errorCode; - response = { - ...parsedBody, - name: `${errorCode}`, - message: parsedBody.message || parsedBody.Message || errorCode, - $fault: "client", - $metadata: deserializeMetadata(output), - }; - } - const message = response.message || response.Message || errorCode; - response.message = message; - delete response.Message; - return Promise.reject(Object.assign(new Error(message), response)); -}; -const deserializeAws_json1_1PutImageScanningConfigurationCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_json1_1PutImageScanningConfigurationCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_json1_1PutImageScanningConfigurationResponse(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return Promise.resolve(response); -}; -exports.deserializeAws_json1_1PutImageScanningConfigurationCommand = deserializeAws_json1_1PutImageScanningConfigurationCommand; -const deserializeAws_json1_1PutImageScanningConfigurationCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context), - }; - let response; - let errorCode = "UnknownError"; - errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InvalidParameterException": - case "com.amazonaws.ecr#InvalidParameterException": - response = { - ...(await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)), - name: errorCode, - $metadata: deserializeMetadata(output), - }; - break; - case "RepositoryNotFoundException": - case "com.amazonaws.ecr#RepositoryNotFoundException": - response = { - ...(await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(parsedOutput, context)), - name: errorCode, - $metadata: deserializeMetadata(output), - }; - break; - case "ServerException": - case "com.amazonaws.ecr#ServerException": - response = { - ...(await deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context)), - name: errorCode, - $metadata: deserializeMetadata(output), - }; - break; - case "ValidationException": - case "com.amazonaws.ecr#ValidationException": - response = { - ...(await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)), - name: errorCode, - $metadata: deserializeMetadata(output), - }; - break; - default: - const parsedBody = parsedOutput.body; - errorCode = parsedBody.code || parsedBody.Code || errorCode; - response = { - ...parsedBody, - name: `${errorCode}`, - message: parsedBody.message || parsedBody.Message || errorCode, - $fault: "client", - $metadata: deserializeMetadata(output), - }; - } - const message = response.message || response.Message || errorCode; - response.message = message; - delete response.Message; - return Promise.reject(Object.assign(new Error(message), response)); -}; -const deserializeAws_json1_1PutImageTagMutabilityCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_json1_1PutImageTagMutabilityCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_json1_1PutImageTagMutabilityResponse(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return Promise.resolve(response); -}; -exports.deserializeAws_json1_1PutImageTagMutabilityCommand = deserializeAws_json1_1PutImageTagMutabilityCommand; -const deserializeAws_json1_1PutImageTagMutabilityCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context), - }; - let response; - let errorCode = "UnknownError"; - errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InvalidParameterException": - case "com.amazonaws.ecr#InvalidParameterException": - response = { - ...(await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)), - name: errorCode, - $metadata: deserializeMetadata(output), - }; - break; - case "RepositoryNotFoundException": - case "com.amazonaws.ecr#RepositoryNotFoundException": - response = { - ...(await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(parsedOutput, context)), - name: errorCode, - $metadata: deserializeMetadata(output), - }; - break; - case "ServerException": - case "com.amazonaws.ecr#ServerException": - response = { - ...(await deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context)), - name: errorCode, - $metadata: deserializeMetadata(output), - }; - break; - default: - const parsedBody = parsedOutput.body; - errorCode = parsedBody.code || parsedBody.Code || errorCode; - response = { - ...parsedBody, - name: `${errorCode}`, - message: parsedBody.message || parsedBody.Message || errorCode, - $fault: "client", - $metadata: deserializeMetadata(output), - }; - } - const message = response.message || response.Message || errorCode; - response.message = message; - delete response.Message; - return Promise.reject(Object.assign(new Error(message), response)); -}; -const deserializeAws_json1_1PutLifecyclePolicyCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_json1_1PutLifecyclePolicyCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_json1_1PutLifecyclePolicyResponse(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return Promise.resolve(response); -}; -exports.deserializeAws_json1_1PutLifecyclePolicyCommand = deserializeAws_json1_1PutLifecyclePolicyCommand; -const deserializeAws_json1_1PutLifecyclePolicyCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context), - }; - let response; - let errorCode = "UnknownError"; - errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InvalidParameterException": - case "com.amazonaws.ecr#InvalidParameterException": - response = { - ...(await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)), - name: errorCode, - $metadata: deserializeMetadata(output), - }; - break; - case "RepositoryNotFoundException": - case "com.amazonaws.ecr#RepositoryNotFoundException": - response = { - ...(await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(parsedOutput, context)), - name: errorCode, - $metadata: deserializeMetadata(output), - }; - break; - case "ServerException": - case "com.amazonaws.ecr#ServerException": - response = { - ...(await deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context)), - name: errorCode, - $metadata: deserializeMetadata(output), - }; - break; - default: - const parsedBody = parsedOutput.body; - errorCode = parsedBody.code || parsedBody.Code || errorCode; - response = { - ...parsedBody, - name: `${errorCode}`, - message: parsedBody.message || parsedBody.Message || errorCode, - $fault: "client", - $metadata: deserializeMetadata(output), - }; - } - const message = response.message || response.Message || errorCode; - response.message = message; - delete response.Message; - return Promise.reject(Object.assign(new Error(message), response)); -}; -const deserializeAws_json1_1PutRegistryPolicyCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_json1_1PutRegistryPolicyCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_json1_1PutRegistryPolicyResponse(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return Promise.resolve(response); -}; -exports.deserializeAws_json1_1PutRegistryPolicyCommand = deserializeAws_json1_1PutRegistryPolicyCommand; -const deserializeAws_json1_1PutRegistryPolicyCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context), - }; - let response; - let errorCode = "UnknownError"; - errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InvalidParameterException": - case "com.amazonaws.ecr#InvalidParameterException": - response = { - ...(await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)), - name: errorCode, - $metadata: deserializeMetadata(output), - }; - break; - case "ServerException": - case "com.amazonaws.ecr#ServerException": - response = { - ...(await deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context)), - name: errorCode, - $metadata: deserializeMetadata(output), - }; - break; - case "ValidationException": - case "com.amazonaws.ecr#ValidationException": - response = { - ...(await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)), - name: errorCode, - $metadata: deserializeMetadata(output), - }; - break; - default: - const parsedBody = parsedOutput.body; - errorCode = parsedBody.code || parsedBody.Code || errorCode; - response = { - ...parsedBody, - name: `${errorCode}`, - message: parsedBody.message || parsedBody.Message || errorCode, - $fault: "client", - $metadata: deserializeMetadata(output), - }; - } - const message = response.message || response.Message || errorCode; - response.message = message; - delete response.Message; - return Promise.reject(Object.assign(new Error(message), response)); -}; -const deserializeAws_json1_1PutRegistryScanningConfigurationCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_json1_1PutRegistryScanningConfigurationCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_json1_1PutRegistryScanningConfigurationResponse(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return Promise.resolve(response); -}; -exports.deserializeAws_json1_1PutRegistryScanningConfigurationCommand = deserializeAws_json1_1PutRegistryScanningConfigurationCommand; -const deserializeAws_json1_1PutRegistryScanningConfigurationCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context), - }; - let response; - let errorCode = "UnknownError"; - errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InvalidParameterException": - case "com.amazonaws.ecr#InvalidParameterException": - response = { - ...(await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)), - name: errorCode, - $metadata: deserializeMetadata(output), - }; - break; - case "ServerException": - case "com.amazonaws.ecr#ServerException": - response = { - ...(await deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context)), - name: errorCode, - $metadata: deserializeMetadata(output), - }; - break; - case "ValidationException": - case "com.amazonaws.ecr#ValidationException": - response = { - ...(await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)), - name: errorCode, - $metadata: deserializeMetadata(output), - }; - break; - default: - const parsedBody = parsedOutput.body; - errorCode = parsedBody.code || parsedBody.Code || errorCode; - response = { - ...parsedBody, - name: `${errorCode}`, - message: parsedBody.message || parsedBody.Message || errorCode, - $fault: "client", - $metadata: deserializeMetadata(output), - }; - } - const message = response.message || response.Message || errorCode; - response.message = message; - delete response.Message; - return Promise.reject(Object.assign(new Error(message), response)); -}; -const deserializeAws_json1_1PutReplicationConfigurationCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_json1_1PutReplicationConfigurationCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_json1_1PutReplicationConfigurationResponse(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return Promise.resolve(response); -}; -exports.deserializeAws_json1_1PutReplicationConfigurationCommand = deserializeAws_json1_1PutReplicationConfigurationCommand; -const deserializeAws_json1_1PutReplicationConfigurationCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context), - }; - let response; - let errorCode = "UnknownError"; - errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InvalidParameterException": - case "com.amazonaws.ecr#InvalidParameterException": - response = { - ...(await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)), - name: errorCode, - $metadata: deserializeMetadata(output), - }; - break; - case "ServerException": - case "com.amazonaws.ecr#ServerException": - response = { - ...(await deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context)), - name: errorCode, - $metadata: deserializeMetadata(output), - }; - break; - case "ValidationException": - case "com.amazonaws.ecr#ValidationException": - response = { - ...(await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)), - name: errorCode, - $metadata: deserializeMetadata(output), - }; - break; - default: - const parsedBody = parsedOutput.body; - errorCode = parsedBody.code || parsedBody.Code || errorCode; - response = { - ...parsedBody, - name: `${errorCode}`, - message: parsedBody.message || parsedBody.Message || errorCode, - $fault: "client", - $metadata: deserializeMetadata(output), - }; - } - const message = response.message || response.Message || errorCode; - response.message = message; - delete response.Message; - return Promise.reject(Object.assign(new Error(message), response)); -}; -const deserializeAws_json1_1SetRepositoryPolicyCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_json1_1SetRepositoryPolicyCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_json1_1SetRepositoryPolicyResponse(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return Promise.resolve(response); -}; -exports.deserializeAws_json1_1SetRepositoryPolicyCommand = deserializeAws_json1_1SetRepositoryPolicyCommand; -const deserializeAws_json1_1SetRepositoryPolicyCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context), - }; - let response; - let errorCode = "UnknownError"; - errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InvalidParameterException": - case "com.amazonaws.ecr#InvalidParameterException": - response = { - ...(await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)), - name: errorCode, - $metadata: deserializeMetadata(output), - }; - break; - case "RepositoryNotFoundException": - case "com.amazonaws.ecr#RepositoryNotFoundException": - response = { - ...(await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(parsedOutput, context)), - name: errorCode, - $metadata: deserializeMetadata(output), - }; - break; - case "ServerException": - case "com.amazonaws.ecr#ServerException": - response = { - ...(await deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context)), - name: errorCode, - $metadata: deserializeMetadata(output), - }; - break; - default: - const parsedBody = parsedOutput.body; - errorCode = parsedBody.code || parsedBody.Code || errorCode; - response = { - ...parsedBody, - name: `${errorCode}`, - message: parsedBody.message || parsedBody.Message || errorCode, - $fault: "client", - $metadata: deserializeMetadata(output), - }; - } - const message = response.message || response.Message || errorCode; - response.message = message; - delete response.Message; - return Promise.reject(Object.assign(new Error(message), response)); -}; -const deserializeAws_json1_1StartImageScanCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_json1_1StartImageScanCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_json1_1StartImageScanResponse(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return Promise.resolve(response); -}; -exports.deserializeAws_json1_1StartImageScanCommand = deserializeAws_json1_1StartImageScanCommand; -const deserializeAws_json1_1StartImageScanCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context), - }; - let response; - let errorCode = "UnknownError"; - errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "ImageNotFoundException": - case "com.amazonaws.ecr#ImageNotFoundException": - response = { - ...(await deserializeAws_json1_1ImageNotFoundExceptionResponse(parsedOutput, context)), - name: errorCode, - $metadata: deserializeMetadata(output), - }; - break; - case "InvalidParameterException": - case "com.amazonaws.ecr#InvalidParameterException": - response = { - ...(await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)), - name: errorCode, - $metadata: deserializeMetadata(output), - }; - break; - case "LimitExceededException": - case "com.amazonaws.ecr#LimitExceededException": - response = { - ...(await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)), - name: errorCode, - $metadata: deserializeMetadata(output), - }; - break; - case "RepositoryNotFoundException": - case "com.amazonaws.ecr#RepositoryNotFoundException": - response = { - ...(await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(parsedOutput, context)), - name: errorCode, - $metadata: deserializeMetadata(output), - }; - break; - case "ServerException": - case "com.amazonaws.ecr#ServerException": - response = { - ...(await deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context)), - name: errorCode, - $metadata: deserializeMetadata(output), - }; - break; - case "UnsupportedImageTypeException": - case "com.amazonaws.ecr#UnsupportedImageTypeException": - response = { - ...(await deserializeAws_json1_1UnsupportedImageTypeExceptionResponse(parsedOutput, context)), - name: errorCode, - $metadata: deserializeMetadata(output), - }; - break; - case "ValidationException": - case "com.amazonaws.ecr#ValidationException": - response = { - ...(await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)), - name: errorCode, - $metadata: deserializeMetadata(output), - }; - break; - default: - const parsedBody = parsedOutput.body; - errorCode = parsedBody.code || parsedBody.Code || errorCode; - response = { - ...parsedBody, - name: `${errorCode}`, - message: parsedBody.message || parsedBody.Message || errorCode, - $fault: "client", - $metadata: deserializeMetadata(output), - }; - } - const message = response.message || response.Message || errorCode; - response.message = message; - delete response.Message; - return Promise.reject(Object.assign(new Error(message), response)); -}; -const deserializeAws_json1_1StartLifecyclePolicyPreviewCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_json1_1StartLifecyclePolicyPreviewCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_json1_1StartLifecyclePolicyPreviewResponse(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return Promise.resolve(response); -}; -exports.deserializeAws_json1_1StartLifecyclePolicyPreviewCommand = deserializeAws_json1_1StartLifecyclePolicyPreviewCommand; -const deserializeAws_json1_1StartLifecyclePolicyPreviewCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context), - }; - let response; - let errorCode = "UnknownError"; - errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InvalidParameterException": - case "com.amazonaws.ecr#InvalidParameterException": - response = { - ...(await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)), - name: errorCode, - $metadata: deserializeMetadata(output), - }; - break; - case "LifecyclePolicyNotFoundException": - case "com.amazonaws.ecr#LifecyclePolicyNotFoundException": - response = { - ...(await deserializeAws_json1_1LifecyclePolicyNotFoundExceptionResponse(parsedOutput, context)), - name: errorCode, - $metadata: deserializeMetadata(output), - }; - break; - case "LifecyclePolicyPreviewInProgressException": - case "com.amazonaws.ecr#LifecyclePolicyPreviewInProgressException": - response = { - ...(await deserializeAws_json1_1LifecyclePolicyPreviewInProgressExceptionResponse(parsedOutput, context)), - name: errorCode, - $metadata: deserializeMetadata(output), - }; - break; - case "RepositoryNotFoundException": - case "com.amazonaws.ecr#RepositoryNotFoundException": - response = { - ...(await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(parsedOutput, context)), - name: errorCode, - $metadata: deserializeMetadata(output), - }; - break; - case "ServerException": - case "com.amazonaws.ecr#ServerException": - response = { - ...(await deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context)), - name: errorCode, - $metadata: deserializeMetadata(output), - }; - break; - default: - const parsedBody = parsedOutput.body; - errorCode = parsedBody.code || parsedBody.Code || errorCode; - response = { - ...parsedBody, - name: `${errorCode}`, - message: parsedBody.message || parsedBody.Message || errorCode, - $fault: "client", - $metadata: deserializeMetadata(output), - }; - } - const message = response.message || response.Message || errorCode; - response.message = message; - delete response.Message; - return Promise.reject(Object.assign(new Error(message), response)); -}; -const deserializeAws_json1_1TagResourceCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_json1_1TagResourceCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_json1_1TagResourceResponse(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return Promise.resolve(response); -}; -exports.deserializeAws_json1_1TagResourceCommand = deserializeAws_json1_1TagResourceCommand; -const deserializeAws_json1_1TagResourceCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context), - }; - let response; - let errorCode = "UnknownError"; - errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InvalidParameterException": - case "com.amazonaws.ecr#InvalidParameterException": - response = { - ...(await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)), - name: errorCode, - $metadata: deserializeMetadata(output), - }; - break; - case "InvalidTagParameterException": - case "com.amazonaws.ecr#InvalidTagParameterException": - response = { - ...(await deserializeAws_json1_1InvalidTagParameterExceptionResponse(parsedOutput, context)), - name: errorCode, - $metadata: deserializeMetadata(output), - }; - break; - case "RepositoryNotFoundException": - case "com.amazonaws.ecr#RepositoryNotFoundException": - response = { - ...(await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(parsedOutput, context)), - name: errorCode, - $metadata: deserializeMetadata(output), - }; - break; - case "ServerException": - case "com.amazonaws.ecr#ServerException": - response = { - ...(await deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context)), - name: errorCode, - $metadata: deserializeMetadata(output), - }; - break; - case "TooManyTagsException": - case "com.amazonaws.ecr#TooManyTagsException": - response = { - ...(await deserializeAws_json1_1TooManyTagsExceptionResponse(parsedOutput, context)), - name: errorCode, - $metadata: deserializeMetadata(output), - }; - break; - default: - const parsedBody = parsedOutput.body; - errorCode = parsedBody.code || parsedBody.Code || errorCode; - response = { - ...parsedBody, - name: `${errorCode}`, - message: parsedBody.message || parsedBody.Message || errorCode, - $fault: "client", - $metadata: deserializeMetadata(output), - }; - } - const message = response.message || response.Message || errorCode; - response.message = message; - delete response.Message; - return Promise.reject(Object.assign(new Error(message), response)); -}; -const deserializeAws_json1_1UntagResourceCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_json1_1UntagResourceCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_json1_1UntagResourceResponse(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return Promise.resolve(response); -}; -exports.deserializeAws_json1_1UntagResourceCommand = deserializeAws_json1_1UntagResourceCommand; -const deserializeAws_json1_1UntagResourceCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context), - }; - let response; - let errorCode = "UnknownError"; - errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InvalidParameterException": - case "com.amazonaws.ecr#InvalidParameterException": - response = { - ...(await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)), - name: errorCode, - $metadata: deserializeMetadata(output), - }; - break; - case "InvalidTagParameterException": - case "com.amazonaws.ecr#InvalidTagParameterException": - response = { - ...(await deserializeAws_json1_1InvalidTagParameterExceptionResponse(parsedOutput, context)), - name: errorCode, - $metadata: deserializeMetadata(output), - }; - break; - case "RepositoryNotFoundException": - case "com.amazonaws.ecr#RepositoryNotFoundException": - response = { - ...(await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(parsedOutput, context)), - name: errorCode, - $metadata: deserializeMetadata(output), - }; - break; - case "ServerException": - case "com.amazonaws.ecr#ServerException": - response = { - ...(await deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context)), - name: errorCode, - $metadata: deserializeMetadata(output), - }; - break; - case "TooManyTagsException": - case "com.amazonaws.ecr#TooManyTagsException": - response = { - ...(await deserializeAws_json1_1TooManyTagsExceptionResponse(parsedOutput, context)), - name: errorCode, - $metadata: deserializeMetadata(output), - }; - break; - default: - const parsedBody = parsedOutput.body; - errorCode = parsedBody.code || parsedBody.Code || errorCode; - response = { - ...parsedBody, - name: `${errorCode}`, - message: parsedBody.message || parsedBody.Message || errorCode, - $fault: "client", - $metadata: deserializeMetadata(output), - }; - } - const message = response.message || response.Message || errorCode; - response.message = message; - delete response.Message; - return Promise.reject(Object.assign(new Error(message), response)); -}; -const deserializeAws_json1_1UploadLayerPartCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_json1_1UploadLayerPartCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_json1_1UploadLayerPartResponse(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return Promise.resolve(response); -}; -exports.deserializeAws_json1_1UploadLayerPartCommand = deserializeAws_json1_1UploadLayerPartCommand; -const deserializeAws_json1_1UploadLayerPartCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context), - }; - let response; - let errorCode = "UnknownError"; - errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InvalidLayerPartException": - case "com.amazonaws.ecr#InvalidLayerPartException": - response = { - ...(await deserializeAws_json1_1InvalidLayerPartExceptionResponse(parsedOutput, context)), - name: errorCode, - $metadata: deserializeMetadata(output), - }; - break; - case "InvalidParameterException": - case "com.amazonaws.ecr#InvalidParameterException": - response = { - ...(await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)), - name: errorCode, - $metadata: deserializeMetadata(output), - }; - break; - case "KmsException": - case "com.amazonaws.ecr#KmsException": - response = { - ...(await deserializeAws_json1_1KmsExceptionResponse(parsedOutput, context)), - name: errorCode, - $metadata: deserializeMetadata(output), - }; - break; - case "LimitExceededException": - case "com.amazonaws.ecr#LimitExceededException": - response = { - ...(await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)), - name: errorCode, - $metadata: deserializeMetadata(output), - }; - break; - case "RepositoryNotFoundException": - case "com.amazonaws.ecr#RepositoryNotFoundException": - response = { - ...(await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(parsedOutput, context)), - name: errorCode, - $metadata: deserializeMetadata(output), - }; - break; - case "ServerException": - case "com.amazonaws.ecr#ServerException": - response = { - ...(await deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context)), - name: errorCode, - $metadata: deserializeMetadata(output), - }; - break; - case "UploadNotFoundException": - case "com.amazonaws.ecr#UploadNotFoundException": - response = { - ...(await deserializeAws_json1_1UploadNotFoundExceptionResponse(parsedOutput, context)), - name: errorCode, - $metadata: deserializeMetadata(output), - }; - break; - default: - const parsedBody = parsedOutput.body; - errorCode = parsedBody.code || parsedBody.Code || errorCode; - response = { - ...parsedBody, - name: `${errorCode}`, - message: parsedBody.message || parsedBody.Message || errorCode, - $fault: "client", - $metadata: deserializeMetadata(output), - }; - } - const message = response.message || response.Message || errorCode; - response.message = message; - delete response.Message; - return Promise.reject(Object.assign(new Error(message), response)); -}; -const deserializeAws_json1_1EmptyUploadExceptionResponse = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = deserializeAws_json1_1EmptyUploadException(body, context); - const contents = { - name: "EmptyUploadException", - $fault: "client", - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }; - return contents; -}; -const deserializeAws_json1_1ImageAlreadyExistsExceptionResponse = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = deserializeAws_json1_1ImageAlreadyExistsException(body, context); - const contents = { - name: "ImageAlreadyExistsException", - $fault: "client", - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }; - return contents; -}; -const deserializeAws_json1_1ImageDigestDoesNotMatchExceptionResponse = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = deserializeAws_json1_1ImageDigestDoesNotMatchException(body, context); - const contents = { - name: "ImageDigestDoesNotMatchException", - $fault: "client", - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }; - return contents; -}; -const deserializeAws_json1_1ImageNotFoundExceptionResponse = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = deserializeAws_json1_1ImageNotFoundException(body, context); - const contents = { - name: "ImageNotFoundException", - $fault: "client", - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }; - return contents; -}; -const deserializeAws_json1_1ImageTagAlreadyExistsExceptionResponse = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = deserializeAws_json1_1ImageTagAlreadyExistsException(body, context); - const contents = { - name: "ImageTagAlreadyExistsException", - $fault: "client", - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }; - return contents; -}; -const deserializeAws_json1_1InvalidLayerExceptionResponse = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = deserializeAws_json1_1InvalidLayerException(body, context); - const contents = { - name: "InvalidLayerException", - $fault: "client", - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }; - return contents; -}; -const deserializeAws_json1_1InvalidLayerPartExceptionResponse = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = deserializeAws_json1_1InvalidLayerPartException(body, context); - const contents = { - name: "InvalidLayerPartException", - $fault: "client", - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }; - return contents; -}; -const deserializeAws_json1_1InvalidParameterExceptionResponse = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = deserializeAws_json1_1InvalidParameterException(body, context); - const contents = { - name: "InvalidParameterException", - $fault: "client", - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }; - return contents; -}; -const deserializeAws_json1_1InvalidTagParameterExceptionResponse = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = deserializeAws_json1_1InvalidTagParameterException(body, context); - const contents = { - name: "InvalidTagParameterException", - $fault: "client", - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }; - return contents; -}; -const deserializeAws_json1_1KmsExceptionResponse = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = deserializeAws_json1_1KmsException(body, context); - const contents = { - name: "KmsException", - $fault: "client", - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }; - return contents; -}; -const deserializeAws_json1_1LayerAlreadyExistsExceptionResponse = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = deserializeAws_json1_1LayerAlreadyExistsException(body, context); - const contents = { - name: "LayerAlreadyExistsException", - $fault: "client", - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }; - return contents; -}; -const deserializeAws_json1_1LayerInaccessibleExceptionResponse = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = deserializeAws_json1_1LayerInaccessibleException(body, context); - const contents = { - name: "LayerInaccessibleException", - $fault: "client", - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }; - return contents; -}; -const deserializeAws_json1_1LayerPartTooSmallExceptionResponse = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = deserializeAws_json1_1LayerPartTooSmallException(body, context); - const contents = { - name: "LayerPartTooSmallException", - $fault: "client", - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }; - return contents; -}; -const deserializeAws_json1_1LayersNotFoundExceptionResponse = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = deserializeAws_json1_1LayersNotFoundException(body, context); - const contents = { - name: "LayersNotFoundException", - $fault: "client", - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }; - return contents; -}; -const deserializeAws_json1_1LifecyclePolicyNotFoundExceptionResponse = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = deserializeAws_json1_1LifecyclePolicyNotFoundException(body, context); - const contents = { - name: "LifecyclePolicyNotFoundException", - $fault: "client", - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }; - return contents; -}; -const deserializeAws_json1_1LifecyclePolicyPreviewInProgressExceptionResponse = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = deserializeAws_json1_1LifecyclePolicyPreviewInProgressException(body, context); - const contents = { - name: "LifecyclePolicyPreviewInProgressException", - $fault: "client", - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }; - return contents; -}; -const deserializeAws_json1_1LifecyclePolicyPreviewNotFoundExceptionResponse = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = deserializeAws_json1_1LifecyclePolicyPreviewNotFoundException(body, context); - const contents = { - name: "LifecyclePolicyPreviewNotFoundException", - $fault: "client", - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }; - return contents; -}; -const deserializeAws_json1_1LimitExceededExceptionResponse = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = deserializeAws_json1_1LimitExceededException(body, context); - const contents = { - name: "LimitExceededException", - $fault: "client", - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }; - return contents; -}; -const deserializeAws_json1_1PullThroughCacheRuleAlreadyExistsExceptionResponse = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = deserializeAws_json1_1PullThroughCacheRuleAlreadyExistsException(body, context); - const contents = { - name: "PullThroughCacheRuleAlreadyExistsException", - $fault: "client", - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }; - return contents; -}; -const deserializeAws_json1_1PullThroughCacheRuleNotFoundExceptionResponse = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = deserializeAws_json1_1PullThroughCacheRuleNotFoundException(body, context); - const contents = { - name: "PullThroughCacheRuleNotFoundException", - $fault: "client", - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }; - return contents; -}; -const deserializeAws_json1_1ReferencedImagesNotFoundExceptionResponse = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = deserializeAws_json1_1ReferencedImagesNotFoundException(body, context); - const contents = { - name: "ReferencedImagesNotFoundException", - $fault: "client", - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }; - return contents; -}; -const deserializeAws_json1_1RegistryPolicyNotFoundExceptionResponse = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = deserializeAws_json1_1RegistryPolicyNotFoundException(body, context); - const contents = { - name: "RegistryPolicyNotFoundException", - $fault: "client", - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }; - return contents; -}; -const deserializeAws_json1_1RepositoryAlreadyExistsExceptionResponse = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = deserializeAws_json1_1RepositoryAlreadyExistsException(body, context); - const contents = { - name: "RepositoryAlreadyExistsException", - $fault: "client", - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }; - return contents; -}; -const deserializeAws_json1_1RepositoryNotEmptyExceptionResponse = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = deserializeAws_json1_1RepositoryNotEmptyException(body, context); - const contents = { - name: "RepositoryNotEmptyException", - $fault: "client", - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }; - return contents; -}; -const deserializeAws_json1_1RepositoryNotFoundExceptionResponse = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = deserializeAws_json1_1RepositoryNotFoundException(body, context); - const contents = { - name: "RepositoryNotFoundException", - $fault: "client", - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }; - return contents; -}; -const deserializeAws_json1_1RepositoryPolicyNotFoundExceptionResponse = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = deserializeAws_json1_1RepositoryPolicyNotFoundException(body, context); - const contents = { - name: "RepositoryPolicyNotFoundException", - $fault: "client", - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }; - return contents; -}; -const deserializeAws_json1_1ScanNotFoundExceptionResponse = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = deserializeAws_json1_1ScanNotFoundException(body, context); - const contents = { - name: "ScanNotFoundException", - $fault: "client", - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }; - return contents; -}; -const deserializeAws_json1_1ServerExceptionResponse = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = deserializeAws_json1_1ServerException(body, context); - const contents = { - name: "ServerException", - $fault: "server", - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }; - return contents; -}; -const deserializeAws_json1_1TooManyTagsExceptionResponse = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = deserializeAws_json1_1TooManyTagsException(body, context); - const contents = { - name: "TooManyTagsException", - $fault: "client", - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }; - return contents; -}; -const deserializeAws_json1_1UnsupportedImageTypeExceptionResponse = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = deserializeAws_json1_1UnsupportedImageTypeException(body, context); - const contents = { - name: "UnsupportedImageTypeException", - $fault: "client", - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }; - return contents; -}; -const deserializeAws_json1_1UnsupportedUpstreamRegistryExceptionResponse = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = deserializeAws_json1_1UnsupportedUpstreamRegistryException(body, context); - const contents = { - name: "UnsupportedUpstreamRegistryException", - $fault: "client", - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }; - return contents; -}; -const deserializeAws_json1_1UploadNotFoundExceptionResponse = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = deserializeAws_json1_1UploadNotFoundException(body, context); - const contents = { - name: "UploadNotFoundException", - $fault: "client", - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }; - return contents; -}; -const deserializeAws_json1_1ValidationExceptionResponse = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = deserializeAws_json1_1ValidationException(body, context); - const contents = { - name: "ValidationException", - $fault: "client", - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }; - return contents; -}; -const serializeAws_json1_1BatchCheckLayerAvailabilityRequest = (input, context) => { - return { - ...(input.layerDigests !== undefined && - input.layerDigests !== null && { - layerDigests: serializeAws_json1_1BatchedOperationLayerDigestList(input.layerDigests, context), - }), - ...(input.registryId !== undefined && input.registryId !== null && { registryId: input.registryId }), - ...(input.repositoryName !== undefined && - input.repositoryName !== null && { repositoryName: input.repositoryName }), - }; -}; -const serializeAws_json1_1BatchDeleteImageRequest = (input, context) => { - return { - ...(input.imageIds !== undefined && - input.imageIds !== null && { imageIds: serializeAws_json1_1ImageIdentifierList(input.imageIds, context) }), - ...(input.registryId !== undefined && input.registryId !== null && { registryId: input.registryId }), - ...(input.repositoryName !== undefined && - input.repositoryName !== null && { repositoryName: input.repositoryName }), - }; -}; -const serializeAws_json1_1BatchedOperationLayerDigestList = (input, context) => { - return input - .filter((e) => e != null) - .map((entry) => { - if (entry === null) { - return null; - } - return entry; - }); -}; -const serializeAws_json1_1BatchGetImageRequest = (input, context) => { - return { - ...(input.acceptedMediaTypes !== undefined && - input.acceptedMediaTypes !== null && { - acceptedMediaTypes: serializeAws_json1_1MediaTypeList(input.acceptedMediaTypes, context), - }), - ...(input.imageIds !== undefined && - input.imageIds !== null && { imageIds: serializeAws_json1_1ImageIdentifierList(input.imageIds, context) }), - ...(input.registryId !== undefined && input.registryId !== null && { registryId: input.registryId }), - ...(input.repositoryName !== undefined && - input.repositoryName !== null && { repositoryName: input.repositoryName }), - }; -}; -const serializeAws_json1_1BatchGetRepositoryScanningConfigurationRequest = (input, context) => { - return { - ...(input.repositoryNames !== undefined && - input.repositoryNames !== null && { - repositoryNames: serializeAws_json1_1ScanningConfigurationRepositoryNameList(input.repositoryNames, context), - }), - }; -}; -const serializeAws_json1_1CompleteLayerUploadRequest = (input, context) => { - return { - ...(input.layerDigests !== undefined && - input.layerDigests !== null && { - layerDigests: serializeAws_json1_1LayerDigestList(input.layerDigests, context), - }), - ...(input.registryId !== undefined && input.registryId !== null && { registryId: input.registryId }), - ...(input.repositoryName !== undefined && - input.repositoryName !== null && { repositoryName: input.repositoryName }), - ...(input.uploadId !== undefined && input.uploadId !== null && { uploadId: input.uploadId }), - }; -}; -const serializeAws_json1_1CreatePullThroughCacheRuleRequest = (input, context) => { - return { - ...(input.ecrRepositoryPrefix !== undefined && - input.ecrRepositoryPrefix !== null && { ecrRepositoryPrefix: input.ecrRepositoryPrefix }), - ...(input.registryId !== undefined && input.registryId !== null && { registryId: input.registryId }), - ...(input.upstreamRegistryUrl !== undefined && - input.upstreamRegistryUrl !== null && { upstreamRegistryUrl: input.upstreamRegistryUrl }), - }; -}; -const serializeAws_json1_1CreateRepositoryRequest = (input, context) => { - return { - ...(input.encryptionConfiguration !== undefined && - input.encryptionConfiguration !== null && { - encryptionConfiguration: serializeAws_json1_1EncryptionConfiguration(input.encryptionConfiguration, context), - }), - ...(input.imageScanningConfiguration !== undefined && - input.imageScanningConfiguration !== null && { - imageScanningConfiguration: serializeAws_json1_1ImageScanningConfiguration(input.imageScanningConfiguration, context), - }), - ...(input.imageTagMutability !== undefined && - input.imageTagMutability !== null && { imageTagMutability: input.imageTagMutability }), - ...(input.registryId !== undefined && input.registryId !== null && { registryId: input.registryId }), - ...(input.repositoryName !== undefined && - input.repositoryName !== null && { repositoryName: input.repositoryName }), - ...(input.tags !== undefined && input.tags !== null && { tags: serializeAws_json1_1TagList(input.tags, context) }), - }; -}; -const serializeAws_json1_1DeleteLifecyclePolicyRequest = (input, context) => { - return { - ...(input.registryId !== undefined && input.registryId !== null && { registryId: input.registryId }), - ...(input.repositoryName !== undefined && - input.repositoryName !== null && { repositoryName: input.repositoryName }), - }; -}; -const serializeAws_json1_1DeletePullThroughCacheRuleRequest = (input, context) => { - return { - ...(input.ecrRepositoryPrefix !== undefined && - input.ecrRepositoryPrefix !== null && { ecrRepositoryPrefix: input.ecrRepositoryPrefix }), - ...(input.registryId !== undefined && input.registryId !== null && { registryId: input.registryId }), - }; -}; -const serializeAws_json1_1DeleteRegistryPolicyRequest = (input, context) => { - return {}; -}; -const serializeAws_json1_1DeleteRepositoryPolicyRequest = (input, context) => { - return { - ...(input.registryId !== undefined && input.registryId !== null && { registryId: input.registryId }), - ...(input.repositoryName !== undefined && - input.repositoryName !== null && { repositoryName: input.repositoryName }), - }; -}; -const serializeAws_json1_1DeleteRepositoryRequest = (input, context) => { - return { - ...(input.force !== undefined && input.force !== null && { force: input.force }), - ...(input.registryId !== undefined && input.registryId !== null && { registryId: input.registryId }), - ...(input.repositoryName !== undefined && - input.repositoryName !== null && { repositoryName: input.repositoryName }), - }; -}; -const serializeAws_json1_1DescribeImageReplicationStatusRequest = (input, context) => { - return { - ...(input.imageId !== undefined && - input.imageId !== null && { imageId: serializeAws_json1_1ImageIdentifier(input.imageId, context) }), - ...(input.registryId !== undefined && input.registryId !== null && { registryId: input.registryId }), - ...(input.repositoryName !== undefined && - input.repositoryName !== null && { repositoryName: input.repositoryName }), - }; -}; -const serializeAws_json1_1DescribeImageScanFindingsRequest = (input, context) => { - return { - ...(input.imageId !== undefined && - input.imageId !== null && { imageId: serializeAws_json1_1ImageIdentifier(input.imageId, context) }), - ...(input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults }), - ...(input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }), - ...(input.registryId !== undefined && input.registryId !== null && { registryId: input.registryId }), - ...(input.repositoryName !== undefined && - input.repositoryName !== null && { repositoryName: input.repositoryName }), - }; -}; -const serializeAws_json1_1DescribeImagesFilter = (input, context) => { - return { - ...(input.tagStatus !== undefined && input.tagStatus !== null && { tagStatus: input.tagStatus }), - }; -}; -const serializeAws_json1_1DescribeImagesRequest = (input, context) => { - return { - ...(input.filter !== undefined && - input.filter !== null && { filter: serializeAws_json1_1DescribeImagesFilter(input.filter, context) }), - ...(input.imageIds !== undefined && - input.imageIds !== null && { imageIds: serializeAws_json1_1ImageIdentifierList(input.imageIds, context) }), - ...(input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults }), - ...(input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }), - ...(input.registryId !== undefined && input.registryId !== null && { registryId: input.registryId }), - ...(input.repositoryName !== undefined && - input.repositoryName !== null && { repositoryName: input.repositoryName }), - }; -}; -const serializeAws_json1_1DescribePullThroughCacheRulesRequest = (input, context) => { - return { - ...(input.ecrRepositoryPrefixes !== undefined && - input.ecrRepositoryPrefixes !== null && { - ecrRepositoryPrefixes: serializeAws_json1_1PullThroughCacheRuleRepositoryPrefixList(input.ecrRepositoryPrefixes, context), - }), - ...(input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults }), - ...(input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }), - ...(input.registryId !== undefined && input.registryId !== null && { registryId: input.registryId }), - }; -}; -const serializeAws_json1_1DescribeRegistryRequest = (input, context) => { - return {}; -}; -const serializeAws_json1_1DescribeRepositoriesRequest = (input, context) => { - return { - ...(input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults }), - ...(input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }), - ...(input.registryId !== undefined && input.registryId !== null && { registryId: input.registryId }), - ...(input.repositoryNames !== undefined && - input.repositoryNames !== null && { - repositoryNames: serializeAws_json1_1RepositoryNameList(input.repositoryNames, context), - }), - }; -}; -const serializeAws_json1_1EncryptionConfiguration = (input, context) => { - return { - ...(input.encryptionType !== undefined && - input.encryptionType !== null && { encryptionType: input.encryptionType }), - ...(input.kmsKey !== undefined && input.kmsKey !== null && { kmsKey: input.kmsKey }), - }; -}; -const serializeAws_json1_1GetAuthorizationTokenRegistryIdList = (input, context) => { - return input - .filter((e) => e != null) - .map((entry) => { - if (entry === null) { - return null; - } - return entry; - }); -}; -const serializeAws_json1_1GetAuthorizationTokenRequest = (input, context) => { - return { - ...(input.registryIds !== undefined && - input.registryIds !== null && { - registryIds: serializeAws_json1_1GetAuthorizationTokenRegistryIdList(input.registryIds, context), - }), - }; -}; -const serializeAws_json1_1GetDownloadUrlForLayerRequest = (input, context) => { - return { - ...(input.layerDigest !== undefined && input.layerDigest !== null && { layerDigest: input.layerDigest }), - ...(input.registryId !== undefined && input.registryId !== null && { registryId: input.registryId }), - ...(input.repositoryName !== undefined && - input.repositoryName !== null && { repositoryName: input.repositoryName }), - }; -}; -const serializeAws_json1_1GetLifecyclePolicyPreviewRequest = (input, context) => { - return { - ...(input.filter !== undefined && - input.filter !== null && { filter: serializeAws_json1_1LifecyclePolicyPreviewFilter(input.filter, context) }), - ...(input.imageIds !== undefined && - input.imageIds !== null && { imageIds: serializeAws_json1_1ImageIdentifierList(input.imageIds, context) }), - ...(input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults }), - ...(input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }), - ...(input.registryId !== undefined && input.registryId !== null && { registryId: input.registryId }), - ...(input.repositoryName !== undefined && - input.repositoryName !== null && { repositoryName: input.repositoryName }), - }; -}; -const serializeAws_json1_1GetLifecyclePolicyRequest = (input, context) => { - return { - ...(input.registryId !== undefined && input.registryId !== null && { registryId: input.registryId }), - ...(input.repositoryName !== undefined && - input.repositoryName !== null && { repositoryName: input.repositoryName }), - }; -}; -const serializeAws_json1_1GetRegistryPolicyRequest = (input, context) => { - return {}; -}; -const serializeAws_json1_1GetRegistryScanningConfigurationRequest = (input, context) => { - return {}; -}; -const serializeAws_json1_1GetRepositoryPolicyRequest = (input, context) => { - return { - ...(input.registryId !== undefined && input.registryId !== null && { registryId: input.registryId }), - ...(input.repositoryName !== undefined && - input.repositoryName !== null && { repositoryName: input.repositoryName }), - }; -}; -const serializeAws_json1_1ImageIdentifier = (input, context) => { - return { - ...(input.imageDigest !== undefined && input.imageDigest !== null && { imageDigest: input.imageDigest }), - ...(input.imageTag !== undefined && input.imageTag !== null && { imageTag: input.imageTag }), - }; -}; -const serializeAws_json1_1ImageIdentifierList = (input, context) => { - return input - .filter((e) => e != null) - .map((entry) => { - if (entry === null) { - return null; - } - return serializeAws_json1_1ImageIdentifier(entry, context); - }); -}; -const serializeAws_json1_1ImageScanningConfiguration = (input, context) => { - return { - ...(input.scanOnPush !== undefined && input.scanOnPush !== null && { scanOnPush: input.scanOnPush }), - }; -}; -const serializeAws_json1_1InitiateLayerUploadRequest = (input, context) => { - return { - ...(input.registryId !== undefined && input.registryId !== null && { registryId: input.registryId }), - ...(input.repositoryName !== undefined && - input.repositoryName !== null && { repositoryName: input.repositoryName }), - }; -}; -const serializeAws_json1_1LayerDigestList = (input, context) => { - return input - .filter((e) => e != null) - .map((entry) => { - if (entry === null) { - return null; - } - return entry; - }); -}; -const serializeAws_json1_1LifecyclePolicyPreviewFilter = (input, context) => { - return { - ...(input.tagStatus !== undefined && input.tagStatus !== null && { tagStatus: input.tagStatus }), - }; -}; -const serializeAws_json1_1ListImagesFilter = (input, context) => { - return { - ...(input.tagStatus !== undefined && input.tagStatus !== null && { tagStatus: input.tagStatus }), - }; -}; -const serializeAws_json1_1ListImagesRequest = (input, context) => { - return { - ...(input.filter !== undefined && - input.filter !== null && { filter: serializeAws_json1_1ListImagesFilter(input.filter, context) }), - ...(input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults }), - ...(input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }), - ...(input.registryId !== undefined && input.registryId !== null && { registryId: input.registryId }), - ...(input.repositoryName !== undefined && - input.repositoryName !== null && { repositoryName: input.repositoryName }), - }; -}; -const serializeAws_json1_1ListTagsForResourceRequest = (input, context) => { - return { - ...(input.resourceArn !== undefined && input.resourceArn !== null && { resourceArn: input.resourceArn }), - }; -}; -const serializeAws_json1_1MediaTypeList = (input, context) => { - return input - .filter((e) => e != null) - .map((entry) => { - if (entry === null) { - return null; - } - return entry; - }); -}; -const serializeAws_json1_1PullThroughCacheRuleRepositoryPrefixList = (input, context) => { - return input - .filter((e) => e != null) - .map((entry) => { - if (entry === null) { - return null; - } - return entry; - }); -}; -const serializeAws_json1_1PutImageRequest = (input, context) => { - return { - ...(input.imageDigest !== undefined && input.imageDigest !== null && { imageDigest: input.imageDigest }), - ...(input.imageManifest !== undefined && input.imageManifest !== null && { imageManifest: input.imageManifest }), - ...(input.imageManifestMediaType !== undefined && - input.imageManifestMediaType !== null && { imageManifestMediaType: input.imageManifestMediaType }), - ...(input.imageTag !== undefined && input.imageTag !== null && { imageTag: input.imageTag }), - ...(input.registryId !== undefined && input.registryId !== null && { registryId: input.registryId }), - ...(input.repositoryName !== undefined && - input.repositoryName !== null && { repositoryName: input.repositoryName }), - }; -}; -const serializeAws_json1_1PutImageScanningConfigurationRequest = (input, context) => { - return { - ...(input.imageScanningConfiguration !== undefined && - input.imageScanningConfiguration !== null && { - imageScanningConfiguration: serializeAws_json1_1ImageScanningConfiguration(input.imageScanningConfiguration, context), - }), - ...(input.registryId !== undefined && input.registryId !== null && { registryId: input.registryId }), - ...(input.repositoryName !== undefined && - input.repositoryName !== null && { repositoryName: input.repositoryName }), - }; -}; -const serializeAws_json1_1PutImageTagMutabilityRequest = (input, context) => { - return { - ...(input.imageTagMutability !== undefined && - input.imageTagMutability !== null && { imageTagMutability: input.imageTagMutability }), - ...(input.registryId !== undefined && input.registryId !== null && { registryId: input.registryId }), - ...(input.repositoryName !== undefined && - input.repositoryName !== null && { repositoryName: input.repositoryName }), - }; -}; -const serializeAws_json1_1PutLifecyclePolicyRequest = (input, context) => { - return { - ...(input.lifecyclePolicyText !== undefined && - input.lifecyclePolicyText !== null && { lifecyclePolicyText: input.lifecyclePolicyText }), - ...(input.registryId !== undefined && input.registryId !== null && { registryId: input.registryId }), - ...(input.repositoryName !== undefined && - input.repositoryName !== null && { repositoryName: input.repositoryName }), - }; -}; -const serializeAws_json1_1PutRegistryPolicyRequest = (input, context) => { - return { - ...(input.policyText !== undefined && input.policyText !== null && { policyText: input.policyText }), - }; -}; -const serializeAws_json1_1PutRegistryScanningConfigurationRequest = (input, context) => { - return { - ...(input.rules !== undefined && - input.rules !== null && { rules: serializeAws_json1_1RegistryScanningRuleList(input.rules, context) }), - ...(input.scanType !== undefined && input.scanType !== null && { scanType: input.scanType }), - }; -}; -const serializeAws_json1_1PutReplicationConfigurationRequest = (input, context) => { - return { - ...(input.replicationConfiguration !== undefined && - input.replicationConfiguration !== null && { - replicationConfiguration: serializeAws_json1_1ReplicationConfiguration(input.replicationConfiguration, context), - }), - }; -}; -const serializeAws_json1_1RegistryScanningRule = (input, context) => { - return { - ...(input.repositoryFilters !== undefined && - input.repositoryFilters !== null && { - repositoryFilters: serializeAws_json1_1ScanningRepositoryFilterList(input.repositoryFilters, context), - }), - ...(input.scanFrequency !== undefined && input.scanFrequency !== null && { scanFrequency: input.scanFrequency }), - }; -}; -const serializeAws_json1_1RegistryScanningRuleList = (input, context) => { - return input - .filter((e) => e != null) - .map((entry) => { - if (entry === null) { - return null; - } - return serializeAws_json1_1RegistryScanningRule(entry, context); - }); -}; -const serializeAws_json1_1ReplicationConfiguration = (input, context) => { - return { - ...(input.rules !== undefined && - input.rules !== null && { rules: serializeAws_json1_1ReplicationRuleList(input.rules, context) }), - }; -}; -const serializeAws_json1_1ReplicationDestination = (input, context) => { - return { - ...(input.region !== undefined && input.region !== null && { region: input.region }), - ...(input.registryId !== undefined && input.registryId !== null && { registryId: input.registryId }), - }; -}; -const serializeAws_json1_1ReplicationDestinationList = (input, context) => { - return input - .filter((e) => e != null) - .map((entry) => { - if (entry === null) { - return null; - } - return serializeAws_json1_1ReplicationDestination(entry, context); - }); -}; -const serializeAws_json1_1ReplicationRule = (input, context) => { - return { - ...(input.destinations !== undefined && - input.destinations !== null && { - destinations: serializeAws_json1_1ReplicationDestinationList(input.destinations, context), - }), - ...(input.repositoryFilters !== undefined && - input.repositoryFilters !== null && { - repositoryFilters: serializeAws_json1_1RepositoryFilterList(input.repositoryFilters, context), - }), - }; -}; -const serializeAws_json1_1ReplicationRuleList = (input, context) => { - return input - .filter((e) => e != null) - .map((entry) => { - if (entry === null) { - return null; - } - return serializeAws_json1_1ReplicationRule(entry, context); - }); -}; -const serializeAws_json1_1RepositoryFilter = (input, context) => { - return { - ...(input.filter !== undefined && input.filter !== null && { filter: input.filter }), - ...(input.filterType !== undefined && input.filterType !== null && { filterType: input.filterType }), - }; -}; -const serializeAws_json1_1RepositoryFilterList = (input, context) => { - return input - .filter((e) => e != null) - .map((entry) => { - if (entry === null) { - return null; - } - return serializeAws_json1_1RepositoryFilter(entry, context); - }); -}; -const serializeAws_json1_1RepositoryNameList = (input, context) => { - return input - .filter((e) => e != null) - .map((entry) => { - if (entry === null) { - return null; - } - return entry; - }); -}; -const serializeAws_json1_1ScanningConfigurationRepositoryNameList = (input, context) => { - return input - .filter((e) => e != null) - .map((entry) => { - if (entry === null) { - return null; - } - return entry; - }); -}; -const serializeAws_json1_1ScanningRepositoryFilter = (input, context) => { - return { - ...(input.filter !== undefined && input.filter !== null && { filter: input.filter }), - ...(input.filterType !== undefined && input.filterType !== null && { filterType: input.filterType }), - }; -}; -const serializeAws_json1_1ScanningRepositoryFilterList = (input, context) => { - return input - .filter((e) => e != null) - .map((entry) => { - if (entry === null) { - return null; - } - return serializeAws_json1_1ScanningRepositoryFilter(entry, context); - }); -}; -const serializeAws_json1_1SetRepositoryPolicyRequest = (input, context) => { - return { - ...(input.force !== undefined && input.force !== null && { force: input.force }), - ...(input.policyText !== undefined && input.policyText !== null && { policyText: input.policyText }), - ...(input.registryId !== undefined && input.registryId !== null && { registryId: input.registryId }), - ...(input.repositoryName !== undefined && - input.repositoryName !== null && { repositoryName: input.repositoryName }), - }; -}; -const serializeAws_json1_1StartImageScanRequest = (input, context) => { - return { - ...(input.imageId !== undefined && - input.imageId !== null && { imageId: serializeAws_json1_1ImageIdentifier(input.imageId, context) }), - ...(input.registryId !== undefined && input.registryId !== null && { registryId: input.registryId }), - ...(input.repositoryName !== undefined && - input.repositoryName !== null && { repositoryName: input.repositoryName }), - }; -}; -const serializeAws_json1_1StartLifecyclePolicyPreviewRequest = (input, context) => { - return { - ...(input.lifecyclePolicyText !== undefined && - input.lifecyclePolicyText !== null && { lifecyclePolicyText: input.lifecyclePolicyText }), - ...(input.registryId !== undefined && input.registryId !== null && { registryId: input.registryId }), - ...(input.repositoryName !== undefined && - input.repositoryName !== null && { repositoryName: input.repositoryName }), - }; -}; -const serializeAws_json1_1Tag = (input, context) => { - return { - ...(input.Key !== undefined && input.Key !== null && { Key: input.Key }), - ...(input.Value !== undefined && input.Value !== null && { Value: input.Value }), - }; -}; -const serializeAws_json1_1TagKeyList = (input, context) => { - return input - .filter((e) => e != null) - .map((entry) => { - if (entry === null) { - return null; - } - return entry; - }); -}; -const serializeAws_json1_1TagList = (input, context) => { - return input - .filter((e) => e != null) - .map((entry) => { - if (entry === null) { - return null; - } - return serializeAws_json1_1Tag(entry, context); - }); -}; -const serializeAws_json1_1TagResourceRequest = (input, context) => { - return { - ...(input.resourceArn !== undefined && input.resourceArn !== null && { resourceArn: input.resourceArn }), - ...(input.tags !== undefined && input.tags !== null && { tags: serializeAws_json1_1TagList(input.tags, context) }), - }; -}; -const serializeAws_json1_1UntagResourceRequest = (input, context) => { - return { - ...(input.resourceArn !== undefined && input.resourceArn !== null && { resourceArn: input.resourceArn }), - ...(input.tagKeys !== undefined && - input.tagKeys !== null && { tagKeys: serializeAws_json1_1TagKeyList(input.tagKeys, context) }), - }; -}; -const serializeAws_json1_1UploadLayerPartRequest = (input, context) => { - return { - ...(input.layerPartBlob !== undefined && - input.layerPartBlob !== null && { layerPartBlob: context.base64Encoder(input.layerPartBlob) }), - ...(input.partFirstByte !== undefined && input.partFirstByte !== null && { partFirstByte: input.partFirstByte }), - ...(input.partLastByte !== undefined && input.partLastByte !== null && { partLastByte: input.partLastByte }), - ...(input.registryId !== undefined && input.registryId !== null && { registryId: input.registryId }), - ...(input.repositoryName !== undefined && - input.repositoryName !== null && { repositoryName: input.repositoryName }), - ...(input.uploadId !== undefined && input.uploadId !== null && { uploadId: input.uploadId }), - }; -}; -const deserializeAws_json1_1Attribute = (output, context) => { - return { - key: smithy_client_1.expectString(output.key), - value: smithy_client_1.expectString(output.value), - }; -}; -const deserializeAws_json1_1AttributeList = (output, context) => { - return (output || []) - .filter((e) => e != null) - .map((entry) => { - if (entry === null) { - return null; - } - return deserializeAws_json1_1Attribute(entry, context); - }); -}; -const deserializeAws_json1_1AuthorizationData = (output, context) => { - return { - authorizationToken: smithy_client_1.expectString(output.authorizationToken), - expiresAt: output.expiresAt !== undefined && output.expiresAt !== null - ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.expiresAt))) - : undefined, - proxyEndpoint: smithy_client_1.expectString(output.proxyEndpoint), - }; -}; -const deserializeAws_json1_1AuthorizationDataList = (output, context) => { - return (output || []) - .filter((e) => e != null) - .map((entry) => { - if (entry === null) { - return null; - } - return deserializeAws_json1_1AuthorizationData(entry, context); - }); -}; -const deserializeAws_json1_1AwsEcrContainerImageDetails = (output, context) => { - return { - architecture: smithy_client_1.expectString(output.architecture), - author: smithy_client_1.expectString(output.author), - imageHash: smithy_client_1.expectString(output.imageHash), - imageTags: output.imageTags !== undefined && output.imageTags !== null - ? deserializeAws_json1_1ImageTagsList(output.imageTags, context) - : undefined, - platform: smithy_client_1.expectString(output.platform), - pushedAt: output.pushedAt !== undefined && output.pushedAt !== null - ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.pushedAt))) - : undefined, - registry: smithy_client_1.expectString(output.registry), - repositoryName: smithy_client_1.expectString(output.repositoryName), - }; -}; -const deserializeAws_json1_1BatchCheckLayerAvailabilityResponse = (output, context) => { - return { - failures: output.failures !== undefined && output.failures !== null - ? deserializeAws_json1_1LayerFailureList(output.failures, context) - : undefined, - layers: output.layers !== undefined && output.layers !== null - ? deserializeAws_json1_1LayerList(output.layers, context) - : undefined, - }; -}; -const deserializeAws_json1_1BatchDeleteImageResponse = (output, context) => { - return { - failures: output.failures !== undefined && output.failures !== null - ? deserializeAws_json1_1ImageFailureList(output.failures, context) - : undefined, - imageIds: output.imageIds !== undefined && output.imageIds !== null - ? deserializeAws_json1_1ImageIdentifierList(output.imageIds, context) - : undefined, - }; -}; -const deserializeAws_json1_1BatchGetImageResponse = (output, context) => { - return { - failures: output.failures !== undefined && output.failures !== null - ? deserializeAws_json1_1ImageFailureList(output.failures, context) - : undefined, - images: output.images !== undefined && output.images !== null - ? deserializeAws_json1_1ImageList(output.images, context) - : undefined, - }; -}; -const deserializeAws_json1_1BatchGetRepositoryScanningConfigurationResponse = (output, context) => { - return { - failures: output.failures !== undefined && output.failures !== null - ? deserializeAws_json1_1RepositoryScanningConfigurationFailureList(output.failures, context) - : undefined, - scanningConfigurations: output.scanningConfigurations !== undefined && output.scanningConfigurations !== null - ? deserializeAws_json1_1RepositoryScanningConfigurationList(output.scanningConfigurations, context) - : undefined, - }; -}; -const deserializeAws_json1_1CompleteLayerUploadResponse = (output, context) => { - return { - layerDigest: smithy_client_1.expectString(output.layerDigest), - registryId: smithy_client_1.expectString(output.registryId), - repositoryName: smithy_client_1.expectString(output.repositoryName), - uploadId: smithy_client_1.expectString(output.uploadId), - }; -}; -const deserializeAws_json1_1CreatePullThroughCacheRuleResponse = (output, context) => { - return { - createdAt: output.createdAt !== undefined && output.createdAt !== null - ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.createdAt))) - : undefined, - ecrRepositoryPrefix: smithy_client_1.expectString(output.ecrRepositoryPrefix), - registryId: smithy_client_1.expectString(output.registryId), - upstreamRegistryUrl: smithy_client_1.expectString(output.upstreamRegistryUrl), - }; -}; -const deserializeAws_json1_1CreateRepositoryResponse = (output, context) => { - return { - repository: output.repository !== undefined && output.repository !== null - ? deserializeAws_json1_1Repository(output.repository, context) - : undefined, - }; -}; -const deserializeAws_json1_1CvssScore = (output, context) => { - return { - baseScore: smithy_client_1.limitedParseDouble(output.baseScore), - scoringVector: smithy_client_1.expectString(output.scoringVector), - source: smithy_client_1.expectString(output.source), - version: smithy_client_1.expectString(output.version), - }; -}; -const deserializeAws_json1_1CvssScoreAdjustment = (output, context) => { - return { - metric: smithy_client_1.expectString(output.metric), - reason: smithy_client_1.expectString(output.reason), - }; -}; -const deserializeAws_json1_1CvssScoreAdjustmentList = (output, context) => { - return (output || []) - .filter((e) => e != null) - .map((entry) => { - if (entry === null) { - return null; - } - return deserializeAws_json1_1CvssScoreAdjustment(entry, context); - }); -}; -const deserializeAws_json1_1CvssScoreDetails = (output, context) => { - return { - adjustments: output.adjustments !== undefined && output.adjustments !== null - ? deserializeAws_json1_1CvssScoreAdjustmentList(output.adjustments, context) - : undefined, - score: smithy_client_1.limitedParseDouble(output.score), - scoreSource: smithy_client_1.expectString(output.scoreSource), - scoringVector: smithy_client_1.expectString(output.scoringVector), - version: smithy_client_1.expectString(output.version), - }; -}; -const deserializeAws_json1_1CvssScoreList = (output, context) => { - return (output || []) - .filter((e) => e != null) - .map((entry) => { - if (entry === null) { - return null; - } - return deserializeAws_json1_1CvssScore(entry, context); - }); -}; -const deserializeAws_json1_1DeleteLifecyclePolicyResponse = (output, context) => { - return { - lastEvaluatedAt: output.lastEvaluatedAt !== undefined && output.lastEvaluatedAt !== null - ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.lastEvaluatedAt))) - : undefined, - lifecyclePolicyText: smithy_client_1.expectString(output.lifecyclePolicyText), - registryId: smithy_client_1.expectString(output.registryId), - repositoryName: smithy_client_1.expectString(output.repositoryName), - }; -}; -const deserializeAws_json1_1DeletePullThroughCacheRuleResponse = (output, context) => { - return { - createdAt: output.createdAt !== undefined && output.createdAt !== null - ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.createdAt))) - : undefined, - ecrRepositoryPrefix: smithy_client_1.expectString(output.ecrRepositoryPrefix), - registryId: smithy_client_1.expectString(output.registryId), - upstreamRegistryUrl: smithy_client_1.expectString(output.upstreamRegistryUrl), - }; -}; -const deserializeAws_json1_1DeleteRegistryPolicyResponse = (output, context) => { - return { - policyText: smithy_client_1.expectString(output.policyText), - registryId: smithy_client_1.expectString(output.registryId), - }; -}; -const deserializeAws_json1_1DeleteRepositoryPolicyResponse = (output, context) => { - return { - policyText: smithy_client_1.expectString(output.policyText), - registryId: smithy_client_1.expectString(output.registryId), - repositoryName: smithy_client_1.expectString(output.repositoryName), - }; -}; -const deserializeAws_json1_1DeleteRepositoryResponse = (output, context) => { - return { - repository: output.repository !== undefined && output.repository !== null - ? deserializeAws_json1_1Repository(output.repository, context) - : undefined, - }; -}; -const deserializeAws_json1_1DescribeImageReplicationStatusResponse = (output, context) => { - return { - imageId: output.imageId !== undefined && output.imageId !== null - ? deserializeAws_json1_1ImageIdentifier(output.imageId, context) - : undefined, - replicationStatuses: output.replicationStatuses !== undefined && output.replicationStatuses !== null - ? deserializeAws_json1_1ImageReplicationStatusList(output.replicationStatuses, context) - : undefined, - repositoryName: smithy_client_1.expectString(output.repositoryName), - }; -}; -const deserializeAws_json1_1DescribeImageScanFindingsResponse = (output, context) => { - return { - imageId: output.imageId !== undefined && output.imageId !== null - ? deserializeAws_json1_1ImageIdentifier(output.imageId, context) - : undefined, - imageScanFindings: output.imageScanFindings !== undefined && output.imageScanFindings !== null - ? deserializeAws_json1_1ImageScanFindings(output.imageScanFindings, context) - : undefined, - imageScanStatus: output.imageScanStatus !== undefined && output.imageScanStatus !== null - ? deserializeAws_json1_1ImageScanStatus(output.imageScanStatus, context) - : undefined, - nextToken: smithy_client_1.expectString(output.nextToken), - registryId: smithy_client_1.expectString(output.registryId), - repositoryName: smithy_client_1.expectString(output.repositoryName), - }; -}; -const deserializeAws_json1_1DescribeImagesResponse = (output, context) => { - return { - imageDetails: output.imageDetails !== undefined && output.imageDetails !== null - ? deserializeAws_json1_1ImageDetailList(output.imageDetails, context) - : undefined, - nextToken: smithy_client_1.expectString(output.nextToken), - }; -}; -const deserializeAws_json1_1DescribePullThroughCacheRulesResponse = (output, context) => { - return { - nextToken: smithy_client_1.expectString(output.nextToken), - pullThroughCacheRules: output.pullThroughCacheRules !== undefined && output.pullThroughCacheRules !== null - ? deserializeAws_json1_1PullThroughCacheRuleList(output.pullThroughCacheRules, context) - : undefined, - }; -}; -const deserializeAws_json1_1DescribeRegistryResponse = (output, context) => { - return { - registryId: smithy_client_1.expectString(output.registryId), - replicationConfiguration: output.replicationConfiguration !== undefined && output.replicationConfiguration !== null - ? deserializeAws_json1_1ReplicationConfiguration(output.replicationConfiguration, context) - : undefined, - }; -}; -const deserializeAws_json1_1DescribeRepositoriesResponse = (output, context) => { - return { - nextToken: smithy_client_1.expectString(output.nextToken), - repositories: output.repositories !== undefined && output.repositories !== null - ? deserializeAws_json1_1RepositoryList(output.repositories, context) - : undefined, - }; -}; -const deserializeAws_json1_1EmptyUploadException = (output, context) => { - return { - message: smithy_client_1.expectString(output.message), - }; -}; -const deserializeAws_json1_1EncryptionConfiguration = (output, context) => { - return { - encryptionType: smithy_client_1.expectString(output.encryptionType), - kmsKey: smithy_client_1.expectString(output.kmsKey), - }; -}; -const deserializeAws_json1_1EnhancedImageScanFinding = (output, context) => { - return { - awsAccountId: smithy_client_1.expectString(output.awsAccountId), - description: smithy_client_1.expectString(output.description), - findingArn: smithy_client_1.expectString(output.findingArn), - firstObservedAt: output.firstObservedAt !== undefined && output.firstObservedAt !== null - ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.firstObservedAt))) - : undefined, - lastObservedAt: output.lastObservedAt !== undefined && output.lastObservedAt !== null - ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.lastObservedAt))) - : undefined, - packageVulnerabilityDetails: output.packageVulnerabilityDetails !== undefined && output.packageVulnerabilityDetails !== null - ? deserializeAws_json1_1PackageVulnerabilityDetails(output.packageVulnerabilityDetails, context) - : undefined, - remediation: output.remediation !== undefined && output.remediation !== null - ? deserializeAws_json1_1Remediation(output.remediation, context) - : undefined, - resources: output.resources !== undefined && output.resources !== null - ? deserializeAws_json1_1ResourceList(output.resources, context) - : undefined, - score: smithy_client_1.limitedParseDouble(output.score), - scoreDetails: output.scoreDetails !== undefined && output.scoreDetails !== null - ? deserializeAws_json1_1ScoreDetails(output.scoreDetails, context) - : undefined, - severity: smithy_client_1.expectString(output.severity), - status: smithy_client_1.expectString(output.status), - title: smithy_client_1.expectString(output.title), - type: smithy_client_1.expectString(output.type), - updatedAt: output.updatedAt !== undefined && output.updatedAt !== null - ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.updatedAt))) - : undefined, - }; -}; -const deserializeAws_json1_1EnhancedImageScanFindingList = (output, context) => { - return (output || []) - .filter((e) => e != null) - .map((entry) => { - if (entry === null) { - return null; - } - return deserializeAws_json1_1EnhancedImageScanFinding(entry, context); - }); -}; -const deserializeAws_json1_1FindingSeverityCounts = (output, context) => { - return Object.entries(output).reduce((acc, [key, value]) => { - if (value === null) { - return acc; - } - return { - ...acc, - [key]: smithy_client_1.expectInt32(value), - }; - }, {}); -}; -const deserializeAws_json1_1GetAuthorizationTokenResponse = (output, context) => { - return { - authorizationData: output.authorizationData !== undefined && output.authorizationData !== null - ? deserializeAws_json1_1AuthorizationDataList(output.authorizationData, context) - : undefined, - }; -}; -const deserializeAws_json1_1GetDownloadUrlForLayerResponse = (output, context) => { - return { - downloadUrl: smithy_client_1.expectString(output.downloadUrl), - layerDigest: smithy_client_1.expectString(output.layerDigest), - }; -}; -const deserializeAws_json1_1GetLifecyclePolicyPreviewResponse = (output, context) => { - return { - lifecyclePolicyText: smithy_client_1.expectString(output.lifecyclePolicyText), - nextToken: smithy_client_1.expectString(output.nextToken), - previewResults: output.previewResults !== undefined && output.previewResults !== null - ? deserializeAws_json1_1LifecyclePolicyPreviewResultList(output.previewResults, context) - : undefined, - registryId: smithy_client_1.expectString(output.registryId), - repositoryName: smithy_client_1.expectString(output.repositoryName), - status: smithy_client_1.expectString(output.status), - summary: output.summary !== undefined && output.summary !== null - ? deserializeAws_json1_1LifecyclePolicyPreviewSummary(output.summary, context) - : undefined, - }; -}; -const deserializeAws_json1_1GetLifecyclePolicyResponse = (output, context) => { - return { - lastEvaluatedAt: output.lastEvaluatedAt !== undefined && output.lastEvaluatedAt !== null - ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.lastEvaluatedAt))) - : undefined, - lifecyclePolicyText: smithy_client_1.expectString(output.lifecyclePolicyText), - registryId: smithy_client_1.expectString(output.registryId), - repositoryName: smithy_client_1.expectString(output.repositoryName), - }; -}; -const deserializeAws_json1_1GetRegistryPolicyResponse = (output, context) => { - return { - policyText: smithy_client_1.expectString(output.policyText), - registryId: smithy_client_1.expectString(output.registryId), - }; -}; -const deserializeAws_json1_1GetRegistryScanningConfigurationResponse = (output, context) => { - return { - registryId: smithy_client_1.expectString(output.registryId), - scanningConfiguration: output.scanningConfiguration !== undefined && output.scanningConfiguration !== null - ? deserializeAws_json1_1RegistryScanningConfiguration(output.scanningConfiguration, context) - : undefined, - }; -}; -const deserializeAws_json1_1GetRepositoryPolicyResponse = (output, context) => { - return { - policyText: smithy_client_1.expectString(output.policyText), - registryId: smithy_client_1.expectString(output.registryId), - repositoryName: smithy_client_1.expectString(output.repositoryName), - }; -}; -const deserializeAws_json1_1Image = (output, context) => { - return { - imageId: output.imageId !== undefined && output.imageId !== null - ? deserializeAws_json1_1ImageIdentifier(output.imageId, context) - : undefined, - imageManifest: smithy_client_1.expectString(output.imageManifest), - imageManifestMediaType: smithy_client_1.expectString(output.imageManifestMediaType), - registryId: smithy_client_1.expectString(output.registryId), - repositoryName: smithy_client_1.expectString(output.repositoryName), - }; -}; -const deserializeAws_json1_1ImageAlreadyExistsException = (output, context) => { - return { - message: smithy_client_1.expectString(output.message), - }; -}; -const deserializeAws_json1_1ImageDetail = (output, context) => { - return { - artifactMediaType: smithy_client_1.expectString(output.artifactMediaType), - imageDigest: smithy_client_1.expectString(output.imageDigest), - imageManifestMediaType: smithy_client_1.expectString(output.imageManifestMediaType), - imagePushedAt: output.imagePushedAt !== undefined && output.imagePushedAt !== null - ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.imagePushedAt))) - : undefined, - imageScanFindingsSummary: output.imageScanFindingsSummary !== undefined && output.imageScanFindingsSummary !== null - ? deserializeAws_json1_1ImageScanFindingsSummary(output.imageScanFindingsSummary, context) - : undefined, - imageScanStatus: output.imageScanStatus !== undefined && output.imageScanStatus !== null - ? deserializeAws_json1_1ImageScanStatus(output.imageScanStatus, context) - : undefined, - imageSizeInBytes: smithy_client_1.expectLong(output.imageSizeInBytes), - imageTags: output.imageTags !== undefined && output.imageTags !== null - ? deserializeAws_json1_1ImageTagList(output.imageTags, context) - : undefined, - registryId: smithy_client_1.expectString(output.registryId), - repositoryName: smithy_client_1.expectString(output.repositoryName), - }; -}; -const deserializeAws_json1_1ImageDetailList = (output, context) => { - return (output || []) - .filter((e) => e != null) - .map((entry) => { - if (entry === null) { - return null; - } - return deserializeAws_json1_1ImageDetail(entry, context); - }); -}; -const deserializeAws_json1_1ImageDigestDoesNotMatchException = (output, context) => { - return { - message: smithy_client_1.expectString(output.message), - }; -}; -const deserializeAws_json1_1ImageFailure = (output, context) => { - return { - failureCode: smithy_client_1.expectString(output.failureCode), - failureReason: smithy_client_1.expectString(output.failureReason), - imageId: output.imageId !== undefined && output.imageId !== null - ? deserializeAws_json1_1ImageIdentifier(output.imageId, context) - : undefined, - }; -}; -const deserializeAws_json1_1ImageFailureList = (output, context) => { - return (output || []) - .filter((e) => e != null) - .map((entry) => { - if (entry === null) { - return null; - } - return deserializeAws_json1_1ImageFailure(entry, context); - }); -}; -const deserializeAws_json1_1ImageIdentifier = (output, context) => { - return { - imageDigest: smithy_client_1.expectString(output.imageDigest), - imageTag: smithy_client_1.expectString(output.imageTag), - }; -}; -const deserializeAws_json1_1ImageIdentifierList = (output, context) => { - return (output || []) - .filter((e) => e != null) - .map((entry) => { - if (entry === null) { - return null; - } - return deserializeAws_json1_1ImageIdentifier(entry, context); - }); -}; -const deserializeAws_json1_1ImageList = (output, context) => { - return (output || []) - .filter((e) => e != null) - .map((entry) => { - if (entry === null) { - return null; - } - return deserializeAws_json1_1Image(entry, context); - }); -}; -const deserializeAws_json1_1ImageNotFoundException = (output, context) => { - return { - message: smithy_client_1.expectString(output.message), - }; -}; -const deserializeAws_json1_1ImageReplicationStatus = (output, context) => { - return { - failureCode: smithy_client_1.expectString(output.failureCode), - region: smithy_client_1.expectString(output.region), - registryId: smithy_client_1.expectString(output.registryId), - status: smithy_client_1.expectString(output.status), - }; -}; -const deserializeAws_json1_1ImageReplicationStatusList = (output, context) => { - return (output || []) - .filter((e) => e != null) - .map((entry) => { - if (entry === null) { - return null; - } - return deserializeAws_json1_1ImageReplicationStatus(entry, context); - }); -}; -const deserializeAws_json1_1ImageScanFinding = (output, context) => { - return { - attributes: output.attributes !== undefined && output.attributes !== null - ? deserializeAws_json1_1AttributeList(output.attributes, context) - : undefined, - description: smithy_client_1.expectString(output.description), - name: smithy_client_1.expectString(output.name), - severity: smithy_client_1.expectString(output.severity), - uri: smithy_client_1.expectString(output.uri), - }; -}; -const deserializeAws_json1_1ImageScanFindingList = (output, context) => { - return (output || []) - .filter((e) => e != null) - .map((entry) => { - if (entry === null) { - return null; - } - return deserializeAws_json1_1ImageScanFinding(entry, context); - }); -}; -const deserializeAws_json1_1ImageScanFindings = (output, context) => { - return { - enhancedFindings: output.enhancedFindings !== undefined && output.enhancedFindings !== null - ? deserializeAws_json1_1EnhancedImageScanFindingList(output.enhancedFindings, context) - : undefined, - findingSeverityCounts: output.findingSeverityCounts !== undefined && output.findingSeverityCounts !== null - ? deserializeAws_json1_1FindingSeverityCounts(output.findingSeverityCounts, context) - : undefined, - findings: output.findings !== undefined && output.findings !== null - ? deserializeAws_json1_1ImageScanFindingList(output.findings, context) - : undefined, - imageScanCompletedAt: output.imageScanCompletedAt !== undefined && output.imageScanCompletedAt !== null - ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.imageScanCompletedAt))) - : undefined, - vulnerabilitySourceUpdatedAt: output.vulnerabilitySourceUpdatedAt !== undefined && output.vulnerabilitySourceUpdatedAt !== null - ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.vulnerabilitySourceUpdatedAt))) - : undefined, - }; -}; -const deserializeAws_json1_1ImageScanFindingsSummary = (output, context) => { - return { - findingSeverityCounts: output.findingSeverityCounts !== undefined && output.findingSeverityCounts !== null - ? deserializeAws_json1_1FindingSeverityCounts(output.findingSeverityCounts, context) - : undefined, - imageScanCompletedAt: output.imageScanCompletedAt !== undefined && output.imageScanCompletedAt !== null - ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.imageScanCompletedAt))) - : undefined, - vulnerabilitySourceUpdatedAt: output.vulnerabilitySourceUpdatedAt !== undefined && output.vulnerabilitySourceUpdatedAt !== null - ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.vulnerabilitySourceUpdatedAt))) - : undefined, - }; -}; -const deserializeAws_json1_1ImageScanningConfiguration = (output, context) => { - return { - scanOnPush: smithy_client_1.expectBoolean(output.scanOnPush), - }; -}; -const deserializeAws_json1_1ImageScanStatus = (output, context) => { - return { - description: smithy_client_1.expectString(output.description), - status: smithy_client_1.expectString(output.status), - }; -}; -const deserializeAws_json1_1ImageTagAlreadyExistsException = (output, context) => { - return { - message: smithy_client_1.expectString(output.message), - }; -}; -const deserializeAws_json1_1ImageTagList = (output, context) => { - return (output || []) - .filter((e) => e != null) - .map((entry) => { - if (entry === null) { - return null; - } - return smithy_client_1.expectString(entry); - }); -}; -const deserializeAws_json1_1ImageTagsList = (output, context) => { - return (output || []) - .filter((e) => e != null) - .map((entry) => { - if (entry === null) { - return null; - } - return smithy_client_1.expectString(entry); - }); -}; -const deserializeAws_json1_1InitiateLayerUploadResponse = (output, context) => { - return { - partSize: smithy_client_1.expectLong(output.partSize), - uploadId: smithy_client_1.expectString(output.uploadId), - }; -}; -const deserializeAws_json1_1InvalidLayerException = (output, context) => { - return { - message: smithy_client_1.expectString(output.message), - }; -}; -const deserializeAws_json1_1InvalidLayerPartException = (output, context) => { - return { - lastValidByteReceived: smithy_client_1.expectLong(output.lastValidByteReceived), - message: smithy_client_1.expectString(output.message), - registryId: smithy_client_1.expectString(output.registryId), - repositoryName: smithy_client_1.expectString(output.repositoryName), - uploadId: smithy_client_1.expectString(output.uploadId), - }; -}; -const deserializeAws_json1_1InvalidParameterException = (output, context) => { - return { - message: smithy_client_1.expectString(output.message), - }; -}; -const deserializeAws_json1_1InvalidTagParameterException = (output, context) => { - return { - message: smithy_client_1.expectString(output.message), - }; -}; -const deserializeAws_json1_1KmsException = (output, context) => { - return { - kmsError: smithy_client_1.expectString(output.kmsError), - message: smithy_client_1.expectString(output.message), - }; -}; -const deserializeAws_json1_1Layer = (output, context) => { - return { - layerAvailability: smithy_client_1.expectString(output.layerAvailability), - layerDigest: smithy_client_1.expectString(output.layerDigest), - layerSize: smithy_client_1.expectLong(output.layerSize), - mediaType: smithy_client_1.expectString(output.mediaType), - }; -}; -const deserializeAws_json1_1LayerAlreadyExistsException = (output, context) => { - return { - message: smithy_client_1.expectString(output.message), - }; -}; -const deserializeAws_json1_1LayerFailure = (output, context) => { - return { - failureCode: smithy_client_1.expectString(output.failureCode), - failureReason: smithy_client_1.expectString(output.failureReason), - layerDigest: smithy_client_1.expectString(output.layerDigest), - }; -}; -const deserializeAws_json1_1LayerFailureList = (output, context) => { - return (output || []) - .filter((e) => e != null) - .map((entry) => { - if (entry === null) { - return null; - } - return deserializeAws_json1_1LayerFailure(entry, context); - }); -}; -const deserializeAws_json1_1LayerInaccessibleException = (output, context) => { - return { - message: smithy_client_1.expectString(output.message), - }; -}; -const deserializeAws_json1_1LayerList = (output, context) => { - return (output || []) - .filter((e) => e != null) - .map((entry) => { - if (entry === null) { - return null; - } - return deserializeAws_json1_1Layer(entry, context); - }); -}; -const deserializeAws_json1_1LayerPartTooSmallException = (output, context) => { - return { - message: smithy_client_1.expectString(output.message), - }; -}; -const deserializeAws_json1_1LayersNotFoundException = (output, context) => { - return { - message: smithy_client_1.expectString(output.message), - }; -}; -const deserializeAws_json1_1LifecyclePolicyNotFoundException = (output, context) => { - return { - message: smithy_client_1.expectString(output.message), - }; -}; -const deserializeAws_json1_1LifecyclePolicyPreviewInProgressException = (output, context) => { - return { - message: smithy_client_1.expectString(output.message), - }; -}; -const deserializeAws_json1_1LifecyclePolicyPreviewNotFoundException = (output, context) => { - return { - message: smithy_client_1.expectString(output.message), - }; -}; -const deserializeAws_json1_1LifecyclePolicyPreviewResult = (output, context) => { - return { - action: output.action !== undefined && output.action !== null - ? deserializeAws_json1_1LifecyclePolicyRuleAction(output.action, context) - : undefined, - appliedRulePriority: smithy_client_1.expectInt32(output.appliedRulePriority), - imageDigest: smithy_client_1.expectString(output.imageDigest), - imagePushedAt: output.imagePushedAt !== undefined && output.imagePushedAt !== null - ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.imagePushedAt))) - : undefined, - imageTags: output.imageTags !== undefined && output.imageTags !== null - ? deserializeAws_json1_1ImageTagList(output.imageTags, context) - : undefined, - }; -}; -const deserializeAws_json1_1LifecyclePolicyPreviewResultList = (output, context) => { - return (output || []) - .filter((e) => e != null) - .map((entry) => { - if (entry === null) { - return null; - } - return deserializeAws_json1_1LifecyclePolicyPreviewResult(entry, context); - }); -}; -const deserializeAws_json1_1LifecyclePolicyPreviewSummary = (output, context) => { - return { - expiringImageTotalCount: smithy_client_1.expectInt32(output.expiringImageTotalCount), - }; -}; -const deserializeAws_json1_1LifecyclePolicyRuleAction = (output, context) => { - return { - type: smithy_client_1.expectString(output.type), - }; -}; -const deserializeAws_json1_1LimitExceededException = (output, context) => { - return { - message: smithy_client_1.expectString(output.message), - }; -}; -const deserializeAws_json1_1ListImagesResponse = (output, context) => { - return { - imageIds: output.imageIds !== undefined && output.imageIds !== null - ? deserializeAws_json1_1ImageIdentifierList(output.imageIds, context) - : undefined, - nextToken: smithy_client_1.expectString(output.nextToken), - }; -}; -const deserializeAws_json1_1ListTagsForResourceResponse = (output, context) => { - return { - tags: output.tags !== undefined && output.tags !== null - ? deserializeAws_json1_1TagList(output.tags, context) - : undefined, - }; -}; -const deserializeAws_json1_1PackageVulnerabilityDetails = (output, context) => { - return { - cvss: output.cvss !== undefined && output.cvss !== null - ? deserializeAws_json1_1CvssScoreList(output.cvss, context) - : undefined, - referenceUrls: output.referenceUrls !== undefined && output.referenceUrls !== null - ? deserializeAws_json1_1ReferenceUrlsList(output.referenceUrls, context) - : undefined, - relatedVulnerabilities: output.relatedVulnerabilities !== undefined && output.relatedVulnerabilities !== null - ? deserializeAws_json1_1RelatedVulnerabilitiesList(output.relatedVulnerabilities, context) - : undefined, - source: smithy_client_1.expectString(output.source), - sourceUrl: smithy_client_1.expectString(output.sourceUrl), - vendorCreatedAt: output.vendorCreatedAt !== undefined && output.vendorCreatedAt !== null - ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.vendorCreatedAt))) - : undefined, - vendorSeverity: smithy_client_1.expectString(output.vendorSeverity), - vendorUpdatedAt: output.vendorUpdatedAt !== undefined && output.vendorUpdatedAt !== null - ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.vendorUpdatedAt))) - : undefined, - vulnerabilityId: smithy_client_1.expectString(output.vulnerabilityId), - vulnerablePackages: output.vulnerablePackages !== undefined && output.vulnerablePackages !== null - ? deserializeAws_json1_1VulnerablePackagesList(output.vulnerablePackages, context) - : undefined, - }; -}; -const deserializeAws_json1_1PullThroughCacheRule = (output, context) => { - return { - createdAt: output.createdAt !== undefined && output.createdAt !== null - ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.createdAt))) - : undefined, - ecrRepositoryPrefix: smithy_client_1.expectString(output.ecrRepositoryPrefix), - registryId: smithy_client_1.expectString(output.registryId), - upstreamRegistryUrl: smithy_client_1.expectString(output.upstreamRegistryUrl), - }; -}; -const deserializeAws_json1_1PullThroughCacheRuleAlreadyExistsException = (output, context) => { - return { - message: smithy_client_1.expectString(output.message), - }; -}; -const deserializeAws_json1_1PullThroughCacheRuleList = (output, context) => { - return (output || []) - .filter((e) => e != null) - .map((entry) => { - if (entry === null) { - return null; - } - return deserializeAws_json1_1PullThroughCacheRule(entry, context); - }); -}; -const deserializeAws_json1_1PullThroughCacheRuleNotFoundException = (output, context) => { - return { - message: smithy_client_1.expectString(output.message), - }; -}; -const deserializeAws_json1_1PutImageResponse = (output, context) => { - return { - image: output.image !== undefined && output.image !== null - ? deserializeAws_json1_1Image(output.image, context) - : undefined, - }; -}; -const deserializeAws_json1_1PutImageScanningConfigurationResponse = (output, context) => { - return { - imageScanningConfiguration: output.imageScanningConfiguration !== undefined && output.imageScanningConfiguration !== null - ? deserializeAws_json1_1ImageScanningConfiguration(output.imageScanningConfiguration, context) - : undefined, - registryId: smithy_client_1.expectString(output.registryId), - repositoryName: smithy_client_1.expectString(output.repositoryName), - }; -}; -const deserializeAws_json1_1PutImageTagMutabilityResponse = (output, context) => { - return { - imageTagMutability: smithy_client_1.expectString(output.imageTagMutability), - registryId: smithy_client_1.expectString(output.registryId), - repositoryName: smithy_client_1.expectString(output.repositoryName), - }; -}; -const deserializeAws_json1_1PutLifecyclePolicyResponse = (output, context) => { - return { - lifecyclePolicyText: smithy_client_1.expectString(output.lifecyclePolicyText), - registryId: smithy_client_1.expectString(output.registryId), - repositoryName: smithy_client_1.expectString(output.repositoryName), - }; -}; -const deserializeAws_json1_1PutRegistryPolicyResponse = (output, context) => { - return { - policyText: smithy_client_1.expectString(output.policyText), - registryId: smithy_client_1.expectString(output.registryId), - }; -}; -const deserializeAws_json1_1PutRegistryScanningConfigurationResponse = (output, context) => { - return { - registryScanningConfiguration: output.registryScanningConfiguration !== undefined && output.registryScanningConfiguration !== null - ? deserializeAws_json1_1RegistryScanningConfiguration(output.registryScanningConfiguration, context) - : undefined, - }; -}; -const deserializeAws_json1_1PutReplicationConfigurationResponse = (output, context) => { - return { - replicationConfiguration: output.replicationConfiguration !== undefined && output.replicationConfiguration !== null - ? deserializeAws_json1_1ReplicationConfiguration(output.replicationConfiguration, context) - : undefined, - }; -}; -const deserializeAws_json1_1Recommendation = (output, context) => { - return { - text: smithy_client_1.expectString(output.text), - url: smithy_client_1.expectString(output.url), - }; -}; -const deserializeAws_json1_1ReferencedImagesNotFoundException = (output, context) => { - return { - message: smithy_client_1.expectString(output.message), - }; -}; -const deserializeAws_json1_1ReferenceUrlsList = (output, context) => { - return (output || []) - .filter((e) => e != null) - .map((entry) => { - if (entry === null) { - return null; - } - return smithy_client_1.expectString(entry); - }); -}; -const deserializeAws_json1_1RegistryPolicyNotFoundException = (output, context) => { - return { - message: smithy_client_1.expectString(output.message), - }; -}; -const deserializeAws_json1_1RegistryScanningConfiguration = (output, context) => { - return { - rules: output.rules !== undefined && output.rules !== null - ? deserializeAws_json1_1RegistryScanningRuleList(output.rules, context) - : undefined, - scanType: smithy_client_1.expectString(output.scanType), - }; -}; -const deserializeAws_json1_1RegistryScanningRule = (output, context) => { - return { - repositoryFilters: output.repositoryFilters !== undefined && output.repositoryFilters !== null - ? deserializeAws_json1_1ScanningRepositoryFilterList(output.repositoryFilters, context) - : undefined, - scanFrequency: smithy_client_1.expectString(output.scanFrequency), - }; -}; -const deserializeAws_json1_1RegistryScanningRuleList = (output, context) => { - return (output || []) - .filter((e) => e != null) - .map((entry) => { - if (entry === null) { - return null; - } - return deserializeAws_json1_1RegistryScanningRule(entry, context); - }); -}; -const deserializeAws_json1_1RelatedVulnerabilitiesList = (output, context) => { - return (output || []) - .filter((e) => e != null) - .map((entry) => { - if (entry === null) { - return null; - } - return smithy_client_1.expectString(entry); - }); -}; -const deserializeAws_json1_1Remediation = (output, context) => { - return { - recommendation: output.recommendation !== undefined && output.recommendation !== null - ? deserializeAws_json1_1Recommendation(output.recommendation, context) - : undefined, - }; -}; -const deserializeAws_json1_1ReplicationConfiguration = (output, context) => { - return { - rules: output.rules !== undefined && output.rules !== null - ? deserializeAws_json1_1ReplicationRuleList(output.rules, context) - : undefined, - }; -}; -const deserializeAws_json1_1ReplicationDestination = (output, context) => { - return { - region: smithy_client_1.expectString(output.region), - registryId: smithy_client_1.expectString(output.registryId), - }; -}; -const deserializeAws_json1_1ReplicationDestinationList = (output, context) => { - return (output || []) - .filter((e) => e != null) - .map((entry) => { - if (entry === null) { - return null; - } - return deserializeAws_json1_1ReplicationDestination(entry, context); - }); -}; -const deserializeAws_json1_1ReplicationRule = (output, context) => { - return { - destinations: output.destinations !== undefined && output.destinations !== null - ? deserializeAws_json1_1ReplicationDestinationList(output.destinations, context) - : undefined, - repositoryFilters: output.repositoryFilters !== undefined && output.repositoryFilters !== null - ? deserializeAws_json1_1RepositoryFilterList(output.repositoryFilters, context) - : undefined, - }; -}; -const deserializeAws_json1_1ReplicationRuleList = (output, context) => { - return (output || []) - .filter((e) => e != null) - .map((entry) => { - if (entry === null) { - return null; - } - return deserializeAws_json1_1ReplicationRule(entry, context); - }); -}; -const deserializeAws_json1_1Repository = (output, context) => { - return { - createdAt: output.createdAt !== undefined && output.createdAt !== null - ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.createdAt))) - : undefined, - encryptionConfiguration: output.encryptionConfiguration !== undefined && output.encryptionConfiguration !== null - ? deserializeAws_json1_1EncryptionConfiguration(output.encryptionConfiguration, context) - : undefined, - imageScanningConfiguration: output.imageScanningConfiguration !== undefined && output.imageScanningConfiguration !== null - ? deserializeAws_json1_1ImageScanningConfiguration(output.imageScanningConfiguration, context) - : undefined, - imageTagMutability: smithy_client_1.expectString(output.imageTagMutability), - registryId: smithy_client_1.expectString(output.registryId), - repositoryArn: smithy_client_1.expectString(output.repositoryArn), - repositoryName: smithy_client_1.expectString(output.repositoryName), - repositoryUri: smithy_client_1.expectString(output.repositoryUri), - }; -}; -const deserializeAws_json1_1RepositoryAlreadyExistsException = (output, context) => { - return { - message: smithy_client_1.expectString(output.message), - }; -}; -const deserializeAws_json1_1RepositoryFilter = (output, context) => { - return { - filter: smithy_client_1.expectString(output.filter), - filterType: smithy_client_1.expectString(output.filterType), - }; -}; -const deserializeAws_json1_1RepositoryFilterList = (output, context) => { - return (output || []) - .filter((e) => e != null) - .map((entry) => { - if (entry === null) { - return null; - } - return deserializeAws_json1_1RepositoryFilter(entry, context); - }); -}; -const deserializeAws_json1_1RepositoryList = (output, context) => { - return (output || []) - .filter((e) => e != null) - .map((entry) => { - if (entry === null) { - return null; - } - return deserializeAws_json1_1Repository(entry, context); - }); -}; -const deserializeAws_json1_1RepositoryNotEmptyException = (output, context) => { - return { - message: smithy_client_1.expectString(output.message), - }; -}; -const deserializeAws_json1_1RepositoryNotFoundException = (output, context) => { - return { - message: smithy_client_1.expectString(output.message), - }; -}; -const deserializeAws_json1_1RepositoryPolicyNotFoundException = (output, context) => { - return { - message: smithy_client_1.expectString(output.message), - }; -}; -const deserializeAws_json1_1RepositoryScanningConfiguration = (output, context) => { - return { - appliedScanFilters: output.appliedScanFilters !== undefined && output.appliedScanFilters !== null - ? deserializeAws_json1_1ScanningRepositoryFilterList(output.appliedScanFilters, context) - : undefined, - repositoryArn: smithy_client_1.expectString(output.repositoryArn), - repositoryName: smithy_client_1.expectString(output.repositoryName), - scanFrequency: smithy_client_1.expectString(output.scanFrequency), - scanOnPush: smithy_client_1.expectBoolean(output.scanOnPush), - }; -}; -const deserializeAws_json1_1RepositoryScanningConfigurationFailure = (output, context) => { - return { - failureCode: smithy_client_1.expectString(output.failureCode), - failureReason: smithy_client_1.expectString(output.failureReason), - repositoryName: smithy_client_1.expectString(output.repositoryName), - }; -}; -const deserializeAws_json1_1RepositoryScanningConfigurationFailureList = (output, context) => { - return (output || []) - .filter((e) => e != null) - .map((entry) => { - if (entry === null) { - return null; - } - return deserializeAws_json1_1RepositoryScanningConfigurationFailure(entry, context); - }); -}; -const deserializeAws_json1_1RepositoryScanningConfigurationList = (output, context) => { - return (output || []) - .filter((e) => e != null) - .map((entry) => { - if (entry === null) { - return null; - } - return deserializeAws_json1_1RepositoryScanningConfiguration(entry, context); - }); -}; -const deserializeAws_json1_1Resource = (output, context) => { - return { - details: output.details !== undefined && output.details !== null - ? deserializeAws_json1_1ResourceDetails(output.details, context) - : undefined, - id: smithy_client_1.expectString(output.id), - tags: output.tags !== undefined && output.tags !== null ? deserializeAws_json1_1Tags(output.tags, context) : undefined, - type: smithy_client_1.expectString(output.type), - }; -}; -const deserializeAws_json1_1ResourceDetails = (output, context) => { - return { - awsEcrContainerImage: output.awsEcrContainerImage !== undefined && output.awsEcrContainerImage !== null - ? deserializeAws_json1_1AwsEcrContainerImageDetails(output.awsEcrContainerImage, context) - : undefined, - }; -}; -const deserializeAws_json1_1ResourceList = (output, context) => { - return (output || []) - .filter((e) => e != null) - .map((entry) => { - if (entry === null) { - return null; - } - return deserializeAws_json1_1Resource(entry, context); - }); -}; -const deserializeAws_json1_1ScanningRepositoryFilter = (output, context) => { - return { - filter: smithy_client_1.expectString(output.filter), - filterType: smithy_client_1.expectString(output.filterType), - }; -}; -const deserializeAws_json1_1ScanningRepositoryFilterList = (output, context) => { - return (output || []) - .filter((e) => e != null) - .map((entry) => { - if (entry === null) { - return null; - } - return deserializeAws_json1_1ScanningRepositoryFilter(entry, context); - }); -}; -const deserializeAws_json1_1ScanNotFoundException = (output, context) => { - return { - message: smithy_client_1.expectString(output.message), - }; -}; -const deserializeAws_json1_1ScoreDetails = (output, context) => { - return { - cvss: output.cvss !== undefined && output.cvss !== null - ? deserializeAws_json1_1CvssScoreDetails(output.cvss, context) - : undefined, - }; -}; -const deserializeAws_json1_1ServerException = (output, context) => { - return { - message: smithy_client_1.expectString(output.message), - }; -}; -const deserializeAws_json1_1SetRepositoryPolicyResponse = (output, context) => { - return { - policyText: smithy_client_1.expectString(output.policyText), - registryId: smithy_client_1.expectString(output.registryId), - repositoryName: smithy_client_1.expectString(output.repositoryName), - }; -}; -const deserializeAws_json1_1StartImageScanResponse = (output, context) => { - return { - imageId: output.imageId !== undefined && output.imageId !== null - ? deserializeAws_json1_1ImageIdentifier(output.imageId, context) - : undefined, - imageScanStatus: output.imageScanStatus !== undefined && output.imageScanStatus !== null - ? deserializeAws_json1_1ImageScanStatus(output.imageScanStatus, context) - : undefined, - registryId: smithy_client_1.expectString(output.registryId), - repositoryName: smithy_client_1.expectString(output.repositoryName), - }; -}; -const deserializeAws_json1_1StartLifecyclePolicyPreviewResponse = (output, context) => { - return { - lifecyclePolicyText: smithy_client_1.expectString(output.lifecyclePolicyText), - registryId: smithy_client_1.expectString(output.registryId), - repositoryName: smithy_client_1.expectString(output.repositoryName), - status: smithy_client_1.expectString(output.status), - }; -}; -const deserializeAws_json1_1Tag = (output, context) => { - return { - Key: smithy_client_1.expectString(output.Key), - Value: smithy_client_1.expectString(output.Value), - }; -}; -const deserializeAws_json1_1TagList = (output, context) => { - return (output || []) - .filter((e) => e != null) - .map((entry) => { - if (entry === null) { - return null; - } - return deserializeAws_json1_1Tag(entry, context); - }); -}; -const deserializeAws_json1_1TagResourceResponse = (output, context) => { - return {}; -}; -const deserializeAws_json1_1Tags = (output, context) => { - return Object.entries(output).reduce((acc, [key, value]) => { - if (value === null) { - return acc; - } - return { - ...acc, - [key]: smithy_client_1.expectString(value), - }; - }, {}); -}; -const deserializeAws_json1_1TooManyTagsException = (output, context) => { - return { - message: smithy_client_1.expectString(output.message), - }; -}; -const deserializeAws_json1_1UnsupportedImageTypeException = (output, context) => { - return { - message: smithy_client_1.expectString(output.message), - }; -}; -const deserializeAws_json1_1UnsupportedUpstreamRegistryException = (output, context) => { - return { - message: smithy_client_1.expectString(output.message), - }; -}; -const deserializeAws_json1_1UntagResourceResponse = (output, context) => { - return {}; -}; -const deserializeAws_json1_1UploadLayerPartResponse = (output, context) => { - return { - lastByteReceived: smithy_client_1.expectLong(output.lastByteReceived), - registryId: smithy_client_1.expectString(output.registryId), - repositoryName: smithy_client_1.expectString(output.repositoryName), - uploadId: smithy_client_1.expectString(output.uploadId), - }; -}; -const deserializeAws_json1_1UploadNotFoundException = (output, context) => { - return { - message: smithy_client_1.expectString(output.message), - }; -}; -const deserializeAws_json1_1ValidationException = (output, context) => { - return { - message: smithy_client_1.expectString(output.message), - }; -}; -const deserializeAws_json1_1VulnerablePackage = (output, context) => { - return { - arch: smithy_client_1.expectString(output.arch), - epoch: smithy_client_1.expectInt32(output.epoch), - filePath: smithy_client_1.expectString(output.filePath), - name: smithy_client_1.expectString(output.name), - packageManager: smithy_client_1.expectString(output.packageManager), - release: smithy_client_1.expectString(output.release), - sourceLayerHash: smithy_client_1.expectString(output.sourceLayerHash), - version: smithy_client_1.expectString(output.version), - }; -}; -const deserializeAws_json1_1VulnerablePackagesList = (output, context) => { - return (output || []) - .filter((e) => e != null) - .map((entry) => { - if (entry === null) { - return null; - } - return deserializeAws_json1_1VulnerablePackage(entry, context); - }); -}; -const deserializeMetadata = (output) => { - var _a; - return ({ - httpStatusCode: output.statusCode, - requestId: (_a = output.headers["x-amzn-requestid"]) !== null && _a !== void 0 ? _a : output.headers["x-amzn-request-id"], - extendedRequestId: output.headers["x-amz-id-2"], - cfId: output.headers["x-amz-cf-id"], - }); -}; -const collectBody = (streamBody = new Uint8Array(), context) => { - if (streamBody instanceof Uint8Array) { - return Promise.resolve(streamBody); - } - return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array()); -}; -const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body)); -const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); - const contents = { - protocol, - hostname, - port, - method: "POST", - path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path, - headers, - }; - if (resolvedHostname !== undefined) { - contents.hostname = resolvedHostname; - } - if (body !== undefined) { - contents.body = body; - } - return new protocol_http_1.HttpRequest(contents); -}; -const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => { - if (encoded.length) { - return JSON.parse(encoded); - } - return {}; -}); -const loadRestJsonErrorCode = (output, data) => { - const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase()); - const sanitizeErrorCode = (rawValue) => { - let cleanValue = rawValue; - if (cleanValue.indexOf(":") >= 0) { - cleanValue = cleanValue.split(":")[0]; - } - if (cleanValue.indexOf("#") >= 0) { - cleanValue = cleanValue.split("#")[1]; - } - return cleanValue; - }; - const headerKey = findKey(output.headers, "x-amzn-errortype"); - if (headerKey !== undefined) { - return sanitizeErrorCode(output.headers[headerKey]); - } - if (data.code !== undefined) { - return sanitizeErrorCode(data.code); - } - if (data["__type"] !== undefined) { - return sanitizeErrorCode(data["__type"]); - } - return ""; -}; - - -/***/ }), - -/***/ 869: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.getRuntimeConfig = void 0; -const tslib_1 = __nccwpck_require__(4351); -const package_json_1 = tslib_1.__importDefault(__nccwpck_require__(16879)); -const client_sts_1 = __nccwpck_require__(52209); -const config_resolver_1 = __nccwpck_require__(56153); -const credential_provider_node_1 = __nccwpck_require__(75531); -const hash_node_1 = __nccwpck_require__(97442); -const middleware_retry_1 = __nccwpck_require__(96064); -const node_config_provider_1 = __nccwpck_require__(87684); -const node_http_handler_1 = __nccwpck_require__(68805); -const util_base64_node_1 = __nccwpck_require__(18588); -const util_body_length_node_1 = __nccwpck_require__(74147); -const util_user_agent_node_1 = __nccwpck_require__(98095); -const util_utf8_node_1 = __nccwpck_require__(66278); -const runtimeConfig_shared_1 = __nccwpck_require__(70542); -const smithy_client_1 = __nccwpck_require__(4963); -const getRuntimeConfig = (config) => { - var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q; - smithy_client_1.emitWarningIfUnsupportedVersion(process.version); - const clientSharedValues = runtimeConfig_shared_1.getRuntimeConfig(config); - return { - ...clientSharedValues, - ...config, - runtime: "node", - base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : util_base64_node_1.fromBase64, - base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : util_base64_node_1.toBase64, - bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : util_body_length_node_1.calculateBodyLength, - credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : client_sts_1.decorateDefaultCredentialProvider(credential_provider_node_1.defaultProvider), - defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : util_user_agent_node_1.defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }), - maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : node_config_provider_1.loadConfig(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS), - region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : node_config_provider_1.loadConfig(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS), - requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new node_http_handler_1.NodeHttpHandler(), - retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : node_config_provider_1.loadConfig(middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS), - sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : hash_node_1.Hash.bind(null, "sha256"), - streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : node_http_handler_1.streamCollector, - useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : node_config_provider_1.loadConfig(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS), - useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : node_config_provider_1.loadConfig(config_resolver_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS), - utf8Decoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _p !== void 0 ? _p : util_utf8_node_1.fromUtf8, - utf8Encoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _q !== void 0 ? _q : util_utf8_node_1.toUtf8, - }; -}; -exports.getRuntimeConfig = getRuntimeConfig; - - -/***/ }), - -/***/ 70542: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.getRuntimeConfig = void 0; -const url_parser_1 = __nccwpck_require__(2992); -const endpoints_1 = __nccwpck_require__(63070); -const getRuntimeConfig = (config) => { - var _a, _b, _c, _d, _e; - return ({ - apiVersion: "2015-09-21", - disableHostPrefix: (_a = config === null || config === void 0 ? void 0 : config.disableHostPrefix) !== null && _a !== void 0 ? _a : false, - logger: (_b = config === null || config === void 0 ? void 0 : config.logger) !== null && _b !== void 0 ? _b : {}, - regionInfoProvider: (_c = config === null || config === void 0 ? void 0 : config.regionInfoProvider) !== null && _c !== void 0 ? _c : endpoints_1.defaultRegionInfoProvider, - serviceId: (_d = config === null || config === void 0 ? void 0 : config.serviceId) !== null && _d !== void 0 ? _d : "ECR", - urlParser: (_e = config === null || config === void 0 ? void 0 : config.urlParser) !== null && _e !== void 0 ? _e : url_parser_1.parseUrl, - }); -}; -exports.getRuntimeConfig = getRuntimeConfig; - - -/***/ }), - -/***/ 28406: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -const tslib_1 = __nccwpck_require__(4351); -tslib_1.__exportStar(__nccwpck_require__(78547), exports); -tslib_1.__exportStar(__nccwpck_require__(45723), exports); - - -/***/ }), - -/***/ 78547: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.waitUntilImageScanComplete = exports.waitForImageScanComplete = void 0; -const util_waiter_1 = __nccwpck_require__(21627); -const DescribeImageScanFindingsCommand_1 = __nccwpck_require__(72987); -const checkState = async (client, input) => { - let reason; - try { - const result = await client.send(new DescribeImageScanFindingsCommand_1.DescribeImageScanFindingsCommand(input)); - reason = result; - try { - const returnComparator = () => { - return result.imageScanStatus.status; - }; - if (returnComparator() === "COMPLETE") { - return { state: util_waiter_1.WaiterState.SUCCESS, reason }; - } - } - catch (e) { } - try { - const returnComparator = () => { - return result.imageScanStatus.status; - }; - if (returnComparator() === "FAILED") { - return { state: util_waiter_1.WaiterState.FAILURE, reason }; - } - } - catch (e) { } - } - catch (exception) { - reason = exception; - } - return { state: util_waiter_1.WaiterState.RETRY, reason }; -}; -const waitForImageScanComplete = async (params, input) => { - const serviceDefaults = { minDelay: 5, maxDelay: 120 }; - return util_waiter_1.createWaiter({ ...serviceDefaults, ...params }, input, checkState); -}; -exports.waitForImageScanComplete = waitForImageScanComplete; -const waitUntilImageScanComplete = async (params, input) => { - const serviceDefaults = { minDelay: 5, maxDelay: 120 }; - const result = await util_waiter_1.createWaiter({ ...serviceDefaults, ...params }, input, checkState); - return util_waiter_1.checkExceptions(result); -}; -exports.waitUntilImageScanComplete = waitUntilImageScanComplete; - - -/***/ }), - -/***/ 45723: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.waitUntilLifecyclePolicyPreviewComplete = exports.waitForLifecyclePolicyPreviewComplete = void 0; -const util_waiter_1 = __nccwpck_require__(21627); -const GetLifecyclePolicyPreviewCommand_1 = __nccwpck_require__(17006); -const checkState = async (client, input) => { - let reason; - try { - const result = await client.send(new GetLifecyclePolicyPreviewCommand_1.GetLifecyclePolicyPreviewCommand(input)); - reason = result; - try { - const returnComparator = () => { - return result.status; - }; - if (returnComparator() === "COMPLETE") { - return { state: util_waiter_1.WaiterState.SUCCESS, reason }; - } - } - catch (e) { } - try { - const returnComparator = () => { - return result.status; - }; - if (returnComparator() === "FAILED") { - return { state: util_waiter_1.WaiterState.FAILURE, reason }; - } - } - catch (e) { } - } - catch (exception) { - reason = exception; - } - return { state: util_waiter_1.WaiterState.RETRY, reason }; -}; -const waitForLifecyclePolicyPreviewComplete = async (params, input) => { - const serviceDefaults = { minDelay: 5, maxDelay: 120 }; - return util_waiter_1.createWaiter({ ...serviceDefaults, ...params }, input, checkState); -}; -exports.waitForLifecyclePolicyPreviewComplete = waitForLifecyclePolicyPreviewComplete; -const waitUntilLifecyclePolicyPreviewComplete = async (params, input) => { - const serviceDefaults = { minDelay: 5, maxDelay: 120 }; - const result = await util_waiter_1.createWaiter({ ...serviceDefaults, ...params }, input, checkState); - return util_waiter_1.checkExceptions(result); -}; -exports.waitUntilLifecyclePolicyPreviewComplete = waitUntilLifecyclePolicyPreviewComplete; - - -/***/ }), - -/***/ 69838: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.SSO = void 0; -const GetRoleCredentialsCommand_1 = __nccwpck_require__(18972); -const ListAccountRolesCommand_1 = __nccwpck_require__(1513); -const ListAccountsCommand_1 = __nccwpck_require__(64296); -const LogoutCommand_1 = __nccwpck_require__(12586); -const SSOClient_1 = __nccwpck_require__(71057); -class SSO extends SSOClient_1.SSOClient { - getRoleCredentials(args, optionsOrCb, cb) { - const command = new GetRoleCredentialsCommand_1.GetRoleCredentialsCommand(args); - if (typeof optionsOrCb === "function") { - this.send(command, optionsOrCb); - } - else if (typeof cb === "function") { - if (typeof optionsOrCb !== "object") - throw new Error(`Expect http options but get ${typeof optionsOrCb}`); - this.send(command, optionsOrCb || {}, cb); - } - else { - return this.send(command, optionsOrCb); - } - } - listAccountRoles(args, optionsOrCb, cb) { - const command = new ListAccountRolesCommand_1.ListAccountRolesCommand(args); - if (typeof optionsOrCb === "function") { - this.send(command, optionsOrCb); - } - else if (typeof cb === "function") { - if (typeof optionsOrCb !== "object") - throw new Error(`Expect http options but get ${typeof optionsOrCb}`); - this.send(command, optionsOrCb || {}, cb); - } - else { - return this.send(command, optionsOrCb); - } - } - listAccounts(args, optionsOrCb, cb) { - const command = new ListAccountsCommand_1.ListAccountsCommand(args); - if (typeof optionsOrCb === "function") { - this.send(command, optionsOrCb); - } - else if (typeof cb === "function") { - if (typeof optionsOrCb !== "object") - throw new Error(`Expect http options but get ${typeof optionsOrCb}`); - this.send(command, optionsOrCb || {}, cb); - } - else { - return this.send(command, optionsOrCb); - } - } - logout(args, optionsOrCb, cb) { - const command = new LogoutCommand_1.LogoutCommand(args); - if (typeof optionsOrCb === "function") { - this.send(command, optionsOrCb); - } - else if (typeof cb === "function") { - if (typeof optionsOrCb !== "object") - throw new Error(`Expect http options but get ${typeof optionsOrCb}`); - this.send(command, optionsOrCb || {}, cb); - } - else { - return this.send(command, optionsOrCb); - } - } -} -exports.SSO = SSO; - - -/***/ }), - -/***/ 71057: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.SSOClient = void 0; -const config_resolver_1 = __nccwpck_require__(56153); -const middleware_content_length_1 = __nccwpck_require__(42245); -const middleware_host_header_1 = __nccwpck_require__(22545); -const middleware_logger_1 = __nccwpck_require__(20014); -const middleware_retry_1 = __nccwpck_require__(96064); -const middleware_user_agent_1 = __nccwpck_require__(64688); -const smithy_client_1 = __nccwpck_require__(4963); -const runtimeConfig_1 = __nccwpck_require__(19756); -class SSOClient extends smithy_client_1.Client { - constructor(configuration) { - const _config_0 = runtimeConfig_1.getRuntimeConfig(configuration); - const _config_1 = config_resolver_1.resolveRegionConfig(_config_0); - const _config_2 = config_resolver_1.resolveEndpointsConfig(_config_1); - const _config_3 = middleware_retry_1.resolveRetryConfig(_config_2); - const _config_4 = middleware_host_header_1.resolveHostHeaderConfig(_config_3); - const _config_5 = middleware_user_agent_1.resolveUserAgentConfig(_config_4); - super(_config_5); - this.config = _config_5; - this.middlewareStack.use(middleware_retry_1.getRetryPlugin(this.config)); - this.middlewareStack.use(middleware_content_length_1.getContentLengthPlugin(this.config)); - this.middlewareStack.use(middleware_host_header_1.getHostHeaderPlugin(this.config)); - this.middlewareStack.use(middleware_logger_1.getLoggerPlugin(this.config)); - this.middlewareStack.use(middleware_user_agent_1.getUserAgentPlugin(this.config)); - } - destroy() { - super.destroy(); - } -} -exports.SSOClient = SSOClient; - - -/***/ }), - -/***/ 18972: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.GetRoleCredentialsCommand = void 0; -const middleware_serde_1 = __nccwpck_require__(93631); -const smithy_client_1 = __nccwpck_require__(4963); -const models_0_1 = __nccwpck_require__(66390); -const Aws_restJson1_1 = __nccwpck_require__(98507); -class GetRoleCredentialsCommand extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSOClient"; - const commandName = "GetRoleCredentialsCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_0_1.GetRoleCredentialsRequest.filterSensitiveLog, - outputFilterSensitiveLog: models_0_1.GetRoleCredentialsResponse.filterSensitiveLog, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return Aws_restJson1_1.serializeAws_restJson1GetRoleCredentialsCommand(input, context); - } - deserialize(output, context) { - return Aws_restJson1_1.deserializeAws_restJson1GetRoleCredentialsCommand(output, context); - } -} -exports.GetRoleCredentialsCommand = GetRoleCredentialsCommand; - - -/***/ }), - -/***/ 1513: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.ListAccountRolesCommand = void 0; -const middleware_serde_1 = __nccwpck_require__(93631); -const smithy_client_1 = __nccwpck_require__(4963); -const models_0_1 = __nccwpck_require__(66390); -const Aws_restJson1_1 = __nccwpck_require__(98507); -class ListAccountRolesCommand extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSOClient"; - const commandName = "ListAccountRolesCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_0_1.ListAccountRolesRequest.filterSensitiveLog, - outputFilterSensitiveLog: models_0_1.ListAccountRolesResponse.filterSensitiveLog, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return Aws_restJson1_1.serializeAws_restJson1ListAccountRolesCommand(input, context); - } - deserialize(output, context) { - return Aws_restJson1_1.deserializeAws_restJson1ListAccountRolesCommand(output, context); - } -} -exports.ListAccountRolesCommand = ListAccountRolesCommand; - - -/***/ }), - -/***/ 64296: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.ListAccountsCommand = void 0; -const middleware_serde_1 = __nccwpck_require__(93631); -const smithy_client_1 = __nccwpck_require__(4963); -const models_0_1 = __nccwpck_require__(66390); -const Aws_restJson1_1 = __nccwpck_require__(98507); -class ListAccountsCommand extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSOClient"; - const commandName = "ListAccountsCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_0_1.ListAccountsRequest.filterSensitiveLog, - outputFilterSensitiveLog: models_0_1.ListAccountsResponse.filterSensitiveLog, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return Aws_restJson1_1.serializeAws_restJson1ListAccountsCommand(input, context); - } - deserialize(output, context) { - return Aws_restJson1_1.deserializeAws_restJson1ListAccountsCommand(output, context); - } -} -exports.ListAccountsCommand = ListAccountsCommand; - - -/***/ }), - -/***/ 12586: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.LogoutCommand = void 0; -const middleware_serde_1 = __nccwpck_require__(93631); -const smithy_client_1 = __nccwpck_require__(4963); -const models_0_1 = __nccwpck_require__(66390); -const Aws_restJson1_1 = __nccwpck_require__(98507); -class LogoutCommand extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSOClient"; - const commandName = "LogoutCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_0_1.LogoutRequest.filterSensitiveLog, - outputFilterSensitiveLog: (output) => output, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return Aws_restJson1_1.serializeAws_restJson1LogoutCommand(input, context); - } - deserialize(output, context) { - return Aws_restJson1_1.deserializeAws_restJson1LogoutCommand(output, context); - } -} -exports.LogoutCommand = LogoutCommand; - - -/***/ }), - -/***/ 65706: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -const tslib_1 = __nccwpck_require__(4351); -tslib_1.__exportStar(__nccwpck_require__(18972), exports); -tslib_1.__exportStar(__nccwpck_require__(1513), exports); -tslib_1.__exportStar(__nccwpck_require__(64296), exports); -tslib_1.__exportStar(__nccwpck_require__(12586), exports); - - -/***/ }), - -/***/ 33546: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.defaultRegionInfoProvider = void 0; -const config_resolver_1 = __nccwpck_require__(56153); -const regionHash = { - "ap-northeast-1": { - variants: [ - { - hostname: "portal.sso.ap-northeast-1.amazonaws.com", - tags: [], - }, - ], - signingRegion: "ap-northeast-1", - }, - "ap-northeast-2": { - variants: [ - { - hostname: "portal.sso.ap-northeast-2.amazonaws.com", - tags: [], - }, - ], - signingRegion: "ap-northeast-2", - }, - "ap-south-1": { - variants: [ - { - hostname: "portal.sso.ap-south-1.amazonaws.com", - tags: [], - }, - ], - signingRegion: "ap-south-1", - }, - "ap-southeast-1": { - variants: [ - { - hostname: "portal.sso.ap-southeast-1.amazonaws.com", - tags: [], - }, - ], - signingRegion: "ap-southeast-1", - }, - "ap-southeast-2": { - variants: [ - { - hostname: "portal.sso.ap-southeast-2.amazonaws.com", - tags: [], - }, - ], - signingRegion: "ap-southeast-2", - }, - "ca-central-1": { - variants: [ - { - hostname: "portal.sso.ca-central-1.amazonaws.com", - tags: [], - }, - ], - signingRegion: "ca-central-1", - }, - "eu-central-1": { - variants: [ - { - hostname: "portal.sso.eu-central-1.amazonaws.com", - tags: [], - }, - ], - signingRegion: "eu-central-1", - }, - "eu-north-1": { - variants: [ - { - hostname: "portal.sso.eu-north-1.amazonaws.com", - tags: [], - }, - ], - signingRegion: "eu-north-1", - }, - "eu-west-1": { - variants: [ - { - hostname: "portal.sso.eu-west-1.amazonaws.com", - tags: [], - }, - ], - signingRegion: "eu-west-1", - }, - "eu-west-2": { - variants: [ - { - hostname: "portal.sso.eu-west-2.amazonaws.com", - tags: [], - }, - ], - signingRegion: "eu-west-2", - }, - "eu-west-3": { - variants: [ - { - hostname: "portal.sso.eu-west-3.amazonaws.com", - tags: [], - }, - ], - signingRegion: "eu-west-3", - }, - "sa-east-1": { - variants: [ - { - hostname: "portal.sso.sa-east-1.amazonaws.com", - tags: [], - }, - ], - signingRegion: "sa-east-1", - }, - "us-east-1": { - variants: [ - { - hostname: "portal.sso.us-east-1.amazonaws.com", - tags: [], - }, - ], - signingRegion: "us-east-1", - }, - "us-east-2": { - variants: [ - { - hostname: "portal.sso.us-east-2.amazonaws.com", - tags: [], - }, - ], - signingRegion: "us-east-2", - }, - "us-gov-west-1": { - variants: [ - { - hostname: "portal.sso.us-gov-west-1.amazonaws.com", - tags: [], - }, - ], - signingRegion: "us-gov-west-1", - }, - "us-west-2": { - variants: [ - { - hostname: "portal.sso.us-west-2.amazonaws.com", - tags: [], - }, - ], - signingRegion: "us-west-2", - }, -}; -const partitionHash = { - aws: { - regions: [ - "af-south-1", - "ap-east-1", - "ap-northeast-1", - "ap-northeast-2", - "ap-northeast-3", - "ap-south-1", - "ap-southeast-1", - "ap-southeast-2", - "ap-southeast-3", - "ca-central-1", - "eu-central-1", - "eu-north-1", - "eu-south-1", - "eu-west-1", - "eu-west-2", - "eu-west-3", - "me-south-1", - "sa-east-1", - "us-east-1", - "us-east-2", - "us-west-1", - "us-west-2", - ], - regionRegex: "^(us|eu|ap|sa|ca|me|af)\\-\\w+\\-\\d+$", - variants: [ - { - hostname: "portal.sso.{region}.amazonaws.com", - tags: [], - }, - { - hostname: "portal.sso-fips.{region}.amazonaws.com", - tags: ["fips"], - }, - { - hostname: "portal.sso-fips.{region}.api.aws", - tags: ["dualstack", "fips"], - }, - { - hostname: "portal.sso.{region}.api.aws", - tags: ["dualstack"], - }, - ], - }, - "aws-cn": { - regions: ["cn-north-1", "cn-northwest-1"], - regionRegex: "^cn\\-\\w+\\-\\d+$", - variants: [ - { - hostname: "portal.sso.{region}.amazonaws.com.cn", - tags: [], - }, - { - hostname: "portal.sso-fips.{region}.amazonaws.com.cn", - tags: ["fips"], - }, - { - hostname: "portal.sso-fips.{region}.api.amazonwebservices.com.cn", - tags: ["dualstack", "fips"], - }, - { - hostname: "portal.sso.{region}.api.amazonwebservices.com.cn", - tags: ["dualstack"], - }, - ], - }, - "aws-iso": { - regions: ["us-iso-east-1", "us-iso-west-1"], - regionRegex: "^us\\-iso\\-\\w+\\-\\d+$", - variants: [ - { - hostname: "portal.sso.{region}.c2s.ic.gov", - tags: [], - }, - { - hostname: "portal.sso-fips.{region}.c2s.ic.gov", - tags: ["fips"], - }, - ], - }, - "aws-iso-b": { - regions: ["us-isob-east-1"], - regionRegex: "^us\\-isob\\-\\w+\\-\\d+$", - variants: [ - { - hostname: "portal.sso.{region}.sc2s.sgov.gov", - tags: [], - }, - { - hostname: "portal.sso-fips.{region}.sc2s.sgov.gov", - tags: ["fips"], - }, - ], - }, - "aws-us-gov": { - regions: ["us-gov-east-1", "us-gov-west-1"], - regionRegex: "^us\\-gov\\-\\w+\\-\\d+$", - variants: [ - { - hostname: "portal.sso.{region}.amazonaws.com", - tags: [], - }, - { - hostname: "portal.sso-fips.{region}.amazonaws.com", - tags: ["fips"], - }, - { - hostname: "portal.sso-fips.{region}.api.aws", - tags: ["dualstack", "fips"], - }, - { - hostname: "portal.sso.{region}.api.aws", - tags: ["dualstack"], - }, - ], - }, -}; -const defaultRegionInfoProvider = async (region, options) => config_resolver_1.getRegionInfo(region, { - ...options, - signingService: "awsssoportal", - regionHash, - partitionHash, -}); -exports.defaultRegionInfoProvider = defaultRegionInfoProvider; - - -/***/ }), - -/***/ 82666: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -const tslib_1 = __nccwpck_require__(4351); -tslib_1.__exportStar(__nccwpck_require__(69838), exports); -tslib_1.__exportStar(__nccwpck_require__(71057), exports); -tslib_1.__exportStar(__nccwpck_require__(65706), exports); -tslib_1.__exportStar(__nccwpck_require__(14952), exports); -tslib_1.__exportStar(__nccwpck_require__(36773), exports); - - -/***/ }), - -/***/ 14952: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -const tslib_1 = __nccwpck_require__(4351); -tslib_1.__exportStar(__nccwpck_require__(66390), exports); - - -/***/ }), - -/***/ 66390: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.LogoutRequest = exports.ListAccountsResponse = exports.ListAccountsRequest = exports.ListAccountRolesResponse = exports.RoleInfo = exports.ListAccountRolesRequest = exports.UnauthorizedException = exports.TooManyRequestsException = exports.ResourceNotFoundException = exports.InvalidRequestException = exports.GetRoleCredentialsResponse = exports.RoleCredentials = exports.GetRoleCredentialsRequest = exports.AccountInfo = void 0; -const smithy_client_1 = __nccwpck_require__(4963); -var AccountInfo; -(function (AccountInfo) { - AccountInfo.filterSensitiveLog = (obj) => ({ - ...obj, - }); -})(AccountInfo = exports.AccountInfo || (exports.AccountInfo = {})); -var GetRoleCredentialsRequest; -(function (GetRoleCredentialsRequest) { - GetRoleCredentialsRequest.filterSensitiveLog = (obj) => ({ - ...obj, - ...(obj.accessToken && { accessToken: smithy_client_1.SENSITIVE_STRING }), - }); -})(GetRoleCredentialsRequest = exports.GetRoleCredentialsRequest || (exports.GetRoleCredentialsRequest = {})); -var RoleCredentials; -(function (RoleCredentials) { - RoleCredentials.filterSensitiveLog = (obj) => ({ - ...obj, - ...(obj.secretAccessKey && { secretAccessKey: smithy_client_1.SENSITIVE_STRING }), - ...(obj.sessionToken && { sessionToken: smithy_client_1.SENSITIVE_STRING }), - }); -})(RoleCredentials = exports.RoleCredentials || (exports.RoleCredentials = {})); -var GetRoleCredentialsResponse; -(function (GetRoleCredentialsResponse) { - GetRoleCredentialsResponse.filterSensitiveLog = (obj) => ({ - ...obj, - ...(obj.roleCredentials && { roleCredentials: RoleCredentials.filterSensitiveLog(obj.roleCredentials) }), - }); -})(GetRoleCredentialsResponse = exports.GetRoleCredentialsResponse || (exports.GetRoleCredentialsResponse = {})); -var InvalidRequestException; -(function (InvalidRequestException) { - InvalidRequestException.filterSensitiveLog = (obj) => ({ - ...obj, - }); -})(InvalidRequestException = exports.InvalidRequestException || (exports.InvalidRequestException = {})); -var ResourceNotFoundException; -(function (ResourceNotFoundException) { - ResourceNotFoundException.filterSensitiveLog = (obj) => ({ - ...obj, - }); -})(ResourceNotFoundException = exports.ResourceNotFoundException || (exports.ResourceNotFoundException = {})); -var TooManyRequestsException; -(function (TooManyRequestsException) { - TooManyRequestsException.filterSensitiveLog = (obj) => ({ - ...obj, - }); -})(TooManyRequestsException = exports.TooManyRequestsException || (exports.TooManyRequestsException = {})); -var UnauthorizedException; -(function (UnauthorizedException) { - UnauthorizedException.filterSensitiveLog = (obj) => ({ - ...obj, - }); -})(UnauthorizedException = exports.UnauthorizedException || (exports.UnauthorizedException = {})); -var ListAccountRolesRequest; -(function (ListAccountRolesRequest) { - ListAccountRolesRequest.filterSensitiveLog = (obj) => ({ - ...obj, - ...(obj.accessToken && { accessToken: smithy_client_1.SENSITIVE_STRING }), - }); -})(ListAccountRolesRequest = exports.ListAccountRolesRequest || (exports.ListAccountRolesRequest = {})); -var RoleInfo; -(function (RoleInfo) { - RoleInfo.filterSensitiveLog = (obj) => ({ - ...obj, - }); -})(RoleInfo = exports.RoleInfo || (exports.RoleInfo = {})); -var ListAccountRolesResponse; -(function (ListAccountRolesResponse) { - ListAccountRolesResponse.filterSensitiveLog = (obj) => ({ - ...obj, - }); -})(ListAccountRolesResponse = exports.ListAccountRolesResponse || (exports.ListAccountRolesResponse = {})); -var ListAccountsRequest; -(function (ListAccountsRequest) { - ListAccountsRequest.filterSensitiveLog = (obj) => ({ - ...obj, - ...(obj.accessToken && { accessToken: smithy_client_1.SENSITIVE_STRING }), - }); -})(ListAccountsRequest = exports.ListAccountsRequest || (exports.ListAccountsRequest = {})); -var ListAccountsResponse; -(function (ListAccountsResponse) { - ListAccountsResponse.filterSensitiveLog = (obj) => ({ - ...obj, - }); -})(ListAccountsResponse = exports.ListAccountsResponse || (exports.ListAccountsResponse = {})); -var LogoutRequest; -(function (LogoutRequest) { - LogoutRequest.filterSensitiveLog = (obj) => ({ - ...obj, - ...(obj.accessToken && { accessToken: smithy_client_1.SENSITIVE_STRING }), - }); -})(LogoutRequest = exports.LogoutRequest || (exports.LogoutRequest = {})); - - -/***/ }), - -/***/ 80849: -/***/ ((__unused_webpack_module, exports) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); - - -/***/ }), - -/***/ 88460: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.paginateListAccountRoles = void 0; -const ListAccountRolesCommand_1 = __nccwpck_require__(1513); -const SSO_1 = __nccwpck_require__(69838); -const SSOClient_1 = __nccwpck_require__(71057); -const makePagedClientRequest = async (client, input, ...args) => { - return await client.send(new ListAccountRolesCommand_1.ListAccountRolesCommand(input), ...args); -}; -const makePagedRequest = async (client, input, ...args) => { - return await client.listAccountRoles(input, ...args); -}; -async function* paginateListAccountRoles(config, input, ...additionalArguments) { - let token = config.startingToken || undefined; - let hasNext = true; - let page; - while (hasNext) { - input.nextToken = token; - input["maxResults"] = config.pageSize; - if (config.client instanceof SSO_1.SSO) { - page = await makePagedRequest(config.client, input, ...additionalArguments); - } - else if (config.client instanceof SSOClient_1.SSOClient) { - page = await makePagedClientRequest(config.client, input, ...additionalArguments); - } - else { - throw new Error("Invalid client, expected SSO | SSOClient"); - } - yield page; - token = page.nextToken; - hasNext = !!token; - } - return undefined; -} -exports.paginateListAccountRoles = paginateListAccountRoles; - - -/***/ }), - -/***/ 50938: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.paginateListAccounts = void 0; -const ListAccountsCommand_1 = __nccwpck_require__(64296); -const SSO_1 = __nccwpck_require__(69838); -const SSOClient_1 = __nccwpck_require__(71057); -const makePagedClientRequest = async (client, input, ...args) => { - return await client.send(new ListAccountsCommand_1.ListAccountsCommand(input), ...args); -}; -const makePagedRequest = async (client, input, ...args) => { - return await client.listAccounts(input, ...args); -}; -async function* paginateListAccounts(config, input, ...additionalArguments) { - let token = config.startingToken || undefined; - let hasNext = true; - let page; - while (hasNext) { - input.nextToken = token; - input["maxResults"] = config.pageSize; - if (config.client instanceof SSO_1.SSO) { - page = await makePagedRequest(config.client, input, ...additionalArguments); - } - else if (config.client instanceof SSOClient_1.SSOClient) { - page = await makePagedClientRequest(config.client, input, ...additionalArguments); - } - else { - throw new Error("Invalid client, expected SSO | SSOClient"); - } - yield page; - token = page.nextToken; - hasNext = !!token; - } - return undefined; -} -exports.paginateListAccounts = paginateListAccounts; - - -/***/ }), - -/***/ 36773: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -const tslib_1 = __nccwpck_require__(4351); -tslib_1.__exportStar(__nccwpck_require__(80849), exports); -tslib_1.__exportStar(__nccwpck_require__(88460), exports); -tslib_1.__exportStar(__nccwpck_require__(50938), exports); - - -/***/ }), - -/***/ 98507: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.deserializeAws_restJson1LogoutCommand = exports.deserializeAws_restJson1ListAccountsCommand = exports.deserializeAws_restJson1ListAccountRolesCommand = exports.deserializeAws_restJson1GetRoleCredentialsCommand = exports.serializeAws_restJson1LogoutCommand = exports.serializeAws_restJson1ListAccountsCommand = exports.serializeAws_restJson1ListAccountRolesCommand = exports.serializeAws_restJson1GetRoleCredentialsCommand = void 0; -const protocol_http_1 = __nccwpck_require__(70223); -const smithy_client_1 = __nccwpck_require__(4963); -const serializeAws_restJson1GetRoleCredentialsCommand = async (input, context) => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); - const headers = { - ...(isSerializableHeaderValue(input.accessToken) && { "x-amz-sso_bearer_token": input.accessToken }), - }; - const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/federation/credentials"; - const query = { - ...(input.roleName !== undefined && { role_name: input.roleName }), - ...(input.accountId !== undefined && { account_id: input.accountId }), - }; - let body; - return new protocol_http_1.HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); -}; -exports.serializeAws_restJson1GetRoleCredentialsCommand = serializeAws_restJson1GetRoleCredentialsCommand; -const serializeAws_restJson1ListAccountRolesCommand = async (input, context) => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); - const headers = { - ...(isSerializableHeaderValue(input.accessToken) && { "x-amz-sso_bearer_token": input.accessToken }), - }; - const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/assignment/roles"; - const query = { - ...(input.nextToken !== undefined && { next_token: input.nextToken }), - ...(input.maxResults !== undefined && { max_result: input.maxResults.toString() }), - ...(input.accountId !== undefined && { account_id: input.accountId }), - }; - let body; - return new protocol_http_1.HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); -}; -exports.serializeAws_restJson1ListAccountRolesCommand = serializeAws_restJson1ListAccountRolesCommand; -const serializeAws_restJson1ListAccountsCommand = async (input, context) => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); - const headers = { - ...(isSerializableHeaderValue(input.accessToken) && { "x-amz-sso_bearer_token": input.accessToken }), - }; - const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/assignment/accounts"; - const query = { - ...(input.nextToken !== undefined && { next_token: input.nextToken }), - ...(input.maxResults !== undefined && { max_result: input.maxResults.toString() }), - }; - let body; - return new protocol_http_1.HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); -}; -exports.serializeAws_restJson1ListAccountsCommand = serializeAws_restJson1ListAccountsCommand; -const serializeAws_restJson1LogoutCommand = async (input, context) => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); - const headers = { - ...(isSerializableHeaderValue(input.accessToken) && { "x-amz-sso_bearer_token": input.accessToken }), - }; - const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/logout"; - let body; - return new protocol_http_1.HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); -}; -exports.serializeAws_restJson1LogoutCommand = serializeAws_restJson1LogoutCommand; -const deserializeAws_restJson1GetRoleCredentialsCommand = async (output, context) => { - if (output.statusCode !== 200 && output.statusCode >= 300) { - return deserializeAws_restJson1GetRoleCredentialsCommandError(output, context); - } - const contents = { - $metadata: deserializeMetadata(output), - roleCredentials: undefined, - }; - const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body"); - if (data.roleCredentials !== undefined && data.roleCredentials !== null) { - contents.roleCredentials = deserializeAws_restJson1RoleCredentials(data.roleCredentials, context); - } - return Promise.resolve(contents); -}; -exports.deserializeAws_restJson1GetRoleCredentialsCommand = deserializeAws_restJson1GetRoleCredentialsCommand; -const deserializeAws_restJson1GetRoleCredentialsCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context), - }; - let response; - let errorCode = "UnknownError"; - errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InvalidRequestException": - case "com.amazonaws.sso#InvalidRequestException": - response = { - ...(await deserializeAws_restJson1InvalidRequestExceptionResponse(parsedOutput, context)), - name: errorCode, - $metadata: deserializeMetadata(output), - }; - break; - case "ResourceNotFoundException": - case "com.amazonaws.sso#ResourceNotFoundException": - response = { - ...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)), - name: errorCode, - $metadata: deserializeMetadata(output), - }; - break; - case "TooManyRequestsException": - case "com.amazonaws.sso#TooManyRequestsException": - response = { - ...(await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)), - name: errorCode, - $metadata: deserializeMetadata(output), - }; - break; - case "UnauthorizedException": - case "com.amazonaws.sso#UnauthorizedException": - response = { - ...(await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context)), - name: errorCode, - $metadata: deserializeMetadata(output), - }; - break; - default: - const parsedBody = parsedOutput.body; - errorCode = parsedBody.code || parsedBody.Code || errorCode; - response = { - ...parsedBody, - name: `${errorCode}`, - message: parsedBody.message || parsedBody.Message || errorCode, - $fault: "client", - $metadata: deserializeMetadata(output), - }; - } - const message = response.message || response.Message || errorCode; - response.message = message; - delete response.Message; - return Promise.reject(Object.assign(new Error(message), response)); -}; -const deserializeAws_restJson1ListAccountRolesCommand = async (output, context) => { - if (output.statusCode !== 200 && output.statusCode >= 300) { - return deserializeAws_restJson1ListAccountRolesCommandError(output, context); - } - const contents = { - $metadata: deserializeMetadata(output), - nextToken: undefined, - roleList: undefined, - }; - const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body"); - if (data.nextToken !== undefined && data.nextToken !== null) { - contents.nextToken = smithy_client_1.expectString(data.nextToken); - } - if (data.roleList !== undefined && data.roleList !== null) { - contents.roleList = deserializeAws_restJson1RoleListType(data.roleList, context); - } - return Promise.resolve(contents); -}; -exports.deserializeAws_restJson1ListAccountRolesCommand = deserializeAws_restJson1ListAccountRolesCommand; -const deserializeAws_restJson1ListAccountRolesCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context), - }; - let response; - let errorCode = "UnknownError"; - errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InvalidRequestException": - case "com.amazonaws.sso#InvalidRequestException": - response = { - ...(await deserializeAws_restJson1InvalidRequestExceptionResponse(parsedOutput, context)), - name: errorCode, - $metadata: deserializeMetadata(output), - }; - break; - case "ResourceNotFoundException": - case "com.amazonaws.sso#ResourceNotFoundException": - response = { - ...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)), - name: errorCode, - $metadata: deserializeMetadata(output), - }; - break; - case "TooManyRequestsException": - case "com.amazonaws.sso#TooManyRequestsException": - response = { - ...(await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)), - name: errorCode, - $metadata: deserializeMetadata(output), - }; - break; - case "UnauthorizedException": - case "com.amazonaws.sso#UnauthorizedException": - response = { - ...(await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context)), - name: errorCode, - $metadata: deserializeMetadata(output), - }; - break; - default: - const parsedBody = parsedOutput.body; - errorCode = parsedBody.code || parsedBody.Code || errorCode; - response = { - ...parsedBody, - name: `${errorCode}`, - message: parsedBody.message || parsedBody.Message || errorCode, - $fault: "client", - $metadata: deserializeMetadata(output), - }; - } - const message = response.message || response.Message || errorCode; - response.message = message; - delete response.Message; - return Promise.reject(Object.assign(new Error(message), response)); -}; -const deserializeAws_restJson1ListAccountsCommand = async (output, context) => { - if (output.statusCode !== 200 && output.statusCode >= 300) { - return deserializeAws_restJson1ListAccountsCommandError(output, context); - } - const contents = { - $metadata: deserializeMetadata(output), - accountList: undefined, - nextToken: undefined, - }; - const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body"); - if (data.accountList !== undefined && data.accountList !== null) { - contents.accountList = deserializeAws_restJson1AccountListType(data.accountList, context); - } - if (data.nextToken !== undefined && data.nextToken !== null) { - contents.nextToken = smithy_client_1.expectString(data.nextToken); - } - return Promise.resolve(contents); -}; -exports.deserializeAws_restJson1ListAccountsCommand = deserializeAws_restJson1ListAccountsCommand; -const deserializeAws_restJson1ListAccountsCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context), - }; - let response; - let errorCode = "UnknownError"; - errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InvalidRequestException": - case "com.amazonaws.sso#InvalidRequestException": - response = { - ...(await deserializeAws_restJson1InvalidRequestExceptionResponse(parsedOutput, context)), - name: errorCode, - $metadata: deserializeMetadata(output), - }; - break; - case "ResourceNotFoundException": - case "com.amazonaws.sso#ResourceNotFoundException": - response = { - ...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)), - name: errorCode, - $metadata: deserializeMetadata(output), - }; - break; - case "TooManyRequestsException": - case "com.amazonaws.sso#TooManyRequestsException": - response = { - ...(await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)), - name: errorCode, - $metadata: deserializeMetadata(output), - }; - break; - case "UnauthorizedException": - case "com.amazonaws.sso#UnauthorizedException": - response = { - ...(await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context)), - name: errorCode, - $metadata: deserializeMetadata(output), - }; - break; - default: - const parsedBody = parsedOutput.body; - errorCode = parsedBody.code || parsedBody.Code || errorCode; - response = { - ...parsedBody, - name: `${errorCode}`, - message: parsedBody.message || parsedBody.Message || errorCode, - $fault: "client", - $metadata: deserializeMetadata(output), - }; - } - const message = response.message || response.Message || errorCode; - response.message = message; - delete response.Message; - return Promise.reject(Object.assign(new Error(message), response)); -}; -const deserializeAws_restJson1LogoutCommand = async (output, context) => { - if (output.statusCode !== 200 && output.statusCode >= 300) { - return deserializeAws_restJson1LogoutCommandError(output, context); - } - const contents = { - $metadata: deserializeMetadata(output), - }; - await collectBody(output.body, context); - return Promise.resolve(contents); -}; -exports.deserializeAws_restJson1LogoutCommand = deserializeAws_restJson1LogoutCommand; -const deserializeAws_restJson1LogoutCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context), - }; - let response; - let errorCode = "UnknownError"; - errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InvalidRequestException": - case "com.amazonaws.sso#InvalidRequestException": - response = { - ...(await deserializeAws_restJson1InvalidRequestExceptionResponse(parsedOutput, context)), - name: errorCode, - $metadata: deserializeMetadata(output), - }; - break; - case "TooManyRequestsException": - case "com.amazonaws.sso#TooManyRequestsException": - response = { - ...(await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)), - name: errorCode, - $metadata: deserializeMetadata(output), - }; - break; - case "UnauthorizedException": - case "com.amazonaws.sso#UnauthorizedException": - response = { - ...(await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context)), - name: errorCode, - $metadata: deserializeMetadata(output), - }; - break; - default: - const parsedBody = parsedOutput.body; - errorCode = parsedBody.code || parsedBody.Code || errorCode; - response = { - ...parsedBody, - name: `${errorCode}`, - message: parsedBody.message || parsedBody.Message || errorCode, - $fault: "client", - $metadata: deserializeMetadata(output), - }; - } - const message = response.message || response.Message || errorCode; - response.message = message; - delete response.Message; - return Promise.reject(Object.assign(new Error(message), response)); -}; -const deserializeAws_restJson1InvalidRequestExceptionResponse = async (parsedOutput, context) => { - const contents = { - name: "InvalidRequestException", - $fault: "client", - $metadata: deserializeMetadata(parsedOutput), - message: undefined, - }; - const data = parsedOutput.body; - if (data.message !== undefined && data.message !== null) { - contents.message = smithy_client_1.expectString(data.message); - } - return contents; -}; -const deserializeAws_restJson1ResourceNotFoundExceptionResponse = async (parsedOutput, context) => { - const contents = { - name: "ResourceNotFoundException", - $fault: "client", - $metadata: deserializeMetadata(parsedOutput), - message: undefined, - }; - const data = parsedOutput.body; - if (data.message !== undefined && data.message !== null) { - contents.message = smithy_client_1.expectString(data.message); - } - return contents; -}; -const deserializeAws_restJson1TooManyRequestsExceptionResponse = async (parsedOutput, context) => { - const contents = { - name: "TooManyRequestsException", - $fault: "client", - $metadata: deserializeMetadata(parsedOutput), - message: undefined, - }; - const data = parsedOutput.body; - if (data.message !== undefined && data.message !== null) { - contents.message = smithy_client_1.expectString(data.message); - } - return contents; -}; -const deserializeAws_restJson1UnauthorizedExceptionResponse = async (parsedOutput, context) => { - const contents = { - name: "UnauthorizedException", - $fault: "client", - $metadata: deserializeMetadata(parsedOutput), - message: undefined, - }; - const data = parsedOutput.body; - if (data.message !== undefined && data.message !== null) { - contents.message = smithy_client_1.expectString(data.message); - } - return contents; -}; -const deserializeAws_restJson1AccountInfo = (output, context) => { - return { - accountId: smithy_client_1.expectString(output.accountId), - accountName: smithy_client_1.expectString(output.accountName), - emailAddress: smithy_client_1.expectString(output.emailAddress), - }; -}; -const deserializeAws_restJson1AccountListType = (output, context) => { - return (output || []) - .filter((e) => e != null) - .map((entry) => { - if (entry === null) { - return null; - } - return deserializeAws_restJson1AccountInfo(entry, context); - }); -}; -const deserializeAws_restJson1RoleCredentials = (output, context) => { - return { - accessKeyId: smithy_client_1.expectString(output.accessKeyId), - expiration: smithy_client_1.expectLong(output.expiration), - secretAccessKey: smithy_client_1.expectString(output.secretAccessKey), - sessionToken: smithy_client_1.expectString(output.sessionToken), - }; -}; -const deserializeAws_restJson1RoleInfo = (output, context) => { - return { - accountId: smithy_client_1.expectString(output.accountId), - roleName: smithy_client_1.expectString(output.roleName), - }; -}; -const deserializeAws_restJson1RoleListType = (output, context) => { - return (output || []) - .filter((e) => e != null) - .map((entry) => { - if (entry === null) { - return null; - } - return deserializeAws_restJson1RoleInfo(entry, context); - }); -}; -const deserializeMetadata = (output) => { - var _a; - return ({ - httpStatusCode: output.statusCode, - requestId: (_a = output.headers["x-amzn-requestid"]) !== null && _a !== void 0 ? _a : output.headers["x-amzn-request-id"], - extendedRequestId: output.headers["x-amz-id-2"], - cfId: output.headers["x-amz-cf-id"], - }); -}; -const collectBody = (streamBody = new Uint8Array(), context) => { - if (streamBody instanceof Uint8Array) { - return Promise.resolve(streamBody); - } - return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array()); -}; -const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body)); -const isSerializableHeaderValue = (value) => value !== undefined && - value !== null && - value !== "" && - (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) && - (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0); -const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => { - if (encoded.length) { - return JSON.parse(encoded); - } - return {}; -}); -const loadRestJsonErrorCode = (output, data) => { - const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase()); - const sanitizeErrorCode = (rawValue) => { - let cleanValue = rawValue; - if (cleanValue.indexOf(":") >= 0) { - cleanValue = cleanValue.split(":")[0]; - } - if (cleanValue.indexOf("#") >= 0) { - cleanValue = cleanValue.split("#")[1]; - } - return cleanValue; - }; - const headerKey = findKey(output.headers, "x-amzn-errortype"); - if (headerKey !== undefined) { - return sanitizeErrorCode(output.headers[headerKey]); - } - if (data.code !== undefined) { - return sanitizeErrorCode(data.code); - } - if (data["__type"] !== undefined) { - return sanitizeErrorCode(data["__type"]); - } - return ""; -}; - - -/***/ }), - -/***/ 19756: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.getRuntimeConfig = void 0; -const tslib_1 = __nccwpck_require__(4351); -const package_json_1 = tslib_1.__importDefault(__nccwpck_require__(63966)); -const config_resolver_1 = __nccwpck_require__(56153); -const hash_node_1 = __nccwpck_require__(97442); -const middleware_retry_1 = __nccwpck_require__(96064); -const node_config_provider_1 = __nccwpck_require__(87684); -const node_http_handler_1 = __nccwpck_require__(68805); -const util_base64_node_1 = __nccwpck_require__(18588); -const util_body_length_node_1 = __nccwpck_require__(74147); -const util_user_agent_node_1 = __nccwpck_require__(98095); -const util_utf8_node_1 = __nccwpck_require__(66278); -const runtimeConfig_shared_1 = __nccwpck_require__(44809); -const smithy_client_1 = __nccwpck_require__(4963); -const getRuntimeConfig = (config) => { - var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p; - smithy_client_1.emitWarningIfUnsupportedVersion(process.version); - const clientSharedValues = runtimeConfig_shared_1.getRuntimeConfig(config); - return { - ...clientSharedValues, - ...config, - runtime: "node", - base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : util_base64_node_1.fromBase64, - base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : util_base64_node_1.toBase64, - bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : util_body_length_node_1.calculateBodyLength, - defaultUserAgentProvider: (_d = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _d !== void 0 ? _d : util_user_agent_node_1.defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }), - maxAttempts: (_e = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _e !== void 0 ? _e : node_config_provider_1.loadConfig(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS), - region: (_f = config === null || config === void 0 ? void 0 : config.region) !== null && _f !== void 0 ? _f : node_config_provider_1.loadConfig(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS), - requestHandler: (_g = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _g !== void 0 ? _g : new node_http_handler_1.NodeHttpHandler(), - retryMode: (_h = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _h !== void 0 ? _h : node_config_provider_1.loadConfig(middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS), - sha256: (_j = config === null || config === void 0 ? void 0 : config.sha256) !== null && _j !== void 0 ? _j : hash_node_1.Hash.bind(null, "sha256"), - streamCollector: (_k = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _k !== void 0 ? _k : node_http_handler_1.streamCollector, - useDualstackEndpoint: (_l = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _l !== void 0 ? _l : node_config_provider_1.loadConfig(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS), - useFipsEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _m !== void 0 ? _m : node_config_provider_1.loadConfig(config_resolver_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS), - utf8Decoder: (_o = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _o !== void 0 ? _o : util_utf8_node_1.fromUtf8, - utf8Encoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _p !== void 0 ? _p : util_utf8_node_1.toUtf8, - }; -}; -exports.getRuntimeConfig = getRuntimeConfig; - - -/***/ }), - -/***/ 44809: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.getRuntimeConfig = void 0; -const url_parser_1 = __nccwpck_require__(2992); -const endpoints_1 = __nccwpck_require__(33546); -const getRuntimeConfig = (config) => { - var _a, _b, _c, _d, _e; - return ({ - apiVersion: "2019-06-10", - disableHostPrefix: (_a = config === null || config === void 0 ? void 0 : config.disableHostPrefix) !== null && _a !== void 0 ? _a : false, - logger: (_b = config === null || config === void 0 ? void 0 : config.logger) !== null && _b !== void 0 ? _b : {}, - regionInfoProvider: (_c = config === null || config === void 0 ? void 0 : config.regionInfoProvider) !== null && _c !== void 0 ? _c : endpoints_1.defaultRegionInfoProvider, - serviceId: (_d = config === null || config === void 0 ? void 0 : config.serviceId) !== null && _d !== void 0 ? _d : "SSO", - urlParser: (_e = config === null || config === void 0 ? void 0 : config.urlParser) !== null && _e !== void 0 ? _e : url_parser_1.parseUrl, - }); -}; -exports.getRuntimeConfig = getRuntimeConfig; - - -/***/ }), - -/***/ 32605: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.STS = void 0; -const AssumeRoleCommand_1 = __nccwpck_require__(59802); -const AssumeRoleWithSAMLCommand_1 = __nccwpck_require__(72865); -const AssumeRoleWithWebIdentityCommand_1 = __nccwpck_require__(37451); -const DecodeAuthorizationMessageCommand_1 = __nccwpck_require__(74150); -const GetAccessKeyInfoCommand_1 = __nccwpck_require__(49804); -const GetCallerIdentityCommand_1 = __nccwpck_require__(24278); -const GetFederationTokenCommand_1 = __nccwpck_require__(57552); -const GetSessionTokenCommand_1 = __nccwpck_require__(43285); -const STSClient_1 = __nccwpck_require__(64195); -class STS extends STSClient_1.STSClient { - assumeRole(args, optionsOrCb, cb) { - const command = new AssumeRoleCommand_1.AssumeRoleCommand(args); - if (typeof optionsOrCb === "function") { - this.send(command, optionsOrCb); - } - else if (typeof cb === "function") { - if (typeof optionsOrCb !== "object") - throw new Error(`Expect http options but get ${typeof optionsOrCb}`); - this.send(command, optionsOrCb || {}, cb); - } - else { - return this.send(command, optionsOrCb); - } - } - assumeRoleWithSAML(args, optionsOrCb, cb) { - const command = new AssumeRoleWithSAMLCommand_1.AssumeRoleWithSAMLCommand(args); - if (typeof optionsOrCb === "function") { - this.send(command, optionsOrCb); - } - else if (typeof cb === "function") { - if (typeof optionsOrCb !== "object") - throw new Error(`Expect http options but get ${typeof optionsOrCb}`); - this.send(command, optionsOrCb || {}, cb); - } - else { - return this.send(command, optionsOrCb); - } - } - assumeRoleWithWebIdentity(args, optionsOrCb, cb) { - const command = new AssumeRoleWithWebIdentityCommand_1.AssumeRoleWithWebIdentityCommand(args); - if (typeof optionsOrCb === "function") { - this.send(command, optionsOrCb); - } - else if (typeof cb === "function") { - if (typeof optionsOrCb !== "object") - throw new Error(`Expect http options but get ${typeof optionsOrCb}`); - this.send(command, optionsOrCb || {}, cb); - } - else { - return this.send(command, optionsOrCb); - } - } - decodeAuthorizationMessage(args, optionsOrCb, cb) { - const command = new DecodeAuthorizationMessageCommand_1.DecodeAuthorizationMessageCommand(args); - if (typeof optionsOrCb === "function") { - this.send(command, optionsOrCb); - } - else if (typeof cb === "function") { - if (typeof optionsOrCb !== "object") - throw new Error(`Expect http options but get ${typeof optionsOrCb}`); - this.send(command, optionsOrCb || {}, cb); - } - else { - return this.send(command, optionsOrCb); - } - } - getAccessKeyInfo(args, optionsOrCb, cb) { - const command = new GetAccessKeyInfoCommand_1.GetAccessKeyInfoCommand(args); - if (typeof optionsOrCb === "function") { - this.send(command, optionsOrCb); - } - else if (typeof cb === "function") { - if (typeof optionsOrCb !== "object") - throw new Error(`Expect http options but get ${typeof optionsOrCb}`); - this.send(command, optionsOrCb || {}, cb); - } - else { - return this.send(command, optionsOrCb); - } - } - getCallerIdentity(args, optionsOrCb, cb) { - const command = new GetCallerIdentityCommand_1.GetCallerIdentityCommand(args); - if (typeof optionsOrCb === "function") { - this.send(command, optionsOrCb); - } - else if (typeof cb === "function") { - if (typeof optionsOrCb !== "object") - throw new Error(`Expect http options but get ${typeof optionsOrCb}`); - this.send(command, optionsOrCb || {}, cb); - } - else { - return this.send(command, optionsOrCb); - } - } - getFederationToken(args, optionsOrCb, cb) { - const command = new GetFederationTokenCommand_1.GetFederationTokenCommand(args); - if (typeof optionsOrCb === "function") { - this.send(command, optionsOrCb); - } - else if (typeof cb === "function") { - if (typeof optionsOrCb !== "object") - throw new Error(`Expect http options but get ${typeof optionsOrCb}`); - this.send(command, optionsOrCb || {}, cb); - } - else { - return this.send(command, optionsOrCb); - } - } - getSessionToken(args, optionsOrCb, cb) { - const command = new GetSessionTokenCommand_1.GetSessionTokenCommand(args); - if (typeof optionsOrCb === "function") { - this.send(command, optionsOrCb); - } - else if (typeof cb === "function") { - if (typeof optionsOrCb !== "object") - throw new Error(`Expect http options but get ${typeof optionsOrCb}`); - this.send(command, optionsOrCb || {}, cb); - } - else { - return this.send(command, optionsOrCb); - } - } -} -exports.STS = STS; - - -/***/ }), - -/***/ 64195: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.STSClient = void 0; -const config_resolver_1 = __nccwpck_require__(56153); -const middleware_content_length_1 = __nccwpck_require__(42245); -const middleware_host_header_1 = __nccwpck_require__(22545); -const middleware_logger_1 = __nccwpck_require__(20014); -const middleware_retry_1 = __nccwpck_require__(96064); -const middleware_sdk_sts_1 = __nccwpck_require__(55959); -const middleware_user_agent_1 = __nccwpck_require__(64688); -const smithy_client_1 = __nccwpck_require__(4963); -const runtimeConfig_1 = __nccwpck_require__(83405); -class STSClient extends smithy_client_1.Client { - constructor(configuration) { - const _config_0 = runtimeConfig_1.getRuntimeConfig(configuration); - const _config_1 = config_resolver_1.resolveRegionConfig(_config_0); - const _config_2 = config_resolver_1.resolveEndpointsConfig(_config_1); - const _config_3 = middleware_retry_1.resolveRetryConfig(_config_2); - const _config_4 = middleware_host_header_1.resolveHostHeaderConfig(_config_3); - const _config_5 = middleware_sdk_sts_1.resolveStsAuthConfig(_config_4, { stsClientCtor: STSClient }); - const _config_6 = middleware_user_agent_1.resolveUserAgentConfig(_config_5); - super(_config_6); - this.config = _config_6; - this.middlewareStack.use(middleware_retry_1.getRetryPlugin(this.config)); - this.middlewareStack.use(middleware_content_length_1.getContentLengthPlugin(this.config)); - this.middlewareStack.use(middleware_host_header_1.getHostHeaderPlugin(this.config)); - this.middlewareStack.use(middleware_logger_1.getLoggerPlugin(this.config)); - this.middlewareStack.use(middleware_user_agent_1.getUserAgentPlugin(this.config)); - } - destroy() { - super.destroy(); - } -} -exports.STSClient = STSClient; - - -/***/ }), - -/***/ 59802: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.AssumeRoleCommand = void 0; -const middleware_serde_1 = __nccwpck_require__(93631); -const middleware_signing_1 = __nccwpck_require__(14935); -const smithy_client_1 = __nccwpck_require__(4963); -const models_0_1 = __nccwpck_require__(21780); -const Aws_query_1 = __nccwpck_require__(10740); -class AssumeRoleCommand extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(middleware_signing_1.getAwsAuthPlugin(configuration)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "STSClient"; - const commandName = "AssumeRoleCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_0_1.AssumeRoleRequest.filterSensitiveLog, - outputFilterSensitiveLog: models_0_1.AssumeRoleResponse.filterSensitiveLog, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return Aws_query_1.serializeAws_queryAssumeRoleCommand(input, context); - } - deserialize(output, context) { - return Aws_query_1.deserializeAws_queryAssumeRoleCommand(output, context); - } -} -exports.AssumeRoleCommand = AssumeRoleCommand; - - -/***/ }), - -/***/ 72865: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.AssumeRoleWithSAMLCommand = void 0; -const middleware_serde_1 = __nccwpck_require__(93631); -const smithy_client_1 = __nccwpck_require__(4963); -const models_0_1 = __nccwpck_require__(21780); -const Aws_query_1 = __nccwpck_require__(10740); -class AssumeRoleWithSAMLCommand extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "STSClient"; - const commandName = "AssumeRoleWithSAMLCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_0_1.AssumeRoleWithSAMLRequest.filterSensitiveLog, - outputFilterSensitiveLog: models_0_1.AssumeRoleWithSAMLResponse.filterSensitiveLog, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return Aws_query_1.serializeAws_queryAssumeRoleWithSAMLCommand(input, context); - } - deserialize(output, context) { - return Aws_query_1.deserializeAws_queryAssumeRoleWithSAMLCommand(output, context); - } -} -exports.AssumeRoleWithSAMLCommand = AssumeRoleWithSAMLCommand; - - -/***/ }), - -/***/ 37451: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.AssumeRoleWithWebIdentityCommand = void 0; -const middleware_serde_1 = __nccwpck_require__(93631); -const smithy_client_1 = __nccwpck_require__(4963); -const models_0_1 = __nccwpck_require__(21780); -const Aws_query_1 = __nccwpck_require__(10740); -class AssumeRoleWithWebIdentityCommand extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "STSClient"; - const commandName = "AssumeRoleWithWebIdentityCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_0_1.AssumeRoleWithWebIdentityRequest.filterSensitiveLog, - outputFilterSensitiveLog: models_0_1.AssumeRoleWithWebIdentityResponse.filterSensitiveLog, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return Aws_query_1.serializeAws_queryAssumeRoleWithWebIdentityCommand(input, context); - } - deserialize(output, context) { - return Aws_query_1.deserializeAws_queryAssumeRoleWithWebIdentityCommand(output, context); - } -} -exports.AssumeRoleWithWebIdentityCommand = AssumeRoleWithWebIdentityCommand; - - -/***/ }), - -/***/ 74150: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.DecodeAuthorizationMessageCommand = void 0; -const middleware_serde_1 = __nccwpck_require__(93631); -const middleware_signing_1 = __nccwpck_require__(14935); -const smithy_client_1 = __nccwpck_require__(4963); -const models_0_1 = __nccwpck_require__(21780); -const Aws_query_1 = __nccwpck_require__(10740); -class DecodeAuthorizationMessageCommand extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(middleware_signing_1.getAwsAuthPlugin(configuration)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "STSClient"; - const commandName = "DecodeAuthorizationMessageCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_0_1.DecodeAuthorizationMessageRequest.filterSensitiveLog, - outputFilterSensitiveLog: models_0_1.DecodeAuthorizationMessageResponse.filterSensitiveLog, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return Aws_query_1.serializeAws_queryDecodeAuthorizationMessageCommand(input, context); - } - deserialize(output, context) { - return Aws_query_1.deserializeAws_queryDecodeAuthorizationMessageCommand(output, context); - } -} -exports.DecodeAuthorizationMessageCommand = DecodeAuthorizationMessageCommand; - - -/***/ }), - -/***/ 49804: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.GetAccessKeyInfoCommand = void 0; -const middleware_serde_1 = __nccwpck_require__(93631); -const middleware_signing_1 = __nccwpck_require__(14935); -const smithy_client_1 = __nccwpck_require__(4963); -const models_0_1 = __nccwpck_require__(21780); -const Aws_query_1 = __nccwpck_require__(10740); -class GetAccessKeyInfoCommand extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(middleware_signing_1.getAwsAuthPlugin(configuration)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "STSClient"; - const commandName = "GetAccessKeyInfoCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_0_1.GetAccessKeyInfoRequest.filterSensitiveLog, - outputFilterSensitiveLog: models_0_1.GetAccessKeyInfoResponse.filterSensitiveLog, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return Aws_query_1.serializeAws_queryGetAccessKeyInfoCommand(input, context); - } - deserialize(output, context) { - return Aws_query_1.deserializeAws_queryGetAccessKeyInfoCommand(output, context); - } -} -exports.GetAccessKeyInfoCommand = GetAccessKeyInfoCommand; - - -/***/ }), - -/***/ 24278: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.GetCallerIdentityCommand = void 0; -const middleware_serde_1 = __nccwpck_require__(93631); -const middleware_signing_1 = __nccwpck_require__(14935); -const smithy_client_1 = __nccwpck_require__(4963); -const models_0_1 = __nccwpck_require__(21780); -const Aws_query_1 = __nccwpck_require__(10740); -class GetCallerIdentityCommand extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(middleware_signing_1.getAwsAuthPlugin(configuration)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "STSClient"; - const commandName = "GetCallerIdentityCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_0_1.GetCallerIdentityRequest.filterSensitiveLog, - outputFilterSensitiveLog: models_0_1.GetCallerIdentityResponse.filterSensitiveLog, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return Aws_query_1.serializeAws_queryGetCallerIdentityCommand(input, context); - } - deserialize(output, context) { - return Aws_query_1.deserializeAws_queryGetCallerIdentityCommand(output, context); - } -} -exports.GetCallerIdentityCommand = GetCallerIdentityCommand; - - -/***/ }), - -/***/ 57552: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.GetFederationTokenCommand = void 0; -const middleware_serde_1 = __nccwpck_require__(93631); -const middleware_signing_1 = __nccwpck_require__(14935); -const smithy_client_1 = __nccwpck_require__(4963); -const models_0_1 = __nccwpck_require__(21780); -const Aws_query_1 = __nccwpck_require__(10740); -class GetFederationTokenCommand extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(middleware_signing_1.getAwsAuthPlugin(configuration)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "STSClient"; - const commandName = "GetFederationTokenCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_0_1.GetFederationTokenRequest.filterSensitiveLog, - outputFilterSensitiveLog: models_0_1.GetFederationTokenResponse.filterSensitiveLog, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return Aws_query_1.serializeAws_queryGetFederationTokenCommand(input, context); - } - deserialize(output, context) { - return Aws_query_1.deserializeAws_queryGetFederationTokenCommand(output, context); - } -} -exports.GetFederationTokenCommand = GetFederationTokenCommand; - - -/***/ }), - -/***/ 43285: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.GetSessionTokenCommand = void 0; -const middleware_serde_1 = __nccwpck_require__(93631); -const middleware_signing_1 = __nccwpck_require__(14935); -const smithy_client_1 = __nccwpck_require__(4963); -const models_0_1 = __nccwpck_require__(21780); -const Aws_query_1 = __nccwpck_require__(10740); -class GetSessionTokenCommand extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(middleware_signing_1.getAwsAuthPlugin(configuration)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "STSClient"; - const commandName = "GetSessionTokenCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_0_1.GetSessionTokenRequest.filterSensitiveLog, - outputFilterSensitiveLog: models_0_1.GetSessionTokenResponse.filterSensitiveLog, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return Aws_query_1.serializeAws_queryGetSessionTokenCommand(input, context); - } - deserialize(output, context) { - return Aws_query_1.deserializeAws_queryGetSessionTokenCommand(output, context); - } -} -exports.GetSessionTokenCommand = GetSessionTokenCommand; - - -/***/ }), - -/***/ 55716: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -const tslib_1 = __nccwpck_require__(4351); -tslib_1.__exportStar(__nccwpck_require__(59802), exports); -tslib_1.__exportStar(__nccwpck_require__(72865), exports); -tslib_1.__exportStar(__nccwpck_require__(37451), exports); -tslib_1.__exportStar(__nccwpck_require__(74150), exports); -tslib_1.__exportStar(__nccwpck_require__(49804), exports); -tslib_1.__exportStar(__nccwpck_require__(24278), exports); -tslib_1.__exportStar(__nccwpck_require__(57552), exports); -tslib_1.__exportStar(__nccwpck_require__(43285), exports); - - -/***/ }), - -/***/ 88028: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.decorateDefaultCredentialProvider = exports.getDefaultRoleAssumerWithWebIdentity = exports.getDefaultRoleAssumer = void 0; -const defaultStsRoleAssumers_1 = __nccwpck_require__(90048); -const STSClient_1 = __nccwpck_require__(64195); -const getDefaultRoleAssumer = (stsOptions = {}) => defaultStsRoleAssumers_1.getDefaultRoleAssumer(stsOptions, STSClient_1.STSClient); -exports.getDefaultRoleAssumer = getDefaultRoleAssumer; -const getDefaultRoleAssumerWithWebIdentity = (stsOptions = {}) => defaultStsRoleAssumers_1.getDefaultRoleAssumerWithWebIdentity(stsOptions, STSClient_1.STSClient); -exports.getDefaultRoleAssumerWithWebIdentity = getDefaultRoleAssumerWithWebIdentity; -const decorateDefaultCredentialProvider = (provider) => (input) => provider({ - roleAssumer: exports.getDefaultRoleAssumer(input), - roleAssumerWithWebIdentity: exports.getDefaultRoleAssumerWithWebIdentity(input), - ...input, -}); -exports.decorateDefaultCredentialProvider = decorateDefaultCredentialProvider; - - -/***/ }), - -/***/ 90048: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.decorateDefaultCredentialProvider = exports.getDefaultRoleAssumerWithWebIdentity = exports.getDefaultRoleAssumer = void 0; -const AssumeRoleCommand_1 = __nccwpck_require__(59802); -const AssumeRoleWithWebIdentityCommand_1 = __nccwpck_require__(37451); -const ASSUME_ROLE_DEFAULT_REGION = "us-east-1"; -const decorateDefaultRegion = (region) => { - if (typeof region !== "function") { - return region === undefined ? ASSUME_ROLE_DEFAULT_REGION : region; - } - return async () => { - try { - return await region(); - } - catch (e) { - return ASSUME_ROLE_DEFAULT_REGION; - } - }; -}; -const getDefaultRoleAssumer = (stsOptions, stsClientCtor) => { - let stsClient; - let closureSourceCreds; - return async (sourceCreds, params) => { - closureSourceCreds = sourceCreds; - if (!stsClient) { - const { logger, region, requestHandler } = stsOptions; - stsClient = new stsClientCtor({ - logger, - credentialDefaultProvider: () => async () => closureSourceCreds, - region: decorateDefaultRegion(region || stsOptions.region), - ...(requestHandler ? { requestHandler } : {}), - }); - } - const { Credentials } = await stsClient.send(new AssumeRoleCommand_1.AssumeRoleCommand(params)); - if (!Credentials || !Credentials.AccessKeyId || !Credentials.SecretAccessKey) { - throw new Error(`Invalid response from STS.assumeRole call with role ${params.RoleArn}`); - } - return { - accessKeyId: Credentials.AccessKeyId, - secretAccessKey: Credentials.SecretAccessKey, - sessionToken: Credentials.SessionToken, - expiration: Credentials.Expiration, - }; - }; -}; -exports.getDefaultRoleAssumer = getDefaultRoleAssumer; -const getDefaultRoleAssumerWithWebIdentity = (stsOptions, stsClientCtor) => { - let stsClient; - return async (params) => { - if (!stsClient) { - const { logger, region, requestHandler } = stsOptions; - stsClient = new stsClientCtor({ - logger, - region: decorateDefaultRegion(region || stsOptions.region), - ...(requestHandler ? { requestHandler } : {}), - }); - } - const { Credentials } = await stsClient.send(new AssumeRoleWithWebIdentityCommand_1.AssumeRoleWithWebIdentityCommand(params)); - if (!Credentials || !Credentials.AccessKeyId || !Credentials.SecretAccessKey) { - throw new Error(`Invalid response from STS.assumeRoleWithWebIdentity call with role ${params.RoleArn}`); - } - return { - accessKeyId: Credentials.AccessKeyId, - secretAccessKey: Credentials.SecretAccessKey, - sessionToken: Credentials.SessionToken, - expiration: Credentials.Expiration, - }; - }; -}; -exports.getDefaultRoleAssumerWithWebIdentity = getDefaultRoleAssumerWithWebIdentity; -const decorateDefaultCredentialProvider = (provider) => (input) => provider({ - roleAssumer: exports.getDefaultRoleAssumer(input, input.stsClientCtor), - roleAssumerWithWebIdentity: exports.getDefaultRoleAssumerWithWebIdentity(input, input.stsClientCtor), - ...input, -}); -exports.decorateDefaultCredentialProvider = decorateDefaultCredentialProvider; - - -/***/ }), - -/***/ 3571: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.defaultRegionInfoProvider = void 0; -const config_resolver_1 = __nccwpck_require__(56153); -const regionHash = { - "aws-global": { - variants: [ - { - hostname: "sts.amazonaws.com", - tags: [], - }, - ], - signingRegion: "us-east-1", - }, - "us-east-1": { - variants: [ - { - hostname: "sts.us-east-1.amazonaws.com", - tags: [], - }, - { - hostname: "sts-fips.us-east-1.amazonaws.com", - tags: ["fips"], - }, - ], - }, - "us-east-2": { - variants: [ - { - hostname: "sts.us-east-2.amazonaws.com", - tags: [], - }, - { - hostname: "sts-fips.us-east-2.amazonaws.com", - tags: ["fips"], - }, - ], - }, - "us-gov-east-1": { - variants: [ - { - hostname: "sts.us-gov-east-1.amazonaws.com", - tags: [], - }, - { - hostname: "sts.us-gov-east-1.amazonaws.com", - tags: ["fips"], - }, - ], - }, - "us-gov-west-1": { - variants: [ - { - hostname: "sts.us-gov-west-1.amazonaws.com", - tags: [], - }, - { - hostname: "sts.us-gov-west-1.amazonaws.com", - tags: ["fips"], - }, - ], - }, - "us-west-1": { - variants: [ - { - hostname: "sts.us-west-1.amazonaws.com", - tags: [], - }, - { - hostname: "sts-fips.us-west-1.amazonaws.com", - tags: ["fips"], - }, - ], - }, - "us-west-2": { - variants: [ - { - hostname: "sts.us-west-2.amazonaws.com", - tags: [], - }, - { - hostname: "sts-fips.us-west-2.amazonaws.com", - tags: ["fips"], - }, - ], - }, -}; -const partitionHash = { - aws: { - regions: [ - "af-south-1", - "ap-east-1", - "ap-northeast-1", - "ap-northeast-2", - "ap-northeast-3", - "ap-south-1", - "ap-southeast-1", - "ap-southeast-2", - "ap-southeast-3", - "aws-global", - "ca-central-1", - "eu-central-1", - "eu-north-1", - "eu-south-1", - "eu-west-1", - "eu-west-2", - "eu-west-3", - "me-south-1", - "sa-east-1", - "us-east-1", - "us-east-1-fips", - "us-east-2", - "us-east-2-fips", - "us-west-1", - "us-west-1-fips", - "us-west-2", - "us-west-2-fips", - ], - regionRegex: "^(us|eu|ap|sa|ca|me|af)\\-\\w+\\-\\d+$", - variants: [ - { - hostname: "sts.{region}.amazonaws.com", - tags: [], - }, - { - hostname: "sts-fips.{region}.amazonaws.com", - tags: ["fips"], - }, - { - hostname: "sts-fips.{region}.api.aws", - tags: ["dualstack", "fips"], - }, - { - hostname: "sts.{region}.api.aws", - tags: ["dualstack"], - }, - ], - }, - "aws-cn": { - regions: ["cn-north-1", "cn-northwest-1"], - regionRegex: "^cn\\-\\w+\\-\\d+$", - variants: [ - { - hostname: "sts.{region}.amazonaws.com.cn", - tags: [], - }, - { - hostname: "sts-fips.{region}.amazonaws.com.cn", - tags: ["fips"], - }, - { - hostname: "sts-fips.{region}.api.amazonwebservices.com.cn", - tags: ["dualstack", "fips"], - }, - { - hostname: "sts.{region}.api.amazonwebservices.com.cn", - tags: ["dualstack"], - }, - ], - }, - "aws-iso": { - regions: ["us-iso-east-1", "us-iso-west-1"], - regionRegex: "^us\\-iso\\-\\w+\\-\\d+$", - variants: [ - { - hostname: "sts.{region}.c2s.ic.gov", - tags: [], - }, - { - hostname: "sts-fips.{region}.c2s.ic.gov", - tags: ["fips"], - }, - ], - }, - "aws-iso-b": { - regions: ["us-isob-east-1"], - regionRegex: "^us\\-isob\\-\\w+\\-\\d+$", - variants: [ - { - hostname: "sts.{region}.sc2s.sgov.gov", - tags: [], - }, - { - hostname: "sts-fips.{region}.sc2s.sgov.gov", - tags: ["fips"], - }, - ], - }, - "aws-us-gov": { - regions: ["us-gov-east-1", "us-gov-east-1-fips", "us-gov-west-1", "us-gov-west-1-fips"], - regionRegex: "^us\\-gov\\-\\w+\\-\\d+$", - variants: [ - { - hostname: "sts.{region}.amazonaws.com", - tags: [], - }, - { - hostname: "sts.{region}.amazonaws.com", - tags: ["fips"], - }, - { - hostname: "sts-fips.{region}.api.aws", - tags: ["dualstack", "fips"], - }, - { - hostname: "sts.{region}.api.aws", - tags: ["dualstack"], - }, - ], - }, -}; -const defaultRegionInfoProvider = async (region, options) => config_resolver_1.getRegionInfo(region, { - ...options, - signingService: "sts", - regionHash, - partitionHash, -}); -exports.defaultRegionInfoProvider = defaultRegionInfoProvider; - - -/***/ }), - -/***/ 52209: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -const tslib_1 = __nccwpck_require__(4351); -tslib_1.__exportStar(__nccwpck_require__(32605), exports); -tslib_1.__exportStar(__nccwpck_require__(64195), exports); -tslib_1.__exportStar(__nccwpck_require__(55716), exports); -tslib_1.__exportStar(__nccwpck_require__(88028), exports); -tslib_1.__exportStar(__nccwpck_require__(20106), exports); - - -/***/ }), - -/***/ 20106: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -const tslib_1 = __nccwpck_require__(4351); -tslib_1.__exportStar(__nccwpck_require__(21780), exports); - - -/***/ }), - -/***/ 21780: -/***/ ((__unused_webpack_module, exports) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.GetSessionTokenResponse = exports.GetSessionTokenRequest = exports.GetFederationTokenResponse = exports.FederatedUser = exports.GetFederationTokenRequest = exports.GetCallerIdentityResponse = exports.GetCallerIdentityRequest = exports.GetAccessKeyInfoResponse = exports.GetAccessKeyInfoRequest = exports.InvalidAuthorizationMessageException = exports.DecodeAuthorizationMessageResponse = exports.DecodeAuthorizationMessageRequest = exports.IDPCommunicationErrorException = exports.AssumeRoleWithWebIdentityResponse = exports.AssumeRoleWithWebIdentityRequest = exports.InvalidIdentityTokenException = exports.IDPRejectedClaimException = exports.AssumeRoleWithSAMLResponse = exports.AssumeRoleWithSAMLRequest = exports.RegionDisabledException = exports.PackedPolicyTooLargeException = exports.MalformedPolicyDocumentException = exports.ExpiredTokenException = exports.AssumeRoleResponse = exports.Credentials = exports.AssumeRoleRequest = exports.Tag = exports.PolicyDescriptorType = exports.AssumedRoleUser = void 0; -var AssumedRoleUser; -(function (AssumedRoleUser) { - AssumedRoleUser.filterSensitiveLog = (obj) => ({ - ...obj, - }); -})(AssumedRoleUser = exports.AssumedRoleUser || (exports.AssumedRoleUser = {})); -var PolicyDescriptorType; -(function (PolicyDescriptorType) { - PolicyDescriptorType.filterSensitiveLog = (obj) => ({ - ...obj, - }); -})(PolicyDescriptorType = exports.PolicyDescriptorType || (exports.PolicyDescriptorType = {})); -var Tag; -(function (Tag) { - Tag.filterSensitiveLog = (obj) => ({ - ...obj, - }); -})(Tag = exports.Tag || (exports.Tag = {})); -var AssumeRoleRequest; -(function (AssumeRoleRequest) { - AssumeRoleRequest.filterSensitiveLog = (obj) => ({ - ...obj, - }); -})(AssumeRoleRequest = exports.AssumeRoleRequest || (exports.AssumeRoleRequest = {})); -var Credentials; -(function (Credentials) { - Credentials.filterSensitiveLog = (obj) => ({ - ...obj, - }); -})(Credentials = exports.Credentials || (exports.Credentials = {})); -var AssumeRoleResponse; -(function (AssumeRoleResponse) { - AssumeRoleResponse.filterSensitiveLog = (obj) => ({ - ...obj, - }); -})(AssumeRoleResponse = exports.AssumeRoleResponse || (exports.AssumeRoleResponse = {})); -var ExpiredTokenException; -(function (ExpiredTokenException) { - ExpiredTokenException.filterSensitiveLog = (obj) => ({ - ...obj, - }); -})(ExpiredTokenException = exports.ExpiredTokenException || (exports.ExpiredTokenException = {})); -var MalformedPolicyDocumentException; -(function (MalformedPolicyDocumentException) { - MalformedPolicyDocumentException.filterSensitiveLog = (obj) => ({ - ...obj, - }); -})(MalformedPolicyDocumentException = exports.MalformedPolicyDocumentException || (exports.MalformedPolicyDocumentException = {})); -var PackedPolicyTooLargeException; -(function (PackedPolicyTooLargeException) { - PackedPolicyTooLargeException.filterSensitiveLog = (obj) => ({ - ...obj, - }); -})(PackedPolicyTooLargeException = exports.PackedPolicyTooLargeException || (exports.PackedPolicyTooLargeException = {})); -var RegionDisabledException; -(function (RegionDisabledException) { - RegionDisabledException.filterSensitiveLog = (obj) => ({ - ...obj, - }); -})(RegionDisabledException = exports.RegionDisabledException || (exports.RegionDisabledException = {})); -var AssumeRoleWithSAMLRequest; -(function (AssumeRoleWithSAMLRequest) { - AssumeRoleWithSAMLRequest.filterSensitiveLog = (obj) => ({ - ...obj, - }); -})(AssumeRoleWithSAMLRequest = exports.AssumeRoleWithSAMLRequest || (exports.AssumeRoleWithSAMLRequest = {})); -var AssumeRoleWithSAMLResponse; -(function (AssumeRoleWithSAMLResponse) { - AssumeRoleWithSAMLResponse.filterSensitiveLog = (obj) => ({ - ...obj, - }); -})(AssumeRoleWithSAMLResponse = exports.AssumeRoleWithSAMLResponse || (exports.AssumeRoleWithSAMLResponse = {})); -var IDPRejectedClaimException; -(function (IDPRejectedClaimException) { - IDPRejectedClaimException.filterSensitiveLog = (obj) => ({ - ...obj, - }); -})(IDPRejectedClaimException = exports.IDPRejectedClaimException || (exports.IDPRejectedClaimException = {})); -var InvalidIdentityTokenException; -(function (InvalidIdentityTokenException) { - InvalidIdentityTokenException.filterSensitiveLog = (obj) => ({ - ...obj, - }); -})(InvalidIdentityTokenException = exports.InvalidIdentityTokenException || (exports.InvalidIdentityTokenException = {})); -var AssumeRoleWithWebIdentityRequest; -(function (AssumeRoleWithWebIdentityRequest) { - AssumeRoleWithWebIdentityRequest.filterSensitiveLog = (obj) => ({ - ...obj, - }); -})(AssumeRoleWithWebIdentityRequest = exports.AssumeRoleWithWebIdentityRequest || (exports.AssumeRoleWithWebIdentityRequest = {})); -var AssumeRoleWithWebIdentityResponse; -(function (AssumeRoleWithWebIdentityResponse) { - AssumeRoleWithWebIdentityResponse.filterSensitiveLog = (obj) => ({ - ...obj, - }); -})(AssumeRoleWithWebIdentityResponse = exports.AssumeRoleWithWebIdentityResponse || (exports.AssumeRoleWithWebIdentityResponse = {})); -var IDPCommunicationErrorException; -(function (IDPCommunicationErrorException) { - IDPCommunicationErrorException.filterSensitiveLog = (obj) => ({ - ...obj, - }); -})(IDPCommunicationErrorException = exports.IDPCommunicationErrorException || (exports.IDPCommunicationErrorException = {})); -var DecodeAuthorizationMessageRequest; -(function (DecodeAuthorizationMessageRequest) { - DecodeAuthorizationMessageRequest.filterSensitiveLog = (obj) => ({ - ...obj, - }); -})(DecodeAuthorizationMessageRequest = exports.DecodeAuthorizationMessageRequest || (exports.DecodeAuthorizationMessageRequest = {})); -var DecodeAuthorizationMessageResponse; -(function (DecodeAuthorizationMessageResponse) { - DecodeAuthorizationMessageResponse.filterSensitiveLog = (obj) => ({ - ...obj, - }); -})(DecodeAuthorizationMessageResponse = exports.DecodeAuthorizationMessageResponse || (exports.DecodeAuthorizationMessageResponse = {})); -var InvalidAuthorizationMessageException; -(function (InvalidAuthorizationMessageException) { - InvalidAuthorizationMessageException.filterSensitiveLog = (obj) => ({ - ...obj, - }); -})(InvalidAuthorizationMessageException = exports.InvalidAuthorizationMessageException || (exports.InvalidAuthorizationMessageException = {})); -var GetAccessKeyInfoRequest; -(function (GetAccessKeyInfoRequest) { - GetAccessKeyInfoRequest.filterSensitiveLog = (obj) => ({ - ...obj, - }); -})(GetAccessKeyInfoRequest = exports.GetAccessKeyInfoRequest || (exports.GetAccessKeyInfoRequest = {})); -var GetAccessKeyInfoResponse; -(function (GetAccessKeyInfoResponse) { - GetAccessKeyInfoResponse.filterSensitiveLog = (obj) => ({ - ...obj, - }); -})(GetAccessKeyInfoResponse = exports.GetAccessKeyInfoResponse || (exports.GetAccessKeyInfoResponse = {})); -var GetCallerIdentityRequest; -(function (GetCallerIdentityRequest) { - GetCallerIdentityRequest.filterSensitiveLog = (obj) => ({ - ...obj, - }); -})(GetCallerIdentityRequest = exports.GetCallerIdentityRequest || (exports.GetCallerIdentityRequest = {})); -var GetCallerIdentityResponse; -(function (GetCallerIdentityResponse) { - GetCallerIdentityResponse.filterSensitiveLog = (obj) => ({ - ...obj, - }); -})(GetCallerIdentityResponse = exports.GetCallerIdentityResponse || (exports.GetCallerIdentityResponse = {})); -var GetFederationTokenRequest; -(function (GetFederationTokenRequest) { - GetFederationTokenRequest.filterSensitiveLog = (obj) => ({ - ...obj, - }); -})(GetFederationTokenRequest = exports.GetFederationTokenRequest || (exports.GetFederationTokenRequest = {})); -var FederatedUser; -(function (FederatedUser) { - FederatedUser.filterSensitiveLog = (obj) => ({ - ...obj, - }); -})(FederatedUser = exports.FederatedUser || (exports.FederatedUser = {})); -var GetFederationTokenResponse; -(function (GetFederationTokenResponse) { - GetFederationTokenResponse.filterSensitiveLog = (obj) => ({ - ...obj, - }); -})(GetFederationTokenResponse = exports.GetFederationTokenResponse || (exports.GetFederationTokenResponse = {})); -var GetSessionTokenRequest; -(function (GetSessionTokenRequest) { - GetSessionTokenRequest.filterSensitiveLog = (obj) => ({ - ...obj, - }); -})(GetSessionTokenRequest = exports.GetSessionTokenRequest || (exports.GetSessionTokenRequest = {})); -var GetSessionTokenResponse; -(function (GetSessionTokenResponse) { - GetSessionTokenResponse.filterSensitiveLog = (obj) => ({ - ...obj, - }); -})(GetSessionTokenResponse = exports.GetSessionTokenResponse || (exports.GetSessionTokenResponse = {})); - - -/***/ }), - -/***/ 10740: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.deserializeAws_queryGetSessionTokenCommand = exports.deserializeAws_queryGetFederationTokenCommand = exports.deserializeAws_queryGetCallerIdentityCommand = exports.deserializeAws_queryGetAccessKeyInfoCommand = exports.deserializeAws_queryDecodeAuthorizationMessageCommand = exports.deserializeAws_queryAssumeRoleWithWebIdentityCommand = exports.deserializeAws_queryAssumeRoleWithSAMLCommand = exports.deserializeAws_queryAssumeRoleCommand = exports.serializeAws_queryGetSessionTokenCommand = exports.serializeAws_queryGetFederationTokenCommand = exports.serializeAws_queryGetCallerIdentityCommand = exports.serializeAws_queryGetAccessKeyInfoCommand = exports.serializeAws_queryDecodeAuthorizationMessageCommand = exports.serializeAws_queryAssumeRoleWithWebIdentityCommand = exports.serializeAws_queryAssumeRoleWithSAMLCommand = exports.serializeAws_queryAssumeRoleCommand = void 0; -const protocol_http_1 = __nccwpck_require__(70223); -const smithy_client_1 = __nccwpck_require__(4963); -const entities_1 = __nccwpck_require__(3000); -const fast_xml_parser_1 = __nccwpck_require__(27448); -const serializeAws_queryAssumeRoleCommand = async (input, context) => { - const headers = { - "content-type": "application/x-www-form-urlencoded", - }; - let body; - body = buildFormUrlencodedString({ - ...serializeAws_queryAssumeRoleRequest(input, context), - Action: "AssumeRole", - Version: "2011-06-15", - }); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.serializeAws_queryAssumeRoleCommand = serializeAws_queryAssumeRoleCommand; -const serializeAws_queryAssumeRoleWithSAMLCommand = async (input, context) => { - const headers = { - "content-type": "application/x-www-form-urlencoded", - }; - let body; - body = buildFormUrlencodedString({ - ...serializeAws_queryAssumeRoleWithSAMLRequest(input, context), - Action: "AssumeRoleWithSAML", - Version: "2011-06-15", - }); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.serializeAws_queryAssumeRoleWithSAMLCommand = serializeAws_queryAssumeRoleWithSAMLCommand; -const serializeAws_queryAssumeRoleWithWebIdentityCommand = async (input, context) => { - const headers = { - "content-type": "application/x-www-form-urlencoded", - }; - let body; - body = buildFormUrlencodedString({ - ...serializeAws_queryAssumeRoleWithWebIdentityRequest(input, context), - Action: "AssumeRoleWithWebIdentity", - Version: "2011-06-15", - }); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.serializeAws_queryAssumeRoleWithWebIdentityCommand = serializeAws_queryAssumeRoleWithWebIdentityCommand; -const serializeAws_queryDecodeAuthorizationMessageCommand = async (input, context) => { - const headers = { - "content-type": "application/x-www-form-urlencoded", - }; - let body; - body = buildFormUrlencodedString({ - ...serializeAws_queryDecodeAuthorizationMessageRequest(input, context), - Action: "DecodeAuthorizationMessage", - Version: "2011-06-15", - }); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.serializeAws_queryDecodeAuthorizationMessageCommand = serializeAws_queryDecodeAuthorizationMessageCommand; -const serializeAws_queryGetAccessKeyInfoCommand = async (input, context) => { - const headers = { - "content-type": "application/x-www-form-urlencoded", - }; - let body; - body = buildFormUrlencodedString({ - ...serializeAws_queryGetAccessKeyInfoRequest(input, context), - Action: "GetAccessKeyInfo", - Version: "2011-06-15", - }); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.serializeAws_queryGetAccessKeyInfoCommand = serializeAws_queryGetAccessKeyInfoCommand; -const serializeAws_queryGetCallerIdentityCommand = async (input, context) => { - const headers = { - "content-type": "application/x-www-form-urlencoded", - }; - let body; - body = buildFormUrlencodedString({ - ...serializeAws_queryGetCallerIdentityRequest(input, context), - Action: "GetCallerIdentity", - Version: "2011-06-15", - }); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.serializeAws_queryGetCallerIdentityCommand = serializeAws_queryGetCallerIdentityCommand; -const serializeAws_queryGetFederationTokenCommand = async (input, context) => { - const headers = { - "content-type": "application/x-www-form-urlencoded", - }; - let body; - body = buildFormUrlencodedString({ - ...serializeAws_queryGetFederationTokenRequest(input, context), - Action: "GetFederationToken", - Version: "2011-06-15", - }); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.serializeAws_queryGetFederationTokenCommand = serializeAws_queryGetFederationTokenCommand; -const serializeAws_queryGetSessionTokenCommand = async (input, context) => { - const headers = { - "content-type": "application/x-www-form-urlencoded", - }; - let body; - body = buildFormUrlencodedString({ - ...serializeAws_queryGetSessionTokenRequest(input, context), - Action: "GetSessionToken", - Version: "2011-06-15", - }); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.serializeAws_queryGetSessionTokenCommand = serializeAws_queryGetSessionTokenCommand; -const deserializeAws_queryAssumeRoleCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_queryAssumeRoleCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_queryAssumeRoleResponse(data.AssumeRoleResult, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return Promise.resolve(response); -}; -exports.deserializeAws_queryAssumeRoleCommand = deserializeAws_queryAssumeRoleCommand; -const deserializeAws_queryAssumeRoleCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context), - }; - let response; - let errorCode = "UnknownError"; - errorCode = loadQueryErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "ExpiredTokenException": - case "com.amazonaws.sts#ExpiredTokenException": - response = { - ...(await deserializeAws_queryExpiredTokenExceptionResponse(parsedOutput, context)), - name: errorCode, - $metadata: deserializeMetadata(output), - }; - break; - case "MalformedPolicyDocumentException": - case "com.amazonaws.sts#MalformedPolicyDocumentException": - response = { - ...(await deserializeAws_queryMalformedPolicyDocumentExceptionResponse(parsedOutput, context)), - name: errorCode, - $metadata: deserializeMetadata(output), - }; - break; - case "PackedPolicyTooLargeException": - case "com.amazonaws.sts#PackedPolicyTooLargeException": - response = { - ...(await deserializeAws_queryPackedPolicyTooLargeExceptionResponse(parsedOutput, context)), - name: errorCode, - $metadata: deserializeMetadata(output), - }; - break; - case "RegionDisabledException": - case "com.amazonaws.sts#RegionDisabledException": - response = { - ...(await deserializeAws_queryRegionDisabledExceptionResponse(parsedOutput, context)), - name: errorCode, - $metadata: deserializeMetadata(output), - }; - break; - default: - const parsedBody = parsedOutput.body; - errorCode = parsedBody.Error.code || parsedBody.Error.Code || errorCode; - response = { - ...parsedBody.Error, - name: `${errorCode}`, - message: parsedBody.Error.message || parsedBody.Error.Message || errorCode, - $fault: "client", - $metadata: deserializeMetadata(output), - }; - } - const message = response.message || response.Message || errorCode; - response.message = message; - delete response.Message; - return Promise.reject(Object.assign(new Error(message), response)); -}; -const deserializeAws_queryAssumeRoleWithSAMLCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_queryAssumeRoleWithSAMLCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_queryAssumeRoleWithSAMLResponse(data.AssumeRoleWithSAMLResult, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return Promise.resolve(response); -}; -exports.deserializeAws_queryAssumeRoleWithSAMLCommand = deserializeAws_queryAssumeRoleWithSAMLCommand; -const deserializeAws_queryAssumeRoleWithSAMLCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context), - }; - let response; - let errorCode = "UnknownError"; - errorCode = loadQueryErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "ExpiredTokenException": - case "com.amazonaws.sts#ExpiredTokenException": - response = { - ...(await deserializeAws_queryExpiredTokenExceptionResponse(parsedOutput, context)), - name: errorCode, - $metadata: deserializeMetadata(output), - }; - break; - case "IDPRejectedClaimException": - case "com.amazonaws.sts#IDPRejectedClaimException": - response = { - ...(await deserializeAws_queryIDPRejectedClaimExceptionResponse(parsedOutput, context)), - name: errorCode, - $metadata: deserializeMetadata(output), - }; - break; - case "InvalidIdentityTokenException": - case "com.amazonaws.sts#InvalidIdentityTokenException": - response = { - ...(await deserializeAws_queryInvalidIdentityTokenExceptionResponse(parsedOutput, context)), - name: errorCode, - $metadata: deserializeMetadata(output), - }; - break; - case "MalformedPolicyDocumentException": - case "com.amazonaws.sts#MalformedPolicyDocumentException": - response = { - ...(await deserializeAws_queryMalformedPolicyDocumentExceptionResponse(parsedOutput, context)), - name: errorCode, - $metadata: deserializeMetadata(output), - }; - break; - case "PackedPolicyTooLargeException": - case "com.amazonaws.sts#PackedPolicyTooLargeException": - response = { - ...(await deserializeAws_queryPackedPolicyTooLargeExceptionResponse(parsedOutput, context)), - name: errorCode, - $metadata: deserializeMetadata(output), - }; - break; - case "RegionDisabledException": - case "com.amazonaws.sts#RegionDisabledException": - response = { - ...(await deserializeAws_queryRegionDisabledExceptionResponse(parsedOutput, context)), - name: errorCode, - $metadata: deserializeMetadata(output), - }; - break; - default: - const parsedBody = parsedOutput.body; - errorCode = parsedBody.Error.code || parsedBody.Error.Code || errorCode; - response = { - ...parsedBody.Error, - name: `${errorCode}`, - message: parsedBody.Error.message || parsedBody.Error.Message || errorCode, - $fault: "client", - $metadata: deserializeMetadata(output), - }; - } - const message = response.message || response.Message || errorCode; - response.message = message; - delete response.Message; - return Promise.reject(Object.assign(new Error(message), response)); -}; -const deserializeAws_queryAssumeRoleWithWebIdentityCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_queryAssumeRoleWithWebIdentityCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_queryAssumeRoleWithWebIdentityResponse(data.AssumeRoleWithWebIdentityResult, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return Promise.resolve(response); -}; -exports.deserializeAws_queryAssumeRoleWithWebIdentityCommand = deserializeAws_queryAssumeRoleWithWebIdentityCommand; -const deserializeAws_queryAssumeRoleWithWebIdentityCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context), - }; - let response; - let errorCode = "UnknownError"; - errorCode = loadQueryErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "ExpiredTokenException": - case "com.amazonaws.sts#ExpiredTokenException": - response = { - ...(await deserializeAws_queryExpiredTokenExceptionResponse(parsedOutput, context)), - name: errorCode, - $metadata: deserializeMetadata(output), - }; - break; - case "IDPCommunicationErrorException": - case "com.amazonaws.sts#IDPCommunicationErrorException": - response = { - ...(await deserializeAws_queryIDPCommunicationErrorExceptionResponse(parsedOutput, context)), - name: errorCode, - $metadata: deserializeMetadata(output), - }; - break; - case "IDPRejectedClaimException": - case "com.amazonaws.sts#IDPRejectedClaimException": - response = { - ...(await deserializeAws_queryIDPRejectedClaimExceptionResponse(parsedOutput, context)), - name: errorCode, - $metadata: deserializeMetadata(output), - }; - break; - case "InvalidIdentityTokenException": - case "com.amazonaws.sts#InvalidIdentityTokenException": - response = { - ...(await deserializeAws_queryInvalidIdentityTokenExceptionResponse(parsedOutput, context)), - name: errorCode, - $metadata: deserializeMetadata(output), - }; - break; - case "MalformedPolicyDocumentException": - case "com.amazonaws.sts#MalformedPolicyDocumentException": - response = { - ...(await deserializeAws_queryMalformedPolicyDocumentExceptionResponse(parsedOutput, context)), - name: errorCode, - $metadata: deserializeMetadata(output), - }; - break; - case "PackedPolicyTooLargeException": - case "com.amazonaws.sts#PackedPolicyTooLargeException": - response = { - ...(await deserializeAws_queryPackedPolicyTooLargeExceptionResponse(parsedOutput, context)), - name: errorCode, - $metadata: deserializeMetadata(output), - }; - break; - case "RegionDisabledException": - case "com.amazonaws.sts#RegionDisabledException": - response = { - ...(await deserializeAws_queryRegionDisabledExceptionResponse(parsedOutput, context)), - name: errorCode, - $metadata: deserializeMetadata(output), - }; - break; - default: - const parsedBody = parsedOutput.body; - errorCode = parsedBody.Error.code || parsedBody.Error.Code || errorCode; - response = { - ...parsedBody.Error, - name: `${errorCode}`, - message: parsedBody.Error.message || parsedBody.Error.Message || errorCode, - $fault: "client", - $metadata: deserializeMetadata(output), - }; - } - const message = response.message || response.Message || errorCode; - response.message = message; - delete response.Message; - return Promise.reject(Object.assign(new Error(message), response)); -}; -const deserializeAws_queryDecodeAuthorizationMessageCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_queryDecodeAuthorizationMessageCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_queryDecodeAuthorizationMessageResponse(data.DecodeAuthorizationMessageResult, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return Promise.resolve(response); -}; -exports.deserializeAws_queryDecodeAuthorizationMessageCommand = deserializeAws_queryDecodeAuthorizationMessageCommand; -const deserializeAws_queryDecodeAuthorizationMessageCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context), - }; - let response; - let errorCode = "UnknownError"; - errorCode = loadQueryErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InvalidAuthorizationMessageException": - case "com.amazonaws.sts#InvalidAuthorizationMessageException": - response = { - ...(await deserializeAws_queryInvalidAuthorizationMessageExceptionResponse(parsedOutput, context)), - name: errorCode, - $metadata: deserializeMetadata(output), - }; - break; - default: - const parsedBody = parsedOutput.body; - errorCode = parsedBody.Error.code || parsedBody.Error.Code || errorCode; - response = { - ...parsedBody.Error, - name: `${errorCode}`, - message: parsedBody.Error.message || parsedBody.Error.Message || errorCode, - $fault: "client", - $metadata: deserializeMetadata(output), - }; - } - const message = response.message || response.Message || errorCode; - response.message = message; - delete response.Message; - return Promise.reject(Object.assign(new Error(message), response)); -}; -const deserializeAws_queryGetAccessKeyInfoCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_queryGetAccessKeyInfoCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_queryGetAccessKeyInfoResponse(data.GetAccessKeyInfoResult, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return Promise.resolve(response); -}; -exports.deserializeAws_queryGetAccessKeyInfoCommand = deserializeAws_queryGetAccessKeyInfoCommand; -const deserializeAws_queryGetAccessKeyInfoCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context), - }; - let response; - let errorCode = "UnknownError"; - errorCode = loadQueryErrorCode(output, parsedOutput.body); - switch (errorCode) { - default: - const parsedBody = parsedOutput.body; - errorCode = parsedBody.Error.code || parsedBody.Error.Code || errorCode; - response = { - ...parsedBody.Error, - name: `${errorCode}`, - message: parsedBody.Error.message || parsedBody.Error.Message || errorCode, - $fault: "client", - $metadata: deserializeMetadata(output), - }; - } - const message = response.message || response.Message || errorCode; - response.message = message; - delete response.Message; - return Promise.reject(Object.assign(new Error(message), response)); -}; -const deserializeAws_queryGetCallerIdentityCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_queryGetCallerIdentityCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_queryGetCallerIdentityResponse(data.GetCallerIdentityResult, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return Promise.resolve(response); -}; -exports.deserializeAws_queryGetCallerIdentityCommand = deserializeAws_queryGetCallerIdentityCommand; -const deserializeAws_queryGetCallerIdentityCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context), - }; - let response; - let errorCode = "UnknownError"; - errorCode = loadQueryErrorCode(output, parsedOutput.body); - switch (errorCode) { - default: - const parsedBody = parsedOutput.body; - errorCode = parsedBody.Error.code || parsedBody.Error.Code || errorCode; - response = { - ...parsedBody.Error, - name: `${errorCode}`, - message: parsedBody.Error.message || parsedBody.Error.Message || errorCode, - $fault: "client", - $metadata: deserializeMetadata(output), - }; - } - const message = response.message || response.Message || errorCode; - response.message = message; - delete response.Message; - return Promise.reject(Object.assign(new Error(message), response)); -}; -const deserializeAws_queryGetFederationTokenCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_queryGetFederationTokenCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_queryGetFederationTokenResponse(data.GetFederationTokenResult, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return Promise.resolve(response); -}; -exports.deserializeAws_queryGetFederationTokenCommand = deserializeAws_queryGetFederationTokenCommand; -const deserializeAws_queryGetFederationTokenCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context), - }; - let response; - let errorCode = "UnknownError"; - errorCode = loadQueryErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "MalformedPolicyDocumentException": - case "com.amazonaws.sts#MalformedPolicyDocumentException": - response = { - ...(await deserializeAws_queryMalformedPolicyDocumentExceptionResponse(parsedOutput, context)), - name: errorCode, - $metadata: deserializeMetadata(output), - }; - break; - case "PackedPolicyTooLargeException": - case "com.amazonaws.sts#PackedPolicyTooLargeException": - response = { - ...(await deserializeAws_queryPackedPolicyTooLargeExceptionResponse(parsedOutput, context)), - name: errorCode, - $metadata: deserializeMetadata(output), - }; - break; - case "RegionDisabledException": - case "com.amazonaws.sts#RegionDisabledException": - response = { - ...(await deserializeAws_queryRegionDisabledExceptionResponse(parsedOutput, context)), - name: errorCode, - $metadata: deserializeMetadata(output), - }; - break; - default: - const parsedBody = parsedOutput.body; - errorCode = parsedBody.Error.code || parsedBody.Error.Code || errorCode; - response = { - ...parsedBody.Error, - name: `${errorCode}`, - message: parsedBody.Error.message || parsedBody.Error.Message || errorCode, - $fault: "client", - $metadata: deserializeMetadata(output), - }; - } - const message = response.message || response.Message || errorCode; - response.message = message; - delete response.Message; - return Promise.reject(Object.assign(new Error(message), response)); -}; -const deserializeAws_queryGetSessionTokenCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_queryGetSessionTokenCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_queryGetSessionTokenResponse(data.GetSessionTokenResult, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return Promise.resolve(response); -}; -exports.deserializeAws_queryGetSessionTokenCommand = deserializeAws_queryGetSessionTokenCommand; -const deserializeAws_queryGetSessionTokenCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context), - }; - let response; - let errorCode = "UnknownError"; - errorCode = loadQueryErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "RegionDisabledException": - case "com.amazonaws.sts#RegionDisabledException": - response = { - ...(await deserializeAws_queryRegionDisabledExceptionResponse(parsedOutput, context)), - name: errorCode, - $metadata: deserializeMetadata(output), - }; - break; - default: - const parsedBody = parsedOutput.body; - errorCode = parsedBody.Error.code || parsedBody.Error.Code || errorCode; - response = { - ...parsedBody.Error, - name: `${errorCode}`, - message: parsedBody.Error.message || parsedBody.Error.Message || errorCode, - $fault: "client", - $metadata: deserializeMetadata(output), - }; - } - const message = response.message || response.Message || errorCode; - response.message = message; - delete response.Message; - return Promise.reject(Object.assign(new Error(message), response)); -}; -const deserializeAws_queryExpiredTokenExceptionResponse = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = deserializeAws_queryExpiredTokenException(body.Error, context); - const contents = { - name: "ExpiredTokenException", - $fault: "client", - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }; - return contents; -}; -const deserializeAws_queryIDPCommunicationErrorExceptionResponse = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = deserializeAws_queryIDPCommunicationErrorException(body.Error, context); - const contents = { - name: "IDPCommunicationErrorException", - $fault: "client", - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }; - return contents; -}; -const deserializeAws_queryIDPRejectedClaimExceptionResponse = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = deserializeAws_queryIDPRejectedClaimException(body.Error, context); - const contents = { - name: "IDPRejectedClaimException", - $fault: "client", - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }; - return contents; -}; -const deserializeAws_queryInvalidAuthorizationMessageExceptionResponse = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = deserializeAws_queryInvalidAuthorizationMessageException(body.Error, context); - const contents = { - name: "InvalidAuthorizationMessageException", - $fault: "client", - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }; - return contents; -}; -const deserializeAws_queryInvalidIdentityTokenExceptionResponse = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = deserializeAws_queryInvalidIdentityTokenException(body.Error, context); - const contents = { - name: "InvalidIdentityTokenException", - $fault: "client", - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }; - return contents; -}; -const deserializeAws_queryMalformedPolicyDocumentExceptionResponse = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = deserializeAws_queryMalformedPolicyDocumentException(body.Error, context); - const contents = { - name: "MalformedPolicyDocumentException", - $fault: "client", - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }; - return contents; -}; -const deserializeAws_queryPackedPolicyTooLargeExceptionResponse = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = deserializeAws_queryPackedPolicyTooLargeException(body.Error, context); - const contents = { - name: "PackedPolicyTooLargeException", - $fault: "client", - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }; - return contents; -}; -const deserializeAws_queryRegionDisabledExceptionResponse = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = deserializeAws_queryRegionDisabledException(body.Error, context); - const contents = { - name: "RegionDisabledException", - $fault: "client", - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }; - return contents; -}; -const serializeAws_queryAssumeRoleRequest = (input, context) => { - const entries = {}; - if (input.RoleArn !== undefined && input.RoleArn !== null) { - entries["RoleArn"] = input.RoleArn; - } - if (input.RoleSessionName !== undefined && input.RoleSessionName !== null) { - entries["RoleSessionName"] = input.RoleSessionName; - } - if (input.PolicyArns !== undefined && input.PolicyArns !== null) { - const memberEntries = serializeAws_querypolicyDescriptorListType(input.PolicyArns, context); - Object.entries(memberEntries).forEach(([key, value]) => { - const loc = `PolicyArns.${key}`; - entries[loc] = value; - }); - } - if (input.Policy !== undefined && input.Policy !== null) { - entries["Policy"] = input.Policy; - } - if (input.DurationSeconds !== undefined && input.DurationSeconds !== null) { - entries["DurationSeconds"] = input.DurationSeconds; - } - if (input.Tags !== undefined && input.Tags !== null) { - const memberEntries = serializeAws_querytagListType(input.Tags, context); - Object.entries(memberEntries).forEach(([key, value]) => { - const loc = `Tags.${key}`; - entries[loc] = value; - }); - } - if (input.TransitiveTagKeys !== undefined && input.TransitiveTagKeys !== null) { - const memberEntries = serializeAws_querytagKeyListType(input.TransitiveTagKeys, context); - Object.entries(memberEntries).forEach(([key, value]) => { - const loc = `TransitiveTagKeys.${key}`; - entries[loc] = value; - }); - } - if (input.ExternalId !== undefined && input.ExternalId !== null) { - entries["ExternalId"] = input.ExternalId; - } - if (input.SerialNumber !== undefined && input.SerialNumber !== null) { - entries["SerialNumber"] = input.SerialNumber; - } - if (input.TokenCode !== undefined && input.TokenCode !== null) { - entries["TokenCode"] = input.TokenCode; - } - if (input.SourceIdentity !== undefined && input.SourceIdentity !== null) { - entries["SourceIdentity"] = input.SourceIdentity; - } - return entries; -}; -const serializeAws_queryAssumeRoleWithSAMLRequest = (input, context) => { - const entries = {}; - if (input.RoleArn !== undefined && input.RoleArn !== null) { - entries["RoleArn"] = input.RoleArn; - } - if (input.PrincipalArn !== undefined && input.PrincipalArn !== null) { - entries["PrincipalArn"] = input.PrincipalArn; - } - if (input.SAMLAssertion !== undefined && input.SAMLAssertion !== null) { - entries["SAMLAssertion"] = input.SAMLAssertion; - } - if (input.PolicyArns !== undefined && input.PolicyArns !== null) { - const memberEntries = serializeAws_querypolicyDescriptorListType(input.PolicyArns, context); - Object.entries(memberEntries).forEach(([key, value]) => { - const loc = `PolicyArns.${key}`; - entries[loc] = value; - }); - } - if (input.Policy !== undefined && input.Policy !== null) { - entries["Policy"] = input.Policy; - } - if (input.DurationSeconds !== undefined && input.DurationSeconds !== null) { - entries["DurationSeconds"] = input.DurationSeconds; - } - return entries; -}; -const serializeAws_queryAssumeRoleWithWebIdentityRequest = (input, context) => { - const entries = {}; - if (input.RoleArn !== undefined && input.RoleArn !== null) { - entries["RoleArn"] = input.RoleArn; - } - if (input.RoleSessionName !== undefined && input.RoleSessionName !== null) { - entries["RoleSessionName"] = input.RoleSessionName; - } - if (input.WebIdentityToken !== undefined && input.WebIdentityToken !== null) { - entries["WebIdentityToken"] = input.WebIdentityToken; - } - if (input.ProviderId !== undefined && input.ProviderId !== null) { - entries["ProviderId"] = input.ProviderId; - } - if (input.PolicyArns !== undefined && input.PolicyArns !== null) { - const memberEntries = serializeAws_querypolicyDescriptorListType(input.PolicyArns, context); - Object.entries(memberEntries).forEach(([key, value]) => { - const loc = `PolicyArns.${key}`; - entries[loc] = value; - }); - } - if (input.Policy !== undefined && input.Policy !== null) { - entries["Policy"] = input.Policy; - } - if (input.DurationSeconds !== undefined && input.DurationSeconds !== null) { - entries["DurationSeconds"] = input.DurationSeconds; - } - return entries; -}; -const serializeAws_queryDecodeAuthorizationMessageRequest = (input, context) => { - const entries = {}; - if (input.EncodedMessage !== undefined && input.EncodedMessage !== null) { - entries["EncodedMessage"] = input.EncodedMessage; - } - return entries; -}; -const serializeAws_queryGetAccessKeyInfoRequest = (input, context) => { - const entries = {}; - if (input.AccessKeyId !== undefined && input.AccessKeyId !== null) { - entries["AccessKeyId"] = input.AccessKeyId; - } - return entries; -}; -const serializeAws_queryGetCallerIdentityRequest = (input, context) => { - const entries = {}; - return entries; -}; -const serializeAws_queryGetFederationTokenRequest = (input, context) => { - const entries = {}; - if (input.Name !== undefined && input.Name !== null) { - entries["Name"] = input.Name; - } - if (input.Policy !== undefined && input.Policy !== null) { - entries["Policy"] = input.Policy; - } - if (input.PolicyArns !== undefined && input.PolicyArns !== null) { - const memberEntries = serializeAws_querypolicyDescriptorListType(input.PolicyArns, context); - Object.entries(memberEntries).forEach(([key, value]) => { - const loc = `PolicyArns.${key}`; - entries[loc] = value; - }); - } - if (input.DurationSeconds !== undefined && input.DurationSeconds !== null) { - entries["DurationSeconds"] = input.DurationSeconds; - } - if (input.Tags !== undefined && input.Tags !== null) { - const memberEntries = serializeAws_querytagListType(input.Tags, context); - Object.entries(memberEntries).forEach(([key, value]) => { - const loc = `Tags.${key}`; - entries[loc] = value; - }); - } - return entries; -}; -const serializeAws_queryGetSessionTokenRequest = (input, context) => { - const entries = {}; - if (input.DurationSeconds !== undefined && input.DurationSeconds !== null) { - entries["DurationSeconds"] = input.DurationSeconds; - } - if (input.SerialNumber !== undefined && input.SerialNumber !== null) { - entries["SerialNumber"] = input.SerialNumber; - } - if (input.TokenCode !== undefined && input.TokenCode !== null) { - entries["TokenCode"] = input.TokenCode; - } - return entries; -}; -const serializeAws_querypolicyDescriptorListType = (input, context) => { - const entries = {}; - let counter = 1; - for (const entry of input) { - if (entry === null) { - continue; - } - const memberEntries = serializeAws_queryPolicyDescriptorType(entry, context); - Object.entries(memberEntries).forEach(([key, value]) => { - entries[`member.${counter}.${key}`] = value; - }); - counter++; - } - return entries; -}; -const serializeAws_queryPolicyDescriptorType = (input, context) => { - const entries = {}; - if (input.arn !== undefined && input.arn !== null) { - entries["arn"] = input.arn; - } - return entries; -}; -const serializeAws_queryTag = (input, context) => { - const entries = {}; - if (input.Key !== undefined && input.Key !== null) { - entries["Key"] = input.Key; - } - if (input.Value !== undefined && input.Value !== null) { - entries["Value"] = input.Value; - } - return entries; -}; -const serializeAws_querytagKeyListType = (input, context) => { - const entries = {}; - let counter = 1; - for (const entry of input) { - if (entry === null) { - continue; - } - entries[`member.${counter}`] = entry; - counter++; - } - return entries; -}; -const serializeAws_querytagListType = (input, context) => { - const entries = {}; - let counter = 1; - for (const entry of input) { - if (entry === null) { - continue; - } - const memberEntries = serializeAws_queryTag(entry, context); - Object.entries(memberEntries).forEach(([key, value]) => { - entries[`member.${counter}.${key}`] = value; - }); - counter++; - } - return entries; -}; -const deserializeAws_queryAssumedRoleUser = (output, context) => { - const contents = { - AssumedRoleId: undefined, - Arn: undefined, - }; - if (output["AssumedRoleId"] !== undefined) { - contents.AssumedRoleId = smithy_client_1.expectString(output["AssumedRoleId"]); - } - if (output["Arn"] !== undefined) { - contents.Arn = smithy_client_1.expectString(output["Arn"]); - } - return contents; -}; -const deserializeAws_queryAssumeRoleResponse = (output, context) => { - const contents = { - Credentials: undefined, - AssumedRoleUser: undefined, - PackedPolicySize: undefined, - SourceIdentity: undefined, - }; - if (output["Credentials"] !== undefined) { - contents.Credentials = deserializeAws_queryCredentials(output["Credentials"], context); - } - if (output["AssumedRoleUser"] !== undefined) { - contents.AssumedRoleUser = deserializeAws_queryAssumedRoleUser(output["AssumedRoleUser"], context); - } - if (output["PackedPolicySize"] !== undefined) { - contents.PackedPolicySize = smithy_client_1.strictParseInt32(output["PackedPolicySize"]); - } - if (output["SourceIdentity"] !== undefined) { - contents.SourceIdentity = smithy_client_1.expectString(output["SourceIdentity"]); - } - return contents; -}; -const deserializeAws_queryAssumeRoleWithSAMLResponse = (output, context) => { - const contents = { - Credentials: undefined, - AssumedRoleUser: undefined, - PackedPolicySize: undefined, - Subject: undefined, - SubjectType: undefined, - Issuer: undefined, - Audience: undefined, - NameQualifier: undefined, - SourceIdentity: undefined, - }; - if (output["Credentials"] !== undefined) { - contents.Credentials = deserializeAws_queryCredentials(output["Credentials"], context); - } - if (output["AssumedRoleUser"] !== undefined) { - contents.AssumedRoleUser = deserializeAws_queryAssumedRoleUser(output["AssumedRoleUser"], context); - } - if (output["PackedPolicySize"] !== undefined) { - contents.PackedPolicySize = smithy_client_1.strictParseInt32(output["PackedPolicySize"]); - } - if (output["Subject"] !== undefined) { - contents.Subject = smithy_client_1.expectString(output["Subject"]); - } - if (output["SubjectType"] !== undefined) { - contents.SubjectType = smithy_client_1.expectString(output["SubjectType"]); - } - if (output["Issuer"] !== undefined) { - contents.Issuer = smithy_client_1.expectString(output["Issuer"]); - } - if (output["Audience"] !== undefined) { - contents.Audience = smithy_client_1.expectString(output["Audience"]); - } - if (output["NameQualifier"] !== undefined) { - contents.NameQualifier = smithy_client_1.expectString(output["NameQualifier"]); - } - if (output["SourceIdentity"] !== undefined) { - contents.SourceIdentity = smithy_client_1.expectString(output["SourceIdentity"]); - } - return contents; -}; -const deserializeAws_queryAssumeRoleWithWebIdentityResponse = (output, context) => { - const contents = { - Credentials: undefined, - SubjectFromWebIdentityToken: undefined, - AssumedRoleUser: undefined, - PackedPolicySize: undefined, - Provider: undefined, - Audience: undefined, - SourceIdentity: undefined, - }; - if (output["Credentials"] !== undefined) { - contents.Credentials = deserializeAws_queryCredentials(output["Credentials"], context); - } - if (output["SubjectFromWebIdentityToken"] !== undefined) { - contents.SubjectFromWebIdentityToken = smithy_client_1.expectString(output["SubjectFromWebIdentityToken"]); - } - if (output["AssumedRoleUser"] !== undefined) { - contents.AssumedRoleUser = deserializeAws_queryAssumedRoleUser(output["AssumedRoleUser"], context); - } - if (output["PackedPolicySize"] !== undefined) { - contents.PackedPolicySize = smithy_client_1.strictParseInt32(output["PackedPolicySize"]); - } - if (output["Provider"] !== undefined) { - contents.Provider = smithy_client_1.expectString(output["Provider"]); - } - if (output["Audience"] !== undefined) { - contents.Audience = smithy_client_1.expectString(output["Audience"]); - } - if (output["SourceIdentity"] !== undefined) { - contents.SourceIdentity = smithy_client_1.expectString(output["SourceIdentity"]); - } - return contents; -}; -const deserializeAws_queryCredentials = (output, context) => { - const contents = { - AccessKeyId: undefined, - SecretAccessKey: undefined, - SessionToken: undefined, - Expiration: undefined, - }; - if (output["AccessKeyId"] !== undefined) { - contents.AccessKeyId = smithy_client_1.expectString(output["AccessKeyId"]); - } - if (output["SecretAccessKey"] !== undefined) { - contents.SecretAccessKey = smithy_client_1.expectString(output["SecretAccessKey"]); - } - if (output["SessionToken"] !== undefined) { - contents.SessionToken = smithy_client_1.expectString(output["SessionToken"]); - } - if (output["Expiration"] !== undefined) { - contents.Expiration = smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(output["Expiration"])); - } - return contents; -}; -const deserializeAws_queryDecodeAuthorizationMessageResponse = (output, context) => { - const contents = { - DecodedMessage: undefined, - }; - if (output["DecodedMessage"] !== undefined) { - contents.DecodedMessage = smithy_client_1.expectString(output["DecodedMessage"]); - } - return contents; -}; -const deserializeAws_queryExpiredTokenException = (output, context) => { - const contents = { - message: undefined, - }; - if (output["message"] !== undefined) { - contents.message = smithy_client_1.expectString(output["message"]); - } - return contents; -}; -const deserializeAws_queryFederatedUser = (output, context) => { - const contents = { - FederatedUserId: undefined, - Arn: undefined, - }; - if (output["FederatedUserId"] !== undefined) { - contents.FederatedUserId = smithy_client_1.expectString(output["FederatedUserId"]); - } - if (output["Arn"] !== undefined) { - contents.Arn = smithy_client_1.expectString(output["Arn"]); - } - return contents; -}; -const deserializeAws_queryGetAccessKeyInfoResponse = (output, context) => { - const contents = { - Account: undefined, - }; - if (output["Account"] !== undefined) { - contents.Account = smithy_client_1.expectString(output["Account"]); - } - return contents; -}; -const deserializeAws_queryGetCallerIdentityResponse = (output, context) => { - const contents = { - UserId: undefined, - Account: undefined, - Arn: undefined, - }; - if (output["UserId"] !== undefined) { - contents.UserId = smithy_client_1.expectString(output["UserId"]); - } - if (output["Account"] !== undefined) { - contents.Account = smithy_client_1.expectString(output["Account"]); - } - if (output["Arn"] !== undefined) { - contents.Arn = smithy_client_1.expectString(output["Arn"]); - } - return contents; -}; -const deserializeAws_queryGetFederationTokenResponse = (output, context) => { - const contents = { - Credentials: undefined, - FederatedUser: undefined, - PackedPolicySize: undefined, - }; - if (output["Credentials"] !== undefined) { - contents.Credentials = deserializeAws_queryCredentials(output["Credentials"], context); - } - if (output["FederatedUser"] !== undefined) { - contents.FederatedUser = deserializeAws_queryFederatedUser(output["FederatedUser"], context); - } - if (output["PackedPolicySize"] !== undefined) { - contents.PackedPolicySize = smithy_client_1.strictParseInt32(output["PackedPolicySize"]); - } - return contents; -}; -const deserializeAws_queryGetSessionTokenResponse = (output, context) => { - const contents = { - Credentials: undefined, - }; - if (output["Credentials"] !== undefined) { - contents.Credentials = deserializeAws_queryCredentials(output["Credentials"], context); - } - return contents; -}; -const deserializeAws_queryIDPCommunicationErrorException = (output, context) => { - const contents = { - message: undefined, - }; - if (output["message"] !== undefined) { - contents.message = smithy_client_1.expectString(output["message"]); - } - return contents; -}; -const deserializeAws_queryIDPRejectedClaimException = (output, context) => { - const contents = { - message: undefined, - }; - if (output["message"] !== undefined) { - contents.message = smithy_client_1.expectString(output["message"]); - } - return contents; -}; -const deserializeAws_queryInvalidAuthorizationMessageException = (output, context) => { - const contents = { - message: undefined, - }; - if (output["message"] !== undefined) { - contents.message = smithy_client_1.expectString(output["message"]); - } - return contents; -}; -const deserializeAws_queryInvalidIdentityTokenException = (output, context) => { - const contents = { - message: undefined, - }; - if (output["message"] !== undefined) { - contents.message = smithy_client_1.expectString(output["message"]); - } - return contents; -}; -const deserializeAws_queryMalformedPolicyDocumentException = (output, context) => { - const contents = { - message: undefined, - }; - if (output["message"] !== undefined) { - contents.message = smithy_client_1.expectString(output["message"]); - } - return contents; -}; -const deserializeAws_queryPackedPolicyTooLargeException = (output, context) => { - const contents = { - message: undefined, - }; - if (output["message"] !== undefined) { - contents.message = smithy_client_1.expectString(output["message"]); - } - return contents; -}; -const deserializeAws_queryRegionDisabledException = (output, context) => { - const contents = { - message: undefined, - }; - if (output["message"] !== undefined) { - contents.message = smithy_client_1.expectString(output["message"]); - } - return contents; -}; -const deserializeMetadata = (output) => { - var _a; - return ({ - httpStatusCode: output.statusCode, - requestId: (_a = output.headers["x-amzn-requestid"]) !== null && _a !== void 0 ? _a : output.headers["x-amzn-request-id"], - extendedRequestId: output.headers["x-amz-id-2"], - cfId: output.headers["x-amz-cf-id"], - }); -}; -const collectBody = (streamBody = new Uint8Array(), context) => { - if (streamBody instanceof Uint8Array) { - return Promise.resolve(streamBody); - } - return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array()); -}; -const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body)); -const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); - const contents = { - protocol, - hostname, - port, - method: "POST", - path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path, - headers, - }; - if (resolvedHostname !== undefined) { - contents.hostname = resolvedHostname; - } - if (body !== undefined) { - contents.body = body; - } - return new protocol_http_1.HttpRequest(contents); -}; -const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => { - if (encoded.length) { - const parsedObj = fast_xml_parser_1.parse(encoded, { - attributeNamePrefix: "", - ignoreAttributes: false, - parseNodeValue: false, - trimValues: false, - tagValueProcessor: (val) => (val.trim() === "" && val.includes("\n") ? "" : entities_1.decodeHTML(val)), - }); - const textNodeName = "#text"; - const key = Object.keys(parsedObj)[0]; - const parsedObjToReturn = parsedObj[key]; - if (parsedObjToReturn[textNodeName]) { - parsedObjToReturn[key] = parsedObjToReturn[textNodeName]; - delete parsedObjToReturn[textNodeName]; - } - return smithy_client_1.getValueFromTextNode(parsedObjToReturn); - } - return {}; -}); -const buildFormUrlencodedString = (formEntries) => Object.entries(formEntries) - .map(([key, value]) => smithy_client_1.extendedEncodeURIComponent(key) + "=" + smithy_client_1.extendedEncodeURIComponent(value)) - .join("&"); -const loadQueryErrorCode = (output, data) => { - if (data.Error.Code !== undefined) { - return data.Error.Code; - } - if (output.statusCode == 404) { - return "NotFound"; - } - return ""; -}; - - -/***/ }), - -/***/ 83405: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.getRuntimeConfig = void 0; -const tslib_1 = __nccwpck_require__(4351); -const package_json_1 = tslib_1.__importDefault(__nccwpck_require__(1121)); -const defaultStsRoleAssumers_1 = __nccwpck_require__(90048); -const config_resolver_1 = __nccwpck_require__(56153); -const credential_provider_node_1 = __nccwpck_require__(75531); -const hash_node_1 = __nccwpck_require__(97442); -const middleware_retry_1 = __nccwpck_require__(96064); -const node_config_provider_1 = __nccwpck_require__(87684); -const node_http_handler_1 = __nccwpck_require__(68805); -const util_base64_node_1 = __nccwpck_require__(18588); -const util_body_length_node_1 = __nccwpck_require__(74147); -const util_user_agent_node_1 = __nccwpck_require__(98095); -const util_utf8_node_1 = __nccwpck_require__(66278); -const runtimeConfig_shared_1 = __nccwpck_require__(52642); -const smithy_client_1 = __nccwpck_require__(4963); -const getRuntimeConfig = (config) => { - var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q; - smithy_client_1.emitWarningIfUnsupportedVersion(process.version); - const clientSharedValues = runtimeConfig_shared_1.getRuntimeConfig(config); - return { - ...clientSharedValues, - ...config, - runtime: "node", - base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : util_base64_node_1.fromBase64, - base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : util_base64_node_1.toBase64, - bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : util_body_length_node_1.calculateBodyLength, - credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : defaultStsRoleAssumers_1.decorateDefaultCredentialProvider(credential_provider_node_1.defaultProvider), - defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : util_user_agent_node_1.defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }), - maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : node_config_provider_1.loadConfig(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS), - region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : node_config_provider_1.loadConfig(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS), - requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new node_http_handler_1.NodeHttpHandler(), - retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : node_config_provider_1.loadConfig(middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS), - sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : hash_node_1.Hash.bind(null, "sha256"), - streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : node_http_handler_1.streamCollector, - useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : node_config_provider_1.loadConfig(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS), - useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : node_config_provider_1.loadConfig(config_resolver_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS), - utf8Decoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _p !== void 0 ? _p : util_utf8_node_1.fromUtf8, - utf8Encoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _q !== void 0 ? _q : util_utf8_node_1.toUtf8, - }; -}; -exports.getRuntimeConfig = getRuntimeConfig; - - -/***/ }), - -/***/ 52642: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.getRuntimeConfig = void 0; -const url_parser_1 = __nccwpck_require__(2992); -const endpoints_1 = __nccwpck_require__(3571); -const getRuntimeConfig = (config) => { - var _a, _b, _c, _d, _e; - return ({ - apiVersion: "2011-06-15", - disableHostPrefix: (_a = config === null || config === void 0 ? void 0 : config.disableHostPrefix) !== null && _a !== void 0 ? _a : false, - logger: (_b = config === null || config === void 0 ? void 0 : config.logger) !== null && _b !== void 0 ? _b : {}, - regionInfoProvider: (_c = config === null || config === void 0 ? void 0 : config.regionInfoProvider) !== null && _c !== void 0 ? _c : endpoints_1.defaultRegionInfoProvider, - serviceId: (_d = config === null || config === void 0 ? void 0 : config.serviceId) !== null && _d !== void 0 ? _d : "STS", - urlParser: (_e = config === null || config === void 0 ? void 0 : config.urlParser) !== null && _e !== void 0 ? _e : url_parser_1.parseUrl, - }); -}; -exports.getRuntimeConfig = getRuntimeConfig; - - -/***/ }), - -/***/ 14723: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS = exports.DEFAULT_USE_DUALSTACK_ENDPOINT = exports.CONFIG_USE_DUALSTACK_ENDPOINT = exports.ENV_USE_DUALSTACK_ENDPOINT = void 0; -const util_config_provider_1 = __nccwpck_require__(6168); -exports.ENV_USE_DUALSTACK_ENDPOINT = "AWS_USE_DUALSTACK_ENDPOINT"; -exports.CONFIG_USE_DUALSTACK_ENDPOINT = "use_dualstack_endpoint"; -exports.DEFAULT_USE_DUALSTACK_ENDPOINT = false; -exports.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS = { - environmentVariableSelector: (env) => util_config_provider_1.booleanSelector(env, exports.ENV_USE_DUALSTACK_ENDPOINT, util_config_provider_1.SelectorType.ENV), - configFileSelector: (profile) => util_config_provider_1.booleanSelector(profile, exports.CONFIG_USE_DUALSTACK_ENDPOINT, util_config_provider_1.SelectorType.CONFIG), - default: false, -}; - - -/***/ }), - -/***/ 42478: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS = exports.DEFAULT_USE_FIPS_ENDPOINT = exports.CONFIG_USE_FIPS_ENDPOINT = exports.ENV_USE_FIPS_ENDPOINT = void 0; -const util_config_provider_1 = __nccwpck_require__(6168); -exports.ENV_USE_FIPS_ENDPOINT = "AWS_USE_FIPS_ENDPOINT"; -exports.CONFIG_USE_FIPS_ENDPOINT = "use_fips_endpoint"; -exports.DEFAULT_USE_FIPS_ENDPOINT = false; -exports.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS = { - environmentVariableSelector: (env) => util_config_provider_1.booleanSelector(env, exports.ENV_USE_FIPS_ENDPOINT, util_config_provider_1.SelectorType.ENV), - configFileSelector: (profile) => util_config_provider_1.booleanSelector(profile, exports.CONFIG_USE_FIPS_ENDPOINT, util_config_provider_1.SelectorType.CONFIG), - default: false, -}; - - -/***/ }), - -/***/ 47392: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -const tslib_1 = __nccwpck_require__(4351); -tslib_1.__exportStar(__nccwpck_require__(14723), exports); -tslib_1.__exportStar(__nccwpck_require__(42478), exports); -tslib_1.__exportStar(__nccwpck_require__(92108), exports); -tslib_1.__exportStar(__nccwpck_require__(92327), exports); - - -/***/ }), - -/***/ 92108: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.resolveCustomEndpointsConfig = void 0; -const normalizeBoolean_1 = __nccwpck_require__(52164); -const normalizeEndpoint_1 = __nccwpck_require__(9815); -const resolveCustomEndpointsConfig = (input) => { - var _a; - return ({ - ...input, - tls: (_a = input.tls) !== null && _a !== void 0 ? _a : true, - endpoint: normalizeEndpoint_1.normalizeEndpoint(input), - isCustomEndpoint: true, - useDualstackEndpoint: normalizeBoolean_1.normalizeBoolean(input.useDualstackEndpoint), - }); -}; -exports.resolveCustomEndpointsConfig = resolveCustomEndpointsConfig; - - -/***/ }), - -/***/ 92327: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.resolveEndpointsConfig = void 0; -const getEndpointFromRegion_1 = __nccwpck_require__(94159); -const normalizeBoolean_1 = __nccwpck_require__(52164); -const normalizeEndpoint_1 = __nccwpck_require__(9815); -const resolveEndpointsConfig = (input) => { - var _a; - const useDualstackEndpoint = normalizeBoolean_1.normalizeBoolean(input.useDualstackEndpoint); - const { endpoint, useFipsEndpoint } = input; - return { - ...input, - tls: (_a = input.tls) !== null && _a !== void 0 ? _a : true, - endpoint: endpoint - ? normalizeEndpoint_1.normalizeEndpoint({ ...input, endpoint }) - : () => getEndpointFromRegion_1.getEndpointFromRegion({ ...input, useDualstackEndpoint, useFipsEndpoint }), - isCustomEndpoint: endpoint ? true : false, - useDualstackEndpoint, - }; -}; -exports.resolveEndpointsConfig = resolveEndpointsConfig; - - -/***/ }), - -/***/ 94159: -/***/ ((__unused_webpack_module, exports) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.getEndpointFromRegion = void 0; -const getEndpointFromRegion = async (input) => { - var _a; - const { tls = true } = input; - const region = await input.region(); - const dnsHostRegex = new RegExp(/^([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9-]{0,61}[a-zA-Z0-9])$/); - if (!dnsHostRegex.test(region)) { - throw new Error("Invalid region in client config"); - } - const useDualstackEndpoint = await input.useDualstackEndpoint(); - const useFipsEndpoint = await input.useFipsEndpoint(); - const { hostname } = (_a = (await input.regionInfoProvider(region, { useDualstackEndpoint, useFipsEndpoint }))) !== null && _a !== void 0 ? _a : {}; - if (!hostname) { - throw new Error("Cannot resolve hostname from client config"); - } - return input.urlParser(`${tls ? "https:" : "http:"}//${hostname}`); -}; -exports.getEndpointFromRegion = getEndpointFromRegion; - - -/***/ }), - -/***/ 52164: -/***/ ((__unused_webpack_module, exports) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.normalizeBoolean = void 0; -const normalizeBoolean = (value) => { - if (typeof value === "boolean") { - const promisified = Promise.resolve(value); - return () => promisified; - } - return value; -}; -exports.normalizeBoolean = normalizeBoolean; - - -/***/ }), - -/***/ 9815: -/***/ ((__unused_webpack_module, exports) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.normalizeEndpoint = void 0; -const normalizeEndpoint = ({ endpoint, urlParser }) => { - if (typeof endpoint === "string") { - const promisified = Promise.resolve(urlParser(endpoint)); - return () => promisified; - } - else if (typeof endpoint === "object") { - const promisified = Promise.resolve(endpoint); - return () => promisified; - } - return endpoint; -}; -exports.normalizeEndpoint = normalizeEndpoint; - - -/***/ }), - -/***/ 56153: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -const tslib_1 = __nccwpck_require__(4351); -tslib_1.__exportStar(__nccwpck_require__(47392), exports); -tslib_1.__exportStar(__nccwpck_require__(85441), exports); -tslib_1.__exportStar(__nccwpck_require__(86258), exports); - - -/***/ }), - -/***/ 70422: -/***/ ((__unused_webpack_module, exports) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.NODE_REGION_CONFIG_FILE_OPTIONS = exports.NODE_REGION_CONFIG_OPTIONS = exports.REGION_INI_NAME = exports.REGION_ENV_NAME = void 0; -exports.REGION_ENV_NAME = "AWS_REGION"; -exports.REGION_INI_NAME = "region"; -exports.NODE_REGION_CONFIG_OPTIONS = { - environmentVariableSelector: (env) => env[exports.REGION_ENV_NAME], - configFileSelector: (profile) => profile[exports.REGION_INI_NAME], - default: () => { - throw new Error("Region is missing"); - }, -}; -exports.NODE_REGION_CONFIG_FILE_OPTIONS = { - preferredFile: "credentials", -}; - - -/***/ }), - -/***/ 52844: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.getRealRegion = void 0; -const isFipsRegion_1 = __nccwpck_require__(82440); -const getRealRegion = (region) => isFipsRegion_1.isFipsRegion(region) - ? ["fips-aws-global", "aws-fips"].includes(region) - ? "us-east-1" - : region.replace(/fips-(dkr-|prod-)?|-fips/, "") - : region; -exports.getRealRegion = getRealRegion; - - -/***/ }), - -/***/ 85441: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -const tslib_1 = __nccwpck_require__(4351); -tslib_1.__exportStar(__nccwpck_require__(70422), exports); -tslib_1.__exportStar(__nccwpck_require__(81595), exports); - - -/***/ }), - -/***/ 82440: -/***/ ((__unused_webpack_module, exports) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.isFipsRegion = void 0; -const isFipsRegion = (region) => typeof region === "string" && (region.startsWith("fips-") || region.endsWith("-fips")); -exports.isFipsRegion = isFipsRegion; - - -/***/ }), - -/***/ 81595: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.resolveRegionConfig = void 0; -const getRealRegion_1 = __nccwpck_require__(52844); -const isFipsRegion_1 = __nccwpck_require__(82440); -const resolveRegionConfig = (input) => { - const { region, useFipsEndpoint } = input; - if (!region) { - throw new Error("Region is missing"); - } - return { - ...input, - region: async () => { - if (typeof region === "string") { - return getRealRegion_1.getRealRegion(region); - } - const providedRegion = await region(); - return getRealRegion_1.getRealRegion(providedRegion); - }, - useFipsEndpoint: async () => { - const providedRegion = typeof region === "string" ? region : await region(); - if (isFipsRegion_1.isFipsRegion(providedRegion)) { - return true; - } - return typeof useFipsEndpoint === "boolean" ? Promise.resolve(useFipsEndpoint) : useFipsEndpoint(); - }, - }; -}; -exports.resolveRegionConfig = resolveRegionConfig; - - -/***/ }), - -/***/ 3566: -/***/ ((__unused_webpack_module, exports) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); - - -/***/ }), - -/***/ 56057: -/***/ ((__unused_webpack_module, exports) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); - - -/***/ }), - -/***/ 15280: -/***/ ((__unused_webpack_module, exports) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.getHostnameFromVariants = void 0; -const getHostnameFromVariants = (variants = [], { useFipsEndpoint, useDualstackEndpoint }) => { - var _a; - return (_a = variants.find(({ tags }) => useFipsEndpoint === tags.includes("fips") && useDualstackEndpoint === tags.includes("dualstack"))) === null || _a === void 0 ? void 0 : _a.hostname; -}; -exports.getHostnameFromVariants = getHostnameFromVariants; - - -/***/ }), - -/***/ 26167: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.getRegionInfo = void 0; -const getHostnameFromVariants_1 = __nccwpck_require__(15280); -const getResolvedHostname_1 = __nccwpck_require__(63877); -const getResolvedPartition_1 = __nccwpck_require__(37642); -const getResolvedSigningRegion_1 = __nccwpck_require__(53517); -const getRegionInfo = (region, { useFipsEndpoint = false, useDualstackEndpoint = false, signingService, regionHash, partitionHash, }) => { - var _a, _b, _c, _d, _e, _f; - const partition = getResolvedPartition_1.getResolvedPartition(region, { partitionHash }); - const resolvedRegion = region in regionHash ? region : (_b = (_a = partitionHash[partition]) === null || _a === void 0 ? void 0 : _a.endpoint) !== null && _b !== void 0 ? _b : region; - const hostnameOptions = { useFipsEndpoint, useDualstackEndpoint }; - const regionHostname = getHostnameFromVariants_1.getHostnameFromVariants((_c = regionHash[resolvedRegion]) === null || _c === void 0 ? void 0 : _c.variants, hostnameOptions); - const partitionHostname = getHostnameFromVariants_1.getHostnameFromVariants((_d = partitionHash[partition]) === null || _d === void 0 ? void 0 : _d.variants, hostnameOptions); - const hostname = getResolvedHostname_1.getResolvedHostname(resolvedRegion, { regionHostname, partitionHostname }); - if (hostname === undefined) { - throw new Error(`Endpoint resolution failed for: ${{ resolvedRegion, useFipsEndpoint, useDualstackEndpoint }}`); - } - const signingRegion = getResolvedSigningRegion_1.getResolvedSigningRegion(hostname, { - signingRegion: (_e = regionHash[resolvedRegion]) === null || _e === void 0 ? void 0 : _e.signingRegion, - regionRegex: partitionHash[partition].regionRegex, - useFipsEndpoint, - }); - return { - partition, - signingService, - hostname, - ...(signingRegion && { signingRegion }), - ...(((_f = regionHash[resolvedRegion]) === null || _f === void 0 ? void 0 : _f.signingService) && { - signingService: regionHash[resolvedRegion].signingService, - }), - }; -}; -exports.getRegionInfo = getRegionInfo; - - -/***/ }), - -/***/ 63877: -/***/ ((__unused_webpack_module, exports) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.getResolvedHostname = void 0; -const getResolvedHostname = (resolvedRegion, { regionHostname, partitionHostname }) => regionHostname - ? regionHostname - : partitionHostname - ? partitionHostname.replace("{region}", resolvedRegion) - : undefined; -exports.getResolvedHostname = getResolvedHostname; - - -/***/ }), - -/***/ 37642: -/***/ ((__unused_webpack_module, exports) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.getResolvedPartition = void 0; -const getResolvedPartition = (region, { partitionHash }) => { var _a; return (_a = Object.keys(partitionHash || {}).find((key) => partitionHash[key].regions.includes(region))) !== null && _a !== void 0 ? _a : "aws"; }; -exports.getResolvedPartition = getResolvedPartition; - - -/***/ }), - -/***/ 53517: -/***/ ((__unused_webpack_module, exports) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.getResolvedSigningRegion = void 0; -const getResolvedSigningRegion = (hostname, { signingRegion, regionRegex, useFipsEndpoint }) => { - if (signingRegion) { - return signingRegion; - } - else if (useFipsEndpoint) { - const regionRegexJs = regionRegex.replace("\\\\", "\\").replace(/^\^/g, "\\.").replace(/\$$/g, "\\."); - const regionRegexmatchArray = hostname.match(regionRegexJs); - if (regionRegexmatchArray) { - return regionRegexmatchArray[0].slice(1, -1); - } - } -}; -exports.getResolvedSigningRegion = getResolvedSigningRegion; - - -/***/ }), - -/***/ 86258: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -const tslib_1 = __nccwpck_require__(4351); -tslib_1.__exportStar(__nccwpck_require__(3566), exports); -tslib_1.__exportStar(__nccwpck_require__(56057), exports); -tslib_1.__exportStar(__nccwpck_require__(26167), exports); - - -/***/ }), - -/***/ 15972: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.fromEnv = exports.ENV_EXPIRATION = exports.ENV_SESSION = exports.ENV_SECRET = exports.ENV_KEY = void 0; -const property_provider_1 = __nccwpck_require__(74462); -exports.ENV_KEY = "AWS_ACCESS_KEY_ID"; -exports.ENV_SECRET = "AWS_SECRET_ACCESS_KEY"; -exports.ENV_SESSION = "AWS_SESSION_TOKEN"; -exports.ENV_EXPIRATION = "AWS_CREDENTIAL_EXPIRATION"; -function fromEnv() { - return () => { - const accessKeyId = process.env[exports.ENV_KEY]; - const secretAccessKey = process.env[exports.ENV_SECRET]; - const expiry = process.env[exports.ENV_EXPIRATION]; - if (accessKeyId && secretAccessKey) { - return Promise.resolve({ - accessKeyId, - secretAccessKey, - sessionToken: process.env[exports.ENV_SESSION], - expiration: expiry ? new Date(expiry) : undefined, - }); - } - return Promise.reject(new property_provider_1.CredentialsProviderError("Unable to find environment variable credentials.")); - }; -} -exports.fromEnv = fromEnv; - - -/***/ }), - -/***/ 3736: -/***/ ((__unused_webpack_module, exports) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.Endpoint = void 0; -var Endpoint; -(function (Endpoint) { - Endpoint["IPv4"] = "http://169.254.169.254"; - Endpoint["IPv6"] = "http://[fd00:ec2::254]"; -})(Endpoint = exports.Endpoint || (exports.Endpoint = {})); - - -/***/ }), - -/***/ 18438: -/***/ ((__unused_webpack_module, exports) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.ENDPOINT_CONFIG_OPTIONS = exports.CONFIG_ENDPOINT_NAME = exports.ENV_ENDPOINT_NAME = void 0; -exports.ENV_ENDPOINT_NAME = "AWS_EC2_METADATA_SERVICE_ENDPOINT"; -exports.CONFIG_ENDPOINT_NAME = "ec2_metadata_service_endpoint"; -exports.ENDPOINT_CONFIG_OPTIONS = { - environmentVariableSelector: (env) => env[exports.ENV_ENDPOINT_NAME], - configFileSelector: (profile) => profile[exports.CONFIG_ENDPOINT_NAME], - default: undefined, -}; - - -/***/ }), - -/***/ 21695: -/***/ ((__unused_webpack_module, exports) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.EndpointMode = void 0; -var EndpointMode; -(function (EndpointMode) { - EndpointMode["IPv4"] = "IPv4"; - EndpointMode["IPv6"] = "IPv6"; -})(EndpointMode = exports.EndpointMode || (exports.EndpointMode = {})); - - -/***/ }), - -/***/ 97824: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.ENDPOINT_MODE_CONFIG_OPTIONS = exports.CONFIG_ENDPOINT_MODE_NAME = exports.ENV_ENDPOINT_MODE_NAME = void 0; -const EndpointMode_1 = __nccwpck_require__(21695); -exports.ENV_ENDPOINT_MODE_NAME = "AWS_EC2_METADATA_SERVICE_ENDPOINT_MODE"; -exports.CONFIG_ENDPOINT_MODE_NAME = "ec2_metadata_service_endpoint_mode"; -exports.ENDPOINT_MODE_CONFIG_OPTIONS = { - environmentVariableSelector: (env) => env[exports.ENV_ENDPOINT_MODE_NAME], - configFileSelector: (profile) => profile[exports.CONFIG_ENDPOINT_MODE_NAME], - default: EndpointMode_1.EndpointMode.IPv4, -}; - - -/***/ }), - -/***/ 75232: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.fromContainerMetadata = exports.ENV_CMDS_AUTH_TOKEN = exports.ENV_CMDS_RELATIVE_URI = exports.ENV_CMDS_FULL_URI = void 0; -const property_provider_1 = __nccwpck_require__(74462); -const url_1 = __nccwpck_require__(78835); -const httpRequest_1 = __nccwpck_require__(81303); -const ImdsCredentials_1 = __nccwpck_require__(91467); -const RemoteProviderInit_1 = __nccwpck_require__(72314); -const retry_1 = __nccwpck_require__(49912); -exports.ENV_CMDS_FULL_URI = "AWS_CONTAINER_CREDENTIALS_FULL_URI"; -exports.ENV_CMDS_RELATIVE_URI = "AWS_CONTAINER_CREDENTIALS_RELATIVE_URI"; -exports.ENV_CMDS_AUTH_TOKEN = "AWS_CONTAINER_AUTHORIZATION_TOKEN"; -const fromContainerMetadata = (init = {}) => { - const { timeout, maxRetries } = RemoteProviderInit_1.providerConfigFromInit(init); - return () => retry_1.retry(async () => { - const requestOptions = await getCmdsUri(); - const credsResponse = JSON.parse(await requestFromEcsImds(timeout, requestOptions)); - if (!ImdsCredentials_1.isImdsCredentials(credsResponse)) { - throw new property_provider_1.CredentialsProviderError("Invalid response received from instance metadata service."); - } - return ImdsCredentials_1.fromImdsCredentials(credsResponse); - }, maxRetries); -}; -exports.fromContainerMetadata = fromContainerMetadata; -const requestFromEcsImds = async (timeout, options) => { - if (process.env[exports.ENV_CMDS_AUTH_TOKEN]) { - options.headers = { - ...options.headers, - Authorization: process.env[exports.ENV_CMDS_AUTH_TOKEN], - }; - } - const buffer = await httpRequest_1.httpRequest({ - ...options, - timeout, - }); - return buffer.toString(); -}; -const CMDS_IP = "169.254.170.2"; -const GREENGRASS_HOSTS = { - localhost: true, - "127.0.0.1": true, -}; -const GREENGRASS_PROTOCOLS = { - "http:": true, - "https:": true, -}; -const getCmdsUri = async () => { - if (process.env[exports.ENV_CMDS_RELATIVE_URI]) { - return { - hostname: CMDS_IP, - path: process.env[exports.ENV_CMDS_RELATIVE_URI], - }; - } - if (process.env[exports.ENV_CMDS_FULL_URI]) { - const parsed = url_1.parse(process.env[exports.ENV_CMDS_FULL_URI]); - if (!parsed.hostname || !(parsed.hostname in GREENGRASS_HOSTS)) { - throw new property_provider_1.CredentialsProviderError(`${parsed.hostname} is not a valid container metadata service hostname`, false); - } - if (!parsed.protocol || !(parsed.protocol in GREENGRASS_PROTOCOLS)) { - throw new property_provider_1.CredentialsProviderError(`${parsed.protocol} is not a valid container metadata service protocol`, false); - } - return { - ...parsed, - port: parsed.port ? parseInt(parsed.port, 10) : undefined, - }; - } - throw new property_provider_1.CredentialsProviderError("The container metadata credential provider cannot be used unless" + - ` the ${exports.ENV_CMDS_RELATIVE_URI} or ${exports.ENV_CMDS_FULL_URI} environment` + - " variable is set", false); -}; - - -/***/ }), - -/***/ 35813: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.fromInstanceMetadata = void 0; -const property_provider_1 = __nccwpck_require__(74462); -const httpRequest_1 = __nccwpck_require__(81303); -const ImdsCredentials_1 = __nccwpck_require__(91467); -const RemoteProviderInit_1 = __nccwpck_require__(72314); -const retry_1 = __nccwpck_require__(49912); -const getInstanceMetadataEndpoint_1 = __nccwpck_require__(41206); -const IMDS_PATH = "/latest/meta-data/iam/security-credentials/"; -const IMDS_TOKEN_PATH = "/latest/api/token"; -const fromInstanceMetadata = (init = {}) => { - let disableFetchToken = false; - const { timeout, maxRetries } = RemoteProviderInit_1.providerConfigFromInit(init); - const getCredentials = async (maxRetries, options) => { - const profile = (await retry_1.retry(async () => { - let profile; - try { - profile = await getProfile(options); - } - catch (err) { - if (err.statusCode === 401) { - disableFetchToken = false; - } - throw err; - } - return profile; - }, maxRetries)).trim(); - return retry_1.retry(async () => { - let creds; - try { - creds = await getCredentialsFromProfile(profile, options); - } - catch (err) { - if (err.statusCode === 401) { - disableFetchToken = false; - } - throw err; - } - return creds; - }, maxRetries); - }; - return async () => { - const endpoint = await getInstanceMetadataEndpoint_1.getInstanceMetadataEndpoint(); - if (disableFetchToken) { - return getCredentials(maxRetries, { ...endpoint, timeout }); - } - else { - let token; - try { - token = (await getMetadataToken({ ...endpoint, timeout })).toString(); - } - catch (error) { - if ((error === null || error === void 0 ? void 0 : error.statusCode) === 400) { - throw Object.assign(error, { - message: "EC2 Metadata token request returned error", - }); - } - else if (error.message === "TimeoutError" || [403, 404, 405].includes(error.statusCode)) { - disableFetchToken = true; - } - return getCredentials(maxRetries, { ...endpoint, timeout }); - } - return getCredentials(maxRetries, { - ...endpoint, - headers: { - "x-aws-ec2-metadata-token": token, - }, - timeout, - }); - } - }; -}; -exports.fromInstanceMetadata = fromInstanceMetadata; -const getMetadataToken = async (options) => httpRequest_1.httpRequest({ - ...options, - path: IMDS_TOKEN_PATH, - method: "PUT", - headers: { - "x-aws-ec2-metadata-token-ttl-seconds": "21600", - }, -}); -const getProfile = async (options) => (await httpRequest_1.httpRequest({ ...options, path: IMDS_PATH })).toString(); -const getCredentialsFromProfile = async (profile, options) => { - const credsResponse = JSON.parse((await httpRequest_1.httpRequest({ - ...options, - path: IMDS_PATH + profile, - })).toString()); - if (!ImdsCredentials_1.isImdsCredentials(credsResponse)) { - throw new property_provider_1.CredentialsProviderError("Invalid response received from instance metadata service."); - } - return ImdsCredentials_1.fromImdsCredentials(credsResponse); -}; - - -/***/ }), - -/***/ 25898: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -const tslib_1 = __nccwpck_require__(4351); -tslib_1.__exportStar(__nccwpck_require__(75232), exports); -tslib_1.__exportStar(__nccwpck_require__(35813), exports); -tslib_1.__exportStar(__nccwpck_require__(72314), exports); - - -/***/ }), - -/***/ 91467: -/***/ ((__unused_webpack_module, exports) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.fromImdsCredentials = exports.isImdsCredentials = void 0; -const isImdsCredentials = (arg) => Boolean(arg) && - typeof arg === "object" && - typeof arg.AccessKeyId === "string" && - typeof arg.SecretAccessKey === "string" && - typeof arg.Token === "string" && - typeof arg.Expiration === "string"; -exports.isImdsCredentials = isImdsCredentials; -const fromImdsCredentials = (creds) => ({ - accessKeyId: creds.AccessKeyId, - secretAccessKey: creds.SecretAccessKey, - sessionToken: creds.Token, - expiration: new Date(creds.Expiration), -}); -exports.fromImdsCredentials = fromImdsCredentials; - - -/***/ }), - -/***/ 72314: -/***/ ((__unused_webpack_module, exports) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.providerConfigFromInit = exports.DEFAULT_MAX_RETRIES = exports.DEFAULT_TIMEOUT = void 0; -exports.DEFAULT_TIMEOUT = 1000; -exports.DEFAULT_MAX_RETRIES = 0; -const providerConfigFromInit = ({ maxRetries = exports.DEFAULT_MAX_RETRIES, timeout = exports.DEFAULT_TIMEOUT, }) => ({ maxRetries, timeout }); -exports.providerConfigFromInit = providerConfigFromInit; - - -/***/ }), - -/***/ 81303: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.httpRequest = void 0; -const property_provider_1 = __nccwpck_require__(74462); -const buffer_1 = __nccwpck_require__(64293); -const http_1 = __nccwpck_require__(98605); -function httpRequest(options) { - return new Promise((resolve, reject) => { - var _a; - const req = http_1.request({ - method: "GET", - ...options, - hostname: (_a = options.hostname) === null || _a === void 0 ? void 0 : _a.replace(/^\[(.+)\]$/, "$1"), - }); - req.on("error", (err) => { - reject(Object.assign(new property_provider_1.ProviderError("Unable to connect to instance metadata service"), err)); - req.destroy(); - }); - req.on("timeout", () => { - reject(new property_provider_1.ProviderError("TimeoutError from instance metadata service")); - req.destroy(); - }); - req.on("response", (res) => { - const { statusCode = 400 } = res; - if (statusCode < 200 || 300 <= statusCode) { - reject(Object.assign(new property_provider_1.ProviderError("Error response received from instance metadata service"), { statusCode })); - req.destroy(); - } - const chunks = []; - res.on("data", (chunk) => { - chunks.push(chunk); - }); - res.on("end", () => { - resolve(buffer_1.Buffer.concat(chunks)); - req.destroy(); - }); - }); - req.end(); - }); -} -exports.httpRequest = httpRequest; - - -/***/ }), - -/***/ 49912: -/***/ ((__unused_webpack_module, exports) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.retry = void 0; -const retry = (toRetry, maxRetries) => { - let promise = toRetry(); - for (let i = 0; i < maxRetries; i++) { - promise = promise.catch(toRetry); - } - return promise; -}; -exports.retry = retry; - - -/***/ }), - -/***/ 41206: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.getInstanceMetadataEndpoint = void 0; -const node_config_provider_1 = __nccwpck_require__(87684); -const url_parser_1 = __nccwpck_require__(2992); -const Endpoint_1 = __nccwpck_require__(3736); -const EndpointConfigOptions_1 = __nccwpck_require__(18438); -const EndpointMode_1 = __nccwpck_require__(21695); -const EndpointModeConfigOptions_1 = __nccwpck_require__(97824); -const getInstanceMetadataEndpoint = async () => url_parser_1.parseUrl((await getFromEndpointConfig()) || (await getFromEndpointModeConfig())); -exports.getInstanceMetadataEndpoint = getInstanceMetadataEndpoint; -const getFromEndpointConfig = async () => node_config_provider_1.loadConfig(EndpointConfigOptions_1.ENDPOINT_CONFIG_OPTIONS)(); -const getFromEndpointModeConfig = async () => { - const endpointMode = await node_config_provider_1.loadConfig(EndpointModeConfigOptions_1.ENDPOINT_MODE_CONFIG_OPTIONS)(); - switch (endpointMode) { - case EndpointMode_1.EndpointMode.IPv4: - return Endpoint_1.Endpoint.IPv4; - case EndpointMode_1.EndpointMode.IPv6: - return Endpoint_1.Endpoint.IPv6; - default: - throw new Error(`Unsupported endpoint mode: ${endpointMode}.` + ` Select from ${Object.values(EndpointMode_1.EndpointMode)}`); - } -}; - - -/***/ }), - -/***/ 74203: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.fromIni = void 0; -const credential_provider_env_1 = __nccwpck_require__(15972); -const credential_provider_imds_1 = __nccwpck_require__(25898); -const credential_provider_sso_1 = __nccwpck_require__(26414); -const credential_provider_web_identity_1 = __nccwpck_require__(15646); -const property_provider_1 = __nccwpck_require__(74462); -const util_credentials_1 = __nccwpck_require__(98598); -const isStaticCredsProfile = (arg) => Boolean(arg) && - typeof arg === "object" && - typeof arg.aws_access_key_id === "string" && - typeof arg.aws_secret_access_key === "string" && - ["undefined", "string"].indexOf(typeof arg.aws_session_token) > -1; -const isWebIdentityProfile = (arg) => Boolean(arg) && - typeof arg === "object" && - typeof arg.web_identity_token_file === "string" && - typeof arg.role_arn === "string" && - ["undefined", "string"].indexOf(typeof arg.role_session_name) > -1; -const isAssumeRoleProfile = (arg) => Boolean(arg) && - typeof arg === "object" && - typeof arg.role_arn === "string" && - ["undefined", "string"].indexOf(typeof arg.role_session_name) > -1 && - ["undefined", "string"].indexOf(typeof arg.external_id) > -1 && - ["undefined", "string"].indexOf(typeof arg.mfa_serial) > -1; -const isAssumeRoleWithSourceProfile = (arg) => isAssumeRoleProfile(arg) && typeof arg.source_profile === "string" && typeof arg.credential_source === "undefined"; -const isAssumeRoleWithProviderProfile = (arg) => isAssumeRoleProfile(arg) && typeof arg.credential_source === "string" && typeof arg.source_profile === "undefined"; -const fromIni = (init = {}) => async () => { - const profiles = await util_credentials_1.parseKnownFiles(init); - return resolveProfileData(util_credentials_1.getMasterProfileName(init), profiles, init); -}; -exports.fromIni = fromIni; -const resolveProfileData = async (profileName, profiles, options, visitedProfiles = {}) => { - const data = profiles[profileName]; - if (Object.keys(visitedProfiles).length > 0 && isStaticCredsProfile(data)) { - return resolveStaticCredentials(data); - } - if (isAssumeRoleWithSourceProfile(data) || isAssumeRoleWithProviderProfile(data)) { - const { external_id: ExternalId, mfa_serial, role_arn: RoleArn, role_session_name: RoleSessionName = "aws-sdk-js-" + Date.now(), source_profile, credential_source, } = data; - if (!options.roleAssumer) { - throw new property_provider_1.CredentialsProviderError(`Profile ${profileName} requires a role to be assumed, but no` + ` role assumption callback was provided.`, false); - } - if (source_profile && source_profile in visitedProfiles) { - throw new property_provider_1.CredentialsProviderError(`Detected a cycle attempting to resolve credentials for profile` + - ` ${util_credentials_1.getMasterProfileName(options)}. Profiles visited: ` + - Object.keys(visitedProfiles).join(", "), false); - } - const sourceCreds = source_profile - ? resolveProfileData(source_profile, profiles, options, { - ...visitedProfiles, - [source_profile]: true, - }) - : resolveCredentialSource(credential_source, profileName)(); - const params = { RoleArn, RoleSessionName, ExternalId }; - if (mfa_serial) { - if (!options.mfaCodeProvider) { - throw new property_provider_1.CredentialsProviderError(`Profile ${profileName} requires multi-factor authentication,` + ` but no MFA code callback was provided.`, false); - } - params.SerialNumber = mfa_serial; - params.TokenCode = await options.mfaCodeProvider(mfa_serial); - } - return options.roleAssumer(await sourceCreds, params); - } - if (isStaticCredsProfile(data)) { - return resolveStaticCredentials(data); - } - if (isWebIdentityProfile(data)) { - return resolveWebIdentityCredentials(data, options); - } - if (credential_provider_sso_1.isSsoProfile(data)) { - const { sso_start_url, sso_account_id, sso_region, sso_role_name } = credential_provider_sso_1.validateSsoProfile(data); - return credential_provider_sso_1.fromSSO({ - ssoStartUrl: sso_start_url, - ssoAccountId: sso_account_id, - ssoRegion: sso_region, - ssoRoleName: sso_role_name, - })(); - } - throw new property_provider_1.CredentialsProviderError(`Profile ${profileName} could not be found or parsed in shared` + ` credentials file.`); -}; -const resolveCredentialSource = (credentialSource, profileName) => { - const sourceProvidersMap = { - EcsContainer: credential_provider_imds_1.fromContainerMetadata, - Ec2InstanceMetadata: credential_provider_imds_1.fromInstanceMetadata, - Environment: credential_provider_env_1.fromEnv, - }; - if (credentialSource in sourceProvidersMap) { - return sourceProvidersMap[credentialSource](); - } - else { - throw new property_provider_1.CredentialsProviderError(`Unsupported credential source in profile ${profileName}. Got ${credentialSource}, ` + - `expected EcsContainer or Ec2InstanceMetadata or Environment.`); - } -}; -const resolveStaticCredentials = (profile) => Promise.resolve({ - accessKeyId: profile.aws_access_key_id, - secretAccessKey: profile.aws_secret_access_key, - sessionToken: profile.aws_session_token, -}); -const resolveWebIdentityCredentials = async (profile, options) => credential_provider_web_identity_1.fromTokenFile({ - webIdentityTokenFile: profile.web_identity_token_file, - roleArn: profile.role_arn, - roleSessionName: profile.role_session_name, - roleAssumerWithWebIdentity: options.roleAssumerWithWebIdentity, -})(); - - -/***/ }), - -/***/ 75531: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.defaultProvider = exports.ENV_IMDS_DISABLED = void 0; -const credential_provider_env_1 = __nccwpck_require__(15972); -const credential_provider_imds_1 = __nccwpck_require__(25898); -const credential_provider_ini_1 = __nccwpck_require__(74203); -const credential_provider_process_1 = __nccwpck_require__(89969); -const credential_provider_sso_1 = __nccwpck_require__(26414); -const credential_provider_web_identity_1 = __nccwpck_require__(15646); -const property_provider_1 = __nccwpck_require__(74462); -const shared_ini_file_loader_1 = __nccwpck_require__(67387); -const util_credentials_1 = __nccwpck_require__(98598); -exports.ENV_IMDS_DISABLED = "AWS_EC2_METADATA_DISABLED"; -const defaultProvider = (init = {}) => { - const options = { profile: process.env[util_credentials_1.ENV_PROFILE], ...init }; - if (!options.loadedConfig) - options.loadedConfig = shared_ini_file_loader_1.loadSharedConfigFiles(init); - const providers = [ - credential_provider_sso_1.fromSSO(options), - credential_provider_ini_1.fromIni(options), - credential_provider_process_1.fromProcess(options), - credential_provider_web_identity_1.fromTokenFile(options), - remoteProvider(options), - async () => { - throw new property_provider_1.CredentialsProviderError("Could not load credentials from any providers", false); - }, - ]; - if (!options.profile) - providers.unshift(credential_provider_env_1.fromEnv()); - const providerChain = property_provider_1.chain(...providers); - return property_provider_1.memoize(providerChain, (credentials) => credentials.expiration !== undefined && credentials.expiration.getTime() - Date.now() < 300000, (credentials) => credentials.expiration !== undefined); -}; -exports.defaultProvider = defaultProvider; -const remoteProvider = (init) => { - if (process.env[credential_provider_imds_1.ENV_CMDS_RELATIVE_URI] || process.env[credential_provider_imds_1.ENV_CMDS_FULL_URI]) { - return credential_provider_imds_1.fromContainerMetadata(init); - } - if (process.env[exports.ENV_IMDS_DISABLED]) { - return () => Promise.reject(new property_provider_1.CredentialsProviderError("EC2 Instance Metadata Service access disabled")); - } - return credential_provider_imds_1.fromInstanceMetadata(init); -}; - - -/***/ }), - -/***/ 89969: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.fromProcess = exports.ENV_PROFILE = void 0; -const property_provider_1 = __nccwpck_require__(74462); -const util_credentials_1 = __nccwpck_require__(98598); -const child_process_1 = __nccwpck_require__(63129); -exports.ENV_PROFILE = "AWS_PROFILE"; -const fromProcess = (init = {}) => async () => { - const profiles = await util_credentials_1.parseKnownFiles(init); - return resolveProcessCredentials(util_credentials_1.getMasterProfileName(init), profiles); -}; -exports.fromProcess = fromProcess; -const resolveProcessCredentials = async (profileName, profiles) => { - const profile = profiles[profileName]; - if (profiles[profileName]) { - const credentialProcess = profile["credential_process"]; - if (credentialProcess !== undefined) { - return await execPromise(credentialProcess) - .then((processResult) => { - let data; - try { - data = JSON.parse(processResult); - } - catch (_a) { - throw Error(`Profile ${profileName} credential_process returned invalid JSON.`); - } - const { Version: version, AccessKeyId: accessKeyId, SecretAccessKey: secretAccessKey, SessionToken: sessionToken, Expiration: expiration, } = data; - if (version !== 1) { - throw Error(`Profile ${profileName} credential_process did not return Version 1.`); - } - if (accessKeyId === undefined || secretAccessKey === undefined) { - throw Error(`Profile ${profileName} credential_process returned invalid credentials.`); - } - let expirationUnix; - if (expiration) { - const currentTime = new Date(); - const expireTime = new Date(expiration); - if (expireTime < currentTime) { - throw Error(`Profile ${profileName} credential_process returned expired credentials.`); - } - expirationUnix = Math.floor(new Date(expiration).valueOf() / 1000); - } - return { - accessKeyId, - secretAccessKey, - sessionToken, - expirationUnix, - }; - }) - .catch((error) => { - throw new property_provider_1.CredentialsProviderError(error.message); - }); - } - else { - throw new property_provider_1.CredentialsProviderError(`Profile ${profileName} did not contain credential_process.`); - } - } - else { - throw new property_provider_1.CredentialsProviderError(`Profile ${profileName} could not be found in shared credentials file.`); - } -}; -const execPromise = (command) => new Promise(function (resolve, reject) { - child_process_1.exec(command, (error, stdout) => { - if (error) { - reject(error); - return; - } - resolve(stdout.trim()); - }); -}); - - -/***/ }), - -/***/ 26414: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.isSsoProfile = exports.validateSsoProfile = exports.fromSSO = exports.EXPIRE_WINDOW_MS = void 0; -const client_sso_1 = __nccwpck_require__(82666); -const property_provider_1 = __nccwpck_require__(74462); -const shared_ini_file_loader_1 = __nccwpck_require__(67387); -const util_credentials_1 = __nccwpck_require__(98598); -const crypto_1 = __nccwpck_require__(76417); -const fs_1 = __nccwpck_require__(35747); -const path_1 = __nccwpck_require__(85622); -exports.EXPIRE_WINDOW_MS = 15 * 60 * 1000; -const SHOULD_FAIL_CREDENTIAL_CHAIN = false; -const fromSSO = (init = {}) => async () => { - const { ssoStartUrl, ssoAccountId, ssoRegion, ssoRoleName, ssoClient } = init; - if (!ssoStartUrl && !ssoAccountId && !ssoRegion && !ssoRoleName) { - const profiles = await util_credentials_1.parseKnownFiles(init); - const profileName = util_credentials_1.getMasterProfileName(init); - const profile = profiles[profileName]; - if (!exports.isSsoProfile(profile)) { - throw new property_provider_1.CredentialsProviderError(`Profile ${profileName} is not configured with SSO credentials.`); - } - const { sso_start_url, sso_account_id, sso_region, sso_role_name } = exports.validateSsoProfile(profile); - return resolveSSOCredentials({ - ssoStartUrl: sso_start_url, - ssoAccountId: sso_account_id, - ssoRegion: sso_region, - ssoRoleName: sso_role_name, - ssoClient: ssoClient, - }); - } - else if (!ssoStartUrl || !ssoAccountId || !ssoRegion || !ssoRoleName) { - throw new property_provider_1.CredentialsProviderError('Incomplete configuration. The fromSSO() argument hash must include "ssoStartUrl",' + - ' "ssoAccountId", "ssoRegion", "ssoRoleName"'); - } - else { - return resolveSSOCredentials({ ssoStartUrl, ssoAccountId, ssoRegion, ssoRoleName, ssoClient }); - } -}; -exports.fromSSO = fromSSO; -const resolveSSOCredentials = async ({ ssoStartUrl, ssoAccountId, ssoRegion, ssoRoleName, ssoClient, }) => { - const hasher = crypto_1.createHash("sha1"); - const cacheName = hasher.update(ssoStartUrl).digest("hex"); - const tokenFile = path_1.join(shared_ini_file_loader_1.getHomeDir(), ".aws", "sso", "cache", `${cacheName}.json`); - let token; - try { - token = JSON.parse(fs_1.readFileSync(tokenFile, { encoding: "utf-8" })); - if (new Date(token.expiresAt).getTime() - Date.now() <= exports.EXPIRE_WINDOW_MS) { - throw new Error("SSO token is expired."); - } - } - catch (e) { - throw new property_provider_1.CredentialsProviderError(`The SSO session associated with this profile has expired or is otherwise invalid. To refresh this SSO session ` + - `run aws sso login with the corresponding profile.`, SHOULD_FAIL_CREDENTIAL_CHAIN); - } - const { accessToken } = token; - const sso = ssoClient || new client_sso_1.SSOClient({ region: ssoRegion }); - let ssoResp; - try { - ssoResp = await sso.send(new client_sso_1.GetRoleCredentialsCommand({ - accountId: ssoAccountId, - roleName: ssoRoleName, - accessToken, - })); - } - catch (e) { - throw property_provider_1.CredentialsProviderError.from(e, SHOULD_FAIL_CREDENTIAL_CHAIN); - } - const { roleCredentials: { accessKeyId, secretAccessKey, sessionToken, expiration } = {} } = ssoResp; - if (!accessKeyId || !secretAccessKey || !sessionToken || !expiration) { - throw new property_provider_1.CredentialsProviderError("SSO returns an invalid temporary credential.", SHOULD_FAIL_CREDENTIAL_CHAIN); - } - return { accessKeyId, secretAccessKey, sessionToken, expiration: new Date(expiration) }; -}; -const validateSsoProfile = (profile) => { - const { sso_start_url, sso_account_id, sso_region, sso_role_name } = profile; - if (!sso_start_url || !sso_account_id || !sso_region || !sso_role_name) { - throw new property_provider_1.CredentialsProviderError(`Profile is configured with invalid SSO credentials. Required parameters "sso_account_id", "sso_region", ` + - `"sso_role_name", "sso_start_url". Got ${Object.keys(profile).join(", ")}\nReference: https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-sso.html`, SHOULD_FAIL_CREDENTIAL_CHAIN); - } - return profile; -}; -exports.validateSsoProfile = validateSsoProfile; -const isSsoProfile = (arg) => arg && - (typeof arg.sso_start_url === "string" || - typeof arg.sso_account_id === "string" || - typeof arg.sso_region === "string" || - typeof arg.sso_role_name === "string"); -exports.isSsoProfile = isSsoProfile; - - -/***/ }), - -/***/ 35614: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.fromTokenFile = void 0; -const property_provider_1 = __nccwpck_require__(74462); -const fs_1 = __nccwpck_require__(35747); -const fromWebToken_1 = __nccwpck_require__(47905); -const ENV_TOKEN_FILE = "AWS_WEB_IDENTITY_TOKEN_FILE"; -const ENV_ROLE_ARN = "AWS_ROLE_ARN"; -const ENV_ROLE_SESSION_NAME = "AWS_ROLE_SESSION_NAME"; -const fromTokenFile = (init = {}) => async () => { - return resolveTokenFile(init); -}; -exports.fromTokenFile = fromTokenFile; -const resolveTokenFile = (init) => { - var _a, _b, _c; - const webIdentityTokenFile = (_a = init === null || init === void 0 ? void 0 : init.webIdentityTokenFile) !== null && _a !== void 0 ? _a : process.env[ENV_TOKEN_FILE]; - const roleArn = (_b = init === null || init === void 0 ? void 0 : init.roleArn) !== null && _b !== void 0 ? _b : process.env[ENV_ROLE_ARN]; - const roleSessionName = (_c = init === null || init === void 0 ? void 0 : init.roleSessionName) !== null && _c !== void 0 ? _c : process.env[ENV_ROLE_SESSION_NAME]; - if (!webIdentityTokenFile || !roleArn) { - throw new property_provider_1.CredentialsProviderError("Web identity configuration not specified"); - } - return fromWebToken_1.fromWebToken({ - ...init, - webIdentityToken: fs_1.readFileSync(webIdentityTokenFile, { encoding: "ascii" }), - roleArn, - roleSessionName, - })(); -}; - - -/***/ }), - -/***/ 47905: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.fromWebToken = void 0; -const property_provider_1 = __nccwpck_require__(74462); -const fromWebToken = (init) => () => { - const { roleArn, roleSessionName, webIdentityToken, providerId, policyArns, policy, durationSeconds, roleAssumerWithWebIdentity, } = init; - if (!roleAssumerWithWebIdentity) { - throw new property_provider_1.CredentialsProviderError(`Role Arn '${roleArn}' needs to be assumed with web identity,` + - ` but no role assumption callback was provided.`, false); - } - return roleAssumerWithWebIdentity({ - RoleArn: roleArn, - RoleSessionName: roleSessionName !== null && roleSessionName !== void 0 ? roleSessionName : `aws-sdk-js-session-${Date.now()}`, - WebIdentityToken: webIdentityToken, - ProviderId: providerId, - PolicyArns: policyArns, - Policy: policy, - DurationSeconds: durationSeconds, - }); -}; -exports.fromWebToken = fromWebToken; - - -/***/ }), - -/***/ 15646: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -const tslib_1 = __nccwpck_require__(4351); -tslib_1.__exportStar(__nccwpck_require__(35614), exports); -tslib_1.__exportStar(__nccwpck_require__(47905), exports); - - -/***/ }), - -/***/ 97442: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.Hash = void 0; -const util_buffer_from_1 = __nccwpck_require__(36010); -const buffer_1 = __nccwpck_require__(64293); -const crypto_1 = __nccwpck_require__(76417); -class Hash { - constructor(algorithmIdentifier, secret) { - this.hash = secret ? crypto_1.createHmac(algorithmIdentifier, castSourceData(secret)) : crypto_1.createHash(algorithmIdentifier); - } - update(toHash, encoding) { - this.hash.update(castSourceData(toHash, encoding)); - } - digest() { - return Promise.resolve(this.hash.digest()); - } -} -exports.Hash = Hash; -function castSourceData(toCast, encoding) { - if (buffer_1.Buffer.isBuffer(toCast)) { - return toCast; - } - if (typeof toCast === "string") { - return util_buffer_from_1.fromString(toCast, encoding); - } - if (ArrayBuffer.isView(toCast)) { - return util_buffer_from_1.fromArrayBuffer(toCast.buffer, toCast.byteOffset, toCast.byteLength); - } - return util_buffer_from_1.fromArrayBuffer(toCast); -} - - -/***/ }), - -/***/ 69126: -/***/ ((__unused_webpack_module, exports) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.isArrayBuffer = void 0; -const isArrayBuffer = (arg) => (typeof ArrayBuffer === "function" && arg instanceof ArrayBuffer) || - Object.prototype.toString.call(arg) === "[object ArrayBuffer]"; -exports.isArrayBuffer = isArrayBuffer; - - -/***/ }), - -/***/ 42245: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.getContentLengthPlugin = exports.contentLengthMiddlewareOptions = exports.contentLengthMiddleware = void 0; -const protocol_http_1 = __nccwpck_require__(70223); -const CONTENT_LENGTH_HEADER = "content-length"; -function contentLengthMiddleware(bodyLengthChecker) { - return (next) => async (args) => { - const request = args.request; - if (protocol_http_1.HttpRequest.isInstance(request)) { - const { body, headers } = request; - if (body && - Object.keys(headers) - .map((str) => str.toLowerCase()) - .indexOf(CONTENT_LENGTH_HEADER) === -1) { - const length = bodyLengthChecker(body); - if (length !== undefined) { - request.headers = { - ...request.headers, - [CONTENT_LENGTH_HEADER]: String(length), - }; - } - } - } - return next({ - ...args, - request, - }); - }; -} -exports.contentLengthMiddleware = contentLengthMiddleware; -exports.contentLengthMiddlewareOptions = { - step: "build", - tags: ["SET_CONTENT_LENGTH", "CONTENT_LENGTH"], - name: "contentLengthMiddleware", - override: true, -}; -const getContentLengthPlugin = (options) => ({ - applyToStack: (clientStack) => { - clientStack.add(contentLengthMiddleware(options.bodyLengthChecker), exports.contentLengthMiddlewareOptions); - }, -}); -exports.getContentLengthPlugin = getContentLengthPlugin; - - -/***/ }), - -/***/ 22545: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.getHostHeaderPlugin = exports.hostHeaderMiddlewareOptions = exports.hostHeaderMiddleware = exports.resolveHostHeaderConfig = void 0; -const protocol_http_1 = __nccwpck_require__(70223); -function resolveHostHeaderConfig(input) { - return input; -} -exports.resolveHostHeaderConfig = resolveHostHeaderConfig; -const hostHeaderMiddleware = (options) => (next) => async (args) => { - if (!protocol_http_1.HttpRequest.isInstance(args.request)) - return next(args); - const { request } = args; - const { handlerProtocol = "" } = options.requestHandler.metadata || {}; - if (handlerProtocol.indexOf("h2") >= 0 && !request.headers[":authority"]) { - delete request.headers["host"]; - request.headers[":authority"] = ""; - } - else if (!request.headers["host"]) { - request.headers["host"] = request.hostname; - } - return next(args); -}; -exports.hostHeaderMiddleware = hostHeaderMiddleware; -exports.hostHeaderMiddlewareOptions = { - name: "hostHeaderMiddleware", - step: "build", - priority: "low", - tags: ["HOST"], - override: true, -}; -const getHostHeaderPlugin = (options) => ({ - applyToStack: (clientStack) => { - clientStack.add(exports.hostHeaderMiddleware(options), exports.hostHeaderMiddlewareOptions); - }, -}); -exports.getHostHeaderPlugin = getHostHeaderPlugin; - - -/***/ }), - -/***/ 20014: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -const tslib_1 = __nccwpck_require__(4351); -tslib_1.__exportStar(__nccwpck_require__(9754), exports); - - -/***/ }), - -/***/ 9754: -/***/ ((__unused_webpack_module, exports) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.getLoggerPlugin = exports.loggerMiddlewareOptions = exports.loggerMiddleware = void 0; -const loggerMiddleware = () => (next, context) => async (args) => { - const { clientName, commandName, inputFilterSensitiveLog, logger, outputFilterSensitiveLog } = context; - const response = await next(args); - if (!logger) { - return response; - } - if (typeof logger.info === "function") { - const { $metadata, ...outputWithoutMetadata } = response.output; - logger.info({ - clientName, - commandName, - input: inputFilterSensitiveLog(args.input), - output: outputFilterSensitiveLog(outputWithoutMetadata), - metadata: $metadata, - }); - } - return response; -}; -exports.loggerMiddleware = loggerMiddleware; -exports.loggerMiddlewareOptions = { - name: "loggerMiddleware", - tags: ["LOGGER"], - step: "initialize", - override: true, -}; -const getLoggerPlugin = (options) => ({ - applyToStack: (clientStack) => { - clientStack.add(exports.loggerMiddleware(), exports.loggerMiddlewareOptions); - }, -}); -exports.getLoggerPlugin = getLoggerPlugin; - - -/***/ }), - -/***/ 47328: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.AdaptiveRetryStrategy = void 0; -const config_1 = __nccwpck_require__(55192); -const DefaultRateLimiter_1 = __nccwpck_require__(6402); -const StandardRetryStrategy_1 = __nccwpck_require__(533); -class AdaptiveRetryStrategy extends StandardRetryStrategy_1.StandardRetryStrategy { - constructor(maxAttemptsProvider, options) { - const { rateLimiter, ...superOptions } = options !== null && options !== void 0 ? options : {}; - super(maxAttemptsProvider, superOptions); - this.rateLimiter = rateLimiter !== null && rateLimiter !== void 0 ? rateLimiter : new DefaultRateLimiter_1.DefaultRateLimiter(); - this.mode = config_1.RETRY_MODES.ADAPTIVE; - } - async retry(next, args) { - return super.retry(next, args, { - beforeRequest: async () => { - return this.rateLimiter.getSendToken(); - }, - afterRequest: (response) => { - this.rateLimiter.updateClientSendingRate(response); - }, - }); - } -} -exports.AdaptiveRetryStrategy = AdaptiveRetryStrategy; - - -/***/ }), - -/***/ 6402: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.DefaultRateLimiter = void 0; -const service_error_classification_1 = __nccwpck_require__(61921); -class DefaultRateLimiter { - constructor(options) { - var _a, _b, _c, _d, _e; - this.currentCapacity = 0; - this.enabled = false; - this.lastMaxRate = 0; - this.measuredTxRate = 0; - this.requestCount = 0; - this.lastTimestamp = 0; - this.timeWindow = 0; - this.beta = (_a = options === null || options === void 0 ? void 0 : options.beta) !== null && _a !== void 0 ? _a : 0.7; - this.minCapacity = (_b = options === null || options === void 0 ? void 0 : options.minCapacity) !== null && _b !== void 0 ? _b : 1; - this.minFillRate = (_c = options === null || options === void 0 ? void 0 : options.minFillRate) !== null && _c !== void 0 ? _c : 0.5; - this.scaleConstant = (_d = options === null || options === void 0 ? void 0 : options.scaleConstant) !== null && _d !== void 0 ? _d : 0.4; - this.smooth = (_e = options === null || options === void 0 ? void 0 : options.smooth) !== null && _e !== void 0 ? _e : 0.8; - const currentTimeInSeconds = this.getCurrentTimeInSeconds(); - this.lastThrottleTime = currentTimeInSeconds; - this.lastTxRateBucket = Math.floor(this.getCurrentTimeInSeconds()); - this.fillRate = this.minFillRate; - this.maxCapacity = this.minCapacity; - } - getCurrentTimeInSeconds() { - return Date.now() / 1000; - } - async getSendToken() { - return this.acquireTokenBucket(1); - } - async acquireTokenBucket(amount) { - if (!this.enabled) { - return; - } - this.refillTokenBucket(); - if (amount > this.currentCapacity) { - const delay = ((amount - this.currentCapacity) / this.fillRate) * 1000; - await new Promise((resolve) => setTimeout(resolve, delay)); - } - this.currentCapacity = this.currentCapacity - amount; - } - refillTokenBucket() { - const timestamp = this.getCurrentTimeInSeconds(); - if (!this.lastTimestamp) { - this.lastTimestamp = timestamp; - return; - } - const fillAmount = (timestamp - this.lastTimestamp) * this.fillRate; - this.currentCapacity = Math.min(this.maxCapacity, this.currentCapacity + fillAmount); - this.lastTimestamp = timestamp; - } - updateClientSendingRate(response) { - let calculatedRate; - this.updateMeasuredRate(); - if (service_error_classification_1.isThrottlingError(response)) { - const rateToUse = !this.enabled ? this.measuredTxRate : Math.min(this.measuredTxRate, this.fillRate); - this.lastMaxRate = rateToUse; - this.calculateTimeWindow(); - this.lastThrottleTime = this.getCurrentTimeInSeconds(); - calculatedRate = this.cubicThrottle(rateToUse); - this.enableTokenBucket(); - } - else { - this.calculateTimeWindow(); - calculatedRate = this.cubicSuccess(this.getCurrentTimeInSeconds()); - } - const newRate = Math.min(calculatedRate, 2 * this.measuredTxRate); - this.updateTokenBucketRate(newRate); - } - calculateTimeWindow() { - this.timeWindow = this.getPrecise(Math.pow((this.lastMaxRate * (1 - this.beta)) / this.scaleConstant, 1 / 3)); - } - cubicThrottle(rateToUse) { - return this.getPrecise(rateToUse * this.beta); - } - cubicSuccess(timestamp) { - return this.getPrecise(this.scaleConstant * Math.pow(timestamp - this.lastThrottleTime - this.timeWindow, 3) + this.lastMaxRate); - } - enableTokenBucket() { - this.enabled = true; - } - updateTokenBucketRate(newRate) { - this.refillTokenBucket(); - this.fillRate = Math.max(newRate, this.minFillRate); - this.maxCapacity = Math.max(newRate, this.minCapacity); - this.currentCapacity = Math.min(this.currentCapacity, this.maxCapacity); - } - updateMeasuredRate() { - const t = this.getCurrentTimeInSeconds(); - const timeBucket = Math.floor(t * 2) / 2; - this.requestCount++; - if (timeBucket > this.lastTxRateBucket) { - const currentRate = this.requestCount / (timeBucket - this.lastTxRateBucket); - this.measuredTxRate = this.getPrecise(currentRate * this.smooth + this.measuredTxRate * (1 - this.smooth)); - this.requestCount = 0; - this.lastTxRateBucket = timeBucket; - } - } - getPrecise(num) { - return parseFloat(num.toFixed(8)); - } -} -exports.DefaultRateLimiter = DefaultRateLimiter; - - -/***/ }), - -/***/ 533: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.StandardRetryStrategy = void 0; -const protocol_http_1 = __nccwpck_require__(70223); -const service_error_classification_1 = __nccwpck_require__(61921); -const uuid_1 = __nccwpck_require__(75840); -const config_1 = __nccwpck_require__(55192); -const constants_1 = __nccwpck_require__(30041); -const defaultRetryQuota_1 = __nccwpck_require__(12568); -const delayDecider_1 = __nccwpck_require__(55940); -const retryDecider_1 = __nccwpck_require__(19572); -class StandardRetryStrategy { - constructor(maxAttemptsProvider, options) { - var _a, _b, _c; - this.maxAttemptsProvider = maxAttemptsProvider; - this.mode = config_1.RETRY_MODES.STANDARD; - this.retryDecider = (_a = options === null || options === void 0 ? void 0 : options.retryDecider) !== null && _a !== void 0 ? _a : retryDecider_1.defaultRetryDecider; - this.delayDecider = (_b = options === null || options === void 0 ? void 0 : options.delayDecider) !== null && _b !== void 0 ? _b : delayDecider_1.defaultDelayDecider; - this.retryQuota = (_c = options === null || options === void 0 ? void 0 : options.retryQuota) !== null && _c !== void 0 ? _c : defaultRetryQuota_1.getDefaultRetryQuota(constants_1.INITIAL_RETRY_TOKENS); - } - shouldRetry(error, attempts, maxAttempts) { - return attempts < maxAttempts && this.retryDecider(error) && this.retryQuota.hasRetryTokens(error); - } - async getMaxAttempts() { - let maxAttempts; - try { - maxAttempts = await this.maxAttemptsProvider(); - } - catch (error) { - maxAttempts = config_1.DEFAULT_MAX_ATTEMPTS; - } - return maxAttempts; - } - async retry(next, args, options) { - let retryTokenAmount; - let attempts = 0; - let totalDelay = 0; - const maxAttempts = await this.getMaxAttempts(); - const { request } = args; - if (protocol_http_1.HttpRequest.isInstance(request)) { - request.headers[constants_1.INVOCATION_ID_HEADER] = uuid_1.v4(); - } - while (true) { - try { - if (protocol_http_1.HttpRequest.isInstance(request)) { - request.headers[constants_1.REQUEST_HEADER] = `attempt=${attempts + 1}; max=${maxAttempts}`; - } - if (options === null || options === void 0 ? void 0 : options.beforeRequest) { - await options.beforeRequest(); - } - const { response, output } = await next(args); - if (options === null || options === void 0 ? void 0 : options.afterRequest) { - options.afterRequest(response); - } - this.retryQuota.releaseRetryTokens(retryTokenAmount); - output.$metadata.attempts = attempts + 1; - output.$metadata.totalRetryDelay = totalDelay; - return { response, output }; - } - catch (e) { - const err = asSdkError(e); - attempts++; - if (this.shouldRetry(err, attempts, maxAttempts)) { - retryTokenAmount = this.retryQuota.retrieveRetryTokens(err); - const delay = this.delayDecider(service_error_classification_1.isThrottlingError(err) ? constants_1.THROTTLING_RETRY_DELAY_BASE : constants_1.DEFAULT_RETRY_DELAY_BASE, attempts); - totalDelay += delay; - await new Promise((resolve) => setTimeout(resolve, delay)); - continue; - } - if (!err.$metadata) { - err.$metadata = {}; - } - err.$metadata.attempts = attempts; - err.$metadata.totalRetryDelay = totalDelay; - throw err; - } - } - } -} -exports.StandardRetryStrategy = StandardRetryStrategy; -const asSdkError = (error) => { - if (error instanceof Error) - return error; - if (error instanceof Object) - return Object.assign(new Error(), error); - if (typeof error === "string") - return new Error(error); - return new Error(`AWS SDK error wrapper for ${error}`); -}; - - -/***/ }), - -/***/ 55192: -/***/ ((__unused_webpack_module, exports) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.DEFAULT_RETRY_MODE = exports.DEFAULT_MAX_ATTEMPTS = exports.RETRY_MODES = void 0; -var RETRY_MODES; -(function (RETRY_MODES) { - RETRY_MODES["STANDARD"] = "standard"; - RETRY_MODES["ADAPTIVE"] = "adaptive"; -})(RETRY_MODES = exports.RETRY_MODES || (exports.RETRY_MODES = {})); -exports.DEFAULT_MAX_ATTEMPTS = 3; -exports.DEFAULT_RETRY_MODE = RETRY_MODES.STANDARD; - - -/***/ }), - -/***/ 76160: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.NODE_RETRY_MODE_CONFIG_OPTIONS = exports.CONFIG_RETRY_MODE = exports.ENV_RETRY_MODE = exports.resolveRetryConfig = exports.NODE_MAX_ATTEMPT_CONFIG_OPTIONS = exports.CONFIG_MAX_ATTEMPTS = exports.ENV_MAX_ATTEMPTS = void 0; -const AdaptiveRetryStrategy_1 = __nccwpck_require__(47328); -const config_1 = __nccwpck_require__(55192); -const StandardRetryStrategy_1 = __nccwpck_require__(533); -exports.ENV_MAX_ATTEMPTS = "AWS_MAX_ATTEMPTS"; -exports.CONFIG_MAX_ATTEMPTS = "max_attempts"; -exports.NODE_MAX_ATTEMPT_CONFIG_OPTIONS = { - environmentVariableSelector: (env) => { - const value = env[exports.ENV_MAX_ATTEMPTS]; - if (!value) - return undefined; - const maxAttempt = parseInt(value); - if (Number.isNaN(maxAttempt)) { - throw new Error(`Environment variable ${exports.ENV_MAX_ATTEMPTS} mast be a number, got "${value}"`); - } - return maxAttempt; - }, - configFileSelector: (profile) => { - const value = profile[exports.CONFIG_MAX_ATTEMPTS]; - if (!value) - return undefined; - const maxAttempt = parseInt(value); - if (Number.isNaN(maxAttempt)) { - throw new Error(`Shared config file entry ${exports.CONFIG_MAX_ATTEMPTS} mast be a number, got "${value}"`); - } - return maxAttempt; - }, - default: config_1.DEFAULT_MAX_ATTEMPTS, -}; -const resolveRetryConfig = (input) => { - const maxAttempts = normalizeMaxAttempts(input.maxAttempts); - return { - ...input, - maxAttempts, - retryStrategy: async () => { - if (input.retryStrategy) { - return input.retryStrategy; - } - const retryMode = await getRetryMode(input.retryMode); - if (retryMode === config_1.RETRY_MODES.ADAPTIVE) { - return new AdaptiveRetryStrategy_1.AdaptiveRetryStrategy(maxAttempts); - } - return new StandardRetryStrategy_1.StandardRetryStrategy(maxAttempts); - }, - }; -}; -exports.resolveRetryConfig = resolveRetryConfig; -const getRetryMode = async (retryMode) => { - if (typeof retryMode === "string") { - return retryMode; - } - return await retryMode(); -}; -const normalizeMaxAttempts = (maxAttempts = config_1.DEFAULT_MAX_ATTEMPTS) => { - if (typeof maxAttempts === "number") { - const promisified = Promise.resolve(maxAttempts); - return () => promisified; - } - return maxAttempts; -}; -exports.ENV_RETRY_MODE = "AWS_RETRY_MODE"; -exports.CONFIG_RETRY_MODE = "retry_mode"; -exports.NODE_RETRY_MODE_CONFIG_OPTIONS = { - environmentVariableSelector: (env) => env[exports.ENV_RETRY_MODE], - configFileSelector: (profile) => profile[exports.CONFIG_RETRY_MODE], - default: config_1.DEFAULT_RETRY_MODE, -}; - - -/***/ }), - -/***/ 30041: -/***/ ((__unused_webpack_module, exports) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.REQUEST_HEADER = exports.INVOCATION_ID_HEADER = exports.NO_RETRY_INCREMENT = exports.TIMEOUT_RETRY_COST = exports.RETRY_COST = exports.INITIAL_RETRY_TOKENS = exports.THROTTLING_RETRY_DELAY_BASE = exports.MAXIMUM_RETRY_DELAY = exports.DEFAULT_RETRY_DELAY_BASE = void 0; -exports.DEFAULT_RETRY_DELAY_BASE = 100; -exports.MAXIMUM_RETRY_DELAY = 20 * 1000; -exports.THROTTLING_RETRY_DELAY_BASE = 500; -exports.INITIAL_RETRY_TOKENS = 500; -exports.RETRY_COST = 5; -exports.TIMEOUT_RETRY_COST = 10; -exports.NO_RETRY_INCREMENT = 1; -exports.INVOCATION_ID_HEADER = "amz-sdk-invocation-id"; -exports.REQUEST_HEADER = "amz-sdk-request"; - - -/***/ }), - -/***/ 12568: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.getDefaultRetryQuota = void 0; -const constants_1 = __nccwpck_require__(30041); -const getDefaultRetryQuota = (initialRetryTokens, options) => { - var _a, _b, _c; - const MAX_CAPACITY = initialRetryTokens; - const noRetryIncrement = (_a = options === null || options === void 0 ? void 0 : options.noRetryIncrement) !== null && _a !== void 0 ? _a : constants_1.NO_RETRY_INCREMENT; - const retryCost = (_b = options === null || options === void 0 ? void 0 : options.retryCost) !== null && _b !== void 0 ? _b : constants_1.RETRY_COST; - const timeoutRetryCost = (_c = options === null || options === void 0 ? void 0 : options.timeoutRetryCost) !== null && _c !== void 0 ? _c : constants_1.TIMEOUT_RETRY_COST; - let availableCapacity = initialRetryTokens; - const getCapacityAmount = (error) => (error.name === "TimeoutError" ? timeoutRetryCost : retryCost); - const hasRetryTokens = (error) => getCapacityAmount(error) <= availableCapacity; - const retrieveRetryTokens = (error) => { - if (!hasRetryTokens(error)) { - throw new Error("No retry token available"); - } - const capacityAmount = getCapacityAmount(error); - availableCapacity -= capacityAmount; - return capacityAmount; - }; - const releaseRetryTokens = (capacityReleaseAmount) => { - availableCapacity += capacityReleaseAmount !== null && capacityReleaseAmount !== void 0 ? capacityReleaseAmount : noRetryIncrement; - availableCapacity = Math.min(availableCapacity, MAX_CAPACITY); - }; - return Object.freeze({ - hasRetryTokens, - retrieveRetryTokens, - releaseRetryTokens, - }); -}; -exports.getDefaultRetryQuota = getDefaultRetryQuota; - - -/***/ }), - -/***/ 55940: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.defaultDelayDecider = void 0; -const constants_1 = __nccwpck_require__(30041); -const defaultDelayDecider = (delayBase, attempts) => Math.floor(Math.min(constants_1.MAXIMUM_RETRY_DELAY, Math.random() * 2 ** attempts * delayBase)); -exports.defaultDelayDecider = defaultDelayDecider; - - -/***/ }), - -/***/ 96064: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -const tslib_1 = __nccwpck_require__(4351); -tslib_1.__exportStar(__nccwpck_require__(47328), exports); -tslib_1.__exportStar(__nccwpck_require__(6402), exports); -tslib_1.__exportStar(__nccwpck_require__(533), exports); -tslib_1.__exportStar(__nccwpck_require__(55192), exports); -tslib_1.__exportStar(__nccwpck_require__(76160), exports); -tslib_1.__exportStar(__nccwpck_require__(55940), exports); -tslib_1.__exportStar(__nccwpck_require__(43521), exports); -tslib_1.__exportStar(__nccwpck_require__(19572), exports); -tslib_1.__exportStar(__nccwpck_require__(11806), exports); -tslib_1.__exportStar(__nccwpck_require__(48580), exports); - - -/***/ }), - -/***/ 43521: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.getOmitRetryHeadersPlugin = exports.omitRetryHeadersMiddlewareOptions = exports.omitRetryHeadersMiddleware = void 0; -const protocol_http_1 = __nccwpck_require__(70223); -const constants_1 = __nccwpck_require__(30041); -const omitRetryHeadersMiddleware = () => (next) => async (args) => { - const { request } = args; - if (protocol_http_1.HttpRequest.isInstance(request)) { - delete request.headers[constants_1.INVOCATION_ID_HEADER]; - delete request.headers[constants_1.REQUEST_HEADER]; - } - return next(args); -}; -exports.omitRetryHeadersMiddleware = omitRetryHeadersMiddleware; -exports.omitRetryHeadersMiddlewareOptions = { - name: "omitRetryHeadersMiddleware", - tags: ["RETRY", "HEADERS", "OMIT_RETRY_HEADERS"], - relation: "before", - toMiddleware: "awsAuthMiddleware", - override: true, -}; -const getOmitRetryHeadersPlugin = (options) => ({ - applyToStack: (clientStack) => { - clientStack.addRelativeTo(exports.omitRetryHeadersMiddleware(), exports.omitRetryHeadersMiddlewareOptions); - }, -}); -exports.getOmitRetryHeadersPlugin = getOmitRetryHeadersPlugin; - - -/***/ }), - -/***/ 19572: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.defaultRetryDecider = void 0; -const service_error_classification_1 = __nccwpck_require__(61921); -const defaultRetryDecider = (error) => { - if (!error) { - return false; - } - return service_error_classification_1.isRetryableByTrait(error) || service_error_classification_1.isClockSkewError(error) || service_error_classification_1.isThrottlingError(error) || service_error_classification_1.isTransientError(error); -}; -exports.defaultRetryDecider = defaultRetryDecider; - - -/***/ }), - -/***/ 11806: -/***/ ((__unused_webpack_module, exports) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.getRetryPlugin = exports.retryMiddlewareOptions = exports.retryMiddleware = void 0; -const retryMiddleware = (options) => (next, context) => async (args) => { - const retryStrategy = await options.retryStrategy(); - if (retryStrategy === null || retryStrategy === void 0 ? void 0 : retryStrategy.mode) - context.userAgent = [...(context.userAgent || []), ["cfg/retry-mode", retryStrategy.mode]]; - return retryStrategy.retry(next, args); -}; -exports.retryMiddleware = retryMiddleware; -exports.retryMiddlewareOptions = { - name: "retryMiddleware", - tags: ["RETRY"], - step: "finalizeRequest", - priority: "high", - override: true, -}; -const getRetryPlugin = (options) => ({ - applyToStack: (clientStack) => { - clientStack.add(exports.retryMiddleware(options), exports.retryMiddlewareOptions); - }, -}); -exports.getRetryPlugin = getRetryPlugin; - - -/***/ }), - -/***/ 48580: -/***/ ((__unused_webpack_module, exports) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); - - -/***/ }), - -/***/ 55959: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.resolveStsAuthConfig = void 0; -const middleware_signing_1 = __nccwpck_require__(14935); -const resolveStsAuthConfig = (input, { stsClientCtor }) => middleware_signing_1.resolveAwsAuthConfig({ - ...input, - stsClientCtor, -}); -exports.resolveStsAuthConfig = resolveStsAuthConfig; - - -/***/ }), - -/***/ 65648: -/***/ ((__unused_webpack_module, exports) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.deserializerMiddleware = void 0; -const deserializerMiddleware = (options, deserializer) => (next, context) => async (args) => { - const { response } = await next(args); - const parsed = await deserializer(response, options); - return { - response, - output: parsed, - }; -}; -exports.deserializerMiddleware = deserializerMiddleware; - - -/***/ }), - -/***/ 93631: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -const tslib_1 = __nccwpck_require__(4351); -tslib_1.__exportStar(__nccwpck_require__(65648), exports); -tslib_1.__exportStar(__nccwpck_require__(99328), exports); -tslib_1.__exportStar(__nccwpck_require__(19511), exports); - - -/***/ }), - -/***/ 99328: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.getSerdePlugin = exports.serializerMiddlewareOption = exports.deserializerMiddlewareOption = void 0; -const deserializerMiddleware_1 = __nccwpck_require__(65648); -const serializerMiddleware_1 = __nccwpck_require__(19511); -exports.deserializerMiddlewareOption = { - name: "deserializerMiddleware", - step: "deserialize", - tags: ["DESERIALIZER"], - override: true, -}; -exports.serializerMiddlewareOption = { - name: "serializerMiddleware", - step: "serialize", - tags: ["SERIALIZER"], - override: true, -}; -function getSerdePlugin(config, serializer, deserializer) { - return { - applyToStack: (commandStack) => { - commandStack.add(deserializerMiddleware_1.deserializerMiddleware(config, deserializer), exports.deserializerMiddlewareOption); - commandStack.add(serializerMiddleware_1.serializerMiddleware(config, serializer), exports.serializerMiddlewareOption); - }, - }; -} -exports.getSerdePlugin = getSerdePlugin; - - -/***/ }), - -/***/ 19511: -/***/ ((__unused_webpack_module, exports) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.serializerMiddleware = void 0; -const serializerMiddleware = (options, serializer) => (next, context) => async (args) => { - const request = await serializer(args.input, options); - return next({ - ...args, - request, - }); -}; -exports.serializerMiddleware = serializerMiddleware; - - -/***/ }), - -/***/ 63061: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.resolveSigV4AuthConfig = exports.resolveAwsAuthConfig = void 0; -const property_provider_1 = __nccwpck_require__(74462); -const signature_v4_1 = __nccwpck_require__(37776); -const CREDENTIAL_EXPIRE_WINDOW = 300000; -const resolveAwsAuthConfig = (input) => { - const normalizedCreds = input.credentials - ? normalizeCredentialProvider(input.credentials) - : input.credentialDefaultProvider(input); - const { signingEscapePath = true, systemClockOffset = input.systemClockOffset || 0, sha256 } = input; - let signer; - if (input.signer) { - signer = normalizeProvider(input.signer); - } - else { - signer = () => normalizeProvider(input.region)() - .then(async (region) => [ - (await input.regionInfoProvider(region, { - useFipsEndpoint: await input.useFipsEndpoint(), - useDualstackEndpoint: await input.useDualstackEndpoint(), - })) || {}, - region, - ]) - .then(([regionInfo, region]) => { - const { signingRegion, signingService } = regionInfo; - input.signingRegion = input.signingRegion || signingRegion || region; - input.signingName = input.signingName || signingService || input.serviceId; - const params = { - ...input, - credentials: normalizedCreds, - region: input.signingRegion, - service: input.signingName, - sha256, - uriEscapePath: signingEscapePath, - }; - const signerConstructor = input.signerConstructor || signature_v4_1.SignatureV4; - return new signerConstructor(params); - }); - } - return { - ...input, - systemClockOffset, - signingEscapePath, - credentials: normalizedCreds, - signer, - }; -}; -exports.resolveAwsAuthConfig = resolveAwsAuthConfig; -const resolveSigV4AuthConfig = (input) => { - const normalizedCreds = input.credentials - ? normalizeCredentialProvider(input.credentials) - : input.credentialDefaultProvider(input); - const { signingEscapePath = true, systemClockOffset = input.systemClockOffset || 0, sha256 } = input; - let signer; - if (input.signer) { - signer = normalizeProvider(input.signer); - } - else { - signer = normalizeProvider(new signature_v4_1.SignatureV4({ - credentials: normalizedCreds, - region: input.region, - service: input.signingName, - sha256, - uriEscapePath: signingEscapePath, - })); - } - return { - ...input, - systemClockOffset, - signingEscapePath, - credentials: normalizedCreds, - signer, - }; -}; -exports.resolveSigV4AuthConfig = resolveSigV4AuthConfig; -const normalizeProvider = (input) => { - if (typeof input === "object") { - const promisified = Promise.resolve(input); - return () => promisified; - } - return input; -}; -const normalizeCredentialProvider = (credentials) => { - if (typeof credentials === "function") { - return property_provider_1.memoize(credentials, (credentials) => credentials.expiration !== undefined && - credentials.expiration.getTime() - Date.now() < CREDENTIAL_EXPIRE_WINDOW, (credentials) => credentials.expiration !== undefined); - } - return normalizeProvider(credentials); -}; - - -/***/ }), - -/***/ 14935: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -const tslib_1 = __nccwpck_require__(4351); -tslib_1.__exportStar(__nccwpck_require__(63061), exports); -tslib_1.__exportStar(__nccwpck_require__(42509), exports); - - -/***/ }), - -/***/ 42509: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.getSigV4AuthPlugin = exports.getAwsAuthPlugin = exports.awsAuthMiddlewareOptions = exports.awsAuthMiddleware = void 0; -const protocol_http_1 = __nccwpck_require__(70223); -const getSkewCorrectedDate_1 = __nccwpck_require__(68253); -const getUpdatedSystemClockOffset_1 = __nccwpck_require__(35863); -const awsAuthMiddleware = (options) => (next, context) => async function (args) { - if (!protocol_http_1.HttpRequest.isInstance(args.request)) - return next(args); - const signer = await options.signer(); - const output = await next({ - ...args, - request: await signer.sign(args.request, { - signingDate: getSkewCorrectedDate_1.getSkewCorrectedDate(options.systemClockOffset), - signingRegion: context["signing_region"], - signingService: context["signing_service"], - }), - }).catch((error) => { - if (error.ServerTime) { - options.systemClockOffset = getUpdatedSystemClockOffset_1.getUpdatedSystemClockOffset(error.ServerTime, options.systemClockOffset); - } - throw error; - }); - const { headers } = output.response; - const dateHeader = headers && (headers.date || headers.Date); - if (dateHeader) { - options.systemClockOffset = getUpdatedSystemClockOffset_1.getUpdatedSystemClockOffset(dateHeader, options.systemClockOffset); - } - return output; -}; -exports.awsAuthMiddleware = awsAuthMiddleware; -exports.awsAuthMiddlewareOptions = { - name: "awsAuthMiddleware", - tags: ["SIGNATURE", "AWSAUTH"], - relation: "after", - toMiddleware: "retryMiddleware", - override: true, -}; -const getAwsAuthPlugin = (options) => ({ - applyToStack: (clientStack) => { - clientStack.addRelativeTo(exports.awsAuthMiddleware(options), exports.awsAuthMiddlewareOptions); - }, -}); -exports.getAwsAuthPlugin = getAwsAuthPlugin; -exports.getSigV4AuthPlugin = exports.getAwsAuthPlugin; - - -/***/ }), - -/***/ 68253: -/***/ ((__unused_webpack_module, exports) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.getSkewCorrectedDate = void 0; -const getSkewCorrectedDate = (systemClockOffset) => new Date(Date.now() + systemClockOffset); -exports.getSkewCorrectedDate = getSkewCorrectedDate; - - -/***/ }), - -/***/ 35863: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.getUpdatedSystemClockOffset = void 0; -const isClockSkewed_1 = __nccwpck_require__(85301); -const getUpdatedSystemClockOffset = (clockTime, currentSystemClockOffset) => { - const clockTimeInMs = Date.parse(clockTime); - if (isClockSkewed_1.isClockSkewed(clockTimeInMs, currentSystemClockOffset)) { - return clockTimeInMs - Date.now(); - } - return currentSystemClockOffset; -}; -exports.getUpdatedSystemClockOffset = getUpdatedSystemClockOffset; - - -/***/ }), - -/***/ 85301: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.isClockSkewed = void 0; -const getSkewCorrectedDate_1 = __nccwpck_require__(68253); -const isClockSkewed = (clockTime, systemClockOffset) => Math.abs(getSkewCorrectedDate_1.getSkewCorrectedDate(systemClockOffset).getTime() - clockTime) >= 300000; -exports.isClockSkewed = isClockSkewed; - - -/***/ }), - -/***/ 38399: -/***/ ((__unused_webpack_module, exports) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.constructStack = void 0; -const constructStack = () => { - let absoluteEntries = []; - let relativeEntries = []; - const entriesNameSet = new Set(); - const sort = (entries) => entries.sort((a, b) => stepWeights[b.step] - stepWeights[a.step] || - priorityWeights[b.priority || "normal"] - priorityWeights[a.priority || "normal"]); - const removeByName = (toRemove) => { - let isRemoved = false; - const filterCb = (entry) => { - if (entry.name && entry.name === toRemove) { - isRemoved = true; - entriesNameSet.delete(toRemove); - return false; - } - return true; - }; - absoluteEntries = absoluteEntries.filter(filterCb); - relativeEntries = relativeEntries.filter(filterCb); - return isRemoved; - }; - const removeByReference = (toRemove) => { - let isRemoved = false; - const filterCb = (entry) => { - if (entry.middleware === toRemove) { - isRemoved = true; - if (entry.name) - entriesNameSet.delete(entry.name); - return false; - } - return true; - }; - absoluteEntries = absoluteEntries.filter(filterCb); - relativeEntries = relativeEntries.filter(filterCb); - return isRemoved; - }; - const cloneTo = (toStack) => { - absoluteEntries.forEach((entry) => { - toStack.add(entry.middleware, { ...entry }); - }); - relativeEntries.forEach((entry) => { - toStack.addRelativeTo(entry.middleware, { ...entry }); - }); - return toStack; - }; - const expandRelativeMiddlewareList = (from) => { - const expandedMiddlewareList = []; - from.before.forEach((entry) => { - if (entry.before.length === 0 && entry.after.length === 0) { - expandedMiddlewareList.push(entry); - } - else { - expandedMiddlewareList.push(...expandRelativeMiddlewareList(entry)); - } - }); - expandedMiddlewareList.push(from); - from.after.reverse().forEach((entry) => { - if (entry.before.length === 0 && entry.after.length === 0) { - expandedMiddlewareList.push(entry); - } - else { - expandedMiddlewareList.push(...expandRelativeMiddlewareList(entry)); - } - }); - return expandedMiddlewareList; - }; - const getMiddlewareList = () => { - const normalizedAbsoluteEntries = []; - const normalizedRelativeEntries = []; - const normalizedEntriesNameMap = {}; - absoluteEntries.forEach((entry) => { - const normalizedEntry = { - ...entry, - before: [], - after: [], - }; - if (normalizedEntry.name) - normalizedEntriesNameMap[normalizedEntry.name] = normalizedEntry; - normalizedAbsoluteEntries.push(normalizedEntry); - }); - relativeEntries.forEach((entry) => { - const normalizedEntry = { - ...entry, - before: [], - after: [], - }; - if (normalizedEntry.name) - normalizedEntriesNameMap[normalizedEntry.name] = normalizedEntry; - normalizedRelativeEntries.push(normalizedEntry); - }); - normalizedRelativeEntries.forEach((entry) => { - if (entry.toMiddleware) { - const toMiddleware = normalizedEntriesNameMap[entry.toMiddleware]; - if (toMiddleware === undefined) { - throw new Error(`${entry.toMiddleware} is not found when adding ${entry.name || "anonymous"} middleware ${entry.relation} ${entry.toMiddleware}`); - } - if (entry.relation === "after") { - toMiddleware.after.push(entry); - } - if (entry.relation === "before") { - toMiddleware.before.push(entry); - } - } - }); - const mainChain = sort(normalizedAbsoluteEntries) - .map(expandRelativeMiddlewareList) - .reduce((wholeList, expendedMiddlewareList) => { - wholeList.push(...expendedMiddlewareList); - return wholeList; - }, []); - return mainChain.map((entry) => entry.middleware); - }; - const stack = { - add: (middleware, options = {}) => { - const { name, override } = options; - const entry = { - step: "initialize", - priority: "normal", - middleware, - ...options, - }; - if (name) { - if (entriesNameSet.has(name)) { - if (!override) - throw new Error(`Duplicate middleware name '${name}'`); - const toOverrideIndex = absoluteEntries.findIndex((entry) => entry.name === name); - const toOverride = absoluteEntries[toOverrideIndex]; - if (toOverride.step !== entry.step || toOverride.priority !== entry.priority) { - throw new Error(`"${name}" middleware with ${toOverride.priority} priority in ${toOverride.step} step cannot be ` + - `overridden by same-name middleware with ${entry.priority} priority in ${entry.step} step.`); - } - absoluteEntries.splice(toOverrideIndex, 1); - } - entriesNameSet.add(name); - } - absoluteEntries.push(entry); - }, - addRelativeTo: (middleware, options) => { - const { name, override } = options; - const entry = { - middleware, - ...options, - }; - if (name) { - if (entriesNameSet.has(name)) { - if (!override) - throw new Error(`Duplicate middleware name '${name}'`); - const toOverrideIndex = relativeEntries.findIndex((entry) => entry.name === name); - const toOverride = relativeEntries[toOverrideIndex]; - if (toOverride.toMiddleware !== entry.toMiddleware || toOverride.relation !== entry.relation) { - throw new Error(`"${name}" middleware ${toOverride.relation} "${toOverride.toMiddleware}" middleware cannot be overridden ` + - `by same-name middleware ${entry.relation} "${entry.toMiddleware}" middleware.`); - } - relativeEntries.splice(toOverrideIndex, 1); - } - entriesNameSet.add(name); - } - relativeEntries.push(entry); - }, - clone: () => cloneTo(exports.constructStack()), - use: (plugin) => { - plugin.applyToStack(stack); - }, - remove: (toRemove) => { - if (typeof toRemove === "string") - return removeByName(toRemove); - else - return removeByReference(toRemove); - }, - removeByTag: (toRemove) => { - let isRemoved = false; - const filterCb = (entry) => { - const { tags, name } = entry; - if (tags && tags.includes(toRemove)) { - if (name) - entriesNameSet.delete(name); - isRemoved = true; - return false; - } - return true; - }; - absoluteEntries = absoluteEntries.filter(filterCb); - relativeEntries = relativeEntries.filter(filterCb); - return isRemoved; - }, - concat: (from) => { - const cloned = cloneTo(exports.constructStack()); - cloned.use(from); - return cloned; - }, - applyToStack: cloneTo, - resolve: (handler, context) => { - for (const middleware of getMiddlewareList().reverse()) { - handler = middleware(handler, context); - } - return handler; - }, - }; - return stack; -}; -exports.constructStack = constructStack; -const stepWeights = { - initialize: 5, - serialize: 4, - build: 3, - finalizeRequest: 2, - deserialize: 1, -}; -const priorityWeights = { - high: 3, - normal: 2, - low: 1, -}; - - -/***/ }), - -/***/ 11461: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -const tslib_1 = __nccwpck_require__(4351); -tslib_1.__exportStar(__nccwpck_require__(38399), exports); - - -/***/ }), - -/***/ 36546: -/***/ ((__unused_webpack_module, exports) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.resolveUserAgentConfig = void 0; -function resolveUserAgentConfig(input) { - return { - ...input, - customUserAgent: typeof input.customUserAgent === "string" ? [[input.customUserAgent]] : input.customUserAgent, - }; -} -exports.resolveUserAgentConfig = resolveUserAgentConfig; - - -/***/ }), - -/***/ 28025: -/***/ ((__unused_webpack_module, exports) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.UA_ESCAPE_REGEX = exports.SPACE = exports.X_AMZ_USER_AGENT = exports.USER_AGENT = void 0; -exports.USER_AGENT = "user-agent"; -exports.X_AMZ_USER_AGENT = "x-amz-user-agent"; -exports.SPACE = " "; -exports.UA_ESCAPE_REGEX = /[^\!\#\$\%\&\'\*\+\-\.\^\_\`\|\~\d\w]/g; - - -/***/ }), - -/***/ 64688: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -const tslib_1 = __nccwpck_require__(4351); -tslib_1.__exportStar(__nccwpck_require__(36546), exports); -tslib_1.__exportStar(__nccwpck_require__(76236), exports); - - -/***/ }), - -/***/ 76236: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.getUserAgentPlugin = exports.getUserAgentMiddlewareOptions = exports.userAgentMiddleware = void 0; -const protocol_http_1 = __nccwpck_require__(70223); -const constants_1 = __nccwpck_require__(28025); -const userAgentMiddleware = (options) => (next, context) => async (args) => { - var _a, _b; - const { request } = args; - if (!protocol_http_1.HttpRequest.isInstance(request)) - return next(args); - const { headers } = request; - const userAgent = ((_a = context === null || context === void 0 ? void 0 : context.userAgent) === null || _a === void 0 ? void 0 : _a.map(escapeUserAgent)) || []; - const defaultUserAgent = (await options.defaultUserAgentProvider()).map(escapeUserAgent); - const customUserAgent = ((_b = options === null || options === void 0 ? void 0 : options.customUserAgent) === null || _b === void 0 ? void 0 : _b.map(escapeUserAgent)) || []; - const sdkUserAgentValue = [...defaultUserAgent, ...userAgent, ...customUserAgent].join(constants_1.SPACE); - const normalUAValue = [ - ...defaultUserAgent.filter((section) => section.startsWith("aws-sdk-")), - ...customUserAgent, - ].join(constants_1.SPACE); - if (options.runtime !== "browser") { - if (normalUAValue) { - headers[constants_1.X_AMZ_USER_AGENT] = headers[constants_1.X_AMZ_USER_AGENT] - ? `${headers[constants_1.USER_AGENT]} ${normalUAValue}` - : normalUAValue; - } - headers[constants_1.USER_AGENT] = sdkUserAgentValue; - } - else { - headers[constants_1.X_AMZ_USER_AGENT] = sdkUserAgentValue; - } - return next({ - ...args, - request, - }); -}; -exports.userAgentMiddleware = userAgentMiddleware; -const escapeUserAgent = ([name, version]) => { - const prefixSeparatorIndex = name.indexOf("/"); - const prefix = name.substring(0, prefixSeparatorIndex); - let uaName = name.substring(prefixSeparatorIndex + 1); - if (prefix === "api") { - uaName = uaName.toLowerCase(); - } - return [prefix, uaName, version] - .filter((item) => item && item.length > 0) - .map((item) => item === null || item === void 0 ? void 0 : item.replace(constants_1.UA_ESCAPE_REGEX, "_")) - .join("/"); -}; -exports.getUserAgentMiddlewareOptions = { - name: "getUserAgentMiddleware", - step: "build", - priority: "low", - tags: ["SET_USER_AGENT", "USER_AGENT"], - override: true, -}; -const getUserAgentPlugin = (config) => ({ - applyToStack: (clientStack) => { - clientStack.add(exports.userAgentMiddleware(config), exports.getUserAgentMiddlewareOptions); - }, -}); -exports.getUserAgentPlugin = getUserAgentPlugin; - - -/***/ }), - -/***/ 52175: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.loadConfig = void 0; -const property_provider_1 = __nccwpck_require__(74462); -const fromEnv_1 = __nccwpck_require__(46161); -const fromSharedConfigFiles_1 = __nccwpck_require__(63905); -const fromStatic_1 = __nccwpck_require__(5881); -const loadConfig = ({ environmentVariableSelector, configFileSelector, default: defaultValue }, configuration = {}) => property_provider_1.memoize(property_provider_1.chain(fromEnv_1.fromEnv(environmentVariableSelector), fromSharedConfigFiles_1.fromSharedConfigFiles(configFileSelector, configuration), fromStatic_1.fromStatic(defaultValue))); -exports.loadConfig = loadConfig; - - -/***/ }), - -/***/ 46161: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.fromEnv = void 0; -const property_provider_1 = __nccwpck_require__(74462); -const fromEnv = (envVarSelector) => async () => { - try { - const config = envVarSelector(process.env); - if (config === undefined) { - throw new Error(); - } - return config; - } - catch (e) { - throw new property_provider_1.CredentialsProviderError(e.message || `Cannot load config from environment variables with getter: ${envVarSelector}`); - } -}; -exports.fromEnv = fromEnv; - - -/***/ }), - -/***/ 63905: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.fromSharedConfigFiles = exports.ENV_PROFILE = void 0; -const property_provider_1 = __nccwpck_require__(74462); -const shared_ini_file_loader_1 = __nccwpck_require__(67387); -const DEFAULT_PROFILE = "default"; -exports.ENV_PROFILE = "AWS_PROFILE"; -const fromSharedConfigFiles = (configSelector, { preferredFile = "config", ...init } = {}) => async () => { - const { loadedConfig = shared_ini_file_loader_1.loadSharedConfigFiles(init), profile = process.env[exports.ENV_PROFILE] || DEFAULT_PROFILE } = init; - const { configFile, credentialsFile } = await loadedConfig; - const profileFromCredentials = credentialsFile[profile] || {}; - const profileFromConfig = configFile[profile] || {}; - const mergedProfile = preferredFile === "config" - ? { ...profileFromCredentials, ...profileFromConfig } - : { ...profileFromConfig, ...profileFromCredentials }; - try { - const configValue = configSelector(mergedProfile); - if (configValue === undefined) { - throw new Error(); - } - return configValue; - } - catch (e) { - throw new property_provider_1.CredentialsProviderError(e.message || - `Cannot load config for profile ${profile} in SDK configuration files with getter: ${configSelector}`); - } -}; -exports.fromSharedConfigFiles = fromSharedConfigFiles; - - -/***/ }), - -/***/ 5881: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.fromStatic = void 0; -const property_provider_1 = __nccwpck_require__(74462); -const isFunction = (func) => typeof func === "function"; -const fromStatic = (defaultValue) => isFunction(defaultValue) ? async () => defaultValue() : property_provider_1.fromStatic(defaultValue); -exports.fromStatic = fromStatic; - - -/***/ }), - -/***/ 87684: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -const tslib_1 = __nccwpck_require__(4351); -tslib_1.__exportStar(__nccwpck_require__(52175), exports); - - -/***/ }), - -/***/ 33647: -/***/ ((__unused_webpack_module, exports) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.NODEJS_TIMEOUT_ERROR_CODES = void 0; -exports.NODEJS_TIMEOUT_ERROR_CODES = ["ECONNRESET", "EPIPE", "ETIMEDOUT"]; - - -/***/ }), - -/***/ 96225: -/***/ ((__unused_webpack_module, exports) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.getTransformedHeaders = void 0; -const getTransformedHeaders = (headers) => { - const transformedHeaders = {}; - for (const name of Object.keys(headers)) { - const headerValues = headers[name]; - transformedHeaders[name] = Array.isArray(headerValues) ? headerValues.join(",") : headerValues; - } - return transformedHeaders; -}; -exports.getTransformedHeaders = getTransformedHeaders; - - -/***/ }), - -/***/ 68805: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -const tslib_1 = __nccwpck_require__(4351); -tslib_1.__exportStar(__nccwpck_require__(2298), exports); -tslib_1.__exportStar(__nccwpck_require__(92533), exports); -tslib_1.__exportStar(__nccwpck_require__(72198), exports); - - -/***/ }), - -/***/ 2298: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.NodeHttpHandler = void 0; -const protocol_http_1 = __nccwpck_require__(70223); -const querystring_builder_1 = __nccwpck_require__(43402); -const http_1 = __nccwpck_require__(98605); -const https_1 = __nccwpck_require__(57211); -const constants_1 = __nccwpck_require__(33647); -const get_transformed_headers_1 = __nccwpck_require__(96225); -const set_connection_timeout_1 = __nccwpck_require__(63598); -const set_socket_timeout_1 = __nccwpck_require__(44751); -const write_request_body_1 = __nccwpck_require__(5248); -class NodeHttpHandler { - constructor({ connectionTimeout, socketTimeout, httpAgent, httpsAgent } = {}) { - this.metadata = { handlerProtocol: "http/1.1" }; - this.connectionTimeout = connectionTimeout; - this.socketTimeout = socketTimeout; - const keepAlive = true; - const maxSockets = 50; - this.httpAgent = httpAgent || new http_1.Agent({ keepAlive, maxSockets }); - this.httpsAgent = httpsAgent || new https_1.Agent({ keepAlive, maxSockets }); - } - destroy() { - this.httpAgent.destroy(); - this.httpsAgent.destroy(); - } - handle(request, { abortSignal } = {}) { - return new Promise((resolve, reject) => { - if (abortSignal === null || abortSignal === void 0 ? void 0 : abortSignal.aborted) { - const abortError = new Error("Request aborted"); - abortError.name = "AbortError"; - reject(abortError); - return; - } - const isSSL = request.protocol === "https:"; - const queryString = querystring_builder_1.buildQueryString(request.query || {}); - const nodeHttpsOptions = { - headers: request.headers, - host: request.hostname, - method: request.method, - path: queryString ? `${request.path}?${queryString}` : request.path, - port: request.port, - agent: isSSL ? this.httpsAgent : this.httpAgent, - }; - const requestFunc = isSSL ? https_1.request : http_1.request; - const req = requestFunc(nodeHttpsOptions, (res) => { - const httpResponse = new protocol_http_1.HttpResponse({ - statusCode: res.statusCode || -1, - headers: get_transformed_headers_1.getTransformedHeaders(res.headers), - body: res, - }); - resolve({ response: httpResponse }); - }); - req.on("error", (err) => { - if (constants_1.NODEJS_TIMEOUT_ERROR_CODES.includes(err.code)) { - reject(Object.assign(err, { name: "TimeoutError" })); - } - else { - reject(err); - } - }); - set_connection_timeout_1.setConnectionTimeout(req, reject, this.connectionTimeout); - set_socket_timeout_1.setSocketTimeout(req, reject, this.socketTimeout); - if (abortSignal) { - abortSignal.onabort = () => { - req.abort(); - const abortError = new Error("Request aborted"); - abortError.name = "AbortError"; - reject(abortError); - }; - } - write_request_body_1.writeRequestBody(req, request); - }); - } -} -exports.NodeHttpHandler = NodeHttpHandler; - - -/***/ }), - -/***/ 92533: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.NodeHttp2Handler = void 0; -const protocol_http_1 = __nccwpck_require__(70223); -const querystring_builder_1 = __nccwpck_require__(43402); -const http2_1 = __nccwpck_require__(97565); -const get_transformed_headers_1 = __nccwpck_require__(96225); -const write_request_body_1 = __nccwpck_require__(5248); -class NodeHttp2Handler { - constructor({ requestTimeout, sessionTimeout, disableConcurrentStreams } = {}) { - this.metadata = { handlerProtocol: "h2" }; - this.requestTimeout = requestTimeout; - this.sessionTimeout = sessionTimeout; - this.disableConcurrentStreams = disableConcurrentStreams; - this.sessionCache = new Map(); - } - destroy() { - for (const sessions of this.sessionCache.values()) { - sessions.forEach((session) => this.destroySession(session)); - } - this.sessionCache.clear(); - } - handle(request, { abortSignal } = {}) { - return new Promise((resolve, rejectOriginal) => { - let fulfilled = false; - if (abortSignal === null || abortSignal === void 0 ? void 0 : abortSignal.aborted) { - fulfilled = true; - const abortError = new Error("Request aborted"); - abortError.name = "AbortError"; - rejectOriginal(abortError); - return; - } - const { hostname, method, port, protocol, path, query } = request; - const authority = `${protocol}//${hostname}${port ? `:${port}` : ""}`; - const session = this.getSession(authority, this.disableConcurrentStreams || false); - const reject = (err) => { - if (this.disableConcurrentStreams) { - this.destroySession(session); - } - fulfilled = true; - rejectOriginal(err); - }; - const queryString = querystring_builder_1.buildQueryString(query || {}); - const req = session.request({ - ...request.headers, - [http2_1.constants.HTTP2_HEADER_PATH]: queryString ? `${path}?${queryString}` : path, - [http2_1.constants.HTTP2_HEADER_METHOD]: method, - }); - req.on("response", (headers) => { - const httpResponse = new protocol_http_1.HttpResponse({ - statusCode: headers[":status"] || -1, - headers: get_transformed_headers_1.getTransformedHeaders(headers), - body: req, - }); - fulfilled = true; - resolve({ response: httpResponse }); - if (this.disableConcurrentStreams) { - session.close(); - this.deleteSessionFromCache(authority, session); - } - }); - const requestTimeout = this.requestTimeout; - if (requestTimeout) { - req.setTimeout(requestTimeout, () => { - req.close(); - const timeoutError = new Error(`Stream timed out because of no activity for ${requestTimeout} ms`); - timeoutError.name = "TimeoutError"; - reject(timeoutError); - }); - } - if (abortSignal) { - abortSignal.onabort = () => { - req.close(); - const abortError = new Error("Request aborted"); - abortError.name = "AbortError"; - reject(abortError); - }; - } - req.on("frameError", (type, code, id) => { - reject(new Error(`Frame type id ${type} in stream id ${id} has failed with code ${code}.`)); - }); - req.on("error", reject); - req.on("aborted", () => { - reject(new Error(`HTTP/2 stream is abnormally aborted in mid-communication with result code ${req.rstCode}.`)); - }); - req.on("close", () => { - if (this.disableConcurrentStreams) { - session.destroy(); - } - if (!fulfilled) { - reject(new Error("Unexpected error: http2 request did not get a response")); - } - }); - write_request_body_1.writeRequestBody(req, request); - }); - } - getSession(authority, disableConcurrentStreams) { - const sessionCache = this.sessionCache; - const existingSessions = sessionCache.get(authority) || []; - if (existingSessions.length > 0 && !disableConcurrentStreams) - return existingSessions[0]; - const newSession = http2_1.connect(authority); - const destroySessionCb = () => { - this.destroySession(newSession); - this.deleteSessionFromCache(authority, newSession); - }; - newSession.on("goaway", destroySessionCb); - newSession.on("error", destroySessionCb); - newSession.on("frameError", destroySessionCb); - const sessionTimeout = this.sessionTimeout; - if (sessionTimeout) { - newSession.setTimeout(sessionTimeout, destroySessionCb); - } - existingSessions.push(newSession); - sessionCache.set(authority, existingSessions); - return newSession; - } - destroySession(session) { - if (!session.destroyed) { - session.destroy(); - } - } - deleteSessionFromCache(authority, session) { - const existingSessions = this.sessionCache.get(authority) || []; - if (!existingSessions.includes(session)) { - return; - } - this.sessionCache.set(authority, existingSessions.filter((s) => s !== session)); - } -} -exports.NodeHttp2Handler = NodeHttp2Handler; - - -/***/ }), - -/***/ 63598: -/***/ ((__unused_webpack_module, exports) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.setConnectionTimeout = void 0; -const setConnectionTimeout = (request, reject, timeoutInMs = 0) => { - if (!timeoutInMs) { - return; - } - request.on("socket", (socket) => { - if (socket.connecting) { - const timeoutId = setTimeout(() => { - request.destroy(); - reject(Object.assign(new Error(`Socket timed out without establishing a connection within ${timeoutInMs} ms`), { - name: "TimeoutError", - })); - }, timeoutInMs); - socket.on("connect", () => { - clearTimeout(timeoutId); - }); - } - }); -}; -exports.setConnectionTimeout = setConnectionTimeout; - - -/***/ }), - -/***/ 44751: -/***/ ((__unused_webpack_module, exports) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.setSocketTimeout = void 0; -const setSocketTimeout = (request, reject, timeoutInMs = 0) => { - request.setTimeout(timeoutInMs, () => { - request.destroy(); - reject(Object.assign(new Error(`Connection timed out after ${timeoutInMs} ms`), { name: "TimeoutError" })); - }); -}; -exports.setSocketTimeout = setSocketTimeout; - - -/***/ }), - -/***/ 84362: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.Collector = void 0; -const stream_1 = __nccwpck_require__(92413); -class Collector extends stream_1.Writable { - constructor() { - super(...arguments); - this.bufferedBytes = []; - } - _write(chunk, encoding, callback) { - this.bufferedBytes.push(chunk); - callback(); - } -} -exports.Collector = Collector; - - -/***/ }), - -/***/ 72198: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.streamCollector = void 0; -const collector_1 = __nccwpck_require__(84362); -const streamCollector = (stream) => new Promise((resolve, reject) => { - const collector = new collector_1.Collector(); - stream.pipe(collector); - stream.on("error", (err) => { - collector.end(); - reject(err); - }); - collector.on("error", reject); - collector.on("finish", function () { - const bytes = new Uint8Array(Buffer.concat(this.bufferedBytes)); - resolve(bytes); - }); -}); -exports.streamCollector = streamCollector; - - -/***/ }), - -/***/ 5248: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.writeRequestBody = void 0; -const stream_1 = __nccwpck_require__(92413); -function writeRequestBody(httpRequest, request) { - const expect = request.headers["Expect"] || request.headers["expect"]; - if (expect === "100-continue") { - httpRequest.on("continue", () => { - writeBody(httpRequest, request.body); - }); - } - else { - writeBody(httpRequest, request.body); - } -} -exports.writeRequestBody = writeRequestBody; -function writeBody(httpRequest, body) { - if (body instanceof stream_1.Readable) { - body.pipe(httpRequest); - } - else if (body) { - httpRequest.end(Buffer.from(body)); - } - else { - httpRequest.end(); - } -} - - -/***/ }), - -/***/ 81786: -/***/ ((__unused_webpack_module, exports) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.CredentialsProviderError = exports.ProviderError = void 0; -class ProviderError extends Error { - constructor(message, tryNextLink = true) { - super(message); - this.tryNextLink = tryNextLink; - } - static from(error, tryNextLink = true) { - Object.defineProperty(error, "tryNextLink", { - value: tryNextLink, - configurable: false, - enumerable: false, - writable: false, - }); - return error; - } -} -exports.ProviderError = ProviderError; -class CredentialsProviderError extends Error { - constructor(message, tryNextLink = true) { - super(message); - this.tryNextLink = tryNextLink; - this.name = "CredentialsProviderError"; - } - static from(error, tryNextLink = true) { - Object.defineProperty(error, "tryNextLink", { - value: tryNextLink, - configurable: false, - enumerable: false, - writable: false, - }); - return error; - } -} -exports.CredentialsProviderError = CredentialsProviderError; - - -/***/ }), - -/***/ 51444: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.chain = void 0; -const ProviderError_1 = __nccwpck_require__(81786); -function chain(...providers) { - return () => { - let promise = Promise.reject(new ProviderError_1.ProviderError("No providers in chain")); - for (const provider of providers) { - promise = promise.catch((err) => { - if (err === null || err === void 0 ? void 0 : err.tryNextLink) { - return provider(); - } - throw err; - }); - } - return promise; - }; -} -exports.chain = chain; - - -/***/ }), - -/***/ 10529: -/***/ ((__unused_webpack_module, exports) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.fromStatic = void 0; -const fromStatic = (staticValue) => () => Promise.resolve(staticValue); -exports.fromStatic = fromStatic; - - -/***/ }), - -/***/ 74462: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -const tslib_1 = __nccwpck_require__(4351); -tslib_1.__exportStar(__nccwpck_require__(81786), exports); -tslib_1.__exportStar(__nccwpck_require__(51444), exports); -tslib_1.__exportStar(__nccwpck_require__(10529), exports); -tslib_1.__exportStar(__nccwpck_require__(714), exports); - - -/***/ }), - -/***/ 714: -/***/ ((__unused_webpack_module, exports) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.memoize = void 0; -const memoize = (provider, isExpired, requiresRefresh) => { - let resolved; - let pending; - let hasResult; - const coalesceProvider = async () => { - if (!pending) { - pending = provider(); - } - try { - resolved = await pending; - hasResult = true; - } - finally { - pending = undefined; - } - return resolved; - }; - if (isExpired === undefined) { - return async () => { - if (!hasResult) { - resolved = await coalesceProvider(); - } - return resolved; - }; - } - let isConstant = false; - return async () => { - if (!hasResult) { - resolved = await coalesceProvider(); - } - if (isConstant) { - return resolved; - } - if (requiresRefresh && !requiresRefresh(resolved)) { - isConstant = true; - return resolved; - } - if (isExpired(resolved)) { - await coalesceProvider(); - return resolved; - } - return resolved; - }; -}; -exports.memoize = memoize; - - -/***/ }), - -/***/ 56779: -/***/ ((__unused_webpack_module, exports) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); - - -/***/ }), - -/***/ 52872: -/***/ ((__unused_webpack_module, exports) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.HttpRequest = void 0; -class HttpRequest { - constructor(options) { - this.method = options.method || "GET"; - this.hostname = options.hostname || "localhost"; - this.port = options.port; - this.query = options.query || {}; - this.headers = options.headers || {}; - this.body = options.body; - this.protocol = options.protocol - ? options.protocol.substr(-1) !== ":" - ? `${options.protocol}:` - : options.protocol - : "https:"; - this.path = options.path ? (options.path.charAt(0) !== "/" ? `/${options.path}` : options.path) : "/"; - } - static isInstance(request) { - if (!request) - return false; - const req = request; - return ("method" in req && - "protocol" in req && - "hostname" in req && - "path" in req && - typeof req["query"] === "object" && - typeof req["headers"] === "object"); - } - clone() { - const cloned = new HttpRequest({ - ...this, - headers: { ...this.headers }, - }); - if (cloned.query) - cloned.query = cloneQuery(cloned.query); - return cloned; - } -} -exports.HttpRequest = HttpRequest; -function cloneQuery(query) { - return Object.keys(query).reduce((carry, paramName) => { - const param = query[paramName]; - return { - ...carry, - [paramName]: Array.isArray(param) ? [...param] : param, - }; - }, {}); -} - - -/***/ }), - -/***/ 92348: -/***/ ((__unused_webpack_module, exports) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.HttpResponse = void 0; -class HttpResponse { - constructor(options) { - this.statusCode = options.statusCode; - this.headers = options.headers || {}; - this.body = options.body; - } - static isInstance(response) { - if (!response) - return false; - const resp = response; - return typeof resp.statusCode === "number" && typeof resp.headers === "object"; - } -} -exports.HttpResponse = HttpResponse; - - -/***/ }), - -/***/ 70223: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -const tslib_1 = __nccwpck_require__(4351); -tslib_1.__exportStar(__nccwpck_require__(56779), exports); -tslib_1.__exportStar(__nccwpck_require__(52872), exports); -tslib_1.__exportStar(__nccwpck_require__(92348), exports); -tslib_1.__exportStar(__nccwpck_require__(85694), exports); - - -/***/ }), - -/***/ 85694: -/***/ ((__unused_webpack_module, exports) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.isValidHostname = void 0; -function isValidHostname(hostname) { - const hostPattern = /^[a-z0-9][a-z0-9\.\-]*[a-z0-9]$/; - return hostPattern.test(hostname); -} -exports.isValidHostname = isValidHostname; - - -/***/ }), - -/***/ 43402: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.buildQueryString = void 0; -const util_uri_escape_1 = __nccwpck_require__(57952); -function buildQueryString(query) { - const parts = []; - for (let key of Object.keys(query).sort()) { - const value = query[key]; - key = util_uri_escape_1.escapeUri(key); - if (Array.isArray(value)) { - for (let i = 0, iLen = value.length; i < iLen; i++) { - parts.push(`${key}=${util_uri_escape_1.escapeUri(value[i])}`); - } - } - else { - let qsEntry = key; - if (value || typeof value === "string") { - qsEntry += `=${util_uri_escape_1.escapeUri(value)}`; - } - parts.push(qsEntry); - } - } - return parts.join("&"); -} -exports.buildQueryString = buildQueryString; - - -/***/ }), - -/***/ 47424: -/***/ ((__unused_webpack_module, exports) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.parseQueryString = void 0; -function parseQueryString(querystring) { - const query = {}; - querystring = querystring.replace(/^\?/, ""); - if (querystring) { - for (const pair of querystring.split("&")) { - let [key, value = null] = pair.split("="); - key = decodeURIComponent(key); - if (value) { - value = decodeURIComponent(value); - } - if (!(key in query)) { - query[key] = value; - } - else if (Array.isArray(query[key])) { - query[key].push(value); - } - else { - query[key] = [query[key], value]; - } - } - } - return query; -} -exports.parseQueryString = parseQueryString; - - -/***/ }), - -/***/ 7352: -/***/ ((__unused_webpack_module, exports) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.TRANSIENT_ERROR_STATUS_CODES = exports.TRANSIENT_ERROR_CODES = exports.THROTTLING_ERROR_CODES = exports.CLOCK_SKEW_ERROR_CODES = void 0; -exports.CLOCK_SKEW_ERROR_CODES = [ - "AuthFailure", - "InvalidSignatureException", - "RequestExpired", - "RequestInTheFuture", - "RequestTimeTooSkewed", - "SignatureDoesNotMatch", -]; -exports.THROTTLING_ERROR_CODES = [ - "BandwidthLimitExceeded", - "EC2ThrottledException", - "LimitExceededException", - "PriorRequestNotComplete", - "ProvisionedThroughputExceededException", - "RequestLimitExceeded", - "RequestThrottled", - "RequestThrottledException", - "SlowDown", - "ThrottledException", - "Throttling", - "ThrottlingException", - "TooManyRequestsException", - "TransactionInProgressException", -]; -exports.TRANSIENT_ERROR_CODES = ["AbortError", "TimeoutError", "RequestTimeout", "RequestTimeoutException"]; -exports.TRANSIENT_ERROR_STATUS_CODES = [500, 502, 503, 504]; - - -/***/ }), - -/***/ 61921: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.isTransientError = exports.isThrottlingError = exports.isClockSkewError = exports.isRetryableByTrait = void 0; -const constants_1 = __nccwpck_require__(7352); -const isRetryableByTrait = (error) => error.$retryable !== undefined; -exports.isRetryableByTrait = isRetryableByTrait; -const isClockSkewError = (error) => constants_1.CLOCK_SKEW_ERROR_CODES.includes(error.name); -exports.isClockSkewError = isClockSkewError; -const isThrottlingError = (error) => { - var _a, _b; - return ((_a = error.$metadata) === null || _a === void 0 ? void 0 : _a.httpStatusCode) === 429 || - constants_1.THROTTLING_ERROR_CODES.includes(error.name) || - ((_b = error.$retryable) === null || _b === void 0 ? void 0 : _b.throttling) == true; -}; -exports.isThrottlingError = isThrottlingError; -const isTransientError = (error) => { - var _a; - return constants_1.TRANSIENT_ERROR_CODES.includes(error.name) || - constants_1.TRANSIENT_ERROR_STATUS_CODES.includes(((_a = error.$metadata) === null || _a === void 0 ? void 0 : _a.httpStatusCode) || 0); -}; -exports.isTransientError = isTransientError; - - -/***/ }), - -/***/ 67387: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.getHomeDir = exports.loadSharedConfigFiles = exports.ENV_CONFIG_PATH = exports.ENV_CREDENTIALS_PATH = void 0; -const fs_1 = __nccwpck_require__(35747); -const os_1 = __nccwpck_require__(12087); -const path_1 = __nccwpck_require__(85622); -exports.ENV_CREDENTIALS_PATH = "AWS_SHARED_CREDENTIALS_FILE"; -exports.ENV_CONFIG_PATH = "AWS_CONFIG_FILE"; -const swallowError = () => ({}); -const loadSharedConfigFiles = (init = {}) => { - const { filepath = process.env[exports.ENV_CREDENTIALS_PATH] || path_1.join(exports.getHomeDir(), ".aws", "credentials"), configFilepath = process.env[exports.ENV_CONFIG_PATH] || path_1.join(exports.getHomeDir(), ".aws", "config"), } = init; - return Promise.all([ - slurpFile(configFilepath).then(parseIni).then(normalizeConfigFile).catch(swallowError), - slurpFile(filepath).then(parseIni).catch(swallowError), - ]).then((parsedFiles) => { - const [configFile, credentialsFile] = parsedFiles; - return { - configFile, - credentialsFile, - }; - }); -}; -exports.loadSharedConfigFiles = loadSharedConfigFiles; -const profileKeyRegex = /^profile\s(["'])?([^\1]+)\1$/; -const normalizeConfigFile = (data) => { - const map = {}; - for (const key of Object.keys(data)) { - let matches; - if (key === "default") { - map.default = data.default; - } - else if ((matches = profileKeyRegex.exec(key))) { - const [_1, _2, normalizedKey] = matches; - if (normalizedKey) { - map[normalizedKey] = data[key]; - } - } - } - return map; -}; -const profileNameBlockList = ["__proto__", "profile __proto__"]; -const parseIni = (iniData) => { - const map = {}; - let currentSection; - for (let line of iniData.split(/\r?\n/)) { - line = line.split(/(^|\s)[;#]/)[0]; - const section = line.match(/^\s*\[([^\[\]]+)]\s*$/); - if (section) { - currentSection = section[1]; - if (profileNameBlockList.includes(currentSection)) { - throw new Error(`Found invalid profile name "${currentSection}"`); - } - } - else if (currentSection) { - const item = line.match(/^\s*(.+?)\s*=\s*(.+?)\s*$/); - if (item) { - map[currentSection] = map[currentSection] || {}; - map[currentSection][item[1]] = item[2]; - } - } - } - return map; -}; -const slurpFile = (path) => new Promise((resolve, reject) => { - fs_1.readFile(path, "utf8", (err, data) => { - if (err) { - reject(err); - } - else { - resolve(data); - } - }); -}); -const getHomeDir = () => { - const { HOME, USERPROFILE, HOMEPATH, HOMEDRIVE = `C:${path_1.sep}` } = process.env; - if (HOME) - return HOME; - if (USERPROFILE) - return USERPROFILE; - if (HOMEPATH) - return `${HOMEDRIVE}${HOMEPATH}`; - return os_1.homedir(); -}; -exports.getHomeDir = getHomeDir; - - -/***/ }), - -/***/ 75086: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.SignatureV4 = void 0; -const util_hex_encoding_1 = __nccwpck_require__(1968); -const constants_1 = __nccwpck_require__(30342); -const credentialDerivation_1 = __nccwpck_require__(11424); -const getCanonicalHeaders_1 = __nccwpck_require__(93590); -const getCanonicalQuery_1 = __nccwpck_require__(92019); -const getPayloadHash_1 = __nccwpck_require__(47080); -const headerUtil_1 = __nccwpck_require__(34120); -const moveHeadersToQuery_1 = __nccwpck_require__(98201); -const normalizeProvider_1 = __nccwpck_require__(57027); -const prepareRequest_1 = __nccwpck_require__(75772); -const utilDate_1 = __nccwpck_require__(94799); -class SignatureV4 { - constructor({ applyChecksum, credentials, region, service, sha256, uriEscapePath = true, }) { - this.service = service; - this.sha256 = sha256; - this.uriEscapePath = uriEscapePath; - this.applyChecksum = typeof applyChecksum === "boolean" ? applyChecksum : true; - this.regionProvider = normalizeProvider_1.normalizeRegionProvider(region); - this.credentialProvider = normalizeProvider_1.normalizeCredentialsProvider(credentials); - } - async presign(originalRequest, options = {}) { - const { signingDate = new Date(), expiresIn = 3600, unsignableHeaders, unhoistableHeaders, signableHeaders, signingRegion, signingService, } = options; - const credentials = await this.credentialProvider(); - const region = signingRegion !== null && signingRegion !== void 0 ? signingRegion : (await this.regionProvider()); - const { longDate, shortDate } = formatDate(signingDate); - if (expiresIn > constants_1.MAX_PRESIGNED_TTL) { - return Promise.reject("Signature version 4 presigned URLs" + " must have an expiration date less than one week in" + " the future"); - } - const scope = credentialDerivation_1.createScope(shortDate, region, signingService !== null && signingService !== void 0 ? signingService : this.service); - const request = moveHeadersToQuery_1.moveHeadersToQuery(prepareRequest_1.prepareRequest(originalRequest), { unhoistableHeaders }); - if (credentials.sessionToken) { - request.query[constants_1.TOKEN_QUERY_PARAM] = credentials.sessionToken; - } - request.query[constants_1.ALGORITHM_QUERY_PARAM] = constants_1.ALGORITHM_IDENTIFIER; - request.query[constants_1.CREDENTIAL_QUERY_PARAM] = `${credentials.accessKeyId}/${scope}`; - request.query[constants_1.AMZ_DATE_QUERY_PARAM] = longDate; - request.query[constants_1.EXPIRES_QUERY_PARAM] = expiresIn.toString(10); - const canonicalHeaders = getCanonicalHeaders_1.getCanonicalHeaders(request, unsignableHeaders, signableHeaders); - request.query[constants_1.SIGNED_HEADERS_QUERY_PARAM] = getCanonicalHeaderList(canonicalHeaders); - request.query[constants_1.SIGNATURE_QUERY_PARAM] = await this.getSignature(longDate, scope, this.getSigningKey(credentials, region, shortDate, signingService), this.createCanonicalRequest(request, canonicalHeaders, await getPayloadHash_1.getPayloadHash(originalRequest, this.sha256))); - return request; - } - async sign(toSign, options) { - if (typeof toSign === "string") { - return this.signString(toSign, options); - } - else if (toSign.headers && toSign.payload) { - return this.signEvent(toSign, options); - } - else { - return this.signRequest(toSign, options); - } - } - async signEvent({ headers, payload }, { signingDate = new Date(), priorSignature, signingRegion, signingService }) { - const region = signingRegion !== null && signingRegion !== void 0 ? signingRegion : (await this.regionProvider()); - const { shortDate, longDate } = formatDate(signingDate); - const scope = credentialDerivation_1.createScope(shortDate, region, signingService !== null && signingService !== void 0 ? signingService : this.service); - const hashedPayload = await getPayloadHash_1.getPayloadHash({ headers: {}, body: payload }, this.sha256); - const hash = new this.sha256(); - hash.update(headers); - const hashedHeaders = util_hex_encoding_1.toHex(await hash.digest()); - const stringToSign = [ - constants_1.EVENT_ALGORITHM_IDENTIFIER, - longDate, - scope, - priorSignature, - hashedHeaders, - hashedPayload, - ].join("\n"); - return this.signString(stringToSign, { signingDate, signingRegion: region, signingService }); - } - async signString(stringToSign, { signingDate = new Date(), signingRegion, signingService } = {}) { - const credentials = await this.credentialProvider(); - const region = signingRegion !== null && signingRegion !== void 0 ? signingRegion : (await this.regionProvider()); - const { shortDate } = formatDate(signingDate); - const hash = new this.sha256(await this.getSigningKey(credentials, region, shortDate, signingService)); - hash.update(stringToSign); - return util_hex_encoding_1.toHex(await hash.digest()); - } - async signRequest(requestToSign, { signingDate = new Date(), signableHeaders, unsignableHeaders, signingRegion, signingService, } = {}) { - const credentials = await this.credentialProvider(); - const region = signingRegion !== null && signingRegion !== void 0 ? signingRegion : (await this.regionProvider()); - const request = prepareRequest_1.prepareRequest(requestToSign); - const { longDate, shortDate } = formatDate(signingDate); - const scope = credentialDerivation_1.createScope(shortDate, region, signingService !== null && signingService !== void 0 ? signingService : this.service); - request.headers[constants_1.AMZ_DATE_HEADER] = longDate; - if (credentials.sessionToken) { - request.headers[constants_1.TOKEN_HEADER] = credentials.sessionToken; - } - const payloadHash = await getPayloadHash_1.getPayloadHash(request, this.sha256); - if (!headerUtil_1.hasHeader(constants_1.SHA256_HEADER, request.headers) && this.applyChecksum) { - request.headers[constants_1.SHA256_HEADER] = payloadHash; - } - const canonicalHeaders = getCanonicalHeaders_1.getCanonicalHeaders(request, unsignableHeaders, signableHeaders); - const signature = await this.getSignature(longDate, scope, this.getSigningKey(credentials, region, shortDate, signingService), this.createCanonicalRequest(request, canonicalHeaders, payloadHash)); - request.headers[constants_1.AUTH_HEADER] = - `${constants_1.ALGORITHM_IDENTIFIER} ` + - `Credential=${credentials.accessKeyId}/${scope}, ` + - `SignedHeaders=${getCanonicalHeaderList(canonicalHeaders)}, ` + - `Signature=${signature}`; - return request; - } - createCanonicalRequest(request, canonicalHeaders, payloadHash) { - const sortedHeaders = Object.keys(canonicalHeaders).sort(); - return `${request.method} -${this.getCanonicalPath(request)} -${getCanonicalQuery_1.getCanonicalQuery(request)} -${sortedHeaders.map((name) => `${name}:${canonicalHeaders[name]}`).join("\n")} - -${sortedHeaders.join(";")} -${payloadHash}`; - } - async createStringToSign(longDate, credentialScope, canonicalRequest) { - const hash = new this.sha256(); - hash.update(canonicalRequest); - const hashedRequest = await hash.digest(); - return `${constants_1.ALGORITHM_IDENTIFIER} -${longDate} -${credentialScope} -${util_hex_encoding_1.toHex(hashedRequest)}`; - } - getCanonicalPath({ path }) { - if (this.uriEscapePath) { - const doubleEncoded = encodeURIComponent(path.replace(/^\//, "")); - return `/${doubleEncoded.replace(/%2F/g, "/")}`; - } - return path; - } - async getSignature(longDate, credentialScope, keyPromise, canonicalRequest) { - const stringToSign = await this.createStringToSign(longDate, credentialScope, canonicalRequest); - const hash = new this.sha256(await keyPromise); - hash.update(stringToSign); - return util_hex_encoding_1.toHex(await hash.digest()); - } - getSigningKey(credentials, region, shortDate, service) { - return credentialDerivation_1.getSigningKey(this.sha256, credentials, shortDate, region, service || this.service); - } -} -exports.SignatureV4 = SignatureV4; -const formatDate = (now) => { - const longDate = utilDate_1.iso8601(now).replace(/[\-:]/g, ""); - return { - longDate, - shortDate: longDate.substr(0, 8), - }; -}; -const getCanonicalHeaderList = (headers) => Object.keys(headers).sort().join(";"); - - -/***/ }), - -/***/ 53141: -/***/ ((__unused_webpack_module, exports) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.cloneQuery = exports.cloneRequest = void 0; -const cloneRequest = ({ headers, query, ...rest }) => ({ - ...rest, - headers: { ...headers }, - query: query ? exports.cloneQuery(query) : undefined, -}); -exports.cloneRequest = cloneRequest; -const cloneQuery = (query) => Object.keys(query).reduce((carry, paramName) => { - const param = query[paramName]; - return { - ...carry, - [paramName]: Array.isArray(param) ? [...param] : param, - }; -}, {}); -exports.cloneQuery = cloneQuery; - - -/***/ }), - -/***/ 30342: -/***/ ((__unused_webpack_module, exports) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.MAX_PRESIGNED_TTL = exports.KEY_TYPE_IDENTIFIER = exports.MAX_CACHE_SIZE = exports.UNSIGNED_PAYLOAD = exports.EVENT_ALGORITHM_IDENTIFIER = exports.ALGORITHM_IDENTIFIER_V4A = exports.ALGORITHM_IDENTIFIER = exports.UNSIGNABLE_PATTERNS = exports.SEC_HEADER_PATTERN = exports.PROXY_HEADER_PATTERN = exports.ALWAYS_UNSIGNABLE_HEADERS = exports.HOST_HEADER = exports.TOKEN_HEADER = exports.SHA256_HEADER = exports.SIGNATURE_HEADER = exports.GENERATED_HEADERS = exports.DATE_HEADER = exports.AMZ_DATE_HEADER = exports.AUTH_HEADER = exports.REGION_SET_PARAM = exports.TOKEN_QUERY_PARAM = exports.SIGNATURE_QUERY_PARAM = exports.EXPIRES_QUERY_PARAM = exports.SIGNED_HEADERS_QUERY_PARAM = exports.AMZ_DATE_QUERY_PARAM = exports.CREDENTIAL_QUERY_PARAM = exports.ALGORITHM_QUERY_PARAM = void 0; -exports.ALGORITHM_QUERY_PARAM = "X-Amz-Algorithm"; -exports.CREDENTIAL_QUERY_PARAM = "X-Amz-Credential"; -exports.AMZ_DATE_QUERY_PARAM = "X-Amz-Date"; -exports.SIGNED_HEADERS_QUERY_PARAM = "X-Amz-SignedHeaders"; -exports.EXPIRES_QUERY_PARAM = "X-Amz-Expires"; -exports.SIGNATURE_QUERY_PARAM = "X-Amz-Signature"; -exports.TOKEN_QUERY_PARAM = "X-Amz-Security-Token"; -exports.REGION_SET_PARAM = "X-Amz-Region-Set"; -exports.AUTH_HEADER = "authorization"; -exports.AMZ_DATE_HEADER = exports.AMZ_DATE_QUERY_PARAM.toLowerCase(); -exports.DATE_HEADER = "date"; -exports.GENERATED_HEADERS = [exports.AUTH_HEADER, exports.AMZ_DATE_HEADER, exports.DATE_HEADER]; -exports.SIGNATURE_HEADER = exports.SIGNATURE_QUERY_PARAM.toLowerCase(); -exports.SHA256_HEADER = "x-amz-content-sha256"; -exports.TOKEN_HEADER = exports.TOKEN_QUERY_PARAM.toLowerCase(); -exports.HOST_HEADER = "host"; -exports.ALWAYS_UNSIGNABLE_HEADERS = { - 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, -}; -exports.PROXY_HEADER_PATTERN = /^proxy-/; -exports.SEC_HEADER_PATTERN = /^sec-/; -exports.UNSIGNABLE_PATTERNS = [/^proxy-/i, /^sec-/i]; -exports.ALGORITHM_IDENTIFIER = "AWS4-HMAC-SHA256"; -exports.ALGORITHM_IDENTIFIER_V4A = "AWS4-ECDSA-P256-SHA256"; -exports.EVENT_ALGORITHM_IDENTIFIER = "AWS4-HMAC-SHA256-PAYLOAD"; -exports.UNSIGNED_PAYLOAD = "UNSIGNED-PAYLOAD"; -exports.MAX_CACHE_SIZE = 50; -exports.KEY_TYPE_IDENTIFIER = "aws4_request"; -exports.MAX_PRESIGNED_TTL = 60 * 60 * 24 * 7; - - -/***/ }), - -/***/ 11424: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.clearCredentialCache = exports.getSigningKey = exports.createScope = void 0; -const util_hex_encoding_1 = __nccwpck_require__(1968); -const constants_1 = __nccwpck_require__(30342); -const signingKeyCache = {}; -const cacheQueue = []; -const createScope = (shortDate, region, service) => `${shortDate}/${region}/${service}/${constants_1.KEY_TYPE_IDENTIFIER}`; -exports.createScope = createScope; -const getSigningKey = async (sha256Constructor, credentials, shortDate, region, service) => { - const credsHash = await hmac(sha256Constructor, credentials.secretAccessKey, credentials.accessKeyId); - const cacheKey = `${shortDate}:${region}:${service}:${util_hex_encoding_1.toHex(credsHash)}:${credentials.sessionToken}`; - if (cacheKey in signingKeyCache) { - return signingKeyCache[cacheKey]; - } - cacheQueue.push(cacheKey); - while (cacheQueue.length > constants_1.MAX_CACHE_SIZE) { - delete signingKeyCache[cacheQueue.shift()]; - } - let key = `AWS4${credentials.secretAccessKey}`; - for (const signable of [shortDate, region, service, constants_1.KEY_TYPE_IDENTIFIER]) { - key = await hmac(sha256Constructor, key, signable); - } - return (signingKeyCache[cacheKey] = key); -}; -exports.getSigningKey = getSigningKey; -const clearCredentialCache = () => { - cacheQueue.length = 0; - Object.keys(signingKeyCache).forEach((cacheKey) => { - delete signingKeyCache[cacheKey]; - }); -}; -exports.clearCredentialCache = clearCredentialCache; -const hmac = (ctor, secret, data) => { - const hash = new ctor(secret); - hash.update(data); - return hash.digest(); -}; - - -/***/ }), - -/***/ 93590: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.getCanonicalHeaders = void 0; -const constants_1 = __nccwpck_require__(30342); -const getCanonicalHeaders = ({ headers }, unsignableHeaders, signableHeaders) => { - const canonical = {}; - for (const headerName of Object.keys(headers).sort()) { - const canonicalHeaderName = headerName.toLowerCase(); - if (canonicalHeaderName in constants_1.ALWAYS_UNSIGNABLE_HEADERS || - (unsignableHeaders === null || unsignableHeaders === void 0 ? void 0 : unsignableHeaders.has(canonicalHeaderName)) || - constants_1.PROXY_HEADER_PATTERN.test(canonicalHeaderName) || - constants_1.SEC_HEADER_PATTERN.test(canonicalHeaderName)) { - if (!signableHeaders || (signableHeaders && !signableHeaders.has(canonicalHeaderName))) { - continue; - } - } - canonical[canonicalHeaderName] = headers[headerName].trim().replace(/\s+/g, " "); - } - return canonical; -}; -exports.getCanonicalHeaders = getCanonicalHeaders; - - -/***/ }), - -/***/ 92019: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.getCanonicalQuery = void 0; -const util_uri_escape_1 = __nccwpck_require__(57952); -const constants_1 = __nccwpck_require__(30342); -const getCanonicalQuery = ({ query = {} }) => { - const keys = []; - const serialized = {}; - for (const key of Object.keys(query).sort()) { - if (key.toLowerCase() === constants_1.SIGNATURE_HEADER) { - continue; - } - keys.push(key); - const value = query[key]; - if (typeof value === "string") { - serialized[key] = `${util_uri_escape_1.escapeUri(key)}=${util_uri_escape_1.escapeUri(value)}`; - } - else if (Array.isArray(value)) { - serialized[key] = value - .slice(0) - .sort() - .reduce((encoded, value) => encoded.concat([`${util_uri_escape_1.escapeUri(key)}=${util_uri_escape_1.escapeUri(value)}`]), []) - .join("&"); - } - } - return keys - .map((key) => serialized[key]) - .filter((serialized) => serialized) - .join("&"); -}; -exports.getCanonicalQuery = getCanonicalQuery; - - -/***/ }), - -/***/ 47080: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.getPayloadHash = void 0; -const is_array_buffer_1 = __nccwpck_require__(69126); -const util_hex_encoding_1 = __nccwpck_require__(1968); -const constants_1 = __nccwpck_require__(30342); -const getPayloadHash = async ({ headers, body }, hashConstructor) => { - for (const headerName of Object.keys(headers)) { - if (headerName.toLowerCase() === constants_1.SHA256_HEADER) { - return headers[headerName]; - } - } - if (body == undefined) { - return "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"; - } - else if (typeof body === "string" || ArrayBuffer.isView(body) || is_array_buffer_1.isArrayBuffer(body)) { - const hashCtor = new hashConstructor(); - hashCtor.update(body); - return util_hex_encoding_1.toHex(await hashCtor.digest()); - } - return constants_1.UNSIGNED_PAYLOAD; -}; -exports.getPayloadHash = getPayloadHash; - - -/***/ }), - -/***/ 34120: -/***/ ((__unused_webpack_module, exports) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.deleteHeader = exports.getHeaderValue = exports.hasHeader = void 0; -const hasHeader = (soughtHeader, headers) => { - soughtHeader = soughtHeader.toLowerCase(); - for (const headerName of Object.keys(headers)) { - if (soughtHeader === headerName.toLowerCase()) { - return true; - } - } - return false; -}; -exports.hasHeader = hasHeader; -const getHeaderValue = (soughtHeader, headers) => { - soughtHeader = soughtHeader.toLowerCase(); - for (const headerName of Object.keys(headers)) { - if (soughtHeader === headerName.toLowerCase()) { - return headers[headerName]; - } - } - return undefined; -}; -exports.getHeaderValue = getHeaderValue; -const deleteHeader = (soughtHeader, headers) => { - soughtHeader = soughtHeader.toLowerCase(); - for (const headerName of Object.keys(headers)) { - if (soughtHeader === headerName.toLowerCase()) { - delete headers[headerName]; - } - } -}; -exports.deleteHeader = deleteHeader; - - -/***/ }), - -/***/ 37776: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.normalizeRegionProvider = exports.normalizeCredentialsProvider = exports.prepareRequest = exports.moveHeadersToQuery = exports.getPayloadHash = exports.getCanonicalQuery = exports.getCanonicalHeaders = void 0; -const tslib_1 = __nccwpck_require__(4351); -tslib_1.__exportStar(__nccwpck_require__(75086), exports); -var getCanonicalHeaders_1 = __nccwpck_require__(93590); -Object.defineProperty(exports, "getCanonicalHeaders", ({ enumerable: true, get: function () { return getCanonicalHeaders_1.getCanonicalHeaders; } })); -var getCanonicalQuery_1 = __nccwpck_require__(92019); -Object.defineProperty(exports, "getCanonicalQuery", ({ enumerable: true, get: function () { return getCanonicalQuery_1.getCanonicalQuery; } })); -var getPayloadHash_1 = __nccwpck_require__(47080); -Object.defineProperty(exports, "getPayloadHash", ({ enumerable: true, get: function () { return getPayloadHash_1.getPayloadHash; } })); -var moveHeadersToQuery_1 = __nccwpck_require__(98201); -Object.defineProperty(exports, "moveHeadersToQuery", ({ enumerable: true, get: function () { return moveHeadersToQuery_1.moveHeadersToQuery; } })); -var prepareRequest_1 = __nccwpck_require__(75772); -Object.defineProperty(exports, "prepareRequest", ({ enumerable: true, get: function () { return prepareRequest_1.prepareRequest; } })); -var normalizeProvider_1 = __nccwpck_require__(57027); -Object.defineProperty(exports, "normalizeCredentialsProvider", ({ enumerable: true, get: function () { return normalizeProvider_1.normalizeCredentialsProvider; } })); -Object.defineProperty(exports, "normalizeRegionProvider", ({ enumerable: true, get: function () { return normalizeProvider_1.normalizeRegionProvider; } })); -tslib_1.__exportStar(__nccwpck_require__(11424), exports); - - -/***/ }), - -/***/ 98201: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.moveHeadersToQuery = void 0; -const cloneRequest_1 = __nccwpck_require__(53141); -const moveHeadersToQuery = (request, options = {}) => { - var _a; - const { headers, query = {} } = typeof request.clone === "function" ? request.clone() : cloneRequest_1.cloneRequest(request); - for (const name of Object.keys(headers)) { - const lname = name.toLowerCase(); - if (lname.substr(0, 6) === "x-amz-" && !((_a = options.unhoistableHeaders) === null || _a === void 0 ? void 0 : _a.has(lname))) { - query[name] = headers[name]; - delete headers[name]; - } - } - return { - ...request, - headers, - query, - }; -}; -exports.moveHeadersToQuery = moveHeadersToQuery; - - -/***/ }), - -/***/ 57027: -/***/ ((__unused_webpack_module, exports) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.normalizeCredentialsProvider = exports.normalizeRegionProvider = void 0; -const normalizeRegionProvider = (region) => { - if (typeof region === "string") { - const promisified = Promise.resolve(region); - return () => promisified; - } - else { - return region; - } -}; -exports.normalizeRegionProvider = normalizeRegionProvider; -const normalizeCredentialsProvider = (credentials) => { - if (typeof credentials === "object") { - const promisified = Promise.resolve(credentials); - return () => promisified; - } - else { - return credentials; - } -}; -exports.normalizeCredentialsProvider = normalizeCredentialsProvider; - - -/***/ }), - -/***/ 75772: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.prepareRequest = void 0; -const cloneRequest_1 = __nccwpck_require__(53141); -const constants_1 = __nccwpck_require__(30342); -const prepareRequest = (request) => { - request = typeof request.clone === "function" ? request.clone() : cloneRequest_1.cloneRequest(request); - for (const headerName of Object.keys(request.headers)) { - if (constants_1.GENERATED_HEADERS.indexOf(headerName.toLowerCase()) > -1) { - delete request.headers[headerName]; - } - } - return request; -}; -exports.prepareRequest = prepareRequest; - - -/***/ }), - -/***/ 94799: -/***/ ((__unused_webpack_module, exports) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.toDate = exports.iso8601 = void 0; -const iso8601 = (time) => exports.toDate(time) - .toISOString() - .replace(/\.\d{3}Z$/, "Z"); -exports.iso8601 = iso8601; -const toDate = (time) => { - if (typeof time === "number") { - return new Date(time * 1000); - } - if (typeof time === "string") { - if (Number(time)) { - return new Date(Number(time) * 1000); - } - return new Date(time); - } - return time; -}; -exports.toDate = toDate; - - -/***/ }), - -/***/ 36034: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.Client = void 0; -const middleware_stack_1 = __nccwpck_require__(11461); -class Client { - constructor(config) { - this.middlewareStack = middleware_stack_1.constructStack(); - this.config = config; - } - send(command, optionsOrCb, cb) { - const options = typeof optionsOrCb !== "function" ? optionsOrCb : undefined; - const callback = typeof optionsOrCb === "function" ? optionsOrCb : cb; - const handler = command.resolveMiddleware(this.middlewareStack, this.config, options); - if (callback) { - handler(command) - .then((result) => callback(null, result.output), (err) => callback(err)) - .catch(() => { }); - } - else { - return handler(command).then((result) => result.output); - } - } - destroy() { - if (this.config.requestHandler.destroy) - this.config.requestHandler.destroy(); - } -} -exports.Client = Client; - - -/***/ }), - -/***/ 4014: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.Command = void 0; -const middleware_stack_1 = __nccwpck_require__(11461); -class Command { - constructor() { - this.middlewareStack = middleware_stack_1.constructStack(); - } -} -exports.Command = Command; - - -/***/ }), - -/***/ 78392: -/***/ ((__unused_webpack_module, exports) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.SENSITIVE_STRING = void 0; -exports.SENSITIVE_STRING = "***SensitiveInformation***"; - - -/***/ }), - -/***/ 24695: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.parseEpochTimestamp = exports.parseRfc7231DateTime = exports.parseRfc3339DateTime = exports.dateToUtcString = void 0; -const parse_utils_1 = __nccwpck_require__(34014); -const DAYS = ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"]; -const MONTHS = ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"]; -function dateToUtcString(date) { - const year = date.getUTCFullYear(); - const month = date.getUTCMonth(); - const dayOfWeek = date.getUTCDay(); - const dayOfMonthInt = date.getUTCDate(); - const hoursInt = date.getUTCHours(); - const minutesInt = date.getUTCMinutes(); - const secondsInt = date.getUTCSeconds(); - const dayOfMonthString = dayOfMonthInt < 10 ? `0${dayOfMonthInt}` : `${dayOfMonthInt}`; - const hoursString = hoursInt < 10 ? `0${hoursInt}` : `${hoursInt}`; - const minutesString = minutesInt < 10 ? `0${minutesInt}` : `${minutesInt}`; - const secondsString = secondsInt < 10 ? `0${secondsInt}` : `${secondsInt}`; - return `${DAYS[dayOfWeek]}, ${dayOfMonthString} ${MONTHS[month]} ${year} ${hoursString}:${minutesString}:${secondsString} GMT`; -} -exports.dateToUtcString = dateToUtcString; -const RFC3339 = new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?[zZ]$/); -const parseRfc3339DateTime = (value) => { - if (value === null || value === undefined) { - return undefined; - } - if (typeof value !== "string") { - throw new TypeError("RFC-3339 date-times must be expressed as strings"); - } - const match = RFC3339.exec(value); - if (!match) { - throw new TypeError("Invalid RFC-3339 date-time value"); - } - const [_, yearStr, monthStr, dayStr, hours, minutes, seconds, fractionalMilliseconds] = match; - const year = parse_utils_1.strictParseShort(stripLeadingZeroes(yearStr)); - const month = parseDateValue(monthStr, "month", 1, 12); - const day = parseDateValue(dayStr, "day", 1, 31); - return buildDate(year, month, day, { hours, minutes, seconds, fractionalMilliseconds }); -}; -exports.parseRfc3339DateTime = parseRfc3339DateTime; -const IMF_FIXDATE = 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{2}):(\d{2}):(\d{2})(?:\.(\d+))? GMT$/); -const RFC_850_DATE = 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{2}):(\d{2}):(\d{2})(?:\.(\d+))? GMT$/); -const ASC_TIME = 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{2}):(\d{2}):(\d{2})(?:\.(\d+))? (\d{4})$/); -const parseRfc7231DateTime = (value) => { - if (value === null || value === undefined) { - return undefined; - } - if (typeof value !== "string") { - throw new TypeError("RFC-7231 date-times must be expressed as strings"); - } - let match = IMF_FIXDATE.exec(value); - if (match) { - const [_, dayStr, monthStr, yearStr, hours, minutes, seconds, fractionalMilliseconds] = match; - return buildDate(parse_utils_1.strictParseShort(stripLeadingZeroes(yearStr)), parseMonthByShortName(monthStr), parseDateValue(dayStr, "day", 1, 31), { hours, minutes, seconds, fractionalMilliseconds }); - } - match = RFC_850_DATE.exec(value); - if (match) { - const [_, dayStr, monthStr, yearStr, hours, minutes, seconds, fractionalMilliseconds] = match; - return adjustRfc850Year(buildDate(parseTwoDigitYear(yearStr), parseMonthByShortName(monthStr), parseDateValue(dayStr, "day", 1, 31), { - hours, - minutes, - seconds, - fractionalMilliseconds, - })); - } - match = ASC_TIME.exec(value); - if (match) { - const [_, monthStr, dayStr, hours, minutes, seconds, fractionalMilliseconds, yearStr] = match; - return buildDate(parse_utils_1.strictParseShort(stripLeadingZeroes(yearStr)), parseMonthByShortName(monthStr), parseDateValue(dayStr.trimLeft(), "day", 1, 31), { hours, minutes, seconds, fractionalMilliseconds }); - } - throw new TypeError("Invalid RFC-7231 date-time value"); -}; -exports.parseRfc7231DateTime = parseRfc7231DateTime; -const parseEpochTimestamp = (value) => { - if (value === null || value === undefined) { - return undefined; - } - let valueAsDouble; - if (typeof value === "number") { - valueAsDouble = value; - } - else if (typeof value === "string") { - valueAsDouble = parse_utils_1.strictParseDouble(value); - } - else { - throw new TypeError("Epoch timestamps must be expressed as floating point numbers or their string representation"); - } - if (Number.isNaN(valueAsDouble) || valueAsDouble === Infinity || valueAsDouble === -Infinity) { - throw new TypeError("Epoch timestamps must be valid, non-Infinite, non-NaN numerics"); - } - return new Date(Math.round(valueAsDouble * 1000)); -}; -exports.parseEpochTimestamp = parseEpochTimestamp; -const buildDate = (year, month, day, time) => { - const adjustedMonth = month - 1; - validateDayOfMonth(year, adjustedMonth, day); - return new Date(Date.UTC(year, adjustedMonth, day, parseDateValue(time.hours, "hour", 0, 23), parseDateValue(time.minutes, "minute", 0, 59), parseDateValue(time.seconds, "seconds", 0, 60), parseMilliseconds(time.fractionalMilliseconds))); -}; -const parseTwoDigitYear = (value) => { - const thisYear = new Date().getUTCFullYear(); - const valueInThisCentury = Math.floor(thisYear / 100) * 100 + parse_utils_1.strictParseShort(stripLeadingZeroes(value)); - if (valueInThisCentury < thisYear) { - return valueInThisCentury + 100; - } - return valueInThisCentury; -}; -const FIFTY_YEARS_IN_MILLIS = 50 * 365 * 24 * 60 * 60 * 1000; -const adjustRfc850Year = (input) => { - if (input.getTime() - new Date().getTime() > FIFTY_YEARS_IN_MILLIS) { - return new Date(Date.UTC(input.getUTCFullYear() - 100, input.getUTCMonth(), input.getUTCDate(), input.getUTCHours(), input.getUTCMinutes(), input.getUTCSeconds(), input.getUTCMilliseconds())); - } - return input; -}; -const parseMonthByShortName = (value) => { - const monthIdx = MONTHS.indexOf(value); - if (monthIdx < 0) { - throw new TypeError(`Invalid month: ${value}`); - } - return monthIdx + 1; -}; -const DAYS_IN_MONTH = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31]; -const validateDayOfMonth = (year, month, day) => { - let maxDays = DAYS_IN_MONTH[month]; - if (month === 1 && isLeapYear(year)) { - maxDays = 29; - } - if (day > maxDays) { - throw new TypeError(`Invalid day for ${MONTHS[month]} in ${year}: ${day}`); - } -}; -const isLeapYear = (year) => { - return year % 4 === 0 && (year % 100 !== 0 || year % 400 === 0); -}; -const parseDateValue = (value, type, lower, upper) => { - const dateVal = parse_utils_1.strictParseByte(stripLeadingZeroes(value)); - if (dateVal < lower || dateVal > upper) { - throw new TypeError(`${type} must be between ${lower} and ${upper}, inclusive`); - } - return dateVal; -}; -const parseMilliseconds = (value) => { - if (value === null || value === undefined) { - return 0; - } - return parse_utils_1.strictParseFloat32("0." + value) * 1000; -}; -const stripLeadingZeroes = (value) => { - let idx = 0; - while (idx < value.length - 1 && value.charAt(idx) === "0") { - idx++; - } - if (idx === 0) { - return value; - } - return value.slice(idx); -}; - - -/***/ }), - -/***/ 12363: -/***/ ((__unused_webpack_module, exports) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.emitWarningIfUnsupportedVersion = void 0; -let warningEmitted = false; -const emitWarningIfUnsupportedVersion = (version) => { - if (version && !warningEmitted && parseInt(version.substring(1, version.indexOf("."))) < 12) { - warningEmitted = true; - process.emitWarning(`The AWS SDK for JavaScript (v3) will\n` + - `no longer support Node.js ${version} as of January 1, 2022.\n` + - `To continue receiving updates to AWS services, bug fixes, and security\n` + - `updates please upgrade to Node.js 12.x or later.\n\n` + - `More information can be found at: https://a.co/1l6FLnu`, `NodeDeprecationWarning`); - } -}; -exports.emitWarningIfUnsupportedVersion = emitWarningIfUnsupportedVersion; - - -/***/ }), - -/***/ 91927: -/***/ ((__unused_webpack_module, exports) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.extendedEncodeURIComponent = void 0; -function extendedEncodeURIComponent(str) { - return encodeURIComponent(str).replace(/[!'()*]/g, function (c) { - return "%" + c.charCodeAt(0).toString(16).toUpperCase(); - }); -} -exports.extendedEncodeURIComponent = extendedEncodeURIComponent; - - -/***/ }), - -/***/ 86457: -/***/ ((__unused_webpack_module, exports) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.getArrayIfSingleItem = void 0; -const getArrayIfSingleItem = (mayBeArray) => Array.isArray(mayBeArray) ? mayBeArray : [mayBeArray]; -exports.getArrayIfSingleItem = getArrayIfSingleItem; - - -/***/ }), - -/***/ 95830: -/***/ ((__unused_webpack_module, exports) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.getValueFromTextNode = void 0; -const getValueFromTextNode = (obj) => { - const textNodeName = "#text"; - for (const key in obj) { - if (obj.hasOwnProperty(key) && obj[key][textNodeName] !== undefined) { - obj[key] = obj[key][textNodeName]; - } - else if (typeof obj[key] === "object" && obj[key] !== null) { - obj[key] = exports.getValueFromTextNode(obj[key]); - } - } - return obj; -}; -exports.getValueFromTextNode = getValueFromTextNode; - - -/***/ }), - -/***/ 4963: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -const tslib_1 = __nccwpck_require__(4351); -tslib_1.__exportStar(__nccwpck_require__(36034), exports); -tslib_1.__exportStar(__nccwpck_require__(4014), exports); -tslib_1.__exportStar(__nccwpck_require__(78392), exports); -tslib_1.__exportStar(__nccwpck_require__(24695), exports); -tslib_1.__exportStar(__nccwpck_require__(12363), exports); -tslib_1.__exportStar(__nccwpck_require__(91927), exports); -tslib_1.__exportStar(__nccwpck_require__(86457), exports); -tslib_1.__exportStar(__nccwpck_require__(95830), exports); -tslib_1.__exportStar(__nccwpck_require__(93613), exports); -tslib_1.__exportStar(__nccwpck_require__(34014), exports); -tslib_1.__exportStar(__nccwpck_require__(38000), exports); -tslib_1.__exportStar(__nccwpck_require__(48730), exports); - - -/***/ }), - -/***/ 93613: -/***/ ((__unused_webpack_module, exports) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.LazyJsonString = exports.StringWrapper = void 0; -const StringWrapper = function () { - const Class = Object.getPrototypeOf(this).constructor; - const Constructor = Function.bind.apply(String, [null, ...arguments]); - const instance = new Constructor(); - Object.setPrototypeOf(instance, Class.prototype); - return instance; -}; -exports.StringWrapper = StringWrapper; -exports.StringWrapper.prototype = Object.create(String.prototype, { - constructor: { - value: exports.StringWrapper, - enumerable: false, - writable: true, - configurable: true, - }, -}); -Object.setPrototypeOf(exports.StringWrapper, String); -class LazyJsonString extends exports.StringWrapper { - deserializeJSON() { - return JSON.parse(super.toString()); - } - toJSON() { - return super.toString(); - } - static fromObject(object) { - if (object instanceof LazyJsonString) { - return object; - } - else if (object instanceof String || typeof object === "string") { - return new LazyJsonString(object); - } - return new LazyJsonString(JSON.stringify(object)); - } -} -exports.LazyJsonString = LazyJsonString; - - -/***/ }), - -/***/ 34014: -/***/ ((__unused_webpack_module, exports) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.strictParseByte = exports.strictParseShort = exports.strictParseInt32 = exports.strictParseInt = exports.strictParseLong = exports.limitedParseFloat32 = exports.limitedParseFloat = exports.handleFloat = exports.limitedParseDouble = exports.strictParseFloat32 = exports.strictParseFloat = exports.strictParseDouble = exports.expectUnion = exports.expectString = exports.expectObject = exports.expectNonNull = exports.expectByte = exports.expectShort = exports.expectInt32 = exports.expectInt = exports.expectLong = exports.expectFloat32 = exports.expectNumber = exports.expectBoolean = exports.parseBoolean = void 0; -const parseBoolean = (value) => { - switch (value) { - case "true": - return true; - case "false": - return false; - default: - throw new Error(`Unable to parse boolean value "${value}"`); - } -}; -exports.parseBoolean = parseBoolean; -const expectBoolean = (value) => { - if (value === null || value === undefined) { - return undefined; - } - if (typeof value === "boolean") { - return value; - } - throw new TypeError(`Expected boolean, got ${typeof value}`); -}; -exports.expectBoolean = expectBoolean; -const expectNumber = (value) => { - if (value === null || value === undefined) { - return undefined; - } - if (typeof value === "number") { - return value; - } - throw new TypeError(`Expected number, got ${typeof value}`); -}; -exports.expectNumber = expectNumber; -const MAX_FLOAT = Math.ceil(2 ** 127 * (2 - 2 ** -23)); -const expectFloat32 = (value) => { - const expected = exports.expectNumber(value); - if (expected !== undefined && !Number.isNaN(expected) && expected !== Infinity && expected !== -Infinity) { - if (Math.abs(expected) > MAX_FLOAT) { - throw new TypeError(`Expected 32-bit float, got ${value}`); - } - } - return expected; -}; -exports.expectFloat32 = expectFloat32; -const expectLong = (value) => { - if (value === null || value === undefined) { - return undefined; - } - if (Number.isInteger(value) && !Number.isNaN(value)) { - return value; - } - throw new TypeError(`Expected integer, got ${typeof value}`); -}; -exports.expectLong = expectLong; -exports.expectInt = exports.expectLong; -const expectInt32 = (value) => expectSizedInt(value, 32); -exports.expectInt32 = expectInt32; -const expectShort = (value) => expectSizedInt(value, 16); -exports.expectShort = expectShort; -const expectByte = (value) => expectSizedInt(value, 8); -exports.expectByte = expectByte; -const expectSizedInt = (value, size) => { - const expected = exports.expectLong(value); - if (expected !== undefined && castInt(expected, size) !== expected) { - throw new TypeError(`Expected ${size}-bit integer, got ${value}`); - } - return expected; -}; -const castInt = (value, size) => { - switch (size) { - case 32: - return Int32Array.of(value)[0]; - case 16: - return Int16Array.of(value)[0]; - case 8: - return Int8Array.of(value)[0]; - } -}; -const expectNonNull = (value, location) => { - if (value === null || value === undefined) { - if (location) { - throw new TypeError(`Expected a non-null value for ${location}`); - } - throw new TypeError("Expected a non-null value"); - } - return value; -}; -exports.expectNonNull = expectNonNull; -const expectObject = (value) => { - if (value === null || value === undefined) { - return undefined; - } - if (typeof value === "object" && !Array.isArray(value)) { - return value; - } - throw new TypeError(`Expected object, got ${typeof value}`); -}; -exports.expectObject = expectObject; -const expectString = (value) => { - if (value === null || value === undefined) { - return undefined; - } - if (typeof value === "string") { - return value; - } - throw new TypeError(`Expected string, got ${typeof value}`); -}; -exports.expectString = expectString; -const expectUnion = (value) => { - if (value === null || value === undefined) { - return undefined; - } - const asObject = exports.expectObject(value); - const setKeys = Object.entries(asObject) - .filter(([_, v]) => v !== null && v !== undefined) - .map(([k, _]) => k); - if (setKeys.length === 0) { - throw new TypeError(`Unions must have exactly one non-null member`); - } - if (setKeys.length > 1) { - throw new TypeError(`Unions must have exactly one non-null member. Keys ${setKeys} were not null.`); - } - return asObject; -}; -exports.expectUnion = expectUnion; -const strictParseDouble = (value) => { - if (typeof value == "string") { - return exports.expectNumber(parseNumber(value)); - } - return exports.expectNumber(value); -}; -exports.strictParseDouble = strictParseDouble; -exports.strictParseFloat = exports.strictParseDouble; -const strictParseFloat32 = (value) => { - if (typeof value == "string") { - return exports.expectFloat32(parseNumber(value)); - } - return exports.expectFloat32(value); -}; -exports.strictParseFloat32 = strictParseFloat32; -const NUMBER_REGEX = /(-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?)|(-?Infinity)|(NaN)/g; -const parseNumber = (value) => { - const matches = value.match(NUMBER_REGEX); - if (matches === null || matches[0].length !== value.length) { - throw new TypeError(`Expected real number, got implicit NaN`); - } - return parseFloat(value); -}; -const limitedParseDouble = (value) => { - if (typeof value == "string") { - return parseFloatString(value); - } - return exports.expectNumber(value); -}; -exports.limitedParseDouble = limitedParseDouble; -exports.handleFloat = exports.limitedParseDouble; -exports.limitedParseFloat = exports.limitedParseDouble; -const limitedParseFloat32 = (value) => { - if (typeof value == "string") { - return parseFloatString(value); - } - return exports.expectFloat32(value); -}; -exports.limitedParseFloat32 = limitedParseFloat32; -const parseFloatString = (value) => { - switch (value) { - case "NaN": - return NaN; - case "Infinity": - return Infinity; - case "-Infinity": - return -Infinity; - default: - throw new Error(`Unable to parse float value: ${value}`); - } -}; -const strictParseLong = (value) => { - if (typeof value === "string") { - return exports.expectLong(parseNumber(value)); - } - return exports.expectLong(value); -}; -exports.strictParseLong = strictParseLong; -exports.strictParseInt = exports.strictParseLong; -const strictParseInt32 = (value) => { - if (typeof value === "string") { - return exports.expectInt32(parseNumber(value)); - } - return exports.expectInt32(value); -}; -exports.strictParseInt32 = strictParseInt32; -const strictParseShort = (value) => { - if (typeof value === "string") { - return exports.expectShort(parseNumber(value)); - } - return exports.expectShort(value); -}; -exports.strictParseShort = strictParseShort; -const strictParseByte = (value) => { - if (typeof value === "string") { - return exports.expectByte(parseNumber(value)); - } - return exports.expectByte(value); -}; -exports.strictParseByte = strictParseByte; - - -/***/ }), - -/***/ 38000: -/***/ ((__unused_webpack_module, exports) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.serializeFloat = void 0; -const serializeFloat = (value) => { - if (value !== value) { - return "NaN"; - } - switch (value) { - case Infinity: - return "Infinity"; - case -Infinity: - return "-Infinity"; - default: - return value; - } -}; -exports.serializeFloat = serializeFloat; - - -/***/ }), - -/***/ 48730: -/***/ ((__unused_webpack_module, exports) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.splitEvery = void 0; -function splitEvery(value, delimiter, numDelimiters) { - if (numDelimiters <= 0 || !Number.isInteger(numDelimiters)) { - throw new Error("Invalid number of delimiters (" + numDelimiters + ") for splitEvery."); - } - const segments = value.split(delimiter); - if (numDelimiters === 1) { - return segments; - } - const compoundSegments = []; - let currentSegment = ""; - for (let i = 0; i < segments.length; i++) { - if (currentSegment === "") { - currentSegment = segments[i]; - } - else { - currentSegment += delimiter + segments[i]; - } - if ((i + 1) % numDelimiters === 0) { - compoundSegments.push(currentSegment); - currentSegment = ""; - } - } - if (currentSegment !== "") { - compoundSegments.push(currentSegment); - } - return compoundSegments; -} -exports.splitEvery = splitEvery; - - -/***/ }), - -/***/ 2992: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.parseUrl = void 0; -const querystring_parser_1 = __nccwpck_require__(47424); -const parseUrl = (url) => { - const { hostname, pathname, port, protocol, search } = new URL(url); - let query; - if (search) { - query = querystring_parser_1.parseQueryString(search); - } - return { - hostname, - port: port ? parseInt(port) : undefined, - protocol, - path: pathname, - query, - }; -}; -exports.parseUrl = parseUrl; - - -/***/ }), - -/***/ 18588: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.toBase64 = exports.fromBase64 = void 0; -const util_buffer_from_1 = __nccwpck_require__(36010); -const BASE64_REGEX = /^[A-Za-z0-9+/]*={0,2}$/; -function fromBase64(input) { - if ((input.length * 3) % 4 !== 0) { - throw new TypeError(`Incorrect padding on base64 string.`); - } - if (!BASE64_REGEX.exec(input)) { - throw new TypeError(`Invalid base64 string.`); - } - const buffer = util_buffer_from_1.fromString(input, "base64"); - return new Uint8Array(buffer.buffer, buffer.byteOffset, buffer.byteLength); -} -exports.fromBase64 = fromBase64; -function toBase64(input) { - return util_buffer_from_1.fromArrayBuffer(input.buffer, input.byteOffset, input.byteLength).toString("base64"); -} -exports.toBase64 = toBase64; - - -/***/ }), - -/***/ 74147: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.calculateBodyLength = void 0; -const fs_1 = __nccwpck_require__(35747); -function calculateBodyLength(body) { - if (!body) { - return 0; - } - if (typeof body === "string") { - return Buffer.from(body).length; - } - else if (typeof body.byteLength === "number") { - return body.byteLength; - } - else if (typeof body.size === "number") { - return body.size; - } - else if (typeof body.path === "string") { - return fs_1.lstatSync(body.path).size; - } -} -exports.calculateBodyLength = calculateBodyLength; - - -/***/ }), - -/***/ 36010: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.fromString = exports.fromArrayBuffer = void 0; -const is_array_buffer_1 = __nccwpck_require__(69126); -const buffer_1 = __nccwpck_require__(64293); -const fromArrayBuffer = (input, offset = 0, length = input.byteLength - offset) => { - if (!is_array_buffer_1.isArrayBuffer(input)) { - throw new TypeError(`The "input" argument must be ArrayBuffer. Received type ${typeof input} (${input})`); - } - return buffer_1.Buffer.from(input, offset, length); -}; -exports.fromArrayBuffer = fromArrayBuffer; -const fromString = (input, encoding) => { - if (typeof input !== "string") { - throw new TypeError(`The "input" argument must be of type string. Received type ${typeof input} (${input})`); - } - return encoding ? buffer_1.Buffer.from(input, encoding) : buffer_1.Buffer.from(input); -}; -exports.fromString = fromString; - - -/***/ }), - -/***/ 79509: -/***/ ((__unused_webpack_module, exports) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.booleanSelector = exports.SelectorType = void 0; -var SelectorType; -(function (SelectorType) { - SelectorType["ENV"] = "env"; - SelectorType["CONFIG"] = "shared config entry"; -})(SelectorType = exports.SelectorType || (exports.SelectorType = {})); -const booleanSelector = (obj, key, type) => { - if (!(key in obj)) - return undefined; - if (obj[key] === "true") - return true; - if (obj[key] === "false") - return false; - throw new Error(`Cannot load ${type} "${key}". Expected "true" or "false", got ${obj[key]}.`); -}; -exports.booleanSelector = booleanSelector; - - -/***/ }), - -/***/ 6168: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -const tslib_1 = __nccwpck_require__(4351); -tslib_1.__exportStar(__nccwpck_require__(79509), exports); - - -/***/ }), - -/***/ 98598: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.getMasterProfileName = exports.parseKnownFiles = exports.DEFAULT_PROFILE = exports.ENV_PROFILE = void 0; -const shared_ini_file_loader_1 = __nccwpck_require__(67387); -exports.ENV_PROFILE = "AWS_PROFILE"; -exports.DEFAULT_PROFILE = "default"; -const parseKnownFiles = async (init) => { - const { loadedConfig = shared_ini_file_loader_1.loadSharedConfigFiles(init) } = init; - const parsedFiles = await loadedConfig; - return { - ...parsedFiles.configFile, - ...parsedFiles.credentialsFile, - }; -}; -exports.parseKnownFiles = parseKnownFiles; -const getMasterProfileName = (init) => init.profile || process.env[exports.ENV_PROFILE] || exports.DEFAULT_PROFILE; -exports.getMasterProfileName = getMasterProfileName; - - -/***/ }), - -/***/ 1968: -/***/ ((__unused_webpack_module, exports) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.toHex = exports.fromHex = void 0; -const SHORT_TO_HEX = {}; -const HEX_TO_SHORT = {}; -for (let i = 0; i < 256; i++) { - let encodedByte = i.toString(16).toLowerCase(); - if (encodedByte.length === 1) { - encodedByte = `0${encodedByte}`; - } - SHORT_TO_HEX[i] = encodedByte; - HEX_TO_SHORT[encodedByte] = i; -} -function fromHex(encoded) { - if (encoded.length % 2 !== 0) { - throw new Error("Hex encoded strings must have an even number length"); - } - const out = new Uint8Array(encoded.length / 2); - for (let i = 0; i < encoded.length; i += 2) { - const encodedByte = encoded.substr(i, 2).toLowerCase(); - if (encodedByte in HEX_TO_SHORT) { - out[i / 2] = HEX_TO_SHORT[encodedByte]; - } - else { - throw new Error(`Cannot decode unrecognized sequence ${encodedByte} as hexadecimal`); - } - } - return out; -} -exports.fromHex = fromHex; -function toHex(bytes) { - let out = ""; - for (let i = 0; i < bytes.byteLength; i++) { - out += SHORT_TO_HEX[bytes[i]]; - } - return out; -} -exports.toHex = toHex; - - -/***/ }), - -/***/ 15774: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.escapeUriPath = void 0; -const escape_uri_1 = __nccwpck_require__(24652); -const escapeUriPath = (uri) => uri.split("/").map(escape_uri_1.escapeUri).join("/"); -exports.escapeUriPath = escapeUriPath; - - -/***/ }), - -/***/ 24652: -/***/ ((__unused_webpack_module, exports) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.escapeUri = void 0; -const escapeUri = (uri) => encodeURIComponent(uri).replace(/[!'()*]/g, hexEncode); -exports.escapeUri = escapeUri; -const hexEncode = (c) => `%${c.charCodeAt(0).toString(16).toUpperCase()}`; - - -/***/ }), - -/***/ 57952: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -const tslib_1 = __nccwpck_require__(4351); -tslib_1.__exportStar(__nccwpck_require__(24652), exports); -tslib_1.__exportStar(__nccwpck_require__(15774), exports); - - -/***/ }), - -/***/ 98095: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.defaultUserAgent = exports.UA_APP_ID_INI_NAME = exports.UA_APP_ID_ENV_NAME = void 0; -const node_config_provider_1 = __nccwpck_require__(87684); -const os_1 = __nccwpck_require__(12087); -const process_1 = __nccwpck_require__(61765); -const is_crt_available_1 = __nccwpck_require__(68390); -exports.UA_APP_ID_ENV_NAME = "AWS_SDK_UA_APP_ID"; -exports.UA_APP_ID_INI_NAME = "sdk-ua-app-id"; -const defaultUserAgent = ({ serviceId, clientVersion }) => { - const sections = [ - ["aws-sdk-js", clientVersion], - [`os/${os_1.platform()}`, os_1.release()], - ["lang/js"], - ["md/nodejs", `${process_1.versions.node}`], - ]; - const crtAvailable = is_crt_available_1.isCrtAvailable(); - if (crtAvailable) { - sections.push(crtAvailable); - } - if (serviceId) { - sections.push([`api/${serviceId}`, clientVersion]); - } - if (process_1.env.AWS_EXECUTION_ENV) { - sections.push([`exec-env/${process_1.env.AWS_EXECUTION_ENV}`]); - } - const appIdPromise = node_config_provider_1.loadConfig({ - environmentVariableSelector: (env) => env[exports.UA_APP_ID_ENV_NAME], - configFileSelector: (profile) => profile[exports.UA_APP_ID_INI_NAME], - default: undefined, - })(); - let resolvedUserAgent = undefined; - return async () => { - if (!resolvedUserAgent) { - const appId = await appIdPromise; - resolvedUserAgent = appId ? [...sections, [`app/${appId}`]] : [...sections]; - } - return resolvedUserAgent; - }; -}; -exports.defaultUserAgent = defaultUserAgent; - - -/***/ }), - -/***/ 68390: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.isCrtAvailable = void 0; -const isCrtAvailable = () => { - try { - if ( true && __nccwpck_require__(87578)) { - return ["md/crt-avail"]; - } - return null; - } - catch (e) { - return null; - } -}; -exports.isCrtAvailable = isCrtAvailable; - - -/***/ }), - -/***/ 66278: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.toUtf8 = exports.fromUtf8 = void 0; -const util_buffer_from_1 = __nccwpck_require__(36010); -const fromUtf8 = (input) => { - const buf = util_buffer_from_1.fromString(input, "utf8"); - return new Uint8Array(buf.buffer, buf.byteOffset, buf.byteLength / Uint8Array.BYTES_PER_ELEMENT); -}; -exports.fromUtf8 = fromUtf8; -const toUtf8 = (input) => util_buffer_from_1.fromArrayBuffer(input.buffer, input.byteOffset, input.byteLength).toString("utf8"); -exports.toUtf8 = toUtf8; - - -/***/ }), - -/***/ 38880: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.createWaiter = void 0; -const poller_1 = __nccwpck_require__(92105); -const utils_1 = __nccwpck_require__(36001); -const waiter_1 = __nccwpck_require__(4996); -const abortTimeout = async (abortSignal) => { - return new Promise((resolve) => { - abortSignal.onabort = () => resolve({ state: waiter_1.WaiterState.ABORTED }); - }); -}; -const createWaiter = async (options, input, acceptorChecks) => { - const params = { - ...waiter_1.waiterServiceDefaults, - ...options, - }; - utils_1.validateWaiterOptions(params); - const exitConditions = [poller_1.runPolling(params, input, acceptorChecks)]; - if (options.abortController) { - exitConditions.push(abortTimeout(options.abortController.signal)); - } - if (options.abortSignal) { - exitConditions.push(abortTimeout(options.abortSignal)); - } - return Promise.race(exitConditions); -}; -exports.createWaiter = createWaiter; - - -/***/ }), - -/***/ 21627: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -const tslib_1 = __nccwpck_require__(4351); -tslib_1.__exportStar(__nccwpck_require__(38880), exports); -tslib_1.__exportStar(__nccwpck_require__(4996), exports); - - -/***/ }), - -/***/ 92105: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.runPolling = void 0; -const sleep_1 = __nccwpck_require__(17397); -const waiter_1 = __nccwpck_require__(4996); -const exponentialBackoffWithJitter = (minDelay, maxDelay, attemptCeiling, attempt) => { - if (attempt > attemptCeiling) - return maxDelay; - const delay = minDelay * 2 ** (attempt - 1); - return randomInRange(minDelay, delay); -}; -const randomInRange = (min, max) => min + Math.random() * (max - min); -const runPolling = async ({ minDelay, maxDelay, maxWaitTime, abortController, client, abortSignal }, input, acceptorChecks) => { - var _a; - const { state } = await acceptorChecks(client, input); - if (state !== waiter_1.WaiterState.RETRY) { - return { state }; - } - let currentAttempt = 1; - const waitUntil = Date.now() + maxWaitTime * 1000; - const attemptCeiling = Math.log(maxDelay / minDelay) / Math.log(2) + 1; - while (true) { - if (((_a = abortController === null || abortController === void 0 ? void 0 : abortController.signal) === null || _a === void 0 ? void 0 : _a.aborted) || (abortSignal === null || abortSignal === void 0 ? void 0 : abortSignal.aborted)) { - return { state: waiter_1.WaiterState.ABORTED }; - } - const delay = exponentialBackoffWithJitter(minDelay, maxDelay, attemptCeiling, currentAttempt); - if (Date.now() + delay * 1000 > waitUntil) { - return { state: waiter_1.WaiterState.TIMEOUT }; - } - await sleep_1.sleep(delay); - const { state } = await acceptorChecks(client, input); - if (state !== waiter_1.WaiterState.RETRY) { - return { state }; - } - currentAttempt += 1; - } -}; -exports.runPolling = runPolling; - - -/***/ }), - -/***/ 36001: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -const tslib_1 = __nccwpck_require__(4351); -tslib_1.__exportStar(__nccwpck_require__(17397), exports); -tslib_1.__exportStar(__nccwpck_require__(23931), exports); - - -/***/ }), - -/***/ 17397: -/***/ ((__unused_webpack_module, exports) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.sleep = void 0; -const sleep = (seconds) => { - return new Promise((resolve) => setTimeout(resolve, seconds * 1000)); -}; -exports.sleep = sleep; - - -/***/ }), - -/***/ 23931: -/***/ ((__unused_webpack_module, exports) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.validateWaiterOptions = void 0; -const validateWaiterOptions = (options) => { - if (options.maxWaitTime < 1) { - throw new Error(`WaiterConfiguration.maxWaitTime must be greater than 0`); - } - else if (options.minDelay < 1) { - throw new Error(`WaiterConfiguration.minDelay must be greater than 0`); - } - else if (options.maxDelay < 1) { - throw new Error(`WaiterConfiguration.maxDelay must be greater than 0`); - } - else if (options.maxWaitTime <= options.minDelay) { - throw new Error(`WaiterConfiguration.maxWaitTime [${options.maxWaitTime}] must be greater than WaiterConfiguration.minDelay [${options.minDelay}] for this waiter`); - } - else if (options.maxDelay < options.minDelay) { - throw new Error(`WaiterConfiguration.maxDelay [${options.maxDelay}] must be greater than WaiterConfiguration.minDelay [${options.minDelay}] for this waiter`); - } -}; -exports.validateWaiterOptions = validateWaiterOptions; - - -/***/ }), - -/***/ 4996: -/***/ ((__unused_webpack_module, exports) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.checkExceptions = exports.WaiterState = exports.waiterServiceDefaults = void 0; -exports.waiterServiceDefaults = { - minDelay: 2, - maxDelay: 120, -}; -var WaiterState; -(function (WaiterState) { - WaiterState["ABORTED"] = "ABORTED"; - WaiterState["FAILURE"] = "FAILURE"; - WaiterState["SUCCESS"] = "SUCCESS"; - WaiterState["RETRY"] = "RETRY"; - WaiterState["TIMEOUT"] = "TIMEOUT"; -})(WaiterState = exports.WaiterState || (exports.WaiterState = {})); -const checkExceptions = (result) => { - if (result.state === WaiterState.ABORTED) { - const abortError = new Error(`${JSON.stringify({ - ...result, - reason: "Request was aborted", - })}`); - abortError.name = "AbortError"; - throw abortError; - } - else if (result.state === WaiterState.TIMEOUT) { - const timeoutError = new Error(`${JSON.stringify({ - ...result, - reason: "Waiter has timed out", - })}`); - timeoutError.name = "TimeoutError"; - throw timeoutError; - } - else if (result.state !== WaiterState.SUCCESS) { - throw new Error(`${JSON.stringify({ result })}`); - } - return result; -}; -exports.checkExceptions = checkExceptions; - - -/***/ }), - -/***/ 81040: -/***/ ((module) => { - -"use strict"; - -function noop() { } -function once(emitter, name) { - const o = once.spread(emitter, name); - const r = o.then((args) => args[0]); - r.cancel = o.cancel; - return r; -} -(function (once) { - function spread(emitter, name) { - let c = null; - const p = new Promise((resolve, reject) => { - function cancel() { - emitter.removeListener(name, onEvent); - emitter.removeListener('error', onError); - p.cancel = noop; - } - function onEvent(...args) { - cancel(); - resolve(args); - } - function onError(err) { - cancel(); - reject(err); - } - c = cancel; - emitter.on(name, onEvent); - emitter.on('error', onError); - }); - if (!c) { - throw new TypeError('Could not get `cancel()` function'); - } - p.cancel = c; - return p; - } - once.spread = spread; -})(once || (once = {})); -module.exports = once; -//# sourceMappingURL=index.js.map - -/***/ }), - -/***/ 49690: -/***/ (function(module, __unused_webpack_exports, __nccwpck_require__) { - -"use strict"; - -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; -const events_1 = __nccwpck_require__(28614); -const debug_1 = __importDefault(__nccwpck_require__(38237)); -const promisify_1 = __importDefault(__nccwpck_require__(66570)); -const debug = debug_1.default('agent-base'); -function isAgent(v) { - return Boolean(v) && typeof v.addRequest === 'function'; -} -function isSecureEndpoint() { - const { stack } = new Error(); - if (typeof stack !== 'string') - return false; - return stack.split('\n').some(l => l.indexOf('(https.js:') !== -1 || l.indexOf('node:https:') !== -1); -} -function createAgent(callback, opts) { - return new createAgent.Agent(callback, opts); -} -(function (createAgent) { - /** - * Base `http.Agent` implementation. - * No pooling/keep-alive is implemented by default. - * - * @param {Function} callback - * @api public - */ - class Agent extends events_1.EventEmitter { - constructor(callback, _opts) { - super(); - let opts = _opts; - if (typeof callback === 'function') { - this.callback = callback; - } - else if (callback) { - opts = callback; - } - // Timeout for the socket to be returned from the callback - this.timeout = null; - if (opts && typeof opts.timeout === 'number') { - this.timeout = opts.timeout; - } - // These aren't actually used by `agent-base`, but are required - // for the TypeScript definition files in `@types/node` :/ - this.maxFreeSockets = 1; - this.maxSockets = 1; - this.maxTotalSockets = Infinity; - this.sockets = {}; - this.freeSockets = {}; - this.requests = {}; - this.options = {}; - } - get defaultPort() { - if (typeof this.explicitDefaultPort === 'number') { - return this.explicitDefaultPort; - } - return isSecureEndpoint() ? 443 : 80; - } - set defaultPort(v) { - this.explicitDefaultPort = v; - } - get protocol() { - if (typeof this.explicitProtocol === 'string') { - return this.explicitProtocol; - } - return isSecureEndpoint() ? 'https:' : 'http:'; - } - set protocol(v) { - this.explicitProtocol = v; - } - callback(req, opts, fn) { - throw new Error('"agent-base" has no default implementation, you must subclass and override `callback()`'); - } - /** - * Called by node-core's "_http_client.js" module when creating - * a new HTTP request with this Agent instance. - * - * @api public - */ - addRequest(req, _opts) { - const opts = Object.assign({}, _opts); - if (typeof opts.secureEndpoint !== 'boolean') { - opts.secureEndpoint = isSecureEndpoint(); - } - if (opts.host == null) { - opts.host = 'localhost'; - } - if (opts.port == null) { - opts.port = opts.secureEndpoint ? 443 : 80; - } - if (opts.protocol == null) { - opts.protocol = opts.secureEndpoint ? 'https:' : 'http:'; - } - if (opts.host && opts.path) { - // If both a `host` and `path` are specified then it's most - // likely the result of a `url.parse()` call... we need to - // remove the `path` portion so that `net.connect()` doesn't - // attempt to open that as a unix socket file. - delete opts.path; - } - delete opts.agent; - delete opts.hostname; - delete opts._defaultAgent; - delete opts.defaultPort; - delete opts.createConnection; - // Hint to use "Connection: close" - // XXX: non-documented `http` module API :( - req._last = true; - req.shouldKeepAlive = false; - let timedOut = false; - let timeoutId = null; - const timeoutMs = opts.timeout || this.timeout; - const onerror = (err) => { - if (req._hadError) - return; - req.emit('error', err); - // For Safety. Some additional errors might fire later on - // and we need to make sure we don't double-fire the error event. - req._hadError = true; - }; - const ontimeout = () => { - timeoutId = null; - timedOut = true; - const err = new Error(`A "socket" was not created for HTTP request before ${timeoutMs}ms`); - err.code = 'ETIMEOUT'; - onerror(err); - }; - const callbackError = (err) => { - if (timedOut) - return; - if (timeoutId !== null) { - clearTimeout(timeoutId); - timeoutId = null; - } - onerror(err); - }; - const onsocket = (socket) => { - if (timedOut) - return; - if (timeoutId != null) { - clearTimeout(timeoutId); - timeoutId = null; - } - if (isAgent(socket)) { - // `socket` is actually an `http.Agent` instance, so - // relinquish responsibility for this `req` to the Agent - // from here on - debug('Callback returned another Agent instance %o', socket.constructor.name); - socket.addRequest(req, opts); - return; - } - if (socket) { - socket.once('free', () => { - this.freeSocket(socket, opts); - }); - req.onSocket(socket); - return; - } - const err = new Error(`no Duplex stream was returned to agent-base for \`${req.method} ${req.path}\``); - onerror(err); - }; - if (typeof this.callback !== 'function') { - onerror(new Error('`callback` is not defined')); - return; - } - if (!this.promisifiedCallback) { - if (this.callback.length >= 3) { - debug('Converting legacy callback function to promise'); - this.promisifiedCallback = promisify_1.default(this.callback); - } - else { - this.promisifiedCallback = this.callback; - } - } - if (typeof timeoutMs === 'number' && timeoutMs > 0) { - timeoutId = setTimeout(ontimeout, timeoutMs); - } - if ('port' in opts && typeof opts.port !== 'number') { - opts.port = Number(opts.port); - } - try { - debug('Resolving socket for %o request: %o', opts.protocol, `${req.method} ${req.path}`); - Promise.resolve(this.promisifiedCallback(req, opts)).then(onsocket, callbackError); - } - catch (err) { - Promise.reject(err).catch(callbackError); - } - } - freeSocket(socket, opts) { - debug('Freeing socket %o %o', socket.constructor.name, opts); - socket.destroy(); - } - destroy() { - debug('Destroying agent %o', this.constructor.name); - } - } - createAgent.Agent = Agent; - // So that `instanceof` works correctly - createAgent.prototype = createAgent.Agent.prototype; -})(createAgent || (createAgent = {})); -module.exports = createAgent; -//# sourceMappingURL=index.js.map - -/***/ }), - -/***/ 66570: -/***/ ((__unused_webpack_module, exports) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -function promisify(fn) { - return function (req, opts) { - return new Promise((resolve, reject) => { - fn.call(this, req, opts, (err, rtn) => { - if (err) { - reject(err); - } - else { - resolve(rtn); - } - }); - }); - }; -} -exports.default = promisify; -//# sourceMappingURL=promisify.js.map - -/***/ }), - -/***/ 55382: -/***/ ((module, exports, __nccwpck_require__) => { - -"use strict"; -; -Object.defineProperty(exports, "__esModule", ({ value: true })); -var tslib_1 = __nccwpck_require__(4351); -var types_1 = tslib_1.__importDefault(__nccwpck_require__(52619)); -var shared_1 = tslib_1.__importDefault(__nccwpck_require__(34631)); -var es7_1 = tslib_1.__importDefault(__nccwpck_require__(75351)); -function default_1(fork) { - fork.use(es7_1.default); - var types = fork.use(types_1.default); - var defaults = fork.use(shared_1.default).defaults; - var def = types.Type.def; - var or = types.Type.or; - def("Noop") - .bases("Statement") - .build(); - def("DoExpression") - .bases("Expression") - .build("body") - .field("body", [def("Statement")]); - def("Super") - .bases("Expression") - .build(); - def("BindExpression") - .bases("Expression") - .build("object", "callee") - .field("object", or(def("Expression"), null)) - .field("callee", def("Expression")); - def("Decorator") - .bases("Node") - .build("expression") - .field("expression", def("Expression")); - def("Property") - .field("decorators", or([def("Decorator")], null), defaults["null"]); - def("MethodDefinition") - .field("decorators", or([def("Decorator")], null), defaults["null"]); - def("MetaProperty") - .bases("Expression") - .build("meta", "property") - .field("meta", def("Identifier")) - .field("property", def("Identifier")); - def("ParenthesizedExpression") - .bases("Expression") - .build("expression") - .field("expression", def("Expression")); - def("ImportSpecifier") - .bases("ModuleSpecifier") - .build("imported", "local") - .field("imported", def("Identifier")); - def("ImportDefaultSpecifier") - .bases("ModuleSpecifier") - .build("local"); - def("ImportNamespaceSpecifier") - .bases("ModuleSpecifier") - .build("local"); - def("ExportDefaultDeclaration") - .bases("Declaration") - .build("declaration") - .field("declaration", or(def("Declaration"), def("Expression"))); - def("ExportNamedDeclaration") - .bases("Declaration") - .build("declaration", "specifiers", "source") - .field("declaration", or(def("Declaration"), null)) - .field("specifiers", [def("ExportSpecifier")], defaults.emptyArray) - .field("source", or(def("Literal"), null), defaults["null"]); - def("ExportSpecifier") - .bases("ModuleSpecifier") - .build("local", "exported") - .field("exported", def("Identifier")); - def("ExportNamespaceSpecifier") - .bases("Specifier") - .build("exported") - .field("exported", def("Identifier")); - def("ExportDefaultSpecifier") - .bases("Specifier") - .build("exported") - .field("exported", def("Identifier")); - def("ExportAllDeclaration") - .bases("Declaration") - .build("exported", "source") - .field("exported", or(def("Identifier"), null)) - .field("source", def("Literal")); - def("CommentBlock") - .bases("Comment") - .build("value", /*optional:*/ "leading", "trailing"); - def("CommentLine") - .bases("Comment") - .build("value", /*optional:*/ "leading", "trailing"); - def("Directive") - .bases("Node") - .build("value") - .field("value", def("DirectiveLiteral")); - def("DirectiveLiteral") - .bases("Node", "Expression") - .build("value") - .field("value", String, defaults["use strict"]); - def("InterpreterDirective") - .bases("Node") - .build("value") - .field("value", String); - def("BlockStatement") - .bases("Statement") - .build("body") - .field("body", [def("Statement")]) - .field("directives", [def("Directive")], defaults.emptyArray); - def("Program") - .bases("Node") - .build("body") - .field("body", [def("Statement")]) - .field("directives", [def("Directive")], defaults.emptyArray) - .field("interpreter", or(def("InterpreterDirective"), null), defaults["null"]); - // Split Literal - def("StringLiteral") - .bases("Literal") - .build("value") - .field("value", String); - def("NumericLiteral") - .bases("Literal") - .build("value") - .field("value", Number) - .field("raw", or(String, null), defaults["null"]) - .field("extra", { - rawValue: Number, - raw: String - }, function getDefault() { - return { - rawValue: this.value, - raw: this.value + "" - }; - }); - def("BigIntLiteral") - .bases("Literal") - .build("value") - // Only String really seems appropriate here, since BigInt values - // often exceed the limits of JS numbers. - .field("value", or(String, Number)) - .field("extra", { - rawValue: String, - raw: String - }, function getDefault() { - return { - rawValue: String(this.value), - raw: this.value + "n" - }; - }); - def("NullLiteral") - .bases("Literal") - .build() - .field("value", null, defaults["null"]); - def("BooleanLiteral") - .bases("Literal") - .build("value") - .field("value", Boolean); - def("RegExpLiteral") - .bases("Literal") - .build("pattern", "flags") - .field("pattern", String) - .field("flags", String) - .field("value", RegExp, function () { - return new RegExp(this.pattern, this.flags); - }); - var ObjectExpressionProperty = or(def("Property"), def("ObjectMethod"), def("ObjectProperty"), def("SpreadProperty"), def("SpreadElement")); - // Split Property -> ObjectProperty and ObjectMethod - def("ObjectExpression") - .bases("Expression") - .build("properties") - .field("properties", [ObjectExpressionProperty]); - // ObjectMethod hoist .value properties to own properties - def("ObjectMethod") - .bases("Node", "Function") - .build("kind", "key", "params", "body", "computed") - .field("kind", or("method", "get", "set")) - .field("key", or(def("Literal"), def("Identifier"), def("Expression"))) - .field("params", [def("Pattern")]) - .field("body", def("BlockStatement")) - .field("computed", Boolean, defaults["false"]) - .field("generator", Boolean, defaults["false"]) - .field("async", Boolean, defaults["false"]) - .field("accessibility", // TypeScript - or(def("Literal"), null), defaults["null"]) - .field("decorators", or([def("Decorator")], null), defaults["null"]); - def("ObjectProperty") - .bases("Node") - .build("key", "value") - .field("key", or(def("Literal"), def("Identifier"), def("Expression"))) - .field("value", or(def("Expression"), def("Pattern"))) - .field("accessibility", // TypeScript - or(def("Literal"), null), defaults["null"]) - .field("computed", Boolean, defaults["false"]); - var ClassBodyElement = or(def("MethodDefinition"), def("VariableDeclarator"), def("ClassPropertyDefinition"), def("ClassProperty"), def("ClassPrivateProperty"), def("ClassMethod"), def("ClassPrivateMethod")); - // MethodDefinition -> ClassMethod - def("ClassBody") - .bases("Declaration") - .build("body") - .field("body", [ClassBodyElement]); - def("ClassMethod") - .bases("Declaration", "Function") - .build("kind", "key", "params", "body", "computed", "static") - .field("key", or(def("Literal"), def("Identifier"), def("Expression"))); - def("ClassPrivateMethod") - .bases("Declaration", "Function") - .build("key", "params", "body", "kind", "computed", "static") - .field("key", def("PrivateName")); - ["ClassMethod", - "ClassPrivateMethod", - ].forEach(function (typeName) { - def(typeName) - .field("kind", or("get", "set", "method", "constructor"), function () { return "method"; }) - .field("body", def("BlockStatement")) - .field("computed", Boolean, defaults["false"]) - .field("static", or(Boolean, null), defaults["null"]) - .field("abstract", or(Boolean, null), defaults["null"]) - .field("access", or("public", "private", "protected", null), defaults["null"]) - .field("accessibility", or("public", "private", "protected", null), defaults["null"]) - .field("decorators", or([def("Decorator")], null), defaults["null"]) - .field("optional", or(Boolean, null), defaults["null"]); - }); - def("ClassPrivateProperty") - .bases("ClassProperty") - .build("key", "value") - .field("key", def("PrivateName")) - .field("value", or(def("Expression"), null), defaults["null"]); - def("PrivateName") - .bases("Expression", "Pattern") - .build("id") - .field("id", def("Identifier")); - var ObjectPatternProperty = or(def("Property"), def("PropertyPattern"), def("SpreadPropertyPattern"), def("SpreadProperty"), // Used by Esprima - def("ObjectProperty"), // Babel 6 - def("RestProperty") // Babel 6 - ); - // Split into RestProperty and SpreadProperty - def("ObjectPattern") - .bases("Pattern") - .build("properties") - .field("properties", [ObjectPatternProperty]) - .field("decorators", or([def("Decorator")], null), defaults["null"]); - def("SpreadProperty") - .bases("Node") - .build("argument") - .field("argument", def("Expression")); - def("RestProperty") - .bases("Node") - .build("argument") - .field("argument", def("Expression")); - def("ForAwaitStatement") - .bases("Statement") - .build("left", "right", "body") - .field("left", or(def("VariableDeclaration"), def("Expression"))) - .field("right", def("Expression")) - .field("body", def("Statement")); - // The callee node of a dynamic import(...) expression. - def("Import") - .bases("Expression") - .build(); -} -exports.default = default_1; -module.exports = exports["default"]; - - -/***/ }), - -/***/ 92262: -/***/ ((module, exports, __nccwpck_require__) => { - -"use strict"; -; -Object.defineProperty(exports, "__esModule", ({ value: true })); -var tslib_1 = __nccwpck_require__(4351); -var babel_core_1 = tslib_1.__importDefault(__nccwpck_require__(55382)); -var flow_1 = tslib_1.__importDefault(__nccwpck_require__(60368)); -function default_1(fork) { - fork.use(babel_core_1.default); - fork.use(flow_1.default); -} -exports.default = default_1; -module.exports = exports["default"]; - - -/***/ }), - -/***/ 66604: -/***/ ((module, exports, __nccwpck_require__) => { - -"use strict"; -; -Object.defineProperty(exports, "__esModule", ({ value: true })); -var tslib_1 = __nccwpck_require__(4351); -var types_1 = tslib_1.__importDefault(__nccwpck_require__(52619)); -var shared_1 = tslib_1.__importDefault(__nccwpck_require__(34631)); -function default_1(fork) { - var types = fork.use(types_1.default); - var Type = types.Type; - var def = Type.def; - var or = Type.or; - var shared = fork.use(shared_1.default); - var defaults = shared.defaults; - var geq = shared.geq; - // Abstract supertype of all syntactic entities that are allowed to have a - // .loc field. - def("Printable") - .field("loc", or(def("SourceLocation"), null), defaults["null"], true); - def("Node") - .bases("Printable") - .field("type", String) - .field("comments", or([def("Comment")], null), defaults["null"], true); - def("SourceLocation") - .field("start", def("Position")) - .field("end", def("Position")) - .field("source", or(String, null), defaults["null"]); - def("Position") - .field("line", geq(1)) - .field("column", geq(0)); - def("File") - .bases("Node") - .build("program", "name") - .field("program", def("Program")) - .field("name", or(String, null), defaults["null"]); - def("Program") - .bases("Node") - .build("body") - .field("body", [def("Statement")]); - def("Function") - .bases("Node") - .field("id", or(def("Identifier"), null), defaults["null"]) - .field("params", [def("Pattern")]) - .field("body", def("BlockStatement")) - .field("generator", Boolean, defaults["false"]) - .field("async", Boolean, defaults["false"]); - def("Statement").bases("Node"); - // The empty .build() here means that an EmptyStatement can be constructed - // (i.e. it's not abstract) but that it needs no arguments. - def("EmptyStatement").bases("Statement").build(); - def("BlockStatement") - .bases("Statement") - .build("body") - .field("body", [def("Statement")]); - // TODO Figure out how to silently coerce Expressions to - // ExpressionStatements where a Statement was expected. - def("ExpressionStatement") - .bases("Statement") - .build("expression") - .field("expression", def("Expression")); - def("IfStatement") - .bases("Statement") - .build("test", "consequent", "alternate") - .field("test", def("Expression")) - .field("consequent", def("Statement")) - .field("alternate", or(def("Statement"), null), defaults["null"]); - def("LabeledStatement") - .bases("Statement") - .build("label", "body") - .field("label", def("Identifier")) - .field("body", def("Statement")); - def("BreakStatement") - .bases("Statement") - .build("label") - .field("label", or(def("Identifier"), null), defaults["null"]); - def("ContinueStatement") - .bases("Statement") - .build("label") - .field("label", or(def("Identifier"), null), defaults["null"]); - def("WithStatement") - .bases("Statement") - .build("object", "body") - .field("object", def("Expression")) - .field("body", def("Statement")); - def("SwitchStatement") - .bases("Statement") - .build("discriminant", "cases", "lexical") - .field("discriminant", def("Expression")) - .field("cases", [def("SwitchCase")]) - .field("lexical", Boolean, defaults["false"]); - def("ReturnStatement") - .bases("Statement") - .build("argument") - .field("argument", or(def("Expression"), null)); - def("ThrowStatement") - .bases("Statement") - .build("argument") - .field("argument", def("Expression")); - def("TryStatement") - .bases("Statement") - .build("block", "handler", "finalizer") - .field("block", def("BlockStatement")) - .field("handler", or(def("CatchClause"), null), function () { - return this.handlers && this.handlers[0] || null; - }) - .field("handlers", [def("CatchClause")], function () { - return this.handler ? [this.handler] : []; - }, true) // Indicates this field is hidden from eachField iteration. - .field("guardedHandlers", [def("CatchClause")], defaults.emptyArray) - .field("finalizer", or(def("BlockStatement"), null), defaults["null"]); - def("CatchClause") - .bases("Node") - .build("param", "guard", "body") - // https://github.com/tc39/proposal-optional-catch-binding - .field("param", or(def("Pattern"), null), defaults["null"]) - .field("guard", or(def("Expression"), null), defaults["null"]) - .field("body", def("BlockStatement")); - def("WhileStatement") - .bases("Statement") - .build("test", "body") - .field("test", def("Expression")) - .field("body", def("Statement")); - def("DoWhileStatement") - .bases("Statement") - .build("body", "test") - .field("body", def("Statement")) - .field("test", def("Expression")); - def("ForStatement") - .bases("Statement") - .build("init", "test", "update", "body") - .field("init", or(def("VariableDeclaration"), def("Expression"), null)) - .field("test", or(def("Expression"), null)) - .field("update", or(def("Expression"), null)) - .field("body", def("Statement")); - def("ForInStatement") - .bases("Statement") - .build("left", "right", "body") - .field("left", or(def("VariableDeclaration"), def("Expression"))) - .field("right", def("Expression")) - .field("body", def("Statement")); - def("DebuggerStatement").bases("Statement").build(); - def("Declaration").bases("Statement"); - def("FunctionDeclaration") - .bases("Function", "Declaration") - .build("id", "params", "body") - .field("id", def("Identifier")); - def("FunctionExpression") - .bases("Function", "Expression") - .build("id", "params", "body"); - def("VariableDeclaration") - .bases("Declaration") - .build("kind", "declarations") - .field("kind", or("var", "let", "const")) - .field("declarations", [def("VariableDeclarator")]); - def("VariableDeclarator") - .bases("Node") - .build("id", "init") - .field("id", def("Pattern")) - .field("init", or(def("Expression"), null), defaults["null"]); - def("Expression").bases("Node"); - def("ThisExpression").bases("Expression").build(); - def("ArrayExpression") - .bases("Expression") - .build("elements") - .field("elements", [or(def("Expression"), null)]); - def("ObjectExpression") - .bases("Expression") - .build("properties") - .field("properties", [def("Property")]); - // TODO Not in the Mozilla Parser API, but used by Esprima. - def("Property") - .bases("Node") // Want to be able to visit Property Nodes. - .build("kind", "key", "value") - .field("kind", or("init", "get", "set")) - .field("key", or(def("Literal"), def("Identifier"))) - .field("value", def("Expression")); - def("SequenceExpression") - .bases("Expression") - .build("expressions") - .field("expressions", [def("Expression")]); - var UnaryOperator = or("-", "+", "!", "~", "typeof", "void", "delete"); - def("UnaryExpression") - .bases("Expression") - .build("operator", "argument", "prefix") - .field("operator", UnaryOperator) - .field("argument", def("Expression")) - // Esprima doesn't bother with this field, presumably because it's - // always true for unary operators. - .field("prefix", Boolean, defaults["true"]); - var BinaryOperator = or("==", "!=", "===", "!==", "<", "<=", ">", ">=", "<<", ">>", ">>>", "+", "-", "*", "/", "%", "**", "&", // TODO Missing from the Parser API. - "|", "^", "in", "instanceof"); - def("BinaryExpression") - .bases("Expression") - .build("operator", "left", "right") - .field("operator", BinaryOperator) - .field("left", def("Expression")) - .field("right", def("Expression")); - var AssignmentOperator = or("=", "+=", "-=", "*=", "/=", "%=", "<<=", ">>=", ">>>=", "|=", "^=", "&="); - def("AssignmentExpression") - .bases("Expression") - .build("operator", "left", "right") - .field("operator", AssignmentOperator) - .field("left", or(def("Pattern"), def("MemberExpression"))) - .field("right", def("Expression")); - var UpdateOperator = or("++", "--"); - def("UpdateExpression") - .bases("Expression") - .build("operator", "argument", "prefix") - .field("operator", UpdateOperator) - .field("argument", def("Expression")) - .field("prefix", Boolean); - var LogicalOperator = or("||", "&&"); - def("LogicalExpression") - .bases("Expression") - .build("operator", "left", "right") - .field("operator", LogicalOperator) - .field("left", def("Expression")) - .field("right", def("Expression")); - def("ConditionalExpression") - .bases("Expression") - .build("test", "consequent", "alternate") - .field("test", def("Expression")) - .field("consequent", def("Expression")) - .field("alternate", def("Expression")); - def("NewExpression") - .bases("Expression") - .build("callee", "arguments") - .field("callee", def("Expression")) - // The Mozilla Parser API gives this type as [or(def("Expression"), - // null)], but null values don't really make sense at the call site. - // TODO Report this nonsense. - .field("arguments", [def("Expression")]); - def("CallExpression") - .bases("Expression") - .build("callee", "arguments") - .field("callee", def("Expression")) - // See comment for NewExpression above. - .field("arguments", [def("Expression")]); - def("MemberExpression") - .bases("Expression") - .build("object", "property", "computed") - .field("object", def("Expression")) - .field("property", or(def("Identifier"), def("Expression"))) - .field("computed", Boolean, function () { - var type = this.property.type; - if (type === 'Literal' || - type === 'MemberExpression' || - type === 'BinaryExpression') { - return true; - } - return false; - }); - def("Pattern").bases("Node"); - def("SwitchCase") - .bases("Node") - .build("test", "consequent") - .field("test", or(def("Expression"), null)) - .field("consequent", [def("Statement")]); - def("Identifier") - .bases("Expression", "Pattern") - .build("name") - .field("name", String) - .field("optional", Boolean, defaults["false"]); - def("Literal") - .bases("Expression") - .build("value") - .field("value", or(String, Boolean, null, Number, RegExp)) - .field("regex", or({ - pattern: String, - flags: String - }, null), function () { - if (this.value instanceof RegExp) { - var flags = ""; - if (this.value.ignoreCase) - flags += "i"; - if (this.value.multiline) - flags += "m"; - if (this.value.global) - flags += "g"; - return { - pattern: this.value.source, - flags: flags - }; - } - return null; - }); - // Abstract (non-buildable) comment supertype. Not a Node. - def("Comment") - .bases("Printable") - .field("value", String) - // A .leading comment comes before the node, whereas a .trailing - // comment comes after it. These two fields should not both be true, - // but they might both be false when the comment falls inside a node - // and the node has no children for the comment to lead or trail, - // e.g. { /*dangling*/ }. - .field("leading", Boolean, defaults["true"]) - .field("trailing", Boolean, defaults["false"]); -} -exports.default = default_1; -module.exports = exports["default"]; - - -/***/ }), - -/***/ 32207: -/***/ ((module, exports, __nccwpck_require__) => { - -"use strict"; -; -Object.defineProperty(exports, "__esModule", ({ value: true })); -var tslib_1 = __nccwpck_require__(4351); -var types_1 = tslib_1.__importDefault(__nccwpck_require__(52619)); -var shared_1 = tslib_1.__importDefault(__nccwpck_require__(34631)); -var core_1 = tslib_1.__importDefault(__nccwpck_require__(66604)); -function default_1(fork) { - fork.use(core_1.default); - var types = fork.use(types_1.default); - var Type = types.Type; - var def = types.Type.def; - var or = Type.or; - var shared = fork.use(shared_1.default); - var defaults = shared.defaults; - // https://github.com/tc39/proposal-optional-chaining - // `a?.b` as per https://github.com/estree/estree/issues/146 - def("OptionalMemberExpression") - .bases("MemberExpression") - .build("object", "property", "computed", "optional") - .field("optional", Boolean, defaults["true"]); - // a?.b() - def("OptionalCallExpression") - .bases("CallExpression") - .build("callee", "arguments", "optional") - .field("optional", Boolean, defaults["true"]); - // https://github.com/tc39/proposal-nullish-coalescing - // `a ?? b` as per https://github.com/babel/babylon/pull/761/files - var LogicalOperator = or("||", "&&", "??"); - def("LogicalExpression") - .field("operator", LogicalOperator); -} -exports.default = default_1; -module.exports = exports["default"]; - - -/***/ }), - -/***/ 48975: -/***/ ((module, exports, __nccwpck_require__) => { - -"use strict"; -; -Object.defineProperty(exports, "__esModule", ({ value: true })); -var tslib_1 = __nccwpck_require__(4351); -var es7_1 = tslib_1.__importDefault(__nccwpck_require__(75351)); -var types_1 = tslib_1.__importDefault(__nccwpck_require__(52619)); -function default_1(fork) { - fork.use(es7_1.default); - var types = fork.use(types_1.default); - var def = types.Type.def; - def("ImportExpression") - .bases("Expression") - .build("source") - .field("source", def("Expression")); -} -exports.default = default_1; -module.exports = exports["default"]; - - -/***/ }), - -/***/ 68127: -/***/ ((module, exports, __nccwpck_require__) => { - -"use strict"; -; -Object.defineProperty(exports, "__esModule", ({ value: true })); -var tslib_1 = __nccwpck_require__(4351); -var core_1 = tslib_1.__importDefault(__nccwpck_require__(66604)); -var types_1 = tslib_1.__importDefault(__nccwpck_require__(52619)); -var shared_1 = tslib_1.__importDefault(__nccwpck_require__(34631)); -function default_1(fork) { - fork.use(core_1.default); - var types = fork.use(types_1.default); - var def = types.Type.def; - var or = types.Type.or; - var defaults = fork.use(shared_1.default).defaults; - def("Function") - .field("generator", Boolean, defaults["false"]) - .field("expression", Boolean, defaults["false"]) - .field("defaults", [or(def("Expression"), null)], defaults.emptyArray) - // TODO This could be represented as a RestElement in .params. - .field("rest", or(def("Identifier"), null), defaults["null"]); - // The ESTree way of representing a ...rest parameter. - def("RestElement") - .bases("Pattern") - .build("argument") - .field("argument", def("Pattern")) - .field("typeAnnotation", // for Babylon. Flow parser puts it on the identifier - or(def("TypeAnnotation"), def("TSTypeAnnotation"), null), defaults["null"]); - def("SpreadElementPattern") - .bases("Pattern") - .build("argument") - .field("argument", def("Pattern")); - def("FunctionDeclaration") - .build("id", "params", "body", "generator", "expression"); - def("FunctionExpression") - .build("id", "params", "body", "generator", "expression"); - // The Parser API calls this ArrowExpression, but Esprima and all other - // actual parsers use ArrowFunctionExpression. - def("ArrowFunctionExpression") - .bases("Function", "Expression") - .build("params", "body", "expression") - // The forced null value here is compatible with the overridden - // definition of the "id" field in the Function interface. - .field("id", null, defaults["null"]) - // Arrow function bodies are allowed to be expressions. - .field("body", or(def("BlockStatement"), def("Expression"))) - // The current spec forbids arrow generators, so I have taken the - // liberty of enforcing that. TODO Report this. - .field("generator", false, defaults["false"]); - def("ForOfStatement") - .bases("Statement") - .build("left", "right", "body") - .field("left", or(def("VariableDeclaration"), def("Pattern"))) - .field("right", def("Expression")) - .field("body", def("Statement")); - def("YieldExpression") - .bases("Expression") - .build("argument", "delegate") - .field("argument", or(def("Expression"), null)) - .field("delegate", Boolean, defaults["false"]); - def("GeneratorExpression") - .bases("Expression") - .build("body", "blocks", "filter") - .field("body", def("Expression")) - .field("blocks", [def("ComprehensionBlock")]) - .field("filter", or(def("Expression"), null)); - def("ComprehensionExpression") - .bases("Expression") - .build("body", "blocks", "filter") - .field("body", def("Expression")) - .field("blocks", [def("ComprehensionBlock")]) - .field("filter", or(def("Expression"), null)); - def("ComprehensionBlock") - .bases("Node") - .build("left", "right", "each") - .field("left", def("Pattern")) - .field("right", def("Expression")) - .field("each", Boolean); - def("Property") - .field("key", or(def("Literal"), def("Identifier"), def("Expression"))) - .field("value", or(def("Expression"), def("Pattern"))) - .field("method", Boolean, defaults["false"]) - .field("shorthand", Boolean, defaults["false"]) - .field("computed", Boolean, defaults["false"]); - def("ObjectProperty") - .field("shorthand", Boolean, defaults["false"]); - def("PropertyPattern") - .bases("Pattern") - .build("key", "pattern") - .field("key", or(def("Literal"), def("Identifier"), def("Expression"))) - .field("pattern", def("Pattern")) - .field("computed", Boolean, defaults["false"]); - def("ObjectPattern") - .bases("Pattern") - .build("properties") - .field("properties", [or(def("PropertyPattern"), def("Property"))]); - def("ArrayPattern") - .bases("Pattern") - .build("elements") - .field("elements", [or(def("Pattern"), null)]); - def("MethodDefinition") - .bases("Declaration") - .build("kind", "key", "value", "static") - .field("kind", or("constructor", "method", "get", "set")) - .field("key", def("Expression")) - .field("value", def("Function")) - .field("computed", Boolean, defaults["false"]) - .field("static", Boolean, defaults["false"]); - def("SpreadElement") - .bases("Node") - .build("argument") - .field("argument", def("Expression")); - def("ArrayExpression") - .field("elements", [or(def("Expression"), def("SpreadElement"), def("RestElement"), null)]); - def("NewExpression") - .field("arguments", [or(def("Expression"), def("SpreadElement"))]); - def("CallExpression") - .field("arguments", [or(def("Expression"), def("SpreadElement"))]); - // Note: this node type is *not* an AssignmentExpression with a Pattern on - // the left-hand side! The existing AssignmentExpression type already - // supports destructuring assignments. AssignmentPattern nodes may appear - // wherever a Pattern is allowed, and the right-hand side represents a - // default value to be destructured against the left-hand side, if no - // value is otherwise provided. For example: default parameter values. - def("AssignmentPattern") - .bases("Pattern") - .build("left", "right") - .field("left", def("Pattern")) - .field("right", def("Expression")); - var ClassBodyElement = or(def("MethodDefinition"), def("VariableDeclarator"), def("ClassPropertyDefinition"), def("ClassProperty")); - def("ClassProperty") - .bases("Declaration") - .build("key") - .field("key", or(def("Literal"), def("Identifier"), def("Expression"))) - .field("computed", Boolean, defaults["false"]); - def("ClassPropertyDefinition") // static property - .bases("Declaration") - .build("definition") - // Yes, Virginia, circular definitions are permitted. - .field("definition", ClassBodyElement); - def("ClassBody") - .bases("Declaration") - .build("body") - .field("body", [ClassBodyElement]); - def("ClassDeclaration") - .bases("Declaration") - .build("id", "body", "superClass") - .field("id", or(def("Identifier"), null)) - .field("body", def("ClassBody")) - .field("superClass", or(def("Expression"), null), defaults["null"]); - def("ClassExpression") - .bases("Expression") - .build("id", "body", "superClass") - .field("id", or(def("Identifier"), null), defaults["null"]) - .field("body", def("ClassBody")) - .field("superClass", or(def("Expression"), null), defaults["null"]); - // Specifier and ModuleSpecifier are abstract non-standard types - // introduced for definitional convenience. - def("Specifier").bases("Node"); - // This supertype is shared/abused by both def/babel.js and - // def/esprima.js. In the future, it will be possible to load only one set - // of definitions appropriate for a given parser, but until then we must - // rely on default functions to reconcile the conflicting AST formats. - def("ModuleSpecifier") - .bases("Specifier") - // This local field is used by Babel/Acorn. It should not technically - // be optional in the Babel/Acorn AST format, but it must be optional - // in the Esprima AST format. - .field("local", or(def("Identifier"), null), defaults["null"]) - // The id and name fields are used by Esprima. The id field should not - // technically be optional in the Esprima AST format, but it must be - // optional in the Babel/Acorn AST format. - .field("id", or(def("Identifier"), null), defaults["null"]) - .field("name", or(def("Identifier"), null), defaults["null"]); - // Like ModuleSpecifier, except type:"ImportSpecifier" and buildable. - // import {} from ...; - def("ImportSpecifier") - .bases("ModuleSpecifier") - .build("id", "name"); - // import <* as id> from ...; - def("ImportNamespaceSpecifier") - .bases("ModuleSpecifier") - .build("id"); - // import from ...; - def("ImportDefaultSpecifier") - .bases("ModuleSpecifier") - .build("id"); - def("ImportDeclaration") - .bases("Declaration") - .build("specifiers", "source", "importKind") - .field("specifiers", [or(def("ImportSpecifier"), def("ImportNamespaceSpecifier"), def("ImportDefaultSpecifier"))], defaults.emptyArray) - .field("source", def("Literal")) - .field("importKind", or("value", "type"), function () { - return "value"; - }); - def("TaggedTemplateExpression") - .bases("Expression") - .build("tag", "quasi") - .field("tag", def("Expression")) - .field("quasi", def("TemplateLiteral")); - def("TemplateLiteral") - .bases("Expression") - .build("quasis", "expressions") - .field("quasis", [def("TemplateElement")]) - .field("expressions", [def("Expression")]); - def("TemplateElement") - .bases("Node") - .build("value", "tail") - .field("value", { "cooked": String, "raw": String }) - .field("tail", Boolean); -} -exports.default = default_1; -module.exports = exports["default"]; - - -/***/ }), - -/***/ 75351: -/***/ ((module, exports, __nccwpck_require__) => { - -"use strict"; -; -Object.defineProperty(exports, "__esModule", ({ value: true })); -var tslib_1 = __nccwpck_require__(4351); -var es6_1 = tslib_1.__importDefault(__nccwpck_require__(68127)); -var types_1 = tslib_1.__importDefault(__nccwpck_require__(52619)); -var shared_1 = tslib_1.__importDefault(__nccwpck_require__(34631)); -function default_1(fork) { - fork.use(es6_1.default); - var types = fork.use(types_1.default); - var def = types.Type.def; - var or = types.Type.or; - var defaults = fork.use(shared_1.default).defaults; - def("Function") - .field("async", Boolean, defaults["false"]); - def("SpreadProperty") - .bases("Node") - .build("argument") - .field("argument", def("Expression")); - def("ObjectExpression") - .field("properties", [or(def("Property"), def("SpreadProperty"), def("SpreadElement"))]); - def("SpreadPropertyPattern") - .bases("Pattern") - .build("argument") - .field("argument", def("Pattern")); - def("ObjectPattern") - .field("properties", [or(def("Property"), def("PropertyPattern"), def("SpreadPropertyPattern"))]); - def("AwaitExpression") - .bases("Expression") - .build("argument", "all") - .field("argument", or(def("Expression"), null)) - .field("all", Boolean, defaults["false"]); -} -exports.default = default_1; -module.exports = exports["default"]; - - -/***/ }), - -/***/ 96817: -/***/ ((module, exports, __nccwpck_require__) => { - -"use strict"; -; -Object.defineProperty(exports, "__esModule", ({ value: true })); -var tslib_1 = __nccwpck_require__(4351); -var es7_1 = tslib_1.__importDefault(__nccwpck_require__(75351)); -var types_1 = tslib_1.__importDefault(__nccwpck_require__(52619)); -var shared_1 = tslib_1.__importDefault(__nccwpck_require__(34631)); -function default_1(fork) { - fork.use(es7_1.default); - var types = fork.use(types_1.default); - var defaults = fork.use(shared_1.default).defaults; - var def = types.Type.def; - var or = types.Type.or; - def("VariableDeclaration") - .field("declarations", [or(def("VariableDeclarator"), def("Identifier") // Esprima deviation. - )]); - def("Property") - .field("value", or(def("Expression"), def("Pattern") // Esprima deviation. - )); - def("ArrayPattern") - .field("elements", [or(def("Pattern"), def("SpreadElement"), null)]); - def("ObjectPattern") - .field("properties", [or(def("Property"), def("PropertyPattern"), def("SpreadPropertyPattern"), def("SpreadProperty") // Used by Esprima. - )]); - // Like ModuleSpecifier, except type:"ExportSpecifier" and buildable. - // export {} [from ...]; - def("ExportSpecifier") - .bases("ModuleSpecifier") - .build("id", "name"); - // export <*> from ...; - def("ExportBatchSpecifier") - .bases("Specifier") - .build(); - def("ExportDeclaration") - .bases("Declaration") - .build("default", "declaration", "specifiers", "source") - .field("default", Boolean) - .field("declaration", or(def("Declaration"), def("Expression"), // Implies default. - null)) - .field("specifiers", [or(def("ExportSpecifier"), def("ExportBatchSpecifier"))], defaults.emptyArray) - .field("source", or(def("Literal"), null), defaults["null"]); - def("Block") - .bases("Comment") - .build("value", /*optional:*/ "leading", "trailing"); - def("Line") - .bases("Comment") - .build("value", /*optional:*/ "leading", "trailing"); -} -exports.default = default_1; -module.exports = exports["default"]; - - -/***/ }), - -/***/ 60368: -/***/ ((module, exports, __nccwpck_require__) => { - -"use strict"; -; -Object.defineProperty(exports, "__esModule", ({ value: true })); -var tslib_1 = __nccwpck_require__(4351); -var es7_1 = tslib_1.__importDefault(__nccwpck_require__(75351)); -var type_annotations_1 = tslib_1.__importDefault(__nccwpck_require__(86278)); -var types_1 = tslib_1.__importDefault(__nccwpck_require__(52619)); -var shared_1 = tslib_1.__importDefault(__nccwpck_require__(34631)); -function default_1(fork) { - fork.use(es7_1.default); - fork.use(type_annotations_1.default); - var types = fork.use(types_1.default); - var def = types.Type.def; - var or = types.Type.or; - var defaults = fork.use(shared_1.default).defaults; - // Base types - def("Flow").bases("Node"); - def("FlowType").bases("Flow"); - // Type annotations - def("AnyTypeAnnotation") - .bases("FlowType") - .build(); - def("EmptyTypeAnnotation") - .bases("FlowType") - .build(); - def("MixedTypeAnnotation") - .bases("FlowType") - .build(); - def("VoidTypeAnnotation") - .bases("FlowType") - .build(); - def("NumberTypeAnnotation") - .bases("FlowType") - .build(); - def("NumberLiteralTypeAnnotation") - .bases("FlowType") - .build("value", "raw") - .field("value", Number) - .field("raw", String); - // Babylon 6 differs in AST from Flow - // same as NumberLiteralTypeAnnotation - def("NumericLiteralTypeAnnotation") - .bases("FlowType") - .build("value", "raw") - .field("value", Number) - .field("raw", String); - def("StringTypeAnnotation") - .bases("FlowType") - .build(); - def("StringLiteralTypeAnnotation") - .bases("FlowType") - .build("value", "raw") - .field("value", String) - .field("raw", String); - def("BooleanTypeAnnotation") - .bases("FlowType") - .build(); - def("BooleanLiteralTypeAnnotation") - .bases("FlowType") - .build("value", "raw") - .field("value", Boolean) - .field("raw", String); - def("TypeAnnotation") - .bases("Node") - .build("typeAnnotation") - .field("typeAnnotation", def("FlowType")); - def("NullableTypeAnnotation") - .bases("FlowType") - .build("typeAnnotation") - .field("typeAnnotation", def("FlowType")); - def("NullLiteralTypeAnnotation") - .bases("FlowType") - .build(); - def("NullTypeAnnotation") - .bases("FlowType") - .build(); - def("ThisTypeAnnotation") - .bases("FlowType") - .build(); - def("ExistsTypeAnnotation") - .bases("FlowType") - .build(); - def("ExistentialTypeParam") - .bases("FlowType") - .build(); - def("FunctionTypeAnnotation") - .bases("FlowType") - .build("params", "returnType", "rest", "typeParameters") - .field("params", [def("FunctionTypeParam")]) - .field("returnType", def("FlowType")) - .field("rest", or(def("FunctionTypeParam"), null)) - .field("typeParameters", or(def("TypeParameterDeclaration"), null)); - def("FunctionTypeParam") - .bases("Node") - .build("name", "typeAnnotation", "optional") - .field("name", def("Identifier")) - .field("typeAnnotation", def("FlowType")) - .field("optional", Boolean); - def("ArrayTypeAnnotation") - .bases("FlowType") - .build("elementType") - .field("elementType", def("FlowType")); - def("ObjectTypeAnnotation") - .bases("FlowType") - .build("properties", "indexers", "callProperties") - .field("properties", [ - or(def("ObjectTypeProperty"), def("ObjectTypeSpreadProperty")) - ]) - .field("indexers", [def("ObjectTypeIndexer")], defaults.emptyArray) - .field("callProperties", [def("ObjectTypeCallProperty")], defaults.emptyArray) - .field("inexact", or(Boolean, void 0), defaults["undefined"]) - .field("exact", Boolean, defaults["false"]) - .field("internalSlots", [def("ObjectTypeInternalSlot")], defaults.emptyArray); - def("Variance") - .bases("Node") - .build("kind") - .field("kind", or("plus", "minus")); - var LegacyVariance = or(def("Variance"), "plus", "minus", null); - def("ObjectTypeProperty") - .bases("Node") - .build("key", "value", "optional") - .field("key", or(def("Literal"), def("Identifier"))) - .field("value", def("FlowType")) - .field("optional", Boolean) - .field("variance", LegacyVariance, defaults["null"]); - def("ObjectTypeIndexer") - .bases("Node") - .build("id", "key", "value") - .field("id", def("Identifier")) - .field("key", def("FlowType")) - .field("value", def("FlowType")) - .field("variance", LegacyVariance, defaults["null"]); - def("ObjectTypeCallProperty") - .bases("Node") - .build("value") - .field("value", def("FunctionTypeAnnotation")) - .field("static", Boolean, defaults["false"]); - def("QualifiedTypeIdentifier") - .bases("Node") - .build("qualification", "id") - .field("qualification", or(def("Identifier"), def("QualifiedTypeIdentifier"))) - .field("id", def("Identifier")); - def("GenericTypeAnnotation") - .bases("FlowType") - .build("id", "typeParameters") - .field("id", or(def("Identifier"), def("QualifiedTypeIdentifier"))) - .field("typeParameters", or(def("TypeParameterInstantiation"), null)); - def("MemberTypeAnnotation") - .bases("FlowType") - .build("object", "property") - .field("object", def("Identifier")) - .field("property", or(def("MemberTypeAnnotation"), def("GenericTypeAnnotation"))); - def("UnionTypeAnnotation") - .bases("FlowType") - .build("types") - .field("types", [def("FlowType")]); - def("IntersectionTypeAnnotation") - .bases("FlowType") - .build("types") - .field("types", [def("FlowType")]); - def("TypeofTypeAnnotation") - .bases("FlowType") - .build("argument") - .field("argument", def("FlowType")); - def("ObjectTypeSpreadProperty") - .bases("Node") - .build("argument") - .field("argument", def("FlowType")); - def("ObjectTypeInternalSlot") - .bases("Node") - .build("id", "value", "optional", "static", "method") - .field("id", def("Identifier")) - .field("value", def("FlowType")) - .field("optional", Boolean) - .field("static", Boolean) - .field("method", Boolean); - def("TypeParameterDeclaration") - .bases("Node") - .build("params") - .field("params", [def("TypeParameter")]); - def("TypeParameterInstantiation") - .bases("Node") - .build("params") - .field("params", [def("FlowType")]); - def("TypeParameter") - .bases("FlowType") - .build("name", "variance", "bound") - .field("name", String) - .field("variance", LegacyVariance, defaults["null"]) - .field("bound", or(def("TypeAnnotation"), null), defaults["null"]); - def("ClassProperty") - .field("variance", LegacyVariance, defaults["null"]); - def("ClassImplements") - .bases("Node") - .build("id") - .field("id", def("Identifier")) - .field("superClass", or(def("Expression"), null), defaults["null"]) - .field("typeParameters", or(def("TypeParameterInstantiation"), null), defaults["null"]); - def("InterfaceTypeAnnotation") - .bases("FlowType") - .build("body", "extends") - .field("body", def("ObjectTypeAnnotation")) - .field("extends", or([def("InterfaceExtends")], null), defaults["null"]); - def("InterfaceDeclaration") - .bases("Declaration") - .build("id", "body", "extends") - .field("id", def("Identifier")) - .field("typeParameters", or(def("TypeParameterDeclaration"), null), defaults["null"]) - .field("body", def("ObjectTypeAnnotation")) - .field("extends", [def("InterfaceExtends")]); - def("DeclareInterface") - .bases("InterfaceDeclaration") - .build("id", "body", "extends"); - def("InterfaceExtends") - .bases("Node") - .build("id") - .field("id", def("Identifier")) - .field("typeParameters", or(def("TypeParameterInstantiation"), null), defaults["null"]); - def("TypeAlias") - .bases("Declaration") - .build("id", "typeParameters", "right") - .field("id", def("Identifier")) - .field("typeParameters", or(def("TypeParameterDeclaration"), null)) - .field("right", def("FlowType")); - def("OpaqueType") - .bases("Declaration") - .build("id", "typeParameters", "impltype", "supertype") - .field("id", def("Identifier")) - .field("typeParameters", or(def("TypeParameterDeclaration"), null)) - .field("impltype", def("FlowType")) - .field("supertype", def("FlowType")); - def("DeclareTypeAlias") - .bases("TypeAlias") - .build("id", "typeParameters", "right"); - def("DeclareOpaqueType") - .bases("TypeAlias") - .build("id", "typeParameters", "supertype"); - def("TypeCastExpression") - .bases("Expression") - .build("expression", "typeAnnotation") - .field("expression", def("Expression")) - .field("typeAnnotation", def("TypeAnnotation")); - def("TupleTypeAnnotation") - .bases("FlowType") - .build("types") - .field("types", [def("FlowType")]); - def("DeclareVariable") - .bases("Statement") - .build("id") - .field("id", def("Identifier")); - def("DeclareFunction") - .bases("Statement") - .build("id") - .field("id", def("Identifier")); - def("DeclareClass") - .bases("InterfaceDeclaration") - .build("id"); - def("DeclareModule") - .bases("Statement") - .build("id", "body") - .field("id", or(def("Identifier"), def("Literal"))) - .field("body", def("BlockStatement")); - def("DeclareModuleExports") - .bases("Statement") - .build("typeAnnotation") - .field("typeAnnotation", def("TypeAnnotation")); - def("DeclareExportDeclaration") - .bases("Declaration") - .build("default", "declaration", "specifiers", "source") - .field("default", Boolean) - .field("declaration", or(def("DeclareVariable"), def("DeclareFunction"), def("DeclareClass"), def("FlowType"), // Implies default. - null)) - .field("specifiers", [or(def("ExportSpecifier"), def("ExportBatchSpecifier"))], defaults.emptyArray) - .field("source", or(def("Literal"), null), defaults["null"]); - def("DeclareExportAllDeclaration") - .bases("Declaration") - .build("source") - .field("source", or(def("Literal"), null), defaults["null"]); - def("FlowPredicate").bases("Flow"); - def("InferredPredicate") - .bases("FlowPredicate") - .build(); - def("DeclaredPredicate") - .bases("FlowPredicate") - .build("value") - .field("value", def("Expression")); - def("CallExpression") - .field("typeArguments", or(null, def("TypeParameterInstantiation")), defaults["null"]); - def("NewExpression") - .field("typeArguments", or(null, def("TypeParameterInstantiation")), defaults["null"]); -} -exports.default = default_1; -module.exports = exports["default"]; - - -/***/ }), - -/***/ 27572: -/***/ ((module, exports, __nccwpck_require__) => { - -"use strict"; -; -Object.defineProperty(exports, "__esModule", ({ value: true })); -var tslib_1 = __nccwpck_require__(4351); -var es7_1 = tslib_1.__importDefault(__nccwpck_require__(75351)); -var types_1 = tslib_1.__importDefault(__nccwpck_require__(52619)); -var shared_1 = tslib_1.__importDefault(__nccwpck_require__(34631)); -function default_1(fork) { - fork.use(es7_1.default); - var types = fork.use(types_1.default); - var def = types.Type.def; - var or = types.Type.or; - var defaults = fork.use(shared_1.default).defaults; - def("JSXAttribute") - .bases("Node") - .build("name", "value") - .field("name", or(def("JSXIdentifier"), def("JSXNamespacedName"))) - .field("value", or(def("Literal"), // attr="value" - def("JSXExpressionContainer"), // attr={value} - null // attr= or just attr - ), defaults["null"]); - def("JSXIdentifier") - .bases("Identifier") - .build("name") - .field("name", String); - def("JSXNamespacedName") - .bases("Node") - .build("namespace", "name") - .field("namespace", def("JSXIdentifier")) - .field("name", def("JSXIdentifier")); - def("JSXMemberExpression") - .bases("MemberExpression") - .build("object", "property") - .field("object", or(def("JSXIdentifier"), def("JSXMemberExpression"))) - .field("property", def("JSXIdentifier")) - .field("computed", Boolean, defaults.false); - var JSXElementName = or(def("JSXIdentifier"), def("JSXNamespacedName"), def("JSXMemberExpression")); - def("JSXSpreadAttribute") - .bases("Node") - .build("argument") - .field("argument", def("Expression")); - var JSXAttributes = [or(def("JSXAttribute"), def("JSXSpreadAttribute"))]; - def("JSXExpressionContainer") - .bases("Expression") - .build("expression") - .field("expression", def("Expression")); - def("JSXElement") - .bases("Expression") - .build("openingElement", "closingElement", "children") - .field("openingElement", def("JSXOpeningElement")) - .field("closingElement", or(def("JSXClosingElement"), null), defaults["null"]) - .field("children", [or(def("JSXElement"), def("JSXExpressionContainer"), def("JSXFragment"), def("JSXText"), def("Literal") // TODO Esprima should return JSXText instead. - )], defaults.emptyArray) - .field("name", JSXElementName, function () { - // Little-known fact: the `this` object inside a default function - // is none other than the partially-built object itself, and any - // fields initialized directly from builder function arguments - // (like openingElement, closingElement, and children) are - // guaranteed to be available. - return this.openingElement.name; - }, true) // hidden from traversal - .field("selfClosing", Boolean, function () { - return this.openingElement.selfClosing; - }, true) // hidden from traversal - .field("attributes", JSXAttributes, function () { - return this.openingElement.attributes; - }, true); // hidden from traversal - def("JSXOpeningElement") - .bases("Node") // TODO Does this make sense? Can't really be an JSXElement. - .build("name", "attributes", "selfClosing") - .field("name", JSXElementName) - .field("attributes", JSXAttributes, defaults.emptyArray) - .field("selfClosing", Boolean, defaults["false"]); - def("JSXClosingElement") - .bases("Node") // TODO Same concern. - .build("name") - .field("name", JSXElementName); - def("JSXFragment") - .bases("Expression") - .build("openingElement", "closingElement", "children") - .field("openingElement", def("JSXOpeningFragment")) - .field("closingElement", def("JSXClosingFragment")) - .field("children", [or(def("JSXElement"), def("JSXExpressionContainer"), def("JSXFragment"), def("JSXText"), def("Literal") // TODO Esprima should return JSXText instead. - )], defaults.emptyArray); - def("JSXOpeningFragment") - .bases("Node") // TODO Same concern. - .build(); - def("JSXClosingFragment") - .bases("Node") // TODO Same concern. - .build(); - def("JSXText") - .bases("Literal") - .build("value") - .field("value", String); - def("JSXEmptyExpression").bases("Expression").build(); - // This PR has caused many people issues, but supporting it seems like a - // good idea anyway: https://github.com/babel/babel/pull/4988 - def("JSXSpreadChild") - .bases("Expression") - .build("expression") - .field("expression", def("Expression")); -} -exports.default = default_1; -module.exports = exports["default"]; - - -/***/ }), - -/***/ 86278: -/***/ ((module, exports, __nccwpck_require__) => { - -"use strict"; -; -/** - * Type annotation defs shared between Flow and TypeScript. - * These defs could not be defined in ./flow.ts or ./typescript.ts directly - * because they use the same name. - */ -Object.defineProperty(exports, "__esModule", ({ value: true })); -var tslib_1 = __nccwpck_require__(4351); -var types_1 = tslib_1.__importDefault(__nccwpck_require__(52619)); -var shared_1 = tslib_1.__importDefault(__nccwpck_require__(34631)); -function default_1(fork) { - var types = fork.use(types_1.default); - var def = types.Type.def; - var or = types.Type.or; - var defaults = fork.use(shared_1.default).defaults; - var TypeAnnotation = or(def("TypeAnnotation"), def("TSTypeAnnotation"), null); - var TypeParamDecl = or(def("TypeParameterDeclaration"), def("TSTypeParameterDeclaration"), null); - def("Identifier") - .field("typeAnnotation", TypeAnnotation, defaults["null"]); - def("ObjectPattern") - .field("typeAnnotation", TypeAnnotation, defaults["null"]); - def("Function") - .field("returnType", TypeAnnotation, defaults["null"]) - .field("typeParameters", TypeParamDecl, defaults["null"]); - def("ClassProperty") - .build("key", "value", "typeAnnotation", "static") - .field("value", or(def("Expression"), null)) - .field("static", Boolean, defaults["false"]) - .field("typeAnnotation", TypeAnnotation, defaults["null"]); - ["ClassDeclaration", - "ClassExpression", - ].forEach(function (typeName) { - def(typeName) - .field("typeParameters", TypeParamDecl, defaults["null"]) - .field("superTypeParameters", or(def("TypeParameterInstantiation"), def("TSTypeParameterInstantiation"), null), defaults["null"]) - .field("implements", or([def("ClassImplements")], [def("TSExpressionWithTypeArguments")]), defaults.emptyArray); - }); -} -exports.default = default_1; -module.exports = exports["default"]; - - -/***/ }), - -/***/ 16743: -/***/ ((module, exports, __nccwpck_require__) => { - -"use strict"; -; -Object.defineProperty(exports, "__esModule", ({ value: true })); -var tslib_1 = __nccwpck_require__(4351); -var babel_core_1 = tslib_1.__importDefault(__nccwpck_require__(55382)); -var type_annotations_1 = tslib_1.__importDefault(__nccwpck_require__(86278)); -var types_1 = tslib_1.__importDefault(__nccwpck_require__(52619)); -var shared_1 = tslib_1.__importDefault(__nccwpck_require__(34631)); -function default_1(fork) { - // Since TypeScript is parsed by Babylon, include the core Babylon types - // but omit the Flow-related types. - fork.use(babel_core_1.default); - fork.use(type_annotations_1.default); - var types = fork.use(types_1.default); - var n = types.namedTypes; - var def = types.Type.def; - var or = types.Type.or; - var defaults = fork.use(shared_1.default).defaults; - var StringLiteral = types.Type.from(function (value, deep) { - if (n.StringLiteral && - n.StringLiteral.check(value, deep)) { - return true; - } - if (n.Literal && - n.Literal.check(value, deep) && - typeof value.value === "string") { - return true; - } - return false; - }, "StringLiteral"); - def("TSType") - .bases("Node"); - var TSEntityName = or(def("Identifier"), def("TSQualifiedName")); - def("TSTypeReference") - .bases("TSType", "TSHasOptionalTypeParameterInstantiation") - .build("typeName", "typeParameters") - .field("typeName", TSEntityName); - // An abstract (non-buildable) base type that provide a commonly-needed - // optional .typeParameters field. - def("TSHasOptionalTypeParameterInstantiation") - .field("typeParameters", or(def("TSTypeParameterInstantiation"), null), defaults["null"]); - // An abstract (non-buildable) base type that provide a commonly-needed - // optional .typeParameters field. - def("TSHasOptionalTypeParameters") - .field("typeParameters", or(def("TSTypeParameterDeclaration"), null, void 0), defaults["null"]); - // An abstract (non-buildable) base type that provide a commonly-needed - // optional .typeAnnotation field. - def("TSHasOptionalTypeAnnotation") - .field("typeAnnotation", or(def("TSTypeAnnotation"), null), defaults["null"]); - def("TSQualifiedName") - .bases("Node") - .build("left", "right") - .field("left", TSEntityName) - .field("right", TSEntityName); - def("TSAsExpression") - .bases("Expression", "Pattern") - .build("expression", "typeAnnotation") - .field("expression", def("Expression")) - .field("typeAnnotation", def("TSType")) - .field("extra", or({ parenthesized: Boolean }, null), defaults["null"]); - def("TSNonNullExpression") - .bases("Expression", "Pattern") - .build("expression") - .field("expression", def("Expression")); - [ - "TSAnyKeyword", - "TSBigIntKeyword", - "TSBooleanKeyword", - "TSNeverKeyword", - "TSNullKeyword", - "TSNumberKeyword", - "TSObjectKeyword", - "TSStringKeyword", - "TSSymbolKeyword", - "TSUndefinedKeyword", - "TSUnknownKeyword", - "TSVoidKeyword", - "TSThisType", - ].forEach(function (keywordType) { - def(keywordType) - .bases("TSType") - .build(); - }); - def("TSArrayType") - .bases("TSType") - .build("elementType") - .field("elementType", def("TSType")); - def("TSLiteralType") - .bases("TSType") - .build("literal") - .field("literal", or(def("NumericLiteral"), def("StringLiteral"), def("BooleanLiteral"), def("TemplateLiteral"), def("UnaryExpression"))); - ["TSUnionType", - "TSIntersectionType", - ].forEach(function (typeName) { - def(typeName) - .bases("TSType") - .build("types") - .field("types", [def("TSType")]); - }); - def("TSConditionalType") - .bases("TSType") - .build("checkType", "extendsType", "trueType", "falseType") - .field("checkType", def("TSType")) - .field("extendsType", def("TSType")) - .field("trueType", def("TSType")) - .field("falseType", def("TSType")); - def("TSInferType") - .bases("TSType") - .build("typeParameter") - .field("typeParameter", def("TSTypeParameter")); - def("TSParenthesizedType") - .bases("TSType") - .build("typeAnnotation") - .field("typeAnnotation", def("TSType")); - var ParametersType = [or(def("Identifier"), def("RestElement"), def("ArrayPattern"), def("ObjectPattern"))]; - ["TSFunctionType", - "TSConstructorType", - ].forEach(function (typeName) { - def(typeName) - .bases("TSType", "TSHasOptionalTypeParameters", "TSHasOptionalTypeAnnotation") - .build("parameters") - .field("parameters", ParametersType); - }); - def("TSDeclareFunction") - .bases("Declaration", "TSHasOptionalTypeParameters") - .build("id", "params", "returnType") - .field("declare", Boolean, defaults["false"]) - .field("async", Boolean, defaults["false"]) - .field("generator", Boolean, defaults["false"]) - .field("id", or(def("Identifier"), null), defaults["null"]) - .field("params", [def("Pattern")]) - // tSFunctionTypeAnnotationCommon - .field("returnType", or(def("TSTypeAnnotation"), def("Noop"), // Still used? - null), defaults["null"]); - def("TSDeclareMethod") - .bases("Declaration", "TSHasOptionalTypeParameters") - .build("key", "params", "returnType") - .field("async", Boolean, defaults["false"]) - .field("generator", Boolean, defaults["false"]) - .field("params", [def("Pattern")]) - // classMethodOrPropertyCommon - .field("abstract", Boolean, defaults["false"]) - .field("accessibility", or("public", "private", "protected", void 0), defaults["undefined"]) - .field("static", Boolean, defaults["false"]) - .field("computed", Boolean, defaults["false"]) - .field("optional", Boolean, defaults["false"]) - .field("key", or(def("Identifier"), def("StringLiteral"), def("NumericLiteral"), - // Only allowed if .computed is true. - def("Expression"))) - // classMethodOrDeclareMethodCommon - .field("kind", or("get", "set", "method", "constructor"), function getDefault() { return "method"; }) - .field("access", // Not "accessibility"? - or("public", "private", "protected", void 0), defaults["undefined"]) - .field("decorators", or([def("Decorator")], null), defaults["null"]) - // tSFunctionTypeAnnotationCommon - .field("returnType", or(def("TSTypeAnnotation"), def("Noop"), // Still used? - null), defaults["null"]); - def("TSMappedType") - .bases("TSType") - .build("typeParameter", "typeAnnotation") - .field("readonly", or(Boolean, "+", "-"), defaults["false"]) - .field("typeParameter", def("TSTypeParameter")) - .field("optional", or(Boolean, "+", "-"), defaults["false"]) - .field("typeAnnotation", or(def("TSType"), null), defaults["null"]); - def("TSTupleType") - .bases("TSType") - .build("elementTypes") - .field("elementTypes", [or(def("TSType"), def("TSNamedTupleMember"))]); - def("TSNamedTupleMember") - .bases("TSType") - .build("label", "elementType", "optional") - .field("label", def("Identifier")) - .field("optional", Boolean, defaults["false"]) - .field("elementType", def("TSType")); - def("TSRestType") - .bases("TSType") - .build("typeAnnotation") - .field("typeAnnotation", def("TSType")); - def("TSOptionalType") - .bases("TSType") - .build("typeAnnotation") - .field("typeAnnotation", def("TSType")); - def("TSIndexedAccessType") - .bases("TSType") - .build("objectType", "indexType") - .field("objectType", def("TSType")) - .field("indexType", def("TSType")); - def("TSTypeOperator") - .bases("TSType") - .build("operator") - .field("operator", String) - .field("typeAnnotation", def("TSType")); - def("TSTypeAnnotation") - .bases("Node") - .build("typeAnnotation") - .field("typeAnnotation", or(def("TSType"), def("TSTypeAnnotation"))); - def("TSIndexSignature") - .bases("Declaration", "TSHasOptionalTypeAnnotation") - .build("parameters", "typeAnnotation") - .field("parameters", [def("Identifier")]) // Length === 1 - .field("readonly", Boolean, defaults["false"]); - def("TSPropertySignature") - .bases("Declaration", "TSHasOptionalTypeAnnotation") - .build("key", "typeAnnotation", "optional") - .field("key", def("Expression")) - .field("computed", Boolean, defaults["false"]) - .field("readonly", Boolean, defaults["false"]) - .field("optional", Boolean, defaults["false"]) - .field("initializer", or(def("Expression"), null), defaults["null"]); - def("TSMethodSignature") - .bases("Declaration", "TSHasOptionalTypeParameters", "TSHasOptionalTypeAnnotation") - .build("key", "parameters", "typeAnnotation") - .field("key", def("Expression")) - .field("computed", Boolean, defaults["false"]) - .field("optional", Boolean, defaults["false"]) - .field("parameters", ParametersType); - def("TSTypePredicate") - .bases("TSTypeAnnotation", "TSType") - .build("parameterName", "typeAnnotation", "asserts") - .field("parameterName", or(def("Identifier"), def("TSThisType"))) - .field("typeAnnotation", or(def("TSTypeAnnotation"), null), defaults["null"]) - .field("asserts", Boolean, defaults["false"]); - ["TSCallSignatureDeclaration", - "TSConstructSignatureDeclaration", - ].forEach(function (typeName) { - def(typeName) - .bases("Declaration", "TSHasOptionalTypeParameters", "TSHasOptionalTypeAnnotation") - .build("parameters", "typeAnnotation") - .field("parameters", ParametersType); - }); - def("TSEnumMember") - .bases("Node") - .build("id", "initializer") - .field("id", or(def("Identifier"), StringLiteral)) - .field("initializer", or(def("Expression"), null), defaults["null"]); - def("TSTypeQuery") - .bases("TSType") - .build("exprName") - .field("exprName", or(TSEntityName, def("TSImportType"))); - // Inferred from Babylon's tsParseTypeMember method. - var TSTypeMember = or(def("TSCallSignatureDeclaration"), def("TSConstructSignatureDeclaration"), def("TSIndexSignature"), def("TSMethodSignature"), def("TSPropertySignature")); - def("TSTypeLiteral") - .bases("TSType") - .build("members") - .field("members", [TSTypeMember]); - def("TSTypeParameter") - .bases("Identifier") - .build("name", "constraint", "default") - .field("name", String) - .field("constraint", or(def("TSType"), void 0), defaults["undefined"]) - .field("default", or(def("TSType"), void 0), defaults["undefined"]); - def("TSTypeAssertion") - .bases("Expression", "Pattern") - .build("typeAnnotation", "expression") - .field("typeAnnotation", def("TSType")) - .field("expression", def("Expression")) - .field("extra", or({ parenthesized: Boolean }, null), defaults["null"]); - def("TSTypeParameterDeclaration") - .bases("Declaration") - .build("params") - .field("params", [def("TSTypeParameter")]); - def("TSTypeParameterInstantiation") - .bases("Node") - .build("params") - .field("params", [def("TSType")]); - def("TSEnumDeclaration") - .bases("Declaration") - .build("id", "members") - .field("id", def("Identifier")) - .field("const", Boolean, defaults["false"]) - .field("declare", Boolean, defaults["false"]) - .field("members", [def("TSEnumMember")]) - .field("initializer", or(def("Expression"), null), defaults["null"]); - def("TSTypeAliasDeclaration") - .bases("Declaration", "TSHasOptionalTypeParameters") - .build("id", "typeAnnotation") - .field("id", def("Identifier")) - .field("declare", Boolean, defaults["false"]) - .field("typeAnnotation", def("TSType")); - def("TSModuleBlock") - .bases("Node") - .build("body") - .field("body", [def("Statement")]); - def("TSModuleDeclaration") - .bases("Declaration") - .build("id", "body") - .field("id", or(StringLiteral, TSEntityName)) - .field("declare", Boolean, defaults["false"]) - .field("global", Boolean, defaults["false"]) - .field("body", or(def("TSModuleBlock"), def("TSModuleDeclaration"), null), defaults["null"]); - def("TSImportType") - .bases("TSType", "TSHasOptionalTypeParameterInstantiation") - .build("argument", "qualifier", "typeParameters") - .field("argument", StringLiteral) - .field("qualifier", or(TSEntityName, void 0), defaults["undefined"]); - def("TSImportEqualsDeclaration") - .bases("Declaration") - .build("id", "moduleReference") - .field("id", def("Identifier")) - .field("isExport", Boolean, defaults["false"]) - .field("moduleReference", or(TSEntityName, def("TSExternalModuleReference"))); - def("TSExternalModuleReference") - .bases("Declaration") - .build("expression") - .field("expression", StringLiteral); - def("TSExportAssignment") - .bases("Statement") - .build("expression") - .field("expression", def("Expression")); - def("TSNamespaceExportDeclaration") - .bases("Declaration") - .build("id") - .field("id", def("Identifier")); - def("TSInterfaceBody") - .bases("Node") - .build("body") - .field("body", [TSTypeMember]); - def("TSExpressionWithTypeArguments") - .bases("TSType", "TSHasOptionalTypeParameterInstantiation") - .build("expression", "typeParameters") - .field("expression", TSEntityName); - def("TSInterfaceDeclaration") - .bases("Declaration", "TSHasOptionalTypeParameters") - .build("id", "body") - .field("id", TSEntityName) - .field("declare", Boolean, defaults["false"]) - .field("extends", or([def("TSExpressionWithTypeArguments")], null), defaults["null"]) - .field("body", def("TSInterfaceBody")); - def("TSParameterProperty") - .bases("Pattern") - .build("parameter") - .field("accessibility", or("public", "private", "protected", void 0), defaults["undefined"]) - .field("readonly", Boolean, defaults["false"]) - .field("parameter", or(def("Identifier"), def("AssignmentPattern"))); - def("ClassProperty") - .field("access", // Not "accessibility"? - or("public", "private", "protected", void 0), defaults["undefined"]); - // Defined already in es6 and babel-core. - def("ClassBody") - .field("body", [or(def("MethodDefinition"), def("VariableDeclarator"), def("ClassPropertyDefinition"), def("ClassProperty"), def("ClassPrivateProperty"), def("ClassMethod"), def("ClassPrivateMethod"), - // Just need to add these types: - def("TSDeclareMethod"), TSTypeMember)]); -} -exports.default = default_1; -module.exports = exports["default"]; - - -/***/ }), - -/***/ 20253: -/***/ ((module, exports, __nccwpck_require__) => { - -"use strict"; -; -Object.defineProperty(exports, "__esModule", ({ value: true })); -var tslib_1 = __nccwpck_require__(4351); -var types_1 = tslib_1.__importDefault(__nccwpck_require__(52619)); -var path_visitor_1 = tslib_1.__importDefault(__nccwpck_require__(56525)); -var equiv_1 = tslib_1.__importDefault(__nccwpck_require__(38636)); -var path_1 = tslib_1.__importDefault(__nccwpck_require__(58770)); -var node_path_1 = tslib_1.__importDefault(__nccwpck_require__(35694)); -function default_1(defs) { - var fork = createFork(); - var types = fork.use(types_1.default); - defs.forEach(fork.use); - types.finalize(); - var PathVisitor = fork.use(path_visitor_1.default); - return { - Type: types.Type, - builtInTypes: types.builtInTypes, - namedTypes: types.namedTypes, - builders: types.builders, - defineMethod: types.defineMethod, - getFieldNames: types.getFieldNames, - getFieldValue: types.getFieldValue, - eachField: types.eachField, - someField: types.someField, - getSupertypeNames: types.getSupertypeNames, - getBuilderName: types.getBuilderName, - astNodesAreEquivalent: fork.use(equiv_1.default), - finalize: types.finalize, - Path: fork.use(path_1.default), - NodePath: fork.use(node_path_1.default), - PathVisitor: PathVisitor, - use: fork.use, - visit: PathVisitor.visit, - }; -} -exports.default = default_1; -function createFork() { - var used = []; - var usedResult = []; - function use(plugin) { - var idx = used.indexOf(plugin); - if (idx === -1) { - idx = used.length; - used.push(plugin); - usedResult[idx] = plugin(fork); - } - return usedResult[idx]; - } - var fork = { use: use }; - return fork; -} -module.exports = exports["default"]; - - -/***/ }), - -/***/ 24143: -/***/ ((__unused_webpack_module, exports) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.namedTypes = void 0; -var namedTypes; -(function (namedTypes) { -})(namedTypes = exports.namedTypes || (exports.namedTypes = {})); - - -/***/ }), - -/***/ 38636: -/***/ ((module, exports, __nccwpck_require__) => { - -"use strict"; -; -Object.defineProperty(exports, "__esModule", ({ value: true })); -var tslib_1 = __nccwpck_require__(4351); -var types_1 = tslib_1.__importDefault(__nccwpck_require__(52619)); -function default_1(fork) { - var types = fork.use(types_1.default); - var getFieldNames = types.getFieldNames; - var getFieldValue = types.getFieldValue; - var isArray = types.builtInTypes.array; - var isObject = types.builtInTypes.object; - var isDate = types.builtInTypes.Date; - var isRegExp = types.builtInTypes.RegExp; - var hasOwn = Object.prototype.hasOwnProperty; - function astNodesAreEquivalent(a, b, problemPath) { - if (isArray.check(problemPath)) { - problemPath.length = 0; - } - else { - problemPath = null; - } - return areEquivalent(a, b, problemPath); - } - astNodesAreEquivalent.assert = function (a, b) { - var problemPath = []; - if (!astNodesAreEquivalent(a, b, problemPath)) { - if (problemPath.length === 0) { - if (a !== b) { - throw new Error("Nodes must be equal"); - } - } - else { - throw new Error("Nodes differ in the following path: " + - problemPath.map(subscriptForProperty).join("")); - } - } - }; - function subscriptForProperty(property) { - if (/[_$a-z][_$a-z0-9]*/i.test(property)) { - return "." + property; - } - return "[" + JSON.stringify(property) + "]"; - } - function areEquivalent(a, b, problemPath) { - if (a === b) { - return true; - } - if (isArray.check(a)) { - return arraysAreEquivalent(a, b, problemPath); - } - if (isObject.check(a)) { - return objectsAreEquivalent(a, b, problemPath); - } - if (isDate.check(a)) { - return isDate.check(b) && (+a === +b); - } - if (isRegExp.check(a)) { - return isRegExp.check(b) && (a.source === b.source && - a.global === b.global && - a.multiline === b.multiline && - a.ignoreCase === b.ignoreCase); - } - return a == b; - } - function arraysAreEquivalent(a, b, problemPath) { - isArray.assert(a); - var aLength = a.length; - if (!isArray.check(b) || b.length !== aLength) { - if (problemPath) { - problemPath.push("length"); - } - return false; - } - for (var i = 0; i < aLength; ++i) { - if (problemPath) { - problemPath.push(i); - } - if (i in a !== i in b) { - return false; - } - if (!areEquivalent(a[i], b[i], problemPath)) { - return false; - } - if (problemPath) { - var problemPathTail = problemPath.pop(); - if (problemPathTail !== i) { - throw new Error("" + problemPathTail); - } - } - } - return true; - } - function objectsAreEquivalent(a, b, problemPath) { - isObject.assert(a); - if (!isObject.check(b)) { - return false; - } - // Fast path for a common property of AST nodes. - if (a.type !== b.type) { - if (problemPath) { - problemPath.push("type"); - } - return false; - } - var aNames = getFieldNames(a); - var aNameCount = aNames.length; - var bNames = getFieldNames(b); - var bNameCount = bNames.length; - if (aNameCount === bNameCount) { - for (var i = 0; i < aNameCount; ++i) { - var name = aNames[i]; - var aChild = getFieldValue(a, name); - var bChild = getFieldValue(b, name); - if (problemPath) { - problemPath.push(name); - } - if (!areEquivalent(aChild, bChild, problemPath)) { - return false; - } - if (problemPath) { - var problemPathTail = problemPath.pop(); - if (problemPathTail !== name) { - throw new Error("" + problemPathTail); - } - } - } - return true; - } - if (!problemPath) { - return false; - } - // Since aNameCount !== bNameCount, we need to find some name that's - // missing in aNames but present in bNames, or vice-versa. - var seenNames = Object.create(null); - for (i = 0; i < aNameCount; ++i) { - seenNames[aNames[i]] = true; - } - for (i = 0; i < bNameCount; ++i) { - name = bNames[i]; - if (!hasOwn.call(seenNames, name)) { - problemPath.push(name); - return false; - } - delete seenNames[name]; - } - for (name in seenNames) { - problemPath.push(name); - break; - } - return false; - } - return astNodesAreEquivalent; -} -exports.default = default_1; -module.exports = exports["default"]; - - -/***/ }), - -/***/ 35694: -/***/ ((module, exports, __nccwpck_require__) => { - -"use strict"; -; -Object.defineProperty(exports, "__esModule", ({ value: true })); -var tslib_1 = __nccwpck_require__(4351); -var types_1 = tslib_1.__importDefault(__nccwpck_require__(52619)); -var path_1 = tslib_1.__importDefault(__nccwpck_require__(58770)); -var scope_1 = tslib_1.__importDefault(__nccwpck_require__(89733)); -function nodePathPlugin(fork) { - var types = fork.use(types_1.default); - var n = types.namedTypes; - var b = types.builders; - var isNumber = types.builtInTypes.number; - var isArray = types.builtInTypes.array; - var Path = fork.use(path_1.default); - var Scope = fork.use(scope_1.default); - var NodePath = function NodePath(value, parentPath, name) { - if (!(this instanceof NodePath)) { - throw new Error("NodePath constructor cannot be invoked without 'new'"); - } - Path.call(this, value, parentPath, name); - }; - var NPp = NodePath.prototype = Object.create(Path.prototype, { - constructor: { - value: NodePath, - enumerable: false, - writable: true, - configurable: true - } - }); - Object.defineProperties(NPp, { - node: { - get: function () { - Object.defineProperty(this, "node", { - configurable: true, - value: this._computeNode() - }); - return this.node; - } - }, - parent: { - get: function () { - Object.defineProperty(this, "parent", { - configurable: true, - value: this._computeParent() - }); - return this.parent; - } - }, - scope: { - get: function () { - Object.defineProperty(this, "scope", { - configurable: true, - value: this._computeScope() - }); - return this.scope; - } - } - }); - NPp.replace = function () { - delete this.node; - delete this.parent; - delete this.scope; - return Path.prototype.replace.apply(this, arguments); - }; - NPp.prune = function () { - var remainingNodePath = this.parent; - this.replace(); - return cleanUpNodesAfterPrune(remainingNodePath); - }; - // The value of the first ancestor Path whose value is a Node. - NPp._computeNode = function () { - var value = this.value; - if (n.Node.check(value)) { - return value; - } - var pp = this.parentPath; - return pp && pp.node || null; - }; - // The first ancestor Path whose value is a Node distinct from this.node. - NPp._computeParent = function () { - var value = this.value; - var pp = this.parentPath; - if (!n.Node.check(value)) { - while (pp && !n.Node.check(pp.value)) { - pp = pp.parentPath; - } - if (pp) { - pp = pp.parentPath; - } - } - while (pp && !n.Node.check(pp.value)) { - pp = pp.parentPath; - } - return pp || null; - }; - // The closest enclosing scope that governs this node. - NPp._computeScope = function () { - var value = this.value; - var pp = this.parentPath; - var scope = pp && pp.scope; - if (n.Node.check(value) && - Scope.isEstablishedBy(value)) { - scope = new Scope(this, scope); - } - return scope || null; - }; - NPp.getValueProperty = function (name) { - return types.getFieldValue(this.value, name); - }; - /** - * Determine whether this.node needs to be wrapped in parentheses in order - * for a parser to reproduce the same local AST structure. - * - * For instance, in the expression `(1 + 2) * 3`, the BinaryExpression - * whose operator is "+" needs parentheses, because `1 + 2 * 3` would - * parse differently. - * - * If assumeExpressionContext === true, we don't worry about edge cases - * like an anonymous FunctionExpression appearing lexically first in its - * enclosing statement and thus needing parentheses to avoid being parsed - * as a FunctionDeclaration with a missing name. - */ - NPp.needsParens = function (assumeExpressionContext) { - var pp = this.parentPath; - if (!pp) { - return false; - } - var node = this.value; - // Only expressions need parentheses. - if (!n.Expression.check(node)) { - return false; - } - // Identifiers never need parentheses. - if (node.type === "Identifier") { - return false; - } - while (!n.Node.check(pp.value)) { - pp = pp.parentPath; - if (!pp) { - return false; - } - } - var parent = pp.value; - switch (node.type) { - case "UnaryExpression": - case "SpreadElement": - case "SpreadProperty": - return parent.type === "MemberExpression" - && this.name === "object" - && parent.object === node; - case "BinaryExpression": - case "LogicalExpression": - switch (parent.type) { - case "CallExpression": - return this.name === "callee" - && parent.callee === node; - case "UnaryExpression": - case "SpreadElement": - case "SpreadProperty": - return true; - case "MemberExpression": - return this.name === "object" - && parent.object === node; - case "BinaryExpression": - case "LogicalExpression": { - var n_1 = node; - var po = parent.operator; - var pp_1 = PRECEDENCE[po]; - var no = n_1.operator; - var np = PRECEDENCE[no]; - if (pp_1 > np) { - return true; - } - if (pp_1 === np && this.name === "right") { - if (parent.right !== n_1) { - throw new Error("Nodes must be equal"); - } - return true; - } - } - default: - return false; - } - case "SequenceExpression": - switch (parent.type) { - case "ForStatement": - // Although parentheses wouldn't hurt around sequence - // expressions in the head of for loops, traditional style - // dictates that e.g. i++, j++ should not be wrapped with - // parentheses. - return false; - case "ExpressionStatement": - return this.name !== "expression"; - default: - // Otherwise err on the side of overparenthesization, adding - // explicit exceptions above if this proves overzealous. - return true; - } - case "YieldExpression": - switch (parent.type) { - case "BinaryExpression": - case "LogicalExpression": - case "UnaryExpression": - case "SpreadElement": - case "SpreadProperty": - case "CallExpression": - case "MemberExpression": - case "NewExpression": - case "ConditionalExpression": - case "YieldExpression": - return true; - default: - return false; - } - case "Literal": - return parent.type === "MemberExpression" - && isNumber.check(node.value) - && this.name === "object" - && parent.object === node; - case "AssignmentExpression": - case "ConditionalExpression": - switch (parent.type) { - case "UnaryExpression": - case "SpreadElement": - case "SpreadProperty": - case "BinaryExpression": - case "LogicalExpression": - return true; - case "CallExpression": - return this.name === "callee" - && parent.callee === node; - case "ConditionalExpression": - return this.name === "test" - && parent.test === node; - case "MemberExpression": - return this.name === "object" - && parent.object === node; - default: - return false; - } - default: - if (parent.type === "NewExpression" && - this.name === "callee" && - parent.callee === node) { - return containsCallExpression(node); - } - } - if (assumeExpressionContext !== true && - !this.canBeFirstInStatement() && - this.firstInStatement()) - return true; - return false; - }; - function isBinary(node) { - return n.BinaryExpression.check(node) - || n.LogicalExpression.check(node); - } - // @ts-ignore 'isUnaryLike' is declared but its value is never read. [6133] - function isUnaryLike(node) { - return n.UnaryExpression.check(node) - // I considered making SpreadElement and SpreadProperty subtypes - // of UnaryExpression, but they're not really Expression nodes. - || (n.SpreadElement && n.SpreadElement.check(node)) - || (n.SpreadProperty && n.SpreadProperty.check(node)); - } - var PRECEDENCE = {}; - [["||"], - ["&&"], - ["|"], - ["^"], - ["&"], - ["==", "===", "!=", "!=="], - ["<", ">", "<=", ">=", "in", "instanceof"], - [">>", "<<", ">>>"], - ["+", "-"], - ["*", "/", "%"] - ].forEach(function (tier, i) { - tier.forEach(function (op) { - PRECEDENCE[op] = i; - }); - }); - function containsCallExpression(node) { - if (n.CallExpression.check(node)) { - return true; - } - if (isArray.check(node)) { - return node.some(containsCallExpression); - } - if (n.Node.check(node)) { - return types.someField(node, function (_name, child) { - return containsCallExpression(child); - }); - } - return false; - } - NPp.canBeFirstInStatement = function () { - var node = this.node; - return !n.FunctionExpression.check(node) - && !n.ObjectExpression.check(node); - }; - NPp.firstInStatement = function () { - return firstInStatement(this); - }; - function firstInStatement(path) { - for (var node, parent; path.parent; path = path.parent) { - node = path.node; - parent = path.parent.node; - if (n.BlockStatement.check(parent) && - path.parent.name === "body" && - path.name === 0) { - if (parent.body[0] !== node) { - throw new Error("Nodes must be equal"); - } - return true; - } - if (n.ExpressionStatement.check(parent) && - path.name === "expression") { - if (parent.expression !== node) { - throw new Error("Nodes must be equal"); - } - return true; - } - if (n.SequenceExpression.check(parent) && - path.parent.name === "expressions" && - path.name === 0) { - if (parent.expressions[0] !== node) { - throw new Error("Nodes must be equal"); - } - continue; - } - if (n.CallExpression.check(parent) && - path.name === "callee") { - if (parent.callee !== node) { - throw new Error("Nodes must be equal"); - } - continue; - } - if (n.MemberExpression.check(parent) && - path.name === "object") { - if (parent.object !== node) { - throw new Error("Nodes must be equal"); - } - continue; - } - if (n.ConditionalExpression.check(parent) && - path.name === "test") { - if (parent.test !== node) { - throw new Error("Nodes must be equal"); - } - continue; - } - if (isBinary(parent) && - path.name === "left") { - if (parent.left !== node) { - throw new Error("Nodes must be equal"); - } - continue; - } - if (n.UnaryExpression.check(parent) && - !parent.prefix && - path.name === "argument") { - if (parent.argument !== node) { - throw new Error("Nodes must be equal"); - } - continue; - } - return false; - } - return true; - } - /** - * Pruning certain nodes will result in empty or incomplete nodes, here we clean those nodes up. - */ - function cleanUpNodesAfterPrune(remainingNodePath) { - if (n.VariableDeclaration.check(remainingNodePath.node)) { - var declarations = remainingNodePath.get('declarations').value; - if (!declarations || declarations.length === 0) { - return remainingNodePath.prune(); - } - } - else if (n.ExpressionStatement.check(remainingNodePath.node)) { - if (!remainingNodePath.get('expression').value) { - return remainingNodePath.prune(); - } - } - else if (n.IfStatement.check(remainingNodePath.node)) { - cleanUpIfStatementAfterPrune(remainingNodePath); - } - return remainingNodePath; - } - function cleanUpIfStatementAfterPrune(ifStatement) { - var testExpression = ifStatement.get('test').value; - var alternate = ifStatement.get('alternate').value; - var consequent = ifStatement.get('consequent').value; - if (!consequent && !alternate) { - var testExpressionStatement = b.expressionStatement(testExpression); - ifStatement.replace(testExpressionStatement); - } - else if (!consequent && alternate) { - var negatedTestExpression = b.unaryExpression('!', testExpression, true); - if (n.UnaryExpression.check(testExpression) && testExpression.operator === '!') { - negatedTestExpression = testExpression.argument; - } - ifStatement.get("test").replace(negatedTestExpression); - ifStatement.get("consequent").replace(alternate); - ifStatement.get("alternate").replace(); - } - } - return NodePath; -} -exports.default = nodePathPlugin; -module.exports = exports["default"]; - - -/***/ }), - -/***/ 56525: -/***/ ((module, exports, __nccwpck_require__) => { - -"use strict"; -; -Object.defineProperty(exports, "__esModule", ({ value: true })); -var tslib_1 = __nccwpck_require__(4351); -var types_1 = tslib_1.__importDefault(__nccwpck_require__(52619)); -var node_path_1 = tslib_1.__importDefault(__nccwpck_require__(35694)); -var hasOwn = Object.prototype.hasOwnProperty; -function pathVisitorPlugin(fork) { - var types = fork.use(types_1.default); - var NodePath = fork.use(node_path_1.default); - var isArray = types.builtInTypes.array; - var isObject = types.builtInTypes.object; - var isFunction = types.builtInTypes.function; - var undefined; - var PathVisitor = function PathVisitor() { - if (!(this instanceof PathVisitor)) { - throw new Error("PathVisitor constructor cannot be invoked without 'new'"); - } - // Permanent state. - this._reusableContextStack = []; - this._methodNameTable = computeMethodNameTable(this); - this._shouldVisitComments = - hasOwn.call(this._methodNameTable, "Block") || - hasOwn.call(this._methodNameTable, "Line"); - this.Context = makeContextConstructor(this); - // State reset every time PathVisitor.prototype.visit is called. - this._visiting = false; - this._changeReported = false; - }; - function computeMethodNameTable(visitor) { - var typeNames = Object.create(null); - for (var methodName in visitor) { - if (/^visit[A-Z]/.test(methodName)) { - typeNames[methodName.slice("visit".length)] = true; - } - } - var supertypeTable = types.computeSupertypeLookupTable(typeNames); - var methodNameTable = Object.create(null); - var typeNameKeys = Object.keys(supertypeTable); - var typeNameCount = typeNameKeys.length; - for (var i = 0; i < typeNameCount; ++i) { - var typeName = typeNameKeys[i]; - methodName = "visit" + supertypeTable[typeName]; - if (isFunction.check(visitor[methodName])) { - methodNameTable[typeName] = methodName; - } - } - return methodNameTable; - } - PathVisitor.fromMethodsObject = function fromMethodsObject(methods) { - if (methods instanceof PathVisitor) { - return methods; - } - if (!isObject.check(methods)) { - // An empty visitor? - return new PathVisitor; - } - var Visitor = function Visitor() { - if (!(this instanceof Visitor)) { - throw new Error("Visitor constructor cannot be invoked without 'new'"); - } - PathVisitor.call(this); - }; - var Vp = Visitor.prototype = Object.create(PVp); - Vp.constructor = Visitor; - extend(Vp, methods); - extend(Visitor, PathVisitor); - isFunction.assert(Visitor.fromMethodsObject); - isFunction.assert(Visitor.visit); - return new Visitor; - }; - function extend(target, source) { - for (var property in source) { - if (hasOwn.call(source, property)) { - target[property] = source[property]; - } - } - return target; - } - PathVisitor.visit = function visit(node, methods) { - return PathVisitor.fromMethodsObject(methods).visit(node); - }; - var PVp = PathVisitor.prototype; - PVp.visit = function () { - if (this._visiting) { - throw new Error("Recursively calling visitor.visit(path) resets visitor state. " + - "Try this.visit(path) or this.traverse(path) instead."); - } - // Private state that needs to be reset before every traversal. - this._visiting = true; - this._changeReported = false; - this._abortRequested = false; - var argc = arguments.length; - var args = new Array(argc); - for (var i = 0; i < argc; ++i) { - args[i] = arguments[i]; - } - if (!(args[0] instanceof NodePath)) { - args[0] = new NodePath({ root: args[0] }).get("root"); - } - // Called with the same arguments as .visit. - this.reset.apply(this, args); - var didNotThrow; - try { - var root = this.visitWithoutReset(args[0]); - didNotThrow = true; - } - finally { - this._visiting = false; - if (!didNotThrow && this._abortRequested) { - // If this.visitWithoutReset threw an exception and - // this._abortRequested was set to true, return the root of - // the AST instead of letting the exception propagate, so that - // client code does not have to provide a try-catch block to - // intercept the AbortRequest exception. Other kinds of - // exceptions will propagate without being intercepted and - // rethrown by a catch block, so their stacks will accurately - // reflect the original throwing context. - return args[0].value; - } - } - return root; - }; - PVp.AbortRequest = function AbortRequest() { }; - PVp.abort = function () { - var visitor = this; - visitor._abortRequested = true; - var request = new visitor.AbortRequest(); - // If you decide to catch this exception and stop it from propagating, - // make sure to call its cancel method to avoid silencing other - // exceptions that might be thrown later in the traversal. - request.cancel = function () { - visitor._abortRequested = false; - }; - throw request; - }; - PVp.reset = function (_path /*, additional arguments */) { - // Empty stub; may be reassigned or overridden by subclasses. - }; - PVp.visitWithoutReset = function (path) { - if (this instanceof this.Context) { - // Since this.Context.prototype === this, there's a chance we - // might accidentally call context.visitWithoutReset. If that - // happens, re-invoke the method against context.visitor. - return this.visitor.visitWithoutReset(path); - } - if (!(path instanceof NodePath)) { - throw new Error(""); - } - var value = path.value; - var methodName = value && - typeof value === "object" && - typeof value.type === "string" && - this._methodNameTable[value.type]; - if (methodName) { - var context = this.acquireContext(path); - try { - return context.invokeVisitorMethod(methodName); - } - finally { - this.releaseContext(context); - } - } - else { - // If there was no visitor method to call, visit the children of - // this node generically. - return visitChildren(path, this); - } - }; - function visitChildren(path, visitor) { - if (!(path instanceof NodePath)) { - throw new Error(""); - } - if (!(visitor instanceof PathVisitor)) { - throw new Error(""); - } - var value = path.value; - if (isArray.check(value)) { - path.each(visitor.visitWithoutReset, visitor); - } - else if (!isObject.check(value)) { - // No children to visit. - } - else { - var childNames = types.getFieldNames(value); - // The .comments field of the Node type is hidden, so we only - // visit it if the visitor defines visitBlock or visitLine, and - // value.comments is defined. - if (visitor._shouldVisitComments && - value.comments && - childNames.indexOf("comments") < 0) { - childNames.push("comments"); - } - var childCount = childNames.length; - var childPaths = []; - for (var i = 0; i < childCount; ++i) { - var childName = childNames[i]; - if (!hasOwn.call(value, childName)) { - value[childName] = types.getFieldValue(value, childName); - } - childPaths.push(path.get(childName)); - } - for (var i = 0; i < childCount; ++i) { - visitor.visitWithoutReset(childPaths[i]); - } - } - return path.value; - } - PVp.acquireContext = function (path) { - if (this._reusableContextStack.length === 0) { - return new this.Context(path); - } - return this._reusableContextStack.pop().reset(path); - }; - PVp.releaseContext = function (context) { - if (!(context instanceof this.Context)) { - throw new Error(""); - } - this._reusableContextStack.push(context); - context.currentPath = null; - }; - PVp.reportChanged = function () { - this._changeReported = true; - }; - PVp.wasChangeReported = function () { - return this._changeReported; - }; - function makeContextConstructor(visitor) { - function Context(path) { - if (!(this instanceof Context)) { - throw new Error(""); - } - if (!(this instanceof PathVisitor)) { - throw new Error(""); - } - if (!(path instanceof NodePath)) { - throw new Error(""); - } - Object.defineProperty(this, "visitor", { - value: visitor, - writable: false, - enumerable: true, - configurable: false - }); - this.currentPath = path; - this.needToCallTraverse = true; - Object.seal(this); - } - if (!(visitor instanceof PathVisitor)) { - throw new Error(""); - } - // Note that the visitor object is the prototype of Context.prototype, - // so all visitor methods are inherited by context objects. - var Cp = Context.prototype = Object.create(visitor); - Cp.constructor = Context; - extend(Cp, sharedContextProtoMethods); - return Context; - } - // Every PathVisitor has a different this.Context constructor and - // this.Context.prototype object, but those prototypes can all use the - // same reset, invokeVisitorMethod, and traverse function objects. - var sharedContextProtoMethods = Object.create(null); - sharedContextProtoMethods.reset = - function reset(path) { - if (!(this instanceof this.Context)) { - throw new Error(""); - } - if (!(path instanceof NodePath)) { - throw new Error(""); - } - this.currentPath = path; - this.needToCallTraverse = true; - return this; - }; - sharedContextProtoMethods.invokeVisitorMethod = - function invokeVisitorMethod(methodName) { - if (!(this instanceof this.Context)) { - throw new Error(""); - } - if (!(this.currentPath instanceof NodePath)) { - throw new Error(""); - } - var result = this.visitor[methodName].call(this, this.currentPath); - if (result === false) { - // Visitor methods return false to indicate that they have handled - // their own traversal needs, and we should not complain if - // this.needToCallTraverse is still true. - this.needToCallTraverse = false; - } - else if (result !== undefined) { - // Any other non-undefined value returned from the visitor method - // is interpreted as a replacement value. - this.currentPath = this.currentPath.replace(result)[0]; - if (this.needToCallTraverse) { - // If this.traverse still hasn't been called, visit the - // children of the replacement node. - this.traverse(this.currentPath); - } - } - if (this.needToCallTraverse !== false) { - throw new Error("Must either call this.traverse or return false in " + methodName); - } - var path = this.currentPath; - return path && path.value; - }; - sharedContextProtoMethods.traverse = - function traverse(path, newVisitor) { - if (!(this instanceof this.Context)) { - throw new Error(""); - } - if (!(path instanceof NodePath)) { - throw new Error(""); - } - if (!(this.currentPath instanceof NodePath)) { - throw new Error(""); - } - this.needToCallTraverse = false; - return visitChildren(path, PathVisitor.fromMethodsObject(newVisitor || this.visitor)); - }; - sharedContextProtoMethods.visit = - function visit(path, newVisitor) { - if (!(this instanceof this.Context)) { - throw new Error(""); - } - if (!(path instanceof NodePath)) { - throw new Error(""); - } - if (!(this.currentPath instanceof NodePath)) { - throw new Error(""); - } - this.needToCallTraverse = false; - return PathVisitor.fromMethodsObject(newVisitor || this.visitor).visitWithoutReset(path); - }; - sharedContextProtoMethods.reportChanged = function reportChanged() { - this.visitor.reportChanged(); - }; - sharedContextProtoMethods.abort = function abort() { - this.needToCallTraverse = false; - this.visitor.abort(); - }; - return PathVisitor; -} -exports.default = pathVisitorPlugin; -module.exports = exports["default"]; - - -/***/ }), - -/***/ 58770: -/***/ ((module, exports, __nccwpck_require__) => { - -"use strict"; -; -Object.defineProperty(exports, "__esModule", ({ value: true })); -var tslib_1 = __nccwpck_require__(4351); -var types_1 = tslib_1.__importDefault(__nccwpck_require__(52619)); -var Op = Object.prototype; -var hasOwn = Op.hasOwnProperty; -function pathPlugin(fork) { - var types = fork.use(types_1.default); - var isArray = types.builtInTypes.array; - var isNumber = types.builtInTypes.number; - var Path = function Path(value, parentPath, name) { - if (!(this instanceof Path)) { - throw new Error("Path constructor cannot be invoked without 'new'"); - } - if (parentPath) { - if (!(parentPath instanceof Path)) { - throw new Error(""); - } - } - else { - parentPath = null; - name = null; - } - // The value encapsulated by this Path, generally equal to - // parentPath.value[name] if we have a parentPath. - this.value = value; - // The immediate parent Path of this Path. - this.parentPath = parentPath; - // The name of the property of parentPath.value through which this - // Path's value was reached. - this.name = name; - // Calling path.get("child") multiple times always returns the same - // child Path object, for both performance and consistency reasons. - this.__childCache = null; - }; - var Pp = Path.prototype; - function getChildCache(path) { - // Lazily create the child cache. This also cheapens cache - // invalidation, since you can just reset path.__childCache to null. - return path.__childCache || (path.__childCache = Object.create(null)); - } - function getChildPath(path, name) { - var cache = getChildCache(path); - var actualChildValue = path.getValueProperty(name); - var childPath = cache[name]; - if (!hasOwn.call(cache, name) || - // Ensure consistency between cache and reality. - childPath.value !== actualChildValue) { - childPath = cache[name] = new path.constructor(actualChildValue, path, name); - } - return childPath; - } - // This method is designed to be overridden by subclasses that need to - // handle missing properties, etc. - Pp.getValueProperty = function getValueProperty(name) { - return this.value[name]; - }; - Pp.get = function get() { - var names = []; - for (var _i = 0; _i < arguments.length; _i++) { - names[_i] = arguments[_i]; - } - var path = this; - var count = names.length; - for (var i = 0; i < count; ++i) { - path = getChildPath(path, names[i]); - } - return path; - }; - Pp.each = function each(callback, context) { - var childPaths = []; - var len = this.value.length; - var i = 0; - // Collect all the original child paths before invoking the callback. - for (var i = 0; i < len; ++i) { - if (hasOwn.call(this.value, i)) { - childPaths[i] = this.get(i); - } - } - // Invoke the callback on just the original child paths, regardless of - // any modifications made to the array by the callback. I chose these - // semantics over cleverly invoking the callback on new elements because - // this way is much easier to reason about. - context = context || this; - for (i = 0; i < len; ++i) { - if (hasOwn.call(childPaths, i)) { - callback.call(context, childPaths[i]); - } - } - }; - Pp.map = function map(callback, context) { - var result = []; - this.each(function (childPath) { - result.push(callback.call(this, childPath)); - }, context); - return result; - }; - Pp.filter = function filter(callback, context) { - var result = []; - this.each(function (childPath) { - if (callback.call(this, childPath)) { - result.push(childPath); - } - }, context); - return result; - }; - function emptyMoves() { } - function getMoves(path, offset, start, end) { - isArray.assert(path.value); - if (offset === 0) { - return emptyMoves; - } - var length = path.value.length; - if (length < 1) { - return emptyMoves; - } - var argc = arguments.length; - if (argc === 2) { - start = 0; - end = length; - } - else if (argc === 3) { - start = Math.max(start, 0); - end = length; - } - else { - start = Math.max(start, 0); - end = Math.min(end, length); - } - isNumber.assert(start); - isNumber.assert(end); - var moves = Object.create(null); - var cache = getChildCache(path); - for (var i = start; i < end; ++i) { - if (hasOwn.call(path.value, i)) { - var childPath = path.get(i); - if (childPath.name !== i) { - throw new Error(""); - } - var newIndex = i + offset; - childPath.name = newIndex; - moves[newIndex] = childPath; - delete cache[i]; - } - } - delete cache.length; - return function () { - for (var newIndex in moves) { - var childPath = moves[newIndex]; - if (childPath.name !== +newIndex) { - throw new Error(""); - } - cache[newIndex] = childPath; - path.value[newIndex] = childPath.value; - } - }; - } - Pp.shift = function shift() { - var move = getMoves(this, -1); - var result = this.value.shift(); - move(); - return result; - }; - Pp.unshift = function unshift() { - var args = []; - for (var _i = 0; _i < arguments.length; _i++) { - args[_i] = arguments[_i]; - } - var move = getMoves(this, args.length); - var result = this.value.unshift.apply(this.value, args); - move(); - return result; - }; - Pp.push = function push() { - var args = []; - for (var _i = 0; _i < arguments.length; _i++) { - args[_i] = arguments[_i]; - } - isArray.assert(this.value); - delete getChildCache(this).length; - return this.value.push.apply(this.value, args); - }; - Pp.pop = function pop() { - isArray.assert(this.value); - var cache = getChildCache(this); - delete cache[this.value.length - 1]; - delete cache.length; - return this.value.pop(); - }; - Pp.insertAt = function insertAt(index) { - var argc = arguments.length; - var move = getMoves(this, argc - 1, index); - if (move === emptyMoves && argc <= 1) { - return this; - } - index = Math.max(index, 0); - for (var i = 1; i < argc; ++i) { - this.value[index + i - 1] = arguments[i]; - } - move(); - return this; - }; - Pp.insertBefore = function insertBefore() { - var args = []; - for (var _i = 0; _i < arguments.length; _i++) { - args[_i] = arguments[_i]; - } - var pp = this.parentPath; - var argc = args.length; - var insertAtArgs = [this.name]; - for (var i = 0; i < argc; ++i) { - insertAtArgs.push(args[i]); - } - return pp.insertAt.apply(pp, insertAtArgs); - }; - Pp.insertAfter = function insertAfter() { - var args = []; - for (var _i = 0; _i < arguments.length; _i++) { - args[_i] = arguments[_i]; - } - var pp = this.parentPath; - var argc = args.length; - var insertAtArgs = [this.name + 1]; - for (var i = 0; i < argc; ++i) { - insertAtArgs.push(args[i]); - } - return pp.insertAt.apply(pp, insertAtArgs); - }; - function repairRelationshipWithParent(path) { - if (!(path instanceof Path)) { - throw new Error(""); - } - var pp = path.parentPath; - if (!pp) { - // Orphan paths have no relationship to repair. - return path; - } - var parentValue = pp.value; - var parentCache = getChildCache(pp); - // Make sure parentCache[path.name] is populated. - if (parentValue[path.name] === path.value) { - parentCache[path.name] = path; - } - else if (isArray.check(parentValue)) { - // Something caused path.name to become out of date, so attempt to - // recover by searching for path.value in parentValue. - var i = parentValue.indexOf(path.value); - if (i >= 0) { - parentCache[path.name = i] = path; - } - } - else { - // If path.value disagrees with parentValue[path.name], and - // path.name is not an array index, let path.value become the new - // parentValue[path.name] and update parentCache accordingly. - parentValue[path.name] = path.value; - parentCache[path.name] = path; - } - if (parentValue[path.name] !== path.value) { - throw new Error(""); - } - if (path.parentPath.get(path.name) !== path) { - throw new Error(""); - } - return path; - } - Pp.replace = function replace(replacement) { - var results = []; - var parentValue = this.parentPath.value; - var parentCache = getChildCache(this.parentPath); - var count = arguments.length; - repairRelationshipWithParent(this); - if (isArray.check(parentValue)) { - var originalLength = parentValue.length; - var move = getMoves(this.parentPath, count - 1, this.name + 1); - var spliceArgs = [this.name, 1]; - for (var i = 0; i < count; ++i) { - spliceArgs.push(arguments[i]); - } - var splicedOut = parentValue.splice.apply(parentValue, spliceArgs); - if (splicedOut[0] !== this.value) { - throw new Error(""); - } - if (parentValue.length !== (originalLength - 1 + count)) { - throw new Error(""); - } - move(); - if (count === 0) { - delete this.value; - delete parentCache[this.name]; - this.__childCache = null; - } - else { - if (parentValue[this.name] !== replacement) { - throw new Error(""); - } - if (this.value !== replacement) { - this.value = replacement; - this.__childCache = null; - } - for (i = 0; i < count; ++i) { - results.push(this.parentPath.get(this.name + i)); - } - if (results[0] !== this) { - throw new Error(""); - } - } - } - else if (count === 1) { - if (this.value !== replacement) { - this.__childCache = null; - } - this.value = parentValue[this.name] = replacement; - results.push(this); - } - else if (count === 0) { - delete parentValue[this.name]; - delete this.value; - this.__childCache = null; - // Leave this path cached as parentCache[this.name], even though - // it no longer has a value defined. - } - else { - throw new Error("Could not replace path"); - } - return results; - }; - return Path; -} -exports.default = pathPlugin; -module.exports = exports["default"]; - - -/***/ }), - -/***/ 89733: -/***/ ((module, exports, __nccwpck_require__) => { - -"use strict"; -; -Object.defineProperty(exports, "__esModule", ({ value: true })); -var tslib_1 = __nccwpck_require__(4351); -var types_1 = tslib_1.__importDefault(__nccwpck_require__(52619)); -var hasOwn = Object.prototype.hasOwnProperty; -function scopePlugin(fork) { - var types = fork.use(types_1.default); - var Type = types.Type; - var namedTypes = types.namedTypes; - var Node = namedTypes.Node; - var Expression = namedTypes.Expression; - var isArray = types.builtInTypes.array; - var b = types.builders; - var Scope = function Scope(path, parentScope) { - if (!(this instanceof Scope)) { - throw new Error("Scope constructor cannot be invoked without 'new'"); - } - ScopeType.assert(path.value); - var depth; - if (parentScope) { - if (!(parentScope instanceof Scope)) { - throw new Error(""); - } - depth = parentScope.depth + 1; - } - else { - parentScope = null; - depth = 0; - } - Object.defineProperties(this, { - path: { value: path }, - node: { value: path.value }, - isGlobal: { value: !parentScope, enumerable: true }, - depth: { value: depth }, - parent: { value: parentScope }, - bindings: { value: {} }, - types: { value: {} }, - }); - }; - var scopeTypes = [ - // Program nodes introduce global scopes. - namedTypes.Program, - // Function is the supertype of FunctionExpression, - // FunctionDeclaration, ArrowExpression, etc. - namedTypes.Function, - // In case you didn't know, the caught parameter shadows any variable - // of the same name in an outer scope. - namedTypes.CatchClause - ]; - var ScopeType = Type.or.apply(Type, scopeTypes); - Scope.isEstablishedBy = function (node) { - return ScopeType.check(node); - }; - var Sp = Scope.prototype; - // Will be overridden after an instance lazily calls scanScope. - Sp.didScan = false; - Sp.declares = function (name) { - this.scan(); - return hasOwn.call(this.bindings, name); - }; - Sp.declaresType = function (name) { - this.scan(); - return hasOwn.call(this.types, name); - }; - Sp.declareTemporary = function (prefix) { - if (prefix) { - if (!/^[a-z$_]/i.test(prefix)) { - throw new Error(""); - } - } - else { - prefix = "t$"; - } - // Include this.depth in the name to make sure the name does not - // collide with any variables in nested/enclosing scopes. - prefix += this.depth.toString(36) + "$"; - this.scan(); - var index = 0; - while (this.declares(prefix + index)) { - ++index; - } - var name = prefix + index; - return this.bindings[name] = types.builders.identifier(name); - }; - Sp.injectTemporary = function (identifier, init) { - identifier || (identifier = this.declareTemporary()); - var bodyPath = this.path.get("body"); - if (namedTypes.BlockStatement.check(bodyPath.value)) { - bodyPath = bodyPath.get("body"); - } - bodyPath.unshift(b.variableDeclaration("var", [b.variableDeclarator(identifier, init || null)])); - return identifier; - }; - Sp.scan = function (force) { - if (force || !this.didScan) { - for (var name in this.bindings) { - // Empty out this.bindings, just in cases. - delete this.bindings[name]; - } - scanScope(this.path, this.bindings, this.types); - this.didScan = true; - } - }; - Sp.getBindings = function () { - this.scan(); - return this.bindings; - }; - Sp.getTypes = function () { - this.scan(); - return this.types; - }; - function scanScope(path, bindings, scopeTypes) { - var node = path.value; - ScopeType.assert(node); - if (namedTypes.CatchClause.check(node)) { - // A catch clause establishes a new scope but the only variable - // bound in that scope is the catch parameter. Any other - // declarations create bindings in the outer scope. - var param = path.get("param"); - if (param.value) { - addPattern(param, bindings); - } - } - else { - recursiveScanScope(path, bindings, scopeTypes); - } - } - function recursiveScanScope(path, bindings, scopeTypes) { - var node = path.value; - if (path.parent && - namedTypes.FunctionExpression.check(path.parent.node) && - path.parent.node.id) { - addPattern(path.parent.get("id"), bindings); - } - if (!node) { - // None of the remaining cases matter if node is falsy. - } - else if (isArray.check(node)) { - path.each(function (childPath) { - recursiveScanChild(childPath, bindings, scopeTypes); - }); - } - else if (namedTypes.Function.check(node)) { - path.get("params").each(function (paramPath) { - addPattern(paramPath, bindings); - }); - recursiveScanChild(path.get("body"), bindings, scopeTypes); - } - else if ((namedTypes.TypeAlias && namedTypes.TypeAlias.check(node)) || - (namedTypes.InterfaceDeclaration && namedTypes.InterfaceDeclaration.check(node)) || - (namedTypes.TSTypeAliasDeclaration && namedTypes.TSTypeAliasDeclaration.check(node)) || - (namedTypes.TSInterfaceDeclaration && namedTypes.TSInterfaceDeclaration.check(node))) { - addTypePattern(path.get("id"), scopeTypes); - } - else if (namedTypes.VariableDeclarator.check(node)) { - addPattern(path.get("id"), bindings); - recursiveScanChild(path.get("init"), bindings, scopeTypes); - } - else if (node.type === "ImportSpecifier" || - node.type === "ImportNamespaceSpecifier" || - node.type === "ImportDefaultSpecifier") { - addPattern( - // Esprima used to use the .name field to refer to the local - // binding identifier for ImportSpecifier nodes, but .id for - // ImportNamespaceSpecifier and ImportDefaultSpecifier nodes. - // ESTree/Acorn/ESpree use .local for all three node types. - path.get(node.local ? "local" : - node.name ? "name" : "id"), bindings); - } - else if (Node.check(node) && !Expression.check(node)) { - types.eachField(node, function (name, child) { - var childPath = path.get(name); - if (!pathHasValue(childPath, child)) { - throw new Error(""); - } - recursiveScanChild(childPath, bindings, scopeTypes); - }); - } - } - function pathHasValue(path, value) { - if (path.value === value) { - return true; - } - // Empty arrays are probably produced by defaults.emptyArray, in which - // case is makes sense to regard them as equivalent, if not ===. - if (Array.isArray(path.value) && - path.value.length === 0 && - Array.isArray(value) && - value.length === 0) { - return true; - } - return false; - } - function recursiveScanChild(path, bindings, scopeTypes) { - var node = path.value; - if (!node || Expression.check(node)) { - // Ignore falsy values and Expressions. - } - else if (namedTypes.FunctionDeclaration.check(node) && - node.id !== null) { - addPattern(path.get("id"), bindings); - } - else if (namedTypes.ClassDeclaration && - namedTypes.ClassDeclaration.check(node)) { - addPattern(path.get("id"), bindings); - } - else if (ScopeType.check(node)) { - if (namedTypes.CatchClause.check(node) && - // TODO Broaden this to accept any pattern. - namedTypes.Identifier.check(node.param)) { - var catchParamName = node.param.name; - var hadBinding = hasOwn.call(bindings, catchParamName); - // Any declarations that occur inside the catch body that do - // not have the same name as the catch parameter should count - // as bindings in the outer scope. - recursiveScanScope(path.get("body"), bindings, scopeTypes); - // If a new binding matching the catch parameter name was - // created while scanning the catch body, ignore it because it - // actually refers to the catch parameter and not the outer - // scope that we're currently scanning. - if (!hadBinding) { - delete bindings[catchParamName]; - } - } - } - else { - recursiveScanScope(path, bindings, scopeTypes); - } - } - function addPattern(patternPath, bindings) { - var pattern = patternPath.value; - namedTypes.Pattern.assert(pattern); - if (namedTypes.Identifier.check(pattern)) { - if (hasOwn.call(bindings, pattern.name)) { - bindings[pattern.name].push(patternPath); - } - else { - bindings[pattern.name] = [patternPath]; - } - } - else if (namedTypes.AssignmentPattern && - namedTypes.AssignmentPattern.check(pattern)) { - addPattern(patternPath.get('left'), bindings); - } - else if (namedTypes.ObjectPattern && - namedTypes.ObjectPattern.check(pattern)) { - patternPath.get('properties').each(function (propertyPath) { - var property = propertyPath.value; - if (namedTypes.Pattern.check(property)) { - addPattern(propertyPath, bindings); - } - else if (namedTypes.Property.check(property)) { - addPattern(propertyPath.get('value'), bindings); - } - else if (namedTypes.SpreadProperty && - namedTypes.SpreadProperty.check(property)) { - addPattern(propertyPath.get('argument'), bindings); - } - }); - } - else if (namedTypes.ArrayPattern && - namedTypes.ArrayPattern.check(pattern)) { - patternPath.get('elements').each(function (elementPath) { - var element = elementPath.value; - if (namedTypes.Pattern.check(element)) { - addPattern(elementPath, bindings); - } - else if (namedTypes.SpreadElement && - namedTypes.SpreadElement.check(element)) { - addPattern(elementPath.get("argument"), bindings); - } - }); - } - else if (namedTypes.PropertyPattern && - namedTypes.PropertyPattern.check(pattern)) { - addPattern(patternPath.get('pattern'), bindings); - } - else if ((namedTypes.SpreadElementPattern && - namedTypes.SpreadElementPattern.check(pattern)) || - (namedTypes.SpreadPropertyPattern && - namedTypes.SpreadPropertyPattern.check(pattern))) { - addPattern(patternPath.get('argument'), bindings); - } - } - function addTypePattern(patternPath, types) { - var pattern = patternPath.value; - namedTypes.Pattern.assert(pattern); - if (namedTypes.Identifier.check(pattern)) { - if (hasOwn.call(types, pattern.name)) { - types[pattern.name].push(patternPath); - } - else { - types[pattern.name] = [patternPath]; - } - } - } - Sp.lookup = function (name) { - for (var scope = this; scope; scope = scope.parent) - if (scope.declares(name)) - break; - return scope; - }; - Sp.lookupType = function (name) { - for (var scope = this; scope; scope = scope.parent) - if (scope.declaresType(name)) - break; - return scope; - }; - Sp.getGlobalScope = function () { - var scope = this; - while (!scope.isGlobal) - scope = scope.parent; - return scope; - }; - return Scope; -} -exports.default = scopePlugin; -module.exports = exports["default"]; - - -/***/ }), - -/***/ 34631: -/***/ ((module, exports, __nccwpck_require__) => { - -"use strict"; -; -Object.defineProperty(exports, "__esModule", ({ value: true })); -var tslib_1 = __nccwpck_require__(4351); -var types_1 = tslib_1.__importDefault(__nccwpck_require__(52619)); -function default_1(fork) { - var types = fork.use(types_1.default); - var Type = types.Type; - var builtin = types.builtInTypes; - var isNumber = builtin.number; - // An example of constructing a new type with arbitrary constraints from - // an existing type. - function geq(than) { - return Type.from(function (value) { return isNumber.check(value) && value >= than; }, isNumber + " >= " + than); - } - ; - // Default value-returning functions that may optionally be passed as a - // third argument to Def.prototype.field. - var defaults = { - // Functions were used because (among other reasons) that's the most - // elegant way to allow for the emptyArray one always to give a new - // array instance. - "null": function () { return null; }, - "emptyArray": function () { return []; }, - "false": function () { return false; }, - "true": function () { return true; }, - "undefined": function () { }, - "use strict": function () { return "use strict"; } - }; - var naiveIsPrimitive = Type.or(builtin.string, builtin.number, builtin.boolean, builtin.null, builtin.undefined); - var isPrimitive = Type.from(function (value) { - if (value === null) - return true; - var type = typeof value; - if (type === "object" || - type === "function") { - return false; - } - return true; - }, naiveIsPrimitive.toString()); - return { - geq: geq, - defaults: defaults, - isPrimitive: isPrimitive, - }; -} -exports.default = default_1; -module.exports = exports["default"]; - - -/***/ }), - -/***/ 52619: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.Def = void 0; -var tslib_1 = __nccwpck_require__(4351); -var Op = Object.prototype; -var objToStr = Op.toString; -var hasOwn = Op.hasOwnProperty; -var BaseType = /** @class */ (function () { - function BaseType() { - } - BaseType.prototype.assert = function (value, deep) { - if (!this.check(value, deep)) { - var str = shallowStringify(value); - throw new Error(str + " does not match type " + this); - } - return true; - }; - BaseType.prototype.arrayOf = function () { - var elemType = this; - return new ArrayType(elemType); - }; - return BaseType; -}()); -var ArrayType = /** @class */ (function (_super) { - tslib_1.__extends(ArrayType, _super); - function ArrayType(elemType) { - var _this = _super.call(this) || this; - _this.elemType = elemType; - _this.kind = "ArrayType"; - return _this; - } - ArrayType.prototype.toString = function () { - return "[" + this.elemType + "]"; - }; - ArrayType.prototype.check = function (value, deep) { - var _this = this; - return Array.isArray(value) && value.every(function (elem) { return _this.elemType.check(elem, deep); }); - }; - return ArrayType; -}(BaseType)); -var IdentityType = /** @class */ (function (_super) { - tslib_1.__extends(IdentityType, _super); - function IdentityType(value) { - var _this = _super.call(this) || this; - _this.value = value; - _this.kind = "IdentityType"; - return _this; - } - IdentityType.prototype.toString = function () { - return String(this.value); - }; - IdentityType.prototype.check = function (value, deep) { - var result = value === this.value; - if (!result && typeof deep === "function") { - deep(this, value); - } - return result; - }; - return IdentityType; -}(BaseType)); -var ObjectType = /** @class */ (function (_super) { - tslib_1.__extends(ObjectType, _super); - function ObjectType(fields) { - var _this = _super.call(this) || this; - _this.fields = fields; - _this.kind = "ObjectType"; - return _this; - } - ObjectType.prototype.toString = function () { - return "{ " + this.fields.join(", ") + " }"; - }; - ObjectType.prototype.check = function (value, deep) { - return (objToStr.call(value) === objToStr.call({}) && - this.fields.every(function (field) { - return field.type.check(value[field.name], deep); - })); - }; - return ObjectType; -}(BaseType)); -var OrType = /** @class */ (function (_super) { - tslib_1.__extends(OrType, _super); - function OrType(types) { - var _this = _super.call(this) || this; - _this.types = types; - _this.kind = "OrType"; - return _this; - } - OrType.prototype.toString = function () { - return this.types.join(" | "); - }; - OrType.prototype.check = function (value, deep) { - return this.types.some(function (type) { - return type.check(value, deep); - }); - }; - return OrType; -}(BaseType)); -var PredicateType = /** @class */ (function (_super) { - tslib_1.__extends(PredicateType, _super); - function PredicateType(name, predicate) { - var _this = _super.call(this) || this; - _this.name = name; - _this.predicate = predicate; - _this.kind = "PredicateType"; - return _this; - } - PredicateType.prototype.toString = function () { - return this.name; - }; - PredicateType.prototype.check = function (value, deep) { - var result = this.predicate(value, deep); - if (!result && typeof deep === "function") { - deep(this, value); - } - return result; - }; - return PredicateType; -}(BaseType)); -var Def = /** @class */ (function () { - function Def(type, typeName) { - this.type = type; - this.typeName = typeName; - this.baseNames = []; - this.ownFields = Object.create(null); - // Includes own typeName. Populated during finalization. - this.allSupertypes = Object.create(null); - // Linear inheritance hierarchy. Populated during finalization. - this.supertypeList = []; - // Includes inherited fields. - this.allFields = Object.create(null); - // Non-hidden keys of allFields. - this.fieldNames = []; - // This property will be overridden as true by individual Def instances - // when they are finalized. - this.finalized = false; - // False by default until .build(...) is called on an instance. - this.buildable = false; - this.buildParams = []; - } - Def.prototype.isSupertypeOf = function (that) { - if (that instanceof Def) { - if (this.finalized !== true || - that.finalized !== true) { - throw new Error(""); - } - return hasOwn.call(that.allSupertypes, this.typeName); - } - else { - throw new Error(that + " is not a Def"); - } - }; - Def.prototype.checkAllFields = function (value, deep) { - var allFields = this.allFields; - if (this.finalized !== true) { - throw new Error("" + this.typeName); - } - function checkFieldByName(name) { - var field = allFields[name]; - var type = field.type; - var child = field.getValue(value); - return type.check(child, deep); - } - return value !== null && - typeof value === "object" && - Object.keys(allFields).every(checkFieldByName); - }; - Def.prototype.bases = function () { - var supertypeNames = []; - for (var _i = 0; _i < arguments.length; _i++) { - supertypeNames[_i] = arguments[_i]; - } - var bases = this.baseNames; - if (this.finalized) { - if (supertypeNames.length !== bases.length) { - throw new Error(""); - } - for (var i = 0; i < supertypeNames.length; i++) { - if (supertypeNames[i] !== bases[i]) { - throw new Error(""); - } - } - return this; - } - supertypeNames.forEach(function (baseName) { - // This indexOf lookup may be O(n), but the typical number of base - // names is very small, and indexOf is a native Array method. - if (bases.indexOf(baseName) < 0) { - bases.push(baseName); - } - }); - return this; // For chaining. - }; - return Def; -}()); -exports.Def = Def; -var Field = /** @class */ (function () { - function Field(name, type, defaultFn, hidden) { - this.name = name; - this.type = type; - this.defaultFn = defaultFn; - this.hidden = !!hidden; - } - Field.prototype.toString = function () { - return JSON.stringify(this.name) + ": " + this.type; - }; - Field.prototype.getValue = function (obj) { - var value = obj[this.name]; - if (typeof value !== "undefined") { - return value; - } - if (typeof this.defaultFn === "function") { - value = this.defaultFn.call(obj); - } - return value; - }; - return Field; -}()); -function shallowStringify(value) { - if (Array.isArray(value)) { - return "[" + value.map(shallowStringify).join(", ") + "]"; - } - if (value && typeof value === "object") { - return "{ " + Object.keys(value).map(function (key) { - return key + ": " + value[key]; - }).join(", ") + " }"; - } - return JSON.stringify(value); -} -function typesPlugin(_fork) { - var Type = { - or: function () { - var types = []; - for (var _i = 0; _i < arguments.length; _i++) { - types[_i] = arguments[_i]; - } - return new OrType(types.map(function (type) { return Type.from(type); })); - }, - from: function (value, name) { - if (value instanceof ArrayType || - value instanceof IdentityType || - value instanceof ObjectType || - value instanceof OrType || - value instanceof PredicateType) { - return value; - } - // The Def type is used as a helper for constructing compound - // interface types for AST nodes. - if (value instanceof Def) { - return value.type; - } - // Support [ElemType] syntax. - if (isArray.check(value)) { - if (value.length !== 1) { - throw new Error("only one element type is permitted for typed arrays"); - } - return new ArrayType(Type.from(value[0])); - } - // Support { someField: FieldType, ... } syntax. - if (isObject.check(value)) { - return new ObjectType(Object.keys(value).map(function (name) { - return new Field(name, Type.from(value[name], name)); - })); - } - if (typeof value === "function") { - var bicfIndex = builtInCtorFns.indexOf(value); - if (bicfIndex >= 0) { - return builtInCtorTypes[bicfIndex]; - } - if (typeof name !== "string") { - throw new Error("missing name"); - } - return new PredicateType(name, value); - } - // As a last resort, toType returns a type that matches any value that - // is === from. This is primarily useful for literal values like - // toType(null), but it has the additional advantage of allowing - // toType to be a total function. - return new IdentityType(value); - }, - // Define a type whose name is registered in a namespace (the defCache) so - // that future definitions will return the same type given the same name. - // In particular, this system allows for circular and forward definitions. - // The Def object d returned from Type.def may be used to configure the - // type d.type by calling methods such as d.bases, d.build, and d.field. - def: function (typeName) { - return hasOwn.call(defCache, typeName) - ? defCache[typeName] - : defCache[typeName] = new DefImpl(typeName); - }, - hasDef: function (typeName) { - return hasOwn.call(defCache, typeName); - } - }; - var builtInCtorFns = []; - var builtInCtorTypes = []; - function defBuiltInType(name, example) { - var objStr = objToStr.call(example); - var type = new PredicateType(name, function (value) { return objToStr.call(value) === objStr; }); - if (example && typeof example.constructor === "function") { - builtInCtorFns.push(example.constructor); - builtInCtorTypes.push(type); - } - return type; - } - // These types check the underlying [[Class]] attribute of the given - // value, rather than using the problematic typeof operator. Note however - // that no subtyping is considered; so, for instance, isObject.check - // returns false for [], /./, new Date, and null. - var isString = defBuiltInType("string", "truthy"); - var isFunction = defBuiltInType("function", function () { }); - var isArray = defBuiltInType("array", []); - var isObject = defBuiltInType("object", {}); - var isRegExp = defBuiltInType("RegExp", /./); - var isDate = defBuiltInType("Date", new Date()); - var isNumber = defBuiltInType("number", 3); - var isBoolean = defBuiltInType("boolean", true); - var isNull = defBuiltInType("null", null); - var isUndefined = defBuiltInType("undefined", undefined); - var builtInTypes = { - string: isString, - function: isFunction, - array: isArray, - object: isObject, - RegExp: isRegExp, - Date: isDate, - number: isNumber, - boolean: isBoolean, - null: isNull, - undefined: isUndefined, - }; - // In order to return the same Def instance every time Type.def is called - // with a particular name, those instances need to be stored in a cache. - var defCache = Object.create(null); - function defFromValue(value) { - if (value && typeof value === "object") { - var type = value.type; - if (typeof type === "string" && - hasOwn.call(defCache, type)) { - var d = defCache[type]; - if (d.finalized) { - return d; - } - } - } - return null; - } - var DefImpl = /** @class */ (function (_super) { - tslib_1.__extends(DefImpl, _super); - function DefImpl(typeName) { - var _this = _super.call(this, new PredicateType(typeName, function (value, deep) { return _this.check(value, deep); }), typeName) || this; - return _this; - } - DefImpl.prototype.check = function (value, deep) { - if (this.finalized !== true) { - throw new Error("prematurely checking unfinalized type " + this.typeName); - } - // A Def type can only match an object value. - if (value === null || typeof value !== "object") { - return false; - } - var vDef = defFromValue(value); - if (!vDef) { - // If we couldn't infer the Def associated with the given value, - // and we expected it to be a SourceLocation or a Position, it was - // probably just missing a "type" field (because Esprima does not - // assign a type property to such nodes). Be optimistic and let - // this.checkAllFields make the final decision. - if (this.typeName === "SourceLocation" || - this.typeName === "Position") { - return this.checkAllFields(value, deep); - } - // Calling this.checkAllFields for any other type of node is both - // bad for performance and way too forgiving. - return false; - } - // If checking deeply and vDef === this, then we only need to call - // checkAllFields once. Calling checkAllFields is too strict when deep - // is false, because then we only care about this.isSupertypeOf(vDef). - if (deep && vDef === this) { - return this.checkAllFields(value, deep); - } - // In most cases we rely exclusively on isSupertypeOf to make O(1) - // subtyping determinations. This suffices in most situations outside - // of unit tests, since interface conformance is checked whenever new - // instances are created using builder functions. - if (!this.isSupertypeOf(vDef)) { - return false; - } - // The exception is when deep is true; then, we recursively check all - // fields. - if (!deep) { - return true; - } - // Use the more specific Def (vDef) to perform the deep check, but - // shallow-check fields defined by the less specific Def (this). - return vDef.checkAllFields(value, deep) - && this.checkAllFields(value, false); - }; - DefImpl.prototype.build = function () { - var _this = this; - var buildParams = []; - for (var _i = 0; _i < arguments.length; _i++) { - buildParams[_i] = arguments[_i]; - } - // Calling Def.prototype.build multiple times has the effect of merely - // redefining this property. - this.buildParams = buildParams; - if (this.buildable) { - // If this Def is already buildable, update self.buildParams and - // continue using the old builder function. - return this; - } - // Every buildable type will have its "type" field filled in - // automatically. This includes types that are not subtypes of Node, - // like SourceLocation, but that seems harmless (TODO?). - this.field("type", String, function () { return _this.typeName; }); - // Override Dp.buildable for this Def instance. - this.buildable = true; - var addParam = function (built, param, arg, isArgAvailable) { - if (hasOwn.call(built, param)) - return; - var all = _this.allFields; - if (!hasOwn.call(all, param)) { - throw new Error("" + param); - } - var field = all[param]; - var type = field.type; - var value; - if (isArgAvailable) { - value = arg; - } - else if (field.defaultFn) { - // Expose the partially-built object to the default - // function as its `this` object. - value = field.defaultFn.call(built); - } - else { - var message = "no value or default function given for field " + - JSON.stringify(param) + " of " + _this.typeName + "(" + - _this.buildParams.map(function (name) { - return all[name]; - }).join(", ") + ")"; - throw new Error(message); - } - if (!type.check(value)) { - throw new Error(shallowStringify(value) + - " does not match field " + field + - " of type " + _this.typeName); - } - built[param] = value; - }; - // Calling the builder function will construct an instance of the Def, - // with positional arguments mapped to the fields original passed to .build. - // If not enough arguments are provided, the default value for the remaining fields - // will be used. - var builder = function () { - var args = []; - for (var _i = 0; _i < arguments.length; _i++) { - args[_i] = arguments[_i]; - } - var argc = args.length; - if (!_this.finalized) { - throw new Error("attempting to instantiate unfinalized type " + - _this.typeName); - } - var built = Object.create(nodePrototype); - _this.buildParams.forEach(function (param, i) { - if (i < argc) { - addParam(built, param, args[i], true); - } - else { - addParam(built, param, null, false); - } - }); - Object.keys(_this.allFields).forEach(function (param) { - // Use the default value. - addParam(built, param, null, false); - }); - // Make sure that the "type" field was filled automatically. - if (built.type !== _this.typeName) { - throw new Error(""); - } - return built; - }; - // Calling .from on the builder function will construct an instance of the Def, - // using field values from the passed object. For fields missing from the passed object, - // their default value will be used. - builder.from = function (obj) { - if (!_this.finalized) { - throw new Error("attempting to instantiate unfinalized type " + - _this.typeName); - } - var built = Object.create(nodePrototype); - Object.keys(_this.allFields).forEach(function (param) { - if (hasOwn.call(obj, param)) { - addParam(built, param, obj[param], true); - } - else { - addParam(built, param, null, false); - } - }); - // Make sure that the "type" field was filled automatically. - if (built.type !== _this.typeName) { - throw new Error(""); - } - return built; - }; - Object.defineProperty(builders, getBuilderName(this.typeName), { - enumerable: true, - value: builder - }); - return this; - }; - // The reason fields are specified using .field(...) instead of an object - // literal syntax is somewhat subtle: the object literal syntax would - // support only one key and one value, but with .field(...) we can pass - // any number of arguments to specify the field. - DefImpl.prototype.field = function (name, type, defaultFn, hidden) { - if (this.finalized) { - console.error("Ignoring attempt to redefine field " + - JSON.stringify(name) + " of finalized type " + - JSON.stringify(this.typeName)); - return this; - } - this.ownFields[name] = new Field(name, Type.from(type), defaultFn, hidden); - return this; // For chaining. - }; - DefImpl.prototype.finalize = function () { - var _this = this; - // It's not an error to finalize a type more than once, but only the - // first call to .finalize does anything. - if (!this.finalized) { - var allFields = this.allFields; - var allSupertypes = this.allSupertypes; - this.baseNames.forEach(function (name) { - var def = defCache[name]; - if (def instanceof Def) { - def.finalize(); - extend(allFields, def.allFields); - extend(allSupertypes, def.allSupertypes); - } - else { - var message = "unknown supertype name " + - JSON.stringify(name) + - " for subtype " + - JSON.stringify(_this.typeName); - throw new Error(message); - } - }); - // TODO Warn if fields are overridden with incompatible types. - extend(allFields, this.ownFields); - allSupertypes[this.typeName] = this; - this.fieldNames.length = 0; - for (var fieldName in allFields) { - if (hasOwn.call(allFields, fieldName) && - !allFields[fieldName].hidden) { - this.fieldNames.push(fieldName); - } - } - // Types are exported only once they have been finalized. - Object.defineProperty(namedTypes, this.typeName, { - enumerable: true, - value: this.type - }); - this.finalized = true; - // A linearization of the inheritance hierarchy. - populateSupertypeList(this.typeName, this.supertypeList); - if (this.buildable && - this.supertypeList.lastIndexOf("Expression") >= 0) { - wrapExpressionBuilderWithStatement(this.typeName); - } - } - }; - return DefImpl; - }(Def)); - // Note that the list returned by this function is a copy of the internal - // supertypeList, *without* the typeName itself as the first element. - function getSupertypeNames(typeName) { - if (!hasOwn.call(defCache, typeName)) { - throw new Error(""); - } - var d = defCache[typeName]; - if (d.finalized !== true) { - throw new Error(""); - } - return d.supertypeList.slice(1); - } - // Returns an object mapping from every known type in the defCache to the - // most specific supertype whose name is an own property of the candidates - // object. - function computeSupertypeLookupTable(candidates) { - var table = {}; - var typeNames = Object.keys(defCache); - var typeNameCount = typeNames.length; - for (var i = 0; i < typeNameCount; ++i) { - var typeName = typeNames[i]; - var d = defCache[typeName]; - if (d.finalized !== true) { - throw new Error("" + typeName); - } - for (var j = 0; j < d.supertypeList.length; ++j) { - var superTypeName = d.supertypeList[j]; - if (hasOwn.call(candidates, superTypeName)) { - table[typeName] = superTypeName; - break; - } - } - } - return table; - } - var builders = Object.create(null); - // This object is used as prototype for any node created by a builder. - var nodePrototype = {}; - // Call this function to define a new method to be shared by all AST - // nodes. The replaced method (if any) is returned for easy wrapping. - function defineMethod(name, func) { - var old = nodePrototype[name]; - // Pass undefined as func to delete nodePrototype[name]. - if (isUndefined.check(func)) { - delete nodePrototype[name]; - } - else { - isFunction.assert(func); - Object.defineProperty(nodePrototype, name, { - enumerable: true, - configurable: true, - value: func - }); - } - return old; - } - function getBuilderName(typeName) { - return typeName.replace(/^[A-Z]+/, function (upperCasePrefix) { - var len = upperCasePrefix.length; - switch (len) { - case 0: return ""; - // If there's only one initial capital letter, just lower-case it. - case 1: return upperCasePrefix.toLowerCase(); - default: - // If there's more than one initial capital letter, lower-case - // all but the last one, so that XMLDefaultDeclaration (for - // example) becomes xmlDefaultDeclaration. - return upperCasePrefix.slice(0, len - 1).toLowerCase() + - upperCasePrefix.charAt(len - 1); - } - }); - } - function getStatementBuilderName(typeName) { - typeName = getBuilderName(typeName); - return typeName.replace(/(Expression)?$/, "Statement"); - } - var namedTypes = {}; - // Like Object.keys, but aware of what fields each AST type should have. - function getFieldNames(object) { - var d = defFromValue(object); - if (d) { - return d.fieldNames.slice(0); - } - if ("type" in object) { - throw new Error("did not recognize object of type " + - JSON.stringify(object.type)); - } - return Object.keys(object); - } - // Get the value of an object property, taking object.type and default - // functions into account. - function getFieldValue(object, fieldName) { - var d = defFromValue(object); - if (d) { - var field = d.allFields[fieldName]; - if (field) { - return field.getValue(object); - } - } - return object && object[fieldName]; - } - // Iterate over all defined fields of an object, including those missing - // or undefined, passing each field name and effective value (as returned - // by getFieldValue) to the callback. If the object has no corresponding - // Def, the callback will never be called. - function eachField(object, callback, context) { - getFieldNames(object).forEach(function (name) { - callback.call(this, name, getFieldValue(object, name)); - }, context); - } - // Similar to eachField, except that iteration stops as soon as the - // callback returns a truthy value. Like Array.prototype.some, the final - // result is either true or false to indicates whether the callback - // returned true for any element or not. - function someField(object, callback, context) { - return getFieldNames(object).some(function (name) { - return callback.call(this, name, getFieldValue(object, name)); - }, context); - } - // Adds an additional builder for Expression subtypes - // that wraps the built Expression in an ExpressionStatements. - function wrapExpressionBuilderWithStatement(typeName) { - var wrapperName = getStatementBuilderName(typeName); - // skip if the builder already exists - if (builders[wrapperName]) - return; - // the builder function to wrap with builders.ExpressionStatement - var wrapped = builders[getBuilderName(typeName)]; - // skip if there is nothing to wrap - if (!wrapped) - return; - var builder = function () { - var args = []; - for (var _i = 0; _i < arguments.length; _i++) { - args[_i] = arguments[_i]; - } - return builders.expressionStatement(wrapped.apply(builders, args)); - }; - builder.from = function () { - var args = []; - for (var _i = 0; _i < arguments.length; _i++) { - args[_i] = arguments[_i]; - } - return builders.expressionStatement(wrapped.from.apply(builders, args)); - }; - builders[wrapperName] = builder; - } - function populateSupertypeList(typeName, list) { - list.length = 0; - list.push(typeName); - var lastSeen = Object.create(null); - for (var pos = 0; pos < list.length; ++pos) { - typeName = list[pos]; - var d = defCache[typeName]; - if (d.finalized !== true) { - throw new Error(""); - } - // If we saw typeName earlier in the breadth-first traversal, - // delete the last-seen occurrence. - if (hasOwn.call(lastSeen, typeName)) { - delete list[lastSeen[typeName]]; - } - // Record the new index of the last-seen occurrence of typeName. - lastSeen[typeName] = pos; - // Enqueue the base names of this type. - list.push.apply(list, d.baseNames); - } - // Compaction loop to remove array holes. - for (var to = 0, from = to, len = list.length; from < len; ++from) { - if (hasOwn.call(list, from)) { - list[to++] = list[from]; - } - } - list.length = to; - } - function extend(into, from) { - Object.keys(from).forEach(function (name) { - into[name] = from[name]; - }); - return into; - } - function finalize() { - Object.keys(defCache).forEach(function (name) { - defCache[name].finalize(); - }); - } - return { - Type: Type, - builtInTypes: builtInTypes, - getSupertypeNames: getSupertypeNames, - computeSupertypeLookupTable: computeSupertypeLookupTable, - builders: builders, - defineMethod: defineMethod, - getBuilderName: getBuilderName, - getStatementBuilderName: getStatementBuilderName, - namedTypes: namedTypes, - getFieldNames: getFieldNames, - getFieldValue: getFieldValue, - eachField: eachField, - someField: someField, - finalize: finalize, - }; -} -exports.default = typesPlugin; -; - - -/***/ }), - -/***/ 27012: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.visit = exports.use = exports.Type = exports.someField = exports.PathVisitor = exports.Path = exports.NodePath = exports.namedTypes = exports.getSupertypeNames = exports.getFieldValue = exports.getFieldNames = exports.getBuilderName = exports.finalize = exports.eachField = exports.defineMethod = exports.builtInTypes = exports.builders = exports.astNodesAreEquivalent = void 0; -var tslib_1 = __nccwpck_require__(4351); -var fork_1 = tslib_1.__importDefault(__nccwpck_require__(20253)); -var core_1 = tslib_1.__importDefault(__nccwpck_require__(66604)); -var es6_1 = tslib_1.__importDefault(__nccwpck_require__(68127)); -var es7_1 = tslib_1.__importDefault(__nccwpck_require__(75351)); -var es2020_1 = tslib_1.__importDefault(__nccwpck_require__(48975)); -var jsx_1 = tslib_1.__importDefault(__nccwpck_require__(27572)); -var flow_1 = tslib_1.__importDefault(__nccwpck_require__(60368)); -var esprima_1 = tslib_1.__importDefault(__nccwpck_require__(96817)); -var babel_1 = tslib_1.__importDefault(__nccwpck_require__(92262)); -var typescript_1 = tslib_1.__importDefault(__nccwpck_require__(16743)); -var es_proposals_1 = tslib_1.__importDefault(__nccwpck_require__(32207)); -var namedTypes_1 = __nccwpck_require__(24143); -Object.defineProperty(exports, "namedTypes", ({ enumerable: true, get: function () { return namedTypes_1.namedTypes; } })); -var _a = fork_1.default([ - // This core module of AST types captures ES5 as it is parsed today by - // git://github.com/ariya/esprima.git#master. - core_1.default, - // Feel free to add to or remove from this list of extension modules to - // configure the precise type hierarchy that you need. - es6_1.default, - es7_1.default, - es2020_1.default, - jsx_1.default, - flow_1.default, - esprima_1.default, - babel_1.default, - typescript_1.default, - es_proposals_1.default, -]), astNodesAreEquivalent = _a.astNodesAreEquivalent, builders = _a.builders, builtInTypes = _a.builtInTypes, defineMethod = _a.defineMethod, eachField = _a.eachField, finalize = _a.finalize, getBuilderName = _a.getBuilderName, getFieldNames = _a.getFieldNames, getFieldValue = _a.getFieldValue, getSupertypeNames = _a.getSupertypeNames, n = _a.namedTypes, NodePath = _a.NodePath, Path = _a.Path, PathVisitor = _a.PathVisitor, someField = _a.someField, Type = _a.Type, use = _a.use, visit = _a.visit; -exports.astNodesAreEquivalent = astNodesAreEquivalent; -exports.builders = builders; -exports.builtInTypes = builtInTypes; -exports.defineMethod = defineMethod; -exports.eachField = eachField; -exports.finalize = finalize; -exports.getBuilderName = getBuilderName; -exports.getFieldNames = getFieldNames; -exports.getFieldValue = getFieldValue; -exports.getSupertypeNames = getSupertypeNames; -exports.NodePath = NodePath; -exports.Path = Path; -exports.PathVisitor = PathVisitor; -exports.someField = someField; -exports.Type = Type; -exports.use = use; -exports.visit = visit; -// Populate the exported fields of the namedTypes namespace, while still -// retaining its member types. -Object.assign(namedTypes_1.namedTypes, n); - - -/***/ }), - -/***/ 86966: -/***/ ((module) => { - -"use strict"; + * @author Toru Nagashima + * @copyright 2015 Toru Nagashima. All rights reserved. + * See LICENSE file in root directory for full license. + */Object.defineProperty(s,"__esModule",{value:true});const i=new WeakMap;const a=new WeakMap;function pd(r){const s=i.get(r);console.assert(s!=null,"'this' is expected an Event object, but got",r);return s}function setCancelFlag(r){if(r.passiveListener!=null){if(typeof console!=="undefined"&&typeof console.error==="function"){console.error("Unable to preventDefault inside passive event listener invocation.",r.passiveListener)}return}if(!r.event.cancelable){return}r.canceled=true;if(typeof r.event.preventDefault==="function"){r.event.preventDefault()}}function Event(r,s){i.set(this,{eventTarget:r,event:s,eventPhase:2,currentTarget:r,canceled:false,stopped:false,immediateStopped:false,passiveListener:null,timeStamp:s.timeStamp||Date.now()});Object.defineProperty(this,"isTrusted",{value:false,enumerable:true});const a=Object.keys(s);for(let r=0;r0){const r=new Array(arguments.length);for(let s=0;s{r.exports=class FixedFIFO{constructor(r){if(!(r>0)||(r-1&r)!==0)throw new Error("Max size for a FixedFIFO should be a power of two");this.buffer=new Array(r);this.mask=r-1;this.top=0;this.btm=0;this.next=null}clear(){this.top=this.btm=0;this.next=null;this.buffer.fill(undefined)}push(r){if(this.buffer[this.top]!==undefined)return false;this.buffer[this.top]=r;this.top=this.top+1&this.mask;return true}shift(){const r=this.buffer[this.btm];if(r===undefined)return undefined;this.buffer[this.btm]=undefined;this.btm=this.btm+1&this.mask;return r}peek(){return this.buffer[this.btm]}isEmpty(){return this.buffer[this.btm]===undefined}}},92958:(r,s,i)=>{const a=i(27030);r.exports=class FastFIFO{constructor(r){this.hwm=r||16;this.head=new a(this.hwm);this.tail=this.head;this.length=0}clear(){this.head=this.tail;this.head.clear();this.length=0}push(r){this.length++;if(!this.head.push(r)){const s=this.head;this.head=s.next=new a(2*this.head.buffer.length);this.head.push(r)}}shift(){if(this.length!==0)this.length--;const r=this.tail.shift();if(r===undefined&&this.tail.next){const r=this.tail.next;this.tail.next=null;this.tail=r;return this.tail.shift()}return r}peek(){const r=this.tail.peek();if(r===undefined&&this.tail.next)return this.tail.next.peek();return r}isEmpty(){return this.length===0}}},12603:(r,s,i)=>{"use strict";const a=i(61739);const A=i(42380);const c=i(80660);r.exports={XMLParser:A,XMLValidator:a,XMLBuilder:c}},38280:(r,s)=>{"use strict";const i=":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";const a=i+"\\-.\\d\\u00B7\\u0300-\\u036F\\u203F-\\u2040";const A="["+i+"]["+a+"]*";const c=new RegExp("^"+A+"$");const getAllMatches=function(r,s){const i=[];let a=s.exec(r);while(a){const A=[];A.startIndex=s.lastIndex-a[0].length;const c=a.length;for(let r=0;r{"use strict";const a=i(38280);const A={allowBooleanAttributes:false,unpairedTags:[]};s.validate=function(r,s){s=Object.assign({},A,s);const i=[];let a=false;let c=false;if(r[0]==="\ufeff"){r=r.substr(1)}for(let A=0;A"&&r[A]!==" "&&r[A]!=="\t"&&r[A]!=="\n"&&r[A]!=="\r";A++){u+=r[A]}u=u.trim();if(u[u.length-1]==="/"){u=u.substring(0,u.length-1);A--}if(!validateTagName(u)){let s;if(u.trim().length===0){s="Invalid space after '<'."}else{s="Tag '"+u+"' is an invalid name."}return getErrorObject("InvalidTag",s,getLineNumberForPosition(r,A))}const p=readAttributeStr(r,A);if(p===false){return getErrorObject("InvalidAttr","Attributes for '"+u+"' have open quote.",getLineNumberForPosition(r,A))}let g=p.value;A=p.index;if(g[g.length-1]==="/"){const i=A-g.length;g=g.substring(0,g.length-1);const c=validateAttributeString(g,s);if(c===true){a=true}else{return getErrorObject(c.err.code,c.err.msg,getLineNumberForPosition(r,i+c.err.line))}}else if(d){if(!p.tagClosed){return getErrorObject("InvalidTag","Closing tag '"+u+"' doesn't have proper closing.",getLineNumberForPosition(r,A))}else if(g.trim().length>0){return getErrorObject("InvalidTag","Closing tag '"+u+"' can't have attributes or invalid starting.",getLineNumberForPosition(r,l))}else if(i.length===0){return getErrorObject("InvalidTag","Closing tag '"+u+"' has not been opened.",getLineNumberForPosition(r,l))}else{const s=i.pop();if(u!==s.tagName){let i=getLineNumberForPosition(r,s.tagStartPos);return getErrorObject("InvalidTag","Expected closing tag '"+s.tagName+"' (opened in line "+i.line+", col "+i.col+") instead of closing tag '"+u+"'.",getLineNumberForPosition(r,l))}if(i.length==0){c=true}}}else{const d=validateAttributeString(g,s);if(d!==true){return getErrorObject(d.err.code,d.err.msg,getLineNumberForPosition(r,A-g.length+d.err.line))}if(c===true){return getErrorObject("InvalidXml","Multiple possible root nodes found.",getLineNumberForPosition(r,A))}else if(s.unpairedTags.indexOf(u)!==-1){}else{i.push({tagName:u,tagStartPos:l})}a=true}for(A++;A0){return getErrorObject("InvalidXml","Invalid '"+JSON.stringify(i.map((r=>r.tagName)),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1})}return true};function isWhiteSpace(r){return r===" "||r==="\t"||r==="\n"||r==="\r"}function readPI(r,s){const i=s;for(;s5&&a==="xml"){return getErrorObject("InvalidXml","XML declaration allowed only at the start of the document.",getLineNumberForPosition(r,s))}else if(r[s]=="?"&&r[s+1]==">"){s++;break}else{continue}}}return s}function readCommentAndCDATA(r,s){if(r.length>s+5&&r[s+1]==="-"&&r[s+2]==="-"){for(s+=3;s"){s+=2;break}}}else if(r.length>s+8&&r[s+1]==="D"&&r[s+2]==="O"&&r[s+3]==="C"&&r[s+4]==="T"&&r[s+5]==="Y"&&r[s+6]==="P"&&r[s+7]==="E"){let i=1;for(s+=8;s"){i--;if(i===0){break}}}}else if(r.length>s+9&&r[s+1]==="["&&r[s+2]==="C"&&r[s+3]==="D"&&r[s+4]==="A"&&r[s+5]==="T"&&r[s+6]==="A"&&r[s+7]==="["){for(s+=8;s"){s+=2;break}}}return s}const c='"';const l="'";function readAttributeStr(r,s){let i="";let a="";let A=false;for(;s"){if(a===""){A=true;break}}i+=r[s]}if(a!==""){return false}return{value:i,index:s,tagClosed:A}}const d=new RegExp("(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['\"])(([\\s\\S])*?)\\5)?","g");function validateAttributeString(r,s){const i=a.getAllMatches(r,d);const A={};for(let r=0;r{"use strict";const a=i(72462);const A={attributeNamePrefix:"@_",attributesGroupName:false,textNodeName:"#text",ignoreAttributes:true,cdataPropName:false,format:false,indentBy:" ",suppressEmptyNode:false,suppressUnpairedNode:true,suppressBooleanAttributes:true,tagValueProcessor:function(r,s){return s},attributeValueProcessor:function(r,s){return s},preserveOrder:false,commentPropName:false,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:true,stopNodes:[],oneListGroup:false};function Builder(r){this.options=Object.assign({},A,r);if(this.options.ignoreAttributes||this.options.attributesGroupName){this.isAttribute=function(){return false}}else{this.attrPrefixLen=this.options.attributeNamePrefix.length;this.isAttribute=isAttribute}this.processTextOrObjNode=processTextOrObjNode;if(this.options.format){this.indentate=indentate;this.tagEndChar=">\n";this.newLine="\n"}else{this.indentate=function(){return""};this.tagEndChar=">";this.newLine=""}}Builder.prototype.build=function(r){if(this.options.preserveOrder){return a(r,this.options)}else{if(Array.isArray(r)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1){r={[this.options.arrayNodeName]:r}}return this.j2x(r,0).val}};Builder.prototype.j2x=function(r,s){let i="";let a="";for(let A in r){if(!Object.prototype.hasOwnProperty.call(r,A))continue;if(typeof r[A]==="undefined"){if(this.isAttribute(A)){a+=""}}else if(r[A]===null){if(this.isAttribute(A)){a+=""}else if(A[0]==="?"){a+=this.indentate(s)+"<"+A+"?"+this.tagEndChar}else{a+=this.indentate(s)+"<"+A+"/"+this.tagEndChar}}else if(r[A]instanceof Date){a+=this.buildTextValNode(r[A],A,"",s)}else if(typeof r[A]!=="object"){const c=this.isAttribute(A);if(c){i+=this.buildAttrPairStr(c,""+r[A])}else{if(A===this.options.textNodeName){let s=this.options.tagValueProcessor(A,""+r[A]);a+=this.replaceEntitiesValue(s)}else{a+=this.buildTextValNode(r[A],A,"",s)}}}else if(Array.isArray(r[A])){const i=r[A].length;let c="";let l="";for(let d=0;d"+r+A}else if(this.options.commentPropName!==false&&s===this.options.commentPropName&&c.length===0){return this.indentate(a)+`\x3c!--${r}--\x3e`+this.newLine}else{return this.indentate(a)+"<"+s+i+c+this.tagEndChar+r+this.indentate(a)+A}}};Builder.prototype.closeTag=function(r){let s="";if(this.options.unpairedTags.indexOf(r)!==-1){if(!this.options.suppressUnpairedNode)s="/"}else if(this.options.suppressEmptyNode){s="/"}else{s=`>`+this.newLine}else if(this.options.commentPropName!==false&&s===this.options.commentPropName){return this.indentate(a)+`\x3c!--${r}--\x3e`+this.newLine}else if(s[0]==="?"){return this.indentate(a)+"<"+s+i+"?"+this.tagEndChar}else{let A=this.options.tagValueProcessor(s,r);A=this.replaceEntitiesValue(A);if(A===""){return this.indentate(a)+"<"+s+i+this.closeTag(s)+this.tagEndChar}else{return this.indentate(a)+"<"+s+i+">"+A+"0&&this.options.processEntities){for(let s=0;s{const s="\n";function toXml(r,i){let a="";if(i.format&&i.indentBy.length>0){a=s}return arrToStr(r,i,"",a)}function arrToStr(r,s,i,a){let A="";let c=false;for(let l=0;l`;c=false;continue}else if(u===s.commentPropName){A+=a+`\x3c!--${d[u][0][s.textNodeName]}--\x3e`;c=true;continue}else if(u[0]==="?"){const r=attr_to_str(d[":@"],s);const i=u==="?xml"?"":a;let l=d[u][0][s.textNodeName];l=l.length!==0?" "+l:"";A+=i+`<${u}${l}${r}?>`;c=true;continue}let g=a;if(g!==""){g+=s.indentBy}const h=attr_to_str(d[":@"],s);const C=a+`<${u}${h}`;const y=arrToStr(d[u],s,p,g);if(s.unpairedTags.indexOf(u)!==-1){if(s.suppressUnpairedNode)A+=C+">";else A+=C+"/>"}else if((!y||y.length===0)&&s.suppressEmptyNode){A+=C+"/>"}else if(y&&y.endsWith(">")){A+=C+`>${y}${a}`}else{A+=C+">";if(y&&a!==""&&(y.includes("/>")||y.includes("`}c=true}return A}function propName(r){const s=Object.keys(r);for(let i=0;i0&&s.processEntities){for(let i=0;i{const a=i(38280);function readDocType(r,s){const i={};if(r[s+3]==="O"&&r[s+4]==="C"&&r[s+5]==="T"&&r[s+6]==="Y"&&r[s+7]==="P"&&r[s+8]==="E"){s=s+9;let a=1;let A=false,c=false;let l="";for(;s"){if(c){if(r[s-1]==="-"&&r[s-2]==="-"){c=false;a--}}else{a--}if(a===0){break}}else if(r[s]==="["){A=true}else{l+=r[s]}}if(a!==0){throw new Error(`Unclosed DOCTYPE`)}}else{throw new Error(`Invalid Tag instead of DOCTYPE`)}return{entities:i,i:s}}function readEntityExp(r,s){let i="";for(;s{const i={preserveOrder:false,attributeNamePrefix:"@_",attributesGroupName:false,textNodeName:"#text",ignoreAttributes:true,removeNSPrefix:false,allowBooleanAttributes:false,parseTagValue:true,parseAttributeValue:false,trimValues:true,cdataPropName:false,numberParseOptions:{hex:true,leadingZeros:true,eNotation:true},tagValueProcessor:function(r,s){return s},attributeValueProcessor:function(r,s){return s},stopNodes:[],alwaysCreateTextNode:false,isArray:()=>false,commentPropName:false,unpairedTags:[],processEntities:true,htmlEntities:false,ignoreDeclaration:false,ignorePiTags:false,transformTagName:false,transformAttributeName:false,updateTag:function(r,s,i){return r}};const buildOptions=function(r){return Object.assign({},i,r)};s.buildOptions=buildOptions;s.defaultOptions=i},25832:(r,s,i)=>{"use strict";const a=i(38280);const A=i(7462);const c=i(6072);const l=i(14526);class OrderedObjParser{constructor(r){this.options=r;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:(r,s)=>String.fromCharCode(Number.parseInt(s,10))},num_hex:{regex:/&#x([0-9a-fA-F]{1,6});/g,val:(r,s)=>String.fromCharCode(Number.parseInt(s,16))}};this.addExternalEntities=addExternalEntities;this.parseXml=parseXml;this.parseTextData=parseTextData;this.resolveNameSpace=resolveNameSpace;this.buildAttributesMap=buildAttributesMap;this.isItStopNode=isItStopNode;this.replaceEntitiesValue=replaceEntitiesValue;this.readStopNodeData=readStopNodeData;this.saveTextToParentTag=saveTextToParentTag;this.addChild=addChild}}function addExternalEntities(r){const s=Object.keys(r);for(let i=0;i0){if(!l)r=this.replaceEntitiesValue(r);const a=this.options.tagValueProcessor(s,r,i,A,c);if(a===null||a===undefined){return r}else if(typeof a!==typeof r||a!==r){return a}else if(this.options.trimValues){return parseValue(r,this.options.parseTagValue,this.options.numberParseOptions)}else{const s=r.trim();if(s===r){return parseValue(r,this.options.parseTagValue,this.options.numberParseOptions)}else{return r}}}}}function resolveNameSpace(r){if(this.options.removeNSPrefix){const s=r.split(":");const i=r.charAt(0)==="/"?"/":"";if(s[0]==="xmlns"){return""}if(s.length===2){r=i+s[1]}}return r}const d=new RegExp("([^\\s=]+)\\s*(=\\s*(['\"])([\\s\\S]*?)\\3)?","gm");function buildAttributesMap(r,s,i){if(!this.options.ignoreAttributes&&typeof r==="string"){const i=a.getAllMatches(r,d);const A=i.length;const c={};for(let r=0;r",d,"Closing Tag is not closed.");let A=r.substring(d+2,s).trim();if(this.options.removeNSPrefix){const r=A.indexOf(":");if(r!==-1){A=A.substr(r+1)}}if(this.options.transformTagName){A=this.options.transformTagName(A)}if(i){a=this.saveTextToParentTag(a,i,l)}const c=l.substring(l.lastIndexOf(".")+1);if(A&&this.options.unpairedTags.indexOf(A)!==-1){throw new Error(`Unpaired tag can not be used as closing tag: `)}let u=0;if(c&&this.options.unpairedTags.indexOf(c)!==-1){u=l.lastIndexOf(".",l.lastIndexOf(".")-1);this.tagsNodeStack.pop()}else{u=l.lastIndexOf(".")}l=l.substring(0,u);i=this.tagsNodeStack.pop();a="";d=s}else if(r[d+1]==="?"){let s=readTagExp(r,d,false,"?>");if(!s)throw new Error("Pi Tag is not closed.");a=this.saveTextToParentTag(a,i,l);if(this.options.ignoreDeclaration&&s.tagName==="?xml"||this.options.ignorePiTags){}else{const r=new A(s.tagName);r.add(this.options.textNodeName,"");if(s.tagName!==s.tagExp&&s.attrExpPresent){r[":@"]=this.buildAttributesMap(s.tagExp,l,s.tagName)}this.addChild(i,r,l)}d=s.closeIndex+1}else if(r.substr(d+1,3)==="!--"){const s=findClosingIndex(r,"--\x3e",d+4,"Comment is not closed.");if(this.options.commentPropName){const A=r.substring(d+4,s-2);a=this.saveTextToParentTag(a,i,l);i.add(this.options.commentPropName,[{[this.options.textNodeName]:A}])}d=s}else if(r.substr(d+1,2)==="!D"){const s=c(r,d);this.docTypeEntities=s.entities;d=s.i}else if(r.substr(d+1,2)==="!["){const s=findClosingIndex(r,"]]>",d,"CDATA is not closed.")-2;const A=r.substring(d+9,s);a=this.saveTextToParentTag(a,i,l);let c=this.parseTextData(A,i.tagname,l,true,false,true,true);if(c==undefined)c="";if(this.options.cdataPropName){i.add(this.options.cdataPropName,[{[this.options.textNodeName]:A}])}else{i.add(this.options.textNodeName,c)}d=s+2}else{let c=readTagExp(r,d,this.options.removeNSPrefix);let u=c.tagName;const p=c.rawTagName;let g=c.tagExp;let h=c.attrExpPresent;let C=c.closeIndex;if(this.options.transformTagName){u=this.options.transformTagName(u)}if(i&&a){if(i.tagname!=="!xml"){a=this.saveTextToParentTag(a,i,l,false)}}const y=i;if(y&&this.options.unpairedTags.indexOf(y.tagname)!==-1){i=this.tagsNodeStack.pop();l=l.substring(0,l.lastIndexOf("."))}if(u!==s.tagname){l+=l?"."+u:u}if(this.isItStopNode(this.options.stopNodes,l,u)){let s="";if(g.length>0&&g.lastIndexOf("/")===g.length-1){if(u[u.length-1]==="/"){u=u.substr(0,u.length-1);l=l.substr(0,l.length-1);g=u}else{g=g.substr(0,g.length-1)}d=c.closeIndex}else if(this.options.unpairedTags.indexOf(u)!==-1){d=c.closeIndex}else{const i=this.readStopNodeData(r,p,C+1);if(!i)throw new Error(`Unexpected end of ${p}`);d=i.i;s=i.tagContent}const a=new A(u);if(u!==g&&h){a[":@"]=this.buildAttributesMap(g,l,u)}if(s){s=this.parseTextData(s,u,l,true,h,true,true)}l=l.substr(0,l.lastIndexOf("."));a.add(this.options.textNodeName,s);this.addChild(i,a,l)}else{if(g.length>0&&g.lastIndexOf("/")===g.length-1){if(u[u.length-1]==="/"){u=u.substr(0,u.length-1);l=l.substr(0,l.length-1);g=u}else{g=g.substr(0,g.length-1)}if(this.options.transformTagName){u=this.options.transformTagName(u)}const r=new A(u);if(u!==g&&h){r[":@"]=this.buildAttributesMap(g,l,u)}this.addChild(i,r,l);l=l.substr(0,l.lastIndexOf("."))}else{const r=new A(u);this.tagsNodeStack.push(i);if(u!==g&&h){r[":@"]=this.buildAttributesMap(g,l,u)}this.addChild(i,r,l);i=r}a="";d=C}}}else{a+=r[d]}}return s.child};function addChild(r,s,i){const a=this.options.updateTag(s.tagname,i,s[":@"]);if(a===false){}else if(typeof a==="string"){s.tagname=a;r.addChild(s)}else{r.addChild(s)}}const replaceEntitiesValue=function(r){if(this.options.processEntities){for(let s in this.docTypeEntities){const i=this.docTypeEntities[s];r=r.replace(i.regx,i.val)}for(let s in this.lastEntities){const i=this.lastEntities[s];r=r.replace(i.regex,i.val)}if(this.options.htmlEntities){for(let s in this.htmlEntities){const i=this.htmlEntities[s];r=r.replace(i.regex,i.val)}}r=r.replace(this.ampEntity.regex,this.ampEntity.val)}return r};function saveTextToParentTag(r,s,i,a){if(r){if(a===undefined)a=Object.keys(s.child).length===0;r=this.parseTextData(r,s.tagname,i,false,s[":@"]?Object.keys(s[":@"]).length!==0:false,a);if(r!==undefined&&r!=="")s.add(this.options.textNodeName,r);r=""}return r}function isItStopNode(r,s,i){const a="*."+i;for(const i in r){const A=r[i];if(a===A||s===A)return true}return false}function tagExpWithClosingIndex(r,s,i=">"){let a;let A="";for(let c=s;c",i,`${s} is not closed`);let l=r.substring(i+2,c).trim();if(l===s){A--;if(A===0){return{tagContent:r.substring(a,i),i:c}}}i=c}else if(r[i+1]==="?"){const s=findClosingIndex(r,"?>",i+1,"StopNode is not closed.");i=s}else if(r.substr(i+1,3)==="!--"){const s=findClosingIndex(r,"--\x3e",i+3,"StopNode is not closed.");i=s}else if(r.substr(i+1,2)==="!["){const s=findClosingIndex(r,"]]>",i,"StopNode is not closed.")-2;i=s}else{const a=readTagExp(r,i,">");if(a){const r=a&&a.tagName;if(r===s&&a.tagExp[a.tagExp.length-1]!=="/"){A++}i=a.closeIndex}}}}}function parseValue(r,s,i){if(s&&typeof r==="string"){const s=r.trim();if(s==="true")return true;else if(s==="false")return false;else return l(r,i)}else{if(a.isExist(r)){return r}else{return""}}}r.exports=OrderedObjParser},42380:(r,s,i)=>{const{buildOptions:a}=i(86993);const A=i(25832);const{prettify:c}=i(42882);const l=i(61739);class XMLParser{constructor(r){this.externalEntities={};this.options=a(r)}parse(r,s){if(typeof r==="string"){}else if(r.toString){r=r.toString()}else{throw new Error("XML data is accepted in String or Bytes[] form.")}if(s){if(s===true)s={};const i=l.validate(r,s);if(i!==true){throw Error(`${i.err.msg}:${i.err.line}:${i.err.col}`)}}const i=new A(this.options);i.addExternalEntities(this.externalEntities);const a=i.parseXml(r);if(this.options.preserveOrder||a===undefined)return a;else return c(a,this.options)}addEntity(r,s){if(s.indexOf("&")!==-1){throw new Error("Entity value can't have '&'")}else if(r.indexOf("&")!==-1||r.indexOf(";")!==-1){throw new Error("An entity must be set without '&' and ';'. Eg. use '#xD' for ' '")}else if(s==="&"){throw new Error("An entity with value '&' is not permitted")}else{this.externalEntities[r]=s}}}r.exports=XMLParser},42882:(r,s)=>{"use strict";function prettify(r,s){return compress(r,s)}function compress(r,s,i){let a;const A={};for(let c=0;c0)A[s.textNodeName]=a}else if(a!==undefined)A[s.textNodeName]=a;return A}function propName(r){const s=Object.keys(r);for(let r=0;r{"use strict";class XmlNode{constructor(r){this.tagname=r;this.child=[];this[":@"]={}}add(r,s){if(r==="__proto__")r="#__proto__";this.child.push({[r]:s})}addChild(r){if(r.tagname==="__proto__")r.tagname="#__proto__";if(r[":@"]&&Object.keys(r[":@"]).length>0){this.child.push({[r.tagname]:r.child,[":@"]:r[":@"]})}else{this.child.push({[r.tagname]:r.child})}}}r.exports=XmlNode},31621:r=>{"use strict";r.exports=(r,s=process.argv)=>{const i=r.startsWith("-")?"":r.length===1?"-":"--";const a=s.indexOf(i+r);const A=s.indexOf("--");return a!==-1&&(A===-1||a\u20D2|\u205F\u200A|\u219D\u0338|\u2202\u0338|\u2220\u20D2|\u2229\uFE00|\u222A\uFE00|\u223C\u20D2|\u223D\u0331|\u223E\u0333|\u2242\u0338|\u224B\u0338|\u224D\u20D2|\u224E\u0338|\u224F\u0338|\u2250\u0338|\u2261\u20E5|\u2264\u20D2|\u2265\u20D2|\u2266\u0338|\u2267\u0338|\u2268\uFE00|\u2269\uFE00|\u226A\u0338|\u226A\u20D2|\u226B\u0338|\u226B\u20D2|\u227F\u0338|\u2282\u20D2|\u2283\u20D2|\u228A\uFE00|\u228B\uFE00|\u228F\u0338|\u2290\u0338|\u2293\uFE00|\u2294\uFE00|\u22B4\u20D2|\u22B5\u20D2|\u22D8\u0338|\u22D9\u0338|\u22DA\uFE00|\u22DB\uFE00|\u22F5\u0338|\u22F9\u0338|\u2933\u0338|\u29CF\u0338|\u29D0\u0338|\u2A6D\u0338|\u2A70\u0338|\u2A7D\u0338|\u2A7E\u0338|\u2AA1\u0338|\u2AA2\u0338|\u2AAC\uFE00|\u2AAD\uFE00|\u2AAF\u0338|\u2AB0\u0338|\u2AC5\u0338|\u2AC6\u0338|\u2ACB\uFE00|\u2ACC\uFE00|\u2AFD\u20E5|[\xA0-\u0113\u0116-\u0122\u0124-\u012B\u012E-\u014D\u0150-\u017E\u0192\u01B5\u01F5\u0237\u02C6\u02C7\u02D8-\u02DD\u0311\u0391-\u03A1\u03A3-\u03A9\u03B1-\u03C9\u03D1\u03D2\u03D5\u03D6\u03DC\u03DD\u03F0\u03F1\u03F5\u03F6\u0401-\u040C\u040E-\u044F\u0451-\u045C\u045E\u045F\u2002-\u2005\u2007-\u2010\u2013-\u2016\u2018-\u201A\u201C-\u201E\u2020-\u2022\u2025\u2026\u2030-\u2035\u2039\u203A\u203E\u2041\u2043\u2044\u204F\u2057\u205F-\u2063\u20AC\u20DB\u20DC\u2102\u2105\u210A-\u2113\u2115-\u211E\u2122\u2124\u2127-\u2129\u212C\u212D\u212F-\u2131\u2133-\u2138\u2145-\u2148\u2153-\u215E\u2190-\u219B\u219D-\u21A7\u21A9-\u21AE\u21B0-\u21B3\u21B5-\u21B7\u21BA-\u21DB\u21DD\u21E4\u21E5\u21F5\u21FD-\u2205\u2207-\u2209\u220B\u220C\u220F-\u2214\u2216-\u2218\u221A\u221D-\u2238\u223A-\u2257\u2259\u225A\u225C\u225F-\u2262\u2264-\u228B\u228D-\u229B\u229D-\u22A5\u22A7-\u22B0\u22B2-\u22BB\u22BD-\u22DB\u22DE-\u22E3\u22E6-\u22F7\u22F9-\u22FE\u2305\u2306\u2308-\u2310\u2312\u2313\u2315\u2316\u231C-\u231F\u2322\u2323\u232D\u232E\u2336\u233D\u233F\u237C\u23B0\u23B1\u23B4-\u23B6\u23DC-\u23DF\u23E2\u23E7\u2423\u24C8\u2500\u2502\u250C\u2510\u2514\u2518\u251C\u2524\u252C\u2534\u253C\u2550-\u256C\u2580\u2584\u2588\u2591-\u2593\u25A1\u25AA\u25AB\u25AD\u25AE\u25B1\u25B3-\u25B5\u25B8\u25B9\u25BD-\u25BF\u25C2\u25C3\u25CA\u25CB\u25EC\u25EF\u25F8-\u25FC\u2605\u2606\u260E\u2640\u2642\u2660\u2663\u2665\u2666\u266A\u266D-\u266F\u2713\u2717\u2720\u2736\u2758\u2772\u2773\u27C8\u27C9\u27E6-\u27ED\u27F5-\u27FA\u27FC\u27FF\u2902-\u2905\u290C-\u2913\u2916\u2919-\u2920\u2923-\u292A\u2933\u2935-\u2939\u293C\u293D\u2945\u2948-\u294B\u294E-\u2976\u2978\u2979\u297B-\u297F\u2985\u2986\u298B-\u2996\u299A\u299C\u299D\u29A4-\u29B7\u29B9\u29BB\u29BC\u29BE-\u29C5\u29C9\u29CD-\u29D0\u29DC-\u29DE\u29E3-\u29E5\u29EB\u29F4\u29F6\u2A00-\u2A02\u2A04\u2A06\u2A0C\u2A0D\u2A10-\u2A17\u2A22-\u2A27\u2A29\u2A2A\u2A2D-\u2A31\u2A33-\u2A3C\u2A3F\u2A40\u2A42-\u2A4D\u2A50\u2A53-\u2A58\u2A5A-\u2A5D\u2A5F\u2A66\u2A6A\u2A6D-\u2A75\u2A77-\u2A9A\u2A9D-\u2AA2\u2AA4-\u2AB0\u2AB3-\u2AC8\u2ACB\u2ACC\u2ACF-\u2ADB\u2AE4\u2AE6-\u2AE9\u2AEB-\u2AF3\u2AFD\uFB00-\uFB04]|\uD835[\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDCCF\uDD04\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDD6B]/g;var g={"­":"shy","‌":"zwnj","‍":"zwj","‎":"lrm","⁣":"ic","⁢":"it","⁡":"af","‏":"rlm","​":"ZeroWidthSpace","⁠":"NoBreak","̑":"DownBreve","⃛":"tdot","⃜":"DotDot","\t":"Tab","\n":"NewLine"," ":"puncsp"," ":"MediumSpace"," ":"thinsp"," ":"hairsp"," ":"emsp13"," ":"ensp"," ":"emsp14"," ":"emsp"," ":"numsp"," ":"nbsp","  ":"ThickSpace","‾":"oline",_:"lowbar","‐":"dash","–":"ndash","—":"mdash","―":"horbar",",":"comma",";":"semi","⁏":"bsemi",":":"colon","⩴":"Colone","!":"excl","¡":"iexcl","?":"quest","¿":"iquest",".":"period","‥":"nldr","…":"mldr","·":"middot","'":"apos","‘":"lsquo","’":"rsquo","‚":"sbquo","‹":"lsaquo","›":"rsaquo",'"':"quot","“":"ldquo","”":"rdquo","„":"bdquo","«":"laquo","»":"raquo","(":"lpar",")":"rpar","[":"lsqb","]":"rsqb","{":"lcub","}":"rcub","⌈":"lceil","⌉":"rceil","⌊":"lfloor","⌋":"rfloor","⦅":"lopar","⦆":"ropar","⦋":"lbrke","⦌":"rbrke","⦍":"lbrkslu","⦎":"rbrksld","⦏":"lbrksld","⦐":"rbrkslu","⦑":"langd","⦒":"rangd","⦓":"lparlt","⦔":"rpargt","⦕":"gtlPar","⦖":"ltrPar","⟦":"lobrk","⟧":"robrk","⟨":"lang","⟩":"rang","⟪":"Lang","⟫":"Rang","⟬":"loang","⟭":"roang","❲":"lbbrk","❳":"rbbrk","‖":"Vert","§":"sect","¶":"para","@":"commat","*":"ast","/":"sol",undefined:null,"&":"amp","#":"num","%":"percnt","‰":"permil","‱":"pertenk","†":"dagger","‡":"Dagger","•":"bull","⁃":"hybull","′":"prime","″":"Prime","‴":"tprime","⁗":"qprime","‵":"bprime","⁁":"caret","`":"grave","´":"acute","˜":"tilde","^":"Hat","¯":"macr","˘":"breve","˙":"dot","¨":"die","˚":"ring","˝":"dblac","¸":"cedil","˛":"ogon","ˆ":"circ","ˇ":"caron","°":"deg","©":"copy","®":"reg","℗":"copysr","℘":"wp","℞":"rx","℧":"mho","℩":"iiota","←":"larr","↚":"nlarr","→":"rarr","↛":"nrarr","↑":"uarr","↓":"darr","↔":"harr","↮":"nharr","↕":"varr","↖":"nwarr","↗":"nearr","↘":"searr","↙":"swarr","↝":"rarrw","↝̸":"nrarrw","↞":"Larr","↟":"Uarr","↠":"Rarr","↡":"Darr","↢":"larrtl","↣":"rarrtl","↤":"mapstoleft","↥":"mapstoup","↦":"map","↧":"mapstodown","↩":"larrhk","↪":"rarrhk","↫":"larrlp","↬":"rarrlp","↭":"harrw","↰":"lsh","↱":"rsh","↲":"ldsh","↳":"rdsh","↵":"crarr","↶":"cularr","↷":"curarr","↺":"olarr","↻":"orarr","↼":"lharu","↽":"lhard","↾":"uharr","↿":"uharl","⇀":"rharu","⇁":"rhard","⇂":"dharr","⇃":"dharl","⇄":"rlarr","⇅":"udarr","⇆":"lrarr","⇇":"llarr","⇈":"uuarr","⇉":"rrarr","⇊":"ddarr","⇋":"lrhar","⇌":"rlhar","⇐":"lArr","⇍":"nlArr","⇑":"uArr","⇒":"rArr","⇏":"nrArr","⇓":"dArr","⇔":"iff","⇎":"nhArr","⇕":"vArr","⇖":"nwArr","⇗":"neArr","⇘":"seArr","⇙":"swArr","⇚":"lAarr","⇛":"rAarr","⇝":"zigrarr","⇤":"larrb","⇥":"rarrb","⇵":"duarr","⇽":"loarr","⇾":"roarr","⇿":"hoarr","∀":"forall","∁":"comp","∂":"part","∂̸":"npart","∃":"exist","∄":"nexist","∅":"empty","∇":"Del","∈":"in","∉":"notin","∋":"ni","∌":"notni","϶":"bepsi","∏":"prod","∐":"coprod","∑":"sum","+":"plus","±":"pm","÷":"div","×":"times","<":"lt","≮":"nlt","<⃒":"nvlt","=":"equals","≠":"ne","=⃥":"bne","⩵":"Equal",">":"gt","≯":"ngt",">⃒":"nvgt","¬":"not","|":"vert","¦":"brvbar","−":"minus","∓":"mp","∔":"plusdo","⁄":"frasl","∖":"setmn","∗":"lowast","∘":"compfn","√":"Sqrt","∝":"prop","∞":"infin","∟":"angrt","∠":"ang","∠⃒":"nang","∡":"angmsd","∢":"angsph","∣":"mid","∤":"nmid","∥":"par","∦":"npar","∧":"and","∨":"or","∩":"cap","∩︀":"caps","∪":"cup","∪︀":"cups","∫":"int","∬":"Int","∭":"tint","⨌":"qint","∮":"oint","∯":"Conint","∰":"Cconint","∱":"cwint","∲":"cwconint","∳":"awconint","∴":"there4","∵":"becaus","∶":"ratio","∷":"Colon","∸":"minusd","∺":"mDDot","∻":"homtht","∼":"sim","≁":"nsim","∼⃒":"nvsim","∽":"bsim","∽̱":"race","∾":"ac","∾̳":"acE","∿":"acd","≀":"wr","≂":"esim","≂̸":"nesim","≃":"sime","≄":"nsime","≅":"cong","≇":"ncong","≆":"simne","≈":"ap","≉":"nap","≊":"ape","≋":"apid","≋̸":"napid","≌":"bcong","≍":"CupCap","≭":"NotCupCap","≍⃒":"nvap","≎":"bump","≎̸":"nbump","≏":"bumpe","≏̸":"nbumpe","≐":"doteq","≐̸":"nedot","≑":"eDot","≒":"efDot","≓":"erDot","≔":"colone","≕":"ecolon","≖":"ecir","≗":"cire","≙":"wedgeq","≚":"veeeq","≜":"trie","≟":"equest","≡":"equiv","≢":"nequiv","≡⃥":"bnequiv","≤":"le","≰":"nle","≤⃒":"nvle","≥":"ge","≱":"nge","≥⃒":"nvge","≦":"lE","≦̸":"nlE","≧":"gE","≧̸":"ngE","≨︀":"lvnE","≨":"lnE","≩":"gnE","≩︀":"gvnE","≪":"ll","≪̸":"nLtv","≪⃒":"nLt","≫":"gg","≫̸":"nGtv","≫⃒":"nGt","≬":"twixt","≲":"lsim","≴":"nlsim","≳":"gsim","≵":"ngsim","≶":"lg","≸":"ntlg","≷":"gl","≹":"ntgl","≺":"pr","⊀":"npr","≻":"sc","⊁":"nsc","≼":"prcue","⋠":"nprcue","≽":"sccue","⋡":"nsccue","≾":"prsim","≿":"scsim","≿̸":"NotSucceedsTilde","⊂":"sub","⊄":"nsub","⊂⃒":"vnsub","⊃":"sup","⊅":"nsup","⊃⃒":"vnsup","⊆":"sube","⊈":"nsube","⊇":"supe","⊉":"nsupe","⊊︀":"vsubne","⊊":"subne","⊋︀":"vsupne","⊋":"supne","⊍":"cupdot","⊎":"uplus","⊏":"sqsub","⊏̸":"NotSquareSubset","⊐":"sqsup","⊐̸":"NotSquareSuperset","⊑":"sqsube","⋢":"nsqsube","⊒":"sqsupe","⋣":"nsqsupe","⊓":"sqcap","⊓︀":"sqcaps","⊔":"sqcup","⊔︀":"sqcups","⊕":"oplus","⊖":"ominus","⊗":"otimes","⊘":"osol","⊙":"odot","⊚":"ocir","⊛":"oast","⊝":"odash","⊞":"plusb","⊟":"minusb","⊠":"timesb","⊡":"sdotb","⊢":"vdash","⊬":"nvdash","⊣":"dashv","⊤":"top","⊥":"bot","⊧":"models","⊨":"vDash","⊭":"nvDash","⊩":"Vdash","⊮":"nVdash","⊪":"Vvdash","⊫":"VDash","⊯":"nVDash","⊰":"prurel","⊲":"vltri","⋪":"nltri","⊳":"vrtri","⋫":"nrtri","⊴":"ltrie","⋬":"nltrie","⊴⃒":"nvltrie","⊵":"rtrie","⋭":"nrtrie","⊵⃒":"nvrtrie","⊶":"origof","⊷":"imof","⊸":"mumap","⊹":"hercon","⊺":"intcal","⊻":"veebar","⊽":"barvee","⊾":"angrtvb","⊿":"lrtri","⋀":"Wedge","⋁":"Vee","⋂":"xcap","⋃":"xcup","⋄":"diam","⋅":"sdot","⋆":"Star","⋇":"divonx","⋈":"bowtie","⋉":"ltimes","⋊":"rtimes","⋋":"lthree","⋌":"rthree","⋍":"bsime","⋎":"cuvee","⋏":"cuwed","⋐":"Sub","⋑":"Sup","⋒":"Cap","⋓":"Cup","⋔":"fork","⋕":"epar","⋖":"ltdot","⋗":"gtdot","⋘":"Ll","⋘̸":"nLl","⋙":"Gg","⋙̸":"nGg","⋚︀":"lesg","⋚":"leg","⋛":"gel","⋛︀":"gesl","⋞":"cuepr","⋟":"cuesc","⋦":"lnsim","⋧":"gnsim","⋨":"prnsim","⋩":"scnsim","⋮":"vellip","⋯":"ctdot","⋰":"utdot","⋱":"dtdot","⋲":"disin","⋳":"isinsv","⋴":"isins","⋵":"isindot","⋵̸":"notindot","⋶":"notinvc","⋷":"notinvb","⋹":"isinE","⋹̸":"notinE","⋺":"nisd","⋻":"xnis","⋼":"nis","⋽":"notnivc","⋾":"notnivb","⌅":"barwed","⌆":"Barwed","⌌":"drcrop","⌍":"dlcrop","⌎":"urcrop","⌏":"ulcrop","⌐":"bnot","⌒":"profline","⌓":"profsurf","⌕":"telrec","⌖":"target","⌜":"ulcorn","⌝":"urcorn","⌞":"dlcorn","⌟":"drcorn","⌢":"frown","⌣":"smile","⌭":"cylcty","⌮":"profalar","⌶":"topbot","⌽":"ovbar","⌿":"solbar","⍼":"angzarr","⎰":"lmoust","⎱":"rmoust","⎴":"tbrk","⎵":"bbrk","⎶":"bbrktbrk","⏜":"OverParenthesis","⏝":"UnderParenthesis","⏞":"OverBrace","⏟":"UnderBrace","⏢":"trpezium","⏧":"elinters","␣":"blank","─":"boxh","│":"boxv","┌":"boxdr","┐":"boxdl","└":"boxur","┘":"boxul","├":"boxvr","┤":"boxvl","┬":"boxhd","┴":"boxhu","┼":"boxvh","═":"boxH","║":"boxV","╒":"boxdR","╓":"boxDr","╔":"boxDR","╕":"boxdL","╖":"boxDl","╗":"boxDL","╘":"boxuR","╙":"boxUr","╚":"boxUR","╛":"boxuL","╜":"boxUl","╝":"boxUL","╞":"boxvR","╟":"boxVr","╠":"boxVR","╡":"boxvL","╢":"boxVl","╣":"boxVL","╤":"boxHd","╥":"boxhD","╦":"boxHD","╧":"boxHu","╨":"boxhU","╩":"boxHU","╪":"boxvH","╫":"boxVh","╬":"boxVH","▀":"uhblk","▄":"lhblk","█":"block","░":"blk14","▒":"blk12","▓":"blk34","□":"squ","▪":"squf","▫":"EmptyVerySmallSquare","▭":"rect","▮":"marker","▱":"fltns","△":"xutri","▴":"utrif","▵":"utri","▸":"rtrif","▹":"rtri","▽":"xdtri","▾":"dtrif","▿":"dtri","◂":"ltrif","◃":"ltri","◊":"loz","○":"cir","◬":"tridot","◯":"xcirc","◸":"ultri","◹":"urtri","◺":"lltri","◻":"EmptySmallSquare","◼":"FilledSmallSquare","★":"starf","☆":"star","☎":"phone","♀":"female","♂":"male","♠":"spades","♣":"clubs","♥":"hearts","♦":"diams","♪":"sung","✓":"check","✗":"cross","✠":"malt","✶":"sext","❘":"VerticalSeparator","⟈":"bsolhsub","⟉":"suphsol","⟵":"xlarr","⟶":"xrarr","⟷":"xharr","⟸":"xlArr","⟹":"xrArr","⟺":"xhArr","⟼":"xmap","⟿":"dzigrarr","⤂":"nvlArr","⤃":"nvrArr","⤄":"nvHarr","⤅":"Map","⤌":"lbarr","⤍":"rbarr","⤎":"lBarr","⤏":"rBarr","⤐":"RBarr","⤑":"DDotrahd","⤒":"UpArrowBar","⤓":"DownArrowBar","⤖":"Rarrtl","⤙":"latail","⤚":"ratail","⤛":"lAtail","⤜":"rAtail","⤝":"larrfs","⤞":"rarrfs","⤟":"larrbfs","⤠":"rarrbfs","⤣":"nwarhk","⤤":"nearhk","⤥":"searhk","⤦":"swarhk","⤧":"nwnear","⤨":"toea","⤩":"tosa","⤪":"swnwar","⤳":"rarrc","⤳̸":"nrarrc","⤵":"cudarrr","⤶":"ldca","⤷":"rdca","⤸":"cudarrl","⤹":"larrpl","⤼":"curarrm","⤽":"cularrp","⥅":"rarrpl","⥈":"harrcir","⥉":"Uarrocir","⥊":"lurdshar","⥋":"ldrushar","⥎":"LeftRightVector","⥏":"RightUpDownVector","⥐":"DownLeftRightVector","⥑":"LeftUpDownVector","⥒":"LeftVectorBar","⥓":"RightVectorBar","⥔":"RightUpVectorBar","⥕":"RightDownVectorBar","⥖":"DownLeftVectorBar","⥗":"DownRightVectorBar","⥘":"LeftUpVectorBar","⥙":"LeftDownVectorBar","⥚":"LeftTeeVector","⥛":"RightTeeVector","⥜":"RightUpTeeVector","⥝":"RightDownTeeVector","⥞":"DownLeftTeeVector","⥟":"DownRightTeeVector","⥠":"LeftUpTeeVector","⥡":"LeftDownTeeVector","⥢":"lHar","⥣":"uHar","⥤":"rHar","⥥":"dHar","⥦":"luruhar","⥧":"ldrdhar","⥨":"ruluhar","⥩":"rdldhar","⥪":"lharul","⥫":"llhard","⥬":"rharul","⥭":"lrhard","⥮":"udhar","⥯":"duhar","⥰":"RoundImplies","⥱":"erarr","⥲":"simrarr","⥳":"larrsim","⥴":"rarrsim","⥵":"rarrap","⥶":"ltlarr","⥸":"gtrarr","⥹":"subrarr","⥻":"suplarr","⥼":"lfisht","⥽":"rfisht","⥾":"ufisht","⥿":"dfisht","⦚":"vzigzag","⦜":"vangrt","⦝":"angrtvbd","⦤":"ange","⦥":"range","⦦":"dwangle","⦧":"uwangle","⦨":"angmsdaa","⦩":"angmsdab","⦪":"angmsdac","⦫":"angmsdad","⦬":"angmsdae","⦭":"angmsdaf","⦮":"angmsdag","⦯":"angmsdah","⦰":"bemptyv","⦱":"demptyv","⦲":"cemptyv","⦳":"raemptyv","⦴":"laemptyv","⦵":"ohbar","⦶":"omid","⦷":"opar","⦹":"operp","⦻":"olcross","⦼":"odsold","⦾":"olcir","⦿":"ofcir","⧀":"olt","⧁":"ogt","⧂":"cirscir","⧃":"cirE","⧄":"solb","⧅":"bsolb","⧉":"boxbox","⧍":"trisb","⧎":"rtriltri","⧏":"LeftTriangleBar","⧏̸":"NotLeftTriangleBar","⧐":"RightTriangleBar","⧐̸":"NotRightTriangleBar","⧜":"iinfin","⧝":"infintie","⧞":"nvinfin","⧣":"eparsl","⧤":"smeparsl","⧥":"eqvparsl","⧫":"lozf","⧴":"RuleDelayed","⧶":"dsol","⨀":"xodot","⨁":"xoplus","⨂":"xotime","⨄":"xuplus","⨆":"xsqcup","⨍":"fpartint","⨐":"cirfnint","⨑":"awint","⨒":"rppolint","⨓":"scpolint","⨔":"npolint","⨕":"pointint","⨖":"quatint","⨗":"intlarhk","⨢":"pluscir","⨣":"plusacir","⨤":"simplus","⨥":"plusdu","⨦":"plussim","⨧":"plustwo","⨩":"mcomma","⨪":"minusdu","⨭":"loplus","⨮":"roplus","⨯":"Cross","⨰":"timesd","⨱":"timesbar","⨳":"smashp","⨴":"lotimes","⨵":"rotimes","⨶":"otimesas","⨷":"Otimes","⨸":"odiv","⨹":"triplus","⨺":"triminus","⨻":"tritime","⨼":"iprod","⨿":"amalg","⩀":"capdot","⩂":"ncup","⩃":"ncap","⩄":"capand","⩅":"cupor","⩆":"cupcap","⩇":"capcup","⩈":"cupbrcap","⩉":"capbrcup","⩊":"cupcup","⩋":"capcap","⩌":"ccups","⩍":"ccaps","⩐":"ccupssm","⩓":"And","⩔":"Or","⩕":"andand","⩖":"oror","⩗":"orslope","⩘":"andslope","⩚":"andv","⩛":"orv","⩜":"andd","⩝":"ord","⩟":"wedbar","⩦":"sdote","⩪":"simdot","⩭":"congdot","⩭̸":"ncongdot","⩮":"easter","⩯":"apacir","⩰":"apE","⩰̸":"napE","⩱":"eplus","⩲":"pluse","⩳":"Esim","⩷":"eDDot","⩸":"equivDD","⩹":"ltcir","⩺":"gtcir","⩻":"ltquest","⩼":"gtquest","⩽":"les","⩽̸":"nles","⩾":"ges","⩾̸":"nges","⩿":"lesdot","⪀":"gesdot","⪁":"lesdoto","⪂":"gesdoto","⪃":"lesdotor","⪄":"gesdotol","⪅":"lap","⪆":"gap","⪇":"lne","⪈":"gne","⪉":"lnap","⪊":"gnap","⪋":"lEg","⪌":"gEl","⪍":"lsime","⪎":"gsime","⪏":"lsimg","⪐":"gsiml","⪑":"lgE","⪒":"glE","⪓":"lesges","⪔":"gesles","⪕":"els","⪖":"egs","⪗":"elsdot","⪘":"egsdot","⪙":"el","⪚":"eg","⪝":"siml","⪞":"simg","⪟":"simlE","⪠":"simgE","⪡":"LessLess","⪡̸":"NotNestedLessLess","⪢":"GreaterGreater","⪢̸":"NotNestedGreaterGreater","⪤":"glj","⪥":"gla","⪦":"ltcc","⪧":"gtcc","⪨":"lescc","⪩":"gescc","⪪":"smt","⪫":"lat","⪬":"smte","⪬︀":"smtes","⪭":"late","⪭︀":"lates","⪮":"bumpE","⪯":"pre","⪯̸":"npre","⪰":"sce","⪰̸":"nsce","⪳":"prE","⪴":"scE","⪵":"prnE","⪶":"scnE","⪷":"prap","⪸":"scap","⪹":"prnap","⪺":"scnap","⪻":"Pr","⪼":"Sc","⪽":"subdot","⪾":"supdot","⪿":"subplus","⫀":"supplus","⫁":"submult","⫂":"supmult","⫃":"subedot","⫄":"supedot","⫅":"subE","⫅̸":"nsubE","⫆":"supE","⫆̸":"nsupE","⫇":"subsim","⫈":"supsim","⫋︀":"vsubnE","⫋":"subnE","⫌︀":"vsupnE","⫌":"supnE","⫏":"csub","⫐":"csup","⫑":"csube","⫒":"csupe","⫓":"subsup","⫔":"supsub","⫕":"subsub","⫖":"supsup","⫗":"suphsub","⫘":"supdsub","⫙":"forkv","⫚":"topfork","⫛":"mlcp","⫤":"Dashv","⫦":"Vdashl","⫧":"Barv","⫨":"vBar","⫩":"vBarv","⫫":"Vbar","⫬":"Not","⫭":"bNot","⫮":"rnmid","⫯":"cirmid","⫰":"midcir","⫱":"topcir","⫲":"nhpar","⫳":"parsim","⫽":"parsl","⫽⃥":"nparsl","♭":"flat","♮":"natur","♯":"sharp","¤":"curren","¢":"cent",$:"dollar","£":"pound","¥":"yen","€":"euro","¹":"sup1","½":"half","⅓":"frac13","¼":"frac14","⅕":"frac15","⅙":"frac16","⅛":"frac18","²":"sup2","⅔":"frac23","⅖":"frac25","³":"sup3","¾":"frac34","⅗":"frac35","⅜":"frac38","⅘":"frac45","⅚":"frac56","⅝":"frac58","⅞":"frac78","𝒶":"ascr","𝕒":"aopf","𝔞":"afr","𝔸":"Aopf","𝔄":"Afr","𝒜":"Ascr","ª":"ordf","á":"aacute","Á":"Aacute","à":"agrave","À":"Agrave","ă":"abreve","Ă":"Abreve","â":"acirc","Â":"Acirc","å":"aring","Å":"angst","ä":"auml","Ä":"Auml","ã":"atilde","Ã":"Atilde","ą":"aogon","Ą":"Aogon","ā":"amacr","Ā":"Amacr","æ":"aelig","Æ":"AElig","𝒷":"bscr","𝕓":"bopf","𝔟":"bfr","𝔹":"Bopf","ℬ":"Bscr","𝔅":"Bfr","𝔠":"cfr","𝒸":"cscr","𝕔":"copf","ℭ":"Cfr","𝒞":"Cscr","ℂ":"Copf","ć":"cacute","Ć":"Cacute","ĉ":"ccirc","Ĉ":"Ccirc","č":"ccaron","Č":"Ccaron","ċ":"cdot","Ċ":"Cdot","ç":"ccedil","Ç":"Ccedil","℅":"incare","𝔡":"dfr","ⅆ":"dd","𝕕":"dopf","𝒹":"dscr","𝒟":"Dscr","𝔇":"Dfr","ⅅ":"DD","𝔻":"Dopf","ď":"dcaron","Ď":"Dcaron","đ":"dstrok","Đ":"Dstrok","ð":"eth","Ð":"ETH","ⅇ":"ee","ℯ":"escr","𝔢":"efr","𝕖":"eopf","ℰ":"Escr","𝔈":"Efr","𝔼":"Eopf","é":"eacute","É":"Eacute","è":"egrave","È":"Egrave","ê":"ecirc","Ê":"Ecirc","ě":"ecaron","Ě":"Ecaron","ë":"euml","Ë":"Euml","ė":"edot","Ė":"Edot","ę":"eogon","Ę":"Eogon","ē":"emacr","Ē":"Emacr","𝔣":"ffr","𝕗":"fopf","𝒻":"fscr","𝔉":"Ffr","𝔽":"Fopf","ℱ":"Fscr","ff":"fflig","ffi":"ffilig","ffl":"ffllig","fi":"filig",fj:"fjlig","fl":"fllig","ƒ":"fnof","ℊ":"gscr","𝕘":"gopf","𝔤":"gfr","𝒢":"Gscr","𝔾":"Gopf","𝔊":"Gfr","ǵ":"gacute","ğ":"gbreve","Ğ":"Gbreve","ĝ":"gcirc","Ĝ":"Gcirc","ġ":"gdot","Ġ":"Gdot","Ģ":"Gcedil","𝔥":"hfr","ℎ":"planckh","𝒽":"hscr","𝕙":"hopf","ℋ":"Hscr","ℌ":"Hfr","ℍ":"Hopf","ĥ":"hcirc","Ĥ":"Hcirc","ℏ":"hbar","ħ":"hstrok","Ħ":"Hstrok","𝕚":"iopf","𝔦":"ifr","𝒾":"iscr","ⅈ":"ii","𝕀":"Iopf","ℐ":"Iscr","ℑ":"Im","í":"iacute","Í":"Iacute","ì":"igrave","Ì":"Igrave","î":"icirc","Î":"Icirc","ï":"iuml","Ï":"Iuml","ĩ":"itilde","Ĩ":"Itilde","İ":"Idot","į":"iogon","Į":"Iogon","ī":"imacr","Ī":"Imacr","ij":"ijlig","IJ":"IJlig","ı":"imath","𝒿":"jscr","𝕛":"jopf","𝔧":"jfr","𝒥":"Jscr","𝔍":"Jfr","𝕁":"Jopf","ĵ":"jcirc","Ĵ":"Jcirc","ȷ":"jmath","𝕜":"kopf","𝓀":"kscr","𝔨":"kfr","𝒦":"Kscr","𝕂":"Kopf","𝔎":"Kfr","ķ":"kcedil","Ķ":"Kcedil","𝔩":"lfr","𝓁":"lscr","ℓ":"ell","𝕝":"lopf","ℒ":"Lscr","𝔏":"Lfr","𝕃":"Lopf","ĺ":"lacute","Ĺ":"Lacute","ľ":"lcaron","Ľ":"Lcaron","ļ":"lcedil","Ļ":"Lcedil","ł":"lstrok","Ł":"Lstrok","ŀ":"lmidot","Ŀ":"Lmidot","𝔪":"mfr","𝕞":"mopf","𝓂":"mscr","𝔐":"Mfr","𝕄":"Mopf","ℳ":"Mscr","𝔫":"nfr","𝕟":"nopf","𝓃":"nscr","ℕ":"Nopf","𝒩":"Nscr","𝔑":"Nfr","ń":"nacute","Ń":"Nacute","ň":"ncaron","Ň":"Ncaron","ñ":"ntilde","Ñ":"Ntilde","ņ":"ncedil","Ņ":"Ncedil","№":"numero","ŋ":"eng","Ŋ":"ENG","𝕠":"oopf","𝔬":"ofr","ℴ":"oscr","𝒪":"Oscr","𝔒":"Ofr","𝕆":"Oopf","º":"ordm","ó":"oacute","Ó":"Oacute","ò":"ograve","Ò":"Ograve","ô":"ocirc","Ô":"Ocirc","ö":"ouml","Ö":"Ouml","ő":"odblac","Ő":"Odblac","õ":"otilde","Õ":"Otilde","ø":"oslash","Ø":"Oslash","ō":"omacr","Ō":"Omacr","œ":"oelig","Œ":"OElig","𝔭":"pfr","𝓅":"pscr","𝕡":"popf","ℙ":"Popf","𝔓":"Pfr","𝒫":"Pscr","𝕢":"qopf","𝔮":"qfr","𝓆":"qscr","𝒬":"Qscr","𝔔":"Qfr","ℚ":"Qopf","ĸ":"kgreen","𝔯":"rfr","𝕣":"ropf","𝓇":"rscr","ℛ":"Rscr","ℜ":"Re","ℝ":"Ropf","ŕ":"racute","Ŕ":"Racute","ř":"rcaron","Ř":"Rcaron","ŗ":"rcedil","Ŗ":"Rcedil","𝕤":"sopf","𝓈":"sscr","𝔰":"sfr","𝕊":"Sopf","𝔖":"Sfr","𝒮":"Sscr","Ⓢ":"oS","ś":"sacute","Ś":"Sacute","ŝ":"scirc","Ŝ":"Scirc","š":"scaron","Š":"Scaron","ş":"scedil","Ş":"Scedil","ß":"szlig","𝔱":"tfr","𝓉":"tscr","𝕥":"topf","𝒯":"Tscr","𝔗":"Tfr","𝕋":"Topf","ť":"tcaron","Ť":"Tcaron","ţ":"tcedil","Ţ":"Tcedil","™":"trade","ŧ":"tstrok","Ŧ":"Tstrok","𝓊":"uscr","𝕦":"uopf","𝔲":"ufr","𝕌":"Uopf","𝔘":"Ufr","𝒰":"Uscr","ú":"uacute","Ú":"Uacute","ù":"ugrave","Ù":"Ugrave","ŭ":"ubreve","Ŭ":"Ubreve","û":"ucirc","Û":"Ucirc","ů":"uring","Ů":"Uring","ü":"uuml","Ü":"Uuml","ű":"udblac","Ű":"Udblac","ũ":"utilde","Ũ":"Utilde","ų":"uogon","Ų":"Uogon","ū":"umacr","Ū":"Umacr","𝔳":"vfr","𝕧":"vopf","𝓋":"vscr","𝔙":"Vfr","𝕍":"Vopf","𝒱":"Vscr","𝕨":"wopf","𝓌":"wscr","𝔴":"wfr","𝒲":"Wscr","𝕎":"Wopf","𝔚":"Wfr","ŵ":"wcirc","Ŵ":"Wcirc","𝔵":"xfr","𝓍":"xscr","𝕩":"xopf","𝕏":"Xopf","𝔛":"Xfr","𝒳":"Xscr","𝔶":"yfr","𝓎":"yscr","𝕪":"yopf","𝒴":"Yscr","𝔜":"Yfr","𝕐":"Yopf","ý":"yacute","Ý":"Yacute","ŷ":"ycirc","Ŷ":"Ycirc","ÿ":"yuml","Ÿ":"Yuml","𝓏":"zscr","𝔷":"zfr","𝕫":"zopf","ℨ":"Zfr","ℤ":"Zopf","𝒵":"Zscr","ź":"zacute","Ź":"Zacute","ž":"zcaron","Ž":"Zcaron","ż":"zdot","Ż":"Zdot","Ƶ":"imped","þ":"thorn","Þ":"THORN","ʼn":"napos","α":"alpha","Α":"Alpha","β":"beta","Β":"Beta","γ":"gamma","Γ":"Gamma","δ":"delta","Δ":"Delta","ε":"epsi","ϵ":"epsiv","Ε":"Epsilon","ϝ":"gammad","Ϝ":"Gammad","ζ":"zeta","Ζ":"Zeta","η":"eta","Η":"Eta","θ":"theta","ϑ":"thetav","Θ":"Theta","ι":"iota","Ι":"Iota","κ":"kappa","ϰ":"kappav","Κ":"Kappa","λ":"lambda","Λ":"Lambda","μ":"mu","µ":"micro","Μ":"Mu","ν":"nu","Ν":"Nu","ξ":"xi","Ξ":"Xi","ο":"omicron","Ο":"Omicron","π":"pi","ϖ":"piv","Π":"Pi","ρ":"rho","ϱ":"rhov","Ρ":"Rho","σ":"sigma","Σ":"Sigma","ς":"sigmaf","τ":"tau","Τ":"Tau","υ":"upsi","Υ":"Upsilon","ϒ":"Upsi","φ":"phi","ϕ":"phiv","Φ":"Phi","χ":"chi","Χ":"Chi","ψ":"psi","Ψ":"Psi","ω":"omega","Ω":"ohm","а":"acy","А":"Acy","б":"bcy","Б":"Bcy","в":"vcy","В":"Vcy","г":"gcy","Г":"Gcy","ѓ":"gjcy","Ѓ":"GJcy","д":"dcy","Д":"Dcy","ђ":"djcy","Ђ":"DJcy","е":"iecy","Е":"IEcy","ё":"iocy","Ё":"IOcy","є":"jukcy","Є":"Jukcy","ж":"zhcy","Ж":"ZHcy","з":"zcy","З":"Zcy","ѕ":"dscy","Ѕ":"DScy","и":"icy","И":"Icy","і":"iukcy","І":"Iukcy","ї":"yicy","Ї":"YIcy","й":"jcy","Й":"Jcy","ј":"jsercy","Ј":"Jsercy","к":"kcy","К":"Kcy","ќ":"kjcy","Ќ":"KJcy","л":"lcy","Л":"Lcy","љ":"ljcy","Љ":"LJcy","м":"mcy","М":"Mcy","н":"ncy","Н":"Ncy","њ":"njcy","Њ":"NJcy","о":"ocy","О":"Ocy","п":"pcy","П":"Pcy","р":"rcy","Р":"Rcy","с":"scy","С":"Scy","т":"tcy","Т":"Tcy","ћ":"tshcy","Ћ":"TSHcy","у":"ucy","У":"Ucy","ў":"ubrcy","Ў":"Ubrcy","ф":"fcy","Ф":"Fcy","х":"khcy","Х":"KHcy","ц":"tscy","Ц":"TScy","ч":"chcy","Ч":"CHcy","џ":"dzcy","Џ":"DZcy","ш":"shcy","Ш":"SHcy","щ":"shchcy","Щ":"SHCHcy","ъ":"hardcy","Ъ":"HARDcy","ы":"ycy","Ы":"Ycy","ь":"softcy","Ь":"SOFTcy","э":"ecy","Э":"Ecy","ю":"yucy","Ю":"YUcy","я":"yacy","Я":"YAcy","ℵ":"aleph","ℶ":"beth","ℷ":"gimel","ℸ":"daleth"};var h=/["&'<>`]/g;var C={'"':""","&":"&","'":"'","<":"<",">":">","`":"`"};var y=/&#(?:[xX][^a-fA-F0-9]|[^0-9xX])/;var I=/[\0-\x08\x0B\x0E-\x1F\x7F-\x9F\uFDD0-\uFDEF\uFFFE\uFFFF]|[\uD83F\uD87F\uD8BF\uD8FF\uD93F\uD97F\uD9BF\uD9FF\uDA3F\uDA7F\uDABF\uDAFF\uDB3F\uDB7F\uDBBF\uDBFF][\uDFFE\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/;var B=/&(CounterClockwiseContourIntegral|DoubleLongLeftRightArrow|ClockwiseContourIntegral|NotNestedGreaterGreater|NotSquareSupersetEqual|DiacriticalDoubleAcute|NotRightTriangleEqual|NotSucceedsSlantEqual|NotPrecedesSlantEqual|CloseCurlyDoubleQuote|NegativeVeryThinSpace|DoubleContourIntegral|FilledVerySmallSquare|CapitalDifferentialD|OpenCurlyDoubleQuote|EmptyVerySmallSquare|NestedGreaterGreater|DoubleLongRightArrow|NotLeftTriangleEqual|NotGreaterSlantEqual|ReverseUpEquilibrium|DoubleLeftRightArrow|NotSquareSubsetEqual|NotDoubleVerticalBar|RightArrowLeftArrow|NotGreaterFullEqual|NotRightTriangleBar|SquareSupersetEqual|DownLeftRightVector|DoubleLongLeftArrow|leftrightsquigarrow|LeftArrowRightArrow|NegativeMediumSpace|blacktriangleright|RightDownVectorBar|PrecedesSlantEqual|RightDoubleBracket|SucceedsSlantEqual|NotLeftTriangleBar|RightTriangleEqual|SquareIntersection|RightDownTeeVector|ReverseEquilibrium|NegativeThickSpace|longleftrightarrow|Longleftrightarrow|LongLeftRightArrow|DownRightTeeVector|DownRightVectorBar|GreaterSlantEqual|SquareSubsetEqual|LeftDownVectorBar|LeftDoubleBracket|VerticalSeparator|rightleftharpoons|NotGreaterGreater|NotSquareSuperset|blacktriangleleft|blacktriangledown|NegativeThinSpace|LeftDownTeeVector|NotLessSlantEqual|leftrightharpoons|DoubleUpDownArrow|DoubleVerticalBar|LeftTriangleEqual|FilledSmallSquare|twoheadrightarrow|NotNestedLessLess|DownLeftTeeVector|DownLeftVectorBar|RightAngleBracket|NotTildeFullEqual|NotReverseElement|RightUpDownVector|DiacriticalTilde|NotSucceedsTilde|circlearrowright|NotPrecedesEqual|rightharpoondown|DoubleRightArrow|NotSucceedsEqual|NonBreakingSpace|NotRightTriangle|LessEqualGreater|RightUpTeeVector|LeftAngleBracket|GreaterFullEqual|DownArrowUpArrow|RightUpVectorBar|twoheadleftarrow|GreaterEqualLess|downharpoonright|RightTriangleBar|ntrianglerighteq|NotSupersetEqual|LeftUpDownVector|DiacriticalAcute|rightrightarrows|vartriangleright|UpArrowDownArrow|DiacriticalGrave|UnderParenthesis|EmptySmallSquare|LeftUpVectorBar|leftrightarrows|DownRightVector|downharpoonleft|trianglerighteq|ShortRightArrow|OverParenthesis|DoubleLeftArrow|DoubleDownArrow|NotSquareSubset|bigtriangledown|ntrianglelefteq|UpperRightArrow|curvearrowright|vartriangleleft|NotLeftTriangle|nleftrightarrow|LowerRightArrow|NotHumpDownHump|NotGreaterTilde|rightthreetimes|LeftUpTeeVector|NotGreaterEqual|straightepsilon|LeftTriangleBar|rightsquigarrow|ContourIntegral|rightleftarrows|CloseCurlyQuote|RightDownVector|LeftRightVector|nLeftrightarrow|leftharpoondown|circlearrowleft|SquareSuperset|OpenCurlyQuote|hookrightarrow|HorizontalLine|DiacriticalDot|NotLessGreater|ntriangleright|DoubleRightTee|InvisibleComma|InvisibleTimes|LowerLeftArrow|DownLeftVector|NotSubsetEqual|curvearrowleft|trianglelefteq|NotVerticalBar|TildeFullEqual|downdownarrows|NotGreaterLess|RightTeeVector|ZeroWidthSpace|looparrowright|LongRightArrow|doublebarwedge|ShortLeftArrow|ShortDownArrow|RightVectorBar|GreaterGreater|ReverseElement|rightharpoonup|LessSlantEqual|leftthreetimes|upharpoonright|rightarrowtail|LeftDownVector|Longrightarrow|NestedLessLess|UpperLeftArrow|nshortparallel|leftleftarrows|leftrightarrow|Leftrightarrow|LeftRightArrow|longrightarrow|upharpoonleft|RightArrowBar|ApplyFunction|LeftTeeVector|leftarrowtail|NotEqualTilde|varsubsetneqq|varsupsetneqq|RightTeeArrow|SucceedsEqual|SucceedsTilde|LeftVectorBar|SupersetEqual|hookleftarrow|DifferentialD|VerticalTilde|VeryThinSpace|blacktriangle|bigtriangleup|LessFullEqual|divideontimes|leftharpoonup|UpEquilibrium|ntriangleleft|RightTriangle|measuredangle|shortparallel|longleftarrow|Longleftarrow|LongLeftArrow|DoubleLeftTee|Poincareplane|PrecedesEqual|triangleright|DoubleUpArrow|RightUpVector|fallingdotseq|looparrowleft|PrecedesTilde|NotTildeEqual|NotTildeTilde|smallsetminus|Proportional|triangleleft|triangledown|UnderBracket|NotHumpEqual|exponentiale|ExponentialE|NotLessTilde|HilbertSpace|RightCeiling|blacklozenge|varsupsetneq|HumpDownHump|GreaterEqual|VerticalLine|LeftTeeArrow|NotLessEqual|DownTeeArrow|LeftTriangle|varsubsetneq|Intersection|NotCongruent|DownArrowBar|LeftUpVector|LeftArrowBar|risingdotseq|GreaterTilde|RoundImplies|SquareSubset|ShortUpArrow|NotSuperset|quaternions|precnapprox|backepsilon|preccurlyeq|OverBracket|blacksquare|MediumSpace|VerticalBar|circledcirc|circleddash|CircleMinus|CircleTimes|LessGreater|curlyeqprec|curlyeqsucc|diamondsuit|UpDownArrow|Updownarrow|RuleDelayed|Rrightarrow|updownarrow|RightVector|nRightarrow|nrightarrow|eqslantless|LeftCeiling|Equilibrium|SmallCircle|expectation|NotSucceeds|thickapprox|GreaterLess|SquareUnion|NotPrecedes|NotLessLess|straightphi|succnapprox|succcurlyeq|SubsetEqual|sqsupseteq|Proportion|Laplacetrf|ImaginaryI|supsetneqq|NotGreater|gtreqqless|NotElement|ThickSpace|TildeEqual|TildeTilde|Fouriertrf|rmoustache|EqualTilde|eqslantgtr|UnderBrace|LeftVector|UpArrowBar|nLeftarrow|nsubseteqq|subsetneqq|nsupseteqq|nleftarrow|succapprox|lessapprox|UpTeeArrow|upuparrows|curlywedge|lesseqqgtr|varepsilon|varnothing|RightFloor|complement|CirclePlus|sqsubseteq|Lleftarrow|circledast|RightArrow|Rightarrow|rightarrow|lmoustache|Bernoullis|precapprox|mapstoleft|mapstodown|longmapsto|dotsquare|downarrow|DoubleDot|nsubseteq|supsetneq|leftarrow|nsupseteq|subsetneq|ThinSpace|ngeqslant|subseteqq|HumpEqual|NotSubset|triangleq|NotCupCap|lesseqgtr|heartsuit|TripleDot|Leftarrow|Coproduct|Congruent|varpropto|complexes|gvertneqq|LeftArrow|LessTilde|supseteqq|MinusPlus|CircleDot|nleqslant|NotExists|gtreqless|nparallel|UnionPlus|LeftFloor|checkmark|CenterDot|centerdot|Mellintrf|gtrapprox|bigotimes|OverBrace|spadesuit|therefore|pitchfork|rationals|PlusMinus|Backslash|Therefore|DownBreve|backsimeq|backprime|DownArrow|nshortmid|Downarrow|lvertneqq|eqvparsl|imagline|imagpart|infintie|integers|Integral|intercal|LessLess|Uarrocir|intlarhk|sqsupset|angmsdaf|sqsubset|llcorner|vartheta|cupbrcap|lnapprox|Superset|SuchThat|succnsim|succneqq|angmsdag|biguplus|curlyvee|trpezium|Succeeds|NotTilde|bigwedge|angmsdah|angrtvbd|triminus|cwconint|fpartint|lrcorner|smeparsl|subseteq|urcorner|lurdshar|laemptyv|DDotrahd|approxeq|ldrushar|awconint|mapstoup|backcong|shortmid|triangle|geqslant|gesdotol|timesbar|circledR|circledS|setminus|multimap|naturals|scpolint|ncongdot|RightTee|boxminus|gnapprox|boxtimes|andslope|thicksim|angmsdaa|varsigma|cirfnint|rtriltri|angmsdab|rppolint|angmsdac|barwedge|drbkarow|clubsuit|thetasym|bsolhsub|capbrcup|dzigrarr|doteqdot|DotEqual|dotminus|UnderBar|NotEqual|realpart|otimesas|ulcorner|hksearow|hkswarow|parallel|PartialD|elinters|emptyset|plusacir|bbrktbrk|angmsdad|pointint|bigoplus|angmsdae|Precedes|bigsqcup|varkappa|notindot|supseteq|precneqq|precnsim|profalar|profline|profsurf|leqslant|lesdotor|raemptyv|subplus|notnivb|notnivc|subrarr|zigrarr|vzigzag|submult|subedot|Element|between|cirscir|larrbfs|larrsim|lotimes|lbrksld|lbrkslu|lozenge|ldrdhar|dbkarow|bigcirc|epsilon|simrarr|simplus|ltquest|Epsilon|luruhar|gtquest|maltese|npolint|eqcolon|npreceq|bigodot|ddagger|gtrless|bnequiv|harrcir|ddotseq|equivDD|backsim|demptyv|nsqsube|nsqsupe|Upsilon|nsubset|upsilon|minusdu|nsucceq|swarrow|nsupset|coloneq|searrow|boxplus|napprox|natural|asympeq|alefsym|congdot|nearrow|bigstar|diamond|supplus|tritime|LeftTee|nvinfin|triplus|NewLine|nvltrie|nvrtrie|nwarrow|nexists|Diamond|ruluhar|Implies|supmult|angzarr|suplarr|suphsub|questeq|because|digamma|Because|olcross|bemptyv|omicron|Omicron|rotimes|NoBreak|intprod|angrtvb|orderof|uwangle|suphsol|lesdoto|orslope|DownTee|realine|cudarrl|rdldhar|OverBar|supedot|lessdot|supdsub|topfork|succsim|rbrkslu|rbrksld|pertenk|cudarrr|isindot|planckh|lessgtr|pluscir|gesdoto|plussim|plustwo|lesssim|cularrp|rarrsim|Cayleys|notinva|notinvb|notinvc|UpArrow|Uparrow|uparrow|NotLess|dwangle|precsim|Product|curarrm|Cconint|dotplus|rarrbfs|ccupssm|Cedilla|cemptyv|notniva|quatint|frac35|frac38|frac45|frac56|frac58|frac78|tridot|xoplus|gacute|gammad|Gammad|lfisht|lfloor|bigcup|sqsupe|gbreve|Gbreve|lharul|sqsube|sqcups|Gcedil|apacir|llhard|lmidot|Lmidot|lmoust|andand|sqcaps|approx|Abreve|spades|circeq|tprime|divide|topcir|Assign|topbot|gesdot|divonx|xuplus|timesd|gesles|atilde|solbar|SOFTcy|loplus|timesb|lowast|lowbar|dlcorn|dlcrop|softcy|dollar|lparlt|thksim|lrhard|Atilde|lsaquo|smashp|bigvee|thinsp|wreath|bkarow|lsquor|lstrok|Lstrok|lthree|ltimes|ltlarr|DotDot|simdot|ltrPar|weierp|xsqcup|angmsd|sigmav|sigmaf|zeetrf|Zcaron|zcaron|mapsto|vsupne|thetav|cirmid|marker|mcomma|Zacute|vsubnE|there4|gtlPar|vsubne|bottom|gtrarr|SHCHcy|shchcy|midast|midcir|middot|minusb|minusd|gtrdot|bowtie|sfrown|mnplus|models|colone|seswar|Colone|mstpos|searhk|gtrsim|nacute|Nacute|boxbox|telrec|hairsp|Tcedil|nbumpe|scnsim|ncaron|Ncaron|ncedil|Ncedil|hamilt|Scedil|nearhk|hardcy|HARDcy|tcedil|Tcaron|commat|nequiv|nesear|tcaron|target|hearts|nexist|varrho|scedil|Scaron|scaron|hellip|Sacute|sacute|hercon|swnwar|compfn|rtimes|rthree|rsquor|rsaquo|zacute|wedgeq|homtht|barvee|barwed|Barwed|rpargt|horbar|conint|swarhk|roplus|nltrie|hslash|hstrok|Hstrok|rmoust|Conint|bprime|hybull|hyphen|iacute|Iacute|supsup|supsub|supsim|varphi|coprod|brvbar|agrave|Supset|supset|igrave|Igrave|notinE|Agrave|iiiint|iinfin|copysr|wedbar|Verbar|vangrt|becaus|incare|verbar|inodot|bullet|drcorn|intcal|drcrop|cularr|vellip|Utilde|bumpeq|cupcap|dstrok|Dstrok|CupCap|cupcup|cupdot|eacute|Eacute|supdot|iquest|easter|ecaron|Ecaron|ecolon|isinsv|utilde|itilde|Itilde|curarr|succeq|Bumpeq|cacute|ulcrop|nparsl|Cacute|nprcue|egrave|Egrave|nrarrc|nrarrw|subsup|subsub|nrtrie|jsercy|nsccue|Jsercy|kappav|kcedil|Kcedil|subsim|ulcorn|nsimeq|egsdot|veebar|kgreen|capand|elsdot|Subset|subset|curren|aacute|lacute|Lacute|emptyv|ntilde|Ntilde|lagran|lambda|Lambda|capcap|Ugrave|langle|subdot|emsp13|numero|emsp14|nvdash|nvDash|nVdash|nVDash|ugrave|ufisht|nvHarr|larrfs|nvlArr|larrhk|larrlp|larrpl|nvrArr|Udblac|nwarhk|larrtl|nwnear|oacute|Oacute|latail|lAtail|sstarf|lbrace|odblac|Odblac|lbrack|udblac|odsold|eparsl|lcaron|Lcaron|ograve|Ograve|lcedil|Lcedil|Aacute|ssmile|ssetmn|squarf|ldquor|capcup|ominus|cylcty|rharul|eqcirc|dagger|rfloor|rfisht|Dagger|daleth|equals|origof|capdot|equest|dcaron|Dcaron|rdquor|oslash|Oslash|otilde|Otilde|otimes|Otimes|urcrop|Ubreve|ubreve|Yacute|Uacute|uacute|Rcedil|rcedil|urcorn|parsim|Rcaron|Vdashl|rcaron|Tstrok|percnt|period|permil|Exists|yacute|rbrack|rbrace|phmmat|ccaron|Ccaron|planck|ccedil|plankv|tstrok|female|plusdo|plusdu|ffilig|plusmn|ffllig|Ccedil|rAtail|dfisht|bernou|ratail|Rarrtl|rarrtl|angsph|rarrpl|rarrlp|rarrhk|xwedge|xotime|forall|ForAll|Vvdash|vsupnE|preceq|bigcap|frac12|frac13|frac14|primes|rarrfs|prnsim|frac15|Square|frac16|square|lesdot|frac18|frac23|propto|prurel|rarrap|rangle|puncsp|frac25|Racute|qprime|racute|lesges|frac34|abreve|AElig|eqsim|utdot|setmn|urtri|Equal|Uring|seArr|uring|searr|dashv|Dashv|mumap|nabla|iogon|Iogon|sdote|sdotb|scsim|napid|napos|equiv|natur|Acirc|dblac|erarr|nbump|iprod|erDot|ucirc|awint|esdot|angrt|ncong|isinE|scnap|Scirc|scirc|ndash|isins|Ubrcy|nearr|neArr|isinv|nedot|ubrcy|acute|Ycirc|iukcy|Iukcy|xutri|nesim|caret|jcirc|Jcirc|caron|twixt|ddarr|sccue|exist|jmath|sbquo|ngeqq|angst|ccaps|lceil|ngsim|UpTee|delta|Delta|rtrif|nharr|nhArr|nhpar|rtrie|jukcy|Jukcy|kappa|rsquo|Kappa|nlarr|nlArr|TSHcy|rrarr|aogon|Aogon|fflig|xrarr|tshcy|ccirc|nleqq|filig|upsih|nless|dharl|nlsim|fjlig|ropar|nltri|dharr|robrk|roarr|fllig|fltns|roang|rnmid|subnE|subne|lAarr|trisb|Ccirc|acirc|ccups|blank|VDash|forkv|Vdash|langd|cedil|blk12|blk14|laquo|strns|diams|notin|vDash|larrb|blk34|block|disin|uplus|vdash|vBarv|aelig|starf|Wedge|check|xrArr|lates|lbarr|lBarr|notni|lbbrk|bcong|frasl|lbrke|frown|vrtri|vprop|vnsup|gamma|Gamma|wedge|xodot|bdquo|srarr|doteq|ldquo|boxdl|boxdL|gcirc|Gcirc|boxDl|boxDL|boxdr|boxdR|boxDr|TRADE|trade|rlhar|boxDR|vnsub|npart|vltri|rlarr|boxhd|boxhD|nprec|gescc|nrarr|nrArr|boxHd|boxHD|boxhu|boxhU|nrtri|boxHu|clubs|boxHU|times|colon|Colon|gimel|xlArr|Tilde|nsime|tilde|nsmid|nspar|THORN|thorn|xlarr|nsube|nsubE|thkap|xhArr|comma|nsucc|boxul|boxuL|nsupe|nsupE|gneqq|gnsim|boxUl|boxUL|grave|boxur|boxuR|boxUr|boxUR|lescc|angle|bepsi|boxvh|varpi|boxvH|numsp|Theta|gsime|gsiml|theta|boxVh|boxVH|boxvl|gtcir|gtdot|boxvL|boxVl|boxVL|crarr|cross|Cross|nvsim|boxvr|nwarr|nwArr|sqsup|dtdot|Uogon|lhard|lharu|dtrif|ocirc|Ocirc|lhblk|duarr|odash|sqsub|Hacek|sqcup|llarr|duhar|oelig|OElig|ofcir|boxvR|uogon|lltri|boxVr|csube|uuarr|ohbar|csupe|ctdot|olarr|olcir|harrw|oline|sqcap|omacr|Omacr|omega|Omega|boxVR|aleph|lneqq|lnsim|loang|loarr|rharu|lobrk|hcirc|operp|oplus|rhard|Hcirc|orarr|Union|order|ecirc|Ecirc|cuepr|szlig|cuesc|breve|reals|eDDot|Breve|hoarr|lopar|utrif|rdquo|Umacr|umacr|efDot|swArr|ultri|alpha|rceil|ovbar|swarr|Wcirc|wcirc|smtes|smile|bsemi|lrarr|aring|parsl|lrhar|bsime|uhblk|lrtri|cupor|Aring|uharr|uharl|slarr|rbrke|bsolb|lsime|rbbrk|RBarr|lsimg|phone|rBarr|rbarr|icirc|lsquo|Icirc|emacr|Emacr|ratio|simne|plusb|simlE|simgE|simeq|pluse|ltcir|ltdot|empty|xharr|xdtri|iexcl|Alpha|ltrie|rarrw|pound|ltrif|xcirc|bumpe|prcue|bumpE|asymp|amacr|cuvee|Sigma|sigma|iiint|udhar|iiota|ijlig|IJlig|supnE|imacr|Imacr|prime|Prime|image|prnap|eogon|Eogon|rarrc|mdash|mDDot|cuwed|imath|supne|imped|Amacr|udarr|prsim|micro|rarrb|cwint|raquo|infin|eplus|range|rangd|Ucirc|radic|minus|amalg|veeeq|rAarr|epsiv|ycirc|quest|sharp|quot|zwnj|Qscr|race|qscr|Qopf|qopf|qint|rang|Rang|Zscr|zscr|Zopf|zopf|rarr|rArr|Rarr|Pscr|pscr|prop|prod|prnE|prec|ZHcy|zhcy|prap|Zeta|zeta|Popf|popf|Zdot|plus|zdot|Yuml|yuml|phiv|YUcy|yucy|Yscr|yscr|perp|Yopf|yopf|part|para|YIcy|Ouml|rcub|yicy|YAcy|rdca|ouml|osol|Oscr|rdsh|yacy|real|oscr|xvee|andd|rect|andv|Xscr|oror|ordm|ordf|xscr|ange|aopf|Aopf|rHar|Xopf|opar|Oopf|xopf|xnis|rhov|oopf|omid|xmap|oint|apid|apos|ogon|ascr|Ascr|odot|odiv|xcup|xcap|ocir|oast|nvlt|nvle|nvgt|nvge|nvap|Wscr|wscr|auml|ntlg|ntgl|nsup|nsub|nsim|Nscr|nscr|nsce|Wopf|ring|npre|wopf|npar|Auml|Barv|bbrk|Nopf|nopf|nmid|nLtv|beta|ropf|Ropf|Beta|beth|nles|rpar|nleq|bnot|bNot|nldr|NJcy|rscr|Rscr|Vscr|vscr|rsqb|njcy|bopf|nisd|Bopf|rtri|Vopf|nGtv|ngtr|vopf|boxh|boxH|boxv|nges|ngeq|boxV|bscr|scap|Bscr|bsim|Vert|vert|bsol|bull|bump|caps|cdot|ncup|scnE|ncap|nbsp|napE|Cdot|cent|sdot|Vbar|nang|vBar|chcy|Mscr|mscr|sect|semi|CHcy|Mopf|mopf|sext|circ|cire|mldr|mlcp|cirE|comp|shcy|SHcy|vArr|varr|cong|copf|Copf|copy|COPY|malt|male|macr|lvnE|cscr|ltri|sime|ltcc|simg|Cscr|siml|csub|Uuml|lsqb|lsim|uuml|csup|Lscr|lscr|utri|smid|lpar|cups|smte|lozf|darr|Lopf|Uscr|solb|lopf|sopf|Sopf|lneq|uscr|spar|dArr|lnap|Darr|dash|Sqrt|LJcy|ljcy|lHar|dHar|Upsi|upsi|diam|lesg|djcy|DJcy|leqq|dopf|Dopf|dscr|Dscr|dscy|ldsh|ldca|squf|DScy|sscr|Sscr|dsol|lcub|late|star|Star|Uopf|Larr|lArr|larr|uopf|dtri|dzcy|sube|subE|Lang|lang|Kscr|kscr|Kopf|kopf|KJcy|kjcy|KHcy|khcy|DZcy|ecir|edot|eDot|Jscr|jscr|succ|Jopf|jopf|Edot|uHar|emsp|ensp|Iuml|iuml|eopf|isin|Iscr|iscr|Eopf|epar|sung|epsi|escr|sup1|sup2|sup3|Iota|iota|supe|supE|Iopf|iopf|IOcy|iocy|Escr|esim|Esim|imof|Uarr|QUOT|uArr|uarr|euml|IEcy|iecy|Idot|Euml|euro|excl|Hscr|hscr|Hopf|hopf|TScy|tscy|Tscr|hbar|tscr|flat|tbrk|fnof|hArr|harr|half|fopf|Fopf|tdot|gvnE|fork|trie|gtcc|fscr|Fscr|gdot|gsim|Gscr|gscr|Gopf|gopf|gneq|Gdot|tosa|gnap|Topf|topf|geqq|toea|GJcy|gjcy|tint|gesl|mid|Sfr|ggg|top|ges|gla|glE|glj|geq|gne|gEl|gel|gnE|Gcy|gcy|gap|Tfr|tfr|Tcy|tcy|Hat|Tau|Ffr|tau|Tab|hfr|Hfr|ffr|Fcy|fcy|icy|Icy|iff|ETH|eth|ifr|Ifr|Eta|eta|int|Int|Sup|sup|ucy|Ucy|Sum|sum|jcy|ENG|ufr|Ufr|eng|Jcy|jfr|els|ell|egs|Efr|efr|Jfr|uml|kcy|Kcy|Ecy|ecy|kfr|Kfr|lap|Sub|sub|lat|lcy|Lcy|leg|Dot|dot|lEg|leq|les|squ|div|die|lfr|Lfr|lgE|Dfr|dfr|Del|deg|Dcy|dcy|lne|lnE|sol|loz|smt|Cup|lrm|cup|lsh|Lsh|sim|shy|map|Map|mcy|Mcy|mfr|Mfr|mho|gfr|Gfr|sfr|cir|Chi|chi|nap|Cfr|vcy|Vcy|cfr|Scy|scy|ncy|Ncy|vee|Vee|Cap|cap|nfr|scE|sce|Nfr|nge|ngE|nGg|vfr|Vfr|ngt|bot|nGt|nis|niv|Rsh|rsh|nle|nlE|bne|Bfr|bfr|nLl|nlt|nLt|Bcy|bcy|not|Not|rlm|wfr|Wfr|npr|nsc|num|ocy|ast|Ocy|ofr|xfr|Xfr|Ofr|ogt|ohm|apE|olt|Rho|ape|rho|Rfr|rfr|ord|REG|ang|reg|orv|And|and|AMP|Rcy|amp|Afr|ycy|Ycy|yen|yfr|Yfr|rcy|par|pcy|Pcy|pfr|Pfr|phi|Phi|afr|Acy|acy|zcy|Zcy|piv|acE|acd|zfr|Zfr|pre|prE|psi|Psi|qfr|Qfr|zwj|Or|ge|Gg|gt|gg|el|oS|lt|Lt|LT|Re|lg|gl|eg|ne|Im|it|le|DD|wp|wr|nu|Nu|dd|lE|Sc|sc|pi|Pi|ee|af|ll|Ll|rx|gE|xi|pm|Xi|ic|pr|Pr|in|ni|mp|mu|ac|Mu|or|ap|Gt|GT|ii);|&(Aacute|Agrave|Atilde|Ccedil|Eacute|Egrave|Iacute|Igrave|Ntilde|Oacute|Ograve|Oslash|Otilde|Uacute|Ugrave|Yacute|aacute|agrave|atilde|brvbar|ccedil|curren|divide|eacute|egrave|frac12|frac14|frac34|iacute|igrave|iquest|middot|ntilde|oacute|ograve|oslash|otilde|plusmn|uacute|ugrave|yacute|AElig|Acirc|Aring|Ecirc|Icirc|Ocirc|THORN|Ucirc|acirc|acute|aelig|aring|cedil|ecirc|icirc|iexcl|laquo|micro|ocirc|pound|raquo|szlig|thorn|times|ucirc|Auml|COPY|Euml|Iuml|Ouml|QUOT|Uuml|auml|cent|copy|euml|iuml|macr|nbsp|ordf|ordm|ouml|para|quot|sect|sup1|sup2|sup3|uuml|yuml|AMP|ETH|REG|amp|deg|eth|not|reg|shy|uml|yen|GT|LT|gt|lt)(?!;)([=a-zA-Z0-9]?)|&#([0-9]+)(;?)|&#[xX]([a-fA-F0-9]+)(;?)|&([0-9a-zA-Z]+)/g;var b={aacute:"á",Aacute:"Á",abreve:"ă",Abreve:"Ă",ac:"∾",acd:"∿",acE:"∾̳",acirc:"â",Acirc:"Â",acute:"´",acy:"а",Acy:"А",aelig:"æ",AElig:"Æ",af:"⁡",afr:"𝔞",Afr:"𝔄",agrave:"à",Agrave:"À",alefsym:"ℵ",aleph:"ℵ",alpha:"α",Alpha:"Α",amacr:"ā",Amacr:"Ā",amalg:"⨿",amp:"&",AMP:"&",and:"∧",And:"⩓",andand:"⩕",andd:"⩜",andslope:"⩘",andv:"⩚",ang:"∠",ange:"⦤",angle:"∠",angmsd:"∡",angmsdaa:"⦨",angmsdab:"⦩",angmsdac:"⦪",angmsdad:"⦫",angmsdae:"⦬",angmsdaf:"⦭",angmsdag:"⦮",angmsdah:"⦯",angrt:"∟",angrtvb:"⊾",angrtvbd:"⦝",angsph:"∢",angst:"Å",angzarr:"⍼",aogon:"ą",Aogon:"Ą",aopf:"𝕒",Aopf:"𝔸",ap:"≈",apacir:"⩯",ape:"≊",apE:"⩰",apid:"≋",apos:"'",ApplyFunction:"⁡",approx:"≈",approxeq:"≊",aring:"å",Aring:"Å",ascr:"𝒶",Ascr:"𝒜",Assign:"≔",ast:"*",asymp:"≈",asympeq:"≍",atilde:"ã",Atilde:"Ã",auml:"ä",Auml:"Ä",awconint:"∳",awint:"⨑",backcong:"≌",backepsilon:"϶",backprime:"‵",backsim:"∽",backsimeq:"⋍",Backslash:"∖",Barv:"⫧",barvee:"⊽",barwed:"⌅",Barwed:"⌆",barwedge:"⌅",bbrk:"⎵",bbrktbrk:"⎶",bcong:"≌",bcy:"б",Bcy:"Б",bdquo:"„",becaus:"∵",because:"∵",Because:"∵",bemptyv:"⦰",bepsi:"϶",bernou:"ℬ",Bernoullis:"ℬ",beta:"β",Beta:"Β",beth:"ℶ",between:"≬",bfr:"𝔟",Bfr:"𝔅",bigcap:"⋂",bigcirc:"◯",bigcup:"⋃",bigodot:"⨀",bigoplus:"⨁",bigotimes:"⨂",bigsqcup:"⨆",bigstar:"★",bigtriangledown:"▽",bigtriangleup:"△",biguplus:"⨄",bigvee:"⋁",bigwedge:"⋀",bkarow:"⤍",blacklozenge:"⧫",blacksquare:"▪",blacktriangle:"▴",blacktriangledown:"▾",blacktriangleleft:"◂",blacktriangleright:"▸",blank:"␣",blk12:"▒",blk14:"░",blk34:"▓",block:"█",bne:"=⃥",bnequiv:"≡⃥",bnot:"⌐",bNot:"⫭",bopf:"𝕓",Bopf:"𝔹",bot:"⊥",bottom:"⊥",bowtie:"⋈",boxbox:"⧉",boxdl:"┐",boxdL:"╕",boxDl:"╖",boxDL:"╗",boxdr:"┌",boxdR:"╒",boxDr:"╓",boxDR:"╔",boxh:"─",boxH:"═",boxhd:"┬",boxhD:"╥",boxHd:"╤",boxHD:"╦",boxhu:"┴",boxhU:"╨",boxHu:"╧",boxHU:"╩",boxminus:"⊟",boxplus:"⊞",boxtimes:"⊠",boxul:"┘",boxuL:"╛",boxUl:"╜",boxUL:"╝",boxur:"└",boxuR:"╘",boxUr:"╙",boxUR:"╚",boxv:"│",boxV:"║",boxvh:"┼",boxvH:"╪",boxVh:"╫",boxVH:"╬",boxvl:"┤",boxvL:"╡",boxVl:"╢",boxVL:"╣",boxvr:"├",boxvR:"╞",boxVr:"╟",boxVR:"╠",bprime:"‵",breve:"˘",Breve:"˘",brvbar:"¦",bscr:"𝒷",Bscr:"ℬ",bsemi:"⁏",bsim:"∽",bsime:"⋍",bsol:"\\",bsolb:"⧅",bsolhsub:"⟈",bull:"•",bullet:"•",bump:"≎",bumpe:"≏",bumpE:"⪮",bumpeq:"≏",Bumpeq:"≎",cacute:"ć",Cacute:"Ć",cap:"∩",Cap:"⋒",capand:"⩄",capbrcup:"⩉",capcap:"⩋",capcup:"⩇",capdot:"⩀",CapitalDifferentialD:"ⅅ",caps:"∩︀",caret:"⁁",caron:"ˇ",Cayleys:"ℭ",ccaps:"⩍",ccaron:"č",Ccaron:"Č",ccedil:"ç",Ccedil:"Ç",ccirc:"ĉ",Ccirc:"Ĉ",Cconint:"∰",ccups:"⩌",ccupssm:"⩐",cdot:"ċ",Cdot:"Ċ",cedil:"¸",Cedilla:"¸",cemptyv:"⦲",cent:"¢",centerdot:"·",CenterDot:"·",cfr:"𝔠",Cfr:"ℭ",chcy:"ч",CHcy:"Ч",check:"✓",checkmark:"✓",chi:"χ",Chi:"Χ",cir:"○",circ:"ˆ",circeq:"≗",circlearrowleft:"↺",circlearrowright:"↻",circledast:"⊛",circledcirc:"⊚",circleddash:"⊝",CircleDot:"⊙",circledR:"®",circledS:"Ⓢ",CircleMinus:"⊖",CirclePlus:"⊕",CircleTimes:"⊗",cire:"≗",cirE:"⧃",cirfnint:"⨐",cirmid:"⫯",cirscir:"⧂",ClockwiseContourIntegral:"∲",CloseCurlyDoubleQuote:"”",CloseCurlyQuote:"’",clubs:"♣",clubsuit:"♣",colon:":",Colon:"∷",colone:"≔",Colone:"⩴",coloneq:"≔",comma:",",commat:"@",comp:"∁",compfn:"∘",complement:"∁",complexes:"ℂ",cong:"≅",congdot:"⩭",Congruent:"≡",conint:"∮",Conint:"∯",ContourIntegral:"∮",copf:"𝕔",Copf:"ℂ",coprod:"∐",Coproduct:"∐",copy:"©",COPY:"©",copysr:"℗",CounterClockwiseContourIntegral:"∳",crarr:"↵",cross:"✗",Cross:"⨯",cscr:"𝒸",Cscr:"𝒞",csub:"⫏",csube:"⫑",csup:"⫐",csupe:"⫒",ctdot:"⋯",cudarrl:"⤸",cudarrr:"⤵",cuepr:"⋞",cuesc:"⋟",cularr:"↶",cularrp:"⤽",cup:"∪",Cup:"⋓",cupbrcap:"⩈",cupcap:"⩆",CupCap:"≍",cupcup:"⩊",cupdot:"⊍",cupor:"⩅",cups:"∪︀",curarr:"↷",curarrm:"⤼",curlyeqprec:"⋞",curlyeqsucc:"⋟",curlyvee:"⋎",curlywedge:"⋏",curren:"¤",curvearrowleft:"↶",curvearrowright:"↷",cuvee:"⋎",cuwed:"⋏",cwconint:"∲",cwint:"∱",cylcty:"⌭",dagger:"†",Dagger:"‡",daleth:"ℸ",darr:"↓",dArr:"⇓",Darr:"↡",dash:"‐",dashv:"⊣",Dashv:"⫤",dbkarow:"⤏",dblac:"˝",dcaron:"ď",Dcaron:"Ď",dcy:"д",Dcy:"Д",dd:"ⅆ",DD:"ⅅ",ddagger:"‡",ddarr:"⇊",DDotrahd:"⤑",ddotseq:"⩷",deg:"°",Del:"∇",delta:"δ",Delta:"Δ",demptyv:"⦱",dfisht:"⥿",dfr:"𝔡",Dfr:"𝔇",dHar:"⥥",dharl:"⇃",dharr:"⇂",DiacriticalAcute:"´",DiacriticalDot:"˙",DiacriticalDoubleAcute:"˝",DiacriticalGrave:"`",DiacriticalTilde:"˜",diam:"⋄",diamond:"⋄",Diamond:"⋄",diamondsuit:"♦",diams:"♦",die:"¨",DifferentialD:"ⅆ",digamma:"ϝ",disin:"⋲",div:"÷",divide:"÷",divideontimes:"⋇",divonx:"⋇",djcy:"ђ",DJcy:"Ђ",dlcorn:"⌞",dlcrop:"⌍",dollar:"$",dopf:"𝕕",Dopf:"𝔻",dot:"˙",Dot:"¨",DotDot:"⃜",doteq:"≐",doteqdot:"≑",DotEqual:"≐",dotminus:"∸",dotplus:"∔",dotsquare:"⊡",doublebarwedge:"⌆",DoubleContourIntegral:"∯",DoubleDot:"¨",DoubleDownArrow:"⇓",DoubleLeftArrow:"⇐",DoubleLeftRightArrow:"⇔",DoubleLeftTee:"⫤",DoubleLongLeftArrow:"⟸",DoubleLongLeftRightArrow:"⟺",DoubleLongRightArrow:"⟹",DoubleRightArrow:"⇒",DoubleRightTee:"⊨",DoubleUpArrow:"⇑",DoubleUpDownArrow:"⇕",DoubleVerticalBar:"∥",downarrow:"↓",Downarrow:"⇓",DownArrow:"↓",DownArrowBar:"⤓",DownArrowUpArrow:"⇵",DownBreve:"̑",downdownarrows:"⇊",downharpoonleft:"⇃",downharpoonright:"⇂",DownLeftRightVector:"⥐",DownLeftTeeVector:"⥞",DownLeftVector:"↽",DownLeftVectorBar:"⥖",DownRightTeeVector:"⥟",DownRightVector:"⇁",DownRightVectorBar:"⥗",DownTee:"⊤",DownTeeArrow:"↧",drbkarow:"⤐",drcorn:"⌟",drcrop:"⌌",dscr:"𝒹",Dscr:"𝒟",dscy:"ѕ",DScy:"Ѕ",dsol:"⧶",dstrok:"đ",Dstrok:"Đ",dtdot:"⋱",dtri:"▿",dtrif:"▾",duarr:"⇵",duhar:"⥯",dwangle:"⦦",dzcy:"џ",DZcy:"Џ",dzigrarr:"⟿",eacute:"é",Eacute:"É",easter:"⩮",ecaron:"ě",Ecaron:"Ě",ecir:"≖",ecirc:"ê",Ecirc:"Ê",ecolon:"≕",ecy:"э",Ecy:"Э",eDDot:"⩷",edot:"ė",eDot:"≑",Edot:"Ė",ee:"ⅇ",efDot:"≒",efr:"𝔢",Efr:"𝔈",eg:"⪚",egrave:"è",Egrave:"È",egs:"⪖",egsdot:"⪘",el:"⪙",Element:"∈",elinters:"⏧",ell:"ℓ",els:"⪕",elsdot:"⪗",emacr:"ē",Emacr:"Ē",empty:"∅",emptyset:"∅",EmptySmallSquare:"◻",emptyv:"∅",EmptyVerySmallSquare:"▫",emsp:" ",emsp13:" ",emsp14:" ",eng:"ŋ",ENG:"Ŋ",ensp:" ",eogon:"ę",Eogon:"Ę",eopf:"𝕖",Eopf:"𝔼",epar:"⋕",eparsl:"⧣",eplus:"⩱",epsi:"ε",epsilon:"ε",Epsilon:"Ε",epsiv:"ϵ",eqcirc:"≖",eqcolon:"≕",eqsim:"≂",eqslantgtr:"⪖",eqslantless:"⪕",Equal:"⩵",equals:"=",EqualTilde:"≂",equest:"≟",Equilibrium:"⇌",equiv:"≡",equivDD:"⩸",eqvparsl:"⧥",erarr:"⥱",erDot:"≓",escr:"ℯ",Escr:"ℰ",esdot:"≐",esim:"≂",Esim:"⩳",eta:"η",Eta:"Η",eth:"ð",ETH:"Ð",euml:"ë",Euml:"Ë",euro:"€",excl:"!",exist:"∃",Exists:"∃",expectation:"ℰ",exponentiale:"ⅇ",ExponentialE:"ⅇ",fallingdotseq:"≒",fcy:"ф",Fcy:"Ф",female:"♀",ffilig:"ffi",fflig:"ff",ffllig:"ffl",ffr:"𝔣",Ffr:"𝔉",filig:"fi",FilledSmallSquare:"◼",FilledVerySmallSquare:"▪",fjlig:"fj",flat:"♭",fllig:"fl",fltns:"▱",fnof:"ƒ",fopf:"𝕗",Fopf:"𝔽",forall:"∀",ForAll:"∀",fork:"⋔",forkv:"⫙",Fouriertrf:"ℱ",fpartint:"⨍",frac12:"½",frac13:"⅓",frac14:"¼",frac15:"⅕",frac16:"⅙",frac18:"⅛",frac23:"⅔",frac25:"⅖",frac34:"¾",frac35:"⅗",frac38:"⅜",frac45:"⅘",frac56:"⅚",frac58:"⅝",frac78:"⅞",frasl:"⁄",frown:"⌢",fscr:"𝒻",Fscr:"ℱ",gacute:"ǵ",gamma:"γ",Gamma:"Γ",gammad:"ϝ",Gammad:"Ϝ",gap:"⪆",gbreve:"ğ",Gbreve:"Ğ",Gcedil:"Ģ",gcirc:"ĝ",Gcirc:"Ĝ",gcy:"г",Gcy:"Г",gdot:"ġ",Gdot:"Ġ",ge:"≥",gE:"≧",gel:"⋛",gEl:"⪌",geq:"≥",geqq:"≧",geqslant:"⩾",ges:"⩾",gescc:"⪩",gesdot:"⪀",gesdoto:"⪂",gesdotol:"⪄",gesl:"⋛︀",gesles:"⪔",gfr:"𝔤",Gfr:"𝔊",gg:"≫",Gg:"⋙",ggg:"⋙",gimel:"ℷ",gjcy:"ѓ",GJcy:"Ѓ",gl:"≷",gla:"⪥",glE:"⪒",glj:"⪤",gnap:"⪊",gnapprox:"⪊",gne:"⪈",gnE:"≩",gneq:"⪈",gneqq:"≩",gnsim:"⋧",gopf:"𝕘",Gopf:"𝔾",grave:"`",GreaterEqual:"≥",GreaterEqualLess:"⋛",GreaterFullEqual:"≧",GreaterGreater:"⪢",GreaterLess:"≷",GreaterSlantEqual:"⩾",GreaterTilde:"≳",gscr:"ℊ",Gscr:"𝒢",gsim:"≳",gsime:"⪎",gsiml:"⪐",gt:">",Gt:"≫",GT:">",gtcc:"⪧",gtcir:"⩺",gtdot:"⋗",gtlPar:"⦕",gtquest:"⩼",gtrapprox:"⪆",gtrarr:"⥸",gtrdot:"⋗",gtreqless:"⋛",gtreqqless:"⪌",gtrless:"≷",gtrsim:"≳",gvertneqq:"≩︀",gvnE:"≩︀",Hacek:"ˇ",hairsp:" ",half:"½",hamilt:"ℋ",hardcy:"ъ",HARDcy:"Ъ",harr:"↔",hArr:"⇔",harrcir:"⥈",harrw:"↭",Hat:"^",hbar:"ℏ",hcirc:"ĥ",Hcirc:"Ĥ",hearts:"♥",heartsuit:"♥",hellip:"…",hercon:"⊹",hfr:"𝔥",Hfr:"ℌ",HilbertSpace:"ℋ",hksearow:"⤥",hkswarow:"⤦",hoarr:"⇿",homtht:"∻",hookleftarrow:"↩",hookrightarrow:"↪",hopf:"𝕙",Hopf:"ℍ",horbar:"―",HorizontalLine:"─",hscr:"𝒽",Hscr:"ℋ",hslash:"ℏ",hstrok:"ħ",Hstrok:"Ħ",HumpDownHump:"≎",HumpEqual:"≏",hybull:"⁃",hyphen:"‐",iacute:"í",Iacute:"Í",ic:"⁣",icirc:"î",Icirc:"Î",icy:"и",Icy:"И",Idot:"İ",iecy:"е",IEcy:"Е",iexcl:"¡",iff:"⇔",ifr:"𝔦",Ifr:"ℑ",igrave:"ì",Igrave:"Ì",ii:"ⅈ",iiiint:"⨌",iiint:"∭",iinfin:"⧜",iiota:"℩",ijlig:"ij",IJlig:"IJ",Im:"ℑ",imacr:"ī",Imacr:"Ī",image:"ℑ",ImaginaryI:"ⅈ",imagline:"ℐ",imagpart:"ℑ",imath:"ı",imof:"⊷",imped:"Ƶ",Implies:"⇒",in:"∈",incare:"℅",infin:"∞",infintie:"⧝",inodot:"ı",int:"∫",Int:"∬",intcal:"⊺",integers:"ℤ",Integral:"∫",intercal:"⊺",Intersection:"⋂",intlarhk:"⨗",intprod:"⨼",InvisibleComma:"⁣",InvisibleTimes:"⁢",iocy:"ё",IOcy:"Ё",iogon:"į",Iogon:"Į",iopf:"𝕚",Iopf:"𝕀",iota:"ι",Iota:"Ι",iprod:"⨼",iquest:"¿",iscr:"𝒾",Iscr:"ℐ",isin:"∈",isindot:"⋵",isinE:"⋹",isins:"⋴",isinsv:"⋳",isinv:"∈",it:"⁢",itilde:"ĩ",Itilde:"Ĩ",iukcy:"і",Iukcy:"І",iuml:"ï",Iuml:"Ï",jcirc:"ĵ",Jcirc:"Ĵ",jcy:"й",Jcy:"Й",jfr:"𝔧",Jfr:"𝔍",jmath:"ȷ",jopf:"𝕛",Jopf:"𝕁",jscr:"𝒿",Jscr:"𝒥",jsercy:"ј",Jsercy:"Ј",jukcy:"є",Jukcy:"Є",kappa:"κ",Kappa:"Κ",kappav:"ϰ",kcedil:"ķ",Kcedil:"Ķ",kcy:"к",Kcy:"К",kfr:"𝔨",Kfr:"𝔎",kgreen:"ĸ",khcy:"х",KHcy:"Х",kjcy:"ќ",KJcy:"Ќ",kopf:"𝕜",Kopf:"𝕂",kscr:"𝓀",Kscr:"𝒦",lAarr:"⇚",lacute:"ĺ",Lacute:"Ĺ",laemptyv:"⦴",lagran:"ℒ",lambda:"λ",Lambda:"Λ",lang:"⟨",Lang:"⟪",langd:"⦑",langle:"⟨",lap:"⪅",Laplacetrf:"ℒ",laquo:"«",larr:"←",lArr:"⇐",Larr:"↞",larrb:"⇤",larrbfs:"⤟",larrfs:"⤝",larrhk:"↩",larrlp:"↫",larrpl:"⤹",larrsim:"⥳",larrtl:"↢",lat:"⪫",latail:"⤙",lAtail:"⤛",late:"⪭",lates:"⪭︀",lbarr:"⤌",lBarr:"⤎",lbbrk:"❲",lbrace:"{",lbrack:"[",lbrke:"⦋",lbrksld:"⦏",lbrkslu:"⦍",lcaron:"ľ",Lcaron:"Ľ",lcedil:"ļ",Lcedil:"Ļ",lceil:"⌈",lcub:"{",lcy:"л",Lcy:"Л",ldca:"⤶",ldquo:"“",ldquor:"„",ldrdhar:"⥧",ldrushar:"⥋",ldsh:"↲",le:"≤",lE:"≦",LeftAngleBracket:"⟨",leftarrow:"←",Leftarrow:"⇐",LeftArrow:"←",LeftArrowBar:"⇤",LeftArrowRightArrow:"⇆",leftarrowtail:"↢",LeftCeiling:"⌈",LeftDoubleBracket:"⟦",LeftDownTeeVector:"⥡",LeftDownVector:"⇃",LeftDownVectorBar:"⥙",LeftFloor:"⌊",leftharpoondown:"↽",leftharpoonup:"↼",leftleftarrows:"⇇",leftrightarrow:"↔",Leftrightarrow:"⇔",LeftRightArrow:"↔",leftrightarrows:"⇆",leftrightharpoons:"⇋",leftrightsquigarrow:"↭",LeftRightVector:"⥎",LeftTee:"⊣",LeftTeeArrow:"↤",LeftTeeVector:"⥚",leftthreetimes:"⋋",LeftTriangle:"⊲",LeftTriangleBar:"⧏",LeftTriangleEqual:"⊴",LeftUpDownVector:"⥑",LeftUpTeeVector:"⥠",LeftUpVector:"↿",LeftUpVectorBar:"⥘",LeftVector:"↼",LeftVectorBar:"⥒",leg:"⋚",lEg:"⪋",leq:"≤",leqq:"≦",leqslant:"⩽",les:"⩽",lescc:"⪨",lesdot:"⩿",lesdoto:"⪁",lesdotor:"⪃",lesg:"⋚︀",lesges:"⪓",lessapprox:"⪅",lessdot:"⋖",lesseqgtr:"⋚",lesseqqgtr:"⪋",LessEqualGreater:"⋚",LessFullEqual:"≦",LessGreater:"≶",lessgtr:"≶",LessLess:"⪡",lesssim:"≲",LessSlantEqual:"⩽",LessTilde:"≲",lfisht:"⥼",lfloor:"⌊",lfr:"𝔩",Lfr:"𝔏",lg:"≶",lgE:"⪑",lHar:"⥢",lhard:"↽",lharu:"↼",lharul:"⥪",lhblk:"▄",ljcy:"љ",LJcy:"Љ",ll:"≪",Ll:"⋘",llarr:"⇇",llcorner:"⌞",Lleftarrow:"⇚",llhard:"⥫",lltri:"◺",lmidot:"ŀ",Lmidot:"Ŀ",lmoust:"⎰",lmoustache:"⎰",lnap:"⪉",lnapprox:"⪉",lne:"⪇",lnE:"≨",lneq:"⪇",lneqq:"≨",lnsim:"⋦",loang:"⟬",loarr:"⇽",lobrk:"⟦",longleftarrow:"⟵",Longleftarrow:"⟸",LongLeftArrow:"⟵",longleftrightarrow:"⟷",Longleftrightarrow:"⟺",LongLeftRightArrow:"⟷",longmapsto:"⟼",longrightarrow:"⟶",Longrightarrow:"⟹",LongRightArrow:"⟶",looparrowleft:"↫",looparrowright:"↬",lopar:"⦅",lopf:"𝕝",Lopf:"𝕃",loplus:"⨭",lotimes:"⨴",lowast:"∗",lowbar:"_",LowerLeftArrow:"↙",LowerRightArrow:"↘",loz:"◊",lozenge:"◊",lozf:"⧫",lpar:"(",lparlt:"⦓",lrarr:"⇆",lrcorner:"⌟",lrhar:"⇋",lrhard:"⥭",lrm:"‎",lrtri:"⊿",lsaquo:"‹",lscr:"𝓁",Lscr:"ℒ",lsh:"↰",Lsh:"↰",lsim:"≲",lsime:"⪍",lsimg:"⪏",lsqb:"[",lsquo:"‘",lsquor:"‚",lstrok:"ł",Lstrok:"Ł",lt:"<",Lt:"≪",LT:"<",ltcc:"⪦",ltcir:"⩹",ltdot:"⋖",lthree:"⋋",ltimes:"⋉",ltlarr:"⥶",ltquest:"⩻",ltri:"◃",ltrie:"⊴",ltrif:"◂",ltrPar:"⦖",lurdshar:"⥊",luruhar:"⥦",lvertneqq:"≨︀",lvnE:"≨︀",macr:"¯",male:"♂",malt:"✠",maltese:"✠",map:"↦",Map:"⤅",mapsto:"↦",mapstodown:"↧",mapstoleft:"↤",mapstoup:"↥",marker:"▮",mcomma:"⨩",mcy:"м",Mcy:"М",mdash:"—",mDDot:"∺",measuredangle:"∡",MediumSpace:" ",Mellintrf:"ℳ",mfr:"𝔪",Mfr:"𝔐",mho:"℧",micro:"µ",mid:"∣",midast:"*",midcir:"⫰",middot:"·",minus:"−",minusb:"⊟",minusd:"∸",minusdu:"⨪",MinusPlus:"∓",mlcp:"⫛",mldr:"…",mnplus:"∓",models:"⊧",mopf:"𝕞",Mopf:"𝕄",mp:"∓",mscr:"𝓂",Mscr:"ℳ",mstpos:"∾",mu:"μ",Mu:"Μ",multimap:"⊸",mumap:"⊸",nabla:"∇",nacute:"ń",Nacute:"Ń",nang:"∠⃒",nap:"≉",napE:"⩰̸",napid:"≋̸",napos:"ʼn",napprox:"≉",natur:"♮",natural:"♮",naturals:"ℕ",nbsp:" ",nbump:"≎̸",nbumpe:"≏̸",ncap:"⩃",ncaron:"ň",Ncaron:"Ň",ncedil:"ņ",Ncedil:"Ņ",ncong:"≇",ncongdot:"⩭̸",ncup:"⩂",ncy:"н",Ncy:"Н",ndash:"–",ne:"≠",nearhk:"⤤",nearr:"↗",neArr:"⇗",nearrow:"↗",nedot:"≐̸",NegativeMediumSpace:"​",NegativeThickSpace:"​",NegativeThinSpace:"​",NegativeVeryThinSpace:"​",nequiv:"≢",nesear:"⤨",nesim:"≂̸",NestedGreaterGreater:"≫",NestedLessLess:"≪",NewLine:"\n",nexist:"∄",nexists:"∄",nfr:"𝔫",Nfr:"𝔑",nge:"≱",ngE:"≧̸",ngeq:"≱",ngeqq:"≧̸",ngeqslant:"⩾̸",nges:"⩾̸",nGg:"⋙̸",ngsim:"≵",ngt:"≯",nGt:"≫⃒",ngtr:"≯",nGtv:"≫̸",nharr:"↮",nhArr:"⇎",nhpar:"⫲",ni:"∋",nis:"⋼",nisd:"⋺",niv:"∋",njcy:"њ",NJcy:"Њ",nlarr:"↚",nlArr:"⇍",nldr:"‥",nle:"≰",nlE:"≦̸",nleftarrow:"↚",nLeftarrow:"⇍",nleftrightarrow:"↮",nLeftrightarrow:"⇎",nleq:"≰",nleqq:"≦̸",nleqslant:"⩽̸",nles:"⩽̸",nless:"≮",nLl:"⋘̸",nlsim:"≴",nlt:"≮",nLt:"≪⃒",nltri:"⋪",nltrie:"⋬",nLtv:"≪̸",nmid:"∤",NoBreak:"⁠",NonBreakingSpace:" ",nopf:"𝕟",Nopf:"ℕ",not:"¬",Not:"⫬",NotCongruent:"≢",NotCupCap:"≭",NotDoubleVerticalBar:"∦",NotElement:"∉",NotEqual:"≠",NotEqualTilde:"≂̸",NotExists:"∄",NotGreater:"≯",NotGreaterEqual:"≱",NotGreaterFullEqual:"≧̸",NotGreaterGreater:"≫̸",NotGreaterLess:"≹",NotGreaterSlantEqual:"⩾̸",NotGreaterTilde:"≵",NotHumpDownHump:"≎̸",NotHumpEqual:"≏̸",notin:"∉",notindot:"⋵̸",notinE:"⋹̸",notinva:"∉",notinvb:"⋷",notinvc:"⋶",NotLeftTriangle:"⋪",NotLeftTriangleBar:"⧏̸",NotLeftTriangleEqual:"⋬",NotLess:"≮",NotLessEqual:"≰",NotLessGreater:"≸",NotLessLess:"≪̸",NotLessSlantEqual:"⩽̸",NotLessTilde:"≴",NotNestedGreaterGreater:"⪢̸",NotNestedLessLess:"⪡̸",notni:"∌",notniva:"∌",notnivb:"⋾",notnivc:"⋽",NotPrecedes:"⊀",NotPrecedesEqual:"⪯̸",NotPrecedesSlantEqual:"⋠",NotReverseElement:"∌",NotRightTriangle:"⋫",NotRightTriangleBar:"⧐̸",NotRightTriangleEqual:"⋭",NotSquareSubset:"⊏̸",NotSquareSubsetEqual:"⋢",NotSquareSuperset:"⊐̸",NotSquareSupersetEqual:"⋣",NotSubset:"⊂⃒",NotSubsetEqual:"⊈",NotSucceeds:"⊁",NotSucceedsEqual:"⪰̸",NotSucceedsSlantEqual:"⋡",NotSucceedsTilde:"≿̸",NotSuperset:"⊃⃒",NotSupersetEqual:"⊉",NotTilde:"≁",NotTildeEqual:"≄",NotTildeFullEqual:"≇",NotTildeTilde:"≉",NotVerticalBar:"∤",npar:"∦",nparallel:"∦",nparsl:"⫽⃥",npart:"∂̸",npolint:"⨔",npr:"⊀",nprcue:"⋠",npre:"⪯̸",nprec:"⊀",npreceq:"⪯̸",nrarr:"↛",nrArr:"⇏",nrarrc:"⤳̸",nrarrw:"↝̸",nrightarrow:"↛",nRightarrow:"⇏",nrtri:"⋫",nrtrie:"⋭",nsc:"⊁",nsccue:"⋡",nsce:"⪰̸",nscr:"𝓃",Nscr:"𝒩",nshortmid:"∤",nshortparallel:"∦",nsim:"≁",nsime:"≄",nsimeq:"≄",nsmid:"∤",nspar:"∦",nsqsube:"⋢",nsqsupe:"⋣",nsub:"⊄",nsube:"⊈",nsubE:"⫅̸",nsubset:"⊂⃒",nsubseteq:"⊈",nsubseteqq:"⫅̸",nsucc:"⊁",nsucceq:"⪰̸",nsup:"⊅",nsupe:"⊉",nsupE:"⫆̸",nsupset:"⊃⃒",nsupseteq:"⊉",nsupseteqq:"⫆̸",ntgl:"≹",ntilde:"ñ",Ntilde:"Ñ",ntlg:"≸",ntriangleleft:"⋪",ntrianglelefteq:"⋬",ntriangleright:"⋫",ntrianglerighteq:"⋭",nu:"ν",Nu:"Ν",num:"#",numero:"№",numsp:" ",nvap:"≍⃒",nvdash:"⊬",nvDash:"⊭",nVdash:"⊮",nVDash:"⊯",nvge:"≥⃒",nvgt:">⃒",nvHarr:"⤄",nvinfin:"⧞",nvlArr:"⤂",nvle:"≤⃒",nvlt:"<⃒",nvltrie:"⊴⃒",nvrArr:"⤃",nvrtrie:"⊵⃒",nvsim:"∼⃒",nwarhk:"⤣",nwarr:"↖",nwArr:"⇖",nwarrow:"↖",nwnear:"⤧",oacute:"ó",Oacute:"Ó",oast:"⊛",ocir:"⊚",ocirc:"ô",Ocirc:"Ô",ocy:"о",Ocy:"О",odash:"⊝",odblac:"ő",Odblac:"Ő",odiv:"⨸",odot:"⊙",odsold:"⦼",oelig:"œ",OElig:"Œ",ofcir:"⦿",ofr:"𝔬",Ofr:"𝔒",ogon:"˛",ograve:"ò",Ograve:"Ò",ogt:"⧁",ohbar:"⦵",ohm:"Ω",oint:"∮",olarr:"↺",olcir:"⦾",olcross:"⦻",oline:"‾",olt:"⧀",omacr:"ō",Omacr:"Ō",omega:"ω",Omega:"Ω",omicron:"ο",Omicron:"Ο",omid:"⦶",ominus:"⊖",oopf:"𝕠",Oopf:"𝕆",opar:"⦷",OpenCurlyDoubleQuote:"“",OpenCurlyQuote:"‘",operp:"⦹",oplus:"⊕",or:"∨",Or:"⩔",orarr:"↻",ord:"⩝",order:"ℴ",orderof:"ℴ",ordf:"ª",ordm:"º",origof:"⊶",oror:"⩖",orslope:"⩗",orv:"⩛",oS:"Ⓢ",oscr:"ℴ",Oscr:"𝒪",oslash:"ø",Oslash:"Ø",osol:"⊘",otilde:"õ",Otilde:"Õ",otimes:"⊗",Otimes:"⨷",otimesas:"⨶",ouml:"ö",Ouml:"Ö",ovbar:"⌽",OverBar:"‾",OverBrace:"⏞",OverBracket:"⎴",OverParenthesis:"⏜",par:"∥",para:"¶",parallel:"∥",parsim:"⫳",parsl:"⫽",part:"∂",PartialD:"∂",pcy:"п",Pcy:"П",percnt:"%",period:".",permil:"‰",perp:"⊥",pertenk:"‱",pfr:"𝔭",Pfr:"𝔓",phi:"φ",Phi:"Φ",phiv:"ϕ",phmmat:"ℳ",phone:"☎",pi:"π",Pi:"Π",pitchfork:"⋔",piv:"ϖ",planck:"ℏ",planckh:"ℎ",plankv:"ℏ",plus:"+",plusacir:"⨣",plusb:"⊞",pluscir:"⨢",plusdo:"∔",plusdu:"⨥",pluse:"⩲",PlusMinus:"±",plusmn:"±",plussim:"⨦",plustwo:"⨧",pm:"±",Poincareplane:"ℌ",pointint:"⨕",popf:"𝕡",Popf:"ℙ",pound:"£",pr:"≺",Pr:"⪻",prap:"⪷",prcue:"≼",pre:"⪯",prE:"⪳",prec:"≺",precapprox:"⪷",preccurlyeq:"≼",Precedes:"≺",PrecedesEqual:"⪯",PrecedesSlantEqual:"≼",PrecedesTilde:"≾",preceq:"⪯",precnapprox:"⪹",precneqq:"⪵",precnsim:"⋨",precsim:"≾",prime:"′",Prime:"″",primes:"ℙ",prnap:"⪹",prnE:"⪵",prnsim:"⋨",prod:"∏",Product:"∏",profalar:"⌮",profline:"⌒",profsurf:"⌓",prop:"∝",Proportion:"∷",Proportional:"∝",propto:"∝",prsim:"≾",prurel:"⊰",pscr:"𝓅",Pscr:"𝒫",psi:"ψ",Psi:"Ψ",puncsp:" ",qfr:"𝔮",Qfr:"𝔔",qint:"⨌",qopf:"𝕢",Qopf:"ℚ",qprime:"⁗",qscr:"𝓆",Qscr:"𝒬",quaternions:"ℍ",quatint:"⨖",quest:"?",questeq:"≟",quot:'"',QUOT:'"',rAarr:"⇛",race:"∽̱",racute:"ŕ",Racute:"Ŕ",radic:"√",raemptyv:"⦳",rang:"⟩",Rang:"⟫",rangd:"⦒",range:"⦥",rangle:"⟩",raquo:"»",rarr:"→",rArr:"⇒",Rarr:"↠",rarrap:"⥵",rarrb:"⇥",rarrbfs:"⤠",rarrc:"⤳",rarrfs:"⤞",rarrhk:"↪",rarrlp:"↬",rarrpl:"⥅",rarrsim:"⥴",rarrtl:"↣",Rarrtl:"⤖",rarrw:"↝",ratail:"⤚",rAtail:"⤜",ratio:"∶",rationals:"ℚ",rbarr:"⤍",rBarr:"⤏",RBarr:"⤐",rbbrk:"❳",rbrace:"}",rbrack:"]",rbrke:"⦌",rbrksld:"⦎",rbrkslu:"⦐",rcaron:"ř",Rcaron:"Ř",rcedil:"ŗ",Rcedil:"Ŗ",rceil:"⌉",rcub:"}",rcy:"р",Rcy:"Р",rdca:"⤷",rdldhar:"⥩",rdquo:"”",rdquor:"”",rdsh:"↳",Re:"ℜ",real:"ℜ",realine:"ℛ",realpart:"ℜ",reals:"ℝ",rect:"▭",reg:"®",REG:"®",ReverseElement:"∋",ReverseEquilibrium:"⇋",ReverseUpEquilibrium:"⥯",rfisht:"⥽",rfloor:"⌋",rfr:"𝔯",Rfr:"ℜ",rHar:"⥤",rhard:"⇁",rharu:"⇀",rharul:"⥬",rho:"ρ",Rho:"Ρ",rhov:"ϱ",RightAngleBracket:"⟩",rightarrow:"→",Rightarrow:"⇒",RightArrow:"→",RightArrowBar:"⇥",RightArrowLeftArrow:"⇄",rightarrowtail:"↣",RightCeiling:"⌉",RightDoubleBracket:"⟧",RightDownTeeVector:"⥝",RightDownVector:"⇂",RightDownVectorBar:"⥕",RightFloor:"⌋",rightharpoondown:"⇁",rightharpoonup:"⇀",rightleftarrows:"⇄",rightleftharpoons:"⇌",rightrightarrows:"⇉",rightsquigarrow:"↝",RightTee:"⊢",RightTeeArrow:"↦",RightTeeVector:"⥛",rightthreetimes:"⋌",RightTriangle:"⊳",RightTriangleBar:"⧐",RightTriangleEqual:"⊵",RightUpDownVector:"⥏",RightUpTeeVector:"⥜",RightUpVector:"↾",RightUpVectorBar:"⥔",RightVector:"⇀",RightVectorBar:"⥓",ring:"˚",risingdotseq:"≓",rlarr:"⇄",rlhar:"⇌",rlm:"‏",rmoust:"⎱",rmoustache:"⎱",rnmid:"⫮",roang:"⟭",roarr:"⇾",robrk:"⟧",ropar:"⦆",ropf:"𝕣",Ropf:"ℝ",roplus:"⨮",rotimes:"⨵",RoundImplies:"⥰",rpar:")",rpargt:"⦔",rppolint:"⨒",rrarr:"⇉",Rrightarrow:"⇛",rsaquo:"›",rscr:"𝓇",Rscr:"ℛ",rsh:"↱",Rsh:"↱",rsqb:"]",rsquo:"’",rsquor:"’",rthree:"⋌",rtimes:"⋊",rtri:"▹",rtrie:"⊵",rtrif:"▸",rtriltri:"⧎",RuleDelayed:"⧴",ruluhar:"⥨",rx:"℞",sacute:"ś",Sacute:"Ś",sbquo:"‚",sc:"≻",Sc:"⪼",scap:"⪸",scaron:"š",Scaron:"Š",sccue:"≽",sce:"⪰",scE:"⪴",scedil:"ş",Scedil:"Ş",scirc:"ŝ",Scirc:"Ŝ",scnap:"⪺",scnE:"⪶",scnsim:"⋩",scpolint:"⨓",scsim:"≿",scy:"с",Scy:"С",sdot:"⋅",sdotb:"⊡",sdote:"⩦",searhk:"⤥",searr:"↘",seArr:"⇘",searrow:"↘",sect:"§",semi:";",seswar:"⤩",setminus:"∖",setmn:"∖",sext:"✶",sfr:"𝔰",Sfr:"𝔖",sfrown:"⌢",sharp:"♯",shchcy:"щ",SHCHcy:"Щ",shcy:"ш",SHcy:"Ш",ShortDownArrow:"↓",ShortLeftArrow:"←",shortmid:"∣",shortparallel:"∥",ShortRightArrow:"→",ShortUpArrow:"↑",shy:"­",sigma:"σ",Sigma:"Σ",sigmaf:"ς",sigmav:"ς",sim:"∼",simdot:"⩪",sime:"≃",simeq:"≃",simg:"⪞",simgE:"⪠",siml:"⪝",simlE:"⪟",simne:"≆",simplus:"⨤",simrarr:"⥲",slarr:"←",SmallCircle:"∘",smallsetminus:"∖",smashp:"⨳",smeparsl:"⧤",smid:"∣",smile:"⌣",smt:"⪪",smte:"⪬",smtes:"⪬︀",softcy:"ь",SOFTcy:"Ь",sol:"/",solb:"⧄",solbar:"⌿",sopf:"𝕤",Sopf:"𝕊",spades:"♠",spadesuit:"♠",spar:"∥",sqcap:"⊓",sqcaps:"⊓︀",sqcup:"⊔",sqcups:"⊔︀",Sqrt:"√",sqsub:"⊏",sqsube:"⊑",sqsubset:"⊏",sqsubseteq:"⊑",sqsup:"⊐",sqsupe:"⊒",sqsupset:"⊐",sqsupseteq:"⊒",squ:"□",square:"□",Square:"□",SquareIntersection:"⊓",SquareSubset:"⊏",SquareSubsetEqual:"⊑",SquareSuperset:"⊐",SquareSupersetEqual:"⊒",SquareUnion:"⊔",squarf:"▪",squf:"▪",srarr:"→",sscr:"𝓈",Sscr:"𝒮",ssetmn:"∖",ssmile:"⌣",sstarf:"⋆",star:"☆",Star:"⋆",starf:"★",straightepsilon:"ϵ",straightphi:"ϕ",strns:"¯",sub:"⊂",Sub:"⋐",subdot:"⪽",sube:"⊆",subE:"⫅",subedot:"⫃",submult:"⫁",subne:"⊊",subnE:"⫋",subplus:"⪿",subrarr:"⥹",subset:"⊂",Subset:"⋐",subseteq:"⊆",subseteqq:"⫅",SubsetEqual:"⊆",subsetneq:"⊊",subsetneqq:"⫋",subsim:"⫇",subsub:"⫕",subsup:"⫓",succ:"≻",succapprox:"⪸",succcurlyeq:"≽",Succeeds:"≻",SucceedsEqual:"⪰",SucceedsSlantEqual:"≽",SucceedsTilde:"≿",succeq:"⪰",succnapprox:"⪺",succneqq:"⪶",succnsim:"⋩",succsim:"≿",SuchThat:"∋",sum:"∑",Sum:"∑",sung:"♪",sup:"⊃",Sup:"⋑",sup1:"¹",sup2:"²",sup3:"³",supdot:"⪾",supdsub:"⫘",supe:"⊇",supE:"⫆",supedot:"⫄",Superset:"⊃",SupersetEqual:"⊇",suphsol:"⟉",suphsub:"⫗",suplarr:"⥻",supmult:"⫂",supne:"⊋",supnE:"⫌",supplus:"⫀",supset:"⊃",Supset:"⋑",supseteq:"⊇",supseteqq:"⫆",supsetneq:"⊋",supsetneqq:"⫌",supsim:"⫈",supsub:"⫔",supsup:"⫖",swarhk:"⤦",swarr:"↙",swArr:"⇙",swarrow:"↙",swnwar:"⤪",szlig:"ß",Tab:"\t",target:"⌖",tau:"τ",Tau:"Τ",tbrk:"⎴",tcaron:"ť",Tcaron:"Ť",tcedil:"ţ",Tcedil:"Ţ",tcy:"т",Tcy:"Т",tdot:"⃛",telrec:"⌕",tfr:"𝔱",Tfr:"𝔗",there4:"∴",therefore:"∴",Therefore:"∴",theta:"θ",Theta:"Θ",thetasym:"ϑ",thetav:"ϑ",thickapprox:"≈",thicksim:"∼",ThickSpace:"  ",thinsp:" ",ThinSpace:" ",thkap:"≈",thksim:"∼",thorn:"þ",THORN:"Þ",tilde:"˜",Tilde:"∼",TildeEqual:"≃",TildeFullEqual:"≅",TildeTilde:"≈",times:"×",timesb:"⊠",timesbar:"⨱",timesd:"⨰",tint:"∭",toea:"⤨",top:"⊤",topbot:"⌶",topcir:"⫱",topf:"𝕥",Topf:"𝕋",topfork:"⫚",tosa:"⤩",tprime:"‴",trade:"™",TRADE:"™",triangle:"▵",triangledown:"▿",triangleleft:"◃",trianglelefteq:"⊴",triangleq:"≜",triangleright:"▹",trianglerighteq:"⊵",tridot:"◬",trie:"≜",triminus:"⨺",TripleDot:"⃛",triplus:"⨹",trisb:"⧍",tritime:"⨻",trpezium:"⏢",tscr:"𝓉",Tscr:"𝒯",tscy:"ц",TScy:"Ц",tshcy:"ћ",TSHcy:"Ћ",tstrok:"ŧ",Tstrok:"Ŧ",twixt:"≬",twoheadleftarrow:"↞",twoheadrightarrow:"↠",uacute:"ú",Uacute:"Ú",uarr:"↑",uArr:"⇑",Uarr:"↟",Uarrocir:"⥉",ubrcy:"ў",Ubrcy:"Ў",ubreve:"ŭ",Ubreve:"Ŭ",ucirc:"û",Ucirc:"Û",ucy:"у",Ucy:"У",udarr:"⇅",udblac:"ű",Udblac:"Ű",udhar:"⥮",ufisht:"⥾",ufr:"𝔲",Ufr:"𝔘",ugrave:"ù",Ugrave:"Ù",uHar:"⥣",uharl:"↿",uharr:"↾",uhblk:"▀",ulcorn:"⌜",ulcorner:"⌜",ulcrop:"⌏",ultri:"◸",umacr:"ū",Umacr:"Ū",uml:"¨",UnderBar:"_",UnderBrace:"⏟",UnderBracket:"⎵",UnderParenthesis:"⏝",Union:"⋃",UnionPlus:"⊎",uogon:"ų",Uogon:"Ų",uopf:"𝕦",Uopf:"𝕌",uparrow:"↑",Uparrow:"⇑",UpArrow:"↑",UpArrowBar:"⤒",UpArrowDownArrow:"⇅",updownarrow:"↕",Updownarrow:"⇕",UpDownArrow:"↕",UpEquilibrium:"⥮",upharpoonleft:"↿",upharpoonright:"↾",uplus:"⊎",UpperLeftArrow:"↖",UpperRightArrow:"↗",upsi:"υ",Upsi:"ϒ",upsih:"ϒ",upsilon:"υ",Upsilon:"Υ",UpTee:"⊥",UpTeeArrow:"↥",upuparrows:"⇈",urcorn:"⌝",urcorner:"⌝",urcrop:"⌎",uring:"ů",Uring:"Ů",urtri:"◹",uscr:"𝓊",Uscr:"𝒰",utdot:"⋰",utilde:"ũ",Utilde:"Ũ",utri:"▵",utrif:"▴",uuarr:"⇈",uuml:"ü",Uuml:"Ü",uwangle:"⦧",vangrt:"⦜",varepsilon:"ϵ",varkappa:"ϰ",varnothing:"∅",varphi:"ϕ",varpi:"ϖ",varpropto:"∝",varr:"↕",vArr:"⇕",varrho:"ϱ",varsigma:"ς",varsubsetneq:"⊊︀",varsubsetneqq:"⫋︀",varsupsetneq:"⊋︀",varsupsetneqq:"⫌︀",vartheta:"ϑ",vartriangleleft:"⊲",vartriangleright:"⊳",vBar:"⫨",Vbar:"⫫",vBarv:"⫩",vcy:"в",Vcy:"В",vdash:"⊢",vDash:"⊨",Vdash:"⊩",VDash:"⊫",Vdashl:"⫦",vee:"∨",Vee:"⋁",veebar:"⊻",veeeq:"≚",vellip:"⋮",verbar:"|",Verbar:"‖",vert:"|",Vert:"‖",VerticalBar:"∣",VerticalLine:"|",VerticalSeparator:"❘",VerticalTilde:"≀",VeryThinSpace:" ",vfr:"𝔳",Vfr:"𝔙",vltri:"⊲",vnsub:"⊂⃒",vnsup:"⊃⃒",vopf:"𝕧",Vopf:"𝕍",vprop:"∝",vrtri:"⊳",vscr:"𝓋",Vscr:"𝒱",vsubne:"⊊︀",vsubnE:"⫋︀",vsupne:"⊋︀",vsupnE:"⫌︀",Vvdash:"⊪",vzigzag:"⦚",wcirc:"ŵ",Wcirc:"Ŵ",wedbar:"⩟",wedge:"∧",Wedge:"⋀",wedgeq:"≙",weierp:"℘",wfr:"𝔴",Wfr:"𝔚",wopf:"𝕨",Wopf:"𝕎",wp:"℘",wr:"≀",wreath:"≀",wscr:"𝓌",Wscr:"𝒲",xcap:"⋂",xcirc:"◯",xcup:"⋃",xdtri:"▽",xfr:"𝔵",Xfr:"𝔛",xharr:"⟷",xhArr:"⟺",xi:"ξ",Xi:"Ξ",xlarr:"⟵",xlArr:"⟸",xmap:"⟼",xnis:"⋻",xodot:"⨀",xopf:"𝕩",Xopf:"𝕏",xoplus:"⨁",xotime:"⨂",xrarr:"⟶",xrArr:"⟹",xscr:"𝓍",Xscr:"𝒳",xsqcup:"⨆",xuplus:"⨄",xutri:"△",xvee:"⋁",xwedge:"⋀",yacute:"ý",Yacute:"Ý",yacy:"я",YAcy:"Я",ycirc:"ŷ",Ycirc:"Ŷ",ycy:"ы",Ycy:"Ы",yen:"¥",yfr:"𝔶",Yfr:"𝔜",yicy:"ї",YIcy:"Ї",yopf:"𝕪",Yopf:"𝕐",yscr:"𝓎",Yscr:"𝒴",yucy:"ю",YUcy:"Ю",yuml:"ÿ",Yuml:"Ÿ",zacute:"ź",Zacute:"Ź",zcaron:"ž",Zcaron:"Ž",zcy:"з",Zcy:"З",zdot:"ż",Zdot:"Ż",zeetrf:"ℨ",ZeroWidthSpace:"​",zeta:"ζ",Zeta:"Ζ",zfr:"𝔷",Zfr:"ℨ",zhcy:"ж",ZHcy:"Ж",zigrarr:"⇝",zopf:"𝕫",Zopf:"ℤ",zscr:"𝓏",Zscr:"𝒵",zwj:"‍",zwnj:"‌"};var Q={aacute:"á",Aacute:"Á",acirc:"â",Acirc:"Â",acute:"´",aelig:"æ",AElig:"Æ",agrave:"à",Agrave:"À",amp:"&",AMP:"&",aring:"å",Aring:"Å",atilde:"ã",Atilde:"Ã",auml:"ä",Auml:"Ä",brvbar:"¦",ccedil:"ç",Ccedil:"Ç",cedil:"¸",cent:"¢",copy:"©",COPY:"©",curren:"¤",deg:"°",divide:"÷",eacute:"é",Eacute:"É",ecirc:"ê",Ecirc:"Ê",egrave:"è",Egrave:"È",eth:"ð",ETH:"Ð",euml:"ë",Euml:"Ë",frac12:"½",frac14:"¼",frac34:"¾",gt:">",GT:">",iacute:"í",Iacute:"Í",icirc:"î",Icirc:"Î",iexcl:"¡",igrave:"ì",Igrave:"Ì",iquest:"¿",iuml:"ï",Iuml:"Ï",laquo:"«",lt:"<",LT:"<",macr:"¯",micro:"µ",middot:"·",nbsp:" ",not:"¬",ntilde:"ñ",Ntilde:"Ñ",oacute:"ó",Oacute:"Ó",ocirc:"ô",Ocirc:"Ô",ograve:"ò",Ograve:"Ò",ordf:"ª",ordm:"º",oslash:"ø",Oslash:"Ø",otilde:"õ",Otilde:"Õ",ouml:"ö",Ouml:"Ö",para:"¶",plusmn:"±",pound:"£",quot:'"',QUOT:'"',raquo:"»",reg:"®",REG:"®",sect:"§",shy:"­",sup1:"¹",sup2:"²",sup3:"³",szlig:"ß",thorn:"þ",THORN:"Þ",times:"×",uacute:"ú",Uacute:"Ú",ucirc:"û",Ucirc:"Û",ugrave:"ù",Ugrave:"Ù",uml:"¨",uuml:"ü",Uuml:"Ü",yacute:"ý",Yacute:"Ý",yen:"¥",yuml:"ÿ"};var w={0:"�",128:"€",130:"‚",131:"ƒ",132:"„",133:"…",134:"†",135:"‡",136:"ˆ",137:"‰",138:"Š",139:"‹",140:"Œ",142:"Ž",145:"‘",146:"’",147:"“",148:"”",149:"•",150:"–",151:"—",152:"˜",153:"™",154:"š",155:"›",156:"œ",158:"ž",159:"Ÿ"};var v=[1,2,3,4,5,6,7,8,11,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,64976,64977,64978,64979,64980,64981,64982,64983,64984,64985,64986,64987,64988,64989,64990,64991,64992,64993,64994,64995,64996,64997,64998,64999,65e3,65001,65002,65003,65004,65005,65006,65007,65534,65535,131070,131071,196606,196607,262142,262143,327678,327679,393214,393215,458750,458751,524286,524287,589822,589823,655358,655359,720894,720895,786430,786431,851966,851967,917502,917503,983038,983039,1048574,1048575,1114110,1114111];var S=String.fromCharCode;var R={};var N=R.hasOwnProperty;var has=function(r,s){return N.call(r,s)};var contains=function(r,s){var i=-1;var a=r.length;while(++i=55296&&r<=57343||r>1114111){if(s){parseError("character reference outside the permissible Unicode range")}return"�"}if(has(w,r)){if(s){parseError("disallowed character reference")}return w[r]}if(s&&contains(v,r)){parseError("disallowed character reference")}if(r>65535){r-=65536;i+=S(r>>>10&1023|55296);r=56320|r&1023}i+=S(r);return i};var hexEscape=function(r){return"&#x"+r.toString(16).toUpperCase()+";"};var decEscape=function(r){return"&#"+r+";"};var parseError=function(r){throw Error("Parse error: "+r)};var encode=function(r,s){s=merge(s,encode.options);var i=s.strict;if(i&&I.test(r)){parseError("forbidden code point")}var a=s.encodeEverything;var A=s.useNamedReferences;var c=s.allowUnsafeSymbols;var C=s.decimal?decEscape:hexEscape;var escapeBmpSymbol=function(r){return C(r.charCodeAt(0))};if(a){r=r.replace(d,(function(r){if(A&&has(g,r)){return"&"+g[r]+";"}return escapeBmpSymbol(r)}));if(A){r=r.replace(/>\u20D2/g,">⃒").replace(/<\u20D2/g,"<⃒").replace(/fj/g,"fj")}if(A){r=r.replace(p,(function(r){return"&"+g[r]+";"}))}}else if(A){if(!c){r=r.replace(h,(function(r){return"&"+g[r]+";"}))}r=r.replace(/>\u20D2/g,">⃒").replace(/<\u20D2/g,"<⃒");r=r.replace(p,(function(r){return"&"+g[r]+";"}))}else if(!c){r=r.replace(h,escapeBmpSymbol)}return r.replace(l,(function(r){var s=r.charCodeAt(0);var i=r.charCodeAt(1);var a=(s-55296)*1024+i-56320+65536;return C(a)})).replace(u,escapeBmpSymbol)};encode.options={allowUnsafeSymbols:false,encodeEverything:false,strict:false,useNamedReferences:false,decimal:false};var decode=function(r,s){s=merge(s,decode.options);var i=s.strict;if(i&&y.test(r)){parseError("malformed character reference")}return r.replace(B,(function(r,a,A,c,l,d,u,p,g){var h;var C;var y;var I;var B;var w;if(a){B=a;return b[B]}if(A){B=A;w=c;if(w&&s.isAttributeValue){if(i&&w=="="){parseError("`&` did not start a character reference")}return r}else{if(i){parseError("named character reference was not terminated by a semicolon")}return Q[B]+(w||"")}}if(l){y=l;C=d;if(i&&!C){parseError("character reference was not terminated by a semicolon")}h=parseInt(y,10);return codePointToSymbol(h,i)}if(u){I=u;C=p;if(i&&!C){parseError("character reference was not terminated by a semicolon")}h=parseInt(I,16);return codePointToSymbol(h,i)}if(i){parseError("named character reference was not terminated by a semicolon")}return r}))};decode.options={isAttributeValue:false,strict:false};var escape=function(r){return r.replace(h,(function(r){return C[r]}))};var x={version:"1.2.0",encode:encode,decode:decode,escape:escape,unescape:decode};if(typeof define=="function"&&typeof define.amd=="object"&&define.amd){define((function(){return x}))}else if(a&&!a.nodeType){if(A){A.exports=x}else{for(var D in x){has(x,D)&&(a[D]=x[D])}}}else{i.he=x}})(this)},23764:function(r,s,i){"use strict";var a=this&&this.__createBinding||(Object.create?function(r,s,i,a){if(a===undefined)a=i;var A=Object.getOwnPropertyDescriptor(s,i);if(!A||("get"in A?!s.__esModule:A.writable||A.configurable)){A={enumerable:true,get:function(){return s[i]}}}Object.defineProperty(r,a,A)}:function(r,s,i,a){if(a===undefined)a=i;r[a]=s[i]});var A=this&&this.__setModuleDefault||(Object.create?function(r,s){Object.defineProperty(r,"default",{enumerable:true,value:s})}:function(r,s){r["default"]=s});var c=this&&this.__importStar||function(r){if(r&&r.__esModule)return r;var s={};if(r!=null)for(var i in r)if(i!=="default"&&Object.prototype.hasOwnProperty.call(r,i))a(s,r,i);A(s,r);return s};var l=this&&this.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(s,"__esModule",{value:true});s.HttpProxyAgent=void 0;const d=c(i(41808));const u=c(i(24404));const p=l(i(38237));const g=i(82361);const h=i(70694);const C=i(57310);const y=(0,p.default)("http-proxy-agent");class HttpProxyAgent extends h.Agent{constructor(r,s){super(s);this.proxy=typeof r==="string"?new C.URL(r):r;this.proxyHeaders=s?.headers??{};y("Creating new HttpProxyAgent instance: %o",this.proxy.href);const i=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,"");const a=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol==="https:"?443:80;this.connectOpts={...s?omit(s,"headers"):null,host:i,port:a}}addRequest(r,s){r._header=null;this.setRequestProps(r,s);super.addRequest(r,s)}setRequestProps(r,s){const{proxy:i}=this;const a=s.secureEndpoint?"https:":"http:";const A=r.getHeader("host")||"localhost";const c=`${a}//${A}`;const l=new C.URL(r.path,c);if(s.port!==80){l.port=String(s.port)}r.path=String(l);const d=typeof this.proxyHeaders==="function"?this.proxyHeaders():{...this.proxyHeaders};if(i.username||i.password){const r=`${decodeURIComponent(i.username)}:${decodeURIComponent(i.password)}`;d["Proxy-Authorization"]=`Basic ${Buffer.from(r).toString("base64")}`}if(!d["Proxy-Connection"]){d["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close"}for(const s of Object.keys(d)){const i=d[s];if(i){r.setHeader(s,i)}}}async connect(r,s){r._header=null;if(!r.path.includes("://")){this.setRequestProps(r,s)}let i;let a;y("Regenerating stored HTTP header string for request");r._implicitHeader();if(r.outputData&&r.outputData.length>0){y("Patching connection write() output buffer with updated header");i=r.outputData[0].data;a=i.indexOf("\r\n\r\n")+4;r.outputData[0].data=r._header+i.substring(a);y("Output buffer: %o",r.outputData[0].data)}let A;if(this.proxy.protocol==="https:"){y("Creating `tls.Socket`: %o",this.connectOpts);A=u.connect(this.connectOpts)}else{y("Creating `net.Socket`: %o",this.connectOpts);A=d.connect(this.connectOpts)}await(0,g.once)(A,"connect");return A}}HttpProxyAgent.protocols=["http","https"];s.HttpProxyAgent=HttpProxyAgent;function omit(r,...s){const i={};let a;for(a in r){if(!s.includes(a)){i[a]=r[a]}}return i}},77219:function(r,s,i){"use strict";var a=this&&this.__createBinding||(Object.create?function(r,s,i,a){if(a===undefined)a=i;var A=Object.getOwnPropertyDescriptor(s,i);if(!A||("get"in A?!s.__esModule:A.writable||A.configurable)){A={enumerable:true,get:function(){return s[i]}}}Object.defineProperty(r,a,A)}:function(r,s,i,a){if(a===undefined)a=i;r[a]=s[i]});var A=this&&this.__setModuleDefault||(Object.create?function(r,s){Object.defineProperty(r,"default",{enumerable:true,value:s})}:function(r,s){r["default"]=s});var c=this&&this.__importStar||function(r){if(r&&r.__esModule)return r;var s={};if(r!=null)for(var i in r)if(i!=="default"&&Object.prototype.hasOwnProperty.call(r,i))a(s,r,i);A(s,r);return s};var l=this&&this.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(s,"__esModule",{value:true});s.HttpsProxyAgent=void 0;const d=c(i(41808));const u=c(i(24404));const p=l(i(39491));const g=l(i(38237));const h=i(40351);const C=i(57310);const y=i(595);const I=(0,g.default)("https-proxy-agent");const setServernameFromNonIpHost=r=>{if(r.servername===undefined&&r.host&&!d.isIP(r.host)){return{...r,servername:r.host}}return r};class HttpsProxyAgent extends h.Agent{constructor(r,s){super(s);this.options={path:undefined};this.proxy=typeof r==="string"?new C.URL(r):r;this.proxyHeaders=s?.headers??{};I("Creating new HttpsProxyAgent instance: %o",this.proxy.href);const i=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,"");const a=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol==="https:"?443:80;this.connectOpts={ALPNProtocols:["http/1.1"],...s?omit(s,"headers"):null,host:i,port:a}}async connect(r,s){const{proxy:i}=this;if(!s.host){throw new TypeError('No "host" provided')}let a;if(i.protocol==="https:"){I("Creating `tls.Socket`: %o",this.connectOpts);a=u.connect(setServernameFromNonIpHost(this.connectOpts))}else{I("Creating `net.Socket`: %o",this.connectOpts);a=d.connect(this.connectOpts)}const A=typeof this.proxyHeaders==="function"?this.proxyHeaders():{...this.proxyHeaders};const c=d.isIPv6(s.host)?`[${s.host}]`:s.host;let l=`CONNECT ${c}:${s.port} HTTP/1.1\r\n`;if(i.username||i.password){const r=`${decodeURIComponent(i.username)}:${decodeURIComponent(i.password)}`;A["Proxy-Authorization"]=`Basic ${Buffer.from(r).toString("base64")}`}A.Host=`${c}:${s.port}`;if(!A["Proxy-Connection"]){A["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close"}for(const r of Object.keys(A)){l+=`${r}: ${A[r]}\r\n`}const g=(0,y.parseProxyResponse)(a);a.write(`${l}\r\n`);const{connect:h,buffered:C}=await g;r.emit("proxyConnect",h);this.emit("proxyConnect",h,r);if(h.statusCode===200){r.once("socket",resume);if(s.secureEndpoint){I("Upgrading socket connection to TLS");return u.connect({...omit(setServernameFromNonIpHost(s),"host","path","port"),socket:a})}return a}a.destroy();const B=new d.Socket({writable:false});B.readable=true;r.once("socket",(r=>{I("Replaying proxy buffer for failed request");(0,p.default)(r.listenerCount("data")>0);r.push(C);r.push(null)}));return B}}HttpsProxyAgent.protocols=["http","https"];s.HttpsProxyAgent=HttpsProxyAgent;function resume(r){r.resume()}function omit(r,...s){const i={};let a;for(a in r){if(!s.includes(a)){i[a]=r[a]}}return i}},595:function(r,s,i){"use strict";var a=this&&this.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(s,"__esModule",{value:true});s.parseProxyResponse=void 0;const A=a(i(38237));const c=(0,A.default)("https-proxy-agent:parse-proxy-response");function parseProxyResponse(r){return new Promise(((s,i)=>{let a=0;const A=[];function read(){const s=r.read();if(s)ondata(s);else r.once("readable",read)}function cleanup(){r.removeListener("end",onend);r.removeListener("error",onerror);r.removeListener("readable",read)}function onend(){cleanup();c("onend");i(new Error("Proxy connection ended before receiving CONNECT response"))}function onerror(r){cleanup();c("onerror %o",r);i(r)}function ondata(l){A.push(l);a+=l.length;const d=Buffer.concat(A,a);const u=d.indexOf("\r\n\r\n");if(u===-1){c("have not received end of HTTP headers yet...");read();return}const p=d.slice(0,u).toString("ascii").split("\r\n");const g=p.shift();if(!g){r.destroy();return i(new Error("No header received from proxy CONNECT response"))}const h=g.split(" ");const C=+h[1];const y=h.slice(2).join(" ");const I={};for(const s of p){if(!s)continue;const a=s.indexOf(":");if(a===-1){r.destroy();return i(new Error(`Invalid header from proxy CONNECT response: "${s}"`))}const A=s.slice(0,a).toLowerCase();const c=s.slice(a+1).trimStart();const l=I[A];if(typeof l==="string"){I[A]=[l,c]}else if(Array.isArray(l)){l.push(c)}else{I[A]=c}}c("got proxy server response: %o %o",g,I);cleanup();s({connect:{statusCode:C,statusText:y,headers:I},buffered:d})}r.on("error",onerror);r.on("end",onend);read()}))}s.parseProxyResponse=parseProxyResponse},77486:function(r,s,i){"use strict";var a=this&&this.__createBinding||(Object.create?function(r,s,i,a){if(a===undefined)a=i;var A=Object.getOwnPropertyDescriptor(s,i);if(!A||("get"in A?!s.__esModule:A.writable||A.configurable)){A={enumerable:true,get:function(){return s[i]}}}Object.defineProperty(r,a,A)}:function(r,s,i,a){if(a===undefined)a=i;r[a]=s[i]});var A=this&&this.__setModuleDefault||(Object.create?function(r,s){Object.defineProperty(r,"default",{enumerable:true,value:s})}:function(r,s){r["default"]=s});var c=this&&this.__importStar||function(r){if(r&&r.__esModule)return r;var s={};if(r!=null)for(var i in r)if(i!=="default"&&Object.prototype.hasOwnProperty.call(r,i))a(s,r,i);A(s,r);return s};Object.defineProperty(s,"__esModule",{value:true});s.req=s.json=s.toBuffer=void 0;const l=c(i(13685));const d=c(i(95687));async function toBuffer(r){let s=0;const i=[];for await(const a of r){s+=a.length;i.push(a)}return Buffer.concat(i,s)}s.toBuffer=toBuffer;async function json(r){const s=await toBuffer(r);const i=s.toString("utf8");try{return JSON.parse(i)}catch(r){const s=r;s.message+=` (input: ${i})`;throw s}}s.json=json;function req(r,s={}){const i=typeof r==="string"?r:r.href;const a=(i.startsWith("https:")?d:l).request(r,s);const A=new Promise(((r,s)=>{a.once("response",r).once("error",s).end()}));a.then=A.then.bind(A);return a}s.req=req},40351:function(r,s,i){"use strict";var a=this&&this.__createBinding||(Object.create?function(r,s,i,a){if(a===undefined)a=i;var A=Object.getOwnPropertyDescriptor(s,i);if(!A||("get"in A?!s.__esModule:A.writable||A.configurable)){A={enumerable:true,get:function(){return s[i]}}}Object.defineProperty(r,a,A)}:function(r,s,i,a){if(a===undefined)a=i;r[a]=s[i]});var A=this&&this.__setModuleDefault||(Object.create?function(r,s){Object.defineProperty(r,"default",{enumerable:true,value:s})}:function(r,s){r["default"]=s});var c=this&&this.__importStar||function(r){if(r&&r.__esModule)return r;var s={};if(r!=null)for(var i in r)if(i!=="default"&&Object.prototype.hasOwnProperty.call(r,i))a(s,r,i);A(s,r);return s};var l=this&&this.__exportStar||function(r,s){for(var i in r)if(i!=="default"&&!Object.prototype.hasOwnProperty.call(s,i))a(s,r,i)};Object.defineProperty(s,"__esModule",{value:true});s.Agent=void 0;const d=c(i(41808));const u=c(i(13685));const p=i(95687);l(i(77486),s);const g=Symbol("AgentBaseInternalState");class Agent extends u.Agent{constructor(r){super(r);this[g]={}}isSecureEndpoint(r){if(r){if(typeof r.secureEndpoint==="boolean"){return r.secureEndpoint}if(typeof r.protocol==="string"){return r.protocol==="https:"}}const{stack:s}=new Error;if(typeof s!=="string")return false;return s.split("\n").some((r=>r.indexOf("(https.js:")!==-1||r.indexOf("node:https:")!==-1))}incrementSockets(r){if(this.maxSockets===Infinity&&this.maxTotalSockets===Infinity){return null}if(!this.sockets[r]){this.sockets[r]=[]}const s=new d.Socket({writable:false});this.sockets[r].push(s);this.totalSocketCount++;return s}decrementSockets(r,s){if(!this.sockets[r]||s===null){return}const i=this.sockets[r];const a=i.indexOf(s);if(a!==-1){i.splice(a,1);this.totalSocketCount--;if(i.length===0){delete this.sockets[r]}}}getName(r){const s=typeof r.secureEndpoint==="boolean"?r.secureEndpoint:this.isSecureEndpoint(r);if(s){return p.Agent.prototype.getName.call(this,r)}return super.getName(r)}createSocket(r,s,i){const a={...s,secureEndpoint:this.isSecureEndpoint(s)};const A=this.getName(a);const c=this.incrementSockets(A);Promise.resolve().then((()=>this.connect(r,a))).then((l=>{this.decrementSockets(A,c);if(l instanceof u.Agent){try{return l.addRequest(r,a)}catch(r){return i(r)}}this[g].currentSocket=l;super.createSocket(r,s,i)}),(r=>{this.decrementSockets(A,c);i(r)}))}createConnection(){const r=this[g].currentSocket;this[g].currentSocket=undefined;if(!r){throw new Error("No socket was returned in the `connect()` function")}return r}get defaultPort(){return this[g].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(r){if(this[g]){this[g].defaultPort=r}}get protocol(){return this[g].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(r){if(this[g]){this[g].protocol=r}}}s.Agent=Agent},39695:(r,s,i)=>{"use strict";var a=i(15118).Buffer;s._dbcs=DBCSCodec;var A=-1,c=-2,l=-10,d=-1e3,u=new Array(256),p=-1;for(var g=0;g<256;g++)u[g]=A;function DBCSCodec(r,s){this.encodingName=r.encodingName;if(!r)throw new Error("DBCS codec is called without the data.");if(!r.table)throw new Error("Encoding '"+this.encodingName+"' has no data.");var i=r.table();this.decodeTables=[];this.decodeTables[0]=u.slice(0);this.decodeTableSeq=[];for(var a=0;ad){throw new Error("gb18030 decode tables conflict at byte 2")}var y=this.decodeTables[d-h[C]];for(var I=129;I<=254;I++){if(y[I]===A){y[I]=d-p}else if(y[I]===d-p){continue}else if(y[I]>d){throw new Error("gb18030 decode tables conflict at byte 3")}var B=this.decodeTables[d-y[I]];for(var b=48;b<=57;b++){if(B[b]===A)B[b]=c}}}}}this.defaultCharUnicode=s.defaultCharUnicode;this.encodeTable=[];this.encodeTableSeq=[];var Q={};if(r.encodeSkipVals)for(var a=0;a0;r>>>=8)s.push(r&255);if(s.length==0)s.push(0);var i=this.decodeTables[0];for(var a=s.length-1;a>0;a--){var c=i[s[a]];if(c==A){i[s[a]]=d-this.decodeTables.length;this.decodeTables.push(i=u.slice(0))}else if(c<=d){i=this.decodeTables[d-c]}else throw new Error("Overwrite byte in "+this.encodingName+", addr: "+r.toString(16))}return i};DBCSCodec.prototype._addDecodeChunk=function(r){var s=parseInt(r[0],16);var i=this._getDecodeTrieNode(s);s=s&255;for(var a=1;a255)throw new Error("Incorrect chunk in "+this.encodingName+" at addr "+r[0]+": too long"+s)};DBCSCodec.prototype._getEncodeBucket=function(r){var s=r>>8;if(this.encodeTable[s]===undefined)this.encodeTable[s]=u.slice(0);return this.encodeTable[s]};DBCSCodec.prototype._setEncodeChar=function(r,s){var i=this._getEncodeBucket(r);var a=r&255;if(i[a]<=l)this.encodeTableSeq[l-i[a]][p]=s;else if(i[a]==A)i[a]=s};DBCSCodec.prototype._setEncodeSequence=function(r,s){var i=r[0];var a=this._getEncodeBucket(i);var c=i&255;var d;if(a[c]<=l){d=this.encodeTableSeq[l-a[c]]}else{d={};if(a[c]!==A)d[p]=a[c];a[c]=l-this.encodeTableSeq.length;this.encodeTableSeq.push(d)}for(var u=1;u=0){this._setEncodeChar(p,g);A=true}else if(p<=d){var h=d-p;if(!c[h]){var C=g<<8>>>0;if(this._fillEncodeTable(h,C,i))A=true;else c[h]=true}}else if(p<=l){this._setEncodeSequence(this.decodeTableSeq[l-p],g);A=true}}return A};function DBCSEncoder(r,s){this.leadSurrogate=-1;this.seqObj=undefined;this.encodeTable=s.encodeTable;this.encodeTableSeq=s.encodeTableSeq;this.defaultCharSingleByte=s.defCharSB;this.gb18030=s.gb18030}DBCSEncoder.prototype.write=function(r){var s=a.alloc(r.length*(this.gb18030?4:3)),i=this.leadSurrogate,c=this.seqObj,d=-1,u=0,g=0;while(true){if(d===-1){if(u==r.length)break;var h=r.charCodeAt(u++)}else{var h=d;d=-1}if(55296<=h&&h<57344){if(h<56320){if(i===-1){i=h;continue}else{i=h;h=A}}else{if(i!==-1){h=65536+(i-55296)*1024+(h-56320);i=-1}else{h=A}}}else if(i!==-1){d=h;h=A;i=-1}var C=A;if(c!==undefined&&h!=A){var y=c[h];if(typeof y==="object"){c=y;continue}else if(typeof y=="number"){C=y}else if(y==undefined){y=c[p];if(y!==undefined){C=y;d=h}else{}}c=undefined}else if(h>=0){var I=this.encodeTable[h>>8];if(I!==undefined)C=I[h&255];if(C<=l){c=this.encodeTableSeq[l-C];continue}if(C==A&&this.gb18030){var B=findIdx(this.gb18030.uChars,h);if(B!=-1){var C=this.gb18030.gbChars[B]+(h-this.gb18030.uChars[B]);s[g++]=129+Math.floor(C/12600);C=C%12600;s[g++]=48+Math.floor(C/1260);C=C%1260;s[g++]=129+Math.floor(C/10);C=C%10;s[g++]=48+C;continue}}}if(C===A)C=this.defaultCharSingleByte;if(C<256){s[g++]=C}else if(C<65536){s[g++]=C>>8;s[g++]=C&255}else if(C<16777216){s[g++]=C>>16;s[g++]=C>>8&255;s[g++]=C&255}else{s[g++]=C>>>24;s[g++]=C>>>16&255;s[g++]=C>>>8&255;s[g++]=C&255}}this.seqObj=c;this.leadSurrogate=i;return s.slice(0,g)};DBCSEncoder.prototype.end=function(){if(this.leadSurrogate===-1&&this.seqObj===undefined)return;var r=a.alloc(10),s=0;if(this.seqObj){var i=this.seqObj[p];if(i!==undefined){if(i<256){r[s++]=i}else{r[s++]=i>>8;r[s++]=i&255}}else{}this.seqObj=undefined}if(this.leadSurrogate!==-1){r[s++]=this.defaultCharSingleByte;this.leadSurrogate=-1}return r.slice(0,s)};DBCSEncoder.prototype.findIdx=findIdx;function DBCSDecoder(r,s){this.nodeIdx=0;this.prevBytes=[];this.decodeTables=s.decodeTables;this.decodeTableSeq=s.decodeTableSeq;this.defaultCharUnicode=s.defaultCharUnicode;this.gb18030=s.gb18030}DBCSDecoder.prototype.write=function(r){var s=a.alloc(r.length*2),i=this.nodeIdx,u=this.prevBytes,p=this.prevBytes.length,g=-this.prevBytes.length,h;for(var C=0,y=0;C=0?r[C]:u[C+p];var h=this.decodeTables[i][I];if(h>=0){}else if(h===A){h=this.defaultCharUnicode.charCodeAt(0);C=g}else if(h===c){if(C>=3){var B=(r[C-3]-129)*12600+(r[C-2]-48)*1260+(r[C-1]-129)*10+(I-48)}else{var B=(u[C-3+p]-129)*12600+((C-2>=0?r[C-2]:u[C-2+p])-48)*1260+((C-1>=0?r[C-1]:u[C-1+p])-129)*10+(I-48)}var b=findIdx(this.gb18030.gbChars,B);h=this.gb18030.uChars[b]+B-this.gb18030.gbChars[b]}else if(h<=d){i=d-h;continue}else if(h<=l){var Q=this.decodeTableSeq[l-h];for(var w=0;w>8}h=Q[Q.length-1]}else throw new Error("iconv-lite internal error: invalid decoding table value "+h+" at "+i+"/"+I);if(h>=65536){h-=65536;var v=55296|h>>10;s[y++]=v&255;s[y++]=v>>8;h=56320|h&1023}s[y++]=h&255;s[y++]=h>>8;i=0;g=C+1}this.nodeIdx=i;this.prevBytes=g>=0?Array.prototype.slice.call(r,g):u.slice(g+p).concat(Array.prototype.slice.call(r));return s.slice(0,y).toString("ucs2")};DBCSDecoder.prototype.end=function(){var r="";while(this.prevBytes.length>0){r+=this.defaultCharUnicode;var s=this.prevBytes.slice(1);this.prevBytes=[];this.nodeIdx=0;if(s.length>0)r+=this.write(s)}this.prevBytes=[];this.nodeIdx=0;return r};function findIdx(r,s){if(r[0]>s)return-1;var i=0,a=r.length;while(i>1);if(r[A]<=s)i=A;else a=A}return i}},91386:(r,s,i)=>{"use strict";r.exports={shiftjis:{type:"_dbcs",table:function(){return i(27014)},encodeAdd:{"¥":92,"‾":126},encodeSkipVals:[{from:60736,to:63808}]},csshiftjis:"shiftjis",mskanji:"shiftjis",sjis:"shiftjis",windows31j:"shiftjis",ms31j:"shiftjis",xsjis:"shiftjis",windows932:"shiftjis",ms932:"shiftjis",932:"shiftjis",cp932:"shiftjis",eucjp:{type:"_dbcs",table:function(){return i(31532)},encodeAdd:{"¥":92,"‾":126}},gb2312:"cp936",gb231280:"cp936",gb23121980:"cp936",csgb2312:"cp936",csiso58gb231280:"cp936",euccn:"cp936",windows936:"cp936",ms936:"cp936",936:"cp936",cp936:{type:"_dbcs",table:function(){return i(13336)}},gbk:{type:"_dbcs",table:function(){return i(13336).concat(i(44346))}},xgbk:"gbk",isoir58:"gbk",gb18030:{type:"_dbcs",table:function(){return i(13336).concat(i(44346))},gb18030:function(){return i(36258)},encodeSkipVals:[128],encodeAdd:{"€":41699}},chinese:"gb18030",windows949:"cp949",ms949:"cp949",949:"cp949",cp949:{type:"_dbcs",table:function(){return i(77348)}},cseuckr:"cp949",csksc56011987:"cp949",euckr:"cp949",isoir149:"cp949",korean:"cp949",ksc56011987:"cp949",ksc56011989:"cp949",ksc5601:"cp949",windows950:"cp950",ms950:"cp950",950:"cp950",cp950:{type:"_dbcs",table:function(){return i(74284)}},big5:"big5hkscs",big5hkscs:{type:"_dbcs",table:function(){return i(74284).concat(i(63480))},encodeSkipVals:[36457,36463,36478,36523,36532,36557,36560,36695,36713,36718,36811,36862,36973,36986,37060,37084,37105,37311,37551,37552,37553,37554,37585,37959,38090,38361,38652,39285,39798,39800,39803,39878,39902,39916,39926,40002,40019,40034,40040,40043,40055,40124,40125,40144,40279,40282,40388,40431,40443,40617,40687,40701,40800,40907,41079,41180,41183,36812,37576,38468,38637,41636,41637,41639,41638,41676,41678]},cnbig5:"big5hkscs",csbig5:"big5hkscs",xxbig5:"big5hkscs"}},82733:(r,s,i)=>{"use strict";var a=[i(12376),i(59557),i(11155),i(51644),i(26657),i(41080),i(21012),i(39695),i(91386)];for(var A=0;A{"use strict";var a=i(15118).Buffer;r.exports={utf8:{type:"_internal",bomAware:true},cesu8:{type:"_internal",bomAware:true},unicode11utf8:"utf8",ucs2:{type:"_internal",bomAware:true},utf16le:"ucs2",binary:{type:"_internal"},base64:{type:"_internal"},hex:{type:"_internal"},_internal:InternalCodec};function InternalCodec(r,s){this.enc=r.encodingName;this.bomAware=r.bomAware;if(this.enc==="base64")this.encoder=InternalEncoderBase64;else if(this.enc==="cesu8"){this.enc="utf8";this.encoder=InternalEncoderCesu8;if(a.from("eda0bdedb2a9","hex").toString()!=="💩"){this.decoder=InternalDecoderCesu8;this.defaultCharUnicode=s.defaultCharUnicode}}}InternalCodec.prototype.encoder=InternalEncoder;InternalCodec.prototype.decoder=InternalDecoder;var A=i(71576).StringDecoder;if(!A.prototype.end)A.prototype.end=function(){};function InternalDecoder(r,s){this.decoder=new A(s.enc)}InternalDecoder.prototype.write=function(r){if(!a.isBuffer(r)){r=a.from(r)}return this.decoder.write(r)};InternalDecoder.prototype.end=function(){return this.decoder.end()};function InternalEncoder(r,s){this.enc=s.enc}InternalEncoder.prototype.write=function(r){return a.from(r,this.enc)};InternalEncoder.prototype.end=function(){};function InternalEncoderBase64(r,s){this.prevStr=""}InternalEncoderBase64.prototype.write=function(r){r=this.prevStr+r;var s=r.length-r.length%4;this.prevStr=r.slice(s);r=r.slice(0,s);return a.from(r,"base64")};InternalEncoderBase64.prototype.end=function(){return a.from(this.prevStr,"base64")};function InternalEncoderCesu8(r,s){}InternalEncoderCesu8.prototype.write=function(r){var s=a.alloc(r.length*3),i=0;for(var A=0;A>>6);s[i++]=128+(c&63)}else{s[i++]=224+(c>>>12);s[i++]=128+(c>>>6&63);s[i++]=128+(c&63)}}return s.slice(0,i)};InternalEncoderCesu8.prototype.end=function(){};function InternalDecoderCesu8(r,s){this.acc=0;this.contBytes=0;this.accBytes=0;this.defaultCharUnicode=s.defaultCharUnicode}InternalDecoderCesu8.prototype.write=function(r){var s=this.acc,i=this.contBytes,a=this.accBytes,A="";for(var c=0;c0){A+=this.defaultCharUnicode;i=0}if(l<128){A+=String.fromCharCode(l)}else if(l<224){s=l&31;i=1;a=1}else if(l<240){s=l&15;i=2;a=1}else{A+=this.defaultCharUnicode}}else{if(i>0){s=s<<6|l&63;i--;a++;if(i===0){if(a===2&&s<128&&s>0)A+=this.defaultCharUnicode;else if(a===3&&s<2048)A+=this.defaultCharUnicode;else A+=String.fromCharCode(s)}}else{A+=this.defaultCharUnicode}}}this.acc=s;this.contBytes=i;this.accBytes=a;return A};InternalDecoderCesu8.prototype.end=function(){var r=0;if(this.contBytes>0)r+=this.defaultCharUnicode;return r}},26657:(r,s,i)=>{"use strict";var a=i(15118).Buffer;s._sbcs=SBCSCodec;function SBCSCodec(r,s){if(!r)throw new Error("SBCS codec is called without the data.");if(!r.chars||r.chars.length!==128&&r.chars.length!==256)throw new Error("Encoding '"+r.type+"' has incorrect 'chars' (must be of len 128 or 256)");if(r.chars.length===128){var i="";for(var A=0;A<128;A++)i+=String.fromCharCode(A);r.chars=i+r.chars}this.decodeBuf=a.from(r.chars,"ucs2");var c=a.alloc(65536,s.defaultCharSingleByte.charCodeAt(0));for(var A=0;A{"use strict";r.exports={437:"cp437",737:"cp737",775:"cp775",850:"cp850",852:"cp852",855:"cp855",856:"cp856",857:"cp857",858:"cp858",860:"cp860",861:"cp861",862:"cp862",863:"cp863",864:"cp864",865:"cp865",866:"cp866",869:"cp869",874:"windows874",922:"cp922",1046:"cp1046",1124:"cp1124",1125:"cp1125",1129:"cp1129",1133:"cp1133",1161:"cp1161",1162:"cp1162",1163:"cp1163",1250:"windows1250",1251:"windows1251",1252:"windows1252",1253:"windows1253",1254:"windows1254",1255:"windows1255",1256:"windows1256",1257:"windows1257",1258:"windows1258",28591:"iso88591",28592:"iso88592",28593:"iso88593",28594:"iso88594",28595:"iso88595",28596:"iso88596",28597:"iso88597",28598:"iso88598",28599:"iso88599",28600:"iso885910",28601:"iso885911",28603:"iso885913",28604:"iso885914",28605:"iso885915",28606:"iso885916",windows874:{type:"_sbcs",chars:"€����…�����������‘’“”•–—�������� กขฃคฅฆงจฉชซฌญฎฏฐฑฒณดตถทธนบปผฝพฟภมยรฤลฦวศษสหฬอฮฯะัาำิีึืฺุู����฿เแโใไๅๆ็่้๊๋์ํ๎๏๐๑๒๓๔๕๖๗๘๙๚๛����"},win874:"windows874",cp874:"windows874",windows1250:{type:"_sbcs",chars:"€�‚�„…†‡�‰Š‹ŚŤŽŹ�‘’“”•–—�™š›śťžź ˇ˘Ł¤Ą¦§¨©Ş«¬­®Ż°±˛ł´µ¶·¸ąş»Ľ˝ľżŔÁÂĂÄĹĆÇČÉĘËĚÍÎĎĐŃŇÓÔŐÖ×ŘŮÚŰÜÝŢßŕáâăäĺćçčéęëěíîďđńňóôőö÷řůúűüýţ˙"},win1250:"windows1250",cp1250:"windows1250",windows1251:{type:"_sbcs",chars:"ЂЃ‚ѓ„…†‡€‰Љ‹ЊЌЋЏђ‘’“”•–—�™љ›њќћџ ЎўЈ¤Ґ¦§Ё©Є«¬­®Ї°±Ііґµ¶·ё№є»јЅѕїАБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯабвгдежзийклмнопрстуфхцчшщъыьэюя"},win1251:"windows1251",cp1251:"windows1251",windows1252:{type:"_sbcs",chars:"€�‚ƒ„…†‡ˆ‰Š‹Œ�Ž��‘’“”•–—˜™š›œ�žŸ ¡¢£¤¥¦§¨©ª«¬­®¯°±²³´µ¶·¸¹º»¼½¾¿ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖרÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõö÷øùúûüýþÿ"},win1252:"windows1252",cp1252:"windows1252",windows1253:{type:"_sbcs",chars:"€�‚ƒ„…†‡�‰�‹�����‘’“”•–—�™�›���� ΅Ά£¤¥¦§¨©�«¬­®―°±²³΄µ¶·ΈΉΊ»Ό½ΎΏΐΑΒΓΔΕΖΗΘΙΚΛΜΝΞΟΠΡ�ΣΤΥΦΧΨΩΪΫάέήίΰαβγδεζηθικλμνξοπρςστυφχψωϊϋόύώ�"},win1253:"windows1253",cp1253:"windows1253",windows1254:{type:"_sbcs",chars:"€�‚ƒ„…†‡ˆ‰Š‹Œ����‘’“”•–—˜™š›œ��Ÿ ¡¢£¤¥¦§¨©ª«¬­®¯°±²³´µ¶·¸¹º»¼½¾¿ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏĞÑÒÓÔÕÖרÙÚÛÜİŞßàáâãäåæçèéêëìíîïğñòóôõö÷øùúûüışÿ"},win1254:"windows1254",cp1254:"windows1254",windows1255:{type:"_sbcs",chars:"€�‚ƒ„…†‡ˆ‰�‹�����‘’“”•–—˜™�›���� ¡¢£₪¥¦§¨©×«¬­®¯°±²³´µ¶·¸¹÷»¼½¾¿ְֱֲֳִֵֶַָֹֺֻּֽ־ֿ׀ׁׂ׃װױײ׳״�������אבגדהוזחטיךכלםמןנסעףפץצקרשת��‎‏�"},win1255:"windows1255",cp1255:"windows1255",windows1256:{type:"_sbcs",chars:"€پ‚ƒ„…†‡ˆ‰ٹ‹Œچژڈگ‘’“”•–—ک™ڑ›œ‌‍ں ،¢£¤¥¦§¨©ھ«¬­®¯°±²³´µ¶·¸¹؛»¼½¾؟ہءآأؤإئابةتثجحخدذرزسشصض×طظعغـفقكàلâمنهوçèéêëىيîïًٌٍَôُِ÷ّùْûü‎‏ے"},win1256:"windows1256",cp1256:"windows1256",windows1257:{type:"_sbcs",chars:"€�‚�„…†‡�‰�‹�¨ˇ¸�‘’“”•–—�™�›�¯˛� �¢£¤�¦§Ø©Ŗ«¬­®Æ°±²³´µ¶·ø¹ŗ»¼½¾æĄĮĀĆÄÅĘĒČÉŹĖĢĶĪĻŠŃŅÓŌÕÖ×ŲŁŚŪÜŻŽßąįāćäåęēčéźėģķīļšńņóōõö÷ųłśūüżž˙"},win1257:"windows1257",cp1257:"windows1257",windows1258:{type:"_sbcs",chars:"€�‚ƒ„…†‡ˆ‰�‹Œ����‘’“”•–—˜™�›œ��Ÿ ¡¢£¤¥¦§¨©ª«¬­®¯°±²³´µ¶·¸¹º»¼½¾¿ÀÁÂĂÄÅÆÇÈÉÊË̀ÍÎÏĐÑ̉ÓÔƠÖרÙÚÛÜỮßàáâăäåæçèéêë́íîïđṇ̃óôơö÷øùúûüư₫ÿ"},win1258:"windows1258",cp1258:"windows1258",iso88591:{type:"_sbcs",chars:"€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ ¡¢£¤¥¦§¨©ª«¬­®¯°±²³´µ¶·¸¹º»¼½¾¿ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖרÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõö÷øùúûüýþÿ"},cp28591:"iso88591",iso88592:{type:"_sbcs",chars:"€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ Ą˘Ł¤ĽŚ§¨ŠŞŤŹ­ŽŻ°ą˛ł´ľśˇ¸šşťź˝žżŔÁÂĂÄĹĆÇČÉĘËĚÍÎĎĐŃŇÓÔŐÖ×ŘŮÚŰÜÝŢßŕáâăäĺćçčéęëěíîďđńňóôőö÷řůúűüýţ˙"},cp28592:"iso88592",iso88593:{type:"_sbcs",chars:"€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ Ħ˘£¤�Ĥ§¨İŞĞĴ­�ݰħ²³´µĥ·¸ışğĵ½�żÀÁÂ�ÄĊĈÇÈÉÊËÌÍÎÏ�ÑÒÓÔĠÖ×ĜÙÚÛÜŬŜßàáâ�äċĉçèéêëìíîï�ñòóôġö÷ĝùúûüŭŝ˙"},cp28593:"iso88593",iso88594:{type:"_sbcs",chars:"€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ ĄĸŖ¤Ĩϧ¨ŠĒĢŦ­Ž¯°ą˛ŗ´ĩšēģŧŊžŋĀÁÂÃÄÅÆĮČÉĘËĖÍÎĪĐŅŌĶÔÕÖרŲÚÛÜŨŪßāáâãäåæįčéęëėíîīđņōķôõö÷øųúûüũū˙"},cp28594:"iso88594",iso88595:{type:"_sbcs",chars:"€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ ЁЂЃЄЅІЇЈЉЊЋЌ­ЎЏАБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯабвгдежзийклмнопрстуфхцчшщъыьэюя№ёђѓєѕіїјљњћќ§ўџ"},cp28595:"iso88595",iso88596:{type:"_sbcs",chars:"€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ ���¤�������،­�������������؛���؟�ءآأؤإئابةتثجحخدذرزسشصضطظعغ�����ـفقكلمنهوىيًٌٍَُِّْ�������������"},cp28596:"iso88596",iso88597:{type:"_sbcs",chars:"€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ ‘’£€₯¦§¨©ͺ«¬­�―°±²³΄΅Ά·ΈΉΊ»Ό½ΎΏΐΑΒΓΔΕΖΗΘΙΚΛΜΝΞΟΠΡ�ΣΤΥΦΧΨΩΪΫάέήίΰαβγδεζηθικλμνξοπρςστυφχψωϊϋόύώ�"},cp28597:"iso88597",iso88598:{type:"_sbcs",chars:"€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ �¢£¤¥¦§¨©×«¬­®¯°±²³´µ¶·¸¹÷»¼½¾��������������������������������‗אבגדהוזחטיךכלםמןנסעףפץצקרשת��‎‏�"},cp28598:"iso88598",iso88599:{type:"_sbcs",chars:"€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ ¡¢£¤¥¦§¨©ª«¬­®¯°±²³´µ¶·¸¹º»¼½¾¿ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏĞÑÒÓÔÕÖרÙÚÛÜİŞßàáâãäåæçèéêëìíîïğñòóôõö÷øùúûüışÿ"},cp28599:"iso88599",iso885910:{type:"_sbcs",chars:"€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ ĄĒĢĪĨͧĻĐŠŦŽ­ŪŊ°ąēģīĩķ·ļđšŧž―ūŋĀÁÂÃÄÅÆĮČÉĘËĖÍÎÏÐŅŌÓÔÕÖŨØŲÚÛÜÝÞßāáâãäåæįčéęëėíîïðņōóôõöũøųúûüýþĸ"},cp28600:"iso885910",iso885911:{type:"_sbcs",chars:"€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ กขฃคฅฆงจฉชซฌญฎฏฐฑฒณดตถทธนบปผฝพฟภมยรฤลฦวศษสหฬอฮฯะัาำิีึืฺุู����฿เแโใไๅๆ็่้๊๋์ํ๎๏๐๑๒๓๔๕๖๗๘๙๚๛����"},cp28601:"iso885911",iso885913:{type:"_sbcs",chars:"€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ ”¢£¤„¦§Ø©Ŗ«¬­®Æ°±²³“µ¶·ø¹ŗ»¼½¾æĄĮĀĆÄÅĘĒČÉŹĖĢĶĪĻŠŃŅÓŌÕÖ×ŲŁŚŪÜŻŽßąįāćäåęēčéźėģķīļšńņóōõö÷ųłśūüżž’"},cp28603:"iso885913",iso885914:{type:"_sbcs",chars:"€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ Ḃḃ£ĊċḊ§Ẁ©ẂḋỲ­®ŸḞḟĠġṀṁ¶ṖẁṗẃṠỳẄẅṡÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏŴÑÒÓÔÕÖṪØÙÚÛÜÝŶßàáâãäåæçèéêëìíîïŵñòóôõöṫøùúûüýŷÿ"},cp28604:"iso885914",iso885915:{type:"_sbcs",chars:"€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ ¡¢£€¥Š§š©ª«¬­®¯°±²³Žµ¶·ž¹º»ŒœŸ¿ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖרÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõö÷øùúûüýþÿ"},cp28605:"iso885915",iso885916:{type:"_sbcs",chars:"€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ ĄąŁ€„Чš©Ș«Ź­źŻ°±ČłŽ”¶·žčș»ŒœŸżÀÁÂĂÄĆÆÇÈÉÊËÌÍÎÏĐŃÒÓÔŐÖŚŰÙÚÛÜĘȚßàáâăäćæçèéêëìíîïđńòóôőöśűùúûüęțÿ"},cp28606:"iso885916",cp437:{type:"_sbcs",chars:"ÇüéâäàåçêëèïîìÄÅÉæÆôöòûùÿÖÜ¢£¥₧ƒáíóúñѪº¿⌐¬½¼¡«»░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀αßΓπΣσµτΦΘΩδ∞φε∩≡±≥≤⌠⌡÷≈°∙·√ⁿ²■ "},ibm437:"cp437",csibm437:"cp437",cp737:{type:"_sbcs",chars:"ΑΒΓΔΕΖΗΘΙΚΛΜΝΞΟΠΡΣΤΥΦΧΨΩαβγδεζηθικλμνξοπρσςτυφχψ░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀ωάέήϊίόύϋώΆΈΉΊΌΎΏ±≥≤ΪΫ÷≈°∙·√ⁿ²■ "},ibm737:"cp737",csibm737:"cp737",cp775:{type:"_sbcs",chars:"ĆüéāäģåćłēŖŗīŹÄÅÉæÆōöĢ¢ŚśÖÜø£Ø×¤ĀĪóŻżź”¦©®¬½¼Ł«»░▒▓│┤ĄČĘĖ╣║╗╝ĮŠ┐└┴┬├─┼ŲŪ╚╔╩╦╠═╬Žąčęėįšųūž┘┌█▄▌▐▀ÓßŌŃõÕµńĶķĻļņĒŅ’­±“¾¶§÷„°∙·¹³²■ "},ibm775:"cp775",csibm775:"cp775",cp850:{type:"_sbcs",chars:"ÇüéâäàåçêëèïîìÄÅÉæÆôöòûùÿÖÜø£Ø×ƒáíóúñѪº¿®¬½¼¡«»░▒▓│┤ÁÂÀ©╣║╗╝¢¥┐└┴┬├─┼ãÃ╚╔╩╦╠═╬¤ðÐÊËÈıÍÎÏ┘┌█▄¦Ì▀ÓßÔÒõÕµþÞÚÛÙýݯ´­±‗¾¶§÷¸°¨·¹³²■ "},ibm850:"cp850",csibm850:"cp850",cp852:{type:"_sbcs",chars:"ÇüéâäůćçłëŐőîŹÄĆÉĹĺôöĽľŚśÖÜŤťŁ×čáíóúĄąŽžĘ꬟Ⱥ«»░▒▓│┤ÁÂĚŞ╣║╗╝Żż┐└┴┬├─┼Ăă╚╔╩╦╠═╬¤đĐĎËďŇÍÎě┘┌█▄ŢŮ▀ÓßÔŃńňŠšŔÚŕŰýÝţ´­˝˛ˇ˘§÷¸°¨˙űŘř■ "},ibm852:"cp852",csibm852:"cp852",cp855:{type:"_sbcs",chars:"ђЂѓЃёЁєЄѕЅіІїЇјЈљЉњЊћЋќЌўЎџЏюЮъЪаАбБцЦдДеЕфФгГ«»░▒▓│┤хХиИ╣║╗╝йЙ┐└┴┬├─┼кК╚╔╩╦╠═╬¤лЛмМнНоОп┘┌█▄Пя▀ЯрРсСтТуУжЖвВьЬ№­ыЫзЗшШэЭщЩчЧ§■ "},ibm855:"cp855",csibm855:"cp855",cp856:{type:"_sbcs",chars:"אבגדהוזחטיךכלםמןנסעףפץצקרשת�£�×����������®¬½¼�«»░▒▓│┤���©╣║╗╝¢¥┐└┴┬├─┼��╚╔╩╦╠═╬¤���������┘┌█▄¦�▀������µ�������¯´­±‗¾¶§÷¸°¨·¹³²■ "},ibm856:"cp856",csibm856:"cp856",cp857:{type:"_sbcs",chars:"ÇüéâäàåçêëèïîıÄÅÉæÆôöòûùİÖÜø£ØŞşáíóúñÑĞ𿮬½¼¡«»░▒▓│┤ÁÂÀ©╣║╗╝¢¥┐└┴┬├─┼ãÃ╚╔╩╦╠═╬¤ºªÊËÈ�ÍÎÏ┘┌█▄¦Ì▀ÓßÔÒõÕµ�×ÚÛÙìÿ¯´­±�¾¶§÷¸°¨·¹³²■ "},ibm857:"cp857",csibm857:"cp857",cp858:{type:"_sbcs",chars:"ÇüéâäàåçêëèïîìÄÅÉæÆôöòûùÿÖÜø£Ø×ƒáíóúñѪº¿®¬½¼¡«»░▒▓│┤ÁÂÀ©╣║╗╝¢¥┐└┴┬├─┼ãÃ╚╔╩╦╠═╬¤ðÐÊËÈ€ÍÎÏ┘┌█▄¦Ì▀ÓßÔÒõÕµþÞÚÛÙýݯ´­±‗¾¶§÷¸°¨·¹³²■ "},ibm858:"cp858",csibm858:"cp858",cp860:{type:"_sbcs",chars:"ÇüéâãàÁçêÊèÍÔìÃÂÉÀÈôõòÚùÌÕÜ¢£Ù₧ÓáíóúñѪº¿Ò¬½¼¡«»░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀αßΓπΣσµτΦΘΩδ∞φε∩≡±≥≤⌠⌡÷≈°∙·√ⁿ²■ "},ibm860:"cp860",csibm860:"cp860",cp861:{type:"_sbcs",chars:"ÇüéâäàåçêëèÐðÞÄÅÉæÆôöþûÝýÖÜø£Ø₧ƒáíóúÁÍÓÚ¿⌐¬½¼¡«»░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀αßΓπΣσµτΦΘΩδ∞φε∩≡±≥≤⌠⌡÷≈°∙·√ⁿ²■ "},ibm861:"cp861",csibm861:"cp861",cp862:{type:"_sbcs",chars:"אבגדהוזחטיךכלםמןנסעףפץצקרשת¢£¥₧ƒáíóúñѪº¿⌐¬½¼¡«»░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀αßΓπΣσµτΦΘΩδ∞φε∩≡±≥≤⌠⌡÷≈°∙·√ⁿ²■ "},ibm862:"cp862",csibm862:"cp862",cp863:{type:"_sbcs",chars:"ÇüéâÂà¶çêëèïî‗À§ÉÈÊôËÏûù¤ÔÜ¢£ÙÛƒ¦´óú¨¸³¯Î⌐¬½¼¾«»░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀αßΓπΣσµτΦΘΩδ∞φε∩≡±≥≤⌠⌡÷≈°∙·√ⁿ²■ "},ibm863:"cp863",csibm863:"cp863",cp864:{type:"_sbcs",chars:"\0\b\t\n\v\f\r !\"#$٪&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~°·∙√▒─│┼┤┬├┴┐┌└┘β∞φ±½¼≈«»ﻷﻸ��ﻻﻼ� ­ﺂ£¤ﺄ��ﺎﺏﺕﺙ،ﺝﺡﺥ٠١٢٣٤٥٦٧٨٩ﻑ؛ﺱﺵﺹ؟¢ﺀﺁﺃﺅﻊﺋﺍﺑﺓﺗﺛﺟﺣﺧﺩﺫﺭﺯﺳﺷﺻﺿﻁﻅﻋﻏ¦¬÷×ﻉـﻓﻗﻛﻟﻣﻧﻫﻭﻯﻳﺽﻌﻎﻍﻡﹽّﻥﻩﻬﻰﻲﻐﻕﻵﻶﻝﻙﻱ■�"},ibm864:"cp864",csibm864:"cp864",cp865:{type:"_sbcs",chars:"ÇüéâäàåçêëèïîìÄÅÉæÆôöòûùÿÖÜø£Ø₧ƒáíóúñѪº¿⌐¬½¼¡«¤░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀αßΓπΣσµτΦΘΩδ∞φε∩≡±≥≤⌠⌡÷≈°∙·√ⁿ²■ "},ibm865:"cp865",csibm865:"cp865",cp866:{type:"_sbcs",chars:"АБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯабвгдежзийклмноп░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀рстуфхцчшщъыьэюяЁёЄєЇїЎў°∙·√№¤■ "},ibm866:"cp866",csibm866:"cp866",cp869:{type:"_sbcs",chars:"������Ά�·¬¦‘’Έ―ΉΊΪΌ��ΎΫ©Ώ²³ά£έήίϊΐόύΑΒΓΔΕΖΗ½ΘΙ«»░▒▓│┤ΚΛΜΝ╣║╗╝ΞΟ┐└┴┬├─┼ΠΡ╚╔╩╦╠═╬ΣΤΥΦΧΨΩαβγ┘┌█▄δε▀ζηθικλμνξοπρσςτ΄­±υφχ§ψ΅°¨ωϋΰώ■ "},ibm869:"cp869",csibm869:"cp869",cp922:{type:"_sbcs",chars:"€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ ¡¢£¤¥¦§¨©ª«¬­®‾°±²³´µ¶·¸¹º»¼½¾¿ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏŠÑÒÓÔÕÖרÙÚÛÜÝŽßàáâãäåæçèéêëìíîïšñòóôõö÷øùúûüýžÿ"},ibm922:"cp922",csibm922:"cp922",cp1046:{type:"_sbcs",chars:"ﺈ×÷ﹱˆ■│─┐┌└┘ﹹﹻﹽﹿﹷﺊﻰﻳﻲﻎﻏﻐﻶﻸﻺﻼ ¤ﺋﺑﺗﺛﺟﺣ،­ﺧﺳ٠١٢٣٤٥٦٧٨٩ﺷ؛ﺻﺿﻊ؟ﻋءآأؤإئابةتثجحخدذرزسشصضطﻇعغﻌﺂﺄﺎﻓـفقكلمنهوىيًٌٍَُِّْﻗﻛﻟﻵﻷﻹﻻﻣﻧﻬﻩ�"},ibm1046:"cp1046",csibm1046:"cp1046",cp1124:{type:"_sbcs",chars:"€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ ЁЂҐЄЅІЇЈЉЊЋЌ­ЎЏАБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯабвгдежзийклмнопрстуфхцчшщъыьэюя№ёђґєѕіїјљњћќ§ўџ"},ibm1124:"cp1124",csibm1124:"cp1124",cp1125:{type:"_sbcs",chars:"АБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯабвгдежзийклмноп░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀рстуфхцчшщъыьэюяЁёҐґЄєІіЇї·√№¤■ "},ibm1125:"cp1125",csibm1125:"cp1125",cp1129:{type:"_sbcs",chars:"€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ ¡¢£¤¥¦§œ©ª«¬­®¯°±²³Ÿµ¶·Œ¹º»¼½¾¿ÀÁÂĂÄÅÆÇÈÉÊË̀ÍÎÏĐÑ̉ÓÔƠÖרÙÚÛÜỮßàáâăäåæçèéêë́íîïđṇ̃óôơö÷øùúûüư₫ÿ"},ibm1129:"cp1129",csibm1129:"cp1129",cp1133:{type:"_sbcs",chars:"€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ ກຂຄງຈສຊຍດຕຖທນບປຜຝພຟມຢຣລວຫອຮ���ຯະາຳິີຶືຸູຼັົຽ���ເແໂໃໄ່້໊໋໌ໍໆ�ໜໝ₭����������������໐໑໒໓໔໕໖໗໘໙��¢¬¦�"},ibm1133:"cp1133",csibm1133:"cp1133",cp1161:{type:"_sbcs",chars:"��������������������������������่กขฃคฅฆงจฉชซฌญฎฏฐฑฒณดตถทธนบปผฝพฟภมยรฤลฦวศษสหฬอฮฯะัาำิีึืฺุู้๊๋€฿เแโใไๅๆ็่้๊๋์ํ๎๏๐๑๒๓๔๕๖๗๘๙๚๛¢¬¦ "},ibm1161:"cp1161",csibm1161:"cp1161",cp1162:{type:"_sbcs",chars:"€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ กขฃคฅฆงจฉชซฌญฎฏฐฑฒณดตถทธนบปผฝพฟภมยรฤลฦวศษสหฬอฮฯะัาำิีึืฺุู����฿เแโใไๅๆ็่้๊๋์ํ๎๏๐๑๒๓๔๕๖๗๘๙๚๛����"},ibm1162:"cp1162",csibm1162:"cp1162",cp1163:{type:"_sbcs",chars:"€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ ¡¢£€¥¦§œ©ª«¬­®¯°±²³Ÿµ¶·Œ¹º»¼½¾¿ÀÁÂĂÄÅÆÇÈÉÊË̀ÍÎÏĐÑ̉ÓÔƠÖרÙÚÛÜỮßàáâăäåæçèéêë́íîïđṇ̃óôơö÷øùúûüư₫ÿ"},ibm1163:"cp1163",csibm1163:"cp1163",maccroatian:{type:"_sbcs",chars:"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®Š™´¨≠ŽØ∞±≤≥∆µ∂∑∏š∫ªºΩžø¿¡¬√ƒ≈ƫȅ ÀÃÕŒœĐ—“”‘’÷◊�©⁄¤‹›Æ»–·‚„‰ÂćÁčÈÍÎÏÌÓÔđÒÚÛÙıˆ˜¯πË˚¸Êæˇ"},maccyrillic:{type:"_sbcs",chars:"АБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯ†°¢£§•¶І®©™Ђђ≠Ѓѓ∞±≤≥іµ∂ЈЄєЇїЉљЊњјЅ¬√ƒ≈∆«»… ЋћЌќѕ–—“”‘’÷„ЎўЏџ№Ёёяабвгдежзийклмнопрстуфхцчшщъыьэю¤"},macgreek:{type:"_sbcs",chars:"Ĺ²É³ÖÜ΅àâä΄¨çéèê룙î‰ôö¦­ùûü†ΓΔΘΛΞΠß®©ΣΪ§≠°·Α±≤≥¥ΒΕΖΗΙΚΜΦΫΨΩάΝ¬ΟΡ≈Τ«»… ΥΧΆΈœ–―“”‘’÷ΉΊΌΎέήίόΏύαβψδεφγηιξκλμνοπώρστθωςχυζϊϋΐΰ�"},maciceland:{type:"_sbcs",chars:"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûüݰ¢£§•¶ß®©™´¨≠ÆØ∞±≤≥¥µ∂∑∏π∫ªºΩæø¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸ⁄¤ÐðÞþý·‚„‰ÂÊÁËÈÍÎÏÌÓÔ�ÒÚÛÙıˆ˜¯˘˙˚¸˝˛ˇ"},macroman:{type:"_sbcs",chars:"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ÆØ∞±≤≥¥µ∂∑∏π∫ªºΩæø¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸ⁄¤‹›fifl‡·‚„‰ÂÊÁËÈÍÎÏÌÓÔ�ÒÚÛÙıˆ˜¯˘˙˚¸˝˛ˇ"},macromania:{type:"_sbcs",chars:"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ĂŞ∞±≤≥¥µ∂∑∏π∫ªºΩăş¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸ⁄¤‹›Ţţ‡·‚„‰ÂÊÁËÈÍÎÏÌÓÔ�ÒÚÛÙıˆ˜¯˘˙˚¸˝˛ˇ"},macthai:{type:"_sbcs",chars:"«»…“”�•‘’� กขฃคฅฆงจฉชซฌญฎฏฐฑฒณดตถทธนบปผฝพฟภมยรฤลฦวศษสหฬอฮฯะัาำิีึืฺุู\ufeff​–—฿เแโใไๅๆ็่้๊๋์ํ™๏๐๑๒๓๔๕๖๗๘๙®©����"},macturkish:{type:"_sbcs",chars:"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ÆØ∞±≤≥¥µ∂∑∏π∫ªºΩæø¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸĞğİıŞş‡·‚„‰ÂÊÁËÈÍÎÏÌÓÔ�ÒÚÛÙ�ˆ˜¯˘˙˚¸˝˛ˇ"},macukraine:{type:"_sbcs",chars:"АБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯ†°Ґ£§•¶І®©™Ђђ≠Ѓѓ∞±≤≥іµґЈЄєЇїЉљЊњјЅ¬√ƒ≈∆«»… ЋћЌќѕ–—“”‘’÷„ЎўЏџ№Ёёяабвгдежзийклмнопрстуфхцчшщъыьэю¤"},koi8r:{type:"_sbcs",chars:"─│┌┐└┘├┤┬┴┼▀▄█▌▐░▒▓⌠■∙√≈≤≥ ⌡°²·÷═║╒ё╓╔╕╖╗╘╙╚╛╜╝╞╟╠╡Ё╢╣╤╥╦╧╨╩╪╫╬©юабцдефгхийклмнопярстужвьызшэщчъЮАБЦДЕФГХИЙКЛМНОПЯРСТУЖВЬЫЗШЭЩЧЪ"},koi8u:{type:"_sbcs",chars:"─│┌┐└┘├┤┬┴┼▀▄█▌▐░▒▓⌠■∙√≈≤≥ ⌡°²·÷═║╒ёє╔ії╗╘╙╚╛ґ╝╞╟╠╡ЁЄ╣ІЇ╦╧╨╩╪Ґ╬©юабцдефгхийклмнопярстужвьызшэщчъЮАБЦДЕФГХИЙКЛМНОПЯРСТУЖВЬЫЗШЭЩЧЪ"},koi8ru:{type:"_sbcs",chars:"─│┌┐└┘├┤┬┴┼▀▄█▌▐░▒▓⌠■∙√≈≤≥ ⌡°²·÷═║╒ёє╔ії╗╘╙╚╛ґў╞╟╠╡ЁЄ╣ІЇ╦╧╨╩╪ҐЎ©юабцдефгхийклмнопярстужвьызшэщчъЮАБЦДЕФГХИЙКЛМНОПЯРСТУЖВЬЫЗШЭЩЧЪ"},koi8t:{type:"_sbcs",chars:"қғ‚Ғ„…†‡�‰ҳ‹ҲҷҶ�Қ‘’“”•–—�™�›�����ӯӮё¤ӣ¦§���«¬­®�°±²Ё�Ӣ¶·�№�»���©юабцдефгхийклмнопярстужвьызшэщчъЮАБЦДЕФГХИЙКЛМНОПЯРСТУЖВЬЫЗШЭЩЧЪ"},armscii8:{type:"_sbcs",chars:"€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ �և։)(»«—.՝,-֊…՜՛՞ԱաԲբԳգԴդԵեԶզԷէԸըԹթԺժԻիԼլԽխԾծԿկՀհՁձՂղՃճՄմՅյՆնՇշՈոՉչՊպՋջՌռՍսՎվՏտՐրՑցՒւՓփՔքՕօՖֆ՚�"},rk1048:{type:"_sbcs",chars:"ЂЃ‚ѓ„…†‡€‰Љ‹ЊҚҺЏђ‘’“”•–—�™љ›њқһџ ҰұӘ¤Ө¦§Ё©Ғ«¬­®Ү°±Ііөµ¶·ё№ғ»әҢңүАБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯабвгдежзийклмнопрстуфхцчшщъыьэюя"},tcvn:{type:"_sbcs",chars:"\0ÚỤỪỬỮ\b\t\n\v\f\rỨỰỲỶỸÝỴ !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ÀẢÃÁẠẶẬÈẺẼÉẸỆÌỈĨÍỊÒỎÕÓỌỘỜỞỠỚỢÙỦŨ ĂÂÊÔƠƯĐăâêôơưđẶ̀̀̉̃́àảãáạẲằẳẵắẴẮẦẨẪẤỀặầẩẫấậèỂẻẽéẹềểễếệìỉỄẾỒĩíịòỔỏõóọồổỗốộờởỡớợùỖủũúụừửữứựỳỷỹýỵỐ"},georgianacademy:{type:"_sbcs",chars:"€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ ¡¢£¤¥¦§¨©ª«¬­®¯°±²³´µ¶·¸¹º»¼½¾¿აბგდევზთიკლმნოპჟრსტუფქღყშჩცძწჭხჯჰჱჲჳჴჵჶçèéêëìíîïðñòóôõö÷øùúûüýþÿ"},georgianps:{type:"_sbcs",chars:"€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ ¡¢£¤¥¦§¨©ª«¬­®¯°±²³´µ¶·¸¹º»¼½¾¿აბგდევზჱთიკლმნჲოპჟრსტჳუფქღყშჩცძწჭხჴჯჰჵæçèéêëìíîïðñòóôõö÷øùúûüýþÿ"},pt154:{type:"_sbcs",chars:"ҖҒӮғ„…ҶҮҲүҠӢҢҚҺҸҗ‘’“”•–—ҳҷҡӣңқһҹ ЎўЈӨҘҰ§Ё©Ә«¬ӯ®Ҝ°ұІіҙө¶·ё№ә»јҪҫҝАБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯабвгдежзийклмнопрстуфхцчшщъыьэюя"},viscii:{type:"_sbcs",chars:"\0ẲẴẪ\b\t\n\v\f\rỶỸỴ !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ẠẮẰẶẤẦẨẬẼẸẾỀỂỄỆỐỒỔỖỘỢỚỜỞỊỎỌỈỦŨỤỲÕắằặấầẩậẽẹếềểễệốồổỗỠƠộờởịỰỨỪỬơớƯÀÁÂÃẢĂẳẵÈÉÊẺÌÍĨỳĐứÒÓÔạỷừửÙÚỹỵÝỡưàáâãảăữẫèéêẻìíĩỉđựòóôõỏọụùúũủýợỮ"},iso646cn:{type:"_sbcs",chars:"\0\b\t\n\v\f\r !\"#¥%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}‾��������������������������������������������������������������������������������������������������������������������������������"},iso646jp:{type:"_sbcs",chars:"\0\b\t\n\v\f\r !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[¥]^_`abcdefghijklmnopqrstuvwxyz{|}‾��������������������������������������������������������������������������������������������������������������������������������"},hproman8:{type:"_sbcs",chars:"€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ ÀÂÈÊËÎÏ´ˋˆ¨˜ÙÛ₤¯Ýý°ÇçÑñ¡¿¤£¥§ƒ¢âêôûáéóúàèòùäëöüÅîØÆåíøæÄìÖÜÉïßÔÁÃãÐðÍÌÓÒÕõŠšÚŸÿÞþ·µ¶¾—¼½ªº«■»±�"},macintosh:{type:"_sbcs",chars:"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ÆØ∞±≤≥¥µ∂∑∏π∫ªºΩæø¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸ⁄¤‹›fifl‡·‚„‰ÂÊÁËÈÍÎÏÌÓÔ�ÒÚÛÙıˆ˜¯˘˙˚¸˝˛ˇ"},ascii:{type:"_sbcs",chars:"��������������������������������������������������������������������������������������������������������������������������������"},tis620:{type:"_sbcs",chars:"���������������������������������กขฃคฅฆงจฉชซฌญฎฏฐฑฒณดตถทธนบปผฝพฟภมยรฤลฦวศษสหฬอฮฯะัาำิีึืฺุู����฿เแโใไๅๆ็่้๊๋์ํ๎๏๐๑๒๓๔๕๖๗๘๙๚๛����"}}},41080:r=>{"use strict";r.exports={10029:"maccenteuro",maccenteuro:{type:"_sbcs",chars:"ÄĀāÉĄÖÜáąČäčĆć鏟ĎíďĒēĖóėôöõúĚěü†°Ę£§•¶ß®©™ę¨≠ģĮįĪ≤≥īĶ∂∑łĻļĽľĹĺŅņѬ√ńŇ∆«»… ňŐÕőŌ–—“”‘’÷◊ōŔŕŘ‹›řŖŗŠ‚„šŚśÁŤťÍŽžŪÓÔūŮÚůŰűŲųÝýķŻŁżĢˇ"},808:"cp808",ibm808:"cp808",cp808:{type:"_sbcs",chars:"АБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯабвгдежзийклмноп░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀рстуфхцчшщъыьэюяЁёЄєЇїЎў°∙·√№€■ "},mik:{type:"_sbcs",chars:"АБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯабвгдежзийклмнопрстуфхцчшщъыьэюя└┴┬├─┼╣║╚╔╩╦╠═╬┐░▒▓│┤№§╗╝┘┌█▄▌▐▀αßΓπΣσµτΦΘΩδ∞φε∩≡±≥≤⌠⌡÷≈°∙·√ⁿ²■ "},cp720:{type:"_sbcs",chars:"€éâ„à†çêëèïّْô¤ـûùءآأؤ£إئابةتثجحخدذرزسشص«»░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀ضطظعغفµقكلمنهوىي≡ًٌٍَُِ≈°∙·√ⁿ²■ "},ascii8bit:"ascii",usascii:"ascii",ansix34:"ascii",ansix341968:"ascii",ansix341986:"ascii",csascii:"ascii",cp367:"ascii",ibm367:"ascii",isoir6:"ascii",iso646us:"ascii",iso646irv:"ascii",us:"ascii",latin1:"iso88591",latin2:"iso88592",latin3:"iso88593",latin4:"iso88594",latin5:"iso88599",latin6:"iso885910",latin7:"iso885913",latin8:"iso885914",latin9:"iso885915",latin10:"iso885916",csisolatin1:"iso88591",csisolatin2:"iso88592",csisolatin3:"iso88593",csisolatin4:"iso88594",csisolatincyrillic:"iso88595",csisolatinarabic:"iso88596",csisolatingreek:"iso88597",csisolatinhebrew:"iso88598",csisolatin5:"iso88599",csisolatin6:"iso885910",l1:"iso88591",l2:"iso88592",l3:"iso88593",l4:"iso88594",l5:"iso88599",l6:"iso885910",l7:"iso885913",l8:"iso885914",l9:"iso885915",l10:"iso885916",isoir14:"iso646jp",isoir57:"iso646cn",isoir100:"iso88591",isoir101:"iso88592",isoir109:"iso88593",isoir110:"iso88594",isoir144:"iso88595",isoir127:"iso88596",isoir126:"iso88597",isoir138:"iso88598",isoir148:"iso88599",isoir157:"iso885910",isoir166:"tis620",isoir179:"iso885913",isoir199:"iso885914",isoir203:"iso885915",isoir226:"iso885916",cp819:"iso88591",ibm819:"iso88591",cyrillic:"iso88595",arabic:"iso88596",arabic8:"iso88596",ecma114:"iso88596",asmo708:"iso88596",greek:"iso88597",greek8:"iso88597",ecma118:"iso88597",elot928:"iso88597",hebrew:"iso88598",hebrew8:"iso88598",turkish:"iso88599",turkish8:"iso88599",thai:"iso885911",thai8:"iso885911",celtic:"iso885914",celtic8:"iso885914",isoceltic:"iso885914",tis6200:"tis620",tis62025291:"tis620",tis62025330:"tis620",1e4:"macroman",10006:"macgreek",10007:"maccyrillic",10079:"maciceland",10081:"macturkish",cspc8codepage437:"cp437",cspc775baltic:"cp775",cspc850multilingual:"cp850",cspcp852:"cp852",cspc862latinhebrew:"cp862",cpgr:"cp869",msee:"cp1250",mscyrl:"cp1251",msansi:"cp1252",msgreek:"cp1253",msturk:"cp1254",mshebr:"cp1255",msarab:"cp1256",winbaltrim:"cp1257",cp20866:"koi8r",20866:"koi8r",ibm878:"koi8r",cskoi8r:"koi8r",cp21866:"koi8u",21866:"koi8u",ibm1168:"koi8u",strk10482002:"rk1048",tcvn5712:"tcvn",tcvn57121:"tcvn",gb198880:"iso646cn",cn:"iso646cn",csiso14jisc6220ro:"iso646jp",jisc62201969ro:"iso646jp",jp:"iso646jp",cshproman8:"hproman8",r8:"hproman8",roman8:"hproman8",xroman8:"hproman8",ibm1051:"hproman8",mac:"macintosh",csmacintosh:"macintosh"}},11155:(r,s,i)=>{"use strict";var a=i(15118).Buffer;s.utf16be=Utf16BECodec;function Utf16BECodec(){}Utf16BECodec.prototype.encoder=Utf16BEEncoder;Utf16BECodec.prototype.decoder=Utf16BEDecoder;Utf16BECodec.prototype.bomAware=true;function Utf16BEEncoder(){}Utf16BEEncoder.prototype.write=function(r){var s=a.from(r,"ucs2");for(var i=0;i=100){break e}}}}if(c>A)return"utf-16be";if(c{"use strict";var a=i(15118).Buffer;s._utf32=Utf32Codec;function Utf32Codec(r,s){this.iconv=s;this.bomAware=true;this.isLE=r.isLE}s.utf32le={type:"_utf32",isLE:true};s.utf32be={type:"_utf32",isLE:false};s.ucs4le="utf32le";s.ucs4be="utf32be";Utf32Codec.prototype.encoder=Utf32Encoder;Utf32Codec.prototype.decoder=Utf32Decoder;function Utf32Encoder(r,s){this.isLE=s.isLE;this.highSurrogate=0}Utf32Encoder.prototype.write=function(r){var s=a.from(r,"ucs2");var i=a.alloc(s.length*2);var A=this.isLE?i.writeUInt32LE:i.writeUInt32BE;var c=0;for(var l=0;l0){for(;s1114111){i=a}if(i>=65536){i-=65536;var A=55296|i>>10;r[s++]=A&255;r[s++]=A>>8;var i=56320|i&1023}r[s++]=i&255;r[s++]=i>>8;return s}Utf32Decoder.prototype.end=function(){this.overflow.length=0};s.utf32=Utf32AutoCodec;s.ucs4="utf32";function Utf32AutoCodec(r,s){this.iconv=s}Utf32AutoCodec.prototype.encoder=Utf32AutoEncoder;Utf32AutoCodec.prototype.decoder=Utf32AutoDecoder;function Utf32AutoEncoder(r,s){r=r||{};if(r.addBOM===undefined)r.addBOM=true;this.encoder=s.iconv.getEncoder(r.defaultEncoding||"utf-32le",r)}Utf32AutoEncoder.prototype.write=function(r){return this.encoder.write(r)};Utf32AutoEncoder.prototype.end=function(){return this.encoder.end()};function Utf32AutoDecoder(r,s){this.decoder=null;this.initialBufs=[];this.initialBufsLen=0;this.options=r||{};this.iconv=s.iconv}Utf32AutoDecoder.prototype.write=function(r){if(!this.decoder){this.initialBufs.push(r);this.initialBufsLen+=r.length;if(this.initialBufsLen<32)return"";var s=detectEncoding(this.initialBufs,this.options.defaultEncoding);this.decoder=this.iconv.getDecoder(s,this.options);var i="";for(var a=0;a16)c++;if(i[3]!==0||i[2]>16)A++;if(i[0]===0&&i[1]===0&&(i[2]!==0||i[3]!==0))d++;if((i[0]!==0||i[1]!==0)&&i[2]===0&&i[3]===0)l++;i.length=0;a++;if(a>=100){break e}}}}if(d-c>l-A)return"utf-32be";if(d-c{"use strict";var a=i(15118).Buffer;s.utf7=Utf7Codec;s.unicode11utf7="utf7";function Utf7Codec(r,s){this.iconv=s}Utf7Codec.prototype.encoder=Utf7Encoder;Utf7Codec.prototype.decoder=Utf7Decoder;Utf7Codec.prototype.bomAware=true;var A=/[^A-Za-z0-9'\(\),-\.\/:\? \n\r\t]+/g;function Utf7Encoder(r,s){this.iconv=s.iconv}Utf7Encoder.prototype.write=function(r){return a.from(r.replace(A,function(r){return"+"+(r==="+"?"":this.iconv.encode(r,"utf16-be").toString("base64").replace(/=+$/,""))+"-"}.bind(this)))};Utf7Encoder.prototype.end=function(){};function Utf7Decoder(r,s){this.iconv=s.iconv;this.inBase64=false;this.base64Accum=""}var c=/[A-Za-z0-9\/+]/;var l=[];for(var d=0;d<256;d++)l[d]=c.test(String.fromCharCode(d));var u="+".charCodeAt(0),p="-".charCodeAt(0),g="&".charCodeAt(0);Utf7Decoder.prototype.write=function(r){var s="",i=0,A=this.inBase64,c=this.base64Accum;for(var d=0;d0)r=this.iconv.decode(a.from(this.base64Accum,"base64"),"utf16-be");this.inBase64=false;this.base64Accum="";return r};s.utf7imap=Utf7IMAPCodec;function Utf7IMAPCodec(r,s){this.iconv=s}Utf7IMAPCodec.prototype.encoder=Utf7IMAPEncoder;Utf7IMAPCodec.prototype.decoder=Utf7IMAPDecoder;Utf7IMAPCodec.prototype.bomAware=true;function Utf7IMAPEncoder(r,s){this.iconv=s.iconv;this.inBase64=false;this.base64Accum=a.alloc(6);this.base64AccumIdx=0}Utf7IMAPEncoder.prototype.write=function(r){var s=this.inBase64,i=this.base64Accum,A=this.base64AccumIdx,c=a.alloc(r.length*5+10),l=0;for(var d=0;d0){l+=c.write(i.slice(0,A).toString("base64").replace(/\//g,",").replace(/=+$/,""),l);A=0}c[l++]=p;s=false}if(!s){c[l++]=u;if(u===g)c[l++]=p}}else{if(!s){c[l++]=g;s=true}if(s){i[A++]=u>>8;i[A++]=u&255;if(A==i.length){l+=c.write(i.toString("base64").replace(/\//g,","),l);A=0}}}}this.inBase64=s;this.base64AccumIdx=A;return c.slice(0,l)};Utf7IMAPEncoder.prototype.end=function(){var r=a.alloc(10),s=0;if(this.inBase64){if(this.base64AccumIdx>0){s+=r.write(this.base64Accum.slice(0,this.base64AccumIdx).toString("base64").replace(/\//g,",").replace(/=+$/,""),s);this.base64AccumIdx=0}r[s++]=p;this.inBase64=false}return r.slice(0,s)};function Utf7IMAPDecoder(r,s){this.iconv=s.iconv;this.inBase64=false;this.base64Accum=""}var h=l.slice();h[",".charCodeAt(0)]=true;Utf7IMAPDecoder.prototype.write=function(r){var s="",i=0,A=this.inBase64,c=this.base64Accum;for(var l=0;l0)r=this.iconv.decode(a.from(this.base64Accum,"base64"),"utf16-be");this.inBase64=false;this.base64Accum="";return r}},67961:(r,s)=>{"use strict";var i="\ufeff";s.PrependBOM=PrependBOMWrapper;function PrependBOMWrapper(r,s){this.encoder=r;this.addBOM=true}PrependBOMWrapper.prototype.write=function(r){if(this.addBOM){r=i+r;this.addBOM=false}return this.encoder.write(r)};PrependBOMWrapper.prototype.end=function(){return this.encoder.end()};s.StripBOM=StripBOMWrapper;function StripBOMWrapper(r,s){this.decoder=r;this.pass=false;this.options=s||{}}StripBOMWrapper.prototype.write=function(r){var s=this.decoder.write(r);if(this.pass||!s)return s;if(s[0]===i){s=s.slice(1);if(typeof this.options.stripBOM==="function")this.options.stripBOM()}this.pass=true;return s};StripBOMWrapper.prototype.end=function(){return this.decoder.end()}},19032:(r,s,i)=>{"use strict";var a=i(15118).Buffer;var A=i(67961),c=r.exports;c.encodings=null;c.defaultCharUnicode="�";c.defaultCharSingleByte="?";c.encode=function encode(r,s,i){r=""+(r||"");var A=c.getEncoder(s,i);var l=A.write(r);var d=A.end();return d&&d.length>0?a.concat([l,d]):l};c.decode=function decode(r,s,i){if(typeof r==="string"){if(!c.skipDecodeWarning){console.error("Iconv-lite warning: decode()-ing strings is deprecated. Refer to https://github.com/ashtuchkin/iconv-lite/wiki/Use-Buffers-when-decoding");c.skipDecodeWarning=true}r=a.from(""+(r||""),"binary")}var A=c.getDecoder(s,i);var l=A.write(r);var d=A.end();return d?l+d:l};c.encodingExists=function encodingExists(r){try{c.getCodec(r);return true}catch(r){return false}};c.toEncoding=c.encode;c.fromEncoding=c.decode;c._codecDataCache={};c.getCodec=function getCodec(r){if(!c.encodings)c.encodings=i(82733);var s=c._canonicalizeEncoding(r);var a={};while(true){var A=c._codecDataCache[s];if(A)return A;var l=c.encodings[s];switch(typeof l){case"string":s=l;break;case"object":for(var d in l)a[d]=l[d];if(!a.encodingName)a.encodingName=s;s=l.type;break;case"function":if(!a.encodingName)a.encodingName=s;A=new l(a,c);c._codecDataCache[a.encodingName]=A;return A;default:throw new Error("Encoding not recognized: '"+r+"' (searched as: '"+s+"')")}}};c._canonicalizeEncoding=function(r){return(""+r).toLowerCase().replace(/:\d{4}$|[^0-9a-z]/g,"")};c.getEncoder=function getEncoder(r,s){var i=c.getCodec(r),a=new i.encoder(s,i);if(i.bomAware&&s&&s.addBOM)a=new A.PrependBOM(a,s);return a};c.getDecoder=function getDecoder(r,s){var i=c.getCodec(r),a=new i.decoder(s,i);if(i.bomAware&&!(s&&s.stripBOM===false))a=new A.StripBOM(a,s);return a};c.enableStreamingAPI=function enableStreamingAPI(r){if(c.supportsStreams)return;var s=i(76409)(r);c.IconvLiteEncoderStream=s.IconvLiteEncoderStream;c.IconvLiteDecoderStream=s.IconvLiteDecoderStream;c.encodeStream=function encodeStream(r,s){return new c.IconvLiteEncoderStream(c.getEncoder(r,s),s)};c.decodeStream=function decodeStream(r,s){return new c.IconvLiteDecoderStream(c.getDecoder(r,s),s)};c.supportsStreams=true};var l;try{l=i(12781)}catch(r){}if(l&&l.Transform){c.enableStreamingAPI(l)}else{c.encodeStream=c.decodeStream=function(){throw new Error("iconv-lite Streaming API is not enabled. Use iconv.enableStreamingAPI(require('stream')); to enable it.")}}if(false){}},76409:(r,s,i)=>{"use strict";var a=i(15118).Buffer;r.exports=function(r){var s=r.Transform;function IconvLiteEncoderStream(r,i){this.conv=r;i=i||{};i.decodeStrings=false;s.call(this,i)}IconvLiteEncoderStream.prototype=Object.create(s.prototype,{constructor:{value:IconvLiteEncoderStream}});IconvLiteEncoderStream.prototype._transform=function(r,s,i){if(typeof r!="string")return i(new Error("Iconv encoding stream needs strings as its input."));try{var a=this.conv.write(r);if(a&&a.length)this.push(a);i()}catch(r){i(r)}};IconvLiteEncoderStream.prototype._flush=function(r){try{var s=this.conv.end();if(s&&s.length)this.push(s);r()}catch(s){r(s)}};IconvLiteEncoderStream.prototype.collect=function(r){var s=[];this.on("error",r);this.on("data",(function(r){s.push(r)}));this.on("end",(function(){r(null,a.concat(s))}));return this};function IconvLiteDecoderStream(r,i){this.conv=r;i=i||{};i.encoding=this.encoding="utf8";s.call(this,i)}IconvLiteDecoderStream.prototype=Object.create(s.prototype,{constructor:{value:IconvLiteDecoderStream}});IconvLiteDecoderStream.prototype._transform=function(r,s,i){if(!a.isBuffer(r)&&!(r instanceof Uint8Array))return i(new Error("Iconv decoding stream needs buffers as its input."));try{var A=this.conv.write(r);if(A&&A.length)this.push(A,this.encoding);i()}catch(r){i(r)}};IconvLiteDecoderStream.prototype._flush=function(r){try{var s=this.conv.end();if(s&&s.length)this.push(s,this.encoding);r()}catch(s){r(s)}};IconvLiteDecoderStream.prototype.collect=function(r){var s="";this.on("error",r);this.on("data",(function(r){s+=r}));this.on("end",(function(){r(null,s)}));return this};return{IconvLiteEncoderStream:IconvLiteEncoderStream,IconvLiteDecoderStream:IconvLiteDecoderStream}}},44124:(r,s,i)=>{try{var a=i(73837);if(typeof a.inherits!=="function")throw"";r.exports=a.inherits}catch(s){r.exports=i(8544)}},8544:r=>{if(typeof Object.create==="function"){r.exports=function inherits(r,s){if(s){r.super_=s;r.prototype=Object.create(s.prototype,{constructor:{value:r,enumerable:false,writable:true,configurable:true}})}}}else{r.exports=function inherits(r,s){if(s){r.super_=s;var TempCtor=function(){};TempCtor.prototype=s.prototype;r.prototype=new TempCtor;r.prototype.constructor=r}}}},63287:(r,s)=>{"use strict";Object.defineProperty(s,"__esModule",{value:true}); /*! - * bytes - * Copyright(c) 2012-2014 TJ Holowaychuk - * Copyright(c) 2015 Jed Watson + * is-plain-object + * + * Copyright (c) 2014-2017, Jon Schlinkert. + * Released under the MIT License. + */function isObject(r){return Object.prototype.toString.call(r)==="[object Object]"}function isPlainObject(r){var s,i;if(isObject(r)===false)return false;s=r.constructor;if(s===undefined)return true;i=s.prototype;if(isObject(i)===false)return false;if(i.hasOwnProperty("isPrototypeOf")===false){return false}return true}s.isPlainObject=isPlainObject},41554:r=>{"use strict";const isStream=r=>r!==null&&typeof r==="object"&&typeof r.pipe==="function";isStream.writable=r=>isStream(r)&&r.writable!==false&&typeof r._write==="function"&&typeof r._writableState==="object";isStream.readable=r=>isStream(r)&&r.readable!==false&&typeof r._read==="function"&&typeof r._readableState==="object";isStream.duplex=r=>isStream.writable(r)&&isStream.readable(r);isStream.transform=r=>isStream.duplex(r)&&typeof r._transform==="function";r.exports=isStream},20893:r=>{var s={}.toString;r.exports=Array.isArray||function(r){return s.call(r)=="[object Array]"}},21917:(r,s,i)=>{"use strict";var a=i(51161);var A=i(68866);function renamed(r,s){return function(){throw new Error("Function yaml."+r+" is removed in js-yaml 4. "+"Use yaml."+s+" instead, which is now safe by default.")}}r.exports.Type=i(6073);r.exports.Schema=i(21082);r.exports.FAILSAFE_SCHEMA=i(28562);r.exports.JSON_SCHEMA=i(1035);r.exports.CORE_SCHEMA=i(12011);r.exports.DEFAULT_SCHEMA=i(18759);r.exports.load=a.load;r.exports.loadAll=a.loadAll;r.exports.dump=A.dump;r.exports.YAMLException=i(68179);r.exports.types={binary:i(77900),float:i(42705),map:i(86150),null:i(20721),pairs:i(96860),set:i(79548),timestamp:i(99212),bool:i(64993),int:i(11615),merge:i(86104),omap:i(19046),seq:i(67283),str:i(23619)};r.exports.safeLoad=renamed("safeLoad","load");r.exports.safeLoadAll=renamed("safeLoadAll","loadAll");r.exports.safeDump=renamed("safeDump","dump")},26829:r=>{"use strict";function isNothing(r){return typeof r==="undefined"||r===null}function isObject(r){return typeof r==="object"&&r!==null}function toArray(r){if(Array.isArray(r))return r;else if(isNothing(r))return[];return[r]}function extend(r,s){var i,a,A,c;if(s){c=Object.keys(s);for(i=0,a=c.length;i{"use strict";var a=i(26829);var A=i(68179);var c=i(18759);var l=Object.prototype.toString;var d=Object.prototype.hasOwnProperty;var u=65279;var p=9;var g=10;var h=13;var C=32;var y=33;var I=34;var B=35;var b=37;var Q=38;var w=39;var v=42;var S=44;var R=45;var N=58;var x=61;var D=62;var k=63;var T=64;var _=91;var P=93;var O=96;var L=123;var M=124;var U=125;var H={};H[0]="\\0";H[7]="\\a";H[8]="\\b";H[9]="\\t";H[10]="\\n";H[11]="\\v";H[12]="\\f";H[13]="\\r";H[27]="\\e";H[34]='\\"';H[92]="\\\\";H[133]="\\N";H[160]="\\_";H[8232]="\\L";H[8233]="\\P";var G=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"];var q=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function compileStyleMap(r,s){var i,a,A,c,l,u,p;if(s===null)return{};i={};a=Object.keys(s);for(A=0,c=a.length;A=55296&&i<=56319&&s+1=56320&&a<=57343){return(i-55296)*1024+a-56320+65536}}return i}function needIndentIndicator(r){var s=/^\n* /;return s.test(r)}var z=1,Y=2,J=3,W=4,X=5;function chooseScalarStyle(r,s,i,a,A,c,l,d){var u;var p=0;var h=null;var C=false;var y=false;var I=a!==-1;var B=-1;var b=isPlainSafeFirst(codePointAt(r,0))&&isPlainSafeLast(codePointAt(r,r.length-1));if(s||l){for(u=0;u=65536?u+=2:u++){p=codePointAt(r,u);if(!isPrintable(p)){return X}b=b&&isPlainSafe(p,h,d);h=p}}else{for(u=0;u=65536?u+=2:u++){p=codePointAt(r,u);if(p===g){C=true;if(I){y=y||u-B-1>a&&r[B+1]!==" ";B=u}}else if(!isPrintable(p)){return X}b=b&&isPlainSafe(p,h,d);h=p}y=y||I&&(u-B-1>a&&r[B+1]!==" ")}if(!C&&!y){if(b&&!l&&!A(r)){return z}return c===j?X:Y}if(i>9&&needIndentIndicator(r)){return X}if(!l){return y?W:J}return c===j?X:Y}function writeScalar(r,s,i,a,c){r.dump=function(){if(s.length===0){return r.quotingType===j?'""':"''"}if(!r.noCompatMode){if(G.indexOf(s)!==-1||q.test(s)){return r.quotingType===j?'"'+s+'"':"'"+s+"'"}}var l=r.indent*Math.max(1,i);var d=r.lineWidth===-1?-1:Math.max(Math.min(r.lineWidth,40),r.lineWidth-l);var u=a||r.flowLevel>-1&&i>=r.flowLevel;function testAmbiguity(s){return testImplicitResolving(r,s)}switch(chooseScalarStyle(s,u,r.indent,d,testAmbiguity,r.quotingType,r.forceQuotes&&!a,c)){case z:return s;case Y:return"'"+s.replace(/'/g,"''")+"'";case J:return"|"+blockHeader(s,r.indent)+dropEndingNewline(indentString(s,l));case W:return">"+blockHeader(s,r.indent)+dropEndingNewline(indentString(foldString(s,d),l));case X:return'"'+escapeString(s,d)+'"';default:throw new A("impossible error: invalid scalar style")}}()}function blockHeader(r,s){var i=needIndentIndicator(r)?String(s):"";var a=r[r.length-1]==="\n";var A=a&&(r[r.length-2]==="\n"||r==="\n");var c=A?"+":a?"":"-";return i+c+"\n"}function dropEndingNewline(r){return r[r.length-1]==="\n"?r.slice(0,-1):r}function foldString(r,s){var i=/(\n+)([^\n]*)/g;var a=function(){var a=r.indexOf("\n");a=a!==-1?a:r.length;i.lastIndex=a;return foldLine(r.slice(0,a),s)}();var A=r[0]==="\n"||r[0]===" ";var c;var l;while(l=i.exec(r)){var d=l[1],u=l[2];c=u[0]===" ";a+=d+(!A&&!c&&u!==""?"\n":"")+foldLine(u,s);A=c}return a}function foldLine(r,s){if(r===""||r[0]===" ")return r;var i=/ [^ ]/g;var a;var A=0,c,l=0,d=0;var u="";while(a=i.exec(r)){d=a.index;if(d-A>s){c=l>A?l:d;u+="\n"+r.slice(A,c);A=c+1}l=d}u+="\n";if(r.length-A>s&&l>A){u+=r.slice(A,l)+"\n"+r.slice(l+1)}else{u+=r.slice(A)}return u.slice(1)}function escapeString(r){var s="";var i=0;var a;for(var A=0;A=65536?A+=2:A++){i=codePointAt(r,A);a=H[i];if(!a&&isPrintable(i)){s+=r[A];if(i>=65536)s+=r[A+1]}else{s+=a||encodeHex(i)}}return s}function writeFlowSequence(r,s,i){var a="",A=r.tag,c,l,d;for(c=0,l=i.length;c1024)g+="? ";g+=r.dump+(r.condenseFlow?'"':"")+":"+(r.condenseFlow?"":" ");if(!writeNode(r,s,p,false,false)){continue}g+=r.dump;a+=g}r.tag=A;r.dump="{"+a+"}"}function writeBlockMapping(r,s,i,a){var c="",l=r.tag,d=Object.keys(i),u,p,h,C,y,I;if(r.sortKeys===true){d.sort()}else if(typeof r.sortKeys==="function"){d.sort(r.sortKeys)}else if(r.sortKeys){throw new A("sortKeys must be a boolean or a function")}for(u=0,p=d.length;u1024;if(y){if(r.dump&&g===r.dump.charCodeAt(0)){I+="?"}else{I+="? "}}I+=r.dump;if(y){I+=generateNextLine(r,s)}if(!writeNode(r,s+1,C,true,y)){continue}if(r.dump&&g===r.dump.charCodeAt(0)){I+=":"}else{I+=": "}I+=r.dump;c+=I}r.tag=l;r.dump=c||"{}"}function detectType(r,s,i){var a,c,u,p,g,h;c=i?r.explicitTypes:r.implicitTypes;for(u=0,p=c.length;u tag resolver accepts not "'+h+'" style')}r.dump=a}return true}}return false}function writeNode(r,s,i,a,c,d,u){r.tag=null;r.dump=i;if(!detectType(r,i,false)){detectType(r,i,true)}var p=l.call(r.dump);var g=a;var h;if(a){a=r.flowLevel<0||r.flowLevel>s}var C=p==="[object Object]"||p==="[object Array]",y,I;if(C){y=r.duplicates.indexOf(i);I=y!==-1}if(r.tag!==null&&r.tag!=="?"||I||r.indent!==2&&s>0){c=false}if(I&&r.usedDuplicates[y]){r.dump="*ref_"+y}else{if(C&&I&&!r.usedDuplicates[y]){r.usedDuplicates[y]=true}if(p==="[object Object]"){if(a&&Object.keys(r.dump).length!==0){writeBlockMapping(r,s,r.dump,c);if(I){r.dump="&ref_"+y+r.dump}}else{writeFlowMapping(r,s,r.dump);if(I){r.dump="&ref_"+y+" "+r.dump}}}else if(p==="[object Array]"){if(a&&r.dump.length!==0){if(r.noArrayIndent&&!u&&s>0){writeBlockSequence(r,s-1,r.dump,c)}else{writeBlockSequence(r,s,r.dump,c)}if(I){r.dump="&ref_"+y+r.dump}}else{writeFlowSequence(r,s,r.dump);if(I){r.dump="&ref_"+y+" "+r.dump}}}else if(p==="[object String]"){if(r.tag!=="?"){writeScalar(r,r.dump,s,d,g)}}else if(p==="[object Undefined]"){return false}else{if(r.skipInvalid)return false;throw new A("unacceptable kind of an object to dump "+p)}if(r.tag!==null&&r.tag!=="?"){h=encodeURI(r.tag[0]==="!"?r.tag.slice(1):r.tag).replace(/!/g,"%21");if(r.tag[0]==="!"){h="!"+h}else if(h.slice(0,18)==="tag:yaml.org,2002:"){h="!!"+h.slice(18)}else{h="!<"+h+">"}r.dump=h+" "+r.dump}}return true}function getDuplicateReferences(r,s){var i=[],a=[],A,c;inspectNode(r,i,a);for(A=0,c=a.length;A{"use strict";function formatError(r,s){var i="",a=r.reason||"(unknown reason)";if(!r.mark)return a;if(r.mark.name){i+='in "'+r.mark.name+'" '}i+="("+(r.mark.line+1)+":"+(r.mark.column+1)+")";if(!s&&r.mark.snippet){i+="\n\n"+r.mark.snippet}return a+" "+i}function YAMLException(r,s){Error.call(this);this.name="YAMLException";this.reason=r;this.mark=s;this.message=formatError(this,false);if(Error.captureStackTrace){Error.captureStackTrace(this,this.constructor)}else{this.stack=(new Error).stack||""}}YAMLException.prototype=Object.create(Error.prototype);YAMLException.prototype.constructor=YAMLException;YAMLException.prototype.toString=function toString(r){return this.name+": "+formatError(this,r)};r.exports=YAMLException},51161:(r,s,i)=>{"use strict";var a=i(26829);var A=i(68179);var c=i(96975);var l=i(18759);var d=Object.prototype.hasOwnProperty;var u=1;var p=2;var g=3;var h=4;var C=1;var y=2;var I=3;var B=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/;var b=/[\x85\u2028\u2029]/;var Q=/[,\[\]\{\}]/;var w=/^(?:!|!!|![a-z\-]+!)$/i;var v=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function _class(r){return Object.prototype.toString.call(r)}function is_EOL(r){return r===10||r===13}function is_WHITE_SPACE(r){return r===9||r===32}function is_WS_OR_EOL(r){return r===9||r===32||r===10||r===13}function is_FLOW_INDICATOR(r){return r===44||r===91||r===93||r===123||r===125}function fromHexCode(r){var s;if(48<=r&&r<=57){return r-48}s=r|32;if(97<=s&&s<=102){return s-97+10}return-1}function escapedHexLen(r){if(r===120){return 2}if(r===117){return 4}if(r===85){return 8}return 0}function fromDecimalCode(r){if(48<=r&&r<=57){return r-48}return-1}function simpleEscapeSequence(r){return r===48?"\0":r===97?"":r===98?"\b":r===116?"\t":r===9?"\t":r===110?"\n":r===118?"\v":r===102?"\f":r===114?"\r":r===101?"":r===32?" ":r===34?'"':r===47?"/":r===92?"\\":r===78?"…":r===95?" ":r===76?"\u2028":r===80?"\u2029":""}function charFromCodepoint(r){if(r<=65535){return String.fromCharCode(r)}return String.fromCharCode((r-65536>>10)+55296,(r-65536&1023)+56320)}var S=new Array(256);var R=new Array(256);for(var N=0;N<256;N++){S[N]=simpleEscapeSequence(N)?1:0;R[N]=simpleEscapeSequence(N)}function State(r,s){this.input=r;this.filename=s["filename"]||null;this.schema=s["schema"]||l;this.onWarning=s["onWarning"]||null;this.legacy=s["legacy"]||false;this.json=s["json"]||false;this.listener=s["listener"]||null;this.implicitTypes=this.schema.compiledImplicit;this.typeMap=this.schema.compiledTypeMap;this.length=r.length;this.position=0;this.line=0;this.lineStart=0;this.lineIndent=0;this.firstTabInLine=-1;this.documents=[]}function generateError(r,s){var i={name:r.filename,buffer:r.input.slice(0,-1),position:r.position,line:r.line,column:r.position-r.lineStart};i.snippet=c(i);return new A(s,i)}function throwError(r,s){throw generateError(r,s)}function throwWarning(r,s){if(r.onWarning){r.onWarning.call(null,generateError(r,s))}}var x={YAML:function handleYamlDirective(r,s,i){var a,A,c;if(r.version!==null){throwError(r,"duplication of %YAML directive")}if(i.length!==1){throwError(r,"YAML directive accepts exactly one argument")}a=/^([0-9]+)\.([0-9]+)$/.exec(i[0]);if(a===null){throwError(r,"ill-formed argument of the YAML directive")}A=parseInt(a[1],10);c=parseInt(a[2],10);if(A!==1){throwError(r,"unacceptable YAML version of the document")}r.version=i[0];r.checkLineBreaks=c<2;if(c!==1&&c!==2){throwWarning(r,"unsupported YAML version of the document")}},TAG:function handleTagDirective(r,s,i){var a,A;if(i.length!==2){throwError(r,"TAG directive accepts exactly two arguments")}a=i[0];A=i[1];if(!w.test(a)){throwError(r,"ill-formed tag handle (first argument) of the TAG directive")}if(d.call(r.tagMap,a)){throwError(r,'there is a previously declared suffix for "'+a+'" tag handle')}if(!v.test(A)){throwError(r,"ill-formed tag prefix (second argument) of the TAG directive")}try{A=decodeURIComponent(A)}catch(s){throwError(r,"tag prefix is malformed: "+A)}r.tagMap[a]=A}};function captureSegment(r,s,i,a){var A,c,l,d;if(s1){r.result+=a.repeat("\n",s-1)}}function readPlainScalar(r,s,i){var a,A,c,l,d,u,p,g,h=r.kind,C=r.result,y;y=r.input.charCodeAt(r.position);if(is_WS_OR_EOL(y)||is_FLOW_INDICATOR(y)||y===35||y===38||y===42||y===33||y===124||y===62||y===39||y===34||y===37||y===64||y===96){return false}if(y===63||y===45){A=r.input.charCodeAt(r.position+1);if(is_WS_OR_EOL(A)||i&&is_FLOW_INDICATOR(A)){return false}}r.kind="scalar";r.result="";c=l=r.position;d=false;while(y!==0){if(y===58){A=r.input.charCodeAt(r.position+1);if(is_WS_OR_EOL(A)||i&&is_FLOW_INDICATOR(A)){break}}else if(y===35){a=r.input.charCodeAt(r.position-1);if(is_WS_OR_EOL(a)){break}}else if(r.position===r.lineStart&&testDocumentSeparator(r)||i&&is_FLOW_INDICATOR(y)){break}else if(is_EOL(y)){u=r.line;p=r.lineStart;g=r.lineIndent;skipSeparationSpace(r,false,-1);if(r.lineIndent>=s){d=true;y=r.input.charCodeAt(r.position);continue}else{r.position=l;r.line=u;r.lineStart=p;r.lineIndent=g;break}}if(d){captureSegment(r,c,l,false);writeFoldedLines(r,r.line-u);c=l=r.position;d=false}if(!is_WHITE_SPACE(y)){l=r.position+1}y=r.input.charCodeAt(++r.position)}captureSegment(r,c,l,false);if(r.result){return true}r.kind=h;r.result=C;return false}function readSingleQuotedScalar(r,s){var i,a,A;i=r.input.charCodeAt(r.position);if(i!==39){return false}r.kind="scalar";r.result="";r.position++;a=A=r.position;while((i=r.input.charCodeAt(r.position))!==0){if(i===39){captureSegment(r,a,r.position,true);i=r.input.charCodeAt(++r.position);if(i===39){a=r.position;r.position++;A=r.position}else{return true}}else if(is_EOL(i)){captureSegment(r,a,A,true);writeFoldedLines(r,skipSeparationSpace(r,false,s));a=A=r.position}else if(r.position===r.lineStart&&testDocumentSeparator(r)){throwError(r,"unexpected end of the document within a single quoted scalar")}else{r.position++;A=r.position}}throwError(r,"unexpected end of the stream within a single quoted scalar")}function readDoubleQuotedScalar(r,s){var i,a,A,c,l,d;d=r.input.charCodeAt(r.position);if(d!==34){return false}r.kind="scalar";r.result="";r.position++;i=a=r.position;while((d=r.input.charCodeAt(r.position))!==0){if(d===34){captureSegment(r,i,r.position,true);r.position++;return true}else if(d===92){captureSegment(r,i,r.position,true);d=r.input.charCodeAt(++r.position);if(is_EOL(d)){skipSeparationSpace(r,false,s)}else if(d<256&&S[d]){r.result+=R[d];r.position++}else if((l=escapedHexLen(d))>0){A=l;c=0;for(;A>0;A--){d=r.input.charCodeAt(++r.position);if((l=fromHexCode(d))>=0){c=(c<<4)+l}else{throwError(r,"expected hexadecimal character")}}r.result+=charFromCodepoint(c);r.position++}else{throwError(r,"unknown escape sequence")}i=a=r.position}else if(is_EOL(d)){captureSegment(r,i,a,true);writeFoldedLines(r,skipSeparationSpace(r,false,s));i=a=r.position}else if(r.position===r.lineStart&&testDocumentSeparator(r)){throwError(r,"unexpected end of the document within a double quoted scalar")}else{r.position++;a=r.position}}throwError(r,"unexpected end of the stream within a double quoted scalar")}function readFlowCollection(r,s){var i=true,a,A,c,l=r.tag,d,p=r.anchor,g,h,C,y,I,B=Object.create(null),b,Q,w,v;v=r.input.charCodeAt(r.position);if(v===91){h=93;I=false;d=[]}else if(v===123){h=125;I=true;d={}}else{return false}if(r.anchor!==null){r.anchorMap[r.anchor]=d}v=r.input.charCodeAt(++r.position);while(v!==0){skipSeparationSpace(r,true,s);v=r.input.charCodeAt(r.position);if(v===h){r.position++;r.tag=l;r.anchor=p;r.kind=I?"mapping":"sequence";r.result=d;return true}else if(!i){throwError(r,"missed comma between flow collection entries")}else if(v===44){throwError(r,"expected the node content, but found ','")}Q=b=w=null;C=y=false;if(v===63){g=r.input.charCodeAt(r.position+1);if(is_WS_OR_EOL(g)){C=y=true;r.position++;skipSeparationSpace(r,true,s)}}a=r.line;A=r.lineStart;c=r.position;composeNode(r,s,u,false,true);Q=r.tag;b=r.result;skipSeparationSpace(r,true,s);v=r.input.charCodeAt(r.position);if((y||r.line===a)&&v===58){C=true;v=r.input.charCodeAt(++r.position);skipSeparationSpace(r,true,s);composeNode(r,s,u,false,true);w=r.result}if(I){storeMappingPair(r,d,B,Q,b,w,a,A,c)}else if(C){d.push(storeMappingPair(r,null,B,Q,b,w,a,A,c))}else{d.push(b)}skipSeparationSpace(r,true,s);v=r.input.charCodeAt(r.position);if(v===44){i=true;v=r.input.charCodeAt(++r.position)}else{i=false}}throwError(r,"unexpected end of the stream within a flow collection")}function readBlockScalar(r,s){var i,A,c=C,l=false,d=false,u=s,p=0,g=false,h,B;B=r.input.charCodeAt(r.position);if(B===124){A=false}else if(B===62){A=true}else{return false}r.kind="scalar";r.result="";while(B!==0){B=r.input.charCodeAt(++r.position);if(B===43||B===45){if(C===c){c=B===43?I:y}else{throwError(r,"repeat of a chomping mode identifier")}}else if((h=fromDecimalCode(B))>=0){if(h===0){throwError(r,"bad explicit indentation width of a block scalar; it cannot be less than one")}else if(!d){u=s+h-1;d=true}else{throwError(r,"repeat of an indentation width identifier")}}else{break}}if(is_WHITE_SPACE(B)){do{B=r.input.charCodeAt(++r.position)}while(is_WHITE_SPACE(B));if(B===35){do{B=r.input.charCodeAt(++r.position)}while(!is_EOL(B)&&B!==0)}}while(B!==0){readLineBreak(r);r.lineIndent=0;B=r.input.charCodeAt(r.position);while((!d||r.lineIndentu){u=r.lineIndent}if(is_EOL(B)){p++;continue}if(r.lineIndents)&&u!==0){throwError(r,"bad indentation of a sequence entry")}else if(r.lineIndents){if(w){l=r.line;d=r.lineStart;u=r.position}if(composeNode(r,s,h,true,A)){if(w){b=r.result}else{Q=r.result}}if(!w){storeMappingPair(r,y,I,B,b,Q,l,d,u);B=b=Q=null}skipSeparationSpace(r,true,-1);S=r.input.charCodeAt(r.position)}if((r.line===c||r.lineIndent>s)&&S!==0){throwError(r,"bad indentation of a mapping entry")}else if(r.lineIndents){y=1}else if(r.lineIndent===s){y=0}else if(r.lineIndents){y=1}else if(r.lineIndent===s){y=0}else if(r.lineIndent tag; it should be "scalar", not "'+r.kind+'"')}for(b=0,Q=r.implicitTypes.length;b")}if(r.result!==null&&v.kind!==r.kind){throwError(r,"unacceptable node kind for !<"+r.tag+'> tag; it should be "'+v.kind+'", not "'+r.kind+'"')}if(!v.resolve(r.result,r.tag)){throwError(r,"cannot resolve a node with !<"+r.tag+"> explicit tag")}else{r.result=v.construct(r.result,r.tag);if(r.anchor!==null){r.anchorMap[r.anchor]=r.result}}}if(r.listener!==null){r.listener("close",r)}return r.tag!==null||r.anchor!==null||B}function readDocument(r){var s=r.position,i,a,A,c=false,l;r.version=null;r.checkLineBreaks=r.legacy;r.tagMap=Object.create(null);r.anchorMap=Object.create(null);while((l=r.input.charCodeAt(r.position))!==0){skipSeparationSpace(r,true,-1);l=r.input.charCodeAt(r.position);if(r.lineIndent>0||l!==37){break}c=true;l=r.input.charCodeAt(++r.position);i=r.position;while(l!==0&&!is_WS_OR_EOL(l)){l=r.input.charCodeAt(++r.position)}a=r.input.slice(i,r.position);A=[];if(a.length<1){throwError(r,"directive name must not be less than one character in length")}while(l!==0){while(is_WHITE_SPACE(l)){l=r.input.charCodeAt(++r.position)}if(l===35){do{l=r.input.charCodeAt(++r.position)}while(l!==0&&!is_EOL(l));break}if(is_EOL(l))break;i=r.position;while(l!==0&&!is_WS_OR_EOL(l)){l=r.input.charCodeAt(++r.position)}A.push(r.input.slice(i,r.position))}if(l!==0)readLineBreak(r);if(d.call(x,a)){x[a](r,a,A)}else{throwWarning(r,'unknown document directive "'+a+'"')}}skipSeparationSpace(r,true,-1);if(r.lineIndent===0&&r.input.charCodeAt(r.position)===45&&r.input.charCodeAt(r.position+1)===45&&r.input.charCodeAt(r.position+2)===45){r.position+=3;skipSeparationSpace(r,true,-1)}else if(c){throwError(r,"directives end mark is expected")}composeNode(r,r.lineIndent-1,h,false,true);skipSeparationSpace(r,true,-1);if(r.checkLineBreaks&&b.test(r.input.slice(s,r.position))){throwWarning(r,"non-ASCII line breaks are interpreted as content")}r.documents.push(r.result);if(r.position===r.lineStart&&testDocumentSeparator(r)){if(r.input.charCodeAt(r.position)===46){r.position+=3;skipSeparationSpace(r,true,-1)}return}if(r.position{"use strict";var a=i(68179);var A=i(6073);function compileList(r,s){var i=[];r[s].forEach((function(r){var s=i.length;i.forEach((function(i,a){if(i.tag===r.tag&&i.kind===r.kind&&i.multi===r.multi){s=a}}));i[s]=r}));return i}function compileMap(){var r={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},s,i;function collectType(s){if(s.multi){r.multi[s.kind].push(s);r.multi["fallback"].push(s)}else{r[s.kind][s.tag]=r["fallback"][s.tag]=s}}for(s=0,i=arguments.length;s{"use strict";r.exports=i(1035)},18759:(r,s,i)=>{"use strict";r.exports=i(12011).extend({implicit:[i(99212),i(86104)],explicit:[i(77900),i(19046),i(96860),i(79548)]})},28562:(r,s,i)=>{"use strict";var a=i(21082);r.exports=new a({explicit:[i(23619),i(67283),i(86150)]})},1035:(r,s,i)=>{"use strict";r.exports=i(28562).extend({implicit:[i(20721),i(64993),i(11615),i(42705)]})},96975:(r,s,i)=>{"use strict";var a=i(26829);function getLine(r,s,i,a,A){var c="";var l="";var d=Math.floor(A/2)-1;if(a-s>d){c=" ... ";s=a-d+c.length}if(i-a>d){l=" ...";i=a+d-l.length}return{str:c+r.slice(s,i).replace(/\t/g,"→")+l,pos:a-s+c.length}}function padStart(r,s){return a.repeat(" ",s-r.length)+r}function makeSnippet(r,s){s=Object.create(s||null);if(!r.buffer)return null;if(!s.maxLength)s.maxLength=79;if(typeof s.indent!=="number")s.indent=1;if(typeof s.linesBefore!=="number")s.linesBefore=3;if(typeof s.linesAfter!=="number")s.linesAfter=2;var i=/\r?\n|\r|\0/g;var A=[0];var c=[];var l;var d=-1;while(l=i.exec(r.buffer)){c.push(l.index);A.push(l.index+l[0].length);if(r.position<=l.index&&d<0){d=A.length-2}}if(d<0)d=A.length-1;var u="",p,g;var h=Math.min(r.line+s.linesAfter,c.length).toString().length;var C=s.maxLength-(s.indent+h+3);for(p=1;p<=s.linesBefore;p++){if(d-p<0)break;g=getLine(r.buffer,A[d-p],c[d-p],r.position-(A[d]-A[d-p]),C);u=a.repeat(" ",s.indent)+padStart((r.line-p+1).toString(),h)+" | "+g.str+"\n"+u}g=getLine(r.buffer,A[d],c[d],r.position,C);u+=a.repeat(" ",s.indent)+padStart((r.line+1).toString(),h)+" | "+g.str+"\n";u+=a.repeat("-",s.indent+h+3+g.pos)+"^"+"\n";for(p=1;p<=s.linesAfter;p++){if(d+p>=c.length)break;g=getLine(r.buffer,A[d+p],c[d+p],r.position-(A[d]-A[d+p]),C);u+=a.repeat(" ",s.indent)+padStart((r.line+p+1).toString(),h)+" | "+g.str+"\n"}return u.replace(/\n$/,"")}r.exports=makeSnippet},6073:(r,s,i)=>{"use strict";var a=i(68179);var A=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"];var c=["scalar","sequence","mapping"];function compileStyleAliases(r){var s={};if(r!==null){Object.keys(r).forEach((function(i){r[i].forEach((function(r){s[String(r)]=i}))}))}return s}function Type(r,s){s=s||{};Object.keys(s).forEach((function(s){if(A.indexOf(s)===-1){throw new a('Unknown option "'+s+'" is met in definition of "'+r+'" YAML type.')}}));this.options=s;this.tag=r;this.kind=s["kind"]||null;this.resolve=s["resolve"]||function(){return true};this.construct=s["construct"]||function(r){return r};this.instanceOf=s["instanceOf"]||null;this.predicate=s["predicate"]||null;this.represent=s["represent"]||null;this.representName=s["representName"]||null;this.defaultStyle=s["defaultStyle"]||null;this.multi=s["multi"]||false;this.styleAliases=compileStyleAliases(s["styleAliases"]||null);if(c.indexOf(this.kind)===-1){throw new a('Unknown kind "'+this.kind+'" is specified for "'+r+'" YAML type.')}}r.exports=Type},77900:(r,s,i)=>{"use strict";var a=i(6073);var A="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r";function resolveYamlBinary(r){if(r===null)return false;var s,i,a=0,c=r.length,l=A;for(i=0;i64)continue;if(s<0)return false;a+=6}return a%8===0}function constructYamlBinary(r){var s,i,a=r.replace(/[\r\n=]/g,""),c=a.length,l=A,d=0,u=[];for(s=0;s>16&255);u.push(d>>8&255);u.push(d&255)}d=d<<6|l.indexOf(a.charAt(s))}i=c%4*6;if(i===0){u.push(d>>16&255);u.push(d>>8&255);u.push(d&255)}else if(i===18){u.push(d>>10&255);u.push(d>>2&255)}else if(i===12){u.push(d>>4&255)}return new Uint8Array(u)}function representYamlBinary(r){var s="",i=0,a,c,l=r.length,d=A;for(a=0;a>18&63];s+=d[i>>12&63];s+=d[i>>6&63];s+=d[i&63]}i=(i<<8)+r[a]}c=l%3;if(c===0){s+=d[i>>18&63];s+=d[i>>12&63];s+=d[i>>6&63];s+=d[i&63]}else if(c===2){s+=d[i>>10&63];s+=d[i>>4&63];s+=d[i<<2&63];s+=d[64]}else if(c===1){s+=d[i>>2&63];s+=d[i<<4&63];s+=d[64];s+=d[64]}return s}function isBinary(r){return Object.prototype.toString.call(r)==="[object Uint8Array]"}r.exports=new a("tag:yaml.org,2002:binary",{kind:"scalar",resolve:resolveYamlBinary,construct:constructYamlBinary,predicate:isBinary,represent:representYamlBinary})},64993:(r,s,i)=>{"use strict";var a=i(6073);function resolveYamlBoolean(r){if(r===null)return false;var s=r.length;return s===4&&(r==="true"||r==="True"||r==="TRUE")||s===5&&(r==="false"||r==="False"||r==="FALSE")}function constructYamlBoolean(r){return r==="true"||r==="True"||r==="TRUE"}function isBoolean(r){return Object.prototype.toString.call(r)==="[object Boolean]"}r.exports=new a("tag:yaml.org,2002:bool",{kind:"scalar",resolve:resolveYamlBoolean,construct:constructYamlBoolean,predicate:isBoolean,represent:{lowercase:function(r){return r?"true":"false"},uppercase:function(r){return r?"TRUE":"FALSE"},camelcase:function(r){return r?"True":"False"}},defaultStyle:"lowercase"})},42705:(r,s,i)=>{"use strict";var a=i(26829);var A=i(6073);var c=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?"+"|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?"+"|[-+]?\\.(?:inf|Inf|INF)"+"|\\.(?:nan|NaN|NAN))$");function resolveYamlFloat(r){if(r===null)return false;if(!c.test(r)||r[r.length-1]==="_"){return false}return true}function constructYamlFloat(r){var s,i;s=r.replace(/_/g,"").toLowerCase();i=s[0]==="-"?-1:1;if("+-".indexOf(s[0])>=0){s=s.slice(1)}if(s===".inf"){return i===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY}else if(s===".nan"){return NaN}return i*parseFloat(s,10)}var l=/^[-+]?[0-9]+e/;function representYamlFloat(r,s){var i;if(isNaN(r)){switch(s){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}}else if(Number.POSITIVE_INFINITY===r){switch(s){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}}else if(Number.NEGATIVE_INFINITY===r){switch(s){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}}else if(a.isNegativeZero(r)){return"-0.0"}i=r.toString(10);return l.test(i)?i.replace("e",".e"):i}function isFloat(r){return Object.prototype.toString.call(r)==="[object Number]"&&(r%1!==0||a.isNegativeZero(r))}r.exports=new A("tag:yaml.org,2002:float",{kind:"scalar",resolve:resolveYamlFloat,construct:constructYamlFloat,predicate:isFloat,represent:representYamlFloat,defaultStyle:"lowercase"})},11615:(r,s,i)=>{"use strict";var a=i(26829);var A=i(6073);function isHexCode(r){return 48<=r&&r<=57||65<=r&&r<=70||97<=r&&r<=102}function isOctCode(r){return 48<=r&&r<=55}function isDecCode(r){return 48<=r&&r<=57}function resolveYamlInteger(r){if(r===null)return false;var s=r.length,i=0,a=false,A;if(!s)return false;A=r[i];if(A==="-"||A==="+"){A=r[++i]}if(A==="0"){if(i+1===s)return true;A=r[++i];if(A==="b"){i++;for(;i=0?"0b"+r.toString(2):"-0b"+r.toString(2).slice(1)},octal:function(r){return r>=0?"0o"+r.toString(8):"-0o"+r.toString(8).slice(1)},decimal:function(r){return r.toString(10)},hexadecimal:function(r){return r>=0?"0x"+r.toString(16).toUpperCase():"-0x"+r.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}})},86150:(r,s,i)=>{"use strict";var a=i(6073);r.exports=new a("tag:yaml.org,2002:map",{kind:"mapping",construct:function(r){return r!==null?r:{}}})},86104:(r,s,i)=>{"use strict";var a=i(6073);function resolveYamlMerge(r){return r==="<<"||r===null}r.exports=new a("tag:yaml.org,2002:merge",{kind:"scalar",resolve:resolveYamlMerge})},20721:(r,s,i)=>{"use strict";var a=i(6073);function resolveYamlNull(r){if(r===null)return true;var s=r.length;return s===1&&r==="~"||s===4&&(r==="null"||r==="Null"||r==="NULL")}function constructYamlNull(){return null}function isNull(r){return r===null}r.exports=new a("tag:yaml.org,2002:null",{kind:"scalar",resolve:resolveYamlNull,construct:constructYamlNull,predicate:isNull,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"})},19046:(r,s,i)=>{"use strict";var a=i(6073);var A=Object.prototype.hasOwnProperty;var c=Object.prototype.toString;function resolveYamlOmap(r){if(r===null)return true;var s=[],i,a,l,d,u,p=r;for(i=0,a=p.length;i{"use strict";var a=i(6073);var A=Object.prototype.toString;function resolveYamlPairs(r){if(r===null)return true;var s,i,a,c,l,d=r;l=new Array(d.length);for(s=0,i=d.length;s{"use strict";var a=i(6073);r.exports=new a("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(r){return r!==null?r:[]}})},79548:(r,s,i)=>{"use strict";var a=i(6073);var A=Object.prototype.hasOwnProperty;function resolveYamlSet(r){if(r===null)return true;var s,i=r;for(s in i){if(A.call(i,s)){if(i[s]!==null)return false}}return true}function constructYamlSet(r){return r!==null?r:{}}r.exports=new a("tag:yaml.org,2002:set",{kind:"mapping",resolve:resolveYamlSet,construct:constructYamlSet})},23619:(r,s,i)=>{"use strict";var a=i(6073);r.exports=new a("tag:yaml.org,2002:str",{kind:"scalar",construct:function(r){return r!==null?r:""}})},99212:(r,s,i)=>{"use strict";var a=i(6073);var A=new RegExp("^([0-9][0-9][0-9][0-9])"+"-([0-9][0-9])"+"-([0-9][0-9])$");var c=new RegExp("^([0-9][0-9][0-9][0-9])"+"-([0-9][0-9]?)"+"-([0-9][0-9]?)"+"(?:[Tt]|[ \\t]+)"+"([0-9][0-9]?)"+":([0-9][0-9])"+":([0-9][0-9])"+"(?:\\.([0-9]*))?"+"(?:[ \\t]*(Z|([-+])([0-9][0-9]?)"+"(?::([0-9][0-9]))?))?$");function resolveYamlTimestamp(r){if(r===null)return false;if(A.exec(r)!==null)return true;if(c.exec(r)!==null)return true;return false}function constructYamlTimestamp(r){var s,i,a,l,d,u,p,g=0,h=null,C,y,I;s=A.exec(r);if(s===null)s=c.exec(r);if(s===null)throw new Error("Date resolve error");i=+s[1];a=+s[2]-1;l=+s[3];if(!s[4]){return new Date(Date.UTC(i,a,l))}d=+s[4];u=+s[5];p=+s[6];if(s[7]){g=s[7].slice(0,3);while(g.length<3){g+="0"}g=+g}if(s[9]){C=+s[10];y=+(s[11]||0);h=(C*60+y)*6e4;if(s[9]==="-")h=-h}I=new Date(Date.UTC(i,a,l,d,u,p,g));if(h)I.setTime(I.getTime()-h);return I}function representYamlTimestamp(r){return r.toISOString()}r.exports=new a("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:resolveYamlTimestamp,construct:constructYamlTimestamp,instanceOf:Date,represent:representYamlTimestamp})},84329:r=>{"use strict";function e(r){this.message=r}e.prototype=new Error,e.prototype.name="InvalidCharacterError";var s="undefined"!=typeof window&&window.atob&&window.atob.bind(window)||function(r){var s=String(r).replace(/=+$/,"");if(s.length%4==1)throw new e("'atob' failed: The string to be decoded is not correctly encoded.");for(var i,a,A=0,c=0,l="";a=s.charAt(c++);~a&&(i=A%4?64*i+a:a,A++%4)?l+=String.fromCharCode(255&i>>(-2*A&6)):0)a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(a);return l};function t(r){var i=r.replace(/-/g,"+").replace(/_/g,"/");switch(i.length%4){case 0:break;case 2:i+="==";break;case 3:i+="=";break;default:throw"Illegal base64url string!"}try{return function(r){return decodeURIComponent(s(r).replace(/(.)/g,(function(r,s){var i=s.charCodeAt(0).toString(16).toUpperCase();return i.length<2&&(i="0"+i),"%"+i})))}(i)}catch(r){return s(i)}}function n(r){this.message=r}function o(r,s){if("string"!=typeof r)throw new n("Invalid token specified");var i=!0===(s=s||{}).header?0:1;try{return JSON.parse(t(r.split(".")[i]))}catch(r){throw new n("Invalid token specified: "+r.message)}}n.prototype=new Error,n.prototype.name="InvalidTokenError";const i=o;i.default=o,i.InvalidTokenError=n,r.exports=i},12084:(r,s,i)=>{var a=i(73837);var A=i(27818);r.exports={Readable:Readable,Writable:Writable};a.inherits(Readable,A);a.inherits(Writable,A);function beforeFirstCall(r,s,i){r[s]=function(){delete r[s];i.apply(this,arguments);return this[s].apply(this,arguments)}}function Readable(r,s){if(!(this instanceof Readable))return new Readable(r,s);A.call(this,s);beforeFirstCall(this,"_read",(function(){var i=r.call(this,s);var a=this.emit.bind(this,"error");i.on("error",a);i.pipe(this)}));this.emit("readable")}function Writable(r,s){if(!(this instanceof Writable))return new Writable(r,s);A.call(this,s);beforeFirstCall(this,"_write",(function(){var i=r.call(this,s);var a=this.emit.bind(this,"error");i.on("error",a);this.pipe(i)}));this.emit("writable")}},5706:(r,s,i)=>{"use strict";var a=i(47810);var A=Object.keys||function(r){var s=[];for(var i in r){s.push(i)}return s};r.exports=Duplex;var c=Object.create(i(95898));c.inherits=i(44124);var l=i(99140);var d=i(14960);c.inherits(Duplex,l);{var u=A(d.prototype);for(var p=0;p{"use strict";r.exports=PassThrough;var a=i(75072);var A=Object.create(i(95898));A.inherits=i(44124);A.inherits(PassThrough,a);function PassThrough(r){if(!(this instanceof PassThrough))return new PassThrough(r);a.call(this,r)}PassThrough.prototype._transform=function(r,s,i){i(null,r)}},99140:(r,s,i)=>{"use strict";var a=i(47810);r.exports=Readable;var A=i(20893);var c;Readable.ReadableState=ReadableState;var l=i(82361).EventEmitter;var EElistenerCount=function(r,s){return r.listeners(s).length};var d=i(58745);var u=i(21867).Buffer;var p=(typeof global!=="undefined"?global:typeof window!=="undefined"?window:typeof self!=="undefined"?self:{}).Uint8Array||function(){};function _uint8ArrayToBuffer(r){return u.from(r)}function _isUint8Array(r){return u.isBuffer(r)||r instanceof p}var g=Object.create(i(95898));g.inherits=i(44124);var h=i(73837);var C=void 0;if(h&&h.debuglog){C=h.debuglog("stream")}else{C=function(){}}var y=i(75454);var I=i(78999);var B;g.inherits(Readable,d);var b=["error","close","destroy","pause","resume"];function prependListener(r,s,i){if(typeof r.prependListener==="function")return r.prependListener(s,i);if(!r._events||!r._events[s])r.on(s,i);else if(A(r._events[s]))r._events[s].unshift(i);else r._events[s]=[i,r._events[s]]}function ReadableState(r,s){c=c||i(5706);r=r||{};var a=s instanceof c;this.objectMode=!!r.objectMode;if(a)this.objectMode=this.objectMode||!!r.readableObjectMode;var A=r.highWaterMark;var l=r.readableHighWaterMark;var d=this.objectMode?16:16*1024;if(A||A===0)this.highWaterMark=A;else if(a&&(l||l===0))this.highWaterMark=l;else this.highWaterMark=d;this.highWaterMark=Math.floor(this.highWaterMark);this.buffer=new y;this.length=0;this.pipes=null;this.pipesCount=0;this.flowing=null;this.ended=false;this.endEmitted=false;this.reading=false;this.sync=true;this.needReadable=false;this.emittedReadable=false;this.readableListening=false;this.resumeScheduled=false;this.destroyed=false;this.defaultEncoding=r.defaultEncoding||"utf8";this.awaitDrain=0;this.readingMore=false;this.decoder=null;this.encoding=null;if(r.encoding){if(!B)B=i(94841).s;this.decoder=new B(r.encoding);this.encoding=r.encoding}}function Readable(r){c=c||i(5706);if(!(this instanceof Readable))return new Readable(r);this._readableState=new ReadableState(r,this);this.readable=true;if(r){if(typeof r.read==="function")this._read=r.read;if(typeof r.destroy==="function")this._destroy=r.destroy}d.call(this)}Object.defineProperty(Readable.prototype,"destroyed",{get:function(){if(this._readableState===undefined){return false}return this._readableState.destroyed},set:function(r){if(!this._readableState){return}this._readableState.destroyed=r}});Readable.prototype.destroy=I.destroy;Readable.prototype._undestroy=I.undestroy;Readable.prototype._destroy=function(r,s){this.push(null);s(r)};Readable.prototype.push=function(r,s){var i=this._readableState;var a;if(!i.objectMode){if(typeof r==="string"){s=s||i.defaultEncoding;if(s!==i.encoding){r=u.from(r,s);s=""}a=true}}else{a=true}return readableAddChunk(this,r,s,false,a)};Readable.prototype.unshift=function(r){return readableAddChunk(this,r,null,true,false)};function readableAddChunk(r,s,i,a,A){var c=r._readableState;if(s===null){c.reading=false;onEofChunk(r,c)}else{var l;if(!A)l=chunkInvalid(c,s);if(l){r.emit("error",l)}else if(c.objectMode||s&&s.length>0){if(typeof s!=="string"&&!c.objectMode&&Object.getPrototypeOf(s)!==u.prototype){s=_uint8ArrayToBuffer(s)}if(a){if(c.endEmitted)r.emit("error",new Error("stream.unshift() after end event"));else addChunk(r,c,s,true)}else if(c.ended){r.emit("error",new Error("stream.push() after EOF"))}else{c.reading=false;if(c.decoder&&!i){s=c.decoder.write(s);if(c.objectMode||s.length!==0)addChunk(r,c,s,false);else maybeReadMore(r,c)}else{addChunk(r,c,s,false)}}}else if(!a){c.reading=false}}return needMoreData(c)}function addChunk(r,s,i,a){if(s.flowing&&s.length===0&&!s.sync){r.emit("data",i);r.read(0)}else{s.length+=s.objectMode?1:i.length;if(a)s.buffer.unshift(i);else s.buffer.push(i);if(s.needReadable)emitReadable(r)}maybeReadMore(r,s)}function chunkInvalid(r,s){var i;if(!_isUint8Array(s)&&typeof s!=="string"&&s!==undefined&&!r.objectMode){i=new TypeError("Invalid non-string/buffer chunk")}return i}function needMoreData(r){return!r.ended&&(r.needReadable||r.length=Q){r=Q}else{r--;r|=r>>>1;r|=r>>>2;r|=r>>>4;r|=r>>>8;r|=r>>>16;r++}return r}function howMuchToRead(r,s){if(r<=0||s.length===0&&s.ended)return 0;if(s.objectMode)return 1;if(r!==r){if(s.flowing&&s.length)return s.buffer.head.data.length;else return s.length}if(r>s.highWaterMark)s.highWaterMark=computeNewHighWaterMark(r);if(r<=s.length)return r;if(!s.ended){s.needReadable=true;return 0}return s.length}Readable.prototype.read=function(r){C("read",r);r=parseInt(r,10);var s=this._readableState;var i=r;if(r!==0)s.emittedReadable=false;if(r===0&&s.needReadable&&(s.length>=s.highWaterMark||s.ended)){C("read: emitReadable",s.length,s.ended);if(s.length===0&&s.ended)endReadable(this);else emitReadable(this);return null}r=howMuchToRead(r,s);if(r===0&&s.ended){if(s.length===0)endReadable(this);return null}var a=s.needReadable;C("need readable",a);if(s.length===0||s.length-r0)A=fromList(r,s);else A=null;if(A===null){s.needReadable=true;r=0}else{s.length-=r}if(s.length===0){if(!s.ended)s.needReadable=true;if(i!==r&&s.ended)endReadable(this)}if(A!==null)this.emit("data",A);return A};function onEofChunk(r,s){if(s.ended)return;if(s.decoder){var i=s.decoder.end();if(i&&i.length){s.buffer.push(i);s.length+=s.objectMode?1:i.length}}s.ended=true;emitReadable(r)}function emitReadable(r){var s=r._readableState;s.needReadable=false;if(!s.emittedReadable){C("emitReadable",s.flowing);s.emittedReadable=true;if(s.sync)a.nextTick(emitReadable_,r);else emitReadable_(r)}}function emitReadable_(r){C("emit readable");r.emit("readable");flow(r)}function maybeReadMore(r,s){if(!s.readingMore){s.readingMore=true;a.nextTick(maybeReadMore_,r,s)}}function maybeReadMore_(r,s){var i=s.length;while(!s.reading&&!s.flowing&&!s.ended&&s.length1&&indexOf(A.pipes,r)!==-1)&&!u){C("false write response, pause",A.awaitDrain);A.awaitDrain++;p=true}i.pause()}}function onerror(s){C("onerror",s);unpipe();r.removeListener("error",onerror);if(EElistenerCount(r,"error")===0)r.emit("error",s)}prependListener(r,"error",onerror);function onclose(){r.removeListener("finish",onfinish);unpipe()}r.once("close",onclose);function onfinish(){C("onfinish");r.removeListener("close",onclose);unpipe()}r.once("finish",onfinish);function unpipe(){C("unpipe");i.unpipe(r)}r.emit("pipe",i);if(!A.flowing){C("pipe resume");i.resume()}return r};function pipeOnDrain(r){return function(){var s=r._readableState;C("pipeOnDrain",s.awaitDrain);if(s.awaitDrain)s.awaitDrain--;if(s.awaitDrain===0&&EElistenerCount(r,"data")){s.flowing=true;flow(r)}}}Readable.prototype.unpipe=function(r){var s=this._readableState;var i={hasUnpiped:false};if(s.pipesCount===0)return this;if(s.pipesCount===1){if(r&&r!==s.pipes)return this;if(!r)r=s.pipes;s.pipes=null;s.pipesCount=0;s.flowing=false;if(r)r.emit("unpipe",this,i);return this}if(!r){var a=s.pipes;var A=s.pipesCount;s.pipes=null;s.pipesCount=0;s.flowing=false;for(var c=0;c=s.length){if(s.decoder)i=s.buffer.join("");else if(s.buffer.length===1)i=s.buffer.head.data;else i=s.buffer.concat(s.length);s.buffer.clear()}else{i=fromListPartial(r,s.buffer,s.decoder)}return i}function fromListPartial(r,s,i){var a;if(rc.length?c.length:r;if(l===c.length)A+=c;else A+=c.slice(0,r);r-=l;if(r===0){if(l===c.length){++a;if(i.next)s.head=i.next;else s.head=s.tail=null}else{s.head=i;i.data=c.slice(l)}break}++a}s.length-=a;return A}function copyFromBuffer(r,s){var i=u.allocUnsafe(r);var a=s.head;var A=1;a.data.copy(i);r-=a.data.length;while(a=a.next){var c=a.data;var l=r>c.length?c.length:r;c.copy(i,i.length-r,0,l);r-=l;if(r===0){if(l===c.length){++A;if(a.next)s.head=a.next;else s.head=s.tail=null}else{s.head=a;a.data=c.slice(l)}break}++A}s.length-=A;return i}function endReadable(r){var s=r._readableState;if(s.length>0)throw new Error('"endReadable()" called on non-empty stream');if(!s.endEmitted){s.ended=true;a.nextTick(endReadableNT,s,r)}}function endReadableNT(r,s){if(!r.endEmitted&&r.length===0){r.endEmitted=true;s.readable=false;s.emit("end")}}function indexOf(r,s){for(var i=0,a=r.length;i{"use strict";r.exports=Transform;var a=i(5706);var A=Object.create(i(95898));A.inherits=i(44124);A.inherits(Transform,a);function afterTransform(r,s){var i=this._transformState;i.transforming=false;var a=i.writecb;if(!a){return this.emit("error",new Error("write callback called multiple times"))}i.writechunk=null;i.writecb=null;if(s!=null)this.push(s);a(r);var A=this._readableState;A.reading=false;if(A.needReadable||A.length{"use strict";var a=i(47810);r.exports=Writable;function WriteReq(r,s,i){this.chunk=r;this.encoding=s;this.callback=i;this.next=null}function CorkedRequest(r){var s=this;this.next=null;this.entry=null;this.finish=function(){onCorkedFinish(s,r)}}var A=!process.browser&&["v0.10","v0.9."].indexOf(process.version.slice(0,5))>-1?setImmediate:a.nextTick;var c;Writable.WritableState=WritableState;var l=Object.create(i(95898));l.inherits=i(44124);var d={deprecate:i(65278)};var u=i(58745);var p=i(21867).Buffer;var g=(typeof global!=="undefined"?global:typeof window!=="undefined"?window:typeof self!=="undefined"?self:{}).Uint8Array||function(){};function _uint8ArrayToBuffer(r){return p.from(r)}function _isUint8Array(r){return p.isBuffer(r)||r instanceof g}var h=i(78999);l.inherits(Writable,u);function nop(){}function WritableState(r,s){c=c||i(5706);r=r||{};var a=s instanceof c;this.objectMode=!!r.objectMode;if(a)this.objectMode=this.objectMode||!!r.writableObjectMode;var A=r.highWaterMark;var l=r.writableHighWaterMark;var d=this.objectMode?16:16*1024;if(A||A===0)this.highWaterMark=A;else if(a&&(l||l===0))this.highWaterMark=l;else this.highWaterMark=d;this.highWaterMark=Math.floor(this.highWaterMark);this.finalCalled=false;this.needDrain=false;this.ending=false;this.ended=false;this.finished=false;this.destroyed=false;var u=r.decodeStrings===false;this.decodeStrings=!u;this.defaultEncoding=r.defaultEncoding||"utf8";this.length=0;this.writing=false;this.corked=0;this.sync=true;this.bufferProcessing=false;this.onwrite=function(r){onwrite(s,r)};this.writecb=null;this.writelen=0;this.bufferedRequest=null;this.lastBufferedRequest=null;this.pendingcb=0;this.prefinished=false;this.errorEmitted=false;this.bufferedRequestCount=0;this.corkedRequestsFree=new CorkedRequest(this)}WritableState.prototype.getBuffer=function getBuffer(){var r=this.bufferedRequest;var s=[];while(r){s.push(r);r=r.next}return s};(function(){try{Object.defineProperty(WritableState.prototype,"buffer",{get:d.deprecate((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer "+"instead.","DEP0003")})}catch(r){}})();var C;if(typeof Symbol==="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]==="function"){C=Function.prototype[Symbol.hasInstance];Object.defineProperty(Writable,Symbol.hasInstance,{value:function(r){if(C.call(this,r))return true;if(this!==Writable)return false;return r&&r._writableState instanceof WritableState}})}else{C=function(r){return r instanceof this}}function Writable(r){c=c||i(5706);if(!C.call(Writable,this)&&!(this instanceof c)){return new Writable(r)}this._writableState=new WritableState(r,this);this.writable=true;if(r){if(typeof r.write==="function")this._write=r.write;if(typeof r.writev==="function")this._writev=r.writev;if(typeof r.destroy==="function")this._destroy=r.destroy;if(typeof r.final==="function")this._final=r.final}u.call(this)}Writable.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))};function writeAfterEnd(r,s){var i=new Error("write after end");r.emit("error",i);a.nextTick(s,i)}function validChunk(r,s,i,A){var c=true;var l=false;if(i===null){l=new TypeError("May not write null values to stream")}else if(typeof i!=="string"&&i!==undefined&&!s.objectMode){l=new TypeError("Invalid non-string/buffer chunk")}if(l){r.emit("error",l);a.nextTick(A,l);c=false}return c}Writable.prototype.write=function(r,s,i){var a=this._writableState;var A=false;var c=!a.objectMode&&_isUint8Array(r);if(c&&!p.isBuffer(r)){r=_uint8ArrayToBuffer(r)}if(typeof s==="function"){i=s;s=null}if(c)s="buffer";else if(!s)s=a.defaultEncoding;if(typeof i!=="function")i=nop;if(a.ended)writeAfterEnd(this,i);else if(c||validChunk(this,a,r,i)){a.pendingcb++;A=writeOrBuffer(this,a,c,r,s,i)}return A};Writable.prototype.cork=function(){var r=this._writableState;r.corked++};Writable.prototype.uncork=function(){var r=this._writableState;if(r.corked){r.corked--;if(!r.writing&&!r.corked&&!r.bufferProcessing&&r.bufferedRequest)clearBuffer(this,r)}};Writable.prototype.setDefaultEncoding=function setDefaultEncoding(r){if(typeof r==="string")r=r.toLowerCase();if(!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((r+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+r);this._writableState.defaultEncoding=r;return this};function decodeChunk(r,s,i){if(!r.objectMode&&r.decodeStrings!==false&&typeof s==="string"){s=p.from(s,i)}return s}Object.defineProperty(Writable.prototype,"writableHighWaterMark",{enumerable:false,get:function(){return this._writableState.highWaterMark}});function writeOrBuffer(r,s,i,a,A,c){if(!i){var l=decodeChunk(s,a,A);if(a!==l){i=true;A="buffer";a=l}}var d=s.objectMode?1:a.length;s.length+=d;var u=s.length{"use strict";function _classCallCheck(r,s){if(!(r instanceof s)){throw new TypeError("Cannot call a class as a function")}}var a=i(21867).Buffer;var A=i(73837);function copyBuffer(r,s,i){r.copy(s,i)}r.exports=function(){function BufferList(){_classCallCheck(this,BufferList);this.head=null;this.tail=null;this.length=0}BufferList.prototype.push=function push(r){var s={data:r,next:null};if(this.length>0)this.tail.next=s;else this.head=s;this.tail=s;++this.length};BufferList.prototype.unshift=function unshift(r){var s={data:r,next:this.head};if(this.length===0)this.tail=s;this.head=s;++this.length};BufferList.prototype.shift=function shift(){if(this.length===0)return;var r=this.head.data;if(this.length===1)this.head=this.tail=null;else this.head=this.head.next;--this.length;return r};BufferList.prototype.clear=function clear(){this.head=this.tail=null;this.length=0};BufferList.prototype.join=function join(r){if(this.length===0)return"";var s=this.head;var i=""+s.data;while(s=s.next){i+=r+s.data}return i};BufferList.prototype.concat=function concat(r){if(this.length===0)return a.alloc(0);var s=a.allocUnsafe(r>>>0);var i=this.head;var A=0;while(i){copyBuffer(i.data,s,A);A+=i.data.length;i=i.next}return s};return BufferList}();if(A&&A.inspect&&A.inspect.custom){r.exports.prototype[A.inspect.custom]=function(){var r=A.inspect({length:this.length});return this.constructor.name+" "+r}}},78999:(r,s,i)=>{"use strict";var a=i(47810);function destroy(r,s){var i=this;var A=this._readableState&&this._readableState.destroyed;var c=this._writableState&&this._writableState.destroyed;if(A||c){if(s){s(r)}else if(r){if(!this._writableState){a.nextTick(emitErrorNT,this,r)}else if(!this._writableState.errorEmitted){this._writableState.errorEmitted=true;a.nextTick(emitErrorNT,this,r)}}return this}if(this._readableState){this._readableState.destroyed=true}if(this._writableState){this._writableState.destroyed=true}this._destroy(r||null,(function(r){if(!s&&r){if(!i._writableState){a.nextTick(emitErrorNT,i,r)}else if(!i._writableState.errorEmitted){i._writableState.errorEmitted=true;a.nextTick(emitErrorNT,i,r)}}else if(s){s(r)}}));return this}function undestroy(){if(this._readableState){this._readableState.destroyed=false;this._readableState.reading=false;this._readableState.ended=false;this._readableState.endEmitted=false}if(this._writableState){this._writableState.destroyed=false;this._writableState.ended=false;this._writableState.ending=false;this._writableState.finalCalled=false;this._writableState.prefinished=false;this._writableState.finished=false;this._writableState.errorEmitted=false}}function emitErrorNT(r,s){r.emit("error",s)}r.exports={destroy:destroy,undestroy:undestroy}},58745:(r,s,i)=>{r.exports=i(12781)},27818:(r,s,i)=>{r.exports=i(22399).PassThrough},22399:(r,s,i)=>{var a=i(12781);if(process.env.READABLE_STREAM==="disable"&&a){r.exports=a;s=r.exports=a.Readable;s.Readable=a.Readable;s.Writable=a.Writable;s.Duplex=a.Duplex;s.Transform=a.Transform;s.PassThrough=a.PassThrough;s.Stream=a}else{s=r.exports=i(99140);s.Stream=a||s;s.Readable=s;s.Writable=i(14960);s.Duplex=i(5706);s.Transform=i(75072);s.PassThrough=i(70982)}},35902:(r,s,i)=>{var a=i(11789),A=i(60712),c=i(45395),l=i(35232),d=i(47320);function Hash(r){var s=-1,i=r==null?0:r.length;this.clear();while(++s{var a=i(69792),A=i(97716),c=i(45789),l=i(59386),d=i(17399);function ListCache(r){var s=-1,i=r==null?0:r.length;this.clear();while(++s{var a=i(24479),A=i(89882);var c=a(A,"Map");r.exports=c},80938:(r,s,i)=>{var a=i(1610),A=i(56657),c=i(81372),l=i(40609),d=i(45582);function MapCache(r){var s=-1,i=r==null?0:r.length;this.clear();while(++s{var a=i(24479),A=i(89882);var c=a(A,"Set");r.exports=c},72158:(r,s,i)=>{var a=i(80938),A=i(16895),c=i(60804);function SetCache(r){var s=-1,i=r==null?0:r.length;this.__data__=new a;while(++s{var a=i(89882);var A=a.Symbol;r.exports=A},69647:r=>{function apply(r,s,i){switch(i.length){case 0:return r.call(s);case 1:return r.call(s,i[0]);case 2:return r.call(s,i[0],i[1]);case 3:return r.call(s,i[0],i[1],i[2])}return r.apply(s,i)}r.exports=apply},17183:(r,s,i)=>{var a=i(25425);function arrayIncludes(r,s){var i=r==null?0:r.length;return!!i&&a(r,s,0)>-1}r.exports=arrayIncludes},86732:r=>{function arrayIncludesWith(r,s,i){var a=-1,A=r==null?0:r.length;while(++a{var a=i(37765),A=i(78495),c=i(44869),l=i(74190),d=i(32936),u=i(2496);var p=Object.prototype;var g=p.hasOwnProperty;function arrayLikeKeys(r,s){var i=c(r),p=!i&&A(r),h=!i&&!p&&l(r),C=!i&&!p&&!h&&u(r),y=i||p||h||C,I=y?a(r.length,String):[],B=I.length;for(var b in r){if((s||g.call(r,b))&&!(y&&(b=="length"||h&&(b=="offset"||b=="parent")||C&&(b=="buffer"||b=="byteLength"||b=="byteOffset")||d(b,B)))){I.push(b)}}return I}r.exports=arrayLikeKeys},94356:r=>{function arrayMap(r,s){var i=-1,a=r==null?0:r.length,A=Array(a);while(++i{function arrayPush(r,s){var i=-1,a=s.length,A=r.length;while(++i{var a=i(61901);function assocIndexOf(r,s){var i=r.length;while(i--){if(a(r[i][0],s)){return i}}return-1}r.exports=assocIndexOf},21259:(r,s,i)=>{var a=i(72158),A=i(17183),c=i(86732),l=i(94356),d=i(59258),u=i(72675);var p=200;function baseDifference(r,s,i,g){var h=-1,C=A,y=true,I=r.length,B=[],b=s.length;if(!I){return B}if(i){s=l(s,d(i))}if(g){C=c;y=false}else if(s.length>=p){C=u;y=false;s=new a(s)}e:while(++h{function baseFindIndex(r,s,i,a){var A=r.length,c=i+(a?1:-1);while(a?c--:++c{var a=i(60082),A=i(9299);function baseFlatten(r,s,i,c,l){var d=-1,u=r.length;i||(i=A);l||(l=[]);while(++d0&&i(p)){if(s>1){baseFlatten(p,s-1,i,c,l)}else{a(l,p)}}else if(!c){l[l.length]=p}}return l}r.exports=baseFlatten},97497:(r,s,i)=>{var a=i(19213),A=i(80923),c=i(14200);var l="[object Null]",d="[object Undefined]";var u=a?a.toStringTag:undefined;function baseGetTag(r){if(r==null){return r===undefined?d:l}return u&&u in Object(r)?A(r):c(r)}r.exports=baseGetTag},25425:(r,s,i)=>{var a=i(87265),A=i(18048),c=i(58868);function baseIndexOf(r,s,i){return s===s?c(r,s,i):a(r,A,i)}r.exports=baseIndexOf},92177:(r,s,i)=>{var a=i(97497),A=i(85926);var c="[object Arguments]";function baseIsArguments(r){return A(r)&&a(r)==c}r.exports=baseIsArguments},18048:r=>{function baseIsNaN(r){return r!==r}r.exports=baseIsNaN},50411:(r,s,i)=>{var a=i(17799),A=i(29058),c=i(33334),l=i(96928);var d=/[\\^$.*+?()[\]{}|]/g;var u=/^\[object .+?Constructor\]$/;var p=Function.prototype,g=Object.prototype;var h=p.toString;var C=g.hasOwnProperty;var y=RegExp("^"+h.call(C).replace(d,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function baseIsNative(r){if(!c(r)||A(r)){return false}var s=a(r)?y:u;return s.test(l(r))}r.exports=baseIsNative},55581:(r,s,i)=>{var a=i(97497),A=i(64530),c=i(85926);var l="[object Arguments]",d="[object Array]",u="[object Boolean]",p="[object Date]",g="[object Error]",h="[object Function]",C="[object Map]",y="[object Number]",I="[object Object]",B="[object RegExp]",b="[object Set]",Q="[object String]",w="[object WeakMap]";var v="[object ArrayBuffer]",S="[object DataView]",R="[object Float32Array]",N="[object Float64Array]",x="[object Int8Array]",D="[object Int16Array]",k="[object Int32Array]",T="[object Uint8Array]",_="[object Uint8ClampedArray]",P="[object Uint16Array]",O="[object Uint32Array]";var L={};L[R]=L[N]=L[x]=L[D]=L[k]=L[T]=L[_]=L[P]=L[O]=true;L[l]=L[d]=L[v]=L[u]=L[S]=L[p]=L[g]=L[h]=L[C]=L[y]=L[I]=L[B]=L[b]=L[Q]=L[w]=false;function baseIsTypedArray(r){return c(r)&&A(r.length)&&!!L[a(r)]}r.exports=baseIsTypedArray},90297:(r,s,i)=>{var a=i(33334),A=i(60010),c=i(45383);var l=Object.prototype;var d=l.hasOwnProperty;function baseKeysIn(r){if(!a(r)){return c(r)}var s=A(r),i=[];for(var l in r){if(!(l=="constructor"&&(s||!d.call(r,l)))){i.push(l)}}return i}r.exports=baseKeysIn},42936:(r,s,i)=>{var a=i(57822),A=i(12417),c=i(98416);function baseRest(r,s){return c(A(r,s,a),r+"")}r.exports=baseRest},40979:(r,s,i)=>{var a=i(35946),A=i(416),c=i(57822);var l=!A?c:function(r,s){return A(r,"toString",{configurable:true,enumerable:false,value:a(s),writable:true})};r.exports=l},37765:r=>{function baseTimes(r,s){var i=-1,a=Array(r);while(++i{function baseUnary(r){return function(s){return r(s)}}r.exports=baseUnary},19036:(r,s,i)=>{var a=i(72158),A=i(17183),c=i(86732),l=i(72675),d=i(46505),u=i(49553);var p=200;function baseUniq(r,s,i){var g=-1,h=A,C=r.length,y=true,I=[],B=I;if(i){y=false;h=c}else if(C>=p){var b=s?null:d(r);if(b){return u(b)}y=false;h=l;B=new a}else{B=s?[]:I}e:while(++g{function cacheHas(r,s){return r.has(s)}r.exports=cacheHas},78380:(r,s,i)=>{var a=i(89882);var A=a["__core-js_shared__"];r.exports=A},46505:(r,s,i)=>{var a=i(35793),A=i(51901),c=i(49553);var l=1/0;var d=!(a&&1/c(new a([,-0]))[1]==l)?A:function(r){return new a(r)};r.exports=d},416:(r,s,i)=>{var a=i(24479);var A=function(){try{var r=a(Object,"defineProperty");r({},"",{});return r}catch(r){}}();r.exports=A},52085:r=>{var s=typeof global=="object"&&global&&global.Object===Object&&global;r.exports=s},69980:(r,s,i)=>{var a=i(13308);function getMapData(r,s){var i=r.__data__;return a(s)?i[typeof s=="string"?"string":"hash"]:i.map}r.exports=getMapData},24479:(r,s,i)=>{var a=i(50411),A=i(13542);function getNative(r,s){var i=A(r,s);return a(i)?i:undefined}r.exports=getNative},86271:(r,s,i)=>{var a=i(6320);var A=a(Object.getPrototypeOf,Object);r.exports=A},80923:(r,s,i)=>{var a=i(19213);var A=Object.prototype;var c=A.hasOwnProperty;var l=A.toString;var d=a?a.toStringTag:undefined;function getRawTag(r){var s=c.call(r,d),i=r[d];try{r[d]=undefined;var a=true}catch(r){}var A=l.call(r);if(a){if(s){r[d]=i}else{delete r[d]}}return A}r.exports=getRawTag},13542:r=>{function getValue(r,s){return r==null?undefined:r[s]}r.exports=getValue},11789:(r,s,i)=>{var a=i(93041);function hashClear(){this.__data__=a?a(null):{};this.size=0}r.exports=hashClear},60712:r=>{function hashDelete(r){var s=this.has(r)&&delete this.__data__[r];this.size-=s?1:0;return s}r.exports=hashDelete},45395:(r,s,i)=>{var a=i(93041);var A="__lodash_hash_undefined__";var c=Object.prototype;var l=c.hasOwnProperty;function hashGet(r){var s=this.__data__;if(a){var i=s[r];return i===A?undefined:i}return l.call(s,r)?s[r]:undefined}r.exports=hashGet},35232:(r,s,i)=>{var a=i(93041);var A=Object.prototype;var c=A.hasOwnProperty;function hashHas(r){var s=this.__data__;return a?s[r]!==undefined:c.call(s,r)}r.exports=hashHas},47320:(r,s,i)=>{var a=i(93041);var A="__lodash_hash_undefined__";function hashSet(r,s){var i=this.__data__;this.size+=this.has(r)?0:1;i[r]=a&&s===undefined?A:s;return this}r.exports=hashSet},9299:(r,s,i)=>{var a=i(19213),A=i(78495),c=i(44869);var l=a?a.isConcatSpreadable:undefined;function isFlattenable(r){return c(r)||A(r)||!!(l&&r&&r[l])}r.exports=isFlattenable},32936:r=>{var s=9007199254740991;var i=/^(?:0|[1-9]\d*)$/;function isIndex(r,a){var A=typeof r;a=a==null?s:a;return!!a&&(A=="number"||A!="symbol"&&i.test(r))&&(r>-1&&r%1==0&&r{var a=i(61901),A=i(18017),c=i(32936),l=i(33334);function isIterateeCall(r,s,i){if(!l(i)){return false}var d=typeof s;if(d=="number"?A(i)&&c(s,i.length):d=="string"&&s in i){return a(i[s],r)}return false}r.exports=isIterateeCall},13308:r=>{function isKeyable(r){var s=typeof r;return s=="string"||s=="number"||s=="symbol"||s=="boolean"?r!=="__proto__":r===null}r.exports=isKeyable},29058:(r,s,i)=>{var a=i(78380);var A=function(){var r=/[^.]+$/.exec(a&&a.keys&&a.keys.IE_PROTO||"");return r?"Symbol(src)_1."+r:""}();function isMasked(r){return!!A&&A in r}r.exports=isMasked},60010:r=>{var s=Object.prototype;function isPrototype(r){var i=r&&r.constructor,a=typeof i=="function"&&i.prototype||s;return r===a}r.exports=isPrototype},69792:r=>{function listCacheClear(){this.__data__=[];this.size=0}r.exports=listCacheClear},97716:(r,s,i)=>{var a=i(96752);var A=Array.prototype;var c=A.splice;function listCacheDelete(r){var s=this.__data__,i=a(s,r);if(i<0){return false}var A=s.length-1;if(i==A){s.pop()}else{c.call(s,i,1)}--this.size;return true}r.exports=listCacheDelete},45789:(r,s,i)=>{var a=i(96752);function listCacheGet(r){var s=this.__data__,i=a(s,r);return i<0?undefined:s[i][1]}r.exports=listCacheGet},59386:(r,s,i)=>{var a=i(96752);function listCacheHas(r){return a(this.__data__,r)>-1}r.exports=listCacheHas},17399:(r,s,i)=>{var a=i(96752);function listCacheSet(r,s){var i=this.__data__,A=a(i,r);if(A<0){++this.size;i.push([r,s])}else{i[A][1]=s}return this}r.exports=listCacheSet},1610:(r,s,i)=>{var a=i(35902),A=i(96608),c=i(80881);function mapCacheClear(){this.size=0;this.__data__={hash:new a,map:new(c||A),string:new a}}r.exports=mapCacheClear},56657:(r,s,i)=>{var a=i(69980);function mapCacheDelete(r){var s=a(this,r)["delete"](r);this.size-=s?1:0;return s}r.exports=mapCacheDelete},81372:(r,s,i)=>{var a=i(69980);function mapCacheGet(r){return a(this,r).get(r)}r.exports=mapCacheGet},40609:(r,s,i)=>{var a=i(69980);function mapCacheHas(r){return a(this,r).has(r)}r.exports=mapCacheHas},45582:(r,s,i)=>{var a=i(69980);function mapCacheSet(r,s){var i=a(this,r),A=i.size;i.set(r,s);this.size+=i.size==A?0:1;return this}r.exports=mapCacheSet},93041:(r,s,i)=>{var a=i(24479);var A=a(Object,"create");r.exports=A},45383:r=>{function nativeKeysIn(r){var s=[];if(r!=null){for(var i in Object(r)){s.push(i)}}return s}r.exports=nativeKeysIn},34643:(r,s,i)=>{r=i.nmd(r);var a=i(52085);var A=true&&s&&!s.nodeType&&s;var c=A&&"object"=="object"&&r&&!r.nodeType&&r;var l=c&&c.exports===A;var d=l&&a.process;var u=function(){try{var r=c&&c.require&&c.require("util").types;if(r){return r}return d&&d.binding&&d.binding("util")}catch(r){}}();r.exports=u},14200:r=>{var s=Object.prototype;var i=s.toString;function objectToString(r){return i.call(r)}r.exports=objectToString},6320:r=>{function overArg(r,s){return function(i){return r(s(i))}}r.exports=overArg},12417:(r,s,i)=>{var a=i(69647);var A=Math.max;function overRest(r,s,i){s=A(s===undefined?r.length-1:s,0);return function(){var c=arguments,l=-1,d=A(c.length-s,0),u=Array(d);while(++l{var a=i(52085);var A=typeof self=="object"&&self&&self.Object===Object&&self;var c=a||A||Function("return this")();r.exports=c},16895:r=>{var s="__lodash_hash_undefined__";function setCacheAdd(r){this.__data__.set(r,s);return this}r.exports=setCacheAdd},60804:r=>{function setCacheHas(r){return this.__data__.has(r)}r.exports=setCacheHas},49553:r=>{function setToArray(r){var s=-1,i=Array(r.size);r.forEach((function(r){i[++s]=r}));return i}r.exports=setToArray},98416:(r,s,i)=>{var a=i(40979),A=i(17882);var c=A(a);r.exports=c},17882:r=>{var s=800,i=16;var a=Date.now;function shortOut(r){var A=0,c=0;return function(){var l=a(),d=i-(l-c);c=l;if(d>0){if(++A>=s){return arguments[0]}}else{A=0}return r.apply(undefined,arguments)}}r.exports=shortOut},58868:r=>{function strictIndexOf(r,s,i){var a=i-1,A=r.length;while(++a{var s=Function.prototype;var i=s.toString;function toSource(r){if(r!=null){try{return i.call(r)}catch(r){}try{return r+""}catch(r){}}return""}r.exports=toSource},35946:r=>{function constant(r){return function(){return r}}r.exports=constant},3508:(r,s,i)=>{var a=i(42936),A=i(61901),c=i(8494),l=i(69109);var d=Object.prototype;var u=d.hasOwnProperty;var p=a((function(r,s){r=Object(r);var i=-1;var a=s.length;var p=a>2?s[2]:undefined;if(p&&c(s[0],s[1],p)){a=1}while(++i{var a=i(21259),A=i(69588),c=i(42936),l=i(87996);var d=c((function(r,s){return l(r)?a(r,A(s,1,l,true)):[]}));r.exports=d},61901:r=>{function eq(r,s){return r===s||r!==r&&s!==s}r.exports=eq},42394:(r,s,i)=>{var a=i(69588);function flatten(r){var s=r==null?0:r.length;return s?a(r,1):[]}r.exports=flatten},57822:r=>{function identity(r){return r}r.exports=identity},78495:(r,s,i)=>{var a=i(92177),A=i(85926);var c=Object.prototype;var l=c.hasOwnProperty;var d=c.propertyIsEnumerable;var u=a(function(){return arguments}())?a:function(r){return A(r)&&l.call(r,"callee")&&!d.call(r,"callee")};r.exports=u},44869:r=>{var s=Array.isArray;r.exports=s},18017:(r,s,i)=>{var a=i(17799),A=i(64530);function isArrayLike(r){return r!=null&&A(r.length)&&!a(r)}r.exports=isArrayLike},87996:(r,s,i)=>{var a=i(18017),A=i(85926);function isArrayLikeObject(r){return A(r)&&a(r)}r.exports=isArrayLikeObject},74190:(r,s,i)=>{r=i.nmd(r);var a=i(89882),A=i(67744);var c=true&&s&&!s.nodeType&&s;var l=c&&"object"=="object"&&r&&!r.nodeType&&r;var d=l&&l.exports===c;var u=d?a.Buffer:undefined;var p=u?u.isBuffer:undefined;var g=p||A;r.exports=g},17799:(r,s,i)=>{var a=i(97497),A=i(33334);var c="[object AsyncFunction]",l="[object Function]",d="[object GeneratorFunction]",u="[object Proxy]";function isFunction(r){if(!A(r)){return false}var s=a(r);return s==l||s==d||s==c||s==u}r.exports=isFunction},64530:r=>{var s=9007199254740991;function isLength(r){return typeof r=="number"&&r>-1&&r%1==0&&r<=s}r.exports=isLength},33334:r=>{function isObject(r){var s=typeof r;return r!=null&&(s=="object"||s=="function")}r.exports=isObject},85926:r=>{function isObjectLike(r){return r!=null&&typeof r=="object"}r.exports=isObjectLike},46169:(r,s,i)=>{var a=i(97497),A=i(86271),c=i(85926);var l="[object Object]";var d=Function.prototype,u=Object.prototype;var p=d.toString;var g=u.hasOwnProperty;var h=p.call(Object);function isPlainObject(r){if(!c(r)||a(r)!=l){return false}var s=A(r);if(s===null){return true}var i=g.call(s,"constructor")&&s.constructor;return typeof i=="function"&&i instanceof i&&p.call(i)==h}r.exports=isPlainObject},2496:(r,s,i)=>{var a=i(55581),A=i(59258),c=i(34643);var l=c&&c.isTypedArray;var d=l?A(l):a;r.exports=d},69109:(r,s,i)=>{var a=i(32237),A=i(90297),c=i(18017);function keysIn(r){return c(r)?a(r,true):A(r)}r.exports=keysIn},51901:r=>{function noop(){}r.exports=noop},67744:r=>{function stubFalse(){return false}r.exports=stubFalse},11620:(r,s,i)=>{var a=i(69588),A=i(42936),c=i(19036),l=i(87996);var d=A((function(r){return c(a(r,1,l,true))}));r.exports=d},47426:(r,s,i)=>{ +/*! + * mime-db + * Copyright(c) 2014 Jonathan Ong + * Copyright(c) 2015-2022 Douglas Christopher Wilson * MIT Licensed */ - - - -/** - * Module exports. - * @public - */ - -module.exports = bytes; -module.exports.format = format; -module.exports.parse = parse; - -/** - * Module variables. - * @private - */ - -var formatThousandsRegExp = /\B(?=(\d{3})+(?!\d))/g; - -var formatDecimalsRegExp = /(?:\.0*|(\.[^0]+)0+)$/; - -var map = { - b: 1, - kb: 1 << 10, - mb: 1 << 20, - gb: 1 << 30, - tb: Math.pow(1024, 4), - pb: Math.pow(1024, 5), -}; - -var parseRegExp = /^((-|\+)?(\d+(?:\.\d+)?)) *(kb|mb|gb|tb|pb)$/i; - -/** - * Convert the given value in bytes into a string or parse to string to an integer in bytes. - * - * @param {string|number} value - * @param {{ - * case: [string], - * decimalPlaces: [number] - * fixedDecimals: [boolean] - * thousandsSeparator: [string] - * unitSeparator: [string] - * }} [options] bytes options. - * - * @returns {string|number|null} - */ - -function bytes(value, options) { - if (typeof value === 'string') { - return parse(value); - } - - if (typeof value === 'number') { - return format(value, options); - } - - return null; -} - -/** - * Format the given value in bytes into a string. - * - * If the value is negative, it is kept as such. If it is a float, - * it is rounded. - * - * @param {number} value - * @param {object} [options] - * @param {number} [options.decimalPlaces=2] - * @param {number} [options.fixedDecimals=false] - * @param {string} [options.thousandsSeparator=] - * @param {string} [options.unit=] - * @param {string} [options.unitSeparator=] - * - * @returns {string|null} - * @public - */ - -function format(value, options) { - if (!Number.isFinite(value)) { - return null; - } - - var mag = Math.abs(value); - var thousandsSeparator = (options && options.thousandsSeparator) || ''; - var unitSeparator = (options && options.unitSeparator) || ''; - var decimalPlaces = (options && options.decimalPlaces !== undefined) ? options.decimalPlaces : 2; - var fixedDecimals = Boolean(options && options.fixedDecimals); - var unit = (options && options.unit) || ''; - - if (!unit || !map[unit.toLowerCase()]) { - if (mag >= map.pb) { - unit = 'PB'; - } else if (mag >= map.tb) { - unit = 'TB'; - } else if (mag >= map.gb) { - unit = 'GB'; - } else if (mag >= map.mb) { - unit = 'MB'; - } else if (mag >= map.kb) { - unit = 'KB'; - } else { - unit = 'B'; - } - } - - var val = value / map[unit.toLowerCase()]; - var str = val.toFixed(decimalPlaces); - - if (!fixedDecimals) { - str = str.replace(formatDecimalsRegExp, '$1'); - } - - if (thousandsSeparator) { - str = str.split('.').map(function (s, i) { - return i === 0 - ? s.replace(formatThousandsRegExp, thousandsSeparator) - : s - }).join('.'); - } - - return str + unitSeparator + unit; -} - -/** - * Parse the string value into an integer in bytes. - * - * If no unit is given, it is assumed the value is in bytes. - * - * @param {number|string} val - * - * @returns {number|null} - * @public - */ - -function parse(val) { - if (typeof val === 'number' && !isNaN(val)) { - return val; - } - - if (typeof val !== 'string') { - return null; - } - - // Test if the string passed is valid - var results = parseRegExp.exec(val); - var floatValue; - var unit = 'b'; - - if (!results) { - // Nothing could be extracted from the given string - floatValue = parseInt(val, 10); - unit = 'b' - } else { - // Retrieve the value and the unit - floatValue = parseFloat(results[1]); - unit = results[4].toLowerCase(); - } - - if (isNaN(floatValue)) { - return null; - } - - return Math.floor(map[unit] * floatValue); -} - - -/***/ }), - -/***/ 95898: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -// Copyright Joyent, Inc. and other Node contributors. -// -// Permission is hereby granted, free of charge, to any person obtaining a -// copy of this software and associated documentation files (the -// "Software"), to deal in the Software without restriction, including -// without limitation the rights to use, copy, modify, merge, publish, -// distribute, sublicense, and/or sell copies of the Software, and to permit -// persons to whom the Software is furnished to do so, subject to the -// following conditions: -// -// The above copyright notice and this permission notice shall be included -// in all copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS -// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN -// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, -// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR -// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE -// USE OR OTHER DEALINGS IN THE SOFTWARE. - -// NOTE: These type checking functions intentionally don't use `instanceof` -// because it is fragile and can be easily faked with `Object.create()`. - -function isArray(arg) { - if (Array.isArray) { - return Array.isArray(arg); - } - return objectToString(arg) === '[object Array]'; -} -exports.isArray = isArray; - -function isBoolean(arg) { - return typeof arg === 'boolean'; -} -exports.isBoolean = isBoolean; - -function isNull(arg) { - return arg === null; -} -exports.isNull = isNull; - -function isNullOrUndefined(arg) { - return arg == null; -} -exports.isNullOrUndefined = isNullOrUndefined; - -function isNumber(arg) { - return typeof arg === 'number'; -} -exports.isNumber = isNumber; - -function isString(arg) { - return typeof arg === 'string'; -} -exports.isString = isString; - -function isSymbol(arg) { - return typeof arg === 'symbol'; -} -exports.isSymbol = isSymbol; - -function isUndefined(arg) { - return arg === void 0; -} -exports.isUndefined = isUndefined; - -function isRegExp(re) { - return objectToString(re) === '[object RegExp]'; -} -exports.isRegExp = isRegExp; - -function isObject(arg) { - return typeof arg === 'object' && arg !== null; -} -exports.isObject = isObject; - -function isDate(d) { - return objectToString(d) === '[object Date]'; -} -exports.isDate = isDate; - -function isError(e) { - return (objectToString(e) === '[object Error]' || e instanceof Error); -} -exports.isError = isError; - -function isFunction(arg) { - return typeof arg === 'function'; -} -exports.isFunction = isFunction; - -function isPrimitive(arg) { - return arg === null || - typeof arg === 'boolean' || - typeof arg === 'number' || - typeof arg === 'string' || - typeof arg === 'symbol' || // ES6 symbol - typeof arg === 'undefined'; -} -exports.isPrimitive = isPrimitive; - -exports.isBuffer = __nccwpck_require__(64293).Buffer.isBuffer; - -function objectToString(o) { - return Object.prototype.toString.call(o); -} - - -/***/ }), - -/***/ 92371: -/***/ ((module) => { - -"use strict"; - -/** - * Returns a `Buffer` instance from the given data URI `uri`. - * - * @param {String} uri Data URI to turn into a Buffer instance - * @return {Buffer} Buffer instance from Data URI - * @api public - */ -function dataUriToBuffer(uri) { - if (!/^data:/i.test(uri)) { - throw new TypeError('`uri` does not appear to be a Data URI (must begin with "data:")'); - } - // strip newlines - uri = uri.replace(/\r?\n/g, ''); - // split the URI up into the "metadata" and the "data" portions - const firstComma = uri.indexOf(','); - if (firstComma === -1 || firstComma <= 4) { - throw new TypeError('malformed data: URI'); - } - // remove the "data:" scheme and parse the metadata - const meta = uri.substring(5, firstComma).split(';'); - let charset = ''; - let base64 = false; - const type = meta[0] || 'text/plain'; - let typeFull = type; - for (let i = 1; i < meta.length; i++) { - if (meta[i] === 'base64') { - base64 = true; - } - else { - typeFull += `;${meta[i]}`; - if (meta[i].indexOf('charset=') === 0) { - charset = meta[i].substring(8); - } - } - } - // defaults to US-ASCII only if type is not provided - if (!meta[0] && !charset.length) { - typeFull += ';charset=US-ASCII'; - charset = 'US-ASCII'; - } - // get the encoded data portion and decode URI-encoded chars - const encoding = base64 ? 'base64' : 'ascii'; - const data = unescape(uri.substring(firstComma + 1)); - const buffer = Buffer.from(data, encoding); - // set `.type` and `.typeFull` properties to MIME type - buffer.type = type; - buffer.typeFull = typeFull; - // set the `.charset` property - buffer.charset = charset; - return buffer; -} -module.exports = dataUriToBuffer; -//# sourceMappingURL=index.js.map - -/***/ }), - -/***/ 28222: -/***/ ((module, exports, __nccwpck_require__) => { - -/* eslint-env browser */ - -/** - * This is the web browser implementation of `debug()`. - */ - -exports.formatArgs = formatArgs; -exports.save = save; -exports.load = load; -exports.useColors = useColors; -exports.storage = localstorage(); -exports.destroy = (() => { - let warned = false; - - return () => { - if (!warned) { - warned = 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`.'); - } - }; -})(); - -/** - * Colors. - */ - -exports.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' -]; - -/** - * Currently only WebKit-based Web Inspectors, Firefox >= v31, - * and the Firebug extension (any Firefox version) are known - * to support "%c" CSS customizations. - * - * TODO: add a `localStorage` variable to explicitly enable/disable colors - */ - -// eslint-disable-next-line complexity -function useColors() { - // NB: In an Electron preload script, document will be defined but not fully - // initialized. Since we know we're in Chrome, we'll just detect this case - // explicitly - if (typeof window !== 'undefined' && window.process && (window.process.type === 'renderer' || window.process.__nwjs)) { - return true; - } - - // Internet Explorer and Edge do not support colors. - if (typeof navigator !== 'undefined' && navigator.userAgent && navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)) { - return false; - } - - // Is webkit? http://stackoverflow.com/a/16459606/376773 - // document is undefined in react-native: https://github.com/facebook/react-native/pull/1632 - return (typeof document !== 'undefined' && document.documentElement && document.documentElement.style && document.documentElement.style.WebkitAppearance) || - // Is firebug? http://stackoverflow.com/a/398120/376773 - (typeof window !== 'undefined' && window.console && (window.console.firebug || (window.console.exception && window.console.table))) || - // Is firefox >= v31? - // https://developer.mozilla.org/en-US/docs/Tools/Web_Console#Styling_messages - (typeof navigator !== 'undefined' && navigator.userAgent && navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/) && parseInt(RegExp.$1, 10) >= 31) || - // Double check webkit in userAgent just in case we are in a worker - (typeof navigator !== 'undefined' && navigator.userAgent && navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)); -} - -/** - * Colorize log arguments if enabled. - * - * @api public - */ - -function formatArgs(args) { - args[0] = (this.useColors ? '%c' : '') + - this.namespace + - (this.useColors ? ' %c' : ' ') + - args[0] + - (this.useColors ? '%c ' : ' ') + - '+' + module.exports.humanize(this.diff); - - if (!this.useColors) { - return; - } - - const c = 'color: ' + this.color; - args.splice(1, 0, c, 'color: inherit'); - - // The final "%c" is somewhat tricky, because there could be other - // arguments passed either before or after the %c, so we need to - // figure out the correct index to insert the CSS into - let index = 0; - let lastC = 0; - args[0].replace(/%[a-zA-Z%]/g, match => { - if (match === '%%') { - return; - } - index++; - if (match === '%c') { - // We only are interested in the *last* %c - // (the user may have provided their own) - lastC = index; - } - }); - - args.splice(lastC, 0, c); -} - -/** - * Invokes `console.debug()` when available. - * No-op when `console.debug` is not a "function". - * If `console.debug` is not available, falls back - * to `console.log`. - * - * @api public - */ -exports.log = console.debug || console.log || (() => {}); - -/** - * Save `namespaces`. - * - * @param {String} namespaces - * @api private - */ -function save(namespaces) { - try { - if (namespaces) { - exports.storage.setItem('debug', namespaces); - } else { - exports.storage.removeItem('debug'); - } - } catch (error) { - // Swallow - // XXX (@Qix-) should we be logging these? - } -} - -/** - * Load `namespaces`. - * - * @return {String} returns the previously persisted debug modes - * @api private - */ -function load() { - let r; - try { - r = exports.storage.getItem('debug'); - } catch (error) { - // Swallow - // XXX (@Qix-) should we be logging these? - } - - // If debug isn't set in LS, and we're in Electron, try to load $DEBUG - if (!r && typeof process !== 'undefined' && 'env' in process) { - r = process.env.DEBUG; - } - - return r; -} - -/** - * Localstorage attempts to return the localstorage. - * - * This is necessary because safari throws - * when a user disables cookies/localstorage - * and you attempt to access it. - * - * @return {LocalStorage} - * @api private - */ - -function localstorage() { - try { - // TVMLKit (Apple TV JS Runtime) does not have a window object, just localStorage in the global context - // The Browser also has localStorage in the global context. - return localStorage; - } catch (error) { - // Swallow - // XXX (@Qix-) should we be logging these? - } -} - -module.exports = __nccwpck_require__(46243)(exports); - -const {formatters} = module.exports; - -/** - * Map %j to `JSON.stringify()`, since no Web Inspectors do that by default. - */ - -formatters.j = function (v) { - try { - return JSON.stringify(v); - } catch (error) { - return '[UnexpectedJSONParseError]: ' + error.message; - } -}; - - -/***/ }), - -/***/ 46243: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - - -/** - * This is the common logic for both the Node.js and web browser - * implementations of `debug()`. - */ - -function setup(env) { - createDebug.debug = createDebug; - createDebug.default = createDebug; - createDebug.coerce = coerce; - createDebug.disable = disable; - createDebug.enable = enable; - createDebug.enabled = enabled; - createDebug.humanize = __nccwpck_require__(80900); - createDebug.destroy = destroy; - - Object.keys(env).forEach(key => { - createDebug[key] = env[key]; - }); - - /** - * The currently active debug mode names, and names to skip. - */ - - createDebug.names = []; - createDebug.skips = []; - - /** - * Map of special "%n" handling functions, for the debug "format" argument. - * - * Valid key names are a single, lower or upper-case letter, i.e. "n" and "N". - */ - createDebug.formatters = {}; - - /** - * Selects a color for a debug namespace - * @param {String} namespace The namespace string for the for the debug instance to be colored - * @return {Number|String} An ANSI color code for the given namespace - * @api private - */ - function selectColor(namespace) { - let hash = 0; - - for (let i = 0; i < namespace.length; i++) { - hash = ((hash << 5) - hash) + namespace.charCodeAt(i); - hash |= 0; // Convert to 32bit integer - } - - return createDebug.colors[Math.abs(hash) % createDebug.colors.length]; - } - createDebug.selectColor = selectColor; - - /** - * Create a debugger with the given `namespace`. - * - * @param {String} namespace - * @return {Function} - * @api public - */ - function createDebug(namespace) { - let prevTime; - let enableOverride = null; - let namespacesCache; - let enabledCache; - - function debug(...args) { - // Disabled? - if (!debug.enabled) { - return; - } - - const self = debug; - - // Set `diff` timestamp - const curr = Number(new Date()); - const ms = curr - (prevTime || curr); - self.diff = ms; - self.prev = prevTime; - self.curr = curr; - prevTime = curr; - - args[0] = createDebug.coerce(args[0]); - - if (typeof args[0] !== 'string') { - // Anything else let's inspect with %O - args.unshift('%O'); - } - - // Apply any `formatters` transformations - let index = 0; - args[0] = args[0].replace(/%([a-zA-Z%])/g, (match, format) => { - // If we encounter an escaped % then don't increase the array index - if (match === '%%') { - return '%'; - } - index++; - const formatter = createDebug.formatters[format]; - if (typeof formatter === 'function') { - const val = args[index]; - match = formatter.call(self, val); - - // Now we need to remove `args[index]` since it's inlined in the `format` - args.splice(index, 1); - index--; - } - return match; - }); - - // Apply env-specific formatting (colors, etc.) - createDebug.formatArgs.call(self, args); - - const logFn = self.log || createDebug.log; - logFn.apply(self, args); - } - - debug.namespace = namespace; - debug.useColors = createDebug.useColors(); - debug.color = createDebug.selectColor(namespace); - debug.extend = extend; - debug.destroy = createDebug.destroy; // XXX Temporary. Will be removed in the next major release. - - Object.defineProperty(debug, 'enabled', { - enumerable: true, - configurable: false, - get: () => { - if (enableOverride !== null) { - return enableOverride; - } - if (namespacesCache !== createDebug.namespaces) { - namespacesCache = createDebug.namespaces; - enabledCache = createDebug.enabled(namespace); - } - - return enabledCache; - }, - set: v => { - enableOverride = v; - } - }); - - // Env-specific initialization logic for debug instances - if (typeof createDebug.init === 'function') { - createDebug.init(debug); - } - - return debug; - } - - function extend(namespace, delimiter) { - const newDebug = createDebug(this.namespace + (typeof delimiter === 'undefined' ? ':' : delimiter) + namespace); - newDebug.log = this.log; - return newDebug; - } - - /** - * Enables a debug mode by namespaces. This can include modes - * separated by a colon and wildcards. - * - * @param {String} namespaces - * @api public - */ - function enable(namespaces) { - createDebug.save(namespaces); - createDebug.namespaces = namespaces; - - createDebug.names = []; - createDebug.skips = []; - - let i; - const split = (typeof namespaces === 'string' ? namespaces : '').split(/[\s,]+/); - const len = split.length; - - for (i = 0; i < len; i++) { - if (!split[i]) { - // ignore empty strings - continue; - } - - namespaces = split[i].replace(/\*/g, '.*?'); - - if (namespaces[0] === '-') { - createDebug.skips.push(new RegExp('^' + namespaces.substr(1) + '$')); - } else { - createDebug.names.push(new RegExp('^' + namespaces + '$')); - } - } - } - - /** - * Disable debug output. - * - * @return {String} namespaces - * @api public - */ - function disable() { - const namespaces = [ - ...createDebug.names.map(toNamespace), - ...createDebug.skips.map(toNamespace).map(namespace => '-' + namespace) - ].join(','); - createDebug.enable(''); - return namespaces; - } - - /** - * Returns true if the given mode name is enabled, false otherwise. - * - * @param {String} name - * @return {Boolean} - * @api public - */ - function enabled(name) { - if (name[name.length - 1] === '*') { - return true; - } - - let i; - let len; - - for (i = 0, len = createDebug.skips.length; i < len; i++) { - if (createDebug.skips[i].test(name)) { - return false; - } - } - - for (i = 0, len = createDebug.names.length; i < len; i++) { - if (createDebug.names[i].test(name)) { - return true; - } - } - - return false; - } - - /** - * Convert regexp to namespace - * - * @param {RegExp} regxep - * @return {String} namespace - * @api private - */ - function toNamespace(regexp) { - return regexp.toString() - .substring(2, regexp.toString().length - 2) - .replace(/\.\*\?$/, '*'); - } - - /** - * Coerce `val`. - * - * @param {Mixed} val - * @return {Mixed} - * @api private - */ - function coerce(val) { - if (val instanceof Error) { - return val.stack || val.message; - } - return val; - } - - /** - * XXX DO NOT USE. This is a temporary stub function. - * XXX It WILL be removed in the next major release. - */ - 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; -} - -module.exports = setup; - - -/***/ }), - -/***/ 38237: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -/** - * Detect Electron renderer / nwjs process, which is node, but we should - * treat as a browser. - */ - -if (typeof process === 'undefined' || process.type === 'renderer' || process.browser === true || process.__nwjs) { - module.exports = __nccwpck_require__(28222); -} else { - module.exports = __nccwpck_require__(35332); -} - - -/***/ }), - -/***/ 35332: -/***/ ((module, exports, __nccwpck_require__) => { - -/** - * Module dependencies. - */ - -const tty = __nccwpck_require__(33867); -const util = __nccwpck_require__(31669); - -/** - * This is the Node.js implementation of `debug()`. - */ - -exports.init = init; -exports.log = log; -exports.formatArgs = formatArgs; -exports.save = save; -exports.load = load; -exports.useColors = useColors; -exports.destroy = util.deprecate( - () => {}, - 'Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.' -); - -/** - * Colors. - */ - -exports.colors = [6, 2, 3, 4, 5, 1]; - -try { - // Optional dependency (as in, doesn't need to be installed, NOT like optionalDependencies in package.json) - // eslint-disable-next-line import/no-extraneous-dependencies - const supportsColor = __nccwpck_require__(59318); - - if (supportsColor && (supportsColor.stderr || supportsColor).level >= 2) { - exports.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 (error) { - // Swallow - we only care if `supports-color` is available; it doesn't have to be. -} - -/** - * Build up the default `inspectOpts` object from the environment variables. - * - * $ DEBUG_COLORS=no DEBUG_DEPTH=10 DEBUG_SHOW_HIDDEN=enabled node script.js - */ - -exports.inspectOpts = Object.keys(process.env).filter(key => { - return /^debug_/i.test(key); -}).reduce((obj, key) => { - // Camel-case - const prop = key - .substring(6) - .toLowerCase() - .replace(/_([a-z])/g, (_, k) => { - return k.toUpperCase(); - }); - - // Coerce string value into JS value - let val = process.env[key]; - if (/^(yes|on|true|enabled)$/i.test(val)) { - val = true; - } else if (/^(no|off|false|disabled)$/i.test(val)) { - val = false; - } else if (val === 'null') { - val = null; - } else { - val = Number(val); - } - - obj[prop] = val; - return obj; -}, {}); - -/** - * Is stdout a TTY? Colored output is enabled when `true`. - */ - -function useColors() { - return 'colors' in exports.inspectOpts ? - Boolean(exports.inspectOpts.colors) : - tty.isatty(process.stderr.fd); -} - -/** - * Adds ANSI color escape codes if enabled. - * - * @api public - */ - -function formatArgs(args) { - const {namespace: name, useColors} = this; - - if (useColors) { - const c = this.color; - const colorCode = '\u001B[3' + (c < 8 ? c : '8;5;' + c); - const prefix = ` ${colorCode};1m${name} \u001B[0m`; - - args[0] = prefix + args[0].split('\n').join('\n' + prefix); - args.push(colorCode + 'm+' + module.exports.humanize(this.diff) + '\u001B[0m'); - } else { - args[0] = getDate() + name + ' ' + args[0]; - } -} - -function getDate() { - if (exports.inspectOpts.hideDate) { - return ''; - } - return new Date().toISOString() + ' '; -} - -/** - * Invokes `util.format()` with the specified arguments and writes to stderr. - */ - -function log(...args) { - return process.stderr.write(util.format(...args) + '\n'); -} - -/** - * Save `namespaces`. - * - * @param {String} namespaces - * @api private - */ -function save(namespaces) { - if (namespaces) { - process.env.DEBUG = namespaces; - } else { - // If you set a process.env field to null or undefined, it gets cast to the - // string 'null' or 'undefined'. Just delete instead. - delete process.env.DEBUG; - } -} - -/** - * Load `namespaces`. - * - * @return {String} returns the previously persisted debug modes - * @api private - */ - -function load() { - return process.env.DEBUG; -} - -/** - * Init logic for `debug` instances. - * - * Create a new `inspectOpts` object in case `useColors` is set - * differently for a particular `debug` instance. - */ - -function init(debug) { - debug.inspectOpts = {}; - - const keys = Object.keys(exports.inspectOpts); - for (let i = 0; i < keys.length; i++) { - debug.inspectOpts[keys[i]] = exports.inspectOpts[keys[i]]; - } -} - -module.exports = __nccwpck_require__(46243)(exports); - -const {formatters} = module.exports; - -/** - * Map %o to `util.inspect()`, all on a single line. - */ - -formatters.o = function (v) { - this.inspectOpts.colors = this.useColors; - return util.inspect(v, this.inspectOpts) - .split('\n') - .map(str => str.trim()) - .join(' '); -}; - -/** - * Map %O to `util.inspect()`, allowing multiple lines if needed. - */ - -formatters.O = function (v) { - this.inspectOpts.colors = this.useColors; - return util.inspect(v, this.inspectOpts); -}; - - -/***/ }), - -/***/ 64033: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -"use strict"; - -const util_1 = __nccwpck_require__(31669); -const escodegen_1 = __nccwpck_require__(7991); -const esprima_1 = __nccwpck_require__(78823); -const ast_types_1 = __nccwpck_require__(27012); -const vm2_1 = __nccwpck_require__(69440); -/** - * Compiles sync JavaScript code into JavaScript with async Functions. - * - * @param {String} code JavaScript string to convert - * @param {Array} names Array of function names to add `await` operators to - * @return {String} Converted JavaScript string with async/await injected - * @api public - */ -function degenerator(code, _names) { - if (!Array.isArray(_names)) { - throw new TypeError('an array of async function "names" is required'); - } - // Duplicate the `names` array since it's rude to augment the user args - const names = _names.slice(0); - const ast = esprima_1.parseScript(code); - // First pass is to find the `function` nodes and turn them into async or - // generator functions only if their body includes `CallExpressions` to - // function in `names`. We also add the names of the functions to the `names` - // array. We'll iterate several time, as every iteration might add new items - // to the `names` array, until no new names were added in the iteration. - let lastNamesLength = 0; - do { - lastNamesLength = names.length; - ast_types_1.visit(ast, { - visitVariableDeclaration(path) { - if (path.node.declarations) { - for (let i = 0; i < path.node.declarations.length; i++) { - const declaration = path.node.declarations[i]; - if (ast_types_1.namedTypes.VariableDeclarator.check(declaration) && - ast_types_1.namedTypes.Identifier.check(declaration.init) && - ast_types_1.namedTypes.Identifier.check(declaration.id) && - checkName(declaration.init.name, names) && - !checkName(declaration.id.name, names)) { - names.push(declaration.id.name); - } - } - } - return false; - }, - visitAssignmentExpression(path) { - if (ast_types_1.namedTypes.Identifier.check(path.node.left) && - ast_types_1.namedTypes.Identifier.check(path.node.right) && - checkName(path.node.right.name, names) && - !checkName(path.node.left.name, names)) { - names.push(path.node.left.name); - } - return false; - }, - visitFunction(path) { - if (path.node.id) { - let shouldDegenerate = false; - ast_types_1.visit(path.node, { - visitCallExpression(path) { - if (checkNames(path.node, names)) { - shouldDegenerate = true; - } - return false; - }, - }); - if (!shouldDegenerate) { - return false; - } - // Got a "function" expression/statement, - // convert it into an async function - path.node.async = true; - // Add function name to `names` array - if (!checkName(path.node.id.name, names)) { - names.push(path.node.id.name); - } - } - this.traverse(path); - }, - }); - } while (lastNamesLength !== names.length); - // Second pass is for adding `await`/`yield` statements to any function - // invocations that match the given `names` array. - ast_types_1.visit(ast, { - visitCallExpression(path) { - if (checkNames(path.node, names)) { - // A "function invocation" expression, - // we need to inject a `AwaitExpression`/`YieldExpression` - const delegate = false; - const { name, parent: { node: pNode }, } = path; - const expr = ast_types_1.builders.awaitExpression(path.node, delegate); - if (ast_types_1.namedTypes.CallExpression.check(pNode)) { - pNode.arguments[name] = expr; - } - else { - pNode[name] = expr; - } - } - this.traverse(path); - }, - }); - return escodegen_1.generate(ast); -} -(function (degenerator) { - function compile(code, returnName, names, options = {}) { - const compiled = degenerator(code, names); - const vm = new vm2_1.VM(options); - const script = new vm2_1.VMScript(`${compiled};${returnName}`, { - filename: options.filename, - }); - const fn = vm.run(script); - if (typeof fn !== 'function') { - throw new Error(`Expected a "function" to be returned for \`${returnName}\`, but got "${typeof fn}"`); - } - const r = function (...args) { - var _a; - try { - const p = fn.apply(this, args); - if (typeof ((_a = p) === null || _a === void 0 ? void 0 : _a.then) === 'function') { - return p; - } - return Promise.resolve(p); - } - catch (err) { - return Promise.reject(err); - } - }; - Object.defineProperty(r, 'toString', { - value: fn.toString.bind(fn), - enumerable: false, - }); - return r; - } - degenerator.compile = compile; -})(degenerator || (degenerator = {})); -/** - * Returns `true` if `node` has a matching name to one of the entries in the - * `names` array. - * - * @param {types.Node} node - * @param {Array} names Array of function names to return true for - * @return {Boolean} - * @api private - */ -function checkNames({ callee }, names) { - let name; - if (ast_types_1.namedTypes.Identifier.check(callee)) { - name = callee.name; - } - else if (ast_types_1.namedTypes.MemberExpression.check(callee)) { - if (ast_types_1.namedTypes.Identifier.check(callee.object) && - ast_types_1.namedTypes.Identifier.check(callee.property)) { - name = `${callee.object.name}.${callee.property.name}`; - } - else { - return false; - } - } - else if (ast_types_1.namedTypes.FunctionExpression.check(callee)) { - if (callee.id) { - name = callee.id.name; - } - else { - return false; - } - } - else { - throw new Error(`Don't know how to get name for: ${callee.type}`); - } - return checkName(name, names); -} -function checkName(name, names) { - // now that we have the `name`, check if any entries match in the `names` array - for (let i = 0; i < names.length; i++) { - const n = names[i]; - if (util_1.isRegExp(n)) { - if (n.test(name)) { - return true; - } - } - else if (name === n) { - return true; - } - } - return false; -} -module.exports = degenerator; -//# sourceMappingURL=index.js.map - -/***/ }), - -/***/ 18883: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - +r.exports=i(53765)},43583:(r,s,i)=>{"use strict"; /*! - * depd - * Copyright(c) 2014-2017 Douglas Christopher Wilson - * MIT Licensed - */ - -/** - * Module dependencies. - */ - -var callSiteToString = __nccwpck_require__(69829).callSiteToString -var eventListenerCount = __nccwpck_require__(69829).eventListenerCount -var relative = __nccwpck_require__(85622).relative - -/** - * Module exports. - */ - -module.exports = depd - -/** - * Get the path to base files on. - */ - -var basePath = process.cwd() - -/** - * Determine if namespace is contained in the string. - */ - -function containsNamespace (str, namespace) { - var vals = str.split(/[ ,]+/) - var ns = String(namespace).toLowerCase() - - for (var i = 0; i < vals.length; i++) { - var val = vals[i] - - // namespace contained - if (val && (val === '*' || val.toLowerCase() === ns)) { - return true - } - } - - return false -} - -/** - * Convert a data descriptor to accessor descriptor. - */ - -function convertDataDescriptorToAccessor (obj, prop, message) { - var descriptor = Object.getOwnPropertyDescriptor(obj, prop) - var value = descriptor.value - - descriptor.get = function getter () { return value } - - if (descriptor.writable) { - descriptor.set = function setter (val) { return (value = val) } - } - - delete descriptor.value - delete descriptor.writable - - Object.defineProperty(obj, prop, descriptor) - - return descriptor -} - -/** - * Create arguments string to keep arity. - */ - -function createArgumentsString (arity) { - var str = '' - - for (var i = 0; i < arity; i++) { - str += ', arg' + i - } - - return str.substr(2) -} - -/** - * Create stack string from stack. - */ - -function createStackString (stack) { - var str = this.name + ': ' + this.namespace - - if (this.message) { - str += ' deprecated ' + this.message - } - - for (var i = 0; i < stack.length; i++) { - str += '\n at ' + callSiteToString(stack[i]) - } - - return str -} - -/** - * Create deprecate for namespace in caller. - */ - -function depd (namespace) { - if (!namespace) { - throw new TypeError('argument namespace is required') - } - - var stack = getStack() - var site = callSiteLocation(stack[1]) - var file = site[0] - - function deprecate (message) { - // call to self as log - log.call(deprecate, message) - } - - deprecate._file = file - deprecate._ignored = isignored(namespace) - deprecate._namespace = namespace - deprecate._traced = istraced(namespace) - deprecate._warned = Object.create(null) - - deprecate.function = wrapfunction - deprecate.property = wrapproperty - - return deprecate -} - -/** - * Determine if namespace is ignored. - */ - -function isignored (namespace) { - /* istanbul ignore next: tested in a child processs */ - if (process.noDeprecation) { - // --no-deprecation support - return true - } - - var str = process.env.NO_DEPRECATION || '' - - // namespace ignored - return containsNamespace(str, namespace) -} - -/** - * Determine if namespace is traced. - */ - -function istraced (namespace) { - /* istanbul ignore next: tested in a child processs */ - if (process.traceDeprecation) { - // --trace-deprecation support - return true - } - - var str = process.env.TRACE_DEPRECATION || '' - - // namespace traced - return containsNamespace(str, namespace) -} - -/** - * Display deprecation message. - */ - -function log (message, site) { - var haslisteners = eventListenerCount(process, 'deprecation') !== 0 - - // abort early if no destination - if (!haslisteners && this._ignored) { - return - } - - var caller - var callFile - var callSite - var depSite - var i = 0 - var seen = false - var stack = getStack() - var file = this._file - - if (site) { - // provided site - depSite = site - callSite = callSiteLocation(stack[1]) - callSite.name = depSite.name - file = callSite[0] - } else { - // get call site - i = 2 - depSite = callSiteLocation(stack[i]) - callSite = depSite - } - - // get caller of deprecated thing in relation to file - for (; i < stack.length; i++) { - caller = callSiteLocation(stack[i]) - callFile = caller[0] - - if (callFile === file) { - seen = true - } else if (callFile === this._file) { - file = this._file - } else if (seen) { - break - } - } - - var key = caller - ? depSite.join(':') + '__' + caller.join(':') - : undefined - - if (key !== undefined && key in this._warned) { - // already warned - return - } - - this._warned[key] = true - - // generate automatic message from call site - var msg = message - if (!msg) { - msg = callSite === depSite || !callSite.name - ? defaultMessage(depSite) - : defaultMessage(callSite) - } - - // emit deprecation if listeners exist - if (haslisteners) { - var err = DeprecationError(this._namespace, msg, stack.slice(i)) - process.emit('deprecation', err) - return - } - - // format and write message - var format = process.stderr.isTTY - ? formatColor - : formatPlain - var output = format.call(this, msg, caller, stack.slice(i)) - process.stderr.write(output + '\n', 'utf8') -} - -/** - * Get call site location as array. - */ - -function callSiteLocation (callSite) { - var file = callSite.getFileName() || '' - var line = callSite.getLineNumber() - var colm = callSite.getColumnNumber() - - if (callSite.isEval()) { - file = callSite.getEvalOrigin() + ', ' + file - } - - var site = [file, line, colm] - - site.callSite = callSite - site.name = callSite.getFunctionName() - - return site -} - -/** - * Generate a default message from the site. - */ - -function defaultMessage (site) { - var callSite = site.callSite - var funcName = site.name - - // make useful anonymous name - if (!funcName) { - funcName = '' - } - - var context = callSite.getThis() - var typeName = context && callSite.getTypeName() - - // ignore useless type name - if (typeName === 'Object') { - typeName = undefined - } - - // make useful type name - if (typeName === 'Function') { - typeName = context.name || typeName - } - - return typeName && callSite.getMethodName() - ? typeName + '.' + funcName - : funcName -} - -/** - * Format deprecation message without color. - */ - -function formatPlain (msg, caller, stack) { - var timestamp = new Date().toUTCString() - - var formatted = timestamp + - ' ' + this._namespace + - ' deprecated ' + msg - - // add stack trace - if (this._traced) { - for (var i = 0; i < stack.length; i++) { - formatted += '\n at ' + callSiteToString(stack[i]) - } - - return formatted - } - - if (caller) { - formatted += ' at ' + formatLocation(caller) - } - - return formatted -} - -/** - * Format deprecation message with color. - */ - -function formatColor (msg, caller, stack) { - var formatted = '\x1b[36;1m' + this._namespace + '\x1b[22;39m' + // bold cyan - ' \x1b[33;1mdeprecated\x1b[22;39m' + // bold yellow - ' \x1b[0m' + msg + '\x1b[39m' // reset - - // add stack trace - if (this._traced) { - for (var i = 0; i < stack.length; i++) { - formatted += '\n \x1b[36mat ' + callSiteToString(stack[i]) + '\x1b[39m' // cyan - } - - return formatted - } - - if (caller) { - formatted += ' \x1b[36m' + formatLocation(caller) + '\x1b[39m' // cyan - } - - return formatted -} - -/** - * Format call site location. - */ - -function formatLocation (callSite) { - return relative(basePath, callSite[0]) + - ':' + callSite[1] + - ':' + callSite[2] -} - -/** - * Get the stack as array of call sites. - */ - -function getStack () { - var limit = Error.stackTraceLimit - var obj = {} - var prep = Error.prepareStackTrace - - Error.prepareStackTrace = prepareObjectStackTrace - Error.stackTraceLimit = Math.max(10, limit) - - // capture the stack - Error.captureStackTrace(obj) - - // slice this function off the top - var stack = obj.stack.slice(1) - - Error.prepareStackTrace = prep - Error.stackTraceLimit = limit - - return stack -} - -/** - * Capture call site stack from v8. - */ - -function prepareObjectStackTrace (obj, stack) { - return stack -} - -/** - * Return a wrapped function in a deprecation message. - */ - -function wrapfunction (fn, message) { - if (typeof fn !== 'function') { - throw new TypeError('argument fn must be a function') - } - - var args = createArgumentsString(fn.length) - var deprecate = this // eslint-disable-line no-unused-vars - var stack = getStack() - var site = callSiteLocation(stack[1]) - - site.name = fn.name - - // eslint-disable-next-line no-eval - var deprecatedfn = eval('(function (' + args + ') {\n' + - '"use strict"\n' + - 'log.call(deprecate, message, site)\n' + - 'return fn.apply(this, arguments)\n' + - '})') - - return deprecatedfn -} - -/** - * Wrap property in a deprecation message. - */ - -function wrapproperty (obj, prop, message) { - if (!obj || (typeof obj !== 'object' && typeof obj !== 'function')) { - throw new TypeError('argument obj must be object') - } - - var descriptor = Object.getOwnPropertyDescriptor(obj, prop) - - if (!descriptor) { - throw new TypeError('must call property on owner object') - } - - if (!descriptor.configurable) { - throw new TypeError('property must be configurable') - } - - var deprecate = this - var stack = getStack() - var site = callSiteLocation(stack[1]) - - // set site name - site.name = prop - - // convert data descriptor - if ('value' in descriptor) { - descriptor = convertDataDescriptorToAccessor(obj, prop, message) - } - - var get = descriptor.get - var set = descriptor.set - - // wrap getter - if (typeof get === 'function') { - descriptor.get = function getter () { - log.call(deprecate, message, site) - return get.apply(this, arguments) - } - } - - // wrap setter - if (typeof set === 'function') { - descriptor.set = function setter () { - log.call(deprecate, message, site) - return set.apply(this, arguments) - } - } - - Object.defineProperty(obj, prop, descriptor) -} - -/** - * Create DeprecationError for deprecation - */ - -function DeprecationError (namespace, message, stack) { - var error = new Error() - var stackString - - Object.defineProperty(error, 'constructor', { - value: DeprecationError - }) - - Object.defineProperty(error, 'message', { - configurable: true, - enumerable: false, - value: message, - writable: true - }) - - Object.defineProperty(error, 'name', { - enumerable: false, - configurable: true, - value: 'DeprecationError', - writable: true - }) - - Object.defineProperty(error, 'namespace', { - configurable: true, - enumerable: false, - value: namespace, - writable: true - }) - - Object.defineProperty(error, 'stack', { - configurable: true, - enumerable: false, - get: function () { - if (stackString !== undefined) { - return stackString - } - - // prepare stack trace - return (stackString = createStackString.call(this, stack)) - }, - set: function setter (val) { - stackString = val - } - }) - - return error -} - - -/***/ }), - -/***/ 35554: -/***/ ((module) => { - -"use strict"; -/*! - * depd - * Copyright(c) 2014 Douglas Christopher Wilson - * MIT Licensed - */ - - - -/** - * Module exports. - */ - -module.exports = callSiteToString - -/** - * Format a CallSite file location to a string. - */ - -function callSiteFileLocation (callSite) { - var fileName - var fileLocation = '' - - if (callSite.isNative()) { - fileLocation = 'native' - } else if (callSite.isEval()) { - fileName = callSite.getScriptNameOrSourceURL() - if (!fileName) { - fileLocation = callSite.getEvalOrigin() - } - } else { - fileName = callSite.getFileName() - } - - if (fileName) { - fileLocation += fileName - - var lineNumber = callSite.getLineNumber() - if (lineNumber != null) { - fileLocation += ':' + lineNumber - - var columnNumber = callSite.getColumnNumber() - if (columnNumber) { - fileLocation += ':' + columnNumber - } - } - } - - return fileLocation || 'unknown source' -} - -/** - * Format a CallSite to a string. - */ - -function callSiteToString (callSite) { - var addSuffix = true - var fileLocation = callSiteFileLocation(callSite) - var functionName = callSite.getFunctionName() - var isConstructor = callSite.isConstructor() - var isMethodCall = !(callSite.isToplevel() || isConstructor) - var line = '' - - if (isMethodCall) { - var methodName = callSite.getMethodName() - var typeName = getConstructorName(callSite) - - if (functionName) { - if (typeName && functionName.indexOf(typeName) !== 0) { - line += typeName + '.' - } - - line += functionName - - if (methodName && functionName.lastIndexOf('.' + methodName) !== functionName.length - methodName.length - 1) { - line += ' [as ' + methodName + ']' - } - } else { - line += typeName + '.' + (methodName || '') - } - } else if (isConstructor) { - line += 'new ' + (functionName || '') - } else if (functionName) { - line += functionName - } else { - addSuffix = false - line += fileLocation - } - - if (addSuffix) { - line += ' (' + fileLocation + ')' - } - - return line -} - -/** - * Get constructor name of reviver. - */ - -function getConstructorName (obj) { - var receiver = obj.receiver - return (receiver.constructor && receiver.constructor.name) || null -} - - -/***/ }), - -/***/ 12078: -/***/ ((module) => { - -"use strict"; -/*! - * depd + * mime-types + * Copyright(c) 2014 Jonathan Ong * Copyright(c) 2015 Douglas Christopher Wilson * MIT Licensed - */ - - - -/** - * Module exports. - * @public - */ - -module.exports = eventListenerCount - -/** - * Get the count of listeners on an event emitter of a specific type. - */ - -function eventListenerCount (emitter, type) { - return emitter.listeners(type).length -} - - -/***/ }), - -/***/ 69829: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -"use strict"; + */var a=i(47426);var A=i(71017).extname;var c=/^\s*([^;\s]*)(?:;|\s|$)/;var l=/^text\//i;s.charset=charset;s.charsets={lookup:charset};s.contentType=contentType;s.extension=extension;s.extensions=Object.create(null);s.lookup=lookup;s.types=Object.create(null);populateMaps(s.extensions,s.types);function charset(r){if(!r||typeof r!=="string"){return false}var s=c.exec(r);var i=s&&a[s[1].toLowerCase()];if(i&&i.charset){return i.charset}if(s&&l.test(s[1])){return"UTF-8"}return false}function contentType(r){if(!r||typeof r!=="string"){return false}var i=r.indexOf("/")===-1?s.lookup(r):r;if(!i){return false}if(i.indexOf("charset")===-1){var a=s.charset(i);if(a)i+="; charset="+a.toLowerCase()}return i}function extension(r){if(!r||typeof r!=="string"){return false}var i=c.exec(r);var a=i&&s.extensions[i[1].toLowerCase()];if(!a||!a.length){return false}return a[0]}function lookup(r){if(!r||typeof r!=="string"){return false}var i=A("x."+r).toLowerCase().substr(1);if(!i){return false}return s.types[i]||false}function populateMaps(r,s){var i=["nginx","apache",undefined,"iana"];Object.keys(a).forEach((function forEachMimeType(A){var c=a[A];var l=c.extensions;if(!l||!l.length){return}r[A]=l;for(var d=0;dg||p===g&&s[u].substr(0,12)==="application/")){continue}}s[u]=A}}))}},83973:(r,s,i)=>{r.exports=minimatch;minimatch.Minimatch=Minimatch;var a=function(){try{return i(71017)}catch(r){}}()||{sep:"/"};minimatch.sep=a.sep;var A=minimatch.GLOBSTAR=Minimatch.GLOBSTAR={};var c=i(48184);var l={"!":{open:"(?:(?!(?:",close:"))[^/]*?)"},"?":{open:"(?:",close:")?"},"+":{open:"(?:",close:")+"},"*":{open:"(?:",close:")*"},"@":{open:"(?:",close:")"}};var d="[^/]";var u=d+"*?";var p="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?";var g="(?:(?!(?:\\/|^)\\.).)*?";var h=charSet("().*{}+?[]^$\\!");function charSet(r){return r.split("").reduce((function(r,s){r[s]=true;return r}),{})}var C=/\/+/;minimatch.filter=filter;function filter(r,s){s=s||{};return function(i,a,A){return minimatch(i,r,s)}}function ext(r,s){s=s||{};var i={};Object.keys(r).forEach((function(s){i[s]=r[s]}));Object.keys(s).forEach((function(r){i[r]=s[r]}));return i}minimatch.defaults=function(r){if(!r||typeof r!=="object"||!Object.keys(r).length){return minimatch}var s=minimatch;var i=function minimatch(i,a,A){return s(i,a,ext(r,A))};i.Minimatch=function Minimatch(i,a){return new s.Minimatch(i,ext(r,a))};i.Minimatch.defaults=function defaults(i){return s.defaults(ext(r,i)).Minimatch};i.filter=function filter(i,a){return s.filter(i,ext(r,a))};i.defaults=function defaults(i){return s.defaults(ext(r,i))};i.makeRe=function makeRe(i,a){return s.makeRe(i,ext(r,a))};i.braceExpand=function braceExpand(i,a){return s.braceExpand(i,ext(r,a))};i.match=function(i,a,A){return s.match(i,a,ext(r,A))};return i};Minimatch.defaults=function(r){return minimatch.defaults(r).Minimatch};function minimatch(r,s,i){assertValidPattern(s);if(!i)i={};if(!i.nocomment&&s.charAt(0)==="#"){return false}return new Minimatch(s,i).match(r)}function Minimatch(r,s){if(!(this instanceof Minimatch)){return new Minimatch(r,s)}assertValidPattern(r);if(!s)s={};r=r.trim();if(!s.allowWindowsEscape&&a.sep!=="/"){r=r.split(a.sep).join("/")}this.options=s;this.set=[];this.pattern=r;this.regexp=null;this.negate=false;this.comment=false;this.empty=false;this.partial=!!s.partial;this.make()}Minimatch.prototype.debug=function(){};Minimatch.prototype.make=make;function make(){var r=this.pattern;var s=this.options;if(!s.nocomment&&r.charAt(0)==="#"){this.comment=true;return}if(!r){this.empty=true;return}this.parseNegate();var i=this.globSet=this.braceExpand();if(s.debug)this.debug=function debug(){console.error.apply(console,arguments)};this.debug(this.pattern,i);i=this.globParts=i.map((function(r){return r.split(C)}));this.debug(this.pattern,i);i=i.map((function(r,s,i){return r.map(this.parse,this)}),this);this.debug(this.pattern,i);i=i.filter((function(r){return r.indexOf(false)===-1}));this.debug(this.pattern,i);this.set=i}Minimatch.prototype.parseNegate=parseNegate;function parseNegate(){var r=this.pattern;var s=false;var i=this.options;var a=0;if(i.nonegate)return;for(var A=0,c=r.length;Ay){throw new TypeError("pattern is too long")}};Minimatch.prototype.parse=parse;var I={};function parse(r,s){assertValidPattern(r);var i=this.options;if(r==="**"){if(!i.noglobstar)return A;else r="*"}if(r==="")return"";var a="";var c=!!i.nocase;var p=false;var g=[];var C=[];var y;var B=false;var b=-1;var Q=-1;var w=r.charAt(0)==="."?"":i.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)";var v=this;function clearStateChar(){if(y){switch(y){case"*":a+=u;c=true;break;case"?":a+=d;c=true;break;default:a+="\\"+y;break}v.debug("clearStateChar %j %j",y,a);y=false}}for(var S=0,R=r.length,N;S-1;O--){var L=C[O];var M=a.slice(0,L.reStart);var U=a.slice(L.reStart,L.reEnd-8);var H=a.slice(L.reEnd-8,L.reEnd);var G=a.slice(L.reEnd);H+=G;var q=M.split("(").length-1;var V=G;for(S=0;S=0;l--){c=r[l];if(c)break}for(l=0;l>> no match, partial?",r,h,s,C);if(h===d)return true}return false}var I;if(typeof p==="string"){I=g===p;this.debug("string match",p,g,I)}else{I=g.match(p);this.debug("pattern match",p,g,I)}if(!I)return false}if(c===d&&l===u){return true}else if(c===d){return i}else if(l===u){return c===d-1&&r[c]===""}throw new Error("wtf?")};function globUnescape(r){return r.replace(/\\(.)/g,"$1")}function regExpEscape(r){return r.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}},48184:(r,s,i)=>{var a=i(86891);var A=i(9417);r.exports=expandTop;var c="\0SLASH"+Math.random()+"\0";var l="\0OPEN"+Math.random()+"\0";var d="\0CLOSE"+Math.random()+"\0";var u="\0COMMA"+Math.random()+"\0";var p="\0PERIOD"+Math.random()+"\0";function numeric(r){return parseInt(r,10)==r?parseInt(r,10):r.charCodeAt(0)}function escapeBraces(r){return r.split("\\\\").join(c).split("\\{").join(l).split("\\}").join(d).split("\\,").join(u).split("\\.").join(p)}function unescapeBraces(r){return r.split(c).join("\\").split(l).join("{").split(d).join("}").split(u).join(",").split(p).join(".")}function parseCommaParts(r){if(!r)return[""];var s=[];var i=A("{","}",r);if(!i)return r.split(",");var a=i.pre;var c=i.body;var l=i.post;var d=a.split(",");d[d.length-1]+="{"+c+"}";var u=parseCommaParts(l);if(l.length){d[d.length-1]+=u.shift();d.push.apply(d,u)}s.push.apply(s,d);return s}function expandTop(r){if(!r)return[];if(r.substr(0,2)==="{}"){r="\\{\\}"+r.substr(2)}return expand(escapeBraces(r),true).map(unescapeBraces)}function identity(r){return r}function embrace(r){return"{"+r+"}"}function isPadded(r){return/^-?0\d/.test(r)}function lte(r,s){return r<=s}function gte(r,s){return r>=s}function expand(r,s){var i=[];var c=A("{","}",r);if(!c||/\$$/.test(c.pre))return[r];var l=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(c.body);var u=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(c.body);var p=l||u;var g=c.body.indexOf(",")>=0;if(!p&&!g){if(c.post.match(/,.*\}/)){r=c.pre+"{"+c.body+d+c.post;return expand(r)}return[r]}var h;if(p){h=c.body.split(/\.\./)}else{h=parseCommaParts(c.body);if(h.length===1){h=expand(h[0],false).map(embrace);if(h.length===1){var C=c.post.length?expand(c.post,false):[""];return C.map((function(r){return c.pre+h[0]+r}))}}}var y=c.pre;var C=c.post.length?expand(c.post,false):[""];var I;if(p){var B=numeric(h[0]);var b=numeric(h[1]);var Q=Math.max(h[0].length,h[1].length);var w=h.length==3?Math.abs(numeric(h[2])):1;var v=lte;var S=b0){var k=new Array(D+1).join("0");if(N<0)x="-"+k+x.slice(1);else x=k+x}}}I.push(x)}}else{I=a(h,(function(r){return expand(r,false)}))}for(var T=0;T{var a=i(71017);var A=i(57147);var c=parseInt("0777",8);r.exports=mkdirP.mkdirp=mkdirP.mkdirP=mkdirP;function mkdirP(r,s,i,l){if(typeof s==="function"){i=s;s={}}else if(!s||typeof s!=="object"){s={mode:s}}var d=s.mode;var u=s.fs||A;if(d===undefined){d=c}if(!l)l=null;var p=i||function(){};r=a.resolve(r);u.mkdir(r,d,(function(i){if(!i){l=l||r;return p(null,l)}switch(i.code){case"ENOENT":if(a.dirname(r)===r)return p(i);mkdirP(a.dirname(r),s,(function(i,a){if(i)p(i,a);else mkdirP(r,s,p,a)}));break;default:u.stat(r,(function(r,s){if(r||!s.isDirectory())p(i,l);else p(null,l)}));break}}))}mkdirP.sync=function sync(r,s,i){if(!s||typeof s!=="object"){s={mode:s}}var l=s.mode;var d=s.fs||A;if(l===undefined){l=c}if(!i)i=null;r=a.resolve(r);try{d.mkdirSync(r,l);i=i||r}catch(A){switch(A.code){case"ENOENT":i=sync(a.dirname(r),s,i);sync(r,s,i);break;default:var u;try{u=d.statSync(r)}catch(r){throw A}if(!u.isDirectory())throw A;break}}return i}},80900:r=>{var s=1e3;var i=s*60;var a=i*60;var A=a*24;var c=A*7;var l=A*365.25;r.exports=function(r,s){s=s||{};var i=typeof r;if(i==="string"&&r.length>0){return parse(r)}else if(i==="number"&&isFinite(r)){return s.long?fmtLong(r):fmtShort(r)}throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(r))};function parse(r){r=String(r);if(r.length>100){return}var d=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(r);if(!d){return}var u=parseFloat(d[1]);var p=(d[2]||"ms").toLowerCase();switch(p){case"years":case"year":case"yrs":case"yr":case"y":return u*l;case"weeks":case"week":case"w":return u*c;case"days":case"day":case"d":return u*A;case"hours":case"hour":case"hrs":case"hr":case"h":return u*a;case"minutes":case"minute":case"mins":case"min":case"m":return u*i;case"seconds":case"second":case"secs":case"sec":case"s":return u*s;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return u;default:return undefined}}function fmtShort(r){var c=Math.abs(r);if(c>=A){return Math.round(r/A)+"d"}if(c>=a){return Math.round(r/a)+"h"}if(c>=i){return Math.round(r/i)+"m"}if(c>=s){return Math.round(r/s)+"s"}return r+"ms"}function fmtLong(r){var c=Math.abs(r);if(c>=A){return plural(r,c,A,"day")}if(c>=a){return plural(r,c,a,"hour")}if(c>=i){return plural(r,c,i,"minute")}if(c>=s){return plural(r,c,s,"second")}return r+" ms"}function plural(r,s,i,a){var A=s>=i*1.5;return Math.round(r/i)+" "+a+(A?"s":"")}},80467:(r,s,i)=>{"use strict";Object.defineProperty(s,"__esModule",{value:true});function _interopDefault(r){return r&&typeof r==="object"&&"default"in r?r["default"]:r}var a=_interopDefault(i(12781));var A=_interopDefault(i(13685));var c=_interopDefault(i(57310));var l=_interopDefault(i(28665));var d=_interopDefault(i(95687));var u=_interopDefault(i(59796));const p=a.Readable;const g=Symbol("buffer");const h=Symbol("type");class Blob{constructor(){this[h]="";const r=arguments[0];const s=arguments[1];const i=[];let a=0;if(r){const s=r;const A=Number(s.length);for(let r=0;r1&&arguments[1]!==undefined?arguments[1]:{},A=i.size;let c=A===undefined?0:A;var l=i.timeout;let d=l===undefined?0:l;if(r==null){r=null}else if(isURLSearchParams(r)){r=Buffer.from(r.toString())}else if(isBlob(r));else if(Buffer.isBuffer(r));else if(Object.prototype.toString.call(r)==="[object ArrayBuffer]"){r=Buffer.from(r)}else if(ArrayBuffer.isView(r)){r=Buffer.from(r.buffer,r.byteOffset,r.byteLength)}else if(r instanceof a);else{r=Buffer.from(String(r))}this[y]={body:r,disturbed:false,error:null};this.size=c;this.timeout=d;if(r instanceof a){r.on("error",(function(r){const i=r.name==="AbortError"?r:new FetchError(`Invalid response body while trying to fetch ${s.url}: ${r.message}`,"system",r);s[y].error=i}))}}Body.prototype={get body(){return this[y].body},get bodyUsed(){return this[y].disturbed},arrayBuffer(){return consumeBody.call(this).then((function(r){return r.buffer.slice(r.byteOffset,r.byteOffset+r.byteLength)}))},blob(){let r=this.headers&&this.headers.get("content-type")||"";return consumeBody.call(this).then((function(s){return Object.assign(new Blob([],{type:r.toLowerCase()}),{[g]:s})}))},json(){var r=this;return consumeBody.call(this).then((function(s){try{return JSON.parse(s.toString())}catch(s){return Body.Promise.reject(new FetchError(`invalid json response body at ${r.url} reason: ${s.message}`,"invalid-json"))}}))},text(){return consumeBody.call(this).then((function(r){return r.toString()}))},buffer(){return consumeBody.call(this)},textConverted(){var r=this;return consumeBody.call(this).then((function(s){return convertBody(s,r.headers)}))}};Object.defineProperties(Body.prototype,{body:{enumerable:true},bodyUsed:{enumerable:true},arrayBuffer:{enumerable:true},blob:{enumerable:true},json:{enumerable:true},text:{enumerable:true}});Body.mixIn=function(r){for(const s of Object.getOwnPropertyNames(Body.prototype)){if(!(s in r)){const i=Object.getOwnPropertyDescriptor(Body.prototype,s);Object.defineProperty(r,s,i)}}};function consumeBody(){var r=this;if(this[y].disturbed){return Body.Promise.reject(new TypeError(`body used already for: ${this.url}`))}this[y].disturbed=true;if(this[y].error){return Body.Promise.reject(this[y].error)}let s=this.body;if(s===null){return Body.Promise.resolve(Buffer.alloc(0))}if(isBlob(s)){s=s.stream()}if(Buffer.isBuffer(s)){return Body.Promise.resolve(s)}if(!(s instanceof a)){return Body.Promise.resolve(Buffer.alloc(0))}let i=[];let A=0;let c=false;return new Body.Promise((function(a,l){let d;if(r.timeout){d=setTimeout((function(){c=true;l(new FetchError(`Response timeout while trying to fetch ${r.url} (over ${r.timeout}ms)`,"body-timeout"))}),r.timeout)}s.on("error",(function(s){if(s.name==="AbortError"){c=true;l(s)}else{l(new FetchError(`Invalid response body while trying to fetch ${r.url}: ${s.message}`,"system",s))}}));s.on("data",(function(s){if(c||s===null){return}if(r.size&&A+s.length>r.size){c=true;l(new FetchError(`content size at ${r.url} over limit: ${r.size}`,"max-size"));return}A+=s.length;i.push(s)}));s.on("end",(function(){if(c){return}clearTimeout(d);try{a(Buffer.concat(i,A))}catch(s){l(new FetchError(`Could not create Buffer from response body for ${r.url}: ${s.message}`,"system",s))}}))}))}function convertBody(r,s){if(typeof C!=="function"){throw new Error("The package `encoding` must be installed to use the textConverted() function")}const i=s.get("content-type");let a="utf-8";let A,c;if(i){A=/charset=([^;]*)/i.exec(i)}c=r.slice(0,1024).toString();if(!A&&c){A=/0&&arguments[0]!==undefined?arguments[0]:undefined;this[Q]=Object.create(null);if(r instanceof Headers){const s=r.raw();const i=Object.keys(s);for(const r of i){for(const i of s[r]){this.append(r,i)}}return}if(r==null);else if(typeof r==="object"){const s=r[Symbol.iterator];if(s!=null){if(typeof s!=="function"){throw new TypeError("Header pairs must be iterable")}const i=[];for(const s of r){if(typeof s!=="object"||typeof s[Symbol.iterator]!=="function"){throw new TypeError("Each header pair must be iterable")}i.push(Array.from(s))}for(const r of i){if(r.length!==2){throw new TypeError("Each header pair must be a name/value tuple")}this.append(r[0],r[1])}}else{for(const s of Object.keys(r)){const i=r[s];this.append(s,i)}}}else{throw new TypeError("Provided initializer must be an object")}}get(r){r=`${r}`;validateName(r);const s=find(this[Q],r);if(s===undefined){return null}return this[Q][s].join(", ")}forEach(r){let s=arguments.length>1&&arguments[1]!==undefined?arguments[1]:undefined;let i=getHeaders(this);let a=0;while(a1&&arguments[1]!==undefined?arguments[1]:"key+value";const i=Object.keys(r[Q]).sort();return i.map(s==="key"?function(r){return r.toLowerCase()}:s==="value"?function(s){return r[Q][s].join(", ")}:function(s){return[s.toLowerCase(),r[Q][s].join(", ")]})}const w=Symbol("internal");function createHeadersIterator(r,s){const i=Object.create(v);i[w]={target:r,kind:s,index:0};return i}const v=Object.setPrototypeOf({next(){if(!this||Object.getPrototypeOf(this)!==v){throw new TypeError("Value of `this` is not a HeadersIterator")}var r=this[w];const s=r.target,i=r.kind,a=r.index;const A=getHeaders(s,i);const c=A.length;if(a>=c){return{value:undefined,done:true}}this[w].index=a+1;return{value:A[a],done:false}}},Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]())));Object.defineProperty(v,Symbol.toStringTag,{value:"HeadersIterator",writable:false,enumerable:false,configurable:true});function exportNodeCompatibleHeaders(r){const s=Object.assign({__proto__:null},r[Q]);const i=find(r[Q],"Host");if(i!==undefined){s[i]=s[i][0]}return s}function createHeadersLenient(r){const s=new Headers;for(const i of Object.keys(r)){if(B.test(i)){continue}if(Array.isArray(r[i])){for(const a of r[i]){if(b.test(a)){continue}if(s[Q][i]===undefined){s[Q][i]=[a]}else{s[Q][i].push(a)}}}else if(!b.test(r[i])){s[Q][i]=[r[i]]}}return s}const S=Symbol("Response internals");const R=A.STATUS_CODES;class Response{constructor(){let r=arguments.length>0&&arguments[0]!==undefined?arguments[0]:null;let s=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};Body.call(this,r,s);const i=s.status||200;const a=new Headers(s.headers);if(r!=null&&!a.has("Content-Type")){const s=extractContentType(r);if(s){a.append("Content-Type",s)}}this[S]={url:s.url,status:i,statusText:s.statusText||R[i],headers:a,counter:s.counter}}get url(){return this[S].url||""}get status(){return this[S].status}get ok(){return this[S].status>=200&&this[S].status<300}get redirected(){return this[S].counter>0}get statusText(){return this[S].statusText}get headers(){return this[S].headers}clone(){return new Response(clone(this),{url:this.url,status:this.status,statusText:this.statusText,headers:this.headers,ok:this.ok,redirected:this.redirected})}}Body.mixIn(Response.prototype);Object.defineProperties(Response.prototype,{url:{enumerable:true},status:{enumerable:true},ok:{enumerable:true},redirected:{enumerable:true},statusText:{enumerable:true},headers:{enumerable:true},clone:{enumerable:true}});Object.defineProperty(Response.prototype,Symbol.toStringTag,{value:"Response",writable:false,enumerable:false,configurable:true});const N=Symbol("Request internals");const x=c.URL||l.URL;const D=c.parse;const k=c.format;function parseURL(r){if(/^[a-zA-Z][a-zA-Z\d+\-.]*:/.exec(r)){r=new x(r).toString()}return D(r)}const T="destroy"in a.Readable.prototype;function isRequest(r){return typeof r==="object"&&typeof r[N]==="object"}function isAbortSignal(r){const s=r&&typeof r==="object"&&Object.getPrototypeOf(r);return!!(s&&s.constructor.name==="AbortSignal")}class Request{constructor(r){let s=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};let i;if(!isRequest(r)){if(r&&r.href){i=parseURL(r.href)}else{i=parseURL(`${r}`)}r={}}else{i=parseURL(r.url)}let a=s.method||r.method||"GET";a=a.toUpperCase();if((s.body!=null||isRequest(r)&&r.body!==null)&&(a==="GET"||a==="HEAD")){throw new TypeError("Request with GET/HEAD method cannot have body")}let A=s.body!=null?s.body:isRequest(r)&&r.body!==null?clone(r):null;Body.call(this,A,{timeout:s.timeout||r.timeout||0,size:s.size||r.size||0});const c=new Headers(s.headers||r.headers||{});if(A!=null&&!c.has("Content-Type")){const r=extractContentType(A);if(r){c.append("Content-Type",r)}}let l=isRequest(r)?r.signal:null;if("signal"in s)l=s.signal;if(l!=null&&!isAbortSignal(l)){throw new TypeError("Expected signal to be an instanceof AbortSignal")}this[N]={method:a,redirect:s.redirect||r.redirect||"follow",headers:c,parsedURL:i,signal:l};this.follow=s.follow!==undefined?s.follow:r.follow!==undefined?r.follow:20;this.compress=s.compress!==undefined?s.compress:r.compress!==undefined?r.compress:true;this.counter=s.counter||r.counter||0;this.agent=s.agent||r.agent}get method(){return this[N].method}get url(){return k(this[N].parsedURL)}get headers(){return this[N].headers}get redirect(){return this[N].redirect}get signal(){return this[N].signal}clone(){return new Request(this)}}Body.mixIn(Request.prototype);Object.defineProperty(Request.prototype,Symbol.toStringTag,{value:"Request",writable:false,enumerable:false,configurable:true});Object.defineProperties(Request.prototype,{method:{enumerable:true},url:{enumerable:true},headers:{enumerable:true},redirect:{enumerable:true},clone:{enumerable:true},signal:{enumerable:true}});function getNodeRequestOptions(r){const s=r[N].parsedURL;const i=new Headers(r[N].headers);if(!i.has("Accept")){i.set("Accept","*/*")}if(!s.protocol||!s.hostname){throw new TypeError("Only absolute URLs are supported")}if(!/^https?:$/.test(s.protocol)){throw new TypeError("Only HTTP(S) protocols are supported")}if(r.signal&&r.body instanceof a.Readable&&!T){throw new Error("Cancellation of streamed requests with AbortSignal is not supported in node < 8")}let A=null;if(r.body==null&&/^(POST|PUT)$/i.test(r.method)){A="0"}if(r.body!=null){const s=getTotalBytes(r);if(typeof s==="number"){A=String(s)}}if(A){i.set("Content-Length",A)}if(!i.has("User-Agent")){i.set("User-Agent","node-fetch/1.0 (+https://github.com/bitinn/node-fetch)")}if(r.compress&&!i.has("Accept-Encoding")){i.set("Accept-Encoding","gzip,deflate")}let c=r.agent;if(typeof c==="function"){c=c(s)}if(!i.has("Connection")&&!c){i.set("Connection","close")}return Object.assign({},s,{method:r.method,headers:exportNodeCompatibleHeaders(i),agent:c})}function AbortError(r){Error.call(this,r);this.type="aborted";this.message=r;Error.captureStackTrace(this,this.constructor)}AbortError.prototype=Object.create(Error.prototype);AbortError.prototype.constructor=AbortError;AbortError.prototype.name="AbortError";const _=c.URL||l.URL;const P=a.PassThrough;const O=function isDomainOrSubdomain(r,s){const i=new _(s).hostname;const a=new _(r).hostname;return i===a||i[i.length-a.length-1]==="."&&i.endsWith(a)};const L=function isSameProtocol(r,s){const i=new _(s).protocol;const a=new _(r).protocol;return i===a};function fetch(r,s){if(!fetch.Promise){throw new Error("native promise missing, set fetch.Promise to your favorite alternative")}Body.Promise=fetch.Promise;return new fetch.Promise((function(i,c){const l=new Request(r,s);const p=getNodeRequestOptions(l);const g=(p.protocol==="https:"?d:A).request;const h=l.signal;let C=null;const y=function abort(){let r=new AbortError("The user aborted a request.");c(r);if(l.body&&l.body instanceof a.Readable){destroyStream(l.body,r)}if(!C||!C.body)return;C.body.emit("error",r)};if(h&&h.aborted){y();return}const I=function abortAndFinalize(){y();finalize()};const B=g(p);let b;if(h){h.addEventListener("abort",I)}function finalize(){B.abort();if(h)h.removeEventListener("abort",I);clearTimeout(b)}if(l.timeout){B.once("socket",(function(r){b=setTimeout((function(){c(new FetchError(`network timeout at: ${l.url}`,"request-timeout"));finalize()}),l.timeout)}))}B.on("error",(function(r){c(new FetchError(`request to ${l.url} failed, reason: ${r.message}`,"system",r));if(C&&C.body){destroyStream(C.body,r)}finalize()}));fixResponseChunkedTransferBadEnding(B,(function(r){if(h&&h.aborted){return}if(C&&C.body){destroyStream(C.body,r)}}));if(parseInt(process.version.substring(1))<14){B.on("socket",(function(r){r.addListener("close",(function(s){const i=r.listenerCount("data")>0;if(C&&i&&!s&&!(h&&h.aborted)){const r=new Error("Premature close");r.code="ERR_STREAM_PREMATURE_CLOSE";C.body.emit("error",r)}}))}))}B.on("response",(function(r){clearTimeout(b);const s=createHeadersLenient(r.headers);if(fetch.isRedirect(r.statusCode)){const a=s.get("Location");let A=null;try{A=a===null?null:new _(a,l.url).toString()}catch(r){if(l.redirect!=="manual"){c(new FetchError(`uri requested responds with an invalid redirect URL: ${a}`,"invalid-redirect"));finalize();return}}switch(l.redirect){case"error":c(new FetchError(`uri requested responds with a redirect, redirect mode is set to error: ${l.url}`,"no-redirect"));finalize();return;case"manual":if(A!==null){try{s.set("Location",A)}catch(r){c(r)}}break;case"follow":if(A===null){break}if(l.counter>=l.follow){c(new FetchError(`maximum redirect reached at: ${l.url}`,"max-redirect"));finalize();return}const a={headers:new Headers(l.headers),follow:l.follow,counter:l.counter+1,agent:l.agent,compress:l.compress,method:l.method,body:l.body,signal:l.signal,timeout:l.timeout,size:l.size};if(!O(l.url,A)||!L(l.url,A)){for(const r of["authorization","www-authenticate","cookie","cookie2"]){a.headers.delete(r)}}if(r.statusCode!==303&&l.body&&getTotalBytes(l)===null){c(new FetchError("Cannot follow redirect with body being a readable stream","unsupported-redirect"));finalize();return}if(r.statusCode===303||(r.statusCode===301||r.statusCode===302)&&l.method==="POST"){a.method="GET";a.body=undefined;a.headers.delete("content-length")}i(fetch(new Request(A,a)));finalize();return}}r.once("end",(function(){if(h)h.removeEventListener("abort",I)}));let a=r.pipe(new P);const A={url:l.url,status:r.statusCode,statusText:r.statusMessage,headers:s,size:l.size,timeout:l.timeout,counter:l.counter};const d=s.get("Content-Encoding");if(!l.compress||l.method==="HEAD"||d===null||r.statusCode===204||r.statusCode===304){C=new Response(a,A);i(C);return}const p={flush:u.Z_SYNC_FLUSH,finishFlush:u.Z_SYNC_FLUSH};if(d=="gzip"||d=="x-gzip"){a=a.pipe(u.createGunzip(p));C=new Response(a,A);i(C);return}if(d=="deflate"||d=="x-deflate"){const s=r.pipe(new P);s.once("data",(function(r){if((r[0]&15)===8){a=a.pipe(u.createInflate())}else{a=a.pipe(u.createInflateRaw())}C=new Response(a,A);i(C)}));s.on("end",(function(){if(!C){C=new Response(a,A);i(C)}}));return}if(d=="br"&&typeof u.createBrotliDecompress==="function"){a=a.pipe(u.createBrotliDecompress());C=new Response(a,A);i(C);return}C=new Response(a,A);i(C)}));writeToStream(B,l)}))}function fixResponseChunkedTransferBadEnding(r,s){let i;r.on("socket",(function(r){i=r}));r.on("response",(function(r){const a=r.headers;if(a["transfer-encoding"]==="chunked"&&!a["content-length"]){r.once("close",(function(r){const a=i.listenerCount("data")>0;if(a&&!r){const r=new Error("Premature close");r.code="ERR_STREAM_PREMATURE_CLOSE";s(r)}}))}}))}function destroyStream(r,s){if(r.destroy){r.destroy(s)}else{r.emit("error",s);r.end()}}fetch.isRedirect=function(r){return r===301||r===302||r===303||r===307||r===308};fetch.Promise=global.Promise;r.exports=s=fetch;Object.defineProperty(s,"__esModule",{value:true});s["default"]=s;s.Headers=Headers;s.Request=Request;s.Response=Response;s.FetchError=FetchError},55388:r=>{ /*! - * depd - * Copyright(c) 2014-2015 Douglas Christopher Wilson + * normalize-path + * + * Copyright (c) 2014-2018, Jon Schlinkert. + * Released under the MIT License. + */ +r.exports=function(r,s){if(typeof r!=="string"){throw new TypeError("expected path to be a string")}if(r==="\\"||r==="/")return"/";var i=r.length;if(i<=1)return r;var a="";if(i>4&&r[3]==="\\"){var A=r[2];if((A==="?"||A===".")&&r.slice(0,2)==="\\\\"){r=r.slice(2);a="//"}}var c=r.split(/[/\\]+/);if(s!==false&&c[c.length-1]===""){c.pop()}return a+c.join("/")}},1223:(r,s,i)=>{var a=i(62940);r.exports=a(once);r.exports.strict=a(onceStrict);once.proto=once((function(){Object.defineProperty(Function.prototype,"once",{value:function(){return once(this)},configurable:true});Object.defineProperty(Function.prototype,"onceStrict",{value:function(){return onceStrict(this)},configurable:true})}));function once(r){var f=function(){if(f.called)return f.value;f.called=true;return f.value=r.apply(this,arguments)};f.called=false;return f}function onceStrict(r){var f=function(){if(f.called)throw new Error(f.onceError);f.called=true;return f.value=r.apply(this,arguments)};var s=r.name||"Function wrapped with `once`";f.onceError=s+" shouldn't be called more than once";f.called=false;return f}},47810:r=>{"use strict";if(typeof process==="undefined"||!process.version||process.version.indexOf("v0.")===0||process.version.indexOf("v1.")===0&&process.version.indexOf("v1.8.")!==0){r.exports={nextTick:nextTick}}else{r.exports=process}function nextTick(r,s,i,a){if(typeof r!=="function"){throw new TypeError('"callback" argument must be a function')}var A=arguments.length;var c,l;switch(A){case 0:case 1:return process.nextTick(r);case 2:return process.nextTick((function afterTickOne(){r.call(null,s)}));case 3:return process.nextTick((function afterTickTwo(){r.call(null,s,i)}));case 4:return process.nextTick((function afterTickThree(){r.call(null,s,i,a)}));default:c=new Array(A-1);l=0;while(l{r.exports=global.process},5322:(r,s,i)=>{r.exports=typeof process!=="undefined"&&typeof process.nextTick==="function"?process.nextTick.bind(process):i(71031)},71031:r=>{r.exports=typeof queueMicrotask==="function"?queueMicrotask:r=>Promise.resolve().then(r)},80289:(r,s,i)=>{"use strict";const{SymbolDispose:a}=i(89629);const{AbortError:A,codes:c}=i(80529);const{isNodeStream:l,isWebStream:d,kControllerErrorFunction:u}=i(27981);const p=i(76080);const{ERR_INVALID_ARG_TYPE:g}=c;let h;const validateAbortSignal=(r,s)=>{if(typeof r!=="object"||!("aborted"in r)){throw new g(s,"AbortSignal",r)}};r.exports.addAbortSignal=function addAbortSignal(s,i){validateAbortSignal(s,"signal");if(!l(i)&&!d(i)){throw new g("stream",["ReadableStream","WritableStream","Stream"],i)}return r.exports.addAbortSignalNoValidate(s,i)};r.exports.addAbortSignalNoValidate=function(r,s){if(typeof r!=="object"||!("aborted"in r)){return s}const c=l(s)?()=>{s.destroy(new A(undefined,{cause:r.reason}))}:()=>{s[u](new A(undefined,{cause:r.reason}))};if(r.aborted){c()}else{h=h||i(46959).addAbortListener;const A=h(r,c);p(s,A[a])}return s}},52746:(r,s,i)=>{"use strict";const{StringPrototypeSlice:a,SymbolIterator:A,TypedArrayPrototypeSet:c,Uint8Array:l}=i(89629);const{Buffer:d}=i(14300);const{inspect:u}=i(46959);r.exports=class BufferList{constructor(){this.head=null;this.tail=null;this.length=0}push(r){const s={data:r,next:null};if(this.length>0)this.tail.next=s;else this.head=s;this.tail=s;++this.length}unshift(r){const s={data:r,next:this.head};if(this.length===0)this.tail=s;this.head=s;++this.length}shift(){if(this.length===0)return;const r=this.head.data;if(this.length===1)this.head=this.tail=null;else this.head=this.head.next;--this.length;return r}clear(){this.head=this.tail=null;this.length=0}join(r){if(this.length===0)return"";let s=this.head;let i=""+s.data;while((s=s.next)!==null)i+=r+s.data;return i}concat(r){if(this.length===0)return d.alloc(0);const s=d.allocUnsafe(r>>>0);let i=this.head;let a=0;while(i){c(s,i.data,a);a+=i.data.length;i=i.next}return s}consume(r,s){const i=this.head.data;if(rc.length){s+=c;r-=c.length}else{if(r===c.length){s+=c;++A;if(i.next)this.head=i.next;else this.head=this.tail=null}else{s+=a(c,0,r);this.head=i;i.data=a(c,r)}break}++A}while((i=i.next)!==null);this.length-=A;return s}_getBuffer(r){const s=d.allocUnsafe(r);const i=r;let a=this.head;let A=0;do{const d=a.data;if(r>d.length){c(s,d,i-r);r-=d.length}else{if(r===d.length){c(s,d,i-r);++A;if(a.next)this.head=a.next;else this.head=this.tail=null}else{c(s,new l(d.buffer,d.byteOffset,r),i-r);this.head=a;a.data=d.slice(r)}break}++A}while((a=a.next)!==null);this.length-=A;return s}[Symbol.for("nodejs.util.inspect.custom")](r,s){return u(this,{...s,depth:0,customInspect:false})}}},63129:(r,s,i)=>{"use strict";const{pipeline:a}=i(76989);const A=i(72613);const{destroyer:c}=i(97049);const{isNodeStream:l,isReadable:d,isWritable:u,isWebStream:p,isTransformStream:g,isWritableStream:h,isReadableStream:C}=i(27981);const{AbortError:y,codes:{ERR_INVALID_ARG_VALUE:I,ERR_MISSING_ARGS:B}}=i(80529);const b=i(76080);r.exports=function compose(...r){if(r.length===0){throw new B("streams")}if(r.length===1){return A.from(r[0])}const s=[...r];if(typeof r[0]==="function"){r[0]=A.from(r[0])}if(typeof r[r.length-1]==="function"){const s=r.length-1;r[s]=A.from(r[s])}for(let i=0;i0&&!(u(r[i])||h(r[i])||g(r[i]))){throw new I(`streams[${i}]`,s[i],"must be writable")}}let i;let Q;let w;let v;let S;function onfinished(r){const s=v;v=null;if(s){s(r)}else if(r){S.destroy(r)}else if(!D&&!x){S.destroy()}}const R=r[0];const N=a(r,onfinished);const x=!!(u(R)||h(R)||g(R));const D=!!(d(N)||C(N)||g(N));S=new A({writableObjectMode:!!(R!==null&&R!==undefined&&R.writableObjectMode),readableObjectMode:!!(N!==null&&N!==undefined&&N.readableObjectMode),writable:x,readable:D});if(x){if(l(R)){S._write=function(r,s,a){if(R.write(r,s)){a()}else{i=a}};S._final=function(r){R.end();Q=r};R.on("drain",(function(){if(i){const r=i;i=null;r()}}))}else if(p(R)){const r=g(R)?R.writable:R;const s=r.getWriter();S._write=async function(r,i,a){try{await s.ready;s.write(r).catch((()=>{}));a()}catch(r){a(r)}};S._final=async function(r){try{await s.ready;s.close().catch((()=>{}));Q=r}catch(s){r(s)}}}const r=g(N)?N.readable:N;b(r,(()=>{if(Q){const r=Q;Q=null;r()}}))}if(D){if(l(N)){N.on("readable",(function(){if(w){const r=w;w=null;r()}}));N.on("end",(function(){S.push(null)}));S._read=function(){while(true){const r=N.read();if(r===null){w=S._read;return}if(!S.push(r)){return}}}}else if(p(N)){const r=g(N)?N.readable:N;const s=r.getReader();S._read=async function(){while(true){try{const{value:r,done:i}=await s.read();if(!S.push(r)){return}if(i){S.push(null);return}}catch{return}}}}}S._destroy=function(r,s){if(!r&&v!==null){r=new y}w=null;i=null;Q=null;if(v===null){s(r)}else{v=s;if(l(N)){c(N,r)}}};return S}},97049:(r,s,i)=>{"use strict";const a=i(45676);const{aggregateTwoErrors:A,codes:{ERR_MULTIPLE_CALLBACK:c},AbortError:l}=i(80529);const{Symbol:d}=i(89629);const{kIsDestroyed:u,isDestroyed:p,isFinished:g,isServerRequest:h}=i(27981);const C=d("kDestroy");const y=d("kConstruct");function checkError(r,s,i){if(r){r.stack;if(s&&!s.errored){s.errored=r}if(i&&!i.errored){i.errored=r}}}function destroy(r,s){const i=this._readableState;const a=this._writableState;const c=a||i;if(a!==null&&a!==undefined&&a.destroyed||i!==null&&i!==undefined&&i.destroyed){if(typeof s==="function"){s()}return this}checkError(r,a,i);if(a){a.destroyed=true}if(i){i.destroyed=true}if(!c.constructed){this.once(C,(function(i){_destroy(this,A(i,r),s)}))}else{_destroy(this,r,s)}return this}function _destroy(r,s,i){let A=false;function onDestroy(s){if(A){return}A=true;const c=r._readableState;const l=r._writableState;checkError(s,l,c);if(l){l.closed=true}if(c){c.closed=true}if(typeof i==="function"){i(s)}if(s){a.nextTick(emitErrorCloseNT,r,s)}else{a.nextTick(emitCloseNT,r)}}try{r._destroy(s||null,onDestroy)}catch(s){onDestroy(s)}}function emitErrorCloseNT(r,s){emitErrorNT(r,s);emitCloseNT(r)}function emitCloseNT(r){const s=r._readableState;const i=r._writableState;if(i){i.closeEmitted=true}if(s){s.closeEmitted=true}if(i!==null&&i!==undefined&&i.emitClose||s!==null&&s!==undefined&&s.emitClose){r.emit("close")}}function emitErrorNT(r,s){const i=r._readableState;const a=r._writableState;if(a!==null&&a!==undefined&&a.errorEmitted||i!==null&&i!==undefined&&i.errorEmitted){return}if(a){a.errorEmitted=true}if(i){i.errorEmitted=true}r.emit("error",s)}function undestroy(){const r=this._readableState;const s=this._writableState;if(r){r.constructed=true;r.closed=false;r.closeEmitted=false;r.destroyed=false;r.errored=null;r.errorEmitted=false;r.reading=false;r.ended=r.readable===false;r.endEmitted=r.readable===false}if(s){s.constructed=true;s.destroyed=false;s.closed=false;s.closeEmitted=false;s.errored=null;s.errorEmitted=false;s.finalCalled=false;s.prefinished=false;s.ended=s.writable===false;s.ending=s.writable===false;s.finished=s.writable===false}}function errorOrDestroy(r,s,i){const A=r._readableState;const c=r._writableState;if(c!==null&&c!==undefined&&c.destroyed||A!==null&&A!==undefined&&A.destroyed){return this}if(A!==null&&A!==undefined&&A.autoDestroy||c!==null&&c!==undefined&&c.autoDestroy)r.destroy(s);else if(s){s.stack;if(c&&!c.errored){c.errored=s}if(A&&!A.errored){A.errored=s}if(i){a.nextTick(emitErrorNT,r,s)}else{emitErrorNT(r,s)}}}function construct(r,s){if(typeof r._construct!=="function"){return}const i=r._readableState;const A=r._writableState;if(i){i.constructed=false}if(A){A.constructed=false}r.once(y,s);if(r.listenerCount(y)>1){return}a.nextTick(constructNT,r)}function constructNT(r){let s=false;function onConstruct(i){if(s){errorOrDestroy(r,i!==null&&i!==undefined?i:new c);return}s=true;const A=r._readableState;const l=r._writableState;const d=l||A;if(A){A.constructed=true}if(l){l.constructed=true}if(d.destroyed){r.emit(C,i)}else if(i){errorOrDestroy(r,i,true)}else{a.nextTick(emitConstructNT,r)}}try{r._construct((r=>{a.nextTick(onConstruct,r)}))}catch(r){a.nextTick(onConstruct,r)}}function emitConstructNT(r){r.emit(y)}function isRequest(r){return(r===null||r===undefined?undefined:r.setHeader)&&typeof r.abort==="function"}function emitCloseLegacy(r){r.emit("close")}function emitErrorCloseLegacy(r,s){r.emit("error",s);a.nextTick(emitCloseLegacy,r)}function destroyer(r,s){if(!r||p(r)){return}if(!s&&!g(r)){s=new l}if(h(r)){r.socket=null;r.destroy(s)}else if(isRequest(r)){r.abort()}else if(isRequest(r.req)){r.req.abort()}else if(typeof r.destroy==="function"){r.destroy(s)}else if(typeof r.close==="function"){r.close()}else if(s){a.nextTick(emitErrorCloseLegacy,r,s)}else{a.nextTick(emitCloseLegacy,r)}if(!r.destroyed){r[u]=true}}r.exports={construct:construct,destroyer:destroyer,destroy:destroy,undestroy:undestroy,errorOrDestroy:errorOrDestroy}},72613:(r,s,i)=>{"use strict";const{ObjectDefineProperties:a,ObjectGetOwnPropertyDescriptor:A,ObjectKeys:c,ObjectSetPrototypeOf:l}=i(89629);r.exports=Duplex;const d=i(57920);const u=i(48488);l(Duplex.prototype,d.prototype);l(Duplex,d);{const r=c(u.prototype);for(let s=0;s{const a=i(45676);"use strict";const A=i(14300);const{isReadable:c,isWritable:l,isIterable:d,isNodeStream:u,isReadableNodeStream:p,isWritableNodeStream:g,isDuplexNodeStream:h,isReadableStream:C,isWritableStream:y}=i(27981);const I=i(76080);const{AbortError:B,codes:{ERR_INVALID_ARG_TYPE:b,ERR_INVALID_RETURN_VALUE:Q}}=i(80529);const{destroyer:w}=i(97049);const v=i(72613);const S=i(57920);const R=i(48488);const{createDeferredPromise:N}=i(46959);const x=i(39082);const D=globalThis.Blob||A.Blob;const k=typeof D!=="undefined"?function isBlob(r){return r instanceof D}:function isBlob(r){return false};const T=globalThis.AbortController||i(61659).AbortController;const{FunctionPrototypeCall:_}=i(89629);class Duplexify extends v{constructor(r){super(r);if((r===null||r===undefined?undefined:r.readable)===false){this._readableState.readable=false;this._readableState.ended=true;this._readableState.endEmitted=true}if((r===null||r===undefined?undefined:r.writable)===false){this._writableState.writable=false;this._writableState.ending=true;this._writableState.ended=true;this._writableState.finished=true}}}r.exports=function duplexify(r,s){if(h(r)){return r}if(p(r)){return _duplexify({readable:r})}if(g(r)){return _duplexify({writable:r})}if(u(r)){return _duplexify({writable:false,readable:false})}if(C(r)){return _duplexify({readable:S.fromWeb(r)})}if(y(r)){return _duplexify({writable:R.fromWeb(r)})}if(typeof r==="function"){const{value:i,write:A,final:c,destroy:l}=fromAsyncGen(r);if(d(i)){return x(Duplexify,i,{objectMode:true,write:A,final:c,destroy:l})}const u=i===null||i===undefined?undefined:i.then;if(typeof u==="function"){let r;const s=_(u,i,(r=>{if(r!=null){throw new Q("nully","body",r)}}),(s=>{w(r,s)}));return r=new Duplexify({objectMode:true,readable:false,write:A,final(r){c((async()=>{try{await s;a.nextTick(r,null)}catch(s){a.nextTick(r,s)}}))},destroy:l})}throw new Q("Iterable, AsyncIterable or AsyncFunction",s,i)}if(k(r)){return duplexify(r.arrayBuffer())}if(d(r)){return x(Duplexify,r,{objectMode:true,writable:false})}if(C(r===null||r===undefined?undefined:r.readable)&&y(r===null||r===undefined?undefined:r.writable)){return Duplexify.fromWeb(r)}if(typeof(r===null||r===undefined?undefined:r.writable)==="object"||typeof(r===null||r===undefined?undefined:r.readable)==="object"){const s=r!==null&&r!==undefined&&r.readable?p(r===null||r===undefined?undefined:r.readable)?r===null||r===undefined?undefined:r.readable:duplexify(r.readable):undefined;const i=r!==null&&r!==undefined&&r.writable?g(r===null||r===undefined?undefined:r.writable)?r===null||r===undefined?undefined:r.writable:duplexify(r.writable):undefined;return _duplexify({readable:s,writable:i})}const i=r===null||r===undefined?undefined:r.then;if(typeof i==="function"){let s;_(i,r,(r=>{if(r!=null){s.push(r)}s.push(null)}),(r=>{w(s,r)}));return s=new Duplexify({objectMode:true,writable:false,read(){}})}throw new b(s,["Blob","ReadableStream","WritableStream","Stream","Iterable","AsyncIterable","Function","{ readable, writable } pair","Promise"],r)};function fromAsyncGen(r){let{promise:s,resolve:i}=N();const A=new T;const c=A.signal;const l=r(async function*(){while(true){const r=s;s=null;const{chunk:A,done:l,cb:d}=await r;a.nextTick(d);if(l)return;if(c.aborted)throw new B(undefined,{cause:c.reason});({promise:s,resolve:i}=N());yield A}}(),{signal:c});return{value:l,write(r,s,a){const A=i;i=null;A({chunk:r,done:false,cb:a})},final(r){const s=i;i=null;s({done:true,cb:r})},destroy(r,s){A.abort();s(r)}}}function _duplexify(r){const s=r.readable&&typeof r.readable.read!=="function"?S.wrap(r.readable):r.readable;const i=r.writable;let a=!!c(s);let A=!!l(i);let d;let u;let p;let g;let h;function onfinished(r){const s=g;g=null;if(s){s(r)}else if(r){h.destroy(r)}}h=new Duplexify({readableObjectMode:!!(s!==null&&s!==undefined&&s.readableObjectMode),writableObjectMode:!!(i!==null&&i!==undefined&&i.writableObjectMode),readable:a,writable:A});if(A){I(i,(r=>{A=false;if(r){w(s,r)}onfinished(r)}));h._write=function(r,s,a){if(i.write(r,s)){a()}else{d=a}};h._final=function(r){i.end();u=r};i.on("drain",(function(){if(d){const r=d;d=null;r()}}));i.on("finish",(function(){if(u){const r=u;u=null;r()}}))}if(a){I(s,(r=>{a=false;if(r){w(s,r)}onfinished(r)}));s.on("readable",(function(){if(p){const r=p;p=null;r()}}));s.on("end",(function(){h.push(null)}));h._read=function(){while(true){const r=s.read();if(r===null){p=h._read;return}if(!h.push(r)){return}}}}h._destroy=function(r,a){if(!r&&g!==null){r=new B}p=null;d=null;u=null;if(g===null){a(r)}else{g=a;w(i,r);w(s,r)}};return h}},76080:(r,s,i)=>{const a=i(45676);"use strict";const{AbortError:A,codes:c}=i(80529);const{ERR_INVALID_ARG_TYPE:l,ERR_STREAM_PREMATURE_CLOSE:d}=c;const{kEmptyObject:u,once:p}=i(46959);const{validateAbortSignal:g,validateFunction:h,validateObject:C,validateBoolean:y}=i(669);const{Promise:I,PromisePrototypeThen:B,SymbolDispose:b}=i(89629);const{isClosed:Q,isReadable:w,isReadableNodeStream:v,isReadableStream:S,isReadableFinished:R,isReadableErrored:N,isWritable:x,isWritableNodeStream:D,isWritableStream:k,isWritableFinished:T,isWritableErrored:_,isNodeStream:P,willEmitClose:O,kIsClosedPromise:L}=i(27981);let M;function isRequest(r){return r.setHeader&&typeof r.abort==="function"}const nop=()=>{};function eos(r,s,c){var y,I;if(arguments.length===2){c=s;s=u}else if(s==null){s=u}else{C(s,"options")}h(c,"callback");g(s.signal,"options.signal");c=p(c);if(S(r)||k(r)){return eosWeb(r,s,c)}if(!P(r)){throw new l("stream",["ReadableStream","WritableStream","Stream"],r)}const B=(y=s.readable)!==null&&y!==undefined?y:v(r);const L=(I=s.writable)!==null&&I!==undefined?I:D(r);const U=r._writableState;const H=r._readableState;const onlegacyfinish=()=>{if(!r.writable){onfinish()}};let G=O(r)&&v(r)===B&&D(r)===L;let q=T(r,false);const onfinish=()=>{q=true;if(r.destroyed){G=false}if(G&&(!r.readable||B)){return}if(!B||V){c.call(r)}};let V=R(r,false);const onend=()=>{V=true;if(r.destroyed){G=false}if(G&&(!r.writable||L)){return}if(!L||q){c.call(r)}};const onerror=s=>{c.call(r,s)};let j=Q(r);const onclose=()=>{j=true;const s=_(r)||N(r);if(s&&typeof s!=="boolean"){return c.call(r,s)}if(B&&!V&&v(r,true)){if(!R(r,false))return c.call(r,new d)}if(L&&!q){if(!T(r,false))return c.call(r,new d)}c.call(r)};const onclosed=()=>{j=true;const s=_(r)||N(r);if(s&&typeof s!=="boolean"){return c.call(r,s)}c.call(r)};const onrequest=()=>{r.req.on("finish",onfinish)};if(isRequest(r)){r.on("complete",onfinish);if(!G){r.on("abort",onclose)}if(r.req){onrequest()}else{r.on("request",onrequest)}}else if(L&&!U){r.on("end",onlegacyfinish);r.on("close",onlegacyfinish)}if(!G&&typeof r.aborted==="boolean"){r.on("aborted",onclose)}r.on("end",onend);r.on("finish",onfinish);if(s.error!==false){r.on("error",onerror)}r.on("close",onclose);if(j){a.nextTick(onclose)}else if(U!==null&&U!==undefined&&U.errorEmitted||H!==null&&H!==undefined&&H.errorEmitted){if(!G){a.nextTick(onclosed)}}else if(!B&&(!G||w(r))&&(q||x(r)===false)){a.nextTick(onclosed)}else if(!L&&(!G||x(r))&&(V||w(r)===false)){a.nextTick(onclosed)}else if(H&&r.req&&r.aborted){a.nextTick(onclosed)}const cleanup=()=>{c=nop;r.removeListener("aborted",onclose);r.removeListener("complete",onfinish);r.removeListener("abort",onclose);r.removeListener("request",onrequest);if(r.req)r.req.removeListener("finish",onfinish);r.removeListener("end",onlegacyfinish);r.removeListener("close",onlegacyfinish);r.removeListener("finish",onfinish);r.removeListener("end",onend);r.removeListener("error",onerror);r.removeListener("close",onclose)};if(s.signal&&!j){const abort=()=>{const i=c;cleanup();i.call(r,new A(undefined,{cause:s.signal.reason}))};if(s.signal.aborted){a.nextTick(abort)}else{M=M||i(46959).addAbortListener;const a=M(s.signal,abort);const A=c;c=p(((...s)=>{a[b]();A.apply(r,s)}))}}return cleanup}function eosWeb(r,s,c){let l=false;let d=nop;if(s.signal){d=()=>{l=true;c.call(r,new A(undefined,{cause:s.signal.reason}))};if(s.signal.aborted){a.nextTick(d)}else{M=M||i(46959).addAbortListener;const a=M(s.signal,d);const A=c;c=p(((...s)=>{a[b]();A.apply(r,s)}))}}const resolverFn=(...s)=>{if(!l){a.nextTick((()=>c.apply(r,s)))}};B(r[L].promise,resolverFn,resolverFn);return nop}function finished(r,s){var i;let a=false;if(s===null){s=u}if((i=s)!==null&&i!==undefined&&i.cleanup){y(s.cleanup,"cleanup");a=s.cleanup}return new I(((i,A)=>{const c=eos(r,s,(r=>{if(a){c()}if(r){A(r)}else{i()}}))}))}r.exports=eos;r.exports.finished=finished},39082:(r,s,i)=>{"use strict";const a=i(45676);const{PromisePrototypeThen:A,SymbolAsyncIterator:c,SymbolIterator:l}=i(89629);const{Buffer:d}=i(14300);const{ERR_INVALID_ARG_TYPE:u,ERR_STREAM_NULL_VALUES:p}=i(80529).codes;function from(r,s,i){let g;if(typeof s==="string"||s instanceof d){return new r({objectMode:true,...i,read(){this.push(s);this.push(null)}})}let h;if(s&&s[c]){h=true;g=s[c]()}else if(s&&s[l]){h=false;g=s[l]()}else{throw new u("iterable",["Iterable"],s)}const C=new r({objectMode:true,highWaterMark:1,...i});let y=false;C._read=function(){if(!y){y=true;next()}};C._destroy=function(r,s){A(close(r),(()=>a.nextTick(s,r)),(i=>a.nextTick(s,i||r)))};async function close(r){const s=r!==undefined&&r!==null;const i=typeof g.throw==="function";if(s&&i){const{value:s,done:i}=await g.throw(r);await s;if(i){return}}if(typeof g.return==="function"){const{value:r}=await g.return();await r}}async function next(){for(;;){try{const{value:r,done:s}=h?await g.next():g.next();if(s){C.push(null)}else{const s=r&&typeof r.then==="function"?await r:r;if(s===null){y=false;throw new p}else if(C.push(s)){continue}else{y=false}}}catch(r){C.destroy(r)}break}}return C}r.exports=from},49792:(r,s,i)=>{"use strict";const{ArrayIsArray:a,ObjectSetPrototypeOf:A}=i(89629);const{EventEmitter:c}=i(82361);function Stream(r){c.call(this,r)}A(Stream.prototype,c.prototype);A(Stream,c);Stream.prototype.pipe=function(r,s){const i=this;function ondata(s){if(r.writable&&r.write(s)===false&&i.pause){i.pause()}}i.on("data",ondata);function ondrain(){if(i.readable&&i.resume){i.resume()}}r.on("drain",ondrain);if(!r._isStdio&&(!s||s.end!==false)){i.on("end",onend);i.on("close",onclose)}let a=false;function onend(){if(a)return;a=true;r.end()}function onclose(){if(a)return;a=true;if(typeof r.destroy==="function")r.destroy()}function onerror(r){cleanup();if(c.listenerCount(this,"error")===0){this.emit("error",r)}}prependListener(i,"error",onerror);prependListener(r,"error",onerror);function cleanup(){i.removeListener("data",ondata);r.removeListener("drain",ondrain);i.removeListener("end",onend);i.removeListener("close",onclose);i.removeListener("error",onerror);r.removeListener("error",onerror);i.removeListener("end",cleanup);i.removeListener("close",cleanup);r.removeListener("close",cleanup)}i.on("end",cleanup);i.on("close",cleanup);r.on("close",cleanup);r.emit("pipe",i);return r};function prependListener(r,s,i){if(typeof r.prependListener==="function")return r.prependListener(s,i);if(!r._events||!r._events[s])r.on(s,i);else if(a(r._events[s]))r._events[s].unshift(i);else r._events[s]=[i,r._events[s]]}r.exports={Stream:Stream,prependListener:prependListener}},63193:(r,s,i)=>{"use strict";const a=globalThis.AbortController||i(61659).AbortController;const{codes:{ERR_INVALID_ARG_VALUE:A,ERR_INVALID_ARG_TYPE:c,ERR_MISSING_ARGS:l,ERR_OUT_OF_RANGE:d},AbortError:u}=i(80529);const{validateAbortSignal:p,validateInteger:g,validateObject:h}=i(669);const C=i(89629).Symbol("kWeak");const y=i(89629).Symbol("kResistStopPropagation");const{finished:I}=i(76080);const B=i(63129);const{addAbortSignalNoValidate:b}=i(80289);const{isWritable:Q,isNodeStream:w}=i(27981);const{deprecate:v}=i(46959);const{ArrayPrototypePush:S,Boolean:R,MathFloor:N,Number:x,NumberIsNaN:D,Promise:k,PromiseReject:T,PromiseResolve:_,PromisePrototypeThen:P,Symbol:O}=i(89629);const L=O("kEmpty");const M=O("kEof");function compose(r,s){if(s!=null){h(s,"options")}if((s===null||s===undefined?undefined:s.signal)!=null){p(s.signal,"options.signal")}if(w(r)&&!Q(r)){throw new A("stream",r,"must be writable")}const i=B(this,r);if(s!==null&&s!==undefined&&s.signal){b(s.signal,i)}return i}function map(r,s){if(typeof r!=="function"){throw new c("fn",["Function","AsyncFunction"],r)}if(s!=null){h(s,"options")}if((s===null||s===undefined?undefined:s.signal)!=null){p(s.signal,"options.signal")}let a=1;if((s===null||s===undefined?undefined:s.concurrency)!=null){a=N(s.concurrency)}let A=a-1;if((s===null||s===undefined?undefined:s.highWaterMark)!=null){A=N(s.highWaterMark)}g(a,"options.concurrency",1);g(A,"options.highWaterMark",0);A+=a;return async function*map(){const c=i(46959).AbortSignalAny([s===null||s===undefined?undefined:s.signal].filter(R));const l=this;const d=[];const p={signal:c};let g;let h;let C=false;let y=0;function onCatch(){C=true;afterItemProcessed()}function afterItemProcessed(){y-=1;maybeResume()}function maybeResume(){if(h&&!C&&y=A||y>=a)){await new k((r=>{h=r}))}}d.push(M)}catch(r){const s=T(r);P(s,afterItemProcessed,onCatch);d.push(s)}finally{C=true;if(g){g();g=null}}}pump();try{while(true){while(d.length>0){const r=await d[0];if(r===M){return}if(c.aborted){throw new u}if(r!==L){yield r}d.shift();maybeResume()}await new k((r=>{g=r}))}}finally{C=true;if(h){h();h=null}}}.call(this)}function asIndexedPairs(r=undefined){if(r!=null){h(r,"options")}if((r===null||r===undefined?undefined:r.signal)!=null){p(r.signal,"options.signal")}return async function*asIndexedPairs(){let s=0;for await(const a of this){var i;if(r!==null&&r!==undefined&&(i=r.signal)!==null&&i!==undefined&&i.aborted){throw new u({cause:r.signal.reason})}yield[s++,a]}}.call(this)}async function some(r,s=undefined){for await(const i of filter.call(this,r,s)){return true}return false}async function every(r,s=undefined){if(typeof r!=="function"){throw new c("fn",["Function","AsyncFunction"],r)}return!await some.call(this,(async(...s)=>!await r(...s)),s)}async function find(r,s){for await(const i of filter.call(this,r,s)){return i}return undefined}async function forEach(r,s){if(typeof r!=="function"){throw new c("fn",["Function","AsyncFunction"],r)}async function forEachFn(s,i){await r(s,i);return L}for await(const r of map.call(this,forEachFn,s));}function filter(r,s){if(typeof r!=="function"){throw new c("fn",["Function","AsyncFunction"],r)}async function filterFn(s,i){if(await r(s,i)){return s}return L}return map.call(this,filterFn,s)}class ReduceAwareErrMissingArgs extends l{constructor(){super("reduce");this.message="Reduce of an empty stream requires an initial value"}}async function reduce(r,s,i){var A;if(typeof r!=="function"){throw new c("reducer",["Function","AsyncFunction"],r)}if(i!=null){h(i,"options")}if((i===null||i===undefined?undefined:i.signal)!=null){p(i.signal,"options.signal")}let l=arguments.length>1;if(i!==null&&i!==undefined&&(A=i.signal)!==null&&A!==undefined&&A.aborted){const r=new u(undefined,{cause:i.signal.reason});this.once("error",(()=>{}));await I(this.destroy(r));throw r}const d=new a;const g=d.signal;if(i!==null&&i!==undefined&&i.signal){const r={once:true,[C]:this,[y]:true};i.signal.addEventListener("abort",(()=>d.abort()),r)}let B=false;try{for await(const a of this){var b;B=true;if(i!==null&&i!==undefined&&(b=i.signal)!==null&&b!==undefined&&b.aborted){throw new u}if(!l){s=a;l=true}else{s=await r(s,a,{signal:g})}}if(!B&&!l){throw new ReduceAwareErrMissingArgs}}finally{d.abort()}return s}async function toArray(r){if(r!=null){h(r,"options")}if((r===null||r===undefined?undefined:r.signal)!=null){p(r.signal,"options.signal")}const s=[];for await(const a of this){var i;if(r!==null&&r!==undefined&&(i=r.signal)!==null&&i!==undefined&&i.aborted){throw new u(undefined,{cause:r.signal.reason})}S(s,a)}return s}function flatMap(r,s){const i=map.call(this,r,s);return async function*flatMap(){for await(const r of i){yield*r}}.call(this)}function toIntegerOrInfinity(r){r=x(r);if(D(r)){return 0}if(r<0){throw new d("number",">= 0",r)}return r}function drop(r,s=undefined){if(s!=null){h(s,"options")}if((s===null||s===undefined?undefined:s.signal)!=null){p(s.signal,"options.signal")}r=toIntegerOrInfinity(r);return async function*drop(){var i;if(s!==null&&s!==undefined&&(i=s.signal)!==null&&i!==undefined&&i.aborted){throw new u}for await(const i of this){var a;if(s!==null&&s!==undefined&&(a=s.signal)!==null&&a!==undefined&&a.aborted){throw new u}if(r--<=0){yield i}}}.call(this)}function take(r,s=undefined){if(s!=null){h(s,"options")}if((s===null||s===undefined?undefined:s.signal)!=null){p(s.signal,"options.signal")}r=toIntegerOrInfinity(r);return async function*take(){var i;if(s!==null&&s!==undefined&&(i=s.signal)!==null&&i!==undefined&&i.aborted){throw new u}for await(const i of this){var a;if(s!==null&&s!==undefined&&(a=s.signal)!==null&&a!==undefined&&a.aborted){throw new u}if(r-- >0){yield i}if(r<=0){return}}}.call(this)}r.exports.streamReturningOperators={asIndexedPairs:v(asIndexedPairs,"readable.asIndexedPairs will be removed in a future version."),drop:drop,filter:filter,flatMap:flatMap,map:map,take:take,compose:compose};r.exports.promiseReturningOperators={every:every,forEach:forEach,reduce:reduce,toArray:toArray,some:some,find:find}},72839:(r,s,i)=>{"use strict";const{ObjectSetPrototypeOf:a}=i(89629);r.exports=PassThrough;const A=i(86941);a(PassThrough.prototype,A.prototype);a(PassThrough,A);function PassThrough(r){if(!(this instanceof PassThrough))return new PassThrough(r);A.call(this,r)}PassThrough.prototype._transform=function(r,s,i){i(null,r)}},76989:(r,s,i)=>{const a=i(45676);"use strict";const{ArrayIsArray:A,Promise:c,SymbolAsyncIterator:l,SymbolDispose:d}=i(89629);const u=i(76080);const{once:p}=i(46959);const g=i(97049);const h=i(72613);const{aggregateTwoErrors:C,codes:{ERR_INVALID_ARG_TYPE:y,ERR_INVALID_RETURN_VALUE:I,ERR_MISSING_ARGS:B,ERR_STREAM_DESTROYED:b,ERR_STREAM_PREMATURE_CLOSE:Q},AbortError:w}=i(80529);const{validateFunction:v,validateAbortSignal:S}=i(669);const{isIterable:R,isReadable:N,isReadableNodeStream:x,isNodeStream:D,isTransformStream:k,isWebStream:T,isReadableStream:_,isReadableFinished:P}=i(27981);const O=globalThis.AbortController||i(61659).AbortController;let L;let M;let U;function destroyer(r,s,i){let a=false;r.on("close",(()=>{a=true}));const A=u(r,{readable:s,writable:i},(r=>{a=!r}));return{destroy:s=>{if(a)return;a=true;g.destroyer(r,s||new b("pipe"))},cleanup:A}}function popCallback(r){v(r[r.length-1],"streams[stream.length - 1]");return r.pop()}function makeAsyncIterable(r){if(R(r)){return r}else if(x(r)){return fromReadable(r)}throw new y("val",["Readable","Iterable","AsyncIterable"],r)}async function*fromReadable(r){if(!M){M=i(57920)}yield*M.prototype[l].call(r)}async function pumpToNode(r,s,i,{end:a}){let A;let l=null;const resume=r=>{if(r){A=r}if(l){const r=l;l=null;r()}};const wait=()=>new c(((r,s)=>{if(A){s(A)}else{l=()=>{if(A){s(A)}else{r()}}}}));s.on("drain",resume);const d=u(s,{readable:false},resume);try{if(s.writableNeedDrain){await wait()}for await(const i of r){if(!s.write(i)){await wait()}}if(a){s.end();await wait()}i()}catch(r){i(A!==r?C(A,r):r)}finally{d();s.off("drain",resume)}}async function pumpToWeb(r,s,i,{end:a}){if(k(s)){s=s.writable}const A=s.getWriter();try{for await(const s of r){await A.ready;A.write(s).catch((()=>{}))}await A.ready;if(a){await A.close()}i()}catch(r){try{await A.abort(r);i(r)}catch(r){i(r)}}}function pipeline(...r){return pipelineImpl(r,p(popCallback(r)))}function pipelineImpl(r,s,c){if(r.length===1&&A(r[0])){r=r[0]}if(r.length<2){throw new B("streams")}const l=new O;const u=l.signal;const p=c===null||c===undefined?undefined:c.signal;const g=[];S(p,"options.signal");function abort(){finishImpl(new w)}U=U||i(46959).addAbortListener;let C;if(p){C=U(p,abort)}let b;let Q;const v=[];let P=0;function finish(r){finishImpl(r,--P===0)}function finishImpl(r,i){var A;if(r&&(!b||b.code==="ERR_STREAM_PREMATURE_CLOSE")){b=r}if(!b&&!i){return}while(v.length){v.shift()(b)}(A=C)===null||A===undefined?undefined:A[d]();l.abort();if(i){if(!b){g.forEach((r=>r()))}a.nextTick(s,b,Q)}}let M;for(let q=0;q0;const Y=j||(c===null||c===undefined?undefined:c.end)!==false;const J=q===r.length-1;if(D(V)){if(Y){const{destroy:W,cleanup:X}=destroyer(V,j,z);v.push(W);if(N(V)&&J){g.push(X)}}function onError(r){if(r&&r.name!=="AbortError"&&r.code!=="ERR_STREAM_PREMATURE_CLOSE"){finish(r)}}V.on("error",onError);if(N(V)&&J){g.push((()=>{V.removeListener("error",onError)}))}}if(q===0){if(typeof V==="function"){M=V({signal:u});if(!R(M)){throw new I("Iterable, AsyncIterable or Stream","source",M)}}else if(R(V)||x(V)||k(V)){M=V}else{M=h.from(V)}}else if(typeof V==="function"){if(k(M)){var H;M=makeAsyncIterable((H=M)===null||H===undefined?undefined:H.readable)}else{M=makeAsyncIterable(M)}M=V(M,{signal:u});if(j){if(!R(M,true)){throw new I("AsyncIterable",`transform[${q-1}]`,M)}}else{var G;if(!L){L=i(72839)}const $=new L({objectMode:true});const K=(G=M)===null||G===undefined?undefined:G.then;if(typeof K==="function"){P++;K.call(M,(r=>{Q=r;if(r!=null){$.write(r)}if(Y){$.end()}a.nextTick(finish)}),(r=>{$.destroy(r);a.nextTick(finish,r)}))}else if(R(M,true)){P++;pumpToNode(M,$,finish,{end:Y})}else if(_(M)||k(M)){const te=M.readable||M;P++;pumpToNode(te,$,finish,{end:Y})}else{throw new I("AsyncIterable or Promise","destination",M)}M=$;const{destroy:Z,cleanup:ee}=destroyer(M,false,true);v.push(Z);if(J){g.push(ee)}}}else if(D(V)){if(x(M)){P+=2;const re=pipe(M,V,finish,{end:Y});if(N(V)&&J){g.push(re)}}else if(k(M)||_(M)){const ne=M.readable||M;P++;pumpToNode(ne,V,finish,{end:Y})}else if(R(M)){P++;pumpToNode(M,V,finish,{end:Y})}else{throw new y("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],M)}M=V}else if(T(V)){if(x(M)){P++;pumpToWeb(makeAsyncIterable(M),V,finish,{end:Y})}else if(_(M)||R(M)){P++;pumpToWeb(M,V,finish,{end:Y})}else if(k(M)){P++;pumpToWeb(M.readable,V,finish,{end:Y})}else{throw new y("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],M)}M=V}else{M=h.from(V)}}if(u!==null&&u!==undefined&&u.aborted||p!==null&&p!==undefined&&p.aborted){a.nextTick(abort)}return M}function pipe(r,s,i,{end:A}){let c=false;s.on("close",(()=>{if(!c){i(new Q)}}));r.pipe(s,{end:false});if(A){function endFn(){c=true;s.end()}if(P(r)){a.nextTick(endFn)}else{r.once("end",endFn)}}else{i()}u(r,{readable:true,writable:false},(s=>{const a=r._readableState;if(s&&s.code==="ERR_STREAM_PREMATURE_CLOSE"&&a&&a.ended&&!a.errored&&!a.errorEmitted){r.once("end",i).once("error",i)}else{i(s)}}));return u(s,{readable:false,writable:true},i)}r.exports={pipelineImpl:pipelineImpl,pipeline:pipeline}},57920:(r,s,i)=>{const a=i(45676);"use strict";const{ArrayPrototypeIndexOf:A,NumberIsInteger:c,NumberIsNaN:l,NumberParseInt:d,ObjectDefineProperties:u,ObjectKeys:p,ObjectSetPrototypeOf:g,Promise:h,SafeSet:C,SymbolAsyncDispose:y,SymbolAsyncIterator:I,Symbol:B}=i(89629);r.exports=Readable;Readable.ReadableState=ReadableState;const{EventEmitter:b}=i(82361);const{Stream:Q,prependListener:w}=i(49792);const{Buffer:v}=i(14300);const{addAbortSignal:S}=i(80289);const R=i(76080);let N=i(46959).debuglog("stream",(r=>{N=r}));const x=i(52746);const D=i(97049);const{getHighWaterMark:k,getDefaultHighWaterMark:T}=i(39948);const{aggregateTwoErrors:_,codes:{ERR_INVALID_ARG_TYPE:P,ERR_METHOD_NOT_IMPLEMENTED:O,ERR_OUT_OF_RANGE:L,ERR_STREAM_PUSH_AFTER_EOF:M,ERR_STREAM_UNSHIFT_AFTER_END_EVENT:U},AbortError:H}=i(80529);const{validateObject:G}=i(669);const q=B("kPaused");const{StringDecoder:V}=i(71576);const j=i(39082);g(Readable.prototype,Q.prototype);g(Readable,Q);const nop=()=>{};const{errorOrDestroy:z}=D;const Y=1<<0;const J=1<<1;const W=1<<2;const X=1<<3;const $=1<<4;const K=1<<5;const Z=1<<6;const ee=1<<7;const te=1<<8;const re=1<<9;const ne=1<<10;const se=1<<11;const ie=1<<12;const oe=1<<13;const ae=1<<14;const Ae=1<<15;const ce=1<<16;const le=1<<17;const de=1<<18;function makeBitMapDescriptor(r){return{enumerable:false,get(){return(this.state&r)!==0},set(s){if(s)this.state|=r;else this.state&=~r}}}u(ReadableState.prototype,{objectMode:makeBitMapDescriptor(Y),ended:makeBitMapDescriptor(J),endEmitted:makeBitMapDescriptor(W),reading:makeBitMapDescriptor(X),constructed:makeBitMapDescriptor($),sync:makeBitMapDescriptor(K),needReadable:makeBitMapDescriptor(Z),emittedReadable:makeBitMapDescriptor(ee),readableListening:makeBitMapDescriptor(te),resumeScheduled:makeBitMapDescriptor(re),errorEmitted:makeBitMapDescriptor(ne),emitClose:makeBitMapDescriptor(se),autoDestroy:makeBitMapDescriptor(ie),destroyed:makeBitMapDescriptor(oe),closed:makeBitMapDescriptor(ae),closeEmitted:makeBitMapDescriptor(Ae),multiAwaitDrain:makeBitMapDescriptor(ce),readingMore:makeBitMapDescriptor(le),dataEmitted:makeBitMapDescriptor(de)});function ReadableState(r,s,a){if(typeof a!=="boolean")a=s instanceof i(72613);this.state=se|ie|$|K;if(r&&r.objectMode)this.state|=Y;if(a&&r&&r.readableObjectMode)this.state|=Y;this.highWaterMark=r?k(this,r,"readableHighWaterMark",a):T(false);this.buffer=new x;this.length=0;this.pipes=[];this.flowing=null;this[q]=null;if(r&&r.emitClose===false)this.state&=~se;if(r&&r.autoDestroy===false)this.state&=~ie;this.errored=null;this.defaultEncoding=r&&r.defaultEncoding||"utf8";this.awaitDrainWriters=null;this.decoder=null;this.encoding=null;if(r&&r.encoding){this.decoder=new V(r.encoding);this.encoding=r.encoding}}function Readable(r){if(!(this instanceof Readable))return new Readable(r);const s=this instanceof i(72613);this._readableState=new ReadableState(r,this,s);if(r){if(typeof r.read==="function")this._read=r.read;if(typeof r.destroy==="function")this._destroy=r.destroy;if(typeof r.construct==="function")this._construct=r.construct;if(r.signal&&!s)S(r.signal,this)}Q.call(this,r);D.construct(this,(()=>{if(this._readableState.needReadable){maybeReadMore(this,this._readableState)}}))}Readable.prototype.destroy=D.destroy;Readable.prototype._undestroy=D.undestroy;Readable.prototype._destroy=function(r,s){s(r)};Readable.prototype[b.captureRejectionSymbol]=function(r){this.destroy(r)};Readable.prototype[y]=function(){let r;if(!this.destroyed){r=this.readableEnded?null:new H;this.destroy(r)}return new h(((s,i)=>R(this,(a=>a&&a!==r?i(a):s(null)))))};Readable.prototype.push=function(r,s){return readableAddChunk(this,r,s,false)};Readable.prototype.unshift=function(r,s){return readableAddChunk(this,r,s,true)};function readableAddChunk(r,s,i,a){N("readableAddChunk",s);const A=r._readableState;let c;if((A.state&Y)===0){if(typeof s==="string"){i=i||A.defaultEncoding;if(A.encoding!==i){if(a&&A.encoding){s=v.from(s,i).toString(A.encoding)}else{s=v.from(s,i);i=""}}}else if(s instanceof v){i=""}else if(Q._isUint8Array(s)){s=Q._uint8ArrayToBuffer(s);i=""}else if(s!=null){c=new P("chunk",["string","Buffer","Uint8Array"],s)}}if(c){z(r,c)}else if(s===null){A.state&=~X;onEofChunk(r,A)}else if((A.state&Y)!==0||s&&s.length>0){if(a){if((A.state&W)!==0)z(r,new U);else if(A.destroyed||A.errored)return false;else addChunk(r,A,s,true)}else if(A.ended){z(r,new M)}else if(A.destroyed||A.errored){return false}else{A.state&=~X;if(A.decoder&&!i){s=A.decoder.write(s);if(A.objectMode||s.length!==0)addChunk(r,A,s,false);else maybeReadMore(r,A)}else{addChunk(r,A,s,false)}}}else if(!a){A.state&=~X;maybeReadMore(r,A)}return!A.ended&&(A.length0){if((s.state&ce)!==0){s.awaitDrainWriters.clear()}else{s.awaitDrainWriters=null}s.dataEmitted=true;r.emit("data",i)}else{s.length+=s.objectMode?1:i.length;if(a)s.buffer.unshift(i);else s.buffer.push(i);if((s.state&Z)!==0)emitReadable(r)}maybeReadMore(r,s)}Readable.prototype.isPaused=function(){const r=this._readableState;return r[q]===true||r.flowing===false};Readable.prototype.setEncoding=function(r){const s=new V(r);this._readableState.decoder=s;this._readableState.encoding=this._readableState.decoder.encoding;const i=this._readableState.buffer;let a="";for(const r of i){a+=s.write(r)}i.clear();if(a!=="")i.push(a);this._readableState.length=a.length;return this};const ue=1073741824;function computeNewHighWaterMark(r){if(r>ue){throw new L("size","<= 1GiB",r)}else{r--;r|=r>>>1;r|=r>>>2;r|=r>>>4;r|=r>>>8;r|=r>>>16;r++}return r}function howMuchToRead(r,s){if(r<=0||s.length===0&&s.ended)return 0;if((s.state&Y)!==0)return 1;if(l(r)){if(s.flowing&&s.length)return s.buffer.first().length;return s.length}if(r<=s.length)return r;return s.ended?s.length:0}Readable.prototype.read=function(r){N("read",r);if(r===undefined){r=NaN}else if(!c(r)){r=d(r,10)}const s=this._readableState;const i=r;if(r>s.highWaterMark)s.highWaterMark=computeNewHighWaterMark(r);if(r!==0)s.state&=~ee;if(r===0&&s.needReadable&&((s.highWaterMark!==0?s.length>=s.highWaterMark:s.length>0)||s.ended)){N("read: emitReadable",s.length,s.ended);if(s.length===0&&s.ended)endReadable(this);else emitReadable(this);return null}r=howMuchToRead(r,s);if(r===0&&s.ended){if(s.length===0)endReadable(this);return null}let a=(s.state&Z)!==0;N("need readable",a);if(s.length===0||s.length-r0)A=fromList(r,s);else A=null;if(A===null){s.needReadable=s.length<=s.highWaterMark;r=0}else{s.length-=r;if(s.multiAwaitDrain){s.awaitDrainWriters.clear()}else{s.awaitDrainWriters=null}}if(s.length===0){if(!s.ended)s.needReadable=true;if(i!==r&&s.ended)endReadable(this)}if(A!==null&&!s.errorEmitted&&!s.closeEmitted){s.dataEmitted=true;this.emit("data",A)}return A};function onEofChunk(r,s){N("onEofChunk");if(s.ended)return;if(s.decoder){const r=s.decoder.end();if(r&&r.length){s.buffer.push(r);s.length+=s.objectMode?1:r.length}}s.ended=true;if(s.sync){emitReadable(r)}else{s.needReadable=false;s.emittedReadable=true;emitReadable_(r)}}function emitReadable(r){const s=r._readableState;N("emitReadable",s.needReadable,s.emittedReadable);s.needReadable=false;if(!s.emittedReadable){N("emitReadable",s.flowing);s.emittedReadable=true;a.nextTick(emitReadable_,r)}}function emitReadable_(r){const s=r._readableState;N("emitReadable_",s.destroyed,s.length,s.ended);if(!s.destroyed&&!s.errored&&(s.length||s.ended)){r.emit("readable");s.emittedReadable=false}s.needReadable=!s.flowing&&!s.ended&&s.length<=s.highWaterMark;flow(r)}function maybeReadMore(r,s){if(!s.readingMore&&s.constructed){s.readingMore=true;a.nextTick(maybeReadMore_,r,s)}}function maybeReadMore_(r,s){while(!s.reading&&!s.ended&&(s.length1&&A.pipes.includes(r)){N("false write response, pause",A.awaitDrainWriters.size);A.awaitDrainWriters.add(r)}i.pause()}if(!d){d=pipeOnDrain(i,r);r.on("drain",d)}}i.on("data",ondata);function ondata(s){N("ondata");const i=r.write(s);N("dest.write",i);if(i===false){pause()}}function onerror(s){N("onerror",s);unpipe();r.removeListener("error",onerror);if(r.listenerCount("error")===0){const i=r._writableState||r._readableState;if(i&&!i.errorEmitted){z(r,s)}else{r.emit("error",s)}}}w(r,"error",onerror);function onclose(){r.removeListener("finish",onfinish);unpipe()}r.once("close",onclose);function onfinish(){N("onfinish");r.removeListener("close",onclose);unpipe()}r.once("finish",onfinish);function unpipe(){N("unpipe");i.unpipe(r)}r.emit("pipe",i);if(r.writableNeedDrain===true){pause()}else if(!A.flowing){N("pipe resume");i.resume()}return r};function pipeOnDrain(r,s){return function pipeOnDrainFunctionResult(){const i=r._readableState;if(i.awaitDrainWriters===s){N("pipeOnDrain",1);i.awaitDrainWriters=null}else if(i.multiAwaitDrain){N("pipeOnDrain",i.awaitDrainWriters.size);i.awaitDrainWriters.delete(s)}if((!i.awaitDrainWriters||i.awaitDrainWriters.size===0)&&r.listenerCount("data")){r.resume()}}}Readable.prototype.unpipe=function(r){const s=this._readableState;const i={hasUnpiped:false};if(s.pipes.length===0)return this;if(!r){const r=s.pipes;s.pipes=[];this.pause();for(let s=0;s0;if(A.flowing!==false)this.resume()}else if(r==="readable"){if(!A.endEmitted&&!A.readableListening){A.readableListening=A.needReadable=true;A.flowing=false;A.emittedReadable=false;N("on readable",A.length,A.reading);if(A.length){emitReadable(this)}else if(!A.reading){a.nextTick(nReadingNextTick,this)}}}return i};Readable.prototype.addListener=Readable.prototype.on;Readable.prototype.removeListener=function(r,s){const i=Q.prototype.removeListener.call(this,r,s);if(r==="readable"){a.nextTick(updateReadableListening,this)}return i};Readable.prototype.off=Readable.prototype.removeListener;Readable.prototype.removeAllListeners=function(r){const s=Q.prototype.removeAllListeners.apply(this,arguments);if(r==="readable"||r===undefined){a.nextTick(updateReadableListening,this)}return s};function updateReadableListening(r){const s=r._readableState;s.readableListening=r.listenerCount("readable")>0;if(s.resumeScheduled&&s[q]===false){s.flowing=true}else if(r.listenerCount("data")>0){r.resume()}else if(!s.readableListening){s.flowing=null}}function nReadingNextTick(r){N("readable nexttick read 0");r.read(0)}Readable.prototype.resume=function(){const r=this._readableState;if(!r.flowing){N("resume");r.flowing=!r.readableListening;resume(this,r)}r[q]=false;return this};function resume(r,s){if(!s.resumeScheduled){s.resumeScheduled=true;a.nextTick(resume_,r,s)}}function resume_(r,s){N("resume",s.reading);if(!s.reading){r.read(0)}s.resumeScheduled=false;r.emit("resume");flow(r);if(s.flowing&&!s.reading)r.read(0)}Readable.prototype.pause=function(){N("call pause flowing=%j",this._readableState.flowing);if(this._readableState.flowing!==false){N("pause");this._readableState.flowing=false;this.emit("pause")}this._readableState[q]=true;return this};function flow(r){const s=r._readableState;N("flow",s.flowing);while(s.flowing&&r.read()!==null);}Readable.prototype.wrap=function(r){let s=false;r.on("data",(i=>{if(!this.push(i)&&r.pause){s=true;r.pause()}}));r.on("end",(()=>{this.push(null)}));r.on("error",(r=>{z(this,r)}));r.on("close",(()=>{this.destroy()}));r.on("destroy",(()=>{this.destroy()}));this._read=()=>{if(s&&r.resume){s=false;r.resume()}};const i=p(r);for(let s=1;s{a=r?_(a,r):null;i();i=nop}));try{while(true){const s=r.destroyed?null:r.read();if(s!==null){yield s}else if(a){throw a}else if(a===null){return}else{await new h(next)}}}catch(r){a=_(a,r);throw a}finally{if((a||(s===null||s===undefined?undefined:s.destroyOnReturn)!==false)&&(a===undefined||r._readableState.autoDestroy)){D.destroyer(r,null)}else{r.off("readable",next);A()}}}u(Readable.prototype,{readable:{__proto__:null,get(){const r=this._readableState;return!!r&&r.readable!==false&&!r.destroyed&&!r.errorEmitted&&!r.endEmitted},set(r){if(this._readableState){this._readableState.readable=!!r}}},readableDidRead:{__proto__:null,enumerable:false,get:function(){return this._readableState.dataEmitted}},readableAborted:{__proto__:null,enumerable:false,get:function(){return!!(this._readableState.readable!==false&&(this._readableState.destroyed||this._readableState.errored)&&!this._readableState.endEmitted)}},readableHighWaterMark:{__proto__:null,enumerable:false,get:function(){return this._readableState.highWaterMark}},readableBuffer:{__proto__:null,enumerable:false,get:function(){return this._readableState&&this._readableState.buffer}},readableFlowing:{__proto__:null,enumerable:false,get:function(){return this._readableState.flowing},set:function(r){if(this._readableState){this._readableState.flowing=r}}},readableLength:{__proto__:null,enumerable:false,get(){return this._readableState.length}},readableObjectMode:{__proto__:null,enumerable:false,get(){return this._readableState?this._readableState.objectMode:false}},readableEncoding:{__proto__:null,enumerable:false,get(){return this._readableState?this._readableState.encoding:null}},errored:{__proto__:null,enumerable:false,get(){return this._readableState?this._readableState.errored:null}},closed:{__proto__:null,get(){return this._readableState?this._readableState.closed:false}},destroyed:{__proto__:null,enumerable:false,get(){return this._readableState?this._readableState.destroyed:false},set(r){if(!this._readableState){return}this._readableState.destroyed=r}},readableEnded:{__proto__:null,enumerable:false,get(){return this._readableState?this._readableState.endEmitted:false}}});u(ReadableState.prototype,{pipesCount:{__proto__:null,get(){return this.pipes.length}},paused:{__proto__:null,get(){return this[q]!==false},set(r){this[q]=!!r}}});Readable._fromList=fromList;function fromList(r,s){if(s.length===0)return null;let i;if(s.objectMode)i=s.buffer.shift();else if(!r||r>=s.length){if(s.decoder)i=s.buffer.join("");else if(s.buffer.length===1)i=s.buffer.first();else i=s.buffer.concat(s.length);s.buffer.clear()}else{i=s.buffer.consume(r,s.decoder)}return i}function endReadable(r){const s=r._readableState;N("endReadable",s.endEmitted);if(!s.endEmitted){s.ended=true;a.nextTick(endReadableNT,s,r)}}function endReadableNT(r,s){N("endReadableNT",r.endEmitted,r.length);if(!r.errored&&!r.closeEmitted&&!r.endEmitted&&r.length===0){r.endEmitted=true;s.emit("end");if(s.writable&&s.allowHalfOpen===false){a.nextTick(endWritableNT,s)}else if(r.autoDestroy){const r=s._writableState;const i=!r||r.autoDestroy&&(r.finished||r.writable===false);if(i){s.destroy()}}}}function endWritableNT(r){const s=r.writable&&!r.writableEnded&&!r.destroyed;if(s){r.end()}}Readable.from=function(r,s){return j(Readable,r,s)};let pe;function lazyWebStreams(){if(pe===undefined)pe={};return pe}Readable.fromWeb=function(r,s){return lazyWebStreams().newStreamReadableFromReadableStream(r,s)};Readable.toWeb=function(r,s){return lazyWebStreams().newReadableStreamFromStreamReadable(r,s)};Readable.wrap=function(r,s){var i,a;return new Readable({objectMode:(i=(a=r.readableObjectMode)!==null&&a!==undefined?a:r.objectMode)!==null&&i!==undefined?i:true,...s,destroy(s,i){D.destroyer(r,s);i(s)}}).wrap(r)}},39948:(r,s,i)=>{"use strict";const{MathFloor:a,NumberIsInteger:A}=i(89629);const{validateInteger:c}=i(669);const{ERR_INVALID_ARG_VALUE:l}=i(80529).codes;let d=16*1024;let u=16;function highWaterMarkFrom(r,s,i){return r.highWaterMark!=null?r.highWaterMark:s?r[i]:null}function getDefaultHighWaterMark(r){return r?u:d}function setDefaultHighWaterMark(r,s){c(s,"value",0);if(r){u=s}else{d=s}}function getHighWaterMark(r,s,i,c){const d=highWaterMarkFrom(s,c,i);if(d!=null){if(!A(d)||d<0){const r=c?`options.${i}`:"options.highWaterMark";throw new l(r,d)}return a(d)}return getDefaultHighWaterMark(r.objectMode)}r.exports={getHighWaterMark:getHighWaterMark,getDefaultHighWaterMark:getDefaultHighWaterMark,setDefaultHighWaterMark:setDefaultHighWaterMark}},86941:(r,s,i)=>{"use strict";const{ObjectSetPrototypeOf:a,Symbol:A}=i(89629);r.exports=Transform;const{ERR_METHOD_NOT_IMPLEMENTED:c}=i(80529).codes;const l=i(72613);const{getHighWaterMark:d}=i(39948);a(Transform.prototype,l.prototype);a(Transform,l);const u=A("kCallback");function Transform(r){if(!(this instanceof Transform))return new Transform(r);const s=r?d(this,r,"readableHighWaterMark",true):null;if(s===0){r={...r,highWaterMark:null,readableHighWaterMark:s,writableHighWaterMark:r.writableHighWaterMark||0}}l.call(this,r);this._readableState.sync=false;this[u]=null;if(r){if(typeof r.transform==="function")this._transform=r.transform;if(typeof r.flush==="function")this._flush=r.flush}this.on("prefinish",prefinish)}function final(r){if(typeof this._flush==="function"&&!this.destroyed){this._flush(((s,i)=>{if(s){if(r){r(s)}else{this.destroy(s)}return}if(i!=null){this.push(i)}this.push(null);if(r){r()}}))}else{this.push(null);if(r){r()}}}function prefinish(){if(this._final!==final){final.call(this)}}Transform.prototype._final=final;Transform.prototype._transform=function(r,s,i){throw new c("_transform()")};Transform.prototype._write=function(r,s,i){const a=this._readableState;const A=this._writableState;const c=a.length;this._transform(r,s,((r,s)=>{if(r){i(r);return}if(s!=null){this.push(s)}if(A.ended||c===a.length||a.length{"use strict";const{SymbolAsyncIterator:a,SymbolIterator:A,SymbolFor:c}=i(89629);const l=c("nodejs.stream.destroyed");const d=c("nodejs.stream.errored");const u=c("nodejs.stream.readable");const p=c("nodejs.stream.writable");const g=c("nodejs.stream.disturbed");const h=c("nodejs.webstream.isClosedPromise");const C=c("nodejs.webstream.controllerErrorFunction");function isReadableNodeStream(r,s=false){var i;return!!(r&&typeof r.pipe==="function"&&typeof r.on==="function"&&(!s||typeof r.pause==="function"&&typeof r.resume==="function")&&(!r._writableState||((i=r._readableState)===null||i===undefined?undefined:i.readable)!==false)&&(!r._writableState||r._readableState))}function isWritableNodeStream(r){var s;return!!(r&&typeof r.write==="function"&&typeof r.on==="function"&&(!r._readableState||((s=r._writableState)===null||s===undefined?undefined:s.writable)!==false))}function isDuplexNodeStream(r){return!!(r&&typeof r.pipe==="function"&&r._readableState&&typeof r.on==="function"&&typeof r.write==="function")}function isNodeStream(r){return r&&(r._readableState||r._writableState||typeof r.write==="function"&&typeof r.on==="function"||typeof r.pipe==="function"&&typeof r.on==="function")}function isReadableStream(r){return!!(r&&!isNodeStream(r)&&typeof r.pipeThrough==="function"&&typeof r.getReader==="function"&&typeof r.cancel==="function")}function isWritableStream(r){return!!(r&&!isNodeStream(r)&&typeof r.getWriter==="function"&&typeof r.abort==="function")}function isTransformStream(r){return!!(r&&!isNodeStream(r)&&typeof r.readable==="object"&&typeof r.writable==="object")}function isWebStream(r){return isReadableStream(r)||isWritableStream(r)||isTransformStream(r)}function isIterable(r,s){if(r==null)return false;if(s===true)return typeof r[a]==="function";if(s===false)return typeof r[A]==="function";return typeof r[a]==="function"||typeof r[A]==="function"}function isDestroyed(r){if(!isNodeStream(r))return null;const s=r._writableState;const i=r._readableState;const a=s||i;return!!(r.destroyed||r[l]||a!==null&&a!==undefined&&a.destroyed)}function isWritableEnded(r){if(!isWritableNodeStream(r))return null;if(r.writableEnded===true)return true;const s=r._writableState;if(s!==null&&s!==undefined&&s.errored)return false;if(typeof(s===null||s===undefined?undefined:s.ended)!=="boolean")return null;return s.ended}function isWritableFinished(r,s){if(!isWritableNodeStream(r))return null;if(r.writableFinished===true)return true;const i=r._writableState;if(i!==null&&i!==undefined&&i.errored)return false;if(typeof(i===null||i===undefined?undefined:i.finished)!=="boolean")return null;return!!(i.finished||s===false&&i.ended===true&&i.length===0)}function isReadableEnded(r){if(!isReadableNodeStream(r))return null;if(r.readableEnded===true)return true;const s=r._readableState;if(!s||s.errored)return false;if(typeof(s===null||s===undefined?undefined:s.ended)!=="boolean")return null;return s.ended}function isReadableFinished(r,s){if(!isReadableNodeStream(r))return null;const i=r._readableState;if(i!==null&&i!==undefined&&i.errored)return false;if(typeof(i===null||i===undefined?undefined:i.endEmitted)!=="boolean")return null;return!!(i.endEmitted||s===false&&i.ended===true&&i.length===0)}function isReadable(r){if(r&&r[u]!=null)return r[u];if(typeof(r===null||r===undefined?undefined:r.readable)!=="boolean")return null;if(isDestroyed(r))return false;return isReadableNodeStream(r)&&r.readable&&!isReadableFinished(r)}function isWritable(r){if(r&&r[p]!=null)return r[p];if(typeof(r===null||r===undefined?undefined:r.writable)!=="boolean")return null;if(isDestroyed(r))return false;return isWritableNodeStream(r)&&r.writable&&!isWritableEnded(r)}function isFinished(r,s){if(!isNodeStream(r)){return null}if(isDestroyed(r)){return true}if((s===null||s===undefined?undefined:s.readable)!==false&&isReadable(r)){return false}if((s===null||s===undefined?undefined:s.writable)!==false&&isWritable(r)){return false}return true}function isWritableErrored(r){var s,i;if(!isNodeStream(r)){return null}if(r.writableErrored){return r.writableErrored}return(s=(i=r._writableState)===null||i===undefined?undefined:i.errored)!==null&&s!==undefined?s:null}function isReadableErrored(r){var s,i;if(!isNodeStream(r)){return null}if(r.readableErrored){return r.readableErrored}return(s=(i=r._readableState)===null||i===undefined?undefined:i.errored)!==null&&s!==undefined?s:null}function isClosed(r){if(!isNodeStream(r)){return null}if(typeof r.closed==="boolean"){return r.closed}const s=r._writableState;const i=r._readableState;if(typeof(s===null||s===undefined?undefined:s.closed)==="boolean"||typeof(i===null||i===undefined?undefined:i.closed)==="boolean"){return(s===null||s===undefined?undefined:s.closed)||(i===null||i===undefined?undefined:i.closed)}if(typeof r._closed==="boolean"&&isOutgoingMessage(r)){return r._closed}return null}function isOutgoingMessage(r){return typeof r._closed==="boolean"&&typeof r._defaultKeepAlive==="boolean"&&typeof r._removedConnection==="boolean"&&typeof r._removedContLen==="boolean"}function isServerResponse(r){return typeof r._sent100==="boolean"&&isOutgoingMessage(r)}function isServerRequest(r){var s;return typeof r._consuming==="boolean"&&typeof r._dumped==="boolean"&&((s=r.req)===null||s===undefined?undefined:s.upgradeOrConnect)===undefined}function willEmitClose(r){if(!isNodeStream(r))return null;const s=r._writableState;const i=r._readableState;const a=s||i;return!a&&isServerResponse(r)||!!(a&&a.autoDestroy&&a.emitClose&&a.closed===false)}function isDisturbed(r){var s;return!!(r&&((s=r[g])!==null&&s!==undefined?s:r.readableDidRead||r.readableAborted))}function isErrored(r){var s,i,a,A,c,l,u,p,g,h;return!!(r&&((s=(i=(a=(A=(c=(l=r[d])!==null&&l!==undefined?l:r.readableErrored)!==null&&c!==undefined?c:r.writableErrored)!==null&&A!==undefined?A:(u=r._readableState)===null||u===undefined?undefined:u.errorEmitted)!==null&&a!==undefined?a:(p=r._writableState)===null||p===undefined?undefined:p.errorEmitted)!==null&&i!==undefined?i:(g=r._readableState)===null||g===undefined?undefined:g.errored)!==null&&s!==undefined?s:(h=r._writableState)===null||h===undefined?undefined:h.errored))}r.exports={isDestroyed:isDestroyed,kIsDestroyed:l,isDisturbed:isDisturbed,kIsDisturbed:g,isErrored:isErrored,kIsErrored:d,isReadable:isReadable,kIsReadable:u,kIsClosedPromise:h,kControllerErrorFunction:C,kIsWritable:p,isClosed:isClosed,isDuplexNodeStream:isDuplexNodeStream,isFinished:isFinished,isIterable:isIterable,isReadableNodeStream:isReadableNodeStream,isReadableStream:isReadableStream,isReadableEnded:isReadableEnded,isReadableFinished:isReadableFinished,isReadableErrored:isReadableErrored,isNodeStream:isNodeStream,isWebStream:isWebStream,isWritable:isWritable,isWritableNodeStream:isWritableNodeStream,isWritableStream:isWritableStream,isWritableEnded:isWritableEnded,isWritableFinished:isWritableFinished,isWritableErrored:isWritableErrored,isServerRequest:isServerRequest,isServerResponse:isServerResponse,willEmitClose:willEmitClose,isTransformStream:isTransformStream}},48488:(r,s,i)=>{const a=i(45676);"use strict";const{ArrayPrototypeSlice:A,Error:c,FunctionPrototypeSymbolHasInstance:l,ObjectDefineProperty:d,ObjectDefineProperties:u,ObjectSetPrototypeOf:p,StringPrototypeToLowerCase:g,Symbol:h,SymbolHasInstance:C}=i(89629);r.exports=Writable;Writable.WritableState=WritableState;const{EventEmitter:y}=i(82361);const I=i(49792).Stream;const{Buffer:B}=i(14300);const b=i(97049);const{addAbortSignal:Q}=i(80289);const{getHighWaterMark:w,getDefaultHighWaterMark:v}=i(39948);const{ERR_INVALID_ARG_TYPE:S,ERR_METHOD_NOT_IMPLEMENTED:R,ERR_MULTIPLE_CALLBACK:N,ERR_STREAM_CANNOT_PIPE:x,ERR_STREAM_DESTROYED:D,ERR_STREAM_ALREADY_FINISHED:k,ERR_STREAM_NULL_VALUES:T,ERR_STREAM_WRITE_AFTER_END:_,ERR_UNKNOWN_ENCODING:P}=i(80529).codes;const{errorOrDestroy:O}=b;p(Writable.prototype,I.prototype);p(Writable,I);function nop(){}const L=h("kOnFinished");function WritableState(r,s,a){if(typeof a!=="boolean")a=s instanceof i(72613);this.objectMode=!!(r&&r.objectMode);if(a)this.objectMode=this.objectMode||!!(r&&r.writableObjectMode);this.highWaterMark=r?w(this,r,"writableHighWaterMark",a):v(false);this.finalCalled=false;this.needDrain=false;this.ending=false;this.ended=false;this.finished=false;this.destroyed=false;const A=!!(r&&r.decodeStrings===false);this.decodeStrings=!A;this.defaultEncoding=r&&r.defaultEncoding||"utf8";this.length=0;this.writing=false;this.corked=0;this.sync=true;this.bufferProcessing=false;this.onwrite=onwrite.bind(undefined,s);this.writecb=null;this.writelen=0;this.afterWriteTickInfo=null;resetBuffer(this);this.pendingcb=0;this.constructed=true;this.prefinished=false;this.errorEmitted=false;this.emitClose=!r||r.emitClose!==false;this.autoDestroy=!r||r.autoDestroy!==false;this.errored=null;this.closed=false;this.closeEmitted=false;this[L]=[]}function resetBuffer(r){r.buffered=[];r.bufferedIndex=0;r.allBuffers=true;r.allNoop=true}WritableState.prototype.getBuffer=function getBuffer(){return A(this.buffered,this.bufferedIndex)};d(WritableState.prototype,"bufferedRequestCount",{__proto__:null,get(){return this.buffered.length-this.bufferedIndex}});function Writable(r){const s=this instanceof i(72613);if(!s&&!l(Writable,this))return new Writable(r);this._writableState=new WritableState(r,this,s);if(r){if(typeof r.write==="function")this._write=r.write;if(typeof r.writev==="function")this._writev=r.writev;if(typeof r.destroy==="function")this._destroy=r.destroy;if(typeof r.final==="function")this._final=r.final;if(typeof r.construct==="function")this._construct=r.construct;if(r.signal)Q(r.signal,this)}I.call(this,r);b.construct(this,(()=>{const r=this._writableState;if(!r.writing){clearBuffer(this,r)}finishMaybe(this,r)}))}d(Writable,C,{__proto__:null,value:function(r){if(l(this,r))return true;if(this!==Writable)return false;return r&&r._writableState instanceof WritableState}});Writable.prototype.pipe=function(){O(this,new x)};function _write(r,s,i,A){const c=r._writableState;if(typeof i==="function"){A=i;i=c.defaultEncoding}else{if(!i)i=c.defaultEncoding;else if(i!=="buffer"&&!B.isEncoding(i))throw new P(i);if(typeof A!=="function")A=nop}if(s===null){throw new T}else if(!c.objectMode){if(typeof s==="string"){if(c.decodeStrings!==false){s=B.from(s,i);i="buffer"}}else if(s instanceof B){i="buffer"}else if(I._isUint8Array(s)){s=I._uint8ArrayToBuffer(s);i="buffer"}else{throw new S("chunk",["string","Buffer","Uint8Array"],s)}}let l;if(c.ending){l=new _}else if(c.destroyed){l=new D("write")}if(l){a.nextTick(A,l);O(r,l,true);return l}c.pendingcb++;return writeOrBuffer(r,c,s,i,A)}Writable.prototype.write=function(r,s,i){return _write(this,r,s,i)===true};Writable.prototype.cork=function(){this._writableState.corked++};Writable.prototype.uncork=function(){const r=this._writableState;if(r.corked){r.corked--;if(!r.writing)clearBuffer(this,r)}};Writable.prototype.setDefaultEncoding=function setDefaultEncoding(r){if(typeof r==="string")r=g(r);if(!B.isEncoding(r))throw new P(r);this._writableState.defaultEncoding=r;return this};function writeOrBuffer(r,s,i,a,A){const c=s.objectMode?1:i.length;s.length+=c;const l=s.lengthi.bufferedIndex){clearBuffer(r,i)}if(A){if(i.afterWriteTickInfo!==null&&i.afterWriteTickInfo.cb===c){i.afterWriteTickInfo.count++}else{i.afterWriteTickInfo={count:1,cb:c,stream:r,state:i};a.nextTick(afterWriteTick,i.afterWriteTickInfo)}}else{afterWrite(r,i,1,c)}}}function afterWriteTick({stream:r,state:s,count:i,cb:a}){s.afterWriteTickInfo=null;return afterWrite(r,s,i,a)}function afterWrite(r,s,i,a){const A=!s.ending&&!r.destroyed&&s.length===0&&s.needDrain;if(A){s.needDrain=false;r.emit("drain")}while(i-- >0){s.pendingcb--;a()}if(s.destroyed){errorBuffer(s)}finishMaybe(r,s)}function errorBuffer(r){if(r.writing){return}for(let i=r.bufferedIndex;i1&&r._writev){s.pendingcb-=l-1;const a=s.allNoop?nop:r=>{for(let s=d;s256){i.splice(0,d);s.bufferedIndex=0}else{s.bufferedIndex=d}}s.bufferProcessing=false}Writable.prototype._write=function(r,s,i){if(this._writev){this._writev([{chunk:r,encoding:s}],i)}else{throw new R("_write()")}};Writable.prototype._writev=null;Writable.prototype.end=function(r,s,i){const A=this._writableState;if(typeof r==="function"){i=r;r=null;s=null}else if(typeof s==="function"){i=s;s=null}let l;if(r!==null&&r!==undefined){const i=_write(this,r,s);if(i instanceof c){l=i}}if(A.corked){A.corked=1;this.uncork()}if(l){}else if(!A.errored&&!A.ending){A.ending=true;finishMaybe(this,A,true);A.ended=true}else if(A.finished){l=new k("end")}else if(A.destroyed){l=new D("end")}if(typeof i==="function"){if(l||A.finished){a.nextTick(i,l)}else{A[L].push(i)}}return this};function needFinish(r){return r.ending&&!r.destroyed&&r.constructed&&r.length===0&&!r.errored&&r.buffered.length===0&&!r.finished&&!r.writing&&!r.errorEmitted&&!r.closeEmitted}function callFinal(r,s){let i=false;function onFinish(A){if(i){O(r,A!==null&&A!==undefined?A:N());return}i=true;s.pendingcb--;if(A){const i=s[L].splice(0);for(let r=0;r{if(needFinish(s)){finish(r,s)}else{s.pendingcb--}}),r,s)}else if(needFinish(s)){s.pendingcb++;finish(r,s)}}}}function finish(r,s){s.pendingcb--;s.finished=true;const i=s[L].splice(0);for(let r=0;r{"use strict";const{ArrayIsArray:a,ArrayPrototypeIncludes:A,ArrayPrototypeJoin:c,ArrayPrototypeMap:l,NumberIsInteger:d,NumberIsNaN:u,NumberMAX_SAFE_INTEGER:p,NumberMIN_SAFE_INTEGER:g,NumberParseInt:h,ObjectPrototypeHasOwnProperty:C,RegExpPrototypeExec:y,String:I,StringPrototypeToUpperCase:B,StringPrototypeTrim:b}=i(89629);const{hideStackFrames:Q,codes:{ERR_SOCKET_BAD_PORT:w,ERR_INVALID_ARG_TYPE:v,ERR_INVALID_ARG_VALUE:S,ERR_OUT_OF_RANGE:R,ERR_UNKNOWN_SIGNAL:N}}=i(80529);const{normalizeEncoding:x}=i(46959);const{isAsyncFunction:D,isArrayBufferView:k}=i(46959).types;const T={};function isInt32(r){return r===(r|0)}function isUint32(r){return r===r>>>0}const _=/^[0-7]+$/;const P="must be a 32-bit unsigned integer or an octal string";function parseFileMode(r,s,i){if(typeof r==="undefined"){r=i}if(typeof r==="string"){if(y(_,r)===null){throw new S(s,r,P)}r=h(r,8)}M(r,s);return r}const O=Q(((r,s,i=g,a=p)=>{if(typeof r!=="number")throw new v(s,"number",r);if(!d(r))throw new R(s,"an integer",r);if(ra)throw new R(s,`>= ${i} && <= ${a}`,r)}));const L=Q(((r,s,i=-2147483648,a=2147483647)=>{if(typeof r!=="number"){throw new v(s,"number",r)}if(!d(r)){throw new R(s,"an integer",r)}if(ra){throw new R(s,`>= ${i} && <= ${a}`,r)}}));const M=Q(((r,s,i=false)=>{if(typeof r!=="number"){throw new v(s,"number",r)}if(!d(r)){throw new R(s,"an integer",r)}const a=i?1:0;const A=4294967295;if(rA){throw new R(s,`>= ${a} && <= ${A}`,r)}}));function validateString(r,s){if(typeof r!=="string")throw new v(s,"string",r)}function validateNumber(r,s,i=undefined,a){if(typeof r!=="number")throw new v(s,"number",r);if(i!=null&&ra||(i!=null||a!=null)&&u(r)){throw new R(s,`${i!=null?`>= ${i}`:""}${i!=null&&a!=null?" && ":""}${a!=null?`<= ${a}`:""}`,r)}}const U=Q(((r,s,i)=>{if(!A(i,r)){const a=c(l(i,(r=>typeof r==="string"?`'${r}'`:I(r))),", ");const A="must be one of: "+a;throw new S(s,r,A)}}));function validateBoolean(r,s){if(typeof r!=="boolean")throw new v(s,"boolean",r)}function getOwnPropertyValueOrDefault(r,s,i){return r==null||!C(r,s)?i:r[s]}const H=Q(((r,s,i=null)=>{const A=getOwnPropertyValueOrDefault(i,"allowArray",false);const c=getOwnPropertyValueOrDefault(i,"allowFunction",false);const l=getOwnPropertyValueOrDefault(i,"nullable",false);if(!l&&r===null||!A&&a(r)||typeof r!=="object"&&(!c||typeof r!=="function")){throw new v(s,"Object",r)}}));const G=Q(((r,s)=>{if(r!=null&&typeof r!=="object"&&typeof r!=="function"){throw new v(s,"a dictionary",r)}}));const q=Q(((r,s,i=0)=>{if(!a(r)){throw new v(s,"Array",r)}if(r.length{if(!k(r)){throw new v(s,["Buffer","TypedArray","DataView"],r)}}));function validateEncoding(r,s){const i=x(s);const a=r.length;if(i==="hex"&&a%2!==0){throw new S("encoding",s,`is invalid for data of length ${a}`)}}function validatePort(r,s="Port",i=true){if(typeof r!=="number"&&typeof r!=="string"||typeof r==="string"&&b(r).length===0||+r!==+r>>>0||r>65535||r===0&&!i){throw new w(s,r,i)}return r|0}const j=Q(((r,s)=>{if(r!==undefined&&(r===null||typeof r!=="object"||!("aborted"in r))){throw new v(s,"AbortSignal",r)}}));const z=Q(((r,s)=>{if(typeof r!=="function")throw new v(s,"Function",r)}));const Y=Q(((r,s)=>{if(typeof r!=="function"||D(r))throw new v(s,"Function",r)}));const J=Q(((r,s)=>{if(r!==undefined)throw new v(s,"undefined",r)}));function validateUnion(r,s,i){if(!A(i,r)){throw new v(s,`('${c(i,"|")}')`,r)}}const W=/^(?:<[^>]*>)(?:\s*;\s*[^;"\s]+(?:=(")?[^;"\s]*\1)?)*$/;function validateLinkHeaderFormat(r,s){if(typeof r==="undefined"||!y(W,r)){throw new S(s,r,'must be an array or string of format "; rel=preload; as=style"')}}function validateLinkHeaderValue(r){if(typeof r==="string"){validateLinkHeaderFormat(r,"hints");return r}else if(a(r)){const s=r.length;let i="";if(s===0){return i}for(let a=0;a; rel=preload; as=style"')}r.exports={isInt32:isInt32,isUint32:isUint32,parseFileMode:parseFileMode,validateArray:q,validateStringArray:validateStringArray,validateBooleanArray:validateBooleanArray,validateAbortSignalArray:validateAbortSignalArray,validateBoolean:validateBoolean,validateBuffer:V,validateDictionary:G,validateEncoding:validateEncoding,validateFunction:z,validateInt32:L,validateInteger:O,validateNumber:validateNumber,validateObject:H,validateOneOf:U,validatePlainFunction:Y,validatePort:validatePort,validateSignalName:validateSignalName,validateString:validateString,validateUint32:M,validateUndefined:J,validateUnion:validateUnion,validateAbortSignal:j,validateLinkHeaderValue:validateLinkHeaderValue}},80529:(r,s,i)=>{"use strict";const{format:a,inspect:A,AggregateError:c}=i(46959);const l=globalThis.AggregateError||c;const d=Symbol("kIsNodeError");const u=["string","function","number","object","Function","Object","boolean","bigint","symbol"];const p=/^([A-Z][a-z0-9]*)+$/;const g="__node_internal_";const h={};function assert(r,s){if(!r){throw new h.ERR_INTERNAL_ASSERTION(s)}}function addNumericalSeparator(r){let s="";let i=r.length;const a=r[0]==="-"?1:0;for(;i>=a+4;i-=3){s=`_${r.slice(i-3,i)}${s}`}return`${r.slice(0,i)}${s}`}function getMessage(r,s,i){if(typeof s==="function"){assert(s.length<=i.length,`Code: ${r}; The provided arguments length (${i.length}) does not match the required ones (${s.length}).`);return s(...i)}const A=(s.match(/%[dfijoOs]/g)||[]).length;assert(A===i.length,`Code: ${r}; The provided arguments length (${i.length}) does not match the required ones (${A}).`);if(i.length===0){return s}return a(s,...i)}function E(r,s,i){if(!i){i=Error}class NodeError extends i{constructor(...i){super(getMessage(r,s,i))}toString(){return`${this.name} [${r}]: ${this.message}`}}Object.defineProperties(NodeError.prototype,{name:{value:i.name,writable:true,enumerable:false,configurable:true},toString:{value(){return`${this.name} [${r}]: ${this.message}`},writable:true,enumerable:false,configurable:true}});NodeError.prototype.code=r;NodeError.prototype[d]=true;h[r]=NodeError}function hideStackFrames(r){const s=g+r.name;Object.defineProperty(r,"name",{value:s});return r}function aggregateTwoErrors(r,s){if(r&&s&&r!==s){if(Array.isArray(s.errors)){s.errors.push(r);return s}const i=new l([s,r],s.message);i.code=s.code;return i}return r||s}class AbortError extends Error{constructor(r="The operation was aborted",s=undefined){if(s!==undefined&&typeof s!=="object"){throw new h.ERR_INVALID_ARG_TYPE("options","Object",s)}super(r,s);this.code="ABORT_ERR";this.name="AbortError"}}E("ERR_ASSERTION","%s",Error);E("ERR_INVALID_ARG_TYPE",((r,s,i)=>{assert(typeof r==="string","'name' must be a string");if(!Array.isArray(s)){s=[s]}let a="The ";if(r.endsWith(" argument")){a+=`${r} `}else{a+=`"${r}" ${r.includes(".")?"property":"argument"} `}a+="must be ";const c=[];const l=[];const d=[];for(const r of s){assert(typeof r==="string","All expected entries have to be of type string");if(u.includes(r)){c.push(r.toLowerCase())}else if(p.test(r)){l.push(r)}else{assert(r!=="object",'The value "object" should be written as "Object"');d.push(r)}}if(l.length>0){const r=c.indexOf("object");if(r!==-1){c.splice(c,r,1);l.push("Object")}}if(c.length>0){switch(c.length){case 1:a+=`of type ${c[0]}`;break;case 2:a+=`one of type ${c[0]} or ${c[1]}`;break;default:{const r=c.pop();a+=`one of type ${c.join(", ")}, or ${r}`}}if(l.length>0||d.length>0){a+=" or "}}if(l.length>0){switch(l.length){case 1:a+=`an instance of ${l[0]}`;break;case 2:a+=`an instance of ${l[0]} or ${l[1]}`;break;default:{const r=l.pop();a+=`an instance of ${l.join(", ")}, or ${r}`}}if(d.length>0){a+=" or "}}switch(d.length){case 0:break;case 1:if(d[0].toLowerCase()!==d[0]){a+="an "}a+=`${d[0]}`;break;case 2:a+=`one of ${d[0]} or ${d[1]}`;break;default:{const r=d.pop();a+=`one of ${d.join(", ")}, or ${r}`}}if(i==null){a+=`. Received ${i}`}else if(typeof i==="function"&&i.name){a+=`. Received function ${i.name}`}else if(typeof i==="object"){var g;if((g=i.constructor)!==null&&g!==undefined&&g.name){a+=`. Received an instance of ${i.constructor.name}`}else{const r=A(i,{depth:-1});a+=`. Received ${r}`}}else{let r=A(i,{colors:false});if(r.length>25){r=`${r.slice(0,25)}...`}a+=`. Received type ${typeof i} (${r})`}return a}),TypeError);E("ERR_INVALID_ARG_VALUE",((r,s,i="is invalid")=>{let a=A(s);if(a.length>128){a=a.slice(0,128)+"..."}const c=r.includes(".")?"property":"argument";return`The ${c} '${r}' ${i}. Received ${a}`}),TypeError);E("ERR_INVALID_RETURN_VALUE",((r,s,i)=>{var a;const A=i!==null&&i!==undefined&&(a=i.constructor)!==null&&a!==undefined&&a.name?`instance of ${i.constructor.name}`:`type ${typeof i}`;return`Expected ${r} to be returned from the "${s}"`+` function but got ${A}.`}),TypeError);E("ERR_MISSING_ARGS",((...r)=>{assert(r.length>0,"At least one arg needs to be specified");let s;const i=r.length;r=(Array.isArray(r)?r:[r]).map((r=>`"${r}"`)).join(" or ");switch(i){case 1:s+=`The ${r[0]} argument`;break;case 2:s+=`The ${r[0]} and ${r[1]} arguments`;break;default:{const i=r.pop();s+=`The ${r.join(", ")}, and ${i} arguments`}break}return`${s} must be specified`}),TypeError);E("ERR_OUT_OF_RANGE",((r,s,i)=>{assert(s,'Missing "range" argument');let a;if(Number.isInteger(i)&&Math.abs(i)>2**32){a=addNumericalSeparator(String(i))}else if(typeof i==="bigint"){a=String(i);if(i>2n**32n||i<-(2n**32n)){a=addNumericalSeparator(a)}a+="n"}else{a=A(i)}return`The value of "${r}" is out of range. It must be ${s}. Received ${a}`}),RangeError);E("ERR_MULTIPLE_CALLBACK","Callback called multiple times",Error);E("ERR_METHOD_NOT_IMPLEMENTED","The %s method is not implemented",Error);E("ERR_STREAM_ALREADY_FINISHED","Cannot call %s after a stream was finished",Error);E("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable",Error);E("ERR_STREAM_DESTROYED","Cannot call %s after a stream was destroyed",Error);E("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError);E("ERR_STREAM_PREMATURE_CLOSE","Premature close",Error);E("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF",Error);E("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event",Error);E("ERR_STREAM_WRITE_AFTER_END","write after end",Error);E("ERR_UNKNOWN_ENCODING","Unknown encoding: %s",TypeError);r.exports={AbortError:AbortError,aggregateTwoErrors:hideStackFrames(aggregateTwoErrors),hideStackFrames:hideStackFrames,codes:h}},45193:(r,s,i)=>{"use strict";const a=i(12781);if(a&&process.env.READABLE_STREAM==="disable"){const s=a.promises;r.exports._uint8ArrayToBuffer=a._uint8ArrayToBuffer;r.exports._isUint8Array=a._isUint8Array;r.exports.isDisturbed=a.isDisturbed;r.exports.isErrored=a.isErrored;r.exports.isReadable=a.isReadable;r.exports.Readable=a.Readable;r.exports.Writable=a.Writable;r.exports.Duplex=a.Duplex;r.exports.Transform=a.Transform;r.exports.PassThrough=a.PassThrough;r.exports.addAbortSignal=a.addAbortSignal;r.exports.finished=a.finished;r.exports.destroy=a.destroy;r.exports.pipeline=a.pipeline;r.exports.compose=a.compose;Object.defineProperty(a,"promises",{configurable:true,enumerable:true,get(){return s}});r.exports.Stream=a.Stream}else{const s=i(75102);const a=i(348);const A=s.Readable.destroy;r.exports=s.Readable;r.exports._uint8ArrayToBuffer=s._uint8ArrayToBuffer;r.exports._isUint8Array=s._isUint8Array;r.exports.isDisturbed=s.isDisturbed;r.exports.isErrored=s.isErrored;r.exports.isReadable=s.isReadable;r.exports.Readable=s.Readable;r.exports.Writable=s.Writable;r.exports.Duplex=s.Duplex;r.exports.Transform=s.Transform;r.exports.PassThrough=s.PassThrough;r.exports.addAbortSignal=s.addAbortSignal;r.exports.finished=s.finished;r.exports.destroy=s.destroy;r.exports.destroy=A;r.exports.pipeline=s.pipeline;r.exports.compose=s.compose;Object.defineProperty(s,"promises",{configurable:true,enumerable:true,get(){return a}});r.exports.Stream=s.Stream}r.exports["default"]=r.exports},89629:r=>{"use strict";r.exports={ArrayIsArray(r){return Array.isArray(r)},ArrayPrototypeIncludes(r,s){return r.includes(s)},ArrayPrototypeIndexOf(r,s){return r.indexOf(s)},ArrayPrototypeJoin(r,s){return r.join(s)},ArrayPrototypeMap(r,s){return r.map(s)},ArrayPrototypePop(r,s){return r.pop(s)},ArrayPrototypePush(r,s){return r.push(s)},ArrayPrototypeSlice(r,s,i){return r.slice(s,i)},Error:Error,FunctionPrototypeCall(r,s,...i){return r.call(s,...i)},FunctionPrototypeSymbolHasInstance(r,s){return Function.prototype[Symbol.hasInstance].call(r,s)},MathFloor:Math.floor,Number:Number,NumberIsInteger:Number.isInteger,NumberIsNaN:Number.isNaN,NumberMAX_SAFE_INTEGER:Number.MAX_SAFE_INTEGER,NumberMIN_SAFE_INTEGER:Number.MIN_SAFE_INTEGER,NumberParseInt:Number.parseInt,ObjectDefineProperties(r,s){return Object.defineProperties(r,s)},ObjectDefineProperty(r,s,i){return Object.defineProperty(r,s,i)},ObjectGetOwnPropertyDescriptor(r,s){return Object.getOwnPropertyDescriptor(r,s)},ObjectKeys(r){return Object.keys(r)},ObjectSetPrototypeOf(r,s){return Object.setPrototypeOf(r,s)},Promise:Promise,PromisePrototypeCatch(r,s){return r.catch(s)},PromisePrototypeThen(r,s,i){return r.then(s,i)},PromiseReject(r){return Promise.reject(r)},PromiseResolve(r){return Promise.resolve(r)},ReflectApply:Reflect.apply,RegExpPrototypeTest(r,s){return r.test(s)},SafeSet:Set,String:String,StringPrototypeSlice(r,s,i){return r.slice(s,i)},StringPrototypeToLowerCase(r){return r.toLowerCase()},StringPrototypeToUpperCase(r){return r.toUpperCase()},StringPrototypeTrim(r){return r.trim()},Symbol:Symbol,SymbolFor:Symbol.for,SymbolAsyncIterator:Symbol.asyncIterator,SymbolHasInstance:Symbol.hasInstance,SymbolIterator:Symbol.iterator,SymbolDispose:Symbol.dispose||Symbol("Symbol.dispose"),SymbolAsyncDispose:Symbol.asyncDispose||Symbol("Symbol.asyncDispose"),TypedArrayPrototypeSet(r,s,i){return r.set(s,i)},Boolean:Boolean,Uint8Array:Uint8Array}},46959:(r,s,i)=>{"use strict";const a=i(14300);const{kResistStopPropagation:A,SymbolDispose:c}=i(89629);const l=globalThis.AbortSignal||i(61659).AbortSignal;const d=globalThis.AbortController||i(61659).AbortController;const u=Object.getPrototypeOf((async function(){})).constructor;const p=globalThis.Blob||a.Blob;const g=typeof p!=="undefined"?function isBlob(r){return r instanceof p}:function isBlob(r){return false};const validateAbortSignal=(r,s)=>{if(r!==undefined&&(r===null||typeof r!=="object"||!("aborted"in r))){throw new ERR_INVALID_ARG_TYPE(s,"AbortSignal",r)}};const validateFunction=(r,s)=>{if(typeof r!=="function")throw new ERR_INVALID_ARG_TYPE(s,"Function",r)};class AggregateError extends Error{constructor(r){if(!Array.isArray(r)){throw new TypeError(`Expected input to be an Array, got ${typeof r}`)}let s="";for(let i=0;i{r=i;s=a}));return{promise:i,resolve:r,reject:s}},promisify(r){return new Promise(((s,i)=>{r(((r,...a)=>{if(r){return i(r)}return s(...a)}))}))},debuglog(){return function(){}},format(r,...s){return r.replace(/%([sdifj])/g,(function(...[r,i]){const a=s.shift();if(i==="f"){return a.toFixed(6)}else if(i==="j"){return JSON.stringify(a)}else if(i==="s"&&typeof a==="object"){const r=a.constructor!==Object?a.constructor.name:"";return`${r} {}`.trim()}else{return a.toString()}}))},inspect(r){switch(typeof r){case"string":if(r.includes("'")){if(!r.includes('"')){return`"${r}"`}else if(!r.includes("`")&&!r.includes("${")){return`\`${r}\``}}return`'${r}'`;case"number":if(isNaN(r)){return"NaN"}else if(Object.is(r,-0)){return String(r)}return r;case"bigint":return`${String(r)}n`;case"boolean":case"undefined":return String(r);case"object":return"{}"}},types:{isAsyncFunction(r){return r instanceof u},isArrayBufferView(r){return ArrayBuffer.isView(r)}},isBlob:g,deprecate(r,s){return r},addAbortListener:i(82361).addAbortListener||function addAbortListener(r,s){if(r===undefined){throw new ERR_INVALID_ARG_TYPE("signal","AbortSignal",r)}validateAbortSignal(r,"signal");validateFunction(s,"listener");let i;if(r.aborted){queueMicrotask((()=>s()))}else{r.addEventListener("abort",s,{__proto__:null,once:true,[A]:true});i=()=>{r.removeEventListener("abort",s)}}return{__proto__:null,[c](){var r;(r=i)===null||r===undefined?undefined:r()}}},AbortSignalAny:l.any||function AbortSignalAny(r){if(r.length===1){return r[0]}const s=new d;const abort=()=>s.abort();r.forEach((r=>{validateAbortSignal(r,"signals");r.addEventListener("abort",abort,{once:true})}));s.signal.addEventListener("abort",(()=>{r.forEach((r=>r.removeEventListener("abort",abort)))}),{once:true});return s.signal}};r.exports.promisify.custom=Symbol.for("nodejs.util.promisify.custom")},75102:(r,s,i)=>{const{Buffer:a}=i(14300);"use strict";const{ObjectDefineProperty:A,ObjectKeys:c,ReflectApply:l}=i(89629);const{promisify:{custom:d}}=i(46959);const{streamReturningOperators:u,promiseReturningOperators:p}=i(63193);const{codes:{ERR_ILLEGAL_CONSTRUCTOR:g}}=i(80529);const h=i(63129);const{setDefaultHighWaterMark:C,getDefaultHighWaterMark:y}=i(39948);const{pipeline:I}=i(76989);const{destroyer:B}=i(97049);const b=i(76080);const Q={};const w=i(348);const v=i(27981);const S=r.exports=i(49792).Stream;S.isDestroyed=v.isDestroyed;S.isDisturbed=v.isDisturbed;S.isErrored=v.isErrored;S.isReadable=v.isReadable;S.isWritable=v.isWritable;S.Readable=i(57920);for(const N of c(u)){const x=u[N];function fn(...r){if(new.target){throw g()}return S.Readable.from(l(x,this,r))}A(fn,"name",{__proto__:null,value:x.name});A(fn,"length",{__proto__:null,value:x.length});A(S.Readable.prototype,N,{__proto__:null,value:fn,enumerable:false,configurable:true,writable:true})}for(const D of c(p)){const k=p[D];function fn(...r){if(new.target){throw g()}return l(k,this,r)}A(fn,"name",{__proto__:null,value:k.name});A(fn,"length",{__proto__:null,value:k.length});A(S.Readable.prototype,D,{__proto__:null,value:fn,enumerable:false,configurable:true,writable:true})}S.Writable=i(48488);S.Duplex=i(72613);S.Transform=i(86941);S.PassThrough=i(72839);S.pipeline=I;const{addAbortSignal:R}=i(80289);S.addAbortSignal=R;S.finished=b;S.destroy=B;S.compose=h;S.setDefaultHighWaterMark=C;S.getDefaultHighWaterMark=y;A(S,"promises",{__proto__:null,configurable:true,enumerable:true,get(){return w}});A(I,d,{__proto__:null,enumerable:true,get(){return w.pipeline}});A(b,d,{__proto__:null,enumerable:true,get(){return w.finished}});S.Stream=S;S._isUint8Array=function isUint8Array(r){return r instanceof Uint8Array};S._uint8ArrayToBuffer=function _uint8ArrayToBuffer(r){return a.from(r.buffer,r.byteOffset,r.byteLength)}},348:(r,s,i)=>{"use strict";const{ArrayPrototypePop:a,Promise:A}=i(89629);const{isIterable:c,isNodeStream:l,isWebStream:d}=i(27981);const{pipelineImpl:u}=i(76989);const{finished:p}=i(76080);i(75102);function pipeline(...r){return new A(((s,i)=>{let A;let p;const g=r[r.length-1];if(g&&typeof g==="object"&&!l(g)&&!c(g)&&!d(g)){const s=a(r);A=s.signal;p=s.end}u(r,((r,a)=>{if(r){i(r)}else{s(a)}}),{signal:A,end:p})}))}r.exports={finished:p,pipeline:pipeline}},44967:(r,s,i)=>{r.exports=readdirGlob;const a=i(57147);const{EventEmitter:A}=i(82361);const{Minimatch:c}=i(27771);const{resolve:l}=i(71017);function readdir(r,s){return new Promise(((i,A)=>{a.readdir(r,{withFileTypes:true},((r,a)=>{if(r){switch(r.code){case"ENOTDIR":if(s){A(r)}else{i([])}break;case"ENOTSUP":case"ENOENT":case"ENAMETOOLONG":case"UNKNOWN":i([]);break;case"ELOOP":default:A(r);break}}else{i(a)}}))}))}function stat(r,s){return new Promise(((i,A)=>{const c=s?a.stat:a.lstat;c(r,((a,A)=>{if(a){switch(a.code){case"ENOENT":if(s){i(stat(r,false))}else{i(null)}break;default:i(null);break}}else{i(A)}}))}))}async function*exploreWalkAsync(r,s,i,a,A,c){let l=await readdir(s+r,c);for(const c of l){let l=c.name;if(l===undefined){l=c;a=true}const d=r+"/"+l;const u=d.slice(1);const p=s+"/"+u;let g=null;if(a||i){g=await stat(p,i)}if(!g&&c.name!==undefined){g=c}if(g===null){g={isDirectory:()=>false}}if(g.isDirectory()){if(!A(u)){yield{relative:u,absolute:p,stats:g};yield*exploreWalkAsync(d,s,i,a,A,false)}}else{yield{relative:u,absolute:p,stats:g}}}}async function*explore(r,s,i,a){yield*exploreWalkAsync("",r,s,i,a,true)}function readOptions(r){return{pattern:r.pattern,dot:!!r.dot,noglobstar:!!r.noglobstar,matchBase:!!r.matchBase,nocase:!!r.nocase,ignore:r.ignore,skip:r.skip,follow:!!r.follow,stat:!!r.stat,nodir:!!r.nodir,mark:!!r.mark,silent:!!r.silent,absolute:!!r.absolute}}class ReaddirGlob extends A{constructor(r,s,i){super();if(typeof s==="function"){i=s;s=null}this.options=readOptions(s||{});this.matchers=[];if(this.options.pattern){const r=Array.isArray(this.options.pattern)?this.options.pattern:[this.options.pattern];this.matchers=r.map((r=>new c(r,{dot:this.options.dot,noglobstar:this.options.noglobstar,matchBase:this.options.matchBase,nocase:this.options.nocase})))}this.ignoreMatchers=[];if(this.options.ignore){const r=Array.isArray(this.options.ignore)?this.options.ignore:[this.options.ignore];this.ignoreMatchers=r.map((r=>new c(r,{dot:true})))}this.skipMatchers=[];if(this.options.skip){const r=Array.isArray(this.options.skip)?this.options.skip:[this.options.skip];this.skipMatchers=r.map((r=>new c(r,{dot:true})))}this.iterator=explore(l(r||"."),this.options.follow,this.options.stat,this._shouldSkipDirectory.bind(this));this.paused=false;this.inactive=false;this.aborted=false;if(i){this._matches=[];this.on("match",(r=>this._matches.push(this.options.absolute?r.absolute:r.relative)));this.on("error",(r=>i(r)));this.on("end",(()=>i(null,this._matches)))}setTimeout((()=>this._next()),0)}_shouldSkipDirectory(r){return this.skipMatchers.some((s=>s.match(r)))}_fileMatches(r,s){const i=r+(s?"/":"");return(this.matchers.length===0||this.matchers.some((r=>r.match(i))))&&!this.ignoreMatchers.some((r=>r.match(i)))&&(!this.options.nodir||!s)}_next(){if(!this.paused&&!this.aborted){this.iterator.next().then((r=>{if(!r.done){const s=r.value.stats.isDirectory();if(this._fileMatches(r.value.relative,s)){let i=r.value.relative;let a=r.value.absolute;if(this.options.mark&&s){i+="/";a+="/"}if(this.options.stat){this.emit("match",{relative:i,absolute:a,stat:r.value.stats})}else{this.emit("match",{relative:i,absolute:a})}}this._next(this.iterator)}else{this.emit("end")}})).catch((r=>{this.abort();this.emit("error",r);if(!r.code&&!this.options.silent){console.error(r)}}))}else{this.inactive=true}}abort(){this.aborted=true}pause(){this.paused=true}resume(){this.paused=false;if(this.inactive){this.inactive=false;this._next()}}}function readdirGlob(r,s,i){return new ReaddirGlob(r,s,i)}readdirGlob.ReaddirGlob=ReaddirGlob},79482:r=>{const s=typeof process==="object"&&process&&process.platform==="win32";r.exports=s?{sep:"\\"}:{sep:"/"}},27771:(r,s,i)=>{const a=r.exports=(r,s,i={})=>{assertValidPattern(s);if(!i.nocomment&&s.charAt(0)==="#"){return false}return new Minimatch(s,i).match(r)};r.exports=a;const A=i(79482);a.sep=A.sep;const c=Symbol("globstar **");a.GLOBSTAR=c;const l=i(33717);const d={"!":{open:"(?:(?!(?:",close:"))[^/]*?)"},"?":{open:"(?:",close:")?"},"+":{open:"(?:",close:")+"},"*":{open:"(?:",close:")*"},"@":{open:"(?:",close:")"}};const u="[^/]";const p=u+"*?";const g="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?";const h="(?:(?!(?:\\/|^)\\.).)*?";const charSet=r=>r.split("").reduce(((r,s)=>{r[s]=true;return r}),{});const C=charSet("().*{}+?[]^$\\!");const y=charSet("[.(");const I=/\/+/;a.filter=(r,s={})=>(i,A,c)=>a(i,r,s);const ext=(r,s={})=>{const i={};Object.keys(r).forEach((s=>i[s]=r[s]));Object.keys(s).forEach((r=>i[r]=s[r]));return i};a.defaults=r=>{if(!r||typeof r!=="object"||!Object.keys(r).length){return a}const s=a;const m=(i,a,A)=>s(i,a,ext(r,A));m.Minimatch=class Minimatch extends s.Minimatch{constructor(s,i){super(s,ext(r,i))}};m.Minimatch.defaults=i=>s.defaults(ext(r,i)).Minimatch;m.filter=(i,a)=>s.filter(i,ext(r,a));m.defaults=i=>s.defaults(ext(r,i));m.makeRe=(i,a)=>s.makeRe(i,ext(r,a));m.braceExpand=(i,a)=>s.braceExpand(i,ext(r,a));m.match=(i,a,A)=>s.match(i,a,ext(r,A));return m};a.braceExpand=(r,s)=>braceExpand(r,s);const braceExpand=(r,s={})=>{assertValidPattern(r);if(s.nobrace||!/\{(?:(?!\{).)*\}/.test(r)){return[r]}return l(r)};const B=1024*64;const assertValidPattern=r=>{if(typeof r!=="string"){throw new TypeError("invalid pattern")}if(r.length>B){throw new TypeError("pattern is too long")}};const b=Symbol("subparse");a.makeRe=(r,s)=>new Minimatch(r,s||{}).makeRe();a.match=(r,s,i={})=>{const a=new Minimatch(s,i);r=r.filter((r=>a.match(r)));if(a.options.nonull&&!r.length){r.push(s)}return r};const globUnescape=r=>r.replace(/\\(.)/g,"$1");const charUnescape=r=>r.replace(/\\([^-\]])/g,"$1");const regExpEscape=r=>r.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&");const braExpEscape=r=>r.replace(/[[\]\\]/g,"\\$&");class Minimatch{constructor(r,s){assertValidPattern(r);if(!s)s={};this.options=s;this.set=[];this.pattern=r;this.windowsPathsNoEscape=!!s.windowsPathsNoEscape||s.allowWindowsEscape===false;if(this.windowsPathsNoEscape){this.pattern=this.pattern.replace(/\\/g,"/")}this.regexp=null;this.negate=false;this.comment=false;this.empty=false;this.partial=!!s.partial;this.make()}debug(){}make(){const r=this.pattern;const s=this.options;if(!s.nocomment&&r.charAt(0)==="#"){this.comment=true;return}if(!r){this.empty=true;return}this.parseNegate();let i=this.globSet=this.braceExpand();if(s.debug)this.debug=(...r)=>console.error(...r);this.debug(this.pattern,i);i=this.globParts=i.map((r=>r.split(I)));this.debug(this.pattern,i);i=i.map(((r,s,i)=>r.map(this.parse,this)));this.debug(this.pattern,i);i=i.filter((r=>r.indexOf(false)===-1));this.debug(this.pattern,i);this.set=i}parseNegate(){if(this.options.nonegate)return;const r=this.pattern;let s=false;let i=0;for(let a=0;a>> no match, partial?",r,h,s,C);if(h===d)return true}return false}var I;if(typeof p==="string"){I=g===p;this.debug("string match",p,g,I)}else{I=g.match(p);this.debug("pattern match",p,g,I)}if(!I)return false}if(A===d&&l===u){return true}else if(A===d){return i}else if(l===u){return A===d-1&&r[A]===""}throw new Error("wtf?")}braceExpand(){return braceExpand(this.pattern,this.options)}parse(r,s){assertValidPattern(r);const i=this.options;if(r==="**"){if(!i.noglobstar)return c;else r="*"}if(r==="")return"";let a="";let A=false;let l=false;const g=[];const h=[];let I;let B=false;let Q=-1;let w=-1;let v;let S;let R;let N=r.charAt(0)===".";let x=i.dot||N;const patternStart=()=>N?"":x?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)";const subPatternStart=r=>r.charAt(0)==="."?"":i.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)";const clearStateChar=()=>{if(I){switch(I){case"*":a+=p;A=true;break;case"?":a+=u;A=true;break;default:a+="\\"+I;break}this.debug("clearStateChar %j %j",I,a);I=false}};for(let s=0,c;s{if(!i){i="\\"}return s+s+i+"|"}));this.debug("tail=%j\n %s",r,r,S,a);const s=S.type==="*"?p:S.type==="?"?u:"\\"+S.type;A=true;a=a.slice(0,S.reStart)+s+"\\("+r}clearStateChar();if(l){a+="\\\\"}const D=y[a.charAt(0)];for(let r=h.length-1;r>-1;r--){const i=h[r];const A=a.slice(0,i.reStart);const c=a.slice(i.reStart,i.reEnd-8);let l=a.slice(i.reEnd);const d=a.slice(i.reEnd-8,i.reEnd)+l;const u=A.split(")").length;const p=A.split("(").length-u;let g=l;for(let r=0;r{r=r.map((r=>typeof r==="string"?regExpEscape(r):r===c?c:r._src)).reduce(((r,s)=>{if(!(r[r.length-1]===c&&s===c)){r.push(s)}return r}),[]);r.forEach(((s,a)=>{if(s!==c||r[a-1]===c){return}if(a===0){if(r.length>1){r[a+1]="(?:\\/|"+i+"\\/)?"+r[a+1]}else{r[a]=i}}else if(a===r.length-1){r[a-1]+="(?:\\/|"+i+")?"}else{r[a-1]+="(?:\\/|\\/"+i+"\\/)"+r[a+1];r[a+1]=c}}));return r.filter((r=>r!==c)).join("/")})).join("|");A="^(?:"+A+")$";if(this.negate)A="^(?!"+A+").*$";try{this.regexp=new RegExp(A,a)}catch(r){this.regexp=false}return this.regexp}match(r,s=this.partial){this.debug("match",r,this.pattern);if(this.comment)return false;if(this.empty)return r==="";if(r==="/"&&s)return true;const i=this.options;if(A.sep!=="/"){r=r.split(A.sep).join("/")}r=r.split(I);this.debug(this.pattern,"split",r);const a=this.set;this.debug(this.pattern,"set",a);let c;for(let s=r.length-1;s>=0;s--){c=r[s];if(c)break}for(let A=0;A{var a=i(14300);var A=a.Buffer;function copyProps(r,s){for(var i in r){s[i]=r[i]}}if(A.from&&A.alloc&&A.allocUnsafe&&A.allocUnsafeSlow){r.exports=a}else{copyProps(a,s);s.Buffer=SafeBuffer}function SafeBuffer(r,s,i){return A(r,s,i)}copyProps(A,SafeBuffer);SafeBuffer.from=function(r,s,i){if(typeof r==="number"){throw new TypeError("Argument must not be a number")}return A(r,s,i)};SafeBuffer.alloc=function(r,s,i){if(typeof r!=="number"){throw new TypeError("Argument must be a number")}var a=A(r);if(s!==undefined){if(typeof i==="string"){a.fill(s,i)}else{a.fill(s)}}else{a.fill(0)}return a};SafeBuffer.allocUnsafe=function(r){if(typeof r!=="number"){throw new TypeError("Argument must be a number")}return A(r)};SafeBuffer.allocUnsafeSlow=function(r){if(typeof r!=="number"){throw new TypeError("Argument must be a number")}return a.SlowBuffer(r)}},15118:(r,s,i)=>{"use strict";var a=i(14300);var A=a.Buffer;var c={};var l;for(l in a){if(!a.hasOwnProperty(l))continue;if(l==="SlowBuffer"||l==="Buffer")continue;c[l]=a[l]}var d=c.Buffer={};for(l in A){if(!A.hasOwnProperty(l))continue;if(l==="allocUnsafe"||l==="allocUnsafeSlow")continue;d[l]=A[l]}c.Buffer.prototype=A.prototype;if(!d.from||d.from===Uint8Array.from){d.from=function(r,s,i){if(typeof r==="number"){throw new TypeError('The "value" argument must not be of type number. Received type '+typeof r)}if(r&&typeof r.length==="undefined"){throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof r)}return A(r,s,i)}}if(!d.alloc){d.alloc=function(r,s,i){if(typeof r!=="number"){throw new TypeError('The "size" argument must be of type number. Received type '+typeof r)}if(r<0||r>=2*(1<<30)){throw new RangeError('The value "'+r+'" is invalid for option "size"')}var a=A(r);if(!s||s.length===0){a.fill(0)}else if(typeof i==="string"){a.fill(s,i)}else{a.fill(s)}return a}}if(!c.kStringMaxLength){try{c.kStringMaxLength=process.binding("buffer").kStringMaxLength}catch(r){}}if(!c.constants){c.constants={MAX_LENGTH:c.kMaxLength};if(c.kStringMaxLength){c.constants.MAX_STRING_LENGTH=c.kStringMaxLength}}r.exports=c},72043:(r,s,i)=>{(function(r){r.parser=function(r,s){return new SAXParser(r,s)};r.SAXParser=SAXParser;r.SAXStream=SAXStream;r.createStream=createStream;r.MAX_BUFFER_LENGTH=64*1024;var s=["comment","sgmlDecl","textNode","tagName","doctype","procInstName","procInstBody","entity","attribName","attribValue","cdata","script"];r.EVENTS=["text","processinginstruction","sgmldeclaration","doctype","comment","opentagstart","attribute","opentag","closetag","opencdata","cdata","closecdata","error","end","ready","script","opennamespace","closenamespace"];function SAXParser(s,i){if(!(this instanceof SAXParser)){return new SAXParser(s,i)}var a=this;clearBuffers(a);a.q=a.c="";a.bufferCheckPosition=r.MAX_BUFFER_LENGTH;a.opt=i||{};a.opt.lowercase=a.opt.lowercase||a.opt.lowercasetags;a.looseCase=a.opt.lowercase?"toLowerCase":"toUpperCase";a.tags=[];a.closed=a.closedRoot=a.sawRoot=false;a.tag=a.error=null;a.strict=!!s;a.noscript=!!(s||a.opt.noscript);a.state=I.BEGIN;a.strictEntities=a.opt.strictEntities;a.ENTITIES=a.strictEntities?Object.create(r.XML_ENTITIES):Object.create(r.ENTITIES);a.attribList=[];if(a.opt.xmlns){a.ns=Object.create(p)}a.trackPosition=a.opt.position!==false;if(a.trackPosition){a.position=a.line=a.column=0}emit(a,"onready")}if(!Object.create){Object.create=function(r){function F(){}F.prototype=r;var s=new F;return s}}if(!Object.keys){Object.keys=function(r){var s=[];for(var i in r)if(r.hasOwnProperty(i))s.push(i);return s}}function checkBufferLength(i){var a=Math.max(r.MAX_BUFFER_LENGTH,10);var A=0;for(var c=0,l=s.length;ca){switch(s[c]){case"textNode":closeText(i);break;case"cdata":emitNode(i,"oncdata",i.cdata);i.cdata="";break;case"script":emitNode(i,"onscript",i.script);i.script="";break;default:error(i,"Max buffer length exceeded: "+s[c])}}A=Math.max(A,d)}var u=r.MAX_BUFFER_LENGTH-A;i.bufferCheckPosition=u+i.position}function clearBuffers(r){for(var i=0,a=s.length;i"||isWhitespace(r)}function isMatch(r,s){return r.test(s)}function notMatch(r,s){return!isMatch(r,s)}var I=0;r.STATE={BEGIN:I++,BEGIN_WHITESPACE:I++,TEXT:I++,TEXT_ENTITY:I++,OPEN_WAKA:I++,SGML_DECL:I++,SGML_DECL_QUOTED:I++,DOCTYPE:I++,DOCTYPE_QUOTED:I++,DOCTYPE_DTD:I++,DOCTYPE_DTD_QUOTED:I++,COMMENT_STARTING:I++,COMMENT:I++,COMMENT_ENDING:I++,COMMENT_ENDED:I++,CDATA:I++,CDATA_ENDING:I++,CDATA_ENDING_2:I++,PROC_INST:I++,PROC_INST_BODY:I++,PROC_INST_ENDING:I++,OPEN_TAG:I++,OPEN_TAG_SLASH:I++,ATTRIB:I++,ATTRIB_NAME:I++,ATTRIB_NAME_SAW_WHITE:I++,ATTRIB_VALUE:I++,ATTRIB_VALUE_QUOTED:I++,ATTRIB_VALUE_CLOSED:I++,ATTRIB_VALUE_UNQUOTED:I++,ATTRIB_VALUE_ENTITY_Q:I++,ATTRIB_VALUE_ENTITY_U:I++,CLOSE_TAG:I++,CLOSE_TAG_SAW_WHITE:I++,SCRIPT:I++,SCRIPT_ENDING:I++};r.XML_ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'"};r.ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'",AElig:198,Aacute:193,Acirc:194,Agrave:192,Aring:197,Atilde:195,Auml:196,Ccedil:199,ETH:208,Eacute:201,Ecirc:202,Egrave:200,Euml:203,Iacute:205,Icirc:206,Igrave:204,Iuml:207,Ntilde:209,Oacute:211,Ocirc:212,Ograve:210,Oslash:216,Otilde:213,Ouml:214,THORN:222,Uacute:218,Ucirc:219,Ugrave:217,Uuml:220,Yacute:221,aacute:225,acirc:226,aelig:230,agrave:224,aring:229,atilde:227,auml:228,ccedil:231,eacute:233,ecirc:234,egrave:232,eth:240,euml:235,iacute:237,icirc:238,igrave:236,iuml:239,ntilde:241,oacute:243,ocirc:244,ograve:242,oslash:248,otilde:245,ouml:246,szlig:223,thorn:254,uacute:250,ucirc:251,ugrave:249,uuml:252,yacute:253,yuml:255,copy:169,reg:174,nbsp:160,iexcl:161,cent:162,pound:163,curren:164,yen:165,brvbar:166,sect:167,uml:168,ordf:170,laquo:171,not:172,shy:173,macr:175,deg:176,plusmn:177,sup1:185,sup2:178,sup3:179,acute:180,micro:181,para:182,middot:183,cedil:184,ordm:186,raquo:187,frac14:188,frac12:189,frac34:190,iquest:191,times:215,divide:247,OElig:338,oelig:339,Scaron:352,scaron:353,Yuml:376,fnof:402,circ:710,tilde:732,Alpha:913,Beta:914,Gamma:915,Delta:916,Epsilon:917,Zeta:918,Eta:919,Theta:920,Iota:921,Kappa:922,Lambda:923,Mu:924,Nu:925,Xi:926,Omicron:927,Pi:928,Rho:929,Sigma:931,Tau:932,Upsilon:933,Phi:934,Chi:935,Psi:936,Omega:937,alpha:945,beta:946,gamma:947,delta:948,epsilon:949,zeta:950,eta:951,theta:952,iota:953,kappa:954,lambda:955,mu:956,nu:957,xi:958,omicron:959,pi:960,rho:961,sigmaf:962,sigma:963,tau:964,upsilon:965,phi:966,chi:967,psi:968,omega:969,thetasym:977,upsih:978,piv:982,ensp:8194,emsp:8195,thinsp:8201,zwnj:8204,zwj:8205,lrm:8206,rlm:8207,ndash:8211,mdash:8212,lsquo:8216,rsquo:8217,sbquo:8218,ldquo:8220,rdquo:8221,bdquo:8222,dagger:8224,Dagger:8225,bull:8226,hellip:8230,permil:8240,prime:8242,Prime:8243,lsaquo:8249,rsaquo:8250,oline:8254,frasl:8260,euro:8364,image:8465,weierp:8472,real:8476,trade:8482,alefsym:8501,larr:8592,uarr:8593,rarr:8594,darr:8595,harr:8596,crarr:8629,lArr:8656,uArr:8657,rArr:8658,dArr:8659,hArr:8660,forall:8704,part:8706,exist:8707,empty:8709,nabla:8711,isin:8712,notin:8713,ni:8715,prod:8719,sum:8721,minus:8722,lowast:8727,radic:8730,prop:8733,infin:8734,ang:8736,and:8743,or:8744,cap:8745,cup:8746,int:8747,there4:8756,sim:8764,cong:8773,asymp:8776,ne:8800,equiv:8801,le:8804,ge:8805,sub:8834,sup:8835,nsub:8836,sube:8838,supe:8839,oplus:8853,otimes:8855,perp:8869,sdot:8901,lceil:8968,rceil:8969,lfloor:8970,rfloor:8971,lang:9001,rang:9002,loz:9674,spades:9824,clubs:9827,hearts:9829,diams:9830};Object.keys(r.ENTITIES).forEach((function(s){var i=r.ENTITIES[s];var a=typeof i==="number"?String.fromCharCode(i):i;r.ENTITIES[s]=a}));for(var B in r.STATE){r.STATE[r.STATE[B]]=B}I=r.STATE;function emit(r,s,i){r[s]&&r[s](i)}function emitNode(r,s,i){if(r.textNode)closeText(r);emit(r,s,i)}function closeText(r){r.textNode=textopts(r.opt,r.textNode);if(r.textNode)emit(r,"ontext",r.textNode);r.textNode=""}function textopts(r,s){if(r.trim)s=s.trim();if(r.normalize)s=s.replace(/\s+/g," ");return s}function error(r,s){closeText(r);if(r.trackPosition){s+="\nLine: "+r.line+"\nColumn: "+r.column+"\nChar: "+r.c}s=new Error(s);r.error=s;emit(r,"onerror",s);return r}function end(r){if(r.sawRoot&&!r.closedRoot)strictFail(r,"Unclosed root tag");if(r.state!==I.BEGIN&&r.state!==I.BEGIN_WHITESPACE&&r.state!==I.TEXT){error(r,"Unexpected end")}closeText(r);r.c="";r.closed=true;emit(r,"onend");SAXParser.call(r,r.strict,r.opt);return r}function strictFail(r,s){if(typeof r!=="object"||!(r instanceof SAXParser)){throw new Error("bad call to strictFail")}if(r.strict){error(r,s)}}function newTag(r){if(!r.strict)r.tagName=r.tagName[r.looseCase]();var s=r.tags[r.tags.length-1]||r;var i=r.tag={name:r.tagName,attributes:{}};if(r.opt.xmlns){i.ns=s.ns}r.attribList.length=0;emitNode(r,"onopentagstart",i)}function qname(r,s){var i=r.indexOf(":");var a=i<0?["",r]:r.split(":");var A=a[0];var c=a[1];if(s&&r==="xmlns"){A="xmlns";c=""}return{prefix:A,local:c}}function attrib(r){if(!r.strict){r.attribName=r.attribName[r.looseCase]()}if(r.attribList.indexOf(r.attribName)!==-1||r.tag.attributes.hasOwnProperty(r.attribName)){r.attribName=r.attribValue="";return}if(r.opt.xmlns){var s=qname(r.attribName,true);var i=s.prefix;var a=s.local;if(i==="xmlns"){if(a==="xml"&&r.attribValue!==d){strictFail(r,"xml: prefix must be bound to "+d+"\n"+"Actual: "+r.attribValue)}else if(a==="xmlns"&&r.attribValue!==u){strictFail(r,"xmlns: prefix must be bound to "+u+"\n"+"Actual: "+r.attribValue)}else{var A=r.tag;var c=r.tags[r.tags.length-1]||r;if(A.ns===c.ns){A.ns=Object.create(c.ns)}A.ns[a]=r.attribValue}}r.attribList.push([r.attribName,r.attribValue])}else{r.tag.attributes[r.attribName]=r.attribValue;emitNode(r,"onattribute",{name:r.attribName,value:r.attribValue})}r.attribName=r.attribValue=""}function openTag(r,s){if(r.opt.xmlns){var i=r.tag;var a=qname(r.tagName);i.prefix=a.prefix;i.local=a.local;i.uri=i.ns[a.prefix]||"";if(i.prefix&&!i.uri){strictFail(r,"Unbound namespace prefix: "+JSON.stringify(r.tagName));i.uri=a.prefix}var A=r.tags[r.tags.length-1]||r;if(i.ns&&A.ns!==i.ns){Object.keys(i.ns).forEach((function(s){emitNode(r,"onopennamespace",{prefix:s,uri:i.ns[s]})}))}for(var c=0,l=r.attribList.length;c";r.tagName="";r.state=I.SCRIPT;return}emitNode(r,"onscript",r.script);r.script=""}var s=r.tags.length;var i=r.tagName;if(!r.strict){i=i[r.looseCase]()}var a=i;while(s--){var A=r.tags[s];if(A.name!==a){strictFail(r,"Unexpected close tag")}else{break}}if(s<0){strictFail(r,"Unmatched closing tag: "+r.tagName);r.textNode+="";r.state=I.TEXT;return}r.tagName=i;var c=r.tags.length;while(c-- >s){var l=r.tag=r.tags.pop();r.tagName=r.tag.name;emitNode(r,"onclosetag",r.tagName);var d={};for(var u in l.ns){d[u]=l.ns[u]}var p=r.tags[r.tags.length-1]||r;if(r.opt.xmlns&&l.ns!==p.ns){Object.keys(l.ns).forEach((function(s){var i=l.ns[s];emitNode(r,"onclosenamespace",{prefix:s,uri:i})}))}}if(s===0)r.closedRoot=true;r.tagName=r.attribValue=r.attribName="";r.attribList.length=0;r.state=I.TEXT}function parseEntity(r){var s=r.entity;var i=s.toLowerCase();var a;var A="";if(r.ENTITIES[s]){return r.ENTITIES[s]}if(r.ENTITIES[i]){return r.ENTITIES[i]}s=i;if(s.charAt(0)==="#"){if(s.charAt(1)==="x"){s=s.slice(2);a=parseInt(s,16);A=a.toString(16)}else{s=s.slice(1);a=parseInt(s,10);A=a.toString(10)}}s=s.replace(/^0+/,"");if(isNaN(a)||A.toLowerCase()!==s){strictFail(r,"Invalid character entity");return"&"+r.entity+";"}return String.fromCodePoint(a)}function beginWhiteSpace(r,s){if(s==="<"){r.state=I.OPEN_WAKA;r.startTagPosition=r.position}else if(!isWhitespace(s)){strictFail(r,"Non-whitespace before first tag.");r.textNode=s;r.state=I.TEXT}}function charAt(r,s){var i="";if(s"){emitNode(s,"onsgmldeclaration",s.sgmlDecl);s.sgmlDecl="";s.state=I.TEXT}else if(isQuote(a)){s.state=I.SGML_DECL_QUOTED;s.sgmlDecl+=a}else{s.sgmlDecl+=a}continue;case I.SGML_DECL_QUOTED:if(a===s.q){s.state=I.SGML_DECL;s.q=""}s.sgmlDecl+=a;continue;case I.DOCTYPE:if(a===">"){s.state=I.TEXT;emitNode(s,"ondoctype",s.doctype);s.doctype=true}else{s.doctype+=a;if(a==="["){s.state=I.DOCTYPE_DTD}else if(isQuote(a)){s.state=I.DOCTYPE_QUOTED;s.q=a}}continue;case I.DOCTYPE_QUOTED:s.doctype+=a;if(a===s.q){s.q="";s.state=I.DOCTYPE}continue;case I.DOCTYPE_DTD:s.doctype+=a;if(a==="]"){s.state=I.DOCTYPE}else if(isQuote(a)){s.state=I.DOCTYPE_DTD_QUOTED;s.q=a}continue;case I.DOCTYPE_DTD_QUOTED:s.doctype+=a;if(a===s.q){s.state=I.DOCTYPE_DTD;s.q=""}continue;case I.COMMENT:if(a==="-"){s.state=I.COMMENT_ENDING}else{s.comment+=a}continue;case I.COMMENT_ENDING:if(a==="-"){s.state=I.COMMENT_ENDED;s.comment=textopts(s.opt,s.comment);if(s.comment){emitNode(s,"oncomment",s.comment)}s.comment=""}else{s.comment+="-"+a;s.state=I.COMMENT}continue;case I.COMMENT_ENDED:if(a!==">"){strictFail(s,"Malformed comment");s.comment+="--"+a;s.state=I.COMMENT}else{s.state=I.TEXT}continue;case I.CDATA:if(a==="]"){s.state=I.CDATA_ENDING}else{s.cdata+=a}continue;case I.CDATA_ENDING:if(a==="]"){s.state=I.CDATA_ENDING_2}else{s.cdata+="]"+a;s.state=I.CDATA}continue;case I.CDATA_ENDING_2:if(a===">"){if(s.cdata){emitNode(s,"oncdata",s.cdata)}emitNode(s,"onclosecdata");s.cdata="";s.state=I.TEXT}else if(a==="]"){s.cdata+="]"}else{s.cdata+="]]"+a;s.state=I.CDATA}continue;case I.PROC_INST:if(a==="?"){s.state=I.PROC_INST_ENDING}else if(isWhitespace(a)){s.state=I.PROC_INST_BODY}else{s.procInstName+=a}continue;case I.PROC_INST_BODY:if(!s.procInstBody&&isWhitespace(a)){continue}else if(a==="?"){s.state=I.PROC_INST_ENDING}else{s.procInstBody+=a}continue;case I.PROC_INST_ENDING:if(a===">"){emitNode(s,"onprocessinginstruction",{name:s.procInstName,body:s.procInstBody});s.procInstName=s.procInstBody="";s.state=I.TEXT}else{s.procInstBody+="?"+a;s.state=I.PROC_INST_BODY}continue;case I.OPEN_TAG:if(isMatch(h,a)){s.tagName+=a}else{newTag(s);if(a===">"){openTag(s)}else if(a==="/"){s.state=I.OPEN_TAG_SLASH}else{if(!isWhitespace(a)){strictFail(s,"Invalid character in tag name")}s.state=I.ATTRIB}}continue;case I.OPEN_TAG_SLASH:if(a===">"){openTag(s,true);closeTag(s)}else{strictFail(s,"Forward-slash in opening tag not followed by >");s.state=I.ATTRIB}continue;case I.ATTRIB:if(isWhitespace(a)){continue}else if(a===">"){openTag(s)}else if(a==="/"){s.state=I.OPEN_TAG_SLASH}else if(isMatch(g,a)){s.attribName=a;s.attribValue="";s.state=I.ATTRIB_NAME}else{strictFail(s,"Invalid attribute name")}continue;case I.ATTRIB_NAME:if(a==="="){s.state=I.ATTRIB_VALUE}else if(a===">"){strictFail(s,"Attribute without value");s.attribValue=s.attribName;attrib(s);openTag(s)}else if(isWhitespace(a)){s.state=I.ATTRIB_NAME_SAW_WHITE}else if(isMatch(h,a)){s.attribName+=a}else{strictFail(s,"Invalid attribute name")}continue;case I.ATTRIB_NAME_SAW_WHITE:if(a==="="){s.state=I.ATTRIB_VALUE}else if(isWhitespace(a)){continue}else{strictFail(s,"Attribute without value");s.tag.attributes[s.attribName]="";s.attribValue="";emitNode(s,"onattribute",{name:s.attribName,value:""});s.attribName="";if(a===">"){openTag(s)}else if(isMatch(g,a)){s.attribName=a;s.state=I.ATTRIB_NAME}else{strictFail(s,"Invalid attribute name");s.state=I.ATTRIB}}continue;case I.ATTRIB_VALUE:if(isWhitespace(a)){continue}else if(isQuote(a)){s.q=a;s.state=I.ATTRIB_VALUE_QUOTED}else{strictFail(s,"Unquoted attribute value");s.state=I.ATTRIB_VALUE_UNQUOTED;s.attribValue=a}continue;case I.ATTRIB_VALUE_QUOTED:if(a!==s.q){if(a==="&"){s.state=I.ATTRIB_VALUE_ENTITY_Q}else{s.attribValue+=a}continue}attrib(s);s.q="";s.state=I.ATTRIB_VALUE_CLOSED;continue;case I.ATTRIB_VALUE_CLOSED:if(isWhitespace(a)){s.state=I.ATTRIB}else if(a===">"){openTag(s)}else if(a==="/"){s.state=I.OPEN_TAG_SLASH}else if(isMatch(g,a)){strictFail(s,"No whitespace between attributes");s.attribName=a;s.attribValue="";s.state=I.ATTRIB_NAME}else{strictFail(s,"Invalid attribute name")}continue;case I.ATTRIB_VALUE_UNQUOTED:if(!isAttribEnd(a)){if(a==="&"){s.state=I.ATTRIB_VALUE_ENTITY_U}else{s.attribValue+=a}continue}attrib(s);if(a===">"){openTag(s)}else{s.state=I.ATTRIB}continue;case I.CLOSE_TAG:if(!s.tagName){if(isWhitespace(a)){continue}else if(notMatch(g,a)){if(s.script){s.script+=""){closeTag(s)}else if(isMatch(h,a)){s.tagName+=a}else if(s.script){s.script+=""){closeTag(s)}else{strictFail(s,"Invalid characters in closing tag")}continue;case I.TEXT_ENTITY:case I.ATTRIB_VALUE_ENTITY_Q:case I.ATTRIB_VALUE_ENTITY_U:var u;var p;switch(s.state){case I.TEXT_ENTITY:u=I.TEXT;p="textNode";break;case I.ATTRIB_VALUE_ENTITY_Q:u=I.ATTRIB_VALUE_QUOTED;p="attribValue";break;case I.ATTRIB_VALUE_ENTITY_U:u=I.ATTRIB_VALUE_UNQUOTED;p="attribValue";break}if(a===";"){s[p]+=parseEntity(s);s.entity="";s.state=u}else if(isMatch(s.entity.length?y:C,a)){s.entity+=a}else{strictFail(s,"Invalid character in entity name");s[p]+="&"+s.entity+a;s.entity="";s.state=u}continue;default:throw new Error(s,"Unknown state: "+s.state)}}if(s.position>=s.bufferCheckPosition){checkBufferLength(s)}return s} +/*! http://mths.be/fromcodepoint v0.1.0 by @mathias */if(!String.fromCodePoint){(function(){var r=String.fromCharCode;var s=Math.floor;var fromCodePoint=function(){var i=16384;var a=[];var A;var c;var l=-1;var d=arguments.length;if(!d){return""}var u="";while(++l1114111||s(p)!==p){throw RangeError("Invalid code point: "+p)}if(p<=65535){a.push(p)}else{p-=65536;A=(p>>10)+55296;c=p%1024+56320;a.push(A,c)}if(l+1===d||a.length>i){u+=r.apply(null,a);a.length=0}}return u};if(Object.defineProperty){Object.defineProperty(String,"fromCodePoint",{value:fromCodePoint,configurable:true,writable:true})}else{String.fromCodePoint=fromCodePoint}})()}})(false?0:s)},85911:(r,s)=>{s=r.exports=SemVer;var i;if(typeof process==="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)){i=function(){var r=Array.prototype.slice.call(arguments,0);r.unshift("SEMVER");console.log.apply(console,r)}}else{i=function(){}}s.SEMVER_SPEC_VERSION="2.0.0";var a=256;var A=Number.MAX_SAFE_INTEGER||9007199254740991;var c=16;var l=a-6;var d=s.re=[];var u=s.safeRe=[];var p=s.src=[];var g=s.tokens={};var h=0;function tok(r){g[r]=h++}var C="[a-zA-Z0-9-]";var y=[["\\s",1],["\\d",a],[C,l]];function makeSafeRe(r){for(var s=0;s)?=?)";tok("XRANGEIDENTIFIERLOOSE");p[g.XRANGEIDENTIFIERLOOSE]=p[g.NUMERICIDENTIFIERLOOSE]+"|x|X|\\*";tok("XRANGEIDENTIFIER");p[g.XRANGEIDENTIFIER]=p[g.NUMERICIDENTIFIER]+"|x|X|\\*";tok("XRANGEPLAIN");p[g.XRANGEPLAIN]="[v=\\s]*("+p[g.XRANGEIDENTIFIER]+")"+"(?:\\.("+p[g.XRANGEIDENTIFIER]+")"+"(?:\\.("+p[g.XRANGEIDENTIFIER]+")"+"(?:"+p[g.PRERELEASE]+")?"+p[g.BUILD]+"?"+")?)?";tok("XRANGEPLAINLOOSE");p[g.XRANGEPLAINLOOSE]="[v=\\s]*("+p[g.XRANGEIDENTIFIERLOOSE]+")"+"(?:\\.("+p[g.XRANGEIDENTIFIERLOOSE]+")"+"(?:\\.("+p[g.XRANGEIDENTIFIERLOOSE]+")"+"(?:"+p[g.PRERELEASELOOSE]+")?"+p[g.BUILD]+"?"+")?)?";tok("XRANGE");p[g.XRANGE]="^"+p[g.GTLT]+"\\s*"+p[g.XRANGEPLAIN]+"$";tok("XRANGELOOSE");p[g.XRANGELOOSE]="^"+p[g.GTLT]+"\\s*"+p[g.XRANGEPLAINLOOSE]+"$";tok("COERCE");p[g.COERCE]="(^|[^\\d])"+"(\\d{1,"+c+"})"+"(?:\\.(\\d{1,"+c+"}))?"+"(?:\\.(\\d{1,"+c+"}))?"+"(?:$|[^\\d])";tok("COERCERTL");d[g.COERCERTL]=new RegExp(p[g.COERCE],"g");u[g.COERCERTL]=new RegExp(makeSafeRe(p[g.COERCE]),"g");tok("LONETILDE");p[g.LONETILDE]="(?:~>?)";tok("TILDETRIM");p[g.TILDETRIM]="(\\s*)"+p[g.LONETILDE]+"\\s+";d[g.TILDETRIM]=new RegExp(p[g.TILDETRIM],"g");u[g.TILDETRIM]=new RegExp(makeSafeRe(p[g.TILDETRIM]),"g");var I="$1~";tok("TILDE");p[g.TILDE]="^"+p[g.LONETILDE]+p[g.XRANGEPLAIN]+"$";tok("TILDELOOSE");p[g.TILDELOOSE]="^"+p[g.LONETILDE]+p[g.XRANGEPLAINLOOSE]+"$";tok("LONECARET");p[g.LONECARET]="(?:\\^)";tok("CARETTRIM");p[g.CARETTRIM]="(\\s*)"+p[g.LONECARET]+"\\s+";d[g.CARETTRIM]=new RegExp(p[g.CARETTRIM],"g");u[g.CARETTRIM]=new RegExp(makeSafeRe(p[g.CARETTRIM]),"g");var B="$1^";tok("CARET");p[g.CARET]="^"+p[g.LONECARET]+p[g.XRANGEPLAIN]+"$";tok("CARETLOOSE");p[g.CARETLOOSE]="^"+p[g.LONECARET]+p[g.XRANGEPLAINLOOSE]+"$";tok("COMPARATORLOOSE");p[g.COMPARATORLOOSE]="^"+p[g.GTLT]+"\\s*("+p[g.LOOSEPLAIN]+")$|^$";tok("COMPARATOR");p[g.COMPARATOR]="^"+p[g.GTLT]+"\\s*("+p[g.FULLPLAIN]+")$|^$";tok("COMPARATORTRIM");p[g.COMPARATORTRIM]="(\\s*)"+p[g.GTLT]+"\\s*("+p[g.LOOSEPLAIN]+"|"+p[g.XRANGEPLAIN]+")";d[g.COMPARATORTRIM]=new RegExp(p[g.COMPARATORTRIM],"g");u[g.COMPARATORTRIM]=new RegExp(makeSafeRe(p[g.COMPARATORTRIM]),"g");var b="$1$2$3";tok("HYPHENRANGE");p[g.HYPHENRANGE]="^\\s*("+p[g.XRANGEPLAIN]+")"+"\\s+-\\s+"+"("+p[g.XRANGEPLAIN]+")"+"\\s*$";tok("HYPHENRANGELOOSE");p[g.HYPHENRANGELOOSE]="^\\s*("+p[g.XRANGEPLAINLOOSE]+")"+"\\s+-\\s+"+"("+p[g.XRANGEPLAINLOOSE]+")"+"\\s*$";tok("STAR");p[g.STAR]="(<|>)?=?\\s*\\*";for(var Q=0;Qa){return null}var i=s.loose?u[g.LOOSE]:u[g.FULL];if(!i.test(r)){return null}try{return new SemVer(r,s)}catch(r){return null}}s.valid=valid;function valid(r,s){var i=parse(r,s);return i?i.version:null}s.clean=clean;function clean(r,s){var i=parse(r.trim().replace(/^[=v]+/,""),s);return i?i.version:null}s.SemVer=SemVer;function SemVer(r,s){if(!s||typeof s!=="object"){s={loose:!!s,includePrerelease:false}}if(r instanceof SemVer){if(r.loose===s.loose){return r}else{r=r.version}}else if(typeof r!=="string"){throw new TypeError("Invalid Version: "+r)}if(r.length>a){throw new TypeError("version is longer than "+a+" characters")}if(!(this instanceof SemVer)){return new SemVer(r,s)}i("SemVer",r,s);this.options=s;this.loose=!!s.loose;var c=r.trim().match(s.loose?u[g.LOOSE]:u[g.FULL]);if(!c){throw new TypeError("Invalid Version: "+r)}this.raw=r;this.major=+c[1];this.minor=+c[2];this.patch=+c[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(!c[4]){this.prerelease=[]}else{this.prerelease=c[4].split(".").map((function(r){if(/^[0-9]+$/.test(r)){var s=+r;if(s>=0&&s=0){if(typeof this.prerelease[i]==="number"){this.prerelease[i]++;i=-2}}if(i===-1){this.prerelease.push(0)}}if(s){if(this.prerelease[0]===s){if(isNaN(this.prerelease[1])){this.prerelease=[s,0]}}else{this.prerelease=[s,0]}}break;default:throw new Error("invalid increment argument: "+r)}this.format();this.raw=this.version;return this};s.inc=inc;function inc(r,s,i,a){if(typeof i==="string"){a=i;i=undefined}try{return new SemVer(r,i).inc(s,a).version}catch(r){return null}}s.diff=diff;function diff(r,s){if(eq(r,s)){return null}else{var i=parse(r);var a=parse(s);var A="";if(i.prerelease.length||a.prerelease.length){A="pre";var c="prerelease"}for(var l in i){if(l==="major"||l==="minor"||l==="patch"){if(i[l]!==a[l]){return A+l}}}return c}}s.compareIdentifiers=compareIdentifiers;var w=/^[0-9]+$/;function compareIdentifiers(r,s){var i=w.test(r);var a=w.test(s);if(i&&a){r=+r;s=+s}return r===s?0:i&&!a?-1:a&&!i?1:r0}s.lt=lt;function lt(r,s,i){return compare(r,s,i)<0}s.eq=eq;function eq(r,s,i){return compare(r,s,i)===0}s.neq=neq;function neq(r,s,i){return compare(r,s,i)!==0}s.gte=gte;function gte(r,s,i){return compare(r,s,i)>=0}s.lte=lte;function lte(r,s,i){return compare(r,s,i)<=0}s.cmp=cmp;function cmp(r,s,i,a){switch(s){case"===":if(typeof r==="object")r=r.version;if(typeof i==="object")i=i.version;return r===i;case"!==":if(typeof r==="object")r=r.version;if(typeof i==="object")i=i.version;return r!==i;case"":case"=":case"==":return eq(r,i,a);case"!=":return neq(r,i,a);case">":return gt(r,i,a);case">=":return gte(r,i,a);case"<":return lt(r,i,a);case"<=":return lte(r,i,a);default:throw new TypeError("Invalid operator: "+s)}}s.Comparator=Comparator;function Comparator(r,s){if(!s||typeof s!=="object"){s={loose:!!s,includePrerelease:false}}if(r instanceof Comparator){if(r.loose===!!s.loose){return r}else{r=r.value}}if(!(this instanceof Comparator)){return new Comparator(r,s)}r=r.trim().split(/\s+/).join(" ");i("comparator",r,s);this.options=s;this.loose=!!s.loose;this.parse(r);if(this.semver===v){this.value=""}else{this.value=this.operator+this.semver.version}i("comp",this)}var v={};Comparator.prototype.parse=function(r){var s=this.options.loose?u[g.COMPARATORLOOSE]:u[g.COMPARATOR];var i=r.match(s);if(!i){throw new TypeError("Invalid comparator: "+r)}this.operator=i[1]!==undefined?i[1]:"";if(this.operator==="="){this.operator=""}if(!i[2]){this.semver=v}else{this.semver=new SemVer(i[2],this.options.loose)}};Comparator.prototype.toString=function(){return this.value};Comparator.prototype.test=function(r){i("Comparator.test",r,this.options.loose);if(this.semver===v||r===v){return true}if(typeof r==="string"){try{r=new SemVer(r,this.options)}catch(r){return false}}return cmp(r,this.operator,this.semver,this.options)};Comparator.prototype.intersects=function(r,s){if(!(r instanceof Comparator)){throw new TypeError("a Comparator is required")}if(!s||typeof s!=="object"){s={loose:!!s,includePrerelease:false}}var i;if(this.operator===""){if(this.value===""){return true}i=new Range(r.value,s);return satisfies(this.value,i,s)}else if(r.operator===""){if(r.value===""){return true}i=new Range(this.value,s);return satisfies(r.semver,i,s)}var a=(this.operator===">="||this.operator===">")&&(r.operator===">="||r.operator===">");var A=(this.operator==="<="||this.operator==="<")&&(r.operator==="<="||r.operator==="<");var c=this.semver.version===r.semver.version;var l=(this.operator===">="||this.operator==="<=")&&(r.operator===">="||r.operator==="<=");var d=cmp(this.semver,"<",r.semver,s)&&((this.operator===">="||this.operator===">")&&(r.operator==="<="||r.operator==="<"));var u=cmp(this.semver,">",r.semver,s)&&((this.operator==="<="||this.operator==="<")&&(r.operator===">="||r.operator===">"));return a||A||c&&l||d||u};s.Range=Range;function Range(r,s){if(!s||typeof s!=="object"){s={loose:!!s,includePrerelease:false}}if(r instanceof Range){if(r.loose===!!s.loose&&r.includePrerelease===!!s.includePrerelease){return r}else{return new Range(r.raw,s)}}if(r instanceof Comparator){return new Range(r.value,s)}if(!(this instanceof Range)){return new Range(r,s)}this.options=s;this.loose=!!s.loose;this.includePrerelease=!!s.includePrerelease;this.raw=r.trim().split(/\s+/).join(" ");this.set=this.raw.split("||").map((function(r){return this.parseRange(r.trim())}),this).filter((function(r){return r.length}));if(!this.set.length){throw new TypeError("Invalid SemVer Range: "+this.raw)}this.format()}Range.prototype.format=function(){this.range=this.set.map((function(r){return r.join(" ").trim()})).join("||").trim();return this.range};Range.prototype.toString=function(){return this.range};Range.prototype.parseRange=function(r){var s=this.options.loose;var a=s?u[g.HYPHENRANGELOOSE]:u[g.HYPHENRANGE];r=r.replace(a,hyphenReplace);i("hyphen replace",r);r=r.replace(u[g.COMPARATORTRIM],b);i("comparator trim",r,u[g.COMPARATORTRIM]);r=r.replace(u[g.TILDETRIM],I);r=r.replace(u[g.CARETTRIM],B);r=r.split(/\s+/).join(" ");var A=s?u[g.COMPARATORLOOSE]:u[g.COMPARATOR];var c=r.split(" ").map((function(r){return parseComparator(r,this.options)}),this).join(" ").split(/\s+/);if(this.options.loose){c=c.filter((function(r){return!!r.match(A)}))}c=c.map((function(r){return new Comparator(r,this.options)}),this);return c};Range.prototype.intersects=function(r,s){if(!(r instanceof Range)){throw new TypeError("a Range is required")}return this.set.some((function(i){return isSatisfiable(i,s)&&r.set.some((function(r){return isSatisfiable(r,s)&&i.every((function(i){return r.every((function(r){return i.intersects(r,s)}))}))}))}))};function isSatisfiable(r,s){var i=true;var a=r.slice();var A=a.pop();while(i&&a.length){i=a.every((function(r){return A.intersects(r,s)}));A=a.pop()}return i}s.toComparators=toComparators;function toComparators(r,s){return new Range(r,s).set.map((function(r){return r.map((function(r){return r.value})).join(" ").trim().split(" ")}))}function parseComparator(r,s){i("comp",r,s);r=replaceCarets(r,s);i("caret",r);r=replaceTildes(r,s);i("tildes",r);r=replaceXRanges(r,s);i("xrange",r);r=replaceStars(r,s);i("stars",r);return r}function isX(r){return!r||r.toLowerCase()==="x"||r==="*"}function replaceTildes(r,s){return r.trim().split(/\s+/).map((function(r){return replaceTilde(r,s)})).join(" ")}function replaceTilde(r,s){var a=s.loose?u[g.TILDELOOSE]:u[g.TILDE];return r.replace(a,(function(s,a,A,c,l){i("tilde",r,s,a,A,c,l);var d;if(isX(a)){d=""}else if(isX(A)){d=">="+a+".0.0 <"+(+a+1)+".0.0"}else if(isX(c)){d=">="+a+"."+A+".0 <"+a+"."+(+A+1)+".0"}else if(l){i("replaceTilde pr",l);d=">="+a+"."+A+"."+c+"-"+l+" <"+a+"."+(+A+1)+".0"}else{d=">="+a+"."+A+"."+c+" <"+a+"."+(+A+1)+".0"}i("tilde return",d);return d}))}function replaceCarets(r,s){return r.trim().split(/\s+/).map((function(r){return replaceCaret(r,s)})).join(" ")}function replaceCaret(r,s){i("caret",r,s);var a=s.loose?u[g.CARETLOOSE]:u[g.CARET];return r.replace(a,(function(s,a,A,c,l){i("caret",r,s,a,A,c,l);var d;if(isX(a)){d=""}else if(isX(A)){d=">="+a+".0.0 <"+(+a+1)+".0.0"}else if(isX(c)){if(a==="0"){d=">="+a+"."+A+".0 <"+a+"."+(+A+1)+".0"}else{d=">="+a+"."+A+".0 <"+(+a+1)+".0.0"}}else if(l){i("replaceCaret pr",l);if(a==="0"){if(A==="0"){d=">="+a+"."+A+"."+c+"-"+l+" <"+a+"."+A+"."+(+c+1)}else{d=">="+a+"."+A+"."+c+"-"+l+" <"+a+"."+(+A+1)+".0"}}else{d=">="+a+"."+A+"."+c+"-"+l+" <"+(+a+1)+".0.0"}}else{i("no pr");if(a==="0"){if(A==="0"){d=">="+a+"."+A+"."+c+" <"+a+"."+A+"."+(+c+1)}else{d=">="+a+"."+A+"."+c+" <"+a+"."+(+A+1)+".0"}}else{d=">="+a+"."+A+"."+c+" <"+(+a+1)+".0.0"}}i("caret return",d);return d}))}function replaceXRanges(r,s){i("replaceXRanges",r,s);return r.split(/\s+/).map((function(r){return replaceXRange(r,s)})).join(" ")}function replaceXRange(r,s){r=r.trim();var a=s.loose?u[g.XRANGELOOSE]:u[g.XRANGE];return r.replace(a,(function(a,A,c,l,d,u){i("xRange",r,a,A,c,l,d,u);var p=isX(c);var g=p||isX(l);var h=g||isX(d);var C=h;if(A==="="&&C){A=""}u=s.includePrerelease?"-0":"";if(p){if(A===">"||A==="<"){a="<0.0.0-0"}else{a="*"}}else if(A&&C){if(g){l=0}d=0;if(A===">"){A=">=";if(g){c=+c+1;l=0;d=0}else{l=+l+1;d=0}}else if(A==="<="){A="<";if(g){c=+c+1}else{l=+l+1}}a=A+c+"."+l+"."+d+u}else if(g){a=">="+c+".0.0"+u+" <"+(+c+1)+".0.0"+u}else if(h){a=">="+c+"."+l+".0"+u+" <"+c+"."+(+l+1)+".0"+u}i("xRange return",a);return a}))}function replaceStars(r,s){i("replaceStars",r,s);return r.trim().replace(u[g.STAR],"")}function hyphenReplace(r,s,i,a,A,c,l,d,u,p,g,h,C){if(isX(i)){s=""}else if(isX(a)){s=">="+i+".0.0"}else if(isX(A)){s=">="+i+"."+a+".0"}else{s=">="+s}if(isX(u)){d=""}else if(isX(p)){d="<"+(+u+1)+".0.0"}else if(isX(g)){d="<"+u+"."+(+p+1)+".0"}else if(h){d="<="+u+"."+p+"."+g+"-"+h}else{d="<="+d}return(s+" "+d).trim()}Range.prototype.test=function(r){if(!r){return false}if(typeof r==="string"){try{r=new SemVer(r,this.options)}catch(r){return false}}for(var s=0;s0){var c=r[A].semver;if(c.major===s.major&&c.minor===s.minor&&c.patch===s.patch){return true}}}return false}return true}s.satisfies=satisfies;function satisfies(r,s,i){try{s=new Range(s,i)}catch(r){return false}return s.test(r)}s.maxSatisfying=maxSatisfying;function maxSatisfying(r,s,i){var a=null;var A=null;try{var c=new Range(s,i)}catch(r){return null}r.forEach((function(r){if(c.test(r)){if(!a||A.compare(r)===-1){a=r;A=new SemVer(a,i)}}}));return a}s.minSatisfying=minSatisfying;function minSatisfying(r,s,i){var a=null;var A=null;try{var c=new Range(s,i)}catch(r){return null}r.forEach((function(r){if(c.test(r)){if(!a||A.compare(r)===1){a=r;A=new SemVer(a,i)}}}));return a}s.minVersion=minVersion;function minVersion(r,s){r=new Range(r,s);var i=new SemVer("0.0.0");if(r.test(i)){return i}i=new SemVer("0.0.0-0");if(r.test(i)){return i}i=null;for(var a=0;a":if(s.prerelease.length===0){s.patch++}else{s.prerelease.push(0)}s.raw=s.format();case"":case">=":if(!i||gt(i,s)){i=s}break;case"<":case"<=":break;default:throw new Error("Unexpected operation: "+r.operator)}}))}if(i&&r.test(i)){return i}return null}s.validRange=validRange;function validRange(r,s){try{return new Range(r,s).range||"*"}catch(r){return null}}s.ltr=ltr;function ltr(r,s,i){return outside(r,s,"<",i)}s.gtr=gtr;function gtr(r,s,i){return outside(r,s,">",i)}s.outside=outside;function outside(r,s,i,a){r=new SemVer(r,a);s=new Range(s,a);var A,c,l,d,u;switch(i){case">":A=gt;c=lte;l=lt;d=">";u=">=";break;case"<":A=lt;c=gte;l=gt;d="<";u="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(satisfies(r,s,a)){return false}for(var p=0;p=0.0.0")}h=h||r;C=C||r;if(A(r.semver,h.semver,a)){h=r}else if(l(r.semver,C.semver,a)){C=r}}));if(h.operator===d||h.operator===u){return false}if((!C.operator||C.operator===d)&&c(r,C.semver)){return false}else if(C.operator===u&&l(r,C.semver)){return false}}return true}s.prerelease=prerelease;function prerelease(r,s){var i=parse(r,s);return i&&i.prerelease.length?i.prerelease:null}s.intersects=intersects;function intersects(r,s,i){r=new Range(r,i);s=new Range(s,i);return r.intersects(s)}s.coerce=coerce;function coerce(r,s){if(r instanceof SemVer){return r}if(typeof r==="number"){r=String(r)}if(typeof r!=="string"){return null}s=s||{};var i=null;if(!s.rtl){i=r.match(u[g.COERCE])}else{var a;while((a=u[g.COERCERTL].exec(r))&&(!i||i.index+i[0].length!==r.length)){if(!i||a.index+a[0].length!==i.index+i[0].length){i=a}u[g.COERCERTL].lastIndex=a.index+a[1].length+a[2].length}u[g.COERCERTL].lastIndex=-1}if(i===null){return null}return parse(i[2]+"."+(i[3]||"0")+"."+(i[4]||"0"),s)}},75147:(r,s,i)=>{const{EventEmitter:a}=i(82361);const A=new Error("Stream was destroyed");const c=new Error("Premature close");const l=i(5322);const d=i(92958);const u=(1<<28)-1;const p=1;const g=2;const h=4;const C=8;const y=u^p;const I=u^g;const B=1<<4;const b=2<<4;const Q=4<<4;const w=8<<4;const v=16<<4;const S=32<<4;const R=64<<4;const N=128<<4;const x=256<<4;const D=512<<4;const k=1024<<4;const T=2048<<4;const _=4096<<4;const P=8192<<4;const O=v|S;const L=B|_;const M=Q|B;const U=x|w;const H=v|P;const G=u^B;const q=u^Q;const V=u^(Q|_);const j=u^_;const z=u^v;const Y=u^(w|D);const J=u^R;const W=u^O;const X=u^T;const $=u^b;const K=u^P;const Z=u^H;const ee=1<<18;const te=2<<18;const re=4<<18;const ne=8<<18;const se=16<<18;const ie=32<<18;const oe=64<<18;const ae=128<<18;const Ae=256<<18;const ce=512<<18;const le=u^(ee|Ae);const de=u^re;const ue=u^ce;const pe=u^se;const ge=u^ne;const he=u^ae;const me=u^te;const fe=B|ee;const Ee=u^fe;const Ce=k|ie;const ye=h|C|g;const Ie=ye|p;const Be=ye|Ce;const be=de&q;const Qe=ae|T;const we=Qe&Ee;const ve=Ie|we;const Se=Ie|R|k;const Re=Ie|k|w;const Ne=Ie|R|w;const xe=Ie|x|w|D;const De=Ie|B|R|k|_|P;const ke=ye|R|k;const Te=b|Ie|T|Q;const _e=Ie|ce|ie;const Pe=ne|se;const Oe=ne|ee;const Fe=ne|se|Ie|ee;const Le=Ie|ee|ne;const Me=re|ee;const Ue=ee|Ae;const He=Ie|ce|Oe|ie;const Ge=se|ye|ce|ie;const qe=te|Ie|ae|re;const Ve=Symbol.asyncIterator||Symbol("asyncIterator");class WritableState{constructor(r,{highWaterMark:s=16384,map:i=null,mapWritable:a,byteLength:A,byteLengthWritable:c}={}){this.stream=r;this.queue=new d;this.highWaterMark=s;this.buffered=0;this.error=null;this.pipeline=null;this.drains=null;this.byteLength=c||A||defaultByteLength;this.map=a||i;this.afterWrite=afterWrite.bind(this);this.afterUpdateNextTick=updateWriteNT.bind(this)}get ended(){return(this.stream._duplexState&ie)!==0}push(r){if(this.map!==null)r=this.map(r);this.buffered+=this.byteLength(r);this.queue.push(r);if(this.buffered0;this.error=null;this.pipeline=null;this.byteLength=c||A||defaultByteLength;this.map=a||i;this.pipeTo=null;this.afterRead=afterRead.bind(this);this.afterUpdateNextTick=updateReadNT.bind(this)}get ended(){return(this.stream._duplexState&k)!==0}pipe(r,s){if(this.pipeTo!==null)throw new Error("Can only pipe to one destination");if(typeof s!=="function")s=null;this.stream._duplexState|=S;this.pipeTo=r;this.pipeline=new Pipeline(this.stream,r,s);if(s)this.stream.on("error",noop);if(isStreamx(r)){r._writableState.pipeline=this.pipeline;if(s)r.on("error",noop);r.on("finish",this.pipeline.finished.bind(this.pipeline))}else{const s=this.pipeline.done.bind(this.pipeline,r);const i=this.pipeline.done.bind(this.pipeline,r,null);r.on("error",s);r.on("close",i);r.on("finish",this.pipeline.finished.bind(this.pipeline))}r.on("drain",afterDrain.bind(this));this.stream.emit("piping",r);r.emit("pipe",this.stream)}push(r){const s=this.stream;if(r===null){this.highWaterMark=0;s._duplexState=(s._duplexState|R)&V;return false}if(this.map!==null)r=this.map(r);this.buffered+=this.byteLength(r);this.queue.push(r);s._duplexState=(s._duplexState|w)&j;return this.buffered0)s.push(this.shift());for(let r=0;r0)a.drains.shift().resolve(false);if(a.pipeline!==null)a.pipeline.done(s,r)}}function afterWrite(r){const s=this.stream;if(r)s.destroy(r);s._duplexState&=le;if(this.drains!==null)tickDrains(this.drains);if((s._duplexState&Fe)===se){s._duplexState&=pe;if((s._duplexState&oe)===oe){s.emit("drain")}}this.updateCallback()}function afterRead(r){if(r)this.stream.destroy(r);this.stream._duplexState&=G;if(this.readAhead===false&&(this.stream._duplexState&v)===0)this.stream._duplexState&=K;this.updateCallback()}function updateReadNT(){if((this.stream._duplexState&b)===0){this.stream._duplexState&=X;this.update()}}function updateWriteNT(){if((this.stream._duplexState&te)===0){this.stream._duplexState&=he;this.update()}}function tickDrains(r){for(let s=0;s=r._readableState.highWaterMark}static isPaused(r){return(r._duplexState&v)===0}[Ve](){const r=this;let s=null;let i=null;let a=null;this.on("error",(r=>{s=r}));this.on("readable",onreadable);this.on("close",onclose);return{[Ve](){return this},next(){return new Promise((function(s,A){i=s;a=A;const c=r.read();if(c!==null)ondata(c);else if((r._duplexState&C)!==0)ondata(null)}))},return(){return destroy(null)},throw(r){return destroy(r)}};function onreadable(){if(i!==null)ondata(r.read())}function onclose(){if(i!==null)ondata(null)}function ondata(c){if(a===null)return;if(s)a(s);else if(c===null&&(r._duplexState&k)===0)a(A);else i({value:c,done:c===null});a=i=null}function destroy(s){r.destroy(s);return new Promise(((i,a)=>{if(r._duplexState&C)return i({value:undefined,done:true});r.once("close",(function(){if(s)a(s);else i({value:undefined,done:true})}))}))}}}class Writable extends Stream{constructor(r){super(r);this._duplexState|=p|k;this._writableState=new WritableState(this,r);if(r){if(r.writev)this._writev=r.writev;if(r.write)this._write=r.write;if(r.final)this._final=r.final;if(r.eagerOpen)this._writableState.updateNextTick()}}_writev(r,s){s(null)}_write(r,s){this._writableState.autoBatch(r,s)}_final(r){r(null)}static isBackpressured(r){return(r._duplexState&Ge)!==0}static drained(r){if(r.destroyed)return Promise.resolve(false);const s=r._writableState;const i=isWritev(r)?Math.min(1,s.queue.length):s.queue.length;const a=i+(r._duplexState&Ae?1:0);if(a===0)return Promise.resolve(true);if(s.drains===null)s.drains=[];return new Promise((r=>{s.drains.push({writes:a,resolve:r})}))}write(r){this._writableState.updateNextTick();return this._writableState.push(r)}end(r){this._writableState.updateNextTick();this._writableState.end(r);return this}}class Duplex extends Readable{constructor(r){super(r);this._duplexState=p|this._duplexState&P;this._writableState=new WritableState(this,r);if(r){if(r.writev)this._writev=r.writev;if(r.write)this._write=r.write;if(r.final)this._final=r.final}}_writev(r,s){s(null)}_write(r,s){this._writableState.autoBatch(r,s)}_final(r){r(null)}write(r){this._writableState.updateNextTick();return this._writableState.push(r)}end(r){this._writableState.updateNextTick();this._writableState.end(r);return this}}class Transform extends Duplex{constructor(r){super(r);this._transformState=new TransformState(this);if(r){if(r.transform)this._transform=r.transform;if(r.flush)this._flush=r.flush}}_write(r,s){if(this._readableState.buffered>=this._readableState.highWaterMark){this._transformState.data=r}else{this._transform(r,this._transformState.afterTransform)}}_read(r){if(this._transformState.data!==null){const s=this._transformState.data;this._transformState.data=null;r(null);this._transform(s,this._transformState.afterTransform)}else{r(null)}}destroy(r){super.destroy(r);if(this._transformState.data!==null){this._transformState.data=null;this._transformState.afterTransform()}}_transform(r,s){s(null,r)}_flush(r){r(null)}_final(r){this._transformState.afterFinal=r;this._flush(transformAfterFlush.bind(this))}}class PassThrough extends Transform{}function transformAfterFlush(r,s){const i=this._transformState.afterFinal;if(r)return i(r);if(s!==null&&s!==undefined)this.push(s);this.push(null);i(null)}function pipelinePromise(...r){return new Promise(((s,i)=>pipeline(...r,(r=>{if(r)return i(r);s()}))))}function pipeline(r,...s){const i=Array.isArray(r)?[...r,...s]:[r,...s];const a=i.length&&typeof i[i.length-1]==="function"?i.pop():null;if(i.length<2)throw new Error("Pipeline requires at least 2 streams");let A=i[0];let l=null;let d=null;for(let r=1;r1,onerror);A.pipe(l)}A=l}if(a){let r=false;const s=isStreamx(l)||!!(l._writableState&&l._writableState.autoDestroy);l.on("error",(r=>{if(d===null)d=r}));l.on("finish",(()=>{r=true;if(!s)a(d)}));if(s){l.on("close",(()=>a(d||(r?null:c))))}}return l;function errorHandle(r,s,i,a){r.on("error",a);r.on("close",onclose);function onclose(){if(s&&r._readableState&&!r._readableState.ended)return a(c);if(i&&r._writableState&&!r._writableState.ended)return a(c)}}function onerror(r){if(!r||d)return;d=r;for(const s of i){s.destroy(r)}}}function isStream(r){return!!r._readableState||!!r._writableState}function isStreamx(r){return typeof r._duplexState==="number"&&isStream(r)}function getStreamError(r){const s=r._readableState&&r._readableState.error||r._writableState&&r._writableState.error;return s===A?null:s}function isReadStreamx(r){return isStreamx(r)&&r.readable}function isTypedArray(r){return typeof r==="object"&&r!==null&&typeof r.byteLength==="number"}function defaultByteLength(r){return isTypedArray(r)?r.byteLength:1024}function noop(){}function abort(){this.destroy(new Error("Stream aborted."))}function isWritev(r){return r._writev!==Writable.prototype._writev&&r._writev!==Duplex.prototype._writev}r.exports={pipeline:pipeline,pipelinePromise:pipelinePromise,isStream:isStream,isStreamx:isStreamx,getStreamError:getStreamError,Stream:Stream,Writable:Writable,Readable:Readable,Duplex:Duplex,Transform:Transform,PassThrough:PassThrough}},94841:(r,s,i)=>{"use strict";var a=i(21867).Buffer;var A=a.isEncoding||function(r){r=""+r;switch(r&&r.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return true;default:return false}};function _normalizeEncoding(r){if(!r)return"utf8";var s;while(true){switch(r){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return r;default:if(s)return;r=(""+r).toLowerCase();s=true}}}function normalizeEncoding(r){var s=_normalizeEncoding(r);if(typeof s!=="string"&&(a.isEncoding===A||!A(r)))throw new Error("Unknown encoding: "+r);return s||r}s.s=StringDecoder;function StringDecoder(r){this.encoding=normalizeEncoding(r);var s;switch(this.encoding){case"utf16le":this.text=utf16Text;this.end=utf16End;s=4;break;case"utf8":this.fillLast=utf8FillLast;s=4;break;case"base64":this.text=base64Text;this.end=base64End;s=3;break;default:this.write=simpleWrite;this.end=simpleEnd;return}this.lastNeed=0;this.lastTotal=0;this.lastChar=a.allocUnsafe(s)}StringDecoder.prototype.write=function(r){if(r.length===0)return"";var s;var i;if(this.lastNeed){s=this.fillLast(r);if(s===undefined)return"";i=this.lastNeed;this.lastNeed=0}else{i=0}if(i>5===6)return 2;else if(r>>4===14)return 3;else if(r>>3===30)return 4;return r>>6===2?-1:-2}function utf8CheckIncomplete(r,s,i){var a=s.length-1;if(a=0){if(A>0)r.lastNeed=A-1;return A}if(--a=0){if(A>0)r.lastNeed=A-2;return A}if(--a=0){if(A>0){if(A===2)A=0;else r.lastNeed=A-3}return A}return 0}function utf8CheckExtraBytes(r,s,i){if((s[0]&192)!==128){r.lastNeed=0;return"�"}if(r.lastNeed>1&&s.length>1){if((s[1]&192)!==128){r.lastNeed=1;return"�"}if(r.lastNeed>2&&s.length>2){if((s[2]&192)!==128){r.lastNeed=2;return"�"}}}}function utf8FillLast(r){var s=this.lastTotal-this.lastNeed;var i=utf8CheckExtraBytes(this,r,s);if(i!==undefined)return i;if(this.lastNeed<=r.length){r.copy(this.lastChar,s,0,this.lastNeed);return this.lastChar.toString(this.encoding,0,this.lastTotal)}r.copy(this.lastChar,s,0,r.length);this.lastNeed-=r.length}function utf8Text(r,s){var i=utf8CheckIncomplete(this,r,s);if(!this.lastNeed)return r.toString("utf8",s);this.lastTotal=i;var a=r.length-(i-this.lastNeed);r.copy(this.lastChar,0,a);return r.toString("utf8",s,a)}function utf8End(r){var s=r&&r.length?this.write(r):"";if(this.lastNeed)return s+"�";return s}function utf16Text(r,s){if((r.length-s)%2===0){var i=r.toString("utf16le",s);if(i){var a=i.charCodeAt(i.length-1);if(a>=55296&&a<=56319){this.lastNeed=2;this.lastTotal=4;this.lastChar[0]=r[r.length-2];this.lastChar[1]=r[r.length-1];return i.slice(0,-1)}}return i}this.lastNeed=1;this.lastTotal=2;this.lastChar[0]=r[r.length-1];return r.toString("utf16le",s,r.length-1)}function utf16End(r){var s=r&&r.length?this.write(r):"";if(this.lastNeed){var i=this.lastTotal-this.lastNeed;return s+this.lastChar.toString("utf16le",0,i)}return s}function base64Text(r,s){var i=(r.length-s)%3;if(i===0)return r.toString("base64",s);this.lastNeed=3-i;this.lastTotal=3;if(i===1){this.lastChar[0]=r[r.length-1]}else{this.lastChar[0]=r[r.length-2];this.lastChar[1]=r[r.length-1]}return r.toString("base64",s,r.length-i)}function base64End(r){var s=r&&r.length?this.write(r):"";if(this.lastNeed)return s+this.lastChar.toString("base64",0,3-this.lastNeed);return s}function simpleWrite(r){return r.toString(this.encoding)}function simpleEnd(r){return r&&r.length?this.write(r):""}},14526:r=>{const s=/^[-+]?0x[a-fA-F0-9]+$/;const i=/^([\-\+])?(0*)(\.[0-9]+([eE]\-?[0-9]+)?|[0-9]+(\.[0-9]+([eE]\-?[0-9]+)?)?)$/;if(!Number.parseInt&&window.parseInt){Number.parseInt=window.parseInt}if(!Number.parseFloat&&window.parseFloat){Number.parseFloat=window.parseFloat}const a={hex:true,leadingZeros:true,decimalPoint:".",eNotation:true};function toNumber(r,A={}){A=Object.assign({},a,A);if(!r||typeof r!=="string")return r;let c=r.trim();if(A.skipLike!==undefined&&A.skipLike.test(c))return r;else if(A.hex&&s.test(c)){return Number.parseInt(c,16)}else{const s=i.exec(c);if(s){const i=s[1];const a=s[2];let l=trimZeros(s[3]);const d=s[4]||s[6];if(!A.leadingZeros&&a.length>0&&i&&c[2]!==".")return r;else if(!A.leadingZeros&&a.length>0&&!i&&c[1]!==".")return r;else{const s=Number(c);const u=""+s;if(u.search(/[eE]/)!==-1){if(A.eNotation)return s;else return r}else if(d){if(A.eNotation)return s;else return r}else if(c.indexOf(".")!==-1){if(u==="0"&&l==="")return s;else if(u===l)return s;else if(i&&u==="-"+l)return s;else return r}if(a){if(l===u)return s;else if(i+l===u)return s;else return r}if(c===u)return s;else if(c===i+u)return s;return r}}else{return r}}}function trimZeros(r){if(r&&r.indexOf(".")!==-1){r=r.replace(/0+$/,"");if(r===".")r="0";else if(r[0]===".")r="0"+r;else if(r[r.length-1]===".")r=r.substr(0,r.length-1);return r}return r}r.exports=toNumber},59318:(r,s,i)=>{"use strict";const a=i(22037);const A=i(76224);const c=i(31621);const{env:l}=process;let d;if(c("no-color")||c("no-colors")||c("color=false")||c("color=never")){d=0}else if(c("color")||c("colors")||c("color=true")||c("color=always")){d=1}if("FORCE_COLOR"in l){if(l.FORCE_COLOR==="true"){d=1}else if(l.FORCE_COLOR==="false"){d=0}else{d=l.FORCE_COLOR.length===0?1:Math.min(parseInt(l.FORCE_COLOR,10),3)}}function translateLevel(r){if(r===0){return false}return{level:r,hasBasic:true,has256:r>=2,has16m:r>=3}}function supportsColor(r,s){if(d===0){return 0}if(c("color=16m")||c("color=full")||c("color=truecolor")){return 3}if(c("color=256")){return 2}if(r&&!s&&d===undefined){return 0}const i=d||0;if(l.TERM==="dumb"){return i}if(process.platform==="win32"){const r=a.release().split(".");if(Number(r[0])>=10&&Number(r[2])>=10586){return Number(r[2])>=14931?3:2}return 1}if("CI"in l){if(["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some((r=>r in l))||l.CI_NAME==="codeship"){return 1}return i}if("TEAMCITY_VERSION"in l){return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(l.TEAMCITY_VERSION)?1:0}if(l.COLORTERM==="truecolor"){return 3}if("TERM_PROGRAM"in l){const r=parseInt((l.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(l.TERM_PROGRAM){case"iTerm.app":return r>=3?3:2;case"Apple_Terminal":return 2}}if(/-256(color)?$/i.test(l.TERM)){return 2}if(/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(l.TERM)){return 1}if("COLORTERM"in l){return 1}return i}function getSupportLevel(r){const s=supportsColor(r,r&&r.isTTY);return translateLevel(s)}r.exports={supportsColor:getSupportLevel,stdout:translateLevel(supportsColor(true,A.isatty(1))),stderr:translateLevel(supportsColor(true,A.isatty(2)))}},68926:(r,s,i)=>{const a={S_IFMT:61440,S_IFDIR:16384,S_IFCHR:8192,S_IFBLK:24576,S_IFIFO:4096,S_IFLNK:40960};try{r.exports=i(57147).constants||a}catch{r.exports=a}},57882:(r,s,i)=>{const{Writable:a,Readable:A,getStreamError:c}=i(75147);const l=i(92958);const d=i(33497);const u=i(68860);const p=d.alloc(0);class BufferList{constructor(){this.buffered=0;this.shifted=0;this.queue=new l;this._offset=0}push(r){this.buffered+=r.byteLength;this.queue.push(r)}shiftFirst(r){return this._buffered===0?null:this._next(r)}shift(r){if(r>this.buffered)return null;if(r===0)return p;let s=this._next(r);if(r===s.byteLength)return s;const i=[s];while((r-=s.byteLength)>0){s=this._next(r);i.push(s)}return d.concat(i)}_next(r){const s=this.queue.peek();const i=s.byteLength-this._offset;if(r>=i){const r=this._offset?s.subarray(this._offset,s.byteLength):s;this.queue.shift();this._offset=0;this.buffered-=i;this.shifted+=i;return r}this.buffered-=r;this.shifted+=r;return s.subarray(this._offset,this._offset+=r)}}class Source extends A{constructor(r,s,i){super();this.header=s;this.offset=i;this._parent=r}_read(r){if(this.header.size===0){this.push(null)}if(this._parent._stream===this){this._parent._update()}r(null)}_predestroy(){this._parent.destroy(c(this))}_detach(){if(this._parent._stream===this){this._parent._stream=null;this._parent._missing=overflow(this.header.size);this._parent._update()}}_destroy(r){this._detach();r(null)}}class Extract extends a{constructor(r){super(r);if(!r)r={};this._buffer=new BufferList;this._offset=0;this._header=null;this._stream=null;this._missing=0;this._longHeader=false;this._callback=noop;this._locked=false;this._finished=false;this._pax=null;this._paxGlobal=null;this._gnuLongPath=null;this._gnuLongLinkPath=null;this._filenameEncoding=r.filenameEncoding||"utf-8";this._allowUnknownFormat=!!r.allowUnknownFormat;this._unlockBound=this._unlock.bind(this)}_unlock(r){this._locked=false;if(r){this.destroy(r);this._continueWrite(r);return}this._update()}_consumeHeader(){if(this._locked)return false;this._offset=this._buffer.shifted;try{this._header=u.decode(this._buffer.shift(512),this._filenameEncoding,this._allowUnknownFormat)}catch(r){this._continueWrite(r);return false}if(!this._header)return true;switch(this._header.type){case"gnu-long-path":case"gnu-long-link-path":case"pax-global-header":case"pax-header":this._longHeader=true;this._missing=this._header.size;return true}this._locked=true;this._applyLongHeaders();if(this._header.size===0||this._header.type==="directory"){this.emit("entry",this._header,this._createStream(),this._unlockBound);return true}this._stream=this._createStream();this._missing=this._header.size;this.emit("entry",this._header,this._stream,this._unlockBound);return true}_applyLongHeaders(){if(this._gnuLongPath){this._header.name=this._gnuLongPath;this._gnuLongPath=null}if(this._gnuLongLinkPath){this._header.linkname=this._gnuLongLinkPath;this._gnuLongLinkPath=null}if(this._pax){if(this._pax.path)this._header.name=this._pax.path;if(this._pax.linkpath)this._header.linkname=this._pax.linkpath;if(this._pax.size)this._header.size=parseInt(this._pax.size,10);this._header.pax=this._pax;this._pax=null}}_decodeLongHeader(r){switch(this._header.type){case"gnu-long-path":this._gnuLongPath=u.decodeLongPath(r,this._filenameEncoding);break;case"gnu-long-link-path":this._gnuLongLinkPath=u.decodeLongPath(r,this._filenameEncoding);break;case"pax-global-header":this._paxGlobal=u.decodePax(r);break;case"pax-header":this._pax=this._paxGlobal===null?u.decodePax(r):Object.assign({},this._paxGlobal,u.decodePax(r));break}}_consumeLongHeader(){this._longHeader=false;this._missing=overflow(this._header.size);const r=this._buffer.shift(this._header.size);try{this._decodeLongHeader(r)}catch(r){this._continueWrite(r);return false}return true}_consumeStream(){const r=this._buffer.shiftFirst(this._missing);if(r===null)return false;this._missing-=r.byteLength;const s=this._stream.push(r);if(this._missing===0){this._stream.push(null);if(s)this._stream._detach();return s&&this._locked===false}return s}_createStream(){return new Source(this,this._header,this._offset)}_update(){while(this._buffer.buffered>0&&!this.destroying){if(this._missing>0){if(this._stream!==null){if(this._consumeStream()===false)return;continue}if(this._longHeader===true){if(this._missing>this._buffer.buffered)break;if(this._consumeLongHeader()===false)return false;continue}const r=this._buffer.shiftFirst(this._missing);if(r!==null)this._missing-=r.byteLength;continue}if(this._buffer.buffered<512)break;if(this._stream!==null||this._consumeHeader()===false)return}this._continueWrite(null)}_continueWrite(r){const s=this._callback;this._callback=noop;s(r)}_write(r,s){this._callback=s;this._buffer.push(r);this._update()}_final(r){this._finished=this._missing===0&&this._buffer.buffered===0;r(this._finished?null:new Error("Unexpected end of data"))}_predestroy(){this._continueWrite(null)}_destroy(r){if(this._stream)this._stream.destroy(c(this));r(null)}[Symbol.asyncIterator](){let r=null;let s=null;let i=null;let a=null;let A=null;const c=this;this.on("entry",onentry);this.on("error",(s=>{r=s}));this.on("close",onclose);return{[Symbol.asyncIterator](){return this},next(){return new Promise(onnext)},return(){return destroy(null)},throw(r){return destroy(r)}};function consumeCallback(r){if(!A)return;const s=A;A=null;s(r)}function onnext(A,l){if(r){return l(r)}if(a){A({value:a,done:false});a=null;return}s=A;i=l;consumeCallback(null);if(c._finished&&s){s({value:undefined,done:true});s=i=null}}function onentry(r,c,l){A=l;c.on("error",noop);if(s){s({value:c,done:false});s=i=null}else{a=c}}function onclose(){consumeCallback(r);if(!s)return;if(r)i(r);else s({value:undefined,done:true});s=i=null}function destroy(r){c.destroy(r);consumeCallback(r);return new Promise(((s,i)=>{if(c.destroyed)return s({value:undefined,done:true});c.once("close",(function(){if(r)i(r);else s({value:undefined,done:true})}))}))}}}r.exports=function extract(r){return new Extract(r)};function noop(){}function overflow(r){r&=511;return r&&512-r}},68860:(r,s,i)=>{const a=i(33497);const A="0000000000000000000";const c="7777777777777777777";const l="0".charCodeAt(0);const d=a.from([117,115,116,97,114,0]);const u=a.from([l,l]);const p=a.from([117,115,116,97,114,32]);const g=a.from([32,0]);const h=4095;const C=257;const y=263;s.decodeLongPath=function decodeLongPath(r,s){return decodeStr(r,0,r.length,s)};s.encodePax=function encodePax(r){let s="";if(r.name)s+=addLength(" path="+r.name+"\n");if(r.linkname)s+=addLength(" linkpath="+r.linkname+"\n");const i=r.pax;if(i){for(const r in i){s+=addLength(" "+r+"="+i[r]+"\n")}}return a.from(s)};s.decodePax=function decodePax(r){const s={};while(r.length){let i=0;while(i100){const r=i.indexOf("/");if(r===-1)return null;A+=A?"/"+i.slice(0,r):i.slice(0,r);i=i.slice(r+1)}if(a.byteLength(i)>100||a.byteLength(A)>155)return null;if(r.linkname&&a.byteLength(r.linkname)>100)return null;a.write(s,i);a.write(s,encodeOct(r.mode&h,6),100);a.write(s,encodeOct(r.uid,6),108);a.write(s,encodeOct(r.gid,6),116);encodeSize(r.size,s,124);a.write(s,encodeOct(r.mtime.getTime()/1e3|0,11),136);s[156]=l+toTypeflag(r.type);if(r.linkname)a.write(s,r.linkname,157);a.copy(d,s,C);a.copy(u,s,y);if(r.uname)a.write(s,r.uname,265);if(r.gname)a.write(s,r.gname,297);a.write(s,encodeOct(r.devmajor||0,6),329);a.write(s,encodeOct(r.devminor||0,6),337);if(A)a.write(s,A,345);a.write(s,encodeOct(cksum(s),6),148);return s};s.decode=function decode(r,s,i){let a=r[156]===0?0:r[156]-l;let A=decodeStr(r,0,100,s);const c=decodeOct(r,100,8);const d=decodeOct(r,108,8);const u=decodeOct(r,116,8);const p=decodeOct(r,124,12);const g=decodeOct(r,136,12);const h=toType(a);const C=r[157]===0?null:decodeStr(r,157,100,s);const y=decodeStr(r,265,32);const I=decodeStr(r,297,32);const B=decodeOct(r,329,8);const b=decodeOct(r,337,8);const Q=cksum(r);if(Q===8*32)return null;if(Q!==decodeOct(r,148,8))throw new Error("Invalid tar header. Maybe the tar is corrupted or it needs to be gunzipped?");if(isUSTAR(r)){if(r[345])A=decodeStr(r,345,155,s)+"/"+A}else if(isGNU(r)){}else{if(!i){throw new Error("Invalid tar header: unknown format.")}}if(a===0&&A&&A[A.length-1]==="/")a=5;return{name:A,mode:c,uid:d,gid:u,size:p,mtime:new Date(1e3*g),type:h,linkname:C,uname:y,gname:I,devmajor:B,devminor:b,pax:null}};function isUSTAR(r){return a.equals(d,r.subarray(C,C+6))}function isGNU(r){return a.equals(p,r.subarray(C,C+6))&&a.equals(g,r.subarray(y,y+2))}function clamp(r,s,i){if(typeof r!=="number")return i;r=~~r;if(r>=s)return s;if(r>=0)return r;r+=s;if(r>=0)return r;return 0}function toType(r){switch(r){case 0:return"file";case 1:return"link";case 2:return"symlink";case 3:return"character-device";case 4:return"block-device";case 5:return"directory";case 6:return"fifo";case 7:return"contiguous-file";case 72:return"pax-header";case 55:return"pax-global-header";case 27:return"gnu-long-link-path";case 28:case 30:return"gnu-long-path"}return null}function toTypeflag(r){switch(r){case"file":return 0;case"link":return 1;case"symlink":return 2;case"character-device":return 3;case"block-device":return 4;case"directory":return 5;case"fifo":return 6;case"contiguous-file":return 7;case"pax-header":return 72}return 0}function indexOf(r,s,i,a){for(;is)return c.slice(0,s)+" ";return A.slice(0,s-r.length)+r+" "}function encodeSizeBin(r,s,i){s[i]=128;for(let a=11;a>0;a--){s[i+a]=r&255;r=Math.floor(r/256)}}function encodeSize(r,s,i){if(r.toString(8).length>11){encodeSizeBin(r,s,i)}else{a.write(s,encodeOct(r,11),i)}}function parse256(r){let s;if(r[0]===128)s=true;else if(r[0]===255)s=false;else return null;const i=[];let a;for(a=r.length-1;a>0;a--){const A=r[a];if(s)i.push(A);else i.push(255-A)}let A=0;const c=i.length;for(a=0;a=Math.pow(10,i))i++;return s+i+r}},2283:(r,s,i)=>{s.extract=i(57882);s.pack=i(94930)},94930:(r,s,i)=>{const{Readable:a,Writable:A,getStreamError:c}=i(75147);const l=i(33497);const d=i(68926);const u=i(68860);const p=493;const g=420;const h=l.alloc(1024);class Sink extends A{constructor(r,s,i){super({mapWritable:mapWritable,eagerOpen:true});this.written=0;this.header=s;this._callback=i;this._linkname=null;this._isLinkname=s.type==="symlink"&&!s.linkname;this._isVoid=s.type!=="file"&&s.type!=="contiguous-file";this._finished=false;this._pack=r;this._openCallback=null;if(this._pack._stream===null)this._pack._stream=this;else this._pack._pending.push(this)}_open(r){this._openCallback=r;if(this._pack._stream===this)this._continueOpen()}_continuePack(r){if(this._callback===null)return;const s=this._callback;this._callback=null;s(r)}_continueOpen(){if(this._pack._stream===null)this._pack._stream=this;const r=this._openCallback;this._openCallback=null;if(r===null)return;if(this._pack.destroying)return r(new Error("pack stream destroyed"));if(this._pack._finalized)return r(new Error("pack stream is already finalized"));this._pack._stream=this;if(!this._isLinkname){this._pack._encode(this.header)}if(this._isVoid){this._finish();this._continuePack(null)}r(null)}_write(r,s){if(this._isLinkname){this._linkname=this._linkname?l.concat([this._linkname,r]):r;return s(null)}if(this._isVoid){if(r.byteLength>0){return s(new Error("No body allowed for this entry"))}return s()}this.written+=r.byteLength;if(this._pack.push(r))return s();this._pack._drain=s}_finish(){if(this._finished)return;this._finished=true;if(this._isLinkname){this.header.linkname=this._linkname?l.toString(this._linkname,"utf-8"):"";this._pack._encode(this.header)}overflow(this._pack,this.header.size);this._pack._done(this)}_final(r){if(this.written!==this.header.size){return r(new Error("Size mismatch"))}this._finish();r(null)}_getError(){return c(this)||new Error("tar entry destroyed")}_predestroy(){this._pack.destroy(this._getError())}_destroy(r){this._pack._done(this);this._continuePack(this._finished?null:this._getError());r()}}class Pack extends a{constructor(r){super(r);this._drain=noop;this._finalized=false;this._finalizing=false;this._pending=[];this._stream=null}entry(r,s,i){if(this._finalized||this.destroying)throw new Error("already finalized or destroyed");if(typeof s==="function"){i=s;s=null}if(!i)i=noop;if(!r.size||r.type==="symlink")r.size=0;if(!r.type)r.type=modeToType(r.mode);if(!r.mode)r.mode=r.type==="directory"?p:g;if(!r.uid)r.uid=0;if(!r.gid)r.gid=0;if(!r.mtime)r.mtime=new Date;if(typeof s==="string")s=l.from(s);const a=new Sink(this,r,i);if(l.isBuffer(s)){r.size=s.byteLength;a.write(s);a.end();return a}if(a._isVoid){return a}return a}finalize(){if(this._stream||this._pending.length>0){this._finalizing=true;return}if(this._finalized)return;this._finalized=true;this.push(h);this.push(null)}_done(r){if(r!==this._stream)return;this._stream=null;if(this._finalizing)this.finalize();if(this._pending.length)this._pending.shift()._continueOpen()}_encode(r){if(!r.pax){const s=u.encode(r);if(s){this.push(s);return}}this._encodePax(r)}_encodePax(r){const s=u.encodePax({name:r.name,linkname:r.linkname,pax:r.pax});const i={name:"PaxHeader",mode:r.mode,uid:r.uid,gid:r.gid,size:s.byteLength,mtime:r.mtime,type:"pax-header",linkname:r.linkname&&"PaxHeader",uname:r.uname,gname:r.gname,devmajor:r.devmajor,devminor:r.devminor};this.push(u.encode(i));this.push(s);overflow(this,s.byteLength);i.size=r.size;i.type=r.type;this.push(u.encode(i))}_doDrain(){const r=this._drain;this._drain=noop;r()}_predestroy(){const r=c(this);if(this._stream)this._stream.destroy(r);while(this._pending.length){const s=this._pending.shift();s.destroy(r);s._continueOpen()}this._doDrain()}_read(r){this._doDrain();r()}}r.exports=function pack(r){return new Pack(r)};function modeToType(r){switch(r&d.S_IFMT){case d.S_IFBLK:return"block-device";case d.S_IFCHR:return"character-device";case d.S_IFDIR:return"directory";case d.S_IFIFO:return"fifo";case d.S_IFLNK:return"symlink"}return"file"}function noop(){}function overflow(r,s){s&=511;if(s)r.push(h.subarray(0,512-s))}function mapWritable(r){return l.isBuffer(r)?r:l.from(r)}},8517:(r,s,i)=>{ +/*! + * Tmp + * + * Copyright (c) 2011-2017 KARASZI Istvan + * * MIT Licensed */ - - - +const a=i(57147);const A=i(22037);const c=i(71017);const l=i(6113);const d={fs:a.constants,os:A.constants};const u="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",p=/XXXXXX/,g=3,h=(d.O_CREAT||d.fs.O_CREAT)|(d.O_EXCL||d.fs.O_EXCL)|(d.O_RDWR||d.fs.O_RDWR),C=A.platform()==="win32",y=d.EBADF||d.os.errno.EBADF,I=d.ENOENT||d.os.errno.ENOENT,B=448,b=384,Q="exit",w=[],v=a.rmdirSync.bind(a);let S=false;function rimraf(r,s){return a.rm(r,{recursive:true},s)}function FN_RIMRAF_SYNC(r){return a.rmSync(r,{recursive:true})}function tmpName(r,s){const i=_parseArguments(r,s),A=i[0],c=i[1];try{_assertAndSanitizeOptions(A)}catch(r){return c(r)}let l=A.tries;(function _getUniqueName(){try{const r=_generateTmpName(A);a.stat(r,(function(s){if(!s){if(l-- >0)return _getUniqueName();return c(new Error("Could not get a unique tmp filename, max tries reached "+r))}c(null,r)}))}catch(r){c(r)}})()}function tmpNameSync(r){const s=_parseArguments(r),i=s[0];_assertAndSanitizeOptions(i);let A=i.tries;do{const r=_generateTmpName(i);try{a.statSync(r)}catch(s){return r}}while(A-- >0);throw new Error("Could not get a unique tmp filename, max tries reached")}function file(r,s){const i=_parseArguments(r,s),A=i[0],c=i[1];tmpName(A,(function _tmpNameCreated(r,s){if(r)return c(r);a.open(s,h,A.mode||b,(function _fileCreated(r,i){if(r)return c(r);if(A.discardDescriptor){return a.close(i,(function _discardCallback(r){return c(r,s,undefined,_prepareTmpFileRemoveCallback(s,-1,A,false))}))}else{const r=A.discardDescriptor||A.detachDescriptor;c(null,s,i,_prepareTmpFileRemoveCallback(s,r?-1:i,A,false))}}))}))}function fileSync(r){const s=_parseArguments(r),i=s[0];const A=i.discardDescriptor||i.detachDescriptor;const c=tmpNameSync(i);var l=a.openSync(c,h,i.mode||b);if(i.discardDescriptor){a.closeSync(l);l=undefined}return{name:c,fd:l,removeCallback:_prepareTmpFileRemoveCallback(c,A?-1:l,i,true)}}function dir(r,s){const i=_parseArguments(r,s),A=i[0],c=i[1];tmpName(A,(function _tmpNameCreated(r,s){if(r)return c(r);a.mkdir(s,A.mode||B,(function _dirCreated(r){if(r)return c(r);c(null,s,_prepareTmpDirRemoveCallback(s,A,false))}))}))}function dirSync(r){const s=_parseArguments(r),i=s[0];const A=tmpNameSync(i);a.mkdirSync(A,i.mode||B);return{name:A,removeCallback:_prepareTmpDirRemoveCallback(A,i,true)}}function _removeFileAsync(r,s){const _handler=function(r){if(r&&!_isENOENT(r)){return s(r)}s()};if(0<=r[0])a.close(r[0],(function(){a.unlink(r[1],_handler)}));else a.unlink(r[1],_handler)}function _removeFileSync(r){let s=null;try{if(0<=r[0])a.closeSync(r[0])}catch(r){if(!_isEBADF(r)&&!_isENOENT(r))throw r}finally{try{a.unlinkSync(r[1])}catch(r){if(!_isENOENT(r))s=r}}if(s!==null){throw s}}function _prepareTmpFileRemoveCallback(r,s,i,a){const A=_prepareRemoveCallback(_removeFileSync,[s,r],a);const c=_prepareRemoveCallback(_removeFileAsync,[s,r],a,A);if(!i.keep)w.unshift(A);return a?A:c}function _prepareTmpDirRemoveCallback(r,s,i){const A=s.unsafeCleanup?rimraf:a.rmdir.bind(a);const c=s.unsafeCleanup?FN_RIMRAF_SYNC:v;const l=_prepareRemoveCallback(c,r,i);const d=_prepareRemoveCallback(A,r,i,l);if(!s.keep)w.unshift(l);return i?l:d}function _prepareRemoveCallback(r,s,i,a){let A=false;return function _cleanupCallback(c){if(!A){const l=a||_cleanupCallback;const d=w.indexOf(l);if(d>=0)w.splice(d,1);A=true;if(i||r===v||r===FN_RIMRAF_SYNC){return r(s)}else{return r(s,c||function(){})}}}}function _garbageCollector(){if(!S)return;while(w.length){try{w[0]()}catch(r){}}}function _randomChars(r){let s=[],i=null;try{i=l.randomBytes(r)}catch(s){i=l.pseudoRandomBytes(r)}for(var a=0;a{"use strict";var a=i(85477);var A=i(72020);var c={TRANSITIONAL:0,NONTRANSITIONAL:1};function normalize(r){return r.split("\0").map((function(r){return r.normalize("NFC")})).join("\0")}function findStatus(r){var s=0;var i=A.length-1;while(s<=i){var a=Math.floor((s+i)/2);var c=A[a];if(c[0][0]<=r&&c[0][1]>=r){return c}else if(c[0][0]>r){i=a-1}else{s=a+1}}return null}var l=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g;function countSymbols(r){return r.replace(l,"_").length}function mapChars(r,s,i){var a=false;var A="";var l=countSymbols(r);for(var d=0;d253||d.length===0){c.error=true}for(var u=0;u63||l.length===0){c.error=true;break}}}if(c.error)return null;return l.join(".")};r.exports.toUnicode=function(r,s){var i=processing(r,s,c.NONTRANSITIONAL);return{domain:i.string,error:i.error}};r.exports.PROCESSING_OPTIONS=c},8588:r=>{r.exports=Traverse;function Traverse(r){if(!(this instanceof Traverse))return new Traverse(r);this.value=r}Traverse.prototype.get=function(r){var s=this.value;for(var i=0;i{var s;var i;var a;var A;var c;var l;var d;var u;var p;var g;var h;var C;var y;var I;var B;var b;var Q;var w;var v;var S;var R;var N;var x;var D;var k;var T;var _;var P;var O;var L;var M;(function(s){var i=typeof global==="object"?global:typeof self==="object"?self:typeof this==="object"?this:{};if(typeof define==="function"&&define.amd){define("tslib",["exports"],(function(r){s(createExporter(i,createExporter(r)))}))}else if(true&&typeof r.exports==="object"){s(createExporter(i,createExporter(r.exports)))}else{s(createExporter(i))}function createExporter(r,s){if(r!==i){if(typeof Object.create==="function"){Object.defineProperty(r,"__esModule",{value:true})}else{r.__esModule=true}}return function(i,a){return r[i]=s?s(i,a):a}}})((function(r){var U=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,s){r.__proto__=s}||function(r,s){for(var i in s)if(Object.prototype.hasOwnProperty.call(s,i))r[i]=s[i]};s=function(r,s){if(typeof s!=="function"&&s!==null)throw new TypeError("Class extends value "+String(s)+" is not a constructor or null");U(r,s);function __(){this.constructor=r}r.prototype=s===null?Object.create(s):(__.prototype=s.prototype,new __)};i=Object.assign||function(r){for(var s,i=1,a=arguments.length;i=0;d--)if(l=r[d])c=(A<3?l(c):A>3?l(s,i,c):l(s,i))||c;return A>3&&c&&Object.defineProperty(s,i,c),c};c=function(r,s){return function(i,a){s(i,a,r)}};l=function(r,s,i,a,A,c){function accept(r){if(r!==void 0&&typeof r!=="function")throw new TypeError("Function expected");return r}var l=a.kind,d=l==="getter"?"get":l==="setter"?"set":"value";var u=!s&&r?a["static"]?r:r.prototype:null;var p=s||(u?Object.getOwnPropertyDescriptor(u,a.name):{});var g,h=false;for(var C=i.length-1;C>=0;C--){var y={};for(var I in a)y[I]=I==="access"?{}:a[I];for(var I in a.access)y.access[I]=a.access[I];y.addInitializer=function(r){if(h)throw new TypeError("Cannot add initializers after decoration has completed");c.push(accept(r||null))};var B=(0,i[C])(l==="accessor"?{get:p.get,set:p.set}:p[d],y);if(l==="accessor"){if(B===void 0)continue;if(B===null||typeof B!=="object")throw new TypeError("Object expected");if(g=accept(B.get))p.get=g;if(g=accept(B.set))p.set=g;if(g=accept(B.init))A.unshift(g)}else if(g=accept(B)){if(l==="field")A.unshift(g);else p[d]=g}}if(u)Object.defineProperty(u,a.name,p);h=true};d=function(r,s,i){var a=arguments.length>2;for(var A=0;A0&&c[c.length-1])&&(d[0]===6||d[0]===2)){i=0;continue}if(d[0]===3&&(!c||d[1]>c[0]&&d[1]=r.length)r=void 0;return{value:r&&r[a++],done:!r}}};throw new TypeError(s?"Object is not iterable.":"Symbol.iterator is not defined.")};B=function(r,s){var i=typeof Symbol==="function"&&r[Symbol.iterator];if(!i)return r;var a=i.call(r),A,c=[],l;try{while((s===void 0||s-- >0)&&!(A=a.next()).done)c.push(A.value)}catch(r){l={error:r}}finally{try{if(A&&!A.done&&(i=a["return"]))i.call(a)}finally{if(l)throw l.error}}return c};b=function(){for(var r=[],s=0;s1||resume(r,s)}))}}function resume(r,s){try{step(a[r](s))}catch(r){settle(c[0][3],r)}}function step(r){r.value instanceof v?Promise.resolve(r.value.v).then(fulfill,reject):settle(c[0][2],r)}function fulfill(r){resume("next",r)}function reject(r){resume("throw",r)}function settle(r,s){if(r(s),c.shift(),c.length)resume(c[0][0],c[0][1])}};R=function(r){var s,i;return s={},verb("next"),verb("throw",(function(r){throw r})),verb("return"),s[Symbol.iterator]=function(){return this},s;function verb(a,A){s[a]=r[a]?function(s){return(i=!i)?{value:v(r[a](s)),done:false}:A?A(s):s}:A}};N=function(r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var s=r[Symbol.asyncIterator],i;return s?s.call(r):(r=typeof I==="function"?I(r):r[Symbol.iterator](),i={},verb("next"),verb("throw"),verb("return"),i[Symbol.asyncIterator]=function(){return this},i);function verb(s){i[s]=r[s]&&function(i){return new Promise((function(a,A){i=r[s](i),settle(a,A,i.done,i.value)}))}}function settle(r,s,i,a){Promise.resolve(a).then((function(s){r({value:s,done:i})}),s)}};x=function(r,s){if(Object.defineProperty){Object.defineProperty(r,"raw",{value:s})}else{r.raw=s}return r};var H=Object.create?function(r,s){Object.defineProperty(r,"default",{enumerable:true,value:s})}:function(r,s){r["default"]=s};D=function(r){if(r&&r.__esModule)return r;var s={};if(r!=null)for(var i in r)if(i!=="default"&&Object.prototype.hasOwnProperty.call(r,i))O(s,r,i);H(s,r);return s};k=function(r){return r&&r.__esModule?r:{default:r}};T=function(r,s,i,a){if(i==="a"&&!a)throw new TypeError("Private accessor was defined without a getter");if(typeof s==="function"?r!==s||!a:!s.has(r))throw new TypeError("Cannot read private member from an object whose class did not declare it");return i==="m"?a:i==="a"?a.call(r):a?a.value:s.get(r)};_=function(r,s,i,a,A){if(a==="m")throw new TypeError("Private method is not writable");if(a==="a"&&!A)throw new TypeError("Private accessor was defined without a setter");if(typeof s==="function"?r!==s||!A:!s.has(r))throw new TypeError("Cannot write private member to an object whose class did not declare it");return a==="a"?A.call(r,i):A?A.value=i:s.set(r,i),i};P=function(r,s){if(s===null||typeof s!=="object"&&typeof s!=="function")throw new TypeError("Cannot use 'in' operator on non-object");return typeof r==="function"?s===r:r.has(s)};L=function(r,s,i){if(s!==null&&s!==void 0){if(typeof s!=="object"&&typeof s!=="function")throw new TypeError("Object expected.");var a;if(i){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");a=s[Symbol.asyncDispose]}if(a===void 0){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");a=s[Symbol.dispose]}if(typeof a!=="function")throw new TypeError("Object not disposable.");r.stack.push({value:s,dispose:a,async:i})}else if(i){r.stack.push({async:true})}return s};var G=typeof SuppressedError==="function"?SuppressedError:function(r,s,i){var a=new Error(i);return a.name="SuppressedError",a.error=r,a.suppressed=s,a};M=function(r){function fail(s){r.error=r.hasError?new G(s,r.error,"An error was suppressed during disposal."):s;r.hasError=true}function next(){while(r.stack.length){var s=r.stack.pop();try{var i=s.dispose&&s.dispose.call(s.value);if(s.async)return Promise.resolve(i).then(next,(function(r){fail(r);return next()}))}catch(r){fail(r)}}if(r.hasError)throw r.error}return next()};r("__extends",s);r("__assign",i);r("__rest",a);r("__decorate",A);r("__param",c);r("__esDecorate",l);r("__runInitializers",d);r("__propKey",u);r("__setFunctionName",p);r("__metadata",g);r("__awaiter",h);r("__generator",C);r("__exportStar",y);r("__createBinding",O);r("__values",I);r("__read",B);r("__spread",b);r("__spreadArrays",Q);r("__spreadArray",w);r("__await",v);r("__asyncGenerator",S);r("__asyncDelegator",R);r("__asyncValues",N);r("__makeTemplateObject",x);r("__importStar",D);r("__importDefault",k);r("__classPrivateFieldGet",T);r("__classPrivateFieldSet",_);r("__classPrivateFieldIn",P);r("__addDisposableResource",L);r("__disposeResources",M)}))},74294:(r,s,i)=>{r.exports=i(54219)},54219:(r,s,i)=>{"use strict";var a=i(41808);var A=i(24404);var c=i(13685);var l=i(95687);var d=i(82361);var u=i(39491);var p=i(73837);s.httpOverHttp=httpOverHttp;s.httpsOverHttp=httpsOverHttp;s.httpOverHttps=httpOverHttps;s.httpsOverHttps=httpsOverHttps;function httpOverHttp(r){var s=new TunnelingAgent(r);s.request=c.request;return s}function httpsOverHttp(r){var s=new TunnelingAgent(r);s.request=c.request;s.createSocket=createSecureSocket;s.defaultPort=443;return s}function httpOverHttps(r){var s=new TunnelingAgent(r);s.request=l.request;return s}function httpsOverHttps(r){var s=new TunnelingAgent(r);s.request=l.request;s.createSocket=createSecureSocket;s.defaultPort=443;return s}function TunnelingAgent(r){var s=this;s.options=r||{};s.proxyOptions=s.options.proxy||{};s.maxSockets=s.options.maxSockets||c.Agent.defaultMaxSockets;s.requests=[];s.sockets=[];s.on("free",(function onFree(r,i,a,A){var c=toOptions(i,a,A);for(var l=0,d=s.requests.length;l=this.maxSockets){A.requests.push(c);return}A.createSocket(c,(function(s){s.on("free",onFree);s.on("close",onCloseOrRemove);s.on("agentRemove",onCloseOrRemove);r.onSocket(s);function onFree(){A.emit("free",s,c)}function onCloseOrRemove(r){A.removeSocket(s);s.removeListener("free",onFree);s.removeListener("close",onCloseOrRemove);s.removeListener("agentRemove",onCloseOrRemove)}}))};TunnelingAgent.prototype.createSocket=function createSocket(r,s){var i=this;var a={};i.sockets.push(a);var A=mergeOptions({},i.proxyOptions,{method:"CONNECT",path:r.host+":"+r.port,agent:false,headers:{host:r.host+":"+r.port}});if(r.localAddress){A.localAddress=r.localAddress}if(A.proxyAuth){A.headers=A.headers||{};A.headers["Proxy-Authorization"]="Basic "+new Buffer(A.proxyAuth).toString("base64")}g("making CONNECT request");var c=i.request(A);c.useChunkedEncodingByDefault=false;c.once("response",onResponse);c.once("upgrade",onUpgrade);c.once("connect",onConnect);c.once("error",onError);c.end();function onResponse(r){r.upgrade=true}function onUpgrade(r,s,i){process.nextTick((function(){onConnect(r,s,i)}))}function onConnect(A,l,d){c.removeAllListeners();l.removeAllListeners();if(A.statusCode!==200){g("tunneling socket could not be established, statusCode=%d",A.statusCode);l.destroy();var u=new Error("tunneling socket could not be established, "+"statusCode="+A.statusCode);u.code="ECONNRESET";r.request.emit("error",u);i.removeSocket(a);return}if(d.length>0){g("got illegal response body from proxy");l.destroy();var u=new Error("got illegal response body from proxy");u.code="ECONNRESET";r.request.emit("error",u);i.removeSocket(a);return}g("tunneling connection has established");i.sockets[i.sockets.indexOf(a)]=l;return s(l)}function onError(s){c.removeAllListeners();g("tunneling socket could not be established, cause=%s\n",s.message,s.stack);var A=new Error("tunneling socket could not be established, "+"cause="+s.message);A.code="ECONNRESET";r.request.emit("error",A);i.removeSocket(a)}};TunnelingAgent.prototype.removeSocket=function removeSocket(r){var s=this.sockets.indexOf(r);if(s===-1){return}this.sockets.splice(s,1);var i=this.requests.shift();if(i){this.createSocket(i,(function(r){i.request.onSocket(r)}))}};function createSecureSocket(r,s){var i=this;TunnelingAgent.prototype.createSocket.call(i,r,(function(a){var c=r.request.getHeader("host");var l=mergeOptions({},i.options,{socket:a,servername:c?c.replace(/:.*$/,""):r.host});var d=A.connect(0,l);i.sockets[i.sockets.indexOf(a)]=d;s(d)}))}function toOptions(r,s,i){if(typeof r==="string"){return{host:r,port:s,localAddress:i}}return r}function mergeOptions(r){for(var s=1,i=arguments.length;s{"use strict";const a=i(33598);const A=i(60412);const c=i(48045);const l=i(4634);const d=i(37931);const u=i(7890);const p=i(83983);const{InvalidArgumentError:g}=c;const h=i(44059);const C=i(82067);const y=i(58687);const I=i(66771);const B=i(26193);const b=i(50888);const Q=i(97858);const w=i(82286);const{getGlobalDispatcher:v,setGlobalDispatcher:S}=i(21892);const R=i(46930);const N=i(72860);const x=i(38861);let D;try{i(6113);D=true}catch{D=false}Object.assign(A.prototype,h);r.exports.Dispatcher=A;r.exports.Client=a;r.exports.Pool=l;r.exports.BalancedPool=d;r.exports.Agent=u;r.exports.ProxyAgent=Q;r.exports.RetryHandler=w;r.exports.DecoratorHandler=R;r.exports.RedirectHandler=N;r.exports.createRedirectInterceptor=x;r.exports.buildConnector=C;r.exports.errors=c;function makeDispatcher(r){return(s,i,a)=>{if(typeof i==="function"){a=i;i=null}if(!s||typeof s!=="string"&&typeof s!=="object"&&!(s instanceof URL)){throw new g("invalid url")}if(i!=null&&typeof i!=="object"){throw new g("invalid opts")}if(i&&i.path!=null){if(typeof i.path!=="string"){throw new g("invalid opts.path")}let r=i.path;if(!i.path.startsWith("/")){r=`/${r}`}s=new URL(p.parseOrigin(s).origin+r)}else{if(!i){i=typeof s==="object"?s:{}}s=p.parseURL(s)}const{agent:A,dispatcher:c=v()}=i;if(A){throw new g("unsupported opts.agent. Did you mean opts.client?")}return r.call(c,{...i,origin:s.origin,path:s.search?`${s.pathname}${s.search}`:s.pathname,method:i.method||(i.body?"PUT":"GET")},a)}}r.exports.setGlobalDispatcher=S;r.exports.getGlobalDispatcher=v;if(p.nodeMajor>16||p.nodeMajor===16&&p.nodeMinor>=8){let s=null;r.exports.fetch=async function fetch(r){if(!s){s=i(74881).fetch}try{return await s(...arguments)}catch(r){if(typeof r==="object"){Error.captureStackTrace(r,this)}throw r}};r.exports.Headers=i(10554).Headers;r.exports.Response=i(27823).Response;r.exports.Request=i(48359).Request;r.exports.FormData=i(72015).FormData;r.exports.File=i(78511).File;r.exports.FileReader=i(1446).FileReader;const{setGlobalOrigin:a,getGlobalOrigin:A}=i(71246);r.exports.setGlobalOrigin=a;r.exports.getGlobalOrigin=A;const{CacheStorage:c}=i(37907);const{kConstruct:l}=i(29174);r.exports.caches=new c(l)}if(p.nodeMajor>=16){const{deleteCookie:s,getCookies:a,getSetCookies:A,setCookie:c}=i(41724);r.exports.deleteCookie=s;r.exports.getCookies=a;r.exports.getSetCookies=A;r.exports.setCookie=c;const{parseMIMEType:l,serializeAMimeType:d}=i(685);r.exports.parseMIMEType=l;r.exports.serializeAMimeType=d}if(p.nodeMajor>=18&&D){const{WebSocket:s}=i(54284);r.exports.WebSocket=s}r.exports.request=makeDispatcher(h.request);r.exports.stream=makeDispatcher(h.stream);r.exports.pipeline=makeDispatcher(h.pipeline);r.exports.connect=makeDispatcher(h.connect);r.exports.upgrade=makeDispatcher(h.upgrade);r.exports.MockClient=y;r.exports.MockPool=B;r.exports.MockAgent=I;r.exports.mockErrors=b},7890:(r,s,i)=>{"use strict";const{InvalidArgumentError:a}=i(48045);const{kClients:A,kRunning:c,kClose:l,kDestroy:d,kDispatch:u,kInterceptors:p}=i(72785);const g=i(74839);const h=i(4634);const C=i(33598);const y=i(83983);const I=i(38861);const{WeakRef:B,FinalizationRegistry:b}=i(56436)();const Q=Symbol("onConnect");const w=Symbol("onDisconnect");const v=Symbol("onConnectionError");const S=Symbol("maxRedirections");const R=Symbol("onDrain");const N=Symbol("factory");const x=Symbol("finalizer");const D=Symbol("options");function defaultFactory(r,s){return s&&s.connections===1?new C(r,s):new h(r,s)}class Agent extends g{constructor({factory:r=defaultFactory,maxRedirections:s=0,connect:i,...c}={}){super();if(typeof r!=="function"){throw new a("factory must be a function.")}if(i!=null&&typeof i!=="function"&&typeof i!=="object"){throw new a("connect must be a function or an object")}if(!Number.isInteger(s)||s<0){throw new a("maxRedirections must be a positive number")}if(i&&typeof i!=="function"){i={...i}}this[p]=c.interceptors&&c.interceptors.Agent&&Array.isArray(c.interceptors.Agent)?c.interceptors.Agent:[I({maxRedirections:s})];this[D]={...y.deepClone(c),connect:i};this[D].interceptors=c.interceptors?{...c.interceptors}:undefined;this[S]=s;this[N]=r;this[A]=new Map;this[x]=new b((r=>{const s=this[A].get(r);if(s!==undefined&&s.deref()===undefined){this[A].delete(r)}}));const l=this;this[R]=(r,s)=>{l.emit("drain",r,[l,...s])};this[Q]=(r,s)=>{l.emit("connect",r,[l,...s])};this[w]=(r,s,i)=>{l.emit("disconnect",r,[l,...s],i)};this[v]=(r,s,i)=>{l.emit("connectionError",r,[l,...s],i)}}get[c](){let r=0;for(const s of this[A].values()){const i=s.deref();if(i){r+=i[c]}}return r}[u](r,s){let i;if(r.origin&&(typeof r.origin==="string"||r.origin instanceof URL)){i=String(r.origin)}else{throw new a("opts.origin must be a non-empty string or URL.")}const c=this[A].get(i);let l=c?c.deref():null;if(!l){l=this[N](r.origin,this[D]).on("drain",this[R]).on("connect",this[Q]).on("disconnect",this[w]).on("connectionError",this[v]);this[A].set(i,new B(l));this[x].register(l,i)}return l.dispatch(r,s)}async[l](){const r=[];for(const s of this[A].values()){const i=s.deref();if(i){r.push(i.close())}}await Promise.all(r)}async[d](r){const s=[];for(const i of this[A].values()){const a=i.deref();if(a){s.push(a.destroy(r))}}await Promise.all(s)}}r.exports=Agent},7032:(r,s,i)=>{const{addAbortListener:a}=i(83983);const{RequestAbortedError:A}=i(48045);const c=Symbol("kListener");const l=Symbol("kSignal");function abort(r){if(r.abort){r.abort()}else{r.onError(new A)}}function addSignal(r,s){r[l]=null;r[c]=null;if(!s){return}if(s.aborted){abort(r);return}r[l]=s;r[c]=()=>{abort(r)};a(r[l],r[c])}function removeSignal(r){if(!r[l]){return}if("removeEventListener"in r[l]){r[l].removeEventListener("abort",r[c])}else{r[l].removeListener("abort",r[c])}r[l]=null;r[c]=null}r.exports={addSignal:addSignal,removeSignal:removeSignal}},29744:(r,s,i)=>{"use strict";const{AsyncResource:a}=i(50852);const{InvalidArgumentError:A,RequestAbortedError:c,SocketError:l}=i(48045);const d=i(83983);const{addSignal:u,removeSignal:p}=i(7032);class ConnectHandler extends a{constructor(r,s){if(!r||typeof r!=="object"){throw new A("invalid opts")}if(typeof s!=="function"){throw new A("invalid callback")}const{signal:i,opaque:a,responseHeaders:c}=r;if(i&&typeof i.on!=="function"&&typeof i.addEventListener!=="function"){throw new A("signal must be an EventEmitter or EventTarget")}super("UNDICI_CONNECT");this.opaque=a||null;this.responseHeaders=c||null;this.callback=s;this.abort=null;u(this,i)}onConnect(r,s){if(!this.callback){throw new c}this.abort=r;this.context=s}onHeaders(){throw new l("bad connect",null)}onUpgrade(r,s,i){const{callback:a,opaque:A,context:c}=this;p(this);this.callback=null;let l=s;if(l!=null){l=this.responseHeaders==="raw"?d.parseRawHeaders(s):d.parseHeaders(s)}this.runInAsyncScope(a,null,null,{statusCode:r,headers:l,socket:i,opaque:A,context:c})}onError(r){const{callback:s,opaque:i}=this;p(this);if(s){this.callback=null;queueMicrotask((()=>{this.runInAsyncScope(s,null,r,{opaque:i})}))}}}function connect(r,s){if(s===undefined){return new Promise(((s,i)=>{connect.call(this,r,((r,a)=>r?i(r):s(a)))}))}try{const i=new ConnectHandler(r,s);this.dispatch({...r,method:"CONNECT"},i)}catch(i){if(typeof s!=="function"){throw i}const a=r&&r.opaque;queueMicrotask((()=>s(i,{opaque:a})))}}r.exports=connect},28752:(r,s,i)=>{"use strict";const{Readable:a,Duplex:A,PassThrough:c}=i(12781);const{InvalidArgumentError:l,InvalidReturnValueError:d,RequestAbortedError:u}=i(48045);const p=i(83983);const{AsyncResource:g}=i(50852);const{addSignal:h,removeSignal:C}=i(7032);const y=i(39491);const I=Symbol("resume");class PipelineRequest extends a{constructor(){super({autoDestroy:true});this[I]=null}_read(){const{[I]:r}=this;if(r){this[I]=null;r()}}_destroy(r,s){this._read();s(r)}}class PipelineResponse extends a{constructor(r){super({autoDestroy:true});this[I]=r}_read(){this[I]()}_destroy(r,s){if(!r&&!this._readableState.endEmitted){r=new u}s(r)}}class PipelineHandler extends g{constructor(r,s){if(!r||typeof r!=="object"){throw new l("invalid opts")}if(typeof s!=="function"){throw new l("invalid handler")}const{signal:i,method:a,opaque:c,onInfo:d,responseHeaders:g}=r;if(i&&typeof i.on!=="function"&&typeof i.addEventListener!=="function"){throw new l("signal must be an EventEmitter or EventTarget")}if(a==="CONNECT"){throw new l("invalid method")}if(d&&typeof d!=="function"){throw new l("invalid onInfo callback")}super("UNDICI_PIPELINE");this.opaque=c||null;this.responseHeaders=g||null;this.handler=s;this.abort=null;this.context=null;this.onInfo=d||null;this.req=(new PipelineRequest).on("error",p.nop);this.ret=new A({readableObjectMode:r.objectMode,autoDestroy:true,read:()=>{const{body:r}=this;if(r&&r.resume){r.resume()}},write:(r,s,i)=>{const{req:a}=this;if(a.push(r,s)||a._readableState.destroyed){i()}else{a[I]=i}},destroy:(r,s)=>{const{body:i,req:a,res:A,ret:c,abort:l}=this;if(!r&&!c._readableState.endEmitted){r=new u}if(l&&r){l()}p.destroy(i,r);p.destroy(a,r);p.destroy(A,r);C(this);s(r)}}).on("prefinish",(()=>{const{req:r}=this;r.push(null)}));this.res=null;h(this,i)}onConnect(r,s){const{ret:i,res:a}=this;y(!a,"pipeline cannot be retried");if(i.destroyed){throw new u}this.abort=r;this.context=s}onHeaders(r,s,i){const{opaque:a,handler:A,context:c}=this;if(r<200){if(this.onInfo){const i=this.responseHeaders==="raw"?p.parseRawHeaders(s):p.parseHeaders(s);this.onInfo({statusCode:r,headers:i})}return}this.res=new PipelineResponse(i);let l;try{this.handler=null;const i=this.responseHeaders==="raw"?p.parseRawHeaders(s):p.parseHeaders(s);l=this.runInAsyncScope(A,null,{statusCode:r,headers:i,opaque:a,body:this.res,context:c})}catch(r){this.res.on("error",p.nop);throw r}if(!l||typeof l.on!=="function"){throw new d("expected Readable")}l.on("data",(r=>{const{ret:s,body:i}=this;if(!s.push(r)&&i.pause){i.pause()}})).on("error",(r=>{const{ret:s}=this;p.destroy(s,r)})).on("end",(()=>{const{ret:r}=this;r.push(null)})).on("close",(()=>{const{ret:r}=this;if(!r._readableState.ended){p.destroy(r,new u)}}));this.body=l}onData(r){const{res:s}=this;return s.push(r)}onComplete(r){const{res:s}=this;s.push(null)}onError(r){const{ret:s}=this;this.handler=null;p.destroy(s,r)}}function pipeline(r,s){try{const i=new PipelineHandler(r,s);this.dispatch({...r,body:i.req},i);return i.ret}catch(r){return(new c).destroy(r)}}r.exports=pipeline},55448:(r,s,i)=>{"use strict";const a=i(73858);const{InvalidArgumentError:A,RequestAbortedError:c}=i(48045);const l=i(83983);const{getResolveErrorBodyCallback:d}=i(77474);const{AsyncResource:u}=i(50852);const{addSignal:p,removeSignal:g}=i(7032);class RequestHandler extends u{constructor(r,s){if(!r||typeof r!=="object"){throw new A("invalid opts")}const{signal:i,method:a,opaque:c,body:d,onInfo:u,responseHeaders:g,throwOnError:h,highWaterMark:C}=r;try{if(typeof s!=="function"){throw new A("invalid callback")}if(C&&(typeof C!=="number"||C<0)){throw new A("invalid highWaterMark")}if(i&&typeof i.on!=="function"&&typeof i.addEventListener!=="function"){throw new A("signal must be an EventEmitter or EventTarget")}if(a==="CONNECT"){throw new A("invalid method")}if(u&&typeof u!=="function"){throw new A("invalid onInfo callback")}super("UNDICI_REQUEST")}catch(r){if(l.isStream(d)){l.destroy(d.on("error",l.nop),r)}throw r}this.responseHeaders=g||null;this.opaque=c||null;this.callback=s;this.res=null;this.abort=null;this.body=d;this.trailers={};this.context=null;this.onInfo=u||null;this.throwOnError=h;this.highWaterMark=C;if(l.isStream(d)){d.on("error",(r=>{this.onError(r)}))}p(this,i)}onConnect(r,s){if(!this.callback){throw new c}this.abort=r;this.context=s}onHeaders(r,s,i,A){const{callback:c,opaque:u,abort:p,context:g,responseHeaders:h,highWaterMark:C}=this;const y=h==="raw"?l.parseRawHeaders(s):l.parseHeaders(s);if(r<200){if(this.onInfo){this.onInfo({statusCode:r,headers:y})}return}const I=h==="raw"?l.parseHeaders(s):y;const B=I["content-type"];const b=new a({resume:i,abort:p,contentType:B,highWaterMark:C});this.callback=null;this.res=b;if(c!==null){if(this.throwOnError&&r>=400){this.runInAsyncScope(d,null,{callback:c,body:b,contentType:B,statusCode:r,statusMessage:A,headers:y})}else{this.runInAsyncScope(c,null,null,{statusCode:r,headers:y,trailers:this.trailers,opaque:u,body:b,context:g})}}}onData(r){const{res:s}=this;return s.push(r)}onComplete(r){const{res:s}=this;g(this);l.parseHeaders(r,this.trailers);s.push(null)}onError(r){const{res:s,callback:i,body:a,opaque:A}=this;g(this);if(i){this.callback=null;queueMicrotask((()=>{this.runInAsyncScope(i,null,r,{opaque:A})}))}if(s){this.res=null;queueMicrotask((()=>{l.destroy(s,r)}))}if(a){this.body=null;l.destroy(a,r)}}}function request(r,s){if(s===undefined){return new Promise(((s,i)=>{request.call(this,r,((r,a)=>r?i(r):s(a)))}))}try{this.dispatch(r,new RequestHandler(r,s))}catch(i){if(typeof s!=="function"){throw i}const a=r&&r.opaque;queueMicrotask((()=>s(i,{opaque:a})))}}r.exports=request;r.exports.RequestHandler=RequestHandler},75395:(r,s,i)=>{"use strict";const{finished:a,PassThrough:A}=i(12781);const{InvalidArgumentError:c,InvalidReturnValueError:l,RequestAbortedError:d}=i(48045);const u=i(83983);const{getResolveErrorBodyCallback:p}=i(77474);const{AsyncResource:g}=i(50852);const{addSignal:h,removeSignal:C}=i(7032);class StreamHandler extends g{constructor(r,s,i){if(!r||typeof r!=="object"){throw new c("invalid opts")}const{signal:a,method:A,opaque:l,body:d,onInfo:p,responseHeaders:g,throwOnError:C}=r;try{if(typeof i!=="function"){throw new c("invalid callback")}if(typeof s!=="function"){throw new c("invalid factory")}if(a&&typeof a.on!=="function"&&typeof a.addEventListener!=="function"){throw new c("signal must be an EventEmitter or EventTarget")}if(A==="CONNECT"){throw new c("invalid method")}if(p&&typeof p!=="function"){throw new c("invalid onInfo callback")}super("UNDICI_STREAM")}catch(r){if(u.isStream(d)){u.destroy(d.on("error",u.nop),r)}throw r}this.responseHeaders=g||null;this.opaque=l||null;this.factory=s;this.callback=i;this.res=null;this.abort=null;this.context=null;this.trailers=null;this.body=d;this.onInfo=p||null;this.throwOnError=C||false;if(u.isStream(d)){d.on("error",(r=>{this.onError(r)}))}h(this,a)}onConnect(r,s){if(!this.callback){throw new d}this.abort=r;this.context=s}onHeaders(r,s,i,c){const{factory:d,opaque:g,context:h,callback:C,responseHeaders:y}=this;const I=y==="raw"?u.parseRawHeaders(s):u.parseHeaders(s);if(r<200){if(this.onInfo){this.onInfo({statusCode:r,headers:I})}return}this.factory=null;let B;if(this.throwOnError&&r>=400){const i=y==="raw"?u.parseHeaders(s):I;const a=i["content-type"];B=new A;this.callback=null;this.runInAsyncScope(p,null,{callback:C,body:B,contentType:a,statusCode:r,statusMessage:c,headers:I})}else{if(d===null){return}B=this.runInAsyncScope(d,null,{statusCode:r,headers:I,opaque:g,context:h});if(!B||typeof B.write!=="function"||typeof B.end!=="function"||typeof B.on!=="function"){throw new l("expected Writable")}a(B,{readable:false},(r=>{const{callback:s,res:i,opaque:a,trailers:A,abort:c}=this;this.res=null;if(r||!i.readable){u.destroy(i,r)}this.callback=null;this.runInAsyncScope(s,null,r||null,{opaque:a,trailers:A});if(r){c()}}))}B.on("drain",i);this.res=B;const b=B.writableNeedDrain!==undefined?B.writableNeedDrain:B._writableState&&B._writableState.needDrain;return b!==true}onData(r){const{res:s}=this;return s?s.write(r):true}onComplete(r){const{res:s}=this;C(this);if(!s){return}this.trailers=u.parseHeaders(r);s.end()}onError(r){const{res:s,callback:i,opaque:a,body:A}=this;C(this);this.factory=null;if(s){this.res=null;u.destroy(s,r)}else if(i){this.callback=null;queueMicrotask((()=>{this.runInAsyncScope(i,null,r,{opaque:a})}))}if(A){this.body=null;u.destroy(A,r)}}}function stream(r,s,i){if(i===undefined){return new Promise(((i,a)=>{stream.call(this,r,s,((r,s)=>r?a(r):i(s)))}))}try{this.dispatch(r,new StreamHandler(r,s,i))}catch(s){if(typeof i!=="function"){throw s}const a=r&&r.opaque;queueMicrotask((()=>i(s,{opaque:a})))}}r.exports=stream},36923:(r,s,i)=>{"use strict";const{InvalidArgumentError:a,RequestAbortedError:A,SocketError:c}=i(48045);const{AsyncResource:l}=i(50852);const d=i(83983);const{addSignal:u,removeSignal:p}=i(7032);const g=i(39491);class UpgradeHandler extends l{constructor(r,s){if(!r||typeof r!=="object"){throw new a("invalid opts")}if(typeof s!=="function"){throw new a("invalid callback")}const{signal:i,opaque:A,responseHeaders:c}=r;if(i&&typeof i.on!=="function"&&typeof i.addEventListener!=="function"){throw new a("signal must be an EventEmitter or EventTarget")}super("UNDICI_UPGRADE");this.responseHeaders=c||null;this.opaque=A||null;this.callback=s;this.abort=null;this.context=null;u(this,i)}onConnect(r,s){if(!this.callback){throw new A}this.abort=r;this.context=null}onHeaders(){throw new c("bad upgrade",null)}onUpgrade(r,s,i){const{callback:a,opaque:A,context:c}=this;g.strictEqual(r,101);p(this);this.callback=null;const l=this.responseHeaders==="raw"?d.parseRawHeaders(s):d.parseHeaders(s);this.runInAsyncScope(a,null,null,{headers:l,socket:i,opaque:A,context:c})}onError(r){const{callback:s,opaque:i}=this;p(this);if(s){this.callback=null;queueMicrotask((()=>{this.runInAsyncScope(s,null,r,{opaque:i})}))}}}function upgrade(r,s){if(s===undefined){return new Promise(((s,i)=>{upgrade.call(this,r,((r,a)=>r?i(r):s(a)))}))}try{const i=new UpgradeHandler(r,s);this.dispatch({...r,method:r.method||"GET",upgrade:r.protocol||"Websocket"},i)}catch(i){if(typeof s!=="function"){throw i}const a=r&&r.opaque;queueMicrotask((()=>s(i,{opaque:a})))}}r.exports=upgrade},44059:(r,s,i)=>{"use strict";r.exports.request=i(55448);r.exports.stream=i(75395);r.exports.pipeline=i(28752);r.exports.upgrade=i(36923);r.exports.connect=i(29744)},73858:(r,s,i)=>{"use strict";const a=i(39491);const{Readable:A}=i(12781);const{RequestAbortedError:c,NotSupportedError:l,InvalidArgumentError:d}=i(48045);const u=i(83983);const{ReadableStreamFrom:p,toUSVString:g}=i(83983);let h;const C=Symbol("kConsume");const y=Symbol("kReading");const I=Symbol("kBody");const B=Symbol("abort");const b=Symbol("kContentType");const noop=()=>{};r.exports=class BodyReadable extends A{constructor({resume:r,abort:s,contentType:i="",highWaterMark:a=64*1024}){super({autoDestroy:true,read:r,highWaterMark:a});this._readableState.dataEmitted=false;this[B]=s;this[C]=null;this[I]=null;this[b]=i;this[y]=false}destroy(r){if(this.destroyed){return this}if(!r&&!this._readableState.endEmitted){r=new c}if(r){this[B]()}return super.destroy(r)}emit(r,...s){if(r==="data"){this._readableState.dataEmitted=true}else if(r==="error"){this._readableState.errorEmitted=true}return super.emit(r,...s)}on(r,...s){if(r==="data"||r==="readable"){this[y]=true}return super.on(r,...s)}addListener(r,...s){return this.on(r,...s)}off(r,...s){const i=super.off(r,...s);if(r==="data"||r==="readable"){this[y]=this.listenerCount("data")>0||this.listenerCount("readable")>0}return i}removeListener(r,...s){return this.off(r,...s)}push(r){if(this[C]&&r!==null&&this.readableLength===0){consumePush(this[C],r);return this[y]?super.push(r):true}return super.push(r)}async text(){return consume(this,"text")}async json(){return consume(this,"json")}async blob(){return consume(this,"blob")}async arrayBuffer(){return consume(this,"arrayBuffer")}async formData(){throw new l}get bodyUsed(){return u.isDisturbed(this)}get body(){if(!this[I]){this[I]=p(this);if(this[C]){this[I].getReader();a(this[I].locked)}}return this[I]}dump(r){let s=r&&Number.isFinite(r.limit)?r.limit:262144;const i=r&&r.signal;if(i){try{if(typeof i!=="object"||!("aborted"in i)){throw new d("signal must be an AbortSignal")}u.throwIfAborted(i)}catch(r){return Promise.reject(r)}}if(this.closed){return Promise.resolve(null)}return new Promise(((r,a)=>{const A=i?u.addAbortListener(i,(()=>{this.destroy()})):noop;this.on("close",(function(){A();if(i&&i.aborted){a(i.reason||Object.assign(new Error("The operation was aborted"),{name:"AbortError"}))}else{r(null)}})).on("error",noop).on("data",(function(r){s-=r.length;if(s<=0){this.destroy()}})).resume()}))}};function isLocked(r){return r[I]&&r[I].locked===true||r[C]}function isUnusable(r){return u.isDisturbed(r)||isLocked(r)}async function consume(r,s){if(isUnusable(r)){throw new TypeError("unusable")}a(!r[C]);return new Promise(((i,a)=>{r[C]={type:s,stream:r,resolve:i,reject:a,length:0,body:[]};r.on("error",(function(r){consumeFinish(this[C],r)})).on("close",(function(){if(this[C].body!==null){consumeFinish(this[C],new c)}}));process.nextTick(consumeStart,r[C])}))}function consumeStart(r){if(r.body===null){return}const{_readableState:s}=r.stream;for(const i of s.buffer){consumePush(r,i)}if(s.endEmitted){consumeEnd(this[C])}else{r.stream.on("end",(function(){consumeEnd(this[C])}))}r.stream.resume();while(r.stream.read()!=null){}}function consumeEnd(r){const{type:s,body:a,resolve:A,stream:c,length:l}=r;try{if(s==="text"){A(g(Buffer.concat(a)))}else if(s==="json"){A(JSON.parse(Buffer.concat(a)))}else if(s==="arrayBuffer"){const r=new Uint8Array(l);let s=0;for(const i of a){r.set(i,s);s+=i.byteLength}A(r.buffer)}else if(s==="blob"){if(!h){h=i(14300).Blob}A(new h(a,{type:c[b]}))}consumeFinish(r)}catch(r){c.destroy(r)}}function consumePush(r,s){r.length+=s.length;r.body.push(s)}function consumeFinish(r,s){if(r.body===null){return}if(s){r.reject(s)}else{r.resolve()}r.type=null;r.stream=null;r.resolve=null;r.reject=null;r.length=0;r.body=null}},77474:(r,s,i)=>{const a=i(39491);const{ResponseStatusCodeError:A}=i(48045);const{toUSVString:c}=i(83983);async function getResolveErrorBodyCallback({callback:r,body:s,contentType:i,statusCode:l,statusMessage:d,headers:u}){a(s);let p=[];let g=0;for await(const r of s){p.push(r);g+=r.length;if(g>128*1024){p=null;break}}if(l===204||!i||!p){process.nextTick(r,new A(`Response status code ${l}${d?`: ${d}`:""}`,l,u));return}try{if(i.startsWith("application/json")){const s=JSON.parse(c(Buffer.concat(p)));process.nextTick(r,new A(`Response status code ${l}${d?`: ${d}`:""}`,l,u,s));return}if(i.startsWith("text/")){const s=c(Buffer.concat(p));process.nextTick(r,new A(`Response status code ${l}${d?`: ${d}`:""}`,l,u,s));return}}catch(r){}process.nextTick(r,new A(`Response status code ${l}${d?`: ${d}`:""}`,l,u))}r.exports={getResolveErrorBodyCallback:getResolveErrorBodyCallback}},37931:(r,s,i)=>{"use strict";const{BalancedPoolMissingUpstreamError:a,InvalidArgumentError:A}=i(48045);const{PoolBase:c,kClients:l,kNeedDrain:d,kAddClient:u,kRemoveClient:p,kGetDispatcher:g}=i(73198);const h=i(4634);const{kUrl:C,kInterceptors:y}=i(72785);const{parseOrigin:I}=i(83983);const B=Symbol("factory");const b=Symbol("options");const Q=Symbol("kGreatestCommonDivisor");const w=Symbol("kCurrentWeight");const v=Symbol("kIndex");const S=Symbol("kWeight");const R=Symbol("kMaxWeightPerServer");const N=Symbol("kErrorPenalty");function getGreatestCommonDivisor(r,s){if(s===0)return r;return getGreatestCommonDivisor(s,r%s)}function defaultFactory(r,s){return new h(r,s)}class BalancedPool extends c{constructor(r=[],{factory:s=defaultFactory,...i}={}){super();this[b]=i;this[v]=-1;this[w]=0;this[R]=this[b].maxWeightPerServer||100;this[N]=this[b].errorPenalty||15;if(!Array.isArray(r)){r=[r]}if(typeof s!=="function"){throw new A("factory must be a function.")}this[y]=i.interceptors&&i.interceptors.BalancedPool&&Array.isArray(i.interceptors.BalancedPool)?i.interceptors.BalancedPool:[];this[B]=s;for(const s of r){this.addUpstream(s)}this._updateBalancedPoolStats()}addUpstream(r){const s=I(r).origin;if(this[l].find((r=>r[C].origin===s&&r.closed!==true&&r.destroyed!==true))){return this}const i=this[B](s,Object.assign({},this[b]));this[u](i);i.on("connect",(()=>{i[S]=Math.min(this[R],i[S]+this[N])}));i.on("connectionError",(()=>{i[S]=Math.max(1,i[S]-this[N]);this._updateBalancedPoolStats()}));i.on("disconnect",((...r)=>{const s=r[2];if(s&&s.code==="UND_ERR_SOCKET"){i[S]=Math.max(1,i[S]-this[N]);this._updateBalancedPoolStats()}}));for(const r of this[l]){r[S]=this[R]}this._updateBalancedPoolStats();return this}_updateBalancedPoolStats(){this[Q]=this[l].map((r=>r[S])).reduce(getGreatestCommonDivisor,0)}removeUpstream(r){const s=I(r).origin;const i=this[l].find((r=>r[C].origin===s&&r.closed!==true&&r.destroyed!==true));if(i){this[p](i)}return this}get upstreams(){return this[l].filter((r=>r.closed!==true&&r.destroyed!==true)).map((r=>r[C].origin))}[g](){if(this[l].length===0){throw new a}const r=this[l].find((r=>!r[d]&&r.closed!==true&&r.destroyed!==true));if(!r){return}const s=this[l].map((r=>r[d])).reduce(((r,s)=>r&&s),true);if(s){return}let i=0;let A=this[l].findIndex((r=>!r[d]));while(i++this[l][A][S]&&!r[d]){A=this[v]}if(this[v]===0){this[w]=this[w]-this[Q];if(this[w]<=0){this[w]=this[R]}}if(r[S]>=this[w]&&!r[d]){return r}}this[w]=this[l][A][S];this[v]=A;return this[l][A]}}r.exports=BalancedPool},66101:(r,s,i)=>{"use strict";const{kConstruct:a}=i(29174);const{urlEquals:A,fieldValues:c}=i(82396);const{kEnumerableProperty:l,isDisturbed:d}=i(83983);const{kHeadersList:u}=i(72785);const{webidl:p}=i(21744);const{Response:g,cloneResponse:h}=i(27823);const{Request:C}=i(48359);const{kState:y,kHeaders:I,kGuard:B,kRealm:b}=i(15861);const{fetching:Q}=i(74881);const{urlIsHttpHttpsScheme:w,createDeferredPromise:v,readAllBytes:S}=i(52538);const R=i(39491);const{getGlobalDispatcher:N}=i(21892);class Cache{#e;constructor(){if(arguments[0]!==a){p.illegalConstructor()}this.#e=arguments[1]}async match(r,s={}){p.brandCheck(this,Cache);p.argumentLengthCheck(arguments,1,{header:"Cache.match"});r=p.converters.RequestInfo(r);s=p.converters.CacheQueryOptions(s);const i=await this.matchAll(r,s);if(i.length===0){return}return i[0]}async matchAll(r=undefined,s={}){p.brandCheck(this,Cache);if(r!==undefined)r=p.converters.RequestInfo(r);s=p.converters.CacheQueryOptions(s);let i=null;if(r!==undefined){if(r instanceof C){i=r[y];if(i.method!=="GET"&&!s.ignoreMethod){return[]}}else if(typeof r==="string"){i=new C(r)[y]}}const a=[];if(r===undefined){for(const r of this.#e){a.push(r[1])}}else{const r=this.#t(i,s);for(const s of r){a.push(s[1])}}const A=[];for(const r of a){const s=new g(r.body?.source??null);const i=s[y].body;s[y]=r;s[y].body=i;s[I][u]=r.headersList;s[I][B]="immutable";A.push(s)}return Object.freeze(A)}async add(r){p.brandCheck(this,Cache);p.argumentLengthCheck(arguments,1,{header:"Cache.add"});r=p.converters.RequestInfo(r);const s=[r];const i=this.addAll(s);return await i}async addAll(r){p.brandCheck(this,Cache);p.argumentLengthCheck(arguments,1,{header:"Cache.addAll"});r=p.converters["sequence"](r);const s=[];const i=[];for(const s of r){if(typeof s==="string"){continue}const r=s[y];if(!w(r.url)||r.method!=="GET"){throw p.errors.exception({header:"Cache.addAll",message:"Expected http/s scheme when method is not GET."})}}const a=[];for(const A of r){const r=new C(A)[y];if(!w(r.url)){throw p.errors.exception({header:"Cache.addAll",message:"Expected http/s scheme."})}r.initiator="fetch";r.destination="subresource";i.push(r);const l=v();a.push(Q({request:r,dispatcher:N(),processResponse(r){if(r.type==="error"||r.status===206||r.status<200||r.status>299){l.reject(p.errors.exception({header:"Cache.addAll",message:"Received an invalid status code or the request failed."}))}else if(r.headersList.contains("vary")){const s=c(r.headersList.get("vary"));for(const r of s){if(r==="*"){l.reject(p.errors.exception({header:"Cache.addAll",message:"invalid vary field value"}));for(const r of a){r.abort()}return}}}},processResponseEndOfBody(r){if(r.aborted){l.reject(new DOMException("aborted","AbortError"));return}l.resolve(r)}}));s.push(l.promise)}const A=Promise.all(s);const l=await A;const d=[];let u=0;for(const r of l){const s={type:"put",request:i[u],response:r};d.push(s);u++}const g=v();let h=null;try{this.#r(d)}catch(r){h=r}queueMicrotask((()=>{if(h===null){g.resolve(undefined)}else{g.reject(h)}}));return g.promise}async put(r,s){p.brandCheck(this,Cache);p.argumentLengthCheck(arguments,2,{header:"Cache.put"});r=p.converters.RequestInfo(r);s=p.converters.Response(s);let i=null;if(r instanceof C){i=r[y]}else{i=new C(r)[y]}if(!w(i.url)||i.method!=="GET"){throw p.errors.exception({header:"Cache.put",message:"Expected an http/s scheme when method is not GET"})}const a=s[y];if(a.status===206){throw p.errors.exception({header:"Cache.put",message:"Got 206 status"})}if(a.headersList.contains("vary")){const r=c(a.headersList.get("vary"));for(const s of r){if(s==="*"){throw p.errors.exception({header:"Cache.put",message:"Got * vary field value"})}}}if(a.body&&(d(a.body.stream)||a.body.stream.locked)){throw p.errors.exception({header:"Cache.put",message:"Response body is locked or disturbed"})}const A=h(a);const l=v();if(a.body!=null){const r=a.body.stream;const s=r.getReader();S(s).then(l.resolve,l.reject)}else{l.resolve(undefined)}const u=[];const g={type:"put",request:i,response:A};u.push(g);const I=await l.promise;if(A.body!=null){A.body.source=I}const B=v();let b=null;try{this.#r(u)}catch(r){b=r}queueMicrotask((()=>{if(b===null){B.resolve()}else{B.reject(b)}}));return B.promise}async delete(r,s={}){p.brandCheck(this,Cache);p.argumentLengthCheck(arguments,1,{header:"Cache.delete"});r=p.converters.RequestInfo(r);s=p.converters.CacheQueryOptions(s);let i=null;if(r instanceof C){i=r[y];if(i.method!=="GET"&&!s.ignoreMethod){return false}}else{R(typeof r==="string");i=new C(r)[y]}const a=[];const A={type:"delete",request:i,options:s};a.push(A);const c=v();let l=null;let d;try{d=this.#r(a)}catch(r){l=r}queueMicrotask((()=>{if(l===null){c.resolve(!!d?.length)}else{c.reject(l)}}));return c.promise}async keys(r=undefined,s={}){p.brandCheck(this,Cache);if(r!==undefined)r=p.converters.RequestInfo(r);s=p.converters.CacheQueryOptions(s);let i=null;if(r!==undefined){if(r instanceof C){i=r[y];if(i.method!=="GET"&&!s.ignoreMethod){return[]}}else if(typeof r==="string"){i=new C(r)[y]}}const a=v();const A=[];if(r===undefined){for(const r of this.#e){A.push(r[0])}}else{const r=this.#t(i,s);for(const s of r){A.push(s[0])}}queueMicrotask((()=>{const r=[];for(const s of A){const i=new C("https://a");i[y]=s;i[I][u]=s.headersList;i[I][B]="immutable";i[b]=s.client;r.push(i)}a.resolve(Object.freeze(r))}));return a.promise}#r(r){const s=this.#e;const i=[...s];const a=[];const A=[];try{for(const i of r){if(i.type!=="delete"&&i.type!=="put"){throw p.errors.exception({header:"Cache.#batchCacheOperations",message:'operation type does not match "delete" or "put"'})}if(i.type==="delete"&&i.response!=null){throw p.errors.exception({header:"Cache.#batchCacheOperations",message:"delete operation should not have an associated response"})}if(this.#t(i.request,i.options,a).length){throw new DOMException("???","InvalidStateError")}let r;if(i.type==="delete"){r=this.#t(i.request,i.options);if(r.length===0){return[]}for(const i of r){const r=s.indexOf(i);R(r!==-1);s.splice(r,1)}}else if(i.type==="put"){if(i.response==null){throw p.errors.exception({header:"Cache.#batchCacheOperations",message:"put operation should have an associated response"})}const A=i.request;if(!w(A.url)){throw p.errors.exception({header:"Cache.#batchCacheOperations",message:"expected http or https scheme"})}if(A.method!=="GET"){throw p.errors.exception({header:"Cache.#batchCacheOperations",message:"not get method"})}if(i.options!=null){throw p.errors.exception({header:"Cache.#batchCacheOperations",message:"options must not be defined"})}r=this.#t(i.request);for(const i of r){const r=s.indexOf(i);R(r!==-1);s.splice(r,1)}s.push([i.request,i.response]);a.push([i.request,i.response])}A.push([i.request,i.response])}return A}catch(r){this.#e.length=0;this.#e=i;throw r}}#t(r,s,i){const a=[];const A=i??this.#e;for(const i of A){const[A,c]=i;if(this.#n(r,A,c,s)){a.push(i)}}return a}#n(r,s,i=null,a){const l=new URL(r.url);const d=new URL(s.url);if(a?.ignoreSearch){d.search="";l.search=""}if(!A(l,d,true)){return false}if(i==null||a?.ignoreVary||!i.headersList.contains("vary")){return true}const u=c(i.headersList.get("vary"));for(const i of u){if(i==="*"){return false}const a=s.headersList.get(i);const A=r.headersList.get(i);if(a!==A){return false}}return true}}Object.defineProperties(Cache.prototype,{[Symbol.toStringTag]:{value:"Cache",configurable:true},match:l,matchAll:l,add:l,addAll:l,put:l,delete:l,keys:l});const x=[{key:"ignoreSearch",converter:p.converters.boolean,defaultValue:false},{key:"ignoreMethod",converter:p.converters.boolean,defaultValue:false},{key:"ignoreVary",converter:p.converters.boolean,defaultValue:false}];p.converters.CacheQueryOptions=p.dictionaryConverter(x);p.converters.MultiCacheQueryOptions=p.dictionaryConverter([...x,{key:"cacheName",converter:p.converters.DOMString}]);p.converters.Response=p.interfaceConverter(g);p.converters["sequence"]=p.sequenceConverter(p.converters.RequestInfo);r.exports={Cache:Cache}},37907:(r,s,i)=>{"use strict";const{kConstruct:a}=i(29174);const{Cache:A}=i(66101);const{webidl:c}=i(21744);const{kEnumerableProperty:l}=i(83983);class CacheStorage{#s=new Map;constructor(){if(arguments[0]!==a){c.illegalConstructor()}}async match(r,s={}){c.brandCheck(this,CacheStorage);c.argumentLengthCheck(arguments,1,{header:"CacheStorage.match"});r=c.converters.RequestInfo(r);s=c.converters.MultiCacheQueryOptions(s);if(s.cacheName!=null){if(this.#s.has(s.cacheName)){const i=this.#s.get(s.cacheName);const c=new A(a,i);return await c.match(r,s)}}else{for(const i of this.#s.values()){const c=new A(a,i);const l=await c.match(r,s);if(l!==undefined){return l}}}}async has(r){c.brandCheck(this,CacheStorage);c.argumentLengthCheck(arguments,1,{header:"CacheStorage.has"});r=c.converters.DOMString(r);return this.#s.has(r)}async open(r){c.brandCheck(this,CacheStorage);c.argumentLengthCheck(arguments,1,{header:"CacheStorage.open"});r=c.converters.DOMString(r);if(this.#s.has(r)){const s=this.#s.get(r);return new A(a,s)}const s=[];this.#s.set(r,s);return new A(a,s)}async delete(r){c.brandCheck(this,CacheStorage);c.argumentLengthCheck(arguments,1,{header:"CacheStorage.delete"});r=c.converters.DOMString(r);return this.#s.delete(r)}async keys(){c.brandCheck(this,CacheStorage);const r=this.#s.keys();return[...r]}}Object.defineProperties(CacheStorage.prototype,{[Symbol.toStringTag]:{value:"CacheStorage",configurable:true},match:l,has:l,open:l,delete:l,keys:l});r.exports={CacheStorage:CacheStorage}},29174:(r,s,i)=>{"use strict";r.exports={kConstruct:i(72785).kConstruct}},82396:(r,s,i)=>{"use strict";const a=i(39491);const{URLSerializer:A}=i(685);const{isValidHeaderName:c}=i(52538);function urlEquals(r,s,i=false){const a=A(r,i);const c=A(s,i);return a===c}function fieldValues(r){a(r!==null);const s=[];for(let i of r.split(",")){i=i.trim();if(!i.length){continue}else if(!c(i)){continue}s.push(i)}return s}r.exports={urlEquals:urlEquals,fieldValues:fieldValues}},33598:(r,s,i)=>{"use strict";const a=i(39491);const A=i(41808);const c=i(13685);const{pipeline:l}=i(12781);const d=i(83983);const u=i(29459);const p=i(62905);const g=i(74839);const{RequestContentLengthMismatchError:h,ResponseContentLengthMismatchError:C,InvalidArgumentError:y,RequestAbortedError:I,HeadersTimeoutError:B,HeadersOverflowError:b,SocketError:Q,InformationalError:w,BodyTimeoutError:v,HTTPParserError:S,ResponseExceededMaxSizeError:R,ClientDestroyedError:N}=i(48045);const x=i(82067);const{kUrl:D,kReset:k,kServerName:T,kClient:_,kBusy:P,kParser:O,kConnect:L,kBlocking:M,kResuming:U,kRunning:H,kPending:G,kSize:q,kWriting:V,kQueue:j,kConnected:z,kConnecting:Y,kNeedDrain:J,kNoRef:W,kKeepAliveDefaultTimeout:X,kHostHeader:$,kPendingIdx:K,kRunningIdx:Z,kError:ee,kPipelining:te,kSocket:re,kKeepAliveTimeoutValue:ne,kMaxHeadersSize:se,kKeepAliveMaxTimeout:ie,kKeepAliveTimeoutThreshold:oe,kHeadersTimeout:ae,kBodyTimeout:Ae,kStrictContentLength:ce,kConnector:le,kMaxRedirections:de,kMaxRequests:ue,kCounter:pe,kClose:ge,kDestroy:he,kDispatch:me,kInterceptors:fe,kLocalAddress:Ee,kMaxResponseSize:Ce,kHTTPConnVersion:ye,kHost:Ie,kHTTP2Session:Be,kHTTP2SessionState:be,kHTTP2BuildRequest:Qe,kHTTP2CopyHeaders:we,kHTTP1BuildRequest:ve}=i(72785);let Se;try{Se=i(85158)}catch{Se={constants:{}}}const{constants:{HTTP2_HEADER_AUTHORITY:Re,HTTP2_HEADER_METHOD:Ne,HTTP2_HEADER_PATH:xe,HTTP2_HEADER_SCHEME:De,HTTP2_HEADER_CONTENT_LENGTH:ke,HTTP2_HEADER_EXPECT:Te,HTTP2_HEADER_STATUS:_e}}=Se;let Pe=false;const Oe=Buffer[Symbol.species];const Fe=Symbol("kClosedResolve");const Le={};try{const r=i(67643);Le.sendHeaders=r.channel("undici:client:sendHeaders");Le.beforeConnect=r.channel("undici:client:beforeConnect");Le.connectError=r.channel("undici:client:connectError");Le.connected=r.channel("undici:client:connected")}catch{Le.sendHeaders={hasSubscribers:false};Le.beforeConnect={hasSubscribers:false};Le.connectError={hasSubscribers:false};Le.connected={hasSubscribers:false}}class Client extends g{constructor(r,{interceptors:s,maxHeaderSize:i,headersTimeout:a,socketTimeout:l,requestTimeout:u,connectTimeout:p,bodyTimeout:g,idleTimeout:h,keepAlive:C,keepAliveTimeout:I,maxKeepAliveTimeout:B,keepAliveMaxTimeout:b,keepAliveTimeoutThreshold:Q,socketPath:w,pipelining:v,tls:S,strictContentLength:R,maxCachedSessions:N,maxRedirections:k,connect:_,maxRequestsPerClient:P,localAddress:O,maxResponseSize:L,autoSelectFamily:M,autoSelectFamilyAttemptTimeout:H,allowH2:G,maxConcurrentStreams:q}={}){super();if(C!==undefined){throw new y("unsupported keepAlive, use pipelining=0 instead")}if(l!==undefined){throw new y("unsupported socketTimeout, use headersTimeout & bodyTimeout instead")}if(u!==undefined){throw new y("unsupported requestTimeout, use headersTimeout & bodyTimeout instead")}if(h!==undefined){throw new y("unsupported idleTimeout, use keepAliveTimeout instead")}if(B!==undefined){throw new y("unsupported maxKeepAliveTimeout, use keepAliveMaxTimeout instead")}if(i!=null&&!Number.isFinite(i)){throw new y("invalid maxHeaderSize")}if(w!=null&&typeof w!=="string"){throw new y("invalid socketPath")}if(p!=null&&(!Number.isFinite(p)||p<0)){throw new y("invalid connectTimeout")}if(I!=null&&(!Number.isFinite(I)||I<=0)){throw new y("invalid keepAliveTimeout")}if(b!=null&&(!Number.isFinite(b)||b<=0)){throw new y("invalid keepAliveMaxTimeout")}if(Q!=null&&!Number.isFinite(Q)){throw new y("invalid keepAliveTimeoutThreshold")}if(a!=null&&(!Number.isInteger(a)||a<0)){throw new y("headersTimeout must be a positive integer or zero")}if(g!=null&&(!Number.isInteger(g)||g<0)){throw new y("bodyTimeout must be a positive integer or zero")}if(_!=null&&typeof _!=="function"&&typeof _!=="object"){throw new y("connect must be a function or an object")}if(k!=null&&(!Number.isInteger(k)||k<0)){throw new y("maxRedirections must be a positive number")}if(P!=null&&(!Number.isInteger(P)||P<0)){throw new y("maxRequestsPerClient must be a positive number")}if(O!=null&&(typeof O!=="string"||A.isIP(O)===0)){throw new y("localAddress must be valid string IP address")}if(L!=null&&(!Number.isInteger(L)||L<-1)){throw new y("maxResponseSize must be a positive number")}if(H!=null&&(!Number.isInteger(H)||H<-1)){throw new y("autoSelectFamilyAttemptTimeout must be a positive number")}if(G!=null&&typeof G!=="boolean"){throw new y("allowH2 must be a valid boolean value")}if(q!=null&&(typeof q!=="number"||q<1)){throw new y("maxConcurrentStreams must be a possitive integer, greater than 0")}if(typeof _!=="function"){_=x({...S,maxCachedSessions:N,allowH2:G,socketPath:w,timeout:p,...d.nodeHasAutoSelectFamily&&M?{autoSelectFamily:M,autoSelectFamilyAttemptTimeout:H}:undefined,..._})}this[fe]=s&&s.Client&&Array.isArray(s.Client)?s.Client:[Ue({maxRedirections:k})];this[D]=d.parseOrigin(r);this[le]=_;this[re]=null;this[te]=v!=null?v:1;this[se]=i||c.maxHeaderSize;this[X]=I==null?4e3:I;this[ie]=b==null?6e5:b;this[oe]=Q==null?1e3:Q;this[ne]=this[X];this[T]=null;this[Ee]=O!=null?O:null;this[U]=0;this[J]=0;this[$]=`host: ${this[D].hostname}${this[D].port?`:${this[D].port}`:""}\r\n`;this[Ae]=g!=null?g:3e5;this[ae]=a!=null?a:3e5;this[ce]=R==null?true:R;this[de]=k;this[ue]=P;this[Fe]=null;this[Ce]=L>-1?L:-1;this[ye]="h1";this[Be]=null;this[be]=!G?null:{openStreams:0,maxConcurrentStreams:q!=null?q:100};this[Ie]=`${this[D].hostname}${this[D].port?`:${this[D].port}`:""}`;this[j]=[];this[Z]=0;this[K]=0}get pipelining(){return this[te]}set pipelining(r){this[te]=r;resume(this,true)}get[G](){return this[j].length-this[K]}get[H](){return this[K]-this[Z]}get[q](){return this[j].length-this[Z]}get[z](){return!!this[re]&&!this[Y]&&!this[re].destroyed}get[P](){const r=this[re];return r&&(r[k]||r[V]||r[M])||this[q]>=(this[te]||1)||this[G]>0}[L](r){connect(this);this.once("connect",r)}[me](r,s){const i=r.origin||this[D].origin;const a=this[ye]==="h2"?p[Qe](i,r,s):p[ve](i,r,s);this[j].push(a);if(this[U]){}else if(d.bodyLength(a.body)==null&&d.isIterable(a.body)){this[U]=1;process.nextTick(resume,this)}else{resume(this,true)}if(this[U]&&this[J]!==2&&this[P]){this[J]=2}return this[J]<2}async[ge](){return new Promise((r=>{if(!this[q]){r(null)}else{this[Fe]=r}}))}async[he](r){return new Promise((s=>{const i=this[j].splice(this[K]);for(let s=0;s{if(this[Fe]){this[Fe]();this[Fe]=null}s()};if(this[Be]!=null){d.destroy(this[Be],r);this[Be]=null;this[be]=null}if(!this[re]){queueMicrotask(callback)}else{d.destroy(this[re].on("close",callback),r)}resume(this)}))}}function onHttp2SessionError(r){a(r.code!=="ERR_TLS_CERT_ALTNAME_INVALID");this[re][ee]=r;onError(this[_],r)}function onHttp2FrameError(r,s,i){const a=new w(`HTTP/2: "frameError" received - type ${r}, code ${s}`);if(i===0){this[re][ee]=a;onError(this[_],a)}}function onHttp2SessionEnd(){d.destroy(this,new Q("other side closed"));d.destroy(this[re],new Q("other side closed"))}function onHTTP2GoAway(r){const s=this[_];const i=new w(`HTTP/2: "GOAWAY" frame received with code ${r}`);s[re]=null;s[Be]=null;if(s.destroyed){a(this[G]===0);const r=s[j].splice(s[Z]);for(let s=0;s0){const r=s[j][s[Z]];s[j][s[Z]++]=null;errorRequest(s,r,i)}s[K]=s[Z];a(s[H]===0);s.emit("disconnect",s[D],[s],i);resume(s)}const Me=i(30953);const Ue=i(38861);const He=Buffer.alloc(0);async function lazyllhttp(){const r=process.env.JEST_WORKER_ID?i(61145):undefined;let s;try{s=await WebAssembly.compile(Buffer.from(i(95627),"base64"))}catch(a){s=await WebAssembly.compile(Buffer.from(r||i(61145),"base64"))}return await WebAssembly.instantiate(s,{env:{wasm_on_url:(r,s,i)=>0,wasm_on_status:(r,s,i)=>{a.strictEqual(Ve.ptr,r);const A=s-Ye+je.byteOffset;return Ve.onStatus(new Oe(je.buffer,A,i))||0},wasm_on_message_begin:r=>{a.strictEqual(Ve.ptr,r);return Ve.onMessageBegin()||0},wasm_on_header_field:(r,s,i)=>{a.strictEqual(Ve.ptr,r);const A=s-Ye+je.byteOffset;return Ve.onHeaderField(new Oe(je.buffer,A,i))||0},wasm_on_header_value:(r,s,i)=>{a.strictEqual(Ve.ptr,r);const A=s-Ye+je.byteOffset;return Ve.onHeaderValue(new Oe(je.buffer,A,i))||0},wasm_on_headers_complete:(r,s,i,A)=>{a.strictEqual(Ve.ptr,r);return Ve.onHeadersComplete(s,Boolean(i),Boolean(A))||0},wasm_on_body:(r,s,i)=>{a.strictEqual(Ve.ptr,r);const A=s-Ye+je.byteOffset;return Ve.onBody(new Oe(je.buffer,A,i))||0},wasm_on_message_complete:r=>{a.strictEqual(Ve.ptr,r);return Ve.onMessageComplete()||0}}})}let Ge=null;let qe=lazyllhttp();qe.catch();let Ve=null;let je=null;let ze=0;let Ye=null;const Je=1;const We=2;const Xe=3;class Parser{constructor(r,s,{exports:i}){a(Number.isFinite(r[se])&&r[se]>0);this.llhttp=i;this.ptr=this.llhttp.llhttp_alloc(Me.TYPE.RESPONSE);this.client=r;this.socket=s;this.timeout=null;this.timeoutValue=null;this.timeoutType=null;this.statusCode=null;this.statusText="";this.upgrade=false;this.headers=[];this.headersSize=0;this.headersMaxSize=r[se];this.shouldKeepAlive=false;this.paused=false;this.resume=this.resume.bind(this);this.bytesRead=0;this.keepAlive="";this.contentLength="";this.connection="";this.maxResponseSize=r[Ce]}setTimeout(r,s){this.timeoutType=s;if(r!==this.timeoutValue){u.clearTimeout(this.timeout);if(r){this.timeout=u.setTimeout(onParserTimeout,r,this);if(this.timeout.unref){this.timeout.unref()}}else{this.timeout=null}this.timeoutValue=r}else if(this.timeout){if(this.timeout.refresh){this.timeout.refresh()}}}resume(){if(this.socket.destroyed||!this.paused){return}a(this.ptr!=null);a(Ve==null);this.llhttp.llhttp_resume(this.ptr);a(this.timeoutType===We);if(this.timeout){if(this.timeout.refresh){this.timeout.refresh()}}this.paused=false;this.execute(this.socket.read()||He);this.readMore()}readMore(){while(!this.paused&&this.ptr){const r=this.socket.read();if(r===null){break}this.execute(r)}}execute(r){a(this.ptr!=null);a(Ve==null);a(!this.paused);const{socket:s,llhttp:i}=this;if(r.length>ze){if(Ye){i.free(Ye)}ze=Math.ceil(r.length/4096)*4096;Ye=i.malloc(ze)}new Uint8Array(i.memory.buffer,Ye,ze).set(r);try{let a;try{je=r;Ve=this;a=i.llhttp_execute(this.ptr,Ye,r.length)}catch(r){throw r}finally{Ve=null;je=null}const A=i.llhttp_get_error_pos(this.ptr)-Ye;if(a===Me.ERROR.PAUSED_UPGRADE){this.onUpgrade(r.slice(A))}else if(a===Me.ERROR.PAUSED){this.paused=true;s.unshift(r.slice(A))}else if(a!==Me.ERROR.OK){const s=i.llhttp_get_error_reason(this.ptr);let c="";if(s){const r=new Uint8Array(i.memory.buffer,s).indexOf(0);c="Response does not match the HTTP/1.1 protocol ("+Buffer.from(i.memory.buffer,s,r).toString()+")"}throw new S(c,Me.ERROR[a],r.slice(A))}}catch(r){d.destroy(s,r)}}destroy(){a(this.ptr!=null);a(Ve==null);this.llhttp.llhttp_free(this.ptr);this.ptr=null;u.clearTimeout(this.timeout);this.timeout=null;this.timeoutValue=null;this.timeoutType=null;this.paused=false}onStatus(r){this.statusText=r.toString()}onMessageBegin(){const{socket:r,client:s}=this;if(r.destroyed){return-1}const i=s[j][s[Z]];if(!i){return-1}}onHeaderField(r){const s=this.headers.length;if((s&1)===0){this.headers.push(r)}else{this.headers[s-1]=Buffer.concat([this.headers[s-1],r])}this.trackHeader(r.length)}onHeaderValue(r){let s=this.headers.length;if((s&1)===1){this.headers.push(r);s+=1}else{this.headers[s-1]=Buffer.concat([this.headers[s-1],r])}const i=this.headers[s-2];if(i.length===10&&i.toString().toLowerCase()==="keep-alive"){this.keepAlive+=r.toString()}else if(i.length===10&&i.toString().toLowerCase()==="connection"){this.connection+=r.toString()}else if(i.length===14&&i.toString().toLowerCase()==="content-length"){this.contentLength+=r.toString()}this.trackHeader(r.length)}trackHeader(r){this.headersSize+=r;if(this.headersSize>=this.headersMaxSize){d.destroy(this.socket,new b)}}onUpgrade(r){const{upgrade:s,client:i,socket:A,headers:c,statusCode:l}=this;a(s);const u=i[j][i[Z]];a(u);a(!A.destroyed);a(A===i[re]);a(!this.paused);a(u.upgrade||u.method==="CONNECT");this.statusCode=null;this.statusText="";this.shouldKeepAlive=null;a(this.headers.length%2===0);this.headers=[];this.headersSize=0;A.unshift(r);A[O].destroy();A[O]=null;A[_]=null;A[ee]=null;A.removeListener("error",onSocketError).removeListener("readable",onSocketReadable).removeListener("end",onSocketEnd).removeListener("close",onSocketClose);i[re]=null;i[j][i[Z]++]=null;i.emit("disconnect",i[D],[i],new w("upgrade"));try{u.onUpgrade(l,c,A)}catch(r){d.destroy(A,r)}resume(i)}onHeadersComplete(r,s,i){const{client:A,socket:c,headers:l,statusText:u}=this;if(c.destroyed){return-1}const p=A[j][A[Z]];if(!p){return-1}a(!this.upgrade);a(this.statusCode<200);if(r===100){d.destroy(c,new Q("bad response",d.getSocketInfo(c)));return-1}if(s&&!p.upgrade){d.destroy(c,new Q("bad upgrade",d.getSocketInfo(c)));return-1}a.strictEqual(this.timeoutType,Je);this.statusCode=r;this.shouldKeepAlive=i||p.method==="HEAD"&&!c[k]&&this.connection.toLowerCase()==="keep-alive";if(this.statusCode>=200){const r=p.bodyTimeout!=null?p.bodyTimeout:A[Ae];this.setTimeout(r,We)}else if(this.timeout){if(this.timeout.refresh){this.timeout.refresh()}}if(p.method==="CONNECT"){a(A[H]===1);this.upgrade=true;return 2}if(s){a(A[H]===1);this.upgrade=true;return 2}a(this.headers.length%2===0);this.headers=[];this.headersSize=0;if(this.shouldKeepAlive&&A[te]){const r=this.keepAlive?d.parseKeepAliveTimeout(this.keepAlive):null;if(r!=null){const s=Math.min(r-A[oe],A[ie]);if(s<=0){c[k]=true}else{A[ne]=s}}else{A[ne]=A[X]}}else{c[k]=true}const g=p.onHeaders(r,l,this.resume,u)===false;if(p.aborted){return-1}if(p.method==="HEAD"){return 1}if(r<200){return 1}if(c[M]){c[M]=false;resume(A)}return g?Me.ERROR.PAUSED:0}onBody(r){const{client:s,socket:i,statusCode:A,maxResponseSize:c}=this;if(i.destroyed){return-1}const l=s[j][s[Z]];a(l);a.strictEqual(this.timeoutType,We);if(this.timeout){if(this.timeout.refresh){this.timeout.refresh()}}a(A>=200);if(c>-1&&this.bytesRead+r.length>c){d.destroy(i,new R);return-1}this.bytesRead+=r.length;if(l.onData(r)===false){return Me.ERROR.PAUSED}}onMessageComplete(){const{client:r,socket:s,statusCode:i,upgrade:A,headers:c,contentLength:l,bytesRead:u,shouldKeepAlive:p}=this;if(s.destroyed&&(!i||p)){return-1}if(A){return}const g=r[j][r[Z]];a(g);a(i>=100);this.statusCode=null;this.statusText="";this.bytesRead=0;this.contentLength="";this.keepAlive="";this.connection="";a(this.headers.length%2===0);this.headers=[];this.headersSize=0;if(i<200){return}if(g.method!=="HEAD"&&l&&u!==parseInt(l,10)){d.destroy(s,new C);return-1}g.onComplete(c);r[j][r[Z]++]=null;if(s[V]){a.strictEqual(r[H],0);d.destroy(s,new w("reset"));return Me.ERROR.PAUSED}else if(!p){d.destroy(s,new w("reset"));return Me.ERROR.PAUSED}else if(s[k]&&r[H]===0){d.destroy(s,new w("reset"));return Me.ERROR.PAUSED}else if(r[te]===1){setImmediate(resume,r)}else{resume(r)}}}function onParserTimeout(r){const{socket:s,timeoutType:i,client:A}=r;if(i===Je){if(!s[V]||s.writableNeedDrain||A[H]>1){a(!r.paused,"cannot be paused while waiting for headers");d.destroy(s,new B)}}else if(i===We){if(!r.paused){d.destroy(s,new v)}}else if(i===Xe){a(A[H]===0&&A[ne]);d.destroy(s,new w("socket idle timeout"))}}function onSocketReadable(){const{[O]:r}=this;if(r){r.readMore()}}function onSocketError(r){const{[_]:s,[O]:i}=this;a(r.code!=="ERR_TLS_CERT_ALTNAME_INVALID");if(s[ye]!=="h2"){if(r.code==="ECONNRESET"&&i.statusCode&&!i.shouldKeepAlive){i.onMessageComplete();return}}this[ee]=r;onError(this[_],r)}function onError(r,s){if(r[H]===0&&s.code!=="UND_ERR_INFO"&&s.code!=="UND_ERR_SOCKET"){a(r[K]===r[Z]);const i=r[j].splice(r[Z]);for(let a=0;a0&&i.code!=="UND_ERR_INFO"){const s=r[j][r[Z]];r[j][r[Z]++]=null;errorRequest(r,s,i)}r[K]=r[Z];a(r[H]===0);r.emit("disconnect",r[D],[r],i);resume(r)}async function connect(r){a(!r[Y]);a(!r[re]);let{host:s,hostname:i,protocol:c,port:l}=r[D];if(i[0]==="["){const r=i.indexOf("]");a(r!==-1);const s=i.substring(1,r);a(A.isIP(s));i=s}r[Y]=true;if(Le.beforeConnect.hasSubscribers){Le.beforeConnect.publish({connectParams:{host:s,hostname:i,protocol:c,port:l,servername:r[T],localAddress:r[Ee]},connector:r[le]})}try{const A=await new Promise(((a,A)=>{r[le]({host:s,hostname:i,protocol:c,port:l,servername:r[T],localAddress:r[Ee]},((r,s)=>{if(r){A(r)}else{a(s)}}))}));if(r.destroyed){d.destroy(A.on("error",(()=>{})),new N);return}r[Y]=false;a(A);const u=A.alpnProtocol==="h2";if(u){if(!Pe){Pe=true;process.emitWarning("H2 support is experimental, expect them to change at any time.",{code:"UNDICI-H2"})}const s=Se.connect(r[D],{createConnection:()=>A,peerMaxConcurrentStreams:r[be].maxConcurrentStreams});r[ye]="h2";s[_]=r;s[re]=A;s.on("error",onHttp2SessionError);s.on("frameError",onHttp2FrameError);s.on("end",onHttp2SessionEnd);s.on("goaway",onHTTP2GoAway);s.on("close",onSocketClose);s.unref();r[Be]=s;A[Be]=s}else{if(!Ge){Ge=await qe;qe=null}A[W]=false;A[V]=false;A[k]=false;A[M]=false;A[O]=new Parser(r,A,Ge)}A[pe]=0;A[ue]=r[ue];A[_]=r;A[ee]=null;A.on("error",onSocketError).on("readable",onSocketReadable).on("end",onSocketEnd).on("close",onSocketClose);r[re]=A;if(Le.connected.hasSubscribers){Le.connected.publish({connectParams:{host:s,hostname:i,protocol:c,port:l,servername:r[T],localAddress:r[Ee]},connector:r[le],socket:A})}r.emit("connect",r[D],[r])}catch(A){if(r.destroyed){return}r[Y]=false;if(Le.connectError.hasSubscribers){Le.connectError.publish({connectParams:{host:s,hostname:i,protocol:c,port:l,servername:r[T],localAddress:r[Ee]},connector:r[le],error:A})}if(A.code==="ERR_TLS_CERT_ALTNAME_INVALID"){a(r[H]===0);while(r[G]>0&&r[j][r[K]].servername===r[T]){const s=r[j][r[K]++];errorRequest(r,s,A)}}else{onError(r,A)}r.emit("connectionError",r[D],[r],A)}resume(r)}function emitDrain(r){r[J]=0;r.emit("drain",r[D],[r])}function resume(r,s){if(r[U]===2){return}r[U]=2;_resume(r,s);r[U]=0;if(r[Z]>256){r[j].splice(0,r[Z]);r[K]-=r[Z];r[Z]=0}}function _resume(r,s){while(true){if(r.destroyed){a(r[G]===0);return}if(r[Fe]&&!r[q]){r[Fe]();r[Fe]=null;return}const i=r[re];if(i&&!i.destroyed&&i.alpnProtocol!=="h2"){if(r[q]===0){if(!i[W]&&i.unref){i.unref();i[W]=true}}else if(i[W]&&i.ref){i.ref();i[W]=false}if(r[q]===0){if(i[O].timeoutType!==Xe){i[O].setTimeout(r[ne],Xe)}}else if(r[H]>0&&i[O].statusCode<200){if(i[O].timeoutType!==Je){const s=r[j][r[Z]];const a=s.headersTimeout!=null?s.headersTimeout:r[ae];i[O].setTimeout(a,Je)}}}if(r[P]){r[J]=2}else if(r[J]===2){if(s){r[J]=1;process.nextTick(emitDrain,r)}else{emitDrain(r)}continue}if(r[G]===0){return}if(r[H]>=(r[te]||1)){return}const A=r[j][r[K]];if(r[D].protocol==="https:"&&r[T]!==A.servername){if(r[H]>0){return}r[T]=A.servername;if(i&&i.servername!==A.servername){d.destroy(i,new w("servername changed"));return}}if(r[Y]){return}if(!i&&!r[Be]){connect(r);return}if(i.destroyed||i[V]||i[k]||i[M]){return}if(r[H]>0&&!A.idempotent){return}if(r[H]>0&&(A.upgrade||A.method==="CONNECT")){return}if(r[H]>0&&d.bodyLength(A.body)!==0&&(d.isStream(A.body)||d.isAsyncIterable(A.body))){return}if(!A.aborted&&write(r,A)){r[K]++}else{r[j].splice(r[K],1)}}}function shouldSendContentLength(r){return r!=="GET"&&r!=="HEAD"&&r!=="OPTIONS"&&r!=="TRACE"&&r!=="CONNECT"}function write(r,s){if(r[ye]==="h2"){writeH2(r,r[Be],s);return}const{body:i,method:A,path:c,host:l,upgrade:u,headers:p,blocking:g,reset:C}=s;const y=A==="PUT"||A==="POST"||A==="PATCH";if(i&&typeof i.read==="function"){i.read(0)}const B=d.bodyLength(i);let b=B;if(b===null){b=s.contentLength}if(b===0&&!y){b=null}if(shouldSendContentLength(A)&&b>0&&s.contentLength!==null&&s.contentLength!==b){if(r[ce]){errorRequest(r,s,new h);return false}process.emitWarning(new h)}const Q=r[re];try{s.onConnect((i=>{if(s.aborted||s.completed){return}errorRequest(r,s,i||new I);d.destroy(Q,new w("aborted"))}))}catch(i){errorRequest(r,s,i)}if(s.aborted){return false}if(A==="HEAD"){Q[k]=true}if(u||A==="CONNECT"){Q[k]=true}if(C!=null){Q[k]=C}if(r[ue]&&Q[pe]++>=r[ue]){Q[k]=true}if(g){Q[M]=true}let v=`${A} ${c} HTTP/1.1\r\n`;if(typeof l==="string"){v+=`host: ${l}\r\n`}else{v+=r[$]}if(u){v+=`connection: upgrade\r\nupgrade: ${u}\r\n`}else if(r[te]&&!Q[k]){v+="connection: keep-alive\r\n"}else{v+="connection: close\r\n"}if(p){v+=p}if(Le.sendHeaders.hasSubscribers){Le.sendHeaders.publish({request:s,headers:v,socket:Q})}if(!i||B===0){if(b===0){Q.write(`${v}content-length: 0\r\n\r\n`,"latin1")}else{a(b===null,"no body must not have content length");Q.write(`${v}\r\n`,"latin1")}s.onRequestSent()}else if(d.isBuffer(i)){a(b===i.byteLength,"buffer body must have content length");Q.cork();Q.write(`${v}content-length: ${b}\r\n\r\n`,"latin1");Q.write(i);Q.uncork();s.onBodySent(i);s.onRequestSent();if(!y){Q[k]=true}}else if(d.isBlobLike(i)){if(typeof i.stream==="function"){writeIterable({body:i.stream(),client:r,request:s,socket:Q,contentLength:b,header:v,expectsPayload:y})}else{writeBlob({body:i,client:r,request:s,socket:Q,contentLength:b,header:v,expectsPayload:y})}}else if(d.isStream(i)){writeStream({body:i,client:r,request:s,socket:Q,contentLength:b,header:v,expectsPayload:y})}else if(d.isIterable(i)){writeIterable({body:i,client:r,request:s,socket:Q,contentLength:b,header:v,expectsPayload:y})}else{a(false)}return true}function writeH2(r,s,i){const{body:A,method:c,path:l,host:u,upgrade:g,expectContinue:C,signal:y,headers:B}=i;let b;if(typeof B==="string")b=p[we](B.trim());else b=B;if(g){errorRequest(r,i,new Error("Upgrade not supported for H2"));return false}try{i.onConnect((s=>{if(i.aborted||i.completed){return}errorRequest(r,i,s||new I)}))}catch(s){errorRequest(r,i,s)}if(i.aborted){return false}let Q;const v=r[be];b[Re]=u||r[Ie];b[Ne]=c;if(c==="CONNECT"){s.ref();Q=s.request(b,{endStream:false,signal:y});if(Q.id&&!Q.pending){i.onUpgrade(null,null,Q);++v.openStreams}else{Q.once("ready",(()=>{i.onUpgrade(null,null,Q);++v.openStreams}))}Q.once("close",(()=>{v.openStreams-=1;if(v.openStreams===0)s.unref()}));return true}b[xe]=l;b[De]="https";const S=c==="PUT"||c==="POST"||c==="PATCH";if(A&&typeof A.read==="function"){A.read(0)}let R=d.bodyLength(A);if(R==null){R=i.contentLength}if(R===0||!S){R=null}if(shouldSendContentLength(c)&&R>0&&i.contentLength!=null&&i.contentLength!==R){if(r[ce]){errorRequest(r,i,new h);return false}process.emitWarning(new h)}if(R!=null){a(A,"no body must not have content length");b[ke]=`${R}`}s.ref();const N=c==="GET"||c==="HEAD";if(C){b[Te]="100-continue";Q=s.request(b,{endStream:N,signal:y});Q.once("continue",writeBodyH2)}else{Q=s.request(b,{endStream:N,signal:y});writeBodyH2()}++v.openStreams;Q.once("response",(r=>{const{[_e]:s,...a}=r;if(i.onHeaders(Number(s),a,Q.resume.bind(Q),"")===false){Q.pause()}}));Q.once("end",(()=>{i.onComplete([])}));Q.on("data",(r=>{if(i.onData(r)===false){Q.pause()}}));Q.once("close",(()=>{v.openStreams-=1;if(v.openStreams===0){s.unref()}}));Q.once("error",(function(s){if(r[Be]&&!r[Be].destroyed&&!this.closed&&!this.destroyed){v.streams-=1;d.destroy(Q,s)}}));Q.once("frameError",((s,a)=>{const A=new w(`HTTP/2: "frameError" received - type ${s}, code ${a}`);errorRequest(r,i,A);if(r[Be]&&!r[Be].destroyed&&!this.closed&&!this.destroyed){v.streams-=1;d.destroy(Q,A)}}));return true;function writeBodyH2(){if(!A){i.onRequestSent()}else if(d.isBuffer(A)){a(R===A.byteLength,"buffer body must have content length");Q.cork();Q.write(A);Q.uncork();Q.end();i.onBodySent(A);i.onRequestSent()}else if(d.isBlobLike(A)){if(typeof A.stream==="function"){writeIterable({client:r,request:i,contentLength:R,h2stream:Q,expectsPayload:S,body:A.stream(),socket:r[re],header:""})}else{writeBlob({body:A,client:r,request:i,contentLength:R,expectsPayload:S,h2stream:Q,header:"",socket:r[re]})}}else if(d.isStream(A)){writeStream({body:A,client:r,request:i,contentLength:R,expectsPayload:S,socket:r[re],h2stream:Q,header:""})}else if(d.isIterable(A)){writeIterable({body:A,client:r,request:i,contentLength:R,expectsPayload:S,header:"",h2stream:Q,socket:r[re]})}else{a(false)}}}function writeStream({h2stream:r,body:s,client:i,request:A,socket:c,contentLength:u,header:p,expectsPayload:g}){a(u!==0||i[H]===0,"stream body cannot be pipelined");if(i[ye]==="h2"){const y=l(s,r,(i=>{if(i){d.destroy(s,i);d.destroy(r,i)}else{A.onRequestSent()}}));y.on("data",onPipeData);y.once("end",(()=>{y.removeListener("data",onPipeData);d.destroy(y)}));function onPipeData(r){A.onBodySent(r)}return}let h=false;const C=new AsyncWriter({socket:c,request:A,contentLength:u,client:i,expectsPayload:g,header:p});const onData=function(r){if(h){return}try{if(!C.write(r)&&this.pause){this.pause()}}catch(r){d.destroy(this,r)}};const onDrain=function(){if(h){return}if(s.resume){s.resume()}};const onAbort=function(){if(h){return}const r=new I;queueMicrotask((()=>onFinished(r)))};const onFinished=function(r){if(h){return}h=true;a(c.destroyed||c[V]&&i[H]<=1);c.off("drain",onDrain).off("error",onFinished);s.removeListener("data",onData).removeListener("end",onFinished).removeListener("error",onFinished).removeListener("close",onAbort);if(!r){try{C.end()}catch(s){r=s}}C.destroy(r);if(r&&(r.code!=="UND_ERR_INFO"||r.message!=="reset")){d.destroy(s,r)}else{d.destroy(s)}};s.on("data",onData).on("end",onFinished).on("error",onFinished).on("close",onAbort);if(s.resume){s.resume()}c.on("drain",onDrain).on("error",onFinished)}async function writeBlob({h2stream:r,body:s,client:i,request:A,socket:c,contentLength:l,header:u,expectsPayload:p}){a(l===s.size,"blob body must have content length");const g=i[ye]==="h2";try{if(l!=null&&l!==s.size){throw new h}const a=Buffer.from(await s.arrayBuffer());if(g){r.cork();r.write(a);r.uncork()}else{c.cork();c.write(`${u}content-length: ${l}\r\n\r\n`,"latin1");c.write(a);c.uncork()}A.onBodySent(a);A.onRequestSent();if(!p){c[k]=true}resume(i)}catch(s){d.destroy(g?r:c,s)}}async function writeIterable({h2stream:r,body:s,client:i,request:A,socket:c,contentLength:l,header:d,expectsPayload:u}){a(l!==0||i[H]===0,"iterator body cannot be pipelined");let p=null;function onDrain(){if(p){const r=p;p=null;r()}}const waitForDrain=()=>new Promise(((r,s)=>{a(p===null);if(c[ee]){s(c[ee])}else{p=r}}));if(i[ye]==="h2"){r.on("close",onDrain).on("drain",onDrain);try{for await(const i of s){if(c[ee]){throw c[ee]}const s=r.write(i);A.onBodySent(i);if(!s){await waitForDrain()}}}catch(s){r.destroy(s)}finally{A.onRequestSent();r.end();r.off("close",onDrain).off("drain",onDrain)}return}c.on("close",onDrain).on("drain",onDrain);const g=new AsyncWriter({socket:c,request:A,contentLength:l,client:i,expectsPayload:u,header:d});try{for await(const r of s){if(c[ee]){throw c[ee]}if(!g.write(r)){await waitForDrain()}}g.end()}catch(r){g.destroy(r)}finally{c.off("close",onDrain).off("drain",onDrain)}}class AsyncWriter{constructor({socket:r,request:s,contentLength:i,client:a,expectsPayload:A,header:c}){this.socket=r;this.request=s;this.contentLength=i;this.client=a;this.bytesWritten=0;this.expectsPayload=A;this.header=c;r[V]=true}write(r){const{socket:s,request:i,contentLength:a,client:A,bytesWritten:c,expectsPayload:l,header:d}=this;if(s[ee]){throw s[ee]}if(s.destroyed){return false}const u=Buffer.byteLength(r);if(!u){return true}if(a!==null&&c+u>a){if(A[ce]){throw new h}process.emitWarning(new h)}s.cork();if(c===0){if(!l){s[k]=true}if(a===null){s.write(`${d}transfer-encoding: chunked\r\n`,"latin1")}else{s.write(`${d}content-length: ${a}\r\n\r\n`,"latin1")}}if(a===null){s.write(`\r\n${u.toString(16)}\r\n`,"latin1")}this.bytesWritten+=u;const p=s.write(r);s.uncork();i.onBodySent(r);if(!p){if(s[O].timeout&&s[O].timeoutType===Je){if(s[O].timeout.refresh){s[O].timeout.refresh()}}}return p}end(){const{socket:r,contentLength:s,client:i,bytesWritten:a,expectsPayload:A,header:c,request:l}=this;l.onRequestSent();r[V]=false;if(r[ee]){throw r[ee]}if(r.destroyed){return}if(a===0){if(A){r.write(`${c}content-length: 0\r\n\r\n`,"latin1")}else{r.write(`${c}\r\n`,"latin1")}}else if(s===null){r.write("\r\n0\r\n\r\n","latin1")}if(s!==null&&a!==s){if(i[ce]){throw new h}else{process.emitWarning(new h)}}if(r[O].timeout&&r[O].timeoutType===Je){if(r[O].timeout.refresh){r[O].timeout.refresh()}}resume(i)}destroy(r){const{socket:s,client:i}=this;s[V]=false;if(r){a(i[H]<=1,"pipeline should only contain this request");d.destroy(s,r)}}}function errorRequest(r,s,i){try{s.onError(i);a(s.aborted)}catch(i){r.emit("error",i)}}r.exports=Client},56436:(r,s,i)=>{"use strict";const{kConnected:a,kSize:A}=i(72785);class CompatWeakRef{constructor(r){this.value=r}deref(){return this.value[a]===0&&this.value[A]===0?undefined:this.value}}class CompatFinalizer{constructor(r){this.finalizer=r}register(r,s){if(r.on){r.on("disconnect",(()=>{if(r[a]===0&&r[A]===0){this.finalizer(s)}}))}}}r.exports=function(){if(process.env.NODE_V8_COVERAGE){return{WeakRef:CompatWeakRef,FinalizationRegistry:CompatFinalizer}}return{WeakRef:global.WeakRef||CompatWeakRef,FinalizationRegistry:global.FinalizationRegistry||CompatFinalizer}}},20663:r=>{"use strict";const s=1024;const i=4096;r.exports={maxAttributeValueSize:s,maxNameValuePairSize:i}},41724:(r,s,i)=>{"use strict";const{parseSetCookie:a}=i(24408);const{stringify:A,getHeadersList:c}=i(43121);const{webidl:l}=i(21744);const{Headers:d}=i(10554);function getCookies(r){l.argumentLengthCheck(arguments,1,{header:"getCookies"});l.brandCheck(r,d,{strict:false});const s=r.get("cookie");const i={};if(!s){return i}for(const r of s.split(";")){const[s,...a]=r.split("=");i[s.trim()]=a.join("=")}return i}function deleteCookie(r,s,i){l.argumentLengthCheck(arguments,2,{header:"deleteCookie"});l.brandCheck(r,d,{strict:false});s=l.converters.DOMString(s);i=l.converters.DeleteCookieAttributes(i);setCookie(r,{name:s,value:"",expires:new Date(0),...i})}function getSetCookies(r){l.argumentLengthCheck(arguments,1,{header:"getSetCookies"});l.brandCheck(r,d,{strict:false});const s=c(r).cookies;if(!s){return[]}return s.map((r=>a(Array.isArray(r)?r[1]:r)))}function setCookie(r,s){l.argumentLengthCheck(arguments,2,{header:"setCookie"});l.brandCheck(r,d,{strict:false});s=l.converters.Cookie(s);const i=A(s);if(i){r.append("Set-Cookie",A(s))}}l.converters.DeleteCookieAttributes=l.dictionaryConverter([{converter:l.nullableConverter(l.converters.DOMString),key:"path",defaultValue:null},{converter:l.nullableConverter(l.converters.DOMString),key:"domain",defaultValue:null}]);l.converters.Cookie=l.dictionaryConverter([{converter:l.converters.DOMString,key:"name"},{converter:l.converters.DOMString,key:"value"},{converter:l.nullableConverter((r=>{if(typeof r==="number"){return l.converters["unsigned long long"](r)}return new Date(r)})),key:"expires",defaultValue:null},{converter:l.nullableConverter(l.converters["long long"]),key:"maxAge",defaultValue:null},{converter:l.nullableConverter(l.converters.DOMString),key:"domain",defaultValue:null},{converter:l.nullableConverter(l.converters.DOMString),key:"path",defaultValue:null},{converter:l.nullableConverter(l.converters.boolean),key:"secure",defaultValue:null},{converter:l.nullableConverter(l.converters.boolean),key:"httpOnly",defaultValue:null},{converter:l.converters.USVString,key:"sameSite",allowedValues:["Strict","Lax","None"]},{converter:l.sequenceConverter(l.converters.DOMString),key:"unparsed",defaultValue:[]}]);r.exports={getCookies:getCookies,deleteCookie:deleteCookie,getSetCookies:getSetCookies,setCookie:setCookie}},24408:(r,s,i)=>{"use strict";const{maxNameValuePairSize:a,maxAttributeValueSize:A}=i(20663);const{isCTLExcludingHtab:c}=i(43121);const{collectASequenceOfCodePointsFast:l}=i(685);const d=i(39491);function parseSetCookie(r){if(c(r)){return null}let s="";let i="";let A="";let d="";if(r.includes(";")){const a={position:0};s=l(";",r,a);i=r.slice(a.position)}else{s=r}if(!s.includes("=")){d=s}else{const r={position:0};A=l("=",s,r);d=s.slice(r.position+1)}A=A.trim();d=d.trim();if(A.length+d.length>a){return null}return{name:A,value:d,...parseUnparsedAttributes(i)}}function parseUnparsedAttributes(r,s={}){if(r.length===0){return s}d(r[0]===";");r=r.slice(1);let i="";if(r.includes(";")){i=l(";",r,{position:0});r=r.slice(i.length)}else{i=r;r=""}let a="";let c="";if(i.includes("=")){const r={position:0};a=l("=",i,r);c=i.slice(r.position+1)}else{a=i}a=a.trim();c=c.trim();if(c.length>A){return parseUnparsedAttributes(r,s)}const u=a.toLowerCase();if(u==="expires"){const r=new Date(c);s.expires=r}else if(u==="max-age"){const i=c.charCodeAt(0);if((i<48||i>57)&&c[0]!=="-"){return parseUnparsedAttributes(r,s)}if(!/^\d+$/.test(c)){return parseUnparsedAttributes(r,s)}const a=Number(c);s.maxAge=a}else if(u==="domain"){let r=c;if(r[0]==="."){r=r.slice(1)}r=r.toLowerCase();s.domain=r}else if(u==="path"){let r="";if(c.length===0||c[0]!=="/"){r="/"}else{r=c}s.path=r}else if(u==="secure"){s.secure=true}else if(u==="httponly"){s.httpOnly=true}else if(u==="samesite"){let r="Default";const i=c.toLowerCase();if(i.includes("none")){r="None"}if(i.includes("strict")){r="Strict"}if(i.includes("lax")){r="Lax"}s.sameSite=r}else{s.unparsed??=[];s.unparsed.push(`${a}=${c}`)}return parseUnparsedAttributes(r,s)}r.exports={parseSetCookie:parseSetCookie,parseUnparsedAttributes:parseUnparsedAttributes}},43121:(r,s,i)=>{"use strict";const a=i(39491);const{kHeadersList:A}=i(72785);function isCTLExcludingHtab(r){if(r.length===0){return false}for(const s of r){const r=s.charCodeAt(0);if(r>=0||r<=8||(r>=10||r<=31)||r===127){return false}}}function validateCookieName(r){for(const s of r){const r=s.charCodeAt(0);if(r<=32||r>127||s==="("||s===")"||s===">"||s==="<"||s==="@"||s===","||s===";"||s===":"||s==="\\"||s==='"'||s==="/"||s==="["||s==="]"||s==="?"||s==="="||s==="{"||s==="}"){throw new Error("Invalid cookie name")}}}function validateCookieValue(r){for(const s of r){const r=s.charCodeAt(0);if(r<33||r===34||r===44||r===59||r===92||r>126){throw new Error("Invalid header value")}}}function validateCookiePath(r){for(const s of r){const r=s.charCodeAt(0);if(r<33||s===";"){throw new Error("Invalid cookie path")}}}function validateCookieDomain(r){if(r.startsWith("-")||r.endsWith(".")||r.endsWith("-")){throw new Error("Invalid cookie domain")}}function toIMFDate(r){if(typeof r==="number"){r=new Date(r)}const s=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"];const i=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];const a=s[r.getUTCDay()];const A=r.getUTCDate().toString().padStart(2,"0");const c=i[r.getUTCMonth()];const l=r.getUTCFullYear();const d=r.getUTCHours().toString().padStart(2,"0");const u=r.getUTCMinutes().toString().padStart(2,"0");const p=r.getUTCSeconds().toString().padStart(2,"0");return`${a}, ${A} ${c} ${l} ${d}:${u}:${p} GMT`}function validateCookieMaxAge(r){if(r<0){throw new Error("Invalid cookie max-age")}}function stringify(r){if(r.name.length===0){return null}validateCookieName(r.name);validateCookieValue(r.value);const s=[`${r.name}=${r.value}`];if(r.name.startsWith("__Secure-")){r.secure=true}if(r.name.startsWith("__Host-")){r.secure=true;r.domain=null;r.path="/"}if(r.secure){s.push("Secure")}if(r.httpOnly){s.push("HttpOnly")}if(typeof r.maxAge==="number"){validateCookieMaxAge(r.maxAge);s.push(`Max-Age=${r.maxAge}`)}if(r.domain){validateCookieDomain(r.domain);s.push(`Domain=${r.domain}`)}if(r.path){validateCookiePath(r.path);s.push(`Path=${r.path}`)}if(r.expires&&r.expires.toString()!=="Invalid Date"){s.push(`Expires=${toIMFDate(r.expires)}`)}if(r.sameSite){s.push(`SameSite=${r.sameSite}`)}for(const i of r.unparsed){if(!i.includes("=")){throw new Error("Invalid unparsed")}const[r,...a]=i.split("=");s.push(`${r.trim()}=${a.join("=")}`)}return s.join("; ")}let c;function getHeadersList(r){if(r[A]){return r[A]}if(!c){c=Object.getOwnPropertySymbols(r).find((r=>r.description==="headers list"));a(c,"Headers cannot be parsed")}const s=r[c];a(s);return s}r.exports={isCTLExcludingHtab:isCTLExcludingHtab,stringify:stringify,getHeadersList:getHeadersList}},82067:(r,s,i)=>{"use strict";const a=i(41808);const A=i(39491);const c=i(83983);const{InvalidArgumentError:l,ConnectTimeoutError:d}=i(48045);let u;let p;if(global.FinalizationRegistry&&!process.env.NODE_V8_COVERAGE){p=class WeakSessionCache{constructor(r){this._maxCachedSessions=r;this._sessionCache=new Map;this._sessionRegistry=new global.FinalizationRegistry((r=>{if(this._sessionCache.size=this._maxCachedSessions){const{value:r}=this._sessionCache.keys().next();this._sessionCache.delete(r)}this._sessionCache.set(r,s)}}}function buildConnector({allowH2:r,maxCachedSessions:s,socketPath:d,timeout:g,...h}){if(s!=null&&(!Number.isInteger(s)||s<0)){throw new l("maxCachedSessions must be a positive integer or zero")}const C={path:d,...h};const y=new p(s==null?100:s);g=g==null?1e4:g;r=r!=null?r:false;return function connect({hostname:s,host:l,protocol:d,port:p,servername:h,localAddress:I,httpSocket:B},b){let Q;if(d==="https:"){if(!u){u=i(24404)}h=h||C.servername||c.getServerName(l)||null;const a=h||s;const d=y.get(a)||null;A(a);Q=u.connect({highWaterMark:16384,...C,servername:h,session:d,localAddress:I,ALPNProtocols:r?["http/1.1","h2"]:["http/1.1"],socket:B,port:p||443,host:s});Q.on("session",(function(r){y.set(a,r)}))}else{A(!B,"httpSocket can only be sent on TLS update");Q=a.connect({highWaterMark:64*1024,...C,localAddress:I,port:p||80,host:s})}if(C.keepAlive==null||C.keepAlive){const r=C.keepAliveInitialDelay===undefined?6e4:C.keepAliveInitialDelay;Q.setKeepAlive(true,r)}const w=setupTimeout((()=>onConnectTimeout(Q)),g);Q.setNoDelay(true).once(d==="https:"?"secureConnect":"connect",(function(){w();if(b){const r=b;b=null;r(null,this)}})).on("error",(function(r){w();if(b){const s=b;b=null;s(r)}}));return Q}}function setupTimeout(r,s){if(!s){return()=>{}}let i=null;let a=null;const A=setTimeout((()=>{i=setImmediate((()=>{if(process.platform==="win32"){a=setImmediate((()=>r()))}else{r()}}))}),s);return()=>{clearTimeout(A);clearImmediate(i);clearImmediate(a)}}function onConnectTimeout(r){c.destroy(r,new d)}r.exports=buildConnector},14462:r=>{"use strict";const s={};const i=["Accept","Accept-Encoding","Accept-Language","Accept-Ranges","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","Age","Allow","Alt-Svc","Alt-Used","Authorization","Cache-Control","Clear-Site-Data","Connection","Content-Disposition","Content-Encoding","Content-Language","Content-Length","Content-Location","Content-Range","Content-Security-Policy","Content-Security-Policy-Report-Only","Content-Type","Cookie","Cross-Origin-Embedder-Policy","Cross-Origin-Opener-Policy","Cross-Origin-Resource-Policy","Date","Device-Memory","Downlink","ECT","ETag","Expect","Expect-CT","Expires","Forwarded","From","Host","If-Match","If-Modified-Since","If-None-Match","If-Range","If-Unmodified-Since","Keep-Alive","Last-Modified","Link","Location","Max-Forwards","Origin","Permissions-Policy","Pragma","Proxy-Authenticate","Proxy-Authorization","RTT","Range","Referer","Referrer-Policy","Refresh","Retry-After","Sec-WebSocket-Accept","Sec-WebSocket-Extensions","Sec-WebSocket-Key","Sec-WebSocket-Protocol","Sec-WebSocket-Version","Server","Server-Timing","Service-Worker-Allowed","Service-Worker-Navigation-Preload","Set-Cookie","SourceMap","Strict-Transport-Security","Supports-Loading-Mode","TE","Timing-Allow-Origin","Trailer","Transfer-Encoding","Upgrade","Upgrade-Insecure-Requests","User-Agent","Vary","Via","WWW-Authenticate","X-Content-Type-Options","X-DNS-Prefetch-Control","X-Frame-Options","X-Permitted-Cross-Domain-Policies","X-Powered-By","X-Requested-With","X-XSS-Protection"];for(let r=0;r{"use strict";class UndiciError extends Error{constructor(r){super(r);this.name="UndiciError";this.code="UND_ERR"}}class ConnectTimeoutError extends UndiciError{constructor(r){super(r);Error.captureStackTrace(this,ConnectTimeoutError);this.name="ConnectTimeoutError";this.message=r||"Connect Timeout Error";this.code="UND_ERR_CONNECT_TIMEOUT"}}class HeadersTimeoutError extends UndiciError{constructor(r){super(r);Error.captureStackTrace(this,HeadersTimeoutError);this.name="HeadersTimeoutError";this.message=r||"Headers Timeout Error";this.code="UND_ERR_HEADERS_TIMEOUT"}}class HeadersOverflowError extends UndiciError{constructor(r){super(r);Error.captureStackTrace(this,HeadersOverflowError);this.name="HeadersOverflowError";this.message=r||"Headers Overflow Error";this.code="UND_ERR_HEADERS_OVERFLOW"}}class BodyTimeoutError extends UndiciError{constructor(r){super(r);Error.captureStackTrace(this,BodyTimeoutError);this.name="BodyTimeoutError";this.message=r||"Body Timeout Error";this.code="UND_ERR_BODY_TIMEOUT"}}class ResponseStatusCodeError extends UndiciError{constructor(r,s,i,a){super(r);Error.captureStackTrace(this,ResponseStatusCodeError);this.name="ResponseStatusCodeError";this.message=r||"Response Status Code Error";this.code="UND_ERR_RESPONSE_STATUS_CODE";this.body=a;this.status=s;this.statusCode=s;this.headers=i}}class InvalidArgumentError extends UndiciError{constructor(r){super(r);Error.captureStackTrace(this,InvalidArgumentError);this.name="InvalidArgumentError";this.message=r||"Invalid Argument Error";this.code="UND_ERR_INVALID_ARG"}}class InvalidReturnValueError extends UndiciError{constructor(r){super(r);Error.captureStackTrace(this,InvalidReturnValueError);this.name="InvalidReturnValueError";this.message=r||"Invalid Return Value Error";this.code="UND_ERR_INVALID_RETURN_VALUE"}}class RequestAbortedError extends UndiciError{constructor(r){super(r);Error.captureStackTrace(this,RequestAbortedError);this.name="AbortError";this.message=r||"Request aborted";this.code="UND_ERR_ABORTED"}}class InformationalError extends UndiciError{constructor(r){super(r);Error.captureStackTrace(this,InformationalError);this.name="InformationalError";this.message=r||"Request information";this.code="UND_ERR_INFO"}}class RequestContentLengthMismatchError extends UndiciError{constructor(r){super(r);Error.captureStackTrace(this,RequestContentLengthMismatchError);this.name="RequestContentLengthMismatchError";this.message=r||"Request body length does not match content-length header";this.code="UND_ERR_REQ_CONTENT_LENGTH_MISMATCH"}}class ResponseContentLengthMismatchError extends UndiciError{constructor(r){super(r);Error.captureStackTrace(this,ResponseContentLengthMismatchError);this.name="ResponseContentLengthMismatchError";this.message=r||"Response body length does not match content-length header";this.code="UND_ERR_RES_CONTENT_LENGTH_MISMATCH"}}class ClientDestroyedError extends UndiciError{constructor(r){super(r);Error.captureStackTrace(this,ClientDestroyedError);this.name="ClientDestroyedError";this.message=r||"The client is destroyed";this.code="UND_ERR_DESTROYED"}}class ClientClosedError extends UndiciError{constructor(r){super(r);Error.captureStackTrace(this,ClientClosedError);this.name="ClientClosedError";this.message=r||"The client is closed";this.code="UND_ERR_CLOSED"}}class SocketError extends UndiciError{constructor(r,s){super(r);Error.captureStackTrace(this,SocketError);this.name="SocketError";this.message=r||"Socket error";this.code="UND_ERR_SOCKET";this.socket=s}}class NotSupportedError extends UndiciError{constructor(r){super(r);Error.captureStackTrace(this,NotSupportedError);this.name="NotSupportedError";this.message=r||"Not supported error";this.code="UND_ERR_NOT_SUPPORTED"}}class BalancedPoolMissingUpstreamError extends UndiciError{constructor(r){super(r);Error.captureStackTrace(this,NotSupportedError);this.name="MissingUpstreamError";this.message=r||"No upstream has been added to the BalancedPool";this.code="UND_ERR_BPL_MISSING_UPSTREAM"}}class HTTPParserError extends Error{constructor(r,s,i){super(r);Error.captureStackTrace(this,HTTPParserError);this.name="HTTPParserError";this.code=s?`HPE_${s}`:undefined;this.data=i?i.toString():undefined}}class ResponseExceededMaxSizeError extends UndiciError{constructor(r){super(r);Error.captureStackTrace(this,ResponseExceededMaxSizeError);this.name="ResponseExceededMaxSizeError";this.message=r||"Response content exceeded max size";this.code="UND_ERR_RES_EXCEEDED_MAX_SIZE"}}class RequestRetryError extends UndiciError{constructor(r,s,{headers:i,data:a}){super(r);Error.captureStackTrace(this,RequestRetryError);this.name="RequestRetryError";this.message=r||"Request retry error";this.code="UND_ERR_REQ_RETRY";this.statusCode=s;this.data=a;this.headers=i}}r.exports={HTTPParserError:HTTPParserError,UndiciError:UndiciError,HeadersTimeoutError:HeadersTimeoutError,HeadersOverflowError:HeadersOverflowError,BodyTimeoutError:BodyTimeoutError,RequestContentLengthMismatchError:RequestContentLengthMismatchError,ConnectTimeoutError:ConnectTimeoutError,ResponseStatusCodeError:ResponseStatusCodeError,InvalidArgumentError:InvalidArgumentError,InvalidReturnValueError:InvalidReturnValueError,RequestAbortedError:RequestAbortedError,ClientDestroyedError:ClientDestroyedError,ClientClosedError:ClientClosedError,InformationalError:InformationalError,SocketError:SocketError,NotSupportedError:NotSupportedError,ResponseContentLengthMismatchError:ResponseContentLengthMismatchError,BalancedPoolMissingUpstreamError:BalancedPoolMissingUpstreamError,ResponseExceededMaxSizeError:ResponseExceededMaxSizeError,RequestRetryError:RequestRetryError}},62905:(r,s,i)=>{"use strict";const{InvalidArgumentError:a,NotSupportedError:A}=i(48045);const c=i(39491);const{kHTTP2BuildRequest:l,kHTTP2CopyHeaders:d,kHTTP1BuildRequest:u}=i(72785);const p=i(83983);const g=/^[\^_`a-zA-Z\-0-9!#$%&'*+.|~]+$/;const h=/[^\t\x20-\x7e\x80-\xff]/;const C=/[^\u0021-\u00ff]/;const y=Symbol("handler");const I={};let B;try{const r=i(67643);I.create=r.channel("undici:request:create");I.bodySent=r.channel("undici:request:bodySent");I.headers=r.channel("undici:request:headers");I.trailers=r.channel("undici:request:trailers");I.error=r.channel("undici:request:error")}catch{I.create={hasSubscribers:false};I.bodySent={hasSubscribers:false};I.headers={hasSubscribers:false};I.trailers={hasSubscribers:false};I.error={hasSubscribers:false}}class Request{constructor(r,{path:s,method:A,body:c,headers:l,query:d,idempotent:u,blocking:h,upgrade:b,headersTimeout:Q,bodyTimeout:w,reset:v,throwOnError:S,expectContinue:R},N){if(typeof s!=="string"){throw new a("path must be a string")}else if(s[0]!=="/"&&!(s.startsWith("http://")||s.startsWith("https://"))&&A!=="CONNECT"){throw new a("path must be an absolute URL or start with a slash")}else if(C.exec(s)!==null){throw new a("invalid request path")}if(typeof A!=="string"){throw new a("method must be a string")}else if(g.exec(A)===null){throw new a("invalid request method")}if(b&&typeof b!=="string"){throw new a("upgrade must be a string")}if(Q!=null&&(!Number.isFinite(Q)||Q<0)){throw new a("invalid headersTimeout")}if(w!=null&&(!Number.isFinite(w)||w<0)){throw new a("invalid bodyTimeout")}if(v!=null&&typeof v!=="boolean"){throw new a("invalid reset")}if(R!=null&&typeof R!=="boolean"){throw new a("invalid expectContinue")}this.headersTimeout=Q;this.bodyTimeout=w;this.throwOnError=S===true;this.method=A;this.abort=null;if(c==null){this.body=null}else if(p.isStream(c)){this.body=c;const r=this.body._readableState;if(!r||!r.autoDestroy){this.endHandler=function autoDestroy(){p.destroy(this)};this.body.on("end",this.endHandler)}this.errorHandler=r=>{if(this.abort){this.abort(r)}else{this.error=r}};this.body.on("error",this.errorHandler)}else if(p.isBuffer(c)){this.body=c.byteLength?c:null}else if(ArrayBuffer.isView(c)){this.body=c.buffer.byteLength?Buffer.from(c.buffer,c.byteOffset,c.byteLength):null}else if(c instanceof ArrayBuffer){this.body=c.byteLength?Buffer.from(c):null}else if(typeof c==="string"){this.body=c.length?Buffer.from(c):null}else if(p.isFormDataLike(c)||p.isIterable(c)||p.isBlobLike(c)){this.body=c}else{throw new a("body must be a string, a Buffer, a Readable stream, an iterable, or an async iterable")}this.completed=false;this.aborted=false;this.upgrade=b||null;this.path=d?p.buildURL(s,d):s;this.origin=r;this.idempotent=u==null?A==="HEAD"||A==="GET":u;this.blocking=h==null?false:h;this.reset=v==null?null:v;this.host=null;this.contentLength=null;this.contentType=null;this.headers="";this.expectContinue=R!=null?R:false;if(Array.isArray(l)){if(l.length%2!==0){throw new a("headers array must be even")}for(let r=0;r{r.exports={kClose:Symbol("close"),kDestroy:Symbol("destroy"),kDispatch:Symbol("dispatch"),kUrl:Symbol("url"),kWriting:Symbol("writing"),kResuming:Symbol("resuming"),kQueue:Symbol("queue"),kConnect:Symbol("connect"),kConnecting:Symbol("connecting"),kHeadersList:Symbol("headers list"),kKeepAliveDefaultTimeout:Symbol("default keep alive timeout"),kKeepAliveMaxTimeout:Symbol("max keep alive timeout"),kKeepAliveTimeoutThreshold:Symbol("keep alive timeout threshold"),kKeepAliveTimeoutValue:Symbol("keep alive timeout"),kKeepAlive:Symbol("keep alive"),kHeadersTimeout:Symbol("headers timeout"),kBodyTimeout:Symbol("body timeout"),kServerName:Symbol("server name"),kLocalAddress:Symbol("local address"),kHost:Symbol("host"),kNoRef:Symbol("no ref"),kBodyUsed:Symbol("used"),kRunning:Symbol("running"),kBlocking:Symbol("blocking"),kPending:Symbol("pending"),kSize:Symbol("size"),kBusy:Symbol("busy"),kQueued:Symbol("queued"),kFree:Symbol("free"),kConnected:Symbol("connected"),kClosed:Symbol("closed"),kNeedDrain:Symbol("need drain"),kReset:Symbol("reset"),kDestroyed:Symbol.for("nodejs.stream.destroyed"),kMaxHeadersSize:Symbol("max headers size"),kRunningIdx:Symbol("running index"),kPendingIdx:Symbol("pending index"),kError:Symbol("error"),kClients:Symbol("clients"),kClient:Symbol("client"),kParser:Symbol("parser"),kOnDestroyed:Symbol("destroy callbacks"),kPipelining:Symbol("pipelining"),kSocket:Symbol("socket"),kHostHeader:Symbol("host header"),kConnector:Symbol("connector"),kStrictContentLength:Symbol("strict content length"),kMaxRedirections:Symbol("maxRedirections"),kMaxRequests:Symbol("maxRequestsPerClient"),kProxy:Symbol("proxy agent options"),kCounter:Symbol("socket request counter"),kInterceptors:Symbol("dispatch interceptors"),kMaxResponseSize:Symbol("max response size"),kHTTP2Session:Symbol("http2Session"),kHTTP2SessionState:Symbol("http2Session state"),kHTTP2BuildRequest:Symbol("http2 build request"),kHTTP1BuildRequest:Symbol("http1 build request"),kHTTP2CopyHeaders:Symbol("http2 copy headers"),kHTTPConnVersion:Symbol("http connection version"),kRetryHandlerDefaultRetry:Symbol("retry agent default retry"),kConstruct:Symbol("constructable")}},83983:(r,s,i)=>{"use strict";const a=i(39491);const{kDestroyed:A,kBodyUsed:c}=i(72785);const{IncomingMessage:l}=i(13685);const d=i(12781);const u=i(41808);const{InvalidArgumentError:p}=i(48045);const{Blob:g}=i(14300);const h=i(73837);const{stringify:C}=i(63477);const{headerNameLowerCasedRecord:y}=i(14462);const[I,B]=process.versions.node.split(".").map((r=>Number(r)));function nop(){}function isStream(r){return r&&typeof r==="object"&&typeof r.pipe==="function"&&typeof r.on==="function"}function isBlobLike(r){return g&&r instanceof g||r&&typeof r==="object"&&(typeof r.stream==="function"||typeof r.arrayBuffer==="function")&&/^(Blob|File)$/.test(r[Symbol.toStringTag])}function buildURL(r,s){if(r.includes("?")||r.includes("#")){throw new Error('Query params cannot be passed when url already contains "?" or "#".')}const i=C(s);if(i){r+="?"+i}return r}function parseURL(r){if(typeof r==="string"){r=new URL(r);if(!/^https?:/.test(r.origin||r.protocol)){throw new p("Invalid URL protocol: the URL must start with `http:` or `https:`.")}return r}if(!r||typeof r!=="object"){throw new p("Invalid URL: The URL argument must be a non-null object.")}if(!/^https?:/.test(r.origin||r.protocol)){throw new p("Invalid URL protocol: the URL must start with `http:` or `https:`.")}if(!(r instanceof URL)){if(r.port!=null&&r.port!==""&&!Number.isFinite(parseInt(r.port))){throw new p("Invalid URL: port must be a valid integer or a string representation of an integer.")}if(r.path!=null&&typeof r.path!=="string"){throw new p("Invalid URL path: the path must be a string or null/undefined.")}if(r.pathname!=null&&typeof r.pathname!=="string"){throw new p("Invalid URL pathname: the pathname must be a string or null/undefined.")}if(r.hostname!=null&&typeof r.hostname!=="string"){throw new p("Invalid URL hostname: the hostname must be a string or null/undefined.")}if(r.origin!=null&&typeof r.origin!=="string"){throw new p("Invalid URL origin: the origin must be a string or null/undefined.")}const s=r.port!=null?r.port:r.protocol==="https:"?443:80;let i=r.origin!=null?r.origin:`${r.protocol}//${r.hostname}:${s}`;let a=r.path!=null?r.path:`${r.pathname||""}${r.search||""}`;if(i.endsWith("/")){i=i.substring(0,i.length-1)}if(a&&!a.startsWith("/")){a=`/${a}`}r=new URL(i+a)}return r}function parseOrigin(r){r=parseURL(r);if(r.pathname!=="/"||r.search||r.hash){throw new p("invalid url")}return r}function getHostname(r){if(r[0]==="["){const s=r.indexOf("]");a(s!==-1);return r.substring(1,s)}const s=r.indexOf(":");if(s===-1)return r;return r.substring(0,s)}function getServerName(r){if(!r){return null}a.strictEqual(typeof r,"string");const s=getHostname(r);if(u.isIP(s)){return""}return s}function deepClone(r){return JSON.parse(JSON.stringify(r))}function isAsyncIterable(r){return!!(r!=null&&typeof r[Symbol.asyncIterator]==="function")}function isIterable(r){return!!(r!=null&&(typeof r[Symbol.iterator]==="function"||typeof r[Symbol.asyncIterator]==="function"))}function bodyLength(r){if(r==null){return 0}else if(isStream(r)){const s=r._readableState;return s&&s.objectMode===false&&s.ended===true&&Number.isFinite(s.length)?s.length:null}else if(isBlobLike(r)){return r.size!=null?r.size:null}else if(isBuffer(r)){return r.byteLength}return null}function isDestroyed(r){return!r||!!(r.destroyed||r[A])}function isReadableAborted(r){const s=r&&r._readableState;return isDestroyed(r)&&s&&!s.endEmitted}function destroy(r,s){if(r==null||!isStream(r)||isDestroyed(r)){return}if(typeof r.destroy==="function"){if(Object.getPrototypeOf(r).constructor===l){r.socket=null}r.destroy(s)}else if(s){process.nextTick(((r,s)=>{r.emit("error",s)}),r,s)}if(r.destroyed!==true){r[A]=true}}const b=/timeout=(\d+)/;function parseKeepAliveTimeout(r){const s=r.toString().match(b);return s?parseInt(s[1],10)*1e3:null}function headerNameToString(r){return y[r]||r.toLowerCase()}function parseHeaders(r,s={}){if(!Array.isArray(r))return r;for(let i=0;ir.toString("utf8")))}else{s[a]=r[i+1].toString("utf8")}}else{if(!Array.isArray(A)){A=[A];s[a]=A}A.push(r[i+1].toString("utf8"))}}if("content-length"in s&&"content-disposition"in s){s["content-disposition"]=Buffer.from(s["content-disposition"]).toString("latin1")}return s}function parseRawHeaders(r){const s=[];let i=false;let a=-1;for(let A=0;A{r.close()}))}else{const s=Buffer.isBuffer(a)?a:Buffer.from(a);r.enqueue(new Uint8Array(s))}return r.desiredSize>0},async cancel(r){await s.return()}},0)}function isFormDataLike(r){return r&&typeof r==="object"&&typeof r.append==="function"&&typeof r.delete==="function"&&typeof r.get==="function"&&typeof r.getAll==="function"&&typeof r.has==="function"&&typeof r.set==="function"&&r[Symbol.toStringTag]==="FormData"}function throwIfAborted(r){if(!r){return}if(typeof r.throwIfAborted==="function"){r.throwIfAborted()}else{if(r.aborted){const r=new Error("The operation was aborted");r.name="AbortError";throw r}}}function addAbortListener(r,s){if("addEventListener"in r){r.addEventListener("abort",s,{once:true});return()=>r.removeEventListener("abort",s)}r.addListener("abort",s);return()=>r.removeListener("abort",s)}const w=!!String.prototype.toWellFormed;function toUSVString(r){if(w){return`${r}`.toWellFormed()}else if(h.toUSVString){return h.toUSVString(r)}return`${r}`}function parseRangeHeader(r){if(r==null||r==="")return{start:0,end:null,size:null};const s=r?r.match(/^bytes (\d+)-(\d+)\/(\d+)?$/):null;return s?{start:parseInt(s[1]),end:s[2]?parseInt(s[2]):null,size:s[3]?parseInt(s[3]):null}:null}const v=Object.create(null);v.enumerable=true;r.exports={kEnumerableProperty:v,nop:nop,isDisturbed:isDisturbed,isErrored:isErrored,isReadable:isReadable,toUSVString:toUSVString,isReadableAborted:isReadableAborted,isBlobLike:isBlobLike,parseOrigin:parseOrigin,parseURL:parseURL,getServerName:getServerName,isStream:isStream,isIterable:isIterable,isAsyncIterable:isAsyncIterable,isDestroyed:isDestroyed,headerNameToString:headerNameToString,parseRawHeaders:parseRawHeaders,parseHeaders:parseHeaders,parseKeepAliveTimeout:parseKeepAliveTimeout,destroy:destroy,bodyLength:bodyLength,deepClone:deepClone,ReadableStreamFrom:ReadableStreamFrom,isBuffer:isBuffer,validateHandler:validateHandler,getSocketInfo:getSocketInfo,isFormDataLike:isFormDataLike,buildURL:buildURL,throwIfAborted:throwIfAborted,addAbortListener:addAbortListener,parseRangeHeader:parseRangeHeader,nodeMajor:I,nodeMinor:B,nodeHasAutoSelectFamily:I>18||I===18&&B>=13,safeHTTPMethods:["GET","HEAD","OPTIONS","TRACE"]}},74839:(r,s,i)=>{"use strict";const a=i(60412);const{ClientDestroyedError:A,ClientClosedError:c,InvalidArgumentError:l}=i(48045);const{kDestroy:d,kClose:u,kDispatch:p,kInterceptors:g}=i(72785);const h=Symbol("destroyed");const C=Symbol("closed");const y=Symbol("onDestroyed");const I=Symbol("onClosed");const B=Symbol("Intercepted Dispatch");class DispatcherBase extends a{constructor(){super();this[h]=false;this[y]=null;this[C]=false;this[I]=[]}get destroyed(){return this[h]}get closed(){return this[C]}get interceptors(){return this[g]}set interceptors(r){if(r){for(let s=r.length-1;s>=0;s--){const r=this[g][s];if(typeof r!=="function"){throw new l("interceptor must be an function")}}}this[g]=r}close(r){if(r===undefined){return new Promise(((r,s)=>{this.close(((i,a)=>i?s(i):r(a)))}))}if(typeof r!=="function"){throw new l("invalid callback")}if(this[h]){queueMicrotask((()=>r(new A,null)));return}if(this[C]){if(this[I]){this[I].push(r)}else{queueMicrotask((()=>r(null,null)))}return}this[C]=true;this[I].push(r);const onClosed=()=>{const r=this[I];this[I]=null;for(let s=0;sthis.destroy())).then((()=>{queueMicrotask(onClosed)}))}destroy(r,s){if(typeof r==="function"){s=r;r=null}if(s===undefined){return new Promise(((s,i)=>{this.destroy(r,((r,a)=>r?i(r):s(a)))}))}if(typeof s!=="function"){throw new l("invalid callback")}if(this[h]){if(this[y]){this[y].push(s)}else{queueMicrotask((()=>s(null,null)))}return}if(!r){r=new A}this[h]=true;this[y]=this[y]||[];this[y].push(s);const onDestroyed=()=>{const r=this[y];this[y]=null;for(let s=0;s{queueMicrotask(onDestroyed)}))}[B](r,s){if(!this[g]||this[g].length===0){this[B]=this[p];return this[p](r,s)}let i=this[p].bind(this);for(let r=this[g].length-1;r>=0;r--){i=this[g][r](i)}this[B]=i;return i(r,s)}dispatch(r,s){if(!s||typeof s!=="object"){throw new l("handler must be an object")}try{if(!r||typeof r!=="object"){throw new l("opts must be an object.")}if(this[h]||this[y]){throw new A}if(this[C]){throw new c}return this[B](r,s)}catch(r){if(typeof s.onError!=="function"){throw new l("invalid onError method")}s.onError(r);return false}}}r.exports=DispatcherBase},60412:(r,s,i)=>{"use strict";const a=i(82361);class Dispatcher extends a{dispatch(){throw new Error("not implemented")}close(){throw new Error("not implemented")}destroy(){throw new Error("not implemented")}}r.exports=Dispatcher},41472:(r,s,i)=>{"use strict";const a=i(33438);const A=i(83983);const{ReadableStreamFrom:c,isBlobLike:l,isReadableStreamLike:d,readableStreamClose:u,createDeferredPromise:p,fullyReadBody:g}=i(52538);const{FormData:h}=i(72015);const{kState:C}=i(15861);const{webidl:y}=i(21744);const{DOMException:I,structuredClone:B}=i(41037);const{Blob:b,File:Q}=i(14300);const{kBodyUsed:w}=i(72785);const v=i(39491);const{isErrored:S}=i(83983);const{isUint8Array:R,isArrayBuffer:N}=i(29830);const{File:x}=i(78511);const{parseMIMEType:D,serializeAMimeType:k}=i(685);let T=globalThis.ReadableStream;const _=Q??x;const P=new TextEncoder;const O=new TextDecoder;function extractBody(r,s=false){if(!T){T=i(35356).ReadableStream}let a=null;if(r instanceof T){a=r}else if(l(r)){a=r.stream()}else{a=new T({async pull(r){r.enqueue(typeof g==="string"?P.encode(g):g);queueMicrotask((()=>u(r)))},start(){},type:undefined})}v(d(a));let p=null;let g=null;let h=null;let C=null;if(typeof r==="string"){g=r;C="text/plain;charset=UTF-8"}else if(r instanceof URLSearchParams){g=r.toString();C="application/x-www-form-urlencoded;charset=UTF-8"}else if(N(r)){g=new Uint8Array(r.slice())}else if(ArrayBuffer.isView(r)){g=new Uint8Array(r.buffer.slice(r.byteOffset,r.byteOffset+r.byteLength))}else if(A.isFormDataLike(r)){const s=`----formdata-undici-0${`${Math.floor(Math.random()*1e11)}`.padStart(11,"0")}`;const i=`--${s}\r\nContent-Disposition: form-data` +/*! formdata-polyfill. MIT License. Jimmy Wärting */;const escape=r=>r.replace(/\n/g,"%0A").replace(/\r/g,"%0D").replace(/"/g,"%22");const normalizeLinefeeds=r=>r.replace(/\r?\n|\r/g,"\r\n");const a=[];const A=new Uint8Array([13,10]);h=0;let c=false;for(const[s,l]of r){if(typeof l==="string"){const r=P.encode(i+`; name="${escape(normalizeLinefeeds(s))}"`+`\r\n\r\n${normalizeLinefeeds(l)}\r\n`);a.push(r);h+=r.byteLength}else{const r=P.encode(`${i}; name="${escape(normalizeLinefeeds(s))}"`+(l.name?`; filename="${escape(l.name)}"`:"")+"\r\n"+`Content-Type: ${l.type||"application/octet-stream"}\r\n\r\n`);a.push(r,l,A);if(typeof l.size==="number"){h+=r.byteLength+l.size+A.byteLength}else{c=true}}}const l=P.encode(`--${s}--`);a.push(l);h+=l.byteLength;if(c){h=null}g=r;p=async function*(){for(const r of a){if(r.stream){yield*r.stream()}else{yield r}}};C="multipart/form-data; boundary="+s}else if(l(r)){g=r;h=r.size;if(r.type){C=r.type}}else if(typeof r[Symbol.asyncIterator]==="function"){if(s){throw new TypeError("keepalive")}if(A.isDisturbed(r)||r.locked){throw new TypeError("Response body object should not be disturbed or locked")}a=r instanceof T?r:c(r)}if(typeof g==="string"||A.isBuffer(g)){h=Buffer.byteLength(g)}if(p!=null){let s;a=new T({async start(){s=p(r)[Symbol.asyncIterator]()},async pull(r){const{value:i,done:A}=await s.next();if(A){queueMicrotask((()=>{r.close()}))}else{if(!S(a)){r.enqueue(new Uint8Array(i))}}return r.desiredSize>0},async cancel(r){await s.return()},type:undefined})}const y={stream:a,source:g,length:h};return[y,C]}function safelyExtractBody(r,s=false){if(!T){T=i(35356).ReadableStream}if(r instanceof T){v(!A.isDisturbed(r),"The body has already been consumed.");v(!r.locked,"The stream is locked.")}return extractBody(r,s)}function cloneBody(r){const[s,i]=r.stream.tee();const a=B(i,{transfer:[i]});const[,A]=a.tee();r.stream=s;return{stream:A,length:r.length,source:r.source}}async function*consumeBody(r){if(r){if(R(r)){yield r}else{const s=r.stream;if(A.isDisturbed(s)){throw new TypeError("The body has already been consumed.")}if(s.locked){throw new TypeError("The stream is locked.")}s[w]=true;yield*s}}}function throwIfAborted(r){if(r.aborted){throw new I("The operation was aborted.","AbortError")}}function bodyMixinMethods(r){const s={blob(){return specConsumeBody(this,(r=>{let s=bodyMimeType(this);if(s==="failure"){s=""}else if(s){s=k(s)}return new b([r],{type:s})}),r)},arrayBuffer(){return specConsumeBody(this,(r=>new Uint8Array(r).buffer),r)},text(){return specConsumeBody(this,utf8DecodeBytes,r)},json(){return specConsumeBody(this,parseJSONFromBytes,r)},async formData(){y.brandCheck(this,r);throwIfAborted(this[C]);const s=this.headers.get("Content-Type");if(/multipart\/form-data/.test(s)){const r={};for(const[s,i]of this.headers)r[s.toLowerCase()]=i;const s=new h;let i;try{i=new a({headers:r,preservePath:true})}catch(r){throw new I(`${r}`,"AbortError")}i.on("field",((r,i)=>{s.append(r,i)}));i.on("file",((r,i,a,A,c)=>{const l=[];if(A==="base64"||A.toLowerCase()==="base64"){let A="";i.on("data",(r=>{A+=r.toString().replace(/[\r\n]/gm,"");const s=A.length-A.length%4;l.push(Buffer.from(A.slice(0,s),"base64"));A=A.slice(s)}));i.on("end",(()=>{l.push(Buffer.from(A,"base64"));s.append(r,new _(l,a,{type:c}))}))}else{i.on("data",(r=>{l.push(r)}));i.on("end",(()=>{s.append(r,new _(l,a,{type:c}))}))}}));const A=new Promise(((r,s)=>{i.on("finish",r);i.on("error",(r=>s(new TypeError(r))))}));if(this.body!==null)for await(const r of consumeBody(this[C].body))i.write(r);i.end();await A;return s}else if(/application\/x-www-form-urlencoded/.test(s)){let r;try{let s="";const i=new TextDecoder("utf-8",{ignoreBOM:true});for await(const r of consumeBody(this[C].body)){if(!R(r)){throw new TypeError("Expected Uint8Array chunk")}s+=i.decode(r,{stream:true})}s+=i.decode();r=new URLSearchParams(s)}catch(r){throw Object.assign(new TypeError,{cause:r})}const s=new h;for(const[i,a]of r){s.append(i,a)}return s}else{await Promise.resolve();throwIfAborted(this[C]);throw y.errors.exception({header:`${r.name}.formData`,message:"Could not parse content as FormData."})}}};return s}function mixinBody(r){Object.assign(r.prototype,bodyMixinMethods(r))}async function specConsumeBody(r,s,i){y.brandCheck(r,i);throwIfAborted(r[C]);if(bodyUnusable(r[C].body)){throw new TypeError("Body is unusable")}const a=p();const errorSteps=r=>a.reject(r);const successSteps=r=>{try{a.resolve(s(r))}catch(r){errorSteps(r)}};if(r[C].body==null){successSteps(new Uint8Array);return a.promise}await g(r[C].body,successSteps,errorSteps);return a.promise}function bodyUnusable(r){return r!=null&&(r.stream.locked||A.isDisturbed(r.stream))}function utf8DecodeBytes(r){if(r.length===0){return""}if(r[0]===239&&r[1]===187&&r[2]===191){r=r.subarray(3)}const s=O.decode(r);return s}function parseJSONFromBytes(r){return JSON.parse(utf8DecodeBytes(r))}function bodyMimeType(r){const{headersList:s}=r[C];const i=s.get("content-type");if(i===null){return"failure"}return D(i)}r.exports={extractBody:extractBody,safelyExtractBody:safelyExtractBody,cloneBody:cloneBody,mixinBody:mixinBody}},41037:(r,s,i)=>{"use strict";const{MessageChannel:a,receiveMessageOnPort:A}=i(71267);const c=["GET","HEAD","POST"];const l=new Set(c);const d=[101,204,205,304];const u=[301,302,303,307,308];const p=new Set(u);const g=["1","7","9","11","13","15","17","19","20","21","22","23","25","37","42","43","53","69","77","79","87","95","101","102","103","104","109","110","111","113","115","117","119","123","135","137","139","143","161","179","389","427","465","512","513","514","515","526","530","531","532","540","548","554","556","563","587","601","636","989","990","993","995","1719","1720","1723","2049","3659","4045","5060","5061","6000","6566","6665","6666","6667","6668","6669","6697","10080"];const h=new Set(g);const C=["","no-referrer","no-referrer-when-downgrade","same-origin","origin","strict-origin","origin-when-cross-origin","strict-origin-when-cross-origin","unsafe-url"];const y=new Set(C);const I=["follow","manual","error"];const B=["GET","HEAD","OPTIONS","TRACE"];const b=new Set(B);const Q=["navigate","same-origin","no-cors","cors"];const w=["omit","same-origin","include"];const v=["default","no-store","reload","no-cache","force-cache","only-if-cached"];const S=["content-encoding","content-language","content-location","content-type","content-length"];const R=["half"];const N=["CONNECT","TRACE","TRACK"];const x=new Set(N);const D=["audio","audioworklet","font","image","manifest","paintworklet","script","style","track","video","xslt",""];const k=new Set(D);const T=globalThis.DOMException??(()=>{try{atob("~")}catch(r){return Object.getPrototypeOf(r).constructor}})();let _;const P=globalThis.structuredClone??function structuredClone(r,s=undefined){if(arguments.length===0){throw new TypeError("missing argument")}if(!_){_=new a}_.port1.unref();_.port2.unref();_.port1.postMessage(r,s?.transfer);return A(_.port2).message};r.exports={DOMException:T,structuredClone:P,subresource:D,forbiddenMethods:N,requestBodyHeader:S,referrerPolicy:C,requestRedirect:I,requestMode:Q,requestCredentials:w,requestCache:v,redirectStatus:u,corsSafeListedMethods:c,nullBodyStatus:d,safeMethods:B,badPorts:g,requestDuplex:R,subresourceSet:k,badPortsSet:h,redirectStatusSet:p,corsSafeListedMethodsSet:l,safeMethodsSet:b,forbiddenMethodsSet:x,referrerPolicySet:y}},685:(r,s,i)=>{const a=i(39491);const{atob:A}=i(14300);const{isomorphicDecode:c}=i(52538);const l=new TextEncoder;const d=/^[!#$%&'*+-.^_|~A-Za-z0-9]+$/;const u=/(\u000A|\u000D|\u0009|\u0020)/;const p=/[\u0009|\u0020-\u007E|\u0080-\u00FF]/;function dataURLProcessor(r){a(r.protocol==="data:");let s=URLSerializer(r,true);s=s.slice(5);const i={position:0};let A=collectASequenceOfCodePointsFast(",",s,i);const l=A.length;A=removeASCIIWhitespace(A,true,true);if(i.position>=s.length){return"failure"}i.position++;const d=s.slice(l+1);let u=stringPercentDecode(d);if(/;(\u0020){0,}base64$/i.test(A)){const r=c(u);u=forgivingBase64(r);if(u==="failure"){return"failure"}A=A.slice(0,-6);A=A.replace(/(\u0020)+$/,"");A=A.slice(0,-1)}if(A.startsWith(";")){A="text/plain"+A}let p=parseMIMEType(A);if(p==="failure"){p=parseMIMEType("text/plain;charset=US-ASCII")}return{mimeType:p,body:u}}function URLSerializer(r,s=false){if(!s){return r.href}const i=r.href;const a=r.hash.length;return a===0?i:i.substring(0,i.length-a)}function collectASequenceOfCodePoints(r,s,i){let a="";while(i.positionr.length){return"failure"}s.position++;let a=collectASequenceOfCodePointsFast(";",r,s);a=removeHTTPWhitespace(a,false,true);if(a.length===0||!d.test(a)){return"failure"}const A=i.toLowerCase();const c=a.toLowerCase();const l={type:A,subtype:c,parameters:new Map,essence:`${A}/${c}`};while(s.positionu.test(r)),r,s);let i=collectASequenceOfCodePoints((r=>r!==";"&&r!=="="),r,s);i=i.toLowerCase();if(s.positionr.length){break}let a=null;if(r[s.position]==='"'){a=collectAnHTTPQuotedString(r,s,true);collectASequenceOfCodePointsFast(";",r,s)}else{a=collectASequenceOfCodePointsFast(";",r,s);a=removeHTTPWhitespace(a,false,true);if(a.length===0){continue}}if(i.length!==0&&d.test(i)&&(a.length===0||p.test(a))&&!l.parameters.has(i)){l.parameters.set(i,a)}}return l}function forgivingBase64(r){r=r.replace(/[\u0009\u000A\u000C\u000D\u0020]/g,"");if(r.length%4===0){r=r.replace(/=?=$/,"")}if(r.length%4===1){return"failure"}if(/[^+/0-9A-Za-z]/.test(r)){return"failure"}const s=A(r);const i=new Uint8Array(s.length);for(let r=0;rr!=='"'&&r!=="\\"),r,s);if(s.position>=r.length){break}const i=r[s.position];s.position++;if(i==="\\"){if(s.position>=r.length){c+="\\";break}c+=r[s.position];s.position++}else{a(i==='"');break}}if(i){return c}return r.slice(A,s.position)}function serializeAMimeType(r){a(r!=="failure");const{parameters:s,essence:i}=r;let A=i;for(let[r,i]of s.entries()){A+=";";A+=r;A+="=";if(!d.test(i)){i=i.replace(/(\\|")/g,"\\$1");i='"'+i;i+='"'}A+=i}return A}function isHTTPWhiteSpace(r){return r==="\r"||r==="\n"||r==="\t"||r===" "}function removeHTTPWhitespace(r,s=true,i=true){let a=0;let A=r.length-1;if(s){for(;a0&&isHTTPWhiteSpace(r[A]);A--);}return r.slice(a,A+1)}function isASCIIWhitespace(r){return r==="\r"||r==="\n"||r==="\t"||r==="\f"||r===" "}function removeASCIIWhitespace(r,s=true,i=true){let a=0;let A=r.length-1;if(s){for(;a0&&isASCIIWhitespace(r[A]);A--);}return r.slice(a,A+1)}r.exports={dataURLProcessor:dataURLProcessor,URLSerializer:URLSerializer,collectASequenceOfCodePoints:collectASequenceOfCodePoints,collectASequenceOfCodePointsFast:collectASequenceOfCodePointsFast,stringPercentDecode:stringPercentDecode,parseMIMEType:parseMIMEType,collectAnHTTPQuotedString:collectAnHTTPQuotedString,serializeAMimeType:serializeAMimeType}},78511:(r,s,i)=>{"use strict";const{Blob:a,File:A}=i(14300);const{types:c}=i(73837);const{kState:l}=i(15861);const{isBlobLike:d}=i(52538);const{webidl:u}=i(21744);const{parseMIMEType:p,serializeAMimeType:g}=i(685);const{kEnumerableProperty:h}=i(83983);const C=new TextEncoder;class File extends a{constructor(r,s,i={}){u.argumentLengthCheck(arguments,2,{header:"File constructor"});r=u.converters["sequence"](r);s=u.converters.USVString(s);i=u.converters.FilePropertyBag(i);const a=s;let A=i.type;let c;e:{if(A){A=p(A);if(A==="failure"){A="";break e}A=g(A).toLowerCase()}c=i.lastModified}super(processBlobParts(r,i),{type:A});this[l]={name:a,lastModified:c,type:A}}get name(){u.brandCheck(this,File);return this[l].name}get lastModified(){u.brandCheck(this,File);return this[l].lastModified}get type(){u.brandCheck(this,File);return this[l].type}}class FileLike{constructor(r,s,i={}){const a=s;const A=i.type;const c=i.lastModified??Date.now();this[l]={blobLike:r,name:a,type:A,lastModified:c}}stream(...r){u.brandCheck(this,FileLike);return this[l].blobLike.stream(...r)}arrayBuffer(...r){u.brandCheck(this,FileLike);return this[l].blobLike.arrayBuffer(...r)}slice(...r){u.brandCheck(this,FileLike);return this[l].blobLike.slice(...r)}text(...r){u.brandCheck(this,FileLike);return this[l].blobLike.text(...r)}get size(){u.brandCheck(this,FileLike);return this[l].blobLike.size}get type(){u.brandCheck(this,FileLike);return this[l].blobLike.type}get name(){u.brandCheck(this,FileLike);return this[l].name}get lastModified(){u.brandCheck(this,FileLike);return this[l].lastModified}get[Symbol.toStringTag](){return"File"}}Object.defineProperties(File.prototype,{[Symbol.toStringTag]:{value:"File",configurable:true},name:h,lastModified:h});u.converters.Blob=u.interfaceConverter(a);u.converters.BlobPart=function(r,s){if(u.util.Type(r)==="Object"){if(d(r)){return u.converters.Blob(r,{strict:false})}if(ArrayBuffer.isView(r)||c.isAnyArrayBuffer(r)){return u.converters.BufferSource(r,s)}}return u.converters.USVString(r,s)};u.converters["sequence"]=u.sequenceConverter(u.converters.BlobPart);u.converters.FilePropertyBag=u.dictionaryConverter([{key:"lastModified",converter:u.converters["long long"],get defaultValue(){return Date.now()}},{key:"type",converter:u.converters.DOMString,defaultValue:""},{key:"endings",converter:r=>{r=u.converters.DOMString(r);r=r.toLowerCase();if(r!=="native"){r="transparent"}return r},defaultValue:"transparent"}]);function processBlobParts(r,s){const i=[];for(const a of r){if(typeof a==="string"){let r=a;if(s.endings==="native"){r=convertLineEndingsNative(r)}i.push(C.encode(r))}else if(c.isAnyArrayBuffer(a)||c.isTypedArray(a)){if(!a.buffer){i.push(new Uint8Array(a))}else{i.push(new Uint8Array(a.buffer,a.byteOffset,a.byteLength))}}else if(d(a)){i.push(a)}}return i}function convertLineEndingsNative(r){let s="\n";if(process.platform==="win32"){s="\r\n"}return r.replace(/\r?\n/g,s)}function isFileLike(r){return A&&r instanceof A||r instanceof File||r&&(typeof r.stream==="function"||typeof r.arrayBuffer==="function")&&r[Symbol.toStringTag]==="File"}r.exports={File:File,FileLike:FileLike,isFileLike:isFileLike}},72015:(r,s,i)=>{"use strict";const{isBlobLike:a,toUSVString:A,makeIterator:c}=i(52538);const{kState:l}=i(15861);const{File:d,FileLike:u,isFileLike:p}=i(78511);const{webidl:g}=i(21744);const{Blob:h,File:C}=i(14300);const y=C??d;class FormData{constructor(r){if(r!==undefined){throw g.errors.conversionFailed({prefix:"FormData constructor",argument:"Argument 1",types:["undefined"]})}this[l]=[]}append(r,s,i=undefined){g.brandCheck(this,FormData);g.argumentLengthCheck(arguments,2,{header:"FormData.append"});if(arguments.length===3&&!a(s)){throw new TypeError("Failed to execute 'append' on 'FormData': parameter 2 is not of type 'Blob'")}r=g.converters.USVString(r);s=a(s)?g.converters.Blob(s,{strict:false}):g.converters.USVString(s);i=arguments.length===3?g.converters.USVString(i):undefined;const A=makeEntry(r,s,i);this[l].push(A)}delete(r){g.brandCheck(this,FormData);g.argumentLengthCheck(arguments,1,{header:"FormData.delete"});r=g.converters.USVString(r);this[l]=this[l].filter((s=>s.name!==r))}get(r){g.brandCheck(this,FormData);g.argumentLengthCheck(arguments,1,{header:"FormData.get"});r=g.converters.USVString(r);const s=this[l].findIndex((s=>s.name===r));if(s===-1){return null}return this[l][s].value}getAll(r){g.brandCheck(this,FormData);g.argumentLengthCheck(arguments,1,{header:"FormData.getAll"});r=g.converters.USVString(r);return this[l].filter((s=>s.name===r)).map((r=>r.value))}has(r){g.brandCheck(this,FormData);g.argumentLengthCheck(arguments,1,{header:"FormData.has"});r=g.converters.USVString(r);return this[l].findIndex((s=>s.name===r))!==-1}set(r,s,i=undefined){g.brandCheck(this,FormData);g.argumentLengthCheck(arguments,2,{header:"FormData.set"});if(arguments.length===3&&!a(s)){throw new TypeError("Failed to execute 'set' on 'FormData': parameter 2 is not of type 'Blob'")}r=g.converters.USVString(r);s=a(s)?g.converters.Blob(s,{strict:false}):g.converters.USVString(s);i=arguments.length===3?A(i):undefined;const c=makeEntry(r,s,i);const d=this[l].findIndex((s=>s.name===r));if(d!==-1){this[l]=[...this[l].slice(0,d),c,...this[l].slice(d+1).filter((s=>s.name!==r))]}else{this[l].push(c)}}entries(){g.brandCheck(this,FormData);return c((()=>this[l].map((r=>[r.name,r.value]))),"FormData","key+value")}keys(){g.brandCheck(this,FormData);return c((()=>this[l].map((r=>[r.name,r.value]))),"FormData","key")}values(){g.brandCheck(this,FormData);return c((()=>this[l].map((r=>[r.name,r.value]))),"FormData","value")}forEach(r,s=globalThis){g.brandCheck(this,FormData);g.argumentLengthCheck(arguments,1,{header:"FormData.forEach"});if(typeof r!=="function"){throw new TypeError("Failed to execute 'forEach' on 'FormData': parameter 1 is not of type 'Function'.")}for(const[i,a]of this){r.apply(s,[a,i,this])}}}FormData.prototype[Symbol.iterator]=FormData.prototype.entries;Object.defineProperties(FormData.prototype,{[Symbol.toStringTag]:{value:"FormData",configurable:true}});function makeEntry(r,s,i){r=Buffer.from(r).toString("utf8");if(typeof s==="string"){s=Buffer.from(s).toString("utf8")}else{if(!p(s)){s=s instanceof h?new y([s],"blob",{type:s.type}):new u(s,"blob",{type:s.type})}if(i!==undefined){const r={type:s.type,lastModified:s.lastModified};s=C&&s instanceof C||s instanceof d?new y([s],i,r):new u(s,i,r)}}return{name:r,value:s}}r.exports={FormData:FormData}},71246:r=>{"use strict";const s=Symbol.for("undici.globalOrigin.1");function getGlobalOrigin(){return globalThis[s]}function setGlobalOrigin(r){if(r===undefined){Object.defineProperty(globalThis,s,{value:undefined,writable:true,enumerable:false,configurable:false});return}const i=new URL(r);if(i.protocol!=="http:"&&i.protocol!=="https:"){throw new TypeError(`Only http & https urls are allowed, received ${i.protocol}`)}Object.defineProperty(globalThis,s,{value:i,writable:true,enumerable:false,configurable:false})}r.exports={getGlobalOrigin:getGlobalOrigin,setGlobalOrigin:setGlobalOrigin}},10554:(r,s,i)=>{"use strict";const{kHeadersList:a,kConstruct:A}=i(72785);const{kGuard:c}=i(15861);const{kEnumerableProperty:l}=i(83983);const{makeIterator:d,isValidHeaderName:u,isValidHeaderValue:p}=i(52538);const{webidl:g}=i(21744);const h=i(39491);const C=Symbol("headers map");const y=Symbol("headers map sorted");function isHTTPWhiteSpaceCharCode(r){return r===10||r===13||r===9||r===32}function headerValueNormalize(r){let s=0;let i=r.length;while(i>s&&isHTTPWhiteSpaceCharCode(r.charCodeAt(i-1)))--i;while(i>s&&isHTTPWhiteSpaceCharCode(r.charCodeAt(s)))++s;return s===0&&i===r.length?r:r.substring(s,i)}function fill(r,s){if(Array.isArray(s)){for(let i=0;i>","record"]})}}function appendHeader(r,s,i){i=headerValueNormalize(i);if(!u(s)){throw g.errors.invalidArgument({prefix:"Headers.append",value:s,type:"header name"})}else if(!p(i)){throw g.errors.invalidArgument({prefix:"Headers.append",value:i,type:"header value"})}if(r[c]==="immutable"){throw new TypeError("immutable")}else if(r[c]==="request-no-cors"){}return r[a].append(s,i)}class HeadersList{cookies=null;constructor(r){if(r instanceof HeadersList){this[C]=new Map(r[C]);this[y]=r[y];this.cookies=r.cookies===null?null:[...r.cookies]}else{this[C]=new Map(r);this[y]=null}}contains(r){r=r.toLowerCase();return this[C].has(r)}clear(){this[C].clear();this[y]=null;this.cookies=null}append(r,s){this[y]=null;const i=r.toLowerCase();const a=this[C].get(i);if(a){const r=i==="cookie"?"; ":", ";this[C].set(i,{name:a.name,value:`${a.value}${r}${s}`})}else{this[C].set(i,{name:r,value:s})}if(i==="set-cookie"){this.cookies??=[];this.cookies.push(s)}}set(r,s){this[y]=null;const i=r.toLowerCase();if(i==="set-cookie"){this.cookies=[s]}this[C].set(i,{name:r,value:s})}delete(r){this[y]=null;r=r.toLowerCase();if(r==="set-cookie"){this.cookies=null}this[C].delete(r)}get(r){const s=this[C].get(r.toLowerCase());return s===undefined?null:s.value}*[Symbol.iterator](){for(const[r,{value:s}]of this[C]){yield[r,s]}}get entries(){const r={};if(this[C].size){for(const{name:s,value:i}of this[C].values()){r[s]=i}}return r}}class Headers{constructor(r=undefined){if(r===A){return}this[a]=new HeadersList;this[c]="none";if(r!==undefined){r=g.converters.HeadersInit(r);fill(this,r)}}append(r,s){g.brandCheck(this,Headers);g.argumentLengthCheck(arguments,2,{header:"Headers.append"});r=g.converters.ByteString(r);s=g.converters.ByteString(s);return appendHeader(this,r,s)}delete(r){g.brandCheck(this,Headers);g.argumentLengthCheck(arguments,1,{header:"Headers.delete"});r=g.converters.ByteString(r);if(!u(r)){throw g.errors.invalidArgument({prefix:"Headers.delete",value:r,type:"header name"})}if(this[c]==="immutable"){throw new TypeError("immutable")}else if(this[c]==="request-no-cors"){}if(!this[a].contains(r)){return}this[a].delete(r)}get(r){g.brandCheck(this,Headers);g.argumentLengthCheck(arguments,1,{header:"Headers.get"});r=g.converters.ByteString(r);if(!u(r)){throw g.errors.invalidArgument({prefix:"Headers.get",value:r,type:"header name"})}return this[a].get(r)}has(r){g.brandCheck(this,Headers);g.argumentLengthCheck(arguments,1,{header:"Headers.has"});r=g.converters.ByteString(r);if(!u(r)){throw g.errors.invalidArgument({prefix:"Headers.has",value:r,type:"header name"})}return this[a].contains(r)}set(r,s){g.brandCheck(this,Headers);g.argumentLengthCheck(arguments,2,{header:"Headers.set"});r=g.converters.ByteString(r);s=g.converters.ByteString(s);s=headerValueNormalize(s);if(!u(r)){throw g.errors.invalidArgument({prefix:"Headers.set",value:r,type:"header name"})}else if(!p(s)){throw g.errors.invalidArgument({prefix:"Headers.set",value:s,type:"header value"})}if(this[c]==="immutable"){throw new TypeError("immutable")}else if(this[c]==="request-no-cors"){}this[a].set(r,s)}getSetCookie(){g.brandCheck(this,Headers);const r=this[a].cookies;if(r){return[...r]}return[]}get[y](){if(this[a][y]){return this[a][y]}const r=[];const s=[...this[a]].sort(((r,s)=>r[0]r),"Headers","key")}return d((()=>[...this[y].values()]),"Headers","key")}values(){g.brandCheck(this,Headers);if(this[c]==="immutable"){const r=this[y];return d((()=>r),"Headers","value")}return d((()=>[...this[y].values()]),"Headers","value")}entries(){g.brandCheck(this,Headers);if(this[c]==="immutable"){const r=this[y];return d((()=>r),"Headers","key+value")}return d((()=>[...this[y].values()]),"Headers","key+value")}forEach(r,s=globalThis){g.brandCheck(this,Headers);g.argumentLengthCheck(arguments,1,{header:"Headers.forEach"});if(typeof r!=="function"){throw new TypeError("Failed to execute 'forEach' on 'Headers': parameter 1 is not of type 'Function'.")}for(const[i,a]of this){r.apply(s,[a,i,this])}}[Symbol.for("nodejs.util.inspect.custom")](){g.brandCheck(this,Headers);return this[a]}}Headers.prototype[Symbol.iterator]=Headers.prototype.entries;Object.defineProperties(Headers.prototype,{append:l,delete:l,get:l,has:l,set:l,getSetCookie:l,keys:l,values:l,entries:l,forEach:l,[Symbol.iterator]:{enumerable:false},[Symbol.toStringTag]:{value:"Headers",configurable:true}});g.converters.HeadersInit=function(r){if(g.util.Type(r)==="Object"){if(r[Symbol.iterator]){return g.converters["sequence>"](r)}return g.converters["record"](r)}throw g.errors.conversionFailed({prefix:"Headers constructor",argument:"Argument 1",types:["sequence>","record"]})};r.exports={fill:fill,Headers:Headers,HeadersList:HeadersList}},74881:(r,s,i)=>{"use strict";const{Response:a,makeNetworkError:A,makeAppropriateNetworkError:c,filterResponse:l,makeResponse:d}=i(27823);const{Headers:u}=i(10554);const{Request:p,makeRequest:g}=i(48359);const h=i(59796);const{bytesMatch:C,makePolicyContainer:y,clonePolicyContainer:I,requestBadPort:B,TAOCheck:b,appendRequestOriginHeader:Q,responseLocationURL:w,requestCurrentURL:v,setRequestReferrerPolicyOnRedirect:S,tryUpgradeRequestToAPotentiallyTrustworthyURL:R,createOpaqueTimingInfo:N,appendFetchMetadata:x,corsCheck:D,crossOriginResourcePolicyCheck:k,determineRequestsReferrer:T,coarsenedSharedCurrentTime:_,createDeferredPromise:P,isBlobLike:O,sameOrigin:L,isCancelled:M,isAborted:U,isErrorLike:H,fullyReadBody:G,readableStreamClose:q,isomorphicEncode:V,urlIsLocal:j,urlIsHttpHttpsScheme:z,urlHasHttpsScheme:Y}=i(52538);const{kState:J,kHeaders:W,kGuard:X,kRealm:$}=i(15861);const K=i(39491);const{safelyExtractBody:Z}=i(41472);const{redirectStatusSet:ee,nullBodyStatus:te,safeMethodsSet:re,requestBodyHeader:ne,subresourceSet:se,DOMException:ie}=i(41037);const{kHeadersList:oe}=i(72785);const ae=i(82361);const{Readable:Ae,pipeline:ce}=i(12781);const{addAbortListener:le,isErrored:de,isReadable:ue,nodeMajor:pe,nodeMinor:ge}=i(83983);const{dataURLProcessor:he,serializeAMimeType:me}=i(685);const{TransformStream:fe}=i(35356);const{getGlobalDispatcher:Ee}=i(21892);const{webidl:Ce}=i(21744);const{STATUS_CODES:ye}=i(13685);const Ie=["GET","HEAD"];let Be;let be=globalThis.ReadableStream;class Fetch extends ae{constructor(r){super();this.dispatcher=r;this.connection=null;this.dump=false;this.state="ongoing";this.setMaxListeners(21)}terminate(r){if(this.state!=="ongoing"){return}this.state="terminated";this.connection?.destroy(r);this.emit("terminated",r)}abort(r){if(this.state!=="ongoing"){return}this.state="aborted";if(!r){r=new ie("The operation was aborted.","AbortError")}this.serializedAbortReason=r;this.connection?.destroy(r);this.emit("terminated",r)}}function fetch(r,s={}){Ce.argumentLengthCheck(arguments,1,{header:"globalThis.fetch"});const i=P();let A;try{A=new p(r,s)}catch(r){i.reject(r);return i.promise}const c=A[J];if(A.signal.aborted){abortFetch(i,c,null,A.signal.reason);return i.promise}const l=c.client.globalObject;if(l?.constructor?.name==="ServiceWorkerGlobalScope"){c.serviceWorkers="none"}let d=null;const u=null;let g=false;let h=null;le(A.signal,(()=>{g=true;K(h!=null);h.abort(A.signal.reason);abortFetch(i,c,d,A.signal.reason)}));const handleFetchDone=r=>finalizeAndReportTiming(r,"fetch");const processResponse=r=>{if(g){return Promise.resolve()}if(r.aborted){abortFetch(i,c,d,h.serializedAbortReason);return Promise.resolve()}if(r.type==="error"){i.reject(Object.assign(new TypeError("fetch failed"),{cause:r.error}));return Promise.resolve()}d=new a;d[J]=r;d[$]=u;d[W][oe]=r.headersList;d[W][X]="immutable";d[W][$]=u;i.resolve(d)};h=fetching({request:c,processResponseEndOfBody:handleFetchDone,processResponse:processResponse,dispatcher:s.dispatcher??Ee()});return i.promise}function finalizeAndReportTiming(r,s="other"){if(r.type==="error"&&r.aborted){return}if(!r.urlList?.length){return}const i=r.urlList[0];let a=r.timingInfo;let A=r.cacheState;if(!z(i)){return}if(a===null){return}if(!r.timingAllowPassed){a=N({startTime:a.startTime});A=""}a.endTime=_();r.timingInfo=a;markResourceTiming(a,i,s,globalThis,A)}function markResourceTiming(r,s,i,a,A){if(pe>18||pe===18&&ge>=2){performance.markResourceTiming(r,s.href,i,a,A)}}function abortFetch(r,s,i,a){if(!a){a=new ie("The operation was aborted.","AbortError")}r.reject(a);if(s.body!=null&&ue(s.body?.stream)){s.body.stream.cancel(a).catch((r=>{if(r.code==="ERR_INVALID_STATE"){return}throw r}))}if(i==null){return}const A=i[J];if(A.body!=null&&ue(A.body?.stream)){A.body.stream.cancel(a).catch((r=>{if(r.code==="ERR_INVALID_STATE"){return}throw r}))}}function fetching({request:r,processRequestBodyChunkLength:s,processRequestEndOfBody:i,processResponse:a,processResponseEndOfBody:A,processResponseConsumeBody:c,useParallelQueue:l=false,dispatcher:d}){let u=null;let p=false;if(r.client!=null){u=r.client.globalObject;p=r.client.crossOriginIsolatedCapability}const g=_(p);const h=N({startTime:g});const C={controller:new Fetch(d),request:r,timingInfo:h,processRequestBodyChunkLength:s,processRequestEndOfBody:i,processResponse:a,processResponseConsumeBody:c,processResponseEndOfBody:A,taskDestination:u,crossOriginIsolatedCapability:p};K(!r.body||r.body.stream);if(r.window==="client"){r.window=r.client?.globalObject?.constructor?.name==="Window"?r.client:"no-window"}if(r.origin==="client"){r.origin=r.client?.origin}if(r.policyContainer==="client"){if(r.client!=null){r.policyContainer=I(r.client.policyContainer)}else{r.policyContainer=y()}}if(!r.headersList.contains("accept")){const s="*/*";r.headersList.append("accept",s)}if(!r.headersList.contains("accept-language")){r.headersList.append("accept-language","*")}if(r.priority===null){}if(se.has(r.destination)){}mainFetch(C).catch((r=>{C.controller.terminate(r)}));return C.controller}async function mainFetch(r,s=false){const i=r.request;let a=null;if(i.localURLsOnly&&!j(v(i))){a=A("local URLs only")}R(i);if(B(i)==="blocked"){a=A("bad port")}if(i.referrerPolicy===""){i.referrerPolicy=i.policyContainer.referrerPolicy}if(i.referrer!=="no-referrer"){i.referrer=T(i)}if(a===null){a=await(async()=>{const s=v(i);if(L(s,i.url)&&i.responseTainting==="basic"||s.protocol==="data:"||(i.mode==="navigate"||i.mode==="websocket")){i.responseTainting="basic";return await schemeFetch(r)}if(i.mode==="same-origin"){return A('request mode cannot be "same-origin"')}if(i.mode==="no-cors"){if(i.redirect!=="follow"){return A('redirect mode cannot be "follow" for "no-cors" request')}i.responseTainting="opaque";return await schemeFetch(r)}if(!z(v(i))){return A("URL scheme must be a HTTP(S) scheme")}i.responseTainting="cors";return await httpFetch(r)})()}if(s){return a}if(a.status!==0&&!a.internalResponse){if(i.responseTainting==="cors"){}if(i.responseTainting==="basic"){a=l(a,"basic")}else if(i.responseTainting==="cors"){a=l(a,"cors")}else if(i.responseTainting==="opaque"){a=l(a,"opaque")}else{K(false)}}let c=a.status===0?a:a.internalResponse;if(c.urlList.length===0){c.urlList.push(...i.urlList)}if(!i.timingAllowFailed){a.timingAllowPassed=true}if(a.type==="opaque"&&c.status===206&&c.rangeRequested&&!i.headers.contains("range")){a=c=A()}if(a.status!==0&&(i.method==="HEAD"||i.method==="CONNECT"||te.includes(c.status))){c.body=null;r.controller.dump=true}if(i.integrity){const processBodyError=s=>fetchFinale(r,A(s));if(i.responseTainting==="opaque"||a.body==null){processBodyError(a.error);return}const processBody=s=>{if(!C(s,i.integrity)){processBodyError("integrity mismatch");return}a.body=Z(s)[0];fetchFinale(r,a)};await G(a.body,processBody,processBodyError)}else{fetchFinale(r,a)}}function schemeFetch(r){if(M(r)&&r.request.redirectCount===0){return Promise.resolve(c(r))}const{request:s}=r;const{protocol:a}=v(s);switch(a){case"about:":{return Promise.resolve(A("about scheme is not supported"))}case"blob:":{if(!Be){Be=i(14300).resolveObjectURL}const r=v(s);if(r.search.length!==0){return Promise.resolve(A("NetworkError when attempting to fetch resource."))}const a=Be(r.toString());if(s.method!=="GET"||!O(a)){return Promise.resolve(A("invalid method"))}const c=Z(a);const l=c[0];const u=V(`${l.length}`);const p=c[1]??"";const g=d({statusText:"OK",headersList:[["content-length",{name:"Content-Length",value:u}],["content-type",{name:"Content-Type",value:p}]]});g.body=l;return Promise.resolve(g)}case"data:":{const r=v(s);const i=he(r);if(i==="failure"){return Promise.resolve(A("failed to fetch the data URL"))}const a=me(i.mimeType);return Promise.resolve(d({statusText:"OK",headersList:[["content-type",{name:"Content-Type",value:a}]],body:Z(i.body)[0]}))}case"file:":{return Promise.resolve(A("not implemented... yet..."))}case"http:":case"https:":{return httpFetch(r).catch((r=>A(r)))}default:{return Promise.resolve(A("unknown scheme"))}}}function finalizeResponse(r,s){r.request.done=true;if(r.processResponseDone!=null){queueMicrotask((()=>r.processResponseDone(s)))}}function fetchFinale(r,s){if(s.type==="error"){s.urlList=[r.request.urlList[0]];s.timingInfo=N({startTime:r.timingInfo.startTime})}const processResponseEndOfBody=()=>{r.request.done=true;if(r.processResponseEndOfBody!=null){queueMicrotask((()=>r.processResponseEndOfBody(s)))}};if(r.processResponse!=null){queueMicrotask((()=>r.processResponse(s)))}if(s.body==null){processResponseEndOfBody()}else{const identityTransformAlgorithm=(r,s)=>{s.enqueue(r)};const r=new fe({start(){},transform:identityTransformAlgorithm,flush:processResponseEndOfBody},{size(){return 1}},{size(){return 1}});s.body={stream:s.body.stream.pipeThrough(r)}}if(r.processResponseConsumeBody!=null){const processBody=i=>r.processResponseConsumeBody(s,i);const processBodyError=i=>r.processResponseConsumeBody(s,i);if(s.body==null){queueMicrotask((()=>processBody(null)))}else{return G(s.body,processBody,processBodyError)}return Promise.resolve()}}async function httpFetch(r){const s=r.request;let i=null;let a=null;const c=r.timingInfo;if(s.serviceWorkers==="all"){}if(i===null){if(s.redirect==="follow"){s.serviceWorkers="none"}a=i=await httpNetworkOrCacheFetch(r);if(s.responseTainting==="cors"&&D(s,i)==="failure"){return A("cors failure")}if(b(s,i)==="failure"){s.timingAllowFailed=true}}if((s.responseTainting==="opaque"||i.type==="opaque")&&k(s.origin,s.client,s.destination,a)==="blocked"){return A("blocked")}if(ee.has(a.status)){if(s.redirect!=="manual"){r.controller.connection.destroy()}if(s.redirect==="error"){i=A("unexpected redirect")}else if(s.redirect==="manual"){i=a}else if(s.redirect==="follow"){i=await httpRedirectFetch(r,i)}else{K(false)}}i.timingInfo=c;return i}function httpRedirectFetch(r,s){const i=r.request;const a=s.internalResponse?s.internalResponse:s;let c;try{c=w(a,v(i).hash);if(c==null){return s}}catch(r){return Promise.resolve(A(r))}if(!z(c)){return Promise.resolve(A("URL scheme must be a HTTP(S) scheme"))}if(i.redirectCount===20){return Promise.resolve(A("redirect count exceeded"))}i.redirectCount+=1;if(i.mode==="cors"&&(c.username||c.password)&&!L(i,c)){return Promise.resolve(A('cross origin not allowed for request mode "cors"'))}if(i.responseTainting==="cors"&&(c.username||c.password)){return Promise.resolve(A('URL cannot contain credentials for request mode "cors"'))}if(a.status!==303&&i.body!=null&&i.body.source==null){return Promise.resolve(A())}if([301,302].includes(a.status)&&i.method==="POST"||a.status===303&&!Ie.includes(i.method)){i.method="GET";i.body=null;for(const r of ne){i.headersList.delete(r)}}if(!L(v(i),c)){i.headersList.delete("authorization");i.headersList.delete("proxy-authorization",true);i.headersList.delete("cookie");i.headersList.delete("host")}if(i.body!=null){K(i.body.source!=null);i.body=Z(i.body.source)[0]}const l=r.timingInfo;l.redirectEndTime=l.postRedirectStartTime=_(r.crossOriginIsolatedCapability);if(l.redirectStartTime===0){l.redirectStartTime=l.startTime}i.urlList.push(c);S(i,a);return mainFetch(r,true)}async function httpNetworkOrCacheFetch(r,s=false,i=false){const a=r.request;let l=null;let d=null;let u=null;const p=null;const h=false;if(a.window==="no-window"&&a.redirect==="error"){l=r;d=a}else{d=g(a);l={...r};l.request=d}const C=a.credentials==="include"||a.credentials==="same-origin"&&a.responseTainting==="basic";const y=d.body?d.body.length:null;let I=null;if(d.body==null&&["POST","PUT"].includes(d.method)){I="0"}if(y!=null){I=V(`${y}`)}if(I!=null){d.headersList.append("content-length",I)}if(y!=null&&d.keepalive){}if(d.referrer instanceof URL){d.headersList.append("referer",V(d.referrer.href))}Q(d);x(d);if(!d.headersList.contains("user-agent")){d.headersList.append("user-agent",typeof esbuildDetection==="undefined"?"undici":"node")}if(d.cache==="default"&&(d.headersList.contains("if-modified-since")||d.headersList.contains("if-none-match")||d.headersList.contains("if-unmodified-since")||d.headersList.contains("if-match")||d.headersList.contains("if-range"))){d.cache="no-store"}if(d.cache==="no-cache"&&!d.preventNoCacheCacheControlHeaderModification&&!d.headersList.contains("cache-control")){d.headersList.append("cache-control","max-age=0")}if(d.cache==="no-store"||d.cache==="reload"){if(!d.headersList.contains("pragma")){d.headersList.append("pragma","no-cache")}if(!d.headersList.contains("cache-control")){d.headersList.append("cache-control","no-cache")}}if(d.headersList.contains("range")){d.headersList.append("accept-encoding","identity")}if(!d.headersList.contains("accept-encoding")){if(Y(v(d))){d.headersList.append("accept-encoding","br, gzip, deflate")}else{d.headersList.append("accept-encoding","gzip, deflate")}}d.headersList.delete("host");if(C){}if(p==null){d.cache="no-store"}if(d.mode!=="no-store"&&d.mode!=="reload"){}if(u==null){if(d.mode==="only-if-cached"){return A("only if cached")}const r=await httpNetworkFetch(l,C,i);if(!re.has(d.method)&&r.status>=200&&r.status<=399){}if(h&&r.status===304){}if(u==null){u=r}}u.urlList=[...d.urlList];if(d.headersList.contains("range")){u.rangeRequested=true}u.requestIncludesCredentials=C;if(u.status===407){if(a.window==="no-window"){return A()}if(M(r)){return c(r)}return A("proxy authentication required")}if(u.status===421&&!i&&(a.body==null||a.body.source!=null)){if(M(r)){return c(r)}r.controller.connection.destroy();u=await httpNetworkOrCacheFetch(r,s,true)}if(s){}return u}async function httpNetworkFetch(r,s=false,a=false){K(!r.controller.connection||r.controller.connection.destroyed);r.controller.connection={abort:null,destroyed:false,destroy(r){if(!this.destroyed){this.destroyed=true;this.abort?.(r??new ie("The operation was aborted.","AbortError"))}}};const l=r.request;let p=null;const g=r.timingInfo;const C=null;if(C==null){l.cache="no-store"}const y=a?"yes":"no";if(l.mode==="websocket"){}else{}let I=null;if(l.body==null&&r.processRequestEndOfBody){queueMicrotask((()=>r.processRequestEndOfBody()))}else if(l.body!=null){const processBodyChunk=async function*(s){if(M(r)){return}yield s;r.processRequestBodyChunkLength?.(s.byteLength)};const processEndOfBody=()=>{if(M(r)){return}if(r.processRequestEndOfBody){r.processRequestEndOfBody()}};const processBodyError=s=>{if(M(r)){return}if(s.name==="AbortError"){r.controller.abort()}else{r.controller.terminate(s)}};I=async function*(){try{for await(const r of l.body.stream){yield*processBodyChunk(r)}processEndOfBody()}catch(r){processBodyError(r)}}()}try{const{body:s,status:i,statusText:a,headersList:A,socket:c}=await dispatch({body:I});if(c){p=d({status:i,statusText:a,headersList:A,socket:c})}else{const c=s[Symbol.asyncIterator]();r.controller.next=()=>c.next();p=d({status:i,statusText:a,headersList:A})}}catch(s){if(s.name==="AbortError"){r.controller.connection.destroy();return c(r,s)}return A(s)}const pullAlgorithm=()=>{r.controller.resume()};const cancelAlgorithm=s=>{r.controller.abort(s)};if(!be){be=i(35356).ReadableStream}const B=new be({async start(s){r.controller.controller=s},async pull(r){await pullAlgorithm(r)},async cancel(r){await cancelAlgorithm(r)}},{highWaterMark:0,size(){return 1}});p.body={stream:B};r.controller.on("terminated",onAborted);r.controller.resume=async()=>{while(true){let s;let i;try{const{done:i,value:a}=await r.controller.next();if(U(r)){break}s=i?undefined:a}catch(a){if(r.controller.ended&&!g.encodedBodySize){s=undefined}else{s=a;i=true}}if(s===undefined){q(r.controller.controller);finalizeResponse(r,p);return}g.decodedBodySize+=s?.byteLength??0;if(i){r.controller.terminate(s);return}r.controller.controller.enqueue(new Uint8Array(s));if(de(B)){r.controller.terminate();return}if(!r.controller.controller.desiredSize){return}}};function onAborted(s){if(U(r)){p.aborted=true;if(ue(B)){r.controller.controller.error(r.controller.serializedAbortReason)}}else{if(ue(B)){r.controller.controller.error(new TypeError("terminated",{cause:H(s)?s:undefined}))}}r.controller.connection.destroy()}return p;async function dispatch({body:s}){const i=v(l);const a=r.controller.dispatcher;return new Promise(((A,c)=>a.dispatch({path:i.pathname+i.search,origin:i.origin,method:l.method,body:r.controller.dispatcher.isMockActive?l.body&&(l.body.source||l.body.stream):s,headers:l.headersList.entries,maxRedirections:0,upgrade:l.mode==="websocket"?"websocket":undefined},{body:null,abort:null,onConnect(s){const{connection:i}=r.controller;if(i.destroyed){s(new ie("The operation was aborted.","AbortError"))}else{r.controller.on("terminated",s);this.abort=i.abort=s}},onHeaders(r,s,i,a){if(r<200){return}let c=[];let d="";const p=new u;if(Array.isArray(s)){for(let r=0;rr.trim()))}else if(i.toLowerCase()==="location"){d=a}p[oe].append(i,a)}}else{const r=Object.keys(s);for(const i of r){const r=s[i];if(i.toLowerCase()==="content-encoding"){c=r.toLowerCase().split(",").map((r=>r.trim())).reverse()}else if(i.toLowerCase()==="location"){d=r}p[oe].append(i,r)}}this.body=new Ae({read:i});const g=[];const C=l.redirect==="follow"&&d&&ee.has(r);if(l.method!=="HEAD"&&l.method!=="CONNECT"&&!te.includes(r)&&!C){for(const r of c){if(r==="x-gzip"||r==="gzip"){g.push(h.createGunzip({flush:h.constants.Z_SYNC_FLUSH,finishFlush:h.constants.Z_SYNC_FLUSH}))}else if(r==="deflate"){g.push(h.createInflate())}else if(r==="br"){g.push(h.createBrotliDecompress())}else{g.length=0;break}}}A({status:r,statusText:a,headersList:p[oe],body:g.length?ce(this.body,...g,(()=>{})):this.body.on("error",(()=>{}))});return true},onData(s){if(r.controller.dump){return}const i=s;g.encodedBodySize+=i.byteLength;return this.body.push(i)},onComplete(){if(this.abort){r.controller.off("terminated",this.abort)}r.controller.ended=true;this.body.push(null)},onError(s){if(this.abort){r.controller.off("terminated",this.abort)}this.body?.destroy(s);r.controller.terminate(s);c(s)},onUpgrade(r,s,i){if(r!==101){return}const a=new u;for(let r=0;r{"use strict";const{extractBody:a,mixinBody:A,cloneBody:c}=i(41472);const{Headers:l,fill:d,HeadersList:u}=i(10554);const{FinalizationRegistry:p}=i(56436)();const g=i(83983);const{isValidHTTPToken:h,sameOrigin:C,normalizeMethod:y,makePolicyContainer:I,normalizeMethodRecord:B}=i(52538);const{forbiddenMethodsSet:b,corsSafeListedMethodsSet:Q,referrerPolicy:w,requestRedirect:v,requestMode:S,requestCredentials:R,requestCache:N,requestDuplex:x}=i(41037);const{kEnumerableProperty:D}=g;const{kHeaders:k,kSignal:T,kState:_,kGuard:P,kRealm:O}=i(15861);const{webidl:L}=i(21744);const{getGlobalOrigin:M}=i(71246);const{URLSerializer:U}=i(685);const{kHeadersList:H,kConstruct:G}=i(72785);const q=i(39491);const{getMaxListeners:V,setMaxListeners:j,getEventListeners:z,defaultMaxListeners:Y}=i(82361);let J=globalThis.TransformStream;const W=Symbol("abortController");const X=new p((({signal:r,abort:s})=>{r.removeEventListener("abort",s)}));class Request{constructor(r,s={}){if(r===G){return}L.argumentLengthCheck(arguments,1,{header:"Request constructor"});r=L.converters.RequestInfo(r);s=L.converters.RequestInit(s);this[O]={settingsObject:{baseUrl:M(),get origin(){return this.baseUrl?.origin},policyContainer:I()}};let A=null;let c=null;const p=this[O].settingsObject.baseUrl;let w=null;if(typeof r==="string"){let s;try{s=new URL(r,p)}catch(s){throw new TypeError("Failed to parse URL from "+r,{cause:s})}if(s.username||s.password){throw new TypeError("Request cannot be constructed from a URL that includes credentials: "+r)}A=makeRequest({urlList:[s]});c="cors"}else{q(r instanceof Request);A=r[_];w=r[T]}const v=this[O].settingsObject.origin;let S="client";if(A.window?.constructor?.name==="EnvironmentSettingsObject"&&C(A.window,v)){S=A.window}if(s.window!=null){throw new TypeError(`'window' option '${S}' must be null`)}if("window"in s){S="no-window"}A=makeRequest({method:A.method,headersList:A.headersList,unsafeRequest:A.unsafeRequest,client:this[O].settingsObject,window:S,priority:A.priority,origin:A.origin,referrer:A.referrer,referrerPolicy:A.referrerPolicy,mode:A.mode,credentials:A.credentials,cache:A.cache,redirect:A.redirect,integrity:A.integrity,keepalive:A.keepalive,reloadNavigation:A.reloadNavigation,historyNavigation:A.historyNavigation,urlList:[...A.urlList]});const R=Object.keys(s).length!==0;if(R){if(A.mode==="navigate"){A.mode="same-origin"}A.reloadNavigation=false;A.historyNavigation=false;A.origin="client";A.referrer="client";A.referrerPolicy="";A.url=A.urlList[A.urlList.length-1];A.urlList=[A.url]}if(s.referrer!==undefined){const r=s.referrer;if(r===""){A.referrer="no-referrer"}else{let s;try{s=new URL(r,p)}catch(s){throw new TypeError(`Referrer "${r}" is not a valid URL.`,{cause:s})}if(s.protocol==="about:"&&s.hostname==="client"||v&&!C(s,this[O].settingsObject.baseUrl)){A.referrer="client"}else{A.referrer=s}}}if(s.referrerPolicy!==undefined){A.referrerPolicy=s.referrerPolicy}let N;if(s.mode!==undefined){N=s.mode}else{N=c}if(N==="navigate"){throw L.errors.exception({header:"Request constructor",message:"invalid request mode navigate."})}if(N!=null){A.mode=N}if(s.credentials!==undefined){A.credentials=s.credentials}if(s.cache!==undefined){A.cache=s.cache}if(A.cache==="only-if-cached"&&A.mode!=="same-origin"){throw new TypeError("'only-if-cached' can be set only with 'same-origin' mode")}if(s.redirect!==undefined){A.redirect=s.redirect}if(s.integrity!=null){A.integrity=String(s.integrity)}if(s.keepalive!==undefined){A.keepalive=Boolean(s.keepalive)}if(s.method!==undefined){let r=s.method;if(!h(r)){throw new TypeError(`'${r}' is not a valid HTTP method.`)}if(b.has(r.toUpperCase())){throw new TypeError(`'${r}' HTTP method is unsupported.`)}r=B[r]??y(r);A.method=r}if(s.signal!==undefined){w=s.signal}this[_]=A;const x=new AbortController;this[T]=x.signal;this[T][O]=this[O];if(w!=null){if(!w||typeof w.aborted!=="boolean"||typeof w.addEventListener!=="function"){throw new TypeError("Failed to construct 'Request': member signal is not of type AbortSignal.")}if(w.aborted){x.abort(w.reason)}else{this[W]=x;const r=new WeakRef(x);const abort=function(){const s=r.deref();if(s!==undefined){s.abort(this.reason)}};try{if(typeof V==="function"&&V(w)===Y){j(100,w)}else if(z(w,"abort").length>=Y){j(100,w)}}catch{}g.addAbortListener(w,abort);X.register(x,{signal:w,abort:abort})}}this[k]=new l(G);this[k][H]=A.headersList;this[k][P]="request";this[k][O]=this[O];if(N==="no-cors"){if(!Q.has(A.method)){throw new TypeError(`'${A.method} is unsupported in no-cors mode.`)}this[k][P]="request-no-cors"}if(R){const r=this[k][H];const i=s.headers!==undefined?s.headers:new u(r);r.clear();if(i instanceof u){for(const[s,a]of i){r.append(s,a)}r.cookies=i.cookies}else{d(this[k],i)}}const D=r instanceof Request?r[_].body:null;if((s.body!=null||D!=null)&&(A.method==="GET"||A.method==="HEAD")){throw new TypeError("Request with GET/HEAD method cannot have body.")}let U=null;if(s.body!=null){const[r,i]=a(s.body,A.keepalive);U=r;if(i&&!this[k][H].contains("content-type")){this[k].append("content-type",i)}}const $=U??D;if($!=null&&$.source==null){if(U!=null&&s.duplex==null){throw new TypeError("RequestInit: duplex option is required when sending a body.")}if(A.mode!=="same-origin"&&A.mode!=="cors"){throw new TypeError('If request is made from ReadableStream, mode should be "same-origin" or "cors"')}A.useCORSPreflightFlag=true}let K=$;if(U==null&&D!=null){if(g.isDisturbed(D.stream)||D.stream.locked){throw new TypeError("Cannot construct a Request with a Request object that has already been used.")}if(!J){J=i(35356).TransformStream}const r=new J;D.stream.pipeThrough(r);K={source:D.source,length:D.length,stream:r.readable}}this[_].body=K}get method(){L.brandCheck(this,Request);return this[_].method}get url(){L.brandCheck(this,Request);return U(this[_].url)}get headers(){L.brandCheck(this,Request);return this[k]}get destination(){L.brandCheck(this,Request);return this[_].destination}get referrer(){L.brandCheck(this,Request);if(this[_].referrer==="no-referrer"){return""}if(this[_].referrer==="client"){return"about:client"}return this[_].referrer.toString()}get referrerPolicy(){L.brandCheck(this,Request);return this[_].referrerPolicy}get mode(){L.brandCheck(this,Request);return this[_].mode}get credentials(){return this[_].credentials}get cache(){L.brandCheck(this,Request);return this[_].cache}get redirect(){L.brandCheck(this,Request);return this[_].redirect}get integrity(){L.brandCheck(this,Request);return this[_].integrity}get keepalive(){L.brandCheck(this,Request);return this[_].keepalive}get isReloadNavigation(){L.brandCheck(this,Request);return this[_].reloadNavigation}get isHistoryNavigation(){L.brandCheck(this,Request);return this[_].historyNavigation}get signal(){L.brandCheck(this,Request);return this[T]}get body(){L.brandCheck(this,Request);return this[_].body?this[_].body.stream:null}get bodyUsed(){L.brandCheck(this,Request);return!!this[_].body&&g.isDisturbed(this[_].body.stream)}get duplex(){L.brandCheck(this,Request);return"half"}clone(){L.brandCheck(this,Request);if(this.bodyUsed||this.body?.locked){throw new TypeError("unusable")}const r=cloneRequest(this[_]);const s=new Request(G);s[_]=r;s[O]=this[O];s[k]=new l(G);s[k][H]=r.headersList;s[k][P]=this[k][P];s[k][O]=this[k][O];const i=new AbortController;if(this.signal.aborted){i.abort(this.signal.reason)}else{g.addAbortListener(this.signal,(()=>{i.abort(this.signal.reason)}))}s[T]=i.signal;return s}}A(Request);function makeRequest(r){const s={method:"GET",localURLsOnly:false,unsafeRequest:false,body:null,client:null,reservedClient:null,replacesClientId:"",window:"client",keepalive:false,serviceWorkers:"all",initiator:"",destination:"",priority:null,origin:"client",policyContainer:"client",referrer:"client",referrerPolicy:"",mode:"no-cors",useCORSPreflightFlag:false,credentials:"same-origin",useCredentials:false,cache:"default",redirect:"follow",integrity:"",cryptoGraphicsNonceMetadata:"",parserMetadata:"",reloadNavigation:false,historyNavigation:false,userActivation:false,taintedOrigin:false,redirectCount:0,responseTainting:"basic",preventNoCacheCacheControlHeaderModification:false,done:false,timingAllowFailed:false,...r,headersList:r.headersList?new u(r.headersList):new u};s.url=s.urlList[0];return s}function cloneRequest(r){const s=makeRequest({...r,body:null});if(r.body!=null){s.body=c(r.body)}return s}Object.defineProperties(Request.prototype,{method:D,url:D,headers:D,redirect:D,clone:D,signal:D,duplex:D,destination:D,body:D,bodyUsed:D,isHistoryNavigation:D,isReloadNavigation:D,keepalive:D,integrity:D,cache:D,credentials:D,attribute:D,referrerPolicy:D,referrer:D,mode:D,[Symbol.toStringTag]:{value:"Request",configurable:true}});L.converters.Request=L.interfaceConverter(Request);L.converters.RequestInfo=function(r){if(typeof r==="string"){return L.converters.USVString(r)}if(r instanceof Request){return L.converters.Request(r)}return L.converters.USVString(r)};L.converters.AbortSignal=L.interfaceConverter(AbortSignal);L.converters.RequestInit=L.dictionaryConverter([{key:"method",converter:L.converters.ByteString},{key:"headers",converter:L.converters.HeadersInit},{key:"body",converter:L.nullableConverter(L.converters.BodyInit)},{key:"referrer",converter:L.converters.USVString},{key:"referrerPolicy",converter:L.converters.DOMString,allowedValues:w},{key:"mode",converter:L.converters.DOMString,allowedValues:S},{key:"credentials",converter:L.converters.DOMString,allowedValues:R},{key:"cache",converter:L.converters.DOMString,allowedValues:N},{key:"redirect",converter:L.converters.DOMString,allowedValues:v},{key:"integrity",converter:L.converters.DOMString},{key:"keepalive",converter:L.converters.boolean},{key:"signal",converter:L.nullableConverter((r=>L.converters.AbortSignal(r,{strict:false})))},{key:"window",converter:L.converters.any},{key:"duplex",converter:L.converters.DOMString,allowedValues:x}]);r.exports={Request:Request,makeRequest:makeRequest}},27823:(r,s,i)=>{"use strict";const{Headers:a,HeadersList:A,fill:c}=i(10554);const{extractBody:l,cloneBody:d,mixinBody:u}=i(41472);const p=i(83983);const{kEnumerableProperty:g}=p;const{isValidReasonPhrase:h,isCancelled:C,isAborted:y,isBlobLike:I,serializeJavascriptValueToJSONString:B,isErrorLike:b,isomorphicEncode:Q}=i(52538);const{redirectStatusSet:w,nullBodyStatus:v,DOMException:S}=i(41037);const{kState:R,kHeaders:N,kGuard:x,kRealm:D}=i(15861);const{webidl:k}=i(21744);const{FormData:T}=i(72015);const{getGlobalOrigin:_}=i(71246);const{URLSerializer:P}=i(685);const{kHeadersList:O,kConstruct:L}=i(72785);const M=i(39491);const{types:U}=i(73837);const H=globalThis.ReadableStream||i(35356).ReadableStream;const G=new TextEncoder("utf-8");class Response{static error(){const r={settingsObject:{}};const s=new Response;s[R]=makeNetworkError();s[D]=r;s[N][O]=s[R].headersList;s[N][x]="immutable";s[N][D]=r;return s}static json(r,s={}){k.argumentLengthCheck(arguments,1,{header:"Response.json"});if(s!==null){s=k.converters.ResponseInit(s)}const i=G.encode(B(r));const a=l(i);const A={settingsObject:{}};const c=new Response;c[D]=A;c[N][x]="response";c[N][D]=A;initializeResponse(c,s,{body:a[0],type:"application/json"});return c}static redirect(r,s=302){const i={settingsObject:{}};k.argumentLengthCheck(arguments,1,{header:"Response.redirect"});r=k.converters.USVString(r);s=k.converters["unsigned short"](s);let a;try{a=new URL(r,_())}catch(s){throw Object.assign(new TypeError("Failed to parse URL from "+r),{cause:s})}if(!w.has(s)){throw new RangeError("Invalid status code "+s)}const A=new Response;A[D]=i;A[N][x]="immutable";A[N][D]=i;A[R].status=s;const c=Q(P(a));A[R].headersList.append("location",c);return A}constructor(r=null,s={}){if(r!==null){r=k.converters.BodyInit(r)}s=k.converters.ResponseInit(s);this[D]={settingsObject:{}};this[R]=makeResponse({});this[N]=new a(L);this[N][x]="response";this[N][O]=this[R].headersList;this[N][D]=this[D];let i=null;if(r!=null){const[s,a]=l(r);i={body:s,type:a}}initializeResponse(this,s,i)}get type(){k.brandCheck(this,Response);return this[R].type}get url(){k.brandCheck(this,Response);const r=this[R].urlList;const s=r[r.length-1]??null;if(s===null){return""}return P(s,true)}get redirected(){k.brandCheck(this,Response);return this[R].urlList.length>1}get status(){k.brandCheck(this,Response);return this[R].status}get ok(){k.brandCheck(this,Response);return this[R].status>=200&&this[R].status<=299}get statusText(){k.brandCheck(this,Response);return this[R].statusText}get headers(){k.brandCheck(this,Response);return this[N]}get body(){k.brandCheck(this,Response);return this[R].body?this[R].body.stream:null}get bodyUsed(){k.brandCheck(this,Response);return!!this[R].body&&p.isDisturbed(this[R].body.stream)}clone(){k.brandCheck(this,Response);if(this.bodyUsed||this.body&&this.body.locked){throw k.errors.exception({header:"Response.clone",message:"Body has already been consumed."})}const r=cloneResponse(this[R]);const s=new Response;s[R]=r;s[D]=this[D];s[N][O]=r.headersList;s[N][x]=this[N][x];s[N][D]=this[N][D];return s}}u(Response);Object.defineProperties(Response.prototype,{type:g,url:g,status:g,ok:g,redirected:g,statusText:g,headers:g,clone:g,body:g,bodyUsed:g,[Symbol.toStringTag]:{value:"Response",configurable:true}});Object.defineProperties(Response,{json:g,redirect:g,error:g});function cloneResponse(r){if(r.internalResponse){return filterResponse(cloneResponse(r.internalResponse),r.type)}const s=makeResponse({...r,body:null});if(r.body!=null){s.body=d(r.body)}return s}function makeResponse(r){return{aborted:false,rangeRequested:false,timingAllowPassed:false,requestIncludesCredentials:false,type:"default",status:200,timingInfo:null,cacheState:"",statusText:"",...r,headersList:r.headersList?new A(r.headersList):new A,urlList:r.urlList?[...r.urlList]:[]}}function makeNetworkError(r){const s=b(r);return makeResponse({type:"error",status:0,error:s?r:new Error(r?String(r):r),aborted:r&&r.name==="AbortError"})}function makeFilteredResponse(r,s){s={internalResponse:r,...s};return new Proxy(r,{get(r,i){return i in s?s[i]:r[i]},set(r,i,a){M(!(i in s));r[i]=a;return true}})}function filterResponse(r,s){if(s==="basic"){return makeFilteredResponse(r,{type:"basic",headersList:r.headersList})}else if(s==="cors"){return makeFilteredResponse(r,{type:"cors",headersList:r.headersList})}else if(s==="opaque"){return makeFilteredResponse(r,{type:"opaque",urlList:Object.freeze([]),status:0,statusText:"",body:null})}else if(s==="opaqueredirect"){return makeFilteredResponse(r,{type:"opaqueredirect",status:0,statusText:"",headersList:[],body:null})}else{M(false)}}function makeAppropriateNetworkError(r,s=null){M(C(r));return y(r)?makeNetworkError(Object.assign(new S("The operation was aborted.","AbortError"),{cause:s})):makeNetworkError(Object.assign(new S("Request was cancelled."),{cause:s}))}function initializeResponse(r,s,i){if(s.status!==null&&(s.status<200||s.status>599)){throw new RangeError('init["status"] must be in the range of 200 to 599, inclusive.')}if("statusText"in s&&s.statusText!=null){if(!h(String(s.statusText))){throw new TypeError("Invalid statusText")}}if("status"in s&&s.status!=null){r[R].status=s.status}if("statusText"in s&&s.statusText!=null){r[R].statusText=s.statusText}if("headers"in s&&s.headers!=null){c(r[N],s.headers)}if(i){if(v.includes(r.status)){throw k.errors.exception({header:"Response constructor",message:"Invalid response status code "+r.status})}r[R].body=i.body;if(i.type!=null&&!r[R].headersList.contains("Content-Type")){r[R].headersList.append("content-type",i.type)}}}k.converters.ReadableStream=k.interfaceConverter(H);k.converters.FormData=k.interfaceConverter(T);k.converters.URLSearchParams=k.interfaceConverter(URLSearchParams);k.converters.XMLHttpRequestBodyInit=function(r){if(typeof r==="string"){return k.converters.USVString(r)}if(I(r)){return k.converters.Blob(r,{strict:false})}if(U.isArrayBuffer(r)||U.isTypedArray(r)||U.isDataView(r)){return k.converters.BufferSource(r)}if(p.isFormDataLike(r)){return k.converters.FormData(r,{strict:false})}if(r instanceof URLSearchParams){return k.converters.URLSearchParams(r)}return k.converters.DOMString(r)};k.converters.BodyInit=function(r){if(r instanceof H){return k.converters.ReadableStream(r)}if(r?.[Symbol.asyncIterator]){return r}return k.converters.XMLHttpRequestBodyInit(r)};k.converters.ResponseInit=k.dictionaryConverter([{key:"status",converter:k.converters["unsigned short"],defaultValue:200},{key:"statusText",converter:k.converters.ByteString,defaultValue:""},{key:"headers",converter:k.converters.HeadersInit}]);r.exports={makeNetworkError:makeNetworkError,makeResponse:makeResponse,makeAppropriateNetworkError:makeAppropriateNetworkError,filterResponse:filterResponse,Response:Response,cloneResponse:cloneResponse}},15861:r=>{"use strict";r.exports={kUrl:Symbol("url"),kHeaders:Symbol("headers"),kSignal:Symbol("signal"),kState:Symbol("state"),kGuard:Symbol("guard"),kRealm:Symbol("realm")}},52538:(r,s,i)=>{"use strict";const{redirectStatusSet:a,referrerPolicySet:A,badPortsSet:c}=i(41037);const{getGlobalOrigin:l}=i(71246);const{performance:d}=i(4074);const{isBlobLike:u,toUSVString:p,ReadableStreamFrom:g}=i(83983);const h=i(39491);const{isUint8Array:C}=i(29830);let y=[];let I;try{I=i(6113);const r=["sha256","sha384","sha512"];y=I.getHashes().filter((s=>r.includes(s)))}catch{}function responseURL(r){const s=r.urlList;const i=s.length;return i===0?null:s[i-1].toString()}function responseLocationURL(r,s){if(!a.has(r.status)){return null}let i=r.headersList.get("location");if(i!==null&&isValidHeaderValue(i)){i=new URL(i,responseURL(r))}if(i&&!i.hash){i.hash=s}return i}function requestCurrentURL(r){return r.urlList[r.urlList.length-1]}function requestBadPort(r){const s=requestCurrentURL(r);if(urlIsHttpHttpsScheme(s)&&c.has(s.port)){return"blocked"}return"allowed"}function isErrorLike(r){return r instanceof Error||(r?.constructor?.name==="Error"||r?.constructor?.name==="DOMException")}function isValidReasonPhrase(r){for(let s=0;s=32&&i<=126||i>=128&&i<=255)){return false}}return true}function isTokenCharCode(r){switch(r){case 34:case 40:case 41:case 44:case 47:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 91:case 92:case 93:case 123:case 125:return false;default:return r>=33&&r<=126}}function isValidHTTPToken(r){if(r.length===0){return false}for(let s=0;s0){for(let r=a.length;r!==0;r--){const s=a[r-1].trim();if(A.has(s)){c=s;break}}}if(c!==""){r.referrerPolicy=c}}function crossOriginResourcePolicyCheck(){return"allowed"}function corsCheck(){return"success"}function TAOCheck(){return"success"}function appendFetchMetadata(r){let s=null;s=r.mode;r.headersList.set("sec-fetch-mode",s)}function appendRequestOriginHeader(r){let s=r.origin;if(r.responseTainting==="cors"||r.mode==="websocket"){if(s){r.headersList.append("origin",s)}}else if(r.method!=="GET"&&r.method!=="HEAD"){switch(r.referrerPolicy){case"no-referrer":s=null;break;case"no-referrer-when-downgrade":case"strict-origin":case"strict-origin-when-cross-origin":if(r.origin&&urlHasHttpsScheme(r.origin)&&!urlHasHttpsScheme(requestCurrentURL(r))){s=null}break;case"same-origin":if(!sameOrigin(r,requestCurrentURL(r))){s=null}break;default:}if(s){r.headersList.append("origin",s)}}}function coarsenedSharedCurrentTime(r){return d.now()}function createOpaqueTimingInfo(r){return{startTime:r.startTime??0,redirectStartTime:0,redirectEndTime:0,postRedirectStartTime:r.startTime??0,finalServiceWorkerStartTime:0,finalNetworkResponseStartTime:0,finalNetworkRequestStartTime:0,endTime:0,encodedBodySize:0,decodedBodySize:0,finalConnectionTimingInfo:null}}function makePolicyContainer(){return{referrerPolicy:"strict-origin-when-cross-origin"}}function clonePolicyContainer(r){return{referrerPolicy:r.referrerPolicy}}function determineRequestsReferrer(r){const s=r.referrerPolicy;h(s);let i=null;if(r.referrer==="client"){const r=l();if(!r||r.origin==="null"){return"no-referrer"}i=new URL(r)}else if(r.referrer instanceof URL){i=r.referrer}let a=stripURLForReferrer(i);const A=stripURLForReferrer(i,true);if(a.toString().length>4096){a=A}const c=sameOrigin(r,a);const d=isURLPotentiallyTrustworthy(a)&&!isURLPotentiallyTrustworthy(r.url);switch(s){case"origin":return A!=null?A:stripURLForReferrer(i,true);case"unsafe-url":return a;case"same-origin":return c?A:"no-referrer";case"origin-when-cross-origin":return c?a:A;case"strict-origin-when-cross-origin":{const s=requestCurrentURL(r);if(sameOrigin(a,s)){return a}if(isURLPotentiallyTrustworthy(a)&&!isURLPotentiallyTrustworthy(s)){return"no-referrer"}return A}case"strict-origin":case"no-referrer-when-downgrade":default:return d?"no-referrer":A}}function stripURLForReferrer(r,s){h(r instanceof URL);if(r.protocol==="file:"||r.protocol==="about:"||r.protocol==="blank:"){return"no-referrer"}r.username="";r.password="";r.hash="";if(s){r.pathname="";r.search=""}return r}function isURLPotentiallyTrustworthy(r){if(!(r instanceof URL)){return false}if(r.href==="about:blank"||r.href==="about:srcdoc"){return true}if(r.protocol==="data:")return true;if(r.protocol==="file:")return true;return isOriginPotentiallyTrustworthy(r.origin);function isOriginPotentiallyTrustworthy(r){if(r==null||r==="null")return false;const s=new URL(r);if(s.protocol==="https:"||s.protocol==="wss:"){return true}if(/^127(?:\.[0-9]+){0,2}\.[0-9]+$|^\[(?:0*:)*?:?0*1\]$/.test(s.hostname)||(s.hostname==="localhost"||s.hostname.includes("localhost."))||s.hostname.endsWith(".localhost")){return true}return false}}function bytesMatch(r,s){if(I===undefined){return true}const i=parseMetadata(s);if(i==="no metadata"){return true}if(i.length===0){return true}const a=getStrongestMetadata(i);const A=filterMetadataListByAlgorithm(i,a);for(const s of A){const i=s.algo;const a=s.hash;let A=I.createHash(i).update(r).digest("base64");if(A[A.length-1]==="="){if(A[A.length-2]==="="){A=A.slice(0,-2)}else{A=A.slice(0,-1)}}if(compareBase64Mixed(A,a)){return true}}return false}const B=/(?sha256|sha384|sha512)-((?[A-Za-z0-9+/]+|[A-Za-z0-9_-]+)={0,2}(?:\s|$)( +[!-~]*)?)?/i;function parseMetadata(r){const s=[];let i=true;for(const a of r.split(" ")){i=false;const r=B.exec(a);if(r===null||r.groups===undefined||r.groups.algo===undefined){continue}const A=r.groups.algo.toLowerCase();if(y.includes(A)){s.push(r.groups)}}if(i===true){return"no metadata"}return s}function getStrongestMetadata(r){let s=r[0].algo;if(s[3]==="5"){return s}for(let i=1;i{r=i;s=a}));return{promise:i,resolve:r,reject:s}}function isAborted(r){return r.controller.state==="aborted"}function isCancelled(r){return r.controller.state==="aborted"||r.controller.state==="terminated"}const b={delete:"DELETE",DELETE:"DELETE",get:"GET",GET:"GET",head:"HEAD",HEAD:"HEAD",options:"OPTIONS",OPTIONS:"OPTIONS",post:"POST",POST:"POST",put:"PUT",PUT:"PUT"};Object.setPrototypeOf(b,null);function normalizeMethod(r){return b[r.toLowerCase()]??r}function serializeJavascriptValueToJSONString(r){const s=JSON.stringify(r);if(s===undefined){throw new TypeError("Value is not JSON serializable")}h(typeof s==="string");return s}const Q=Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()));function makeIterator(r,s,i){const a={index:0,kind:i,target:r};const A={next(){if(Object.getPrototypeOf(this)!==A){throw new TypeError(`'next' called on an object that does not implement interface ${s} Iterator.`)}const{index:r,kind:i,target:c}=a;const l=c();const d=l.length;if(r>=d){return{value:undefined,done:true}}const u=l[r];a.index=r+1;return iteratorResult(u,i)},[Symbol.toStringTag]:`${s} Iterator`};Object.setPrototypeOf(A,Q);return Object.setPrototypeOf({},A)}function iteratorResult(r,s){let i;switch(s){case"key":{i=r[0];break}case"value":{i=r[1];break}case"key+value":{i=r;break}}return{value:i,done:false}}async function fullyReadBody(r,s,i){const a=s;const A=i;let c;try{c=r.stream.getReader()}catch(r){A(r);return}try{const r=await readAllBytes(c);a(r)}catch(r){A(r)}}let w=globalThis.ReadableStream;function isReadableStreamLike(r){if(!w){w=i(35356).ReadableStream}return r instanceof w||r[Symbol.toStringTag]==="ReadableStream"&&typeof r.tee==="function"}const v=65535;function isomorphicDecode(r){if(r.lengthr+String.fromCharCode(s)),"")}function readableStreamClose(r){try{r.close()}catch(r){if(!r.message.includes("Controller is already closed")){throw r}}}function isomorphicEncode(r){for(let s=0;sObject.prototype.hasOwnProperty.call(r,s));r.exports={isAborted:isAborted,isCancelled:isCancelled,createDeferredPromise:createDeferredPromise,ReadableStreamFrom:g,toUSVString:p,tryUpgradeRequestToAPotentiallyTrustworthyURL:tryUpgradeRequestToAPotentiallyTrustworthyURL,coarsenedSharedCurrentTime:coarsenedSharedCurrentTime,determineRequestsReferrer:determineRequestsReferrer,makePolicyContainer:makePolicyContainer,clonePolicyContainer:clonePolicyContainer,appendFetchMetadata:appendFetchMetadata,appendRequestOriginHeader:appendRequestOriginHeader,TAOCheck:TAOCheck,corsCheck:corsCheck,crossOriginResourcePolicyCheck:crossOriginResourcePolicyCheck,createOpaqueTimingInfo:createOpaqueTimingInfo,setRequestReferrerPolicyOnRedirect:setRequestReferrerPolicyOnRedirect,isValidHTTPToken:isValidHTTPToken,requestBadPort:requestBadPort,requestCurrentURL:requestCurrentURL,responseURL:responseURL,responseLocationURL:responseLocationURL,isBlobLike:u,isURLPotentiallyTrustworthy:isURLPotentiallyTrustworthy,isValidReasonPhrase:isValidReasonPhrase,sameOrigin:sameOrigin,normalizeMethod:normalizeMethod,serializeJavascriptValueToJSONString:serializeJavascriptValueToJSONString,makeIterator:makeIterator,isValidHeaderName:isValidHeaderName,isValidHeaderValue:isValidHeaderValue,hasOwn:S,isErrorLike:isErrorLike,fullyReadBody:fullyReadBody,bytesMatch:bytesMatch,isReadableStreamLike:isReadableStreamLike,readableStreamClose:readableStreamClose,isomorphicEncode:isomorphicEncode,isomorphicDecode:isomorphicDecode,urlIsLocal:urlIsLocal,urlHasHttpsScheme:urlHasHttpsScheme,urlIsHttpHttpsScheme:urlIsHttpHttpsScheme,readAllBytes:readAllBytes,normalizeMethodRecord:b,parseMetadata:parseMetadata}},21744:(r,s,i)=>{"use strict";const{types:a}=i(73837);const{hasOwn:A,toUSVString:c}=i(52538);const l={};l.converters={};l.util={};l.errors={};l.errors.exception=function(r){return new TypeError(`${r.header}: ${r.message}`)};l.errors.conversionFailed=function(r){const s=r.types.length===1?"":" one of";const i=`${r.argument} could not be converted to`+`${s}: ${r.types.join(", ")}.`;return l.errors.exception({header:r.prefix,message:i})};l.errors.invalidArgument=function(r){return l.errors.exception({header:r.prefix,message:`"${r.value}" is an invalid ${r.type}.`})};l.brandCheck=function(r,s,i=undefined){if(i?.strict!==false&&!(r instanceof s)){throw new TypeError("Illegal invocation")}else{return r?.[Symbol.toStringTag]===s.prototype[Symbol.toStringTag]}};l.argumentLengthCheck=function({length:r},s,i){if(rA){throw l.errors.exception({header:"Integer conversion",message:`Value must be between ${c}-${A}, got ${d}.`})}return d}if(!Number.isNaN(d)&&a.clamp===true){d=Math.min(Math.max(d,c),A);if(Math.floor(d)%2===0){d=Math.floor(d)}else{d=Math.ceil(d)}return d}if(Number.isNaN(d)||d===0&&Object.is(0,d)||d===Number.POSITIVE_INFINITY||d===Number.NEGATIVE_INFINITY){return 0}d=l.util.IntegerPart(d);d=d%Math.pow(2,s);if(i==="signed"&&d>=Math.pow(2,s)-1){return d-Math.pow(2,s)}return d};l.util.IntegerPart=function(r){const s=Math.floor(Math.abs(r));if(r<0){return-1*s}return s};l.sequenceConverter=function(r){return s=>{if(l.util.Type(s)!=="Object"){throw l.errors.exception({header:"Sequence",message:`Value of type ${l.util.Type(s)} is not an Object.`})}const i=s?.[Symbol.iterator]?.();const a=[];if(i===undefined||typeof i.next!=="function"){throw l.errors.exception({header:"Sequence",message:"Object is not an iterator."})}while(true){const{done:s,value:A}=i.next();if(s){break}a.push(r(A))}return a}};l.recordConverter=function(r,s){return i=>{if(l.util.Type(i)!=="Object"){throw l.errors.exception({header:"Record",message:`Value of type ${l.util.Type(i)} is not an Object.`})}const A={};if(!a.isProxy(i)){const a=Object.keys(i);for(const c of a){const a=r(c);const l=s(i[c]);A[a]=l}return A}const c=Reflect.ownKeys(i);for(const a of c){const c=Reflect.getOwnPropertyDescriptor(i,a);if(c?.enumerable){const c=r(a);const l=s(i[a]);A[c]=l}}return A}};l.interfaceConverter=function(r){return(s,i={})=>{if(i.strict!==false&&!(s instanceof r)){throw l.errors.exception({header:r.name,message:`Expected ${s} to be an instance of ${r.name}.`})}return s}};l.dictionaryConverter=function(r){return s=>{const i=l.util.Type(s);const a={};if(i==="Null"||i==="Undefined"){return a}else if(i!=="Object"){throw l.errors.exception({header:"Dictionary",message:`Expected ${s} to be one of: Null, Undefined, Object.`})}for(const i of r){const{key:r,defaultValue:c,required:d,converter:u}=i;if(d===true){if(!A(s,r)){throw l.errors.exception({header:"Dictionary",message:`Missing required key "${r}".`})}}let p=s[r];const g=A(i,"defaultValue");if(g&&p!==null){p=p??c}if(d||g||p!==undefined){p=u(p);if(i.allowedValues&&!i.allowedValues.includes(p)){throw l.errors.exception({header:"Dictionary",message:`${p} is not an accepted type. Expected one of ${i.allowedValues.join(", ")}.`})}a[r]=p}}return a}};l.nullableConverter=function(r){return s=>{if(s===null){return s}return r(s)}};l.converters.DOMString=function(r,s={}){if(r===null&&s.legacyNullToEmptyString){return""}if(typeof r==="symbol"){throw new TypeError("Could not convert argument of type symbol to string.")}return String(r)};l.converters.ByteString=function(r){const s=l.converters.DOMString(r);for(let r=0;r255){throw new TypeError("Cannot convert argument to a ByteString because the character at "+`index ${r} has a value of ${s.charCodeAt(r)} which is greater than 255.`)}}return s};l.converters.USVString=c;l.converters.boolean=function(r){const s=Boolean(r);return s};l.converters.any=function(r){return r};l.converters["long long"]=function(r){const s=l.util.ConvertToInt(r,64,"signed");return s};l.converters["unsigned long long"]=function(r){const s=l.util.ConvertToInt(r,64,"unsigned");return s};l.converters["unsigned long"]=function(r){const s=l.util.ConvertToInt(r,32,"unsigned");return s};l.converters["unsigned short"]=function(r,s){const i=l.util.ConvertToInt(r,16,"unsigned",s);return i};l.converters.ArrayBuffer=function(r,s={}){if(l.util.Type(r)!=="Object"||!a.isAnyArrayBuffer(r)){throw l.errors.conversionFailed({prefix:`${r}`,argument:`${r}`,types:["ArrayBuffer"]})}if(s.allowShared===false&&a.isSharedArrayBuffer(r)){throw l.errors.exception({header:"ArrayBuffer",message:"SharedArrayBuffer is not allowed."})}return r};l.converters.TypedArray=function(r,s,i={}){if(l.util.Type(r)!=="Object"||!a.isTypedArray(r)||r.constructor.name!==s.name){throw l.errors.conversionFailed({prefix:`${s.name}`,argument:`${r}`,types:[s.name]})}if(i.allowShared===false&&a.isSharedArrayBuffer(r.buffer)){throw l.errors.exception({header:"ArrayBuffer",message:"SharedArrayBuffer is not allowed."})}return r};l.converters.DataView=function(r,s={}){if(l.util.Type(r)!=="Object"||!a.isDataView(r)){throw l.errors.exception({header:"DataView",message:"Object is not a DataView."})}if(s.allowShared===false&&a.isSharedArrayBuffer(r.buffer)){throw l.errors.exception({header:"ArrayBuffer",message:"SharedArrayBuffer is not allowed."})}return r};l.converters.BufferSource=function(r,s={}){if(a.isAnyArrayBuffer(r)){return l.converters.ArrayBuffer(r,s)}if(a.isTypedArray(r)){return l.converters.TypedArray(r,r.constructor)}if(a.isDataView(r)){return l.converters.DataView(r,s)}throw new TypeError(`Could not convert ${r} to a BufferSource.`)};l.converters["sequence"]=l.sequenceConverter(l.converters.ByteString);l.converters["sequence>"]=l.sequenceConverter(l.converters["sequence"]);l.converters["record"]=l.recordConverter(l.converters.ByteString,l.converters.ByteString);r.exports={webidl:l}},84854:r=>{"use strict";function getEncoding(r){if(!r){return"failure"}switch(r.trim().toLowerCase()){case"unicode-1-1-utf-8":case"unicode11utf8":case"unicode20utf8":case"utf-8":case"utf8":case"x-unicode20utf8":return"UTF-8";case"866":case"cp866":case"csibm866":case"ibm866":return"IBM866";case"csisolatin2":case"iso-8859-2":case"iso-ir-101":case"iso8859-2":case"iso88592":case"iso_8859-2":case"iso_8859-2:1987":case"l2":case"latin2":return"ISO-8859-2";case"csisolatin3":case"iso-8859-3":case"iso-ir-109":case"iso8859-3":case"iso88593":case"iso_8859-3":case"iso_8859-3:1988":case"l3":case"latin3":return"ISO-8859-3";case"csisolatin4":case"iso-8859-4":case"iso-ir-110":case"iso8859-4":case"iso88594":case"iso_8859-4":case"iso_8859-4:1988":case"l4":case"latin4":return"ISO-8859-4";case"csisolatincyrillic":case"cyrillic":case"iso-8859-5":case"iso-ir-144":case"iso8859-5":case"iso88595":case"iso_8859-5":case"iso_8859-5:1988":return"ISO-8859-5";case"arabic":case"asmo-708":case"csiso88596e":case"csiso88596i":case"csisolatinarabic":case"ecma-114":case"iso-8859-6":case"iso-8859-6-e":case"iso-8859-6-i":case"iso-ir-127":case"iso8859-6":case"iso88596":case"iso_8859-6":case"iso_8859-6:1987":return"ISO-8859-6";case"csisolatingreek":case"ecma-118":case"elot_928":case"greek":case"greek8":case"iso-8859-7":case"iso-ir-126":case"iso8859-7":case"iso88597":case"iso_8859-7":case"iso_8859-7:1987":case"sun_eu_greek":return"ISO-8859-7";case"csiso88598e":case"csisolatinhebrew":case"hebrew":case"iso-8859-8":case"iso-8859-8-e":case"iso-ir-138":case"iso8859-8":case"iso88598":case"iso_8859-8":case"iso_8859-8:1988":case"visual":return"ISO-8859-8";case"csiso88598i":case"iso-8859-8-i":case"logical":return"ISO-8859-8-I";case"csisolatin6":case"iso-8859-10":case"iso-ir-157":case"iso8859-10":case"iso885910":case"l6":case"latin6":return"ISO-8859-10";case"iso-8859-13":case"iso8859-13":case"iso885913":return"ISO-8859-13";case"iso-8859-14":case"iso8859-14":case"iso885914":return"ISO-8859-14";case"csisolatin9":case"iso-8859-15":case"iso8859-15":case"iso885915":case"iso_8859-15":case"l9":return"ISO-8859-15";case"iso-8859-16":return"ISO-8859-16";case"cskoi8r":case"koi":case"koi8":case"koi8-r":case"koi8_r":return"KOI8-R";case"koi8-ru":case"koi8-u":return"KOI8-U";case"csmacintosh":case"mac":case"macintosh":case"x-mac-roman":return"macintosh";case"iso-8859-11":case"iso8859-11":case"iso885911":case"tis-620":case"windows-874":return"windows-874";case"cp1250":case"windows-1250":case"x-cp1250":return"windows-1250";case"cp1251":case"windows-1251":case"x-cp1251":return"windows-1251";case"ansi_x3.4-1968":case"ascii":case"cp1252":case"cp819":case"csisolatin1":case"ibm819":case"iso-8859-1":case"iso-ir-100":case"iso8859-1":case"iso88591":case"iso_8859-1":case"iso_8859-1:1987":case"l1":case"latin1":case"us-ascii":case"windows-1252":case"x-cp1252":return"windows-1252";case"cp1253":case"windows-1253":case"x-cp1253":return"windows-1253";case"cp1254":case"csisolatin5":case"iso-8859-9":case"iso-ir-148":case"iso8859-9":case"iso88599":case"iso_8859-9":case"iso_8859-9:1989":case"l5":case"latin5":case"windows-1254":case"x-cp1254":return"windows-1254";case"cp1255":case"windows-1255":case"x-cp1255":return"windows-1255";case"cp1256":case"windows-1256":case"x-cp1256":return"windows-1256";case"cp1257":case"windows-1257":case"x-cp1257":return"windows-1257";case"cp1258":case"windows-1258":case"x-cp1258":return"windows-1258";case"x-mac-cyrillic":case"x-mac-ukrainian":return"x-mac-cyrillic";case"chinese":case"csgb2312":case"csiso58gb231280":case"gb2312":case"gb_2312":case"gb_2312-80":case"gbk":case"iso-ir-58":case"x-gbk":return"GBK";case"gb18030":return"gb18030";case"big5":case"big5-hkscs":case"cn-big5":case"csbig5":case"x-x-big5":return"Big5";case"cseucpkdfmtjapanese":case"euc-jp":case"x-euc-jp":return"EUC-JP";case"csiso2022jp":case"iso-2022-jp":return"ISO-2022-JP";case"csshiftjis":case"ms932":case"ms_kanji":case"shift-jis":case"shift_jis":case"sjis":case"windows-31j":case"x-sjis":return"Shift_JIS";case"cseuckr":case"csksc56011987":case"euc-kr":case"iso-ir-149":case"korean":case"ks_c_5601-1987":case"ks_c_5601-1989":case"ksc5601":case"ksc_5601":case"windows-949":return"EUC-KR";case"csiso2022kr":case"hz-gb-2312":case"iso-2022-cn":case"iso-2022-cn-ext":case"iso-2022-kr":case"replacement":return"replacement";case"unicodefffe":case"utf-16be":return"UTF-16BE";case"csunicode":case"iso-10646-ucs-2":case"ucs-2":case"unicode":case"unicodefeff":case"utf-16":case"utf-16le":return"UTF-16LE";case"x-user-defined":return"x-user-defined";default:return"failure"}}r.exports={getEncoding:getEncoding}},1446:(r,s,i)=>{"use strict";const{staticPropertyDescriptors:a,readOperation:A,fireAProgressEvent:c}=i(87530);const{kState:l,kError:d,kResult:u,kEvents:p,kAborted:g}=i(29054);const{webidl:h}=i(21744);const{kEnumerableProperty:C}=i(83983);class FileReader extends EventTarget{constructor(){super();this[l]="empty";this[u]=null;this[d]=null;this[p]={loadend:null,error:null,abort:null,load:null,progress:null,loadstart:null}}readAsArrayBuffer(r){h.brandCheck(this,FileReader);h.argumentLengthCheck(arguments,1,{header:"FileReader.readAsArrayBuffer"});r=h.converters.Blob(r,{strict:false});A(this,r,"ArrayBuffer")}readAsBinaryString(r){h.brandCheck(this,FileReader);h.argumentLengthCheck(arguments,1,{header:"FileReader.readAsBinaryString"});r=h.converters.Blob(r,{strict:false});A(this,r,"BinaryString")}readAsText(r,s=undefined){h.brandCheck(this,FileReader);h.argumentLengthCheck(arguments,1,{header:"FileReader.readAsText"});r=h.converters.Blob(r,{strict:false});if(s!==undefined){s=h.converters.DOMString(s)}A(this,r,"Text",s)}readAsDataURL(r){h.brandCheck(this,FileReader);h.argumentLengthCheck(arguments,1,{header:"FileReader.readAsDataURL"});r=h.converters.Blob(r,{strict:false});A(this,r,"DataURL")}abort(){if(this[l]==="empty"||this[l]==="done"){this[u]=null;return}if(this[l]==="loading"){this[l]="done";this[u]=null}this[g]=true;c("abort",this);if(this[l]!=="loading"){c("loadend",this)}}get readyState(){h.brandCheck(this,FileReader);switch(this[l]){case"empty":return this.EMPTY;case"loading":return this.LOADING;case"done":return this.DONE}}get result(){h.brandCheck(this,FileReader);return this[u]}get error(){h.brandCheck(this,FileReader);return this[d]}get onloadend(){h.brandCheck(this,FileReader);return this[p].loadend}set onloadend(r){h.brandCheck(this,FileReader);if(this[p].loadend){this.removeEventListener("loadend",this[p].loadend)}if(typeof r==="function"){this[p].loadend=r;this.addEventListener("loadend",r)}else{this[p].loadend=null}}get onerror(){h.brandCheck(this,FileReader);return this[p].error}set onerror(r){h.brandCheck(this,FileReader);if(this[p].error){this.removeEventListener("error",this[p].error)}if(typeof r==="function"){this[p].error=r;this.addEventListener("error",r)}else{this[p].error=null}}get onloadstart(){h.brandCheck(this,FileReader);return this[p].loadstart}set onloadstart(r){h.brandCheck(this,FileReader);if(this[p].loadstart){this.removeEventListener("loadstart",this[p].loadstart)}if(typeof r==="function"){this[p].loadstart=r;this.addEventListener("loadstart",r)}else{this[p].loadstart=null}}get onprogress(){h.brandCheck(this,FileReader);return this[p].progress}set onprogress(r){h.brandCheck(this,FileReader);if(this[p].progress){this.removeEventListener("progress",this[p].progress)}if(typeof r==="function"){this[p].progress=r;this.addEventListener("progress",r)}else{this[p].progress=null}}get onload(){h.brandCheck(this,FileReader);return this[p].load}set onload(r){h.brandCheck(this,FileReader);if(this[p].load){this.removeEventListener("load",this[p].load)}if(typeof r==="function"){this[p].load=r;this.addEventListener("load",r)}else{this[p].load=null}}get onabort(){h.brandCheck(this,FileReader);return this[p].abort}set onabort(r){h.brandCheck(this,FileReader);if(this[p].abort){this.removeEventListener("abort",this[p].abort)}if(typeof r==="function"){this[p].abort=r;this.addEventListener("abort",r)}else{this[p].abort=null}}}FileReader.EMPTY=FileReader.prototype.EMPTY=0;FileReader.LOADING=FileReader.prototype.LOADING=1;FileReader.DONE=FileReader.prototype.DONE=2;Object.defineProperties(FileReader.prototype,{EMPTY:a,LOADING:a,DONE:a,readAsArrayBuffer:C,readAsBinaryString:C,readAsText:C,readAsDataURL:C,abort:C,readyState:C,result:C,error:C,onloadstart:C,onprogress:C,onload:C,onabort:C,onerror:C,onloadend:C,[Symbol.toStringTag]:{value:"FileReader",writable:false,enumerable:false,configurable:true}});Object.defineProperties(FileReader,{EMPTY:a,LOADING:a,DONE:a});r.exports={FileReader:FileReader}},55504:(r,s,i)=>{"use strict";const{webidl:a}=i(21744);const A=Symbol("ProgressEvent state");class ProgressEvent extends Event{constructor(r,s={}){r=a.converters.DOMString(r);s=a.converters.ProgressEventInit(s??{});super(r,s);this[A]={lengthComputable:s.lengthComputable,loaded:s.loaded,total:s.total}}get lengthComputable(){a.brandCheck(this,ProgressEvent);return this[A].lengthComputable}get loaded(){a.brandCheck(this,ProgressEvent);return this[A].loaded}get total(){a.brandCheck(this,ProgressEvent);return this[A].total}}a.converters.ProgressEventInit=a.dictionaryConverter([{key:"lengthComputable",converter:a.converters.boolean,defaultValue:false},{key:"loaded",converter:a.converters["unsigned long long"],defaultValue:0},{key:"total",converter:a.converters["unsigned long long"],defaultValue:0},{key:"bubbles",converter:a.converters.boolean,defaultValue:false},{key:"cancelable",converter:a.converters.boolean,defaultValue:false},{key:"composed",converter:a.converters.boolean,defaultValue:false}]);r.exports={ProgressEvent:ProgressEvent}},29054:r=>{"use strict";r.exports={kState:Symbol("FileReader state"),kResult:Symbol("FileReader result"),kError:Symbol("FileReader error"),kLastProgressEventFired:Symbol("FileReader last progress event fired timestamp"),kEvents:Symbol("FileReader events"),kAborted:Symbol("FileReader aborted")}},87530:(r,s,i)=>{"use strict";const{kState:a,kError:A,kResult:c,kAborted:l,kLastProgressEventFired:d}=i(29054);const{ProgressEvent:u}=i(55504);const{getEncoding:p}=i(84854);const{DOMException:g}=i(41037);const{serializeAMimeType:h,parseMIMEType:C}=i(685);const{types:y}=i(73837);const{StringDecoder:I}=i(71576);const{btoa:B}=i(14300);const b={enumerable:true,writable:false,configurable:false};function readOperation(r,s,i,u){if(r[a]==="loading"){throw new g("Invalid state","InvalidStateError")}r[a]="loading";r[c]=null;r[A]=null;const p=s.stream();const h=p.getReader();const C=[];let I=h.read();let B=true;(async()=>{while(!r[l]){try{const{done:p,value:g}=await I;if(B&&!r[l]){queueMicrotask((()=>{fireAProgressEvent("loadstart",r)}))}B=false;if(!p&&y.isUint8Array(g)){C.push(g);if((r[d]===undefined||Date.now()-r[d]>=50)&&!r[l]){r[d]=Date.now();queueMicrotask((()=>{fireAProgressEvent("progress",r)}))}I=h.read()}else if(p){queueMicrotask((()=>{r[a]="done";try{const a=packageData(C,i,s.type,u);if(r[l]){return}r[c]=a;fireAProgressEvent("load",r)}catch(s){r[A]=s;fireAProgressEvent("error",r)}if(r[a]!=="loading"){fireAProgressEvent("loadend",r)}}));break}}catch(s){if(r[l]){return}queueMicrotask((()=>{r[a]="done";r[A]=s;fireAProgressEvent("error",r);if(r[a]!=="loading"){fireAProgressEvent("loadend",r)}}));break}}})()}function fireAProgressEvent(r,s){const i=new u(r,{bubbles:false,cancelable:false});s.dispatchEvent(i)}function packageData(r,s,i,a){switch(s){case"DataURL":{let s="data:";const a=C(i||"application/octet-stream");if(a!=="failure"){s+=h(a)}s+=";base64,";const A=new I("latin1");for(const i of r){s+=B(A.write(i))}s+=B(A.end());return s}case"Text":{let s="failure";if(a){s=p(a)}if(s==="failure"&&i){const r=C(i);if(r!=="failure"){s=p(r.parameters.get("charset"))}}if(s==="failure"){s="UTF-8"}return decode(r,s)}case"ArrayBuffer":{const s=combineByteSequences(r);return s.buffer}case"BinaryString":{let s="";const i=new I("latin1");for(const a of r){s+=i.write(a)}s+=i.end();return s}}}function decode(r,s){const i=combineByteSequences(r);const a=BOMSniffing(i);let A=0;if(a!==null){s=a;A=a==="UTF-8"?3:2}const c=i.slice(A);return new TextDecoder(s).decode(c)}function BOMSniffing(r){const[s,i,a]=r;if(s===239&&i===187&&a===191){return"UTF-8"}else if(s===254&&i===255){return"UTF-16BE"}else if(s===255&&i===254){return"UTF-16LE"}return null}function combineByteSequences(r){const s=r.reduce(((r,s)=>r+s.byteLength),0);let i=0;return r.reduce(((r,s)=>{r.set(s,i);i+=s.byteLength;return r}),new Uint8Array(s))}r.exports={staticPropertyDescriptors:b,readOperation:readOperation,fireAProgressEvent:fireAProgressEvent}},21892:(r,s,i)=>{"use strict";const a=Symbol.for("undici.globalDispatcher.1");const{InvalidArgumentError:A}=i(48045);const c=i(7890);if(getGlobalDispatcher()===undefined){setGlobalDispatcher(new c)}function setGlobalDispatcher(r){if(!r||typeof r.dispatch!=="function"){throw new A("Argument agent must implement Agent")}Object.defineProperty(globalThis,a,{value:r,writable:true,enumerable:false,configurable:false})}function getGlobalDispatcher(){return globalThis[a]}r.exports={setGlobalDispatcher:setGlobalDispatcher,getGlobalDispatcher:getGlobalDispatcher}},46930:r=>{"use strict";r.exports=class DecoratorHandler{constructor(r){this.handler=r}onConnect(...r){return this.handler.onConnect(...r)}onError(...r){return this.handler.onError(...r)}onUpgrade(...r){return this.handler.onUpgrade(...r)}onHeaders(...r){return this.handler.onHeaders(...r)}onData(...r){return this.handler.onData(...r)}onComplete(...r){return this.handler.onComplete(...r)}onBodySent(...r){return this.handler.onBodySent(...r)}}},72860:(r,s,i)=>{"use strict";const a=i(83983);const{kBodyUsed:A}=i(72785);const c=i(39491);const{InvalidArgumentError:l}=i(48045);const d=i(82361);const u=[300,301,302,303,307,308];const p=Symbol("body");class BodyAsyncIterable{constructor(r){this[p]=r;this[A]=false}async*[Symbol.asyncIterator](){c(!this[A],"disturbed");this[A]=true;yield*this[p]}}class RedirectHandler{constructor(r,s,i,u){if(s!=null&&(!Number.isInteger(s)||s<0)){throw new l("maxRedirections must be a positive number")}a.validateHandler(u,i.method,i.upgrade);this.dispatch=r;this.location=null;this.abort=null;this.opts={...i,maxRedirections:0};this.maxRedirections=s;this.handler=u;this.history=[];if(a.isStream(this.opts.body)){if(a.bodyLength(this.opts.body)===0){this.opts.body.on("data",(function(){c(false)}))}if(typeof this.opts.body.readableDidRead!=="boolean"){this.opts.body[A]=false;d.prototype.on.call(this.opts.body,"data",(function(){this[A]=true}))}}else if(this.opts.body&&typeof this.opts.body.pipeTo==="function"){this.opts.body=new BodyAsyncIterable(this.opts.body)}else if(this.opts.body&&typeof this.opts.body!=="string"&&!ArrayBuffer.isView(this.opts.body)&&a.isIterable(this.opts.body)){this.opts.body=new BodyAsyncIterable(this.opts.body)}}onConnect(r){this.abort=r;this.handler.onConnect(r,{history:this.history})}onUpgrade(r,s,i){this.handler.onUpgrade(r,s,i)}onError(r){this.handler.onError(r)}onHeaders(r,s,i,A){this.location=this.history.length>=this.maxRedirections||a.isDisturbed(this.opts.body)?null:parseLocation(r,s);if(this.opts.origin){this.history.push(new URL(this.opts.path,this.opts.origin))}if(!this.location){return this.handler.onHeaders(r,s,i,A)}const{origin:c,pathname:l,search:d}=a.parseURL(new URL(this.location,this.opts.origin&&new URL(this.opts.path,this.opts.origin)));const u=d?`${l}${d}`:l;this.opts.headers=cleanRequestHeaders(this.opts.headers,r===303,this.opts.origin!==c);this.opts.path=u;this.opts.origin=c;this.opts.maxRedirections=0;this.opts.query=null;if(r===303&&this.opts.method!=="HEAD"){this.opts.method="GET";this.opts.body=null}}onData(r){if(this.location){}else{return this.handler.onData(r)}}onComplete(r){if(this.location){this.location=null;this.abort=null;this.dispatch(this.opts,this)}else{this.handler.onComplete(r)}}onBodySent(r){if(this.handler.onBodySent){this.handler.onBodySent(r)}}}function parseLocation(r,s){if(u.indexOf(r)===-1){return null}for(let r=0;r{const a=i(39491);const{kRetryHandlerDefaultRetry:A}=i(72785);const{RequestRetryError:c}=i(48045);const{isDisturbed:l,parseHeaders:d,parseRangeHeader:u}=i(83983);function calculateRetryAfterHeader(r){const s=Date.now();const i=new Date(r).getTime()-s;return i}class RetryHandler{constructor(r,s){const{retryOptions:i,...a}=r;const{retry:c,maxRetries:l,maxTimeout:d,minTimeout:u,timeoutFactor:p,methods:g,errorCodes:h,retryAfter:C,statusCodes:y}=i??{};this.dispatch=s.dispatch;this.handler=s.handler;this.opts=a;this.abort=null;this.aborted=false;this.retryOpts={retry:c??RetryHandler[A],retryAfter:C??true,maxTimeout:d??30*1e3,timeout:u??500,timeoutFactor:p??2,maxRetries:l??5,methods:g??["GET","HEAD","OPTIONS","PUT","DELETE","TRACE"],statusCodes:y??[500,502,503,504,429],errorCodes:h??["ECONNRESET","ECONNREFUSED","ENOTFOUND","ENETDOWN","ENETUNREACH","EHOSTDOWN","EHOSTUNREACH","EPIPE"]};this.retryCount=0;this.start=0;this.end=null;this.etag=null;this.resume=null;this.handler.onConnect((r=>{this.aborted=true;if(this.abort){this.abort(r)}else{this.reason=r}}))}onRequestSent(){if(this.handler.onRequestSent){this.handler.onRequestSent()}}onUpgrade(r,s,i){if(this.handler.onUpgrade){this.handler.onUpgrade(r,s,i)}}onConnect(r){if(this.aborted){r(this.reason)}else{this.abort=r}}onBodySent(r){if(this.handler.onBodySent)return this.handler.onBodySent(r)}static[A](r,{state:s,opts:i},a){const{statusCode:A,code:c,headers:l}=r;const{method:d,retryOptions:u}=i;const{maxRetries:p,timeout:g,maxTimeout:h,timeoutFactor:C,statusCodes:y,errorCodes:I,methods:B}=u;let{counter:b,currentTimeout:Q}=s;Q=Q!=null&&Q>0?Q:g;if(c&&c!=="UND_ERR_REQ_RETRY"&&c!=="UND_ERR_SOCKET"&&!I.includes(c)){a(r);return}if(Array.isArray(B)&&!B.includes(d)){a(r);return}if(A!=null&&Array.isArray(y)&&!y.includes(A)){a(r);return}if(b>p){a(r);return}let w=l!=null&&l["retry-after"];if(w){w=Number(w);w=isNaN(w)?calculateRetryAfterHeader(w):w*1e3}const v=w>0?Math.min(w,h):Math.min(Q*C**b,h);s.currentTimeout=v;setTimeout((()=>a(null)),v)}onHeaders(r,s,i,A){const l=d(s);this.retryCount+=1;if(r>=300){this.abort(new c("Request failed",r,{headers:l,count:this.retryCount}));return false}if(this.resume!=null){this.resume=null;if(r!==206){return true}const s=u(l["content-range"]);if(!s){this.abort(new c("Content-Range mismatch",r,{headers:l,count:this.retryCount}));return false}if(this.etag!=null&&this.etag!==l.etag){this.abort(new c("ETag mismatch",r,{headers:l,count:this.retryCount}));return false}const{start:A,size:d,end:p=d}=s;a(this.start===A,"content-range mismatch");a(this.end==null||this.end===p,"content-range mismatch");this.resume=i;return true}if(this.end==null){if(r===206){const c=u(l["content-range"]);if(c==null){return this.handler.onHeaders(r,s,i,A)}const{start:d,size:p,end:g=p}=c;a(d!=null&&Number.isFinite(d)&&this.start!==d,"content-range mismatch");a(Number.isFinite(d));a(g!=null&&Number.isFinite(g)&&this.end!==g,"invalid content-length");this.start=d;this.end=g}if(this.end==null){const r=l["content-length"];this.end=r!=null?Number(r):null}a(Number.isFinite(this.start));a(this.end==null||Number.isFinite(this.end),"invalid content-length");this.resume=i;this.etag=l.etag!=null?l.etag:null;return this.handler.onHeaders(r,s,i,A)}const p=new c("Request failed",r,{headers:l,count:this.retryCount});this.abort(p);return false}onData(r){this.start+=r.length;return this.handler.onData(r)}onComplete(r){this.retryCount=0;return this.handler.onComplete(r)}onError(r){if(this.aborted||l(this.opts.body)){return this.handler.onError(r)}this.retryOpts.retry(r,{state:{counter:this.retryCount++,currentTimeout:this.retryAfter},opts:{retryOptions:this.retryOpts,...this.opts}},onRetry.bind(this));function onRetry(r){if(r!=null||this.aborted||l(this.opts.body)){return this.handler.onError(r)}if(this.start!==0){this.opts={...this.opts,headers:{...this.opts.headers,range:`bytes=${this.start}-${this.end??""}`}}}try{this.dispatch(this.opts,this)}catch(r){this.handler.onError(r)}}}}r.exports=RetryHandler},38861:(r,s,i)=>{"use strict";const a=i(72860);function createRedirectInterceptor({maxRedirections:r}){return s=>function Intercept(i,A){const{maxRedirections:c=r}=i;if(!c){return s(i,A)}const l=new a(s,c,i,A);i={...i,maxRedirections:0};return s(i,l)}}r.exports=createRedirectInterceptor},30953:(r,s,i)=>{"use strict";Object.defineProperty(s,"__esModule",{value:true});s.SPECIAL_HEADERS=s.HEADER_STATE=s.MINOR=s.MAJOR=s.CONNECTION_TOKEN_CHARS=s.HEADER_CHARS=s.TOKEN=s.STRICT_TOKEN=s.HEX=s.URL_CHAR=s.STRICT_URL_CHAR=s.USERINFO_CHARS=s.MARK=s.ALPHANUM=s.NUM=s.HEX_MAP=s.NUM_MAP=s.ALPHA=s.FINISH=s.H_METHOD_MAP=s.METHOD_MAP=s.METHODS_RTSP=s.METHODS_ICE=s.METHODS_HTTP=s.METHODS=s.LENIENT_FLAGS=s.FLAGS=s.TYPE=s.ERROR=void 0;const a=i(41891);var A;(function(r){r[r["OK"]=0]="OK";r[r["INTERNAL"]=1]="INTERNAL";r[r["STRICT"]=2]="STRICT";r[r["LF_EXPECTED"]=3]="LF_EXPECTED";r[r["UNEXPECTED_CONTENT_LENGTH"]=4]="UNEXPECTED_CONTENT_LENGTH";r[r["CLOSED_CONNECTION"]=5]="CLOSED_CONNECTION";r[r["INVALID_METHOD"]=6]="INVALID_METHOD";r[r["INVALID_URL"]=7]="INVALID_URL";r[r["INVALID_CONSTANT"]=8]="INVALID_CONSTANT";r[r["INVALID_VERSION"]=9]="INVALID_VERSION";r[r["INVALID_HEADER_TOKEN"]=10]="INVALID_HEADER_TOKEN";r[r["INVALID_CONTENT_LENGTH"]=11]="INVALID_CONTENT_LENGTH";r[r["INVALID_CHUNK_SIZE"]=12]="INVALID_CHUNK_SIZE";r[r["INVALID_STATUS"]=13]="INVALID_STATUS";r[r["INVALID_EOF_STATE"]=14]="INVALID_EOF_STATE";r[r["INVALID_TRANSFER_ENCODING"]=15]="INVALID_TRANSFER_ENCODING";r[r["CB_MESSAGE_BEGIN"]=16]="CB_MESSAGE_BEGIN";r[r["CB_HEADERS_COMPLETE"]=17]="CB_HEADERS_COMPLETE";r[r["CB_MESSAGE_COMPLETE"]=18]="CB_MESSAGE_COMPLETE";r[r["CB_CHUNK_HEADER"]=19]="CB_CHUNK_HEADER";r[r["CB_CHUNK_COMPLETE"]=20]="CB_CHUNK_COMPLETE";r[r["PAUSED"]=21]="PAUSED";r[r["PAUSED_UPGRADE"]=22]="PAUSED_UPGRADE";r[r["PAUSED_H2_UPGRADE"]=23]="PAUSED_H2_UPGRADE";r[r["USER"]=24]="USER"})(A=s.ERROR||(s.ERROR={}));var c;(function(r){r[r["BOTH"]=0]="BOTH";r[r["REQUEST"]=1]="REQUEST";r[r["RESPONSE"]=2]="RESPONSE"})(c=s.TYPE||(s.TYPE={}));var l;(function(r){r[r["CONNECTION_KEEP_ALIVE"]=1]="CONNECTION_KEEP_ALIVE";r[r["CONNECTION_CLOSE"]=2]="CONNECTION_CLOSE";r[r["CONNECTION_UPGRADE"]=4]="CONNECTION_UPGRADE";r[r["CHUNKED"]=8]="CHUNKED";r[r["UPGRADE"]=16]="UPGRADE";r[r["CONTENT_LENGTH"]=32]="CONTENT_LENGTH";r[r["SKIPBODY"]=64]="SKIPBODY";r[r["TRAILING"]=128]="TRAILING";r[r["TRANSFER_ENCODING"]=512]="TRANSFER_ENCODING"})(l=s.FLAGS||(s.FLAGS={}));var d;(function(r){r[r["HEADERS"]=1]="HEADERS";r[r["CHUNKED_LENGTH"]=2]="CHUNKED_LENGTH";r[r["KEEP_ALIVE"]=4]="KEEP_ALIVE"})(d=s.LENIENT_FLAGS||(s.LENIENT_FLAGS={}));var u;(function(r){r[r["DELETE"]=0]="DELETE";r[r["GET"]=1]="GET";r[r["HEAD"]=2]="HEAD";r[r["POST"]=3]="POST";r[r["PUT"]=4]="PUT";r[r["CONNECT"]=5]="CONNECT";r[r["OPTIONS"]=6]="OPTIONS";r[r["TRACE"]=7]="TRACE";r[r["COPY"]=8]="COPY";r[r["LOCK"]=9]="LOCK";r[r["MKCOL"]=10]="MKCOL";r[r["MOVE"]=11]="MOVE";r[r["PROPFIND"]=12]="PROPFIND";r[r["PROPPATCH"]=13]="PROPPATCH";r[r["SEARCH"]=14]="SEARCH";r[r["UNLOCK"]=15]="UNLOCK";r[r["BIND"]=16]="BIND";r[r["REBIND"]=17]="REBIND";r[r["UNBIND"]=18]="UNBIND";r[r["ACL"]=19]="ACL";r[r["REPORT"]=20]="REPORT";r[r["MKACTIVITY"]=21]="MKACTIVITY";r[r["CHECKOUT"]=22]="CHECKOUT";r[r["MERGE"]=23]="MERGE";r[r["M-SEARCH"]=24]="M-SEARCH";r[r["NOTIFY"]=25]="NOTIFY";r[r["SUBSCRIBE"]=26]="SUBSCRIBE";r[r["UNSUBSCRIBE"]=27]="UNSUBSCRIBE";r[r["PATCH"]=28]="PATCH";r[r["PURGE"]=29]="PURGE";r[r["MKCALENDAR"]=30]="MKCALENDAR";r[r["LINK"]=31]="LINK";r[r["UNLINK"]=32]="UNLINK";r[r["SOURCE"]=33]="SOURCE";r[r["PRI"]=34]="PRI";r[r["DESCRIBE"]=35]="DESCRIBE";r[r["ANNOUNCE"]=36]="ANNOUNCE";r[r["SETUP"]=37]="SETUP";r[r["PLAY"]=38]="PLAY";r[r["PAUSE"]=39]="PAUSE";r[r["TEARDOWN"]=40]="TEARDOWN";r[r["GET_PARAMETER"]=41]="GET_PARAMETER";r[r["SET_PARAMETER"]=42]="SET_PARAMETER";r[r["REDIRECT"]=43]="REDIRECT";r[r["RECORD"]=44]="RECORD";r[r["FLUSH"]=45]="FLUSH"})(u=s.METHODS||(s.METHODS={}));s.METHODS_HTTP=[u.DELETE,u.GET,u.HEAD,u.POST,u.PUT,u.CONNECT,u.OPTIONS,u.TRACE,u.COPY,u.LOCK,u.MKCOL,u.MOVE,u.PROPFIND,u.PROPPATCH,u.SEARCH,u.UNLOCK,u.BIND,u.REBIND,u.UNBIND,u.ACL,u.REPORT,u.MKACTIVITY,u.CHECKOUT,u.MERGE,u["M-SEARCH"],u.NOTIFY,u.SUBSCRIBE,u.UNSUBSCRIBE,u.PATCH,u.PURGE,u.MKCALENDAR,u.LINK,u.UNLINK,u.PRI,u.SOURCE];s.METHODS_ICE=[u.SOURCE];s.METHODS_RTSP=[u.OPTIONS,u.DESCRIBE,u.ANNOUNCE,u.SETUP,u.PLAY,u.PAUSE,u.TEARDOWN,u.GET_PARAMETER,u.SET_PARAMETER,u.REDIRECT,u.RECORD,u.FLUSH,u.GET,u.POST];s.METHOD_MAP=a.enumToMap(u);s.H_METHOD_MAP={};Object.keys(s.METHOD_MAP).forEach((r=>{if(/^H/.test(r)){s.H_METHOD_MAP[r]=s.METHOD_MAP[r]}}));var p;(function(r){r[r["SAFE"]=0]="SAFE";r[r["SAFE_WITH_CB"]=1]="SAFE_WITH_CB";r[r["UNSAFE"]=2]="UNSAFE"})(p=s.FINISH||(s.FINISH={}));s.ALPHA=[];for(let r="A".charCodeAt(0);r<="Z".charCodeAt(0);r++){s.ALPHA.push(String.fromCharCode(r));s.ALPHA.push(String.fromCharCode(r+32))}s.NUM_MAP={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9};s.HEX_MAP={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15};s.NUM=["0","1","2","3","4","5","6","7","8","9"];s.ALPHANUM=s.ALPHA.concat(s.NUM);s.MARK=["-","_",".","!","~","*","'","(",")"];s.USERINFO_CHARS=s.ALPHANUM.concat(s.MARK).concat(["%",";",":","&","=","+","$",","]);s.STRICT_URL_CHAR=["!",'"',"$","%","&","'","(",")","*","+",",","-",".","/",":",";","<","=",">","@","[","\\","]","^","_","`","{","|","}","~"].concat(s.ALPHANUM);s.URL_CHAR=s.STRICT_URL_CHAR.concat(["\t","\f"]);for(let r=128;r<=255;r++){s.URL_CHAR.push(r)}s.HEX=s.NUM.concat(["a","b","c","d","e","f","A","B","C","D","E","F"]);s.STRICT_TOKEN=["!","#","$","%","&","'","*","+","-",".","^","_","`","|","~"].concat(s.ALPHANUM);s.TOKEN=s.STRICT_TOKEN.concat([" "]);s.HEADER_CHARS=["\t"];for(let r=32;r<=255;r++){if(r!==127){s.HEADER_CHARS.push(r)}}s.CONNECTION_TOKEN_CHARS=s.HEADER_CHARS.filter((r=>r!==44));s.MAJOR=s.NUM_MAP;s.MINOR=s.MAJOR;var g;(function(r){r[r["GENERAL"]=0]="GENERAL";r[r["CONNECTION"]=1]="CONNECTION";r[r["CONTENT_LENGTH"]=2]="CONTENT_LENGTH";r[r["TRANSFER_ENCODING"]=3]="TRANSFER_ENCODING";r[r["UPGRADE"]=4]="UPGRADE";r[r["CONNECTION_KEEP_ALIVE"]=5]="CONNECTION_KEEP_ALIVE";r[r["CONNECTION_CLOSE"]=6]="CONNECTION_CLOSE";r[r["CONNECTION_UPGRADE"]=7]="CONNECTION_UPGRADE";r[r["TRANSFER_ENCODING_CHUNKED"]=8]="TRANSFER_ENCODING_CHUNKED"})(g=s.HEADER_STATE||(s.HEADER_STATE={}));s.SPECIAL_HEADERS={connection:g.CONNECTION,"content-length":g.CONTENT_LENGTH,"proxy-connection":g.CONNECTION,"transfer-encoding":g.TRANSFER_ENCODING,upgrade:g.UPGRADE}},61145:r=>{r.exports="AGFzbQEAAAABMAhgAX8Bf2ADf39/AX9gBH9/f38Bf2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ACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQCAQDscBAAECAwQFBgcICQoLDA0ODxAREhMUFRYXGBkaGxweHyAhIyUoP0BBREVGR0hJSktMTU9QUVJT3gNXWVtcXWBi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IEAkAgACAQIAEQp4CAgAAiEA0AIAEhAQxUCyAAQeUANgIcIAAgATYCFCAAIBA2AgxBACEQDLMBCyAAKAIEIRAgAEEANgIEAkAgACAQIAEQp4CAgAAiEA0AIAEhAQxNCyAAQdIANgIcIAAgATYCFCAAIBA2AgxBACEQDLIBCyAAKAIEIRAgAEEANgIEAkAgACAQIAEQp4CAgAAiEA0AIAEhAQxNCyAAQdMANgIcIAAgATYCFCAAIBA2AgxBACEQDLEBCyAAKAIEIRAgAEEANgIEAkAgACAQIAEQp4CAgAAiEA0AIAEhAQxRCyAAQeUANgIcIAAgATYCFCAAIBA2AgxBACEQDLABCyAAQQA2AhwgACABNgIUIABBxoqAgAA2AhAgAEEHNgIMQQAhEAyvAQsgACgCBCEQIABBADYCBAJAIAAgECABEKeAgIAAIhANACABIQEMSQsgAEHSADYCHCAAIAE2AhQgACAQNgIMQQAhEAyuAQsgACgCBCEQIABBADYCBAJAIAAgECABEKeAgIAAIhANACABIQEMSQsgAEHTADYCHCAAIAE2AhQgACAQNgIMQQAhEAytAQsgACgCBCEQIABBADYCBAJAIAAgECABEKeAgIAAIhANACABIQEMTQsgAEHlADYCHCAAIAE2AhQgACAQNgIMQQAhEAysAQsgAEEANgIcIAAgATYCFCAAQdyIgIAANgIQIABBBzYCDEEAIRAMqwELIBBBP0cNASABQQFqIQELQQUhEAyQAQtBACEQIABBADYCHCAAIAE2AhQgAEH9koCAADYCECAAQQc2AgwMqAELIAAoAgQhECAAQQA2AgQCQCAAIBAgARCngICAACIQDQAgASEBDEILIABB0gA2AhwgACABNgIUIAAgEDYCDEEAIRAMpwELIAAoAgQhECAAQQA2AgQCQCAAIBAgARCngICAACIQDQAgASEBDEILIABB0wA2AhwgACABNgIUIAAgEDYCDEEAIRAMpgELIAAoAgQhECAAQQA2AgQCQCAAIBAgARCngICAACIQDQAgASEBDEYLIABB5QA2AhwgACABNgIUIAAgEDYCDEEAIRAMpQELIAAoAgQhASAAQQA2AgQCQCAAIAEgFBCngIC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EIcSICdCIEIARBgOAfakEQdkEEcSIEdCIGIAZBgIAPakEQdkECcSIGdEEPdiACIARyIAZyayICQQF0IAAgAkEVanZBAXFyQRxqIQILIAEgAjYCHCABQgA3AhAgAkECdEG40oCAAGohBAJAAkBBACgCjNCAgAAiBkEBIAJ0IgNxDQAgBCABNgIAQQAgBiADcjYCjNCAgAAgASAENgIYIAEgATYCCCABIAE2AgwMAQsgAEEAQRkgAkEBdmsgAkEfRht0IQIgBCgCACEGAkADQCAGIgQoAgRBeHEgAEYNASACQR12IQYgAkEBdCECIAQgBkEEcWpBEGoiAygCACIGDQALIAMgATYCACABIAQ2AhggASABNgIMIAEgATYCCAwBCyAEKAIIIgAgATYCDCAEIAE2AgggAUEANgIYIAEgBDYCDCABIAA2AggLQQBBACgCqNCAgABBf2oiAUF/IAEbNgKo0ICAAAsLBAAAAAtOAAJAIAANAD8AQRB0DwsCQCAAQf//A3ENACAAQX9MDQACQCAAQRB2QAAiAEF/Rw0AQQBBMDYC+NOAgABBfw8LIABBEHQPCxDKgICAAAAL8gICA38BfgJAIAJFDQAgACABOgAAIAIgAGoiA0F/aiABOgAAIAJBA0kNACAAIAE6AAIgACABOgABIANBfWogAToAACADQX5qIAE6AAAgAkEHSQ0AIAAgAToAAyADQXxqIAE6AAAgAkEJSQ0AIABBACAAa0EDcSIEaiIDIAFB/wFxQYGChAhsIgE2AgAgAyACIARrQXxxIgRqIgJBfGogATYCACAEQQlJDQAgAyABNgIIIAMgATYCBCACQXhqIAE2AgAgAkF0aiABNgIAIARBGUkNACADIAE2AhggAyABNgIUIAMgATYCECADIAE2AgwgAkFwaiABNgIAIAJBbGogATYCACACQWhqIAE2AgAgAkFkaiABNgIAIAQgA0EEcUEYciIFayICQSBJDQAgAa1CgYCAgBB+IQYgAyAFaiEBA0AgASAGNwMYIAEgBjcDECABIAY3AwggASAGNwMAIAFBIGohASACQWBqIgJBH0sNAAsLIAALC45IAQBBgAgLhkgBAAAAAgAAAAMAAAAAAAAAAAAAA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AAvATAiAkECcUUNAQwCC0EAIQEgAC8BMCICQQFxRQ0BC0EBIQEgAC0AKEEBRg0AIAAvATJB//8DcSIAQZx/akHkAEkNACAAQcwBRg0AIABBsAJGDQAgAkHAAHENAEEAIQEgAkGIBHFBgARGDQAgAkEocUEARyEBCyABC0kBAXsgAEEQav0MAAAAAAAAAAAAAAAAAAAAACIB/QsDACAAIAH9CwMAIABBMGogAf0LAwAgAEEgaiAB/QsDACAAQd0BNgIcQQALewEBfwJAIAAoAgwiAw0AAkAgACgCBEUNACAAIAE2AgQLAkAgACABIAIQxICAgAAiAw0AIAAoAgwPCyAAIAM2AhxBACEDIAAoAgQiAUUNACAAIAEgAiAAKAIIEYGAgIAAACIBRQ0AIAAgAjYCFCAAIAE2AgwgASEDCyADC+TzAQMOfwN+BH8jgICAgABBEGsiAySAgICAACABIQQgASEFIAEhBiABIQcgASEIIAEhCSABIQogASELIAEhDCABIQ0gASEOIAEhDwJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQCAAKAIcIhBBf2o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JwtBngEhEAwmC0GfASEQDCULQaABIRAMJAtBoQEhEAwjC0GiASEQDCILQaMBIRAMIQtBpAEhEAwgC0GlASEQDB8LQaYBIRAMHgtBpwEhEAwdC0GoASEQDBwLQakBIRAMGwtBqgEhEAwaC0GrASEQDBkLQawBIRAMGAtBrQEhEAwXC0GuASEQDBYLQQEhEAwVC0GvASEQDBQLQbABIRAMEwtBsQEhEAwSC0GzASEQDBELQbIBIRAMEAtBtAEhEAwPC0G1ASEQDA4LQbYBIRAMDQtBtwEhEAwMC0G4ASEQDAsLQbkBIRAMCgtBugEhEAwJC0G7ASEQDAgLQcYBIRAMBwtBvAEhEAwGC0G9ASEQDAULQb4BIRAMBAtBvwEhEAwDC0HAASEQDAILQcIBIRAMAQtBwQEhEAsDQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAA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ASACRw1/QeoAIRAM+wMLIAEiASACRw17QegAIRAM+gMLIAEiASACRw14QeYAIRAM+QMLIAEiASACRw0aQRghEAz4AwsgASIBIAJHDRRBEiEQDPcDCyABIgEgAkcNWUHFACEQDPYDCyABIgEgAkcNSkE/IRAM9QMLIAEiASACRw1IQTwhEAz0AwsgASIBIAJHDUFBMSEQDPMDCyAALQAuQQFGDesDDIcCCyAAIAEiASACEMCAgIAAQQFHDeYBIABCADcDIAznAQsgACABIgEgAhC0gICAACIQDecBIAEhAQz1AgsCQCABIgEgAkcNAEEGIRAM8AMLIAAgAUEBaiIBIAIQu4CAgAAiEA3oASABIQEMMQsgAEIANwMgQRIhEAzVAwsgASIQIAJHDStBHSEQDO0DCwJAIAEiASACRg0AIAFBAWohAUEQIRAM1AMLQQchEAzsAwsgAEIAIAApAyAiESACIAEiEGutIhJ9IhMgEyARVhs3AyAgESASViIURQ3lAUEIIRAM6wMLAkAgASIBIAJGDQAgAEGJgICAADYCCCAAIAE2AgQgASEBQRQhEAzSAwtBCSEQDOoDCyABIQEgACkDIFAN5AEgASEBDPICCwJAIAEiASACRw0AQQshEAzpAwsgACABQQFqIgEgAhC2gICAACIQDeUBIAEhAQzyAgsgACABIgEgAhC4gICAACIQDeUBIAEhAQzyAgsgACABIgEgAhC4gICAACIQDeYBIAEhAQwNCyAAIAEiASACELqAgIAAIhAN5wEgASEBDPACCwJAIAEiASACRw0AQQ8hEAzlAwsgAS0AACIQQTtGDQggEEENRw3oASABQQFqIQEM7wILIAAgASIBIAIQuoCAgAAiEA3oASABIQEM8gILA0ACQCABLQAAQfC1gIAAai0AACIQQQFGDQAgEEECRw3rASAAKAIEIRAgAEEANgIEIAAgECABQQFqIgEQuYCAgAAiEA3qASABIQEM9AILIAFBAWoiASACRw0AC0ESIRAM4gMLIAAgASIBIAIQuoCAgAAiEA3pASABIQEMCgsgASIBIAJHDQZBGyEQDOADCwJAIAEiASACRw0AQRYhEAzgAwsgAEGKgICAADYCCCAAIAE2AgQgAC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aiEBQc8AIRAMogELIAAoAgQhBCAAQQA2AgQCQCAAIAQgARCtgICAACIEDQAgASEBDKcBCyAAQd4ANgIcIAAgATYCFCAAIAQ2AgxBACEQDLoBCyAAQQA2AgAgF0EBaiEBAkAgAC0AKUEjTw0AIAEhAQxZCyAAQQA2AhwgACABNgIUIABB04mAgAA2AhAgAEEINgIMQQAhEAy5AQsgAEEANgIAC0EAIRAgAEEANgIcIAAgATYCFCAAQZCzgIAANgIQIABBCDYCDAy3AQsgAEEANgIAIBdBAWohAQJAIAAtAClBIUcNACABIQEMVgsgAEEANgIcIAAgATYCFCAAQZuKgIAANgIQIABBCDYCDEEAIRAMtgELIABBADYCACAXQQFqIQECQCAALQApIhBBXWpBC08NACABIQEMVQsCQCAQQQZLDQBBASAQdEHKAHFFDQAgASEBDFULQQAhECAAQQA2AhwgACABNgIUIABB94mAgAA2AhAgAEEINgIMDLUBCyAQQRVGDXEgAEEANgIcIAAgATYCFCAAQbmNgIAANgIQIABBGjYCDEEAIRAMtAELIAAoAgQhECAAQQA2AgQCQCAAIBAgARCngICAACIQDQAgASEBDFQLIABB5QA2AhwgACABNgIUIAAgEDYCDEEAIRAMswELIAAoAgQhECAAQQA2AgQCQCAAIBAgARCngICAACIQDQAgASEBDE0LIABB0gA2AhwgACABNgIUIAAgEDYCDEEAIRAMsgELIAAoAgQhECAAQQA2AgQCQCAAIBAgARCngICAACIQDQAgASEBDE0LIABB0wA2AhwgACABNgIUIAAgEDYCDEEAIRAMsQELIAAoAgQhECAAQQA2AgQCQCAAIBAgARCngICAACIQDQAgASEBDFELIABB5QA2AhwgACABNgIUIAAgEDYCDEEAIRAMsAELIABBADYCHCAAIAE2AhQgAEHGioCAADYCECAAQQc2AgxBACEQDK8BCyAAKAIEIRAgAEEANgIEAkAgACAQIAEQp4CAgAAiEA0AIAEhAQxJCyAAQdIANgIcIAAgATYCFCAAIBA2AgxBACEQDK4BCyAAKAIEIRAgAEEANgIEAkAgACAQIAEQp4CAgAAiEA0AI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05TQ0hTRUFZU1RBVENIR0VPUkRJUkVDVE9SVFJDSFBBUkFNRVRFUlVSQ0VCU0NSSUJFQVJET1dOQUNFSU5ETktDS1VCU0NSSUJFSFRUUC9BRFRQLw=="},41891:(r,s)=>{"use strict";Object.defineProperty(s,"__esModule",{value:true});s.enumToMap=void 0;function enumToMap(r){const s={};Object.keys(r).forEach((i=>{const a=r[i];if(typeof a==="number"){s[i]=a}}));return s}s.enumToMap=enumToMap},66771:(r,s,i)=>{"use strict";const{kClients:a}=i(72785);const A=i(7890);const{kAgent:c,kMockAgentSet:l,kMockAgentGet:d,kDispatches:u,kIsMockActive:p,kNetConnect:g,kGetNetConnect:h,kOptions:C,kFactory:y}=i(24347);const I=i(58687);const B=i(26193);const{matchValue:b,buildMockOptions:Q}=i(79323);const{InvalidArgumentError:w,UndiciError:v}=i(48045);const S=i(60412);const R=i(78891);const N=i(86823);class FakeWeakRef{constructor(r){this.value=r}deref(){return this.value}}class MockAgent extends S{constructor(r){super(r);this[g]=true;this[p]=true;if(r&&r.agent&&typeof r.agent.dispatch!=="function"){throw new w("Argument opts.agent must implement Agent")}const s=r&&r.agent?r.agent:new A(r);this[c]=s;this[a]=s[a];this[C]=Q(r)}get(r){let s=this[d](r);if(!s){s=this[y](r);this[l](r,s)}return s}dispatch(r,s){this.get(r.origin);return this[c].dispatch(r,s)}async close(){await this[c].close();this[a].clear()}deactivate(){this[p]=false}activate(){this[p]=true}enableNetConnect(r){if(typeof r==="string"||typeof r==="function"||r instanceof RegExp){if(Array.isArray(this[g])){this[g].push(r)}else{this[g]=[r]}}else if(typeof r==="undefined"){this[g]=true}else{throw new w("Unsupported matcher. Must be one of String|Function|RegExp.")}}disableNetConnect(){this[g]=false}get isMockActive(){return this[p]}[l](r,s){this[a].set(r,new FakeWeakRef(s))}[y](r){const s=Object.assign({agent:this},this[C]);return this[C]&&this[C].connections===1?new I(r,s):new B(r,s)}[d](r){const s=this[a].get(r);if(s){return s.deref()}if(typeof r!=="string"){const s=this[y]("http://localhost:9999");this[l](r,s);return s}for(const[s,i]of Array.from(this[a])){const a=i.deref();if(a&&typeof s!=="string"&&b(s,r)){const s=this[y](r);this[l](r,s);s[u]=a[u];return s}}}[h](){return this[g]}pendingInterceptors(){const r=this[a];return Array.from(r.entries()).flatMap((([r,s])=>s.deref()[u].map((s=>({...s,origin:r}))))).filter((({pending:r})=>r))}assertNoPendingInterceptors({pendingInterceptorsFormatter:r=new N}={}){const s=this.pendingInterceptors();if(s.length===0){return}const i=new R("interceptor","interceptors").pluralize(s.length);throw new v(`\n${i.count} ${i.noun} ${i.is} pending:\n\n${r.format(s)}\n`.trim())}}r.exports=MockAgent},58687:(r,s,i)=>{"use strict";const{promisify:a}=i(73837);const A=i(33598);const{buildMockDispatch:c}=i(79323);const{kDispatches:l,kMockAgent:d,kClose:u,kOriginalClose:p,kOrigin:g,kOriginalDispatch:h,kConnected:C}=i(24347);const{MockInterceptor:y}=i(90410);const I=i(72785);const{InvalidArgumentError:B}=i(48045);class MockClient extends A{constructor(r,s){super(r,s);if(!s||!s.agent||typeof s.agent.dispatch!=="function"){throw new B("Argument opts.agent must implement Agent")}this[d]=s.agent;this[g]=r;this[l]=[];this[C]=1;this[h]=this.dispatch;this[p]=this.close.bind(this);this.dispatch=c.call(this);this.close=this[u]}get[I.kConnected](){return this[C]}intercept(r){return new y(r,this[l])}async[u](){await a(this[p])();this[C]=0;this[d][I.kClients].delete(this[g])}}r.exports=MockClient},50888:(r,s,i)=>{"use strict";const{UndiciError:a}=i(48045);class MockNotMatchedError extends a{constructor(r){super(r);Error.captureStackTrace(this,MockNotMatchedError);this.name="MockNotMatchedError";this.message=r||"The request does not match any registered mock dispatches";this.code="UND_MOCK_ERR_MOCK_NOT_MATCHED"}}r.exports={MockNotMatchedError:MockNotMatchedError}},90410:(r,s,i)=>{"use strict";const{getResponseData:a,buildKey:A,addMockDispatch:c}=i(79323);const{kDispatches:l,kDispatchKey:d,kDefaultHeaders:u,kDefaultTrailers:p,kContentLength:g,kMockDispatch:h}=i(24347);const{InvalidArgumentError:C}=i(48045);const{buildURL:y}=i(83983);class MockScope{constructor(r){this[h]=r}delay(r){if(typeof r!=="number"||!Number.isInteger(r)||r<=0){throw new C("waitInMs must be a valid integer > 0")}this[h].delay=r;return this}persist(){this[h].persist=true;return this}times(r){if(typeof r!=="number"||!Number.isInteger(r)||r<=0){throw new C("repeatTimes must be a valid integer > 0")}this[h].times=r;return this}}class MockInterceptor{constructor(r,s){if(typeof r!=="object"){throw new C("opts must be an object")}if(typeof r.path==="undefined"){throw new C("opts.path must be defined")}if(typeof r.method==="undefined"){r.method="GET"}if(typeof r.path==="string"){if(r.query){r.path=y(r.path,r.query)}else{const s=new URL(r.path,"data://");r.path=s.pathname+s.search}}if(typeof r.method==="string"){r.method=r.method.toUpperCase()}this[d]=A(r);this[l]=s;this[u]={};this[p]={};this[g]=false}createMockScopeDispatchData(r,s,i={}){const A=a(s);const c=this[g]?{"content-length":A.length}:{};const l={...this[u],...c,...i.headers};const d={...this[p],...i.trailers};return{statusCode:r,data:s,headers:l,trailers:d}}validateReplyParameters(r,s,i){if(typeof r==="undefined"){throw new C("statusCode must be defined")}if(typeof s==="undefined"){throw new C("data must be defined")}if(typeof i!=="object"){throw new C("responseOptions must be an object")}}reply(r){if(typeof r==="function"){const wrappedDefaultsCallback=s=>{const i=r(s);if(typeof i!=="object"){throw new C("reply options callback must return an object")}const{statusCode:a,data:A="",responseOptions:c={}}=i;this.validateReplyParameters(a,A,c);return{...this.createMockScopeDispatchData(a,A,c)}};const s=c(this[l],this[d],wrappedDefaultsCallback);return new MockScope(s)}const[s,i="",a={}]=[...arguments];this.validateReplyParameters(s,i,a);const A=this.createMockScopeDispatchData(s,i,a);const u=c(this[l],this[d],A);return new MockScope(u)}replyWithError(r){if(typeof r==="undefined"){throw new C("error must be defined")}const s=c(this[l],this[d],{error:r});return new MockScope(s)}defaultReplyHeaders(r){if(typeof r==="undefined"){throw new C("headers must be defined")}this[u]=r;return this}defaultReplyTrailers(r){if(typeof r==="undefined"){throw new C("trailers must be defined")}this[p]=r;return this}replyContentLength(){this[g]=true;return this}}r.exports.MockInterceptor=MockInterceptor;r.exports.MockScope=MockScope},26193:(r,s,i)=>{"use strict";const{promisify:a}=i(73837);const A=i(4634);const{buildMockDispatch:c}=i(79323);const{kDispatches:l,kMockAgent:d,kClose:u,kOriginalClose:p,kOrigin:g,kOriginalDispatch:h,kConnected:C}=i(24347);const{MockInterceptor:y}=i(90410);const I=i(72785);const{InvalidArgumentError:B}=i(48045);class MockPool extends A{constructor(r,s){super(r,s);if(!s||!s.agent||typeof s.agent.dispatch!=="function"){throw new B("Argument opts.agent must implement Agent")}this[d]=s.agent;this[g]=r;this[l]=[];this[C]=1;this[h]=this.dispatch;this[p]=this.close.bind(this);this.dispatch=c.call(this);this.close=this[u]}get[I.kConnected](){return this[C]}intercept(r){return new y(r,this[l])}async[u](){await a(this[p])();this[C]=0;this[d][I.kClients].delete(this[g])}}r.exports=MockPool},24347:r=>{"use strict";r.exports={kAgent:Symbol("agent"),kOptions:Symbol("options"),kFactory:Symbol("factory"),kDispatches:Symbol("dispatches"),kDispatchKey:Symbol("dispatch key"),kDefaultHeaders:Symbol("default headers"),kDefaultTrailers:Symbol("default trailers"),kContentLength:Symbol("content length"),kMockAgent:Symbol("mock agent"),kMockAgentSet:Symbol("mock agent set"),kMockAgentGet:Symbol("mock agent get"),kMockDispatch:Symbol("mock dispatch"),kClose:Symbol("close"),kOriginalClose:Symbol("original agent close"),kOrigin:Symbol("origin"),kIsMockActive:Symbol("is mock active"),kNetConnect:Symbol("net connect"),kGetNetConnect:Symbol("get net connect"),kConnected:Symbol("connected")}},79323:(r,s,i)=>{"use strict";const{MockNotMatchedError:a}=i(50888);const{kDispatches:A,kMockAgent:c,kOriginalDispatch:l,kOrigin:d,kGetNetConnect:u}=i(24347);const{buildURL:p,nop:g}=i(83983);const{STATUS_CODES:h}=i(13685);const{types:{isPromise:C}}=i(73837);function matchValue(r,s){if(typeof r==="string"){return r===s}if(r instanceof RegExp){return r.test(s)}if(typeof r==="function"){return r(s)===true}return false}function lowerCaseEntries(r){return Object.fromEntries(Object.entries(r).map((([r,s])=>[r.toLocaleLowerCase(),s])))}function getHeaderByName(r,s){if(Array.isArray(r)){for(let i=0;i!r)).filter((({path:r})=>matchValue(safeUrl(r),A)));if(c.length===0){throw new a(`Mock dispatch not matched for path '${A}'`)}c=c.filter((({method:r})=>matchValue(r,s.method)));if(c.length===0){throw new a(`Mock dispatch not matched for method '${s.method}'`)}c=c.filter((({body:r})=>typeof r!=="undefined"?matchValue(r,s.body):true));if(c.length===0){throw new a(`Mock dispatch not matched for body '${s.body}'`)}c=c.filter((r=>matchHeaders(r,s.headers)));if(c.length===0){throw new a(`Mock dispatch not matched for headers '${typeof s.headers==="object"?JSON.stringify(s.headers):s.headers}'`)}return c[0]}function addMockDispatch(r,s,i){const a={timesInvoked:0,times:1,persist:false,consumed:false};const A=typeof i==="function"?{callback:i}:{...i};const c={...a,...s,pending:true,data:{error:null,...A}};r.push(c);return c}function deleteMockDispatch(r,s){const i=r.findIndex((r=>{if(!r.consumed){return false}return matchKey(r,s)}));if(i!==-1){r.splice(i,1)}}function buildKey(r){const{path:s,method:i,body:a,headers:A,query:c}=r;return{path:s,method:i,body:a,headers:A,query:c}}function generateKeyValues(r){return Object.entries(r).reduce(((r,[s,i])=>[...r,Buffer.from(`${s}`),Array.isArray(i)?i.map((r=>Buffer.from(`${r}`))):Buffer.from(`${i}`)]),[])}function getStatusText(r){return h[r]||"unknown"}async function getResponse(r){const s=[];for await(const i of r){s.push(i)}return Buffer.concat(s).toString("utf8")}function mockDispatch(r,s){const i=buildKey(r);const a=getMockDispatch(this[A],i);a.timesInvoked++;if(a.data.callback){a.data={...a.data,...a.data.callback(r)}}const{data:{statusCode:c,data:l,headers:d,trailers:u,error:p},delay:h,persist:y}=a;const{timesInvoked:I,times:B}=a;a.consumed=!y&&I>=B;a.pending=I0){setTimeout((()=>{handleReply(this[A])}),h)}else{handleReply(this[A])}function handleReply(a,A=l){const p=Array.isArray(r.headers)?buildHeadersFromArray(r.headers):r.headers;const h=typeof A==="function"?A({...r,headers:p}):A;if(C(h)){h.then((r=>handleReply(a,r)));return}const y=getResponseData(h);const I=generateKeyValues(d);const B=generateKeyValues(u);s.abort=g;s.onHeaders(c,I,resume,getStatusText(c));s.onData(Buffer.from(y));s.onComplete(B);deleteMockDispatch(a,i)}function resume(){}return true}function buildMockDispatch(){const r=this[c];const s=this[d];const i=this[l];return function dispatch(A,c){if(r.isMockActive){try{mockDispatch.call(this,A,c)}catch(l){if(l instanceof a){const d=r[u]();if(d===false){throw new a(`${l.message}: subsequent request to origin ${s} was not allowed (net.connect disabled)`)}if(checkNetConnect(d,s)){i.call(this,A,c)}else{throw new a(`${l.message}: subsequent request to origin ${s} was not allowed (net.connect is not enabled for this origin)`)}}else{throw l}}}else{i.call(this,A,c)}}}function checkNetConnect(r,s){const i=new URL(s);if(r===true){return true}else if(Array.isArray(r)&&r.some((r=>matchValue(r,i.host)))){return true}return false}function buildMockOptions(r){if(r){const{agent:s,...i}=r;return i}}r.exports={getResponseData:getResponseData,getMockDispatch:getMockDispatch,addMockDispatch:addMockDispatch,deleteMockDispatch:deleteMockDispatch,buildKey:buildKey,generateKeyValues:generateKeyValues,matchValue:matchValue,getResponse:getResponse,getStatusText:getStatusText,mockDispatch:mockDispatch,buildMockDispatch:buildMockDispatch,checkNetConnect:checkNetConnect,buildMockOptions:buildMockOptions,getHeaderByName:getHeaderByName}},86823:(r,s,i)=>{"use strict";const{Transform:a}=i(12781);const{Console:A}=i(96206);r.exports=class PendingInterceptorsFormatter{constructor({disableColors:r}={}){this.transform=new a({transform(r,s,i){i(null,r)}});this.logger=new A({stdout:this.transform,inspectOptions:{colors:!r&&!process.env.CI}})}format(r){const s=r.map((({method:r,path:s,data:{statusCode:i},persist:a,times:A,timesInvoked:c,origin:l})=>({Method:r,Origin:l,Path:s,"Status code":i,Persistent:a?"✅":"❌",Invocations:c,Remaining:a?Infinity:A-c})));this.logger.table(s);return this.transform.read().toString()}}},78891:r=>{"use strict";const s={pronoun:"it",is:"is",was:"was",this:"this"};const i={pronoun:"they",is:"are",was:"were",this:"these"};r.exports=class Pluralizer{constructor(r,s){this.singular=r;this.plural=s}pluralize(r){const a=r===1;const A=a?s:i;const c=a?this.singular:this.plural;return{...A,count:r,noun:c}}}},68266:r=>{"use strict";const s=2048;const i=s-1;class FixedCircularBuffer{constructor(){this.bottom=0;this.top=0;this.list=new Array(s);this.next=null}isEmpty(){return this.top===this.bottom}isFull(){return(this.top+1&i)===this.bottom}push(r){this.list[this.top]=r;this.top=this.top+1&i}shift(){const r=this.list[this.bottom];if(r===undefined)return null;this.list[this.bottom]=undefined;this.bottom=this.bottom+1&i;return r}}r.exports=class FixedQueue{constructor(){this.head=this.tail=new FixedCircularBuffer}isEmpty(){return this.head.isEmpty()}push(r){if(this.head.isFull()){this.head=this.head.next=new FixedCircularBuffer}this.head.push(r)}shift(){const r=this.tail;const s=r.shift();if(r.isEmpty()&&r.next!==null){this.tail=r.next}return s}}},73198:(r,s,i)=>{"use strict";const a=i(74839);const A=i(68266);const{kConnected:c,kSize:l,kRunning:d,kPending:u,kQueued:p,kBusy:g,kFree:h,kUrl:C,kClose:y,kDestroy:I,kDispatch:B}=i(72785);const b=i(39689);const Q=Symbol("clients");const w=Symbol("needDrain");const v=Symbol("queue");const S=Symbol("closed resolve");const R=Symbol("onDrain");const N=Symbol("onConnect");const x=Symbol("onDisconnect");const D=Symbol("onConnectionError");const k=Symbol("get dispatcher");const T=Symbol("add client");const _=Symbol("remove client");const P=Symbol("stats");class PoolBase extends a{constructor(){super();this[v]=new A;this[Q]=[];this[p]=0;const r=this;this[R]=function onDrain(s,i){const a=r[v];let A=false;while(!A){const s=a.shift();if(!s){break}r[p]--;A=!this.dispatch(s.opts,s.handler)}this[w]=A;if(!this[w]&&r[w]){r[w]=false;r.emit("drain",s,[r,...i])}if(r[S]&&a.isEmpty()){Promise.all(r[Q].map((r=>r.close()))).then(r[S])}};this[N]=(s,i)=>{r.emit("connect",s,[r,...i])};this[x]=(s,i,a)=>{r.emit("disconnect",s,[r,...i],a)};this[D]=(s,i,a)=>{r.emit("connectionError",s,[r,...i],a)};this[P]=new b(this)}get[g](){return this[w]}get[c](){return this[Q].filter((r=>r[c])).length}get[h](){return this[Q].filter((r=>r[c]&&!r[w])).length}get[u](){let r=this[p];for(const{[u]:s}of this[Q]){r+=s}return r}get[d](){let r=0;for(const{[d]:s}of this[Q]){r+=s}return r}get[l](){let r=this[p];for(const{[l]:s}of this[Q]){r+=s}return r}get stats(){return this[P]}async[y](){if(this[v].isEmpty()){return Promise.all(this[Q].map((r=>r.close())))}else{return new Promise((r=>{this[S]=r}))}}async[I](r){while(true){const s=this[v].shift();if(!s){break}s.handler.onError(r)}return Promise.all(this[Q].map((s=>s.destroy(r))))}[B](r,s){const i=this[k]();if(!i){this[w]=true;this[v].push({opts:r,handler:s});this[p]++}else if(!i.dispatch(r,s)){i[w]=true;this[w]=!this[k]()}return!this[w]}[T](r){r.on("drain",this[R]).on("connect",this[N]).on("disconnect",this[x]).on("connectionError",this[D]);this[Q].push(r);if(this[w]){process.nextTick((()=>{if(this[w]){this[R](r[C],[this,r])}}))}return this}[_](r){r.close((()=>{const s=this[Q].indexOf(r);if(s!==-1){this[Q].splice(s,1)}}));this[w]=this[Q].some((r=>!r[w]&&r.closed!==true&&r.destroyed!==true))}}r.exports={PoolBase:PoolBase,kClients:Q,kNeedDrain:w,kAddClient:T,kRemoveClient:_,kGetDispatcher:k}},39689:(r,s,i)=>{const{kFree:a,kConnected:A,kPending:c,kQueued:l,kRunning:d,kSize:u}=i(72785);const p=Symbol("pool");class PoolStats{constructor(r){this[p]=r}get connected(){return this[p][A]}get free(){return this[p][a]}get pending(){return this[p][c]}get queued(){return this[p][l]}get running(){return this[p][d]}get size(){return this[p][u]}}r.exports=PoolStats},4634:(r,s,i)=>{"use strict";const{PoolBase:a,kClients:A,kNeedDrain:c,kAddClient:l,kGetDispatcher:d}=i(73198);const u=i(33598);const{InvalidArgumentError:p}=i(48045);const g=i(83983);const{kUrl:h,kInterceptors:C}=i(72785);const y=i(82067);const I=Symbol("options");const B=Symbol("connections");const b=Symbol("factory");function defaultFactory(r,s){return new u(r,s)}class Pool extends a{constructor(r,{connections:s,factory:i=defaultFactory,connect:a,connectTimeout:A,tls:c,maxCachedSessions:l,socketPath:d,autoSelectFamily:u,autoSelectFamilyAttemptTimeout:Q,allowH2:w,...v}={}){super();if(s!=null&&(!Number.isFinite(s)||s<0)){throw new p("invalid connections")}if(typeof i!=="function"){throw new p("factory must be a function.")}if(a!=null&&typeof a!=="function"&&typeof a!=="object"){throw new p("connect must be a function or an object")}if(typeof a!=="function"){a=y({...c,maxCachedSessions:l,allowH2:w,socketPath:d,timeout:A,...g.nodeHasAutoSelectFamily&&u?{autoSelectFamily:u,autoSelectFamilyAttemptTimeout:Q}:undefined,...a})}this[C]=v.interceptors&&v.interceptors.Pool&&Array.isArray(v.interceptors.Pool)?v.interceptors.Pool:[];this[B]=s||null;this[h]=g.parseOrigin(r);this[I]={...g.deepClone(v),connect:a,allowH2:w};this[I].interceptors=v.interceptors?{...v.interceptors}:undefined;this[b]=i}[d](){let r=this[A].find((r=>!r[c]));if(r){return r}if(!this[B]||this[A].length{"use strict";const{kProxy:a,kClose:A,kDestroy:c,kInterceptors:l}=i(72785);const{URL:d}=i(57310);const u=i(7890);const p=i(4634);const g=i(74839);const{InvalidArgumentError:h,RequestAbortedError:C}=i(48045);const y=i(82067);const I=Symbol("proxy agent");const B=Symbol("proxy client");const b=Symbol("proxy headers");const Q=Symbol("request tls settings");const w=Symbol("proxy tls settings");const v=Symbol("connect endpoint function");function defaultProtocolPort(r){return r==="https:"?443:80}function buildProxyOptions(r){if(typeof r==="string"){r={uri:r}}if(!r||!r.uri){throw new h("Proxy opts.uri is mandatory")}return{uri:r.uri,protocol:r.protocol||"https"}}function defaultFactory(r,s){return new p(r,s)}class ProxyAgent extends g{constructor(r){super(r);this[a]=buildProxyOptions(r);this[I]=new u(r);this[l]=r.interceptors&&r.interceptors.ProxyAgent&&Array.isArray(r.interceptors.ProxyAgent)?r.interceptors.ProxyAgent:[];if(typeof r==="string"){r={uri:r}}if(!r||!r.uri){throw new h("Proxy opts.uri is mandatory")}const{clientFactory:s=defaultFactory}=r;if(typeof s!=="function"){throw new h("Proxy opts.clientFactory must be a function.")}this[Q]=r.requestTls;this[w]=r.proxyTls;this[b]=r.headers||{};const i=new d(r.uri);const{origin:A,port:c,host:p,username:g,password:S}=i;if(r.auth&&r.token){throw new h("opts.auth cannot be used in combination with opts.token")}else if(r.auth){this[b]["proxy-authorization"]=`Basic ${r.auth}`}else if(r.token){this[b]["proxy-authorization"]=r.token}else if(g&&S){this[b]["proxy-authorization"]=`Basic ${Buffer.from(`${decodeURIComponent(g)}:${decodeURIComponent(S)}`).toString("base64")}`}const R=y({...r.proxyTls});this[v]=y({...r.requestTls});this[B]=s(i,{connect:R});this[I]=new u({...r,connect:async(r,s)=>{let i=r.host;if(!r.port){i+=`:${defaultProtocolPort(r.protocol)}`}try{const{socket:a,statusCode:l}=await this[B].connect({origin:A,port:c,path:i,signal:r.signal,headers:{...this[b],host:p}});if(l!==200){a.on("error",(()=>{})).destroy();s(new C(`Proxy response (${l}) !== 200 when HTTP Tunneling`))}if(r.protocol!=="https:"){s(null,a);return}let d;if(this[Q]){d=this[Q].servername}else{d=r.servername}this[v]({...r,servername:d,httpSocket:a},s)}catch(r){s(r)}}})}dispatch(r,s){const{host:i}=new d(r.origin);const a=buildHeaders(r.headers);throwIfProxyAuthIsSent(a);return this[I].dispatch({...r,headers:{...a,host:i}},s)}async[A](){await this[I].close();await this[B].close()}async[c](){await this[I].destroy();await this[B].destroy()}}function buildHeaders(r){if(Array.isArray(r)){const s={};for(let i=0;ir.toLowerCase()==="proxy-authorization"));if(s){throw new h("Proxy-Authorization should be sent in ProxyAgent constructor")}}r.exports=ProxyAgent},29459:r=>{"use strict";let s=Date.now();let i;const a=[];function onTimeout(){s=Date.now();let r=a.length;let i=0;while(i0&&s>=A.state){A.state=-1;A.callback(A.opaque)}if(A.state===-1){A.state=-2;if(i!==r-1){a[i]=a.pop()}else{a.pop()}r-=1}else{i+=1}}if(a.length>0){refreshTimeout()}}function refreshTimeout(){if(i&&i.refresh){i.refresh()}else{clearTimeout(i);i=setTimeout(onTimeout,1e3);if(i.unref){i.unref()}}}class Timeout{constructor(r,s,i){this.callback=r;this.delay=s;this.opaque=i;this.state=-2;this.refresh()}refresh(){if(this.state===-2){a.push(this);if(!i||a.length===1){refreshTimeout()}}this.state=0}clear(){this.state=-1}}r.exports={setTimeout(r,s,i){return s<1e3?setTimeout(r,s,i):new Timeout(r,s,i)},clearTimeout(r){if(r instanceof Timeout){r.clear()}else{clearTimeout(r)}}}},35354:(r,s,i)=>{"use strict";const a=i(67643);const{uid:A,states:c}=i(19188);const{kReadyState:l,kSentClose:d,kByteParser:u,kReceivedClose:p}=i(37578);const{fireEvent:g,failWebsocketConnection:h}=i(25515);const{CloseEvent:C}=i(52611);const{makeRequest:y}=i(48359);const{fetching:I}=i(74881);const{Headers:B}=i(10554);const{getGlobalDispatcher:b}=i(21892);const{kHeadersList:Q}=i(72785);const w={};w.open=a.channel("undici:websocket:open");w.close=a.channel("undici:websocket:close");w.socketError=a.channel("undici:websocket:socket_error");let v;try{v=i(6113)}catch{}function establishWebSocketConnection(r,s,i,a,c){const l=r;l.protocol=r.protocol==="ws:"?"http:":"https:";const d=y({urlList:[l],serviceWorkers:"none",referrer:"no-referrer",mode:"websocket",credentials:"include",cache:"no-store",redirect:"error"});if(c.headers){const r=new B(c.headers)[Q];d.headersList=r}const u=v.randomBytes(16).toString("base64");d.headersList.append("sec-websocket-key",u);d.headersList.append("sec-websocket-version","13");for(const r of s){d.headersList.append("sec-websocket-protocol",r)}const p="";const g=I({request:d,useParallelQueue:true,dispatcher:c.dispatcher??b(),processResponse(r){if(r.type==="error"||r.status!==101){h(i,"Received network error or non-101 status code.");return}if(s.length!==0&&!r.headersList.get("Sec-WebSocket-Protocol")){h(i,"Server did not respond with sent protocols.");return}if(r.headersList.get("Upgrade")?.toLowerCase()!=="websocket"){h(i,'Server did not set Upgrade header to "websocket".');return}if(r.headersList.get("Connection")?.toLowerCase()!=="upgrade"){h(i,'Server did not set Connection header to "upgrade".');return}const c=r.headersList.get("Sec-WebSocket-Accept");const l=v.createHash("sha1").update(u+A).digest("base64");if(c!==l){h(i,"Incorrect hash received in Sec-WebSocket-Accept header.");return}const g=r.headersList.get("Sec-WebSocket-Extensions");if(g!==null&&g!==p){h(i,"Received different permessage-deflate than the one set.");return}const C=r.headersList.get("Sec-WebSocket-Protocol");if(C!==null&&C!==d.headersList.get("Sec-WebSocket-Protocol")){h(i,"Protocol was not set in the opening handshake.");return}r.socket.on("data",onSocketData);r.socket.on("close",onSocketClose);r.socket.on("error",onSocketError);if(w.open.hasSubscribers){w.open.publish({address:r.socket.address(),protocol:C,extensions:g})}a(r)}});return g}function onSocketData(r){if(!this.ws[u].write(r)){this.pause()}}function onSocketClose(){const{ws:r}=this;const s=r[d]&&r[p];let i=1005;let a="";const A=r[u].closingInfo;if(A){i=A.code??1005;a=A.reason}else if(!r[d]){i=1006}r[l]=c.CLOSED;g("close",r,C,{wasClean:s,code:i,reason:a});if(w.close.hasSubscribers){w.close.publish({websocket:r,code:i,reason:a})}}function onSocketError(r){const{ws:s}=this;s[l]=c.CLOSING;if(w.socketError.hasSubscribers){w.socketError.publish(r)}this.destroy()}r.exports={establishWebSocketConnection:establishWebSocketConnection}},19188:r=>{"use strict";const s="258EAFA5-E914-47DA-95CA-C5AB0DC85B11";const i={enumerable:true,writable:false,configurable:false};const a={CONNECTING:0,OPEN:1,CLOSING:2,CLOSED:3};const A={CONTINUATION:0,TEXT:1,BINARY:2,CLOSE:8,PING:9,PONG:10};const c=2**16-1;const l={INFO:0,PAYLOADLENGTH_16:2,PAYLOADLENGTH_64:3,READ_DATA:4};const d=Buffer.allocUnsafe(0);r.exports={uid:s,staticPropertyDescriptors:i,states:a,opcodes:A,maxUnsigned16Bit:c,parserStates:l,emptyBuffer:d}},52611:(r,s,i)=>{"use strict";const{webidl:a}=i(21744);const{kEnumerableProperty:A}=i(83983);const{MessagePort:c}=i(71267);class MessageEvent extends Event{#i;constructor(r,s={}){a.argumentLengthCheck(arguments,1,{header:"MessageEvent constructor"});r=a.converters.DOMString(r);s=a.converters.MessageEventInit(s);super(r,s);this.#i=s}get data(){a.brandCheck(this,MessageEvent);return this.#i.data}get origin(){a.brandCheck(this,MessageEvent);return this.#i.origin}get lastEventId(){a.brandCheck(this,MessageEvent);return this.#i.lastEventId}get source(){a.brandCheck(this,MessageEvent);return this.#i.source}get ports(){a.brandCheck(this,MessageEvent);if(!Object.isFrozen(this.#i.ports)){Object.freeze(this.#i.ports)}return this.#i.ports}initMessageEvent(r,s=false,i=false,A=null,c="",l="",d=null,u=[]){a.brandCheck(this,MessageEvent);a.argumentLengthCheck(arguments,1,{header:"MessageEvent.initMessageEvent"});return new MessageEvent(r,{bubbles:s,cancelable:i,data:A,origin:c,lastEventId:l,source:d,ports:u})}}class CloseEvent extends Event{#i;constructor(r,s={}){a.argumentLengthCheck(arguments,1,{header:"CloseEvent constructor"});r=a.converters.DOMString(r);s=a.converters.CloseEventInit(s);super(r,s);this.#i=s}get wasClean(){a.brandCheck(this,CloseEvent);return this.#i.wasClean}get code(){a.brandCheck(this,CloseEvent);return this.#i.code}get reason(){a.brandCheck(this,CloseEvent);return this.#i.reason}}class ErrorEvent extends Event{#i;constructor(r,s){a.argumentLengthCheck(arguments,1,{header:"ErrorEvent constructor"});super(r,s);r=a.converters.DOMString(r);s=a.converters.ErrorEventInit(s??{});this.#i=s}get message(){a.brandCheck(this,ErrorEvent);return this.#i.message}get filename(){a.brandCheck(this,ErrorEvent);return this.#i.filename}get lineno(){a.brandCheck(this,ErrorEvent);return this.#i.lineno}get colno(){a.brandCheck(this,ErrorEvent);return this.#i.colno}get error(){a.brandCheck(this,ErrorEvent);return this.#i.error}}Object.defineProperties(MessageEvent.prototype,{[Symbol.toStringTag]:{value:"MessageEvent",configurable:true},data:A,origin:A,lastEventId:A,source:A,ports:A,initMessageEvent:A});Object.defineProperties(CloseEvent.prototype,{[Symbol.toStringTag]:{value:"CloseEvent",configurable:true},reason:A,code:A,wasClean:A});Object.defineProperties(ErrorEvent.prototype,{[Symbol.toStringTag]:{value:"ErrorEvent",configurable:true},message:A,filename:A,lineno:A,colno:A,error:A});a.converters.MessagePort=a.interfaceConverter(c);a.converters["sequence"]=a.sequenceConverter(a.converters.MessagePort);const l=[{key:"bubbles",converter:a.converters.boolean,defaultValue:false},{key:"cancelable",converter:a.converters.boolean,defaultValue:false},{key:"composed",converter:a.converters.boolean,defaultValue:false}];a.converters.MessageEventInit=a.dictionaryConverter([...l,{key:"data",converter:a.converters.any,defaultValue:null},{key:"origin",converter:a.converters.USVString,defaultValue:""},{key:"lastEventId",converter:a.converters.DOMString,defaultValue:""},{key:"source",converter:a.nullableConverter(a.converters.MessagePort),defaultValue:null},{key:"ports",converter:a.converters["sequence"],get defaultValue(){return[]}}]);a.converters.CloseEventInit=a.dictionaryConverter([...l,{key:"wasClean",converter:a.converters.boolean,defaultValue:false},{key:"code",converter:a.converters["unsigned short"],defaultValue:0},{key:"reason",converter:a.converters.USVString,defaultValue:""}]);a.converters.ErrorEventInit=a.dictionaryConverter([...l,{key:"message",converter:a.converters.DOMString,defaultValue:""},{key:"filename",converter:a.converters.USVString,defaultValue:""},{key:"lineno",converter:a.converters["unsigned long"],defaultValue:0},{key:"colno",converter:a.converters["unsigned long"],defaultValue:0},{key:"error",converter:a.converters.any}]);r.exports={MessageEvent:MessageEvent,CloseEvent:CloseEvent,ErrorEvent:ErrorEvent}},25444:(r,s,i)=>{"use strict";const{maxUnsigned16Bit:a}=i(19188);let A;try{A=i(6113)}catch{}class WebsocketFrameSend{constructor(r){this.frameData=r;this.maskKey=A.randomBytes(4)}createFrame(r){const s=this.frameData?.byteLength??0;let i=s;let A=6;if(s>a){A+=8;i=127}else if(s>125){A+=2;i=126}const c=Buffer.allocUnsafe(s+A);c[0]=c[1]=0;c[0]|=128;c[0]=(c[0]&240)+r; +/*! ws. MIT License. Einar Otto Stangvik */c[A-4]=this.maskKey[0];c[A-3]=this.maskKey[1];c[A-2]=this.maskKey[2];c[A-1]=this.maskKey[3];c[1]=i;if(i===126){c.writeUInt16BE(s,2)}else if(i===127){c[2]=c[3]=0;c.writeUIntBE(s,4,6)}c[1]|=128;for(let r=0;r{"use strict";const{Writable:a}=i(12781);const A=i(67643);const{parserStates:c,opcodes:l,states:d,emptyBuffer:u}=i(19188);const{kReadyState:p,kSentClose:g,kResponse:h,kReceivedClose:C}=i(37578);const{isValidStatusCode:y,failWebsocketConnection:I,websocketMessageReceived:B}=i(25515);const{WebsocketFrameSend:b}=i(25444);const Q={};Q.ping=A.channel("undici:websocket:ping");Q.pong=A.channel("undici:websocket:pong");class ByteParser extends a{#o=[];#a=0;#A=c.INFO;#c={};#l=[];constructor(r){super();this.ws=r}_write(r,s,i){this.#o.push(r);this.#a+=r.length;this.run(i)}run(r){while(true){if(this.#A===c.INFO){if(this.#a<2){return r()}const s=this.consume(2);this.#c.fin=(s[0]&128)!==0;this.#c.opcode=s[0]&15;this.#c.originalOpcode??=this.#c.opcode;this.#c.fragmented=!this.#c.fin&&this.#c.opcode!==l.CONTINUATION;if(this.#c.fragmented&&this.#c.opcode!==l.BINARY&&this.#c.opcode!==l.TEXT){I(this.ws,"Invalid frame type was fragmented.");return}const i=s[1]&127;if(i<=125){this.#c.payloadLength=i;this.#A=c.READ_DATA}else if(i===126){this.#A=c.PAYLOADLENGTH_16}else if(i===127){this.#A=c.PAYLOADLENGTH_64}if(this.#c.fragmented&&i>125){I(this.ws,"Fragmented frame exceeded 125 bytes.");return}else if((this.#c.opcode===l.PING||this.#c.opcode===l.PONG||this.#c.opcode===l.CLOSE)&&i>125){I(this.ws,"Payload length for control frame exceeded 125 bytes.");return}else if(this.#c.opcode===l.CLOSE){if(i===1){I(this.ws,"Received close frame with a 1-byte body.");return}const r=this.consume(i);this.#c.closeInfo=this.parseCloseBody(false,r);if(!this.ws[g]){const r=Buffer.allocUnsafe(2);r.writeUInt16BE(this.#c.closeInfo.code,0);const s=new b(r);this.ws[h].socket.write(s.createFrame(l.CLOSE),(r=>{if(!r){this.ws[g]=true}}))}this.ws[p]=d.CLOSING;this.ws[C]=true;this.end();return}else if(this.#c.opcode===l.PING){const s=this.consume(i);if(!this.ws[C]){const r=new b(s);this.ws[h].socket.write(r.createFrame(l.PONG));if(Q.ping.hasSubscribers){Q.ping.publish({payload:s})}}this.#A=c.INFO;if(this.#a>0){continue}else{r();return}}else if(this.#c.opcode===l.PONG){const s=this.consume(i);if(Q.pong.hasSubscribers){Q.pong.publish({payload:s})}if(this.#a>0){continue}else{r();return}}}else if(this.#A===c.PAYLOADLENGTH_16){if(this.#a<2){return r()}const s=this.consume(2);this.#c.payloadLength=s.readUInt16BE(0);this.#A=c.READ_DATA}else if(this.#A===c.PAYLOADLENGTH_64){if(this.#a<8){return r()}const s=this.consume(8);const i=s.readUInt32BE(0);if(i>2**31-1){I(this.ws,"Received payload length > 2^31 bytes.");return}const a=s.readUInt32BE(4);this.#c.payloadLength=(i<<8)+a;this.#A=c.READ_DATA}else if(this.#A===c.READ_DATA){if(this.#a=this.#c.payloadLength){const r=this.consume(this.#c.payloadLength);this.#l.push(r);if(!this.#c.fragmented||this.#c.fin&&this.#c.opcode===l.CONTINUATION){const r=Buffer.concat(this.#l);B(this.ws,this.#c.originalOpcode,r);this.#c={};this.#l.length=0}this.#A=c.INFO}}if(this.#a>0){continue}else{r();break}}}consume(r){if(r>this.#a){return null}else if(r===0){return u}if(this.#o[0].length===r){this.#a-=this.#o[0].length;return this.#o.shift()}const s=Buffer.allocUnsafe(r);let i=0;while(i!==r){const a=this.#o[0];const{length:A}=a;if(A+i===r){s.set(this.#o.shift(),i);break}else if(A+i>r){s.set(a.subarray(0,r-i),i);this.#o[0]=a.subarray(r-i);break}else{s.set(this.#o.shift(),i);i+=a.length}}this.#a-=r;return s}parseCloseBody(r,s){let i;if(s.length>=2){i=s.readUInt16BE(0)}if(r){if(!y(i)){return null}return{code:i}}let a=s.subarray(2);if(a[0]===239&&a[1]===187&&a[2]===191){a=a.subarray(3)}if(i!==undefined&&!y(i)){return null}try{a=new TextDecoder("utf-8",{fatal:true}).decode(a)}catch{return null}return{code:i,reason:a}}get closingInfo(){return this.#c.closeInfo}}r.exports={ByteParser:ByteParser}},37578:r=>{"use strict";r.exports={kWebSocketURL:Symbol("url"),kReadyState:Symbol("ready state"),kController:Symbol("controller"),kResponse:Symbol("response"),kBinaryType:Symbol("binary type"),kSentClose:Symbol("sent close"),kReceivedClose:Symbol("received close"),kByteParser:Symbol("byte parser")}},25515:(r,s,i)=>{"use strict";const{kReadyState:a,kController:A,kResponse:c,kBinaryType:l,kWebSocketURL:d}=i(37578);const{states:u,opcodes:p}=i(19188);const{MessageEvent:g,ErrorEvent:h}=i(52611);function isEstablished(r){return r[a]===u.OPEN}function isClosing(r){return r[a]===u.CLOSING}function isClosed(r){return r[a]===u.CLOSED}function fireEvent(r,s,i=Event,a){const A=new i(r,a);s.dispatchEvent(A)}function websocketMessageReceived(r,s,i){if(r[a]!==u.OPEN){return}let A;if(s===p.TEXT){try{A=new TextDecoder("utf-8",{fatal:true}).decode(i)}catch{failWebsocketConnection(r,"Received invalid UTF-8 in text frame.");return}}else if(s===p.BINARY){if(r[l]==="blob"){A=new Blob([i])}else{A=new Uint8Array(i).buffer}}fireEvent("message",r,g,{origin:r[d].origin,data:A})}function isValidSubprotocol(r){if(r.length===0){return false}for(const s of r){const r=s.charCodeAt(0);if(r<33||r>126||s==="("||s===")"||s==="<"||s===">"||s==="@"||s===","||s===";"||s===":"||s==="\\"||s==='"'||s==="/"||s==="["||s==="]"||s==="?"||s==="="||s==="{"||s==="}"||r===32||r===9){return false}}return true}function isValidStatusCode(r){if(r>=1e3&&r<1015){return r!==1004&&r!==1005&&r!==1006}return r>=3e3&&r<=4999}function failWebsocketConnection(r,s){const{[A]:i,[c]:a}=r;i.abort();if(a?.socket&&!a.socket.destroyed){a.socket.destroy()}if(s){fireEvent("error",r,h,{error:new Error(s)})}}r.exports={isEstablished:isEstablished,isClosing:isClosing,isClosed:isClosed,fireEvent:fireEvent,isValidSubprotocol:isValidSubprotocol,isValidStatusCode:isValidStatusCode,failWebsocketConnection:failWebsocketConnection,websocketMessageReceived:websocketMessageReceived}},54284:(r,s,i)=>{"use strict";const{webidl:a}=i(21744);const{DOMException:A}=i(41037);const{URLSerializer:c}=i(685);const{getGlobalOrigin:l}=i(71246);const{staticPropertyDescriptors:d,states:u,opcodes:p,emptyBuffer:g}=i(19188);const{kWebSocketURL:h,kReadyState:C,kController:y,kBinaryType:I,kResponse:B,kSentClose:b,kByteParser:Q}=i(37578);const{isEstablished:w,isClosing:v,isValidSubprotocol:S,failWebsocketConnection:R,fireEvent:N}=i(25515);const{establishWebSocketConnection:x}=i(35354);const{WebsocketFrameSend:D}=i(25444);const{ByteParser:k}=i(11688);const{kEnumerableProperty:T,isBlobLike:_}=i(83983);const{getGlobalDispatcher:P}=i(21892);const{types:O}=i(73837);let L=false;class WebSocket extends EventTarget{#d={open:null,error:null,close:null,message:null};#u=0;#p="";#g="";constructor(r,s=[]){super();a.argumentLengthCheck(arguments,1,{header:"WebSocket constructor"});if(!L){L=true;process.emitWarning("WebSockets are experimental, expect them to change at any time.",{code:"UNDICI-WS"})}const i=a.converters["DOMString or sequence or WebSocketInit"](s);r=a.converters.USVString(r);s=i.protocols;const c=l();let d;try{d=new URL(r,c)}catch(r){throw new A(r,"SyntaxError")}if(d.protocol==="http:"){d.protocol="ws:"}else if(d.protocol==="https:"){d.protocol="wss:"}if(d.protocol!=="ws:"&&d.protocol!=="wss:"){throw new A(`Expected a ws: or wss: protocol, got ${d.protocol}`,"SyntaxError")}if(d.hash||d.href.endsWith("#")){throw new A("Got fragment","SyntaxError")}if(typeof s==="string"){s=[s]}if(s.length!==new Set(s.map((r=>r.toLowerCase()))).size){throw new A("Invalid Sec-WebSocket-Protocol value","SyntaxError")}if(s.length>0&&!s.every((r=>S(r)))){throw new A("Invalid Sec-WebSocket-Protocol value","SyntaxError")}this[h]=new URL(d.href);this[y]=x(d,s,this,(r=>this.#h(r)),i);this[C]=WebSocket.CONNECTING;this[I]="blob"}close(r=undefined,s=undefined){a.brandCheck(this,WebSocket);if(r!==undefined){r=a.converters["unsigned short"](r,{clamp:true})}if(s!==undefined){s=a.converters.USVString(s)}if(r!==undefined){if(r!==1e3&&(r<3e3||r>4999)){throw new A("invalid code","InvalidAccessError")}}let i=0;if(s!==undefined){i=Buffer.byteLength(s);if(i>123){throw new A(`Reason must be less than 123 bytes; received ${i}`,"SyntaxError")}}if(this[C]===WebSocket.CLOSING||this[C]===WebSocket.CLOSED){}else if(!w(this)){R(this,"Connection was closed before it was established.");this[C]=WebSocket.CLOSING}else if(!v(this)){const a=new D;if(r!==undefined&&s===undefined){a.frameData=Buffer.allocUnsafe(2);a.frameData.writeUInt16BE(r,0)}else if(r!==undefined&&s!==undefined){a.frameData=Buffer.allocUnsafe(2+i);a.frameData.writeUInt16BE(r,0);a.frameData.write(s,2,"utf-8")}else{a.frameData=g}const A=this[B].socket;A.write(a.createFrame(p.CLOSE),(r=>{if(!r){this[b]=true}}));this[C]=u.CLOSING}else{this[C]=WebSocket.CLOSING}}send(r){a.brandCheck(this,WebSocket);a.argumentLengthCheck(arguments,1,{header:"WebSocket.send"});r=a.converters.WebSocketSendData(r);if(this[C]===WebSocket.CONNECTING){throw new A("Sent before connected.","InvalidStateError")}if(!w(this)||v(this)){return}const s=this[B].socket;if(typeof r==="string"){const i=Buffer.from(r);const a=new D(i);const A=a.createFrame(p.TEXT);this.#u+=i.byteLength;s.write(A,(()=>{this.#u-=i.byteLength}))}else if(O.isArrayBuffer(r)){const i=Buffer.from(r);const a=new D(i);const A=a.createFrame(p.BINARY);this.#u+=i.byteLength;s.write(A,(()=>{this.#u-=i.byteLength}))}else if(ArrayBuffer.isView(r)){const i=Buffer.from(r,r.byteOffset,r.byteLength);const a=new D(i);const A=a.createFrame(p.BINARY);this.#u+=i.byteLength;s.write(A,(()=>{this.#u-=i.byteLength}))}else if(_(r)){const i=new D;r.arrayBuffer().then((r=>{const a=Buffer.from(r);i.frameData=a;const A=i.createFrame(p.BINARY);this.#u+=a.byteLength;s.write(A,(()=>{this.#u-=a.byteLength}))}))}}get readyState(){a.brandCheck(this,WebSocket);return this[C]}get bufferedAmount(){a.brandCheck(this,WebSocket);return this.#u}get url(){a.brandCheck(this,WebSocket);return c(this[h])}get extensions(){a.brandCheck(this,WebSocket);return this.#g}get protocol(){a.brandCheck(this,WebSocket);return this.#p}get onopen(){a.brandCheck(this,WebSocket);return this.#d.open}set onopen(r){a.brandCheck(this,WebSocket);if(this.#d.open){this.removeEventListener("open",this.#d.open)}if(typeof r==="function"){this.#d.open=r;this.addEventListener("open",r)}else{this.#d.open=null}}get onerror(){a.brandCheck(this,WebSocket);return this.#d.error}set onerror(r){a.brandCheck(this,WebSocket);if(this.#d.error){this.removeEventListener("error",this.#d.error)}if(typeof r==="function"){this.#d.error=r;this.addEventListener("error",r)}else{this.#d.error=null}}get onclose(){a.brandCheck(this,WebSocket);return this.#d.close}set onclose(r){a.brandCheck(this,WebSocket);if(this.#d.close){this.removeEventListener("close",this.#d.close)}if(typeof r==="function"){this.#d.close=r;this.addEventListener("close",r)}else{this.#d.close=null}}get onmessage(){a.brandCheck(this,WebSocket);return this.#d.message}set onmessage(r){a.brandCheck(this,WebSocket);if(this.#d.message){this.removeEventListener("message",this.#d.message)}if(typeof r==="function"){this.#d.message=r;this.addEventListener("message",r)}else{this.#d.message=null}}get binaryType(){a.brandCheck(this,WebSocket);return this[I]}set binaryType(r){a.brandCheck(this,WebSocket);if(r!=="blob"&&r!=="arraybuffer"){this[I]="blob"}else{this[I]=r}}#h(r){this[B]=r;const s=new k(this);s.on("drain",(function onParserDrain(){this.ws[B].socket.resume()}));r.socket.ws=this;this[Q]=s;this[C]=u.OPEN;const i=r.headersList.get("sec-websocket-extensions");if(i!==null){this.#g=i}const a=r.headersList.get("sec-websocket-protocol");if(a!==null){this.#p=a}N("open",this)}}WebSocket.CONNECTING=WebSocket.prototype.CONNECTING=u.CONNECTING;WebSocket.OPEN=WebSocket.prototype.OPEN=u.OPEN;WebSocket.CLOSING=WebSocket.prototype.CLOSING=u.CLOSING;WebSocket.CLOSED=WebSocket.prototype.CLOSED=u.CLOSED;Object.defineProperties(WebSocket.prototype,{CONNECTING:d,OPEN:d,CLOSING:d,CLOSED:d,url:T,readyState:T,bufferedAmount:T,onopen:T,onerror:T,onclose:T,close:T,onmessage:T,binaryType:T,send:T,extensions:T,protocol:T,[Symbol.toStringTag]:{value:"WebSocket",writable:false,enumerable:false,configurable:true}});Object.defineProperties(WebSocket,{CONNECTING:d,OPEN:d,CLOSING:d,CLOSED:d});a.converters["sequence"]=a.sequenceConverter(a.converters.DOMString);a.converters["DOMString or sequence"]=function(r){if(a.util.Type(r)==="Object"&&Symbol.iterator in r){return a.converters["sequence"](r)}return a.converters.DOMString(r)};a.converters.WebSocketInit=a.dictionaryConverter([{key:"protocols",converter:a.converters["DOMString or sequence"],get defaultValue(){return[]}},{key:"dispatcher",converter:r=>r,get defaultValue(){return P()}},{key:"headers",converter:a.nullableConverter(a.converters.HeadersInit)}]);a.converters["DOMString or sequence or WebSocketInit"]=function(r){if(a.util.Type(r)==="Object"&&!(Symbol.iterator in r)){return a.converters.WebSocketInit(r)}return{protocols:a.converters["DOMString or sequence"](r)}};a.converters.WebSocketSendData=function(r){if(a.util.Type(r)==="Object"){if(_(r)){return a.converters.Blob(r,{strict:false})}if(ArrayBuffer.isView(r)||O.isAnyArrayBuffer(r)){return a.converters.BufferSource(r)}}return a.converters.USVString(r)};r.exports={WebSocket:WebSocket}},45030:(r,s)=>{"use strict";Object.defineProperty(s,"__esModule",{value:true});function getUserAgent(){if(typeof navigator==="object"&&"userAgent"in navigator){return navigator.userAgent}if(typeof process==="object"&&"version"in process){return`Node.js/${process.version.substr(1)} (${process.platform}; ${process.arch})`}return""}s.getUserAgent=getUserAgent},64140:(r,s,i)=>{"use strict";var a=i(12781);var A=i(73837).inherits;function Entry(){if(!(this instanceof Entry)){return new Entry}a.PassThrough.call(this);this.path=null;this.type=null;this.isDirectory=false}A(Entry,a.PassThrough);Entry.prototype.autodrain=function(){return this.pipe(new a.Transform({transform:function(r,s,i){i()}}))};r.exports=Entry},41202:(r,s,i)=>{var a=i(57147);var A=i(71017);var c=i(73837);var l=i(66186);var d=i(12781).Transform;var u=i(66853);function Extract(r){if(!(this instanceof Extract))return new Extract(r);d.call(this);this.opts=r||{};this.unzipStream=new u(this.opts);this.unfinishedEntries=0;this.afterFlushWait=false;this.createdDirectories={};var s=this;this.unzipStream.on("entry",this._processEntry.bind(this));this.unzipStream.on("error",(function(r){s.emit("error",r)}))}c.inherits(Extract,d);Extract.prototype._transform=function(r,s,i){this.unzipStream.write(r,s,i)};Extract.prototype._flush=function(r){var s=this;var allDone=function(){process.nextTick((function(){s.emit("close")}));r()};this.unzipStream.end((function(){if(s.unfinishedEntries>0){s.afterFlushWait=true;return s.on("await-finished",allDone)}allDone()}))};Extract.prototype._processEntry=function(r){var s=this;var i=A.join(this.opts.path,r.path);var c=r.isDirectory?i:A.dirname(i);this.unfinishedEntries++;var writeFileFn=function(){var A=a.createWriteStream(i);A.on("close",(function(){s.unfinishedEntries--;s._notifyAwaiter()}));A.on("error",(function(r){s.emit("error",r)}));r.pipe(A)};if(this.createdDirectories[c]||c==="."){return writeFileFn()}l(c,(function(i){if(i)return s.emit("error",i);s.createdDirectories[c]=true;if(r.isDirectory){s.unfinishedEntries--;s._notifyAwaiter();return}writeFileFn()}))};Extract.prototype._notifyAwaiter=function(){if(this.afterFlushWait&&this.unfinishedEntries===0){this.emit("await-finished");this.afterFlushWait=false}};r.exports=Extract},15115:(r,s,i)=>{var a=i(12781).Transform;var A=i(73837);function MatcherStream(r,s){if(!(this instanceof MatcherStream)){return new MatcherStream}a.call(this);var i=typeof r==="object"?r.pattern:r;this.pattern=Buffer.isBuffer(i)?i:Buffer.from(i);this.requiredLength=this.pattern.length;if(r.requiredExtraSize)this.requiredLength+=r.requiredExtraSize;this.data=new Buffer("");this.bytesSoFar=0;this.matchFn=s}A.inherits(MatcherStream,a);MatcherStream.prototype.checkDataChunk=function(r){var s=this.data.length>=this.requiredLength;if(!s){return}var i=this.data.indexOf(this.pattern,r?1:0);if(i>=0&&i+this.requiredLength>this.data.length){if(i>0){var a=this.data.slice(0,i);this.push(a);this.bytesSoFar+=i;this.data=this.data.slice(i)}return}if(i===-1){var A=this.data.length-this.requiredLength+1;var a=this.data.slice(0,A);this.push(a);this.bytesSoFar+=A;this.data=this.data.slice(A);return}if(i>0){var a=this.data.slice(0,i);this.data=this.data.slice(i);this.push(a);this.bytesSoFar+=i}var c=this.matchFn?this.matchFn(this.data,this.bytesSoFar):true;if(c){this.data=new Buffer("");return}return true};MatcherStream.prototype._transform=function(r,s,i){this.data=Buffer.concat([this.data,r]);var a=true;while(this.checkDataChunk(!a)){a=false}i()};MatcherStream.prototype._flush=function(r){if(this.data.length>0){var s=true;while(this.checkDataChunk(!s)){s=false}}if(this.data.length>0){this.push(this.data);this.data=null}r()};r.exports=MatcherStream},93935:(r,s,i)=>{var a=i(12781).Transform;var A=i(73837);var c=i(66853);function ParserStream(r){if(!(this instanceof ParserStream)){return new ParserStream(r)}var s=r||{};a.call(this,{readableObjectMode:true});this.opts=r||{};this.unzipStream=new c(this.opts);var i=this;this.unzipStream.on("entry",(function(r){i.push(r)}));this.unzipStream.on("error",(function(r){i.emit("error",r)}))}A.inherits(ParserStream,a);ParserStream.prototype._transform=function(r,s,i){this.unzipStream.write(r,s,i)};ParserStream.prototype._flush=function(r){var s=this;this.unzipStream.end((function(){process.nextTick((function(){s.emit("close")}));r()}))};ParserStream.prototype.on=function(r,s){if(r==="entry"){return a.prototype.on.call(this,"data",s)}return a.prototype.on.call(this,r,s)};ParserStream.prototype.drainAll=function(){this.unzipStream.drainAll();return this.pipe(new a({objectMode:true,transform:function(r,s,i){i()}}))};r.exports=ParserStream},66853:(r,s,i)=>{"use strict";var a=i(66474);var A=i(12781);var c=i(73837);var l=i(59796);var d=i(15115);var u=i(64140);const p={STREAM_START:0,START:1,LOCAL_FILE_HEADER:2,LOCAL_FILE_HEADER_SUFFIX:3,FILE_DATA:4,FILE_DATA_END:5,DATA_DESCRIPTOR:6,CENTRAL_DIRECTORY_FILE_HEADER:7,CENTRAL_DIRECTORY_FILE_HEADER_SUFFIX:8,CDIR64_END:9,CDIR64_END_DATA_SECTOR:10,CDIR64_LOCATOR:11,CENTRAL_DIRECTORY_END:12,CENTRAL_DIRECTORY_END_COMMENT:13,TRAILING_JUNK:14,ERROR:99};const g=4294967296;const h=67324752;const C=134695760;const y=33639248;const I=101075792;const B=117853008;const b=101010256;function UnzipStream(r){if(!(this instanceof UnzipStream)){return new UnzipStream(r)}A.Transform.call(this);this.options=r||{};this.data=new Buffer("");this.state=p.STREAM_START;this.skippedBytes=0;this.parsedEntity=null;this.outStreamInfo={}}c.inherits(UnzipStream,A.Transform);UnzipStream.prototype.processDataChunk=function(r){var s;switch(this.state){case p.STREAM_START:case p.START:s=4;break;case p.LOCAL_FILE_HEADER:s=26;break;case p.LOCAL_FILE_HEADER_SUFFIX:s=this.parsedEntity.fileNameLength+this.parsedEntity.extraFieldLength;break;case p.DATA_DESCRIPTOR:s=12;break;case p.CENTRAL_DIRECTORY_FILE_HEADER:s=42;break;case p.CENTRAL_DIRECTORY_FILE_HEADER_SUFFIX:s=this.parsedEntity.fileNameLength+this.parsedEntity.extraFieldLength+this.parsedEntity.fileCommentLength;break;case p.CDIR64_END:s=52;break;case p.CDIR64_END_DATA_SECTOR:s=this.parsedEntity.centralDirectoryRecordSize-44;break;case p.CDIR64_LOCATOR:s=16;break;case p.CENTRAL_DIRECTORY_END:s=18;break;case p.CENTRAL_DIRECTORY_END_COMMENT:s=this.parsedEntity.commentLength;break;case p.FILE_DATA:return 0;case p.FILE_DATA_END:return 0;case p.TRAILING_JUNK:if(this.options.debug)console.log("found",r.length,"bytes of TRAILING_JUNK");return r.length;default:return r.length}var i=r.length;if(i>>8;if((c&255)===80){l=d;break}}this.skippedBytes+=l;if(this.options.debug)console.log("Skipped",this.skippedBytes,"bytes");return l}this.state=p.ERROR;var C=A?"Not a valid zip file":"Invalid signature in zip file";if(this.options.debug){var Q=r.readUInt32LE(0);var w;try{w=r.slice(0,4).toString()}catch(r){}console.log("Unexpected signature in zip file: 0x"+Q.toString(16),'"'+w+'", skipped',this.skippedBytes,"bytes")}this.emit("error",new Error(C));return r.length}this.skippedBytes=0;return s;case p.LOCAL_FILE_HEADER:this.parsedEntity=this._readFile(r);this.state=p.LOCAL_FILE_HEADER_SUFFIX;return s;case p.LOCAL_FILE_HEADER_SUFFIX:var v=new u;var S=(this.parsedEntity.flags&2048)!==0;v.path=this._decodeString(r.slice(0,this.parsedEntity.fileNameLength),S);var R=r.slice(this.parsedEntity.fileNameLength,this.parsedEntity.fileNameLength+this.parsedEntity.extraFieldLength);var N=this._readExtraFields(R);if(N&&N.parsed){if(N.parsed.path&&!S){v.path=N.parsed.path}if(Number.isFinite(N.parsed.uncompressedSize)&&this.parsedEntity.uncompressedSize===g-1){this.parsedEntity.uncompressedSize=N.parsed.uncompressedSize}if(Number.isFinite(N.parsed.compressedSize)&&this.parsedEntity.compressedSize===g-1){this.parsedEntity.compressedSize=N.parsed.compressedSize}}this.parsedEntity.extra=N.parsed||{};if(this.options.debug){const r=Object.assign({},this.parsedEntity,{path:v.path,flags:"0x"+this.parsedEntity.flags.toString(16),extraFields:N&&N.debug});console.log("decoded LOCAL_FILE_HEADER:",JSON.stringify(r,null,2))}this._prepareOutStream(this.parsedEntity,v);this.emit("entry",v);this.state=p.FILE_DATA;return s;case p.CENTRAL_DIRECTORY_FILE_HEADER:this.parsedEntity=this._readCentralDirectoryEntry(r);this.state=p.CENTRAL_DIRECTORY_FILE_HEADER_SUFFIX;return s;case p.CENTRAL_DIRECTORY_FILE_HEADER_SUFFIX:var S=(this.parsedEntity.flags&2048)!==0;var x=this._decodeString(r.slice(0,this.parsedEntity.fileNameLength),S);var R=r.slice(this.parsedEntity.fileNameLength,this.parsedEntity.fileNameLength+this.parsedEntity.extraFieldLength);var N=this._readExtraFields(R);if(N&&N.parsed&&N.parsed.path&&!S){x=N.parsed.path}this.parsedEntity.extra=N.parsed;var D=(this.parsedEntity.versionMadeBy&65280)>>8===3;var k,T;if(D){k=this.parsedEntity.externalFileAttributes>>>16;var _=k>>>12;T=(_&10)===10}if(this.options.debug){const r=Object.assign({},this.parsedEntity,{path:x,flags:"0x"+this.parsedEntity.flags.toString(16),unixAttrs:k&&"0"+k.toString(8),isSymlink:T,extraFields:N.debug});console.log("decoded CENTRAL_DIRECTORY_FILE_HEADER:",JSON.stringify(r,null,2))}this.state=p.START;return s;case p.CDIR64_END:this.parsedEntity=this._readEndOfCentralDirectory64(r);if(this.options.debug){console.log("decoded CDIR64_END_RECORD:",this.parsedEntity)}this.state=p.CDIR64_END_DATA_SECTOR;return s;case p.CDIR64_END_DATA_SECTOR:this.state=p.START;return s;case p.CDIR64_LOCATOR:this.state=p.START;return s;case p.CENTRAL_DIRECTORY_END:this.parsedEntity=this._readEndOfCentralDirectory(r);if(this.options.debug){console.log("decoded CENTRAL_DIRECTORY_END:",this.parsedEntity)}this.state=p.CENTRAL_DIRECTORY_END_COMMENT;return s;case p.CENTRAL_DIRECTORY_END_COMMENT:if(this.options.debug){console.log("decoded CENTRAL_DIRECTORY_END_COMMENT:",r.slice(0,s).toString())}this.state=p.TRAILING_JUNK;return s;case p.ERROR:return r.length;default:console.log("didn't handle state #",this.state,"discarding");return r.length}};UnzipStream.prototype._prepareOutStream=function(r,s){var i=this;var a=r.uncompressedSize===0&&/[\/\\]$/.test(s.path);s.path=s.path.replace(/(?<=^|[/\\]+)[.][.]+(?=[/\\]+|$)/g,".");s.type=a?"Directory":"File";s.isDirectory=a;var c=!(r.flags&8);if(c){s.size=r.uncompressedSize}var h=r.versionsNeededToExtract<=45;this.outStreamInfo={stream:null,limit:c?r.compressedSize:-1,written:0};if(!c){var y=new Buffer(4);y.writeUInt32LE(C,0);var I=r.extra.zip64Mode;var B=I?20:12;var b={pattern:y,requiredExtraSize:B};var Q=new d(b,(function(r,s){var a=i._readDataDescriptor(r,I);var A=a.compressedSize===s;if(!I&&!A&&s>=g){var c=s-g;while(c>=0){A=a.compressedSize===c;if(A)break;c-=g}}if(!A){return}i.state=p.FILE_DATA_END;var l=I?24:16;if(i.data.length>0){i.data=Buffer.concat([r.slice(l),i.data])}else{i.data=r.slice(l)}return true}));this.outStreamInfo.stream=Q}else{this.outStreamInfo.stream=new A.PassThrough}var w=r.flags&1||r.flags&64;if(w||!h){var v=w?"Encrypted files are not supported!":"Zip version "+Math.floor(r.versionsNeededToExtract/10)+"."+r.versionsNeededToExtract%10+" is not supported";s.skip=true;setImmediate((()=>{i.emit("error",new Error(v))}));this.outStreamInfo.stream.pipe((new u).autodrain());return}var S=r.compressionMethod>0;if(S){var R=l.createInflateRaw();R.on("error",(function(r){i.state=p.ERROR;i.emit("error",r)}));this.outStreamInfo.stream.pipe(R).pipe(s)}else{this.outStreamInfo.stream.pipe(s)}if(this._drainAllEntries){s.autodrain()}};UnzipStream.prototype._readFile=function(r){var s=a.parse(r).word16lu("versionsNeededToExtract").word16lu("flags").word16lu("compressionMethod").word16lu("lastModifiedTime").word16lu("lastModifiedDate").word32lu("crc32").word32lu("compressedSize").word32lu("uncompressedSize").word16lu("fileNameLength").word16lu("extraFieldLength").vars;return s};UnzipStream.prototype._readExtraFields=function(r){var s={};var i={parsed:s};if(this.options.debug){i.debug=[]}var A=0;while(A=p+4&&u&1){s.mtime=new Date(r.readUInt32LE(A+p)*1e3);p+=4}if(c.extraSize>=p+4&&u&2){s.atime=new Date(r.readUInt32LE(A+p)*1e3);p+=4}if(c.extraSize>=p+4&&u&4){s.ctime=new Date(r.readUInt32LE(A+p)*1e3)}break;case 28789:l="Info-ZIP Unicode Path Extra Field";var g=r.readUInt8(A);if(g===1){var p=1;var h=r.readUInt32LE(A+p);p+=4;var C=r.slice(A+p);s.path=C.toString()}break;case 13:case 22613:l=c.extraId===13?"PKWARE Unix":"Info-ZIP UNIX (type 1)";var p=0;if(c.extraSize>=8){var y=new Date(r.readUInt32LE(A+p)*1e3);p+=4;var I=new Date(r.readUInt32LE(A+p)*1e3);p+=4;s.atime=y;s.mtime=I;if(c.extraSize>=12){var B=r.readUInt16LE(A+p);p+=2;var b=r.readUInt16LE(A+p);p+=2;s.uid=B;s.gid=b}}break;case 30805:l="Info-ZIP UNIX (type 2)";var p=0;if(c.extraSize>=4){var B=r.readUInt16LE(A+p);p+=2;var b=r.readUInt16LE(A+p);p+=2;s.uid=B;s.gid=b}break;case 30837:l="Info-ZIP New Unix";var p=0;var Q=r.readUInt8(A);p+=1;if(Q===1){var w=r.readUInt8(A+p);p+=1;if(w<=6){s.uid=r.readUIntLE(A+p,w)}p+=w;var v=r.readUInt8(A+p);p+=1;if(v<=6){s.gid=r.readUIntLE(A+p,v)}}break;case 30062:l="ASi Unix";var p=0;if(c.extraSize>=14){var S=r.readUInt32LE(A+p);p+=4;var R=r.readUInt16LE(A+p);p+=2;var N=r.readUInt32LE(A+p);p+=4;var B=r.readUInt16LE(A+p);p+=2;var b=r.readUInt16LE(A+p);p+=2;s.mode=R;s.uid=B;s.gid=b;if(c.extraSize>14){var x=A+p;var D=A+c.extraSize-14;var k=this._decodeString(r.slice(x,D));s.symlink=k}}break}if(this.options.debug){i.debug.push({extraId:"0x"+c.extraId.toString(16),description:l,data:r.slice(A,A+c.extraSize).inspect()})}A+=c.extraSize}return i};UnzipStream.prototype._readDataDescriptor=function(r,s){if(s){var i=a.parse(r).word32lu("dataDescriptorSignature").word32lu("crc32").word64lu("compressedSize").word64lu("uncompressedSize").vars;return i}var i=a.parse(r).word32lu("dataDescriptorSignature").word32lu("crc32").word32lu("compressedSize").word32lu("uncompressedSize").vars;return i};UnzipStream.prototype._readCentralDirectoryEntry=function(r){var s=a.parse(r).word16lu("versionMadeBy").word16lu("versionsNeededToExtract").word16lu("flags").word16lu("compressionMethod").word16lu("lastModifiedTime").word16lu("lastModifiedDate").word32lu("crc32").word32lu("compressedSize").word32lu("uncompressedSize").word16lu("fileNameLength").word16lu("extraFieldLength").word16lu("fileCommentLength").word16lu("diskNumber").word16lu("internalFileAttributes").word32lu("externalFileAttributes").word32lu("offsetToLocalFileHeader").vars;return s};UnzipStream.prototype._readEndOfCentralDirectory64=function(r){var s=a.parse(r).word64lu("centralDirectoryRecordSize").word16lu("versionMadeBy").word16lu("versionsNeededToExtract").word32lu("diskNumber").word32lu("diskNumberWithCentralDirectoryStart").word64lu("centralDirectoryEntries").word64lu("totalCentralDirectoryEntries").word64lu("sizeOfCentralDirectory").word64lu("offsetToStartOfCentralDirectory").vars;return s};UnzipStream.prototype._readEndOfCentralDirectory=function(r){var s=a.parse(r).word16lu("diskNumber").word16lu("diskStart").word16lu("centralDirectoryEntries").word16lu("totalCentralDirectoryEntries").word32lu("sizeOfCentralDirectory").word32lu("offsetToStartOfCentralDirectory").word16lu("commentLength").vars;return s};const Q="\0☺☻♥♦♣♠•◘○◙♂♀♪♫☼►◄↕‼¶§▬↨↑↓→←∟↔▲▼ !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~⌂ÇüéâäàåçêëèïîìÄÅÉæÆôöòûùÿÖÜ¢£¥₧ƒáíóúñѪº¿⌐¬½¼¡«»░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀αßΓπΣσµτΦΘΩδ∞φε∩≡±≥≤⌠⌡÷≈°∙·√ⁿ²■ ";UnzipStream.prototype._decodeString=function(r,s){if(s){return r.toString("utf8")}if(this.options.decodeString){return this.options.decodeString(r)}let i="";for(var a=0;a0){this.data=this.data.slice(i);if(this.data.length===0)break}if(this.state===p.FILE_DATA){if(this.outStreamInfo.limit>=0){var a=this.outStreamInfo.limit-this.outStreamInfo.written;var A;if(a{if(this.state===p.FILE_DATA_END){this.state=p.START;return c.end(s)}s()}))}return}s()};UnzipStream.prototype.drainAll=function(){this._drainAllEntries=true};UnzipStream.prototype._transform=function(r,s,i){var a=this;if(a.data.length>0){a.data=Buffer.concat([a.data,r])}else{a.data=r}var A=a.data.length;var done=function(){if(a.data.length>0&&a.data.length0){s._parseOrOutput("buffer",(function(){if(s.data.length>0)return setImmediate((function(){s._flush(r)}));r()}));return}if(s.state===p.FILE_DATA){return r(new Error("Stream finished in an invalid state, uncompression failed"))}setImmediate(r)};r.exports=UnzipStream},69340:(r,s,i)=>{"use strict";s.Parse=i(93935);s.Extract=i(41202)},65278:(r,s,i)=>{r.exports=i(73837).deprecate},75840:(r,s,i)=>{"use strict";Object.defineProperty(s,"__esModule",{value:true});Object.defineProperty(s,"v1",{enumerable:true,get:function(){return a.default}});Object.defineProperty(s,"v3",{enumerable:true,get:function(){return A.default}});Object.defineProperty(s,"v4",{enumerable:true,get:function(){return c.default}});Object.defineProperty(s,"v5",{enumerable:true,get:function(){return l.default}});Object.defineProperty(s,"NIL",{enumerable:true,get:function(){return d.default}});Object.defineProperty(s,"version",{enumerable:true,get:function(){return u.default}});Object.defineProperty(s,"validate",{enumerable:true,get:function(){return p.default}});Object.defineProperty(s,"stringify",{enumerable:true,get:function(){return g.default}});Object.defineProperty(s,"parse",{enumerable:true,get:function(){return h.default}});var a=_interopRequireDefault(i(78628));var A=_interopRequireDefault(i(86409));var c=_interopRequireDefault(i(85122));var l=_interopRequireDefault(i(79120));var d=_interopRequireDefault(i(25332));var u=_interopRequireDefault(i(81595));var p=_interopRequireDefault(i(66900));var g=_interopRequireDefault(i(18950));var h=_interopRequireDefault(i(62746));function _interopRequireDefault(r){return r&&r.__esModule?r:{default:r}}},4569:(r,s,i)=>{"use strict";Object.defineProperty(s,"__esModule",{value:true});s["default"]=void 0;var a=_interopRequireDefault(i(6113));function _interopRequireDefault(r){return r&&r.__esModule?r:{default:r}}function md5(r){if(Array.isArray(r)){r=Buffer.from(r)}else if(typeof r==="string"){r=Buffer.from(r,"utf8")}return a.default.createHash("md5").update(r).digest()}var A=md5;s["default"]=A},25332:(r,s)=>{"use strict";Object.defineProperty(s,"__esModule",{value:true});s["default"]=void 0;var i="00000000-0000-0000-0000-000000000000";s["default"]=i},62746:(r,s,i)=>{"use strict";Object.defineProperty(s,"__esModule",{value:true});s["default"]=void 0;var a=_interopRequireDefault(i(66900));function _interopRequireDefault(r){return r&&r.__esModule?r:{default:r}}function parse(r){if(!(0,a.default)(r)){throw TypeError("Invalid UUID")}let s;const i=new Uint8Array(16);i[0]=(s=parseInt(r.slice(0,8),16))>>>24;i[1]=s>>>16&255;i[2]=s>>>8&255;i[3]=s&255;i[4]=(s=parseInt(r.slice(9,13),16))>>>8;i[5]=s&255;i[6]=(s=parseInt(r.slice(14,18),16))>>>8;i[7]=s&255;i[8]=(s=parseInt(r.slice(19,23),16))>>>8;i[9]=s&255;i[10]=(s=parseInt(r.slice(24,36),16))/1099511627776&255;i[11]=s/4294967296&255;i[12]=s>>>24&255;i[13]=s>>>16&255;i[14]=s>>>8&255;i[15]=s&255;return i}var A=parse;s["default"]=A},40814:(r,s)=>{"use strict";Object.defineProperty(s,"__esModule",{value:true});s["default"]=void 0;var i=/^(?:[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;s["default"]=i},50807:(r,s,i)=>{"use strict";Object.defineProperty(s,"__esModule",{value:true});s["default"]=rng;var a=_interopRequireDefault(i(6113));function _interopRequireDefault(r){return r&&r.__esModule?r:{default:r}}const A=new Uint8Array(256);let c=A.length;function rng(){if(c>A.length-16){a.default.randomFillSync(A);c=0}return A.slice(c,c+=16)}},85274:(r,s,i)=>{"use strict";Object.defineProperty(s,"__esModule",{value:true});s["default"]=void 0;var a=_interopRequireDefault(i(6113));function _interopRequireDefault(r){return r&&r.__esModule?r:{default:r}}function sha1(r){if(Array.isArray(r)){r=Buffer.from(r)}else if(typeof r==="string"){r=Buffer.from(r,"utf8")}return a.default.createHash("sha1").update(r).digest()}var A=sha1;s["default"]=A},18950:(r,s,i)=>{"use strict";Object.defineProperty(s,"__esModule",{value:true});s["default"]=void 0;var a=_interopRequireDefault(i(66900));function _interopRequireDefault(r){return r&&r.__esModule?r:{default:r}}const A=[];for(let r=0;r<256;++r){A.push((r+256).toString(16).substr(1))}function stringify(r,s=0){const i=(A[r[s+0]]+A[r[s+1]]+A[r[s+2]]+A[r[s+3]]+"-"+A[r[s+4]]+A[r[s+5]]+"-"+A[r[s+6]]+A[r[s+7]]+"-"+A[r[s+8]]+A[r[s+9]]+"-"+A[r[s+10]]+A[r[s+11]]+A[r[s+12]]+A[r[s+13]]+A[r[s+14]]+A[r[s+15]]).toLowerCase();if(!(0,a.default)(i)){throw TypeError("Stringified UUID is invalid")}return i}var c=stringify;s["default"]=c},78628:(r,s,i)=>{"use strict";Object.defineProperty(s,"__esModule",{value:true});s["default"]=void 0;var a=_interopRequireDefault(i(50807));var A=_interopRequireDefault(i(18950));function _interopRequireDefault(r){return r&&r.__esModule?r:{default:r}}let c;let l;let d=0;let u=0;function v1(r,s,i){let p=s&&i||0;const g=s||new Array(16);r=r||{};let h=r.node||c;let C=r.clockseq!==undefined?r.clockseq:l;if(h==null||C==null){const s=r.random||(r.rng||a.default)();if(h==null){h=c=[s[0]|1,s[1],s[2],s[3],s[4],s[5]]}if(C==null){C=l=(s[6]<<8|s[7])&16383}}let y=r.msecs!==undefined?r.msecs:Date.now();let I=r.nsecs!==undefined?r.nsecs:u+1;const B=y-d+(I-u)/1e4;if(B<0&&r.clockseq===undefined){C=C+1&16383}if((B<0||y>d)&&r.nsecs===undefined){I=0}if(I>=1e4){throw new Error("uuid.v1(): Can't create more than 10M uuids/sec")}d=y;u=I;l=C;y+=122192928e5;const b=((y&268435455)*1e4+I)%4294967296;g[p++]=b>>>24&255;g[p++]=b>>>16&255;g[p++]=b>>>8&255;g[p++]=b&255;const Q=y/4294967296*1e4&268435455;g[p++]=Q>>>8&255;g[p++]=Q&255;g[p++]=Q>>>24&15|16;g[p++]=Q>>>16&255;g[p++]=C>>>8|128;g[p++]=C&255;for(let r=0;r<6;++r){g[p+r]=h[r]}return s||(0,A.default)(g)}var p=v1;s["default"]=p},86409:(r,s,i)=>{"use strict";Object.defineProperty(s,"__esModule",{value:true});s["default"]=void 0;var a=_interopRequireDefault(i(65998));var A=_interopRequireDefault(i(4569));function _interopRequireDefault(r){return r&&r.__esModule?r:{default:r}}const c=(0,a.default)("v3",48,A.default);var l=c;s["default"]=l},65998:(r,s,i)=>{"use strict";Object.defineProperty(s,"__esModule",{value:true});s["default"]=_default;s.URL=s.DNS=void 0;var a=_interopRequireDefault(i(18950));var A=_interopRequireDefault(i(62746));function _interopRequireDefault(r){return r&&r.__esModule?r:{default:r}}function stringToBytes(r){r=unescape(encodeURIComponent(r));const s=[];for(let i=0;i{"use strict";Object.defineProperty(s,"__esModule",{value:true});s["default"]=void 0;var a=_interopRequireDefault(i(50807));var A=_interopRequireDefault(i(18950));function _interopRequireDefault(r){return r&&r.__esModule?r:{default:r}}function v4(r,s,i){r=r||{};const c=r.random||(r.rng||a.default)();c[6]=c[6]&15|64;c[8]=c[8]&63|128;if(s){i=i||0;for(let r=0;r<16;++r){s[i+r]=c[r]}return s}return(0,A.default)(c)}var c=v4;s["default"]=c},79120:(r,s,i)=>{"use strict";Object.defineProperty(s,"__esModule",{value:true});s["default"]=void 0;var a=_interopRequireDefault(i(65998));var A=_interopRequireDefault(i(85274));function _interopRequireDefault(r){return r&&r.__esModule?r:{default:r}}const c=(0,a.default)("v5",80,A.default);var l=c;s["default"]=l},66900:(r,s,i)=>{"use strict";Object.defineProperty(s,"__esModule",{value:true});s["default"]=void 0;var a=_interopRequireDefault(i(40814));function _interopRequireDefault(r){return r&&r.__esModule?r:{default:r}}function validate(r){return typeof r==="string"&&a.default.test(r)}var A=validate;s["default"]=A},81595:(r,s,i)=>{"use strict";Object.defineProperty(s,"__esModule",{value:true});s["default"]=void 0;var a=_interopRequireDefault(i(66900));function _interopRequireDefault(r){return r&&r.__esModule?r:{default:r}}function version(r){if(!(0,a.default)(r)){throw TypeError("Invalid UUID")}return parseInt(r.substr(14,1),16)}var A=version;s["default"]=A},54886:r=>{"use strict";var s={};r.exports=s;function sign(r){return r<0?-1:1}function evenRound(r){if(r%1===.5&&(r&1)===0){return Math.floor(r)}else{return Math.round(r)}}function createNumberConversion(r,s){if(!s.unsigned){--r}const i=s.unsigned?0:-Math.pow(2,r);const a=Math.pow(2,r)-1;const A=s.moduloBitLength?Math.pow(2,s.moduloBitLength):Math.pow(2,r);const c=s.moduloBitLength?Math.pow(2,s.moduloBitLength-1):Math.pow(2,r-1);return function(r,l){if(!l)l={};let d=+r;if(l.enforceRange){if(!Number.isFinite(d)){throw new TypeError("Argument is not a finite number")}d=sign(d)*Math.floor(Math.abs(d));if(da){throw new TypeError("Argument is not in byte range")}return d}if(!isNaN(d)&&l.clamp){d=evenRound(d);if(da)d=a;return d}if(!Number.isFinite(d)||d===0){return 0}d=sign(d)*Math.floor(Math.abs(d));d=d%A;if(!s.unsigned&&d>=c){return d-A}else if(s.unsigned){if(d<0){d+=A}else if(d===-0){return 0}}return d}}s["void"]=function(){return undefined};s["boolean"]=function(r){return!!r};s["byte"]=createNumberConversion(8,{unsigned:false});s["octet"]=createNumberConversion(8,{unsigned:true});s["short"]=createNumberConversion(16,{unsigned:false});s["unsigned short"]=createNumberConversion(16,{unsigned:true});s["long"]=createNumberConversion(32,{unsigned:false});s["unsigned long"]=createNumberConversion(32,{unsigned:true});s["long long"]=createNumberConversion(32,{unsigned:false,moduloBitLength:64});s["unsigned long long"]=createNumberConversion(32,{unsigned:true,moduloBitLength:64});s["double"]=function(r){const s=+r;if(!Number.isFinite(s)){throw new TypeError("Argument is not a finite floating-point value")}return s};s["unrestricted double"]=function(r){const s=+r;if(isNaN(s)){throw new TypeError("Argument is NaN")}return s};s["float"]=s["double"];s["unrestricted float"]=s["unrestricted double"];s["DOMString"]=function(r,s){if(!s)s={};if(s.treatNullAsEmptyString&&r===null){return""}return String(r)};s["ByteString"]=function(r,s){const i=String(r);let a=undefined;for(let r=0;(a=i.codePointAt(r))!==undefined;++r){if(a>255){throw new TypeError("Argument is not a valid bytestring")}}return i};s["USVString"]=function(r){const s=String(r);const i=s.length;const a=[];for(let r=0;r57343){a.push(String.fromCodePoint(A))}else if(56320<=A&&A<=57343){a.push(String.fromCodePoint(65533))}else{if(r===i-1){a.push(String.fromCodePoint(65533))}else{const i=s.charCodeAt(r+1);if(56320<=i&&i<=57343){const s=A&1023;const c=i&1023;a.push(String.fromCodePoint((2<<15)+(2<<9)*s+c));++r}else{a.push(String.fromCodePoint(65533))}}}}return a.join("")};s["Date"]=function(r,s){if(!(r instanceof Date)){throw new TypeError("Argument is not a Date object")}if(isNaN(r)){return undefined}return r};s["RegExp"]=function(r,s){if(!(r instanceof RegExp)){r=new RegExp(r)}return r}},97537:(r,s,i)=>{"use strict";const a=i(2158);s.implementation=class URLImpl{constructor(r){const s=r[0];const i=r[1];let A=null;if(i!==undefined){A=a.basicURLParse(i);if(A==="failure"){throw new TypeError("Invalid base URL")}}const c=a.basicURLParse(s,{baseURL:A});if(c==="failure"){throw new TypeError("Invalid URL")}this._url=c}get href(){return a.serializeURL(this._url)}set href(r){const s=a.basicURLParse(r);if(s==="failure"){throw new TypeError("Invalid URL")}this._url=s}get origin(){return a.serializeURLOrigin(this._url)}get protocol(){return this._url.scheme+":"}set protocol(r){a.basicURLParse(r+":",{url:this._url,stateOverride:"scheme start"})}get username(){return this._url.username}set username(r){if(a.cannotHaveAUsernamePasswordPort(this._url)){return}a.setTheUsername(this._url,r)}get password(){return this._url.password}set password(r){if(a.cannotHaveAUsernamePasswordPort(this._url)){return}a.setThePassword(this._url,r)}get host(){const r=this._url;if(r.host===null){return""}if(r.port===null){return a.serializeHost(r.host)}return a.serializeHost(r.host)+":"+a.serializeInteger(r.port)}set host(r){if(this._url.cannotBeABaseURL){return}a.basicURLParse(r,{url:this._url,stateOverride:"host"})}get hostname(){if(this._url.host===null){return""}return a.serializeHost(this._url.host)}set hostname(r){if(this._url.cannotBeABaseURL){return}a.basicURLParse(r,{url:this._url,stateOverride:"hostname"})}get port(){if(this._url.port===null){return""}return a.serializeInteger(this._url.port)}set port(r){if(a.cannotHaveAUsernamePasswordPort(this._url)){return}if(r===""){this._url.port=null}else{a.basicURLParse(r,{url:this._url,stateOverride:"port"})}}get pathname(){if(this._url.cannotBeABaseURL){return this._url.path[0]}if(this._url.path.length===0){return""}return"/"+this._url.path.join("/")}set pathname(r){if(this._url.cannotBeABaseURL){return}this._url.path=[];a.basicURLParse(r,{url:this._url,stateOverride:"path start"})}get search(){if(this._url.query===null||this._url.query===""){return""}return"?"+this._url.query}set search(r){const s=this._url;if(r===""){s.query=null;return}const i=r[0]==="?"?r.substring(1):r;s.query="";a.basicURLParse(i,{url:s,stateOverride:"query"})}get hash(){if(this._url.fragment===null||this._url.fragment===""){return""}return"#"+this._url.fragment}set hash(r){if(r===""){this._url.fragment=null;return}const s=r[0]==="#"?r.substring(1):r;this._url.fragment="";a.basicURLParse(s,{url:this._url,stateOverride:"fragment"})}toJSON(){return this.href}}},63394:(r,s,i)=>{"use strict";const a=i(54886);const A=i(83185);const c=i(97537);const l=A.implSymbol;function URL(s){if(!this||this[l]||!(this instanceof URL)){throw new TypeError("Failed to construct 'URL': Please use the 'new' operator, this DOM object constructor cannot be called as a function.")}if(arguments.length<1){throw new TypeError("Failed to construct 'URL': 1 argument required, but only "+arguments.length+" present.")}const i=[];for(let r=0;r{"use strict";s.URL=i(63394)["interface"];s.serializeURL=i(2158).serializeURL;s.serializeURLOrigin=i(2158).serializeURLOrigin;s.basicURLParse=i(2158).basicURLParse;s.setTheUsername=i(2158).setTheUsername;s.setThePassword=i(2158).setThePassword;s.serializeHost=i(2158).serializeHost;s.serializeInteger=i(2158).serializeInteger;s.parseURL=i(2158).parseURL},2158:(r,s,i)=>{"use strict";const a=i(85477);const A=i(84256);const c={ftp:21,file:null,gopher:70,http:80,https:443,ws:80,wss:443};const l=Symbol("failure");function countSymbols(r){return a.ucs2.decode(r).length}function at(r,s){const i=r[s];return isNaN(i)?undefined:String.fromCodePoint(i)}function isASCIIDigit(r){return r>=48&&r<=57}function isASCIIAlpha(r){return r>=65&&r<=90||r>=97&&r<=122}function isASCIIAlphanumeric(r){return isASCIIAlpha(r)||isASCIIDigit(r)}function isASCIIHex(r){return isASCIIDigit(r)||r>=65&&r<=70||r>=97&&r<=102}function isSingleDot(r){return r==="."||r.toLowerCase()==="%2e"}function isDoubleDot(r){r=r.toLowerCase();return r===".."||r==="%2e."||r===".%2e"||r==="%2e%2e"}function isWindowsDriveLetterCodePoints(r,s){return isASCIIAlpha(r)&&(s===58||s===124)}function isWindowsDriveLetterString(r){return r.length===2&&isASCIIAlpha(r.codePointAt(0))&&(r[1]===":"||r[1]==="|")}function isNormalizedWindowsDriveLetterString(r){return r.length===2&&isASCIIAlpha(r.codePointAt(0))&&r[1]===":"}function containsForbiddenHostCodePoint(r){return r.search(/\u0000|\u0009|\u000A|\u000D|\u0020|#|%|\/|:|\?|@|\[|\\|\]/)!==-1}function containsForbiddenHostCodePointExcludingPercent(r){return r.search(/\u0000|\u0009|\u000A|\u000D|\u0020|#|\/|:|\?|@|\[|\\|\]/)!==-1}function isSpecialScheme(r){return c[r]!==undefined}function isSpecial(r){return isSpecialScheme(r.scheme)}function defaultPort(r){return c[r]}function percentEncode(r){let s=r.toString(16).toUpperCase();if(s.length===1){s="0"+s}return"%"+s}function utf8PercentEncode(r){const s=new Buffer(r);let i="";for(let r=0;r126}const d=new Set([32,34,35,60,62,63,96,123,125]);function isPathPercentEncode(r){return isC0ControlPercentEncode(r)||d.has(r)}const u=new Set([47,58,59,61,64,91,92,93,94,124]);function isUserinfoPercentEncode(r){return isPathPercentEncode(r)||u.has(r)}function percentEncodeChar(r,s){const i=String.fromCodePoint(r);if(s(r)){return utf8PercentEncode(i)}return i}function parseIPv4Number(r){let s=10;if(r.length>=2&&r.charAt(0)==="0"&&r.charAt(1).toLowerCase()==="x"){r=r.substring(2);s=16}else if(r.length>=2&&r.charAt(0)==="0"){r=r.substring(1);s=8}if(r===""){return 0}const i=s===10?/[^0-9]/:s===16?/[^0-9A-Fa-f]/:/[^0-7]/;if(i.test(r)){return l}return parseInt(r,s)}function parseIPv4(r){const s=r.split(".");if(s[s.length-1]===""){if(s.length>1){s.pop()}}if(s.length>4){return r}const i=[];for(const a of s){if(a===""){return r}const s=parseIPv4Number(a);if(s===l){return r}i.push(s)}for(let r=0;r255){return l}}if(i[i.length-1]>=Math.pow(256,5-i.length)){return l}let a=i.pop();let A=0;for(const r of i){a+=r*Math.pow(256,3-A);++A}return a}function serializeIPv4(r){let s="";let i=r;for(let r=1;r<=4;++r){s=String(i%256)+s;if(r!==4){s="."+s}i=Math.floor(i/256)}return s}function parseIPv6(r){const s=[0,0,0,0,0,0,0,0];let i=0;let A=null;let c=0;r=a.ucs2.decode(r);if(r[c]===58){if(r[c+1]!==58){return l}c+=2;++i;A=i}while(c6){return l}let a=0;while(r[c]!==undefined){let A=null;if(a>0){if(r[c]===46&&a<4){++c}else{return l}}if(!isASCIIDigit(r[c])){return l}while(isASCIIDigit(r[c])){const s=parseInt(at(r,c));if(A===null){A=s}else if(A===0){return l}else{A=A*10+s}if(A>255){return l}++c}s[i]=s[i]*256+A;++a;if(a===2||a===4){++i}}if(a!==4){return l}break}else if(r[c]===58){++c;if(r[c]===undefined){return l}}else if(r[c]!==undefined){return l}s[i]=a;++i}if(A!==null){let r=i-A;i=7;while(i!==0&&r>0){const a=s[A+r-1];s[A+r-1]=s[i];s[i]=a;--i;--r}}else if(A===null&&i!==8){return l}return s}function serializeIPv6(r){let s="";const i=findLongestZeroSequence(r);const a=i.idx;let A=false;for(let i=0;i<=7;++i){if(A&&r[i]===0){continue}else if(A){A=false}if(a===i){const r=i===0?"::":":";s+=r;A=true;continue}s+=r[i].toString(16);if(i!==7){s+=":"}}return s}function parseHost(r,s){if(r[0]==="["){if(r[r.length-1]!=="]"){return l}return parseIPv6(r.substring(1,r.length-1))}if(!s){return parseOpaqueHost(r)}const i=utf8PercentDecode(r);const a=A.toASCII(i,false,A.PROCESSING_OPTIONS.NONTRANSITIONAL,false);if(a===null){return l}if(containsForbiddenHostCodePoint(a)){return l}const c=parseIPv4(a);if(typeof c==="number"||c===l){return c}return a}function parseOpaqueHost(r){if(containsForbiddenHostCodePointExcludingPercent(r)){return l}let s="";const i=a.ucs2.decode(r);for(let r=0;ri){s=a;i=A}a=null;A=0}else{if(a===null){a=c}++A}}if(A>i){s=a;i=A}return{idx:s,len:i}}function serializeHost(r){if(typeof r==="number"){return serializeIPv4(r)}if(r instanceof Array){return"["+serializeIPv6(r)+"]"}return r}function trimControlChars(r){return r.replace(/^[\u0000-\u001F\u0020]+|[\u0000-\u001F\u0020]+$/g,"")}function trimTabAndNewline(r){return r.replace(/\u0009|\u000A|\u000D/g,"")}function shortenPath(r){const s=r.path;if(s.length===0){return}if(r.scheme==="file"&&s.length===1&&isNormalizedWindowsDriveLetter(s[0])){return}s.pop()}function includesCredentials(r){return r.username!==""||r.password!==""}function cannotHaveAUsernamePasswordPort(r){return r.host===null||r.host===""||r.cannotBeABaseURL||r.scheme==="file"}function isNormalizedWindowsDriveLetter(r){return/^[A-Za-z]:$/.test(r)}function URLStateMachine(r,s,i,A,c){this.pointer=0;this.input=r;this.base=s||null;this.encodingOverride=i||"utf-8";this.stateOverride=c;this.url=A;this.failure=false;this.parseError=false;if(!this.url){this.url={scheme:"",username:"",password:"",host:null,port:null,path:[],query:null,fragment:null,cannotBeABaseURL:false};const r=trimControlChars(this.input);if(r!==this.input){this.parseError=true}this.input=r}const d=trimTabAndNewline(this.input);if(d!==this.input){this.parseError=true}this.input=d;this.state=c||"scheme start";this.buffer="";this.atFlag=false;this.arrFlag=false;this.passwordTokenSeenFlag=false;this.input=a.ucs2.decode(this.input);for(;this.pointer<=this.input.length;++this.pointer){const r=this.input[this.pointer];const s=isNaN(r)?undefined:String.fromCodePoint(r);const i=this["parse "+this.state](r,s);if(!i){break}else if(i===l){this.failure=true;break}}}URLStateMachine.prototype["parse scheme start"]=function parseSchemeStart(r,s){if(isASCIIAlpha(r)){this.buffer+=s.toLowerCase();this.state="scheme"}else if(!this.stateOverride){this.state="no scheme";--this.pointer}else{this.parseError=true;return l}return true};URLStateMachine.prototype["parse scheme"]=function parseScheme(r,s){if(isASCIIAlphanumeric(r)||r===43||r===45||r===46){this.buffer+=s.toLowerCase()}else if(r===58){if(this.stateOverride){if(isSpecial(this.url)&&!isSpecialScheme(this.buffer)){return false}if(!isSpecial(this.url)&&isSpecialScheme(this.buffer)){return false}if((includesCredentials(this.url)||this.url.port!==null)&&this.buffer==="file"){return false}if(this.url.scheme==="file"&&(this.url.host===""||this.url.host===null)){return false}}this.url.scheme=this.buffer;this.buffer="";if(this.stateOverride){return false}if(this.url.scheme==="file"){if(this.input[this.pointer+1]!==47||this.input[this.pointer+2]!==47){this.parseError=true}this.state="file"}else if(isSpecial(this.url)&&this.base!==null&&this.base.scheme===this.url.scheme){this.state="special relative or authority"}else if(isSpecial(this.url)){this.state="special authority slashes"}else if(this.input[this.pointer+1]===47){this.state="path or authority";++this.pointer}else{this.url.cannotBeABaseURL=true;this.url.path.push("");this.state="cannot-be-a-base-URL path"}}else if(!this.stateOverride){this.buffer="";this.state="no scheme";this.pointer=-1}else{this.parseError=true;return l}return true};URLStateMachine.prototype["parse no scheme"]=function parseNoScheme(r){if(this.base===null||this.base.cannotBeABaseURL&&r!==35){return l}else if(this.base.cannotBeABaseURL&&r===35){this.url.scheme=this.base.scheme;this.url.path=this.base.path.slice();this.url.query=this.base.query;this.url.fragment="";this.url.cannotBeABaseURL=true;this.state="fragment"}else if(this.base.scheme==="file"){this.state="file";--this.pointer}else{this.state="relative";--this.pointer}return true};URLStateMachine.prototype["parse special relative or authority"]=function parseSpecialRelativeOrAuthority(r){if(r===47&&this.input[this.pointer+1]===47){this.state="special authority ignore slashes";++this.pointer}else{this.parseError=true;this.state="relative";--this.pointer}return true};URLStateMachine.prototype["parse path or authority"]=function parsePathOrAuthority(r){if(r===47){this.state="authority"}else{this.state="path";--this.pointer}return true};URLStateMachine.prototype["parse relative"]=function parseRelative(r){this.url.scheme=this.base.scheme;if(isNaN(r)){this.url.username=this.base.username;this.url.password=this.base.password;this.url.host=this.base.host;this.url.port=this.base.port;this.url.path=this.base.path.slice();this.url.query=this.base.query}else if(r===47){this.state="relative slash"}else if(r===63){this.url.username=this.base.username;this.url.password=this.base.password;this.url.host=this.base.host;this.url.port=this.base.port;this.url.path=this.base.path.slice();this.url.query="";this.state="query"}else if(r===35){this.url.username=this.base.username;this.url.password=this.base.password;this.url.host=this.base.host;this.url.port=this.base.port;this.url.path=this.base.path.slice();this.url.query=this.base.query;this.url.fragment="";this.state="fragment"}else if(isSpecial(this.url)&&r===92){this.parseError=true;this.state="relative slash"}else{this.url.username=this.base.username;this.url.password=this.base.password;this.url.host=this.base.host;this.url.port=this.base.port;this.url.path=this.base.path.slice(0,this.base.path.length-1);this.state="path";--this.pointer}return true};URLStateMachine.prototype["parse relative slash"]=function parseRelativeSlash(r){if(isSpecial(this.url)&&(r===47||r===92)){if(r===92){this.parseError=true}this.state="special authority ignore slashes"}else if(r===47){this.state="authority"}else{this.url.username=this.base.username;this.url.password=this.base.password;this.url.host=this.base.host;this.url.port=this.base.port;this.state="path";--this.pointer}return true};URLStateMachine.prototype["parse special authority slashes"]=function parseSpecialAuthoritySlashes(r){if(r===47&&this.input[this.pointer+1]===47){this.state="special authority ignore slashes";++this.pointer}else{this.parseError=true;this.state="special authority ignore slashes";--this.pointer}return true};URLStateMachine.prototype["parse special authority ignore slashes"]=function parseSpecialAuthorityIgnoreSlashes(r){if(r!==47&&r!==92){this.state="authority";--this.pointer}else{this.parseError=true}return true};URLStateMachine.prototype["parse authority"]=function parseAuthority(r,s){if(r===64){this.parseError=true;if(this.atFlag){this.buffer="%40"+this.buffer}this.atFlag=true;const r=countSymbols(this.buffer);for(let s=0;sMath.pow(2,16)-1){this.parseError=true;return l}this.url.port=r===defaultPort(this.url.scheme)?null:r;this.buffer=""}if(this.stateOverride){return false}this.state="path start";--this.pointer}else{this.parseError=true;return l}return true};const p=new Set([47,92,63,35]);URLStateMachine.prototype["parse file"]=function parseFile(r){this.url.scheme="file";if(r===47||r===92){if(r===92){this.parseError=true}this.state="file slash"}else if(this.base!==null&&this.base.scheme==="file"){if(isNaN(r)){this.url.host=this.base.host;this.url.path=this.base.path.slice();this.url.query=this.base.query}else if(r===63){this.url.host=this.base.host;this.url.path=this.base.path.slice();this.url.query="";this.state="query"}else if(r===35){this.url.host=this.base.host;this.url.path=this.base.path.slice();this.url.query=this.base.query;this.url.fragment="";this.state="fragment"}else{if(this.input.length-this.pointer-1===0||!isWindowsDriveLetterCodePoints(r,this.input[this.pointer+1])||this.input.length-this.pointer-1>=2&&!p.has(this.input[this.pointer+2])){this.url.host=this.base.host;this.url.path=this.base.path.slice();shortenPath(this.url)}else{this.parseError=true}this.state="path";--this.pointer}}else{this.state="path";--this.pointer}return true};URLStateMachine.prototype["parse file slash"]=function parseFileSlash(r){if(r===47||r===92){if(r===92){this.parseError=true}this.state="file host"}else{if(this.base!==null&&this.base.scheme==="file"){if(isNormalizedWindowsDriveLetterString(this.base.path[0])){this.url.path.push(this.base.path[0])}else{this.url.host=this.base.host}}this.state="path";--this.pointer}return true};URLStateMachine.prototype["parse file host"]=function parseFileHost(r,s){if(isNaN(r)||r===47||r===92||r===63||r===35){--this.pointer;if(!this.stateOverride&&isWindowsDriveLetterString(this.buffer)){this.parseError=true;this.state="path"}else if(this.buffer===""){this.url.host="";if(this.stateOverride){return false}this.state="path start"}else{let r=parseHost(this.buffer,isSpecial(this.url));if(r===l){return l}if(r==="localhost"){r=""}this.url.host=r;if(this.stateOverride){return false}this.buffer="";this.state="path start"}}else{this.buffer+=s}return true};URLStateMachine.prototype["parse path start"]=function parsePathStart(r){if(isSpecial(this.url)){if(r===92){this.parseError=true}this.state="path";if(r!==47&&r!==92){--this.pointer}}else if(!this.stateOverride&&r===63){this.url.query="";this.state="query"}else if(!this.stateOverride&&r===35){this.url.fragment="";this.state="fragment"}else if(r!==undefined){this.state="path";if(r!==47){--this.pointer}}return true};URLStateMachine.prototype["parse path"]=function parsePath(r){if(isNaN(r)||r===47||isSpecial(this.url)&&r===92||!this.stateOverride&&(r===63||r===35)){if(isSpecial(this.url)&&r===92){this.parseError=true}if(isDoubleDot(this.buffer)){shortenPath(this.url);if(r!==47&&!(isSpecial(this.url)&&r===92)){this.url.path.push("")}}else if(isSingleDot(this.buffer)&&r!==47&&!(isSpecial(this.url)&&r===92)){this.url.path.push("")}else if(!isSingleDot(this.buffer)){if(this.url.scheme==="file"&&this.url.path.length===0&&isWindowsDriveLetterString(this.buffer)){if(this.url.host!==""&&this.url.host!==null){this.parseError=true;this.url.host=""}this.buffer=this.buffer[0]+":"}this.url.path.push(this.buffer)}this.buffer="";if(this.url.scheme==="file"&&(r===undefined||r===63||r===35)){while(this.url.path.length>1&&this.url.path[0]===""){this.parseError=true;this.url.path.shift()}}if(r===63){this.url.query="";this.state="query"}if(r===35){this.url.fragment="";this.state="fragment"}}else{if(r===37&&(!isASCIIHex(this.input[this.pointer+1])||!isASCIIHex(this.input[this.pointer+2]))){this.parseError=true}this.buffer+=percentEncodeChar(r,isPathPercentEncode)}return true};URLStateMachine.prototype["parse cannot-be-a-base-URL path"]=function parseCannotBeABaseURLPath(r){if(r===63){this.url.query="";this.state="query"}else if(r===35){this.url.fragment="";this.state="fragment"}else{if(!isNaN(r)&&r!==37){this.parseError=true}if(r===37&&(!isASCIIHex(this.input[this.pointer+1])||!isASCIIHex(this.input[this.pointer+2]))){this.parseError=true}if(!isNaN(r)){this.url.path[0]=this.url.path[0]+percentEncodeChar(r,isC0ControlPercentEncode)}}return true};URLStateMachine.prototype["parse query"]=function parseQuery(r,s){if(isNaN(r)||!this.stateOverride&&r===35){if(!isSpecial(this.url)||this.url.scheme==="ws"||this.url.scheme==="wss"){this.encodingOverride="utf-8"}const s=new Buffer(this.buffer);for(let r=0;r126||s[r]===34||s[r]===35||s[r]===60||s[r]===62){this.url.query+=percentEncode(s[r])}else{this.url.query+=String.fromCodePoint(s[r])}}this.buffer="";if(r===35){this.url.fragment="";this.state="fragment"}}else{if(r===37&&(!isASCIIHex(this.input[this.pointer+1])||!isASCIIHex(this.input[this.pointer+2]))){this.parseError=true}this.buffer+=s}return true};URLStateMachine.prototype["parse fragment"]=function parseFragment(r){if(isNaN(r)){}else if(r===0){this.parseError=true}else{if(r===37&&(!isASCIIHex(this.input[this.pointer+1])||!isASCIIHex(this.input[this.pointer+2]))){this.parseError=true}this.url.fragment+=percentEncodeChar(r,isC0ControlPercentEncode)}return true};function serializeURL(r,s){let i=r.scheme+":";if(r.host!==null){i+="//";if(r.username!==""||r.password!==""){i+=r.username;if(r.password!==""){i+=":"+r.password}i+="@"}i+=serializeHost(r.host);if(r.port!==null){i+=":"+r.port}}else if(r.host===null&&r.scheme==="file"){i+="//"}if(r.cannotBeABaseURL){i+=r.path[0]}else{for(const s of r.path){i+="/"+s}}if(r.query!==null){i+="?"+r.query}if(!s&&r.fragment!==null){i+="#"+r.fragment}return i}function serializeOrigin(r){let s=r.scheme+"://";s+=serializeHost(r.host);if(r.port!==null){s+=":"+r.port}return s}r.exports.serializeURL=serializeURL;r.exports.serializeURLOrigin=function(s){switch(s.scheme){case"blob":try{return r.exports.serializeURLOrigin(r.exports.parseURL(s.path[0]))}catch(r){return"null"}case"ftp":case"gopher":case"http":case"https":case"ws":case"wss":return serializeOrigin({scheme:s.scheme,host:s.host,port:s.port});case"file":return"file://";default:return"null"}};r.exports.basicURLParse=function(r,s){if(s===undefined){s={}}const i=new URLStateMachine(r,s.baseURL,s.encodingOverride,s.url,s.stateOverride);if(i.failure){return"failure"}return i.url};r.exports.setTheUsername=function(r,s){r.username="";const i=a.ucs2.decode(s);for(let s=0;s{"use strict";r.exports.mixin=function mixin(r,s){const i=Object.getOwnPropertyNames(s);for(let a=0;a{r.exports=wrappy;function wrappy(r,s){if(r&&s)return wrappy(r)(s);if(typeof r!=="function")throw new TypeError("need wrapper function");Object.keys(r).forEach((function(s){wrapper[s]=r[s]}));return wrapper;function wrapper(){var s=new Array(arguments.length);for(var i=0;i=0||r.indexOf(">")>=0||r.indexOf("<")>=0)};l=function(r){return""};A=function(r){return r.replace("]]>","]]]]>")};s.Builder=function(){function Builder(r){var s,i,A;this.options={};i=a["0.2"];for(s in i){if(!d.call(i,s))continue;A=i[s];this.options[s]=A}for(s in r){if(!d.call(r,s))continue;A=r[s];this.options[s]=A}}Builder.prototype.buildObject=function(s){var i,A,u,p,g;i=this.options.attrkey;A=this.options.charkey;if(Object.keys(s).length===1&&this.options.rootName===a["0.2"].rootName){g=Object.keys(s)[0];s=s[g]}else{g=this.options.rootName}u=function(r){return function(s,a){var p,g,h,C,y,I;if(typeof a!=="object"){if(r.options.cdata&&c(a)){s.raw(l(a))}else{s.txt(a)}}else if(Array.isArray(a)){for(C in a){if(!d.call(a,C))continue;g=a[C];for(y in g){h=g[y];s=u(s.ele(y),h).up()}}}else{for(y in a){if(!d.call(a,y))continue;g=a[y];if(y===i){if(typeof g==="object"){for(p in g){I=g[p];s=s.att(p,I)}}}else if(y===A){if(r.options.cdata&&c(g)){s=s.raw(l(g))}else{s=s.txt(g)}}else if(Array.isArray(g)){for(C in g){if(!d.call(g,C))continue;h=g[C];if(typeof h==="string"){if(r.options.cdata&&c(h)){s=s.ele(y).raw(l(h)).up()}else{s=s.ele(y,h).up()}}else{s=u(s.ele(y),h).up()}}}else if(typeof g==="object"){s=u(s.ele(y),g).up()}else{if(typeof g==="string"&&r.options.cdata&&c(g)){s=s.ele(y).raw(l(g)).up()}else{if(g==null){g=""}s=s.ele(y,g.toString()).up()}}}}return s}}(this);p=r.create(g,this.options.xmldec,this.options.doctype,{headless:this.options.headless,allowSurrogateChars:this.options.allowSurrogateChars});return u(p,s).end(this.options.renderOpts)};return Builder}()}).call(this)},97251:function(r,s){(function(){s.defaults={.1:{explicitCharkey:false,trim:true,normalize:true,normalizeTags:false,attrkey:"@",charkey:"#",explicitArray:false,ignoreAttrs:false,mergeAttrs:false,explicitRoot:false,validator:null,xmlns:false,explicitChildren:false,childkey:"@@",charsAsChildren:false,includeWhiteChars:false,async:false,strict:true,attrNameProcessors:null,attrValueProcessors:null,tagNameProcessors:null,valueProcessors:null,emptyTag:""},.2:{explicitCharkey:false,trim:false,normalize:false,normalizeTags:false,attrkey:"$",charkey:"_",explicitArray:true,ignoreAttrs:false,mergeAttrs:false,explicitRoot:true,validator:null,xmlns:false,explicitChildren:false,preserveChildrenOrder:false,childkey:"$$",charsAsChildren:false,includeWhiteChars:false,async:false,strict:true,attrNameProcessors:null,attrValueProcessors:null,tagNameProcessors:null,valueProcessors:null,rootName:"root",xmldec:{version:"1.0",encoding:"UTF-8",standalone:true},doctype:null,renderOpts:{pretty:true,indent:" ",newline:"\n"},headless:false,chunkSize:1e4,emptyTag:"",cdata:false}}}).call(this)},83314:function(r,s,i){(function(){"use strict";var r,a,A,c,l,d,u,p,bind=function(r,s){return function(){return r.apply(s,arguments)}},extend=function(r,s){for(var i in s){if(g.call(s,i))r[i]=s[i]}function ctor(){this.constructor=r}ctor.prototype=s.prototype;r.prototype=new ctor;r.__super__=s.prototype;return r},g={}.hasOwnProperty;u=i(72043);A=i(82361);r=i(22624);d=i(99236);p=i(39512).setImmediate;a=i(97251).defaults;c=function(r){return typeof r==="object"&&r!=null&&Object.keys(r).length===0};l=function(r,s,i){var a,A,c;for(a=0,A=r.length;a0){u[r.options.childkey]=h}h=u}else if(I){I[r.options.childkey]=I[r.options.childkey]||[];C=Object.create(null);for(d in h){if(!g.call(h,d))continue;C[d]=h[d]}I[r.options.childkey].push(C);delete h["#name"];if(Object.keys(h).length===1&&s in h&&!r.EXPLICIT_CHARKEY){h=h[s]}}}if(a.length>0){return r.assignOrPush(I,p,h)}else{if(r.options.explicitRoot){y=h;h=Object.create(null);h[p]=y}r.resultObject=h;r.saxParser.ended=true;return r.emit("end",r.resultObject)}}}(this);i=function(r){return function(i){var A,c;c=a[a.length-1];if(c){c[s]+=i;if(r.options.explicitChildren&&r.options.preserveChildrenOrder&&r.options.charsAsChildren&&(r.options.includeWhiteChars||i.replace(/\\n/g,"").trim()!=="")){c[r.options.childkey]=c[r.options.childkey]||[];A={"#name":"__text__"};A[s]=i;if(r.options.normalize){A[s]=A[s].replace(/\s{2,}/g," ").trim()}c[r.options.childkey].push(A)}return c}}}(this);this.saxParser.ontext=i;return this.saxParser.oncdata=function(r){return function(r){var s;s=i(r);if(s){return s.cdata=true}}}(this)};Parser.prototype.parseString=function(s,i){var a;if(i!=null&&typeof i==="function"){this.on("end",(function(r){this.reset();return i(null,r)}));this.on("error",(function(r){this.reset();return i(r)}))}try{s=s.toString();if(s.trim()===""){this.emit("end",null);return true}s=r.stripBOM(s);if(this.options.async){this.remaining=s;p(this.processAsync);return this.saxParser}return this.saxParser.write(s).close()}catch(r){a=r;if(!(this.saxParser.errThrown||this.saxParser.ended)){this.emit("error",a);return this.saxParser.errThrown=true}else if(this.saxParser.ended){throw a}}};Parser.prototype.parseStringPromise=function(r){return new Promise(function(s){return function(i,a){return s.parseString(r,(function(r,s){if(r){return a(r)}else{return i(s)}}))}}(this))};return Parser}(A);s.parseString=function(r,i,a){var A,c,l;if(a!=null){if(typeof a==="function"){A=a}if(typeof i==="object"){c=i}}else{if(typeof i==="function"){A=i}c={}}l=new s.Parser(c);return l.parseString(r,A)};s.parseStringPromise=function(r,i){var a,A;if(typeof i==="object"){a=i}A=new s.Parser(a);return A.parseStringPromise(r)}}).call(this)},99236:function(r,s){(function(){"use strict";var r;r=new RegExp(/(?!xmlns)^.*:/);s.normalize=function(r){return r.toLowerCase()};s.firstCharLowerCase=function(r){return r.charAt(0).toLowerCase()+r.slice(1)};s.stripPrefix=function(s){return s.replace(r,"")};s.parseNumbers=function(r){if(!isNaN(r)){r=r%1===0?parseInt(r,10):parseFloat(r)}return r};s.parseBooleans=function(r){if(/^(?:true|false)$/i.test(r)){r=r.toLowerCase()==="true"}return r}}).call(this)},66189:function(r,s,i){(function(){"use strict";var r,a,A,c,extend=function(r,s){for(var i in s){if(l.call(s,i))r[i]=s[i]}function ctor(){this.constructor=r}ctor.prototype=s.prototype;r.prototype=new ctor;r.__super__=s.prototype;return r},l={}.hasOwnProperty;a=i(97251);r=i(43337);A=i(83314);c=i(99236);s.defaults=a.defaults;s.processors=c;s.ValidationError=function(r){extend(ValidationError,r);function ValidationError(r){this.message=r}return ValidationError}(Error);s.Builder=r.Builder;s.Parser=A.Parser;s.parseString=A.parseString;s.parseStringPromise=A.parseStringPromise}).call(this)},52839:function(r){(function(){r.exports={Disconnected:1,Preceding:2,Following:4,Contains:8,ContainedBy:16,ImplementationSpecific:32}}).call(this)},29267:function(r){(function(){r.exports={Element:1,Attribute:2,Text:3,CData:4,EntityReference:5,EntityDeclaration:6,ProcessingInstruction:7,Comment:8,Document:9,DocType:10,DocumentFragment:11,NotationDeclaration:12,Declaration:201,Raw:202,AttributeDeclaration:203,ElementDeclaration:204,Dummy:205}}).call(this)},58229:function(r){(function(){var s,i,a,A,c,l,d,u=[].slice,p={}.hasOwnProperty;s=function(){var r,s,i,a,A,l;l=arguments[0],A=2<=arguments.length?u.call(arguments,1):[];if(c(Object.assign)){Object.assign.apply(null,arguments)}else{for(r=0,i=A.length;r"}else{return"attribute: {"+r+"}, parent: <"+this.parent.name+">"}};XMLAttribute.prototype.isEqualNode=function(r){if(r.namespaceURI!==this.namespaceURI){return false}if(r.prefix!==this.prefix){return false}if(r.localName!==this.localName){return false}if(r.value!==this.value){return false}return true};return XMLAttribute}()}).call(this)},38186:function(r,s,i){(function(){var s,a,A,extend=function(r,s){for(var i in s){if(c.call(s,i))r[i]=s[i]}function ctor(){this.constructor=r}ctor.prototype=s.prototype;r.prototype=new ctor;r.__super__=s.prototype;return r},c={}.hasOwnProperty;s=i(29267);A=i(87709);r.exports=a=function(r){extend(XMLCData,r);function XMLCData(r,i){XMLCData.__super__.constructor.call(this,r);if(i==null){throw new Error("Missing CDATA text. "+this.debugInfo())}this.name="#cdata-section";this.type=s.CData;this.value=this.stringify.cdata(i)}XMLCData.prototype.clone=function(){return Object.create(this)};XMLCData.prototype.toString=function(r){return this.options.writer.cdata(this,this.options.writer.filterOptions(r))};return XMLCData}(A)}).call(this)},87709:function(r,s,i){(function(){var s,a,extend=function(r,s){for(var i in s){if(A.call(s,i))r[i]=s[i]}function ctor(){this.constructor=r}ctor.prototype=s.prototype;r.prototype=new ctor;r.__super__=s.prototype;return r},A={}.hasOwnProperty;a=i(67608);r.exports=s=function(r){extend(XMLCharacterData,r);function XMLCharacterData(r){XMLCharacterData.__super__.constructor.call(this,r);this.value=""}Object.defineProperty(XMLCharacterData.prototype,"data",{get:function(){return this.value},set:function(r){return this.value=r||""}});Object.defineProperty(XMLCharacterData.prototype,"length",{get:function(){return this.value.length}});Object.defineProperty(XMLCharacterData.prototype,"textContent",{get:function(){return this.value},set:function(r){return this.value=r||""}});XMLCharacterData.prototype.clone=function(){return Object.create(this)};XMLCharacterData.prototype.substringData=function(r,s){throw new Error("This DOM method is not implemented."+this.debugInfo())};XMLCharacterData.prototype.appendData=function(r){throw new Error("This DOM method is not implemented."+this.debugInfo())};XMLCharacterData.prototype.insertData=function(r,s){throw new Error("This DOM method is not implemented."+this.debugInfo())};XMLCharacterData.prototype.deleteData=function(r,s){throw new Error("This DOM method is not implemented."+this.debugInfo())};XMLCharacterData.prototype.replaceData=function(r,s,i){throw new Error("This DOM method is not implemented."+this.debugInfo())};XMLCharacterData.prototype.isEqualNode=function(r){if(!XMLCharacterData.__super__.isEqualNode.apply(this,arguments).isEqualNode(r)){return false}if(r.data!==this.data){return false}return true};return XMLCharacterData}(a)}).call(this)},74407:function(r,s,i){(function(){var s,a,A,extend=function(r,s){for(var i in s){if(c.call(s,i))r[i]=s[i]}function ctor(){this.constructor=r}ctor.prototype=s.prototype;r.prototype=new ctor;r.__super__=s.prototype;return r},c={}.hasOwnProperty;s=i(29267);a=i(87709);r.exports=A=function(r){extend(XMLComment,r);function XMLComment(r,i){XMLComment.__super__.constructor.call(this,r);if(i==null){throw new Error("Missing comment text. "+this.debugInfo())}this.name="#comment";this.type=s.Comment;this.value=this.stringify.comment(i)}XMLComment.prototype.clone=function(){return Object.create(this)};XMLComment.prototype.toString=function(r){return this.options.writer.comment(this,this.options.writer.filterOptions(r))};return XMLComment}(a)}).call(this)},67465:function(r,s,i){(function(){var s,a,A;a=i(46744);A=i(97028);r.exports=s=function(){function XMLDOMConfiguration(){var r;this.defaultParams={"canonical-form":false,"cdata-sections":false,comments:false,"datatype-normalization":false,"element-content-whitespace":true,entities:true,"error-handler":new a,infoset:true,"validate-if-schema":false,namespaces:true,"namespace-declarations":true,"normalize-characters":false,"schema-location":"","schema-type":"","split-cdata-sections":true,validate:false,"well-formed":true};this.params=r=Object.create(this.defaultParams)}Object.defineProperty(XMLDOMConfiguration.prototype,"parameterNames",{get:function(){return new A(Object.keys(this.defaultParams))}});XMLDOMConfiguration.prototype.getParameter=function(r){if(this.params.hasOwnProperty(r)){return this.params[r]}else{return null}};XMLDOMConfiguration.prototype.canSetParameter=function(r,s){return true};XMLDOMConfiguration.prototype.setParameter=function(r,s){if(s!=null){return this.params[r]=s}else{return delete this.params[r]}};return XMLDOMConfiguration}()}).call(this)},46744:function(r){(function(){var s;r.exports=s=function(){function XMLDOMErrorHandler(){}XMLDOMErrorHandler.prototype.handleError=function(r){throw new Error(r)};return XMLDOMErrorHandler}()}).call(this)},78310:function(r){(function(){var s;r.exports=s=function(){function XMLDOMImplementation(){}XMLDOMImplementation.prototype.hasFeature=function(r,s){return true};XMLDOMImplementation.prototype.createDocumentType=function(r,s,i){throw new Error("This DOM method is not implemented.")};XMLDOMImplementation.prototype.createDocument=function(r,s,i){throw new Error("This DOM method is not implemented.")};XMLDOMImplementation.prototype.createHTMLDocument=function(r){throw new Error("This DOM method is not implemented.")};XMLDOMImplementation.prototype.getFeature=function(r,s){throw new Error("This DOM method is not implemented.")};return XMLDOMImplementation}()}).call(this)},97028:function(r){(function(){var s;r.exports=s=function(){function XMLDOMStringList(r){this.arr=r||[]}Object.defineProperty(XMLDOMStringList.prototype,"length",{get:function(){return this.arr.length}});XMLDOMStringList.prototype.item=function(r){return this.arr[r]||null};XMLDOMStringList.prototype.contains=function(r){return this.arr.indexOf(r)!==-1};return XMLDOMStringList}()}).call(this)},81015:function(r,s,i){(function(){var s,a,A,extend=function(r,s){for(var i in s){if(c.call(s,i))r[i]=s[i]}function ctor(){this.constructor=r}ctor.prototype=s.prototype;r.prototype=new ctor;r.__super__=s.prototype;return r},c={}.hasOwnProperty;A=i(67608);s=i(29267);r.exports=a=function(r){extend(XMLDTDAttList,r);function XMLDTDAttList(r,i,a,A,c,l){XMLDTDAttList.__super__.constructor.call(this,r);if(i==null){throw new Error("Missing DTD element name. "+this.debugInfo())}if(a==null){throw new Error("Missing DTD attribute name. "+this.debugInfo(i))}if(!A){throw new Error("Missing DTD attribute type. "+this.debugInfo(i))}if(!c){throw new Error("Missing DTD attribute default. "+this.debugInfo(i))}if(c.indexOf("#")!==0){c="#"+c}if(!c.match(/^(#REQUIRED|#IMPLIED|#FIXED|#DEFAULT)$/)){throw new Error("Invalid default value type; expected: #REQUIRED, #IMPLIED, #FIXED or #DEFAULT. "+this.debugInfo(i))}if(l&&!c.match(/^(#FIXED|#DEFAULT)$/)){throw new Error("Default value only applies to #FIXED or #DEFAULT. "+this.debugInfo(i))}this.elementName=this.stringify.name(i);this.type=s.AttributeDeclaration;this.attributeName=this.stringify.name(a);this.attributeType=this.stringify.dtdAttType(A);if(l){this.defaultValue=this.stringify.dtdAttDefault(l)}this.defaultValueType=c}XMLDTDAttList.prototype.toString=function(r){return this.options.writer.dtdAttList(this,this.options.writer.filterOptions(r))};return XMLDTDAttList}(A)}).call(this)},52421:function(r,s,i){(function(){var s,a,A,extend=function(r,s){for(var i in s){if(c.call(s,i))r[i]=s[i]}function ctor(){this.constructor=r}ctor.prototype=s.prototype;r.prototype=new ctor;r.__super__=s.prototype;return r},c={}.hasOwnProperty;A=i(67608);s=i(29267);r.exports=a=function(r){extend(XMLDTDElement,r);function XMLDTDElement(r,i,a){XMLDTDElement.__super__.constructor.call(this,r);if(i==null){throw new Error("Missing DTD element name. "+this.debugInfo())}if(!a){a="(#PCDATA)"}if(Array.isArray(a)){a="("+a.join(",")+")"}this.name=this.stringify.name(i);this.type=s.ElementDeclaration;this.value=this.stringify.dtdElementValue(a)}XMLDTDElement.prototype.toString=function(r){return this.options.writer.dtdElement(this,this.options.writer.filterOptions(r))};return XMLDTDElement}(A)}).call(this)},40053:function(r,s,i){(function(){var s,a,A,c,extend=function(r,s){for(var i in s){if(l.call(s,i))r[i]=s[i]}function ctor(){this.constructor=r}ctor.prototype=s.prototype;r.prototype=new ctor;r.__super__=s.prototype;return r},l={}.hasOwnProperty;c=i(58229).isObject;A=i(67608);s=i(29267);r.exports=a=function(r){extend(XMLDTDEntity,r);function XMLDTDEntity(r,i,a,A){XMLDTDEntity.__super__.constructor.call(this,r);if(a==null){throw new Error("Missing DTD entity name. "+this.debugInfo(a))}if(A==null){throw new Error("Missing DTD entity value. "+this.debugInfo(a))}this.pe=!!i;this.name=this.stringify.name(a);this.type=s.EntityDeclaration;if(!c(A)){this.value=this.stringify.dtdEntityValue(A);this.internal=true}else{if(!A.pubID&&!A.sysID){throw new Error("Public and/or system identifiers are required for an external entity. "+this.debugInfo(a))}if(A.pubID&&!A.sysID){throw new Error("System identifier is required for a public external entity. "+this.debugInfo(a))}this.internal=false;if(A.pubID!=null){this.pubID=this.stringify.dtdPubID(A.pubID)}if(A.sysID!=null){this.sysID=this.stringify.dtdSysID(A.sysID)}if(A.nData!=null){this.nData=this.stringify.dtdNData(A.nData)}if(this.pe&&this.nData){throw new Error("Notation declaration is not allowed in a parameter entity. "+this.debugInfo(a))}}}Object.defineProperty(XMLDTDEntity.prototype,"publicId",{get:function(){return this.pubID}});Object.defineProperty(XMLDTDEntity.prototype,"systemId",{get:function(){return this.sysID}});Object.defineProperty(XMLDTDEntity.prototype,"notationName",{get:function(){return this.nData||null}});Object.defineProperty(XMLDTDEntity.prototype,"inputEncoding",{get:function(){return null}});Object.defineProperty(XMLDTDEntity.prototype,"xmlEncoding",{get:function(){return null}});Object.defineProperty(XMLDTDEntity.prototype,"xmlVersion",{get:function(){return null}});XMLDTDEntity.prototype.toString=function(r){return this.options.writer.dtdEntity(this,this.options.writer.filterOptions(r))};return XMLDTDEntity}(A)}).call(this)},82837:function(r,s,i){(function(){var s,a,A,extend=function(r,s){for(var i in s){if(c.call(s,i))r[i]=s[i]}function ctor(){this.constructor=r}ctor.prototype=s.prototype;r.prototype=new ctor;r.__super__=s.prototype;return r},c={}.hasOwnProperty;A=i(67608);s=i(29267);r.exports=a=function(r){extend(XMLDTDNotation,r);function XMLDTDNotation(r,i,a){XMLDTDNotation.__super__.constructor.call(this,r);if(i==null){throw new Error("Missing DTD notation name. "+this.debugInfo(i))}if(!a.pubID&&!a.sysID){throw new Error("Public or system identifiers are required for an external entity. "+this.debugInfo(i))}this.name=this.stringify.name(i);this.type=s.NotationDeclaration;if(a.pubID!=null){this.pubID=this.stringify.dtdPubID(a.pubID)}if(a.sysID!=null){this.sysID=this.stringify.dtdSysID(a.sysID)}}Object.defineProperty(XMLDTDNotation.prototype,"publicId",{get:function(){return this.pubID}});Object.defineProperty(XMLDTDNotation.prototype,"systemId",{get:function(){return this.sysID}});XMLDTDNotation.prototype.toString=function(r){return this.options.writer.dtdNotation(this,this.options.writer.filterOptions(r))};return XMLDTDNotation}(A)}).call(this)},46364:function(r,s,i){(function(){var s,a,A,c,extend=function(r,s){for(var i in s){if(l.call(s,i))r[i]=s[i]}function ctor(){this.constructor=r}ctor.prototype=s.prototype;r.prototype=new ctor;r.__super__=s.prototype;return r},l={}.hasOwnProperty;c=i(58229).isObject;A=i(67608);s=i(29267);r.exports=a=function(r){extend(XMLDeclaration,r);function XMLDeclaration(r,i,a,A){var l;XMLDeclaration.__super__.constructor.call(this,r);if(c(i)){l=i,i=l.version,a=l.encoding,A=l.standalone}if(!i){i="1.0"}this.type=s.Declaration;this.version=this.stringify.xmlVersion(i);if(a!=null){this.encoding=this.stringify.xmlEncoding(a)}if(A!=null){this.standalone=this.stringify.xmlStandalone(A)}}XMLDeclaration.prototype.toString=function(r){return this.options.writer.declaration(this,this.options.writer.filterOptions(r))};return XMLDeclaration}(A)}).call(this)},81801:function(r,s,i){(function(){var s,a,A,c,l,d,u,p,g,extend=function(r,s){for(var i in s){if(h.call(s,i))r[i]=s[i]}function ctor(){this.constructor=r}ctor.prototype=s.prototype;r.prototype=new ctor;r.__super__=s.prototype;return r},h={}.hasOwnProperty;g=i(58229).isObject;p=i(67608);s=i(29267);a=i(81015);c=i(40053);A=i(52421);l=i(82837);u=i(4361);r.exports=d=function(r){extend(XMLDocType,r);function XMLDocType(r,i,a){var A,c,l,d,u,p;XMLDocType.__super__.constructor.call(this,r);this.type=s.DocType;if(r.children){d=r.children;for(c=0,l=d.length;c=0){this.up()}return this.onEnd()};XMLDocumentCB.prototype.openCurrent=function(){if(this.currentNode){this.currentNode.children=true;return this.openNode(this.currentNode)}};XMLDocumentCB.prototype.openNode=function(r){var i,A,c,l;if(!r.isOpen){if(!this.root&&this.currentLevel===0&&r.type===s.Element){this.root=r}A="";if(r.type===s.Element){this.writerOptions.state=a.OpenTag;A=this.writer.indent(r,this.writerOptions,this.currentLevel)+"<"+r.name;l=r.attribs;for(c in l){if(!T.call(l,c))continue;i=l[c];A+=this.writer.attribute(i,this.writerOptions,this.currentLevel)}A+=(r.children?">":"/>")+this.writer.endline(r,this.writerOptions,this.currentLevel);this.writerOptions.state=a.InsideTag}else{this.writerOptions.state=a.OpenTag;A=this.writer.indent(r,this.writerOptions,this.currentLevel)+""}A+=this.writer.endline(r,this.writerOptions,this.currentLevel)}this.onData(A,this.currentLevel);return r.isOpen=true}};XMLDocumentCB.prototype.closeNode=function(r){var i;if(!r.isClosed){i="";this.writerOptions.state=a.CloseTag;if(r.type===s.Element){i=this.writer.indent(r,this.writerOptions,this.currentLevel)+""+this.writer.endline(r,this.writerOptions,this.currentLevel)}else{i=this.writer.indent(r,this.writerOptions,this.currentLevel)+"]>"+this.writer.endline(r,this.writerOptions,this.currentLevel)}this.writerOptions.state=a.None;this.onData(i,this.currentLevel);return r.isClosed=true}};XMLDocumentCB.prototype.onData=function(r,s){this.documentStarted=true;return this.onDataCallback(r,s+1)};XMLDocumentCB.prototype.onEnd=function(){this.documentCompleted=true;return this.onEndCallback()};XMLDocumentCB.prototype.debugInfo=function(r){if(r==null){return""}else{return"node: <"+r+">"}};XMLDocumentCB.prototype.ele=function(){return this.element.apply(this,arguments)};XMLDocumentCB.prototype.nod=function(r,s,i){return this.node(r,s,i)};XMLDocumentCB.prototype.txt=function(r){return this.text(r)};XMLDocumentCB.prototype.dat=function(r){return this.cdata(r)};XMLDocumentCB.prototype.com=function(r){return this.comment(r)};XMLDocumentCB.prototype.ins=function(r,s){return this.instruction(r,s)};XMLDocumentCB.prototype.dec=function(r,s,i){return this.declaration(r,s,i)};XMLDocumentCB.prototype.dtd=function(r,s,i){return this.doctype(r,s,i)};XMLDocumentCB.prototype.e=function(r,s,i){return this.element(r,s,i)};XMLDocumentCB.prototype.n=function(r,s,i){return this.node(r,s,i)};XMLDocumentCB.prototype.t=function(r){return this.text(r)};XMLDocumentCB.prototype.d=function(r){return this.cdata(r)};XMLDocumentCB.prototype.c=function(r){return this.comment(r)};XMLDocumentCB.prototype.r=function(r){return this.raw(r)};XMLDocumentCB.prototype.i=function(r,s){return this.instruction(r,s)};XMLDocumentCB.prototype.att=function(){if(this.currentNode&&this.currentNode.type===s.DocType){return this.attList.apply(this,arguments)}else{return this.attribute.apply(this,arguments)}};XMLDocumentCB.prototype.a=function(){if(this.currentNode&&this.currentNode.type===s.DocType){return this.attList.apply(this,arguments)}else{return this.attribute.apply(this,arguments)}};XMLDocumentCB.prototype.ent=function(r,s){return this.entity(r,s)};XMLDocumentCB.prototype.pent=function(r,s){return this.pEntity(r,s)};XMLDocumentCB.prototype.not=function(r,s){return this.notation(r,s)};return XMLDocumentCB}()}).call(this)},43590:function(r,s,i){(function(){var s,a,A,extend=function(r,s){for(var i in s){if(c.call(s,i))r[i]=s[i]}function ctor(){this.constructor=r}ctor.prototype=s.prototype;r.prototype=new ctor;r.__super__=s.prototype;return r},c={}.hasOwnProperty;A=i(67608);s=i(29267);r.exports=a=function(r){extend(XMLDummy,r);function XMLDummy(r){XMLDummy.__super__.constructor.call(this,r);this.type=s.Dummy}XMLDummy.prototype.clone=function(){return Object.create(this)};XMLDummy.prototype.toString=function(r){return""};return XMLDummy}(A)}).call(this)},9437:function(r,s,i){(function(){var s,a,A,c,l,d,u,p,g,extend=function(r,s){for(var i in s){if(h.call(s,i))r[i]=s[i]}function ctor(){this.constructor=r}ctor.prototype=s.prototype;r.prototype=new ctor;r.__super__=s.prototype;return r},h={}.hasOwnProperty;g=i(58229),p=g.isObject,u=g.isFunction,d=g.getValue;l=i(67608);s=i(29267);a=i(58376);c=i(4361);r.exports=A=function(r){extend(XMLElement,r);function XMLElement(r,i,a){var A,c,l,d;XMLElement.__super__.constructor.call(this,r);if(i==null){throw new Error("Missing element name. "+this.debugInfo())}this.name=this.stringify.name(i);this.type=s.Element;this.attribs={};this.schemaTypeInfo=null;if(a!=null){this.attribute(a)}if(r.type===s.Document){this.isRoot=true;this.documentObject=r;r.rootObject=this;if(r.children){d=r.children;for(c=0,l=d.length;c=a;s=0<=a?++i:--i){if(!this.attribs[s].isEqualNode(r.attribs[s])){return false}}return true};return XMLElement}(l)}).call(this)},4361:function(r){(function(){var s;r.exports=s=function(){function XMLNamedNodeMap(r){this.nodes=r}Object.defineProperty(XMLNamedNodeMap.prototype,"length",{get:function(){return Object.keys(this.nodes).length||0}});XMLNamedNodeMap.prototype.clone=function(){return this.nodes=null};XMLNamedNodeMap.prototype.getNamedItem=function(r){return this.nodes[r]};XMLNamedNodeMap.prototype.setNamedItem=function(r){var s;s=this.nodes[r.nodeName];this.nodes[r.nodeName]=r;return s||null};XMLNamedNodeMap.prototype.removeNamedItem=function(r){var s;s=this.nodes[r];delete this.nodes[r];return s||null};XMLNamedNodeMap.prototype.item=function(r){return this.nodes[Object.keys(this.nodes)[r]]||null};XMLNamedNodeMap.prototype.getNamedItemNS=function(r,s){throw new Error("This DOM method is not implemented.")};XMLNamedNodeMap.prototype.setNamedItemNS=function(r){throw new Error("This DOM method is not implemented.")};XMLNamedNodeMap.prototype.removeNamedItemNS=function(r,s){throw new Error("This DOM method is not implemented.")};return XMLNamedNodeMap}()}).call(this)},67608:function(r,s,i){(function(){var s,a,A,c,l,d,u,p,g,h,C,y,I,B,b,Q,w,v,S,R={}.hasOwnProperty;S=i(58229),v=S.isObject,w=S.isFunction,Q=S.isEmpty,b=S.getValue;p=null;A=null;c=null;l=null;d=null;I=null;B=null;y=null;u=null;a=null;C=null;g=null;s=null;r.exports=h=function(){function XMLNode(r){this.parent=r;if(this.parent){this.options=this.parent.options;this.stringify=this.parent.stringify}this.value=null;this.children=[];this.baseURI=null;if(!p){p=i(9437);A=i(38186);c=i(74407);l=i(46364);d=i(81801);I=i(16329);B=i(21318);y=i(56939);u=i(43590);a=i(29267);C=i(36768);g=i(4361);s=i(52839)}}Object.defineProperty(XMLNode.prototype,"nodeName",{get:function(){return this.name}});Object.defineProperty(XMLNode.prototype,"nodeType",{get:function(){return this.type}});Object.defineProperty(XMLNode.prototype,"nodeValue",{get:function(){return this.value}});Object.defineProperty(XMLNode.prototype,"parentNode",{get:function(){return this.parent}});Object.defineProperty(XMLNode.prototype,"childNodes",{get:function(){if(!this.childNodeList||!this.childNodeList.nodes){this.childNodeList=new C(this.children)}return this.childNodeList}});Object.defineProperty(XMLNode.prototype,"firstChild",{get:function(){return this.children[0]||null}});Object.defineProperty(XMLNode.prototype,"lastChild",{get:function(){return this.children[this.children.length-1]||null}});Object.defineProperty(XMLNode.prototype,"previousSibling",{get:function(){var r;r=this.parent.children.indexOf(this);return this.parent.children[r-1]||null}});Object.defineProperty(XMLNode.prototype,"nextSibling",{get:function(){var r;r=this.parent.children.indexOf(this);return this.parent.children[r+1]||null}});Object.defineProperty(XMLNode.prototype,"ownerDocument",{get:function(){return this.document()||null}});Object.defineProperty(XMLNode.prototype,"textContent",{get:function(){var r,s,i,A,c;if(this.nodeType===a.Element||this.nodeType===a.DocumentFragment){c="";A=this.children;for(s=0,i=A.length;s"}else if(!((i=this.parent)!=null?i.name:void 0)){return"node: <"+r+">"}else{return"node: <"+r+">, parent: <"+this.parent.name+">"}};XMLNode.prototype.ele=function(r,s,i){return this.element(r,s,i)};XMLNode.prototype.nod=function(r,s,i){return this.node(r,s,i)};XMLNode.prototype.txt=function(r){return this.text(r)};XMLNode.prototype.dat=function(r){return this.cdata(r)};XMLNode.prototype.com=function(r){return this.comment(r)};XMLNode.prototype.ins=function(r,s){return this.instruction(r,s)};XMLNode.prototype.doc=function(){return this.document()};XMLNode.prototype.dec=function(r,s,i){return this.declaration(r,s,i)};XMLNode.prototype.e=function(r,s,i){return this.element(r,s,i)};XMLNode.prototype.n=function(r,s,i){return this.node(r,s,i)};XMLNode.prototype.t=function(r){return this.text(r)};XMLNode.prototype.d=function(r){return this.cdata(r)};XMLNode.prototype.c=function(r){return this.comment(r)};XMLNode.prototype.r=function(r){return this.raw(r)};XMLNode.prototype.i=function(r,s){return this.instruction(r,s)};XMLNode.prototype.u=function(){return this.up()};XMLNode.prototype.importXMLBuilder=function(r){return this.importDocument(r)};XMLNode.prototype.replaceChild=function(r,s){throw new Error("This DOM method is not implemented."+this.debugInfo())};XMLNode.prototype.removeChild=function(r){throw new Error("This DOM method is not implemented."+this.debugInfo())};XMLNode.prototype.appendChild=function(r){throw new Error("This DOM method is not implemented."+this.debugInfo())};XMLNode.prototype.hasChildNodes=function(){return this.children.length!==0};XMLNode.prototype.cloneNode=function(r){throw new Error("This DOM method is not implemented."+this.debugInfo())};XMLNode.prototype.normalize=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())};XMLNode.prototype.isSupported=function(r,s){return true};XMLNode.prototype.hasAttributes=function(){return this.attribs.length!==0};XMLNode.prototype.compareDocumentPosition=function(r){var i,a;i=this;if(i===r){return 0}else if(this.document()!==r.document()){a=s.Disconnected|s.ImplementationSpecific;if(Math.random()<.5){a|=s.Preceding}else{a|=s.Following}return a}else if(i.isAncestor(r)){return s.Contains|s.Preceding}else if(i.isDescendant(r)){return s.Contains|s.Following}else if(i.isPreceding(r)){return s.Preceding}else{return s.Following}};XMLNode.prototype.isSameNode=function(r){throw new Error("This DOM method is not implemented."+this.debugInfo())};XMLNode.prototype.lookupPrefix=function(r){throw new Error("This DOM method is not implemented."+this.debugInfo())};XMLNode.prototype.isDefaultNamespace=function(r){throw new Error("This DOM method is not implemented."+this.debugInfo())};XMLNode.prototype.lookupNamespaceURI=function(r){throw new Error("This DOM method is not implemented."+this.debugInfo())};XMLNode.prototype.isEqualNode=function(r){var s,i,a;if(r.nodeType!==this.nodeType){return false}if(r.children.length!==this.children.length){return false}for(s=i=0,a=this.children.length-1;0<=a?i<=a:i>=a;s=0<=a?++i:--i){if(!this.children[s].isEqualNode(r.children[s])){return false}}return true};XMLNode.prototype.getFeature=function(r,s){throw new Error("This DOM method is not implemented."+this.debugInfo())};XMLNode.prototype.setUserData=function(r,s,i){throw new Error("This DOM method is not implemented."+this.debugInfo())};XMLNode.prototype.getUserData=function(r){throw new Error("This DOM method is not implemented."+this.debugInfo())};XMLNode.prototype.contains=function(r){if(!r){return false}return r===this||this.isDescendant(r)};XMLNode.prototype.isDescendant=function(r){var s,i,a,A,c;c=this.children;for(a=0,A=c.length;ai}};XMLNode.prototype.treePosition=function(r){var s,i;i=0;s=false;this.foreachTreeNode(this.document(),(function(a){i++;if(!s&&a===r){return s=true}}));if(s){return i}else{return-1}};XMLNode.prototype.foreachTreeNode=function(r,s){var i,a,A,c,l;r||(r=this.document());c=r.children;for(a=0,A=c.length;a0){this.stream.write(" [");this.stream.write(this.endline(r,s,i));s.state=a.InsideTag;d=r.children;for(c=0,l=d.length;c");this.stream.write(this.endline(r,s,i));s.state=a.None;return this.closeNode(r,s,i)};XMLStreamWriter.prototype.element=function(r,i,A){var c,d,u,p,g,h,C,y,I,B;A||(A=0);this.openNode(r,i,A);i.state=a.OpenTag;this.stream.write(this.indent(r,i,A)+"<"+r.name);I=r.attribs;for(C in I){if(!l.call(I,C))continue;c=I[C];this.attribute(c,i,A)}u=r.children.length;p=u===0?null:r.children[0];if(u===0||r.children.every((function(r){return(r.type===s.Text||r.type===s.Raw)&&r.value===""}))){if(i.allowEmpty){this.stream.write(">");i.state=a.CloseTag;this.stream.write("")}else{i.state=a.CloseTag;this.stream.write(i.spaceBeforeSlash+"/>")}}else if(i.pretty&&u===1&&(p.type===s.Text||p.type===s.Raw)&&p.value!=null){this.stream.write(">");i.state=a.InsideTag;i.suppressPrettyCount++;y=true;this.writeChildNode(p,i,A+1);i.suppressPrettyCount--;y=false;i.state=a.CloseTag;this.stream.write("")}else{this.stream.write(">"+this.endline(r,i,A));i.state=a.InsideTag;B=r.children;for(g=0,h=B.length;g")}this.stream.write(this.endline(r,i,A));i.state=a.None;return this.closeNode(r,i,A)};XMLStreamWriter.prototype.processingInstruction=function(r,s,i){return this.stream.write(XMLStreamWriter.__super__.processingInstruction.call(this,r,s,i))};XMLStreamWriter.prototype.raw=function(r,s,i){return this.stream.write(XMLStreamWriter.__super__.raw.call(this,r,s,i))};XMLStreamWriter.prototype.text=function(r,s,i){return this.stream.write(XMLStreamWriter.__super__.text.call(this,r,s,i))};XMLStreamWriter.prototype.dtdAttList=function(r,s,i){return this.stream.write(XMLStreamWriter.__super__.dtdAttList.call(this,r,s,i))};XMLStreamWriter.prototype.dtdElement=function(r,s,i){return this.stream.write(XMLStreamWriter.__super__.dtdElement.call(this,r,s,i))};XMLStreamWriter.prototype.dtdEntity=function(r,s,i){return this.stream.write(XMLStreamWriter.__super__.dtdEntity.call(this,r,s,i))};XMLStreamWriter.prototype.dtdNotation=function(r,s,i){return this.stream.write(XMLStreamWriter.__super__.dtdNotation.call(this,r,s,i))};return XMLStreamWriter}(c)}).call(this)},85913:function(r,s,i){(function(){var s,a,extend=function(r,s){for(var i in s){if(A.call(s,i))r[i]=s[i]}function ctor(){this.constructor=r}ctor.prototype=s.prototype;r.prototype=new ctor;r.__super__=s.prototype;return r},A={}.hasOwnProperty;a=i(66752);r.exports=s=function(r){extend(XMLStringWriter,r);function XMLStringWriter(r){XMLStringWriter.__super__.constructor.call(this,r)}XMLStringWriter.prototype.document=function(r,s){var i,a,A,c,l;s=this.filterOptions(s);c="";l=r.children;for(a=0,A=l.length;a","]]]]>");return this.assertLegalChar(r)};XMLStringifier.prototype.comment=function(r){if(this.options.noValidation){return r}r=""+r||"";if(r.match(/--/)){throw new Error("Comment text cannot contain double-hypen: "+r)}return this.assertLegalChar(r)};XMLStringifier.prototype.raw=function(r){if(this.options.noValidation){return r}return""+r||""};XMLStringifier.prototype.attValue=function(r){if(this.options.noValidation){return r}return this.assertLegalChar(this.attEscape(r=""+r||""))};XMLStringifier.prototype.insTarget=function(r){if(this.options.noValidation){return r}return this.assertLegalChar(""+r||"")};XMLStringifier.prototype.insValue=function(r){if(this.options.noValidation){return r}r=""+r||"";if(r.match(/\?>/)){throw new Error("Invalid processing instruction value: "+r)}return this.assertLegalChar(r)};XMLStringifier.prototype.xmlVersion=function(r){if(this.options.noValidation){return r}r=""+r||"";if(!r.match(/1\.[0-9]+/)){throw new Error("Invalid version number: "+r)}return r};XMLStringifier.prototype.xmlEncoding=function(r){if(this.options.noValidation){return r}r=""+r||"";if(!r.match(/^[A-Za-z](?:[A-Za-z0-9._-])*$/)){throw new Error("Invalid encoding: "+r)}return this.assertLegalChar(r)};XMLStringifier.prototype.xmlStandalone=function(r){if(this.options.noValidation){return r}if(r){return"yes"}else{return"no"}};XMLStringifier.prototype.dtdPubID=function(r){if(this.options.noValidation){return r}return this.assertLegalChar(""+r||"")};XMLStringifier.prototype.dtdSysID=function(r){if(this.options.noValidation){return r}return this.assertLegalChar(""+r||"")};XMLStringifier.prototype.dtdElementValue=function(r){if(this.options.noValidation){return r}return this.assertLegalChar(""+r||"")};XMLStringifier.prototype.dtdAttType=function(r){if(this.options.noValidation){return r}return this.assertLegalChar(""+r||"")};XMLStringifier.prototype.dtdAttDefault=function(r){if(this.options.noValidation){return r}return this.assertLegalChar(""+r||"")};XMLStringifier.prototype.dtdEntityValue=function(r){if(this.options.noValidation){return r}return this.assertLegalChar(""+r||"")};XMLStringifier.prototype.dtdNData=function(r){if(this.options.noValidation){return r}return this.assertLegalChar(""+r||"")};XMLStringifier.prototype.convertAttKey="@";XMLStringifier.prototype.convertPIKey="?";XMLStringifier.prototype.convertTextKey="#text";XMLStringifier.prototype.convertCDataKey="#cdata";XMLStringifier.prototype.convertCommentKey="#comment";XMLStringifier.prototype.convertRawKey="#raw";XMLStringifier.prototype.assertLegalChar=function(r){var s,i;if(this.options.noValidation){return r}s="";if(this.options.version==="1.0"){s=/[\0-\x08\x0B\f\x0E-\x1F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/;if(i=r.match(s)){throw new Error("Invalid character in string: "+r+" at index "+i.index)}}else if(this.options.version==="1.1"){s=/[\0\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/;if(i=r.match(s)){throw new Error("Invalid character in string: "+r+" at index "+i.index)}}return r};XMLStringifier.prototype.assertLegalName=function(r){var s;if(this.options.noValidation){return r}this.assertLegalChar(r);s=/^([:A-Z_a-z\xC0-\xD6\xD8-\xF6\xF8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])([\x2D\.0-:A-Z_a-z\xB7\xC0-\xD6\xD8-\xF6\xF8-\u037D\u037F-\u1FFF\u200C\u200D\u203F\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])*$/;if(!r.match(s)){throw new Error("Invalid character in name")}return r};XMLStringifier.prototype.textEscape=function(r){var s;if(this.options.noValidation){return r}s=this.options.noDoubleEncoding?/(?!&\S+;)&/g:/&/g;return r.replace(s,"&").replace(//g,">").replace(/\r/g," ")};XMLStringifier.prototype.attEscape=function(r){var s;if(this.options.noValidation){return r}s=this.options.noDoubleEncoding?/(?!&\S+;)&/g:/&/g;return r.replace(s,"&").replace(/0){return new Array(a).join(s.indent)}}return""};XMLWriterBase.prototype.endline=function(r,s,i){if(!s.pretty||s.suppressPrettyCount){return""}else{return s.newline}};XMLWriterBase.prototype.attribute=function(r,s,i){var a;this.openAttribute(r,s,i);a=" "+r.name+'="'+r.value+'"';this.closeAttribute(r,s,i);return a};XMLWriterBase.prototype.cdata=function(r,s,i){var A;this.openNode(r,s,i);s.state=a.OpenTag;A=this.indent(r,s,i)+""+this.endline(r,s,i);s.state=a.None;this.closeNode(r,s,i);return A};XMLWriterBase.prototype.comment=function(r,s,i){var A;this.openNode(r,s,i);s.state=a.OpenTag;A=this.indent(r,s,i)+"\x3c!-- ";s.state=a.InsideTag;A+=r.value;s.state=a.CloseTag;A+=" --\x3e"+this.endline(r,s,i);s.state=a.None;this.closeNode(r,s,i);return A};XMLWriterBase.prototype.declaration=function(r,s,i){var A;this.openNode(r,s,i);s.state=a.OpenTag;A=this.indent(r,s,i)+"";A+=this.endline(r,s,i);s.state=a.None;this.closeNode(r,s,i);return A};XMLWriterBase.prototype.docType=function(r,s,i){var A,c,l,d,u;i||(i=0);this.openNode(r,s,i);s.state=a.OpenTag;d=this.indent(r,s,i);d+="0){d+=" [";d+=this.endline(r,s,i);s.state=a.InsideTag;u=r.children;for(c=0,l=u.length;c";d+=this.endline(r,s,i);s.state=a.None;this.closeNode(r,s,i);return d};XMLWriterBase.prototype.element=function(r,i,A){var c,l,d,u,p,g,h,C,y,I,B,b,Q,w;A||(A=0);I=false;B="";this.openNode(r,i,A);i.state=a.OpenTag;B+=this.indent(r,i,A)+"<"+r.name;b=r.attribs;for(y in b){if(!v.call(b,y))continue;c=b[y];B+=this.attribute(c,i,A)}d=r.children.length;u=d===0?null:r.children[0];if(d===0||r.children.every((function(r){return(r.type===s.Text||r.type===s.Raw)&&r.value===""}))){if(i.allowEmpty){B+=">";i.state=a.CloseTag;B+=""+this.endline(r,i,A)}else{i.state=a.CloseTag;B+=i.spaceBeforeSlash+"/>"+this.endline(r,i,A)}}else if(i.pretty&&d===1&&(u.type===s.Text||u.type===s.Raw)&&u.value!=null){B+=">";i.state=a.InsideTag;i.suppressPrettyCount++;I=true;B+=this.writeChildNode(u,i,A+1);i.suppressPrettyCount--;I=false;i.state=a.CloseTag;B+=""+this.endline(r,i,A)}else{if(i.dontPrettyTextNodes){Q=r.children;for(p=0,h=Q.length;p"+this.endline(r,i,A);i.state=a.InsideTag;w=r.children;for(g=0,C=w.length;g";if(I){i.suppressPrettyCount--}B+=this.endline(r,i,A);i.state=a.None}this.closeNode(r,i,A);return B};XMLWriterBase.prototype.writeChildNode=function(r,i,a){switch(r.type){case s.CData:return this.cdata(r,i,a);case s.Comment:return this.comment(r,i,a);case s.Element:return this.element(r,i,a);case s.Raw:return this.raw(r,i,a);case s.Text:return this.text(r,i,a);case s.ProcessingInstruction:return this.processingInstruction(r,i,a);case s.Dummy:return"";case s.Declaration:return this.declaration(r,i,a);case s.DocType:return this.docType(r,i,a);case s.AttributeDeclaration:return this.dtdAttList(r,i,a);case s.ElementDeclaration:return this.dtdElement(r,i,a);case s.EntityDeclaration:return this.dtdEntity(r,i,a);case s.NotationDeclaration:return this.dtdNotation(r,i,a);default:throw new Error("Unknown XML node type: "+r.constructor.name)}};XMLWriterBase.prototype.processingInstruction=function(r,s,i){var A;this.openNode(r,s,i);s.state=a.OpenTag;A=this.indent(r,s,i)+"";A+=this.endline(r,s,i);s.state=a.None;this.closeNode(r,s,i);return A};XMLWriterBase.prototype.raw=function(r,s,i){var A;this.openNode(r,s,i);s.state=a.OpenTag;A=this.indent(r,s,i);s.state=a.InsideTag;A+=r.value;s.state=a.CloseTag;A+=this.endline(r,s,i);s.state=a.None;this.closeNode(r,s,i);return A};XMLWriterBase.prototype.text=function(r,s,i){var A;this.openNode(r,s,i);s.state=a.OpenTag;A=this.indent(r,s,i);s.state=a.InsideTag;A+=r.value;s.state=a.CloseTag;A+=this.endline(r,s,i);s.state=a.None;this.closeNode(r,s,i);return A};XMLWriterBase.prototype.dtdAttList=function(r,s,i){var A;this.openNode(r,s,i);s.state=a.OpenTag;A=this.indent(r,s,i)+""+this.endline(r,s,i);s.state=a.None;this.closeNode(r,s,i);return A};XMLWriterBase.prototype.dtdElement=function(r,s,i){var A;this.openNode(r,s,i);s.state=a.OpenTag;A=this.indent(r,s,i)+""+this.endline(r,s,i);s.state=a.None;this.closeNode(r,s,i);return A};XMLWriterBase.prototype.dtdEntity=function(r,s,i){var A;this.openNode(r,s,i);s.state=a.OpenTag;A=this.indent(r,s,i)+""+this.endline(r,s,i);s.state=a.None;this.closeNode(r,s,i);return A};XMLWriterBase.prototype.dtdNotation=function(r,s,i){var A;this.openNode(r,s,i);s.state=a.OpenTag;A=this.indent(r,s,i)+""+this.endline(r,s,i);s.state=a.None;this.closeNode(r,s,i);return A};XMLWriterBase.prototype.openNode=function(r,s,i){};XMLWriterBase.prototype.closeNode=function(r,s,i){};XMLWriterBase.prototype.openAttribute=function(r,s,i){};XMLWriterBase.prototype.closeAttribute=function(r,s,i){};return XMLWriterBase}()}).call(this)},52958:function(r,s,i){(function(){var s,a,A,c,l,d,u,p,g,h;h=i(58229),p=h.assign,g=h.isFunction;A=i(78310);c=i(53730);l=i(77356);u=i(85913);d=i(78601);s=i(29267);a=i(9766);r.exports.create=function(r,s,i,a){var A,l;if(r==null){throw new Error("Root element needs a name.")}a=p({},s,i,a);A=new c(a);l=A.element(r);if(!a.headless){A.declaration(a);if(a.pubID!=null||a.sysID!=null){A.dtd(a)}}return l};r.exports.begin=function(r,s,i){var a;if(g(r)){a=[r,s],s=a[0],i=a[1];r={}}if(s){return new l(r,s,i)}else{return new c(r)}};r.exports.stringWriter=function(r){return new u(r)};r.exports.streamWriter=function(r,s){return new d(r,s)};r.exports.implementation=new A;r.exports.nodeType=s;r.exports.writerState=a}).call(this)},86454:(r,s,i)=>{ /** - * Module dependencies. - * @private - */ - -var EventEmitter = __nccwpck_require__(28614).EventEmitter - -/** - * Module exports. - * @public - */ - -lazyProperty(module.exports, 'callSiteToString', function callSiteToString () { - var limit = Error.stackTraceLimit - var obj = {} - var prep = Error.prepareStackTrace - - function prepareObjectStackTrace (obj, stack) { - return stack - } - - Error.prepareStackTrace = prepareObjectStackTrace - Error.stackTraceLimit = 2 - - // capture the stack - Error.captureStackTrace(obj) - - // slice the stack - var stack = obj.stack.slice() - - Error.prepareStackTrace = prep - Error.stackTraceLimit = limit - - return stack[0].toString ? toString : __nccwpck_require__(35554) -}) - -lazyProperty(module.exports, 'eventListenerCount', function eventListenerCount () { - return EventEmitter.listenerCount || __nccwpck_require__(12078) -}) - -/** - * Define a lazy property. - */ - -function lazyProperty (obj, prop, getter) { - function get () { - var val = getter() - - Object.defineProperty(obj, prop, { - configurable: true, - enumerable: true, - value: val - }) - - return val - } - - Object.defineProperty(obj, prop, { - configurable: true, - enumerable: true, - get: get - }) -} - -/** - * Call toString() on the obj - */ - -function toString (obj) { - return obj.toString() -} - - -/***/ }), - -/***/ 85107: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.decodeHTML = exports.decodeHTMLStrict = exports.decodeXML = void 0; -var entities_json_1 = __importDefault(__nccwpck_require__(84007)); -var legacy_json_1 = __importDefault(__nccwpck_require__(17802)); -var xml_json_1 = __importDefault(__nccwpck_require__(2228)); -var decode_codepoint_1 = __importDefault(__nccwpck_require__(31227)); -var strictEntityRe = /&(?:[a-zA-Z0-9]+|#[xX][\da-fA-F]+|#\d+);/g; -exports.decodeXML = getStrictDecoder(xml_json_1.default); -exports.decodeHTMLStrict = getStrictDecoder(entities_json_1.default); -function getStrictDecoder(map) { - var replace = getReplacer(map); - return function (str) { return String(str).replace(strictEntityRe, replace); }; -} -var sorter = function (a, b) { return (a < b ? 1 : -1); }; -exports.decodeHTML = (function () { - var legacy = Object.keys(legacy_json_1.default).sort(sorter); - var keys = Object.keys(entities_json_1.default).sort(sorter); - for (var i = 0, j = 0; i < keys.length; i++) { - if (legacy[j] === keys[i]) { - keys[i] += ";?"; - j++; - } - else { - keys[i] += ";"; - } - } - var re = new RegExp("&(?:" + keys.join("|") + "|#[xX][\\da-fA-F]+;?|#\\d+;?)", "g"); - var replace = getReplacer(entities_json_1.default); - function replacer(str) { - if (str.substr(-1) !== ";") - str += ";"; - return replace(str); - } - // TODO consider creating a merged map - return function (str) { return String(str).replace(re, replacer); }; -})(); -function getReplacer(map) { - return function replace(str) { - if (str.charAt(1) === "#") { - var secondChar = str.charAt(2); - if (secondChar === "X" || secondChar === "x") { - return decode_codepoint_1.default(parseInt(str.substr(3), 16)); - } - return decode_codepoint_1.default(parseInt(str.substr(2), 10)); - } - // eslint-disable-next-line @typescript-eslint/prefer-nullish-coalescing - return map[str.slice(1, -1)] || str; - }; -} - - -/***/ }), - -/***/ 31227: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; -Object.defineProperty(exports, "__esModule", ({ value: true })); -var decode_json_1 = __importDefault(__nccwpck_require__(14589)); -// Adapted from https://github.com/mathiasbynens/he/blob/master/src/he.js#L94-L119 -var fromCodePoint = -// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition -String.fromCodePoint || - function (codePoint) { - var output = ""; - if (codePoint > 0xffff) { - codePoint -= 0x10000; - output += String.fromCharCode(((codePoint >>> 10) & 0x3ff) | 0xd800); - codePoint = 0xdc00 | (codePoint & 0x3ff); - } - output += String.fromCharCode(codePoint); - return output; - }; -function decodeCodePoint(codePoint) { - if ((codePoint >= 0xd800 && codePoint <= 0xdfff) || codePoint > 0x10ffff) { - return "\uFFFD"; - } - if (codePoint in decode_json_1.default) { - codePoint = decode_json_1.default[codePoint]; - } - return fromCodePoint(codePoint); -} -exports.default = decodeCodePoint; - - -/***/ }), - -/***/ 2006: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.escapeUTF8 = exports.escape = exports.encodeNonAsciiHTML = exports.encodeHTML = exports.encodeXML = void 0; -var xml_json_1 = __importDefault(__nccwpck_require__(2228)); -var inverseXML = getInverseObj(xml_json_1.default); -var xmlReplacer = getInverseReplacer(inverseXML); -/** - * Encodes all non-ASCII characters, as well as characters not valid in XML - * documents using XML entities. - * - * If a character has no equivalent entity, a - * numeric hexadecimal reference (eg. `ü`) will be used. - */ -exports.encodeXML = getASCIIEncoder(inverseXML); -var entities_json_1 = __importDefault(__nccwpck_require__(84007)); -var inverseHTML = getInverseObj(entities_json_1.default); -var htmlReplacer = getInverseReplacer(inverseHTML); -/** - * Encodes all entities and non-ASCII characters in the input. - * - * This includes characters that are valid ASCII characters in HTML documents. - * For example `#` will be encoded as `#`. To get a more compact output, - * consider using the `encodeNonAsciiHTML` function. - * - * If a character has no equivalent entity, a - * numeric hexadecimal reference (eg. `ü`) will be used. - */ -exports.encodeHTML = getInverse(inverseHTML, htmlReplacer); -/** - * Encodes all non-ASCII characters, as well as characters not valid in HTML - * documents using HTML entities. - * - * If a character has no equivalent entity, a - * numeric hexadecimal reference (eg. `ü`) will be used. - */ -exports.encodeNonAsciiHTML = getASCIIEncoder(inverseHTML); -function getInverseObj(obj) { - return Object.keys(obj) - .sort() - .reduce(function (inverse, name) { - inverse[obj[name]] = "&" + name + ";"; - return inverse; - }, {}); -} -function getInverseReplacer(inverse) { - var single = []; - var multiple = []; - for (var _i = 0, _a = Object.keys(inverse); _i < _a.length; _i++) { - var k = _a[_i]; - if (k.length === 1) { - // Add value to single array - single.push("\\" + k); - } - else { - // Add value to multiple array - multiple.push(k); - } - } - // Add ranges to single characters. - single.sort(); - for (var start = 0; start < single.length - 1; start++) { - // Find the end of a run of characters - var end = start; - while (end < single.length - 1 && - single[end].charCodeAt(1) + 1 === single[end + 1].charCodeAt(1)) { - end += 1; - } - var count = 1 + end - start; - // We want to replace at least three characters - if (count < 3) - continue; - single.splice(start, count, single[start] + "-" + single[end]); - } - multiple.unshift("[" + single.join("") + "]"); - return new RegExp(multiple.join("|"), "g"); -} -// /[^\0-\x7F]/gu -var reNonASCII = /(?:[\x80-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/g; -var getCodePoint = -// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition -String.prototype.codePointAt != null - ? // eslint-disable-next-line @typescript-eslint/no-non-null-assertion - function (str) { return str.codePointAt(0); } - : // http://mathiasbynens.be/notes/javascript-encoding#surrogate-formulae - function (c) { - return (c.charCodeAt(0) - 0xd800) * 0x400 + - c.charCodeAt(1) - - 0xdc00 + - 0x10000; - }; -function singleCharReplacer(c) { - return "&#x" + (c.length > 1 ? getCodePoint(c) : c.charCodeAt(0)) - .toString(16) - .toUpperCase() + ";"; -} -function getInverse(inverse, re) { - return function (data) { - return data - .replace(re, function (name) { return inverse[name]; }) - .replace(reNonASCII, singleCharReplacer); - }; -} -var reEscapeChars = new RegExp(xmlReplacer.source + "|" + reNonASCII.source, "g"); -/** - * Encodes all non-ASCII characters, as well as characters not valid in XML - * documents using numeric hexadecimal reference (eg. `ü`). - * - * Have a look at `escapeUTF8` if you want a more concise output at the expense - * of reduced transportability. - * - * @param data String to escape. - */ -function escape(data) { - return data.replace(reEscapeChars, singleCharReplacer); -} -exports.escape = escape; -/** - * Encodes all characters not valid in XML documents using numeric hexadecimal - * reference (eg. `ü`). - * - * Note that the output will be character-set dependent. - * - * @param data String to escape. - */ -function escapeUTF8(data) { - return data.replace(xmlReplacer, singleCharReplacer); -} -exports.escapeUTF8 = escapeUTF8; -function getASCIIEncoder(obj) { - return function (data) { - return data.replace(reEscapeChars, function (c) { return obj[c] || singleCharReplacer(c); }); - }; -} - - -/***/ }), - -/***/ 3000: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.decodeXMLStrict = exports.decodeHTML5Strict = exports.decodeHTML4Strict = exports.decodeHTML5 = exports.decodeHTML4 = exports.decodeHTMLStrict = exports.decodeHTML = exports.decodeXML = exports.encodeHTML5 = exports.encodeHTML4 = exports.escapeUTF8 = exports.escape = exports.encodeNonAsciiHTML = exports.encodeHTML = exports.encodeXML = exports.encode = exports.decodeStrict = exports.decode = void 0; -var decode_1 = __nccwpck_require__(85107); -var encode_1 = __nccwpck_require__(2006); -/** - * Decodes a string with entities. - * - * @param data String to decode. - * @param level Optional level to decode at. 0 = XML, 1 = HTML. Default is 0. - * @deprecated Use `decodeXML` or `decodeHTML` directly. - */ -function decode(data, level) { - return (!level || level <= 0 ? decode_1.decodeXML : decode_1.decodeHTML)(data); -} -exports.decode = decode; -/** - * Decodes a string with entities. Does not allow missing trailing semicolons for entities. - * - * @param data String to decode. - * @param level Optional level to decode at. 0 = XML, 1 = HTML. Default is 0. - * @deprecated Use `decodeHTMLStrict` or `decodeXML` directly. - */ -function decodeStrict(data, level) { - return (!level || level <= 0 ? decode_1.decodeXML : decode_1.decodeHTMLStrict)(data); -} -exports.decodeStrict = decodeStrict; -/** - * Encodes a string with entities. - * - * @param data String to encode. - * @param level Optional level to encode at. 0 = XML, 1 = HTML. Default is 0. - * @deprecated Use `encodeHTML`, `encodeXML` or `encodeNonAsciiHTML` directly. - */ -function encode(data, level) { - return (!level || level <= 0 ? encode_1.encodeXML : encode_1.encodeHTML)(data); -} -exports.encode = encode; -var encode_2 = __nccwpck_require__(2006); -Object.defineProperty(exports, "encodeXML", ({ enumerable: true, get: function () { return encode_2.encodeXML; } })); -Object.defineProperty(exports, "encodeHTML", ({ enumerable: true, get: function () { return encode_2.encodeHTML; } })); -Object.defineProperty(exports, "encodeNonAsciiHTML", ({ enumerable: true, get: function () { return encode_2.encodeNonAsciiHTML; } })); -Object.defineProperty(exports, "escape", ({ enumerable: true, get: function () { return encode_2.escape; } })); -Object.defineProperty(exports, "escapeUTF8", ({ enumerable: true, get: function () { return encode_2.escapeUTF8; } })); -// Legacy aliases (deprecated) -Object.defineProperty(exports, "encodeHTML4", ({ enumerable: true, get: function () { return encode_2.encodeHTML; } })); -Object.defineProperty(exports, "encodeHTML5", ({ enumerable: true, get: function () { return encode_2.encodeHTML; } })); -var decode_2 = __nccwpck_require__(85107); -Object.defineProperty(exports, "decodeXML", ({ enumerable: true, get: function () { return decode_2.decodeXML; } })); -Object.defineProperty(exports, "decodeHTML", ({ enumerable: true, get: function () { return decode_2.decodeHTML; } })); -Object.defineProperty(exports, "decodeHTMLStrict", ({ enumerable: true, get: function () { return decode_2.decodeHTMLStrict; } })); -// Legacy aliases (deprecated) -Object.defineProperty(exports, "decodeHTML4", ({ enumerable: true, get: function () { return decode_2.decodeHTML; } })); -Object.defineProperty(exports, "decodeHTML5", ({ enumerable: true, get: function () { return decode_2.decodeHTML; } })); -Object.defineProperty(exports, "decodeHTML4Strict", ({ enumerable: true, get: function () { return decode_2.decodeHTMLStrict; } })); -Object.defineProperty(exports, "decodeHTML5Strict", ({ enumerable: true, get: function () { return decode_2.decodeHTMLStrict; } })); -Object.defineProperty(exports, "decodeXMLStrict", ({ enumerable: true, get: function () { return decode_2.decodeXML; } })); - - -/***/ }), - -/***/ 7991: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -/* - Copyright (C) 2012-2014 Yusuke Suzuki - Copyright (C) 2015 Ingvar Stepanyan - Copyright (C) 2014 Ivan Nikulin - Copyright (C) 2012-2013 Michael Ficarra - Copyright (C) 2012-2013 Mathias Bynens - Copyright (C) 2013 Irakli Gozalishvili - Copyright (C) 2012 Robert Gust-Bardon - Copyright (C) 2012 John Freeman - Copyright (C) 2011-2012 Ariya Hidayat - Copyright (C) 2012 Joost-Wim Boekesteijn - Copyright (C) 2012 Kris Kowal - Copyright (C) 2012 Arpad Borsos - - Redistribution and use in source and binary forms, with or without - modification, are permitted provided that the following conditions are met: - - * Redistributions of source code must retain the above copyright - notice, this list of conditions and the following disclaimer. - * Redistributions in binary form must reproduce the above copyright - notice, this list of conditions and the following disclaimer in the - documentation and/or other materials provided with the distribution. - - THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - ARE DISCLAIMED. IN NO EVENT SHALL BE LIABLE FOR ANY - DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES - (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND - ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF - THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -*/ - -/*global exports:true, require:true, global:true*/ -(function () { - 'use strict'; - - var Syntax, - Precedence, - BinaryPrecedence, - SourceNode, - estraverse, - esutils, - base, - indent, - json, - renumber, - hexadecimal, - quotes, - escapeless, - newline, - space, - parentheses, - semicolons, - safeConcatenation, - directive, - extra, - parse, - sourceMap, - sourceCode, - preserveBlankLines, - FORMAT_MINIFY, - FORMAT_DEFAULTS; - - estraverse = __nccwpck_require__(23479); - esutils = __nccwpck_require__(94038); - - Syntax = estraverse.Syntax; - - // Generation is done by generateExpression. - function isExpression(node) { - return CodeGenerator.Expression.hasOwnProperty(node.type); - } - - // Generation is done by generateStatement. - function isStatement(node) { - return CodeGenerator.Statement.hasOwnProperty(node.type); - } - - Precedence = { - Sequence: 0, - Yield: 1, - Assignment: 1, - Conditional: 2, - ArrowFunction: 2, - LogicalOR: 3, - LogicalAND: 4, - BitwiseOR: 5, - BitwiseXOR: 6, - BitwiseAND: 7, - Equality: 8, - Relational: 9, - BitwiseSHIFT: 10, - Additive: 11, - Multiplicative: 12, - Exponentiation: 13, - Await: 14, - Unary: 14, - Postfix: 15, - Call: 16, - New: 17, - TaggedTemplate: 18, - Member: 19, - Primary: 20 - }; - - BinaryPrecedence = { - '||': Precedence.LogicalOR, - '&&': Precedence.LogicalAND, - '|': Precedence.BitwiseOR, - '^': Precedence.BitwiseXOR, - '&': Precedence.BitwiseAND, - '==': Precedence.Equality, - '!=': Precedence.Equality, - '===': Precedence.Equality, - '!==': Precedence.Equality, - 'is': Precedence.Equality, - 'isnt': Precedence.Equality, - '<': Precedence.Relational, - '>': Precedence.Relational, - '<=': Precedence.Relational, - '>=': Precedence.Relational, - 'in': Precedence.Relational, - 'instanceof': Precedence.Relational, - '<<': Precedence.BitwiseSHIFT, - '>>': Precedence.BitwiseSHIFT, - '>>>': Precedence.BitwiseSHIFT, - '+': Precedence.Additive, - '-': Precedence.Additive, - '*': Precedence.Multiplicative, - '%': Precedence.Multiplicative, - '/': Precedence.Multiplicative, - '**': Precedence.Exponentiation - }; - - //Flags - var F_ALLOW_IN = 1, - F_ALLOW_CALL = 1 << 1, - F_ALLOW_UNPARATH_NEW = 1 << 2, - F_FUNC_BODY = 1 << 3, - F_DIRECTIVE_CTX = 1 << 4, - F_SEMICOLON_OPT = 1 << 5; - - //Expression flag sets - //NOTE: Flag order: - // F_ALLOW_IN - // F_ALLOW_CALL - // F_ALLOW_UNPARATH_NEW - var E_FTT = F_ALLOW_CALL | F_ALLOW_UNPARATH_NEW, - E_TTF = F_ALLOW_IN | F_ALLOW_CALL, - E_TTT = F_ALLOW_IN | F_ALLOW_CALL | F_ALLOW_UNPARATH_NEW, - E_TFF = F_ALLOW_IN, - E_FFT = F_ALLOW_UNPARATH_NEW, - E_TFT = F_ALLOW_IN | F_ALLOW_UNPARATH_NEW; - - //Statement flag sets - //NOTE: Flag order: - // F_ALLOW_IN - // F_FUNC_BODY - // F_DIRECTIVE_CTX - // F_SEMICOLON_OPT - var S_TFFF = F_ALLOW_IN, - S_TFFT = F_ALLOW_IN | F_SEMICOLON_OPT, - S_FFFF = 0x00, - S_TFTF = F_ALLOW_IN | F_DIRECTIVE_CTX, - S_TTFF = F_ALLOW_IN | F_FUNC_BODY; - - function getDefaultOptions() { - // default options - return { - indent: null, - base: null, - parse: null, - comment: false, - format: { - indent: { - style: ' ', - base: 0, - adjustMultilineComment: false - }, - newline: '\n', - space: ' ', - json: false, - renumber: false, - hexadecimal: false, - quotes: 'single', - escapeless: false, - compact: false, - parentheses: true, - semicolons: true, - safeConcatenation: false, - preserveBlankLines: false - }, - moz: { - comprehensionExpressionStartsWithAssignment: false, - starlessGenerator: false - }, - sourceMap: null, - sourceMapRoot: null, - sourceMapWithCode: false, - directive: false, - raw: true, - verbatim: null, - sourceCode: null - }; - } - - function stringRepeat(str, num) { - var result = ''; - - for (num |= 0; num > 0; num >>>= 1, str += str) { - if (num & 1) { - result += str; - } - } - - return result; - } - - function hasLineTerminator(str) { - return (/[\r\n]/g).test(str); - } - - function endsWithLineTerminator(str) { - var len = str.length; - return len && esutils.code.isLineTerminator(str.charCodeAt(len - 1)); - } - - function merge(target, override) { - var key; - for (key in override) { - if (override.hasOwnProperty(key)) { - target[key] = override[key]; - } - } - return target; - } - - function updateDeeply(target, override) { - var key, val; - - function isHashObject(target) { - return typeof target === 'object' && target instanceof Object && !(target instanceof RegExp); - } - - for (key in override) { - if (override.hasOwnProperty(key)) { - val = override[key]; - if (isHashObject(val)) { - if (isHashObject(target[key])) { - updateDeeply(target[key], val); - } else { - target[key] = updateDeeply({}, val); - } - } else { - target[key] = val; - } - } - } - return target; - } - - function generateNumber(value) { - var result, point, temp, exponent, pos; - - if (value !== value) { - throw new Error('Numeric literal whose value is NaN'); - } - if (value < 0 || (value === 0 && 1 / value < 0)) { - throw new Error('Numeric literal whose value is negative'); - } - - if (value === 1 / 0) { - return json ? 'null' : renumber ? '1e400' : '1e+400'; - } - - result = '' + value; - if (!renumber || result.length < 3) { - return result; - } - - point = result.indexOf('.'); - if (!json && result.charCodeAt(0) === 0x30 /* 0 */ && point === 1) { - point = 0; - result = result.slice(1); - } - temp = result; - result = result.replace('e+', 'e'); - exponent = 0; - if ((pos = temp.indexOf('e')) > 0) { - exponent = +temp.slice(pos + 1); - temp = temp.slice(0, pos); - } - if (point >= 0) { - exponent -= temp.length - point - 1; - temp = +(temp.slice(0, point) + temp.slice(point + 1)) + ''; - } - pos = 0; - while (temp.charCodeAt(temp.length + pos - 1) === 0x30 /* 0 */) { - --pos; - } - if (pos !== 0) { - exponent -= pos; - temp = temp.slice(0, pos); - } - if (exponent !== 0) { - temp += 'e' + exponent; - } - if ((temp.length < result.length || - (hexadecimal && value > 1e12 && Math.floor(value) === value && (temp = '0x' + value.toString(16)).length < result.length)) && - +temp === value) { - result = temp; - } - - return result; - } - - // Generate valid RegExp expression. - // This function is based on https://github.com/Constellation/iv Engine - - function escapeRegExpCharacter(ch, previousIsBackslash) { - // not handling '\' and handling \u2028 or \u2029 to unicode escape sequence - if ((ch & ~1) === 0x2028) { - return (previousIsBackslash ? 'u' : '\\u') + ((ch === 0x2028) ? '2028' : '2029'); - } else if (ch === 10 || ch === 13) { // \n, \r - return (previousIsBackslash ? '' : '\\') + ((ch === 10) ? 'n' : 'r'); - } - return String.fromCharCode(ch); - } - - function generateRegExp(reg) { - var match, result, flags, i, iz, ch, characterInBrack, previousIsBackslash; - - result = reg.toString(); - - if (reg.source) { - // extract flag from toString result - match = result.match(/\/([^/]*)$/); - if (!match) { - return result; - } - - flags = match[1]; - result = ''; - - characterInBrack = false; - previousIsBackslash = false; - for (i = 0, iz = reg.source.length; i < iz; ++i) { - ch = reg.source.charCodeAt(i); - - if (!previousIsBackslash) { - if (characterInBrack) { - if (ch === 93) { // ] - characterInBrack = false; - } - } else { - if (ch === 47) { // / - result += '\\'; - } else if (ch === 91) { // [ - characterInBrack = true; - } - } - result += escapeRegExpCharacter(ch, previousIsBackslash); - previousIsBackslash = ch === 92; // \ - } else { - // if new RegExp("\\\n') is provided, create /\n/ - result += escapeRegExpCharacter(ch, previousIsBackslash); - // prevent like /\\[/]/ - previousIsBackslash = false; - } - } - - return '/' + result + '/' + flags; - } - - return result; - } - - function escapeAllowedCharacter(code, next) { - var hex; - - if (code === 0x08 /* \b */) { - return '\\b'; - } - - if (code === 0x0C /* \f */) { - return '\\f'; - } - - if (code === 0x09 /* \t */) { - return '\\t'; - } - - hex = code.toString(16).toUpperCase(); - if (json || code > 0xFF) { - return '\\u' + '0000'.slice(hex.length) + hex; - } else if (code === 0x0000 && !esutils.code.isDecimalDigit(next)) { - return '\\0'; - } else if (code === 0x000B /* \v */) { // '\v' - return '\\x0B'; - } else { - return '\\x' + '00'.slice(hex.length) + hex; - } - } - - function escapeDisallowedCharacter(code) { - if (code === 0x5C /* \ */) { - return '\\\\'; - } - - if (code === 0x0A /* \n */) { - return '\\n'; - } - - if (code === 0x0D /* \r */) { - return '\\r'; - } - - if (code === 0x2028) { - return '\\u2028'; - } - - if (code === 0x2029) { - return '\\u2029'; - } - - throw new Error('Incorrectly classified character'); - } - - function escapeDirective(str) { - var i, iz, code, quote; - - quote = quotes === 'double' ? '"' : '\''; - for (i = 0, iz = str.length; i < iz; ++i) { - code = str.charCodeAt(i); - if (code === 0x27 /* ' */) { - quote = '"'; - break; - } else if (code === 0x22 /* " */) { - quote = '\''; - break; - } else if (code === 0x5C /* \ */) { - ++i; - } - } - - return quote + str + quote; - } - - function escapeString(str) { - var result = '', i, len, code, singleQuotes = 0, doubleQuotes = 0, single, quote; - - for (i = 0, len = str.length; i < len; ++i) { - code = str.charCodeAt(i); - if (code === 0x27 /* ' */) { - ++singleQuotes; - } else if (code === 0x22 /* " */) { - ++doubleQuotes; - } else if (code === 0x2F /* / */ && json) { - result += '\\'; - } else if (esutils.code.isLineTerminator(code) || code === 0x5C /* \ */) { - result += escapeDisallowedCharacter(code); - continue; - } else if (!esutils.code.isIdentifierPartES5(code) && (json && code < 0x20 /* SP */ || !json && !escapeless && (code < 0x20 /* SP */ || code > 0x7E /* ~ */))) { - result += escapeAllowedCharacter(code, str.charCodeAt(i + 1)); - continue; - } - result += String.fromCharCode(code); - } - - single = !(quotes === 'double' || (quotes === 'auto' && doubleQuotes < singleQuotes)); - quote = single ? '\'' : '"'; - - if (!(single ? singleQuotes : doubleQuotes)) { - return quote + result + quote; - } - - str = result; - result = quote; - - for (i = 0, len = str.length; i < len; ++i) { - code = str.charCodeAt(i); - if ((code === 0x27 /* ' */ && single) || (code === 0x22 /* " */ && !single)) { - result += '\\'; - } - result += String.fromCharCode(code); - } - - return result + quote; - } - - /** - * flatten an array to a string, where the array can contain - * either strings or nested arrays - */ - function flattenToString(arr) { - var i, iz, elem, result = ''; - for (i = 0, iz = arr.length; i < iz; ++i) { - elem = arr[i]; - result += Array.isArray(elem) ? flattenToString(elem) : elem; - } - return result; - } - - /** - * convert generated to a SourceNode when source maps are enabled. - */ - function toSourceNodeWhenNeeded(generated, node) { - if (!sourceMap) { - // with no source maps, generated is either an - // array or a string. if an array, flatten it. - // if a string, just return it - if (Array.isArray(generated)) { - return flattenToString(generated); - } else { - return generated; - } - } - if (node == null) { - if (generated instanceof SourceNode) { - return generated; - } else { - node = {}; - } - } - if (node.loc == null) { - return new SourceNode(null, null, sourceMap, generated, node.name || null); - } - return new SourceNode(node.loc.start.line, node.loc.start.column, (sourceMap === true ? node.loc.source || null : sourceMap), generated, node.name || null); - } - - function noEmptySpace() { - return (space) ? space : ' '; - } - - function join(left, right) { - var leftSource, - rightSource, - leftCharCode, - rightCharCode; - - leftSource = toSourceNodeWhenNeeded(left).toString(); - if (leftSource.length === 0) { - return [right]; - } - - rightSource = toSourceNodeWhenNeeded(right).toString(); - if (rightSource.length === 0) { - return [left]; - } - - leftCharCode = leftSource.charCodeAt(leftSource.length - 1); - rightCharCode = rightSource.charCodeAt(0); - - if ((leftCharCode === 0x2B /* + */ || leftCharCode === 0x2D /* - */) && leftCharCode === rightCharCode || - esutils.code.isIdentifierPartES5(leftCharCode) && esutils.code.isIdentifierPartES5(rightCharCode) || - leftCharCode === 0x2F /* / */ && rightCharCode === 0x69 /* i */) { // infix word operators all start with `i` - return [left, noEmptySpace(), right]; - } else if (esutils.code.isWhiteSpace(leftCharCode) || esutils.code.isLineTerminator(leftCharCode) || - esutils.code.isWhiteSpace(rightCharCode) || esutils.code.isLineTerminator(rightCharCode)) { - return [left, right]; - } - return [left, space, right]; - } - - function addIndent(stmt) { - return [base, stmt]; - } - - function withIndent(fn) { - var previousBase; - previousBase = base; - base += indent; - fn(base); - base = previousBase; - } - - function calculateSpaces(str) { - var i; - for (i = str.length - 1; i >= 0; --i) { - if (esutils.code.isLineTerminator(str.charCodeAt(i))) { - break; - } - } - return (str.length - 1) - i; - } - - function adjustMultilineComment(value, specialBase) { - var array, i, len, line, j, spaces, previousBase, sn; - - array = value.split(/\r\n|[\r\n]/); - spaces = Number.MAX_VALUE; - - // first line doesn't have indentation - for (i = 1, len = array.length; i < len; ++i) { - line = array[i]; - j = 0; - while (j < line.length && esutils.code.isWhiteSpace(line.charCodeAt(j))) { - ++j; - } - if (spaces > j) { - spaces = j; - } - } - - if (typeof specialBase !== 'undefined') { - // pattern like - // { - // var t = 20; /* - // * this is comment - // */ - // } - previousBase = base; - if (array[1][spaces] === '*') { - specialBase += ' '; - } - base = specialBase; - } else { - if (spaces & 1) { - // /* - // * - // */ - // If spaces are odd number, above pattern is considered. - // We waste 1 space. - --spaces; - } - previousBase = base; - } - - for (i = 1, len = array.length; i < len; ++i) { - sn = toSourceNodeWhenNeeded(addIndent(array[i].slice(spaces))); - array[i] = sourceMap ? sn.join('') : sn; - } - - base = previousBase; - - return array.join('\n'); - } - - function generateComment(comment, specialBase) { - if (comment.type === 'Line') { - if (endsWithLineTerminator(comment.value)) { - return '//' + comment.value; - } else { - // Always use LineTerminator - var result = '//' + comment.value; - if (!preserveBlankLines) { - result += '\n'; - } - return result; - } - } - if (extra.format.indent.adjustMultilineComment && /[\n\r]/.test(comment.value)) { - return adjustMultilineComment('/*' + comment.value + '*/', specialBase); - } - return '/*' + comment.value + '*/'; - } - - function addComments(stmt, result) { - var i, len, comment, save, tailingToStatement, specialBase, fragment, - extRange, range, prevRange, prefix, infix, suffix, count; - - if (stmt.leadingComments && stmt.leadingComments.length > 0) { - save = result; - - if (preserveBlankLines) { - comment = stmt.leadingComments[0]; - result = []; - - extRange = comment.extendedRange; - range = comment.range; - - prefix = sourceCode.substring(extRange[0], range[0]); - count = (prefix.match(/\n/g) || []).length; - if (count > 0) { - result.push(stringRepeat('\n', count)); - result.push(addIndent(generateComment(comment))); - } else { - result.push(prefix); - result.push(generateComment(comment)); - } - - prevRange = range; - - for (i = 1, len = stmt.leadingComments.length; i < len; i++) { - comment = stmt.leadingComments[i]; - range = comment.range; - - infix = sourceCode.substring(prevRange[1], range[0]); - count = (infix.match(/\n/g) || []).length; - result.push(stringRepeat('\n', count)); - result.push(addIndent(generateComment(comment))); - - prevRange = range; - } - - suffix = sourceCode.substring(range[1], extRange[1]); - count = (suffix.match(/\n/g) || []).length; - result.push(stringRepeat('\n', count)); - } else { - comment = stmt.leadingComments[0]; - result = []; - if (safeConcatenation && stmt.type === Syntax.Program && stmt.body.length === 0) { - result.push('\n'); - } - result.push(generateComment(comment)); - if (!endsWithLineTerminator(toSourceNodeWhenNeeded(result).toString())) { - result.push('\n'); - } - - for (i = 1, len = stmt.leadingComments.length; i < len; ++i) { - comment = stmt.leadingComments[i]; - fragment = [generateComment(comment)]; - if (!endsWithLineTerminator(toSourceNodeWhenNeeded(fragment).toString())) { - fragment.push('\n'); - } - result.push(addIndent(fragment)); - } - } - - result.push(addIndent(save)); - } - - if (stmt.trailingComments) { - - if (preserveBlankLines) { - comment = stmt.trailingComments[0]; - extRange = comment.extendedRange; - range = comment.range; - - prefix = sourceCode.substring(extRange[0], range[0]); - count = (prefix.match(/\n/g) || []).length; - - if (count > 0) { - result.push(stringRepeat('\n', count)); - result.push(addIndent(generateComment(comment))); - } else { - result.push(prefix); - result.push(generateComment(comment)); - } - } else { - tailingToStatement = !endsWithLineTerminator(toSourceNodeWhenNeeded(result).toString()); - specialBase = stringRepeat(' ', calculateSpaces(toSourceNodeWhenNeeded([base, result, indent]).toString())); - for (i = 0, len = stmt.trailingComments.length; i < len; ++i) { - comment = stmt.trailingComments[i]; - if (tailingToStatement) { - // We assume target like following script - // - // var t = 20; /** - // * This is comment of t - // */ - if (i === 0) { - // first case - result = [result, indent]; - } else { - result = [result, specialBase]; - } - result.push(generateComment(comment, specialBase)); - } else { - result = [result, addIndent(generateComment(comment))]; - } - if (i !== len - 1 && !endsWithLineTerminator(toSourceNodeWhenNeeded(result).toString())) { - result = [result, '\n']; - } - } - } - } - - return result; - } - - function generateBlankLines(start, end, result) { - var j, newlineCount = 0; - - for (j = start; j < end; j++) { - if (sourceCode[j] === '\n') { - newlineCount++; - } - } - - for (j = 1; j < newlineCount; j++) { - result.push(newline); - } - } - - function parenthesize(text, current, should) { - if (current < should) { - return ['(', text, ')']; - } - return text; - } - - function generateVerbatimString(string) { - var i, iz, result; - result = string.split(/\r\n|\n/); - for (i = 1, iz = result.length; i < iz; i++) { - result[i] = newline + base + result[i]; - } - return result; - } - - function generateVerbatim(expr, precedence) { - var verbatim, result, prec; - verbatim = expr[extra.verbatim]; - - if (typeof verbatim === 'string') { - result = parenthesize(generateVerbatimString(verbatim), Precedence.Sequence, precedence); - } else { - // verbatim is object - result = generateVerbatimString(verbatim.content); - prec = (verbatim.precedence != null) ? verbatim.precedence : Precedence.Sequence; - result = parenthesize(result, prec, precedence); - } - - return toSourceNodeWhenNeeded(result, expr); - } - - function CodeGenerator() { - } - - // Helpers. - - CodeGenerator.prototype.maybeBlock = function(stmt, flags) { - var result, noLeadingComment, that = this; - - noLeadingComment = !extra.comment || !stmt.leadingComments; - - if (stmt.type === Syntax.BlockStatement && noLeadingComment) { - return [space, this.generateStatement(stmt, flags)]; - } - - if (stmt.type === Syntax.EmptyStatement && noLeadingComment) { - return ';'; - } - - withIndent(function () { - result = [ - newline, - addIndent(that.generateStatement(stmt, flags)) - ]; - }); - - return result; - }; - - CodeGenerator.prototype.maybeBlockSuffix = function (stmt, result) { - var ends = endsWithLineTerminator(toSourceNodeWhenNeeded(result).toString()); - if (stmt.type === Syntax.BlockStatement && (!extra.comment || !stmt.leadingComments) && !ends) { - return [result, space]; - } - if (ends) { - return [result, base]; - } - return [result, newline, base]; - }; - - function generateIdentifier(node) { - return toSourceNodeWhenNeeded(node.name, node); - } - - function generateAsyncPrefix(node, spaceRequired) { - return node.async ? 'async' + (spaceRequired ? noEmptySpace() : space) : ''; - } - - function generateStarSuffix(node) { - var isGenerator = node.generator && !extra.moz.starlessGenerator; - return isGenerator ? '*' + space : ''; - } - - function generateMethodPrefix(prop) { - var func = prop.value, prefix = ''; - if (func.async) { - prefix += generateAsyncPrefix(func, !prop.computed); - } - if (func.generator) { - // avoid space before method name - prefix += generateStarSuffix(func) ? '*' : ''; - } - return prefix; - } - - CodeGenerator.prototype.generatePattern = function (node, precedence, flags) { - if (node.type === Syntax.Identifier) { - return generateIdentifier(node); - } - return this.generateExpression(node, precedence, flags); - }; - - CodeGenerator.prototype.generateFunctionParams = function (node) { - var i, iz, result, hasDefault; - - hasDefault = false; - - if (node.type === Syntax.ArrowFunctionExpression && - !node.rest && (!node.defaults || node.defaults.length === 0) && - node.params.length === 1 && node.params[0].type === Syntax.Identifier) { - // arg => { } case - result = [generateAsyncPrefix(node, true), generateIdentifier(node.params[0])]; - } else { - result = node.type === Syntax.ArrowFunctionExpression ? [generateAsyncPrefix(node, false)] : []; - result.push('('); - if (node.defaults) { - hasDefault = true; - } - for (i = 0, iz = node.params.length; i < iz; ++i) { - if (hasDefault && node.defaults[i]) { - // Handle default values. - result.push(this.generateAssignment(node.params[i], node.defaults[i], '=', Precedence.Assignment, E_TTT)); - } else { - result.push(this.generatePattern(node.params[i], Precedence.Assignment, E_TTT)); - } - if (i + 1 < iz) { - result.push(',' + space); - } - } - - if (node.rest) { - if (node.params.length) { - result.push(',' + space); - } - result.push('...'); - result.push(generateIdentifier(node.rest)); - } - - result.push(')'); - } - - return result; - }; - - CodeGenerator.prototype.generateFunctionBody = function (node) { - var result, expr; - - result = this.generateFunctionParams(node); - - if (node.type === Syntax.ArrowFunctionExpression) { - result.push(space); - result.push('=>'); - } - - if (node.expression) { - result.push(space); - expr = this.generateExpression(node.body, Precedence.Assignment, E_TTT); - if (expr.toString().charAt(0) === '{') { - expr = ['(', expr, ')']; - } - result.push(expr); - } else { - result.push(this.maybeBlock(node.body, S_TTFF)); - } - - return result; - }; - - CodeGenerator.prototype.generateIterationForStatement = function (operator, stmt, flags) { - var result = ['for' + (stmt.await ? noEmptySpace() + 'await' : '') + space + '('], that = this; - withIndent(function () { - if (stmt.left.type === Syntax.VariableDeclaration) { - withIndent(function () { - result.push(stmt.left.kind + noEmptySpace()); - result.push(that.generateStatement(stmt.left.declarations[0], S_FFFF)); - }); - } else { - result.push(that.generateExpression(stmt.left, Precedence.Call, E_TTT)); - } - - result = join(result, operator); - result = [join( - result, - that.generateExpression(stmt.right, Precedence.Assignment, E_TTT) - ), ')']; - }); - result.push(this.maybeBlock(stmt.body, flags)); - return result; - }; - - CodeGenerator.prototype.generatePropertyKey = function (expr, computed) { - var result = []; - - if (computed) { - result.push('['); - } - - result.push(this.generateExpression(expr, Precedence.Assignment, E_TTT)); - - if (computed) { - result.push(']'); - } - - return result; - }; - - CodeGenerator.prototype.generateAssignment = function (left, right, operator, precedence, flags) { - if (Precedence.Assignment < precedence) { - flags |= F_ALLOW_IN; - } - - return parenthesize( - [ - this.generateExpression(left, Precedence.Call, flags), - space + operator + space, - this.generateExpression(right, Precedence.Assignment, flags) - ], - Precedence.Assignment, - precedence - ); - }; - - CodeGenerator.prototype.semicolon = function (flags) { - if (!semicolons && flags & F_SEMICOLON_OPT) { - return ''; - } - return ';'; - }; - - // Statements. - - CodeGenerator.Statement = { - - BlockStatement: function (stmt, flags) { - var range, content, result = ['{', newline], that = this; - - withIndent(function () { - // handle functions without any code - if (stmt.body.length === 0 && preserveBlankLines) { - range = stmt.range; - if (range[1] - range[0] > 2) { - content = sourceCode.substring(range[0] + 1, range[1] - 1); - if (content[0] === '\n') { - result = ['{']; - } - result.push(content); - } - } - - var i, iz, fragment, bodyFlags; - bodyFlags = S_TFFF; - if (flags & F_FUNC_BODY) { - bodyFlags |= F_DIRECTIVE_CTX; - } - - for (i = 0, iz = stmt.body.length; i < iz; ++i) { - if (preserveBlankLines) { - // handle spaces before the first line - if (i === 0) { - if (stmt.body[0].leadingComments) { - range = stmt.body[0].leadingComments[0].extendedRange; - content = sourceCode.substring(range[0], range[1]); - if (content[0] === '\n') { - result = ['{']; - } - } - if (!stmt.body[0].leadingComments) { - generateBlankLines(stmt.range[0], stmt.body[0].range[0], result); - } - } - - // handle spaces between lines - if (i > 0) { - if (!stmt.body[i - 1].trailingComments && !stmt.body[i].leadingComments) { - generateBlankLines(stmt.body[i - 1].range[1], stmt.body[i].range[0], result); - } - } - } - - if (i === iz - 1) { - bodyFlags |= F_SEMICOLON_OPT; - } - - if (stmt.body[i].leadingComments && preserveBlankLines) { - fragment = that.generateStatement(stmt.body[i], bodyFlags); - } else { - fragment = addIndent(that.generateStatement(stmt.body[i], bodyFlags)); - } - - result.push(fragment); - if (!endsWithLineTerminator(toSourceNodeWhenNeeded(fragment).toString())) { - if (preserveBlankLines && i < iz - 1) { - // don't add a new line if there are leading coments - // in the next statement - if (!stmt.body[i + 1].leadingComments) { - result.push(newline); - } - } else { - result.push(newline); - } - } - - if (preserveBlankLines) { - // handle spaces after the last line - if (i === iz - 1) { - if (!stmt.body[i].trailingComments) { - generateBlankLines(stmt.body[i].range[1], stmt.range[1], result); - } - } - } - } - }); - - result.push(addIndent('}')); - return result; - }, - - BreakStatement: function (stmt, flags) { - if (stmt.label) { - return 'break ' + stmt.label.name + this.semicolon(flags); - } - return 'break' + this.semicolon(flags); - }, - - ContinueStatement: function (stmt, flags) { - if (stmt.label) { - return 'continue ' + stmt.label.name + this.semicolon(flags); - } - return 'continue' + this.semicolon(flags); - }, - - ClassBody: function (stmt, flags) { - var result = [ '{', newline], that = this; - - withIndent(function (indent) { - var i, iz; - - for (i = 0, iz = stmt.body.length; i < iz; ++i) { - result.push(indent); - result.push(that.generateExpression(stmt.body[i], Precedence.Sequence, E_TTT)); - if (i + 1 < iz) { - result.push(newline); - } - } - }); - - if (!endsWithLineTerminator(toSourceNodeWhenNeeded(result).toString())) { - result.push(newline); - } - result.push(base); - result.push('}'); - return result; - }, - - ClassDeclaration: function (stmt, flags) { - var result, fragment; - result = ['class']; - if (stmt.id) { - result = join(result, this.generateExpression(stmt.id, Precedence.Sequence, E_TTT)); - } - if (stmt.superClass) { - fragment = join('extends', this.generateExpression(stmt.superClass, Precedence.Unary, E_TTT)); - result = join(result, fragment); - } - result.push(space); - result.push(this.generateStatement(stmt.body, S_TFFT)); - return result; - }, - - DirectiveStatement: function (stmt, flags) { - if (extra.raw && stmt.raw) { - return stmt.raw + this.semicolon(flags); - } - return escapeDirective(stmt.directive) + this.semicolon(flags); - }, - - DoWhileStatement: function (stmt, flags) { - // Because `do 42 while (cond)` is Syntax Error. We need semicolon. - var result = join('do', this.maybeBlock(stmt.body, S_TFFF)); - result = this.maybeBlockSuffix(stmt.body, result); - return join(result, [ - 'while' + space + '(', - this.generateExpression(stmt.test, Precedence.Sequence, E_TTT), - ')' + this.semicolon(flags) - ]); - }, - - CatchClause: function (stmt, flags) { - var result, that = this; - withIndent(function () { - var guard; - - if (stmt.param) { - result = [ - 'catch' + space + '(', - that.generateExpression(stmt.param, Precedence.Sequence, E_TTT), - ')' - ]; - - if (stmt.guard) { - guard = that.generateExpression(stmt.guard, Precedence.Sequence, E_TTT); - result.splice(2, 0, ' if ', guard); - } - } else { - result = ['catch']; - } - }); - result.push(this.maybeBlock(stmt.body, S_TFFF)); - return result; - }, - - DebuggerStatement: function (stmt, flags) { - return 'debugger' + this.semicolon(flags); - }, - - EmptyStatement: function (stmt, flags) { - return ';'; - }, - - ExportDefaultDeclaration: function (stmt, flags) { - var result = [ 'export' ], bodyFlags; - - bodyFlags = (flags & F_SEMICOLON_OPT) ? S_TFFT : S_TFFF; - - // export default HoistableDeclaration[Default] - // export default AssignmentExpression[In] ; - result = join(result, 'default'); - if (isStatement(stmt.declaration)) { - result = join(result, this.generateStatement(stmt.declaration, bodyFlags)); - } else { - result = join(result, this.generateExpression(stmt.declaration, Precedence.Assignment, E_TTT) + this.semicolon(flags)); - } - return result; - }, - - ExportNamedDeclaration: function (stmt, flags) { - var result = [ 'export' ], bodyFlags, that = this; - - bodyFlags = (flags & F_SEMICOLON_OPT) ? S_TFFT : S_TFFF; - - // export VariableStatement - // export Declaration[Default] - if (stmt.declaration) { - return join(result, this.generateStatement(stmt.declaration, bodyFlags)); - } - - // export ExportClause[NoReference] FromClause ; - // export ExportClause ; - if (stmt.specifiers) { - if (stmt.specifiers.length === 0) { - result = join(result, '{' + space + '}'); - } else if (stmt.specifiers[0].type === Syntax.ExportBatchSpecifier) { - result = join(result, this.generateExpression(stmt.specifiers[0], Precedence.Sequence, E_TTT)); - } else { - result = join(result, '{'); - withIndent(function (indent) { - var i, iz; - result.push(newline); - for (i = 0, iz = stmt.specifiers.length; i < iz; ++i) { - result.push(indent); - result.push(that.generateExpression(stmt.specifiers[i], Precedence.Sequence, E_TTT)); - if (i + 1 < iz) { - result.push(',' + newline); - } - } - }); - if (!endsWithLineTerminator(toSourceNodeWhenNeeded(result).toString())) { - result.push(newline); - } - result.push(base + '}'); - } - - if (stmt.source) { - result = join(result, [ - 'from' + space, - // ModuleSpecifier - this.generateExpression(stmt.source, Precedence.Sequence, E_TTT), - this.semicolon(flags) - ]); - } else { - result.push(this.semicolon(flags)); - } - } - return result; - }, - - ExportAllDeclaration: function (stmt, flags) { - // export * FromClause ; - return [ - 'export' + space, - '*' + space, - 'from' + space, - // ModuleSpecifier - this.generateExpression(stmt.source, Precedence.Sequence, E_TTT), - this.semicolon(flags) - ]; - }, - - ExpressionStatement: function (stmt, flags) { - var result, fragment; - - function isClassPrefixed(fragment) { - var code; - if (fragment.slice(0, 5) !== 'class') { - return false; - } - code = fragment.charCodeAt(5); - return code === 0x7B /* '{' */ || esutils.code.isWhiteSpace(code) || esutils.code.isLineTerminator(code); - } - - function isFunctionPrefixed(fragment) { - var code; - if (fragment.slice(0, 8) !== 'function') { - return false; - } - code = fragment.charCodeAt(8); - return code === 0x28 /* '(' */ || esutils.code.isWhiteSpace(code) || code === 0x2A /* '*' */ || esutils.code.isLineTerminator(code); - } - - function isAsyncPrefixed(fragment) { - var code, i, iz; - if (fragment.slice(0, 5) !== 'async') { - return false; - } - if (!esutils.code.isWhiteSpace(fragment.charCodeAt(5))) { - return false; - } - for (i = 6, iz = fragment.length; i < iz; ++i) { - if (!esutils.code.isWhiteSpace(fragment.charCodeAt(i))) { - break; - } - } - if (i === iz) { - return false; - } - if (fragment.slice(i, i + 8) !== 'function') { - return false; - } - code = fragment.charCodeAt(i + 8); - return code === 0x28 /* '(' */ || esutils.code.isWhiteSpace(code) || code === 0x2A /* '*' */ || esutils.code.isLineTerminator(code); - } - - result = [this.generateExpression(stmt.expression, Precedence.Sequence, E_TTT)]; - // 12.4 '{', 'function', 'class' is not allowed in this position. - // wrap expression with parentheses - fragment = toSourceNodeWhenNeeded(result).toString(); - if (fragment.charCodeAt(0) === 0x7B /* '{' */ || // ObjectExpression - isClassPrefixed(fragment) || - isFunctionPrefixed(fragment) || - isAsyncPrefixed(fragment) || - (directive && (flags & F_DIRECTIVE_CTX) && stmt.expression.type === Syntax.Literal && typeof stmt.expression.value === 'string')) { - result = ['(', result, ')' + this.semicolon(flags)]; - } else { - result.push(this.semicolon(flags)); - } - return result; - }, - - ImportDeclaration: function (stmt, flags) { - // ES6: 15.2.1 valid import declarations: - // - import ImportClause FromClause ; - // - import ModuleSpecifier ; - var result, cursor, that = this; - - // If no ImportClause is present, - // this should be `import ModuleSpecifier` so skip `from` - // ModuleSpecifier is StringLiteral. - if (stmt.specifiers.length === 0) { - // import ModuleSpecifier ; - return [ - 'import', - space, - // ModuleSpecifier - this.generateExpression(stmt.source, Precedence.Sequence, E_TTT), - this.semicolon(flags) - ]; - } - - // import ImportClause FromClause ; - result = [ - 'import' - ]; - cursor = 0; - - // ImportedBinding - if (stmt.specifiers[cursor].type === Syntax.ImportDefaultSpecifier) { - result = join(result, [ - this.generateExpression(stmt.specifiers[cursor], Precedence.Sequence, E_TTT) - ]); - ++cursor; - } - - if (stmt.specifiers[cursor]) { - if (cursor !== 0) { - result.push(','); - } - - if (stmt.specifiers[cursor].type === Syntax.ImportNamespaceSpecifier) { - // NameSpaceImport - result = join(result, [ - space, - this.generateExpression(stmt.specifiers[cursor], Precedence.Sequence, E_TTT) - ]); - } else { - // NamedImports - result.push(space + '{'); - - if ((stmt.specifiers.length - cursor) === 1) { - // import { ... } from "..."; - result.push(space); - result.push(this.generateExpression(stmt.specifiers[cursor], Precedence.Sequence, E_TTT)); - result.push(space + '}' + space); - } else { - // import { - // ..., - // ..., - // } from "..."; - withIndent(function (indent) { - var i, iz; - result.push(newline); - for (i = cursor, iz = stmt.specifiers.length; i < iz; ++i) { - result.push(indent); - result.push(that.generateExpression(stmt.specifiers[i], Precedence.Sequence, E_TTT)); - if (i + 1 < iz) { - result.push(',' + newline); - } - } - }); - if (!endsWithLineTerminator(toSourceNodeWhenNeeded(result).toString())) { - result.push(newline); - } - result.push(base + '}' + space); - } - } - } - - result = join(result, [ - 'from' + space, - // ModuleSpecifier - this.generateExpression(stmt.source, Precedence.Sequence, E_TTT), - this.semicolon(flags) - ]); - return result; - }, - - VariableDeclarator: function (stmt, flags) { - var itemFlags = (flags & F_ALLOW_IN) ? E_TTT : E_FTT; - if (stmt.init) { - return [ - this.generateExpression(stmt.id, Precedence.Assignment, itemFlags), - space, - '=', - space, - this.generateExpression(stmt.init, Precedence.Assignment, itemFlags) - ]; - } - return this.generatePattern(stmt.id, Precedence.Assignment, itemFlags); - }, - - VariableDeclaration: function (stmt, flags) { - // VariableDeclarator is typed as Statement, - // but joined with comma (not LineTerminator). - // So if comment is attached to target node, we should specialize. - var result, i, iz, node, bodyFlags, that = this; - - result = [ stmt.kind ]; - - bodyFlags = (flags & F_ALLOW_IN) ? S_TFFF : S_FFFF; - - function block() { - node = stmt.declarations[0]; - if (extra.comment && node.leadingComments) { - result.push('\n'); - result.push(addIndent(that.generateStatement(node, bodyFlags))); - } else { - result.push(noEmptySpace()); - result.push(that.generateStatement(node, bodyFlags)); - } - - for (i = 1, iz = stmt.declarations.length; i < iz; ++i) { - node = stmt.declarations[i]; - if (extra.comment && node.leadingComments) { - result.push(',' + newline); - result.push(addIndent(that.generateStatement(node, bodyFlags))); - } else { - result.push(',' + space); - result.push(that.generateStatement(node, bodyFlags)); - } - } - } - - if (stmt.declarations.length > 1) { - withIndent(block); - } else { - block(); - } - - result.push(this.semicolon(flags)); - - return result; - }, - - ThrowStatement: function (stmt, flags) { - return [join( - 'throw', - this.generateExpression(stmt.argument, Precedence.Sequence, E_TTT) - ), this.semicolon(flags)]; - }, - - TryStatement: function (stmt, flags) { - var result, i, iz, guardedHandlers; - - result = ['try', this.maybeBlock(stmt.block, S_TFFF)]; - result = this.maybeBlockSuffix(stmt.block, result); - - if (stmt.handlers) { - // old interface - for (i = 0, iz = stmt.handlers.length; i < iz; ++i) { - result = join(result, this.generateStatement(stmt.handlers[i], S_TFFF)); - if (stmt.finalizer || i + 1 !== iz) { - result = this.maybeBlockSuffix(stmt.handlers[i].body, result); - } - } - } else { - guardedHandlers = stmt.guardedHandlers || []; - - for (i = 0, iz = guardedHandlers.length; i < iz; ++i) { - result = join(result, this.generateStatement(guardedHandlers[i], S_TFFF)); - if (stmt.finalizer || i + 1 !== iz) { - result = this.maybeBlockSuffix(guardedHandlers[i].body, result); - } - } - - // new interface - if (stmt.handler) { - if (Array.isArray(stmt.handler)) { - for (i = 0, iz = stmt.handler.length; i < iz; ++i) { - result = join(result, this.generateStatement(stmt.handler[i], S_TFFF)); - if (stmt.finalizer || i + 1 !== iz) { - result = this.maybeBlockSuffix(stmt.handler[i].body, result); - } - } - } else { - result = join(result, this.generateStatement(stmt.handler, S_TFFF)); - if (stmt.finalizer) { - result = this.maybeBlockSuffix(stmt.handler.body, result); - } - } - } - } - if (stmt.finalizer) { - result = join(result, ['finally', this.maybeBlock(stmt.finalizer, S_TFFF)]); - } - return result; - }, - - SwitchStatement: function (stmt, flags) { - var result, fragment, i, iz, bodyFlags, that = this; - withIndent(function () { - result = [ - 'switch' + space + '(', - that.generateExpression(stmt.discriminant, Precedence.Sequence, E_TTT), - ')' + space + '{' + newline - ]; - }); - if (stmt.cases) { - bodyFlags = S_TFFF; - for (i = 0, iz = stmt.cases.length; i < iz; ++i) { - if (i === iz - 1) { - bodyFlags |= F_SEMICOLON_OPT; - } - fragment = addIndent(this.generateStatement(stmt.cases[i], bodyFlags)); - result.push(fragment); - if (!endsWithLineTerminator(toSourceNodeWhenNeeded(fragment).toString())) { - result.push(newline); - } - } - } - result.push(addIndent('}')); - return result; - }, - - SwitchCase: function (stmt, flags) { - var result, fragment, i, iz, bodyFlags, that = this; - withIndent(function () { - if (stmt.test) { - result = [ - join('case', that.generateExpression(stmt.test, Precedence.Sequence, E_TTT)), - ':' - ]; - } else { - result = ['default:']; - } - - i = 0; - iz = stmt.consequent.length; - if (iz && stmt.consequent[0].type === Syntax.BlockStatement) { - fragment = that.maybeBlock(stmt.consequent[0], S_TFFF); - result.push(fragment); - i = 1; - } - - if (i !== iz && !endsWithLineTerminator(toSourceNodeWhenNeeded(result).toString())) { - result.push(newline); - } - - bodyFlags = S_TFFF; - for (; i < iz; ++i) { - if (i === iz - 1 && flags & F_SEMICOLON_OPT) { - bodyFlags |= F_SEMICOLON_OPT; - } - fragment = addIndent(that.generateStatement(stmt.consequent[i], bodyFlags)); - result.push(fragment); - if (i + 1 !== iz && !endsWithLineTerminator(toSourceNodeWhenNeeded(fragment).toString())) { - result.push(newline); - } - } - }); - return result; - }, - - IfStatement: function (stmt, flags) { - var result, bodyFlags, semicolonOptional, that = this; - withIndent(function () { - result = [ - 'if' + space + '(', - that.generateExpression(stmt.test, Precedence.Sequence, E_TTT), - ')' - ]; - }); - semicolonOptional = flags & F_SEMICOLON_OPT; - bodyFlags = S_TFFF; - if (semicolonOptional) { - bodyFlags |= F_SEMICOLON_OPT; - } - if (stmt.alternate) { - result.push(this.maybeBlock(stmt.consequent, S_TFFF)); - result = this.maybeBlockSuffix(stmt.consequent, result); - if (stmt.alternate.type === Syntax.IfStatement) { - result = join(result, ['else ', this.generateStatement(stmt.alternate, bodyFlags)]); - } else { - result = join(result, join('else', this.maybeBlock(stmt.alternate, bodyFlags))); - } - } else { - result.push(this.maybeBlock(stmt.consequent, bodyFlags)); - } - return result; - }, - - ForStatement: function (stmt, flags) { - var result, that = this; - withIndent(function () { - result = ['for' + space + '(']; - if (stmt.init) { - if (stmt.init.type === Syntax.VariableDeclaration) { - result.push(that.generateStatement(stmt.init, S_FFFF)); - } else { - // F_ALLOW_IN becomes false. - result.push(that.generateExpression(stmt.init, Precedence.Sequence, E_FTT)); - result.push(';'); - } - } else { - result.push(';'); - } - - if (stmt.test) { - result.push(space); - result.push(that.generateExpression(stmt.test, Precedence.Sequence, E_TTT)); - result.push(';'); - } else { - result.push(';'); - } - - if (stmt.update) { - result.push(space); - result.push(that.generateExpression(stmt.update, Precedence.Sequence, E_TTT)); - result.push(')'); - } else { - result.push(')'); - } - }); - - result.push(this.maybeBlock(stmt.body, flags & F_SEMICOLON_OPT ? S_TFFT : S_TFFF)); - return result; - }, - - ForInStatement: function (stmt, flags) { - return this.generateIterationForStatement('in', stmt, flags & F_SEMICOLON_OPT ? S_TFFT : S_TFFF); - }, - - ForOfStatement: function (stmt, flags) { - return this.generateIterationForStatement('of', stmt, flags & F_SEMICOLON_OPT ? S_TFFT : S_TFFF); - }, - - LabeledStatement: function (stmt, flags) { - return [stmt.label.name + ':', this.maybeBlock(stmt.body, flags & F_SEMICOLON_OPT ? S_TFFT : S_TFFF)]; - }, - - Program: function (stmt, flags) { - var result, fragment, i, iz, bodyFlags; - iz = stmt.body.length; - result = [safeConcatenation && iz > 0 ? '\n' : '']; - bodyFlags = S_TFTF; - for (i = 0; i < iz; ++i) { - if (!safeConcatenation && i === iz - 1) { - bodyFlags |= F_SEMICOLON_OPT; - } - - if (preserveBlankLines) { - // handle spaces before the first line - if (i === 0) { - if (!stmt.body[0].leadingComments) { - generateBlankLines(stmt.range[0], stmt.body[i].range[0], result); - } - } - - // handle spaces between lines - if (i > 0) { - if (!stmt.body[i - 1].trailingComments && !stmt.body[i].leadingComments) { - generateBlankLines(stmt.body[i - 1].range[1], stmt.body[i].range[0], result); - } - } - } - - fragment = addIndent(this.generateStatement(stmt.body[i], bodyFlags)); - result.push(fragment); - if (i + 1 < iz && !endsWithLineTerminator(toSourceNodeWhenNeeded(fragment).toString())) { - if (preserveBlankLines) { - if (!stmt.body[i + 1].leadingComments) { - result.push(newline); - } - } else { - result.push(newline); - } - } - - if (preserveBlankLines) { - // handle spaces after the last line - if (i === iz - 1) { - if (!stmt.body[i].trailingComments) { - generateBlankLines(stmt.body[i].range[1], stmt.range[1], result); - } - } - } - } - return result; - }, - - FunctionDeclaration: function (stmt, flags) { - return [ - generateAsyncPrefix(stmt, true), - 'function', - generateStarSuffix(stmt) || noEmptySpace(), - stmt.id ? generateIdentifier(stmt.id) : '', - this.generateFunctionBody(stmt) - ]; - }, - - ReturnStatement: function (stmt, flags) { - if (stmt.argument) { - return [join( - 'return', - this.generateExpression(stmt.argument, Precedence.Sequence, E_TTT) - ), this.semicolon(flags)]; - } - return ['return' + this.semicolon(flags)]; - }, - - WhileStatement: function (stmt, flags) { - var result, that = this; - withIndent(function () { - result = [ - 'while' + space + '(', - that.generateExpression(stmt.test, Precedence.Sequence, E_TTT), - ')' - ]; - }); - result.push(this.maybeBlock(stmt.body, flags & F_SEMICOLON_OPT ? S_TFFT : S_TFFF)); - return result; - }, - - WithStatement: function (stmt, flags) { - var result, that = this; - withIndent(function () { - result = [ - 'with' + space + '(', - that.generateExpression(stmt.object, Precedence.Sequence, E_TTT), - ')' - ]; - }); - result.push(this.maybeBlock(stmt.body, flags & F_SEMICOLON_OPT ? S_TFFT : S_TFFF)); - return result; - } - - }; - - merge(CodeGenerator.prototype, CodeGenerator.Statement); - - // Expressions. - - CodeGenerator.Expression = { - - SequenceExpression: function (expr, precedence, flags) { - var result, i, iz; - if (Precedence.Sequence < precedence) { - flags |= F_ALLOW_IN; - } - result = []; - for (i = 0, iz = expr.expressions.length; i < iz; ++i) { - result.push(this.generateExpression(expr.expressions[i], Precedence.Assignment, flags)); - if (i + 1 < iz) { - result.push(',' + space); - } - } - return parenthesize(result, Precedence.Sequence, precedence); - }, - - AssignmentExpression: function (expr, precedence, flags) { - return this.generateAssignment(expr.left, expr.right, expr.operator, precedence, flags); - }, - - ArrowFunctionExpression: function (expr, precedence, flags) { - return parenthesize(this.generateFunctionBody(expr), Precedence.ArrowFunction, precedence); - }, - - ConditionalExpression: function (expr, precedence, flags) { - if (Precedence.Conditional < precedence) { - flags |= F_ALLOW_IN; - } - return parenthesize( - [ - this.generateExpression(expr.test, Precedence.LogicalOR, flags), - space + '?' + space, - this.generateExpression(expr.consequent, Precedence.Assignment, flags), - space + ':' + space, - this.generateExpression(expr.alternate, Precedence.Assignment, flags) - ], - Precedence.Conditional, - precedence - ); - }, - - LogicalExpression: function (expr, precedence, flags) { - return this.BinaryExpression(expr, precedence, flags); - }, - - BinaryExpression: function (expr, precedence, flags) { - var result, leftPrecedence, rightPrecedence, currentPrecedence, fragment, leftSource; - currentPrecedence = BinaryPrecedence[expr.operator]; - leftPrecedence = expr.operator === '**' ? Precedence.Postfix : currentPrecedence; - rightPrecedence = expr.operator === '**' ? currentPrecedence : currentPrecedence + 1; - - if (currentPrecedence < precedence) { - flags |= F_ALLOW_IN; - } - - fragment = this.generateExpression(expr.left, leftPrecedence, flags); - - leftSource = fragment.toString(); - - if (leftSource.charCodeAt(leftSource.length - 1) === 0x2F /* / */ && esutils.code.isIdentifierPartES5(expr.operator.charCodeAt(0))) { - result = [fragment, noEmptySpace(), expr.operator]; - } else { - result = join(fragment, expr.operator); - } - - fragment = this.generateExpression(expr.right, rightPrecedence, flags); - - if (expr.operator === '/' && fragment.toString().charAt(0) === '/' || - expr.operator.slice(-1) === '<' && fragment.toString().slice(0, 3) === '!--') { - // If '/' concats with '/' or `<` concats with `!--`, it is interpreted as comment start - result.push(noEmptySpace()); - result.push(fragment); - } else { - result = join(result, fragment); - } - - if (expr.operator === 'in' && !(flags & F_ALLOW_IN)) { - return ['(', result, ')']; - } - return parenthesize(result, currentPrecedence, precedence); - }, - - CallExpression: function (expr, precedence, flags) { - var result, i, iz; - // F_ALLOW_UNPARATH_NEW becomes false. - result = [this.generateExpression(expr.callee, Precedence.Call, E_TTF)]; - result.push('('); - for (i = 0, iz = expr['arguments'].length; i < iz; ++i) { - result.push(this.generateExpression(expr['arguments'][i], Precedence.Assignment, E_TTT)); - if (i + 1 < iz) { - result.push(',' + space); - } - } - result.push(')'); - - if (!(flags & F_ALLOW_CALL)) { - return ['(', result, ')']; - } - return parenthesize(result, Precedence.Call, precedence); - }, - - NewExpression: function (expr, precedence, flags) { - var result, length, i, iz, itemFlags; - length = expr['arguments'].length; - - // F_ALLOW_CALL becomes false. - // F_ALLOW_UNPARATH_NEW may become false. - itemFlags = (flags & F_ALLOW_UNPARATH_NEW && !parentheses && length === 0) ? E_TFT : E_TFF; - - result = join( - 'new', - this.generateExpression(expr.callee, Precedence.New, itemFlags) - ); - - if (!(flags & F_ALLOW_UNPARATH_NEW) || parentheses || length > 0) { - result.push('('); - for (i = 0, iz = length; i < iz; ++i) { - result.push(this.generateExpression(expr['arguments'][i], Precedence.Assignment, E_TTT)); - if (i + 1 < iz) { - result.push(',' + space); - } - } - result.push(')'); - } - - return parenthesize(result, Precedence.New, precedence); - }, - - MemberExpression: function (expr, precedence, flags) { - var result, fragment; - - // F_ALLOW_UNPARATH_NEW becomes false. - result = [this.generateExpression(expr.object, Precedence.Call, (flags & F_ALLOW_CALL) ? E_TTF : E_TFF)]; - - if (expr.computed) { - result.push('['); - result.push(this.generateExpression(expr.property, Precedence.Sequence, flags & F_ALLOW_CALL ? E_TTT : E_TFT)); - result.push(']'); - } else { - if (expr.object.type === Syntax.Literal && typeof expr.object.value === 'number') { - fragment = toSourceNodeWhenNeeded(result).toString(); - // When the following conditions are all true, - // 1. No floating point - // 2. Don't have exponents - // 3. The last character is a decimal digit - // 4. Not hexadecimal OR octal number literal - // we should add a floating point. - if ( - fragment.indexOf('.') < 0 && - !/[eExX]/.test(fragment) && - esutils.code.isDecimalDigit(fragment.charCodeAt(fragment.length - 1)) && - !(fragment.length >= 2 && fragment.charCodeAt(0) === 48) // '0' - ) { - result.push(' '); - } - } - result.push('.'); - result.push(generateIdentifier(expr.property)); - } - - return parenthesize(result, Precedence.Member, precedence); - }, - - MetaProperty: function (expr, precedence, flags) { - var result; - result = []; - result.push(typeof expr.meta === "string" ? expr.meta : generateIdentifier(expr.meta)); - result.push('.'); - result.push(typeof expr.property === "string" ? expr.property : generateIdentifier(expr.property)); - return parenthesize(result, Precedence.Member, precedence); - }, - - UnaryExpression: function (expr, precedence, flags) { - var result, fragment, rightCharCode, leftSource, leftCharCode; - fragment = this.generateExpression(expr.argument, Precedence.Unary, E_TTT); - - if (space === '') { - result = join(expr.operator, fragment); - } else { - result = [expr.operator]; - if (expr.operator.length > 2) { - // delete, void, typeof - // get `typeof []`, not `typeof[]` - result = join(result, fragment); - } else { - // Prevent inserting spaces between operator and argument if it is unnecessary - // like, `!cond` - leftSource = toSourceNodeWhenNeeded(result).toString(); - leftCharCode = leftSource.charCodeAt(leftSource.length - 1); - rightCharCode = fragment.toString().charCodeAt(0); - - if (((leftCharCode === 0x2B /* + */ || leftCharCode === 0x2D /* - */) && leftCharCode === rightCharCode) || - (esutils.code.isIdentifierPartES5(leftCharCode) && esutils.code.isIdentifierPartES5(rightCharCode))) { - result.push(noEmptySpace()); - result.push(fragment); - } else { - result.push(fragment); - } - } - } - return parenthesize(result, Precedence.Unary, precedence); - }, - - YieldExpression: function (expr, precedence, flags) { - var result; - if (expr.delegate) { - result = 'yield*'; - } else { - result = 'yield'; - } - if (expr.argument) { - result = join( - result, - this.generateExpression(expr.argument, Precedence.Yield, E_TTT) - ); - } - return parenthesize(result, Precedence.Yield, precedence); - }, - - AwaitExpression: function (expr, precedence, flags) { - var result = join( - expr.all ? 'await*' : 'await', - this.generateExpression(expr.argument, Precedence.Await, E_TTT) - ); - return parenthesize(result, Precedence.Await, precedence); - }, - - UpdateExpression: function (expr, precedence, flags) { - if (expr.prefix) { - return parenthesize( - [ - expr.operator, - this.generateExpression(expr.argument, Precedence.Unary, E_TTT) - ], - Precedence.Unary, - precedence - ); - } - return parenthesize( - [ - this.generateExpression(expr.argument, Precedence.Postfix, E_TTT), - expr.operator - ], - Precedence.Postfix, - precedence - ); - }, - - FunctionExpression: function (expr, precedence, flags) { - var result = [ - generateAsyncPrefix(expr, true), - 'function' - ]; - if (expr.id) { - result.push(generateStarSuffix(expr) || noEmptySpace()); - result.push(generateIdentifier(expr.id)); - } else { - result.push(generateStarSuffix(expr) || space); - } - result.push(this.generateFunctionBody(expr)); - return result; - }, - - ArrayPattern: function (expr, precedence, flags) { - return this.ArrayExpression(expr, precedence, flags, true); - }, - - ArrayExpression: function (expr, precedence, flags, isPattern) { - var result, multiline, that = this; - if (!expr.elements.length) { - return '[]'; - } - multiline = isPattern ? false : expr.elements.length > 1; - result = ['[', multiline ? newline : '']; - withIndent(function (indent) { - var i, iz; - for (i = 0, iz = expr.elements.length; i < iz; ++i) { - if (!expr.elements[i]) { - if (multiline) { - result.push(indent); - } - if (i + 1 === iz) { - result.push(','); - } - } else { - result.push(multiline ? indent : ''); - result.push(that.generateExpression(expr.elements[i], Precedence.Assignment, E_TTT)); - } - if (i + 1 < iz) { - result.push(',' + (multiline ? newline : space)); - } - } - }); - if (multiline && !endsWithLineTerminator(toSourceNodeWhenNeeded(result).toString())) { - result.push(newline); - } - result.push(multiline ? base : ''); - result.push(']'); - return result; - }, - - RestElement: function(expr, precedence, flags) { - return '...' + this.generatePattern(expr.argument); - }, - - ClassExpression: function (expr, precedence, flags) { - var result, fragment; - result = ['class']; - if (expr.id) { - result = join(result, this.generateExpression(expr.id, Precedence.Sequence, E_TTT)); - } - if (expr.superClass) { - fragment = join('extends', this.generateExpression(expr.superClass, Precedence.Unary, E_TTT)); - result = join(result, fragment); - } - result.push(space); - result.push(this.generateStatement(expr.body, S_TFFT)); - return result; - }, - - MethodDefinition: function (expr, precedence, flags) { - var result, fragment; - if (expr['static']) { - result = ['static' + space]; - } else { - result = []; - } - if (expr.kind === 'get' || expr.kind === 'set') { - fragment = [ - join(expr.kind, this.generatePropertyKey(expr.key, expr.computed)), - this.generateFunctionBody(expr.value) - ]; - } else { - fragment = [ - generateMethodPrefix(expr), - this.generatePropertyKey(expr.key, expr.computed), - this.generateFunctionBody(expr.value) - ]; - } - return join(result, fragment); - }, - - Property: function (expr, precedence, flags) { - if (expr.kind === 'get' || expr.kind === 'set') { - return [ - expr.kind, noEmptySpace(), - this.generatePropertyKey(expr.key, expr.computed), - this.generateFunctionBody(expr.value) - ]; - } - - if (expr.shorthand) { - if (expr.value.type === "AssignmentPattern") { - return this.AssignmentPattern(expr.value, Precedence.Sequence, E_TTT); - } - return this.generatePropertyKey(expr.key, expr.computed); - } - - if (expr.method) { - return [ - generateMethodPrefix(expr), - this.generatePropertyKey(expr.key, expr.computed), - this.generateFunctionBody(expr.value) - ]; - } - - return [ - this.generatePropertyKey(expr.key, expr.computed), - ':' + space, - this.generateExpression(expr.value, Precedence.Assignment, E_TTT) - ]; - }, - - ObjectExpression: function (expr, precedence, flags) { - var multiline, result, fragment, that = this; - - if (!expr.properties.length) { - return '{}'; - } - multiline = expr.properties.length > 1; - - withIndent(function () { - fragment = that.generateExpression(expr.properties[0], Precedence.Sequence, E_TTT); - }); - - if (!multiline) { - // issues 4 - // Do not transform from - // dejavu.Class.declare({ - // method2: function () {} - // }); - // to - // dejavu.Class.declare({method2: function () { - // }}); - if (!hasLineTerminator(toSourceNodeWhenNeeded(fragment).toString())) { - return [ '{', space, fragment, space, '}' ]; - } - } - - withIndent(function (indent) { - var i, iz; - result = [ '{', newline, indent, fragment ]; - - if (multiline) { - result.push(',' + newline); - for (i = 1, iz = expr.properties.length; i < iz; ++i) { - result.push(indent); - result.push(that.generateExpression(expr.properties[i], Precedence.Sequence, E_TTT)); - if (i + 1 < iz) { - result.push(',' + newline); - } - } - } - }); - - if (!endsWithLineTerminator(toSourceNodeWhenNeeded(result).toString())) { - result.push(newline); - } - result.push(base); - result.push('}'); - return result; - }, - - AssignmentPattern: function(expr, precedence, flags) { - return this.generateAssignment(expr.left, expr.right, '=', precedence, flags); - }, - - ObjectPattern: function (expr, precedence, flags) { - var result, i, iz, multiline, property, that = this; - if (!expr.properties.length) { - return '{}'; - } - - multiline = false; - if (expr.properties.length === 1) { - property = expr.properties[0]; - if ( - property.type === Syntax.Property - && property.value.type !== Syntax.Identifier - ) { - multiline = true; - } - } else { - for (i = 0, iz = expr.properties.length; i < iz; ++i) { - property = expr.properties[i]; - if ( - property.type === Syntax.Property - && !property.shorthand - ) { - multiline = true; - break; - } - } - } - result = ['{', multiline ? newline : '' ]; - - withIndent(function (indent) { - var i, iz; - for (i = 0, iz = expr.properties.length; i < iz; ++i) { - result.push(multiline ? indent : ''); - result.push(that.generateExpression(expr.properties[i], Precedence.Sequence, E_TTT)); - if (i + 1 < iz) { - result.push(',' + (multiline ? newline : space)); - } - } - }); - - if (multiline && !endsWithLineTerminator(toSourceNodeWhenNeeded(result).toString())) { - result.push(newline); - } - result.push(multiline ? base : ''); - result.push('}'); - return result; - }, - - ThisExpression: function (expr, precedence, flags) { - return 'this'; - }, - - Super: function (expr, precedence, flags) { - return 'super'; - }, - - Identifier: function (expr, precedence, flags) { - return generateIdentifier(expr); - }, - - ImportDefaultSpecifier: function (expr, precedence, flags) { - return generateIdentifier(expr.id || expr.local); - }, - - ImportNamespaceSpecifier: function (expr, precedence, flags) { - var result = ['*']; - var id = expr.id || expr.local; - if (id) { - result.push(space + 'as' + noEmptySpace() + generateIdentifier(id)); - } - return result; - }, - - ImportSpecifier: function (expr, precedence, flags) { - var imported = expr.imported; - var result = [ imported.name ]; - var local = expr.local; - if (local && local.name !== imported.name) { - result.push(noEmptySpace() + 'as' + noEmptySpace() + generateIdentifier(local)); - } - return result; - }, - - ExportSpecifier: function (expr, precedence, flags) { - var local = expr.local; - var result = [ local.name ]; - var exported = expr.exported; - if (exported && exported.name !== local.name) { - result.push(noEmptySpace() + 'as' + noEmptySpace() + generateIdentifier(exported)); - } - return result; - }, - - Literal: function (expr, precedence, flags) { - var raw; - if (expr.hasOwnProperty('raw') && parse && extra.raw) { - try { - raw = parse(expr.raw).body[0].expression; - if (raw.type === Syntax.Literal) { - if (raw.value === expr.value) { - return expr.raw; - } - } - } catch (e) { - // not use raw property - } - } - - if (expr.regex) { - return '/' + expr.regex.pattern + '/' + expr.regex.flags; - } - - if (expr.value === null) { - return 'null'; - } - - if (typeof expr.value === 'string') { - return escapeString(expr.value); - } - - if (typeof expr.value === 'number') { - return generateNumber(expr.value); - } - - if (typeof expr.value === 'boolean') { - return expr.value ? 'true' : 'false'; - } - - return generateRegExp(expr.value); - }, - - GeneratorExpression: function (expr, precedence, flags) { - return this.ComprehensionExpression(expr, precedence, flags); - }, - - ComprehensionExpression: function (expr, precedence, flags) { - // GeneratorExpression should be parenthesized with (...), ComprehensionExpression with [...] - // Due to https://bugzilla.mozilla.org/show_bug.cgi?id=883468 position of expr.body can differ in Spidermonkey and ES6 - - var result, i, iz, fragment, that = this; - result = (expr.type === Syntax.GeneratorExpression) ? ['('] : ['[']; - - if (extra.moz.comprehensionExpressionStartsWithAssignment) { - fragment = this.generateExpression(expr.body, Precedence.Assignment, E_TTT); - result.push(fragment); - } - - if (expr.blocks) { - withIndent(function () { - for (i = 0, iz = expr.blocks.length; i < iz; ++i) { - fragment = that.generateExpression(expr.blocks[i], Precedence.Sequence, E_TTT); - if (i > 0 || extra.moz.comprehensionExpressionStartsWithAssignment) { - result = join(result, fragment); - } else { - result.push(fragment); - } - } - }); - } - - if (expr.filter) { - result = join(result, 'if' + space); - fragment = this.generateExpression(expr.filter, Precedence.Sequence, E_TTT); - result = join(result, [ '(', fragment, ')' ]); - } - - if (!extra.moz.comprehensionExpressionStartsWithAssignment) { - fragment = this.generateExpression(expr.body, Precedence.Assignment, E_TTT); - - result = join(result, fragment); - } - - result.push((expr.type === Syntax.GeneratorExpression) ? ')' : ']'); - return result; - }, - - ComprehensionBlock: function (expr, precedence, flags) { - var fragment; - if (expr.left.type === Syntax.VariableDeclaration) { - fragment = [ - expr.left.kind, noEmptySpace(), - this.generateStatement(expr.left.declarations[0], S_FFFF) - ]; - } else { - fragment = this.generateExpression(expr.left, Precedence.Call, E_TTT); - } - - fragment = join(fragment, expr.of ? 'of' : 'in'); - fragment = join(fragment, this.generateExpression(expr.right, Precedence.Sequence, E_TTT)); - - return [ 'for' + space + '(', fragment, ')' ]; - }, - - SpreadElement: function (expr, precedence, flags) { - return [ - '...', - this.generateExpression(expr.argument, Precedence.Assignment, E_TTT) - ]; - }, - - TaggedTemplateExpression: function (expr, precedence, flags) { - var itemFlags = E_TTF; - if (!(flags & F_ALLOW_CALL)) { - itemFlags = E_TFF; - } - var result = [ - this.generateExpression(expr.tag, Precedence.Call, itemFlags), - this.generateExpression(expr.quasi, Precedence.Primary, E_FFT) - ]; - return parenthesize(result, Precedence.TaggedTemplate, precedence); - }, - - TemplateElement: function (expr, precedence, flags) { - // Don't use "cooked". Since tagged template can use raw template - // representation. So if we do so, it breaks the script semantics. - return expr.value.raw; - }, - - TemplateLiteral: function (expr, precedence, flags) { - var result, i, iz; - result = [ '`' ]; - for (i = 0, iz = expr.quasis.length; i < iz; ++i) { - result.push(this.generateExpression(expr.quasis[i], Precedence.Primary, E_TTT)); - if (i + 1 < iz) { - result.push('${' + space); - result.push(this.generateExpression(expr.expressions[i], Precedence.Sequence, E_TTT)); - result.push(space + '}'); - } - } - result.push('`'); - return result; - }, - - ModuleSpecifier: function (expr, precedence, flags) { - return this.Literal(expr, precedence, flags); - }, - - ImportExpression: function(expr, precedence, flag) { - return parenthesize([ - 'import(', - this.generateExpression(expr.source, Precedence.Assignment, E_TTT), - ')' - ], Precedence.Call, precedence); - }, - - }; - - merge(CodeGenerator.prototype, CodeGenerator.Expression); - - CodeGenerator.prototype.generateExpression = function (expr, precedence, flags) { - var result, type; - - type = expr.type || Syntax.Property; - - if (extra.verbatim && expr.hasOwnProperty(extra.verbatim)) { - return generateVerbatim(expr, precedence); - } - - result = this[type](expr, precedence, flags); - - - if (extra.comment) { - result = addComments(expr, result); - } - return toSourceNodeWhenNeeded(result, expr); - }; - - CodeGenerator.prototype.generateStatement = function (stmt, flags) { - var result, - fragment; - - result = this[stmt.type](stmt, flags); - - // Attach comments - - if (extra.comment) { - result = addComments(stmt, result); - } - - fragment = toSourceNodeWhenNeeded(result).toString(); - if (stmt.type === Syntax.Program && !safeConcatenation && newline === '' && fragment.charAt(fragment.length - 1) === '\n') { - result = sourceMap ? toSourceNodeWhenNeeded(result).replaceRight(/\s+$/, '') : fragment.replace(/\s+$/, ''); - } - - return toSourceNodeWhenNeeded(result, stmt); - }; - - function generateInternal(node) { - var codegen; - - codegen = new CodeGenerator(); - if (isStatement(node)) { - return codegen.generateStatement(node, S_TFFF); - } - - if (isExpression(node)) { - return codegen.generateExpression(node, Precedence.Sequence, E_TTT); - } - - throw new Error('Unknown node type: ' + node.type); - } - - function generate(node, options) { - var defaultOptions = getDefaultOptions(), result, pair; - - if (options != null) { - // Obsolete options - // - // `options.indent` - // `options.base` - // - // Instead of them, we can use `option.format.indent`. - if (typeof options.indent === 'string') { - defaultOptions.format.indent.style = options.indent; - } - if (typeof options.base === 'number') { - defaultOptions.format.indent.base = options.base; - } - options = updateDeeply(defaultOptions, options); - indent = options.format.indent.style; - if (typeof options.base === 'string') { - base = options.base; - } else { - base = stringRepeat(indent, options.format.indent.base); - } - } else { - options = defaultOptions; - indent = options.format.indent.style; - base = stringRepeat(indent, options.format.indent.base); - } - json = options.format.json; - renumber = options.format.renumber; - hexadecimal = json ? false : options.format.hexadecimal; - quotes = json ? 'double' : options.format.quotes; - escapeless = options.format.escapeless; - newline = options.format.newline; - space = options.format.space; - if (options.format.compact) { - newline = space = indent = base = ''; - } - parentheses = options.format.parentheses; - semicolons = options.format.semicolons; - safeConcatenation = options.format.safeConcatenation; - directive = options.directive; - parse = json ? null : options.parse; - sourceMap = options.sourceMap; - sourceCode = options.sourceCode; - preserveBlankLines = options.format.preserveBlankLines && sourceCode !== null; - extra = options; - - if (sourceMap) { - if (!exports.browser) { - // We assume environment is node.js - // And prevent from including source-map by browserify - SourceNode = __nccwpck_require__(56594).SourceNode; - } else { - SourceNode = global.sourceMap.SourceNode; - } - } - - result = generateInternal(node); - - if (!sourceMap) { - pair = {code: result.toString(), map: null}; - return options.sourceMapWithCode ? pair : pair.code; - } - - - pair = result.toStringWithSourceMap({ - file: options.file, - sourceRoot: options.sourceMapRoot - }); - - if (options.sourceContent) { - pair.map.setSourceContent(options.sourceMap, - options.sourceContent); - } - - if (options.sourceMapWithCode) { - return pair; - } - - return pair.map.toString(); - } - - FORMAT_MINIFY = { - indent: { - style: '', - base: 0 - }, - renumber: true, - hexadecimal: true, - quotes: 'auto', - escapeless: true, - compact: true, - parentheses: false, - semicolons: false - }; - - FORMAT_DEFAULTS = getDefaultOptions().format; - - exports.version = __nccwpck_require__(70149).version; - exports.generate = generate; - exports.attachComments = estraverse.attachComments; - exports.Precedence = updateDeeply({}, Precedence); - exports.browser = false; - exports.FORMAT_MINIFY = FORMAT_MINIFY; - exports.FORMAT_DEFAULTS = FORMAT_DEFAULTS; -}()); -/* vim: set sw=4 ts=4 et tw=80 : */ - - -/***/ }), - -/***/ 78823: -/***/ (function(module) { - -(function webpackUniversalModuleDefinition(root, factory) { -/* istanbul ignore next */ - if(true) - module.exports = factory(); - else {} -})(this, function() { -return /******/ (function(modules) { // webpackBootstrap -/******/ // The module cache -/******/ var installedModules = {}; - -/******/ // The require function -/******/ function __nested_webpack_require_583__(moduleId) { - -/******/ // Check if module is in cache -/* istanbul ignore if */ -/******/ if(installedModules[moduleId]) -/******/ return installedModules[moduleId].exports; - -/******/ // Create a new module (and put it into the cache) -/******/ var module = installedModules[moduleId] = { -/******/ exports: {}, -/******/ id: moduleId, -/******/ loaded: false -/******/ }; - -/******/ // Execute the module function -/******/ modules[moduleId].call(module.exports, module, module.exports, __nested_webpack_require_583__); - -/******/ // Flag the module as loaded -/******/ module.loaded = true; - -/******/ // Return the exports of the module -/******/ return module.exports; -/******/ } - - -/******/ // expose the modules object (__webpack_modules__) -/******/ __nested_webpack_require_583__.m = modules; - -/******/ // expose the module cache -/******/ __nested_webpack_require_583__.c = installedModules; - -/******/ // __webpack_public_path__ -/******/ __nested_webpack_require_583__.p = ""; - -/******/ // Load entry module and return exports -/******/ return __nested_webpack_require_583__(0); -/******/ }) -/************************************************************************/ -/******/ ([ -/* 0 */ -/***/ function(module, exports, __nested_webpack_require_1808__) { - - "use strict"; - /* - Copyright JS Foundation and other contributors, https://js.foundation/ - - Redistribution and use in source and binary forms, with or without - modification, are permitted provided that the following conditions are met: - - * Redistributions of source code must retain the above copyright - notice, this list of conditions and the following disclaimer. - * Redistributions in binary form must reproduce the above copyright - notice, this list of conditions and the following disclaimer in the - documentation and/or other materials provided with the distribution. - - THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - ARE DISCLAIMED. IN NO EVENT SHALL BE LIABLE FOR ANY - DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES - (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND - ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF - THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - */ - Object.defineProperty(exports, "__esModule", { value: true }); - var comment_handler_1 = __nested_webpack_require_1808__(1); - var jsx_parser_1 = __nested_webpack_require_1808__(3); - var parser_1 = __nested_webpack_require_1808__(8); - var tokenizer_1 = __nested_webpack_require_1808__(15); - function parse(code, options, delegate) { - var commentHandler = null; - var proxyDelegate = function (node, metadata) { - if (delegate) { - delegate(node, metadata); - } - if (commentHandler) { - commentHandler.visit(node, metadata); - } - }; - var parserDelegate = (typeof delegate === 'function') ? proxyDelegate : null; - var collectComment = false; - if (options) { - collectComment = (typeof options.comment === 'boolean' && options.comment); - var attachComment = (typeof options.attachComment === 'boolean' && options.attachComment); - if (collectComment || attachComment) { - commentHandler = new comment_handler_1.CommentHandler(); - commentHandler.attach = attachComment; - options.comment = true; - parserDelegate = proxyDelegate; - } - } - var isModule = false; - if (options && typeof options.sourceType === 'string') { - isModule = (options.sourceType === 'module'); - } - var parser; - if (options && typeof options.jsx === 'boolean' && options.jsx) { - parser = new jsx_parser_1.JSXParser(code, options, parserDelegate); - } - else { - parser = new parser_1.Parser(code, options, parserDelegate); - } - var program = isModule ? parser.parseModule() : parser.parseScript(); - var ast = program; - if (collectComment && commentHandler) { - ast.comments = commentHandler.comments; - } - if (parser.config.tokens) { - ast.tokens = parser.tokens; - } - if (parser.config.tolerant) { - ast.errors = parser.errorHandler.errors; - } - return ast; - } - exports.parse = parse; - function parseModule(code, options, delegate) { - var parsingOptions = options || {}; - parsingOptions.sourceType = 'module'; - return parse(code, parsingOptions, delegate); - } - exports.parseModule = parseModule; - function parseScript(code, options, delegate) { - var parsingOptions = options || {}; - parsingOptions.sourceType = 'script'; - return parse(code, parsingOptions, delegate); - } - exports.parseScript = parseScript; - function tokenize(code, options, delegate) { - var tokenizer = new tokenizer_1.Tokenizer(code, options); - var tokens; - tokens = []; - try { - while (true) { - var token = tokenizer.getNextToken(); - if (!token) { - break; - } - if (delegate) { - token = delegate(token); - } - tokens.push(token); - } - } - catch (e) { - tokenizer.errorHandler.tolerate(e); - } - if (tokenizer.errorHandler.tolerant) { - tokens.errors = tokenizer.errors(); - } - return tokens; - } - exports.tokenize = tokenize; - var syntax_1 = __nested_webpack_require_1808__(2); - exports.Syntax = syntax_1.Syntax; - // Sync with *.json manifests. - exports.version = '4.0.1'; - - -/***/ }, -/* 1 */ -/***/ function(module, exports, __nested_webpack_require_6456__) { - - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - var syntax_1 = __nested_webpack_require_6456__(2); - var CommentHandler = (function () { - function CommentHandler() { - this.attach = false; - this.comments = []; - this.stack = []; - this.leading = []; - this.trailing = []; - } - CommentHandler.prototype.insertInnerComments = function (node, metadata) { - // innnerComments for properties empty block - // `function a() {/** comments **\/}` - if (node.type === syntax_1.Syntax.BlockStatement && node.body.length === 0) { - var innerComments = []; - for (var i = this.leading.length - 1; i >= 0; --i) { - var entry = this.leading[i]; - if (metadata.end.offset >= entry.start) { - innerComments.unshift(entry.comment); - this.leading.splice(i, 1); - this.trailing.splice(i, 1); - } - } - if (innerComments.length) { - node.innerComments = innerComments; - } - } - }; - CommentHandler.prototype.findTrailingComments = function (metadata) { - var trailingComments = []; - if (this.trailing.length > 0) { - for (var i = this.trailing.length - 1; i >= 0; --i) { - var entry_1 = this.trailing[i]; - if (entry_1.start >= metadata.end.offset) { - trailingComments.unshift(entry_1.comment); - } - } - this.trailing.length = 0; - return trailingComments; - } - var entry = this.stack[this.stack.length - 1]; - if (entry && entry.node.trailingComments) { - var firstComment = entry.node.trailingComments[0]; - if (firstComment && firstComment.range[0] >= metadata.end.offset) { - trailingComments = entry.node.trailingComments; - delete entry.node.trailingComments; - } - } - return trailingComments; - }; - CommentHandler.prototype.findLeadingComments = function (metadata) { - var leadingComments = []; - var target; - while (this.stack.length > 0) { - var entry = this.stack[this.stack.length - 1]; - if (entry && entry.start >= metadata.start.offset) { - target = entry.node; - this.stack.pop(); - } - else { - break; - } - } - if (target) { - var count = target.leadingComments ? target.leadingComments.length : 0; - for (var i = count - 1; i >= 0; --i) { - var comment = target.leadingComments[i]; - if (comment.range[1] <= metadata.start.offset) { - leadingComments.unshift(comment); - target.leadingComments.splice(i, 1); - } - } - if (target.leadingComments && target.leadingComments.length === 0) { - delete target.leadingComments; - } - return leadingComments; - } - for (var i = this.leading.length - 1; i >= 0; --i) { - var entry = this.leading[i]; - if (entry.start <= metadata.start.offset) { - leadingComments.unshift(entry.comment); - this.leading.splice(i, 1); - } - } - return leadingComments; - }; - CommentHandler.prototype.visitNode = function (node, metadata) { - if (node.type === syntax_1.Syntax.Program && node.body.length > 0) { - return; - } - this.insertInnerComments(node, metadata); - var trailingComments = this.findTrailingComments(metadata); - var leadingComments = this.findLeadingComments(metadata); - if (leadingComments.length > 0) { - node.leadingComments = leadingComments; - } - if (trailingComments.length > 0) { - node.trailingComments = trailingComments; - } - this.stack.push({ - node: node, - start: metadata.start.offset - }); - }; - CommentHandler.prototype.visitComment = function (node, metadata) { - var type = (node.type[0] === 'L') ? 'Line' : 'Block'; - var comment = { - type: type, - value: node.value - }; - if (node.range) { - comment.range = node.range; - } - if (node.loc) { - comment.loc = node.loc; - } - this.comments.push(comment); - if (this.attach) { - var entry = { - comment: { - type: type, - value: node.value, - range: [metadata.start.offset, metadata.end.offset] - }, - start: metadata.start.offset - }; - if (node.loc) { - entry.comment.loc = node.loc; - } - node.type = type; - this.leading.push(entry); - this.trailing.push(entry); - } - }; - CommentHandler.prototype.visit = function (node, metadata) { - if (node.type === 'LineComment') { - this.visitComment(node, metadata); - } - else if (node.type === 'BlockComment') { - this.visitComment(node, metadata); - } - else if (this.attach) { - this.visitNode(node, metadata); - } - }; - return CommentHandler; - }()); - exports.CommentHandler = CommentHandler; - - -/***/ }, -/* 2 */ -/***/ function(module, exports) { - - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.Syntax = { - AssignmentExpression: 'AssignmentExpression', - AssignmentPattern: 'AssignmentPattern', - ArrayExpression: 'ArrayExpression', - ArrayPattern: 'ArrayPattern', - ArrowFunctionExpression: 'ArrowFunctionExpression', - AwaitExpression: 'AwaitExpression', - BlockStatement: 'BlockStatement', - BinaryExpression: 'BinaryExpression', - BreakStatement: 'BreakStatement', - CallExpression: 'CallExpression', - CatchClause: 'CatchClause', - ClassBody: 'ClassBody', - ClassDeclaration: 'ClassDeclaration', - ClassExpression: 'ClassExpression', - ConditionalExpression: 'ConditionalExpression', - ContinueStatement: 'ContinueStatement', - DoWhileStatement: 'DoWhileStatement', - DebuggerStatement: 'DebuggerStatement', - EmptyStatement: 'EmptyStatement', - ExportAllDeclaration: 'ExportAllDeclaration', - ExportDefaultDeclaration: 'ExportDefaultDeclaration', - ExportNamedDeclaration: 'ExportNamedDeclaration', - ExportSpecifier: 'ExportSpecifier', - ExpressionStatement: 'ExpressionStatement', - ForStatement: 'ForStatement', - ForOfStatement: 'ForOfStatement', - ForInStatement: 'ForInStatement', - FunctionDeclaration: 'FunctionDeclaration', - FunctionExpression: 'FunctionExpression', - Identifier: 'Identifier', - IfStatement: 'IfStatement', - ImportDeclaration: 'ImportDeclaration', - ImportDefaultSpecifier: 'ImportDefaultSpecifier', - ImportNamespaceSpecifier: 'ImportNamespaceSpecifier', - ImportSpecifier: 'ImportSpecifier', - Literal: 'Literal', - LabeledStatement: 'LabeledStatement', - LogicalExpression: 'LogicalExpression', - MemberExpression: 'MemberExpression', - MetaProperty: 'MetaProperty', - MethodDefinition: 'MethodDefinition', - NewExpression: 'NewExpression', - ObjectExpression: 'ObjectExpression', - ObjectPattern: 'ObjectPattern', - Program: 'Program', - Property: 'Property', - RestElement: 'RestElement', - ReturnStatement: 'ReturnStatement', - SequenceExpression: 'SequenceExpression', - SpreadElement: 'SpreadElement', - Super: 'Super', - SwitchCase: 'SwitchCase', - SwitchStatement: 'SwitchStatement', - TaggedTemplateExpression: 'TaggedTemplateExpression', - TemplateElement: 'TemplateElement', - TemplateLiteral: 'TemplateLiteral', - ThisExpression: 'ThisExpression', - ThrowStatement: 'ThrowStatement', - TryStatement: 'TryStatement', - UnaryExpression: 'UnaryExpression', - UpdateExpression: 'UpdateExpression', - VariableDeclaration: 'VariableDeclaration', - VariableDeclarator: 'VariableDeclarator', - WhileStatement: 'WhileStatement', - WithStatement: 'WithStatement', - YieldExpression: 'YieldExpression' - }; - - -/***/ }, -/* 3 */ -/***/ function(module, exports, __nested_webpack_require_15019__) { - - "use strict"; -/* istanbul ignore next */ - var __extends = (this && this.__extends) || (function () { - var extendStatics = Object.setPrototypeOf || - ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || - function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; - return function (d, b) { - extendStatics(d, b); - function __() { this.constructor = d; } - d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); - }; - })(); - Object.defineProperty(exports, "__esModule", { value: true }); - var character_1 = __nested_webpack_require_15019__(4); - var JSXNode = __nested_webpack_require_15019__(5); - var jsx_syntax_1 = __nested_webpack_require_15019__(6); - var Node = __nested_webpack_require_15019__(7); - var parser_1 = __nested_webpack_require_15019__(8); - var token_1 = __nested_webpack_require_15019__(13); - var xhtml_entities_1 = __nested_webpack_require_15019__(14); - token_1.TokenName[100 /* Identifier */] = 'JSXIdentifier'; - token_1.TokenName[101 /* Text */] = 'JSXText'; - // Fully qualified element name, e.g. returns "svg:path" - function getQualifiedElementName(elementName) { - var qualifiedName; - switch (elementName.type) { - case jsx_syntax_1.JSXSyntax.JSXIdentifier: - var id = elementName; - qualifiedName = id.name; - break; - case jsx_syntax_1.JSXSyntax.JSXNamespacedName: - var ns = elementName; - qualifiedName = getQualifiedElementName(ns.namespace) + ':' + - getQualifiedElementName(ns.name); - break; - case jsx_syntax_1.JSXSyntax.JSXMemberExpression: - var expr = elementName; - qualifiedName = getQualifiedElementName(expr.object) + '.' + - getQualifiedElementName(expr.property); - break; - /* istanbul ignore next */ - default: - break; - } - return qualifiedName; - } - var JSXParser = (function (_super) { - __extends(JSXParser, _super); - function JSXParser(code, options, delegate) { - return _super.call(this, code, options, delegate) || this; - } - JSXParser.prototype.parsePrimaryExpression = function () { - return this.match('<') ? this.parseJSXRoot() : _super.prototype.parsePrimaryExpression.call(this); - }; - JSXParser.prototype.startJSX = function () { - // Unwind the scanner before the lookahead token. - this.scanner.index = this.startMarker.index; - this.scanner.lineNumber = this.startMarker.line; - this.scanner.lineStart = this.startMarker.index - this.startMarker.column; - }; - JSXParser.prototype.finishJSX = function () { - // Prime the next lookahead. - this.nextToken(); - }; - JSXParser.prototype.reenterJSX = function () { - this.startJSX(); - this.expectJSX('}'); - // Pop the closing '}' added from the lookahead. - if (this.config.tokens) { - this.tokens.pop(); - } - }; - JSXParser.prototype.createJSXNode = function () { - this.collectComments(); - return { - index: this.scanner.index, - line: this.scanner.lineNumber, - column: this.scanner.index - this.scanner.lineStart - }; - }; - JSXParser.prototype.createJSXChildNode = function () { - return { - index: this.scanner.index, - line: this.scanner.lineNumber, - column: this.scanner.index - this.scanner.lineStart - }; - }; - JSXParser.prototype.scanXHTMLEntity = function (quote) { - var result = '&'; - var valid = true; - var terminated = false; - var numeric = false; - var hex = false; - while (!this.scanner.eof() && valid && !terminated) { - var ch = this.scanner.source[this.scanner.index]; - if (ch === quote) { - break; - } - terminated = (ch === ';'); - result += ch; - ++this.scanner.index; - if (!terminated) { - switch (result.length) { - case 2: - // e.g. '{' - numeric = (ch === '#'); - break; - case 3: - if (numeric) { - // e.g. 'A' - hex = (ch === 'x'); - valid = hex || character_1.Character.isDecimalDigit(ch.charCodeAt(0)); - numeric = numeric && !hex; - } - break; - default: - valid = valid && !(numeric && !character_1.Character.isDecimalDigit(ch.charCodeAt(0))); - valid = valid && !(hex && !character_1.Character.isHexDigit(ch.charCodeAt(0))); - break; - } - } - } - if (valid && terminated && result.length > 2) { - // e.g. 'A' becomes just '#x41' - var str = result.substr(1, result.length - 2); - if (numeric && str.length > 1) { - result = String.fromCharCode(parseInt(str.substr(1), 10)); - } - else if (hex && str.length > 2) { - result = String.fromCharCode(parseInt('0' + str.substr(1), 16)); - } - else if (!numeric && !hex && xhtml_entities_1.XHTMLEntities[str]) { - result = xhtml_entities_1.XHTMLEntities[str]; - } - } - return result; - }; - // Scan the next JSX token. This replaces Scanner#lex when in JSX mode. - JSXParser.prototype.lexJSX = function () { - var cp = this.scanner.source.charCodeAt(this.scanner.index); - // < > / : = { } - if (cp === 60 || cp === 62 || cp === 47 || cp === 58 || cp === 61 || cp === 123 || cp === 125) { - var value = this.scanner.source[this.scanner.index++]; - return { - type: 7 /* Punctuator */, - value: value, - lineNumber: this.scanner.lineNumber, - lineStart: this.scanner.lineStart, - start: this.scanner.index - 1, - end: this.scanner.index - }; - } - // " ' - if (cp === 34 || cp === 39) { - var start = this.scanner.index; - var quote = this.scanner.source[this.scanner.index++]; - var str = ''; - while (!this.scanner.eof()) { - var ch = this.scanner.source[this.scanner.index++]; - if (ch === quote) { - break; - } - else if (ch === '&') { - str += this.scanXHTMLEntity(quote); - } - else { - str += ch; - } - } - return { - type: 8 /* StringLiteral */, - value: str, - lineNumber: this.scanner.lineNumber, - lineStart: this.scanner.lineStart, - start: start, - end: this.scanner.index - }; - } - // ... or . - if (cp === 46) { - var n1 = this.scanner.source.charCodeAt(this.scanner.index + 1); - var n2 = this.scanner.source.charCodeAt(this.scanner.index + 2); - var value = (n1 === 46 && n2 === 46) ? '...' : '.'; - var start = this.scanner.index; - this.scanner.index += value.length; - return { - type: 7 /* Punctuator */, - value: value, - lineNumber: this.scanner.lineNumber, - lineStart: this.scanner.lineStart, - start: start, - end: this.scanner.index - }; - } - // ` - if (cp === 96) { - // Only placeholder, since it will be rescanned as a real assignment expression. - return { - type: 10 /* Template */, - value: '', - lineNumber: this.scanner.lineNumber, - lineStart: this.scanner.lineStart, - start: this.scanner.index, - end: this.scanner.index - }; - } - // Identifer can not contain backslash (char code 92). - if (character_1.Character.isIdentifierStart(cp) && (cp !== 92)) { - var start = this.scanner.index; - ++this.scanner.index; - while (!this.scanner.eof()) { - var ch = this.scanner.source.charCodeAt(this.scanner.index); - if (character_1.Character.isIdentifierPart(ch) && (ch !== 92)) { - ++this.scanner.index; - } - else if (ch === 45) { - // Hyphen (char code 45) can be part of an identifier. - ++this.scanner.index; - } - else { - break; - } - } - var id = this.scanner.source.slice(start, this.scanner.index); - return { - type: 100 /* Identifier */, - value: id, - lineNumber: this.scanner.lineNumber, - lineStart: this.scanner.lineStart, - start: start, - end: this.scanner.index - }; - } - return this.scanner.lex(); - }; - JSXParser.prototype.nextJSXToken = function () { - this.collectComments(); - this.startMarker.index = this.scanner.index; - this.startMarker.line = this.scanner.lineNumber; - this.startMarker.column = this.scanner.index - this.scanner.lineStart; - var token = this.lexJSX(); - this.lastMarker.index = this.scanner.index; - this.lastMarker.line = this.scanner.lineNumber; - this.lastMarker.column = this.scanner.index - this.scanner.lineStart; - if (this.config.tokens) { - this.tokens.push(this.convertToken(token)); - } - return token; - }; - JSXParser.prototype.nextJSXText = function () { - this.startMarker.index = this.scanner.index; - this.startMarker.line = this.scanner.lineNumber; - this.startMarker.column = this.scanner.index - this.scanner.lineStart; - var start = this.scanner.index; - var text = ''; - while (!this.scanner.eof()) { - var ch = this.scanner.source[this.scanner.index]; - if (ch === '{' || ch === '<') { - break; - } - ++this.scanner.index; - text += ch; - if (character_1.Character.isLineTerminator(ch.charCodeAt(0))) { - ++this.scanner.lineNumber; - if (ch === '\r' && this.scanner.source[this.scanner.index] === '\n') { - ++this.scanner.index; - } - this.scanner.lineStart = this.scanner.index; - } - } - this.lastMarker.index = this.scanner.index; - this.lastMarker.line = this.scanner.lineNumber; - this.lastMarker.column = this.scanner.index - this.scanner.lineStart; - var token = { - type: 101 /* Text */, - value: text, - lineNumber: this.scanner.lineNumber, - lineStart: this.scanner.lineStart, - start: start, - end: this.scanner.index - }; - if ((text.length > 0) && this.config.tokens) { - this.tokens.push(this.convertToken(token)); - } - return token; - }; - JSXParser.prototype.peekJSXToken = function () { - var state = this.scanner.saveState(); - this.scanner.scanComments(); - var next = this.lexJSX(); - this.scanner.restoreState(state); - return next; - }; - // Expect the next JSX token to match the specified punctuator. - // If not, an exception will be thrown. - JSXParser.prototype.expectJSX = function (value) { - var token = this.nextJSXToken(); - if (token.type !== 7 /* Punctuator */ || token.value !== value) { - this.throwUnexpectedToken(token); - } - }; - // Return true if the next JSX token matches the specified punctuator. - JSXParser.prototype.matchJSX = function (value) { - var next = this.peekJSXToken(); - return next.type === 7 /* Punctuator */ && next.value === value; - }; - JSXParser.prototype.parseJSXIdentifier = function () { - var node = this.createJSXNode(); - var token = this.nextJSXToken(); - if (token.type !== 100 /* Identifier */) { - this.throwUnexpectedToken(token); - } - return this.finalize(node, new JSXNode.JSXIdentifier(token.value)); - }; - JSXParser.prototype.parseJSXElementName = function () { - var node = this.createJSXNode(); - var elementName = this.parseJSXIdentifier(); - if (this.matchJSX(':')) { - var namespace = elementName; - this.expectJSX(':'); - var name_1 = this.parseJSXIdentifier(); - elementName = this.finalize(node, new JSXNode.JSXNamespacedName(namespace, name_1)); - } - else if (this.matchJSX('.')) { - while (this.matchJSX('.')) { - var object = elementName; - this.expectJSX('.'); - var property = this.parseJSXIdentifier(); - elementName = this.finalize(node, new JSXNode.JSXMemberExpression(object, property)); - } - } - return elementName; - }; - JSXParser.prototype.parseJSXAttributeName = function () { - var node = this.createJSXNode(); - var attributeName; - var identifier = this.parseJSXIdentifier(); - if (this.matchJSX(':')) { - var namespace = identifier; - this.expectJSX(':'); - var name_2 = this.parseJSXIdentifier(); - attributeName = this.finalize(node, new JSXNode.JSXNamespacedName(namespace, name_2)); - } - else { - attributeName = identifier; - } - return attributeName; - }; - JSXParser.prototype.parseJSXStringLiteralAttribute = function () { - var node = this.createJSXNode(); - var token = this.nextJSXToken(); - if (token.type !== 8 /* StringLiteral */) { - this.throwUnexpectedToken(token); - } - var raw = this.getTokenRaw(token); - return this.finalize(node, new Node.Literal(token.value, raw)); - }; - JSXParser.prototype.parseJSXExpressionAttribute = function () { - var node = this.createJSXNode(); - this.expectJSX('{'); - this.finishJSX(); - if (this.match('}')) { - this.tolerateError('JSX attributes must only be assigned a non-empty expression'); - } - var expression = this.parseAssignmentExpression(); - this.reenterJSX(); - return this.finalize(node, new JSXNode.JSXExpressionContainer(expression)); - }; - JSXParser.prototype.parseJSXAttributeValue = function () { - return this.matchJSX('{') ? this.parseJSXExpressionAttribute() : - this.matchJSX('<') ? this.parseJSXElement() : this.parseJSXStringLiteralAttribute(); - }; - JSXParser.prototype.parseJSXNameValueAttribute = function () { - var node = this.createJSXNode(); - var name = this.parseJSXAttributeName(); - var value = null; - if (this.matchJSX('=')) { - this.expectJSX('='); - value = this.parseJSXAttributeValue(); - } - return this.finalize(node, new JSXNode.JSXAttribute(name, value)); - }; - JSXParser.prototype.parseJSXSpreadAttribute = function () { - var node = this.createJSXNode(); - this.expectJSX('{'); - this.expectJSX('...'); - this.finishJSX(); - var argument = this.parseAssignmentExpression(); - this.reenterJSX(); - return this.finalize(node, new JSXNode.JSXSpreadAttribute(argument)); - }; - JSXParser.prototype.parseJSXAttributes = function () { - var attributes = []; - while (!this.matchJSX('/') && !this.matchJSX('>')) { - var attribute = this.matchJSX('{') ? this.parseJSXSpreadAttribute() : - this.parseJSXNameValueAttribute(); - attributes.push(attribute); - } - return attributes; - }; - JSXParser.prototype.parseJSXOpeningElement = function () { - var node = this.createJSXNode(); - this.expectJSX('<'); - var name = this.parseJSXElementName(); - var attributes = this.parseJSXAttributes(); - var selfClosing = this.matchJSX('/'); - if (selfClosing) { - this.expectJSX('/'); - } - this.expectJSX('>'); - return this.finalize(node, new JSXNode.JSXOpeningElement(name, selfClosing, attributes)); - }; - JSXParser.prototype.parseJSXBoundaryElement = function () { - var node = this.createJSXNode(); - this.expectJSX('<'); - if (this.matchJSX('/')) { - this.expectJSX('/'); - var name_3 = this.parseJSXElementName(); - this.expectJSX('>'); - return this.finalize(node, new JSXNode.JSXClosingElement(name_3)); - } - var name = this.parseJSXElementName(); - var attributes = this.parseJSXAttributes(); - var selfClosing = this.matchJSX('/'); - if (selfClosing) { - this.expectJSX('/'); - } - this.expectJSX('>'); - return this.finalize(node, new JSXNode.JSXOpeningElement(name, selfClosing, attributes)); - }; - JSXParser.prototype.parseJSXEmptyExpression = function () { - var node = this.createJSXChildNode(); - this.collectComments(); - this.lastMarker.index = this.scanner.index; - this.lastMarker.line = this.scanner.lineNumber; - this.lastMarker.column = this.scanner.index - this.scanner.lineStart; - return this.finalize(node, new JSXNode.JSXEmptyExpression()); - }; - JSXParser.prototype.parseJSXExpressionContainer = function () { - var node = this.createJSXNode(); - this.expectJSX('{'); - var expression; - if (this.matchJSX('}')) { - expression = this.parseJSXEmptyExpression(); - this.expectJSX('}'); - } - else { - this.finishJSX(); - expression = this.parseAssignmentExpression(); - this.reenterJSX(); - } - return this.finalize(node, new JSXNode.JSXExpressionContainer(expression)); - }; - JSXParser.prototype.parseJSXChildren = function () { - var children = []; - while (!this.scanner.eof()) { - var node = this.createJSXChildNode(); - var token = this.nextJSXText(); - if (token.start < token.end) { - var raw = this.getTokenRaw(token); - var child = this.finalize(node, new JSXNode.JSXText(token.value, raw)); - children.push(child); - } - if (this.scanner.source[this.scanner.index] === '{') { - var container = this.parseJSXExpressionContainer(); - children.push(container); - } - else { - break; - } - } - return children; - }; - JSXParser.prototype.parseComplexJSXElement = function (el) { - var stack = []; - while (!this.scanner.eof()) { - el.children = el.children.concat(this.parseJSXChildren()); - var node = this.createJSXChildNode(); - var element = this.parseJSXBoundaryElement(); - if (element.type === jsx_syntax_1.JSXSyntax.JSXOpeningElement) { - var opening = element; - if (opening.selfClosing) { - var child = this.finalize(node, new JSXNode.JSXElement(opening, [], null)); - el.children.push(child); - } - else { - stack.push(el); - el = { node: node, opening: opening, closing: null, children: [] }; - } - } - if (element.type === jsx_syntax_1.JSXSyntax.JSXClosingElement) { - el.closing = element; - var open_1 = getQualifiedElementName(el.opening.name); - var close_1 = getQualifiedElementName(el.closing.name); - if (open_1 !== close_1) { - this.tolerateError('Expected corresponding JSX closing tag for %0', open_1); - } - if (stack.length > 0) { - var child = this.finalize(el.node, new JSXNode.JSXElement(el.opening, el.children, el.closing)); - el = stack[stack.length - 1]; - el.children.push(child); - stack.pop(); - } - else { - break; - } - } - } - return el; - }; - JSXParser.prototype.parseJSXElement = function () { - var node = this.createJSXNode(); - var opening = this.parseJSXOpeningElement(); - var children = []; - var closing = null; - if (!opening.selfClosing) { - var el = this.parseComplexJSXElement({ node: node, opening: opening, closing: closing, children: children }); - children = el.children; - closing = el.closing; - } - return this.finalize(node, new JSXNode.JSXElement(opening, children, closing)); - }; - JSXParser.prototype.parseJSXRoot = function () { - // Pop the opening '<' added from the lookahead. - if (this.config.tokens) { - this.tokens.pop(); - } - this.startJSX(); - var element = this.parseJSXElement(); - this.finishJSX(); - return element; - }; - JSXParser.prototype.isStartOfExpression = function () { - return _super.prototype.isStartOfExpression.call(this) || this.match('<'); - }; - return JSXParser; - }(parser_1.Parser)); - exports.JSXParser = JSXParser; - - -/***/ }, -/* 4 */ -/***/ function(module, exports) { - - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - // See also tools/generate-unicode-regex.js. - var Regex = { - // Unicode v8.0.0 NonAsciiIdentifierStart: - NonAsciiIdentifierStart: /[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0-\u08B4\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AD\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDEC0-\uDEF8]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1]|\uD87E[\uDC00-\uDE1D]/, - // Unicode v8.0.0 NonAsciiIdentifierPart: - NonAsciiIdentifierPart: /[\xAA\xB5\xB7\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u08A0-\u08B4\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A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EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1369-\u1371\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1CD0-\u1CD2\u1CD4-\u1CF6\u1CF8\u1CF9\u1D00-\u1DF5\u1DFC-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AD\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C4\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\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[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC00-\uDC46\uDC66-\uDC6F\uDC7F-\uDCBA\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDCA-\uDDCC\uDDD0-\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE37\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3C-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF50\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB7\uDEC0-\uDEC9\uDF00-\uDF19\uDF1D-\uDF2B\uDF30-\uDF39]|\uD806[\uDCA0-\uDCE9\uDCFF\uDEC0-\uDEF8]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50-\uDF7E\uDF8F-\uDF9F]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF]/ - }; - exports.Character = { - /* tslint:disable:no-bitwise */ - fromCodePoint: function (cp) { - return (cp < 0x10000) ? String.fromCharCode(cp) : - String.fromCharCode(0xD800 + ((cp - 0x10000) >> 10)) + - String.fromCharCode(0xDC00 + ((cp - 0x10000) & 1023)); - }, - // https://tc39.github.io/ecma262/#sec-white-space - isWhiteSpace: function (cp) { - return (cp === 0x20) || (cp === 0x09) || (cp === 0x0B) || (cp === 0x0C) || (cp === 0xA0) || - (cp >= 0x1680 && [0x1680, 0x2000, 0x2001, 0x2002, 0x2003, 0x2004, 0x2005, 0x2006, 0x2007, 0x2008, 0x2009, 0x200A, 0x202F, 0x205F, 0x3000, 0xFEFF].indexOf(cp) >= 0); - }, - // https://tc39.github.io/ecma262/#sec-line-terminators - isLineTerminator: function (cp) { - return (cp === 0x0A) || (cp === 0x0D) || (cp === 0x2028) || (cp === 0x2029); - }, - // https://tc39.github.io/ecma262/#sec-names-and-keywords - isIdentifierStart: function (cp) { - return (cp === 0x24) || (cp === 0x5F) || - (cp >= 0x41 && cp <= 0x5A) || - (cp >= 0x61 && cp <= 0x7A) || - (cp === 0x5C) || - ((cp >= 0x80) && Regex.NonAsciiIdentifierStart.test(exports.Character.fromCodePoint(cp))); - }, - isIdentifierPart: function (cp) { - return (cp === 0x24) || (cp === 0x5F) || - (cp >= 0x41 && cp <= 0x5A) || - (cp >= 0x61 && cp <= 0x7A) || - (cp >= 0x30 && cp <= 0x39) || - (cp === 0x5C) || - ((cp >= 0x80) && Regex.NonAsciiIdentifierPart.test(exports.Character.fromCodePoint(cp))); - }, - // https://tc39.github.io/ecma262/#sec-literals-numeric-literals - isDecimalDigit: function (cp) { - return (cp >= 0x30 && cp <= 0x39); // 0..9 - }, - isHexDigit: function (cp) { - return (cp >= 0x30 && cp <= 0x39) || - (cp >= 0x41 && cp <= 0x46) || - (cp >= 0x61 && cp <= 0x66); // a..f - }, - isOctalDigit: function (cp) { - return (cp >= 0x30 && cp <= 0x37); // 0..7 - } - }; - - -/***/ }, -/* 5 */ -/***/ function(module, exports, __nested_webpack_require_54354__) { - - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - var jsx_syntax_1 = __nested_webpack_require_54354__(6); - /* tslint:disable:max-classes-per-file */ - var JSXClosingElement = (function () { - function JSXClosingElement(name) { - this.type = jsx_syntax_1.JSXSyntax.JSXClosingElement; - this.name = name; - } - return JSXClosingElement; - }()); - exports.JSXClosingElement = JSXClosingElement; - var JSXElement = (function () { - function JSXElement(openingElement, children, closingElement) { - this.type = jsx_syntax_1.JSXSyntax.JSXElement; - this.openingElement = openingElement; - this.children = children; - this.closingElement = closingElement; - } - return JSXElement; - }()); - exports.JSXElement = JSXElement; - var JSXEmptyExpression = (function () { - function JSXEmptyExpression() { - this.type = jsx_syntax_1.JSXSyntax.JSXEmptyExpression; - } - return JSXEmptyExpression; - }()); - exports.JSXEmptyExpression = JSXEmptyExpression; - var JSXExpressionContainer = (function () { - function JSXExpressionContainer(expression) { - this.type = jsx_syntax_1.JSXSyntax.JSXExpressionContainer; - this.expression = expression; - } - return JSXExpressionContainer; - }()); - exports.JSXExpressionContainer = JSXExpressionContainer; - var JSXIdentifier = (function () { - function JSXIdentifier(name) { - this.type = jsx_syntax_1.JSXSyntax.JSXIdentifier; - this.name = name; - } - return JSXIdentifier; - }()); - exports.JSXIdentifier = JSXIdentifier; - var JSXMemberExpression = (function () { - function JSXMemberExpression(object, property) { - this.type = jsx_syntax_1.JSXSyntax.JSXMemberExpression; - this.object = object; - this.property = property; - } - return JSXMemberExpression; - }()); - exports.JSXMemberExpression = JSXMemberExpression; - var JSXAttribute = (function () { - function JSXAttribute(name, value) { - this.type = jsx_syntax_1.JSXSyntax.JSXAttribute; - this.name = name; - this.value = value; - } - return JSXAttribute; - }()); - exports.JSXAttribute = JSXAttribute; - var JSXNamespacedName = (function () { - function JSXNamespacedName(namespace, name) { - this.type = jsx_syntax_1.JSXSyntax.JSXNamespacedName; - this.namespace = namespace; - this.name = name; - } - return JSXNamespacedName; - }()); - exports.JSXNamespacedName = JSXNamespacedName; - var JSXOpeningElement = (function () { - function JSXOpeningElement(name, selfClosing, attributes) { - this.type = jsx_syntax_1.JSXSyntax.JSXOpeningElement; - this.name = name; - this.selfClosing = selfClosing; - this.attributes = attributes; - } - return JSXOpeningElement; - }()); - exports.JSXOpeningElement = JSXOpeningElement; - var JSXSpreadAttribute = (function () { - function JSXSpreadAttribute(argument) { - this.type = jsx_syntax_1.JSXSyntax.JSXSpreadAttribute; - this.argument = argument; - } - return JSXSpreadAttribute; - }()); - exports.JSXSpreadAttribute = JSXSpreadAttribute; - var JSXText = (function () { - function JSXText(value, raw) { - this.type = jsx_syntax_1.JSXSyntax.JSXText; - this.value = value; - this.raw = raw; - } - return JSXText; - }()); - exports.JSXText = JSXText; - - -/***/ }, -/* 6 */ -/***/ function(module, exports) { - - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.JSXSyntax = { - JSXAttribute: 'JSXAttribute', - JSXClosingElement: 'JSXClosingElement', - JSXElement: 'JSXElement', - JSXEmptyExpression: 'JSXEmptyExpression', - JSXExpressionContainer: 'JSXExpressionContainer', - JSXIdentifier: 'JSXIdentifier', - JSXMemberExpression: 'JSXMemberExpression', - JSXNamespacedName: 'JSXNamespacedName', - JSXOpeningElement: 'JSXOpeningElement', - JSXSpreadAttribute: 'JSXSpreadAttribute', - JSXText: 'JSXText' - }; - - -/***/ }, -/* 7 */ -/***/ function(module, exports, __nested_webpack_require_58416__) { - - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - var syntax_1 = __nested_webpack_require_58416__(2); - /* tslint:disable:max-classes-per-file */ - var ArrayExpression = (function () { - function ArrayExpression(elements) { - this.type = syntax_1.Syntax.ArrayExpression; - this.elements = elements; - } - return ArrayExpression; - }()); - exports.ArrayExpression = ArrayExpression; - var ArrayPattern = (function () { - function ArrayPattern(elements) { - this.type = syntax_1.Syntax.ArrayPattern; - this.elements = elements; - } - return ArrayPattern; - }()); - exports.ArrayPattern = ArrayPattern; - var ArrowFunctionExpression = (function () { - function ArrowFunctionExpression(params, body, expression) { - this.type = syntax_1.Syntax.ArrowFunctionExpression; - this.id = null; - this.params = params; - this.body = body; - this.generator = false; - this.expression = expression; - this.async = false; - } - return ArrowFunctionExpression; - }()); - exports.ArrowFunctionExpression = ArrowFunctionExpression; - var AssignmentExpression = (function () { - function AssignmentExpression(operator, left, right) { - this.type = syntax_1.Syntax.AssignmentExpression; - this.operator = operator; - this.left = left; - this.right = right; - } - return AssignmentExpression; - }()); - exports.AssignmentExpression = AssignmentExpression; - var AssignmentPattern = (function () { - function AssignmentPattern(left, right) { - this.type = syntax_1.Syntax.AssignmentPattern; - this.left = left; - this.right = right; - } - return AssignmentPattern; - }()); - exports.AssignmentPattern = AssignmentPattern; - var AsyncArrowFunctionExpression = (function () { - function AsyncArrowFunctionExpression(params, body, expression) { - this.type = syntax_1.Syntax.ArrowFunctionExpression; - this.id = null; - this.params = params; - this.body = body; - this.generator = false; - this.expression = expression; - this.async = true; - } - return AsyncArrowFunctionExpression; - }()); - exports.AsyncArrowFunctionExpression = AsyncArrowFunctionExpression; - var AsyncFunctionDeclaration = (function () { - function AsyncFunctionDeclaration(id, params, body) { - this.type = syntax_1.Syntax.FunctionDeclaration; - this.id = id; - this.params = params; - this.body = body; - this.generator = false; - this.expression = false; - this.async = true; - } - return AsyncFunctionDeclaration; - }()); - exports.AsyncFunctionDeclaration = AsyncFunctionDeclaration; - var AsyncFunctionExpression = (function () { - function AsyncFunctionExpression(id, params, body) { - this.type = syntax_1.Syntax.FunctionExpression; - this.id = id; - this.params = params; - this.body = body; - this.generator = false; - this.expression = false; - this.async = true; - } - return AsyncFunctionExpression; - }()); - exports.AsyncFunctionExpression = AsyncFunctionExpression; - var AwaitExpression = (function () { - function AwaitExpression(argument) { - this.type = syntax_1.Syntax.AwaitExpression; - this.argument = argument; - } - return AwaitExpression; - }()); - exports.AwaitExpression = AwaitExpression; - var BinaryExpression = (function () { - function BinaryExpression(operator, left, right) { - var logical = (operator === '||' || operator === '&&'); - this.type = logical ? syntax_1.Syntax.LogicalExpression : syntax_1.Syntax.BinaryExpression; - this.operator = operator; - this.left = left; - this.right = right; - } - return BinaryExpression; - }()); - exports.BinaryExpression = BinaryExpression; - var BlockStatement = (function () { - function BlockStatement(body) { - this.type = syntax_1.Syntax.BlockStatement; - this.body = body; - } - return BlockStatement; - }()); - exports.BlockStatement = BlockStatement; - var BreakStatement = (function () { - function BreakStatement(label) { - this.type = syntax_1.Syntax.BreakStatement; - this.label = label; - } - return BreakStatement; - }()); - exports.BreakStatement = BreakStatement; - var CallExpression = (function () { - function CallExpression(callee, args) { - this.type = syntax_1.Syntax.CallExpression; - this.callee = callee; - this.arguments = args; - } - return CallExpression; - }()); - exports.CallExpression = CallExpression; - var CatchClause = (function () { - function CatchClause(param, body) { - this.type = syntax_1.Syntax.CatchClause; - this.param = param; - this.body = body; - } - return CatchClause; - }()); - exports.CatchClause = CatchClause; - var ClassBody = (function () { - function ClassBody(body) { - this.type = syntax_1.Syntax.ClassBody; - this.body = body; - } - return ClassBody; - }()); - exports.ClassBody = ClassBody; - var ClassDeclaration = (function () { - function ClassDeclaration(id, superClass, body) { - this.type = syntax_1.Syntax.ClassDeclaration; - this.id = id; - this.superClass = superClass; - this.body = body; - } - return ClassDeclaration; - }()); - exports.ClassDeclaration = ClassDeclaration; - var ClassExpression = (function () { - function ClassExpression(id, superClass, body) { - this.type = syntax_1.Syntax.ClassExpression; - this.id = id; - this.superClass = superClass; - this.body = body; - } - return ClassExpression; - }()); - exports.ClassExpression = ClassExpression; - var ComputedMemberExpression = (function () { - function ComputedMemberExpression(object, property) { - this.type = syntax_1.Syntax.MemberExpression; - this.computed = true; - this.object = object; - this.property = property; - } - return ComputedMemberExpression; - }()); - exports.ComputedMemberExpression = ComputedMemberExpression; - var ConditionalExpression = (function () { - function ConditionalExpression(test, consequent, alternate) { - this.type = syntax_1.Syntax.ConditionalExpression; - this.test = test; - this.consequent = consequent; - this.alternate = alternate; - } - return ConditionalExpression; - }()); - exports.ConditionalExpression = ConditionalExpression; - var ContinueStatement = (function () { - function ContinueStatement(label) { - this.type = syntax_1.Syntax.ContinueStatement; - this.label = label; - } - return ContinueStatement; - }()); - exports.ContinueStatement = ContinueStatement; - var DebuggerStatement = (function () { - function DebuggerStatement() { - this.type = syntax_1.Syntax.DebuggerStatement; - } - return DebuggerStatement; - }()); - exports.DebuggerStatement = DebuggerStatement; - var Directive = (function () { - function Directive(expression, directive) { - this.type = syntax_1.Syntax.ExpressionStatement; - this.expression = expression; - this.directive = directive; - } - return Directive; - }()); - exports.Directive = Directive; - var DoWhileStatement = (function () { - function DoWhileStatement(body, test) { - this.type = syntax_1.Syntax.DoWhileStatement; - this.body = body; - this.test = test; - } - return DoWhileStatement; - }()); - exports.DoWhileStatement = DoWhileStatement; - var EmptyStatement = (function () { - function EmptyStatement() { - this.type = syntax_1.Syntax.EmptyStatement; - } - return EmptyStatement; - }()); - exports.EmptyStatement = EmptyStatement; - var ExportAllDeclaration = (function () { - function ExportAllDeclaration(source) { - this.type = syntax_1.Syntax.ExportAllDeclaration; - this.source = source; - } - return ExportAllDeclaration; - }()); - exports.ExportAllDeclaration = ExportAllDeclaration; - var ExportDefaultDeclaration = (function () { - function ExportDefaultDeclaration(declaration) { - this.type = syntax_1.Syntax.ExportDefaultDeclaration; - this.declaration = declaration; - } - return ExportDefaultDeclaration; - }()); - exports.ExportDefaultDeclaration = ExportDefaultDeclaration; - var ExportNamedDeclaration = (function () { - function ExportNamedDeclaration(declaration, specifiers, source) { - this.type = syntax_1.Syntax.ExportNamedDeclaration; - this.declaration = declaration; - this.specifiers = specifiers; - this.source = source; - } - return ExportNamedDeclaration; - }()); - exports.ExportNamedDeclaration = ExportNamedDeclaration; - var ExportSpecifier = (function () { - function ExportSpecifier(local, exported) { - this.type = syntax_1.Syntax.ExportSpecifier; - this.exported = exported; - this.local = local; - } - return ExportSpecifier; - }()); - exports.ExportSpecifier = ExportSpecifier; - var ExpressionStatement = (function () { - function ExpressionStatement(expression) { - this.type = syntax_1.Syntax.ExpressionStatement; - this.expression = expression; - } - return ExpressionStatement; - }()); - exports.ExpressionStatement = ExpressionStatement; - var ForInStatement = (function () { - function ForInStatement(left, right, body) { - this.type = syntax_1.Syntax.ForInStatement; - this.left = left; - this.right = right; - this.body = body; - this.each = false; - } - return ForInStatement; - }()); - exports.ForInStatement = ForInStatement; - var ForOfStatement = (function () { - function ForOfStatement(left, right, body) { - this.type = syntax_1.Syntax.ForOfStatement; - this.left = left; - this.right = right; - this.body = body; - } - return ForOfStatement; - }()); - exports.ForOfStatement = ForOfStatement; - var ForStatement = (function () { - function ForStatement(init, test, update, body) { - this.type = syntax_1.Syntax.ForStatement; - this.init = init; - this.test = test; - this.update = update; - this.body = body; - } - return ForStatement; - }()); - exports.ForStatement = ForStatement; - var FunctionDeclaration = (function () { - function FunctionDeclaration(id, params, body, generator) { - this.type = syntax_1.Syntax.FunctionDeclaration; - this.id = id; - this.params = params; - this.body = body; - this.generator = generator; - this.expression = false; - this.async = false; - } - return FunctionDeclaration; - }()); - exports.FunctionDeclaration = FunctionDeclaration; - var FunctionExpression = (function () { - function FunctionExpression(id, params, body, generator) { - this.type = syntax_1.Syntax.FunctionExpression; - this.id = id; - this.params = params; - this.body = body; - this.generator = generator; - this.expression = false; - this.async = false; - } - return FunctionExpression; - }()); - exports.FunctionExpression = FunctionExpression; - var Identifier = (function () { - function Identifier(name) { - this.type = syntax_1.Syntax.Identifier; - this.name = name; - } - return Identifier; - }()); - exports.Identifier = Identifier; - var IfStatement = (function () { - function IfStatement(test, consequent, alternate) { - this.type = syntax_1.Syntax.IfStatement; - this.test = test; - this.consequent = consequent; - this.alternate = alternate; - } - return IfStatement; - }()); - exports.IfStatement = IfStatement; - var ImportDeclaration = (function () { - function ImportDeclaration(specifiers, source) { - this.type = syntax_1.Syntax.ImportDeclaration; - this.specifiers = specifiers; - this.source = source; - } - return ImportDeclaration; - }()); - exports.ImportDeclaration = ImportDeclaration; - var ImportDefaultSpecifier = (function () { - function ImportDefaultSpecifier(local) { - this.type = syntax_1.Syntax.ImportDefaultSpecifier; - this.local = local; - } - return ImportDefaultSpecifier; - }()); - exports.ImportDefaultSpecifier = ImportDefaultSpecifier; - var ImportNamespaceSpecifier = (function () { - function ImportNamespaceSpecifier(local) { - this.type = syntax_1.Syntax.ImportNamespaceSpecifier; - this.local = local; - } - return ImportNamespaceSpecifier; - }()); - exports.ImportNamespaceSpecifier = ImportNamespaceSpecifier; - var ImportSpecifier = (function () { - function ImportSpecifier(local, imported) { - this.type = syntax_1.Syntax.ImportSpecifier; - this.local = local; - this.imported = imported; - } - return ImportSpecifier; - }()); - exports.ImportSpecifier = ImportSpecifier; - var LabeledStatement = (function () { - function LabeledStatement(label, body) { - this.type = syntax_1.Syntax.LabeledStatement; - this.label = label; - this.body = body; - } - return LabeledStatement; - }()); - exports.LabeledStatement = LabeledStatement; - var Literal = (function () { - function Literal(value, raw) { - this.type = syntax_1.Syntax.Literal; - this.value = value; - this.raw = raw; - } - return Literal; - }()); - exports.Literal = Literal; - var MetaProperty = (function () { - function MetaProperty(meta, property) { - this.type = syntax_1.Syntax.MetaProperty; - this.meta = meta; - this.property = property; - } - return MetaProperty; - }()); - exports.MetaProperty = MetaProperty; - var MethodDefinition = (function () { - function MethodDefinition(key, computed, value, kind, isStatic) { - this.type = syntax_1.Syntax.MethodDefinition; - this.key = key; - this.computed = computed; - this.value = value; - this.kind = kind; - this.static = isStatic; - } - return MethodDefinition; - }()); - exports.MethodDefinition = MethodDefinition; - var Module = (function () { - function Module(body) { - this.type = syntax_1.Syntax.Program; - this.body = body; - this.sourceType = 'module'; - } - return Module; - }()); - exports.Module = Module; - var NewExpression = (function () { - function NewExpression(callee, args) { - this.type = syntax_1.Syntax.NewExpression; - this.callee = callee; - this.arguments = args; - } - return NewExpression; - }()); - exports.NewExpression = NewExpression; - var ObjectExpression = (function () { - function ObjectExpression(properties) { - this.type = syntax_1.Syntax.ObjectExpression; - this.properties = properties; - } - return ObjectExpression; - }()); - exports.ObjectExpression = ObjectExpression; - var ObjectPattern = (function () { - function ObjectPattern(properties) { - this.type = syntax_1.Syntax.ObjectPattern; - this.properties = properties; - } - return ObjectPattern; - }()); - exports.ObjectPattern = ObjectPattern; - var Property = (function () { - function Property(kind, key, computed, value, method, shorthand) { - this.type = syntax_1.Syntax.Property; - this.key = key; - this.computed = computed; - this.value = value; - this.kind = kind; - this.method = method; - this.shorthand = shorthand; - } - return Property; - }()); - exports.Property = Property; - var RegexLiteral = (function () { - function RegexLiteral(value, raw, pattern, flags) { - this.type = syntax_1.Syntax.Literal; - this.value = value; - this.raw = raw; - this.regex = { pattern: pattern, flags: flags }; - } - return RegexLiteral; - }()); - exports.RegexLiteral = RegexLiteral; - var RestElement = (function () { - function RestElement(argument) { - this.type = syntax_1.Syntax.RestElement; - this.argument = argument; - } - return RestElement; - }()); - exports.RestElement = RestElement; - var ReturnStatement = (function () { - function ReturnStatement(argument) { - this.type = syntax_1.Syntax.ReturnStatement; - this.argument = argument; - } - return ReturnStatement; - }()); - exports.ReturnStatement = ReturnStatement; - var Script = (function () { - function Script(body) { - this.type = syntax_1.Syntax.Program; - this.body = body; - this.sourceType = 'script'; - } - return Script; - }()); - exports.Script = Script; - var SequenceExpression = (function () { - function SequenceExpression(expressions) { - this.type = syntax_1.Syntax.SequenceExpression; - this.expressions = expressions; - } - return SequenceExpression; - }()); - exports.SequenceExpression = SequenceExpression; - var SpreadElement = (function () { - function SpreadElement(argument) { - this.type = syntax_1.Syntax.SpreadElement; - this.argument = argument; - } - return SpreadElement; - }()); - exports.SpreadElement = SpreadElement; - var StaticMemberExpression = (function () { - function StaticMemberExpression(object, property) { - this.type = syntax_1.Syntax.MemberExpression; - this.computed = false; - this.object = object; - this.property = property; - } - return StaticMemberExpression; - }()); - exports.StaticMemberExpression = StaticMemberExpression; - var Super = (function () { - function Super() { - this.type = syntax_1.Syntax.Super; - } - return Super; - }()); - exports.Super = Super; - var SwitchCase = (function () { - function SwitchCase(test, consequent) { - this.type = syntax_1.Syntax.SwitchCase; - this.test = test; - this.consequent = consequent; - } - return SwitchCase; - }()); - exports.SwitchCase = SwitchCase; - var SwitchStatement = (function () { - function SwitchStatement(discriminant, cases) { - this.type = syntax_1.Syntax.SwitchStatement; - this.discriminant = discriminant; - this.cases = cases; - } - return SwitchStatement; - }()); - exports.SwitchStatement = SwitchStatement; - var TaggedTemplateExpression = (function () { - function TaggedTemplateExpression(tag, quasi) { - this.type = syntax_1.Syntax.TaggedTemplateExpression; - this.tag = tag; - this.quasi = quasi; - } - return TaggedTemplateExpression; - }()); - exports.TaggedTemplateExpression = TaggedTemplateExpression; - var TemplateElement = (function () { - function TemplateElement(value, tail) { - this.type = syntax_1.Syntax.TemplateElement; - this.value = value; - this.tail = tail; - } - return TemplateElement; - }()); - exports.TemplateElement = TemplateElement; - var TemplateLiteral = (function () { - function TemplateLiteral(quasis, expressions) { - this.type = syntax_1.Syntax.TemplateLiteral; - this.quasis = quasis; - this.expressions = expressions; - } - return TemplateLiteral; - }()); - exports.TemplateLiteral = TemplateLiteral; - var ThisExpression = (function () { - function ThisExpression() { - this.type = syntax_1.Syntax.ThisExpression; - } - return ThisExpression; - }()); - exports.ThisExpression = ThisExpression; - var ThrowStatement = (function () { - function ThrowStatement(argument) { - this.type = syntax_1.Syntax.ThrowStatement; - this.argument = argument; - } - return ThrowStatement; - }()); - exports.ThrowStatement = ThrowStatement; - var TryStatement = (function () { - function TryStatement(block, handler, finalizer) { - this.type = syntax_1.Syntax.TryStatement; - this.block = block; - this.handler = handler; - this.finalizer = finalizer; - } - return TryStatement; - }()); - exports.TryStatement = TryStatement; - var UnaryExpression = (function () { - function UnaryExpression(operator, argument) { - this.type = syntax_1.Syntax.UnaryExpression; - this.operator = operator; - this.argument = argument; - this.prefix = true; - } - return UnaryExpression; - }()); - exports.UnaryExpression = UnaryExpression; - var UpdateExpression = (function () { - function UpdateExpression(operator, argument, prefix) { - this.type = syntax_1.Syntax.UpdateExpression; - this.operator = operator; - this.argument = argument; - this.prefix = prefix; - } - return UpdateExpression; - }()); - exports.UpdateExpression = UpdateExpression; - var VariableDeclaration = (function () { - function VariableDeclaration(declarations, kind) { - this.type = syntax_1.Syntax.VariableDeclaration; - this.declarations = declarations; - this.kind = kind; - } - return VariableDeclaration; - }()); - exports.VariableDeclaration = VariableDeclaration; - var VariableDeclarator = (function () { - function VariableDeclarator(id, init) { - this.type = syntax_1.Syntax.VariableDeclarator; - this.id = id; - this.init = init; - } - return VariableDeclarator; - }()); - exports.VariableDeclarator = VariableDeclarator; - var WhileStatement = (function () { - function WhileStatement(test, body) { - this.type = syntax_1.Syntax.WhileStatement; - this.test = test; - this.body = body; - } - return WhileStatement; - }()); - exports.WhileStatement = WhileStatement; - var WithStatement = (function () { - function WithStatement(object, body) { - this.type = syntax_1.Syntax.WithStatement; - this.object = object; - this.body = body; - } - return WithStatement; - }()); - exports.WithStatement = WithStatement; - var YieldExpression = (function () { - function YieldExpression(argument, delegate) { - this.type = syntax_1.Syntax.YieldExpression; - this.argument = argument; - this.delegate = delegate; - } - return YieldExpression; - }()); - exports.YieldExpression = YieldExpression; - - -/***/ }, -/* 8 */ -/***/ function(module, exports, __nested_webpack_require_80491__) { - - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - var assert_1 = __nested_webpack_require_80491__(9); - var error_handler_1 = __nested_webpack_require_80491__(10); - var messages_1 = __nested_webpack_require_80491__(11); - var Node = __nested_webpack_require_80491__(7); - var scanner_1 = __nested_webpack_require_80491__(12); - var syntax_1 = __nested_webpack_require_80491__(2); - var token_1 = __nested_webpack_require_80491__(13); - var ArrowParameterPlaceHolder = 'ArrowParameterPlaceHolder'; - var Parser = (function () { - function Parser(code, options, delegate) { - if (options === void 0) { options = {}; } - this.config = { - range: (typeof options.range === 'boolean') && options.range, - loc: (typeof options.loc === 'boolean') && options.loc, - source: null, - tokens: (typeof options.tokens === 'boolean') && options.tokens, - comment: (typeof options.comment === 'boolean') && options.comment, - tolerant: (typeof options.tolerant === 'boolean') && options.tolerant - }; - if (this.config.loc && options.source && options.source !== null) { - this.config.source = String(options.source); - } - this.delegate = delegate; - this.errorHandler = new error_handler_1.ErrorHandler(); - this.errorHandler.tolerant = this.config.tolerant; - this.scanner = new scanner_1.Scanner(code, this.errorHandler); - this.scanner.trackComment = this.config.comment; - this.operatorPrecedence = { - ')': 0, - ';': 0, - ',': 0, - '=': 0, - ']': 0, - '||': 1, - '&&': 2, - '|': 3, - '^': 4, - '&': 5, - '==': 6, - '!=': 6, - '===': 6, - '!==': 6, - '<': 7, - '>': 7, - '<=': 7, - '>=': 7, - '<<': 8, - '>>': 8, - '>>>': 8, - '+': 9, - '-': 9, - '*': 11, - '/': 11, - '%': 11 - }; - this.lookahead = { - type: 2 /* EOF */, - value: '', - lineNumber: this.scanner.lineNumber, - lineStart: 0, - start: 0, - end: 0 - }; - this.hasLineTerminator = false; - this.context = { - isModule: false, - await: false, - allowIn: true, - allowStrictDirective: true, - allowYield: true, - firstCoverInitializedNameError: null, - isAssignmentTarget: false, - isBindingElement: false, - inFunctionBody: false, - inIteration: false, - inSwitch: false, - labelSet: {}, - strict: false - }; - this.tokens = []; - this.startMarker = { - index: 0, - line: this.scanner.lineNumber, - column: 0 - }; - this.lastMarker = { - index: 0, - line: this.scanner.lineNumber, - column: 0 - }; - this.nextToken(); - this.lastMarker = { - index: this.scanner.index, - line: this.scanner.lineNumber, - column: this.scanner.index - this.scanner.lineStart - }; - } - Parser.prototype.throwError = function (messageFormat) { - var values = []; - for (var _i = 1; _i < arguments.length; _i++) { - values[_i - 1] = arguments[_i]; - } - var args = Array.prototype.slice.call(arguments, 1); - var msg = messageFormat.replace(/%(\d)/g, function (whole, idx) { - assert_1.assert(idx < args.length, 'Message reference must be in range'); - return args[idx]; - }); - var index = this.lastMarker.index; - var line = this.lastMarker.line; - var column = this.lastMarker.column + 1; - throw this.errorHandler.createError(index, line, column, msg); - }; - Parser.prototype.tolerateError = function (messageFormat) { - var values = []; - for (var _i = 1; _i < arguments.length; _i++) { - values[_i - 1] = arguments[_i]; - } - var args = Array.prototype.slice.call(arguments, 1); - var msg = messageFormat.replace(/%(\d)/g, function (whole, idx) { - assert_1.assert(idx < args.length, 'Message reference must be in range'); - return args[idx]; - }); - var index = this.lastMarker.index; - var line = this.scanner.lineNumber; - var column = this.lastMarker.column + 1; - this.errorHandler.tolerateError(index, line, column, msg); - }; - // Throw an exception because of the token. - Parser.prototype.unexpectedTokenError = function (token, message) { - var msg = message || messages_1.Messages.UnexpectedToken; - var value; - if (token) { - if (!message) { - msg = (token.type === 2 /* EOF */) ? messages_1.Messages.UnexpectedEOS : - (token.type === 3 /* Identifier */) ? messages_1.Messages.UnexpectedIdentifier : - (token.type === 6 /* NumericLiteral */) ? messages_1.Messages.UnexpectedNumber : - (token.type === 8 /* StringLiteral */) ? messages_1.Messages.UnexpectedString : - (token.type === 10 /* Template */) ? messages_1.Messages.UnexpectedTemplate : - messages_1.Messages.UnexpectedToken; - if (token.type === 4 /* Keyword */) { - if (this.scanner.isFutureReservedWord(token.value)) { - msg = messages_1.Messages.UnexpectedReserved; - } - else if (this.context.strict && this.scanner.isStrictModeReservedWord(token.value)) { - msg = messages_1.Messages.StrictReservedWord; - } - } - } - value = token.value; - } - else { - value = 'ILLEGAL'; - } - msg = msg.replace('%0', value); - if (token && typeof token.lineNumber === 'number') { - var index = token.start; - var line = token.lineNumber; - var lastMarkerLineStart = this.lastMarker.index - this.lastMarker.column; - var column = token.start - lastMarkerLineStart + 1; - return this.errorHandler.createError(index, line, column, msg); - } - else { - var index = this.lastMarker.index; - var line = this.lastMarker.line; - var column = this.lastMarker.column + 1; - return this.errorHandler.createError(index, line, column, msg); - } - }; - Parser.prototype.throwUnexpectedToken = function (token, message) { - throw this.unexpectedTokenError(token, message); - }; - Parser.prototype.tolerateUnexpectedToken = function (token, message) { - this.errorHandler.tolerate(this.unexpectedTokenError(token, message)); - }; - Parser.prototype.collectComments = function () { - if (!this.config.comment) { - this.scanner.scanComments(); - } - else { - var comments = this.scanner.scanComments(); - if (comments.length > 0 && this.delegate) { - for (var i = 0; i < comments.length; ++i) { - var e = comments[i]; - var node = void 0; - node = { - type: e.multiLine ? 'BlockComment' : 'LineComment', - value: this.scanner.source.slice(e.slice[0], e.slice[1]) - }; - if (this.config.range) { - node.range = e.range; - } - if (this.config.loc) { - node.loc = e.loc; - } - var metadata = { - start: { - line: e.loc.start.line, - column: e.loc.start.column, - offset: e.range[0] - }, - end: { - line: e.loc.end.line, - column: e.loc.end.column, - offset: e.range[1] - } - }; - this.delegate(node, metadata); - } - } - } - }; - // From internal representation to an external structure - Parser.prototype.getTokenRaw = function (token) { - return this.scanner.source.slice(token.start, token.end); - }; - Parser.prototype.convertToken = function (token) { - var t = { - type: token_1.TokenName[token.type], - value: this.getTokenRaw(token) - }; - if (this.config.range) { - t.range = [token.start, token.end]; - } - if (this.config.loc) { - t.loc = { - start: { - line: this.startMarker.line, - column: this.startMarker.column - }, - end: { - line: this.scanner.lineNumber, - column: this.scanner.index - this.scanner.lineStart - } - }; - } - if (token.type === 9 /* RegularExpression */) { - var pattern = token.pattern; - var flags = token.flags; - t.regex = { pattern: pattern, flags: flags }; - } - return t; - }; - Parser.prototype.nextToken = function () { - var token = this.lookahead; - this.lastMarker.index = this.scanner.index; - this.lastMarker.line = this.scanner.lineNumber; - this.lastMarker.column = this.scanner.index - this.scanner.lineStart; - this.collectComments(); - if (this.scanner.index !== this.startMarker.index) { - this.startMarker.index = this.scanner.index; - this.startMarker.line = this.scanner.lineNumber; - this.startMarker.column = this.scanner.index - this.scanner.lineStart; - } - var next = this.scanner.lex(); - this.hasLineTerminator = (token.lineNumber !== next.lineNumber); - if (next && this.context.strict && next.type === 3 /* Identifier */) { - if (this.scanner.isStrictModeReservedWord(next.value)) { - next.type = 4 /* Keyword */; - } - } - this.lookahead = next; - if (this.config.tokens && next.type !== 2 /* EOF */) { - this.tokens.push(this.convertToken(next)); - } - return token; - }; - Parser.prototype.nextRegexToken = function () { - this.collectComments(); - var token = this.scanner.scanRegExp(); - if (this.config.tokens) { - // Pop the previous token, '/' or '/=' - // This is added from the lookahead token. - this.tokens.pop(); - this.tokens.push(this.convertToken(token)); - } - // Prime the next lookahead. - this.lookahead = token; - this.nextToken(); - return token; - }; - Parser.prototype.createNode = function () { - return { - index: this.startMarker.index, - line: this.startMarker.line, - column: this.startMarker.column - }; - }; - Parser.prototype.startNode = function (token, lastLineStart) { - if (lastLineStart === void 0) { lastLineStart = 0; } - var column = token.start - token.lineStart; - var line = token.lineNumber; - if (column < 0) { - column += lastLineStart; - line--; - } - return { - index: token.start, - line: line, - column: column - }; - }; - Parser.prototype.finalize = function (marker, node) { - if (this.config.range) { - node.range = [marker.index, this.lastMarker.index]; - } - if (this.config.loc) { - node.loc = { - start: { - line: marker.line, - column: marker.column, - }, - end: { - line: this.lastMarker.line, - column: this.lastMarker.column - } - }; - if (this.config.source) { - node.loc.source = this.config.source; - } - } - if (this.delegate) { - var metadata = { - start: { - line: marker.line, - column: marker.column, - offset: marker.index - }, - end: { - line: this.lastMarker.line, - column: this.lastMarker.column, - offset: this.lastMarker.index - } - }; - this.delegate(node, metadata); - } - return node; - }; - // Expect the next token to match the specified punctuator. - // If not, an exception will be thrown. - Parser.prototype.expect = function (value) { - var token = this.nextToken(); - if (token.type !== 7 /* Punctuator */ || token.value !== value) { - this.throwUnexpectedToken(token); - } - }; - // Quietly expect a comma when in tolerant mode, otherwise delegates to expect(). - Parser.prototype.expectCommaSeparator = function () { - if (this.config.tolerant) { - var token = this.lookahead; - if (token.type === 7 /* Punctuator */ && token.value === ',') { - this.nextToken(); - } - else if (token.type === 7 /* Punctuator */ && token.value === ';') { - this.nextToken(); - this.tolerateUnexpectedToken(token); - } - else { - this.tolerateUnexpectedToken(token, messages_1.Messages.UnexpectedToken); - } - } - else { - this.expect(','); - } - }; - // Expect the next token to match the specified keyword. - // If not, an exception will be thrown. - Parser.prototype.expectKeyword = function (keyword) { - var token = this.nextToken(); - if (token.type !== 4 /* Keyword */ || token.value !== keyword) { - this.throwUnexpectedToken(token); - } - }; - // Return true if the next token matches the specified punctuator. - Parser.prototype.match = function (value) { - return this.lookahead.type === 7 /* Punctuator */ && this.lookahead.value === value; - }; - // Return true if the next token matches the specified keyword - Parser.prototype.matchKeyword = function (keyword) { - return this.lookahead.type === 4 /* Keyword */ && this.lookahead.value === keyword; - }; - // Return true if the next token matches the specified contextual keyword - // (where an identifier is sometimes a keyword depending on the context) - Parser.prototype.matchContextualKeyword = function (keyword) { - return this.lookahead.type === 3 /* Identifier */ && this.lookahead.value === keyword; - }; - // Return true if the next token is an assignment operator - Parser.prototype.matchAssign = function () { - if (this.lookahead.type !== 7 /* Punctuator */) { - return false; - } - var op = this.lookahead.value; - return op === '=' || - op === '*=' || - op === '**=' || - op === '/=' || - op === '%=' || - op === '+=' || - op === '-=' || - op === '<<=' || - op === '>>=' || - op === '>>>=' || - op === '&=' || - op === '^=' || - op === '|='; - }; - // Cover grammar support. - // - // When an assignment expression position starts with an left parenthesis, the determination of the type - // of the syntax is to be deferred arbitrarily long until the end of the parentheses pair (plus a lookahead) - // or the first comma. This situation also defers the determination of all the expressions nested in the pair. - // - // There are three productions that can be parsed in a parentheses pair that needs to be determined - // after the outermost pair is closed. They are: - // - // 1. AssignmentExpression - // 2. BindingElements - // 3. AssignmentTargets - // - // In order to avoid exponential backtracking, we use two flags to denote if the production can be - // binding element or assignment target. - // - // The three productions have the relationship: - // - // BindingElements ⊆ AssignmentTargets ⊆ AssignmentExpression - // - // with a single exception that CoverInitializedName when used directly in an Expression, generates - // an early error. Therefore, we need the third state, firstCoverInitializedNameError, to track the - // first usage of CoverInitializedName and report it when we reached the end of the parentheses pair. - // - // isolateCoverGrammar function runs the given parser function with a new cover grammar context, and it does not - // effect the current flags. This means the production the parser parses is only used as an expression. Therefore - // the CoverInitializedName check is conducted. - // - // inheritCoverGrammar function runs the given parse function with a new cover grammar context, and it propagates - // the flags outside of the parser. This means the production the parser parses is used as a part of a potential - // pattern. The CoverInitializedName check is deferred. - Parser.prototype.isolateCoverGrammar = function (parseFunction) { - var previousIsBindingElement = this.context.isBindingElement; - var previousIsAssignmentTarget = this.context.isAssignmentTarget; - var previousFirstCoverInitializedNameError = this.context.firstCoverInitializedNameError; - this.context.isBindingElement = true; - this.context.isAssignmentTarget = true; - this.context.firstCoverInitializedNameError = null; - var result = parseFunction.call(this); - if (this.context.firstCoverInitializedNameError !== null) { - this.throwUnexpectedToken(this.context.firstCoverInitializedNameError); - } - this.context.isBindingElement = previousIsBindingElement; - this.context.isAssignmentTarget = previousIsAssignmentTarget; - this.context.firstCoverInitializedNameError = previousFirstCoverInitializedNameError; - return result; - }; - Parser.prototype.inheritCoverGrammar = function (parseFunction) { - var previousIsBindingElement = this.context.isBindingElement; - var previousIsAssignmentTarget = this.context.isAssignmentTarget; - var previousFirstCoverInitializedNameError = this.context.firstCoverInitializedNameError; - this.context.isBindingElement = true; - this.context.isAssignmentTarget = true; - this.context.firstCoverInitializedNameError = null; - var result = parseFunction.call(this); - this.context.isBindingElement = this.context.isBindingElement && previousIsBindingElement; - this.context.isAssignmentTarget = this.context.isAssignmentTarget && previousIsAssignmentTarget; - this.context.firstCoverInitializedNameError = previousFirstCoverInitializedNameError || this.context.firstCoverInitializedNameError; - return result; - }; - Parser.prototype.consumeSemicolon = function () { - if (this.match(';')) { - this.nextToken(); - } - else if (!this.hasLineTerminator) { - if (this.lookahead.type !== 2 /* EOF */ && !this.match('}')) { - this.throwUnexpectedToken(this.lookahead); - } - this.lastMarker.index = this.startMarker.index; - this.lastMarker.line = this.startMarker.line; - this.lastMarker.column = this.startMarker.column; - } - }; - // https://tc39.github.io/ecma262/#sec-primary-expression - Parser.prototype.parsePrimaryExpression = function () { - var node = this.createNode(); - var expr; - var token, raw; - switch (this.lookahead.type) { - case 3 /* Identifier */: - if ((this.context.isModule || this.context.await) && this.lookahead.value === 'await') { - this.tolerateUnexpectedToken(this.lookahead); - } - expr = this.matchAsyncFunction() ? this.parseFunctionExpression() : this.finalize(node, new Node.Identifier(this.nextToken().value)); - break; - case 6 /* NumericLiteral */: - case 8 /* StringLiteral */: - if (this.context.strict && this.lookahead.octal) { - this.tolerateUnexpectedToken(this.lookahead, messages_1.Messages.StrictOctalLiteral); - } - this.context.isAssignmentTarget = false; - this.context.isBindingElement = false; - token = this.nextToken(); - raw = this.getTokenRaw(token); - expr = this.finalize(node, new Node.Literal(token.value, raw)); - break; - case 1 /* BooleanLiteral */: - this.context.isAssignmentTarget = false; - this.context.isBindingElement = false; - token = this.nextToken(); - raw = this.getTokenRaw(token); - expr = this.finalize(node, new Node.Literal(token.value === 'true', raw)); - break; - case 5 /* NullLiteral */: - this.context.isAssignmentTarget = false; - this.context.isBindingElement = false; - token = this.nextToken(); - raw = this.getTokenRaw(token); - expr = this.finalize(node, new Node.Literal(null, raw)); - break; - case 10 /* Template */: - expr = this.parseTemplateLiteral(); - break; - case 7 /* Punctuator */: - switch (this.lookahead.value) { - case '(': - this.context.isBindingElement = false; - expr = this.inheritCoverGrammar(this.parseGroupExpression); - break; - case '[': - expr = this.inheritCoverGrammar(this.parseArrayInitializer); - break; - case '{': - expr = this.inheritCoverGrammar(this.parseObjectInitializer); - break; - case '/': - case '/=': - this.context.isAssignmentTarget = false; - this.context.isBindingElement = false; - this.scanner.index = this.startMarker.index; - token = this.nextRegexToken(); - raw = this.getTokenRaw(token); - expr = this.finalize(node, new Node.RegexLiteral(token.regex, raw, token.pattern, token.flags)); - break; - default: - expr = this.throwUnexpectedToken(this.nextToken()); - } - break; - case 4 /* Keyword */: - if (!this.context.strict && this.context.allowYield && this.matchKeyword('yield')) { - expr = this.parseIdentifierName(); - } - else if (!this.context.strict && this.matchKeyword('let')) { - expr = this.finalize(node, new Node.Identifier(this.nextToken().value)); - } - else { - this.context.isAssignmentTarget = false; - this.context.isBindingElement = false; - if (this.matchKeyword('function')) { - expr = this.parseFunctionExpression(); - } - else if (this.matchKeyword('this')) { - this.nextToken(); - expr = this.finalize(node, new Node.ThisExpression()); - } - else if (this.matchKeyword('class')) { - expr = this.parseClassExpression(); - } - else { - expr = this.throwUnexpectedToken(this.nextToken()); - } - } - break; - default: - expr = this.throwUnexpectedToken(this.nextToken()); - } - return expr; - }; - // https://tc39.github.io/ecma262/#sec-array-initializer - Parser.prototype.parseSpreadElement = function () { - var node = this.createNode(); - this.expect('...'); - var arg = this.inheritCoverGrammar(this.parseAssignmentExpression); - return this.finalize(node, new Node.SpreadElement(arg)); - }; - Parser.prototype.parseArrayInitializer = function () { - var node = this.createNode(); - var elements = []; - this.expect('['); - while (!this.match(']')) { - if (this.match(',')) { - this.nextToken(); - elements.push(null); - } - else if (this.match('...')) { - var element = this.parseSpreadElement(); - if (!this.match(']')) { - this.context.isAssignmentTarget = false; - this.context.isBindingElement = false; - this.expect(','); - } - elements.push(element); - } - else { - elements.push(this.inheritCoverGrammar(this.parseAssignmentExpression)); - if (!this.match(']')) { - this.expect(','); - } - } - } - this.expect(']'); - return this.finalize(node, new Node.ArrayExpression(elements)); - }; - // https://tc39.github.io/ecma262/#sec-object-initializer - Parser.prototype.parsePropertyMethod = function (params) { - this.context.isAssignmentTarget = false; - this.context.isBindingElement = false; - var previousStrict = this.context.strict; - var previousAllowStrictDirective = this.context.allowStrictDirective; - this.context.allowStrictDirective = params.simple; - var body = this.isolateCoverGrammar(this.parseFunctionSourceElements); - if (this.context.strict && params.firstRestricted) { - this.tolerateUnexpectedToken(params.firstRestricted, params.message); - } - if (this.context.strict && params.stricted) { - this.tolerateUnexpectedToken(params.stricted, params.message); - } - this.context.strict = previousStrict; - this.context.allowStrictDirective = previousAllowStrictDirective; - return body; - }; - Parser.prototype.parsePropertyMethodFunction = function () { - var isGenerator = false; - var node = this.createNode(); - var previousAllowYield = this.context.allowYield; - this.context.allowYield = true; - var params = this.parseFormalParameters(); - var method = this.parsePropertyMethod(params); - this.context.allowYield = previousAllowYield; - return this.finalize(node, new Node.FunctionExpression(null, params.params, method, isGenerator)); - }; - Parser.prototype.parsePropertyMethodAsyncFunction = function () { - var node = this.createNode(); - var previousAllowYield = this.context.allowYield; - var previousAwait = this.context.await; - this.context.allowYield = false; - this.context.await = true; - var params = this.parseFormalParameters(); - var method = this.parsePropertyMethod(params); - this.context.allowYield = previousAllowYield; - this.context.await = previousAwait; - return this.finalize(node, new Node.AsyncFunctionExpression(null, params.params, method)); - }; - Parser.prototype.parseObjectPropertyKey = function () { - var node = this.createNode(); - var token = this.nextToken(); - var key; - switch (token.type) { - case 8 /* StringLiteral */: - case 6 /* NumericLiteral */: - if (this.context.strict && token.octal) { - this.tolerateUnexpectedToken(token, messages_1.Messages.StrictOctalLiteral); - } - var raw = this.getTokenRaw(token); - key = this.finalize(node, new Node.Literal(token.value, raw)); - break; - case 3 /* Identifier */: - case 1 /* BooleanLiteral */: - case 5 /* NullLiteral */: - case 4 /* Keyword */: - key = this.finalize(node, new Node.Identifier(token.value)); - break; - case 7 /* Punctuator */: - if (token.value === '[') { - key = this.isolateCoverGrammar(this.parseAssignmentExpression); - this.expect(']'); - } - else { - key = this.throwUnexpectedToken(token); - } - break; - default: - key = this.throwUnexpectedToken(token); - } - return key; - }; - Parser.prototype.isPropertyKey = function (key, value) { - return (key.type === syntax_1.Syntax.Identifier && key.name === value) || - (key.type === syntax_1.Syntax.Literal && key.value === value); - }; - Parser.prototype.parseObjectProperty = function (hasProto) { - var node = this.createNode(); - var token = this.lookahead; - var kind; - var key = null; - var value = null; - var computed = false; - var method = false; - var shorthand = false; - var isAsync = false; - if (token.type === 3 /* Identifier */) { - var id = token.value; - this.nextToken(); - computed = this.match('['); - isAsync = !this.hasLineTerminator && (id === 'async') && - !this.match(':') && !this.match('(') && !this.match('*') && !this.match(','); - key = isAsync ? this.parseObjectPropertyKey() : this.finalize(node, new Node.Identifier(id)); - } - else if (this.match('*')) { - this.nextToken(); - } - else { - computed = this.match('['); - key = this.parseObjectPropertyKey(); - } - var lookaheadPropertyKey = this.qualifiedPropertyName(this.lookahead); - if (token.type === 3 /* Identifier */ && !isAsync && token.value === 'get' && lookaheadPropertyKey) { - kind = 'get'; - computed = this.match('['); - key = this.parseObjectPropertyKey(); - this.context.allowYield = false; - value = this.parseGetterMethod(); - } - else if (token.type === 3 /* Identifier */ && !isAsync && token.value === 'set' && lookaheadPropertyKey) { - kind = 'set'; - computed = this.match('['); - key = this.parseObjectPropertyKey(); - value = this.parseSetterMethod(); - } - else if (token.type === 7 /* Punctuator */ && token.value === '*' && lookaheadPropertyKey) { - kind = 'init'; - computed = this.match('['); - key = this.parseObjectPropertyKey(); - value = this.parseGeneratorMethod(); - method = true; - } - else { - if (!key) { - this.throwUnexpectedToken(this.lookahead); - } - kind = 'init'; - if (this.match(':') && !isAsync) { - if (!computed && this.isPropertyKey(key, '__proto__')) { - if (hasProto.value) { - this.tolerateError(messages_1.Messages.DuplicateProtoProperty); - } - hasProto.value = true; - } - this.nextToken(); - value = this.inheritCoverGrammar(this.parseAssignmentExpression); - } - else if (this.match('(')) { - value = isAsync ? this.parsePropertyMethodAsyncFunction() : this.parsePropertyMethodFunction(); - method = true; - } - else if (token.type === 3 /* Identifier */) { - var id = this.finalize(node, new Node.Identifier(token.value)); - if (this.match('=')) { - this.context.firstCoverInitializedNameError = this.lookahead; - this.nextToken(); - shorthand = true; - var init = this.isolateCoverGrammar(this.parseAssignmentExpression); - value = this.finalize(node, new Node.AssignmentPattern(id, init)); - } - else { - shorthand = true; - value = id; - } - } - else { - this.throwUnexpectedToken(this.nextToken()); - } - } - return this.finalize(node, new Node.Property(kind, key, computed, value, method, shorthand)); - }; - Parser.prototype.parseObjectInitializer = function () { - var node = this.createNode(); - this.expect('{'); - var properties = []; - var hasProto = { value: false }; - while (!this.match('}')) { - properties.push(this.parseObjectProperty(hasProto)); - if (!this.match('}')) { - this.expectCommaSeparator(); - } - } - this.expect('}'); - return this.finalize(node, new Node.ObjectExpression(properties)); - }; - // https://tc39.github.io/ecma262/#sec-template-literals - Parser.prototype.parseTemplateHead = function () { - assert_1.assert(this.lookahead.head, 'Template literal must start with a template head'); - var node = this.createNode(); - var token = this.nextToken(); - var raw = token.value; - var cooked = token.cooked; - return this.finalize(node, new Node.TemplateElement({ raw: raw, cooked: cooked }, token.tail)); - }; - Parser.prototype.parseTemplateElement = function () { - if (this.lookahead.type !== 10 /* Template */) { - this.throwUnexpectedToken(); - } - var node = this.createNode(); - var token = this.nextToken(); - var raw = token.value; - var cooked = token.cooked; - return this.finalize(node, new Node.TemplateElement({ raw: raw, cooked: cooked }, token.tail)); - }; - Parser.prototype.parseTemplateLiteral = function () { - var node = this.createNode(); - var expressions = []; - var quasis = []; - var quasi = this.parseTemplateHead(); - quasis.push(quasi); - while (!quasi.tail) { - expressions.push(this.parseExpression()); - quasi = this.parseTemplateElement(); - quasis.push(quasi); - } - return this.finalize(node, new Node.TemplateLiteral(quasis, expressions)); - }; - // https://tc39.github.io/ecma262/#sec-grouping-operator - Parser.prototype.reinterpretExpressionAsPattern = function (expr) { - switch (expr.type) { - case syntax_1.Syntax.Identifier: - case syntax_1.Syntax.MemberExpression: - case syntax_1.Syntax.RestElement: - case syntax_1.Syntax.AssignmentPattern: - break; - case syntax_1.Syntax.SpreadElement: - expr.type = syntax_1.Syntax.RestElement; - this.reinterpretExpressionAsPattern(expr.argument); - break; - case syntax_1.Syntax.ArrayExpression: - expr.type = syntax_1.Syntax.ArrayPattern; - for (var i = 0; i < expr.elements.length; i++) { - if (expr.elements[i] !== null) { - this.reinterpretExpressionAsPattern(expr.elements[i]); - } - } - break; - case syntax_1.Syntax.ObjectExpression: - expr.type = syntax_1.Syntax.ObjectPattern; - for (var i = 0; i < expr.properties.length; i++) { - this.reinterpretExpressionAsPattern(expr.properties[i].value); - } - break; - case syntax_1.Syntax.AssignmentExpression: - expr.type = syntax_1.Syntax.AssignmentPattern; - delete expr.operator; - this.reinterpretExpressionAsPattern(expr.left); - break; - default: - // Allow other node type for tolerant parsing. - break; - } - }; - Parser.prototype.parseGroupExpression = function () { - var expr; - this.expect('('); - if (this.match(')')) { - this.nextToken(); - if (!this.match('=>')) { - this.expect('=>'); - } - expr = { - type: ArrowParameterPlaceHolder, - params: [], - async: false - }; - } - else { - var startToken = this.lookahead; - var params = []; - if (this.match('...')) { - expr = this.parseRestElement(params); - this.expect(')'); - if (!this.match('=>')) { - this.expect('=>'); - } - expr = { - type: ArrowParameterPlaceHolder, - params: [expr], - async: false - }; - } - else { - var arrow = false; - this.context.isBindingElement = true; - expr = this.inheritCoverGrammar(this.parseAssignmentExpression); - if (this.match(',')) { - var expressions = []; - this.context.isAssignmentTarget = false; - expressions.push(expr); - while (this.lookahead.type !== 2 /* EOF */) { - if (!this.match(',')) { - break; - } - this.nextToken(); - if (this.match(')')) { - this.nextToken(); - for (var i = 0; i < expressions.length; i++) { - this.reinterpretExpressionAsPattern(expressions[i]); - } - arrow = true; - expr = { - type: ArrowParameterPlaceHolder, - params: expressions, - async: false - }; - } - else if (this.match('...')) { - if (!this.context.isBindingElement) { - this.throwUnexpectedToken(this.lookahead); - } - expressions.push(this.parseRestElement(params)); - this.expect(')'); - if (!this.match('=>')) { - this.expect('=>'); - } - this.context.isBindingElement = false; - for (var i = 0; i < expressions.length; i++) { - this.reinterpretExpressionAsPattern(expressions[i]); - } - arrow = true; - expr = { - type: ArrowParameterPlaceHolder, - params: expressions, - async: false - }; - } - else { - expressions.push(this.inheritCoverGrammar(this.parseAssignmentExpression)); - } - if (arrow) { - break; - } - } - if (!arrow) { - expr = this.finalize(this.startNode(startToken), new Node.SequenceExpression(expressions)); - } - } - if (!arrow) { - this.expect(')'); - if (this.match('=>')) { - if (expr.type === syntax_1.Syntax.Identifier && expr.name === 'yield') { - arrow = true; - expr = { - type: ArrowParameterPlaceHolder, - params: [expr], - async: false - }; - } - if (!arrow) { - if (!this.context.isBindingElement) { - this.throwUnexpectedToken(this.lookahead); - } - if (expr.type === syntax_1.Syntax.SequenceExpression) { - for (var i = 0; i < expr.expressions.length; i++) { - this.reinterpretExpressionAsPattern(expr.expressions[i]); - } - } - else { - this.reinterpretExpressionAsPattern(expr); - } - var parameters = (expr.type === syntax_1.Syntax.SequenceExpression ? expr.expressions : [expr]); - expr = { - type: ArrowParameterPlaceHolder, - params: parameters, - async: false - }; - } - } - this.context.isBindingElement = false; - } - } - } - return expr; - }; - // https://tc39.github.io/ecma262/#sec-left-hand-side-expressions - Parser.prototype.parseArguments = function () { - this.expect('('); - var args = []; - if (!this.match(')')) { - while (true) { - var expr = this.match('...') ? this.parseSpreadElement() : - this.isolateCoverGrammar(this.parseAssignmentExpression); - args.push(expr); - if (this.match(')')) { - break; - } - this.expectCommaSeparator(); - if (this.match(')')) { - break; - } - } - } - this.expect(')'); - return args; - }; - Parser.prototype.isIdentifierName = function (token) { - return token.type === 3 /* Identifier */ || - token.type === 4 /* Keyword */ || - token.type === 1 /* BooleanLiteral */ || - token.type === 5 /* NullLiteral */; - }; - Parser.prototype.parseIdentifierName = function () { - var node = this.createNode(); - var token = this.nextToken(); - if (!this.isIdentifierName(token)) { - this.throwUnexpectedToken(token); - } - return this.finalize(node, new Node.Identifier(token.value)); - }; - Parser.prototype.parseNewExpression = function () { - var node = this.createNode(); - var id = this.parseIdentifierName(); - assert_1.assert(id.name === 'new', 'New expression must start with `new`'); - var expr; - if (this.match('.')) { - this.nextToken(); - if (this.lookahead.type === 3 /* Identifier */ && this.context.inFunctionBody && this.lookahead.value === 'target') { - var property = this.parseIdentifierName(); - expr = new Node.MetaProperty(id, property); - } - else { - this.throwUnexpectedToken(this.lookahead); - } - } - else { - var callee = this.isolateCoverGrammar(this.parseLeftHandSideExpression); - var args = this.match('(') ? this.parseArguments() : []; - expr = new Node.NewExpression(callee, args); - this.context.isAssignmentTarget = false; - this.context.isBindingElement = false; - } - return this.finalize(node, expr); - }; - Parser.prototype.parseAsyncArgument = function () { - var arg = this.parseAssignmentExpression(); - this.context.firstCoverInitializedNameError = null; - return arg; - }; - Parser.prototype.parseAsyncArguments = function () { - this.expect('('); - var args = []; - if (!this.match(')')) { - while (true) { - var expr = this.match('...') ? this.parseSpreadElement() : - this.isolateCoverGrammar(this.parseAsyncArgument); - args.push(expr); - if (this.match(')')) { - break; - } - this.expectCommaSeparator(); - if (this.match(')')) { - break; - } - } - } - this.expect(')'); - return args; - }; - Parser.prototype.parseLeftHandSideExpressionAllowCall = function () { - var startToken = this.lookahead; - var maybeAsync = this.matchContextualKeyword('async'); - var previousAllowIn = this.context.allowIn; - this.context.allowIn = true; - var expr; - if (this.matchKeyword('super') && this.context.inFunctionBody) { - expr = this.createNode(); - this.nextToken(); - expr = this.finalize(expr, new Node.Super()); - if (!this.match('(') && !this.match('.') && !this.match('[')) { - this.throwUnexpectedToken(this.lookahead); - } - } - else { - expr = this.inheritCoverGrammar(this.matchKeyword('new') ? this.parseNewExpression : this.parsePrimaryExpression); - } - while (true) { - if (this.match('.')) { - this.context.isBindingElement = false; - this.context.isAssignmentTarget = true; - this.expect('.'); - var property = this.parseIdentifierName(); - expr = this.finalize(this.startNode(startToken), new Node.StaticMemberExpression(expr, property)); - } - else if (this.match('(')) { - var asyncArrow = maybeAsync && (startToken.lineNumber === this.lookahead.lineNumber); - this.context.isBindingElement = false; - this.context.isAssignmentTarget = false; - var args = asyncArrow ? this.parseAsyncArguments() : this.parseArguments(); - expr = this.finalize(this.startNode(startToken), new Node.CallExpression(expr, args)); - if (asyncArrow && this.match('=>')) { - for (var i = 0; i < args.length; ++i) { - this.reinterpretExpressionAsPattern(args[i]); - } - expr = { - type: ArrowParameterPlaceHolder, - params: args, - async: true - }; - } - } - else if (this.match('[')) { - this.context.isBindingElement = false; - this.context.isAssignmentTarget = true; - this.expect('['); - var property = this.isolateCoverGrammar(this.parseExpression); - this.expect(']'); - expr = this.finalize(this.startNode(startToken), new Node.ComputedMemberExpression(expr, property)); - } - else if (this.lookahead.type === 10 /* Template */ && this.lookahead.head) { - var quasi = this.parseTemplateLiteral(); - expr = this.finalize(this.startNode(startToken), new Node.TaggedTemplateExpression(expr, quasi)); - } - else { - break; - } - } - this.context.allowIn = previousAllowIn; - return expr; - }; - Parser.prototype.parseSuper = function () { - var node = this.createNode(); - this.expectKeyword('super'); - if (!this.match('[') && !this.match('.')) { - this.throwUnexpectedToken(this.lookahead); - } - return this.finalize(node, new Node.Super()); - }; - Parser.prototype.parseLeftHandSideExpression = function () { - assert_1.assert(this.context.allowIn, 'callee of new expression always allow in keyword.'); - var node = this.startNode(this.lookahead); - var expr = (this.matchKeyword('super') && this.context.inFunctionBody) ? this.parseSuper() : - this.inheritCoverGrammar(this.matchKeyword('new') ? this.parseNewExpression : this.parsePrimaryExpression); - while (true) { - if (this.match('[')) { - this.context.isBindingElement = false; - this.context.isAssignmentTarget = true; - this.expect('['); - var property = this.isolateCoverGrammar(this.parseExpression); - this.expect(']'); - expr = this.finalize(node, new Node.ComputedMemberExpression(expr, property)); - } - else if (this.match('.')) { - this.context.isBindingElement = false; - this.context.isAssignmentTarget = true; - this.expect('.'); - var property = this.parseIdentifierName(); - expr = this.finalize(node, new Node.StaticMemberExpression(expr, property)); - } - else if (this.lookahead.type === 10 /* Template */ && this.lookahead.head) { - var quasi = this.parseTemplateLiteral(); - expr = this.finalize(node, new Node.TaggedTemplateExpression(expr, quasi)); - } - else { - break; - } - } - return expr; - }; - // https://tc39.github.io/ecma262/#sec-update-expressions - Parser.prototype.parseUpdateExpression = function () { - var expr; - var startToken = this.lookahead; - if (this.match('++') || this.match('--')) { - var node = this.startNode(startToken); - var token = this.nextToken(); - expr = this.inheritCoverGrammar(this.parseUnaryExpression); - if (this.context.strict && expr.type === syntax_1.Syntax.Identifier && this.scanner.isRestrictedWord(expr.name)) { - this.tolerateError(messages_1.Messages.StrictLHSPrefix); - } - if (!this.context.isAssignmentTarget) { - this.tolerateError(messages_1.Messages.InvalidLHSInAssignment); - } - var prefix = true; - expr = this.finalize(node, new Node.UpdateExpression(token.value, expr, prefix)); - this.context.isAssignmentTarget = false; - this.context.isBindingElement = false; - } - else { - expr = this.inheritCoverGrammar(this.parseLeftHandSideExpressionAllowCall); - if (!this.hasLineTerminator && this.lookahead.type === 7 /* Punctuator */) { - if (this.match('++') || this.match('--')) { - if (this.context.strict && expr.type === syntax_1.Syntax.Identifier && this.scanner.isRestrictedWord(expr.name)) { - this.tolerateError(messages_1.Messages.StrictLHSPostfix); - } - if (!this.context.isAssignmentTarget) { - this.tolerateError(messages_1.Messages.InvalidLHSInAssignment); - } - this.context.isAssignmentTarget = false; - this.context.isBindingElement = false; - var operator = this.nextToken().value; - var prefix = false; - expr = this.finalize(this.startNode(startToken), new Node.UpdateExpression(operator, expr, prefix)); - } - } - } - return expr; - }; - // https://tc39.github.io/ecma262/#sec-unary-operators - Parser.prototype.parseAwaitExpression = function () { - var node = this.createNode(); - this.nextToken(); - var argument = this.parseUnaryExpression(); - return this.finalize(node, new Node.AwaitExpression(argument)); - }; - Parser.prototype.parseUnaryExpression = function () { - var expr; - if (this.match('+') || this.match('-') || this.match('~') || this.match('!') || - this.matchKeyword('delete') || this.matchKeyword('void') || this.matchKeyword('typeof')) { - var node = this.startNode(this.lookahead); - var token = this.nextToken(); - expr = this.inheritCoverGrammar(this.parseUnaryExpression); - expr = this.finalize(node, new Node.UnaryExpression(token.value, expr)); - if (this.context.strict && expr.operator === 'delete' && expr.argument.type === syntax_1.Syntax.Identifier) { - this.tolerateError(messages_1.Messages.StrictDelete); - } - this.context.isAssignmentTarget = false; - this.context.isBindingElement = false; - } - else if (this.context.await && this.matchContextualKeyword('await')) { - expr = this.parseAwaitExpression(); - } - else { - expr = this.parseUpdateExpression(); - } - return expr; - }; - Parser.prototype.parseExponentiationExpression = function () { - var startToken = this.lookahead; - var expr = this.inheritCoverGrammar(this.parseUnaryExpression); - if (expr.type !== syntax_1.Syntax.UnaryExpression && this.match('**')) { - this.nextToken(); - this.context.isAssignmentTarget = false; - this.context.isBindingElement = false; - var left = expr; - var right = this.isolateCoverGrammar(this.parseExponentiationExpression); - expr = this.finalize(this.startNode(startToken), new Node.BinaryExpression('**', left, right)); - } - return expr; - }; - // https://tc39.github.io/ecma262/#sec-exp-operator - // https://tc39.github.io/ecma262/#sec-multiplicative-operators - // https://tc39.github.io/ecma262/#sec-additive-operators - // https://tc39.github.io/ecma262/#sec-bitwise-shift-operators - // https://tc39.github.io/ecma262/#sec-relational-operators - // https://tc39.github.io/ecma262/#sec-equality-operators - // https://tc39.github.io/ecma262/#sec-binary-bitwise-operators - // https://tc39.github.io/ecma262/#sec-binary-logical-operators - Parser.prototype.binaryPrecedence = function (token) { - var op = token.value; - var precedence; - if (token.type === 7 /* Punctuator */) { - precedence = this.operatorPrecedence[op] || 0; - } - else if (token.type === 4 /* Keyword */) { - precedence = (op === 'instanceof' || (this.context.allowIn && op === 'in')) ? 7 : 0; - } - else { - precedence = 0; - } - return precedence; - }; - Parser.prototype.parseBinaryExpression = function () { - var startToken = this.lookahead; - var expr = this.inheritCoverGrammar(this.parseExponentiationExpression); - var token = this.lookahead; - var prec = this.binaryPrecedence(token); - if (prec > 0) { - this.nextToken(); - this.context.isAssignmentTarget = false; - this.context.isBindingElement = false; - var markers = [startToken, this.lookahead]; - var left = expr; - var right = this.isolateCoverGrammar(this.parseExponentiationExpression); - var stack = [left, token.value, right]; - var precedences = [prec]; - while (true) { - prec = this.binaryPrecedence(this.lookahead); - if (prec <= 0) { - break; - } - // Reduce: make a binary expression from the three topmost entries. - while ((stack.length > 2) && (prec <= precedences[precedences.length - 1])) { - right = stack.pop(); - var operator = stack.pop(); - precedences.pop(); - left = stack.pop(); - markers.pop(); - var node = this.startNode(markers[markers.length - 1]); - stack.push(this.finalize(node, new Node.BinaryExpression(operator, left, right))); - } - // Shift. - stack.push(this.nextToken().value); - precedences.push(prec); - markers.push(this.lookahead); - stack.push(this.isolateCoverGrammar(this.parseExponentiationExpression)); - } - // Final reduce to clean-up the stack. - var i = stack.length - 1; - expr = stack[i]; - var lastMarker = markers.pop(); - while (i > 1) { - var marker = markers.pop(); - var lastLineStart = lastMarker && lastMarker.lineStart; - var node = this.startNode(marker, lastLineStart); - var operator = stack[i - 1]; - expr = this.finalize(node, new Node.BinaryExpression(operator, stack[i - 2], expr)); - i -= 2; - lastMarker = marker; - } - } - return expr; - }; - // https://tc39.github.io/ecma262/#sec-conditional-operator - Parser.prototype.parseConditionalExpression = function () { - var startToken = this.lookahead; - var expr = this.inheritCoverGrammar(this.parseBinaryExpression); - if (this.match('?')) { - this.nextToken(); - var previousAllowIn = this.context.allowIn; - this.context.allowIn = true; - var consequent = this.isolateCoverGrammar(this.parseAssignmentExpression); - this.context.allowIn = previousAllowIn; - this.expect(':'); - var alternate = this.isolateCoverGrammar(this.parseAssignmentExpression); - expr = this.finalize(this.startNode(startToken), new Node.ConditionalExpression(expr, consequent, alternate)); - this.context.isAssignmentTarget = false; - this.context.isBindingElement = false; - } - return expr; - }; - // https://tc39.github.io/ecma262/#sec-assignment-operators - Parser.prototype.checkPatternParam = function (options, param) { - switch (param.type) { - case syntax_1.Syntax.Identifier: - this.validateParam(options, param, param.name); - break; - case syntax_1.Syntax.RestElement: - this.checkPatternParam(options, param.argument); - break; - case syntax_1.Syntax.AssignmentPattern: - this.checkPatternParam(options, param.left); - break; - case syntax_1.Syntax.ArrayPattern: - for (var i = 0; i < param.elements.length; i++) { - if (param.elements[i] !== null) { - this.checkPatternParam(options, param.elements[i]); - } - } - break; - case syntax_1.Syntax.ObjectPattern: - for (var i = 0; i < param.properties.length; i++) { - this.checkPatternParam(options, param.properties[i].value); - } - break; - default: - break; - } - options.simple = options.simple && (param instanceof Node.Identifier); - }; - Parser.prototype.reinterpretAsCoverFormalsList = function (expr) { - var params = [expr]; - var options; - var asyncArrow = false; - switch (expr.type) { - case syntax_1.Syntax.Identifier: - break; - case ArrowParameterPlaceHolder: - params = expr.params; - asyncArrow = expr.async; - break; - default: - return null; - } - options = { - simple: true, - paramSet: {} - }; - for (var i = 0; i < params.length; ++i) { - var param = params[i]; - if (param.type === syntax_1.Syntax.AssignmentPattern) { - if (param.right.type === syntax_1.Syntax.YieldExpression) { - if (param.right.argument) { - this.throwUnexpectedToken(this.lookahead); - } - param.right.type = syntax_1.Syntax.Identifier; - param.right.name = 'yield'; - delete param.right.argument; - delete param.right.delegate; - } - } - else if (asyncArrow && param.type === syntax_1.Syntax.Identifier && param.name === 'await') { - this.throwUnexpectedToken(this.lookahead); - } - this.checkPatternParam(options, param); - params[i] = param; - } - if (this.context.strict || !this.context.allowYield) { - for (var i = 0; i < params.length; ++i) { - var param = params[i]; - if (param.type === syntax_1.Syntax.YieldExpression) { - this.throwUnexpectedToken(this.lookahead); - } - } - } - if (options.message === messages_1.Messages.StrictParamDupe) { - var token = this.context.strict ? options.stricted : options.firstRestricted; - this.throwUnexpectedToken(token, options.message); - } - return { - simple: options.simple, - params: params, - stricted: options.stricted, - firstRestricted: options.firstRestricted, - message: options.message - }; - }; - Parser.prototype.parseAssignmentExpression = function () { - var expr; - if (!this.context.allowYield && this.matchKeyword('yield')) { - expr = this.parseYieldExpression(); - } - else { - var startToken = this.lookahead; - var token = startToken; - expr = this.parseConditionalExpression(); - if (token.type === 3 /* Identifier */ && (token.lineNumber === this.lookahead.lineNumber) && token.value === 'async') { - if (this.lookahead.type === 3 /* Identifier */ || this.matchKeyword('yield')) { - var arg = this.parsePrimaryExpression(); - this.reinterpretExpressionAsPattern(arg); - expr = { - type: ArrowParameterPlaceHolder, - params: [arg], - async: true - }; - } - } - if (expr.type === ArrowParameterPlaceHolder || this.match('=>')) { - // https://tc39.github.io/ecma262/#sec-arrow-function-definitions - this.context.isAssignmentTarget = false; - this.context.isBindingElement = false; - var isAsync = expr.async; - var list = this.reinterpretAsCoverFormalsList(expr); - if (list) { - if (this.hasLineTerminator) { - this.tolerateUnexpectedToken(this.lookahead); - } - this.context.firstCoverInitializedNameError = null; - var previousStrict = this.context.strict; - var previousAllowStrictDirective = this.context.allowStrictDirective; - this.context.allowStrictDirective = list.simple; - var previousAllowYield = this.context.allowYield; - var previousAwait = this.context.await; - this.context.allowYield = true; - this.context.await = isAsync; - var node = this.startNode(startToken); - this.expect('=>'); - var body = void 0; - if (this.match('{')) { - var previousAllowIn = this.context.allowIn; - this.context.allowIn = true; - body = this.parseFunctionSourceElements(); - this.context.allowIn = previousAllowIn; - } - else { - body = this.isolateCoverGrammar(this.parseAssignmentExpression); - } - var expression = body.type !== syntax_1.Syntax.BlockStatement; - if (this.context.strict && list.firstRestricted) { - this.throwUnexpectedToken(list.firstRestricted, list.message); - } - if (this.context.strict && list.stricted) { - this.tolerateUnexpectedToken(list.stricted, list.message); - } - expr = isAsync ? this.finalize(node, new Node.AsyncArrowFunctionExpression(list.params, body, expression)) : - this.finalize(node, new Node.ArrowFunctionExpression(list.params, body, expression)); - this.context.strict = previousStrict; - this.context.allowStrictDirective = previousAllowStrictDirective; - this.context.allowYield = previousAllowYield; - this.context.await = previousAwait; - } - } - else { - if (this.matchAssign()) { - if (!this.context.isAssignmentTarget) { - this.tolerateError(messages_1.Messages.InvalidLHSInAssignment); - } - if (this.context.strict && expr.type === syntax_1.Syntax.Identifier) { - var id = expr; - if (this.scanner.isRestrictedWord(id.name)) { - this.tolerateUnexpectedToken(token, messages_1.Messages.StrictLHSAssignment); - } - if (this.scanner.isStrictModeReservedWord(id.name)) { - this.tolerateUnexpectedToken(token, messages_1.Messages.StrictReservedWord); - } - } - if (!this.match('=')) { - this.context.isAssignmentTarget = false; - this.context.isBindingElement = false; - } - else { - this.reinterpretExpressionAsPattern(expr); - } - token = this.nextToken(); - var operator = token.value; - var right = this.isolateCoverGrammar(this.parseAssignmentExpression); - expr = this.finalize(this.startNode(startToken), new Node.AssignmentExpression(operator, expr, right)); - this.context.firstCoverInitializedNameError = null; - } - } - } - return expr; - }; - // https://tc39.github.io/ecma262/#sec-comma-operator - Parser.prototype.parseExpression = function () { - var startToken = this.lookahead; - var expr = this.isolateCoverGrammar(this.parseAssignmentExpression); - if (this.match(',')) { - var expressions = []; - expressions.push(expr); - while (this.lookahead.type !== 2 /* EOF */) { - if (!this.match(',')) { - break; - } - this.nextToken(); - expressions.push(this.isolateCoverGrammar(this.parseAssignmentExpression)); - } - expr = this.finalize(this.startNode(startToken), new Node.SequenceExpression(expressions)); - } - return expr; - }; - // https://tc39.github.io/ecma262/#sec-block - Parser.prototype.parseStatementListItem = function () { - var statement; - this.context.isAssignmentTarget = true; - this.context.isBindingElement = true; - if (this.lookahead.type === 4 /* Keyword */) { - switch (this.lookahead.value) { - case 'export': - if (!this.context.isModule) { - this.tolerateUnexpectedToken(this.lookahead, messages_1.Messages.IllegalExportDeclaration); - } - statement = this.parseExportDeclaration(); - break; - case 'import': - if (!this.context.isModule) { - this.tolerateUnexpectedToken(this.lookahead, messages_1.Messages.IllegalImportDeclaration); - } - statement = this.parseImportDeclaration(); - break; - case 'const': - statement = this.parseLexicalDeclaration({ inFor: false }); - break; - case 'function': - statement = this.parseFunctionDeclaration(); - break; - case 'class': - statement = this.parseClassDeclaration(); - break; - case 'let': - statement = this.isLexicalDeclaration() ? this.parseLexicalDeclaration({ inFor: false }) : this.parseStatement(); - break; - default: - statement = this.parseStatement(); - break; - } - } - else { - statement = this.parseStatement(); - } - return statement; - }; - Parser.prototype.parseBlock = function () { - var node = this.createNode(); - this.expect('{'); - var block = []; - while (true) { - if (this.match('}')) { - break; - } - block.push(this.parseStatementListItem()); - } - this.expect('}'); - return this.finalize(node, new Node.BlockStatement(block)); - }; - // https://tc39.github.io/ecma262/#sec-let-and-const-declarations - Parser.prototype.parseLexicalBinding = function (kind, options) { - var node = this.createNode(); - var params = []; - var id = this.parsePattern(params, kind); - if (this.context.strict && id.type === syntax_1.Syntax.Identifier) { - if (this.scanner.isRestrictedWord(id.name)) { - this.tolerateError(messages_1.Messages.StrictVarName); - } - } - var init = null; - if (kind === 'const') { - if (!this.matchKeyword('in') && !this.matchContextualKeyword('of')) { - if (this.match('=')) { - this.nextToken(); - init = this.isolateCoverGrammar(this.parseAssignmentExpression); - } - else { - this.throwError(messages_1.Messages.DeclarationMissingInitializer, 'const'); - } - } - } - else if ((!options.inFor && id.type !== syntax_1.Syntax.Identifier) || this.match('=')) { - this.expect('='); - init = this.isolateCoverGrammar(this.parseAssignmentExpression); - } - return this.finalize(node, new Node.VariableDeclarator(id, init)); - }; - Parser.prototype.parseBindingList = function (kind, options) { - var list = [this.parseLexicalBinding(kind, options)]; - while (this.match(',')) { - this.nextToken(); - list.push(this.parseLexicalBinding(kind, options)); - } - return list; - }; - Parser.prototype.isLexicalDeclaration = function () { - var state = this.scanner.saveState(); - this.scanner.scanComments(); - var next = this.scanner.lex(); - this.scanner.restoreState(state); - return (next.type === 3 /* Identifier */) || - (next.type === 7 /* Punctuator */ && next.value === '[') || - (next.type === 7 /* Punctuator */ && next.value === '{') || - (next.type === 4 /* Keyword */ && next.value === 'let') || - (next.type === 4 /* Keyword */ && next.value === 'yield'); - }; - Parser.prototype.parseLexicalDeclaration = function (options) { - var node = this.createNode(); - var kind = this.nextToken().value; - assert_1.assert(kind === 'let' || kind === 'const', 'Lexical declaration must be either let or const'); - var declarations = this.parseBindingList(kind, options); - this.consumeSemicolon(); - return this.finalize(node, new Node.VariableDeclaration(declarations, kind)); - }; - // https://tc39.github.io/ecma262/#sec-destructuring-binding-patterns - Parser.prototype.parseBindingRestElement = function (params, kind) { - var node = this.createNode(); - this.expect('...'); - var arg = this.parsePattern(params, kind); - return this.finalize(node, new Node.RestElement(arg)); - }; - Parser.prototype.parseArrayPattern = function (params, kind) { - var node = this.createNode(); - this.expect('['); - var elements = []; - while (!this.match(']')) { - if (this.match(',')) { - this.nextToken(); - elements.push(null); - } - else { - if (this.match('...')) { - elements.push(this.parseBindingRestElement(params, kind)); - break; - } - else { - elements.push(this.parsePatternWithDefault(params, kind)); - } - if (!this.match(']')) { - this.expect(','); - } - } - } - this.expect(']'); - return this.finalize(node, new Node.ArrayPattern(elements)); - }; - Parser.prototype.parsePropertyPattern = function (params, kind) { - var node = this.createNode(); - var computed = false; - var shorthand = false; - var method = false; - var key; - var value; - if (this.lookahead.type === 3 /* Identifier */) { - var keyToken = this.lookahead; - key = this.parseVariableIdentifier(); - var init = this.finalize(node, new Node.Identifier(keyToken.value)); - if (this.match('=')) { - params.push(keyToken); - shorthand = true; - this.nextToken(); - var expr = this.parseAssignmentExpression(); - value = this.finalize(this.startNode(keyToken), new Node.AssignmentPattern(init, expr)); - } - else if (!this.match(':')) { - params.push(keyToken); - shorthand = true; - value = init; - } - else { - this.expect(':'); - value = this.parsePatternWithDefault(params, kind); - } - } - else { - computed = this.match('['); - key = this.parseObjectPropertyKey(); - this.expect(':'); - value = this.parsePatternWithDefault(params, kind); - } - return this.finalize(node, new Node.Property('init', key, computed, value, method, shorthand)); - }; - Parser.prototype.parseObjectPattern = function (params, kind) { - var node = this.createNode(); - var properties = []; - this.expect('{'); - while (!this.match('}')) { - properties.push(this.parsePropertyPattern(params, kind)); - if (!this.match('}')) { - this.expect(','); - } - } - this.expect('}'); - return this.finalize(node, new Node.ObjectPattern(properties)); - }; - Parser.prototype.parsePattern = function (params, kind) { - var pattern; - if (this.match('[')) { - pattern = this.parseArrayPattern(params, kind); - } - else if (this.match('{')) { - pattern = this.parseObjectPattern(params, kind); - } - else { - if (this.matchKeyword('let') && (kind === 'const' || kind === 'let')) { - this.tolerateUnexpectedToken(this.lookahead, messages_1.Messages.LetInLexicalBinding); - } - params.push(this.lookahead); - pattern = this.parseVariableIdentifier(kind); - } - return pattern; - }; - Parser.prototype.parsePatternWithDefault = function (params, kind) { - var startToken = this.lookahead; - var pattern = this.parsePattern(params, kind); - if (this.match('=')) { - this.nextToken(); - var previousAllowYield = this.context.allowYield; - this.context.allowYield = true; - var right = this.isolateCoverGrammar(this.parseAssignmentExpression); - this.context.allowYield = previousAllowYield; - pattern = this.finalize(this.startNode(startToken), new Node.AssignmentPattern(pattern, right)); - } - return pattern; - }; - // https://tc39.github.io/ecma262/#sec-variable-statement - Parser.prototype.parseVariableIdentifier = function (kind) { - var node = this.createNode(); - var token = this.nextToken(); - if (token.type === 4 /* Keyword */ && token.value === 'yield') { - if (this.context.strict) { - this.tolerateUnexpectedToken(token, messages_1.Messages.StrictReservedWord); - } - else if (!this.context.allowYield) { - this.throwUnexpectedToken(token); - } - } - else if (token.type !== 3 /* Identifier */) { - if (this.context.strict && token.type === 4 /* Keyword */ && this.scanner.isStrictModeReservedWord(token.value)) { - this.tolerateUnexpectedToken(token, messages_1.Messages.StrictReservedWord); - } - else { - if (this.context.strict || token.value !== 'let' || kind !== 'var') { - this.throwUnexpectedToken(token); - } - } - } - else if ((this.context.isModule || this.context.await) && token.type === 3 /* Identifier */ && token.value === 'await') { - this.tolerateUnexpectedToken(token); - } - return this.finalize(node, new Node.Identifier(token.value)); - }; - Parser.prototype.parseVariableDeclaration = function (options) { - var node = this.createNode(); - var params = []; - var id = this.parsePattern(params, 'var'); - if (this.context.strict && id.type === syntax_1.Syntax.Identifier) { - if (this.scanner.isRestrictedWord(id.name)) { - this.tolerateError(messages_1.Messages.StrictVarName); - } - } - var init = null; - if (this.match('=')) { - this.nextToken(); - init = this.isolateCoverGrammar(this.parseAssignmentExpression); - } - else if (id.type !== syntax_1.Syntax.Identifier && !options.inFor) { - this.expect('='); - } - return this.finalize(node, new Node.VariableDeclarator(id, init)); - }; - Parser.prototype.parseVariableDeclarationList = function (options) { - var opt = { inFor: options.inFor }; - var list = []; - list.push(this.parseVariableDeclaration(opt)); - while (this.match(',')) { - this.nextToken(); - list.push(this.parseVariableDeclaration(opt)); - } - return list; - }; - Parser.prototype.parseVariableStatement = function () { - var node = this.createNode(); - this.expectKeyword('var'); - var declarations = this.parseVariableDeclarationList({ inFor: false }); - this.consumeSemicolon(); - return this.finalize(node, new Node.VariableDeclaration(declarations, 'var')); - }; - // https://tc39.github.io/ecma262/#sec-empty-statement - Parser.prototype.parseEmptyStatement = function () { - var node = this.createNode(); - this.expect(';'); - return this.finalize(node, new Node.EmptyStatement()); - }; - // https://tc39.github.io/ecma262/#sec-expression-statement - Parser.prototype.parseExpressionStatement = function () { - var node = this.createNode(); - var expr = this.parseExpression(); - this.consumeSemicolon(); - return this.finalize(node, new Node.ExpressionStatement(expr)); - }; - // https://tc39.github.io/ecma262/#sec-if-statement - Parser.prototype.parseIfClause = function () { - if (this.context.strict && this.matchKeyword('function')) { - this.tolerateError(messages_1.Messages.StrictFunction); - } - return this.parseStatement(); - }; - Parser.prototype.parseIfStatement = function () { - var node = this.createNode(); - var consequent; - var alternate = null; - this.expectKeyword('if'); - this.expect('('); - var test = this.parseExpression(); - if (!this.match(')') && this.config.tolerant) { - this.tolerateUnexpectedToken(this.nextToken()); - consequent = this.finalize(this.createNode(), new Node.EmptyStatement()); - } - else { - this.expect(')'); - consequent = this.parseIfClause(); - if (this.matchKeyword('else')) { - this.nextToken(); - alternate = this.parseIfClause(); - } - } - return this.finalize(node, new Node.IfStatement(test, consequent, alternate)); - }; - // https://tc39.github.io/ecma262/#sec-do-while-statement - Parser.prototype.parseDoWhileStatement = function () { - var node = this.createNode(); - this.expectKeyword('do'); - var previousInIteration = this.context.inIteration; - this.context.inIteration = true; - var body = this.parseStatement(); - this.context.inIteration = previousInIteration; - this.expectKeyword('while'); - this.expect('('); - var test = this.parseExpression(); - if (!this.match(')') && this.config.tolerant) { - this.tolerateUnexpectedToken(this.nextToken()); - } - else { - this.expect(')'); - if (this.match(';')) { - this.nextToken(); - } - } - return this.finalize(node, new Node.DoWhileStatement(body, test)); - }; - // https://tc39.github.io/ecma262/#sec-while-statement - Parser.prototype.parseWhileStatement = function () { - var node = this.createNode(); - var body; - this.expectKeyword('while'); - this.expect('('); - var test = this.parseExpression(); - if (!this.match(')') && this.config.tolerant) { - this.tolerateUnexpectedToken(this.nextToken()); - body = this.finalize(this.createNode(), new Node.EmptyStatement()); - } - else { - this.expect(')'); - var previousInIteration = this.context.inIteration; - this.context.inIteration = true; - body = this.parseStatement(); - this.context.inIteration = previousInIteration; - } - return this.finalize(node, new Node.WhileStatement(test, body)); - }; - // https://tc39.github.io/ecma262/#sec-for-statement - // https://tc39.github.io/ecma262/#sec-for-in-and-for-of-statements - Parser.prototype.parseForStatement = function () { - var init = null; - var test = null; - var update = null; - var forIn = true; - var left, right; - var node = this.createNode(); - this.expectKeyword('for'); - this.expect('('); - if (this.match(';')) { - this.nextToken(); - } - else { - if (this.matchKeyword('var')) { - init = this.createNode(); - this.nextToken(); - var previousAllowIn = this.context.allowIn; - this.context.allowIn = false; - var declarations = this.parseVariableDeclarationList({ inFor: true }); - this.context.allowIn = previousAllowIn; - if (declarations.length === 1 && this.matchKeyword('in')) { - var decl = declarations[0]; - if (decl.init && (decl.id.type === syntax_1.Syntax.ArrayPattern || decl.id.type === syntax_1.Syntax.ObjectPattern || this.context.strict)) { - this.tolerateError(messages_1.Messages.ForInOfLoopInitializer, 'for-in'); - } - init = this.finalize(init, new Node.VariableDeclaration(declarations, 'var')); - this.nextToken(); - left = init; - right = this.parseExpression(); - init = null; - } - else if (declarations.length === 1 && declarations[0].init === null && this.matchContextualKeyword('of')) { - init = this.finalize(init, new Node.VariableDeclaration(declarations, 'var')); - this.nextToken(); - left = init; - right = this.parseAssignmentExpression(); - init = null; - forIn = false; - } - else { - init = this.finalize(init, new Node.VariableDeclaration(declarations, 'var')); - this.expect(';'); - } - } - else if (this.matchKeyword('const') || this.matchKeyword('let')) { - init = this.createNode(); - var kind = this.nextToken().value; - if (!this.context.strict && this.lookahead.value === 'in') { - init = this.finalize(init, new Node.Identifier(kind)); - this.nextToken(); - left = init; - right = this.parseExpression(); - init = null; - } - else { - var previousAllowIn = this.context.allowIn; - this.context.allowIn = false; - var declarations = this.parseBindingList(kind, { inFor: true }); - this.context.allowIn = previousAllowIn; - if (declarations.length === 1 && declarations[0].init === null && this.matchKeyword('in')) { - init = this.finalize(init, new Node.VariableDeclaration(declarations, kind)); - this.nextToken(); - left = init; - right = this.parseExpression(); - init = null; - } - else if (declarations.length === 1 && declarations[0].init === null && this.matchContextualKeyword('of')) { - init = this.finalize(init, new Node.VariableDeclaration(declarations, kind)); - this.nextToken(); - left = init; - right = this.parseAssignmentExpression(); - init = null; - forIn = false; - } - else { - this.consumeSemicolon(); - init = this.finalize(init, new Node.VariableDeclaration(declarations, kind)); - } - } - } - else { - var initStartToken = this.lookahead; - var previousAllowIn = this.context.allowIn; - this.context.allowIn = false; - init = this.inheritCoverGrammar(this.parseAssignmentExpression); - this.context.allowIn = previousAllowIn; - if (this.matchKeyword('in')) { - if (!this.context.isAssignmentTarget || init.type === syntax_1.Syntax.AssignmentExpression) { - this.tolerateError(messages_1.Messages.InvalidLHSInForIn); - } - this.nextToken(); - this.reinterpretExpressionAsPattern(init); - left = init; - right = this.parseExpression(); - init = null; - } - else if (this.matchContextualKeyword('of')) { - if (!this.context.isAssignmentTarget || init.type === syntax_1.Syntax.AssignmentExpression) { - this.tolerateError(messages_1.Messages.InvalidLHSInForLoop); - } - this.nextToken(); - this.reinterpretExpressionAsPattern(init); - left = init; - right = this.parseAssignmentExpression(); - init = null; - forIn = false; - } - else { - if (this.match(',')) { - var initSeq = [init]; - while (this.match(',')) { - this.nextToken(); - initSeq.push(this.isolateCoverGrammar(this.parseAssignmentExpression)); - } - init = this.finalize(this.startNode(initStartToken), new Node.SequenceExpression(initSeq)); - } - this.expect(';'); - } - } - } - if (typeof left === 'undefined') { - if (!this.match(';')) { - test = this.parseExpression(); - } - this.expect(';'); - if (!this.match(')')) { - update = this.parseExpression(); - } - } - var body; - if (!this.match(')') && this.config.tolerant) { - this.tolerateUnexpectedToken(this.nextToken()); - body = this.finalize(this.createNode(), new Node.EmptyStatement()); - } - else { - this.expect(')'); - var previousInIteration = this.context.inIteration; - this.context.inIteration = true; - body = this.isolateCoverGrammar(this.parseStatement); - this.context.inIteration = previousInIteration; - } - return (typeof left === 'undefined') ? - this.finalize(node, new Node.ForStatement(init, test, update, body)) : - forIn ? this.finalize(node, new Node.ForInStatement(left, right, body)) : - this.finalize(node, new Node.ForOfStatement(left, right, body)); - }; - // https://tc39.github.io/ecma262/#sec-continue-statement - Parser.prototype.parseContinueStatement = function () { - var node = this.createNode(); - this.expectKeyword('continue'); - var label = null; - if (this.lookahead.type === 3 /* Identifier */ && !this.hasLineTerminator) { - var id = this.parseVariableIdentifier(); - label = id; - var key = '$' + id.name; - if (!Object.prototype.hasOwnProperty.call(this.context.labelSet, key)) { - this.throwError(messages_1.Messages.UnknownLabel, id.name); - } - } - this.consumeSemicolon(); - if (label === null && !this.context.inIteration) { - this.throwError(messages_1.Messages.IllegalContinue); - } - return this.finalize(node, new Node.ContinueStatement(label)); - }; - // https://tc39.github.io/ecma262/#sec-break-statement - Parser.prototype.parseBreakStatement = function () { - var node = this.createNode(); - this.expectKeyword('break'); - var label = null; - if (this.lookahead.type === 3 /* Identifier */ && !this.hasLineTerminator) { - var id = this.parseVariableIdentifier(); - var key = '$' + id.name; - if (!Object.prototype.hasOwnProperty.call(this.context.labelSet, key)) { - this.throwError(messages_1.Messages.UnknownLabel, id.name); - } - label = id; - } - this.consumeSemicolon(); - if (label === null && !this.context.inIteration && !this.context.inSwitch) { - this.throwError(messages_1.Messages.IllegalBreak); - } - return this.finalize(node, new Node.BreakStatement(label)); - }; - // https://tc39.github.io/ecma262/#sec-return-statement - Parser.prototype.parseReturnStatement = function () { - if (!this.context.inFunctionBody) { - this.tolerateError(messages_1.Messages.IllegalReturn); - } - var node = this.createNode(); - this.expectKeyword('return'); - var hasArgument = (!this.match(';') && !this.match('}') && - !this.hasLineTerminator && this.lookahead.type !== 2 /* EOF */) || - this.lookahead.type === 8 /* StringLiteral */ || - this.lookahead.type === 10 /* Template */; - var argument = hasArgument ? this.parseExpression() : null; - this.consumeSemicolon(); - return this.finalize(node, new Node.ReturnStatement(argument)); - }; - // https://tc39.github.io/ecma262/#sec-with-statement - Parser.prototype.parseWithStatement = function () { - if (this.context.strict) { - this.tolerateError(messages_1.Messages.StrictModeWith); - } - var node = this.createNode(); - var body; - this.expectKeyword('with'); - this.expect('('); - var object = this.parseExpression(); - if (!this.match(')') && this.config.tolerant) { - this.tolerateUnexpectedToken(this.nextToken()); - body = this.finalize(this.createNode(), new Node.EmptyStatement()); - } - else { - this.expect(')'); - body = this.parseStatement(); - } - return this.finalize(node, new Node.WithStatement(object, body)); - }; - // https://tc39.github.io/ecma262/#sec-switch-statement - Parser.prototype.parseSwitchCase = function () { - var node = this.createNode(); - var test; - if (this.matchKeyword('default')) { - this.nextToken(); - test = null; - } - else { - this.expectKeyword('case'); - test = this.parseExpression(); - } - this.expect(':'); - var consequent = []; - while (true) { - if (this.match('}') || this.matchKeyword('default') || this.matchKeyword('case')) { - break; - } - consequent.push(this.parseStatementListItem()); - } - return this.finalize(node, new Node.SwitchCase(test, consequent)); - }; - Parser.prototype.parseSwitchStatement = function () { - var node = this.createNode(); - this.expectKeyword('switch'); - this.expect('('); - var discriminant = this.parseExpression(); - this.expect(')'); - var previousInSwitch = this.context.inSwitch; - this.context.inSwitch = true; - var cases = []; - var defaultFound = false; - this.expect('{'); - while (true) { - if (this.match('}')) { - break; - } - var clause = this.parseSwitchCase(); - if (clause.test === null) { - if (defaultFound) { - this.throwError(messages_1.Messages.MultipleDefaultsInSwitch); - } - defaultFound = true; - } - cases.push(clause); - } - this.expect('}'); - this.context.inSwitch = previousInSwitch; - return this.finalize(node, new Node.SwitchStatement(discriminant, cases)); - }; - // https://tc39.github.io/ecma262/#sec-labelled-statements - Parser.prototype.parseLabelledStatement = function () { - var node = this.createNode(); - var expr = this.parseExpression(); - var statement; - if ((expr.type === syntax_1.Syntax.Identifier) && this.match(':')) { - this.nextToken(); - var id = expr; - var key = '$' + id.name; - if (Object.prototype.hasOwnProperty.call(this.context.labelSet, key)) { - this.throwError(messages_1.Messages.Redeclaration, 'Label', id.name); - } - this.context.labelSet[key] = true; - var body = void 0; - if (this.matchKeyword('class')) { - this.tolerateUnexpectedToken(this.lookahead); - body = this.parseClassDeclaration(); - } - else if (this.matchKeyword('function')) { - var token = this.lookahead; - var declaration = this.parseFunctionDeclaration(); - if (this.context.strict) { - this.tolerateUnexpectedToken(token, messages_1.Messages.StrictFunction); - } - else if (declaration.generator) { - this.tolerateUnexpectedToken(token, messages_1.Messages.GeneratorInLegacyContext); - } - body = declaration; - } - else { - body = this.parseStatement(); - } - delete this.context.labelSet[key]; - statement = new Node.LabeledStatement(id, body); - } - else { - this.consumeSemicolon(); - statement = new Node.ExpressionStatement(expr); - } - return this.finalize(node, statement); - }; - // https://tc39.github.io/ecma262/#sec-throw-statement - Parser.prototype.parseThrowStatement = function () { - var node = this.createNode(); - this.expectKeyword('throw'); - if (this.hasLineTerminator) { - this.throwError(messages_1.Messages.NewlineAfterThrow); - } - var argument = this.parseExpression(); - this.consumeSemicolon(); - return this.finalize(node, new Node.ThrowStatement(argument)); - }; - // https://tc39.github.io/ecma262/#sec-try-statement - Parser.prototype.parseCatchClause = function () { - var node = this.createNode(); - this.expectKeyword('catch'); - this.expect('('); - if (this.match(')')) { - this.throwUnexpectedToken(this.lookahead); - } - var params = []; - var param = this.parsePattern(params); - var paramMap = {}; - for (var i = 0; i < params.length; i++) { - var key = '$' + params[i].value; - if (Object.prototype.hasOwnProperty.call(paramMap, key)) { - this.tolerateError(messages_1.Messages.DuplicateBinding, params[i].value); - } - paramMap[key] = true; - } - if (this.context.strict && param.type === syntax_1.Syntax.Identifier) { - if (this.scanner.isRestrictedWord(param.name)) { - this.tolerateError(messages_1.Messages.StrictCatchVariable); - } - } - this.expect(')'); - var body = this.parseBlock(); - return this.finalize(node, new Node.CatchClause(param, body)); - }; - Parser.prototype.parseFinallyClause = function () { - this.expectKeyword('finally'); - return this.parseBlock(); - }; - Parser.prototype.parseTryStatement = function () { - var node = this.createNode(); - this.expectKeyword('try'); - var block = this.parseBlock(); - var handler = this.matchKeyword('catch') ? this.parseCatchClause() : null; - var finalizer = this.matchKeyword('finally') ? this.parseFinallyClause() : null; - if (!handler && !finalizer) { - this.throwError(messages_1.Messages.NoCatchOrFinally); - } - return this.finalize(node, new Node.TryStatement(block, handler, finalizer)); - }; - // https://tc39.github.io/ecma262/#sec-debugger-statement - Parser.prototype.parseDebuggerStatement = function () { - var node = this.createNode(); - this.expectKeyword('debugger'); - this.consumeSemicolon(); - return this.finalize(node, new Node.DebuggerStatement()); - }; - // https://tc39.github.io/ecma262/#sec-ecmascript-language-statements-and-declarations - Parser.prototype.parseStatement = function () { - var statement; - switch (this.lookahead.type) { - case 1 /* BooleanLiteral */: - case 5 /* NullLiteral */: - case 6 /* NumericLiteral */: - case 8 /* StringLiteral */: - case 10 /* Template */: - case 9 /* RegularExpression */: - statement = this.parseExpressionStatement(); - break; - case 7 /* Punctuator */: - var value = this.lookahead.value; - if (value === '{') { - statement = this.parseBlock(); - } - else if (value === '(') { - statement = this.parseExpressionStatement(); - } - else if (value === ';') { - statement = this.parseEmptyStatement(); - } - else { - statement = this.parseExpressionStatement(); - } - break; - case 3 /* Identifier */: - statement = this.matchAsyncFunction() ? this.parseFunctionDeclaration() : this.parseLabelledStatement(); - break; - case 4 /* Keyword */: - switch (this.lookahead.value) { - case 'break': - statement = this.parseBreakStatement(); - break; - case 'continue': - statement = this.parseContinueStatement(); - break; - case 'debugger': - statement = this.parseDebuggerStatement(); - break; - case 'do': - statement = this.parseDoWhileStatement(); - break; - case 'for': - statement = this.parseForStatement(); - break; - case 'function': - statement = this.parseFunctionDeclaration(); - break; - case 'if': - statement = this.parseIfStatement(); - break; - case 'return': - statement = this.parseReturnStatement(); - break; - case 'switch': - statement = this.parseSwitchStatement(); - break; - case 'throw': - statement = this.parseThrowStatement(); - break; - case 'try': - statement = this.parseTryStatement(); - break; - case 'var': - statement = this.parseVariableStatement(); - break; - case 'while': - statement = this.parseWhileStatement(); - break; - case 'with': - statement = this.parseWithStatement(); - break; - default: - statement = this.parseExpressionStatement(); - break; - } - break; - default: - statement = this.throwUnexpectedToken(this.lookahead); - } - return statement; - }; - // https://tc39.github.io/ecma262/#sec-function-definitions - Parser.prototype.parseFunctionSourceElements = function () { - var node = this.createNode(); - this.expect('{'); - var body = this.parseDirectivePrologues(); - var previousLabelSet = this.context.labelSet; - var previousInIteration = this.context.inIteration; - var previousInSwitch = this.context.inSwitch; - var previousInFunctionBody = this.context.inFunctionBody; - this.context.labelSet = {}; - this.context.inIteration = false; - this.context.inSwitch = false; - this.context.inFunctionBody = true; - while (this.lookahead.type !== 2 /* EOF */) { - if (this.match('}')) { - break; - } - body.push(this.parseStatementListItem()); - } - this.expect('}'); - this.context.labelSet = previousLabelSet; - this.context.inIteration = previousInIteration; - this.context.inSwitch = previousInSwitch; - this.context.inFunctionBody = previousInFunctionBody; - return this.finalize(node, new Node.BlockStatement(body)); - }; - Parser.prototype.validateParam = function (options, param, name) { - var key = '$' + name; - if (this.context.strict) { - if (this.scanner.isRestrictedWord(name)) { - options.stricted = param; - options.message = messages_1.Messages.StrictParamName; - } - if (Object.prototype.hasOwnProperty.call(options.paramSet, key)) { - options.stricted = param; - options.message = messages_1.Messages.StrictParamDupe; - } - } - else if (!options.firstRestricted) { - if (this.scanner.isRestrictedWord(name)) { - options.firstRestricted = param; - options.message = messages_1.Messages.StrictParamName; - } - else if (this.scanner.isStrictModeReservedWord(name)) { - options.firstRestricted = param; - options.message = messages_1.Messages.StrictReservedWord; - } - else if (Object.prototype.hasOwnProperty.call(options.paramSet, key)) { - options.stricted = param; - options.message = messages_1.Messages.StrictParamDupe; - } - } - /* istanbul ignore next */ - if (typeof Object.defineProperty === 'function') { - Object.defineProperty(options.paramSet, key, { value: true, enumerable: true, writable: true, configurable: true }); - } - else { - options.paramSet[key] = true; - } - }; - Parser.prototype.parseRestElement = function (params) { - var node = this.createNode(); - this.expect('...'); - var arg = this.parsePattern(params); - if (this.match('=')) { - this.throwError(messages_1.Messages.DefaultRestParameter); - } - if (!this.match(')')) { - this.throwError(messages_1.Messages.ParameterAfterRestParameter); - } - return this.finalize(node, new Node.RestElement(arg)); - }; - Parser.prototype.parseFormalParameter = function (options) { - var params = []; - var param = this.match('...') ? this.parseRestElement(params) : this.parsePatternWithDefault(params); - for (var i = 0; i < params.length; i++) { - this.validateParam(options, params[i], params[i].value); - } - options.simple = options.simple && (param instanceof Node.Identifier); - options.params.push(param); - }; - Parser.prototype.parseFormalParameters = function (firstRestricted) { - var options; - options = { - simple: true, - params: [], - firstRestricted: firstRestricted - }; - this.expect('('); - if (!this.match(')')) { - options.paramSet = {}; - while (this.lookahead.type !== 2 /* EOF */) { - this.parseFormalParameter(options); - if (this.match(')')) { - break; - } - this.expect(','); - if (this.match(')')) { - break; - } - } - } - this.expect(')'); - return { - simple: options.simple, - params: options.params, - stricted: options.stricted, - firstRestricted: options.firstRestricted, - message: options.message - }; - }; - Parser.prototype.matchAsyncFunction = function () { - var match = this.matchContextualKeyword('async'); - if (match) { - var state = this.scanner.saveState(); - this.scanner.scanComments(); - var next = this.scanner.lex(); - this.scanner.restoreState(state); - match = (state.lineNumber === next.lineNumber) && (next.type === 4 /* Keyword */) && (next.value === 'function'); - } - return match; - }; - Parser.prototype.parseFunctionDeclaration = function (identifierIsOptional) { - var node = this.createNode(); - var isAsync = this.matchContextualKeyword('async'); - if (isAsync) { - this.nextToken(); - } - this.expectKeyword('function'); - var isGenerator = isAsync ? false : this.match('*'); - if (isGenerator) { - this.nextToken(); - } - var message; - var id = null; - var firstRestricted = null; - if (!identifierIsOptional || !this.match('(')) { - var token = this.lookahead; - id = this.parseVariableIdentifier(); - if (this.context.strict) { - if (this.scanner.isRestrictedWord(token.value)) { - this.tolerateUnexpectedToken(token, messages_1.Messages.StrictFunctionName); - } - } - else { - if (this.scanner.isRestrictedWord(token.value)) { - firstRestricted = token; - message = messages_1.Messages.StrictFunctionName; - } - else if (this.scanner.isStrictModeReservedWord(token.value)) { - firstRestricted = token; - message = messages_1.Messages.StrictReservedWord; - } - } - } - var previousAllowAwait = this.context.await; - var previousAllowYield = this.context.allowYield; - this.context.await = isAsync; - this.context.allowYield = !isGenerator; - var formalParameters = this.parseFormalParameters(firstRestricted); - var params = formalParameters.params; - var stricted = formalParameters.stricted; - firstRestricted = formalParameters.firstRestricted; - if (formalParameters.message) { - message = formalParameters.message; - } - var previousStrict = this.context.strict; - var previousAllowStrictDirective = this.context.allowStrictDirective; - this.context.allowStrictDirective = formalParameters.simple; - var body = this.parseFunctionSourceElements(); - if (this.context.strict && firstRestricted) { - this.throwUnexpectedToken(firstRestricted, message); - } - if (this.context.strict && stricted) { - this.tolerateUnexpectedToken(stricted, message); - } - this.context.strict = previousStrict; - this.context.allowStrictDirective = previousAllowStrictDirective; - this.context.await = previousAllowAwait; - this.context.allowYield = previousAllowYield; - return isAsync ? this.finalize(node, new Node.AsyncFunctionDeclaration(id, params, body)) : - this.finalize(node, new Node.FunctionDeclaration(id, params, body, isGenerator)); - }; - Parser.prototype.parseFunctionExpression = function () { - var node = this.createNode(); - var isAsync = this.matchContextualKeyword('async'); - if (isAsync) { - this.nextToken(); - } - this.expectKeyword('function'); - var isGenerator = isAsync ? false : this.match('*'); - if (isGenerator) { - this.nextToken(); - } - var message; - var id = null; - var firstRestricted; - var previousAllowAwait = this.context.await; - var previousAllowYield = this.context.allowYield; - this.context.await = isAsync; - this.context.allowYield = !isGenerator; - if (!this.match('(')) { - var token = this.lookahead; - id = (!this.context.strict && !isGenerator && this.matchKeyword('yield')) ? this.parseIdentifierName() : this.parseVariableIdentifier(); - if (this.context.strict) { - if (this.scanner.isRestrictedWord(token.value)) { - this.tolerateUnexpectedToken(token, messages_1.Messages.StrictFunctionName); - } - } - else { - if (this.scanner.isRestrictedWord(token.value)) { - firstRestricted = token; - message = messages_1.Messages.StrictFunctionName; - } - else if (this.scanner.isStrictModeReservedWord(token.value)) { - firstRestricted = token; - message = messages_1.Messages.StrictReservedWord; - } - } - } - var formalParameters = this.parseFormalParameters(firstRestricted); - var params = formalParameters.params; - var stricted = formalParameters.stricted; - firstRestricted = formalParameters.firstRestricted; - if (formalParameters.message) { - message = formalParameters.message; - } - var previousStrict = this.context.strict; - var previousAllowStrictDirective = this.context.allowStrictDirective; - this.context.allowStrictDirective = formalParameters.simple; - var body = this.parseFunctionSourceElements(); - if (this.context.strict && firstRestricted) { - this.throwUnexpectedToken(firstRestricted, message); - } - if (this.context.strict && stricted) { - this.tolerateUnexpectedToken(stricted, message); - } - this.context.strict = previousStrict; - this.context.allowStrictDirective = previousAllowStrictDirective; - this.context.await = previousAllowAwait; - this.context.allowYield = previousAllowYield; - return isAsync ? this.finalize(node, new Node.AsyncFunctionExpression(id, params, body)) : - this.finalize(node, new Node.FunctionExpression(id, params, body, isGenerator)); - }; - // https://tc39.github.io/ecma262/#sec-directive-prologues-and-the-use-strict-directive - Parser.prototype.parseDirective = function () { - var token = this.lookahead; - var node = this.createNode(); - var expr = this.parseExpression(); - var directive = (expr.type === syntax_1.Syntax.Literal) ? this.getTokenRaw(token).slice(1, -1) : null; - this.consumeSemicolon(); - return this.finalize(node, directive ? new Node.Directive(expr, directive) : new Node.ExpressionStatement(expr)); - }; - Parser.prototype.parseDirectivePrologues = function () { - var firstRestricted = null; - var body = []; - while (true) { - var token = this.lookahead; - if (token.type !== 8 /* StringLiteral */) { - break; - } - var statement = this.parseDirective(); - body.push(statement); - var directive = statement.directive; - if (typeof directive !== 'string') { - break; - } - if (directive === 'use strict') { - this.context.strict = true; - if (firstRestricted) { - this.tolerateUnexpectedToken(firstRestricted, messages_1.Messages.StrictOctalLiteral); - } - if (!this.context.allowStrictDirective) { - this.tolerateUnexpectedToken(token, messages_1.Messages.IllegalLanguageModeDirective); - } - } - else { - if (!firstRestricted && token.octal) { - firstRestricted = token; - } - } - } - return body; - }; - // https://tc39.github.io/ecma262/#sec-method-definitions - Parser.prototype.qualifiedPropertyName = function (token) { - switch (token.type) { - case 3 /* Identifier */: - case 8 /* StringLiteral */: - case 1 /* BooleanLiteral */: - case 5 /* NullLiteral */: - case 6 /* NumericLiteral */: - case 4 /* Keyword */: - return true; - case 7 /* Punctuator */: - return token.value === '['; - default: - break; - } - return false; - }; - Parser.prototype.parseGetterMethod = function () { - var node = this.createNode(); - var isGenerator = false; - var previousAllowYield = this.context.allowYield; - this.context.allowYield = !isGenerator; - var formalParameters = this.parseFormalParameters(); - if (formalParameters.params.length > 0) { - this.tolerateError(messages_1.Messages.BadGetterArity); - } - var method = this.parsePropertyMethod(formalParameters); - this.context.allowYield = previousAllowYield; - return this.finalize(node, new Node.FunctionExpression(null, formalParameters.params, method, isGenerator)); - }; - Parser.prototype.parseSetterMethod = function () { - var node = this.createNode(); - var isGenerator = false; - var previousAllowYield = this.context.allowYield; - this.context.allowYield = !isGenerator; - var formalParameters = this.parseFormalParameters(); - if (formalParameters.params.length !== 1) { - this.tolerateError(messages_1.Messages.BadSetterArity); - } - else if (formalParameters.params[0] instanceof Node.RestElement) { - this.tolerateError(messages_1.Messages.BadSetterRestParameter); - } - var method = this.parsePropertyMethod(formalParameters); - this.context.allowYield = previousAllowYield; - return this.finalize(node, new Node.FunctionExpression(null, formalParameters.params, method, isGenerator)); - }; - Parser.prototype.parseGeneratorMethod = function () { - var node = this.createNode(); - var isGenerator = true; - var previousAllowYield = this.context.allowYield; - this.context.allowYield = true; - var params = this.parseFormalParameters(); - this.context.allowYield = false; - var method = this.parsePropertyMethod(params); - this.context.allowYield = previousAllowYield; - return this.finalize(node, new Node.FunctionExpression(null, params.params, method, isGenerator)); - }; - // https://tc39.github.io/ecma262/#sec-generator-function-definitions - Parser.prototype.isStartOfExpression = function () { - var start = true; - var value = this.lookahead.value; - switch (this.lookahead.type) { - case 7 /* Punctuator */: - start = (value === '[') || (value === '(') || (value === '{') || - (value === '+') || (value === '-') || - (value === '!') || (value === '~') || - (value === '++') || (value === '--') || - (value === '/') || (value === '/='); // regular expression literal - break; - case 4 /* Keyword */: - start = (value === 'class') || (value === 'delete') || - (value === 'function') || (value === 'let') || (value === 'new') || - (value === 'super') || (value === 'this') || (value === 'typeof') || - (value === 'void') || (value === 'yield'); - break; - default: - break; - } - return start; - }; - Parser.prototype.parseYieldExpression = function () { - var node = this.createNode(); - this.expectKeyword('yield'); - var argument = null; - var delegate = false; - if (!this.hasLineTerminator) { - var previousAllowYield = this.context.allowYield; - this.context.allowYield = false; - delegate = this.match('*'); - if (delegate) { - this.nextToken(); - argument = this.parseAssignmentExpression(); - } - else if (this.isStartOfExpression()) { - argument = this.parseAssignmentExpression(); - } - this.context.allowYield = previousAllowYield; - } - return this.finalize(node, new Node.YieldExpression(argument, delegate)); - }; - // https://tc39.github.io/ecma262/#sec-class-definitions - Parser.prototype.parseClassElement = function (hasConstructor) { - var token = this.lookahead; - var node = this.createNode(); - var kind = ''; - var key = null; - var value = null; - var computed = false; - var method = false; - var isStatic = false; - var isAsync = false; - if (this.match('*')) { - this.nextToken(); - } - else { - computed = this.match('['); - key = this.parseObjectPropertyKey(); - var id = key; - if (id.name === 'static' && (this.qualifiedPropertyName(this.lookahead) || this.match('*'))) { - token = this.lookahead; - isStatic = true; - computed = this.match('['); - if (this.match('*')) { - this.nextToken(); - } - else { - key = this.parseObjectPropertyKey(); - } - } - if ((token.type === 3 /* Identifier */) && !this.hasLineTerminator && (token.value === 'async')) { - var punctuator = this.lookahead.value; - if (punctuator !== ':' && punctuator !== '(' && punctuator !== '*') { - isAsync = true; - token = this.lookahead; - key = this.parseObjectPropertyKey(); - if (token.type === 3 /* Identifier */ && token.value === 'constructor') { - this.tolerateUnexpectedToken(token, messages_1.Messages.ConstructorIsAsync); - } - } - } - } - var lookaheadPropertyKey = this.qualifiedPropertyName(this.lookahead); - if (token.type === 3 /* Identifier */) { - if (token.value === 'get' && lookaheadPropertyKey) { - kind = 'get'; - computed = this.match('['); - key = this.parseObjectPropertyKey(); - this.context.allowYield = false; - value = this.parseGetterMethod(); - } - else if (token.value === 'set' && lookaheadPropertyKey) { - kind = 'set'; - computed = this.match('['); - key = this.parseObjectPropertyKey(); - value = this.parseSetterMethod(); - } - } - else if (token.type === 7 /* Punctuator */ && token.value === '*' && lookaheadPropertyKey) { - kind = 'init'; - computed = this.match('['); - key = this.parseObjectPropertyKey(); - value = this.parseGeneratorMethod(); - method = true; - } - if (!kind && key && this.match('(')) { - kind = 'init'; - value = isAsync ? this.parsePropertyMethodAsyncFunction() : this.parsePropertyMethodFunction(); - method = true; - } - if (!kind) { - this.throwUnexpectedToken(this.lookahead); - } - if (kind === 'init') { - kind = 'method'; - } - if (!computed) { - if (isStatic && this.isPropertyKey(key, 'prototype')) { - this.throwUnexpectedToken(token, messages_1.Messages.StaticPrototype); - } - if (!isStatic && this.isPropertyKey(key, 'constructor')) { - if (kind !== 'method' || !method || (value && value.generator)) { - this.throwUnexpectedToken(token, messages_1.Messages.ConstructorSpecialMethod); - } - if (hasConstructor.value) { - this.throwUnexpectedToken(token, messages_1.Messages.DuplicateConstructor); - } - else { - hasConstructor.value = true; - } - kind = 'constructor'; - } - } - return this.finalize(node, new Node.MethodDefinition(key, computed, value, kind, isStatic)); - }; - Parser.prototype.parseClassElementList = function () { - var body = []; - var hasConstructor = { value: false }; - this.expect('{'); - while (!this.match('}')) { - if (this.match(';')) { - this.nextToken(); - } - else { - body.push(this.parseClassElement(hasConstructor)); - } - } - this.expect('}'); - return body; - }; - Parser.prototype.parseClassBody = function () { - var node = this.createNode(); - var elementList = this.parseClassElementList(); - return this.finalize(node, new Node.ClassBody(elementList)); - }; - Parser.prototype.parseClassDeclaration = function (identifierIsOptional) { - var node = this.createNode(); - var previousStrict = this.context.strict; - this.context.strict = true; - this.expectKeyword('class'); - var id = (identifierIsOptional && (this.lookahead.type !== 3 /* Identifier */)) ? null : this.parseVariableIdentifier(); - var superClass = null; - if (this.matchKeyword('extends')) { - this.nextToken(); - superClass = this.isolateCoverGrammar(this.parseLeftHandSideExpressionAllowCall); - } - var classBody = this.parseClassBody(); - this.context.strict = previousStrict; - return this.finalize(node, new Node.ClassDeclaration(id, superClass, classBody)); - }; - Parser.prototype.parseClassExpression = function () { - var node = this.createNode(); - var previousStrict = this.context.strict; - this.context.strict = true; - this.expectKeyword('class'); - var id = (this.lookahead.type === 3 /* Identifier */) ? this.parseVariableIdentifier() : null; - var superClass = null; - if (this.matchKeyword('extends')) { - this.nextToken(); - superClass = this.isolateCoverGrammar(this.parseLeftHandSideExpressionAllowCall); - } - var classBody = this.parseClassBody(); - this.context.strict = previousStrict; - return this.finalize(node, new Node.ClassExpression(id, superClass, classBody)); - }; - // https://tc39.github.io/ecma262/#sec-scripts - // https://tc39.github.io/ecma262/#sec-modules - Parser.prototype.parseModule = function () { - this.context.strict = true; - this.context.isModule = true; - this.scanner.isModule = true; - var node = this.createNode(); - var body = this.parseDirectivePrologues(); - while (this.lookahead.type !== 2 /* EOF */) { - body.push(this.parseStatementListItem()); - } - return this.finalize(node, new Node.Module(body)); - }; - Parser.prototype.parseScript = function () { - var node = this.createNode(); - var body = this.parseDirectivePrologues(); - while (this.lookahead.type !== 2 /* EOF */) { - body.push(this.parseStatementListItem()); - } - return this.finalize(node, new Node.Script(body)); - }; - // https://tc39.github.io/ecma262/#sec-imports - Parser.prototype.parseModuleSpecifier = function () { - var node = this.createNode(); - if (this.lookahead.type !== 8 /* StringLiteral */) { - this.throwError(messages_1.Messages.InvalidModuleSpecifier); - } - var token = this.nextToken(); - var raw = this.getTokenRaw(token); - return this.finalize(node, new Node.Literal(token.value, raw)); - }; - // import {} ...; - Parser.prototype.parseImportSpecifier = function () { - var node = this.createNode(); - var imported; - var local; - if (this.lookahead.type === 3 /* Identifier */) { - imported = this.parseVariableIdentifier(); - local = imported; - if (this.matchContextualKeyword('as')) { - this.nextToken(); - local = this.parseVariableIdentifier(); - } - } - else { - imported = this.parseIdentifierName(); - local = imported; - if (this.matchContextualKeyword('as')) { - this.nextToken(); - local = this.parseVariableIdentifier(); - } - else { - this.throwUnexpectedToken(this.nextToken()); - } - } - return this.finalize(node, new Node.ImportSpecifier(local, imported)); - }; - // {foo, bar as bas} - Parser.prototype.parseNamedImports = function () { - this.expect('{'); - var specifiers = []; - while (!this.match('}')) { - specifiers.push(this.parseImportSpecifier()); - if (!this.match('}')) { - this.expect(','); - } - } - this.expect('}'); - return specifiers; - }; - // import ...; - Parser.prototype.parseImportDefaultSpecifier = function () { - var node = this.createNode(); - var local = this.parseIdentifierName(); - return this.finalize(node, new Node.ImportDefaultSpecifier(local)); - }; - // import <* as foo> ...; - Parser.prototype.parseImportNamespaceSpecifier = function () { - var node = this.createNode(); - this.expect('*'); - if (!this.matchContextualKeyword('as')) { - this.throwError(messages_1.Messages.NoAsAfterImportNamespace); - } - this.nextToken(); - var local = this.parseIdentifierName(); - return this.finalize(node, new Node.ImportNamespaceSpecifier(local)); - }; - Parser.prototype.parseImportDeclaration = function () { - if (this.context.inFunctionBody) { - this.throwError(messages_1.Messages.IllegalImportDeclaration); - } - var node = this.createNode(); - this.expectKeyword('import'); - var src; - var specifiers = []; - if (this.lookahead.type === 8 /* StringLiteral */) { - // import 'foo'; - src = this.parseModuleSpecifier(); - } - else { - if (this.match('{')) { - // import {bar} - specifiers = specifiers.concat(this.parseNamedImports()); - } - else if (this.match('*')) { - // import * as foo - specifiers.push(this.parseImportNamespaceSpecifier()); - } - else if (this.isIdentifierName(this.lookahead) && !this.matchKeyword('default')) { - // import foo - specifiers.push(this.parseImportDefaultSpecifier()); - if (this.match(',')) { - this.nextToken(); - if (this.match('*')) { - // import foo, * as foo - specifiers.push(this.parseImportNamespaceSpecifier()); - } - else if (this.match('{')) { - // import foo, {bar} - specifiers = specifiers.concat(this.parseNamedImports()); - } - else { - this.throwUnexpectedToken(this.lookahead); - } - } - } - else { - this.throwUnexpectedToken(this.nextToken()); - } - if (!this.matchContextualKeyword('from')) { - var message = this.lookahead.value ? messages_1.Messages.UnexpectedToken : messages_1.Messages.MissingFromClause; - this.throwError(message, this.lookahead.value); - } - this.nextToken(); - src = this.parseModuleSpecifier(); - } - this.consumeSemicolon(); - return this.finalize(node, new Node.ImportDeclaration(specifiers, src)); - }; - // https://tc39.github.io/ecma262/#sec-exports - Parser.prototype.parseExportSpecifier = function () { - var node = this.createNode(); - var local = this.parseIdentifierName(); - var exported = local; - if (this.matchContextualKeyword('as')) { - this.nextToken(); - exported = this.parseIdentifierName(); - } - return this.finalize(node, new Node.ExportSpecifier(local, exported)); - }; - Parser.prototype.parseExportDeclaration = function () { - if (this.context.inFunctionBody) { - this.throwError(messages_1.Messages.IllegalExportDeclaration); - } - var node = this.createNode(); - this.expectKeyword('export'); - var exportDeclaration; - if (this.matchKeyword('default')) { - // export default ... - this.nextToken(); - if (this.matchKeyword('function')) { - // export default function foo () {} - // export default function () {} - var declaration = this.parseFunctionDeclaration(true); - exportDeclaration = this.finalize(node, new Node.ExportDefaultDeclaration(declaration)); - } - else if (this.matchKeyword('class')) { - // export default class foo {} - var declaration = this.parseClassDeclaration(true); - exportDeclaration = this.finalize(node, new Node.ExportDefaultDeclaration(declaration)); - } - else if (this.matchContextualKeyword('async')) { - // export default async function f () {} - // export default async function () {} - // export default async x => x - var declaration = this.matchAsyncFunction() ? this.parseFunctionDeclaration(true) : this.parseAssignmentExpression(); - exportDeclaration = this.finalize(node, new Node.ExportDefaultDeclaration(declaration)); - } - else { - if (this.matchContextualKeyword('from')) { - this.throwError(messages_1.Messages.UnexpectedToken, this.lookahead.value); - } - // export default {}; - // export default []; - // export default (1 + 2); - var declaration = this.match('{') ? this.parseObjectInitializer() : - this.match('[') ? this.parseArrayInitializer() : this.parseAssignmentExpression(); - this.consumeSemicolon(); - exportDeclaration = this.finalize(node, new Node.ExportDefaultDeclaration(declaration)); - } - } - else if (this.match('*')) { - // export * from 'foo'; - this.nextToken(); - if (!this.matchContextualKeyword('from')) { - var message = this.lookahead.value ? messages_1.Messages.UnexpectedToken : messages_1.Messages.MissingFromClause; - this.throwError(message, this.lookahead.value); - } - this.nextToken(); - var src = this.parseModuleSpecifier(); - this.consumeSemicolon(); - exportDeclaration = this.finalize(node, new Node.ExportAllDeclaration(src)); - } - else if (this.lookahead.type === 4 /* Keyword */) { - // export var f = 1; - var declaration = void 0; - switch (this.lookahead.value) { - case 'let': - case 'const': - declaration = this.parseLexicalDeclaration({ inFor: false }); - break; - case 'var': - case 'class': - case 'function': - declaration = this.parseStatementListItem(); - break; - default: - this.throwUnexpectedToken(this.lookahead); - } - exportDeclaration = this.finalize(node, new Node.ExportNamedDeclaration(declaration, [], null)); - } - else if (this.matchAsyncFunction()) { - var declaration = this.parseFunctionDeclaration(); - exportDeclaration = this.finalize(node, new Node.ExportNamedDeclaration(declaration, [], null)); - } - else { - var specifiers = []; - var source = null; - var isExportFromIdentifier = false; - this.expect('{'); - while (!this.match('}')) { - isExportFromIdentifier = isExportFromIdentifier || this.matchKeyword('default'); - specifiers.push(this.parseExportSpecifier()); - if (!this.match('}')) { - this.expect(','); - } - } - this.expect('}'); - if (this.matchContextualKeyword('from')) { - // export {default} from 'foo'; - // export {foo} from 'foo'; - this.nextToken(); - source = this.parseModuleSpecifier(); - this.consumeSemicolon(); - } - else if (isExportFromIdentifier) { - // export {default}; // missing fromClause - var message = this.lookahead.value ? messages_1.Messages.UnexpectedToken : messages_1.Messages.MissingFromClause; - this.throwError(message, this.lookahead.value); - } - else { - // export {foo}; - this.consumeSemicolon(); - } - exportDeclaration = this.finalize(node, new Node.ExportNamedDeclaration(null, specifiers, source)); - } - return exportDeclaration; - }; - return Parser; - }()); - exports.Parser = Parser; - - -/***/ }, -/* 9 */ -/***/ function(module, exports) { - - "use strict"; - // Ensure the condition is true, otherwise throw an error. - // This is only to have a better contract semantic, i.e. another safety net - // to catch a logic error. The condition shall be fulfilled in normal case. - // Do NOT use this to enforce a certain condition on any user input. - Object.defineProperty(exports, "__esModule", { value: true }); - function assert(condition, message) { - /* istanbul ignore if */ - if (!condition) { - throw new Error('ASSERT: ' + message); - } - } - exports.assert = assert; - - -/***/ }, -/* 10 */ -/***/ function(module, exports) { - - "use strict"; - /* tslint:disable:max-classes-per-file */ - Object.defineProperty(exports, "__esModule", { value: true }); - var ErrorHandler = (function () { - function ErrorHandler() { - this.errors = []; - this.tolerant = false; - } - ErrorHandler.prototype.recordError = function (error) { - this.errors.push(error); - }; - ErrorHandler.prototype.tolerate = function (error) { - if (this.tolerant) { - this.recordError(error); - } - else { - throw error; - } - }; - ErrorHandler.prototype.constructError = function (msg, column) { - var error = new Error(msg); - try { - throw error; - } - catch (base) { - /* istanbul ignore else */ - if (Object.create && Object.defineProperty) { - error = Object.create(base); - Object.defineProperty(error, 'column', { value: column }); - } - } - /* istanbul ignore next */ - return error; - }; - ErrorHandler.prototype.createError = function (index, line, col, description) { - var msg = 'Line ' + line + ': ' + description; - var error = this.constructError(msg, col); - error.index = index; - error.lineNumber = line; - error.description = description; - return error; - }; - ErrorHandler.prototype.throwError = function (index, line, col, description) { - throw this.createError(index, line, col, description); - }; - ErrorHandler.prototype.tolerateError = function (index, line, col, description) { - var error = this.createError(index, line, col, description); - if (this.tolerant) { - this.recordError(error); - } - else { - throw error; - } - }; - return ErrorHandler; - }()); - exports.ErrorHandler = ErrorHandler; - - -/***/ }, -/* 11 */ -/***/ function(module, exports) { - - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - // Error messages should be identical to V8. - exports.Messages = { - BadGetterArity: 'Getter must not have any formal parameters', - BadSetterArity: 'Setter must have exactly one formal parameter', - BadSetterRestParameter: 'Setter function argument must not be a rest parameter', - ConstructorIsAsync: 'Class constructor may not be an async method', - ConstructorSpecialMethod: 'Class constructor may not be an accessor', - DeclarationMissingInitializer: 'Missing initializer in %0 declaration', - DefaultRestParameter: 'Unexpected token =', - DuplicateBinding: 'Duplicate binding %0', - DuplicateConstructor: 'A class may only have one constructor', - DuplicateProtoProperty: 'Duplicate __proto__ fields are not allowed in object literals', - ForInOfLoopInitializer: '%0 loop variable declaration may not have an initializer', - GeneratorInLegacyContext: 'Generator declarations are not allowed in legacy contexts', - IllegalBreak: 'Illegal break statement', - IllegalContinue: 'Illegal continue statement', - IllegalExportDeclaration: 'Unexpected token', - IllegalImportDeclaration: 'Unexpected token', - IllegalLanguageModeDirective: 'Illegal \'use strict\' directive in function with non-simple parameter list', - IllegalReturn: 'Illegal return statement', - InvalidEscapedReservedWord: 'Keyword must not contain escaped characters', - InvalidHexEscapeSequence: 'Invalid hexadecimal escape sequence', - InvalidLHSInAssignment: 'Invalid left-hand side in assignment', - InvalidLHSInForIn: 'Invalid left-hand side in for-in', - InvalidLHSInForLoop: 'Invalid left-hand side in for-loop', - InvalidModuleSpecifier: 'Unexpected token', - InvalidRegExp: 'Invalid regular expression', - LetInLexicalBinding: 'let is disallowed as a lexically bound name', - MissingFromClause: 'Unexpected token', - MultipleDefaultsInSwitch: 'More than one default clause in switch statement', - NewlineAfterThrow: 'Illegal newline after throw', - NoAsAfterImportNamespace: 'Unexpected token', - NoCatchOrFinally: 'Missing catch or finally after try', - ParameterAfterRestParameter: 'Rest parameter must be last formal parameter', - Redeclaration: '%0 \'%1\' has already been declared', - StaticPrototype: 'Classes may not have static property named prototype', - StrictCatchVariable: 'Catch variable may not be eval or arguments in strict mode', - StrictDelete: 'Delete of an unqualified identifier in strict mode.', - StrictFunction: 'In strict mode code, functions can only be declared at top level or inside a block', - StrictFunctionName: 'Function name may not be eval or arguments in strict mode', - StrictLHSAssignment: 'Assignment to eval or arguments is not allowed in strict mode', - StrictLHSPostfix: 'Postfix increment/decrement may not have eval or arguments operand in strict mode', - StrictLHSPrefix: 'Prefix increment/decrement may not have eval or arguments operand in strict mode', - StrictModeWith: 'Strict mode code may not include a with statement', - StrictOctalLiteral: 'Octal literals are not allowed in strict mode.', - StrictParamDupe: 'Strict mode function may not have duplicate parameter names', - StrictParamName: 'Parameter name eval or arguments is not allowed in strict mode', - StrictReservedWord: 'Use of future reserved word in strict mode', - StrictVarName: 'Variable name may not be eval or arguments in strict mode', - TemplateOctalLiteral: 'Octal literals are not allowed in template strings.', - UnexpectedEOS: 'Unexpected end of input', - UnexpectedIdentifier: 'Unexpected identifier', - UnexpectedNumber: 'Unexpected number', - UnexpectedReserved: 'Unexpected reserved word', - UnexpectedString: 'Unexpected string', - UnexpectedTemplate: 'Unexpected quasi %0', - UnexpectedToken: 'Unexpected token %0', - UnexpectedTokenIllegal: 'Unexpected token ILLEGAL', - UnknownLabel: 'Undefined label \'%0\'', - UnterminatedRegExp: 'Invalid regular expression: missing /' - }; - - -/***/ }, -/* 12 */ -/***/ function(module, exports, __nested_webpack_require_226595__) { - - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - var assert_1 = __nested_webpack_require_226595__(9); - var character_1 = __nested_webpack_require_226595__(4); - var messages_1 = __nested_webpack_require_226595__(11); - function hexValue(ch) { - return '0123456789abcdef'.indexOf(ch.toLowerCase()); - } - function octalValue(ch) { - return '01234567'.indexOf(ch); - } - var Scanner = (function () { - function Scanner(code, handler) { - this.source = code; - this.errorHandler = handler; - this.trackComment = false; - this.isModule = false; - this.length = code.length; - this.index = 0; - this.lineNumber = (code.length > 0) ? 1 : 0; - this.lineStart = 0; - this.curlyStack = []; - } - Scanner.prototype.saveState = function () { - return { - index: this.index, - lineNumber: this.lineNumber, - lineStart: this.lineStart - }; - }; - Scanner.prototype.restoreState = function (state) { - this.index = state.index; - this.lineNumber = state.lineNumber; - this.lineStart = state.lineStart; - }; - Scanner.prototype.eof = function () { - return this.index >= this.length; - }; - Scanner.prototype.throwUnexpectedToken = function (message) { - if (message === void 0) { message = messages_1.Messages.UnexpectedTokenIllegal; } - return this.errorHandler.throwError(this.index, this.lineNumber, this.index - this.lineStart + 1, message); - }; - Scanner.prototype.tolerateUnexpectedToken = function (message) { - if (message === void 0) { message = messages_1.Messages.UnexpectedTokenIllegal; } - this.errorHandler.tolerateError(this.index, this.lineNumber, this.index - this.lineStart + 1, message); - }; - // https://tc39.github.io/ecma262/#sec-comments - Scanner.prototype.skipSingleLineComment = function (offset) { - var comments = []; - var start, loc; - if (this.trackComment) { - comments = []; - start = this.index - offset; - loc = { - start: { - line: this.lineNumber, - column: this.index - this.lineStart - offset - }, - end: {} - }; - } - while (!this.eof()) { - var ch = this.source.charCodeAt(this.index); - ++this.index; - if (character_1.Character.isLineTerminator(ch)) { - if (this.trackComment) { - loc.end = { - line: this.lineNumber, - column: this.index - this.lineStart - 1 - }; - var entry = { - multiLine: false, - slice: [start + offset, this.index - 1], - range: [start, this.index - 1], - loc: loc - }; - comments.push(entry); - } - if (ch === 13 && this.source.charCodeAt(this.index) === 10) { - ++this.index; - } - ++this.lineNumber; - this.lineStart = this.index; - return comments; - } - } - if (this.trackComment) { - loc.end = { - line: this.lineNumber, - column: this.index - this.lineStart - }; - var entry = { - multiLine: false, - slice: [start + offset, this.index], - range: [start, this.index], - loc: loc - }; - comments.push(entry); - } - return comments; - }; - Scanner.prototype.skipMultiLineComment = function () { - var comments = []; - var start, loc; - if (this.trackComment) { - comments = []; - start = this.index - 2; - loc = { - start: { - line: this.lineNumber, - column: this.index - this.lineStart - 2 - }, - end: {} - }; - } - while (!this.eof()) { - var ch = this.source.charCodeAt(this.index); - if (character_1.Character.isLineTerminator(ch)) { - if (ch === 0x0D && this.source.charCodeAt(this.index + 1) === 0x0A) { - ++this.index; - } - ++this.lineNumber; - ++this.index; - this.lineStart = this.index; - } - else if (ch === 0x2A) { - // Block comment ends with '*/'. - if (this.source.charCodeAt(this.index + 1) === 0x2F) { - this.index += 2; - if (this.trackComment) { - loc.end = { - line: this.lineNumber, - column: this.index - this.lineStart - }; - var entry = { - multiLine: true, - slice: [start + 2, this.index - 2], - range: [start, this.index], - loc: loc - }; - comments.push(entry); - } - return comments; - } - ++this.index; - } - else { - ++this.index; - } - } - // Ran off the end of the file - the whole thing is a comment - if (this.trackComment) { - loc.end = { - line: this.lineNumber, - column: this.index - this.lineStart - }; - var entry = { - multiLine: true, - slice: [start + 2, this.index], - range: [start, this.index], - loc: loc - }; - comments.push(entry); - } - this.tolerateUnexpectedToken(); - return comments; - }; - Scanner.prototype.scanComments = function () { - var comments; - if (this.trackComment) { - comments = []; - } - var start = (this.index === 0); - while (!this.eof()) { - var ch = this.source.charCodeAt(this.index); - if (character_1.Character.isWhiteSpace(ch)) { - ++this.index; - } - else if (character_1.Character.isLineTerminator(ch)) { - ++this.index; - if (ch === 0x0D && this.source.charCodeAt(this.index) === 0x0A) { - ++this.index; - } - ++this.lineNumber; - this.lineStart = this.index; - start = true; - } - else if (ch === 0x2F) { - ch = this.source.charCodeAt(this.index + 1); - if (ch === 0x2F) { - this.index += 2; - var comment = this.skipSingleLineComment(2); - if (this.trackComment) { - comments = comments.concat(comment); - } - start = true; - } - else if (ch === 0x2A) { - this.index += 2; - var comment = this.skipMultiLineComment(); - if (this.trackComment) { - comments = comments.concat(comment); - } - } - else { - break; - } - } - else if (start && ch === 0x2D) { - // U+003E is '>' - if ((this.source.charCodeAt(this.index + 1) === 0x2D) && (this.source.charCodeAt(this.index + 2) === 0x3E)) { - // '-->' is a single-line comment - this.index += 3; - var comment = this.skipSingleLineComment(3); - if (this.trackComment) { - comments = comments.concat(comment); - } - } - else { - break; - } - } - else if (ch === 0x3C && !this.isModule) { - if (this.source.slice(this.index + 1, this.index + 4) === '!--') { - this.index += 4; // `", i, "Comment is not closed.") - } else if( xmlData.substr(i + 1, 2) === '!D') { - const closeIndex = findClosingIndex(xmlData, ">", i, "DOCTYPE is not closed.") - const tagExp = xmlData.substring(i, closeIndex); - if(tagExp.indexOf("[") >= 0){ - i = xmlData.indexOf("]>", i) + 1; - }else{ - i = closeIndex; - } - }else if(xmlData.substr(i + 1, 2) === '![') { - const closeIndex = findClosingIndex(xmlData, "]]>", i, "CDATA is not closed.") - 2 - const tagExp = xmlData.substring(i + 9,closeIndex); - - //considerations - //1. CDATA will always have parent node - //2. A tag with CDATA is not a leaf node so it's value would be string type. - if(textData){ - currentNode.val = util.getValue(currentNode.val) + '' + processTagValue(currentNode.tagname, textData , options); - textData = ""; - } - - if (options.cdataTagName) { - //add cdata node - const childNode = new xmlNode(options.cdataTagName, currentNode, tagExp); - currentNode.addChild(childNode); - //for backtracking - currentNode.val = util.getValue(currentNode.val) + options.cdataPositionChar; - //add rest value to parent node - if (tagExp) { - childNode.val = tagExp; - } - } else { - currentNode.val = (currentNode.val || '') + (tagExp || ''); - } - - i = closeIndex + 2; - }else {//Opening tag - const result = closingIndexForOpeningTag(xmlData, i+1) - let tagExp = result.data; - const closeIndex = result.index; - const separatorIndex = tagExp.indexOf(" "); - let tagName = tagExp; - let shouldBuildAttributesMap = true; - if(separatorIndex !== -1){ - tagName = tagExp.substr(0, separatorIndex).replace(/\s\s*$/, ''); - tagExp = tagExp.substr(separatorIndex + 1); - } - - if(options.ignoreNameSpace){ - const colonIndex = tagName.indexOf(":"); - if(colonIndex !== -1){ - tagName = tagName.substr(colonIndex+1); - shouldBuildAttributesMap = tagName !== result.data.substr(colonIndex + 1); - } - } - - //save text to parent node - if (currentNode && textData) { - if(currentNode.tagname !== '!xml'){ - currentNode.val = util.getValue(currentNode.val) + '' + processTagValue( currentNode.tagname, textData, options); - } - } - - if(tagExp.length > 0 && tagExp.lastIndexOf("/") === tagExp.length - 1){//selfClosing tag - - if(tagName[tagName.length - 1] === "/"){ //remove trailing '/' - tagName = tagName.substr(0, tagName.length - 1); - tagExp = tagName; - }else{ - tagExp = tagExp.substr(0, tagExp.length - 1); - } - - const childNode = new xmlNode(tagName, currentNode, ''); - if(tagName !== tagExp){ - childNode.attrsMap = buildAttributesMap(tagExp, options); - } - currentNode.addChild(childNode); - }else{//opening tag - - const childNode = new xmlNode( tagName, currentNode ); - if (options.stopNodes.length && options.stopNodes.includes(childNode.tagname)) { - childNode.startIndex=closeIndex; - } - if(tagName !== tagExp && shouldBuildAttributesMap){ - childNode.attrsMap = buildAttributesMap(tagExp, options); - } - currentNode.addChild(childNode); - currentNode = childNode; - } - textData = ""; - i = closeIndex; - } - }else{ - textData += xmlData[i]; - } - } - return xmlObj; -} - -function closingIndexForOpeningTag(data, i){ - let attrBoundary; - let tagExp = ""; - for (let index = i; index < data.length; index++) { - let ch = data[index]; - if (attrBoundary) { - if (ch === attrBoundary) attrBoundary = "";//reset - } else if (ch === '"' || ch === "'") { - attrBoundary = ch; - } else if (ch === '>') { - return { - data: tagExp, - index: index - } - } else if (ch === '\t') { - ch = " " - } - tagExp += ch; - } -} - -function findClosingIndex(xmlData, str, i, errMsg){ - const closingIndex = xmlData.indexOf(str, i); - if(closingIndex === -1){ - throw new Error(errMsg) - }else{ - return closingIndex + str.length - 1; - } -} - -exports.getTraversalObj = getTraversalObj; - - -/***/ }), - -/***/ 91683: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -"use strict"; - -const path_1 = __nccwpck_require__(85622); -/** - * File URI to Path function. - * - * @param {String} uri - * @return {String} path - * @api public - */ -function fileUriToPath(uri) { - if (typeof uri !== 'string' || - uri.length <= 7 || - uri.substring(0, 7) !== 'file://') { - throw new TypeError('must pass in a file:// URI to convert to a file path'); - } - const rest = decodeURI(uri.substring(7)); - const firstSlash = rest.indexOf('/'); - let host = rest.substring(0, firstSlash); - let path = rest.substring(firstSlash + 1); - // 2. Scheme Definition - // As a special case, can be the string "localhost" or the empty - // string; this is interpreted as "the machine from which the URL is - // being interpreted". - if (host === 'localhost') { - host = ''; - } - if (host) { - host = path_1.sep + path_1.sep + host; - } - // 3.2 Drives, drive letters, mount points, file system root - // Drive letters are mapped into the top of a file URI in various ways, - // depending on the implementation; some applications substitute - // vertical bar ("|") for the colon after the drive letter, yielding - // "file:///c|/tmp/test.txt". In some cases, the colon is left - // unchanged, as in "file:///c:/tmp/test.txt". In other cases, the - // colon is simply omitted, as in "file:///c/tmp/test.txt". - path = path.replace(/^(.+)\|/, '$1:'); - // for Windows, we need to invert the path separators from what a URI uses - if (path_1.sep === '\\') { - path = path.replace(/\//g, '\\'); - } - if (/^.+:/.test(path)) { - // has Windows drive at beginning of path - } - else { - // unix path… - path = path_1.sep + path; - } - return host + path; -} -module.exports = fileUriToPath; -//# sourceMappingURL=index.js.map - -/***/ }), - -/***/ 43338: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -"use strict"; - - -const fs = __nccwpck_require__(14178) -const path = __nccwpck_require__(85622) -const mkdirpSync = __nccwpck_require__(12915).mkdirsSync -const utimesSync = __nccwpck_require__(52548).utimesMillisSync -const stat = __nccwpck_require__(73901) - -function copySync (src, dest, opts) { - if (typeof opts === 'function') { - opts = { filter: opts } - } - - opts = opts || {} - opts.clobber = 'clobber' in opts ? !!opts.clobber : true // default to true for now - opts.overwrite = 'overwrite' in opts ? !!opts.overwrite : opts.clobber // overwrite falls back to clobber - - // Warn about using preserveTimestamps on 32-bit node - if (opts.preserveTimestamps && process.arch === 'ia32') { - console.warn(`fs-extra: Using the preserveTimestamps option in 32-bit node is not recommended;\n - see https://github.com/jprichardson/node-fs-extra/issues/269`) - } - - const { srcStat, destStat } = stat.checkPathsSync(src, dest, 'copy') - stat.checkParentPathsSync(src, srcStat, dest, 'copy') - return handleFilterAndCopy(destStat, src, dest, opts) -} - -function handleFilterAndCopy (destStat, src, dest, opts) { - if (opts.filter && !opts.filter(src, dest)) return - const destParent = path.dirname(dest) - if (!fs.existsSync(destParent)) mkdirpSync(destParent) - return startCopy(destStat, src, dest, opts) -} - -function startCopy (destStat, src, dest, opts) { - if (opts.filter && !opts.filter(src, dest)) return - return getStats(destStat, src, dest, opts) -} - -function getStats (destStat, src, dest, opts) { - const statSync = opts.dereference ? fs.statSync : fs.lstatSync - const srcStat = statSync(src) - - if (srcStat.isDirectory()) return onDir(srcStat, destStat, src, dest, opts) - else if (srcStat.isFile() || - srcStat.isCharacterDevice() || - srcStat.isBlockDevice()) return onFile(srcStat, destStat, src, dest, opts) - else if (srcStat.isSymbolicLink()) return onLink(destStat, src, dest, opts) -} - -function onFile (srcStat, destStat, src, dest, opts) { - if (!destStat) return copyFile(srcStat, src, dest, opts) - return mayCopyFile(srcStat, src, dest, opts) -} - -function mayCopyFile (srcStat, src, dest, opts) { - if (opts.overwrite) { - fs.unlinkSync(dest) - return copyFile(srcStat, src, dest, opts) - } else if (opts.errorOnExist) { - throw new Error(`'${dest}' already exists`) - } -} - -function copyFile (srcStat, src, dest, opts) { - if (typeof fs.copyFileSync === 'function') { - fs.copyFileSync(src, dest) - fs.chmodSync(dest, srcStat.mode) - if (opts.preserveTimestamps) { - return utimesSync(dest, srcStat.atime, srcStat.mtime) - } - return - } - return copyFileFallback(srcStat, src, dest, opts) -} - -function copyFileFallback (srcStat, src, dest, opts) { - const BUF_LENGTH = 64 * 1024 - const _buff = __nccwpck_require__(47696)(BUF_LENGTH) - - const fdr = fs.openSync(src, 'r') - const fdw = fs.openSync(dest, 'w', srcStat.mode) - let pos = 0 - - while (pos < srcStat.size) { - const bytesRead = fs.readSync(fdr, _buff, 0, BUF_LENGTH, pos) - fs.writeSync(fdw, _buff, 0, bytesRead) - pos += bytesRead - } - - if (opts.preserveTimestamps) fs.futimesSync(fdw, srcStat.atime, srcStat.mtime) - - fs.closeSync(fdr) - fs.closeSync(fdw) -} - -function onDir (srcStat, destStat, src, dest, opts) { - if (!destStat) return mkDirAndCopy(srcStat, src, dest, opts) - if (destStat && !destStat.isDirectory()) { - throw new Error(`Cannot overwrite non-directory '${dest}' with directory '${src}'.`) - } - return copyDir(src, dest, opts) -} - -function mkDirAndCopy (srcStat, src, dest, opts) { - fs.mkdirSync(dest) - copyDir(src, dest, opts) - return fs.chmodSync(dest, srcStat.mode) -} - -function copyDir (src, dest, opts) { - fs.readdirSync(src).forEach(item => copyDirItem(item, src, dest, opts)) -} - -function copyDirItem (item, src, dest, opts) { - const srcItem = path.join(src, item) - const destItem = path.join(dest, item) - const { destStat } = stat.checkPathsSync(srcItem, destItem, 'copy') - return startCopy(destStat, srcItem, destItem, opts) -} - -function onLink (destStat, src, dest, opts) { - let resolvedSrc = fs.readlinkSync(src) - if (opts.dereference) { - resolvedSrc = path.resolve(process.cwd(), resolvedSrc) - } - - if (!destStat) { - return fs.symlinkSync(resolvedSrc, dest) - } else { - let resolvedDest - try { - resolvedDest = fs.readlinkSync(dest) - } catch (err) { - // dest exists and is a regular file or directory, - // Windows may throw UNKNOWN error. If dest already exists, - // fs throws error anyway, so no need to guard against it here. - if (err.code === 'EINVAL' || err.code === 'UNKNOWN') return fs.symlinkSync(resolvedSrc, dest) - throw err - } - if (opts.dereference) { - resolvedDest = path.resolve(process.cwd(), resolvedDest) - } - if (stat.isSrcSubdir(resolvedSrc, resolvedDest)) { - throw new Error(`Cannot copy '${resolvedSrc}' to a subdirectory of itself, '${resolvedDest}'.`) - } - - // prevent copy if src is a subdir of dest since unlinking - // dest in this case would result in removing src contents - // and therefore a broken symlink would be created. - if (fs.statSync(dest).isDirectory() && stat.isSrcSubdir(resolvedDest, resolvedSrc)) { - throw new Error(`Cannot overwrite '${resolvedDest}' with '${resolvedSrc}'.`) - } - return copyLink(resolvedSrc, dest) - } -} - -function copyLink (resolvedSrc, dest) { - fs.unlinkSync(dest) - return fs.symlinkSync(resolvedSrc, dest) -} - -module.exports = copySync - - -/***/ }), - -/***/ 11135: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -"use strict"; - - -module.exports = { - copySync: __nccwpck_require__(43338) -} - - -/***/ }), - -/***/ 38834: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -"use strict"; - - -const fs = __nccwpck_require__(14178) -const path = __nccwpck_require__(85622) -const mkdirp = __nccwpck_require__(12915).mkdirs -const pathExists = __nccwpck_require__(43835).pathExists -const utimes = __nccwpck_require__(52548).utimesMillis -const stat = __nccwpck_require__(73901) - -function copy (src, dest, opts, cb) { - if (typeof opts === 'function' && !cb) { - cb = opts - opts = {} - } else if (typeof opts === 'function') { - opts = { filter: opts } - } - - cb = cb || function () {} - opts = opts || {} - - opts.clobber = 'clobber' in opts ? !!opts.clobber : true // default to true for now - opts.overwrite = 'overwrite' in opts ? !!opts.overwrite : opts.clobber // overwrite falls back to clobber - - // Warn about using preserveTimestamps on 32-bit node - if (opts.preserveTimestamps && process.arch === 'ia32') { - console.warn(`fs-extra: Using the preserveTimestamps option in 32-bit node is not recommended;\n - see https://github.com/jprichardson/node-fs-extra/issues/269`) - } - - stat.checkPaths(src, dest, 'copy', (err, stats) => { - if (err) return cb(err) - const { srcStat, destStat } = stats - stat.checkParentPaths(src, srcStat, dest, 'copy', err => { - if (err) return cb(err) - if (opts.filter) return handleFilter(checkParentDir, destStat, src, dest, opts, cb) - return checkParentDir(destStat, src, dest, opts, cb) - }) - }) -} - -function checkParentDir (destStat, src, dest, opts, cb) { - const destParent = path.dirname(dest) - pathExists(destParent, (err, dirExists) => { - if (err) return cb(err) - if (dirExists) return startCopy(destStat, src, dest, opts, cb) - mkdirp(destParent, err => { - if (err) return cb(err) - return startCopy(destStat, src, dest, opts, cb) - }) - }) -} - -function handleFilter (onInclude, destStat, src, dest, opts, cb) { - Promise.resolve(opts.filter(src, dest)).then(include => { - if (include) return onInclude(destStat, src, dest, opts, cb) - return cb() - }, error => cb(error)) -} - -function startCopy (destStat, src, dest, opts, cb) { - if (opts.filter) return handleFilter(getStats, destStat, src, dest, opts, cb) - return getStats(destStat, src, dest, opts, cb) -} - -function getStats (destStat, src, dest, opts, cb) { - const stat = opts.dereference ? fs.stat : fs.lstat - stat(src, (err, srcStat) => { - if (err) return cb(err) - - if (srcStat.isDirectory()) return onDir(srcStat, destStat, src, dest, opts, cb) - else if (srcStat.isFile() || - srcStat.isCharacterDevice() || - srcStat.isBlockDevice()) return onFile(srcStat, destStat, src, dest, opts, cb) - else if (srcStat.isSymbolicLink()) return onLink(destStat, src, dest, opts, cb) - }) -} - -function onFile (srcStat, destStat, src, dest, opts, cb) { - if (!destStat) return copyFile(srcStat, src, dest, opts, cb) - return mayCopyFile(srcStat, src, dest, opts, cb) -} - -function mayCopyFile (srcStat, src, dest, opts, cb) { - if (opts.overwrite) { - fs.unlink(dest, err => { - if (err) return cb(err) - return copyFile(srcStat, src, dest, opts, cb) - }) - } else if (opts.errorOnExist) { - return cb(new Error(`'${dest}' already exists`)) - } else return cb() -} - -function copyFile (srcStat, src, dest, opts, cb) { - if (typeof fs.copyFile === 'function') { - return fs.copyFile(src, dest, err => { - if (err) return cb(err) - return setDestModeAndTimestamps(srcStat, dest, opts, cb) - }) - } - return copyFileFallback(srcStat, src, dest, opts, cb) -} - -function copyFileFallback (srcStat, src, dest, opts, cb) { - const rs = fs.createReadStream(src) - rs.on('error', err => cb(err)).once('open', () => { - const ws = fs.createWriteStream(dest, { mode: srcStat.mode }) - ws.on('error', err => cb(err)) - .on('open', () => rs.pipe(ws)) - .once('close', () => setDestModeAndTimestamps(srcStat, dest, opts, cb)) - }) -} - -function setDestModeAndTimestamps (srcStat, dest, opts, cb) { - fs.chmod(dest, srcStat.mode, err => { - if (err) return cb(err) - if (opts.preserveTimestamps) { - return utimes(dest, srcStat.atime, srcStat.mtime, cb) - } - return cb() - }) -} - -function onDir (srcStat, destStat, src, dest, opts, cb) { - if (!destStat) return mkDirAndCopy(srcStat, src, dest, opts, cb) - if (destStat && !destStat.isDirectory()) { - return cb(new Error(`Cannot overwrite non-directory '${dest}' with directory '${src}'.`)) - } - return copyDir(src, dest, opts, cb) -} - -function mkDirAndCopy (srcStat, src, dest, opts, cb) { - fs.mkdir(dest, err => { - if (err) return cb(err) - copyDir(src, dest, opts, err => { - if (err) return cb(err) - return fs.chmod(dest, srcStat.mode, cb) - }) - }) -} - -function copyDir (src, dest, opts, cb) { - fs.readdir(src, (err, items) => { - if (err) return cb(err) - return copyDirItems(items, src, dest, opts, cb) - }) -} - -function copyDirItems (items, src, dest, opts, cb) { - const item = items.pop() - if (!item) return cb() - return copyDirItem(items, item, src, dest, opts, cb) -} - -function copyDirItem (items, item, src, dest, opts, cb) { - const srcItem = path.join(src, item) - const destItem = path.join(dest, item) - stat.checkPaths(srcItem, destItem, 'copy', (err, stats) => { - if (err) return cb(err) - const { destStat } = stats - startCopy(destStat, srcItem, destItem, opts, err => { - if (err) return cb(err) - return copyDirItems(items, src, dest, opts, cb) - }) - }) -} - -function onLink (destStat, src, dest, opts, cb) { - fs.readlink(src, (err, resolvedSrc) => { - if (err) return cb(err) - if (opts.dereference) { - resolvedSrc = path.resolve(process.cwd(), resolvedSrc) - } - - if (!destStat) { - return fs.symlink(resolvedSrc, dest, cb) - } else { - fs.readlink(dest, (err, resolvedDest) => { - if (err) { - // dest exists and is a regular file or directory, - // Windows may throw UNKNOWN error. If dest already exists, - // fs throws error anyway, so no need to guard against it here. - if (err.code === 'EINVAL' || err.code === 'UNKNOWN') return fs.symlink(resolvedSrc, dest, cb) - return cb(err) - } - if (opts.dereference) { - resolvedDest = path.resolve(process.cwd(), resolvedDest) - } - if (stat.isSrcSubdir(resolvedSrc, resolvedDest)) { - return cb(new Error(`Cannot copy '${resolvedSrc}' to a subdirectory of itself, '${resolvedDest}'.`)) - } - - // do not copy if src is a subdir of dest since unlinking - // dest in this case would result in removing src contents - // and therefore a broken symlink would be created. - if (destStat.isDirectory() && stat.isSrcSubdir(resolvedDest, resolvedSrc)) { - return cb(new Error(`Cannot overwrite '${resolvedDest}' with '${resolvedSrc}'.`)) - } - return copyLink(resolvedSrc, dest, cb) - }) - } - }) -} - -function copyLink (resolvedSrc, dest, cb) { - fs.unlink(dest, err => { - if (err) return cb(err) - return fs.symlink(resolvedSrc, dest, cb) - }) -} - -module.exports = copy - - -/***/ }), - -/***/ 61335: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -"use strict"; - - -const u = __nccwpck_require__(9046)/* .fromCallback */ .E -module.exports = { - copy: u(__nccwpck_require__(38834)) -} - - -/***/ }), - -/***/ 96970: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -"use strict"; - - -const u = __nccwpck_require__(9046)/* .fromCallback */ .E -const fs = __nccwpck_require__(14178) -const path = __nccwpck_require__(85622) -const mkdir = __nccwpck_require__(12915) -const remove = __nccwpck_require__(47357) - -const emptyDir = u(function emptyDir (dir, callback) { - callback = callback || function () {} - fs.readdir(dir, (err, items) => { - if (err) return mkdir.mkdirs(dir, callback) - - items = items.map(item => path.join(dir, item)) - - deleteItem() - - function deleteItem () { - const item = items.pop() - if (!item) return callback() - remove.remove(item, err => { - if (err) return callback(err) - deleteItem() - }) - } - }) -}) - -function emptyDirSync (dir) { - let items - try { - items = fs.readdirSync(dir) - } catch (err) { - return mkdir.mkdirsSync(dir) - } - - items.forEach(item => { - item = path.join(dir, item) - remove.removeSync(item) - }) -} - -module.exports = { - emptyDirSync, - emptydirSync: emptyDirSync, - emptyDir, - emptydir: emptyDir -} - - -/***/ }), - -/***/ 2164: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -"use strict"; - - -const u = __nccwpck_require__(9046)/* .fromCallback */ .E -const path = __nccwpck_require__(85622) -const fs = __nccwpck_require__(14178) -const mkdir = __nccwpck_require__(12915) -const pathExists = __nccwpck_require__(43835).pathExists - -function createFile (file, callback) { - function makeFile () { - fs.writeFile(file, '', err => { - if (err) return callback(err) - callback() - }) - } - - fs.stat(file, (err, stats) => { // eslint-disable-line handle-callback-err - if (!err && stats.isFile()) return callback() - const dir = path.dirname(file) - pathExists(dir, (err, dirExists) => { - if (err) return callback(err) - if (dirExists) return makeFile() - mkdir.mkdirs(dir, err => { - if (err) return callback(err) - makeFile() - }) - }) - }) -} - -function createFileSync (file) { - let stats - try { - stats = fs.statSync(file) - } catch (e) {} - if (stats && stats.isFile()) return - - const dir = path.dirname(file) - if (!fs.existsSync(dir)) { - mkdir.mkdirsSync(dir) - } - - fs.writeFileSync(file, '') -} - -module.exports = { - createFile: u(createFile), - createFileSync -} - - -/***/ }), - -/***/ 40055: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -"use strict"; - - -const file = __nccwpck_require__(2164) -const link = __nccwpck_require__(53797) -const symlink = __nccwpck_require__(72549) - -module.exports = { - // file - createFile: file.createFile, - createFileSync: file.createFileSync, - ensureFile: file.createFile, - ensureFileSync: file.createFileSync, - // link - createLink: link.createLink, - createLinkSync: link.createLinkSync, - ensureLink: link.createLink, - ensureLinkSync: link.createLinkSync, - // symlink - createSymlink: symlink.createSymlink, - createSymlinkSync: symlink.createSymlinkSync, - ensureSymlink: symlink.createSymlink, - ensureSymlinkSync: symlink.createSymlinkSync -} - - -/***/ }), - -/***/ 53797: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -"use strict"; - - -const u = __nccwpck_require__(9046)/* .fromCallback */ .E -const path = __nccwpck_require__(85622) -const fs = __nccwpck_require__(14178) -const mkdir = __nccwpck_require__(12915) -const pathExists = __nccwpck_require__(43835).pathExists - -function createLink (srcpath, dstpath, callback) { - function makeLink (srcpath, dstpath) { - fs.link(srcpath, dstpath, err => { - if (err) return callback(err) - callback(null) - }) - } - - pathExists(dstpath, (err, destinationExists) => { - if (err) return callback(err) - if (destinationExists) return callback(null) - fs.lstat(srcpath, (err) => { - if (err) { - err.message = err.message.replace('lstat', 'ensureLink') - return callback(err) - } - - const dir = path.dirname(dstpath) - pathExists(dir, (err, dirExists) => { - if (err) return callback(err) - if (dirExists) return makeLink(srcpath, dstpath) - mkdir.mkdirs(dir, err => { - if (err) return callback(err) - makeLink(srcpath, dstpath) - }) - }) - }) - }) -} - -function createLinkSync (srcpath, dstpath) { - const destinationExists = fs.existsSync(dstpath) - if (destinationExists) return undefined - - try { - fs.lstatSync(srcpath) - } catch (err) { - err.message = err.message.replace('lstat', 'ensureLink') - throw err - } - - const dir = path.dirname(dstpath) - const dirExists = fs.existsSync(dir) - if (dirExists) return fs.linkSync(srcpath, dstpath) - mkdir.mkdirsSync(dir) - - return fs.linkSync(srcpath, dstpath) -} - -module.exports = { - createLink: u(createLink), - createLinkSync -} - - -/***/ }), - -/***/ 53727: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -"use strict"; - - -const path = __nccwpck_require__(85622) -const fs = __nccwpck_require__(14178) -const pathExists = __nccwpck_require__(43835).pathExists - -/** - * Function that returns two types of paths, one relative to symlink, and one - * relative to the current working directory. Checks if path is absolute or - * relative. If the path is relative, this function checks if the path is - * relative to symlink or relative to current working directory. This is an - * initiative to find a smarter `srcpath` to supply when building symlinks. - * This allows you to determine which path to use out of one of three possible - * types of source paths. The first is an absolute path. This is detected by - * `path.isAbsolute()`. When an absolute path is provided, it is checked to - * see if it exists. If it does it's used, if not an error is returned - * (callback)/ thrown (sync). The other two options for `srcpath` are a - * relative url. By default Node's `fs.symlink` works by creating a symlink - * using `dstpath` and expects the `srcpath` to be relative to the newly - * created symlink. If you provide a `srcpath` that does not exist on the file - * system it results in a broken symlink. To minimize this, the function - * checks to see if the 'relative to symlink' source file exists, and if it - * does it will use it. If it does not, it checks if there's a file that - * exists that is relative to the current working directory, if does its used. - * This preserves the expectations of the original fs.symlink spec and adds - * the ability to pass in `relative to current working direcotry` paths. - */ - -function symlinkPaths (srcpath, dstpath, callback) { - if (path.isAbsolute(srcpath)) { - return fs.lstat(srcpath, (err) => { - if (err) { - err.message = err.message.replace('lstat', 'ensureSymlink') - return callback(err) - } - return callback(null, { - 'toCwd': srcpath, - 'toDst': srcpath - }) - }) - } else { - const dstdir = path.dirname(dstpath) - const relativeToDst = path.join(dstdir, srcpath) - return pathExists(relativeToDst, (err, exists) => { - if (err) return callback(err) - if (exists) { - return callback(null, { - 'toCwd': relativeToDst, - 'toDst': srcpath - }) - } else { - return fs.lstat(srcpath, (err) => { - if (err) { - err.message = err.message.replace('lstat', 'ensureSymlink') - return callback(err) - } - return callback(null, { - 'toCwd': srcpath, - 'toDst': path.relative(dstdir, srcpath) - }) - }) - } - }) - } -} - -function symlinkPathsSync (srcpath, dstpath) { - let exists - if (path.isAbsolute(srcpath)) { - exists = fs.existsSync(srcpath) - if (!exists) throw new Error('absolute srcpath does not exist') - return { - 'toCwd': srcpath, - 'toDst': srcpath - } - } else { - const dstdir = path.dirname(dstpath) - const relativeToDst = path.join(dstdir, srcpath) - exists = fs.existsSync(relativeToDst) - if (exists) { - return { - 'toCwd': relativeToDst, - 'toDst': srcpath - } - } else { - exists = fs.existsSync(srcpath) - if (!exists) throw new Error('relative srcpath does not exist') - return { - 'toCwd': srcpath, - 'toDst': path.relative(dstdir, srcpath) - } - } - } -} - -module.exports = { - symlinkPaths, - symlinkPathsSync -} - - -/***/ }), - -/***/ 18254: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -"use strict"; - - -const fs = __nccwpck_require__(14178) - -function symlinkType (srcpath, type, callback) { - callback = (typeof type === 'function') ? type : callback - type = (typeof type === 'function') ? false : type - if (type) return callback(null, type) - fs.lstat(srcpath, (err, stats) => { - if (err) return callback(null, 'file') - type = (stats && stats.isDirectory()) ? 'dir' : 'file' - callback(null, type) - }) -} - -function symlinkTypeSync (srcpath, type) { - let stats - - if (type) return type - try { - stats = fs.lstatSync(srcpath) - } catch (e) { - return 'file' - } - return (stats && stats.isDirectory()) ? 'dir' : 'file' -} - -module.exports = { - symlinkType, - symlinkTypeSync -} - - -/***/ }), - -/***/ 72549: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -"use strict"; - - -const u = __nccwpck_require__(9046)/* .fromCallback */ .E -const path = __nccwpck_require__(85622) -const fs = __nccwpck_require__(14178) -const _mkdirs = __nccwpck_require__(12915) -const mkdirs = _mkdirs.mkdirs -const mkdirsSync = _mkdirs.mkdirsSync - -const _symlinkPaths = __nccwpck_require__(53727) -const symlinkPaths = _symlinkPaths.symlinkPaths -const symlinkPathsSync = _symlinkPaths.symlinkPathsSync - -const _symlinkType = __nccwpck_require__(18254) -const symlinkType = _symlinkType.symlinkType -const symlinkTypeSync = _symlinkType.symlinkTypeSync - -const pathExists = __nccwpck_require__(43835).pathExists - -function createSymlink (srcpath, dstpath, type, callback) { - callback = (typeof type === 'function') ? type : callback - type = (typeof type === 'function') ? false : type - - pathExists(dstpath, (err, destinationExists) => { - if (err) return callback(err) - if (destinationExists) return callback(null) - symlinkPaths(srcpath, dstpath, (err, relative) => { - if (err) return callback(err) - srcpath = relative.toDst - symlinkType(relative.toCwd, type, (err, type) => { - if (err) return callback(err) - const dir = path.dirname(dstpath) - pathExists(dir, (err, dirExists) => { - if (err) return callback(err) - if (dirExists) return fs.symlink(srcpath, dstpath, type, callback) - mkdirs(dir, err => { - if (err) return callback(err) - fs.symlink(srcpath, dstpath, type, callback) - }) - }) - }) - }) - }) -} - -function createSymlinkSync (srcpath, dstpath, type) { - const destinationExists = fs.existsSync(dstpath) - if (destinationExists) return undefined - - const relative = symlinkPathsSync(srcpath, dstpath) - srcpath = relative.toDst - type = symlinkTypeSync(relative.toCwd, type) - const dir = path.dirname(dstpath) - const exists = fs.existsSync(dir) - if (exists) return fs.symlinkSync(srcpath, dstpath, type) - mkdirsSync(dir) - return fs.symlinkSync(srcpath, dstpath, type) -} - -module.exports = { - createSymlink: u(createSymlink), - createSymlinkSync -} - - -/***/ }), - -/***/ 61176: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -// This is adapted from https://github.com/normalize/mz -// Copyright (c) 2014-2016 Jonathan Ong me@jongleberry.com and Contributors -const u = __nccwpck_require__(9046)/* .fromCallback */ .E -const fs = __nccwpck_require__(14178) - -const api = [ - 'access', - 'appendFile', - 'chmod', - 'chown', - 'close', - 'copyFile', - 'fchmod', - 'fchown', - 'fdatasync', - 'fstat', - 'fsync', - 'ftruncate', - 'futimes', - 'lchown', - 'lchmod', - 'link', - 'lstat', - 'mkdir', - 'mkdtemp', - 'open', - 'readFile', - 'readdir', - 'readlink', - 'realpath', - 'rename', - 'rmdir', - 'stat', - 'symlink', - 'truncate', - 'unlink', - 'utimes', - 'writeFile' -].filter(key => { - // Some commands are not available on some systems. Ex: - // fs.copyFile was added in Node.js v8.5.0 - // fs.mkdtemp was added in Node.js v5.10.0 - // fs.lchown is not available on at least some Linux - return typeof fs[key] === 'function' -}) - -// Export all keys: -Object.keys(fs).forEach(key => { - if (key === 'promises') { - // fs.promises is a getter property that triggers ExperimentalWarning - // Don't re-export it here, the getter is defined in "lib/index.js" - return - } - exports[key] = fs[key] -}) - -// Universalify async methods: -api.forEach(method => { - exports[method] = u(fs[method]) -}) - -// We differ from mz/fs in that we still ship the old, broken, fs.exists() -// since we are a drop-in replacement for the native module -exports.exists = function (filename, callback) { - if (typeof callback === 'function') { - return fs.exists(filename, callback) - } - return new Promise(resolve => { - return fs.exists(filename, resolve) - }) -} - -// fs.read() & fs.write need special treatment due to multiple callback args - -exports.read = function (fd, buffer, offset, length, position, callback) { - if (typeof callback === 'function') { - return fs.read(fd, buffer, offset, length, position, callback) - } - return new Promise((resolve, reject) => { - fs.read(fd, buffer, offset, length, position, (err, bytesRead, buffer) => { - if (err) return reject(err) - resolve({ bytesRead, buffer }) - }) - }) -} - -// Function signature can be -// fs.write(fd, buffer[, offset[, length[, position]]], callback) -// OR -// fs.write(fd, string[, position[, encoding]], callback) -// We need to handle both cases, so we use ...args -exports.write = function (fd, buffer, ...args) { - if (typeof args[args.length - 1] === 'function') { - return fs.write(fd, buffer, ...args) - } - - return new Promise((resolve, reject) => { - fs.write(fd, buffer, ...args, (err, bytesWritten, buffer) => { - if (err) return reject(err) - resolve({ bytesWritten, buffer }) - }) - }) -} - -// fs.realpath.native only available in Node v9.2+ -if (typeof fs.realpath.native === 'function') { - exports.realpath.native = u(fs.realpath.native) -} - - -/***/ }), - -/***/ 5630: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -"use strict"; - - -module.exports = Object.assign( - {}, - // Export promiseified graceful-fs: - __nccwpck_require__(61176), - // Export extra methods: - __nccwpck_require__(11135), - __nccwpck_require__(61335), - __nccwpck_require__(96970), - __nccwpck_require__(40055), - __nccwpck_require__(40213), - __nccwpck_require__(12915), - __nccwpck_require__(69665), - __nccwpck_require__(41497), - __nccwpck_require__(16570), - __nccwpck_require__(43835), - __nccwpck_require__(47357) -) - -// Export fs.promises as a getter property so that we don't trigger -// ExperimentalWarning before fs.promises is actually accessed. -const fs = __nccwpck_require__(35747) -if (Object.getOwnPropertyDescriptor(fs, 'promises')) { - Object.defineProperty(module.exports, "promises", ({ - get () { return fs.promises } - })) -} - - -/***/ }), - -/***/ 40213: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -"use strict"; - - -const u = __nccwpck_require__(9046)/* .fromCallback */ .E -const jsonFile = __nccwpck_require__(18970) - -jsonFile.outputJson = u(__nccwpck_require__(60531)) -jsonFile.outputJsonSync = __nccwpck_require__(19421) -// aliases -jsonFile.outputJSON = jsonFile.outputJson -jsonFile.outputJSONSync = jsonFile.outputJsonSync -jsonFile.writeJSON = jsonFile.writeJson -jsonFile.writeJSONSync = jsonFile.writeJsonSync -jsonFile.readJSON = jsonFile.readJson -jsonFile.readJSONSync = jsonFile.readJsonSync - -module.exports = jsonFile - - -/***/ }), - -/***/ 18970: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -"use strict"; - - -const u = __nccwpck_require__(9046)/* .fromCallback */ .E -const jsonFile = __nccwpck_require__(26160) - -module.exports = { - // jsonfile exports - readJson: u(jsonFile.readFile), - readJsonSync: jsonFile.readFileSync, - writeJson: u(jsonFile.writeFile), - writeJsonSync: jsonFile.writeFileSync -} - - -/***/ }), - -/***/ 19421: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -"use strict"; - - -const fs = __nccwpck_require__(14178) -const path = __nccwpck_require__(85622) -const mkdir = __nccwpck_require__(12915) -const jsonFile = __nccwpck_require__(18970) - -function outputJsonSync (file, data, options) { - const dir = path.dirname(file) - - if (!fs.existsSync(dir)) { - mkdir.mkdirsSync(dir) - } - - jsonFile.writeJsonSync(file, data, options) -} - -module.exports = outputJsonSync - - -/***/ }), - -/***/ 60531: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -"use strict"; - - -const path = __nccwpck_require__(85622) -const mkdir = __nccwpck_require__(12915) -const pathExists = __nccwpck_require__(43835).pathExists -const jsonFile = __nccwpck_require__(18970) - -function outputJson (file, data, options, callback) { - if (typeof options === 'function') { - callback = options - options = {} - } - - const dir = path.dirname(file) - - pathExists(dir, (err, itDoes) => { - if (err) return callback(err) - if (itDoes) return jsonFile.writeJson(file, data, options, callback) - - mkdir.mkdirs(dir, err => { - if (err) return callback(err) - jsonFile.writeJson(file, data, options, callback) - }) - }) -} - -module.exports = outputJson - - -/***/ }), - -/***/ 12915: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -"use strict"; - -const u = __nccwpck_require__(9046)/* .fromCallback */ .E -const mkdirs = u(__nccwpck_require__(59677)) -const mkdirsSync = __nccwpck_require__(30684) - -module.exports = { - mkdirs, - mkdirsSync, - // alias - mkdirp: mkdirs, - mkdirpSync: mkdirsSync, - ensureDir: mkdirs, - ensureDirSync: mkdirsSync -} - - -/***/ }), - -/***/ 30684: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -"use strict"; - - -const fs = __nccwpck_require__(14178) -const path = __nccwpck_require__(85622) -const invalidWin32Path = __nccwpck_require__(71590).invalidWin32Path - -const o777 = parseInt('0777', 8) - -function mkdirsSync (p, opts, made) { - if (!opts || typeof opts !== 'object') { - opts = { mode: opts } - } - - let mode = opts.mode - const xfs = opts.fs || fs - - if (process.platform === 'win32' && invalidWin32Path(p)) { - const errInval = new Error(p + ' contains invalid WIN32 path characters.') - errInval.code = 'EINVAL' - throw errInval - } - - if (mode === undefined) { - mode = o777 & (~process.umask()) - } - if (!made) made = null - - p = path.resolve(p) - - try { - xfs.mkdirSync(p, mode) - made = made || p - } catch (err0) { - if (err0.code === 'ENOENT') { - if (path.dirname(p) === p) throw err0 - made = mkdirsSync(path.dirname(p), opts, made) - mkdirsSync(p, opts, made) - } else { - // In the case of any other error, just see if there's a dir there - // already. If so, then hooray! If not, then something is borked. - let stat - try { - stat = xfs.statSync(p) - } catch (err1) { - throw err0 - } - if (!stat.isDirectory()) throw err0 - } - } - - return made -} - -module.exports = mkdirsSync - - -/***/ }), - -/***/ 59677: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -"use strict"; - - -const fs = __nccwpck_require__(14178) -const path = __nccwpck_require__(85622) -const invalidWin32Path = __nccwpck_require__(71590).invalidWin32Path - -const o777 = parseInt('0777', 8) - -function mkdirs (p, opts, callback, made) { - if (typeof opts === 'function') { - callback = opts - opts = {} - } else if (!opts || typeof opts !== 'object') { - opts = { mode: opts } - } - - if (process.platform === 'win32' && invalidWin32Path(p)) { - const errInval = new Error(p + ' contains invalid WIN32 path characters.') - errInval.code = 'EINVAL' - return callback(errInval) - } - - let mode = opts.mode - const xfs = opts.fs || fs - - if (mode === undefined) { - mode = o777 & (~process.umask()) - } - if (!made) made = null - - callback = callback || function () {} - p = path.resolve(p) - - xfs.mkdir(p, mode, er => { - if (!er) { - made = made || p - return callback(null, made) - } - switch (er.code) { - case 'ENOENT': - if (path.dirname(p) === p) return callback(er) - mkdirs(path.dirname(p), opts, (er, made) => { - if (er) callback(er, made) - else mkdirs(p, opts, callback, made) - }) - break - - // In the case of any other error, just see if there's a dir - // there already. If so, then hooray! If not, then something - // is borked. - default: - xfs.stat(p, (er2, stat) => { - // if the stat fails, then that's super weird. - // let the original error be the failure reason. - if (er2 || !stat.isDirectory()) callback(er, made) - else callback(null, made) - }) - break - } - }) -} - -module.exports = mkdirs - - -/***/ }), - -/***/ 71590: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -"use strict"; - - -const path = __nccwpck_require__(85622) - -// get drive on windows -function getRootPath (p) { - p = path.normalize(path.resolve(p)).split(path.sep) - if (p.length > 0) return p[0] - return null -} - -// http://stackoverflow.com/a/62888/10333 contains more accurate -// TODO: expand to include the rest -const INVALID_PATH_CHARS = /[<>:"|?*]/ - -function invalidWin32Path (p) { - const rp = getRootPath(p) - p = p.replace(rp, '') - return INVALID_PATH_CHARS.test(p) -} - -module.exports = { - getRootPath, - invalidWin32Path -} - - -/***/ }), - -/***/ 69665: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -"use strict"; - - -module.exports = { - moveSync: __nccwpck_require__(96445) -} - - -/***/ }), - -/***/ 96445: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -"use strict"; - - -const fs = __nccwpck_require__(14178) -const path = __nccwpck_require__(85622) -const copySync = __nccwpck_require__(11135).copySync -const removeSync = __nccwpck_require__(47357).removeSync -const mkdirpSync = __nccwpck_require__(12915).mkdirpSync -const stat = __nccwpck_require__(73901) - -function moveSync (src, dest, opts) { - opts = opts || {} - const overwrite = opts.overwrite || opts.clobber || false - - const { srcStat } = stat.checkPathsSync(src, dest, 'move') - stat.checkParentPathsSync(src, srcStat, dest, 'move') - mkdirpSync(path.dirname(dest)) - return doRename(src, dest, overwrite) -} - -function doRename (src, dest, overwrite) { - if (overwrite) { - removeSync(dest) - return rename(src, dest, overwrite) - } - if (fs.existsSync(dest)) throw new Error('dest already exists.') - return rename(src, dest, overwrite) -} - -function rename (src, dest, overwrite) { - try { - fs.renameSync(src, dest) - } catch (err) { - if (err.code !== 'EXDEV') throw err - return moveAcrossDevice(src, dest, overwrite) - } -} - -function moveAcrossDevice (src, dest, overwrite) { - const opts = { - overwrite, - errorOnExist: true - } - copySync(src, dest, opts) - return removeSync(src) -} - -module.exports = moveSync - - -/***/ }), - -/***/ 41497: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -"use strict"; - - -const u = __nccwpck_require__(9046)/* .fromCallback */ .E -module.exports = { - move: u(__nccwpck_require__(72231)) -} - - -/***/ }), - -/***/ 72231: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -"use strict"; - - -const fs = __nccwpck_require__(14178) -const path = __nccwpck_require__(85622) -const copy = __nccwpck_require__(61335).copy -const remove = __nccwpck_require__(47357).remove -const mkdirp = __nccwpck_require__(12915).mkdirp -const pathExists = __nccwpck_require__(43835).pathExists -const stat = __nccwpck_require__(73901) - -function move (src, dest, opts, cb) { - if (typeof opts === 'function') { - cb = opts - opts = {} - } - - const overwrite = opts.overwrite || opts.clobber || false - - stat.checkPaths(src, dest, 'move', (err, stats) => { - if (err) return cb(err) - const { srcStat } = stats - stat.checkParentPaths(src, srcStat, dest, 'move', err => { - if (err) return cb(err) - mkdirp(path.dirname(dest), err => { - if (err) return cb(err) - return doRename(src, dest, overwrite, cb) - }) - }) - }) -} - -function doRename (src, dest, overwrite, cb) { - if (overwrite) { - return remove(dest, err => { - if (err) return cb(err) - return rename(src, dest, overwrite, cb) - }) - } - pathExists(dest, (err, destExists) => { - if (err) return cb(err) - if (destExists) return cb(new Error('dest already exists.')) - return rename(src, dest, overwrite, cb) - }) -} - -function rename (src, dest, overwrite, cb) { - fs.rename(src, dest, err => { - if (!err) return cb() - if (err.code !== 'EXDEV') return cb(err) - return moveAcrossDevice(src, dest, overwrite, cb) - }) -} - -function moveAcrossDevice (src, dest, overwrite, cb) { - const opts = { - overwrite, - errorOnExist: true - } - copy(src, dest, opts, err => { - if (err) return cb(err) - return remove(src, cb) - }) -} - -module.exports = move - - -/***/ }), - -/***/ 16570: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -"use strict"; - - -const u = __nccwpck_require__(9046)/* .fromCallback */ .E -const fs = __nccwpck_require__(14178) -const path = __nccwpck_require__(85622) -const mkdir = __nccwpck_require__(12915) -const pathExists = __nccwpck_require__(43835).pathExists - -function outputFile (file, data, encoding, callback) { - if (typeof encoding === 'function') { - callback = encoding - encoding = 'utf8' - } - - const dir = path.dirname(file) - pathExists(dir, (err, itDoes) => { - if (err) return callback(err) - if (itDoes) return fs.writeFile(file, data, encoding, callback) - - mkdir.mkdirs(dir, err => { - if (err) return callback(err) - - fs.writeFile(file, data, encoding, callback) - }) - }) -} - -function outputFileSync (file, ...args) { - const dir = path.dirname(file) - if (fs.existsSync(dir)) { - return fs.writeFileSync(file, ...args) - } - mkdir.mkdirsSync(dir) - fs.writeFileSync(file, ...args) -} - -module.exports = { - outputFile: u(outputFile), - outputFileSync -} - - -/***/ }), - -/***/ 43835: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -"use strict"; - -const u = __nccwpck_require__(9046)/* .fromPromise */ .p -const fs = __nccwpck_require__(61176) - -function pathExists (path) { - return fs.access(path).then(() => true).catch(() => false) -} - -module.exports = { - pathExists: u(pathExists), - pathExistsSync: fs.existsSync -} - - -/***/ }), - -/***/ 47357: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -"use strict"; - - -const u = __nccwpck_require__(9046)/* .fromCallback */ .E -const rimraf = __nccwpck_require__(38761) - -module.exports = { - remove: u(rimraf), - removeSync: rimraf.sync -} - - -/***/ }), - -/***/ 38761: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -"use strict"; - - -const fs = __nccwpck_require__(14178) -const path = __nccwpck_require__(85622) -const assert = __nccwpck_require__(42357) - -const isWindows = (process.platform === 'win32') - -function defaults (options) { - const methods = [ - 'unlink', - 'chmod', - 'stat', - 'lstat', - 'rmdir', - 'readdir' - ] - methods.forEach(m => { - options[m] = options[m] || fs[m] - m = m + 'Sync' - options[m] = options[m] || fs[m] - }) - - options.maxBusyTries = options.maxBusyTries || 3 -} - -function rimraf (p, options, cb) { - let busyTries = 0 - - if (typeof options === 'function') { - cb = options - options = {} - } - - assert(p, 'rimraf: missing path') - assert.strictEqual(typeof p, 'string', 'rimraf: path should be a string') - assert.strictEqual(typeof cb, 'function', 'rimraf: callback function required') - assert(options, 'rimraf: invalid options argument provided') - assert.strictEqual(typeof options, 'object', 'rimraf: options should be object') - - defaults(options) - - rimraf_(p, options, function CB (er) { - if (er) { - if ((er.code === 'EBUSY' || er.code === 'ENOTEMPTY' || er.code === 'EPERM') && - busyTries < options.maxBusyTries) { - busyTries++ - const time = busyTries * 100 - // try again, with the same exact callback as this one. - return setTimeout(() => rimraf_(p, options, CB), time) - } - - // already gone - if (er.code === 'ENOENT') er = null - } - - cb(er) - }) -} - -// Two possible strategies. -// 1. Assume it's a file. unlink it, then do the dir stuff on EPERM or EISDIR -// 2. Assume it's a directory. readdir, then do the file stuff on ENOTDIR -// -// Both result in an extra syscall when you guess wrong. However, there -// are likely far more normal files in the world than directories. This -// is based on the assumption that a the average number of files per -// directory is >= 1. -// -// If anyone ever complains about this, then I guess the strategy could -// be made configurable somehow. But until then, YAGNI. -function rimraf_ (p, options, cb) { - assert(p) - assert(options) - assert(typeof cb === 'function') - - // sunos lets the root user unlink directories, which is... weird. - // so we have to lstat here and make sure it's not a dir. - options.lstat(p, (er, st) => { - if (er && er.code === 'ENOENT') { - return cb(null) - } - - // Windows can EPERM on stat. Life is suffering. - if (er && er.code === 'EPERM' && isWindows) { - return fixWinEPERM(p, options, er, cb) - } - - if (st && st.isDirectory()) { - return rmdir(p, options, er, cb) - } - - options.unlink(p, er => { - if (er) { - if (er.code === 'ENOENT') { - return cb(null) - } - if (er.code === 'EPERM') { - return (isWindows) - ? fixWinEPERM(p, options, er, cb) - : rmdir(p, options, er, cb) - } - if (er.code === 'EISDIR') { - return rmdir(p, options, er, cb) - } - } - return cb(er) - }) - }) -} - -function fixWinEPERM (p, options, er, cb) { - assert(p) - assert(options) - assert(typeof cb === 'function') - if (er) { - assert(er instanceof Error) - } - - options.chmod(p, 0o666, er2 => { - if (er2) { - cb(er2.code === 'ENOENT' ? null : er) - } else { - options.stat(p, (er3, stats) => { - if (er3) { - cb(er3.code === 'ENOENT' ? null : er) - } else if (stats.isDirectory()) { - rmdir(p, options, er, cb) - } else { - options.unlink(p, cb) - } - }) - } - }) -} - -function fixWinEPERMSync (p, options, er) { - let stats - - assert(p) - assert(options) - if (er) { - assert(er instanceof Error) - } - - try { - options.chmodSync(p, 0o666) - } catch (er2) { - if (er2.code === 'ENOENT') { - return - } else { - throw er - } - } - - try { - stats = options.statSync(p) - } catch (er3) { - if (er3.code === 'ENOENT') { - return - } else { - throw er - } - } - - if (stats.isDirectory()) { - rmdirSync(p, options, er) - } else { - options.unlinkSync(p) - } -} - -function rmdir (p, options, originalEr, cb) { - assert(p) - assert(options) - if (originalEr) { - assert(originalEr instanceof Error) - } - assert(typeof cb === 'function') - - // try to rmdir first, and only readdir on ENOTEMPTY or EEXIST (SunOS) - // if we guessed wrong, and it's not a directory, then - // raise the original error. - options.rmdir(p, er => { - if (er && (er.code === 'ENOTEMPTY' || er.code === 'EEXIST' || er.code === 'EPERM')) { - rmkids(p, options, cb) - } else if (er && er.code === 'ENOTDIR') { - cb(originalEr) - } else { - cb(er) - } - }) -} - -function rmkids (p, options, cb) { - assert(p) - assert(options) - assert(typeof cb === 'function') - - options.readdir(p, (er, files) => { - if (er) return cb(er) - - let n = files.length - let errState - - if (n === 0) return options.rmdir(p, cb) - - files.forEach(f => { - rimraf(path.join(p, f), options, er => { - if (errState) { - return - } - if (er) return cb(errState = er) - if (--n === 0) { - options.rmdir(p, cb) - } - }) - }) - }) -} - -// this looks simpler, and is strictly *faster*, but will -// tie up the JavaScript thread and fail on excessively -// deep directory trees. -function rimrafSync (p, options) { - let st - - options = options || {} - defaults(options) - - assert(p, 'rimraf: missing path') - assert.strictEqual(typeof p, 'string', 'rimraf: path should be a string') - assert(options, 'rimraf: missing options') - assert.strictEqual(typeof options, 'object', 'rimraf: options should be object') - - try { - st = options.lstatSync(p) - } catch (er) { - if (er.code === 'ENOENT') { - return - } - - // Windows can EPERM on stat. Life is suffering. - if (er.code === 'EPERM' && isWindows) { - fixWinEPERMSync(p, options, er) - } - } - - try { - // sunos lets the root user unlink directories, which is... weird. - if (st && st.isDirectory()) { - rmdirSync(p, options, null) - } else { - options.unlinkSync(p) - } - } catch (er) { - if (er.code === 'ENOENT') { - return - } else if (er.code === 'EPERM') { - return isWindows ? fixWinEPERMSync(p, options, er) : rmdirSync(p, options, er) - } else if (er.code !== 'EISDIR') { - throw er - } - rmdirSync(p, options, er) - } -} - -function rmdirSync (p, options, originalEr) { - assert(p) - assert(options) - if (originalEr) { - assert(originalEr instanceof Error) - } - - try { - options.rmdirSync(p) - } catch (er) { - if (er.code === 'ENOTDIR') { - throw originalEr - } else if (er.code === 'ENOTEMPTY' || er.code === 'EEXIST' || er.code === 'EPERM') { - rmkidsSync(p, options) - } else if (er.code !== 'ENOENT') { - throw er - } - } -} - -function rmkidsSync (p, options) { - assert(p) - assert(options) - options.readdirSync(p).forEach(f => rimrafSync(path.join(p, f), options)) - - if (isWindows) { - // We only end up here once we got ENOTEMPTY at least once, and - // at this point, we are guaranteed to have removed all the kids. - // So, we know that it won't be ENOENT or ENOTDIR or anything else. - // try really hard to delete stuff on windows, because it has a - // PROFOUNDLY annoying habit of not closing handles promptly when - // files are deleted, resulting in spurious ENOTEMPTY errors. - const startTime = Date.now() - do { - try { - const ret = options.rmdirSync(p, options) - return ret - } catch (er) { } - } while (Date.now() - startTime < 500) // give up after 500ms - } else { - const ret = options.rmdirSync(p, options) - return ret - } -} - -module.exports = rimraf -rimraf.sync = rimrafSync - - -/***/ }), - -/***/ 47696: -/***/ ((module) => { - -"use strict"; - -/* eslint-disable node/no-deprecated-api */ -module.exports = function (size) { - if (typeof Buffer.allocUnsafe === 'function') { - try { - return Buffer.allocUnsafe(size) - } catch (e) { - return new Buffer(size) - } - } - return new Buffer(size) -} - - -/***/ }), - -/***/ 73901: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -"use strict"; - - -const fs = __nccwpck_require__(14178) -const path = __nccwpck_require__(85622) - -const NODE_VERSION_MAJOR_WITH_BIGINT = 10 -const NODE_VERSION_MINOR_WITH_BIGINT = 5 -const NODE_VERSION_PATCH_WITH_BIGINT = 0 -const nodeVersion = process.versions.node.split('.') -const nodeVersionMajor = Number.parseInt(nodeVersion[0], 10) -const nodeVersionMinor = Number.parseInt(nodeVersion[1], 10) -const nodeVersionPatch = Number.parseInt(nodeVersion[2], 10) - -function nodeSupportsBigInt () { - if (nodeVersionMajor > NODE_VERSION_MAJOR_WITH_BIGINT) { - return true - } else if (nodeVersionMajor === NODE_VERSION_MAJOR_WITH_BIGINT) { - if (nodeVersionMinor > NODE_VERSION_MINOR_WITH_BIGINT) { - return true - } else if (nodeVersionMinor === NODE_VERSION_MINOR_WITH_BIGINT) { - if (nodeVersionPatch >= NODE_VERSION_PATCH_WITH_BIGINT) { - return true - } - } - } - return false -} - -function getStats (src, dest, cb) { - if (nodeSupportsBigInt()) { - fs.stat(src, { bigint: true }, (err, srcStat) => { - if (err) return cb(err) - fs.stat(dest, { bigint: true }, (err, destStat) => { - if (err) { - if (err.code === 'ENOENT') return cb(null, { srcStat, destStat: null }) - return cb(err) - } - return cb(null, { srcStat, destStat }) - }) - }) - } else { - fs.stat(src, (err, srcStat) => { - if (err) return cb(err) - fs.stat(dest, (err, destStat) => { - if (err) { - if (err.code === 'ENOENT') return cb(null, { srcStat, destStat: null }) - return cb(err) - } - return cb(null, { srcStat, destStat }) - }) - }) - } -} - -function getStatsSync (src, dest) { - let srcStat, destStat - if (nodeSupportsBigInt()) { - srcStat = fs.statSync(src, { bigint: true }) - } else { - srcStat = fs.statSync(src) - } - try { - if (nodeSupportsBigInt()) { - destStat = fs.statSync(dest, { bigint: true }) - } else { - destStat = fs.statSync(dest) - } - } catch (err) { - if (err.code === 'ENOENT') return { srcStat, destStat: null } - throw err - } - return { srcStat, destStat } -} - -function checkPaths (src, dest, funcName, cb) { - getStats(src, dest, (err, stats) => { - if (err) return cb(err) - const { srcStat, destStat } = stats - if (destStat && destStat.ino && destStat.dev && destStat.ino === srcStat.ino && destStat.dev === srcStat.dev) { - return cb(new Error('Source and destination must not be the same.')) - } - if (srcStat.isDirectory() && isSrcSubdir(src, dest)) { - return cb(new Error(errMsg(src, dest, funcName))) - } - return cb(null, { srcStat, destStat }) - }) -} - -function checkPathsSync (src, dest, funcName) { - const { srcStat, destStat } = getStatsSync(src, dest) - if (destStat && destStat.ino && destStat.dev && destStat.ino === srcStat.ino && destStat.dev === srcStat.dev) { - throw new Error('Source and destination must not be the same.') - } - if (srcStat.isDirectory() && isSrcSubdir(src, dest)) { - throw new Error(errMsg(src, dest, funcName)) - } - return { srcStat, destStat } -} - -// recursively check if dest parent is a subdirectory of src. -// It works for all file types including symlinks since it -// checks the src and dest inodes. It starts from the deepest -// parent and stops once it reaches the src parent or the root path. -function checkParentPaths (src, srcStat, dest, funcName, cb) { - const srcParent = path.resolve(path.dirname(src)) - const destParent = path.resolve(path.dirname(dest)) - if (destParent === srcParent || destParent === path.parse(destParent).root) return cb() - if (nodeSupportsBigInt()) { - fs.stat(destParent, { bigint: true }, (err, destStat) => { - if (err) { - if (err.code === 'ENOENT') return cb() - return cb(err) - } - if (destStat.ino && destStat.dev && destStat.ino === srcStat.ino && destStat.dev === srcStat.dev) { - return cb(new Error(errMsg(src, dest, funcName))) - } - return checkParentPaths(src, srcStat, destParent, funcName, cb) - }) - } else { - fs.stat(destParent, (err, destStat) => { - if (err) { - if (err.code === 'ENOENT') return cb() - return cb(err) - } - if (destStat.ino && destStat.dev && destStat.ino === srcStat.ino && destStat.dev === srcStat.dev) { - return cb(new Error(errMsg(src, dest, funcName))) - } - return checkParentPaths(src, srcStat, destParent, funcName, cb) - }) - } -} - -function checkParentPathsSync (src, srcStat, dest, funcName) { - const srcParent = path.resolve(path.dirname(src)) - const destParent = path.resolve(path.dirname(dest)) - if (destParent === srcParent || destParent === path.parse(destParent).root) return - let destStat - try { - if (nodeSupportsBigInt()) { - destStat = fs.statSync(destParent, { bigint: true }) - } else { - destStat = fs.statSync(destParent) - } - } catch (err) { - if (err.code === 'ENOENT') return - throw err - } - if (destStat.ino && destStat.dev && destStat.ino === srcStat.ino && destStat.dev === srcStat.dev) { - throw new Error(errMsg(src, dest, funcName)) - } - return checkParentPathsSync(src, srcStat, destParent, funcName) -} - -// return true if dest is a subdir of src, otherwise false. -// It only checks the path strings. -function isSrcSubdir (src, dest) { - const srcArr = path.resolve(src).split(path.sep).filter(i => i) - const destArr = path.resolve(dest).split(path.sep).filter(i => i) - return srcArr.reduce((acc, cur, i) => acc && destArr[i] === cur, true) -} - -function errMsg (src, dest, funcName) { - return `Cannot ${funcName} '${src}' to a subdirectory of itself, '${dest}'.` -} - -module.exports = { - checkPaths, - checkPathsSync, - checkParentPaths, - checkParentPathsSync, - isSrcSubdir -} - - -/***/ }), - -/***/ 52548: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -"use strict"; - - -const fs = __nccwpck_require__(14178) -const os = __nccwpck_require__(12087) -const path = __nccwpck_require__(85622) - -// HFS, ext{2,3}, FAT do not, Node.js v0.10 does not -function hasMillisResSync () { - let tmpfile = path.join('millis-test-sync' + Date.now().toString() + Math.random().toString().slice(2)) - tmpfile = path.join(os.tmpdir(), tmpfile) - - // 550 millis past UNIX epoch - const d = new Date(1435410243862) - fs.writeFileSync(tmpfile, 'https://github.com/jprichardson/node-fs-extra/pull/141') - const fd = fs.openSync(tmpfile, 'r+') - fs.futimesSync(fd, d, d) - fs.closeSync(fd) - return fs.statSync(tmpfile).mtime > 1435410243000 -} - -function hasMillisRes (callback) { - let tmpfile = path.join('millis-test' + Date.now().toString() + Math.random().toString().slice(2)) - tmpfile = path.join(os.tmpdir(), tmpfile) - - // 550 millis past UNIX epoch - const d = new Date(1435410243862) - fs.writeFile(tmpfile, 'https://github.com/jprichardson/node-fs-extra/pull/141', err => { - if (err) return callback(err) - fs.open(tmpfile, 'r+', (err, fd) => { - if (err) return callback(err) - fs.futimes(fd, d, d, err => { - if (err) return callback(err) - fs.close(fd, err => { - if (err) return callback(err) - fs.stat(tmpfile, (err, stats) => { - if (err) return callback(err) - callback(null, stats.mtime > 1435410243000) - }) - }) - }) - }) - }) -} - -function timeRemoveMillis (timestamp) { - if (typeof timestamp === 'number') { - return Math.floor(timestamp / 1000) * 1000 - } else if (timestamp instanceof Date) { - return new Date(Math.floor(timestamp.getTime() / 1000) * 1000) - } else { - throw new Error('fs-extra: timeRemoveMillis() unknown parameter type') - } -} - -function utimesMillis (path, atime, mtime, callback) { - // if (!HAS_MILLIS_RES) return fs.utimes(path, atime, mtime, callback) - fs.open(path, 'r+', (err, fd) => { - if (err) return callback(err) - fs.futimes(fd, atime, mtime, futimesErr => { - fs.close(fd, closeErr => { - if (callback) callback(futimesErr || closeErr) - }) - }) - }) -} - -function utimesMillisSync (path, atime, mtime) { - const fd = fs.openSync(path, 'r+') - fs.futimesSync(fd, atime, mtime) - return fs.closeSync(fd) -} - -module.exports = { - hasMillisRes, - hasMillisResSync, - timeRemoveMillis, - utimesMillis, - utimesMillisSync -} - - -/***/ }), - -/***/ 25086: -/***/ ((module) => { - -"use strict"; - - -module.exports = clone - -var getPrototypeOf = Object.getPrototypeOf || function (obj) { - return obj.__proto__ -} - -function clone (obj) { - if (obj === null || typeof obj !== 'object') - return obj - - if (obj instanceof Object) - var copy = { __proto__: getPrototypeOf(obj) } - else - var copy = Object.create(null) - - Object.getOwnPropertyNames(obj).forEach(function (key) { - Object.defineProperty(copy, key, Object.getOwnPropertyDescriptor(obj, key)) - }) - - return copy -} - - -/***/ }), - -/***/ 14178: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -var fs = __nccwpck_require__(35747) -var polyfills = __nccwpck_require__(35027) -var legacy = __nccwpck_require__(73836) -var clone = __nccwpck_require__(25086) - -var util = __nccwpck_require__(31669) - -/* istanbul ignore next - node 0.x polyfill */ -var gracefulQueue -var previousSymbol - -/* istanbul ignore else - node 0.x polyfill */ -if (typeof Symbol === 'function' && typeof Symbol.for === 'function') { - gracefulQueue = Symbol.for('graceful-fs.queue') - // This is used in testing by future versions - previousSymbol = Symbol.for('graceful-fs.previous') -} else { - gracefulQueue = '___graceful-fs.queue' - previousSymbol = '___graceful-fs.previous' -} - -function noop () {} - -function publishQueue(context, queue) { - Object.defineProperty(context, gracefulQueue, { - get: function() { - return queue - } - }) -} - -var debug = noop -if (util.debuglog) - debug = util.debuglog('gfs4') -else if (/\bgfs4\b/i.test(process.env.NODE_DEBUG || '')) - debug = function() { - var m = util.format.apply(util, arguments) - m = 'GFS4: ' + m.split(/\n/).join('\nGFS4: ') - console.error(m) - } - -// Once time initialization -if (!fs[gracefulQueue]) { - // This queue can be shared by multiple loaded instances - var queue = global[gracefulQueue] || [] - publishQueue(fs, queue) - - // Patch fs.close/closeSync to shared queue version, because we need - // to retry() whenever a close happens *anywhere* in the program. - // This is essential when multiple graceful-fs instances are - // in play at the same time. - fs.close = (function (fs$close) { - function close (fd, cb) { - return fs$close.call(fs, fd, function (err) { - // This function uses the graceful-fs shared queue - if (!err) { - resetQueue() - } - - if (typeof cb === 'function') - cb.apply(this, arguments) - }) - } - - Object.defineProperty(close, previousSymbol, { - value: fs$close - }) - return close - })(fs.close) - - fs.closeSync = (function (fs$closeSync) { - function closeSync (fd) { - // This function uses the graceful-fs shared queue - fs$closeSync.apply(fs, arguments) - resetQueue() - } - - Object.defineProperty(closeSync, previousSymbol, { - value: fs$closeSync - }) - return closeSync - })(fs.closeSync) - - if (/\bgfs4\b/i.test(process.env.NODE_DEBUG || '')) { - process.on('exit', function() { - debug(fs[gracefulQueue]) - __nccwpck_require__(42357).equal(fs[gracefulQueue].length, 0) - }) - } -} - -if (!global[gracefulQueue]) { - publishQueue(global, fs[gracefulQueue]); -} - -module.exports = patch(clone(fs)) -if (process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH && !fs.__patched) { - module.exports = patch(fs) - fs.__patched = true; -} - -function patch (fs) { - // Everything that references the open() function needs to be in here - polyfills(fs) - fs.gracefulify = patch - - fs.createReadStream = createReadStream - fs.createWriteStream = createWriteStream - var fs$readFile = fs.readFile - fs.readFile = readFile - function readFile (path, options, cb) { - if (typeof options === 'function') - cb = options, options = null - - return go$readFile(path, options, cb) - - function go$readFile (path, options, cb, startTime) { - return fs$readFile(path, options, function (err) { - if (err && (err.code === 'EMFILE' || err.code === 'ENFILE')) - enqueue([go$readFile, [path, options, cb], err, startTime || Date.now(), Date.now()]) - else { - if (typeof cb === 'function') - cb.apply(this, arguments) - } - }) - } - } - - var fs$writeFile = fs.writeFile - fs.writeFile = writeFile - function writeFile (path, data, options, cb) { - if (typeof options === 'function') - cb = options, options = null - - return go$writeFile(path, data, options, cb) - - function go$writeFile (path, data, options, cb, startTime) { - return fs$writeFile(path, data, options, function (err) { - if (err && (err.code === 'EMFILE' || err.code === 'ENFILE')) - enqueue([go$writeFile, [path, data, options, cb], err, startTime || Date.now(), Date.now()]) - else { - if (typeof cb === 'function') - cb.apply(this, arguments) - } - }) - } - } - - var fs$appendFile = fs.appendFile - if (fs$appendFile) - fs.appendFile = appendFile - function appendFile (path, data, options, cb) { - if (typeof options === 'function') - cb = options, options = null - - return go$appendFile(path, data, options, cb) - - function go$appendFile (path, data, options, cb, startTime) { - return fs$appendFile(path, data, options, function (err) { - if (err && (err.code === 'EMFILE' || err.code === 'ENFILE')) - enqueue([go$appendFile, [path, data, options, cb], err, startTime || Date.now(), Date.now()]) - else { - if (typeof cb === 'function') - cb.apply(this, arguments) - } - }) - } - } - - var fs$copyFile = fs.copyFile - if (fs$copyFile) - fs.copyFile = copyFile - function copyFile (src, dest, flags, cb) { - if (typeof flags === 'function') { - cb = flags - flags = 0 - } - return go$copyFile(src, dest, flags, cb) - - function go$copyFile (src, dest, flags, cb, startTime) { - return fs$copyFile(src, dest, flags, function (err) { - if (err && (err.code === 'EMFILE' || err.code === 'ENFILE')) - enqueue([go$copyFile, [src, dest, flags, cb], err, startTime || Date.now(), Date.now()]) - else { - if (typeof cb === 'function') - cb.apply(this, arguments) - } - }) - } - } - - var fs$readdir = fs.readdir - fs.readdir = readdir - function readdir (path, options, cb) { - if (typeof options === 'function') - cb = options, options = null - - return go$readdir(path, options, cb) - - function go$readdir (path, options, cb, startTime) { - return fs$readdir(path, options, function (err, files) { - if (err && (err.code === 'EMFILE' || err.code === 'ENFILE')) - enqueue([go$readdir, [path, options, cb], err, startTime || Date.now(), Date.now()]) - else { - if (files && files.sort) - files.sort() - - if (typeof cb === 'function') - cb.call(this, err, files) - } - }) - } - } - - if (process.version.substr(0, 4) === 'v0.8') { - var legStreams = legacy(fs) - ReadStream = legStreams.ReadStream - WriteStream = legStreams.WriteStream - } - - var fs$ReadStream = fs.ReadStream - if (fs$ReadStream) { - ReadStream.prototype = Object.create(fs$ReadStream.prototype) - ReadStream.prototype.open = ReadStream$open - } - - var fs$WriteStream = fs.WriteStream - if (fs$WriteStream) { - WriteStream.prototype = Object.create(fs$WriteStream.prototype) - WriteStream.prototype.open = WriteStream$open - } - - Object.defineProperty(fs, 'ReadStream', { - get: function () { - return ReadStream - }, - set: function (val) { - ReadStream = val - }, - enumerable: true, - configurable: true - }) - Object.defineProperty(fs, 'WriteStream', { - get: function () { - return WriteStream - }, - set: function (val) { - WriteStream = val - }, - enumerable: true, - configurable: true - }) - - // legacy names - var FileReadStream = ReadStream - Object.defineProperty(fs, 'FileReadStream', { - get: function () { - return FileReadStream - }, - set: function (val) { - FileReadStream = val - }, - enumerable: true, - configurable: true - }) - var FileWriteStream = WriteStream - Object.defineProperty(fs, 'FileWriteStream', { - get: function () { - return FileWriteStream - }, - set: function (val) { - FileWriteStream = val - }, - enumerable: true, - configurable: true - }) - - function ReadStream (path, options) { - if (this instanceof ReadStream) - return fs$ReadStream.apply(this, arguments), this - else - return ReadStream.apply(Object.create(ReadStream.prototype), arguments) - } - - function ReadStream$open () { - var that = this - open(that.path, that.flags, that.mode, function (err, fd) { - if (err) { - if (that.autoClose) - that.destroy() - - that.emit('error', err) - } else { - that.fd = fd - that.emit('open', fd) - that.read() - } - }) - } - - function WriteStream (path, options) { - if (this instanceof WriteStream) - return fs$WriteStream.apply(this, arguments), this - else - return WriteStream.apply(Object.create(WriteStream.prototype), arguments) - } - - function WriteStream$open () { - var that = this - open(that.path, that.flags, that.mode, function (err, fd) { - if (err) { - that.destroy() - that.emit('error', err) - } else { - that.fd = fd - that.emit('open', fd) - } - }) - } - - function createReadStream (path, options) { - return new fs.ReadStream(path, options) - } - - function createWriteStream (path, options) { - return new fs.WriteStream(path, options) - } - - var fs$open = fs.open - fs.open = open - function open (path, flags, mode, cb) { - if (typeof mode === 'function') - cb = mode, mode = null - - return go$open(path, flags, mode, cb) - - function go$open (path, flags, mode, cb, startTime) { - return fs$open(path, flags, mode, function (err, fd) { - if (err && (err.code === 'EMFILE' || err.code === 'ENFILE')) - enqueue([go$open, [path, flags, mode, cb], err, startTime || Date.now(), Date.now()]) - else { - if (typeof cb === 'function') - cb.apply(this, arguments) - } - }) - } - } - - return fs -} - -function enqueue (elem) { - debug('ENQUEUE', elem[0].name, elem[1]) - fs[gracefulQueue].push(elem) - retry() -} - -// keep track of the timeout between retry() calls -var retryTimer - -// reset the startTime and lastTime to now -// this resets the start of the 60 second overall timeout as well as the -// delay between attempts so that we'll retry these jobs sooner -function resetQueue () { - var now = Date.now() - for (var i = 0; i < fs[gracefulQueue].length; ++i) { - // entries that are only a length of 2 are from an older version, don't - // bother modifying those since they'll be retried anyway. - if (fs[gracefulQueue][i].length > 2) { - fs[gracefulQueue][i][3] = now // startTime - fs[gracefulQueue][i][4] = now // lastTime - } - } - // call retry to make sure we're actively processing the queue - retry() -} - -function retry () { - // clear the timer and remove it to help prevent unintended concurrency - clearTimeout(retryTimer) - retryTimer = undefined - - if (fs[gracefulQueue].length === 0) - return - - var elem = fs[gracefulQueue].shift() - var fn = elem[0] - var args = elem[1] - // these items may be unset if they were added by an older graceful-fs - var err = elem[2] - var startTime = elem[3] - var lastTime = elem[4] - - // if we don't have a startTime we have no way of knowing if we've waited - // long enough, so go ahead and retry this item now - if (startTime === undefined) { - debug('RETRY', fn.name, args) - fn.apply(null, args) - } else if (Date.now() - startTime >= 60000) { - // it's been more than 60 seconds total, bail now - debug('TIMEOUT', fn.name, args) - var cb = args.pop() - if (typeof cb === 'function') - cb.call(null, err) - } else { - // the amount of time between the last attempt and right now - var sinceAttempt = Date.now() - lastTime - // the amount of time between when we first tried, and when we last tried - // rounded up to at least 1 - var sinceStart = Math.max(lastTime - startTime, 1) - // backoff. wait longer than the total time we've been retrying, but only - // up to a maximum of 100ms - var desiredDelay = Math.min(sinceStart * 1.2, 100) - // it's been long enough since the last retry, do it again - if (sinceAttempt >= desiredDelay) { - debug('RETRY', fn.name, args) - fn.apply(null, args.concat([startTime])) - } else { - // if we can't do this job yet, push it to the end of the queue - // and let the next iteration check again - fs[gracefulQueue].push(elem) - } - } - - // schedule our next run if one isn't already scheduled - if (retryTimer === undefined) { - retryTimer = setTimeout(retry, 0) - } -} - - -/***/ }), - -/***/ 73836: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -var Stream = __nccwpck_require__(92413).Stream - -module.exports = legacy - -function legacy (fs) { - return { - ReadStream: ReadStream, - WriteStream: WriteStream - } - - function ReadStream (path, options) { - if (!(this instanceof ReadStream)) return new ReadStream(path, options); - - Stream.call(this); - - var self = this; - - this.path = path; - this.fd = null; - this.readable = true; - this.paused = false; - - this.flags = 'r'; - this.mode = 438; /*=0666*/ - this.bufferSize = 64 * 1024; - - options = options || {}; - - // Mixin options into this - var keys = Object.keys(options); - for (var index = 0, length = keys.length; index < length; index++) { - var key = keys[index]; - this[key] = options[key]; - } - - if (this.encoding) this.setEncoding(this.encoding); - - if (this.start !== undefined) { - if ('number' !== typeof this.start) { - throw TypeError('start must be a Number'); - } - if (this.end === undefined) { - this.end = Infinity; - } else if ('number' !== typeof this.end) { - throw TypeError('end must be a Number'); - } - - if (this.start > this.end) { - throw new Error('start must be <= end'); - } - - this.pos = this.start; - } - - if (this.fd !== null) { - process.nextTick(function() { - self._read(); - }); - return; - } - - fs.open(this.path, this.flags, this.mode, function (err, fd) { - if (err) { - self.emit('error', err); - self.readable = false; - return; - } - - self.fd = fd; - self.emit('open', fd); - self._read(); - }) - } - - function WriteStream (path, options) { - if (!(this instanceof WriteStream)) return new WriteStream(path, options); - - Stream.call(this); - - this.path = path; - this.fd = null; - this.writable = true; - - this.flags = 'w'; - this.encoding = 'binary'; - this.mode = 438; /*=0666*/ - this.bytesWritten = 0; - - options = options || {}; - - // Mixin options into this - var keys = Object.keys(options); - for (var index = 0, length = keys.length; index < length; index++) { - var key = keys[index]; - this[key] = options[key]; - } - - if (this.start !== undefined) { - if ('number' !== typeof this.start) { - throw TypeError('start must be a Number'); - } - if (this.start < 0) { - throw new Error('start must be >= zero'); - } - - this.pos = this.start; - } - - this.busy = false; - this._queue = []; - - if (this.fd === null) { - this._open = fs.open; - this._queue.push([this._open, this.path, this.flags, this.mode, undefined]); - this.flush(); - } - } -} - - -/***/ }), - -/***/ 35027: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -var constants = __nccwpck_require__(27619) - -var origCwd = process.cwd -var cwd = null - -var platform = process.env.GRACEFUL_FS_PLATFORM || process.platform - -process.cwd = function() { - if (!cwd) - cwd = origCwd.call(process) - return cwd -} -try { - process.cwd() -} catch (er) {} - -// This check is needed until node.js 12 is required -if (typeof process.chdir === 'function') { - var chdir = process.chdir - process.chdir = function (d) { - cwd = null - chdir.call(process, d) - } - if (Object.setPrototypeOf) Object.setPrototypeOf(process.chdir, chdir) -} - -module.exports = patch - -function patch (fs) { - // (re-)implement some things that are known busted or missing. - - // lchmod, broken prior to 0.6.2 - // back-port the fix here. - if (constants.hasOwnProperty('O_SYMLINK') && - process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)) { - patchLchmod(fs) - } - - // lutimes implementation, or no-op - if (!fs.lutimes) { - patchLutimes(fs) - } - - // https://github.com/isaacs/node-graceful-fs/issues/4 - // Chown should not fail on einval or eperm if non-root. - // It should not fail on enosys ever, as this just indicates - // that a fs doesn't support the intended operation. - - fs.chown = chownFix(fs.chown) - fs.fchown = chownFix(fs.fchown) - fs.lchown = chownFix(fs.lchown) - - fs.chmod = chmodFix(fs.chmod) - fs.fchmod = chmodFix(fs.fchmod) - fs.lchmod = chmodFix(fs.lchmod) - - fs.chownSync = chownFixSync(fs.chownSync) - fs.fchownSync = chownFixSync(fs.fchownSync) - fs.lchownSync = chownFixSync(fs.lchownSync) - - fs.chmodSync = chmodFixSync(fs.chmodSync) - fs.fchmodSync = chmodFixSync(fs.fchmodSync) - fs.lchmodSync = chmodFixSync(fs.lchmodSync) - - fs.stat = statFix(fs.stat) - fs.fstat = statFix(fs.fstat) - fs.lstat = statFix(fs.lstat) - - fs.statSync = statFixSync(fs.statSync) - fs.fstatSync = statFixSync(fs.fstatSync) - fs.lstatSync = statFixSync(fs.lstatSync) - - // if lchmod/lchown do not exist, then make them no-ops - if (!fs.lchmod) { - fs.lchmod = function (path, mode, cb) { - if (cb) process.nextTick(cb) - } - fs.lchmodSync = function () {} - } - if (!fs.lchown) { - fs.lchown = function (path, uid, gid, cb) { - if (cb) process.nextTick(cb) - } - fs.lchownSync = function () {} - } - - // on Windows, A/V software can lock the directory, causing this - // to fail with an EACCES or EPERM if the directory contains newly - // created files. Try again on failure, for up to 60 seconds. - - // Set the timeout this long because some Windows Anti-Virus, such as Parity - // bit9, may lock files for up to a minute, causing npm package install - // failures. Also, take care to yield the scheduler. Windows scheduling gives - // CPU to a busy looping process, which can cause the program causing the lock - // contention to be starved of CPU by node, so the contention doesn't resolve. - if (platform === "win32") { - fs.rename = (function (fs$rename) { return function (from, to, cb) { - var start = Date.now() - var backoff = 0; - fs$rename(from, to, function CB (er) { - if (er - && (er.code === "EACCES" || er.code === "EPERM") - && Date.now() - start < 60000) { - setTimeout(function() { - fs.stat(to, function (stater, st) { - if (stater && stater.code === "ENOENT") - fs$rename(from, to, CB); - else - cb(er) - }) - }, backoff) - if (backoff < 100) - backoff += 10; - return; - } - if (cb) cb(er) - }) - }})(fs.rename) - } - - // if read() returns EAGAIN, then just try it again. - fs.read = (function (fs$read) { - function read (fd, buffer, offset, length, position, callback_) { - var callback - if (callback_ && typeof callback_ === 'function') { - var eagCounter = 0 - callback = function (er, _, __) { - if (er && er.code === 'EAGAIN' && eagCounter < 10) { - eagCounter ++ - return fs$read.call(fs, fd, buffer, offset, length, position, callback) - } - callback_.apply(this, arguments) - } - } - return fs$read.call(fs, fd, buffer, offset, length, position, callback) - } - - // This ensures `util.promisify` works as it does for native `fs.read`. - if (Object.setPrototypeOf) Object.setPrototypeOf(read, fs$read) - return read - })(fs.read) - - fs.readSync = (function (fs$readSync) { return function (fd, buffer, offset, length, position) { - var eagCounter = 0 - while (true) { - try { - return fs$readSync.call(fs, fd, buffer, offset, length, position) - } catch (er) { - if (er.code === 'EAGAIN' && eagCounter < 10) { - eagCounter ++ - continue - } - throw er - } - } - }})(fs.readSync) - - function patchLchmod (fs) { - fs.lchmod = function (path, mode, callback) { - fs.open( path - , constants.O_WRONLY | constants.O_SYMLINK - , mode - , function (err, fd) { - if (err) { - if (callback) callback(err) - return - } - // prefer to return the chmod error, if one occurs, - // but still try to close, and report closing errors if they occur. - fs.fchmod(fd, mode, function (err) { - fs.close(fd, function(err2) { - if (callback) callback(err || err2) - }) - }) - }) - } - - fs.lchmodSync = function (path, mode) { - var fd = fs.openSync(path, constants.O_WRONLY | constants.O_SYMLINK, mode) - - // prefer to return the chmod error, if one occurs, - // but still try to close, and report closing errors if they occur. - var threw = true - var ret - try { - ret = fs.fchmodSync(fd, mode) - threw = false - } finally { - if (threw) { - try { - fs.closeSync(fd) - } catch (er) {} - } else { - fs.closeSync(fd) - } - } - return ret - } - } - - function patchLutimes (fs) { - if (constants.hasOwnProperty("O_SYMLINK")) { - fs.lutimes = function (path, at, mt, cb) { - fs.open(path, constants.O_SYMLINK, function (er, fd) { - if (er) { - if (cb) cb(er) - return - } - fs.futimes(fd, at, mt, function (er) { - fs.close(fd, function (er2) { - if (cb) cb(er || er2) - }) - }) - }) - } - - fs.lutimesSync = function (path, at, mt) { - var fd = fs.openSync(path, constants.O_SYMLINK) - var ret - var threw = true - try { - ret = fs.futimesSync(fd, at, mt) - threw = false - } finally { - if (threw) { - try { - fs.closeSync(fd) - } catch (er) {} - } else { - fs.closeSync(fd) - } - } - return ret - } - - } else { - fs.lutimes = function (_a, _b, _c, cb) { if (cb) process.nextTick(cb) } - fs.lutimesSync = function () {} - } - } - - function chmodFix (orig) { - if (!orig) return orig - return function (target, mode, cb) { - return orig.call(fs, target, mode, function (er) { - if (chownErOk(er)) er = null - if (cb) cb.apply(this, arguments) - }) - } - } - - function chmodFixSync (orig) { - if (!orig) return orig - return function (target, mode) { - try { - return orig.call(fs, target, mode) - } catch (er) { - if (!chownErOk(er)) throw er - } - } - } - - - function chownFix (orig) { - if (!orig) return orig - return function (target, uid, gid, cb) { - return orig.call(fs, target, uid, gid, function (er) { - if (chownErOk(er)) er = null - if (cb) cb.apply(this, arguments) - }) - } - } - - function chownFixSync (orig) { - if (!orig) return orig - return function (target, uid, gid) { - try { - return orig.call(fs, target, uid, gid) - } catch (er) { - if (!chownErOk(er)) throw er - } - } - } - - function statFix (orig) { - if (!orig) return orig - // Older versions of Node erroneously returned signed integers for - // uid + gid. - return function (target, options, cb) { - if (typeof options === 'function') { - cb = options - options = null - } - function callback (er, stats) { - if (stats) { - if (stats.uid < 0) stats.uid += 0x100000000 - if (stats.gid < 0) stats.gid += 0x100000000 - } - if (cb) cb.apply(this, arguments) - } - return options ? orig.call(fs, target, options, callback) - : orig.call(fs, target, callback) - } - } - - function statFixSync (orig) { - if (!orig) return orig - // Older versions of Node erroneously returned signed integers for - // uid + gid. - return function (target, options) { - var stats = options ? orig.call(fs, target, options) - : orig.call(fs, target) - if (stats) { - if (stats.uid < 0) stats.uid += 0x100000000 - if (stats.gid < 0) stats.gid += 0x100000000 - } - return stats; - } - } - - // ENOSYS means that the fs doesn't support the op. Just ignore - // that, because it doesn't matter. - // - // if there's no getuid, or if getuid() is something other - // than 0, and the error is EINVAL or EPERM, then just ignore - // it. - // - // This specific case is a silent failure in cp, install, tar, - // and most other unix tools that manage permissions. - // - // When running as root, or if other types of errors are - // encountered, then it's strict. - function chownErOk (er) { - if (!er) - return true - - if (er.code === "ENOSYS") - return true - - var nonroot = !process.getuid || process.getuid() !== 0 - if (nonroot) { - if (er.code === "EINVAL" || er.code === "EPERM") - return true - } - - return false - } -} - - -/***/ }), - -/***/ 79203: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -var fs = __nccwpck_require__(35747), - tls = __nccwpck_require__(4016), - zlib = __nccwpck_require__(78761), - Socket = __nccwpck_require__(11631).Socket, - EventEmitter = __nccwpck_require__(28614).EventEmitter, - inherits = __nccwpck_require__(31669).inherits, - inspect = __nccwpck_require__(31669).inspect; - -var Parser = __nccwpck_require__(69330); -var XRegExp = __nccwpck_require__(56155)/* .XRegExp */ .d; - -var REX_TIMEVAL = XRegExp.cache('^(?\\d{4})(?\\d{2})(?\\d{2})(?\\d{2})(?\\d{2})(?\\d+)(?:.\\d+)?$'), - RE_PASV = /([\d]+),([\d]+),([\d]+),([\d]+),([-\d]+),([-\d]+)/, - RE_EOL = /\r?\n/g, - RE_WD = /"(.+)"(?: |$)/, - RE_SYST = /^([^ ]+)(?: |$)/; - -var /*TYPE = { - SYNTAX: 0, - INFO: 1, - SOCKETS: 2, - AUTH: 3, - UNSPEC: 4, - FILESYS: 5 - },*/ - RETVAL = { - PRELIM: 1, - OK: 2, - WAITING: 3, - ERR_TEMP: 4, - ERR_PERM: 5 - }, - /*ERRORS = { - 421: 'Service not available, closing control connection', - 425: 'Can\'t open data connection', - 426: 'Connection closed; transfer aborted', - 450: 'Requested file action not taken / File unavailable (e.g., file busy)', - 451: 'Requested action aborted: local error in processing', - 452: 'Requested action not taken / Insufficient storage space in system', - 500: 'Syntax error / Command unrecognized', - 501: 'Syntax error in parameters or arguments', - 502: 'Command not implemented', - 503: 'Bad sequence of commands', - 504: 'Command not implemented for that parameter', - 530: 'Not logged in', - 532: 'Need account for storing files', - 550: 'Requested action not taken / File unavailable (e.g., file not found, no access)', - 551: 'Requested action aborted: page type unknown', - 552: 'Requested file action aborted / Exceeded storage allocation (for current directory or dataset)', - 553: 'Requested action not taken / File name not allowed' - },*/ - bytesNOOP = new Buffer('NOOP\r\n'); - -var FTP = module.exports = function() { - if (!(this instanceof FTP)) - return new FTP(); - - this._socket = undefined; - this._pasvSock = undefined; - this._feat = undefined; - this._curReq = undefined; - this._queue = []; - this._secstate = undefined; - this._debug = undefined; - this._keepalive = undefined; - this._ending = false; - this._parser = undefined; - this.options = { - host: undefined, - port: undefined, - user: undefined, - password: undefined, - secure: false, - secureOptions: undefined, - connTimeout: undefined, - pasvTimeout: undefined, - aliveTimeout: undefined - }; - this.connected = false; -}; -inherits(FTP, EventEmitter); - -FTP.prototype.connect = function(options) { - var self = this; - if (typeof options !== 'object') - options = {}; - this.connected = false; - this.options.host = options.host || 'localhost'; - this.options.port = options.port || 21; - this.options.user = options.user || 'anonymous'; - this.options.password = options.password || 'anonymous@'; - this.options.secure = options.secure || false; - this.options.secureOptions = options.secureOptions; - this.options.connTimeout = options.connTimeout || 10000; - this.options.pasvTimeout = options.pasvTimeout || 10000; - this.options.aliveTimeout = options.keepalive || 10000; - - if (typeof options.debug === 'function') - this._debug = options.debug; - - var secureOptions, - debug = this._debug, - socket = new Socket(); - - socket.setTimeout(0); - socket.setKeepAlive(true); - - this._parser = new Parser({ debug: debug }); - this._parser.on('response', function(code, text) { - var retval = code / 100 >> 0; - if (retval === RETVAL.ERR_TEMP || retval === RETVAL.ERR_PERM) { - if (self._curReq) - self._curReq.cb(makeError(code, text), undefined, code); - else - self.emit('error', makeError(code, text)); - } else if (self._curReq) - self._curReq.cb(undefined, text, code); - - // a hack to signal we're waiting for a PASV data connection to complete - // first before executing any more queued requests ... - // - // also: don't forget our current request if we're expecting another - // terminating response .... - if (self._curReq && retval !== RETVAL.PRELIM) { - self._curReq = undefined; - self._send(); - } - - noopreq.cb(); - }); - - if (this.options.secure) { - secureOptions = {}; - secureOptions.host = this.options.host; - for (var k in this.options.secureOptions) - secureOptions[k] = this.options.secureOptions[k]; - secureOptions.socket = socket; - this.options.secureOptions = secureOptions; - } - - if (this.options.secure === 'implicit') - this._socket = tls.connect(secureOptions, onconnect); - else { - socket.once('connect', onconnect); - this._socket = socket; - } - - var noopreq = { - cmd: 'NOOP', - cb: function() { - clearTimeout(self._keepalive); - self._keepalive = setTimeout(donoop, self.options.aliveTimeout); - } - }; - - function donoop() { - if (!self._socket || !self._socket.writable) - clearTimeout(self._keepalive); - else if (!self._curReq && self._queue.length === 0) { - self._curReq = noopreq; - debug&&debug('[connection] > NOOP'); - self._socket.write(bytesNOOP); - } else - noopreq.cb(); - } - - function onconnect() { - clearTimeout(timer); - clearTimeout(self._keepalive); - self.connected = true; - self._socket = socket; // re-assign for implicit secure connections - - var cmd; - - if (self._secstate) { - if (self._secstate === 'upgraded-tls' && self.options.secure === true) { - cmd = 'PBSZ'; - self._send('PBSZ 0', reentry, true); - } else { - cmd = 'USER'; - self._send('USER ' + self.options.user, reentry, true); - } - } else { - self._curReq = { - cmd: '', - cb: reentry - }; - } - - function reentry(err, text, code) { - if (err && (!cmd || cmd === 'USER' || cmd === 'PASS' || cmd === 'TYPE')) { - self.emit('error', err); - return self._socket && self._socket.end(); - } - if ((cmd === 'AUTH TLS' && code !== 234 && self.options.secure !== true) - || (cmd === 'AUTH SSL' && code !== 334) - || (cmd === 'PBSZ' && code !== 200) - || (cmd === 'PROT' && code !== 200)) { - self.emit('error', makeError(code, 'Unable to secure connection(s)')); - return self._socket && self._socket.end(); - } - - if (!cmd) { - // sometimes the initial greeting can contain useful information - // about authorized use, other limits, etc. - self.emit('greeting', text); - - if (self.options.secure && self.options.secure !== 'implicit') { - cmd = 'AUTH TLS'; - self._send(cmd, reentry, true); - } else { - cmd = 'USER'; - self._send('USER ' + self.options.user, reentry, true); - } - } else if (cmd === 'USER') { - if (code !== 230) { - // password required - if (!self.options.password) { - self.emit('error', makeError(code, 'Password required')); - return self._socket && self._socket.end(); - } - cmd = 'PASS'; - self._send('PASS ' + self.options.password, reentry, true); - } else { - // no password required - cmd = 'PASS'; - reentry(undefined, text, code); - } - } else if (cmd === 'PASS') { - cmd = 'FEAT'; - self._send(cmd, reentry, true); - } else if (cmd === 'FEAT') { - if (!err) - self._feat = Parser.parseFeat(text); - cmd = 'TYPE'; - self._send('TYPE I', reentry, true); - } else if (cmd === 'TYPE') - self.emit('ready'); - else if (cmd === 'PBSZ') { - cmd = 'PROT'; - self._send('PROT P', reentry, true); - } else if (cmd === 'PROT') { - cmd = 'USER'; - self._send('USER ' + self.options.user, reentry, true); - } else if (cmd.substr(0, 4) === 'AUTH') { - if (cmd === 'AUTH TLS' && code !== 234) { - cmd = 'AUTH SSL'; - return self._send(cmd, reentry, true); - } else if (cmd === 'AUTH TLS') - self._secstate = 'upgraded-tls'; - else if (cmd === 'AUTH SSL') - self._secstate = 'upgraded-ssl'; - socket.removeAllListeners('data'); - socket.removeAllListeners('error'); - socket._decoder = null; - self._curReq = null; // prevent queue from being processed during - // TLS/SSL negotiation - secureOptions.socket = self._socket; - secureOptions.session = undefined; - socket = tls.connect(secureOptions, onconnect); - socket.setEncoding('binary'); - socket.on('data', ondata); - socket.once('end', onend); - socket.on('error', onerror); - } - } - } - - socket.on('data', ondata); - function ondata(chunk) { - debug&&debug('[connection] < ' + inspect(chunk.toString('binary'))); - if (self._parser) - self._parser.write(chunk); - } - - socket.on('error', onerror); - function onerror(err) { - clearTimeout(timer); - clearTimeout(self._keepalive); - self.emit('error', err); - } - - socket.once('end', onend); - function onend() { - ondone(); - self.emit('end'); - } - - socket.once('close', function(had_err) { - ondone(); - self.emit('close', had_err); - }); - - var hasReset = false; - function ondone() { - if (!hasReset) { - hasReset = true; - clearTimeout(timer); - self._reset(); - } - } - - var timer = setTimeout(function() { - self.emit('error', new Error('Timeout while connecting to server')); - self._socket && self._socket.destroy(); - self._reset(); - }, this.options.connTimeout); - - this._socket.connect(this.options.port, this.options.host); -}; - -FTP.prototype.end = function() { - if (this._queue.length) - this._ending = true; - else - this._reset(); -}; - -FTP.prototype.destroy = function() { - this._reset(); -}; - -// "Standard" (RFC 959) commands -FTP.prototype.ascii = function(cb) { - return this._send('TYPE A', cb); -}; - -FTP.prototype.binary = function(cb) { - return this._send('TYPE I', cb); -}; - -FTP.prototype.abort = function(immediate, cb) { - if (typeof immediate === 'function') { - cb = immediate; - immediate = true; - } - if (immediate) - this._send('ABOR', cb, true); - else - this._send('ABOR', cb); -}; - -FTP.prototype.cwd = function(path, cb, promote) { - this._send('CWD ' + path, function(err, text, code) { - if (err) - return cb(err); - var m = RE_WD.exec(text); - cb(undefined, m ? m[1] : undefined); - }, promote); -}; - -FTP.prototype.delete = function(path, cb) { - this._send('DELE ' + path, cb); -}; - -FTP.prototype.site = function(cmd, cb) { - this._send('SITE ' + cmd, cb); -}; - -FTP.prototype.status = function(cb) { - this._send('STAT', cb); -}; - -FTP.prototype.rename = function(from, to, cb) { - var self = this; - this._send('RNFR ' + from, function(err) { - if (err) - return cb(err); - - self._send('RNTO ' + to, cb, true); - }); -}; - -FTP.prototype.logout = function(cb) { - this._send('QUIT', cb); -}; - -FTP.prototype.listSafe = function(path, zcomp, cb) { - if (typeof path === 'string') { - var self = this; - // store current path - this.pwd(function(err, origpath) { - if (err) return cb(err); - // change to destination path - self.cwd(path, function(err) { - if (err) return cb(err); - // get dir listing - self.list(zcomp || false, function(err, list) { - // change back to original path - if (err) return self.cwd(origpath, cb); - self.cwd(origpath, function(err) { - if (err) return cb(err); - cb(err, list); - }); - }); - }); - }); - } else - this.list(path, zcomp, cb); -}; - -FTP.prototype.list = function(path, zcomp, cb) { - var self = this, cmd; - - if (typeof path === 'function') { - // list(function() {}) - cb = path; - path = undefined; - cmd = 'LIST'; - zcomp = false; - } else if (typeof path === 'boolean') { - // list(true, function() {}) - cb = zcomp; - zcomp = path; - path = undefined; - cmd = 'LIST'; - } else if (typeof zcomp === 'function') { - // list('/foo', function() {}) - cb = zcomp; - cmd = 'LIST ' + path; - zcomp = false; - } else - cmd = 'LIST ' + path; - - this._pasv(function(err, sock) { - if (err) - return cb(err); - - if (self._queue[0] && self._queue[0].cmd === 'ABOR') { - sock.destroy(); - return cb(); - } - - var sockerr, done = false, replies = 0, entries, buffer = '', source = sock; - - if (zcomp) { - source = zlib.createInflate(); - sock.pipe(source); - } - - source.on('data', function(chunk) { buffer += chunk.toString('binary'); }); - source.once('error', function(err) { - if (!sock.aborting) - sockerr = err; - }); - source.once('end', ondone); - source.once('close', ondone); - - function ondone() { - done = true; - final(); - } - function final() { - if (done && replies === 2) { - replies = 3; - if (sockerr) - return cb(new Error('Unexpected data connection error: ' + sockerr)); - if (sock.aborting) - return cb(); - - // process received data - entries = buffer.split(RE_EOL); - entries.pop(); // ending EOL - var parsed = []; - for (var i = 0, len = entries.length; i < len; ++i) { - var parsedVal = Parser.parseListEntry(entries[i]); - if (parsedVal !== null) - parsed.push(parsedVal); - } - - if (zcomp) { - self._send('MODE S', function() { - cb(undefined, parsed); - }, true); - } else - cb(undefined, parsed); - } - } - - if (zcomp) { - self._send('MODE Z', function(err, text, code) { - if (err) { - sock.destroy(); - return cb(makeError(code, 'Compression not supported')); - } - sendList(); - }, true); - } else - sendList(); - - function sendList() { - // this callback will be executed multiple times, the first is when server - // replies with 150 and then a final reply to indicate whether the - // transfer was actually a success or not - self._send(cmd, function(err, text, code) { - if (err) { - sock.destroy(); - if (zcomp) { - self._send('MODE S', function() { - cb(err); - }, true); - } else - cb(err); - return; - } - - // some servers may not open a data connection for empty directories - if (++replies === 1 && code === 226) { - replies = 2; - sock.destroy(); - final(); - } else if (replies === 2) - final(); - }, true); - } - }); -}; - -FTP.prototype.get = function(path, zcomp, cb) { - var self = this; - if (typeof zcomp === 'function') { - cb = zcomp; - zcomp = false; - } - - this._pasv(function(err, sock) { - if (err) - return cb(err); - - if (self._queue[0] && self._queue[0].cmd === 'ABOR') { - sock.destroy(); - return cb(); - } - - // modify behavior of socket events so that we can emit 'error' once for - // either a TCP-level error OR an FTP-level error response that we get when - // the socket is closed (e.g. the server ran out of space). - var sockerr, started = false, lastreply = false, done = false, - source = sock; - - if (zcomp) { - source = zlib.createInflate(); - sock.pipe(source); - sock._emit = sock.emit; - sock.emit = function(ev, arg1) { - if (ev === 'error') { - if (!sockerr) - sockerr = arg1; - return; - } - sock._emit.apply(sock, Array.prototype.slice.call(arguments)); - }; - } - - source._emit = source.emit; - source.emit = function(ev, arg1) { - if (ev === 'error') { - if (!sockerr) - sockerr = arg1; - return; - } else if (ev === 'end' || ev === 'close') { - if (!done) { - done = true; - ondone(); - } - return; - } - source._emit.apply(source, Array.prototype.slice.call(arguments)); - }; - - function ondone() { - if (done && lastreply) { - self._send('MODE S', function() { - source._emit('end'); - source._emit('close'); - }, true); - } - } - - sock.pause(); - - if (zcomp) { - self._send('MODE Z', function(err, text, code) { - if (err) { - sock.destroy(); - return cb(makeError(code, 'Compression not supported')); - } - sendRetr(); - }, true); - } else - sendRetr(); - - function sendRetr() { - // this callback will be executed multiple times, the first is when server - // replies with 150, then a final reply after the data connection closes - // to indicate whether the transfer was actually a success or not - self._send('RETR ' + path, function(err, text, code) { - if (sockerr || err) { - sock.destroy(); - if (!started) { - if (zcomp) { - self._send('MODE S', function() { - cb(sockerr || err); - }, true); - } else - cb(sockerr || err); - } else { - source._emit('error', sockerr || err); - source._emit('close', true); - } - return; - } - // server returns 125 when data connection is already open; we treat it - // just like a 150 - if (code === 150 || code === 125) { - started = true; - cb(undefined, source); - sock.resume(); - } else { - lastreply = true; - ondone(); - } - }, true); - } - }); -}; - -FTP.prototype.put = function(input, path, zcomp, cb) { - this._store('STOR ' + path, input, zcomp, cb); -}; - -FTP.prototype.append = function(input, path, zcomp, cb) { - this._store('APPE ' + path, input, zcomp, cb); -}; - -FTP.prototype.pwd = function(cb) { // PWD is optional - var self = this; - this._send('PWD', function(err, text, code) { - if (code === 502) { - return self.cwd('.', function(cwderr, cwd) { - if (cwderr) - return cb(cwderr); - if (cwd === undefined) - cb(err); - else - cb(undefined, cwd); - }, true); - } else if (err) - return cb(err); - cb(undefined, RE_WD.exec(text)[1]); - }); -}; - -FTP.prototype.cdup = function(cb) { // CDUP is optional - var self = this; - this._send('CDUP', function(err, text, code) { - if (code === 502) - self.cwd('..', cb, true); - else - cb(err); - }); -}; - -FTP.prototype.mkdir = function(path, recursive, cb) { // MKD is optional - if (typeof recursive === 'function') { - cb = recursive; - recursive = false; - } - if (!recursive) - this._send('MKD ' + path, cb); - else { - var self = this, owd, abs, dirs, dirslen, i = -1, searching = true; - - abs = (path[0] === '/'); - - var nextDir = function() { - if (++i === dirslen) { - // return to original working directory - return self._send('CWD ' + owd, cb, true); - } - if (searching) { - self._send('CWD ' + dirs[i], function(err, text, code) { - if (code === 550) { - searching = false; - --i; - } else if (err) { - // return to original working directory - return self._send('CWD ' + owd, function() { - cb(err); - }, true); - } - nextDir(); - }, true); - } else { - self._send('MKD ' + dirs[i], function(err, text, code) { - if (err) { - // return to original working directory - return self._send('CWD ' + owd, function() { - cb(err); - }, true); - } - self._send('CWD ' + dirs[i], nextDir, true); - }, true); - } - }; - this.pwd(function(err, cwd) { - if (err) - return cb(err); - owd = cwd; - if (abs) - path = path.substr(1); - if (path[path.length - 1] === '/') - path = path.substring(0, path.length - 1); - dirs = path.split('/'); - dirslen = dirs.length; - if (abs) - self._send('CWD /', function(err) { - if (err) - return cb(err); - nextDir(); - }, true); - else - nextDir(); - }); - } -}; - -FTP.prototype.rmdir = function(path, recursive, cb) { // RMD is optional - if (typeof recursive === 'function') { - cb = recursive; - recursive = false; - } - if (!recursive) { - return this._send('RMD ' + path, cb); - } - - var self = this; - this.list(path, function(err, list) { - if (err) return cb(err); - var idx = 0; - - // this function will be called once per listing entry - var deleteNextEntry; - deleteNextEntry = function(err) { - if (err) return cb(err); - if (idx >= list.length) { - if (list[0] && list[0].name === path) { - return cb(null); - } else { - return self.rmdir(path, cb); - } - } - - var entry = list[idx++]; - - // get the path to the file - var subpath = null; - if (entry.name[0] === '/') { - // this will be the case when you call deleteRecursively() and pass - // the path to a plain file - subpath = entry.name; - } else { - if (path[path.length - 1] == '/') { - subpath = path + entry.name; - } else { - subpath = path + '/' + entry.name - } - } - - // delete the entry (recursively) according to its type - if (entry.type === 'd') { - if (entry.name === "." || entry.name === "..") { - return deleteNextEntry(); - } - self.rmdir(subpath, true, deleteNextEntry); - } else { - self.delete(subpath, deleteNextEntry); - } - } - deleteNextEntry(); - }); -}; - -FTP.prototype.system = function(cb) { // SYST is optional - this._send('SYST', function(err, text) { - if (err) - return cb(err); - cb(undefined, RE_SYST.exec(text)[1]); - }); -}; - -// "Extended" (RFC 3659) commands -FTP.prototype.size = function(path, cb) { - var self = this; - this._send('SIZE ' + path, function(err, text, code) { - if (code === 502) { - // Note: this may cause a problem as list() is _appended_ to the queue - return self.list(path, function(err, list) { - if (err) - return cb(err); - if (list.length === 1) - cb(undefined, list[0].size); - else { - // path could have been a directory and we got a listing of its - // contents, but here we echo the behavior of the real SIZE and - // return 'File not found' for directories - cb(new Error('File not found')); - } - }, true); - } else if (err) - return cb(err); - cb(undefined, parseInt(text, 10)); - }); -}; - -FTP.prototype.lastMod = function(path, cb) { - var self = this; - this._send('MDTM ' + path, function(err, text, code) { - if (code === 502) { - return self.list(path, function(err, list) { - if (err) - return cb(err); - if (list.length === 1) - cb(undefined, list[0].date); - else - cb(new Error('File not found')); - }, true); - } else if (err) - return cb(err); - var val = XRegExp.exec(text, REX_TIMEVAL), ret; - if (!val) - return cb(new Error('Invalid date/time format from server')); - ret = new Date(val.year + '-' + val.month + '-' + val.date + 'T' + val.hour - + ':' + val.minute + ':' + val.second); - cb(undefined, ret); - }); -}; - -FTP.prototype.restart = function(offset, cb) { - this._send('REST ' + offset, cb); -}; - - - -// Private/Internal methods -FTP.prototype._pasv = function(cb) { - var self = this, first = true, ip, port; - this._send('PASV', function reentry(err, text) { - if (err) - return cb(err); - - self._curReq = undefined; - - if (first) { - var m = RE_PASV.exec(text); - if (!m) - return cb(new Error('Unable to parse PASV server response')); - ip = m[1]; - ip += '.'; - ip += m[2]; - ip += '.'; - ip += m[3]; - ip += '.'; - ip += m[4]; - port = (parseInt(m[5], 10) * 256) + parseInt(m[6], 10); - - first = false; - } - self._pasvConnect(ip, port, function(err, sock) { - if (err) { - // try the IP of the control connection if the server was somehow - // misconfigured and gave for example a LAN IP instead of WAN IP over - // the Internet - if (self._socket && ip !== self._socket.remoteAddress) { - ip = self._socket.remoteAddress; - return reentry(); - } - - // automatically abort PASV mode - self._send('ABOR', function() { - cb(err); - self._send(); - }, true); - - return; - } - cb(undefined, sock); - self._send(); - }); - }); -}; - -FTP.prototype._pasvConnect = function(ip, port, cb) { - var self = this, - socket = new Socket(), - sockerr, - timedOut = false, - timer = setTimeout(function() { - timedOut = true; - socket.destroy(); - cb(new Error('Timed out while making data connection')); - }, this.options.pasvTimeout); - - socket.setTimeout(0); - - socket.once('connect', function() { - self._debug&&self._debug('[connection] PASV socket connected'); - if (self.options.secure === true) { - self.options.secureOptions.socket = socket; - self.options.secureOptions.session = self._socket.getSession(); - //socket.removeAllListeners('error'); - socket = tls.connect(self.options.secureOptions); - //socket.once('error', onerror); - socket.setTimeout(0); - } - clearTimeout(timer); - self._pasvSocket = socket; - cb(undefined, socket); - }); - socket.once('error', onerror); - function onerror(err) { - sockerr = err; - } - socket.once('end', function() { - clearTimeout(timer); - }); - socket.once('close', function(had_err) { - clearTimeout(timer); - if (!self._pasvSocket && !timedOut) { - var errmsg = 'Unable to make data connection'; - if (sockerr) { - errmsg += '( ' + sockerr + ')'; - sockerr = undefined; - } - cb(new Error(errmsg)); - } - self._pasvSocket = undefined; - }); - - socket.connect(port, ip); -}; - -FTP.prototype._store = function(cmd, input, zcomp, cb) { - var isBuffer = Buffer.isBuffer(input); - - if (!isBuffer && input.pause !== undefined) - input.pause(); - - if (typeof zcomp === 'function') { - cb = zcomp; - zcomp = false; - } - - var self = this; - this._pasv(function(err, sock) { - if (err) - return cb(err); - - if (self._queue[0] && self._queue[0].cmd === 'ABOR') { - sock.destroy(); - return cb(); - } - - var sockerr, dest = sock; - sock.once('error', function(err) { - sockerr = err; - }); - - if (zcomp) { - self._send('MODE Z', function(err, text, code) { - if (err) { - sock.destroy(); - return cb(makeError(code, 'Compression not supported')); - } - // draft-preston-ftpext-deflate-04 says min of 8 should be supported - dest = zlib.createDeflate({ level: 8 }); - dest.pipe(sock); - sendStore(); - }, true); - } else - sendStore(); - - function sendStore() { - // this callback will be executed multiple times, the first is when server - // replies with 150, then a final reply after the data connection closes - // to indicate whether the transfer was actually a success or not - self._send(cmd, function(err, text, code) { - if (sockerr || err) { - if (zcomp) { - self._send('MODE S', function() { - cb(sockerr || err); - }, true); - } else - cb(sockerr || err); - return; - } - - if (code === 150 || code === 125) { - if (isBuffer) - dest.end(input); - else if (typeof input === 'string') { - // check if input is a file path or just string data to store - fs.stat(input, function(err, stats) { - if (err) - dest.end(input); - else - fs.createReadStream(input).pipe(dest); - }); - } else { - input.pipe(dest); - input.resume(); - } - } else { - if (zcomp) - self._send('MODE S', cb, true); - else - cb(); - } - }, true); - } - }); -}; - -FTP.prototype._send = function(cmd, cb, promote) { - clearTimeout(this._keepalive); - if (cmd !== undefined) { - if (promote) - this._queue.unshift({ cmd: cmd, cb: cb }); - else - this._queue.push({ cmd: cmd, cb: cb }); - } - var queueLen = this._queue.length; - if (!this._curReq && queueLen && this._socket && this._socket.readable) { - this._curReq = this._queue.shift(); - if (this._curReq.cmd === 'ABOR' && this._pasvSocket) - this._pasvSocket.aborting = true; - this._debug&&this._debug('[connection] > ' + inspect(this._curReq.cmd)); - this._socket.write(this._curReq.cmd + '\r\n'); - } else if (!this._curReq && !queueLen && this._ending) - this._reset(); -}; - -FTP.prototype._reset = function() { - if (this._pasvSock && this._pasvSock.writable) - this._pasvSock.end(); - if (this._socket && this._socket.writable) - this._socket.end(); - this._socket = undefined; - this._pasvSock = undefined; - this._feat = undefined; - this._curReq = undefined; - this._secstate = undefined; - clearTimeout(this._keepalive); - this._keepalive = undefined; - this._queue = []; - this._ending = false; - this._parser = undefined; - this.options.host = this.options.port = this.options.user - = this.options.password = this.options.secure - = this.options.connTimeout = this.options.pasvTimeout - = this.options.keepalive = this._debug = undefined; - this.connected = false; -}; - -// Utility functions -function makeError(code, text) { - var err = new Error(text); - err.code = code; - return err; -} - - -/***/ }), - -/***/ 69330: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -var WritableStream = __nccwpck_require__(92413).Writable - || __nccwpck_require__(51642).Writable, - inherits = __nccwpck_require__(31669).inherits, - inspect = __nccwpck_require__(31669).inspect; - -var XRegExp = __nccwpck_require__(56155)/* .XRegExp */ .d; - -var REX_LISTUNIX = XRegExp.cache('^(?[\\-ld])(?([\\-r][\\-w][\\-xstT]){3})(?(\\+))?\\s+(?\\d+)\\s+(?\\S+)\\s+(?\\S+)\\s+(?\\d+)\\s+(?((?\\w{3})\\s+(?\\d{1,2})\\s+(?\\d{1,2}):(?\\d{2}))|((?\\w{3})\\s+(?\\d{1,2})\\s+(?\\d{4})))\\s+(?.+)$'), - REX_LISTMSDOS = XRegExp.cache('^(?\\d{2})(?:\\-|\\/)(?\\d{2})(?:\\-|\\/)(?\\d{2,4})\\s+(?\\d{2}):(?\\d{2})\\s{0,1}(?[AaMmPp]{1,2})\\s+(?:(?\\d+)|(?\\))\\s+(?.+)$'), - RE_ENTRY_TOTAL = /^total/, - RE_RES_END = /(?:^|\r?\n)(\d{3}) [^\r\n]*\r?\n/, - RE_EOL = /\r?\n/g, - RE_DASH = /\-/g; - -var MONTHS = { - jan: 1, feb: 2, mar: 3, apr: 4, may: 5, jun: 6, - jul: 7, aug: 8, sep: 9, oct: 10, nov: 11, dec: 12 - }; - -function Parser(options) { - if (!(this instanceof Parser)) - return new Parser(options); - WritableStream.call(this); - - this._buffer = ''; - this._debug = options.debug; -} -inherits(Parser, WritableStream); - -Parser.prototype._write = function(chunk, encoding, cb) { - var m, code, reRmLeadCode, rest = '', debug = this._debug; - - this._buffer += chunk.toString('binary'); - - while (m = RE_RES_END.exec(this._buffer)) { - // support multiple terminating responses in the buffer - rest = this._buffer.substring(m.index + m[0].length); - if (rest.length) - this._buffer = this._buffer.substring(0, m.index + m[0].length); - - debug&&debug('[parser] < ' + inspect(this._buffer)); - - // we have a terminating response line - code = parseInt(m[1], 10); - - // RFC 959 does not require each line in a multi-line response to begin - // with '-', but many servers will do this. - // - // remove this leading '-' (or ' ' from last line) from each - // line in the response ... - reRmLeadCode = '(^|\\r?\\n)'; - reRmLeadCode += m[1]; - reRmLeadCode += '(?: |\\-)'; - reRmLeadCode = new RegExp(reRmLeadCode, 'g'); - var text = this._buffer.replace(reRmLeadCode, '$1').trim(); - this._buffer = rest; - - debug&&debug('[parser] Response: code=' + code + ', buffer=' + inspect(text)); - this.emit('response', code, text); - } - - cb(); -}; - -Parser.parseFeat = function(text) { - var lines = text.split(RE_EOL); - lines.shift(); // initial response line - lines.pop(); // final response line - - for (var i = 0, len = lines.length; i < len; ++i) - lines[i] = lines[i].trim(); - - // just return the raw lines for now - return lines; -}; - -Parser.parseListEntry = function(line) { - var ret, - info, - month, day, year, - hour, mins; - - if (ret = XRegExp.exec(line, REX_LISTUNIX)) { - info = { - type: ret.type, - name: undefined, - target: undefined, - sticky: false, - rights: { - user: ret.permission.substr(0, 3).replace(RE_DASH, ''), - group: ret.permission.substr(3, 3).replace(RE_DASH, ''), - other: ret.permission.substr(6, 3).replace(RE_DASH, '') - }, - acl: (ret.acl === '+'), - owner: ret.owner, - group: ret.group, - size: parseInt(ret.size, 10), - date: undefined - }; - - // check for sticky bit - var lastbit = info.rights.other.slice(-1); - if (lastbit === 't') { - info.rights.other = info.rights.other.slice(0, -1) + 'x'; - info.sticky = true; - } else if (lastbit === 'T') { - info.rights.other = info.rights.other.slice(0, -1); - info.sticky = true; - } - - if (ret.month1 !== undefined) { - month = parseInt(MONTHS[ret.month1.toLowerCase()], 10); - day = parseInt(ret.date1, 10); - year = (new Date()).getFullYear(); - hour = parseInt(ret.hour, 10); - mins = parseInt(ret.minute, 10); - if (month < 10) - month = '0' + month; - if (day < 10) - day = '0' + day; - if (hour < 10) - hour = '0' + hour; - if (mins < 10) - mins = '0' + mins; - info.date = new Date(year + '-' - + month + '-' - + day + 'T' - + hour + ':' - + mins); - // If the date is in the past but no more than 6 months old, year - // isn't displayed and doesn't have to be the current year. - // - // If the date is in the future (less than an hour from now), year - // isn't displayed and doesn't have to be the current year. - // That second case is much more rare than the first and less annoying. - // It's impossible to fix without knowing about the server's timezone, - // so we just don't do anything about it. - // - // If we're here with a time that is more than 28 hours into the - // future (1 hour + maximum timezone offset which is 27 hours), - // there is a problem -- we should be in the second conditional block - if (info.date.getTime() - Date.now() > 100800000) { - info.date = new Date((year - 1) + '-' - + month + '-' - + day + 'T' - + hour + ':' - + mins); - } - - // If we're here with a time that is more than 6 months old, there's - // a problem as well. - // Maybe local & remote servers aren't on the same timezone (with remote - // ahead of local) - // For instance, remote is in 2014 while local is still in 2013. In - // this case, a date like 01/01/13 02:23 could be detected instead of - // 01/01/14 02:23 - // Our trigger point will be 3600*24*31*6 (since we already use 31 - // as an upper bound, no need to add the 27 hours timezone offset) - if (Date.now() - info.date.getTime() > 16070400000) { - info.date = new Date((year + 1) + '-' - + month + '-' - + day + 'T' - + hour + ':' - + mins); - } - } else if (ret.month2 !== undefined) { - month = parseInt(MONTHS[ret.month2.toLowerCase()], 10); - day = parseInt(ret.date2, 10); - year = parseInt(ret.year, 10); - if (month < 10) - month = '0' + month; - if (day < 10) - day = '0' + day; - info.date = new Date(year + '-' + month + '-' + day); - } - if (ret.type === 'l') { - var pos = ret.name.indexOf(' -> '); - info.name = ret.name.substring(0, pos); - info.target = ret.name.substring(pos+4); - } else - info.name = ret.name; - ret = info; - } else if (ret = XRegExp.exec(line, REX_LISTMSDOS)) { - info = { - name: ret.name, - type: (ret.isdir ? 'd' : '-'), - size: (ret.isdir ? 0 : parseInt(ret.size, 10)), - date: undefined, - }; - month = parseInt(ret.month, 10), - day = parseInt(ret.date, 10), - year = parseInt(ret.year, 10), - hour = parseInt(ret.hour, 10), - mins = parseInt(ret.minute, 10); - - if (year < 70) - year += 2000; - else - year += 1900; - - if (ret.ampm[0].toLowerCase() === 'p' && hour < 12) - hour += 12; - else if (ret.ampm[0].toLowerCase() === 'a' && hour === 12) - hour = 0; - - info.date = new Date(year, month - 1, day, hour, mins); - - ret = info; - } else if (!RE_ENTRY_TOTAL.test(line)) - ret = line; // could not parse, so at least give the end user a chance to - // look at the raw listing themselves - - return ret; -}; - -module.exports = Parser; - - -/***/ }), - -/***/ 15525: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - -var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { - function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } - return new (P || (P = Promise))(function (resolve, reject) { - function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } - function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } - function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } - step((generator = generator.apply(thisArg, _arguments || [])).next()); - }); -}; -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; -Object.defineProperty(exports, "__esModule", ({ value: true })); -const debug_1 = __importDefault(__nccwpck_require__(38237)); -const stream_1 = __nccwpck_require__(92413); -const crypto_1 = __nccwpck_require__(76417); -const data_uri_to_buffer_1 = __importDefault(__nccwpck_require__(92371)); -const notmodified_1 = __importDefault(__nccwpck_require__(70186)); -const debug = debug_1.default('get-uri:data'); -class DataReadable extends stream_1.Readable { - constructor(hash, buf) { - super(); - this.push(buf); - this.push(null); - this.hash = hash; - } -} -/** - * Returns a Readable stream from a "data:" URI. - */ -function get({ href: uri }, { cache }) { - return __awaiter(this, void 0, void 0, function* () { - // need to create a SHA1 hash of the URI string, for cacheability checks - // in future `getUri()` calls with the same data URI passed in. - const shasum = crypto_1.createHash('sha1'); - shasum.update(uri); - const hash = shasum.digest('hex'); - debug('generated SHA1 hash for "data:" URI: %o', hash); - // check if the cache is the same "data:" URI that was previously passed in. - if (cache && cache.hash === hash) { - debug('got matching cache SHA1 hash: %o', hash); - throw new notmodified_1.default(); - } - else { - debug('creating Readable stream from "data:" URI buffer'); - const buf = data_uri_to_buffer_1.default(uri); - return new DataReadable(hash, buf); - } - }); -} -exports.default = get; -//# sourceMappingURL=data.js.map - -/***/ }), - -/***/ 50878: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - -var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { - function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } - return new (P || (P = Promise))(function (resolve, reject) { - function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } - function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } - function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } - step((generator = generator.apply(thisArg, _arguments || [])).next()); - }); -}; -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; -Object.defineProperty(exports, "__esModule", ({ value: true })); -const debug_1 = __importDefault(__nccwpck_require__(38237)); -const fs_1 = __nccwpck_require__(35747); -const fs_extra_1 = __nccwpck_require__(5630); -const file_uri_to_path_1 = __importDefault(__nccwpck_require__(91683)); -const notfound_1 = __importDefault(__nccwpck_require__(25767)); -const notmodified_1 = __importDefault(__nccwpck_require__(70186)); -const debug = debug_1.default('get-uri:file'); -/** - * Returns a `fs.ReadStream` instance from a "file:" URI. - */ -function get({ href: uri }, opts) { - return __awaiter(this, void 0, void 0, function* () { - const { cache, flags = 'r', mode = 438 // =0666 - } = opts; - try { - // Convert URI → Path - const filepath = file_uri_to_path_1.default(uri); - debug('Normalized pathname: %o', filepath); - // `open()` first to get a file descriptor and ensure that the file - // exists. - const fd = yield fs_extra_1.open(filepath, flags, mode); - // Now `fstat()` to check the `mtime` and store the stat object for - // the cache. - const stat = yield fs_extra_1.fstat(fd); - // if a `cache` was provided, check if the file has not been modified - if (cache && cache.stat && stat && isNotModified(cache.stat, stat)) { - throw new notmodified_1.default(); - } - // `fs.ReadStream` takes care of calling `fs.close()` on the - // fd after it's done reading - // @ts-ignore - `@types/node` doesn't allow `null` as file path :/ - const rs = fs_1.createReadStream(null, Object.assign(Object.assign({ autoClose: true }, opts), { fd })); - rs.stat = stat; - return rs; - } - catch (err) { - if (err.code === 'ENOENT') { - throw new notfound_1.default(); - } - throw err; - } - }); -} -exports.default = get; -// returns `true` if the `mtime` of the 2 stat objects are equal -function isNotModified(prev, curr) { - return +prev.mtime === +curr.mtime; -} -//# sourceMappingURL=file.js.map - -/***/ }), - -/***/ 49886: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - -var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { - function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } - return new (P || (P = Promise))(function (resolve, reject) { - function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } - function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } - function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } - step((generator = generator.apply(thisArg, _arguments || [])).next()); - }); -}; -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; -Object.defineProperty(exports, "__esModule", ({ value: true })); -const once_1 = __importDefault(__nccwpck_require__(81040)); -const ftp_1 = __importDefault(__nccwpck_require__(79203)); -const path_1 = __nccwpck_require__(85622); -const debug_1 = __importDefault(__nccwpck_require__(38237)); -const notfound_1 = __importDefault(__nccwpck_require__(25767)); -const notmodified_1 = __importDefault(__nccwpck_require__(70186)); -const debug = debug_1.default('get-uri:ftp'); -/** - * Returns a Readable stream from an "ftp:" URI. - */ -function get(parsed, opts) { - return __awaiter(this, void 0, void 0, function* () { - const { cache } = opts; - const filepath = parsed.pathname; - let lastModified = null; - if (!filepath) { - throw new TypeError('No "pathname"!'); - } - const client = new ftp_1.default(); - client.once('greeting', (greeting) => { - debug('FTP greeting: %o', greeting); - }); - function onend() { - // close the FTP client socket connection - client.end(); - } - try { - opts.host = parsed.hostname || parsed.host || 'localhost'; - opts.port = parseInt(parsed.port || '0', 10) || 21; - opts.debug = debug; - if (parsed.auth) { - const [user, password] = parsed.auth.split(':'); - opts.user = user; - opts.password = password; - } - // await cb(_ => client.connect(opts, _)); - const readyPromise = once_1.default(client, 'ready'); - client.connect(opts); - yield readyPromise; - // first we have to figure out the Last Modified date. - // try the MDTM command first, which is an optional extension command. - try { - lastModified = yield new Promise((resolve, reject) => { - client.lastMod(filepath, (err, res) => { - return err ? reject(err) : resolve(res); - }); - }); - } - catch (err) { - // handle the "file not found" error code - if (err.code === 550) { - throw new notfound_1.default(); - } - } - if (!lastModified) { - // Try to get the last modified date via the LIST command (uses - // more bandwidth, but is more compatible with older FTP servers - const list = yield new Promise((resolve, reject) => { - client.list(path_1.dirname(filepath), (err, res) => { - return err ? reject(err) : resolve(res); - }); - }); - // attempt to find the "entry" with a matching "name" - const name = path_1.basename(filepath); - const entry = list.find(e => e.name === name); - if (entry) { - lastModified = entry.date; - } - } - if (lastModified) { - if (isNotModified()) { - throw new notmodified_1.default(); - } - } - else { - throw new notfound_1.default(); - } - // XXX: a small timeout seemed necessary otherwise FTP servers - // were returning empty sockets for the file occasionally - // setTimeout(client.get.bind(client, filepath, onfile), 10); - const rs = (yield new Promise((resolve, reject) => { - client.get(filepath, (err, res) => { - return err ? reject(err) : resolve(res); - }); - })); - rs.once('end', onend); - rs.lastModified = lastModified; - return rs; - } - catch (err) { - client.destroy(); - throw err; - } - // called when `lastModified` is set, and a "cache" stream was provided - function isNotModified() { - if (cache && cache.lastModified && lastModified) { - return +cache.lastModified === +lastModified; - } - return false; - } - }); -} -exports.default = get; -//# sourceMappingURL=ftp.js.map - -/***/ }), - -/***/ 8558: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -const http_1 = __nccwpck_require__(98605); -/** - * Error subclass to use when an HTTP application error has occurred. - */ -class HTTPError extends Error { - constructor(statusCode, message = http_1.STATUS_CODES[statusCode]) { - super(message); - Object.setPrototypeOf(this, new.target.prototype); - this.statusCode = statusCode; - this.code = `E${String(message) - .toUpperCase() - .replace(/\s+/g, '')}`; - } -} -exports.default = HTTPError; -//# sourceMappingURL=http-error.js.map - -/***/ }), - -/***/ 33582: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - -var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { - function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } - return new (P || (P = Promise))(function (resolve, reject) { - function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } - function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } - function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } - step((generator = generator.apply(thisArg, _arguments || [])).next()); - }); -}; -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; -Object.defineProperty(exports, "__esModule", ({ value: true })); -const http_1 = __importDefault(__nccwpck_require__(98605)); -const https_1 = __importDefault(__nccwpck_require__(57211)); -const once_1 = __importDefault(__nccwpck_require__(81040)); -const debug_1 = __importDefault(__nccwpck_require__(38237)); -const url_1 = __nccwpck_require__(78835); -const http_error_1 = __importDefault(__nccwpck_require__(8558)); -const notfound_1 = __importDefault(__nccwpck_require__(25767)); -const notmodified_1 = __importDefault(__nccwpck_require__(70186)); -const debug = debug_1.default('get-uri:http'); -/** - * Returns a Readable stream from an "http:" URI. - */ -function get(parsed, opts) { - return __awaiter(this, void 0, void 0, function* () { - debug('GET %o', parsed.href); - const cache = getCache(parsed, opts.cache); - // first check the previous Expires and/or Cache-Control headers - // of a previous response if a `cache` was provided - if (cache && isFresh(cache) && typeof cache.statusCode === 'number') { - // check for a 3xx "redirect" status code on the previous cache - const type = (cache.statusCode / 100) | 0; - if (type === 3 && cache.headers.location) { - debug('cached redirect'); - throw new Error('TODO: implement cached redirects!'); - } - // otherwise we assume that it's the destination endpoint, - // since there's nowhere else to redirect to - throw new notmodified_1.default(); - } - // 5 redirects allowed by default - const maxRedirects = typeof opts.maxRedirects === 'number' ? opts.maxRedirects : 5; - debug('allowing %o max redirects', maxRedirects); - let mod; - if (opts.http) { - // the `https` module passed in from the "http.js" file - mod = opts.http; - debug('using secure `https` core module'); - } - else { - mod = http_1.default; - debug('using `http` core module'); - } - const options = Object.assign(Object.assign({}, opts), parsed); - // add "cache validation" headers if a `cache` was provided - if (cache) { - if (!options.headers) { - options.headers = {}; - } - const lastModified = cache.headers['last-modified']; - if (lastModified) { - options.headers['If-Modified-Since'] = lastModified; - debug('added "If-Modified-Since" request header: %o', lastModified); - } - const etag = cache.headers.etag; - if (etag) { - options.headers['If-None-Match'] = etag; - debug('added "If-None-Match" request header: %o', etag); - } - } - const req = mod.get(options); - const res = yield once_1.default(req, 'response'); - const code = res.statusCode || 0; - // assign a Date to this response for the "Cache-Control" delta calculation - res.date = Date.now(); - res.parsed = parsed; - debug('got %o response status code', code); - // any 2xx response is a "success" code - let type = (code / 100) | 0; - // check for a 3xx "redirect" status code - let location = res.headers.location; - if (type === 3 && location) { - if (!opts.redirects) - opts.redirects = []; - let redirects = opts.redirects; - if (redirects.length < maxRedirects) { - debug('got a "redirect" status code with Location: %o', location); - // flush this response - we're not going to use it - res.resume(); - // hang on to this Response object for the "redirects" Array - redirects.push(res); - let newUri = url_1.resolve(parsed.href, location); - debug('resolved redirect URL: %o', newUri); - let left = maxRedirects - redirects.length; - debug('%o more redirects allowed after this one', left); - // check if redirecting to a different protocol - let parsedUrl = url_1.parse(newUri); - if (parsedUrl.protocol !== parsed.protocol) { - opts.http = parsedUrl.protocol === 'https:' ? https_1.default : undefined; - } - return get(parsedUrl, opts); - } - } - // if we didn't get a 2xx "success" status code, then create an Error object - if (type !== 2) { - res.resume(); - if (code === 304) { - throw new notmodified_1.default(); - } - else if (code === 404) { - throw new notfound_1.default(); - } - // other HTTP-level error - throw new http_error_1.default(code); - } - if (opts.redirects) { - // store a reference to the "redirects" Array on the Response object so that - // they can be inspected during a subsequent call to GET the same URI - res.redirects = opts.redirects; - } - return res; - }); -} -exports.default = get; -/** - * Returns `true` if the provided cache's "freshness" is valid. That is, either - * the Cache-Control header or Expires header values are still within the allowed - * time period. - * - * @return {Boolean} - * @api private - */ -function isFresh(cache) { - let fresh = false; - let expires = parseInt(cache.headers.expires || '', 10); - const cacheControl = cache.headers['cache-control']; - if (cacheControl) { - // for Cache-Control rules, see: http://www.mnot.net/cache_docs/#CACHE-CONTROL - debug('Cache-Control: %o', cacheControl); - const parts = cacheControl.split(/,\s*?\b/); - for (let i = 0; i < parts.length; i++) { - const part = parts[i]; - const subparts = part.split('='); - const name = subparts[0]; - switch (name) { - case 'max-age': - expires = (cache.date || 0) + parseInt(subparts[1], 10) * 1000; - fresh = Date.now() < expires; - if (fresh) { - debug('cache is "fresh" due to previous %o Cache-Control param', part); - } - return fresh; - case 'must-revalidate': - // XXX: what we supposed to do here? - break; - case 'no-cache': - case 'no-store': - debug('cache is "stale" due to explicit %o Cache-Control param', name); - return false; - default: - // ignore unknown cache value - break; - } - } - } - else if (expires) { - // for Expires rules, see: http://www.mnot.net/cache_docs/#EXPIRES - debug('Expires: %o', expires); - fresh = Date.now() < expires; - if (fresh) { - debug('cache is "fresh" due to previous Expires response header'); - } - return fresh; - } - return false; -} -/** - * Attempts to return a previous Response object from a previous GET call to the - * same URI. - * - * @api private - */ -function getCache(parsed, cache) { - if (cache) { - if (cache.parsed && cache.parsed.href === parsed.href) { - return cache; - } - if (cache.redirects) { - for (let i = 0; i < cache.redirects.length; i++) { - const c = getCache(parsed, cache.redirects[i]); - if (c) { - return c; - } - } - } - } - return null; -} -//# sourceMappingURL=http.js.map - -/***/ }), - -/***/ 15227: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; -Object.defineProperty(exports, "__esModule", ({ value: true })); -const https_1 = __importDefault(__nccwpck_require__(57211)); -const http_1 = __importDefault(__nccwpck_require__(33582)); -/** - * Returns a Readable stream from an "https:" URI. - */ -function get(parsed, opts) { - return http_1.default(parsed, Object.assign(Object.assign({}, opts), { http: https_1.default })); -} -exports.default = get; -//# sourceMappingURL=https.js.map - -/***/ }), - -/***/ 11792: -/***/ (function(module, __unused_webpack_exports, __nccwpck_require__) { - -"use strict"; - -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; -const debug_1 = __importDefault(__nccwpck_require__(38237)); -const url_1 = __nccwpck_require__(78835); -// Built-in protocols -const data_1 = __importDefault(__nccwpck_require__(15525)); -const file_1 = __importDefault(__nccwpck_require__(50878)); -const ftp_1 = __importDefault(__nccwpck_require__(49886)); -const http_1 = __importDefault(__nccwpck_require__(33582)); -const https_1 = __importDefault(__nccwpck_require__(15227)); -const debug = debug_1.default('get-uri'); -function getUri(uri, opts, fn) { - const p = new Promise((resolve, reject) => { - debug('getUri(%o)', uri); - if (typeof opts === 'function') { - fn = opts; - opts = undefined; - } - if (!uri) { - reject(new TypeError('Must pass in a URI to "get"')); - return; - } - const parsed = url_1.parse(uri); - // Strip trailing `:` - const protocol = (parsed.protocol || '').replace(/:$/, ''); - if (!protocol) { - reject(new TypeError(`URI does not contain a protocol: ${uri}`)); - return; - } - const getter = getUri.protocols[protocol]; - if (typeof getter !== 'function') { - throw new TypeError(`Unsupported protocol "${protocol}" specified in URI: ${uri}`); - } - resolve(getter(parsed, opts || {})); - }); - if (typeof fn === 'function') { - p.then(rtn => fn(null, rtn), err => fn(err)); - } - else { - return p; - } -} -(function (getUri) { - getUri.protocols = { - data: data_1.default, - file: file_1.default, - ftp: ftp_1.default, - http: http_1.default, - https: https_1.default - }; -})(getUri || (getUri = {})); -module.exports = getUri; -//# sourceMappingURL=index.js.map - -/***/ }), - -/***/ 25767: -/***/ ((__unused_webpack_module, exports) => { - -"use strict"; - -/** - * Error subclass to use when the source does not exist at the specified endpoint. - * - * @param {String} message optional "message" property to set - * @api protected - */ -Object.defineProperty(exports, "__esModule", ({ value: true })); -class NotFoundError extends Error { - constructor(message) { - super(message || 'File does not exist at the specified endpoint'); - this.code = 'ENOTFOUND'; - Object.setPrototypeOf(this, new.target.prototype); - } -} -exports.default = NotFoundError; -//# sourceMappingURL=notfound.js.map - -/***/ }), - -/***/ 70186: -/***/ ((__unused_webpack_module, exports) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -/** - * Error subclass to use when the source has not been modified. - * - * @param {String} message optional "message" property to set - * @api protected - */ -class NotModifiedError extends Error { - constructor(message) { - super(message || - 'Source has not been modified since the provied "cache", re-use previous results'); - this.code = 'ENOTMODIFIED'; - Object.setPrototypeOf(this, new.target.prototype); - } -} -exports.default = NotModifiedError; -//# sourceMappingURL=notmodified.js.map - -/***/ }), - -/***/ 31621: -/***/ ((module) => { - -"use strict"; - - -module.exports = (flag, argv = process.argv) => { - const prefix = flag.startsWith('-') ? '' : (flag.length === 1 ? '-' : '--'); - const position = argv.indexOf(prefix + flag); - const terminatorPosition = argv.indexOf('--'); - return position !== -1 && (terminatorPosition === -1 || position < terminatorPosition); -}; - - -/***/ }), - -/***/ 95193: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -"use strict"; -/*! - * http-errors - * Copyright(c) 2014 Jonathan Ong - * Copyright(c) 2016 Douglas Christopher Wilson - * MIT Licensed - */ - - - -/** - * Module dependencies. - * @private - */ - -var deprecate = __nccwpck_require__(18883)('http-errors') -var setPrototypeOf = __nccwpck_require__(40414) -var statuses = __nccwpck_require__(57415) -var inherits = __nccwpck_require__(44124) -var toIdentifier = __nccwpck_require__(46399) - -/** - * Module exports. - * @public - */ - -module.exports = createError -module.exports.HttpError = createHttpErrorConstructor() -module.exports.isHttpError = createIsHttpErrorFunction(module.exports.HttpError) - -// Populate exports for all constructors -populateConstructorExports(module.exports, statuses.codes, module.exports.HttpError) - -/** - * Get the code class of a status code. - * @private - */ - -function codeClass (status) { - return Number(String(status).charAt(0) + '00') -} - -/** - * Create a new HTTP Error. - * - * @returns {Error} - * @public - */ - -function createError () { - // so much arity going on ~_~ - var err - var msg - var status = 500 - var props = {} - for (var i = 0; i < arguments.length; i++) { - var arg = arguments[i] - if (arg instanceof Error) { - err = arg - status = err.status || err.statusCode || status - continue - } - switch (typeof arg) { - case 'string': - msg = arg - break - case 'number': - status = arg - if (i !== 0) { - deprecate('non-first-argument status code; replace with createError(' + arg + ', ...)') - } - break - case 'object': - props = arg - break - } - } - - if (typeof status === 'number' && (status < 400 || status >= 600)) { - deprecate('non-error status code; use only 4xx or 5xx status codes') - } - - if (typeof status !== 'number' || - (!statuses[status] && (status < 400 || status >= 600))) { - status = 500 - } - - // constructor - var HttpError = createError[status] || createError[codeClass(status)] - - if (!err) { - // create error - err = HttpError - ? new HttpError(msg) - : new Error(msg || statuses[status]) - Error.captureStackTrace(err, createError) - } - - if (!HttpError || !(err instanceof HttpError) || err.status !== status) { - // add properties to generic error - err.expose = status < 500 - err.status = err.statusCode = status - } - - for (var key in props) { - if (key !== 'status' && key !== 'statusCode') { - err[key] = props[key] - } - } - - return err -} - -/** - * Create HTTP error abstract base class. - * @private - */ - -function createHttpErrorConstructor () { - function HttpError () { - throw new TypeError('cannot construct abstract class') - } - - inherits(HttpError, Error) - - return HttpError -} - -/** - * Create a constructor for a client error. - * @private - */ - -function createClientErrorConstructor (HttpError, name, code) { - var className = toClassName(name) - - function ClientError (message) { - // create the error object - var msg = message != null ? message : statuses[code] - var err = new Error(msg) - - // capture a stack trace to the construction point - Error.captureStackTrace(err, ClientError) - - // adjust the [[Prototype]] - setPrototypeOf(err, ClientError.prototype) - - // redefine the error message - Object.defineProperty(err, 'message', { - enumerable: true, - configurable: true, - value: msg, - writable: true - }) - - // redefine the error name - Object.defineProperty(err, 'name', { - enumerable: false, - configurable: true, - value: className, - writable: true - }) - - return err - } - - inherits(ClientError, HttpError) - nameFunc(ClientError, className) - - ClientError.prototype.status = code - ClientError.prototype.statusCode = code - ClientError.prototype.expose = true - - return ClientError -} - -/** - * Create function to test is a value is a HttpError. - * @private - */ - -function createIsHttpErrorFunction (HttpError) { - return function isHttpError (val) { - if (!val || typeof val !== 'object') { - return false - } - - if (val instanceof HttpError) { - return true - } - - return val instanceof Error && - typeof val.expose === 'boolean' && - typeof val.statusCode === 'number' && val.status === val.statusCode - } -} - -/** - * Create a constructor for a server error. - * @private - */ - -function createServerErrorConstructor (HttpError, name, code) { - var className = toClassName(name) - - function ServerError (message) { - // create the error object - var msg = message != null ? message : statuses[code] - var err = new Error(msg) - - // capture a stack trace to the construction point - Error.captureStackTrace(err, ServerError) - - // adjust the [[Prototype]] - setPrototypeOf(err, ServerError.prototype) - - // redefine the error message - Object.defineProperty(err, 'message', { - enumerable: true, - configurable: true, - value: msg, - writable: true - }) - - // redefine the error name - Object.defineProperty(err, 'name', { - enumerable: false, - configurable: true, - value: className, - writable: true - }) - - return err - } - - inherits(ServerError, HttpError) - nameFunc(ServerError, className) - - ServerError.prototype.status = code - ServerError.prototype.statusCode = code - ServerError.prototype.expose = false - - return ServerError -} - -/** - * Set the name of a function, if possible. - * @private - */ - -function nameFunc (func, name) { - var desc = Object.getOwnPropertyDescriptor(func, 'name') - - if (desc && desc.configurable) { - desc.value = name - Object.defineProperty(func, 'name', desc) - } -} - -/** - * Populate the exports object with constructors for every error class. - * @private - */ - -function populateConstructorExports (exports, codes, HttpError) { - codes.forEach(function forEachCode (code) { - var CodeError - var name = toIdentifier(statuses[code]) - - switch (codeClass(code)) { - case 400: - CodeError = createClientErrorConstructor(HttpError, name, code) - break - case 500: - CodeError = createServerErrorConstructor(HttpError, name, code) - break - } - - if (CodeError) { - // export the constructor - exports[code] = CodeError - exports[name] = CodeError - } - }) - - // backwards-compatibility - exports["I'mateapot"] = deprecate.function(exports.ImATeapot, - '"I\'mateapot"; use "ImATeapot" instead') -} - -/** - * Get a class name from a name identifier. - * @private - */ - -function toClassName (name) { - return name.substr(-5) !== 'Error' - ? name + 'Error' - : name -} - - -/***/ }), - -/***/ 77492: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - -var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { - function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } - return new (P || (P = Promise))(function (resolve, reject) { - function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } - function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } - function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } - step((generator = generator.apply(thisArg, _arguments || [])).next()); - }); -}; -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; -Object.defineProperty(exports, "__esModule", ({ value: true })); -const net_1 = __importDefault(__nccwpck_require__(11631)); -const tls_1 = __importDefault(__nccwpck_require__(4016)); -const url_1 = __importDefault(__nccwpck_require__(78835)); -const debug_1 = __importDefault(__nccwpck_require__(38237)); -const once_1 = __importDefault(__nccwpck_require__(81040)); -const agent_base_1 = __nccwpck_require__(49690); -const debug = debug_1.default('http-proxy-agent'); -function isHTTPS(protocol) { - return typeof protocol === 'string' ? /^https:?$/i.test(protocol) : false; -} -/** - * The `HttpProxyAgent` implements an HTTP Agent subclass that connects - * to the specified "HTTP proxy server" in order to proxy HTTP requests. - * - * @api public - */ -class HttpProxyAgent extends agent_base_1.Agent { - constructor(_opts) { - let opts; - if (typeof _opts === 'string') { - opts = url_1.default.parse(_opts); - } - else { - opts = _opts; - } - if (!opts) { - throw new Error('an HTTP(S) proxy server `host` and `port` must be specified!'); - } - debug('Creating new HttpProxyAgent instance: %o', opts); - super(opts); - const proxy = Object.assign({}, opts); - // If `true`, then connect to the proxy server over TLS. - // Defaults to `false`. - this.secureProxy = opts.secureProxy || isHTTPS(proxy.protocol); - // Prefer `hostname` over `host`, and set the `port` if needed. - proxy.host = proxy.hostname || proxy.host; - if (typeof proxy.port === 'string') { - proxy.port = parseInt(proxy.port, 10); - } - if (!proxy.port && proxy.host) { - proxy.port = this.secureProxy ? 443 : 80; - } - if (proxy.host && proxy.path) { - // If both a `host` and `path` are specified then it's most likely - // the result of a `url.parse()` call... we need to remove the - // `path` portion so that `net.connect()` doesn't attempt to open - // that as a Unix socket file. - delete proxy.path; - delete proxy.pathname; - } - this.proxy = proxy; - } - /** - * Called when the node-core HTTP client library is creating a - * new HTTP request. - * - * @api protected - */ - callback(req, opts) { - return __awaiter(this, void 0, void 0, function* () { - const { proxy, secureProxy } = this; - const parsed = url_1.default.parse(req.path); - if (!parsed.protocol) { - parsed.protocol = 'http:'; - } - if (!parsed.hostname) { - parsed.hostname = opts.hostname || opts.host || null; - } - if (parsed.port == null && typeof opts.port) { - parsed.port = String(opts.port); - } - if (parsed.port === '80') { - // if port is 80, then we can remove the port so that the - // ":80" portion is not on the produced URL - delete parsed.port; - } - // Change the `http.ClientRequest` instance's "path" field - // to the absolute path of the URL that will be requested. - req.path = url_1.default.format(parsed); - // Inject the `Proxy-Authorization` header if necessary. - if (proxy.auth) { - req.setHeader('Proxy-Authorization', `Basic ${Buffer.from(proxy.auth).toString('base64')}`); - } - // Create a socket connection to the proxy server. - let socket; - if (secureProxy) { - debug('Creating `tls.Socket`: %o', proxy); - socket = tls_1.default.connect(proxy); - } - else { - debug('Creating `net.Socket`: %o', proxy); - socket = net_1.default.connect(proxy); - } - // At this point, the http ClientRequest's internal `_header` field - // might have already been set. If this is the case then we'll need - // to re-generate the string since we just changed the `req.path`. - if (req._header) { - let first; - let endOfHeaders; - debug('Regenerating stored HTTP header string for request'); - req._header = null; - req._implicitHeader(); - if (req.output && req.output.length > 0) { - // Node < 12 - debug('Patching connection write() output buffer with updated header'); - first = req.output[0]; - endOfHeaders = first.indexOf('\r\n\r\n') + 4; - req.output[0] = req._header + first.substring(endOfHeaders); - debug('Output buffer: %o', req.output); - } - else if (req.outputData && req.outputData.length > 0) { - // Node >= 12 - debug('Patching connection write() output buffer with updated header'); - first = req.outputData[0].data; - endOfHeaders = first.indexOf('\r\n\r\n') + 4; - req.outputData[0].data = - req._header + first.substring(endOfHeaders); - debug('Output buffer: %o', req.outputData[0].data); - } - } - // Wait for the socket's `connect` event, so that this `callback()` - // function throws instead of the `http` request machinery. This is - // important for i.e. `PacProxyAgent` which determines a failed proxy - // connection via the `callback()` function throwing. - yield once_1.default(socket, 'connect'); - return socket; - }); - } -} -exports.default = HttpProxyAgent; -//# sourceMappingURL=agent.js.map - -/***/ }), - -/***/ 23764: -/***/ (function(module, __unused_webpack_exports, __nccwpck_require__) { - -"use strict"; - -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; -const agent_1 = __importDefault(__nccwpck_require__(77492)); -function createHttpProxyAgent(opts) { - return new agent_1.default(opts); -} -(function (createHttpProxyAgent) { - createHttpProxyAgent.HttpProxyAgent = agent_1.default; - createHttpProxyAgent.prototype = agent_1.default.prototype; -})(createHttpProxyAgent || (createHttpProxyAgent = {})); -module.exports = createHttpProxyAgent; -//# sourceMappingURL=index.js.map - -/***/ }), - -/***/ 15098: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - -var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { - function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } - return new (P || (P = Promise))(function (resolve, reject) { - function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } - function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } - function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } - step((generator = generator.apply(thisArg, _arguments || [])).next()); - }); -}; -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; -Object.defineProperty(exports, "__esModule", ({ value: true })); -const net_1 = __importDefault(__nccwpck_require__(11631)); -const tls_1 = __importDefault(__nccwpck_require__(4016)); -const url_1 = __importDefault(__nccwpck_require__(78835)); -const assert_1 = __importDefault(__nccwpck_require__(42357)); -const debug_1 = __importDefault(__nccwpck_require__(38237)); -const agent_base_1 = __nccwpck_require__(49690); -const parse_proxy_response_1 = __importDefault(__nccwpck_require__(595)); -const debug = debug_1.default('https-proxy-agent:agent'); -/** - * The `HttpsProxyAgent` implements an HTTP Agent subclass that connects to - * the specified "HTTP(s) proxy server" in order to proxy HTTPS requests. - * - * Outgoing HTTP requests are first tunneled through the proxy server using the - * `CONNECT` HTTP request method to establish a connection to the proxy server, - * and then the proxy server connects to the destination target and issues the - * HTTP request from the proxy server. - * - * `https:` requests have their socket connection upgraded to TLS once - * the connection to the proxy server has been established. - * - * @api public - */ -class HttpsProxyAgent extends agent_base_1.Agent { - constructor(_opts) { - let opts; - if (typeof _opts === 'string') { - opts = url_1.default.parse(_opts); - } - else { - opts = _opts; - } - if (!opts) { - throw new Error('an HTTP(S) proxy server `host` and `port` must be specified!'); - } - debug('creating new HttpsProxyAgent instance: %o', opts); - super(opts); - const proxy = Object.assign({}, opts); - // If `true`, then connect to the proxy server over TLS. - // Defaults to `false`. - this.secureProxy = opts.secureProxy || isHTTPS(proxy.protocol); - // Prefer `hostname` over `host`, and set the `port` if needed. - proxy.host = proxy.hostname || proxy.host; - if (typeof proxy.port === 'string') { - proxy.port = parseInt(proxy.port, 10); - } - if (!proxy.port && proxy.host) { - proxy.port = this.secureProxy ? 443 : 80; - } - // ALPN is supported by Node.js >= v5. - // attempt to negotiate http/1.1 for proxy servers that support http/2 - if (this.secureProxy && !('ALPNProtocols' in proxy)) { - proxy.ALPNProtocols = ['http 1.1']; - } - if (proxy.host && proxy.path) { - // If both a `host` and `path` are specified then it's most likely - // the result of a `url.parse()` call... we need to remove the - // `path` portion so that `net.connect()` doesn't attempt to open - // that as a Unix socket file. - delete proxy.path; - delete proxy.pathname; - } - this.proxy = proxy; - } - /** - * Called when the node-core HTTP client library is creating a - * new HTTP request. - * - * @api protected - */ - callback(req, opts) { - return __awaiter(this, void 0, void 0, function* () { - const { proxy, secureProxy } = this; - // Create a socket connection to the proxy server. - let socket; - if (secureProxy) { - debug('Creating `tls.Socket`: %o', proxy); - socket = tls_1.default.connect(proxy); - } - else { - debug('Creating `net.Socket`: %o', proxy); - socket = net_1.default.connect(proxy); - } - const headers = Object.assign({}, proxy.headers); - const hostname = `${opts.host}:${opts.port}`; - let payload = `CONNECT ${hostname} HTTP/1.1\r\n`; - // Inject the `Proxy-Authorization` header if necessary. - if (proxy.auth) { - headers['Proxy-Authorization'] = `Basic ${Buffer.from(proxy.auth).toString('base64')}`; - } - // The `Host` header should only include the port - // number when it is not the default port. - let { host, port, secureEndpoint } = opts; - if (!isDefaultPort(port, secureEndpoint)) { - host += `:${port}`; - } - headers.Host = host; - headers.Connection = 'close'; - for (const name of Object.keys(headers)) { - payload += `${name}: ${headers[name]}\r\n`; - } - const proxyResponsePromise = parse_proxy_response_1.default(socket); - socket.write(`${payload}\r\n`); - const { statusCode, buffered } = yield proxyResponsePromise; - if (statusCode === 200) { - req.once('socket', resume); - if (opts.secureEndpoint) { - const servername = opts.servername || opts.host; - if (!servername) { - throw new Error('Could not determine "servername"'); - } - // The proxy is connecting to a TLS server, so upgrade - // this socket connection to a TLS connection. - debug('Upgrading socket connection to TLS'); - return tls_1.default.connect(Object.assign(Object.assign({}, omit(opts, 'host', 'hostname', 'path', 'port')), { socket, - servername })); - } - return socket; - } - // Some other status code that's not 200... need to re-play the HTTP - // header "data" events onto the socket once the HTTP machinery is - // attached so that the node core `http` can parse and handle the - // error status code. - // Close the original socket, and a new "fake" socket is returned - // instead, so that the proxy doesn't get the HTTP request - // written to it (which may contain `Authorization` headers or other - // sensitive data). - // - // See: https://hackerone.com/reports/541502 - socket.destroy(); - const fakeSocket = new net_1.default.Socket(); - fakeSocket.readable = true; - // Need to wait for the "socket" event to re-play the "data" events. - req.once('socket', (s) => { - debug('replaying proxy buffer for failed request'); - assert_1.default(s.listenerCount('data') > 0); - // Replay the "buffered" Buffer onto the fake `socket`, since at - // this point the HTTP module machinery has been hooked up for - // the user. - s.push(buffered); - s.push(null); - }); - return fakeSocket; - }); - } -} -exports.default = HttpsProxyAgent; -function resume(socket) { - socket.resume(); -} -function isDefaultPort(port, secure) { - return Boolean((!secure && port === 80) || (secure && port === 443)); -} -function isHTTPS(protocol) { - return typeof protocol === 'string' ? /^https:?$/i.test(protocol) : false; -} -function omit(obj, ...keys) { - const ret = {}; - let key; - for (key in obj) { - if (!keys.includes(key)) { - ret[key] = obj[key]; - } - } - return ret; -} -//# sourceMappingURL=agent.js.map - -/***/ }), - -/***/ 77219: -/***/ (function(module, __unused_webpack_exports, __nccwpck_require__) { - -"use strict"; - -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; -const agent_1 = __importDefault(__nccwpck_require__(15098)); -function createHttpsProxyAgent(opts) { - return new agent_1.default(opts); -} -(function (createHttpsProxyAgent) { - createHttpsProxyAgent.HttpsProxyAgent = agent_1.default; - createHttpsProxyAgent.prototype = agent_1.default.prototype; -})(createHttpsProxyAgent || (createHttpsProxyAgent = {})); -module.exports = createHttpsProxyAgent; -//# sourceMappingURL=index.js.map - -/***/ }), - -/***/ 595: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; -Object.defineProperty(exports, "__esModule", ({ value: true })); -const debug_1 = __importDefault(__nccwpck_require__(38237)); -const debug = debug_1.default('https-proxy-agent:parse-proxy-response'); -function parseProxyResponse(socket) { - return new Promise((resolve, reject) => { - // we need to buffer any HTTP traffic that happens with the proxy before we get - // the CONNECT response, so that if the response is anything other than an "200" - // response code, then we can re-play the "data" events on the socket once the - // HTTP parser is hooked up... - let buffersLength = 0; - const buffers = []; - function read() { - const b = socket.read(); - if (b) - ondata(b); - else - socket.once('readable', read); - } - function cleanup() { - socket.removeListener('end', onend); - socket.removeListener('error', onerror); - socket.removeListener('close', onclose); - socket.removeListener('readable', read); - } - function onclose(err) { - debug('onclose had error %o', err); - } - function onend() { - debug('onend'); - } - function onerror(err) { - cleanup(); - debug('onerror %o', err); - reject(err); - } - function ondata(b) { - buffers.push(b); - buffersLength += b.length; - const buffered = Buffer.concat(buffers, buffersLength); - const endOfHeaders = buffered.indexOf('\r\n\r\n'); - if (endOfHeaders === -1) { - // keep buffering - debug('have not received end of HTTP headers yet...'); - read(); - return; - } - const firstLine = buffered.toString('ascii', 0, buffered.indexOf('\r\n')); - const statusCode = +firstLine.split(' ')[1]; - debug('got proxy server response: %o', firstLine); - resolve({ - statusCode, - buffered - }); - } - socket.on('error', onerror); - socket.on('close', onclose); - socket.on('end', onend); - read(); - }); -} -exports.default = parseProxyResponse; -//# sourceMappingURL=parse-proxy-response.js.map - -/***/ }), - -/***/ 39695: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -var Buffer = __nccwpck_require__(15118).Buffer; - -// Multibyte codec. In this scheme, a character is represented by 1 or more bytes. -// Our codec supports UTF-16 surrogates, extensions for GB18030 and unicode sequences. -// To save memory and loading time, we read table files only when requested. - -exports._dbcs = DBCSCodec; - -var UNASSIGNED = -1, - GB18030_CODE = -2, - SEQ_START = -10, - NODE_START = -1000, - UNASSIGNED_NODE = new Array(0x100), - DEF_CHAR = -1; - -for (var i = 0; i < 0x100; i++) - UNASSIGNED_NODE[i] = UNASSIGNED; - - -// Class DBCSCodec reads and initializes mapping tables. -function DBCSCodec(codecOptions, iconv) { - this.encodingName = codecOptions.encodingName; - if (!codecOptions) - throw new Error("DBCS codec is called without the data.") - if (!codecOptions.table) - throw new Error("Encoding '" + this.encodingName + "' has no data."); - - // Load tables. - var mappingTable = codecOptions.table(); - - - // Decode tables: MBCS -> Unicode. - - // decodeTables is a trie, encoded as an array of arrays of integers. Internal arrays are trie nodes and all have len = 256. - // Trie root is decodeTables[0]. - // Values: >= 0 -> unicode character code. can be > 0xFFFF - // == UNASSIGNED -> unknown/unassigned sequence. - // == GB18030_CODE -> this is the end of a GB18030 4-byte sequence. - // <= NODE_START -> index of the next node in our trie to process next byte. - // <= SEQ_START -> index of the start of a character code sequence, in decodeTableSeq. - this.decodeTables = []; - this.decodeTables[0] = UNASSIGNED_NODE.slice(0); // Create root node. - - // Sometimes a MBCS char corresponds to a sequence of unicode chars. We store them as arrays of integers here. - this.decodeTableSeq = []; - - // Actual mapping tables consist of chunks. Use them to fill up decode tables. - for (var i = 0; i < mappingTable.length; i++) - this._addDecodeChunk(mappingTable[i]); - - this.defaultCharUnicode = iconv.defaultCharUnicode; - - - // Encode tables: Unicode -> DBCS. - - // `encodeTable` is array mapping from unicode char to encoded char. All its values are integers for performance. - // Because it can be sparse, it is represented as array of buckets by 256 chars each. Bucket can be null. - // Values: >= 0 -> it is a normal char. Write the value (if <=256 then 1 byte, if <=65536 then 2 bytes, etc.). - // == UNASSIGNED -> no conversion found. Output a default char. - // <= SEQ_START -> it's an index in encodeTableSeq, see below. The character starts a sequence. - this.encodeTable = []; - - // `encodeTableSeq` is used when a sequence of unicode characters is encoded as a single code. We use a tree of - // objects where keys correspond to characters in sequence and leafs are the encoded dbcs values. A special DEF_CHAR key - // means end of sequence (needed when one sequence is a strict subsequence of another). - // Objects are kept separately from encodeTable to increase performance. - this.encodeTableSeq = []; - - // Some chars can be decoded, but need not be encoded. - var skipEncodeChars = {}; - if (codecOptions.encodeSkipVals) - for (var i = 0; i < codecOptions.encodeSkipVals.length; i++) { - var val = codecOptions.encodeSkipVals[i]; - if (typeof val === 'number') - skipEncodeChars[val] = true; - else - for (var j = val.from; j <= val.to; j++) - skipEncodeChars[j] = true; - } - - // Use decode trie to recursively fill out encode tables. - this._fillEncodeTable(0, 0, skipEncodeChars); - - // Add more encoding pairs when needed. - if (codecOptions.encodeAdd) { - for (var uChar in codecOptions.encodeAdd) - if (Object.prototype.hasOwnProperty.call(codecOptions.encodeAdd, uChar)) - this._setEncodeChar(uChar.charCodeAt(0), codecOptions.encodeAdd[uChar]); - } - - this.defCharSB = this.encodeTable[0][iconv.defaultCharSingleByte.charCodeAt(0)]; - if (this.defCharSB === UNASSIGNED) this.defCharSB = this.encodeTable[0]['?']; - if (this.defCharSB === UNASSIGNED) this.defCharSB = "?".charCodeAt(0); - - - // Load & create GB18030 tables when needed. - if (typeof codecOptions.gb18030 === 'function') { - this.gb18030 = codecOptions.gb18030(); // Load GB18030 ranges. - - // Add GB18030 decode tables. - var thirdByteNodeIdx = this.decodeTables.length; - var thirdByteNode = this.decodeTables[thirdByteNodeIdx] = UNASSIGNED_NODE.slice(0); - - var fourthByteNodeIdx = this.decodeTables.length; - var fourthByteNode = this.decodeTables[fourthByteNodeIdx] = UNASSIGNED_NODE.slice(0); - - for (var i = 0x81; i <= 0xFE; i++) { - var secondByteNodeIdx = NODE_START - this.decodeTables[0][i]; - var secondByteNode = this.decodeTables[secondByteNodeIdx]; - for (var j = 0x30; j <= 0x39; j++) - secondByteNode[j] = NODE_START - thirdByteNodeIdx; - } - for (var i = 0x81; i <= 0xFE; i++) - thirdByteNode[i] = NODE_START - fourthByteNodeIdx; - for (var i = 0x30; i <= 0x39; i++) - fourthByteNode[i] = GB18030_CODE - } -} - -DBCSCodec.prototype.encoder = DBCSEncoder; -DBCSCodec.prototype.decoder = DBCSDecoder; - -// Decoder helpers -DBCSCodec.prototype._getDecodeTrieNode = function(addr) { - var bytes = []; - for (; addr > 0; addr >>= 8) - bytes.push(addr & 0xFF); - if (bytes.length == 0) - bytes.push(0); - - var node = this.decodeTables[0]; - for (var i = bytes.length-1; i > 0; i--) { // Traverse nodes deeper into the trie. - var val = node[bytes[i]]; - - if (val == UNASSIGNED) { // Create new node. - node[bytes[i]] = NODE_START - this.decodeTables.length; - this.decodeTables.push(node = UNASSIGNED_NODE.slice(0)); - } - else if (val <= NODE_START) { // Existing node. - node = this.decodeTables[NODE_START - val]; - } - else - throw new Error("Overwrite byte in " + this.encodingName + ", addr: " + addr.toString(16)); - } - return node; -} - - -DBCSCodec.prototype._addDecodeChunk = function(chunk) { - // First element of chunk is the hex mbcs code where we start. - var curAddr = parseInt(chunk[0], 16); - - // Choose the decoding node where we'll write our chars. - var writeTable = this._getDecodeTrieNode(curAddr); - curAddr = curAddr & 0xFF; - - // Write all other elements of the chunk to the table. - for (var k = 1; k < chunk.length; k++) { - var part = chunk[k]; - if (typeof part === "string") { // String, write as-is. - for (var l = 0; l < part.length;) { - var code = part.charCodeAt(l++); - if (0xD800 <= code && code < 0xDC00) { // Decode surrogate - var codeTrail = part.charCodeAt(l++); - if (0xDC00 <= codeTrail && codeTrail < 0xE000) - writeTable[curAddr++] = 0x10000 + (code - 0xD800) * 0x400 + (codeTrail - 0xDC00); - else - throw new Error("Incorrect surrogate pair in " + this.encodingName + " at chunk " + chunk[0]); - } - else if (0x0FF0 < code && code <= 0x0FFF) { // Character sequence (our own encoding used) - var len = 0xFFF - code + 2; - var seq = []; - for (var m = 0; m < len; m++) - seq.push(part.charCodeAt(l++)); // Simple variation: don't support surrogates or subsequences in seq. - - writeTable[curAddr++] = SEQ_START - this.decodeTableSeq.length; - this.decodeTableSeq.push(seq); - } - else - writeTable[curAddr++] = code; // Basic char - } - } - else if (typeof part === "number") { // Integer, meaning increasing sequence starting with prev character. - var charCode = writeTable[curAddr - 1] + 1; - for (var l = 0; l < part; l++) - writeTable[curAddr++] = charCode++; - } - else - throw new Error("Incorrect type '" + typeof part + "' given in " + this.encodingName + " at chunk " + chunk[0]); - } - if (curAddr > 0xFF) - throw new Error("Incorrect chunk in " + this.encodingName + " at addr " + chunk[0] + ": too long" + curAddr); -} - -// Encoder helpers -DBCSCodec.prototype._getEncodeBucket = function(uCode) { - var high = uCode >> 8; // This could be > 0xFF because of astral characters. - if (this.encodeTable[high] === undefined) - this.encodeTable[high] = UNASSIGNED_NODE.slice(0); // Create bucket on demand. - return this.encodeTable[high]; -} - -DBCSCodec.prototype._setEncodeChar = function(uCode, dbcsCode) { - var bucket = this._getEncodeBucket(uCode); - var low = uCode & 0xFF; - if (bucket[low] <= SEQ_START) - this.encodeTableSeq[SEQ_START-bucket[low]][DEF_CHAR] = dbcsCode; // There's already a sequence, set a single-char subsequence of it. - else if (bucket[low] == UNASSIGNED) - bucket[low] = dbcsCode; -} - -DBCSCodec.prototype._setEncodeSequence = function(seq, dbcsCode) { - - // Get the root of character tree according to first character of the sequence. - var uCode = seq[0]; - var bucket = this._getEncodeBucket(uCode); - var low = uCode & 0xFF; - - var node; - if (bucket[low] <= SEQ_START) { - // There's already a sequence with - use it. - node = this.encodeTableSeq[SEQ_START-bucket[low]]; - } - else { - // There was no sequence object - allocate a new one. - node = {}; - if (bucket[low] !== UNASSIGNED) node[DEF_CHAR] = bucket[low]; // If a char was set before - make it a single-char subsequence. - bucket[low] = SEQ_START - this.encodeTableSeq.length; - this.encodeTableSeq.push(node); - } - - // Traverse the character tree, allocating new nodes as needed. - for (var j = 1; j < seq.length-1; j++) { - var oldVal = node[uCode]; - if (typeof oldVal === 'object') - node = oldVal; - else { - node = node[uCode] = {} - if (oldVal !== undefined) - node[DEF_CHAR] = oldVal - } - } - - // Set the leaf to given dbcsCode. - uCode = seq[seq.length-1]; - node[uCode] = dbcsCode; -} - -DBCSCodec.prototype._fillEncodeTable = function(nodeIdx, prefix, skipEncodeChars) { - var node = this.decodeTables[nodeIdx]; - for (var i = 0; i < 0x100; i++) { - var uCode = node[i]; - var mbCode = prefix + i; - if (skipEncodeChars[mbCode]) - continue; - - if (uCode >= 0) - this._setEncodeChar(uCode, mbCode); - else if (uCode <= NODE_START) - this._fillEncodeTable(NODE_START - uCode, mbCode << 8, skipEncodeChars); - else if (uCode <= SEQ_START) - this._setEncodeSequence(this.decodeTableSeq[SEQ_START - uCode], mbCode); - } -} - - - -// == Encoder ================================================================== - -function DBCSEncoder(options, codec) { - // Encoder state - this.leadSurrogate = -1; - this.seqObj = undefined; - - // Static data - this.encodeTable = codec.encodeTable; - this.encodeTableSeq = codec.encodeTableSeq; - this.defaultCharSingleByte = codec.defCharSB; - this.gb18030 = codec.gb18030; -} - -DBCSEncoder.prototype.write = function(str) { - var newBuf = Buffer.alloc(str.length * (this.gb18030 ? 4 : 3)), - leadSurrogate = this.leadSurrogate, - seqObj = this.seqObj, nextChar = -1, - i = 0, j = 0; - - while (true) { - // 0. Get next character. - if (nextChar === -1) { - if (i == str.length) break; - var uCode = str.charCodeAt(i++); - } - else { - var uCode = nextChar; - nextChar = -1; - } - - // 1. Handle surrogates. - if (0xD800 <= uCode && uCode < 0xE000) { // Char is one of surrogates. - if (uCode < 0xDC00) { // We've got lead surrogate. - if (leadSurrogate === -1) { - leadSurrogate = uCode; - continue; - } else { - leadSurrogate = uCode; - // Double lead surrogate found. - uCode = UNASSIGNED; - } - } else { // We've got trail surrogate. - if (leadSurrogate !== -1) { - uCode = 0x10000 + (leadSurrogate - 0xD800) * 0x400 + (uCode - 0xDC00); - leadSurrogate = -1; - } else { - // Incomplete surrogate pair - only trail surrogate found. - uCode = UNASSIGNED; - } - - } - } - else if (leadSurrogate !== -1) { - // Incomplete surrogate pair - only lead surrogate found. - nextChar = uCode; uCode = UNASSIGNED; // Write an error, then current char. - leadSurrogate = -1; - } - - // 2. Convert uCode character. - var dbcsCode = UNASSIGNED; - if (seqObj !== undefined && uCode != UNASSIGNED) { // We are in the middle of the sequence - var resCode = seqObj[uCode]; - if (typeof resCode === 'object') { // Sequence continues. - seqObj = resCode; - continue; - - } else if (typeof resCode == 'number') { // Sequence finished. Write it. - dbcsCode = resCode; - - } else if (resCode == undefined) { // Current character is not part of the sequence. - - // Try default character for this sequence - resCode = seqObj[DEF_CHAR]; - if (resCode !== undefined) { - dbcsCode = resCode; // Found. Write it. - nextChar = uCode; // Current character will be written too in the next iteration. - - } else { - // TODO: What if we have no default? (resCode == undefined) - // Then, we should write first char of the sequence as-is and try the rest recursively. - // Didn't do it for now because no encoding has this situation yet. - // Currently, just skip the sequence and write current char. - } - } - seqObj = undefined; - } - else if (uCode >= 0) { // Regular character - var subtable = this.encodeTable[uCode >> 8]; - if (subtable !== undefined) - dbcsCode = subtable[uCode & 0xFF]; - - if (dbcsCode <= SEQ_START) { // Sequence start - seqObj = this.encodeTableSeq[SEQ_START-dbcsCode]; - continue; - } - - if (dbcsCode == UNASSIGNED && this.gb18030) { - // Use GB18030 algorithm to find character(s) to write. - var idx = findIdx(this.gb18030.uChars, uCode); - if (idx != -1) { - var dbcsCode = this.gb18030.gbChars[idx] + (uCode - this.gb18030.uChars[idx]); - newBuf[j++] = 0x81 + Math.floor(dbcsCode / 12600); dbcsCode = dbcsCode % 12600; - newBuf[j++] = 0x30 + Math.floor(dbcsCode / 1260); dbcsCode = dbcsCode % 1260; - newBuf[j++] = 0x81 + Math.floor(dbcsCode / 10); dbcsCode = dbcsCode % 10; - newBuf[j++] = 0x30 + dbcsCode; - continue; - } - } - } - - // 3. Write dbcsCode character. - if (dbcsCode === UNASSIGNED) - dbcsCode = this.defaultCharSingleByte; - - if (dbcsCode < 0x100) { - newBuf[j++] = dbcsCode; - } - else if (dbcsCode < 0x10000) { - newBuf[j++] = dbcsCode >> 8; // high byte - newBuf[j++] = dbcsCode & 0xFF; // low byte - } - else { - newBuf[j++] = dbcsCode >> 16; - newBuf[j++] = (dbcsCode >> 8) & 0xFF; - newBuf[j++] = dbcsCode & 0xFF; - } - } - - this.seqObj = seqObj; - this.leadSurrogate = leadSurrogate; - return newBuf.slice(0, j); -} - -DBCSEncoder.prototype.end = function() { - if (this.leadSurrogate === -1 && this.seqObj === undefined) - return; // All clean. Most often case. - - var newBuf = Buffer.alloc(10), j = 0; - - if (this.seqObj) { // We're in the sequence. - var dbcsCode = this.seqObj[DEF_CHAR]; - if (dbcsCode !== undefined) { // Write beginning of the sequence. - if (dbcsCode < 0x100) { - newBuf[j++] = dbcsCode; - } - else { - newBuf[j++] = dbcsCode >> 8; // high byte - newBuf[j++] = dbcsCode & 0xFF; // low byte - } - } else { - // See todo above. - } - this.seqObj = undefined; - } - - if (this.leadSurrogate !== -1) { - // Incomplete surrogate pair - only lead surrogate found. - newBuf[j++] = this.defaultCharSingleByte; - this.leadSurrogate = -1; - } - - return newBuf.slice(0, j); -} - -// Export for testing -DBCSEncoder.prototype.findIdx = findIdx; - - -// == Decoder ================================================================== - -function DBCSDecoder(options, codec) { - // Decoder state - this.nodeIdx = 0; - this.prevBuf = Buffer.alloc(0); - - // Static data - this.decodeTables = codec.decodeTables; - this.decodeTableSeq = codec.decodeTableSeq; - this.defaultCharUnicode = codec.defaultCharUnicode; - this.gb18030 = codec.gb18030; -} - -DBCSDecoder.prototype.write = function(buf) { - var newBuf = Buffer.alloc(buf.length*2), - nodeIdx = this.nodeIdx, - prevBuf = this.prevBuf, prevBufOffset = this.prevBuf.length, - seqStart = -this.prevBuf.length, // idx of the start of current parsed sequence. - uCode; - - if (prevBufOffset > 0) // Make prev buf overlap a little to make it easier to slice later. - prevBuf = Buffer.concat([prevBuf, buf.slice(0, 10)]); - - for (var i = 0, j = 0; i < buf.length; i++) { - var curByte = (i >= 0) ? buf[i] : prevBuf[i + prevBufOffset]; - - // Lookup in current trie node. - var uCode = this.decodeTables[nodeIdx][curByte]; - - if (uCode >= 0) { - // Normal character, just use it. - } - else if (uCode === UNASSIGNED) { // Unknown char. - // TODO: Callback with seq. - //var curSeq = (seqStart >= 0) ? buf.slice(seqStart, i+1) : prevBuf.slice(seqStart + prevBufOffset, i+1 + prevBufOffset); - i = seqStart; // Try to parse again, after skipping first byte of the sequence ('i' will be incremented by 'for' cycle). - uCode = this.defaultCharUnicode.charCodeAt(0); - } - else if (uCode === GB18030_CODE) { - var curSeq = (seqStart >= 0) ? buf.slice(seqStart, i+1) : prevBuf.slice(seqStart + prevBufOffset, i+1 + prevBufOffset); - var ptr = (curSeq[0]-0x81)*12600 + (curSeq[1]-0x30)*1260 + (curSeq[2]-0x81)*10 + (curSeq[3]-0x30); - var idx = findIdx(this.gb18030.gbChars, ptr); - uCode = this.gb18030.uChars[idx] + ptr - this.gb18030.gbChars[idx]; - } - else if (uCode <= NODE_START) { // Go to next trie node. - nodeIdx = NODE_START - uCode; - continue; - } - else if (uCode <= SEQ_START) { // Output a sequence of chars. - var seq = this.decodeTableSeq[SEQ_START - uCode]; - for (var k = 0; k < seq.length - 1; k++) { - uCode = seq[k]; - newBuf[j++] = uCode & 0xFF; - newBuf[j++] = uCode >> 8; - } - uCode = seq[seq.length-1]; - } - else - throw new Error("iconv-lite internal error: invalid decoding table value " + uCode + " at " + nodeIdx + "/" + curByte); - - // Write the character to buffer, handling higher planes using surrogate pair. - if (uCode > 0xFFFF) { - uCode -= 0x10000; - var uCodeLead = 0xD800 + Math.floor(uCode / 0x400); - newBuf[j++] = uCodeLead & 0xFF; - newBuf[j++] = uCodeLead >> 8; - - uCode = 0xDC00 + uCode % 0x400; - } - newBuf[j++] = uCode & 0xFF; - newBuf[j++] = uCode >> 8; - - // Reset trie node. - nodeIdx = 0; seqStart = i+1; - } - - this.nodeIdx = nodeIdx; - this.prevBuf = (seqStart >= 0) ? buf.slice(seqStart) : prevBuf.slice(seqStart + prevBufOffset); - return newBuf.slice(0, j).toString('ucs2'); -} - -DBCSDecoder.prototype.end = function() { - var ret = ''; - - // Try to parse all remaining chars. - while (this.prevBuf.length > 0) { - // Skip 1 character in the buffer. - ret += this.defaultCharUnicode; - var buf = this.prevBuf.slice(1); - - // Parse remaining as usual. - this.prevBuf = Buffer.alloc(0); - this.nodeIdx = 0; - if (buf.length > 0) - ret += this.write(buf); - } - - this.nodeIdx = 0; - return ret; -} - -// Binary search for GB18030. Returns largest i such that table[i] <= val. -function findIdx(table, val) { - if (table[0] > val) - return -1; - - var l = 0, r = table.length; - while (l < r-1) { // always table[l] <= val < table[r] - var mid = l + Math.floor((r-l+1)/2); - if (table[mid] <= val) - l = mid; - else - r = mid; - } - return l; -} - - - -/***/ }), - -/***/ 91386: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -"use strict"; - - -// Description of supported double byte encodings and aliases. -// Tables are not require()-d until they are needed to speed up library load. -// require()-s are direct to support Browserify. - -module.exports = { - - // == Japanese/ShiftJIS ==================================================== - // All japanese encodings are based on JIS X set of standards: - // JIS X 0201 - Single-byte encoding of ASCII + ¥ + Kana chars at 0xA1-0xDF. - // JIS X 0208 - Main set of 6879 characters, placed in 94x94 plane, to be encoded by 2 bytes. - // Has several variations in 1978, 1983, 1990 and 1997. - // JIS X 0212 - Supplementary plane of 6067 chars in 94x94 plane. 1990. Effectively dead. - // JIS X 0213 - Extension and modern replacement of 0208 and 0212. Total chars: 11233. - // 2 planes, first is superset of 0208, second - revised 0212. - // Introduced in 2000, revised 2004. Some characters are in Unicode Plane 2 (0x2xxxx) - - // Byte encodings are: - // * Shift_JIS: Compatible with 0201, uses not defined chars in top half as lead bytes for double-byte - // encoding of 0208. Lead byte ranges: 0x81-0x9F, 0xE0-0xEF; Trail byte ranges: 0x40-0x7E, 0x80-0x9E, 0x9F-0xFC. - // Windows CP932 is a superset of Shift_JIS. Some companies added more chars, notably KDDI. - // * EUC-JP: Up to 3 bytes per character. Used mostly on *nixes. - // 0x00-0x7F - lower part of 0201 - // 0x8E, 0xA1-0xDF - upper part of 0201 - // (0xA1-0xFE)x2 - 0208 plane (94x94). - // 0x8F, (0xA1-0xFE)x2 - 0212 plane (94x94). - // * JIS X 208: 7-bit, direct encoding of 0208. Byte ranges: 0x21-0x7E (94 values). Uncommon. - // Used as-is in ISO2022 family. - // * ISO2022-JP: Stateful encoding, with escape sequences to switch between ASCII, - // 0201-1976 Roman, 0208-1978, 0208-1983. - // * ISO2022-JP-1: Adds esc seq for 0212-1990. - // * ISO2022-JP-2: Adds esc seq for GB2313-1980, KSX1001-1992, ISO8859-1, ISO8859-7. - // * ISO2022-JP-3: Adds esc seq for 0201-1976 Kana set, 0213-2000 Planes 1, 2. - // * ISO2022-JP-2004: Adds 0213-2004 Plane 1. - // - // After JIS X 0213 appeared, Shift_JIS-2004, EUC-JISX0213 and ISO2022-JP-2004 followed, with just changing the planes. - // - // Overall, it seems that it's a mess :( http://www8.plala.or.jp/tkubota1/unicode-symbols-map2.html - - 'shiftjis': { - type: '_dbcs', - table: function() { return __nccwpck_require__(64108) }, - encodeAdd: {'\u00a5': 0x5C, '\u203E': 0x7E}, - encodeSkipVals: [{from: 0xED40, to: 0xF940}], - }, - 'csshiftjis': 'shiftjis', - 'mskanji': 'shiftjis', - 'sjis': 'shiftjis', - 'windows31j': 'shiftjis', - 'ms31j': 'shiftjis', - 'xsjis': 'shiftjis', - 'windows932': 'shiftjis', - 'ms932': 'shiftjis', - '932': 'shiftjis', - 'cp932': 'shiftjis', - - 'eucjp': { - type: '_dbcs', - table: function() { return __nccwpck_require__(72417) }, - encodeAdd: {'\u00a5': 0x5C, '\u203E': 0x7E}, - }, - - // TODO: KDDI extension to Shift_JIS - // TODO: IBM CCSID 942 = CP932, but F0-F9 custom chars and other char changes. - // TODO: IBM CCSID 943 = Shift_JIS = CP932 with original Shift_JIS lower 128 chars. - - - // == Chinese/GBK ========================================================== - // http://en.wikipedia.org/wiki/GBK - // We mostly implement W3C recommendation: https://www.w3.org/TR/encoding/#gbk-encoder - - // Oldest GB2312 (1981, ~7600 chars) is a subset of CP936 - 'gb2312': 'cp936', - 'gb231280': 'cp936', - 'gb23121980': 'cp936', - 'csgb2312': 'cp936', - 'csiso58gb231280': 'cp936', - 'euccn': 'cp936', - - // Microsoft's CP936 is a subset and approximation of GBK. - 'windows936': 'cp936', - 'ms936': 'cp936', - '936': 'cp936', - 'cp936': { - type: '_dbcs', - table: function() { return __nccwpck_require__(97803) }, - }, - - // GBK (~22000 chars) is an extension of CP936 that added user-mapped chars and some other. - 'gbk': { - type: '_dbcs', - table: function() { return __nccwpck_require__(97803).concat(__nccwpck_require__(37419)) }, - }, - 'xgbk': 'gbk', - 'isoir58': 'gbk', - - // GB18030 is an algorithmic extension of GBK. - // Main source: https://www.w3.org/TR/encoding/#gbk-encoder - // http://icu-project.org/docs/papers/gb18030.html - // http://source.icu-project.org/repos/icu/data/trunk/charset/data/xml/gb-18030-2000.xml - // http://www.khngai.com/chinese/charmap/tblgbk.php?page=0 - 'gb18030': { - type: '_dbcs', - table: function() { return __nccwpck_require__(97803).concat(__nccwpck_require__(37419)) }, - gb18030: function() { return __nccwpck_require__(86351) }, - encodeSkipVals: [0x80], - encodeAdd: {'€': 0xA2E3}, - }, - - 'chinese': 'gb18030', - - - // == Korean =============================================================== - // EUC-KR, KS_C_5601 and KS X 1001 are exactly the same. - 'windows949': 'cp949', - 'ms949': 'cp949', - '949': 'cp949', - 'cp949': { - type: '_dbcs', - table: function() { return __nccwpck_require__(87013) }, - }, - - 'cseuckr': 'cp949', - 'csksc56011987': 'cp949', - 'euckr': 'cp949', - 'isoir149': 'cp949', - 'korean': 'cp949', - 'ksc56011987': 'cp949', - 'ksc56011989': 'cp949', - 'ksc5601': 'cp949', - - - // == Big5/Taiwan/Hong Kong ================================================ - // There are lots of tables for Big5 and cp950. Please see the following links for history: - // http://moztw.org/docs/big5/ http://www.haible.de/bruno/charsets/conversion-tables/Big5.html - // Variations, in roughly number of defined chars: - // * Windows CP 950: Microsoft variant of Big5. Canonical: http://www.unicode.org/Public/MAPPINGS/VENDORS/MICSFT/WINDOWS/CP950.TXT - // * Windows CP 951: Microsoft variant of Big5-HKSCS-2001. Seems to be never public. http://me.abelcheung.org/articles/research/what-is-cp951/ - // * Big5-2003 (Taiwan standard) almost superset of cp950. - // * Unicode-at-on (UAO) / Mozilla 1.8. Falling out of use on the Web. Not supported by other browsers. - // * Big5-HKSCS (-2001, -2004, -2008). Hong Kong standard. - // many unicode code points moved from PUA to Supplementary plane (U+2XXXX) over the years. - // Plus, it has 4 combining sequences. - // Seems that Mozilla refused to support it for 10 yrs. https://bugzilla.mozilla.org/show_bug.cgi?id=162431 https://bugzilla.mozilla.org/show_bug.cgi?id=310299 - // because big5-hkscs is the only encoding to include astral characters in non-algorithmic way. - // Implementations are not consistent within browsers; sometimes labeled as just big5. - // MS Internet Explorer switches from big5 to big5-hkscs when a patch applied. - // Great discussion & recap of what's going on https://bugzilla.mozilla.org/show_bug.cgi?id=912470#c31 - // In the encoder, it might make sense to support encoding old PUA mappings to Big5 bytes seq-s. - // Official spec: http://www.ogcio.gov.hk/en/business/tech_promotion/ccli/terms/doc/2003cmp_2008.txt - // http://www.ogcio.gov.hk/tc/business/tech_promotion/ccli/terms/doc/hkscs-2008-big5-iso.txt - // - // Current understanding of how to deal with Big5(-HKSCS) is in the Encoding Standard, http://encoding.spec.whatwg.org/#big5-encoder - // Unicode mapping (http://www.unicode.org/Public/MAPPINGS/OBSOLETE/EASTASIA/OTHER/BIG5.TXT) is said to be wrong. - - 'windows950': 'cp950', - 'ms950': 'cp950', - '950': 'cp950', - 'cp950': { - type: '_dbcs', - table: function() { return __nccwpck_require__(33104) }, - }, - - // Big5 has many variations and is an extension of cp950. We use Encoding Standard's as a consensus. - 'big5': 'big5hkscs', - 'big5hkscs': { - type: '_dbcs', - table: function() { return __nccwpck_require__(33104).concat(__nccwpck_require__(43612)) }, - encodeSkipVals: [0xa2cc], - }, - - 'cnbig5': 'big5hkscs', - 'csbig5': 'big5hkscs', - 'xxbig5': 'big5hkscs', -}; - - -/***/ }), - -/***/ 82733: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -// Update this array if you add/rename/remove files in this directory. -// We support Browserify by skipping automatic module discovery and requiring modules directly. -var modules = [ - __nccwpck_require__(12376), - __nccwpck_require__(11155), - __nccwpck_require__(51644), - __nccwpck_require__(26657), - __nccwpck_require__(41080), - __nccwpck_require__(21012), - __nccwpck_require__(39695), - __nccwpck_require__(91386), -]; - -// Put all encoding/alias/codec definitions to single object and export it. -for (var i = 0; i < modules.length; i++) { - var module = modules[i]; - for (var enc in module) - if (Object.prototype.hasOwnProperty.call(module, enc)) - exports[enc] = module[enc]; -} - - -/***/ }), - -/***/ 12376: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -"use strict"; - -var Buffer = __nccwpck_require__(15118).Buffer; - -// Export Node.js internal encodings. - -module.exports = { - // Encodings - utf8: { type: "_internal", bomAware: true}, - cesu8: { type: "_internal", bomAware: true}, - unicode11utf8: "utf8", - - ucs2: { type: "_internal", bomAware: true}, - utf16le: "ucs2", - - binary: { type: "_internal" }, - base64: { type: "_internal" }, - hex: { type: "_internal" }, - - // Codec. - _internal: InternalCodec, -}; - -//------------------------------------------------------------------------------ - -function InternalCodec(codecOptions, iconv) { - this.enc = codecOptions.encodingName; - this.bomAware = codecOptions.bomAware; - - if (this.enc === "base64") - this.encoder = InternalEncoderBase64; - else if (this.enc === "cesu8") { - this.enc = "utf8"; // Use utf8 for decoding. - this.encoder = InternalEncoderCesu8; - - // Add decoder for versions of Node not supporting CESU-8 - if (Buffer.from('eda0bdedb2a9', 'hex').toString() !== '💩') { - this.decoder = InternalDecoderCesu8; - this.defaultCharUnicode = iconv.defaultCharUnicode; - } - } -} - -InternalCodec.prototype.encoder = InternalEncoder; -InternalCodec.prototype.decoder = InternalDecoder; - -//------------------------------------------------------------------------------ - -// We use node.js internal decoder. Its signature is the same as ours. -var StringDecoder = __nccwpck_require__(24304).StringDecoder; - -if (!StringDecoder.prototype.end) // Node v0.8 doesn't have this method. - StringDecoder.prototype.end = function() {}; - - -function InternalDecoder(options, codec) { - StringDecoder.call(this, codec.enc); -} - -InternalDecoder.prototype = StringDecoder.prototype; - - -//------------------------------------------------------------------------------ -// Encoder is mostly trivial - -function InternalEncoder(options, codec) { - this.enc = codec.enc; -} - -InternalEncoder.prototype.write = function(str) { - return Buffer.from(str, this.enc); -} - -InternalEncoder.prototype.end = function() { -} - - -//------------------------------------------------------------------------------ -// Except base64 encoder, which must keep its state. - -function InternalEncoderBase64(options, codec) { - this.prevStr = ''; -} - -InternalEncoderBase64.prototype.write = function(str) { - str = this.prevStr + str; - var completeQuads = str.length - (str.length % 4); - this.prevStr = str.slice(completeQuads); - str = str.slice(0, completeQuads); - - return Buffer.from(str, "base64"); -} - -InternalEncoderBase64.prototype.end = function() { - return Buffer.from(this.prevStr, "base64"); -} - - -//------------------------------------------------------------------------------ -// CESU-8 encoder is also special. - -function InternalEncoderCesu8(options, codec) { -} - -InternalEncoderCesu8.prototype.write = function(str) { - var buf = Buffer.alloc(str.length * 3), bufIdx = 0; - for (var i = 0; i < str.length; i++) { - var charCode = str.charCodeAt(i); - // Naive implementation, but it works because CESU-8 is especially easy - // to convert from UTF-16 (which all JS strings are encoded in). - if (charCode < 0x80) - buf[bufIdx++] = charCode; - else if (charCode < 0x800) { - buf[bufIdx++] = 0xC0 + (charCode >>> 6); - buf[bufIdx++] = 0x80 + (charCode & 0x3f); - } - else { // charCode will always be < 0x10000 in javascript. - buf[bufIdx++] = 0xE0 + (charCode >>> 12); - buf[bufIdx++] = 0x80 + ((charCode >>> 6) & 0x3f); - buf[bufIdx++] = 0x80 + (charCode & 0x3f); - } - } - return buf.slice(0, bufIdx); -} - -InternalEncoderCesu8.prototype.end = function() { -} - -//------------------------------------------------------------------------------ -// CESU-8 decoder is not implemented in Node v4.0+ - -function InternalDecoderCesu8(options, codec) { - this.acc = 0; - this.contBytes = 0; - this.accBytes = 0; - this.defaultCharUnicode = codec.defaultCharUnicode; -} - -InternalDecoderCesu8.prototype.write = function(buf) { - var acc = this.acc, contBytes = this.contBytes, accBytes = this.accBytes, - res = ''; - for (var i = 0; i < buf.length; i++) { - var curByte = buf[i]; - if ((curByte & 0xC0) !== 0x80) { // Leading byte - if (contBytes > 0) { // Previous code is invalid - res += this.defaultCharUnicode; - contBytes = 0; - } - - if (curByte < 0x80) { // Single-byte code - res += String.fromCharCode(curByte); - } else if (curByte < 0xE0) { // Two-byte code - acc = curByte & 0x1F; - contBytes = 1; accBytes = 1; - } else if (curByte < 0xF0) { // Three-byte code - acc = curByte & 0x0F; - contBytes = 2; accBytes = 1; - } else { // Four or more are not supported for CESU-8. - res += this.defaultCharUnicode; - } - } else { // Continuation byte - if (contBytes > 0) { // We're waiting for it. - acc = (acc << 6) | (curByte & 0x3f); - contBytes--; accBytes++; - if (contBytes === 0) { - // Check for overlong encoding, but support Modified UTF-8 (encoding NULL as C0 80) - if (accBytes === 2 && acc < 0x80 && acc > 0) - res += this.defaultCharUnicode; - else if (accBytes === 3 && acc < 0x800) - res += this.defaultCharUnicode; - else - // Actually add character. - res += String.fromCharCode(acc); - } - } else { // Unexpected continuation byte - res += this.defaultCharUnicode; - } - } - } - this.acc = acc; this.contBytes = contBytes; this.accBytes = accBytes; - return res; -} - -InternalDecoderCesu8.prototype.end = function() { - var res = 0; - if (this.contBytes > 0) - res += this.defaultCharUnicode; - return res; -} - - -/***/ }), - -/***/ 26657: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -var Buffer = __nccwpck_require__(15118).Buffer; - -// Single-byte codec. Needs a 'chars' string parameter that contains 256 or 128 chars that -// correspond to encoded bytes (if 128 - then lower half is ASCII). - -exports._sbcs = SBCSCodec; -function SBCSCodec(codecOptions, iconv) { - if (!codecOptions) - throw new Error("SBCS codec is called without the data.") - - // Prepare char buffer for decoding. - if (!codecOptions.chars || (codecOptions.chars.length !== 128 && codecOptions.chars.length !== 256)) - throw new Error("Encoding '"+codecOptions.type+"' has incorrect 'chars' (must be of len 128 or 256)"); - - if (codecOptions.chars.length === 128) { - var asciiString = ""; - for (var i = 0; i < 128; i++) - asciiString += String.fromCharCode(i); - codecOptions.chars = asciiString + codecOptions.chars; - } - - this.decodeBuf = Buffer.from(codecOptions.chars, 'ucs2'); - - // Encoding buffer. - var encodeBuf = Buffer.alloc(65536, iconv.defaultCharSingleByte.charCodeAt(0)); - - for (var i = 0; i < codecOptions.chars.length; i++) - encodeBuf[codecOptions.chars.charCodeAt(i)] = i; - - this.encodeBuf = encodeBuf; -} - -SBCSCodec.prototype.encoder = SBCSEncoder; -SBCSCodec.prototype.decoder = SBCSDecoder; - - -function SBCSEncoder(options, codec) { - this.encodeBuf = codec.encodeBuf; -} - -SBCSEncoder.prototype.write = function(str) { - var buf = Buffer.alloc(str.length); - for (var i = 0; i < str.length; i++) - buf[i] = this.encodeBuf[str.charCodeAt(i)]; - - return buf; -} - -SBCSEncoder.prototype.end = function() { -} - - -function SBCSDecoder(options, codec) { - this.decodeBuf = codec.decodeBuf; -} - -SBCSDecoder.prototype.write = function(buf) { - // Strings are immutable in JS -> we use ucs2 buffer to speed up computations. - var decodeBuf = this.decodeBuf; - var newBuf = Buffer.alloc(buf.length*2); - var idx1 = 0, idx2 = 0; - for (var i = 0; i < buf.length; i++) { - idx1 = buf[i]*2; idx2 = i*2; - newBuf[idx2] = decodeBuf[idx1]; - newBuf[idx2+1] = decodeBuf[idx1+1]; - } - return newBuf.toString('ucs2'); -} - -SBCSDecoder.prototype.end = function() { -} - - -/***/ }), - -/***/ 21012: -/***/ ((module) => { - -"use strict"; - - -// Generated data for sbcs codec. Don't edit manually. Regenerate using generation/gen-sbcs.js script. -module.exports = { - "437": "cp437", - "737": "cp737", - "775": "cp775", - "850": "cp850", - "852": "cp852", - "855": "cp855", - "856": "cp856", - "857": "cp857", - "858": "cp858", - "860": "cp860", - "861": "cp861", - "862": "cp862", - "863": "cp863", - "864": "cp864", - "865": "cp865", - "866": "cp866", - "869": "cp869", - "874": "windows874", - "922": "cp922", - "1046": "cp1046", - "1124": "cp1124", - "1125": "cp1125", - "1129": "cp1129", - "1133": "cp1133", - "1161": "cp1161", - "1162": "cp1162", - "1163": "cp1163", - "1250": "windows1250", - "1251": "windows1251", - "1252": "windows1252", - "1253": "windows1253", - "1254": "windows1254", - "1255": "windows1255", - "1256": "windows1256", - "1257": "windows1257", - "1258": "windows1258", - "28591": "iso88591", - "28592": "iso88592", - "28593": "iso88593", - "28594": "iso88594", - "28595": "iso88595", - "28596": "iso88596", - "28597": "iso88597", - "28598": "iso88598", - "28599": "iso88599", - "28600": "iso885910", - "28601": "iso885911", - "28603": "iso885913", - "28604": "iso885914", - "28605": "iso885915", - "28606": "iso885916", - "windows874": { - "type": "_sbcs", - "chars": "€����…�����������‘’“”•–—�������� กขฃคฅฆงจฉชซฌญฎฏฐฑฒณดตถทธนบปผฝพฟภมยรฤลฦวศษสหฬอฮฯะัาำิีึืฺุู����฿เแโใไๅๆ็่้๊๋์ํ๎๏๐๑๒๓๔๕๖๗๘๙๚๛����" - }, - "win874": "windows874", - "cp874": "windows874", - "windows1250": { - "type": "_sbcs", - "chars": "€�‚�„…†‡�‰Š‹ŚŤŽŹ�‘’“”•–—�™š›śťžź ˇ˘Ł¤Ą¦§¨©Ş«¬­®Ż°±˛ł´µ¶·¸ąş»Ľ˝ľżŔÁÂĂÄĹĆÇČÉĘËĚÍÎĎĐŃŇÓÔŐÖ×ŘŮÚŰÜÝŢßŕáâăäĺćçčéęëěíîďđńňóôőö÷řůúűüýţ˙" - }, - "win1250": "windows1250", - "cp1250": "windows1250", - "windows1251": { - "type": "_sbcs", - "chars": "ЂЃ‚ѓ„…†‡€‰Љ‹ЊЌЋЏђ‘’“”•–—�™љ›њќћџ ЎўЈ¤Ґ¦§Ё©Є«¬­®Ї°±Ііґµ¶·ё№є»јЅѕїАБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯабвгдежзийклмнопрстуфхцчшщъыьэюя" - }, - "win1251": "windows1251", - "cp1251": "windows1251", - "windows1252": { - "type": "_sbcs", - "chars": "€�‚ƒ„…†‡ˆ‰Š‹Œ�Ž��‘’“”•–—˜™š›œ�žŸ ¡¢£¤¥¦§¨©ª«¬­®¯°±²³´µ¶·¸¹º»¼½¾¿ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖרÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõö÷øùúûüýþÿ" - }, - "win1252": "windows1252", - "cp1252": "windows1252", - "windows1253": { - "type": "_sbcs", - "chars": "€�‚ƒ„…†‡�‰�‹�����‘’“”•–—�™�›���� ΅Ά£¤¥¦§¨©�«¬­®―°±²³΄µ¶·ΈΉΊ»Ό½ΎΏΐΑΒΓΔΕΖΗΘΙΚΛΜΝΞΟΠΡ�ΣΤΥΦΧΨΩΪΫάέήίΰαβγδεζηθικλμνξοπρςστυφχψωϊϋόύώ�" - }, - "win1253": "windows1253", - "cp1253": "windows1253", - "windows1254": { - "type": "_sbcs", - "chars": "€�‚ƒ„…†‡ˆ‰Š‹Œ����‘’“”•–—˜™š›œ��Ÿ ¡¢£¤¥¦§¨©ª«¬­®¯°±²³´µ¶·¸¹º»¼½¾¿ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏĞÑÒÓÔÕÖרÙÚÛÜİŞßàáâãäåæçèéêëìíîïğñòóôõö÷øùúûüışÿ" - }, - "win1254": "windows1254", - "cp1254": "windows1254", - "windows1255": { - "type": "_sbcs", - "chars": "€�‚ƒ„…†‡ˆ‰�‹�����‘’“”•–—˜™�›���� ¡¢£₪¥¦§¨©×«¬­®¯°±²³´µ¶·¸¹÷»¼½¾¿ְֱֲֳִֵֶַָֹֺֻּֽ־ֿ׀ׁׂ׃װױײ׳״�������אבגדהוזחטיךכלםמןנסעףפץצקרשת��‎‏�" - }, - "win1255": "windows1255", - "cp1255": "windows1255", - "windows1256": { - "type": "_sbcs", - "chars": "€پ‚ƒ„…†‡ˆ‰ٹ‹Œچژڈگ‘’“”•–—ک™ڑ›œ‌‍ں ،¢£¤¥¦§¨©ھ«¬­®¯°±²³´µ¶·¸¹؛»¼½¾؟ہءآأؤإئابةتثجحخدذرزسشصض×طظعغـفقكàلâمنهوçèéêëىيîïًٌٍَôُِ÷ّùْûü‎‏ے" - }, - "win1256": "windows1256", - "cp1256": "windows1256", - "windows1257": { - "type": "_sbcs", - "chars": "€�‚�„…†‡�‰�‹�¨ˇ¸�‘’“”•–—�™�›�¯˛� �¢£¤�¦§Ø©Ŗ«¬­®Æ°±²³´µ¶·ø¹ŗ»¼½¾æĄĮĀĆÄÅĘĒČÉŹĖĢĶĪĻŠŃŅÓŌÕÖ×ŲŁŚŪÜŻŽßąįāćäåęēčéźėģķīļšńņóōõö÷ųłśūüżž˙" - }, - "win1257": "windows1257", - "cp1257": "windows1257", - "windows1258": { - "type": "_sbcs", - "chars": "€�‚ƒ„…†‡ˆ‰�‹Œ����‘’“”•–—˜™�›œ��Ÿ ¡¢£¤¥¦§¨©ª«¬­®¯°±²³´µ¶·¸¹º»¼½¾¿ÀÁÂĂÄÅÆÇÈÉÊË̀ÍÎÏĐÑ̉ÓÔƠÖרÙÚÛÜỮßàáâăäåæçèéêë́íîïđṇ̃óôơö÷øùúûüư₫ÿ" - }, - "win1258": "windows1258", - "cp1258": "windows1258", - "iso88591": { - "type": "_sbcs", - "chars": "€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ ¡¢£¤¥¦§¨©ª«¬­®¯°±²³´µ¶·¸¹º»¼½¾¿ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖרÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõö÷øùúûüýþÿ" - }, - "cp28591": "iso88591", - "iso88592": { - "type": "_sbcs", - "chars": "€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ Ą˘Ł¤ĽŚ§¨ŠŞŤŹ­ŽŻ°ą˛ł´ľśˇ¸šşťź˝žżŔÁÂĂÄĹĆÇČÉĘËĚÍÎĎĐŃŇÓÔŐÖ×ŘŮÚŰÜÝŢßŕáâăäĺćçčéęëěíîďđńňóôőö÷řůúűüýţ˙" - }, - "cp28592": "iso88592", - "iso88593": { - "type": "_sbcs", - "chars": "€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ Ħ˘£¤�Ĥ§¨İŞĞĴ­�ݰħ²³´µĥ·¸ışğĵ½�żÀÁÂ�ÄĊĈÇÈÉÊËÌÍÎÏ�ÑÒÓÔĠÖ×ĜÙÚÛÜŬŜßàáâ�äċĉçèéêëìíîï�ñòóôġö÷ĝùúûüŭŝ˙" - }, - "cp28593": "iso88593", - "iso88594": { - "type": "_sbcs", - "chars": "€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ ĄĸŖ¤Ĩϧ¨ŠĒĢŦ­Ž¯°ą˛ŗ´ĩšēģŧŊžŋĀÁÂÃÄÅÆĮČÉĘËĖÍÎĪĐŅŌĶÔÕÖרŲÚÛÜŨŪßāáâãäåæįčéęëėíîīđņōķôõö÷øųúûüũū˙" - }, - "cp28594": "iso88594", - "iso88595": { - "type": "_sbcs", - "chars": "€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ ЁЂЃЄЅІЇЈЉЊЋЌ­ЎЏАБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯабвгдежзийклмнопрстуфхцчшщъыьэюя№ёђѓєѕіїјљњћќ§ўџ" - }, - "cp28595": "iso88595", - "iso88596": { - "type": "_sbcs", - "chars": "€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ ���¤�������،­�������������؛���؟�ءآأؤإئابةتثجحخدذرزسشصضطظعغ�����ـفقكلمنهوىيًٌٍَُِّْ�������������" - }, - "cp28596": "iso88596", - "iso88597": { - "type": "_sbcs", - "chars": "€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ ‘’£€₯¦§¨©ͺ«¬­�―°±²³΄΅Ά·ΈΉΊ»Ό½ΎΏΐΑΒΓΔΕΖΗΘΙΚΛΜΝΞΟΠΡ�ΣΤΥΦΧΨΩΪΫάέήίΰαβγδεζηθικλμνξοπρςστυφχψωϊϋόύώ�" - }, - "cp28597": "iso88597", - "iso88598": { - "type": "_sbcs", - "chars": "€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ �¢£¤¥¦§¨©×«¬­®¯°±²³´µ¶·¸¹÷»¼½¾��������������������������������‗אבגדהוזחטיךכלםמןנסעףפץצקרשת��‎‏�" - }, - "cp28598": "iso88598", - "iso88599": { - "type": "_sbcs", - "chars": "€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ ¡¢£¤¥¦§¨©ª«¬­®¯°±²³´µ¶·¸¹º»¼½¾¿ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏĞÑÒÓÔÕÖרÙÚÛÜİŞßàáâãäåæçèéêëìíîïğñòóôõö÷øùúûüışÿ" - }, - "cp28599": "iso88599", - "iso885910": { - "type": "_sbcs", - "chars": "€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ ĄĒĢĪĨͧĻĐŠŦŽ­ŪŊ°ąēģīĩķ·ļđšŧž―ūŋĀÁÂÃÄÅÆĮČÉĘËĖÍÎÏÐŅŌÓÔÕÖŨØŲÚÛÜÝÞßāáâãäåæįčéęëėíîïðņōóôõöũøųúûüýþĸ" - }, - "cp28600": "iso885910", - "iso885911": { - "type": "_sbcs", - "chars": "€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ กขฃคฅฆงจฉชซฌญฎฏฐฑฒณดตถทธนบปผฝพฟภมยรฤลฦวศษสหฬอฮฯะัาำิีึืฺุู����฿เแโใไๅๆ็่้๊๋์ํ๎๏๐๑๒๓๔๕๖๗๘๙๚๛����" - }, - "cp28601": "iso885911", - "iso885913": { - "type": "_sbcs", - "chars": "€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ ”¢£¤„¦§Ø©Ŗ«¬­®Æ°±²³“µ¶·ø¹ŗ»¼½¾æĄĮĀĆÄÅĘĒČÉŹĖĢĶĪĻŠŃŅÓŌÕÖ×ŲŁŚŪÜŻŽßąįāćäåęēčéźėģķīļšńņóōõö÷ųłśūüżž’" - }, - "cp28603": "iso885913", - "iso885914": { - "type": "_sbcs", - "chars": "€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ Ḃḃ£ĊċḊ§Ẁ©ẂḋỲ­®ŸḞḟĠġṀṁ¶ṖẁṗẃṠỳẄẅṡÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏŴÑÒÓÔÕÖṪØÙÚÛÜÝŶßàáâãäåæçèéêëìíîïŵñòóôõöṫøùúûüýŷÿ" - }, - "cp28604": "iso885914", - "iso885915": { - "type": "_sbcs", - "chars": "€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ ¡¢£€¥Š§š©ª«¬­®¯°±²³Žµ¶·ž¹º»ŒœŸ¿ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖרÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõö÷øùúûüýþÿ" - }, - "cp28605": "iso885915", - "iso885916": { - "type": "_sbcs", - "chars": "€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ ĄąŁ€„Чš©Ș«Ź­źŻ°±ČłŽ”¶·žčș»ŒœŸżÀÁÂĂÄĆÆÇÈÉÊËÌÍÎÏĐŃÒÓÔŐÖŚŰÙÚÛÜĘȚßàáâăäćæçèéêëìíîïđńòóôőöśűùúûüęțÿ" - }, - "cp28606": "iso885916", - "cp437": { - "type": "_sbcs", - "chars": "ÇüéâäàåçêëèïîìÄÅÉæÆôöòûùÿÖÜ¢£¥₧ƒáíóúñѪº¿⌐¬½¼¡«»░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀αßΓπΣσµτΦΘΩδ∞φε∩≡±≥≤⌠⌡÷≈°∙·√ⁿ²■ " - }, - "ibm437": "cp437", - "csibm437": "cp437", - "cp737": { - "type": "_sbcs", - "chars": "ΑΒΓΔΕΖΗΘΙΚΛΜΝΞΟΠΡΣΤΥΦΧΨΩαβγδεζηθικλμνξοπρσςτυφχψ░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀ωάέήϊίόύϋώΆΈΉΊΌΎΏ±≥≤ΪΫ÷≈°∙·√ⁿ²■ " - }, - "ibm737": "cp737", - "csibm737": "cp737", - "cp775": { - "type": "_sbcs", - "chars": "ĆüéāäģåćłēŖŗīŹÄÅÉæÆōöĢ¢ŚśÖÜø£Ø×¤ĀĪóŻżź”¦©®¬½¼Ł«»░▒▓│┤ĄČĘĖ╣║╗╝ĮŠ┐└┴┬├─┼ŲŪ╚╔╩╦╠═╬Žąčęėįšųūž┘┌█▄▌▐▀ÓßŌŃõÕµńĶķĻļņĒŅ’­±“¾¶§÷„°∙·¹³²■ " - }, - "ibm775": "cp775", - "csibm775": "cp775", - "cp850": { - "type": "_sbcs", - "chars": "ÇüéâäàåçêëèïîìÄÅÉæÆôöòûùÿÖÜø£Ø×ƒáíóúñѪº¿®¬½¼¡«»░▒▓│┤ÁÂÀ©╣║╗╝¢¥┐└┴┬├─┼ãÃ╚╔╩╦╠═╬¤ðÐÊËÈıÍÎÏ┘┌█▄¦Ì▀ÓßÔÒõÕµþÞÚÛÙýݯ´­±‗¾¶§÷¸°¨·¹³²■ " - }, - "ibm850": "cp850", - "csibm850": "cp850", - "cp852": { - "type": "_sbcs", - "chars": "ÇüéâäůćçłëŐőîŹÄĆÉĹĺôöĽľŚśÖÜŤťŁ×čáíóúĄąŽžĘ꬟Ⱥ«»░▒▓│┤ÁÂĚŞ╣║╗╝Żż┐└┴┬├─┼Ăă╚╔╩╦╠═╬¤đĐĎËďŇÍÎě┘┌█▄ŢŮ▀ÓßÔŃńňŠšŔÚŕŰýÝţ´­˝˛ˇ˘§÷¸°¨˙űŘř■ " - }, - "ibm852": "cp852", - "csibm852": "cp852", - "cp855": { - "type": "_sbcs", - "chars": "ђЂѓЃёЁєЄѕЅіІїЇјЈљЉњЊћЋќЌўЎџЏюЮъЪаАбБцЦдДеЕфФгГ«»░▒▓│┤хХиИ╣║╗╝йЙ┐└┴┬├─┼кК╚╔╩╦╠═╬¤лЛмМнНоОп┘┌█▄Пя▀ЯрРсСтТуУжЖвВьЬ№­ыЫзЗшШэЭщЩчЧ§■ " - }, - "ibm855": "cp855", - "csibm855": "cp855", - "cp856": { - "type": "_sbcs", - "chars": "אבגדהוזחטיךכלםמןנסעףפץצקרשת�£�×����������®¬½¼�«»░▒▓│┤���©╣║╗╝¢¥┐└┴┬├─┼��╚╔╩╦╠═╬¤���������┘┌█▄¦�▀������µ�������¯´­±‗¾¶§÷¸°¨·¹³²■ " - }, - "ibm856": "cp856", - "csibm856": "cp856", - "cp857": { - "type": "_sbcs", - "chars": "ÇüéâäàåçêëèïîıÄÅÉæÆôöòûùİÖÜø£ØŞşáíóúñÑĞ𿮬½¼¡«»░▒▓│┤ÁÂÀ©╣║╗╝¢¥┐└┴┬├─┼ãÃ╚╔╩╦╠═╬¤ºªÊËÈ�ÍÎÏ┘┌█▄¦Ì▀ÓßÔÒõÕµ�×ÚÛÙìÿ¯´­±�¾¶§÷¸°¨·¹³²■ " - }, - "ibm857": "cp857", - "csibm857": "cp857", - "cp858": { - "type": "_sbcs", - "chars": "ÇüéâäàåçêëèïîìÄÅÉæÆôöòûùÿÖÜø£Ø×ƒáíóúñѪº¿®¬½¼¡«»░▒▓│┤ÁÂÀ©╣║╗╝¢¥┐└┴┬├─┼ãÃ╚╔╩╦╠═╬¤ðÐÊËÈ€ÍÎÏ┘┌█▄¦Ì▀ÓßÔÒõÕµþÞÚÛÙýݯ´­±‗¾¶§÷¸°¨·¹³²■ " - }, - "ibm858": "cp858", - "csibm858": "cp858", - "cp860": { - "type": "_sbcs", - "chars": "ÇüéâãàÁçêÊèÍÔìÃÂÉÀÈôõòÚùÌÕÜ¢£Ù₧ÓáíóúñѪº¿Ò¬½¼¡«»░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀αßΓπΣσµτΦΘΩδ∞φε∩≡±≥≤⌠⌡÷≈°∙·√ⁿ²■ " - }, - "ibm860": "cp860", - "csibm860": "cp860", - "cp861": { - "type": "_sbcs", - "chars": "ÇüéâäàåçêëèÐðÞÄÅÉæÆôöþûÝýÖÜø£Ø₧ƒáíóúÁÍÓÚ¿⌐¬½¼¡«»░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀αßΓπΣσµτΦΘΩδ∞φε∩≡±≥≤⌠⌡÷≈°∙·√ⁿ²■ " - }, - "ibm861": "cp861", - "csibm861": "cp861", - "cp862": { - "type": "_sbcs", - "chars": "אבגדהוזחטיךכלםמןנסעףפץצקרשת¢£¥₧ƒáíóúñѪº¿⌐¬½¼¡«»░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀αßΓπΣσµτΦΘΩδ∞φε∩≡±≥≤⌠⌡÷≈°∙·√ⁿ²■ " - }, - "ibm862": "cp862", - "csibm862": "cp862", - "cp863": { - "type": "_sbcs", - "chars": "ÇüéâÂà¶çêëèïî‗À§ÉÈÊôËÏûù¤ÔÜ¢£ÙÛƒ¦´óú¨¸³¯Î⌐¬½¼¾«»░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀αßΓπΣσµτΦΘΩδ∞φε∩≡±≥≤⌠⌡÷≈°∙·√ⁿ²■ " - }, - "ibm863": "cp863", - "csibm863": "cp863", - "cp864": { - "type": "_sbcs", - "chars": "\u0000\u0001\u0002\u0003\u0004\u0005\u0006\u0007\b\t\n\u000b\f\r\u000e\u000f\u0010\u0011\u0012\u0013\u0014\u0015\u0016\u0017\u0018\u0019\u001a\u001b\u001c\u001d\u001e\u001f !\"#$٪&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~°·∙√▒─│┼┤┬├┴┐┌└┘β∞φ±½¼≈«»ﻷﻸ��ﻻﻼ� ­ﺂ£¤ﺄ��ﺎﺏﺕﺙ،ﺝﺡﺥ٠١٢٣٤٥٦٧٨٩ﻑ؛ﺱﺵﺹ؟¢ﺀﺁﺃﺅﻊﺋﺍﺑﺓﺗﺛﺟﺣﺧﺩﺫﺭﺯﺳﺷﺻﺿﻁﻅﻋﻏ¦¬÷×ﻉـﻓﻗﻛﻟﻣﻧﻫﻭﻯﻳﺽﻌﻎﻍﻡﹽّﻥﻩﻬﻰﻲﻐﻕﻵﻶﻝﻙﻱ■�" - }, - "ibm864": "cp864", - "csibm864": "cp864", - "cp865": { - "type": "_sbcs", - "chars": "ÇüéâäàåçêëèïîìÄÅÉæÆôöòûùÿÖÜø£Ø₧ƒáíóúñѪº¿⌐¬½¼¡«¤░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀αßΓπΣσµτΦΘΩδ∞φε∩≡±≥≤⌠⌡÷≈°∙·√ⁿ²■ " - }, - "ibm865": "cp865", - "csibm865": "cp865", - "cp866": { - "type": "_sbcs", - "chars": "АБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯабвгдежзийклмноп░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀рстуфхцчшщъыьэюяЁёЄєЇїЎў°∙·√№¤■ " - }, - "ibm866": "cp866", - "csibm866": "cp866", - "cp869": { - "type": "_sbcs", - "chars": "������Ά�·¬¦‘’Έ―ΉΊΪΌ��ΎΫ©Ώ²³ά£έήίϊΐόύΑΒΓΔΕΖΗ½ΘΙ«»░▒▓│┤ΚΛΜΝ╣║╗╝ΞΟ┐└┴┬├─┼ΠΡ╚╔╩╦╠═╬ΣΤΥΦΧΨΩαβγ┘┌█▄δε▀ζηθικλμνξοπρσςτ΄­±υφχ§ψ΅°¨ωϋΰώ■ " - }, - "ibm869": "cp869", - "csibm869": "cp869", - "cp922": { - "type": "_sbcs", - "chars": "€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ ¡¢£¤¥¦§¨©ª«¬­®‾°±²³´µ¶·¸¹º»¼½¾¿ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏŠÑÒÓÔÕÖרÙÚÛÜÝŽßàáâãäåæçèéêëìíîïšñòóôõö÷øùúûüýžÿ" - }, - "ibm922": "cp922", - "csibm922": "cp922", - "cp1046": { - "type": "_sbcs", - "chars": "ﺈ×÷ﹱˆ■│─┐┌└┘ﹹﹻﹽﹿﹷﺊﻰﻳﻲﻎﻏﻐﻶﻸﻺﻼ ¤ﺋﺑﺗﺛﺟﺣ،­ﺧﺳ٠١٢٣٤٥٦٧٨٩ﺷ؛ﺻﺿﻊ؟ﻋءآأؤإئابةتثجحخدذرزسشصضطﻇعغﻌﺂﺄﺎﻓـفقكلمنهوىيًٌٍَُِّْﻗﻛﻟﻵﻷﻹﻻﻣﻧﻬﻩ�" - }, - "ibm1046": "cp1046", - "csibm1046": "cp1046", - "cp1124": { - "type": "_sbcs", - "chars": "€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ ЁЂҐЄЅІЇЈЉЊЋЌ­ЎЏАБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯабвгдежзийклмнопрстуфхцчшщъыьэюя№ёђґєѕіїјљњћќ§ўџ" - }, - "ibm1124": "cp1124", - "csibm1124": "cp1124", - "cp1125": { - "type": "_sbcs", - "chars": "АБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯабвгдежзийклмноп░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀рстуфхцчшщъыьэюяЁёҐґЄєІіЇї·√№¤■ " - }, - "ibm1125": "cp1125", - "csibm1125": "cp1125", - "cp1129": { - "type": "_sbcs", - "chars": "€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ ¡¢£¤¥¦§œ©ª«¬­®¯°±²³Ÿµ¶·Œ¹º»¼½¾¿ÀÁÂĂÄÅÆÇÈÉÊË̀ÍÎÏĐÑ̉ÓÔƠÖרÙÚÛÜỮßàáâăäåæçèéêë́íîïđṇ̃óôơö÷øùúûüư₫ÿ" - }, - "ibm1129": "cp1129", - "csibm1129": "cp1129", - "cp1133": { - "type": "_sbcs", - "chars": "€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ ກຂຄງຈສຊຍດຕຖທນບປຜຝພຟມຢຣລວຫອຮ���ຯະາຳິີຶືຸູຼັົຽ���ເແໂໃໄ່້໊໋໌ໍໆ�ໜໝ₭����������������໐໑໒໓໔໕໖໗໘໙��¢¬¦�" - }, - "ibm1133": "cp1133", - "csibm1133": "cp1133", - "cp1161": { - "type": "_sbcs", - "chars": "��������������������������������่กขฃคฅฆงจฉชซฌญฎฏฐฑฒณดตถทธนบปผฝพฟภมยรฤลฦวศษสหฬอฮฯะัาำิีึืฺุู้๊๋€฿เแโใไๅๆ็่้๊๋์ํ๎๏๐๑๒๓๔๕๖๗๘๙๚๛¢¬¦ " - }, - "ibm1161": "cp1161", - "csibm1161": "cp1161", - "cp1162": { - "type": "_sbcs", - "chars": "€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ กขฃคฅฆงจฉชซฌญฎฏฐฑฒณดตถทธนบปผฝพฟภมยรฤลฦวศษสหฬอฮฯะัาำิีึืฺุู����฿เแโใไๅๆ็่้๊๋์ํ๎๏๐๑๒๓๔๕๖๗๘๙๚๛����" - }, - "ibm1162": "cp1162", - "csibm1162": "cp1162", - "cp1163": { - "type": "_sbcs", - "chars": "€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ ¡¢£€¥¦§œ©ª«¬­®¯°±²³Ÿµ¶·Œ¹º»¼½¾¿ÀÁÂĂÄÅÆÇÈÉÊË̀ÍÎÏĐÑ̉ÓÔƠÖרÙÚÛÜỮßàáâăäåæçèéêë́íîïđṇ̃óôơö÷øùúûüư₫ÿ" - }, - "ibm1163": "cp1163", - "csibm1163": "cp1163", - "maccroatian": { - "type": "_sbcs", - "chars": "ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®Š™´¨≠ŽØ∞±≤≥∆µ∂∑∏š∫ªºΩžø¿¡¬√ƒ≈ƫȅ ÀÃÕŒœĐ—“”‘’÷◊�©⁄¤‹›Æ»–·‚„‰ÂćÁčÈÍÎÏÌÓÔđÒÚÛÙıˆ˜¯πË˚¸Êæˇ" - }, - "maccyrillic": { - "type": "_sbcs", - "chars": "АБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯ†°¢£§•¶І®©™Ђђ≠Ѓѓ∞±≤≥іµ∂ЈЄєЇїЉљЊњјЅ¬√ƒ≈∆«»… ЋћЌќѕ–—“”‘’÷„ЎўЏџ№Ёёяабвгдежзийклмнопрстуфхцчшщъыьэю¤" - }, - "macgreek": { - "type": "_sbcs", - "chars": "Ĺ²É³ÖÜ΅àâä΄¨çéèê룙î‰ôö¦­ùûü†ΓΔΘΛΞΠß®©ΣΪ§≠°·Α±≤≥¥ΒΕΖΗΙΚΜΦΫΨΩάΝ¬ΟΡ≈Τ«»… ΥΧΆΈœ–―“”‘’÷ΉΊΌΎέήίόΏύαβψδεφγηιξκλμνοπώρστθωςχυζϊϋΐΰ�" - }, - "maciceland": { - "type": "_sbcs", - "chars": "ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûüݰ¢£§•¶ß®©™´¨≠ÆØ∞±≤≥¥µ∂∑∏π∫ªºΩæø¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸ⁄¤ÐðÞþý·‚„‰ÂÊÁËÈÍÎÏÌÓÔ�ÒÚÛÙıˆ˜¯˘˙˚¸˝˛ˇ" - }, - "macroman": { - "type": "_sbcs", - "chars": "ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ÆØ∞±≤≥¥µ∂∑∏π∫ªºΩæø¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸ⁄¤‹›fifl‡·‚„‰ÂÊÁËÈÍÎÏÌÓÔ�ÒÚÛÙıˆ˜¯˘˙˚¸˝˛ˇ" - }, - "macromania": { - "type": "_sbcs", - "chars": "ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ĂŞ∞±≤≥¥µ∂∑∏π∫ªºΩăş¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸ⁄¤‹›Ţţ‡·‚„‰ÂÊÁËÈÍÎÏÌÓÔ�ÒÚÛÙıˆ˜¯˘˙˚¸˝˛ˇ" - }, - "macthai": { - "type": "_sbcs", - "chars": "«»…“”�•‘’� กขฃคฅฆงจฉชซฌญฎฏฐฑฒณดตถทธนบปผฝพฟภมยรฤลฦวศษสหฬอฮฯะัาำิีึืฺุู​–—฿เแโใไๅๆ็่้๊๋์ํ™๏๐๑๒๓๔๕๖๗๘๙®©����" - }, - "macturkish": { - "type": "_sbcs", - "chars": "ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ÆØ∞±≤≥¥µ∂∑∏π∫ªºΩæø¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸĞğİıŞş‡·‚„‰ÂÊÁËÈÍÎÏÌÓÔ�ÒÚÛÙ�ˆ˜¯˘˙˚¸˝˛ˇ" - }, - "macukraine": { - "type": "_sbcs", - "chars": "АБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯ†°Ґ£§•¶І®©™Ђђ≠Ѓѓ∞±≤≥іµґЈЄєЇїЉљЊњјЅ¬√ƒ≈∆«»… ЋћЌќѕ–—“”‘’÷„ЎўЏџ№Ёёяабвгдежзийклмнопрстуфхцчшщъыьэю¤" - }, - "koi8r": { - "type": "_sbcs", - "chars": "─│┌┐└┘├┤┬┴┼▀▄█▌▐░▒▓⌠■∙√≈≤≥ ⌡°²·÷═║╒ё╓╔╕╖╗╘╙╚╛╜╝╞╟╠╡Ё╢╣╤╥╦╧╨╩╪╫╬©юабцдефгхийклмнопярстужвьызшэщчъЮАБЦДЕФГХИЙКЛМНОПЯРСТУЖВЬЫЗШЭЩЧЪ" - }, - "koi8u": { - "type": "_sbcs", - "chars": "─│┌┐└┘├┤┬┴┼▀▄█▌▐░▒▓⌠■∙√≈≤≥ ⌡°²·÷═║╒ёє╔ії╗╘╙╚╛ґ╝╞╟╠╡ЁЄ╣ІЇ╦╧╨╩╪Ґ╬©юабцдефгхийклмнопярстужвьызшэщчъЮАБЦДЕФГХИЙКЛМНОПЯРСТУЖВЬЫЗШЭЩЧЪ" - }, - "koi8ru": { - "type": "_sbcs", - "chars": "─│┌┐└┘├┤┬┴┼▀▄█▌▐░▒▓⌠■∙√≈≤≥ ⌡°²·÷═║╒ёє╔ії╗╘╙╚╛ґў╞╟╠╡ЁЄ╣ІЇ╦╧╨╩╪ҐЎ©юабцдефгхийклмнопярстужвьызшэщчъЮАБЦДЕФГХИЙКЛМНОПЯРСТУЖВЬЫЗШЭЩЧЪ" - }, - "koi8t": { - "type": "_sbcs", - "chars": "қғ‚Ғ„…†‡�‰ҳ‹ҲҷҶ�Қ‘’“”•–—�™�›�����ӯӮё¤ӣ¦§���«¬­®�°±²Ё�Ӣ¶·�№�»���©юабцдефгхийклмнопярстужвьызшэщчъЮАБЦДЕФГХИЙКЛМНОПЯРСТУЖВЬЫЗШЭЩЧЪ" - }, - "armscii8": { - "type": "_sbcs", - "chars": "€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ �և։)(»«—.՝,-֊…՜՛՞ԱաԲբԳգԴդԵեԶզԷէԸըԹթԺժԻիԼլԽխԾծԿկՀհՁձՂղՃճՄմՅյՆնՇշՈոՉչՊպՋջՌռՍսՎվՏտՐրՑցՒւՓփՔքՕօՖֆ՚�" - }, - "rk1048": { - "type": "_sbcs", - "chars": "ЂЃ‚ѓ„…†‡€‰Љ‹ЊҚҺЏђ‘’“”•–—�™љ›њқһџ ҰұӘ¤Ө¦§Ё©Ғ«¬­®Ү°±Ііөµ¶·ё№ғ»әҢңүАБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯабвгдежзийклмнопрстуфхцчшщъыьэюя" - }, - "tcvn": { - "type": "_sbcs", - "chars": "\u0000ÚỤ\u0003ỪỬỮ\u0007\b\t\n\u000b\f\r\u000e\u000f\u0010ỨỰỲỶỸÝỴ\u0018\u0019\u001a\u001b\u001c\u001d\u001e\u001f !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ÀẢÃÁẠẶẬÈẺẼÉẸỆÌỈĨÍỊÒỎÕÓỌỘỜỞỠỚỢÙỦŨ ĂÂÊÔƠƯĐăâêôơưđẶ̀̀̉̃́àảãáạẲằẳẵắẴẮẦẨẪẤỀặầẩẫấậèỂẻẽéẹềểễếệìỉỄẾỒĩíịòỔỏõóọồổỗốộờởỡớợùỖủũúụừửữứựỳỷỹýỵỐ" - }, - "georgianacademy": { - "type": "_sbcs", - "chars": "€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ ¡¢£¤¥¦§¨©ª«¬­®¯°±²³´µ¶·¸¹º»¼½¾¿აბგდევზთიკლმნოპჟრსტუფქღყშჩცძწჭხჯჰჱჲჳჴჵჶçèéêëìíîïðñòóôõö÷øùúûüýþÿ" - }, - "georgianps": { - "type": "_sbcs", - "chars": "€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ ¡¢£¤¥¦§¨©ª«¬­®¯°±²³´µ¶·¸¹º»¼½¾¿აბგდევზჱთიკლმნჲოპჟრსტჳუფქღყშჩცძწჭხჴჯჰჵæçèéêëìíîïðñòóôõö÷øùúûüýþÿ" - }, - "pt154": { - "type": "_sbcs", - "chars": "ҖҒӮғ„…ҶҮҲүҠӢҢҚҺҸҗ‘’“”•–—ҳҷҡӣңқһҹ ЎўЈӨҘҰ§Ё©Ә«¬ӯ®Ҝ°ұІіҙө¶·ё№ә»јҪҫҝАБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯабвгдежзийклмнопрстуфхцчшщъыьэюя" - }, - "viscii": { - "type": "_sbcs", - "chars": "\u0000\u0001Ẳ\u0003\u0004ẴẪ\u0007\b\t\n\u000b\f\r\u000e\u000f\u0010\u0011\u0012\u0013Ỷ\u0015\u0016\u0017\u0018Ỹ\u001a\u001b\u001c\u001dỴ\u001f !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ẠẮẰẶẤẦẨẬẼẸẾỀỂỄỆỐỒỔỖỘỢỚỜỞỊỎỌỈỦŨỤỲÕắằặấầẩậẽẹếềểễệốồổỗỠƠộờởịỰỨỪỬơớƯÀÁÂÃẢĂẳẵÈÉÊẺÌÍĨỳĐứÒÓÔạỷừửÙÚỹỵÝỡưàáâãảăữẫèéêẻìíĩỉđựòóôõỏọụùúũủýợỮ" - }, - "iso646cn": { - "type": "_sbcs", - "chars": "\u0000\u0001\u0002\u0003\u0004\u0005\u0006\u0007\b\t\n\u000b\f\r\u000e\u000f\u0010\u0011\u0012\u0013\u0014\u0015\u0016\u0017\u0018\u0019\u001a\u001b\u001c\u001d\u001e\u001f !\"#¥%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}‾��������������������������������������������������������������������������������������������������������������������������������" - }, - "iso646jp": { - "type": "_sbcs", - "chars": "\u0000\u0001\u0002\u0003\u0004\u0005\u0006\u0007\b\t\n\u000b\f\r\u000e\u000f\u0010\u0011\u0012\u0013\u0014\u0015\u0016\u0017\u0018\u0019\u001a\u001b\u001c\u001d\u001e\u001f !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[¥]^_`abcdefghijklmnopqrstuvwxyz{|}‾��������������������������������������������������������������������������������������������������������������������������������" - }, - "hproman8": { - "type": "_sbcs", - "chars": "€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ ÀÂÈÊËÎÏ´ˋˆ¨˜ÙÛ₤¯Ýý°ÇçÑñ¡¿¤£¥§ƒ¢âêôûáéóúàèòùäëöüÅîØÆåíøæÄìÖÜÉïßÔÁÃãÐðÍÌÓÒÕõŠšÚŸÿÞþ·µ¶¾—¼½ªº«■»±�" - }, - "macintosh": { - "type": "_sbcs", - "chars": "ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ÆØ∞±≤≥¥µ∂∑∏π∫ªºΩæø¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸ⁄¤‹›fifl‡·‚„‰ÂÊÁËÈÍÎÏÌÓÔ�ÒÚÛÙıˆ˜¯˘˙˚¸˝˛ˇ" - }, - "ascii": { - "type": "_sbcs", - "chars": "��������������������������������������������������������������������������������������������������������������������������������" - }, - "tis620": { - "type": "_sbcs", - "chars": "���������������������������������กขฃคฅฆงจฉชซฌญฎฏฐฑฒณดตถทธนบปผฝพฟภมยรฤลฦวศษสหฬอฮฯะัาำิีึืฺุู����฿เแโใไๅๆ็่้๊๋์ํ๎๏๐๑๒๓๔๕๖๗๘๙๚๛����" - } -} - -/***/ }), - -/***/ 41080: -/***/ ((module) => { - -"use strict"; - - -// Manually added data to be used by sbcs codec in addition to generated one. - -module.exports = { - // Not supported by iconv, not sure why. - "10029": "maccenteuro", - "maccenteuro": { - "type": "_sbcs", - "chars": "ÄĀāÉĄÖÜáąČäčĆć鏟ĎíďĒēĖóėôöõúĚěü†°Ę£§•¶ß®©™ę¨≠ģĮįĪ≤≥īĶ∂∑łĻļĽľĹĺŅņѬ√ńŇ∆«»… ňŐÕőŌ–—“”‘’÷◊ōŔŕŘ‹›řŖŗŠ‚„šŚśÁŤťÍŽžŪÓÔūŮÚůŰűŲųÝýķŻŁżĢˇ" - }, - - "808": "cp808", - "ibm808": "cp808", - "cp808": { - "type": "_sbcs", - "chars": "АБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯабвгдежзийклмноп░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀рстуфхцчшщъыьэюяЁёЄєЇїЎў°∙·√№€■ " - }, - - "mik": { - "type": "_sbcs", - "chars": "АБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯабвгдежзийклмнопрстуфхцчшщъыьэюя└┴┬├─┼╣║╚╔╩╦╠═╬┐░▒▓│┤№§╗╝┘┌█▄▌▐▀αßΓπΣσµτΦΘΩδ∞φε∩≡±≥≤⌠⌡÷≈°∙·√ⁿ²■ " - }, - - // Aliases of generated encodings. - "ascii8bit": "ascii", - "usascii": "ascii", - "ansix34": "ascii", - "ansix341968": "ascii", - "ansix341986": "ascii", - "csascii": "ascii", - "cp367": "ascii", - "ibm367": "ascii", - "isoir6": "ascii", - "iso646us": "ascii", - "iso646irv": "ascii", - "us": "ascii", - - "latin1": "iso88591", - "latin2": "iso88592", - "latin3": "iso88593", - "latin4": "iso88594", - "latin5": "iso88599", - "latin6": "iso885910", - "latin7": "iso885913", - "latin8": "iso885914", - "latin9": "iso885915", - "latin10": "iso885916", - - "csisolatin1": "iso88591", - "csisolatin2": "iso88592", - "csisolatin3": "iso88593", - "csisolatin4": "iso88594", - "csisolatincyrillic": "iso88595", - "csisolatinarabic": "iso88596", - "csisolatingreek" : "iso88597", - "csisolatinhebrew": "iso88598", - "csisolatin5": "iso88599", - "csisolatin6": "iso885910", - - "l1": "iso88591", - "l2": "iso88592", - "l3": "iso88593", - "l4": "iso88594", - "l5": "iso88599", - "l6": "iso885910", - "l7": "iso885913", - "l8": "iso885914", - "l9": "iso885915", - "l10": "iso885916", - - "isoir14": "iso646jp", - "isoir57": "iso646cn", - "isoir100": "iso88591", - "isoir101": "iso88592", - "isoir109": "iso88593", - "isoir110": "iso88594", - "isoir144": "iso88595", - "isoir127": "iso88596", - "isoir126": "iso88597", - "isoir138": "iso88598", - "isoir148": "iso88599", - "isoir157": "iso885910", - "isoir166": "tis620", - "isoir179": "iso885913", - "isoir199": "iso885914", - "isoir203": "iso885915", - "isoir226": "iso885916", - - "cp819": "iso88591", - "ibm819": "iso88591", - - "cyrillic": "iso88595", - - "arabic": "iso88596", - "arabic8": "iso88596", - "ecma114": "iso88596", - "asmo708": "iso88596", - - "greek" : "iso88597", - "greek8" : "iso88597", - "ecma118" : "iso88597", - "elot928" : "iso88597", - - "hebrew": "iso88598", - "hebrew8": "iso88598", - - "turkish": "iso88599", - "turkish8": "iso88599", - - "thai": "iso885911", - "thai8": "iso885911", - - "celtic": "iso885914", - "celtic8": "iso885914", - "isoceltic": "iso885914", - - "tis6200": "tis620", - "tis62025291": "tis620", - "tis62025330": "tis620", - - "10000": "macroman", - "10006": "macgreek", - "10007": "maccyrillic", - "10079": "maciceland", - "10081": "macturkish", - - "cspc8codepage437": "cp437", - "cspc775baltic": "cp775", - "cspc850multilingual": "cp850", - "cspcp852": "cp852", - "cspc862latinhebrew": "cp862", - "cpgr": "cp869", - - "msee": "cp1250", - "mscyrl": "cp1251", - "msansi": "cp1252", - "msgreek": "cp1253", - "msturk": "cp1254", - "mshebr": "cp1255", - "msarab": "cp1256", - "winbaltrim": "cp1257", - - "cp20866": "koi8r", - "20866": "koi8r", - "ibm878": "koi8r", - "cskoi8r": "koi8r", - - "cp21866": "koi8u", - "21866": "koi8u", - "ibm1168": "koi8u", - - "strk10482002": "rk1048", - - "tcvn5712": "tcvn", - "tcvn57121": "tcvn", - - "gb198880": "iso646cn", - "cn": "iso646cn", - - "csiso14jisc6220ro": "iso646jp", - "jisc62201969ro": "iso646jp", - "jp": "iso646jp", - - "cshproman8": "hproman8", - "r8": "hproman8", - "roman8": "hproman8", - "xroman8": "hproman8", - "ibm1051": "hproman8", - - "mac": "macintosh", - "csmacintosh": "macintosh", -}; - - - -/***/ }), - -/***/ 11155: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -var Buffer = __nccwpck_require__(15118).Buffer; - -// Note: UTF16-LE (or UCS2) codec is Node.js native. See encodings/internal.js - -// == UTF16-BE codec. ========================================================== - -exports.utf16be = Utf16BECodec; -function Utf16BECodec() { -} - -Utf16BECodec.prototype.encoder = Utf16BEEncoder; -Utf16BECodec.prototype.decoder = Utf16BEDecoder; -Utf16BECodec.prototype.bomAware = true; - - -// -- Encoding - -function Utf16BEEncoder() { -} - -Utf16BEEncoder.prototype.write = function(str) { - var buf = Buffer.from(str, 'ucs2'); - for (var i = 0; i < buf.length; i += 2) { - var tmp = buf[i]; buf[i] = buf[i+1]; buf[i+1] = tmp; - } - return buf; -} - -Utf16BEEncoder.prototype.end = function() { -} - - -// -- Decoding - -function Utf16BEDecoder() { - this.overflowByte = -1; -} - -Utf16BEDecoder.prototype.write = function(buf) { - if (buf.length == 0) - return ''; - - var buf2 = Buffer.alloc(buf.length + 1), - i = 0, j = 0; - - if (this.overflowByte !== -1) { - buf2[0] = buf[0]; - buf2[1] = this.overflowByte; - i = 1; j = 2; - } - - for (; i < buf.length-1; i += 2, j+= 2) { - buf2[j] = buf[i+1]; - buf2[j+1] = buf[i]; - } - - this.overflowByte = (i == buf.length-1) ? buf[buf.length-1] : -1; - - return buf2.slice(0, j).toString('ucs2'); -} - -Utf16BEDecoder.prototype.end = function() { -} - - -// == UTF-16 codec ============================================================= -// Decoder chooses automatically from UTF-16LE and UTF-16BE using BOM and space-based heuristic. -// Defaults to UTF-16LE, as it's prevalent and default in Node. -// http://en.wikipedia.org/wiki/UTF-16 and http://encoding.spec.whatwg.org/#utf-16le -// Decoder default can be changed: iconv.decode(buf, 'utf16', {defaultEncoding: 'utf-16be'}); - -// Encoder uses UTF-16LE and prepends BOM (which can be overridden with addBOM: false). - -exports.utf16 = Utf16Codec; -function Utf16Codec(codecOptions, iconv) { - this.iconv = iconv; -} - -Utf16Codec.prototype.encoder = Utf16Encoder; -Utf16Codec.prototype.decoder = Utf16Decoder; - - -// -- Encoding (pass-through) - -function Utf16Encoder(options, codec) { - options = options || {}; - if (options.addBOM === undefined) - options.addBOM = true; - this.encoder = codec.iconv.getEncoder('utf-16le', options); -} - -Utf16Encoder.prototype.write = function(str) { - return this.encoder.write(str); -} - -Utf16Encoder.prototype.end = function() { - return this.encoder.end(); -} - - -// -- Decoding - -function Utf16Decoder(options, codec) { - this.decoder = null; - this.initialBytes = []; - this.initialBytesLen = 0; - - this.options = options || {}; - this.iconv = codec.iconv; -} - -Utf16Decoder.prototype.write = function(buf) { - if (!this.decoder) { - // Codec is not chosen yet. Accumulate initial bytes. - this.initialBytes.push(buf); - this.initialBytesLen += buf.length; - - if (this.initialBytesLen < 16) // We need more bytes to use space heuristic (see below) - return ''; - - // We have enough bytes -> detect endianness. - var buf = Buffer.concat(this.initialBytes), - encoding = detectEncoding(buf, this.options.defaultEncoding); - this.decoder = this.iconv.getDecoder(encoding, this.options); - this.initialBytes.length = this.initialBytesLen = 0; - } - - return this.decoder.write(buf); -} - -Utf16Decoder.prototype.end = function() { - if (!this.decoder) { - var buf = Buffer.concat(this.initialBytes), - encoding = detectEncoding(buf, this.options.defaultEncoding); - this.decoder = this.iconv.getDecoder(encoding, this.options); - - var res = this.decoder.write(buf), - trail = this.decoder.end(); - - return trail ? (res + trail) : res; - } - return this.decoder.end(); -} - -function detectEncoding(buf, defaultEncoding) { - var enc = defaultEncoding || 'utf-16le'; - - if (buf.length >= 2) { - // Check BOM. - if (buf[0] == 0xFE && buf[1] == 0xFF) // UTF-16BE BOM - enc = 'utf-16be'; - else if (buf[0] == 0xFF && buf[1] == 0xFE) // UTF-16LE BOM - enc = 'utf-16le'; - else { - // No BOM found. Try to deduce encoding from initial content. - // Most of the time, the content has ASCII chars (U+00**), but the opposite (U+**00) is uncommon. - // So, we count ASCII as if it was LE or BE, and decide from that. - var asciiCharsLE = 0, asciiCharsBE = 0, // Counts of chars in both positions - _len = Math.min(buf.length - (buf.length % 2), 64); // Len is always even. - - for (var i = 0; i < _len; i += 2) { - if (buf[i] === 0 && buf[i+1] !== 0) asciiCharsBE++; - if (buf[i] !== 0 && buf[i+1] === 0) asciiCharsLE++; - } - - if (asciiCharsBE > asciiCharsLE) - enc = 'utf-16be'; - else if (asciiCharsBE < asciiCharsLE) - enc = 'utf-16le'; - } - } - - return enc; -} - - - - -/***/ }), - -/***/ 51644: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -var Buffer = __nccwpck_require__(15118).Buffer; - -// UTF-7 codec, according to https://tools.ietf.org/html/rfc2152 -// See also below a UTF-7-IMAP codec, according to http://tools.ietf.org/html/rfc3501#section-5.1.3 - -exports.utf7 = Utf7Codec; -exports.unicode11utf7 = 'utf7'; // Alias UNICODE-1-1-UTF-7 -function Utf7Codec(codecOptions, iconv) { - this.iconv = iconv; -}; - -Utf7Codec.prototype.encoder = Utf7Encoder; -Utf7Codec.prototype.decoder = Utf7Decoder; -Utf7Codec.prototype.bomAware = true; - - -// -- Encoding - -var nonDirectChars = /[^A-Za-z0-9'\(\),-\.\/:\? \n\r\t]+/g; - -function Utf7Encoder(options, codec) { - this.iconv = codec.iconv; -} - -Utf7Encoder.prototype.write = function(str) { - // Naive implementation. - // Non-direct chars are encoded as "+-"; single "+" char is encoded as "+-". - return Buffer.from(str.replace(nonDirectChars, function(chunk) { - return "+" + (chunk === '+' ? '' : - this.iconv.encode(chunk, 'utf16-be').toString('base64').replace(/=+$/, '')) - + "-"; - }.bind(this))); -} - -Utf7Encoder.prototype.end = function() { -} - - -// -- Decoding - -function Utf7Decoder(options, codec) { - this.iconv = codec.iconv; - this.inBase64 = false; - this.base64Accum = ''; -} - -var base64Regex = /[A-Za-z0-9\/+]/; -var base64Chars = []; -for (var i = 0; i < 256; i++) - base64Chars[i] = base64Regex.test(String.fromCharCode(i)); - -var plusChar = '+'.charCodeAt(0), - minusChar = '-'.charCodeAt(0), - andChar = '&'.charCodeAt(0); - -Utf7Decoder.prototype.write = function(buf) { - var res = "", lastI = 0, - inBase64 = this.inBase64, - base64Accum = this.base64Accum; - - // The decoder is more involved as we must handle chunks in stream. - - for (var i = 0; i < buf.length; i++) { - if (!inBase64) { // We're in direct mode. - // Write direct chars until '+' - if (buf[i] == plusChar) { - res += this.iconv.decode(buf.slice(lastI, i), "ascii"); // Write direct chars. - lastI = i+1; - inBase64 = true; - } - } else { // We decode base64. - if (!base64Chars[buf[i]]) { // Base64 ended. - if (i == lastI && buf[i] == minusChar) {// "+-" -> "+" - res += "+"; - } else { - var b64str = base64Accum + buf.slice(lastI, i).toString(); - res += this.iconv.decode(Buffer.from(b64str, 'base64'), "utf16-be"); - } - - if (buf[i] != minusChar) // Minus is absorbed after base64. - i--; - - lastI = i+1; - inBase64 = false; - base64Accum = ''; - } - } - } - - if (!inBase64) { - res += this.iconv.decode(buf.slice(lastI), "ascii"); // Write direct chars. - } else { - var b64str = base64Accum + buf.slice(lastI).toString(); - - var canBeDecoded = b64str.length - (b64str.length % 8); // Minimal chunk: 2 quads -> 2x3 bytes -> 3 chars. - base64Accum = b64str.slice(canBeDecoded); // The rest will be decoded in future. - b64str = b64str.slice(0, canBeDecoded); - - res += this.iconv.decode(Buffer.from(b64str, 'base64'), "utf16-be"); - } - - this.inBase64 = inBase64; - this.base64Accum = base64Accum; - - return res; -} - -Utf7Decoder.prototype.end = function() { - var res = ""; - if (this.inBase64 && this.base64Accum.length > 0) - res = this.iconv.decode(Buffer.from(this.base64Accum, 'base64'), "utf16-be"); - - this.inBase64 = false; - this.base64Accum = ''; - return res; -} - - -// UTF-7-IMAP codec. -// RFC3501 Sec. 5.1.3 Modified UTF-7 (http://tools.ietf.org/html/rfc3501#section-5.1.3) -// Differences: -// * Base64 part is started by "&" instead of "+" -// * Direct characters are 0x20-0x7E, except "&" (0x26) -// * In Base64, "," is used instead of "/" -// * Base64 must not be used to represent direct characters. -// * No implicit shift back from Base64 (should always end with '-') -// * String must end in non-shifted position. -// * "-&" while in base64 is not allowed. - - -exports.utf7imap = Utf7IMAPCodec; -function Utf7IMAPCodec(codecOptions, iconv) { - this.iconv = iconv; -}; - -Utf7IMAPCodec.prototype.encoder = Utf7IMAPEncoder; -Utf7IMAPCodec.prototype.decoder = Utf7IMAPDecoder; -Utf7IMAPCodec.prototype.bomAware = true; - - -// -- Encoding - -function Utf7IMAPEncoder(options, codec) { - this.iconv = codec.iconv; - this.inBase64 = false; - this.base64Accum = Buffer.alloc(6); - this.base64AccumIdx = 0; -} - -Utf7IMAPEncoder.prototype.write = function(str) { - var inBase64 = this.inBase64, - base64Accum = this.base64Accum, - base64AccumIdx = this.base64AccumIdx, - buf = Buffer.alloc(str.length*5 + 10), bufIdx = 0; - - for (var i = 0; i < str.length; i++) { - var uChar = str.charCodeAt(i); - if (0x20 <= uChar && uChar <= 0x7E) { // Direct character or '&'. - if (inBase64) { - if (base64AccumIdx > 0) { - bufIdx += buf.write(base64Accum.slice(0, base64AccumIdx).toString('base64').replace(/\//g, ',').replace(/=+$/, ''), bufIdx); - base64AccumIdx = 0; - } - - buf[bufIdx++] = minusChar; // Write '-', then go to direct mode. - inBase64 = false; - } - - if (!inBase64) { - buf[bufIdx++] = uChar; // Write direct character - - if (uChar === andChar) // Ampersand -> '&-' - buf[bufIdx++] = minusChar; - } - - } else { // Non-direct character - if (!inBase64) { - buf[bufIdx++] = andChar; // Write '&', then go to base64 mode. - inBase64 = true; - } - if (inBase64) { - base64Accum[base64AccumIdx++] = uChar >> 8; - base64Accum[base64AccumIdx++] = uChar & 0xFF; - - if (base64AccumIdx == base64Accum.length) { - bufIdx += buf.write(base64Accum.toString('base64').replace(/\//g, ','), bufIdx); - base64AccumIdx = 0; - } - } - } - } - - this.inBase64 = inBase64; - this.base64AccumIdx = base64AccumIdx; - - return buf.slice(0, bufIdx); -} - -Utf7IMAPEncoder.prototype.end = function() { - var buf = Buffer.alloc(10), bufIdx = 0; - if (this.inBase64) { - if (this.base64AccumIdx > 0) { - bufIdx += buf.write(this.base64Accum.slice(0, this.base64AccumIdx).toString('base64').replace(/\//g, ',').replace(/=+$/, ''), bufIdx); - this.base64AccumIdx = 0; - } - - buf[bufIdx++] = minusChar; // Write '-', then go to direct mode. - this.inBase64 = false; - } - - return buf.slice(0, bufIdx); -} - - -// -- Decoding - -function Utf7IMAPDecoder(options, codec) { - this.iconv = codec.iconv; - this.inBase64 = false; - this.base64Accum = ''; -} - -var base64IMAPChars = base64Chars.slice(); -base64IMAPChars[','.charCodeAt(0)] = true; - -Utf7IMAPDecoder.prototype.write = function(buf) { - var res = "", lastI = 0, - inBase64 = this.inBase64, - base64Accum = this.base64Accum; - - // The decoder is more involved as we must handle chunks in stream. - // It is forgiving, closer to standard UTF-7 (for example, '-' is optional at the end). - - for (var i = 0; i < buf.length; i++) { - if (!inBase64) { // We're in direct mode. - // Write direct chars until '&' - if (buf[i] == andChar) { - res += this.iconv.decode(buf.slice(lastI, i), "ascii"); // Write direct chars. - lastI = i+1; - inBase64 = true; - } - } else { // We decode base64. - if (!base64IMAPChars[buf[i]]) { // Base64 ended. - if (i == lastI && buf[i] == minusChar) { // "&-" -> "&" - res += "&"; - } else { - var b64str = base64Accum + buf.slice(lastI, i).toString().replace(/,/g, '/'); - res += this.iconv.decode(Buffer.from(b64str, 'base64'), "utf16-be"); - } - - if (buf[i] != minusChar) // Minus may be absorbed after base64. - i--; - - lastI = i+1; - inBase64 = false; - base64Accum = ''; - } - } - } - - if (!inBase64) { - res += this.iconv.decode(buf.slice(lastI), "ascii"); // Write direct chars. - } else { - var b64str = base64Accum + buf.slice(lastI).toString().replace(/,/g, '/'); - - var canBeDecoded = b64str.length - (b64str.length % 8); // Minimal chunk: 2 quads -> 2x3 bytes -> 3 chars. - base64Accum = b64str.slice(canBeDecoded); // The rest will be decoded in future. - b64str = b64str.slice(0, canBeDecoded); - - res += this.iconv.decode(Buffer.from(b64str, 'base64'), "utf16-be"); - } - - this.inBase64 = inBase64; - this.base64Accum = base64Accum; - - return res; -} - -Utf7IMAPDecoder.prototype.end = function() { - var res = ""; - if (this.inBase64 && this.base64Accum.length > 0) - res = this.iconv.decode(Buffer.from(this.base64Accum, 'base64'), "utf16-be"); - - this.inBase64 = false; - this.base64Accum = ''; - return res; -} - - - - -/***/ }), - -/***/ 67961: -/***/ ((__unused_webpack_module, exports) => { - -"use strict"; - - -var BOMChar = '\uFEFF'; - -exports.PrependBOM = PrependBOMWrapper -function PrependBOMWrapper(encoder, options) { - this.encoder = encoder; - this.addBOM = true; -} - -PrependBOMWrapper.prototype.write = function(str) { - if (this.addBOM) { - str = BOMChar + str; - this.addBOM = false; - } - - return this.encoder.write(str); -} - -PrependBOMWrapper.prototype.end = function() { - return this.encoder.end(); -} - - -//------------------------------------------------------------------------------ - -exports.StripBOM = StripBOMWrapper; -function StripBOMWrapper(decoder, options) { - this.decoder = decoder; - this.pass = false; - this.options = options || {}; -} - -StripBOMWrapper.prototype.write = function(buf) { - var res = this.decoder.write(buf); - if (this.pass || !res) - return res; - - if (res[0] === BOMChar) { - res = res.slice(1); - if (typeof this.options.stripBOM === 'function') - this.options.stripBOM(); - } - - this.pass = true; - return res; -} - -StripBOMWrapper.prototype.end = function() { - return this.decoder.end(); -} - - - -/***/ }), - -/***/ 30393: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -"use strict"; - -var Buffer = __nccwpck_require__(64293).Buffer; -// Note: not polyfilled with safer-buffer on a purpose, as overrides Buffer - -// == Extend Node primitives to use iconv-lite ================================= - -module.exports = function (iconv) { - var original = undefined; // Place to keep original methods. - - // Node authors rewrote Buffer internals to make it compatible with - // Uint8Array and we cannot patch key functions since then. - // Note: this does use older Buffer API on a purpose - iconv.supportsNodeEncodingsExtension = !(Buffer.from || new Buffer(0) instanceof Uint8Array); - - iconv.extendNodeEncodings = function extendNodeEncodings() { - if (original) return; - original = {}; - - if (!iconv.supportsNodeEncodingsExtension) { - console.error("ACTION NEEDED: require('iconv-lite').extendNodeEncodings() is not supported in your version of Node"); - console.error("See more info at https://github.com/ashtuchkin/iconv-lite/wiki/Node-v4-compatibility"); - return; - } - - var nodeNativeEncodings = { - 'hex': true, 'utf8': true, 'utf-8': true, 'ascii': true, 'binary': true, - 'base64': true, 'ucs2': true, 'ucs-2': true, 'utf16le': true, 'utf-16le': true, - }; - - Buffer.isNativeEncoding = function(enc) { - return enc && nodeNativeEncodings[enc.toLowerCase()]; - } - - // -- SlowBuffer ----------------------------------------------------------- - var SlowBuffer = __nccwpck_require__(64293).SlowBuffer; - - original.SlowBufferToString = SlowBuffer.prototype.toString; - SlowBuffer.prototype.toString = function(encoding, start, end) { - encoding = String(encoding || 'utf8').toLowerCase(); - - // Use native conversion when possible - if (Buffer.isNativeEncoding(encoding)) - return original.SlowBufferToString.call(this, encoding, start, end); - - // Otherwise, use our decoding method. - if (typeof start == 'undefined') start = 0; - if (typeof end == 'undefined') end = this.length; - return iconv.decode(this.slice(start, end), encoding); - } - - original.SlowBufferWrite = SlowBuffer.prototype.write; - SlowBuffer.prototype.write = function(string, offset, length, encoding) { - // Support both (string, offset, length, encoding) - // and the legacy (string, encoding, offset, length) - if (isFinite(offset)) { - if (!isFinite(length)) { - encoding = length; - length = undefined; - } - } else { // legacy - var swap = encoding; - encoding = offset; - offset = length; - length = swap; - } - - offset = +offset || 0; - var remaining = this.length - offset; - if (!length) { - length = remaining; - } else { - length = +length; - if (length > remaining) { - length = remaining; - } - } - encoding = String(encoding || 'utf8').toLowerCase(); - - // Use native conversion when possible - if (Buffer.isNativeEncoding(encoding)) - return original.SlowBufferWrite.call(this, string, offset, length, encoding); - - if (string.length > 0 && (length < 0 || offset < 0)) - throw new RangeError('attempt to write beyond buffer bounds'); - - // Otherwise, use our encoding method. - var buf = iconv.encode(string, encoding); - if (buf.length < length) length = buf.length; - buf.copy(this, offset, 0, length); - return length; - } - - // -- Buffer --------------------------------------------------------------- - - original.BufferIsEncoding = Buffer.isEncoding; - Buffer.isEncoding = function(encoding) { - return Buffer.isNativeEncoding(encoding) || iconv.encodingExists(encoding); - } - - original.BufferByteLength = Buffer.byteLength; - Buffer.byteLength = SlowBuffer.byteLength = function(str, encoding) { - encoding = String(encoding || 'utf8').toLowerCase(); - - // Use native conversion when possible - if (Buffer.isNativeEncoding(encoding)) - return original.BufferByteLength.call(this, str, encoding); - - // Slow, I know, but we don't have a better way yet. - return iconv.encode(str, encoding).length; - } - - original.BufferToString = Buffer.prototype.toString; - Buffer.prototype.toString = function(encoding, start, end) { - encoding = String(encoding || 'utf8').toLowerCase(); - - // Use native conversion when possible - if (Buffer.isNativeEncoding(encoding)) - return original.BufferToString.call(this, encoding, start, end); - - // Otherwise, use our decoding method. - if (typeof start == 'undefined') start = 0; - if (typeof end == 'undefined') end = this.length; - return iconv.decode(this.slice(start, end), encoding); - } - - original.BufferWrite = Buffer.prototype.write; - Buffer.prototype.write = function(string, offset, length, encoding) { - var _offset = offset, _length = length, _encoding = encoding; - // Support both (string, offset, length, encoding) - // and the legacy (string, encoding, offset, length) - if (isFinite(offset)) { - if (!isFinite(length)) { - encoding = length; - length = undefined; - } - } else { // legacy - var swap = encoding; - encoding = offset; - offset = length; - length = swap; - } - - encoding = String(encoding || 'utf8').toLowerCase(); - - // Use native conversion when possible - if (Buffer.isNativeEncoding(encoding)) - return original.BufferWrite.call(this, string, _offset, _length, _encoding); - - offset = +offset || 0; - var remaining = this.length - offset; - if (!length) { - length = remaining; - } else { - length = +length; - if (length > remaining) { - length = remaining; - } - } - - if (string.length > 0 && (length < 0 || offset < 0)) - throw new RangeError('attempt to write beyond buffer bounds'); - - // Otherwise, use our encoding method. - var buf = iconv.encode(string, encoding); - if (buf.length < length) length = buf.length; - buf.copy(this, offset, 0, length); - return length; - - // TODO: Set _charsWritten. - } - - - // -- Readable ------------------------------------------------------------- - if (iconv.supportsStreams) { - var Readable = __nccwpck_require__(92413).Readable; - - original.ReadableSetEncoding = Readable.prototype.setEncoding; - Readable.prototype.setEncoding = function setEncoding(enc, options) { - // Use our own decoder, it has the same interface. - // We cannot use original function as it doesn't handle BOM-s. - this._readableState.decoder = iconv.getDecoder(enc, options); - this._readableState.encoding = enc; - } - - Readable.prototype.collect = iconv._collect; - } - } - - // Remove iconv-lite Node primitive extensions. - iconv.undoExtendNodeEncodings = function undoExtendNodeEncodings() { - if (!iconv.supportsNodeEncodingsExtension) - return; - if (!original) - throw new Error("require('iconv-lite').undoExtendNodeEncodings(): Nothing to undo; extendNodeEncodings() is not called.") - - delete Buffer.isNativeEncoding; - - var SlowBuffer = __nccwpck_require__(64293).SlowBuffer; - - SlowBuffer.prototype.toString = original.SlowBufferToString; - SlowBuffer.prototype.write = original.SlowBufferWrite; - - Buffer.isEncoding = original.BufferIsEncoding; - Buffer.byteLength = original.BufferByteLength; - Buffer.prototype.toString = original.BufferToString; - Buffer.prototype.write = original.BufferWrite; - - if (iconv.supportsStreams) { - var Readable = __nccwpck_require__(92413).Readable; - - Readable.prototype.setEncoding = original.ReadableSetEncoding; - delete Readable.prototype.collect; - } - - original = undefined; - } -} - - -/***/ }), - -/***/ 19032: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -"use strict"; - - -// Some environments don't have global Buffer (e.g. React Native). -// Solution would be installing npm modules "buffer" and "stream" explicitly. -var Buffer = __nccwpck_require__(15118).Buffer; - -var bomHandling = __nccwpck_require__(67961), - iconv = module.exports; - -// All codecs and aliases are kept here, keyed by encoding name/alias. -// They are lazy loaded in `iconv.getCodec` from `encodings/index.js`. -iconv.encodings = null; - -// Characters emitted in case of error. -iconv.defaultCharUnicode = '�'; -iconv.defaultCharSingleByte = '?'; - -// Public API. -iconv.encode = function encode(str, encoding, options) { - str = "" + (str || ""); // Ensure string. - - var encoder = iconv.getEncoder(encoding, options); - - var res = encoder.write(str); - var trail = encoder.end(); - - return (trail && trail.length > 0) ? Buffer.concat([res, trail]) : res; -} - -iconv.decode = function decode(buf, encoding, options) { - if (typeof buf === 'string') { - if (!iconv.skipDecodeWarning) { - console.error('Iconv-lite warning: decode()-ing strings is deprecated. Refer to https://github.com/ashtuchkin/iconv-lite/wiki/Use-Buffers-when-decoding'); - iconv.skipDecodeWarning = true; - } - - buf = Buffer.from("" + (buf || ""), "binary"); // Ensure buffer. - } - - var decoder = iconv.getDecoder(encoding, options); - - var res = decoder.write(buf); - var trail = decoder.end(); - - return trail ? (res + trail) : res; -} - -iconv.encodingExists = function encodingExists(enc) { - try { - iconv.getCodec(enc); - return true; - } catch (e) { - return false; - } -} - -// Legacy aliases to convert functions -iconv.toEncoding = iconv.encode; -iconv.fromEncoding = iconv.decode; - -// Search for a codec in iconv.encodings. Cache codec data in iconv._codecDataCache. -iconv._codecDataCache = {}; -iconv.getCodec = function getCodec(encoding) { - if (!iconv.encodings) - iconv.encodings = __nccwpck_require__(82733); // Lazy load all encoding definitions. - - // Canonicalize encoding name: strip all non-alphanumeric chars and appended year. - var enc = iconv._canonicalizeEncoding(encoding); - - // Traverse iconv.encodings to find actual codec. - var codecOptions = {}; - while (true) { - var codec = iconv._codecDataCache[enc]; - if (codec) - return codec; - - var codecDef = iconv.encodings[enc]; - - switch (typeof codecDef) { - case "string": // Direct alias to other encoding. - enc = codecDef; - break; - - case "object": // Alias with options. Can be layered. - for (var key in codecDef) - codecOptions[key] = codecDef[key]; - - if (!codecOptions.encodingName) - codecOptions.encodingName = enc; - - enc = codecDef.type; - break; - - case "function": // Codec itself. - if (!codecOptions.encodingName) - codecOptions.encodingName = enc; - - // The codec function must load all tables and return object with .encoder and .decoder methods. - // It'll be called only once (for each different options object). - codec = new codecDef(codecOptions, iconv); - - iconv._codecDataCache[codecOptions.encodingName] = codec; // Save it to be reused later. - return codec; - - default: - throw new Error("Encoding not recognized: '" + encoding + "' (searched as: '"+enc+"')"); - } - } -} - -iconv._canonicalizeEncoding = function(encoding) { - // Canonicalize encoding name: strip all non-alphanumeric chars and appended year. - return (''+encoding).toLowerCase().replace(/:\d{4}$|[^0-9a-z]/g, ""); -} - -iconv.getEncoder = function getEncoder(encoding, options) { - var codec = iconv.getCodec(encoding), - encoder = new codec.encoder(options, codec); - - if (codec.bomAware && options && options.addBOM) - encoder = new bomHandling.PrependBOM(encoder, options); - - return encoder; -} - -iconv.getDecoder = function getDecoder(encoding, options) { - var codec = iconv.getCodec(encoding), - decoder = new codec.decoder(options, codec); - - if (codec.bomAware && !(options && options.stripBOM === false)) - decoder = new bomHandling.StripBOM(decoder, options); - - return decoder; -} - - -// Load extensions in Node. All of them are omitted in Browserify build via 'browser' field in package.json. -var nodeVer = typeof process !== 'undefined' && process.versions && process.versions.node; -if (nodeVer) { - - // Load streaming support in Node v0.10+ - var nodeVerArr = nodeVer.split(".").map(Number); - if (nodeVerArr[0] > 0 || nodeVerArr[1] >= 10) { - __nccwpck_require__(76409)(iconv); - } - - // Load Node primitive extensions. - __nccwpck_require__(30393)(iconv); -} - -if (false) {} - - -/***/ }), - -/***/ 76409: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -"use strict"; - - -var Buffer = __nccwpck_require__(64293).Buffer, - Transform = __nccwpck_require__(92413).Transform; - - -// == Exports ================================================================== -module.exports = function(iconv) { - - // Additional Public API. - iconv.encodeStream = function encodeStream(encoding, options) { - return new IconvLiteEncoderStream(iconv.getEncoder(encoding, options), options); - } - - iconv.decodeStream = function decodeStream(encoding, options) { - return new IconvLiteDecoderStream(iconv.getDecoder(encoding, options), options); - } - - iconv.supportsStreams = true; - - - // Not published yet. - iconv.IconvLiteEncoderStream = IconvLiteEncoderStream; - iconv.IconvLiteDecoderStream = IconvLiteDecoderStream; - iconv._collect = IconvLiteDecoderStream.prototype.collect; -}; - - -// == Encoder stream ======================================================= -function IconvLiteEncoderStream(conv, options) { - this.conv = conv; - options = options || {}; - options.decodeStrings = false; // We accept only strings, so we don't need to decode them. - Transform.call(this, options); -} - -IconvLiteEncoderStream.prototype = Object.create(Transform.prototype, { - constructor: { value: IconvLiteEncoderStream } -}); - -IconvLiteEncoderStream.prototype._transform = function(chunk, encoding, done) { - if (typeof chunk != 'string') - return done(new Error("Iconv encoding stream needs strings as its input.")); - try { - var res = this.conv.write(chunk); - if (res && res.length) this.push(res); - done(); - } - catch (e) { - done(e); - } -} - -IconvLiteEncoderStream.prototype._flush = function(done) { - try { - var res = this.conv.end(); - if (res && res.length) this.push(res); - done(); - } - catch (e) { - done(e); - } -} - -IconvLiteEncoderStream.prototype.collect = function(cb) { - var chunks = []; - this.on('error', cb); - this.on('data', function(chunk) { chunks.push(chunk); }); - this.on('end', function() { - cb(null, Buffer.concat(chunks)); - }); - return this; -} - - -// == Decoder stream ======================================================= -function IconvLiteDecoderStream(conv, options) { - this.conv = conv; - options = options || {}; - options.encoding = this.encoding = 'utf8'; // We output strings. - Transform.call(this, options); -} - -IconvLiteDecoderStream.prototype = Object.create(Transform.prototype, { - constructor: { value: IconvLiteDecoderStream } -}); - -IconvLiteDecoderStream.prototype._transform = function(chunk, encoding, done) { - if (!Buffer.isBuffer(chunk)) - return done(new Error("Iconv decoding stream needs buffers as its input.")); - try { - var res = this.conv.write(chunk); - if (res && res.length) this.push(res, this.encoding); - done(); - } - catch (e) { - done(e); - } -} - -IconvLiteDecoderStream.prototype._flush = function(done) { - try { - var res = this.conv.end(); - if (res && res.length) this.push(res, this.encoding); - done(); - } - catch (e) { - done(e); - } -} - -IconvLiteDecoderStream.prototype.collect = function(cb) { - var res = ''; - this.on('error', cb); - this.on('data', function(chunk) { res += chunk; }); - this.on('end', function() { - cb(null, res); - }); - return this; -} - - - -/***/ }), - -/***/ 44124: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -try { - var util = __nccwpck_require__(31669); - /* istanbul ignore next */ - if (typeof util.inherits !== 'function') throw ''; - module.exports = util.inherits; -} catch (e) { - /* istanbul ignore next */ - module.exports = __nccwpck_require__(8544); -} - - -/***/ }), - -/***/ 8544: -/***/ ((module) => { - -if (typeof Object.create === 'function') { - // implementation from standard node.js 'util' module - module.exports = function inherits(ctor, superCtor) { - if (superCtor) { - ctor.super_ = superCtor - ctor.prototype = Object.create(superCtor.prototype, { - constructor: { - value: ctor, - enumerable: false, - writable: true, - configurable: true - } - }) - } - }; -} else { - // old school shim for old browsers - module.exports = function inherits(ctor, superCtor) { - if (superCtor) { - ctor.super_ = superCtor - var TempCtor = function () {} - TempCtor.prototype = superCtor.prototype - ctor.prototype = new TempCtor() - ctor.prototype.constructor = ctor - } - } -} - - -/***/ }), - -/***/ 87547: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -var ip = exports; -var Buffer = __nccwpck_require__(64293).Buffer; -var os = __nccwpck_require__(12087); - -ip.toBuffer = function(ip, buff, offset) { - offset = ~~offset; - - var result; - - if (this.isV4Format(ip)) { - result = buff || new Buffer(offset + 4); - ip.split(/\./g).map(function(byte) { - result[offset++] = parseInt(byte, 10) & 0xff; - }); - } else if (this.isV6Format(ip)) { - var sections = ip.split(':', 8); - - var i; - for (i = 0; i < sections.length; i++) { - var isv4 = this.isV4Format(sections[i]); - var v4Buffer; - - if (isv4) { - v4Buffer = this.toBuffer(sections[i]); - sections[i] = v4Buffer.slice(0, 2).toString('hex'); - } - - if (v4Buffer && ++i < 8) { - sections.splice(i, 0, v4Buffer.slice(2, 4).toString('hex')); - } - } - - if (sections[0] === '') { - while (sections.length < 8) sections.unshift('0'); - } else if (sections[sections.length - 1] === '') { - while (sections.length < 8) sections.push('0'); - } else if (sections.length < 8) { - for (i = 0; i < sections.length && sections[i] !== ''; i++); - var argv = [ i, 1 ]; - for (i = 9 - sections.length; i > 0; i--) { - argv.push('0'); - } - sections.splice.apply(sections, argv); - } - - result = buff || new Buffer(offset + 16); - for (i = 0; i < sections.length; i++) { - var word = parseInt(sections[i], 16); - result[offset++] = (word >> 8) & 0xff; - result[offset++] = word & 0xff; - } - } - - if (!result) { - throw Error('Invalid ip address: ' + ip); - } - - return result; -}; - -ip.toString = function(buff, offset, length) { - offset = ~~offset; - length = length || (buff.length - offset); - - var result = []; - if (length === 4) { - // IPv4 - for (var i = 0; i < length; i++) { - result.push(buff[offset + i]); - } - result = result.join('.'); - } else if (length === 16) { - // IPv6 - for (var i = 0; i < length; i += 2) { - result.push(buff.readUInt16BE(offset + i).toString(16)); - } - result = result.join(':'); - result = result.replace(/(^|:)0(:0)*:0(:|$)/, '$1::$3'); - result = result.replace(/:{3,4}/, '::'); - } - - return result; -}; - -var ipv4Regex = /^(\d{1,3}\.){3,3}\d{1,3}$/; -var ipv6Regex = - /^(::)?(((\d{1,3}\.){3}(\d{1,3}){1})?([0-9a-f]){0,4}:{0,2}){1,8}(::)?$/i; - -ip.isV4Format = function(ip) { - return ipv4Regex.test(ip); -}; - -ip.isV6Format = function(ip) { - return ipv6Regex.test(ip); -}; -function _normalizeFamily(family) { - return family ? family.toLowerCase() : 'ipv4'; -} - -ip.fromPrefixLen = function(prefixlen, family) { - if (prefixlen > 32) { - family = 'ipv6'; - } else { - family = _normalizeFamily(family); - } - - var len = 4; - if (family === 'ipv6') { - len = 16; - } - var buff = new Buffer(len); - - for (var i = 0, n = buff.length; i < n; ++i) { - var bits = 8; - if (prefixlen < 8) { - bits = prefixlen; - } - prefixlen -= bits; - - buff[i] = ~(0xff >> bits) & 0xff; - } - - return ip.toString(buff); -}; - -ip.mask = function(addr, mask) { - addr = ip.toBuffer(addr); - mask = ip.toBuffer(mask); - - var result = new Buffer(Math.max(addr.length, mask.length)); - - var i = 0; - // Same protocol - do bitwise and - if (addr.length === mask.length) { - for (i = 0; i < addr.length; i++) { - result[i] = addr[i] & mask[i]; - } - } else if (mask.length === 4) { - // IPv6 address and IPv4 mask - // (Mask low bits) - for (i = 0; i < mask.length; i++) { - result[i] = addr[addr.length - 4 + i] & mask[i]; - } - } else { - // IPv6 mask and IPv4 addr - for (var i = 0; i < result.length - 6; i++) { - result[i] = 0; - } - - // ::ffff:ipv4 - result[10] = 0xff; - result[11] = 0xff; - for (i = 0; i < addr.length; i++) { - result[i + 12] = addr[i] & mask[i + 12]; - } - i = i + 12; - } - for (; i < result.length; i++) - result[i] = 0; - - return ip.toString(result); -}; - -ip.cidr = function(cidrString) { - var cidrParts = cidrString.split('/'); - - var addr = cidrParts[0]; - if (cidrParts.length !== 2) - throw new Error('invalid CIDR subnet: ' + addr); - - var mask = ip.fromPrefixLen(parseInt(cidrParts[1], 10)); - - return ip.mask(addr, mask); -}; - -ip.subnet = function(addr, mask) { - var networkAddress = ip.toLong(ip.mask(addr, mask)); - - // Calculate the mask's length. - var maskBuffer = ip.toBuffer(mask); - var maskLength = 0; - - for (var i = 0; i < maskBuffer.length; i++) { - if (maskBuffer[i] === 0xff) { - maskLength += 8; - } else { - var octet = maskBuffer[i] & 0xff; - while (octet) { - octet = (octet << 1) & 0xff; - maskLength++; - } - } - } - - var numberOfAddresses = Math.pow(2, 32 - maskLength); - - return { - networkAddress: ip.fromLong(networkAddress), - firstAddress: numberOfAddresses <= 2 ? - ip.fromLong(networkAddress) : - ip.fromLong(networkAddress + 1), - lastAddress: numberOfAddresses <= 2 ? - ip.fromLong(networkAddress + numberOfAddresses - 1) : - ip.fromLong(networkAddress + numberOfAddresses - 2), - broadcastAddress: ip.fromLong(networkAddress + numberOfAddresses - 1), - subnetMask: mask, - subnetMaskLength: maskLength, - numHosts: numberOfAddresses <= 2 ? - numberOfAddresses : numberOfAddresses - 2, - length: numberOfAddresses, - contains: function(other) { - return networkAddress === ip.toLong(ip.mask(other, mask)); - } - }; -}; - -ip.cidrSubnet = function(cidrString) { - var cidrParts = cidrString.split('/'); - - var addr = cidrParts[0]; - if (cidrParts.length !== 2) - throw new Error('invalid CIDR subnet: ' + addr); - - var mask = ip.fromPrefixLen(parseInt(cidrParts[1], 10)); - - return ip.subnet(addr, mask); -}; - -ip.not = function(addr) { - var buff = ip.toBuffer(addr); - for (var i = 0; i < buff.length; i++) { - buff[i] = 0xff ^ buff[i]; - } - return ip.toString(buff); -}; - -ip.or = function(a, b) { - a = ip.toBuffer(a); - b = ip.toBuffer(b); - - // same protocol - if (a.length === b.length) { - for (var i = 0; i < a.length; ++i) { - a[i] |= b[i]; - } - return ip.toString(a); - - // mixed protocols - } else { - var buff = a; - var other = b; - if (b.length > a.length) { - buff = b; - other = a; - } - - var offset = buff.length - other.length; - for (var i = offset; i < buff.length; ++i) { - buff[i] |= other[i - offset]; - } - - return ip.toString(buff); - } -}; - -ip.isEqual = function(a, b) { - a = ip.toBuffer(a); - b = ip.toBuffer(b); - - // Same protocol - if (a.length === b.length) { - for (var i = 0; i < a.length; i++) { - if (a[i] !== b[i]) return false; - } - return true; - } - - // Swap - if (b.length === 4) { - var t = b; - b = a; - a = t; - } - - // a - IPv4, b - IPv6 - for (var i = 0; i < 10; i++) { - if (b[i] !== 0) return false; - } - - var word = b.readUInt16BE(10); - if (word !== 0 && word !== 0xffff) return false; - - for (var i = 0; i < 4; i++) { - if (a[i] !== b[i + 12]) return false; - } - - return true; -}; - -ip.isPrivate = function(addr) { - return /^(::f{4}:)?10\.([0-9]{1,3})\.([0-9]{1,3})\.([0-9]{1,3})$/i - .test(addr) || - /^(::f{4}:)?192\.168\.([0-9]{1,3})\.([0-9]{1,3})$/i.test(addr) || - /^(::f{4}:)?172\.(1[6-9]|2\d|30|31)\.([0-9]{1,3})\.([0-9]{1,3})$/i - .test(addr) || - /^(::f{4}:)?127\.([0-9]{1,3})\.([0-9]{1,3})\.([0-9]{1,3})$/i.test(addr) || - /^(::f{4}:)?169\.254\.([0-9]{1,3})\.([0-9]{1,3})$/i.test(addr) || - /^f[cd][0-9a-f]{2}:/i.test(addr) || - /^fe80:/i.test(addr) || - /^::1$/.test(addr) || - /^::$/.test(addr); -}; - -ip.isPublic = function(addr) { - return !ip.isPrivate(addr); -}; - -ip.isLoopback = function(addr) { - return /^(::f{4}:)?127\.([0-9]{1,3})\.([0-9]{1,3})\.([0-9]{1,3})/ - .test(addr) || - /^fe80::1$/.test(addr) || - /^::1$/.test(addr) || - /^::$/.test(addr); -}; - -ip.loopback = function(family) { - // - // Default to `ipv4` - // - family = _normalizeFamily(family); - - if (family !== 'ipv4' && family !== 'ipv6') { - throw new Error('family must be ipv4 or ipv6'); - } - - return family === 'ipv4' ? '127.0.0.1' : 'fe80::1'; -}; - -// -// ### function address (name, family) -// #### @name {string|'public'|'private'} **Optional** Name or security -// of the network interface. -// #### @family {ipv4|ipv6} **Optional** IP family of the address (defaults -// to ipv4). -// -// Returns the address for the network interface on the current system with -// the specified `name`: -// * String: First `family` address of the interface. -// If not found see `undefined`. -// * 'public': the first public ip address of family. -// * 'private': the first private ip address of family. -// * undefined: First address with `ipv4` or loopback address `127.0.0.1`. -// -ip.address = function(name, family) { - var interfaces = os.networkInterfaces(); - var all; - - // - // Default to `ipv4` - // - family = _normalizeFamily(family); - - // - // If a specific network interface has been named, - // return the address. - // - if (name && name !== 'private' && name !== 'public') { - var res = interfaces[name].filter(function(details) { - var itemFamily = details.family.toLowerCase(); - return itemFamily === family; - }); - if (res.length === 0) - return undefined; - return res[0].address; - } - - var all = Object.keys(interfaces).map(function (nic) { - // - // Note: name will only be `public` or `private` - // when this is called. - // - var addresses = interfaces[nic].filter(function (details) { - details.family = details.family.toLowerCase(); - if (details.family !== family || ip.isLoopback(details.address)) { - return false; - } else if (!name) { - return true; - } - - return name === 'public' ? ip.isPrivate(details.address) : - ip.isPublic(details.address); - }); - - return addresses.length ? addresses[0].address : undefined; - }).filter(Boolean); - - return !all.length ? ip.loopback(family) : all[0]; -}; - -ip.toLong = function(ip) { - var ipl = 0; - ip.split('.').forEach(function(octet) { - ipl <<= 8; - ipl += parseInt(octet); - }); - return(ipl >>> 0); -}; - -ip.fromLong = function(ipl) { - return ((ipl >>> 24) + '.' + - (ipl >> 16 & 255) + '.' + - (ipl >> 8 & 255) + '.' + - (ipl & 255) ); -}; - - -/***/ }), - -/***/ 20893: -/***/ ((module) => { - -module.exports = Array.isArray || function (arr) { - return Object.prototype.toString.call(arr) == '[object Array]'; -}; - - -/***/ }), - -/***/ 26160: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -var _fs -try { - _fs = __nccwpck_require__(17017) -} catch (_) { - _fs = __nccwpck_require__(35747) -} - -function readFile (file, options, callback) { - if (callback == null) { - callback = options - options = {} - } - - if (typeof options === 'string') { - options = {encoding: options} - } - - options = options || {} - var fs = options.fs || _fs - - var shouldThrow = true - if ('throws' in options) { - shouldThrow = options.throws - } - - fs.readFile(file, options, function (err, data) { - if (err) return callback(err) - - data = stripBom(data) - - var obj - try { - obj = JSON.parse(data, options ? options.reviver : null) - } catch (err2) { - if (shouldThrow) { - err2.message = file + ': ' + err2.message - return callback(err2) - } else { - return callback(null, null) - } - } - - callback(null, obj) - }) -} - -function readFileSync (file, options) { - options = options || {} - if (typeof options === 'string') { - options = {encoding: options} - } - - var fs = options.fs || _fs - - var shouldThrow = true - if ('throws' in options) { - shouldThrow = options.throws - } - - try { - var content = fs.readFileSync(file, options) - content = stripBom(content) - return JSON.parse(content, options.reviver) - } catch (err) { - if (shouldThrow) { - err.message = file + ': ' + err.message - throw err - } else { - return null - } - } -} - -function stringify (obj, options) { - var spaces - var EOL = '\n' - if (typeof options === 'object' && options !== null) { - if (options.spaces) { - spaces = options.spaces - } - if (options.EOL) { - EOL = options.EOL - } - } - - var str = JSON.stringify(obj, options ? options.replacer : null, spaces) - - return str.replace(/\n/g, EOL) + EOL -} - -function writeFile (file, obj, options, callback) { - if (callback == null) { - callback = options - options = {} - } - options = options || {} - var fs = options.fs || _fs - - var str = '' - try { - str = stringify(obj, options) - } catch (err) { - // Need to return whether a callback was passed or not - if (callback) callback(err, null) - return - } - - fs.writeFile(file, str, options, callback) -} - -function writeFileSync (file, obj, options) { - options = options || {} - var fs = options.fs || _fs - - var str = stringify(obj, options) - // not sure if fs.writeFileSync returns anything, but just in case - return fs.writeFileSync(file, str, options) -} - -function stripBom (content) { - // we do this because JSON.parse would convert it to a utf8 string if encoding wasn't specified - if (Buffer.isBuffer(content)) content = content.toString('utf8') - content = content.replace(/^\uFEFF/, '') - return content -} - -var jsonfile = { - readFile: readFile, - readFileSync: readFileSync, - writeFile: writeFile, - writeFileSync: writeFileSync -} - -module.exports = jsonfile - - -/***/ }), - -/***/ 87466: -/***/ ((module) => { - -"use strict"; - - -module.exports = clone - -var getPrototypeOf = Object.getPrototypeOf || function (obj) { - return obj.__proto__ -} - -function clone (obj) { - if (obj === null || typeof obj !== 'object') - return obj - - if (obj instanceof Object) - var copy = { __proto__: getPrototypeOf(obj) } - else - var copy = Object.create(null) - - Object.getOwnPropertyNames(obj).forEach(function (key) { - Object.defineProperty(copy, key, Object.getOwnPropertyDescriptor(obj, key)) - }) - - return copy -} - - -/***/ }), - -/***/ 17017: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -var fs = __nccwpck_require__(35747) -var polyfills = __nccwpck_require__(36194) -var legacy = __nccwpck_require__(89217) -var clone = __nccwpck_require__(87466) - -var util = __nccwpck_require__(31669) - -/* istanbul ignore next - node 0.x polyfill */ -var gracefulQueue -var previousSymbol - -/* istanbul ignore else - node 0.x polyfill */ -if (typeof Symbol === 'function' && typeof Symbol.for === 'function') { - gracefulQueue = Symbol.for('graceful-fs.queue') - // This is used in testing by future versions - previousSymbol = Symbol.for('graceful-fs.previous') -} else { - gracefulQueue = '___graceful-fs.queue' - previousSymbol = '___graceful-fs.previous' -} - -function noop () {} - -function publishQueue(context, queue) { - Object.defineProperty(context, gracefulQueue, { - get: function() { - return queue - } - }) -} - -var debug = noop -if (util.debuglog) - debug = util.debuglog('gfs4') -else if (/\bgfs4\b/i.test(process.env.NODE_DEBUG || '')) - debug = function() { - var m = util.format.apply(util, arguments) - m = 'GFS4: ' + m.split(/\n/).join('\nGFS4: ') - console.error(m) - } - -// Once time initialization -if (!fs[gracefulQueue]) { - // This queue can be shared by multiple loaded instances - var queue = global[gracefulQueue] || [] - publishQueue(fs, queue) - - // Patch fs.close/closeSync to shared queue version, because we need - // to retry() whenever a close happens *anywhere* in the program. - // This is essential when multiple graceful-fs instances are - // in play at the same time. - fs.close = (function (fs$close) { - function close (fd, cb) { - return fs$close.call(fs, fd, function (err) { - // This function uses the graceful-fs shared queue - if (!err) { - resetQueue() - } - - if (typeof cb === 'function') - cb.apply(this, arguments) - }) - } - - Object.defineProperty(close, previousSymbol, { - value: fs$close - }) - return close - })(fs.close) - - fs.closeSync = (function (fs$closeSync) { - function closeSync (fd) { - // This function uses the graceful-fs shared queue - fs$closeSync.apply(fs, arguments) - resetQueue() - } - - Object.defineProperty(closeSync, previousSymbol, { - value: fs$closeSync - }) - return closeSync - })(fs.closeSync) - - if (/\bgfs4\b/i.test(process.env.NODE_DEBUG || '')) { - process.on('exit', function() { - debug(fs[gracefulQueue]) - __nccwpck_require__(42357).equal(fs[gracefulQueue].length, 0) - }) - } -} - -if (!global[gracefulQueue]) { - publishQueue(global, fs[gracefulQueue]); -} - -module.exports = patch(clone(fs)) -if (process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH && !fs.__patched) { - module.exports = patch(fs) - fs.__patched = true; -} - -function patch (fs) { - // Everything that references the open() function needs to be in here - polyfills(fs) - fs.gracefulify = patch - - fs.createReadStream = createReadStream - fs.createWriteStream = createWriteStream - var fs$readFile = fs.readFile - fs.readFile = readFile - function readFile (path, options, cb) { - if (typeof options === 'function') - cb = options, options = null - - return go$readFile(path, options, cb) - - function go$readFile (path, options, cb, startTime) { - return fs$readFile(path, options, function (err) { - if (err && (err.code === 'EMFILE' || err.code === 'ENFILE')) - enqueue([go$readFile, [path, options, cb], err, startTime || Date.now(), Date.now()]) - else { - if (typeof cb === 'function') - cb.apply(this, arguments) - } - }) - } - } - - var fs$writeFile = fs.writeFile - fs.writeFile = writeFile - function writeFile (path, data, options, cb) { - if (typeof options === 'function') - cb = options, options = null - - return go$writeFile(path, data, options, cb) - - function go$writeFile (path, data, options, cb, startTime) { - return fs$writeFile(path, data, options, function (err) { - if (err && (err.code === 'EMFILE' || err.code === 'ENFILE')) - enqueue([go$writeFile, [path, data, options, cb], err, startTime || Date.now(), Date.now()]) - else { - if (typeof cb === 'function') - cb.apply(this, arguments) - } - }) - } - } - - var fs$appendFile = fs.appendFile - if (fs$appendFile) - fs.appendFile = appendFile - function appendFile (path, data, options, cb) { - if (typeof options === 'function') - cb = options, options = null - - return go$appendFile(path, data, options, cb) - - function go$appendFile (path, data, options, cb, startTime) { - return fs$appendFile(path, data, options, function (err) { - if (err && (err.code === 'EMFILE' || err.code === 'ENFILE')) - enqueue([go$appendFile, [path, data, options, cb], err, startTime || Date.now(), Date.now()]) - else { - if (typeof cb === 'function') - cb.apply(this, arguments) - } - }) - } - } - - var fs$copyFile = fs.copyFile - if (fs$copyFile) - fs.copyFile = copyFile - function copyFile (src, dest, flags, cb) { - if (typeof flags === 'function') { - cb = flags - flags = 0 - } - return go$copyFile(src, dest, flags, cb) - - function go$copyFile (src, dest, flags, cb, startTime) { - return fs$copyFile(src, dest, flags, function (err) { - if (err && (err.code === 'EMFILE' || err.code === 'ENFILE')) - enqueue([go$copyFile, [src, dest, flags, cb], err, startTime || Date.now(), Date.now()]) - else { - if (typeof cb === 'function') - cb.apply(this, arguments) - } - }) - } - } - - var fs$readdir = fs.readdir - fs.readdir = readdir - function readdir (path, options, cb) { - if (typeof options === 'function') - cb = options, options = null - - return go$readdir(path, options, cb) - - function go$readdir (path, options, cb, startTime) { - return fs$readdir(path, options, function (err, files) { - if (err && (err.code === 'EMFILE' || err.code === 'ENFILE')) - enqueue([go$readdir, [path, options, cb], err, startTime || Date.now(), Date.now()]) - else { - if (files && files.sort) - files.sort() - - if (typeof cb === 'function') - cb.call(this, err, files) - } - }) - } - } - - if (process.version.substr(0, 4) === 'v0.8') { - var legStreams = legacy(fs) - ReadStream = legStreams.ReadStream - WriteStream = legStreams.WriteStream - } - - var fs$ReadStream = fs.ReadStream - if (fs$ReadStream) { - ReadStream.prototype = Object.create(fs$ReadStream.prototype) - ReadStream.prototype.open = ReadStream$open - } - - var fs$WriteStream = fs.WriteStream - if (fs$WriteStream) { - WriteStream.prototype = Object.create(fs$WriteStream.prototype) - WriteStream.prototype.open = WriteStream$open - } - - Object.defineProperty(fs, 'ReadStream', { - get: function () { - return ReadStream - }, - set: function (val) { - ReadStream = val - }, - enumerable: true, - configurable: true - }) - Object.defineProperty(fs, 'WriteStream', { - get: function () { - return WriteStream - }, - set: function (val) { - WriteStream = val - }, - enumerable: true, - configurable: true - }) - - // legacy names - var FileReadStream = ReadStream - Object.defineProperty(fs, 'FileReadStream', { - get: function () { - return FileReadStream - }, - set: function (val) { - FileReadStream = val - }, - enumerable: true, - configurable: true - }) - var FileWriteStream = WriteStream - Object.defineProperty(fs, 'FileWriteStream', { - get: function () { - return FileWriteStream - }, - set: function (val) { - FileWriteStream = val - }, - enumerable: true, - configurable: true - }) - - function ReadStream (path, options) { - if (this instanceof ReadStream) - return fs$ReadStream.apply(this, arguments), this - else - return ReadStream.apply(Object.create(ReadStream.prototype), arguments) - } - - function ReadStream$open () { - var that = this - open(that.path, that.flags, that.mode, function (err, fd) { - if (err) { - if (that.autoClose) - that.destroy() - - that.emit('error', err) - } else { - that.fd = fd - that.emit('open', fd) - that.read() - } - }) - } - - function WriteStream (path, options) { - if (this instanceof WriteStream) - return fs$WriteStream.apply(this, arguments), this - else - return WriteStream.apply(Object.create(WriteStream.prototype), arguments) - } - - function WriteStream$open () { - var that = this - open(that.path, that.flags, that.mode, function (err, fd) { - if (err) { - that.destroy() - that.emit('error', err) - } else { - that.fd = fd - that.emit('open', fd) - } - }) - } - - function createReadStream (path, options) { - return new fs.ReadStream(path, options) - } - - function createWriteStream (path, options) { - return new fs.WriteStream(path, options) - } - - var fs$open = fs.open - fs.open = open - function open (path, flags, mode, cb) { - if (typeof mode === 'function') - cb = mode, mode = null - - return go$open(path, flags, mode, cb) - - function go$open (path, flags, mode, cb, startTime) { - return fs$open(path, flags, mode, function (err, fd) { - if (err && (err.code === 'EMFILE' || err.code === 'ENFILE')) - enqueue([go$open, [path, flags, mode, cb], err, startTime || Date.now(), Date.now()]) - else { - if (typeof cb === 'function') - cb.apply(this, arguments) - } - }) - } - } - - return fs -} - -function enqueue (elem) { - debug('ENQUEUE', elem[0].name, elem[1]) - fs[gracefulQueue].push(elem) - retry() -} - -// keep track of the timeout between retry() calls -var retryTimer - -// reset the startTime and lastTime to now -// this resets the start of the 60 second overall timeout as well as the -// delay between attempts so that we'll retry these jobs sooner -function resetQueue () { - var now = Date.now() - for (var i = 0; i < fs[gracefulQueue].length; ++i) { - // entries that are only a length of 2 are from an older version, don't - // bother modifying those since they'll be retried anyway. - if (fs[gracefulQueue][i].length > 2) { - fs[gracefulQueue][i][3] = now // startTime - fs[gracefulQueue][i][4] = now // lastTime - } - } - // call retry to make sure we're actively processing the queue - retry() -} - -function retry () { - // clear the timer and remove it to help prevent unintended concurrency - clearTimeout(retryTimer) - retryTimer = undefined - - if (fs[gracefulQueue].length === 0) - return - - var elem = fs[gracefulQueue].shift() - var fn = elem[0] - var args = elem[1] - // these items may be unset if they were added by an older graceful-fs - var err = elem[2] - var startTime = elem[3] - var lastTime = elem[4] - - // if we don't have a startTime we have no way of knowing if we've waited - // long enough, so go ahead and retry this item now - if (startTime === undefined) { - debug('RETRY', fn.name, args) - fn.apply(null, args) - } else if (Date.now() - startTime >= 60000) { - // it's been more than 60 seconds total, bail now - debug('TIMEOUT', fn.name, args) - var cb = args.pop() - if (typeof cb === 'function') - cb.call(null, err) - } else { - // the amount of time between the last attempt and right now - var sinceAttempt = Date.now() - lastTime - // the amount of time between when we first tried, and when we last tried - // rounded up to at least 1 - var sinceStart = Math.max(lastTime - startTime, 1) - // backoff. wait longer than the total time we've been retrying, but only - // up to a maximum of 100ms - var desiredDelay = Math.min(sinceStart * 1.2, 100) - // it's been long enough since the last retry, do it again - if (sinceAttempt >= desiredDelay) { - debug('RETRY', fn.name, args) - fn.apply(null, args.concat([startTime])) - } else { - // if we can't do this job yet, push it to the end of the queue - // and let the next iteration check again - fs[gracefulQueue].push(elem) - } - } - - // schedule our next run if one isn't already scheduled - if (retryTimer === undefined) { - retryTimer = setTimeout(retry, 0) - } -} - - -/***/ }), - -/***/ 89217: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -var Stream = __nccwpck_require__(92413).Stream - -module.exports = legacy - -function legacy (fs) { - return { - ReadStream: ReadStream, - WriteStream: WriteStream - } - - function ReadStream (path, options) { - if (!(this instanceof ReadStream)) return new ReadStream(path, options); - - Stream.call(this); - - var self = this; - - this.path = path; - this.fd = null; - this.readable = true; - this.paused = false; - - this.flags = 'r'; - this.mode = 438; /*=0666*/ - this.bufferSize = 64 * 1024; - - options = options || {}; - - // Mixin options into this - var keys = Object.keys(options); - for (var index = 0, length = keys.length; index < length; index++) { - var key = keys[index]; - this[key] = options[key]; - } - - if (this.encoding) this.setEncoding(this.encoding); - - if (this.start !== undefined) { - if ('number' !== typeof this.start) { - throw TypeError('start must be a Number'); - } - if (this.end === undefined) { - this.end = Infinity; - } else if ('number' !== typeof this.end) { - throw TypeError('end must be a Number'); - } - - if (this.start > this.end) { - throw new Error('start must be <= end'); - } - - this.pos = this.start; - } - - if (this.fd !== null) { - process.nextTick(function() { - self._read(); - }); - return; - } - - fs.open(this.path, this.flags, this.mode, function (err, fd) { - if (err) { - self.emit('error', err); - self.readable = false; - return; - } - - self.fd = fd; - self.emit('open', fd); - self._read(); - }) - } - - function WriteStream (path, options) { - if (!(this instanceof WriteStream)) return new WriteStream(path, options); - - Stream.call(this); - - this.path = path; - this.fd = null; - this.writable = true; - - this.flags = 'w'; - this.encoding = 'binary'; - this.mode = 438; /*=0666*/ - this.bytesWritten = 0; - - options = options || {}; - - // Mixin options into this - var keys = Object.keys(options); - for (var index = 0, length = keys.length; index < length; index++) { - var key = keys[index]; - this[key] = options[key]; - } - - if (this.start !== undefined) { - if ('number' !== typeof this.start) { - throw TypeError('start must be a Number'); - } - if (this.start < 0) { - throw new Error('start must be >= zero'); - } - - this.pos = this.start; - } - - this.busy = false; - this._queue = []; - - if (this.fd === null) { - this._open = fs.open; - this._queue.push([this._open, this.path, this.flags, this.mode, undefined]); - this.flush(); - } - } -} - - -/***/ }), - -/***/ 36194: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -var constants = __nccwpck_require__(27619) - -var origCwd = process.cwd -var cwd = null - -var platform = process.env.GRACEFUL_FS_PLATFORM || process.platform - -process.cwd = function() { - if (!cwd) - cwd = origCwd.call(process) - return cwd -} -try { - process.cwd() -} catch (er) {} - -// This check is needed until node.js 12 is required -if (typeof process.chdir === 'function') { - var chdir = process.chdir - process.chdir = function (d) { - cwd = null - chdir.call(process, d) - } - if (Object.setPrototypeOf) Object.setPrototypeOf(process.chdir, chdir) -} - -module.exports = patch - -function patch (fs) { - // (re-)implement some things that are known busted or missing. - - // lchmod, broken prior to 0.6.2 - // back-port the fix here. - if (constants.hasOwnProperty('O_SYMLINK') && - process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)) { - patchLchmod(fs) - } - - // lutimes implementation, or no-op - if (!fs.lutimes) { - patchLutimes(fs) - } - - // https://github.com/isaacs/node-graceful-fs/issues/4 - // Chown should not fail on einval or eperm if non-root. - // It should not fail on enosys ever, as this just indicates - // that a fs doesn't support the intended operation. - - fs.chown = chownFix(fs.chown) - fs.fchown = chownFix(fs.fchown) - fs.lchown = chownFix(fs.lchown) - - fs.chmod = chmodFix(fs.chmod) - fs.fchmod = chmodFix(fs.fchmod) - fs.lchmod = chmodFix(fs.lchmod) - - fs.chownSync = chownFixSync(fs.chownSync) - fs.fchownSync = chownFixSync(fs.fchownSync) - fs.lchownSync = chownFixSync(fs.lchownSync) - - fs.chmodSync = chmodFixSync(fs.chmodSync) - fs.fchmodSync = chmodFixSync(fs.fchmodSync) - fs.lchmodSync = chmodFixSync(fs.lchmodSync) - - fs.stat = statFix(fs.stat) - fs.fstat = statFix(fs.fstat) - fs.lstat = statFix(fs.lstat) - - fs.statSync = statFixSync(fs.statSync) - fs.fstatSync = statFixSync(fs.fstatSync) - fs.lstatSync = statFixSync(fs.lstatSync) - - // if lchmod/lchown do not exist, then make them no-ops - if (!fs.lchmod) { - fs.lchmod = function (path, mode, cb) { - if (cb) process.nextTick(cb) - } - fs.lchmodSync = function () {} - } - if (!fs.lchown) { - fs.lchown = function (path, uid, gid, cb) { - if (cb) process.nextTick(cb) - } - fs.lchownSync = function () {} - } - - // on Windows, A/V software can lock the directory, causing this - // to fail with an EACCES or EPERM if the directory contains newly - // created files. Try again on failure, for up to 60 seconds. - - // Set the timeout this long because some Windows Anti-Virus, such as Parity - // bit9, may lock files for up to a minute, causing npm package install - // failures. Also, take care to yield the scheduler. Windows scheduling gives - // CPU to a busy looping process, which can cause the program causing the lock - // contention to be starved of CPU by node, so the contention doesn't resolve. - if (platform === "win32") { - fs.rename = (function (fs$rename) { return function (from, to, cb) { - var start = Date.now() - var backoff = 0; - fs$rename(from, to, function CB (er) { - if (er - && (er.code === "EACCES" || er.code === "EPERM") - && Date.now() - start < 60000) { - setTimeout(function() { - fs.stat(to, function (stater, st) { - if (stater && stater.code === "ENOENT") - fs$rename(from, to, CB); - else - cb(er) - }) - }, backoff) - if (backoff < 100) - backoff += 10; - return; - } - if (cb) cb(er) - }) - }})(fs.rename) - } - - // if read() returns EAGAIN, then just try it again. - fs.read = (function (fs$read) { - function read (fd, buffer, offset, length, position, callback_) { - var callback - if (callback_ && typeof callback_ === 'function') { - var eagCounter = 0 - callback = function (er, _, __) { - if (er && er.code === 'EAGAIN' && eagCounter < 10) { - eagCounter ++ - return fs$read.call(fs, fd, buffer, offset, length, position, callback) - } - callback_.apply(this, arguments) - } - } - return fs$read.call(fs, fd, buffer, offset, length, position, callback) - } - - // This ensures `util.promisify` works as it does for native `fs.read`. - if (Object.setPrototypeOf) Object.setPrototypeOf(read, fs$read) - return read - })(fs.read) - - fs.readSync = (function (fs$readSync) { return function (fd, buffer, offset, length, position) { - var eagCounter = 0 - while (true) { - try { - return fs$readSync.call(fs, fd, buffer, offset, length, position) - } catch (er) { - if (er.code === 'EAGAIN' && eagCounter < 10) { - eagCounter ++ - continue - } - throw er - } - } - }})(fs.readSync) - - function patchLchmod (fs) { - fs.lchmod = function (path, mode, callback) { - fs.open( path - , constants.O_WRONLY | constants.O_SYMLINK - , mode - , function (err, fd) { - if (err) { - if (callback) callback(err) - return - } - // prefer to return the chmod error, if one occurs, - // but still try to close, and report closing errors if they occur. - fs.fchmod(fd, mode, function (err) { - fs.close(fd, function(err2) { - if (callback) callback(err || err2) - }) - }) - }) - } - - fs.lchmodSync = function (path, mode) { - var fd = fs.openSync(path, constants.O_WRONLY | constants.O_SYMLINK, mode) - - // prefer to return the chmod error, if one occurs, - // but still try to close, and report closing errors if they occur. - var threw = true - var ret - try { - ret = fs.fchmodSync(fd, mode) - threw = false - } finally { - if (threw) { - try { - fs.closeSync(fd) - } catch (er) {} - } else { - fs.closeSync(fd) - } - } - return ret - } - } - - function patchLutimes (fs) { - if (constants.hasOwnProperty("O_SYMLINK")) { - fs.lutimes = function (path, at, mt, cb) { - fs.open(path, constants.O_SYMLINK, function (er, fd) { - if (er) { - if (cb) cb(er) - return - } - fs.futimes(fd, at, mt, function (er) { - fs.close(fd, function (er2) { - if (cb) cb(er || er2) - }) - }) - }) - } - - fs.lutimesSync = function (path, at, mt) { - var fd = fs.openSync(path, constants.O_SYMLINK) - var ret - var threw = true - try { - ret = fs.futimesSync(fd, at, mt) - threw = false - } finally { - if (threw) { - try { - fs.closeSync(fd) - } catch (er) {} - } else { - fs.closeSync(fd) - } - } - return ret - } - - } else { - fs.lutimes = function (_a, _b, _c, cb) { if (cb) process.nextTick(cb) } - fs.lutimesSync = function () {} - } - } - - function chmodFix (orig) { - if (!orig) return orig - return function (target, mode, cb) { - return orig.call(fs, target, mode, function (er) { - if (chownErOk(er)) er = null - if (cb) cb.apply(this, arguments) - }) - } - } - - function chmodFixSync (orig) { - if (!orig) return orig - return function (target, mode) { - try { - return orig.call(fs, target, mode) - } catch (er) { - if (!chownErOk(er)) throw er - } - } - } - - - function chownFix (orig) { - if (!orig) return orig - return function (target, uid, gid, cb) { - return orig.call(fs, target, uid, gid, function (er) { - if (chownErOk(er)) er = null - if (cb) cb.apply(this, arguments) - }) - } - } - - function chownFixSync (orig) { - if (!orig) return orig - return function (target, uid, gid) { - try { - return orig.call(fs, target, uid, gid) - } catch (er) { - if (!chownErOk(er)) throw er - } - } - } - - function statFix (orig) { - if (!orig) return orig - // Older versions of Node erroneously returned signed integers for - // uid + gid. - return function (target, options, cb) { - if (typeof options === 'function') { - cb = options - options = null - } - function callback (er, stats) { - if (stats) { - if (stats.uid < 0) stats.uid += 0x100000000 - if (stats.gid < 0) stats.gid += 0x100000000 - } - if (cb) cb.apply(this, arguments) - } - return options ? orig.call(fs, target, options, callback) - : orig.call(fs, target, callback) - } - } - - function statFixSync (orig) { - if (!orig) return orig - // Older versions of Node erroneously returned signed integers for - // uid + gid. - return function (target, options) { - var stats = options ? orig.call(fs, target, options) - : orig.call(fs, target) - if (stats) { - if (stats.uid < 0) stats.uid += 0x100000000 - if (stats.gid < 0) stats.gid += 0x100000000 - } - return stats; - } - } - - // ENOSYS means that the fs doesn't support the op. Just ignore - // that, because it doesn't matter. - // - // if there's no getuid, or if getuid() is something other - // than 0, and the error is EINVAL or EPERM, then just ignore - // it. - // - // This specific case is a silent failure in cp, install, tar, - // and most other unix tools that manage permissions. - // - // When running as root, or if other types of errors are - // encountered, then it's strict. - function chownErOk (er) { - if (!er) - return true - - if (er.code === "ENOSYS") - return true - - var nonroot = !process.getuid || process.getuid() !== 0 - if (nonroot) { - if (er.code === "EINVAL" || er.code === "EPERM") - return true - } - - return false - } -} - - -/***/ }), - -/***/ 7129: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -"use strict"; - - -// A linked list to keep track of recently-used-ness -const Yallist = __nccwpck_require__(40665) - -const MAX = Symbol('max') -const LENGTH = Symbol('length') -const LENGTH_CALCULATOR = Symbol('lengthCalculator') -const ALLOW_STALE = Symbol('allowStale') -const MAX_AGE = Symbol('maxAge') -const DISPOSE = Symbol('dispose') -const NO_DISPOSE_ON_SET = Symbol('noDisposeOnSet') -const LRU_LIST = Symbol('lruList') -const CACHE = Symbol('cache') -const UPDATE_AGE_ON_GET = Symbol('updateAgeOnGet') - -const naiveLength = () => 1 - -// lruList is a yallist where the head is the youngest -// item, and the tail is the oldest. the list contains the Hit -// objects as the entries. -// Each Hit object has a reference to its Yallist.Node. This -// never changes. -// -// cache is a Map (or PseudoMap) that matches the keys to -// the Yallist.Node object. -class LRUCache { - constructor (options) { - if (typeof options === 'number') - options = { max: options } - - if (!options) - options = {} - - if (options.max && (typeof options.max !== 'number' || options.max < 0)) - throw new TypeError('max must be a non-negative number') - // Kind of weird to have a default max of Infinity, but oh well. - const max = this[MAX] = options.max || Infinity - - const lc = options.length || naiveLength - this[LENGTH_CALCULATOR] = (typeof lc !== 'function') ? naiveLength : lc - this[ALLOW_STALE] = options.stale || false - if (options.maxAge && typeof options.maxAge !== 'number') - throw new TypeError('maxAge must be a number') - this[MAX_AGE] = options.maxAge || 0 - this[DISPOSE] = options.dispose - this[NO_DISPOSE_ON_SET] = options.noDisposeOnSet || false - this[UPDATE_AGE_ON_GET] = options.updateAgeOnGet || false - this.reset() - } - - // resize the cache when the max changes. - set max (mL) { - if (typeof mL !== 'number' || mL < 0) - throw new TypeError('max must be a non-negative number') - - this[MAX] = mL || Infinity - trim(this) - } - get max () { - return this[MAX] - } - - set allowStale (allowStale) { - this[ALLOW_STALE] = !!allowStale - } - get allowStale () { - return this[ALLOW_STALE] - } - - set maxAge (mA) { - if (typeof mA !== 'number') - throw new TypeError('maxAge must be a non-negative number') - - this[MAX_AGE] = mA - trim(this) - } - get maxAge () { - return this[MAX_AGE] - } - - // resize the cache when the lengthCalculator changes. - set lengthCalculator (lC) { - if (typeof lC !== 'function') - lC = naiveLength - - if (lC !== this[LENGTH_CALCULATOR]) { - this[LENGTH_CALCULATOR] = lC - this[LENGTH] = 0 - this[LRU_LIST].forEach(hit => { - hit.length = this[LENGTH_CALCULATOR](hit.value, hit.key) - this[LENGTH] += hit.length - }) - } - trim(this) - } - get lengthCalculator () { return this[LENGTH_CALCULATOR] } - - get length () { return this[LENGTH] } - get itemCount () { return this[LRU_LIST].length } - - rforEach (fn, thisp) { - thisp = thisp || this - for (let walker = this[LRU_LIST].tail; walker !== null;) { - const prev = walker.prev - forEachStep(this, fn, walker, thisp) - walker = prev - } - } - - forEach (fn, thisp) { - thisp = thisp || this - for (let walker = this[LRU_LIST].head; walker !== null;) { - const next = walker.next - forEachStep(this, fn, walker, thisp) - walker = next - } - } - - keys () { - return this[LRU_LIST].toArray().map(k => k.key) - } - - values () { - return this[LRU_LIST].toArray().map(k => k.value) - } - - reset () { - if (this[DISPOSE] && - this[LRU_LIST] && - this[LRU_LIST].length) { - this[LRU_LIST].forEach(hit => this[DISPOSE](hit.key, hit.value)) - } - - this[CACHE] = new Map() // hash of items by key - this[LRU_LIST] = new Yallist() // list of items in order of use recency - this[LENGTH] = 0 // length of items in the list - } - - dump () { - return this[LRU_LIST].map(hit => - isStale(this, hit) ? false : { - k: hit.key, - v: hit.value, - e: hit.now + (hit.maxAge || 0) - }).toArray().filter(h => h) - } - - dumpLru () { - return this[LRU_LIST] - } - - set (key, value, maxAge) { - maxAge = maxAge || this[MAX_AGE] - - if (maxAge && typeof maxAge !== 'number') - throw new TypeError('maxAge must be a number') - - const now = maxAge ? Date.now() : 0 - const len = this[LENGTH_CALCULATOR](value, key) - - if (this[CACHE].has(key)) { - if (len > this[MAX]) { - del(this, this[CACHE].get(key)) - return false - } - - const node = this[CACHE].get(key) - const item = node.value - - // dispose of the old one before overwriting - // split out into 2 ifs for better coverage tracking - if (this[DISPOSE]) { - if (!this[NO_DISPOSE_ON_SET]) - this[DISPOSE](key, item.value) - } - - item.now = now - item.maxAge = maxAge - item.value = value - this[LENGTH] += len - item.length - item.length = len - this.get(key) - trim(this) - return true - } - - const hit = new Entry(key, value, len, now, maxAge) - - // oversized objects fall out of cache automatically. - if (hit.length > this[MAX]) { - if (this[DISPOSE]) - this[DISPOSE](key, value) - - return false - } - - this[LENGTH] += hit.length - this[LRU_LIST].unshift(hit) - this[CACHE].set(key, this[LRU_LIST].head) - trim(this) - return true - } - - has (key) { - if (!this[CACHE].has(key)) return false - const hit = this[CACHE].get(key).value - return !isStale(this, hit) - } - - get (key) { - return get(this, key, true) - } - - peek (key) { - return get(this, key, false) - } - - pop () { - const node = this[LRU_LIST].tail - if (!node) - return null - - del(this, node) - return node.value - } - - del (key) { - del(this, this[CACHE].get(key)) - } - - load (arr) { - // reset the cache - this.reset() - - const now = Date.now() - // A previous serialized cache has the most recent items first - for (let l = arr.length - 1; l >= 0; l--) { - const hit = arr[l] - const expiresAt = hit.e || 0 - if (expiresAt === 0) - // the item was created without expiration in a non aged cache - this.set(hit.k, hit.v) - else { - const maxAge = expiresAt - now - // dont add already expired items - if (maxAge > 0) { - this.set(hit.k, hit.v, maxAge) - } - } - } - } - - prune () { - this[CACHE].forEach((value, key) => get(this, key, false)) - } -} - -const get = (self, key, doUse) => { - const node = self[CACHE].get(key) - if (node) { - const hit = node.value - if (isStale(self, hit)) { - del(self, node) - if (!self[ALLOW_STALE]) - return undefined - } else { - if (doUse) { - if (self[UPDATE_AGE_ON_GET]) - node.value.now = Date.now() - self[LRU_LIST].unshiftNode(node) - } - } - return hit.value - } -} - -const isStale = (self, hit) => { - if (!hit || (!hit.maxAge && !self[MAX_AGE])) - return false - - const diff = Date.now() - hit.now - return hit.maxAge ? diff > hit.maxAge - : self[MAX_AGE] && (diff > self[MAX_AGE]) -} - -const trim = self => { - if (self[LENGTH] > self[MAX]) { - for (let walker = self[LRU_LIST].tail; - self[LENGTH] > self[MAX] && walker !== null;) { - // We know that we're about to delete this one, and also - // what the next least recently used key will be, so just - // go ahead and set it now. - const prev = walker.prev - del(self, walker) - walker = prev - } - } -} - -const del = (self, node) => { - if (node) { - const hit = node.value - if (self[DISPOSE]) - self[DISPOSE](hit.key, hit.value) - - self[LENGTH] -= hit.length - self[CACHE].delete(hit.key) - self[LRU_LIST].removeNode(node) - } -} - -class Entry { - constructor (key, value, length, now, maxAge) { - this.key = key - this.value = value - this.length = length - this.now = now - this.maxAge = maxAge || 0 - } -} - -const forEachStep = (self, fn, node, thisp) => { - let hit = node.value - if (isStale(self, hit)) { - del(self, node) - if (!self[ALLOW_STALE]) - hit = undefined - } - if (hit) - fn.call(thisp, hit.value, hit.key, self) -} - -module.exports = LRUCache - - -/***/ }), - -/***/ 80900: -/***/ ((module) => { - -/** - * Helpers. - */ - -var s = 1000; -var m = s * 60; -var h = m * 60; -var d = h * 24; -var w = d * 7; -var y = d * 365.25; - -/** - * Parse or format the given `val`. - * - * Options: - * - * - `long` verbose formatting [false] - * - * @param {String|Number} val - * @param {Object} [options] - * @throws {Error} throw an error if val is not a non-empty string or a number - * @return {String|Number} - * @api public - */ - -module.exports = function(val, options) { - options = options || {}; - var type = typeof val; - if (type === 'string' && val.length > 0) { - return parse(val); - } else if (type === 'number' && isFinite(val)) { - return options.long ? fmtLong(val) : fmtShort(val); - } - throw new Error( - 'val is not a non-empty string or a valid number. val=' + - JSON.stringify(val) - ); -}; - -/** - * Parse the given `str` and return milliseconds. - * - * @param {String} str - * @return {Number} - * @api private - */ - -function parse(str) { - str = String(str); - if (str.length > 100) { - return; - } - var match = /^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec( - str - ); - if (!match) { - return; - } - var n = parseFloat(match[1]); - var type = (match[2] || 'ms').toLowerCase(); - switch (type) { - case 'years': - case 'year': - case 'yrs': - case 'yr': - case 'y': - return n * y; - case 'weeks': - case 'week': - case 'w': - return n * w; - case 'days': - case 'day': - case 'd': - return n * d; - case 'hours': - case 'hour': - case 'hrs': - case 'hr': - case 'h': - return n * h; - case 'minutes': - case 'minute': - case 'mins': - case 'min': - case 'm': - return n * m; - case 'seconds': - case 'second': - case 'secs': - case 'sec': - case 's': - return n * s; - case 'milliseconds': - case 'millisecond': - case 'msecs': - case 'msec': - case 'ms': - return n; - default: - return undefined; - } -} - -/** - * Short format for `ms`. - * - * @param {Number} ms - * @return {String} - * @api private - */ - -function fmtShort(ms) { - var msAbs = Math.abs(ms); - if (msAbs >= d) { - return Math.round(ms / d) + 'd'; - } - if (msAbs >= h) { - return Math.round(ms / h) + 'h'; - } - if (msAbs >= m) { - return Math.round(ms / m) + 'm'; - } - if (msAbs >= s) { - return Math.round(ms / s) + 's'; - } - return ms + 'ms'; -} - -/** - * Long format for `ms`. - * - * @param {Number} ms - * @return {String} - * @api private - */ - -function fmtLong(ms) { - var msAbs = Math.abs(ms); - if (msAbs >= d) { - return plural(ms, msAbs, d, 'day'); - } - if (msAbs >= h) { - return plural(ms, msAbs, h, 'hour'); - } - if (msAbs >= m) { - return plural(ms, msAbs, m, 'minute'); - } - if (msAbs >= s) { - return plural(ms, msAbs, s, 'second'); - } - return ms + ' ms'; -} - -/** - * Pluralization helper. - */ - -function plural(ms, msAbs, n, name) { - var isPlural = msAbs >= n * 1.5; - return Math.round(ms / n) + ' ' + name + (isPlural ? 's' : ''); -} - - -/***/ }), - -/***/ 11494: -/***/ (function(__unused_webpack_module, exports) { - -// Generated by CoffeeScript 1.12.7 -(function() { - var Netmask, atob, chr, chr0, chrA, chra, ip2long, long2ip; - - long2ip = function(long) { - var a, b, c, d; - a = (long & (0xff << 24)) >>> 24; - b = (long & (0xff << 16)) >>> 16; - c = (long & (0xff << 8)) >>> 8; - d = long & 0xff; - return [a, b, c, d].join('.'); - }; - - ip2long = function(ip) { - var b, c, i, j, n, ref; - b = []; - for (i = j = 0; j <= 3; i = ++j) { - if (ip.length === 0) { - break; - } - if (i > 0) { - if (ip[0] !== '.') { - throw new Error('Invalid IP'); - } - ip = ip.substring(1); - } - ref = atob(ip), n = ref[0], c = ref[1]; - ip = ip.substring(c); - b.push(n); - } - if (ip.length !== 0) { - throw new Error('Invalid IP'); - } - switch (b.length) { - case 1: - if (b[0] > 0xFFFFFFFF) { - throw new Error('Invalid IP'); - } - return b[0] >>> 0; - case 2: - if (b[0] > 0xFF || b[1] > 0xFFFFFF) { - throw new Error('Invalid IP'); - } - return (b[0] << 24 | b[1]) >>> 0; - case 3: - if (b[0] > 0xFF || b[1] > 0xFF || b[2] > 0xFFFF) { - throw new Error('Invalid IP'); - } - return (b[0] << 24 | b[1] << 16 | b[2]) >>> 0; - case 4: - if (b[0] > 0xFF || b[1] > 0xFF || b[2] > 0xFF || b[3] > 0xFF) { - throw new Error('Invalid IP'); - } - return (b[0] << 24 | b[1] << 16 | b[2] << 8 | b[3]) >>> 0; - default: - throw new Error('Invalid IP'); - } - }; - - chr = function(b) { - return b.charCodeAt(0); - }; - - chr0 = chr('0'); - - chra = chr('a'); - - chrA = chr('A'); - - atob = function(s) { - var base, dmax, i, n, start; - n = 0; - base = 10; - dmax = '9'; - i = 0; - if (s.length > 1 && s[i] === '0') { - if (s[i + 1] === 'x' || s[i + 1] === 'X') { - i += 2; - base = 16; - } else if ('0' <= s[i + 1] && s[i + 1] <= '9') { - i++; - base = 8; - dmax = '7'; - } - } - start = i; - while (i < s.length) { - if ('0' <= s[i] && s[i] <= dmax) { - n = (n * base + (chr(s[i]) - chr0)) >>> 0; - } else if (base === 16) { - if ('a' <= s[i] && s[i] <= 'f') { - n = (n * base + (10 + chr(s[i]) - chra)) >>> 0; - } else if ('A' <= s[i] && s[i] <= 'F') { - n = (n * base + (10 + chr(s[i]) - chrA)) >>> 0; - } else { - break; - } - } else { - break; - } - if (n > 0xFFFFFFFF) { - throw new Error('too large'); - } - i++; - } - if (i === start) { - throw new Error('empty octet'); - } - return [n, i]; - }; - - Netmask = (function() { - function Netmask(net, mask) { - var error, i, j, ref; - if (typeof net !== 'string') { - throw new Error("Missing `net' parameter"); - } - if (!mask) { - ref = net.split('/', 2), net = ref[0], mask = ref[1]; - } - if (!mask) { - mask = 32; - } - if (typeof mask === 'string' && mask.indexOf('.') > -1) { - try { - this.maskLong = ip2long(mask); - } catch (error1) { - error = error1; - throw new Error("Invalid mask: " + mask); - } - for (i = j = 32; j >= 0; i = --j) { - if (this.maskLong === (0xffffffff << (32 - i)) >>> 0) { - this.bitmask = i; - break; - } - } - } else if (mask || mask === 0) { - this.bitmask = parseInt(mask, 10); - this.maskLong = 0; - if (this.bitmask > 0) { - this.maskLong = (0xffffffff << (32 - this.bitmask)) >>> 0; - } - } else { - throw new Error("Invalid mask: empty"); - } - try { - this.netLong = (ip2long(net) & this.maskLong) >>> 0; - } catch (error1) { - error = error1; - throw new Error("Invalid net address: " + net); - } - if (!(this.bitmask <= 32)) { - throw new Error("Invalid mask for ip4: " + mask); - } - this.size = Math.pow(2, 32 - this.bitmask); - this.base = long2ip(this.netLong); - this.mask = long2ip(this.maskLong); - this.hostmask = long2ip(~this.maskLong); - this.first = this.bitmask <= 30 ? long2ip(this.netLong + 1) : this.base; - this.last = this.bitmask <= 30 ? long2ip(this.netLong + this.size - 2) : long2ip(this.netLong + this.size - 1); - this.broadcast = this.bitmask <= 30 ? long2ip(this.netLong + this.size - 1) : void 0; - } - - Netmask.prototype.contains = function(ip) { - if (typeof ip === 'string' && (ip.indexOf('/') > 0 || ip.split('.').length !== 4)) { - ip = new Netmask(ip); - } - if (ip instanceof Netmask) { - return this.contains(ip.base) && this.contains(ip.broadcast || ip.last); - } else { - return (ip2long(ip) & this.maskLong) >>> 0 === (this.netLong & this.maskLong) >>> 0; - } - }; - - Netmask.prototype.next = function(count) { - if (count == null) { - count = 1; - } - return new Netmask(long2ip(this.netLong + (this.size * count)), this.mask); - }; - - Netmask.prototype.forEach = function(fn) { - var index, lastLong, long; - long = ip2long(this.first); - lastLong = ip2long(this.last); - index = 0; - while (long <= lastLong) { - fn(long2ip(long), long, index); - index++; - long++; - } - }; - - Netmask.prototype.toString = function() { - return this.base + "/" + this.bitmask; - }; - - return Netmask; - - })(); - - exports.ip2long = ip2long; - - exports.long2ip = long2ip; - - exports.Netmask = Netmask; - -}).call(this); - - -/***/ }), - -/***/ 18476: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - -var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { - function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } - return new (P || (P = Promise))(function (resolve, reject) { - function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } - function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } - function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } - step((generator = generator.apply(thisArg, _arguments || [])).next()); - }); -}; -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; -Object.defineProperty(exports, "__esModule", ({ value: true })); -const net_1 = __importDefault(__nccwpck_require__(11631)); -const tls_1 = __importDefault(__nccwpck_require__(4016)); -const once_1 = __importDefault(__nccwpck_require__(81040)); -const crypto_1 = __importDefault(__nccwpck_require__(76417)); -const get_uri_1 = __importDefault(__nccwpck_require__(11792)); -const debug_1 = __importDefault(__nccwpck_require__(38237)); -const raw_body_1 = __importDefault(__nccwpck_require__(47742)); -const url_1 = __nccwpck_require__(78835); -const http_proxy_agent_1 = __nccwpck_require__(23764); -const https_proxy_agent_1 = __nccwpck_require__(77219); -const socks_proxy_agent_1 = __nccwpck_require__(25038); -const pac_resolver_1 = __importDefault(__nccwpck_require__(37055)); -const agent_base_1 = __nccwpck_require__(49690); -const debug = debug_1.default('pac-proxy-agent'); -/** - * The `PacProxyAgent` class. - * - * A few different "protocol" modes are supported (supported protocols are - * backed by the `get-uri` module): - * - * - "pac+data", "data" - refers to an embedded "data:" URI - * - "pac+file", "file" - refers to a local file - * - "pac+ftp", "ftp" - refers to a file located on an FTP server - * - "pac+http", "http" - refers to an HTTP endpoint - * - "pac+https", "https" - refers to an HTTPS endpoint - * - * @api public - */ -class PacProxyAgent extends agent_base_1.Agent { - constructor(uri, opts = {}) { - super(opts); - this.clearResolverPromise = () => { - this.resolverPromise = undefined; - }; - debug('Creating PacProxyAgent with URI %o and options %o', uri, opts); - // Strip the "pac+" prefix - this.uri = uri.replace(/^pac\+/i, ''); - this.opts = Object.assign({}, opts); - this.cache = undefined; - this.resolver = undefined; - this.resolverHash = ''; - this.resolverPromise = undefined; - // For `PacResolver` - if (!this.opts.filename) { - this.opts.filename = uri; - } - } - /** - * Loads the PAC proxy file from the source if necessary, and returns - * a generated `FindProxyForURL()` resolver function to use. - * - * @api private - */ - getResolver() { - if (!this.resolverPromise) { - this.resolverPromise = this.loadResolver(); - this.resolverPromise.then(this.clearResolverPromise, this.clearResolverPromise); - } - return this.resolverPromise; - } - loadResolver() { - return __awaiter(this, void 0, void 0, function* () { - try { - // (Re)load the contents of the PAC file URI - const code = yield this.loadPacFile(); - // Create a sha1 hash of the JS code - const hash = crypto_1.default - .createHash('sha1') - .update(code) - .digest('hex'); - if (this.resolver && this.resolverHash === hash) { - debug('Same sha1 hash for code - contents have not changed, reusing previous proxy resolver'); - return this.resolver; - } - // Cache the resolver - debug('Creating new proxy resolver instance'); - this.resolver = pac_resolver_1.default(code, this.opts); - // Store that sha1 hash for future comparison purposes - this.resolverHash = hash; - return this.resolver; - } - catch (err) { - if (this.resolver && err.code === 'ENOTMODIFIED') { - debug('Got ENOTMODIFIED response, reusing previous proxy resolver'); - return this.resolver; - } - throw err; - } - }); - } - /** - * Loads the contents of the PAC proxy file. - * - * @api private - */ - loadPacFile() { - return __awaiter(this, void 0, void 0, function* () { - debug('Loading PAC file: %o', this.uri); - const rs = yield get_uri_1.default(this.uri, { cache: this.cache }); - debug('Got `Readable` instance for URI'); - this.cache = rs; - const buf = yield raw_body_1.default(rs); - debug('Read %o byte PAC file from URI', buf.length); - return buf.toString('utf8'); - }); - } - /** - * Called when the node-core HTTP client library is creating a new HTTP request. - * - * @api protected - */ - callback(req, opts) { - return __awaiter(this, void 0, void 0, function* () { - const { secureEndpoint } = opts; - // First, get a generated `FindProxyForURL()` function, - // either cached or retrieved from the source - const resolver = yield this.getResolver(); - // Calculate the `url` parameter - const defaultPort = secureEndpoint ? 443 : 80; - let path = req.path; - let search = null; - const firstQuestion = path.indexOf('?'); - if (firstQuestion !== -1) { - search = path.substring(firstQuestion); - path = path.substring(0, firstQuestion); - } - const urlOpts = Object.assign(Object.assign({}, opts), { protocol: secureEndpoint ? 'https:' : 'http:', pathname: path, search, - // need to use `hostname` instead of `host` otherwise `port` is ignored - hostname: opts.host, host: null, href: null, - // set `port` to null when it is the protocol default port (80 / 443) - port: defaultPort === opts.port ? null : opts.port }); - const url = url_1.format(urlOpts); - debug('url: %o', url); - let result = yield resolver(url); - // Default to "DIRECT" if a falsey value was returned (or nothing) - if (!result) { - result = 'DIRECT'; - } - const proxies = String(result) - .trim() - .split(/\s*;\s*/g) - .filter(Boolean); - if (this.opts.fallbackToDirect && !proxies.includes('DIRECT')) { - proxies.push('DIRECT'); - } - for (const proxy of proxies) { - let agent = null; - let socket = null; - const [type, target] = proxy.split(/\s+/); - debug('Attempting to use proxy: %o', proxy); - if (type === 'DIRECT') { - // Direct connection to the destination endpoint - socket = secureEndpoint ? tls_1.default.connect(opts) : net_1.default.connect(opts); - } - else if (type === 'SOCKS' || type === 'SOCKS5') { - // Use a SOCKSv5h proxy - agent = new socks_proxy_agent_1.SocksProxyAgent(`socks://${target}`); - } - else if (type === 'SOCKS4') { - // Use a SOCKSv4a proxy - agent = new socks_proxy_agent_1.SocksProxyAgent(`socks4a://${target}`); - } - else if (type === 'PROXY' || - type === 'HTTP' || - type === 'HTTPS') { - // Use an HTTP or HTTPS proxy - // http://dev.chromium.org/developers/design-documents/secure-web-proxy - const proxyURL = `${type === 'HTTPS' ? 'https' : 'http'}://${target}`; - const proxyOpts = Object.assign(Object.assign({}, this.opts), url_1.parse(proxyURL)); - if (secureEndpoint) { - agent = new https_proxy_agent_1.HttpsProxyAgent(proxyOpts); - } - else { - agent = new http_proxy_agent_1.HttpProxyAgent(proxyOpts); - } - } - try { - if (socket) { - // "DIRECT" connection, wait for connection confirmation - yield once_1.default(socket, 'connect'); - req.emit('proxy', { proxy, socket }); - return socket; - } - if (agent) { - const s = yield agent.callback(req, opts); - req.emit('proxy', { proxy, socket: s }); - return s; - } - throw new Error(`Could not determine proxy type for: ${proxy}`); - } - catch (err) { - debug('Got error for proxy %o: %o', proxy, err); - req.emit('proxy', { proxy, error: err }); - } - } - throw new Error(`Failed to establish a socket connection to proxies: ${JSON.stringify(proxies)}`); - }); - } -} -exports.default = PacProxyAgent; -//# sourceMappingURL=agent.js.map - -/***/ }), - -/***/ 26338: -/***/ (function(module, __unused_webpack_exports, __nccwpck_require__) { - -"use strict"; - -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; -const get_uri_1 = __importDefault(__nccwpck_require__(11792)); -const url_1 = __nccwpck_require__(78835); -const agent_1 = __importDefault(__nccwpck_require__(18476)); -function createPacProxyAgent(uri, opts) { - // was an options object passed in first? - if (typeof uri === 'object') { - opts = uri; - // result of a url.parse() call? - if (opts.href) { - if (opts.path && !opts.pathname) { - opts.pathname = opts.path; - } - opts.slashes = true; - uri = url_1.format(opts); - } - else { - uri = opts.uri; - } - } - if (!opts) { - opts = {}; - } - if (typeof uri !== 'string') { - throw new TypeError('a PAC file URI must be specified!'); - } - return new agent_1.default(uri, opts); -} -(function (createPacProxyAgent) { - createPacProxyAgent.PacProxyAgent = agent_1.default; - /** - * Supported "protocols". Delegates out to the `get-uri` module. - */ - createPacProxyAgent.protocols = Object.keys(get_uri_1.default.protocols); - createPacProxyAgent.prototype = agent_1.default.prototype; -})(createPacProxyAgent || (createPacProxyAgent = {})); -module.exports = createPacProxyAgent; -//# sourceMappingURL=index.js.map - -/***/ }), - -/***/ 14001: -/***/ ((__unused_webpack_module, exports) => { - -"use strict"; - -/** - * If only a single value is specified (from each category: day, month, year), the - * function returns a true value only on days that match that specification. If - * both values are specified, the result is true between those times, including - * bounds. - * - * Even though the examples don't show, the "GMT" parameter can be specified - * in any of the 9 different call profiles, always as the last parameter. - * - * Examples: - * - * ``` js - * dateRange(1) - * true on the first day of each month, local timezone. - * - * dateRange(1, "GMT") - * true on the first day of each month, GMT timezone. - * - * dateRange(1, 15) - * true on the first half of each month. - * - * dateRange(24, "DEC") - * true on 24th of December each year. - * - * dateRange(24, "DEC", 1995) - * true on 24th of December, 1995. - * - * dateRange("JAN", "MAR") - * true on the first quarter of the year. - * - * dateRange(1, "JUN", 15, "AUG") - * true from June 1st until August 15th, each year (including June 1st and August - * 15th). - * - * dateRange(1, "JUN", 15, 1995, "AUG", 1995) - * true from June 1st, 1995, until August 15th, same year. - * - * dateRange("OCT", 1995, "MAR", 1996) - * true from October 1995 until March 1996 (including the entire month of October - * 1995 and March 1996). - * - * dateRange(1995) - * true during the entire year 1995. - * - * dateRange(1995, 1997) - * true from beginning of year 1995 until the end of year 1997. - * ``` - * - * dateRange(day) - * dateRange(day1, day2) - * dateRange(mon) - * dateRange(month1, month2) - * dateRange(year) - * dateRange(year1, year2) - * dateRange(day1, month1, day2, month2) - * dateRange(month1, year1, month2, year2) - * dateRange(day1, month1, year1, day2, month2, year2) - * dateRange(day1, month1, year1, day2, month2, year2, gmt) - * - * @param {String} day is the day of month between 1 and 31 (as an integer). - * @param {String} month is one of the month strings: JAN FEB MAR APR MAY JUN JUL AUG SEP OCT NOV DEC - * @param {String} year is the full year number, for example 1995 (but not 95). Integer. - * @param {String} gmt is either the string "GMT", which makes time comparison occur in GMT timezone; if left unspecified, times are taken to be in the local timezone. - * @return {Boolean} - */ -Object.defineProperty(exports, "__esModule", ({ value: true })); -function dateRange() { - // TODO: implement me! - return false; -} -exports.default = dateRange; -//# sourceMappingURL=dateRange.js.map - -/***/ }), - -/***/ 20936: -/***/ ((__unused_webpack_module, exports) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -/** - * Returns true iff the domain of hostname matches. - * - * Examples: - * - * ``` js - * dnsDomainIs("www.netscape.com", ".netscape.com") - * // is true. - * - * dnsDomainIs("www", ".netscape.com") - * // is false. - * - * dnsDomainIs("www.mcom.com", ".netscape.com") - * // is false. - * ``` - * - * - * @param {String} host is the hostname from the URL. - * @param {String} domain is the domain name to test the hostname against. - * @return {Boolean} true iff the domain of the hostname matches. - */ -function dnsDomainIs(host, domain) { - host = String(host); - domain = String(domain); - return host.substr(domain.length * -1) === domain; -} -exports.default = dnsDomainIs; -//# sourceMappingURL=dnsDomainIs.js.map - -/***/ }), - -/***/ 58595: -/***/ ((__unused_webpack_module, exports) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -/** - * Returns the number (integer) of DNS domain levels (number of dots) in the - * hostname. - * - * Examples: - * - * ``` js - * dnsDomainLevels("www") - * // returns 0. - * dnsDomainLevels("www.netscape.com") - * // returns 2. - * ``` - * - * @param {String} host is the hostname from the URL. - * @return {Number} number of domain levels - */ -function dnsDomainLevels(host) { - var match = String(host).match(/\./g); - var levels = 0; - if (match) { - levels = match.length; - } - return levels; -} -exports.default = dnsDomainLevels; -//# sourceMappingURL=dnsDomainLevels.js.map - -/***/ }), - -/***/ 87685: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - -var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { - function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } - return new (P || (P = Promise))(function (resolve, reject) { - function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } - function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } - function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } - step((generator = generator.apply(thisArg, _arguments || [])).next()); - }); -}; -Object.defineProperty(exports, "__esModule", ({ value: true })); -const util_1 = __nccwpck_require__(52754); -/** - * Resolves the given DNS hostname into an IP address, and returns it in the dot - * separated format as a string. - * - * Example: - * - * ``` js - * dnsResolve("home.netscape.com") - * // returns the string "198.95.249.79". - * ``` - * - * @param {String} host hostname to resolve - * @return {String} resolved IP address - */ -function dnsResolve(host) { - return __awaiter(this, void 0, void 0, function* () { - const family = 4; - try { - const r = yield util_1.dnsLookup(host, { family }); - if (typeof r === 'string') { - return r; - } - } - catch (err) { - // @ignore - } - return null; - }); -} -exports.default = dnsResolve; -//# sourceMappingURL=dnsResolve.js.map - -/***/ }), - -/***/ 37055: -/***/ (function(module, __unused_webpack_exports, __nccwpck_require__) { - -"use strict"; - -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; -const url_1 = __nccwpck_require__(78835); -const degenerator_1 = __nccwpck_require__(64033); -/** - * Built-in PAC functions. - */ -const dateRange_1 = __importDefault(__nccwpck_require__(14001)); -const dnsDomainIs_1 = __importDefault(__nccwpck_require__(20936)); -const dnsDomainLevels_1 = __importDefault(__nccwpck_require__(58595)); -const dnsResolve_1 = __importDefault(__nccwpck_require__(87685)); -const isInNet_1 = __importDefault(__nccwpck_require__(83815)); -const isPlainHostName_1 = __importDefault(__nccwpck_require__(96423)); -const isResolvable_1 = __importDefault(__nccwpck_require__(87541)); -const localHostOrDomainIs_1 = __importDefault(__nccwpck_require__(32586)); -const myIpAddress_1 = __importDefault(__nccwpck_require__(6494)); -const shExpMatch_1 = __importDefault(__nccwpck_require__(84693)); -const timeRange_1 = __importDefault(__nccwpck_require__(49547)); -const weekdayRange_1 = __importDefault(__nccwpck_require__(79281)); -/** - * Returns an asynchronous `FindProxyForURL()` function - * from the given JS string (from a PAC file). - * - * @param {String} str JS string - * @param {Object} opts optional "options" object - * @return {Function} async resolver function - */ -function createPacResolver(_str, _opts = {}) { - const str = Buffer.isBuffer(_str) ? _str.toString('utf8') : _str; - // The sandbox to use for the `vm` context. - const sandbox = Object.assign(Object.assign({}, createPacResolver.sandbox), _opts.sandbox); - const opts = Object.assign(Object.assign({ filename: 'proxy.pac' }, _opts), { sandbox }); - // Construct the array of async function names to add `await` calls to. - const names = Object.keys(sandbox).filter((k) => isAsyncFunction(sandbox[k])); - // Compile the JS `FindProxyForURL()` function into an async function. - const resolver = degenerator_1.compile(str, 'FindProxyForURL', names, opts); - function FindProxyForURL(url, _host, _callback) { - let host = null; - let callback = null; - if (typeof _callback === 'function') { - callback = _callback; - } - if (typeof _host === 'string') { - host = _host; - } - else if (typeof _host === 'function') { - callback = _host; - } - if (!host) { - host = url_1.parse(url).hostname; - } - if (!host) { - throw new TypeError('Could not determine `host`'); - } - const promise = resolver(url, host); - if (typeof callback === 'function') { - toCallback(promise, callback); - } - else { - return promise; - } - } - Object.defineProperty(FindProxyForURL, 'toString', { - value: () => resolver.toString(), - enumerable: false, - }); - return FindProxyForURL; -} -(function (createPacResolver) { - createPacResolver.sandbox = Object.freeze({ - alert: (message = '') => console.log('%s', message), - dateRange: dateRange_1.default, - dnsDomainIs: dnsDomainIs_1.default, - dnsDomainLevels: dnsDomainLevels_1.default, - dnsResolve: dnsResolve_1.default, - isInNet: isInNet_1.default, - isPlainHostName: isPlainHostName_1.default, - isResolvable: isResolvable_1.default, - localHostOrDomainIs: localHostOrDomainIs_1.default, - myIpAddress: myIpAddress_1.default, - shExpMatch: shExpMatch_1.default, - timeRange: timeRange_1.default, - weekdayRange: weekdayRange_1.default, - }); -})(createPacResolver || (createPacResolver = {})); -function toCallback(promise, callback) { - promise.then((rtn) => callback(null, rtn), callback); -} -function isAsyncFunction(v) { - if (typeof v !== 'function') - return false; - // Native `AsyncFunction` - if (v.constructor.name === 'AsyncFunction') - return true; - // TypeScript compiled - if (String(v).indexOf('__awaiter(') !== -1) - return true; - // Legacy behavior - set `async` property on the function - return Boolean(v.async); -} -module.exports = createPacResolver; -//# sourceMappingURL=index.js.map - -/***/ }), - -/***/ 83815: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - -/** - * Module dependencies. - */ -var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { - function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } - return new (P || (P = Promise))(function (resolve, reject) { - function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } - function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } - function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } - step((generator = generator.apply(thisArg, _arguments || [])).next()); - }); -}; -Object.defineProperty(exports, "__esModule", ({ value: true })); -const netmask_1 = __nccwpck_require__(11494); -const util_1 = __nccwpck_require__(52754); -/** - * True iff the IP address of the host matches the specified IP address pattern. - * - * Pattern and mask specification is done the same way as for SOCKS configuration. - * - * Examples: - * - * ``` js - * isInNet(host, "198.95.249.79", "255.255.255.255") - * // is true iff the IP address of host matches exactly 198.95.249.79. - * - * isInNet(host, "198.95.0.0", "255.255.0.0") - * // is true iff the IP address of the host matches 198.95.*.*. - * ``` - * - * @param {String} host a DNS hostname, or IP address. If a hostname is passed, - * it will be resoved into an IP address by this function. - * @param {String} pattern an IP address pattern in the dot-separated format mask. - * @param {String} mask for the IP address pattern informing which parts of the - * IP address should be matched against. 0 means ignore, 255 means match. - * @return {Boolean} - */ -function isInNet(host, pattern, mask) { - return __awaiter(this, void 0, void 0, function* () { - const family = 4; - try { - const ip = yield util_1.dnsLookup(host, { family }); - if (typeof ip === 'string') { - const netmask = new netmask_1.Netmask(pattern, mask); - return netmask.contains(ip); - } - } - catch (err) { } - return false; - }); -} -exports.default = isInNet; -//# sourceMappingURL=isInNet.js.map - -/***/ }), - -/***/ 96423: -/***/ ((__unused_webpack_module, exports) => { - -"use strict"; - -/** - * True iff there is no domain name in the hostname (no dots). - * - * Examples: - * - * ``` js - * isPlainHostName("www") - * // is true. - * - * isPlainHostName("www.netscape.com") - * // is false. - * ``` - * - * @param {String} host The hostname from the URL (excluding port number). - * @return {Boolean} - */ -Object.defineProperty(exports, "__esModule", ({ value: true })); -function isPlainHostName(host) { - return !/\./.test(host); -} -exports.default = isPlainHostName; -//# sourceMappingURL=isPlainHostName.js.map - -/***/ }), - -/***/ 87541: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - -var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { - function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } - return new (P || (P = Promise))(function (resolve, reject) { - function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } - function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } - function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } - step((generator = generator.apply(thisArg, _arguments || [])).next()); - }); -}; -Object.defineProperty(exports, "__esModule", ({ value: true })); -const util_1 = __nccwpck_require__(52754); -/** - * Tries to resolve the hostname. Returns true if succeeds. - * - * @param {String} host is the hostname from the URL. - * @return {Boolean} - */ -function isResolvable(host) { - return __awaiter(this, void 0, void 0, function* () { - const family = 4; - try { - if (yield util_1.dnsLookup(host, { family })) { - return true; - } - } - catch (err) { - // ignore - } - return false; - }); -} -exports.default = isResolvable; -//# sourceMappingURL=isResolvable.js.map - -/***/ }), - -/***/ 32586: -/***/ ((__unused_webpack_module, exports) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -/** - * Is true if the hostname matches exactly the specified hostname, or if there is - * no domain name part in the hostname, but the unqualified hostname matches. - * - * Examples: - * - * ``` js - * localHostOrDomainIs("www.netscape.com", "www.netscape.com") - * // is true (exact match). - * - * localHostOrDomainIs("www", "www.netscape.com") - * // is true (hostname match, domain not specified). - * - * localHostOrDomainIs("www.mcom.com", "www.netscape.com") - * // is false (domain name mismatch). - * - * localHostOrDomainIs("home.netscape.com", "www.netscape.com") - * // is false (hostname mismatch). - * ``` - * - * @param {String} host the hostname from the URL. - * @param {String} hostdom fully qualified hostname to match against. - * @return {Boolean} - */ -function localHostOrDomainIs(host, hostdom) { - const parts = host.split('.'); - const domparts = hostdom.split('.'); - let matches = true; - for (let i = 0; i < parts.length; i++) { - if (parts[i] !== domparts[i]) { - matches = false; - break; - } - } - return matches; -} -exports.default = localHostOrDomainIs; -//# sourceMappingURL=localHostOrDomainIs.js.map - -/***/ }), - -/***/ 6494: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - -var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { - function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } - return new (P || (P = Promise))(function (resolve, reject) { - function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } - function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } - function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } - step((generator = generator.apply(thisArg, _arguments || [])).next()); - }); -}; -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; -Object.defineProperty(exports, "__esModule", ({ value: true })); -const ip_1 = __importDefault(__nccwpck_require__(87547)); -const net_1 = __importDefault(__nccwpck_require__(11631)); -/** - * Returns the IP address of the host that the Navigator is running on, as - * a string in the dot-separated integer format. - * - * Example: - * - * ``` js - * myIpAddress() - * // would return the string "198.95.249.79" if you were running the - * // Navigator on that host. - * ``` - * - * @return {String} external IP address - */ -function myIpAddress() { - return __awaiter(this, void 0, void 0, function* () { - return new Promise((resolve, reject) => { - // 8.8.8.8:53 is "Google Public DNS": - // https://developers.google.com/speed/public-dns/ - const socket = net_1.default.connect({ host: '8.8.8.8', port: 53 }); - const onError = (err) => { - // if we fail to access Google DNS (as in firewall blocks access), - // fallback to querying IP locally - resolve(ip_1.default.address()); - }; - socket.once('error', onError); - socket.once('connect', () => { - socket.removeListener('error', onError); - const addr = socket.address(); - socket.destroy(); - if (typeof addr === 'string') { - resolve(addr); - } - else if (addr.address) { - resolve(addr.address); - } - else { - reject(new Error('Expected a `string`')); - } - }); - }); - }); -} -exports.default = myIpAddress; -//# sourceMappingURL=myIpAddress.js.map - -/***/ }), - -/***/ 84693: -/***/ ((__unused_webpack_module, exports) => { - -"use strict"; - -/** - * Returns true if the string matches the specified shell - * expression. - * - * Actually, currently the patterns are shell expressions, - * not regular expressions. - * - * Examples: - * - * ``` js - * shExpMatch("http://home.netscape.com/people/ari/index.html", "*\/ari/*") - * // is true. - * - * shExpMatch("http://home.netscape.com/people/montulli/index.html", "*\/ari/*") - * // is false. - * ``` - * - * @param {String} str is any string to compare (e.g. the URL, or the hostname). - * @param {String} shexp is a shell expression to compare against. - * @return {Boolean} true if the string matches the shell expression. - */ -Object.defineProperty(exports, "__esModule", ({ value: true })); -function shExpMatch(str, shexp) { - var re = toRegExp(shexp); - return re.test(str); -} -exports.default = shExpMatch; -/** - * Converts a "shell expression" to a JavaScript RegExp. - * - * @api private - */ -function toRegExp(str) { - str = String(str) - .replace(/\./g, '\\.') - .replace(/\?/g, '.') - .replace(/\*/g, '.*'); - return new RegExp('^' + str + '$'); -} -//# sourceMappingURL=shExpMatch.js.map - -/***/ }), - -/***/ 49547: -/***/ ((__unused_webpack_module, exports) => { - -"use strict"; - -/** - * True during (or between) the specified time(s). - * - * Even though the examples don't show it, this parameter may be present in - * each of the different parameter profiles, always as the last parameter. - * - * - * Examples: - * - * ``` js - * timerange(12) - * true from noon to 1pm. - * - * timerange(12, 13) - * same as above. - * - * timerange(12, "GMT") - * true from noon to 1pm, in GMT timezone. - * - * timerange(9, 17) - * true from 9am to 5pm. - * - * timerange(8, 30, 17, 00) - * true from 8:30am to 5:00pm. - * - * timerange(0, 0, 0, 0, 0, 30) - * true between midnight and 30 seconds past midnight. - * ``` - * - * timeRange(hour) - * timeRange(hour1, hour2) - * timeRange(hour1, min1, hour2, min2) - * timeRange(hour1, min1, sec1, hour2, min2, sec2) - * timeRange(hour1, min1, sec1, hour2, min2, sec2, gmt) - * - * @param {String} hour is the hour from 0 to 23. (0 is midnight, 23 is 11 pm.) - * @param {String} min minutes from 0 to 59. - * @param {String} sec seconds from 0 to 59. - * @param {String} gmt either the string "GMT" for GMT timezone, or not specified, for local timezone. - * @return {Boolean} - */ -Object.defineProperty(exports, "__esModule", ({ value: true })); -function timeRange() { - var args = Array.prototype.slice.call(arguments), lastArg = args.pop(), useGMTzone = lastArg == 'GMT', currentDate = new Date(); - if (!useGMTzone) { - args.push(lastArg); - } - var noOfArgs = args.length, result = false, numericArgs = args.map(function (n) { - return parseInt(n); - }); - // timeRange(hour) - if (noOfArgs == 1) { - result = getCurrentHour(useGMTzone, currentDate) == numericArgs[0]; - // timeRange(hour1, hour2) - } - else if (noOfArgs == 2) { - var currentHour = getCurrentHour(useGMTzone, currentDate); - result = numericArgs[0] <= currentHour && currentHour < numericArgs[1]; - // timeRange(hour1, min1, hour2, min2) - } - else if (noOfArgs == 4) { - result = valueInRange(secondsElapsedToday(numericArgs[0], numericArgs[1], 0), secondsElapsedToday(getCurrentHour(useGMTzone, currentDate), getCurrentMinute(useGMTzone, currentDate), 0), secondsElapsedToday(numericArgs[2], numericArgs[3], 59)); - // timeRange(hour1, min1, sec1, hour2, min2, sec2) - } - else if (noOfArgs == 6) { - result = valueInRange(secondsElapsedToday(numericArgs[0], numericArgs[1], numericArgs[2]), secondsElapsedToday(getCurrentHour(useGMTzone, currentDate), getCurrentMinute(useGMTzone, currentDate), getCurrentSecond(useGMTzone, currentDate)), secondsElapsedToday(numericArgs[3], numericArgs[4], numericArgs[5])); - } - return result; -} -exports.default = timeRange; -function secondsElapsedToday(hh, mm, ss) { - return hh * 3600 + mm * 60 + ss; -} -function getCurrentHour(gmt, currentDate) { - return gmt ? currentDate.getUTCHours() : currentDate.getHours(); -} -function getCurrentMinute(gmt, currentDate) { - return gmt ? currentDate.getUTCMinutes() : currentDate.getMinutes(); -} -function getCurrentSecond(gmt, currentDate) { - return gmt ? currentDate.getUTCSeconds() : currentDate.getSeconds(); -} -// start <= value <= finish -function valueInRange(start, value, finish) { - return start <= value && value <= finish; -} -//# sourceMappingURL=timeRange.js.map - -/***/ }), - -/***/ 52754: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.isGMT = exports.dnsLookup = void 0; -const dns_1 = __nccwpck_require__(40881); -function dnsLookup(host, opts) { - return new Promise((resolve, reject) => { - dns_1.lookup(host, opts, (err, res) => { - if (err) { - reject(err); - } - else { - resolve(res); - } - }); - }); -} -exports.dnsLookup = dnsLookup; -function isGMT(v) { - return v === 'GMT'; -} -exports.isGMT = isGMT; -//# sourceMappingURL=util.js.map - -/***/ }), - -/***/ 79281: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -const util_1 = __nccwpck_require__(52754); -const weekdays = ['SUN', 'MON', 'TUE', 'WED', 'THU', 'FRI', 'SAT']; -/** - * Only the first parameter is mandatory. Either the second, the third, or both - * may be left out. - * - * If only one parameter is present, the function yeilds a true value on the - * weekday that the parameter represents. If the string "GMT" is specified as - * a second parameter, times are taken to be in GMT, otherwise in local timezone. - * - * If both wd1 and wd1 are defined, the condition is true if the current weekday - * is in between those two weekdays. Bounds are inclusive. If the "GMT" parameter - * is specified, times are taken to be in GMT, otherwise the local timezone is - * used. - * - * Valid "weekday strings" are: - * - * SUN MON TUE WED THU FRI SAT - * - * Examples: - * - * ``` js - * weekdayRange("MON", "FRI") - * true Monday trhough Friday (local timezone). - * - * weekdayRange("MON", "FRI", "GMT") - * same as above, but GMT timezone. - * - * weekdayRange("SAT") - * true on Saturdays local time. - * - * weekdayRange("SAT", "GMT") - * true on Saturdays GMT time. - * - * weekdayRange("FRI", "MON") - * true Friday through Monday (note, order does matter!). - * ``` - * - * - * @param {String} wd1 one of the weekday strings. - * @param {String} wd2 one of the weekday strings. - * @param {String} gmt is either the string: GMT or is left out. - * @return {Boolean} - */ -function weekdayRange(wd1, wd2, gmt) { - let useGMTzone = false; - let wd1Index = -1; - let wd2Index = -1; - let wd2IsGmt = false; - if (util_1.isGMT(gmt)) { - useGMTzone = true; - } - else if (util_1.isGMT(wd2)) { - useGMTzone = true; - wd2IsGmt = true; - } - wd1Index = weekdays.indexOf(wd1); - if (!wd2IsGmt && isWeekday(wd2)) { - wd2Index = weekdays.indexOf(wd2); - } - let todaysDay = getTodaysDay(useGMTzone); - let result = false; - if (wd2Index < 0) { - result = todaysDay == wd1Index; - } - else { - if (wd1Index <= wd2Index) { - result = valueInRange(wd1Index, todaysDay, wd2Index); - } - else { - result = - valueInRange(wd1Index, todaysDay, 6) || - valueInRange(0, todaysDay, wd2Index); - } - } - return result; -} -exports.default = weekdayRange; -function getTodaysDay(gmt) { - return gmt ? new Date().getUTCDay() : new Date().getDay(); -} -// start <= value <= finish -function valueInRange(start, value, finish) { - return start <= value && value <= finish; -} -function isWeekday(v) { - return weekdays.indexOf(v) !== -1; -} -//# sourceMappingURL=weekdayRange.js.map - -/***/ }), - -/***/ 67367: -/***/ ((module, exports, __nccwpck_require__) => { - -"use strict"; - - -/** - * Module dependencies. - */ - -var url = __nccwpck_require__(78835); -var LRU = __nccwpck_require__(7129); -var Agent = __nccwpck_require__(49690); -var inherits = __nccwpck_require__(31669).inherits; -var debug = __nccwpck_require__(38237)('proxy-agent'); -var getProxyForUrl = __nccwpck_require__(63329)/* .getProxyForUrl */ .j; - -var http = __nccwpck_require__(98605); -var https = __nccwpck_require__(57211); -var PacProxyAgent = __nccwpck_require__(26338); -var HttpProxyAgent = __nccwpck_require__(23764); -var HttpsProxyAgent = __nccwpck_require__(77219); -var SocksProxyAgent = __nccwpck_require__(25038); - -/** - * Module exports. - */ - -exports = module.exports = ProxyAgent; - -/** - * Number of `http.Agent` instances to cache. - * - * This value was arbitrarily chosen... a better - * value could be conceived with some benchmarks. - */ - -var cacheSize = 20; - -/** - * Cache for `http.Agent` instances. - */ - -exports.cache = new LRU(cacheSize); - -/** - * Built-in proxy types. - */ - -exports.proxies = Object.create(null); -exports.proxies.http = httpOrHttpsProxy; -exports.proxies.https = httpOrHttpsProxy; -exports.proxies.socks = SocksProxyAgent; -exports.proxies.socks4 = SocksProxyAgent; -exports.proxies.socks4a = SocksProxyAgent; -exports.proxies.socks5 = SocksProxyAgent; -exports.proxies.socks5h = SocksProxyAgent; - -PacProxyAgent.protocols.forEach(function (protocol) { - exports.proxies['pac+' + protocol] = PacProxyAgent; -}); - -function httpOrHttps(opts, secureEndpoint) { - if (secureEndpoint) { - // HTTPS - return https.globalAgent; - } else { - // HTTP - return http.globalAgent; - } -} - -function httpOrHttpsProxy(opts, secureEndpoint) { - if (secureEndpoint) { - // HTTPS - return new HttpsProxyAgent(opts); - } else { - // HTTP - return new HttpProxyAgent(opts); - } -} - -function mapOptsToProxy(opts) { - // NO_PROXY case - if (!opts) { - return { - uri: 'no proxy', - fn: httpOrHttps - }; - } - - if ('string' == typeof opts) opts = url.parse(opts); - - var proxies; - if (opts.proxies) { - proxies = Object.assign({}, exports.proxies, opts.proxies); - } else { - proxies = exports.proxies; - } - - // get the requested proxy "protocol" - var protocol = opts.protocol; - if (!protocol) { - throw new TypeError('You must specify a "protocol" for the ' + - 'proxy type (' + Object.keys(proxies).join(', ') + ')'); - } - - // strip the trailing ":" if present - if (':' == protocol[protocol.length - 1]) { - protocol = protocol.substring(0, protocol.length - 1); - } - - // get the proxy `http.Agent` creation function - var proxyFn = proxies[protocol]; - if ('function' != typeof proxyFn) { - throw new TypeError('unsupported proxy protocol: "' + protocol + '"'); - } - - // format the proxy info back into a URI, since an opts object - // could have been passed in originally. This generated URI is used - // as part of the "key" for the LRU cache - return { - opts: opts, - uri: url.format({ - protocol: protocol + ':', - slashes: true, - auth: opts.auth, - hostname: opts.hostname || opts.host, - port: opts.port - }), - fn: proxyFn, - } -} - -/** - * Attempts to get an `http.Agent` instance based off of the given proxy URI - * information, and the `secure` flag. - * - * An LRU cache is used, to prevent unnecessary creation of proxy - * `http.Agent` instances. - * - * @param {String} uri proxy url - * @param {Boolean} secure true if this is for an HTTPS request, false for HTTP - * @return {http.Agent} - * @api public - */ - -function ProxyAgent (opts) { - if (!(this instanceof ProxyAgent)) return new ProxyAgent(opts); - debug('creating new ProxyAgent instance: %o', opts); - Agent.call(this); - - if (opts) { - var proxy = mapOptsToProxy(opts); - this.proxy = proxy.opts; - this.proxyUri = proxy.uri; - this.proxyFn = proxy.fn; - } -} -inherits(ProxyAgent, Agent); - -/** - * - */ - -ProxyAgent.prototype.callback = function(req, opts, fn) { - var proxyOpts = this.proxy; - var proxyUri = this.proxyUri; - var proxyFn = this.proxyFn; - - // if we did not instantiate with a proxy, set one per request - if (!proxyOpts) { - var urlOpts = getProxyForUrl(opts); - var proxy = mapOptsToProxy(urlOpts, opts); - proxyOpts = proxy.opts; - proxyUri = proxy.uri; - proxyFn = proxy.fn; - } - - // create the "key" for the LRU cache - var key = proxyUri; - if (opts.secureEndpoint) key += ' secure'; - - // attempt to get a cached `http.Agent` instance first - var agent = exports.cache.get(key); - if (!agent) { - // get an `http.Agent` instance from protocol-specific agent function - agent = proxyFn(proxyOpts, opts.secureEndpoint); - if (agent) { - exports.cache.set(key, agent); - } - } else { - debug('cache hit with key: %o', key); - } - - if (!proxyOpts) { - agent.addRequest(req, opts); - } else { - // XXX: agent.callback() is an agent-base-ism - agent.callback(req, opts) - .then(function(socket) { fn(null, socket); }) - .catch(function(error) { fn(error); }); - } -} - - -/***/ }), - -/***/ 63329: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -var parseUrl = __nccwpck_require__(78835).parse; - -var DEFAULT_PORTS = { - ftp: 21, - gopher: 70, - http: 80, - https: 443, - ws: 80, - wss: 443, -}; - -var stringEndsWith = String.prototype.endsWith || function(s) { - return s.length <= this.length && - this.indexOf(s, this.length - s.length) !== -1; -}; - -/** - * @param {string|object} url - The URL, or the result from url.parse. - * @return {string} The URL of the proxy that should handle the request to the - * given URL. If no proxy is set, this will be an empty string. - */ -function getProxyForUrl(url) { - var parsedUrl = typeof url === 'string' ? parseUrl(url) : url || {}; - var proto = parsedUrl.protocol; - var hostname = parsedUrl.host; - var port = parsedUrl.port; - if (typeof hostname !== 'string' || !hostname || typeof proto !== 'string') { - return ''; // Don't proxy URLs without a valid scheme or host. - } - - proto = proto.split(':', 1)[0]; - // Stripping ports in this way instead of using parsedUrl.hostname to make - // sure that the brackets around IPv6 addresses are kept. - hostname = hostname.replace(/:\d*$/, ''); - port = parseInt(port) || DEFAULT_PORTS[proto] || 0; - if (!shouldProxy(hostname, port)) { - return ''; // Don't proxy URLs that match NO_PROXY. - } - - var proxy = - getEnv('npm_config_' + proto + '_proxy') || - getEnv(proto + '_proxy') || - getEnv('npm_config_proxy') || - getEnv('all_proxy'); - if (proxy && proxy.indexOf('://') === -1) { - // Missing scheme in proxy, default to the requested URL's scheme. - proxy = proto + '://' + proxy; - } - return proxy; -} - -/** - * Determines whether a given URL should be proxied. - * - * @param {string} hostname - The host name of the URL. - * @param {number} port - The effective port of the URL. - * @returns {boolean} Whether the given URL should be proxied. - * @private - */ -function shouldProxy(hostname, port) { - var NO_PROXY = - (getEnv('npm_config_no_proxy') || getEnv('no_proxy')).toLowerCase(); - if (!NO_PROXY) { - return true; // Always proxy if NO_PROXY is not set. - } - if (NO_PROXY === '*') { - return false; // Never proxy if wildcard is set. - } - - return NO_PROXY.split(/[,\s]/).every(function(proxy) { - if (!proxy) { - return true; // Skip zero-length hosts. - } - var parsedProxy = proxy.match(/^(.+):(\d+)$/); - var parsedProxyHostname = parsedProxy ? parsedProxy[1] : proxy; - var parsedProxyPort = parsedProxy ? parseInt(parsedProxy[2]) : 0; - if (parsedProxyPort && parsedProxyPort !== port) { - return true; // Skip if ports don't match. - } - - if (!/^[.*]/.test(parsedProxyHostname)) { - // No wildcards, so stop proxying if there is an exact match. - return hostname !== parsedProxyHostname; - } - - if (parsedProxyHostname.charAt(0) === '*') { - // Remove leading wildcard. - parsedProxyHostname = parsedProxyHostname.slice(1); - } - // Stop proxying if the hostname ends with the no_proxy host. - return !stringEndsWith.call(hostname, parsedProxyHostname); - }); -} - -/** - * Get the value for an environment variable. - * - * @param {string} key - The name of the environment variable. - * @return {string} The value of the environment variable. - * @private - */ -function getEnv(key) { - return process.env[key.toLowerCase()] || process.env[key.toUpperCase()] || ''; -} - -exports.j = getProxyForUrl; - - -/***/ }), - -/***/ 47742: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -"use strict"; -/*! - * raw-body - * Copyright(c) 2013-2014 Jonathan Ong - * Copyright(c) 2014-2015 Douglas Christopher Wilson - * MIT Licensed - */ - - - -/** - * Module dependencies. - * @private - */ - -var bytes = __nccwpck_require__(86966) -var createError = __nccwpck_require__(95193) -var iconv = __nccwpck_require__(19032) -var unpipe = __nccwpck_require__(3124) - -/** - * Module exports. - * @public - */ - -module.exports = getRawBody - -/** - * Module variables. - * @private - */ - -var ICONV_ENCODING_MESSAGE_REGEXP = /^Encoding not recognized: / - -/** - * Get the decoder for a given encoding. - * - * @param {string} encoding - * @private - */ - -function getDecoder (encoding) { - if (!encoding) return null - - try { - return iconv.getDecoder(encoding) - } catch (e) { - // error getting decoder - if (!ICONV_ENCODING_MESSAGE_REGEXP.test(e.message)) throw e - - // the encoding was not found - throw createError(415, 'specified encoding unsupported', { - encoding: encoding, - type: 'encoding.unsupported' - }) - } -} - -/** - * Get the raw body of a stream (typically HTTP). - * - * @param {object} stream - * @param {object|string|function} [options] - * @param {function} [callback] - * @public - */ - -function getRawBody (stream, options, callback) { - var done = callback - var opts = options || {} - - if (options === true || typeof options === 'string') { - // short cut for encoding - opts = { - encoding: options - } - } - - if (typeof options === 'function') { - done = options - opts = {} - } - - // validate callback is a function, if provided - if (done !== undefined && typeof done !== 'function') { - throw new TypeError('argument callback must be a function') - } - - // require the callback without promises - if (!done && !global.Promise) { - throw new TypeError('argument callback is required') - } - - // get encoding - var encoding = opts.encoding !== true - ? opts.encoding - : 'utf-8' - - // convert the limit to an integer - var limit = bytes.parse(opts.limit) - - // convert the expected length to an integer - var length = opts.length != null && !isNaN(opts.length) - ? parseInt(opts.length, 10) - : null - - if (done) { - // classic callback style - return readStream(stream, encoding, length, limit, done) - } - - return new Promise(function executor (resolve, reject) { - readStream(stream, encoding, length, limit, function onRead (err, buf) { - if (err) return reject(err) - resolve(buf) - }) - }) -} - -/** - * Halt a stream. - * - * @param {Object} stream - * @private - */ - -function halt (stream) { - // unpipe everything from the stream - unpipe(stream) - - // pause stream - if (typeof stream.pause === 'function') { - stream.pause() - } -} - -/** - * Read the data from the stream. - * - * @param {object} stream - * @param {string} encoding - * @param {number} length - * @param {number} limit - * @param {function} callback - * @public - */ - -function readStream (stream, encoding, length, limit, callback) { - var complete = false - var sync = true - - // check the length and limit options. - // note: we intentionally leave the stream paused, - // so users should handle the stream themselves. - if (limit !== null && length !== null && length > limit) { - return done(createError(413, 'request entity too large', { - expected: length, - length: length, - limit: limit, - type: 'entity.too.large' - })) - } - - // streams1: assert request encoding is buffer. - // streams2+: assert the stream encoding is buffer. - // stream._decoder: streams1 - // state.encoding: streams2 - // state.decoder: streams2, specifically < 0.10.6 - var state = stream._readableState - if (stream._decoder || (state && (state.encoding || state.decoder))) { - // developer error - return done(createError(500, 'stream encoding should not be set', { - type: 'stream.encoding.set' - })) - } - - var received = 0 - var decoder - - try { - decoder = getDecoder(encoding) - } catch (err) { - return done(err) - } - - var buffer = decoder - ? '' - : [] - - // attach listeners - stream.on('aborted', onAborted) - stream.on('close', cleanup) - stream.on('data', onData) - stream.on('end', onEnd) - stream.on('error', onEnd) - - // mark sync section complete - sync = false - - function done () { - var args = new Array(arguments.length) - - // copy arguments - for (var i = 0; i < args.length; i++) { - args[i] = arguments[i] - } - - // mark complete - complete = true - - if (sync) { - process.nextTick(invokeCallback) - } else { - invokeCallback() - } - - function invokeCallback () { - cleanup() - - if (args[0]) { - // halt the stream on error - halt(stream) - } - - callback.apply(null, args) - } - } - - function onAborted () { - if (complete) return - - done(createError(400, 'request aborted', { - code: 'ECONNABORTED', - expected: length, - length: length, - received: received, - type: 'request.aborted' - })) - } - - function onData (chunk) { - if (complete) return - - received += chunk.length - - if (limit !== null && received > limit) { - done(createError(413, 'request entity too large', { - limit: limit, - received: received, - type: 'entity.too.large' - })) - } else if (decoder) { - buffer += decoder.write(chunk) - } else { - buffer.push(chunk) - } - } - - function onEnd (err) { - if (complete) return - if (err) return done(err) - - if (length !== null && received !== length) { - done(createError(400, 'request size did not match content length', { - expected: length, - length: length, - received: received, - type: 'request.size.invalid' - })) - } else { - var string = decoder - ? buffer + (decoder.end() || '') - : Buffer.concat(buffer) - done(null, string) - } - } - - function cleanup () { - buffer = null - - stream.removeListener('aborted', onAborted) - stream.removeListener('data', onData) - stream.removeListener('end', onEnd) - stream.removeListener('error', onEnd) - stream.removeListener('close', cleanup) - } -} - - -/***/ }), - -/***/ 41359: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -// Copyright Joyent, Inc. and other Node contributors. -// -// Permission is hereby granted, free of charge, to any person obtaining a -// copy of this software and associated documentation files (the -// "Software"), to deal in the Software without restriction, including -// without limitation the rights to use, copy, modify, merge, publish, -// distribute, sublicense, and/or sell copies of the Software, and to permit -// persons to whom the Software is furnished to do so, subject to the -// following conditions: -// -// The above copyright notice and this permission notice shall be included -// in all copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS -// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN -// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, -// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR -// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE -// USE OR OTHER DEALINGS IN THE SOFTWARE. - -// a duplex stream is just a stream that is both readable and writable. -// Since JS doesn't have multiple prototypal inheritance, this class -// prototypally inherits from Readable, and then parasitically from -// Writable. - -module.exports = Duplex; - -/**/ -var objectKeys = Object.keys || function (obj) { - var keys = []; - for (var key in obj) keys.push(key); - return keys; -} -/**/ - - -/**/ -var util = __nccwpck_require__(95898); -util.inherits = __nccwpck_require__(44124); -/**/ - -var Readable = __nccwpck_require__(51433); -var Writable = __nccwpck_require__(26993); - -util.inherits(Duplex, Readable); - -forEach(objectKeys(Writable.prototype), function(method) { - if (!Duplex.prototype[method]) - Duplex.prototype[method] = Writable.prototype[method]; -}); - -function Duplex(options) { - if (!(this instanceof Duplex)) - return new Duplex(options); - - Readable.call(this, options); - Writable.call(this, options); - - if (options && options.readable === false) - this.readable = false; - - if (options && options.writable === false) - this.writable = false; - - this.allowHalfOpen = true; - if (options && options.allowHalfOpen === false) - this.allowHalfOpen = false; - - this.once('end', onend); -} - -// the no-half-open enforcer -function onend() { - // if we allow half-open state, or if the writable side ended, - // then we're ok. - if (this.allowHalfOpen || this._writableState.ended) - return; - - // no more data can be written. - // But allow more writes to happen in this tick. - process.nextTick(this.end.bind(this)); -} - -function forEach (xs, f) { - for (var i = 0, l = xs.length; i < l; i++) { - f(xs[i], i); - } -} - - -/***/ }), - -/***/ 81542: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -// Copyright Joyent, Inc. and other Node contributors. -// -// Permission is hereby granted, free of charge, to any person obtaining a -// copy of this software and associated documentation files (the -// "Software"), to deal in the Software without restriction, including -// without limitation the rights to use, copy, modify, merge, publish, -// distribute, sublicense, and/or sell copies of the Software, and to permit -// persons to whom the Software is furnished to do so, subject to the -// following conditions: -// -// The above copyright notice and this permission notice shall be included -// in all copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS -// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN -// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, -// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR -// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE -// USE OR OTHER DEALINGS IN THE SOFTWARE. - -// a passthrough stream. -// basically just the most minimal sort of Transform stream. -// Every written chunk gets output as-is. - -module.exports = PassThrough; - -var Transform = __nccwpck_require__(34415); - -/**/ -var util = __nccwpck_require__(95898); -util.inherits = __nccwpck_require__(44124); -/**/ - -util.inherits(PassThrough, Transform); - -function PassThrough(options) { - if (!(this instanceof PassThrough)) - return new PassThrough(options); - - Transform.call(this, options); -} - -PassThrough.prototype._transform = function(chunk, encoding, cb) { - cb(null, chunk); -}; - - -/***/ }), - -/***/ 51433: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -// Copyright Joyent, Inc. and other Node contributors. -// -// Permission is hereby granted, free of charge, to any person obtaining a -// copy of this software and associated documentation files (the -// "Software"), to deal in the Software without restriction, including -// without limitation the rights to use, copy, modify, merge, publish, -// distribute, sublicense, and/or sell copies of the Software, and to permit -// persons to whom the Software is furnished to do so, subject to the -// following conditions: -// -// The above copyright notice and this permission notice shall be included -// in all copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS -// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN -// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, -// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR -// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE -// USE OR OTHER DEALINGS IN THE SOFTWARE. - -module.exports = Readable; - -/**/ -var isArray = __nccwpck_require__(20893); -/**/ - - -/**/ -var Buffer = __nccwpck_require__(64293).Buffer; -/**/ - -Readable.ReadableState = ReadableState; - -var EE = __nccwpck_require__(28614).EventEmitter; - -/**/ -if (!EE.listenerCount) EE.listenerCount = function(emitter, type) { - return emitter.listeners(type).length; -}; -/**/ - -var Stream = __nccwpck_require__(92413); - -/**/ -var util = __nccwpck_require__(95898); -util.inherits = __nccwpck_require__(44124); -/**/ - -var StringDecoder; - - -/**/ -var debug = __nccwpck_require__(31669); -if (debug && debug.debuglog) { - debug = debug.debuglog('stream'); -} else { - debug = function () {}; -} -/**/ - - -util.inherits(Readable, Stream); - -function ReadableState(options, stream) { - var Duplex = __nccwpck_require__(41359); - - options = options || {}; - - // the point at which it stops calling _read() to fill the buffer - // Note: 0 is a valid value, means "don't call _read preemptively ever" - var hwm = options.highWaterMark; - var defaultHwm = options.objectMode ? 16 : 16 * 1024; - this.highWaterMark = (hwm || hwm === 0) ? hwm : defaultHwm; - - // cast to ints. - this.highWaterMark = ~~this.highWaterMark; - - this.buffer = []; - this.length = 0; - this.pipes = null; - this.pipesCount = 0; - this.flowing = null; - this.ended = false; - this.endEmitted = false; - this.reading = false; - - // a flag to be able to tell if the onwrite cb is called immediately, - // or on a later tick. We set this to true at first, because any - // actions that shouldn't happen until "later" should generally also - // not happen before the first write call. - this.sync = true; - - // whenever we return null, then we set a flag to say - // that we're awaiting a 'readable' event emission. - this.needReadable = false; - this.emittedReadable = false; - this.readableListening = false; - - - // object stream flag. Used to make read(n) ignore n and to - // make all the buffer merging and length checks go away - this.objectMode = !!options.objectMode; - - if (stream instanceof Duplex) - this.objectMode = this.objectMode || !!options.readableObjectMode; - - // Crypto is kind of old and crusty. Historically, its default string - // encoding is 'binary' so we have to make this configurable. - // Everything else in the universe uses 'utf8', though. - this.defaultEncoding = options.defaultEncoding || 'utf8'; - - // when piping, we only care about 'readable' events that happen - // after read()ing all the bytes and not getting any pushback. - this.ranOut = false; - - // the number of writers that are awaiting a drain event in .pipe()s - this.awaitDrain = 0; - - // if true, a maybeReadMore has been scheduled - this.readingMore = false; - - this.decoder = null; - this.encoding = null; - if (options.encoding) { - if (!StringDecoder) - StringDecoder = __nccwpck_require__(60674)/* .StringDecoder */ .s; - this.decoder = new StringDecoder(options.encoding); - this.encoding = options.encoding; - } -} - -function Readable(options) { - var Duplex = __nccwpck_require__(41359); - - if (!(this instanceof Readable)) - return new Readable(options); - - this._readableState = new ReadableState(options, this); - - // legacy - this.readable = true; - - Stream.call(this); -} - -// Manually shove something into the read() buffer. -// This returns true if the highWaterMark has not been hit yet, -// similar to how Writable.write() returns true if you should -// write() some more. -Readable.prototype.push = function(chunk, encoding) { - var state = this._readableState; - - if (util.isString(chunk) && !state.objectMode) { - encoding = encoding || state.defaultEncoding; - if (encoding !== state.encoding) { - chunk = new Buffer(chunk, encoding); - encoding = ''; - } - } - - return readableAddChunk(this, state, chunk, encoding, false); -}; - -// Unshift should *always* be something directly out of read() -Readable.prototype.unshift = function(chunk) { - var state = this._readableState; - return readableAddChunk(this, state, chunk, '', true); -}; - -function readableAddChunk(stream, state, chunk, encoding, addToFront) { - var er = chunkInvalid(state, chunk); - if (er) { - stream.emit('error', er); - } else if (util.isNullOrUndefined(chunk)) { - state.reading = false; - if (!state.ended) - onEofChunk(stream, state); - } else if (state.objectMode || chunk && chunk.length > 0) { - if (state.ended && !addToFront) { - var e = new Error('stream.push() after EOF'); - stream.emit('error', e); - } else if (state.endEmitted && addToFront) { - var e = new Error('stream.unshift() after end event'); - stream.emit('error', e); - } else { - if (state.decoder && !addToFront && !encoding) - chunk = state.decoder.write(chunk); - - if (!addToFront) - state.reading = false; - - // if we want the data now, just emit it. - if (state.flowing && state.length === 0 && !state.sync) { - stream.emit('data', chunk); - stream.read(0); - } else { - // update the buffer info. - state.length += state.objectMode ? 1 : chunk.length; - if (addToFront) - state.buffer.unshift(chunk); - else - state.buffer.push(chunk); - - if (state.needReadable) - emitReadable(stream); - } - - maybeReadMore(stream, state); - } - } else if (!addToFront) { - state.reading = false; - } - - return needMoreData(state); -} - - - -// if it's past the high water mark, we can push in some more. -// Also, if we have no data yet, we can stand some -// more bytes. This is to work around cases where hwm=0, -// such as the repl. Also, if the push() triggered a -// readable event, and the user called read(largeNumber) such that -// needReadable was set, then we ought to push more, so that another -// 'readable' event will be triggered. -function needMoreData(state) { - return !state.ended && - (state.needReadable || - state.length < state.highWaterMark || - state.length === 0); -} - -// backwards compatibility. -Readable.prototype.setEncoding = function(enc) { - if (!StringDecoder) - StringDecoder = __nccwpck_require__(60674)/* .StringDecoder */ .s; - this._readableState.decoder = new StringDecoder(enc); - this._readableState.encoding = enc; - return this; -}; - -// Don't raise the hwm > 128MB -var MAX_HWM = 0x800000; -function roundUpToNextPowerOf2(n) { - if (n >= MAX_HWM) { - n = MAX_HWM; - } else { - // Get the next highest power of 2 - n--; - for (var p = 1; p < 32; p <<= 1) n |= n >> p; - n++; - } - return n; -} - -function howMuchToRead(n, state) { - if (state.length === 0 && state.ended) - return 0; - - if (state.objectMode) - return n === 0 ? 0 : 1; - - if (isNaN(n) || util.isNull(n)) { - // only flow one buffer at a time - if (state.flowing && state.buffer.length) - return state.buffer[0].length; - else - return state.length; - } - - if (n <= 0) - return 0; - - // If we're asking for more than the target buffer level, - // then raise the water mark. Bump up to the next highest - // power of 2, to prevent increasing it excessively in tiny - // amounts. - if (n > state.highWaterMark) - state.highWaterMark = roundUpToNextPowerOf2(n); - - // don't have that much. return null, unless we've ended. - if (n > state.length) { - if (!state.ended) { - state.needReadable = true; - return 0; - } else - return state.length; - } - - return n; -} - -// you can override either this method, or the async _read(n) below. -Readable.prototype.read = function(n) { - debug('read', n); - var state = this._readableState; - var nOrig = n; - - if (!util.isNumber(n) || n > 0) - state.emittedReadable = false; - - // if we're doing read(0) to trigger a readable event, but we - // already have a bunch of data in the buffer, then just trigger - // the 'readable' event and move on. - if (n === 0 && - state.needReadable && - (state.length >= state.highWaterMark || state.ended)) { - debug('read: emitReadable', state.length, state.ended); - if (state.length === 0 && state.ended) - endReadable(this); - else - emitReadable(this); - return null; - } - - n = howMuchToRead(n, state); - - // if we've ended, and we're now clear, then finish it up. - if (n === 0 && state.ended) { - if (state.length === 0) - endReadable(this); - return null; - } - - // All the actual chunk generation logic needs to be - // *below* the call to _read. The reason is that in certain - // synthetic stream cases, such as passthrough streams, _read - // may be a completely synchronous operation which may change - // the state of the read buffer, providing enough data when - // before there was *not* enough. - // - // So, the steps are: - // 1. Figure out what the state of things will be after we do - // a read from the buffer. - // - // 2. If that resulting state will trigger a _read, then call _read. - // Note that this may be asynchronous, or synchronous. Yes, it is - // deeply ugly to write APIs this way, but that still doesn't mean - // that the Readable class should behave improperly, as streams are - // designed to be sync/async agnostic. - // Take note if the _read call is sync or async (ie, if the read call - // has returned yet), so that we know whether or not it's safe to emit - // 'readable' etc. - // - // 3. Actually pull the requested chunks out of the buffer and return. - - // if we need a readable event, then we need to do some reading. - var doRead = state.needReadable; - debug('need readable', doRead); - - // if we currently have less than the highWaterMark, then also read some - if (state.length === 0 || state.length - n < state.highWaterMark) { - doRead = true; - debug('length less than watermark', doRead); - } - - // however, if we've ended, then there's no point, and if we're already - // reading, then it's unnecessary. - if (state.ended || state.reading) { - doRead = false; - debug('reading or ended', doRead); - } - - if (doRead) { - debug('do read'); - state.reading = true; - state.sync = true; - // if the length is currently zero, then we *need* a readable event. - if (state.length === 0) - state.needReadable = true; - // call internal read method - this._read(state.highWaterMark); - state.sync = false; - } - - // If _read pushed data synchronously, then `reading` will be false, - // and we need to re-evaluate how much data we can return to the user. - if (doRead && !state.reading) - n = howMuchToRead(nOrig, state); - - var ret; - if (n > 0) - ret = fromList(n, state); - else - ret = null; - - if (util.isNull(ret)) { - state.needReadable = true; - n = 0; - } - - state.length -= n; - - // If we have nothing in the buffer, then we want to know - // as soon as we *do* get something into the buffer. - if (state.length === 0 && !state.ended) - state.needReadable = true; - - // If we tried to read() past the EOF, then emit end on the next tick. - if (nOrig !== n && state.ended && state.length === 0) - endReadable(this); - - if (!util.isNull(ret)) - this.emit('data', ret); - - return ret; -}; - -function chunkInvalid(state, chunk) { - var er = null; - if (!util.isBuffer(chunk) && - !util.isString(chunk) && - !util.isNullOrUndefined(chunk) && - !state.objectMode) { - er = new TypeError('Invalid non-string/buffer chunk'); - } - return er; -} - - -function onEofChunk(stream, state) { - if (state.decoder && !state.ended) { - var chunk = state.decoder.end(); - if (chunk && chunk.length) { - state.buffer.push(chunk); - state.length += state.objectMode ? 1 : chunk.length; - } - } - state.ended = true; - - // emit 'readable' now to make sure it gets picked up. - emitReadable(stream); -} - -// Don't emit readable right away in sync mode, because this can trigger -// another read() call => stack overflow. This way, it might trigger -// a nextTick recursion warning, but that's not so bad. -function emitReadable(stream) { - var state = stream._readableState; - state.needReadable = false; - if (!state.emittedReadable) { - debug('emitReadable', state.flowing); - state.emittedReadable = true; - if (state.sync) - process.nextTick(function() { - emitReadable_(stream); - }); - else - emitReadable_(stream); - } -} - -function emitReadable_(stream) { - debug('emit readable'); - stream.emit('readable'); - flow(stream); -} - - -// at this point, the user has presumably seen the 'readable' event, -// and called read() to consume some data. that may have triggered -// in turn another _read(n) call, in which case reading = true if -// it's in progress. -// However, if we're not ended, or reading, and the length < hwm, -// then go ahead and try to read some more preemptively. -function maybeReadMore(stream, state) { - if (!state.readingMore) { - state.readingMore = true; - process.nextTick(function() { - maybeReadMore_(stream, state); - }); - } -} - -function maybeReadMore_(stream, state) { - var len = state.length; - while (!state.reading && !state.flowing && !state.ended && - state.length < state.highWaterMark) { - debug('maybeReadMore read 0'); - stream.read(0); - if (len === state.length) - // didn't get any data, stop spinning. - break; - else - len = state.length; - } - state.readingMore = false; -} - -// abstract method. to be overridden in specific implementation classes. -// call cb(er, data) where data is <= n in length. -// for virtual (non-string, non-buffer) streams, "length" is somewhat -// arbitrary, and perhaps not very meaningful. -Readable.prototype._read = function(n) { - this.emit('error', new Error('not implemented')); -}; - -Readable.prototype.pipe = function(dest, pipeOpts) { - var src = this; - var state = this._readableState; - - switch (state.pipesCount) { - case 0: - state.pipes = dest; - break; - case 1: - state.pipes = [state.pipes, dest]; - break; - default: - state.pipes.push(dest); - break; - } - state.pipesCount += 1; - debug('pipe count=%d opts=%j', state.pipesCount, pipeOpts); - - var doEnd = (!pipeOpts || pipeOpts.end !== false) && - dest !== process.stdout && - dest !== process.stderr; - - var endFn = doEnd ? onend : cleanup; - if (state.endEmitted) - process.nextTick(endFn); - else - src.once('end', endFn); - - dest.on('unpipe', onunpipe); - function onunpipe(readable) { - debug('onunpipe'); - if (readable === src) { - cleanup(); - } - } - - function onend() { - debug('onend'); - dest.end(); - } - - // when the dest drains, it reduces the awaitDrain counter - // on the source. This would be more elegant with a .once() - // handler in flow(), but adding and removing repeatedly is - // too slow. - var ondrain = pipeOnDrain(src); - dest.on('drain', ondrain); - - function cleanup() { - debug('cleanup'); - // cleanup event handlers once the pipe is broken - dest.removeListener('close', onclose); - dest.removeListener('finish', onfinish); - dest.removeListener('drain', ondrain); - dest.removeListener('error', onerror); - dest.removeListener('unpipe', onunpipe); - src.removeListener('end', onend); - src.removeListener('end', cleanup); - src.removeListener('data', ondata); - - // if the reader is waiting for a drain event from this - // specific writer, then it would cause it to never start - // flowing again. - // So, if this is awaiting a drain, then we just call it now. - // If we don't know, then assume that we are waiting for one. - if (state.awaitDrain && - (!dest._writableState || dest._writableState.needDrain)) - ondrain(); - } - - src.on('data', ondata); - function ondata(chunk) { - debug('ondata'); - var ret = dest.write(chunk); - if (false === ret) { - debug('false write response, pause', - src._readableState.awaitDrain); - src._readableState.awaitDrain++; - src.pause(); - } - } - - // if the dest has an error, then stop piping into it. - // however, don't suppress the throwing behavior for this. - function onerror(er) { - debug('onerror', er); - unpipe(); - dest.removeListener('error', onerror); - if (EE.listenerCount(dest, 'error') === 0) - dest.emit('error', er); - } - // This is a brutally ugly hack to make sure that our error handler - // is attached before any userland ones. NEVER DO THIS. - if (!dest._events || !dest._events.error) - dest.on('error', onerror); - else if (isArray(dest._events.error)) - dest._events.error.unshift(onerror); - else - dest._events.error = [onerror, dest._events.error]; - - - - // Both close and finish should trigger unpipe, but only once. - function onclose() { - dest.removeListener('finish', onfinish); - unpipe(); - } - dest.once('close', onclose); - function onfinish() { - debug('onfinish'); - dest.removeListener('close', onclose); - unpipe(); - } - dest.once('finish', onfinish); - - function unpipe() { - debug('unpipe'); - src.unpipe(dest); - } - - // tell the dest that it's being piped to - dest.emit('pipe', src); - - // start the flow if it hasn't been started already. - if (!state.flowing) { - debug('pipe resume'); - src.resume(); - } - - return dest; -}; - -function pipeOnDrain(src) { - return function() { - var state = src._readableState; - debug('pipeOnDrain', state.awaitDrain); - if (state.awaitDrain) - state.awaitDrain--; - if (state.awaitDrain === 0 && EE.listenerCount(src, 'data')) { - state.flowing = true; - flow(src); - } - }; -} - - -Readable.prototype.unpipe = function(dest) { - var state = this._readableState; - - // if we're not piping anywhere, then do nothing. - if (state.pipesCount === 0) - return this; - - // just one destination. most common case. - if (state.pipesCount === 1) { - // passed in one, but it's not the right one. - if (dest && dest !== state.pipes) - return this; - - if (!dest) - dest = state.pipes; - - // got a match. - state.pipes = null; - state.pipesCount = 0; - state.flowing = false; - if (dest) - dest.emit('unpipe', this); - return this; - } - - // slow case. multiple pipe destinations. - - if (!dest) { - // remove all. - var dests = state.pipes; - var len = state.pipesCount; - state.pipes = null; - state.pipesCount = 0; - state.flowing = false; - - for (var i = 0; i < len; i++) - dests[i].emit('unpipe', this); - return this; - } - - // try to find the right one. - var i = indexOf(state.pipes, dest); - if (i === -1) - return this; - - state.pipes.splice(i, 1); - state.pipesCount -= 1; - if (state.pipesCount === 1) - state.pipes = state.pipes[0]; - - dest.emit('unpipe', this); - - return this; -}; - -// set up data events if they are asked for -// Ensure readable listeners eventually get something -Readable.prototype.on = function(ev, fn) { - var res = Stream.prototype.on.call(this, ev, fn); - - // If listening to data, and it has not explicitly been paused, - // then call resume to start the flow of data on the next tick. - if (ev === 'data' && false !== this._readableState.flowing) { - this.resume(); - } - - if (ev === 'readable' && this.readable) { - var state = this._readableState; - if (!state.readableListening) { - state.readableListening = true; - state.emittedReadable = false; - state.needReadable = true; - if (!state.reading) { - var self = this; - process.nextTick(function() { - debug('readable nexttick read 0'); - self.read(0); - }); - } else if (state.length) { - emitReadable(this, state); - } - } - } - - return res; -}; -Readable.prototype.addListener = Readable.prototype.on; - -// pause() and resume() are remnants of the legacy readable stream API -// If the user uses them, then switch into old mode. -Readable.prototype.resume = function() { - var state = this._readableState; - if (!state.flowing) { - debug('resume'); - state.flowing = true; - if (!state.reading) { - debug('resume read 0'); - this.read(0); - } - resume(this, state); - } - return this; -}; - -function resume(stream, state) { - if (!state.resumeScheduled) { - state.resumeScheduled = true; - process.nextTick(function() { - resume_(stream, state); - }); - } -} - -function resume_(stream, state) { - state.resumeScheduled = false; - stream.emit('resume'); - flow(stream); - if (state.flowing && !state.reading) - stream.read(0); -} - -Readable.prototype.pause = function() { - debug('call pause flowing=%j', this._readableState.flowing); - if (false !== this._readableState.flowing) { - debug('pause'); - this._readableState.flowing = false; - this.emit('pause'); - } - return this; -}; - -function flow(stream) { - var state = stream._readableState; - debug('flow', state.flowing); - if (state.flowing) { - do { - var chunk = stream.read(); - } while (null !== chunk && state.flowing); - } -} - -// wrap an old-style stream as the async data source. -// This is *not* part of the readable stream interface. -// It is an ugly unfortunate mess of history. -Readable.prototype.wrap = function(stream) { - var state = this._readableState; - var paused = false; - - var self = this; - stream.on('end', function() { - debug('wrapped end'); - if (state.decoder && !state.ended) { - var chunk = state.decoder.end(); - if (chunk && chunk.length) - self.push(chunk); - } - - self.push(null); - }); - - stream.on('data', function(chunk) { - debug('wrapped data'); - if (state.decoder) - chunk = state.decoder.write(chunk); - if (!chunk || !state.objectMode && !chunk.length) - return; - - var ret = self.push(chunk); - if (!ret) { - paused = true; - stream.pause(); - } - }); - - // proxy all the other methods. - // important when wrapping filters and duplexes. - for (var i in stream) { - if (util.isFunction(stream[i]) && util.isUndefined(this[i])) { - this[i] = function(method) { return function() { - return stream[method].apply(stream, arguments); - }}(i); - } - } - - // proxy certain important events. - var events = ['error', 'close', 'destroy', 'pause', 'resume']; - forEach(events, function(ev) { - stream.on(ev, self.emit.bind(self, ev)); - }); - - // when we try to consume some more bytes, simply unpause the - // underlying stream. - self._read = function(n) { - debug('wrapped _read', n); - if (paused) { - paused = false; - stream.resume(); - } - }; - - return self; -}; - - - -// exposed for testing purposes only. -Readable._fromList = fromList; - -// Pluck off n bytes from an array of buffers. -// Length is the combined lengths of all the buffers in the list. -function fromList(n, state) { - var list = state.buffer; - var length = state.length; - var stringMode = !!state.decoder; - var objectMode = !!state.objectMode; - var ret; - - // nothing in the list, definitely empty. - if (list.length === 0) - return null; - - if (length === 0) - ret = null; - else if (objectMode) - ret = list.shift(); - else if (!n || n >= length) { - // read it all, truncate the array. - if (stringMode) - ret = list.join(''); - else - ret = Buffer.concat(list, length); - list.length = 0; - } else { - // read just some of it. - if (n < list[0].length) { - // just take a part of the first list item. - // slice is the same for buffers and strings. - var buf = list[0]; - ret = buf.slice(0, n); - list[0] = buf.slice(n); - } else if (n === list[0].length) { - // first list is a perfect match - ret = list.shift(); - } else { - // complex case. - // we have enough to cover it, but it spans past the first buffer. - if (stringMode) - ret = ''; - else - ret = new Buffer(n); - - var c = 0; - for (var i = 0, l = list.length; i < l && c < n; i++) { - var buf = list[0]; - var cpy = Math.min(n - c, buf.length); - - if (stringMode) - ret += buf.slice(0, cpy); - else - buf.copy(ret, c, 0, cpy); - - if (cpy < buf.length) - list[0] = buf.slice(cpy); - else - list.shift(); - - c += cpy; - } - } - } - - return ret; -} - -function endReadable(stream) { - var state = stream._readableState; - - // If we get here before consuming all the bytes, then that is a - // bug in node. Should never happen. - if (state.length > 0) - throw new Error('endReadable called on non-empty stream'); - - if (!state.endEmitted) { - state.ended = true; - process.nextTick(function() { - // Check that we didn't get one last unshift. - if (!state.endEmitted && state.length === 0) { - state.endEmitted = true; - stream.readable = false; - stream.emit('end'); - } - }); - } -} - -function forEach (xs, f) { - for (var i = 0, l = xs.length; i < l; i++) { - f(xs[i], i); - } -} - -function indexOf (xs, x) { - for (var i = 0, l = xs.length; i < l; i++) { - if (xs[i] === x) return i; - } - return -1; -} - - -/***/ }), - -/***/ 34415: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -// Copyright Joyent, Inc. and other Node contributors. -// -// Permission is hereby granted, free of charge, to any person obtaining a -// copy of this software and associated documentation files (the -// "Software"), to deal in the Software without restriction, including -// without limitation the rights to use, copy, modify, merge, publish, -// distribute, sublicense, and/or sell copies of the Software, and to permit -// persons to whom the Software is furnished to do so, subject to the -// following conditions: -// -// The above copyright notice and this permission notice shall be included -// in all copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS -// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN -// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, -// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR -// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE -// USE OR OTHER DEALINGS IN THE SOFTWARE. - - -// a transform stream is a readable/writable stream where you do -// something with the data. Sometimes it's called a "filter", -// but that's not a great name for it, since that implies a thing where -// some bits pass through, and others are simply ignored. (That would -// be a valid example of a transform, of course.) -// -// While the output is causally related to the input, it's not a -// necessarily symmetric or synchronous transformation. For example, -// a zlib stream might take multiple plain-text writes(), and then -// emit a single compressed chunk some time in the future. -// -// Here's how this works: -// -// The Transform stream has all the aspects of the readable and writable -// stream classes. When you write(chunk), that calls _write(chunk,cb) -// internally, and returns false if there's a lot of pending writes -// buffered up. When you call read(), that calls _read(n) until -// there's enough pending readable data buffered up. -// -// In a transform stream, the written data is placed in a buffer. When -// _read(n) is called, it transforms the queued up data, calling the -// buffered _write cb's as it consumes chunks. If consuming a single -// written chunk would result in multiple output chunks, then the first -// outputted bit calls the readcb, and subsequent chunks just go into -// the read buffer, and will cause it to emit 'readable' if necessary. -// -// This way, back-pressure is actually determined by the reading side, -// since _read has to be called to start processing a new chunk. However, -// a pathological inflate type of transform can cause excessive buffering -// here. For example, imagine a stream where every byte of input is -// interpreted as an integer from 0-255, and then results in that many -// bytes of output. Writing the 4 bytes {ff,ff,ff,ff} would result in -// 1kb of data being output. In this case, you could write a very small -// amount of input, and end up with a very large amount of output. In -// such a pathological inflating mechanism, there'd be no way to tell -// the system to stop doing the transform. A single 4MB write could -// cause the system to run out of memory. -// -// However, even in such a pathological case, only a single written chunk -// would be consumed, and then the rest would wait (un-transformed) until -// the results of the previous transformed chunk were consumed. - -module.exports = Transform; - -var Duplex = __nccwpck_require__(41359); - -/**/ -var util = __nccwpck_require__(95898); -util.inherits = __nccwpck_require__(44124); -/**/ - -util.inherits(Transform, Duplex); - - -function TransformState(options, stream) { - this.afterTransform = function(er, data) { - return afterTransform(stream, er, data); - }; - - this.needTransform = false; - this.transforming = false; - this.writecb = null; - this.writechunk = null; -} - -function afterTransform(stream, er, data) { - var ts = stream._transformState; - ts.transforming = false; - - var cb = ts.writecb; - - if (!cb) - return stream.emit('error', new Error('no writecb in Transform class')); - - ts.writechunk = null; - ts.writecb = null; - - if (!util.isNullOrUndefined(data)) - stream.push(data); - - if (cb) - cb(er); - - var rs = stream._readableState; - rs.reading = false; - if (rs.needReadable || rs.length < rs.highWaterMark) { - stream._read(rs.highWaterMark); - } -} - - -function Transform(options) { - if (!(this instanceof Transform)) - return new Transform(options); - - Duplex.call(this, options); - - this._transformState = new TransformState(options, this); - - // when the writable side finishes, then flush out anything remaining. - var stream = this; - - // start out asking for a readable event once data is transformed. - this._readableState.needReadable = true; - - // we have implemented the _read method, and done the other things - // that Readable wants before the first _read call, so unset the - // sync guard flag. - this._readableState.sync = false; - - this.once('prefinish', function() { - if (util.isFunction(this._flush)) - this._flush(function(er) { - done(stream, er); - }); - else - done(stream); - }); -} - -Transform.prototype.push = function(chunk, encoding) { - this._transformState.needTransform = false; - return Duplex.prototype.push.call(this, chunk, encoding); -}; - -// This is the part where you do stuff! -// override this function in implementation classes. -// 'chunk' is an input chunk. -// -// Call `push(newChunk)` to pass along transformed output -// to the readable side. You may call 'push' zero or more times. -// -// Call `cb(err)` when you are done with this chunk. If you pass -// an error, then that'll put the hurt on the whole operation. If you -// never call cb(), then you'll never get another chunk. -Transform.prototype._transform = function(chunk, encoding, cb) { - throw new Error('not implemented'); -}; - -Transform.prototype._write = function(chunk, encoding, cb) { - var ts = this._transformState; - ts.writecb = cb; - ts.writechunk = chunk; - ts.writeencoding = encoding; - if (!ts.transforming) { - var rs = this._readableState; - if (ts.needTransform || - rs.needReadable || - rs.length < rs.highWaterMark) - this._read(rs.highWaterMark); - } -}; - -// Doesn't matter what the args are here. -// _transform does all the work. -// That we got here means that the readable side wants more data. -Transform.prototype._read = function(n) { - var ts = this._transformState; - - if (!util.isNull(ts.writechunk) && ts.writecb && !ts.transforming) { - ts.transforming = true; - this._transform(ts.writechunk, ts.writeencoding, ts.afterTransform); - } else { - // mark that we need a transform, so that any data that comes in - // will get processed, now that we've asked for it. - ts.needTransform = true; - } -}; - - -function done(stream, er) { - if (er) - return stream.emit('error', er); - - // if there's nothing in the write buffer, then that means - // that nothing more will ever be provided - var ws = stream._writableState; - var ts = stream._transformState; - - if (ws.length) - throw new Error('calling transform done when ws.length != 0'); - - if (ts.transforming) - throw new Error('calling transform done when still transforming'); - - return stream.push(null); -} - - -/***/ }), - -/***/ 26993: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -// Copyright Joyent, Inc. and other Node contributors. -// -// Permission is hereby granted, free of charge, to any person obtaining a -// copy of this software and associated documentation files (the -// "Software"), to deal in the Software without restriction, including -// without limitation the rights to use, copy, modify, merge, publish, -// distribute, sublicense, and/or sell copies of the Software, and to permit -// persons to whom the Software is furnished to do so, subject to the -// following conditions: -// -// The above copyright notice and this permission notice shall be included -// in all copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS -// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN -// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, -// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR -// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE -// USE OR OTHER DEALINGS IN THE SOFTWARE. - -// A bit simpler than readable streams. -// Implement an async ._write(chunk, cb), and it'll handle all -// the drain event emission and buffering. - -module.exports = Writable; - -/**/ -var Buffer = __nccwpck_require__(64293).Buffer; -/**/ - -Writable.WritableState = WritableState; - - -/**/ -var util = __nccwpck_require__(95898); -util.inherits = __nccwpck_require__(44124); -/**/ - -var Stream = __nccwpck_require__(92413); - -util.inherits(Writable, Stream); - -function WriteReq(chunk, encoding, cb) { - this.chunk = chunk; - this.encoding = encoding; - this.callback = cb; -} - -function WritableState(options, stream) { - var Duplex = __nccwpck_require__(41359); - - options = options || {}; - - // the point at which write() starts returning false - // Note: 0 is a valid value, means that we always return false if - // the entire buffer is not flushed immediately on write() - var hwm = options.highWaterMark; - var defaultHwm = options.objectMode ? 16 : 16 * 1024; - this.highWaterMark = (hwm || hwm === 0) ? hwm : defaultHwm; - - // object stream flag to indicate whether or not this stream - // contains buffers or objects. - this.objectMode = !!options.objectMode; - - if (stream instanceof Duplex) - this.objectMode = this.objectMode || !!options.writableObjectMode; - - // cast to ints. - this.highWaterMark = ~~this.highWaterMark; - - this.needDrain = false; - // at the start of calling end() - this.ending = false; - // when end() has been called, and returned - this.ended = false; - // when 'finish' is emitted - this.finished = false; - - // should we decode strings into buffers before passing to _write? - // this is here so that some node-core streams can optimize string - // handling at a lower level. - var noDecode = options.decodeStrings === false; - this.decodeStrings = !noDecode; - - // Crypto is kind of old and crusty. Historically, its default string - // encoding is 'binary' so we have to make this configurable. - // Everything else in the universe uses 'utf8', though. - this.defaultEncoding = options.defaultEncoding || 'utf8'; - - // not an actual buffer we keep track of, but a measurement - // of how much we're waiting to get pushed to some underlying - // socket or file. - this.length = 0; - - // a flag to see when we're in the middle of a write. - this.writing = false; - - // when true all writes will be buffered until .uncork() call - this.corked = 0; - - // a flag to be able to tell if the onwrite cb is called immediately, - // or on a later tick. We set this to true at first, because any - // actions that shouldn't happen until "later" should generally also - // not happen before the first write call. - this.sync = true; - - // a flag to know if we're processing previously buffered items, which - // may call the _write() callback in the same tick, so that we don't - // end up in an overlapped onwrite situation. - this.bufferProcessing = false; - - // the callback that's passed to _write(chunk,cb) - this.onwrite = function(er) { - onwrite(stream, er); - }; - - // the callback that the user supplies to write(chunk,encoding,cb) - this.writecb = null; - - // the amount that is being written when _write is called. - this.writelen = 0; - - this.buffer = []; - - // number of pending user-supplied write callbacks - // this must be 0 before 'finish' can be emitted - this.pendingcb = 0; - - // emit prefinish if the only thing we're waiting for is _write cbs - // This is relevant for synchronous Transform streams - this.prefinished = false; - - // True if the error was already emitted and should not be thrown again - this.errorEmitted = false; -} - -function Writable(options) { - var Duplex = __nccwpck_require__(41359); - - // Writable ctor is applied to Duplexes, though they're not - // instanceof Writable, they're instanceof Readable. - if (!(this instanceof Writable) && !(this instanceof Duplex)) - return new Writable(options); - - this._writableState = new WritableState(options, this); - - // legacy. - this.writable = true; - - Stream.call(this); -} - -// Otherwise people can pipe Writable streams, which is just wrong. -Writable.prototype.pipe = function() { - this.emit('error', new Error('Cannot pipe. Not readable.')); -}; - - -function writeAfterEnd(stream, state, cb) { - var er = new Error('write after end'); - // TODO: defer error events consistently everywhere, not just the cb - stream.emit('error', er); - process.nextTick(function() { - cb(er); - }); -} - -// If we get something that is not a buffer, string, null, or undefined, -// and we're not in objectMode, then that's an error. -// Otherwise stream chunks are all considered to be of length=1, and the -// watermarks determine how many objects to keep in the buffer, rather than -// how many bytes or characters. -function validChunk(stream, state, chunk, cb) { - var valid = true; - if (!util.isBuffer(chunk) && - !util.isString(chunk) && - !util.isNullOrUndefined(chunk) && - !state.objectMode) { - var er = new TypeError('Invalid non-string/buffer chunk'); - stream.emit('error', er); - process.nextTick(function() { - cb(er); - }); - valid = false; - } - return valid; -} - -Writable.prototype.write = function(chunk, encoding, cb) { - var state = this._writableState; - var ret = false; - - if (util.isFunction(encoding)) { - cb = encoding; - encoding = null; - } - - if (util.isBuffer(chunk)) - encoding = 'buffer'; - else if (!encoding) - encoding = state.defaultEncoding; - - if (!util.isFunction(cb)) - cb = function() {}; - - if (state.ended) - writeAfterEnd(this, state, cb); - else if (validChunk(this, state, chunk, cb)) { - state.pendingcb++; - ret = writeOrBuffer(this, state, chunk, encoding, cb); - } - - return ret; -}; - -Writable.prototype.cork = function() { - var state = this._writableState; - - state.corked++; -}; - -Writable.prototype.uncork = function() { - var state = this._writableState; - - if (state.corked) { - state.corked--; - - if (!state.writing && - !state.corked && - !state.finished && - !state.bufferProcessing && - state.buffer.length) - clearBuffer(this, state); - } -}; - -function decodeChunk(state, chunk, encoding) { - if (!state.objectMode && - state.decodeStrings !== false && - util.isString(chunk)) { - chunk = new Buffer(chunk, encoding); - } - return chunk; -} - -// if we're already writing something, then just put this -// in the queue, and wait our turn. Otherwise, call _write -// If we return false, then we need a drain event, so set that flag. -function writeOrBuffer(stream, state, chunk, encoding, cb) { - chunk = decodeChunk(state, chunk, encoding); - if (util.isBuffer(chunk)) - encoding = 'buffer'; - var len = state.objectMode ? 1 : chunk.length; - - state.length += len; - - var ret = state.length < state.highWaterMark; - // we must ensure that previous needDrain will not be reset to false. - if (!ret) - state.needDrain = true; - - if (state.writing || state.corked) - state.buffer.push(new WriteReq(chunk, encoding, cb)); - else - doWrite(stream, state, false, len, chunk, encoding, cb); - - return ret; -} - -function doWrite(stream, state, writev, len, chunk, encoding, cb) { - state.writelen = len; - state.writecb = cb; - state.writing = true; - state.sync = true; - if (writev) - stream._writev(chunk, state.onwrite); - else - stream._write(chunk, encoding, state.onwrite); - state.sync = false; -} - -function onwriteError(stream, state, sync, er, cb) { - if (sync) - process.nextTick(function() { - state.pendingcb--; - cb(er); - }); - else { - state.pendingcb--; - cb(er); - } - - stream._writableState.errorEmitted = true; - stream.emit('error', er); -} - -function onwriteStateUpdate(state) { - state.writing = false; - state.writecb = null; - state.length -= state.writelen; - state.writelen = 0; -} - -function onwrite(stream, er) { - var state = stream._writableState; - var sync = state.sync; - var cb = state.writecb; - - onwriteStateUpdate(state); - - if (er) - onwriteError(stream, state, sync, er, cb); - else { - // Check if we're actually ready to finish, but don't emit yet - var finished = needFinish(stream, state); - - if (!finished && - !state.corked && - !state.bufferProcessing && - state.buffer.length) { - clearBuffer(stream, state); - } - - if (sync) { - process.nextTick(function() { - afterWrite(stream, state, finished, cb); - }); - } else { - afterWrite(stream, state, finished, cb); - } - } -} - -function afterWrite(stream, state, finished, cb) { - if (!finished) - onwriteDrain(stream, state); - state.pendingcb--; - cb(); - finishMaybe(stream, state); -} - -// Must force callback to be called on nextTick, so that we don't -// emit 'drain' before the write() consumer gets the 'false' return -// value, and has a chance to attach a 'drain' listener. -function onwriteDrain(stream, state) { - if (state.length === 0 && state.needDrain) { - state.needDrain = false; - stream.emit('drain'); - } -} - - -// if there's something in the buffer waiting, then process it -function clearBuffer(stream, state) { - state.bufferProcessing = true; - - if (stream._writev && state.buffer.length > 1) { - // Fast case, write everything using _writev() - var cbs = []; - for (var c = 0; c < state.buffer.length; c++) - cbs.push(state.buffer[c].callback); - - // count the one we are adding, as well. - // TODO(isaacs) clean this up - state.pendingcb++; - doWrite(stream, state, true, state.length, state.buffer, '', function(err) { - for (var i = 0; i < cbs.length; i++) { - state.pendingcb--; - cbs[i](err); - } - }); - - // Clear buffer - state.buffer = []; - } else { - // Slow case, write chunks one-by-one - for (var c = 0; c < state.buffer.length; c++) { - var entry = state.buffer[c]; - var chunk = entry.chunk; - var encoding = entry.encoding; - var cb = entry.callback; - var len = state.objectMode ? 1 : chunk.length; - - doWrite(stream, state, false, len, chunk, encoding, cb); - - // if we didn't call the onwrite immediately, then - // it means that we need to wait until it does. - // also, that means that the chunk and cb are currently - // being processed, so move the buffer counter past them. - if (state.writing) { - c++; - break; - } - } - - if (c < state.buffer.length) - state.buffer = state.buffer.slice(c); - else - state.buffer.length = 0; - } - - state.bufferProcessing = false; -} - -Writable.prototype._write = function(chunk, encoding, cb) { - cb(new Error('not implemented')); - -}; - -Writable.prototype._writev = null; - -Writable.prototype.end = function(chunk, encoding, cb) { - var state = this._writableState; - - if (util.isFunction(chunk)) { - cb = chunk; - chunk = null; - encoding = null; - } else if (util.isFunction(encoding)) { - cb = encoding; - encoding = null; - } - - if (!util.isNullOrUndefined(chunk)) - this.write(chunk, encoding); - - // .end() fully uncorks - if (state.corked) { - state.corked = 1; - this.uncork(); - } - - // ignore unnecessary end() calls. - if (!state.ending && !state.finished) - endWritable(this, state, cb); -}; - - -function needFinish(stream, state) { - return (state.ending && - state.length === 0 && - !state.finished && - !state.writing); -} - -function prefinish(stream, state) { - if (!state.prefinished) { - state.prefinished = true; - stream.emit('prefinish'); - } -} - -function finishMaybe(stream, state) { - var need = needFinish(stream, state); - if (need) { - if (state.pendingcb === 0) { - prefinish(stream, state); - state.finished = true; - stream.emit('finish'); - } else - prefinish(stream, state); - } - return need; -} - -function endWritable(stream, state, cb) { - state.ending = true; - finishMaybe(stream, state); - if (cb) { - if (state.finished) - process.nextTick(cb); - else - stream.once('finish', cb); - } - state.ended = true; -} - - -/***/ }), - -/***/ 51642: -/***/ ((module, exports, __nccwpck_require__) => { - -exports = module.exports = __nccwpck_require__(51433); -exports.Stream = __nccwpck_require__(92413); -exports.Readable = exports; -exports.Writable = __nccwpck_require__(26993); -exports.Duplex = __nccwpck_require__(41359); -exports.Transform = __nccwpck_require__(34415); -exports.PassThrough = __nccwpck_require__(81542); -if (!process.browser && process.env.READABLE_STREAM === 'disable') { - module.exports = __nccwpck_require__(92413); -} - - -/***/ }), - -/***/ 15118: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -"use strict"; -/* eslint-disable node/no-deprecated-api */ - - - -var buffer = __nccwpck_require__(64293) -var Buffer = buffer.Buffer - -var safer = {} - -var key - -for (key in buffer) { - if (!buffer.hasOwnProperty(key)) continue - if (key === 'SlowBuffer' || key === 'Buffer') continue - safer[key] = buffer[key] -} - -var Safer = safer.Buffer = {} -for (key in Buffer) { - if (!Buffer.hasOwnProperty(key)) continue - if (key === 'allocUnsafe' || key === 'allocUnsafeSlow') continue - Safer[key] = Buffer[key] -} - -safer.Buffer.prototype = Buffer.prototype - -if (!Safer.from || Safer.from === Uint8Array.from) { - Safer.from = function (value, encodingOrOffset, length) { - if (typeof value === 'number') { - throw new TypeError('The "value" argument must not be of type number. Received type ' + typeof value) - } - if (value && typeof value.length === 'undefined') { - throw new TypeError('The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type ' + typeof value) - } - return Buffer(value, encodingOrOffset, length) - } -} - -if (!Safer.alloc) { - Safer.alloc = function (size, fill, encoding) { - if (typeof size !== 'number') { - throw new TypeError('The "size" argument must be of type number. Received type ' + typeof size) - } - if (size < 0 || size >= 2 * (1 << 30)) { - throw new RangeError('The value "' + size + '" is invalid for option "size"') - } - var buf = Buffer(size) - if (!fill || fill.length === 0) { - buf.fill(0) - } else if (typeof encoding === 'string') { - buf.fill(fill, encoding) - } else { - buf.fill(fill) - } - return buf - } -} - -if (!safer.kStringMaxLength) { - try { - safer.kStringMaxLength = process.binding('buffer').kStringMaxLength - } catch (e) { - // we can't determine kStringMaxLength in environments where process.binding - // is unsupported, so let's not set it - } -} - -if (!safer.constants) { - safer.constants = { - MAX_LENGTH: safer.kMaxLength - } - if (safer.kStringMaxLength) { - safer.constants.MAX_STRING_LENGTH = safer.kStringMaxLength - } -} - -module.exports = safer - - -/***/ }), - -/***/ 40414: -/***/ ((module) => { - -"use strict"; - -/* eslint no-proto: 0 */ -module.exports = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array ? setProtoOf : mixinProperties) - -function setProtoOf (obj, proto) { - obj.__proto__ = proto - return obj -} - -function mixinProperties (obj, proto) { - for (var prop in proto) { - if (!Object.prototype.hasOwnProperty.call(obj, prop)) { - obj[prop] = proto[prop] - } - } - return obj -} - - -/***/ }), - -/***/ 71062: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -const utils_1 = __nccwpck_require__(98132); -// The default Buffer size if one is not provided. -const DEFAULT_SMARTBUFFER_SIZE = 4096; -// The default string encoding to use for reading/writing strings. -const DEFAULT_SMARTBUFFER_ENCODING = 'utf8'; -class SmartBuffer { - /** - * Creates a new SmartBuffer instance. - * - * @param options { SmartBufferOptions } The SmartBufferOptions to apply to this instance. - */ - constructor(options) { - this.length = 0; - this._encoding = DEFAULT_SMARTBUFFER_ENCODING; - this._writeOffset = 0; - this._readOffset = 0; - if (SmartBuffer.isSmartBufferOptions(options)) { - // Checks for encoding - if (options.encoding) { - utils_1.checkEncoding(options.encoding); - this._encoding = options.encoding; - } - // Checks for initial size length - if (options.size) { - if (utils_1.isFiniteInteger(options.size) && options.size > 0) { - this._buff = Buffer.allocUnsafe(options.size); - } - else { - throw new Error(utils_1.ERRORS.INVALID_SMARTBUFFER_SIZE); - } - // Check for initial Buffer - } - else if (options.buff) { - if (Buffer.isBuffer(options.buff)) { - this._buff = options.buff; - this.length = options.buff.length; - } - else { - throw new Error(utils_1.ERRORS.INVALID_SMARTBUFFER_BUFFER); - } - } - else { - this._buff = Buffer.allocUnsafe(DEFAULT_SMARTBUFFER_SIZE); - } - } - else { - // If something was passed but it's not a SmartBufferOptions object - if (typeof options !== 'undefined') { - throw new Error(utils_1.ERRORS.INVALID_SMARTBUFFER_OBJECT); - } - // Otherwise default to sane options - this._buff = Buffer.allocUnsafe(DEFAULT_SMARTBUFFER_SIZE); - } - } - /** - * Creates a new SmartBuffer instance with the provided internal Buffer size and optional encoding. - * - * @param size { Number } The size of the internal Buffer. - * @param encoding { String } The BufferEncoding to use for strings. - * - * @return { SmartBuffer } - */ - static fromSize(size, encoding) { - return new this({ - size: size, - encoding: encoding - }); - } - /** - * Creates a new SmartBuffer instance with the provided Buffer and optional encoding. - * - * @param buffer { Buffer } The Buffer to use as the internal Buffer value. - * @param encoding { String } The BufferEncoding to use for strings. - * - * @return { SmartBuffer } - */ - static fromBuffer(buff, encoding) { - return new this({ - buff: buff, - encoding: encoding - }); - } - /** - * Creates a new SmartBuffer instance with the provided SmartBufferOptions options. - * - * @param options { SmartBufferOptions } The options to use when creating the SmartBuffer instance. - */ - static fromOptions(options) { - return new this(options); - } - /** - * Type checking function that determines if an object is a SmartBufferOptions object. - */ - static isSmartBufferOptions(options) { - const castOptions = options; - return (castOptions && - (castOptions.encoding !== undefined || castOptions.size !== undefined || castOptions.buff !== undefined)); - } - // Signed integers - /** - * Reads an Int8 value from the current read position or an optionally provided offset. - * - * @param offset { Number } The offset to read data from (optional) - * @return { Number } - */ - readInt8(offset) { - return this._readNumberValue(Buffer.prototype.readInt8, 1, offset); - } - /** - * Reads an Int16BE value from the current read position or an optionally provided offset. - * - * @param offset { Number } The offset to read data from (optional) - * @return { Number } - */ - readInt16BE(offset) { - return this._readNumberValue(Buffer.prototype.readInt16BE, 2, offset); - } - /** - * Reads an Int16LE value from the current read position or an optionally provided offset. - * - * @param offset { Number } The offset to read data from (optional) - * @return { Number } - */ - readInt16LE(offset) { - return this._readNumberValue(Buffer.prototype.readInt16LE, 2, offset); - } - /** - * Reads an Int32BE value from the current read position or an optionally provided offset. - * - * @param offset { Number } The offset to read data from (optional) - * @return { Number } - */ - readInt32BE(offset) { - return this._readNumberValue(Buffer.prototype.readInt32BE, 4, offset); - } - /** - * Reads an Int32LE value from the current read position or an optionally provided offset. - * - * @param offset { Number } The offset to read data from (optional) - * @return { Number } - */ - readInt32LE(offset) { - return this._readNumberValue(Buffer.prototype.readInt32LE, 4, offset); - } - /** - * Reads a BigInt64BE value from the current read position or an optionally provided offset. - * - * @param offset { Number } The offset to read data from (optional) - * @return { BigInt } - */ - readBigInt64BE(offset) { - utils_1.bigIntAndBufferInt64Check('readBigInt64BE'); - return this._readNumberValue(Buffer.prototype.readBigInt64BE, 8, offset); - } - /** - * Reads a BigInt64LE value from the current read position or an optionally provided offset. - * - * @param offset { Number } The offset to read data from (optional) - * @return { BigInt } - */ - readBigInt64LE(offset) { - utils_1.bigIntAndBufferInt64Check('readBigInt64LE'); - return this._readNumberValue(Buffer.prototype.readBigInt64LE, 8, offset); - } - /** - * Writes an Int8 value to the current write position (or at optional offset). - * - * @param value { Number } The value to write. - * @param offset { Number } The offset to write the value at. - * - * @return this - */ - writeInt8(value, offset) { - this._writeNumberValue(Buffer.prototype.writeInt8, 1, value, offset); - return this; - } - /** - * Inserts an Int8 value at the given offset value. - * - * @param value { Number } The value to insert. - * @param offset { Number } The offset to insert the value at. - * - * @return this - */ - insertInt8(value, offset) { - return this._insertNumberValue(Buffer.prototype.writeInt8, 1, value, offset); - } - /** - * Writes an Int16BE value to the current write position (or at optional offset). - * - * @param value { Number } The value to write. - * @param offset { Number } The offset to write the value at. - * - * @return this - */ - writeInt16BE(value, offset) { - return this._writeNumberValue(Buffer.prototype.writeInt16BE, 2, value, offset); - } - /** - * Inserts an Int16BE value at the given offset value. - * - * @param value { Number } The value to insert. - * @param offset { Number } The offset to insert the value at. - * - * @return this - */ - insertInt16BE(value, offset) { - return this._insertNumberValue(Buffer.prototype.writeInt16BE, 2, value, offset); - } - /** - * Writes an Int16LE value to the current write position (or at optional offset). - * - * @param value { Number } The value to write. - * @param offset { Number } The offset to write the value at. - * - * @return this - */ - writeInt16LE(value, offset) { - return this._writeNumberValue(Buffer.prototype.writeInt16LE, 2, value, offset); - } - /** - * Inserts an Int16LE value at the given offset value. - * - * @param value { Number } The value to insert. - * @param offset { Number } The offset to insert the value at. - * - * @return this - */ - insertInt16LE(value, offset) { - return this._insertNumberValue(Buffer.prototype.writeInt16LE, 2, value, offset); - } - /** - * Writes an Int32BE value to the current write position (or at optional offset). - * - * @param value { Number } The value to write. - * @param offset { Number } The offset to write the value at. - * - * @return this - */ - writeInt32BE(value, offset) { - return this._writeNumberValue(Buffer.prototype.writeInt32BE, 4, value, offset); - } - /** - * Inserts an Int32BE value at the given offset value. - * - * @param value { Number } The value to insert. - * @param offset { Number } The offset to insert the value at. - * - * @return this - */ - insertInt32BE(value, offset) { - return this._insertNumberValue(Buffer.prototype.writeInt32BE, 4, value, offset); - } - /** - * Writes an Int32LE value to the current write position (or at optional offset). - * - * @param value { Number } The value to write. - * @param offset { Number } The offset to write the value at. - * - * @return this - */ - writeInt32LE(value, offset) { - return this._writeNumberValue(Buffer.prototype.writeInt32LE, 4, value, offset); - } - /** - * Inserts an Int32LE value at the given offset value. - * - * @param value { Number } The value to insert. - * @param offset { Number } The offset to insert the value at. - * - * @return this - */ - insertInt32LE(value, offset) { - return this._insertNumberValue(Buffer.prototype.writeInt32LE, 4, value, offset); - } - /** - * Writes a BigInt64BE value to the current write position (or at optional offset). - * - * @param value { BigInt } The value to write. - * @param offset { Number } The offset to write the value at. - * - * @return this - */ - writeBigInt64BE(value, offset) { - utils_1.bigIntAndBufferInt64Check('writeBigInt64BE'); - return this._writeNumberValue(Buffer.prototype.writeBigInt64BE, 8, value, offset); - } - /** - * Inserts a BigInt64BE value at the given offset value. - * - * @param value { BigInt } The value to insert. - * @param offset { Number } The offset to insert the value at. - * - * @return this - */ - insertBigInt64BE(value, offset) { - utils_1.bigIntAndBufferInt64Check('writeBigInt64BE'); - return this._insertNumberValue(Buffer.prototype.writeBigInt64BE, 8, value, offset); - } - /** - * Writes a BigInt64LE value to the current write position (or at optional offset). - * - * @param value { BigInt } The value to write. - * @param offset { Number } The offset to write the value at. - * - * @return this - */ - writeBigInt64LE(value, offset) { - utils_1.bigIntAndBufferInt64Check('writeBigInt64LE'); - return this._writeNumberValue(Buffer.prototype.writeBigInt64LE, 8, value, offset); - } - /** - * Inserts a Int64LE value at the given offset value. - * - * @param value { BigInt } The value to insert. - * @param offset { Number } The offset to insert the value at. - * - * @return this - */ - insertBigInt64LE(value, offset) { - utils_1.bigIntAndBufferInt64Check('writeBigInt64LE'); - return this._insertNumberValue(Buffer.prototype.writeBigInt64LE, 8, value, offset); - } - // Unsigned Integers - /** - * Reads an UInt8 value from the current read position or an optionally provided offset. - * - * @param offset { Number } The offset to read data from (optional) - * @return { Number } - */ - readUInt8(offset) { - return this._readNumberValue(Buffer.prototype.readUInt8, 1, offset); - } - /** - * Reads an UInt16BE value from the current read position or an optionally provided offset. - * - * @param offset { Number } The offset to read data from (optional) - * @return { Number } - */ - readUInt16BE(offset) { - return this._readNumberValue(Buffer.prototype.readUInt16BE, 2, offset); - } - /** - * Reads an UInt16LE value from the current read position or an optionally provided offset. - * - * @param offset { Number } The offset to read data from (optional) - * @return { Number } - */ - readUInt16LE(offset) { - return this._readNumberValue(Buffer.prototype.readUInt16LE, 2, offset); - } - /** - * Reads an UInt32BE value from the current read position or an optionally provided offset. - * - * @param offset { Number } The offset to read data from (optional) - * @return { Number } - */ - readUInt32BE(offset) { - return this._readNumberValue(Buffer.prototype.readUInt32BE, 4, offset); - } - /** - * Reads an UInt32LE value from the current read position or an optionally provided offset. - * - * @param offset { Number } The offset to read data from (optional) - * @return { Number } - */ - readUInt32LE(offset) { - return this._readNumberValue(Buffer.prototype.readUInt32LE, 4, offset); - } - /** - * Reads a BigUInt64BE value from the current read position or an optionally provided offset. - * - * @param offset { Number } The offset to read data from (optional) - * @return { BigInt } - */ - readBigUInt64BE(offset) { - utils_1.bigIntAndBufferInt64Check('readBigUInt64BE'); - return this._readNumberValue(Buffer.prototype.readBigUInt64BE, 8, offset); - } - /** - * Reads a BigUInt64LE value from the current read position or an optionally provided offset. - * - * @param offset { Number } The offset to read data from (optional) - * @return { BigInt } - */ - readBigUInt64LE(offset) { - utils_1.bigIntAndBufferInt64Check('readBigUInt64LE'); - return this._readNumberValue(Buffer.prototype.readBigUInt64LE, 8, offset); - } - /** - * Writes an UInt8 value to the current write position (or at optional offset). - * - * @param value { Number } The value to write. - * @param offset { Number } The offset to write the value at. - * - * @return this - */ - writeUInt8(value, offset) { - return this._writeNumberValue(Buffer.prototype.writeUInt8, 1, value, offset); - } - /** - * Inserts an UInt8 value at the given offset value. - * - * @param value { Number } The value to insert. - * @param offset { Number } The offset to insert the value at. - * - * @return this - */ - insertUInt8(value, offset) { - return this._insertNumberValue(Buffer.prototype.writeUInt8, 1, value, offset); - } - /** - * Writes an UInt16BE value to the current write position (or at optional offset). - * - * @param value { Number } The value to write. - * @param offset { Number } The offset to write the value at. - * - * @return this - */ - writeUInt16BE(value, offset) { - return this._writeNumberValue(Buffer.prototype.writeUInt16BE, 2, value, offset); - } - /** - * Inserts an UInt16BE value at the given offset value. - * - * @param value { Number } The value to insert. - * @param offset { Number } The offset to insert the value at. - * - * @return this - */ - insertUInt16BE(value, offset) { - return this._insertNumberValue(Buffer.prototype.writeUInt16BE, 2, value, offset); - } - /** - * Writes an UInt16LE value to the current write position (or at optional offset). - * - * @param value { Number } The value to write. - * @param offset { Number } The offset to write the value at. - * - * @return this - */ - writeUInt16LE(value, offset) { - return this._writeNumberValue(Buffer.prototype.writeUInt16LE, 2, value, offset); - } - /** - * Inserts an UInt16LE value at the given offset value. - * - * @param value { Number } The value to insert. - * @param offset { Number } The offset to insert the value at. - * - * @return this - */ - insertUInt16LE(value, offset) { - return this._insertNumberValue(Buffer.prototype.writeUInt16LE, 2, value, offset); - } - /** - * Writes an UInt32BE value to the current write position (or at optional offset). - * - * @param value { Number } The value to write. - * @param offset { Number } The offset to write the value at. - * - * @return this - */ - writeUInt32BE(value, offset) { - return this._writeNumberValue(Buffer.prototype.writeUInt32BE, 4, value, offset); - } - /** - * Inserts an UInt32BE value at the given offset value. - * - * @param value { Number } The value to insert. - * @param offset { Number } The offset to insert the value at. - * - * @return this - */ - insertUInt32BE(value, offset) { - return this._insertNumberValue(Buffer.prototype.writeUInt32BE, 4, value, offset); - } - /** - * Writes an UInt32LE value to the current write position (or at optional offset). - * - * @param value { Number } The value to write. - * @param offset { Number } The offset to write the value at. - * - * @return this - */ - writeUInt32LE(value, offset) { - return this._writeNumberValue(Buffer.prototype.writeUInt32LE, 4, value, offset); - } - /** - * Inserts an UInt32LE value at the given offset value. - * - * @param value { Number } The value to insert. - * @param offset { Number } The offset to insert the value at. - * - * @return this - */ - insertUInt32LE(value, offset) { - return this._insertNumberValue(Buffer.prototype.writeUInt32LE, 4, value, offset); - } - /** - * Writes a BigUInt64BE value to the current write position (or at optional offset). - * - * @param value { Number } The value to write. - * @param offset { Number } The offset to write the value at. - * - * @return this - */ - writeBigUInt64BE(value, offset) { - utils_1.bigIntAndBufferInt64Check('writeBigUInt64BE'); - return this._writeNumberValue(Buffer.prototype.writeBigUInt64BE, 8, value, offset); - } - /** - * Inserts a BigUInt64BE value at the given offset value. - * - * @param value { Number } The value to insert. - * @param offset { Number } The offset to insert the value at. - * - * @return this - */ - insertBigUInt64BE(value, offset) { - utils_1.bigIntAndBufferInt64Check('writeBigUInt64BE'); - return this._insertNumberValue(Buffer.prototype.writeBigUInt64BE, 8, value, offset); - } - /** - * Writes a BigUInt64LE value to the current write position (or at optional offset). - * - * @param value { Number } The value to write. - * @param offset { Number } The offset to write the value at. - * - * @return this - */ - writeBigUInt64LE(value, offset) { - utils_1.bigIntAndBufferInt64Check('writeBigUInt64LE'); - return this._writeNumberValue(Buffer.prototype.writeBigUInt64LE, 8, value, offset); - } - /** - * Inserts a BigUInt64LE value at the given offset value. - * - * @param value { Number } The value to insert. - * @param offset { Number } The offset to insert the value at. - * - * @return this - */ - insertBigUInt64LE(value, offset) { - utils_1.bigIntAndBufferInt64Check('writeBigUInt64LE'); - return this._insertNumberValue(Buffer.prototype.writeBigUInt64LE, 8, value, offset); - } - // Floating Point - /** - * Reads an FloatBE value from the current read position or an optionally provided offset. - * - * @param offset { Number } The offset to read data from (optional) - * @return { Number } - */ - readFloatBE(offset) { - return this._readNumberValue(Buffer.prototype.readFloatBE, 4, offset); - } - /** - * Reads an FloatLE value from the current read position or an optionally provided offset. - * - * @param offset { Number } The offset to read data from (optional) - * @return { Number } - */ - readFloatLE(offset) { - return this._readNumberValue(Buffer.prototype.readFloatLE, 4, offset); - } - /** - * Writes a FloatBE value to the current write position (or at optional offset). - * - * @param value { Number } The value to write. - * @param offset { Number } The offset to write the value at. - * - * @return this - */ - writeFloatBE(value, offset) { - return this._writeNumberValue(Buffer.prototype.writeFloatBE, 4, value, offset); - } - /** - * Inserts a FloatBE value at the given offset value. - * - * @param value { Number } The value to insert. - * @param offset { Number } The offset to insert the value at. - * - * @return this - */ - insertFloatBE(value, offset) { - return this._insertNumberValue(Buffer.prototype.writeFloatBE, 4, value, offset); - } - /** - * Writes a FloatLE value to the current write position (or at optional offset). - * - * @param value { Number } The value to write. - * @param offset { Number } The offset to write the value at. - * - * @return this - */ - writeFloatLE(value, offset) { - return this._writeNumberValue(Buffer.prototype.writeFloatLE, 4, value, offset); - } - /** - * Inserts a FloatLE value at the given offset value. - * - * @param value { Number } The value to insert. - * @param offset { Number } The offset to insert the value at. - * - * @return this - */ - insertFloatLE(value, offset) { - return this._insertNumberValue(Buffer.prototype.writeFloatLE, 4, value, offset); - } - // Double Floating Point - /** - * Reads an DoublEBE value from the current read position or an optionally provided offset. - * - * @param offset { Number } The offset to read data from (optional) - * @return { Number } - */ - readDoubleBE(offset) { - return this._readNumberValue(Buffer.prototype.readDoubleBE, 8, offset); - } - /** - * Reads an DoubleLE value from the current read position or an optionally provided offset. - * - * @param offset { Number } The offset to read data from (optional) - * @return { Number } - */ - readDoubleLE(offset) { - return this._readNumberValue(Buffer.prototype.readDoubleLE, 8, offset); - } - /** - * Writes a DoubleBE value to the current write position (or at optional offset). - * - * @param value { Number } The value to write. - * @param offset { Number } The offset to write the value at. - * - * @return this - */ - writeDoubleBE(value, offset) { - return this._writeNumberValue(Buffer.prototype.writeDoubleBE, 8, value, offset); - } - /** - * Inserts a DoubleBE value at the given offset value. - * - * @param value { Number } The value to insert. - * @param offset { Number } The offset to insert the value at. - * - * @return this - */ - insertDoubleBE(value, offset) { - return this._insertNumberValue(Buffer.prototype.writeDoubleBE, 8, value, offset); - } - /** - * Writes a DoubleLE value to the current write position (or at optional offset). - * - * @param value { Number } The value to write. - * @param offset { Number } The offset to write the value at. - * - * @return this - */ - writeDoubleLE(value, offset) { - return this._writeNumberValue(Buffer.prototype.writeDoubleLE, 8, value, offset); - } - /** - * Inserts a DoubleLE value at the given offset value. - * - * @param value { Number } The value to insert. - * @param offset { Number } The offset to insert the value at. - * - * @return this - */ - insertDoubleLE(value, offset) { - return this._insertNumberValue(Buffer.prototype.writeDoubleLE, 8, value, offset); - } - // Strings - /** - * Reads a String from the current read position. - * - * @param arg1 { Number | String } The number of bytes to read as a String, or the BufferEncoding to use for - * the string (Defaults to instance level encoding). - * @param encoding { String } The BufferEncoding to use for the string (Defaults to instance level encoding). - * - * @return { String } - */ - readString(arg1, encoding) { - let lengthVal; - // Length provided - if (typeof arg1 === 'number') { - utils_1.checkLengthValue(arg1); - lengthVal = Math.min(arg1, this.length - this._readOffset); - } - else { - encoding = arg1; - lengthVal = this.length - this._readOffset; - } - // Check encoding - if (typeof encoding !== 'undefined') { - utils_1.checkEncoding(encoding); - } - const value = this._buff.slice(this._readOffset, this._readOffset + lengthVal).toString(encoding || this._encoding); - this._readOffset += lengthVal; - return value; - } - /** - * Inserts a String - * - * @param value { String } The String value to insert. - * @param offset { Number } The offset to insert the string at. - * @param encoding { String } The BufferEncoding to use for writing strings (defaults to instance encoding). - * - * @return this - */ - insertString(value, offset, encoding) { - utils_1.checkOffsetValue(offset); - return this._handleString(value, true, offset, encoding); - } - /** - * Writes a String - * - * @param value { String } The String value to write. - * @param arg2 { Number | String } The offset to write the string at, or the BufferEncoding to use. - * @param encoding { String } The BufferEncoding to use for writing strings (defaults to instance encoding). - * - * @return this - */ - writeString(value, arg2, encoding) { - return this._handleString(value, false, arg2, encoding); - } - /** - * Reads a null-terminated String from the current read position. - * - * @param encoding { String } The BufferEncoding to use for the string (Defaults to instance level encoding). - * - * @return { String } - */ - readStringNT(encoding) { - if (typeof encoding !== 'undefined') { - utils_1.checkEncoding(encoding); - } - // Set null character position to the end SmartBuffer instance. - let nullPos = this.length; - // Find next null character (if one is not found, default from above is used) - for (let i = this._readOffset; i < this.length; i++) { - if (this._buff[i] === 0x00) { - nullPos = i; - break; - } - } - // Read string value - const value = this._buff.slice(this._readOffset, nullPos); - // Increment internal Buffer read offset - this._readOffset = nullPos + 1; - return value.toString(encoding || this._encoding); - } - /** - * Inserts a null-terminated String. - * - * @param value { String } The String value to write. - * @param arg2 { Number | String } The offset to write the string to, or the BufferEncoding to use. - * @param encoding { String } The BufferEncoding to use for writing strings (defaults to instance encoding). - * - * @return this - */ - insertStringNT(value, offset, encoding) { - utils_1.checkOffsetValue(offset); - // Write Values - this.insertString(value, offset, encoding); - this.insertUInt8(0x00, offset + value.length); - return this; - } - /** - * Writes a null-terminated String. - * - * @param value { String } The String value to write. - * @param arg2 { Number | String } The offset to write the string to, or the BufferEncoding to use. - * @param encoding { String } The BufferEncoding to use for writing strings (defaults to instance encoding). - * - * @return this - */ - writeStringNT(value, arg2, encoding) { - // Write Values - this.writeString(value, arg2, encoding); - this.writeUInt8(0x00, typeof arg2 === 'number' ? arg2 + value.length : this.writeOffset); - return this; - } - // Buffers - /** - * Reads a Buffer from the internal read position. - * - * @param length { Number } The length of data to read as a Buffer. - * - * @return { Buffer } - */ - readBuffer(length) { - if (typeof length !== 'undefined') { - utils_1.checkLengthValue(length); - } - const lengthVal = typeof length === 'number' ? length : this.length; - const endPoint = Math.min(this.length, this._readOffset + lengthVal); - // Read buffer value - const value = this._buff.slice(this._readOffset, endPoint); - // Increment internal Buffer read offset - this._readOffset = endPoint; - return value; - } - /** - * Writes a Buffer to the current write position. - * - * @param value { Buffer } The Buffer to write. - * @param offset { Number } The offset to write the Buffer to. - * - * @return this - */ - insertBuffer(value, offset) { - utils_1.checkOffsetValue(offset); - return this._handleBuffer(value, true, offset); - } - /** - * Writes a Buffer to the current write position. - * - * @param value { Buffer } The Buffer to write. - * @param offset { Number } The offset to write the Buffer to. - * - * @return this - */ - writeBuffer(value, offset) { - return this._handleBuffer(value, false, offset); - } - /** - * Reads a null-terminated Buffer from the current read poisiton. - * - * @return { Buffer } - */ - readBufferNT() { - // Set null character position to the end SmartBuffer instance. - let nullPos = this.length; - // Find next null character (if one is not found, default from above is used) - for (let i = this._readOffset; i < this.length; i++) { - if (this._buff[i] === 0x00) { - nullPos = i; - break; - } - } - // Read value - const value = this._buff.slice(this._readOffset, nullPos); - // Increment internal Buffer read offset - this._readOffset = nullPos + 1; - return value; - } - /** - * Inserts a null-terminated Buffer. - * - * @param value { Buffer } The Buffer to write. - * @param offset { Number } The offset to write the Buffer to. - * - * @return this - */ - insertBufferNT(value, offset) { - utils_1.checkOffsetValue(offset); - // Write Values - this.insertBuffer(value, offset); - this.insertUInt8(0x00, offset + value.length); - return this; - } - /** - * Writes a null-terminated Buffer. - * - * @param value { Buffer } The Buffer to write. - * @param offset { Number } The offset to write the Buffer to. - * - * @return this - */ - writeBufferNT(value, offset) { - // Checks for valid numberic value; - if (typeof offset !== 'undefined') { - utils_1.checkOffsetValue(offset); - } - // Write Values - this.writeBuffer(value, offset); - this.writeUInt8(0x00, typeof offset === 'number' ? offset + value.length : this._writeOffset); - return this; - } - /** - * Clears the SmartBuffer instance to its original empty state. - */ - clear() { - this._writeOffset = 0; - this._readOffset = 0; - this.length = 0; - return this; - } - /** - * Gets the remaining data left to be read from the SmartBuffer instance. - * - * @return { Number } - */ - remaining() { - return this.length - this._readOffset; - } - /** - * Gets the current read offset value of the SmartBuffer instance. - * - * @return { Number } - */ - get readOffset() { - return this._readOffset; - } - /** - * Sets the read offset value of the SmartBuffer instance. - * - * @param offset { Number } - The offset value to set. - */ - set readOffset(offset) { - utils_1.checkOffsetValue(offset); - // Check for bounds. - utils_1.checkTargetOffset(offset, this); - this._readOffset = offset; - } - /** - * Gets the current write offset value of the SmartBuffer instance. - * - * @return { Number } - */ - get writeOffset() { - return this._writeOffset; - } - /** - * Sets the write offset value of the SmartBuffer instance. - * - * @param offset { Number } - The offset value to set. - */ - set writeOffset(offset) { - utils_1.checkOffsetValue(offset); - // Check for bounds. - utils_1.checkTargetOffset(offset, this); - this._writeOffset = offset; - } - /** - * Gets the currently set string encoding of the SmartBuffer instance. - * - * @return { BufferEncoding } The string Buffer encoding currently set. - */ - get encoding() { - return this._encoding; - } - /** - * Sets the string encoding of the SmartBuffer instance. - * - * @param encoding { BufferEncoding } The string Buffer encoding to set. - */ - set encoding(encoding) { - utils_1.checkEncoding(encoding); - this._encoding = encoding; - } - /** - * Gets the underlying internal Buffer. (This includes unmanaged data in the Buffer) - * - * @return { Buffer } The Buffer value. - */ - get internalBuffer() { - return this._buff; - } - /** - * Gets the value of the internal managed Buffer (Includes managed data only) - * - * @param { Buffer } - */ - toBuffer() { - return this._buff.slice(0, this.length); - } - /** - * Gets the String value of the internal managed Buffer - * - * @param encoding { String } The BufferEncoding to display the Buffer as (defaults to instance level encoding). - */ - toString(encoding) { - const encodingVal = typeof encoding === 'string' ? encoding : this._encoding; - // Check for invalid encoding. - utils_1.checkEncoding(encodingVal); - return this._buff.toString(encodingVal, 0, this.length); - } - /** - * Destroys the SmartBuffer instance. - */ - destroy() { - this.clear(); - return this; - } - /** - * Handles inserting and writing strings. - * - * @param value { String } The String value to insert. - * @param isInsert { Boolean } True if inserting a string, false if writing. - * @param arg2 { Number | String } The offset to insert the string at, or the BufferEncoding to use. - * @param encoding { String } The BufferEncoding to use for writing strings (defaults to instance encoding). - */ - _handleString(value, isInsert, arg3, encoding) { - let offsetVal = this._writeOffset; - let encodingVal = this._encoding; - // Check for offset - if (typeof arg3 === 'number') { - offsetVal = arg3; - // Check for encoding - } - else if (typeof arg3 === 'string') { - utils_1.checkEncoding(arg3); - encodingVal = arg3; - } - // Check for encoding (third param) - if (typeof encoding === 'string') { - utils_1.checkEncoding(encoding); - encodingVal = encoding; - } - // Calculate bytelength of string. - const byteLength = Buffer.byteLength(value, encodingVal); - // Ensure there is enough internal Buffer capacity. - if (isInsert) { - this.ensureInsertable(byteLength, offsetVal); - } - else { - this._ensureWriteable(byteLength, offsetVal); - } - // Write value - this._buff.write(value, offsetVal, byteLength, encodingVal); - // Increment internal Buffer write offset; - if (isInsert) { - this._writeOffset += byteLength; - } - else { - // If an offset was given, check to see if we wrote beyond the current writeOffset. - if (typeof arg3 === 'number') { - this._writeOffset = Math.max(this._writeOffset, offsetVal + byteLength); - } - else { - // If no offset was given, we wrote to the end of the SmartBuffer so increment writeOffset. - this._writeOffset += byteLength; - } - } - return this; - } - /** - * Handles writing or insert of a Buffer. - * - * @param value { Buffer } The Buffer to write. - * @param offset { Number } The offset to write the Buffer to. - */ - _handleBuffer(value, isInsert, offset) { - const offsetVal = typeof offset === 'number' ? offset : this._writeOffset; - // Ensure there is enough internal Buffer capacity. - if (isInsert) { - this.ensureInsertable(value.length, offsetVal); - } - else { - this._ensureWriteable(value.length, offsetVal); - } - // Write buffer value - value.copy(this._buff, offsetVal); - // Increment internal Buffer write offset; - if (isInsert) { - this._writeOffset += value.length; - } - else { - // If an offset was given, check to see if we wrote beyond the current writeOffset. - if (typeof offset === 'number') { - this._writeOffset = Math.max(this._writeOffset, offsetVal + value.length); - } - else { - // If no offset was given, we wrote to the end of the SmartBuffer so increment writeOffset. - this._writeOffset += value.length; - } - } - return this; - } - /** - * Ensures that the internal Buffer is large enough to read data. - * - * @param length { Number } The length of the data that needs to be read. - * @param offset { Number } The offset of the data that needs to be read. - */ - ensureReadable(length, offset) { - // Offset value defaults to managed read offset. - let offsetVal = this._readOffset; - // If an offset was provided, use it. - if (typeof offset !== 'undefined') { - // Checks for valid numberic value; - utils_1.checkOffsetValue(offset); - // Overide with custom offset. - offsetVal = offset; - } - // Checks if offset is below zero, or the offset+length offset is beyond the total length of the managed data. - if (offsetVal < 0 || offsetVal + length > this.length) { - throw new Error(utils_1.ERRORS.INVALID_READ_BEYOND_BOUNDS); - } - } - /** - * Ensures that the internal Buffer is large enough to insert data. - * - * @param dataLength { Number } The length of the data that needs to be written. - * @param offset { Number } The offset of the data to be written. - */ - ensureInsertable(dataLength, offset) { - // Checks for valid numberic value; - utils_1.checkOffsetValue(offset); - // Ensure there is enough internal Buffer capacity. - this._ensureCapacity(this.length + dataLength); - // If an offset was provided and its not the very end of the buffer, copy data into appropriate location in regards to the offset. - if (offset < this.length) { - this._buff.copy(this._buff, offset + dataLength, offset, this._buff.length); - } - // Adjust tracked smart buffer length - if (offset + dataLength > this.length) { - this.length = offset + dataLength; - } - else { - this.length += dataLength; - } - } - /** - * Ensures that the internal Buffer is large enough to write data. - * - * @param dataLength { Number } The length of the data that needs to be written. - * @param offset { Number } The offset of the data to be written (defaults to writeOffset). - */ - _ensureWriteable(dataLength, offset) { - const offsetVal = typeof offset === 'number' ? offset : this._writeOffset; - // Ensure enough capacity to write data. - this._ensureCapacity(offsetVal + dataLength); - // Adjust SmartBuffer length (if offset + length is larger than managed length, adjust length) - if (offsetVal + dataLength > this.length) { - this.length = offsetVal + dataLength; - } - } - /** - * Ensures that the internal Buffer is large enough to write at least the given amount of data. - * - * @param minLength { Number } The minimum length of the data needs to be written. - */ - _ensureCapacity(minLength) { - const oldLength = this._buff.length; - if (minLength > oldLength) { - let data = this._buff; - let newLength = (oldLength * 3) / 2 + 1; - if (newLength < minLength) { - newLength = minLength; - } - this._buff = Buffer.allocUnsafe(newLength); - data.copy(this._buff, 0, 0, oldLength); - } - } - /** - * Reads a numeric number value using the provided function. - * - * @typeparam T { number | bigint } The type of the value to be read - * - * @param func { Function(offset: number) => number } The function to read data on the internal Buffer with. - * @param byteSize { Number } The number of bytes read. - * @param offset { Number } The offset to read from (optional). When this is not provided, the managed readOffset is used instead. - * - * @returns { T } the number value - */ - _readNumberValue(func, byteSize, offset) { - this.ensureReadable(byteSize, offset); - // Call Buffer.readXXXX(); - const value = func.call(this._buff, typeof offset === 'number' ? offset : this._readOffset); - // Adjust internal read offset if an optional read offset was not provided. - if (typeof offset === 'undefined') { - this._readOffset += byteSize; - } - return value; - } - /** - * Inserts a numeric number value based on the given offset and value. - * - * @typeparam T { number | bigint } The type of the value to be written - * - * @param func { Function(offset: T, offset?) => number} The function to write data on the internal Buffer with. - * @param byteSize { Number } The number of bytes written. - * @param value { T } The number value to write. - * @param offset { Number } the offset to write the number at (REQUIRED). - * - * @returns SmartBuffer this buffer - */ - _insertNumberValue(func, byteSize, value, offset) { - // Check for invalid offset values. - utils_1.checkOffsetValue(offset); - // Ensure there is enough internal Buffer capacity. (raw offset is passed) - this.ensureInsertable(byteSize, offset); - // Call buffer.writeXXXX(); - func.call(this._buff, value, offset); - // Adjusts internally managed write offset. - this._writeOffset += byteSize; - return this; - } - /** - * Writes a numeric number value based on the given offset and value. - * - * @typeparam T { number | bigint } The type of the value to be written - * - * @param func { Function(offset: T, offset?) => number} The function to write data on the internal Buffer with. - * @param byteSize { Number } The number of bytes written. - * @param value { T } The number value to write. - * @param offset { Number } the offset to write the number at (REQUIRED). - * - * @returns SmartBuffer this buffer - */ - _writeNumberValue(func, byteSize, value, offset) { - // If an offset was provided, validate it. - if (typeof offset === 'number') { - // Check if we're writing beyond the bounds of the managed data. - if (offset < 0) { - throw new Error(utils_1.ERRORS.INVALID_WRITE_BEYOND_BOUNDS); - } - utils_1.checkOffsetValue(offset); - } - // Default to writeOffset if no offset value was given. - const offsetVal = typeof offset === 'number' ? offset : this._writeOffset; - // Ensure there is enough internal Buffer capacity. (raw offset is passed) - this._ensureWriteable(byteSize, offsetVal); - func.call(this._buff, value, offsetVal); - // If an offset was given, check to see if we wrote beyond the current writeOffset. - if (typeof offset === 'number') { - this._writeOffset = Math.max(this._writeOffset, offsetVal + byteSize); - } - else { - // If no numeric offset was given, we wrote to the end of the SmartBuffer so increment writeOffset. - this._writeOffset += byteSize; - } - return this; - } -} -exports.SmartBuffer = SmartBuffer; -//# sourceMappingURL=smartbuffer.js.map - -/***/ }), - -/***/ 98132: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -const buffer_1 = __nccwpck_require__(64293); -/** - * Error strings - */ -const ERRORS = { - INVALID_ENCODING: 'Invalid encoding provided. Please specify a valid encoding the internal Node.js Buffer supports.', - INVALID_SMARTBUFFER_SIZE: 'Invalid size provided. Size must be a valid integer greater than zero.', - INVALID_SMARTBUFFER_BUFFER: 'Invalid Buffer provided in SmartBufferOptions.', - INVALID_SMARTBUFFER_OBJECT: 'Invalid SmartBufferOptions object supplied to SmartBuffer constructor or factory methods.', - INVALID_OFFSET: 'An invalid offset value was provided.', - INVALID_OFFSET_NON_NUMBER: 'An invalid offset value was provided. A numeric value is required.', - INVALID_LENGTH: 'An invalid length value was provided.', - INVALID_LENGTH_NON_NUMBER: 'An invalid length value was provived. A numeric value is required.', - INVALID_TARGET_OFFSET: 'Target offset is beyond the bounds of the internal SmartBuffer data.', - INVALID_TARGET_LENGTH: 'Specified length value moves cursor beyong the bounds of the internal SmartBuffer data.', - INVALID_READ_BEYOND_BOUNDS: 'Attempted to read beyond the bounds of the managed data.', - INVALID_WRITE_BEYOND_BOUNDS: 'Attempted to write beyond the bounds of the managed data.' -}; -exports.ERRORS = ERRORS; -/** - * Checks if a given encoding is a valid Buffer encoding. (Throws an exception if check fails) - * - * @param { String } encoding The encoding string to check. - */ -function checkEncoding(encoding) { - if (!buffer_1.Buffer.isEncoding(encoding)) { - throw new Error(ERRORS.INVALID_ENCODING); - } -} -exports.checkEncoding = checkEncoding; -/** - * Checks if a given number is a finite integer. (Throws an exception if check fails) - * - * @param { Number } value The number value to check. - */ -function isFiniteInteger(value) { - return typeof value === 'number' && isFinite(value) && isInteger(value); -} -exports.isFiniteInteger = isFiniteInteger; -/** - * Checks if an offset/length value is valid. (Throws an exception if check fails) - * - * @param value The value to check. - * @param offset True if checking an offset, false if checking a length. - */ -function checkOffsetOrLengthValue(value, offset) { - if (typeof value === 'number') { - // Check for non finite/non integers - if (!isFiniteInteger(value) || value < 0) { - throw new Error(offset ? ERRORS.INVALID_OFFSET : ERRORS.INVALID_LENGTH); - } - } - else { - throw new Error(offset ? ERRORS.INVALID_OFFSET_NON_NUMBER : ERRORS.INVALID_LENGTH_NON_NUMBER); - } -} -/** - * Checks if a length value is valid. (Throws an exception if check fails) - * - * @param { Number } length The value to check. - */ -function checkLengthValue(length) { - checkOffsetOrLengthValue(length, false); -} -exports.checkLengthValue = checkLengthValue; -/** - * Checks if a offset value is valid. (Throws an exception if check fails) - * - * @param { Number } offset The value to check. - */ -function checkOffsetValue(offset) { - checkOffsetOrLengthValue(offset, true); -} -exports.checkOffsetValue = checkOffsetValue; -/** - * Checks if a target offset value is out of bounds. (Throws an exception if check fails) - * - * @param { Number } offset The offset value to check. - * @param { SmartBuffer } buff The SmartBuffer instance to check against. - */ -function checkTargetOffset(offset, buff) { - if (offset < 0 || offset > buff.length) { - throw new Error(ERRORS.INVALID_TARGET_OFFSET); - } -} -exports.checkTargetOffset = checkTargetOffset; -/** - * Determines whether a given number is a integer. - * @param value The number to check. - */ -function isInteger(value) { - return typeof value === 'number' && isFinite(value) && Math.floor(value) === value; -} -/** - * Throws if Node.js version is too low to support bigint - */ -function bigIntAndBufferInt64Check(bufferMethod) { - if (typeof BigInt === 'undefined') { - throw new Error('Platform does not support JS BigInt type.'); - } - if (typeof buffer_1.Buffer.prototype[bufferMethod] === 'undefined') { - throw new Error(`Platform does not support Buffer.prototype.${bufferMethod}.`); - } -} -exports.bigIntAndBufferInt64Check = bigIntAndBufferInt64Check; -//# sourceMappingURL=utils.js.map - -/***/ }), - -/***/ 32938: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - -var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { - function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } - return new (P || (P = Promise))(function (resolve, reject) { - function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } - function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } - function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } - step((generator = generator.apply(thisArg, _arguments || [])).next()); - }); -}; -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; -Object.defineProperty(exports, "__esModule", ({ value: true })); -const dns_1 = __importDefault(__nccwpck_require__(40881)); -const tls_1 = __importDefault(__nccwpck_require__(4016)); -const url_1 = __importDefault(__nccwpck_require__(78835)); -const debug_1 = __importDefault(__nccwpck_require__(38237)); -const agent_base_1 = __nccwpck_require__(49690); -const socks_1 = __nccwpck_require__(54754); -const debug = debug_1.default('socks-proxy-agent'); -function dnsLookup(host) { - return new Promise((resolve, reject) => { - dns_1.default.lookup(host, (err, res) => { - if (err) { - reject(err); - } - else { - resolve(res); - } - }); - }); -} -function parseSocksProxy(opts) { - let port = 0; - let lookup = false; - let type = 5; - // Prefer `hostname` over `host`, because of `url.parse()` - const host = opts.hostname || opts.host; - if (!host) { - throw new TypeError('No "host"'); - } - if (typeof opts.port === 'number') { - port = opts.port; - } - else if (typeof opts.port === 'string') { - port = parseInt(opts.port, 10); - } - // From RFC 1928, Section 3: https://tools.ietf.org/html/rfc1928#section-3 - // "The SOCKS service is conventionally located on TCP port 1080" - if (!port) { - port = 1080; - } - // figure out if we want socks v4 or v5, based on the "protocol" used. - // Defaults to 5. - if (opts.protocol) { - switch (opts.protocol.replace(':', '')) { - case 'socks4': - lookup = true; - // pass through - case 'socks4a': - type = 4; - break; - case 'socks5': - lookup = true; - // pass through - case 'socks': // no version specified, default to 5h - case 'socks5h': - type = 5; - break; - default: - throw new TypeError(`A "socks" protocol must be specified! Got: ${opts.protocol}`); - } - } - if (typeof opts.type !== 'undefined') { - if (opts.type === 4 || opts.type === 5) { - type = opts.type; - } - else { - throw new TypeError(`"type" must be 4 or 5, got: ${opts.type}`); - } - } - const proxy = { - host, - port, - type - }; - let userId = opts.userId || opts.username; - let password = opts.password; - if (opts.auth) { - const auth = opts.auth.split(':'); - userId = auth[0]; - password = auth[1]; - } - if (userId) { - Object.defineProperty(proxy, 'userId', { - value: userId, - enumerable: false - }); - } - if (password) { - Object.defineProperty(proxy, 'password', { - value: password, - enumerable: false - }); - } - return { lookup, proxy }; -} -/** - * The `SocksProxyAgent`. - * - * @api public - */ -class SocksProxyAgent extends agent_base_1.Agent { - constructor(_opts) { - let opts; - if (typeof _opts === 'string') { - opts = url_1.default.parse(_opts); - } - else { - opts = _opts; - } - if (!opts) { - throw new TypeError('a SOCKS proxy server `host` and `port` must be specified!'); - } - super(opts); - const parsedProxy = parseSocksProxy(opts); - this.lookup = parsedProxy.lookup; - this.proxy = parsedProxy.proxy; - } - /** - * Initiates a SOCKS connection to the specified SOCKS proxy server, - * which in turn connects to the specified remote host and port. - * - * @api protected - */ - callback(req, opts) { - return __awaiter(this, void 0, void 0, function* () { - const { lookup, proxy } = this; - let { host, port, timeout } = opts; - if (!host) { - throw new Error('No `host` defined!'); - } - if (lookup) { - // Client-side DNS resolution for "4" and "5" socks proxy versions. - host = yield dnsLookup(host); - } - const socksOpts = { - proxy, - destination: { host, port }, - command: 'connect', - timeout - }; - debug('Creating socks proxy connection: %o', socksOpts); - const { socket } = yield socks_1.SocksClient.createConnection(socksOpts); - debug('Successfully created socks proxy connection'); - if (opts.secureEndpoint) { - // The proxy is connecting to a TLS server, so upgrade - // this socket connection to a TLS connection. - debug('Upgrading socket connection to TLS'); - const servername = opts.servername || host; - return tls_1.default.connect(Object.assign(Object.assign({}, omit(opts, 'host', 'hostname', 'path', 'port')), { socket, - servername })); - } - return socket; - }); - } -} -exports.default = SocksProxyAgent; -function omit(obj, ...keys) { - const ret = {}; - let key; - for (key in obj) { - if (!keys.includes(key)) { - ret[key] = obj[key]; - } - } - return ret; -} -//# sourceMappingURL=agent.js.map - -/***/ }), - -/***/ 25038: -/***/ (function(module, __unused_webpack_exports, __nccwpck_require__) { - -"use strict"; - -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; -const agent_1 = __importDefault(__nccwpck_require__(32938)); -function createSocksProxyAgent(opts) { - return new agent_1.default(opts); -} -(function (createSocksProxyAgent) { - createSocksProxyAgent.SocksProxyAgent = agent_1.default; - createSocksProxyAgent.prototype = agent_1.default.prototype; -})(createSocksProxyAgent || (createSocksProxyAgent = {})); -module.exports = createSocksProxyAgent; -//# sourceMappingURL=index.js.map - -/***/ }), - -/***/ 36127: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - -var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { - function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } - return new (P || (P = Promise))(function (resolve, reject) { - function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } - function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } - function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } - step((generator = generator.apply(thisArg, _arguments || [])).next()); - }); -}; -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.SocksClientError = exports.SocksClient = void 0; -const events_1 = __nccwpck_require__(28614); -const net = __nccwpck_require__(11631); -const ip = __nccwpck_require__(87547); -const smart_buffer_1 = __nccwpck_require__(71062); -const constants_1 = __nccwpck_require__(49647); -const helpers_1 = __nccwpck_require__(74324); -const receivebuffer_1 = __nccwpck_require__(39740); -const util_1 = __nccwpck_require__(75523); -Object.defineProperty(exports, "SocksClientError", ({ enumerable: true, get: function () { return util_1.SocksClientError; } })); -class SocksClient extends events_1.EventEmitter { - constructor(options) { - super(); - this.options = Object.assign({}, options); - // Validate SocksClientOptions - (0, helpers_1.validateSocksClientOptions)(options); - // Default state - this.setState(constants_1.SocksClientState.Created); - } - /** - * Creates a new SOCKS connection. - * - * Note: Supports callbacks and promises. Only supports the connect command. - * @param options { SocksClientOptions } Options. - * @param callback { Function } An optional callback function. - * @returns { Promise } - */ - static createConnection(options, callback) { - return new Promise((resolve, reject) => { - // Validate SocksClientOptions - try { - (0, helpers_1.validateSocksClientOptions)(options, ['connect']); - } - catch (err) { - if (typeof callback === 'function') { - callback(err); - return resolve(err); // Resolves pending promise (prevents memory leaks). - } - else { - return reject(err); - } - } - const client = new SocksClient(options); - client.connect(options.existing_socket); - client.once('established', (info) => { - client.removeAllListeners(); - if (typeof callback === 'function') { - callback(null, info); - resolve(info); // Resolves pending promise (prevents memory leaks). - } - else { - resolve(info); - } - }); - // Error occurred, failed to establish connection. - client.once('error', (err) => { - client.removeAllListeners(); - if (typeof callback === 'function') { - callback(err); - resolve(err); // Resolves pending promise (prevents memory leaks). - } - else { - reject(err); - } - }); - }); - } - /** - * Creates a new SOCKS connection chain to a destination host through 2 or more SOCKS proxies. - * - * Note: Supports callbacks and promises. Only supports the connect method. - * Note: Implemented via createConnection() factory function. - * @param options { SocksClientChainOptions } Options - * @param callback { Function } An optional callback function. - * @returns { Promise } - */ - static createConnectionChain(options, callback) { - return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () { - // Validate SocksClientChainOptions - try { - (0, helpers_1.validateSocksClientChainOptions)(options); - } - catch (err) { - if (typeof callback === 'function') { - callback(err); - return resolve(err); // Resolves pending promise (prevents memory leaks). - } - else { - return reject(err); - } - } - let sock; - // Shuffle proxies - if (options.randomizeChain) { - (0, util_1.shuffleArray)(options.proxies); - } - try { - // tslint:disable-next-line:no-increment-decrement - for (let i = 0; i < options.proxies.length; i++) { - const nextProxy = options.proxies[i]; - // If we've reached the last proxy in the chain, the destination is the actual destination, otherwise it's the next proxy. - const nextDestination = i === options.proxies.length - 1 - ? options.destination - : { - host: options.proxies[i + 1].host || - options.proxies[i + 1].ipaddress, - port: options.proxies[i + 1].port, - }; - // Creates the next connection in the chain. - const result = yield SocksClient.createConnection({ - command: 'connect', - proxy: nextProxy, - destination: nextDestination, - // Initial connection ignores this as sock is undefined. Subsequent connections re-use the first proxy socket to form a chain. - }); - // If sock is undefined, assign it here. - if (!sock) { - sock = result.socket; - } - } - if (typeof callback === 'function') { - callback(null, { socket: sock }); - resolve({ socket: sock }); // Resolves pending promise (prevents memory leaks). - } - else { - resolve({ socket: sock }); - } - } - catch (err) { - if (typeof callback === 'function') { - callback(err); - resolve(err); // Resolves pending promise (prevents memory leaks). - } - else { - reject(err); - } - } - })); - } - /** - * Creates a SOCKS UDP Frame. - * @param options - */ - static createUDPFrame(options) { - const buff = new smart_buffer_1.SmartBuffer(); - buff.writeUInt16BE(0); - buff.writeUInt8(options.frameNumber || 0); - // IPv4/IPv6/Hostname - if (net.isIPv4(options.remoteHost.host)) { - buff.writeUInt8(constants_1.Socks5HostType.IPv4); - buff.writeUInt32BE(ip.toLong(options.remoteHost.host)); - } - else if (net.isIPv6(options.remoteHost.host)) { - buff.writeUInt8(constants_1.Socks5HostType.IPv6); - buff.writeBuffer(ip.toBuffer(options.remoteHost.host)); - } - else { - buff.writeUInt8(constants_1.Socks5HostType.Hostname); - buff.writeUInt8(Buffer.byteLength(options.remoteHost.host)); - buff.writeString(options.remoteHost.host); - } - // Port - buff.writeUInt16BE(options.remoteHost.port); - // Data - buff.writeBuffer(options.data); - return buff.toBuffer(); - } - /** - * Parses a SOCKS UDP frame. - * @param data - */ - static parseUDPFrame(data) { - const buff = smart_buffer_1.SmartBuffer.fromBuffer(data); - buff.readOffset = 2; - const frameNumber = buff.readUInt8(); - const hostType = buff.readUInt8(); - let remoteHost; - if (hostType === constants_1.Socks5HostType.IPv4) { - remoteHost = ip.fromLong(buff.readUInt32BE()); - } - else if (hostType === constants_1.Socks5HostType.IPv6) { - remoteHost = ip.toString(buff.readBuffer(16)); - } - else { - remoteHost = buff.readString(buff.readUInt8()); - } - const remotePort = buff.readUInt16BE(); - return { - frameNumber, - remoteHost: { - host: remoteHost, - port: remotePort, - }, - data: buff.readBuffer(), - }; - } - /** - * Internal state setter. If the SocksClient is in an error state, it cannot be changed to a non error state. - */ - setState(newState) { - if (this.state !== constants_1.SocksClientState.Error) { - this.state = newState; - } - } - /** - * Starts the connection establishment to the proxy and destination. - * @param existingSocket Connected socket to use instead of creating a new one (internal use). - */ - connect(existingSocket) { - this.onDataReceived = (data) => this.onDataReceivedHandler(data); - this.onClose = () => this.onCloseHandler(); - this.onError = (err) => this.onErrorHandler(err); - this.onConnect = () => this.onConnectHandler(); - // Start timeout timer (defaults to 30 seconds) - const timer = setTimeout(() => this.onEstablishedTimeout(), this.options.timeout || constants_1.DEFAULT_TIMEOUT); - // check whether unref is available as it differs from browser to NodeJS (#33) - if (timer.unref && typeof timer.unref === 'function') { - timer.unref(); - } - // If an existing socket is provided, use it to negotiate SOCKS handshake. Otherwise create a new Socket. - if (existingSocket) { - this.socket = existingSocket; - } - else { - this.socket = new net.Socket(); - } - // Attach Socket error handlers. - this.socket.once('close', this.onClose); - this.socket.once('error', this.onError); - this.socket.once('connect', this.onConnect); - this.socket.on('data', this.onDataReceived); - this.setState(constants_1.SocksClientState.Connecting); - this.receiveBuffer = new receivebuffer_1.ReceiveBuffer(); - if (existingSocket) { - this.socket.emit('connect'); - } - else { - this.socket.connect(this.getSocketOptions()); - if (this.options.set_tcp_nodelay !== undefined && - this.options.set_tcp_nodelay !== null) { - this.socket.setNoDelay(!!this.options.set_tcp_nodelay); - } - } - // Listen for established event so we can re-emit any excess data received during handshakes. - this.prependOnceListener('established', (info) => { - setImmediate(() => { - if (this.receiveBuffer.length > 0) { - const excessData = this.receiveBuffer.get(this.receiveBuffer.length); - info.socket.emit('data', excessData); - } - info.socket.resume(); - }); - }); - } - // Socket options (defaults host/port to options.proxy.host/options.proxy.port) - getSocketOptions() { - return Object.assign(Object.assign({}, this.options.socket_options), { host: this.options.proxy.host || this.options.proxy.ipaddress, port: this.options.proxy.port }); - } - /** - * Handles internal Socks timeout callback. - * Note: If the Socks client is not BoundWaitingForConnection or Established, the connection will be closed. - */ - onEstablishedTimeout() { - if (this.state !== constants_1.SocksClientState.Established && - this.state !== constants_1.SocksClientState.BoundWaitingForConnection) { - this.closeSocket(constants_1.ERRORS.ProxyConnectionTimedOut); - } - } - /** - * Handles Socket connect event. - */ - onConnectHandler() { - this.setState(constants_1.SocksClientState.Connected); - // Send initial handshake. - if (this.options.proxy.type === 4) { - this.sendSocks4InitialHandshake(); - } - else { - this.sendSocks5InitialHandshake(); - } - this.setState(constants_1.SocksClientState.SentInitialHandshake); - } - /** - * Handles Socket data event. - * @param data - */ - onDataReceivedHandler(data) { - /* - All received data is appended to a ReceiveBuffer. - This makes sure that all the data we need is received before we attempt to process it. - */ - this.receiveBuffer.append(data); - // Process data that we have. - this.processData(); - } - /** - * Handles processing of the data we have received. - */ - processData() { - // If we have enough data to process the next step in the SOCKS handshake, proceed. - while (this.state !== constants_1.SocksClientState.Established && - this.state !== constants_1.SocksClientState.Error && - this.receiveBuffer.length >= this.nextRequiredPacketBufferSize) { - // Sent initial handshake, waiting for response. - if (this.state === constants_1.SocksClientState.SentInitialHandshake) { - if (this.options.proxy.type === 4) { - // Socks v4 only has one handshake response. - this.handleSocks4FinalHandshakeResponse(); - } - else { - // Socks v5 has two handshakes, handle initial one here. - this.handleInitialSocks5HandshakeResponse(); - } - // Sent auth request for Socks v5, waiting for response. - } - else if (this.state === constants_1.SocksClientState.SentAuthentication) { - this.handleInitialSocks5AuthenticationHandshakeResponse(); - // Sent final Socks v5 handshake, waiting for final response. - } - else if (this.state === constants_1.SocksClientState.SentFinalHandshake) { - this.handleSocks5FinalHandshakeResponse(); - // Socks BIND established. Waiting for remote connection via proxy. - } - else if (this.state === constants_1.SocksClientState.BoundWaitingForConnection) { - if (this.options.proxy.type === 4) { - this.handleSocks4IncomingConnectionResponse(); - } - else { - this.handleSocks5IncomingConnectionResponse(); - } - } - else { - this.closeSocket(constants_1.ERRORS.InternalError); - break; - } - } - } - /** - * Handles Socket close event. - * @param had_error - */ - onCloseHandler() { - this.closeSocket(constants_1.ERRORS.SocketClosed); - } - /** - * Handles Socket error event. - * @param err - */ - onErrorHandler(err) { - this.closeSocket(err.message); - } - /** - * Removes internal event listeners on the underlying Socket. - */ - removeInternalSocketHandlers() { - // Pauses data flow of the socket (this is internally resumed after 'established' is emitted) - this.socket.pause(); - this.socket.removeListener('data', this.onDataReceived); - this.socket.removeListener('close', this.onClose); - this.socket.removeListener('error', this.onError); - this.socket.removeListener('connect', this.onConnect); - } - /** - * Closes and destroys the underlying Socket. Emits an error event. - * @param err { String } An error string to include in error event. - */ - closeSocket(err) { - // Make sure only one 'error' event is fired for the lifetime of this SocksClient instance. - if (this.state !== constants_1.SocksClientState.Error) { - // Set internal state to Error. - this.setState(constants_1.SocksClientState.Error); - // Destroy Socket - this.socket.destroy(); - // Remove internal listeners - this.removeInternalSocketHandlers(); - // Fire 'error' event. - this.emit('error', new util_1.SocksClientError(err, this.options)); - } - } - /** - * Sends initial Socks v4 handshake request. - */ - sendSocks4InitialHandshake() { - const userId = this.options.proxy.userId || ''; - const buff = new smart_buffer_1.SmartBuffer(); - buff.writeUInt8(0x04); - buff.writeUInt8(constants_1.SocksCommand[this.options.command]); - buff.writeUInt16BE(this.options.destination.port); - // Socks 4 (IPv4) - if (net.isIPv4(this.options.destination.host)) { - buff.writeBuffer(ip.toBuffer(this.options.destination.host)); - buff.writeStringNT(userId); - // Socks 4a (hostname) - } - else { - buff.writeUInt8(0x00); - buff.writeUInt8(0x00); - buff.writeUInt8(0x00); - buff.writeUInt8(0x01); - buff.writeStringNT(userId); - buff.writeStringNT(this.options.destination.host); - } - this.nextRequiredPacketBufferSize = - constants_1.SOCKS_INCOMING_PACKET_SIZES.Socks4Response; - this.socket.write(buff.toBuffer()); - } - /** - * Handles Socks v4 handshake response. - * @param data - */ - handleSocks4FinalHandshakeResponse() { - const data = this.receiveBuffer.get(8); - if (data[1] !== constants_1.Socks4Response.Granted) { - this.closeSocket(`${constants_1.ERRORS.Socks4ProxyRejectedConnection} - (${constants_1.Socks4Response[data[1]]})`); - } - else { - // Bind response - if (constants_1.SocksCommand[this.options.command] === constants_1.SocksCommand.bind) { - const buff = smart_buffer_1.SmartBuffer.fromBuffer(data); - buff.readOffset = 2; - const remoteHost = { - port: buff.readUInt16BE(), - host: ip.fromLong(buff.readUInt32BE()), - }; - // If host is 0.0.0.0, set to proxy host. - if (remoteHost.host === '0.0.0.0') { - remoteHost.host = this.options.proxy.ipaddress; - } - this.setState(constants_1.SocksClientState.BoundWaitingForConnection); - this.emit('bound', { remoteHost, socket: this.socket }); - // Connect response - } - else { - this.setState(constants_1.SocksClientState.Established); - this.removeInternalSocketHandlers(); - this.emit('established', { socket: this.socket }); - } - } - } - /** - * Handles Socks v4 incoming connection request (BIND) - * @param data - */ - handleSocks4IncomingConnectionResponse() { - const data = this.receiveBuffer.get(8); - if (data[1] !== constants_1.Socks4Response.Granted) { - this.closeSocket(`${constants_1.ERRORS.Socks4ProxyRejectedIncomingBoundConnection} - (${constants_1.Socks4Response[data[1]]})`); - } - else { - const buff = smart_buffer_1.SmartBuffer.fromBuffer(data); - buff.readOffset = 2; - const remoteHost = { - port: buff.readUInt16BE(), - host: ip.fromLong(buff.readUInt32BE()), - }; - this.setState(constants_1.SocksClientState.Established); - this.removeInternalSocketHandlers(); - this.emit('established', { remoteHost, socket: this.socket }); - } - } - /** - * Sends initial Socks v5 handshake request. - */ - sendSocks5InitialHandshake() { - const buff = new smart_buffer_1.SmartBuffer(); - // By default we always support no auth. - const supportedAuthMethods = [constants_1.Socks5Auth.NoAuth]; - // We should only tell the proxy we support user/pass auth if auth info is actually provided. - // Note: As of Tor v0.3.5.7+, if user/pass auth is an option from the client, by default it will always take priority. - if (this.options.proxy.userId || this.options.proxy.password) { - supportedAuthMethods.push(constants_1.Socks5Auth.UserPass); - } - // Custom auth method? - if (this.options.proxy.custom_auth_method !== undefined) { - supportedAuthMethods.push(this.options.proxy.custom_auth_method); - } - // Build handshake packet - buff.writeUInt8(0x05); - buff.writeUInt8(supportedAuthMethods.length); - for (const authMethod of supportedAuthMethods) { - buff.writeUInt8(authMethod); - } - this.nextRequiredPacketBufferSize = - constants_1.SOCKS_INCOMING_PACKET_SIZES.Socks5InitialHandshakeResponse; - this.socket.write(buff.toBuffer()); - this.setState(constants_1.SocksClientState.SentInitialHandshake); - } - /** - * Handles initial Socks v5 handshake response. - * @param data - */ - handleInitialSocks5HandshakeResponse() { - const data = this.receiveBuffer.get(2); - if (data[0] !== 0x05) { - this.closeSocket(constants_1.ERRORS.InvalidSocks5IntiailHandshakeSocksVersion); - } - else if (data[1] === constants_1.SOCKS5_NO_ACCEPTABLE_AUTH) { - this.closeSocket(constants_1.ERRORS.InvalidSocks5InitialHandshakeNoAcceptedAuthType); - } - else { - // If selected Socks v5 auth method is no auth, send final handshake request. - if (data[1] === constants_1.Socks5Auth.NoAuth) { - this.socks5ChosenAuthType = constants_1.Socks5Auth.NoAuth; - this.sendSocks5CommandRequest(); - // If selected Socks v5 auth method is user/password, send auth handshake. - } - else if (data[1] === constants_1.Socks5Auth.UserPass) { - this.socks5ChosenAuthType = constants_1.Socks5Auth.UserPass; - this.sendSocks5UserPassAuthentication(); - // If selected Socks v5 auth method is the custom_auth_method, send custom handshake. - } - else if (data[1] === this.options.proxy.custom_auth_method) { - this.socks5ChosenAuthType = this.options.proxy.custom_auth_method; - this.sendSocks5CustomAuthentication(); - } - else { - this.closeSocket(constants_1.ERRORS.InvalidSocks5InitialHandshakeUnknownAuthType); - } - } - } - /** - * Sends Socks v5 user & password auth handshake. - * - * Note: No auth and user/pass are currently supported. - */ - sendSocks5UserPassAuthentication() { - const userId = this.options.proxy.userId || ''; - const password = this.options.proxy.password || ''; - const buff = new smart_buffer_1.SmartBuffer(); - buff.writeUInt8(0x01); - buff.writeUInt8(Buffer.byteLength(userId)); - buff.writeString(userId); - buff.writeUInt8(Buffer.byteLength(password)); - buff.writeString(password); - this.nextRequiredPacketBufferSize = - constants_1.SOCKS_INCOMING_PACKET_SIZES.Socks5UserPassAuthenticationResponse; - this.socket.write(buff.toBuffer()); - this.setState(constants_1.SocksClientState.SentAuthentication); - } - sendSocks5CustomAuthentication() { - return __awaiter(this, void 0, void 0, function* () { - this.nextRequiredPacketBufferSize = - this.options.proxy.custom_auth_response_size; - this.socket.write(yield this.options.proxy.custom_auth_request_handler()); - this.setState(constants_1.SocksClientState.SentAuthentication); - }); - } - handleSocks5CustomAuthHandshakeResponse(data) { - return __awaiter(this, void 0, void 0, function* () { - return yield this.options.proxy.custom_auth_response_handler(data); - }); - } - handleSocks5AuthenticationNoAuthHandshakeResponse(data) { - return __awaiter(this, void 0, void 0, function* () { - return data[1] === 0x00; - }); - } - handleSocks5AuthenticationUserPassHandshakeResponse(data) { - return __awaiter(this, void 0, void 0, function* () { - return data[1] === 0x00; - }); - } - /** - * Handles Socks v5 auth handshake response. - * @param data - */ - handleInitialSocks5AuthenticationHandshakeResponse() { - return __awaiter(this, void 0, void 0, function* () { - this.setState(constants_1.SocksClientState.ReceivedAuthenticationResponse); - let authResult = false; - if (this.socks5ChosenAuthType === constants_1.Socks5Auth.NoAuth) { - authResult = yield this.handleSocks5AuthenticationNoAuthHandshakeResponse(this.receiveBuffer.get(2)); - } - else if (this.socks5ChosenAuthType === constants_1.Socks5Auth.UserPass) { - authResult = - yield this.handleSocks5AuthenticationUserPassHandshakeResponse(this.receiveBuffer.get(2)); - } - else if (this.socks5ChosenAuthType === this.options.proxy.custom_auth_method) { - authResult = yield this.handleSocks5CustomAuthHandshakeResponse(this.receiveBuffer.get(this.options.proxy.custom_auth_response_size)); - } - if (!authResult) { - this.closeSocket(constants_1.ERRORS.Socks5AuthenticationFailed); - } - else { - this.sendSocks5CommandRequest(); - } - }); - } - /** - * Sends Socks v5 final handshake request. - */ - sendSocks5CommandRequest() { - const buff = new smart_buffer_1.SmartBuffer(); - buff.writeUInt8(0x05); - buff.writeUInt8(constants_1.SocksCommand[this.options.command]); - buff.writeUInt8(0x00); - // ipv4, ipv6, domain? - if (net.isIPv4(this.options.destination.host)) { - buff.writeUInt8(constants_1.Socks5HostType.IPv4); - buff.writeBuffer(ip.toBuffer(this.options.destination.host)); - } - else if (net.isIPv6(this.options.destination.host)) { - buff.writeUInt8(constants_1.Socks5HostType.IPv6); - buff.writeBuffer(ip.toBuffer(this.options.destination.host)); - } - else { - buff.writeUInt8(constants_1.Socks5HostType.Hostname); - buff.writeUInt8(this.options.destination.host.length); - buff.writeString(this.options.destination.host); - } - buff.writeUInt16BE(this.options.destination.port); - this.nextRequiredPacketBufferSize = - constants_1.SOCKS_INCOMING_PACKET_SIZES.Socks5ResponseHeader; - this.socket.write(buff.toBuffer()); - this.setState(constants_1.SocksClientState.SentFinalHandshake); - } - /** - * Handles Socks v5 final handshake response. - * @param data - */ - handleSocks5FinalHandshakeResponse() { - // Peek at available data (we need at least 5 bytes to get the hostname length) - const header = this.receiveBuffer.peek(5); - if (header[0] !== 0x05 || header[1] !== constants_1.Socks5Response.Granted) { - this.closeSocket(`${constants_1.ERRORS.InvalidSocks5FinalHandshakeRejected} - ${constants_1.Socks5Response[header[1]]}`); - } - else { - // Read address type - const addressType = header[3]; - let remoteHost; - let buff; - // IPv4 - if (addressType === constants_1.Socks5HostType.IPv4) { - // Check if data is available. - const dataNeeded = constants_1.SOCKS_INCOMING_PACKET_SIZES.Socks5ResponseIPv4; - if (this.receiveBuffer.length < dataNeeded) { - this.nextRequiredPacketBufferSize = dataNeeded; - return; - } - buff = smart_buffer_1.SmartBuffer.fromBuffer(this.receiveBuffer.get(dataNeeded).slice(4)); - remoteHost = { - host: ip.fromLong(buff.readUInt32BE()), - port: buff.readUInt16BE(), - }; - // If given host is 0.0.0.0, assume remote proxy ip instead. - if (remoteHost.host === '0.0.0.0') { - remoteHost.host = this.options.proxy.ipaddress; - } - // Hostname - } - else if (addressType === constants_1.Socks5HostType.Hostname) { - const hostLength = header[4]; - const dataNeeded = constants_1.SOCKS_INCOMING_PACKET_SIZES.Socks5ResponseHostname(hostLength); // header + host length + host + port - // Check if data is available. - if (this.receiveBuffer.length < dataNeeded) { - this.nextRequiredPacketBufferSize = dataNeeded; - return; - } - buff = smart_buffer_1.SmartBuffer.fromBuffer(this.receiveBuffer.get(dataNeeded).slice(5)); - remoteHost = { - host: buff.readString(hostLength), - port: buff.readUInt16BE(), - }; - // IPv6 - } - else if (addressType === constants_1.Socks5HostType.IPv6) { - // Check if data is available. - const dataNeeded = constants_1.SOCKS_INCOMING_PACKET_SIZES.Socks5ResponseIPv6; - if (this.receiveBuffer.length < dataNeeded) { - this.nextRequiredPacketBufferSize = dataNeeded; - return; - } - buff = smart_buffer_1.SmartBuffer.fromBuffer(this.receiveBuffer.get(dataNeeded).slice(4)); - remoteHost = { - host: ip.toString(buff.readBuffer(16)), - port: buff.readUInt16BE(), - }; - } - // We have everything we need - this.setState(constants_1.SocksClientState.ReceivedFinalResponse); - // If using CONNECT, the client is now in the established state. - if (constants_1.SocksCommand[this.options.command] === constants_1.SocksCommand.connect) { - this.setState(constants_1.SocksClientState.Established); - this.removeInternalSocketHandlers(); - this.emit('established', { remoteHost, socket: this.socket }); - } - else if (constants_1.SocksCommand[this.options.command] === constants_1.SocksCommand.bind) { - /* If using BIND, the Socks client is now in BoundWaitingForConnection state. - This means that the remote proxy server is waiting for a remote connection to the bound port. */ - this.setState(constants_1.SocksClientState.BoundWaitingForConnection); - this.nextRequiredPacketBufferSize = - constants_1.SOCKS_INCOMING_PACKET_SIZES.Socks5ResponseHeader; - this.emit('bound', { remoteHost, socket: this.socket }); - /* - If using Associate, the Socks client is now Established. And the proxy server is now accepting UDP packets at the - given bound port. This initial Socks TCP connection must remain open for the UDP relay to continue to work. - */ - } - else if (constants_1.SocksCommand[this.options.command] === constants_1.SocksCommand.associate) { - this.setState(constants_1.SocksClientState.Established); - this.removeInternalSocketHandlers(); - this.emit('established', { - remoteHost, - socket: this.socket, - }); - } - } - } - /** - * Handles Socks v5 incoming connection request (BIND). - */ - handleSocks5IncomingConnectionResponse() { - // Peek at available data (we need at least 5 bytes to get the hostname length) - const header = this.receiveBuffer.peek(5); - if (header[0] !== 0x05 || header[1] !== constants_1.Socks5Response.Granted) { - this.closeSocket(`${constants_1.ERRORS.Socks5ProxyRejectedIncomingBoundConnection} - ${constants_1.Socks5Response[header[1]]}`); - } - else { - // Read address type - const addressType = header[3]; - let remoteHost; - let buff; - // IPv4 - if (addressType === constants_1.Socks5HostType.IPv4) { - // Check if data is available. - const dataNeeded = constants_1.SOCKS_INCOMING_PACKET_SIZES.Socks5ResponseIPv4; - if (this.receiveBuffer.length < dataNeeded) { - this.nextRequiredPacketBufferSize = dataNeeded; - return; - } - buff = smart_buffer_1.SmartBuffer.fromBuffer(this.receiveBuffer.get(dataNeeded).slice(4)); - remoteHost = { - host: ip.fromLong(buff.readUInt32BE()), - port: buff.readUInt16BE(), - }; - // If given host is 0.0.0.0, assume remote proxy ip instead. - if (remoteHost.host === '0.0.0.0') { - remoteHost.host = this.options.proxy.ipaddress; - } - // Hostname - } - else if (addressType === constants_1.Socks5HostType.Hostname) { - const hostLength = header[4]; - const dataNeeded = constants_1.SOCKS_INCOMING_PACKET_SIZES.Socks5ResponseHostname(hostLength); // header + host length + port - // Check if data is available. - if (this.receiveBuffer.length < dataNeeded) { - this.nextRequiredPacketBufferSize = dataNeeded; - return; - } - buff = smart_buffer_1.SmartBuffer.fromBuffer(this.receiveBuffer.get(dataNeeded).slice(5)); - remoteHost = { - host: buff.readString(hostLength), - port: buff.readUInt16BE(), - }; - // IPv6 - } - else if (addressType === constants_1.Socks5HostType.IPv6) { - // Check if data is available. - const dataNeeded = constants_1.SOCKS_INCOMING_PACKET_SIZES.Socks5ResponseIPv6; - if (this.receiveBuffer.length < dataNeeded) { - this.nextRequiredPacketBufferSize = dataNeeded; - return; - } - buff = smart_buffer_1.SmartBuffer.fromBuffer(this.receiveBuffer.get(dataNeeded).slice(4)); - remoteHost = { - host: ip.toString(buff.readBuffer(16)), - port: buff.readUInt16BE(), - }; - } - this.setState(constants_1.SocksClientState.Established); - this.removeInternalSocketHandlers(); - this.emit('established', { remoteHost, socket: this.socket }); - } - } - get socksClientOptions() { - return Object.assign({}, this.options); - } -} -exports.SocksClient = SocksClient; -//# sourceMappingURL=socksclient.js.map - -/***/ }), - -/***/ 49647: -/***/ ((__unused_webpack_module, exports) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.SOCKS5_NO_ACCEPTABLE_AUTH = exports.SOCKS5_CUSTOM_AUTH_END = exports.SOCKS5_CUSTOM_AUTH_START = exports.SOCKS_INCOMING_PACKET_SIZES = exports.SocksClientState = exports.Socks5Response = exports.Socks5HostType = exports.Socks5Auth = exports.Socks4Response = exports.SocksCommand = exports.ERRORS = exports.DEFAULT_TIMEOUT = void 0; -const DEFAULT_TIMEOUT = 30000; -exports.DEFAULT_TIMEOUT = DEFAULT_TIMEOUT; -// prettier-ignore -const ERRORS = { - InvalidSocksCommand: 'An invalid SOCKS command was provided. Valid options are connect, bind, and associate.', - InvalidSocksCommandForOperation: 'An invalid SOCKS command was provided. Only a subset of commands are supported for this operation.', - InvalidSocksCommandChain: 'An invalid SOCKS command was provided. Chaining currently only supports the connect command.', - InvalidSocksClientOptionsDestination: 'An invalid destination host was provided.', - InvalidSocksClientOptionsExistingSocket: 'An invalid existing socket was provided. This should be an instance of stream.Duplex.', - InvalidSocksClientOptionsProxy: 'Invalid SOCKS proxy details were provided.', - InvalidSocksClientOptionsTimeout: 'An invalid timeout value was provided. Please enter a value above 0 (in ms).', - InvalidSocksClientOptionsProxiesLength: 'At least two socks proxies must be provided for chaining.', - InvalidSocksClientOptionsCustomAuthRange: 'Custom auth must be a value between 0x80 and 0xFE.', - InvalidSocksClientOptionsCustomAuthOptions: 'When a custom_auth_method is provided, custom_auth_request_handler, custom_auth_response_size, and custom_auth_response_handler must also be provided and valid.', - NegotiationError: 'Negotiation error', - SocketClosed: 'Socket closed', - ProxyConnectionTimedOut: 'Proxy connection timed out', - InternalError: 'SocksClient internal error (this should not happen)', - InvalidSocks4HandshakeResponse: 'Received invalid Socks4 handshake response', - Socks4ProxyRejectedConnection: 'Socks4 Proxy rejected connection', - InvalidSocks4IncomingConnectionResponse: 'Socks4 invalid incoming connection response', - Socks4ProxyRejectedIncomingBoundConnection: 'Socks4 Proxy rejected incoming bound connection', - InvalidSocks5InitialHandshakeResponse: 'Received invalid Socks5 initial handshake response', - InvalidSocks5IntiailHandshakeSocksVersion: 'Received invalid Socks5 initial handshake (invalid socks version)', - InvalidSocks5InitialHandshakeNoAcceptedAuthType: 'Received invalid Socks5 initial handshake (no accepted authentication type)', - InvalidSocks5InitialHandshakeUnknownAuthType: 'Received invalid Socks5 initial handshake (unknown authentication type)', - Socks5AuthenticationFailed: 'Socks5 Authentication failed', - InvalidSocks5FinalHandshake: 'Received invalid Socks5 final handshake response', - InvalidSocks5FinalHandshakeRejected: 'Socks5 proxy rejected connection', - InvalidSocks5IncomingConnectionResponse: 'Received invalid Socks5 incoming connection response', - Socks5ProxyRejectedIncomingBoundConnection: 'Socks5 Proxy rejected incoming bound connection', -}; -exports.ERRORS = ERRORS; -const SOCKS_INCOMING_PACKET_SIZES = { - Socks5InitialHandshakeResponse: 2, - Socks5UserPassAuthenticationResponse: 2, - // Command response + incoming connection (bind) - Socks5ResponseHeader: 5, - Socks5ResponseIPv4: 10, - Socks5ResponseIPv6: 22, - Socks5ResponseHostname: (hostNameLength) => hostNameLength + 7, - // Command response + incoming connection (bind) - Socks4Response: 8, // 2 header + 2 port + 4 ip -}; -exports.SOCKS_INCOMING_PACKET_SIZES = SOCKS_INCOMING_PACKET_SIZES; -var SocksCommand; -(function (SocksCommand) { - SocksCommand[SocksCommand["connect"] = 1] = "connect"; - SocksCommand[SocksCommand["bind"] = 2] = "bind"; - SocksCommand[SocksCommand["associate"] = 3] = "associate"; -})(SocksCommand || (SocksCommand = {})); -exports.SocksCommand = SocksCommand; -var Socks4Response; -(function (Socks4Response) { - Socks4Response[Socks4Response["Granted"] = 90] = "Granted"; - Socks4Response[Socks4Response["Failed"] = 91] = "Failed"; - Socks4Response[Socks4Response["Rejected"] = 92] = "Rejected"; - Socks4Response[Socks4Response["RejectedIdent"] = 93] = "RejectedIdent"; -})(Socks4Response || (Socks4Response = {})); -exports.Socks4Response = Socks4Response; -var Socks5Auth; -(function (Socks5Auth) { - Socks5Auth[Socks5Auth["NoAuth"] = 0] = "NoAuth"; - Socks5Auth[Socks5Auth["GSSApi"] = 1] = "GSSApi"; - Socks5Auth[Socks5Auth["UserPass"] = 2] = "UserPass"; -})(Socks5Auth || (Socks5Auth = {})); -exports.Socks5Auth = Socks5Auth; -const SOCKS5_CUSTOM_AUTH_START = 0x80; -exports.SOCKS5_CUSTOM_AUTH_START = SOCKS5_CUSTOM_AUTH_START; -const SOCKS5_CUSTOM_AUTH_END = 0xfe; -exports.SOCKS5_CUSTOM_AUTH_END = SOCKS5_CUSTOM_AUTH_END; -const SOCKS5_NO_ACCEPTABLE_AUTH = 0xff; -exports.SOCKS5_NO_ACCEPTABLE_AUTH = SOCKS5_NO_ACCEPTABLE_AUTH; -var Socks5Response; -(function (Socks5Response) { - Socks5Response[Socks5Response["Granted"] = 0] = "Granted"; - Socks5Response[Socks5Response["Failure"] = 1] = "Failure"; - Socks5Response[Socks5Response["NotAllowed"] = 2] = "NotAllowed"; - Socks5Response[Socks5Response["NetworkUnreachable"] = 3] = "NetworkUnreachable"; - Socks5Response[Socks5Response["HostUnreachable"] = 4] = "HostUnreachable"; - Socks5Response[Socks5Response["ConnectionRefused"] = 5] = "ConnectionRefused"; - Socks5Response[Socks5Response["TTLExpired"] = 6] = "TTLExpired"; - Socks5Response[Socks5Response["CommandNotSupported"] = 7] = "CommandNotSupported"; - Socks5Response[Socks5Response["AddressNotSupported"] = 8] = "AddressNotSupported"; -})(Socks5Response || (Socks5Response = {})); -exports.Socks5Response = Socks5Response; -var Socks5HostType; -(function (Socks5HostType) { - Socks5HostType[Socks5HostType["IPv4"] = 1] = "IPv4"; - Socks5HostType[Socks5HostType["Hostname"] = 3] = "Hostname"; - Socks5HostType[Socks5HostType["IPv6"] = 4] = "IPv6"; -})(Socks5HostType || (Socks5HostType = {})); -exports.Socks5HostType = Socks5HostType; -var SocksClientState; -(function (SocksClientState) { - SocksClientState[SocksClientState["Created"] = 0] = "Created"; - SocksClientState[SocksClientState["Connecting"] = 1] = "Connecting"; - SocksClientState[SocksClientState["Connected"] = 2] = "Connected"; - SocksClientState[SocksClientState["SentInitialHandshake"] = 3] = "SentInitialHandshake"; - SocksClientState[SocksClientState["ReceivedInitialHandshakeResponse"] = 4] = "ReceivedInitialHandshakeResponse"; - SocksClientState[SocksClientState["SentAuthentication"] = 5] = "SentAuthentication"; - SocksClientState[SocksClientState["ReceivedAuthenticationResponse"] = 6] = "ReceivedAuthenticationResponse"; - SocksClientState[SocksClientState["SentFinalHandshake"] = 7] = "SentFinalHandshake"; - SocksClientState[SocksClientState["ReceivedFinalResponse"] = 8] = "ReceivedFinalResponse"; - SocksClientState[SocksClientState["BoundWaitingForConnection"] = 9] = "BoundWaitingForConnection"; - SocksClientState[SocksClientState["Established"] = 10] = "Established"; - SocksClientState[SocksClientState["Disconnected"] = 11] = "Disconnected"; - SocksClientState[SocksClientState["Error"] = 99] = "Error"; -})(SocksClientState || (SocksClientState = {})); -exports.SocksClientState = SocksClientState; -//# sourceMappingURL=constants.js.map - -/***/ }), - -/***/ 74324: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.validateSocksClientChainOptions = exports.validateSocksClientOptions = void 0; -const util_1 = __nccwpck_require__(75523); -const constants_1 = __nccwpck_require__(49647); -const stream = __nccwpck_require__(92413); -/** - * Validates the provided SocksClientOptions - * @param options { SocksClientOptions } - * @param acceptedCommands { string[] } A list of accepted SocksProxy commands. - */ -function validateSocksClientOptions(options, acceptedCommands = ['connect', 'bind', 'associate']) { - // Check SOCKs command option. - if (!constants_1.SocksCommand[options.command]) { - throw new util_1.SocksClientError(constants_1.ERRORS.InvalidSocksCommand, options); - } - // Check SocksCommand for acceptable command. - if (acceptedCommands.indexOf(options.command) === -1) { - throw new util_1.SocksClientError(constants_1.ERRORS.InvalidSocksCommandForOperation, options); - } - // Check destination - if (!isValidSocksRemoteHost(options.destination)) { - throw new util_1.SocksClientError(constants_1.ERRORS.InvalidSocksClientOptionsDestination, options); - } - // Check SOCKS proxy to use - if (!isValidSocksProxy(options.proxy)) { - throw new util_1.SocksClientError(constants_1.ERRORS.InvalidSocksClientOptionsProxy, options); - } - // Validate custom auth (if set) - validateCustomProxyAuth(options.proxy, options); - // Check timeout - if (options.timeout && !isValidTimeoutValue(options.timeout)) { - throw new util_1.SocksClientError(constants_1.ERRORS.InvalidSocksClientOptionsTimeout, options); - } - // Check existing_socket (if provided) - if (options.existing_socket && - !(options.existing_socket instanceof stream.Duplex)) { - throw new util_1.SocksClientError(constants_1.ERRORS.InvalidSocksClientOptionsExistingSocket, options); - } -} -exports.validateSocksClientOptions = validateSocksClientOptions; -/** - * Validates the SocksClientChainOptions - * @param options { SocksClientChainOptions } - */ -function validateSocksClientChainOptions(options) { - // Only connect is supported when chaining. - if (options.command !== 'connect') { - throw new util_1.SocksClientError(constants_1.ERRORS.InvalidSocksCommandChain, options); - } - // Check destination - if (!isValidSocksRemoteHost(options.destination)) { - throw new util_1.SocksClientError(constants_1.ERRORS.InvalidSocksClientOptionsDestination, options); - } - // Validate proxies (length) - if (!(options.proxies && - Array.isArray(options.proxies) && - options.proxies.length >= 2)) { - throw new util_1.SocksClientError(constants_1.ERRORS.InvalidSocksClientOptionsProxiesLength, options); - } - // Validate proxies - options.proxies.forEach((proxy) => { - if (!isValidSocksProxy(proxy)) { - throw new util_1.SocksClientError(constants_1.ERRORS.InvalidSocksClientOptionsProxy, options); - } - // Validate custom auth (if set) - validateCustomProxyAuth(proxy, options); - }); - // Check timeout - if (options.timeout && !isValidTimeoutValue(options.timeout)) { - throw new util_1.SocksClientError(constants_1.ERRORS.InvalidSocksClientOptionsTimeout, options); - } -} -exports.validateSocksClientChainOptions = validateSocksClientChainOptions; -function validateCustomProxyAuth(proxy, options) { - if (proxy.custom_auth_method !== undefined) { - // Invalid auth method range - if (proxy.custom_auth_method < constants_1.SOCKS5_CUSTOM_AUTH_START || - proxy.custom_auth_method > constants_1.SOCKS5_CUSTOM_AUTH_END) { - throw new util_1.SocksClientError(constants_1.ERRORS.InvalidSocksClientOptionsCustomAuthRange, options); - } - // Missing custom_auth_request_handler - if (proxy.custom_auth_request_handler === undefined || - typeof proxy.custom_auth_request_handler !== 'function') { - throw new util_1.SocksClientError(constants_1.ERRORS.InvalidSocksClientOptionsCustomAuthOptions, options); - } - // Missing custom_auth_response_size - if (proxy.custom_auth_response_size === undefined) { - throw new util_1.SocksClientError(constants_1.ERRORS.InvalidSocksClientOptionsCustomAuthOptions, options); - } - // Missing/invalid custom_auth_response_handler - if (proxy.custom_auth_response_handler === undefined || - typeof proxy.custom_auth_response_handler !== 'function') { - throw new util_1.SocksClientError(constants_1.ERRORS.InvalidSocksClientOptionsCustomAuthOptions, options); - } - } -} -/** - * Validates a SocksRemoteHost - * @param remoteHost { SocksRemoteHost } - */ -function isValidSocksRemoteHost(remoteHost) { - return (remoteHost && - typeof remoteHost.host === 'string' && - typeof remoteHost.port === 'number' && - remoteHost.port >= 0 && - remoteHost.port <= 65535); -} -/** - * Validates a SocksProxy - * @param proxy { SocksProxy } - */ -function isValidSocksProxy(proxy) { - return (proxy && - (typeof proxy.host === 'string' || typeof proxy.ipaddress === 'string') && - typeof proxy.port === 'number' && - proxy.port >= 0 && - proxy.port <= 65535 && - (proxy.type === 4 || proxy.type === 5)); -} -/** - * Validates a timeout value. - * @param value { Number } - */ -function isValidTimeoutValue(value) { - return typeof value === 'number' && value > 0; -} -//# sourceMappingURL=helpers.js.map - -/***/ }), - -/***/ 39740: -/***/ ((__unused_webpack_module, exports) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.ReceiveBuffer = void 0; -class ReceiveBuffer { - constructor(size = 4096) { - this.buffer = Buffer.allocUnsafe(size); - this.offset = 0; - this.originalSize = size; - } - get length() { - return this.offset; - } - append(data) { - if (!Buffer.isBuffer(data)) { - throw new Error('Attempted to append a non-buffer instance to ReceiveBuffer.'); - } - if (this.offset + data.length >= this.buffer.length) { - const tmp = this.buffer; - this.buffer = Buffer.allocUnsafe(Math.max(this.buffer.length + this.originalSize, this.buffer.length + data.length)); - tmp.copy(this.buffer); - } - data.copy(this.buffer, this.offset); - return (this.offset += data.length); - } - peek(length) { - if (length > this.offset) { - throw new Error('Attempted to read beyond the bounds of the managed internal data.'); - } - return this.buffer.slice(0, length); - } - get(length) { - if (length > this.offset) { - throw new Error('Attempted to read beyond the bounds of the managed internal data.'); - } - const value = Buffer.allocUnsafe(length); - this.buffer.slice(0, length).copy(value); - this.buffer.copyWithin(0, length, length + this.offset - length); - this.offset -= length; - return value; - } -} -exports.ReceiveBuffer = ReceiveBuffer; -//# sourceMappingURL=receivebuffer.js.map - -/***/ }), - -/***/ 75523: -/***/ ((__unused_webpack_module, exports) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.shuffleArray = exports.SocksClientError = void 0; -/** - * Error wrapper for SocksClient - */ -class SocksClientError extends Error { - constructor(message, options) { - super(message); - this.options = options; - } -} -exports.SocksClientError = SocksClientError; -/** - * Shuffles a given array. - * @param array The array to shuffle. - */ -function shuffleArray(array) { - // tslint:disable-next-line:no-increment-decrement - for (let i = array.length - 1; i > 0; i--) { - const j = Math.floor(Math.random() * (i + 1)); - [array[i], array[j]] = [array[j], array[i]]; - } -} -exports.shuffleArray = shuffleArray; -//# sourceMappingURL=util.js.map - -/***/ }), - -/***/ 54754: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __exportStar = (this && this.__exportStar) || function(m, exports) { - for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); -}; -Object.defineProperty(exports, "__esModule", ({ value: true })); -__exportStar(__nccwpck_require__(36127), exports); -//# sourceMappingURL=index.js.map - -/***/ }), - -/***/ 26375: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -/* -*- Mode: js; js-indent-level: 2; -*- */ -/* - * Copyright 2011 Mozilla Foundation and contributors - * Licensed under the New BSD license. See LICENSE or: - * http://opensource.org/licenses/BSD-3-Clause - */ - -var util = __nccwpck_require__(12344); -var has = Object.prototype.hasOwnProperty; -var hasNativeMap = typeof Map !== "undefined"; - -/** - * A data structure which is a combination of an array and a set. Adding a new - * member is O(1), testing for membership is O(1), and finding the index of an - * element is O(1). Removing elements from the set is not supported. Only - * strings are supported for membership. - */ -function ArraySet() { - this._array = []; - this._set = hasNativeMap ? new Map() : Object.create(null); -} - -/** - * Static method for creating ArraySet instances from an existing array. - */ -ArraySet.fromArray = function ArraySet_fromArray(aArray, aAllowDuplicates) { - var set = new ArraySet(); - for (var i = 0, len = aArray.length; i < len; i++) { - set.add(aArray[i], aAllowDuplicates); - } - return set; -}; - -/** - * Return how many unique items are in this ArraySet. If duplicates have been - * added, than those do not count towards the size. - * - * @returns Number - */ -ArraySet.prototype.size = function ArraySet_size() { - return hasNativeMap ? this._set.size : Object.getOwnPropertyNames(this._set).length; -}; - -/** - * Add the given string to this set. - * - * @param String aStr - */ -ArraySet.prototype.add = function ArraySet_add(aStr, aAllowDuplicates) { - var sStr = hasNativeMap ? aStr : util.toSetString(aStr); - var isDuplicate = hasNativeMap ? this.has(aStr) : has.call(this._set, sStr); - var idx = this._array.length; - if (!isDuplicate || aAllowDuplicates) { - this._array.push(aStr); - } - if (!isDuplicate) { - if (hasNativeMap) { - this._set.set(aStr, idx); - } else { - this._set[sStr] = idx; - } - } -}; - -/** - * Is the given string a member of this set? - * - * @param String aStr - */ -ArraySet.prototype.has = function ArraySet_has(aStr) { - if (hasNativeMap) { - return this._set.has(aStr); - } else { - var sStr = util.toSetString(aStr); - return has.call(this._set, sStr); - } -}; - -/** - * What is the index of the given string in the array? - * - * @param String aStr - */ -ArraySet.prototype.indexOf = function ArraySet_indexOf(aStr) { - if (hasNativeMap) { - var idx = this._set.get(aStr); - if (idx >= 0) { - return idx; - } - } else { - var sStr = util.toSetString(aStr); - if (has.call(this._set, sStr)) { - return this._set[sStr]; - } - } - - throw new Error('"' + aStr + '" is not in the set.'); -}; - -/** - * What is the element at the given index? - * - * @param Number aIdx - */ -ArraySet.prototype.at = function ArraySet_at(aIdx) { - if (aIdx >= 0 && aIdx < this._array.length) { - return this._array[aIdx]; - } - throw new Error('No element indexed by ' + aIdx); -}; - -/** - * Returns the array representation of this set (which has the proper indices - * indicated by indexOf). Note that this is a copy of the internal array used - * for storing the members so that no one can mess with internal state. - */ -ArraySet.prototype.toArray = function ArraySet_toArray() { - return this._array.slice(); -}; - -exports.I = ArraySet; - - -/***/ }), - -/***/ 10975: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -/* -*- Mode: js; js-indent-level: 2; -*- */ -/* - * Copyright 2011 Mozilla Foundation and contributors - * Licensed under the New BSD license. See LICENSE or: - * http://opensource.org/licenses/BSD-3-Clause - * - * Based on the Base 64 VLQ implementation in Closure Compiler: - * https://code.google.com/p/closure-compiler/source/browse/trunk/src/com/google/debugging/sourcemap/Base64VLQ.java - * - * Copyright 2011 The Closure Compiler Authors. All rights reserved. - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are - * met: - * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * * Redistributions in binary form must reproduce the above - * copyright notice, this list of conditions and the following - * disclaimer in the documentation and/or other materials provided - * with the distribution. - * * Neither the name of Google Inc. nor the names of its - * contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR - * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT - * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, - * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT - * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, - * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY - * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE - * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - */ - -var base64 = __nccwpck_require__(6156); - -// A single base 64 digit can contain 6 bits of data. For the base 64 variable -// length quantities we use in the source map spec, the first bit is the sign, -// the next four bits are the actual value, and the 6th bit is the -// continuation bit. The continuation bit tells us whether there are more -// digits in this value following this digit. -// -// Continuation -// | Sign -// | | -// V V -// 101011 - -var VLQ_BASE_SHIFT = 5; - -// binary: 100000 -var VLQ_BASE = 1 << VLQ_BASE_SHIFT; - -// binary: 011111 -var VLQ_BASE_MASK = VLQ_BASE - 1; - -// binary: 100000 -var VLQ_CONTINUATION_BIT = VLQ_BASE; - -/** - * Converts from a two-complement value to a value where the sign bit is - * placed in the least significant bit. For example, as decimals: - * 1 becomes 2 (10 binary), -1 becomes 3 (11 binary) - * 2 becomes 4 (100 binary), -2 becomes 5 (101 binary) - */ -function toVLQSigned(aValue) { - return aValue < 0 - ? ((-aValue) << 1) + 1 - : (aValue << 1) + 0; -} - -/** - * Converts to a two-complement value from a value where the sign bit is - * placed in the least significant bit. For example, as decimals: - * 2 (10 binary) becomes 1, 3 (11 binary) becomes -1 - * 4 (100 binary) becomes 2, 5 (101 binary) becomes -2 - */ -function fromVLQSigned(aValue) { - var isNegative = (aValue & 1) === 1; - var shifted = aValue >> 1; - return isNegative - ? -shifted - : shifted; -} - -/** - * Returns the base 64 VLQ encoded value. - */ -exports.encode = function base64VLQ_encode(aValue) { - var encoded = ""; - var digit; - - var vlq = toVLQSigned(aValue); - - do { - digit = vlq & VLQ_BASE_MASK; - vlq >>>= VLQ_BASE_SHIFT; - if (vlq > 0) { - // There are still more digits in this value, so we must make sure the - // continuation bit is marked. - digit |= VLQ_CONTINUATION_BIT; - } - encoded += base64.encode(digit); - } while (vlq > 0); - - return encoded; -}; - -/** - * Decodes the next base 64 VLQ value from the given string and returns the - * value and the rest of the string via the out parameter. - */ -exports.decode = function base64VLQ_decode(aStr, aIndex, aOutParam) { - var strLen = aStr.length; - var result = 0; - var shift = 0; - var continuation, digit; - - do { - if (aIndex >= strLen) { - throw new Error("Expected more digits in base 64 VLQ value."); - } - - digit = base64.decode(aStr.charCodeAt(aIndex++)); - if (digit === -1) { - throw new Error("Invalid base64 digit: " + aStr.charAt(aIndex - 1)); - } - - continuation = !!(digit & VLQ_CONTINUATION_BIT); - digit &= VLQ_BASE_MASK; - result = result + (digit << shift); - shift += VLQ_BASE_SHIFT; - } while (continuation); - - aOutParam.value = fromVLQSigned(result); - aOutParam.rest = aIndex; -}; - - -/***/ }), - -/***/ 6156: -/***/ ((__unused_webpack_module, exports) => { - -/* -*- Mode: js; js-indent-level: 2; -*- */ -/* - * Copyright 2011 Mozilla Foundation and contributors - * Licensed under the New BSD license. See LICENSE or: - * http://opensource.org/licenses/BSD-3-Clause - */ - -var intToCharMap = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/'.split(''); - -/** - * Encode an integer in the range of 0 to 63 to a single base 64 digit. - */ -exports.encode = function (number) { - if (0 <= number && number < intToCharMap.length) { - return intToCharMap[number]; - } - throw new TypeError("Must be between 0 and 63: " + number); -}; - -/** - * Decode a single base 64 character code digit to an integer. Returns -1 on - * failure. - */ -exports.decode = function (charCode) { - var bigA = 65; // 'A' - var bigZ = 90; // 'Z' - - var littleA = 97; // 'a' - var littleZ = 122; // 'z' - - var zero = 48; // '0' - var nine = 57; // '9' - - var plus = 43; // '+' - var slash = 47; // '/' - - var littleOffset = 26; - var numberOffset = 52; - - // 0 - 25: ABCDEFGHIJKLMNOPQRSTUVWXYZ - if (bigA <= charCode && charCode <= bigZ) { - return (charCode - bigA); - } - - // 26 - 51: abcdefghijklmnopqrstuvwxyz - if (littleA <= charCode && charCode <= littleZ) { - return (charCode - littleA + littleOffset); - } - - // 52 - 61: 0123456789 - if (zero <= charCode && charCode <= nine) { - return (charCode - zero + numberOffset); - } - - // 62: + - if (charCode == plus) { - return 62; - } - - // 63: / - if (charCode == slash) { - return 63; - } - - // Invalid base64 digit. - return -1; -}; - - -/***/ }), - -/***/ 33600: -/***/ ((__unused_webpack_module, exports) => { - -/* -*- Mode: js; js-indent-level: 2; -*- */ -/* - * Copyright 2011 Mozilla Foundation and contributors - * Licensed under the New BSD license. See LICENSE or: - * http://opensource.org/licenses/BSD-3-Clause - */ - -exports.GREATEST_LOWER_BOUND = 1; -exports.LEAST_UPPER_BOUND = 2; - -/** - * Recursive implementation of binary search. - * - * @param aLow Indices here and lower do not contain the needle. - * @param aHigh Indices here and higher do not contain the needle. - * @param aNeedle The element being searched for. - * @param aHaystack The non-empty array being searched. - * @param aCompare Function which takes two elements and returns -1, 0, or 1. - * @param aBias Either 'binarySearch.GREATEST_LOWER_BOUND' or - * 'binarySearch.LEAST_UPPER_BOUND'. Specifies whether to return the - * closest element that is smaller than or greater than the one we are - * searching for, respectively, if the exact element cannot be found. - */ -function recursiveSearch(aLow, aHigh, aNeedle, aHaystack, aCompare, aBias) { - // This function terminates when one of the following is true: - // - // 1. We find the exact element we are looking for. - // - // 2. We did not find the exact element, but we can return the index of - // the next-closest element. - // - // 3. We did not find the exact element, and there is no next-closest - // element than the one we are searching for, so we return -1. - var mid = Math.floor((aHigh - aLow) / 2) + aLow; - var cmp = aCompare(aNeedle, aHaystack[mid], true); - if (cmp === 0) { - // Found the element we are looking for. - return mid; - } - else if (cmp > 0) { - // Our needle is greater than aHaystack[mid]. - if (aHigh - mid > 1) { - // The element is in the upper half. - return recursiveSearch(mid, aHigh, aNeedle, aHaystack, aCompare, aBias); - } - - // The exact needle element was not found in this haystack. Determine if - // we are in termination case (3) or (2) and return the appropriate thing. - if (aBias == exports.LEAST_UPPER_BOUND) { - return aHigh < aHaystack.length ? aHigh : -1; - } else { - return mid; - } - } - else { - // Our needle is less than aHaystack[mid]. - if (mid - aLow > 1) { - // The element is in the lower half. - return recursiveSearch(aLow, mid, aNeedle, aHaystack, aCompare, aBias); - } - - // we are in termination case (3) or (2) and return the appropriate thing. - if (aBias == exports.LEAST_UPPER_BOUND) { - return mid; - } else { - return aLow < 0 ? -1 : aLow; - } - } -} - -/** - * This is an implementation of binary search which will always try and return - * the index of the closest element if there is no exact hit. This is because - * mappings between original and generated line/col pairs are single points, - * and there is an implicit region between each of them, so a miss just means - * that you aren't on the very start of a region. - * - * @param aNeedle The element you are looking for. - * @param aHaystack The array that is being searched. - * @param aCompare A function which takes the needle and an element in the - * array and returns -1, 0, or 1 depending on whether the needle is less - * than, equal to, or greater than the element, respectively. - * @param aBias Either 'binarySearch.GREATEST_LOWER_BOUND' or - * 'binarySearch.LEAST_UPPER_BOUND'. Specifies whether to return the - * closest element that is smaller than or greater than the one we are - * searching for, respectively, if the exact element cannot be found. - * Defaults to 'binarySearch.GREATEST_LOWER_BOUND'. - */ -exports.search = function search(aNeedle, aHaystack, aCompare, aBias) { - if (aHaystack.length === 0) { - return -1; - } - - var index = recursiveSearch(-1, aHaystack.length, aNeedle, aHaystack, - aCompare, aBias || exports.GREATEST_LOWER_BOUND); - if (index < 0) { - return -1; - } - - // We have found either the exact element, or the next-closest element than - // the one we are searching for. However, there may be more than one such - // element. Make sure we always return the smallest of these. - while (index - 1 >= 0) { - if (aCompare(aHaystack[index], aHaystack[index - 1], true) !== 0) { - break; - } - --index; - } - - return index; -}; - - -/***/ }), - -/***/ 86817: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -/* -*- Mode: js; js-indent-level: 2; -*- */ -/* - * Copyright 2014 Mozilla Foundation and contributors - * Licensed under the New BSD license. See LICENSE or: - * http://opensource.org/licenses/BSD-3-Clause - */ - -var util = __nccwpck_require__(12344); - -/** - * Determine whether mappingB is after mappingA with respect to generated - * position. - */ -function generatedPositionAfter(mappingA, mappingB) { - // Optimized for most common case - var lineA = mappingA.generatedLine; - var lineB = mappingB.generatedLine; - var columnA = mappingA.generatedColumn; - var columnB = mappingB.generatedColumn; - return lineB > lineA || lineB == lineA && columnB >= columnA || - util.compareByGeneratedPositionsInflated(mappingA, mappingB) <= 0; -} - -/** - * A data structure to provide a sorted view of accumulated mappings in a - * performance conscious manner. It trades a neglibable overhead in general - * case for a large speedup in case of mappings being added in order. - */ -function MappingList() { - this._array = []; - this._sorted = true; - // Serves as infimum - this._last = {generatedLine: -1, generatedColumn: 0}; -} - -/** - * Iterate through internal items. This method takes the same arguments that - * `Array.prototype.forEach` takes. - * - * NOTE: The order of the mappings is NOT guaranteed. - */ -MappingList.prototype.unsortedForEach = - function MappingList_forEach(aCallback, aThisArg) { - this._array.forEach(aCallback, aThisArg); - }; - -/** - * Add the given source mapping. - * - * @param Object aMapping - */ -MappingList.prototype.add = function MappingList_add(aMapping) { - if (generatedPositionAfter(this._last, aMapping)) { - this._last = aMapping; - this._array.push(aMapping); - } else { - this._sorted = false; - this._array.push(aMapping); - } -}; - -/** - * Returns the flat, sorted array of mappings. The mappings are sorted by - * generated position. - * - * WARNING: This method returns internal data without copying, for - * performance. The return value must NOT be mutated, and should be treated as - * an immutable borrow. If you want to take ownership, you must make your own - * copy. - */ -MappingList.prototype.toArray = function MappingList_toArray() { - if (!this._sorted) { - this._array.sort(util.compareByGeneratedPositionsInflated); - this._sorted = true; - } - return this._array; -}; - -exports.H = MappingList; - - -/***/ }), - -/***/ 73254: -/***/ ((__unused_webpack_module, exports) => { - -/* -*- Mode: js; js-indent-level: 2; -*- */ -/* - * Copyright 2011 Mozilla Foundation and contributors - * Licensed under the New BSD license. See LICENSE or: - * http://opensource.org/licenses/BSD-3-Clause - */ - -// It turns out that some (most?) JavaScript engines don't self-host -// `Array.prototype.sort`. This makes sense because C++ will likely remain -// faster than JS when doing raw CPU-intensive sorting. However, when using a -// custom comparator function, calling back and forth between the VM's C++ and -// JIT'd JS is rather slow *and* loses JIT type information, resulting in -// worse generated code for the comparator function than would be optimal. In -// fact, when sorting with a comparator, these costs outweigh the benefits of -// sorting in C++. By using our own JS-implemented Quick Sort (below), we get -// a ~3500ms mean speed-up in `bench/bench.html`. - -/** - * Swap the elements indexed by `x` and `y` in the array `ary`. - * - * @param {Array} ary - * The array. - * @param {Number} x - * The index of the first item. - * @param {Number} y - * The index of the second item. - */ -function swap(ary, x, y) { - var temp = ary[x]; - ary[x] = ary[y]; - ary[y] = temp; -} - -/** - * Returns a random integer within the range `low .. high` inclusive. - * - * @param {Number} low - * The lower bound on the range. - * @param {Number} high - * The upper bound on the range. - */ -function randomIntInRange(low, high) { - return Math.round(low + (Math.random() * (high - low))); -} - -/** - * The Quick Sort algorithm. - * - * @param {Array} ary - * An array to sort. - * @param {function} comparator - * Function to use to compare two items. - * @param {Number} p - * Start index of the array - * @param {Number} r - * End index of the array - */ -function doQuickSort(ary, comparator, p, r) { - // If our lower bound is less than our upper bound, we (1) partition the - // array into two pieces and (2) recurse on each half. If it is not, this is - // the empty array and our base case. - - if (p < r) { - // (1) Partitioning. - // - // The partitioning chooses a pivot between `p` and `r` and moves all - // elements that are less than or equal to the pivot to the before it, and - // all the elements that are greater than it after it. The effect is that - // once partition is done, the pivot is in the exact place it will be when - // the array is put in sorted order, and it will not need to be moved - // again. This runs in O(n) time. - - // Always choose a random pivot so that an input array which is reverse - // sorted does not cause O(n^2) running time. - var pivotIndex = randomIntInRange(p, r); - var i = p - 1; - - swap(ary, pivotIndex, r); - var pivot = ary[r]; - - // Immediately after `j` is incremented in this loop, the following hold - // true: - // - // * Every element in `ary[p .. i]` is less than or equal to the pivot. - // - // * Every element in `ary[i+1 .. j-1]` is greater than the pivot. - for (var j = p; j < r; j++) { - if (comparator(ary[j], pivot) <= 0) { - i += 1; - swap(ary, i, j); - } - } - - swap(ary, i + 1, j); - var q = i + 1; - - // (2) Recurse on each half. - - doQuickSort(ary, comparator, p, q - 1); - doQuickSort(ary, comparator, q + 1, r); - } -} - -/** - * Sort the given array in-place with the given comparator function. - * - * @param {Array} ary - * An array to sort. - * @param {function} comparator - * Function to use to compare two items. - */ -exports.U = function (ary, comparator) { - doQuickSort(ary, comparator, 0, ary.length - 1); -}; - - -/***/ }), - -/***/ 75155: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -var __webpack_unused_export__; -/* -*- Mode: js; js-indent-level: 2; -*- */ -/* - * Copyright 2011 Mozilla Foundation and contributors - * Licensed under the New BSD license. See LICENSE or: - * http://opensource.org/licenses/BSD-3-Clause - */ - -var util = __nccwpck_require__(12344); -var binarySearch = __nccwpck_require__(33600); -var ArraySet = __nccwpck_require__(26375)/* .ArraySet */ .I; -var base64VLQ = __nccwpck_require__(10975); -var quickSort = __nccwpck_require__(73254)/* .quickSort */ .U; - -function SourceMapConsumer(aSourceMap, aSourceMapURL) { - var sourceMap = aSourceMap; - if (typeof aSourceMap === 'string') { - sourceMap = util.parseSourceMapInput(aSourceMap); - } - - return sourceMap.sections != null - ? new IndexedSourceMapConsumer(sourceMap, aSourceMapURL) - : new BasicSourceMapConsumer(sourceMap, aSourceMapURL); -} - -SourceMapConsumer.fromSourceMap = function(aSourceMap, aSourceMapURL) { - return BasicSourceMapConsumer.fromSourceMap(aSourceMap, aSourceMapURL); -} - -/** - * The version of the source mapping spec that we are consuming. - */ -SourceMapConsumer.prototype._version = 3; - -// `__generatedMappings` and `__originalMappings` are arrays that hold the -// parsed mapping coordinates from the source map's "mappings" attribute. They -// are lazily instantiated, accessed via the `_generatedMappings` and -// `_originalMappings` getters respectively, and we only parse the mappings -// and create these arrays once queried for a source location. We jump through -// these hoops because there can be many thousands of mappings, and parsing -// them is expensive, so we only want to do it if we must. -// -// Each object in the arrays is of the form: -// -// { -// generatedLine: The line number in the generated code, -// generatedColumn: The column number in the generated code, -// source: The path to the original source file that generated this -// chunk of code, -// originalLine: The line number in the original source that -// corresponds to this chunk of generated code, -// originalColumn: The column number in the original source that -// corresponds to this chunk of generated code, -// name: The name of the original symbol which generated this chunk of -// code. -// } -// -// All properties except for `generatedLine` and `generatedColumn` can be -// `null`. -// -// `_generatedMappings` is ordered by the generated positions. -// -// `_originalMappings` is ordered by the original positions. - -SourceMapConsumer.prototype.__generatedMappings = null; -Object.defineProperty(SourceMapConsumer.prototype, '_generatedMappings', { - configurable: true, - enumerable: true, - get: function () { - if (!this.__generatedMappings) { - this._parseMappings(this._mappings, this.sourceRoot); - } - - return this.__generatedMappings; - } -}); - -SourceMapConsumer.prototype.__originalMappings = null; -Object.defineProperty(SourceMapConsumer.prototype, '_originalMappings', { - configurable: true, - enumerable: true, - get: function () { - if (!this.__originalMappings) { - this._parseMappings(this._mappings, this.sourceRoot); - } - - return this.__originalMappings; - } -}); - -SourceMapConsumer.prototype._charIsMappingSeparator = - function SourceMapConsumer_charIsMappingSeparator(aStr, index) { - var c = aStr.charAt(index); - return c === ";" || c === ","; - }; - -/** - * Parse the mappings in a string in to a data structure which we can easily - * query (the ordered arrays in the `this.__generatedMappings` and - * `this.__originalMappings` properties). - */ -SourceMapConsumer.prototype._parseMappings = - function SourceMapConsumer_parseMappings(aStr, aSourceRoot) { - throw new Error("Subclasses must implement _parseMappings"); - }; - -SourceMapConsumer.GENERATED_ORDER = 1; -SourceMapConsumer.ORIGINAL_ORDER = 2; - -SourceMapConsumer.GREATEST_LOWER_BOUND = 1; -SourceMapConsumer.LEAST_UPPER_BOUND = 2; - -/** - * Iterate over each mapping between an original source/line/column and a - * generated line/column in this source map. - * - * @param Function aCallback - * The function that is called with each mapping. - * @param Object aContext - * Optional. If specified, this object will be the value of `this` every - * time that `aCallback` is called. - * @param aOrder - * Either `SourceMapConsumer.GENERATED_ORDER` or - * `SourceMapConsumer.ORIGINAL_ORDER`. Specifies whether you want to - * iterate over the mappings sorted by the generated file's line/column - * order or the original's source/line/column order, respectively. Defaults to - * `SourceMapConsumer.GENERATED_ORDER`. - */ -SourceMapConsumer.prototype.eachMapping = - function SourceMapConsumer_eachMapping(aCallback, aContext, aOrder) { - var context = aContext || null; - var order = aOrder || SourceMapConsumer.GENERATED_ORDER; - - var mappings; - switch (order) { - case SourceMapConsumer.GENERATED_ORDER: - mappings = this._generatedMappings; - break; - case SourceMapConsumer.ORIGINAL_ORDER: - mappings = this._originalMappings; - break; - default: - throw new Error("Unknown order of iteration."); - } - - var sourceRoot = this.sourceRoot; - mappings.map(function (mapping) { - var source = mapping.source === null ? null : this._sources.at(mapping.source); - source = util.computeSourceURL(sourceRoot, source, this._sourceMapURL); - return { - source: source, - generatedLine: mapping.generatedLine, - generatedColumn: mapping.generatedColumn, - originalLine: mapping.originalLine, - originalColumn: mapping.originalColumn, - name: mapping.name === null ? null : this._names.at(mapping.name) - }; - }, this).forEach(aCallback, context); - }; - -/** - * Returns all generated line and column information for the original source, - * line, and column provided. If no column is provided, returns all mappings - * corresponding to a either the line we are searching for or the next - * closest line that has any mappings. Otherwise, returns all mappings - * corresponding to the given line and either the column we are searching for - * or the next closest column that has any offsets. - * - * The only argument is an object with the following properties: - * - * - source: The filename of the original source. - * - line: The line number in the original source. The line number is 1-based. - * - column: Optional. the column number in the original source. - * The column number is 0-based. - * - * and an array of objects is returned, each with the following properties: - * - * - line: The line number in the generated source, or null. The - * line number is 1-based. - * - column: The column number in the generated source, or null. - * The column number is 0-based. - */ -SourceMapConsumer.prototype.allGeneratedPositionsFor = - function SourceMapConsumer_allGeneratedPositionsFor(aArgs) { - var line = util.getArg(aArgs, 'line'); - - // When there is no exact match, BasicSourceMapConsumer.prototype._findMapping - // returns the index of the closest mapping less than the needle. By - // setting needle.originalColumn to 0, we thus find the last mapping for - // the given line, provided such a mapping exists. - var needle = { - source: util.getArg(aArgs, 'source'), - originalLine: line, - originalColumn: util.getArg(aArgs, 'column', 0) - }; - - needle.source = this._findSourceIndex(needle.source); - if (needle.source < 0) { - return []; - } - - var mappings = []; - - var index = this._findMapping(needle, - this._originalMappings, - "originalLine", - "originalColumn", - util.compareByOriginalPositions, - binarySearch.LEAST_UPPER_BOUND); - if (index >= 0) { - var mapping = this._originalMappings[index]; - - if (aArgs.column === undefined) { - var originalLine = mapping.originalLine; - - // Iterate until either we run out of mappings, or we run into - // a mapping for a different line than the one we found. Since - // mappings are sorted, this is guaranteed to find all mappings for - // the line we found. - while (mapping && mapping.originalLine === originalLine) { - mappings.push({ - line: util.getArg(mapping, 'generatedLine', null), - column: util.getArg(mapping, 'generatedColumn', null), - lastColumn: util.getArg(mapping, 'lastGeneratedColumn', null) - }); - - mapping = this._originalMappings[++index]; - } - } else { - var originalColumn = mapping.originalColumn; - - // Iterate until either we run out of mappings, or we run into - // a mapping for a different line than the one we were searching for. - // Since mappings are sorted, this is guaranteed to find all mappings for - // the line we are searching for. - while (mapping && - mapping.originalLine === line && - mapping.originalColumn == originalColumn) { - mappings.push({ - line: util.getArg(mapping, 'generatedLine', null), - column: util.getArg(mapping, 'generatedColumn', null), - lastColumn: util.getArg(mapping, 'lastGeneratedColumn', null) - }); - - mapping = this._originalMappings[++index]; - } - } - } - - return mappings; - }; - -__webpack_unused_export__ = SourceMapConsumer; - -/** - * A BasicSourceMapConsumer instance represents a parsed source map which we can - * query for information about the original file positions by giving it a file - * position in the generated source. - * - * The first parameter is the raw source map (either as a JSON string, or - * already parsed to an object). According to the spec, source maps have the - * following attributes: - * - * - version: Which version of the source map spec this map is following. - * - sources: An array of URLs to the original source files. - * - names: An array of identifiers which can be referrenced by individual mappings. - * - sourceRoot: Optional. The URL root from which all sources are relative. - * - sourcesContent: Optional. An array of contents of the original source files. - * - mappings: A string of base64 VLQs which contain the actual mappings. - * - file: Optional. The generated file this source map is associated with. - * - * Here is an example source map, taken from the source map spec[0]: - * - * { - * version : 3, - * file: "out.js", - * sourceRoot : "", - * sources: ["foo.js", "bar.js"], - * names: ["src", "maps", "are", "fun"], - * mappings: "AA,AB;;ABCDE;" - * } - * - * The second parameter, if given, is a string whose value is the URL - * at which the source map was found. This URL is used to compute the - * sources array. - * - * [0]: https://docs.google.com/document/d/1U1RGAehQwRypUTovF1KRlpiOFze0b-_2gc6fAH0KY0k/edit?pli=1# - */ -function BasicSourceMapConsumer(aSourceMap, aSourceMapURL) { - var sourceMap = aSourceMap; - if (typeof aSourceMap === 'string') { - sourceMap = util.parseSourceMapInput(aSourceMap); - } - - var version = util.getArg(sourceMap, 'version'); - var sources = util.getArg(sourceMap, 'sources'); - // Sass 3.3 leaves out the 'names' array, so we deviate from the spec (which - // requires the array) to play nice here. - var names = util.getArg(sourceMap, 'names', []); - var sourceRoot = util.getArg(sourceMap, 'sourceRoot', null); - var sourcesContent = util.getArg(sourceMap, 'sourcesContent', null); - var mappings = util.getArg(sourceMap, 'mappings'); - var file = util.getArg(sourceMap, 'file', null); - - // Once again, Sass deviates from the spec and supplies the version as a - // string rather than a number, so we use loose equality checking here. - if (version != this._version) { - throw new Error('Unsupported version: ' + version); - } - - if (sourceRoot) { - sourceRoot = util.normalize(sourceRoot); - } - - sources = sources - .map(String) - // Some source maps produce relative source paths like "./foo.js" instead of - // "foo.js". Normalize these first so that future comparisons will succeed. - // See bugzil.la/1090768. - .map(util.normalize) - // Always ensure that absolute sources are internally stored relative to - // the source root, if the source root is absolute. Not doing this would - // be particularly problematic when the source root is a prefix of the - // source (valid, but why??). See github issue #199 and bugzil.la/1188982. - .map(function (source) { - return sourceRoot && util.isAbsolute(sourceRoot) && util.isAbsolute(source) - ? util.relative(sourceRoot, source) - : source; - }); - - // Pass `true` below to allow duplicate names and sources. While source maps - // are intended to be compressed and deduplicated, the TypeScript compiler - // sometimes generates source maps with duplicates in them. See Github issue - // #72 and bugzil.la/889492. - this._names = ArraySet.fromArray(names.map(String), true); - this._sources = ArraySet.fromArray(sources, true); - - this._absoluteSources = this._sources.toArray().map(function (s) { - return util.computeSourceURL(sourceRoot, s, aSourceMapURL); - }); - - this.sourceRoot = sourceRoot; - this.sourcesContent = sourcesContent; - this._mappings = mappings; - this._sourceMapURL = aSourceMapURL; - this.file = file; -} - -BasicSourceMapConsumer.prototype = Object.create(SourceMapConsumer.prototype); -BasicSourceMapConsumer.prototype.consumer = SourceMapConsumer; - -/** - * Utility function to find the index of a source. Returns -1 if not - * found. - */ -BasicSourceMapConsumer.prototype._findSourceIndex = function(aSource) { - var relativeSource = aSource; - if (this.sourceRoot != null) { - relativeSource = util.relative(this.sourceRoot, relativeSource); - } - - if (this._sources.has(relativeSource)) { - return this._sources.indexOf(relativeSource); - } - - // Maybe aSource is an absolute URL as returned by |sources|. In - // this case we can't simply undo the transform. - var i; - for (i = 0; i < this._absoluteSources.length; ++i) { - if (this._absoluteSources[i] == aSource) { - return i; - } - } - - return -1; -}; - -/** - * Create a BasicSourceMapConsumer from a SourceMapGenerator. - * - * @param SourceMapGenerator aSourceMap - * The source map that will be consumed. - * @param String aSourceMapURL - * The URL at which the source map can be found (optional) - * @returns BasicSourceMapConsumer - */ -BasicSourceMapConsumer.fromSourceMap = - function SourceMapConsumer_fromSourceMap(aSourceMap, aSourceMapURL) { - var smc = Object.create(BasicSourceMapConsumer.prototype); - - var names = smc._names = ArraySet.fromArray(aSourceMap._names.toArray(), true); - var sources = smc._sources = ArraySet.fromArray(aSourceMap._sources.toArray(), true); - smc.sourceRoot = aSourceMap._sourceRoot; - smc.sourcesContent = aSourceMap._generateSourcesContent(smc._sources.toArray(), - smc.sourceRoot); - smc.file = aSourceMap._file; - smc._sourceMapURL = aSourceMapURL; - smc._absoluteSources = smc._sources.toArray().map(function (s) { - return util.computeSourceURL(smc.sourceRoot, s, aSourceMapURL); - }); - - // Because we are modifying the entries (by converting string sources and - // names to indices into the sources and names ArraySets), we have to make - // a copy of the entry or else bad things happen. Shared mutable state - // strikes again! See github issue #191. - - var generatedMappings = aSourceMap._mappings.toArray().slice(); - var destGeneratedMappings = smc.__generatedMappings = []; - var destOriginalMappings = smc.__originalMappings = []; - - for (var i = 0, length = generatedMappings.length; i < length; i++) { - var srcMapping = generatedMappings[i]; - var destMapping = new Mapping; - destMapping.generatedLine = srcMapping.generatedLine; - destMapping.generatedColumn = srcMapping.generatedColumn; - - if (srcMapping.source) { - destMapping.source = sources.indexOf(srcMapping.source); - destMapping.originalLine = srcMapping.originalLine; - destMapping.originalColumn = srcMapping.originalColumn; - - if (srcMapping.name) { - destMapping.name = names.indexOf(srcMapping.name); - } - - destOriginalMappings.push(destMapping); - } - - destGeneratedMappings.push(destMapping); - } - - quickSort(smc.__originalMappings, util.compareByOriginalPositions); - - return smc; - }; - -/** - * The version of the source mapping spec that we are consuming. - */ -BasicSourceMapConsumer.prototype._version = 3; - -/** - * The list of original sources. - */ -Object.defineProperty(BasicSourceMapConsumer.prototype, 'sources', { - get: function () { - return this._absoluteSources.slice(); - } -}); - -/** - * Provide the JIT with a nice shape / hidden class. - */ -function Mapping() { - this.generatedLine = 0; - this.generatedColumn = 0; - this.source = null; - this.originalLine = null; - this.originalColumn = null; - this.name = null; -} - -/** - * Parse the mappings in a string in to a data structure which we can easily - * query (the ordered arrays in the `this.__generatedMappings` and - * `this.__originalMappings` properties). - */ -BasicSourceMapConsumer.prototype._parseMappings = - function SourceMapConsumer_parseMappings(aStr, aSourceRoot) { - var generatedLine = 1; - var previousGeneratedColumn = 0; - var previousOriginalLine = 0; - var previousOriginalColumn = 0; - var previousSource = 0; - var previousName = 0; - var length = aStr.length; - var index = 0; - var cachedSegments = {}; - var temp = {}; - var originalMappings = []; - var generatedMappings = []; - var mapping, str, segment, end, value; - - while (index < length) { - if (aStr.charAt(index) === ';') { - generatedLine++; - index++; - previousGeneratedColumn = 0; - } - else if (aStr.charAt(index) === ',') { - index++; - } - else { - mapping = new Mapping(); - mapping.generatedLine = generatedLine; - - // Because each offset is encoded relative to the previous one, - // many segments often have the same encoding. We can exploit this - // fact by caching the parsed variable length fields of each segment, - // allowing us to avoid a second parse if we encounter the same - // segment again. - for (end = index; end < length; end++) { - if (this._charIsMappingSeparator(aStr, end)) { - break; - } - } - str = aStr.slice(index, end); - - segment = cachedSegments[str]; - if (segment) { - index += str.length; - } else { - segment = []; - while (index < end) { - base64VLQ.decode(aStr, index, temp); - value = temp.value; - index = temp.rest; - segment.push(value); - } - - if (segment.length === 2) { - throw new Error('Found a source, but no line and column'); - } - - if (segment.length === 3) { - throw new Error('Found a source and line, but no column'); - } - - cachedSegments[str] = segment; - } - - // Generated column. - mapping.generatedColumn = previousGeneratedColumn + segment[0]; - previousGeneratedColumn = mapping.generatedColumn; - - if (segment.length > 1) { - // Original source. - mapping.source = previousSource + segment[1]; - previousSource += segment[1]; - - // Original line. - mapping.originalLine = previousOriginalLine + segment[2]; - previousOriginalLine = mapping.originalLine; - // Lines are stored 0-based - mapping.originalLine += 1; - - // Original column. - mapping.originalColumn = previousOriginalColumn + segment[3]; - previousOriginalColumn = mapping.originalColumn; - - if (segment.length > 4) { - // Original name. - mapping.name = previousName + segment[4]; - previousName += segment[4]; - } - } - - generatedMappings.push(mapping); - if (typeof mapping.originalLine === 'number') { - originalMappings.push(mapping); - } - } - } - - quickSort(generatedMappings, util.compareByGeneratedPositionsDeflated); - this.__generatedMappings = generatedMappings; - - quickSort(originalMappings, util.compareByOriginalPositions); - this.__originalMappings = originalMappings; - }; - -/** - * Find the mapping that best matches the hypothetical "needle" mapping that - * we are searching for in the given "haystack" of mappings. - */ -BasicSourceMapConsumer.prototype._findMapping = - function SourceMapConsumer_findMapping(aNeedle, aMappings, aLineName, - aColumnName, aComparator, aBias) { - // To return the position we are searching for, we must first find the - // mapping for the given position and then return the opposite position it - // points to. Because the mappings are sorted, we can use binary search to - // find the best mapping. - - if (aNeedle[aLineName] <= 0) { - throw new TypeError('Line must be greater than or equal to 1, got ' - + aNeedle[aLineName]); - } - if (aNeedle[aColumnName] < 0) { - throw new TypeError('Column must be greater than or equal to 0, got ' - + aNeedle[aColumnName]); - } - - return binarySearch.search(aNeedle, aMappings, aComparator, aBias); - }; - -/** - * Compute the last column for each generated mapping. The last column is - * inclusive. - */ -BasicSourceMapConsumer.prototype.computeColumnSpans = - function SourceMapConsumer_computeColumnSpans() { - for (var index = 0; index < this._generatedMappings.length; ++index) { - var mapping = this._generatedMappings[index]; - - // Mappings do not contain a field for the last generated columnt. We - // can come up with an optimistic estimate, however, by assuming that - // mappings are contiguous (i.e. given two consecutive mappings, the - // first mapping ends where the second one starts). - if (index + 1 < this._generatedMappings.length) { - var nextMapping = this._generatedMappings[index + 1]; - - if (mapping.generatedLine === nextMapping.generatedLine) { - mapping.lastGeneratedColumn = nextMapping.generatedColumn - 1; - continue; - } - } - - // The last mapping for each line spans the entire line. - mapping.lastGeneratedColumn = Infinity; - } - }; - -/** - * Returns the original source, line, and column information for the generated - * source's line and column positions provided. The only argument is an object - * with the following properties: - * - * - line: The line number in the generated source. The line number - * is 1-based. - * - column: The column number in the generated source. The column - * number is 0-based. - * - bias: Either 'SourceMapConsumer.GREATEST_LOWER_BOUND' or - * 'SourceMapConsumer.LEAST_UPPER_BOUND'. Specifies whether to return the - * closest element that is smaller than or greater than the one we are - * searching for, respectively, if the exact element cannot be found. - * Defaults to 'SourceMapConsumer.GREATEST_LOWER_BOUND'. - * - * and an object is returned with the following properties: - * - * - source: The original source file, or null. - * - line: The line number in the original source, or null. The - * line number is 1-based. - * - column: The column number in the original source, or null. The - * column number is 0-based. - * - name: The original identifier, or null. - */ -BasicSourceMapConsumer.prototype.originalPositionFor = - function SourceMapConsumer_originalPositionFor(aArgs) { - var needle = { - generatedLine: util.getArg(aArgs, 'line'), - generatedColumn: util.getArg(aArgs, 'column') - }; - - var index = this._findMapping( - needle, - this._generatedMappings, - "generatedLine", - "generatedColumn", - util.compareByGeneratedPositionsDeflated, - util.getArg(aArgs, 'bias', SourceMapConsumer.GREATEST_LOWER_BOUND) - ); - - if (index >= 0) { - var mapping = this._generatedMappings[index]; - - if (mapping.generatedLine === needle.generatedLine) { - var source = util.getArg(mapping, 'source', null); - if (source !== null) { - source = this._sources.at(source); - source = util.computeSourceURL(this.sourceRoot, source, this._sourceMapURL); - } - var name = util.getArg(mapping, 'name', null); - if (name !== null) { - name = this._names.at(name); - } - return { - source: source, - line: util.getArg(mapping, 'originalLine', null), - column: util.getArg(mapping, 'originalColumn', null), - name: name - }; - } - } - - return { - source: null, - line: null, - column: null, - name: null - }; - }; - -/** - * Return true if we have the source content for every source in the source - * map, false otherwise. - */ -BasicSourceMapConsumer.prototype.hasContentsOfAllSources = - function BasicSourceMapConsumer_hasContentsOfAllSources() { - if (!this.sourcesContent) { - return false; - } - return this.sourcesContent.length >= this._sources.size() && - !this.sourcesContent.some(function (sc) { return sc == null; }); - }; - -/** - * Returns the original source content. The only argument is the url of the - * original source file. Returns null if no original source content is - * available. - */ -BasicSourceMapConsumer.prototype.sourceContentFor = - function SourceMapConsumer_sourceContentFor(aSource, nullOnMissing) { - if (!this.sourcesContent) { - return null; - } - - var index = this._findSourceIndex(aSource); - if (index >= 0) { - return this.sourcesContent[index]; - } - - var relativeSource = aSource; - if (this.sourceRoot != null) { - relativeSource = util.relative(this.sourceRoot, relativeSource); - } - - var url; - if (this.sourceRoot != null - && (url = util.urlParse(this.sourceRoot))) { - // XXX: file:// URIs and absolute paths lead to unexpected behavior for - // many users. We can help them out when they expect file:// URIs to - // behave like it would if they were running a local HTTP server. See - // https://bugzilla.mozilla.org/show_bug.cgi?id=885597. - var fileUriAbsPath = relativeSource.replace(/^file:\/\//, ""); - if (url.scheme == "file" - && this._sources.has(fileUriAbsPath)) { - return this.sourcesContent[this._sources.indexOf(fileUriAbsPath)] - } - - if ((!url.path || url.path == "/") - && this._sources.has("/" + relativeSource)) { - return this.sourcesContent[this._sources.indexOf("/" + relativeSource)]; - } - } - - // This function is used recursively from - // IndexedSourceMapConsumer.prototype.sourceContentFor. In that case, we - // don't want to throw if we can't find the source - we just want to - // return null, so we provide a flag to exit gracefully. - if (nullOnMissing) { - return null; - } - else { - throw new Error('"' + relativeSource + '" is not in the SourceMap.'); - } - }; - -/** - * Returns the generated line and column information for the original source, - * line, and column positions provided. The only argument is an object with - * the following properties: - * - * - source: The filename of the original source. - * - line: The line number in the original source. The line number - * is 1-based. - * - column: The column number in the original source. The column - * number is 0-based. - * - bias: Either 'SourceMapConsumer.GREATEST_LOWER_BOUND' or - * 'SourceMapConsumer.LEAST_UPPER_BOUND'. Specifies whether to return the - * closest element that is smaller than or greater than the one we are - * searching for, respectively, if the exact element cannot be found. - * Defaults to 'SourceMapConsumer.GREATEST_LOWER_BOUND'. - * - * and an object is returned with the following properties: - * - * - line: The line number in the generated source, or null. The - * line number is 1-based. - * - column: The column number in the generated source, or null. - * The column number is 0-based. - */ -BasicSourceMapConsumer.prototype.generatedPositionFor = - function SourceMapConsumer_generatedPositionFor(aArgs) { - var source = util.getArg(aArgs, 'source'); - source = this._findSourceIndex(source); - if (source < 0) { - return { - line: null, - column: null, - lastColumn: null - }; - } - - var needle = { - source: source, - originalLine: util.getArg(aArgs, 'line'), - originalColumn: util.getArg(aArgs, 'column') - }; - - var index = this._findMapping( - needle, - this._originalMappings, - "originalLine", - "originalColumn", - util.compareByOriginalPositions, - util.getArg(aArgs, 'bias', SourceMapConsumer.GREATEST_LOWER_BOUND) - ); - - if (index >= 0) { - var mapping = this._originalMappings[index]; - - if (mapping.source === needle.source) { - return { - line: util.getArg(mapping, 'generatedLine', null), - column: util.getArg(mapping, 'generatedColumn', null), - lastColumn: util.getArg(mapping, 'lastGeneratedColumn', null) - }; - } - } - - return { - line: null, - column: null, - lastColumn: null - }; - }; - -__webpack_unused_export__ = BasicSourceMapConsumer; - -/** - * An IndexedSourceMapConsumer instance represents a parsed source map which - * we can query for information. It differs from BasicSourceMapConsumer in - * that it takes "indexed" source maps (i.e. ones with a "sections" field) as - * input. - * - * The first parameter is a raw source map (either as a JSON string, or already - * parsed to an object). According to the spec for indexed source maps, they - * have the following attributes: - * - * - version: Which version of the source map spec this map is following. - * - file: Optional. The generated file this source map is associated with. - * - sections: A list of section definitions. - * - * Each value under the "sections" field has two fields: - * - offset: The offset into the original specified at which this section - * begins to apply, defined as an object with a "line" and "column" - * field. - * - map: A source map definition. This source map could also be indexed, - * but doesn't have to be. - * - * Instead of the "map" field, it's also possible to have a "url" field - * specifying a URL to retrieve a source map from, but that's currently - * unsupported. - * - * Here's an example source map, taken from the source map spec[0], but - * modified to omit a section which uses the "url" field. - * - * { - * version : 3, - * file: "app.js", - * sections: [{ - * offset: {line:100, column:10}, - * map: { - * version : 3, - * file: "section.js", - * sources: ["foo.js", "bar.js"], - * names: ["src", "maps", "are", "fun"], - * mappings: "AAAA,E;;ABCDE;" - * } - * }], - * } - * - * The second parameter, if given, is a string whose value is the URL - * at which the source map was found. This URL is used to compute the - * sources array. - * - * [0]: https://docs.google.com/document/d/1U1RGAehQwRypUTovF1KRlpiOFze0b-_2gc6fAH0KY0k/edit#heading=h.535es3xeprgt - */ -function IndexedSourceMapConsumer(aSourceMap, aSourceMapURL) { - var sourceMap = aSourceMap; - if (typeof aSourceMap === 'string') { - sourceMap = util.parseSourceMapInput(aSourceMap); - } - - var version = util.getArg(sourceMap, 'version'); - var sections = util.getArg(sourceMap, 'sections'); - - if (version != this._version) { - throw new Error('Unsupported version: ' + version); - } - - this._sources = new ArraySet(); - this._names = new ArraySet(); - - var lastOffset = { - line: -1, - column: 0 - }; - this._sections = sections.map(function (s) { - if (s.url) { - // The url field will require support for asynchronicity. - // See https://github.com/mozilla/source-map/issues/16 - throw new Error('Support for url field in sections not implemented.'); - } - var offset = util.getArg(s, 'offset'); - var offsetLine = util.getArg(offset, 'line'); - var offsetColumn = util.getArg(offset, 'column'); - - if (offsetLine < lastOffset.line || - (offsetLine === lastOffset.line && offsetColumn < lastOffset.column)) { - throw new Error('Section offsets must be ordered and non-overlapping.'); - } - lastOffset = offset; - - return { - generatedOffset: { - // The offset fields are 0-based, but we use 1-based indices when - // encoding/decoding from VLQ. - generatedLine: offsetLine + 1, - generatedColumn: offsetColumn + 1 - }, - consumer: new SourceMapConsumer(util.getArg(s, 'map'), aSourceMapURL) - } - }); -} - -IndexedSourceMapConsumer.prototype = Object.create(SourceMapConsumer.prototype); -IndexedSourceMapConsumer.prototype.constructor = SourceMapConsumer; - -/** - * The version of the source mapping spec that we are consuming. - */ -IndexedSourceMapConsumer.prototype._version = 3; - -/** - * The list of original sources. - */ -Object.defineProperty(IndexedSourceMapConsumer.prototype, 'sources', { - get: function () { - var sources = []; - for (var i = 0; i < this._sections.length; i++) { - for (var j = 0; j < this._sections[i].consumer.sources.length; j++) { - sources.push(this._sections[i].consumer.sources[j]); - } - } - return sources; - } -}); - -/** - * Returns the original source, line, and column information for the generated - * source's line and column positions provided. The only argument is an object - * with the following properties: - * - * - line: The line number in the generated source. The line number - * is 1-based. - * - column: The column number in the generated source. The column - * number is 0-based. - * - * and an object is returned with the following properties: - * - * - source: The original source file, or null. - * - line: The line number in the original source, or null. The - * line number is 1-based. - * - column: The column number in the original source, or null. The - * column number is 0-based. - * - name: The original identifier, or null. - */ -IndexedSourceMapConsumer.prototype.originalPositionFor = - function IndexedSourceMapConsumer_originalPositionFor(aArgs) { - var needle = { - generatedLine: util.getArg(aArgs, 'line'), - generatedColumn: util.getArg(aArgs, 'column') - }; - - // Find the section containing the generated position we're trying to map - // to an original position. - var sectionIndex = binarySearch.search(needle, this._sections, - function(needle, section) { - var cmp = needle.generatedLine - section.generatedOffset.generatedLine; - if (cmp) { - return cmp; - } - - return (needle.generatedColumn - - section.generatedOffset.generatedColumn); - }); - var section = this._sections[sectionIndex]; - - if (!section) { - return { - source: null, - line: null, - column: null, - name: null - }; - } - - return section.consumer.originalPositionFor({ - line: needle.generatedLine - - (section.generatedOffset.generatedLine - 1), - column: needle.generatedColumn - - (section.generatedOffset.generatedLine === needle.generatedLine - ? section.generatedOffset.generatedColumn - 1 - : 0), - bias: aArgs.bias - }); - }; - -/** - * Return true if we have the source content for every source in the source - * map, false otherwise. - */ -IndexedSourceMapConsumer.prototype.hasContentsOfAllSources = - function IndexedSourceMapConsumer_hasContentsOfAllSources() { - return this._sections.every(function (s) { - return s.consumer.hasContentsOfAllSources(); - }); - }; - -/** - * Returns the original source content. The only argument is the url of the - * original source file. Returns null if no original source content is - * available. - */ -IndexedSourceMapConsumer.prototype.sourceContentFor = - function IndexedSourceMapConsumer_sourceContentFor(aSource, nullOnMissing) { - for (var i = 0; i < this._sections.length; i++) { - var section = this._sections[i]; - - var content = section.consumer.sourceContentFor(aSource, true); - if (content) { - return content; - } - } - if (nullOnMissing) { - return null; - } - else { - throw new Error('"' + aSource + '" is not in the SourceMap.'); - } - }; - -/** - * Returns the generated line and column information for the original source, - * line, and column positions provided. The only argument is an object with - * the following properties: - * - * - source: The filename of the original source. - * - line: The line number in the original source. The line number - * is 1-based. - * - column: The column number in the original source. The column - * number is 0-based. - * - * and an object is returned with the following properties: - * - * - line: The line number in the generated source, or null. The - * line number is 1-based. - * - column: The column number in the generated source, or null. - * The column number is 0-based. - */ -IndexedSourceMapConsumer.prototype.generatedPositionFor = - function IndexedSourceMapConsumer_generatedPositionFor(aArgs) { - for (var i = 0; i < this._sections.length; i++) { - var section = this._sections[i]; - - // Only consider this section if the requested source is in the list of - // sources of the consumer. - if (section.consumer._findSourceIndex(util.getArg(aArgs, 'source')) === -1) { - continue; - } - var generatedPosition = section.consumer.generatedPositionFor(aArgs); - if (generatedPosition) { - var ret = { - line: generatedPosition.line + - (section.generatedOffset.generatedLine - 1), - column: generatedPosition.column + - (section.generatedOffset.generatedLine === generatedPosition.line - ? section.generatedOffset.generatedColumn - 1 - : 0) - }; - return ret; - } - } - - return { - line: null, - column: null - }; - }; - -/** - * Parse the mappings in a string in to a data structure which we can easily - * query (the ordered arrays in the `this.__generatedMappings` and - * `this.__originalMappings` properties). - */ -IndexedSourceMapConsumer.prototype._parseMappings = - function IndexedSourceMapConsumer_parseMappings(aStr, aSourceRoot) { - this.__generatedMappings = []; - this.__originalMappings = []; - for (var i = 0; i < this._sections.length; i++) { - var section = this._sections[i]; - var sectionMappings = section.consumer._generatedMappings; - for (var j = 0; j < sectionMappings.length; j++) { - var mapping = sectionMappings[j]; - - var source = section.consumer._sources.at(mapping.source); - source = util.computeSourceURL(section.consumer.sourceRoot, source, this._sourceMapURL); - this._sources.add(source); - source = this._sources.indexOf(source); - - var name = null; - if (mapping.name) { - name = section.consumer._names.at(mapping.name); - this._names.add(name); - name = this._names.indexOf(name); - } - - // The mappings coming from the consumer for the section have - // generated positions relative to the start of the section, so we - // need to offset them to be relative to the start of the concatenated - // generated file. - var adjustedMapping = { - source: source, - generatedLine: mapping.generatedLine + - (section.generatedOffset.generatedLine - 1), - generatedColumn: mapping.generatedColumn + - (section.generatedOffset.generatedLine === mapping.generatedLine - ? section.generatedOffset.generatedColumn - 1 - : 0), - originalLine: mapping.originalLine, - originalColumn: mapping.originalColumn, - name: name - }; - - this.__generatedMappings.push(adjustedMapping); - if (typeof adjustedMapping.originalLine === 'number') { - this.__originalMappings.push(adjustedMapping); - } - } - } - - quickSort(this.__generatedMappings, util.compareByGeneratedPositionsDeflated); - quickSort(this.__originalMappings, util.compareByOriginalPositions); - }; - -__webpack_unused_export__ = IndexedSourceMapConsumer; - - -/***/ }), - -/***/ 69425: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -/* -*- Mode: js; js-indent-level: 2; -*- */ -/* - * Copyright 2011 Mozilla Foundation and contributors - * Licensed under the New BSD license. See LICENSE or: - * http://opensource.org/licenses/BSD-3-Clause - */ - -var base64VLQ = __nccwpck_require__(10975); -var util = __nccwpck_require__(12344); -var ArraySet = __nccwpck_require__(26375)/* .ArraySet */ .I; -var MappingList = __nccwpck_require__(86817)/* .MappingList */ .H; - -/** - * An instance of the SourceMapGenerator represents a source map which is - * being built incrementally. You may pass an object with the following - * properties: - * - * - file: The filename of the generated source. - * - sourceRoot: A root for all relative URLs in this source map. - */ -function SourceMapGenerator(aArgs) { - if (!aArgs) { - aArgs = {}; - } - this._file = util.getArg(aArgs, 'file', null); - this._sourceRoot = util.getArg(aArgs, 'sourceRoot', null); - this._skipValidation = util.getArg(aArgs, 'skipValidation', false); - this._sources = new ArraySet(); - this._names = new ArraySet(); - this._mappings = new MappingList(); - this._sourcesContents = null; -} - -SourceMapGenerator.prototype._version = 3; - -/** - * Creates a new SourceMapGenerator based on a SourceMapConsumer - * - * @param aSourceMapConsumer The SourceMap. - */ -SourceMapGenerator.fromSourceMap = - function SourceMapGenerator_fromSourceMap(aSourceMapConsumer) { - var sourceRoot = aSourceMapConsumer.sourceRoot; - var generator = new SourceMapGenerator({ - file: aSourceMapConsumer.file, - sourceRoot: sourceRoot - }); - aSourceMapConsumer.eachMapping(function (mapping) { - var newMapping = { - generated: { - line: mapping.generatedLine, - column: mapping.generatedColumn - } - }; - - if (mapping.source != null) { - newMapping.source = mapping.source; - if (sourceRoot != null) { - newMapping.source = util.relative(sourceRoot, newMapping.source); - } - - newMapping.original = { - line: mapping.originalLine, - column: mapping.originalColumn - }; - - if (mapping.name != null) { - newMapping.name = mapping.name; - } - } - - generator.addMapping(newMapping); - }); - aSourceMapConsumer.sources.forEach(function (sourceFile) { - var sourceRelative = sourceFile; - if (sourceRoot !== null) { - sourceRelative = util.relative(sourceRoot, sourceFile); - } - - if (!generator._sources.has(sourceRelative)) { - generator._sources.add(sourceRelative); - } - - var content = aSourceMapConsumer.sourceContentFor(sourceFile); - if (content != null) { - generator.setSourceContent(sourceFile, content); - } - }); - return generator; - }; - -/** - * Add a single mapping from original source line and column to the generated - * source's line and column for this source map being created. The mapping - * object should have the following properties: - * - * - generated: An object with the generated line and column positions. - * - original: An object with the original line and column positions. - * - source: The original source file (relative to the sourceRoot). - * - name: An optional original token name for this mapping. - */ -SourceMapGenerator.prototype.addMapping = - function SourceMapGenerator_addMapping(aArgs) { - var generated = util.getArg(aArgs, 'generated'); - var original = util.getArg(aArgs, 'original', null); - var source = util.getArg(aArgs, 'source', null); - var name = util.getArg(aArgs, 'name', null); - - if (!this._skipValidation) { - this._validateMapping(generated, original, source, name); - } - - if (source != null) { - source = String(source); - if (!this._sources.has(source)) { - this._sources.add(source); - } - } - - if (name != null) { - name = String(name); - if (!this._names.has(name)) { - this._names.add(name); - } - } - - this._mappings.add({ - generatedLine: generated.line, - generatedColumn: generated.column, - originalLine: original != null && original.line, - originalColumn: original != null && original.column, - source: source, - name: name - }); - }; - -/** - * Set the source content for a source file. - */ -SourceMapGenerator.prototype.setSourceContent = - function SourceMapGenerator_setSourceContent(aSourceFile, aSourceContent) { - var source = aSourceFile; - if (this._sourceRoot != null) { - source = util.relative(this._sourceRoot, source); - } - - if (aSourceContent != null) { - // Add the source content to the _sourcesContents map. - // Create a new _sourcesContents map if the property is null. - if (!this._sourcesContents) { - this._sourcesContents = Object.create(null); - } - this._sourcesContents[util.toSetString(source)] = aSourceContent; - } else if (this._sourcesContents) { - // Remove the source file from the _sourcesContents map. - // If the _sourcesContents map is empty, set the property to null. - delete this._sourcesContents[util.toSetString(source)]; - if (Object.keys(this._sourcesContents).length === 0) { - this._sourcesContents = null; - } - } - }; - -/** - * Applies the mappings of a sub-source-map for a specific source file to the - * source map being generated. Each mapping to the supplied source file is - * rewritten using the supplied source map. Note: The resolution for the - * resulting mappings is the minimium of this map and the supplied map. - * - * @param aSourceMapConsumer The source map to be applied. - * @param aSourceFile Optional. The filename of the source file. - * If omitted, SourceMapConsumer's file property will be used. - * @param aSourceMapPath Optional. The dirname of the path to the source map - * to be applied. If relative, it is relative to the SourceMapConsumer. - * This parameter is needed when the two source maps aren't in the same - * directory, and the source map to be applied contains relative source - * paths. If so, those relative source paths need to be rewritten - * relative to the SourceMapGenerator. - */ -SourceMapGenerator.prototype.applySourceMap = - function SourceMapGenerator_applySourceMap(aSourceMapConsumer, aSourceFile, aSourceMapPath) { - var sourceFile = aSourceFile; - // If aSourceFile is omitted, we will use the file property of the SourceMap - if (aSourceFile == null) { - if (aSourceMapConsumer.file == null) { - throw new Error( - 'SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, ' + - 'or the source map\'s "file" property. Both were omitted.' - ); - } - sourceFile = aSourceMapConsumer.file; - } - var sourceRoot = this._sourceRoot; - // Make "sourceFile" relative if an absolute Url is passed. - if (sourceRoot != null) { - sourceFile = util.relative(sourceRoot, sourceFile); - } - // Applying the SourceMap can add and remove items from the sources and - // the names array. - var newSources = new ArraySet(); - var newNames = new ArraySet(); - - // Find mappings for the "sourceFile" - this._mappings.unsortedForEach(function (mapping) { - if (mapping.source === sourceFile && mapping.originalLine != null) { - // Check if it can be mapped by the source map, then update the mapping. - var original = aSourceMapConsumer.originalPositionFor({ - line: mapping.originalLine, - column: mapping.originalColumn - }); - if (original.source != null) { - // Copy mapping - mapping.source = original.source; - if (aSourceMapPath != null) { - mapping.source = util.join(aSourceMapPath, mapping.source) - } - if (sourceRoot != null) { - mapping.source = util.relative(sourceRoot, mapping.source); - } - mapping.originalLine = original.line; - mapping.originalColumn = original.column; - if (original.name != null) { - mapping.name = original.name; - } - } - } - - var source = mapping.source; - if (source != null && !newSources.has(source)) { - newSources.add(source); - } - - var name = mapping.name; - if (name != null && !newNames.has(name)) { - newNames.add(name); - } - - }, this); - this._sources = newSources; - this._names = newNames; - - // Copy sourcesContents of applied map. - aSourceMapConsumer.sources.forEach(function (sourceFile) { - var content = aSourceMapConsumer.sourceContentFor(sourceFile); - if (content != null) { - if (aSourceMapPath != null) { - sourceFile = util.join(aSourceMapPath, sourceFile); - } - if (sourceRoot != null) { - sourceFile = util.relative(sourceRoot, sourceFile); - } - this.setSourceContent(sourceFile, content); - } - }, this); - }; - -/** - * A mapping can have one of the three levels of data: - * - * 1. Just the generated position. - * 2. The Generated position, original position, and original source. - * 3. Generated and original position, original source, as well as a name - * token. - * - * To maintain consistency, we validate that any new mapping being added falls - * in to one of these categories. - */ -SourceMapGenerator.prototype._validateMapping = - function SourceMapGenerator_validateMapping(aGenerated, aOriginal, aSource, - aName) { - // When aOriginal is truthy but has empty values for .line and .column, - // it is most likely a programmer error. In this case we throw a very - // specific error message to try to guide them the right way. - // For example: https://github.com/Polymer/polymer-bundler/pull/519 - if (aOriginal && typeof aOriginal.line !== 'number' && typeof aOriginal.column !== 'number') { - throw new Error( - 'original.line and original.column are not numbers -- you probably meant to omit ' + - 'the original mapping entirely and only map the generated position. If so, pass ' + - 'null for the original mapping instead of an object with empty or null values.' - ); - } - - if (aGenerated && 'line' in aGenerated && 'column' in aGenerated - && aGenerated.line > 0 && aGenerated.column >= 0 - && !aOriginal && !aSource && !aName) { - // Case 1. - return; - } - else if (aGenerated && 'line' in aGenerated && 'column' in aGenerated - && aOriginal && 'line' in aOriginal && 'column' in aOriginal - && aGenerated.line > 0 && aGenerated.column >= 0 - && aOriginal.line > 0 && aOriginal.column >= 0 - && aSource) { - // Cases 2 and 3. - return; - } - else { - throw new Error('Invalid mapping: ' + JSON.stringify({ - generated: aGenerated, - source: aSource, - original: aOriginal, - name: aName - })); - } - }; - -/** - * Serialize the accumulated mappings in to the stream of base 64 VLQs - * specified by the source map format. - */ -SourceMapGenerator.prototype._serializeMappings = - function SourceMapGenerator_serializeMappings() { - var previousGeneratedColumn = 0; - var previousGeneratedLine = 1; - var previousOriginalColumn = 0; - var previousOriginalLine = 0; - var previousName = 0; - var previousSource = 0; - var result = ''; - var next; - var mapping; - var nameIdx; - var sourceIdx; - - var mappings = this._mappings.toArray(); - for (var i = 0, len = mappings.length; i < len; i++) { - mapping = mappings[i]; - next = '' - - if (mapping.generatedLine !== previousGeneratedLine) { - previousGeneratedColumn = 0; - while (mapping.generatedLine !== previousGeneratedLine) { - next += ';'; - previousGeneratedLine++; - } - } - else { - if (i > 0) { - if (!util.compareByGeneratedPositionsInflated(mapping, mappings[i - 1])) { - continue; - } - next += ','; - } - } - - next += base64VLQ.encode(mapping.generatedColumn - - previousGeneratedColumn); - previousGeneratedColumn = mapping.generatedColumn; - - if (mapping.source != null) { - sourceIdx = this._sources.indexOf(mapping.source); - next += base64VLQ.encode(sourceIdx - previousSource); - previousSource = sourceIdx; - - // lines are stored 0-based in SourceMap spec version 3 - next += base64VLQ.encode(mapping.originalLine - 1 - - previousOriginalLine); - previousOriginalLine = mapping.originalLine - 1; - - next += base64VLQ.encode(mapping.originalColumn - - previousOriginalColumn); - previousOriginalColumn = mapping.originalColumn; - - if (mapping.name != null) { - nameIdx = this._names.indexOf(mapping.name); - next += base64VLQ.encode(nameIdx - previousName); - previousName = nameIdx; - } - } - - result += next; - } - - return result; - }; - -SourceMapGenerator.prototype._generateSourcesContent = - function SourceMapGenerator_generateSourcesContent(aSources, aSourceRoot) { - return aSources.map(function (source) { - if (!this._sourcesContents) { - return null; - } - if (aSourceRoot != null) { - source = util.relative(aSourceRoot, source); - } - var key = util.toSetString(source); - return Object.prototype.hasOwnProperty.call(this._sourcesContents, key) - ? this._sourcesContents[key] - : null; - }, this); - }; - -/** - * Externalize the source map. - */ -SourceMapGenerator.prototype.toJSON = - function SourceMapGenerator_toJSON() { - var map = { - version: this._version, - sources: this._sources.toArray(), - names: this._names.toArray(), - mappings: this._serializeMappings() - }; - if (this._file != null) { - map.file = this._file; - } - if (this._sourceRoot != null) { - map.sourceRoot = this._sourceRoot; - } - if (this._sourcesContents) { - map.sourcesContent = this._generateSourcesContent(map.sources, map.sourceRoot); - } - - return map; - }; - -/** - * Render the source map being generated to a string. - */ -SourceMapGenerator.prototype.toString = - function SourceMapGenerator_toString() { - return JSON.stringify(this.toJSON()); - }; - -exports.h = SourceMapGenerator; - - -/***/ }), - -/***/ 92616: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -/* -*- Mode: js; js-indent-level: 2; -*- */ -/* - * Copyright 2011 Mozilla Foundation and contributors - * Licensed under the New BSD license. See LICENSE or: - * http://opensource.org/licenses/BSD-3-Clause - */ - -var SourceMapGenerator = __nccwpck_require__(69425)/* .SourceMapGenerator */ .h; -var util = __nccwpck_require__(12344); - -// Matches a Windows-style `\r\n` newline or a `\n` newline used by all other -// operating systems these days (capturing the result). -var REGEX_NEWLINE = /(\r?\n)/; - -// Newline character code for charCodeAt() comparisons -var NEWLINE_CODE = 10; - -// Private symbol for identifying `SourceNode`s when multiple versions of -// the source-map library are loaded. This MUST NOT CHANGE across -// versions! -var isSourceNode = "$$$isSourceNode$$$"; - -/** - * SourceNodes provide a way to abstract over interpolating/concatenating - * snippets of generated JavaScript source code while maintaining the line and - * column information associated with the original source code. - * - * @param aLine The original line number. - * @param aColumn The original column number. - * @param aSource The original source's filename. - * @param aChunks Optional. An array of strings which are snippets of - * generated JS, or other SourceNodes. - * @param aName The original identifier. - */ -function SourceNode(aLine, aColumn, aSource, aChunks, aName) { - this.children = []; - this.sourceContents = {}; - this.line = aLine == null ? null : aLine; - this.column = aColumn == null ? null : aColumn; - this.source = aSource == null ? null : aSource; - this.name = aName == null ? null : aName; - this[isSourceNode] = true; - if (aChunks != null) this.add(aChunks); -} - -/** - * Creates a SourceNode from generated code and a SourceMapConsumer. - * - * @param aGeneratedCode The generated code - * @param aSourceMapConsumer The SourceMap for the generated code - * @param aRelativePath Optional. The path that relative sources in the - * SourceMapConsumer should be relative to. - */ -SourceNode.fromStringWithSourceMap = - function SourceNode_fromStringWithSourceMap(aGeneratedCode, aSourceMapConsumer, aRelativePath) { - // The SourceNode we want to fill with the generated code - // and the SourceMap - var node = new SourceNode(); - - // All even indices of this array are one line of the generated code, - // while all odd indices are the newlines between two adjacent lines - // (since `REGEX_NEWLINE` captures its match). - // Processed fragments are accessed by calling `shiftNextLine`. - var remainingLines = aGeneratedCode.split(REGEX_NEWLINE); - var remainingLinesIndex = 0; - var shiftNextLine = function() { - var lineContents = getNextLine(); - // The last line of a file might not have a newline. - var newLine = getNextLine() || ""; - return lineContents + newLine; - - function getNextLine() { - return remainingLinesIndex < remainingLines.length ? - remainingLines[remainingLinesIndex++] : undefined; - } - }; - - // We need to remember the position of "remainingLines" - var lastGeneratedLine = 1, lastGeneratedColumn = 0; - - // The generate SourceNodes we need a code range. - // To extract it current and last mapping is used. - // Here we store the last mapping. - var lastMapping = null; - - aSourceMapConsumer.eachMapping(function (mapping) { - if (lastMapping !== null) { - // We add the code from "lastMapping" to "mapping": - // First check if there is a new line in between. - if (lastGeneratedLine < mapping.generatedLine) { - // Associate first line with "lastMapping" - addMappingWithCode(lastMapping, shiftNextLine()); - lastGeneratedLine++; - lastGeneratedColumn = 0; - // The remaining code is added without mapping - } else { - // There is no new line in between. - // Associate the code between "lastGeneratedColumn" and - // "mapping.generatedColumn" with "lastMapping" - var nextLine = remainingLines[remainingLinesIndex] || ''; - var code = nextLine.substr(0, mapping.generatedColumn - - lastGeneratedColumn); - remainingLines[remainingLinesIndex] = nextLine.substr(mapping.generatedColumn - - lastGeneratedColumn); - lastGeneratedColumn = mapping.generatedColumn; - addMappingWithCode(lastMapping, code); - // No more remaining code, continue - lastMapping = mapping; - return; - } - } - // We add the generated code until the first mapping - // to the SourceNode without any mapping. - // Each line is added as separate string. - while (lastGeneratedLine < mapping.generatedLine) { - node.add(shiftNextLine()); - lastGeneratedLine++; - } - if (lastGeneratedColumn < mapping.generatedColumn) { - var nextLine = remainingLines[remainingLinesIndex] || ''; - node.add(nextLine.substr(0, mapping.generatedColumn)); - remainingLines[remainingLinesIndex] = nextLine.substr(mapping.generatedColumn); - lastGeneratedColumn = mapping.generatedColumn; - } - lastMapping = mapping; - }, this); - // We have processed all mappings. - if (remainingLinesIndex < remainingLines.length) { - if (lastMapping) { - // Associate the remaining code in the current line with "lastMapping" - addMappingWithCode(lastMapping, shiftNextLine()); - } - // and add the remaining lines without any mapping - node.add(remainingLines.splice(remainingLinesIndex).join("")); - } - - // Copy sourcesContent into SourceNode - aSourceMapConsumer.sources.forEach(function (sourceFile) { - var content = aSourceMapConsumer.sourceContentFor(sourceFile); - if (content != null) { - if (aRelativePath != null) { - sourceFile = util.join(aRelativePath, sourceFile); - } - node.setSourceContent(sourceFile, content); - } - }); - - return node; - - function addMappingWithCode(mapping, code) { - if (mapping === null || mapping.source === undefined) { - node.add(code); - } else { - var source = aRelativePath - ? util.join(aRelativePath, mapping.source) - : mapping.source; - node.add(new SourceNode(mapping.originalLine, - mapping.originalColumn, - source, - code, - mapping.name)); - } - } - }; - -/** - * Add a chunk of generated JS to this source node. - * - * @param aChunk A string snippet of generated JS code, another instance of - * SourceNode, or an array where each member is one of those things. - */ -SourceNode.prototype.add = function SourceNode_add(aChunk) { - if (Array.isArray(aChunk)) { - aChunk.forEach(function (chunk) { - this.add(chunk); - }, this); - } - else if (aChunk[isSourceNode] || typeof aChunk === "string") { - if (aChunk) { - this.children.push(aChunk); - } - } - else { - throw new TypeError( - "Expected a SourceNode, string, or an array of SourceNodes and strings. Got " + aChunk - ); - } - return this; -}; - -/** - * Add a chunk of generated JS to the beginning of this source node. - * - * @param aChunk A string snippet of generated JS code, another instance of - * SourceNode, or an array where each member is one of those things. - */ -SourceNode.prototype.prepend = function SourceNode_prepend(aChunk) { - if (Array.isArray(aChunk)) { - for (var i = aChunk.length-1; i >= 0; i--) { - this.prepend(aChunk[i]); - } - } - else if (aChunk[isSourceNode] || typeof aChunk === "string") { - this.children.unshift(aChunk); - } - else { - throw new TypeError( - "Expected a SourceNode, string, or an array of SourceNodes and strings. Got " + aChunk - ); - } - return this; -}; - -/** - * Walk over the tree of JS snippets in this node and its children. The - * walking function is called once for each snippet of JS and is passed that - * snippet and the its original associated source's line/column location. - * - * @param aFn The traversal function. - */ -SourceNode.prototype.walk = function SourceNode_walk(aFn) { - var chunk; - for (var i = 0, len = this.children.length; i < len; i++) { - chunk = this.children[i]; - if (chunk[isSourceNode]) { - chunk.walk(aFn); - } - else { - if (chunk !== '') { - aFn(chunk, { source: this.source, - line: this.line, - column: this.column, - name: this.name }); - } - } - } -}; - -/** - * Like `String.prototype.join` except for SourceNodes. Inserts `aStr` between - * each of `this.children`. - * - * @param aSep The separator. - */ -SourceNode.prototype.join = function SourceNode_join(aSep) { - var newChildren; - var i; - var len = this.children.length; - if (len > 0) { - newChildren = []; - for (i = 0; i < len-1; i++) { - newChildren.push(this.children[i]); - newChildren.push(aSep); - } - newChildren.push(this.children[i]); - this.children = newChildren; - } - return this; -}; - -/** - * Call String.prototype.replace on the very right-most source snippet. Useful - * for trimming whitespace from the end of a source node, etc. - * - * @param aPattern The pattern to replace. - * @param aReplacement The thing to replace the pattern with. - */ -SourceNode.prototype.replaceRight = function SourceNode_replaceRight(aPattern, aReplacement) { - var lastChild = this.children[this.children.length - 1]; - if (lastChild[isSourceNode]) { - lastChild.replaceRight(aPattern, aReplacement); - } - else if (typeof lastChild === 'string') { - this.children[this.children.length - 1] = lastChild.replace(aPattern, aReplacement); - } - else { - this.children.push(''.replace(aPattern, aReplacement)); - } - return this; -}; - -/** - * Set the source content for a source file. This will be added to the SourceMapGenerator - * in the sourcesContent field. - * - * @param aSourceFile The filename of the source file - * @param aSourceContent The content of the source file - */ -SourceNode.prototype.setSourceContent = - function SourceNode_setSourceContent(aSourceFile, aSourceContent) { - this.sourceContents[util.toSetString(aSourceFile)] = aSourceContent; - }; - -/** - * Walk over the tree of SourceNodes. The walking function is called for each - * source file content and is passed the filename and source content. - * - * @param aFn The traversal function. - */ -SourceNode.prototype.walkSourceContents = - function SourceNode_walkSourceContents(aFn) { - for (var i = 0, len = this.children.length; i < len; i++) { - if (this.children[i][isSourceNode]) { - this.children[i].walkSourceContents(aFn); - } - } - - var sources = Object.keys(this.sourceContents); - for (var i = 0, len = sources.length; i < len; i++) { - aFn(util.fromSetString(sources[i]), this.sourceContents[sources[i]]); - } - }; - -/** - * Return the string representation of this source node. Walks over the tree - * and concatenates all the various snippets together to one string. - */ -SourceNode.prototype.toString = function SourceNode_toString() { - var str = ""; - this.walk(function (chunk) { - str += chunk; - }); - return str; -}; - -/** - * Returns the string representation of this source node along with a source - * map. - */ -SourceNode.prototype.toStringWithSourceMap = function SourceNode_toStringWithSourceMap(aArgs) { - var generated = { - code: "", - line: 1, - column: 0 - }; - var map = new SourceMapGenerator(aArgs); - var sourceMappingActive = false; - var lastOriginalSource = null; - var lastOriginalLine = null; - var lastOriginalColumn = null; - var lastOriginalName = null; - this.walk(function (chunk, original) { - generated.code += chunk; - if (original.source !== null - && original.line !== null - && original.column !== null) { - if(lastOriginalSource !== original.source - || lastOriginalLine !== original.line - || lastOriginalColumn !== original.column - || lastOriginalName !== original.name) { - map.addMapping({ - source: original.source, - original: { - line: original.line, - column: original.column - }, - generated: { - line: generated.line, - column: generated.column - }, - name: original.name - }); - } - lastOriginalSource = original.source; - lastOriginalLine = original.line; - lastOriginalColumn = original.column; - lastOriginalName = original.name; - sourceMappingActive = true; - } else if (sourceMappingActive) { - map.addMapping({ - generated: { - line: generated.line, - column: generated.column - } - }); - lastOriginalSource = null; - sourceMappingActive = false; - } - for (var idx = 0, length = chunk.length; idx < length; idx++) { - if (chunk.charCodeAt(idx) === NEWLINE_CODE) { - generated.line++; - generated.column = 0; - // Mappings end at eol - if (idx + 1 === length) { - lastOriginalSource = null; - sourceMappingActive = false; - } else if (sourceMappingActive) { - map.addMapping({ - source: original.source, - original: { - line: original.line, - column: original.column - }, - generated: { - line: generated.line, - column: generated.column - }, - name: original.name - }); - } - } else { - generated.column++; - } - } - }); - this.walkSourceContents(function (sourceFile, sourceContent) { - map.setSourceContent(sourceFile, sourceContent); - }); - - return { code: generated.code, map: map }; -}; - -exports.SourceNode = SourceNode; - - -/***/ }), - -/***/ 12344: -/***/ ((__unused_webpack_module, exports) => { - -/* -*- Mode: js; js-indent-level: 2; -*- */ -/* - * Copyright 2011 Mozilla Foundation and contributors - * Licensed under the New BSD license. See LICENSE or: - * http://opensource.org/licenses/BSD-3-Clause - */ - -/** - * This is a helper function for getting values from parameter/options - * objects. - * - * @param args The object we are extracting values from - * @param name The name of the property we are getting. - * @param defaultValue An optional value to return if the property is missing - * from the object. If this is not specified and the property is missing, an - * error will be thrown. - */ -function getArg(aArgs, aName, aDefaultValue) { - if (aName in aArgs) { - return aArgs[aName]; - } else if (arguments.length === 3) { - return aDefaultValue; - } else { - throw new Error('"' + aName + '" is a required argument.'); - } -} -exports.getArg = getArg; - -var urlRegexp = /^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/; -var dataUrlRegexp = /^data:.+\,.+$/; - -function urlParse(aUrl) { - var match = aUrl.match(urlRegexp); - if (!match) { - return null; - } - return { - scheme: match[1], - auth: match[2], - host: match[3], - port: match[4], - path: match[5] - }; -} -exports.urlParse = urlParse; - -function urlGenerate(aParsedUrl) { - var url = ''; - if (aParsedUrl.scheme) { - url += aParsedUrl.scheme + ':'; - } - url += '//'; - if (aParsedUrl.auth) { - url += aParsedUrl.auth + '@'; - } - if (aParsedUrl.host) { - url += aParsedUrl.host; - } - if (aParsedUrl.port) { - url += ":" + aParsedUrl.port - } - if (aParsedUrl.path) { - url += aParsedUrl.path; - } - return url; -} -exports.urlGenerate = urlGenerate; - -/** - * Normalizes a path, or the path portion of a URL: - * - * - Replaces consecutive slashes with one slash. - * - Removes unnecessary '.' parts. - * - Removes unnecessary '/..' parts. - * - * Based on code in the Node.js 'path' core module. - * - * @param aPath The path or url to normalize. - */ -function normalize(aPath) { - var path = aPath; - var url = urlParse(aPath); - if (url) { - if (!url.path) { - return aPath; - } - path = url.path; - } - var isAbsolute = exports.isAbsolute(path); - - var parts = path.split(/\/+/); - for (var part, up = 0, i = parts.length - 1; i >= 0; i--) { - part = parts[i]; - if (part === '.') { - parts.splice(i, 1); - } else if (part === '..') { - up++; - } else if (up > 0) { - if (part === '') { - // The first part is blank if the path is absolute. Trying to go - // above the root is a no-op. Therefore we can remove all '..' parts - // directly after the root. - parts.splice(i + 1, up); - up = 0; - } else { - parts.splice(i, 2); - up--; - } - } - } - path = parts.join('/'); - - if (path === '') { - path = isAbsolute ? '/' : '.'; - } - - if (url) { - url.path = path; - return urlGenerate(url); - } - return path; -} -exports.normalize = normalize; - -/** - * Joins two paths/URLs. - * - * @param aRoot The root path or URL. - * @param aPath The path or URL to be joined with the root. - * - * - If aPath is a URL or a data URI, aPath is returned, unless aPath is a - * scheme-relative URL: Then the scheme of aRoot, if any, is prepended - * first. - * - Otherwise aPath is a path. If aRoot is a URL, then its path portion - * is updated with the result and aRoot is returned. Otherwise the result - * is returned. - * - If aPath is absolute, the result is aPath. - * - Otherwise the two paths are joined with a slash. - * - Joining for example 'http://' and 'www.example.com' is also supported. - */ -function join(aRoot, aPath) { - if (aRoot === "") { - aRoot = "."; - } - if (aPath === "") { - aPath = "."; - } - var aPathUrl = urlParse(aPath); - var aRootUrl = urlParse(aRoot); - if (aRootUrl) { - aRoot = aRootUrl.path || '/'; - } - - // `join(foo, '//www.example.org')` - if (aPathUrl && !aPathUrl.scheme) { - if (aRootUrl) { - aPathUrl.scheme = aRootUrl.scheme; - } - return urlGenerate(aPathUrl); - } - - if (aPathUrl || aPath.match(dataUrlRegexp)) { - return aPath; - } - - // `join('http://', 'www.example.com')` - if (aRootUrl && !aRootUrl.host && !aRootUrl.path) { - aRootUrl.host = aPath; - return urlGenerate(aRootUrl); - } - - var joined = aPath.charAt(0) === '/' - ? aPath - : normalize(aRoot.replace(/\/+$/, '') + '/' + aPath); - - if (aRootUrl) { - aRootUrl.path = joined; - return urlGenerate(aRootUrl); - } - return joined; -} -exports.join = join; - -exports.isAbsolute = function (aPath) { - return aPath.charAt(0) === '/' || urlRegexp.test(aPath); -}; - -/** - * Make a path relative to a URL or another path. - * - * @param aRoot The root path or URL. - * @param aPath The path or URL to be made relative to aRoot. - */ -function relative(aRoot, aPath) { - if (aRoot === "") { - aRoot = "."; - } - - aRoot = aRoot.replace(/\/$/, ''); - - // It is possible for the path to be above the root. In this case, simply - // checking whether the root is a prefix of the path won't work. Instead, we - // need to remove components from the root one by one, until either we find - // a prefix that fits, or we run out of components to remove. - var level = 0; - while (aPath.indexOf(aRoot + '/') !== 0) { - var index = aRoot.lastIndexOf("/"); - if (index < 0) { - return aPath; - } - - // If the only part of the root that is left is the scheme (i.e. http://, - // file:///, etc.), one or more slashes (/), or simply nothing at all, we - // have exhausted all components, so the path is not relative to the root. - aRoot = aRoot.slice(0, index); - if (aRoot.match(/^([^\/]+:\/)?\/*$/)) { - return aPath; - } - - ++level; - } - - // Make sure we add a "../" for each component we removed from the root. - return Array(level + 1).join("../") + aPath.substr(aRoot.length + 1); -} -exports.relative = relative; - -var supportsNullProto = (function () { - var obj = Object.create(null); - return !('__proto__' in obj); -}()); - -function identity (s) { - return s; -} - -/** - * Because behavior goes wacky when you set `__proto__` on objects, we - * have to prefix all the strings in our set with an arbitrary character. - * - * See https://github.com/mozilla/source-map/pull/31 and - * https://github.com/mozilla/source-map/issues/30 - * - * @param String aStr - */ -function toSetString(aStr) { - if (isProtoString(aStr)) { - return '$' + aStr; - } - - return aStr; -} -exports.toSetString = supportsNullProto ? identity : toSetString; - -function fromSetString(aStr) { - if (isProtoString(aStr)) { - return aStr.slice(1); - } - - return aStr; -} -exports.fromSetString = supportsNullProto ? identity : fromSetString; - -function isProtoString(s) { - if (!s) { - return false; - } - - var length = s.length; - - if (length < 9 /* "__proto__".length */) { - return false; - } - - if (s.charCodeAt(length - 1) !== 95 /* '_' */ || - s.charCodeAt(length - 2) !== 95 /* '_' */ || - s.charCodeAt(length - 3) !== 111 /* 'o' */ || - s.charCodeAt(length - 4) !== 116 /* 't' */ || - s.charCodeAt(length - 5) !== 111 /* 'o' */ || - s.charCodeAt(length - 6) !== 114 /* 'r' */ || - s.charCodeAt(length - 7) !== 112 /* 'p' */ || - s.charCodeAt(length - 8) !== 95 /* '_' */ || - s.charCodeAt(length - 9) !== 95 /* '_' */) { - return false; - } - - for (var i = length - 10; i >= 0; i--) { - if (s.charCodeAt(i) !== 36 /* '$' */) { - return false; - } - } - - return true; -} - -/** - * Comparator between two mappings where the original positions are compared. - * - * Optionally pass in `true` as `onlyCompareGenerated` to consider two - * mappings with the same original source/line/column, but different generated - * line and column the same. Useful when searching for a mapping with a - * stubbed out mapping. - */ -function compareByOriginalPositions(mappingA, mappingB, onlyCompareOriginal) { - var cmp = strcmp(mappingA.source, mappingB.source); - if (cmp !== 0) { - return cmp; - } - - cmp = mappingA.originalLine - mappingB.originalLine; - if (cmp !== 0) { - return cmp; - } - - cmp = mappingA.originalColumn - mappingB.originalColumn; - if (cmp !== 0 || onlyCompareOriginal) { - return cmp; - } - - cmp = mappingA.generatedColumn - mappingB.generatedColumn; - if (cmp !== 0) { - return cmp; - } - - cmp = mappingA.generatedLine - mappingB.generatedLine; - if (cmp !== 0) { - return cmp; - } - - return strcmp(mappingA.name, mappingB.name); -} -exports.compareByOriginalPositions = compareByOriginalPositions; - -/** - * Comparator between two mappings with deflated source and name indices where - * the generated positions are compared. - * - * Optionally pass in `true` as `onlyCompareGenerated` to consider two - * mappings with the same generated line and column, but different - * source/name/original line and column the same. Useful when searching for a - * mapping with a stubbed out mapping. - */ -function compareByGeneratedPositionsDeflated(mappingA, mappingB, onlyCompareGenerated) { - var cmp = mappingA.generatedLine - mappingB.generatedLine; - if (cmp !== 0) { - return cmp; - } - - cmp = mappingA.generatedColumn - mappingB.generatedColumn; - if (cmp !== 0 || onlyCompareGenerated) { - return cmp; - } - - cmp = strcmp(mappingA.source, mappingB.source); - if (cmp !== 0) { - return cmp; - } - - cmp = mappingA.originalLine - mappingB.originalLine; - if (cmp !== 0) { - return cmp; - } - - cmp = mappingA.originalColumn - mappingB.originalColumn; - if (cmp !== 0) { - return cmp; - } - - return strcmp(mappingA.name, mappingB.name); -} -exports.compareByGeneratedPositionsDeflated = compareByGeneratedPositionsDeflated; - -function strcmp(aStr1, aStr2) { - if (aStr1 === aStr2) { - return 0; - } - - if (aStr1 === null) { - return 1; // aStr2 !== null - } - - if (aStr2 === null) { - return -1; // aStr1 !== null - } - - if (aStr1 > aStr2) { - return 1; - } - - return -1; -} - -/** - * Comparator between two mappings with inflated source and name strings where - * the generated positions are compared. - */ -function compareByGeneratedPositionsInflated(mappingA, mappingB) { - var cmp = mappingA.generatedLine - mappingB.generatedLine; - if (cmp !== 0) { - return cmp; - } - - cmp = mappingA.generatedColumn - mappingB.generatedColumn; - if (cmp !== 0) { - return cmp; - } - - cmp = strcmp(mappingA.source, mappingB.source); - if (cmp !== 0) { - return cmp; - } - - cmp = mappingA.originalLine - mappingB.originalLine; - if (cmp !== 0) { - return cmp; - } - - cmp = mappingA.originalColumn - mappingB.originalColumn; - if (cmp !== 0) { - return cmp; - } - - return strcmp(mappingA.name, mappingB.name); -} -exports.compareByGeneratedPositionsInflated = compareByGeneratedPositionsInflated; - -/** - * Strip any JSON XSSI avoidance prefix from the string (as documented - * in the source maps specification), and then parse the string as - * JSON. - */ -function parseSourceMapInput(str) { - return JSON.parse(str.replace(/^\)]}'[^\n]*\n/, '')); -} -exports.parseSourceMapInput = parseSourceMapInput; - -/** - * Compute the URL of a source given the the source root, the source's - * URL, and the source map's URL. - */ -function computeSourceURL(sourceRoot, sourceURL, sourceMapURL) { - sourceURL = sourceURL || ''; - - if (sourceRoot) { - // This follows what Chrome does. - if (sourceRoot[sourceRoot.length - 1] !== '/' && sourceURL[0] !== '/') { - sourceRoot += '/'; - } - // The spec says: - // Line 4: An optional source root, useful for relocating source - // files on a server or removing repeated values in the - // “sources” entry. This value is prepended to the individual - // entries in the “source” field. - sourceURL = sourceRoot + sourceURL; - } - - // Historically, SourceMapConsumer did not take the sourceMapURL as - // a parameter. This mode is still somewhat supported, which is why - // this code block is conditional. However, it's preferable to pass - // the source map URL to SourceMapConsumer, so that this function - // can implement the source URL resolution algorithm as outlined in - // the spec. This block is basically the equivalent of: - // new URL(sourceURL, sourceMapURL).toString() - // ... except it avoids using URL, which wasn't available in the - // older releases of node still supported by this library. - // - // The spec says: - // If the sources are not absolute URLs after prepending of the - // “sourceRoot”, the sources are resolved relative to the - // SourceMap (like resolving script src in a html document). - if (sourceMapURL) { - var parsed = urlParse(sourceMapURL); - if (!parsed) { - throw new Error("sourceMapURL could not be parsed"); - } - if (parsed.path) { - // Strip the last path component, but keep the "/". - var index = parsed.path.lastIndexOf('/'); - if (index >= 0) { - parsed.path = parsed.path.substring(0, index + 1); - } - } - sourceURL = join(urlGenerate(parsed), sourceURL); - } - - return normalize(sourceURL); -} -exports.computeSourceURL = computeSourceURL; - - -/***/ }), - -/***/ 56594: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -/* - * Copyright 2009-2011 Mozilla Foundation and contributors - * Licensed under the New BSD license. See LICENSE.txt or: - * http://opensource.org/licenses/BSD-3-Clause - */ -/* unused reexport */ __nccwpck_require__(69425)/* .SourceMapGenerator */ .h; -/* unused reexport */ __nccwpck_require__(75155); -exports.SourceNode = __nccwpck_require__(92616).SourceNode; - - -/***/ }), - -/***/ 57415: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -"use strict"; -/*! - * statuses - * Copyright(c) 2014 Jonathan Ong - * Copyright(c) 2016 Douglas Christopher Wilson - * MIT Licensed - */ - - - -/** - * Module dependencies. - * @private - */ - -var codes = __nccwpck_require__(67799) - -/** - * Module exports. - * @public - */ - -module.exports = status - -// status code to message map -status.STATUS_CODES = codes - -// array of status codes -status.codes = populateStatusesMap(status, codes) - -// status codes for redirects -status.redirect = { - 300: true, - 301: true, - 302: true, - 303: true, - 305: true, - 307: true, - 308: true -} - -// status codes for empty bodies -status.empty = { - 204: true, - 205: true, - 304: true -} - -// status codes for when you should retry the request -status.retry = { - 502: true, - 503: true, - 504: true -} - -/** - * Populate the statuses map for given codes. - * @private - */ - -function populateStatusesMap (statuses, codes) { - var arr = [] - - Object.keys(codes).forEach(function forEachCode (code) { - var message = codes[code] - var status = Number(code) - - // Populate properties - statuses[status] = message - statuses[message] = status - statuses[message.toLowerCase()] = status - - // Add to array - arr.push(status) - }) - - return arr -} - -/** - * Get the status code. - * - * Given a number, this will throw if it is not a known status - * code, otherwise the code will be returned. Given a string, - * the string will be parsed for a number and return the code - * if valid, otherwise will lookup the code assuming this is - * the status message. - * - * @param {string|number} code - * @returns {number} - * @public - */ - -function status (code) { - if (typeof code === 'number') { - if (!status[code]) throw new Error('invalid status code: ' + code) - return code - } - - if (typeof code !== 'string') { - throw new TypeError('code must be a number or string') - } - - // '403' - var n = parseInt(code, 10) - if (!isNaN(n)) { - if (!status[n]) throw new Error('invalid status code: ' + n) - return n - } - - n = status[code.toLowerCase()] - if (!n) throw new Error('invalid status message: "' + code + '"') - return n -} - - -/***/ }), - -/***/ 60674: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -// Copyright Joyent, Inc. and other Node contributors. -// -// Permission is hereby granted, free of charge, to any person obtaining a -// copy of this software and associated documentation files (the -// "Software"), to deal in the Software without restriction, including -// without limitation the rights to use, copy, modify, merge, publish, -// distribute, sublicense, and/or sell copies of the Software, and to permit -// persons to whom the Software is furnished to do so, subject to the -// following conditions: -// -// The above copyright notice and this permission notice shall be included -// in all copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS -// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN -// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, -// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR -// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE -// USE OR OTHER DEALINGS IN THE SOFTWARE. - -var Buffer = __nccwpck_require__(64293).Buffer; - -var isBufferEncoding = Buffer.isEncoding - || function(encoding) { - switch (encoding && encoding.toLowerCase()) { - case 'hex': case 'utf8': case 'utf-8': case 'ascii': case 'binary': case 'base64': case 'ucs2': case 'ucs-2': case 'utf16le': case 'utf-16le': case 'raw': return true; - default: return false; - } - } - - -function assertEncoding(encoding) { - if (encoding && !isBufferEncoding(encoding)) { - throw new Error('Unknown encoding: ' + encoding); - } -} - -// StringDecoder provides an interface for efficiently splitting a series of -// buffers into a series of JS strings without breaking apart multi-byte -// characters. CESU-8 is handled as part of the UTF-8 encoding. -// -// @TODO Handling all encodings inside a single object makes it very difficult -// to reason about this code, so it should be split up in the future. -// @TODO There should be a utf8-strict encoding that rejects invalid UTF-8 code -// points as used by CESU-8. -var StringDecoder = exports.s = function(encoding) { - this.encoding = (encoding || 'utf8').toLowerCase().replace(/[-_]/, ''); - assertEncoding(encoding); - switch (this.encoding) { - case 'utf8': - // CESU-8 represents each of Surrogate Pair by 3-bytes - this.surrogateSize = 3; - break; - case 'ucs2': - case 'utf16le': - // UTF-16 represents each of Surrogate Pair by 2-bytes - this.surrogateSize = 2; - this.detectIncompleteChar = utf16DetectIncompleteChar; - break; - case 'base64': - // Base-64 stores 3 bytes in 4 chars, and pads the remainder. - this.surrogateSize = 3; - this.detectIncompleteChar = base64DetectIncompleteChar; - break; - default: - this.write = passThroughWrite; - return; - } - - // Enough space to store all bytes of a single character. UTF-8 needs 4 - // bytes, but CESU-8 may require up to 6 (3 bytes per surrogate). - this.charBuffer = new Buffer(6); - // Number of bytes received for the current incomplete multi-byte character. - this.charReceived = 0; - // Number of bytes expected for the current incomplete multi-byte character. - this.charLength = 0; -}; - - -// write decodes the given buffer and returns it as JS string that is -// guaranteed to not contain any partial multi-byte characters. Any partial -// character found at the end of the buffer is buffered up, and will be -// returned when calling write again with the remaining bytes. -// -// Note: Converting a Buffer containing an orphan surrogate to a String -// currently works, but converting a String to a Buffer (via `new Buffer`, or -// Buffer#write) will replace incomplete surrogates with the unicode -// replacement character. See https://codereview.chromium.org/121173009/ . -StringDecoder.prototype.write = function(buffer) { - var charStr = ''; - // if our last write ended with an incomplete multibyte character - while (this.charLength) { - // determine how many remaining bytes this buffer has to offer for this char - var available = (buffer.length >= this.charLength - this.charReceived) ? - this.charLength - this.charReceived : - buffer.length; - - // add the new bytes to the char buffer - buffer.copy(this.charBuffer, this.charReceived, 0, available); - this.charReceived += available; - - if (this.charReceived < this.charLength) { - // still not enough chars in this buffer? wait for more ... - return ''; - } - - // remove bytes belonging to the current character from the buffer - buffer = buffer.slice(available, buffer.length); - - // get the character that was split - charStr = this.charBuffer.slice(0, this.charLength).toString(this.encoding); - - // CESU-8: lead surrogate (D800-DBFF) is also the incomplete character - var charCode = charStr.charCodeAt(charStr.length - 1); - if (charCode >= 0xD800 && charCode <= 0xDBFF) { - this.charLength += this.surrogateSize; - charStr = ''; - continue; - } - this.charReceived = this.charLength = 0; - - // if there are no more bytes in this buffer, just emit our char - if (buffer.length === 0) { - return charStr; - } - break; - } - - // determine and set charLength / charReceived - this.detectIncompleteChar(buffer); - - var end = buffer.length; - if (this.charLength) { - // buffer the incomplete character bytes we got - buffer.copy(this.charBuffer, 0, buffer.length - this.charReceived, end); - end -= this.charReceived; - } - - charStr += buffer.toString(this.encoding, 0, end); - - var end = charStr.length - 1; - var charCode = charStr.charCodeAt(end); - // CESU-8: lead surrogate (D800-DBFF) is also the incomplete character - if (charCode >= 0xD800 && charCode <= 0xDBFF) { - var size = this.surrogateSize; - this.charLength += size; - this.charReceived += size; - this.charBuffer.copy(this.charBuffer, size, 0, size); - buffer.copy(this.charBuffer, 0, 0, size); - return charStr.substring(0, end); - } - - // or just emit the charStr - return charStr; -}; - -// detectIncompleteChar determines if there is an incomplete UTF-8 character at -// the end of the given buffer. If so, it sets this.charLength to the byte -// length that character, and sets this.charReceived to the number of bytes -// that are available for this character. -StringDecoder.prototype.detectIncompleteChar = function(buffer) { - // determine how many bytes we have to check at the end of this buffer - var i = (buffer.length >= 3) ? 3 : buffer.length; - - // Figure out if one of the last i bytes of our buffer announces an - // incomplete char. - for (; i > 0; i--) { - var c = buffer[buffer.length - i]; - - // See http://en.wikipedia.org/wiki/UTF-8#Description - - // 110XXXXX - if (i == 1 && c >> 5 == 0x06) { - this.charLength = 2; - break; - } - - // 1110XXXX - if (i <= 2 && c >> 4 == 0x0E) { - this.charLength = 3; - break; - } - - // 11110XXX - if (i <= 3 && c >> 3 == 0x1E) { - this.charLength = 4; - break; - } - } - this.charReceived = i; -}; - -StringDecoder.prototype.end = function(buffer) { - var res = ''; - if (buffer && buffer.length) - res = this.write(buffer); - - if (this.charReceived) { - var cr = this.charReceived; - var buf = this.charBuffer; - var enc = this.encoding; - res += buf.slice(0, cr).toString(enc); - } - - return res; -}; - -function passThroughWrite(buffer) { - return buffer.toString(this.encoding); -} - -function utf16DetectIncompleteChar(buffer) { - this.charReceived = buffer.length % 2; - this.charLength = this.charReceived ? 2 : 0; -} - -function base64DetectIncompleteChar(buffer) { - this.charReceived = buffer.length % 3; - this.charLength = this.charReceived ? 3 : 0; -} - - -/***/ }), - -/***/ 59318: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -"use strict"; - -const os = __nccwpck_require__(12087); -const tty = __nccwpck_require__(33867); -const hasFlag = __nccwpck_require__(31621); - -const {env} = process; - -let forceColor; -if (hasFlag('no-color') || - hasFlag('no-colors') || - hasFlag('color=false') || - hasFlag('color=never')) { - forceColor = 0; -} else if (hasFlag('color') || - hasFlag('colors') || - hasFlag('color=true') || - hasFlag('color=always')) { - forceColor = 1; -} - -if ('FORCE_COLOR' in env) { - if (env.FORCE_COLOR === 'true') { - forceColor = 1; - } else if (env.FORCE_COLOR === 'false') { - forceColor = 0; - } else { - forceColor = env.FORCE_COLOR.length === 0 ? 1 : Math.min(parseInt(env.FORCE_COLOR, 10), 3); - } -} - -function translateLevel(level) { - if (level === 0) { - return false; - } - - return { - level, - hasBasic: true, - has256: level >= 2, - has16m: level >= 3 - }; -} - -function supportsColor(haveStream, streamIsTTY) { - if (forceColor === 0) { - return 0; - } - - if (hasFlag('color=16m') || - hasFlag('color=full') || - hasFlag('color=truecolor')) { - return 3; - } - - if (hasFlag('color=256')) { - return 2; - } - - if (haveStream && !streamIsTTY && forceColor === undefined) { - return 0; - } - - const min = forceColor || 0; - - if (env.TERM === 'dumb') { - return min; - } - - if (process.platform === 'win32') { - // Windows 10 build 10586 is the first Windows release that supports 256 colors. - // Windows 10 build 14931 is the first release that supports 16m/TrueColor. - const osRelease = os.release().split('.'); - if ( - Number(osRelease[0]) >= 10 && - Number(osRelease[2]) >= 10586 - ) { - return Number(osRelease[2]) >= 14931 ? 3 : 2; - } - - return 1; - } - - if ('CI' in env) { - if (['TRAVIS', 'CIRCLECI', 'APPVEYOR', 'GITLAB_CI', 'GITHUB_ACTIONS', 'BUILDKITE'].some(sign => sign in env) || env.CI_NAME === 'codeship') { - return 1; - } - - return min; - } - - if ('TEAMCITY_VERSION' in env) { - return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(env.TEAMCITY_VERSION) ? 1 : 0; - } - - if (env.COLORTERM === 'truecolor') { - return 3; - } - - if ('TERM_PROGRAM' in env) { - const version = parseInt((env.TERM_PROGRAM_VERSION || '').split('.')[0], 10); - - switch (env.TERM_PROGRAM) { - case 'iTerm.app': - return version >= 3 ? 3 : 2; - case 'Apple_Terminal': - return 2; - // No default - } - } - - if (/-256(color)?$/i.test(env.TERM)) { - return 2; - } - - if (/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(env.TERM)) { - return 1; - } - - if ('COLORTERM' in env) { - return 1; - } - - return min; -} - -function getSupportLevel(stream) { - const level = supportsColor(stream, stream && stream.isTTY); - return translateLevel(level); -} - -module.exports = { - supportsColor: getSupportLevel, - stdout: translateLevel(supportsColor(true, tty.isatty(1))), - stderr: translateLevel(supportsColor(true, tty.isatty(2))) -}; - - -/***/ }), - -/***/ 46399: -/***/ ((module) => { - -"use strict"; -/*! - * toidentifier - * Copyright(c) 2016 Douglas Christopher Wilson - * MIT Licensed - */ - - - -/** - * Module exports. - * @public - */ - -module.exports = toIdentifier - -/** - * Trasform the given string into a JavaScript identifier - * - * @param {string} str - * @returns {string} - * @public - */ - -function toIdentifier (str) { - return str - .split(' ') - .map(function (token) { - return token.slice(0, 1).toUpperCase() + token.slice(1) - }) - .join('') - .replace(/[^ _0-9a-z]/gi, '') -} - - -/***/ }), - -/***/ 4351: -/***/ ((module) => { - -/*! ***************************************************************************** -Copyright (c) Microsoft Corporation. - -Permission to use, copy, modify, and/or distribute this software for any -purpose with or without fee is hereby granted. - -THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH -REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY -AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, -INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM -LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR -OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR -PERFORMANCE OF THIS SOFTWARE. -***************************************************************************** */ -/* global global, define, System, Reflect, Promise */ -var __extends; -var __assign; -var __rest; -var __decorate; -var __param; -var __metadata; -var __awaiter; -var __generator; -var __exportStar; -var __values; -var __read; -var __spread; -var __spreadArrays; -var __spreadArray; -var __await; -var __asyncGenerator; -var __asyncDelegator; -var __asyncValues; -var __makeTemplateObject; -var __importStar; -var __importDefault; -var __classPrivateFieldGet; -var __classPrivateFieldSet; -var __createBinding; -(function (factory) { - var root = typeof global === "object" ? global : typeof self === "object" ? self : typeof this === "object" ? this : {}; - if (typeof define === "function" && define.amd) { - define("tslib", ["exports"], function (exports) { factory(createExporter(root, createExporter(exports))); }); - } - else if ( true && typeof module.exports === "object") { - factory(createExporter(root, createExporter(module.exports))); - } - else { - factory(createExporter(root)); - } - function createExporter(exports, previous) { - if (exports !== root) { - if (typeof Object.create === "function") { - Object.defineProperty(exports, "__esModule", { value: true }); - } - else { - exports.__esModule = true; - } - } - return function (id, v) { return exports[id] = previous ? previous(id, v) : v; }; - } -}) -(function (exporter) { - var extendStatics = Object.setPrototypeOf || - ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || - function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; - - __extends = function (d, b) { - if (typeof b !== "function" && b !== null) - throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); - extendStatics(d, b); - function __() { this.constructor = d; } - d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); - }; - - __assign = Object.assign || function (t) { - for (var s, i = 1, n = arguments.length; i < n; i++) { - s = arguments[i]; - for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p]; - } - return t; - }; - - __rest = function (s, e) { - var t = {}; - for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) - t[p] = s[p]; - if (s != null && typeof Object.getOwnPropertySymbols === "function") - for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { - if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) - t[p[i]] = s[p[i]]; - } - return t; - }; - - __decorate = function (decorators, target, key, desc) { - var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; - if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); - else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; - return c > 3 && r && Object.defineProperty(target, key, r), r; - }; - - __param = function (paramIndex, decorator) { - return function (target, key) { decorator(target, key, paramIndex); } - }; - - __metadata = function (metadataKey, metadataValue) { - if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(metadataKey, metadataValue); - }; - - __awaiter = function (thisArg, _arguments, P, generator) { - function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } - return new (P || (P = Promise))(function (resolve, reject) { - function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } - function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } - function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } - step((generator = generator.apply(thisArg, _arguments || [])).next()); - }); - }; - - __generator = function (thisArg, body) { - var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g; - return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g; - function verb(n) { return function (v) { return step([n, v]); }; } - function step(op) { - if (f) throw new TypeError("Generator is already executing."); - while (_) try { - if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t; - if (y = 0, t) op = [op[0] & 2, t.value]; - switch (op[0]) { - case 0: case 1: t = op; break; - case 4: _.label++; return { value: op[1], done: false }; - case 5: _.label++; y = op[1]; op = [0]; continue; - case 7: op = _.ops.pop(); _.trys.pop(); continue; - default: - if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; } - if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; } - if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; } - if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; } - if (t[2]) _.ops.pop(); - _.trys.pop(); continue; - } - op = body.call(thisArg, _); - } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; } - if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true }; - } - }; - - __exportStar = function(m, o) { - for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p)) __createBinding(o, m, p); - }; - - __createBinding = Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); - }) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; - }); - - __values = function (o) { - var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0; - if (m) return m.call(o); - if (o && typeof o.length === "number") return { - next: function () { - if (o && i >= o.length) o = void 0; - return { value: o && o[i++], done: !o }; - } - }; - throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined."); - }; - - __read = function (o, n) { - var m = typeof Symbol === "function" && o[Symbol.iterator]; - if (!m) return o; - var i = m.call(o), r, ar = [], e; - try { - while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); - } - catch (error) { e = { error: error }; } - finally { - try { - if (r && !r.done && (m = i["return"])) m.call(i); - } - finally { if (e) throw e.error; } - } - return ar; - }; - - /** @deprecated */ - __spread = function () { - for (var ar = [], i = 0; i < arguments.length; i++) - ar = ar.concat(__read(arguments[i])); - return ar; - }; - - /** @deprecated */ - __spreadArrays = function () { - for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length; - for (var r = Array(s), k = 0, i = 0; i < il; i++) - for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++) - r[k] = a[j]; - return r; - }; - - __spreadArray = function (to, from, pack) { - if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) { - if (ar || !(i in from)) { - if (!ar) ar = Array.prototype.slice.call(from, 0, i); - ar[i] = from[i]; - } - } - return to.concat(ar || Array.prototype.slice.call(from)); - }; - - __await = function (v) { - return this instanceof __await ? (this.v = v, this) : new __await(v); - }; - - __asyncGenerator = function (thisArg, _arguments, generator) { - if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); - var g = generator.apply(thisArg, _arguments || []), i, q = []; - return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i; - function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; } - function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } } - function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); } - function fulfill(value) { resume("next", value); } - function reject(value) { resume("throw", value); } - function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); } - }; - - __asyncDelegator = function (o) { - var i, p; - return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i; - function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === "return" } : f ? f(v) : v; } : f; } - }; - - __asyncValues = function (o) { - if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); - var m = o[Symbol.asyncIterator], i; - return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i); - function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; } - function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); } - }; - - __makeTemplateObject = function (cooked, raw) { - if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; } - return cooked; - }; - - var __setModuleDefault = Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); - }) : function(o, v) { - o["default"] = v; - }; - - __importStar = function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; - }; - - __importDefault = function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; - }; - - __classPrivateFieldGet = function (receiver, state, kind, f) { - if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter"); - if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it"); - return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver); - }; - - __classPrivateFieldSet = function (receiver, state, value, kind, f) { - if (kind === "m") throw new TypeError("Private method is not writable"); - if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter"); - if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it"); - return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value; - }; - - exporter("__extends", __extends); - exporter("__assign", __assign); - exporter("__rest", __rest); - exporter("__decorate", __decorate); - exporter("__param", __param); - exporter("__metadata", __metadata); - exporter("__awaiter", __awaiter); - exporter("__generator", __generator); - exporter("__exportStar", __exportStar); - exporter("__createBinding", __createBinding); - exporter("__values", __values); - exporter("__read", __read); - exporter("__spread", __spread); - exporter("__spreadArrays", __spreadArrays); - exporter("__spreadArray", __spreadArray); - exporter("__await", __await); - exporter("__asyncGenerator", __asyncGenerator); - exporter("__asyncDelegator", __asyncDelegator); - exporter("__asyncValues", __asyncValues); - exporter("__makeTemplateObject", __makeTemplateObject); - exporter("__importStar", __importStar); - exporter("__importDefault", __importDefault); - exporter("__classPrivateFieldGet", __classPrivateFieldGet); - exporter("__classPrivateFieldSet", __classPrivateFieldSet); -}); - - -/***/ }), - -/***/ 74294: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -module.exports = __nccwpck_require__(54219); - - -/***/ }), - -/***/ 54219: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -var net = __nccwpck_require__(11631); -var tls = __nccwpck_require__(4016); -var http = __nccwpck_require__(98605); -var https = __nccwpck_require__(57211); -var events = __nccwpck_require__(28614); -var assert = __nccwpck_require__(42357); -var util = __nccwpck_require__(31669); - - -exports.httpOverHttp = httpOverHttp; -exports.httpsOverHttp = httpsOverHttp; -exports.httpOverHttps = httpOverHttps; -exports.httpsOverHttps = httpsOverHttps; - - -function httpOverHttp(options) { - var agent = new TunnelingAgent(options); - agent.request = http.request; - return agent; -} - -function httpsOverHttp(options) { - var agent = new TunnelingAgent(options); - agent.request = http.request; - agent.createSocket = createSecureSocket; - agent.defaultPort = 443; - return agent; -} - -function httpOverHttps(options) { - var agent = new TunnelingAgent(options); - agent.request = https.request; - return agent; -} - -function httpsOverHttps(options) { - var agent = new TunnelingAgent(options); - agent.request = https.request; - agent.createSocket = createSecureSocket; - agent.defaultPort = 443; - return agent; -} - - -function TunnelingAgent(options) { - var self = this; - self.options = options || {}; - self.proxyOptions = self.options.proxy || {}; - self.maxSockets = self.options.maxSockets || http.Agent.defaultMaxSockets; - self.requests = []; - self.sockets = []; - - self.on('free', function onFree(socket, host, port, localAddress) { - var options = toOptions(host, port, localAddress); - for (var i = 0, len = self.requests.length; i < len; ++i) { - var pending = self.requests[i]; - if (pending.host === options.host && pending.port === options.port) { - // Detect the request to connect same origin server, - // reuse the connection. - self.requests.splice(i, 1); - pending.request.onSocket(socket); - return; - } - } - socket.destroy(); - self.removeSocket(socket); - }); -} -util.inherits(TunnelingAgent, events.EventEmitter); - -TunnelingAgent.prototype.addRequest = function addRequest(req, host, port, localAddress) { - var self = this; - var options = mergeOptions({request: req}, self.options, toOptions(host, port, localAddress)); - - if (self.sockets.length >= this.maxSockets) { - // We are over limit so we'll add it to the queue. - self.requests.push(options); - return; - } - - // If we are under maxSockets create a new one. - self.createSocket(options, function(socket) { - socket.on('free', onFree); - socket.on('close', onCloseOrRemove); - socket.on('agentRemove', onCloseOrRemove); - req.onSocket(socket); - - function onFree() { - self.emit('free', socket, options); - } - - function onCloseOrRemove(err) { - self.removeSocket(socket); - socket.removeListener('free', onFree); - socket.removeListener('close', onCloseOrRemove); - socket.removeListener('agentRemove', onCloseOrRemove); - } - }); -}; - -TunnelingAgent.prototype.createSocket = function createSocket(options, cb) { - var self = this; - var placeholder = {}; - self.sockets.push(placeholder); - - var connectOptions = mergeOptions({}, self.proxyOptions, { - method: 'CONNECT', - path: options.host + ':' + options.port, - agent: false, - headers: { - host: options.host + ':' + options.port - } - }); - if (options.localAddress) { - connectOptions.localAddress = options.localAddress; - } - if (connectOptions.proxyAuth) { - connectOptions.headers = connectOptions.headers || {}; - connectOptions.headers['Proxy-Authorization'] = 'Basic ' + - new Buffer(connectOptions.proxyAuth).toString('base64'); - } - - debug('making CONNECT request'); - var connectReq = self.request(connectOptions); - connectReq.useChunkedEncodingByDefault = false; // for v0.6 - connectReq.once('response', onResponse); // for v0.6 - connectReq.once('upgrade', onUpgrade); // for v0.6 - connectReq.once('connect', onConnect); // for v0.7 or later - connectReq.once('error', onError); - connectReq.end(); - - function onResponse(res) { - // Very hacky. This is necessary to avoid http-parser leaks. - res.upgrade = true; - } - - function onUpgrade(res, socket, head) { - // Hacky. - process.nextTick(function() { - onConnect(res, socket, head); - }); - } - - function onConnect(res, socket, head) { - connectReq.removeAllListeners(); - socket.removeAllListeners(); - - if (res.statusCode !== 200) { - debug('tunneling socket could not be established, statusCode=%d', - res.statusCode); - socket.destroy(); - var error = new Error('tunneling socket could not be established, ' + - 'statusCode=' + res.statusCode); - error.code = 'ECONNRESET'; - options.request.emit('error', error); - self.removeSocket(placeholder); - return; - } - if (head.length > 0) { - debug('got illegal response body from proxy'); - socket.destroy(); - var error = new Error('got illegal response body from proxy'); - error.code = 'ECONNRESET'; - options.request.emit('error', error); - self.removeSocket(placeholder); - return; - } - debug('tunneling connection has established'); - self.sockets[self.sockets.indexOf(placeholder)] = socket; - return cb(socket); - } - - function onError(cause) { - connectReq.removeAllListeners(); - - debug('tunneling socket could not be established, cause=%s\n', - cause.message, cause.stack); - var error = new Error('tunneling socket could not be established, ' + - 'cause=' + cause.message); - error.code = 'ECONNRESET'; - options.request.emit('error', error); - self.removeSocket(placeholder); - } -}; - -TunnelingAgent.prototype.removeSocket = function removeSocket(socket) { - var pos = this.sockets.indexOf(socket) - if (pos === -1) { - return; - } - this.sockets.splice(pos, 1); - - var pending = this.requests.shift(); - if (pending) { - // If we have pending requests and a socket gets closed a new one - // needs to be created to take over in the pool for the one that closed. - this.createSocket(pending, function(socket) { - pending.request.onSocket(socket); - }); - } -}; - -function createSecureSocket(options, cb) { - var self = this; - TunnelingAgent.prototype.createSocket.call(self, options, function(socket) { - var hostHeader = options.request.getHeader('host'); - var tlsOptions = mergeOptions({}, self.options, { - socket: socket, - servername: hostHeader ? hostHeader.replace(/:.*$/, '') : options.host - }); - - // 0 is dummy port for v0.6 - var secureSocket = tls.connect(0, tlsOptions); - self.sockets[self.sockets.indexOf(socket)] = secureSocket; - cb(secureSocket); - }); -} - - -function toOptions(host, port, localAddress) { - if (typeof host === 'string') { // since v0.10 - return { - host: host, - port: port, - localAddress: localAddress - }; - } - return host; // for v0.11 or later -} - -function mergeOptions(target) { - for (var i = 1, len = arguments.length; i < len; ++i) { - var overrides = arguments[i]; - if (typeof overrides === 'object') { - var keys = Object.keys(overrides); - for (var j = 0, keyLen = keys.length; j < keyLen; ++j) { - var k = keys[j]; - if (overrides[k] !== undefined) { - target[k] = overrides[k]; - } - } - } - } - return target; -} - - -var debug; -if (process.env.NODE_DEBUG && /\btunnel\b/.test(process.env.NODE_DEBUG)) { - debug = function() { - var args = Array.prototype.slice.call(arguments); - if (typeof args[0] === 'string') { - args[0] = 'TUNNEL: ' + args[0]; - } else { - args.unshift('TUNNEL:'); - } - console.error.apply(console, args); - } -} else { - debug = function() {}; -} -exports.debug = debug; // for test - - -/***/ }), - -/***/ 9046: -/***/ ((__unused_webpack_module, exports) => { - -"use strict"; - - -exports.E = function (fn) { - return Object.defineProperty(function () { - if (typeof arguments[arguments.length - 1] === 'function') fn.apply(this, arguments) - else { - return new Promise((resolve, reject) => { - arguments[arguments.length] = (err, res) => { - if (err) return reject(err) - resolve(res) - } - arguments.length++ - fn.apply(this, arguments) - }) - } - }, 'name', { value: fn.name }) -} - -exports.p = function (fn) { - return Object.defineProperty(function () { - const cb = arguments[arguments.length - 1] - if (typeof cb !== 'function') return fn.apply(this, arguments) - else fn.apply(this, arguments).then(r => cb(null, r), cb) - }, 'name', { value: fn.name }) -} - - -/***/ }), - -/***/ 3124: -/***/ ((module) => { - -"use strict"; -/*! - * unpipe - * Copyright(c) 2015 Douglas Christopher Wilson - * MIT Licensed - */ - - - -/** - * Module exports. - * @public - */ - -module.exports = unpipe - -/** - * Determine if there are Node.js pipe-like data listeners. - * @private - */ - -function hasPipeDataListeners(stream) { - var listeners = stream.listeners('data') - - for (var i = 0; i < listeners.length; i++) { - if (listeners[i].name === 'ondata') { - return true - } - } - - return false -} - -/** - * Unpipe a stream from all destinations. - * - * @param {object} stream - * @public - */ - -function unpipe(stream) { - if (!stream) { - throw new TypeError('argument stream is required') - } - - if (typeof stream.unpipe === 'function') { - // new-style - stream.unpipe() - return - } - - // Node.js 0.8 hack - if (!hasPipeDataListeners(stream)) { - return - } - - var listener - var listeners = stream.listeners('close') - - for (var i = 0; i < listeners.length; i++) { - listener = listeners[i] - - if (listener.name !== 'cleanup' && listener.name !== 'onclose') { - continue - } - - // invoke the listener - listener.call(stream) - } -} - - -/***/ }), - -/***/ 75840: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -Object.defineProperty(exports, "v1", ({ - enumerable: true, - get: function () { - return _v.default; - } -})); -Object.defineProperty(exports, "v3", ({ - enumerable: true, - get: function () { - return _v2.default; - } -})); -Object.defineProperty(exports, "v4", ({ - enumerable: true, - get: function () { - return _v3.default; - } -})); -Object.defineProperty(exports, "v5", ({ - enumerable: true, - get: function () { - return _v4.default; - } -})); -Object.defineProperty(exports, "NIL", ({ - enumerable: true, - get: function () { - return _nil.default; - } -})); -Object.defineProperty(exports, "version", ({ - enumerable: true, - get: function () { - return _version.default; - } -})); -Object.defineProperty(exports, "validate", ({ - enumerable: true, - get: function () { - return _validate.default; - } -})); -Object.defineProperty(exports, "stringify", ({ - enumerable: true, - get: function () { - return _stringify.default; - } -})); -Object.defineProperty(exports, "parse", ({ - enumerable: true, - get: function () { - return _parse.default; - } -})); - -var _v = _interopRequireDefault(__nccwpck_require__(78628)); - -var _v2 = _interopRequireDefault(__nccwpck_require__(86409)); - -var _v3 = _interopRequireDefault(__nccwpck_require__(85122)); - -var _v4 = _interopRequireDefault(__nccwpck_require__(79120)); - -var _nil = _interopRequireDefault(__nccwpck_require__(25332)); - -var _version = _interopRequireDefault(__nccwpck_require__(32414)); - -var _validate = _interopRequireDefault(__nccwpck_require__(66900)); - -var _stringify = _interopRequireDefault(__nccwpck_require__(18950)); - -var _parse = _interopRequireDefault(__nccwpck_require__(62746)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -/***/ }), - -/***/ 4569: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports.default = void 0; - -var _crypto = _interopRequireDefault(__nccwpck_require__(76417)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -function md5(bytes) { - if (Array.isArray(bytes)) { - bytes = Buffer.from(bytes); - } else if (typeof bytes === 'string') { - bytes = Buffer.from(bytes, 'utf8'); - } - - return _crypto.default.createHash('md5').update(bytes).digest(); -} - -var _default = md5; -exports.default = _default; - -/***/ }), - -/***/ 25332: -/***/ ((__unused_webpack_module, exports) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports.default = void 0; -var _default = '00000000-0000-0000-0000-000000000000'; -exports.default = _default; - -/***/ }), - -/***/ 62746: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports.default = void 0; - -var _validate = _interopRequireDefault(__nccwpck_require__(66900)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -function parse(uuid) { - if (!(0, _validate.default)(uuid)) { - throw TypeError('Invalid UUID'); - } - - let v; - const arr = new Uint8Array(16); // Parse ########-....-....-....-............ - - arr[0] = (v = parseInt(uuid.slice(0, 8), 16)) >>> 24; - arr[1] = v >>> 16 & 0xff; - arr[2] = v >>> 8 & 0xff; - arr[3] = v & 0xff; // Parse ........-####-....-....-............ - - arr[4] = (v = parseInt(uuid.slice(9, 13), 16)) >>> 8; - arr[5] = v & 0xff; // Parse ........-....-####-....-............ - - arr[6] = (v = parseInt(uuid.slice(14, 18), 16)) >>> 8; - arr[7] = v & 0xff; // Parse ........-....-....-####-............ - - arr[8] = (v = parseInt(uuid.slice(19, 23), 16)) >>> 8; - arr[9] = v & 0xff; // Parse ........-....-....-....-############ - // (Use "/" to avoid 32-bit truncation when bit-shifting high-order bytes) - - arr[10] = (v = parseInt(uuid.slice(24, 36), 16)) / 0x10000000000 & 0xff; - arr[11] = v / 0x100000000 & 0xff; - arr[12] = v >>> 24 & 0xff; - arr[13] = v >>> 16 & 0xff; - arr[14] = v >>> 8 & 0xff; - arr[15] = v & 0xff; - return arr; -} - -var _default = parse; -exports.default = _default; - -/***/ }), - -/***/ 40814: -/***/ ((__unused_webpack_module, exports) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports.default = void 0; -var _default = /^(?:[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; -exports.default = _default; - -/***/ }), - -/***/ 50807: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports.default = rng; - -var _crypto = _interopRequireDefault(__nccwpck_require__(76417)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -const rnds8Pool = new Uint8Array(256); // # of random values to pre-allocate - -let poolPtr = rnds8Pool.length; - -function rng() { - if (poolPtr > rnds8Pool.length - 16) { - _crypto.default.randomFillSync(rnds8Pool); - - poolPtr = 0; - } - - return rnds8Pool.slice(poolPtr, poolPtr += 16); -} - -/***/ }), - -/***/ 85274: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports.default = void 0; - -var _crypto = _interopRequireDefault(__nccwpck_require__(76417)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -function sha1(bytes) { - if (Array.isArray(bytes)) { - bytes = Buffer.from(bytes); - } else if (typeof bytes === 'string') { - bytes = Buffer.from(bytes, 'utf8'); - } - - return _crypto.default.createHash('sha1').update(bytes).digest(); -} - -var _default = sha1; -exports.default = _default; - -/***/ }), - -/***/ 18950: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports.default = void 0; - -var _validate = _interopRequireDefault(__nccwpck_require__(66900)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -/** - * Convert array of 16 byte values to UUID string format of the form: - * XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX - */ -const byteToHex = []; - -for (let i = 0; i < 256; ++i) { - byteToHex.push((i + 0x100).toString(16).substr(1)); -} - -function stringify(arr, offset = 0) { - // Note: Be careful editing this code! It's been tuned for performance - // and works in ways you may not expect. See https://github.com/uuidjs/uuid/pull/434 - const uuid = (byteToHex[arr[offset + 0]] + byteToHex[arr[offset + 1]] + byteToHex[arr[offset + 2]] + byteToHex[arr[offset + 3]] + '-' + byteToHex[arr[offset + 4]] + byteToHex[arr[offset + 5]] + '-' + byteToHex[arr[offset + 6]] + byteToHex[arr[offset + 7]] + '-' + byteToHex[arr[offset + 8]] + byteToHex[arr[offset + 9]] + '-' + byteToHex[arr[offset + 10]] + byteToHex[arr[offset + 11]] + byteToHex[arr[offset + 12]] + byteToHex[arr[offset + 13]] + byteToHex[arr[offset + 14]] + byteToHex[arr[offset + 15]]).toLowerCase(); // Consistency check for valid UUID. If this throws, it's likely due to one - // of the following: - // - One or more input array values don't map to a hex octet (leading to - // "undefined" in the uuid) - // - Invalid input values for the RFC `version` or `variant` fields - - if (!(0, _validate.default)(uuid)) { - throw TypeError('Stringified UUID is invalid'); - } - - return uuid; -} - -var _default = stringify; -exports.default = _default; - -/***/ }), - -/***/ 78628: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports.default = void 0; - -var _rng = _interopRequireDefault(__nccwpck_require__(50807)); - -var _stringify = _interopRequireDefault(__nccwpck_require__(18950)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -// **`v1()` - Generate time-based UUID** -// -// Inspired by https://github.com/LiosK/UUID.js -// and http://docs.python.org/library/uuid.html -let _nodeId; - -let _clockseq; // Previous uuid creation time - - -let _lastMSecs = 0; -let _lastNSecs = 0; // See https://github.com/uuidjs/uuid for API details - -function v1(options, buf, offset) { - let i = buf && offset || 0; - const b = buf || new Array(16); - options = options || {}; - let node = options.node || _nodeId; - let clockseq = options.clockseq !== undefined ? options.clockseq : _clockseq; // node and clockseq need to be initialized to random values if they're not - // specified. We do this lazily to minimize issues related to insufficient - // system entropy. See #189 - - if (node == null || clockseq == null) { - const seedBytes = options.random || (options.rng || _rng.default)(); - - if (node == null) { - // Per 4.5, create and 48-bit node id, (47 random bits + multicast bit = 1) - node = _nodeId = [seedBytes[0] | 0x01, seedBytes[1], seedBytes[2], seedBytes[3], seedBytes[4], seedBytes[5]]; - } - - if (clockseq == null) { - // Per 4.2.2, randomize (14 bit) clockseq - clockseq = _clockseq = (seedBytes[6] << 8 | seedBytes[7]) & 0x3fff; - } - } // UUID timestamps are 100 nano-second units since the Gregorian epoch, - // (1582-10-15 00:00). JSNumbers aren't precise enough for this, so - // time is handled internally as 'msecs' (integer milliseconds) and 'nsecs' - // (100-nanoseconds offset from msecs) since unix epoch, 1970-01-01 00:00. - - - let msecs = options.msecs !== undefined ? options.msecs : Date.now(); // Per 4.2.1.2, use count of uuid's generated during the current clock - // cycle to simulate higher resolution clock - - let nsecs = options.nsecs !== undefined ? options.nsecs : _lastNSecs + 1; // Time since last uuid creation (in msecs) - - const dt = msecs - _lastMSecs + (nsecs - _lastNSecs) / 10000; // Per 4.2.1.2, Bump clockseq on clock regression - - if (dt < 0 && options.clockseq === undefined) { - clockseq = clockseq + 1 & 0x3fff; - } // Reset nsecs if clock regresses (new clockseq) or we've moved onto a new - // time interval - - - if ((dt < 0 || msecs > _lastMSecs) && options.nsecs === undefined) { - nsecs = 0; - } // Per 4.2.1.2 Throw error if too many uuids are requested - - - if (nsecs >= 10000) { - throw new Error("uuid.v1(): Can't create more than 10M uuids/sec"); - } - - _lastMSecs = msecs; - _lastNSecs = nsecs; - _clockseq = clockseq; // Per 4.1.4 - Convert from unix epoch to Gregorian epoch - - msecs += 12219292800000; // `time_low` - - const tl = ((msecs & 0xfffffff) * 10000 + nsecs) % 0x100000000; - b[i++] = tl >>> 24 & 0xff; - b[i++] = tl >>> 16 & 0xff; - b[i++] = tl >>> 8 & 0xff; - b[i++] = tl & 0xff; // `time_mid` - - const tmh = msecs / 0x100000000 * 10000 & 0xfffffff; - b[i++] = tmh >>> 8 & 0xff; - b[i++] = tmh & 0xff; // `time_high_and_version` - - b[i++] = tmh >>> 24 & 0xf | 0x10; // include version - - b[i++] = tmh >>> 16 & 0xff; // `clock_seq_hi_and_reserved` (Per 4.2.2 - include variant) - - b[i++] = clockseq >>> 8 | 0x80; // `clock_seq_low` - - b[i++] = clockseq & 0xff; // `node` - - for (let n = 0; n < 6; ++n) { - b[i + n] = node[n]; - } - - return buf || (0, _stringify.default)(b); -} - -var _default = v1; -exports.default = _default; - -/***/ }), - -/***/ 86409: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports.default = void 0; - -var _v = _interopRequireDefault(__nccwpck_require__(65998)); - -var _md = _interopRequireDefault(__nccwpck_require__(4569)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -const v3 = (0, _v.default)('v3', 0x30, _md.default); -var _default = v3; -exports.default = _default; - -/***/ }), - -/***/ 65998: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports.default = _default; -exports.URL = exports.DNS = void 0; - -var _stringify = _interopRequireDefault(__nccwpck_require__(18950)); - -var _parse = _interopRequireDefault(__nccwpck_require__(62746)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -function stringToBytes(str) { - str = unescape(encodeURIComponent(str)); // UTF8 escape - - const bytes = []; - - for (let i = 0; i < str.length; ++i) { - bytes.push(str.charCodeAt(i)); - } - - return bytes; -} - -const DNS = '6ba7b810-9dad-11d1-80b4-00c04fd430c8'; -exports.DNS = DNS; -const URL = '6ba7b811-9dad-11d1-80b4-00c04fd430c8'; -exports.URL = URL; - -function _default(name, version, hashfunc) { - function generateUUID(value, namespace, buf, offset) { - if (typeof value === 'string') { - value = stringToBytes(value); - } - - if (typeof namespace === 'string') { - namespace = (0, _parse.default)(namespace); - } - - if (namespace.length !== 16) { - throw TypeError('Namespace must be array-like (16 iterable integer values, 0-255)'); - } // Compute hash of namespace and value, Per 4.3 - // Future: Use spread syntax when supported on all platforms, e.g. `bytes = - // hashfunc([...namespace, ... value])` - - - let bytes = new Uint8Array(16 + value.length); - bytes.set(namespace); - bytes.set(value, namespace.length); - bytes = hashfunc(bytes); - bytes[6] = bytes[6] & 0x0f | version; - bytes[8] = bytes[8] & 0x3f | 0x80; - - if (buf) { - offset = offset || 0; - - for (let i = 0; i < 16; ++i) { - buf[offset + i] = bytes[i]; - } - - return buf; - } - - return (0, _stringify.default)(bytes); - } // Function#name is not settable on some platforms (#270) - - - try { - generateUUID.name = name; // eslint-disable-next-line no-empty - } catch (err) {} // For CommonJS default export support - - - generateUUID.DNS = DNS; - generateUUID.URL = URL; - return generateUUID; -} - -/***/ }), - -/***/ 85122: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports.default = void 0; - -var _rng = _interopRequireDefault(__nccwpck_require__(50807)); - -var _stringify = _interopRequireDefault(__nccwpck_require__(18950)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -function v4(options, buf, offset) { - options = options || {}; - - const rnds = options.random || (options.rng || _rng.default)(); // Per 4.4, set bits for version and `clock_seq_hi_and_reserved` - - - rnds[6] = rnds[6] & 0x0f | 0x40; - rnds[8] = rnds[8] & 0x3f | 0x80; // Copy bytes to buffer, if provided - - if (buf) { - offset = offset || 0; - - for (let i = 0; i < 16; ++i) { - buf[offset + i] = rnds[i]; - } - - return buf; - } - - return (0, _stringify.default)(rnds); -} - -var _default = v4; -exports.default = _default; - -/***/ }), - -/***/ 79120: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports.default = void 0; - -var _v = _interopRequireDefault(__nccwpck_require__(65998)); - -var _sha = _interopRequireDefault(__nccwpck_require__(85274)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -const v5 = (0, _v.default)('v5', 0x50, _sha.default); -var _default = v5; -exports.default = _default; - -/***/ }), - -/***/ 66900: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports.default = void 0; - -var _regex = _interopRequireDefault(__nccwpck_require__(40814)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -function validate(uuid) { - return typeof uuid === 'string' && _regex.default.test(uuid); -} - -var _default = validate; -exports.default = _default; - -/***/ }), - -/***/ 32414: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports.default = void 0; - -var _validate = _interopRequireDefault(__nccwpck_require__(66900)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -function version(uuid) { - if (!(0, _validate.default)(uuid)) { - throw TypeError('Invalid UUID'); - } - - return parseInt(uuid.substr(14, 1), 16); -} - -var _default = version; -exports.default = _default; - -/***/ }), - -/***/ 69440: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -if (parseInt(process.versions.node.split('.')[0]) < 6) throw new Error('vm2 requires Node.js version 6 or newer.'); - -module.exports = __nccwpck_require__(74357); - - -/***/ }), - -/***/ 82989: -/***/ ((__unused_webpack_module, exports) => { - -"use strict"; - - -/** - * __ ___ ____ _ _ ___ _ _ ____ - * \ \ / / \ | _ \| \ | |_ _| \ | |/ ___| - * \ \ /\ / / _ \ | |_) | \| || || \| | | _ - * \ V V / ___ \| _ <| |\ || || |\ | |_| | - * \_/\_/_/ \_\_| \_\_| \_|___|_| \_|\____| - * - * This file is critical for vm2. It implements the bridge between the host and the sandbox. - * If you do not know exactly what you are doing, you should NOT edit this file. - * - * The file is loaded in the host and sandbox to handle objects in both directions. - * This is done to ensure that RangeErrors are from the correct context. - * The boundary between the sandbox and host might throw RangeErrors from both contexts. - * Therefore, thisFromOther and friends can handle objects from both domains. - * - * Method parameters have comments to tell from which context they came. - * - */ - -const globalsList = [ - 'Number', - 'String', - 'Boolean', - 'Date', - 'RegExp', - 'Map', - 'WeakMap', - 'Set', - 'WeakSet', - 'Promise', - 'Function' -]; - -const errorsList = [ - 'RangeError', - 'ReferenceError', - 'SyntaxError', - 'TypeError', - 'EvalError', - 'URIError', - 'Error' -]; - -const OPNA = 'Operation not allowed on contextified object.'; - -const thisGlobalPrototypes = { - __proto__: null, - Object: Object.prototype, - Array: Array.prototype -}; - -for (let i = 0; i < globalsList.length; i++) { - const key = globalsList[i]; - const g = global[key]; - if (g) thisGlobalPrototypes[key] = g.prototype; -} - -for (let i = 0; i < errorsList.length; i++) { - const key = errorsList[i]; - const g = global[key]; - if (g) thisGlobalPrototypes[key] = g.prototype; -} - -const { - getPrototypeOf: thisReflectGetPrototypeOf, - setPrototypeOf: thisReflectSetPrototypeOf, - defineProperty: thisReflectDefineProperty, - deleteProperty: thisReflectDeleteProperty, - getOwnPropertyDescriptor: thisReflectGetOwnPropertyDescriptor, - isExtensible: thisReflectIsExtensible, - preventExtensions: thisReflectPreventExtensions, - apply: thisReflectApply, - construct: thisReflectConstruct, - set: thisReflectSet, - get: thisReflectGet, - has: thisReflectHas, - ownKeys: thisReflectOwnKeys, - enumerate: thisReflectEnumerate, -} = Reflect; - -const thisObject = Object; -const { - freeze: thisObjectFreeze, - prototype: thisObjectPrototype -} = thisObject; -const thisObjectHasOwnProperty = thisObjectPrototype.hasOwnProperty; -const ThisProxy = Proxy; -const ThisWeakMap = WeakMap; -const { - get: thisWeakMapGet, - set: thisWeakMapSet -} = ThisWeakMap.prototype; -const ThisMap = Map; -const thisMapGet = ThisMap.prototype.get; -const thisMapSet = ThisMap.prototype.set; -const thisFunction = Function; -const thisFunctionBind = thisFunction.prototype.bind; -const thisArrayIsArray = Array.isArray; -const thisErrorCaptureStackTrace = Error.captureStackTrace; - -const thisSymbolToString = Symbol.prototype.toString; -const thisSymbolToStringTag = Symbol.toStringTag; - -/** - * VMError. - * - * @public - * @extends {Error} - */ -class VMError extends Error { - - /** - * Create VMError instance. - * - * @public - * @param {string} message - Error message. - * @param {string} code - Error code. - */ - constructor(message, code) { - super(message); - - this.name = 'VMError'; - this.code = code; - - thisErrorCaptureStackTrace(this, this.constructor); - } -} - -thisGlobalPrototypes['VMError'] = VMError.prototype; - -function thisUnexpected() { - return new VMError('Unexpected'); -} - -if (!thisReflectSetPrototypeOf(exports, null)) throw thisUnexpected(); - -function thisSafeGetOwnPropertyDescriptor(obj, key) { - const desc = thisReflectGetOwnPropertyDescriptor(obj, key); - if (!desc) return desc; - if (!thisReflectSetPrototypeOf(desc, null)) throw thisUnexpected(); - return desc; -} - -function thisThrowCallerCalleeArgumentsAccess(key) { - 'use strict'; - thisThrowCallerCalleeArgumentsAccess[key]; - return thisUnexpected(); -} - -function thisIdMapping(factory, other) { - return other; -} - -const thisThrowOnKeyAccessHandler = thisObjectFreeze({ - __proto__: null, - get(target, key, receiver) { - if (typeof key === 'symbol') { - key = thisReflectApply(thisSymbolToString, key, []); - } - throw new VMError(`Unexpected access to key '${key}'`); - } -}); - -const emptyForzenObject = thisObjectFreeze({ - __proto__: null -}); - -const thisThrowOnKeyAccess = new ThisProxy(emptyForzenObject, thisThrowOnKeyAccessHandler); - -function SafeBase() {} - -if (!thisReflectDefineProperty(SafeBase, 'prototype', { - __proto__: null, - value: thisThrowOnKeyAccess -})) throw thisUnexpected(); - -function SHARED_FUNCTION() {} - -const TEST_PROXY_HANDLER = thisObjectFreeze({ - __proto__: thisThrowOnKeyAccess, - construct() { - return this; - } -}); - -function thisIsConstructor(obj) { - // Note: obj@any(unsafe) - const Func = new ThisProxy(obj, TEST_PROXY_HANDLER); - try { - // eslint-disable-next-line no-new - new Func(); - return true; - } catch (e) { - return false; - } -} - -function thisCreateTargetObject(obj, proto) { - // Note: obj@any(unsafe) proto@any(unsafe) returns@this(unsafe) throws@this(unsafe) - let base; - if (typeof obj === 'function') { - if (thisIsConstructor(obj)) { - // Bind the function since bound functions do not have a prototype property. - base = thisReflectApply(thisFunctionBind, SHARED_FUNCTION, [null]); - } else { - base = () => {}; - } - } else if (thisArrayIsArray(obj)) { - base = []; - } else { - return {__proto__: proto}; - } - if (!thisReflectSetPrototypeOf(base, proto)) throw thisUnexpected(); - return base; -} - -function createBridge(otherInit, registerProxy) { - - const mappingOtherToThis = new ThisWeakMap(); - const protoMappings = new ThisMap(); - const protoName = new ThisMap(); - - function thisAddProtoMapping(proto, other, name) { - // Note: proto@this(unsafe) other@other(unsafe) name@this(unsafe) throws@this(unsafe) - thisReflectApply(thisMapSet, protoMappings, [proto, thisIdMapping]); - thisReflectApply(thisMapSet, protoMappings, [other, - (factory, object) => thisProxyOther(factory, object, proto)]); - if (name) thisReflectApply(thisMapSet, protoName, [proto, name]); - } - - function thisAddProtoMappingFactory(protoFactory, other, name) { - // Note: protoFactory@this(unsafe) other@other(unsafe) name@this(unsafe) throws@this(unsafe) - let proto; - thisReflectApply(thisMapSet, protoMappings, [other, - (factory, object) => { - if (!proto) { - proto = protoFactory(); - thisReflectApply(thisMapSet, protoMappings, [proto, thisIdMapping]); - if (name) thisReflectApply(thisMapSet, protoName, [proto, name]); - } - return thisProxyOther(factory, object, proto); - }]); - } - - const result = { - __proto__: null, - globalPrototypes: thisGlobalPrototypes, - safeGetOwnPropertyDescriptor: thisSafeGetOwnPropertyDescriptor, - fromArguments: thisFromOtherArguments, - from: thisFromOther, - fromWithFactory: thisFromOtherWithFactory, - ensureThis: thisEnsureThis, - mapping: mappingOtherToThis, - connect: thisConnect, - reflectSet: thisReflectSet, - reflectGet: thisReflectGet, - reflectDefineProperty: thisReflectDefineProperty, - reflectDeleteProperty: thisReflectDeleteProperty, - reflectApply: thisReflectApply, - reflectConstruct: thisReflectConstruct, - reflectHas: thisReflectHas, - reflectOwnKeys: thisReflectOwnKeys, - reflectEnumerate: thisReflectEnumerate, - reflectGetPrototypeOf: thisReflectGetPrototypeOf, - reflectIsExtensible: thisReflectIsExtensible, - reflectPreventExtensions: thisReflectPreventExtensions, - objectHasOwnProperty: thisObjectHasOwnProperty, - weakMapSet: thisWeakMapSet, - addProtoMapping: thisAddProtoMapping, - addProtoMappingFactory: thisAddProtoMappingFactory, - defaultFactory, - protectedFactory, - readonlyFactory, - VMError - }; - - const isHost = typeof otherInit !== 'object'; - - if (isHost) { - otherInit = otherInit(result, registerProxy); - } - - result.other = otherInit; - - const { - globalPrototypes: otherGlobalPrototypes, - safeGetOwnPropertyDescriptor: otherSafeGetOwnPropertyDescriptor, - fromArguments: otherFromThisArguments, - from: otherFromThis, - mapping: mappingThisToOther, - reflectSet: otherReflectSet, - reflectGet: otherReflectGet, - reflectDefineProperty: otherReflectDefineProperty, - reflectDeleteProperty: otherReflectDeleteProperty, - reflectApply: otherReflectApply, - reflectConstruct: otherReflectConstruct, - reflectHas: otherReflectHas, - reflectOwnKeys: otherReflectOwnKeys, - reflectEnumerate: otherReflectEnumerate, - reflectGetPrototypeOf: otherReflectGetPrototypeOf, - reflectIsExtensible: otherReflectIsExtensible, - reflectPreventExtensions: otherReflectPreventExtensions, - objectHasOwnProperty: otherObjectHasOwnProperty, - weakMapSet: otherWeakMapSet - } = otherInit; - - function thisOtherHasOwnProperty(object, key) { - // Note: object@other(safe) key@prim throws@this(unsafe) - try { - return otherReflectApply(otherObjectHasOwnProperty, object, [key]) === true; - } catch (e) { // @other(unsafe) - throw thisFromOther(e); - } - } - - function thisDefaultGet(handler, object, key, desc) { - // Note: object@other(unsafe) key@prim desc@other(safe) - let ret; // @other(unsafe) - if (desc.get || desc.set) { - const getter = desc.get; - if (!getter) return undefined; - try { - ret = otherReflectApply(getter, object, [key]); - } catch (e) { - throw thisFromOther(e); - } - } else { - ret = desc.value; - } - return handler.fromOtherWithContext(ret); - } - - function otherFromThisIfAvailable(to, from, key) { - // Note: to@other(safe) from@this(safe) key@prim throws@this(unsafe) - if (!thisReflectApply(thisObjectHasOwnProperty, from, [key])) return false; - try { - to[key] = otherFromThis(from[key]); - } catch (e) { // @other(unsafe) - throw thisFromOther(e); - } - return true; - } - - class BaseHandler extends SafeBase { - - constructor(object) { - // Note: object@other(unsafe) throws@this(unsafe) - super(); - this.object = object; - } - - getFactory() { - return defaultFactory; - } - - fromOtherWithContext(other) { - // Note: other@other(unsafe) throws@this(unsafe) - return thisFromOtherWithFactory(this.getFactory(), other); - } - - doPreventExtensions(target, object, factory) { - // Note: target@this(unsafe) object@other(unsafe) throws@this(unsafe) - let keys; // @other(safe-array-of-prim) - try { - keys = otherReflectOwnKeys(object); - } catch (e) { // @other(unsafe) - throw thisFromOther(e); - } - for (let i = 0; i < keys.length; i++) { - const key = keys[i]; // @prim - let desc; - try { - desc = otherSafeGetOwnPropertyDescriptor(object, key); - } catch (e) { // @other(unsafe) - throw thisFromOther(e); - } - if (!desc) continue; - if (!desc.configurable) { - const current = thisSafeGetOwnPropertyDescriptor(target, key); - if (current && !current.configurable) continue; - if (desc.get || desc.set) { - desc.get = this.fromOtherWithContext(desc.get); - desc.set = this.fromOtherWithContext(desc.set); - } else if (typeof object === 'function' && (key === 'caller' || key === 'callee' || key === 'arguments')) { - desc.value = null; - } else { - desc.value = this.fromOtherWithContext(desc.value); - } - } else { - if (desc.get || desc.set) { - desc = { - __proto__: null, - configurable: true, - enumerable: desc.enumerable, - writable: true, - value: null - }; - } else { - desc.value = null; - } - } - if (!thisReflectDefineProperty(target, key, desc)) throw thisUnexpected(); - } - if (!thisReflectPreventExtensions(target)) throw thisUnexpected(); - } - - get(target, key, receiver) { - // Note: target@this(unsafe) key@prim receiver@this(unsafe) throws@this(unsafe) - const object = this.object; // @other(unsafe) - switch (key) { - case 'constructor': { - const desc = otherSafeGetOwnPropertyDescriptor(object, key); - if (desc) return thisDefaultGet(this, object, key, desc); - const proto = thisReflectGetPrototypeOf(target); - return proto === null ? undefined : proto.constructor; - } - case '__proto__': { - const desc = otherSafeGetOwnPropertyDescriptor(object, key); - if (desc) return thisDefaultGet(this, object, key, desc); - return thisReflectGetPrototypeOf(target); - } - case thisSymbolToStringTag: - if (!thisOtherHasOwnProperty(object, thisSymbolToStringTag)) { - const proto = thisReflectGetPrototypeOf(target); - const name = thisReflectApply(thisMapGet, protoName, [proto]); - if (name) return name; - } - break; - case 'arguments': - case 'caller': - case 'callee': - if (thisOtherHasOwnProperty(object, key)) throw thisThrowCallerCalleeArgumentsAccess(key); - break; - } - let ret; // @other(unsafe) - try { - ret = otherReflectGet(object, key); - } catch (e) { // @other(unsafe) - throw thisFromOther(e); - } - return this.fromOtherWithContext(ret); - } - - set(target, key, value, receiver) { - // Note: target@this(unsafe) key@prim value@this(unsafe) receiver@this(unsafe) throws@this(unsafe) - const object = this.object; // @other(unsafe) - if (key === '__proto__' && !thisOtherHasOwnProperty(object, key)) { - return this.setPrototypeOf(target, value); - } - try { - value = otherFromThis(value); - return otherReflectSet(object, key, value) === true; - } catch (e) { // @other(unsafe) - throw thisFromOther(e); - } - } - - getPrototypeOf(target) { - // Note: target@this(unsafe) - return thisReflectGetPrototypeOf(target); - } - - setPrototypeOf(target, value) { - // Note: target@this(unsafe) throws@this(unsafe) - throw new VMError(OPNA); - } - - apply(target, context, args) { - // Note: target@this(unsafe) context@this(unsafe) args@this(safe-array) throws@this(unsafe) - const object = this.object; // @other(unsafe) - let ret; // @other(unsafe) - try { - context = otherFromThis(context); - args = otherFromThisArguments(args); - ret = otherReflectApply(object, context, args); - } catch (e) { // @other(unsafe) - throw thisFromOther(e); - } - return thisFromOther(ret); - } - - construct(target, args, newTarget) { - // Note: target@this(unsafe) args@this(safe-array) newTarget@this(unsafe) throws@this(unsafe) - const object = this.object; // @other(unsafe) - let ret; // @other(unsafe) - try { - args = otherFromThisArguments(args); - ret = otherReflectConstruct(object, args); - } catch (e) { // @other(unsafe) - throw thisFromOther(e); - } - return thisFromOtherWithFactory(this.getFactory(), ret, thisFromOther(object)); - } - - getOwnPropertyDescriptorDesc(target, prop, desc) { - // Note: target@this(unsafe) prop@prim desc@other{safe} throws@this(unsafe) - const object = this.object; // @other(unsafe) - if (desc && typeof object === 'function' && (prop === 'arguments' || prop === 'caller' || prop === 'callee')) desc.value = null; - return desc; - } - - getOwnPropertyDescriptor(target, prop) { - // Note: target@this(unsafe) prop@prim throws@this(unsafe) - const object = this.object; // @other(unsafe) - let desc; // @other(safe) - try { - desc = otherSafeGetOwnPropertyDescriptor(object, prop); - } catch (e) { // @other(unsafe) - throw thisFromOther(e); - } - - desc = this.getOwnPropertyDescriptorDesc(target, prop, desc); - - if (!desc) return undefined; - - let thisDesc; - if (desc.get || desc.set) { - thisDesc = { - __proto__: null, - get: this.fromOtherWithContext(desc.get), - set: this.fromOtherWithContext(desc.set), - enumerable: desc.enumerable === true, - configurable: desc.configurable === true - }; - } else { - thisDesc = { - __proto__: null, - value: this.fromOtherWithContext(desc.value), - writable: desc.writable === true, - enumerable: desc.enumerable === true, - configurable: desc.configurable === true - }; - } - if (!thisDesc.configurable) { - const oldDesc = thisSafeGetOwnPropertyDescriptor(target, prop); - if (!oldDesc || oldDesc.configurable || oldDesc.writable !== thisDesc.writable) { - if (!thisReflectDefineProperty(target, prop, thisDesc)) throw thisUnexpected(); - } - } - return thisDesc; - } - - definePropertyDesc(target, prop, desc) { - // Note: target@this(unsafe) prop@prim desc@this(safe) throws@this(unsafe) - return desc; - } - - defineProperty(target, prop, desc) { - // Note: target@this(unsafe) prop@prim desc@this(unsafe) throws@this(unsafe) - const object = this.object; // @other(unsafe) - if (!thisReflectSetPrototypeOf(desc, null)) throw thisUnexpected(); - - desc = this.definePropertyDesc(target, prop, desc); - - if (!desc) return false; - - let otherDesc = {__proto__: null}; - let hasFunc = true; - let hasValue = true; - let hasBasic = true; - hasFunc &= otherFromThisIfAvailable(otherDesc, desc, 'get'); - hasFunc &= otherFromThisIfAvailable(otherDesc, desc, 'set'); - hasValue &= otherFromThisIfAvailable(otherDesc, desc, 'value'); - hasValue &= otherFromThisIfAvailable(otherDesc, desc, 'writable'); - hasBasic &= otherFromThisIfAvailable(otherDesc, desc, 'enumerable'); - hasBasic &= otherFromThisIfAvailable(otherDesc, desc, 'configurable'); - - try { - if (!otherReflectDefineProperty(object, prop, otherDesc)) return false; - if (otherDesc.configurable !== true && (!hasBasic || !(hasFunc || hasValue))) { - otherDesc = otherSafeGetOwnPropertyDescriptor(object, prop); - } - } catch (e) { // @other(unsafe) - throw thisFromOther(e); - } - - if (!otherDesc.configurable) { - let thisDesc; - if (otherDesc.get || otherDesc.set) { - thisDesc = { - __proto__: null, - get: this.fromOtherWithContext(otherDesc.get), - set: this.fromOtherWithContext(otherDesc.set), - enumerable: otherDesc.enumerable, - configurable: otherDesc.configurable - }; - } else { - thisDesc = { - __proto__: null, - value: this.fromOtherWithContext(otherDesc.value), - writable: otherDesc.writable, - enumerable: otherDesc.enumerable, - configurable: otherDesc.configurable - }; - } - if (!thisReflectDefineProperty(target, prop, thisDesc)) throw thisUnexpected(); - } - return true; - } - - deleteProperty(target, prop) { - // Note: target@this(unsafe) prop@prim throws@this(unsafe) - const object = this.object; // @other(unsafe) - try { - return otherReflectDeleteProperty(object, prop) === true; - } catch (e) { // @other(unsafe) - throw thisFromOther(e); - } - } - - has(target, key) { - // Note: target@this(unsafe) key@prim throws@this(unsafe) - const object = this.object; // @other(unsafe) - try { - return otherReflectHas(object, key) === true; - } catch (e) { // @other(unsafe) - throw thisFromOther(e); - } - } - - isExtensible(target) { - // Note: target@this(unsafe) throws@this(unsafe) - const object = this.object; // @other(unsafe) - try { - if (otherReflectIsExtensible(object)) return true; - } catch (e) { // @other(unsafe) - throw thisFromOther(e); - } - if (thisReflectIsExtensible(target)) { - this.doPreventExtensions(target, object, this); - } - return false; - } - - ownKeys(target) { - // Note: target@this(unsafe) throws@this(unsafe) - const object = this.object; // @other(unsafe) - let res; // @other(unsafe) - try { - res = otherReflectOwnKeys(object); - } catch (e) { // @other(unsafe) - throw thisFromOther(e); - } - return thisFromOther(res); - } - - preventExtensions(target) { - // Note: target@this(unsafe) throws@this(unsafe) - const object = this.object; // @other(unsafe) - try { - if (!otherReflectPreventExtensions(object)) return false; - } catch (e) { // @other(unsafe) - throw thisFromOther(e); - } - if (thisReflectIsExtensible(target)) { - this.doPreventExtensions(target, object, this); - } - return true; - } - - enumerate(target) { - // Note: target@this(unsafe) throws@this(unsafe) - const object = this.object; // @other(unsafe) - let res; // @other(unsafe) - try { - res = otherReflectEnumerate(object); - } catch (e) { // @other(unsafe) - throw thisFromOther(e); - } - return this.fromOtherWithContext(res); - } - - } - - function defaultFactory(object) { - // Note: other@other(unsafe) returns@this(unsafe) throws@this(unsafe) - return new BaseHandler(object); - } - - class ProtectedHandler extends BaseHandler { - - getFactory() { - return protectedFactory; - } - - set(target, key, value, receiver) { - // Note: target@this(unsafe) key@prim value@this(unsafe) receiver@this(unsafe) throws@this(unsafe) - if (typeof value === 'function') { - return thisReflectDefineProperty(receiver, key, { - __proto__: null, - value: value, - writable: true, - enumerable: true, - configurable: true - }) === true; - } - return super.set(target, key, value, receiver); - } - - definePropertyDesc(target, prop, desc) { - // Note: target@this(unsafe) prop@prim desc@this(safe) throws@this(unsafe) - if (desc && (desc.set || desc.get || typeof desc.value === 'function')) return undefined; - return desc; - } - - } - - function protectedFactory(object) { - // Note: other@other(unsafe) returns@this(unsafe) throws@this(unsafe) - return new ProtectedHandler(object); - } - - class ReadOnlyHandler extends BaseHandler { - - getFactory() { - return readonlyFactory; - } - - set(target, key, value, receiver) { - // Note: target@this(unsafe) key@prim value@this(unsafe) receiver@this(unsafe) throws@this(unsafe) - return thisReflectDefineProperty(receiver, key, { - __proto__: null, - value: value, - writable: true, - enumerable: true, - configurable: true - }); - } - - setPrototypeOf(target, value) { - // Note: target@this(unsafe) throws@this(unsafe) - return false; - } - - defineProperty(target, prop, desc) { - // Note: target@this(unsafe) prop@prim desc@this(unsafe) throws@this(unsafe) - return false; - } - - deleteProperty(target, prop) { - // Note: target@this(unsafe) prop@prim throws@this(unsafe) - return false; - } - - isExtensible(target) { - // Note: target@this(unsafe) throws@this(unsafe) - return false; - } - - preventExtensions(target) { - // Note: target@this(unsafe) throws@this(unsafe) - return false; - } - - } - - function readonlyFactory(object) { - // Note: other@other(unsafe) returns@this(unsafe) throws@this(unsafe) - return new ReadOnlyHandler(object); - } - - class ReadOnlyMockHandler extends ReadOnlyHandler { - - constructor(object, mock) { - // Note: object@other(unsafe) mock:this(unsafe) throws@this(unsafe) - super(object); - this.mock = mock; - } - - get(target, key, receiver) { - // Note: target@this(unsafe) key@prim receiver@this(unsafe) throws@this(unsafe) - const object = this.object; // @other(unsafe) - const mock = this.mock; - if (thisReflectApply(thisObjectHasOwnProperty, mock, key) && !thisOtherHasOwnProperty(object, key)) { - return mock[key]; - } - return super.get(target, key, receiver); - } - - } - - function thisFromOther(other) { - // Note: other@other(unsafe) returns@this(unsafe) throws@this(unsafe) - return thisFromOtherWithFactory(defaultFactory, other); - } - - function thisProxyOther(factory, other, proto) { - const target = thisCreateTargetObject(other, proto); - const handler = factory(other); - const proxy = new ThisProxy(target, handler); - try { - otherReflectApply(otherWeakMapSet, mappingThisToOther, [proxy, other]); - registerProxy(proxy, handler); - } catch (e) { - throw new VMError('Unexpected error'); - } - if (!isHost) { - thisReflectApply(thisWeakMapSet, mappingOtherToThis, [other, proxy]); - return proxy; - } - const proxy2 = new ThisProxy(proxy, emptyForzenObject); - try { - otherReflectApply(otherWeakMapSet, mappingThisToOther, [proxy2, other]); - registerProxy(proxy2, handler); - } catch (e) { - throw new VMError('Unexpected error'); - } - thisReflectApply(thisWeakMapSet, mappingOtherToThis, [other, proxy2]); - return proxy2; - } - - function thisEnsureThis(other) { - const type = typeof other; - switch (type) { - case 'object': - case 'function': - if (other === null) { - return null; - } else { - let proto = thisReflectGetPrototypeOf(other); - if (!proto) { - return other; - } - while (proto) { - const mapping = thisReflectApply(thisMapGet, protoMappings, [proto]); - if (mapping) { - const mapped = thisReflectApply(thisWeakMapGet, mappingOtherToThis, [other]); - if (mapped) return mapped; - return mapping(defaultFactory, other); - } - proto = thisReflectGetPrototypeOf(proto); - } - return other; - } - - case 'undefined': - case 'string': - case 'number': - case 'boolean': - case 'symbol': - case 'bigint': - return other; - - default: // new, unknown types can be dangerous - throw new VMError(`Unknown type '${type}'`); - } - } - - function thisFromOtherWithFactory(factory, other, proto) { - for (let loop = 0; loop < 10; loop++) { - const type = typeof other; - switch (type) { - case 'object': - case 'function': - if (other === null) { - return null; - } else { - const mapped = thisReflectApply(thisWeakMapGet, mappingOtherToThis, [other]); - if (mapped) return mapped; - if (proto) { - return thisProxyOther(factory, other, proto); - } - try { - proto = otherReflectGetPrototypeOf(other); - } catch (e) { // @other(unsafe) - other = e; - break; - } - if (!proto) { - return thisProxyOther(factory, other, null); - } - while (proto) { - const mapping = thisReflectApply(thisMapGet, protoMappings, [proto]); - if (mapping) return mapping(factory, other); - try { - proto = otherReflectGetPrototypeOf(proto); - } catch (e) { // @other(unsafe) - other = e; - break; - } - } - return thisProxyOther(factory, other, thisObjectPrototype); - } - - case 'undefined': - case 'string': - case 'number': - case 'boolean': - case 'symbol': - case 'bigint': - return other; - - default: // new, unknown types can be dangerous - throw new VMError(`Unknown type '${type}'`); - } - factory = defaultFactory; - proto = undefined; - } - throw new VMError('Exception recursion depth'); - } - - function thisFromOtherArguments(args) { - // Note: args@other(safe-array) returns@this(safe-array) throws@this(unsafe) - const arr = []; - for (let i = 0; i < args.length; i++) { - const value = thisFromOther(args[i]); - thisReflectDefineProperty(arr, i, { - __proto__: null, - value: value, - writable: true, - enumerable: true, - configurable: true - }); - } - return arr; - } - - function thisConnect(obj, other) { - // Note: obj@this(unsafe) other@other(unsafe) throws@this(unsafe) - try { - otherReflectApply(otherWeakMapSet, mappingThisToOther, [obj, other]); - } catch (e) { - throw new VMError('Unexpected error'); - } - thisReflectApply(thisWeakMapSet, mappingOtherToThis, [other, obj]); - } - - thisAddProtoMapping(thisGlobalPrototypes.Object, otherGlobalPrototypes.Object); - thisAddProtoMapping(thisGlobalPrototypes.Array, otherGlobalPrototypes.Array); - - for (let i = 0; i < globalsList.length; i++) { - const key = globalsList[i]; - const tp = thisGlobalPrototypes[key]; - const op = otherGlobalPrototypes[key]; - if (tp && op) thisAddProtoMapping(tp, op, key); - } - - for (let i = 0; i < errorsList.length; i++) { - const key = errorsList[i]; - const tp = thisGlobalPrototypes[key]; - const op = otherGlobalPrototypes[key]; - if (tp && op) thisAddProtoMapping(tp, op, 'Error'); - } - - thisAddProtoMapping(thisGlobalPrototypes.VMError, otherGlobalPrototypes.VMError, 'Error'); - - result.BaseHandler = BaseHandler; - result.ProtectedHandler = ProtectedHandler; - result.ReadOnlyHandler = ReadOnlyHandler; - result.ReadOnlyMockHandler = ReadOnlyMockHandler; - - return result; -} - -exports.createBridge = createBridge; -exports.VMError = VMError; - - -/***/ }), - -/***/ 56400: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -const { - VMError -} = __nccwpck_require__(82989); - -let cacheCoffeeScriptCompiler; - -/** - * Returns the cached coffee script compiler or loads it - * if it is not found in the cache. - * - * @private - * @return {compileCallback} The coffee script compiler. - * @throws {VMError} If the coffee-script module can't be found. - */ -function getCoffeeScriptCompiler() { - if (!cacheCoffeeScriptCompiler) { - try { - // The warning generated by webpack can be disabled by setting: - // ignoreWarnings[].message = /Can't resolve 'coffee-script'/ - /* eslint-disable-next-line global-require */ - const coffeeScript = __nccwpck_require__(8188); - cacheCoffeeScriptCompiler = (code, filename) => { - return coffeeScript.compile(code, {header: false, bare: true}); - }; - } catch (e) { - throw new VMError('Coffee-Script compiler is not installed.'); - } - } - return cacheCoffeeScriptCompiler; -} - -/** - * Remove the shebang from source code. - * - * @private - * @param {string} code - Code from which to remove the shebang. - * @return {string} code without the shebang. - */ -function removeShebang(code) { - if (!code.startsWith('#!')) return code; - return '//' + code.substring(2); -} - - -/** - * The JavaScript compiler, just a identity function. - * - * @private - * @type {compileCallback} - * @param {string} code - The JavaScript code. - * @param {string} filename - Filename of this script. - * @return {string} The code. - */ -function jsCompiler(code, filename) { - return removeShebang(code); -} - -/** - * Look up the compiler for a specific name. - * - * @private - * @param {(string|compileCallback)} compiler - A compile callback or the name of the compiler. - * @return {compileCallback} The resolved compiler. - * @throws {VMError} If the compiler is unknown or the coffee script module was needed and couldn't be found. - */ -function lookupCompiler(compiler) { - if ('function' === typeof compiler) return compiler; - switch (compiler) { - case 'coffeescript': - case 'coffee-script': - case 'cs': - case 'text/coffeescript': - return getCoffeeScriptCompiler(); - case 'javascript': - case 'java-script': - case 'js': - case 'text/javascript': - return jsCompiler; - default: - throw new VMError(`Unsupported compiler '${compiler}'.`); - } -} - -exports.removeShebang = removeShebang; -exports.lookupCompiler = lookupCompiler; - - -/***/ }), - -/***/ 74357: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -const { - VMError -} = __nccwpck_require__(82989); -const { - VMScript -} = __nccwpck_require__(98611); -const { - VM -} = __nccwpck_require__(93841); -const { - NodeVM -} = __nccwpck_require__(76461); - -exports.VMError = VMError; -exports.VMScript = VMScript; -exports.NodeVM = NodeVM; -exports.VM = VM; - - -/***/ }), - -/***/ 76461: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -/** - * This callback will be called to resolve a module if it couldn't be found. - * - * @callback resolveCallback - * @param {string} moduleName - Name of the module used to resolve. - * @param {string} dirname - Name of the current directory. - * @return {(string|undefined)} The file or directory to use to load the requested module. - */ - -/** - * This callback will be called to require a module instead of node's require. - * - * @callback customRequire - * @param {string} moduleName - Name of the module requested. - * @return {*} The required module object. - */ - -const fs = __nccwpck_require__(35747); -const pa = __nccwpck_require__(85622); -const { - Script -} = __nccwpck_require__(92184); -const { - VMError -} = __nccwpck_require__(82989); -const { - VMScript, - MODULE_PREFIX, - STRICT_MODULE_PREFIX, - MODULE_SUFFIX -} = __nccwpck_require__(98611); -const { - transformer -} = __nccwpck_require__(33342); -const { - VM -} = __nccwpck_require__(93841); -const { - resolverFromOptions -} = __nccwpck_require__(81909); - -const objectDefineProperty = Object.defineProperty; -const objectDefineProperties = Object.defineProperties; - -/** - * Host objects - * - * @private - */ -const HOST = Object.freeze({ - __proto__: null, - version: parseInt(process.versions.node.split('.')[0]), - process, - console, - setTimeout, - setInterval, - setImmediate, - clearTimeout, - clearInterval, - clearImmediate -}); - -/** - * Compile a script. - * - * @private - * @param {string} filename - Filename of the script. - * @param {string} script - Script. - * @return {vm.Script} The compiled script. - */ -function compileScript(filename, script) { - return new Script(script, { - __proto__: null, - filename, - displayErrors: false - }); -} - -let cacheSandboxScript = null; -let cacheMakeNestingScript = null; - -const NESTING_OVERRIDE = Object.freeze({ - __proto__: null, - vm2: vm2NestingLoader -}); - -/** - * Event caused by a console.debug call if options.console="redirect" is specified. - * - * @public - * @event NodeVM."console.debug" - * @type {...*} - */ - -/** - * Event caused by a console.log call if options.console="redirect" is specified. - * - * @public - * @event NodeVM."console.log" - * @type {...*} - */ - -/** - * Event caused by a console.info call if options.console="redirect" is specified. - * - * @public - * @event NodeVM."console.info" - * @type {...*} - */ - -/** - * Event caused by a console.warn call if options.console="redirect" is specified. - * - * @public - * @event NodeVM."console.warn" - * @type {...*} - */ - -/** - * Event caused by a console.error call if options.console="redirect" is specified. - * - * @public - * @event NodeVM."console.error" - * @type {...*} - */ - -/** - * Event caused by a console.dir call if options.console="redirect" is specified. - * - * @public - * @event NodeVM."console.dir" - * @type {...*} - */ - -/** - * Event caused by a console.trace call if options.console="redirect" is specified. - * - * @public - * @event NodeVM."console.trace" - * @type {...*} - */ - -/** - * Class NodeVM. - * - * @public - * @extends {VM} - * @extends {EventEmitter} - */ -class NodeVM extends VM { - - /** - * Create a new NodeVM instance.
- * - * Unlike VM, NodeVM lets you use require same way like in regular node.
- * - * However, it does not use the timeout. - * - * @public - * @param {Object} [options] - VM options. - * @param {Object} [options.sandbox] - Objects that will be copied into the global object of the sandbox. - * @param {(string|compileCallback)} [options.compiler="javascript"] - The compiler to use. - * @param {boolean} [options.eval=true] - Allow the dynamic evaluation of code via eval(code) or Function(code)().
- * Only available for node v10+. - * @param {boolean} [options.wasm=true] - Allow to run wasm code.
- * Only available for node v10+. - * @param {("inherit"|"redirect"|"off")} [options.console="inherit"] - Sets the behavior of the console in the sandbox. - * inherit to enable console, redirect to redirect to events, off to disable console. - * @param {Object|boolean} [options.require=false] - Allow require inside the sandbox. - * @param {(boolean|string[]|Object)} [options.require.external=false] - WARNING: When allowing require the option options.require.root - * should be set to restrict the script from requiring any module. Values can be true, an array of allowed external modules or an object. - * @param {(string[])} [options.require.external.modules] - Array of allowed external modules. Also supports wildcards, so specifying ['@scope/*-ver-??], - * for instance, will allow using all modules having a name of the form @scope/something-ver-aa, @scope/other-ver-11, etc. - * @param {boolean} [options.require.external.transitive=false] - Boolean which indicates if transitive dependencies of external modules are allowed. - * @param {string[]} [options.require.builtin=[]] - Array of allowed built-in modules, accepts ["*"] for all. - * @param {(string|string[])} [options.require.root] - Restricted path(s) where local modules can be required. If omitted every path is allowed. - * @param {Object} [options.require.mock] - Collection of mock modules (both external or built-in). - * @param {("host"|"sandbox")} [options.require.context="host"] - host to require modules in host and proxy them to sandbox. - * sandbox to load, compile and require modules in sandbox. - * Builtin modules except events always required in host and proxied to sandbox. - * @param {string[]} [options.require.import] - Array of modules to be loaded into NodeVM on start. - * @param {resolveCallback} [options.require.resolve] - An additional lookup function in case a module wasn't - * found in one of the traditional node lookup paths. - * @param {customRequire} [options.require.customRequire=require] - Custom require to require host and built-in modules. - * @param {boolean} [options.nesting=false] - - * WARNING: Allowing this is a security risk as scripts can create a NodeVM which can require any host module. - * Allow nesting of VMs. - * @param {("commonjs"|"none")} [options.wrapper="commonjs"] - commonjs to wrap script into CommonJS wrapper, - * none to retrieve value returned by the script. - * @param {string[]} [options.sourceExtensions=["js"]] - Array of file extensions to treat as source code. - * @param {string[]} [options.argv=[]] - Array of arguments passed to process.argv. - * This object will not be copied and the script can change this object. - * @param {Object} [options.env={}] - Environment map passed to process.env. - * This object will not be copied and the script can change this object. - * @param {boolean} [options.strict=false] - If modules should be loaded in strict mode. - * @throws {VMError} If the compiler is unknown. - */ - constructor(options = {}) { - const { - compiler, - eval: allowEval, - wasm, - console: consoleType = 'inherit', - require: requireOpts = false, - nesting = false, - wrapper = 'commonjs', - sourceExtensions = ['js'], - argv, - env, - strict = false, - sandbox - } = options; - - // Throw this early - if (sandbox && 'object' !== typeof sandbox) { - throw new VMError('Sandbox must be an object.'); - } - - super({__proto__: null, compiler: compiler, eval: allowEval, wasm}); - - // This is only here for backwards compatibility. - objectDefineProperty(this, 'options', {__proto__: null, value: { - console: consoleType, - require: requireOpts, - nesting, - wrapper, - sourceExtensions, - strict - }}); - - const resolver = resolverFromOptions(this, requireOpts, nesting && NESTING_OVERRIDE, this._compiler); - - objectDefineProperty(this, '_resolver', {__proto__: null, value: resolver}); - - if (!cacheSandboxScript) { - cacheSandboxScript = compileScript(__nccwpck_require__.ab + "setup-node-sandbox.js", - `(function (host, data) { ${fs.readFileSync(`${__dirname}/setup-node-sandbox.js`, 'utf8')}\n})`); - } - - const closure = this._runScript(cacheSandboxScript); - - const extensions = { - __proto__: null - }; - - const loadJS = (mod, filename) => resolver.loadJS(this, mod, filename); - - for (let i = 0; i < sourceExtensions.length; i++) { - extensions['.' + sourceExtensions[i]] = loadJS; - } - - if (!extensions['.json']) extensions['.json'] = (mod, filename) => resolver.loadJSON(this, mod, filename); - if (!extensions['.node']) extensions['.node'] = (mod, filename) => resolver.loadNode(this, mod, filename); - - - this.readonly(HOST); - this.readonly(resolver); - this.readonly(this); - - const { - Module, - jsonParse, - createRequireForModule - } = closure(HOST, { - __proto__: null, - argv, - env, - console: consoleType, - vm: this, - resolver, - extensions - }); - - objectDefineProperties(this, { - __proto__: null, - _Module: {__proto__: null, value: Module}, - _jsonParse: {__proto__: null, value: jsonParse}, - _createRequireForModule: {__proto__: null, value: createRequireForModule}, - _cacheRequireModule: {__proto__: null, value: null, writable: true} - }); - - - resolver.init(this, ()=>true); - - // prepare global sandbox - if (sandbox) { - this.setGlobals(sandbox); - } - - if (requireOpts && requireOpts.import) { - if (Array.isArray(requireOpts.import)) { - for (let i = 0, l = requireOpts.import.length; i < l; i++) { - this.require(requireOpts.import[i]); - } - } else { - this.require(requireOpts.import); - } - } - } - - /** - * @ignore - * @deprecated Just call the method yourself like method(args); - * @param {function} method - Function to invoke. - * @param {...*} args - Arguments to pass to the function. - * @return {*} Return value of the function. - * @todo Can we remove this function? It even had a bug that would use args as this parameter. - * @throws {*} Rethrows anything the method throws. - * @throws {VMError} If method is not a function. - * @throws {Error} If method is a class. - */ - call(method, ...args) { - if ('function' === typeof method) { - return method(...args); - } else { - throw new VMError('Unrecognized method type.'); - } - } - - /** - * Require a module in VM and return it's exports. - * - * @public - * @param {string} module - Module name. - * @return {*} Exported module. - * @throws {*} If the module couldn't be found or loading it threw an error. - */ - require(module) { - const path = this._resolver.pathResolve('.'); - let mod = this._cacheRequireModule; - if (!mod || mod.path !== path) { - mod = new (this._Module)(this._resolver.pathConcat(path, '/vm.js'), path); - this._cacheRequireModule = mod; - } - return mod.require(module); - } - - /** - * Run the code in NodeVM. - * - * First time you run this method, code is executed same way like in node's regular `require` - it's executed with - * `module`, `require`, `exports`, `__dirname`, `__filename` variables and expect result in `module.exports'. - * - * @param {(string|VMScript)} code - Code to run. - * @param {(string|Object)} [options] - Options map or filename. - * @param {string} [options.filename="vm.js"] - Filename that shows up in any stack traces produced from this script.
- * This is only used if code is a String. - * @param {boolean} [options.strict] - If modules should be loaded in strict mode. Defaults to NodeVM options. - * @param {("commonjs"|"none")} [options.wrapper] - commonjs to wrap script into CommonJS wrapper, - * none to retrieve value returned by the script. Defaults to NodeVM options. - * @return {*} Result of executed code. - * @throws {SyntaxError} If there is a syntax error in the script. - * @throws {*} If the script execution terminated with an exception it is propagated. - * @fires NodeVM."console.debug" - * @fires NodeVM."console.log" - * @fires NodeVM."console.info" - * @fires NodeVM."console.warn" - * @fires NodeVM."console.error" - * @fires NodeVM."console.dir" - * @fires NodeVM."console.trace" - */ - run(code, options) { - let script; - let filename; - - if (typeof options === 'object') { - filename = options.filename; - } else { - filename = options; - options = {__proto__: null}; - } - - const { - strict = this.options.strict, - wrapper = this.options.wrapper, - module: customModule, - require: customRequire, - dirname: customDirname = null - } = options; - - let sandboxModule = customModule; - let dirname = customDirname; - - if (code instanceof VMScript) { - script = strict ? code._compileNodeVMStrict() : code._compileNodeVM(); - if (!sandboxModule) { - const resolvedFilename = this._resolver.pathResolve(code.filename); - dirname = this._resolver.pathDirname(resolvedFilename); - sandboxModule = new (this._Module)(resolvedFilename, dirname); - this._resolver.registerModule(sandboxModule, resolvedFilename, dirname, null, false); - } - } else { - const unresolvedFilename = filename || 'vm.js'; - if (!sandboxModule) { - if (filename) { - const resolvedFilename = this._resolver.pathResolve(filename); - dirname = this._resolver.pathDirname(resolvedFilename); - sandboxModule = new (this._Module)(resolvedFilename, dirname); - this._resolver.registerModule(sandboxModule, resolvedFilename, dirname, null, false); - } else { - sandboxModule = new (this._Module)(null, null); - sandboxModule.id = unresolvedFilename; - } - } - const prefix = strict ? STRICT_MODULE_PREFIX : MODULE_PREFIX; - let scriptCode = prefix + this._compiler(code, unresolvedFilename) + MODULE_SUFFIX; - scriptCode = transformer(null, scriptCode, false, false).code; - script = new Script(scriptCode, { - __proto__: null, - filename: unresolvedFilename, - displayErrors: false - }); - } - - const closure = this._runScript(script); - - const usedRequire = customRequire || this._createRequireForModule(sandboxModule); - - const ret = Reflect.apply(closure, this.sandbox, [sandboxModule.exports, usedRequire, sandboxModule, filename, dirname]); - return wrapper === 'commonjs' ? sandboxModule.exports : ret; - } - - /** - * Create NodeVM and run code inside it. - * - * @public - * @static - * @param {string} script - Code to execute. - * @param {string} [filename] - File name (used in stack traces only). - * @param {Object} [options] - VM options. - * @param {string} [options.filename] - File name (used in stack traces only). Used if filename is omitted. - * @return {*} Result of executed code. - * @see {@link NodeVM} for the options. - * @throws {SyntaxError} If there is a syntax error in the script. - * @throws {*} If the script execution terminated with an exception it is propagated. - */ - static code(script, filename, options) { - let unresolvedFilename; - if (filename != null) { - if ('object' === typeof filename) { - options = filename; - unresolvedFilename = options.filename; - } else if ('string' === typeof filename) { - unresolvedFilename = filename; - } else { - throw new VMError('Invalid arguments.'); - } - } else if ('object' === typeof options) { - unresolvedFilename = options.filename; - } - - if (arguments.length > 3) { - throw new VMError('Invalid number of arguments.'); - } - - const resolvedFilename = typeof unresolvedFilename === 'string' ? pa.resolve(unresolvedFilename) : undefined; - - return new NodeVM(options).run(script, resolvedFilename); - } - - /** - * Create NodeVM and run script from file inside it. - * - * @public - * @static - * @param {string} filename - Filename of file to load and execute in a NodeVM. - * @param {Object} [options] - NodeVM options. - * @return {*} Result of executed code. - * @see {@link NodeVM} for the options. - * @throws {Error} If filename is not a valid filename. - * @throws {SyntaxError} If there is a syntax error in the script. - * @throws {*} If the script execution terminated with an exception it is propagated. - */ - static file(filename, options) { - const resolvedFilename = pa.resolve(filename); - - if (!fs.existsSync(resolvedFilename)) { - throw new VMError(`Script '${filename}' not found.`); - } - - if (fs.statSync(resolvedFilename).isDirectory()) { - throw new VMError('Script must be file, got directory.'); - } - - return new NodeVM(options).run(fs.readFileSync(resolvedFilename, 'utf8'), resolvedFilename); - } -} - -function vm2NestingLoader(resolver, vm, id) { - if (!cacheMakeNestingScript) { - cacheMakeNestingScript = compileScript('nesting.js', '(vm, nodevm) => ({VM: vm, NodeVM: nodevm})'); - } - const makeNesting = vm._runScript(cacheMakeNestingScript); - return makeNesting(vm.readonly(VM), vm.readonly(NodeVM)); -} - -exports.NodeVM = NodeVM; - - -/***/ }), - -/***/ 81909: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -// Translate the old options to the new Resolver functionality. - -const fs = __nccwpck_require__(35747); -const pa = __nccwpck_require__(85622); -const nmod = __nccwpck_require__(32282); -const {EventEmitter} = __nccwpck_require__(28614); -const util = __nccwpck_require__(31669); - -const { - Resolver, - DefaultResolver -} = __nccwpck_require__(18038); -const {VMScript} = __nccwpck_require__(98611); -const {VM} = __nccwpck_require__(93841); -const {VMError} = __nccwpck_require__(82989); - -/** - * Require wrapper to be able to annotate require with webpackIgnore. - * - * @private - * @param {string} moduleName - Name of module to load. - * @return {*} Module exports. - */ -function defaultRequire(moduleName) { - // Set module.parser.javascript.commonjsMagicComments=true in your webpack config. - // eslint-disable-next-line global-require - return require(/* webpackIgnore: true */ moduleName); -} - -// source: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_Expressions#Escaping -function escapeRegExp(string) { - return string.replace(/[.*+\-?^${}()|[\]\\]/g, '\\$&'); // $& means the whole matched string -} - -function makeExternalMatcherRegex(obj) { - return escapeRegExp(obj).replace(/\\\\|\//g, '[\\\\/]') - .replace(/\\\*\\\*/g, '.*').replace(/\\\*/g, '[^\\\\/]*').replace(/\\\?/g, '[^\\\\/]'); -} - -function makeExternalMatcher(obj) { - const regexString = makeExternalMatcherRegex(obj); - return new RegExp(`[\\\\/]node_modules[\\\\/]${regexString}(?:[\\\\/](?!(?:.*[\\\\/])?node_modules[\\\\/]).*)?$`); -} - -class LegacyResolver extends DefaultResolver { - - constructor(builtinModules, checkPath, globalPaths, pathContext, customResolver, hostRequire, compiler, externals, allowTransitive) { - super(builtinModules, checkPath, globalPaths, pathContext, customResolver, hostRequire, compiler); - this.externals = externals; - this.currMod = undefined; - this.trustedMods = new WeakMap(); - this.allowTransitive = allowTransitive; - } - - isPathAllowed(path) { - return this.isPathAllowedForModule(path, this.currMod); - } - - isPathAllowedForModule(path, mod) { - if (!super.isPathAllowed(path)) return false; - if (mod) { - if (mod.allowTransitive) return true; - if (path.startsWith(mod.path)) { - const rem = path.slice(mod.path.length); - if (!/(?:^|[\\\\/])node_modules(?:$|[\\\\/])/.test(rem)) return true; - } - } - return this.externals.some(regex => regex.test(path)); - } - - registerModule(mod, filename, path, parent, direct) { - const trustedParent = this.trustedMods.get(parent); - this.trustedMods.set(mod, { - filename, - path, - paths: this.genLookupPaths(path), - allowTransitive: this.allowTransitive && - ((direct && trustedParent && trustedParent.allowTransitive) || this.externals.some(regex => regex.test(filename))) - }); - } - - resolveFull(mod, x, options, ext, direct) { - this.currMod = undefined; - if (!direct) return super.resolveFull(mod, x, options, ext, false); - const trustedMod = this.trustedMods.get(mod); - if (!trustedMod || mod.path !== trustedMod.path) return super.resolveFull(mod, x, options, ext, false); - const paths = [...mod.paths]; - if (paths.length === trustedMod.length) { - for (let i = 0; i < paths.length; i++) { - if (paths[i] !== trustedMod.paths[i]) { - return super.resolveFull(mod, x, options, ext, false); - } - } - } - const extCopy = Object.assign({__proto__: null}, ext); - try { - this.currMod = trustedMod; - return super.resolveFull(trustedMod, x, undefined, extCopy, true); - } finally { - this.currMod = undefined; - } - } - - checkAccess(mod, filename) { - const trustedMod = this.trustedMods.get(mod); - if ((!trustedMod || trustedMod.filename !== filename) && !this.isPathAllowedForModule(filename, undefined)) { - throw new VMError(`Module '${filename}' is not allowed to be required. The path is outside the border!`, 'EDENIED'); - } - } - - loadJS(vm, mod, filename) { - filename = this.pathResolve(filename); - this.checkAccess(mod, filename); - if (this.pathContext(filename, 'js') === 'sandbox') { - const trustedMod = this.trustedMods.get(mod); - const script = this.readScript(filename); - vm.run(script, {filename, strict: true, module: mod, wrapper: 'none', dirname: trustedMod ? trustedMod.path : mod.path}); - } else { - const m = this.hostRequire(filename); - mod.exports = vm.readonly(m); - } - } - -} - -function defaultBuiltinLoader(resolver, vm, id) { - const mod = resolver.hostRequire(id); - return vm.readonly(mod); -} - -const eventsModules = new WeakMap(); - -function defaultBuiltinLoaderEvents(resolver, vm, id) { - return eventsModules.get(vm); -} - -let cacheBufferScript; - -function defaultBuiltinLoaderBuffer(resolver, vm, id) { - if (!cacheBufferScript) { - cacheBufferScript = new VMScript('return buffer=>({Buffer: buffer});', {__proto__: null, filename: 'buffer.js'}); - } - const makeBuffer = vm.run(cacheBufferScript, {__proto__: null, strict: true, wrapper: 'none'}); - return makeBuffer(Buffer); -} - -let cacheUtilScript; - -function defaultBuiltinLoaderUtil(resolver, vm, id) { - if (!cacheUtilScript) { - cacheUtilScript = new VMScript(`return function inherits(ctor, superCtor) { - ctor.super_ = superCtor; - Object.setPrototypeOf(ctor.prototype, superCtor.prototype); - }`, {__proto__: null, filename: 'util.js'}); - } - const inherits = vm.run(cacheUtilScript, {__proto__: null, strict: true, wrapper: 'none'}); - const copy = Object.assign({}, util); - copy.inherits = inherits; - return vm.readonly(copy); -} - -const BUILTIN_MODULES = (nmod.builtinModules || Object.getOwnPropertyNames(process.binding('natives'))).filter(s=>!s.startsWith('internal/')); - -let EventEmitterReferencingAsyncResourceClass = null; -if (EventEmitter.EventEmitterAsyncResource) { - // eslint-disable-next-line global-require - const {AsyncResource} = __nccwpck_require__(77303); - const kEventEmitter = Symbol('kEventEmitter'); - class EventEmitterReferencingAsyncResource extends AsyncResource { - constructor(ee, type, options) { - super(type, options); - this[kEventEmitter] = ee; - } - get eventEmitter() { - return this[kEventEmitter]; - } - } - EventEmitterReferencingAsyncResourceClass = EventEmitterReferencingAsyncResource; -} - -let cacheEventsScript; - -const SPECIAL_MODULES = { - events(vm) { - if (!cacheEventsScript) { - const eventsSource = fs.readFileSync(__nccwpck_require__.ab + "events.js", 'utf8'); - cacheEventsScript = new VMScript(`(function (fromhost) { const module = {}; module.exports={};{ ${eventsSource} -} return module.exports;})`, {filename: 'events.js'}); - } - const closure = VM.prototype.run.call(vm, cacheEventsScript); - const eventsInstance = closure(vm.readonly({ - kErrorMonitor: EventEmitter.errorMonitor, - once: EventEmitter.once, - on: EventEmitter.on, - getEventListeners: EventEmitter.getEventListeners, - EventEmitterReferencingAsyncResource: EventEmitterReferencingAsyncResourceClass - })); - eventsModules.set(vm, eventsInstance); - vm._addProtoMapping(EventEmitter.prototype, eventsInstance.EventEmitter.prototype); - return defaultBuiltinLoaderEvents; - }, - buffer(vm) { - return defaultBuiltinLoaderBuffer; - }, - util(vm) { - return defaultBuiltinLoaderUtil; - } -}; - -function addDefaultBuiltin(builtins, key, vm) { - if (builtins[key]) return; - const special = SPECIAL_MODULES[key]; - builtins[key] = special ? special(vm) : defaultBuiltinLoader; -} - - -function genBuiltinsFromOptions(vm, builtinOpt, mockOpt, override) { - const builtins = {__proto__: null}; - if (mockOpt) { - const keys = Object.getOwnPropertyNames(mockOpt); - for (let i = 0; i < keys.length; i++) { - const key = keys[i]; - builtins[key] = (resolver, tvm, id) => tvm.readonly(mockOpt[key]); - } - } - if (override) { - const keys = Object.getOwnPropertyNames(override); - for (let i = 0; i < keys.length; i++) { - const key = keys[i]; - builtins[key] = override[key]; - } - } - if (Array.isArray(builtinOpt)) { - const def = builtinOpt.indexOf('*') >= 0; - if (def) { - for (let i = 0; i < BUILTIN_MODULES.length; i++) { - const name = BUILTIN_MODULES[i]; - if (builtinOpt.indexOf(`-${name}`) === -1) { - addDefaultBuiltin(builtins, name, vm); - } - } - } else { - for (let i = 0; i < BUILTIN_MODULES.length; i++) { - const name = BUILTIN_MODULES[i]; - if (builtinOpt.indexOf(name) !== -1) { - addDefaultBuiltin(builtins, name, vm); - } - } - } - } else if (builtinOpt) { - for (let i = 0; i < BUILTIN_MODULES.length; i++) { - const name = BUILTIN_MODULES[i]; - if (builtinOpt[name]) { - addDefaultBuiltin(builtins, name, vm); - } - } - } - return builtins; -} - -function defaultCustomResolver() { - return undefined; -} - -const DENY_RESOLVER = new Resolver({__proto__: null}, [], id => { - throw new VMError(`Access denied to require '${id}'`, 'EDENIED'); -}); - -function resolverFromOptions(vm, options, override, compiler) { - if (!options) { - if (!override) return DENY_RESOLVER; - const builtins = genBuiltinsFromOptions(vm, undefined, undefined, override); - return new Resolver(builtins, [], defaultRequire); - } - - const { - builtin: builtinOpt, - mock: mockOpt, - external: externalOpt, - root: rootPaths, - resolve: customResolver, - customRequire: hostRequire = defaultRequire, - context = 'host' - } = options; - - const builtins = genBuiltinsFromOptions(vm, builtinOpt, mockOpt, override); - - if (!externalOpt) return new Resolver(builtins, [], hostRequire); - - let checkPath; - if (rootPaths) { - const checkedRootPaths = (Array.isArray(rootPaths) ? rootPaths : [rootPaths]).map(f => pa.resolve(f)); - checkPath = (filename) => { - return checkedRootPaths.some(path => { - if (!filename.startsWith(path)) return false; - const len = path.length; - if (filename.length === len) return true; - const sep = filename[len]; - return sep === '/' || sep === pa.sep; - }); - }; - } else { - checkPath = () => true; - } - - let newCustomResolver = defaultCustomResolver; - let externals = undefined; - let external = undefined; - if (customResolver) { - let externalCache; - newCustomResolver = (resolver, x, path, extList) => { - if (external && !(resolver.pathIsAbsolute(x) || resolver.pathIsRelative(x))) { - if (!externalCache) { - externalCache = external.map(ext => new RegExp(makeExternalMatcherRegex(ext))); - } - if (!externalCache.some(regex => regex.test(x))) return undefined; - } - const resolved = customResolver(x, path); - if (!resolved) return undefined; - if (externals) externals.push(new RegExp('^' + escapeRegExp(resolved))); - return resolver.loadAsFileOrDirecotry(resolved, extList); - }; - } - - if (typeof externalOpt !== 'object') { - return new DefaultResolver(builtins, checkPath, [], () => context, newCustomResolver, hostRequire, compiler); - } - - let transitive = false; - if (Array.isArray(externalOpt)) { - external = externalOpt; - } else { - external = externalOpt.modules; - transitive = context === 'sandbox' && externalOpt.transitive; - } - externals = external.map(makeExternalMatcher); - return new LegacyResolver(builtins, checkPath, [], () => context, newCustomResolver, hostRequire, compiler, externals, transitive); -} - -exports.resolverFromOptions = resolverFromOptions; - - -/***/ }), - -/***/ 18038: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -// The Resolver is currently experimental and might be exposed to users in the future. - -const pa = __nccwpck_require__(85622); -const fs = __nccwpck_require__(35747); - -const { - VMError -} = __nccwpck_require__(82989); -const { VMScript } = __nccwpck_require__(98611); - -// This should match. Note that '\', '%' are invalid characters -// 1. name/.* -// 2. @scope/name/.* -const EXPORTS_PATTERN = /^((?:@[^/\\%]+\/)?[^/\\%]+)(\/.*)?$/; - -// See https://tc39.es/ecma262/#integer-index -function isArrayIndex(key) { - const keyNum = +key; - if (`${keyNum}` !== key) return false; - return keyNum >= 0 && keyNum < 0xFFFFFFFF; -} - -class Resolver { - - constructor(builtinModules, globalPaths, hostRequire) { - this.builtinModules = builtinModules; - this.globalPaths = globalPaths; - this.hostRequire = hostRequire; - } - - init(vm) { - - } - - pathResolve(path) { - return pa.resolve(path); - } - - pathIsRelative(path) { - if (path === '' || path[0] !== '.') return false; - if (path.length === 1) return true; - const idx = path[1] === '.' ? 2 : 1; - if (path.length <= idx) return false; - return path[idx] === '/' || path[idx] === pa.sep; - } - - pathIsAbsolute(path) { - return pa.isAbsolute(path); - } - - pathConcat(...paths) { - return pa.join(...paths); - } - - pathBasename(path) { - return pa.basename(path); - } - - pathDirname(path) { - return pa.dirname(path); - } - - lookupPaths(mod, id) { - if (typeof id === 'string') throw new Error('Id is not a string'); - if (this.pathIsRelative(id)) return [mod.path || '.']; - return [...mod.paths, ...this.globalPaths]; - } - - getBuiltinModulesList() { - return Object.getOwnPropertyNames(this.builtinModules); - } - - loadBuiltinModule(vm, id) { - const handler = this.builtinModules[id]; - return handler && handler(this, vm, id); - } - - loadJS(vm, mod, filename) { - throw new VMError(`Access denied to require '${filename}'`, 'EDENIED'); - } - - loadJSON(vm, mod, filename) { - throw new VMError(`Access denied to require '${filename}'`, 'EDENIED'); - } - - loadNode(vm, mod, filename) { - throw new VMError(`Access denied to require '${filename}'`, 'EDENIED'); - } - - registerModule(mod, filename, path, parent, direct) { - - } - - resolve(mod, x, options, ext, direct) { - if (typeof x !== 'string') throw new Error('Id is not a string'); - - if (x.startsWith('node:') || this.builtinModules[x]) { - // a. return the core module - // b. STOP - return x; - } - - return this.resolveFull(mod, x, options, ext, direct); - } - - resolveFull(mod, x, options, ext, direct) { - // 7. THROW "not found" - throw new VMError(`Cannot find module '${x}'`, 'ENOTFOUND'); - } - - // NODE_MODULES_PATHS(START) - genLookupPaths(path) { - // 1. let PARTS = path split(START) - // 2. let I = count of PARTS - 1 - // 3. let DIRS = [] - const dirs = []; - // 4. while I >= 0, - while (true) { - const name = this.pathBasename(path); - // a. if PARTS[I] = "node_modules" CONTINUE - if (name !== 'node_modules') { - // b. DIR = path join(PARTS[0 .. I] + "node_modules") - // c. DIRS = DIR + DIRS // Note: this seems wrong. Should be DIRS + DIR - dirs.push(this.pathConcat(path, 'node_modules')); - } - const dir = this.pathDirname(path); - if (dir == path) break; - // d. let I = I - 1 - path = dir; - } - - return dirs; - // This is done later on - // 5. return DIRS + GLOBAL_FOLDERS - } - -} - -class DefaultResolver extends Resolver { - - constructor(builtinModules, checkPath, globalPaths, pathContext, customResolver, hostRequire, compiler) { - super(builtinModules, globalPaths, hostRequire); - this.checkPath = checkPath; - this.pathContext = pathContext; - this.customResolver = customResolver; - this.compiler = compiler; - this.packageCache = {__proto__: null}; - this.scriptCache = {__proto__: null}; - } - - isPathAllowed(path) { - return this.checkPath(path); - } - - pathTestIsDirectory(path) { - try { - const stat = fs.statSync(path, {__proto__: null, throwIfNoEntry: false}); - return stat && stat.isDirectory(); - } catch (e) { - return false; - } - } - - pathTestIsFile(path) { - try { - const stat = fs.statSync(path, {__proto__: null, throwIfNoEntry: false}); - return stat && stat.isFile(); - } catch (e) { - return false; - } - } - - readFile(path) { - return fs.readFileSync(path, {encoding: 'utf8'}); - } - - readFileWhenExists(path) { - return this.pathTestIsFile(path) ? this.readFile(path) : undefined; - } - - readScript(filename) { - let script = this.scriptCache[filename]; - if (!script) { - script = new VMScript(this.readFile(filename), {filename, compiler: this.compiler}); - this.scriptCache[filename] = script; - } - return script; - } - - checkAccess(mod, filename) { - if (!this.isPathAllowed(filename)) { - throw new VMError(`Module '${filename}' is not allowed to be required. The path is outside the border!`, 'EDENIED'); - } - } - - loadJS(vm, mod, filename) { - filename = this.pathResolve(filename); - this.checkAccess(mod, filename); - if (this.pathContext(filename, 'js') === 'sandbox') { - const script = this.readScript(filename); - vm.run(script, {filename, strict: true, module: mod, wrapper: 'none', dirname: mod.path}); - } else { - const m = this.hostRequire(filename); - mod.exports = vm.readonly(m); - } - } - - loadJSON(vm, mod, filename) { - filename = this.pathResolve(filename); - this.checkAccess(mod, filename); - const json = this.readFile(filename); - mod.exports = vm._jsonParse(json); - } - - loadNode(vm, mod, filename) { - filename = this.pathResolve(filename); - this.checkAccess(mod, filename); - if (this.pathContext(filename, 'node') === 'sandbox') throw new VMError('Native modules can be required only with context set to \'host\'.'); - const m = this.hostRequire(filename); - mod.exports = vm.readonly(m); - } - - // require(X) from module at path Y - resolveFull(mod, x, options, ext, direct) { - // Note: core module handled by caller - - const extList = Object.getOwnPropertyNames(ext); - const path = mod.path || '.'; - - // 5. LOAD_PACKAGE_SELF(X, dirname(Y)) - let f = this.loadPackageSelf(x, path, extList); - if (f) return f; - - // 4. If X begins with '#' - if (x[0] === '#') { - // a. LOAD_PACKAGE_IMPORTS(X, dirname(Y)) - f = this.loadPackageImports(x, path, extList); - if (f) return f; - } - - // 2. If X begins with '/' - if (this.pathIsAbsolute(x)) { - // a. set Y to be the filesystem root - f = this.loadAsFileOrDirecotry(x, extList); - if (f) return f; - - // c. THROW "not found" - throw new VMError(`Cannot find module '${x}'`, 'ENOTFOUND'); - - // 3. If X begins with './' or '/' or '../' - } else if (this.pathIsRelative(x)) { - if (typeof options === 'object' && options !== null) { - const paths = options.paths; - if (Array.isArray(paths)) { - for (let i = 0; i < paths.length; i++) { - // a. LOAD_AS_FILE(Y + X) - // b. LOAD_AS_DIRECTORY(Y + X) - f = this.loadAsFileOrDirecotry(this.pathConcat(paths[i], x), extList); - if (f) return f; - } - } else if (paths === undefined) { - // a. LOAD_AS_FILE(Y + X) - // b. LOAD_AS_DIRECTORY(Y + X) - f = this.loadAsFileOrDirecotry(this.pathConcat(path, x), extList); - if (f) return f; - } else { - throw new VMError('Invalid options.paths option.'); - } - } else { - // a. LOAD_AS_FILE(Y + X) - // b. LOAD_AS_DIRECTORY(Y + X) - f = this.loadAsFileOrDirecotry(this.pathConcat(path, x), extList); - if (f) return f; - } - - // c. THROW "not found" - throw new VMError(`Cannot find module '${x}'`, 'ENOTFOUND'); - } - - let dirs; - if (typeof options === 'object' && options !== null) { - const paths = options.paths; - if (Array.isArray(paths)) { - dirs = []; - - for (let i = 0; i < paths.length; i++) { - const lookups = this.genLookupPaths(paths[i]); - for (let j = 0; j < lookups.length; j++) { - if (!dirs.includes(lookups[j])) dirs.push(lookups[j]); - } - if (i === 0) { - const globalPaths = this.globalPaths; - for (let j = 0; j < globalPaths.length; j++) { - if (!dirs.includes(globalPaths[j])) dirs.push(globalPaths[j]); - } - } - } - } else if (paths === undefined) { - dirs = [...mod.paths, ...this.globalPaths]; - } else { - throw new VMError('Invalid options.paths option.'); - } - } else { - dirs = [...mod.paths, ...this.globalPaths]; - } - - // 6. LOAD_NODE_MODULES(X, dirname(Y)) - f = this.loadNodeModules(x, dirs, extList); - if (f) return f; - - f = this.customResolver(this, x, path, extList); - if (f) return f; - - return super.resolveFull(mod, x, options, ext, direct); - } - - loadAsFileOrDirecotry(x, extList) { - // a. LOAD_AS_FILE(X) - const f = this.loadAsFile(x, extList); - if (f) return f; - // b. LOAD_AS_DIRECTORY(X) - return this.loadAsDirectory(x, extList); - } - - tryFile(x) { - x = this.pathResolve(x); - return this.isPathAllowed(x) && this.pathTestIsFile(x) ? x : undefined; - } - - tryWithExtension(x, extList) { - for (let i = 0; i < extList.length; i++) { - const ext = extList[i]; - if (ext !== this.pathBasename(ext)) continue; - const f = this.tryFile(x + ext); - if (f) return f; - } - return undefined; - } - - readPackage(path) { - const packagePath = this.pathResolve(this.pathConcat(path, 'package.json')); - - const cache = this.packageCache[packagePath]; - if (cache !== undefined) return cache; - - if (!this.isPathAllowed(packagePath)) return undefined; - const content = this.readFileWhenExists(packagePath); - if (!content) { - this.packageCache[packagePath] = false; - return false; - } - - let parsed; - try { - parsed = JSON.parse(content); - } catch (e) { - e.path = packagePath; - e.message = 'Error parsing ' + packagePath + ': ' + e.message; - throw e; - } - - const filtered = { - name: parsed.name, - main: parsed.main, - exports: parsed.exports, - imports: parsed.imports, - type: parsed.type - }; - this.packageCache[packagePath] = filtered; - return filtered; - } - - readPackageScope(path) { - while (true) { - const dir = this.pathDirname(path); - if (dir === path) break; - const basename = this.pathBasename(dir); - if (basename === 'node_modules') break; - const pack = this.readPackage(dir); - if (pack) return {data: pack, scope: dir}; - path = dir; - } - return {data: undefined, scope: undefined}; - } - - // LOAD_AS_FILE(X) - loadAsFile(x, extList) { - // 1. If X is a file, load X as its file extension format. STOP - const f = this.tryFile(x); - if (f) return f; - // 2. If X.js is a file, load X.js as JavaScript text. STOP - // 3. If X.json is a file, parse X.json to a JavaScript Object. STOP - // 4. If X.node is a file, load X.node as binary addon. STOP - return this.tryWithExtension(x, extList); - } - - // LOAD_INDEX(X) - loadIndex(x, extList) { - // 1. If X/index.js is a file, load X/index.js as JavaScript text. STOP - // 2. If X/index.json is a file, parse X/index.json to a JavaScript object. STOP - // 3. If X/index.node is a file, load X/index.node as binary addon. STOP - return this.tryWithExtension(this.pathConcat(x, 'index'), extList); - } - - // LOAD_AS_DIRECTORY(X) - loadAsPackage(x, pack, extList) { - // 1. If X/package.json is a file, - // already done. - if (pack) { - // a. Parse X/package.json, and look for "main" field. - // b. If "main" is a falsy value, GOTO 2. - if (typeof pack.main === 'string') { - // c. let M = X + (json main field) - const m = this.pathConcat(x, pack.main); - // d. LOAD_AS_FILE(M) - let f = this.loadAsFile(m, extList); - if (f) return f; - // e. LOAD_INDEX(M) - f = this.loadIndex(m, extList); - if (f) return f; - // f. LOAD_INDEX(X) DEPRECATED - f = this.loadIndex(x, extList); - if (f) return f; - // g. THROW "not found" - throw new VMError(`Cannot find module '${x}'`, 'ENOTFOUND'); - } - } - - // 2. LOAD_INDEX(X) - return this.loadIndex(x, extList); - } - - // LOAD_AS_DIRECTORY(X) - loadAsDirectory(x, extList) { - // 1. If X/package.json is a file, - const pack = this.readPackage(x); - return this.loadAsPackage(x, pack, extList); - } - - // LOAD_NODE_MODULES(X, START) - loadNodeModules(x, dirs, extList) { - // 1. let DIRS = NODE_MODULES_PATHS(START) - // This step is already done. - - // 2. for each DIR in DIRS: - for (let i = 0; i < dirs.length; i++) { - const dir = dirs[i]; - // a. LOAD_PACKAGE_EXPORTS(X, DIR) - let f = this.loadPackageExports(x, dir, extList); - if (f) return f; - // b. LOAD_AS_FILE(DIR/X) - f = this.loadAsFile(dir + '/' + x, extList); - if (f) return f; - // c. LOAD_AS_DIRECTORY(DIR/X) - f = this.loadAsDirectory(dir + '/' + x, extList); - if (f) return f; - } - - return undefined; - } - - // LOAD_PACKAGE_IMPORTS(X, DIR) - loadPackageImports(x, dir, extList) { - // 1. Find the closest package scope SCOPE to DIR. - const {data, scope} = this.readPackageScope(dir); - // 2. If no scope was found, return. - if (!data) return undefined; - // 3. If the SCOPE/package.json "imports" is null or undefined, return. - if (typeof data.imports !== 'object' || data.imports === null || Array.isArray(data.imports)) return undefined; - // 4. let MATCH = PACKAGE_IMPORTS_RESOLVE(X, pathToFileURL(SCOPE), - // ["node", "require"]) defined in the ESM resolver. - - // PACKAGE_IMPORTS_RESOLVE(specifier, parentURL, conditions) - // 1. Assert: specifier begins with "#". - // 2. If specifier is exactly equal to "#" or starts with "#/", then - if (x === '#' || x.startsWith('#/')) { - // a. Throw an Invalid Module Specifier error. - throw new VMError(`Invalid module specifier '${x}'`, 'ERR_INVALID_MODULE_SPECIFIER'); - } - // 3. Let packageURL be the result of LOOKUP_PACKAGE_SCOPE(parentURL). - // Note: packageURL === parentURL === scope - // 4. If packageURL is not null, then - // Always true - // a. Let pjson be the result of READ_PACKAGE_JSON(packageURL). - // pjson === data - // b. If pjson.imports is a non-null Object, then - // Already tested - // x. Let resolved be the result of PACKAGE_IMPORTS_EXPORTS_RESOLVE( specifier, pjson.imports, packageURL, true, conditions). - const match = this.packageImportsExportsResolve(x, data.imports, scope, true, ['node', 'require'], extList); - // y. If resolved is not null or undefined, return resolved. - if (!match) { - // 5. Throw a Package Import Not Defined error. - throw new VMError(`Package import not defined for '${x}'`, 'ERR_PACKAGE_IMPORT_NOT_DEFINED'); - } - // END PACKAGE_IMPORTS_RESOLVE - - // 5. RESOLVE_ESM_MATCH(MATCH). - return this.resolveEsmMatch(match, x, extList); - } - - // LOAD_PACKAGE_EXPORTS(X, DIR) - loadPackageExports(x, dir, extList) { - // 1. Try to interpret X as a combination of NAME and SUBPATH where the name - // may have a @scope/ prefix and the subpath begins with a slash (`/`). - const res = x.match(EXPORTS_PATTERN); - // 2. If X does not match this pattern or DIR/NAME/package.json is not a file, - // return. - if (!res) return undefined; - const scope = this.pathConcat(dir, res[1]); - const pack = this.readPackage(scope); - if (!pack) return undefined; - // 3. Parse DIR/NAME/package.json, and look for "exports" field. - // 4. If "exports" is null or undefined, return. - if (!pack.exports) return undefined; - // 5. let MATCH = PACKAGE_EXPORTS_RESOLVE(pathToFileURL(DIR/NAME), "." + SUBPATH, - // `package.json` "exports", ["node", "require"]) defined in the ESM resolver. - const match = this.packageExportsResolve(scope, '.' + (res[2] || ''), pack.exports, ['node', 'require'], extList); - // 6. RESOLVE_ESM_MATCH(MATCH) - return this.resolveEsmMatch(match, x, extList); - } - - // LOAD_PACKAGE_SELF(X, DIR) - loadPackageSelf(x, dir, extList) { - // 1. Find the closest package scope SCOPE to DIR. - const {data, scope} = this.readPackageScope(dir); - // 2. If no scope was found, return. - if (!data) return undefined; - // 3. If the SCOPE/package.json "exports" is null or undefined, return. - if (!data.exports) return undefined; - // 4. If the SCOPE/package.json "name" is not the first segment of X, return. - if (x !== data.name && !x.startsWith(data.name + '/')) return undefined; - // 5. let MATCH = PACKAGE_EXPORTS_RESOLVE(pathToFileURL(SCOPE), - // "." + X.slice("name".length), `package.json` "exports", ["node", "require"]) - // defined in the ESM resolver. - const match = this.packageExportsResolve(scope, '.' + x.slice(data.name.length), data.exports, ['node', 'require'], extList); - // 6. RESOLVE_ESM_MATCH(MATCH) - return this.resolveEsmMatch(match, x, extList); - } - - // RESOLVE_ESM_MATCH(MATCH) - resolveEsmMatch(match, x, extList) { - // 1. let { RESOLVED, EXACT } = MATCH - const resolved = match; - const exact = true; - // 2. let RESOLVED_PATH = fileURLToPath(RESOLVED) - const resolvedPath = resolved; - let f; - // 3. If EXACT is true, - if (exact) { - // a. If the file at RESOLVED_PATH exists, load RESOLVED_PATH as its extension - // format. STOP - f = this.tryFile(resolvedPath); - // 4. Otherwise, if EXACT is false, - } else { - // a. LOAD_AS_FILE(RESOLVED_PATH) - // b. LOAD_AS_DIRECTORY(RESOLVED_PATH) - f = this.loadAsFileOrDirecotry(resolvedPath, extList); - } - if (f) return f; - // 5. THROW "not found" - throw new VMError(`Cannot find module '${x}'`, 'ENOTFOUND'); - } - - // PACKAGE_EXPORTS_RESOLVE(packageURL, subpath, exports, conditions) - packageExportsResolve(packageURL, subpath, rexports, conditions, extList) { - // 1. If exports is an Object with both a key starting with "." and a key not starting with ".", throw an Invalid Package Configuration error. - let hasDots = false; - if (typeof rexports === 'object' && !Array.isArray(rexports)) { - const keys = Object.getOwnPropertyNames(rexports); - if (keys.length > 0) { - hasDots = keys[0][0] === '.'; - for (let i = 0; i < keys.length; i++) { - if (hasDots !== (keys[i][0] === '.')) { - throw new VMError('Invalid package configuration', 'ERR_INVALID_PACKAGE_CONFIGURATION'); - } - } - } - } - // 2. If subpath is equal to ".", then - if (subpath === '.') { - // a. Let mainExport be undefined. - let mainExport = undefined; - // b. If exports is a String or Array, or an Object containing no keys starting with ".", then - if (typeof rexports === 'string' || Array.isArray(rexports) || !hasDots) { - // x. Set mainExport to exports. - mainExport = rexports; - // c. Otherwise if exports is an Object containing a "." property, then - } else if (hasDots) { - // x. Set mainExport to exports["."]. - mainExport = rexports['.']; - } - // d. If mainExport is not undefined, then - if (mainExport) { - // x. Let resolved be the result of PACKAGE_TARGET_RESOLVE( packageURL, mainExport, "", false, false, conditions). - const resolved = this.packageTargetResolve(packageURL, mainExport, '', false, false, conditions, extList); - // y. If resolved is not null or undefined, return resolved. - if (resolved) return resolved; - } - // 3. Otherwise, if exports is an Object and all keys of exports start with ".", then - } else if (hasDots) { - // a. Let matchKey be the string "./" concatenated with subpath. - // Note: Here subpath starts already with './' - // b. Let resolved be the result of PACKAGE_IMPORTS_EXPORTS_RESOLVE( matchKey, exports, packageURL, false, conditions). - const resolved = this.packageImportsExportsResolve(subpath, rexports, packageURL, false, conditions, extList); - // c. If resolved is not null or undefined, return resolved. - if (resolved) return resolved; - } - // 4. Throw a Package Path Not Exported error. - throw new VMError(`Package path '${subpath}' is not exported`, 'ERR_PACKAGE_PATH_NOT_EXPORTED'); - } - - // PACKAGE_IMPORTS_EXPORTS_RESOLVE(matchKey, matchObj, packageURL, isImports, conditions) - packageImportsExportsResolve(matchKey, matchObj, packageURL, isImports, conditions, extList) { - // 1. If matchKey is a key of matchObj and does not contain "*", then - let target = matchObj[matchKey]; - if (target && matchKey.indexOf('*') === -1) { - // a. Let target be the value of matchObj[matchKey]. - // b. Return the result of PACKAGE_TARGET_RESOLVE(packageURL, target, "", false, isImports, conditions). - return this.packageTargetResolve(packageURL, target, '', false, isImports, conditions, extList); - } - // 2. Let expansionKeys be the list of keys of matchObj containing only a single "*", - // sorted by the sorting function PATTERN_KEY_COMPARE which orders in descending order of specificity. - const expansionKeys = Object.getOwnPropertyNames(matchObj); - let bestKey = ''; - let bestSubpath; - // 3. For each key expansionKey in expansionKeys, do - for (let i = 0; i < expansionKeys.length; i++) { - const expansionKey = expansionKeys[i]; - if (matchKey.length < expansionKey.length) continue; - // a. Let patternBase be the substring of expansionKey up to but excluding the first "*" character. - const star = expansionKey.indexOf('*'); - if (star === -1) continue; // Note: expansionKeys was not filtered - const patternBase = expansionKey.slice(0, star); - // b. If matchKey starts with but is not equal to patternBase, then - if (matchKey.startsWith(patternBase) && expansionKey.indexOf('*', star + 1) === -1) { // Note: expansionKeys was not filtered - // 1. Let patternTrailer be the substring of expansionKey from the index after the first "*" character. - const patternTrailer = expansionKey.slice(star + 1); - // 2. If patternTrailer has zero length, or if matchKey ends with patternTrailer and the length of matchKey is greater than or - // equal to the length of expansionKey, then - if (matchKey.endsWith(patternTrailer) && this.patternKeyCompare(bestKey, expansionKey) === 1) { // Note: expansionKeys was not sorted - // a. Let target be the value of matchObj[expansionKey]. - target = matchObj[expansionKey]; - // b. Let subpath be the substring of matchKey starting at the index of the length of patternBase up to the length of - // matchKey minus the length of patternTrailer. - bestKey = expansionKey; - bestSubpath = matchKey.slice(patternBase.length, matchKey.length - patternTrailer.length); - } - } - } - if (bestSubpath) { // Note: expansionKeys was not sorted - // c. Return the result of PACKAGE_TARGET_RESOLVE(packageURL, target, subpath, true, isImports, conditions). - return this.packageTargetResolve(packageURL, target, bestSubpath, true, isImports, conditions, extList); - } - // 4. Return null. - return null; - } - - // PATTERN_KEY_COMPARE(keyA, keyB) - patternKeyCompare(keyA, keyB) { - // 1. Assert: keyA ends with "/" or contains only a single "*". - // 2. Assert: keyB ends with "/" or contains only a single "*". - // 3. Let baseLengthA be the index of "*" in keyA plus one, if keyA contains "*", or the length of keyA otherwise. - const baseAStar = keyA.indexOf('*'); - const baseLengthA = baseAStar === -1 ? keyA.length : baseAStar + 1; - // 4. Let baseLengthB be the index of "*" in keyB plus one, if keyB contains "*", or the length of keyB otherwise. - const baseBStar = keyB.indexOf('*'); - const baseLengthB = baseBStar === -1 ? keyB.length : baseBStar + 1; - // 5. If baseLengthA is greater than baseLengthB, return -1. - if (baseLengthA > baseLengthB) return -1; - // 6. If baseLengthB is greater than baseLengthA, return 1. - if (baseLengthB > baseLengthA) return 1; - // 7. If keyA does not contain "*", return 1. - if (baseAStar === -1) return 1; - // 8. If keyB does not contain "*", return -1. - if (baseBStar === -1) return -1; - // 9. If the length of keyA is greater than the length of keyB, return -1. - if (keyA.length > keyB.length) return -1; - // 10. If the length of keyB is greater than the length of keyA, return 1. - if (keyB.length > keyA.length) return 1; - // 11. Return 0. - return 0; - } - - // PACKAGE_TARGET_RESOLVE(packageURL, target, subpath, pattern, internal, conditions) - packageTargetResolve(packageURL, target, subpath, pattern, internal, conditions, extList) { - // 1. If target is a String, then - if (typeof target === 'string') { - // a. If pattern is false, subpath has non-zero length and target does not end with "/", throw an Invalid Module Specifier error. - if (!pattern && subpath.length > 0 && !target.endsWith('/')) { - throw new VMError(`Invalid package specifier '${subpath}'`, 'ERR_INVALID_MODULE_SPECIFIER'); - } - // b. If target does not start with "./", then - if (!target.startsWith('./')) { - // 1. If internal is true and target does not start with "../" or "/" and is not a valid URL, then - if (internal && !target.startsWith('../') && !target.startsWith('/')) { - let isURL = false; - try { - // eslint-disable-next-line no-new - new URL(target); - isURL = true; - } catch (e) {} - if (!isURL) { - // a. If pattern is true, then - if (pattern) { - // 1. Return PACKAGE_RESOLVE(target with every instance of "*" replaced by subpath, packageURL + "/"). - return this.packageResolve(target.replace(/\*/g, subpath), packageURL, conditions, extList); - } - // b. Return PACKAGE_RESOLVE(target + subpath, packageURL + "/"). - return this.packageResolve(this.pathConcat(target, subpath), packageURL, conditions, extList); - } - } - // Otherwise, throw an Invalid Package Target error. - throw new VMError(`Invalid package target for '${subpath}'`, 'ERR_INVALID_PACKAGE_TARGET'); - } - target = decodeURI(target); - // c. If target split on "/" or "\" contains any ".", ".." or "node_modules" segments after the first segment, case insensitive - // and including percent encoded variants, throw an Invalid Package Target error. - if (target.split(/[/\\]/).slice(1).findIndex(x => x === '.' || x === '..' || x.toLowerCase() === 'node_modules') !== -1) { - throw new VMError(`Invalid package target for '${subpath}'`, 'ERR_INVALID_PACKAGE_TARGET'); - } - // d. Let resolvedTarget be the URL resolution of the concatenation of packageURL and target. - const resolvedTarget = this.pathConcat(packageURL, target); - // e. Assert: resolvedTarget is contained in packageURL. - subpath = decodeURI(subpath); - // f. If subpath split on "/" or "\" contains any ".", ".." or "node_modules" segments, case insensitive and including percent - // encoded variants, throw an Invalid Module Specifier error. - if (subpath.split(/[/\\]/).findIndex(x => x === '.' || x === '..' || x.toLowerCase() === 'node_modules') !== -1) { - throw new VMError(`Invalid package specifier '${subpath}'`, 'ERR_INVALID_MODULE_SPECIFIER'); - } - // g. If pattern is true, then - if (pattern) { - // 1. Return the URL resolution of resolvedTarget with every instance of "*" replaced with subpath. - return resolvedTarget.replace(/\*/g, subpath); - } - // h. Otherwise, - // 1. Return the URL resolution of the concatenation of subpath and resolvedTarget. - return this.pathConcat(resolvedTarget, subpath); - // 3. Otherwise, if target is an Array, then - } else if (Array.isArray(target)) { - // a. If target.length is zero, return null. - if (target.length === 0) return null; - let lastException = undefined; - // b. For each item targetValue in target, do - for (let i = 0; i < target.length; i++) { - const targetValue = target[i]; - // 1. Let resolved be the result of PACKAGE_TARGET_RESOLVE( packageURL, targetValue, subpath, pattern, internal, conditions), - // continuing the loop on any Invalid Package Target error. - let resolved; - try { - resolved = this.packageTargetResolve(packageURL, targetValue, subpath, pattern, internal, conditions, extList); - } catch (e) { - if (e.code !== 'ERR_INVALID_PACKAGE_TARGET') throw e; - lastException = e; - continue; - } - // 2. If resolved is undefined, continue the loop. - // 3. Return resolved. - if (resolved !== undefined) return resolved; - if (resolved === null) { - lastException = null; - } - } - // c. Return or throw the last fallback resolution null return or error. - if (lastException === undefined || lastException === null) return lastException; - throw lastException; - // 2. Otherwise, if target is a non-null Object, then - } else if (typeof target === 'object' && target !== null) { - const keys = Object.getOwnPropertyNames(target); - // a. If exports contains any index property keys, as defined in ECMA-262 6.1.7 Array Index, throw an Invalid Package Configuration error. - for (let i = 0; i < keys.length; i++) { - const p = keys[i]; - if (isArrayIndex(p)) throw new VMError(`Invalid package configuration for '${subpath}'`, 'ERR_INVALID_PACKAGE_CONFIGURATION'); - } - // b. For each property p of target, in object insertion order as, - for (let i = 0; i < keys.length; i++) { - const p = keys[i]; - // 1. If p equals "default" or conditions contains an entry for p, then - if (p === 'default' || conditions.includes(p)) { - // a. Let targetValue be the value of the p property in target. - const targetValue = target[p]; - // b. Let resolved be the result of PACKAGE_TARGET_RESOLVE( packageURL, targetValue, subpath, pattern, internal, conditions). - const resolved = this.packageTargetResolve(packageURL, targetValue, subpath, pattern, internal, conditions, extList); - // c. If resolved is equal to undefined, continue the loop. - // d. Return resolved. - if (resolved !== undefined) return resolved; - } - } - // c. Return undefined. - return undefined; - // 4. Otherwise, if target is null, return null. - } else if (target == null) { - return null; - } - // Otherwise throw an Invalid Package Target error. - throw new VMError(`Invalid package target for '${subpath}'`, 'ERR_INVALID_PACKAGE_TARGET'); - } - - // PACKAGE_RESOLVE(packageSpecifier, parentURL) - packageResolve(packageSpecifier, parentURL, conditions, extList) { - // 1. Let packageName be undefined. - let packageName = undefined; - // 2. If packageSpecifier is an empty string, then - if (packageSpecifier === '') { - // a. Throw an Invalid Module Specifier error. - throw new VMError(`Invalid package specifier '${packageSpecifier}'`, 'ERR_INVALID_MODULE_SPECIFIER'); - } - // 3. If packageSpecifier is a Node.js builtin module name, then - if (this.builtinModules[packageSpecifier]) { - // a. Return the string "node:" concatenated with packageSpecifier. - return 'node:' + packageSpecifier; - } - let idx = packageSpecifier.indexOf('/'); - // 5. Otherwise, - if (packageSpecifier[0] === '@') { - // a. If packageSpecifier does not contain a "/" separator, then - if (idx === -1) { - // x. Throw an Invalid Module Specifier error. - throw new VMError(`Invalid package specifier '${packageSpecifier}'`, 'ERR_INVALID_MODULE_SPECIFIER'); - } - // b. Set packageName to the substring of packageSpecifier until the second "/" separator or the end of the string. - idx = packageSpecifier.indexOf('/', idx + 1); - } - // else - // 4. If packageSpecifier does not start with "@", then - // a. Set packageName to the substring of packageSpecifier until the first "/" separator or the end of the string. - packageName = idx === -1 ? packageSpecifier : packageSpecifier.slice(0, idx); - // 6. If packageName starts with "." or contains "\" or "%", then - if (idx !== 0 && (packageName[0] === '.' || packageName.indexOf('\\') >= 0 || packageName.indexOf('%') >= 0)) { - // a. Throw an Invalid Module Specifier error. - throw new VMError(`Invalid package specifier '${packageSpecifier}'`, 'ERR_INVALID_MODULE_SPECIFIER'); - } - // 7. Let packageSubpath be "." concatenated with the substring of packageSpecifier from the position at the length of packageName. - const packageSubpath = '.' + packageSpecifier.slice(packageName.length); - // 8. If packageSubpath ends in "/", then - if (packageSubpath[packageSubpath.length - 1] === '/') { - // a. Throw an Invalid Module Specifier error. - throw new VMError(`Invalid package specifier '${packageSpecifier}'`, 'ERR_INVALID_MODULE_SPECIFIER'); - } - // 9. Let selfUrl be the result of PACKAGE_SELF_RESOLVE(packageName, packageSubpath, parentURL). - const selfUrl = this.packageSelfResolve(packageName, packageSubpath, parentURL); - // 10. If selfUrl is not undefined, return selfUrl. - if (selfUrl) return selfUrl; - // 11. While parentURL is not the file system root, - let packageURL; - while (true) { - // a. Let packageURL be the URL resolution of "node_modules/" concatenated with packageSpecifier, relative to parentURL. - packageURL = this.pathResolve(this.pathConcat(parentURL, 'node_modules', packageSpecifier)); - // b. Set parentURL to the parent folder URL of parentURL. - const parentParentURL = this.pathDirname(parentURL); - // c. If the folder at packageURL does not exist, then - if (this.isPathAllowed(packageURL) && this.pathTestIsDirectory(packageURL)) break; - // 1. Continue the next loop iteration. - if (parentParentURL === parentURL) { - // 12. Throw a Module Not Found error. - throw new VMError(`Cannot find module '${packageSpecifier}'`, 'ENOTFOUND'); - } - parentURL = parentParentURL; - } - // d. Let pjson be the result of READ_PACKAGE_JSON(packageURL). - const pack = this.readPackage(packageURL); - // e. If pjson is not null and pjson.exports is not null or undefined, then - if (pack && pack.exports) { - // 1. Return the result of PACKAGE_EXPORTS_RESOLVE(packageURL, packageSubpath, pjson.exports, defaultConditions). - return this.packageExportsResolve(packageURL, packageSubpath, pack.exports, conditions, extList); - } - // f. Otherwise, if packageSubpath is equal to ".", then - if (packageSubpath === '.') { - // 1. If pjson.main is a string, then - // a. Return the URL resolution of main in packageURL. - return this.loadAsPackage(packageSubpath, pack, extList); - } - // g. Otherwise, - // 1. Return the URL resolution of packageSubpath in packageURL. - return this.pathConcat(packageURL, packageSubpath); - } - -} - -exports.Resolver = Resolver; -exports.DefaultResolver = DefaultResolver; - - -/***/ }), - -/***/ 98611: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -const {Script} = __nccwpck_require__(92184); -const { - lookupCompiler, - removeShebang -} = __nccwpck_require__(56400); -const { - transformer -} = __nccwpck_require__(33342); - -const objectDefineProperties = Object.defineProperties; - -const MODULE_PREFIX = '(function (exports, require, module, __filename, __dirname) { '; -const STRICT_MODULE_PREFIX = MODULE_PREFIX + '"use strict"; '; -const MODULE_SUFFIX = '\n});'; - -/** - * Class Script - * - * @public - */ -class VMScript { - - /** - * The script code with wrapping. If set will invalidate the cache.
- * Writable only for backwards compatibility. - * - * @public - * @readonly - * @member {string} code - * @memberOf VMScript# - */ - - /** - * The filename used for this script. - * - * @public - * @readonly - * @since v3.9.0 - * @member {string} filename - * @memberOf VMScript# - */ - - /** - * The line offset use for stack traces. - * - * @public - * @readonly - * @since v3.9.0 - * @member {number} lineOffset - * @memberOf VMScript# - */ - - /** - * The column offset use for stack traces. - * - * @public - * @readonly - * @since v3.9.0 - * @member {number} columnOffset - * @memberOf VMScript# - */ - - /** - * The compiler to use to get the JavaScript code. - * - * @public - * @readonly - * @since v3.9.0 - * @member {(string|compileCallback)} compiler - * @memberOf VMScript# - */ - - /** - * The prefix for the script. - * - * @private - * @member {string} _prefix - * @memberOf VMScript# - */ - - /** - * The suffix for the script. - * - * @private - * @member {string} _suffix - * @memberOf VMScript# - */ - - /** - * The compiled vm.Script for the VM or if not compiled null. - * - * @private - * @member {?vm.Script} _compiledVM - * @memberOf VMScript# - */ - - /** - * The compiled vm.Script for the NodeVM or if not compiled null. - * - * @private - * @member {?vm.Script} _compiledNodeVM - * @memberOf VMScript# - */ - - /** - * The compiled vm.Script for the NodeVM in strict mode or if not compiled null. - * - * @private - * @member {?vm.Script} _compiledNodeVMStrict - * @memberOf VMScript# - */ - - /** - * The resolved compiler to use to get the JavaScript code. - * - * @private - * @readonly - * @member {compileCallback} _compiler - * @memberOf VMScript# - */ - - /** - * The script to run without wrapping. - * - * @private - * @member {string} _code - * @memberOf VMScript# - */ - - /** - * Whether or not the script contains async functions. - * - * @private - * @member {boolean} _hasAsync - * @memberOf VMScript# - */ - - /** - * Create VMScript instance. - * - * @public - * @param {string} code - Code to run. - * @param {(string|Object)} [options] - Options map or filename. - * @param {string} [options.filename="vm.js"] - Filename that shows up in any stack traces produced from this script. - * @param {number} [options.lineOffset=0] - Passed to vm.Script options. - * @param {number} [options.columnOffset=0] - Passed to vm.Script options. - * @param {(string|compileCallback)} [options.compiler="javascript"] - The compiler to use. - * @throws {VMError} If the compiler is unknown or if coffee-script was requested but the module not found. - */ - constructor(code, options) { - const sCode = `${code}`; - let useFileName; - let useOptions; - if (arguments.length === 2) { - if (typeof options === 'object') { - useOptions = options || {__proto__: null}; - useFileName = useOptions.filename; - } else { - useOptions = {__proto__: null}; - useFileName = options; - } - } else if (arguments.length > 2) { - // We do it this way so that there are no more arguments in the function. - // eslint-disable-next-line prefer-rest-params - useOptions = arguments[2] || {__proto__: null}; - useFileName = options || useOptions.filename; - } else { - useOptions = {__proto__: null}; - } - - const { - compiler = 'javascript', - lineOffset = 0, - columnOffset = 0 - } = useOptions; - - // Throw if the compiler is unknown. - const resolvedCompiler = lookupCompiler(compiler); - - objectDefineProperties(this, { - __proto__: null, - code: { - __proto__: null, - // Put this here so that it is enumerable, and looks like a property. - get() { - return this._prefix + this._code + this._suffix; - }, - set(value) { - const strNewCode = String(value); - if (strNewCode === this._code && this._prefix === '' && this._suffix === '') return; - this._code = strNewCode; - this._prefix = ''; - this._suffix = ''; - this._compiledVM = null; - this._compiledNodeVM = null; - this._compiledCode = null; - }, - enumerable: true - }, - filename: { - __proto__: null, - value: useFileName || 'vm.js', - enumerable: true - }, - lineOffset: { - __proto__: null, - value: lineOffset, - enumerable: true - }, - columnOffset: { - __proto__: null, - value: columnOffset, - enumerable: true - }, - compiler: { - __proto__: null, - value: compiler, - enumerable: true - }, - _code: { - __proto__: null, - value: sCode, - writable: true - }, - _prefix: { - __proto__: null, - value: '', - writable: true - }, - _suffix: { - __proto__: null, - value: '', - writable: true - }, - _compiledVM: { - __proto__: null, - value: null, - writable: true - }, - _compiledNodeVM: { - __proto__: null, - value: null, - writable: true - }, - _compiledNodeVMStrict: { - __proto__: null, - value: null, - writable: true - }, - _compiledCode: { - __proto__: null, - value: null, - writable: true - }, - _hasAsync: { - __proto__: null, - value: false, - writable: true - }, - _compiler: {__proto__: null, value: resolvedCompiler} - }); - } - - /** - * Wraps the code.
- * This will replace the old wrapping.
- * Will invalidate the code cache. - * - * @public - * @deprecated Since v3.9.0. Wrap your code before passing it into the VMScript object. - * @param {string} prefix - String that will be appended before the script code. - * @param {script} suffix - String that will be appended behind the script code. - * @return {this} This for chaining. - * @throws {TypeError} If prefix or suffix is a Symbol. - */ - wrap(prefix, suffix) { - const strPrefix = `${prefix}`; - const strSuffix = `${suffix}`; - if (this._prefix === strPrefix && this._suffix === strSuffix) return this; - this._prefix = strPrefix; - this._suffix = strSuffix; - this._compiledVM = null; - this._compiledNodeVM = null; - this._compiledNodeVMStrict = null; - return this; - } - - /** - * Compile this script.
- * This is useful to detect syntax errors in the script. - * - * @public - * @return {this} This for chaining. - * @throws {SyntaxError} If there is a syntax error in the script. - */ - compile() { - this._compileVM(); - return this; - } - - /** - * Get the compiled code. - * - * @private - * @return {string} The code. - */ - getCompiledCode() { - if (!this._compiledCode) { - const comp = this._compiler(this._prefix + removeShebang(this._code) + this._suffix, this.filename); - const res = transformer(null, comp, false, false); - this._compiledCode = res.code; - this._hasAsync = res.hasAsync; - } - return this._compiledCode; - } - - /** - * Compiles this script to a vm.Script. - * - * @private - * @param {string} prefix - JavaScript code that will be used as prefix. - * @param {string} suffix - JavaScript code that will be used as suffix. - * @return {vm.Script} The compiled vm.Script. - * @throws {SyntaxError} If there is a syntax error in the script. - */ - _compile(prefix, suffix) { - return new Script(prefix + this.getCompiledCode() + suffix, { - __proto__: null, - filename: this.filename, - displayErrors: false, - lineOffset: this.lineOffset, - columnOffset: this.columnOffset - }); - } - - /** - * Will return the cached version of the script intended for VM or compile it. - * - * @private - * @return {vm.Script} The compiled script - * @throws {SyntaxError} If there is a syntax error in the script. - */ - _compileVM() { - let script = this._compiledVM; - if (!script) { - this._compiledVM = script = this._compile('', ''); - } - return script; - } - - /** - * Will return the cached version of the script intended for NodeVM or compile it. - * - * @private - * @return {vm.Script} The compiled script - * @throws {SyntaxError} If there is a syntax error in the script. - */ - _compileNodeVM() { - let script = this._compiledNodeVM; - if (!script) { - this._compiledNodeVM = script = this._compile(MODULE_PREFIX, MODULE_SUFFIX); - } - return script; - } - - /** - * Will return the cached version of the script intended for NodeVM in strict mode or compile it. - * - * @private - * @return {vm.Script} The compiled script - * @throws {SyntaxError} If there is a syntax error in the script. - */ - _compileNodeVMStrict() { - let script = this._compiledNodeVMStrict; - if (!script) { - this._compiledNodeVMStrict = script = this._compile(STRICT_MODULE_PREFIX, MODULE_SUFFIX); - } - return script; - } - -} - -exports.MODULE_PREFIX = MODULE_PREFIX; -exports.STRICT_MODULE_PREFIX = STRICT_MODULE_PREFIX; -exports.MODULE_SUFFIX = MODULE_SUFFIX; -exports.VMScript = VMScript; - - -/***/ }), - -/***/ 33342: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - - -const {parse: acornParse} = __nccwpck_require__(35594); -const {full: acornWalkFull} = __nccwpck_require__(15000); - -const INTERNAL_STATE_NAME = 'VM2_INTERNAL_STATE_DO_NOT_USE_OR_PROGRAM_WILL_FAIL'; - -function assertType(node, type) { - if (!node) throw new Error(`None existent node expected '${type}'`); - if (node.type !== type) throw new Error(`Invalid node type '${node.type}' expected '${type}'`); - return node; -} - -function transformer(args, body, isAsync, isGenerator) { - let code; - let argsOffset; - if (args === null) { - code = body; - } else { - code = isAsync ? '(async function' : '(function'; - if (isGenerator) code += '*'; - code += ' anonymous('; - code += args; - argsOffset = code.length; - code += '\n) {\n'; - code += body; - code += '\n})'; - } - - const ast = acornParse(code, { - __proto__: null, - ecmaVersion: 2020, - allowAwaitOutsideFunction: args === null && isAsync, - allowReturnOutsideFunction: args === null - }); - - if (args !== null) { - const pBody = assertType(ast, 'Program').body; - if (pBody.length !== 1) throw new Error('Invalid arguments'); - const expr = pBody[0]; - if (expr.type !== 'ExpressionStatement') throw new Error('Invalid arguments'); - const func = expr.expression; - if (func.type !== 'FunctionExpression') throw new Error('Invalid arguments'); - if (func.body.start !== argsOffset + 3) throw new Error('Invalid arguments'); - } - - const insertions = []; - let hasAsync = false; - - const RIGHT = -100; - const LEFT = 100; - - acornWalkFull(ast, (node, state, type) => { - if (type === 'CatchClause') { - const param = node.param; - if (param) { - const name = assertType(param, 'Identifier').name; - const cBody = assertType(node.body, 'BlockStatement'); - if (cBody.body.length > 0) { - insertions.push({ - __proto__: null, - pos: cBody.body[0].start, - order: RIGHT, - code: `${name}=${INTERNAL_STATE_NAME}.handleException(${name});` - }); - } - } - } else if (type === 'WithStatement') { - insertions.push({ - __proto__: null, - pos: node.object.start, - order: RIGHT, - code: INTERNAL_STATE_NAME + '.wrapWith(' - }); - insertions.push({ - __proto__: null, - pos: node.object.end, - order: LEFT, - code: ')' - }); - } else if (type === 'Identifier') { - if (node.name === INTERNAL_STATE_NAME) { - throw new Error('Use of internal vm2 state variable'); - } - } else if (type === 'ImportExpression') { - insertions.push({ - __proto__: null, - pos: node.start, - order: LEFT, - code: INTERNAL_STATE_NAME + '.' - }); - } else if (type === 'Function') { - if (node.async) hasAsync = true; - } - }); - - if (insertions.length === 0) return {__proto__: null, code, hasAsync}; - - insertions.sort((a, b) => (a.pos == b.pos ? a.order - b.order : a.pos - b.pos)); - - let ncode = ''; - let curr = 0; - for (let i = 0; i < insertions.length; i++) { - const change = insertions[i]; - ncode += code.substring(curr, change.pos) + change.code; - curr = change.pos; - } - ncode += code.substring(curr); - - return {__proto__: null, code: ncode, hasAsync}; -} - -exports.INTERNAL_STATE_NAME = INTERNAL_STATE_NAME; -exports.transformer = transformer; - - -/***/ }), - -/***/ 93841: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -/** - * This callback will be called to transform a script to JavaScript. - * - * @callback compileCallback - * @param {string} code - Script code to transform to JavaScript. - * @param {string} filename - Filename of this script. - * @return {string} JavaScript code that represents the script code. - */ - -/** - * This callback will be called to resolve a module if it couldn't be found. - * - * @callback resolveCallback - * @param {string} moduleName - Name of the modulusedRequiree to resolve. - * @param {string} dirname - Name of the current directory. - * @return {(string|undefined)} The file or directory to use to load the requested module. - */ - -const fs = __nccwpck_require__(35747); -const pa = __nccwpck_require__(85622); -const { - Script, - createContext -} = __nccwpck_require__(92184); -const { - EventEmitter -} = __nccwpck_require__(28614); -const { - INSPECT_MAX_BYTES -} = __nccwpck_require__(64293); -const { - createBridge, - VMError -} = __nccwpck_require__(82989); -const { - transformer, - INTERNAL_STATE_NAME -} = __nccwpck_require__(33342); -const { - lookupCompiler -} = __nccwpck_require__(56400); -const { - VMScript -} = __nccwpck_require__(98611); - -const objectDefineProperties = Object.defineProperties; - -/** - * Host objects - * - * @private - */ -const HOST = Object.freeze({ - Buffer, - Function, - Object, - transformAndCheck, - INSPECT_MAX_BYTES, - INTERNAL_STATE_NAME -}); - -/** - * Compile a script. - * - * @private - * @param {string} filename - Filename of the script. - * @param {string} script - Script. - * @return {vm.Script} The compiled script. - */ -function compileScript(filename, script) { - return new Script(script, { - __proto__: null, - filename, - displayErrors: false - }); -} - -/** - * Default run options for vm.Script.runInContext - * - * @private - */ -const DEFAULT_RUN_OPTIONS = Object.freeze({__proto__: null, displayErrors: false}); - -function checkAsync(allow) { - if (!allow) throw new VMError('Async not available'); -} - -function transformAndCheck(args, code, isAsync, isGenerator, allowAsync) { - const ret = transformer(args, code, isAsync, isGenerator); - checkAsync(allowAsync || !ret.hasAsync); - return ret.code; -} - -/** - * - * This callback will be called and has a specific time to finish.
- * No parameters will be supplied.
- * If parameters are required, use a closure. - * - * @private - * @callback runWithTimeout - * @return {*} - * - */ - -let cacheTimeoutContext = null; -let cacheTimeoutScript = null; - -/** - * Run a function with a specific timeout. - * - * @private - * @param {runWithTimeout} fn - Function to run with the specific timeout. - * @param {number} timeout - The amount of time to give the function to finish. - * @return {*} The value returned by the function. - * @throws {Error} If the function took to long. - */ -function doWithTimeout(fn, timeout) { - if (!cacheTimeoutContext) { - cacheTimeoutContext = createContext(); - cacheTimeoutScript = new Script('fn()', { - __proto__: null, - filename: 'timeout_bridge.js', - displayErrors: false - }); - } - cacheTimeoutContext.fn = fn; - try { - return cacheTimeoutScript.runInContext(cacheTimeoutContext, { - __proto__: null, - displayErrors: false, - timeout - }); - } finally { - cacheTimeoutContext.fn = null; - } -} - -const bridgeScript = compileScript(__nccwpck_require__.ab + "bridge.js", - `(function(global) {"use strict"; const exports = {};${fs.readFileSync(`${__dirname}/bridge.js`, 'utf8')}\nreturn exports;})`); -const setupSandboxScript = compileScript(__nccwpck_require__.ab + "setup-sandbox.js", - `(function(global, host, bridge, data, context) { ${fs.readFileSync(`${__dirname}/setup-sandbox.js`, 'utf8')}\n})`); -const getGlobalScript = compileScript('get_global.js', 'this'); - -let getGeneratorFunctionScript = null; -let getAsyncFunctionScript = null; -let getAsyncGeneratorFunctionScript = null; -try { - getGeneratorFunctionScript = compileScript('get_generator_function.js', '(function*(){}).constructor'); -} catch (ex) {} -try { - getAsyncFunctionScript = compileScript('get_async_function.js', '(async function(){}).constructor'); -} catch (ex) {} -try { - getAsyncGeneratorFunctionScript = compileScript('get_async_generator_function.js', '(async function*(){}).constructor'); -} catch (ex) {} - -/** - * Class VM. + * ZipStream * - * @public + * @ignore + * @license [MIT]{@link https://github.com/archiverjs/node-zip-stream/blob/master/LICENSE} + * @copyright (c) 2014 Chris Talkington, contributors. */ -class VM extends EventEmitter { - - /** - * The timeout for {@link VM#run} calls. - * - * @public - * @since v3.9.0 - * @member {number} timeout - * @memberOf VM# - */ - - /** - * Get the global sandbox object. - * - * @public - * @readonly - * @since v3.9.0 - * @member {Object} sandbox - * @memberOf VM# - */ - - /** - * The compiler to use to get the JavaScript code. - * - * @public - * @readonly - * @since v3.9.0 - * @member {(string|compileCallback)} compiler - * @memberOf VM# - */ - - /** - * The resolved compiler to use to get the JavaScript code. - * - * @private - * @readonly - * @member {compileCallback} _compiler - * @memberOf VM# - */ - - /** - * Create a new VM instance. - * - * @public - * @param {Object} [options] - VM options. - * @param {number} [options.timeout] - The amount of time until a call to {@link VM#run} will timeout. - * @param {Object} [options.sandbox] - Objects that will be copied into the global object of the sandbox. - * @param {(string|compileCallback)} [options.compiler="javascript"] - The compiler to use. - * @param {boolean} [options.eval=true] - Allow the dynamic evaluation of code via eval(code) or Function(code)().
- * Only available for node v10+. - * @param {boolean} [options.wasm=true] - Allow to run wasm code.
- * Only available for node v10+. - * @param {boolean} [options.allowAsync=true] - Allows for async functions. - * @throws {VMError} If the compiler is unknown. - */ - constructor(options = {}) { - super(); - - // Read all options - const { - timeout, - sandbox, - compiler = 'javascript', - allowAsync: optAllowAsync = true - } = options; - const allowEval = options.eval !== false; - const allowWasm = options.wasm !== false; - const allowAsync = optAllowAsync && !options.fixAsync; - - // Early error if sandbox is not an object. - if (sandbox && 'object' !== typeof sandbox) { - throw new VMError('Sandbox must be object.'); - } - - // Early error if compiler can't be found. - const resolvedCompiler = lookupCompiler(compiler); - - // Create a new context for this vm. - const _context = createContext(undefined, { - __proto__: null, - codeGeneration: { - __proto__: null, - strings: allowEval, - wasm: allowWasm - } - }); - - const sandboxGlobal = getGlobalScript.runInContext(_context, DEFAULT_RUN_OPTIONS); - - // Initialize the sandbox bridge - const { - createBridge: sandboxCreateBridge - } = bridgeScript.runInContext(_context, DEFAULT_RUN_OPTIONS)(sandboxGlobal); - - // Initialize the bridge - const bridge = createBridge(sandboxCreateBridge, () => {}); - - const data = { - __proto__: null, - allowAsync - }; - - if (getGeneratorFunctionScript) { - data.GeneratorFunction = getGeneratorFunctionScript.runInContext(_context, DEFAULT_RUN_OPTIONS); - } - if (getAsyncFunctionScript) { - data.AsyncFunction = getAsyncFunctionScript.runInContext(_context, DEFAULT_RUN_OPTIONS); - } - if (getAsyncGeneratorFunctionScript) { - data.AsyncGeneratorFunction = getAsyncGeneratorFunctionScript.runInContext(_context, DEFAULT_RUN_OPTIONS); - } - - // Create the bridge between the host and the sandbox. - const internal = setupSandboxScript.runInContext(_context, DEFAULT_RUN_OPTIONS)(sandboxGlobal, HOST, bridge.other, data, _context); - - const runScript = (script) => { - // This closure is intentional to hide _context and bridge since the allow to access the sandbox directly which is unsafe. - let ret; - try { - ret = script.runInContext(_context, DEFAULT_RUN_OPTIONS); - } catch (e) { - throw bridge.from(e); - } - return bridge.from(ret); - }; - - const makeReadonly = (value, mock) => { - try { - internal.readonly(value, mock); - } catch (e) { - throw bridge.from(e); - } - return value; - }; - - const makeProtected = (value) => { - const sandboxBridge = bridge.other; - try { - sandboxBridge.fromWithFactory(sandboxBridge.protectedFactory, value); - } catch (e) { - throw bridge.from(e); - } - return value; - }; - - const addProtoMapping = (hostProto, sandboxProto) => { - const sandboxBridge = bridge.other; - let otherProto; - try { - otherProto = sandboxBridge.from(sandboxProto); - sandboxBridge.addProtoMapping(otherProto, hostProto); - } catch (e) { - throw bridge.from(e); - } - bridge.addProtoMapping(hostProto, otherProto); - }; - - const addProtoMappingFactory = (hostProto, sandboxProtoFactory) => { - const sandboxBridge = bridge.other; - const factory = () => { - const proto = sandboxProtoFactory(this); - bridge.addProtoMapping(hostProto, proto); - return proto; - }; - try { - const otherProtoFactory = sandboxBridge.from(factory); - sandboxBridge.addProtoMappingFactory(otherProtoFactory, hostProto); - } catch (e) { - throw bridge.from(e); - } - }; - - // Define the properties of this object. - // Use Object.defineProperties here to be able to - // hide and set properties read-only. - objectDefineProperties(this, { - __proto__: null, - timeout: { - __proto__: null, - value: timeout, - writable: true, - enumerable: true - }, - compiler: { - __proto__: null, - value: compiler, - enumerable: true - }, - sandbox: { - __proto__: null, - value: bridge.from(sandboxGlobal), - enumerable: true - }, - _runScript: {__proto__: null, value: runScript}, - _makeReadonly: {__proto__: null, value: makeReadonly}, - _makeProtected: {__proto__: null, value: makeProtected}, - _addProtoMapping: {__proto__: null, value: addProtoMapping}, - _addProtoMappingFactory: {__proto__: null, value: addProtoMappingFactory}, - _compiler: {__proto__: null, value: resolvedCompiler}, - _allowAsync: {__proto__: null, value: allowAsync} - }); - - // prepare global sandbox - if (sandbox) { - this.setGlobals(sandbox); - } - } - - /** - * Adds all the values to the globals. - * - * @public - * @since v3.9.0 - * @param {Object} values - All values that will be added to the globals. - * @return {this} This for chaining. - * @throws {*} If the setter of a global throws an exception it is propagated. And the remaining globals will not be written. - */ - setGlobals(values) { - for (const name in values) { - if (Object.prototype.hasOwnProperty.call(values, name)) { - this.sandbox[name] = values[name]; - } - } - return this; - } - - /** - * Set a global value. - * - * @public - * @since v3.9.0 - * @param {string} name - The name of the global. - * @param {*} value - The value of the global. - * @return {this} This for chaining. - * @throws {*} If the setter of the global throws an exception it is propagated. - */ - setGlobal(name, value) { - this.sandbox[name] = value; - return this; - } - - /** - * Get a global value. - * - * @public - * @since v3.9.0 - * @param {string} name - The name of the global. - * @return {*} The value of the global. - * @throws {*} If the getter of the global throws an exception it is propagated. - */ - getGlobal(name) { - return this.sandbox[name]; - } - - /** - * Freezes the object inside VM making it read-only. Not available for primitive values. - * - * @public - * @param {*} value - Object to freeze. - * @param {string} [globalName] - Whether to add the object to global. - * @return {*} Object to freeze. - * @throws {*} If the setter of the global throws an exception it is propagated. - */ - freeze(value, globalName) { - this.readonly(value); - if (globalName) this.sandbox[globalName] = value; - return value; - } - - /** - * Freezes the object inside VM making it read-only. Not available for primitive values. - * - * @public - * @param {*} value - Object to freeze. - * @param {*} [mock] - When the object does not have a property the mock is used before prototype lookup. - * @return {*} Object to freeze. - */ - readonly(value, mock) { - return this._makeReadonly(value, mock); - } - - /** - * Protects the object inside VM making impossible to set functions as it's properties. Not available for primitive values. - * - * @public - * @param {*} value - Object to protect. - * @param {string} [globalName] - Whether to add the object to global. - * @return {*} Object to protect. - * @throws {*} If the setter of the global throws an exception it is propagated. - */ - protect(value, globalName) { - this._makeProtected(value); - if (globalName) this.sandbox[globalName] = value; - return value; - } - - /** - * Run the code in VM. - * - * @public - * @param {(string|VMScript)} code - Code to run. - * @param {(string|Object)} [options] - Options map or filename. - * @param {string} [options.filename="vm.js"] - Filename that shows up in any stack traces produced from this script.
- * This is only used if code is a String. - * @return {*} Result of executed code. - * @throws {SyntaxError} If there is a syntax error in the script. - * @throws {Error} An error is thrown when the script took to long and there is a timeout. - * @throws {*} If the script execution terminated with an exception it is propagated. - */ - run(code, options) { - let script; - let filename; - - if (typeof options === 'object') { - filename = options.filename; - } else { - filename = options; - } - - if (code instanceof VMScript) { - script = code._compileVM(); - checkAsync(this._allowAsync || !code._hasAsync); - } else { - const useFileName = filename || 'vm.js'; - let scriptCode = this._compiler(code, useFileName); - const ret = transformer(null, scriptCode, false, false); - scriptCode = ret.code; - checkAsync(this._allowAsync || !ret.hasAsync); - // Compile the script here so that we don't need to create a instance of VMScript. - script = new Script(scriptCode, { - __proto__: null, - filename: useFileName, - displayErrors: false - }); - } - - if (!this.timeout) { - return this._runScript(script); - } - - return doWithTimeout(() => { - return this._runScript(script); - }, this.timeout); - } - - /** - * Run the code in VM. - * - * @public - * @since v3.9.0 - * @param {string} filename - Filename of file to load and execute in a NodeVM. - * @return {*} Result of executed code. - * @throws {Error} If filename is not a valid filename. - * @throws {SyntaxError} If there is a syntax error in the script. - * @throws {Error} An error is thrown when the script took to long and there is a timeout. - * @throws {*} If the script execution terminated with an exception it is propagated. - */ - runFile(filename) { - const resolvedFilename = pa.resolve(filename); - - if (!fs.existsSync(resolvedFilename)) { - throw new VMError(`Script '${filename}' not found.`); - } - - if (fs.statSync(resolvedFilename).isDirectory()) { - throw new VMError('Script must be file, got directory.'); - } - - return this.run(fs.readFileSync(resolvedFilename, 'utf8'), resolvedFilename); - } - -} - -exports.VM = VM; - - -/***/ }), - -/***/ 15000: -/***/ (function(__unused_webpack_module, exports) { - -(function (global, factory) { - true ? factory(exports) : - 0; -}(this, (function (exports) { 'use strict'; - - // AST walker module for Mozilla Parser API compatible trees - - // A simple walk is one where you simply specify callbacks to be - // called on specific nodes. The last two arguments are optional. A - // simple use would be - // - // walk.simple(myTree, { - // Expression: function(node) { ... } - // }); - // - // to do something with all expressions. All Parser API node types - // can be used to identify node types, as well as Expression and - // Statement, which denote categories of nodes. - // - // The base argument can be used to pass a custom (recursive) - // walker, and state can be used to give this walked an initial - // state. - - function simple(node, visitors, baseVisitor, state, override) { - if (!baseVisitor) { baseVisitor = base - ; }(function c(node, st, override) { - var type = override || node.type, found = visitors[type]; - baseVisitor[type](node, st, c); - if (found) { found(node, st); } - })(node, state, override); - } - - // An ancestor walk keeps an array of ancestor nodes (including the - // current node) and passes them to the callback as third parameter - // (and also as state parameter when no other state is present). - function ancestor(node, visitors, baseVisitor, state, override) { - var ancestors = []; - if (!baseVisitor) { baseVisitor = base - ; }(function c(node, st, override) { - var type = override || node.type, found = visitors[type]; - var isNew = node !== ancestors[ancestors.length - 1]; - if (isNew) { ancestors.push(node); } - baseVisitor[type](node, st, c); - if (found) { found(node, st || ancestors, ancestors); } - if (isNew) { ancestors.pop(); } - })(node, state, override); - } - - // A recursive walk is one where your functions override the default - // walkers. They can modify and replace the state parameter that's - // threaded through the walk, and can opt how and whether to walk - // their child nodes (by calling their third argument on these - // nodes). - function recursive(node, state, funcs, baseVisitor, override) { - var visitor = funcs ? make(funcs, baseVisitor || undefined) : baseVisitor - ;(function c(node, st, override) { - visitor[override || node.type](node, st, c); - })(node, state, override); - } - - function makeTest(test) { - if (typeof test === "string") - { return function (type) { return type === test; } } - else if (!test) - { return function () { return true; } } - else - { return test } - } - - var Found = function Found(node, state) { this.node = node; this.state = state; }; - - // A full walk triggers the callback on each node - function full(node, callback, baseVisitor, state, override) { - if (!baseVisitor) { baseVisitor = base; } - var last - ;(function c(node, st, override) { - var type = override || node.type; - baseVisitor[type](node, st, c); - if (last !== node) { - callback(node, st, type); - last = node; - } - })(node, state, override); - } - - // An fullAncestor walk is like an ancestor walk, but triggers - // the callback on each node - function fullAncestor(node, callback, baseVisitor, state) { - if (!baseVisitor) { baseVisitor = base; } - var ancestors = [], last - ;(function c(node, st, override) { - var type = override || node.type; - var isNew = node !== ancestors[ancestors.length - 1]; - if (isNew) { ancestors.push(node); } - baseVisitor[type](node, st, c); - if (last !== node) { - callback(node, st || ancestors, ancestors, type); - last = node; - } - if (isNew) { ancestors.pop(); } - })(node, state); - } - - // Find a node with a given start, end, and type (all are optional, - // null can be used as wildcard). Returns a {node, state} object, or - // undefined when it doesn't find a matching node. - function findNodeAt(node, start, end, test, baseVisitor, state) { - if (!baseVisitor) { baseVisitor = base; } - test = makeTest(test); - try { - (function c(node, st, override) { - var type = override || node.type; - if ((start == null || node.start <= start) && - (end == null || node.end >= end)) - { baseVisitor[type](node, st, c); } - if ((start == null || node.start === start) && - (end == null || node.end === end) && - test(type, node)) - { throw new Found(node, st) } - })(node, state); - } catch (e) { - if (e instanceof Found) { return e } - throw e - } - } - - // Find the innermost node of a given type that contains the given - // position. Interface similar to findNodeAt. - function findNodeAround(node, pos, test, baseVisitor, state) { - test = makeTest(test); - if (!baseVisitor) { baseVisitor = base; } - try { - (function c(node, st, override) { - var type = override || node.type; - if (node.start > pos || node.end < pos) { return } - baseVisitor[type](node, st, c); - if (test(type, node)) { throw new Found(node, st) } - })(node, state); - } catch (e) { - if (e instanceof Found) { return e } - throw e - } - } - - // Find the outermost matching node after a given position. - function findNodeAfter(node, pos, test, baseVisitor, state) { - test = makeTest(test); - if (!baseVisitor) { baseVisitor = base; } - try { - (function c(node, st, override) { - if (node.end < pos) { return } - var type = override || node.type; - if (node.start >= pos && test(type, node)) { throw new Found(node, st) } - baseVisitor[type](node, st, c); - })(node, state); - } catch (e) { - if (e instanceof Found) { return e } - throw e - } - } - - // Find the outermost matching node before a given position. - function findNodeBefore(node, pos, test, baseVisitor, state) { - test = makeTest(test); - if (!baseVisitor) { baseVisitor = base; } - var max - ;(function c(node, st, override) { - if (node.start > pos) { return } - var type = override || node.type; - if (node.end <= pos && (!max || max.node.end < node.end) && test(type, node)) - { max = new Found(node, st); } - baseVisitor[type](node, st, c); - })(node, state); - return max - } - - // Used to create a custom walker. Will fill in all missing node - // type properties with the defaults. - function make(funcs, baseVisitor) { - var visitor = Object.create(baseVisitor || base); - for (var type in funcs) { visitor[type] = funcs[type]; } - return visitor - } - - function skipThrough(node, st, c) { c(node, st); } - function ignore(_node, _st, _c) {} - - // Node walkers. - - var base = {}; - - base.Program = base.BlockStatement = base.StaticBlock = function (node, st, c) { - for (var i = 0, list = node.body; i < list.length; i += 1) - { - var stmt = list[i]; - - c(stmt, st, "Statement"); - } - }; - base.Statement = skipThrough; - base.EmptyStatement = ignore; - base.ExpressionStatement = base.ParenthesizedExpression = base.ChainExpression = - function (node, st, c) { return c(node.expression, st, "Expression"); }; - base.IfStatement = function (node, st, c) { - c(node.test, st, "Expression"); - c(node.consequent, st, "Statement"); - if (node.alternate) { c(node.alternate, st, "Statement"); } - }; - base.LabeledStatement = function (node, st, c) { return c(node.body, st, "Statement"); }; - base.BreakStatement = base.ContinueStatement = ignore; - base.WithStatement = function (node, st, c) { - c(node.object, st, "Expression"); - c(node.body, st, "Statement"); - }; - base.SwitchStatement = function (node, st, c) { - c(node.discriminant, st, "Expression"); - for (var i$1 = 0, list$1 = node.cases; i$1 < list$1.length; i$1 += 1) { - var cs = list$1[i$1]; - - if (cs.test) { c(cs.test, st, "Expression"); } - for (var i = 0, list = cs.consequent; i < list.length; i += 1) - { - var cons = list[i]; - - c(cons, st, "Statement"); - } - } - }; - base.SwitchCase = function (node, st, c) { - if (node.test) { c(node.test, st, "Expression"); } - for (var i = 0, list = node.consequent; i < list.length; i += 1) - { - var cons = list[i]; - - c(cons, st, "Statement"); - } - }; - base.ReturnStatement = base.YieldExpression = base.AwaitExpression = function (node, st, c) { - if (node.argument) { c(node.argument, st, "Expression"); } - }; - base.ThrowStatement = base.SpreadElement = - function (node, st, c) { return c(node.argument, st, "Expression"); }; - base.TryStatement = function (node, st, c) { - c(node.block, st, "Statement"); - if (node.handler) { c(node.handler, st); } - if (node.finalizer) { c(node.finalizer, st, "Statement"); } - }; - base.CatchClause = function (node, st, c) { - if (node.param) { c(node.param, st, "Pattern"); } - c(node.body, st, "Statement"); - }; - base.WhileStatement = base.DoWhileStatement = function (node, st, c) { - c(node.test, st, "Expression"); - c(node.body, st, "Statement"); - }; - base.ForStatement = function (node, st, c) { - if (node.init) { c(node.init, st, "ForInit"); } - if (node.test) { c(node.test, st, "Expression"); } - if (node.update) { c(node.update, st, "Expression"); } - c(node.body, st, "Statement"); - }; - base.ForInStatement = base.ForOfStatement = function (node, st, c) { - c(node.left, st, "ForInit"); - c(node.right, st, "Expression"); - c(node.body, st, "Statement"); - }; - base.ForInit = function (node, st, c) { - if (node.type === "VariableDeclaration") { c(node, st); } - else { c(node, st, "Expression"); } - }; - base.DebuggerStatement = ignore; - - base.FunctionDeclaration = function (node, st, c) { return c(node, st, "Function"); }; - base.VariableDeclaration = function (node, st, c) { - for (var i = 0, list = node.declarations; i < list.length; i += 1) - { - var decl = list[i]; - - c(decl, st); - } - }; - base.VariableDeclarator = function (node, st, c) { - c(node.id, st, "Pattern"); - if (node.init) { c(node.init, st, "Expression"); } - }; - - base.Function = function (node, st, c) { - if (node.id) { c(node.id, st, "Pattern"); } - for (var i = 0, list = node.params; i < list.length; i += 1) - { - var param = list[i]; - - c(param, st, "Pattern"); - } - c(node.body, st, node.expression ? "Expression" : "Statement"); - }; - - base.Pattern = function (node, st, c) { - if (node.type === "Identifier") - { c(node, st, "VariablePattern"); } - else if (node.type === "MemberExpression") - { c(node, st, "MemberPattern"); } - else - { c(node, st); } - }; - base.VariablePattern = ignore; - base.MemberPattern = skipThrough; - base.RestElement = function (node, st, c) { return c(node.argument, st, "Pattern"); }; - base.ArrayPattern = function (node, st, c) { - for (var i = 0, list = node.elements; i < list.length; i += 1) { - var elt = list[i]; - - if (elt) { c(elt, st, "Pattern"); } - } - }; - base.ObjectPattern = function (node, st, c) { - for (var i = 0, list = node.properties; i < list.length; i += 1) { - var prop = list[i]; - - if (prop.type === "Property") { - if (prop.computed) { c(prop.key, st, "Expression"); } - c(prop.value, st, "Pattern"); - } else if (prop.type === "RestElement") { - c(prop.argument, st, "Pattern"); - } - } - }; - - base.Expression = skipThrough; - base.ThisExpression = base.Super = base.MetaProperty = ignore; - base.ArrayExpression = function (node, st, c) { - for (var i = 0, list = node.elements; i < list.length; i += 1) { - var elt = list[i]; - - if (elt) { c(elt, st, "Expression"); } - } - }; - base.ObjectExpression = function (node, st, c) { - for (var i = 0, list = node.properties; i < list.length; i += 1) - { - var prop = list[i]; - - c(prop, st); - } - }; - base.FunctionExpression = base.ArrowFunctionExpression = base.FunctionDeclaration; - base.SequenceExpression = function (node, st, c) { - for (var i = 0, list = node.expressions; i < list.length; i += 1) - { - var expr = list[i]; - - c(expr, st, "Expression"); - } - }; - base.TemplateLiteral = function (node, st, c) { - for (var i = 0, list = node.quasis; i < list.length; i += 1) - { - var quasi = list[i]; - - c(quasi, st); - } - - for (var i$1 = 0, list$1 = node.expressions; i$1 < list$1.length; i$1 += 1) - { - var expr = list$1[i$1]; - - c(expr, st, "Expression"); - } - }; - base.TemplateElement = ignore; - base.UnaryExpression = base.UpdateExpression = function (node, st, c) { - c(node.argument, st, "Expression"); - }; - base.BinaryExpression = base.LogicalExpression = function (node, st, c) { - c(node.left, st, "Expression"); - c(node.right, st, "Expression"); - }; - base.AssignmentExpression = base.AssignmentPattern = function (node, st, c) { - c(node.left, st, "Pattern"); - c(node.right, st, "Expression"); - }; - base.ConditionalExpression = function (node, st, c) { - c(node.test, st, "Expression"); - c(node.consequent, st, "Expression"); - c(node.alternate, st, "Expression"); - }; - base.NewExpression = base.CallExpression = function (node, st, c) { - c(node.callee, st, "Expression"); - if (node.arguments) - { for (var i = 0, list = node.arguments; i < list.length; i += 1) - { - var arg = list[i]; - - c(arg, st, "Expression"); - } } - }; - base.MemberExpression = function (node, st, c) { - c(node.object, st, "Expression"); - if (node.computed) { c(node.property, st, "Expression"); } - }; - base.ExportNamedDeclaration = base.ExportDefaultDeclaration = function (node, st, c) { - if (node.declaration) - { c(node.declaration, st, node.type === "ExportNamedDeclaration" || node.declaration.id ? "Statement" : "Expression"); } - if (node.source) { c(node.source, st, "Expression"); } - }; - base.ExportAllDeclaration = function (node, st, c) { - if (node.exported) - { c(node.exported, st); } - c(node.source, st, "Expression"); - }; - base.ImportDeclaration = function (node, st, c) { - for (var i = 0, list = node.specifiers; i < list.length; i += 1) - { - var spec = list[i]; - - c(spec, st); - } - c(node.source, st, "Expression"); - }; - base.ImportExpression = function (node, st, c) { - c(node.source, st, "Expression"); - }; - base.ImportSpecifier = base.ImportDefaultSpecifier = base.ImportNamespaceSpecifier = base.Identifier = base.PrivateIdentifier = base.Literal = ignore; - - base.TaggedTemplateExpression = function (node, st, c) { - c(node.tag, st, "Expression"); - c(node.quasi, st, "Expression"); - }; - base.ClassDeclaration = base.ClassExpression = function (node, st, c) { return c(node, st, "Class"); }; - base.Class = function (node, st, c) { - if (node.id) { c(node.id, st, "Pattern"); } - if (node.superClass) { c(node.superClass, st, "Expression"); } - c(node.body, st); - }; - base.ClassBody = function (node, st, c) { - for (var i = 0, list = node.body; i < list.length; i += 1) - { - var elt = list[i]; - - c(elt, st); - } - }; - base.MethodDefinition = base.PropertyDefinition = base.Property = function (node, st, c) { - if (node.computed) { c(node.key, st, "Expression"); } - if (node.value) { c(node.value, st, "Expression"); } - }; - - exports.ancestor = ancestor; - exports.base = base; - exports.findNodeAfter = findNodeAfter; - exports.findNodeAround = findNodeAround; - exports.findNodeAt = findNodeAt; - exports.findNodeBefore = findNodeBefore; - exports.full = full; - exports.fullAncestor = fullAncestor; - exports.make = make; - exports.recursive = recursive; - exports.simple = simple; - - Object.defineProperty(exports, '__esModule', { value: true }); - -}))); - - -/***/ }), - -/***/ 35594: -/***/ (function(__unused_webpack_module, exports) { - -(function (global, factory) { - true ? factory(exports) : - 0; -})(this, (function (exports) { 'use strict'; - - // Reserved word lists for various dialects of the language - - var reservedWords = { - 3: "abstract boolean byte char class double enum export extends final float goto implements import int interface long native package private protected public short static super synchronized throws transient volatile", - 5: "class enum extends super const export import", - 6: "enum", - strict: "implements interface let package private protected public static yield", - strictBind: "eval arguments" - }; - - // And the keywords - - var ecma5AndLessKeywords = "break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this"; - - var keywords$1 = { - 5: ecma5AndLessKeywords, - "5module": ecma5AndLessKeywords + " export import", - 6: ecma5AndLessKeywords + " const class extends export import super" - }; - - var keywordRelationalOperator = /^in(stanceof)?$/; - - // ## Character categories - - // Big ugly regular expressions that match characters in the - // whitespace, identifier, and identifier-start categories. These - // are only applied when a character is found to actually have a - // code point above 128. - // Generated by `bin/generate-identifier-regex.js`. - var nonASCIIidentifierStartChars = "\xaa\xb5\xba\xc0-\xd6\xd8-\xf6\xf8-\u02c1\u02c6-\u02d1\u02e0-\u02e4\u02ec\u02ee\u0370-\u0374\u0376\u0377\u037a-\u037d\u037f\u0386\u0388-\u038a\u038c\u038e-\u03a1\u03a3-\u03f5\u03f7-\u0481\u048a-\u052f\u0531-\u0556\u0559\u0560-\u0588\u05d0-\u05ea\u05ef-\u05f2\u0620-\u064a\u066e\u066f\u0671-\u06d3\u06d5\u06e5\u06e6\u06ee\u06ef\u06fa-\u06fc\u06ff\u0710\u0712-\u072f\u074d-\u07a5\u07b1\u07ca-\u07ea\u07f4\u07f5\u07fa\u0800-\u0815\u081a\u0824\u0828\u0840-\u0858\u0860-\u086a\u0870-\u0887\u0889-\u088e\u08a0-\u08c9\u0904-\u0939\u093d\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098c\u098f\u0990\u0993-\u09a8\u09aa-\u09b0\u09b2\u09b6-\u09b9\u09bd\u09ce\u09dc\u09dd\u09df-\u09e1\u09f0\u09f1\u09fc\u0a05-\u0a0a\u0a0f\u0a10\u0a13-\u0a28\u0a2a-\u0a30\u0a32\u0a33\u0a35\u0a36\u0a38\u0a39\u0a59-\u0a5c\u0a5e\u0a72-\u0a74\u0a85-\u0a8d\u0a8f-\u0a91\u0a93-\u0aa8\u0aaa-\u0ab0\u0ab2\u0ab3\u0ab5-\u0ab9\u0abd\u0ad0\u0ae0\u0ae1\u0af9\u0b05-\u0b0c\u0b0f\u0b10\u0b13-\u0b28\u0b2a-\u0b30\u0b32\u0b33\u0b35-\u0b39\u0b3d\u0b5c\u0b5d\u0b5f-\u0b61\u0b71\u0b83\u0b85-\u0b8a\u0b8e-\u0b90\u0b92-\u0b95\u0b99\u0b9a\u0b9c\u0b9e\u0b9f\u0ba3\u0ba4\u0ba8-\u0baa\u0bae-\u0bb9\u0bd0\u0c05-\u0c0c\u0c0e-\u0c10\u0c12-\u0c28\u0c2a-\u0c39\u0c3d\u0c58-\u0c5a\u0c5d\u0c60\u0c61\u0c80\u0c85-\u0c8c\u0c8e-\u0c90\u0c92-\u0ca8\u0caa-\u0cb3\u0cb5-\u0cb9\u0cbd\u0cdd\u0cde\u0ce0\u0ce1\u0cf1\u0cf2\u0d04-\u0d0c\u0d0e-\u0d10\u0d12-\u0d3a\u0d3d\u0d4e\u0d54-\u0d56\u0d5f-\u0d61\u0d7a-\u0d7f\u0d85-\u0d96\u0d9a-\u0db1\u0db3-\u0dbb\u0dbd\u0dc0-\u0dc6\u0e01-\u0e30\u0e32\u0e33\u0e40-\u0e46\u0e81\u0e82\u0e84\u0e86-\u0e8a\u0e8c-\u0ea3\u0ea5\u0ea7-\u0eb0\u0eb2\u0eb3\u0ebd\u0ec0-\u0ec4\u0ec6\u0edc-\u0edf\u0f00\u0f40-\u0f47\u0f49-\u0f6c\u0f88-\u0f8c\u1000-\u102a\u103f\u1050-\u1055\u105a-\u105d\u1061\u1065\u1066\u106e-\u1070\u1075-\u1081\u108e\u10a0-\u10c5\u10c7\u10cd\u10d0-\u10fa\u10fc-\u1248\u124a-\u124d\u1250-\u1256\u1258\u125a-\u125d\u1260-\u1288\u128a-\u128d\u1290-\u12b0\u12b2-\u12b5\u12b8-\u12be\u12c0\u12c2-\u12c5\u12c8-\u12d6\u12d8-\u1310\u1312-\u1315\u1318-\u135a\u1380-\u138f\u13a0-\u13f5\u13f8-\u13fd\u1401-\u166c\u166f-\u167f\u1681-\u169a\u16a0-\u16ea\u16ee-\u16f8\u1700-\u1711\u171f-\u1731\u1740-\u1751\u1760-\u176c\u176e-\u1770\u1780-\u17b3\u17d7\u17dc\u1820-\u1878\u1880-\u18a8\u18aa\u18b0-\u18f5\u1900-\u191e\u1950-\u196d\u1970-\u1974\u1980-\u19ab\u19b0-\u19c9\u1a00-\u1a16\u1a20-\u1a54\u1aa7\u1b05-\u1b33\u1b45-\u1b4c\u1b83-\u1ba0\u1bae\u1baf\u1bba-\u1be5\u1c00-\u1c23\u1c4d-\u1c4f\u1c5a-\u1c7d\u1c80-\u1c88\u1c90-\u1cba\u1cbd-\u1cbf\u1ce9-\u1cec\u1cee-\u1cf3\u1cf5\u1cf6\u1cfa\u1d00-\u1dbf\u1e00-\u1f15\u1f18-\u1f1d\u1f20-\u1f45\u1f48-\u1f4d\u1f50-\u1f57\u1f59\u1f5b\u1f5d\u1f5f-\u1f7d\u1f80-\u1fb4\u1fb6-\u1fbc\u1fbe\u1fc2-\u1fc4\u1fc6-\u1fcc\u1fd0-\u1fd3\u1fd6-\u1fdb\u1fe0-\u1fec\u1ff2-\u1ff4\u1ff6-\u1ffc\u2071\u207f\u2090-\u209c\u2102\u2107\u210a-\u2113\u2115\u2118-\u211d\u2124\u2126\u2128\u212a-\u2139\u213c-\u213f\u2145-\u2149\u214e\u2160-\u2188\u2c00-\u2ce4\u2ceb-\u2cee\u2cf2\u2cf3\u2d00-\u2d25\u2d27\u2d2d\u2d30-\u2d67\u2d6f\u2d80-\u2d96\u2da0-\u2da6\u2da8-\u2dae\u2db0-\u2db6\u2db8-\u2dbe\u2dc0-\u2dc6\u2dc8-\u2dce\u2dd0-\u2dd6\u2dd8-\u2dde\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303c\u3041-\u3096\u309b-\u309f\u30a1-\u30fa\u30fc-\u30ff\u3105-\u312f\u3131-\u318e\u31a0-\u31bf\u31f0-\u31ff\u3400-\u4dbf\u4e00-\ua48c\ua4d0-\ua4fd\ua500-\ua60c\ua610-\ua61f\ua62a\ua62b\ua640-\ua66e\ua67f-\ua69d\ua6a0-\ua6ef\ua717-\ua71f\ua722-\ua788\ua78b-\ua7ca\ua7d0\ua7d1\ua7d3\ua7d5-\ua7d9\ua7f2-\ua801\ua803-\ua805\ua807-\ua80a\ua80c-\ua822\ua840-\ua873\ua882-\ua8b3\ua8f2-\ua8f7\ua8fb\ua8fd\ua8fe\ua90a-\ua925\ua930-\ua946\ua960-\ua97c\ua984-\ua9b2\ua9cf\ua9e0-\ua9e4\ua9e6-\ua9ef\ua9fa-\ua9fe\uaa00-\uaa28\uaa40-\uaa42\uaa44-\uaa4b\uaa60-\uaa76\uaa7a\uaa7e-\uaaaf\uaab1\uaab5\uaab6\uaab9-\uaabd\uaac0\uaac2\uaadb-\uaadd\uaae0-\uaaea\uaaf2-\uaaf4\uab01-\uab06\uab09-\uab0e\uab11-\uab16\uab20-\uab26\uab28-\uab2e\uab30-\uab5a\uab5c-\uab69\uab70-\uabe2\uac00-\ud7a3\ud7b0-\ud7c6\ud7cb-\ud7fb\uf900-\ufa6d\ufa70-\ufad9\ufb00-\ufb06\ufb13-\ufb17\ufb1d\ufb1f-\ufb28\ufb2a-\ufb36\ufb38-\ufb3c\ufb3e\ufb40\ufb41\ufb43\ufb44\ufb46-\ufbb1\ufbd3-\ufd3d\ufd50-\ufd8f\ufd92-\ufdc7\ufdf0-\ufdfb\ufe70-\ufe74\ufe76-\ufefc\uff21-\uff3a\uff41-\uff5a\uff66-\uffbe\uffc2-\uffc7\uffca-\uffcf\uffd2-\uffd7\uffda-\uffdc"; - var nonASCIIidentifierChars = "\u200c\u200d\xb7\u0300-\u036f\u0387\u0483-\u0487\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u0669\u0670\u06d6-\u06dc\u06df-\u06e4\u06e7\u06e8\u06ea-\u06ed\u06f0-\u06f9\u0711\u0730-\u074a\u07a6-\u07b0\u07c0-\u07c9\u07eb-\u07f3\u07fd\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0859-\u085b\u0898-\u089f\u08ca-\u08e1\u08e3-\u0903\u093a-\u093c\u093e-\u094f\u0951-\u0957\u0962\u0963\u0966-\u096f\u0981-\u0983\u09bc\u09be-\u09c4\u09c7\u09c8\u09cb-\u09cd\u09d7\u09e2\u09e3\u09e6-\u09ef\u09fe\u0a01-\u0a03\u0a3c\u0a3e-\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a66-\u0a71\u0a75\u0a81-\u0a83\u0abc\u0abe-\u0ac5\u0ac7-\u0ac9\u0acb-\u0acd\u0ae2\u0ae3\u0ae6-\u0aef\u0afa-\u0aff\u0b01-\u0b03\u0b3c\u0b3e-\u0b44\u0b47\u0b48\u0b4b-\u0b4d\u0b55-\u0b57\u0b62\u0b63\u0b66-\u0b6f\u0b82\u0bbe-\u0bc2\u0bc6-\u0bc8\u0bca-\u0bcd\u0bd7\u0be6-\u0bef\u0c00-\u0c04\u0c3c\u0c3e-\u0c44\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0c66-\u0c6f\u0c81-\u0c83\u0cbc\u0cbe-\u0cc4\u0cc6-\u0cc8\u0cca-\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0ce6-\u0cef\u0d00-\u0d03\u0d3b\u0d3c\u0d3e-\u0d44\u0d46-\u0d48\u0d4a-\u0d4d\u0d57\u0d62\u0d63\u0d66-\u0d6f\u0d81-\u0d83\u0dca\u0dcf-\u0dd4\u0dd6\u0dd8-\u0ddf\u0de6-\u0def\u0df2\u0df3\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0e50-\u0e59\u0eb1\u0eb4-\u0ebc\u0ec8-\u0ecd\u0ed0-\u0ed9\u0f18\u0f19\u0f20-\u0f29\u0f35\u0f37\u0f39\u0f3e\u0f3f\u0f71-\u0f84\u0f86\u0f87\u0f8d-\u0f97\u0f99-\u0fbc\u0fc6\u102b-\u103e\u1040-\u1049\u1056-\u1059\u105e-\u1060\u1062-\u1064\u1067-\u106d\u1071-\u1074\u1082-\u108d\u108f-\u109d\u135d-\u135f\u1369-\u1371\u1712-\u1715\u1732-\u1734\u1752\u1753\u1772\u1773\u17b4-\u17d3\u17dd\u17e0-\u17e9\u180b-\u180d\u180f-\u1819\u18a9\u1920-\u192b\u1930-\u193b\u1946-\u194f\u19d0-\u19da\u1a17-\u1a1b\u1a55-\u1a5e\u1a60-\u1a7c\u1a7f-\u1a89\u1a90-\u1a99\u1ab0-\u1abd\u1abf-\u1ace\u1b00-\u1b04\u1b34-\u1b44\u1b50-\u1b59\u1b6b-\u1b73\u1b80-\u1b82\u1ba1-\u1bad\u1bb0-\u1bb9\u1be6-\u1bf3\u1c24-\u1c37\u1c40-\u1c49\u1c50-\u1c59\u1cd0-\u1cd2\u1cd4-\u1ce8\u1ced\u1cf4\u1cf7-\u1cf9\u1dc0-\u1dff\u203f\u2040\u2054\u20d0-\u20dc\u20e1\u20e5-\u20f0\u2cef-\u2cf1\u2d7f\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua620-\ua629\ua66f\ua674-\ua67d\ua69e\ua69f\ua6f0\ua6f1\ua802\ua806\ua80b\ua823-\ua827\ua82c\ua880\ua881\ua8b4-\ua8c5\ua8d0-\ua8d9\ua8e0-\ua8f1\ua8ff-\ua909\ua926-\ua92d\ua947-\ua953\ua980-\ua983\ua9b3-\ua9c0\ua9d0-\ua9d9\ua9e5\ua9f0-\ua9f9\uaa29-\uaa36\uaa43\uaa4c\uaa4d\uaa50-\uaa59\uaa7b-\uaa7d\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uaaeb-\uaaef\uaaf5\uaaf6\uabe3-\uabea\uabec\uabed\uabf0-\uabf9\ufb1e\ufe00-\ufe0f\ufe20-\ufe2f\ufe33\ufe34\ufe4d-\ufe4f\uff10-\uff19\uff3f"; - - var nonASCIIidentifierStart = new RegExp("[" + nonASCIIidentifierStartChars + "]"); - var nonASCIIidentifier = new RegExp("[" + nonASCIIidentifierStartChars + nonASCIIidentifierChars + "]"); - - nonASCIIidentifierStartChars = nonASCIIidentifierChars = null; - - // These are a run-length and offset encoded representation of the - // >0xffff code points that are a valid part of identifiers. The - // offset starts at 0x10000, and each pair of numbers represents an - // offset to the next range, and then a size of the range. They were - // generated by bin/generate-identifier-regex.js - - // eslint-disable-next-line comma-spacing - var astralIdentifierStartCodes = [0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,68,310,10,21,11,7,25,5,2,41,2,8,70,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,71,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,349,41,7,1,79,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,85,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,159,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,264,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,328,18,190,0,80,921,103,110,18,195,2637,96,16,1070,4050,582,8634,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,689,63,129,74,6,0,67,12,65,1,2,0,29,6135,9,1237,43,8,8936,3,2,6,2,1,2,290,46,2,18,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,1845,30,482,44,11,6,17,0,322,29,19,43,1269,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4152,8,221,3,5761,15,7472,3104,541,1507,4938]; - - // eslint-disable-next-line comma-spacing - var astralIdentifierCodes = [509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,370,1,154,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,161,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,193,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,84,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,406,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,330,3,19306,9,87,9,39,4,60,6,26,9,1014,0,2,54,8,3,82,0,12,1,19628,1,4706,45,3,22,543,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,262,6,10,9,357,0,62,13,1495,6,110,6,6,9,4759,9,787719,239]; - - // This has a complexity linear to the value of the code. The - // assumption is that looking up astral identifier characters is - // rare. - function isInAstralSet(code, set) { - var pos = 0x10000; - for (var i = 0; i < set.length; i += 2) { - pos += set[i]; - if (pos > code) { return false } - pos += set[i + 1]; - if (pos >= code) { return true } - } - } - - // Test whether a given character code starts an identifier. - - function isIdentifierStart(code, astral) { - if (code < 65) { return code === 36 } - if (code < 91) { return true } - if (code < 97) { return code === 95 } - if (code < 123) { return true } - if (code <= 0xffff) { return code >= 0xaa && nonASCIIidentifierStart.test(String.fromCharCode(code)) } - if (astral === false) { return false } - return isInAstralSet(code, astralIdentifierStartCodes) - } - - // Test whether a given character is part of an identifier. - - function isIdentifierChar(code, astral) { - if (code < 48) { return code === 36 } - if (code < 58) { return true } - if (code < 65) { return false } - if (code < 91) { return true } - if (code < 97) { return code === 95 } - if (code < 123) { return true } - if (code <= 0xffff) { return code >= 0xaa && nonASCIIidentifier.test(String.fromCharCode(code)) } - if (astral === false) { return false } - return isInAstralSet(code, astralIdentifierStartCodes) || isInAstralSet(code, astralIdentifierCodes) - } - - // ## Token types - - // The assignment of fine-grained, information-carrying type objects - // allows the tokenizer to store the information it has about a - // token in a way that is very cheap for the parser to look up. - - // All token type variables start with an underscore, to make them - // easy to recognize. - - // The `beforeExpr` property is used to disambiguate between regular - // expressions and divisions. It is set on all token types that can - // be followed by an expression (thus, a slash after them would be a - // regular expression). - // - // The `startsExpr` property is used to check if the token ends a - // `yield` expression. It is set on all token types that either can - // directly start an expression (like a quotation mark) or can - // continue an expression (like the body of a string). - // - // `isLoop` marks a keyword as starting a loop, which is important - // to know when parsing a label, in order to allow or disallow - // continue jumps to that label. - - var TokenType = function TokenType(label, conf) { - if ( conf === void 0 ) conf = {}; - - this.label = label; - this.keyword = conf.keyword; - this.beforeExpr = !!conf.beforeExpr; - this.startsExpr = !!conf.startsExpr; - this.isLoop = !!conf.isLoop; - this.isAssign = !!conf.isAssign; - this.prefix = !!conf.prefix; - this.postfix = !!conf.postfix; - this.binop = conf.binop || null; - this.updateContext = null; - }; - - function binop(name, prec) { - return new TokenType(name, {beforeExpr: true, binop: prec}) - } - var beforeExpr = {beforeExpr: true}, startsExpr = {startsExpr: true}; - - // Map keyword names to token types. - - var keywords = {}; - - // Succinct definitions of keyword token types - function kw(name, options) { - if ( options === void 0 ) options = {}; - - options.keyword = name; - return keywords[name] = new TokenType(name, options) - } - - var types$1 = { - num: new TokenType("num", startsExpr), - regexp: new TokenType("regexp", startsExpr), - string: new TokenType("string", startsExpr), - name: new TokenType("name", startsExpr), - privateId: new TokenType("privateId", startsExpr), - eof: new TokenType("eof"), - - // Punctuation token types. - bracketL: new TokenType("[", {beforeExpr: true, startsExpr: true}), - bracketR: new TokenType("]"), - braceL: new TokenType("{", {beforeExpr: true, startsExpr: true}), - braceR: new TokenType("}"), - parenL: new TokenType("(", {beforeExpr: true, startsExpr: true}), - parenR: new TokenType(")"), - comma: new TokenType(",", beforeExpr), - semi: new TokenType(";", beforeExpr), - colon: new TokenType(":", beforeExpr), - dot: new TokenType("."), - question: new TokenType("?", beforeExpr), - questionDot: new TokenType("?."), - arrow: new TokenType("=>", beforeExpr), - template: new TokenType("template"), - invalidTemplate: new TokenType("invalidTemplate"), - ellipsis: new TokenType("...", beforeExpr), - backQuote: new TokenType("`", startsExpr), - dollarBraceL: new TokenType("${", {beforeExpr: true, startsExpr: true}), - - // Operators. These carry several kinds of properties to help the - // parser use them properly (the presence of these properties is - // what categorizes them as operators). - // - // `binop`, when present, specifies that this operator is a binary - // operator, and will refer to its precedence. - // - // `prefix` and `postfix` mark the operator as a prefix or postfix - // unary operator. - // - // `isAssign` marks all of `=`, `+=`, `-=` etcetera, which act as - // binary operators with a very low precedence, that should result - // in AssignmentExpression nodes. - - eq: new TokenType("=", {beforeExpr: true, isAssign: true}), - assign: new TokenType("_=", {beforeExpr: true, isAssign: true}), - incDec: new TokenType("++/--", {prefix: true, postfix: true, startsExpr: true}), - prefix: new TokenType("!/~", {beforeExpr: true, prefix: true, startsExpr: true}), - logicalOR: binop("||", 1), - logicalAND: binop("&&", 2), - bitwiseOR: binop("|", 3), - bitwiseXOR: binop("^", 4), - bitwiseAND: binop("&", 5), - equality: binop("==/!=/===/!==", 6), - relational: binop("/<=/>=", 7), - bitShift: binop("<>/>>>", 8), - plusMin: new TokenType("+/-", {beforeExpr: true, binop: 9, prefix: true, startsExpr: true}), - modulo: binop("%", 10), - star: binop("*", 10), - slash: binop("/", 10), - starstar: new TokenType("**", {beforeExpr: true}), - coalesce: binop("??", 1), - - // Keyword token types. - _break: kw("break"), - _case: kw("case", beforeExpr), - _catch: kw("catch"), - _continue: kw("continue"), - _debugger: kw("debugger"), - _default: kw("default", beforeExpr), - _do: kw("do", {isLoop: true, beforeExpr: true}), - _else: kw("else", beforeExpr), - _finally: kw("finally"), - _for: kw("for", {isLoop: true}), - _function: kw("function", startsExpr), - _if: kw("if"), - _return: kw("return", beforeExpr), - _switch: kw("switch"), - _throw: kw("throw", beforeExpr), - _try: kw("try"), - _var: kw("var"), - _const: kw("const"), - _while: kw("while", {isLoop: true}), - _with: kw("with"), - _new: kw("new", {beforeExpr: true, startsExpr: true}), - _this: kw("this", startsExpr), - _super: kw("super", startsExpr), - _class: kw("class", startsExpr), - _extends: kw("extends", beforeExpr), - _export: kw("export"), - _import: kw("import", startsExpr), - _null: kw("null", startsExpr), - _true: kw("true", startsExpr), - _false: kw("false", startsExpr), - _in: kw("in", {beforeExpr: true, binop: 7}), - _instanceof: kw("instanceof", {beforeExpr: true, binop: 7}), - _typeof: kw("typeof", {beforeExpr: true, prefix: true, startsExpr: true}), - _void: kw("void", {beforeExpr: true, prefix: true, startsExpr: true}), - _delete: kw("delete", {beforeExpr: true, prefix: true, startsExpr: true}) - }; - - // Matches a whole line break (where CRLF is considered a single - // line break). Used to count lines. - - var lineBreak = /\r\n?|\n|\u2028|\u2029/; - var lineBreakG = new RegExp(lineBreak.source, "g"); - - function isNewLine(code) { - return code === 10 || code === 13 || code === 0x2028 || code === 0x2029 - } - - function nextLineBreak(code, from, end) { - if ( end === void 0 ) end = code.length; - - for (var i = from; i < end; i++) { - var next = code.charCodeAt(i); - if (isNewLine(next)) - { return i < end - 1 && next === 13 && code.charCodeAt(i + 1) === 10 ? i + 2 : i + 1 } - } - return -1 - } - - var nonASCIIwhitespace = /[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/; - - var skipWhiteSpace = /(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g; - - var ref = Object.prototype; - var hasOwnProperty = ref.hasOwnProperty; - var toString = ref.toString; - - var hasOwn = Object.hasOwn || (function (obj, propName) { return ( - hasOwnProperty.call(obj, propName) - ); }); - - var isArray = Array.isArray || (function (obj) { return ( - toString.call(obj) === "[object Array]" - ); }); - - function wordsRegexp(words) { - return new RegExp("^(?:" + words.replace(/ /g, "|") + ")$") - } - - var loneSurrogate = /(?:[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/; - - // These are used when `options.locations` is on, for the - // `startLoc` and `endLoc` properties. - - var Position = function Position(line, col) { - this.line = line; - this.column = col; - }; - - Position.prototype.offset = function offset (n) { - return new Position(this.line, this.column + n) - }; - - var SourceLocation = function SourceLocation(p, start, end) { - this.start = start; - this.end = end; - if (p.sourceFile !== null) { this.source = p.sourceFile; } - }; - - // The `getLineInfo` function is mostly useful when the - // `locations` option is off (for performance reasons) and you - // want to find the line/column position for a given character - // offset. `input` should be the code string that the offset refers - // into. - - function getLineInfo(input, offset) { - for (var line = 1, cur = 0;;) { - var nextBreak = nextLineBreak(input, cur, offset); - if (nextBreak < 0) { return new Position(line, offset - cur) } - ++line; - cur = nextBreak; - } - } - - // A second argument must be given to configure the parser process. - // These options are recognized (only `ecmaVersion` is required): - - var defaultOptions = { - // `ecmaVersion` indicates the ECMAScript version to parse. Must be - // either 3, 5, 6 (or 2015), 7 (2016), 8 (2017), 9 (2018), 10 - // (2019), 11 (2020), 12 (2021), 13 (2022), or `"latest"` (the - // latest version the library supports). This influences support - // for strict mode, the set of reserved words, and support for - // new syntax features. - ecmaVersion: null, - // `sourceType` indicates the mode the code should be parsed in. - // Can be either `"script"` or `"module"`. This influences global - // strict mode and parsing of `import` and `export` declarations. - sourceType: "script", - // `onInsertedSemicolon` can be a callback that will be called - // when a semicolon is automatically inserted. It will be passed - // the position of the comma as an offset, and if `locations` is - // enabled, it is given the location as a `{line, column}` object - // as second argument. - onInsertedSemicolon: null, - // `onTrailingComma` is similar to `onInsertedSemicolon`, but for - // trailing commas. - onTrailingComma: null, - // By default, reserved words are only enforced if ecmaVersion >= 5. - // Set `allowReserved` to a boolean value to explicitly turn this on - // an off. When this option has the value "never", reserved words - // and keywords can also not be used as property names. - allowReserved: null, - // When enabled, a return at the top level is not considered an - // error. - allowReturnOutsideFunction: false, - // When enabled, import/export statements are not constrained to - // appearing at the top of the program, and an import.meta expression - // in a script isn't considered an error. - allowImportExportEverywhere: false, - // By default, await identifiers are allowed to appear at the top-level scope only if ecmaVersion >= 2022. - // When enabled, await identifiers are allowed to appear at the top-level scope, - // but they are still not allowed in non-async functions. - allowAwaitOutsideFunction: null, - // When enabled, super identifiers are not constrained to - // appearing in methods and do not raise an error when they appear elsewhere. - allowSuperOutsideMethod: null, - // When enabled, hashbang directive in the beginning of file - // is allowed and treated as a line comment. - allowHashBang: false, - // When `locations` is on, `loc` properties holding objects with - // `start` and `end` properties in `{line, column}` form (with - // line being 1-based and column 0-based) will be attached to the - // nodes. - locations: false, - // A function can be passed as `onToken` option, which will - // cause Acorn to call that function with object in the same - // format as tokens returned from `tokenizer().getToken()`. Note - // that you are not allowed to call the parser from the - // callback—that will corrupt its internal state. - onToken: null, - // A function can be passed as `onComment` option, which will - // cause Acorn to call that function with `(block, text, start, - // end)` parameters whenever a comment is skipped. `block` is a - // boolean indicating whether this is a block (`/* */`) comment, - // `text` is the content of the comment, and `start` and `end` are - // character offsets that denote the start and end of the comment. - // When the `locations` option is on, two more parameters are - // passed, the full `{line, column}` locations of the start and - // end of the comments. Note that you are not allowed to call the - // parser from the callback—that will corrupt its internal state. - onComment: null, - // Nodes have their start and end characters offsets recorded in - // `start` and `end` properties (directly on the node, rather than - // the `loc` object, which holds line/column data. To also add a - // [semi-standardized][range] `range` property holding a `[start, - // end]` array with the same numbers, set the `ranges` option to - // `true`. - // - // [range]: https://bugzilla.mozilla.org/show_bug.cgi?id=745678 - ranges: false, - // It is possible to parse multiple files into a single AST by - // passing the tree produced by parsing the first file as - // `program` option in subsequent parses. This will add the - // toplevel forms of the parsed file to the `Program` (top) node - // of an existing parse tree. - program: null, - // When `locations` is on, you can pass this to record the source - // file in every node's `loc` object. - sourceFile: null, - // This value, if given, is stored in every node, whether - // `locations` is on or off. - directSourceFile: null, - // When enabled, parenthesized expressions are represented by - // (non-standard) ParenthesizedExpression nodes - preserveParens: false - }; - - // Interpret and default an options object - - var warnedAboutEcmaVersion = false; - - function getOptions(opts) { - var options = {}; - - for (var opt in defaultOptions) - { options[opt] = opts && hasOwn(opts, opt) ? opts[opt] : defaultOptions[opt]; } - - if (options.ecmaVersion === "latest") { - options.ecmaVersion = 1e8; - } else if (options.ecmaVersion == null) { - if (!warnedAboutEcmaVersion && typeof console === "object" && console.warn) { - warnedAboutEcmaVersion = true; - console.warn("Since Acorn 8.0.0, options.ecmaVersion is required.\nDefaulting to 2020, but this will stop working in the future."); - } - options.ecmaVersion = 11; - } else if (options.ecmaVersion >= 2015) { - options.ecmaVersion -= 2009; - } - - if (options.allowReserved == null) - { options.allowReserved = options.ecmaVersion < 5; } - - if (isArray(options.onToken)) { - var tokens = options.onToken; - options.onToken = function (token) { return tokens.push(token); }; - } - if (isArray(options.onComment)) - { options.onComment = pushComment(options, options.onComment); } - - return options - } - - function pushComment(options, array) { - return function(block, text, start, end, startLoc, endLoc) { - var comment = { - type: block ? "Block" : "Line", - value: text, - start: start, - end: end - }; - if (options.locations) - { comment.loc = new SourceLocation(this, startLoc, endLoc); } - if (options.ranges) - { comment.range = [start, end]; } - array.push(comment); - } - } - - // Each scope gets a bitset that may contain these flags - var - SCOPE_TOP = 1, - SCOPE_FUNCTION = 2, - SCOPE_ASYNC = 4, - SCOPE_GENERATOR = 8, - SCOPE_ARROW = 16, - SCOPE_SIMPLE_CATCH = 32, - SCOPE_SUPER = 64, - SCOPE_DIRECT_SUPER = 128, - SCOPE_CLASS_STATIC_BLOCK = 256, - SCOPE_VAR = SCOPE_TOP | SCOPE_FUNCTION | SCOPE_CLASS_STATIC_BLOCK; - - function functionFlags(async, generator) { - return SCOPE_FUNCTION | (async ? SCOPE_ASYNC : 0) | (generator ? SCOPE_GENERATOR : 0) - } - - // Used in checkLVal* and declareName to determine the type of a binding - var - BIND_NONE = 0, // Not a binding - BIND_VAR = 1, // Var-style binding - BIND_LEXICAL = 2, // Let- or const-style binding - BIND_FUNCTION = 3, // Function declaration - BIND_SIMPLE_CATCH = 4, // Simple (identifier pattern) catch binding - BIND_OUTSIDE = 5; // Special case for function names as bound inside the function - - var Parser = function Parser(options, input, startPos) { - this.options = options = getOptions(options); - this.sourceFile = options.sourceFile; - this.keywords = wordsRegexp(keywords$1[options.ecmaVersion >= 6 ? 6 : options.sourceType === "module" ? "5module" : 5]); - var reserved = ""; - if (options.allowReserved !== true) { - reserved = reservedWords[options.ecmaVersion >= 6 ? 6 : options.ecmaVersion === 5 ? 5 : 3]; - if (options.sourceType === "module") { reserved += " await"; } - } - this.reservedWords = wordsRegexp(reserved); - var reservedStrict = (reserved ? reserved + " " : "") + reservedWords.strict; - this.reservedWordsStrict = wordsRegexp(reservedStrict); - this.reservedWordsStrictBind = wordsRegexp(reservedStrict + " " + reservedWords.strictBind); - this.input = String(input); - - // Used to signal to callers of `readWord1` whether the word - // contained any escape sequences. This is needed because words with - // escape sequences must not be interpreted as keywords. - this.containsEsc = false; - - // Set up token state - - // The current position of the tokenizer in the input. - if (startPos) { - this.pos = startPos; - this.lineStart = this.input.lastIndexOf("\n", startPos - 1) + 1; - this.curLine = this.input.slice(0, this.lineStart).split(lineBreak).length; - } else { - this.pos = this.lineStart = 0; - this.curLine = 1; - } - - // Properties of the current token: - // Its type - this.type = types$1.eof; - // For tokens that include more information than their type, the value - this.value = null; - // Its start and end offset - this.start = this.end = this.pos; - // And, if locations are used, the {line, column} object - // corresponding to those offsets - this.startLoc = this.endLoc = this.curPosition(); - - // Position information for the previous token - this.lastTokEndLoc = this.lastTokStartLoc = null; - this.lastTokStart = this.lastTokEnd = this.pos; - - // The context stack is used to superficially track syntactic - // context to predict whether a regular expression is allowed in a - // given position. - this.context = this.initialContext(); - this.exprAllowed = true; - - // Figure out if it's a module code. - this.inModule = options.sourceType === "module"; - this.strict = this.inModule || this.strictDirective(this.pos); - - // Used to signify the start of a potential arrow function - this.potentialArrowAt = -1; - this.potentialArrowInForAwait = false; - - // Positions to delayed-check that yield/await does not exist in default parameters. - this.yieldPos = this.awaitPos = this.awaitIdentPos = 0; - // Labels in scope. - this.labels = []; - // Thus-far undefined exports. - this.undefinedExports = Object.create(null); - - // If enabled, skip leading hashbang line. - if (this.pos === 0 && options.allowHashBang && this.input.slice(0, 2) === "#!") - { this.skipLineComment(2); } - - // Scope tracking for duplicate variable names (see scope.js) - this.scopeStack = []; - this.enterScope(SCOPE_TOP); - - // For RegExp validation - this.regexpState = null; - - // The stack of private names. - // Each element has two properties: 'declared' and 'used'. - // When it exited from the outermost class definition, all used private names must be declared. - this.privateNameStack = []; - }; - - var prototypeAccessors = { inFunction: { configurable: true },inGenerator: { configurable: true },inAsync: { configurable: true },canAwait: { configurable: true },allowSuper: { configurable: true },allowDirectSuper: { configurable: true },treatFunctionsAsVar: { configurable: true },allowNewDotTarget: { configurable: true },inClassStaticBlock: { configurable: true } }; - - Parser.prototype.parse = function parse () { - var node = this.options.program || this.startNode(); - this.nextToken(); - return this.parseTopLevel(node) - }; - - prototypeAccessors.inFunction.get = function () { return (this.currentVarScope().flags & SCOPE_FUNCTION) > 0 }; - - prototypeAccessors.inGenerator.get = function () { return (this.currentVarScope().flags & SCOPE_GENERATOR) > 0 && !this.currentVarScope().inClassFieldInit }; - - prototypeAccessors.inAsync.get = function () { return (this.currentVarScope().flags & SCOPE_ASYNC) > 0 && !this.currentVarScope().inClassFieldInit }; - - prototypeAccessors.canAwait.get = function () { - for (var i = this.scopeStack.length - 1; i >= 0; i--) { - var scope = this.scopeStack[i]; - if (scope.inClassFieldInit || scope.flags & SCOPE_CLASS_STATIC_BLOCK) { return false } - if (scope.flags & SCOPE_FUNCTION) { return (scope.flags & SCOPE_ASYNC) > 0 } - } - return (this.inModule && this.options.ecmaVersion >= 13) || this.options.allowAwaitOutsideFunction - }; - - prototypeAccessors.allowSuper.get = function () { - var ref = this.currentThisScope(); - var flags = ref.flags; - var inClassFieldInit = ref.inClassFieldInit; - return (flags & SCOPE_SUPER) > 0 || inClassFieldInit || this.options.allowSuperOutsideMethod - }; - - prototypeAccessors.allowDirectSuper.get = function () { return (this.currentThisScope().flags & SCOPE_DIRECT_SUPER) > 0 }; - - prototypeAccessors.treatFunctionsAsVar.get = function () { return this.treatFunctionsAsVarInScope(this.currentScope()) }; - - prototypeAccessors.allowNewDotTarget.get = function () { - var ref = this.currentThisScope(); - var flags = ref.flags; - var inClassFieldInit = ref.inClassFieldInit; - return (flags & (SCOPE_FUNCTION | SCOPE_CLASS_STATIC_BLOCK)) > 0 || inClassFieldInit - }; - - prototypeAccessors.inClassStaticBlock.get = function () { - return (this.currentVarScope().flags & SCOPE_CLASS_STATIC_BLOCK) > 0 - }; - - Parser.extend = function extend () { - var plugins = [], len = arguments.length; - while ( len-- ) plugins[ len ] = arguments[ len ]; - - var cls = this; - for (var i = 0; i < plugins.length; i++) { cls = plugins[i](cls); } - return cls - }; - - Parser.parse = function parse (input, options) { - return new this(options, input).parse() - }; - - Parser.parseExpressionAt = function parseExpressionAt (input, pos, options) { - var parser = new this(options, input, pos); - parser.nextToken(); - return parser.parseExpression() - }; - - Parser.tokenizer = function tokenizer (input, options) { - return new this(options, input) - }; - - Object.defineProperties( Parser.prototype, prototypeAccessors ); - - var pp$9 = Parser.prototype; - - // ## Parser utilities - - var literal = /^(?:'((?:\\.|[^'\\])*?)'|"((?:\\.|[^"\\])*?)")/; - pp$9.strictDirective = function(start) { - for (;;) { - // Try to find string literal. - skipWhiteSpace.lastIndex = start; - start += skipWhiteSpace.exec(this.input)[0].length; - var match = literal.exec(this.input.slice(start)); - if (!match) { return false } - if ((match[1] || match[2]) === "use strict") { - skipWhiteSpace.lastIndex = start + match[0].length; - var spaceAfter = skipWhiteSpace.exec(this.input), end = spaceAfter.index + spaceAfter[0].length; - var next = this.input.charAt(end); - return next === ";" || next === "}" || - (lineBreak.test(spaceAfter[0]) && - !(/[(`.[+\-/*%<>=,?^&]/.test(next) || next === "!" && this.input.charAt(end + 1) === "=")) - } - start += match[0].length; - - // Skip semicolon, if any. - skipWhiteSpace.lastIndex = start; - start += skipWhiteSpace.exec(this.input)[0].length; - if (this.input[start] === ";") - { start++; } - } - }; - - // Predicate that tests whether the next token is of the given - // type, and if yes, consumes it as a side effect. - - pp$9.eat = function(type) { - if (this.type === type) { - this.next(); - return true - } else { - return false - } - }; - - // Tests whether parsed token is a contextual keyword. - - pp$9.isContextual = function(name) { - return this.type === types$1.name && this.value === name && !this.containsEsc - }; - - // Consumes contextual keyword if possible. - - pp$9.eatContextual = function(name) { - if (!this.isContextual(name)) { return false } - this.next(); - return true - }; - - // Asserts that following token is given contextual keyword. - - pp$9.expectContextual = function(name) { - if (!this.eatContextual(name)) { this.unexpected(); } - }; - - // Test whether a semicolon can be inserted at the current position. - - pp$9.canInsertSemicolon = function() { - return this.type === types$1.eof || - this.type === types$1.braceR || - lineBreak.test(this.input.slice(this.lastTokEnd, this.start)) - }; - - pp$9.insertSemicolon = function() { - if (this.canInsertSemicolon()) { - if (this.options.onInsertedSemicolon) - { this.options.onInsertedSemicolon(this.lastTokEnd, this.lastTokEndLoc); } - return true - } - }; - - // Consume a semicolon, or, failing that, see if we are allowed to - // pretend that there is a semicolon at this position. - - pp$9.semicolon = function() { - if (!this.eat(types$1.semi) && !this.insertSemicolon()) { this.unexpected(); } - }; - - pp$9.afterTrailingComma = function(tokType, notNext) { - if (this.type === tokType) { - if (this.options.onTrailingComma) - { this.options.onTrailingComma(this.lastTokStart, this.lastTokStartLoc); } - if (!notNext) - { this.next(); } - return true - } - }; - - // Expect a token of a given type. If found, consume it, otherwise, - // raise an unexpected token error. - - pp$9.expect = function(type) { - this.eat(type) || this.unexpected(); - }; - - // Raise an unexpected token error. - - pp$9.unexpected = function(pos) { - this.raise(pos != null ? pos : this.start, "Unexpected token"); - }; - - function DestructuringErrors() { - this.shorthandAssign = - this.trailingComma = - this.parenthesizedAssign = - this.parenthesizedBind = - this.doubleProto = - -1; - } - - pp$9.checkPatternErrors = function(refDestructuringErrors, isAssign) { - if (!refDestructuringErrors) { return } - if (refDestructuringErrors.trailingComma > -1) - { this.raiseRecoverable(refDestructuringErrors.trailingComma, "Comma is not permitted after the rest element"); } - var parens = isAssign ? refDestructuringErrors.parenthesizedAssign : refDestructuringErrors.parenthesizedBind; - if (parens > -1) { this.raiseRecoverable(parens, "Parenthesized pattern"); } - }; - - pp$9.checkExpressionErrors = function(refDestructuringErrors, andThrow) { - if (!refDestructuringErrors) { return false } - var shorthandAssign = refDestructuringErrors.shorthandAssign; - var doubleProto = refDestructuringErrors.doubleProto; - if (!andThrow) { return shorthandAssign >= 0 || doubleProto >= 0 } - if (shorthandAssign >= 0) - { this.raise(shorthandAssign, "Shorthand property assignments are valid only in destructuring patterns"); } - if (doubleProto >= 0) - { this.raiseRecoverable(doubleProto, "Redefinition of __proto__ property"); } - }; - - pp$9.checkYieldAwaitInDefaultParams = function() { - if (this.yieldPos && (!this.awaitPos || this.yieldPos < this.awaitPos)) - { this.raise(this.yieldPos, "Yield expression cannot be a default value"); } - if (this.awaitPos) - { this.raise(this.awaitPos, "Await expression cannot be a default value"); } - }; - - pp$9.isSimpleAssignTarget = function(expr) { - if (expr.type === "ParenthesizedExpression") - { return this.isSimpleAssignTarget(expr.expression) } - return expr.type === "Identifier" || expr.type === "MemberExpression" - }; - - var pp$8 = Parser.prototype; - - // ### Statement parsing - - // Parse a program. Initializes the parser, reads any number of - // statements, and wraps them in a Program node. Optionally takes a - // `program` argument. If present, the statements will be appended - // to its body instead of creating a new node. - - pp$8.parseTopLevel = function(node) { - var exports = Object.create(null); - if (!node.body) { node.body = []; } - while (this.type !== types$1.eof) { - var stmt = this.parseStatement(null, true, exports); - node.body.push(stmt); - } - if (this.inModule) - { for (var i = 0, list = Object.keys(this.undefinedExports); i < list.length; i += 1) - { - var name = list[i]; - - this.raiseRecoverable(this.undefinedExports[name].start, ("Export '" + name + "' is not defined")); - } } - this.adaptDirectivePrologue(node.body); - this.next(); - node.sourceType = this.options.sourceType; - return this.finishNode(node, "Program") - }; - - var loopLabel = {kind: "loop"}, switchLabel = {kind: "switch"}; - - pp$8.isLet = function(context) { - if (this.options.ecmaVersion < 6 || !this.isContextual("let")) { return false } - skipWhiteSpace.lastIndex = this.pos; - var skip = skipWhiteSpace.exec(this.input); - var next = this.pos + skip[0].length, nextCh = this.input.charCodeAt(next); - // For ambiguous cases, determine if a LexicalDeclaration (or only a - // Statement) is allowed here. If context is not empty then only a Statement - // is allowed. However, `let [` is an explicit negative lookahead for - // ExpressionStatement, so special-case it first. - if (nextCh === 91 || nextCh === 92 || nextCh > 0xd7ff && nextCh < 0xdc00) { return true } // '[', '/', astral - if (context) { return false } - - if (nextCh === 123) { return true } // '{' - if (isIdentifierStart(nextCh, true)) { - var pos = next + 1; - while (isIdentifierChar(nextCh = this.input.charCodeAt(pos), true)) { ++pos; } - if (nextCh === 92 || nextCh > 0xd7ff && nextCh < 0xdc00) { return true } - var ident = this.input.slice(next, pos); - if (!keywordRelationalOperator.test(ident)) { return true } - } - return false - }; - - // check 'async [no LineTerminator here] function' - // - 'async /*foo*/ function' is OK. - // - 'async /*\n*/ function' is invalid. - pp$8.isAsyncFunction = function() { - if (this.options.ecmaVersion < 8 || !this.isContextual("async")) - { return false } - - skipWhiteSpace.lastIndex = this.pos; - var skip = skipWhiteSpace.exec(this.input); - var next = this.pos + skip[0].length, after; - return !lineBreak.test(this.input.slice(this.pos, next)) && - this.input.slice(next, next + 8) === "function" && - (next + 8 === this.input.length || - !(isIdentifierChar(after = this.input.charCodeAt(next + 8)) || after > 0xd7ff && after < 0xdc00)) - }; - - // Parse a single statement. - // - // If expecting a statement and finding a slash operator, parse a - // regular expression literal. This is to handle cases like - // `if (foo) /blah/.exec(foo)`, where looking at the previous token - // does not help. - - pp$8.parseStatement = function(context, topLevel, exports) { - var starttype = this.type, node = this.startNode(), kind; - - if (this.isLet(context)) { - starttype = types$1._var; - kind = "let"; - } - - // Most types of statements are recognized by the keyword they - // start with. Many are trivial to parse, some require a bit of - // complexity. - - switch (starttype) { - case types$1._break: case types$1._continue: return this.parseBreakContinueStatement(node, starttype.keyword) - case types$1._debugger: return this.parseDebuggerStatement(node) - case types$1._do: return this.parseDoStatement(node) - case types$1._for: return this.parseForStatement(node) - case types$1._function: - // Function as sole body of either an if statement or a labeled statement - // works, but not when it is part of a labeled statement that is the sole - // body of an if statement. - if ((context && (this.strict || context !== "if" && context !== "label")) && this.options.ecmaVersion >= 6) { this.unexpected(); } - return this.parseFunctionStatement(node, false, !context) - case types$1._class: - if (context) { this.unexpected(); } - return this.parseClass(node, true) - case types$1._if: return this.parseIfStatement(node) - case types$1._return: return this.parseReturnStatement(node) - case types$1._switch: return this.parseSwitchStatement(node) - case types$1._throw: return this.parseThrowStatement(node) - case types$1._try: return this.parseTryStatement(node) - case types$1._const: case types$1._var: - kind = kind || this.value; - if (context && kind !== "var") { this.unexpected(); } - return this.parseVarStatement(node, kind) - case types$1._while: return this.parseWhileStatement(node) - case types$1._with: return this.parseWithStatement(node) - case types$1.braceL: return this.parseBlock(true, node) - case types$1.semi: return this.parseEmptyStatement(node) - case types$1._export: - case types$1._import: - if (this.options.ecmaVersion > 10 && starttype === types$1._import) { - skipWhiteSpace.lastIndex = this.pos; - var skip = skipWhiteSpace.exec(this.input); - var next = this.pos + skip[0].length, nextCh = this.input.charCodeAt(next); - if (nextCh === 40 || nextCh === 46) // '(' or '.' - { return this.parseExpressionStatement(node, this.parseExpression()) } - } - - if (!this.options.allowImportExportEverywhere) { - if (!topLevel) - { this.raise(this.start, "'import' and 'export' may only appear at the top level"); } - if (!this.inModule) - { this.raise(this.start, "'import' and 'export' may appear only with 'sourceType: module'"); } - } - return starttype === types$1._import ? this.parseImport(node) : this.parseExport(node, exports) - - // If the statement does not start with a statement keyword or a - // brace, it's an ExpressionStatement or LabeledStatement. We - // simply start parsing an expression, and afterwards, if the - // next token is a colon and the expression was a simple - // Identifier node, we switch to interpreting it as a label. - default: - if (this.isAsyncFunction()) { - if (context) { this.unexpected(); } - this.next(); - return this.parseFunctionStatement(node, true, !context) - } - - var maybeName = this.value, expr = this.parseExpression(); - if (starttype === types$1.name && expr.type === "Identifier" && this.eat(types$1.colon)) - { return this.parseLabeledStatement(node, maybeName, expr, context) } - else { return this.parseExpressionStatement(node, expr) } - } - }; - - pp$8.parseBreakContinueStatement = function(node, keyword) { - var isBreak = keyword === "break"; - this.next(); - if (this.eat(types$1.semi) || this.insertSemicolon()) { node.label = null; } - else if (this.type !== types$1.name) { this.unexpected(); } - else { - node.label = this.parseIdent(); - this.semicolon(); - } - - // Verify that there is an actual destination to break or - // continue to. - var i = 0; - for (; i < this.labels.length; ++i) { - var lab = this.labels[i]; - if (node.label == null || lab.name === node.label.name) { - if (lab.kind != null && (isBreak || lab.kind === "loop")) { break } - if (node.label && isBreak) { break } - } - } - if (i === this.labels.length) { this.raise(node.start, "Unsyntactic " + keyword); } - return this.finishNode(node, isBreak ? "BreakStatement" : "ContinueStatement") - }; - - pp$8.parseDebuggerStatement = function(node) { - this.next(); - this.semicolon(); - return this.finishNode(node, "DebuggerStatement") - }; - - pp$8.parseDoStatement = function(node) { - this.next(); - this.labels.push(loopLabel); - node.body = this.parseStatement("do"); - this.labels.pop(); - this.expect(types$1._while); - node.test = this.parseParenExpression(); - if (this.options.ecmaVersion >= 6) - { this.eat(types$1.semi); } - else - { this.semicolon(); } - return this.finishNode(node, "DoWhileStatement") - }; - - // Disambiguating between a `for` and a `for`/`in` or `for`/`of` - // loop is non-trivial. Basically, we have to parse the init `var` - // statement or expression, disallowing the `in` operator (see - // the second parameter to `parseExpression`), and then check - // whether the next token is `in` or `of`. When there is no init - // part (semicolon immediately after the opening parenthesis), it - // is a regular `for` loop. - - pp$8.parseForStatement = function(node) { - this.next(); - var awaitAt = (this.options.ecmaVersion >= 9 && this.canAwait && this.eatContextual("await")) ? this.lastTokStart : -1; - this.labels.push(loopLabel); - this.enterScope(0); - this.expect(types$1.parenL); - if (this.type === types$1.semi) { - if (awaitAt > -1) { this.unexpected(awaitAt); } - return this.parseFor(node, null) - } - var isLet = this.isLet(); - if (this.type === types$1._var || this.type === types$1._const || isLet) { - var init$1 = this.startNode(), kind = isLet ? "let" : this.value; - this.next(); - this.parseVar(init$1, true, kind); - this.finishNode(init$1, "VariableDeclaration"); - if ((this.type === types$1._in || (this.options.ecmaVersion >= 6 && this.isContextual("of"))) && init$1.declarations.length === 1) { - if (this.options.ecmaVersion >= 9) { - if (this.type === types$1._in) { - if (awaitAt > -1) { this.unexpected(awaitAt); } - } else { node.await = awaitAt > -1; } - } - return this.parseForIn(node, init$1) - } - if (awaitAt > -1) { this.unexpected(awaitAt); } - return this.parseFor(node, init$1) - } - var startsWithLet = this.isContextual("let"), isForOf = false; - var refDestructuringErrors = new DestructuringErrors; - var init = this.parseExpression(awaitAt > -1 ? "await" : true, refDestructuringErrors); - if (this.type === types$1._in || (isForOf = this.options.ecmaVersion >= 6 && this.isContextual("of"))) { - if (this.options.ecmaVersion >= 9) { - if (this.type === types$1._in) { - if (awaitAt > -1) { this.unexpected(awaitAt); } - } else { node.await = awaitAt > -1; } - } - if (startsWithLet && isForOf) { this.raise(init.start, "The left-hand side of a for-of loop may not start with 'let'."); } - this.toAssignable(init, false, refDestructuringErrors); - this.checkLValPattern(init); - return this.parseForIn(node, init) - } else { - this.checkExpressionErrors(refDestructuringErrors, true); - } - if (awaitAt > -1) { this.unexpected(awaitAt); } - return this.parseFor(node, init) - }; - - pp$8.parseFunctionStatement = function(node, isAsync, declarationPosition) { - this.next(); - return this.parseFunction(node, FUNC_STATEMENT | (declarationPosition ? 0 : FUNC_HANGING_STATEMENT), false, isAsync) - }; - - pp$8.parseIfStatement = function(node) { - this.next(); - node.test = this.parseParenExpression(); - // allow function declarations in branches, but only in non-strict mode - node.consequent = this.parseStatement("if"); - node.alternate = this.eat(types$1._else) ? this.parseStatement("if") : null; - return this.finishNode(node, "IfStatement") - }; - - pp$8.parseReturnStatement = function(node) { - if (!this.inFunction && !this.options.allowReturnOutsideFunction) - { this.raise(this.start, "'return' outside of function"); } - this.next(); - - // In `return` (and `break`/`continue`), the keywords with - // optional arguments, we eagerly look for a semicolon or the - // possibility to insert one. - - if (this.eat(types$1.semi) || this.insertSemicolon()) { node.argument = null; } - else { node.argument = this.parseExpression(); this.semicolon(); } - return this.finishNode(node, "ReturnStatement") - }; - - pp$8.parseSwitchStatement = function(node) { - this.next(); - node.discriminant = this.parseParenExpression(); - node.cases = []; - this.expect(types$1.braceL); - this.labels.push(switchLabel); - this.enterScope(0); - - // Statements under must be grouped (by label) in SwitchCase - // nodes. `cur` is used to keep the node that we are currently - // adding statements to. - - var cur; - for (var sawDefault = false; this.type !== types$1.braceR;) { - if (this.type === types$1._case || this.type === types$1._default) { - var isCase = this.type === types$1._case; - if (cur) { this.finishNode(cur, "SwitchCase"); } - node.cases.push(cur = this.startNode()); - cur.consequent = []; - this.next(); - if (isCase) { - cur.test = this.parseExpression(); - } else { - if (sawDefault) { this.raiseRecoverable(this.lastTokStart, "Multiple default clauses"); } - sawDefault = true; - cur.test = null; - } - this.expect(types$1.colon); - } else { - if (!cur) { this.unexpected(); } - cur.consequent.push(this.parseStatement(null)); - } - } - this.exitScope(); - if (cur) { this.finishNode(cur, "SwitchCase"); } - this.next(); // Closing brace - this.labels.pop(); - return this.finishNode(node, "SwitchStatement") - }; - - pp$8.parseThrowStatement = function(node) { - this.next(); - if (lineBreak.test(this.input.slice(this.lastTokEnd, this.start))) - { this.raise(this.lastTokEnd, "Illegal newline after throw"); } - node.argument = this.parseExpression(); - this.semicolon(); - return this.finishNode(node, "ThrowStatement") - }; - - // Reused empty array added for node fields that are always empty. - - var empty$1 = []; - - pp$8.parseTryStatement = function(node) { - this.next(); - node.block = this.parseBlock(); - node.handler = null; - if (this.type === types$1._catch) { - var clause = this.startNode(); - this.next(); - if (this.eat(types$1.parenL)) { - clause.param = this.parseBindingAtom(); - var simple = clause.param.type === "Identifier"; - this.enterScope(simple ? SCOPE_SIMPLE_CATCH : 0); - this.checkLValPattern(clause.param, simple ? BIND_SIMPLE_CATCH : BIND_LEXICAL); - this.expect(types$1.parenR); - } else { - if (this.options.ecmaVersion < 10) { this.unexpected(); } - clause.param = null; - this.enterScope(0); - } - clause.body = this.parseBlock(false); - this.exitScope(); - node.handler = this.finishNode(clause, "CatchClause"); - } - node.finalizer = this.eat(types$1._finally) ? this.parseBlock() : null; - if (!node.handler && !node.finalizer) - { this.raise(node.start, "Missing catch or finally clause"); } - return this.finishNode(node, "TryStatement") - }; - - pp$8.parseVarStatement = function(node, kind) { - this.next(); - this.parseVar(node, false, kind); - this.semicolon(); - return this.finishNode(node, "VariableDeclaration") - }; - - pp$8.parseWhileStatement = function(node) { - this.next(); - node.test = this.parseParenExpression(); - this.labels.push(loopLabel); - node.body = this.parseStatement("while"); - this.labels.pop(); - return this.finishNode(node, "WhileStatement") - }; - - pp$8.parseWithStatement = function(node) { - if (this.strict) { this.raise(this.start, "'with' in strict mode"); } - this.next(); - node.object = this.parseParenExpression(); - node.body = this.parseStatement("with"); - return this.finishNode(node, "WithStatement") - }; - - pp$8.parseEmptyStatement = function(node) { - this.next(); - return this.finishNode(node, "EmptyStatement") - }; - - pp$8.parseLabeledStatement = function(node, maybeName, expr, context) { - for (var i$1 = 0, list = this.labels; i$1 < list.length; i$1 += 1) - { - var label = list[i$1]; - - if (label.name === maybeName) - { this.raise(expr.start, "Label '" + maybeName + "' is already declared"); - } } - var kind = this.type.isLoop ? "loop" : this.type === types$1._switch ? "switch" : null; - for (var i = this.labels.length - 1; i >= 0; i--) { - var label$1 = this.labels[i]; - if (label$1.statementStart === node.start) { - // Update information about previous labels on this node - label$1.statementStart = this.start; - label$1.kind = kind; - } else { break } - } - this.labels.push({name: maybeName, kind: kind, statementStart: this.start}); - node.body = this.parseStatement(context ? context.indexOf("label") === -1 ? context + "label" : context : "label"); - this.labels.pop(); - node.label = expr; - return this.finishNode(node, "LabeledStatement") - }; - - pp$8.parseExpressionStatement = function(node, expr) { - node.expression = expr; - this.semicolon(); - return this.finishNode(node, "ExpressionStatement") - }; - - // Parse a semicolon-enclosed block of statements, handling `"use - // strict"` declarations when `allowStrict` is true (used for - // function bodies). - - pp$8.parseBlock = function(createNewLexicalScope, node, exitStrict) { - if ( createNewLexicalScope === void 0 ) createNewLexicalScope = true; - if ( node === void 0 ) node = this.startNode(); - - node.body = []; - this.expect(types$1.braceL); - if (createNewLexicalScope) { this.enterScope(0); } - while (this.type !== types$1.braceR) { - var stmt = this.parseStatement(null); - node.body.push(stmt); - } - if (exitStrict) { this.strict = false; } - this.next(); - if (createNewLexicalScope) { this.exitScope(); } - return this.finishNode(node, "BlockStatement") - }; - - // Parse a regular `for` loop. The disambiguation code in - // `parseStatement` will already have parsed the init statement or - // expression. - - pp$8.parseFor = function(node, init) { - node.init = init; - this.expect(types$1.semi); - node.test = this.type === types$1.semi ? null : this.parseExpression(); - this.expect(types$1.semi); - node.update = this.type === types$1.parenR ? null : this.parseExpression(); - this.expect(types$1.parenR); - node.body = this.parseStatement("for"); - this.exitScope(); - this.labels.pop(); - return this.finishNode(node, "ForStatement") - }; - - // Parse a `for`/`in` and `for`/`of` loop, which are almost - // same from parser's perspective. - - pp$8.parseForIn = function(node, init) { - var isForIn = this.type === types$1._in; - this.next(); - - if ( - init.type === "VariableDeclaration" && - init.declarations[0].init != null && - ( - !isForIn || - this.options.ecmaVersion < 8 || - this.strict || - init.kind !== "var" || - init.declarations[0].id.type !== "Identifier" - ) - ) { - this.raise( - init.start, - ((isForIn ? "for-in" : "for-of") + " loop variable declaration may not have an initializer") - ); - } - node.left = init; - node.right = isForIn ? this.parseExpression() : this.parseMaybeAssign(); - this.expect(types$1.parenR); - node.body = this.parseStatement("for"); - this.exitScope(); - this.labels.pop(); - return this.finishNode(node, isForIn ? "ForInStatement" : "ForOfStatement") - }; - - // Parse a list of variable declarations. - - pp$8.parseVar = function(node, isFor, kind) { - node.declarations = []; - node.kind = kind; - for (;;) { - var decl = this.startNode(); - this.parseVarId(decl, kind); - if (this.eat(types$1.eq)) { - decl.init = this.parseMaybeAssign(isFor); - } else if (kind === "const" && !(this.type === types$1._in || (this.options.ecmaVersion >= 6 && this.isContextual("of")))) { - this.unexpected(); - } else if (decl.id.type !== "Identifier" && !(isFor && (this.type === types$1._in || this.isContextual("of")))) { - this.raise(this.lastTokEnd, "Complex binding patterns require an initialization value"); - } else { - decl.init = null; - } - node.declarations.push(this.finishNode(decl, "VariableDeclarator")); - if (!this.eat(types$1.comma)) { break } - } - return node - }; - - pp$8.parseVarId = function(decl, kind) { - decl.id = this.parseBindingAtom(); - this.checkLValPattern(decl.id, kind === "var" ? BIND_VAR : BIND_LEXICAL, false); - }; - - var FUNC_STATEMENT = 1, FUNC_HANGING_STATEMENT = 2, FUNC_NULLABLE_ID = 4; - - // Parse a function declaration or literal (depending on the - // `statement & FUNC_STATEMENT`). - - // Remove `allowExpressionBody` for 7.0.0, as it is only called with false - pp$8.parseFunction = function(node, statement, allowExpressionBody, isAsync, forInit) { - this.initFunction(node); - if (this.options.ecmaVersion >= 9 || this.options.ecmaVersion >= 6 && !isAsync) { - if (this.type === types$1.star && (statement & FUNC_HANGING_STATEMENT)) - { this.unexpected(); } - node.generator = this.eat(types$1.star); - } - if (this.options.ecmaVersion >= 8) - { node.async = !!isAsync; } - - if (statement & FUNC_STATEMENT) { - node.id = (statement & FUNC_NULLABLE_ID) && this.type !== types$1.name ? null : this.parseIdent(); - if (node.id && !(statement & FUNC_HANGING_STATEMENT)) - // If it is a regular function declaration in sloppy mode, then it is - // subject to Annex B semantics (BIND_FUNCTION). Otherwise, the binding - // mode depends on properties of the current scope (see - // treatFunctionsAsVar). - { this.checkLValSimple(node.id, (this.strict || node.generator || node.async) ? this.treatFunctionsAsVar ? BIND_VAR : BIND_LEXICAL : BIND_FUNCTION); } - } - - var oldYieldPos = this.yieldPos, oldAwaitPos = this.awaitPos, oldAwaitIdentPos = this.awaitIdentPos; - this.yieldPos = 0; - this.awaitPos = 0; - this.awaitIdentPos = 0; - this.enterScope(functionFlags(node.async, node.generator)); - - if (!(statement & FUNC_STATEMENT)) - { node.id = this.type === types$1.name ? this.parseIdent() : null; } - - this.parseFunctionParams(node); - this.parseFunctionBody(node, allowExpressionBody, false, forInit); - - this.yieldPos = oldYieldPos; - this.awaitPos = oldAwaitPos; - this.awaitIdentPos = oldAwaitIdentPos; - return this.finishNode(node, (statement & FUNC_STATEMENT) ? "FunctionDeclaration" : "FunctionExpression") - }; - - pp$8.parseFunctionParams = function(node) { - this.expect(types$1.parenL); - node.params = this.parseBindingList(types$1.parenR, false, this.options.ecmaVersion >= 8); - this.checkYieldAwaitInDefaultParams(); - }; - - // Parse a class declaration or literal (depending on the - // `isStatement` parameter). - - pp$8.parseClass = function(node, isStatement) { - this.next(); - - // ecma-262 14.6 Class Definitions - // A class definition is always strict mode code. - var oldStrict = this.strict; - this.strict = true; - - this.parseClassId(node, isStatement); - this.parseClassSuper(node); - var privateNameMap = this.enterClassBody(); - var classBody = this.startNode(); - var hadConstructor = false; - classBody.body = []; - this.expect(types$1.braceL); - while (this.type !== types$1.braceR) { - var element = this.parseClassElement(node.superClass !== null); - if (element) { - classBody.body.push(element); - if (element.type === "MethodDefinition" && element.kind === "constructor") { - if (hadConstructor) { this.raise(element.start, "Duplicate constructor in the same class"); } - hadConstructor = true; - } else if (element.key && element.key.type === "PrivateIdentifier" && isPrivateNameConflicted(privateNameMap, element)) { - this.raiseRecoverable(element.key.start, ("Identifier '#" + (element.key.name) + "' has already been declared")); - } - } - } - this.strict = oldStrict; - this.next(); - node.body = this.finishNode(classBody, "ClassBody"); - this.exitClassBody(); - return this.finishNode(node, isStatement ? "ClassDeclaration" : "ClassExpression") - }; - - pp$8.parseClassElement = function(constructorAllowsSuper) { - if (this.eat(types$1.semi)) { return null } - - var ecmaVersion = this.options.ecmaVersion; - var node = this.startNode(); - var keyName = ""; - var isGenerator = false; - var isAsync = false; - var kind = "method"; - var isStatic = false; - - if (this.eatContextual("static")) { - // Parse static init block - if (ecmaVersion >= 13 && this.eat(types$1.braceL)) { - this.parseClassStaticBlock(node); - return node - } - if (this.isClassElementNameStart() || this.type === types$1.star) { - isStatic = true; - } else { - keyName = "static"; - } - } - node.static = isStatic; - if (!keyName && ecmaVersion >= 8 && this.eatContextual("async")) { - if ((this.isClassElementNameStart() || this.type === types$1.star) && !this.canInsertSemicolon()) { - isAsync = true; - } else { - keyName = "async"; - } - } - if (!keyName && (ecmaVersion >= 9 || !isAsync) && this.eat(types$1.star)) { - isGenerator = true; - } - if (!keyName && !isAsync && !isGenerator) { - var lastValue = this.value; - if (this.eatContextual("get") || this.eatContextual("set")) { - if (this.isClassElementNameStart()) { - kind = lastValue; - } else { - keyName = lastValue; - } - } - } - - // Parse element name - if (keyName) { - // 'async', 'get', 'set', or 'static' were not a keyword contextually. - // The last token is any of those. Make it the element name. - node.computed = false; - node.key = this.startNodeAt(this.lastTokStart, this.lastTokStartLoc); - node.key.name = keyName; - this.finishNode(node.key, "Identifier"); - } else { - this.parseClassElementName(node); - } - - // Parse element value - if (ecmaVersion < 13 || this.type === types$1.parenL || kind !== "method" || isGenerator || isAsync) { - var isConstructor = !node.static && checkKeyName(node, "constructor"); - var allowsDirectSuper = isConstructor && constructorAllowsSuper; - // Couldn't move this check into the 'parseClassMethod' method for backward compatibility. - if (isConstructor && kind !== "method") { this.raise(node.key.start, "Constructor can't have get/set modifier"); } - node.kind = isConstructor ? "constructor" : kind; - this.parseClassMethod(node, isGenerator, isAsync, allowsDirectSuper); - } else { - this.parseClassField(node); - } - - return node - }; - - pp$8.isClassElementNameStart = function() { - return ( - this.type === types$1.name || - this.type === types$1.privateId || - this.type === types$1.num || - this.type === types$1.string || - this.type === types$1.bracketL || - this.type.keyword - ) - }; - - pp$8.parseClassElementName = function(element) { - if (this.type === types$1.privateId) { - if (this.value === "constructor") { - this.raise(this.start, "Classes can't have an element named '#constructor'"); - } - element.computed = false; - element.key = this.parsePrivateIdent(); - } else { - this.parsePropertyName(element); - } - }; - - pp$8.parseClassMethod = function(method, isGenerator, isAsync, allowsDirectSuper) { - // Check key and flags - var key = method.key; - if (method.kind === "constructor") { - if (isGenerator) { this.raise(key.start, "Constructor can't be a generator"); } - if (isAsync) { this.raise(key.start, "Constructor can't be an async method"); } - } else if (method.static && checkKeyName(method, "prototype")) { - this.raise(key.start, "Classes may not have a static property named prototype"); - } - - // Parse value - var value = method.value = this.parseMethod(isGenerator, isAsync, allowsDirectSuper); - - // Check value - if (method.kind === "get" && value.params.length !== 0) - { this.raiseRecoverable(value.start, "getter should have no params"); } - if (method.kind === "set" && value.params.length !== 1) - { this.raiseRecoverable(value.start, "setter should have exactly one param"); } - if (method.kind === "set" && value.params[0].type === "RestElement") - { this.raiseRecoverable(value.params[0].start, "Setter cannot use rest params"); } - - return this.finishNode(method, "MethodDefinition") - }; - - pp$8.parseClassField = function(field) { - if (checkKeyName(field, "constructor")) { - this.raise(field.key.start, "Classes can't have a field named 'constructor'"); - } else if (field.static && checkKeyName(field, "prototype")) { - this.raise(field.key.start, "Classes can't have a static field named 'prototype'"); - } - - if (this.eat(types$1.eq)) { - // To raise SyntaxError if 'arguments' exists in the initializer. - var scope = this.currentThisScope(); - var inClassFieldInit = scope.inClassFieldInit; - scope.inClassFieldInit = true; - field.value = this.parseMaybeAssign(); - scope.inClassFieldInit = inClassFieldInit; - } else { - field.value = null; - } - this.semicolon(); - - return this.finishNode(field, "PropertyDefinition") - }; - - pp$8.parseClassStaticBlock = function(node) { - node.body = []; - - var oldLabels = this.labels; - this.labels = []; - this.enterScope(SCOPE_CLASS_STATIC_BLOCK | SCOPE_SUPER); - while (this.type !== types$1.braceR) { - var stmt = this.parseStatement(null); - node.body.push(stmt); - } - this.next(); - this.exitScope(); - this.labels = oldLabels; - - return this.finishNode(node, "StaticBlock") - }; - - pp$8.parseClassId = function(node, isStatement) { - if (this.type === types$1.name) { - node.id = this.parseIdent(); - if (isStatement) - { this.checkLValSimple(node.id, BIND_LEXICAL, false); } - } else { - if (isStatement === true) - { this.unexpected(); } - node.id = null; - } - }; - - pp$8.parseClassSuper = function(node) { - node.superClass = this.eat(types$1._extends) ? this.parseExprSubscripts(false) : null; - }; - - pp$8.enterClassBody = function() { - var element = {declared: Object.create(null), used: []}; - this.privateNameStack.push(element); - return element.declared - }; - - pp$8.exitClassBody = function() { - var ref = this.privateNameStack.pop(); - var declared = ref.declared; - var used = ref.used; - var len = this.privateNameStack.length; - var parent = len === 0 ? null : this.privateNameStack[len - 1]; - for (var i = 0; i < used.length; ++i) { - var id = used[i]; - if (!hasOwn(declared, id.name)) { - if (parent) { - parent.used.push(id); - } else { - this.raiseRecoverable(id.start, ("Private field '#" + (id.name) + "' must be declared in an enclosing class")); - } - } - } - }; - - function isPrivateNameConflicted(privateNameMap, element) { - var name = element.key.name; - var curr = privateNameMap[name]; - - var next = "true"; - if (element.type === "MethodDefinition" && (element.kind === "get" || element.kind === "set")) { - next = (element.static ? "s" : "i") + element.kind; - } - - // `class { get #a(){}; static set #a(_){} }` is also conflict. - if ( - curr === "iget" && next === "iset" || - curr === "iset" && next === "iget" || - curr === "sget" && next === "sset" || - curr === "sset" && next === "sget" - ) { - privateNameMap[name] = "true"; - return false - } else if (!curr) { - privateNameMap[name] = next; - return false - } else { - return true - } - } - - function checkKeyName(node, name) { - var computed = node.computed; - var key = node.key; - return !computed && ( - key.type === "Identifier" && key.name === name || - key.type === "Literal" && key.value === name - ) - } - - // Parses module export declaration. - - pp$8.parseExport = function(node, exports) { - this.next(); - // export * from '...' - if (this.eat(types$1.star)) { - if (this.options.ecmaVersion >= 11) { - if (this.eatContextual("as")) { - node.exported = this.parseModuleExportName(); - this.checkExport(exports, node.exported.name, this.lastTokStart); - } else { - node.exported = null; - } - } - this.expectContextual("from"); - if (this.type !== types$1.string) { this.unexpected(); } - node.source = this.parseExprAtom(); - this.semicolon(); - return this.finishNode(node, "ExportAllDeclaration") - } - if (this.eat(types$1._default)) { // export default ... - this.checkExport(exports, "default", this.lastTokStart); - var isAsync; - if (this.type === types$1._function || (isAsync = this.isAsyncFunction())) { - var fNode = this.startNode(); - this.next(); - if (isAsync) { this.next(); } - node.declaration = this.parseFunction(fNode, FUNC_STATEMENT | FUNC_NULLABLE_ID, false, isAsync); - } else if (this.type === types$1._class) { - var cNode = this.startNode(); - node.declaration = this.parseClass(cNode, "nullableID"); - } else { - node.declaration = this.parseMaybeAssign(); - this.semicolon(); - } - return this.finishNode(node, "ExportDefaultDeclaration") - } - // export var|const|let|function|class ... - if (this.shouldParseExportStatement()) { - node.declaration = this.parseStatement(null); - if (node.declaration.type === "VariableDeclaration") - { this.checkVariableExport(exports, node.declaration.declarations); } - else - { this.checkExport(exports, node.declaration.id.name, node.declaration.id.start); } - node.specifiers = []; - node.source = null; - } else { // export { x, y as z } [from '...'] - node.declaration = null; - node.specifiers = this.parseExportSpecifiers(exports); - if (this.eatContextual("from")) { - if (this.type !== types$1.string) { this.unexpected(); } - node.source = this.parseExprAtom(); - } else { - for (var i = 0, list = node.specifiers; i < list.length; i += 1) { - // check for keywords used as local names - var spec = list[i]; - - this.checkUnreserved(spec.local); - // check if export is defined - this.checkLocalExport(spec.local); - - if (spec.local.type === "Literal") { - this.raise(spec.local.start, "A string literal cannot be used as an exported binding without `from`."); - } - } - - node.source = null; - } - this.semicolon(); - } - return this.finishNode(node, "ExportNamedDeclaration") - }; - - pp$8.checkExport = function(exports, name, pos) { - if (!exports) { return } - if (hasOwn(exports, name)) - { this.raiseRecoverable(pos, "Duplicate export '" + name + "'"); } - exports[name] = true; - }; - - pp$8.checkPatternExport = function(exports, pat) { - var type = pat.type; - if (type === "Identifier") - { this.checkExport(exports, pat.name, pat.start); } - else if (type === "ObjectPattern") - { for (var i = 0, list = pat.properties; i < list.length; i += 1) - { - var prop = list[i]; - - this.checkPatternExport(exports, prop); - } } - else if (type === "ArrayPattern") - { for (var i$1 = 0, list$1 = pat.elements; i$1 < list$1.length; i$1 += 1) { - var elt = list$1[i$1]; - - if (elt) { this.checkPatternExport(exports, elt); } - } } - else if (type === "Property") - { this.checkPatternExport(exports, pat.value); } - else if (type === "AssignmentPattern") - { this.checkPatternExport(exports, pat.left); } - else if (type === "RestElement") - { this.checkPatternExport(exports, pat.argument); } - else if (type === "ParenthesizedExpression") - { this.checkPatternExport(exports, pat.expression); } - }; - - pp$8.checkVariableExport = function(exports, decls) { - if (!exports) { return } - for (var i = 0, list = decls; i < list.length; i += 1) - { - var decl = list[i]; - - this.checkPatternExport(exports, decl.id); - } - }; - - pp$8.shouldParseExportStatement = function() { - return this.type.keyword === "var" || - this.type.keyword === "const" || - this.type.keyword === "class" || - this.type.keyword === "function" || - this.isLet() || - this.isAsyncFunction() - }; - - // Parses a comma-separated list of module exports. - - pp$8.parseExportSpecifiers = function(exports) { - var nodes = [], first = true; - // export { x, y as z } [from '...'] - this.expect(types$1.braceL); - while (!this.eat(types$1.braceR)) { - if (!first) { - this.expect(types$1.comma); - if (this.afterTrailingComma(types$1.braceR)) { break } - } else { first = false; } - - var node = this.startNode(); - node.local = this.parseModuleExportName(); - node.exported = this.eatContextual("as") ? this.parseModuleExportName() : node.local; - this.checkExport( - exports, - node.exported[node.exported.type === "Identifier" ? "name" : "value"], - node.exported.start - ); - nodes.push(this.finishNode(node, "ExportSpecifier")); - } - return nodes - }; - - // Parses import declaration. - - pp$8.parseImport = function(node) { - this.next(); - // import '...' - if (this.type === types$1.string) { - node.specifiers = empty$1; - node.source = this.parseExprAtom(); - } else { - node.specifiers = this.parseImportSpecifiers(); - this.expectContextual("from"); - node.source = this.type === types$1.string ? this.parseExprAtom() : this.unexpected(); - } - this.semicolon(); - return this.finishNode(node, "ImportDeclaration") - }; - - // Parses a comma-separated list of module imports. - - pp$8.parseImportSpecifiers = function() { - var nodes = [], first = true; - if (this.type === types$1.name) { - // import defaultObj, { x, y as z } from '...' - var node = this.startNode(); - node.local = this.parseIdent(); - this.checkLValSimple(node.local, BIND_LEXICAL); - nodes.push(this.finishNode(node, "ImportDefaultSpecifier")); - if (!this.eat(types$1.comma)) { return nodes } - } - if (this.type === types$1.star) { - var node$1 = this.startNode(); - this.next(); - this.expectContextual("as"); - node$1.local = this.parseIdent(); - this.checkLValSimple(node$1.local, BIND_LEXICAL); - nodes.push(this.finishNode(node$1, "ImportNamespaceSpecifier")); - return nodes - } - this.expect(types$1.braceL); - while (!this.eat(types$1.braceR)) { - if (!first) { - this.expect(types$1.comma); - if (this.afterTrailingComma(types$1.braceR)) { break } - } else { first = false; } - - var node$2 = this.startNode(); - node$2.imported = this.parseModuleExportName(); - if (this.eatContextual("as")) { - node$2.local = this.parseIdent(); - } else { - this.checkUnreserved(node$2.imported); - node$2.local = node$2.imported; - } - this.checkLValSimple(node$2.local, BIND_LEXICAL); - nodes.push(this.finishNode(node$2, "ImportSpecifier")); - } - return nodes - }; - - pp$8.parseModuleExportName = function() { - if (this.options.ecmaVersion >= 13 && this.type === types$1.string) { - var stringLiteral = this.parseLiteral(this.value); - if (loneSurrogate.test(stringLiteral.value)) { - this.raise(stringLiteral.start, "An export name cannot include a lone surrogate."); - } - return stringLiteral - } - return this.parseIdent(true) - }; - - // Set `ExpressionStatement#directive` property for directive prologues. - pp$8.adaptDirectivePrologue = function(statements) { - for (var i = 0; i < statements.length && this.isDirectiveCandidate(statements[i]); ++i) { - statements[i].directive = statements[i].expression.raw.slice(1, -1); - } - }; - pp$8.isDirectiveCandidate = function(statement) { - return ( - statement.type === "ExpressionStatement" && - statement.expression.type === "Literal" && - typeof statement.expression.value === "string" && - // Reject parenthesized strings. - (this.input[statement.start] === "\"" || this.input[statement.start] === "'") - ) - }; - - var pp$7 = Parser.prototype; - - // Convert existing expression atom to assignable pattern - // if possible. - - pp$7.toAssignable = function(node, isBinding, refDestructuringErrors) { - if (this.options.ecmaVersion >= 6 && node) { - switch (node.type) { - case "Identifier": - if (this.inAsync && node.name === "await") - { this.raise(node.start, "Cannot use 'await' as identifier inside an async function"); } - break - - case "ObjectPattern": - case "ArrayPattern": - case "AssignmentPattern": - case "RestElement": - break - - case "ObjectExpression": - node.type = "ObjectPattern"; - if (refDestructuringErrors) { this.checkPatternErrors(refDestructuringErrors, true); } - for (var i = 0, list = node.properties; i < list.length; i += 1) { - var prop = list[i]; - - this.toAssignable(prop, isBinding); - // Early error: - // AssignmentRestProperty[Yield, Await] : - // `...` DestructuringAssignmentTarget[Yield, Await] - // - // It is a Syntax Error if |DestructuringAssignmentTarget| is an |ArrayLiteral| or an |ObjectLiteral|. - if ( - prop.type === "RestElement" && - (prop.argument.type === "ArrayPattern" || prop.argument.type === "ObjectPattern") - ) { - this.raise(prop.argument.start, "Unexpected token"); - } - } - break - - case "Property": - // AssignmentProperty has type === "Property" - if (node.kind !== "init") { this.raise(node.key.start, "Object pattern can't contain getter or setter"); } - this.toAssignable(node.value, isBinding); - break - - case "ArrayExpression": - node.type = "ArrayPattern"; - if (refDestructuringErrors) { this.checkPatternErrors(refDestructuringErrors, true); } - this.toAssignableList(node.elements, isBinding); - break - - case "SpreadElement": - node.type = "RestElement"; - this.toAssignable(node.argument, isBinding); - if (node.argument.type === "AssignmentPattern") - { this.raise(node.argument.start, "Rest elements cannot have a default value"); } - break - - case "AssignmentExpression": - if (node.operator !== "=") { this.raise(node.left.end, "Only '=' operator can be used for specifying default value."); } - node.type = "AssignmentPattern"; - delete node.operator; - this.toAssignable(node.left, isBinding); - break - - case "ParenthesizedExpression": - this.toAssignable(node.expression, isBinding, refDestructuringErrors); - break - - case "ChainExpression": - this.raiseRecoverable(node.start, "Optional chaining cannot appear in left-hand side"); - break - - case "MemberExpression": - if (!isBinding) { break } - - default: - this.raise(node.start, "Assigning to rvalue"); - } - } else if (refDestructuringErrors) { this.checkPatternErrors(refDestructuringErrors, true); } - return node - }; - - // Convert list of expression atoms to binding list. - - pp$7.toAssignableList = function(exprList, isBinding) { - var end = exprList.length; - for (var i = 0; i < end; i++) { - var elt = exprList[i]; - if (elt) { this.toAssignable(elt, isBinding); } - } - if (end) { - var last = exprList[end - 1]; - if (this.options.ecmaVersion === 6 && isBinding && last && last.type === "RestElement" && last.argument.type !== "Identifier") - { this.unexpected(last.argument.start); } - } - return exprList - }; - - // Parses spread element. - - pp$7.parseSpread = function(refDestructuringErrors) { - var node = this.startNode(); - this.next(); - node.argument = this.parseMaybeAssign(false, refDestructuringErrors); - return this.finishNode(node, "SpreadElement") - }; - - pp$7.parseRestBinding = function() { - var node = this.startNode(); - this.next(); - - // RestElement inside of a function parameter must be an identifier - if (this.options.ecmaVersion === 6 && this.type !== types$1.name) - { this.unexpected(); } - - node.argument = this.parseBindingAtom(); - - return this.finishNode(node, "RestElement") - }; - - // Parses lvalue (assignable) atom. - - pp$7.parseBindingAtom = function() { - if (this.options.ecmaVersion >= 6) { - switch (this.type) { - case types$1.bracketL: - var node = this.startNode(); - this.next(); - node.elements = this.parseBindingList(types$1.bracketR, true, true); - return this.finishNode(node, "ArrayPattern") - - case types$1.braceL: - return this.parseObj(true) - } - } - return this.parseIdent() - }; - - pp$7.parseBindingList = function(close, allowEmpty, allowTrailingComma) { - var elts = [], first = true; - while (!this.eat(close)) { - if (first) { first = false; } - else { this.expect(types$1.comma); } - if (allowEmpty && this.type === types$1.comma) { - elts.push(null); - } else if (allowTrailingComma && this.afterTrailingComma(close)) { - break - } else if (this.type === types$1.ellipsis) { - var rest = this.parseRestBinding(); - this.parseBindingListItem(rest); - elts.push(rest); - if (this.type === types$1.comma) { this.raise(this.start, "Comma is not permitted after the rest element"); } - this.expect(close); - break - } else { - var elem = this.parseMaybeDefault(this.start, this.startLoc); - this.parseBindingListItem(elem); - elts.push(elem); - } - } - return elts - }; - - pp$7.parseBindingListItem = function(param) { - return param - }; - - // Parses assignment pattern around given atom if possible. - - pp$7.parseMaybeDefault = function(startPos, startLoc, left) { - left = left || this.parseBindingAtom(); - if (this.options.ecmaVersion < 6 || !this.eat(types$1.eq)) { return left } - var node = this.startNodeAt(startPos, startLoc); - node.left = left; - node.right = this.parseMaybeAssign(); - return this.finishNode(node, "AssignmentPattern") - }; - - // The following three functions all verify that a node is an lvalue — - // something that can be bound, or assigned to. In order to do so, they perform - // a variety of checks: - // - // - Check that none of the bound/assigned-to identifiers are reserved words. - // - Record name declarations for bindings in the appropriate scope. - // - Check duplicate argument names, if checkClashes is set. - // - // If a complex binding pattern is encountered (e.g., object and array - // destructuring), the entire pattern is recursively checked. - // - // There are three versions of checkLVal*() appropriate for different - // circumstances: - // - // - checkLValSimple() shall be used if the syntactic construct supports - // nothing other than identifiers and member expressions. Parenthesized - // expressions are also correctly handled. This is generally appropriate for - // constructs for which the spec says - // - // > It is a Syntax Error if AssignmentTargetType of [the production] is not - // > simple. - // - // It is also appropriate for checking if an identifier is valid and not - // defined elsewhere, like import declarations or function/class identifiers. - // - // Examples where this is used include: - // a += …; - // import a from '…'; - // where a is the node to be checked. - // - // - checkLValPattern() shall be used if the syntactic construct supports - // anything checkLValSimple() supports, as well as object and array - // destructuring patterns. This is generally appropriate for constructs for - // which the spec says - // - // > It is a Syntax Error if [the production] is neither an ObjectLiteral nor - // > an ArrayLiteral and AssignmentTargetType of [the production] is not - // > simple. - // - // Examples where this is used include: - // (a = …); - // const a = …; - // try { … } catch (a) { … } - // where a is the node to be checked. - // - // - checkLValInnerPattern() shall be used if the syntactic construct supports - // anything checkLValPattern() supports, as well as default assignment - // patterns, rest elements, and other constructs that may appear within an - // object or array destructuring pattern. - // - // As a special case, function parameters also use checkLValInnerPattern(), - // as they also support defaults and rest constructs. - // - // These functions deliberately support both assignment and binding constructs, - // as the logic for both is exceedingly similar. If the node is the target of - // an assignment, then bindingType should be set to BIND_NONE. Otherwise, it - // should be set to the appropriate BIND_* constant, like BIND_VAR or - // BIND_LEXICAL. - // - // If the function is called with a non-BIND_NONE bindingType, then - // additionally a checkClashes object may be specified to allow checking for - // duplicate argument names. checkClashes is ignored if the provided construct - // is an assignment (i.e., bindingType is BIND_NONE). - - pp$7.checkLValSimple = function(expr, bindingType, checkClashes) { - if ( bindingType === void 0 ) bindingType = BIND_NONE; - - var isBind = bindingType !== BIND_NONE; - - switch (expr.type) { - case "Identifier": - if (this.strict && this.reservedWordsStrictBind.test(expr.name)) - { this.raiseRecoverable(expr.start, (isBind ? "Binding " : "Assigning to ") + expr.name + " in strict mode"); } - if (isBind) { - if (bindingType === BIND_LEXICAL && expr.name === "let") - { this.raiseRecoverable(expr.start, "let is disallowed as a lexically bound name"); } - if (checkClashes) { - if (hasOwn(checkClashes, expr.name)) - { this.raiseRecoverable(expr.start, "Argument name clash"); } - checkClashes[expr.name] = true; - } - if (bindingType !== BIND_OUTSIDE) { this.declareName(expr.name, bindingType, expr.start); } - } - break - - case "ChainExpression": - this.raiseRecoverable(expr.start, "Optional chaining cannot appear in left-hand side"); - break - - case "MemberExpression": - if (isBind) { this.raiseRecoverable(expr.start, "Binding member expression"); } - break - - case "ParenthesizedExpression": - if (isBind) { this.raiseRecoverable(expr.start, "Binding parenthesized expression"); } - return this.checkLValSimple(expr.expression, bindingType, checkClashes) - - default: - this.raise(expr.start, (isBind ? "Binding" : "Assigning to") + " rvalue"); - } - }; - - pp$7.checkLValPattern = function(expr, bindingType, checkClashes) { - if ( bindingType === void 0 ) bindingType = BIND_NONE; - - switch (expr.type) { - case "ObjectPattern": - for (var i = 0, list = expr.properties; i < list.length; i += 1) { - var prop = list[i]; - - this.checkLValInnerPattern(prop, bindingType, checkClashes); - } - break - - case "ArrayPattern": - for (var i$1 = 0, list$1 = expr.elements; i$1 < list$1.length; i$1 += 1) { - var elem = list$1[i$1]; - - if (elem) { this.checkLValInnerPattern(elem, bindingType, checkClashes); } - } - break - - default: - this.checkLValSimple(expr, bindingType, checkClashes); - } - }; - - pp$7.checkLValInnerPattern = function(expr, bindingType, checkClashes) { - if ( bindingType === void 0 ) bindingType = BIND_NONE; - - switch (expr.type) { - case "Property": - // AssignmentProperty has type === "Property" - this.checkLValInnerPattern(expr.value, bindingType, checkClashes); - break - - case "AssignmentPattern": - this.checkLValPattern(expr.left, bindingType, checkClashes); - break - - case "RestElement": - this.checkLValPattern(expr.argument, bindingType, checkClashes); - break - - default: - this.checkLValPattern(expr, bindingType, checkClashes); - } - }; - - // The algorithm used to determine whether a regexp can appear at a - - var TokContext = function TokContext(token, isExpr, preserveSpace, override, generator) { - this.token = token; - this.isExpr = !!isExpr; - this.preserveSpace = !!preserveSpace; - this.override = override; - this.generator = !!generator; - }; - - var types = { - b_stat: new TokContext("{", false), - b_expr: new TokContext("{", true), - b_tmpl: new TokContext("${", false), - p_stat: new TokContext("(", false), - p_expr: new TokContext("(", true), - q_tmpl: new TokContext("`", true, true, function (p) { return p.tryReadTemplateToken(); }), - f_stat: new TokContext("function", false), - f_expr: new TokContext("function", true), - f_expr_gen: new TokContext("function", true, false, null, true), - f_gen: new TokContext("function", false, false, null, true) - }; - - var pp$6 = Parser.prototype; - - pp$6.initialContext = function() { - return [types.b_stat] - }; - - pp$6.curContext = function() { - return this.context[this.context.length - 1] - }; - - pp$6.braceIsBlock = function(prevType) { - var parent = this.curContext(); - if (parent === types.f_expr || parent === types.f_stat) - { return true } - if (prevType === types$1.colon && (parent === types.b_stat || parent === types.b_expr)) - { return !parent.isExpr } - - // The check for `tt.name && exprAllowed` detects whether we are - // after a `yield` or `of` construct. See the `updateContext` for - // `tt.name`. - if (prevType === types$1._return || prevType === types$1.name && this.exprAllowed) - { return lineBreak.test(this.input.slice(this.lastTokEnd, this.start)) } - if (prevType === types$1._else || prevType === types$1.semi || prevType === types$1.eof || prevType === types$1.parenR || prevType === types$1.arrow) - { return true } - if (prevType === types$1.braceL) - { return parent === types.b_stat } - if (prevType === types$1._var || prevType === types$1._const || prevType === types$1.name) - { return false } - return !this.exprAllowed - }; - - pp$6.inGeneratorContext = function() { - for (var i = this.context.length - 1; i >= 1; i--) { - var context = this.context[i]; - if (context.token === "function") - { return context.generator } - } - return false - }; - - pp$6.updateContext = function(prevType) { - var update, type = this.type; - if (type.keyword && prevType === types$1.dot) - { this.exprAllowed = false; } - else if (update = type.updateContext) - { update.call(this, prevType); } - else - { this.exprAllowed = type.beforeExpr; } - }; - - // Used to handle egde case when token context could not be inferred correctly in tokenize phase - pp$6.overrideContext = function(tokenCtx) { - if (this.curContext() !== tokenCtx) { - this.context[this.context.length - 1] = tokenCtx; - } - }; - - // Token-specific context update code - - types$1.parenR.updateContext = types$1.braceR.updateContext = function() { - if (this.context.length === 1) { - this.exprAllowed = true; - return - } - var out = this.context.pop(); - if (out === types.b_stat && this.curContext().token === "function") { - out = this.context.pop(); - } - this.exprAllowed = !out.isExpr; - }; - - types$1.braceL.updateContext = function(prevType) { - this.context.push(this.braceIsBlock(prevType) ? types.b_stat : types.b_expr); - this.exprAllowed = true; - }; - - types$1.dollarBraceL.updateContext = function() { - this.context.push(types.b_tmpl); - this.exprAllowed = true; - }; - - types$1.parenL.updateContext = function(prevType) { - var statementParens = prevType === types$1._if || prevType === types$1._for || prevType === types$1._with || prevType === types$1._while; - this.context.push(statementParens ? types.p_stat : types.p_expr); - this.exprAllowed = true; - }; - - types$1.incDec.updateContext = function() { - // tokExprAllowed stays unchanged - }; - - types$1._function.updateContext = types$1._class.updateContext = function(prevType) { - if (prevType.beforeExpr && prevType !== types$1._else && - !(prevType === types$1.semi && this.curContext() !== types.p_stat) && - !(prevType === types$1._return && lineBreak.test(this.input.slice(this.lastTokEnd, this.start))) && - !((prevType === types$1.colon || prevType === types$1.braceL) && this.curContext() === types.b_stat)) - { this.context.push(types.f_expr); } - else - { this.context.push(types.f_stat); } - this.exprAllowed = false; - }; - - types$1.backQuote.updateContext = function() { - if (this.curContext() === types.q_tmpl) - { this.context.pop(); } - else - { this.context.push(types.q_tmpl); } - this.exprAllowed = false; - }; - - types$1.star.updateContext = function(prevType) { - if (prevType === types$1._function) { - var index = this.context.length - 1; - if (this.context[index] === types.f_expr) - { this.context[index] = types.f_expr_gen; } - else - { this.context[index] = types.f_gen; } - } - this.exprAllowed = true; - }; - - types$1.name.updateContext = function(prevType) { - var allowed = false; - if (this.options.ecmaVersion >= 6 && prevType !== types$1.dot) { - if (this.value === "of" && !this.exprAllowed || - this.value === "yield" && this.inGeneratorContext()) - { allowed = true; } - } - this.exprAllowed = allowed; - }; - - // A recursive descent parser operates by defining functions for all - - var pp$5 = Parser.prototype; - - // Check if property name clashes with already added. - // Object/class getters and setters are not allowed to clash — - // either with each other or with an init property — and in - // strict mode, init properties are also not allowed to be repeated. - - pp$5.checkPropClash = function(prop, propHash, refDestructuringErrors) { - if (this.options.ecmaVersion >= 9 && prop.type === "SpreadElement") - { return } - if (this.options.ecmaVersion >= 6 && (prop.computed || prop.method || prop.shorthand)) - { return } - var key = prop.key; - var name; - switch (key.type) { - case "Identifier": name = key.name; break - case "Literal": name = String(key.value); break - default: return - } - var kind = prop.kind; - if (this.options.ecmaVersion >= 6) { - if (name === "__proto__" && kind === "init") { - if (propHash.proto) { - if (refDestructuringErrors) { - if (refDestructuringErrors.doubleProto < 0) { - refDestructuringErrors.doubleProto = key.start; - } - } else { - this.raiseRecoverable(key.start, "Redefinition of __proto__ property"); - } - } - propHash.proto = true; - } - return - } - name = "$" + name; - var other = propHash[name]; - if (other) { - var redefinition; - if (kind === "init") { - redefinition = this.strict && other.init || other.get || other.set; - } else { - redefinition = other.init || other[kind]; - } - if (redefinition) - { this.raiseRecoverable(key.start, "Redefinition of property"); } - } else { - other = propHash[name] = { - init: false, - get: false, - set: false - }; - } - other[kind] = true; - }; - - // ### Expression parsing - - // These nest, from the most general expression type at the top to - // 'atomic', nondivisible expression types at the bottom. Most of - // the functions will simply let the function(s) below them parse, - // and, *if* the syntactic construct they handle is present, wrap - // the AST node that the inner parser gave them in another node. - - // Parse a full expression. The optional arguments are used to - // forbid the `in` operator (in for loops initalization expressions) - // and provide reference for storing '=' operator inside shorthand - // property assignment in contexts where both object expression - // and object pattern might appear (so it's possible to raise - // delayed syntax error at correct position). - - pp$5.parseExpression = function(forInit, refDestructuringErrors) { - var startPos = this.start, startLoc = this.startLoc; - var expr = this.parseMaybeAssign(forInit, refDestructuringErrors); - if (this.type === types$1.comma) { - var node = this.startNodeAt(startPos, startLoc); - node.expressions = [expr]; - while (this.eat(types$1.comma)) { node.expressions.push(this.parseMaybeAssign(forInit, refDestructuringErrors)); } - return this.finishNode(node, "SequenceExpression") - } - return expr - }; - - // Parse an assignment expression. This includes applications of - // operators like `+=`. - - pp$5.parseMaybeAssign = function(forInit, refDestructuringErrors, afterLeftParse) { - if (this.isContextual("yield")) { - if (this.inGenerator) { return this.parseYield(forInit) } - // The tokenizer will assume an expression is allowed after - // `yield`, but this isn't that kind of yield - else { this.exprAllowed = false; } - } - - var ownDestructuringErrors = false, oldParenAssign = -1, oldTrailingComma = -1, oldDoubleProto = -1; - if (refDestructuringErrors) { - oldParenAssign = refDestructuringErrors.parenthesizedAssign; - oldTrailingComma = refDestructuringErrors.trailingComma; - oldDoubleProto = refDestructuringErrors.doubleProto; - refDestructuringErrors.parenthesizedAssign = refDestructuringErrors.trailingComma = -1; - } else { - refDestructuringErrors = new DestructuringErrors; - ownDestructuringErrors = true; - } - - var startPos = this.start, startLoc = this.startLoc; - if (this.type === types$1.parenL || this.type === types$1.name) { - this.potentialArrowAt = this.start; - this.potentialArrowInForAwait = forInit === "await"; - } - var left = this.parseMaybeConditional(forInit, refDestructuringErrors); - if (afterLeftParse) { left = afterLeftParse.call(this, left, startPos, startLoc); } - if (this.type.isAssign) { - var node = this.startNodeAt(startPos, startLoc); - node.operator = this.value; - if (this.type === types$1.eq) - { left = this.toAssignable(left, false, refDestructuringErrors); } - if (!ownDestructuringErrors) { - refDestructuringErrors.parenthesizedAssign = refDestructuringErrors.trailingComma = refDestructuringErrors.doubleProto = -1; - } - if (refDestructuringErrors.shorthandAssign >= left.start) - { refDestructuringErrors.shorthandAssign = -1; } // reset because shorthand default was used correctly - if (this.type === types$1.eq) - { this.checkLValPattern(left); } - else - { this.checkLValSimple(left); } - node.left = left; - this.next(); - node.right = this.parseMaybeAssign(forInit); - if (oldDoubleProto > -1) { refDestructuringErrors.doubleProto = oldDoubleProto; } - return this.finishNode(node, "AssignmentExpression") - } else { - if (ownDestructuringErrors) { this.checkExpressionErrors(refDestructuringErrors, true); } - } - if (oldParenAssign > -1) { refDestructuringErrors.parenthesizedAssign = oldParenAssign; } - if (oldTrailingComma > -1) { refDestructuringErrors.trailingComma = oldTrailingComma; } - return left - }; - - // Parse a ternary conditional (`?:`) operator. - - pp$5.parseMaybeConditional = function(forInit, refDestructuringErrors) { - var startPos = this.start, startLoc = this.startLoc; - var expr = this.parseExprOps(forInit, refDestructuringErrors); - if (this.checkExpressionErrors(refDestructuringErrors)) { return expr } - if (this.eat(types$1.question)) { - var node = this.startNodeAt(startPos, startLoc); - node.test = expr; - node.consequent = this.parseMaybeAssign(); - this.expect(types$1.colon); - node.alternate = this.parseMaybeAssign(forInit); - return this.finishNode(node, "ConditionalExpression") - } - return expr - }; - - // Start the precedence parser. - - pp$5.parseExprOps = function(forInit, refDestructuringErrors) { - var startPos = this.start, startLoc = this.startLoc; - var expr = this.parseMaybeUnary(refDestructuringErrors, false, false, forInit); - if (this.checkExpressionErrors(refDestructuringErrors)) { return expr } - return expr.start === startPos && expr.type === "ArrowFunctionExpression" ? expr : this.parseExprOp(expr, startPos, startLoc, -1, forInit) - }; - - // Parse binary operators with the operator precedence parsing - // algorithm. `left` is the left-hand side of the operator. - // `minPrec` provides context that allows the function to stop and - // defer further parser to one of its callers when it encounters an - // operator that has a lower precedence than the set it is parsing. - - pp$5.parseExprOp = function(left, leftStartPos, leftStartLoc, minPrec, forInit) { - var prec = this.type.binop; - if (prec != null && (!forInit || this.type !== types$1._in)) { - if (prec > minPrec) { - var logical = this.type === types$1.logicalOR || this.type === types$1.logicalAND; - var coalesce = this.type === types$1.coalesce; - if (coalesce) { - // Handle the precedence of `tt.coalesce` as equal to the range of logical expressions. - // In other words, `node.right` shouldn't contain logical expressions in order to check the mixed error. - prec = types$1.logicalAND.binop; - } - var op = this.value; - this.next(); - var startPos = this.start, startLoc = this.startLoc; - var right = this.parseExprOp(this.parseMaybeUnary(null, false, false, forInit), startPos, startLoc, prec, forInit); - var node = this.buildBinary(leftStartPos, leftStartLoc, left, right, op, logical || coalesce); - if ((logical && this.type === types$1.coalesce) || (coalesce && (this.type === types$1.logicalOR || this.type === types$1.logicalAND))) { - this.raiseRecoverable(this.start, "Logical expressions and coalesce expressions cannot be mixed. Wrap either by parentheses"); - } - return this.parseExprOp(node, leftStartPos, leftStartLoc, minPrec, forInit) - } - } - return left - }; - - pp$5.buildBinary = function(startPos, startLoc, left, right, op, logical) { - if (right.type === "PrivateIdentifier") { this.raise(right.start, "Private identifier can only be left side of binary expression"); } - var node = this.startNodeAt(startPos, startLoc); - node.left = left; - node.operator = op; - node.right = right; - return this.finishNode(node, logical ? "LogicalExpression" : "BinaryExpression") - }; - - // Parse unary operators, both prefix and postfix. - - pp$5.parseMaybeUnary = function(refDestructuringErrors, sawUnary, incDec, forInit) { - var startPos = this.start, startLoc = this.startLoc, expr; - if (this.isContextual("await") && this.canAwait) { - expr = this.parseAwait(forInit); - sawUnary = true; - } else if (this.type.prefix) { - var node = this.startNode(), update = this.type === types$1.incDec; - node.operator = this.value; - node.prefix = true; - this.next(); - node.argument = this.parseMaybeUnary(null, true, update, forInit); - this.checkExpressionErrors(refDestructuringErrors, true); - if (update) { this.checkLValSimple(node.argument); } - else if (this.strict && node.operator === "delete" && - node.argument.type === "Identifier") - { this.raiseRecoverable(node.start, "Deleting local variable in strict mode"); } - else if (node.operator === "delete" && isPrivateFieldAccess(node.argument)) - { this.raiseRecoverable(node.start, "Private fields can not be deleted"); } - else { sawUnary = true; } - expr = this.finishNode(node, update ? "UpdateExpression" : "UnaryExpression"); - } else if (!sawUnary && this.type === types$1.privateId) { - if (forInit || this.privateNameStack.length === 0) { this.unexpected(); } - expr = this.parsePrivateIdent(); - // only could be private fields in 'in', such as #x in obj - if (this.type !== types$1._in) { this.unexpected(); } - } else { - expr = this.parseExprSubscripts(refDestructuringErrors, forInit); - if (this.checkExpressionErrors(refDestructuringErrors)) { return expr } - while (this.type.postfix && !this.canInsertSemicolon()) { - var node$1 = this.startNodeAt(startPos, startLoc); - node$1.operator = this.value; - node$1.prefix = false; - node$1.argument = expr; - this.checkLValSimple(expr); - this.next(); - expr = this.finishNode(node$1, "UpdateExpression"); - } - } - - if (!incDec && this.eat(types$1.starstar)) { - if (sawUnary) - { this.unexpected(this.lastTokStart); } - else - { return this.buildBinary(startPos, startLoc, expr, this.parseMaybeUnary(null, false, false, forInit), "**", false) } - } else { - return expr - } - }; - - function isPrivateFieldAccess(node) { - return ( - node.type === "MemberExpression" && node.property.type === "PrivateIdentifier" || - node.type === "ChainExpression" && isPrivateFieldAccess(node.expression) - ) - } - - // Parse call, dot, and `[]`-subscript expressions. - - pp$5.parseExprSubscripts = function(refDestructuringErrors, forInit) { - var startPos = this.start, startLoc = this.startLoc; - var expr = this.parseExprAtom(refDestructuringErrors, forInit); - if (expr.type === "ArrowFunctionExpression" && this.input.slice(this.lastTokStart, this.lastTokEnd) !== ")") - { return expr } - var result = this.parseSubscripts(expr, startPos, startLoc, false, forInit); - if (refDestructuringErrors && result.type === "MemberExpression") { - if (refDestructuringErrors.parenthesizedAssign >= result.start) { refDestructuringErrors.parenthesizedAssign = -1; } - if (refDestructuringErrors.parenthesizedBind >= result.start) { refDestructuringErrors.parenthesizedBind = -1; } - if (refDestructuringErrors.trailingComma >= result.start) { refDestructuringErrors.trailingComma = -1; } - } - return result - }; - - pp$5.parseSubscripts = function(base, startPos, startLoc, noCalls, forInit) { - var maybeAsyncArrow = this.options.ecmaVersion >= 8 && base.type === "Identifier" && base.name === "async" && - this.lastTokEnd === base.end && !this.canInsertSemicolon() && base.end - base.start === 5 && - this.potentialArrowAt === base.start; - var optionalChained = false; - - while (true) { - var element = this.parseSubscript(base, startPos, startLoc, noCalls, maybeAsyncArrow, optionalChained, forInit); - - if (element.optional) { optionalChained = true; } - if (element === base || element.type === "ArrowFunctionExpression") { - if (optionalChained) { - var chainNode = this.startNodeAt(startPos, startLoc); - chainNode.expression = element; - element = this.finishNode(chainNode, "ChainExpression"); - } - return element - } - - base = element; - } - }; - - pp$5.parseSubscript = function(base, startPos, startLoc, noCalls, maybeAsyncArrow, optionalChained, forInit) { - var optionalSupported = this.options.ecmaVersion >= 11; - var optional = optionalSupported && this.eat(types$1.questionDot); - if (noCalls && optional) { this.raise(this.lastTokStart, "Optional chaining cannot appear in the callee of new expressions"); } - - var computed = this.eat(types$1.bracketL); - if (computed || (optional && this.type !== types$1.parenL && this.type !== types$1.backQuote) || this.eat(types$1.dot)) { - var node = this.startNodeAt(startPos, startLoc); - node.object = base; - if (computed) { - node.property = this.parseExpression(); - this.expect(types$1.bracketR); - } else if (this.type === types$1.privateId && base.type !== "Super") { - node.property = this.parsePrivateIdent(); - } else { - node.property = this.parseIdent(this.options.allowReserved !== "never"); - } - node.computed = !!computed; - if (optionalSupported) { - node.optional = optional; - } - base = this.finishNode(node, "MemberExpression"); - } else if (!noCalls && this.eat(types$1.parenL)) { - var refDestructuringErrors = new DestructuringErrors, oldYieldPos = this.yieldPos, oldAwaitPos = this.awaitPos, oldAwaitIdentPos = this.awaitIdentPos; - this.yieldPos = 0; - this.awaitPos = 0; - this.awaitIdentPos = 0; - var exprList = this.parseExprList(types$1.parenR, this.options.ecmaVersion >= 8, false, refDestructuringErrors); - if (maybeAsyncArrow && !optional && !this.canInsertSemicolon() && this.eat(types$1.arrow)) { - this.checkPatternErrors(refDestructuringErrors, false); - this.checkYieldAwaitInDefaultParams(); - if (this.awaitIdentPos > 0) - { this.raise(this.awaitIdentPos, "Cannot use 'await' as identifier inside an async function"); } - this.yieldPos = oldYieldPos; - this.awaitPos = oldAwaitPos; - this.awaitIdentPos = oldAwaitIdentPos; - return this.parseArrowExpression(this.startNodeAt(startPos, startLoc), exprList, true, forInit) - } - this.checkExpressionErrors(refDestructuringErrors, true); - this.yieldPos = oldYieldPos || this.yieldPos; - this.awaitPos = oldAwaitPos || this.awaitPos; - this.awaitIdentPos = oldAwaitIdentPos || this.awaitIdentPos; - var node$1 = this.startNodeAt(startPos, startLoc); - node$1.callee = base; - node$1.arguments = exprList; - if (optionalSupported) { - node$1.optional = optional; - } - base = this.finishNode(node$1, "CallExpression"); - } else if (this.type === types$1.backQuote) { - if (optional || optionalChained) { - this.raise(this.start, "Optional chaining cannot appear in the tag of tagged template expressions"); - } - var node$2 = this.startNodeAt(startPos, startLoc); - node$2.tag = base; - node$2.quasi = this.parseTemplate({isTagged: true}); - base = this.finishNode(node$2, "TaggedTemplateExpression"); - } - return base - }; - - // Parse an atomic expression — either a single token that is an - // expression, an expression started by a keyword like `function` or - // `new`, or an expression wrapped in punctuation like `()`, `[]`, - // or `{}`. - - pp$5.parseExprAtom = function(refDestructuringErrors, forInit) { - // If a division operator appears in an expression position, the - // tokenizer got confused, and we force it to read a regexp instead. - if (this.type === types$1.slash) { this.readRegexp(); } - - var node, canBeArrow = this.potentialArrowAt === this.start; - switch (this.type) { - case types$1._super: - if (!this.allowSuper) - { this.raise(this.start, "'super' keyword outside a method"); } - node = this.startNode(); - this.next(); - if (this.type === types$1.parenL && !this.allowDirectSuper) - { this.raise(node.start, "super() call outside constructor of a subclass"); } - // The `super` keyword can appear at below: - // SuperProperty: - // super [ Expression ] - // super . IdentifierName - // SuperCall: - // super ( Arguments ) - if (this.type !== types$1.dot && this.type !== types$1.bracketL && this.type !== types$1.parenL) - { this.unexpected(); } - return this.finishNode(node, "Super") - - case types$1._this: - node = this.startNode(); - this.next(); - return this.finishNode(node, "ThisExpression") - - case types$1.name: - var startPos = this.start, startLoc = this.startLoc, containsEsc = this.containsEsc; - var id = this.parseIdent(false); - if (this.options.ecmaVersion >= 8 && !containsEsc && id.name === "async" && !this.canInsertSemicolon() && this.eat(types$1._function)) { - this.overrideContext(types.f_expr); - return this.parseFunction(this.startNodeAt(startPos, startLoc), 0, false, true, forInit) - } - if (canBeArrow && !this.canInsertSemicolon()) { - if (this.eat(types$1.arrow)) - { return this.parseArrowExpression(this.startNodeAt(startPos, startLoc), [id], false, forInit) } - if (this.options.ecmaVersion >= 8 && id.name === "async" && this.type === types$1.name && !containsEsc && - (!this.potentialArrowInForAwait || this.value !== "of" || this.containsEsc)) { - id = this.parseIdent(false); - if (this.canInsertSemicolon() || !this.eat(types$1.arrow)) - { this.unexpected(); } - return this.parseArrowExpression(this.startNodeAt(startPos, startLoc), [id], true, forInit) - } - } - return id - - case types$1.regexp: - var value = this.value; - node = this.parseLiteral(value.value); - node.regex = {pattern: value.pattern, flags: value.flags}; - return node - - case types$1.num: case types$1.string: - return this.parseLiteral(this.value) - - case types$1._null: case types$1._true: case types$1._false: - node = this.startNode(); - node.value = this.type === types$1._null ? null : this.type === types$1._true; - node.raw = this.type.keyword; - this.next(); - return this.finishNode(node, "Literal") - - case types$1.parenL: - var start = this.start, expr = this.parseParenAndDistinguishExpression(canBeArrow, forInit); - if (refDestructuringErrors) { - if (refDestructuringErrors.parenthesizedAssign < 0 && !this.isSimpleAssignTarget(expr)) - { refDestructuringErrors.parenthesizedAssign = start; } - if (refDestructuringErrors.parenthesizedBind < 0) - { refDestructuringErrors.parenthesizedBind = start; } - } - return expr - - case types$1.bracketL: - node = this.startNode(); - this.next(); - node.elements = this.parseExprList(types$1.bracketR, true, true, refDestructuringErrors); - return this.finishNode(node, "ArrayExpression") - - case types$1.braceL: - this.overrideContext(types.b_expr); - return this.parseObj(false, refDestructuringErrors) - - case types$1._function: - node = this.startNode(); - this.next(); - return this.parseFunction(node, 0) - - case types$1._class: - return this.parseClass(this.startNode(), false) - - case types$1._new: - return this.parseNew() - - case types$1.backQuote: - return this.parseTemplate() - - case types$1._import: - if (this.options.ecmaVersion >= 11) { - return this.parseExprImport() - } else { - return this.unexpected() - } - - default: - this.unexpected(); - } - }; - - pp$5.parseExprImport = function() { - var node = this.startNode(); - - // Consume `import` as an identifier for `import.meta`. - // Because `this.parseIdent(true)` doesn't check escape sequences, it needs the check of `this.containsEsc`. - if (this.containsEsc) { this.raiseRecoverable(this.start, "Escape sequence in keyword import"); } - var meta = this.parseIdent(true); - - switch (this.type) { - case types$1.parenL: - return this.parseDynamicImport(node) - case types$1.dot: - node.meta = meta; - return this.parseImportMeta(node) - default: - this.unexpected(); - } - }; - - pp$5.parseDynamicImport = function(node) { - this.next(); // skip `(` - - // Parse node.source. - node.source = this.parseMaybeAssign(); - - // Verify ending. - if (!this.eat(types$1.parenR)) { - var errorPos = this.start; - if (this.eat(types$1.comma) && this.eat(types$1.parenR)) { - this.raiseRecoverable(errorPos, "Trailing comma is not allowed in import()"); - } else { - this.unexpected(errorPos); - } - } - - return this.finishNode(node, "ImportExpression") - }; - - pp$5.parseImportMeta = function(node) { - this.next(); // skip `.` - - var containsEsc = this.containsEsc; - node.property = this.parseIdent(true); - - if (node.property.name !== "meta") - { this.raiseRecoverable(node.property.start, "The only valid meta property for import is 'import.meta'"); } - if (containsEsc) - { this.raiseRecoverable(node.start, "'import.meta' must not contain escaped characters"); } - if (this.options.sourceType !== "module" && !this.options.allowImportExportEverywhere) - { this.raiseRecoverable(node.start, "Cannot use 'import.meta' outside a module"); } - - return this.finishNode(node, "MetaProperty") - }; - - pp$5.parseLiteral = function(value) { - var node = this.startNode(); - node.value = value; - node.raw = this.input.slice(this.start, this.end); - if (node.raw.charCodeAt(node.raw.length - 1) === 110) { node.bigint = node.raw.slice(0, -1).replace(/_/g, ""); } - this.next(); - return this.finishNode(node, "Literal") - }; - - pp$5.parseParenExpression = function() { - this.expect(types$1.parenL); - var val = this.parseExpression(); - this.expect(types$1.parenR); - return val - }; - - pp$5.parseParenAndDistinguishExpression = function(canBeArrow, forInit) { - var startPos = this.start, startLoc = this.startLoc, val, allowTrailingComma = this.options.ecmaVersion >= 8; - if (this.options.ecmaVersion >= 6) { - this.next(); - - var innerStartPos = this.start, innerStartLoc = this.startLoc; - var exprList = [], first = true, lastIsComma = false; - var refDestructuringErrors = new DestructuringErrors, oldYieldPos = this.yieldPos, oldAwaitPos = this.awaitPos, spreadStart; - this.yieldPos = 0; - this.awaitPos = 0; - // Do not save awaitIdentPos to allow checking awaits nested in parameters - while (this.type !== types$1.parenR) { - first ? first = false : this.expect(types$1.comma); - if (allowTrailingComma && this.afterTrailingComma(types$1.parenR, true)) { - lastIsComma = true; - break - } else if (this.type === types$1.ellipsis) { - spreadStart = this.start; - exprList.push(this.parseParenItem(this.parseRestBinding())); - if (this.type === types$1.comma) { this.raise(this.start, "Comma is not permitted after the rest element"); } - break - } else { - exprList.push(this.parseMaybeAssign(false, refDestructuringErrors, this.parseParenItem)); - } - } - var innerEndPos = this.lastTokEnd, innerEndLoc = this.lastTokEndLoc; - this.expect(types$1.parenR); - - if (canBeArrow && !this.canInsertSemicolon() && this.eat(types$1.arrow)) { - this.checkPatternErrors(refDestructuringErrors, false); - this.checkYieldAwaitInDefaultParams(); - this.yieldPos = oldYieldPos; - this.awaitPos = oldAwaitPos; - return this.parseParenArrowList(startPos, startLoc, exprList, forInit) - } - - if (!exprList.length || lastIsComma) { this.unexpected(this.lastTokStart); } - if (spreadStart) { this.unexpected(spreadStart); } - this.checkExpressionErrors(refDestructuringErrors, true); - this.yieldPos = oldYieldPos || this.yieldPos; - this.awaitPos = oldAwaitPos || this.awaitPos; - - if (exprList.length > 1) { - val = this.startNodeAt(innerStartPos, innerStartLoc); - val.expressions = exprList; - this.finishNodeAt(val, "SequenceExpression", innerEndPos, innerEndLoc); - } else { - val = exprList[0]; - } - } else { - val = this.parseParenExpression(); - } - - if (this.options.preserveParens) { - var par = this.startNodeAt(startPos, startLoc); - par.expression = val; - return this.finishNode(par, "ParenthesizedExpression") - } else { - return val - } - }; - - pp$5.parseParenItem = function(item) { - return item - }; - - pp$5.parseParenArrowList = function(startPos, startLoc, exprList, forInit) { - return this.parseArrowExpression(this.startNodeAt(startPos, startLoc), exprList, false, forInit) - }; - - // New's precedence is slightly tricky. It must allow its argument to - // be a `[]` or dot subscript expression, but not a call — at least, - // not without wrapping it in parentheses. Thus, it uses the noCalls - // argument to parseSubscripts to prevent it from consuming the - // argument list. - - var empty = []; - - pp$5.parseNew = function() { - if (this.containsEsc) { this.raiseRecoverable(this.start, "Escape sequence in keyword new"); } - var node = this.startNode(); - var meta = this.parseIdent(true); - if (this.options.ecmaVersion >= 6 && this.eat(types$1.dot)) { - node.meta = meta; - var containsEsc = this.containsEsc; - node.property = this.parseIdent(true); - if (node.property.name !== "target") - { this.raiseRecoverable(node.property.start, "The only valid meta property for new is 'new.target'"); } - if (containsEsc) - { this.raiseRecoverable(node.start, "'new.target' must not contain escaped characters"); } - if (!this.allowNewDotTarget) - { this.raiseRecoverable(node.start, "'new.target' can only be used in functions and class static block"); } - return this.finishNode(node, "MetaProperty") - } - var startPos = this.start, startLoc = this.startLoc, isImport = this.type === types$1._import; - node.callee = this.parseSubscripts(this.parseExprAtom(), startPos, startLoc, true, false); - if (isImport && node.callee.type === "ImportExpression") { - this.raise(startPos, "Cannot use new with import()"); - } - if (this.eat(types$1.parenL)) { node.arguments = this.parseExprList(types$1.parenR, this.options.ecmaVersion >= 8, false); } - else { node.arguments = empty; } - return this.finishNode(node, "NewExpression") - }; - - // Parse template expression. - - pp$5.parseTemplateElement = function(ref) { - var isTagged = ref.isTagged; - - var elem = this.startNode(); - if (this.type === types$1.invalidTemplate) { - if (!isTagged) { - this.raiseRecoverable(this.start, "Bad escape sequence in untagged template literal"); - } - elem.value = { - raw: this.value, - cooked: null - }; - } else { - elem.value = { - raw: this.input.slice(this.start, this.end).replace(/\r\n?/g, "\n"), - cooked: this.value - }; - } - this.next(); - elem.tail = this.type === types$1.backQuote; - return this.finishNode(elem, "TemplateElement") - }; - - pp$5.parseTemplate = function(ref) { - if ( ref === void 0 ) ref = {}; - var isTagged = ref.isTagged; if ( isTagged === void 0 ) isTagged = false; - - var node = this.startNode(); - this.next(); - node.expressions = []; - var curElt = this.parseTemplateElement({isTagged: isTagged}); - node.quasis = [curElt]; - while (!curElt.tail) { - if (this.type === types$1.eof) { this.raise(this.pos, "Unterminated template literal"); } - this.expect(types$1.dollarBraceL); - node.expressions.push(this.parseExpression()); - this.expect(types$1.braceR); - node.quasis.push(curElt = this.parseTemplateElement({isTagged: isTagged})); - } - this.next(); - return this.finishNode(node, "TemplateLiteral") - }; - - pp$5.isAsyncProp = function(prop) { - return !prop.computed && prop.key.type === "Identifier" && prop.key.name === "async" && - (this.type === types$1.name || this.type === types$1.num || this.type === types$1.string || this.type === types$1.bracketL || this.type.keyword || (this.options.ecmaVersion >= 9 && this.type === types$1.star)) && - !lineBreak.test(this.input.slice(this.lastTokEnd, this.start)) - }; - - // Parse an object literal or binding pattern. - - pp$5.parseObj = function(isPattern, refDestructuringErrors) { - var node = this.startNode(), first = true, propHash = {}; - node.properties = []; - this.next(); - while (!this.eat(types$1.braceR)) { - if (!first) { - this.expect(types$1.comma); - if (this.options.ecmaVersion >= 5 && this.afterTrailingComma(types$1.braceR)) { break } - } else { first = false; } - - var prop = this.parseProperty(isPattern, refDestructuringErrors); - if (!isPattern) { this.checkPropClash(prop, propHash, refDestructuringErrors); } - node.properties.push(prop); - } - return this.finishNode(node, isPattern ? "ObjectPattern" : "ObjectExpression") - }; - - pp$5.parseProperty = function(isPattern, refDestructuringErrors) { - var prop = this.startNode(), isGenerator, isAsync, startPos, startLoc; - if (this.options.ecmaVersion >= 9 && this.eat(types$1.ellipsis)) { - if (isPattern) { - prop.argument = this.parseIdent(false); - if (this.type === types$1.comma) { - this.raise(this.start, "Comma is not permitted after the rest element"); - } - return this.finishNode(prop, "RestElement") - } - // To disallow parenthesized identifier via `this.toAssignable()`. - if (this.type === types$1.parenL && refDestructuringErrors) { - if (refDestructuringErrors.parenthesizedAssign < 0) { - refDestructuringErrors.parenthesizedAssign = this.start; - } - if (refDestructuringErrors.parenthesizedBind < 0) { - refDestructuringErrors.parenthesizedBind = this.start; - } - } - // Parse argument. - prop.argument = this.parseMaybeAssign(false, refDestructuringErrors); - // To disallow trailing comma via `this.toAssignable()`. - if (this.type === types$1.comma && refDestructuringErrors && refDestructuringErrors.trailingComma < 0) { - refDestructuringErrors.trailingComma = this.start; - } - // Finish - return this.finishNode(prop, "SpreadElement") - } - if (this.options.ecmaVersion >= 6) { - prop.method = false; - prop.shorthand = false; - if (isPattern || refDestructuringErrors) { - startPos = this.start; - startLoc = this.startLoc; - } - if (!isPattern) - { isGenerator = this.eat(types$1.star); } - } - var containsEsc = this.containsEsc; - this.parsePropertyName(prop); - if (!isPattern && !containsEsc && this.options.ecmaVersion >= 8 && !isGenerator && this.isAsyncProp(prop)) { - isAsync = true; - isGenerator = this.options.ecmaVersion >= 9 && this.eat(types$1.star); - this.parsePropertyName(prop, refDestructuringErrors); - } else { - isAsync = false; - } - this.parsePropertyValue(prop, isPattern, isGenerator, isAsync, startPos, startLoc, refDestructuringErrors, containsEsc); - return this.finishNode(prop, "Property") - }; - - pp$5.parsePropertyValue = function(prop, isPattern, isGenerator, isAsync, startPos, startLoc, refDestructuringErrors, containsEsc) { - if ((isGenerator || isAsync) && this.type === types$1.colon) - { this.unexpected(); } - - if (this.eat(types$1.colon)) { - prop.value = isPattern ? this.parseMaybeDefault(this.start, this.startLoc) : this.parseMaybeAssign(false, refDestructuringErrors); - prop.kind = "init"; - } else if (this.options.ecmaVersion >= 6 && this.type === types$1.parenL) { - if (isPattern) { this.unexpected(); } - prop.kind = "init"; - prop.method = true; - prop.value = this.parseMethod(isGenerator, isAsync); - } else if (!isPattern && !containsEsc && - this.options.ecmaVersion >= 5 && !prop.computed && prop.key.type === "Identifier" && - (prop.key.name === "get" || prop.key.name === "set") && - (this.type !== types$1.comma && this.type !== types$1.braceR && this.type !== types$1.eq)) { - if (isGenerator || isAsync) { this.unexpected(); } - prop.kind = prop.key.name; - this.parsePropertyName(prop); - prop.value = this.parseMethod(false); - var paramCount = prop.kind === "get" ? 0 : 1; - if (prop.value.params.length !== paramCount) { - var start = prop.value.start; - if (prop.kind === "get") - { this.raiseRecoverable(start, "getter should have no params"); } - else - { this.raiseRecoverable(start, "setter should have exactly one param"); } - } else { - if (prop.kind === "set" && prop.value.params[0].type === "RestElement") - { this.raiseRecoverable(prop.value.params[0].start, "Setter cannot use rest params"); } - } - } else if (this.options.ecmaVersion >= 6 && !prop.computed && prop.key.type === "Identifier") { - if (isGenerator || isAsync) { this.unexpected(); } - this.checkUnreserved(prop.key); - if (prop.key.name === "await" && !this.awaitIdentPos) - { this.awaitIdentPos = startPos; } - prop.kind = "init"; - if (isPattern) { - prop.value = this.parseMaybeDefault(startPos, startLoc, this.copyNode(prop.key)); - } else if (this.type === types$1.eq && refDestructuringErrors) { - if (refDestructuringErrors.shorthandAssign < 0) - { refDestructuringErrors.shorthandAssign = this.start; } - prop.value = this.parseMaybeDefault(startPos, startLoc, this.copyNode(prop.key)); - } else { - prop.value = this.copyNode(prop.key); - } - prop.shorthand = true; - } else { this.unexpected(); } - }; - - pp$5.parsePropertyName = function(prop) { - if (this.options.ecmaVersion >= 6) { - if (this.eat(types$1.bracketL)) { - prop.computed = true; - prop.key = this.parseMaybeAssign(); - this.expect(types$1.bracketR); - return prop.key - } else { - prop.computed = false; - } - } - return prop.key = this.type === types$1.num || this.type === types$1.string ? this.parseExprAtom() : this.parseIdent(this.options.allowReserved !== "never") - }; - - // Initialize empty function node. - - pp$5.initFunction = function(node) { - node.id = null; - if (this.options.ecmaVersion >= 6) { node.generator = node.expression = false; } - if (this.options.ecmaVersion >= 8) { node.async = false; } - }; - - // Parse object or class method. - - pp$5.parseMethod = function(isGenerator, isAsync, allowDirectSuper) { - var node = this.startNode(), oldYieldPos = this.yieldPos, oldAwaitPos = this.awaitPos, oldAwaitIdentPos = this.awaitIdentPos; - - this.initFunction(node); - if (this.options.ecmaVersion >= 6) - { node.generator = isGenerator; } - if (this.options.ecmaVersion >= 8) - { node.async = !!isAsync; } - - this.yieldPos = 0; - this.awaitPos = 0; - this.awaitIdentPos = 0; - this.enterScope(functionFlags(isAsync, node.generator) | SCOPE_SUPER | (allowDirectSuper ? SCOPE_DIRECT_SUPER : 0)); - - this.expect(types$1.parenL); - node.params = this.parseBindingList(types$1.parenR, false, this.options.ecmaVersion >= 8); - this.checkYieldAwaitInDefaultParams(); - this.parseFunctionBody(node, false, true, false); - - this.yieldPos = oldYieldPos; - this.awaitPos = oldAwaitPos; - this.awaitIdentPos = oldAwaitIdentPos; - return this.finishNode(node, "FunctionExpression") - }; - - // Parse arrow function expression with given parameters. - - pp$5.parseArrowExpression = function(node, params, isAsync, forInit) { - var oldYieldPos = this.yieldPos, oldAwaitPos = this.awaitPos, oldAwaitIdentPos = this.awaitIdentPos; - - this.enterScope(functionFlags(isAsync, false) | SCOPE_ARROW); - this.initFunction(node); - if (this.options.ecmaVersion >= 8) { node.async = !!isAsync; } - - this.yieldPos = 0; - this.awaitPos = 0; - this.awaitIdentPos = 0; - - node.params = this.toAssignableList(params, true); - this.parseFunctionBody(node, true, false, forInit); - - this.yieldPos = oldYieldPos; - this.awaitPos = oldAwaitPos; - this.awaitIdentPos = oldAwaitIdentPos; - return this.finishNode(node, "ArrowFunctionExpression") - }; - - // Parse function body and check parameters. - - pp$5.parseFunctionBody = function(node, isArrowFunction, isMethod, forInit) { - var isExpression = isArrowFunction && this.type !== types$1.braceL; - var oldStrict = this.strict, useStrict = false; - - if (isExpression) { - node.body = this.parseMaybeAssign(forInit); - node.expression = true; - this.checkParams(node, false); - } else { - var nonSimple = this.options.ecmaVersion >= 7 && !this.isSimpleParamList(node.params); - if (!oldStrict || nonSimple) { - useStrict = this.strictDirective(this.end); - // If this is a strict mode function, verify that argument names - // are not repeated, and it does not try to bind the words `eval` - // or `arguments`. - if (useStrict && nonSimple) - { this.raiseRecoverable(node.start, "Illegal 'use strict' directive in function with non-simple parameter list"); } - } - // Start a new scope with regard to labels and the `inFunction` - // flag (restore them to their old value afterwards). - var oldLabels = this.labels; - this.labels = []; - if (useStrict) { this.strict = true; } - - // Add the params to varDeclaredNames to ensure that an error is thrown - // if a let/const declaration in the function clashes with one of the params. - this.checkParams(node, !oldStrict && !useStrict && !isArrowFunction && !isMethod && this.isSimpleParamList(node.params)); - // Ensure the function name isn't a forbidden identifier in strict mode, e.g. 'eval' - if (this.strict && node.id) { this.checkLValSimple(node.id, BIND_OUTSIDE); } - node.body = this.parseBlock(false, undefined, useStrict && !oldStrict); - node.expression = false; - this.adaptDirectivePrologue(node.body.body); - this.labels = oldLabels; - } - this.exitScope(); - }; - - pp$5.isSimpleParamList = function(params) { - for (var i = 0, list = params; i < list.length; i += 1) - { - var param = list[i]; - - if (param.type !== "Identifier") { return false - } } - return true - }; - - // Checks function params for various disallowed patterns such as using "eval" - // or "arguments" and duplicate parameters. - - pp$5.checkParams = function(node, allowDuplicates) { - var nameHash = Object.create(null); - for (var i = 0, list = node.params; i < list.length; i += 1) - { - var param = list[i]; - - this.checkLValInnerPattern(param, BIND_VAR, allowDuplicates ? null : nameHash); - } - }; - - // Parses a comma-separated list of expressions, and returns them as - // an array. `close` is the token type that ends the list, and - // `allowEmpty` can be turned on to allow subsequent commas with - // nothing in between them to be parsed as `null` (which is needed - // for array literals). - - pp$5.parseExprList = function(close, allowTrailingComma, allowEmpty, refDestructuringErrors) { - var elts = [], first = true; - while (!this.eat(close)) { - if (!first) { - this.expect(types$1.comma); - if (allowTrailingComma && this.afterTrailingComma(close)) { break } - } else { first = false; } - - var elt = (void 0); - if (allowEmpty && this.type === types$1.comma) - { elt = null; } - else if (this.type === types$1.ellipsis) { - elt = this.parseSpread(refDestructuringErrors); - if (refDestructuringErrors && this.type === types$1.comma && refDestructuringErrors.trailingComma < 0) - { refDestructuringErrors.trailingComma = this.start; } - } else { - elt = this.parseMaybeAssign(false, refDestructuringErrors); - } - elts.push(elt); - } - return elts - }; - - pp$5.checkUnreserved = function(ref) { - var start = ref.start; - var end = ref.end; - var name = ref.name; - - if (this.inGenerator && name === "yield") - { this.raiseRecoverable(start, "Cannot use 'yield' as identifier inside a generator"); } - if (this.inAsync && name === "await") - { this.raiseRecoverable(start, "Cannot use 'await' as identifier inside an async function"); } - if (this.currentThisScope().inClassFieldInit && name === "arguments") - { this.raiseRecoverable(start, "Cannot use 'arguments' in class field initializer"); } - if (this.inClassStaticBlock && (name === "arguments" || name === "await")) - { this.raise(start, ("Cannot use " + name + " in class static initialization block")); } - if (this.keywords.test(name)) - { this.raise(start, ("Unexpected keyword '" + name + "'")); } - if (this.options.ecmaVersion < 6 && - this.input.slice(start, end).indexOf("\\") !== -1) { return } - var re = this.strict ? this.reservedWordsStrict : this.reservedWords; - if (re.test(name)) { - if (!this.inAsync && name === "await") - { this.raiseRecoverable(start, "Cannot use keyword 'await' outside an async function"); } - this.raiseRecoverable(start, ("The keyword '" + name + "' is reserved")); - } - }; - - // Parse the next token as an identifier. If `liberal` is true (used - // when parsing properties), it will also convert keywords into - // identifiers. - - pp$5.parseIdent = function(liberal, isBinding) { - var node = this.startNode(); - if (this.type === types$1.name) { - node.name = this.value; - } else if (this.type.keyword) { - node.name = this.type.keyword; - - // To fix https://github.com/acornjs/acorn/issues/575 - // `class` and `function` keywords push new context into this.context. - // But there is no chance to pop the context if the keyword is consumed as an identifier such as a property name. - // If the previous token is a dot, this does not apply because the context-managing code already ignored the keyword - if ((node.name === "class" || node.name === "function") && - (this.lastTokEnd !== this.lastTokStart + 1 || this.input.charCodeAt(this.lastTokStart) !== 46)) { - this.context.pop(); - } - } else { - this.unexpected(); - } - this.next(!!liberal); - this.finishNode(node, "Identifier"); - if (!liberal) { - this.checkUnreserved(node); - if (node.name === "await" && !this.awaitIdentPos) - { this.awaitIdentPos = node.start; } - } - return node - }; - - pp$5.parsePrivateIdent = function() { - var node = this.startNode(); - if (this.type === types$1.privateId) { - node.name = this.value; - } else { - this.unexpected(); - } - this.next(); - this.finishNode(node, "PrivateIdentifier"); - - // For validating existence - if (this.privateNameStack.length === 0) { - this.raise(node.start, ("Private field '#" + (node.name) + "' must be declared in an enclosing class")); - } else { - this.privateNameStack[this.privateNameStack.length - 1].used.push(node); - } - - return node - }; - - // Parses yield expression inside generator. - - pp$5.parseYield = function(forInit) { - if (!this.yieldPos) { this.yieldPos = this.start; } - - var node = this.startNode(); - this.next(); - if (this.type === types$1.semi || this.canInsertSemicolon() || (this.type !== types$1.star && !this.type.startsExpr)) { - node.delegate = false; - node.argument = null; - } else { - node.delegate = this.eat(types$1.star); - node.argument = this.parseMaybeAssign(forInit); - } - return this.finishNode(node, "YieldExpression") - }; - - pp$5.parseAwait = function(forInit) { - if (!this.awaitPos) { this.awaitPos = this.start; } - - var node = this.startNode(); - this.next(); - node.argument = this.parseMaybeUnary(null, true, false, forInit); - return this.finishNode(node, "AwaitExpression") - }; - - var pp$4 = Parser.prototype; - - // This function is used to raise exceptions on parse errors. It - // takes an offset integer (into the current `input`) to indicate - // the location of the error, attaches the position to the end - // of the error message, and then raises a `SyntaxError` with that - // message. - - pp$4.raise = function(pos, message) { - var loc = getLineInfo(this.input, pos); - message += " (" + loc.line + ":" + loc.column + ")"; - var err = new SyntaxError(message); - err.pos = pos; err.loc = loc; err.raisedAt = this.pos; - throw err - }; - - pp$4.raiseRecoverable = pp$4.raise; - - pp$4.curPosition = function() { - if (this.options.locations) { - return new Position(this.curLine, this.pos - this.lineStart) - } - }; - - var pp$3 = Parser.prototype; - - var Scope = function Scope(flags) { - this.flags = flags; - // A list of var-declared names in the current lexical scope - this.var = []; - // A list of lexically-declared names in the current lexical scope - this.lexical = []; - // A list of lexically-declared FunctionDeclaration names in the current lexical scope - this.functions = []; - // A switch to disallow the identifier reference 'arguments' - this.inClassFieldInit = false; - }; - - // The functions in this module keep track of declared variables in the current scope in order to detect duplicate variable names. - - pp$3.enterScope = function(flags) { - this.scopeStack.push(new Scope(flags)); - }; - - pp$3.exitScope = function() { - this.scopeStack.pop(); - }; - - // The spec says: - // > At the top level of a function, or script, function declarations are - // > treated like var declarations rather than like lexical declarations. - pp$3.treatFunctionsAsVarInScope = function(scope) { - return (scope.flags & SCOPE_FUNCTION) || !this.inModule && (scope.flags & SCOPE_TOP) - }; - - pp$3.declareName = function(name, bindingType, pos) { - var redeclared = false; - if (bindingType === BIND_LEXICAL) { - var scope = this.currentScope(); - redeclared = scope.lexical.indexOf(name) > -1 || scope.functions.indexOf(name) > -1 || scope.var.indexOf(name) > -1; - scope.lexical.push(name); - if (this.inModule && (scope.flags & SCOPE_TOP)) - { delete this.undefinedExports[name]; } - } else if (bindingType === BIND_SIMPLE_CATCH) { - var scope$1 = this.currentScope(); - scope$1.lexical.push(name); - } else if (bindingType === BIND_FUNCTION) { - var scope$2 = this.currentScope(); - if (this.treatFunctionsAsVar) - { redeclared = scope$2.lexical.indexOf(name) > -1; } - else - { redeclared = scope$2.lexical.indexOf(name) > -1 || scope$2.var.indexOf(name) > -1; } - scope$2.functions.push(name); - } else { - for (var i = this.scopeStack.length - 1; i >= 0; --i) { - var scope$3 = this.scopeStack[i]; - if (scope$3.lexical.indexOf(name) > -1 && !((scope$3.flags & SCOPE_SIMPLE_CATCH) && scope$3.lexical[0] === name) || - !this.treatFunctionsAsVarInScope(scope$3) && scope$3.functions.indexOf(name) > -1) { - redeclared = true; - break - } - scope$3.var.push(name); - if (this.inModule && (scope$3.flags & SCOPE_TOP)) - { delete this.undefinedExports[name]; } - if (scope$3.flags & SCOPE_VAR) { break } - } - } - if (redeclared) { this.raiseRecoverable(pos, ("Identifier '" + name + "' has already been declared")); } - }; - - pp$3.checkLocalExport = function(id) { - // scope.functions must be empty as Module code is always strict. - if (this.scopeStack[0].lexical.indexOf(id.name) === -1 && - this.scopeStack[0].var.indexOf(id.name) === -1) { - this.undefinedExports[id.name] = id; - } - }; - - pp$3.currentScope = function() { - return this.scopeStack[this.scopeStack.length - 1] - }; - - pp$3.currentVarScope = function() { - for (var i = this.scopeStack.length - 1;; i--) { - var scope = this.scopeStack[i]; - if (scope.flags & SCOPE_VAR) { return scope } - } - }; - - // Could be useful for `this`, `new.target`, `super()`, `super.property`, and `super[property]`. - pp$3.currentThisScope = function() { - for (var i = this.scopeStack.length - 1;; i--) { - var scope = this.scopeStack[i]; - if (scope.flags & SCOPE_VAR && !(scope.flags & SCOPE_ARROW)) { return scope } - } - }; - - var Node = function Node(parser, pos, loc) { - this.type = ""; - this.start = pos; - this.end = 0; - if (parser.options.locations) - { this.loc = new SourceLocation(parser, loc); } - if (parser.options.directSourceFile) - { this.sourceFile = parser.options.directSourceFile; } - if (parser.options.ranges) - { this.range = [pos, 0]; } - }; - - // Start an AST node, attaching a start offset. - - var pp$2 = Parser.prototype; - - pp$2.startNode = function() { - return new Node(this, this.start, this.startLoc) - }; - - pp$2.startNodeAt = function(pos, loc) { - return new Node(this, pos, loc) - }; - - // Finish an AST node, adding `type` and `end` properties. - - function finishNodeAt(node, type, pos, loc) { - node.type = type; - node.end = pos; - if (this.options.locations) - { node.loc.end = loc; } - if (this.options.ranges) - { node.range[1] = pos; } - return node - } - - pp$2.finishNode = function(node, type) { - return finishNodeAt.call(this, node, type, this.lastTokEnd, this.lastTokEndLoc) - }; - - // Finish node at given position - - pp$2.finishNodeAt = function(node, type, pos, loc) { - return finishNodeAt.call(this, node, type, pos, loc) - }; - - pp$2.copyNode = function(node) { - var newNode = new Node(this, node.start, this.startLoc); - for (var prop in node) { newNode[prop] = node[prop]; } - return newNode - }; - - // This file contains Unicode properties extracted from the ECMAScript - // specification. The lists are extracted like so: - // $$('#table-binary-unicode-properties > figure > table > tbody > tr > td:nth-child(1) code').map(el => el.innerText) - - // #table-binary-unicode-properties - var ecma9BinaryProperties = "ASCII ASCII_Hex_Digit AHex Alphabetic Alpha Any Assigned Bidi_Control Bidi_C Bidi_Mirrored Bidi_M Case_Ignorable CI Cased Changes_When_Casefolded CWCF Changes_When_Casemapped CWCM Changes_When_Lowercased CWL Changes_When_NFKC_Casefolded CWKCF Changes_When_Titlecased CWT Changes_When_Uppercased CWU Dash Default_Ignorable_Code_Point DI Deprecated Dep Diacritic Dia Emoji Emoji_Component Emoji_Modifier Emoji_Modifier_Base Emoji_Presentation Extender Ext Grapheme_Base Gr_Base Grapheme_Extend Gr_Ext Hex_Digit Hex IDS_Binary_Operator IDSB IDS_Trinary_Operator IDST ID_Continue IDC ID_Start IDS Ideographic Ideo Join_Control Join_C Logical_Order_Exception LOE Lowercase Lower Math Noncharacter_Code_Point NChar Pattern_Syntax Pat_Syn Pattern_White_Space Pat_WS Quotation_Mark QMark Radical Regional_Indicator RI Sentence_Terminal STerm Soft_Dotted SD Terminal_Punctuation Term Unified_Ideograph UIdeo Uppercase Upper Variation_Selector VS White_Space space XID_Continue XIDC XID_Start XIDS"; - var ecma10BinaryProperties = ecma9BinaryProperties + " Extended_Pictographic"; - var ecma11BinaryProperties = ecma10BinaryProperties; - var ecma12BinaryProperties = ecma11BinaryProperties + " EBase EComp EMod EPres ExtPict"; - var ecma13BinaryProperties = ecma12BinaryProperties; - var unicodeBinaryProperties = { - 9: ecma9BinaryProperties, - 10: ecma10BinaryProperties, - 11: ecma11BinaryProperties, - 12: ecma12BinaryProperties, - 13: ecma13BinaryProperties - }; - - // #table-unicode-general-category-values - var unicodeGeneralCategoryValues = "Cased_Letter LC Close_Punctuation Pe Connector_Punctuation Pc Control Cc cntrl Currency_Symbol Sc Dash_Punctuation Pd Decimal_Number Nd digit Enclosing_Mark Me Final_Punctuation Pf Format Cf Initial_Punctuation Pi Letter L Letter_Number Nl Line_Separator Zl Lowercase_Letter Ll Mark M Combining_Mark Math_Symbol Sm Modifier_Letter Lm Modifier_Symbol Sk Nonspacing_Mark Mn Number N Open_Punctuation Ps Other C Other_Letter Lo Other_Number No Other_Punctuation Po Other_Symbol So Paragraph_Separator Zp Private_Use Co Punctuation P punct Separator Z Space_Separator Zs Spacing_Mark Mc Surrogate Cs Symbol S Titlecase_Letter Lt Unassigned Cn Uppercase_Letter Lu"; - - // #table-unicode-script-values - var ecma9ScriptValues = "Adlam Adlm Ahom Anatolian_Hieroglyphs Hluw Arabic Arab Armenian Armn Avestan Avst Balinese Bali Bamum Bamu Bassa_Vah Bass Batak Batk Bengali Beng Bhaiksuki Bhks Bopomofo Bopo Brahmi Brah Braille Brai Buginese Bugi Buhid Buhd Canadian_Aboriginal Cans Carian Cari Caucasian_Albanian Aghb Chakma Cakm Cham Cham Cherokee Cher Common Zyyy Coptic Copt Qaac Cuneiform Xsux Cypriot Cprt Cyrillic Cyrl Deseret Dsrt Devanagari Deva Duployan Dupl Egyptian_Hieroglyphs Egyp Elbasan Elba Ethiopic Ethi Georgian Geor Glagolitic Glag Gothic Goth Grantha Gran Greek Grek Gujarati Gujr Gurmukhi Guru Han Hani Hangul Hang Hanunoo Hano Hatran Hatr Hebrew Hebr Hiragana Hira Imperial_Aramaic Armi Inherited Zinh Qaai Inscriptional_Pahlavi Phli Inscriptional_Parthian Prti Javanese Java Kaithi Kthi Kannada Knda Katakana Kana Kayah_Li Kali Kharoshthi Khar Khmer Khmr Khojki Khoj Khudawadi Sind Lao Laoo Latin Latn Lepcha Lepc Limbu Limb Linear_A Lina Linear_B Linb Lisu Lisu Lycian Lyci Lydian Lydi Mahajani Mahj Malayalam Mlym Mandaic Mand Manichaean Mani Marchen Marc Masaram_Gondi Gonm Meetei_Mayek Mtei Mende_Kikakui Mend Meroitic_Cursive Merc Meroitic_Hieroglyphs Mero Miao Plrd Modi Mongolian Mong Mro Mroo Multani Mult Myanmar Mymr Nabataean Nbat New_Tai_Lue Talu Newa Newa Nko Nkoo Nushu Nshu Ogham Ogam Ol_Chiki Olck Old_Hungarian Hung Old_Italic Ital Old_North_Arabian Narb Old_Permic Perm Old_Persian Xpeo Old_South_Arabian Sarb Old_Turkic Orkh Oriya Orya Osage Osge Osmanya Osma Pahawh_Hmong Hmng Palmyrene Palm Pau_Cin_Hau Pauc Phags_Pa Phag Phoenician Phnx Psalter_Pahlavi Phlp Rejang Rjng Runic Runr Samaritan Samr Saurashtra Saur Sharada Shrd Shavian Shaw Siddham Sidd SignWriting Sgnw Sinhala Sinh Sora_Sompeng Sora Soyombo Soyo Sundanese Sund Syloti_Nagri Sylo Syriac Syrc Tagalog Tglg Tagbanwa Tagb Tai_Le Tale Tai_Tham Lana Tai_Viet Tavt Takri Takr Tamil Taml Tangut Tang Telugu Telu Thaana Thaa Thai Thai Tibetan Tibt Tifinagh Tfng Tirhuta Tirh Ugaritic Ugar Vai Vaii Warang_Citi Wara Yi Yiii Zanabazar_Square Zanb"; - var ecma10ScriptValues = ecma9ScriptValues + " Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd"; - var ecma11ScriptValues = ecma10ScriptValues + " Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho"; - var ecma12ScriptValues = ecma11ScriptValues + " Chorasmian Chrs Diak Dives_Akuru Khitan_Small_Script Kits Yezi Yezidi"; - var ecma13ScriptValues = ecma12ScriptValues + " Cypro_Minoan Cpmn Old_Uyghur Ougr Tangsa Tnsa Toto Vithkuqi Vith"; - var unicodeScriptValues = { - 9: ecma9ScriptValues, - 10: ecma10ScriptValues, - 11: ecma11ScriptValues, - 12: ecma12ScriptValues, - 13: ecma13ScriptValues - }; - - var data = {}; - function buildUnicodeData(ecmaVersion) { - var d = data[ecmaVersion] = { - binary: wordsRegexp(unicodeBinaryProperties[ecmaVersion] + " " + unicodeGeneralCategoryValues), - nonBinary: { - General_Category: wordsRegexp(unicodeGeneralCategoryValues), - Script: wordsRegexp(unicodeScriptValues[ecmaVersion]) - } - }; - d.nonBinary.Script_Extensions = d.nonBinary.Script; - - d.nonBinary.gc = d.nonBinary.General_Category; - d.nonBinary.sc = d.nonBinary.Script; - d.nonBinary.scx = d.nonBinary.Script_Extensions; - } - - for (var i = 0, list = [9, 10, 11, 12, 13]; i < list.length; i += 1) { - var ecmaVersion = list[i]; - - buildUnicodeData(ecmaVersion); - } - - var pp$1 = Parser.prototype; - - var RegExpValidationState = function RegExpValidationState(parser) { - this.parser = parser; - this.validFlags = "gim" + (parser.options.ecmaVersion >= 6 ? "uy" : "") + (parser.options.ecmaVersion >= 9 ? "s" : "") + (parser.options.ecmaVersion >= 13 ? "d" : ""); - this.unicodeProperties = data[parser.options.ecmaVersion >= 13 ? 13 : parser.options.ecmaVersion]; - this.source = ""; - this.flags = ""; - this.start = 0; - this.switchU = false; - this.switchN = false; - this.pos = 0; - this.lastIntValue = 0; - this.lastStringValue = ""; - this.lastAssertionIsQuantifiable = false; - this.numCapturingParens = 0; - this.maxBackReference = 0; - this.groupNames = []; - this.backReferenceNames = []; - }; - - RegExpValidationState.prototype.reset = function reset (start, pattern, flags) { - var unicode = flags.indexOf("u") !== -1; - this.start = start | 0; - this.source = pattern + ""; - this.flags = flags; - this.switchU = unicode && this.parser.options.ecmaVersion >= 6; - this.switchN = unicode && this.parser.options.ecmaVersion >= 9; - }; - - RegExpValidationState.prototype.raise = function raise (message) { - this.parser.raiseRecoverable(this.start, ("Invalid regular expression: /" + (this.source) + "/: " + message)); - }; - - // If u flag is given, this returns the code point at the index (it combines a surrogate pair). - // Otherwise, this returns the code unit of the index (can be a part of a surrogate pair). - RegExpValidationState.prototype.at = function at (i, forceU) { - if ( forceU === void 0 ) forceU = false; - - var s = this.source; - var l = s.length; - if (i >= l) { - return -1 - } - var c = s.charCodeAt(i); - if (!(forceU || this.switchU) || c <= 0xD7FF || c >= 0xE000 || i + 1 >= l) { - return c - } - var next = s.charCodeAt(i + 1); - return next >= 0xDC00 && next <= 0xDFFF ? (c << 10) + next - 0x35FDC00 : c - }; - - RegExpValidationState.prototype.nextIndex = function nextIndex (i, forceU) { - if ( forceU === void 0 ) forceU = false; - - var s = this.source; - var l = s.length; - if (i >= l) { - return l - } - var c = s.charCodeAt(i), next; - if (!(forceU || this.switchU) || c <= 0xD7FF || c >= 0xE000 || i + 1 >= l || - (next = s.charCodeAt(i + 1)) < 0xDC00 || next > 0xDFFF) { - return i + 1 - } - return i + 2 - }; - - RegExpValidationState.prototype.current = function current (forceU) { - if ( forceU === void 0 ) forceU = false; - - return this.at(this.pos, forceU) - }; - - RegExpValidationState.prototype.lookahead = function lookahead (forceU) { - if ( forceU === void 0 ) forceU = false; - - return this.at(this.nextIndex(this.pos, forceU), forceU) - }; - - RegExpValidationState.prototype.advance = function advance (forceU) { - if ( forceU === void 0 ) forceU = false; - - this.pos = this.nextIndex(this.pos, forceU); - }; - - RegExpValidationState.prototype.eat = function eat (ch, forceU) { - if ( forceU === void 0 ) forceU = false; - - if (this.current(forceU) === ch) { - this.advance(forceU); - return true - } - return false - }; - - function codePointToString$1(ch) { - if (ch <= 0xFFFF) { return String.fromCharCode(ch) } - ch -= 0x10000; - return String.fromCharCode((ch >> 10) + 0xD800, (ch & 0x03FF) + 0xDC00) - } - - /** - * Validate the flags part of a given RegExpLiteral. - * - * @param {RegExpValidationState} state The state to validate RegExp. - * @returns {void} - */ - pp$1.validateRegExpFlags = function(state) { - var validFlags = state.validFlags; - var flags = state.flags; - - for (var i = 0; i < flags.length; i++) { - var flag = flags.charAt(i); - if (validFlags.indexOf(flag) === -1) { - this.raise(state.start, "Invalid regular expression flag"); - } - if (flags.indexOf(flag, i + 1) > -1) { - this.raise(state.start, "Duplicate regular expression flag"); - } - } - }; - - /** - * Validate the pattern part of a given RegExpLiteral. - * - * @param {RegExpValidationState} state The state to validate RegExp. - * @returns {void} - */ - pp$1.validateRegExpPattern = function(state) { - this.regexp_pattern(state); - - // The goal symbol for the parse is |Pattern[~U, ~N]|. If the result of - // parsing contains a |GroupName|, reparse with the goal symbol - // |Pattern[~U, +N]| and use this result instead. Throw a *SyntaxError* - // exception if _P_ did not conform to the grammar, if any elements of _P_ - // were not matched by the parse, or if any Early Error conditions exist. - if (!state.switchN && this.options.ecmaVersion >= 9 && state.groupNames.length > 0) { - state.switchN = true; - this.regexp_pattern(state); - } - }; - - // https://www.ecma-international.org/ecma-262/8.0/#prod-Pattern - pp$1.regexp_pattern = function(state) { - state.pos = 0; - state.lastIntValue = 0; - state.lastStringValue = ""; - state.lastAssertionIsQuantifiable = false; - state.numCapturingParens = 0; - state.maxBackReference = 0; - state.groupNames.length = 0; - state.backReferenceNames.length = 0; - - this.regexp_disjunction(state); - - if (state.pos !== state.source.length) { - // Make the same messages as V8. - if (state.eat(0x29 /* ) */)) { - state.raise("Unmatched ')'"); - } - if (state.eat(0x5D /* ] */) || state.eat(0x7D /* } */)) { - state.raise("Lone quantifier brackets"); - } - } - if (state.maxBackReference > state.numCapturingParens) { - state.raise("Invalid escape"); - } - for (var i = 0, list = state.backReferenceNames; i < list.length; i += 1) { - var name = list[i]; - - if (state.groupNames.indexOf(name) === -1) { - state.raise("Invalid named capture referenced"); - } - } - }; - - // https://www.ecma-international.org/ecma-262/8.0/#prod-Disjunction - pp$1.regexp_disjunction = function(state) { - this.regexp_alternative(state); - while (state.eat(0x7C /* | */)) { - this.regexp_alternative(state); - } - - // Make the same message as V8. - if (this.regexp_eatQuantifier(state, true)) { - state.raise("Nothing to repeat"); - } - if (state.eat(0x7B /* { */)) { - state.raise("Lone quantifier brackets"); - } - }; - - // https://www.ecma-international.org/ecma-262/8.0/#prod-Alternative - pp$1.regexp_alternative = function(state) { - while (state.pos < state.source.length && this.regexp_eatTerm(state)) - { } - }; - - // https://www.ecma-international.org/ecma-262/8.0/#prod-annexB-Term - pp$1.regexp_eatTerm = function(state) { - if (this.regexp_eatAssertion(state)) { - // Handle `QuantifiableAssertion Quantifier` alternative. - // `state.lastAssertionIsQuantifiable` is true if the last eaten Assertion - // is a QuantifiableAssertion. - if (state.lastAssertionIsQuantifiable && this.regexp_eatQuantifier(state)) { - // Make the same message as V8. - if (state.switchU) { - state.raise("Invalid quantifier"); - } - } - return true - } - - if (state.switchU ? this.regexp_eatAtom(state) : this.regexp_eatExtendedAtom(state)) { - this.regexp_eatQuantifier(state); - return true - } - - return false - }; - - // https://www.ecma-international.org/ecma-262/8.0/#prod-annexB-Assertion - pp$1.regexp_eatAssertion = function(state) { - var start = state.pos; - state.lastAssertionIsQuantifiable = false; - - // ^, $ - if (state.eat(0x5E /* ^ */) || state.eat(0x24 /* $ */)) { - return true - } - - // \b \B - if (state.eat(0x5C /* \ */)) { - if (state.eat(0x42 /* B */) || state.eat(0x62 /* b */)) { - return true - } - state.pos = start; - } - - // Lookahead / Lookbehind - if (state.eat(0x28 /* ( */) && state.eat(0x3F /* ? */)) { - var lookbehind = false; - if (this.options.ecmaVersion >= 9) { - lookbehind = state.eat(0x3C /* < */); - } - if (state.eat(0x3D /* = */) || state.eat(0x21 /* ! */)) { - this.regexp_disjunction(state); - if (!state.eat(0x29 /* ) */)) { - state.raise("Unterminated group"); - } - state.lastAssertionIsQuantifiable = !lookbehind; - return true - } - } - - state.pos = start; - return false - }; - - // https://www.ecma-international.org/ecma-262/8.0/#prod-Quantifier - pp$1.regexp_eatQuantifier = function(state, noError) { - if ( noError === void 0 ) noError = false; - - if (this.regexp_eatQuantifierPrefix(state, noError)) { - state.eat(0x3F /* ? */); - return true - } - return false - }; - - // https://www.ecma-international.org/ecma-262/8.0/#prod-QuantifierPrefix - pp$1.regexp_eatQuantifierPrefix = function(state, noError) { - return ( - state.eat(0x2A /* * */) || - state.eat(0x2B /* + */) || - state.eat(0x3F /* ? */) || - this.regexp_eatBracedQuantifier(state, noError) - ) - }; - pp$1.regexp_eatBracedQuantifier = function(state, noError) { - var start = state.pos; - if (state.eat(0x7B /* { */)) { - var min = 0, max = -1; - if (this.regexp_eatDecimalDigits(state)) { - min = state.lastIntValue; - if (state.eat(0x2C /* , */) && this.regexp_eatDecimalDigits(state)) { - max = state.lastIntValue; - } - if (state.eat(0x7D /* } */)) { - // SyntaxError in https://www.ecma-international.org/ecma-262/8.0/#sec-term - if (max !== -1 && max < min && !noError) { - state.raise("numbers out of order in {} quantifier"); - } - return true - } - } - if (state.switchU && !noError) { - state.raise("Incomplete quantifier"); - } - state.pos = start; - } - return false - }; - - // https://www.ecma-international.org/ecma-262/8.0/#prod-Atom - pp$1.regexp_eatAtom = function(state) { - return ( - this.regexp_eatPatternCharacters(state) || - state.eat(0x2E /* . */) || - this.regexp_eatReverseSolidusAtomEscape(state) || - this.regexp_eatCharacterClass(state) || - this.regexp_eatUncapturingGroup(state) || - this.regexp_eatCapturingGroup(state) - ) - }; - pp$1.regexp_eatReverseSolidusAtomEscape = function(state) { - var start = state.pos; - if (state.eat(0x5C /* \ */)) { - if (this.regexp_eatAtomEscape(state)) { - return true - } - state.pos = start; - } - return false - }; - pp$1.regexp_eatUncapturingGroup = function(state) { - var start = state.pos; - if (state.eat(0x28 /* ( */)) { - if (state.eat(0x3F /* ? */) && state.eat(0x3A /* : */)) { - this.regexp_disjunction(state); - if (state.eat(0x29 /* ) */)) { - return true - } - state.raise("Unterminated group"); - } - state.pos = start; - } - return false - }; - pp$1.regexp_eatCapturingGroup = function(state) { - if (state.eat(0x28 /* ( */)) { - if (this.options.ecmaVersion >= 9) { - this.regexp_groupSpecifier(state); - } else if (state.current() === 0x3F /* ? */) { - state.raise("Invalid group"); - } - this.regexp_disjunction(state); - if (state.eat(0x29 /* ) */)) { - state.numCapturingParens += 1; - return true - } - state.raise("Unterminated group"); - } - return false - }; - - // https://www.ecma-international.org/ecma-262/8.0/#prod-annexB-ExtendedAtom - pp$1.regexp_eatExtendedAtom = function(state) { - return ( - state.eat(0x2E /* . */) || - this.regexp_eatReverseSolidusAtomEscape(state) || - this.regexp_eatCharacterClass(state) || - this.regexp_eatUncapturingGroup(state) || - this.regexp_eatCapturingGroup(state) || - this.regexp_eatInvalidBracedQuantifier(state) || - this.regexp_eatExtendedPatternCharacter(state) - ) - }; - - // https://www.ecma-international.org/ecma-262/8.0/#prod-annexB-InvalidBracedQuantifier - pp$1.regexp_eatInvalidBracedQuantifier = function(state) { - if (this.regexp_eatBracedQuantifier(state, true)) { - state.raise("Nothing to repeat"); - } - return false - }; - - // https://www.ecma-international.org/ecma-262/8.0/#prod-SyntaxCharacter - pp$1.regexp_eatSyntaxCharacter = function(state) { - var ch = state.current(); - if (isSyntaxCharacter(ch)) { - state.lastIntValue = ch; - state.advance(); - return true - } - return false - }; - function isSyntaxCharacter(ch) { - return ( - ch === 0x24 /* $ */ || - ch >= 0x28 /* ( */ && ch <= 0x2B /* + */ || - ch === 0x2E /* . */ || - ch === 0x3F /* ? */ || - ch >= 0x5B /* [ */ && ch <= 0x5E /* ^ */ || - ch >= 0x7B /* { */ && ch <= 0x7D /* } */ - ) - } - - // https://www.ecma-international.org/ecma-262/8.0/#prod-PatternCharacter - // But eat eager. - pp$1.regexp_eatPatternCharacters = function(state) { - var start = state.pos; - var ch = 0; - while ((ch = state.current()) !== -1 && !isSyntaxCharacter(ch)) { - state.advance(); - } - return state.pos !== start - }; - - // https://www.ecma-international.org/ecma-262/8.0/#prod-annexB-ExtendedPatternCharacter - pp$1.regexp_eatExtendedPatternCharacter = function(state) { - var ch = state.current(); - if ( - ch !== -1 && - ch !== 0x24 /* $ */ && - !(ch >= 0x28 /* ( */ && ch <= 0x2B /* + */) && - ch !== 0x2E /* . */ && - ch !== 0x3F /* ? */ && - ch !== 0x5B /* [ */ && - ch !== 0x5E /* ^ */ && - ch !== 0x7C /* | */ - ) { - state.advance(); - return true - } - return false - }; - - // GroupSpecifier :: - // [empty] - // `?` GroupName - pp$1.regexp_groupSpecifier = function(state) { - if (state.eat(0x3F /* ? */)) { - if (this.regexp_eatGroupName(state)) { - if (state.groupNames.indexOf(state.lastStringValue) !== -1) { - state.raise("Duplicate capture group name"); - } - state.groupNames.push(state.lastStringValue); - return - } - state.raise("Invalid group"); - } - }; - - // GroupName :: - // `<` RegExpIdentifierName `>` - // Note: this updates `state.lastStringValue` property with the eaten name. - pp$1.regexp_eatGroupName = function(state) { - state.lastStringValue = ""; - if (state.eat(0x3C /* < */)) { - if (this.regexp_eatRegExpIdentifierName(state) && state.eat(0x3E /* > */)) { - return true - } - state.raise("Invalid capture group name"); - } - return false - }; - - // RegExpIdentifierName :: - // RegExpIdentifierStart - // RegExpIdentifierName RegExpIdentifierPart - // Note: this updates `state.lastStringValue` property with the eaten name. - pp$1.regexp_eatRegExpIdentifierName = function(state) { - state.lastStringValue = ""; - if (this.regexp_eatRegExpIdentifierStart(state)) { - state.lastStringValue += codePointToString$1(state.lastIntValue); - while (this.regexp_eatRegExpIdentifierPart(state)) { - state.lastStringValue += codePointToString$1(state.lastIntValue); - } - return true - } - return false - }; - - // RegExpIdentifierStart :: - // UnicodeIDStart - // `$` - // `_` - // `\` RegExpUnicodeEscapeSequence[+U] - pp$1.regexp_eatRegExpIdentifierStart = function(state) { - var start = state.pos; - var forceU = this.options.ecmaVersion >= 11; - var ch = state.current(forceU); - state.advance(forceU); - - if (ch === 0x5C /* \ */ && this.regexp_eatRegExpUnicodeEscapeSequence(state, forceU)) { - ch = state.lastIntValue; - } - if (isRegExpIdentifierStart(ch)) { - state.lastIntValue = ch; - return true - } - - state.pos = start; - return false - }; - function isRegExpIdentifierStart(ch) { - return isIdentifierStart(ch, true) || ch === 0x24 /* $ */ || ch === 0x5F /* _ */ - } - - // RegExpIdentifierPart :: - // UnicodeIDContinue - // `$` - // `_` - // `\` RegExpUnicodeEscapeSequence[+U] - // - // - pp$1.regexp_eatRegExpIdentifierPart = function(state) { - var start = state.pos; - var forceU = this.options.ecmaVersion >= 11; - var ch = state.current(forceU); - state.advance(forceU); - - if (ch === 0x5C /* \ */ && this.regexp_eatRegExpUnicodeEscapeSequence(state, forceU)) { - ch = state.lastIntValue; - } - if (isRegExpIdentifierPart(ch)) { - state.lastIntValue = ch; - return true - } - - state.pos = start; - return false - }; - function isRegExpIdentifierPart(ch) { - return isIdentifierChar(ch, true) || ch === 0x24 /* $ */ || ch === 0x5F /* _ */ || ch === 0x200C /* */ || ch === 0x200D /* */ - } - - // https://www.ecma-international.org/ecma-262/8.0/#prod-annexB-AtomEscape - pp$1.regexp_eatAtomEscape = function(state) { - if ( - this.regexp_eatBackReference(state) || - this.regexp_eatCharacterClassEscape(state) || - this.regexp_eatCharacterEscape(state) || - (state.switchN && this.regexp_eatKGroupName(state)) - ) { - return true - } - if (state.switchU) { - // Make the same message as V8. - if (state.current() === 0x63 /* c */) { - state.raise("Invalid unicode escape"); - } - state.raise("Invalid escape"); - } - return false - }; - pp$1.regexp_eatBackReference = function(state) { - var start = state.pos; - if (this.regexp_eatDecimalEscape(state)) { - var n = state.lastIntValue; - if (state.switchU) { - // For SyntaxError in https://www.ecma-international.org/ecma-262/8.0/#sec-atomescape - if (n > state.maxBackReference) { - state.maxBackReference = n; - } - return true - } - if (n <= state.numCapturingParens) { - return true - } - state.pos = start; - } - return false - }; - pp$1.regexp_eatKGroupName = function(state) { - if (state.eat(0x6B /* k */)) { - if (this.regexp_eatGroupName(state)) { - state.backReferenceNames.push(state.lastStringValue); - return true - } - state.raise("Invalid named reference"); - } - return false - }; - - // https://www.ecma-international.org/ecma-262/8.0/#prod-annexB-CharacterEscape - pp$1.regexp_eatCharacterEscape = function(state) { - return ( - this.regexp_eatControlEscape(state) || - this.regexp_eatCControlLetter(state) || - this.regexp_eatZero(state) || - this.regexp_eatHexEscapeSequence(state) || - this.regexp_eatRegExpUnicodeEscapeSequence(state, false) || - (!state.switchU && this.regexp_eatLegacyOctalEscapeSequence(state)) || - this.regexp_eatIdentityEscape(state) - ) - }; - pp$1.regexp_eatCControlLetter = function(state) { - var start = state.pos; - if (state.eat(0x63 /* c */)) { - if (this.regexp_eatControlLetter(state)) { - return true - } - state.pos = start; - } - return false - }; - pp$1.regexp_eatZero = function(state) { - if (state.current() === 0x30 /* 0 */ && !isDecimalDigit(state.lookahead())) { - state.lastIntValue = 0; - state.advance(); - return true - } - return false - }; - - // https://www.ecma-international.org/ecma-262/8.0/#prod-ControlEscape - pp$1.regexp_eatControlEscape = function(state) { - var ch = state.current(); - if (ch === 0x74 /* t */) { - state.lastIntValue = 0x09; /* \t */ - state.advance(); - return true - } - if (ch === 0x6E /* n */) { - state.lastIntValue = 0x0A; /* \n */ - state.advance(); - return true - } - if (ch === 0x76 /* v */) { - state.lastIntValue = 0x0B; /* \v */ - state.advance(); - return true - } - if (ch === 0x66 /* f */) { - state.lastIntValue = 0x0C; /* \f */ - state.advance(); - return true - } - if (ch === 0x72 /* r */) { - state.lastIntValue = 0x0D; /* \r */ - state.advance(); - return true - } - return false - }; - - // https://www.ecma-international.org/ecma-262/8.0/#prod-ControlLetter - pp$1.regexp_eatControlLetter = function(state) { - var ch = state.current(); - if (isControlLetter(ch)) { - state.lastIntValue = ch % 0x20; - state.advance(); - return true - } - return false - }; - function isControlLetter(ch) { - return ( - (ch >= 0x41 /* A */ && ch <= 0x5A /* Z */) || - (ch >= 0x61 /* a */ && ch <= 0x7A /* z */) - ) - } - - // https://www.ecma-international.org/ecma-262/8.0/#prod-RegExpUnicodeEscapeSequence - pp$1.regexp_eatRegExpUnicodeEscapeSequence = function(state, forceU) { - if ( forceU === void 0 ) forceU = false; - - var start = state.pos; - var switchU = forceU || state.switchU; - - if (state.eat(0x75 /* u */)) { - if (this.regexp_eatFixedHexDigits(state, 4)) { - var lead = state.lastIntValue; - if (switchU && lead >= 0xD800 && lead <= 0xDBFF) { - var leadSurrogateEnd = state.pos; - if (state.eat(0x5C /* \ */) && state.eat(0x75 /* u */) && this.regexp_eatFixedHexDigits(state, 4)) { - var trail = state.lastIntValue; - if (trail >= 0xDC00 && trail <= 0xDFFF) { - state.lastIntValue = (lead - 0xD800) * 0x400 + (trail - 0xDC00) + 0x10000; - return true - } - } - state.pos = leadSurrogateEnd; - state.lastIntValue = lead; - } - return true - } - if ( - switchU && - state.eat(0x7B /* { */) && - this.regexp_eatHexDigits(state) && - state.eat(0x7D /* } */) && - isValidUnicode(state.lastIntValue) - ) { - return true - } - if (switchU) { - state.raise("Invalid unicode escape"); - } - state.pos = start; - } - - return false - }; - function isValidUnicode(ch) { - return ch >= 0 && ch <= 0x10FFFF - } - - // https://www.ecma-international.org/ecma-262/8.0/#prod-annexB-IdentityEscape - pp$1.regexp_eatIdentityEscape = function(state) { - if (state.switchU) { - if (this.regexp_eatSyntaxCharacter(state)) { - return true - } - if (state.eat(0x2F /* / */)) { - state.lastIntValue = 0x2F; /* / */ - return true - } - return false - } - - var ch = state.current(); - if (ch !== 0x63 /* c */ && (!state.switchN || ch !== 0x6B /* k */)) { - state.lastIntValue = ch; - state.advance(); - return true - } - - return false - }; - - // https://www.ecma-international.org/ecma-262/8.0/#prod-DecimalEscape - pp$1.regexp_eatDecimalEscape = function(state) { - state.lastIntValue = 0; - var ch = state.current(); - if (ch >= 0x31 /* 1 */ && ch <= 0x39 /* 9 */) { - do { - state.lastIntValue = 10 * state.lastIntValue + (ch - 0x30 /* 0 */); - state.advance(); - } while ((ch = state.current()) >= 0x30 /* 0 */ && ch <= 0x39 /* 9 */) - return true - } - return false - }; - - // https://www.ecma-international.org/ecma-262/8.0/#prod-CharacterClassEscape - pp$1.regexp_eatCharacterClassEscape = function(state) { - var ch = state.current(); - - if (isCharacterClassEscape(ch)) { - state.lastIntValue = -1; - state.advance(); - return true - } - - if ( - state.switchU && - this.options.ecmaVersion >= 9 && - (ch === 0x50 /* P */ || ch === 0x70 /* p */) - ) { - state.lastIntValue = -1; - state.advance(); - if ( - state.eat(0x7B /* { */) && - this.regexp_eatUnicodePropertyValueExpression(state) && - state.eat(0x7D /* } */) - ) { - return true - } - state.raise("Invalid property name"); - } - - return false - }; - function isCharacterClassEscape(ch) { - return ( - ch === 0x64 /* d */ || - ch === 0x44 /* D */ || - ch === 0x73 /* s */ || - ch === 0x53 /* S */ || - ch === 0x77 /* w */ || - ch === 0x57 /* W */ - ) - } - - // UnicodePropertyValueExpression :: - // UnicodePropertyName `=` UnicodePropertyValue - // LoneUnicodePropertyNameOrValue - pp$1.regexp_eatUnicodePropertyValueExpression = function(state) { - var start = state.pos; - - // UnicodePropertyName `=` UnicodePropertyValue - if (this.regexp_eatUnicodePropertyName(state) && state.eat(0x3D /* = */)) { - var name = state.lastStringValue; - if (this.regexp_eatUnicodePropertyValue(state)) { - var value = state.lastStringValue; - this.regexp_validateUnicodePropertyNameAndValue(state, name, value); - return true - } - } - state.pos = start; - - // LoneUnicodePropertyNameOrValue - if (this.regexp_eatLoneUnicodePropertyNameOrValue(state)) { - var nameOrValue = state.lastStringValue; - this.regexp_validateUnicodePropertyNameOrValue(state, nameOrValue); - return true - } - return false - }; - pp$1.regexp_validateUnicodePropertyNameAndValue = function(state, name, value) { - if (!hasOwn(state.unicodeProperties.nonBinary, name)) - { state.raise("Invalid property name"); } - if (!state.unicodeProperties.nonBinary[name].test(value)) - { state.raise("Invalid property value"); } - }; - pp$1.regexp_validateUnicodePropertyNameOrValue = function(state, nameOrValue) { - if (!state.unicodeProperties.binary.test(nameOrValue)) - { state.raise("Invalid property name"); } - }; - - // UnicodePropertyName :: - // UnicodePropertyNameCharacters - pp$1.regexp_eatUnicodePropertyName = function(state) { - var ch = 0; - state.lastStringValue = ""; - while (isUnicodePropertyNameCharacter(ch = state.current())) { - state.lastStringValue += codePointToString$1(ch); - state.advance(); - } - return state.lastStringValue !== "" - }; - function isUnicodePropertyNameCharacter(ch) { - return isControlLetter(ch) || ch === 0x5F /* _ */ - } - - // UnicodePropertyValue :: - // UnicodePropertyValueCharacters - pp$1.regexp_eatUnicodePropertyValue = function(state) { - var ch = 0; - state.lastStringValue = ""; - while (isUnicodePropertyValueCharacter(ch = state.current())) { - state.lastStringValue += codePointToString$1(ch); - state.advance(); - } - return state.lastStringValue !== "" - }; - function isUnicodePropertyValueCharacter(ch) { - return isUnicodePropertyNameCharacter(ch) || isDecimalDigit(ch) - } - - // LoneUnicodePropertyNameOrValue :: - // UnicodePropertyValueCharacters - pp$1.regexp_eatLoneUnicodePropertyNameOrValue = function(state) { - return this.regexp_eatUnicodePropertyValue(state) - }; - - // https://www.ecma-international.org/ecma-262/8.0/#prod-CharacterClass - pp$1.regexp_eatCharacterClass = function(state) { - if (state.eat(0x5B /* [ */)) { - state.eat(0x5E /* ^ */); - this.regexp_classRanges(state); - if (state.eat(0x5D /* ] */)) { - return true - } - // Unreachable since it threw "unterminated regular expression" error before. - state.raise("Unterminated character class"); - } - return false - }; - - // https://www.ecma-international.org/ecma-262/8.0/#prod-ClassRanges - // https://www.ecma-international.org/ecma-262/8.0/#prod-NonemptyClassRanges - // https://www.ecma-international.org/ecma-262/8.0/#prod-NonemptyClassRangesNoDash - pp$1.regexp_classRanges = function(state) { - while (this.regexp_eatClassAtom(state)) { - var left = state.lastIntValue; - if (state.eat(0x2D /* - */) && this.regexp_eatClassAtom(state)) { - var right = state.lastIntValue; - if (state.switchU && (left === -1 || right === -1)) { - state.raise("Invalid character class"); - } - if (left !== -1 && right !== -1 && left > right) { - state.raise("Range out of order in character class"); - } - } - } - }; - - // https://www.ecma-international.org/ecma-262/8.0/#prod-ClassAtom - // https://www.ecma-international.org/ecma-262/8.0/#prod-ClassAtomNoDash - pp$1.regexp_eatClassAtom = function(state) { - var start = state.pos; - - if (state.eat(0x5C /* \ */)) { - if (this.regexp_eatClassEscape(state)) { - return true - } - if (state.switchU) { - // Make the same message as V8. - var ch$1 = state.current(); - if (ch$1 === 0x63 /* c */ || isOctalDigit(ch$1)) { - state.raise("Invalid class escape"); - } - state.raise("Invalid escape"); - } - state.pos = start; - } - - var ch = state.current(); - if (ch !== 0x5D /* ] */) { - state.lastIntValue = ch; - state.advance(); - return true - } - - return false - }; - - // https://www.ecma-international.org/ecma-262/8.0/#prod-annexB-ClassEscape - pp$1.regexp_eatClassEscape = function(state) { - var start = state.pos; - - if (state.eat(0x62 /* b */)) { - state.lastIntValue = 0x08; /* */ - return true - } - - if (state.switchU && state.eat(0x2D /* - */)) { - state.lastIntValue = 0x2D; /* - */ - return true - } - - if (!state.switchU && state.eat(0x63 /* c */)) { - if (this.regexp_eatClassControlLetter(state)) { - return true - } - state.pos = start; - } - - return ( - this.regexp_eatCharacterClassEscape(state) || - this.regexp_eatCharacterEscape(state) - ) - }; - - // https://www.ecma-international.org/ecma-262/8.0/#prod-annexB-ClassControlLetter - pp$1.regexp_eatClassControlLetter = function(state) { - var ch = state.current(); - if (isDecimalDigit(ch) || ch === 0x5F /* _ */) { - state.lastIntValue = ch % 0x20; - state.advance(); - return true - } - return false - }; - - // https://www.ecma-international.org/ecma-262/8.0/#prod-HexEscapeSequence - pp$1.regexp_eatHexEscapeSequence = function(state) { - var start = state.pos; - if (state.eat(0x78 /* x */)) { - if (this.regexp_eatFixedHexDigits(state, 2)) { - return true - } - if (state.switchU) { - state.raise("Invalid escape"); - } - state.pos = start; - } - return false - }; - - // https://www.ecma-international.org/ecma-262/8.0/#prod-DecimalDigits - pp$1.regexp_eatDecimalDigits = function(state) { - var start = state.pos; - var ch = 0; - state.lastIntValue = 0; - while (isDecimalDigit(ch = state.current())) { - state.lastIntValue = 10 * state.lastIntValue + (ch - 0x30 /* 0 */); - state.advance(); - } - return state.pos !== start - }; - function isDecimalDigit(ch) { - return ch >= 0x30 /* 0 */ && ch <= 0x39 /* 9 */ - } - - // https://www.ecma-international.org/ecma-262/8.0/#prod-HexDigits - pp$1.regexp_eatHexDigits = function(state) { - var start = state.pos; - var ch = 0; - state.lastIntValue = 0; - while (isHexDigit(ch = state.current())) { - state.lastIntValue = 16 * state.lastIntValue + hexToInt(ch); - state.advance(); - } - return state.pos !== start - }; - function isHexDigit(ch) { - return ( - (ch >= 0x30 /* 0 */ && ch <= 0x39 /* 9 */) || - (ch >= 0x41 /* A */ && ch <= 0x46 /* F */) || - (ch >= 0x61 /* a */ && ch <= 0x66 /* f */) - ) - } - function hexToInt(ch) { - if (ch >= 0x41 /* A */ && ch <= 0x46 /* F */) { - return 10 + (ch - 0x41 /* A */) - } - if (ch >= 0x61 /* a */ && ch <= 0x66 /* f */) { - return 10 + (ch - 0x61 /* a */) - } - return ch - 0x30 /* 0 */ - } - - // https://www.ecma-international.org/ecma-262/8.0/#prod-annexB-LegacyOctalEscapeSequence - // Allows only 0-377(octal) i.e. 0-255(decimal). - pp$1.regexp_eatLegacyOctalEscapeSequence = function(state) { - if (this.regexp_eatOctalDigit(state)) { - var n1 = state.lastIntValue; - if (this.regexp_eatOctalDigit(state)) { - var n2 = state.lastIntValue; - if (n1 <= 3 && this.regexp_eatOctalDigit(state)) { - state.lastIntValue = n1 * 64 + n2 * 8 + state.lastIntValue; - } else { - state.lastIntValue = n1 * 8 + n2; - } - } else { - state.lastIntValue = n1; - } - return true - } - return false - }; - - // https://www.ecma-international.org/ecma-262/8.0/#prod-OctalDigit - pp$1.regexp_eatOctalDigit = function(state) { - var ch = state.current(); - if (isOctalDigit(ch)) { - state.lastIntValue = ch - 0x30; /* 0 */ - state.advance(); - return true - } - state.lastIntValue = 0; - return false - }; - function isOctalDigit(ch) { - return ch >= 0x30 /* 0 */ && ch <= 0x37 /* 7 */ - } - - // https://www.ecma-international.org/ecma-262/8.0/#prod-Hex4Digits - // https://www.ecma-international.org/ecma-262/8.0/#prod-HexDigit - // And HexDigit HexDigit in https://www.ecma-international.org/ecma-262/8.0/#prod-HexEscapeSequence - pp$1.regexp_eatFixedHexDigits = function(state, length) { - var start = state.pos; - state.lastIntValue = 0; - for (var i = 0; i < length; ++i) { - var ch = state.current(); - if (!isHexDigit(ch)) { - state.pos = start; - return false - } - state.lastIntValue = 16 * state.lastIntValue + hexToInt(ch); - state.advance(); - } - return true - }; - - // Object type used to represent tokens. Note that normally, tokens - // simply exist as properties on the parser object. This is only - // used for the onToken callback and the external tokenizer. - - var Token = function Token(p) { - this.type = p.type; - this.value = p.value; - this.start = p.start; - this.end = p.end; - if (p.options.locations) - { this.loc = new SourceLocation(p, p.startLoc, p.endLoc); } - if (p.options.ranges) - { this.range = [p.start, p.end]; } - }; - - // ## Tokenizer - - var pp = Parser.prototype; - - // Move to the next token - - pp.next = function(ignoreEscapeSequenceInKeyword) { - if (!ignoreEscapeSequenceInKeyword && this.type.keyword && this.containsEsc) - { this.raiseRecoverable(this.start, "Escape sequence in keyword " + this.type.keyword); } - if (this.options.onToken) - { this.options.onToken(new Token(this)); } - - this.lastTokEnd = this.end; - this.lastTokStart = this.start; - this.lastTokEndLoc = this.endLoc; - this.lastTokStartLoc = this.startLoc; - this.nextToken(); - }; - - pp.getToken = function() { - this.next(); - return new Token(this) - }; - - // If we're in an ES6 environment, make parsers iterable - if (typeof Symbol !== "undefined") - { pp[Symbol.iterator] = function() { - var this$1$1 = this; - - return { - next: function () { - var token = this$1$1.getToken(); - return { - done: token.type === types$1.eof, - value: token - } - } - } - }; } - - // Toggle strict mode. Re-reads the next number or string to please - // pedantic tests (`"use strict"; 010;` should fail). - - // Read a single token, updating the parser object's token-related - // properties. - - pp.nextToken = function() { - var curContext = this.curContext(); - if (!curContext || !curContext.preserveSpace) { this.skipSpace(); } - - this.start = this.pos; - if (this.options.locations) { this.startLoc = this.curPosition(); } - if (this.pos >= this.input.length) { return this.finishToken(types$1.eof) } - - if (curContext.override) { return curContext.override(this) } - else { this.readToken(this.fullCharCodeAtPos()); } - }; - - pp.readToken = function(code) { - // Identifier or keyword. '\uXXXX' sequences are allowed in - // identifiers, so '\' also dispatches to that. - if (isIdentifierStart(code, this.options.ecmaVersion >= 6) || code === 92 /* '\' */) - { return this.readWord() } - - return this.getTokenFromCode(code) - }; - - pp.fullCharCodeAtPos = function() { - var code = this.input.charCodeAt(this.pos); - if (code <= 0xd7ff || code >= 0xdc00) { return code } - var next = this.input.charCodeAt(this.pos + 1); - return next <= 0xdbff || next >= 0xe000 ? code : (code << 10) + next - 0x35fdc00 - }; - - pp.skipBlockComment = function() { - var startLoc = this.options.onComment && this.curPosition(); - var start = this.pos, end = this.input.indexOf("*/", this.pos += 2); - if (end === -1) { this.raise(this.pos - 2, "Unterminated comment"); } - this.pos = end + 2; - if (this.options.locations) { - for (var nextBreak = (void 0), pos = start; (nextBreak = nextLineBreak(this.input, pos, this.pos)) > -1;) { - ++this.curLine; - pos = this.lineStart = nextBreak; - } - } - if (this.options.onComment) - { this.options.onComment(true, this.input.slice(start + 2, end), start, this.pos, - startLoc, this.curPosition()); } - }; - - pp.skipLineComment = function(startSkip) { - var start = this.pos; - var startLoc = this.options.onComment && this.curPosition(); - var ch = this.input.charCodeAt(this.pos += startSkip); - while (this.pos < this.input.length && !isNewLine(ch)) { - ch = this.input.charCodeAt(++this.pos); - } - if (this.options.onComment) - { this.options.onComment(false, this.input.slice(start + startSkip, this.pos), start, this.pos, - startLoc, this.curPosition()); } - }; - - // Called at the start of the parse and after every token. Skips - // whitespace and comments, and. - - pp.skipSpace = function() { - loop: while (this.pos < this.input.length) { - var ch = this.input.charCodeAt(this.pos); - switch (ch) { - case 32: case 160: // ' ' - ++this.pos; - break - case 13: - if (this.input.charCodeAt(this.pos + 1) === 10) { - ++this.pos; - } - case 10: case 8232: case 8233: - ++this.pos; - if (this.options.locations) { - ++this.curLine; - this.lineStart = this.pos; - } - break - case 47: // '/' - switch (this.input.charCodeAt(this.pos + 1)) { - case 42: // '*' - this.skipBlockComment(); - break - case 47: - this.skipLineComment(2); - break - default: - break loop - } - break - default: - if (ch > 8 && ch < 14 || ch >= 5760 && nonASCIIwhitespace.test(String.fromCharCode(ch))) { - ++this.pos; - } else { - break loop - } - } - } - }; - - // Called at the end of every token. Sets `end`, `val`, and - // maintains `context` and `exprAllowed`, and skips the space after - // the token, so that the next one's `start` will point at the - // right position. - - pp.finishToken = function(type, val) { - this.end = this.pos; - if (this.options.locations) { this.endLoc = this.curPosition(); } - var prevType = this.type; - this.type = type; - this.value = val; - - this.updateContext(prevType); - }; - - // ### Token reading - - // This is the function that is called to fetch the next token. It - // is somewhat obscure, because it works in character codes rather - // than characters, and because operator parsing has been inlined - // into it. - // - // All in the name of speed. - // - pp.readToken_dot = function() { - var next = this.input.charCodeAt(this.pos + 1); - if (next >= 48 && next <= 57) { return this.readNumber(true) } - var next2 = this.input.charCodeAt(this.pos + 2); - if (this.options.ecmaVersion >= 6 && next === 46 && next2 === 46) { // 46 = dot '.' - this.pos += 3; - return this.finishToken(types$1.ellipsis) - } else { - ++this.pos; - return this.finishToken(types$1.dot) - } - }; - - pp.readToken_slash = function() { // '/' - var next = this.input.charCodeAt(this.pos + 1); - if (this.exprAllowed) { ++this.pos; return this.readRegexp() } - if (next === 61) { return this.finishOp(types$1.assign, 2) } - return this.finishOp(types$1.slash, 1) - }; - - pp.readToken_mult_modulo_exp = function(code) { // '%*' - var next = this.input.charCodeAt(this.pos + 1); - var size = 1; - var tokentype = code === 42 ? types$1.star : types$1.modulo; - - // exponentiation operator ** and **= - if (this.options.ecmaVersion >= 7 && code === 42 && next === 42) { - ++size; - tokentype = types$1.starstar; - next = this.input.charCodeAt(this.pos + 2); - } - - if (next === 61) { return this.finishOp(types$1.assign, size + 1) } - return this.finishOp(tokentype, size) - }; - - pp.readToken_pipe_amp = function(code) { // '|&' - var next = this.input.charCodeAt(this.pos + 1); - if (next === code) { - if (this.options.ecmaVersion >= 12) { - var next2 = this.input.charCodeAt(this.pos + 2); - if (next2 === 61) { return this.finishOp(types$1.assign, 3) } - } - return this.finishOp(code === 124 ? types$1.logicalOR : types$1.logicalAND, 2) - } - if (next === 61) { return this.finishOp(types$1.assign, 2) } - return this.finishOp(code === 124 ? types$1.bitwiseOR : types$1.bitwiseAND, 1) - }; - - pp.readToken_caret = function() { // '^' - var next = this.input.charCodeAt(this.pos + 1); - if (next === 61) { return this.finishOp(types$1.assign, 2) } - return this.finishOp(types$1.bitwiseXOR, 1) - }; - - pp.readToken_plus_min = function(code) { // '+-' - var next = this.input.charCodeAt(this.pos + 1); - if (next === code) { - if (next === 45 && !this.inModule && this.input.charCodeAt(this.pos + 2) === 62 && - (this.lastTokEnd === 0 || lineBreak.test(this.input.slice(this.lastTokEnd, this.pos)))) { - // A `-->` line comment - this.skipLineComment(3); - this.skipSpace(); - return this.nextToken() - } - return this.finishOp(types$1.incDec, 2) - } - if (next === 61) { return this.finishOp(types$1.assign, 2) } - return this.finishOp(types$1.plusMin, 1) - }; - - pp.readToken_lt_gt = function(code) { // '<>' - var next = this.input.charCodeAt(this.pos + 1); - var size = 1; - if (next === code) { - size = code === 62 && this.input.charCodeAt(this.pos + 2) === 62 ? 3 : 2; - if (this.input.charCodeAt(this.pos + size) === 61) { return this.finishOp(types$1.assign, size + 1) } - return this.finishOp(types$1.bitShift, size) - } - if (next === 33 && code === 60 && !this.inModule && this.input.charCodeAt(this.pos + 2) === 45 && - this.input.charCodeAt(this.pos + 3) === 45) { - // ` | item |\n// | item | | item | | item |\n// | ... | | ... | | ... |\n// | item | | item | | item |\n// | item | | item | | item |\n// | [empty] | <-- top | item | | item |\n// | [empty] | | item | | item |\n// | [empty] | | [empty] | <-- top top --> | [empty] |\n// +-----------+ +-----------+ +-----------+\n//\n// Or, if there is only one circular buffer, it looks something\n// like either of these:\n//\n// head tail head tail\n// | | | |\n// v v v v\n// +-----------+ +-----------+\n// | [null] | | [null] |\n// +-----------+ +-----------+\n// | [empty] | | item |\n// | [empty] | | item |\n// | item | <-- bottom top --> | [empty] |\n// | item | | [empty] |\n// | [empty] | <-- top bottom --> | item |\n// | [empty] | | item |\n// +-----------+ +-----------+\n//\n// Adding a value means moving `top` forward by one, removing means\n// moving `bottom` forward by one. After reaching the end, the queue\n// wraps around.\n//\n// When `top === bottom` the current queue is empty and when\n// `top + 1 === bottom` it's full. This wastes a single space of storage\n// but allows much quicker checks.\n\nclass FixedCircularBuffer {\n constructor() {\n this.bottom = 0;\n this.top = 0;\n this.list = new Array(kSize);\n this.next = null;\n }\n\n isEmpty() {\n return this.top === this.bottom;\n }\n\n isFull() {\n return ((this.top + 1) & kMask) === this.bottom;\n }\n\n push(data) {\n this.list[this.top] = data;\n this.top = (this.top + 1) & kMask;\n }\n\n shift() {\n const nextItem = this.list[this.bottom];\n if (nextItem === undefined)\n return null;\n this.list[this.bottom] = undefined;\n this.bottom = (this.bottom + 1) & kMask;\n return nextItem;\n }\n}\n\nmodule.exports = class FixedQueue {\n constructor() {\n this.head = this.tail = new FixedCircularBuffer();\n }\n\n isEmpty() {\n return this.head.isEmpty();\n }\n\n push(data) {\n if (this.head.isFull()) {\n // Head is full: Creates a new queue, sets the old queue's `.next` to it,\n // and sets it as the new main queue.\n this.head = this.head.next = new FixedCircularBuffer();\n }\n this.head.push(data);\n }\n\n shift() {\n const tail = this.tail;\n const next = tail.shift();\n if (tail.isEmpty() && tail.next !== null) {\n // If there is another queue, it forms the new tail.\n this.tail = tail.next;\n }\n return next;\n }\n};\n","'use strict'\n\nconst DispatcherBase = require('./dispatcher-base')\nconst FixedQueue = require('./node/fixed-queue')\nconst { kConnected, kSize, kRunning, kPending, kQueued, kBusy, kFree, kUrl, kClose, kDestroy, kDispatch } = require('./core/symbols')\nconst PoolStats = require('./pool-stats')\n\nconst kClients = Symbol('clients')\nconst kNeedDrain = Symbol('needDrain')\nconst kQueue = Symbol('queue')\nconst kClosedResolve = Symbol('closed resolve')\nconst kOnDrain = Symbol('onDrain')\nconst kOnConnect = Symbol('onConnect')\nconst kOnDisconnect = Symbol('onDisconnect')\nconst kOnConnectionError = Symbol('onConnectionError')\nconst kGetDispatcher = Symbol('get dispatcher')\nconst kAddClient = Symbol('add client')\nconst kRemoveClient = Symbol('remove client')\nconst kStats = Symbol('stats')\n\nclass PoolBase extends DispatcherBase {\n constructor () {\n super()\n\n this[kQueue] = new FixedQueue()\n this[kClients] = []\n this[kQueued] = 0\n\n const pool = this\n\n this[kOnDrain] = function onDrain (origin, targets) {\n const queue = pool[kQueue]\n\n let needDrain = false\n\n while (!needDrain) {\n const item = queue.shift()\n if (!item) {\n break\n }\n pool[kQueued]--\n needDrain = !this.dispatch(item.opts, item.handler)\n }\n\n this[kNeedDrain] = needDrain\n\n if (!this[kNeedDrain] && pool[kNeedDrain]) {\n pool[kNeedDrain] = false\n pool.emit('drain', origin, [pool, ...targets])\n }\n\n if (pool[kClosedResolve] && queue.isEmpty()) {\n Promise\n .all(pool[kClients].map(c => c.close()))\n .then(pool[kClosedResolve])\n }\n }\n\n this[kOnConnect] = (origin, targets) => {\n pool.emit('connect', origin, [pool, ...targets])\n }\n\n this[kOnDisconnect] = (origin, targets, err) => {\n pool.emit('disconnect', origin, [pool, ...targets], err)\n }\n\n this[kOnConnectionError] = (origin, targets, err) => {\n pool.emit('connectionError', origin, [pool, ...targets], err)\n }\n\n this[kStats] = new PoolStats(this)\n }\n\n get [kBusy] () {\n return this[kNeedDrain]\n }\n\n get [kConnected] () {\n return this[kClients].filter(client => client[kConnected]).length\n }\n\n get [kFree] () {\n return this[kClients].filter(client => client[kConnected] && !client[kNeedDrain]).length\n }\n\n get [kPending] () {\n let ret = this[kQueued]\n for (const { [kPending]: pending } of this[kClients]) {\n ret += pending\n }\n return ret\n }\n\n get [kRunning] () {\n let ret = 0\n for (const { [kRunning]: running } of this[kClients]) {\n ret += running\n }\n return ret\n }\n\n get [kSize] () {\n let ret = this[kQueued]\n for (const { [kSize]: size } of this[kClients]) {\n ret += size\n }\n return ret\n }\n\n get stats () {\n return this[kStats]\n }\n\n async [kClose] () {\n if (this[kQueue].isEmpty()) {\n return Promise.all(this[kClients].map(c => c.close()))\n } else {\n return new Promise((resolve) => {\n this[kClosedResolve] = resolve\n })\n }\n }\n\n async [kDestroy] (err) {\n while (true) {\n const item = this[kQueue].shift()\n if (!item) {\n break\n }\n item.handler.onError(err)\n }\n\n return Promise.all(this[kClients].map(c => c.destroy(err)))\n }\n\n [kDispatch] (opts, handler) {\n const dispatcher = this[kGetDispatcher]()\n\n if (!dispatcher) {\n this[kNeedDrain] = true\n this[kQueue].push({ opts, handler })\n this[kQueued]++\n } else if (!dispatcher.dispatch(opts, handler)) {\n dispatcher[kNeedDrain] = true\n this[kNeedDrain] = !this[kGetDispatcher]()\n }\n\n return !this[kNeedDrain]\n }\n\n [kAddClient] (client) {\n client\n .on('drain', this[kOnDrain])\n .on('connect', this[kOnConnect])\n .on('disconnect', this[kOnDisconnect])\n .on('connectionError', this[kOnConnectionError])\n\n this[kClients].push(client)\n\n if (this[kNeedDrain]) {\n process.nextTick(() => {\n if (this[kNeedDrain]) {\n this[kOnDrain](client[kUrl], [this, client])\n }\n })\n }\n\n return this\n }\n\n [kRemoveClient] (client) {\n client.close(() => {\n const idx = this[kClients].indexOf(client)\n if (idx !== -1) {\n this[kClients].splice(idx, 1)\n }\n })\n\n this[kNeedDrain] = this[kClients].some(dispatcher => (\n !dispatcher[kNeedDrain] &&\n dispatcher.closed !== true &&\n dispatcher.destroyed !== true\n ))\n }\n}\n\nmodule.exports = {\n PoolBase,\n kClients,\n kNeedDrain,\n kAddClient,\n kRemoveClient,\n kGetDispatcher\n}\n","const { kFree, kConnected, kPending, kQueued, kRunning, kSize } = require('./core/symbols')\nconst kPool = Symbol('pool')\n\nclass PoolStats {\n constructor (pool) {\n this[kPool] = pool\n }\n\n get connected () {\n return this[kPool][kConnected]\n }\n\n get free () {\n return this[kPool][kFree]\n }\n\n get pending () {\n return this[kPool][kPending]\n }\n\n get queued () {\n return this[kPool][kQueued]\n }\n\n get running () {\n return this[kPool][kRunning]\n }\n\n get size () {\n return this[kPool][kSize]\n }\n}\n\nmodule.exports = PoolStats\n","'use strict'\n\nconst {\n PoolBase,\n kClients,\n kNeedDrain,\n kAddClient,\n kGetDispatcher\n} = require('./pool-base')\nconst Client = require('./client')\nconst {\n InvalidArgumentError\n} = require('./core/errors')\nconst util = require('./core/util')\nconst { kUrl, kInterceptors } = require('./core/symbols')\nconst buildConnector = require('./core/connect')\n\nconst kOptions = Symbol('options')\nconst kConnections = Symbol('connections')\nconst kFactory = Symbol('factory')\n\nfunction defaultFactory (origin, opts) {\n return new Client(origin, opts)\n}\n\nclass Pool extends PoolBase {\n constructor (origin, {\n connections,\n factory = defaultFactory,\n connect,\n connectTimeout,\n tls,\n maxCachedSessions,\n socketPath,\n autoSelectFamily,\n autoSelectFamilyAttemptTimeout,\n allowH2,\n ...options\n } = {}) {\n super()\n\n if (connections != null && (!Number.isFinite(connections) || connections < 0)) {\n throw new InvalidArgumentError('invalid connections')\n }\n\n if (typeof factory !== 'function') {\n throw new InvalidArgumentError('factory must be a function.')\n }\n\n if (connect != null && typeof connect !== 'function' && typeof connect !== 'object') {\n throw new InvalidArgumentError('connect must be a function or an object')\n }\n\n if (typeof connect !== 'function') {\n connect = buildConnector({\n ...tls,\n maxCachedSessions,\n allowH2,\n socketPath,\n timeout: connectTimeout,\n ...(util.nodeHasAutoSelectFamily && autoSelectFamily ? { autoSelectFamily, autoSelectFamilyAttemptTimeout } : undefined),\n ...connect\n })\n }\n\n this[kInterceptors] = options.interceptors && options.interceptors.Pool && Array.isArray(options.interceptors.Pool)\n ? options.interceptors.Pool\n : []\n this[kConnections] = connections || null\n this[kUrl] = util.parseOrigin(origin)\n this[kOptions] = { ...util.deepClone(options), connect, allowH2 }\n this[kOptions].interceptors = options.interceptors\n ? { ...options.interceptors }\n : undefined\n this[kFactory] = factory\n }\n\n [kGetDispatcher] () {\n let dispatcher = this[kClients].find(dispatcher => !dispatcher[kNeedDrain])\n\n if (dispatcher) {\n return dispatcher\n }\n\n if (!this[kConnections] || this[kClients].length < this[kConnections]) {\n dispatcher = this[kFactory](this[kUrl], this[kOptions])\n this[kAddClient](dispatcher)\n }\n\n return dispatcher\n }\n}\n\nmodule.exports = Pool\n","'use strict'\n\nconst { kProxy, kClose, kDestroy, kInterceptors } = require('./core/symbols')\nconst { URL } = require('url')\nconst Agent = require('./agent')\nconst Pool = require('./pool')\nconst DispatcherBase = require('./dispatcher-base')\nconst { InvalidArgumentError, RequestAbortedError } = require('./core/errors')\nconst buildConnector = require('./core/connect')\n\nconst kAgent = Symbol('proxy agent')\nconst kClient = Symbol('proxy client')\nconst kProxyHeaders = Symbol('proxy headers')\nconst kRequestTls = Symbol('request tls settings')\nconst kProxyTls = Symbol('proxy tls settings')\nconst kConnectEndpoint = Symbol('connect endpoint function')\n\nfunction defaultProtocolPort (protocol) {\n return protocol === 'https:' ? 443 : 80\n}\n\nfunction buildProxyOptions (opts) {\n if (typeof opts === 'string') {\n opts = { uri: opts }\n }\n\n if (!opts || !opts.uri) {\n throw new InvalidArgumentError('Proxy opts.uri is mandatory')\n }\n\n return {\n uri: opts.uri,\n protocol: opts.protocol || 'https'\n }\n}\n\nfunction defaultFactory (origin, opts) {\n return new Pool(origin, opts)\n}\n\nclass ProxyAgent extends DispatcherBase {\n constructor (opts) {\n super(opts)\n this[kProxy] = buildProxyOptions(opts)\n this[kAgent] = new Agent(opts)\n this[kInterceptors] = opts.interceptors && opts.interceptors.ProxyAgent && Array.isArray(opts.interceptors.ProxyAgent)\n ? opts.interceptors.ProxyAgent\n : []\n\n if (typeof opts === 'string') {\n opts = { uri: opts }\n }\n\n if (!opts || !opts.uri) {\n throw new InvalidArgumentError('Proxy opts.uri is mandatory')\n }\n\n const { clientFactory = defaultFactory } = opts\n\n if (typeof clientFactory !== 'function') {\n throw new InvalidArgumentError('Proxy opts.clientFactory must be a function.')\n }\n\n this[kRequestTls] = opts.requestTls\n this[kProxyTls] = opts.proxyTls\n this[kProxyHeaders] = opts.headers || {}\n\n const resolvedUrl = new URL(opts.uri)\n const { origin, port, host, username, password } = resolvedUrl\n\n if (opts.auth && opts.token) {\n throw new InvalidArgumentError('opts.auth cannot be used in combination with opts.token')\n } else if (opts.auth) {\n /* @deprecated in favour of opts.token */\n this[kProxyHeaders]['proxy-authorization'] = `Basic ${opts.auth}`\n } else if (opts.token) {\n this[kProxyHeaders]['proxy-authorization'] = opts.token\n } else if (username && password) {\n this[kProxyHeaders]['proxy-authorization'] = `Basic ${Buffer.from(`${decodeURIComponent(username)}:${decodeURIComponent(password)}`).toString('base64')}`\n }\n\n const connect = buildConnector({ ...opts.proxyTls })\n this[kConnectEndpoint] = buildConnector({ ...opts.requestTls })\n this[kClient] = clientFactory(resolvedUrl, { connect })\n this[kAgent] = new Agent({\n ...opts,\n connect: async (opts, callback) => {\n let requestedHost = opts.host\n if (!opts.port) {\n requestedHost += `:${defaultProtocolPort(opts.protocol)}`\n }\n try {\n const { socket, statusCode } = await this[kClient].connect({\n origin,\n port,\n path: requestedHost,\n signal: opts.signal,\n headers: {\n ...this[kProxyHeaders],\n host\n }\n })\n if (statusCode !== 200) {\n socket.on('error', () => {}).destroy()\n callback(new RequestAbortedError(`Proxy response (${statusCode}) !== 200 when HTTP Tunneling`))\n }\n if (opts.protocol !== 'https:') {\n callback(null, socket)\n return\n }\n let servername\n if (this[kRequestTls]) {\n servername = this[kRequestTls].servername\n } else {\n servername = opts.servername\n }\n this[kConnectEndpoint]({ ...opts, servername, httpSocket: socket }, callback)\n } catch (err) {\n callback(err)\n }\n }\n })\n }\n\n dispatch (opts, handler) {\n const { host } = new URL(opts.origin)\n const headers = buildHeaders(opts.headers)\n throwIfProxyAuthIsSent(headers)\n return this[kAgent].dispatch(\n {\n ...opts,\n headers: {\n ...headers,\n host\n }\n },\n handler\n )\n }\n\n async [kClose] () {\n await this[kAgent].close()\n await this[kClient].close()\n }\n\n async [kDestroy] () {\n await this[kAgent].destroy()\n await this[kClient].destroy()\n }\n}\n\n/**\n * @param {string[] | Record} headers\n * @returns {Record}\n */\nfunction buildHeaders (headers) {\n // When using undici.fetch, the headers list is stored\n // as an array.\n if (Array.isArray(headers)) {\n /** @type {Record} */\n const headersPair = {}\n\n for (let i = 0; i < headers.length; i += 2) {\n headersPair[headers[i]] = headers[i + 1]\n }\n\n return headersPair\n }\n\n return headers\n}\n\n/**\n * @param {Record} headers\n *\n * Previous versions of ProxyAgent suggests the Proxy-Authorization in request headers\n * Nevertheless, it was changed and to avoid a security vulnerability by end users\n * this check was created.\n * It should be removed in the next major version for performance reasons\n */\nfunction throwIfProxyAuthIsSent (headers) {\n const existProxyAuth = headers && Object.keys(headers)\n .find((key) => key.toLowerCase() === 'proxy-authorization')\n if (existProxyAuth) {\n throw new InvalidArgumentError('Proxy-Authorization should be sent in ProxyAgent constructor')\n }\n}\n\nmodule.exports = ProxyAgent\n","'use strict'\n\nlet fastNow = Date.now()\nlet fastNowTimeout\n\nconst fastTimers = []\n\nfunction onTimeout () {\n fastNow = Date.now()\n\n let len = fastTimers.length\n let idx = 0\n while (idx < len) {\n const timer = fastTimers[idx]\n\n if (timer.state === 0) {\n timer.state = fastNow + timer.delay\n } else if (timer.state > 0 && fastNow >= timer.state) {\n timer.state = -1\n timer.callback(timer.opaque)\n }\n\n if (timer.state === -1) {\n timer.state = -2\n if (idx !== len - 1) {\n fastTimers[idx] = fastTimers.pop()\n } else {\n fastTimers.pop()\n }\n len -= 1\n } else {\n idx += 1\n }\n }\n\n if (fastTimers.length > 0) {\n refreshTimeout()\n }\n}\n\nfunction refreshTimeout () {\n if (fastNowTimeout && fastNowTimeout.refresh) {\n fastNowTimeout.refresh()\n } else {\n clearTimeout(fastNowTimeout)\n fastNowTimeout = setTimeout(onTimeout, 1e3)\n if (fastNowTimeout.unref) {\n fastNowTimeout.unref()\n }\n }\n}\n\nclass Timeout {\n constructor (callback, delay, opaque) {\n this.callback = callback\n this.delay = delay\n this.opaque = opaque\n\n // -2 not in timer list\n // -1 in timer list but inactive\n // 0 in timer list waiting for time\n // > 0 in timer list waiting for time to expire\n this.state = -2\n\n this.refresh()\n }\n\n refresh () {\n if (this.state === -2) {\n fastTimers.push(this)\n if (!fastNowTimeout || fastTimers.length === 1) {\n refreshTimeout()\n }\n }\n\n this.state = 0\n }\n\n clear () {\n this.state = -1\n }\n}\n\nmodule.exports = {\n setTimeout (callback, delay, opaque) {\n return delay < 1e3\n ? setTimeout(callback, delay, opaque)\n : new Timeout(callback, delay, opaque)\n },\n clearTimeout (timeout) {\n if (timeout instanceof Timeout) {\n timeout.clear()\n } else {\n clearTimeout(timeout)\n }\n }\n}\n","'use strict'\n\nconst diagnosticsChannel = require('diagnostics_channel')\nconst { uid, states } = require('./constants')\nconst {\n kReadyState,\n kSentClose,\n kByteParser,\n kReceivedClose\n} = require('./symbols')\nconst { fireEvent, failWebsocketConnection } = require('./util')\nconst { CloseEvent } = require('./events')\nconst { makeRequest } = require('../fetch/request')\nconst { fetching } = require('../fetch/index')\nconst { Headers } = require('../fetch/headers')\nconst { getGlobalDispatcher } = require('../global')\nconst { kHeadersList } = require('../core/symbols')\n\nconst channels = {}\nchannels.open = diagnosticsChannel.channel('undici:websocket:open')\nchannels.close = diagnosticsChannel.channel('undici:websocket:close')\nchannels.socketError = diagnosticsChannel.channel('undici:websocket:socket_error')\n\n/** @type {import('crypto')} */\nlet crypto\ntry {\n crypto = require('crypto')\n} catch {\n\n}\n\n/**\n * @see https://websockets.spec.whatwg.org/#concept-websocket-establish\n * @param {URL} url\n * @param {string|string[]} protocols\n * @param {import('./websocket').WebSocket} ws\n * @param {(response: any) => void} onEstablish\n * @param {Partial} options\n */\nfunction establishWebSocketConnection (url, protocols, ws, onEstablish, options) {\n // 1. Let requestURL be a copy of url, with its scheme set to \"http\", if url’s\n // scheme is \"ws\", and to \"https\" otherwise.\n const requestURL = url\n\n requestURL.protocol = url.protocol === 'ws:' ? 'http:' : 'https:'\n\n // 2. Let request be a new request, whose URL is requestURL, client is client,\n // service-workers mode is \"none\", referrer is \"no-referrer\", mode is\n // \"websocket\", credentials mode is \"include\", cache mode is \"no-store\" ,\n // and redirect mode is \"error\".\n const request = makeRequest({\n urlList: [requestURL],\n serviceWorkers: 'none',\n referrer: 'no-referrer',\n mode: 'websocket',\n credentials: 'include',\n cache: 'no-store',\n redirect: 'error'\n })\n\n // Note: undici extension, allow setting custom headers.\n if (options.headers) {\n const headersList = new Headers(options.headers)[kHeadersList]\n\n request.headersList = headersList\n }\n\n // 3. Append (`Upgrade`, `websocket`) to request’s header list.\n // 4. Append (`Connection`, `Upgrade`) to request’s header list.\n // Note: both of these are handled by undici currently.\n // https://github.com/nodejs/undici/blob/68c269c4144c446f3f1220951338daef4a6b5ec4/lib/client.js#L1397\n\n // 5. Let keyValue be a nonce consisting of a randomly selected\n // 16-byte value that has been forgiving-base64-encoded and\n // isomorphic encoded.\n const keyValue = crypto.randomBytes(16).toString('base64')\n\n // 6. Append (`Sec-WebSocket-Key`, keyValue) to request’s\n // header list.\n request.headersList.append('sec-websocket-key', keyValue)\n\n // 7. Append (`Sec-WebSocket-Version`, `13`) to request’s\n // header list.\n request.headersList.append('sec-websocket-version', '13')\n\n // 8. For each protocol in protocols, combine\n // (`Sec-WebSocket-Protocol`, protocol) in request’s header\n // list.\n for (const protocol of protocols) {\n request.headersList.append('sec-websocket-protocol', protocol)\n }\n\n // 9. Let permessageDeflate be a user-agent defined\n // \"permessage-deflate\" extension header value.\n // https://github.com/mozilla/gecko-dev/blob/ce78234f5e653a5d3916813ff990f053510227bc/netwerk/protocol/websocket/WebSocketChannel.cpp#L2673\n // TODO: enable once permessage-deflate is supported\n const permessageDeflate = '' // 'permessage-deflate; 15'\n\n // 10. Append (`Sec-WebSocket-Extensions`, permessageDeflate) to\n // request’s header list.\n // request.headersList.append('sec-websocket-extensions', permessageDeflate)\n\n // 11. Fetch request with useParallelQueue set to true, and\n // processResponse given response being these steps:\n const controller = fetching({\n request,\n useParallelQueue: true,\n dispatcher: options.dispatcher ?? getGlobalDispatcher(),\n processResponse (response) {\n // 1. If response is a network error or its status is not 101,\n // fail the WebSocket connection.\n if (response.type === 'error' || response.status !== 101) {\n failWebsocketConnection(ws, 'Received network error or non-101 status code.')\n return\n }\n\n // 2. If protocols is not the empty list and extracting header\n // list values given `Sec-WebSocket-Protocol` and response’s\n // header list results in null, failure, or the empty byte\n // sequence, then fail the WebSocket connection.\n if (protocols.length !== 0 && !response.headersList.get('Sec-WebSocket-Protocol')) {\n failWebsocketConnection(ws, 'Server did not respond with sent protocols.')\n return\n }\n\n // 3. Follow the requirements stated step 2 to step 6, inclusive,\n // of the last set of steps in section 4.1 of The WebSocket\n // Protocol to validate response. This either results in fail\n // the WebSocket connection or the WebSocket connection is\n // established.\n\n // 2. If the response lacks an |Upgrade| header field or the |Upgrade|\n // header field contains a value that is not an ASCII case-\n // insensitive match for the value \"websocket\", the client MUST\n // _Fail the WebSocket Connection_.\n if (response.headersList.get('Upgrade')?.toLowerCase() !== 'websocket') {\n failWebsocketConnection(ws, 'Server did not set Upgrade header to \"websocket\".')\n return\n }\n\n // 3. If the response lacks a |Connection| header field or the\n // |Connection| header field doesn't contain a token that is an\n // ASCII case-insensitive match for the value \"Upgrade\", the client\n // MUST _Fail the WebSocket Connection_.\n if (response.headersList.get('Connection')?.toLowerCase() !== 'upgrade') {\n failWebsocketConnection(ws, 'Server did not set Connection header to \"upgrade\".')\n return\n }\n\n // 4. If the response lacks a |Sec-WebSocket-Accept| header field or\n // the |Sec-WebSocket-Accept| contains a value other than the\n // base64-encoded SHA-1 of the concatenation of the |Sec-WebSocket-\n // Key| (as a string, not base64-decoded) with the string \"258EAFA5-\n // E914-47DA-95CA-C5AB0DC85B11\" but ignoring any leading and\n // trailing whitespace, the client MUST _Fail the WebSocket\n // Connection_.\n const secWSAccept = response.headersList.get('Sec-WebSocket-Accept')\n const digest = crypto.createHash('sha1').update(keyValue + uid).digest('base64')\n if (secWSAccept !== digest) {\n failWebsocketConnection(ws, 'Incorrect hash received in Sec-WebSocket-Accept header.')\n return\n }\n\n // 5. If the response includes a |Sec-WebSocket-Extensions| header\n // field and this header field indicates the use of an extension\n // that was not present in the client's handshake (the server has\n // indicated an extension not requested by the client), the client\n // MUST _Fail the WebSocket Connection_. (The parsing of this\n // header field to determine which extensions are requested is\n // discussed in Section 9.1.)\n const secExtension = response.headersList.get('Sec-WebSocket-Extensions')\n\n if (secExtension !== null && secExtension !== permessageDeflate) {\n failWebsocketConnection(ws, 'Received different permessage-deflate than the one set.')\n return\n }\n\n // 6. If the response includes a |Sec-WebSocket-Protocol| header field\n // and this header field indicates the use of a subprotocol that was\n // not present in the client's handshake (the server has indicated a\n // subprotocol not requested by the client), the client MUST _Fail\n // the WebSocket Connection_.\n const secProtocol = response.headersList.get('Sec-WebSocket-Protocol')\n\n if (secProtocol !== null && secProtocol !== request.headersList.get('Sec-WebSocket-Protocol')) {\n failWebsocketConnection(ws, 'Protocol was not set in the opening handshake.')\n return\n }\n\n response.socket.on('data', onSocketData)\n response.socket.on('close', onSocketClose)\n response.socket.on('error', onSocketError)\n\n if (channels.open.hasSubscribers) {\n channels.open.publish({\n address: response.socket.address(),\n protocol: secProtocol,\n extensions: secExtension\n })\n }\n\n onEstablish(response)\n }\n })\n\n return controller\n}\n\n/**\n * @param {Buffer} chunk\n */\nfunction onSocketData (chunk) {\n if (!this.ws[kByteParser].write(chunk)) {\n this.pause()\n }\n}\n\n/**\n * @see https://websockets.spec.whatwg.org/#feedback-from-the-protocol\n * @see https://datatracker.ietf.org/doc/html/rfc6455#section-7.1.4\n */\nfunction onSocketClose () {\n const { ws } = this\n\n // If the TCP connection was closed after the\n // WebSocket closing handshake was completed, the WebSocket connection\n // is said to have been closed _cleanly_.\n const wasClean = ws[kSentClose] && ws[kReceivedClose]\n\n let code = 1005\n let reason = ''\n\n const result = ws[kByteParser].closingInfo\n\n if (result) {\n code = result.code ?? 1005\n reason = result.reason\n } else if (!ws[kSentClose]) {\n // If _The WebSocket\n // Connection is Closed_ and no Close control frame was received by the\n // endpoint (such as could occur if the underlying transport connection\n // is lost), _The WebSocket Connection Close Code_ is considered to be\n // 1006.\n code = 1006\n }\n\n // 1. Change the ready state to CLOSED (3).\n ws[kReadyState] = states.CLOSED\n\n // 2. If the user agent was required to fail the WebSocket\n // connection, or if the WebSocket connection was closed\n // after being flagged as full, fire an event named error\n // at the WebSocket object.\n // TODO\n\n // 3. Fire an event named close at the WebSocket object,\n // using CloseEvent, with the wasClean attribute\n // initialized to true if the connection closed cleanly\n // and false otherwise, the code attribute initialized to\n // the WebSocket connection close code, and the reason\n // attribute initialized to the result of applying UTF-8\n // decode without BOM to the WebSocket connection close\n // reason.\n fireEvent('close', ws, CloseEvent, {\n wasClean, code, reason\n })\n\n if (channels.close.hasSubscribers) {\n channels.close.publish({\n websocket: ws,\n code,\n reason\n })\n }\n}\n\nfunction onSocketError (error) {\n const { ws } = this\n\n ws[kReadyState] = states.CLOSING\n\n if (channels.socketError.hasSubscribers) {\n channels.socketError.publish(error)\n }\n\n this.destroy()\n}\n\nmodule.exports = {\n establishWebSocketConnection\n}\n","'use strict'\n\n// This is a Globally Unique Identifier unique used\n// to validate that the endpoint accepts websocket\n// connections.\n// See https://www.rfc-editor.org/rfc/rfc6455.html#section-1.3\nconst uid = '258EAFA5-E914-47DA-95CA-C5AB0DC85B11'\n\n/** @type {PropertyDescriptor} */\nconst staticPropertyDescriptors = {\n enumerable: true,\n writable: false,\n configurable: false\n}\n\nconst states = {\n CONNECTING: 0,\n OPEN: 1,\n CLOSING: 2,\n CLOSED: 3\n}\n\nconst opcodes = {\n CONTINUATION: 0x0,\n TEXT: 0x1,\n BINARY: 0x2,\n CLOSE: 0x8,\n PING: 0x9,\n PONG: 0xA\n}\n\nconst maxUnsigned16Bit = 2 ** 16 - 1 // 65535\n\nconst parserStates = {\n INFO: 0,\n PAYLOADLENGTH_16: 2,\n PAYLOADLENGTH_64: 3,\n READ_DATA: 4\n}\n\nconst emptyBuffer = Buffer.allocUnsafe(0)\n\nmodule.exports = {\n uid,\n staticPropertyDescriptors,\n states,\n opcodes,\n maxUnsigned16Bit,\n parserStates,\n emptyBuffer\n}\n","'use strict'\n\nconst { webidl } = require('../fetch/webidl')\nconst { kEnumerableProperty } = require('../core/util')\nconst { MessagePort } = require('worker_threads')\n\n/**\n * @see https://html.spec.whatwg.org/multipage/comms.html#messageevent\n */\nclass MessageEvent extends Event {\n #eventInit\n\n constructor (type, eventInitDict = {}) {\n webidl.argumentLengthCheck(arguments, 1, { header: 'MessageEvent constructor' })\n\n type = webidl.converters.DOMString(type)\n eventInitDict = webidl.converters.MessageEventInit(eventInitDict)\n\n super(type, eventInitDict)\n\n this.#eventInit = eventInitDict\n }\n\n get data () {\n webidl.brandCheck(this, MessageEvent)\n\n return this.#eventInit.data\n }\n\n get origin () {\n webidl.brandCheck(this, MessageEvent)\n\n return this.#eventInit.origin\n }\n\n get lastEventId () {\n webidl.brandCheck(this, MessageEvent)\n\n return this.#eventInit.lastEventId\n }\n\n get source () {\n webidl.brandCheck(this, MessageEvent)\n\n return this.#eventInit.source\n }\n\n get ports () {\n webidl.brandCheck(this, MessageEvent)\n\n if (!Object.isFrozen(this.#eventInit.ports)) {\n Object.freeze(this.#eventInit.ports)\n }\n\n return this.#eventInit.ports\n }\n\n initMessageEvent (\n type,\n bubbles = false,\n cancelable = false,\n data = null,\n origin = '',\n lastEventId = '',\n source = null,\n ports = []\n ) {\n webidl.brandCheck(this, MessageEvent)\n\n webidl.argumentLengthCheck(arguments, 1, { header: 'MessageEvent.initMessageEvent' })\n\n return new MessageEvent(type, {\n bubbles, cancelable, data, origin, lastEventId, source, ports\n })\n }\n}\n\n/**\n * @see https://websockets.spec.whatwg.org/#the-closeevent-interface\n */\nclass CloseEvent extends Event {\n #eventInit\n\n constructor (type, eventInitDict = {}) {\n webidl.argumentLengthCheck(arguments, 1, { header: 'CloseEvent constructor' })\n\n type = webidl.converters.DOMString(type)\n eventInitDict = webidl.converters.CloseEventInit(eventInitDict)\n\n super(type, eventInitDict)\n\n this.#eventInit = eventInitDict\n }\n\n get wasClean () {\n webidl.brandCheck(this, CloseEvent)\n\n return this.#eventInit.wasClean\n }\n\n get code () {\n webidl.brandCheck(this, CloseEvent)\n\n return this.#eventInit.code\n }\n\n get reason () {\n webidl.brandCheck(this, CloseEvent)\n\n return this.#eventInit.reason\n }\n}\n\n// https://html.spec.whatwg.org/multipage/webappapis.html#the-errorevent-interface\nclass ErrorEvent extends Event {\n #eventInit\n\n constructor (type, eventInitDict) {\n webidl.argumentLengthCheck(arguments, 1, { header: 'ErrorEvent constructor' })\n\n super(type, eventInitDict)\n\n type = webidl.converters.DOMString(type)\n eventInitDict = webidl.converters.ErrorEventInit(eventInitDict ?? {})\n\n this.#eventInit = eventInitDict\n }\n\n get message () {\n webidl.brandCheck(this, ErrorEvent)\n\n return this.#eventInit.message\n }\n\n get filename () {\n webidl.brandCheck(this, ErrorEvent)\n\n return this.#eventInit.filename\n }\n\n get lineno () {\n webidl.brandCheck(this, ErrorEvent)\n\n return this.#eventInit.lineno\n }\n\n get colno () {\n webidl.brandCheck(this, ErrorEvent)\n\n return this.#eventInit.colno\n }\n\n get error () {\n webidl.brandCheck(this, ErrorEvent)\n\n return this.#eventInit.error\n }\n}\n\nObject.defineProperties(MessageEvent.prototype, {\n [Symbol.toStringTag]: {\n value: 'MessageEvent',\n configurable: true\n },\n data: kEnumerableProperty,\n origin: kEnumerableProperty,\n lastEventId: kEnumerableProperty,\n source: kEnumerableProperty,\n ports: kEnumerableProperty,\n initMessageEvent: kEnumerableProperty\n})\n\nObject.defineProperties(CloseEvent.prototype, {\n [Symbol.toStringTag]: {\n value: 'CloseEvent',\n configurable: true\n },\n reason: kEnumerableProperty,\n code: kEnumerableProperty,\n wasClean: kEnumerableProperty\n})\n\nObject.defineProperties(ErrorEvent.prototype, {\n [Symbol.toStringTag]: {\n value: 'ErrorEvent',\n configurable: true\n },\n message: kEnumerableProperty,\n filename: kEnumerableProperty,\n lineno: kEnumerableProperty,\n colno: kEnumerableProperty,\n error: kEnumerableProperty\n})\n\nwebidl.converters.MessagePort = webidl.interfaceConverter(MessagePort)\n\nwebidl.converters['sequence'] = webidl.sequenceConverter(\n webidl.converters.MessagePort\n)\n\nconst eventInit = [\n {\n key: 'bubbles',\n converter: webidl.converters.boolean,\n defaultValue: false\n },\n {\n key: 'cancelable',\n converter: webidl.converters.boolean,\n defaultValue: false\n },\n {\n key: 'composed',\n converter: webidl.converters.boolean,\n defaultValue: false\n }\n]\n\nwebidl.converters.MessageEventInit = webidl.dictionaryConverter([\n ...eventInit,\n {\n key: 'data',\n converter: webidl.converters.any,\n defaultValue: null\n },\n {\n key: 'origin',\n converter: webidl.converters.USVString,\n defaultValue: ''\n },\n {\n key: 'lastEventId',\n converter: webidl.converters.DOMString,\n defaultValue: ''\n },\n {\n key: 'source',\n // Node doesn't implement WindowProxy or ServiceWorker, so the only\n // valid value for source is a MessagePort.\n converter: webidl.nullableConverter(webidl.converters.MessagePort),\n defaultValue: null\n },\n {\n key: 'ports',\n converter: webidl.converters['sequence'],\n get defaultValue () {\n return []\n }\n }\n])\n\nwebidl.converters.CloseEventInit = webidl.dictionaryConverter([\n ...eventInit,\n {\n key: 'wasClean',\n converter: webidl.converters.boolean,\n defaultValue: false\n },\n {\n key: 'code',\n converter: webidl.converters['unsigned short'],\n defaultValue: 0\n },\n {\n key: 'reason',\n converter: webidl.converters.USVString,\n defaultValue: ''\n }\n])\n\nwebidl.converters.ErrorEventInit = webidl.dictionaryConverter([\n ...eventInit,\n {\n key: 'message',\n converter: webidl.converters.DOMString,\n defaultValue: ''\n },\n {\n key: 'filename',\n converter: webidl.converters.USVString,\n defaultValue: ''\n },\n {\n key: 'lineno',\n converter: webidl.converters['unsigned long'],\n defaultValue: 0\n },\n {\n key: 'colno',\n converter: webidl.converters['unsigned long'],\n defaultValue: 0\n },\n {\n key: 'error',\n converter: webidl.converters.any\n }\n])\n\nmodule.exports = {\n MessageEvent,\n CloseEvent,\n ErrorEvent\n}\n","'use strict'\n\nconst { maxUnsigned16Bit } = require('./constants')\n\n/** @type {import('crypto')} */\nlet crypto\ntry {\n crypto = require('crypto')\n} catch {\n\n}\n\nclass WebsocketFrameSend {\n /**\n * @param {Buffer|undefined} data\n */\n constructor (data) {\n this.frameData = data\n this.maskKey = crypto.randomBytes(4)\n }\n\n createFrame (opcode) {\n const bodyLength = this.frameData?.byteLength ?? 0\n\n /** @type {number} */\n let payloadLength = bodyLength // 0-125\n let offset = 6\n\n if (bodyLength > maxUnsigned16Bit) {\n offset += 8 // payload length is next 8 bytes\n payloadLength = 127\n } else if (bodyLength > 125) {\n offset += 2 // payload length is next 2 bytes\n payloadLength = 126\n }\n\n const buffer = Buffer.allocUnsafe(bodyLength + offset)\n\n // Clear first 2 bytes, everything else is overwritten\n buffer[0] = buffer[1] = 0\n buffer[0] |= 0x80 // FIN\n buffer[0] = (buffer[0] & 0xF0) + opcode // opcode\n\n /*! ws. MIT License. Einar Otto Stangvik */\n buffer[offset - 4] = this.maskKey[0]\n buffer[offset - 3] = this.maskKey[1]\n buffer[offset - 2] = this.maskKey[2]\n buffer[offset - 1] = this.maskKey[3]\n\n buffer[1] = payloadLength\n\n if (payloadLength === 126) {\n buffer.writeUInt16BE(bodyLength, 2)\n } else if (payloadLength === 127) {\n // Clear extended payload length\n buffer[2] = buffer[3] = 0\n buffer.writeUIntBE(bodyLength, 4, 6)\n }\n\n buffer[1] |= 0x80 // MASK\n\n // mask body\n for (let i = 0; i < bodyLength; i++) {\n buffer[offset + i] = this.frameData[i] ^ this.maskKey[i % 4]\n }\n\n return buffer\n }\n}\n\nmodule.exports = {\n WebsocketFrameSend\n}\n","'use strict'\n\nconst { Writable } = require('stream')\nconst diagnosticsChannel = require('diagnostics_channel')\nconst { parserStates, opcodes, states, emptyBuffer } = require('./constants')\nconst { kReadyState, kSentClose, kResponse, kReceivedClose } = require('./symbols')\nconst { isValidStatusCode, failWebsocketConnection, websocketMessageReceived } = require('./util')\nconst { WebsocketFrameSend } = require('./frame')\n\n// This code was influenced by ws released under the MIT license.\n// Copyright (c) 2011 Einar Otto Stangvik \n// Copyright (c) 2013 Arnout Kazemier and contributors\n// Copyright (c) 2016 Luigi Pinca and contributors\n\nconst channels = {}\nchannels.ping = diagnosticsChannel.channel('undici:websocket:ping')\nchannels.pong = diagnosticsChannel.channel('undici:websocket:pong')\n\nclass ByteParser extends Writable {\n #buffers = []\n #byteOffset = 0\n\n #state = parserStates.INFO\n\n #info = {}\n #fragments = []\n\n constructor (ws) {\n super()\n\n this.ws = ws\n }\n\n /**\n * @param {Buffer} chunk\n * @param {() => void} callback\n */\n _write (chunk, _, callback) {\n this.#buffers.push(chunk)\n this.#byteOffset += chunk.length\n\n this.run(callback)\n }\n\n /**\n * Runs whenever a new chunk is received.\n * Callback is called whenever there are no more chunks buffering,\n * or not enough bytes are buffered to parse.\n */\n run (callback) {\n while (true) {\n if (this.#state === parserStates.INFO) {\n // If there aren't enough bytes to parse the payload length, etc.\n if (this.#byteOffset < 2) {\n return callback()\n }\n\n const buffer = this.consume(2)\n\n this.#info.fin = (buffer[0] & 0x80) !== 0\n this.#info.opcode = buffer[0] & 0x0F\n\n // If we receive a fragmented message, we use the type of the first\n // frame to parse the full message as binary/text, when it's terminated\n this.#info.originalOpcode ??= this.#info.opcode\n\n this.#info.fragmented = !this.#info.fin && this.#info.opcode !== opcodes.CONTINUATION\n\n if (this.#info.fragmented && this.#info.opcode !== opcodes.BINARY && this.#info.opcode !== opcodes.TEXT) {\n // Only text and binary frames can be fragmented\n failWebsocketConnection(this.ws, 'Invalid frame type was fragmented.')\n return\n }\n\n const payloadLength = buffer[1] & 0x7F\n\n if (payloadLength <= 125) {\n this.#info.payloadLength = payloadLength\n this.#state = parserStates.READ_DATA\n } else if (payloadLength === 126) {\n this.#state = parserStates.PAYLOADLENGTH_16\n } else if (payloadLength === 127) {\n this.#state = parserStates.PAYLOADLENGTH_64\n }\n\n if (this.#info.fragmented && payloadLength > 125) {\n // A fragmented frame can't be fragmented itself\n failWebsocketConnection(this.ws, 'Fragmented frame exceeded 125 bytes.')\n return\n } else if (\n (this.#info.opcode === opcodes.PING ||\n this.#info.opcode === opcodes.PONG ||\n this.#info.opcode === opcodes.CLOSE) &&\n payloadLength > 125\n ) {\n // Control frames can have a payload length of 125 bytes MAX\n failWebsocketConnection(this.ws, 'Payload length for control frame exceeded 125 bytes.')\n return\n } else if (this.#info.opcode === opcodes.CLOSE) {\n if (payloadLength === 1) {\n failWebsocketConnection(this.ws, 'Received close frame with a 1-byte body.')\n return\n }\n\n const body = this.consume(payloadLength)\n\n this.#info.closeInfo = this.parseCloseBody(false, body)\n\n if (!this.ws[kSentClose]) {\n // If an endpoint receives a Close frame and did not previously send a\n // Close frame, the endpoint MUST send a Close frame in response. (When\n // sending a Close frame in response, the endpoint typically echos the\n // status code it received.)\n const body = Buffer.allocUnsafe(2)\n body.writeUInt16BE(this.#info.closeInfo.code, 0)\n const closeFrame = new WebsocketFrameSend(body)\n\n this.ws[kResponse].socket.write(\n closeFrame.createFrame(opcodes.CLOSE),\n (err) => {\n if (!err) {\n this.ws[kSentClose] = true\n }\n }\n )\n }\n\n // Upon either sending or receiving a Close control frame, it is said\n // that _The WebSocket Closing Handshake is Started_ and that the\n // WebSocket connection is in the CLOSING state.\n this.ws[kReadyState] = states.CLOSING\n this.ws[kReceivedClose] = true\n\n this.end()\n\n return\n } else if (this.#info.opcode === opcodes.PING) {\n // Upon receipt of a Ping frame, an endpoint MUST send a Pong frame in\n // response, unless it already received a Close frame.\n // A Pong frame sent in response to a Ping frame must have identical\n // \"Application data\"\n\n const body = this.consume(payloadLength)\n\n if (!this.ws[kReceivedClose]) {\n const frame = new WebsocketFrameSend(body)\n\n this.ws[kResponse].socket.write(frame.createFrame(opcodes.PONG))\n\n if (channels.ping.hasSubscribers) {\n channels.ping.publish({\n payload: body\n })\n }\n }\n\n this.#state = parserStates.INFO\n\n if (this.#byteOffset > 0) {\n continue\n } else {\n callback()\n return\n }\n } else if (this.#info.opcode === opcodes.PONG) {\n // A Pong frame MAY be sent unsolicited. This serves as a\n // unidirectional heartbeat. A response to an unsolicited Pong frame is\n // not expected.\n\n const body = this.consume(payloadLength)\n\n if (channels.pong.hasSubscribers) {\n channels.pong.publish({\n payload: body\n })\n }\n\n if (this.#byteOffset > 0) {\n continue\n } else {\n callback()\n return\n }\n }\n } else if (this.#state === parserStates.PAYLOADLENGTH_16) {\n if (this.#byteOffset < 2) {\n return callback()\n }\n\n const buffer = this.consume(2)\n\n this.#info.payloadLength = buffer.readUInt16BE(0)\n this.#state = parserStates.READ_DATA\n } else if (this.#state === parserStates.PAYLOADLENGTH_64) {\n if (this.#byteOffset < 8) {\n return callback()\n }\n\n const buffer = this.consume(8)\n const upper = buffer.readUInt32BE(0)\n\n // 2^31 is the maxinimum bytes an arraybuffer can contain\n // on 32-bit systems. Although, on 64-bit systems, this is\n // 2^53-1 bytes.\n // https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Errors/Invalid_array_length\n // https://source.chromium.org/chromium/chromium/src/+/main:v8/src/common/globals.h;drc=1946212ac0100668f14eb9e2843bdd846e510a1e;bpv=1;bpt=1;l=1275\n // https://source.chromium.org/chromium/chromium/src/+/main:v8/src/objects/js-array-buffer.h;l=34;drc=1946212ac0100668f14eb9e2843bdd846e510a1e\n if (upper > 2 ** 31 - 1) {\n failWebsocketConnection(this.ws, 'Received payload length > 2^31 bytes.')\n return\n }\n\n const lower = buffer.readUInt32BE(4)\n\n this.#info.payloadLength = (upper << 8) + lower\n this.#state = parserStates.READ_DATA\n } else if (this.#state === parserStates.READ_DATA) {\n if (this.#byteOffset < this.#info.payloadLength) {\n // If there is still more data in this chunk that needs to be read\n return callback()\n } else if (this.#byteOffset >= this.#info.payloadLength) {\n // If the server sent multiple frames in a single chunk\n\n const body = this.consume(this.#info.payloadLength)\n\n this.#fragments.push(body)\n\n // If the frame is unfragmented, or a fragmented frame was terminated,\n // a message was received\n if (!this.#info.fragmented || (this.#info.fin && this.#info.opcode === opcodes.CONTINUATION)) {\n const fullMessage = Buffer.concat(this.#fragments)\n\n websocketMessageReceived(this.ws, this.#info.originalOpcode, fullMessage)\n\n this.#info = {}\n this.#fragments.length = 0\n }\n\n this.#state = parserStates.INFO\n }\n }\n\n if (this.#byteOffset > 0) {\n continue\n } else {\n callback()\n break\n }\n }\n }\n\n /**\n * Take n bytes from the buffered Buffers\n * @param {number} n\n * @returns {Buffer|null}\n */\n consume (n) {\n if (n > this.#byteOffset) {\n return null\n } else if (n === 0) {\n return emptyBuffer\n }\n\n if (this.#buffers[0].length === n) {\n this.#byteOffset -= this.#buffers[0].length\n return this.#buffers.shift()\n }\n\n const buffer = Buffer.allocUnsafe(n)\n let offset = 0\n\n while (offset !== n) {\n const next = this.#buffers[0]\n const { length } = next\n\n if (length + offset === n) {\n buffer.set(this.#buffers.shift(), offset)\n break\n } else if (length + offset > n) {\n buffer.set(next.subarray(0, n - offset), offset)\n this.#buffers[0] = next.subarray(n - offset)\n break\n } else {\n buffer.set(this.#buffers.shift(), offset)\n offset += next.length\n }\n }\n\n this.#byteOffset -= n\n\n return buffer\n }\n\n parseCloseBody (onlyCode, data) {\n // https://datatracker.ietf.org/doc/html/rfc6455#section-7.1.5\n /** @type {number|undefined} */\n let code\n\n if (data.length >= 2) {\n // _The WebSocket Connection Close Code_ is\n // defined as the status code (Section 7.4) contained in the first Close\n // control frame received by the application\n code = data.readUInt16BE(0)\n }\n\n if (onlyCode) {\n if (!isValidStatusCode(code)) {\n return null\n }\n\n return { code }\n }\n\n // https://datatracker.ietf.org/doc/html/rfc6455#section-7.1.6\n /** @type {Buffer} */\n let reason = data.subarray(2)\n\n // Remove BOM\n if (reason[0] === 0xEF && reason[1] === 0xBB && reason[2] === 0xBF) {\n reason = reason.subarray(3)\n }\n\n if (code !== undefined && !isValidStatusCode(code)) {\n return null\n }\n\n try {\n // TODO: optimize this\n reason = new TextDecoder('utf-8', { fatal: true }).decode(reason)\n } catch {\n return null\n }\n\n return { code, reason }\n }\n\n get closingInfo () {\n return this.#info.closeInfo\n }\n}\n\nmodule.exports = {\n ByteParser\n}\n","'use strict'\n\nmodule.exports = {\n kWebSocketURL: Symbol('url'),\n kReadyState: Symbol('ready state'),\n kController: Symbol('controller'),\n kResponse: Symbol('response'),\n kBinaryType: Symbol('binary type'),\n kSentClose: Symbol('sent close'),\n kReceivedClose: Symbol('received close'),\n kByteParser: Symbol('byte parser')\n}\n","'use strict'\n\nconst { kReadyState, kController, kResponse, kBinaryType, kWebSocketURL } = require('./symbols')\nconst { states, opcodes } = require('./constants')\nconst { MessageEvent, ErrorEvent } = require('./events')\n\n/* globals Blob */\n\n/**\n * @param {import('./websocket').WebSocket} ws\n */\nfunction isEstablished (ws) {\n // If the server's response is validated as provided for above, it is\n // said that _The WebSocket Connection is Established_ and that the\n // WebSocket Connection is in the OPEN state.\n return ws[kReadyState] === states.OPEN\n}\n\n/**\n * @param {import('./websocket').WebSocket} ws\n */\nfunction isClosing (ws) {\n // Upon either sending or receiving a Close control frame, it is said\n // that _The WebSocket Closing Handshake is Started_ and that the\n // WebSocket connection is in the CLOSING state.\n return ws[kReadyState] === states.CLOSING\n}\n\n/**\n * @param {import('./websocket').WebSocket} ws\n */\nfunction isClosed (ws) {\n return ws[kReadyState] === states.CLOSED\n}\n\n/**\n * @see https://dom.spec.whatwg.org/#concept-event-fire\n * @param {string} e\n * @param {EventTarget} target\n * @param {EventInit | undefined} eventInitDict\n */\nfunction fireEvent (e, target, eventConstructor = Event, eventInitDict) {\n // 1. If eventConstructor is not given, then let eventConstructor be Event.\n\n // 2. Let event be the result of creating an event given eventConstructor,\n // in the relevant realm of target.\n // 3. Initialize event’s type attribute to e.\n const event = new eventConstructor(e, eventInitDict) // eslint-disable-line new-cap\n\n // 4. Initialize any other IDL attributes of event as described in the\n // invocation of this algorithm.\n\n // 5. Return the result of dispatching event at target, with legacy target\n // override flag set if set.\n target.dispatchEvent(event)\n}\n\n/**\n * @see https://websockets.spec.whatwg.org/#feedback-from-the-protocol\n * @param {import('./websocket').WebSocket} ws\n * @param {number} type Opcode\n * @param {Buffer} data application data\n */\nfunction websocketMessageReceived (ws, type, data) {\n // 1. If ready state is not OPEN (1), then return.\n if (ws[kReadyState] !== states.OPEN) {\n return\n }\n\n // 2. Let dataForEvent be determined by switching on type and binary type:\n let dataForEvent\n\n if (type === opcodes.TEXT) {\n // -> type indicates that the data is Text\n // a new DOMString containing data\n try {\n dataForEvent = new TextDecoder('utf-8', { fatal: true }).decode(data)\n } catch {\n failWebsocketConnection(ws, 'Received invalid UTF-8 in text frame.')\n return\n }\n } else if (type === opcodes.BINARY) {\n if (ws[kBinaryType] === 'blob') {\n // -> type indicates that the data is Binary and binary type is \"blob\"\n // a new Blob object, created in the relevant Realm of the WebSocket\n // object, that represents data as its raw data\n dataForEvent = new Blob([data])\n } else {\n // -> type indicates that the data is Binary and binary type is \"arraybuffer\"\n // a new ArrayBuffer object, created in the relevant Realm of the\n // WebSocket object, whose contents are data\n dataForEvent = new Uint8Array(data).buffer\n }\n }\n\n // 3. Fire an event named message at the WebSocket object, using MessageEvent,\n // with the origin attribute initialized to the serialization of the WebSocket\n // object’s url's origin, and the data attribute initialized to dataForEvent.\n fireEvent('message', ws, MessageEvent, {\n origin: ws[kWebSocketURL].origin,\n data: dataForEvent\n })\n}\n\n/**\n * @see https://datatracker.ietf.org/doc/html/rfc6455\n * @see https://datatracker.ietf.org/doc/html/rfc2616\n * @see https://bugs.chromium.org/p/chromium/issues/detail?id=398407\n * @param {string} protocol\n */\nfunction isValidSubprotocol (protocol) {\n // If present, this value indicates one\n // or more comma-separated subprotocol the client wishes to speak,\n // ordered by preference. The elements that comprise this value\n // MUST be non-empty strings with characters in the range U+0021 to\n // U+007E not including separator characters as defined in\n // [RFC2616] and MUST all be unique strings.\n if (protocol.length === 0) {\n return false\n }\n\n for (const char of protocol) {\n const code = char.charCodeAt(0)\n\n if (\n code < 0x21 ||\n code > 0x7E ||\n char === '(' ||\n char === ')' ||\n char === '<' ||\n char === '>' ||\n char === '@' ||\n char === ',' ||\n char === ';' ||\n char === ':' ||\n char === '\\\\' ||\n char === '\"' ||\n char === '/' ||\n char === '[' ||\n char === ']' ||\n char === '?' ||\n char === '=' ||\n char === '{' ||\n char === '}' ||\n code === 32 || // SP\n code === 9 // HT\n ) {\n return false\n }\n }\n\n return true\n}\n\n/**\n * @see https://datatracker.ietf.org/doc/html/rfc6455#section-7-4\n * @param {number} code\n */\nfunction isValidStatusCode (code) {\n if (code >= 1000 && code < 1015) {\n return (\n code !== 1004 && // reserved\n code !== 1005 && // \"MUST NOT be set as a status code\"\n code !== 1006 // \"MUST NOT be set as a status code\"\n )\n }\n\n return code >= 3000 && code <= 4999\n}\n\n/**\n * @param {import('./websocket').WebSocket} ws\n * @param {string|undefined} reason\n */\nfunction failWebsocketConnection (ws, reason) {\n const { [kController]: controller, [kResponse]: response } = ws\n\n controller.abort()\n\n if (response?.socket && !response.socket.destroyed) {\n response.socket.destroy()\n }\n\n if (reason) {\n fireEvent('error', ws, ErrorEvent, {\n error: new Error(reason)\n })\n }\n}\n\nmodule.exports = {\n isEstablished,\n isClosing,\n isClosed,\n fireEvent,\n isValidSubprotocol,\n isValidStatusCode,\n failWebsocketConnection,\n websocketMessageReceived\n}\n","'use strict'\n\nconst { webidl } = require('../fetch/webidl')\nconst { DOMException } = require('../fetch/constants')\nconst { URLSerializer } = require('../fetch/dataURL')\nconst { getGlobalOrigin } = require('../fetch/global')\nconst { staticPropertyDescriptors, states, opcodes, emptyBuffer } = require('./constants')\nconst {\n kWebSocketURL,\n kReadyState,\n kController,\n kBinaryType,\n kResponse,\n kSentClose,\n kByteParser\n} = require('./symbols')\nconst { isEstablished, isClosing, isValidSubprotocol, failWebsocketConnection, fireEvent } = require('./util')\nconst { establishWebSocketConnection } = require('./connection')\nconst { WebsocketFrameSend } = require('./frame')\nconst { ByteParser } = require('./receiver')\nconst { kEnumerableProperty, isBlobLike } = require('../core/util')\nconst { getGlobalDispatcher } = require('../global')\nconst { types } = require('util')\n\nlet experimentalWarned = false\n\n// https://websockets.spec.whatwg.org/#interface-definition\nclass WebSocket extends EventTarget {\n #events = {\n open: null,\n error: null,\n close: null,\n message: null\n }\n\n #bufferedAmount = 0\n #protocol = ''\n #extensions = ''\n\n /**\n * @param {string} url\n * @param {string|string[]} protocols\n */\n constructor (url, protocols = []) {\n super()\n\n webidl.argumentLengthCheck(arguments, 1, { header: 'WebSocket constructor' })\n\n if (!experimentalWarned) {\n experimentalWarned = true\n process.emitWarning('WebSockets are experimental, expect them to change at any time.', {\n code: 'UNDICI-WS'\n })\n }\n\n const options = webidl.converters['DOMString or sequence or WebSocketInit'](protocols)\n\n url = webidl.converters.USVString(url)\n protocols = options.protocols\n\n // 1. Let baseURL be this's relevant settings object's API base URL.\n const baseURL = getGlobalOrigin()\n\n // 1. Let urlRecord be the result of applying the URL parser to url with baseURL.\n let urlRecord\n\n try {\n urlRecord = new URL(url, baseURL)\n } catch (e) {\n // 3. If urlRecord is failure, then throw a \"SyntaxError\" DOMException.\n throw new DOMException(e, 'SyntaxError')\n }\n\n // 4. If urlRecord’s scheme is \"http\", then set urlRecord’s scheme to \"ws\".\n if (urlRecord.protocol === 'http:') {\n urlRecord.protocol = 'ws:'\n } else if (urlRecord.protocol === 'https:') {\n // 5. Otherwise, if urlRecord’s scheme is \"https\", set urlRecord’s scheme to \"wss\".\n urlRecord.protocol = 'wss:'\n }\n\n // 6. If urlRecord’s scheme is not \"ws\" or \"wss\", then throw a \"SyntaxError\" DOMException.\n if (urlRecord.protocol !== 'ws:' && urlRecord.protocol !== 'wss:') {\n throw new DOMException(\n `Expected a ws: or wss: protocol, got ${urlRecord.protocol}`,\n 'SyntaxError'\n )\n }\n\n // 7. If urlRecord’s fragment is non-null, then throw a \"SyntaxError\"\n // DOMException.\n if (urlRecord.hash || urlRecord.href.endsWith('#')) {\n throw new DOMException('Got fragment', 'SyntaxError')\n }\n\n // 8. If protocols is a string, set protocols to a sequence consisting\n // of just that string.\n if (typeof protocols === 'string') {\n protocols = [protocols]\n }\n\n // 9. If any of the values in protocols occur more than once or otherwise\n // fail to match the requirements for elements that comprise the value\n // of `Sec-WebSocket-Protocol` fields as defined by The WebSocket\n // protocol, then throw a \"SyntaxError\" DOMException.\n if (protocols.length !== new Set(protocols.map(p => p.toLowerCase())).size) {\n throw new DOMException('Invalid Sec-WebSocket-Protocol value', 'SyntaxError')\n }\n\n if (protocols.length > 0 && !protocols.every(p => isValidSubprotocol(p))) {\n throw new DOMException('Invalid Sec-WebSocket-Protocol value', 'SyntaxError')\n }\n\n // 10. Set this's url to urlRecord.\n this[kWebSocketURL] = new URL(urlRecord.href)\n\n // 11. Let client be this's relevant settings object.\n\n // 12. Run this step in parallel:\n\n // 1. Establish a WebSocket connection given urlRecord, protocols,\n // and client.\n this[kController] = establishWebSocketConnection(\n urlRecord,\n protocols,\n this,\n (response) => this.#onConnectionEstablished(response),\n options\n )\n\n // Each WebSocket object has an associated ready state, which is a\n // number representing the state of the connection. Initially it must\n // be CONNECTING (0).\n this[kReadyState] = WebSocket.CONNECTING\n\n // The extensions attribute must initially return the empty string.\n\n // The protocol attribute must initially return the empty string.\n\n // Each WebSocket object has an associated binary type, which is a\n // BinaryType. Initially it must be \"blob\".\n this[kBinaryType] = 'blob'\n }\n\n /**\n * @see https://websockets.spec.whatwg.org/#dom-websocket-close\n * @param {number|undefined} code\n * @param {string|undefined} reason\n */\n close (code = undefined, reason = undefined) {\n webidl.brandCheck(this, WebSocket)\n\n if (code !== undefined) {\n code = webidl.converters['unsigned short'](code, { clamp: true })\n }\n\n if (reason !== undefined) {\n reason = webidl.converters.USVString(reason)\n }\n\n // 1. If code is present, but is neither an integer equal to 1000 nor an\n // integer in the range 3000 to 4999, inclusive, throw an\n // \"InvalidAccessError\" DOMException.\n if (code !== undefined) {\n if (code !== 1000 && (code < 3000 || code > 4999)) {\n throw new DOMException('invalid code', 'InvalidAccessError')\n }\n }\n\n let reasonByteLength = 0\n\n // 2. If reason is present, then run these substeps:\n if (reason !== undefined) {\n // 1. Let reasonBytes be the result of encoding reason.\n // 2. If reasonBytes is longer than 123 bytes, then throw a\n // \"SyntaxError\" DOMException.\n reasonByteLength = Buffer.byteLength(reason)\n\n if (reasonByteLength > 123) {\n throw new DOMException(\n `Reason must be less than 123 bytes; received ${reasonByteLength}`,\n 'SyntaxError'\n )\n }\n }\n\n // 3. Run the first matching steps from the following list:\n if (this[kReadyState] === WebSocket.CLOSING || this[kReadyState] === WebSocket.CLOSED) {\n // If this's ready state is CLOSING (2) or CLOSED (3)\n // Do nothing.\n } else if (!isEstablished(this)) {\n // If the WebSocket connection is not yet established\n // Fail the WebSocket connection and set this's ready state\n // to CLOSING (2).\n failWebsocketConnection(this, 'Connection was closed before it was established.')\n this[kReadyState] = WebSocket.CLOSING\n } else if (!isClosing(this)) {\n // If the WebSocket closing handshake has not yet been started\n // Start the WebSocket closing handshake and set this's ready\n // state to CLOSING (2).\n // - If neither code nor reason is present, the WebSocket Close\n // message must not have a body.\n // - If code is present, then the status code to use in the\n // WebSocket Close message must be the integer given by code.\n // - If reason is also present, then reasonBytes must be\n // provided in the Close message after the status code.\n\n const frame = new WebsocketFrameSend()\n\n // If neither code nor reason is present, the WebSocket Close\n // message must not have a body.\n\n // If code is present, then the status code to use in the\n // WebSocket Close message must be the integer given by code.\n if (code !== undefined && reason === undefined) {\n frame.frameData = Buffer.allocUnsafe(2)\n frame.frameData.writeUInt16BE(code, 0)\n } else if (code !== undefined && reason !== undefined) {\n // If reason is also present, then reasonBytes must be\n // provided in the Close message after the status code.\n frame.frameData = Buffer.allocUnsafe(2 + reasonByteLength)\n frame.frameData.writeUInt16BE(code, 0)\n // the body MAY contain UTF-8-encoded data with value /reason/\n frame.frameData.write(reason, 2, 'utf-8')\n } else {\n frame.frameData = emptyBuffer\n }\n\n /** @type {import('stream').Duplex} */\n const socket = this[kResponse].socket\n\n socket.write(frame.createFrame(opcodes.CLOSE), (err) => {\n if (!err) {\n this[kSentClose] = true\n }\n })\n\n // Upon either sending or receiving a Close control frame, it is said\n // that _The WebSocket Closing Handshake is Started_ and that the\n // WebSocket connection is in the CLOSING state.\n this[kReadyState] = states.CLOSING\n } else {\n // Otherwise\n // Set this's ready state to CLOSING (2).\n this[kReadyState] = WebSocket.CLOSING\n }\n }\n\n /**\n * @see https://websockets.spec.whatwg.org/#dom-websocket-send\n * @param {NodeJS.TypedArray|ArrayBuffer|Blob|string} data\n */\n send (data) {\n webidl.brandCheck(this, WebSocket)\n\n webidl.argumentLengthCheck(arguments, 1, { header: 'WebSocket.send' })\n\n data = webidl.converters.WebSocketSendData(data)\n\n // 1. If this's ready state is CONNECTING, then throw an\n // \"InvalidStateError\" DOMException.\n if (this[kReadyState] === WebSocket.CONNECTING) {\n throw new DOMException('Sent before connected.', 'InvalidStateError')\n }\n\n // 2. Run the appropriate set of steps from the following list:\n // https://datatracker.ietf.org/doc/html/rfc6455#section-6.1\n // https://datatracker.ietf.org/doc/html/rfc6455#section-5.2\n\n if (!isEstablished(this) || isClosing(this)) {\n return\n }\n\n /** @type {import('stream').Duplex} */\n const socket = this[kResponse].socket\n\n // If data is a string\n if (typeof data === 'string') {\n // If the WebSocket connection is established and the WebSocket\n // closing handshake has not yet started, then the user agent\n // must send a WebSocket Message comprised of the data argument\n // using a text frame opcode; if the data cannot be sent, e.g.\n // because it would need to be buffered but the buffer is full,\n // the user agent must flag the WebSocket as full and then close\n // the WebSocket connection. Any invocation of this method with a\n // string argument that does not throw an exception must increase\n // the bufferedAmount attribute by the number of bytes needed to\n // express the argument as UTF-8.\n\n const value = Buffer.from(data)\n const frame = new WebsocketFrameSend(value)\n const buffer = frame.createFrame(opcodes.TEXT)\n\n this.#bufferedAmount += value.byteLength\n socket.write(buffer, () => {\n this.#bufferedAmount -= value.byteLength\n })\n } else if (types.isArrayBuffer(data)) {\n // If the WebSocket connection is established, and the WebSocket\n // closing handshake has not yet started, then the user agent must\n // send a WebSocket Message comprised of data using a binary frame\n // opcode; if the data cannot be sent, e.g. because it would need\n // to be buffered but the buffer is full, the user agent must flag\n // the WebSocket as full and then close the WebSocket connection.\n // The data to be sent is the data stored in the buffer described\n // by the ArrayBuffer object. Any invocation of this method with an\n // ArrayBuffer argument that does not throw an exception must\n // increase the bufferedAmount attribute by the length of the\n // ArrayBuffer in bytes.\n\n const value = Buffer.from(data)\n const frame = new WebsocketFrameSend(value)\n const buffer = frame.createFrame(opcodes.BINARY)\n\n this.#bufferedAmount += value.byteLength\n socket.write(buffer, () => {\n this.#bufferedAmount -= value.byteLength\n })\n } else if (ArrayBuffer.isView(data)) {\n // If the WebSocket connection is established, and the WebSocket\n // closing handshake has not yet started, then the user agent must\n // send a WebSocket Message comprised of data using a binary frame\n // opcode; if the data cannot be sent, e.g. because it would need to\n // be buffered but the buffer is full, the user agent must flag the\n // WebSocket as full and then close the WebSocket connection. The\n // data to be sent is the data stored in the section of the buffer\n // described by the ArrayBuffer object that data references. Any\n // invocation of this method with this kind of argument that does\n // not throw an exception must increase the bufferedAmount attribute\n // by the length of data’s buffer in bytes.\n\n const ab = Buffer.from(data, data.byteOffset, data.byteLength)\n\n const frame = new WebsocketFrameSend(ab)\n const buffer = frame.createFrame(opcodes.BINARY)\n\n this.#bufferedAmount += ab.byteLength\n socket.write(buffer, () => {\n this.#bufferedAmount -= ab.byteLength\n })\n } else if (isBlobLike(data)) {\n // If the WebSocket connection is established, and the WebSocket\n // closing handshake has not yet started, then the user agent must\n // send a WebSocket Message comprised of data using a binary frame\n // opcode; if the data cannot be sent, e.g. because it would need to\n // be buffered but the buffer is full, the user agent must flag the\n // WebSocket as full and then close the WebSocket connection. The data\n // to be sent is the raw data represented by the Blob object. Any\n // invocation of this method with a Blob argument that does not throw\n // an exception must increase the bufferedAmount attribute by the size\n // of the Blob object’s raw data, in bytes.\n\n const frame = new WebsocketFrameSend()\n\n data.arrayBuffer().then((ab) => {\n const value = Buffer.from(ab)\n frame.frameData = value\n const buffer = frame.createFrame(opcodes.BINARY)\n\n this.#bufferedAmount += value.byteLength\n socket.write(buffer, () => {\n this.#bufferedAmount -= value.byteLength\n })\n })\n }\n }\n\n get readyState () {\n webidl.brandCheck(this, WebSocket)\n\n // The readyState getter steps are to return this's ready state.\n return this[kReadyState]\n }\n\n get bufferedAmount () {\n webidl.brandCheck(this, WebSocket)\n\n return this.#bufferedAmount\n }\n\n get url () {\n webidl.brandCheck(this, WebSocket)\n\n // The url getter steps are to return this's url, serialized.\n return URLSerializer(this[kWebSocketURL])\n }\n\n get extensions () {\n webidl.brandCheck(this, WebSocket)\n\n return this.#extensions\n }\n\n get protocol () {\n webidl.brandCheck(this, WebSocket)\n\n return this.#protocol\n }\n\n get onopen () {\n webidl.brandCheck(this, WebSocket)\n\n return this.#events.open\n }\n\n set onopen (fn) {\n webidl.brandCheck(this, WebSocket)\n\n if (this.#events.open) {\n this.removeEventListener('open', this.#events.open)\n }\n\n if (typeof fn === 'function') {\n this.#events.open = fn\n this.addEventListener('open', fn)\n } else {\n this.#events.open = null\n }\n }\n\n get onerror () {\n webidl.brandCheck(this, WebSocket)\n\n return this.#events.error\n }\n\n set onerror (fn) {\n webidl.brandCheck(this, WebSocket)\n\n if (this.#events.error) {\n this.removeEventListener('error', this.#events.error)\n }\n\n if (typeof fn === 'function') {\n this.#events.error = fn\n this.addEventListener('error', fn)\n } else {\n this.#events.error = null\n }\n }\n\n get onclose () {\n webidl.brandCheck(this, WebSocket)\n\n return this.#events.close\n }\n\n set onclose (fn) {\n webidl.brandCheck(this, WebSocket)\n\n if (this.#events.close) {\n this.removeEventListener('close', this.#events.close)\n }\n\n if (typeof fn === 'function') {\n this.#events.close = fn\n this.addEventListener('close', fn)\n } else {\n this.#events.close = null\n }\n }\n\n get onmessage () {\n webidl.brandCheck(this, WebSocket)\n\n return this.#events.message\n }\n\n set onmessage (fn) {\n webidl.brandCheck(this, WebSocket)\n\n if (this.#events.message) {\n this.removeEventListener('message', this.#events.message)\n }\n\n if (typeof fn === 'function') {\n this.#events.message = fn\n this.addEventListener('message', fn)\n } else {\n this.#events.message = null\n }\n }\n\n get binaryType () {\n webidl.brandCheck(this, WebSocket)\n\n return this[kBinaryType]\n }\n\n set binaryType (type) {\n webidl.brandCheck(this, WebSocket)\n\n if (type !== 'blob' && type !== 'arraybuffer') {\n this[kBinaryType] = 'blob'\n } else {\n this[kBinaryType] = type\n }\n }\n\n /**\n * @see https://websockets.spec.whatwg.org/#feedback-from-the-protocol\n */\n #onConnectionEstablished (response) {\n // processResponse is called when the \"response’s header list has been received and initialized.\"\n // once this happens, the connection is open\n this[kResponse] = response\n\n const parser = new ByteParser(this)\n parser.on('drain', function onParserDrain () {\n this.ws[kResponse].socket.resume()\n })\n\n response.socket.ws = this\n this[kByteParser] = parser\n\n // 1. Change the ready state to OPEN (1).\n this[kReadyState] = states.OPEN\n\n // 2. Change the extensions attribute’s value to the extensions in use, if\n // it is not the null value.\n // https://datatracker.ietf.org/doc/html/rfc6455#section-9.1\n const extensions = response.headersList.get('sec-websocket-extensions')\n\n if (extensions !== null) {\n this.#extensions = extensions\n }\n\n // 3. Change the protocol attribute’s value to the subprotocol in use, if\n // it is not the null value.\n // https://datatracker.ietf.org/doc/html/rfc6455#section-1.9\n const protocol = response.headersList.get('sec-websocket-protocol')\n\n if (protocol !== null) {\n this.#protocol = protocol\n }\n\n // 4. Fire an event named open at the WebSocket object.\n fireEvent('open', this)\n }\n}\n\n// https://websockets.spec.whatwg.org/#dom-websocket-connecting\nWebSocket.CONNECTING = WebSocket.prototype.CONNECTING = states.CONNECTING\n// https://websockets.spec.whatwg.org/#dom-websocket-open\nWebSocket.OPEN = WebSocket.prototype.OPEN = states.OPEN\n// https://websockets.spec.whatwg.org/#dom-websocket-closing\nWebSocket.CLOSING = WebSocket.prototype.CLOSING = states.CLOSING\n// https://websockets.spec.whatwg.org/#dom-websocket-closed\nWebSocket.CLOSED = WebSocket.prototype.CLOSED = states.CLOSED\n\nObject.defineProperties(WebSocket.prototype, {\n CONNECTING: staticPropertyDescriptors,\n OPEN: staticPropertyDescriptors,\n CLOSING: staticPropertyDescriptors,\n CLOSED: staticPropertyDescriptors,\n url: kEnumerableProperty,\n readyState: kEnumerableProperty,\n bufferedAmount: kEnumerableProperty,\n onopen: kEnumerableProperty,\n onerror: kEnumerableProperty,\n onclose: kEnumerableProperty,\n close: kEnumerableProperty,\n onmessage: kEnumerableProperty,\n binaryType: kEnumerableProperty,\n send: kEnumerableProperty,\n extensions: kEnumerableProperty,\n protocol: kEnumerableProperty,\n [Symbol.toStringTag]: {\n value: 'WebSocket',\n writable: false,\n enumerable: false,\n configurable: true\n }\n})\n\nObject.defineProperties(WebSocket, {\n CONNECTING: staticPropertyDescriptors,\n OPEN: staticPropertyDescriptors,\n CLOSING: staticPropertyDescriptors,\n CLOSED: staticPropertyDescriptors\n})\n\nwebidl.converters['sequence'] = webidl.sequenceConverter(\n webidl.converters.DOMString\n)\n\nwebidl.converters['DOMString or sequence'] = function (V) {\n if (webidl.util.Type(V) === 'Object' && Symbol.iterator in V) {\n return webidl.converters['sequence'](V)\n }\n\n return webidl.converters.DOMString(V)\n}\n\n// This implements the propsal made in https://github.com/whatwg/websockets/issues/42\nwebidl.converters.WebSocketInit = webidl.dictionaryConverter([\n {\n key: 'protocols',\n converter: webidl.converters['DOMString or sequence'],\n get defaultValue () {\n return []\n }\n },\n {\n key: 'dispatcher',\n converter: (V) => V,\n get defaultValue () {\n return getGlobalDispatcher()\n }\n },\n {\n key: 'headers',\n converter: webidl.nullableConverter(webidl.converters.HeadersInit)\n }\n])\n\nwebidl.converters['DOMString or sequence or WebSocketInit'] = function (V) {\n if (webidl.util.Type(V) === 'Object' && !(Symbol.iterator in V)) {\n return webidl.converters.WebSocketInit(V)\n }\n\n return { protocols: webidl.converters['DOMString or sequence'](V) }\n}\n\nwebidl.converters.WebSocketSendData = function (V) {\n if (webidl.util.Type(V) === 'Object') {\n if (isBlobLike(V)) {\n return webidl.converters.Blob(V, { strict: false })\n }\n\n if (ArrayBuffer.isView(V) || types.isAnyArrayBuffer(V)) {\n return webidl.converters.BufferSource(V)\n }\n }\n\n return webidl.converters.USVString(V)\n}\n\nmodule.exports = {\n WebSocket\n}\n","'use strict'\n\nconst Client = require('./lib/client')\nconst Dispatcher = require('./lib/dispatcher')\nconst errors = require('./lib/core/errors')\nconst Pool = require('./lib/pool')\nconst BalancedPool = require('./lib/balanced-pool')\nconst Agent = require('./lib/agent')\nconst util = require('./lib/core/util')\nconst { InvalidArgumentError } = errors\nconst api = require('./lib/api')\nconst buildConnector = require('./lib/core/connect')\nconst MockClient = require('./lib/mock/mock-client')\nconst MockAgent = require('./lib/mock/mock-agent')\nconst MockPool = require('./lib/mock/mock-pool')\nconst mockErrors = require('./lib/mock/mock-errors')\nconst ProxyAgent = require('./lib/proxy-agent')\nconst RetryHandler = require('./lib/handler/RetryHandler')\nconst { getGlobalDispatcher, setGlobalDispatcher } = require('./lib/global')\nconst DecoratorHandler = require('./lib/handler/DecoratorHandler')\nconst RedirectHandler = require('./lib/handler/RedirectHandler')\nconst createRedirectInterceptor = require('./lib/interceptor/redirectInterceptor')\n\nlet hasCrypto\ntry {\n require('crypto')\n hasCrypto = true\n} catch {\n hasCrypto = false\n}\n\nObject.assign(Dispatcher.prototype, api)\n\nmodule.exports.Dispatcher = Dispatcher\nmodule.exports.Client = Client\nmodule.exports.Pool = Pool\nmodule.exports.BalancedPool = BalancedPool\nmodule.exports.Agent = Agent\nmodule.exports.ProxyAgent = ProxyAgent\nmodule.exports.RetryHandler = RetryHandler\n\nmodule.exports.DecoratorHandler = DecoratorHandler\nmodule.exports.RedirectHandler = RedirectHandler\nmodule.exports.createRedirectInterceptor = createRedirectInterceptor\n\nmodule.exports.buildConnector = buildConnector\nmodule.exports.errors = errors\n\nfunction makeDispatcher (fn) {\n return (url, opts, handler) => {\n if (typeof opts === 'function') {\n handler = opts\n opts = null\n }\n\n if (!url || (typeof url !== 'string' && typeof url !== 'object' && !(url instanceof URL))) {\n throw new InvalidArgumentError('invalid url')\n }\n\n if (opts != null && typeof opts !== 'object') {\n throw new InvalidArgumentError('invalid opts')\n }\n\n if (opts && opts.path != null) {\n if (typeof opts.path !== 'string') {\n throw new InvalidArgumentError('invalid opts.path')\n }\n\n let path = opts.path\n if (!opts.path.startsWith('/')) {\n path = `/${path}`\n }\n\n url = new URL(util.parseOrigin(url).origin + path)\n } else {\n if (!opts) {\n opts = typeof url === 'object' ? url : {}\n }\n\n url = util.parseURL(url)\n }\n\n const { agent, dispatcher = getGlobalDispatcher() } = opts\n\n if (agent) {\n throw new InvalidArgumentError('unsupported opts.agent. Did you mean opts.client?')\n }\n\n return fn.call(dispatcher, {\n ...opts,\n origin: url.origin,\n path: url.search ? `${url.pathname}${url.search}` : url.pathname,\n method: opts.method || (opts.body ? 'PUT' : 'GET')\n }, handler)\n }\n}\n\nmodule.exports.setGlobalDispatcher = setGlobalDispatcher\nmodule.exports.getGlobalDispatcher = getGlobalDispatcher\n\nif (util.nodeMajor > 16 || (util.nodeMajor === 16 && util.nodeMinor >= 8)) {\n let fetchImpl = null\n module.exports.fetch = async function fetch (resource) {\n if (!fetchImpl) {\n fetchImpl = require('./lib/fetch').fetch\n }\n\n try {\n return await fetchImpl(...arguments)\n } catch (err) {\n if (typeof err === 'object') {\n Error.captureStackTrace(err, this)\n }\n\n throw err\n }\n }\n module.exports.Headers = require('./lib/fetch/headers').Headers\n module.exports.Response = require('./lib/fetch/response').Response\n module.exports.Request = require('./lib/fetch/request').Request\n module.exports.FormData = require('./lib/fetch/formdata').FormData\n module.exports.File = require('./lib/fetch/file').File\n module.exports.FileReader = require('./lib/fileapi/filereader').FileReader\n\n const { setGlobalOrigin, getGlobalOrigin } = require('./lib/fetch/global')\n\n module.exports.setGlobalOrigin = setGlobalOrigin\n module.exports.getGlobalOrigin = getGlobalOrigin\n\n const { CacheStorage } = require('./lib/cache/cachestorage')\n const { kConstruct } = require('./lib/cache/symbols')\n\n // Cache & CacheStorage are tightly coupled with fetch. Even if it may run\n // in an older version of Node, it doesn't have any use without fetch.\n module.exports.caches = new CacheStorage(kConstruct)\n}\n\nif (util.nodeMajor >= 16) {\n const { deleteCookie, getCookies, getSetCookies, setCookie } = require('./lib/cookies')\n\n module.exports.deleteCookie = deleteCookie\n module.exports.getCookies = getCookies\n module.exports.getSetCookies = getSetCookies\n module.exports.setCookie = setCookie\n\n const { parseMIMEType, serializeAMimeType } = require('./lib/fetch/dataURL')\n\n module.exports.parseMIMEType = parseMIMEType\n module.exports.serializeAMimeType = serializeAMimeType\n}\n\nif (util.nodeMajor >= 18 && hasCrypto) {\n const { WebSocket } = require('./lib/websocket/websocket')\n\n module.exports.WebSocket = WebSocket\n}\n\nmodule.exports.request = makeDispatcher(api.request)\nmodule.exports.stream = makeDispatcher(api.stream)\nmodule.exports.pipeline = makeDispatcher(api.pipeline)\nmodule.exports.connect = makeDispatcher(api.connect)\nmodule.exports.upgrade = makeDispatcher(api.upgrade)\n\nmodule.exports.MockClient = MockClient\nmodule.exports.MockPool = MockPool\nmodule.exports.MockAgent = MockAgent\nmodule.exports.mockErrors = mockErrors\n","'use strict'\n\nconst { InvalidArgumentError } = require('./core/errors')\nconst { kClients, kRunning, kClose, kDestroy, kDispatch, kInterceptors } = require('./core/symbols')\nconst DispatcherBase = require('./dispatcher-base')\nconst Pool = require('./pool')\nconst Client = require('./client')\nconst util = require('./core/util')\nconst createRedirectInterceptor = require('./interceptor/redirectInterceptor')\nconst { WeakRef, FinalizationRegistry } = require('./compat/dispatcher-weakref')()\n\nconst kOnConnect = Symbol('onConnect')\nconst kOnDisconnect = Symbol('onDisconnect')\nconst kOnConnectionError = Symbol('onConnectionError')\nconst kMaxRedirections = Symbol('maxRedirections')\nconst kOnDrain = Symbol('onDrain')\nconst kFactory = Symbol('factory')\nconst kFinalizer = Symbol('finalizer')\nconst kOptions = Symbol('options')\n\nfunction defaultFactory (origin, opts) {\n return opts && opts.connections === 1\n ? new Client(origin, opts)\n : new Pool(origin, opts)\n}\n\nclass Agent extends DispatcherBase {\n constructor ({ factory = defaultFactory, maxRedirections = 0, connect, ...options } = {}) {\n super()\n\n if (typeof factory !== 'function') {\n throw new InvalidArgumentError('factory must be a function.')\n }\n\n if (connect != null && typeof connect !== 'function' && typeof connect !== 'object') {\n throw new InvalidArgumentError('connect must be a function or an object')\n }\n\n if (!Number.isInteger(maxRedirections) || maxRedirections < 0) {\n throw new InvalidArgumentError('maxRedirections must be a positive number')\n }\n\n if (connect && typeof connect !== 'function') {\n connect = { ...connect }\n }\n\n this[kInterceptors] = options.interceptors && options.interceptors.Agent && Array.isArray(options.interceptors.Agent)\n ? options.interceptors.Agent\n : [createRedirectInterceptor({ maxRedirections })]\n\n this[kOptions] = { ...util.deepClone(options), connect }\n this[kOptions].interceptors = options.interceptors\n ? { ...options.interceptors }\n : undefined\n this[kMaxRedirections] = maxRedirections\n this[kFactory] = factory\n this[kClients] = new Map()\n this[kFinalizer] = new FinalizationRegistry(/* istanbul ignore next: gc is undeterministic */ key => {\n const ref = this[kClients].get(key)\n if (ref !== undefined && ref.deref() === undefined) {\n this[kClients].delete(key)\n }\n })\n\n const agent = this\n\n this[kOnDrain] = (origin, targets) => {\n agent.emit('drain', origin, [agent, ...targets])\n }\n\n this[kOnConnect] = (origin, targets) => {\n agent.emit('connect', origin, [agent, ...targets])\n }\n\n this[kOnDisconnect] = (origin, targets, err) => {\n agent.emit('disconnect', origin, [agent, ...targets], err)\n }\n\n this[kOnConnectionError] = (origin, targets, err) => {\n agent.emit('connectionError', origin, [agent, ...targets], err)\n }\n }\n\n get [kRunning] () {\n let ret = 0\n for (const ref of this[kClients].values()) {\n const client = ref.deref()\n /* istanbul ignore next: gc is undeterministic */\n if (client) {\n ret += client[kRunning]\n }\n }\n return ret\n }\n\n [kDispatch] (opts, handler) {\n let key\n if (opts.origin && (typeof opts.origin === 'string' || opts.origin instanceof URL)) {\n key = String(opts.origin)\n } else {\n throw new InvalidArgumentError('opts.origin must be a non-empty string or URL.')\n }\n\n const ref = this[kClients].get(key)\n\n let dispatcher = ref ? ref.deref() : null\n if (!dispatcher) {\n dispatcher = this[kFactory](opts.origin, this[kOptions])\n .on('drain', this[kOnDrain])\n .on('connect', this[kOnConnect])\n .on('disconnect', this[kOnDisconnect])\n .on('connectionError', this[kOnConnectionError])\n\n this[kClients].set(key, new WeakRef(dispatcher))\n this[kFinalizer].register(dispatcher, key)\n }\n\n return dispatcher.dispatch(opts, handler)\n }\n\n async [kClose] () {\n const closePromises = []\n for (const ref of this[kClients].values()) {\n const client = ref.deref()\n /* istanbul ignore else: gc is undeterministic */\n if (client) {\n closePromises.push(client.close())\n }\n }\n\n await Promise.all(closePromises)\n }\n\n async [kDestroy] (err) {\n const destroyPromises = []\n for (const ref of this[kClients].values()) {\n const client = ref.deref()\n /* istanbul ignore else: gc is undeterministic */\n if (client) {\n destroyPromises.push(client.destroy(err))\n }\n }\n\n await Promise.all(destroyPromises)\n }\n}\n\nmodule.exports = Agent\n","const { addAbortListener } = require('../core/util')\nconst { RequestAbortedError } = require('../core/errors')\n\nconst kListener = Symbol('kListener')\nconst kSignal = Symbol('kSignal')\n\nfunction abort (self) {\n if (self.abort) {\n self.abort()\n } else {\n self.onError(new RequestAbortedError())\n }\n}\n\nfunction addSignal (self, signal) {\n self[kSignal] = null\n self[kListener] = null\n\n if (!signal) {\n return\n }\n\n if (signal.aborted) {\n abort(self)\n return\n }\n\n self[kSignal] = signal\n self[kListener] = () => {\n abort(self)\n }\n\n addAbortListener(self[kSignal], self[kListener])\n}\n\nfunction removeSignal (self) {\n if (!self[kSignal]) {\n return\n }\n\n if ('removeEventListener' in self[kSignal]) {\n self[kSignal].removeEventListener('abort', self[kListener])\n } else {\n self[kSignal].removeListener('abort', self[kListener])\n }\n\n self[kSignal] = null\n self[kListener] = null\n}\n\nmodule.exports = {\n addSignal,\n removeSignal\n}\n","'use strict'\n\nconst { AsyncResource } = require('async_hooks')\nconst { InvalidArgumentError, RequestAbortedError, SocketError } = require('../core/errors')\nconst util = require('../core/util')\nconst { addSignal, removeSignal } = require('./abort-signal')\n\nclass ConnectHandler extends AsyncResource {\n constructor (opts, callback) {\n if (!opts || typeof opts !== 'object') {\n throw new InvalidArgumentError('invalid opts')\n }\n\n if (typeof callback !== 'function') {\n throw new InvalidArgumentError('invalid callback')\n }\n\n const { signal, opaque, responseHeaders } = opts\n\n if (signal && typeof signal.on !== 'function' && typeof signal.addEventListener !== 'function') {\n throw new InvalidArgumentError('signal must be an EventEmitter or EventTarget')\n }\n\n super('UNDICI_CONNECT')\n\n this.opaque = opaque || null\n this.responseHeaders = responseHeaders || null\n this.callback = callback\n this.abort = null\n\n addSignal(this, signal)\n }\n\n onConnect (abort, context) {\n if (!this.callback) {\n throw new RequestAbortedError()\n }\n\n this.abort = abort\n this.context = context\n }\n\n onHeaders () {\n throw new SocketError('bad connect', null)\n }\n\n onUpgrade (statusCode, rawHeaders, socket) {\n const { callback, opaque, context } = this\n\n removeSignal(this)\n\n this.callback = null\n\n let headers = rawHeaders\n // Indicates is an HTTP2Session\n if (headers != null) {\n headers = this.responseHeaders === 'raw' ? util.parseRawHeaders(rawHeaders) : util.parseHeaders(rawHeaders)\n }\n\n this.runInAsyncScope(callback, null, null, {\n statusCode,\n headers,\n socket,\n opaque,\n context\n })\n }\n\n onError (err) {\n const { callback, opaque } = this\n\n removeSignal(this)\n\n if (callback) {\n this.callback = null\n queueMicrotask(() => {\n this.runInAsyncScope(callback, null, err, { opaque })\n })\n }\n }\n}\n\nfunction connect (opts, callback) {\n if (callback === undefined) {\n return new Promise((resolve, reject) => {\n connect.call(this, opts, (err, data) => {\n return err ? reject(err) : resolve(data)\n })\n })\n }\n\n try {\n const connectHandler = new ConnectHandler(opts, callback)\n this.dispatch({ ...opts, method: 'CONNECT' }, connectHandler)\n } catch (err) {\n if (typeof callback !== 'function') {\n throw err\n }\n const opaque = opts && opts.opaque\n queueMicrotask(() => callback(err, { opaque }))\n }\n}\n\nmodule.exports = connect\n","'use strict'\n\nconst {\n Readable,\n Duplex,\n PassThrough\n} = require('stream')\nconst {\n InvalidArgumentError,\n InvalidReturnValueError,\n RequestAbortedError\n} = require('../core/errors')\nconst util = require('../core/util')\nconst { AsyncResource } = require('async_hooks')\nconst { addSignal, removeSignal } = require('./abort-signal')\nconst assert = require('assert')\n\nconst kResume = Symbol('resume')\n\nclass PipelineRequest extends Readable {\n constructor () {\n super({ autoDestroy: true })\n\n this[kResume] = null\n }\n\n _read () {\n const { [kResume]: resume } = this\n\n if (resume) {\n this[kResume] = null\n resume()\n }\n }\n\n _destroy (err, callback) {\n this._read()\n\n callback(err)\n }\n}\n\nclass PipelineResponse extends Readable {\n constructor (resume) {\n super({ autoDestroy: true })\n this[kResume] = resume\n }\n\n _read () {\n this[kResume]()\n }\n\n _destroy (err, callback) {\n if (!err && !this._readableState.endEmitted) {\n err = new RequestAbortedError()\n }\n\n callback(err)\n }\n}\n\nclass PipelineHandler extends AsyncResource {\n constructor (opts, handler) {\n if (!opts || typeof opts !== 'object') {\n throw new InvalidArgumentError('invalid opts')\n }\n\n if (typeof handler !== 'function') {\n throw new InvalidArgumentError('invalid handler')\n }\n\n const { signal, method, opaque, onInfo, responseHeaders } = opts\n\n if (signal && typeof signal.on !== 'function' && typeof signal.addEventListener !== 'function') {\n throw new InvalidArgumentError('signal must be an EventEmitter or EventTarget')\n }\n\n if (method === 'CONNECT') {\n throw new InvalidArgumentError('invalid method')\n }\n\n if (onInfo && typeof onInfo !== 'function') {\n throw new InvalidArgumentError('invalid onInfo callback')\n }\n\n super('UNDICI_PIPELINE')\n\n this.opaque = opaque || null\n this.responseHeaders = responseHeaders || null\n this.handler = handler\n this.abort = null\n this.context = null\n this.onInfo = onInfo || null\n\n this.req = new PipelineRequest().on('error', util.nop)\n\n this.ret = new Duplex({\n readableObjectMode: opts.objectMode,\n autoDestroy: true,\n read: () => {\n const { body } = this\n\n if (body && body.resume) {\n body.resume()\n }\n },\n write: (chunk, encoding, callback) => {\n const { req } = this\n\n if (req.push(chunk, encoding) || req._readableState.destroyed) {\n callback()\n } else {\n req[kResume] = callback\n }\n },\n destroy: (err, callback) => {\n const { body, req, res, ret, abort } = this\n\n if (!err && !ret._readableState.endEmitted) {\n err = new RequestAbortedError()\n }\n\n if (abort && err) {\n abort()\n }\n\n util.destroy(body, err)\n util.destroy(req, err)\n util.destroy(res, err)\n\n removeSignal(this)\n\n callback(err)\n }\n }).on('prefinish', () => {\n const { req } = this\n\n // Node < 15 does not call _final in same tick.\n req.push(null)\n })\n\n this.res = null\n\n addSignal(this, signal)\n }\n\n onConnect (abort, context) {\n const { ret, res } = this\n\n assert(!res, 'pipeline cannot be retried')\n\n if (ret.destroyed) {\n throw new RequestAbortedError()\n }\n\n this.abort = abort\n this.context = context\n }\n\n onHeaders (statusCode, rawHeaders, resume) {\n const { opaque, handler, context } = this\n\n if (statusCode < 200) {\n if (this.onInfo) {\n const headers = this.responseHeaders === 'raw' ? util.parseRawHeaders(rawHeaders) : util.parseHeaders(rawHeaders)\n this.onInfo({ statusCode, headers })\n }\n return\n }\n\n this.res = new PipelineResponse(resume)\n\n let body\n try {\n this.handler = null\n const headers = this.responseHeaders === 'raw' ? util.parseRawHeaders(rawHeaders) : util.parseHeaders(rawHeaders)\n body = this.runInAsyncScope(handler, null, {\n statusCode,\n headers,\n opaque,\n body: this.res,\n context\n })\n } catch (err) {\n this.res.on('error', util.nop)\n throw err\n }\n\n if (!body || typeof body.on !== 'function') {\n throw new InvalidReturnValueError('expected Readable')\n }\n\n body\n .on('data', (chunk) => {\n const { ret, body } = this\n\n if (!ret.push(chunk) && body.pause) {\n body.pause()\n }\n })\n .on('error', (err) => {\n const { ret } = this\n\n util.destroy(ret, err)\n })\n .on('end', () => {\n const { ret } = this\n\n ret.push(null)\n })\n .on('close', () => {\n const { ret } = this\n\n if (!ret._readableState.ended) {\n util.destroy(ret, new RequestAbortedError())\n }\n })\n\n this.body = body\n }\n\n onData (chunk) {\n const { res } = this\n return res.push(chunk)\n }\n\n onComplete (trailers) {\n const { res } = this\n res.push(null)\n }\n\n onError (err) {\n const { ret } = this\n this.handler = null\n util.destroy(ret, err)\n }\n}\n\nfunction pipeline (opts, handler) {\n try {\n const pipelineHandler = new PipelineHandler(opts, handler)\n this.dispatch({ ...opts, body: pipelineHandler.req }, pipelineHandler)\n return pipelineHandler.ret\n } catch (err) {\n return new PassThrough().destroy(err)\n }\n}\n\nmodule.exports = pipeline\n","'use strict'\n\nconst Readable = require('./readable')\nconst {\n InvalidArgumentError,\n RequestAbortedError\n} = require('../core/errors')\nconst util = require('../core/util')\nconst { getResolveErrorBodyCallback } = require('./util')\nconst { AsyncResource } = require('async_hooks')\nconst { addSignal, removeSignal } = require('./abort-signal')\n\nclass RequestHandler extends AsyncResource {\n constructor (opts, callback) {\n if (!opts || typeof opts !== 'object') {\n throw new InvalidArgumentError('invalid opts')\n }\n\n const { signal, method, opaque, body, onInfo, responseHeaders, throwOnError, highWaterMark } = opts\n\n try {\n if (typeof callback !== 'function') {\n throw new InvalidArgumentError('invalid callback')\n }\n\n if (highWaterMark && (typeof highWaterMark !== 'number' || highWaterMark < 0)) {\n throw new InvalidArgumentError('invalid highWaterMark')\n }\n\n if (signal && typeof signal.on !== 'function' && typeof signal.addEventListener !== 'function') {\n throw new InvalidArgumentError('signal must be an EventEmitter or EventTarget')\n }\n\n if (method === 'CONNECT') {\n throw new InvalidArgumentError('invalid method')\n }\n\n if (onInfo && typeof onInfo !== 'function') {\n throw new InvalidArgumentError('invalid onInfo callback')\n }\n\n super('UNDICI_REQUEST')\n } catch (err) {\n if (util.isStream(body)) {\n util.destroy(body.on('error', util.nop), err)\n }\n throw err\n }\n\n this.responseHeaders = responseHeaders || null\n this.opaque = opaque || null\n this.callback = callback\n this.res = null\n this.abort = null\n this.body = body\n this.trailers = {}\n this.context = null\n this.onInfo = onInfo || null\n this.throwOnError = throwOnError\n this.highWaterMark = highWaterMark\n\n if (util.isStream(body)) {\n body.on('error', (err) => {\n this.onError(err)\n })\n }\n\n addSignal(this, signal)\n }\n\n onConnect (abort, context) {\n if (!this.callback) {\n throw new RequestAbortedError()\n }\n\n this.abort = abort\n this.context = context\n }\n\n onHeaders (statusCode, rawHeaders, resume, statusMessage) {\n const { callback, opaque, abort, context, responseHeaders, highWaterMark } = this\n\n const headers = responseHeaders === 'raw' ? util.parseRawHeaders(rawHeaders) : util.parseHeaders(rawHeaders)\n\n if (statusCode < 200) {\n if (this.onInfo) {\n this.onInfo({ statusCode, headers })\n }\n return\n }\n\n const parsedHeaders = responseHeaders === 'raw' ? util.parseHeaders(rawHeaders) : headers\n const contentType = parsedHeaders['content-type']\n const body = new Readable({ resume, abort, contentType, highWaterMark })\n\n this.callback = null\n this.res = body\n if (callback !== null) {\n if (this.throwOnError && statusCode >= 400) {\n this.runInAsyncScope(getResolveErrorBodyCallback, null,\n { callback, body, contentType, statusCode, statusMessage, headers }\n )\n } else {\n this.runInAsyncScope(callback, null, null, {\n statusCode,\n headers,\n trailers: this.trailers,\n opaque,\n body,\n context\n })\n }\n }\n }\n\n onData (chunk) {\n const { res } = this\n return res.push(chunk)\n }\n\n onComplete (trailers) {\n const { res } = this\n\n removeSignal(this)\n\n util.parseHeaders(trailers, this.trailers)\n\n res.push(null)\n }\n\n onError (err) {\n const { res, callback, body, opaque } = this\n\n removeSignal(this)\n\n if (callback) {\n // TODO: Does this need queueMicrotask?\n this.callback = null\n queueMicrotask(() => {\n this.runInAsyncScope(callback, null, err, { opaque })\n })\n }\n\n if (res) {\n this.res = null\n // Ensure all queued handlers are invoked before destroying res.\n queueMicrotask(() => {\n util.destroy(res, err)\n })\n }\n\n if (body) {\n this.body = null\n util.destroy(body, err)\n }\n }\n}\n\nfunction request (opts, callback) {\n if (callback === undefined) {\n return new Promise((resolve, reject) => {\n request.call(this, opts, (err, data) => {\n return err ? reject(err) : resolve(data)\n })\n })\n }\n\n try {\n this.dispatch(opts, new RequestHandler(opts, callback))\n } catch (err) {\n if (typeof callback !== 'function') {\n throw err\n }\n const opaque = opts && opts.opaque\n queueMicrotask(() => callback(err, { opaque }))\n }\n}\n\nmodule.exports = request\nmodule.exports.RequestHandler = RequestHandler\n","'use strict'\n\nconst { finished, PassThrough } = require('stream')\nconst {\n InvalidArgumentError,\n InvalidReturnValueError,\n RequestAbortedError\n} = require('../core/errors')\nconst util = require('../core/util')\nconst { getResolveErrorBodyCallback } = require('./util')\nconst { AsyncResource } = require('async_hooks')\nconst { addSignal, removeSignal } = require('./abort-signal')\n\nclass StreamHandler extends AsyncResource {\n constructor (opts, factory, callback) {\n if (!opts || typeof opts !== 'object') {\n throw new InvalidArgumentError('invalid opts')\n }\n\n const { signal, method, opaque, body, onInfo, responseHeaders, throwOnError } = opts\n\n try {\n if (typeof callback !== 'function') {\n throw new InvalidArgumentError('invalid callback')\n }\n\n if (typeof factory !== 'function') {\n throw new InvalidArgumentError('invalid factory')\n }\n\n if (signal && typeof signal.on !== 'function' && typeof signal.addEventListener !== 'function') {\n throw new InvalidArgumentError('signal must be an EventEmitter or EventTarget')\n }\n\n if (method === 'CONNECT') {\n throw new InvalidArgumentError('invalid method')\n }\n\n if (onInfo && typeof onInfo !== 'function') {\n throw new InvalidArgumentError('invalid onInfo callback')\n }\n\n super('UNDICI_STREAM')\n } catch (err) {\n if (util.isStream(body)) {\n util.destroy(body.on('error', util.nop), err)\n }\n throw err\n }\n\n this.responseHeaders = responseHeaders || null\n this.opaque = opaque || null\n this.factory = factory\n this.callback = callback\n this.res = null\n this.abort = null\n this.context = null\n this.trailers = null\n this.body = body\n this.onInfo = onInfo || null\n this.throwOnError = throwOnError || false\n\n if (util.isStream(body)) {\n body.on('error', (err) => {\n this.onError(err)\n })\n }\n\n addSignal(this, signal)\n }\n\n onConnect (abort, context) {\n if (!this.callback) {\n throw new RequestAbortedError()\n }\n\n this.abort = abort\n this.context = context\n }\n\n onHeaders (statusCode, rawHeaders, resume, statusMessage) {\n const { factory, opaque, context, callback, responseHeaders } = this\n\n const headers = responseHeaders === 'raw' ? util.parseRawHeaders(rawHeaders) : util.parseHeaders(rawHeaders)\n\n if (statusCode < 200) {\n if (this.onInfo) {\n this.onInfo({ statusCode, headers })\n }\n return\n }\n\n this.factory = null\n\n let res\n\n if (this.throwOnError && statusCode >= 400) {\n const parsedHeaders = responseHeaders === 'raw' ? util.parseHeaders(rawHeaders) : headers\n const contentType = parsedHeaders['content-type']\n res = new PassThrough()\n\n this.callback = null\n this.runInAsyncScope(getResolveErrorBodyCallback, null,\n { callback, body: res, contentType, statusCode, statusMessage, headers }\n )\n } else {\n if (factory === null) {\n return\n }\n\n res = this.runInAsyncScope(factory, null, {\n statusCode,\n headers,\n opaque,\n context\n })\n\n if (\n !res ||\n typeof res.write !== 'function' ||\n typeof res.end !== 'function' ||\n typeof res.on !== 'function'\n ) {\n throw new InvalidReturnValueError('expected Writable')\n }\n\n // TODO: Avoid finished. It registers an unnecessary amount of listeners.\n finished(res, { readable: false }, (err) => {\n const { callback, res, opaque, trailers, abort } = this\n\n this.res = null\n if (err || !res.readable) {\n util.destroy(res, err)\n }\n\n this.callback = null\n this.runInAsyncScope(callback, null, err || null, { opaque, trailers })\n\n if (err) {\n abort()\n }\n })\n }\n\n res.on('drain', resume)\n\n this.res = res\n\n const needDrain = res.writableNeedDrain !== undefined\n ? res.writableNeedDrain\n : res._writableState && res._writableState.needDrain\n\n return needDrain !== true\n }\n\n onData (chunk) {\n const { res } = this\n\n return res ? res.write(chunk) : true\n }\n\n onComplete (trailers) {\n const { res } = this\n\n removeSignal(this)\n\n if (!res) {\n return\n }\n\n this.trailers = util.parseHeaders(trailers)\n\n res.end()\n }\n\n onError (err) {\n const { res, callback, opaque, body } = this\n\n removeSignal(this)\n\n this.factory = null\n\n if (res) {\n this.res = null\n util.destroy(res, err)\n } else if (callback) {\n this.callback = null\n queueMicrotask(() => {\n this.runInAsyncScope(callback, null, err, { opaque })\n })\n }\n\n if (body) {\n this.body = null\n util.destroy(body, err)\n }\n }\n}\n\nfunction stream (opts, factory, callback) {\n if (callback === undefined) {\n return new Promise((resolve, reject) => {\n stream.call(this, opts, factory, (err, data) => {\n return err ? reject(err) : resolve(data)\n })\n })\n }\n\n try {\n this.dispatch(opts, new StreamHandler(opts, factory, callback))\n } catch (err) {\n if (typeof callback !== 'function') {\n throw err\n }\n const opaque = opts && opts.opaque\n queueMicrotask(() => callback(err, { opaque }))\n }\n}\n\nmodule.exports = stream\n","'use strict'\n\nconst { InvalidArgumentError, RequestAbortedError, SocketError } = require('../core/errors')\nconst { AsyncResource } = require('async_hooks')\nconst util = require('../core/util')\nconst { addSignal, removeSignal } = require('./abort-signal')\nconst assert = require('assert')\n\nclass UpgradeHandler extends AsyncResource {\n constructor (opts, callback) {\n if (!opts || typeof opts !== 'object') {\n throw new InvalidArgumentError('invalid opts')\n }\n\n if (typeof callback !== 'function') {\n throw new InvalidArgumentError('invalid callback')\n }\n\n const { signal, opaque, responseHeaders } = opts\n\n if (signal && typeof signal.on !== 'function' && typeof signal.addEventListener !== 'function') {\n throw new InvalidArgumentError('signal must be an EventEmitter or EventTarget')\n }\n\n super('UNDICI_UPGRADE')\n\n this.responseHeaders = responseHeaders || null\n this.opaque = opaque || null\n this.callback = callback\n this.abort = null\n this.context = null\n\n addSignal(this, signal)\n }\n\n onConnect (abort, context) {\n if (!this.callback) {\n throw new RequestAbortedError()\n }\n\n this.abort = abort\n this.context = null\n }\n\n onHeaders () {\n throw new SocketError('bad upgrade', null)\n }\n\n onUpgrade (statusCode, rawHeaders, socket) {\n const { callback, opaque, context } = this\n\n assert.strictEqual(statusCode, 101)\n\n removeSignal(this)\n\n this.callback = null\n const headers = this.responseHeaders === 'raw' ? util.parseRawHeaders(rawHeaders) : util.parseHeaders(rawHeaders)\n this.runInAsyncScope(callback, null, null, {\n headers,\n socket,\n opaque,\n context\n })\n }\n\n onError (err) {\n const { callback, opaque } = this\n\n removeSignal(this)\n\n if (callback) {\n this.callback = null\n queueMicrotask(() => {\n this.runInAsyncScope(callback, null, err, { opaque })\n })\n }\n }\n}\n\nfunction upgrade (opts, callback) {\n if (callback === undefined) {\n return new Promise((resolve, reject) => {\n upgrade.call(this, opts, (err, data) => {\n return err ? reject(err) : resolve(data)\n })\n })\n }\n\n try {\n const upgradeHandler = new UpgradeHandler(opts, callback)\n this.dispatch({\n ...opts,\n method: opts.method || 'GET',\n upgrade: opts.protocol || 'Websocket'\n }, upgradeHandler)\n } catch (err) {\n if (typeof callback !== 'function') {\n throw err\n }\n const opaque = opts && opts.opaque\n queueMicrotask(() => callback(err, { opaque }))\n }\n}\n\nmodule.exports = upgrade\n","'use strict'\n\nmodule.exports.request = require('./api-request')\nmodule.exports.stream = require('./api-stream')\nmodule.exports.pipeline = require('./api-pipeline')\nmodule.exports.upgrade = require('./api-upgrade')\nmodule.exports.connect = require('./api-connect')\n","// Ported from https://github.com/nodejs/undici/pull/907\n\n'use strict'\n\nconst assert = require('assert')\nconst { Readable } = require('stream')\nconst { RequestAbortedError, NotSupportedError, InvalidArgumentError } = require('../core/errors')\nconst util = require('../core/util')\nconst { ReadableStreamFrom, toUSVString } = require('../core/util')\n\nlet Blob\n\nconst kConsume = Symbol('kConsume')\nconst kReading = Symbol('kReading')\nconst kBody = Symbol('kBody')\nconst kAbort = Symbol('abort')\nconst kContentType = Symbol('kContentType')\n\nconst noop = () => {}\n\nmodule.exports = class BodyReadable extends Readable {\n constructor ({\n resume,\n abort,\n contentType = '',\n highWaterMark = 64 * 1024 // Same as nodejs fs streams.\n }) {\n super({\n autoDestroy: true,\n read: resume,\n highWaterMark\n })\n\n this._readableState.dataEmitted = false\n\n this[kAbort] = abort\n this[kConsume] = null\n this[kBody] = null\n this[kContentType] = contentType\n\n // Is stream being consumed through Readable API?\n // This is an optimization so that we avoid checking\n // for 'data' and 'readable' listeners in the hot path\n // inside push().\n this[kReading] = false\n }\n\n destroy (err) {\n if (this.destroyed) {\n // Node < 16\n return this\n }\n\n if (!err && !this._readableState.endEmitted) {\n err = new RequestAbortedError()\n }\n\n if (err) {\n this[kAbort]()\n }\n\n return super.destroy(err)\n }\n\n emit (ev, ...args) {\n if (ev === 'data') {\n // Node < 16.7\n this._readableState.dataEmitted = true\n } else if (ev === 'error') {\n // Node < 16\n this._readableState.errorEmitted = true\n }\n return super.emit(ev, ...args)\n }\n\n on (ev, ...args) {\n if (ev === 'data' || ev === 'readable') {\n this[kReading] = true\n }\n return super.on(ev, ...args)\n }\n\n addListener (ev, ...args) {\n return this.on(ev, ...args)\n }\n\n off (ev, ...args) {\n const ret = super.off(ev, ...args)\n if (ev === 'data' || ev === 'readable') {\n this[kReading] = (\n this.listenerCount('data') > 0 ||\n this.listenerCount('readable') > 0\n )\n }\n return ret\n }\n\n removeListener (ev, ...args) {\n return this.off(ev, ...args)\n }\n\n push (chunk) {\n if (this[kConsume] && chunk !== null && this.readableLength === 0) {\n consumePush(this[kConsume], chunk)\n return this[kReading] ? super.push(chunk) : true\n }\n return super.push(chunk)\n }\n\n // https://fetch.spec.whatwg.org/#dom-body-text\n async text () {\n return consume(this, 'text')\n }\n\n // https://fetch.spec.whatwg.org/#dom-body-json\n async json () {\n return consume(this, 'json')\n }\n\n // https://fetch.spec.whatwg.org/#dom-body-blob\n async blob () {\n return consume(this, 'blob')\n }\n\n // https://fetch.spec.whatwg.org/#dom-body-arraybuffer\n async arrayBuffer () {\n return consume(this, 'arrayBuffer')\n }\n\n // https://fetch.spec.whatwg.org/#dom-body-formdata\n async formData () {\n // TODO: Implement.\n throw new NotSupportedError()\n }\n\n // https://fetch.spec.whatwg.org/#dom-body-bodyused\n get bodyUsed () {\n return util.isDisturbed(this)\n }\n\n // https://fetch.spec.whatwg.org/#dom-body-body\n get body () {\n if (!this[kBody]) {\n this[kBody] = ReadableStreamFrom(this)\n if (this[kConsume]) {\n // TODO: Is this the best way to force a lock?\n this[kBody].getReader() // Ensure stream is locked.\n assert(this[kBody].locked)\n }\n }\n return this[kBody]\n }\n\n dump (opts) {\n let limit = opts && Number.isFinite(opts.limit) ? opts.limit : 262144\n const signal = opts && opts.signal\n\n if (signal) {\n try {\n if (typeof signal !== 'object' || !('aborted' in signal)) {\n throw new InvalidArgumentError('signal must be an AbortSignal')\n }\n util.throwIfAborted(signal)\n } catch (err) {\n return Promise.reject(err)\n }\n }\n\n if (this.closed) {\n return Promise.resolve(null)\n }\n\n return new Promise((resolve, reject) => {\n const signalListenerCleanup = signal\n ? util.addAbortListener(signal, () => {\n this.destroy()\n })\n : noop\n\n this\n .on('close', function () {\n signalListenerCleanup()\n if (signal && signal.aborted) {\n reject(signal.reason || Object.assign(new Error('The operation was aborted'), { name: 'AbortError' }))\n } else {\n resolve(null)\n }\n })\n .on('error', noop)\n .on('data', function (chunk) {\n limit -= chunk.length\n if (limit <= 0) {\n this.destroy()\n }\n })\n .resume()\n })\n }\n}\n\n// https://streams.spec.whatwg.org/#readablestream-locked\nfunction isLocked (self) {\n // Consume is an implicit lock.\n return (self[kBody] && self[kBody].locked === true) || self[kConsume]\n}\n\n// https://fetch.spec.whatwg.org/#body-unusable\nfunction isUnusable (self) {\n return util.isDisturbed(self) || isLocked(self)\n}\n\nasync function consume (stream, type) {\n if (isUnusable(stream)) {\n throw new TypeError('unusable')\n }\n\n assert(!stream[kConsume])\n\n return new Promise((resolve, reject) => {\n stream[kConsume] = {\n type,\n stream,\n resolve,\n reject,\n length: 0,\n body: []\n }\n\n stream\n .on('error', function (err) {\n consumeFinish(this[kConsume], err)\n })\n .on('close', function () {\n if (this[kConsume].body !== null) {\n consumeFinish(this[kConsume], new RequestAbortedError())\n }\n })\n\n process.nextTick(consumeStart, stream[kConsume])\n })\n}\n\nfunction consumeStart (consume) {\n if (consume.body === null) {\n return\n }\n\n const { _readableState: state } = consume.stream\n\n for (const chunk of state.buffer) {\n consumePush(consume, chunk)\n }\n\n if (state.endEmitted) {\n consumeEnd(this[kConsume])\n } else {\n consume.stream.on('end', function () {\n consumeEnd(this[kConsume])\n })\n }\n\n consume.stream.resume()\n\n while (consume.stream.read() != null) {\n // Loop\n }\n}\n\nfunction consumeEnd (consume) {\n const { type, body, resolve, stream, length } = consume\n\n try {\n if (type === 'text') {\n resolve(toUSVString(Buffer.concat(body)))\n } else if (type === 'json') {\n resolve(JSON.parse(Buffer.concat(body)))\n } else if (type === 'arrayBuffer') {\n const dst = new Uint8Array(length)\n\n let pos = 0\n for (const buf of body) {\n dst.set(buf, pos)\n pos += buf.byteLength\n }\n\n resolve(dst.buffer)\n } else if (type === 'blob') {\n if (!Blob) {\n Blob = require('buffer').Blob\n }\n resolve(new Blob(body, { type: stream[kContentType] }))\n }\n\n consumeFinish(consume)\n } catch (err) {\n stream.destroy(err)\n }\n}\n\nfunction consumePush (consume, chunk) {\n consume.length += chunk.length\n consume.body.push(chunk)\n}\n\nfunction consumeFinish (consume, err) {\n if (consume.body === null) {\n return\n }\n\n if (err) {\n consume.reject(err)\n } else {\n consume.resolve()\n }\n\n consume.type = null\n consume.stream = null\n consume.resolve = null\n consume.reject = null\n consume.length = 0\n consume.body = null\n}\n","const assert = require('assert')\nconst {\n ResponseStatusCodeError\n} = require('../core/errors')\nconst { toUSVString } = require('../core/util')\n\nasync function getResolveErrorBodyCallback ({ callback, body, contentType, statusCode, statusMessage, headers }) {\n assert(body)\n\n let chunks = []\n let limit = 0\n\n for await (const chunk of body) {\n chunks.push(chunk)\n limit += chunk.length\n if (limit > 128 * 1024) {\n chunks = null\n break\n }\n }\n\n if (statusCode === 204 || !contentType || !chunks) {\n process.nextTick(callback, new ResponseStatusCodeError(`Response status code ${statusCode}${statusMessage ? `: ${statusMessage}` : ''}`, statusCode, headers))\n return\n }\n\n try {\n if (contentType.startsWith('application/json')) {\n const payload = JSON.parse(toUSVString(Buffer.concat(chunks)))\n process.nextTick(callback, new ResponseStatusCodeError(`Response status code ${statusCode}${statusMessage ? `: ${statusMessage}` : ''}`, statusCode, headers, payload))\n return\n }\n\n if (contentType.startsWith('text/')) {\n const payload = toUSVString(Buffer.concat(chunks))\n process.nextTick(callback, new ResponseStatusCodeError(`Response status code ${statusCode}${statusMessage ? `: ${statusMessage}` : ''}`, statusCode, headers, payload))\n return\n }\n } catch (err) {\n // Process in a fallback if error\n }\n\n process.nextTick(callback, new ResponseStatusCodeError(`Response status code ${statusCode}${statusMessage ? `: ${statusMessage}` : ''}`, statusCode, headers))\n}\n\nmodule.exports = { getResolveErrorBodyCallback }\n","'use strict'\n\nconst {\n BalancedPoolMissingUpstreamError,\n InvalidArgumentError\n} = require('./core/errors')\nconst {\n PoolBase,\n kClients,\n kNeedDrain,\n kAddClient,\n kRemoveClient,\n kGetDispatcher\n} = require('./pool-base')\nconst Pool = require('./pool')\nconst { kUrl, kInterceptors } = require('./core/symbols')\nconst { parseOrigin } = require('./core/util')\nconst kFactory = Symbol('factory')\n\nconst kOptions = Symbol('options')\nconst kGreatestCommonDivisor = Symbol('kGreatestCommonDivisor')\nconst kCurrentWeight = Symbol('kCurrentWeight')\nconst kIndex = Symbol('kIndex')\nconst kWeight = Symbol('kWeight')\nconst kMaxWeightPerServer = Symbol('kMaxWeightPerServer')\nconst kErrorPenalty = Symbol('kErrorPenalty')\n\nfunction getGreatestCommonDivisor (a, b) {\n if (b === 0) return a\n return getGreatestCommonDivisor(b, a % b)\n}\n\nfunction defaultFactory (origin, opts) {\n return new Pool(origin, opts)\n}\n\nclass BalancedPool extends PoolBase {\n constructor (upstreams = [], { factory = defaultFactory, ...opts } = {}) {\n super()\n\n this[kOptions] = opts\n this[kIndex] = -1\n this[kCurrentWeight] = 0\n\n this[kMaxWeightPerServer] = this[kOptions].maxWeightPerServer || 100\n this[kErrorPenalty] = this[kOptions].errorPenalty || 15\n\n if (!Array.isArray(upstreams)) {\n upstreams = [upstreams]\n }\n\n if (typeof factory !== 'function') {\n throw new InvalidArgumentError('factory must be a function.')\n }\n\n this[kInterceptors] = opts.interceptors && opts.interceptors.BalancedPool && Array.isArray(opts.interceptors.BalancedPool)\n ? opts.interceptors.BalancedPool\n : []\n this[kFactory] = factory\n\n for (const upstream of upstreams) {\n this.addUpstream(upstream)\n }\n this._updateBalancedPoolStats()\n }\n\n addUpstream (upstream) {\n const upstreamOrigin = parseOrigin(upstream).origin\n\n if (this[kClients].find((pool) => (\n pool[kUrl].origin === upstreamOrigin &&\n pool.closed !== true &&\n pool.destroyed !== true\n ))) {\n return this\n }\n const pool = this[kFactory](upstreamOrigin, Object.assign({}, this[kOptions]))\n\n this[kAddClient](pool)\n pool.on('connect', () => {\n pool[kWeight] = Math.min(this[kMaxWeightPerServer], pool[kWeight] + this[kErrorPenalty])\n })\n\n pool.on('connectionError', () => {\n pool[kWeight] = Math.max(1, pool[kWeight] - this[kErrorPenalty])\n this._updateBalancedPoolStats()\n })\n\n pool.on('disconnect', (...args) => {\n const err = args[2]\n if (err && err.code === 'UND_ERR_SOCKET') {\n // decrease the weight of the pool.\n pool[kWeight] = Math.max(1, pool[kWeight] - this[kErrorPenalty])\n this._updateBalancedPoolStats()\n }\n })\n\n for (const client of this[kClients]) {\n client[kWeight] = this[kMaxWeightPerServer]\n }\n\n this._updateBalancedPoolStats()\n\n return this\n }\n\n _updateBalancedPoolStats () {\n this[kGreatestCommonDivisor] = this[kClients].map(p => p[kWeight]).reduce(getGreatestCommonDivisor, 0)\n }\n\n removeUpstream (upstream) {\n const upstreamOrigin = parseOrigin(upstream).origin\n\n const pool = this[kClients].find((pool) => (\n pool[kUrl].origin === upstreamOrigin &&\n pool.closed !== true &&\n pool.destroyed !== true\n ))\n\n if (pool) {\n this[kRemoveClient](pool)\n }\n\n return this\n }\n\n get upstreams () {\n return this[kClients]\n .filter(dispatcher => dispatcher.closed !== true && dispatcher.destroyed !== true)\n .map((p) => p[kUrl].origin)\n }\n\n [kGetDispatcher] () {\n // We validate that pools is greater than 0,\n // otherwise we would have to wait until an upstream\n // is added, which might never happen.\n if (this[kClients].length === 0) {\n throw new BalancedPoolMissingUpstreamError()\n }\n\n const dispatcher = this[kClients].find(dispatcher => (\n !dispatcher[kNeedDrain] &&\n dispatcher.closed !== true &&\n dispatcher.destroyed !== true\n ))\n\n if (!dispatcher) {\n return\n }\n\n const allClientsBusy = this[kClients].map(pool => pool[kNeedDrain]).reduce((a, b) => a && b, true)\n\n if (allClientsBusy) {\n return\n }\n\n let counter = 0\n\n let maxWeightIndex = this[kClients].findIndex(pool => !pool[kNeedDrain])\n\n while (counter++ < this[kClients].length) {\n this[kIndex] = (this[kIndex] + 1) % this[kClients].length\n const pool = this[kClients][this[kIndex]]\n\n // find pool index with the largest weight\n if (pool[kWeight] > this[kClients][maxWeightIndex][kWeight] && !pool[kNeedDrain]) {\n maxWeightIndex = this[kIndex]\n }\n\n // decrease the current weight every `this[kClients].length`.\n if (this[kIndex] === 0) {\n // Set the current weight to the next lower weight.\n this[kCurrentWeight] = this[kCurrentWeight] - this[kGreatestCommonDivisor]\n\n if (this[kCurrentWeight] <= 0) {\n this[kCurrentWeight] = this[kMaxWeightPerServer]\n }\n }\n if (pool[kWeight] >= this[kCurrentWeight] && (!pool[kNeedDrain])) {\n return pool\n }\n }\n\n this[kCurrentWeight] = this[kClients][maxWeightIndex][kWeight]\n this[kIndex] = maxWeightIndex\n return this[kClients][maxWeightIndex]\n }\n}\n\nmodule.exports = BalancedPool\n","'use strict'\n\nconst { kConstruct } = require('./symbols')\nconst { urlEquals, fieldValues: getFieldValues } = require('./util')\nconst { kEnumerableProperty, isDisturbed } = require('../core/util')\nconst { kHeadersList } = require('../core/symbols')\nconst { webidl } = require('../fetch/webidl')\nconst { Response, cloneResponse } = require('../fetch/response')\nconst { Request } = require('../fetch/request')\nconst { kState, kHeaders, kGuard, kRealm } = require('../fetch/symbols')\nconst { fetching } = require('../fetch/index')\nconst { urlIsHttpHttpsScheme, createDeferredPromise, readAllBytes } = require('../fetch/util')\nconst assert = require('assert')\nconst { getGlobalDispatcher } = require('../global')\n\n/**\n * @see https://w3c.github.io/ServiceWorker/#dfn-cache-batch-operation\n * @typedef {Object} CacheBatchOperation\n * @property {'delete' | 'put'} type\n * @property {any} request\n * @property {any} response\n * @property {import('../../types/cache').CacheQueryOptions} options\n */\n\n/**\n * @see https://w3c.github.io/ServiceWorker/#dfn-request-response-list\n * @typedef {[any, any][]} requestResponseList\n */\n\nclass Cache {\n /**\n * @see https://w3c.github.io/ServiceWorker/#dfn-relevant-request-response-list\n * @type {requestResponseList}\n */\n #relevantRequestResponseList\n\n constructor () {\n if (arguments[0] !== kConstruct) {\n webidl.illegalConstructor()\n }\n\n this.#relevantRequestResponseList = arguments[1]\n }\n\n async match (request, options = {}) {\n webidl.brandCheck(this, Cache)\n webidl.argumentLengthCheck(arguments, 1, { header: 'Cache.match' })\n\n request = webidl.converters.RequestInfo(request)\n options = webidl.converters.CacheQueryOptions(options)\n\n const p = await this.matchAll(request, options)\n\n if (p.length === 0) {\n return\n }\n\n return p[0]\n }\n\n async matchAll (request = undefined, options = {}) {\n webidl.brandCheck(this, Cache)\n\n if (request !== undefined) request = webidl.converters.RequestInfo(request)\n options = webidl.converters.CacheQueryOptions(options)\n\n // 1.\n let r = null\n\n // 2.\n if (request !== undefined) {\n if (request instanceof Request) {\n // 2.1.1\n r = request[kState]\n\n // 2.1.2\n if (r.method !== 'GET' && !options.ignoreMethod) {\n return []\n }\n } else if (typeof request === 'string') {\n // 2.2.1\n r = new Request(request)[kState]\n }\n }\n\n // 5.\n // 5.1\n const responses = []\n\n // 5.2\n if (request === undefined) {\n // 5.2.1\n for (const requestResponse of this.#relevantRequestResponseList) {\n responses.push(requestResponse[1])\n }\n } else { // 5.3\n // 5.3.1\n const requestResponses = this.#queryCache(r, options)\n\n // 5.3.2\n for (const requestResponse of requestResponses) {\n responses.push(requestResponse[1])\n }\n }\n\n // 5.4\n // We don't implement CORs so we don't need to loop over the responses, yay!\n\n // 5.5.1\n const responseList = []\n\n // 5.5.2\n for (const response of responses) {\n // 5.5.2.1\n const responseObject = new Response(response.body?.source ?? null)\n const body = responseObject[kState].body\n responseObject[kState] = response\n responseObject[kState].body = body\n responseObject[kHeaders][kHeadersList] = response.headersList\n responseObject[kHeaders][kGuard] = 'immutable'\n\n responseList.push(responseObject)\n }\n\n // 6.\n return Object.freeze(responseList)\n }\n\n async add (request) {\n webidl.brandCheck(this, Cache)\n webidl.argumentLengthCheck(arguments, 1, { header: 'Cache.add' })\n\n request = webidl.converters.RequestInfo(request)\n\n // 1.\n const requests = [request]\n\n // 2.\n const responseArrayPromise = this.addAll(requests)\n\n // 3.\n return await responseArrayPromise\n }\n\n async addAll (requests) {\n webidl.brandCheck(this, Cache)\n webidl.argumentLengthCheck(arguments, 1, { header: 'Cache.addAll' })\n\n requests = webidl.converters['sequence'](requests)\n\n // 1.\n const responsePromises = []\n\n // 2.\n const requestList = []\n\n // 3.\n for (const request of requests) {\n if (typeof request === 'string') {\n continue\n }\n\n // 3.1\n const r = request[kState]\n\n // 3.2\n if (!urlIsHttpHttpsScheme(r.url) || r.method !== 'GET') {\n throw webidl.errors.exception({\n header: 'Cache.addAll',\n message: 'Expected http/s scheme when method is not GET.'\n })\n }\n }\n\n // 4.\n /** @type {ReturnType[]} */\n const fetchControllers = []\n\n // 5.\n for (const request of requests) {\n // 5.1\n const r = new Request(request)[kState]\n\n // 5.2\n if (!urlIsHttpHttpsScheme(r.url)) {\n throw webidl.errors.exception({\n header: 'Cache.addAll',\n message: 'Expected http/s scheme.'\n })\n }\n\n // 5.4\n r.initiator = 'fetch'\n r.destination = 'subresource'\n\n // 5.5\n requestList.push(r)\n\n // 5.6\n const responsePromise = createDeferredPromise()\n\n // 5.7\n fetchControllers.push(fetching({\n request: r,\n dispatcher: getGlobalDispatcher(),\n processResponse (response) {\n // 1.\n if (response.type === 'error' || response.status === 206 || response.status < 200 || response.status > 299) {\n responsePromise.reject(webidl.errors.exception({\n header: 'Cache.addAll',\n message: 'Received an invalid status code or the request failed.'\n }))\n } else if (response.headersList.contains('vary')) { // 2.\n // 2.1\n const fieldValues = getFieldValues(response.headersList.get('vary'))\n\n // 2.2\n for (const fieldValue of fieldValues) {\n // 2.2.1\n if (fieldValue === '*') {\n responsePromise.reject(webidl.errors.exception({\n header: 'Cache.addAll',\n message: 'invalid vary field value'\n }))\n\n for (const controller of fetchControllers) {\n controller.abort()\n }\n\n return\n }\n }\n }\n },\n processResponseEndOfBody (response) {\n // 1.\n if (response.aborted) {\n responsePromise.reject(new DOMException('aborted', 'AbortError'))\n return\n }\n\n // 2.\n responsePromise.resolve(response)\n }\n }))\n\n // 5.8\n responsePromises.push(responsePromise.promise)\n }\n\n // 6.\n const p = Promise.all(responsePromises)\n\n // 7.\n const responses = await p\n\n // 7.1\n const operations = []\n\n // 7.2\n let index = 0\n\n // 7.3\n for (const response of responses) {\n // 7.3.1\n /** @type {CacheBatchOperation} */\n const operation = {\n type: 'put', // 7.3.2\n request: requestList[index], // 7.3.3\n response // 7.3.4\n }\n\n operations.push(operation) // 7.3.5\n\n index++ // 7.3.6\n }\n\n // 7.5\n const cacheJobPromise = createDeferredPromise()\n\n // 7.6.1\n let errorData = null\n\n // 7.6.2\n try {\n this.#batchCacheOperations(operations)\n } catch (e) {\n errorData = e\n }\n\n // 7.6.3\n queueMicrotask(() => {\n // 7.6.3.1\n if (errorData === null) {\n cacheJobPromise.resolve(undefined)\n } else {\n // 7.6.3.2\n cacheJobPromise.reject(errorData)\n }\n })\n\n // 7.7\n return cacheJobPromise.promise\n }\n\n async put (request, response) {\n webidl.brandCheck(this, Cache)\n webidl.argumentLengthCheck(arguments, 2, { header: 'Cache.put' })\n\n request = webidl.converters.RequestInfo(request)\n response = webidl.converters.Response(response)\n\n // 1.\n let innerRequest = null\n\n // 2.\n if (request instanceof Request) {\n innerRequest = request[kState]\n } else { // 3.\n innerRequest = new Request(request)[kState]\n }\n\n // 4.\n if (!urlIsHttpHttpsScheme(innerRequest.url) || innerRequest.method !== 'GET') {\n throw webidl.errors.exception({\n header: 'Cache.put',\n message: 'Expected an http/s scheme when method is not GET'\n })\n }\n\n // 5.\n const innerResponse = response[kState]\n\n // 6.\n if (innerResponse.status === 206) {\n throw webidl.errors.exception({\n header: 'Cache.put',\n message: 'Got 206 status'\n })\n }\n\n // 7.\n if (innerResponse.headersList.contains('vary')) {\n // 7.1.\n const fieldValues = getFieldValues(innerResponse.headersList.get('vary'))\n\n // 7.2.\n for (const fieldValue of fieldValues) {\n // 7.2.1\n if (fieldValue === '*') {\n throw webidl.errors.exception({\n header: 'Cache.put',\n message: 'Got * vary field value'\n })\n }\n }\n }\n\n // 8.\n if (innerResponse.body && (isDisturbed(innerResponse.body.stream) || innerResponse.body.stream.locked)) {\n throw webidl.errors.exception({\n header: 'Cache.put',\n message: 'Response body is locked or disturbed'\n })\n }\n\n // 9.\n const clonedResponse = cloneResponse(innerResponse)\n\n // 10.\n const bodyReadPromise = createDeferredPromise()\n\n // 11.\n if (innerResponse.body != null) {\n // 11.1\n const stream = innerResponse.body.stream\n\n // 11.2\n const reader = stream.getReader()\n\n // 11.3\n readAllBytes(reader).then(bodyReadPromise.resolve, bodyReadPromise.reject)\n } else {\n bodyReadPromise.resolve(undefined)\n }\n\n // 12.\n /** @type {CacheBatchOperation[]} */\n const operations = []\n\n // 13.\n /** @type {CacheBatchOperation} */\n const operation = {\n type: 'put', // 14.\n request: innerRequest, // 15.\n response: clonedResponse // 16.\n }\n\n // 17.\n operations.push(operation)\n\n // 19.\n const bytes = await bodyReadPromise.promise\n\n if (clonedResponse.body != null) {\n clonedResponse.body.source = bytes\n }\n\n // 19.1\n const cacheJobPromise = createDeferredPromise()\n\n // 19.2.1\n let errorData = null\n\n // 19.2.2\n try {\n this.#batchCacheOperations(operations)\n } catch (e) {\n errorData = e\n }\n\n // 19.2.3\n queueMicrotask(() => {\n // 19.2.3.1\n if (errorData === null) {\n cacheJobPromise.resolve()\n } else { // 19.2.3.2\n cacheJobPromise.reject(errorData)\n }\n })\n\n return cacheJobPromise.promise\n }\n\n async delete (request, options = {}) {\n webidl.brandCheck(this, Cache)\n webidl.argumentLengthCheck(arguments, 1, { header: 'Cache.delete' })\n\n request = webidl.converters.RequestInfo(request)\n options = webidl.converters.CacheQueryOptions(options)\n\n /**\n * @type {Request}\n */\n let r = null\n\n if (request instanceof Request) {\n r = request[kState]\n\n if (r.method !== 'GET' && !options.ignoreMethod) {\n return false\n }\n } else {\n assert(typeof request === 'string')\n\n r = new Request(request)[kState]\n }\n\n /** @type {CacheBatchOperation[]} */\n const operations = []\n\n /** @type {CacheBatchOperation} */\n const operation = {\n type: 'delete',\n request: r,\n options\n }\n\n operations.push(operation)\n\n const cacheJobPromise = createDeferredPromise()\n\n let errorData = null\n let requestResponses\n\n try {\n requestResponses = this.#batchCacheOperations(operations)\n } catch (e) {\n errorData = e\n }\n\n queueMicrotask(() => {\n if (errorData === null) {\n cacheJobPromise.resolve(!!requestResponses?.length)\n } else {\n cacheJobPromise.reject(errorData)\n }\n })\n\n return cacheJobPromise.promise\n }\n\n /**\n * @see https://w3c.github.io/ServiceWorker/#dom-cache-keys\n * @param {any} request\n * @param {import('../../types/cache').CacheQueryOptions} options\n * @returns {readonly Request[]}\n */\n async keys (request = undefined, options = {}) {\n webidl.brandCheck(this, Cache)\n\n if (request !== undefined) request = webidl.converters.RequestInfo(request)\n options = webidl.converters.CacheQueryOptions(options)\n\n // 1.\n let r = null\n\n // 2.\n if (request !== undefined) {\n // 2.1\n if (request instanceof Request) {\n // 2.1.1\n r = request[kState]\n\n // 2.1.2\n if (r.method !== 'GET' && !options.ignoreMethod) {\n return []\n }\n } else if (typeof request === 'string') { // 2.2\n r = new Request(request)[kState]\n }\n }\n\n // 4.\n const promise = createDeferredPromise()\n\n // 5.\n // 5.1\n const requests = []\n\n // 5.2\n if (request === undefined) {\n // 5.2.1\n for (const requestResponse of this.#relevantRequestResponseList) {\n // 5.2.1.1\n requests.push(requestResponse[0])\n }\n } else { // 5.3\n // 5.3.1\n const requestResponses = this.#queryCache(r, options)\n\n // 5.3.2\n for (const requestResponse of requestResponses) {\n // 5.3.2.1\n requests.push(requestResponse[0])\n }\n }\n\n // 5.4\n queueMicrotask(() => {\n // 5.4.1\n const requestList = []\n\n // 5.4.2\n for (const request of requests) {\n const requestObject = new Request('https://a')\n requestObject[kState] = request\n requestObject[kHeaders][kHeadersList] = request.headersList\n requestObject[kHeaders][kGuard] = 'immutable'\n requestObject[kRealm] = request.client\n\n // 5.4.2.1\n requestList.push(requestObject)\n }\n\n // 5.4.3\n promise.resolve(Object.freeze(requestList))\n })\n\n return promise.promise\n }\n\n /**\n * @see https://w3c.github.io/ServiceWorker/#batch-cache-operations-algorithm\n * @param {CacheBatchOperation[]} operations\n * @returns {requestResponseList}\n */\n #batchCacheOperations (operations) {\n // 1.\n const cache = this.#relevantRequestResponseList\n\n // 2.\n const backupCache = [...cache]\n\n // 3.\n const addedItems = []\n\n // 4.1\n const resultList = []\n\n try {\n // 4.2\n for (const operation of operations) {\n // 4.2.1\n if (operation.type !== 'delete' && operation.type !== 'put') {\n throw webidl.errors.exception({\n header: 'Cache.#batchCacheOperations',\n message: 'operation type does not match \"delete\" or \"put\"'\n })\n }\n\n // 4.2.2\n if (operation.type === 'delete' && operation.response != null) {\n throw webidl.errors.exception({\n header: 'Cache.#batchCacheOperations',\n message: 'delete operation should not have an associated response'\n })\n }\n\n // 4.2.3\n if (this.#queryCache(operation.request, operation.options, addedItems).length) {\n throw new DOMException('???', 'InvalidStateError')\n }\n\n // 4.2.4\n let requestResponses\n\n // 4.2.5\n if (operation.type === 'delete') {\n // 4.2.5.1\n requestResponses = this.#queryCache(operation.request, operation.options)\n\n // TODO: the spec is wrong, this is needed to pass WPTs\n if (requestResponses.length === 0) {\n return []\n }\n\n // 4.2.5.2\n for (const requestResponse of requestResponses) {\n const idx = cache.indexOf(requestResponse)\n assert(idx !== -1)\n\n // 4.2.5.2.1\n cache.splice(idx, 1)\n }\n } else if (operation.type === 'put') { // 4.2.6\n // 4.2.6.1\n if (operation.response == null) {\n throw webidl.errors.exception({\n header: 'Cache.#batchCacheOperations',\n message: 'put operation should have an associated response'\n })\n }\n\n // 4.2.6.2\n const r = operation.request\n\n // 4.2.6.3\n if (!urlIsHttpHttpsScheme(r.url)) {\n throw webidl.errors.exception({\n header: 'Cache.#batchCacheOperations',\n message: 'expected http or https scheme'\n })\n }\n\n // 4.2.6.4\n if (r.method !== 'GET') {\n throw webidl.errors.exception({\n header: 'Cache.#batchCacheOperations',\n message: 'not get method'\n })\n }\n\n // 4.2.6.5\n if (operation.options != null) {\n throw webidl.errors.exception({\n header: 'Cache.#batchCacheOperations',\n message: 'options must not be defined'\n })\n }\n\n // 4.2.6.6\n requestResponses = this.#queryCache(operation.request)\n\n // 4.2.6.7\n for (const requestResponse of requestResponses) {\n const idx = cache.indexOf(requestResponse)\n assert(idx !== -1)\n\n // 4.2.6.7.1\n cache.splice(idx, 1)\n }\n\n // 4.2.6.8\n cache.push([operation.request, operation.response])\n\n // 4.2.6.10\n addedItems.push([operation.request, operation.response])\n }\n\n // 4.2.7\n resultList.push([operation.request, operation.response])\n }\n\n // 4.3\n return resultList\n } catch (e) { // 5.\n // 5.1\n this.#relevantRequestResponseList.length = 0\n\n // 5.2\n this.#relevantRequestResponseList = backupCache\n\n // 5.3\n throw e\n }\n }\n\n /**\n * @see https://w3c.github.io/ServiceWorker/#query-cache\n * @param {any} requestQuery\n * @param {import('../../types/cache').CacheQueryOptions} options\n * @param {requestResponseList} targetStorage\n * @returns {requestResponseList}\n */\n #queryCache (requestQuery, options, targetStorage) {\n /** @type {requestResponseList} */\n const resultList = []\n\n const storage = targetStorage ?? this.#relevantRequestResponseList\n\n for (const requestResponse of storage) {\n const [cachedRequest, cachedResponse] = requestResponse\n if (this.#requestMatchesCachedItem(requestQuery, cachedRequest, cachedResponse, options)) {\n resultList.push(requestResponse)\n }\n }\n\n return resultList\n }\n\n /**\n * @see https://w3c.github.io/ServiceWorker/#request-matches-cached-item-algorithm\n * @param {any} requestQuery\n * @param {any} request\n * @param {any | null} response\n * @param {import('../../types/cache').CacheQueryOptions | undefined} options\n * @returns {boolean}\n */\n #requestMatchesCachedItem (requestQuery, request, response = null, options) {\n // if (options?.ignoreMethod === false && request.method === 'GET') {\n // return false\n // }\n\n const queryURL = new URL(requestQuery.url)\n\n const cachedURL = new URL(request.url)\n\n if (options?.ignoreSearch) {\n cachedURL.search = ''\n\n queryURL.search = ''\n }\n\n if (!urlEquals(queryURL, cachedURL, true)) {\n return false\n }\n\n if (\n response == null ||\n options?.ignoreVary ||\n !response.headersList.contains('vary')\n ) {\n return true\n }\n\n const fieldValues = getFieldValues(response.headersList.get('vary'))\n\n for (const fieldValue of fieldValues) {\n if (fieldValue === '*') {\n return false\n }\n\n const requestValue = request.headersList.get(fieldValue)\n const queryValue = requestQuery.headersList.get(fieldValue)\n\n // If one has the header and the other doesn't, or one has\n // a different value than the other, return false\n if (requestValue !== queryValue) {\n return false\n }\n }\n\n return true\n }\n}\n\nObject.defineProperties(Cache.prototype, {\n [Symbol.toStringTag]: {\n value: 'Cache',\n configurable: true\n },\n match: kEnumerableProperty,\n matchAll: kEnumerableProperty,\n add: kEnumerableProperty,\n addAll: kEnumerableProperty,\n put: kEnumerableProperty,\n delete: kEnumerableProperty,\n keys: kEnumerableProperty\n})\n\nconst cacheQueryOptionConverters = [\n {\n key: 'ignoreSearch',\n converter: webidl.converters.boolean,\n defaultValue: false\n },\n {\n key: 'ignoreMethod',\n converter: webidl.converters.boolean,\n defaultValue: false\n },\n {\n key: 'ignoreVary',\n converter: webidl.converters.boolean,\n defaultValue: false\n }\n]\n\nwebidl.converters.CacheQueryOptions = webidl.dictionaryConverter(cacheQueryOptionConverters)\n\nwebidl.converters.MultiCacheQueryOptions = webidl.dictionaryConverter([\n ...cacheQueryOptionConverters,\n {\n key: 'cacheName',\n converter: webidl.converters.DOMString\n }\n])\n\nwebidl.converters.Response = webidl.interfaceConverter(Response)\n\nwebidl.converters['sequence'] = webidl.sequenceConverter(\n webidl.converters.RequestInfo\n)\n\nmodule.exports = {\n Cache\n}\n","'use strict'\n\nconst { kConstruct } = require('./symbols')\nconst { Cache } = require('./cache')\nconst { webidl } = require('../fetch/webidl')\nconst { kEnumerableProperty } = require('../core/util')\n\nclass CacheStorage {\n /**\n * @see https://w3c.github.io/ServiceWorker/#dfn-relevant-name-to-cache-map\n * @type {Map}\n */\n async has (cacheName) {\n webidl.brandCheck(this, CacheStorage)\n webidl.argumentLengthCheck(arguments, 1, { header: 'CacheStorage.has' })\n\n cacheName = webidl.converters.DOMString(cacheName)\n\n // 2.1.1\n // 2.2\n return this.#caches.has(cacheName)\n }\n\n /**\n * @see https://w3c.github.io/ServiceWorker/#dom-cachestorage-open\n * @param {string} cacheName\n * @returns {Promise}\n */\n async open (cacheName) {\n webidl.brandCheck(this, CacheStorage)\n webidl.argumentLengthCheck(arguments, 1, { header: 'CacheStorage.open' })\n\n cacheName = webidl.converters.DOMString(cacheName)\n\n // 2.1\n if (this.#caches.has(cacheName)) {\n // await caches.open('v1') !== await caches.open('v1')\n\n // 2.1.1\n const cache = this.#caches.get(cacheName)\n\n // 2.1.1.1\n return new Cache(kConstruct, cache)\n }\n\n // 2.2\n const cache = []\n\n // 2.3\n this.#caches.set(cacheName, cache)\n\n // 2.4\n return new Cache(kConstruct, cache)\n }\n\n /**\n * @see https://w3c.github.io/ServiceWorker/#cache-storage-delete\n * @param {string} cacheName\n * @returns {Promise}\n */\n async delete (cacheName) {\n webidl.brandCheck(this, CacheStorage)\n webidl.argumentLengthCheck(arguments, 1, { header: 'CacheStorage.delete' })\n\n cacheName = webidl.converters.DOMString(cacheName)\n\n return this.#caches.delete(cacheName)\n }\n\n /**\n * @see https://w3c.github.io/ServiceWorker/#cache-storage-keys\n * @returns {string[]}\n */\n async keys () {\n webidl.brandCheck(this, CacheStorage)\n\n // 2.1\n const keys = this.#caches.keys()\n\n // 2.2\n return [...keys]\n }\n}\n\nObject.defineProperties(CacheStorage.prototype, {\n [Symbol.toStringTag]: {\n value: 'CacheStorage',\n configurable: true\n },\n match: kEnumerableProperty,\n has: kEnumerableProperty,\n open: kEnumerableProperty,\n delete: kEnumerableProperty,\n keys: kEnumerableProperty\n})\n\nmodule.exports = {\n CacheStorage\n}\n","'use strict'\n\nmodule.exports = {\n kConstruct: require('../core/symbols').kConstruct\n}\n","'use strict'\n\nconst assert = require('assert')\nconst { URLSerializer } = require('../fetch/dataURL')\nconst { isValidHeaderName } = require('../fetch/util')\n\n/**\n * @see https://url.spec.whatwg.org/#concept-url-equals\n * @param {URL} A\n * @param {URL} B\n * @param {boolean | undefined} excludeFragment\n * @returns {boolean}\n */\nfunction urlEquals (A, B, excludeFragment = false) {\n const serializedA = URLSerializer(A, excludeFragment)\n\n const serializedB = URLSerializer(B, excludeFragment)\n\n return serializedA === serializedB\n}\n\n/**\n * @see https://github.com/chromium/chromium/blob/694d20d134cb553d8d89e5500b9148012b1ba299/content/browser/cache_storage/cache_storage_cache.cc#L260-L262\n * @param {string} header\n */\nfunction fieldValues (header) {\n assert(header !== null)\n\n const values = []\n\n for (let value of header.split(',')) {\n value = value.trim()\n\n if (!value.length) {\n continue\n } else if (!isValidHeaderName(value)) {\n continue\n }\n\n values.push(value)\n }\n\n return values\n}\n\nmodule.exports = {\n urlEquals,\n fieldValues\n}\n","// @ts-check\n\n'use strict'\n\n/* global WebAssembly */\n\nconst assert = require('assert')\nconst net = require('net')\nconst http = require('http')\nconst { pipeline } = require('stream')\nconst util = require('./core/util')\nconst timers = require('./timers')\nconst Request = require('./core/request')\nconst DispatcherBase = require('./dispatcher-base')\nconst {\n RequestContentLengthMismatchError,\n ResponseContentLengthMismatchError,\n InvalidArgumentError,\n RequestAbortedError,\n HeadersTimeoutError,\n HeadersOverflowError,\n SocketError,\n InformationalError,\n BodyTimeoutError,\n HTTPParserError,\n ResponseExceededMaxSizeError,\n ClientDestroyedError\n} = require('./core/errors')\nconst buildConnector = require('./core/connect')\nconst {\n kUrl,\n kReset,\n kServerName,\n kClient,\n kBusy,\n kParser,\n kConnect,\n kBlocking,\n kResuming,\n kRunning,\n kPending,\n kSize,\n kWriting,\n kQueue,\n kConnected,\n kConnecting,\n kNeedDrain,\n kNoRef,\n kKeepAliveDefaultTimeout,\n kHostHeader,\n kPendingIdx,\n kRunningIdx,\n kError,\n kPipelining,\n kSocket,\n kKeepAliveTimeoutValue,\n kMaxHeadersSize,\n kKeepAliveMaxTimeout,\n kKeepAliveTimeoutThreshold,\n kHeadersTimeout,\n kBodyTimeout,\n kStrictContentLength,\n kConnector,\n kMaxRedirections,\n kMaxRequests,\n kCounter,\n kClose,\n kDestroy,\n kDispatch,\n kInterceptors,\n kLocalAddress,\n kMaxResponseSize,\n kHTTPConnVersion,\n // HTTP2\n kHost,\n kHTTP2Session,\n kHTTP2SessionState,\n kHTTP2BuildRequest,\n kHTTP2CopyHeaders,\n kHTTP1BuildRequest\n} = require('./core/symbols')\n\n/** @type {import('http2')} */\nlet http2\ntry {\n http2 = require('http2')\n} catch {\n // @ts-ignore\n http2 = { constants: {} }\n}\n\nconst {\n constants: {\n HTTP2_HEADER_AUTHORITY,\n HTTP2_HEADER_METHOD,\n HTTP2_HEADER_PATH,\n HTTP2_HEADER_SCHEME,\n HTTP2_HEADER_CONTENT_LENGTH,\n HTTP2_HEADER_EXPECT,\n HTTP2_HEADER_STATUS\n }\n} = http2\n\n// Experimental\nlet h2ExperimentalWarned = false\n\nconst FastBuffer = Buffer[Symbol.species]\n\nconst kClosedResolve = Symbol('kClosedResolve')\n\nconst channels = {}\n\ntry {\n const diagnosticsChannel = require('diagnostics_channel')\n channels.sendHeaders = diagnosticsChannel.channel('undici:client:sendHeaders')\n channels.beforeConnect = diagnosticsChannel.channel('undici:client:beforeConnect')\n channels.connectError = diagnosticsChannel.channel('undici:client:connectError')\n channels.connected = diagnosticsChannel.channel('undici:client:connected')\n} catch {\n channels.sendHeaders = { hasSubscribers: false }\n channels.beforeConnect = { hasSubscribers: false }\n channels.connectError = { hasSubscribers: false }\n channels.connected = { hasSubscribers: false }\n}\n\n/**\n * @type {import('../types/client').default}\n */\nclass Client extends DispatcherBase {\n /**\n *\n * @param {string|URL} url\n * @param {import('../types/client').Client.Options} options\n */\n constructor (url, {\n interceptors,\n maxHeaderSize,\n headersTimeout,\n socketTimeout,\n requestTimeout,\n connectTimeout,\n bodyTimeout,\n idleTimeout,\n keepAlive,\n keepAliveTimeout,\n maxKeepAliveTimeout,\n keepAliveMaxTimeout,\n keepAliveTimeoutThreshold,\n socketPath,\n pipelining,\n tls,\n strictContentLength,\n maxCachedSessions,\n maxRedirections,\n connect,\n maxRequestsPerClient,\n localAddress,\n maxResponseSize,\n autoSelectFamily,\n autoSelectFamilyAttemptTimeout,\n // h2\n allowH2,\n maxConcurrentStreams\n } = {}) {\n super()\n\n if (keepAlive !== undefined) {\n throw new InvalidArgumentError('unsupported keepAlive, use pipelining=0 instead')\n }\n\n if (socketTimeout !== undefined) {\n throw new InvalidArgumentError('unsupported socketTimeout, use headersTimeout & bodyTimeout instead')\n }\n\n if (requestTimeout !== undefined) {\n throw new InvalidArgumentError('unsupported requestTimeout, use headersTimeout & bodyTimeout instead')\n }\n\n if (idleTimeout !== undefined) {\n throw new InvalidArgumentError('unsupported idleTimeout, use keepAliveTimeout instead')\n }\n\n if (maxKeepAliveTimeout !== undefined) {\n throw new InvalidArgumentError('unsupported maxKeepAliveTimeout, use keepAliveMaxTimeout instead')\n }\n\n if (maxHeaderSize != null && !Number.isFinite(maxHeaderSize)) {\n throw new InvalidArgumentError('invalid maxHeaderSize')\n }\n\n if (socketPath != null && typeof socketPath !== 'string') {\n throw new InvalidArgumentError('invalid socketPath')\n }\n\n if (connectTimeout != null && (!Number.isFinite(connectTimeout) || connectTimeout < 0)) {\n throw new InvalidArgumentError('invalid connectTimeout')\n }\n\n if (keepAliveTimeout != null && (!Number.isFinite(keepAliveTimeout) || keepAliveTimeout <= 0)) {\n throw new InvalidArgumentError('invalid keepAliveTimeout')\n }\n\n if (keepAliveMaxTimeout != null && (!Number.isFinite(keepAliveMaxTimeout) || keepAliveMaxTimeout <= 0)) {\n throw new InvalidArgumentError('invalid keepAliveMaxTimeout')\n }\n\n if (keepAliveTimeoutThreshold != null && !Number.isFinite(keepAliveTimeoutThreshold)) {\n throw new InvalidArgumentError('invalid keepAliveTimeoutThreshold')\n }\n\n if (headersTimeout != null && (!Number.isInteger(headersTimeout) || headersTimeout < 0)) {\n throw new InvalidArgumentError('headersTimeout must be a positive integer or zero')\n }\n\n if (bodyTimeout != null && (!Number.isInteger(bodyTimeout) || bodyTimeout < 0)) {\n throw new InvalidArgumentError('bodyTimeout must be a positive integer or zero')\n }\n\n if (connect != null && typeof connect !== 'function' && typeof connect !== 'object') {\n throw new InvalidArgumentError('connect must be a function or an object')\n }\n\n if (maxRedirections != null && (!Number.isInteger(maxRedirections) || maxRedirections < 0)) {\n throw new InvalidArgumentError('maxRedirections must be a positive number')\n }\n\n if (maxRequestsPerClient != null && (!Number.isInteger(maxRequestsPerClient) || maxRequestsPerClient < 0)) {\n throw new InvalidArgumentError('maxRequestsPerClient must be a positive number')\n }\n\n if (localAddress != null && (typeof localAddress !== 'string' || net.isIP(localAddress) === 0)) {\n throw new InvalidArgumentError('localAddress must be valid string IP address')\n }\n\n if (maxResponseSize != null && (!Number.isInteger(maxResponseSize) || maxResponseSize < -1)) {\n throw new InvalidArgumentError('maxResponseSize must be a positive number')\n }\n\n if (\n autoSelectFamilyAttemptTimeout != null &&\n (!Number.isInteger(autoSelectFamilyAttemptTimeout) || autoSelectFamilyAttemptTimeout < -1)\n ) {\n throw new InvalidArgumentError('autoSelectFamilyAttemptTimeout must be a positive number')\n }\n\n // h2\n if (allowH2 != null && typeof allowH2 !== 'boolean') {\n throw new InvalidArgumentError('allowH2 must be a valid boolean value')\n }\n\n if (maxConcurrentStreams != null && (typeof maxConcurrentStreams !== 'number' || maxConcurrentStreams < 1)) {\n throw new InvalidArgumentError('maxConcurrentStreams must be a possitive integer, greater than 0')\n }\n\n if (typeof connect !== 'function') {\n connect = buildConnector({\n ...tls,\n maxCachedSessions,\n allowH2,\n socketPath,\n timeout: connectTimeout,\n ...(util.nodeHasAutoSelectFamily && autoSelectFamily ? { autoSelectFamily, autoSelectFamilyAttemptTimeout } : undefined),\n ...connect\n })\n }\n\n this[kInterceptors] = interceptors && interceptors.Client && Array.isArray(interceptors.Client)\n ? interceptors.Client\n : [createRedirectInterceptor({ maxRedirections })]\n this[kUrl] = util.parseOrigin(url)\n this[kConnector] = connect\n this[kSocket] = null\n this[kPipelining] = pipelining != null ? pipelining : 1\n this[kMaxHeadersSize] = maxHeaderSize || http.maxHeaderSize\n this[kKeepAliveDefaultTimeout] = keepAliveTimeout == null ? 4e3 : keepAliveTimeout\n this[kKeepAliveMaxTimeout] = keepAliveMaxTimeout == null ? 600e3 : keepAliveMaxTimeout\n this[kKeepAliveTimeoutThreshold] = keepAliveTimeoutThreshold == null ? 1e3 : keepAliveTimeoutThreshold\n this[kKeepAliveTimeoutValue] = this[kKeepAliveDefaultTimeout]\n this[kServerName] = null\n this[kLocalAddress] = localAddress != null ? localAddress : null\n this[kResuming] = 0 // 0, idle, 1, scheduled, 2 resuming\n this[kNeedDrain] = 0 // 0, idle, 1, scheduled, 2 resuming\n this[kHostHeader] = `host: ${this[kUrl].hostname}${this[kUrl].port ? `:${this[kUrl].port}` : ''}\\r\\n`\n this[kBodyTimeout] = bodyTimeout != null ? bodyTimeout : 300e3\n this[kHeadersTimeout] = headersTimeout != null ? headersTimeout : 300e3\n this[kStrictContentLength] = strictContentLength == null ? true : strictContentLength\n this[kMaxRedirections] = maxRedirections\n this[kMaxRequests] = maxRequestsPerClient\n this[kClosedResolve] = null\n this[kMaxResponseSize] = maxResponseSize > -1 ? maxResponseSize : -1\n this[kHTTPConnVersion] = 'h1'\n\n // HTTP/2\n this[kHTTP2Session] = null\n this[kHTTP2SessionState] = !allowH2\n ? null\n : {\n // streams: null, // Fixed queue of streams - For future support of `push`\n openStreams: 0, // Keep track of them to decide wether or not unref the session\n maxConcurrentStreams: maxConcurrentStreams != null ? maxConcurrentStreams : 100 // Max peerConcurrentStreams for a Node h2 server\n }\n this[kHost] = `${this[kUrl].hostname}${this[kUrl].port ? `:${this[kUrl].port}` : ''}`\n\n // kQueue is built up of 3 sections separated by\n // the kRunningIdx and kPendingIdx indices.\n // | complete | running | pending |\n // ^ kRunningIdx ^ kPendingIdx ^ kQueue.length\n // kRunningIdx points to the first running element.\n // kPendingIdx points to the first pending element.\n // This implements a fast queue with an amortized\n // time of O(1).\n\n this[kQueue] = []\n this[kRunningIdx] = 0\n this[kPendingIdx] = 0\n }\n\n get pipelining () {\n return this[kPipelining]\n }\n\n set pipelining (value) {\n this[kPipelining] = value\n resume(this, true)\n }\n\n get [kPending] () {\n return this[kQueue].length - this[kPendingIdx]\n }\n\n get [kRunning] () {\n return this[kPendingIdx] - this[kRunningIdx]\n }\n\n get [kSize] () {\n return this[kQueue].length - this[kRunningIdx]\n }\n\n get [kConnected] () {\n return !!this[kSocket] && !this[kConnecting] && !this[kSocket].destroyed\n }\n\n get [kBusy] () {\n const socket = this[kSocket]\n return (\n (socket && (socket[kReset] || socket[kWriting] || socket[kBlocking])) ||\n (this[kSize] >= (this[kPipelining] || 1)) ||\n this[kPending] > 0\n )\n }\n\n /* istanbul ignore: only used for test */\n [kConnect] (cb) {\n connect(this)\n this.once('connect', cb)\n }\n\n [kDispatch] (opts, handler) {\n const origin = opts.origin || this[kUrl].origin\n\n const request = this[kHTTPConnVersion] === 'h2'\n ? Request[kHTTP2BuildRequest](origin, opts, handler)\n : Request[kHTTP1BuildRequest](origin, opts, handler)\n\n this[kQueue].push(request)\n if (this[kResuming]) {\n // Do nothing.\n } else if (util.bodyLength(request.body) == null && util.isIterable(request.body)) {\n // Wait a tick in case stream/iterator is ended in the same tick.\n this[kResuming] = 1\n process.nextTick(resume, this)\n } else {\n resume(this, true)\n }\n\n if (this[kResuming] && this[kNeedDrain] !== 2 && this[kBusy]) {\n this[kNeedDrain] = 2\n }\n\n return this[kNeedDrain] < 2\n }\n\n async [kClose] () {\n // TODO: for H2 we need to gracefully flush the remaining enqueued\n // request and close each stream.\n return new Promise((resolve) => {\n if (!this[kSize]) {\n resolve(null)\n } else {\n this[kClosedResolve] = resolve\n }\n })\n }\n\n async [kDestroy] (err) {\n return new Promise((resolve) => {\n const requests = this[kQueue].splice(this[kPendingIdx])\n for (let i = 0; i < requests.length; i++) {\n const request = requests[i]\n errorRequest(this, request, err)\n }\n\n const callback = () => {\n if (this[kClosedResolve]) {\n // TODO (fix): Should we error here with ClientDestroyedError?\n this[kClosedResolve]()\n this[kClosedResolve] = null\n }\n resolve()\n }\n\n if (this[kHTTP2Session] != null) {\n util.destroy(this[kHTTP2Session], err)\n this[kHTTP2Session] = null\n this[kHTTP2SessionState] = null\n }\n\n if (!this[kSocket]) {\n queueMicrotask(callback)\n } else {\n util.destroy(this[kSocket].on('close', callback), err)\n }\n\n resume(this)\n })\n }\n}\n\nfunction onHttp2SessionError (err) {\n assert(err.code !== 'ERR_TLS_CERT_ALTNAME_INVALID')\n\n this[kSocket][kError] = err\n\n onError(this[kClient], err)\n}\n\nfunction onHttp2FrameError (type, code, id) {\n const err = new InformationalError(`HTTP/2: \"frameError\" received - type ${type}, code ${code}`)\n\n if (id === 0) {\n this[kSocket][kError] = err\n onError(this[kClient], err)\n }\n}\n\nfunction onHttp2SessionEnd () {\n util.destroy(this, new SocketError('other side closed'))\n util.destroy(this[kSocket], new SocketError('other side closed'))\n}\n\nfunction onHTTP2GoAway (code) {\n const client = this[kClient]\n const err = new InformationalError(`HTTP/2: \"GOAWAY\" frame received with code ${code}`)\n client[kSocket] = null\n client[kHTTP2Session] = null\n\n if (client.destroyed) {\n assert(this[kPending] === 0)\n\n // Fail entire queue.\n const requests = client[kQueue].splice(client[kRunningIdx])\n for (let i = 0; i < requests.length; i++) {\n const request = requests[i]\n errorRequest(this, request, err)\n }\n } else if (client[kRunning] > 0) {\n // Fail head of pipeline.\n const request = client[kQueue][client[kRunningIdx]]\n client[kQueue][client[kRunningIdx]++] = null\n\n errorRequest(client, request, err)\n }\n\n client[kPendingIdx] = client[kRunningIdx]\n\n assert(client[kRunning] === 0)\n\n client.emit('disconnect',\n client[kUrl],\n [client],\n err\n )\n\n resume(client)\n}\n\nconst constants = require('./llhttp/constants')\nconst createRedirectInterceptor = require('./interceptor/redirectInterceptor')\nconst EMPTY_BUF = Buffer.alloc(0)\n\nasync function lazyllhttp () {\n const llhttpWasmData = process.env.JEST_WORKER_ID ? require('./llhttp/llhttp-wasm.js') : undefined\n\n let mod\n try {\n mod = await WebAssembly.compile(Buffer.from(require('./llhttp/llhttp_simd-wasm.js'), 'base64'))\n } catch (e) {\n /* istanbul ignore next */\n\n // We could check if the error was caused by the simd option not\n // being enabled, but the occurring of this other error\n // * https://github.com/emscripten-core/emscripten/issues/11495\n // got me to remove that check to avoid breaking Node 12.\n mod = await WebAssembly.compile(Buffer.from(llhttpWasmData || require('./llhttp/llhttp-wasm.js'), 'base64'))\n }\n\n return await WebAssembly.instantiate(mod, {\n env: {\n /* eslint-disable camelcase */\n\n wasm_on_url: (p, at, len) => {\n /* istanbul ignore next */\n return 0\n },\n wasm_on_status: (p, at, len) => {\n assert.strictEqual(currentParser.ptr, p)\n const start = at - currentBufferPtr + currentBufferRef.byteOffset\n return currentParser.onStatus(new FastBuffer(currentBufferRef.buffer, start, len)) || 0\n },\n wasm_on_message_begin: (p) => {\n assert.strictEqual(currentParser.ptr, p)\n return currentParser.onMessageBegin() || 0\n },\n wasm_on_header_field: (p, at, len) => {\n assert.strictEqual(currentParser.ptr, p)\n const start = at - currentBufferPtr + currentBufferRef.byteOffset\n return currentParser.onHeaderField(new FastBuffer(currentBufferRef.buffer, start, len)) || 0\n },\n wasm_on_header_value: (p, at, len) => {\n assert.strictEqual(currentParser.ptr, p)\n const start = at - currentBufferPtr + currentBufferRef.byteOffset\n return currentParser.onHeaderValue(new FastBuffer(currentBufferRef.buffer, start, len)) || 0\n },\n wasm_on_headers_complete: (p, statusCode, upgrade, shouldKeepAlive) => {\n assert.strictEqual(currentParser.ptr, p)\n return currentParser.onHeadersComplete(statusCode, Boolean(upgrade), Boolean(shouldKeepAlive)) || 0\n },\n wasm_on_body: (p, at, len) => {\n assert.strictEqual(currentParser.ptr, p)\n const start = at - currentBufferPtr + currentBufferRef.byteOffset\n return currentParser.onBody(new FastBuffer(currentBufferRef.buffer, start, len)) || 0\n },\n wasm_on_message_complete: (p) => {\n assert.strictEqual(currentParser.ptr, p)\n return currentParser.onMessageComplete() || 0\n }\n\n /* eslint-enable camelcase */\n }\n })\n}\n\nlet llhttpInstance = null\nlet llhttpPromise = lazyllhttp()\nllhttpPromise.catch()\n\nlet currentParser = null\nlet currentBufferRef = null\nlet currentBufferSize = 0\nlet currentBufferPtr = null\n\nconst TIMEOUT_HEADERS = 1\nconst TIMEOUT_BODY = 2\nconst TIMEOUT_IDLE = 3\n\nclass Parser {\n constructor (client, socket, { exports }) {\n assert(Number.isFinite(client[kMaxHeadersSize]) && client[kMaxHeadersSize] > 0)\n\n this.llhttp = exports\n this.ptr = this.llhttp.llhttp_alloc(constants.TYPE.RESPONSE)\n this.client = client\n this.socket = socket\n this.timeout = null\n this.timeoutValue = null\n this.timeoutType = null\n this.statusCode = null\n this.statusText = ''\n this.upgrade = false\n this.headers = []\n this.headersSize = 0\n this.headersMaxSize = client[kMaxHeadersSize]\n this.shouldKeepAlive = false\n this.paused = false\n this.resume = this.resume.bind(this)\n\n this.bytesRead = 0\n\n this.keepAlive = ''\n this.contentLength = ''\n this.connection = ''\n this.maxResponseSize = client[kMaxResponseSize]\n }\n\n setTimeout (value, type) {\n this.timeoutType = type\n if (value !== this.timeoutValue) {\n timers.clearTimeout(this.timeout)\n if (value) {\n this.timeout = timers.setTimeout(onParserTimeout, value, this)\n // istanbul ignore else: only for jest\n if (this.timeout.unref) {\n this.timeout.unref()\n }\n } else {\n this.timeout = null\n }\n this.timeoutValue = value\n } else if (this.timeout) {\n // istanbul ignore else: only for jest\n if (this.timeout.refresh) {\n this.timeout.refresh()\n }\n }\n }\n\n resume () {\n if (this.socket.destroyed || !this.paused) {\n return\n }\n\n assert(this.ptr != null)\n assert(currentParser == null)\n\n this.llhttp.llhttp_resume(this.ptr)\n\n assert(this.timeoutType === TIMEOUT_BODY)\n if (this.timeout) {\n // istanbul ignore else: only for jest\n if (this.timeout.refresh) {\n this.timeout.refresh()\n }\n }\n\n this.paused = false\n this.execute(this.socket.read() || EMPTY_BUF) // Flush parser.\n this.readMore()\n }\n\n readMore () {\n while (!this.paused && this.ptr) {\n const chunk = this.socket.read()\n if (chunk === null) {\n break\n }\n this.execute(chunk)\n }\n }\n\n execute (data) {\n assert(this.ptr != null)\n assert(currentParser == null)\n assert(!this.paused)\n\n const { socket, llhttp } = this\n\n if (data.length > currentBufferSize) {\n if (currentBufferPtr) {\n llhttp.free(currentBufferPtr)\n }\n currentBufferSize = Math.ceil(data.length / 4096) * 4096\n currentBufferPtr = llhttp.malloc(currentBufferSize)\n }\n\n new Uint8Array(llhttp.memory.buffer, currentBufferPtr, currentBufferSize).set(data)\n\n // Call `execute` on the wasm parser.\n // We pass the `llhttp_parser` pointer address, the pointer address of buffer view data,\n // and finally the length of bytes to parse.\n // The return value is an error code or `constants.ERROR.OK`.\n try {\n let ret\n\n try {\n currentBufferRef = data\n currentParser = this\n ret = llhttp.llhttp_execute(this.ptr, currentBufferPtr, data.length)\n /* eslint-disable-next-line no-useless-catch */\n } catch (err) {\n /* istanbul ignore next: difficult to make a test case for */\n throw err\n } finally {\n currentParser = null\n currentBufferRef = null\n }\n\n const offset = llhttp.llhttp_get_error_pos(this.ptr) - currentBufferPtr\n\n if (ret === constants.ERROR.PAUSED_UPGRADE) {\n this.onUpgrade(data.slice(offset))\n } else if (ret === constants.ERROR.PAUSED) {\n this.paused = true\n socket.unshift(data.slice(offset))\n } else if (ret !== constants.ERROR.OK) {\n const ptr = llhttp.llhttp_get_error_reason(this.ptr)\n let message = ''\n /* istanbul ignore else: difficult to make a test case for */\n if (ptr) {\n const len = new Uint8Array(llhttp.memory.buffer, ptr).indexOf(0)\n message =\n 'Response does not match the HTTP/1.1 protocol (' +\n Buffer.from(llhttp.memory.buffer, ptr, len).toString() +\n ')'\n }\n throw new HTTPParserError(message, constants.ERROR[ret], data.slice(offset))\n }\n } catch (err) {\n util.destroy(socket, err)\n }\n }\n\n destroy () {\n assert(this.ptr != null)\n assert(currentParser == null)\n\n this.llhttp.llhttp_free(this.ptr)\n this.ptr = null\n\n timers.clearTimeout(this.timeout)\n this.timeout = null\n this.timeoutValue = null\n this.timeoutType = null\n\n this.paused = false\n }\n\n onStatus (buf) {\n this.statusText = buf.toString()\n }\n\n onMessageBegin () {\n const { socket, client } = this\n\n /* istanbul ignore next: difficult to make a test case for */\n if (socket.destroyed) {\n return -1\n }\n\n const request = client[kQueue][client[kRunningIdx]]\n if (!request) {\n return -1\n }\n }\n\n onHeaderField (buf) {\n const len = this.headers.length\n\n if ((len & 1) === 0) {\n this.headers.push(buf)\n } else {\n this.headers[len - 1] = Buffer.concat([this.headers[len - 1], buf])\n }\n\n this.trackHeader(buf.length)\n }\n\n onHeaderValue (buf) {\n let len = this.headers.length\n\n if ((len & 1) === 1) {\n this.headers.push(buf)\n len += 1\n } else {\n this.headers[len - 1] = Buffer.concat([this.headers[len - 1], buf])\n }\n\n const key = this.headers[len - 2]\n if (key.length === 10 && key.toString().toLowerCase() === 'keep-alive') {\n this.keepAlive += buf.toString()\n } else if (key.length === 10 && key.toString().toLowerCase() === 'connection') {\n this.connection += buf.toString()\n } else if (key.length === 14 && key.toString().toLowerCase() === 'content-length') {\n this.contentLength += buf.toString()\n }\n\n this.trackHeader(buf.length)\n }\n\n trackHeader (len) {\n this.headersSize += len\n if (this.headersSize >= this.headersMaxSize) {\n util.destroy(this.socket, new HeadersOverflowError())\n }\n }\n\n onUpgrade (head) {\n const { upgrade, client, socket, headers, statusCode } = this\n\n assert(upgrade)\n\n const request = client[kQueue][client[kRunningIdx]]\n assert(request)\n\n assert(!socket.destroyed)\n assert(socket === client[kSocket])\n assert(!this.paused)\n assert(request.upgrade || request.method === 'CONNECT')\n\n this.statusCode = null\n this.statusText = ''\n this.shouldKeepAlive = null\n\n assert(this.headers.length % 2 === 0)\n this.headers = []\n this.headersSize = 0\n\n socket.unshift(head)\n\n socket[kParser].destroy()\n socket[kParser] = null\n\n socket[kClient] = null\n socket[kError] = null\n socket\n .removeListener('error', onSocketError)\n .removeListener('readable', onSocketReadable)\n .removeListener('end', onSocketEnd)\n .removeListener('close', onSocketClose)\n\n client[kSocket] = null\n client[kQueue][client[kRunningIdx]++] = null\n client.emit('disconnect', client[kUrl], [client], new InformationalError('upgrade'))\n\n try {\n request.onUpgrade(statusCode, headers, socket)\n } catch (err) {\n util.destroy(socket, err)\n }\n\n resume(client)\n }\n\n onHeadersComplete (statusCode, upgrade, shouldKeepAlive) {\n const { client, socket, headers, statusText } = this\n\n /* istanbul ignore next: difficult to make a test case for */\n if (socket.destroyed) {\n return -1\n }\n\n const request = client[kQueue][client[kRunningIdx]]\n\n /* istanbul ignore next: difficult to make a test case for */\n if (!request) {\n return -1\n }\n\n assert(!this.upgrade)\n assert(this.statusCode < 200)\n\n if (statusCode === 100) {\n util.destroy(socket, new SocketError('bad response', util.getSocketInfo(socket)))\n return -1\n }\n\n /* this can only happen if server is misbehaving */\n if (upgrade && !request.upgrade) {\n util.destroy(socket, new SocketError('bad upgrade', util.getSocketInfo(socket)))\n return -1\n }\n\n assert.strictEqual(this.timeoutType, TIMEOUT_HEADERS)\n\n this.statusCode = statusCode\n this.shouldKeepAlive = (\n shouldKeepAlive ||\n // Override llhttp value which does not allow keepAlive for HEAD.\n (request.method === 'HEAD' && !socket[kReset] && this.connection.toLowerCase() === 'keep-alive')\n )\n\n if (this.statusCode >= 200) {\n const bodyTimeout = request.bodyTimeout != null\n ? request.bodyTimeout\n : client[kBodyTimeout]\n this.setTimeout(bodyTimeout, TIMEOUT_BODY)\n } else if (this.timeout) {\n // istanbul ignore else: only for jest\n if (this.timeout.refresh) {\n this.timeout.refresh()\n }\n }\n\n if (request.method === 'CONNECT') {\n assert(client[kRunning] === 1)\n this.upgrade = true\n return 2\n }\n\n if (upgrade) {\n assert(client[kRunning] === 1)\n this.upgrade = true\n return 2\n }\n\n assert(this.headers.length % 2 === 0)\n this.headers = []\n this.headersSize = 0\n\n if (this.shouldKeepAlive && client[kPipelining]) {\n const keepAliveTimeout = this.keepAlive ? util.parseKeepAliveTimeout(this.keepAlive) : null\n\n if (keepAliveTimeout != null) {\n const timeout = Math.min(\n keepAliveTimeout - client[kKeepAliveTimeoutThreshold],\n client[kKeepAliveMaxTimeout]\n )\n if (timeout <= 0) {\n socket[kReset] = true\n } else {\n client[kKeepAliveTimeoutValue] = timeout\n }\n } else {\n client[kKeepAliveTimeoutValue] = client[kKeepAliveDefaultTimeout]\n }\n } else {\n // Stop more requests from being dispatched.\n socket[kReset] = true\n }\n\n const pause = request.onHeaders(statusCode, headers, this.resume, statusText) === false\n\n if (request.aborted) {\n return -1\n }\n\n if (request.method === 'HEAD') {\n return 1\n }\n\n if (statusCode < 200) {\n return 1\n }\n\n if (socket[kBlocking]) {\n socket[kBlocking] = false\n resume(client)\n }\n\n return pause ? constants.ERROR.PAUSED : 0\n }\n\n onBody (buf) {\n const { client, socket, statusCode, maxResponseSize } = this\n\n if (socket.destroyed) {\n return -1\n }\n\n const request = client[kQueue][client[kRunningIdx]]\n assert(request)\n\n assert.strictEqual(this.timeoutType, TIMEOUT_BODY)\n if (this.timeout) {\n // istanbul ignore else: only for jest\n if (this.timeout.refresh) {\n this.timeout.refresh()\n }\n }\n\n assert(statusCode >= 200)\n\n if (maxResponseSize > -1 && this.bytesRead + buf.length > maxResponseSize) {\n util.destroy(socket, new ResponseExceededMaxSizeError())\n return -1\n }\n\n this.bytesRead += buf.length\n\n if (request.onData(buf) === false) {\n return constants.ERROR.PAUSED\n }\n }\n\n onMessageComplete () {\n const { client, socket, statusCode, upgrade, headers, contentLength, bytesRead, shouldKeepAlive } = this\n\n if (socket.destroyed && (!statusCode || shouldKeepAlive)) {\n return -1\n }\n\n if (upgrade) {\n return\n }\n\n const request = client[kQueue][client[kRunningIdx]]\n assert(request)\n\n assert(statusCode >= 100)\n\n this.statusCode = null\n this.statusText = ''\n this.bytesRead = 0\n this.contentLength = ''\n this.keepAlive = ''\n this.connection = ''\n\n assert(this.headers.length % 2 === 0)\n this.headers = []\n this.headersSize = 0\n\n if (statusCode < 200) {\n return\n }\n\n /* istanbul ignore next: should be handled by llhttp? */\n if (request.method !== 'HEAD' && contentLength && bytesRead !== parseInt(contentLength, 10)) {\n util.destroy(socket, new ResponseContentLengthMismatchError())\n return -1\n }\n\n request.onComplete(headers)\n\n client[kQueue][client[kRunningIdx]++] = null\n\n if (socket[kWriting]) {\n assert.strictEqual(client[kRunning], 0)\n // Response completed before request.\n util.destroy(socket, new InformationalError('reset'))\n return constants.ERROR.PAUSED\n } else if (!shouldKeepAlive) {\n util.destroy(socket, new InformationalError('reset'))\n return constants.ERROR.PAUSED\n } else if (socket[kReset] && client[kRunning] === 0) {\n // Destroy socket once all requests have completed.\n // The request at the tail of the pipeline is the one\n // that requested reset and no further requests should\n // have been queued since then.\n util.destroy(socket, new InformationalError('reset'))\n return constants.ERROR.PAUSED\n } else if (client[kPipelining] === 1) {\n // We must wait a full event loop cycle to reuse this socket to make sure\n // that non-spec compliant servers are not closing the connection even if they\n // said they won't.\n setImmediate(resume, client)\n } else {\n resume(client)\n }\n }\n}\n\nfunction onParserTimeout (parser) {\n const { socket, timeoutType, client } = parser\n\n /* istanbul ignore else */\n if (timeoutType === TIMEOUT_HEADERS) {\n if (!socket[kWriting] || socket.writableNeedDrain || client[kRunning] > 1) {\n assert(!parser.paused, 'cannot be paused while waiting for headers')\n util.destroy(socket, new HeadersTimeoutError())\n }\n } else if (timeoutType === TIMEOUT_BODY) {\n if (!parser.paused) {\n util.destroy(socket, new BodyTimeoutError())\n }\n } else if (timeoutType === TIMEOUT_IDLE) {\n assert(client[kRunning] === 0 && client[kKeepAliveTimeoutValue])\n util.destroy(socket, new InformationalError('socket idle timeout'))\n }\n}\n\nfunction onSocketReadable () {\n const { [kParser]: parser } = this\n if (parser) {\n parser.readMore()\n }\n}\n\nfunction onSocketError (err) {\n const { [kClient]: client, [kParser]: parser } = this\n\n assert(err.code !== 'ERR_TLS_CERT_ALTNAME_INVALID')\n\n if (client[kHTTPConnVersion] !== 'h2') {\n // On Mac OS, we get an ECONNRESET even if there is a full body to be forwarded\n // to the user.\n if (err.code === 'ECONNRESET' && parser.statusCode && !parser.shouldKeepAlive) {\n // We treat all incoming data so for as a valid response.\n parser.onMessageComplete()\n return\n }\n }\n\n this[kError] = err\n\n onError(this[kClient], err)\n}\n\nfunction onError (client, err) {\n if (\n client[kRunning] === 0 &&\n err.code !== 'UND_ERR_INFO' &&\n err.code !== 'UND_ERR_SOCKET'\n ) {\n // Error is not caused by running request and not a recoverable\n // socket error.\n\n assert(client[kPendingIdx] === client[kRunningIdx])\n\n const requests = client[kQueue].splice(client[kRunningIdx])\n for (let i = 0; i < requests.length; i++) {\n const request = requests[i]\n errorRequest(client, request, err)\n }\n assert(client[kSize] === 0)\n }\n}\n\nfunction onSocketEnd () {\n const { [kParser]: parser, [kClient]: client } = this\n\n if (client[kHTTPConnVersion] !== 'h2') {\n if (parser.statusCode && !parser.shouldKeepAlive) {\n // We treat all incoming data so far as a valid response.\n parser.onMessageComplete()\n return\n }\n }\n\n util.destroy(this, new SocketError('other side closed', util.getSocketInfo(this)))\n}\n\nfunction onSocketClose () {\n const { [kClient]: client, [kParser]: parser } = this\n\n if (client[kHTTPConnVersion] === 'h1' && parser) {\n if (!this[kError] && parser.statusCode && !parser.shouldKeepAlive) {\n // We treat all incoming data so far as a valid response.\n parser.onMessageComplete()\n }\n\n this[kParser].destroy()\n this[kParser] = null\n }\n\n const err = this[kError] || new SocketError('closed', util.getSocketInfo(this))\n\n client[kSocket] = null\n\n if (client.destroyed) {\n assert(client[kPending] === 0)\n\n // Fail entire queue.\n const requests = client[kQueue].splice(client[kRunningIdx])\n for (let i = 0; i < requests.length; i++) {\n const request = requests[i]\n errorRequest(client, request, err)\n }\n } else if (client[kRunning] > 0 && err.code !== 'UND_ERR_INFO') {\n // Fail head of pipeline.\n const request = client[kQueue][client[kRunningIdx]]\n client[kQueue][client[kRunningIdx]++] = null\n\n errorRequest(client, request, err)\n }\n\n client[kPendingIdx] = client[kRunningIdx]\n\n assert(client[kRunning] === 0)\n\n client.emit('disconnect', client[kUrl], [client], err)\n\n resume(client)\n}\n\nasync function connect (client) {\n assert(!client[kConnecting])\n assert(!client[kSocket])\n\n let { host, hostname, protocol, port } = client[kUrl]\n\n // Resolve ipv6\n if (hostname[0] === '[') {\n const idx = hostname.indexOf(']')\n\n assert(idx !== -1)\n const ip = hostname.substring(1, idx)\n\n assert(net.isIP(ip))\n hostname = ip\n }\n\n client[kConnecting] = true\n\n if (channels.beforeConnect.hasSubscribers) {\n channels.beforeConnect.publish({\n connectParams: {\n host,\n hostname,\n protocol,\n port,\n servername: client[kServerName],\n localAddress: client[kLocalAddress]\n },\n connector: client[kConnector]\n })\n }\n\n try {\n const socket = await new Promise((resolve, reject) => {\n client[kConnector]({\n host,\n hostname,\n protocol,\n port,\n servername: client[kServerName],\n localAddress: client[kLocalAddress]\n }, (err, socket) => {\n if (err) {\n reject(err)\n } else {\n resolve(socket)\n }\n })\n })\n\n if (client.destroyed) {\n util.destroy(socket.on('error', () => {}), new ClientDestroyedError())\n return\n }\n\n client[kConnecting] = false\n\n assert(socket)\n\n const isH2 = socket.alpnProtocol === 'h2'\n if (isH2) {\n if (!h2ExperimentalWarned) {\n h2ExperimentalWarned = true\n process.emitWarning('H2 support is experimental, expect them to change at any time.', {\n code: 'UNDICI-H2'\n })\n }\n\n const session = http2.connect(client[kUrl], {\n createConnection: () => socket,\n peerMaxConcurrentStreams: client[kHTTP2SessionState].maxConcurrentStreams\n })\n\n client[kHTTPConnVersion] = 'h2'\n session[kClient] = client\n session[kSocket] = socket\n session.on('error', onHttp2SessionError)\n session.on('frameError', onHttp2FrameError)\n session.on('end', onHttp2SessionEnd)\n session.on('goaway', onHTTP2GoAway)\n session.on('close', onSocketClose)\n session.unref()\n\n client[kHTTP2Session] = session\n socket[kHTTP2Session] = session\n } else {\n if (!llhttpInstance) {\n llhttpInstance = await llhttpPromise\n llhttpPromise = null\n }\n\n socket[kNoRef] = false\n socket[kWriting] = false\n socket[kReset] = false\n socket[kBlocking] = false\n socket[kParser] = new Parser(client, socket, llhttpInstance)\n }\n\n socket[kCounter] = 0\n socket[kMaxRequests] = client[kMaxRequests]\n socket[kClient] = client\n socket[kError] = null\n\n socket\n .on('error', onSocketError)\n .on('readable', onSocketReadable)\n .on('end', onSocketEnd)\n .on('close', onSocketClose)\n\n client[kSocket] = socket\n\n if (channels.connected.hasSubscribers) {\n channels.connected.publish({\n connectParams: {\n host,\n hostname,\n protocol,\n port,\n servername: client[kServerName],\n localAddress: client[kLocalAddress]\n },\n connector: client[kConnector],\n socket\n })\n }\n client.emit('connect', client[kUrl], [client])\n } catch (err) {\n if (client.destroyed) {\n return\n }\n\n client[kConnecting] = false\n\n if (channels.connectError.hasSubscribers) {\n channels.connectError.publish({\n connectParams: {\n host,\n hostname,\n protocol,\n port,\n servername: client[kServerName],\n localAddress: client[kLocalAddress]\n },\n connector: client[kConnector],\n error: err\n })\n }\n\n if (err.code === 'ERR_TLS_CERT_ALTNAME_INVALID') {\n assert(client[kRunning] === 0)\n while (client[kPending] > 0 && client[kQueue][client[kPendingIdx]].servername === client[kServerName]) {\n const request = client[kQueue][client[kPendingIdx]++]\n errorRequest(client, request, err)\n }\n } else {\n onError(client, err)\n }\n\n client.emit('connectionError', client[kUrl], [client], err)\n }\n\n resume(client)\n}\n\nfunction emitDrain (client) {\n client[kNeedDrain] = 0\n client.emit('drain', client[kUrl], [client])\n}\n\nfunction resume (client, sync) {\n if (client[kResuming] === 2) {\n return\n }\n\n client[kResuming] = 2\n\n _resume(client, sync)\n client[kResuming] = 0\n\n if (client[kRunningIdx] > 256) {\n client[kQueue].splice(0, client[kRunningIdx])\n client[kPendingIdx] -= client[kRunningIdx]\n client[kRunningIdx] = 0\n }\n}\n\nfunction _resume (client, sync) {\n while (true) {\n if (client.destroyed) {\n assert(client[kPending] === 0)\n return\n }\n\n if (client[kClosedResolve] && !client[kSize]) {\n client[kClosedResolve]()\n client[kClosedResolve] = null\n return\n }\n\n const socket = client[kSocket]\n\n if (socket && !socket.destroyed && socket.alpnProtocol !== 'h2') {\n if (client[kSize] === 0) {\n if (!socket[kNoRef] && socket.unref) {\n socket.unref()\n socket[kNoRef] = true\n }\n } else if (socket[kNoRef] && socket.ref) {\n socket.ref()\n socket[kNoRef] = false\n }\n\n if (client[kSize] === 0) {\n if (socket[kParser].timeoutType !== TIMEOUT_IDLE) {\n socket[kParser].setTimeout(client[kKeepAliveTimeoutValue], TIMEOUT_IDLE)\n }\n } else if (client[kRunning] > 0 && socket[kParser].statusCode < 200) {\n if (socket[kParser].timeoutType !== TIMEOUT_HEADERS) {\n const request = client[kQueue][client[kRunningIdx]]\n const headersTimeout = request.headersTimeout != null\n ? request.headersTimeout\n : client[kHeadersTimeout]\n socket[kParser].setTimeout(headersTimeout, TIMEOUT_HEADERS)\n }\n }\n }\n\n if (client[kBusy]) {\n client[kNeedDrain] = 2\n } else if (client[kNeedDrain] === 2) {\n if (sync) {\n client[kNeedDrain] = 1\n process.nextTick(emitDrain, client)\n } else {\n emitDrain(client)\n }\n continue\n }\n\n if (client[kPending] === 0) {\n return\n }\n\n if (client[kRunning] >= (client[kPipelining] || 1)) {\n return\n }\n\n const request = client[kQueue][client[kPendingIdx]]\n\n if (client[kUrl].protocol === 'https:' && client[kServerName] !== request.servername) {\n if (client[kRunning] > 0) {\n return\n }\n\n client[kServerName] = request.servername\n\n if (socket && socket.servername !== request.servername) {\n util.destroy(socket, new InformationalError('servername changed'))\n return\n }\n }\n\n if (client[kConnecting]) {\n return\n }\n\n if (!socket && !client[kHTTP2Session]) {\n connect(client)\n return\n }\n\n if (socket.destroyed || socket[kWriting] || socket[kReset] || socket[kBlocking]) {\n return\n }\n\n if (client[kRunning] > 0 && !request.idempotent) {\n // Non-idempotent request cannot be retried.\n // Ensure that no other requests are inflight and\n // could cause failure.\n return\n }\n\n if (client[kRunning] > 0 && (request.upgrade || request.method === 'CONNECT')) {\n // Don't dispatch an upgrade until all preceding requests have completed.\n // A misbehaving server might upgrade the connection before all pipelined\n // request has completed.\n return\n }\n\n if (client[kRunning] > 0 && util.bodyLength(request.body) !== 0 &&\n (util.isStream(request.body) || util.isAsyncIterable(request.body))) {\n // Request with stream or iterator body can error while other requests\n // are inflight and indirectly error those as well.\n // Ensure this doesn't happen by waiting for inflight\n // to complete before dispatching.\n\n // Request with stream or iterator body cannot be retried.\n // Ensure that no other requests are inflight and\n // could cause failure.\n return\n }\n\n if (!request.aborted && write(client, request)) {\n client[kPendingIdx]++\n } else {\n client[kQueue].splice(client[kPendingIdx], 1)\n }\n }\n}\n\n// https://www.rfc-editor.org/rfc/rfc7230#section-3.3.2\nfunction shouldSendContentLength (method) {\n return method !== 'GET' && method !== 'HEAD' && method !== 'OPTIONS' && method !== 'TRACE' && method !== 'CONNECT'\n}\n\nfunction write (client, request) {\n if (client[kHTTPConnVersion] === 'h2') {\n writeH2(client, client[kHTTP2Session], request)\n return\n }\n\n const { body, method, path, host, upgrade, headers, blocking, reset } = request\n\n // https://tools.ietf.org/html/rfc7231#section-4.3.1\n // https://tools.ietf.org/html/rfc7231#section-4.3.2\n // https://tools.ietf.org/html/rfc7231#section-4.3.5\n\n // Sending a payload body on a request that does not\n // expect it can cause undefined behavior on some\n // servers and corrupt connection state. Do not\n // re-use the connection for further requests.\n\n const expectsPayload = (\n method === 'PUT' ||\n method === 'POST' ||\n method === 'PATCH'\n )\n\n if (body && typeof body.read === 'function') {\n // Try to read EOF in order to get length.\n body.read(0)\n }\n\n const bodyLength = util.bodyLength(body)\n\n let contentLength = bodyLength\n\n if (contentLength === null) {\n contentLength = request.contentLength\n }\n\n if (contentLength === 0 && !expectsPayload) {\n // https://tools.ietf.org/html/rfc7230#section-3.3.2\n // A user agent SHOULD NOT send a Content-Length header field when\n // the request message does not contain a payload body and the method\n // semantics do not anticipate such a body.\n\n contentLength = null\n }\n\n // https://github.com/nodejs/undici/issues/2046\n // A user agent may send a Content-Length header with 0 value, this should be allowed.\n if (shouldSendContentLength(method) && contentLength > 0 && request.contentLength !== null && request.contentLength !== contentLength) {\n if (client[kStrictContentLength]) {\n errorRequest(client, request, new RequestContentLengthMismatchError())\n return false\n }\n\n process.emitWarning(new RequestContentLengthMismatchError())\n }\n\n const socket = client[kSocket]\n\n try {\n request.onConnect((err) => {\n if (request.aborted || request.completed) {\n return\n }\n\n errorRequest(client, request, err || new RequestAbortedError())\n\n util.destroy(socket, new InformationalError('aborted'))\n })\n } catch (err) {\n errorRequest(client, request, err)\n }\n\n if (request.aborted) {\n return false\n }\n\n if (method === 'HEAD') {\n // https://github.com/mcollina/undici/issues/258\n // Close after a HEAD request to interop with misbehaving servers\n // that may send a body in the response.\n\n socket[kReset] = true\n }\n\n if (upgrade || method === 'CONNECT') {\n // On CONNECT or upgrade, block pipeline from dispatching further\n // requests on this connection.\n\n socket[kReset] = true\n }\n\n if (reset != null) {\n socket[kReset] = reset\n }\n\n if (client[kMaxRequests] && socket[kCounter]++ >= client[kMaxRequests]) {\n socket[kReset] = true\n }\n\n if (blocking) {\n socket[kBlocking] = true\n }\n\n let header = `${method} ${path} HTTP/1.1\\r\\n`\n\n if (typeof host === 'string') {\n header += `host: ${host}\\r\\n`\n } else {\n header += client[kHostHeader]\n }\n\n if (upgrade) {\n header += `connection: upgrade\\r\\nupgrade: ${upgrade}\\r\\n`\n } else if (client[kPipelining] && !socket[kReset]) {\n header += 'connection: keep-alive\\r\\n'\n } else {\n header += 'connection: close\\r\\n'\n }\n\n if (headers) {\n header += headers\n }\n\n if (channels.sendHeaders.hasSubscribers) {\n channels.sendHeaders.publish({ request, headers: header, socket })\n }\n\n /* istanbul ignore else: assertion */\n if (!body || bodyLength === 0) {\n if (contentLength === 0) {\n socket.write(`${header}content-length: 0\\r\\n\\r\\n`, 'latin1')\n } else {\n assert(contentLength === null, 'no body must not have content length')\n socket.write(`${header}\\r\\n`, 'latin1')\n }\n request.onRequestSent()\n } else if (util.isBuffer(body)) {\n assert(contentLength === body.byteLength, 'buffer body must have content length')\n\n socket.cork()\n socket.write(`${header}content-length: ${contentLength}\\r\\n\\r\\n`, 'latin1')\n socket.write(body)\n socket.uncork()\n request.onBodySent(body)\n request.onRequestSent()\n if (!expectsPayload) {\n socket[kReset] = true\n }\n } else if (util.isBlobLike(body)) {\n if (typeof body.stream === 'function') {\n writeIterable({ body: body.stream(), client, request, socket, contentLength, header, expectsPayload })\n } else {\n writeBlob({ body, client, request, socket, contentLength, header, expectsPayload })\n }\n } else if (util.isStream(body)) {\n writeStream({ body, client, request, socket, contentLength, header, expectsPayload })\n } else if (util.isIterable(body)) {\n writeIterable({ body, client, request, socket, contentLength, header, expectsPayload })\n } else {\n assert(false)\n }\n\n return true\n}\n\nfunction writeH2 (client, session, request) {\n const { body, method, path, host, upgrade, expectContinue, signal, headers: reqHeaders } = request\n\n let headers\n if (typeof reqHeaders === 'string') headers = Request[kHTTP2CopyHeaders](reqHeaders.trim())\n else headers = reqHeaders\n\n if (upgrade) {\n errorRequest(client, request, new Error('Upgrade not supported for H2'))\n return false\n }\n\n try {\n // TODO(HTTP/2): Should we call onConnect immediately or on stream ready event?\n request.onConnect((err) => {\n if (request.aborted || request.completed) {\n return\n }\n\n errorRequest(client, request, err || new RequestAbortedError())\n })\n } catch (err) {\n errorRequest(client, request, err)\n }\n\n if (request.aborted) {\n return false\n }\n\n /** @type {import('node:http2').ClientHttp2Stream} */\n let stream\n const h2State = client[kHTTP2SessionState]\n\n headers[HTTP2_HEADER_AUTHORITY] = host || client[kHost]\n headers[HTTP2_HEADER_METHOD] = method\n\n if (method === 'CONNECT') {\n session.ref()\n // we are already connected, streams are pending, first request\n // will create a new stream. We trigger a request to create the stream and wait until\n // `ready` event is triggered\n // We disabled endStream to allow the user to write to the stream\n stream = session.request(headers, { endStream: false, signal })\n\n if (stream.id && !stream.pending) {\n request.onUpgrade(null, null, stream)\n ++h2State.openStreams\n } else {\n stream.once('ready', () => {\n request.onUpgrade(null, null, stream)\n ++h2State.openStreams\n })\n }\n\n stream.once('close', () => {\n h2State.openStreams -= 1\n // TODO(HTTP/2): unref only if current streams count is 0\n if (h2State.openStreams === 0) session.unref()\n })\n\n return true\n }\n\n // https://tools.ietf.org/html/rfc7540#section-8.3\n // :path and :scheme headers must be omited when sending CONNECT\n\n headers[HTTP2_HEADER_PATH] = path\n headers[HTTP2_HEADER_SCHEME] = 'https'\n\n // https://tools.ietf.org/html/rfc7231#section-4.3.1\n // https://tools.ietf.org/html/rfc7231#section-4.3.2\n // https://tools.ietf.org/html/rfc7231#section-4.3.5\n\n // Sending a payload body on a request that does not\n // expect it can cause undefined behavior on some\n // servers and corrupt connection state. Do not\n // re-use the connection for further requests.\n\n const expectsPayload = (\n method === 'PUT' ||\n method === 'POST' ||\n method === 'PATCH'\n )\n\n if (body && typeof body.read === 'function') {\n // Try to read EOF in order to get length.\n body.read(0)\n }\n\n let contentLength = util.bodyLength(body)\n\n if (contentLength == null) {\n contentLength = request.contentLength\n }\n\n if (contentLength === 0 || !expectsPayload) {\n // https://tools.ietf.org/html/rfc7230#section-3.3.2\n // A user agent SHOULD NOT send a Content-Length header field when\n // the request message does not contain a payload body and the method\n // semantics do not anticipate such a body.\n\n contentLength = null\n }\n\n // https://github.com/nodejs/undici/issues/2046\n // A user agent may send a Content-Length header with 0 value, this should be allowed.\n if (shouldSendContentLength(method) && contentLength > 0 && request.contentLength != null && request.contentLength !== contentLength) {\n if (client[kStrictContentLength]) {\n errorRequest(client, request, new RequestContentLengthMismatchError())\n return false\n }\n\n process.emitWarning(new RequestContentLengthMismatchError())\n }\n\n if (contentLength != null) {\n assert(body, 'no body must not have content length')\n headers[HTTP2_HEADER_CONTENT_LENGTH] = `${contentLength}`\n }\n\n session.ref()\n\n const shouldEndStream = method === 'GET' || method === 'HEAD'\n if (expectContinue) {\n headers[HTTP2_HEADER_EXPECT] = '100-continue'\n stream = session.request(headers, { endStream: shouldEndStream, signal })\n\n stream.once('continue', writeBodyH2)\n } else {\n stream = session.request(headers, {\n endStream: shouldEndStream,\n signal\n })\n writeBodyH2()\n }\n\n // Increment counter as we have new several streams open\n ++h2State.openStreams\n\n stream.once('response', headers => {\n const { [HTTP2_HEADER_STATUS]: statusCode, ...realHeaders } = headers\n\n if (request.onHeaders(Number(statusCode), realHeaders, stream.resume.bind(stream), '') === false) {\n stream.pause()\n }\n })\n\n stream.once('end', () => {\n request.onComplete([])\n })\n\n stream.on('data', (chunk) => {\n if (request.onData(chunk) === false) {\n stream.pause()\n }\n })\n\n stream.once('close', () => {\n h2State.openStreams -= 1\n // TODO(HTTP/2): unref only if current streams count is 0\n if (h2State.openStreams === 0) {\n session.unref()\n }\n })\n\n stream.once('error', function (err) {\n if (client[kHTTP2Session] && !client[kHTTP2Session].destroyed && !this.closed && !this.destroyed) {\n h2State.streams -= 1\n util.destroy(stream, err)\n }\n })\n\n stream.once('frameError', (type, code) => {\n const err = new InformationalError(`HTTP/2: \"frameError\" received - type ${type}, code ${code}`)\n errorRequest(client, request, err)\n\n if (client[kHTTP2Session] && !client[kHTTP2Session].destroyed && !this.closed && !this.destroyed) {\n h2State.streams -= 1\n util.destroy(stream, err)\n }\n })\n\n // stream.on('aborted', () => {\n // // TODO(HTTP/2): Support aborted\n // })\n\n // stream.on('timeout', () => {\n // // TODO(HTTP/2): Support timeout\n // })\n\n // stream.on('push', headers => {\n // // TODO(HTTP/2): Suppor push\n // })\n\n // stream.on('trailers', headers => {\n // // TODO(HTTP/2): Support trailers\n // })\n\n return true\n\n function writeBodyH2 () {\n /* istanbul ignore else: assertion */\n if (!body) {\n request.onRequestSent()\n } else if (util.isBuffer(body)) {\n assert(contentLength === body.byteLength, 'buffer body must have content length')\n stream.cork()\n stream.write(body)\n stream.uncork()\n stream.end()\n request.onBodySent(body)\n request.onRequestSent()\n } else if (util.isBlobLike(body)) {\n if (typeof body.stream === 'function') {\n writeIterable({\n client,\n request,\n contentLength,\n h2stream: stream,\n expectsPayload,\n body: body.stream(),\n socket: client[kSocket],\n header: ''\n })\n } else {\n writeBlob({\n body,\n client,\n request,\n contentLength,\n expectsPayload,\n h2stream: stream,\n header: '',\n socket: client[kSocket]\n })\n }\n } else if (util.isStream(body)) {\n writeStream({\n body,\n client,\n request,\n contentLength,\n expectsPayload,\n socket: client[kSocket],\n h2stream: stream,\n header: ''\n })\n } else if (util.isIterable(body)) {\n writeIterable({\n body,\n client,\n request,\n contentLength,\n expectsPayload,\n header: '',\n h2stream: stream,\n socket: client[kSocket]\n })\n } else {\n assert(false)\n }\n }\n}\n\nfunction writeStream ({ h2stream, body, client, request, socket, contentLength, header, expectsPayload }) {\n assert(contentLength !== 0 || client[kRunning] === 0, 'stream body cannot be pipelined')\n\n if (client[kHTTPConnVersion] === 'h2') {\n // For HTTP/2, is enough to pipe the stream\n const pipe = pipeline(\n body,\n h2stream,\n (err) => {\n if (err) {\n util.destroy(body, err)\n util.destroy(h2stream, err)\n } else {\n request.onRequestSent()\n }\n }\n )\n\n pipe.on('data', onPipeData)\n pipe.once('end', () => {\n pipe.removeListener('data', onPipeData)\n util.destroy(pipe)\n })\n\n function onPipeData (chunk) {\n request.onBodySent(chunk)\n }\n\n return\n }\n\n let finished = false\n\n const writer = new AsyncWriter({ socket, request, contentLength, client, expectsPayload, header })\n\n const onData = function (chunk) {\n if (finished) {\n return\n }\n\n try {\n if (!writer.write(chunk) && this.pause) {\n this.pause()\n }\n } catch (err) {\n util.destroy(this, err)\n }\n }\n const onDrain = function () {\n if (finished) {\n return\n }\n\n if (body.resume) {\n body.resume()\n }\n }\n const onAbort = function () {\n if (finished) {\n return\n }\n const err = new RequestAbortedError()\n queueMicrotask(() => onFinished(err))\n }\n const onFinished = function (err) {\n if (finished) {\n return\n }\n\n finished = true\n\n assert(socket.destroyed || (socket[kWriting] && client[kRunning] <= 1))\n\n socket\n .off('drain', onDrain)\n .off('error', onFinished)\n\n body\n .removeListener('data', onData)\n .removeListener('end', onFinished)\n .removeListener('error', onFinished)\n .removeListener('close', onAbort)\n\n if (!err) {\n try {\n writer.end()\n } catch (er) {\n err = er\n }\n }\n\n writer.destroy(err)\n\n if (err && (err.code !== 'UND_ERR_INFO' || err.message !== 'reset')) {\n util.destroy(body, err)\n } else {\n util.destroy(body)\n }\n }\n\n body\n .on('data', onData)\n .on('end', onFinished)\n .on('error', onFinished)\n .on('close', onAbort)\n\n if (body.resume) {\n body.resume()\n }\n\n socket\n .on('drain', onDrain)\n .on('error', onFinished)\n}\n\nasync function writeBlob ({ h2stream, body, client, request, socket, contentLength, header, expectsPayload }) {\n assert(contentLength === body.size, 'blob body must have content length')\n\n const isH2 = client[kHTTPConnVersion] === 'h2'\n try {\n if (contentLength != null && contentLength !== body.size) {\n throw new RequestContentLengthMismatchError()\n }\n\n const buffer = Buffer.from(await body.arrayBuffer())\n\n if (isH2) {\n h2stream.cork()\n h2stream.write(buffer)\n h2stream.uncork()\n } else {\n socket.cork()\n socket.write(`${header}content-length: ${contentLength}\\r\\n\\r\\n`, 'latin1')\n socket.write(buffer)\n socket.uncork()\n }\n\n request.onBodySent(buffer)\n request.onRequestSent()\n\n if (!expectsPayload) {\n socket[kReset] = true\n }\n\n resume(client)\n } catch (err) {\n util.destroy(isH2 ? h2stream : socket, err)\n }\n}\n\nasync function writeIterable ({ h2stream, body, client, request, socket, contentLength, header, expectsPayload }) {\n assert(contentLength !== 0 || client[kRunning] === 0, 'iterator body cannot be pipelined')\n\n let callback = null\n function onDrain () {\n if (callback) {\n const cb = callback\n callback = null\n cb()\n }\n }\n\n const waitForDrain = () => new Promise((resolve, reject) => {\n assert(callback === null)\n\n if (socket[kError]) {\n reject(socket[kError])\n } else {\n callback = resolve\n }\n })\n\n if (client[kHTTPConnVersion] === 'h2') {\n h2stream\n .on('close', onDrain)\n .on('drain', onDrain)\n\n try {\n // It's up to the user to somehow abort the async iterable.\n for await (const chunk of body) {\n if (socket[kError]) {\n throw socket[kError]\n }\n\n const res = h2stream.write(chunk)\n request.onBodySent(chunk)\n if (!res) {\n await waitForDrain()\n }\n }\n } catch (err) {\n h2stream.destroy(err)\n } finally {\n request.onRequestSent()\n h2stream.end()\n h2stream\n .off('close', onDrain)\n .off('drain', onDrain)\n }\n\n return\n }\n\n socket\n .on('close', onDrain)\n .on('drain', onDrain)\n\n const writer = new AsyncWriter({ socket, request, contentLength, client, expectsPayload, header })\n try {\n // It's up to the user to somehow abort the async iterable.\n for await (const chunk of body) {\n if (socket[kError]) {\n throw socket[kError]\n }\n\n if (!writer.write(chunk)) {\n await waitForDrain()\n }\n }\n\n writer.end()\n } catch (err) {\n writer.destroy(err)\n } finally {\n socket\n .off('close', onDrain)\n .off('drain', onDrain)\n }\n}\n\nclass AsyncWriter {\n constructor ({ socket, request, contentLength, client, expectsPayload, header }) {\n this.socket = socket\n this.request = request\n this.contentLength = contentLength\n this.client = client\n this.bytesWritten = 0\n this.expectsPayload = expectsPayload\n this.header = header\n\n socket[kWriting] = true\n }\n\n write (chunk) {\n const { socket, request, contentLength, client, bytesWritten, expectsPayload, header } = this\n\n if (socket[kError]) {\n throw socket[kError]\n }\n\n if (socket.destroyed) {\n return false\n }\n\n const len = Buffer.byteLength(chunk)\n if (!len) {\n return true\n }\n\n // We should defer writing chunks.\n if (contentLength !== null && bytesWritten + len > contentLength) {\n if (client[kStrictContentLength]) {\n throw new RequestContentLengthMismatchError()\n }\n\n process.emitWarning(new RequestContentLengthMismatchError())\n }\n\n socket.cork()\n\n if (bytesWritten === 0) {\n if (!expectsPayload) {\n socket[kReset] = true\n }\n\n if (contentLength === null) {\n socket.write(`${header}transfer-encoding: chunked\\r\\n`, 'latin1')\n } else {\n socket.write(`${header}content-length: ${contentLength}\\r\\n\\r\\n`, 'latin1')\n }\n }\n\n if (contentLength === null) {\n socket.write(`\\r\\n${len.toString(16)}\\r\\n`, 'latin1')\n }\n\n this.bytesWritten += len\n\n const ret = socket.write(chunk)\n\n socket.uncork()\n\n request.onBodySent(chunk)\n\n if (!ret) {\n if (socket[kParser].timeout && socket[kParser].timeoutType === TIMEOUT_HEADERS) {\n // istanbul ignore else: only for jest\n if (socket[kParser].timeout.refresh) {\n socket[kParser].timeout.refresh()\n }\n }\n }\n\n return ret\n }\n\n end () {\n const { socket, contentLength, client, bytesWritten, expectsPayload, header, request } = this\n request.onRequestSent()\n\n socket[kWriting] = false\n\n if (socket[kError]) {\n throw socket[kError]\n }\n\n if (socket.destroyed) {\n return\n }\n\n if (bytesWritten === 0) {\n if (expectsPayload) {\n // https://tools.ietf.org/html/rfc7230#section-3.3.2\n // A user agent SHOULD send a Content-Length in a request message when\n // no Transfer-Encoding is sent and the request method defines a meaning\n // for an enclosed payload body.\n\n socket.write(`${header}content-length: 0\\r\\n\\r\\n`, 'latin1')\n } else {\n socket.write(`${header}\\r\\n`, 'latin1')\n }\n } else if (contentLength === null) {\n socket.write('\\r\\n0\\r\\n\\r\\n', 'latin1')\n }\n\n if (contentLength !== null && bytesWritten !== contentLength) {\n if (client[kStrictContentLength]) {\n throw new RequestContentLengthMismatchError()\n } else {\n process.emitWarning(new RequestContentLengthMismatchError())\n }\n }\n\n if (socket[kParser].timeout && socket[kParser].timeoutType === TIMEOUT_HEADERS) {\n // istanbul ignore else: only for jest\n if (socket[kParser].timeout.refresh) {\n socket[kParser].timeout.refresh()\n }\n }\n\n resume(client)\n }\n\n destroy (err) {\n const { socket, client } = this\n\n socket[kWriting] = false\n\n if (err) {\n assert(client[kRunning] <= 1, 'pipeline should only contain this request')\n util.destroy(socket, err)\n }\n }\n}\n\nfunction errorRequest (client, request, err) {\n try {\n request.onError(err)\n assert(request.aborted)\n } catch (err) {\n client.emit('error', err)\n }\n}\n\nmodule.exports = Client\n","'use strict'\n\n/* istanbul ignore file: only for Node 12 */\n\nconst { kConnected, kSize } = require('../core/symbols')\n\nclass CompatWeakRef {\n constructor (value) {\n this.value = value\n }\n\n deref () {\n return this.value[kConnected] === 0 && this.value[kSize] === 0\n ? undefined\n : this.value\n }\n}\n\nclass CompatFinalizer {\n constructor (finalizer) {\n this.finalizer = finalizer\n }\n\n register (dispatcher, key) {\n if (dispatcher.on) {\n dispatcher.on('disconnect', () => {\n if (dispatcher[kConnected] === 0 && dispatcher[kSize] === 0) {\n this.finalizer(key)\n }\n })\n }\n }\n}\n\nmodule.exports = function () {\n // FIXME: remove workaround when the Node bug is fixed\n // https://github.com/nodejs/node/issues/49344#issuecomment-1741776308\n if (process.env.NODE_V8_COVERAGE) {\n return {\n WeakRef: CompatWeakRef,\n FinalizationRegistry: CompatFinalizer\n }\n }\n return {\n WeakRef: global.WeakRef || CompatWeakRef,\n FinalizationRegistry: global.FinalizationRegistry || CompatFinalizer\n }\n}\n","'use strict'\n\n// https://wicg.github.io/cookie-store/#cookie-maximum-attribute-value-size\nconst maxAttributeValueSize = 1024\n\n// https://wicg.github.io/cookie-store/#cookie-maximum-name-value-pair-size\nconst maxNameValuePairSize = 4096\n\nmodule.exports = {\n maxAttributeValueSize,\n maxNameValuePairSize\n}\n","'use strict'\n\nconst { parseSetCookie } = require('./parse')\nconst { stringify } = require('./util')\nconst { webidl } = require('../fetch/webidl')\nconst { Headers } = require('../fetch/headers')\n\n/**\n * @typedef {Object} Cookie\n * @property {string} name\n * @property {string} value\n * @property {Date|number|undefined} expires\n * @property {number|undefined} maxAge\n * @property {string|undefined} domain\n * @property {string|undefined} path\n * @property {boolean|undefined} secure\n * @property {boolean|undefined} httpOnly\n * @property {'Strict'|'Lax'|'None'} sameSite\n * @property {string[]} unparsed\n */\n\n/**\n * @param {Headers} headers\n * @returns {Record}\n */\nfunction getCookies (headers) {\n webidl.argumentLengthCheck(arguments, 1, { header: 'getCookies' })\n\n webidl.brandCheck(headers, Headers, { strict: false })\n\n const cookie = headers.get('cookie')\n const out = {}\n\n if (!cookie) {\n return out\n }\n\n for (const piece of cookie.split(';')) {\n const [name, ...value] = piece.split('=')\n\n out[name.trim()] = value.join('=')\n }\n\n return out\n}\n\n/**\n * @param {Headers} headers\n * @param {string} name\n * @param {{ path?: string, domain?: string }|undefined} attributes\n * @returns {void}\n */\nfunction deleteCookie (headers, name, attributes) {\n webidl.argumentLengthCheck(arguments, 2, { header: 'deleteCookie' })\n\n webidl.brandCheck(headers, Headers, { strict: false })\n\n name = webidl.converters.DOMString(name)\n attributes = webidl.converters.DeleteCookieAttributes(attributes)\n\n // Matches behavior of\n // https://github.com/denoland/deno_std/blob/63827b16330b82489a04614027c33b7904e08be5/http/cookie.ts#L278\n setCookie(headers, {\n name,\n value: '',\n expires: new Date(0),\n ...attributes\n })\n}\n\n/**\n * @param {Headers} headers\n * @returns {Cookie[]}\n */\nfunction getSetCookies (headers) {\n webidl.argumentLengthCheck(arguments, 1, { header: 'getSetCookies' })\n\n webidl.brandCheck(headers, Headers, { strict: false })\n\n const cookies = headers.getSetCookie()\n\n if (!cookies) {\n return []\n }\n\n return cookies.map((pair) => parseSetCookie(pair))\n}\n\n/**\n * @param {Headers} headers\n * @param {Cookie} cookie\n * @returns {void}\n */\nfunction setCookie (headers, cookie) {\n webidl.argumentLengthCheck(arguments, 2, { header: 'setCookie' })\n\n webidl.brandCheck(headers, Headers, { strict: false })\n\n cookie = webidl.converters.Cookie(cookie)\n\n const str = stringify(cookie)\n\n if (str) {\n headers.append('Set-Cookie', stringify(cookie))\n }\n}\n\nwebidl.converters.DeleteCookieAttributes = webidl.dictionaryConverter([\n {\n converter: webidl.nullableConverter(webidl.converters.DOMString),\n key: 'path',\n defaultValue: null\n },\n {\n converter: webidl.nullableConverter(webidl.converters.DOMString),\n key: 'domain',\n defaultValue: null\n }\n])\n\nwebidl.converters.Cookie = webidl.dictionaryConverter([\n {\n converter: webidl.converters.DOMString,\n key: 'name'\n },\n {\n converter: webidl.converters.DOMString,\n key: 'value'\n },\n {\n converter: webidl.nullableConverter((value) => {\n if (typeof value === 'number') {\n return webidl.converters['unsigned long long'](value)\n }\n\n return new Date(value)\n }),\n key: 'expires',\n defaultValue: null\n },\n {\n converter: webidl.nullableConverter(webidl.converters['long long']),\n key: 'maxAge',\n defaultValue: null\n },\n {\n converter: webidl.nullableConverter(webidl.converters.DOMString),\n key: 'domain',\n defaultValue: null\n },\n {\n converter: webidl.nullableConverter(webidl.converters.DOMString),\n key: 'path',\n defaultValue: null\n },\n {\n converter: webidl.nullableConverter(webidl.converters.boolean),\n key: 'secure',\n defaultValue: null\n },\n {\n converter: webidl.nullableConverter(webidl.converters.boolean),\n key: 'httpOnly',\n defaultValue: null\n },\n {\n converter: webidl.converters.USVString,\n key: 'sameSite',\n allowedValues: ['Strict', 'Lax', 'None']\n },\n {\n converter: webidl.sequenceConverter(webidl.converters.DOMString),\n key: 'unparsed',\n defaultValue: []\n }\n])\n\nmodule.exports = {\n getCookies,\n deleteCookie,\n getSetCookies,\n setCookie\n}\n","'use strict'\n\nconst { maxNameValuePairSize, maxAttributeValueSize } = require('./constants')\nconst { isCTLExcludingHtab } = require('./util')\nconst { collectASequenceOfCodePointsFast } = require('../fetch/dataURL')\nconst assert = require('assert')\n\n/**\n * @description Parses the field-value attributes of a set-cookie header string.\n * @see https://datatracker.ietf.org/doc/html/draft-ietf-httpbis-rfc6265bis#section-5.4\n * @param {string} header\n * @returns if the header is invalid, null will be returned\n */\nfunction parseSetCookie (header) {\n // 1. If the set-cookie-string contains a %x00-08 / %x0A-1F / %x7F\n // character (CTL characters excluding HTAB): Abort these steps and\n // ignore the set-cookie-string entirely.\n if (isCTLExcludingHtab(header)) {\n return null\n }\n\n let nameValuePair = ''\n let unparsedAttributes = ''\n let name = ''\n let value = ''\n\n // 2. If the set-cookie-string contains a %x3B (\";\") character:\n if (header.includes(';')) {\n // 1. The name-value-pair string consists of the characters up to,\n // but not including, the first %x3B (\";\"), and the unparsed-\n // attributes consist of the remainder of the set-cookie-string\n // (including the %x3B (\";\") in question).\n const position = { position: 0 }\n\n nameValuePair = collectASequenceOfCodePointsFast(';', header, position)\n unparsedAttributes = header.slice(position.position)\n } else {\n // Otherwise:\n\n // 1. The name-value-pair string consists of all the characters\n // contained in the set-cookie-string, and the unparsed-\n // attributes is the empty string.\n nameValuePair = header\n }\n\n // 3. If the name-value-pair string lacks a %x3D (\"=\") character, then\n // the name string is empty, and the value string is the value of\n // name-value-pair.\n if (!nameValuePair.includes('=')) {\n value = nameValuePair\n } else {\n // Otherwise, the name string consists of the characters up to, but\n // not including, the first %x3D (\"=\") character, and the (possibly\n // empty) value string consists of the characters after the first\n // %x3D (\"=\") character.\n const position = { position: 0 }\n name = collectASequenceOfCodePointsFast(\n '=',\n nameValuePair,\n position\n )\n value = nameValuePair.slice(position.position + 1)\n }\n\n // 4. Remove any leading or trailing WSP characters from the name\n // string and the value string.\n name = name.trim()\n value = value.trim()\n\n // 5. If the sum of the lengths of the name string and the value string\n // is more than 4096 octets, abort these steps and ignore the set-\n // cookie-string entirely.\n if (name.length + value.length > maxNameValuePairSize) {\n return null\n }\n\n // 6. The cookie-name is the name string, and the cookie-value is the\n // value string.\n return {\n name, value, ...parseUnparsedAttributes(unparsedAttributes)\n }\n}\n\n/**\n * Parses the remaining attributes of a set-cookie header\n * @see https://datatracker.ietf.org/doc/html/draft-ietf-httpbis-rfc6265bis#section-5.4\n * @param {string} unparsedAttributes\n * @param {[Object.]={}} cookieAttributeList\n */\nfunction parseUnparsedAttributes (unparsedAttributes, cookieAttributeList = {}) {\n // 1. If the unparsed-attributes string is empty, skip the rest of\n // these steps.\n if (unparsedAttributes.length === 0) {\n return cookieAttributeList\n }\n\n // 2. Discard the first character of the unparsed-attributes (which\n // will be a %x3B (\";\") character).\n assert(unparsedAttributes[0] === ';')\n unparsedAttributes = unparsedAttributes.slice(1)\n\n let cookieAv = ''\n\n // 3. If the remaining unparsed-attributes contains a %x3B (\";\")\n // character:\n if (unparsedAttributes.includes(';')) {\n // 1. Consume the characters of the unparsed-attributes up to, but\n // not including, the first %x3B (\";\") character.\n cookieAv = collectASequenceOfCodePointsFast(\n ';',\n unparsedAttributes,\n { position: 0 }\n )\n unparsedAttributes = unparsedAttributes.slice(cookieAv.length)\n } else {\n // Otherwise:\n\n // 1. Consume the remainder of the unparsed-attributes.\n cookieAv = unparsedAttributes\n unparsedAttributes = ''\n }\n\n // Let the cookie-av string be the characters consumed in this step.\n\n let attributeName = ''\n let attributeValue = ''\n\n // 4. If the cookie-av string contains a %x3D (\"=\") character:\n if (cookieAv.includes('=')) {\n // 1. The (possibly empty) attribute-name string consists of the\n // characters up to, but not including, the first %x3D (\"=\")\n // character, and the (possibly empty) attribute-value string\n // consists of the characters after the first %x3D (\"=\")\n // character.\n const position = { position: 0 }\n\n attributeName = collectASequenceOfCodePointsFast(\n '=',\n cookieAv,\n position\n )\n attributeValue = cookieAv.slice(position.position + 1)\n } else {\n // Otherwise:\n\n // 1. The attribute-name string consists of the entire cookie-av\n // string, and the attribute-value string is empty.\n attributeName = cookieAv\n }\n\n // 5. Remove any leading or trailing WSP characters from the attribute-\n // name string and the attribute-value string.\n attributeName = attributeName.trim()\n attributeValue = attributeValue.trim()\n\n // 6. If the attribute-value is longer than 1024 octets, ignore the\n // cookie-av string and return to Step 1 of this algorithm.\n if (attributeValue.length > maxAttributeValueSize) {\n return parseUnparsedAttributes(unparsedAttributes, cookieAttributeList)\n }\n\n // 7. Process the attribute-name and attribute-value according to the\n // requirements in the following subsections. (Notice that\n // attributes with unrecognized attribute-names are ignored.)\n const attributeNameLowercase = attributeName.toLowerCase()\n\n // https://datatracker.ietf.org/doc/html/draft-ietf-httpbis-rfc6265bis#section-5.4.1\n // If the attribute-name case-insensitively matches the string\n // \"Expires\", the user agent MUST process the cookie-av as follows.\n if (attributeNameLowercase === 'expires') {\n // 1. Let the expiry-time be the result of parsing the attribute-value\n // as cookie-date (see Section 5.1.1).\n const expiryTime = new Date(attributeValue)\n\n // 2. If the attribute-value failed to parse as a cookie date, ignore\n // the cookie-av.\n\n cookieAttributeList.expires = expiryTime\n } else if (attributeNameLowercase === 'max-age') {\n // https://datatracker.ietf.org/doc/html/draft-ietf-httpbis-rfc6265bis#section-5.4.2\n // If the attribute-name case-insensitively matches the string \"Max-\n // Age\", the user agent MUST process the cookie-av as follows.\n\n // 1. If the first character of the attribute-value is not a DIGIT or a\n // \"-\" character, ignore the cookie-av.\n const charCode = attributeValue.charCodeAt(0)\n\n if ((charCode < 48 || charCode > 57) && attributeValue[0] !== '-') {\n return parseUnparsedAttributes(unparsedAttributes, cookieAttributeList)\n }\n\n // 2. If the remainder of attribute-value contains a non-DIGIT\n // character, ignore the cookie-av.\n if (!/^\\d+$/.test(attributeValue)) {\n return parseUnparsedAttributes(unparsedAttributes, cookieAttributeList)\n }\n\n // 3. Let delta-seconds be the attribute-value converted to an integer.\n const deltaSeconds = Number(attributeValue)\n\n // 4. Let cookie-age-limit be the maximum age of the cookie (which\n // SHOULD be 400 days or less, see Section 4.1.2.2).\n\n // 5. Set delta-seconds to the smaller of its present value and cookie-\n // age-limit.\n // deltaSeconds = Math.min(deltaSeconds * 1000, maxExpiresMs)\n\n // 6. If delta-seconds is less than or equal to zero (0), let expiry-\n // time be the earliest representable date and time. Otherwise, let\n // the expiry-time be the current date and time plus delta-seconds\n // seconds.\n // const expiryTime = deltaSeconds <= 0 ? Date.now() : Date.now() + deltaSeconds\n\n // 7. Append an attribute to the cookie-attribute-list with an\n // attribute-name of Max-Age and an attribute-value of expiry-time.\n cookieAttributeList.maxAge = deltaSeconds\n } else if (attributeNameLowercase === 'domain') {\n // https://datatracker.ietf.org/doc/html/draft-ietf-httpbis-rfc6265bis#section-5.4.3\n // If the attribute-name case-insensitively matches the string \"Domain\",\n // the user agent MUST process the cookie-av as follows.\n\n // 1. Let cookie-domain be the attribute-value.\n let cookieDomain = attributeValue\n\n // 2. If cookie-domain starts with %x2E (\".\"), let cookie-domain be\n // cookie-domain without its leading %x2E (\".\").\n if (cookieDomain[0] === '.') {\n cookieDomain = cookieDomain.slice(1)\n }\n\n // 3. Convert the cookie-domain to lower case.\n cookieDomain = cookieDomain.toLowerCase()\n\n // 4. Append an attribute to the cookie-attribute-list with an\n // attribute-name of Domain and an attribute-value of cookie-domain.\n cookieAttributeList.domain = cookieDomain\n } else if (attributeNameLowercase === 'path') {\n // https://datatracker.ietf.org/doc/html/draft-ietf-httpbis-rfc6265bis#section-5.4.4\n // If the attribute-name case-insensitively matches the string \"Path\",\n // the user agent MUST process the cookie-av as follows.\n\n // 1. If the attribute-value is empty or if the first character of the\n // attribute-value is not %x2F (\"/\"):\n let cookiePath = ''\n if (attributeValue.length === 0 || attributeValue[0] !== '/') {\n // 1. Let cookie-path be the default-path.\n cookiePath = '/'\n } else {\n // Otherwise:\n\n // 1. Let cookie-path be the attribute-value.\n cookiePath = attributeValue\n }\n\n // 2. Append an attribute to the cookie-attribute-list with an\n // attribute-name of Path and an attribute-value of cookie-path.\n cookieAttributeList.path = cookiePath\n } else if (attributeNameLowercase === 'secure') {\n // https://datatracker.ietf.org/doc/html/draft-ietf-httpbis-rfc6265bis#section-5.4.5\n // If the attribute-name case-insensitively matches the string \"Secure\",\n // the user agent MUST append an attribute to the cookie-attribute-list\n // with an attribute-name of Secure and an empty attribute-value.\n\n cookieAttributeList.secure = true\n } else if (attributeNameLowercase === 'httponly') {\n // https://datatracker.ietf.org/doc/html/draft-ietf-httpbis-rfc6265bis#section-5.4.6\n // If the attribute-name case-insensitively matches the string\n // \"HttpOnly\", the user agent MUST append an attribute to the cookie-\n // attribute-list with an attribute-name of HttpOnly and an empty\n // attribute-value.\n\n cookieAttributeList.httpOnly = true\n } else if (attributeNameLowercase === 'samesite') {\n // https://datatracker.ietf.org/doc/html/draft-ietf-httpbis-rfc6265bis#section-5.4.7\n // If the attribute-name case-insensitively matches the string\n // \"SameSite\", the user agent MUST process the cookie-av as follows:\n\n // 1. Let enforcement be \"Default\".\n let enforcement = 'Default'\n\n const attributeValueLowercase = attributeValue.toLowerCase()\n // 2. If cookie-av's attribute-value is a case-insensitive match for\n // \"None\", set enforcement to \"None\".\n if (attributeValueLowercase.includes('none')) {\n enforcement = 'None'\n }\n\n // 3. If cookie-av's attribute-value is a case-insensitive match for\n // \"Strict\", set enforcement to \"Strict\".\n if (attributeValueLowercase.includes('strict')) {\n enforcement = 'Strict'\n }\n\n // 4. If cookie-av's attribute-value is a case-insensitive match for\n // \"Lax\", set enforcement to \"Lax\".\n if (attributeValueLowercase.includes('lax')) {\n enforcement = 'Lax'\n }\n\n // 5. Append an attribute to the cookie-attribute-list with an\n // attribute-name of \"SameSite\" and an attribute-value of\n // enforcement.\n cookieAttributeList.sameSite = enforcement\n } else {\n cookieAttributeList.unparsed ??= []\n\n cookieAttributeList.unparsed.push(`${attributeName}=${attributeValue}`)\n }\n\n // 8. Return to Step 1 of this algorithm.\n return parseUnparsedAttributes(unparsedAttributes, cookieAttributeList)\n}\n\nmodule.exports = {\n parseSetCookie,\n parseUnparsedAttributes\n}\n","'use strict'\n\n/**\n * @param {string} value\n * @returns {boolean}\n */\nfunction isCTLExcludingHtab (value) {\n if (value.length === 0) {\n return false\n }\n\n for (const char of value) {\n const code = char.charCodeAt(0)\n\n if (\n (code >= 0x00 || code <= 0x08) ||\n (code >= 0x0A || code <= 0x1F) ||\n code === 0x7F\n ) {\n return false\n }\n }\n}\n\n/**\n CHAR = \n token = 1*\n separators = \"(\" | \")\" | \"<\" | \">\" | \"@\"\n | \",\" | \";\" | \":\" | \"\\\" | <\">\n | \"/\" | \"[\" | \"]\" | \"?\" | \"=\"\n | \"{\" | \"}\" | SP | HT\n * @param {string} name\n */\nfunction validateCookieName (name) {\n for (const char of name) {\n const code = char.charCodeAt(0)\n\n if (\n (code <= 0x20 || code > 0x7F) ||\n char === '(' ||\n char === ')' ||\n char === '>' ||\n char === '<' ||\n char === '@' ||\n char === ',' ||\n char === ';' ||\n char === ':' ||\n char === '\\\\' ||\n char === '\"' ||\n char === '/' ||\n char === '[' ||\n char === ']' ||\n char === '?' ||\n char === '=' ||\n char === '{' ||\n char === '}'\n ) {\n throw new Error('Invalid cookie name')\n }\n }\n}\n\n/**\n cookie-value = *cookie-octet / ( DQUOTE *cookie-octet DQUOTE )\n cookie-octet = %x21 / %x23-2B / %x2D-3A / %x3C-5B / %x5D-7E\n ; US-ASCII characters excluding CTLs,\n ; whitespace DQUOTE, comma, semicolon,\n ; and backslash\n * @param {string} value\n */\nfunction validateCookieValue (value) {\n for (const char of value) {\n const code = char.charCodeAt(0)\n\n if (\n code < 0x21 || // exclude CTLs (0-31)\n code === 0x22 ||\n code === 0x2C ||\n code === 0x3B ||\n code === 0x5C ||\n code > 0x7E // non-ascii\n ) {\n throw new Error('Invalid header value')\n }\n }\n}\n\n/**\n * path-value = \n * @param {string} path\n */\nfunction validateCookiePath (path) {\n for (const char of path) {\n const code = char.charCodeAt(0)\n\n if (code < 0x21 || char === ';') {\n throw new Error('Invalid cookie path')\n }\n }\n}\n\n/**\n * I have no idea why these values aren't allowed to be honest,\n * but Deno tests these. - Khafra\n * @param {string} domain\n */\nfunction validateCookieDomain (domain) {\n if (\n domain.startsWith('-') ||\n domain.endsWith('.') ||\n domain.endsWith('-')\n ) {\n throw new Error('Invalid cookie domain')\n }\n}\n\n/**\n * @see https://www.rfc-editor.org/rfc/rfc7231#section-7.1.1.1\n * @param {number|Date} date\n IMF-fixdate = day-name \",\" SP date1 SP time-of-day SP GMT\n ; fixed length/zone/capitalization subset of the format\n ; see Section 3.3 of [RFC5322]\n\n day-name = %x4D.6F.6E ; \"Mon\", case-sensitive\n / %x54.75.65 ; \"Tue\", case-sensitive\n / %x57.65.64 ; \"Wed\", case-sensitive\n / %x54.68.75 ; \"Thu\", case-sensitive\n / %x46.72.69 ; \"Fri\", case-sensitive\n / %x53.61.74 ; \"Sat\", case-sensitive\n / %x53.75.6E ; \"Sun\", case-sensitive\n date1 = day SP month SP year\n ; e.g., 02 Jun 1982\n\n day = 2DIGIT\n month = %x4A.61.6E ; \"Jan\", case-sensitive\n / %x46.65.62 ; \"Feb\", case-sensitive\n / %x4D.61.72 ; \"Mar\", case-sensitive\n / %x41.70.72 ; \"Apr\", case-sensitive\n / %x4D.61.79 ; \"May\", case-sensitive\n / %x4A.75.6E ; \"Jun\", case-sensitive\n / %x4A.75.6C ; \"Jul\", case-sensitive\n / %x41.75.67 ; \"Aug\", case-sensitive\n / %x53.65.70 ; \"Sep\", case-sensitive\n / %x4F.63.74 ; \"Oct\", case-sensitive\n / %x4E.6F.76 ; \"Nov\", case-sensitive\n / %x44.65.63 ; \"Dec\", case-sensitive\n year = 4DIGIT\n\n GMT = %x47.4D.54 ; \"GMT\", case-sensitive\n\n time-of-day = hour \":\" minute \":\" second\n ; 00:00:00 - 23:59:60 (leap second)\n\n hour = 2DIGIT\n minute = 2DIGIT\n second = 2DIGIT\n */\nfunction toIMFDate (date) {\n if (typeof date === 'number') {\n date = new Date(date)\n }\n\n const days = [\n 'Sun', 'Mon', 'Tue', 'Wed',\n 'Thu', 'Fri', 'Sat'\n ]\n\n const months = [\n 'Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun',\n 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'\n ]\n\n const dayName = days[date.getUTCDay()]\n const day = date.getUTCDate().toString().padStart(2, '0')\n const month = months[date.getUTCMonth()]\n const year = date.getUTCFullYear()\n const hour = date.getUTCHours().toString().padStart(2, '0')\n const minute = date.getUTCMinutes().toString().padStart(2, '0')\n const second = date.getUTCSeconds().toString().padStart(2, '0')\n\n return `${dayName}, ${day} ${month} ${year} ${hour}:${minute}:${second} GMT`\n}\n\n/**\n max-age-av = \"Max-Age=\" non-zero-digit *DIGIT\n ; In practice, both expires-av and max-age-av\n ; are limited to dates representable by the\n ; user agent.\n * @param {number} maxAge\n */\nfunction validateCookieMaxAge (maxAge) {\n if (maxAge < 0) {\n throw new Error('Invalid cookie max-age')\n }\n}\n\n/**\n * @see https://www.rfc-editor.org/rfc/rfc6265#section-4.1.1\n * @param {import('./index').Cookie} cookie\n */\nfunction stringify (cookie) {\n if (cookie.name.length === 0) {\n return null\n }\n\n validateCookieName(cookie.name)\n validateCookieValue(cookie.value)\n\n const out = [`${cookie.name}=${cookie.value}`]\n\n // https://datatracker.ietf.org/doc/html/draft-ietf-httpbis-cookie-prefixes-00#section-3.1\n // https://datatracker.ietf.org/doc/html/draft-ietf-httpbis-cookie-prefixes-00#section-3.2\n if (cookie.name.startsWith('__Secure-')) {\n cookie.secure = true\n }\n\n if (cookie.name.startsWith('__Host-')) {\n cookie.secure = true\n cookie.domain = null\n cookie.path = '/'\n }\n\n if (cookie.secure) {\n out.push('Secure')\n }\n\n if (cookie.httpOnly) {\n out.push('HttpOnly')\n }\n\n if (typeof cookie.maxAge === 'number') {\n validateCookieMaxAge(cookie.maxAge)\n out.push(`Max-Age=${cookie.maxAge}`)\n }\n\n if (cookie.domain) {\n validateCookieDomain(cookie.domain)\n out.push(`Domain=${cookie.domain}`)\n }\n\n if (cookie.path) {\n validateCookiePath(cookie.path)\n out.push(`Path=${cookie.path}`)\n }\n\n if (cookie.expires && cookie.expires.toString() !== 'Invalid Date') {\n out.push(`Expires=${toIMFDate(cookie.expires)}`)\n }\n\n if (cookie.sameSite) {\n out.push(`SameSite=${cookie.sameSite}`)\n }\n\n for (const part of cookie.unparsed) {\n if (!part.includes('=')) {\n throw new Error('Invalid unparsed')\n }\n\n const [key, ...value] = part.split('=')\n\n out.push(`${key.trim()}=${value.join('=')}`)\n }\n\n return out.join('; ')\n}\n\nmodule.exports = {\n isCTLExcludingHtab,\n validateCookieName,\n validateCookiePath,\n validateCookieValue,\n toIMFDate,\n stringify\n}\n","'use strict'\n\nconst net = require('net')\nconst assert = require('assert')\nconst util = require('./util')\nconst { InvalidArgumentError, ConnectTimeoutError } = require('./errors')\n\nlet tls // include tls conditionally since it is not always available\n\n// TODO: session re-use does not wait for the first\n// connection to resolve the session and might therefore\n// resolve the same servername multiple times even when\n// re-use is enabled.\n\nlet SessionCache\n// FIXME: remove workaround when the Node bug is fixed\n// https://github.com/nodejs/node/issues/49344#issuecomment-1741776308\nif (global.FinalizationRegistry && !process.env.NODE_V8_COVERAGE) {\n SessionCache = class WeakSessionCache {\n constructor (maxCachedSessions) {\n this._maxCachedSessions = maxCachedSessions\n this._sessionCache = new Map()\n this._sessionRegistry = new global.FinalizationRegistry((key) => {\n if (this._sessionCache.size < this._maxCachedSessions) {\n return\n }\n\n const ref = this._sessionCache.get(key)\n if (ref !== undefined && ref.deref() === undefined) {\n this._sessionCache.delete(key)\n }\n })\n }\n\n get (sessionKey) {\n const ref = this._sessionCache.get(sessionKey)\n return ref ? ref.deref() : null\n }\n\n set (sessionKey, session) {\n if (this._maxCachedSessions === 0) {\n return\n }\n\n this._sessionCache.set(sessionKey, new WeakRef(session))\n this._sessionRegistry.register(session, sessionKey)\n }\n }\n} else {\n SessionCache = class SimpleSessionCache {\n constructor (maxCachedSessions) {\n this._maxCachedSessions = maxCachedSessions\n this._sessionCache = new Map()\n }\n\n get (sessionKey) {\n return this._sessionCache.get(sessionKey)\n }\n\n set (sessionKey, session) {\n if (this._maxCachedSessions === 0) {\n return\n }\n\n if (this._sessionCache.size >= this._maxCachedSessions) {\n // remove the oldest session\n const { value: oldestKey } = this._sessionCache.keys().next()\n this._sessionCache.delete(oldestKey)\n }\n\n this._sessionCache.set(sessionKey, session)\n }\n }\n}\n\nfunction buildConnector ({ allowH2, maxCachedSessions, socketPath, timeout, ...opts }) {\n if (maxCachedSessions != null && (!Number.isInteger(maxCachedSessions) || maxCachedSessions < 0)) {\n throw new InvalidArgumentError('maxCachedSessions must be a positive integer or zero')\n }\n\n const options = { path: socketPath, ...opts }\n const sessionCache = new SessionCache(maxCachedSessions == null ? 100 : maxCachedSessions)\n timeout = timeout == null ? 10e3 : timeout\n allowH2 = allowH2 != null ? allowH2 : false\n return function connect ({ hostname, host, protocol, port, servername, localAddress, httpSocket }, callback) {\n let socket\n if (protocol === 'https:') {\n if (!tls) {\n tls = require('tls')\n }\n servername = servername || options.servername || util.getServerName(host) || null\n\n const sessionKey = servername || hostname\n const session = sessionCache.get(sessionKey) || null\n\n assert(sessionKey)\n\n socket = tls.connect({\n highWaterMark: 16384, // TLS in node can't have bigger HWM anyway...\n ...options,\n servername,\n session,\n localAddress,\n // TODO(HTTP/2): Add support for h2c\n ALPNProtocols: allowH2 ? ['http/1.1', 'h2'] : ['http/1.1'],\n socket: httpSocket, // upgrade socket connection\n port: port || 443,\n host: hostname\n })\n\n socket\n .on('session', function (session) {\n // TODO (fix): Can a session become invalid once established? Don't think so?\n sessionCache.set(sessionKey, session)\n })\n } else {\n assert(!httpSocket, 'httpSocket can only be sent on TLS update')\n socket = net.connect({\n highWaterMark: 64 * 1024, // Same as nodejs fs streams.\n ...options,\n localAddress,\n port: port || 80,\n host: hostname\n })\n }\n\n // Set TCP keep alive options on the socket here instead of in connect() for the case of assigning the socket\n if (options.keepAlive == null || options.keepAlive) {\n const keepAliveInitialDelay = options.keepAliveInitialDelay === undefined ? 60e3 : options.keepAliveInitialDelay\n socket.setKeepAlive(true, keepAliveInitialDelay)\n }\n\n const cancelTimeout = setupTimeout(() => onConnectTimeout(socket), timeout)\n\n socket\n .setNoDelay(true)\n .once(protocol === 'https:' ? 'secureConnect' : 'connect', function () {\n cancelTimeout()\n\n if (callback) {\n const cb = callback\n callback = null\n cb(null, this)\n }\n })\n .on('error', function (err) {\n cancelTimeout()\n\n if (callback) {\n const cb = callback\n callback = null\n cb(err)\n }\n })\n\n return socket\n }\n}\n\nfunction setupTimeout (onConnectTimeout, timeout) {\n if (!timeout) {\n return () => {}\n }\n\n let s1 = null\n let s2 = null\n const timeoutId = setTimeout(() => {\n // setImmediate is added to make sure that we priotorise socket error events over timeouts\n s1 = setImmediate(() => {\n if (process.platform === 'win32') {\n // Windows needs an extra setImmediate probably due to implementation differences in the socket logic\n s2 = setImmediate(() => onConnectTimeout())\n } else {\n onConnectTimeout()\n }\n })\n }, timeout)\n return () => {\n clearTimeout(timeoutId)\n clearImmediate(s1)\n clearImmediate(s2)\n }\n}\n\nfunction onConnectTimeout (socket) {\n util.destroy(socket, new ConnectTimeoutError())\n}\n\nmodule.exports = buildConnector\n","'use strict'\n\n/** @type {Record} */\nconst headerNameLowerCasedRecord = {}\n\n// https://developer.mozilla.org/docs/Web/HTTP/Headers\nconst wellknownHeaderNames = [\n 'Accept',\n 'Accept-Encoding',\n 'Accept-Language',\n 'Accept-Ranges',\n 'Access-Control-Allow-Credentials',\n 'Access-Control-Allow-Headers',\n 'Access-Control-Allow-Methods',\n 'Access-Control-Allow-Origin',\n 'Access-Control-Expose-Headers',\n 'Access-Control-Max-Age',\n 'Access-Control-Request-Headers',\n 'Access-Control-Request-Method',\n 'Age',\n 'Allow',\n 'Alt-Svc',\n 'Alt-Used',\n 'Authorization',\n 'Cache-Control',\n 'Clear-Site-Data',\n 'Connection',\n 'Content-Disposition',\n 'Content-Encoding',\n 'Content-Language',\n 'Content-Length',\n 'Content-Location',\n 'Content-Range',\n 'Content-Security-Policy',\n 'Content-Security-Policy-Report-Only',\n 'Content-Type',\n 'Cookie',\n 'Cross-Origin-Embedder-Policy',\n 'Cross-Origin-Opener-Policy',\n 'Cross-Origin-Resource-Policy',\n 'Date',\n 'Device-Memory',\n 'Downlink',\n 'ECT',\n 'ETag',\n 'Expect',\n 'Expect-CT',\n 'Expires',\n 'Forwarded',\n 'From',\n 'Host',\n 'If-Match',\n 'If-Modified-Since',\n 'If-None-Match',\n 'If-Range',\n 'If-Unmodified-Since',\n 'Keep-Alive',\n 'Last-Modified',\n 'Link',\n 'Location',\n 'Max-Forwards',\n 'Origin',\n 'Permissions-Policy',\n 'Pragma',\n 'Proxy-Authenticate',\n 'Proxy-Authorization',\n 'RTT',\n 'Range',\n 'Referer',\n 'Referrer-Policy',\n 'Refresh',\n 'Retry-After',\n 'Sec-WebSocket-Accept',\n 'Sec-WebSocket-Extensions',\n 'Sec-WebSocket-Key',\n 'Sec-WebSocket-Protocol',\n 'Sec-WebSocket-Version',\n 'Server',\n 'Server-Timing',\n 'Service-Worker-Allowed',\n 'Service-Worker-Navigation-Preload',\n 'Set-Cookie',\n 'SourceMap',\n 'Strict-Transport-Security',\n 'Supports-Loading-Mode',\n 'TE',\n 'Timing-Allow-Origin',\n 'Trailer',\n 'Transfer-Encoding',\n 'Upgrade',\n 'Upgrade-Insecure-Requests',\n 'User-Agent',\n 'Vary',\n 'Via',\n 'WWW-Authenticate',\n 'X-Content-Type-Options',\n 'X-DNS-Prefetch-Control',\n 'X-Frame-Options',\n 'X-Permitted-Cross-Domain-Policies',\n 'X-Powered-By',\n 'X-Requested-With',\n 'X-XSS-Protection'\n]\n\nfor (let i = 0; i < wellknownHeaderNames.length; ++i) {\n const key = wellknownHeaderNames[i]\n const lowerCasedKey = key.toLowerCase()\n headerNameLowerCasedRecord[key] = headerNameLowerCasedRecord[lowerCasedKey] =\n lowerCasedKey\n}\n\n// Note: object prototypes should not be able to be referenced. e.g. `Object#hasOwnProperty`.\nObject.setPrototypeOf(headerNameLowerCasedRecord, null)\n\nmodule.exports = {\n wellknownHeaderNames,\n headerNameLowerCasedRecord\n}\n","'use strict'\n\nclass UndiciError extends Error {\n constructor (message) {\n super(message)\n this.name = 'UndiciError'\n this.code = 'UND_ERR'\n }\n}\n\nclass ConnectTimeoutError extends UndiciError {\n constructor (message) {\n super(message)\n Error.captureStackTrace(this, ConnectTimeoutError)\n this.name = 'ConnectTimeoutError'\n this.message = message || 'Connect Timeout Error'\n this.code = 'UND_ERR_CONNECT_TIMEOUT'\n }\n}\n\nclass HeadersTimeoutError extends UndiciError {\n constructor (message) {\n super(message)\n Error.captureStackTrace(this, HeadersTimeoutError)\n this.name = 'HeadersTimeoutError'\n this.message = message || 'Headers Timeout Error'\n this.code = 'UND_ERR_HEADERS_TIMEOUT'\n }\n}\n\nclass HeadersOverflowError extends UndiciError {\n constructor (message) {\n super(message)\n Error.captureStackTrace(this, HeadersOverflowError)\n this.name = 'HeadersOverflowError'\n this.message = message || 'Headers Overflow Error'\n this.code = 'UND_ERR_HEADERS_OVERFLOW'\n }\n}\n\nclass BodyTimeoutError extends UndiciError {\n constructor (message) {\n super(message)\n Error.captureStackTrace(this, BodyTimeoutError)\n this.name = 'BodyTimeoutError'\n this.message = message || 'Body Timeout Error'\n this.code = 'UND_ERR_BODY_TIMEOUT'\n }\n}\n\nclass ResponseStatusCodeError extends UndiciError {\n constructor (message, statusCode, headers, body) {\n super(message)\n Error.captureStackTrace(this, ResponseStatusCodeError)\n this.name = 'ResponseStatusCodeError'\n this.message = message || 'Response Status Code Error'\n this.code = 'UND_ERR_RESPONSE_STATUS_CODE'\n this.body = body\n this.status = statusCode\n this.statusCode = statusCode\n this.headers = headers\n }\n}\n\nclass InvalidArgumentError extends UndiciError {\n constructor (message) {\n super(message)\n Error.captureStackTrace(this, InvalidArgumentError)\n this.name = 'InvalidArgumentError'\n this.message = message || 'Invalid Argument Error'\n this.code = 'UND_ERR_INVALID_ARG'\n }\n}\n\nclass InvalidReturnValueError extends UndiciError {\n constructor (message) {\n super(message)\n Error.captureStackTrace(this, InvalidReturnValueError)\n this.name = 'InvalidReturnValueError'\n this.message = message || 'Invalid Return Value Error'\n this.code = 'UND_ERR_INVALID_RETURN_VALUE'\n }\n}\n\nclass RequestAbortedError extends UndiciError {\n constructor (message) {\n super(message)\n Error.captureStackTrace(this, RequestAbortedError)\n this.name = 'AbortError'\n this.message = message || 'Request aborted'\n this.code = 'UND_ERR_ABORTED'\n }\n}\n\nclass InformationalError extends UndiciError {\n constructor (message) {\n super(message)\n Error.captureStackTrace(this, InformationalError)\n this.name = 'InformationalError'\n this.message = message || 'Request information'\n this.code = 'UND_ERR_INFO'\n }\n}\n\nclass RequestContentLengthMismatchError extends UndiciError {\n constructor (message) {\n super(message)\n Error.captureStackTrace(this, RequestContentLengthMismatchError)\n this.name = 'RequestContentLengthMismatchError'\n this.message = message || 'Request body length does not match content-length header'\n this.code = 'UND_ERR_REQ_CONTENT_LENGTH_MISMATCH'\n }\n}\n\nclass ResponseContentLengthMismatchError extends UndiciError {\n constructor (message) {\n super(message)\n Error.captureStackTrace(this, ResponseContentLengthMismatchError)\n this.name = 'ResponseContentLengthMismatchError'\n this.message = message || 'Response body length does not match content-length header'\n this.code = 'UND_ERR_RES_CONTENT_LENGTH_MISMATCH'\n }\n}\n\nclass ClientDestroyedError extends UndiciError {\n constructor (message) {\n super(message)\n Error.captureStackTrace(this, ClientDestroyedError)\n this.name = 'ClientDestroyedError'\n this.message = message || 'The client is destroyed'\n this.code = 'UND_ERR_DESTROYED'\n }\n}\n\nclass ClientClosedError extends UndiciError {\n constructor (message) {\n super(message)\n Error.captureStackTrace(this, ClientClosedError)\n this.name = 'ClientClosedError'\n this.message = message || 'The client is closed'\n this.code = 'UND_ERR_CLOSED'\n }\n}\n\nclass SocketError extends UndiciError {\n constructor (message, socket) {\n super(message)\n Error.captureStackTrace(this, SocketError)\n this.name = 'SocketError'\n this.message = message || 'Socket error'\n this.code = 'UND_ERR_SOCKET'\n this.socket = socket\n }\n}\n\nclass NotSupportedError extends UndiciError {\n constructor (message) {\n super(message)\n Error.captureStackTrace(this, NotSupportedError)\n this.name = 'NotSupportedError'\n this.message = message || 'Not supported error'\n this.code = 'UND_ERR_NOT_SUPPORTED'\n }\n}\n\nclass BalancedPoolMissingUpstreamError extends UndiciError {\n constructor (message) {\n super(message)\n Error.captureStackTrace(this, NotSupportedError)\n this.name = 'MissingUpstreamError'\n this.message = message || 'No upstream has been added to the BalancedPool'\n this.code = 'UND_ERR_BPL_MISSING_UPSTREAM'\n }\n}\n\nclass HTTPParserError extends Error {\n constructor (message, code, data) {\n super(message)\n Error.captureStackTrace(this, HTTPParserError)\n this.name = 'HTTPParserError'\n this.code = code ? `HPE_${code}` : undefined\n this.data = data ? data.toString() : undefined\n }\n}\n\nclass ResponseExceededMaxSizeError extends UndiciError {\n constructor (message) {\n super(message)\n Error.captureStackTrace(this, ResponseExceededMaxSizeError)\n this.name = 'ResponseExceededMaxSizeError'\n this.message = message || 'Response content exceeded max size'\n this.code = 'UND_ERR_RES_EXCEEDED_MAX_SIZE'\n }\n}\n\nclass RequestRetryError extends UndiciError {\n constructor (message, code, { headers, data }) {\n super(message)\n Error.captureStackTrace(this, RequestRetryError)\n this.name = 'RequestRetryError'\n this.message = message || 'Request retry error'\n this.code = 'UND_ERR_REQ_RETRY'\n this.statusCode = code\n this.data = data\n this.headers = headers\n }\n}\n\nmodule.exports = {\n HTTPParserError,\n UndiciError,\n HeadersTimeoutError,\n HeadersOverflowError,\n BodyTimeoutError,\n RequestContentLengthMismatchError,\n ConnectTimeoutError,\n ResponseStatusCodeError,\n InvalidArgumentError,\n InvalidReturnValueError,\n RequestAbortedError,\n ClientDestroyedError,\n ClientClosedError,\n InformationalError,\n SocketError,\n NotSupportedError,\n ResponseContentLengthMismatchError,\n BalancedPoolMissingUpstreamError,\n ResponseExceededMaxSizeError,\n RequestRetryError\n}\n","'use strict'\n\nconst {\n InvalidArgumentError,\n NotSupportedError\n} = require('./errors')\nconst assert = require('assert')\nconst { kHTTP2BuildRequest, kHTTP2CopyHeaders, kHTTP1BuildRequest } = require('./symbols')\nconst util = require('./util')\n\n// tokenRegExp and headerCharRegex have been lifted from\n// https://github.com/nodejs/node/blob/main/lib/_http_common.js\n\n/**\n * Verifies that the given val is a valid HTTP token\n * per the rules defined in RFC 7230\n * See https://tools.ietf.org/html/rfc7230#section-3.2.6\n */\nconst tokenRegExp = /^[\\^_`a-zA-Z\\-0-9!#$%&'*+.|~]+$/\n\n/**\n * Matches if val contains an invalid field-vchar\n * field-value = *( field-content / obs-fold )\n * field-content = field-vchar [ 1*( SP / HTAB ) field-vchar ]\n * field-vchar = VCHAR / obs-text\n */\nconst headerCharRegex = /[^\\t\\x20-\\x7e\\x80-\\xff]/\n\n// Verifies that a given path is valid does not contain control chars \\x00 to \\x20\nconst invalidPathRegex = /[^\\u0021-\\u00ff]/\n\nconst kHandler = Symbol('handler')\n\nconst channels = {}\n\nlet extractBody\n\ntry {\n const diagnosticsChannel = require('diagnostics_channel')\n channels.create = diagnosticsChannel.channel('undici:request:create')\n channels.bodySent = diagnosticsChannel.channel('undici:request:bodySent')\n channels.headers = diagnosticsChannel.channel('undici:request:headers')\n channels.trailers = diagnosticsChannel.channel('undici:request:trailers')\n channels.error = diagnosticsChannel.channel('undici:request:error')\n} catch {\n channels.create = { hasSubscribers: false }\n channels.bodySent = { hasSubscribers: false }\n channels.headers = { hasSubscribers: false }\n channels.trailers = { hasSubscribers: false }\n channels.error = { hasSubscribers: false }\n}\n\nclass Request {\n constructor (origin, {\n path,\n method,\n body,\n headers,\n query,\n idempotent,\n blocking,\n upgrade,\n headersTimeout,\n bodyTimeout,\n reset,\n throwOnError,\n expectContinue\n }, handler) {\n if (typeof path !== 'string') {\n throw new InvalidArgumentError('path must be a string')\n } else if (\n path[0] !== '/' &&\n !(path.startsWith('http://') || path.startsWith('https://')) &&\n method !== 'CONNECT'\n ) {\n throw new InvalidArgumentError('path must be an absolute URL or start with a slash')\n } else if (invalidPathRegex.exec(path) !== null) {\n throw new InvalidArgumentError('invalid request path')\n }\n\n if (typeof method !== 'string') {\n throw new InvalidArgumentError('method must be a string')\n } else if (tokenRegExp.exec(method) === null) {\n throw new InvalidArgumentError('invalid request method')\n }\n\n if (upgrade && typeof upgrade !== 'string') {\n throw new InvalidArgumentError('upgrade must be a string')\n }\n\n if (headersTimeout != null && (!Number.isFinite(headersTimeout) || headersTimeout < 0)) {\n throw new InvalidArgumentError('invalid headersTimeout')\n }\n\n if (bodyTimeout != null && (!Number.isFinite(bodyTimeout) || bodyTimeout < 0)) {\n throw new InvalidArgumentError('invalid bodyTimeout')\n }\n\n if (reset != null && typeof reset !== 'boolean') {\n throw new InvalidArgumentError('invalid reset')\n }\n\n if (expectContinue != null && typeof expectContinue !== 'boolean') {\n throw new InvalidArgumentError('invalid expectContinue')\n }\n\n this.headersTimeout = headersTimeout\n\n this.bodyTimeout = bodyTimeout\n\n this.throwOnError = throwOnError === true\n\n this.method = method\n\n this.abort = null\n\n if (body == null) {\n this.body = null\n } else if (util.isStream(body)) {\n this.body = body\n\n const rState = this.body._readableState\n if (!rState || !rState.autoDestroy) {\n this.endHandler = function autoDestroy () {\n util.destroy(this)\n }\n this.body.on('end', this.endHandler)\n }\n\n this.errorHandler = err => {\n if (this.abort) {\n this.abort(err)\n } else {\n this.error = err\n }\n }\n this.body.on('error', this.errorHandler)\n } else if (util.isBuffer(body)) {\n this.body = body.byteLength ? body : null\n } else if (ArrayBuffer.isView(body)) {\n this.body = body.buffer.byteLength ? Buffer.from(body.buffer, body.byteOffset, body.byteLength) : null\n } else if (body instanceof ArrayBuffer) {\n this.body = body.byteLength ? Buffer.from(body) : null\n } else if (typeof body === 'string') {\n this.body = body.length ? Buffer.from(body) : null\n } else if (util.isFormDataLike(body) || util.isIterable(body) || util.isBlobLike(body)) {\n this.body = body\n } else {\n throw new InvalidArgumentError('body must be a string, a Buffer, a Readable stream, an iterable, or an async iterable')\n }\n\n this.completed = false\n\n this.aborted = false\n\n this.upgrade = upgrade || null\n\n this.path = query ? util.buildURL(path, query) : path\n\n this.origin = origin\n\n this.idempotent = idempotent == null\n ? method === 'HEAD' || method === 'GET'\n : idempotent\n\n this.blocking = blocking == null ? false : blocking\n\n this.reset = reset == null ? null : reset\n\n this.host = null\n\n this.contentLength = null\n\n this.contentType = null\n\n this.headers = ''\n\n // Only for H2\n this.expectContinue = expectContinue != null ? expectContinue : false\n\n if (Array.isArray(headers)) {\n if (headers.length % 2 !== 0) {\n throw new InvalidArgumentError('headers array must be even')\n }\n for (let i = 0; i < headers.length; i += 2) {\n processHeader(this, headers[i], headers[i + 1])\n }\n } else if (headers && typeof headers === 'object') {\n const keys = Object.keys(headers)\n for (let i = 0; i < keys.length; i++) {\n const key = keys[i]\n processHeader(this, key, headers[key])\n }\n } else if (headers != null) {\n throw new InvalidArgumentError('headers must be an object or an array')\n }\n\n if (util.isFormDataLike(this.body)) {\n if (util.nodeMajor < 16 || (util.nodeMajor === 16 && util.nodeMinor < 8)) {\n throw new InvalidArgumentError('Form-Data bodies are only supported in node v16.8 and newer.')\n }\n\n if (!extractBody) {\n extractBody = require('../fetch/body.js').extractBody\n }\n\n const [bodyStream, contentType] = extractBody(body)\n if (this.contentType == null) {\n this.contentType = contentType\n this.headers += `content-type: ${contentType}\\r\\n`\n }\n this.body = bodyStream.stream\n this.contentLength = bodyStream.length\n } else if (util.isBlobLike(body) && this.contentType == null && body.type) {\n this.contentType = body.type\n this.headers += `content-type: ${body.type}\\r\\n`\n }\n\n util.validateHandler(handler, method, upgrade)\n\n this.servername = util.getServerName(this.host)\n\n this[kHandler] = handler\n\n if (channels.create.hasSubscribers) {\n channels.create.publish({ request: this })\n }\n }\n\n onBodySent (chunk) {\n if (this[kHandler].onBodySent) {\n try {\n return this[kHandler].onBodySent(chunk)\n } catch (err) {\n this.abort(err)\n }\n }\n }\n\n onRequestSent () {\n if (channels.bodySent.hasSubscribers) {\n channels.bodySent.publish({ request: this })\n }\n\n if (this[kHandler].onRequestSent) {\n try {\n return this[kHandler].onRequestSent()\n } catch (err) {\n this.abort(err)\n }\n }\n }\n\n onConnect (abort) {\n assert(!this.aborted)\n assert(!this.completed)\n\n if (this.error) {\n abort(this.error)\n } else {\n this.abort = abort\n return this[kHandler].onConnect(abort)\n }\n }\n\n onHeaders (statusCode, headers, resume, statusText) {\n assert(!this.aborted)\n assert(!this.completed)\n\n if (channels.headers.hasSubscribers) {\n channels.headers.publish({ request: this, response: { statusCode, headers, statusText } })\n }\n\n try {\n return this[kHandler].onHeaders(statusCode, headers, resume, statusText)\n } catch (err) {\n this.abort(err)\n }\n }\n\n onData (chunk) {\n assert(!this.aborted)\n assert(!this.completed)\n\n try {\n return this[kHandler].onData(chunk)\n } catch (err) {\n this.abort(err)\n return false\n }\n }\n\n onUpgrade (statusCode, headers, socket) {\n assert(!this.aborted)\n assert(!this.completed)\n\n return this[kHandler].onUpgrade(statusCode, headers, socket)\n }\n\n onComplete (trailers) {\n this.onFinally()\n\n assert(!this.aborted)\n\n this.completed = true\n if (channels.trailers.hasSubscribers) {\n channels.trailers.publish({ request: this, trailers })\n }\n\n try {\n return this[kHandler].onComplete(trailers)\n } catch (err) {\n // TODO (fix): This might be a bad idea?\n this.onError(err)\n }\n }\n\n onError (error) {\n this.onFinally()\n\n if (channels.error.hasSubscribers) {\n channels.error.publish({ request: this, error })\n }\n\n if (this.aborted) {\n return\n }\n this.aborted = true\n\n return this[kHandler].onError(error)\n }\n\n onFinally () {\n if (this.errorHandler) {\n this.body.off('error', this.errorHandler)\n this.errorHandler = null\n }\n\n if (this.endHandler) {\n this.body.off('end', this.endHandler)\n this.endHandler = null\n }\n }\n\n // TODO: adjust to support H2\n addHeader (key, value) {\n processHeader(this, key, value)\n return this\n }\n\n static [kHTTP1BuildRequest] (origin, opts, handler) {\n // TODO: Migrate header parsing here, to make Requests\n // HTTP agnostic\n return new Request(origin, opts, handler)\n }\n\n static [kHTTP2BuildRequest] (origin, opts, handler) {\n const headers = opts.headers\n opts = { ...opts, headers: null }\n\n const request = new Request(origin, opts, handler)\n\n request.headers = {}\n\n if (Array.isArray(headers)) {\n if (headers.length % 2 !== 0) {\n throw new InvalidArgumentError('headers array must be even')\n }\n for (let i = 0; i < headers.length; i += 2) {\n processHeader(request, headers[i], headers[i + 1], true)\n }\n } else if (headers && typeof headers === 'object') {\n const keys = Object.keys(headers)\n for (let i = 0; i < keys.length; i++) {\n const key = keys[i]\n processHeader(request, key, headers[key], true)\n }\n } else if (headers != null) {\n throw new InvalidArgumentError('headers must be an object or an array')\n }\n\n return request\n }\n\n static [kHTTP2CopyHeaders] (raw) {\n const rawHeaders = raw.split('\\r\\n')\n const headers = {}\n\n for (const header of rawHeaders) {\n const [key, value] = header.split(': ')\n\n if (value == null || value.length === 0) continue\n\n if (headers[key]) headers[key] += `,${value}`\n else headers[key] = value\n }\n\n return headers\n }\n}\n\nfunction processHeaderValue (key, val, skipAppend) {\n if (val && typeof val === 'object') {\n throw new InvalidArgumentError(`invalid ${key} header`)\n }\n\n val = val != null ? `${val}` : ''\n\n if (headerCharRegex.exec(val) !== null) {\n throw new InvalidArgumentError(`invalid ${key} header`)\n }\n\n return skipAppend ? val : `${key}: ${val}\\r\\n`\n}\n\nfunction processHeader (request, key, val, skipAppend = false) {\n if (val && (typeof val === 'object' && !Array.isArray(val))) {\n throw new InvalidArgumentError(`invalid ${key} header`)\n } else if (val === undefined) {\n return\n }\n\n if (\n request.host === null &&\n key.length === 4 &&\n key.toLowerCase() === 'host'\n ) {\n if (headerCharRegex.exec(val) !== null) {\n throw new InvalidArgumentError(`invalid ${key} header`)\n }\n // Consumed by Client\n request.host = val\n } else if (\n request.contentLength === null &&\n key.length === 14 &&\n key.toLowerCase() === 'content-length'\n ) {\n request.contentLength = parseInt(val, 10)\n if (!Number.isFinite(request.contentLength)) {\n throw new InvalidArgumentError('invalid content-length header')\n }\n } else if (\n request.contentType === null &&\n key.length === 12 &&\n key.toLowerCase() === 'content-type'\n ) {\n request.contentType = val\n if (skipAppend) request.headers[key] = processHeaderValue(key, val, skipAppend)\n else request.headers += processHeaderValue(key, val)\n } else if (\n key.length === 17 &&\n key.toLowerCase() === 'transfer-encoding'\n ) {\n throw new InvalidArgumentError('invalid transfer-encoding header')\n } else if (\n key.length === 10 &&\n key.toLowerCase() === 'connection'\n ) {\n const value = typeof val === 'string' ? val.toLowerCase() : null\n if (value !== 'close' && value !== 'keep-alive') {\n throw new InvalidArgumentError('invalid connection header')\n } else if (value === 'close') {\n request.reset = true\n }\n } else if (\n key.length === 10 &&\n key.toLowerCase() === 'keep-alive'\n ) {\n throw new InvalidArgumentError('invalid keep-alive header')\n } else if (\n key.length === 7 &&\n key.toLowerCase() === 'upgrade'\n ) {\n throw new InvalidArgumentError('invalid upgrade header')\n } else if (\n key.length === 6 &&\n key.toLowerCase() === 'expect'\n ) {\n throw new NotSupportedError('expect header not supported')\n } else if (tokenRegExp.exec(key) === null) {\n throw new InvalidArgumentError('invalid header key')\n } else {\n if (Array.isArray(val)) {\n for (let i = 0; i < val.length; i++) {\n if (skipAppend) {\n if (request.headers[key]) request.headers[key] += `,${processHeaderValue(key, val[i], skipAppend)}`\n else request.headers[key] = processHeaderValue(key, val[i], skipAppend)\n } else {\n request.headers += processHeaderValue(key, val[i])\n }\n }\n } else {\n if (skipAppend) request.headers[key] = processHeaderValue(key, val, skipAppend)\n else request.headers += processHeaderValue(key, val)\n }\n }\n}\n\nmodule.exports = Request\n","module.exports = {\n kClose: Symbol('close'),\n kDestroy: Symbol('destroy'),\n kDispatch: Symbol('dispatch'),\n kUrl: Symbol('url'),\n kWriting: Symbol('writing'),\n kResuming: Symbol('resuming'),\n kQueue: Symbol('queue'),\n kConnect: Symbol('connect'),\n kConnecting: Symbol('connecting'),\n kHeadersList: Symbol('headers list'),\n kKeepAliveDefaultTimeout: Symbol('default keep alive timeout'),\n kKeepAliveMaxTimeout: Symbol('max keep alive timeout'),\n kKeepAliveTimeoutThreshold: Symbol('keep alive timeout threshold'),\n kKeepAliveTimeoutValue: Symbol('keep alive timeout'),\n kKeepAlive: Symbol('keep alive'),\n kHeadersTimeout: Symbol('headers timeout'),\n kBodyTimeout: Symbol('body timeout'),\n kServerName: Symbol('server name'),\n kLocalAddress: Symbol('local address'),\n kHost: Symbol('host'),\n kNoRef: Symbol('no ref'),\n kBodyUsed: Symbol('used'),\n kRunning: Symbol('running'),\n kBlocking: Symbol('blocking'),\n kPending: Symbol('pending'),\n kSize: Symbol('size'),\n kBusy: Symbol('busy'),\n kQueued: Symbol('queued'),\n kFree: Symbol('free'),\n kConnected: Symbol('connected'),\n kClosed: Symbol('closed'),\n kNeedDrain: Symbol('need drain'),\n kReset: Symbol('reset'),\n kDestroyed: Symbol.for('nodejs.stream.destroyed'),\n kMaxHeadersSize: Symbol('max headers size'),\n kRunningIdx: Symbol('running index'),\n kPendingIdx: Symbol('pending index'),\n kError: Symbol('error'),\n kClients: Symbol('clients'),\n kClient: Symbol('client'),\n kParser: Symbol('parser'),\n kOnDestroyed: Symbol('destroy callbacks'),\n kPipelining: Symbol('pipelining'),\n kSocket: Symbol('socket'),\n kHostHeader: Symbol('host header'),\n kConnector: Symbol('connector'),\n kStrictContentLength: Symbol('strict content length'),\n kMaxRedirections: Symbol('maxRedirections'),\n kMaxRequests: Symbol('maxRequestsPerClient'),\n kProxy: Symbol('proxy agent options'),\n kCounter: Symbol('socket request counter'),\n kInterceptors: Symbol('dispatch interceptors'),\n kMaxResponseSize: Symbol('max response size'),\n kHTTP2Session: Symbol('http2Session'),\n kHTTP2SessionState: Symbol('http2Session state'),\n kHTTP2BuildRequest: Symbol('http2 build request'),\n kHTTP1BuildRequest: Symbol('http1 build request'),\n kHTTP2CopyHeaders: Symbol('http2 copy headers'),\n kHTTPConnVersion: Symbol('http connection version'),\n kRetryHandlerDefaultRetry: Symbol('retry agent default retry'),\n kConstruct: Symbol('constructable')\n}\n","'use strict'\n\nconst assert = require('assert')\nconst { kDestroyed, kBodyUsed } = require('./symbols')\nconst { IncomingMessage } = require('http')\nconst stream = require('stream')\nconst net = require('net')\nconst { InvalidArgumentError } = require('./errors')\nconst { Blob } = require('buffer')\nconst nodeUtil = require('util')\nconst { stringify } = require('querystring')\nconst { headerNameLowerCasedRecord } = require('./constants')\n\nconst [nodeMajor, nodeMinor] = process.versions.node.split('.').map(v => Number(v))\n\nfunction nop () {}\n\nfunction isStream (obj) {\n return obj && typeof obj === 'object' && typeof obj.pipe === 'function' && typeof obj.on === 'function'\n}\n\n// based on https://github.com/node-fetch/fetch-blob/blob/8ab587d34080de94140b54f07168451e7d0b655e/index.js#L229-L241 (MIT License)\nfunction isBlobLike (object) {\n return (Blob && object instanceof Blob) || (\n object &&\n typeof object === 'object' &&\n (typeof object.stream === 'function' ||\n typeof object.arrayBuffer === 'function') &&\n /^(Blob|File)$/.test(object[Symbol.toStringTag])\n )\n}\n\nfunction buildURL (url, queryParams) {\n if (url.includes('?') || url.includes('#')) {\n throw new Error('Query params cannot be passed when url already contains \"?\" or \"#\".')\n }\n\n const stringified = stringify(queryParams)\n\n if (stringified) {\n url += '?' + stringified\n }\n\n return url\n}\n\nfunction parseURL (url) {\n if (typeof url === 'string') {\n url = new URL(url)\n\n if (!/^https?:/.test(url.origin || url.protocol)) {\n throw new InvalidArgumentError('Invalid URL protocol: the URL must start with `http:` or `https:`.')\n }\n\n return url\n }\n\n if (!url || typeof url !== 'object') {\n throw new InvalidArgumentError('Invalid URL: The URL argument must be a non-null object.')\n }\n\n if (!/^https?:/.test(url.origin || url.protocol)) {\n throw new InvalidArgumentError('Invalid URL protocol: the URL must start with `http:` or `https:`.')\n }\n\n if (!(url instanceof URL)) {\n if (url.port != null && url.port !== '' && !Number.isFinite(parseInt(url.port))) {\n throw new InvalidArgumentError('Invalid URL: port must be a valid integer or a string representation of an integer.')\n }\n\n if (url.path != null && typeof url.path !== 'string') {\n throw new InvalidArgumentError('Invalid URL path: the path must be a string or null/undefined.')\n }\n\n if (url.pathname != null && typeof url.pathname !== 'string') {\n throw new InvalidArgumentError('Invalid URL pathname: the pathname must be a string or null/undefined.')\n }\n\n if (url.hostname != null && typeof url.hostname !== 'string') {\n throw new InvalidArgumentError('Invalid URL hostname: the hostname must be a string or null/undefined.')\n }\n\n if (url.origin != null && typeof url.origin !== 'string') {\n throw new InvalidArgumentError('Invalid URL origin: the origin must be a string or null/undefined.')\n }\n\n const port = url.port != null\n ? url.port\n : (url.protocol === 'https:' ? 443 : 80)\n let origin = url.origin != null\n ? url.origin\n : `${url.protocol}//${url.hostname}:${port}`\n let path = url.path != null\n ? url.path\n : `${url.pathname || ''}${url.search || ''}`\n\n if (origin.endsWith('/')) {\n origin = origin.substring(0, origin.length - 1)\n }\n\n if (path && !path.startsWith('/')) {\n path = `/${path}`\n }\n // new URL(path, origin) is unsafe when `path` contains an absolute URL\n // From https://developer.mozilla.org/en-US/docs/Web/API/URL/URL:\n // If first parameter is a relative URL, second param is required, and will be used as the base URL.\n // If first parameter is an absolute URL, a given second param will be ignored.\n url = new URL(origin + path)\n }\n\n return url\n}\n\nfunction parseOrigin (url) {\n url = parseURL(url)\n\n if (url.pathname !== '/' || url.search || url.hash) {\n throw new InvalidArgumentError('invalid url')\n }\n\n return url\n}\n\nfunction getHostname (host) {\n if (host[0] === '[') {\n const idx = host.indexOf(']')\n\n assert(idx !== -1)\n return host.substring(1, idx)\n }\n\n const idx = host.indexOf(':')\n if (idx === -1) return host\n\n return host.substring(0, idx)\n}\n\n// IP addresses are not valid server names per RFC6066\n// > Currently, the only server names supported are DNS hostnames\nfunction getServerName (host) {\n if (!host) {\n return null\n }\n\n assert.strictEqual(typeof host, 'string')\n\n const servername = getHostname(host)\n if (net.isIP(servername)) {\n return ''\n }\n\n return servername\n}\n\nfunction deepClone (obj) {\n return JSON.parse(JSON.stringify(obj))\n}\n\nfunction isAsyncIterable (obj) {\n return !!(obj != null && typeof obj[Symbol.asyncIterator] === 'function')\n}\n\nfunction isIterable (obj) {\n return !!(obj != null && (typeof obj[Symbol.iterator] === 'function' || typeof obj[Symbol.asyncIterator] === 'function'))\n}\n\nfunction bodyLength (body) {\n if (body == null) {\n return 0\n } else if (isStream(body)) {\n const state = body._readableState\n return state && state.objectMode === false && state.ended === true && Number.isFinite(state.length)\n ? state.length\n : null\n } else if (isBlobLike(body)) {\n return body.size != null ? body.size : null\n } else if (isBuffer(body)) {\n return body.byteLength\n }\n\n return null\n}\n\nfunction isDestroyed (stream) {\n return !stream || !!(stream.destroyed || stream[kDestroyed])\n}\n\nfunction isReadableAborted (stream) {\n const state = stream && stream._readableState\n return isDestroyed(stream) && state && !state.endEmitted\n}\n\nfunction destroy (stream, err) {\n if (stream == null || !isStream(stream) || isDestroyed(stream)) {\n return\n }\n\n if (typeof stream.destroy === 'function') {\n if (Object.getPrototypeOf(stream).constructor === IncomingMessage) {\n // See: https://github.com/nodejs/node/pull/38505/files\n stream.socket = null\n }\n\n stream.destroy(err)\n } else if (err) {\n process.nextTick((stream, err) => {\n stream.emit('error', err)\n }, stream, err)\n }\n\n if (stream.destroyed !== true) {\n stream[kDestroyed] = true\n }\n}\n\nconst KEEPALIVE_TIMEOUT_EXPR = /timeout=(\\d+)/\nfunction parseKeepAliveTimeout (val) {\n const m = val.toString().match(KEEPALIVE_TIMEOUT_EXPR)\n return m ? parseInt(m[1], 10) * 1000 : null\n}\n\n/**\n * Retrieves a header name and returns its lowercase value.\n * @param {string | Buffer} value Header name\n * @returns {string}\n */\nfunction headerNameToString (value) {\n return headerNameLowerCasedRecord[value] || value.toLowerCase()\n}\n\nfunction parseHeaders (headers, obj = {}) {\n // For H2 support\n if (!Array.isArray(headers)) return headers\n\n for (let i = 0; i < headers.length; i += 2) {\n const key = headers[i].toString().toLowerCase()\n let val = obj[key]\n\n if (!val) {\n if (Array.isArray(headers[i + 1])) {\n obj[key] = headers[i + 1].map(x => x.toString('utf8'))\n } else {\n obj[key] = headers[i + 1].toString('utf8')\n }\n } else {\n if (!Array.isArray(val)) {\n val = [val]\n obj[key] = val\n }\n val.push(headers[i + 1].toString('utf8'))\n }\n }\n\n // See https://github.com/nodejs/node/pull/46528\n if ('content-length' in obj && 'content-disposition' in obj) {\n obj['content-disposition'] = Buffer.from(obj['content-disposition']).toString('latin1')\n }\n\n return obj\n}\n\nfunction parseRawHeaders (headers) {\n const ret = []\n let hasContentLength = false\n let contentDispositionIdx = -1\n\n for (let n = 0; n < headers.length; n += 2) {\n const key = headers[n + 0].toString()\n const val = headers[n + 1].toString('utf8')\n\n if (key.length === 14 && (key === 'content-length' || key.toLowerCase() === 'content-length')) {\n ret.push(key, val)\n hasContentLength = true\n } else if (key.length === 19 && (key === 'content-disposition' || key.toLowerCase() === 'content-disposition')) {\n contentDispositionIdx = ret.push(key, val) - 1\n } else {\n ret.push(key, val)\n }\n }\n\n // See https://github.com/nodejs/node/pull/46528\n if (hasContentLength && contentDispositionIdx !== -1) {\n ret[contentDispositionIdx] = Buffer.from(ret[contentDispositionIdx]).toString('latin1')\n }\n\n return ret\n}\n\nfunction isBuffer (buffer) {\n // See, https://github.com/mcollina/undici/pull/319\n return buffer instanceof Uint8Array || Buffer.isBuffer(buffer)\n}\n\nfunction validateHandler (handler, method, upgrade) {\n if (!handler || typeof handler !== 'object') {\n throw new InvalidArgumentError('handler must be an object')\n }\n\n if (typeof handler.onConnect !== 'function') {\n throw new InvalidArgumentError('invalid onConnect method')\n }\n\n if (typeof handler.onError !== 'function') {\n throw new InvalidArgumentError('invalid onError method')\n }\n\n if (typeof handler.onBodySent !== 'function' && handler.onBodySent !== undefined) {\n throw new InvalidArgumentError('invalid onBodySent method')\n }\n\n if (upgrade || method === 'CONNECT') {\n if (typeof handler.onUpgrade !== 'function') {\n throw new InvalidArgumentError('invalid onUpgrade method')\n }\n } else {\n if (typeof handler.onHeaders !== 'function') {\n throw new InvalidArgumentError('invalid onHeaders method')\n }\n\n if (typeof handler.onData !== 'function') {\n throw new InvalidArgumentError('invalid onData method')\n }\n\n if (typeof handler.onComplete !== 'function') {\n throw new InvalidArgumentError('invalid onComplete method')\n }\n }\n}\n\n// A body is disturbed if it has been read from and it cannot\n// be re-used without losing state or data.\nfunction isDisturbed (body) {\n return !!(body && (\n stream.isDisturbed\n ? stream.isDisturbed(body) || body[kBodyUsed] // TODO (fix): Why is body[kBodyUsed] needed?\n : body[kBodyUsed] ||\n body.readableDidRead ||\n (body._readableState && body._readableState.dataEmitted) ||\n isReadableAborted(body)\n ))\n}\n\nfunction isErrored (body) {\n return !!(body && (\n stream.isErrored\n ? stream.isErrored(body)\n : /state: 'errored'/.test(nodeUtil.inspect(body)\n )))\n}\n\nfunction isReadable (body) {\n return !!(body && (\n stream.isReadable\n ? stream.isReadable(body)\n : /state: 'readable'/.test(nodeUtil.inspect(body)\n )))\n}\n\nfunction getSocketInfo (socket) {\n return {\n localAddress: socket.localAddress,\n localPort: socket.localPort,\n remoteAddress: socket.remoteAddress,\n remotePort: socket.remotePort,\n remoteFamily: socket.remoteFamily,\n timeout: socket.timeout,\n bytesWritten: socket.bytesWritten,\n bytesRead: socket.bytesRead\n }\n}\n\nasync function * convertIterableToBuffer (iterable) {\n for await (const chunk of iterable) {\n yield Buffer.isBuffer(chunk) ? chunk : Buffer.from(chunk)\n }\n}\n\nlet ReadableStream\nfunction ReadableStreamFrom (iterable) {\n if (!ReadableStream) {\n ReadableStream = require('stream/web').ReadableStream\n }\n\n if (ReadableStream.from) {\n return ReadableStream.from(convertIterableToBuffer(iterable))\n }\n\n let iterator\n return new ReadableStream(\n {\n async start () {\n iterator = iterable[Symbol.asyncIterator]()\n },\n async pull (controller) {\n const { done, value } = await iterator.next()\n if (done) {\n queueMicrotask(() => {\n controller.close()\n })\n } else {\n const buf = Buffer.isBuffer(value) ? value : Buffer.from(value)\n controller.enqueue(new Uint8Array(buf))\n }\n return controller.desiredSize > 0\n },\n async cancel (reason) {\n await iterator.return()\n }\n },\n 0\n )\n}\n\n// The chunk should be a FormData instance and contains\n// all the required methods.\nfunction isFormDataLike (object) {\n return (\n object &&\n typeof object === 'object' &&\n typeof object.append === 'function' &&\n typeof object.delete === 'function' &&\n typeof object.get === 'function' &&\n typeof object.getAll === 'function' &&\n typeof object.has === 'function' &&\n typeof object.set === 'function' &&\n object[Symbol.toStringTag] === 'FormData'\n )\n}\n\nfunction throwIfAborted (signal) {\n if (!signal) { return }\n if (typeof signal.throwIfAborted === 'function') {\n signal.throwIfAborted()\n } else {\n if (signal.aborted) {\n // DOMException not available < v17.0.0\n const err = new Error('The operation was aborted')\n err.name = 'AbortError'\n throw err\n }\n }\n}\n\nfunction addAbortListener (signal, listener) {\n if ('addEventListener' in signal) {\n signal.addEventListener('abort', listener, { once: true })\n return () => signal.removeEventListener('abort', listener)\n }\n signal.addListener('abort', listener)\n return () => signal.removeListener('abort', listener)\n}\n\nconst hasToWellFormed = !!String.prototype.toWellFormed\n\n/**\n * @param {string} val\n */\nfunction toUSVString (val) {\n if (hasToWellFormed) {\n return `${val}`.toWellFormed()\n } else if (nodeUtil.toUSVString) {\n return nodeUtil.toUSVString(val)\n }\n\n return `${val}`\n}\n\n// Parsed accordingly to RFC 9110\n// https://www.rfc-editor.org/rfc/rfc9110#field.content-range\nfunction parseRangeHeader (range) {\n if (range == null || range === '') return { start: 0, end: null, size: null }\n\n const m = range ? range.match(/^bytes (\\d+)-(\\d+)\\/(\\d+)?$/) : null\n return m\n ? {\n start: parseInt(m[1]),\n end: m[2] ? parseInt(m[2]) : null,\n size: m[3] ? parseInt(m[3]) : null\n }\n : null\n}\n\nconst kEnumerableProperty = Object.create(null)\nkEnumerableProperty.enumerable = true\n\nmodule.exports = {\n kEnumerableProperty,\n nop,\n isDisturbed,\n isErrored,\n isReadable,\n toUSVString,\n isReadableAborted,\n isBlobLike,\n parseOrigin,\n parseURL,\n getServerName,\n isStream,\n isIterable,\n isAsyncIterable,\n isDestroyed,\n headerNameToString,\n parseRawHeaders,\n parseHeaders,\n parseKeepAliveTimeout,\n destroy,\n bodyLength,\n deepClone,\n ReadableStreamFrom,\n isBuffer,\n validateHandler,\n getSocketInfo,\n isFormDataLike,\n buildURL,\n throwIfAborted,\n addAbortListener,\n parseRangeHeader,\n nodeMajor,\n nodeMinor,\n nodeHasAutoSelectFamily: nodeMajor > 18 || (nodeMajor === 18 && nodeMinor >= 13),\n safeHTTPMethods: ['GET', 'HEAD', 'OPTIONS', 'TRACE']\n}\n","'use strict'\n\nconst Dispatcher = require('./dispatcher')\nconst {\n ClientDestroyedError,\n ClientClosedError,\n InvalidArgumentError\n} = require('./core/errors')\nconst { kDestroy, kClose, kDispatch, kInterceptors } = require('./core/symbols')\n\nconst kDestroyed = Symbol('destroyed')\nconst kClosed = Symbol('closed')\nconst kOnDestroyed = Symbol('onDestroyed')\nconst kOnClosed = Symbol('onClosed')\nconst kInterceptedDispatch = Symbol('Intercepted Dispatch')\n\nclass DispatcherBase extends Dispatcher {\n constructor () {\n super()\n\n this[kDestroyed] = false\n this[kOnDestroyed] = null\n this[kClosed] = false\n this[kOnClosed] = []\n }\n\n get destroyed () {\n return this[kDestroyed]\n }\n\n get closed () {\n return this[kClosed]\n }\n\n get interceptors () {\n return this[kInterceptors]\n }\n\n set interceptors (newInterceptors) {\n if (newInterceptors) {\n for (let i = newInterceptors.length - 1; i >= 0; i--) {\n const interceptor = this[kInterceptors][i]\n if (typeof interceptor !== 'function') {\n throw new InvalidArgumentError('interceptor must be an function')\n }\n }\n }\n\n this[kInterceptors] = newInterceptors\n }\n\n close (callback) {\n if (callback === undefined) {\n return new Promise((resolve, reject) => {\n this.close((err, data) => {\n return err ? reject(err) : resolve(data)\n })\n })\n }\n\n if (typeof callback !== 'function') {\n throw new InvalidArgumentError('invalid callback')\n }\n\n if (this[kDestroyed]) {\n queueMicrotask(() => callback(new ClientDestroyedError(), null))\n return\n }\n\n if (this[kClosed]) {\n if (this[kOnClosed]) {\n this[kOnClosed].push(callback)\n } else {\n queueMicrotask(() => callback(null, null))\n }\n return\n }\n\n this[kClosed] = true\n this[kOnClosed].push(callback)\n\n const onClosed = () => {\n const callbacks = this[kOnClosed]\n this[kOnClosed] = null\n for (let i = 0; i < callbacks.length; i++) {\n callbacks[i](null, null)\n }\n }\n\n // Should not error.\n this[kClose]()\n .then(() => this.destroy())\n .then(() => {\n queueMicrotask(onClosed)\n })\n }\n\n destroy (err, callback) {\n if (typeof err === 'function') {\n callback = err\n err = null\n }\n\n if (callback === undefined) {\n return new Promise((resolve, reject) => {\n this.destroy(err, (err, data) => {\n return err ? /* istanbul ignore next: should never error */ reject(err) : resolve(data)\n })\n })\n }\n\n if (typeof callback !== 'function') {\n throw new InvalidArgumentError('invalid callback')\n }\n\n if (this[kDestroyed]) {\n if (this[kOnDestroyed]) {\n this[kOnDestroyed].push(callback)\n } else {\n queueMicrotask(() => callback(null, null))\n }\n return\n }\n\n if (!err) {\n err = new ClientDestroyedError()\n }\n\n this[kDestroyed] = true\n this[kOnDestroyed] = this[kOnDestroyed] || []\n this[kOnDestroyed].push(callback)\n\n const onDestroyed = () => {\n const callbacks = this[kOnDestroyed]\n this[kOnDestroyed] = null\n for (let i = 0; i < callbacks.length; i++) {\n callbacks[i](null, null)\n }\n }\n\n // Should not error.\n this[kDestroy](err).then(() => {\n queueMicrotask(onDestroyed)\n })\n }\n\n [kInterceptedDispatch] (opts, handler) {\n if (!this[kInterceptors] || this[kInterceptors].length === 0) {\n this[kInterceptedDispatch] = this[kDispatch]\n return this[kDispatch](opts, handler)\n }\n\n let dispatch = this[kDispatch].bind(this)\n for (let i = this[kInterceptors].length - 1; i >= 0; i--) {\n dispatch = this[kInterceptors][i](dispatch)\n }\n this[kInterceptedDispatch] = dispatch\n return dispatch(opts, handler)\n }\n\n dispatch (opts, handler) {\n if (!handler || typeof handler !== 'object') {\n throw new InvalidArgumentError('handler must be an object')\n }\n\n try {\n if (!opts || typeof opts !== 'object') {\n throw new InvalidArgumentError('opts must be an object.')\n }\n\n if (this[kDestroyed] || this[kOnDestroyed]) {\n throw new ClientDestroyedError()\n }\n\n if (this[kClosed]) {\n throw new ClientClosedError()\n }\n\n return this[kInterceptedDispatch](opts, handler)\n } catch (err) {\n if (typeof handler.onError !== 'function') {\n throw new InvalidArgumentError('invalid onError method')\n }\n\n handler.onError(err)\n\n return false\n }\n }\n}\n\nmodule.exports = DispatcherBase\n","'use strict'\n\nconst EventEmitter = require('events')\n\nclass Dispatcher extends EventEmitter {\n dispatch () {\n throw new Error('not implemented')\n }\n\n close () {\n throw new Error('not implemented')\n }\n\n destroy () {\n throw new Error('not implemented')\n }\n}\n\nmodule.exports = Dispatcher\n","'use strict'\n\nconst Busboy = require('@fastify/busboy')\nconst util = require('../core/util')\nconst {\n ReadableStreamFrom,\n isBlobLike,\n isReadableStreamLike,\n readableStreamClose,\n createDeferredPromise,\n fullyReadBody\n} = require('./util')\nconst { FormData } = require('./formdata')\nconst { kState } = require('./symbols')\nconst { webidl } = require('./webidl')\nconst { DOMException, structuredClone } = require('./constants')\nconst { Blob, File: NativeFile } = require('buffer')\nconst { kBodyUsed } = require('../core/symbols')\nconst assert = require('assert')\nconst { isErrored } = require('../core/util')\nconst { isUint8Array, isArrayBuffer } = require('util/types')\nconst { File: UndiciFile } = require('./file')\nconst { parseMIMEType, serializeAMimeType } = require('./dataURL')\n\nlet random\ntry {\n const crypto = require('node:crypto')\n random = (max) => crypto.randomInt(0, max)\n} catch {\n random = (max) => Math.floor(Math.random(max))\n}\n\nlet ReadableStream = globalThis.ReadableStream\n\n/** @type {globalThis['File']} */\nconst File = NativeFile ?? UndiciFile\nconst textEncoder = new TextEncoder()\nconst textDecoder = new TextDecoder()\n\n// https://fetch.spec.whatwg.org/#concept-bodyinit-extract\nfunction extractBody (object, keepalive = false) {\n if (!ReadableStream) {\n ReadableStream = require('stream/web').ReadableStream\n }\n\n // 1. Let stream be null.\n let stream = null\n\n // 2. If object is a ReadableStream object, then set stream to object.\n if (object instanceof ReadableStream) {\n stream = object\n } else if (isBlobLike(object)) {\n // 3. Otherwise, if object is a Blob object, set stream to the\n // result of running object’s get stream.\n stream = object.stream()\n } else {\n // 4. Otherwise, set stream to a new ReadableStream object, and set\n // up stream.\n stream = new ReadableStream({\n async pull (controller) {\n controller.enqueue(\n typeof source === 'string' ? textEncoder.encode(source) : source\n )\n queueMicrotask(() => readableStreamClose(controller))\n },\n start () {},\n type: undefined\n })\n }\n\n // 5. Assert: stream is a ReadableStream object.\n assert(isReadableStreamLike(stream))\n\n // 6. Let action be null.\n let action = null\n\n // 7. Let source be null.\n let source = null\n\n // 8. Let length be null.\n let length = null\n\n // 9. Let type be null.\n let type = null\n\n // 10. Switch on object:\n if (typeof object === 'string') {\n // Set source to the UTF-8 encoding of object.\n // Note: setting source to a Uint8Array here breaks some mocking assumptions.\n source = object\n\n // Set type to `text/plain;charset=UTF-8`.\n type = 'text/plain;charset=UTF-8'\n } else if (object instanceof URLSearchParams) {\n // URLSearchParams\n\n // spec says to run application/x-www-form-urlencoded on body.list\n // this is implemented in Node.js as apart of an URLSearchParams instance toString method\n // See: https://github.com/nodejs/node/blob/e46c680bf2b211bbd52cf959ca17ee98c7f657f5/lib/internal/url.js#L490\n // and https://github.com/nodejs/node/blob/e46c680bf2b211bbd52cf959ca17ee98c7f657f5/lib/internal/url.js#L1100\n\n // Set source to the result of running the application/x-www-form-urlencoded serializer with object’s list.\n source = object.toString()\n\n // Set type to `application/x-www-form-urlencoded;charset=UTF-8`.\n type = 'application/x-www-form-urlencoded;charset=UTF-8'\n } else if (isArrayBuffer(object)) {\n // BufferSource/ArrayBuffer\n\n // Set source to a copy of the bytes held by object.\n source = new Uint8Array(object.slice())\n } else if (ArrayBuffer.isView(object)) {\n // BufferSource/ArrayBufferView\n\n // Set source to a copy of the bytes held by object.\n source = new Uint8Array(object.buffer.slice(object.byteOffset, object.byteOffset + object.byteLength))\n } else if (util.isFormDataLike(object)) {\n const boundary = `----formdata-undici-0${`${random(1e11)}`.padStart(11, '0')}`\n const prefix = `--${boundary}\\r\\nContent-Disposition: form-data`\n\n /*! formdata-polyfill. MIT License. Jimmy Wärting */\n const escape = (str) =>\n str.replace(/\\n/g, '%0A').replace(/\\r/g, '%0D').replace(/\"/g, '%22')\n const normalizeLinefeeds = (value) => value.replace(/\\r?\\n|\\r/g, '\\r\\n')\n\n // Set action to this step: run the multipart/form-data\n // encoding algorithm, with object’s entry list and UTF-8.\n // - This ensures that the body is immutable and can't be changed afterwords\n // - That the content-length is calculated in advance.\n // - And that all parts are pre-encoded and ready to be sent.\n\n const blobParts = []\n const rn = new Uint8Array([13, 10]) // '\\r\\n'\n length = 0\n let hasUnknownSizeValue = false\n\n for (const [name, value] of object) {\n if (typeof value === 'string') {\n const chunk = textEncoder.encode(prefix +\n `; name=\"${escape(normalizeLinefeeds(name))}\"` +\n `\\r\\n\\r\\n${normalizeLinefeeds(value)}\\r\\n`)\n blobParts.push(chunk)\n length += chunk.byteLength\n } else {\n const chunk = textEncoder.encode(`${prefix}; name=\"${escape(normalizeLinefeeds(name))}\"` +\n (value.name ? `; filename=\"${escape(value.name)}\"` : '') + '\\r\\n' +\n `Content-Type: ${\n value.type || 'application/octet-stream'\n }\\r\\n\\r\\n`)\n blobParts.push(chunk, value, rn)\n if (typeof value.size === 'number') {\n length += chunk.byteLength + value.size + rn.byteLength\n } else {\n hasUnknownSizeValue = true\n }\n }\n }\n\n const chunk = textEncoder.encode(`--${boundary}--`)\n blobParts.push(chunk)\n length += chunk.byteLength\n if (hasUnknownSizeValue) {\n length = null\n }\n\n // Set source to object.\n source = object\n\n action = async function * () {\n for (const part of blobParts) {\n if (part.stream) {\n yield * part.stream()\n } else {\n yield part\n }\n }\n }\n\n // Set type to `multipart/form-data; boundary=`,\n // followed by the multipart/form-data boundary string generated\n // by the multipart/form-data encoding algorithm.\n type = 'multipart/form-data; boundary=' + boundary\n } else if (isBlobLike(object)) {\n // Blob\n\n // Set source to object.\n source = object\n\n // Set length to object’s size.\n length = object.size\n\n // If object’s type attribute is not the empty byte sequence, set\n // type to its value.\n if (object.type) {\n type = object.type\n }\n } else if (typeof object[Symbol.asyncIterator] === 'function') {\n // If keepalive is true, then throw a TypeError.\n if (keepalive) {\n throw new TypeError('keepalive')\n }\n\n // If object is disturbed or locked, then throw a TypeError.\n if (util.isDisturbed(object) || object.locked) {\n throw new TypeError(\n 'Response body object should not be disturbed or locked'\n )\n }\n\n stream =\n object instanceof ReadableStream ? object : ReadableStreamFrom(object)\n }\n\n // 11. If source is a byte sequence, then set action to a\n // step that returns source and length to source’s length.\n if (typeof source === 'string' || util.isBuffer(source)) {\n length = Buffer.byteLength(source)\n }\n\n // 12. If action is non-null, then run these steps in in parallel:\n if (action != null) {\n // Run action.\n let iterator\n stream = new ReadableStream({\n async start () {\n iterator = action(object)[Symbol.asyncIterator]()\n },\n async pull (controller) {\n const { value, done } = await iterator.next()\n if (done) {\n // When running action is done, close stream.\n queueMicrotask(() => {\n controller.close()\n })\n } else {\n // Whenever one or more bytes are available and stream is not errored,\n // enqueue a Uint8Array wrapping an ArrayBuffer containing the available\n // bytes into stream.\n if (!isErrored(stream)) {\n controller.enqueue(new Uint8Array(value))\n }\n }\n return controller.desiredSize > 0\n },\n async cancel (reason) {\n await iterator.return()\n },\n type: undefined\n })\n }\n\n // 13. Let body be a body whose stream is stream, source is source,\n // and length is length.\n const body = { stream, source, length }\n\n // 14. Return (body, type).\n return [body, type]\n}\n\n// https://fetch.spec.whatwg.org/#bodyinit-safely-extract\nfunction safelyExtractBody (object, keepalive = false) {\n if (!ReadableStream) {\n // istanbul ignore next\n ReadableStream = require('stream/web').ReadableStream\n }\n\n // To safely extract a body and a `Content-Type` value from\n // a byte sequence or BodyInit object object, run these steps:\n\n // 1. If object is a ReadableStream object, then:\n if (object instanceof ReadableStream) {\n // Assert: object is neither disturbed nor locked.\n // istanbul ignore next\n assert(!util.isDisturbed(object), 'The body has already been consumed.')\n // istanbul ignore next\n assert(!object.locked, 'The stream is locked.')\n }\n\n // 2. Return the results of extracting object.\n return extractBody(object, keepalive)\n}\n\nfunction cloneBody (body) {\n // To clone a body body, run these steps:\n\n // https://fetch.spec.whatwg.org/#concept-body-clone\n\n // 1. Let « out1, out2 » be the result of teeing body’s stream.\n const [out1, out2] = body.stream.tee()\n const out2Clone = structuredClone(out2, { transfer: [out2] })\n // This, for whatever reasons, unrefs out2Clone which allows\n // the process to exit by itself.\n const [, finalClone] = out2Clone.tee()\n\n // 2. Set body’s stream to out1.\n body.stream = out1\n\n // 3. Return a body whose stream is out2 and other members are copied from body.\n return {\n stream: finalClone,\n length: body.length,\n source: body.source\n }\n}\n\nasync function * consumeBody (body) {\n if (body) {\n if (isUint8Array(body)) {\n yield body\n } else {\n const stream = body.stream\n\n if (util.isDisturbed(stream)) {\n throw new TypeError('The body has already been consumed.')\n }\n\n if (stream.locked) {\n throw new TypeError('The stream is locked.')\n }\n\n // Compat.\n stream[kBodyUsed] = true\n\n yield * stream\n }\n }\n}\n\nfunction throwIfAborted (state) {\n if (state.aborted) {\n throw new DOMException('The operation was aborted.', 'AbortError')\n }\n}\n\nfunction bodyMixinMethods (instance) {\n const methods = {\n blob () {\n // The blob() method steps are to return the result of\n // running consume body with this and the following step\n // given a byte sequence bytes: return a Blob whose\n // contents are bytes and whose type attribute is this’s\n // MIME type.\n return specConsumeBody(this, (bytes) => {\n let mimeType = bodyMimeType(this)\n\n if (mimeType === 'failure') {\n mimeType = ''\n } else if (mimeType) {\n mimeType = serializeAMimeType(mimeType)\n }\n\n // Return a Blob whose contents are bytes and type attribute\n // is mimeType.\n return new Blob([bytes], { type: mimeType })\n }, instance)\n },\n\n arrayBuffer () {\n // The arrayBuffer() method steps are to return the result\n // of running consume body with this and the following step\n // given a byte sequence bytes: return a new ArrayBuffer\n // whose contents are bytes.\n return specConsumeBody(this, (bytes) => {\n return new Uint8Array(bytes).buffer\n }, instance)\n },\n\n text () {\n // The text() method steps are to return the result of running\n // consume body with this and UTF-8 decode.\n return specConsumeBody(this, utf8DecodeBytes, instance)\n },\n\n json () {\n // The json() method steps are to return the result of running\n // consume body with this and parse JSON from bytes.\n return specConsumeBody(this, parseJSONFromBytes, instance)\n },\n\n async formData () {\n webidl.brandCheck(this, instance)\n\n throwIfAborted(this[kState])\n\n const contentType = this.headers.get('Content-Type')\n\n // If mimeType’s essence is \"multipart/form-data\", then:\n if (/multipart\\/form-data/.test(contentType)) {\n const headers = {}\n for (const [key, value] of this.headers) headers[key.toLowerCase()] = value\n\n const responseFormData = new FormData()\n\n let busboy\n\n try {\n busboy = new Busboy({\n headers,\n preservePath: true\n })\n } catch (err) {\n throw new DOMException(`${err}`, 'AbortError')\n }\n\n busboy.on('field', (name, value) => {\n responseFormData.append(name, value)\n })\n busboy.on('file', (name, value, filename, encoding, mimeType) => {\n const chunks = []\n\n if (encoding === 'base64' || encoding.toLowerCase() === 'base64') {\n let base64chunk = ''\n\n value.on('data', (chunk) => {\n base64chunk += chunk.toString().replace(/[\\r\\n]/gm, '')\n\n const end = base64chunk.length - base64chunk.length % 4\n chunks.push(Buffer.from(base64chunk.slice(0, end), 'base64'))\n\n base64chunk = base64chunk.slice(end)\n })\n value.on('end', () => {\n chunks.push(Buffer.from(base64chunk, 'base64'))\n responseFormData.append(name, new File(chunks, filename, { type: mimeType }))\n })\n } else {\n value.on('data', (chunk) => {\n chunks.push(chunk)\n })\n value.on('end', () => {\n responseFormData.append(name, new File(chunks, filename, { type: mimeType }))\n })\n }\n })\n\n const busboyResolve = new Promise((resolve, reject) => {\n busboy.on('finish', resolve)\n busboy.on('error', (err) => reject(new TypeError(err)))\n })\n\n if (this.body !== null) for await (const chunk of consumeBody(this[kState].body)) busboy.write(chunk)\n busboy.end()\n await busboyResolve\n\n return responseFormData\n } else if (/application\\/x-www-form-urlencoded/.test(contentType)) {\n // Otherwise, if mimeType’s essence is \"application/x-www-form-urlencoded\", then:\n\n // 1. Let entries be the result of parsing bytes.\n let entries\n try {\n let text = ''\n // application/x-www-form-urlencoded parser will keep the BOM.\n // https://url.spec.whatwg.org/#concept-urlencoded-parser\n // Note that streaming decoder is stateful and cannot be reused\n const streamingDecoder = new TextDecoder('utf-8', { ignoreBOM: true })\n\n for await (const chunk of consumeBody(this[kState].body)) {\n if (!isUint8Array(chunk)) {\n throw new TypeError('Expected Uint8Array chunk')\n }\n text += streamingDecoder.decode(chunk, { stream: true })\n }\n text += streamingDecoder.decode()\n entries = new URLSearchParams(text)\n } catch (err) {\n // istanbul ignore next: Unclear when new URLSearchParams can fail on a string.\n // 2. If entries is failure, then throw a TypeError.\n throw Object.assign(new TypeError(), { cause: err })\n }\n\n // 3. Return a new FormData object whose entries are entries.\n const formData = new FormData()\n for (const [name, value] of entries) {\n formData.append(name, value)\n }\n return formData\n } else {\n // Wait a tick before checking if the request has been aborted.\n // Otherwise, a TypeError can be thrown when an AbortError should.\n await Promise.resolve()\n\n throwIfAborted(this[kState])\n\n // Otherwise, throw a TypeError.\n throw webidl.errors.exception({\n header: `${instance.name}.formData`,\n message: 'Could not parse content as FormData.'\n })\n }\n }\n }\n\n return methods\n}\n\nfunction mixinBody (prototype) {\n Object.assign(prototype.prototype, bodyMixinMethods(prototype))\n}\n\n/**\n * @see https://fetch.spec.whatwg.org/#concept-body-consume-body\n * @param {Response|Request} object\n * @param {(value: unknown) => unknown} convertBytesToJSValue\n * @param {Response|Request} instance\n */\nasync function specConsumeBody (object, convertBytesToJSValue, instance) {\n webidl.brandCheck(object, instance)\n\n throwIfAborted(object[kState])\n\n // 1. If object is unusable, then return a promise rejected\n // with a TypeError.\n if (bodyUnusable(object[kState].body)) {\n throw new TypeError('Body is unusable')\n }\n\n // 2. Let promise be a new promise.\n const promise = createDeferredPromise()\n\n // 3. Let errorSteps given error be to reject promise with error.\n const errorSteps = (error) => promise.reject(error)\n\n // 4. Let successSteps given a byte sequence data be to resolve\n // promise with the result of running convertBytesToJSValue\n // with data. If that threw an exception, then run errorSteps\n // with that exception.\n const successSteps = (data) => {\n try {\n promise.resolve(convertBytesToJSValue(data))\n } catch (e) {\n errorSteps(e)\n }\n }\n\n // 5. If object’s body is null, then run successSteps with an\n // empty byte sequence.\n if (object[kState].body == null) {\n successSteps(new Uint8Array())\n return promise.promise\n }\n\n // 6. Otherwise, fully read object’s body given successSteps,\n // errorSteps, and object’s relevant global object.\n await fullyReadBody(object[kState].body, successSteps, errorSteps)\n\n // 7. Return promise.\n return promise.promise\n}\n\n// https://fetch.spec.whatwg.org/#body-unusable\nfunction bodyUnusable (body) {\n // An object including the Body interface mixin is\n // said to be unusable if its body is non-null and\n // its body’s stream is disturbed or locked.\n return body != null && (body.stream.locked || util.isDisturbed(body.stream))\n}\n\n/**\n * @see https://encoding.spec.whatwg.org/#utf-8-decode\n * @param {Buffer} buffer\n */\nfunction utf8DecodeBytes (buffer) {\n if (buffer.length === 0) {\n return ''\n }\n\n // 1. Let buffer be the result of peeking three bytes from\n // ioQueue, converted to a byte sequence.\n\n // 2. If buffer is 0xEF 0xBB 0xBF, then read three\n // bytes from ioQueue. (Do nothing with those bytes.)\n if (buffer[0] === 0xEF && buffer[1] === 0xBB && buffer[2] === 0xBF) {\n buffer = buffer.subarray(3)\n }\n\n // 3. Process a queue with an instance of UTF-8’s\n // decoder, ioQueue, output, and \"replacement\".\n const output = textDecoder.decode(buffer)\n\n // 4. Return output.\n return output\n}\n\n/**\n * @see https://infra.spec.whatwg.org/#parse-json-bytes-to-a-javascript-value\n * @param {Uint8Array} bytes\n */\nfunction parseJSONFromBytes (bytes) {\n return JSON.parse(utf8DecodeBytes(bytes))\n}\n\n/**\n * @see https://fetch.spec.whatwg.org/#concept-body-mime-type\n * @param {import('./response').Response|import('./request').Request} object\n */\nfunction bodyMimeType (object) {\n const { headersList } = object[kState]\n const contentType = headersList.get('content-type')\n\n if (contentType === null) {\n return 'failure'\n }\n\n return parseMIMEType(contentType)\n}\n\nmodule.exports = {\n extractBody,\n safelyExtractBody,\n cloneBody,\n mixinBody\n}\n","'use strict'\n\nconst { MessageChannel, receiveMessageOnPort } = require('worker_threads')\n\nconst corsSafeListedMethods = ['GET', 'HEAD', 'POST']\nconst corsSafeListedMethodsSet = new Set(corsSafeListedMethods)\n\nconst nullBodyStatus = [101, 204, 205, 304]\n\nconst redirectStatus = [301, 302, 303, 307, 308]\nconst redirectStatusSet = new Set(redirectStatus)\n\n// https://fetch.spec.whatwg.org/#block-bad-port\nconst badPorts = [\n '1', '7', '9', '11', '13', '15', '17', '19', '20', '21', '22', '23', '25', '37', '42', '43', '53', '69', '77', '79',\n '87', '95', '101', '102', '103', '104', '109', '110', '111', '113', '115', '117', '119', '123', '135', '137',\n '139', '143', '161', '179', '389', '427', '465', '512', '513', '514', '515', '526', '530', '531', '532',\n '540', '548', '554', '556', '563', '587', '601', '636', '989', '990', '993', '995', '1719', '1720', '1723',\n '2049', '3659', '4045', '5060', '5061', '6000', '6566', '6665', '6666', '6667', '6668', '6669', '6697',\n '10080'\n]\n\nconst badPortsSet = new Set(badPorts)\n\n// https://w3c.github.io/webappsec-referrer-policy/#referrer-policies\nconst referrerPolicy = [\n '',\n 'no-referrer',\n 'no-referrer-when-downgrade',\n 'same-origin',\n 'origin',\n 'strict-origin',\n 'origin-when-cross-origin',\n 'strict-origin-when-cross-origin',\n 'unsafe-url'\n]\nconst referrerPolicySet = new Set(referrerPolicy)\n\nconst requestRedirect = ['follow', 'manual', 'error']\n\nconst safeMethods = ['GET', 'HEAD', 'OPTIONS', 'TRACE']\nconst safeMethodsSet = new Set(safeMethods)\n\nconst requestMode = ['navigate', 'same-origin', 'no-cors', 'cors']\n\nconst requestCredentials = ['omit', 'same-origin', 'include']\n\nconst requestCache = [\n 'default',\n 'no-store',\n 'reload',\n 'no-cache',\n 'force-cache',\n 'only-if-cached'\n]\n\n// https://fetch.spec.whatwg.org/#request-body-header-name\nconst requestBodyHeader = [\n 'content-encoding',\n 'content-language',\n 'content-location',\n 'content-type',\n // See https://github.com/nodejs/undici/issues/2021\n // 'Content-Length' is a forbidden header name, which is typically\n // removed in the Headers implementation. However, undici doesn't\n // filter out headers, so we add it here.\n 'content-length'\n]\n\n// https://fetch.spec.whatwg.org/#enumdef-requestduplex\nconst requestDuplex = [\n 'half'\n]\n\n// http://fetch.spec.whatwg.org/#forbidden-method\nconst forbiddenMethods = ['CONNECT', 'TRACE', 'TRACK']\nconst forbiddenMethodsSet = new Set(forbiddenMethods)\n\nconst subresource = [\n 'audio',\n 'audioworklet',\n 'font',\n 'image',\n 'manifest',\n 'paintworklet',\n 'script',\n 'style',\n 'track',\n 'video',\n 'xslt',\n ''\n]\nconst subresourceSet = new Set(subresource)\n\n/** @type {globalThis['DOMException']} */\nconst DOMException = globalThis.DOMException ?? (() => {\n // DOMException was only made a global in Node v17.0.0,\n // but fetch supports >= v16.8.\n try {\n atob('~')\n } catch (err) {\n return Object.getPrototypeOf(err).constructor\n }\n})()\n\nlet channel\n\n/** @type {globalThis['structuredClone']} */\nconst structuredClone =\n globalThis.structuredClone ??\n // https://github.com/nodejs/node/blob/b27ae24dcc4251bad726d9d84baf678d1f707fed/lib/internal/structured_clone.js\n // structuredClone was added in v17.0.0, but fetch supports v16.8\n function structuredClone (value, options = undefined) {\n if (arguments.length === 0) {\n throw new TypeError('missing argument')\n }\n\n if (!channel) {\n channel = new MessageChannel()\n }\n channel.port1.unref()\n channel.port2.unref()\n channel.port1.postMessage(value, options?.transfer)\n return receiveMessageOnPort(channel.port2).message\n }\n\nmodule.exports = {\n DOMException,\n structuredClone,\n subresource,\n forbiddenMethods,\n requestBodyHeader,\n referrerPolicy,\n requestRedirect,\n requestMode,\n requestCredentials,\n requestCache,\n redirectStatus,\n corsSafeListedMethods,\n nullBodyStatus,\n safeMethods,\n badPorts,\n requestDuplex,\n subresourceSet,\n badPortsSet,\n redirectStatusSet,\n corsSafeListedMethodsSet,\n safeMethodsSet,\n forbiddenMethodsSet,\n referrerPolicySet\n}\n","const assert = require('assert')\nconst { atob } = require('buffer')\nconst { isomorphicDecode } = require('./util')\n\nconst encoder = new TextEncoder()\n\n/**\n * @see https://mimesniff.spec.whatwg.org/#http-token-code-point\n */\nconst HTTP_TOKEN_CODEPOINTS = /^[!#$%&'*+-.^_|~A-Za-z0-9]+$/\nconst HTTP_WHITESPACE_REGEX = /(\\u000A|\\u000D|\\u0009|\\u0020)/ // eslint-disable-line\n/**\n * @see https://mimesniff.spec.whatwg.org/#http-quoted-string-token-code-point\n */\nconst HTTP_QUOTED_STRING_TOKENS = /[\\u0009|\\u0020-\\u007E|\\u0080-\\u00FF]/ // eslint-disable-line\n\n// https://fetch.spec.whatwg.org/#data-url-processor\n/** @param {URL} dataURL */\nfunction dataURLProcessor (dataURL) {\n // 1. Assert: dataURL’s scheme is \"data\".\n assert(dataURL.protocol === 'data:')\n\n // 2. Let input be the result of running the URL\n // serializer on dataURL with exclude fragment\n // set to true.\n let input = URLSerializer(dataURL, true)\n\n // 3. Remove the leading \"data:\" string from input.\n input = input.slice(5)\n\n // 4. Let position point at the start of input.\n const position = { position: 0 }\n\n // 5. Let mimeType be the result of collecting a\n // sequence of code points that are not equal\n // to U+002C (,), given position.\n let mimeType = collectASequenceOfCodePointsFast(\n ',',\n input,\n position\n )\n\n // 6. Strip leading and trailing ASCII whitespace\n // from mimeType.\n // Undici implementation note: we need to store the\n // length because if the mimetype has spaces removed,\n // the wrong amount will be sliced from the input in\n // step #9\n const mimeTypeLength = mimeType.length\n mimeType = removeASCIIWhitespace(mimeType, true, true)\n\n // 7. If position is past the end of input, then\n // return failure\n if (position.position >= input.length) {\n return 'failure'\n }\n\n // 8. Advance position by 1.\n position.position++\n\n // 9. Let encodedBody be the remainder of input.\n const encodedBody = input.slice(mimeTypeLength + 1)\n\n // 10. Let body be the percent-decoding of encodedBody.\n let body = stringPercentDecode(encodedBody)\n\n // 11. If mimeType ends with U+003B (;), followed by\n // zero or more U+0020 SPACE, followed by an ASCII\n // case-insensitive match for \"base64\", then:\n if (/;(\\u0020){0,}base64$/i.test(mimeType)) {\n // 1. Let stringBody be the isomorphic decode of body.\n const stringBody = isomorphicDecode(body)\n\n // 2. Set body to the forgiving-base64 decode of\n // stringBody.\n body = forgivingBase64(stringBody)\n\n // 3. If body is failure, then return failure.\n if (body === 'failure') {\n return 'failure'\n }\n\n // 4. Remove the last 6 code points from mimeType.\n mimeType = mimeType.slice(0, -6)\n\n // 5. Remove trailing U+0020 SPACE code points from mimeType,\n // if any.\n mimeType = mimeType.replace(/(\\u0020)+$/, '')\n\n // 6. Remove the last U+003B (;) code point from mimeType.\n mimeType = mimeType.slice(0, -1)\n }\n\n // 12. If mimeType starts with U+003B (;), then prepend\n // \"text/plain\" to mimeType.\n if (mimeType.startsWith(';')) {\n mimeType = 'text/plain' + mimeType\n }\n\n // 13. Let mimeTypeRecord be the result of parsing\n // mimeType.\n let mimeTypeRecord = parseMIMEType(mimeType)\n\n // 14. If mimeTypeRecord is failure, then set\n // mimeTypeRecord to text/plain;charset=US-ASCII.\n if (mimeTypeRecord === 'failure') {\n mimeTypeRecord = parseMIMEType('text/plain;charset=US-ASCII')\n }\n\n // 15. Return a new data: URL struct whose MIME\n // type is mimeTypeRecord and body is body.\n // https://fetch.spec.whatwg.org/#data-url-struct\n return { mimeType: mimeTypeRecord, body }\n}\n\n// https://url.spec.whatwg.org/#concept-url-serializer\n/**\n * @param {URL} url\n * @param {boolean} excludeFragment\n */\nfunction URLSerializer (url, excludeFragment = false) {\n if (!excludeFragment) {\n return url.href\n }\n\n const href = url.href\n const hashLength = url.hash.length\n\n return hashLength === 0 ? href : href.substring(0, href.length - hashLength)\n}\n\n// https://infra.spec.whatwg.org/#collect-a-sequence-of-code-points\n/**\n * @param {(char: string) => boolean} condition\n * @param {string} input\n * @param {{ position: number }} position\n */\nfunction collectASequenceOfCodePoints (condition, input, position) {\n // 1. Let result be the empty string.\n let result = ''\n\n // 2. While position doesn’t point past the end of input and the\n // code point at position within input meets the condition condition:\n while (position.position < input.length && condition(input[position.position])) {\n // 1. Append that code point to the end of result.\n result += input[position.position]\n\n // 2. Advance position by 1.\n position.position++\n }\n\n // 3. Return result.\n return result\n}\n\n/**\n * A faster collectASequenceOfCodePoints that only works when comparing a single character.\n * @param {string} char\n * @param {string} input\n * @param {{ position: number }} position\n */\nfunction collectASequenceOfCodePointsFast (char, input, position) {\n const idx = input.indexOf(char, position.position)\n const start = position.position\n\n if (idx === -1) {\n position.position = input.length\n return input.slice(start)\n }\n\n position.position = idx\n return input.slice(start, position.position)\n}\n\n// https://url.spec.whatwg.org/#string-percent-decode\n/** @param {string} input */\nfunction stringPercentDecode (input) {\n // 1. Let bytes be the UTF-8 encoding of input.\n const bytes = encoder.encode(input)\n\n // 2. Return the percent-decoding of bytes.\n return percentDecode(bytes)\n}\n\n// https://url.spec.whatwg.org/#percent-decode\n/** @param {Uint8Array} input */\nfunction percentDecode (input) {\n // 1. Let output be an empty byte sequence.\n /** @type {number[]} */\n const output = []\n\n // 2. For each byte byte in input:\n for (let i = 0; i < input.length; i++) {\n const byte = input[i]\n\n // 1. If byte is not 0x25 (%), then append byte to output.\n if (byte !== 0x25) {\n output.push(byte)\n\n // 2. Otherwise, if byte is 0x25 (%) and the next two bytes\n // after byte in input are not in the ranges\n // 0x30 (0) to 0x39 (9), 0x41 (A) to 0x46 (F),\n // and 0x61 (a) to 0x66 (f), all inclusive, append byte\n // to output.\n } else if (\n byte === 0x25 &&\n !/^[0-9A-Fa-f]{2}$/i.test(String.fromCharCode(input[i + 1], input[i + 2]))\n ) {\n output.push(0x25)\n\n // 3. Otherwise:\n } else {\n // 1. Let bytePoint be the two bytes after byte in input,\n // decoded, and then interpreted as hexadecimal number.\n const nextTwoBytes = String.fromCharCode(input[i + 1], input[i + 2])\n const bytePoint = Number.parseInt(nextTwoBytes, 16)\n\n // 2. Append a byte whose value is bytePoint to output.\n output.push(bytePoint)\n\n // 3. Skip the next two bytes in input.\n i += 2\n }\n }\n\n // 3. Return output.\n return Uint8Array.from(output)\n}\n\n// https://mimesniff.spec.whatwg.org/#parse-a-mime-type\n/** @param {string} input */\nfunction parseMIMEType (input) {\n // 1. Remove any leading and trailing HTTP whitespace\n // from input.\n input = removeHTTPWhitespace(input, true, true)\n\n // 2. Let position be a position variable for input,\n // initially pointing at the start of input.\n const position = { position: 0 }\n\n // 3. Let type be the result of collecting a sequence\n // of code points that are not U+002F (/) from\n // input, given position.\n const type = collectASequenceOfCodePointsFast(\n '/',\n input,\n position\n )\n\n // 4. If type is the empty string or does not solely\n // contain HTTP token code points, then return failure.\n // https://mimesniff.spec.whatwg.org/#http-token-code-point\n if (type.length === 0 || !HTTP_TOKEN_CODEPOINTS.test(type)) {\n return 'failure'\n }\n\n // 5. If position is past the end of input, then return\n // failure\n if (position.position > input.length) {\n return 'failure'\n }\n\n // 6. Advance position by 1. (This skips past U+002F (/).)\n position.position++\n\n // 7. Let subtype be the result of collecting a sequence of\n // code points that are not U+003B (;) from input, given\n // position.\n let subtype = collectASequenceOfCodePointsFast(\n ';',\n input,\n position\n )\n\n // 8. Remove any trailing HTTP whitespace from subtype.\n subtype = removeHTTPWhitespace(subtype, false, true)\n\n // 9. If subtype is the empty string or does not solely\n // contain HTTP token code points, then return failure.\n if (subtype.length === 0 || !HTTP_TOKEN_CODEPOINTS.test(subtype)) {\n return 'failure'\n }\n\n const typeLowercase = type.toLowerCase()\n const subtypeLowercase = subtype.toLowerCase()\n\n // 10. Let mimeType be a new MIME type record whose type\n // is type, in ASCII lowercase, and subtype is subtype,\n // in ASCII lowercase.\n // https://mimesniff.spec.whatwg.org/#mime-type\n const mimeType = {\n type: typeLowercase,\n subtype: subtypeLowercase,\n /** @type {Map} */\n parameters: new Map(),\n // https://mimesniff.spec.whatwg.org/#mime-type-essence\n essence: `${typeLowercase}/${subtypeLowercase}`\n }\n\n // 11. While position is not past the end of input:\n while (position.position < input.length) {\n // 1. Advance position by 1. (This skips past U+003B (;).)\n position.position++\n\n // 2. Collect a sequence of code points that are HTTP\n // whitespace from input given position.\n collectASequenceOfCodePoints(\n // https://fetch.spec.whatwg.org/#http-whitespace\n char => HTTP_WHITESPACE_REGEX.test(char),\n input,\n position\n )\n\n // 3. Let parameterName be the result of collecting a\n // sequence of code points that are not U+003B (;)\n // or U+003D (=) from input, given position.\n let parameterName = collectASequenceOfCodePoints(\n (char) => char !== ';' && char !== '=',\n input,\n position\n )\n\n // 4. Set parameterName to parameterName, in ASCII\n // lowercase.\n parameterName = parameterName.toLowerCase()\n\n // 5. If position is not past the end of input, then:\n if (position.position < input.length) {\n // 1. If the code point at position within input is\n // U+003B (;), then continue.\n if (input[position.position] === ';') {\n continue\n }\n\n // 2. Advance position by 1. (This skips past U+003D (=).)\n position.position++\n }\n\n // 6. If position is past the end of input, then break.\n if (position.position > input.length) {\n break\n }\n\n // 7. Let parameterValue be null.\n let parameterValue = null\n\n // 8. If the code point at position within input is\n // U+0022 (\"), then:\n if (input[position.position] === '\"') {\n // 1. Set parameterValue to the result of collecting\n // an HTTP quoted string from input, given position\n // and the extract-value flag.\n parameterValue = collectAnHTTPQuotedString(input, position, true)\n\n // 2. Collect a sequence of code points that are not\n // U+003B (;) from input, given position.\n collectASequenceOfCodePointsFast(\n ';',\n input,\n position\n )\n\n // 9. Otherwise:\n } else {\n // 1. Set parameterValue to the result of collecting\n // a sequence of code points that are not U+003B (;)\n // from input, given position.\n parameterValue = collectASequenceOfCodePointsFast(\n ';',\n input,\n position\n )\n\n // 2. Remove any trailing HTTP whitespace from parameterValue.\n parameterValue = removeHTTPWhitespace(parameterValue, false, true)\n\n // 3. If parameterValue is the empty string, then continue.\n if (parameterValue.length === 0) {\n continue\n }\n }\n\n // 10. If all of the following are true\n // - parameterName is not the empty string\n // - parameterName solely contains HTTP token code points\n // - parameterValue solely contains HTTP quoted-string token code points\n // - mimeType’s parameters[parameterName] does not exist\n // then set mimeType’s parameters[parameterName] to parameterValue.\n if (\n parameterName.length !== 0 &&\n HTTP_TOKEN_CODEPOINTS.test(parameterName) &&\n (parameterValue.length === 0 || HTTP_QUOTED_STRING_TOKENS.test(parameterValue)) &&\n !mimeType.parameters.has(parameterName)\n ) {\n mimeType.parameters.set(parameterName, parameterValue)\n }\n }\n\n // 12. Return mimeType.\n return mimeType\n}\n\n// https://infra.spec.whatwg.org/#forgiving-base64-decode\n/** @param {string} data */\nfunction forgivingBase64 (data) {\n // 1. Remove all ASCII whitespace from data.\n data = data.replace(/[\\u0009\\u000A\\u000C\\u000D\\u0020]/g, '') // eslint-disable-line\n\n // 2. If data’s code point length divides by 4 leaving\n // no remainder, then:\n if (data.length % 4 === 0) {\n // 1. If data ends with one or two U+003D (=) code points,\n // then remove them from data.\n data = data.replace(/=?=$/, '')\n }\n\n // 3. If data’s code point length divides by 4 leaving\n // a remainder of 1, then return failure.\n if (data.length % 4 === 1) {\n return 'failure'\n }\n\n // 4. If data contains a code point that is not one of\n // U+002B (+)\n // U+002F (/)\n // ASCII alphanumeric\n // then return failure.\n if (/[^+/0-9A-Za-z]/.test(data)) {\n return 'failure'\n }\n\n const binary = atob(data)\n const bytes = new Uint8Array(binary.length)\n\n for (let byte = 0; byte < binary.length; byte++) {\n bytes[byte] = binary.charCodeAt(byte)\n }\n\n return bytes\n}\n\n// https://fetch.spec.whatwg.org/#collect-an-http-quoted-string\n// tests: https://fetch.spec.whatwg.org/#example-http-quoted-string\n/**\n * @param {string} input\n * @param {{ position: number }} position\n * @param {boolean?} extractValue\n */\nfunction collectAnHTTPQuotedString (input, position, extractValue) {\n // 1. Let positionStart be position.\n const positionStart = position.position\n\n // 2. Let value be the empty string.\n let value = ''\n\n // 3. Assert: the code point at position within input\n // is U+0022 (\").\n assert(input[position.position] === '\"')\n\n // 4. Advance position by 1.\n position.position++\n\n // 5. While true:\n while (true) {\n // 1. Append the result of collecting a sequence of code points\n // that are not U+0022 (\") or U+005C (\\) from input, given\n // position, to value.\n value += collectASequenceOfCodePoints(\n (char) => char !== '\"' && char !== '\\\\',\n input,\n position\n )\n\n // 2. If position is past the end of input, then break.\n if (position.position >= input.length) {\n break\n }\n\n // 3. Let quoteOrBackslash be the code point at position within\n // input.\n const quoteOrBackslash = input[position.position]\n\n // 4. Advance position by 1.\n position.position++\n\n // 5. If quoteOrBackslash is U+005C (\\), then:\n if (quoteOrBackslash === '\\\\') {\n // 1. If position is past the end of input, then append\n // U+005C (\\) to value and break.\n if (position.position >= input.length) {\n value += '\\\\'\n break\n }\n\n // 2. Append the code point at position within input to value.\n value += input[position.position]\n\n // 3. Advance position by 1.\n position.position++\n\n // 6. Otherwise:\n } else {\n // 1. Assert: quoteOrBackslash is U+0022 (\").\n assert(quoteOrBackslash === '\"')\n\n // 2. Break.\n break\n }\n }\n\n // 6. If the extract-value flag is set, then return value.\n if (extractValue) {\n return value\n }\n\n // 7. Return the code points from positionStart to position,\n // inclusive, within input.\n return input.slice(positionStart, position.position)\n}\n\n/**\n * @see https://mimesniff.spec.whatwg.org/#serialize-a-mime-type\n */\nfunction serializeAMimeType (mimeType) {\n assert(mimeType !== 'failure')\n const { parameters, essence } = mimeType\n\n // 1. Let serialization be the concatenation of mimeType’s\n // type, U+002F (/), and mimeType’s subtype.\n let serialization = essence\n\n // 2. For each name → value of mimeType’s parameters:\n for (let [name, value] of parameters.entries()) {\n // 1. Append U+003B (;) to serialization.\n serialization += ';'\n\n // 2. Append name to serialization.\n serialization += name\n\n // 3. Append U+003D (=) to serialization.\n serialization += '='\n\n // 4. If value does not solely contain HTTP token code\n // points or value is the empty string, then:\n if (!HTTP_TOKEN_CODEPOINTS.test(value)) {\n // 1. Precede each occurence of U+0022 (\") or\n // U+005C (\\) in value with U+005C (\\).\n value = value.replace(/(\\\\|\")/g, '\\\\$1')\n\n // 2. Prepend U+0022 (\") to value.\n value = '\"' + value\n\n // 3. Append U+0022 (\") to value.\n value += '\"'\n }\n\n // 5. Append value to serialization.\n serialization += value\n }\n\n // 3. Return serialization.\n return serialization\n}\n\n/**\n * @see https://fetch.spec.whatwg.org/#http-whitespace\n * @param {string} char\n */\nfunction isHTTPWhiteSpace (char) {\n return char === '\\r' || char === '\\n' || char === '\\t' || char === ' '\n}\n\n/**\n * @see https://fetch.spec.whatwg.org/#http-whitespace\n * @param {string} str\n */\nfunction removeHTTPWhitespace (str, leading = true, trailing = true) {\n let lead = 0\n let trail = str.length - 1\n\n if (leading) {\n for (; lead < str.length && isHTTPWhiteSpace(str[lead]); lead++);\n }\n\n if (trailing) {\n for (; trail > 0 && isHTTPWhiteSpace(str[trail]); trail--);\n }\n\n return str.slice(lead, trail + 1)\n}\n\n/**\n * @see https://infra.spec.whatwg.org/#ascii-whitespace\n * @param {string} char\n */\nfunction isASCIIWhitespace (char) {\n return char === '\\r' || char === '\\n' || char === '\\t' || char === '\\f' || char === ' '\n}\n\n/**\n * @see https://infra.spec.whatwg.org/#strip-leading-and-trailing-ascii-whitespace\n */\nfunction removeASCIIWhitespace (str, leading = true, trailing = true) {\n let lead = 0\n let trail = str.length - 1\n\n if (leading) {\n for (; lead < str.length && isASCIIWhitespace(str[lead]); lead++);\n }\n\n if (trailing) {\n for (; trail > 0 && isASCIIWhitespace(str[trail]); trail--);\n }\n\n return str.slice(lead, trail + 1)\n}\n\nmodule.exports = {\n dataURLProcessor,\n URLSerializer,\n collectASequenceOfCodePoints,\n collectASequenceOfCodePointsFast,\n stringPercentDecode,\n parseMIMEType,\n collectAnHTTPQuotedString,\n serializeAMimeType\n}\n","'use strict'\n\nconst { Blob, File: NativeFile } = require('buffer')\nconst { types } = require('util')\nconst { kState } = require('./symbols')\nconst { isBlobLike } = require('./util')\nconst { webidl } = require('./webidl')\nconst { parseMIMEType, serializeAMimeType } = require('./dataURL')\nconst { kEnumerableProperty } = require('../core/util')\nconst encoder = new TextEncoder()\n\nclass File extends Blob {\n constructor (fileBits, fileName, options = {}) {\n // The File constructor is invoked with two or three parameters, depending\n // on whether the optional dictionary parameter is used. When the File()\n // constructor is invoked, user agents must run the following steps:\n webidl.argumentLengthCheck(arguments, 2, { header: 'File constructor' })\n\n fileBits = webidl.converters['sequence'](fileBits)\n fileName = webidl.converters.USVString(fileName)\n options = webidl.converters.FilePropertyBag(options)\n\n // 1. Let bytes be the result of processing blob parts given fileBits and\n // options.\n // Note: Blob handles this for us\n\n // 2. Let n be the fileName argument to the constructor.\n const n = fileName\n\n // 3. Process FilePropertyBag dictionary argument by running the following\n // substeps:\n\n // 1. If the type member is provided and is not the empty string, let t\n // be set to the type dictionary member. If t contains any characters\n // outside the range U+0020 to U+007E, then set t to the empty string\n // and return from these substeps.\n // 2. Convert every character in t to ASCII lowercase.\n let t = options.type\n let d\n\n // eslint-disable-next-line no-labels\n substep: {\n if (t) {\n t = parseMIMEType(t)\n\n if (t === 'failure') {\n t = ''\n // eslint-disable-next-line no-labels\n break substep\n }\n\n t = serializeAMimeType(t).toLowerCase()\n }\n\n // 3. If the lastModified member is provided, let d be set to the\n // lastModified dictionary member. If it is not provided, set d to the\n // current date and time represented as the number of milliseconds since\n // the Unix Epoch (which is the equivalent of Date.now() [ECMA-262]).\n d = options.lastModified\n }\n\n // 4. Return a new File object F such that:\n // F refers to the bytes byte sequence.\n // F.size is set to the number of total bytes in bytes.\n // F.name is set to n.\n // F.type is set to t.\n // F.lastModified is set to d.\n\n super(processBlobParts(fileBits, options), { type: t })\n this[kState] = {\n name: n,\n lastModified: d,\n type: t\n }\n }\n\n get name () {\n webidl.brandCheck(this, File)\n\n return this[kState].name\n }\n\n get lastModified () {\n webidl.brandCheck(this, File)\n\n return this[kState].lastModified\n }\n\n get type () {\n webidl.brandCheck(this, File)\n\n return this[kState].type\n }\n}\n\nclass FileLike {\n constructor (blobLike, fileName, options = {}) {\n // TODO: argument idl type check\n\n // The File constructor is invoked with two or three parameters, depending\n // on whether the optional dictionary parameter is used. When the File()\n // constructor is invoked, user agents must run the following steps:\n\n // 1. Let bytes be the result of processing blob parts given fileBits and\n // options.\n\n // 2. Let n be the fileName argument to the constructor.\n const n = fileName\n\n // 3. Process FilePropertyBag dictionary argument by running the following\n // substeps:\n\n // 1. If the type member is provided and is not the empty string, let t\n // be set to the type dictionary member. If t contains any characters\n // outside the range U+0020 to U+007E, then set t to the empty string\n // and return from these substeps.\n // TODO\n const t = options.type\n\n // 2. Convert every character in t to ASCII lowercase.\n // TODO\n\n // 3. If the lastModified member is provided, let d be set to the\n // lastModified dictionary member. If it is not provided, set d to the\n // current date and time represented as the number of milliseconds since\n // the Unix Epoch (which is the equivalent of Date.now() [ECMA-262]).\n const d = options.lastModified ?? Date.now()\n\n // 4. Return a new File object F such that:\n // F refers to the bytes byte sequence.\n // F.size is set to the number of total bytes in bytes.\n // F.name is set to n.\n // F.type is set to t.\n // F.lastModified is set to d.\n\n this[kState] = {\n blobLike,\n name: n,\n type: t,\n lastModified: d\n }\n }\n\n stream (...args) {\n webidl.brandCheck(this, FileLike)\n\n return this[kState].blobLike.stream(...args)\n }\n\n arrayBuffer (...args) {\n webidl.brandCheck(this, FileLike)\n\n return this[kState].blobLike.arrayBuffer(...args)\n }\n\n slice (...args) {\n webidl.brandCheck(this, FileLike)\n\n return this[kState].blobLike.slice(...args)\n }\n\n text (...args) {\n webidl.brandCheck(this, FileLike)\n\n return this[kState].blobLike.text(...args)\n }\n\n get size () {\n webidl.brandCheck(this, FileLike)\n\n return this[kState].blobLike.size\n }\n\n get type () {\n webidl.brandCheck(this, FileLike)\n\n return this[kState].blobLike.type\n }\n\n get name () {\n webidl.brandCheck(this, FileLike)\n\n return this[kState].name\n }\n\n get lastModified () {\n webidl.brandCheck(this, FileLike)\n\n return this[kState].lastModified\n }\n\n get [Symbol.toStringTag] () {\n return 'File'\n }\n}\n\nObject.defineProperties(File.prototype, {\n [Symbol.toStringTag]: {\n value: 'File',\n configurable: true\n },\n name: kEnumerableProperty,\n lastModified: kEnumerableProperty\n})\n\nwebidl.converters.Blob = webidl.interfaceConverter(Blob)\n\nwebidl.converters.BlobPart = function (V, opts) {\n if (webidl.util.Type(V) === 'Object') {\n if (isBlobLike(V)) {\n return webidl.converters.Blob(V, { strict: false })\n }\n\n if (\n ArrayBuffer.isView(V) ||\n types.isAnyArrayBuffer(V)\n ) {\n return webidl.converters.BufferSource(V, opts)\n }\n }\n\n return webidl.converters.USVString(V, opts)\n}\n\nwebidl.converters['sequence'] = webidl.sequenceConverter(\n webidl.converters.BlobPart\n)\n\n// https://www.w3.org/TR/FileAPI/#dfn-FilePropertyBag\nwebidl.converters.FilePropertyBag = webidl.dictionaryConverter([\n {\n key: 'lastModified',\n converter: webidl.converters['long long'],\n get defaultValue () {\n return Date.now()\n }\n },\n {\n key: 'type',\n converter: webidl.converters.DOMString,\n defaultValue: ''\n },\n {\n key: 'endings',\n converter: (value) => {\n value = webidl.converters.DOMString(value)\n value = value.toLowerCase()\n\n if (value !== 'native') {\n value = 'transparent'\n }\n\n return value\n },\n defaultValue: 'transparent'\n }\n])\n\n/**\n * @see https://www.w3.org/TR/FileAPI/#process-blob-parts\n * @param {(NodeJS.TypedArray|Blob|string)[]} parts\n * @param {{ type: string, endings: string }} options\n */\nfunction processBlobParts (parts, options) {\n // 1. Let bytes be an empty sequence of bytes.\n /** @type {NodeJS.TypedArray[]} */\n const bytes = []\n\n // 2. For each element in parts:\n for (const element of parts) {\n // 1. If element is a USVString, run the following substeps:\n if (typeof element === 'string') {\n // 1. Let s be element.\n let s = element\n\n // 2. If the endings member of options is \"native\", set s\n // to the result of converting line endings to native\n // of element.\n if (options.endings === 'native') {\n s = convertLineEndingsNative(s)\n }\n\n // 3. Append the result of UTF-8 encoding s to bytes.\n bytes.push(encoder.encode(s))\n } else if (\n types.isAnyArrayBuffer(element) ||\n types.isTypedArray(element)\n ) {\n // 2. If element is a BufferSource, get a copy of the\n // bytes held by the buffer source, and append those\n // bytes to bytes.\n if (!element.buffer) { // ArrayBuffer\n bytes.push(new Uint8Array(element))\n } else {\n bytes.push(\n new Uint8Array(element.buffer, element.byteOffset, element.byteLength)\n )\n }\n } else if (isBlobLike(element)) {\n // 3. If element is a Blob, append the bytes it represents\n // to bytes.\n bytes.push(element)\n }\n }\n\n // 3. Return bytes.\n return bytes\n}\n\n/**\n * @see https://www.w3.org/TR/FileAPI/#convert-line-endings-to-native\n * @param {string} s\n */\nfunction convertLineEndingsNative (s) {\n // 1. Let native line ending be be the code point U+000A LF.\n let nativeLineEnding = '\\n'\n\n // 2. If the underlying platform’s conventions are to\n // represent newlines as a carriage return and line feed\n // sequence, set native line ending to the code point\n // U+000D CR followed by the code point U+000A LF.\n if (process.platform === 'win32') {\n nativeLineEnding = '\\r\\n'\n }\n\n return s.replace(/\\r?\\n/g, nativeLineEnding)\n}\n\n// If this function is moved to ./util.js, some tools (such as\n// rollup) will warn about circular dependencies. See:\n// https://github.com/nodejs/undici/issues/1629\nfunction isFileLike (object) {\n return (\n (NativeFile && object instanceof NativeFile) ||\n object instanceof File || (\n object &&\n (typeof object.stream === 'function' ||\n typeof object.arrayBuffer === 'function') &&\n object[Symbol.toStringTag] === 'File'\n )\n )\n}\n\nmodule.exports = { File, FileLike, isFileLike }\n","'use strict'\n\nconst { isBlobLike, toUSVString, makeIterator } = require('./util')\nconst { kState } = require('./symbols')\nconst { File: UndiciFile, FileLike, isFileLike } = require('./file')\nconst { webidl } = require('./webidl')\nconst { Blob, File: NativeFile } = require('buffer')\n\n/** @type {globalThis['File']} */\nconst File = NativeFile ?? UndiciFile\n\n// https://xhr.spec.whatwg.org/#formdata\nclass FormData {\n constructor (form) {\n if (form !== undefined) {\n throw webidl.errors.conversionFailed({\n prefix: 'FormData constructor',\n argument: 'Argument 1',\n types: ['undefined']\n })\n }\n\n this[kState] = []\n }\n\n append (name, value, filename = undefined) {\n webidl.brandCheck(this, FormData)\n\n webidl.argumentLengthCheck(arguments, 2, { header: 'FormData.append' })\n\n if (arguments.length === 3 && !isBlobLike(value)) {\n throw new TypeError(\n \"Failed to execute 'append' on 'FormData': parameter 2 is not of type 'Blob'\"\n )\n }\n\n // 1. Let value be value if given; otherwise blobValue.\n\n name = webidl.converters.USVString(name)\n value = isBlobLike(value)\n ? webidl.converters.Blob(value, { strict: false })\n : webidl.converters.USVString(value)\n filename = arguments.length === 3\n ? webidl.converters.USVString(filename)\n : undefined\n\n // 2. Let entry be the result of creating an entry with\n // name, value, and filename if given.\n const entry = makeEntry(name, value, filename)\n\n // 3. Append entry to this’s entry list.\n this[kState].push(entry)\n }\n\n delete (name) {\n webidl.brandCheck(this, FormData)\n\n webidl.argumentLengthCheck(arguments, 1, { header: 'FormData.delete' })\n\n name = webidl.converters.USVString(name)\n\n // The delete(name) method steps are to remove all entries whose name\n // is name from this’s entry list.\n this[kState] = this[kState].filter(entry => entry.name !== name)\n }\n\n get (name) {\n webidl.brandCheck(this, FormData)\n\n webidl.argumentLengthCheck(arguments, 1, { header: 'FormData.get' })\n\n name = webidl.converters.USVString(name)\n\n // 1. If there is no entry whose name is name in this’s entry list,\n // then return null.\n const idx = this[kState].findIndex((entry) => entry.name === name)\n if (idx === -1) {\n return null\n }\n\n // 2. Return the value of the first entry whose name is name from\n // this’s entry list.\n return this[kState][idx].value\n }\n\n getAll (name) {\n webidl.brandCheck(this, FormData)\n\n webidl.argumentLengthCheck(arguments, 1, { header: 'FormData.getAll' })\n\n name = webidl.converters.USVString(name)\n\n // 1. If there is no entry whose name is name in this’s entry list,\n // then return the empty list.\n // 2. Return the values of all entries whose name is name, in order,\n // from this’s entry list.\n return this[kState]\n .filter((entry) => entry.name === name)\n .map((entry) => entry.value)\n }\n\n has (name) {\n webidl.brandCheck(this, FormData)\n\n webidl.argumentLengthCheck(arguments, 1, { header: 'FormData.has' })\n\n name = webidl.converters.USVString(name)\n\n // The has(name) method steps are to return true if there is an entry\n // whose name is name in this’s entry list; otherwise false.\n return this[kState].findIndex((entry) => entry.name === name) !== -1\n }\n\n set (name, value, filename = undefined) {\n webidl.brandCheck(this, FormData)\n\n webidl.argumentLengthCheck(arguments, 2, { header: 'FormData.set' })\n\n if (arguments.length === 3 && !isBlobLike(value)) {\n throw new TypeError(\n \"Failed to execute 'set' on 'FormData': parameter 2 is not of type 'Blob'\"\n )\n }\n\n // The set(name, value) and set(name, blobValue, filename) method steps\n // are:\n\n // 1. Let value be value if given; otherwise blobValue.\n\n name = webidl.converters.USVString(name)\n value = isBlobLike(value)\n ? webidl.converters.Blob(value, { strict: false })\n : webidl.converters.USVString(value)\n filename = arguments.length === 3\n ? toUSVString(filename)\n : undefined\n\n // 2. Let entry be the result of creating an entry with name, value, and\n // filename if given.\n const entry = makeEntry(name, value, filename)\n\n // 3. If there are entries in this’s entry list whose name is name, then\n // replace the first such entry with entry and remove the others.\n const idx = this[kState].findIndex((entry) => entry.name === name)\n if (idx !== -1) {\n this[kState] = [\n ...this[kState].slice(0, idx),\n entry,\n ...this[kState].slice(idx + 1).filter((entry) => entry.name !== name)\n ]\n } else {\n // 4. Otherwise, append entry to this’s entry list.\n this[kState].push(entry)\n }\n }\n\n entries () {\n webidl.brandCheck(this, FormData)\n\n return makeIterator(\n () => this[kState].map(pair => [pair.name, pair.value]),\n 'FormData',\n 'key+value'\n )\n }\n\n keys () {\n webidl.brandCheck(this, FormData)\n\n return makeIterator(\n () => this[kState].map(pair => [pair.name, pair.value]),\n 'FormData',\n 'key'\n )\n }\n\n values () {\n webidl.brandCheck(this, FormData)\n\n return makeIterator(\n () => this[kState].map(pair => [pair.name, pair.value]),\n 'FormData',\n 'value'\n )\n }\n\n /**\n * @param {(value: string, key: string, self: FormData) => void} callbackFn\n * @param {unknown} thisArg\n */\n forEach (callbackFn, thisArg = globalThis) {\n webidl.brandCheck(this, FormData)\n\n webidl.argumentLengthCheck(arguments, 1, { header: 'FormData.forEach' })\n\n if (typeof callbackFn !== 'function') {\n throw new TypeError(\n \"Failed to execute 'forEach' on 'FormData': parameter 1 is not of type 'Function'.\"\n )\n }\n\n for (const [key, value] of this) {\n callbackFn.apply(thisArg, [value, key, this])\n }\n }\n}\n\nFormData.prototype[Symbol.iterator] = FormData.prototype.entries\n\nObject.defineProperties(FormData.prototype, {\n [Symbol.toStringTag]: {\n value: 'FormData',\n configurable: true\n }\n})\n\n/**\n * @see https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#create-an-entry\n * @param {string} name\n * @param {string|Blob} value\n * @param {?string} filename\n * @returns\n */\nfunction makeEntry (name, value, filename) {\n // 1. Set name to the result of converting name into a scalar value string.\n // \"To convert a string into a scalar value string, replace any surrogates\n // with U+FFFD.\"\n // see: https://nodejs.org/dist/latest-v18.x/docs/api/buffer.html#buftostringencoding-start-end\n name = Buffer.from(name).toString('utf8')\n\n // 2. If value is a string, then set value to the result of converting\n // value into a scalar value string.\n if (typeof value === 'string') {\n value = Buffer.from(value).toString('utf8')\n } else {\n // 3. Otherwise:\n\n // 1. If value is not a File object, then set value to a new File object,\n // representing the same bytes, whose name attribute value is \"blob\"\n if (!isFileLike(value)) {\n value = value instanceof Blob\n ? new File([value], 'blob', { type: value.type })\n : new FileLike(value, 'blob', { type: value.type })\n }\n\n // 2. If filename is given, then set value to a new File object,\n // representing the same bytes, whose name attribute is filename.\n if (filename !== undefined) {\n /** @type {FilePropertyBag} */\n const options = {\n type: value.type,\n lastModified: value.lastModified\n }\n\n value = (NativeFile && value instanceof NativeFile) || value instanceof UndiciFile\n ? new File([value], filename, options)\n : new FileLike(value, filename, options)\n }\n }\n\n // 4. Return an entry whose name is name and whose value is value.\n return { name, value }\n}\n\nmodule.exports = { FormData }\n","'use strict'\n\n// In case of breaking changes, increase the version\n// number to avoid conflicts.\nconst globalOrigin = Symbol.for('undici.globalOrigin.1')\n\nfunction getGlobalOrigin () {\n return globalThis[globalOrigin]\n}\n\nfunction setGlobalOrigin (newOrigin) {\n if (newOrigin === undefined) {\n Object.defineProperty(globalThis, globalOrigin, {\n value: undefined,\n writable: true,\n enumerable: false,\n configurable: false\n })\n\n return\n }\n\n const parsedURL = new URL(newOrigin)\n\n if (parsedURL.protocol !== 'http:' && parsedURL.protocol !== 'https:') {\n throw new TypeError(`Only http & https urls are allowed, received ${parsedURL.protocol}`)\n }\n\n Object.defineProperty(globalThis, globalOrigin, {\n value: parsedURL,\n writable: true,\n enumerable: false,\n configurable: false\n })\n}\n\nmodule.exports = {\n getGlobalOrigin,\n setGlobalOrigin\n}\n","// https://github.com/Ethan-Arrowood/undici-fetch\n\n'use strict'\n\nconst { kHeadersList, kConstruct } = require('../core/symbols')\nconst { kGuard } = require('./symbols')\nconst { kEnumerableProperty } = require('../core/util')\nconst {\n makeIterator,\n isValidHeaderName,\n isValidHeaderValue\n} = require('./util')\nconst util = require('util')\nconst { webidl } = require('./webidl')\nconst assert = require('assert')\n\nconst kHeadersMap = Symbol('headers map')\nconst kHeadersSortedMap = Symbol('headers map sorted')\n\n/**\n * @param {number} code\n */\nfunction isHTTPWhiteSpaceCharCode (code) {\n return code === 0x00a || code === 0x00d || code === 0x009 || code === 0x020\n}\n\n/**\n * @see https://fetch.spec.whatwg.org/#concept-header-value-normalize\n * @param {string} potentialValue\n */\nfunction headerValueNormalize (potentialValue) {\n // To normalize a byte sequence potentialValue, remove\n // any leading and trailing HTTP whitespace bytes from\n // potentialValue.\n let i = 0; let j = potentialValue.length\n\n while (j > i && isHTTPWhiteSpaceCharCode(potentialValue.charCodeAt(j - 1))) --j\n while (j > i && isHTTPWhiteSpaceCharCode(potentialValue.charCodeAt(i))) ++i\n\n return i === 0 && j === potentialValue.length ? potentialValue : potentialValue.substring(i, j)\n}\n\nfunction fill (headers, object) {\n // To fill a Headers object headers with a given object object, run these steps:\n\n // 1. If object is a sequence, then for each header in object:\n // Note: webidl conversion to array has already been done.\n if (Array.isArray(object)) {\n for (let i = 0; i < object.length; ++i) {\n const header = object[i]\n // 1. If header does not contain exactly two items, then throw a TypeError.\n if (header.length !== 2) {\n throw webidl.errors.exception({\n header: 'Headers constructor',\n message: `expected name/value pair to be length 2, found ${header.length}.`\n })\n }\n\n // 2. Append (header’s first item, header’s second item) to headers.\n appendHeader(headers, header[0], header[1])\n }\n } else if (typeof object === 'object' && object !== null) {\n // Note: null should throw\n\n // 2. Otherwise, object is a record, then for each key → value in object,\n // append (key, value) to headers\n const keys = Object.keys(object)\n for (let i = 0; i < keys.length; ++i) {\n appendHeader(headers, keys[i], object[keys[i]])\n }\n } else {\n throw webidl.errors.conversionFailed({\n prefix: 'Headers constructor',\n argument: 'Argument 1',\n types: ['sequence>', 'record']\n })\n }\n}\n\n/**\n * @see https://fetch.spec.whatwg.org/#concept-headers-append\n */\nfunction appendHeader (headers, name, value) {\n // 1. Normalize value.\n value = headerValueNormalize(value)\n\n // 2. If name is not a header name or value is not a\n // header value, then throw a TypeError.\n if (!isValidHeaderName(name)) {\n throw webidl.errors.invalidArgument({\n prefix: 'Headers.append',\n value: name,\n type: 'header name'\n })\n } else if (!isValidHeaderValue(value)) {\n throw webidl.errors.invalidArgument({\n prefix: 'Headers.append',\n value,\n type: 'header value'\n })\n }\n\n // 3. If headers’s guard is \"immutable\", then throw a TypeError.\n // 4. Otherwise, if headers’s guard is \"request\" and name is a\n // forbidden header name, return.\n // Note: undici does not implement forbidden header names\n if (headers[kGuard] === 'immutable') {\n throw new TypeError('immutable')\n } else if (headers[kGuard] === 'request-no-cors') {\n // 5. Otherwise, if headers’s guard is \"request-no-cors\":\n // TODO\n }\n\n // 6. Otherwise, if headers’s guard is \"response\" and name is a\n // forbidden response-header name, return.\n\n // 7. Append (name, value) to headers’s header list.\n return headers[kHeadersList].append(name, value)\n\n // 8. If headers’s guard is \"request-no-cors\", then remove\n // privileged no-CORS request headers from headers\n}\n\nclass HeadersList {\n /** @type {[string, string][]|null} */\n cookies = null\n\n constructor (init) {\n if (init instanceof HeadersList) {\n this[kHeadersMap] = new Map(init[kHeadersMap])\n this[kHeadersSortedMap] = init[kHeadersSortedMap]\n this.cookies = init.cookies === null ? null : [...init.cookies]\n } else {\n this[kHeadersMap] = new Map(init)\n this[kHeadersSortedMap] = null\n }\n }\n\n // https://fetch.spec.whatwg.org/#header-list-contains\n contains (name) {\n // A header list list contains a header name name if list\n // contains a header whose name is a byte-case-insensitive\n // match for name.\n name = name.toLowerCase()\n\n return this[kHeadersMap].has(name)\n }\n\n clear () {\n this[kHeadersMap].clear()\n this[kHeadersSortedMap] = null\n this.cookies = null\n }\n\n // https://fetch.spec.whatwg.org/#concept-header-list-append\n append (name, value) {\n this[kHeadersSortedMap] = null\n\n // 1. If list contains name, then set name to the first such\n // header’s name.\n const lowercaseName = name.toLowerCase()\n const exists = this[kHeadersMap].get(lowercaseName)\n\n // 2. Append (name, value) to list.\n if (exists) {\n const delimiter = lowercaseName === 'cookie' ? '; ' : ', '\n this[kHeadersMap].set(lowercaseName, {\n name: exists.name,\n value: `${exists.value}${delimiter}${value}`\n })\n } else {\n this[kHeadersMap].set(lowercaseName, { name, value })\n }\n\n if (lowercaseName === 'set-cookie') {\n this.cookies ??= []\n this.cookies.push(value)\n }\n }\n\n // https://fetch.spec.whatwg.org/#concept-header-list-set\n set (name, value) {\n this[kHeadersSortedMap] = null\n const lowercaseName = name.toLowerCase()\n\n if (lowercaseName === 'set-cookie') {\n this.cookies = [value]\n }\n\n // 1. If list contains name, then set the value of\n // the first such header to value and remove the\n // others.\n // 2. Otherwise, append header (name, value) to list.\n this[kHeadersMap].set(lowercaseName, { name, value })\n }\n\n // https://fetch.spec.whatwg.org/#concept-header-list-delete\n delete (name) {\n this[kHeadersSortedMap] = null\n\n name = name.toLowerCase()\n\n if (name === 'set-cookie') {\n this.cookies = null\n }\n\n this[kHeadersMap].delete(name)\n }\n\n // https://fetch.spec.whatwg.org/#concept-header-list-get\n get (name) {\n const value = this[kHeadersMap].get(name.toLowerCase())\n\n // 1. If list does not contain name, then return null.\n // 2. Return the values of all headers in list whose name\n // is a byte-case-insensitive match for name,\n // separated from each other by 0x2C 0x20, in order.\n return value === undefined ? null : value.value\n }\n\n * [Symbol.iterator] () {\n // use the lowercased name\n for (const [name, { value }] of this[kHeadersMap]) {\n yield [name, value]\n }\n }\n\n get entries () {\n const headers = {}\n\n if (this[kHeadersMap].size) {\n for (const { name, value } of this[kHeadersMap].values()) {\n headers[name] = value\n }\n }\n\n return headers\n }\n}\n\n// https://fetch.spec.whatwg.org/#headers-class\nclass Headers {\n constructor (init = undefined) {\n if (init === kConstruct) {\n return\n }\n this[kHeadersList] = new HeadersList()\n\n // The new Headers(init) constructor steps are:\n\n // 1. Set this’s guard to \"none\".\n this[kGuard] = 'none'\n\n // 2. If init is given, then fill this with init.\n if (init !== undefined) {\n init = webidl.converters.HeadersInit(init)\n fill(this, init)\n }\n }\n\n // https://fetch.spec.whatwg.org/#dom-headers-append\n append (name, value) {\n webidl.brandCheck(this, Headers)\n\n webidl.argumentLengthCheck(arguments, 2, { header: 'Headers.append' })\n\n name = webidl.converters.ByteString(name)\n value = webidl.converters.ByteString(value)\n\n return appendHeader(this, name, value)\n }\n\n // https://fetch.spec.whatwg.org/#dom-headers-delete\n delete (name) {\n webidl.brandCheck(this, Headers)\n\n webidl.argumentLengthCheck(arguments, 1, { header: 'Headers.delete' })\n\n name = webidl.converters.ByteString(name)\n\n // 1. If name is not a header name, then throw a TypeError.\n if (!isValidHeaderName(name)) {\n throw webidl.errors.invalidArgument({\n prefix: 'Headers.delete',\n value: name,\n type: 'header name'\n })\n }\n\n // 2. If this’s guard is \"immutable\", then throw a TypeError.\n // 3. Otherwise, if this’s guard is \"request\" and name is a\n // forbidden header name, return.\n // 4. Otherwise, if this’s guard is \"request-no-cors\", name\n // is not a no-CORS-safelisted request-header name, and\n // name is not a privileged no-CORS request-header name,\n // return.\n // 5. Otherwise, if this’s guard is \"response\" and name is\n // a forbidden response-header name, return.\n // Note: undici does not implement forbidden header names\n if (this[kGuard] === 'immutable') {\n throw new TypeError('immutable')\n } else if (this[kGuard] === 'request-no-cors') {\n // TODO\n }\n\n // 6. If this’s header list does not contain name, then\n // return.\n if (!this[kHeadersList].contains(name)) {\n return\n }\n\n // 7. Delete name from this’s header list.\n // 8. If this’s guard is \"request-no-cors\", then remove\n // privileged no-CORS request headers from this.\n this[kHeadersList].delete(name)\n }\n\n // https://fetch.spec.whatwg.org/#dom-headers-get\n get (name) {\n webidl.brandCheck(this, Headers)\n\n webidl.argumentLengthCheck(arguments, 1, { header: 'Headers.get' })\n\n name = webidl.converters.ByteString(name)\n\n // 1. If name is not a header name, then throw a TypeError.\n if (!isValidHeaderName(name)) {\n throw webidl.errors.invalidArgument({\n prefix: 'Headers.get',\n value: name,\n type: 'header name'\n })\n }\n\n // 2. Return the result of getting name from this’s header\n // list.\n return this[kHeadersList].get(name)\n }\n\n // https://fetch.spec.whatwg.org/#dom-headers-has\n has (name) {\n webidl.brandCheck(this, Headers)\n\n webidl.argumentLengthCheck(arguments, 1, { header: 'Headers.has' })\n\n name = webidl.converters.ByteString(name)\n\n // 1. If name is not a header name, then throw a TypeError.\n if (!isValidHeaderName(name)) {\n throw webidl.errors.invalidArgument({\n prefix: 'Headers.has',\n value: name,\n type: 'header name'\n })\n }\n\n // 2. Return true if this’s header list contains name;\n // otherwise false.\n return this[kHeadersList].contains(name)\n }\n\n // https://fetch.spec.whatwg.org/#dom-headers-set\n set (name, value) {\n webidl.brandCheck(this, Headers)\n\n webidl.argumentLengthCheck(arguments, 2, { header: 'Headers.set' })\n\n name = webidl.converters.ByteString(name)\n value = webidl.converters.ByteString(value)\n\n // 1. Normalize value.\n value = headerValueNormalize(value)\n\n // 2. If name is not a header name or value is not a\n // header value, then throw a TypeError.\n if (!isValidHeaderName(name)) {\n throw webidl.errors.invalidArgument({\n prefix: 'Headers.set',\n value: name,\n type: 'header name'\n })\n } else if (!isValidHeaderValue(value)) {\n throw webidl.errors.invalidArgument({\n prefix: 'Headers.set',\n value,\n type: 'header value'\n })\n }\n\n // 3. If this’s guard is \"immutable\", then throw a TypeError.\n // 4. Otherwise, if this’s guard is \"request\" and name is a\n // forbidden header name, return.\n // 5. Otherwise, if this’s guard is \"request-no-cors\" and\n // name/value is not a no-CORS-safelisted request-header,\n // return.\n // 6. Otherwise, if this’s guard is \"response\" and name is a\n // forbidden response-header name, return.\n // Note: undici does not implement forbidden header names\n if (this[kGuard] === 'immutable') {\n throw new TypeError('immutable')\n } else if (this[kGuard] === 'request-no-cors') {\n // TODO\n }\n\n // 7. Set (name, value) in this’s header list.\n // 8. If this’s guard is \"request-no-cors\", then remove\n // privileged no-CORS request headers from this\n this[kHeadersList].set(name, value)\n }\n\n // https://fetch.spec.whatwg.org/#dom-headers-getsetcookie\n getSetCookie () {\n webidl.brandCheck(this, Headers)\n\n // 1. If this’s header list does not contain `Set-Cookie`, then return « ».\n // 2. Return the values of all headers in this’s header list whose name is\n // a byte-case-insensitive match for `Set-Cookie`, in order.\n\n const list = this[kHeadersList].cookies\n\n if (list) {\n return [...list]\n }\n\n return []\n }\n\n // https://fetch.spec.whatwg.org/#concept-header-list-sort-and-combine\n get [kHeadersSortedMap] () {\n if (this[kHeadersList][kHeadersSortedMap]) {\n return this[kHeadersList][kHeadersSortedMap]\n }\n\n // 1. Let headers be an empty list of headers with the key being the name\n // and value the value.\n const headers = []\n\n // 2. Let names be the result of convert header names to a sorted-lowercase\n // set with all the names of the headers in list.\n const names = [...this[kHeadersList]].sort((a, b) => a[0] < b[0] ? -1 : 1)\n const cookies = this[kHeadersList].cookies\n\n // 3. For each name of names:\n for (let i = 0; i < names.length; ++i) {\n const [name, value] = names[i]\n // 1. If name is `set-cookie`, then:\n if (name === 'set-cookie') {\n // 1. Let values be a list of all values of headers in list whose name\n // is a byte-case-insensitive match for name, in order.\n\n // 2. For each value of values:\n // 1. Append (name, value) to headers.\n for (let j = 0; j < cookies.length; ++j) {\n headers.push([name, cookies[j]])\n }\n } else {\n // 2. Otherwise:\n\n // 1. Let value be the result of getting name from list.\n\n // 2. Assert: value is non-null.\n assert(value !== null)\n\n // 3. Append (name, value) to headers.\n headers.push([name, value])\n }\n }\n\n this[kHeadersList][kHeadersSortedMap] = headers\n\n // 4. Return headers.\n return headers\n }\n\n keys () {\n webidl.brandCheck(this, Headers)\n\n if (this[kGuard] === 'immutable') {\n const value = this[kHeadersSortedMap]\n return makeIterator(() => value, 'Headers',\n 'key')\n }\n\n return makeIterator(\n () => [...this[kHeadersSortedMap].values()],\n 'Headers',\n 'key'\n )\n }\n\n values () {\n webidl.brandCheck(this, Headers)\n\n if (this[kGuard] === 'immutable') {\n const value = this[kHeadersSortedMap]\n return makeIterator(() => value, 'Headers',\n 'value')\n }\n\n return makeIterator(\n () => [...this[kHeadersSortedMap].values()],\n 'Headers',\n 'value'\n )\n }\n\n entries () {\n webidl.brandCheck(this, Headers)\n\n if (this[kGuard] === 'immutable') {\n const value = this[kHeadersSortedMap]\n return makeIterator(() => value, 'Headers',\n 'key+value')\n }\n\n return makeIterator(\n () => [...this[kHeadersSortedMap].values()],\n 'Headers',\n 'key+value'\n )\n }\n\n /**\n * @param {(value: string, key: string, self: Headers) => void} callbackFn\n * @param {unknown} thisArg\n */\n forEach (callbackFn, thisArg = globalThis) {\n webidl.brandCheck(this, Headers)\n\n webidl.argumentLengthCheck(arguments, 1, { header: 'Headers.forEach' })\n\n if (typeof callbackFn !== 'function') {\n throw new TypeError(\n \"Failed to execute 'forEach' on 'Headers': parameter 1 is not of type 'Function'.\"\n )\n }\n\n for (const [key, value] of this) {\n callbackFn.apply(thisArg, [value, key, this])\n }\n }\n\n [Symbol.for('nodejs.util.inspect.custom')] () {\n webidl.brandCheck(this, Headers)\n\n return this[kHeadersList]\n }\n}\n\nHeaders.prototype[Symbol.iterator] = Headers.prototype.entries\n\nObject.defineProperties(Headers.prototype, {\n append: kEnumerableProperty,\n delete: kEnumerableProperty,\n get: kEnumerableProperty,\n has: kEnumerableProperty,\n set: kEnumerableProperty,\n getSetCookie: kEnumerableProperty,\n keys: kEnumerableProperty,\n values: kEnumerableProperty,\n entries: kEnumerableProperty,\n forEach: kEnumerableProperty,\n [Symbol.iterator]: { enumerable: false },\n [Symbol.toStringTag]: {\n value: 'Headers',\n configurable: true\n },\n [util.inspect.custom]: {\n enumerable: false\n }\n})\n\nwebidl.converters.HeadersInit = function (V) {\n if (webidl.util.Type(V) === 'Object') {\n if (V[Symbol.iterator]) {\n return webidl.converters['sequence>'](V)\n }\n\n return webidl.converters['record'](V)\n }\n\n throw webidl.errors.conversionFailed({\n prefix: 'Headers constructor',\n argument: 'Argument 1',\n types: ['sequence>', 'record']\n })\n}\n\nmodule.exports = {\n fill,\n Headers,\n HeadersList\n}\n","// https://github.com/Ethan-Arrowood/undici-fetch\n\n'use strict'\n\nconst {\n Response,\n makeNetworkError,\n makeAppropriateNetworkError,\n filterResponse,\n makeResponse\n} = require('./response')\nconst { Headers } = require('./headers')\nconst { Request, makeRequest } = require('./request')\nconst zlib = require('zlib')\nconst {\n bytesMatch,\n makePolicyContainer,\n clonePolicyContainer,\n requestBadPort,\n TAOCheck,\n appendRequestOriginHeader,\n responseLocationURL,\n requestCurrentURL,\n setRequestReferrerPolicyOnRedirect,\n tryUpgradeRequestToAPotentiallyTrustworthyURL,\n createOpaqueTimingInfo,\n appendFetchMetadata,\n corsCheck,\n crossOriginResourcePolicyCheck,\n determineRequestsReferrer,\n coarsenedSharedCurrentTime,\n createDeferredPromise,\n isBlobLike,\n sameOrigin,\n isCancelled,\n isAborted,\n isErrorLike,\n fullyReadBody,\n readableStreamClose,\n isomorphicEncode,\n urlIsLocal,\n urlIsHttpHttpsScheme,\n urlHasHttpsScheme\n} = require('./util')\nconst { kState, kHeaders, kGuard, kRealm } = require('./symbols')\nconst assert = require('assert')\nconst { safelyExtractBody } = require('./body')\nconst {\n redirectStatusSet,\n nullBodyStatus,\n safeMethodsSet,\n requestBodyHeader,\n subresourceSet,\n DOMException\n} = require('./constants')\nconst { kHeadersList } = require('../core/symbols')\nconst EE = require('events')\nconst { Readable, pipeline } = require('stream')\nconst { addAbortListener, isErrored, isReadable, nodeMajor, nodeMinor } = require('../core/util')\nconst { dataURLProcessor, serializeAMimeType } = require('./dataURL')\nconst { TransformStream } = require('stream/web')\nconst { getGlobalDispatcher } = require('../global')\nconst { webidl } = require('./webidl')\nconst { STATUS_CODES } = require('http')\nconst GET_OR_HEAD = ['GET', 'HEAD']\n\n/** @type {import('buffer').resolveObjectURL} */\nlet resolveObjectURL\nlet ReadableStream = globalThis.ReadableStream\n\nclass Fetch extends EE {\n constructor (dispatcher) {\n super()\n\n this.dispatcher = dispatcher\n this.connection = null\n this.dump = false\n this.state = 'ongoing'\n // 2 terminated listeners get added per request,\n // but only 1 gets removed. If there are 20 redirects,\n // 21 listeners will be added.\n // See https://github.com/nodejs/undici/issues/1711\n // TODO (fix): Find and fix root cause for leaked listener.\n this.setMaxListeners(21)\n }\n\n terminate (reason) {\n if (this.state !== 'ongoing') {\n return\n }\n\n this.state = 'terminated'\n this.connection?.destroy(reason)\n this.emit('terminated', reason)\n }\n\n // https://fetch.spec.whatwg.org/#fetch-controller-abort\n abort (error) {\n if (this.state !== 'ongoing') {\n return\n }\n\n // 1. Set controller’s state to \"aborted\".\n this.state = 'aborted'\n\n // 2. Let fallbackError be an \"AbortError\" DOMException.\n // 3. Set error to fallbackError if it is not given.\n if (!error) {\n error = new DOMException('The operation was aborted.', 'AbortError')\n }\n\n // 4. Let serializedError be StructuredSerialize(error).\n // If that threw an exception, catch it, and let\n // serializedError be StructuredSerialize(fallbackError).\n\n // 5. Set controller’s serialized abort reason to serializedError.\n this.serializedAbortReason = error\n\n this.connection?.destroy(error)\n this.emit('terminated', error)\n }\n}\n\n// https://fetch.spec.whatwg.org/#fetch-method\nfunction fetch (input, init = {}) {\n webidl.argumentLengthCheck(arguments, 1, { header: 'globalThis.fetch' })\n\n // 1. Let p be a new promise.\n const p = createDeferredPromise()\n\n // 2. Let requestObject be the result of invoking the initial value of\n // Request as constructor with input and init as arguments. If this throws\n // an exception, reject p with it and return p.\n let requestObject\n\n try {\n requestObject = new Request(input, init)\n } catch (e) {\n p.reject(e)\n return p.promise\n }\n\n // 3. Let request be requestObject’s request.\n const request = requestObject[kState]\n\n // 4. If requestObject’s signal’s aborted flag is set, then:\n if (requestObject.signal.aborted) {\n // 1. Abort the fetch() call with p, request, null, and\n // requestObject’s signal’s abort reason.\n abortFetch(p, request, null, requestObject.signal.reason)\n\n // 2. Return p.\n return p.promise\n }\n\n // 5. Let globalObject be request’s client’s global object.\n const globalObject = request.client.globalObject\n\n // 6. If globalObject is a ServiceWorkerGlobalScope object, then set\n // request’s service-workers mode to \"none\".\n if (globalObject?.constructor?.name === 'ServiceWorkerGlobalScope') {\n request.serviceWorkers = 'none'\n }\n\n // 7. Let responseObject be null.\n let responseObject = null\n\n // 8. Let relevantRealm be this’s relevant Realm.\n const relevantRealm = null\n\n // 9. Let locallyAborted be false.\n let locallyAborted = false\n\n // 10. Let controller be null.\n let controller = null\n\n // 11. Add the following abort steps to requestObject’s signal:\n addAbortListener(\n requestObject.signal,\n () => {\n // 1. Set locallyAborted to true.\n locallyAborted = true\n\n // 2. Assert: controller is non-null.\n assert(controller != null)\n\n // 3. Abort controller with requestObject’s signal’s abort reason.\n controller.abort(requestObject.signal.reason)\n\n // 4. Abort the fetch() call with p, request, responseObject,\n // and requestObject’s signal’s abort reason.\n abortFetch(p, request, responseObject, requestObject.signal.reason)\n }\n )\n\n // 12. Let handleFetchDone given response response be to finalize and\n // report timing with response, globalObject, and \"fetch\".\n const handleFetchDone = (response) =>\n finalizeAndReportTiming(response, 'fetch')\n\n // 13. Set controller to the result of calling fetch given request,\n // with processResponseEndOfBody set to handleFetchDone, and processResponse\n // given response being these substeps:\n\n const processResponse = (response) => {\n // 1. If locallyAborted is true, terminate these substeps.\n if (locallyAborted) {\n return Promise.resolve()\n }\n\n // 2. If response’s aborted flag is set, then:\n if (response.aborted) {\n // 1. Let deserializedError be the result of deserialize a serialized\n // abort reason given controller’s serialized abort reason and\n // relevantRealm.\n\n // 2. Abort the fetch() call with p, request, responseObject, and\n // deserializedError.\n\n abortFetch(p, request, responseObject, controller.serializedAbortReason)\n return Promise.resolve()\n }\n\n // 3. If response is a network error, then reject p with a TypeError\n // and terminate these substeps.\n if (response.type === 'error') {\n p.reject(\n Object.assign(new TypeError('fetch failed'), { cause: response.error })\n )\n return Promise.resolve()\n }\n\n // 4. Set responseObject to the result of creating a Response object,\n // given response, \"immutable\", and relevantRealm.\n responseObject = new Response()\n responseObject[kState] = response\n responseObject[kRealm] = relevantRealm\n responseObject[kHeaders][kHeadersList] = response.headersList\n responseObject[kHeaders][kGuard] = 'immutable'\n responseObject[kHeaders][kRealm] = relevantRealm\n\n // 5. Resolve p with responseObject.\n p.resolve(responseObject)\n }\n\n controller = fetching({\n request,\n processResponseEndOfBody: handleFetchDone,\n processResponse,\n dispatcher: init.dispatcher ?? getGlobalDispatcher() // undici\n })\n\n // 14. Return p.\n return p.promise\n}\n\n// https://fetch.spec.whatwg.org/#finalize-and-report-timing\nfunction finalizeAndReportTiming (response, initiatorType = 'other') {\n // 1. If response is an aborted network error, then return.\n if (response.type === 'error' && response.aborted) {\n return\n }\n\n // 2. If response’s URL list is null or empty, then return.\n if (!response.urlList?.length) {\n return\n }\n\n // 3. Let originalURL be response’s URL list[0].\n const originalURL = response.urlList[0]\n\n // 4. Let timingInfo be response’s timing info.\n let timingInfo = response.timingInfo\n\n // 5. Let cacheState be response’s cache state.\n let cacheState = response.cacheState\n\n // 6. If originalURL’s scheme is not an HTTP(S) scheme, then return.\n if (!urlIsHttpHttpsScheme(originalURL)) {\n return\n }\n\n // 7. If timingInfo is null, then return.\n if (timingInfo === null) {\n return\n }\n\n // 8. If response’s timing allow passed flag is not set, then:\n if (!response.timingAllowPassed) {\n // 1. Set timingInfo to a the result of creating an opaque timing info for timingInfo.\n timingInfo = createOpaqueTimingInfo({\n startTime: timingInfo.startTime\n })\n\n // 2. Set cacheState to the empty string.\n cacheState = ''\n }\n\n // 9. Set timingInfo’s end time to the coarsened shared current time\n // given global’s relevant settings object’s cross-origin isolated\n // capability.\n // TODO: given global’s relevant settings object’s cross-origin isolated\n // capability?\n timingInfo.endTime = coarsenedSharedCurrentTime()\n\n // 10. Set response’s timing info to timingInfo.\n response.timingInfo = timingInfo\n\n // 11. Mark resource timing for timingInfo, originalURL, initiatorType,\n // global, and cacheState.\n markResourceTiming(\n timingInfo,\n originalURL,\n initiatorType,\n globalThis,\n cacheState\n )\n}\n\n// https://w3c.github.io/resource-timing/#dfn-mark-resource-timing\nfunction markResourceTiming (timingInfo, originalURL, initiatorType, globalThis, cacheState) {\n if (nodeMajor > 18 || (nodeMajor === 18 && nodeMinor >= 2)) {\n performance.markResourceTiming(timingInfo, originalURL.href, initiatorType, globalThis, cacheState)\n }\n}\n\n// https://fetch.spec.whatwg.org/#abort-fetch\nfunction abortFetch (p, request, responseObject, error) {\n // Note: AbortSignal.reason was added in node v17.2.0\n // which would give us an undefined error to reject with.\n // Remove this once node v16 is no longer supported.\n if (!error) {\n error = new DOMException('The operation was aborted.', 'AbortError')\n }\n\n // 1. Reject promise with error.\n p.reject(error)\n\n // 2. If request’s body is not null and is readable, then cancel request’s\n // body with error.\n if (request.body != null && isReadable(request.body?.stream)) {\n request.body.stream.cancel(error).catch((err) => {\n if (err.code === 'ERR_INVALID_STATE') {\n // Node bug?\n return\n }\n throw err\n })\n }\n\n // 3. If responseObject is null, then return.\n if (responseObject == null) {\n return\n }\n\n // 4. Let response be responseObject’s response.\n const response = responseObject[kState]\n\n // 5. If response’s body is not null and is readable, then error response’s\n // body with error.\n if (response.body != null && isReadable(response.body?.stream)) {\n response.body.stream.cancel(error).catch((err) => {\n if (err.code === 'ERR_INVALID_STATE') {\n // Node bug?\n return\n }\n throw err\n })\n }\n}\n\n// https://fetch.spec.whatwg.org/#fetching\nfunction fetching ({\n request,\n processRequestBodyChunkLength,\n processRequestEndOfBody,\n processResponse,\n processResponseEndOfBody,\n processResponseConsumeBody,\n useParallelQueue = false,\n dispatcher // undici\n}) {\n // 1. Let taskDestination be null.\n let taskDestination = null\n\n // 2. Let crossOriginIsolatedCapability be false.\n let crossOriginIsolatedCapability = false\n\n // 3. If request’s client is non-null, then:\n if (request.client != null) {\n // 1. Set taskDestination to request’s client’s global object.\n taskDestination = request.client.globalObject\n\n // 2. Set crossOriginIsolatedCapability to request’s client’s cross-origin\n // isolated capability.\n crossOriginIsolatedCapability =\n request.client.crossOriginIsolatedCapability\n }\n\n // 4. If useParallelQueue is true, then set taskDestination to the result of\n // starting a new parallel queue.\n // TODO\n\n // 5. Let timingInfo be a new fetch timing info whose start time and\n // post-redirect start time are the coarsened shared current time given\n // crossOriginIsolatedCapability.\n const currenTime = coarsenedSharedCurrentTime(crossOriginIsolatedCapability)\n const timingInfo = createOpaqueTimingInfo({\n startTime: currenTime\n })\n\n // 6. Let fetchParams be a new fetch params whose\n // request is request,\n // timing info is timingInfo,\n // process request body chunk length is processRequestBodyChunkLength,\n // process request end-of-body is processRequestEndOfBody,\n // process response is processResponse,\n // process response consume body is processResponseConsumeBody,\n // process response end-of-body is processResponseEndOfBody,\n // task destination is taskDestination,\n // and cross-origin isolated capability is crossOriginIsolatedCapability.\n const fetchParams = {\n controller: new Fetch(dispatcher),\n request,\n timingInfo,\n processRequestBodyChunkLength,\n processRequestEndOfBody,\n processResponse,\n processResponseConsumeBody,\n processResponseEndOfBody,\n taskDestination,\n crossOriginIsolatedCapability\n }\n\n // 7. If request’s body is a byte sequence, then set request’s body to\n // request’s body as a body.\n // NOTE: Since fetching is only called from fetch, body should already be\n // extracted.\n assert(!request.body || request.body.stream)\n\n // 8. If request’s window is \"client\", then set request’s window to request’s\n // client, if request’s client’s global object is a Window object; otherwise\n // \"no-window\".\n if (request.window === 'client') {\n // TODO: What if request.client is null?\n request.window =\n request.client?.globalObject?.constructor?.name === 'Window'\n ? request.client\n : 'no-window'\n }\n\n // 9. If request’s origin is \"client\", then set request’s origin to request’s\n // client’s origin.\n if (request.origin === 'client') {\n // TODO: What if request.client is null?\n request.origin = request.client?.origin\n }\n\n // 10. If all of the following conditions are true:\n // TODO\n\n // 11. If request’s policy container is \"client\", then:\n if (request.policyContainer === 'client') {\n // 1. If request’s client is non-null, then set request’s policy\n // container to a clone of request’s client’s policy container. [HTML]\n if (request.client != null) {\n request.policyContainer = clonePolicyContainer(\n request.client.policyContainer\n )\n } else {\n // 2. Otherwise, set request’s policy container to a new policy\n // container.\n request.policyContainer = makePolicyContainer()\n }\n }\n\n // 12. If request’s header list does not contain `Accept`, then:\n if (!request.headersList.contains('accept')) {\n // 1. Let value be `*/*`.\n const value = '*/*'\n\n // 2. A user agent should set value to the first matching statement, if\n // any, switching on request’s destination:\n // \"document\"\n // \"frame\"\n // \"iframe\"\n // `text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8`\n // \"image\"\n // `image/png,image/svg+xml,image/*;q=0.8,*/*;q=0.5`\n // \"style\"\n // `text/css,*/*;q=0.1`\n // TODO\n\n // 3. Append `Accept`/value to request’s header list.\n request.headersList.append('accept', value)\n }\n\n // 13. If request’s header list does not contain `Accept-Language`, then\n // user agents should append `Accept-Language`/an appropriate value to\n // request’s header list.\n if (!request.headersList.contains('accept-language')) {\n request.headersList.append('accept-language', '*')\n }\n\n // 14. If request’s priority is null, then use request’s initiator and\n // destination appropriately in setting request’s priority to a\n // user-agent-defined object.\n if (request.priority === null) {\n // TODO\n }\n\n // 15. If request is a subresource request, then:\n if (subresourceSet.has(request.destination)) {\n // TODO\n }\n\n // 16. Run main fetch given fetchParams.\n mainFetch(fetchParams)\n .catch(err => {\n fetchParams.controller.terminate(err)\n })\n\n // 17. Return fetchParam's controller\n return fetchParams.controller\n}\n\n// https://fetch.spec.whatwg.org/#concept-main-fetch\nasync function mainFetch (fetchParams, recursive = false) {\n // 1. Let request be fetchParams’s request.\n const request = fetchParams.request\n\n // 2. Let response be null.\n let response = null\n\n // 3. If request’s local-URLs-only flag is set and request’s current URL is\n // not local, then set response to a network error.\n if (request.localURLsOnly && !urlIsLocal(requestCurrentURL(request))) {\n response = makeNetworkError('local URLs only')\n }\n\n // 4. Run report Content Security Policy violations for request.\n // TODO\n\n // 5. Upgrade request to a potentially trustworthy URL, if appropriate.\n tryUpgradeRequestToAPotentiallyTrustworthyURL(request)\n\n // 6. If should request be blocked due to a bad port, should fetching request\n // be blocked as mixed content, or should request be blocked by Content\n // Security Policy returns blocked, then set response to a network error.\n if (requestBadPort(request) === 'blocked') {\n response = makeNetworkError('bad port')\n }\n // TODO: should fetching request be blocked as mixed content?\n // TODO: should request be blocked by Content Security Policy?\n\n // 7. If request’s referrer policy is the empty string, then set request’s\n // referrer policy to request’s policy container’s referrer policy.\n if (request.referrerPolicy === '') {\n request.referrerPolicy = request.policyContainer.referrerPolicy\n }\n\n // 8. If request’s referrer is not \"no-referrer\", then set request’s\n // referrer to the result of invoking determine request’s referrer.\n if (request.referrer !== 'no-referrer') {\n request.referrer = determineRequestsReferrer(request)\n }\n\n // 9. Set request’s current URL’s scheme to \"https\" if all of the following\n // conditions are true:\n // - request’s current URL’s scheme is \"http\"\n // - request’s current URL’s host is a domain\n // - Matching request’s current URL’s host per Known HSTS Host Domain Name\n // Matching results in either a superdomain match with an asserted\n // includeSubDomains directive or a congruent match (with or without an\n // asserted includeSubDomains directive). [HSTS]\n // TODO\n\n // 10. If recursive is false, then run the remaining steps in parallel.\n // TODO\n\n // 11. If response is null, then set response to the result of running\n // the steps corresponding to the first matching statement:\n if (response === null) {\n response = await (async () => {\n const currentURL = requestCurrentURL(request)\n\n if (\n // - request’s current URL’s origin is same origin with request’s origin,\n // and request’s response tainting is \"basic\"\n (sameOrigin(currentURL, request.url) && request.responseTainting === 'basic') ||\n // request’s current URL’s scheme is \"data\"\n (currentURL.protocol === 'data:') ||\n // - request’s mode is \"navigate\" or \"websocket\"\n (request.mode === 'navigate' || request.mode === 'websocket')\n ) {\n // 1. Set request’s response tainting to \"basic\".\n request.responseTainting = 'basic'\n\n // 2. Return the result of running scheme fetch given fetchParams.\n return await schemeFetch(fetchParams)\n }\n\n // request’s mode is \"same-origin\"\n if (request.mode === 'same-origin') {\n // 1. Return a network error.\n return makeNetworkError('request mode cannot be \"same-origin\"')\n }\n\n // request’s mode is \"no-cors\"\n if (request.mode === 'no-cors') {\n // 1. If request’s redirect mode is not \"follow\", then return a network\n // error.\n if (request.redirect !== 'follow') {\n return makeNetworkError(\n 'redirect mode cannot be \"follow\" for \"no-cors\" request'\n )\n }\n\n // 2. Set request’s response tainting to \"opaque\".\n request.responseTainting = 'opaque'\n\n // 3. Return the result of running scheme fetch given fetchParams.\n return await schemeFetch(fetchParams)\n }\n\n // request’s current URL’s scheme is not an HTTP(S) scheme\n if (!urlIsHttpHttpsScheme(requestCurrentURL(request))) {\n // Return a network error.\n return makeNetworkError('URL scheme must be a HTTP(S) scheme')\n }\n\n // - request’s use-CORS-preflight flag is set\n // - request’s unsafe-request flag is set and either request’s method is\n // not a CORS-safelisted method or CORS-unsafe request-header names with\n // request’s header list is not empty\n // 1. Set request’s response tainting to \"cors\".\n // 2. Let corsWithPreflightResponse be the result of running HTTP fetch\n // given fetchParams and true.\n // 3. If corsWithPreflightResponse is a network error, then clear cache\n // entries using request.\n // 4. Return corsWithPreflightResponse.\n // TODO\n\n // Otherwise\n // 1. Set request’s response tainting to \"cors\".\n request.responseTainting = 'cors'\n\n // 2. Return the result of running HTTP fetch given fetchParams.\n return await httpFetch(fetchParams)\n })()\n }\n\n // 12. If recursive is true, then return response.\n if (recursive) {\n return response\n }\n\n // 13. If response is not a network error and response is not a filtered\n // response, then:\n if (response.status !== 0 && !response.internalResponse) {\n // If request’s response tainting is \"cors\", then:\n if (request.responseTainting === 'cors') {\n // 1. Let headerNames be the result of extracting header list values\n // given `Access-Control-Expose-Headers` and response’s header list.\n // TODO\n // 2. If request’s credentials mode is not \"include\" and headerNames\n // contains `*`, then set response’s CORS-exposed header-name list to\n // all unique header names in response’s header list.\n // TODO\n // 3. Otherwise, if headerNames is not null or failure, then set\n // response’s CORS-exposed header-name list to headerNames.\n // TODO\n }\n\n // Set response to the following filtered response with response as its\n // internal response, depending on request’s response tainting:\n if (request.responseTainting === 'basic') {\n response = filterResponse(response, 'basic')\n } else if (request.responseTainting === 'cors') {\n response = filterResponse(response, 'cors')\n } else if (request.responseTainting === 'opaque') {\n response = filterResponse(response, 'opaque')\n } else {\n assert(false)\n }\n }\n\n // 14. Let internalResponse be response, if response is a network error,\n // and response’s internal response otherwise.\n let internalResponse =\n response.status === 0 ? response : response.internalResponse\n\n // 15. If internalResponse’s URL list is empty, then set it to a clone of\n // request’s URL list.\n if (internalResponse.urlList.length === 0) {\n internalResponse.urlList.push(...request.urlList)\n }\n\n // 16. If request’s timing allow failed flag is unset, then set\n // internalResponse’s timing allow passed flag.\n if (!request.timingAllowFailed) {\n response.timingAllowPassed = true\n }\n\n // 17. If response is not a network error and any of the following returns\n // blocked\n // - should internalResponse to request be blocked as mixed content\n // - should internalResponse to request be blocked by Content Security Policy\n // - should internalResponse to request be blocked due to its MIME type\n // - should internalResponse to request be blocked due to nosniff\n // TODO\n\n // 18. If response’s type is \"opaque\", internalResponse’s status is 206,\n // internalResponse’s range-requested flag is set, and request’s header\n // list does not contain `Range`, then set response and internalResponse\n // to a network error.\n if (\n response.type === 'opaque' &&\n internalResponse.status === 206 &&\n internalResponse.rangeRequested &&\n !request.headers.contains('range')\n ) {\n response = internalResponse = makeNetworkError()\n }\n\n // 19. If response is not a network error and either request’s method is\n // `HEAD` or `CONNECT`, or internalResponse’s status is a null body status,\n // set internalResponse’s body to null and disregard any enqueuing toward\n // it (if any).\n if (\n response.status !== 0 &&\n (request.method === 'HEAD' ||\n request.method === 'CONNECT' ||\n nullBodyStatus.includes(internalResponse.status))\n ) {\n internalResponse.body = null\n fetchParams.controller.dump = true\n }\n\n // 20. If request’s integrity metadata is not the empty string, then:\n if (request.integrity) {\n // 1. Let processBodyError be this step: run fetch finale given fetchParams\n // and a network error.\n const processBodyError = (reason) =>\n fetchFinale(fetchParams, makeNetworkError(reason))\n\n // 2. If request’s response tainting is \"opaque\", or response’s body is null,\n // then run processBodyError and abort these steps.\n if (request.responseTainting === 'opaque' || response.body == null) {\n processBodyError(response.error)\n return\n }\n\n // 3. Let processBody given bytes be these steps:\n const processBody = (bytes) => {\n // 1. If bytes do not match request’s integrity metadata,\n // then run processBodyError and abort these steps. [SRI]\n if (!bytesMatch(bytes, request.integrity)) {\n processBodyError('integrity mismatch')\n return\n }\n\n // 2. Set response’s body to bytes as a body.\n response.body = safelyExtractBody(bytes)[0]\n\n // 3. Run fetch finale given fetchParams and response.\n fetchFinale(fetchParams, response)\n }\n\n // 4. Fully read response’s body given processBody and processBodyError.\n await fullyReadBody(response.body, processBody, processBodyError)\n } else {\n // 21. Otherwise, run fetch finale given fetchParams and response.\n fetchFinale(fetchParams, response)\n }\n}\n\n// https://fetch.spec.whatwg.org/#concept-scheme-fetch\n// given a fetch params fetchParams\nfunction schemeFetch (fetchParams) {\n // Note: since the connection is destroyed on redirect, which sets fetchParams to a\n // cancelled state, we do not want this condition to trigger *unless* there have been\n // no redirects. See https://github.com/nodejs/undici/issues/1776\n // 1. If fetchParams is canceled, then return the appropriate network error for fetchParams.\n if (isCancelled(fetchParams) && fetchParams.request.redirectCount === 0) {\n return Promise.resolve(makeAppropriateNetworkError(fetchParams))\n }\n\n // 2. Let request be fetchParams’s request.\n const { request } = fetchParams\n\n const { protocol: scheme } = requestCurrentURL(request)\n\n // 3. Switch on request’s current URL’s scheme and run the associated steps:\n switch (scheme) {\n case 'about:': {\n // If request’s current URL’s path is the string \"blank\", then return a new response\n // whose status message is `OK`, header list is « (`Content-Type`, `text/html;charset=utf-8`) »,\n // and body is the empty byte sequence as a body.\n\n // Otherwise, return a network error.\n return Promise.resolve(makeNetworkError('about scheme is not supported'))\n }\n case 'blob:': {\n if (!resolveObjectURL) {\n resolveObjectURL = require('buffer').resolveObjectURL\n }\n\n // 1. Let blobURLEntry be request’s current URL’s blob URL entry.\n const blobURLEntry = requestCurrentURL(request)\n\n // https://github.com/web-platform-tests/wpt/blob/7b0ebaccc62b566a1965396e5be7bb2bc06f841f/FileAPI/url/resources/fetch-tests.js#L52-L56\n // Buffer.resolveObjectURL does not ignore URL queries.\n if (blobURLEntry.search.length !== 0) {\n return Promise.resolve(makeNetworkError('NetworkError when attempting to fetch resource.'))\n }\n\n const blobURLEntryObject = resolveObjectURL(blobURLEntry.toString())\n\n // 2. If request’s method is not `GET`, blobURLEntry is null, or blobURLEntry’s\n // object is not a Blob object, then return a network error.\n if (request.method !== 'GET' || !isBlobLike(blobURLEntryObject)) {\n return Promise.resolve(makeNetworkError('invalid method'))\n }\n\n // 3. Let bodyWithType be the result of safely extracting blobURLEntry’s object.\n const bodyWithType = safelyExtractBody(blobURLEntryObject)\n\n // 4. Let body be bodyWithType’s body.\n const body = bodyWithType[0]\n\n // 5. Let length be body’s length, serialized and isomorphic encoded.\n const length = isomorphicEncode(`${body.length}`)\n\n // 6. Let type be bodyWithType’s type if it is non-null; otherwise the empty byte sequence.\n const type = bodyWithType[1] ?? ''\n\n // 7. Return a new response whose status message is `OK`, header list is\n // « (`Content-Length`, length), (`Content-Type`, type) », and body is body.\n const response = makeResponse({\n statusText: 'OK',\n headersList: [\n ['content-length', { name: 'Content-Length', value: length }],\n ['content-type', { name: 'Content-Type', value: type }]\n ]\n })\n\n response.body = body\n\n return Promise.resolve(response)\n }\n case 'data:': {\n // 1. Let dataURLStruct be the result of running the\n // data: URL processor on request’s current URL.\n const currentURL = requestCurrentURL(request)\n const dataURLStruct = dataURLProcessor(currentURL)\n\n // 2. If dataURLStruct is failure, then return a\n // network error.\n if (dataURLStruct === 'failure') {\n return Promise.resolve(makeNetworkError('failed to fetch the data URL'))\n }\n\n // 3. Let mimeType be dataURLStruct’s MIME type, serialized.\n const mimeType = serializeAMimeType(dataURLStruct.mimeType)\n\n // 4. Return a response whose status message is `OK`,\n // header list is « (`Content-Type`, mimeType) »,\n // and body is dataURLStruct’s body as a body.\n return Promise.resolve(makeResponse({\n statusText: 'OK',\n headersList: [\n ['content-type', { name: 'Content-Type', value: mimeType }]\n ],\n body: safelyExtractBody(dataURLStruct.body)[0]\n }))\n }\n case 'file:': {\n // For now, unfortunate as it is, file URLs are left as an exercise for the reader.\n // When in doubt, return a network error.\n return Promise.resolve(makeNetworkError('not implemented... yet...'))\n }\n case 'http:':\n case 'https:': {\n // Return the result of running HTTP fetch given fetchParams.\n\n return httpFetch(fetchParams)\n .catch((err) => makeNetworkError(err))\n }\n default: {\n return Promise.resolve(makeNetworkError('unknown scheme'))\n }\n }\n}\n\n// https://fetch.spec.whatwg.org/#finalize-response\nfunction finalizeResponse (fetchParams, response) {\n // 1. Set fetchParams’s request’s done flag.\n fetchParams.request.done = true\n\n // 2, If fetchParams’s process response done is not null, then queue a fetch\n // task to run fetchParams’s process response done given response, with\n // fetchParams’s task destination.\n if (fetchParams.processResponseDone != null) {\n queueMicrotask(() => fetchParams.processResponseDone(response))\n }\n}\n\n// https://fetch.spec.whatwg.org/#fetch-finale\nfunction fetchFinale (fetchParams, response) {\n // 1. If response is a network error, then:\n if (response.type === 'error') {\n // 1. Set response’s URL list to « fetchParams’s request’s URL list[0] ».\n response.urlList = [fetchParams.request.urlList[0]]\n\n // 2. Set response’s timing info to the result of creating an opaque timing\n // info for fetchParams’s timing info.\n response.timingInfo = createOpaqueTimingInfo({\n startTime: fetchParams.timingInfo.startTime\n })\n }\n\n // 2. Let processResponseEndOfBody be the following steps:\n const processResponseEndOfBody = () => {\n // 1. Set fetchParams’s request’s done flag.\n fetchParams.request.done = true\n\n // If fetchParams’s process response end-of-body is not null,\n // then queue a fetch task to run fetchParams’s process response\n // end-of-body given response with fetchParams’s task destination.\n if (fetchParams.processResponseEndOfBody != null) {\n queueMicrotask(() => fetchParams.processResponseEndOfBody(response))\n }\n }\n\n // 3. If fetchParams’s process response is non-null, then queue a fetch task\n // to run fetchParams’s process response given response, with fetchParams’s\n // task destination.\n if (fetchParams.processResponse != null) {\n queueMicrotask(() => fetchParams.processResponse(response))\n }\n\n // 4. If response’s body is null, then run processResponseEndOfBody.\n if (response.body == null) {\n processResponseEndOfBody()\n } else {\n // 5. Otherwise:\n\n // 1. Let transformStream be a new a TransformStream.\n\n // 2. Let identityTransformAlgorithm be an algorithm which, given chunk,\n // enqueues chunk in transformStream.\n const identityTransformAlgorithm = (chunk, controller) => {\n controller.enqueue(chunk)\n }\n\n // 3. Set up transformStream with transformAlgorithm set to identityTransformAlgorithm\n // and flushAlgorithm set to processResponseEndOfBody.\n const transformStream = new TransformStream({\n start () {},\n transform: identityTransformAlgorithm,\n flush: processResponseEndOfBody\n }, {\n size () {\n return 1\n }\n }, {\n size () {\n return 1\n }\n })\n\n // 4. Set response’s body to the result of piping response’s body through transformStream.\n response.body = { stream: response.body.stream.pipeThrough(transformStream) }\n }\n\n // 6. If fetchParams’s process response consume body is non-null, then:\n if (fetchParams.processResponseConsumeBody != null) {\n // 1. Let processBody given nullOrBytes be this step: run fetchParams’s\n // process response consume body given response and nullOrBytes.\n const processBody = (nullOrBytes) => fetchParams.processResponseConsumeBody(response, nullOrBytes)\n\n // 2. Let processBodyError be this step: run fetchParams’s process\n // response consume body given response and failure.\n const processBodyError = (failure) => fetchParams.processResponseConsumeBody(response, failure)\n\n // 3. If response’s body is null, then queue a fetch task to run processBody\n // given null, with fetchParams’s task destination.\n if (response.body == null) {\n queueMicrotask(() => processBody(null))\n } else {\n // 4. Otherwise, fully read response’s body given processBody, processBodyError,\n // and fetchParams’s task destination.\n return fullyReadBody(response.body, processBody, processBodyError)\n }\n return Promise.resolve()\n }\n}\n\n// https://fetch.spec.whatwg.org/#http-fetch\nasync function httpFetch (fetchParams) {\n // 1. Let request be fetchParams’s request.\n const request = fetchParams.request\n\n // 2. Let response be null.\n let response = null\n\n // 3. Let actualResponse be null.\n let actualResponse = null\n\n // 4. Let timingInfo be fetchParams’s timing info.\n const timingInfo = fetchParams.timingInfo\n\n // 5. If request’s service-workers mode is \"all\", then:\n if (request.serviceWorkers === 'all') {\n // TODO\n }\n\n // 6. If response is null, then:\n if (response === null) {\n // 1. If makeCORSPreflight is true and one of these conditions is true:\n // TODO\n\n // 2. If request’s redirect mode is \"follow\", then set request’s\n // service-workers mode to \"none\".\n if (request.redirect === 'follow') {\n request.serviceWorkers = 'none'\n }\n\n // 3. Set response and actualResponse to the result of running\n // HTTP-network-or-cache fetch given fetchParams.\n actualResponse = response = await httpNetworkOrCacheFetch(fetchParams)\n\n // 4. If request’s response tainting is \"cors\" and a CORS check\n // for request and response returns failure, then return a network error.\n if (\n request.responseTainting === 'cors' &&\n corsCheck(request, response) === 'failure'\n ) {\n return makeNetworkError('cors failure')\n }\n\n // 5. If the TAO check for request and response returns failure, then set\n // request’s timing allow failed flag.\n if (TAOCheck(request, response) === 'failure') {\n request.timingAllowFailed = true\n }\n }\n\n // 7. If either request’s response tainting or response’s type\n // is \"opaque\", and the cross-origin resource policy check with\n // request’s origin, request’s client, request’s destination,\n // and actualResponse returns blocked, then return a network error.\n if (\n (request.responseTainting === 'opaque' || response.type === 'opaque') &&\n crossOriginResourcePolicyCheck(\n request.origin,\n request.client,\n request.destination,\n actualResponse\n ) === 'blocked'\n ) {\n return makeNetworkError('blocked')\n }\n\n // 8. If actualResponse’s status is a redirect status, then:\n if (redirectStatusSet.has(actualResponse.status)) {\n // 1. If actualResponse’s status is not 303, request’s body is not null,\n // and the connection uses HTTP/2, then user agents may, and are even\n // encouraged to, transmit an RST_STREAM frame.\n // See, https://github.com/whatwg/fetch/issues/1288\n if (request.redirect !== 'manual') {\n fetchParams.controller.connection.destroy()\n }\n\n // 2. Switch on request’s redirect mode:\n if (request.redirect === 'error') {\n // Set response to a network error.\n response = makeNetworkError('unexpected redirect')\n } else if (request.redirect === 'manual') {\n // Set response to an opaque-redirect filtered response whose internal\n // response is actualResponse.\n // NOTE(spec): On the web this would return an `opaqueredirect` response,\n // but that doesn't make sense server side.\n // See https://github.com/nodejs/undici/issues/1193.\n response = actualResponse\n } else if (request.redirect === 'follow') {\n // Set response to the result of running HTTP-redirect fetch given\n // fetchParams and response.\n response = await httpRedirectFetch(fetchParams, response)\n } else {\n assert(false)\n }\n }\n\n // 9. Set response’s timing info to timingInfo.\n response.timingInfo = timingInfo\n\n // 10. Return response.\n return response\n}\n\n// https://fetch.spec.whatwg.org/#http-redirect-fetch\nfunction httpRedirectFetch (fetchParams, response) {\n // 1. Let request be fetchParams’s request.\n const request = fetchParams.request\n\n // 2. Let actualResponse be response, if response is not a filtered response,\n // and response’s internal response otherwise.\n const actualResponse = response.internalResponse\n ? response.internalResponse\n : response\n\n // 3. Let locationURL be actualResponse’s location URL given request’s current\n // URL’s fragment.\n let locationURL\n\n try {\n locationURL = responseLocationURL(\n actualResponse,\n requestCurrentURL(request).hash\n )\n\n // 4. If locationURL is null, then return response.\n if (locationURL == null) {\n return response\n }\n } catch (err) {\n // 5. If locationURL is failure, then return a network error.\n return Promise.resolve(makeNetworkError(err))\n }\n\n // 6. If locationURL’s scheme is not an HTTP(S) scheme, then return a network\n // error.\n if (!urlIsHttpHttpsScheme(locationURL)) {\n return Promise.resolve(makeNetworkError('URL scheme must be a HTTP(S) scheme'))\n }\n\n // 7. If request’s redirect count is 20, then return a network error.\n if (request.redirectCount === 20) {\n return Promise.resolve(makeNetworkError('redirect count exceeded'))\n }\n\n // 8. Increase request’s redirect count by 1.\n request.redirectCount += 1\n\n // 9. If request’s mode is \"cors\", locationURL includes credentials, and\n // request’s origin is not same origin with locationURL’s origin, then return\n // a network error.\n if (\n request.mode === 'cors' &&\n (locationURL.username || locationURL.password) &&\n !sameOrigin(request, locationURL)\n ) {\n return Promise.resolve(makeNetworkError('cross origin not allowed for request mode \"cors\"'))\n }\n\n // 10. If request’s response tainting is \"cors\" and locationURL includes\n // credentials, then return a network error.\n if (\n request.responseTainting === 'cors' &&\n (locationURL.username || locationURL.password)\n ) {\n return Promise.resolve(makeNetworkError(\n 'URL cannot contain credentials for request mode \"cors\"'\n ))\n }\n\n // 11. If actualResponse’s status is not 303, request’s body is non-null,\n // and request’s body’s source is null, then return a network error.\n if (\n actualResponse.status !== 303 &&\n request.body != null &&\n request.body.source == null\n ) {\n return Promise.resolve(makeNetworkError())\n }\n\n // 12. If one of the following is true\n // - actualResponse’s status is 301 or 302 and request’s method is `POST`\n // - actualResponse’s status is 303 and request’s method is not `GET` or `HEAD`\n if (\n ([301, 302].includes(actualResponse.status) && request.method === 'POST') ||\n (actualResponse.status === 303 &&\n !GET_OR_HEAD.includes(request.method))\n ) {\n // then:\n // 1. Set request’s method to `GET` and request’s body to null.\n request.method = 'GET'\n request.body = null\n\n // 2. For each headerName of request-body-header name, delete headerName from\n // request’s header list.\n for (const headerName of requestBodyHeader) {\n request.headersList.delete(headerName)\n }\n }\n\n // 13. If request’s current URL’s origin is not same origin with locationURL’s\n // origin, then for each headerName of CORS non-wildcard request-header name,\n // delete headerName from request’s header list.\n if (!sameOrigin(requestCurrentURL(request), locationURL)) {\n // https://fetch.spec.whatwg.org/#cors-non-wildcard-request-header-name\n request.headersList.delete('authorization')\n\n // https://fetch.spec.whatwg.org/#authentication-entries\n request.headersList.delete('proxy-authorization', true)\n\n // \"Cookie\" and \"Host\" are forbidden request-headers, which undici doesn't implement.\n request.headersList.delete('cookie')\n request.headersList.delete('host')\n }\n\n // 14. If request’s body is non-null, then set request’s body to the first return\n // value of safely extracting request’s body’s source.\n if (request.body != null) {\n assert(request.body.source != null)\n request.body = safelyExtractBody(request.body.source)[0]\n }\n\n // 15. Let timingInfo be fetchParams’s timing info.\n const timingInfo = fetchParams.timingInfo\n\n // 16. Set timingInfo’s redirect end time and post-redirect start time to the\n // coarsened shared current time given fetchParams’s cross-origin isolated\n // capability.\n timingInfo.redirectEndTime = timingInfo.postRedirectStartTime =\n coarsenedSharedCurrentTime(fetchParams.crossOriginIsolatedCapability)\n\n // 17. If timingInfo’s redirect start time is 0, then set timingInfo’s\n // redirect start time to timingInfo’s start time.\n if (timingInfo.redirectStartTime === 0) {\n timingInfo.redirectStartTime = timingInfo.startTime\n }\n\n // 18. Append locationURL to request’s URL list.\n request.urlList.push(locationURL)\n\n // 19. Invoke set request’s referrer policy on redirect on request and\n // actualResponse.\n setRequestReferrerPolicyOnRedirect(request, actualResponse)\n\n // 20. Return the result of running main fetch given fetchParams and true.\n return mainFetch(fetchParams, true)\n}\n\n// https://fetch.spec.whatwg.org/#http-network-or-cache-fetch\nasync function httpNetworkOrCacheFetch (\n fetchParams,\n isAuthenticationFetch = false,\n isNewConnectionFetch = false\n) {\n // 1. Let request be fetchParams’s request.\n const request = fetchParams.request\n\n // 2. Let httpFetchParams be null.\n let httpFetchParams = null\n\n // 3. Let httpRequest be null.\n let httpRequest = null\n\n // 4. Let response be null.\n let response = null\n\n // 5. Let storedResponse be null.\n // TODO: cache\n\n // 6. Let httpCache be null.\n const httpCache = null\n\n // 7. Let the revalidatingFlag be unset.\n const revalidatingFlag = false\n\n // 8. Run these steps, but abort when the ongoing fetch is terminated:\n\n // 1. If request’s window is \"no-window\" and request’s redirect mode is\n // \"error\", then set httpFetchParams to fetchParams and httpRequest to\n // request.\n if (request.window === 'no-window' && request.redirect === 'error') {\n httpFetchParams = fetchParams\n httpRequest = request\n } else {\n // Otherwise:\n\n // 1. Set httpRequest to a clone of request.\n httpRequest = makeRequest(request)\n\n // 2. Set httpFetchParams to a copy of fetchParams.\n httpFetchParams = { ...fetchParams }\n\n // 3. Set httpFetchParams’s request to httpRequest.\n httpFetchParams.request = httpRequest\n }\n\n // 3. Let includeCredentials be true if one of\n const includeCredentials =\n request.credentials === 'include' ||\n (request.credentials === 'same-origin' &&\n request.responseTainting === 'basic')\n\n // 4. Let contentLength be httpRequest’s body’s length, if httpRequest’s\n // body is non-null; otherwise null.\n const contentLength = httpRequest.body ? httpRequest.body.length : null\n\n // 5. Let contentLengthHeaderValue be null.\n let contentLengthHeaderValue = null\n\n // 6. If httpRequest’s body is null and httpRequest’s method is `POST` or\n // `PUT`, then set contentLengthHeaderValue to `0`.\n if (\n httpRequest.body == null &&\n ['POST', 'PUT'].includes(httpRequest.method)\n ) {\n contentLengthHeaderValue = '0'\n }\n\n // 7. If contentLength is non-null, then set contentLengthHeaderValue to\n // contentLength, serialized and isomorphic encoded.\n if (contentLength != null) {\n contentLengthHeaderValue = isomorphicEncode(`${contentLength}`)\n }\n\n // 8. If contentLengthHeaderValue is non-null, then append\n // `Content-Length`/contentLengthHeaderValue to httpRequest’s header\n // list.\n if (contentLengthHeaderValue != null) {\n httpRequest.headersList.append('content-length', contentLengthHeaderValue)\n }\n\n // 9. If contentLengthHeaderValue is non-null, then append (`Content-Length`,\n // contentLengthHeaderValue) to httpRequest’s header list.\n\n // 10. If contentLength is non-null and httpRequest’s keepalive is true,\n // then:\n if (contentLength != null && httpRequest.keepalive) {\n // NOTE: keepalive is a noop outside of browser context.\n }\n\n // 11. If httpRequest’s referrer is a URL, then append\n // `Referer`/httpRequest’s referrer, serialized and isomorphic encoded,\n // to httpRequest’s header list.\n if (httpRequest.referrer instanceof URL) {\n httpRequest.headersList.append('referer', isomorphicEncode(httpRequest.referrer.href))\n }\n\n // 12. Append a request `Origin` header for httpRequest.\n appendRequestOriginHeader(httpRequest)\n\n // 13. Append the Fetch metadata headers for httpRequest. [FETCH-METADATA]\n appendFetchMetadata(httpRequest)\n\n // 14. If httpRequest’s header list does not contain `User-Agent`, then\n // user agents should append `User-Agent`/default `User-Agent` value to\n // httpRequest’s header list.\n if (!httpRequest.headersList.contains('user-agent')) {\n httpRequest.headersList.append('user-agent', typeof esbuildDetection === 'undefined' ? 'undici' : 'node')\n }\n\n // 15. If httpRequest’s cache mode is \"default\" and httpRequest’s header\n // list contains `If-Modified-Since`, `If-None-Match`,\n // `If-Unmodified-Since`, `If-Match`, or `If-Range`, then set\n // httpRequest’s cache mode to \"no-store\".\n if (\n httpRequest.cache === 'default' &&\n (httpRequest.headersList.contains('if-modified-since') ||\n httpRequest.headersList.contains('if-none-match') ||\n httpRequest.headersList.contains('if-unmodified-since') ||\n httpRequest.headersList.contains('if-match') ||\n httpRequest.headersList.contains('if-range'))\n ) {\n httpRequest.cache = 'no-store'\n }\n\n // 16. If httpRequest’s cache mode is \"no-cache\", httpRequest’s prevent\n // no-cache cache-control header modification flag is unset, and\n // httpRequest’s header list does not contain `Cache-Control`, then append\n // `Cache-Control`/`max-age=0` to httpRequest’s header list.\n if (\n httpRequest.cache === 'no-cache' &&\n !httpRequest.preventNoCacheCacheControlHeaderModification &&\n !httpRequest.headersList.contains('cache-control')\n ) {\n httpRequest.headersList.append('cache-control', 'max-age=0')\n }\n\n // 17. If httpRequest’s cache mode is \"no-store\" or \"reload\", then:\n if (httpRequest.cache === 'no-store' || httpRequest.cache === 'reload') {\n // 1. If httpRequest’s header list does not contain `Pragma`, then append\n // `Pragma`/`no-cache` to httpRequest’s header list.\n if (!httpRequest.headersList.contains('pragma')) {\n httpRequest.headersList.append('pragma', 'no-cache')\n }\n\n // 2. If httpRequest’s header list does not contain `Cache-Control`,\n // then append `Cache-Control`/`no-cache` to httpRequest’s header list.\n if (!httpRequest.headersList.contains('cache-control')) {\n httpRequest.headersList.append('cache-control', 'no-cache')\n }\n }\n\n // 18. If httpRequest’s header list contains `Range`, then append\n // `Accept-Encoding`/`identity` to httpRequest’s header list.\n if (httpRequest.headersList.contains('range')) {\n httpRequest.headersList.append('accept-encoding', 'identity')\n }\n\n // 19. Modify httpRequest’s header list per HTTP. Do not append a given\n // header if httpRequest’s header list contains that header’s name.\n // TODO: https://github.com/whatwg/fetch/issues/1285#issuecomment-896560129\n if (!httpRequest.headersList.contains('accept-encoding')) {\n if (urlHasHttpsScheme(requestCurrentURL(httpRequest))) {\n httpRequest.headersList.append('accept-encoding', 'br, gzip, deflate')\n } else {\n httpRequest.headersList.append('accept-encoding', 'gzip, deflate')\n }\n }\n\n httpRequest.headersList.delete('host')\n\n // 20. If includeCredentials is true, then:\n if (includeCredentials) {\n // 1. If the user agent is not configured to block cookies for httpRequest\n // (see section 7 of [COOKIES]), then:\n // TODO: credentials\n // 2. If httpRequest’s header list does not contain `Authorization`, then:\n // TODO: credentials\n }\n\n // 21. If there’s a proxy-authentication entry, use it as appropriate.\n // TODO: proxy-authentication\n\n // 22. Set httpCache to the result of determining the HTTP cache\n // partition, given httpRequest.\n // TODO: cache\n\n // 23. If httpCache is null, then set httpRequest’s cache mode to\n // \"no-store\".\n if (httpCache == null) {\n httpRequest.cache = 'no-store'\n }\n\n // 24. If httpRequest’s cache mode is neither \"no-store\" nor \"reload\",\n // then:\n if (httpRequest.mode !== 'no-store' && httpRequest.mode !== 'reload') {\n // TODO: cache\n }\n\n // 9. If aborted, then return the appropriate network error for fetchParams.\n // TODO\n\n // 10. If response is null, then:\n if (response == null) {\n // 1. If httpRequest’s cache mode is \"only-if-cached\", then return a\n // network error.\n if (httpRequest.mode === 'only-if-cached') {\n return makeNetworkError('only if cached')\n }\n\n // 2. Let forwardResponse be the result of running HTTP-network fetch\n // given httpFetchParams, includeCredentials, and isNewConnectionFetch.\n const forwardResponse = await httpNetworkFetch(\n httpFetchParams,\n includeCredentials,\n isNewConnectionFetch\n )\n\n // 3. If httpRequest’s method is unsafe and forwardResponse’s status is\n // in the range 200 to 399, inclusive, invalidate appropriate stored\n // responses in httpCache, as per the \"Invalidation\" chapter of HTTP\n // Caching, and set storedResponse to null. [HTTP-CACHING]\n if (\n !safeMethodsSet.has(httpRequest.method) &&\n forwardResponse.status >= 200 &&\n forwardResponse.status <= 399\n ) {\n // TODO: cache\n }\n\n // 4. If the revalidatingFlag is set and forwardResponse’s status is 304,\n // then:\n if (revalidatingFlag && forwardResponse.status === 304) {\n // TODO: cache\n }\n\n // 5. If response is null, then:\n if (response == null) {\n // 1. Set response to forwardResponse.\n response = forwardResponse\n\n // 2. Store httpRequest and forwardResponse in httpCache, as per the\n // \"Storing Responses in Caches\" chapter of HTTP Caching. [HTTP-CACHING]\n // TODO: cache\n }\n }\n\n // 11. Set response’s URL list to a clone of httpRequest’s URL list.\n response.urlList = [...httpRequest.urlList]\n\n // 12. If httpRequest’s header list contains `Range`, then set response’s\n // range-requested flag.\n if (httpRequest.headersList.contains('range')) {\n response.rangeRequested = true\n }\n\n // 13. Set response’s request-includes-credentials to includeCredentials.\n response.requestIncludesCredentials = includeCredentials\n\n // 14. If response’s status is 401, httpRequest’s response tainting is not\n // \"cors\", includeCredentials is true, and request’s window is an environment\n // settings object, then:\n // TODO\n\n // 15. If response’s status is 407, then:\n if (response.status === 407) {\n // 1. If request’s window is \"no-window\", then return a network error.\n if (request.window === 'no-window') {\n return makeNetworkError()\n }\n\n // 2. ???\n\n // 3. If fetchParams is canceled, then return the appropriate network error for fetchParams.\n if (isCancelled(fetchParams)) {\n return makeAppropriateNetworkError(fetchParams)\n }\n\n // 4. Prompt the end user as appropriate in request’s window and store\n // the result as a proxy-authentication entry. [HTTP-AUTH]\n // TODO: Invoke some kind of callback?\n\n // 5. Set response to the result of running HTTP-network-or-cache fetch given\n // fetchParams.\n // TODO\n return makeNetworkError('proxy authentication required')\n }\n\n // 16. If all of the following are true\n if (\n // response’s status is 421\n response.status === 421 &&\n // isNewConnectionFetch is false\n !isNewConnectionFetch &&\n // request’s body is null, or request’s body is non-null and request’s body’s source is non-null\n (request.body == null || request.body.source != null)\n ) {\n // then:\n\n // 1. If fetchParams is canceled, then return the appropriate network error for fetchParams.\n if (isCancelled(fetchParams)) {\n return makeAppropriateNetworkError(fetchParams)\n }\n\n // 2. Set response to the result of running HTTP-network-or-cache\n // fetch given fetchParams, isAuthenticationFetch, and true.\n\n // TODO (spec): The spec doesn't specify this but we need to cancel\n // the active response before we can start a new one.\n // https://github.com/whatwg/fetch/issues/1293\n fetchParams.controller.connection.destroy()\n\n response = await httpNetworkOrCacheFetch(\n fetchParams,\n isAuthenticationFetch,\n true\n )\n }\n\n // 17. If isAuthenticationFetch is true, then create an authentication entry\n if (isAuthenticationFetch) {\n // TODO\n }\n\n // 18. Return response.\n return response\n}\n\n// https://fetch.spec.whatwg.org/#http-network-fetch\nasync function httpNetworkFetch (\n fetchParams,\n includeCredentials = false,\n forceNewConnection = false\n) {\n assert(!fetchParams.controller.connection || fetchParams.controller.connection.destroyed)\n\n fetchParams.controller.connection = {\n abort: null,\n destroyed: false,\n destroy (err) {\n if (!this.destroyed) {\n this.destroyed = true\n this.abort?.(err ?? new DOMException('The operation was aborted.', 'AbortError'))\n }\n }\n }\n\n // 1. Let request be fetchParams’s request.\n const request = fetchParams.request\n\n // 2. Let response be null.\n let response = null\n\n // 3. Let timingInfo be fetchParams’s timing info.\n const timingInfo = fetchParams.timingInfo\n\n // 4. Let httpCache be the result of determining the HTTP cache partition,\n // given request.\n // TODO: cache\n const httpCache = null\n\n // 5. If httpCache is null, then set request’s cache mode to \"no-store\".\n if (httpCache == null) {\n request.cache = 'no-store'\n }\n\n // 6. Let networkPartitionKey be the result of determining the network\n // partition key given request.\n // TODO\n\n // 7. Let newConnection be \"yes\" if forceNewConnection is true; otherwise\n // \"no\".\n const newConnection = forceNewConnection ? 'yes' : 'no' // eslint-disable-line no-unused-vars\n\n // 8. Switch on request’s mode:\n if (request.mode === 'websocket') {\n // Let connection be the result of obtaining a WebSocket connection,\n // given request’s current URL.\n // TODO\n } else {\n // Let connection be the result of obtaining a connection, given\n // networkPartitionKey, request’s current URL’s origin,\n // includeCredentials, and forceNewConnection.\n // TODO\n }\n\n // 9. Run these steps, but abort when the ongoing fetch is terminated:\n\n // 1. If connection is failure, then return a network error.\n\n // 2. Set timingInfo’s final connection timing info to the result of\n // calling clamp and coarsen connection timing info with connection’s\n // timing info, timingInfo’s post-redirect start time, and fetchParams’s\n // cross-origin isolated capability.\n\n // 3. If connection is not an HTTP/2 connection, request’s body is non-null,\n // and request’s body’s source is null, then append (`Transfer-Encoding`,\n // `chunked`) to request’s header list.\n\n // 4. Set timingInfo’s final network-request start time to the coarsened\n // shared current time given fetchParams’s cross-origin isolated\n // capability.\n\n // 5. Set response to the result of making an HTTP request over connection\n // using request with the following caveats:\n\n // - Follow the relevant requirements from HTTP. [HTTP] [HTTP-SEMANTICS]\n // [HTTP-COND] [HTTP-CACHING] [HTTP-AUTH]\n\n // - If request’s body is non-null, and request’s body’s source is null,\n // then the user agent may have a buffer of up to 64 kibibytes and store\n // a part of request’s body in that buffer. If the user agent reads from\n // request’s body beyond that buffer’s size and the user agent needs to\n // resend request, then instead return a network error.\n\n // - Set timingInfo’s final network-response start time to the coarsened\n // shared current time given fetchParams’s cross-origin isolated capability,\n // immediately after the user agent’s HTTP parser receives the first byte\n // of the response (e.g., frame header bytes for HTTP/2 or response status\n // line for HTTP/1.x).\n\n // - Wait until all the headers are transmitted.\n\n // - Any responses whose status is in the range 100 to 199, inclusive,\n // and is not 101, are to be ignored, except for the purposes of setting\n // timingInfo’s final network-response start time above.\n\n // - If request’s header list contains `Transfer-Encoding`/`chunked` and\n // response is transferred via HTTP/1.0 or older, then return a network\n // error.\n\n // - If the HTTP request results in a TLS client certificate dialog, then:\n\n // 1. If request’s window is an environment settings object, make the\n // dialog available in request’s window.\n\n // 2. Otherwise, return a network error.\n\n // To transmit request’s body body, run these steps:\n let requestBody = null\n // 1. If body is null and fetchParams’s process request end-of-body is\n // non-null, then queue a fetch task given fetchParams’s process request\n // end-of-body and fetchParams’s task destination.\n if (request.body == null && fetchParams.processRequestEndOfBody) {\n queueMicrotask(() => fetchParams.processRequestEndOfBody())\n } else if (request.body != null) {\n // 2. Otherwise, if body is non-null:\n\n // 1. Let processBodyChunk given bytes be these steps:\n const processBodyChunk = async function * (bytes) {\n // 1. If the ongoing fetch is terminated, then abort these steps.\n if (isCancelled(fetchParams)) {\n return\n }\n\n // 2. Run this step in parallel: transmit bytes.\n yield bytes\n\n // 3. If fetchParams’s process request body is non-null, then run\n // fetchParams’s process request body given bytes’s length.\n fetchParams.processRequestBodyChunkLength?.(bytes.byteLength)\n }\n\n // 2. Let processEndOfBody be these steps:\n const processEndOfBody = () => {\n // 1. If fetchParams is canceled, then abort these steps.\n if (isCancelled(fetchParams)) {\n return\n }\n\n // 2. If fetchParams’s process request end-of-body is non-null,\n // then run fetchParams’s process request end-of-body.\n if (fetchParams.processRequestEndOfBody) {\n fetchParams.processRequestEndOfBody()\n }\n }\n\n // 3. Let processBodyError given e be these steps:\n const processBodyError = (e) => {\n // 1. If fetchParams is canceled, then abort these steps.\n if (isCancelled(fetchParams)) {\n return\n }\n\n // 2. If e is an \"AbortError\" DOMException, then abort fetchParams’s controller.\n if (e.name === 'AbortError') {\n fetchParams.controller.abort()\n } else {\n fetchParams.controller.terminate(e)\n }\n }\n\n // 4. Incrementally read request’s body given processBodyChunk, processEndOfBody,\n // processBodyError, and fetchParams’s task destination.\n requestBody = (async function * () {\n try {\n for await (const bytes of request.body.stream) {\n yield * processBodyChunk(bytes)\n }\n processEndOfBody()\n } catch (err) {\n processBodyError(err)\n }\n })()\n }\n\n try {\n // socket is only provided for websockets\n const { body, status, statusText, headersList, socket } = await dispatch({ body: requestBody })\n\n if (socket) {\n response = makeResponse({ status, statusText, headersList, socket })\n } else {\n const iterator = body[Symbol.asyncIterator]()\n fetchParams.controller.next = () => iterator.next()\n\n response = makeResponse({ status, statusText, headersList })\n }\n } catch (err) {\n // 10. If aborted, then:\n if (err.name === 'AbortError') {\n // 1. If connection uses HTTP/2, then transmit an RST_STREAM frame.\n fetchParams.controller.connection.destroy()\n\n // 2. Return the appropriate network error for fetchParams.\n return makeAppropriateNetworkError(fetchParams, err)\n }\n\n return makeNetworkError(err)\n }\n\n // 11. Let pullAlgorithm be an action that resumes the ongoing fetch\n // if it is suspended.\n const pullAlgorithm = () => {\n fetchParams.controller.resume()\n }\n\n // 12. Let cancelAlgorithm be an algorithm that aborts fetchParams’s\n // controller with reason, given reason.\n const cancelAlgorithm = (reason) => {\n fetchParams.controller.abort(reason)\n }\n\n // 13. Let highWaterMark be a non-negative, non-NaN number, chosen by\n // the user agent.\n // TODO\n\n // 14. Let sizeAlgorithm be an algorithm that accepts a chunk object\n // and returns a non-negative, non-NaN, non-infinite number, chosen by the user agent.\n // TODO\n\n // 15. Let stream be a new ReadableStream.\n // 16. Set up stream with pullAlgorithm set to pullAlgorithm,\n // cancelAlgorithm set to cancelAlgorithm, highWaterMark set to\n // highWaterMark, and sizeAlgorithm set to sizeAlgorithm.\n if (!ReadableStream) {\n ReadableStream = require('stream/web').ReadableStream\n }\n\n const stream = new ReadableStream(\n {\n async start (controller) {\n fetchParams.controller.controller = controller\n },\n async pull (controller) {\n await pullAlgorithm(controller)\n },\n async cancel (reason) {\n await cancelAlgorithm(reason)\n }\n },\n {\n highWaterMark: 0,\n size () {\n return 1\n }\n }\n )\n\n // 17. Run these steps, but abort when the ongoing fetch is terminated:\n\n // 1. Set response’s body to a new body whose stream is stream.\n response.body = { stream }\n\n // 2. If response is not a network error and request’s cache mode is\n // not \"no-store\", then update response in httpCache for request.\n // TODO\n\n // 3. If includeCredentials is true and the user agent is not configured\n // to block cookies for request (see section 7 of [COOKIES]), then run the\n // \"set-cookie-string\" parsing algorithm (see section 5.2 of [COOKIES]) on\n // the value of each header whose name is a byte-case-insensitive match for\n // `Set-Cookie` in response’s header list, if any, and request’s current URL.\n // TODO\n\n // 18. If aborted, then:\n // TODO\n\n // 19. Run these steps in parallel:\n\n // 1. Run these steps, but abort when fetchParams is canceled:\n fetchParams.controller.on('terminated', onAborted)\n fetchParams.controller.resume = async () => {\n // 1. While true\n while (true) {\n // 1-3. See onData...\n\n // 4. Set bytes to the result of handling content codings given\n // codings and bytes.\n let bytes\n let isFailure\n try {\n const { done, value } = await fetchParams.controller.next()\n\n if (isAborted(fetchParams)) {\n break\n }\n\n bytes = done ? undefined : value\n } catch (err) {\n if (fetchParams.controller.ended && !timingInfo.encodedBodySize) {\n // zlib doesn't like empty streams.\n bytes = undefined\n } else {\n bytes = err\n\n // err may be propagated from the result of calling readablestream.cancel,\n // which might not be an error. https://github.com/nodejs/undici/issues/2009\n isFailure = true\n }\n }\n\n if (bytes === undefined) {\n // 2. Otherwise, if the bytes transmission for response’s message\n // body is done normally and stream is readable, then close\n // stream, finalize response for fetchParams and response, and\n // abort these in-parallel steps.\n readableStreamClose(fetchParams.controller.controller)\n\n finalizeResponse(fetchParams, response)\n\n return\n }\n\n // 5. Increase timingInfo’s decoded body size by bytes’s length.\n timingInfo.decodedBodySize += bytes?.byteLength ?? 0\n\n // 6. If bytes is failure, then terminate fetchParams’s controller.\n if (isFailure) {\n fetchParams.controller.terminate(bytes)\n return\n }\n\n // 7. Enqueue a Uint8Array wrapping an ArrayBuffer containing bytes\n // into stream.\n fetchParams.controller.controller.enqueue(new Uint8Array(bytes))\n\n // 8. If stream is errored, then terminate the ongoing fetch.\n if (isErrored(stream)) {\n fetchParams.controller.terminate()\n return\n }\n\n // 9. If stream doesn’t need more data ask the user agent to suspend\n // the ongoing fetch.\n if (!fetchParams.controller.controller.desiredSize) {\n return\n }\n }\n }\n\n // 2. If aborted, then:\n function onAborted (reason) {\n // 2. If fetchParams is aborted, then:\n if (isAborted(fetchParams)) {\n // 1. Set response’s aborted flag.\n response.aborted = true\n\n // 2. If stream is readable, then error stream with the result of\n // deserialize a serialized abort reason given fetchParams’s\n // controller’s serialized abort reason and an\n // implementation-defined realm.\n if (isReadable(stream)) {\n fetchParams.controller.controller.error(\n fetchParams.controller.serializedAbortReason\n )\n }\n } else {\n // 3. Otherwise, if stream is readable, error stream with a TypeError.\n if (isReadable(stream)) {\n fetchParams.controller.controller.error(new TypeError('terminated', {\n cause: isErrorLike(reason) ? reason : undefined\n }))\n }\n }\n\n // 4. If connection uses HTTP/2, then transmit an RST_STREAM frame.\n // 5. Otherwise, the user agent should close connection unless it would be bad for performance to do so.\n fetchParams.controller.connection.destroy()\n }\n\n // 20. Return response.\n return response\n\n async function dispatch ({ body }) {\n const url = requestCurrentURL(request)\n /** @type {import('../..').Agent} */\n const agent = fetchParams.controller.dispatcher\n\n return new Promise((resolve, reject) => agent.dispatch(\n {\n path: url.pathname + url.search,\n origin: url.origin,\n method: request.method,\n body: fetchParams.controller.dispatcher.isMockActive ? request.body && (request.body.source || request.body.stream) : body,\n headers: request.headersList.entries,\n maxRedirections: 0,\n upgrade: request.mode === 'websocket' ? 'websocket' : undefined\n },\n {\n body: null,\n abort: null,\n\n onConnect (abort) {\n // TODO (fix): Do we need connection here?\n const { connection } = fetchParams.controller\n\n if (connection.destroyed) {\n abort(new DOMException('The operation was aborted.', 'AbortError'))\n } else {\n fetchParams.controller.on('terminated', abort)\n this.abort = connection.abort = abort\n }\n },\n\n onHeaders (status, headersList, resume, statusText) {\n if (status < 200) {\n return\n }\n\n let codings = []\n let location = ''\n\n const headers = new Headers()\n\n // For H2, the headers are a plain JS object\n // We distinguish between them and iterate accordingly\n if (Array.isArray(headersList)) {\n for (let n = 0; n < headersList.length; n += 2) {\n const key = headersList[n + 0].toString('latin1')\n const val = headersList[n + 1].toString('latin1')\n if (key.toLowerCase() === 'content-encoding') {\n // https://www.rfc-editor.org/rfc/rfc7231#section-3.1.2.1\n // \"All content-coding values are case-insensitive...\"\n codings = val.toLowerCase().split(',').map((x) => x.trim())\n } else if (key.toLowerCase() === 'location') {\n location = val\n }\n\n headers[kHeadersList].append(key, val)\n }\n } else {\n const keys = Object.keys(headersList)\n for (const key of keys) {\n const val = headersList[key]\n if (key.toLowerCase() === 'content-encoding') {\n // https://www.rfc-editor.org/rfc/rfc7231#section-3.1.2.1\n // \"All content-coding values are case-insensitive...\"\n codings = val.toLowerCase().split(',').map((x) => x.trim()).reverse()\n } else if (key.toLowerCase() === 'location') {\n location = val\n }\n\n headers[kHeadersList].append(key, val)\n }\n }\n\n this.body = new Readable({ read: resume })\n\n const decoders = []\n\n const willFollow = request.redirect === 'follow' &&\n location &&\n redirectStatusSet.has(status)\n\n // https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Encoding\n if (request.method !== 'HEAD' && request.method !== 'CONNECT' && !nullBodyStatus.includes(status) && !willFollow) {\n for (const coding of codings) {\n // https://www.rfc-editor.org/rfc/rfc9112.html#section-7.2\n if (coding === 'x-gzip' || coding === 'gzip') {\n decoders.push(zlib.createGunzip({\n // Be less strict when decoding compressed responses, since sometimes\n // servers send slightly invalid responses that are still accepted\n // by common browsers.\n // Always using Z_SYNC_FLUSH is what cURL does.\n flush: zlib.constants.Z_SYNC_FLUSH,\n finishFlush: zlib.constants.Z_SYNC_FLUSH\n }))\n } else if (coding === 'deflate') {\n decoders.push(zlib.createInflate())\n } else if (coding === 'br') {\n decoders.push(zlib.createBrotliDecompress())\n } else {\n decoders.length = 0\n break\n }\n }\n }\n\n resolve({\n status,\n statusText,\n headersList: headers[kHeadersList],\n body: decoders.length\n ? pipeline(this.body, ...decoders, () => { })\n : this.body.on('error', () => {})\n })\n\n return true\n },\n\n onData (chunk) {\n if (fetchParams.controller.dump) {\n return\n }\n\n // 1. If one or more bytes have been transmitted from response’s\n // message body, then:\n\n // 1. Let bytes be the transmitted bytes.\n const bytes = chunk\n\n // 2. Let codings be the result of extracting header list values\n // given `Content-Encoding` and response’s header list.\n // See pullAlgorithm.\n\n // 3. Increase timingInfo’s encoded body size by bytes’s length.\n timingInfo.encodedBodySize += bytes.byteLength\n\n // 4. See pullAlgorithm...\n\n return this.body.push(bytes)\n },\n\n onComplete () {\n if (this.abort) {\n fetchParams.controller.off('terminated', this.abort)\n }\n\n fetchParams.controller.ended = true\n\n this.body.push(null)\n },\n\n onError (error) {\n if (this.abort) {\n fetchParams.controller.off('terminated', this.abort)\n }\n\n this.body?.destroy(error)\n\n fetchParams.controller.terminate(error)\n\n reject(error)\n },\n\n onUpgrade (status, headersList, socket) {\n if (status !== 101) {\n return\n }\n\n const headers = new Headers()\n\n for (let n = 0; n < headersList.length; n += 2) {\n const key = headersList[n + 0].toString('latin1')\n const val = headersList[n + 1].toString('latin1')\n\n headers[kHeadersList].append(key, val)\n }\n\n resolve({\n status,\n statusText: STATUS_CODES[status],\n headersList: headers[kHeadersList],\n socket\n })\n\n return true\n }\n }\n ))\n }\n}\n\nmodule.exports = {\n fetch,\n Fetch,\n fetching,\n finalizeAndReportTiming\n}\n","/* globals AbortController */\n\n'use strict'\n\nconst { extractBody, mixinBody, cloneBody } = require('./body')\nconst { Headers, fill: fillHeaders, HeadersList } = require('./headers')\nconst { FinalizationRegistry } = require('../compat/dispatcher-weakref')()\nconst util = require('../core/util')\nconst {\n isValidHTTPToken,\n sameOrigin,\n normalizeMethod,\n makePolicyContainer,\n normalizeMethodRecord\n} = require('./util')\nconst {\n forbiddenMethodsSet,\n corsSafeListedMethodsSet,\n referrerPolicy,\n requestRedirect,\n requestMode,\n requestCredentials,\n requestCache,\n requestDuplex\n} = require('./constants')\nconst { kEnumerableProperty } = util\nconst { kHeaders, kSignal, kState, kGuard, kRealm } = require('./symbols')\nconst { webidl } = require('./webidl')\nconst { getGlobalOrigin } = require('./global')\nconst { URLSerializer } = require('./dataURL')\nconst { kHeadersList, kConstruct } = require('../core/symbols')\nconst assert = require('assert')\nconst { getMaxListeners, setMaxListeners, getEventListeners, defaultMaxListeners } = require('events')\n\nlet TransformStream = globalThis.TransformStream\n\nconst kAbortController = Symbol('abortController')\n\nconst requestFinalizer = new FinalizationRegistry(({ signal, abort }) => {\n signal.removeEventListener('abort', abort)\n})\n\n// https://fetch.spec.whatwg.org/#request-class\nclass Request {\n // https://fetch.spec.whatwg.org/#dom-request\n constructor (input, init = {}) {\n if (input === kConstruct) {\n return\n }\n\n webidl.argumentLengthCheck(arguments, 1, { header: 'Request constructor' })\n\n input = webidl.converters.RequestInfo(input)\n init = webidl.converters.RequestInit(init)\n\n // https://html.spec.whatwg.org/multipage/webappapis.html#environment-settings-object\n this[kRealm] = {\n settingsObject: {\n baseUrl: getGlobalOrigin(),\n get origin () {\n return this.baseUrl?.origin\n },\n policyContainer: makePolicyContainer()\n }\n }\n\n // 1. Let request be null.\n let request = null\n\n // 2. Let fallbackMode be null.\n let fallbackMode = null\n\n // 3. Let baseURL be this’s relevant settings object’s API base URL.\n const baseUrl = this[kRealm].settingsObject.baseUrl\n\n // 4. Let signal be null.\n let signal = null\n\n // 5. If input is a string, then:\n if (typeof input === 'string') {\n // 1. Let parsedURL be the result of parsing input with baseURL.\n // 2. If parsedURL is failure, then throw a TypeError.\n let parsedURL\n try {\n parsedURL = new URL(input, baseUrl)\n } catch (err) {\n throw new TypeError('Failed to parse URL from ' + input, { cause: err })\n }\n\n // 3. If parsedURL includes credentials, then throw a TypeError.\n if (parsedURL.username || parsedURL.password) {\n throw new TypeError(\n 'Request cannot be constructed from a URL that includes credentials: ' +\n input\n )\n }\n\n // 4. Set request to a new request whose URL is parsedURL.\n request = makeRequest({ urlList: [parsedURL] })\n\n // 5. Set fallbackMode to \"cors\".\n fallbackMode = 'cors'\n } else {\n // 6. Otherwise:\n\n // 7. Assert: input is a Request object.\n assert(input instanceof Request)\n\n // 8. Set request to input’s request.\n request = input[kState]\n\n // 9. Set signal to input’s signal.\n signal = input[kSignal]\n }\n\n // 7. Let origin be this’s relevant settings object’s origin.\n const origin = this[kRealm].settingsObject.origin\n\n // 8. Let window be \"client\".\n let window = 'client'\n\n // 9. If request’s window is an environment settings object and its origin\n // is same origin with origin, then set window to request’s window.\n if (\n request.window?.constructor?.name === 'EnvironmentSettingsObject' &&\n sameOrigin(request.window, origin)\n ) {\n window = request.window\n }\n\n // 10. If init[\"window\"] exists and is non-null, then throw a TypeError.\n if (init.window != null) {\n throw new TypeError(`'window' option '${window}' must be null`)\n }\n\n // 11. If init[\"window\"] exists, then set window to \"no-window\".\n if ('window' in init) {\n window = 'no-window'\n }\n\n // 12. Set request to a new request with the following properties:\n request = makeRequest({\n // URL request’s URL.\n // undici implementation note: this is set as the first item in request's urlList in makeRequest\n // method request’s method.\n method: request.method,\n // header list A copy of request’s header list.\n // undici implementation note: headersList is cloned in makeRequest\n headersList: request.headersList,\n // unsafe-request flag Set.\n unsafeRequest: request.unsafeRequest,\n // client This’s relevant settings object.\n client: this[kRealm].settingsObject,\n // window window.\n window,\n // priority request’s priority.\n priority: request.priority,\n // origin request’s origin. The propagation of the origin is only significant for navigation requests\n // being handled by a service worker. In this scenario a request can have an origin that is different\n // from the current client.\n origin: request.origin,\n // referrer request’s referrer.\n referrer: request.referrer,\n // referrer policy request’s referrer policy.\n referrerPolicy: request.referrerPolicy,\n // mode request’s mode.\n mode: request.mode,\n // credentials mode request’s credentials mode.\n credentials: request.credentials,\n // cache mode request’s cache mode.\n cache: request.cache,\n // redirect mode request’s redirect mode.\n redirect: request.redirect,\n // integrity metadata request’s integrity metadata.\n integrity: request.integrity,\n // keepalive request’s keepalive.\n keepalive: request.keepalive,\n // reload-navigation flag request’s reload-navigation flag.\n reloadNavigation: request.reloadNavigation,\n // history-navigation flag request’s history-navigation flag.\n historyNavigation: request.historyNavigation,\n // URL list A clone of request’s URL list.\n urlList: [...request.urlList]\n })\n\n const initHasKey = Object.keys(init).length !== 0\n\n // 13. If init is not empty, then:\n if (initHasKey) {\n // 1. If request’s mode is \"navigate\", then set it to \"same-origin\".\n if (request.mode === 'navigate') {\n request.mode = 'same-origin'\n }\n\n // 2. Unset request’s reload-navigation flag.\n request.reloadNavigation = false\n\n // 3. Unset request’s history-navigation flag.\n request.historyNavigation = false\n\n // 4. Set request’s origin to \"client\".\n request.origin = 'client'\n\n // 5. Set request’s referrer to \"client\"\n request.referrer = 'client'\n\n // 6. Set request’s referrer policy to the empty string.\n request.referrerPolicy = ''\n\n // 7. Set request’s URL to request’s current URL.\n request.url = request.urlList[request.urlList.length - 1]\n\n // 8. Set request’s URL list to « request’s URL ».\n request.urlList = [request.url]\n }\n\n // 14. If init[\"referrer\"] exists, then:\n if (init.referrer !== undefined) {\n // 1. Let referrer be init[\"referrer\"].\n const referrer = init.referrer\n\n // 2. If referrer is the empty string, then set request’s referrer to \"no-referrer\".\n if (referrer === '') {\n request.referrer = 'no-referrer'\n } else {\n // 1. Let parsedReferrer be the result of parsing referrer with\n // baseURL.\n // 2. If parsedReferrer is failure, then throw a TypeError.\n let parsedReferrer\n try {\n parsedReferrer = new URL(referrer, baseUrl)\n } catch (err) {\n throw new TypeError(`Referrer \"${referrer}\" is not a valid URL.`, { cause: err })\n }\n\n // 3. If one of the following is true\n // - parsedReferrer’s scheme is \"about\" and path is the string \"client\"\n // - parsedReferrer’s origin is not same origin with origin\n // then set request’s referrer to \"client\".\n if (\n (parsedReferrer.protocol === 'about:' && parsedReferrer.hostname === 'client') ||\n (origin && !sameOrigin(parsedReferrer, this[kRealm].settingsObject.baseUrl))\n ) {\n request.referrer = 'client'\n } else {\n // 4. Otherwise, set request’s referrer to parsedReferrer.\n request.referrer = parsedReferrer\n }\n }\n }\n\n // 15. If init[\"referrerPolicy\"] exists, then set request’s referrer policy\n // to it.\n if (init.referrerPolicy !== undefined) {\n request.referrerPolicy = init.referrerPolicy\n }\n\n // 16. Let mode be init[\"mode\"] if it exists, and fallbackMode otherwise.\n let mode\n if (init.mode !== undefined) {\n mode = init.mode\n } else {\n mode = fallbackMode\n }\n\n // 17. If mode is \"navigate\", then throw a TypeError.\n if (mode === 'navigate') {\n throw webidl.errors.exception({\n header: 'Request constructor',\n message: 'invalid request mode navigate.'\n })\n }\n\n // 18. If mode is non-null, set request’s mode to mode.\n if (mode != null) {\n request.mode = mode\n }\n\n // 19. If init[\"credentials\"] exists, then set request’s credentials mode\n // to it.\n if (init.credentials !== undefined) {\n request.credentials = init.credentials\n }\n\n // 18. If init[\"cache\"] exists, then set request’s cache mode to it.\n if (init.cache !== undefined) {\n request.cache = init.cache\n }\n\n // 21. If request’s cache mode is \"only-if-cached\" and request’s mode is\n // not \"same-origin\", then throw a TypeError.\n if (request.cache === 'only-if-cached' && request.mode !== 'same-origin') {\n throw new TypeError(\n \"'only-if-cached' can be set only with 'same-origin' mode\"\n )\n }\n\n // 22. If init[\"redirect\"] exists, then set request’s redirect mode to it.\n if (init.redirect !== undefined) {\n request.redirect = init.redirect\n }\n\n // 23. If init[\"integrity\"] exists, then set request’s integrity metadata to it.\n if (init.integrity != null) {\n request.integrity = String(init.integrity)\n }\n\n // 24. If init[\"keepalive\"] exists, then set request’s keepalive to it.\n if (init.keepalive !== undefined) {\n request.keepalive = Boolean(init.keepalive)\n }\n\n // 25. If init[\"method\"] exists, then:\n if (init.method !== undefined) {\n // 1. Let method be init[\"method\"].\n let method = init.method\n\n // 2. If method is not a method or method is a forbidden method, then\n // throw a TypeError.\n if (!isValidHTTPToken(method)) {\n throw new TypeError(`'${method}' is not a valid HTTP method.`)\n }\n\n if (forbiddenMethodsSet.has(method.toUpperCase())) {\n throw new TypeError(`'${method}' HTTP method is unsupported.`)\n }\n\n // 3. Normalize method.\n method = normalizeMethodRecord[method] ?? normalizeMethod(method)\n\n // 4. Set request’s method to method.\n request.method = method\n }\n\n // 26. If init[\"signal\"] exists, then set signal to it.\n if (init.signal !== undefined) {\n signal = init.signal\n }\n\n // 27. Set this’s request to request.\n this[kState] = request\n\n // 28. Set this’s signal to a new AbortSignal object with this’s relevant\n // Realm.\n // TODO: could this be simplified with AbortSignal.any\n // (https://dom.spec.whatwg.org/#dom-abortsignal-any)\n const ac = new AbortController()\n this[kSignal] = ac.signal\n this[kSignal][kRealm] = this[kRealm]\n\n // 29. If signal is not null, then make this’s signal follow signal.\n if (signal != null) {\n if (\n !signal ||\n typeof signal.aborted !== 'boolean' ||\n typeof signal.addEventListener !== 'function'\n ) {\n throw new TypeError(\n \"Failed to construct 'Request': member signal is not of type AbortSignal.\"\n )\n }\n\n if (signal.aborted) {\n ac.abort(signal.reason)\n } else {\n // Keep a strong ref to ac while request object\n // is alive. This is needed to prevent AbortController\n // from being prematurely garbage collected.\n // See, https://github.com/nodejs/undici/issues/1926.\n this[kAbortController] = ac\n\n const acRef = new WeakRef(ac)\n const abort = function () {\n const ac = acRef.deref()\n if (ac !== undefined) {\n ac.abort(this.reason)\n }\n }\n\n // Third-party AbortControllers may not work with these.\n // See, https://github.com/nodejs/undici/pull/1910#issuecomment-1464495619.\n try {\n // If the max amount of listeners is equal to the default, increase it\n // This is only available in node >= v19.9.0\n if (typeof getMaxListeners === 'function' && getMaxListeners(signal) === defaultMaxListeners) {\n setMaxListeners(100, signal)\n } else if (getEventListeners(signal, 'abort').length >= defaultMaxListeners) {\n setMaxListeners(100, signal)\n }\n } catch {}\n\n util.addAbortListener(signal, abort)\n requestFinalizer.register(ac, { signal, abort })\n }\n }\n\n // 30. Set this’s headers to a new Headers object with this’s relevant\n // Realm, whose header list is request’s header list and guard is\n // \"request\".\n this[kHeaders] = new Headers(kConstruct)\n this[kHeaders][kHeadersList] = request.headersList\n this[kHeaders][kGuard] = 'request'\n this[kHeaders][kRealm] = this[kRealm]\n\n // 31. If this’s request’s mode is \"no-cors\", then:\n if (mode === 'no-cors') {\n // 1. If this’s request’s method is not a CORS-safelisted method,\n // then throw a TypeError.\n if (!corsSafeListedMethodsSet.has(request.method)) {\n throw new TypeError(\n `'${request.method} is unsupported in no-cors mode.`\n )\n }\n\n // 2. Set this’s headers’s guard to \"request-no-cors\".\n this[kHeaders][kGuard] = 'request-no-cors'\n }\n\n // 32. If init is not empty, then:\n if (initHasKey) {\n /** @type {HeadersList} */\n const headersList = this[kHeaders][kHeadersList]\n // 1. Let headers be a copy of this’s headers and its associated header\n // list.\n // 2. If init[\"headers\"] exists, then set headers to init[\"headers\"].\n const headers = init.headers !== undefined ? init.headers : new HeadersList(headersList)\n\n // 3. Empty this’s headers’s header list.\n headersList.clear()\n\n // 4. If headers is a Headers object, then for each header in its header\n // list, append header’s name/header’s value to this’s headers.\n if (headers instanceof HeadersList) {\n for (const [key, val] of headers) {\n headersList.append(key, val)\n }\n // Note: Copy the `set-cookie` meta-data.\n headersList.cookies = headers.cookies\n } else {\n // 5. Otherwise, fill this’s headers with headers.\n fillHeaders(this[kHeaders], headers)\n }\n }\n\n // 33. Let inputBody be input’s request’s body if input is a Request\n // object; otherwise null.\n const inputBody = input instanceof Request ? input[kState].body : null\n\n // 34. If either init[\"body\"] exists and is non-null or inputBody is\n // non-null, and request’s method is `GET` or `HEAD`, then throw a\n // TypeError.\n if (\n (init.body != null || inputBody != null) &&\n (request.method === 'GET' || request.method === 'HEAD')\n ) {\n throw new TypeError('Request with GET/HEAD method cannot have body.')\n }\n\n // 35. Let initBody be null.\n let initBody = null\n\n // 36. If init[\"body\"] exists and is non-null, then:\n if (init.body != null) {\n // 1. Let Content-Type be null.\n // 2. Set initBody and Content-Type to the result of extracting\n // init[\"body\"], with keepalive set to request’s keepalive.\n const [extractedBody, contentType] = extractBody(\n init.body,\n request.keepalive\n )\n initBody = extractedBody\n\n // 3, If Content-Type is non-null and this’s headers’s header list does\n // not contain `Content-Type`, then append `Content-Type`/Content-Type to\n // this’s headers.\n if (contentType && !this[kHeaders][kHeadersList].contains('content-type')) {\n this[kHeaders].append('content-type', contentType)\n }\n }\n\n // 37. Let inputOrInitBody be initBody if it is non-null; otherwise\n // inputBody.\n const inputOrInitBody = initBody ?? inputBody\n\n // 38. If inputOrInitBody is non-null and inputOrInitBody’s source is\n // null, then:\n if (inputOrInitBody != null && inputOrInitBody.source == null) {\n // 1. If initBody is non-null and init[\"duplex\"] does not exist,\n // then throw a TypeError.\n if (initBody != null && init.duplex == null) {\n throw new TypeError('RequestInit: duplex option is required when sending a body.')\n }\n\n // 2. If this’s request’s mode is neither \"same-origin\" nor \"cors\",\n // then throw a TypeError.\n if (request.mode !== 'same-origin' && request.mode !== 'cors') {\n throw new TypeError(\n 'If request is made from ReadableStream, mode should be \"same-origin\" or \"cors\"'\n )\n }\n\n // 3. Set this’s request’s use-CORS-preflight flag.\n request.useCORSPreflightFlag = true\n }\n\n // 39. Let finalBody be inputOrInitBody.\n let finalBody = inputOrInitBody\n\n // 40. If initBody is null and inputBody is non-null, then:\n if (initBody == null && inputBody != null) {\n // 1. If input is unusable, then throw a TypeError.\n if (util.isDisturbed(inputBody.stream) || inputBody.stream.locked) {\n throw new TypeError(\n 'Cannot construct a Request with a Request object that has already been used.'\n )\n }\n\n // 2. Set finalBody to the result of creating a proxy for inputBody.\n if (!TransformStream) {\n TransformStream = require('stream/web').TransformStream\n }\n\n // https://streams.spec.whatwg.org/#readablestream-create-a-proxy\n const identityTransform = new TransformStream()\n inputBody.stream.pipeThrough(identityTransform)\n finalBody = {\n source: inputBody.source,\n length: inputBody.length,\n stream: identityTransform.readable\n }\n }\n\n // 41. Set this’s request’s body to finalBody.\n this[kState].body = finalBody\n }\n\n // Returns request’s HTTP method, which is \"GET\" by default.\n get method () {\n webidl.brandCheck(this, Request)\n\n // The method getter steps are to return this’s request’s method.\n return this[kState].method\n }\n\n // Returns the URL of request as a string.\n get url () {\n webidl.brandCheck(this, Request)\n\n // The url getter steps are to return this’s request’s URL, serialized.\n return URLSerializer(this[kState].url)\n }\n\n // Returns a Headers object consisting of the headers associated with request.\n // Note that headers added in the network layer by the user agent will not\n // be accounted for in this object, e.g., the \"Host\" header.\n get headers () {\n webidl.brandCheck(this, Request)\n\n // The headers getter steps are to return this’s headers.\n return this[kHeaders]\n }\n\n // Returns the kind of resource requested by request, e.g., \"document\"\n // or \"script\".\n get destination () {\n webidl.brandCheck(this, Request)\n\n // The destination getter are to return this’s request’s destination.\n return this[kState].destination\n }\n\n // Returns the referrer of request. Its value can be a same-origin URL if\n // explicitly set in init, the empty string to indicate no referrer, and\n // \"about:client\" when defaulting to the global’s default. This is used\n // during fetching to determine the value of the `Referer` header of the\n // request being made.\n get referrer () {\n webidl.brandCheck(this, Request)\n\n // 1. If this’s request’s referrer is \"no-referrer\", then return the\n // empty string.\n if (this[kState].referrer === 'no-referrer') {\n return ''\n }\n\n // 2. If this’s request’s referrer is \"client\", then return\n // \"about:client\".\n if (this[kState].referrer === 'client') {\n return 'about:client'\n }\n\n // Return this’s request’s referrer, serialized.\n return this[kState].referrer.toString()\n }\n\n // Returns the referrer policy associated with request.\n // This is used during fetching to compute the value of the request’s\n // referrer.\n get referrerPolicy () {\n webidl.brandCheck(this, Request)\n\n // The referrerPolicy getter steps are to return this’s request’s referrer policy.\n return this[kState].referrerPolicy\n }\n\n // Returns the mode associated with request, which is a string indicating\n // whether the request will use CORS, or will be restricted to same-origin\n // URLs.\n get mode () {\n webidl.brandCheck(this, Request)\n\n // The mode getter steps are to return this’s request’s mode.\n return this[kState].mode\n }\n\n // Returns the credentials mode associated with request,\n // which is a string indicating whether credentials will be sent with the\n // request always, never, or only when sent to a same-origin URL.\n get credentials () {\n // The credentials getter steps are to return this’s request’s credentials mode.\n return this[kState].credentials\n }\n\n // Returns the cache mode associated with request,\n // which is a string indicating how the request will\n // interact with the browser’s cache when fetching.\n get cache () {\n webidl.brandCheck(this, Request)\n\n // The cache getter steps are to return this’s request’s cache mode.\n return this[kState].cache\n }\n\n // Returns the redirect mode associated with request,\n // which is a string indicating how redirects for the\n // request will be handled during fetching. A request\n // will follow redirects by default.\n get redirect () {\n webidl.brandCheck(this, Request)\n\n // The redirect getter steps are to return this’s request’s redirect mode.\n return this[kState].redirect\n }\n\n // Returns request’s subresource integrity metadata, which is a\n // cryptographic hash of the resource being fetched. Its value\n // consists of multiple hashes separated by whitespace. [SRI]\n get integrity () {\n webidl.brandCheck(this, Request)\n\n // The integrity getter steps are to return this’s request’s integrity\n // metadata.\n return this[kState].integrity\n }\n\n // Returns a boolean indicating whether or not request can outlive the\n // global in which it was created.\n get keepalive () {\n webidl.brandCheck(this, Request)\n\n // The keepalive getter steps are to return this’s request’s keepalive.\n return this[kState].keepalive\n }\n\n // Returns a boolean indicating whether or not request is for a reload\n // navigation.\n get isReloadNavigation () {\n webidl.brandCheck(this, Request)\n\n // The isReloadNavigation getter steps are to return true if this’s\n // request’s reload-navigation flag is set; otherwise false.\n return this[kState].reloadNavigation\n }\n\n // Returns a boolean indicating whether or not request is for a history\n // navigation (a.k.a. back-foward navigation).\n get isHistoryNavigation () {\n webidl.brandCheck(this, Request)\n\n // The isHistoryNavigation getter steps are to return true if this’s request’s\n // history-navigation flag is set; otherwise false.\n return this[kState].historyNavigation\n }\n\n // Returns the signal associated with request, which is an AbortSignal\n // object indicating whether or not request has been aborted, and its\n // abort event handler.\n get signal () {\n webidl.brandCheck(this, Request)\n\n // The signal getter steps are to return this’s signal.\n return this[kSignal]\n }\n\n get body () {\n webidl.brandCheck(this, Request)\n\n return this[kState].body ? this[kState].body.stream : null\n }\n\n get bodyUsed () {\n webidl.brandCheck(this, Request)\n\n return !!this[kState].body && util.isDisturbed(this[kState].body.stream)\n }\n\n get duplex () {\n webidl.brandCheck(this, Request)\n\n return 'half'\n }\n\n // Returns a clone of request.\n clone () {\n webidl.brandCheck(this, Request)\n\n // 1. If this is unusable, then throw a TypeError.\n if (this.bodyUsed || this.body?.locked) {\n throw new TypeError('unusable')\n }\n\n // 2. Let clonedRequest be the result of cloning this’s request.\n const clonedRequest = cloneRequest(this[kState])\n\n // 3. Let clonedRequestObject be the result of creating a Request object,\n // given clonedRequest, this’s headers’s guard, and this’s relevant Realm.\n const clonedRequestObject = new Request(kConstruct)\n clonedRequestObject[kState] = clonedRequest\n clonedRequestObject[kRealm] = this[kRealm]\n clonedRequestObject[kHeaders] = new Headers(kConstruct)\n clonedRequestObject[kHeaders][kHeadersList] = clonedRequest.headersList\n clonedRequestObject[kHeaders][kGuard] = this[kHeaders][kGuard]\n clonedRequestObject[kHeaders][kRealm] = this[kHeaders][kRealm]\n\n // 4. Make clonedRequestObject’s signal follow this’s signal.\n const ac = new AbortController()\n if (this.signal.aborted) {\n ac.abort(this.signal.reason)\n } else {\n util.addAbortListener(\n this.signal,\n () => {\n ac.abort(this.signal.reason)\n }\n )\n }\n clonedRequestObject[kSignal] = ac.signal\n\n // 4. Return clonedRequestObject.\n return clonedRequestObject\n }\n}\n\nmixinBody(Request)\n\nfunction makeRequest (init) {\n // https://fetch.spec.whatwg.org/#requests\n const request = {\n method: 'GET',\n localURLsOnly: false,\n unsafeRequest: false,\n body: null,\n client: null,\n reservedClient: null,\n replacesClientId: '',\n window: 'client',\n keepalive: false,\n serviceWorkers: 'all',\n initiator: '',\n destination: '',\n priority: null,\n origin: 'client',\n policyContainer: 'client',\n referrer: 'client',\n referrerPolicy: '',\n mode: 'no-cors',\n useCORSPreflightFlag: false,\n credentials: 'same-origin',\n useCredentials: false,\n cache: 'default',\n redirect: 'follow',\n integrity: '',\n cryptoGraphicsNonceMetadata: '',\n parserMetadata: '',\n reloadNavigation: false,\n historyNavigation: false,\n userActivation: false,\n taintedOrigin: false,\n redirectCount: 0,\n responseTainting: 'basic',\n preventNoCacheCacheControlHeaderModification: false,\n done: false,\n timingAllowFailed: false,\n ...init,\n headersList: init.headersList\n ? new HeadersList(init.headersList)\n : new HeadersList()\n }\n request.url = request.urlList[0]\n return request\n}\n\n// https://fetch.spec.whatwg.org/#concept-request-clone\nfunction cloneRequest (request) {\n // To clone a request request, run these steps:\n\n // 1. Let newRequest be a copy of request, except for its body.\n const newRequest = makeRequest({ ...request, body: null })\n\n // 2. If request’s body is non-null, set newRequest’s body to the\n // result of cloning request’s body.\n if (request.body != null) {\n newRequest.body = cloneBody(request.body)\n }\n\n // 3. Return newRequest.\n return newRequest\n}\n\nObject.defineProperties(Request.prototype, {\n method: kEnumerableProperty,\n url: kEnumerableProperty,\n headers: kEnumerableProperty,\n redirect: kEnumerableProperty,\n clone: kEnumerableProperty,\n signal: kEnumerableProperty,\n duplex: kEnumerableProperty,\n destination: kEnumerableProperty,\n body: kEnumerableProperty,\n bodyUsed: kEnumerableProperty,\n isHistoryNavigation: kEnumerableProperty,\n isReloadNavigation: kEnumerableProperty,\n keepalive: kEnumerableProperty,\n integrity: kEnumerableProperty,\n cache: kEnumerableProperty,\n credentials: kEnumerableProperty,\n attribute: kEnumerableProperty,\n referrerPolicy: kEnumerableProperty,\n referrer: kEnumerableProperty,\n mode: kEnumerableProperty,\n [Symbol.toStringTag]: {\n value: 'Request',\n configurable: true\n }\n})\n\nwebidl.converters.Request = webidl.interfaceConverter(\n Request\n)\n\n// https://fetch.spec.whatwg.org/#requestinfo\nwebidl.converters.RequestInfo = function (V) {\n if (typeof V === 'string') {\n return webidl.converters.USVString(V)\n }\n\n if (V instanceof Request) {\n return webidl.converters.Request(V)\n }\n\n return webidl.converters.USVString(V)\n}\n\nwebidl.converters.AbortSignal = webidl.interfaceConverter(\n AbortSignal\n)\n\n// https://fetch.spec.whatwg.org/#requestinit\nwebidl.converters.RequestInit = webidl.dictionaryConverter([\n {\n key: 'method',\n converter: webidl.converters.ByteString\n },\n {\n key: 'headers',\n converter: webidl.converters.HeadersInit\n },\n {\n key: 'body',\n converter: webidl.nullableConverter(\n webidl.converters.BodyInit\n )\n },\n {\n key: 'referrer',\n converter: webidl.converters.USVString\n },\n {\n key: 'referrerPolicy',\n converter: webidl.converters.DOMString,\n // https://w3c.github.io/webappsec-referrer-policy/#referrer-policy\n allowedValues: referrerPolicy\n },\n {\n key: 'mode',\n converter: webidl.converters.DOMString,\n // https://fetch.spec.whatwg.org/#concept-request-mode\n allowedValues: requestMode\n },\n {\n key: 'credentials',\n converter: webidl.converters.DOMString,\n // https://fetch.spec.whatwg.org/#requestcredentials\n allowedValues: requestCredentials\n },\n {\n key: 'cache',\n converter: webidl.converters.DOMString,\n // https://fetch.spec.whatwg.org/#requestcache\n allowedValues: requestCache\n },\n {\n key: 'redirect',\n converter: webidl.converters.DOMString,\n // https://fetch.spec.whatwg.org/#requestredirect\n allowedValues: requestRedirect\n },\n {\n key: 'integrity',\n converter: webidl.converters.DOMString\n },\n {\n key: 'keepalive',\n converter: webidl.converters.boolean\n },\n {\n key: 'signal',\n converter: webidl.nullableConverter(\n (signal) => webidl.converters.AbortSignal(\n signal,\n { strict: false }\n )\n )\n },\n {\n key: 'window',\n converter: webidl.converters.any\n },\n {\n key: 'duplex',\n converter: webidl.converters.DOMString,\n allowedValues: requestDuplex\n }\n])\n\nmodule.exports = { Request, makeRequest }\n","'use strict'\n\nconst { Headers, HeadersList, fill } = require('./headers')\nconst { extractBody, cloneBody, mixinBody } = require('./body')\nconst util = require('../core/util')\nconst { kEnumerableProperty } = util\nconst {\n isValidReasonPhrase,\n isCancelled,\n isAborted,\n isBlobLike,\n serializeJavascriptValueToJSONString,\n isErrorLike,\n isomorphicEncode\n} = require('./util')\nconst {\n redirectStatusSet,\n nullBodyStatus,\n DOMException\n} = require('./constants')\nconst { kState, kHeaders, kGuard, kRealm } = require('./symbols')\nconst { webidl } = require('./webidl')\nconst { FormData } = require('./formdata')\nconst { getGlobalOrigin } = require('./global')\nconst { URLSerializer } = require('./dataURL')\nconst { kHeadersList, kConstruct } = require('../core/symbols')\nconst assert = require('assert')\nconst { types } = require('util')\n\nconst ReadableStream = globalThis.ReadableStream || require('stream/web').ReadableStream\nconst textEncoder = new TextEncoder('utf-8')\n\n// https://fetch.spec.whatwg.org/#response-class\nclass Response {\n // Creates network error Response.\n static error () {\n // TODO\n const relevantRealm = { settingsObject: {} }\n\n // The static error() method steps are to return the result of creating a\n // Response object, given a new network error, \"immutable\", and this’s\n // relevant Realm.\n const responseObject = new Response()\n responseObject[kState] = makeNetworkError()\n responseObject[kRealm] = relevantRealm\n responseObject[kHeaders][kHeadersList] = responseObject[kState].headersList\n responseObject[kHeaders][kGuard] = 'immutable'\n responseObject[kHeaders][kRealm] = relevantRealm\n return responseObject\n }\n\n // https://fetch.spec.whatwg.org/#dom-response-json\n static json (data, init = {}) {\n webidl.argumentLengthCheck(arguments, 1, { header: 'Response.json' })\n\n if (init !== null) {\n init = webidl.converters.ResponseInit(init)\n }\n\n // 1. Let bytes the result of running serialize a JavaScript value to JSON bytes on data.\n const bytes = textEncoder.encode(\n serializeJavascriptValueToJSONString(data)\n )\n\n // 2. Let body be the result of extracting bytes.\n const body = extractBody(bytes)\n\n // 3. Let responseObject be the result of creating a Response object, given a new response,\n // \"response\", and this’s relevant Realm.\n const relevantRealm = { settingsObject: {} }\n const responseObject = new Response()\n responseObject[kRealm] = relevantRealm\n responseObject[kHeaders][kGuard] = 'response'\n responseObject[kHeaders][kRealm] = relevantRealm\n\n // 4. Perform initialize a response given responseObject, init, and (body, \"application/json\").\n initializeResponse(responseObject, init, { body: body[0], type: 'application/json' })\n\n // 5. Return responseObject.\n return responseObject\n }\n\n // Creates a redirect Response that redirects to url with status status.\n static redirect (url, status = 302) {\n const relevantRealm = { settingsObject: {} }\n\n webidl.argumentLengthCheck(arguments, 1, { header: 'Response.redirect' })\n\n url = webidl.converters.USVString(url)\n status = webidl.converters['unsigned short'](status)\n\n // 1. Let parsedURL be the result of parsing url with current settings\n // object’s API base URL.\n // 2. If parsedURL is failure, then throw a TypeError.\n // TODO: base-URL?\n let parsedURL\n try {\n parsedURL = new URL(url, getGlobalOrigin())\n } catch (err) {\n throw Object.assign(new TypeError('Failed to parse URL from ' + url), {\n cause: err\n })\n }\n\n // 3. If status is not a redirect status, then throw a RangeError.\n if (!redirectStatusSet.has(status)) {\n throw new RangeError('Invalid status code ' + status)\n }\n\n // 4. Let responseObject be the result of creating a Response object,\n // given a new response, \"immutable\", and this’s relevant Realm.\n const responseObject = new Response()\n responseObject[kRealm] = relevantRealm\n responseObject[kHeaders][kGuard] = 'immutable'\n responseObject[kHeaders][kRealm] = relevantRealm\n\n // 5. Set responseObject’s response’s status to status.\n responseObject[kState].status = status\n\n // 6. Let value be parsedURL, serialized and isomorphic encoded.\n const value = isomorphicEncode(URLSerializer(parsedURL))\n\n // 7. Append `Location`/value to responseObject’s response’s header list.\n responseObject[kState].headersList.append('location', value)\n\n // 8. Return responseObject.\n return responseObject\n }\n\n // https://fetch.spec.whatwg.org/#dom-response\n constructor (body = null, init = {}) {\n if (body !== null) {\n body = webidl.converters.BodyInit(body)\n }\n\n init = webidl.converters.ResponseInit(init)\n\n // TODO\n this[kRealm] = { settingsObject: {} }\n\n // 1. Set this’s response to a new response.\n this[kState] = makeResponse({})\n\n // 2. Set this’s headers to a new Headers object with this’s relevant\n // Realm, whose header list is this’s response’s header list and guard\n // is \"response\".\n this[kHeaders] = new Headers(kConstruct)\n this[kHeaders][kGuard] = 'response'\n this[kHeaders][kHeadersList] = this[kState].headersList\n this[kHeaders][kRealm] = this[kRealm]\n\n // 3. Let bodyWithType be null.\n let bodyWithType = null\n\n // 4. If body is non-null, then set bodyWithType to the result of extracting body.\n if (body != null) {\n const [extractedBody, type] = extractBody(body)\n bodyWithType = { body: extractedBody, type }\n }\n\n // 5. Perform initialize a response given this, init, and bodyWithType.\n initializeResponse(this, init, bodyWithType)\n }\n\n // Returns response’s type, e.g., \"cors\".\n get type () {\n webidl.brandCheck(this, Response)\n\n // The type getter steps are to return this’s response’s type.\n return this[kState].type\n }\n\n // Returns response’s URL, if it has one; otherwise the empty string.\n get url () {\n webidl.brandCheck(this, Response)\n\n const urlList = this[kState].urlList\n\n // The url getter steps are to return the empty string if this’s\n // response’s URL is null; otherwise this’s response’s URL,\n // serialized with exclude fragment set to true.\n const url = urlList[urlList.length - 1] ?? null\n\n if (url === null) {\n return ''\n }\n\n return URLSerializer(url, true)\n }\n\n // Returns whether response was obtained through a redirect.\n get redirected () {\n webidl.brandCheck(this, Response)\n\n // The redirected getter steps are to return true if this’s response’s URL\n // list has more than one item; otherwise false.\n return this[kState].urlList.length > 1\n }\n\n // Returns response’s status.\n get status () {\n webidl.brandCheck(this, Response)\n\n // The status getter steps are to return this’s response’s status.\n return this[kState].status\n }\n\n // Returns whether response’s status is an ok status.\n get ok () {\n webidl.brandCheck(this, Response)\n\n // The ok getter steps are to return true if this’s response’s status is an\n // ok status; otherwise false.\n return this[kState].status >= 200 && this[kState].status <= 299\n }\n\n // Returns response’s status message.\n get statusText () {\n webidl.brandCheck(this, Response)\n\n // The statusText getter steps are to return this’s response’s status\n // message.\n return this[kState].statusText\n }\n\n // Returns response’s headers as Headers.\n get headers () {\n webidl.brandCheck(this, Response)\n\n // The headers getter steps are to return this’s headers.\n return this[kHeaders]\n }\n\n get body () {\n webidl.brandCheck(this, Response)\n\n return this[kState].body ? this[kState].body.stream : null\n }\n\n get bodyUsed () {\n webidl.brandCheck(this, Response)\n\n return !!this[kState].body && util.isDisturbed(this[kState].body.stream)\n }\n\n // Returns a clone of response.\n clone () {\n webidl.brandCheck(this, Response)\n\n // 1. If this is unusable, then throw a TypeError.\n if (this.bodyUsed || (this.body && this.body.locked)) {\n throw webidl.errors.exception({\n header: 'Response.clone',\n message: 'Body has already been consumed.'\n })\n }\n\n // 2. Let clonedResponse be the result of cloning this’s response.\n const clonedResponse = cloneResponse(this[kState])\n\n // 3. Return the result of creating a Response object, given\n // clonedResponse, this’s headers’s guard, and this’s relevant Realm.\n const clonedResponseObject = new Response()\n clonedResponseObject[kState] = clonedResponse\n clonedResponseObject[kRealm] = this[kRealm]\n clonedResponseObject[kHeaders][kHeadersList] = clonedResponse.headersList\n clonedResponseObject[kHeaders][kGuard] = this[kHeaders][kGuard]\n clonedResponseObject[kHeaders][kRealm] = this[kHeaders][kRealm]\n\n return clonedResponseObject\n }\n}\n\nmixinBody(Response)\n\nObject.defineProperties(Response.prototype, {\n type: kEnumerableProperty,\n url: kEnumerableProperty,\n status: kEnumerableProperty,\n ok: kEnumerableProperty,\n redirected: kEnumerableProperty,\n statusText: kEnumerableProperty,\n headers: kEnumerableProperty,\n clone: kEnumerableProperty,\n body: kEnumerableProperty,\n bodyUsed: kEnumerableProperty,\n [Symbol.toStringTag]: {\n value: 'Response',\n configurable: true\n }\n})\n\nObject.defineProperties(Response, {\n json: kEnumerableProperty,\n redirect: kEnumerableProperty,\n error: kEnumerableProperty\n})\n\n// https://fetch.spec.whatwg.org/#concept-response-clone\nfunction cloneResponse (response) {\n // To clone a response response, run these steps:\n\n // 1. If response is a filtered response, then return a new identical\n // filtered response whose internal response is a clone of response’s\n // internal response.\n if (response.internalResponse) {\n return filterResponse(\n cloneResponse(response.internalResponse),\n response.type\n )\n }\n\n // 2. Let newResponse be a copy of response, except for its body.\n const newResponse = makeResponse({ ...response, body: null })\n\n // 3. If response’s body is non-null, then set newResponse’s body to the\n // result of cloning response’s body.\n if (response.body != null) {\n newResponse.body = cloneBody(response.body)\n }\n\n // 4. Return newResponse.\n return newResponse\n}\n\nfunction makeResponse (init) {\n return {\n aborted: false,\n rangeRequested: false,\n timingAllowPassed: false,\n requestIncludesCredentials: false,\n type: 'default',\n status: 200,\n timingInfo: null,\n cacheState: '',\n statusText: '',\n ...init,\n headersList: init.headersList\n ? new HeadersList(init.headersList)\n : new HeadersList(),\n urlList: init.urlList ? [...init.urlList] : []\n }\n}\n\nfunction makeNetworkError (reason) {\n const isError = isErrorLike(reason)\n return makeResponse({\n type: 'error',\n status: 0,\n error: isError\n ? reason\n : new Error(reason ? String(reason) : reason),\n aborted: reason && reason.name === 'AbortError'\n })\n}\n\nfunction makeFilteredResponse (response, state) {\n state = {\n internalResponse: response,\n ...state\n }\n\n return new Proxy(response, {\n get (target, p) {\n return p in state ? state[p] : target[p]\n },\n set (target, p, value) {\n assert(!(p in state))\n target[p] = value\n return true\n }\n })\n}\n\n// https://fetch.spec.whatwg.org/#concept-filtered-response\nfunction filterResponse (response, type) {\n // Set response to the following filtered response with response as its\n // internal response, depending on request’s response tainting:\n if (type === 'basic') {\n // A basic filtered response is a filtered response whose type is \"basic\"\n // and header list excludes any headers in internal response’s header list\n // whose name is a forbidden response-header name.\n\n // Note: undici does not implement forbidden response-header names\n return makeFilteredResponse(response, {\n type: 'basic',\n headersList: response.headersList\n })\n } else if (type === 'cors') {\n // A CORS filtered response is a filtered response whose type is \"cors\"\n // and header list excludes any headers in internal response’s header\n // list whose name is not a CORS-safelisted response-header name, given\n // internal response’s CORS-exposed header-name list.\n\n // Note: undici does not implement CORS-safelisted response-header names\n return makeFilteredResponse(response, {\n type: 'cors',\n headersList: response.headersList\n })\n } else if (type === 'opaque') {\n // An opaque filtered response is a filtered response whose type is\n // \"opaque\", URL list is the empty list, status is 0, status message\n // is the empty byte sequence, header list is empty, and body is null.\n\n return makeFilteredResponse(response, {\n type: 'opaque',\n urlList: Object.freeze([]),\n status: 0,\n statusText: '',\n body: null\n })\n } else if (type === 'opaqueredirect') {\n // An opaque-redirect filtered response is a filtered response whose type\n // is \"opaqueredirect\", status is 0, status message is the empty byte\n // sequence, header list is empty, and body is null.\n\n return makeFilteredResponse(response, {\n type: 'opaqueredirect',\n status: 0,\n statusText: '',\n headersList: [],\n body: null\n })\n } else {\n assert(false)\n }\n}\n\n// https://fetch.spec.whatwg.org/#appropriate-network-error\nfunction makeAppropriateNetworkError (fetchParams, err = null) {\n // 1. Assert: fetchParams is canceled.\n assert(isCancelled(fetchParams))\n\n // 2. Return an aborted network error if fetchParams is aborted;\n // otherwise return a network error.\n return isAborted(fetchParams)\n ? makeNetworkError(Object.assign(new DOMException('The operation was aborted.', 'AbortError'), { cause: err }))\n : makeNetworkError(Object.assign(new DOMException('Request was cancelled.'), { cause: err }))\n}\n\n// https://whatpr.org/fetch/1392.html#initialize-a-response\nfunction initializeResponse (response, init, body) {\n // 1. If init[\"status\"] is not in the range 200 to 599, inclusive, then\n // throw a RangeError.\n if (init.status !== null && (init.status < 200 || init.status > 599)) {\n throw new RangeError('init[\"status\"] must be in the range of 200 to 599, inclusive.')\n }\n\n // 2. If init[\"statusText\"] does not match the reason-phrase token production,\n // then throw a TypeError.\n if ('statusText' in init && init.statusText != null) {\n // See, https://datatracker.ietf.org/doc/html/rfc7230#section-3.1.2:\n // reason-phrase = *( HTAB / SP / VCHAR / obs-text )\n if (!isValidReasonPhrase(String(init.statusText))) {\n throw new TypeError('Invalid statusText')\n }\n }\n\n // 3. Set response’s response’s status to init[\"status\"].\n if ('status' in init && init.status != null) {\n response[kState].status = init.status\n }\n\n // 4. Set response’s response’s status message to init[\"statusText\"].\n if ('statusText' in init && init.statusText != null) {\n response[kState].statusText = init.statusText\n }\n\n // 5. If init[\"headers\"] exists, then fill response’s headers with init[\"headers\"].\n if ('headers' in init && init.headers != null) {\n fill(response[kHeaders], init.headers)\n }\n\n // 6. If body was given, then:\n if (body) {\n // 1. If response's status is a null body status, then throw a TypeError.\n if (nullBodyStatus.includes(response.status)) {\n throw webidl.errors.exception({\n header: 'Response constructor',\n message: 'Invalid response status code ' + response.status\n })\n }\n\n // 2. Set response's body to body's body.\n response[kState].body = body.body\n\n // 3. If body's type is non-null and response's header list does not contain\n // `Content-Type`, then append (`Content-Type`, body's type) to response's header list.\n if (body.type != null && !response[kState].headersList.contains('Content-Type')) {\n response[kState].headersList.append('content-type', body.type)\n }\n }\n}\n\nwebidl.converters.ReadableStream = webidl.interfaceConverter(\n ReadableStream\n)\n\nwebidl.converters.FormData = webidl.interfaceConverter(\n FormData\n)\n\nwebidl.converters.URLSearchParams = webidl.interfaceConverter(\n URLSearchParams\n)\n\n// https://fetch.spec.whatwg.org/#typedefdef-xmlhttprequestbodyinit\nwebidl.converters.XMLHttpRequestBodyInit = function (V) {\n if (typeof V === 'string') {\n return webidl.converters.USVString(V)\n }\n\n if (isBlobLike(V)) {\n return webidl.converters.Blob(V, { strict: false })\n }\n\n if (types.isArrayBuffer(V) || types.isTypedArray(V) || types.isDataView(V)) {\n return webidl.converters.BufferSource(V)\n }\n\n if (util.isFormDataLike(V)) {\n return webidl.converters.FormData(V, { strict: false })\n }\n\n if (V instanceof URLSearchParams) {\n return webidl.converters.URLSearchParams(V)\n }\n\n return webidl.converters.DOMString(V)\n}\n\n// https://fetch.spec.whatwg.org/#bodyinit\nwebidl.converters.BodyInit = function (V) {\n if (V instanceof ReadableStream) {\n return webidl.converters.ReadableStream(V)\n }\n\n // Note: the spec doesn't include async iterables,\n // this is an undici extension.\n if (V?.[Symbol.asyncIterator]) {\n return V\n }\n\n return webidl.converters.XMLHttpRequestBodyInit(V)\n}\n\nwebidl.converters.ResponseInit = webidl.dictionaryConverter([\n {\n key: 'status',\n converter: webidl.converters['unsigned short'],\n defaultValue: 200\n },\n {\n key: 'statusText',\n converter: webidl.converters.ByteString,\n defaultValue: ''\n },\n {\n key: 'headers',\n converter: webidl.converters.HeadersInit\n }\n])\n\nmodule.exports = {\n makeNetworkError,\n makeResponse,\n makeAppropriateNetworkError,\n filterResponse,\n Response,\n cloneResponse\n}\n","'use strict'\n\nmodule.exports = {\n kUrl: Symbol('url'),\n kHeaders: Symbol('headers'),\n kSignal: Symbol('signal'),\n kState: Symbol('state'),\n kGuard: Symbol('guard'),\n kRealm: Symbol('realm')\n}\n","'use strict'\n\nconst { redirectStatusSet, referrerPolicySet: referrerPolicyTokens, badPortsSet } = require('./constants')\nconst { getGlobalOrigin } = require('./global')\nconst { performance } = require('perf_hooks')\nconst { isBlobLike, toUSVString, ReadableStreamFrom } = require('../core/util')\nconst assert = require('assert')\nconst { isUint8Array } = require('util/types')\n\nlet supportedHashes = []\n\n// https://nodejs.org/api/crypto.html#determining-if-crypto-support-is-unavailable\n/** @type {import('crypto')|undefined} */\nlet crypto\n\ntry {\n crypto = require('crypto')\n const possibleRelevantHashes = ['sha256', 'sha384', 'sha512']\n supportedHashes = crypto.getHashes().filter((hash) => possibleRelevantHashes.includes(hash))\n/* c8 ignore next 3 */\n} catch {\n}\n\nfunction responseURL (response) {\n // https://fetch.spec.whatwg.org/#responses\n // A response has an associated URL. It is a pointer to the last URL\n // in response’s URL list and null if response’s URL list is empty.\n const urlList = response.urlList\n const length = urlList.length\n return length === 0 ? null : urlList[length - 1].toString()\n}\n\n// https://fetch.spec.whatwg.org/#concept-response-location-url\nfunction responseLocationURL (response, requestFragment) {\n // 1. If response’s status is not a redirect status, then return null.\n if (!redirectStatusSet.has(response.status)) {\n return null\n }\n\n // 2. Let location be the result of extracting header list values given\n // `Location` and response’s header list.\n let location = response.headersList.get('location')\n\n // 3. If location is a header value, then set location to the result of\n // parsing location with response’s URL.\n if (location !== null && isValidHeaderValue(location)) {\n location = new URL(location, responseURL(response))\n }\n\n // 4. If location is a URL whose fragment is null, then set location’s\n // fragment to requestFragment.\n if (location && !location.hash) {\n location.hash = requestFragment\n }\n\n // 5. Return location.\n return location\n}\n\n/** @returns {URL} */\nfunction requestCurrentURL (request) {\n return request.urlList[request.urlList.length - 1]\n}\n\nfunction requestBadPort (request) {\n // 1. Let url be request’s current URL.\n const url = requestCurrentURL(request)\n\n // 2. If url’s scheme is an HTTP(S) scheme and url’s port is a bad port,\n // then return blocked.\n if (urlIsHttpHttpsScheme(url) && badPortsSet.has(url.port)) {\n return 'blocked'\n }\n\n // 3. Return allowed.\n return 'allowed'\n}\n\nfunction isErrorLike (object) {\n return object instanceof Error || (\n object?.constructor?.name === 'Error' ||\n object?.constructor?.name === 'DOMException'\n )\n}\n\n// Check whether |statusText| is a ByteString and\n// matches the Reason-Phrase token production.\n// RFC 2616: https://tools.ietf.org/html/rfc2616\n// RFC 7230: https://tools.ietf.org/html/rfc7230\n// \"reason-phrase = *( HTAB / SP / VCHAR / obs-text )\"\n// https://github.com/chromium/chromium/blob/94.0.4604.1/third_party/blink/renderer/core/fetch/response.cc#L116\nfunction isValidReasonPhrase (statusText) {\n for (let i = 0; i < statusText.length; ++i) {\n const c = statusText.charCodeAt(i)\n if (\n !(\n (\n c === 0x09 || // HTAB\n (c >= 0x20 && c <= 0x7e) || // SP / VCHAR\n (c >= 0x80 && c <= 0xff)\n ) // obs-text\n )\n ) {\n return false\n }\n }\n return true\n}\n\n/**\n * @see https://tools.ietf.org/html/rfc7230#section-3.2.6\n * @param {number} c\n */\nfunction isTokenCharCode (c) {\n switch (c) {\n case 0x22:\n case 0x28:\n case 0x29:\n case 0x2c:\n case 0x2f:\n case 0x3a:\n case 0x3b:\n case 0x3c:\n case 0x3d:\n case 0x3e:\n case 0x3f:\n case 0x40:\n case 0x5b:\n case 0x5c:\n case 0x5d:\n case 0x7b:\n case 0x7d:\n // DQUOTE and \"(),/:;<=>?@[\\]{}\"\n return false\n default:\n // VCHAR %x21-7E\n return c >= 0x21 && c <= 0x7e\n }\n}\n\n/**\n * @param {string} characters\n */\nfunction isValidHTTPToken (characters) {\n if (characters.length === 0) {\n return false\n }\n for (let i = 0; i < characters.length; ++i) {\n if (!isTokenCharCode(characters.charCodeAt(i))) {\n return false\n }\n }\n return true\n}\n\n/**\n * @see https://fetch.spec.whatwg.org/#header-name\n * @param {string} potentialValue\n */\nfunction isValidHeaderName (potentialValue) {\n return isValidHTTPToken(potentialValue)\n}\n\n/**\n * @see https://fetch.spec.whatwg.org/#header-value\n * @param {string} potentialValue\n */\nfunction isValidHeaderValue (potentialValue) {\n // - Has no leading or trailing HTTP tab or space bytes.\n // - Contains no 0x00 (NUL) or HTTP newline bytes.\n if (\n potentialValue.startsWith('\\t') ||\n potentialValue.startsWith(' ') ||\n potentialValue.endsWith('\\t') ||\n potentialValue.endsWith(' ')\n ) {\n return false\n }\n\n if (\n potentialValue.includes('\\0') ||\n potentialValue.includes('\\r') ||\n potentialValue.includes('\\n')\n ) {\n return false\n }\n\n return true\n}\n\n// https://w3c.github.io/webappsec-referrer-policy/#set-requests-referrer-policy-on-redirect\nfunction setRequestReferrerPolicyOnRedirect (request, actualResponse) {\n // Given a request request and a response actualResponse, this algorithm\n // updates request’s referrer policy according to the Referrer-Policy\n // header (if any) in actualResponse.\n\n // 1. Let policy be the result of executing § 8.1 Parse a referrer policy\n // from a Referrer-Policy header on actualResponse.\n\n // 8.1 Parse a referrer policy from a Referrer-Policy header\n // 1. Let policy-tokens be the result of extracting header list values given `Referrer-Policy` and response’s header list.\n const { headersList } = actualResponse\n // 2. Let policy be the empty string.\n // 3. For each token in policy-tokens, if token is a referrer policy and token is not the empty string, then set policy to token.\n // 4. Return policy.\n const policyHeader = (headersList.get('referrer-policy') ?? '').split(',')\n\n // Note: As the referrer-policy can contain multiple policies\n // separated by comma, we need to loop through all of them\n // and pick the first valid one.\n // Ref: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Referrer-Policy#specify_a_fallback_policy\n let policy = ''\n if (policyHeader.length > 0) {\n // The right-most policy takes precedence.\n // The left-most policy is the fallback.\n for (let i = policyHeader.length; i !== 0; i--) {\n const token = policyHeader[i - 1].trim()\n if (referrerPolicyTokens.has(token)) {\n policy = token\n break\n }\n }\n }\n\n // 2. If policy is not the empty string, then set request’s referrer policy to policy.\n if (policy !== '') {\n request.referrerPolicy = policy\n }\n}\n\n// https://fetch.spec.whatwg.org/#cross-origin-resource-policy-check\nfunction crossOriginResourcePolicyCheck () {\n // TODO\n return 'allowed'\n}\n\n// https://fetch.spec.whatwg.org/#concept-cors-check\nfunction corsCheck () {\n // TODO\n return 'success'\n}\n\n// https://fetch.spec.whatwg.org/#concept-tao-check\nfunction TAOCheck () {\n // TODO\n return 'success'\n}\n\nfunction appendFetchMetadata (httpRequest) {\n // https://w3c.github.io/webappsec-fetch-metadata/#sec-fetch-dest-header\n // TODO\n\n // https://w3c.github.io/webappsec-fetch-metadata/#sec-fetch-mode-header\n\n // 1. Assert: r’s url is a potentially trustworthy URL.\n // TODO\n\n // 2. Let header be a Structured Header whose value is a token.\n let header = null\n\n // 3. Set header’s value to r’s mode.\n header = httpRequest.mode\n\n // 4. Set a structured field value `Sec-Fetch-Mode`/header in r’s header list.\n httpRequest.headersList.set('sec-fetch-mode', header)\n\n // https://w3c.github.io/webappsec-fetch-metadata/#sec-fetch-site-header\n // TODO\n\n // https://w3c.github.io/webappsec-fetch-metadata/#sec-fetch-user-header\n // TODO\n}\n\n// https://fetch.spec.whatwg.org/#append-a-request-origin-header\nfunction appendRequestOriginHeader (request) {\n // 1. Let serializedOrigin be the result of byte-serializing a request origin with request.\n let serializedOrigin = request.origin\n\n // 2. If request’s response tainting is \"cors\" or request’s mode is \"websocket\", then append (`Origin`, serializedOrigin) to request’s header list.\n if (request.responseTainting === 'cors' || request.mode === 'websocket') {\n if (serializedOrigin) {\n request.headersList.append('origin', serializedOrigin)\n }\n\n // 3. Otherwise, if request’s method is neither `GET` nor `HEAD`, then:\n } else if (request.method !== 'GET' && request.method !== 'HEAD') {\n // 1. Switch on request’s referrer policy:\n switch (request.referrerPolicy) {\n case 'no-referrer':\n // Set serializedOrigin to `null`.\n serializedOrigin = null\n break\n case 'no-referrer-when-downgrade':\n case 'strict-origin':\n case 'strict-origin-when-cross-origin':\n // If request’s origin is a tuple origin, its scheme is \"https\", and request’s current URL’s scheme is not \"https\", then set serializedOrigin to `null`.\n if (request.origin && urlHasHttpsScheme(request.origin) && !urlHasHttpsScheme(requestCurrentURL(request))) {\n serializedOrigin = null\n }\n break\n case 'same-origin':\n // If request’s origin is not same origin with request’s current URL’s origin, then set serializedOrigin to `null`.\n if (!sameOrigin(request, requestCurrentURL(request))) {\n serializedOrigin = null\n }\n break\n default:\n // Do nothing.\n }\n\n if (serializedOrigin) {\n // 2. Append (`Origin`, serializedOrigin) to request’s header list.\n request.headersList.append('origin', serializedOrigin)\n }\n }\n}\n\nfunction coarsenedSharedCurrentTime (crossOriginIsolatedCapability) {\n // TODO\n return performance.now()\n}\n\n// https://fetch.spec.whatwg.org/#create-an-opaque-timing-info\nfunction createOpaqueTimingInfo (timingInfo) {\n return {\n startTime: timingInfo.startTime ?? 0,\n redirectStartTime: 0,\n redirectEndTime: 0,\n postRedirectStartTime: timingInfo.startTime ?? 0,\n finalServiceWorkerStartTime: 0,\n finalNetworkResponseStartTime: 0,\n finalNetworkRequestStartTime: 0,\n endTime: 0,\n encodedBodySize: 0,\n decodedBodySize: 0,\n finalConnectionTimingInfo: null\n }\n}\n\n// https://html.spec.whatwg.org/multipage/origin.html#policy-container\nfunction makePolicyContainer () {\n // Note: the fetch spec doesn't make use of embedder policy or CSP list\n return {\n referrerPolicy: 'strict-origin-when-cross-origin'\n }\n}\n\n// https://html.spec.whatwg.org/multipage/origin.html#clone-a-policy-container\nfunction clonePolicyContainer (policyContainer) {\n return {\n referrerPolicy: policyContainer.referrerPolicy\n }\n}\n\n// https://w3c.github.io/webappsec-referrer-policy/#determine-requests-referrer\nfunction determineRequestsReferrer (request) {\n // 1. Let policy be request's referrer policy.\n const policy = request.referrerPolicy\n\n // Note: policy cannot (shouldn't) be null or an empty string.\n assert(policy)\n\n // 2. Let environment be request’s client.\n\n let referrerSource = null\n\n // 3. Switch on request’s referrer:\n if (request.referrer === 'client') {\n // Note: node isn't a browser and doesn't implement document/iframes,\n // so we bypass this step and replace it with our own.\n\n const globalOrigin = getGlobalOrigin()\n\n if (!globalOrigin || globalOrigin.origin === 'null') {\n return 'no-referrer'\n }\n\n // note: we need to clone it as it's mutated\n referrerSource = new URL(globalOrigin)\n } else if (request.referrer instanceof URL) {\n // Let referrerSource be request’s referrer.\n referrerSource = request.referrer\n }\n\n // 4. Let request’s referrerURL be the result of stripping referrerSource for\n // use as a referrer.\n let referrerURL = stripURLForReferrer(referrerSource)\n\n // 5. Let referrerOrigin be the result of stripping referrerSource for use as\n // a referrer, with the origin-only flag set to true.\n const referrerOrigin = stripURLForReferrer(referrerSource, true)\n\n // 6. If the result of serializing referrerURL is a string whose length is\n // greater than 4096, set referrerURL to referrerOrigin.\n if (referrerURL.toString().length > 4096) {\n referrerURL = referrerOrigin\n }\n\n const areSameOrigin = sameOrigin(request, referrerURL)\n const isNonPotentiallyTrustWorthy = isURLPotentiallyTrustworthy(referrerURL) &&\n !isURLPotentiallyTrustworthy(request.url)\n\n // 8. Execute the switch statements corresponding to the value of policy:\n switch (policy) {\n case 'origin': return referrerOrigin != null ? referrerOrigin : stripURLForReferrer(referrerSource, true)\n case 'unsafe-url': return referrerURL\n case 'same-origin':\n return areSameOrigin ? referrerOrigin : 'no-referrer'\n case 'origin-when-cross-origin':\n return areSameOrigin ? referrerURL : referrerOrigin\n case 'strict-origin-when-cross-origin': {\n const currentURL = requestCurrentURL(request)\n\n // 1. If the origin of referrerURL and the origin of request’s current\n // URL are the same, then return referrerURL.\n if (sameOrigin(referrerURL, currentURL)) {\n return referrerURL\n }\n\n // 2. If referrerURL is a potentially trustworthy URL and request’s\n // current URL is not a potentially trustworthy URL, then return no\n // referrer.\n if (isURLPotentiallyTrustworthy(referrerURL) && !isURLPotentiallyTrustworthy(currentURL)) {\n return 'no-referrer'\n }\n\n // 3. Return referrerOrigin.\n return referrerOrigin\n }\n case 'strict-origin': // eslint-disable-line\n /**\n * 1. If referrerURL is a potentially trustworthy URL and\n * request’s current URL is not a potentially trustworthy URL,\n * then return no referrer.\n * 2. Return referrerOrigin\n */\n case 'no-referrer-when-downgrade': // eslint-disable-line\n /**\n * 1. If referrerURL is a potentially trustworthy URL and\n * request’s current URL is not a potentially trustworthy URL,\n * then return no referrer.\n * 2. Return referrerOrigin\n */\n\n default: // eslint-disable-line\n return isNonPotentiallyTrustWorthy ? 'no-referrer' : referrerOrigin\n }\n}\n\n/**\n * @see https://w3c.github.io/webappsec-referrer-policy/#strip-url\n * @param {URL} url\n * @param {boolean|undefined} originOnly\n */\nfunction stripURLForReferrer (url, originOnly) {\n // 1. Assert: url is a URL.\n assert(url instanceof URL)\n\n // 2. If url’s scheme is a local scheme, then return no referrer.\n if (url.protocol === 'file:' || url.protocol === 'about:' || url.protocol === 'blank:') {\n return 'no-referrer'\n }\n\n // 3. Set url’s username to the empty string.\n url.username = ''\n\n // 4. Set url’s password to the empty string.\n url.password = ''\n\n // 5. Set url’s fragment to null.\n url.hash = ''\n\n // 6. If the origin-only flag is true, then:\n if (originOnly) {\n // 1. Set url’s path to « the empty string ».\n url.pathname = ''\n\n // 2. Set url’s query to null.\n url.search = ''\n }\n\n // 7. Return url.\n return url\n}\n\nfunction isURLPotentiallyTrustworthy (url) {\n if (!(url instanceof URL)) {\n return false\n }\n\n // If child of about, return true\n if (url.href === 'about:blank' || url.href === 'about:srcdoc') {\n return true\n }\n\n // If scheme is data, return true\n if (url.protocol === 'data:') return true\n\n // If file, return true\n if (url.protocol === 'file:') return true\n\n return isOriginPotentiallyTrustworthy(url.origin)\n\n function isOriginPotentiallyTrustworthy (origin) {\n // If origin is explicitly null, return false\n if (origin == null || origin === 'null') return false\n\n const originAsURL = new URL(origin)\n\n // If secure, return true\n if (originAsURL.protocol === 'https:' || originAsURL.protocol === 'wss:') {\n return true\n }\n\n // If localhost or variants, return true\n if (/^127(?:\\.[0-9]+){0,2}\\.[0-9]+$|^\\[(?:0*:)*?:?0*1\\]$/.test(originAsURL.hostname) ||\n (originAsURL.hostname === 'localhost' || originAsURL.hostname.includes('localhost.')) ||\n (originAsURL.hostname.endsWith('.localhost'))) {\n return true\n }\n\n // If any other, return false\n return false\n }\n}\n\n/**\n * @see https://w3c.github.io/webappsec-subresource-integrity/#does-response-match-metadatalist\n * @param {Uint8Array} bytes\n * @param {string} metadataList\n */\nfunction bytesMatch (bytes, metadataList) {\n // If node is not built with OpenSSL support, we cannot check\n // a request's integrity, so allow it by default (the spec will\n // allow requests if an invalid hash is given, as precedence).\n /* istanbul ignore if: only if node is built with --without-ssl */\n if (crypto === undefined) {\n return true\n }\n\n // 1. Let parsedMetadata be the result of parsing metadataList.\n const parsedMetadata = parseMetadata(metadataList)\n\n // 2. If parsedMetadata is no metadata, return true.\n if (parsedMetadata === 'no metadata') {\n return true\n }\n\n // 3. If response is not eligible for integrity validation, return false.\n // TODO\n\n // 4. If parsedMetadata is the empty set, return true.\n if (parsedMetadata.length === 0) {\n return true\n }\n\n // 5. Let metadata be the result of getting the strongest\n // metadata from parsedMetadata.\n const strongest = getStrongestMetadata(parsedMetadata)\n const metadata = filterMetadataListByAlgorithm(parsedMetadata, strongest)\n\n // 6. For each item in metadata:\n for (const item of metadata) {\n // 1. Let algorithm be the alg component of item.\n const algorithm = item.algo\n\n // 2. Let expectedValue be the val component of item.\n const expectedValue = item.hash\n\n // See https://github.com/web-platform-tests/wpt/commit/e4c5cc7a5e48093220528dfdd1c4012dc3837a0e\n // \"be liberal with padding\". This is annoying, and it's not even in the spec.\n\n // 3. Let actualValue be the result of applying algorithm to bytes.\n let actualValue = crypto.createHash(algorithm).update(bytes).digest('base64')\n\n if (actualValue[actualValue.length - 1] === '=') {\n if (actualValue[actualValue.length - 2] === '=') {\n actualValue = actualValue.slice(0, -2)\n } else {\n actualValue = actualValue.slice(0, -1)\n }\n }\n\n // 4. If actualValue is a case-sensitive match for expectedValue,\n // return true.\n if (compareBase64Mixed(actualValue, expectedValue)) {\n return true\n }\n }\n\n // 7. Return false.\n return false\n}\n\n// https://w3c.github.io/webappsec-subresource-integrity/#grammardef-hash-with-options\n// https://www.w3.org/TR/CSP2/#source-list-syntax\n// https://www.rfc-editor.org/rfc/rfc5234#appendix-B.1\nconst parseHashWithOptions = /(?sha256|sha384|sha512)-((?[A-Za-z0-9+/]+|[A-Za-z0-9_-]+)={0,2}(?:\\s|$)( +[!-~]*)?)?/i\n\n/**\n * @see https://w3c.github.io/webappsec-subresource-integrity/#parse-metadata\n * @param {string} metadata\n */\nfunction parseMetadata (metadata) {\n // 1. Let result be the empty set.\n /** @type {{ algo: string, hash: string }[]} */\n const result = []\n\n // 2. Let empty be equal to true.\n let empty = true\n\n // 3. For each token returned by splitting metadata on spaces:\n for (const token of metadata.split(' ')) {\n // 1. Set empty to false.\n empty = false\n\n // 2. Parse token as a hash-with-options.\n const parsedToken = parseHashWithOptions.exec(token)\n\n // 3. If token does not parse, continue to the next token.\n if (\n parsedToken === null ||\n parsedToken.groups === undefined ||\n parsedToken.groups.algo === undefined\n ) {\n // Note: Chromium blocks the request at this point, but Firefox\n // gives a warning that an invalid integrity was given. The\n // correct behavior is to ignore these, and subsequently not\n // check the integrity of the resource.\n continue\n }\n\n // 4. Let algorithm be the hash-algo component of token.\n const algorithm = parsedToken.groups.algo.toLowerCase()\n\n // 5. If algorithm is a hash function recognized by the user\n // agent, add the parsed token to result.\n if (supportedHashes.includes(algorithm)) {\n result.push(parsedToken.groups)\n }\n }\n\n // 4. Return no metadata if empty is true, otherwise return result.\n if (empty === true) {\n return 'no metadata'\n }\n\n return result\n}\n\n/**\n * @param {{ algo: 'sha256' | 'sha384' | 'sha512' }[]} metadataList\n */\nfunction getStrongestMetadata (metadataList) {\n // Let algorithm be the algo component of the first item in metadataList.\n // Can be sha256\n let algorithm = metadataList[0].algo\n // If the algorithm is sha512, then it is the strongest\n // and we can return immediately\n if (algorithm[3] === '5') {\n return algorithm\n }\n\n for (let i = 1; i < metadataList.length; ++i) {\n const metadata = metadataList[i]\n // If the algorithm is sha512, then it is the strongest\n // and we can break the loop immediately\n if (metadata.algo[3] === '5') {\n algorithm = 'sha512'\n break\n // If the algorithm is sha384, then a potential sha256 or sha384 is ignored\n } else if (algorithm[3] === '3') {\n continue\n // algorithm is sha256, check if algorithm is sha384 and if so, set it as\n // the strongest\n } else if (metadata.algo[3] === '3') {\n algorithm = 'sha384'\n }\n }\n return algorithm\n}\n\nfunction filterMetadataListByAlgorithm (metadataList, algorithm) {\n if (metadataList.length === 1) {\n return metadataList\n }\n\n let pos = 0\n for (let i = 0; i < metadataList.length; ++i) {\n if (metadataList[i].algo === algorithm) {\n metadataList[pos++] = metadataList[i]\n }\n }\n\n metadataList.length = pos\n\n return metadataList\n}\n\n/**\n * Compares two base64 strings, allowing for base64url\n * in the second string.\n *\n* @param {string} actualValue always base64\n * @param {string} expectedValue base64 or base64url\n * @returns {boolean}\n */\nfunction compareBase64Mixed (actualValue, expectedValue) {\n if (actualValue.length !== expectedValue.length) {\n return false\n }\n for (let i = 0; i < actualValue.length; ++i) {\n if (actualValue[i] !== expectedValue[i]) {\n if (\n (actualValue[i] === '+' && expectedValue[i] === '-') ||\n (actualValue[i] === '/' && expectedValue[i] === '_')\n ) {\n continue\n }\n return false\n }\n }\n\n return true\n}\n\n// https://w3c.github.io/webappsec-upgrade-insecure-requests/#upgrade-request\nfunction tryUpgradeRequestToAPotentiallyTrustworthyURL (request) {\n // TODO\n}\n\n/**\n * @link {https://html.spec.whatwg.org/multipage/origin.html#same-origin}\n * @param {URL} A\n * @param {URL} B\n */\nfunction sameOrigin (A, B) {\n // 1. If A and B are the same opaque origin, then return true.\n if (A.origin === B.origin && A.origin === 'null') {\n return true\n }\n\n // 2. If A and B are both tuple origins and their schemes,\n // hosts, and port are identical, then return true.\n if (A.protocol === B.protocol && A.hostname === B.hostname && A.port === B.port) {\n return true\n }\n\n // 3. Return false.\n return false\n}\n\nfunction createDeferredPromise () {\n let res\n let rej\n const promise = new Promise((resolve, reject) => {\n res = resolve\n rej = reject\n })\n\n return { promise, resolve: res, reject: rej }\n}\n\nfunction isAborted (fetchParams) {\n return fetchParams.controller.state === 'aborted'\n}\n\nfunction isCancelled (fetchParams) {\n return fetchParams.controller.state === 'aborted' ||\n fetchParams.controller.state === 'terminated'\n}\n\nconst normalizeMethodRecord = {\n delete: 'DELETE',\n DELETE: 'DELETE',\n get: 'GET',\n GET: 'GET',\n head: 'HEAD',\n HEAD: 'HEAD',\n options: 'OPTIONS',\n OPTIONS: 'OPTIONS',\n post: 'POST',\n POST: 'POST',\n put: 'PUT',\n PUT: 'PUT'\n}\n\n// Note: object prototypes should not be able to be referenced. e.g. `Object#hasOwnProperty`.\nObject.setPrototypeOf(normalizeMethodRecord, null)\n\n/**\n * @see https://fetch.spec.whatwg.org/#concept-method-normalize\n * @param {string} method\n */\nfunction normalizeMethod (method) {\n return normalizeMethodRecord[method.toLowerCase()] ?? method\n}\n\n// https://infra.spec.whatwg.org/#serialize-a-javascript-value-to-a-json-string\nfunction serializeJavascriptValueToJSONString (value) {\n // 1. Let result be ? Call(%JSON.stringify%, undefined, « value »).\n const result = JSON.stringify(value)\n\n // 2. If result is undefined, then throw a TypeError.\n if (result === undefined) {\n throw new TypeError('Value is not JSON serializable')\n }\n\n // 3. Assert: result is a string.\n assert(typeof result === 'string')\n\n // 4. Return result.\n return result\n}\n\n// https://tc39.es/ecma262/#sec-%25iteratorprototype%25-object\nconst esIteratorPrototype = Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()))\n\n/**\n * @see https://webidl.spec.whatwg.org/#dfn-iterator-prototype-object\n * @param {() => unknown[]} iterator\n * @param {string} name name of the instance\n * @param {'key'|'value'|'key+value'} kind\n */\nfunction makeIterator (iterator, name, kind) {\n const object = {\n index: 0,\n kind,\n target: iterator\n }\n\n const i = {\n next () {\n // 1. Let interface be the interface for which the iterator prototype object exists.\n\n // 2. Let thisValue be the this value.\n\n // 3. Let object be ? ToObject(thisValue).\n\n // 4. If object is a platform object, then perform a security\n // check, passing:\n\n // 5. If object is not a default iterator object for interface,\n // then throw a TypeError.\n if (Object.getPrototypeOf(this) !== i) {\n throw new TypeError(\n `'next' called on an object that does not implement interface ${name} Iterator.`\n )\n }\n\n // 6. Let index be object’s index.\n // 7. Let kind be object’s kind.\n // 8. Let values be object’s target's value pairs to iterate over.\n const { index, kind, target } = object\n const values = target()\n\n // 9. Let len be the length of values.\n const len = values.length\n\n // 10. If index is greater than or equal to len, then return\n // CreateIterResultObject(undefined, true).\n if (index >= len) {\n return { value: undefined, done: true }\n }\n\n // 11. Let pair be the entry in values at index index.\n const pair = values[index]\n\n // 12. Set object’s index to index + 1.\n object.index = index + 1\n\n // 13. Return the iterator result for pair and kind.\n return iteratorResult(pair, kind)\n },\n // The class string of an iterator prototype object for a given interface is the\n // result of concatenating the identifier of the interface and the string \" Iterator\".\n [Symbol.toStringTag]: `${name} Iterator`\n }\n\n // The [[Prototype]] internal slot of an iterator prototype object must be %IteratorPrototype%.\n Object.setPrototypeOf(i, esIteratorPrototype)\n // esIteratorPrototype needs to be the prototype of i\n // which is the prototype of an empty object. Yes, it's confusing.\n return Object.setPrototypeOf({}, i)\n}\n\n// https://webidl.spec.whatwg.org/#iterator-result\nfunction iteratorResult (pair, kind) {\n let result\n\n // 1. Let result be a value determined by the value of kind:\n switch (kind) {\n case 'key': {\n // 1. Let idlKey be pair’s key.\n // 2. Let key be the result of converting idlKey to an\n // ECMAScript value.\n // 3. result is key.\n result = pair[0]\n break\n }\n case 'value': {\n // 1. Let idlValue be pair’s value.\n // 2. Let value be the result of converting idlValue to\n // an ECMAScript value.\n // 3. result is value.\n result = pair[1]\n break\n }\n case 'key+value': {\n // 1. Let idlKey be pair’s key.\n // 2. Let idlValue be pair’s value.\n // 3. Let key be the result of converting idlKey to an\n // ECMAScript value.\n // 4. Let value be the result of converting idlValue to\n // an ECMAScript value.\n // 5. Let array be ! ArrayCreate(2).\n // 6. Call ! CreateDataProperty(array, \"0\", key).\n // 7. Call ! CreateDataProperty(array, \"1\", value).\n // 8. result is array.\n result = pair\n break\n }\n }\n\n // 2. Return CreateIterResultObject(result, false).\n return { value: result, done: false }\n}\n\n/**\n * @see https://fetch.spec.whatwg.org/#body-fully-read\n */\nasync function fullyReadBody (body, processBody, processBodyError) {\n // 1. If taskDestination is null, then set taskDestination to\n // the result of starting a new parallel queue.\n\n // 2. Let successSteps given a byte sequence bytes be to queue a\n // fetch task to run processBody given bytes, with taskDestination.\n const successSteps = processBody\n\n // 3. Let errorSteps be to queue a fetch task to run processBodyError,\n // with taskDestination.\n const errorSteps = processBodyError\n\n // 4. Let reader be the result of getting a reader for body’s stream.\n // If that threw an exception, then run errorSteps with that\n // exception and return.\n let reader\n\n try {\n reader = body.stream.getReader()\n } catch (e) {\n errorSteps(e)\n return\n }\n\n // 5. Read all bytes from reader, given successSteps and errorSteps.\n try {\n const result = await readAllBytes(reader)\n successSteps(result)\n } catch (e) {\n errorSteps(e)\n }\n}\n\n/** @type {ReadableStream} */\nlet ReadableStream = globalThis.ReadableStream\n\nfunction isReadableStreamLike (stream) {\n if (!ReadableStream) {\n ReadableStream = require('stream/web').ReadableStream\n }\n\n return stream instanceof ReadableStream || (\n stream[Symbol.toStringTag] === 'ReadableStream' &&\n typeof stream.tee === 'function'\n )\n}\n\nconst MAXIMUM_ARGUMENT_LENGTH = 65535\n\n/**\n * @see https://infra.spec.whatwg.org/#isomorphic-decode\n * @param {number[]|Uint8Array} input\n */\nfunction isomorphicDecode (input) {\n // 1. To isomorphic decode a byte sequence input, return a string whose code point\n // length is equal to input’s length and whose code points have the same values\n // as the values of input’s bytes, in the same order.\n\n if (input.length < MAXIMUM_ARGUMENT_LENGTH) {\n return String.fromCharCode(...input)\n }\n\n return input.reduce((previous, current) => previous + String.fromCharCode(current), '')\n}\n\n/**\n * @param {ReadableStreamController} controller\n */\nfunction readableStreamClose (controller) {\n try {\n controller.close()\n } catch (err) {\n // TODO: add comment explaining why this error occurs.\n if (!err.message.includes('Controller is already closed')) {\n throw err\n }\n }\n}\n\n/**\n * @see https://infra.spec.whatwg.org/#isomorphic-encode\n * @param {string} input\n */\nfunction isomorphicEncode (input) {\n // 1. Assert: input contains no code points greater than U+00FF.\n for (let i = 0; i < input.length; i++) {\n assert(input.charCodeAt(i) <= 0xFF)\n }\n\n // 2. Return a byte sequence whose length is equal to input’s code\n // point length and whose bytes have the same values as the\n // values of input’s code points, in the same order\n return input\n}\n\n/**\n * @see https://streams.spec.whatwg.org/#readablestreamdefaultreader-read-all-bytes\n * @see https://streams.spec.whatwg.org/#read-loop\n * @param {ReadableStreamDefaultReader} reader\n */\nasync function readAllBytes (reader) {\n const bytes = []\n let byteLength = 0\n\n while (true) {\n const { done, value: chunk } = await reader.read()\n\n if (done) {\n // 1. Call successSteps with bytes.\n return Buffer.concat(bytes, byteLength)\n }\n\n // 1. If chunk is not a Uint8Array object, call failureSteps\n // with a TypeError and abort these steps.\n if (!isUint8Array(chunk)) {\n throw new TypeError('Received non-Uint8Array chunk')\n }\n\n // 2. Append the bytes represented by chunk to bytes.\n bytes.push(chunk)\n byteLength += chunk.length\n\n // 3. Read-loop given reader, bytes, successSteps, and failureSteps.\n }\n}\n\n/**\n * @see https://fetch.spec.whatwg.org/#is-local\n * @param {URL} url\n */\nfunction urlIsLocal (url) {\n assert('protocol' in url) // ensure it's a url object\n\n const protocol = url.protocol\n\n return protocol === 'about:' || protocol === 'blob:' || protocol === 'data:'\n}\n\n/**\n * @param {string|URL} url\n */\nfunction urlHasHttpsScheme (url) {\n if (typeof url === 'string') {\n return url.startsWith('https:')\n }\n\n return url.protocol === 'https:'\n}\n\n/**\n * @see https://fetch.spec.whatwg.org/#http-scheme\n * @param {URL} url\n */\nfunction urlIsHttpHttpsScheme (url) {\n assert('protocol' in url) // ensure it's a url object\n\n const protocol = url.protocol\n\n return protocol === 'http:' || protocol === 'https:'\n}\n\n/**\n * Fetch supports node >= 16.8.0, but Object.hasOwn was added in v16.9.0.\n */\nconst hasOwn = Object.hasOwn || ((dict, key) => Object.prototype.hasOwnProperty.call(dict, key))\n\nmodule.exports = {\n isAborted,\n isCancelled,\n createDeferredPromise,\n ReadableStreamFrom,\n toUSVString,\n tryUpgradeRequestToAPotentiallyTrustworthyURL,\n coarsenedSharedCurrentTime,\n determineRequestsReferrer,\n makePolicyContainer,\n clonePolicyContainer,\n appendFetchMetadata,\n appendRequestOriginHeader,\n TAOCheck,\n corsCheck,\n crossOriginResourcePolicyCheck,\n createOpaqueTimingInfo,\n setRequestReferrerPolicyOnRedirect,\n isValidHTTPToken,\n requestBadPort,\n requestCurrentURL,\n responseURL,\n responseLocationURL,\n isBlobLike,\n isURLPotentiallyTrustworthy,\n isValidReasonPhrase,\n sameOrigin,\n normalizeMethod,\n serializeJavascriptValueToJSONString,\n makeIterator,\n isValidHeaderName,\n isValidHeaderValue,\n hasOwn,\n isErrorLike,\n fullyReadBody,\n bytesMatch,\n isReadableStreamLike,\n readableStreamClose,\n isomorphicEncode,\n isomorphicDecode,\n urlIsLocal,\n urlHasHttpsScheme,\n urlIsHttpHttpsScheme,\n readAllBytes,\n normalizeMethodRecord,\n parseMetadata\n}\n","'use strict'\n\nconst { types } = require('util')\nconst { hasOwn, toUSVString } = require('./util')\n\n/** @type {import('../../types/webidl').Webidl} */\nconst webidl = {}\nwebidl.converters = {}\nwebidl.util = {}\nwebidl.errors = {}\n\nwebidl.errors.exception = function (message) {\n return new TypeError(`${message.header}: ${message.message}`)\n}\n\nwebidl.errors.conversionFailed = function (context) {\n const plural = context.types.length === 1 ? '' : ' one of'\n const message =\n `${context.argument} could not be converted to` +\n `${plural}: ${context.types.join(', ')}.`\n\n return webidl.errors.exception({\n header: context.prefix,\n message\n })\n}\n\nwebidl.errors.invalidArgument = function (context) {\n return webidl.errors.exception({\n header: context.prefix,\n message: `\"${context.value}\" is an invalid ${context.type}.`\n })\n}\n\n// https://webidl.spec.whatwg.org/#implements\nwebidl.brandCheck = function (V, I, opts = undefined) {\n if (opts?.strict !== false && !(V instanceof I)) {\n throw new TypeError('Illegal invocation')\n } else {\n return V?.[Symbol.toStringTag] === I.prototype[Symbol.toStringTag]\n }\n}\n\nwebidl.argumentLengthCheck = function ({ length }, min, ctx) {\n if (length < min) {\n throw webidl.errors.exception({\n message: `${min} argument${min !== 1 ? 's' : ''} required, ` +\n `but${length ? ' only' : ''} ${length} found.`,\n ...ctx\n })\n }\n}\n\nwebidl.illegalConstructor = function () {\n throw webidl.errors.exception({\n header: 'TypeError',\n message: 'Illegal constructor'\n })\n}\n\n// https://tc39.es/ecma262/#sec-ecmascript-data-types-and-values\nwebidl.util.Type = function (V) {\n switch (typeof V) {\n case 'undefined': return 'Undefined'\n case 'boolean': return 'Boolean'\n case 'string': return 'String'\n case 'symbol': return 'Symbol'\n case 'number': return 'Number'\n case 'bigint': return 'BigInt'\n case 'function':\n case 'object': {\n if (V === null) {\n return 'Null'\n }\n\n return 'Object'\n }\n }\n}\n\n// https://webidl.spec.whatwg.org/#abstract-opdef-converttoint\nwebidl.util.ConvertToInt = function (V, bitLength, signedness, opts = {}) {\n let upperBound\n let lowerBound\n\n // 1. If bitLength is 64, then:\n if (bitLength === 64) {\n // 1. Let upperBound be 2^53 − 1.\n upperBound = Math.pow(2, 53) - 1\n\n // 2. If signedness is \"unsigned\", then let lowerBound be 0.\n if (signedness === 'unsigned') {\n lowerBound = 0\n } else {\n // 3. Otherwise let lowerBound be −2^53 + 1.\n lowerBound = Math.pow(-2, 53) + 1\n }\n } else if (signedness === 'unsigned') {\n // 2. Otherwise, if signedness is \"unsigned\", then:\n\n // 1. Let lowerBound be 0.\n lowerBound = 0\n\n // 2. Let upperBound be 2^bitLength − 1.\n upperBound = Math.pow(2, bitLength) - 1\n } else {\n // 3. Otherwise:\n\n // 1. Let lowerBound be -2^bitLength − 1.\n lowerBound = Math.pow(-2, bitLength) - 1\n\n // 2. Let upperBound be 2^bitLength − 1 − 1.\n upperBound = Math.pow(2, bitLength - 1) - 1\n }\n\n // 4. Let x be ? ToNumber(V).\n let x = Number(V)\n\n // 5. If x is −0, then set x to +0.\n if (x === 0) {\n x = 0\n }\n\n // 6. If the conversion is to an IDL type associated\n // with the [EnforceRange] extended attribute, then:\n if (opts.enforceRange === true) {\n // 1. If x is NaN, +∞, or −∞, then throw a TypeError.\n if (\n Number.isNaN(x) ||\n x === Number.POSITIVE_INFINITY ||\n x === Number.NEGATIVE_INFINITY\n ) {\n throw webidl.errors.exception({\n header: 'Integer conversion',\n message: `Could not convert ${V} to an integer.`\n })\n }\n\n // 2. Set x to IntegerPart(x).\n x = webidl.util.IntegerPart(x)\n\n // 3. If x < lowerBound or x > upperBound, then\n // throw a TypeError.\n if (x < lowerBound || x > upperBound) {\n throw webidl.errors.exception({\n header: 'Integer conversion',\n message: `Value must be between ${lowerBound}-${upperBound}, got ${x}.`\n })\n }\n\n // 4. Return x.\n return x\n }\n\n // 7. If x is not NaN and the conversion is to an IDL\n // type associated with the [Clamp] extended\n // attribute, then:\n if (!Number.isNaN(x) && opts.clamp === true) {\n // 1. Set x to min(max(x, lowerBound), upperBound).\n x = Math.min(Math.max(x, lowerBound), upperBound)\n\n // 2. Round x to the nearest integer, choosing the\n // even integer if it lies halfway between two,\n // and choosing +0 rather than −0.\n if (Math.floor(x) % 2 === 0) {\n x = Math.floor(x)\n } else {\n x = Math.ceil(x)\n }\n\n // 3. Return x.\n return x\n }\n\n // 8. If x is NaN, +0, +∞, or −∞, then return +0.\n if (\n Number.isNaN(x) ||\n (x === 0 && Object.is(0, x)) ||\n x === Number.POSITIVE_INFINITY ||\n x === Number.NEGATIVE_INFINITY\n ) {\n return 0\n }\n\n // 9. Set x to IntegerPart(x).\n x = webidl.util.IntegerPart(x)\n\n // 10. Set x to x modulo 2^bitLength.\n x = x % Math.pow(2, bitLength)\n\n // 11. If signedness is \"signed\" and x ≥ 2^bitLength − 1,\n // then return x − 2^bitLength.\n if (signedness === 'signed' && x >= Math.pow(2, bitLength) - 1) {\n return x - Math.pow(2, bitLength)\n }\n\n // 12. Otherwise, return x.\n return x\n}\n\n// https://webidl.spec.whatwg.org/#abstract-opdef-integerpart\nwebidl.util.IntegerPart = function (n) {\n // 1. Let r be floor(abs(n)).\n const r = Math.floor(Math.abs(n))\n\n // 2. If n < 0, then return -1 × r.\n if (n < 0) {\n return -1 * r\n }\n\n // 3. Otherwise, return r.\n return r\n}\n\n// https://webidl.spec.whatwg.org/#es-sequence\nwebidl.sequenceConverter = function (converter) {\n return (V) => {\n // 1. If Type(V) is not Object, throw a TypeError.\n if (webidl.util.Type(V) !== 'Object') {\n throw webidl.errors.exception({\n header: 'Sequence',\n message: `Value of type ${webidl.util.Type(V)} is not an Object.`\n })\n }\n\n // 2. Let method be ? GetMethod(V, @@iterator).\n /** @type {Generator} */\n const method = V?.[Symbol.iterator]?.()\n const seq = []\n\n // 3. If method is undefined, throw a TypeError.\n if (\n method === undefined ||\n typeof method.next !== 'function'\n ) {\n throw webidl.errors.exception({\n header: 'Sequence',\n message: 'Object is not an iterator.'\n })\n }\n\n // https://webidl.spec.whatwg.org/#create-sequence-from-iterable\n while (true) {\n const { done, value } = method.next()\n\n if (done) {\n break\n }\n\n seq.push(converter(value))\n }\n\n return seq\n }\n}\n\n// https://webidl.spec.whatwg.org/#es-to-record\nwebidl.recordConverter = function (keyConverter, valueConverter) {\n return (O) => {\n // 1. If Type(O) is not Object, throw a TypeError.\n if (webidl.util.Type(O) !== 'Object') {\n throw webidl.errors.exception({\n header: 'Record',\n message: `Value of type ${webidl.util.Type(O)} is not an Object.`\n })\n }\n\n // 2. Let result be a new empty instance of record.\n const result = {}\n\n if (!types.isProxy(O)) {\n // Object.keys only returns enumerable properties\n const keys = Object.keys(O)\n\n for (const key of keys) {\n // 1. Let typedKey be key converted to an IDL value of type K.\n const typedKey = keyConverter(key)\n\n // 2. Let value be ? Get(O, key).\n // 3. Let typedValue be value converted to an IDL value of type V.\n const typedValue = valueConverter(O[key])\n\n // 4. Set result[typedKey] to typedValue.\n result[typedKey] = typedValue\n }\n\n // 5. Return result.\n return result\n }\n\n // 3. Let keys be ? O.[[OwnPropertyKeys]]().\n const keys = Reflect.ownKeys(O)\n\n // 4. For each key of keys.\n for (const key of keys) {\n // 1. Let desc be ? O.[[GetOwnProperty]](key).\n const desc = Reflect.getOwnPropertyDescriptor(O, key)\n\n // 2. If desc is not undefined and desc.[[Enumerable]] is true:\n if (desc?.enumerable) {\n // 1. Let typedKey be key converted to an IDL value of type K.\n const typedKey = keyConverter(key)\n\n // 2. Let value be ? Get(O, key).\n // 3. Let typedValue be value converted to an IDL value of type V.\n const typedValue = valueConverter(O[key])\n\n // 4. Set result[typedKey] to typedValue.\n result[typedKey] = typedValue\n }\n }\n\n // 5. Return result.\n return result\n }\n}\n\nwebidl.interfaceConverter = function (i) {\n return (V, opts = {}) => {\n if (opts.strict !== false && !(V instanceof i)) {\n throw webidl.errors.exception({\n header: i.name,\n message: `Expected ${V} to be an instance of ${i.name}.`\n })\n }\n\n return V\n }\n}\n\nwebidl.dictionaryConverter = function (converters) {\n return (dictionary) => {\n const type = webidl.util.Type(dictionary)\n const dict = {}\n\n if (type === 'Null' || type === 'Undefined') {\n return dict\n } else if (type !== 'Object') {\n throw webidl.errors.exception({\n header: 'Dictionary',\n message: `Expected ${dictionary} to be one of: Null, Undefined, Object.`\n })\n }\n\n for (const options of converters) {\n const { key, defaultValue, required, converter } = options\n\n if (required === true) {\n if (!hasOwn(dictionary, key)) {\n throw webidl.errors.exception({\n header: 'Dictionary',\n message: `Missing required key \"${key}\".`\n })\n }\n }\n\n let value = dictionary[key]\n const hasDefault = hasOwn(options, 'defaultValue')\n\n // Only use defaultValue if value is undefined and\n // a defaultValue options was provided.\n if (hasDefault && value !== null) {\n value = value ?? defaultValue\n }\n\n // A key can be optional and have no default value.\n // When this happens, do not perform a conversion,\n // and do not assign the key a value.\n if (required || hasDefault || value !== undefined) {\n value = converter(value)\n\n if (\n options.allowedValues &&\n !options.allowedValues.includes(value)\n ) {\n throw webidl.errors.exception({\n header: 'Dictionary',\n message: `${value} is not an accepted type. Expected one of ${options.allowedValues.join(', ')}.`\n })\n }\n\n dict[key] = value\n }\n }\n\n return dict\n }\n}\n\nwebidl.nullableConverter = function (converter) {\n return (V) => {\n if (V === null) {\n return V\n }\n\n return converter(V)\n }\n}\n\n// https://webidl.spec.whatwg.org/#es-DOMString\nwebidl.converters.DOMString = function (V, opts = {}) {\n // 1. If V is null and the conversion is to an IDL type\n // associated with the [LegacyNullToEmptyString]\n // extended attribute, then return the DOMString value\n // that represents the empty string.\n if (V === null && opts.legacyNullToEmptyString) {\n return ''\n }\n\n // 2. Let x be ? ToString(V).\n if (typeof V === 'symbol') {\n throw new TypeError('Could not convert argument of type symbol to string.')\n }\n\n // 3. Return the IDL DOMString value that represents the\n // same sequence of code units as the one the\n // ECMAScript String value x represents.\n return String(V)\n}\n\n// https://webidl.spec.whatwg.org/#es-ByteString\nwebidl.converters.ByteString = function (V) {\n // 1. Let x be ? ToString(V).\n // Note: DOMString converter perform ? ToString(V)\n const x = webidl.converters.DOMString(V)\n\n // 2. If the value of any element of x is greater than\n // 255, then throw a TypeError.\n for (let index = 0; index < x.length; index++) {\n if (x.charCodeAt(index) > 255) {\n throw new TypeError(\n 'Cannot convert argument to a ByteString because the character at ' +\n `index ${index} has a value of ${x.charCodeAt(index)} which is greater than 255.`\n )\n }\n }\n\n // 3. Return an IDL ByteString value whose length is the\n // length of x, and where the value of each element is\n // the value of the corresponding element of x.\n return x\n}\n\n// https://webidl.spec.whatwg.org/#es-USVString\nwebidl.converters.USVString = toUSVString\n\n// https://webidl.spec.whatwg.org/#es-boolean\nwebidl.converters.boolean = function (V) {\n // 1. Let x be the result of computing ToBoolean(V).\n const x = Boolean(V)\n\n // 2. Return the IDL boolean value that is the one that represents\n // the same truth value as the ECMAScript Boolean value x.\n return x\n}\n\n// https://webidl.spec.whatwg.org/#es-any\nwebidl.converters.any = function (V) {\n return V\n}\n\n// https://webidl.spec.whatwg.org/#es-long-long\nwebidl.converters['long long'] = function (V) {\n // 1. Let x be ? ConvertToInt(V, 64, \"signed\").\n const x = webidl.util.ConvertToInt(V, 64, 'signed')\n\n // 2. Return the IDL long long value that represents\n // the same numeric value as x.\n return x\n}\n\n// https://webidl.spec.whatwg.org/#es-unsigned-long-long\nwebidl.converters['unsigned long long'] = function (V) {\n // 1. Let x be ? ConvertToInt(V, 64, \"unsigned\").\n const x = webidl.util.ConvertToInt(V, 64, 'unsigned')\n\n // 2. Return the IDL unsigned long long value that\n // represents the same numeric value as x.\n return x\n}\n\n// https://webidl.spec.whatwg.org/#es-unsigned-long\nwebidl.converters['unsigned long'] = function (V) {\n // 1. Let x be ? ConvertToInt(V, 32, \"unsigned\").\n const x = webidl.util.ConvertToInt(V, 32, 'unsigned')\n\n // 2. Return the IDL unsigned long value that\n // represents the same numeric value as x.\n return x\n}\n\n// https://webidl.spec.whatwg.org/#es-unsigned-short\nwebidl.converters['unsigned short'] = function (V, opts) {\n // 1. Let x be ? ConvertToInt(V, 16, \"unsigned\").\n const x = webidl.util.ConvertToInt(V, 16, 'unsigned', opts)\n\n // 2. Return the IDL unsigned short value that represents\n // the same numeric value as x.\n return x\n}\n\n// https://webidl.spec.whatwg.org/#idl-ArrayBuffer\nwebidl.converters.ArrayBuffer = function (V, opts = {}) {\n // 1. If Type(V) is not Object, or V does not have an\n // [[ArrayBufferData]] internal slot, then throw a\n // TypeError.\n // see: https://tc39.es/ecma262/#sec-properties-of-the-arraybuffer-instances\n // see: https://tc39.es/ecma262/#sec-properties-of-the-sharedarraybuffer-instances\n if (\n webidl.util.Type(V) !== 'Object' ||\n !types.isAnyArrayBuffer(V)\n ) {\n throw webidl.errors.conversionFailed({\n prefix: `${V}`,\n argument: `${V}`,\n types: ['ArrayBuffer']\n })\n }\n\n // 2. If the conversion is not to an IDL type associated\n // with the [AllowShared] extended attribute, and\n // IsSharedArrayBuffer(V) is true, then throw a\n // TypeError.\n if (opts.allowShared === false && types.isSharedArrayBuffer(V)) {\n throw webidl.errors.exception({\n header: 'ArrayBuffer',\n message: 'SharedArrayBuffer is not allowed.'\n })\n }\n\n // 3. If the conversion is not to an IDL type associated\n // with the [AllowResizable] extended attribute, and\n // IsResizableArrayBuffer(V) is true, then throw a\n // TypeError.\n // Note: resizable ArrayBuffers are currently a proposal.\n\n // 4. Return the IDL ArrayBuffer value that is a\n // reference to the same object as V.\n return V\n}\n\nwebidl.converters.TypedArray = function (V, T, opts = {}) {\n // 1. Let T be the IDL type V is being converted to.\n\n // 2. If Type(V) is not Object, or V does not have a\n // [[TypedArrayName]] internal slot with a value\n // equal to T’s name, then throw a TypeError.\n if (\n webidl.util.Type(V) !== 'Object' ||\n !types.isTypedArray(V) ||\n V.constructor.name !== T.name\n ) {\n throw webidl.errors.conversionFailed({\n prefix: `${T.name}`,\n argument: `${V}`,\n types: [T.name]\n })\n }\n\n // 3. If the conversion is not to an IDL type associated\n // with the [AllowShared] extended attribute, and\n // IsSharedArrayBuffer(V.[[ViewedArrayBuffer]]) is\n // true, then throw a TypeError.\n if (opts.allowShared === false && types.isSharedArrayBuffer(V.buffer)) {\n throw webidl.errors.exception({\n header: 'ArrayBuffer',\n message: 'SharedArrayBuffer is not allowed.'\n })\n }\n\n // 4. If the conversion is not to an IDL type associated\n // with the [AllowResizable] extended attribute, and\n // IsResizableArrayBuffer(V.[[ViewedArrayBuffer]]) is\n // true, then throw a TypeError.\n // Note: resizable array buffers are currently a proposal\n\n // 5. Return the IDL value of type T that is a reference\n // to the same object as V.\n return V\n}\n\nwebidl.converters.DataView = function (V, opts = {}) {\n // 1. If Type(V) is not Object, or V does not have a\n // [[DataView]] internal slot, then throw a TypeError.\n if (webidl.util.Type(V) !== 'Object' || !types.isDataView(V)) {\n throw webidl.errors.exception({\n header: 'DataView',\n message: 'Object is not a DataView.'\n })\n }\n\n // 2. If the conversion is not to an IDL type associated\n // with the [AllowShared] extended attribute, and\n // IsSharedArrayBuffer(V.[[ViewedArrayBuffer]]) is true,\n // then throw a TypeError.\n if (opts.allowShared === false && types.isSharedArrayBuffer(V.buffer)) {\n throw webidl.errors.exception({\n header: 'ArrayBuffer',\n message: 'SharedArrayBuffer is not allowed.'\n })\n }\n\n // 3. If the conversion is not to an IDL type associated\n // with the [AllowResizable] extended attribute, and\n // IsResizableArrayBuffer(V.[[ViewedArrayBuffer]]) is\n // true, then throw a TypeError.\n // Note: resizable ArrayBuffers are currently a proposal\n\n // 4. Return the IDL DataView value that is a reference\n // to the same object as V.\n return V\n}\n\n// https://webidl.spec.whatwg.org/#BufferSource\nwebidl.converters.BufferSource = function (V, opts = {}) {\n if (types.isAnyArrayBuffer(V)) {\n return webidl.converters.ArrayBuffer(V, opts)\n }\n\n if (types.isTypedArray(V)) {\n return webidl.converters.TypedArray(V, V.constructor)\n }\n\n if (types.isDataView(V)) {\n return webidl.converters.DataView(V, opts)\n }\n\n throw new TypeError(`Could not convert ${V} to a BufferSource.`)\n}\n\nwebidl.converters['sequence'] = webidl.sequenceConverter(\n webidl.converters.ByteString\n)\n\nwebidl.converters['sequence>'] = webidl.sequenceConverter(\n webidl.converters['sequence']\n)\n\nwebidl.converters['record'] = webidl.recordConverter(\n webidl.converters.ByteString,\n webidl.converters.ByteString\n)\n\nmodule.exports = {\n webidl\n}\n","'use strict'\n\n/**\n * @see https://encoding.spec.whatwg.org/#concept-encoding-get\n * @param {string|undefined} label\n */\nfunction getEncoding (label) {\n if (!label) {\n return 'failure'\n }\n\n // 1. Remove any leading and trailing ASCII whitespace from label.\n // 2. If label is an ASCII case-insensitive match for any of the\n // labels listed in the table below, then return the\n // corresponding encoding; otherwise return failure.\n switch (label.trim().toLowerCase()) {\n case 'unicode-1-1-utf-8':\n case 'unicode11utf8':\n case 'unicode20utf8':\n case 'utf-8':\n case 'utf8':\n case 'x-unicode20utf8':\n return 'UTF-8'\n case '866':\n case 'cp866':\n case 'csibm866':\n case 'ibm866':\n return 'IBM866'\n case 'csisolatin2':\n case 'iso-8859-2':\n case 'iso-ir-101':\n case 'iso8859-2':\n case 'iso88592':\n case 'iso_8859-2':\n case 'iso_8859-2:1987':\n case 'l2':\n case 'latin2':\n return 'ISO-8859-2'\n case 'csisolatin3':\n case 'iso-8859-3':\n case 'iso-ir-109':\n case 'iso8859-3':\n case 'iso88593':\n case 'iso_8859-3':\n case 'iso_8859-3:1988':\n case 'l3':\n case 'latin3':\n return 'ISO-8859-3'\n case 'csisolatin4':\n case 'iso-8859-4':\n case 'iso-ir-110':\n case 'iso8859-4':\n case 'iso88594':\n case 'iso_8859-4':\n case 'iso_8859-4:1988':\n case 'l4':\n case 'latin4':\n return 'ISO-8859-4'\n case 'csisolatincyrillic':\n case 'cyrillic':\n case 'iso-8859-5':\n case 'iso-ir-144':\n case 'iso8859-5':\n case 'iso88595':\n case 'iso_8859-5':\n case 'iso_8859-5:1988':\n return 'ISO-8859-5'\n case 'arabic':\n case 'asmo-708':\n case 'csiso88596e':\n case 'csiso88596i':\n case 'csisolatinarabic':\n case 'ecma-114':\n case 'iso-8859-6':\n case 'iso-8859-6-e':\n case 'iso-8859-6-i':\n case 'iso-ir-127':\n case 'iso8859-6':\n case 'iso88596':\n case 'iso_8859-6':\n case 'iso_8859-6:1987':\n return 'ISO-8859-6'\n case 'csisolatingreek':\n case 'ecma-118':\n case 'elot_928':\n case 'greek':\n case 'greek8':\n case 'iso-8859-7':\n case 'iso-ir-126':\n case 'iso8859-7':\n case 'iso88597':\n case 'iso_8859-7':\n case 'iso_8859-7:1987':\n case 'sun_eu_greek':\n return 'ISO-8859-7'\n case 'csiso88598e':\n case 'csisolatinhebrew':\n case 'hebrew':\n case 'iso-8859-8':\n case 'iso-8859-8-e':\n case 'iso-ir-138':\n case 'iso8859-8':\n case 'iso88598':\n case 'iso_8859-8':\n case 'iso_8859-8:1988':\n case 'visual':\n return 'ISO-8859-8'\n case 'csiso88598i':\n case 'iso-8859-8-i':\n case 'logical':\n return 'ISO-8859-8-I'\n case 'csisolatin6':\n case 'iso-8859-10':\n case 'iso-ir-157':\n case 'iso8859-10':\n case 'iso885910':\n case 'l6':\n case 'latin6':\n return 'ISO-8859-10'\n case 'iso-8859-13':\n case 'iso8859-13':\n case 'iso885913':\n return 'ISO-8859-13'\n case 'iso-8859-14':\n case 'iso8859-14':\n case 'iso885914':\n return 'ISO-8859-14'\n case 'csisolatin9':\n case 'iso-8859-15':\n case 'iso8859-15':\n case 'iso885915':\n case 'iso_8859-15':\n case 'l9':\n return 'ISO-8859-15'\n case 'iso-8859-16':\n return 'ISO-8859-16'\n case 'cskoi8r':\n case 'koi':\n case 'koi8':\n case 'koi8-r':\n case 'koi8_r':\n return 'KOI8-R'\n case 'koi8-ru':\n case 'koi8-u':\n return 'KOI8-U'\n case 'csmacintosh':\n case 'mac':\n case 'macintosh':\n case 'x-mac-roman':\n return 'macintosh'\n case 'iso-8859-11':\n case 'iso8859-11':\n case 'iso885911':\n case 'tis-620':\n case 'windows-874':\n return 'windows-874'\n case 'cp1250':\n case 'windows-1250':\n case 'x-cp1250':\n return 'windows-1250'\n case 'cp1251':\n case 'windows-1251':\n case 'x-cp1251':\n return 'windows-1251'\n case 'ansi_x3.4-1968':\n case 'ascii':\n case 'cp1252':\n case 'cp819':\n case 'csisolatin1':\n case 'ibm819':\n case 'iso-8859-1':\n case 'iso-ir-100':\n case 'iso8859-1':\n case 'iso88591':\n case 'iso_8859-1':\n case 'iso_8859-1:1987':\n case 'l1':\n case 'latin1':\n case 'us-ascii':\n case 'windows-1252':\n case 'x-cp1252':\n return 'windows-1252'\n case 'cp1253':\n case 'windows-1253':\n case 'x-cp1253':\n return 'windows-1253'\n case 'cp1254':\n case 'csisolatin5':\n case 'iso-8859-9':\n case 'iso-ir-148':\n case 'iso8859-9':\n case 'iso88599':\n case 'iso_8859-9':\n case 'iso_8859-9:1989':\n case 'l5':\n case 'latin5':\n case 'windows-1254':\n case 'x-cp1254':\n return 'windows-1254'\n case 'cp1255':\n case 'windows-1255':\n case 'x-cp1255':\n return 'windows-1255'\n case 'cp1256':\n case 'windows-1256':\n case 'x-cp1256':\n return 'windows-1256'\n case 'cp1257':\n case 'windows-1257':\n case 'x-cp1257':\n return 'windows-1257'\n case 'cp1258':\n case 'windows-1258':\n case 'x-cp1258':\n return 'windows-1258'\n case 'x-mac-cyrillic':\n case 'x-mac-ukrainian':\n return 'x-mac-cyrillic'\n case 'chinese':\n case 'csgb2312':\n case 'csiso58gb231280':\n case 'gb2312':\n case 'gb_2312':\n case 'gb_2312-80':\n case 'gbk':\n case 'iso-ir-58':\n case 'x-gbk':\n return 'GBK'\n case 'gb18030':\n return 'gb18030'\n case 'big5':\n case 'big5-hkscs':\n case 'cn-big5':\n case 'csbig5':\n case 'x-x-big5':\n return 'Big5'\n case 'cseucpkdfmtjapanese':\n case 'euc-jp':\n case 'x-euc-jp':\n return 'EUC-JP'\n case 'csiso2022jp':\n case 'iso-2022-jp':\n return 'ISO-2022-JP'\n case 'csshiftjis':\n case 'ms932':\n case 'ms_kanji':\n case 'shift-jis':\n case 'shift_jis':\n case 'sjis':\n case 'windows-31j':\n case 'x-sjis':\n return 'Shift_JIS'\n case 'cseuckr':\n case 'csksc56011987':\n case 'euc-kr':\n case 'iso-ir-149':\n case 'korean':\n case 'ks_c_5601-1987':\n case 'ks_c_5601-1989':\n case 'ksc5601':\n case 'ksc_5601':\n case 'windows-949':\n return 'EUC-KR'\n case 'csiso2022kr':\n case 'hz-gb-2312':\n case 'iso-2022-cn':\n case 'iso-2022-cn-ext':\n case 'iso-2022-kr':\n case 'replacement':\n return 'replacement'\n case 'unicodefffe':\n case 'utf-16be':\n return 'UTF-16BE'\n case 'csunicode':\n case 'iso-10646-ucs-2':\n case 'ucs-2':\n case 'unicode':\n case 'unicodefeff':\n case 'utf-16':\n case 'utf-16le':\n return 'UTF-16LE'\n case 'x-user-defined':\n return 'x-user-defined'\n default: return 'failure'\n }\n}\n\nmodule.exports = {\n getEncoding\n}\n","'use strict'\n\nconst {\n staticPropertyDescriptors,\n readOperation,\n fireAProgressEvent\n} = require('./util')\nconst {\n kState,\n kError,\n kResult,\n kEvents,\n kAborted\n} = require('./symbols')\nconst { webidl } = require('../fetch/webidl')\nconst { kEnumerableProperty } = require('../core/util')\n\nclass FileReader extends EventTarget {\n constructor () {\n super()\n\n this[kState] = 'empty'\n this[kResult] = null\n this[kError] = null\n this[kEvents] = {\n loadend: null,\n error: null,\n abort: null,\n load: null,\n progress: null,\n loadstart: null\n }\n }\n\n /**\n * @see https://w3c.github.io/FileAPI/#dfn-readAsArrayBuffer\n * @param {import('buffer').Blob} blob\n */\n readAsArrayBuffer (blob) {\n webidl.brandCheck(this, FileReader)\n\n webidl.argumentLengthCheck(arguments, 1, { header: 'FileReader.readAsArrayBuffer' })\n\n blob = webidl.converters.Blob(blob, { strict: false })\n\n // The readAsArrayBuffer(blob) method, when invoked,\n // must initiate a read operation for blob with ArrayBuffer.\n readOperation(this, blob, 'ArrayBuffer')\n }\n\n /**\n * @see https://w3c.github.io/FileAPI/#readAsBinaryString\n * @param {import('buffer').Blob} blob\n */\n readAsBinaryString (blob) {\n webidl.brandCheck(this, FileReader)\n\n webidl.argumentLengthCheck(arguments, 1, { header: 'FileReader.readAsBinaryString' })\n\n blob = webidl.converters.Blob(blob, { strict: false })\n\n // The readAsBinaryString(blob) method, when invoked,\n // must initiate a read operation for blob with BinaryString.\n readOperation(this, blob, 'BinaryString')\n }\n\n /**\n * @see https://w3c.github.io/FileAPI/#readAsDataText\n * @param {import('buffer').Blob} blob\n * @param {string?} encoding\n */\n readAsText (blob, encoding = undefined) {\n webidl.brandCheck(this, FileReader)\n\n webidl.argumentLengthCheck(arguments, 1, { header: 'FileReader.readAsText' })\n\n blob = webidl.converters.Blob(blob, { strict: false })\n\n if (encoding !== undefined) {\n encoding = webidl.converters.DOMString(encoding)\n }\n\n // The readAsText(blob, encoding) method, when invoked,\n // must initiate a read operation for blob with Text and encoding.\n readOperation(this, blob, 'Text', encoding)\n }\n\n /**\n * @see https://w3c.github.io/FileAPI/#dfn-readAsDataURL\n * @param {import('buffer').Blob} blob\n */\n readAsDataURL (blob) {\n webidl.brandCheck(this, FileReader)\n\n webidl.argumentLengthCheck(arguments, 1, { header: 'FileReader.readAsDataURL' })\n\n blob = webidl.converters.Blob(blob, { strict: false })\n\n // The readAsDataURL(blob) method, when invoked, must\n // initiate a read operation for blob with DataURL.\n readOperation(this, blob, 'DataURL')\n }\n\n /**\n * @see https://w3c.github.io/FileAPI/#dfn-abort\n */\n abort () {\n // 1. If this's state is \"empty\" or if this's state is\n // \"done\" set this's result to null and terminate\n // this algorithm.\n if (this[kState] === 'empty' || this[kState] === 'done') {\n this[kResult] = null\n return\n }\n\n // 2. If this's state is \"loading\" set this's state to\n // \"done\" and set this's result to null.\n if (this[kState] === 'loading') {\n this[kState] = 'done'\n this[kResult] = null\n }\n\n // 3. If there are any tasks from this on the file reading\n // task source in an affiliated task queue, then remove\n // those tasks from that task queue.\n this[kAborted] = true\n\n // 4. Terminate the algorithm for the read method being processed.\n // TODO\n\n // 5. Fire a progress event called abort at this.\n fireAProgressEvent('abort', this)\n\n // 6. If this's state is not \"loading\", fire a progress\n // event called loadend at this.\n if (this[kState] !== 'loading') {\n fireAProgressEvent('loadend', this)\n }\n }\n\n /**\n * @see https://w3c.github.io/FileAPI/#dom-filereader-readystate\n */\n get readyState () {\n webidl.brandCheck(this, FileReader)\n\n switch (this[kState]) {\n case 'empty': return this.EMPTY\n case 'loading': return this.LOADING\n case 'done': return this.DONE\n }\n }\n\n /**\n * @see https://w3c.github.io/FileAPI/#dom-filereader-result\n */\n get result () {\n webidl.brandCheck(this, FileReader)\n\n // The result attribute’s getter, when invoked, must return\n // this's result.\n return this[kResult]\n }\n\n /**\n * @see https://w3c.github.io/FileAPI/#dom-filereader-error\n */\n get error () {\n webidl.brandCheck(this, FileReader)\n\n // The error attribute’s getter, when invoked, must return\n // this's error.\n return this[kError]\n }\n\n get onloadend () {\n webidl.brandCheck(this, FileReader)\n\n return this[kEvents].loadend\n }\n\n set onloadend (fn) {\n webidl.brandCheck(this, FileReader)\n\n if (this[kEvents].loadend) {\n this.removeEventListener('loadend', this[kEvents].loadend)\n }\n\n if (typeof fn === 'function') {\n this[kEvents].loadend = fn\n this.addEventListener('loadend', fn)\n } else {\n this[kEvents].loadend = null\n }\n }\n\n get onerror () {\n webidl.brandCheck(this, FileReader)\n\n return this[kEvents].error\n }\n\n set onerror (fn) {\n webidl.brandCheck(this, FileReader)\n\n if (this[kEvents].error) {\n this.removeEventListener('error', this[kEvents].error)\n }\n\n if (typeof fn === 'function') {\n this[kEvents].error = fn\n this.addEventListener('error', fn)\n } else {\n this[kEvents].error = null\n }\n }\n\n get onloadstart () {\n webidl.brandCheck(this, FileReader)\n\n return this[kEvents].loadstart\n }\n\n set onloadstart (fn) {\n webidl.brandCheck(this, FileReader)\n\n if (this[kEvents].loadstart) {\n this.removeEventListener('loadstart', this[kEvents].loadstart)\n }\n\n if (typeof fn === 'function') {\n this[kEvents].loadstart = fn\n this.addEventListener('loadstart', fn)\n } else {\n this[kEvents].loadstart = null\n }\n }\n\n get onprogress () {\n webidl.brandCheck(this, FileReader)\n\n return this[kEvents].progress\n }\n\n set onprogress (fn) {\n webidl.brandCheck(this, FileReader)\n\n if (this[kEvents].progress) {\n this.removeEventListener('progress', this[kEvents].progress)\n }\n\n if (typeof fn === 'function') {\n this[kEvents].progress = fn\n this.addEventListener('progress', fn)\n } else {\n this[kEvents].progress = null\n }\n }\n\n get onload () {\n webidl.brandCheck(this, FileReader)\n\n return this[kEvents].load\n }\n\n set onload (fn) {\n webidl.brandCheck(this, FileReader)\n\n if (this[kEvents].load) {\n this.removeEventListener('load', this[kEvents].load)\n }\n\n if (typeof fn === 'function') {\n this[kEvents].load = fn\n this.addEventListener('load', fn)\n } else {\n this[kEvents].load = null\n }\n }\n\n get onabort () {\n webidl.brandCheck(this, FileReader)\n\n return this[kEvents].abort\n }\n\n set onabort (fn) {\n webidl.brandCheck(this, FileReader)\n\n if (this[kEvents].abort) {\n this.removeEventListener('abort', this[kEvents].abort)\n }\n\n if (typeof fn === 'function') {\n this[kEvents].abort = fn\n this.addEventListener('abort', fn)\n } else {\n this[kEvents].abort = null\n }\n }\n}\n\n// https://w3c.github.io/FileAPI/#dom-filereader-empty\nFileReader.EMPTY = FileReader.prototype.EMPTY = 0\n// https://w3c.github.io/FileAPI/#dom-filereader-loading\nFileReader.LOADING = FileReader.prototype.LOADING = 1\n// https://w3c.github.io/FileAPI/#dom-filereader-done\nFileReader.DONE = FileReader.prototype.DONE = 2\n\nObject.defineProperties(FileReader.prototype, {\n EMPTY: staticPropertyDescriptors,\n LOADING: staticPropertyDescriptors,\n DONE: staticPropertyDescriptors,\n readAsArrayBuffer: kEnumerableProperty,\n readAsBinaryString: kEnumerableProperty,\n readAsText: kEnumerableProperty,\n readAsDataURL: kEnumerableProperty,\n abort: kEnumerableProperty,\n readyState: kEnumerableProperty,\n result: kEnumerableProperty,\n error: kEnumerableProperty,\n onloadstart: kEnumerableProperty,\n onprogress: kEnumerableProperty,\n onload: kEnumerableProperty,\n onabort: kEnumerableProperty,\n onerror: kEnumerableProperty,\n onloadend: kEnumerableProperty,\n [Symbol.toStringTag]: {\n value: 'FileReader',\n writable: false,\n enumerable: false,\n configurable: true\n }\n})\n\nObject.defineProperties(FileReader, {\n EMPTY: staticPropertyDescriptors,\n LOADING: staticPropertyDescriptors,\n DONE: staticPropertyDescriptors\n})\n\nmodule.exports = {\n FileReader\n}\n","'use strict'\n\nconst { webidl } = require('../fetch/webidl')\n\nconst kState = Symbol('ProgressEvent state')\n\n/**\n * @see https://xhr.spec.whatwg.org/#progressevent\n */\nclass ProgressEvent extends Event {\n constructor (type, eventInitDict = {}) {\n type = webidl.converters.DOMString(type)\n eventInitDict = webidl.converters.ProgressEventInit(eventInitDict ?? {})\n\n super(type, eventInitDict)\n\n this[kState] = {\n lengthComputable: eventInitDict.lengthComputable,\n loaded: eventInitDict.loaded,\n total: eventInitDict.total\n }\n }\n\n get lengthComputable () {\n webidl.brandCheck(this, ProgressEvent)\n\n return this[kState].lengthComputable\n }\n\n get loaded () {\n webidl.brandCheck(this, ProgressEvent)\n\n return this[kState].loaded\n }\n\n get total () {\n webidl.brandCheck(this, ProgressEvent)\n\n return this[kState].total\n }\n}\n\nwebidl.converters.ProgressEventInit = webidl.dictionaryConverter([\n {\n key: 'lengthComputable',\n converter: webidl.converters.boolean,\n defaultValue: false\n },\n {\n key: 'loaded',\n converter: webidl.converters['unsigned long long'],\n defaultValue: 0\n },\n {\n key: 'total',\n converter: webidl.converters['unsigned long long'],\n defaultValue: 0\n },\n {\n key: 'bubbles',\n converter: webidl.converters.boolean,\n defaultValue: false\n },\n {\n key: 'cancelable',\n converter: webidl.converters.boolean,\n defaultValue: false\n },\n {\n key: 'composed',\n converter: webidl.converters.boolean,\n defaultValue: false\n }\n])\n\nmodule.exports = {\n ProgressEvent\n}\n","'use strict'\n\nmodule.exports = {\n kState: Symbol('FileReader state'),\n kResult: Symbol('FileReader result'),\n kError: Symbol('FileReader error'),\n kLastProgressEventFired: Symbol('FileReader last progress event fired timestamp'),\n kEvents: Symbol('FileReader events'),\n kAborted: Symbol('FileReader aborted')\n}\n","'use strict'\n\nconst {\n kState,\n kError,\n kResult,\n kAborted,\n kLastProgressEventFired\n} = require('./symbols')\nconst { ProgressEvent } = require('./progressevent')\nconst { getEncoding } = require('./encoding')\nconst { DOMException } = require('../fetch/constants')\nconst { serializeAMimeType, parseMIMEType } = require('../fetch/dataURL')\nconst { types } = require('util')\nconst { StringDecoder } = require('string_decoder')\nconst { btoa } = require('buffer')\n\n/** @type {PropertyDescriptor} */\nconst staticPropertyDescriptors = {\n enumerable: true,\n writable: false,\n configurable: false\n}\n\n/**\n * @see https://w3c.github.io/FileAPI/#readOperation\n * @param {import('./filereader').FileReader} fr\n * @param {import('buffer').Blob} blob\n * @param {string} type\n * @param {string?} encodingName\n */\nfunction readOperation (fr, blob, type, encodingName) {\n // 1. If fr’s state is \"loading\", throw an InvalidStateError\n // DOMException.\n if (fr[kState] === 'loading') {\n throw new DOMException('Invalid state', 'InvalidStateError')\n }\n\n // 2. Set fr’s state to \"loading\".\n fr[kState] = 'loading'\n\n // 3. Set fr’s result to null.\n fr[kResult] = null\n\n // 4. Set fr’s error to null.\n fr[kError] = null\n\n // 5. Let stream be the result of calling get stream on blob.\n /** @type {import('stream/web').ReadableStream} */\n const stream = blob.stream()\n\n // 6. Let reader be the result of getting a reader from stream.\n const reader = stream.getReader()\n\n // 7. Let bytes be an empty byte sequence.\n /** @type {Uint8Array[]} */\n const bytes = []\n\n // 8. Let chunkPromise be the result of reading a chunk from\n // stream with reader.\n let chunkPromise = reader.read()\n\n // 9. Let isFirstChunk be true.\n let isFirstChunk = true\n\n // 10. In parallel, while true:\n // Note: \"In parallel\" just means non-blocking\n // Note 2: readOperation itself cannot be async as double\n // reading the body would then reject the promise, instead\n // of throwing an error.\n ;(async () => {\n while (!fr[kAborted]) {\n // 1. Wait for chunkPromise to be fulfilled or rejected.\n try {\n const { done, value } = await chunkPromise\n\n // 2. If chunkPromise is fulfilled, and isFirstChunk is\n // true, queue a task to fire a progress event called\n // loadstart at fr.\n if (isFirstChunk && !fr[kAborted]) {\n queueMicrotask(() => {\n fireAProgressEvent('loadstart', fr)\n })\n }\n\n // 3. Set isFirstChunk to false.\n isFirstChunk = false\n\n // 4. If chunkPromise is fulfilled with an object whose\n // done property is false and whose value property is\n // a Uint8Array object, run these steps:\n if (!done && types.isUint8Array(value)) {\n // 1. Let bs be the byte sequence represented by the\n // Uint8Array object.\n\n // 2. Append bs to bytes.\n bytes.push(value)\n\n // 3. If roughly 50ms have passed since these steps\n // were last invoked, queue a task to fire a\n // progress event called progress at fr.\n if (\n (\n fr[kLastProgressEventFired] === undefined ||\n Date.now() - fr[kLastProgressEventFired] >= 50\n ) &&\n !fr[kAborted]\n ) {\n fr[kLastProgressEventFired] = Date.now()\n queueMicrotask(() => {\n fireAProgressEvent('progress', fr)\n })\n }\n\n // 4. Set chunkPromise to the result of reading a\n // chunk from stream with reader.\n chunkPromise = reader.read()\n } else if (done) {\n // 5. Otherwise, if chunkPromise is fulfilled with an\n // object whose done property is true, queue a task\n // to run the following steps and abort this algorithm:\n queueMicrotask(() => {\n // 1. Set fr’s state to \"done\".\n fr[kState] = 'done'\n\n // 2. Let result be the result of package data given\n // bytes, type, blob’s type, and encodingName.\n try {\n const result = packageData(bytes, type, blob.type, encodingName)\n\n // 4. Else:\n\n if (fr[kAborted]) {\n return\n }\n\n // 1. Set fr’s result to result.\n fr[kResult] = result\n\n // 2. Fire a progress event called load at the fr.\n fireAProgressEvent('load', fr)\n } catch (error) {\n // 3. If package data threw an exception error:\n\n // 1. Set fr’s error to error.\n fr[kError] = error\n\n // 2. Fire a progress event called error at fr.\n fireAProgressEvent('error', fr)\n }\n\n // 5. If fr’s state is not \"loading\", fire a progress\n // event called loadend at the fr.\n if (fr[kState] !== 'loading') {\n fireAProgressEvent('loadend', fr)\n }\n })\n\n break\n }\n } catch (error) {\n if (fr[kAborted]) {\n return\n }\n\n // 6. Otherwise, if chunkPromise is rejected with an\n // error error, queue a task to run the following\n // steps and abort this algorithm:\n queueMicrotask(() => {\n // 1. Set fr’s state to \"done\".\n fr[kState] = 'done'\n\n // 2. Set fr’s error to error.\n fr[kError] = error\n\n // 3. Fire a progress event called error at fr.\n fireAProgressEvent('error', fr)\n\n // 4. If fr’s state is not \"loading\", fire a progress\n // event called loadend at fr.\n if (fr[kState] !== 'loading') {\n fireAProgressEvent('loadend', fr)\n }\n })\n\n break\n }\n }\n })()\n}\n\n/**\n * @see https://w3c.github.io/FileAPI/#fire-a-progress-event\n * @see https://dom.spec.whatwg.org/#concept-event-fire\n * @param {string} e The name of the event\n * @param {import('./filereader').FileReader} reader\n */\nfunction fireAProgressEvent (e, reader) {\n // The progress event e does not bubble. e.bubbles must be false\n // The progress event e is NOT cancelable. e.cancelable must be false\n const event = new ProgressEvent(e, {\n bubbles: false,\n cancelable: false\n })\n\n reader.dispatchEvent(event)\n}\n\n/**\n * @see https://w3c.github.io/FileAPI/#blob-package-data\n * @param {Uint8Array[]} bytes\n * @param {string} type\n * @param {string?} mimeType\n * @param {string?} encodingName\n */\nfunction packageData (bytes, type, mimeType, encodingName) {\n // 1. A Blob has an associated package data algorithm, given\n // bytes, a type, a optional mimeType, and a optional\n // encodingName, which switches on type and runs the\n // associated steps:\n\n switch (type) {\n case 'DataURL': {\n // 1. Return bytes as a DataURL [RFC2397] subject to\n // the considerations below:\n // * Use mimeType as part of the Data URL if it is\n // available in keeping with the Data URL\n // specification [RFC2397].\n // * If mimeType is not available return a Data URL\n // without a media-type. [RFC2397].\n\n // https://datatracker.ietf.org/doc/html/rfc2397#section-3\n // dataurl := \"data:\" [ mediatype ] [ \";base64\" ] \",\" data\n // mediatype := [ type \"/\" subtype ] *( \";\" parameter )\n // data := *urlchar\n // parameter := attribute \"=\" value\n let dataURL = 'data:'\n\n const parsed = parseMIMEType(mimeType || 'application/octet-stream')\n\n if (parsed !== 'failure') {\n dataURL += serializeAMimeType(parsed)\n }\n\n dataURL += ';base64,'\n\n const decoder = new StringDecoder('latin1')\n\n for (const chunk of bytes) {\n dataURL += btoa(decoder.write(chunk))\n }\n\n dataURL += btoa(decoder.end())\n\n return dataURL\n }\n case 'Text': {\n // 1. Let encoding be failure\n let encoding = 'failure'\n\n // 2. If the encodingName is present, set encoding to the\n // result of getting an encoding from encodingName.\n if (encodingName) {\n encoding = getEncoding(encodingName)\n }\n\n // 3. If encoding is failure, and mimeType is present:\n if (encoding === 'failure' && mimeType) {\n // 1. Let type be the result of parse a MIME type\n // given mimeType.\n const type = parseMIMEType(mimeType)\n\n // 2. If type is not failure, set encoding to the result\n // of getting an encoding from type’s parameters[\"charset\"].\n if (type !== 'failure') {\n encoding = getEncoding(type.parameters.get('charset'))\n }\n }\n\n // 4. If encoding is failure, then set encoding to UTF-8.\n if (encoding === 'failure') {\n encoding = 'UTF-8'\n }\n\n // 5. Decode bytes using fallback encoding encoding, and\n // return the result.\n return decode(bytes, encoding)\n }\n case 'ArrayBuffer': {\n // Return a new ArrayBuffer whose contents are bytes.\n const sequence = combineByteSequences(bytes)\n\n return sequence.buffer\n }\n case 'BinaryString': {\n // Return bytes as a binary string, in which every byte\n // is represented by a code unit of equal value [0..255].\n let binaryString = ''\n\n const decoder = new StringDecoder('latin1')\n\n for (const chunk of bytes) {\n binaryString += decoder.write(chunk)\n }\n\n binaryString += decoder.end()\n\n return binaryString\n }\n }\n}\n\n/**\n * @see https://encoding.spec.whatwg.org/#decode\n * @param {Uint8Array[]} ioQueue\n * @param {string} encoding\n */\nfunction decode (ioQueue, encoding) {\n const bytes = combineByteSequences(ioQueue)\n\n // 1. Let BOMEncoding be the result of BOM sniffing ioQueue.\n const BOMEncoding = BOMSniffing(bytes)\n\n let slice = 0\n\n // 2. If BOMEncoding is non-null:\n if (BOMEncoding !== null) {\n // 1. Set encoding to BOMEncoding.\n encoding = BOMEncoding\n\n // 2. Read three bytes from ioQueue, if BOMEncoding is\n // UTF-8; otherwise read two bytes.\n // (Do nothing with those bytes.)\n slice = BOMEncoding === 'UTF-8' ? 3 : 2\n }\n\n // 3. Process a queue with an instance of encoding’s\n // decoder, ioQueue, output, and \"replacement\".\n\n // 4. Return output.\n\n const sliced = bytes.slice(slice)\n return new TextDecoder(encoding).decode(sliced)\n}\n\n/**\n * @see https://encoding.spec.whatwg.org/#bom-sniff\n * @param {Uint8Array} ioQueue\n */\nfunction BOMSniffing (ioQueue) {\n // 1. Let BOM be the result of peeking 3 bytes from ioQueue,\n // converted to a byte sequence.\n const [a, b, c] = ioQueue\n\n // 2. For each of the rows in the table below, starting with\n // the first one and going down, if BOM starts with the\n // bytes given in the first column, then return the\n // encoding given in the cell in the second column of that\n // row. Otherwise, return null.\n if (a === 0xEF && b === 0xBB && c === 0xBF) {\n return 'UTF-8'\n } else if (a === 0xFE && b === 0xFF) {\n return 'UTF-16BE'\n } else if (a === 0xFF && b === 0xFE) {\n return 'UTF-16LE'\n }\n\n return null\n}\n\n/**\n * @param {Uint8Array[]} sequences\n */\nfunction combineByteSequences (sequences) {\n const size = sequences.reduce((a, b) => {\n return a + b.byteLength\n }, 0)\n\n let offset = 0\n\n return sequences.reduce((a, b) => {\n a.set(b, offset)\n offset += b.byteLength\n return a\n }, new Uint8Array(size))\n}\n\nmodule.exports = {\n staticPropertyDescriptors,\n readOperation,\n fireAProgressEvent\n}\n","'use strict'\n\n// We include a version number for the Dispatcher API. In case of breaking changes,\n// this version number must be increased to avoid conflicts.\nconst globalDispatcher = Symbol.for('undici.globalDispatcher.1')\nconst { InvalidArgumentError } = require('./core/errors')\nconst Agent = require('./agent')\n\nif (getGlobalDispatcher() === undefined) {\n setGlobalDispatcher(new Agent())\n}\n\nfunction setGlobalDispatcher (agent) {\n if (!agent || typeof agent.dispatch !== 'function') {\n throw new InvalidArgumentError('Argument agent must implement Agent')\n }\n Object.defineProperty(globalThis, globalDispatcher, {\n value: agent,\n writable: true,\n enumerable: false,\n configurable: false\n })\n}\n\nfunction getGlobalDispatcher () {\n return globalThis[globalDispatcher]\n}\n\nmodule.exports = {\n setGlobalDispatcher,\n getGlobalDispatcher\n}\n","'use strict'\n\nmodule.exports = class DecoratorHandler {\n constructor (handler) {\n this.handler = handler\n }\n\n onConnect (...args) {\n return this.handler.onConnect(...args)\n }\n\n onError (...args) {\n return this.handler.onError(...args)\n }\n\n onUpgrade (...args) {\n return this.handler.onUpgrade(...args)\n }\n\n onHeaders (...args) {\n return this.handler.onHeaders(...args)\n }\n\n onData (...args) {\n return this.handler.onData(...args)\n }\n\n onComplete (...args) {\n return this.handler.onComplete(...args)\n }\n\n onBodySent (...args) {\n return this.handler.onBodySent(...args)\n }\n}\n","'use strict'\n\nconst util = require('../core/util')\nconst { kBodyUsed } = require('../core/symbols')\nconst assert = require('assert')\nconst { InvalidArgumentError } = require('../core/errors')\nconst EE = require('events')\n\nconst redirectableStatusCodes = [300, 301, 302, 303, 307, 308]\n\nconst kBody = Symbol('body')\n\nclass BodyAsyncIterable {\n constructor (body) {\n this[kBody] = body\n this[kBodyUsed] = false\n }\n\n async * [Symbol.asyncIterator] () {\n assert(!this[kBodyUsed], 'disturbed')\n this[kBodyUsed] = true\n yield * this[kBody]\n }\n}\n\nclass RedirectHandler {\n constructor (dispatch, maxRedirections, opts, handler) {\n if (maxRedirections != null && (!Number.isInteger(maxRedirections) || maxRedirections < 0)) {\n throw new InvalidArgumentError('maxRedirections must be a positive number')\n }\n\n util.validateHandler(handler, opts.method, opts.upgrade)\n\n this.dispatch = dispatch\n this.location = null\n this.abort = null\n this.opts = { ...opts, maxRedirections: 0 } // opts must be a copy\n this.maxRedirections = maxRedirections\n this.handler = handler\n this.history = []\n\n if (util.isStream(this.opts.body)) {\n // TODO (fix): Provide some way for the user to cache the file to e.g. /tmp\n // so that it can be dispatched again?\n // TODO (fix): Do we need 100-expect support to provide a way to do this properly?\n if (util.bodyLength(this.opts.body) === 0) {\n this.opts.body\n .on('data', function () {\n assert(false)\n })\n }\n\n if (typeof this.opts.body.readableDidRead !== 'boolean') {\n this.opts.body[kBodyUsed] = false\n EE.prototype.on.call(this.opts.body, 'data', function () {\n this[kBodyUsed] = true\n })\n }\n } else if (this.opts.body && typeof this.opts.body.pipeTo === 'function') {\n // TODO (fix): We can't access ReadableStream internal state\n // to determine whether or not it has been disturbed. This is just\n // a workaround.\n this.opts.body = new BodyAsyncIterable(this.opts.body)\n } else if (\n this.opts.body &&\n typeof this.opts.body !== 'string' &&\n !ArrayBuffer.isView(this.opts.body) &&\n util.isIterable(this.opts.body)\n ) {\n // TODO: Should we allow re-using iterable if !this.opts.idempotent\n // or through some other flag?\n this.opts.body = new BodyAsyncIterable(this.opts.body)\n }\n }\n\n onConnect (abort) {\n this.abort = abort\n this.handler.onConnect(abort, { history: this.history })\n }\n\n onUpgrade (statusCode, headers, socket) {\n this.handler.onUpgrade(statusCode, headers, socket)\n }\n\n onError (error) {\n this.handler.onError(error)\n }\n\n onHeaders (statusCode, headers, resume, statusText) {\n this.location = this.history.length >= this.maxRedirections || util.isDisturbed(this.opts.body)\n ? null\n : parseLocation(statusCode, headers)\n\n if (this.opts.origin) {\n this.history.push(new URL(this.opts.path, this.opts.origin))\n }\n\n if (!this.location) {\n return this.handler.onHeaders(statusCode, headers, resume, statusText)\n }\n\n const { origin, pathname, search } = util.parseURL(new URL(this.location, this.opts.origin && new URL(this.opts.path, this.opts.origin)))\n const path = search ? `${pathname}${search}` : pathname\n\n // Remove headers referring to the original URL.\n // By default it is Host only, unless it's a 303 (see below), which removes also all Content-* headers.\n // https://tools.ietf.org/html/rfc7231#section-6.4\n this.opts.headers = cleanRequestHeaders(this.opts.headers, statusCode === 303, this.opts.origin !== origin)\n this.opts.path = path\n this.opts.origin = origin\n this.opts.maxRedirections = 0\n this.opts.query = null\n\n // https://tools.ietf.org/html/rfc7231#section-6.4.4\n // In case of HTTP 303, always replace method to be either HEAD or GET\n if (statusCode === 303 && this.opts.method !== 'HEAD') {\n this.opts.method = 'GET'\n this.opts.body = null\n }\n }\n\n onData (chunk) {\n if (this.location) {\n /*\n https://tools.ietf.org/html/rfc7231#section-6.4\n\n TLDR: undici always ignores 3xx response bodies.\n\n Redirection is used to serve the requested resource from another URL, so it is assumes that\n no body is generated (and thus can be ignored). Even though generating a body is not prohibited.\n\n For status 301, 302, 303, 307 and 308 (the latter from RFC 7238), the specs mention that the body usually\n (which means it's optional and not mandated) contain just an hyperlink to the value of\n the Location response header, so the body can be ignored safely.\n\n For status 300, which is \"Multiple Choices\", the spec mentions both generating a Location\n response header AND a response body with the other possible location to follow.\n Since the spec explicitily chooses not to specify a format for such body and leave it to\n servers and browsers implementors, we ignore the body as there is no specified way to eventually parse it.\n */\n } else {\n return this.handler.onData(chunk)\n }\n }\n\n onComplete (trailers) {\n if (this.location) {\n /*\n https://tools.ietf.org/html/rfc7231#section-6.4\n\n TLDR: undici always ignores 3xx response trailers as they are not expected in case of redirections\n and neither are useful if present.\n\n See comment on onData method above for more detailed informations.\n */\n\n this.location = null\n this.abort = null\n\n this.dispatch(this.opts, this)\n } else {\n this.handler.onComplete(trailers)\n }\n }\n\n onBodySent (chunk) {\n if (this.handler.onBodySent) {\n this.handler.onBodySent(chunk)\n }\n }\n}\n\nfunction parseLocation (statusCode, headers) {\n if (redirectableStatusCodes.indexOf(statusCode) === -1) {\n return null\n }\n\n for (let i = 0; i < headers.length; i += 2) {\n if (headers[i].toString().toLowerCase() === 'location') {\n return headers[i + 1]\n }\n }\n}\n\n// https://tools.ietf.org/html/rfc7231#section-6.4.4\nfunction shouldRemoveHeader (header, removeContent, unknownOrigin) {\n if (header.length === 4) {\n return util.headerNameToString(header) === 'host'\n }\n if (removeContent && util.headerNameToString(header).startsWith('content-')) {\n return true\n }\n if (unknownOrigin && (header.length === 13 || header.length === 6 || header.length === 19)) {\n const name = util.headerNameToString(header)\n return name === 'authorization' || name === 'cookie' || name === 'proxy-authorization'\n }\n return false\n}\n\n// https://tools.ietf.org/html/rfc7231#section-6.4\nfunction cleanRequestHeaders (headers, removeContent, unknownOrigin) {\n const ret = []\n if (Array.isArray(headers)) {\n for (let i = 0; i < headers.length; i += 2) {\n if (!shouldRemoveHeader(headers[i], removeContent, unknownOrigin)) {\n ret.push(headers[i], headers[i + 1])\n }\n }\n } else if (headers && typeof headers === 'object') {\n for (const key of Object.keys(headers)) {\n if (!shouldRemoveHeader(key, removeContent, unknownOrigin)) {\n ret.push(key, headers[key])\n }\n }\n } else {\n assert(headers == null, 'headers must be an object or an array')\n }\n return ret\n}\n\nmodule.exports = RedirectHandler\n","const assert = require('assert')\n\nconst { kRetryHandlerDefaultRetry } = require('../core/symbols')\nconst { RequestRetryError } = require('../core/errors')\nconst { isDisturbed, parseHeaders, parseRangeHeader } = require('../core/util')\n\nfunction calculateRetryAfterHeader (retryAfter) {\n const current = Date.now()\n const diff = new Date(retryAfter).getTime() - current\n\n return diff\n}\n\nclass RetryHandler {\n constructor (opts, handlers) {\n const { retryOptions, ...dispatchOpts } = opts\n const {\n // Retry scoped\n retry: retryFn,\n maxRetries,\n maxTimeout,\n minTimeout,\n timeoutFactor,\n // Response scoped\n methods,\n errorCodes,\n retryAfter,\n statusCodes\n } = retryOptions ?? {}\n\n this.dispatch = handlers.dispatch\n this.handler = handlers.handler\n this.opts = dispatchOpts\n this.abort = null\n this.aborted = false\n this.retryOpts = {\n retry: retryFn ?? RetryHandler[kRetryHandlerDefaultRetry],\n retryAfter: retryAfter ?? true,\n maxTimeout: maxTimeout ?? 30 * 1000, // 30s,\n timeout: minTimeout ?? 500, // .5s\n timeoutFactor: timeoutFactor ?? 2,\n maxRetries: maxRetries ?? 5,\n // What errors we should retry\n methods: methods ?? ['GET', 'HEAD', 'OPTIONS', 'PUT', 'DELETE', 'TRACE'],\n // Indicates which errors to retry\n statusCodes: statusCodes ?? [500, 502, 503, 504, 429],\n // List of errors to retry\n errorCodes: errorCodes ?? [\n 'ECONNRESET',\n 'ECONNREFUSED',\n 'ENOTFOUND',\n 'ENETDOWN',\n 'ENETUNREACH',\n 'EHOSTDOWN',\n 'EHOSTUNREACH',\n 'EPIPE'\n ]\n }\n\n this.retryCount = 0\n this.start = 0\n this.end = null\n this.etag = null\n this.resume = null\n\n // Handle possible onConnect duplication\n this.handler.onConnect(reason => {\n this.aborted = true\n if (this.abort) {\n this.abort(reason)\n } else {\n this.reason = reason\n }\n })\n }\n\n onRequestSent () {\n if (this.handler.onRequestSent) {\n this.handler.onRequestSent()\n }\n }\n\n onUpgrade (statusCode, headers, socket) {\n if (this.handler.onUpgrade) {\n this.handler.onUpgrade(statusCode, headers, socket)\n }\n }\n\n onConnect (abort) {\n if (this.aborted) {\n abort(this.reason)\n } else {\n this.abort = abort\n }\n }\n\n onBodySent (chunk) {\n if (this.handler.onBodySent) return this.handler.onBodySent(chunk)\n }\n\n static [kRetryHandlerDefaultRetry] (err, { state, opts }, cb) {\n const { statusCode, code, headers } = err\n const { method, retryOptions } = opts\n const {\n maxRetries,\n timeout,\n maxTimeout,\n timeoutFactor,\n statusCodes,\n errorCodes,\n methods\n } = retryOptions\n let { counter, currentTimeout } = state\n\n currentTimeout =\n currentTimeout != null && currentTimeout > 0 ? currentTimeout : timeout\n\n // Any code that is not a Undici's originated and allowed to retry\n if (\n code &&\n code !== 'UND_ERR_REQ_RETRY' &&\n code !== 'UND_ERR_SOCKET' &&\n !errorCodes.includes(code)\n ) {\n cb(err)\n return\n }\n\n // If a set of method are provided and the current method is not in the list\n if (Array.isArray(methods) && !methods.includes(method)) {\n cb(err)\n return\n }\n\n // If a set of status code are provided and the current status code is not in the list\n if (\n statusCode != null &&\n Array.isArray(statusCodes) &&\n !statusCodes.includes(statusCode)\n ) {\n cb(err)\n return\n }\n\n // If we reached the max number of retries\n if (counter > maxRetries) {\n cb(err)\n return\n }\n\n let retryAfterHeader = headers != null && headers['retry-after']\n if (retryAfterHeader) {\n retryAfterHeader = Number(retryAfterHeader)\n retryAfterHeader = isNaN(retryAfterHeader)\n ? calculateRetryAfterHeader(retryAfterHeader)\n : retryAfterHeader * 1e3 // Retry-After is in seconds\n }\n\n const retryTimeout =\n retryAfterHeader > 0\n ? Math.min(retryAfterHeader, maxTimeout)\n : Math.min(currentTimeout * timeoutFactor ** counter, maxTimeout)\n\n state.currentTimeout = retryTimeout\n\n setTimeout(() => cb(null), retryTimeout)\n }\n\n onHeaders (statusCode, rawHeaders, resume, statusMessage) {\n const headers = parseHeaders(rawHeaders)\n\n this.retryCount += 1\n\n if (statusCode >= 300) {\n this.abort(\n new RequestRetryError('Request failed', statusCode, {\n headers,\n count: this.retryCount\n })\n )\n return false\n }\n\n // Checkpoint for resume from where we left it\n if (this.resume != null) {\n this.resume = null\n\n if (statusCode !== 206) {\n return true\n }\n\n const contentRange = parseRangeHeader(headers['content-range'])\n // If no content range\n if (!contentRange) {\n this.abort(\n new RequestRetryError('Content-Range mismatch', statusCode, {\n headers,\n count: this.retryCount\n })\n )\n return false\n }\n\n // Let's start with a weak etag check\n if (this.etag != null && this.etag !== headers.etag) {\n this.abort(\n new RequestRetryError('ETag mismatch', statusCode, {\n headers,\n count: this.retryCount\n })\n )\n return false\n }\n\n const { start, size, end = size } = contentRange\n\n assert(this.start === start, 'content-range mismatch')\n assert(this.end == null || this.end === end, 'content-range mismatch')\n\n this.resume = resume\n return true\n }\n\n if (this.end == null) {\n if (statusCode === 206) {\n // First time we receive 206\n const range = parseRangeHeader(headers['content-range'])\n\n if (range == null) {\n return this.handler.onHeaders(\n statusCode,\n rawHeaders,\n resume,\n statusMessage\n )\n }\n\n const { start, size, end = size } = range\n\n assert(\n start != null && Number.isFinite(start) && this.start !== start,\n 'content-range mismatch'\n )\n assert(Number.isFinite(start))\n assert(\n end != null && Number.isFinite(end) && this.end !== end,\n 'invalid content-length'\n )\n\n this.start = start\n this.end = end\n }\n\n // We make our best to checkpoint the body for further range headers\n if (this.end == null) {\n const contentLength = headers['content-length']\n this.end = contentLength != null ? Number(contentLength) : null\n }\n\n assert(Number.isFinite(this.start))\n assert(\n this.end == null || Number.isFinite(this.end),\n 'invalid content-length'\n )\n\n this.resume = resume\n this.etag = headers.etag != null ? headers.etag : null\n\n return this.handler.onHeaders(\n statusCode,\n rawHeaders,\n resume,\n statusMessage\n )\n }\n\n const err = new RequestRetryError('Request failed', statusCode, {\n headers,\n count: this.retryCount\n })\n\n this.abort(err)\n\n return false\n }\n\n onData (chunk) {\n this.start += chunk.length\n\n return this.handler.onData(chunk)\n }\n\n onComplete (rawTrailers) {\n this.retryCount = 0\n return this.handler.onComplete(rawTrailers)\n }\n\n onError (err) {\n if (this.aborted || isDisturbed(this.opts.body)) {\n return this.handler.onError(err)\n }\n\n this.retryOpts.retry(\n err,\n {\n state: { counter: this.retryCount++, currentTimeout: this.retryAfter },\n opts: { retryOptions: this.retryOpts, ...this.opts }\n },\n onRetry.bind(this)\n )\n\n function onRetry (err) {\n if (err != null || this.aborted || isDisturbed(this.opts.body)) {\n return this.handler.onError(err)\n }\n\n if (this.start !== 0) {\n this.opts = {\n ...this.opts,\n headers: {\n ...this.opts.headers,\n range: `bytes=${this.start}-${this.end ?? ''}`\n }\n }\n }\n\n try {\n this.dispatch(this.opts, this)\n } catch (err) {\n this.handler.onError(err)\n }\n }\n }\n}\n\nmodule.exports = RetryHandler\n","'use strict'\n\nconst RedirectHandler = require('../handler/RedirectHandler')\n\nfunction createRedirectInterceptor ({ maxRedirections: defaultMaxRedirections }) {\n return (dispatch) => {\n return function Intercept (opts, handler) {\n const { maxRedirections = defaultMaxRedirections } = opts\n\n if (!maxRedirections) {\n return dispatch(opts, handler)\n }\n\n const redirectHandler = new RedirectHandler(dispatch, maxRedirections, opts, handler)\n opts = { ...opts, maxRedirections: 0 } // Stop sub dispatcher from also redirecting.\n return dispatch(opts, redirectHandler)\n }\n }\n}\n\nmodule.exports = createRedirectInterceptor\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.SPECIAL_HEADERS = exports.HEADER_STATE = exports.MINOR = exports.MAJOR = exports.CONNECTION_TOKEN_CHARS = exports.HEADER_CHARS = exports.TOKEN = exports.STRICT_TOKEN = exports.HEX = exports.URL_CHAR = exports.STRICT_URL_CHAR = exports.USERINFO_CHARS = exports.MARK = exports.ALPHANUM = exports.NUM = exports.HEX_MAP = exports.NUM_MAP = exports.ALPHA = exports.FINISH = exports.H_METHOD_MAP = exports.METHOD_MAP = exports.METHODS_RTSP = exports.METHODS_ICE = exports.METHODS_HTTP = exports.METHODS = exports.LENIENT_FLAGS = exports.FLAGS = exports.TYPE = exports.ERROR = void 0;\nconst utils_1 = require(\"./utils\");\n// C headers\nvar ERROR;\n(function (ERROR) {\n ERROR[ERROR[\"OK\"] = 0] = \"OK\";\n ERROR[ERROR[\"INTERNAL\"] = 1] = \"INTERNAL\";\n ERROR[ERROR[\"STRICT\"] = 2] = \"STRICT\";\n ERROR[ERROR[\"LF_EXPECTED\"] = 3] = \"LF_EXPECTED\";\n ERROR[ERROR[\"UNEXPECTED_CONTENT_LENGTH\"] = 4] = \"UNEXPECTED_CONTENT_LENGTH\";\n ERROR[ERROR[\"CLOSED_CONNECTION\"] = 5] = \"CLOSED_CONNECTION\";\n ERROR[ERROR[\"INVALID_METHOD\"] = 6] = \"INVALID_METHOD\";\n ERROR[ERROR[\"INVALID_URL\"] = 7] = \"INVALID_URL\";\n ERROR[ERROR[\"INVALID_CONSTANT\"] = 8] = \"INVALID_CONSTANT\";\n ERROR[ERROR[\"INVALID_VERSION\"] = 9] = \"INVALID_VERSION\";\n ERROR[ERROR[\"INVALID_HEADER_TOKEN\"] = 10] = \"INVALID_HEADER_TOKEN\";\n ERROR[ERROR[\"INVALID_CONTENT_LENGTH\"] = 11] = \"INVALID_CONTENT_LENGTH\";\n ERROR[ERROR[\"INVALID_CHUNK_SIZE\"] = 12] = \"INVALID_CHUNK_SIZE\";\n ERROR[ERROR[\"INVALID_STATUS\"] = 13] = \"INVALID_STATUS\";\n ERROR[ERROR[\"INVALID_EOF_STATE\"] = 14] = \"INVALID_EOF_STATE\";\n ERROR[ERROR[\"INVALID_TRANSFER_ENCODING\"] = 15] = \"INVALID_TRANSFER_ENCODING\";\n ERROR[ERROR[\"CB_MESSAGE_BEGIN\"] = 16] = \"CB_MESSAGE_BEGIN\";\n ERROR[ERROR[\"CB_HEADERS_COMPLETE\"] = 17] = \"CB_HEADERS_COMPLETE\";\n ERROR[ERROR[\"CB_MESSAGE_COMPLETE\"] = 18] = \"CB_MESSAGE_COMPLETE\";\n ERROR[ERROR[\"CB_CHUNK_HEADER\"] = 19] = \"CB_CHUNK_HEADER\";\n ERROR[ERROR[\"CB_CHUNK_COMPLETE\"] = 20] = \"CB_CHUNK_COMPLETE\";\n ERROR[ERROR[\"PAUSED\"] = 21] = \"PAUSED\";\n ERROR[ERROR[\"PAUSED_UPGRADE\"] = 22] = \"PAUSED_UPGRADE\";\n ERROR[ERROR[\"PAUSED_H2_UPGRADE\"] = 23] = \"PAUSED_H2_UPGRADE\";\n ERROR[ERROR[\"USER\"] = 24] = \"USER\";\n})(ERROR = exports.ERROR || (exports.ERROR = {}));\nvar TYPE;\n(function (TYPE) {\n TYPE[TYPE[\"BOTH\"] = 0] = \"BOTH\";\n TYPE[TYPE[\"REQUEST\"] = 1] = \"REQUEST\";\n TYPE[TYPE[\"RESPONSE\"] = 2] = \"RESPONSE\";\n})(TYPE = exports.TYPE || (exports.TYPE = {}));\nvar FLAGS;\n(function (FLAGS) {\n FLAGS[FLAGS[\"CONNECTION_KEEP_ALIVE\"] = 1] = \"CONNECTION_KEEP_ALIVE\";\n FLAGS[FLAGS[\"CONNECTION_CLOSE\"] = 2] = \"CONNECTION_CLOSE\";\n FLAGS[FLAGS[\"CONNECTION_UPGRADE\"] = 4] = \"CONNECTION_UPGRADE\";\n FLAGS[FLAGS[\"CHUNKED\"] = 8] = \"CHUNKED\";\n FLAGS[FLAGS[\"UPGRADE\"] = 16] = \"UPGRADE\";\n FLAGS[FLAGS[\"CONTENT_LENGTH\"] = 32] = \"CONTENT_LENGTH\";\n FLAGS[FLAGS[\"SKIPBODY\"] = 64] = \"SKIPBODY\";\n FLAGS[FLAGS[\"TRAILING\"] = 128] = \"TRAILING\";\n // 1 << 8 is unused\n FLAGS[FLAGS[\"TRANSFER_ENCODING\"] = 512] = \"TRANSFER_ENCODING\";\n})(FLAGS = exports.FLAGS || (exports.FLAGS = {}));\nvar LENIENT_FLAGS;\n(function (LENIENT_FLAGS) {\n LENIENT_FLAGS[LENIENT_FLAGS[\"HEADERS\"] = 1] = \"HEADERS\";\n LENIENT_FLAGS[LENIENT_FLAGS[\"CHUNKED_LENGTH\"] = 2] = \"CHUNKED_LENGTH\";\n LENIENT_FLAGS[LENIENT_FLAGS[\"KEEP_ALIVE\"] = 4] = \"KEEP_ALIVE\";\n})(LENIENT_FLAGS = exports.LENIENT_FLAGS || (exports.LENIENT_FLAGS = {}));\nvar METHODS;\n(function (METHODS) {\n METHODS[METHODS[\"DELETE\"] = 0] = \"DELETE\";\n METHODS[METHODS[\"GET\"] = 1] = \"GET\";\n METHODS[METHODS[\"HEAD\"] = 2] = \"HEAD\";\n METHODS[METHODS[\"POST\"] = 3] = \"POST\";\n METHODS[METHODS[\"PUT\"] = 4] = \"PUT\";\n /* pathological */\n METHODS[METHODS[\"CONNECT\"] = 5] = \"CONNECT\";\n METHODS[METHODS[\"OPTIONS\"] = 6] = \"OPTIONS\";\n METHODS[METHODS[\"TRACE\"] = 7] = \"TRACE\";\n /* WebDAV */\n METHODS[METHODS[\"COPY\"] = 8] = \"COPY\";\n METHODS[METHODS[\"LOCK\"] = 9] = \"LOCK\";\n METHODS[METHODS[\"MKCOL\"] = 10] = \"MKCOL\";\n METHODS[METHODS[\"MOVE\"] = 11] = \"MOVE\";\n METHODS[METHODS[\"PROPFIND\"] = 12] = \"PROPFIND\";\n METHODS[METHODS[\"PROPPATCH\"] = 13] = \"PROPPATCH\";\n METHODS[METHODS[\"SEARCH\"] = 14] = \"SEARCH\";\n METHODS[METHODS[\"UNLOCK\"] = 15] = \"UNLOCK\";\n METHODS[METHODS[\"BIND\"] = 16] = \"BIND\";\n METHODS[METHODS[\"REBIND\"] = 17] = \"REBIND\";\n METHODS[METHODS[\"UNBIND\"] = 18] = \"UNBIND\";\n METHODS[METHODS[\"ACL\"] = 19] = \"ACL\";\n /* subversion */\n METHODS[METHODS[\"REPORT\"] = 20] = \"REPORT\";\n METHODS[METHODS[\"MKACTIVITY\"] = 21] = \"MKACTIVITY\";\n METHODS[METHODS[\"CHECKOUT\"] = 22] = \"CHECKOUT\";\n METHODS[METHODS[\"MERGE\"] = 23] = \"MERGE\";\n /* upnp */\n METHODS[METHODS[\"M-SEARCH\"] = 24] = \"M-SEARCH\";\n METHODS[METHODS[\"NOTIFY\"] = 25] = \"NOTIFY\";\n METHODS[METHODS[\"SUBSCRIBE\"] = 26] = \"SUBSCRIBE\";\n METHODS[METHODS[\"UNSUBSCRIBE\"] = 27] = \"UNSUBSCRIBE\";\n /* RFC-5789 */\n METHODS[METHODS[\"PATCH\"] = 28] = \"PATCH\";\n METHODS[METHODS[\"PURGE\"] = 29] = \"PURGE\";\n /* CalDAV */\n METHODS[METHODS[\"MKCALENDAR\"] = 30] = \"MKCALENDAR\";\n /* RFC-2068, section 19.6.1.2 */\n METHODS[METHODS[\"LINK\"] = 31] = \"LINK\";\n METHODS[METHODS[\"UNLINK\"] = 32] = \"UNLINK\";\n /* icecast */\n METHODS[METHODS[\"SOURCE\"] = 33] = \"SOURCE\";\n /* RFC-7540, section 11.6 */\n METHODS[METHODS[\"PRI\"] = 34] = \"PRI\";\n /* RFC-2326 RTSP */\n METHODS[METHODS[\"DESCRIBE\"] = 35] = \"DESCRIBE\";\n METHODS[METHODS[\"ANNOUNCE\"] = 36] = \"ANNOUNCE\";\n METHODS[METHODS[\"SETUP\"] = 37] = \"SETUP\";\n METHODS[METHODS[\"PLAY\"] = 38] = \"PLAY\";\n METHODS[METHODS[\"PAUSE\"] = 39] = \"PAUSE\";\n METHODS[METHODS[\"TEARDOWN\"] = 40] = \"TEARDOWN\";\n METHODS[METHODS[\"GET_PARAMETER\"] = 41] = \"GET_PARAMETER\";\n METHODS[METHODS[\"SET_PARAMETER\"] = 42] = \"SET_PARAMETER\";\n METHODS[METHODS[\"REDIRECT\"] = 43] = \"REDIRECT\";\n METHODS[METHODS[\"RECORD\"] = 44] = \"RECORD\";\n /* RAOP */\n METHODS[METHODS[\"FLUSH\"] = 45] = \"FLUSH\";\n})(METHODS = exports.METHODS || (exports.METHODS = {}));\nexports.METHODS_HTTP = [\n METHODS.DELETE,\n METHODS.GET,\n METHODS.HEAD,\n METHODS.POST,\n METHODS.PUT,\n METHODS.CONNECT,\n METHODS.OPTIONS,\n METHODS.TRACE,\n METHODS.COPY,\n METHODS.LOCK,\n METHODS.MKCOL,\n METHODS.MOVE,\n METHODS.PROPFIND,\n METHODS.PROPPATCH,\n METHODS.SEARCH,\n METHODS.UNLOCK,\n METHODS.BIND,\n METHODS.REBIND,\n METHODS.UNBIND,\n METHODS.ACL,\n METHODS.REPORT,\n METHODS.MKACTIVITY,\n METHODS.CHECKOUT,\n METHODS.MERGE,\n METHODS['M-SEARCH'],\n METHODS.NOTIFY,\n METHODS.SUBSCRIBE,\n METHODS.UNSUBSCRIBE,\n METHODS.PATCH,\n METHODS.PURGE,\n METHODS.MKCALENDAR,\n METHODS.LINK,\n METHODS.UNLINK,\n METHODS.PRI,\n // TODO(indutny): should we allow it with HTTP?\n METHODS.SOURCE,\n];\nexports.METHODS_ICE = [\n METHODS.SOURCE,\n];\nexports.METHODS_RTSP = [\n METHODS.OPTIONS,\n METHODS.DESCRIBE,\n METHODS.ANNOUNCE,\n METHODS.SETUP,\n METHODS.PLAY,\n METHODS.PAUSE,\n METHODS.TEARDOWN,\n METHODS.GET_PARAMETER,\n METHODS.SET_PARAMETER,\n METHODS.REDIRECT,\n METHODS.RECORD,\n METHODS.FLUSH,\n // For AirPlay\n METHODS.GET,\n METHODS.POST,\n];\nexports.METHOD_MAP = utils_1.enumToMap(METHODS);\nexports.H_METHOD_MAP = {};\nObject.keys(exports.METHOD_MAP).forEach((key) => {\n if (/^H/.test(key)) {\n exports.H_METHOD_MAP[key] = exports.METHOD_MAP[key];\n }\n});\nvar FINISH;\n(function (FINISH) {\n FINISH[FINISH[\"SAFE\"] = 0] = \"SAFE\";\n FINISH[FINISH[\"SAFE_WITH_CB\"] = 1] = \"SAFE_WITH_CB\";\n FINISH[FINISH[\"UNSAFE\"] = 2] = \"UNSAFE\";\n})(FINISH = exports.FINISH || (exports.FINISH = {}));\nexports.ALPHA = [];\nfor (let i = 'A'.charCodeAt(0); i <= 'Z'.charCodeAt(0); i++) {\n // Upper case\n exports.ALPHA.push(String.fromCharCode(i));\n // Lower case\n exports.ALPHA.push(String.fromCharCode(i + 0x20));\n}\nexports.NUM_MAP = {\n 0: 0, 1: 1, 2: 2, 3: 3, 4: 4,\n 5: 5, 6: 6, 7: 7, 8: 8, 9: 9,\n};\nexports.HEX_MAP = {\n 0: 0, 1: 1, 2: 2, 3: 3, 4: 4,\n 5: 5, 6: 6, 7: 7, 8: 8, 9: 9,\n A: 0XA, B: 0XB, C: 0XC, D: 0XD, E: 0XE, F: 0XF,\n a: 0xa, b: 0xb, c: 0xc, d: 0xd, e: 0xe, f: 0xf,\n};\nexports.NUM = [\n '0', '1', '2', '3', '4', '5', '6', '7', '8', '9',\n];\nexports.ALPHANUM = exports.ALPHA.concat(exports.NUM);\nexports.MARK = ['-', '_', '.', '!', '~', '*', '\\'', '(', ')'];\nexports.USERINFO_CHARS = exports.ALPHANUM\n .concat(exports.MARK)\n .concat(['%', ';', ':', '&', '=', '+', '$', ',']);\n// TODO(indutny): use RFC\nexports.STRICT_URL_CHAR = [\n '!', '\"', '$', '%', '&', '\\'',\n '(', ')', '*', '+', ',', '-', '.', '/',\n ':', ';', '<', '=', '>',\n '@', '[', '\\\\', ']', '^', '_',\n '`',\n '{', '|', '}', '~',\n].concat(exports.ALPHANUM);\nexports.URL_CHAR = exports.STRICT_URL_CHAR\n .concat(['\\t', '\\f']);\n// All characters with 0x80 bit set to 1\nfor (let i = 0x80; i <= 0xff; i++) {\n exports.URL_CHAR.push(i);\n}\nexports.HEX = exports.NUM.concat(['a', 'b', 'c', 'd', 'e', 'f', 'A', 'B', 'C', 'D', 'E', 'F']);\n/* Tokens as defined by rfc 2616. Also lowercases them.\n * token = 1*\n * separators = \"(\" | \")\" | \"<\" | \">\" | \"@\"\n * | \",\" | \";\" | \":\" | \"\\\" | <\">\n * | \"/\" | \"[\" | \"]\" | \"?\" | \"=\"\n * | \"{\" | \"}\" | SP | HT\n */\nexports.STRICT_TOKEN = [\n '!', '#', '$', '%', '&', '\\'',\n '*', '+', '-', '.',\n '^', '_', '`',\n '|', '~',\n].concat(exports.ALPHANUM);\nexports.TOKEN = exports.STRICT_TOKEN.concat([' ']);\n/*\n * Verify that a char is a valid visible (printable) US-ASCII\n * character or %x80-FF\n */\nexports.HEADER_CHARS = ['\\t'];\nfor (let i = 32; i <= 255; i++) {\n if (i !== 127) {\n exports.HEADER_CHARS.push(i);\n }\n}\n// ',' = \\x44\nexports.CONNECTION_TOKEN_CHARS = exports.HEADER_CHARS.filter((c) => c !== 44);\nexports.MAJOR = exports.NUM_MAP;\nexports.MINOR = exports.MAJOR;\nvar HEADER_STATE;\n(function (HEADER_STATE) {\n HEADER_STATE[HEADER_STATE[\"GENERAL\"] = 0] = \"GENERAL\";\n HEADER_STATE[HEADER_STATE[\"CONNECTION\"] = 1] = \"CONNECTION\";\n HEADER_STATE[HEADER_STATE[\"CONTENT_LENGTH\"] = 2] = \"CONTENT_LENGTH\";\n HEADER_STATE[HEADER_STATE[\"TRANSFER_ENCODING\"] = 3] = \"TRANSFER_ENCODING\";\n HEADER_STATE[HEADER_STATE[\"UPGRADE\"] = 4] = \"UPGRADE\";\n HEADER_STATE[HEADER_STATE[\"CONNECTION_KEEP_ALIVE\"] = 5] = \"CONNECTION_KEEP_ALIVE\";\n HEADER_STATE[HEADER_STATE[\"CONNECTION_CLOSE\"] = 6] = \"CONNECTION_CLOSE\";\n HEADER_STATE[HEADER_STATE[\"CONNECTION_UPGRADE\"] = 7] = \"CONNECTION_UPGRADE\";\n HEADER_STATE[HEADER_STATE[\"TRANSFER_ENCODING_CHUNKED\"] = 8] = \"TRANSFER_ENCODING_CHUNKED\";\n})(HEADER_STATE = exports.HEADER_STATE || (exports.HEADER_STATE = {}));\nexports.SPECIAL_HEADERS = {\n 'connection': HEADER_STATE.CONNECTION,\n 'content-length': HEADER_STATE.CONTENT_LENGTH,\n 'proxy-connection': HEADER_STATE.CONNECTION,\n 'transfer-encoding': HEADER_STATE.TRANSFER_ENCODING,\n 'upgrade': HEADER_STATE.UPGRADE,\n};\n//# sourceMappingURL=constants.js.map","module.exports = 'AGFzbQEAAAABMAhgAX8Bf2ADf39/AX9gBH9/f38Bf2AAAGADf39/AGABfwBgAn9/AGAGf39/f39/AALLAQgDZW52GHdhc21fb25faGVhZGVyc19jb21wbGV0ZQACA2VudhV3YXNtX29uX21lc3NhZ2VfYmVnaW4AAANlbnYLd2FzbV9vbl91cmwAAQNlbnYOd2FzbV9vbl9zdGF0dXMAAQNlbnYUd2FzbV9vbl9oZWFkZXJfZmllbGQAAQNlbnYUd2FzbV9vbl9oZWFkZXJfdmFsdWUAAQNlbnYMd2FzbV9vbl9ib2R5AAEDZW52GHdhc21fb25fbWVzc2FnZV9jb21wbGV0ZQAAA0ZFAwMEAAAFAAAAAAAABQEFAAUFBQAABgAAAAAGBgYGAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQABAAABAQcAAAUFAwABBAUBcAESEgUDAQACBggBfwFBgNQECwfRBSIGbWVtb3J5AgALX2luaXRpYWxpemUACRlfX2luZGlyZWN0X2Z1bmN0aW9uX3RhYmxlAQALbGxodHRwX2luaXQAChhsbGh0dHBfc2hvdWxk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GDQAgAkHAAHENAEEAIQEgAkGIBHFBgARGDQAgAkEocUEARyEBCyABC1kAIABBGGpCADcDACAAQgA3AwAgAEE4akIANwMAIABBMGpCADcDACAAQShqQgA3AwAgAEEgakIANwMAIABBEGpCADcDACAAQQhqQgA3AwAgAEHdATYCHEEAC3sBAX8CQCAAKAIMIgMNAAJAIAAoAgRFDQAgACABNgIECwJAIAAgASACEMSAgIAAIgMNACAAKAIMDwsgACADNgIcQQAhAyAAKAIEIgFFDQAgACABIAIgACgCCBGBgICAAAAiAUUNACAAIAI2AhQgACABNgIMIAEhAwsgAwvk8wEDDn8DfgR/I4CAgIAAQRBrIgMkgICAgAAgASEEIAEhBSABIQYgASEHIAEhCCABIQkgASEKIAEhCyABIQwgASENIAEhDiABIQ8CQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkAgACgCHCIQQX9qDt0B2gEB2QECAwQFBgcICQoLDA0O2AEPENcBERLWARMUFRYXGBkaG+AB3wEcHR7VAR8gISIjJCXUASYnKCkqKyzTAdIBLS7RA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C0GmASEQDB4LQacBIRAMHQtBqAEhEAwcC0GpASEQDBsLQaoBIRAMGgtBqwEhEAwZC0GsASEQDBgLQa0BIRAMFwtBrgEhEAwWC0EBIRAMFQtBrwEhEAwUC0GwASEQDBMLQbEBIRAMEgtBswEhEAwRC0GyASEQDBALQbQBIRAMDwtBtQEhEAwOC0G2ASEQDA0LQbcBIRAMDAtBuAEhEAwLC0G5ASEQDAoLQboBIRAMCQtBuwEhEAwIC0HGASEQDAcLQbwBIRAMBgtBvQEhEAwFC0G+ASEQDAQLQb8BIRAMAwtBwAEhEAwCC0HCASEQDAELQcEBIRALA0ACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAA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EHTADYCHCAAIAE2AhQgACAQNgIMQQAhEAytAQsgACgCBCEQIABBADYCBAJAIAAgECABEKeAgIAAIhANACABIQEMTQsgAEHlADYCHCAAIAE2AhQgACAQNgIMQQAhEAysAQsgAEEANgIcIAAgATYCFCAAQdyIgIAANgIQIABBBzYCDEEAIRAMqwELIBBBP0cNASABQQFqIQELQQUhEAyQAQtBACEQIABBADYCHCAAIAE2AhQgAEH9koCAADYCECAAQQc2AgwMqAELIAAoAgQhECAAQQA2AgQCQCAAIBAgARCngICAACIQDQAgASEBDEILIABB0gA2AhwgACABNgIUIAAgEDYCDEEAIRAMpwELIAAoAgQhECAAQQA2AgQCQCAAIBAgARCngICAACIQDQAgASEBDEILIABB0wA2AhwgACABNgIUIAAgEDYCDEEAIRAMpgELIAAoAgQhECAAQQA2AgQCQCAAIBAgARCngICAACIQDQAgASEBDEYLIABB5QA2AhwgACABNgIUIAAgEDYCDEEAIRAMpQELIAAoAgQhASAAQQA2AgQCQCAAIAEgFBCngICAACIBDQAgFCEBDD8LIABB0gA2AhwgACAUNgIUIAAgATYCDEEAIRAMpAELIAAoAgQhASAAQQA2AgQCQCAAIAEgFBCngICAACIBDQAgFCEBDD8LIABB0wA2AhwgACAUNgIUIAAgATYCDEEAIRAMowELIAAoAgQhASAAQQA2AgQCQCAAIAEgFBCngICAACIBDQAgFCEBDEMLIABB5QA2AhwgACAUNgIUIAAgATYCDEEAIRAMogELIABBADYCHCAAIBQ2AhQgAEHDj4CAADYCECAAQQc2AgxBACEQDKEBCyAAQQA2AhwgACABNgIUIABBw4+AgAA2AhAgAEEHNgIMQQAhEAygAQtBACEQIABBADYCHCAAIBQ2AhQgAEGMnICAADYCECAAQQc2AgwMnwELIABBADYCHCAAIBQ2AhQgAEGMnICAADYCECAAQQc2AgxBACEQDJ4BCyAAQQA2AhwgACAUNgIUIABB/pGAgAA2AhAgAEEHNgIMQQAhEAydAQsgAEEANgIcIAAgATYCFCAAQY6bgIAANgIQIABBBjYCDEEAIRAMn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kACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAIBA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EAIRAMtAELIAAoAgQhECAAQQA2AgQCQCAAIBAgARCngICAACIQDQAgASEBDFQLIABB5QA2AhwgACABNgIUIAAgEDYCDEEAIRAMswELIAAoAgQhECAAQQA2AgQCQCAAIBAgARCngICAACIQDQAgASEBDE0LIABB0gA2AhwgACABNgIUIAAgEDYCDEEAIRAMsgELIAAoAgQhECAAQQA2AgQCQCAAIBAgARCngICAACIQDQAgASEBDE0LIABB0wA2AhwgACABNgIUIAAgEDYCDEEAIRAMsQELIAAoAgQhECAAQQA2AgQCQCAAIBAgARCngICAACIQDQAgASEBDFELIABB5QA2AhwgACABNgIUIAAgEDYCDEEAIRAMsAELIABBADYCHCAAIAE2AhQgAEHGioCAADYCECAAQQc2AgxBACEQDK8BCyAAKAIEIRAgAEEANgIEAkAgACAQIAEQp4CAgAAiEA0AIAEhAQxJCyAAQdIANgIcIAAgATYCFCAAIBA2AgxBACEQDK4BCyAAKAIEIRAgAEEANgIEAkAgACAQIAEQp4CAgAAiEA0AIAEhAQxJCyAAQdMANgIcIAAgATYCFCAAIBA2AgxBACEQDK0BCyAAKAIEIRAgAEEANgIEAkAgACAQIAEQp4CAgAAiEA0AIAEhAQxNCyAAQeUANgIcIAAgATYCFCAAIBA2AgxBACEQDKwBCyAAQQA2AhwgACABNgIUIABB3IiAgAA2AhAgAEEHNgIMQQAhEAyrAQsgEEE/Rw0BIAFBAWohAQtBBSEQDJABC0EAIRAgAEEANgIcIAAgATYCFCAAQf2SgIAANgIQIABBBzYCDAyoAQsgACgCBCEQIABBADYCBAJAIAAgECABEKeAgIAAIhANACABIQEMQgsgAEHSADYCHCAAIAE2AhQgACAQNgIMQQAhEAynAQsgACgCBCEQIABBADYCBAJAIAAgECABEKeAgIAAIhANACABIQEMQgsgAEHTADYCHCAAIAE2AhQgACAQNgIMQQAhEAymAQsgACgCBCEQIABBADYCBAJAIAAgECABEKeAgIAAIhANACABIQEMRgsgAEHlADYCHCAAIAE2AhQgACAQNgIMQQAhEAylAQsgACgCBCEB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AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAEAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAgAAAAACAAAAAAAAAAAAAAAAAAAAAAADAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwAAAAAAAAMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAE5PVU5DRUVDS09VVE5FQ1RFVEVDUklCRUxVU0hFVEVBRFNFQVJDSFJHRUNUSVZJVFlMRU5EQVJWRU9USUZZUFRJT05TQ0hTRUFZU1RBVENIR0VPUkRJUkVDVE9SVFJDSFBBUkFNRVRFUlVSQ0VCU0NSSUJFQVJET1dOQUNFSU5ETktDS1VCU0NSSUJFSFRUUC9BRFRQLw=='\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.enumToMap = void 0;\nfunction enumToMap(obj) {\n const res = {};\n Object.keys(obj).forEach((key) => {\n const value = obj[key];\n if (typeof value === 'number') {\n res[key] = value;\n }\n });\n return res;\n}\nexports.enumToMap = enumToMap;\n//# sourceMappingURL=utils.js.map","'use strict'\n\nconst { kClients } = require('../core/symbols')\nconst Agent = require('../agent')\nconst {\n kAgent,\n kMockAgentSet,\n kMockAgentGet,\n kDispatches,\n kIsMockActive,\n kNetConnect,\n kGetNetConnect,\n kOptions,\n kFactory\n} = require('./mock-symbols')\nconst MockClient = require('./mock-client')\nconst MockPool = require('./mock-pool')\nconst { matchValue, buildMockOptions } = require('./mock-utils')\nconst { InvalidArgumentError, UndiciError } = require('../core/errors')\nconst Dispatcher = require('../dispatcher')\nconst Pluralizer = require('./pluralizer')\nconst PendingInterceptorsFormatter = require('./pending-interceptors-formatter')\n\nclass FakeWeakRef {\n constructor (value) {\n this.value = value\n }\n\n deref () {\n return this.value\n }\n}\n\nclass MockAgent extends Dispatcher {\n constructor (opts) {\n super(opts)\n\n this[kNetConnect] = true\n this[kIsMockActive] = true\n\n // Instantiate Agent and encapsulate\n if ((opts && opts.agent && typeof opts.agent.dispatch !== 'function')) {\n throw new InvalidArgumentError('Argument opts.agent must implement Agent')\n }\n const agent = opts && opts.agent ? opts.agent : new Agent(opts)\n this[kAgent] = agent\n\n this[kClients] = agent[kClients]\n this[kOptions] = buildMockOptions(opts)\n }\n\n get (origin) {\n let dispatcher = this[kMockAgentGet](origin)\n\n if (!dispatcher) {\n dispatcher = this[kFactory](origin)\n this[kMockAgentSet](origin, dispatcher)\n }\n return dispatcher\n }\n\n dispatch (opts, handler) {\n // Call MockAgent.get to perform additional setup before dispatching as normal\n this.get(opts.origin)\n return this[kAgent].dispatch(opts, handler)\n }\n\n async close () {\n await this[kAgent].close()\n this[kClients].clear()\n }\n\n deactivate () {\n this[kIsMockActive] = false\n }\n\n activate () {\n this[kIsMockActive] = true\n }\n\n enableNetConnect (matcher) {\n if (typeof matcher === 'string' || typeof matcher === 'function' || matcher instanceof RegExp) {\n if (Array.isArray(this[kNetConnect])) {\n this[kNetConnect].push(matcher)\n } else {\n this[kNetConnect] = [matcher]\n }\n } else if (typeof matcher === 'undefined') {\n this[kNetConnect] = true\n } else {\n throw new InvalidArgumentError('Unsupported matcher. Must be one of String|Function|RegExp.')\n }\n }\n\n disableNetConnect () {\n this[kNetConnect] = false\n }\n\n // This is required to bypass issues caused by using global symbols - see:\n // https://github.com/nodejs/undici/issues/1447\n get isMockActive () {\n return this[kIsMockActive]\n }\n\n [kMockAgentSet] (origin, dispatcher) {\n this[kClients].set(origin, new FakeWeakRef(dispatcher))\n }\n\n [kFactory] (origin) {\n const mockOptions = Object.assign({ agent: this }, this[kOptions])\n return this[kOptions] && this[kOptions].connections === 1\n ? new MockClient(origin, mockOptions)\n : new MockPool(origin, mockOptions)\n }\n\n [kMockAgentGet] (origin) {\n // First check if we can immediately find it\n const ref = this[kClients].get(origin)\n if (ref) {\n return ref.deref()\n }\n\n // If the origin is not a string create a dummy parent pool and return to user\n if (typeof origin !== 'string') {\n const dispatcher = this[kFactory]('http://localhost:9999')\n this[kMockAgentSet](origin, dispatcher)\n return dispatcher\n }\n\n // If we match, create a pool and assign the same dispatches\n for (const [keyMatcher, nonExplicitRef] of Array.from(this[kClients])) {\n const nonExplicitDispatcher = nonExplicitRef.deref()\n if (nonExplicitDispatcher && typeof keyMatcher !== 'string' && matchValue(keyMatcher, origin)) {\n const dispatcher = this[kFactory](origin)\n this[kMockAgentSet](origin, dispatcher)\n dispatcher[kDispatches] = nonExplicitDispatcher[kDispatches]\n return dispatcher\n }\n }\n }\n\n [kGetNetConnect] () {\n return this[kNetConnect]\n }\n\n pendingInterceptors () {\n const mockAgentClients = this[kClients]\n\n return Array.from(mockAgentClients.entries())\n .flatMap(([origin, scope]) => scope.deref()[kDispatches].map(dispatch => ({ ...dispatch, origin })))\n .filter(({ pending }) => pending)\n }\n\n assertNoPendingInterceptors ({ pendingInterceptorsFormatter = new PendingInterceptorsFormatter() } = {}) {\n const pending = this.pendingInterceptors()\n\n if (pending.length === 0) {\n return\n }\n\n const pluralizer = new Pluralizer('interceptor', 'interceptors').pluralize(pending.length)\n\n throw new UndiciError(`\n${pluralizer.count} ${pluralizer.noun} ${pluralizer.is} pending:\n\n${pendingInterceptorsFormatter.format(pending)}\n`.trim())\n }\n}\n\nmodule.exports = MockAgent\n","'use strict'\n\nconst { promisify } = require('util')\nconst Client = require('../client')\nconst { buildMockDispatch } = require('./mock-utils')\nconst {\n kDispatches,\n kMockAgent,\n kClose,\n kOriginalClose,\n kOrigin,\n kOriginalDispatch,\n kConnected\n} = require('./mock-symbols')\nconst { MockInterceptor } = require('./mock-interceptor')\nconst Symbols = require('../core/symbols')\nconst { InvalidArgumentError } = require('../core/errors')\n\n/**\n * MockClient provides an API that extends the Client to influence the mockDispatches.\n */\nclass MockClient extends Client {\n constructor (origin, opts) {\n super(origin, opts)\n\n if (!opts || !opts.agent || typeof opts.agent.dispatch !== 'function') {\n throw new InvalidArgumentError('Argument opts.agent must implement Agent')\n }\n\n this[kMockAgent] = opts.agent\n this[kOrigin] = origin\n this[kDispatches] = []\n this[kConnected] = 1\n this[kOriginalDispatch] = this.dispatch\n this[kOriginalClose] = this.close.bind(this)\n\n this.dispatch = buildMockDispatch.call(this)\n this.close = this[kClose]\n }\n\n get [Symbols.kConnected] () {\n return this[kConnected]\n }\n\n /**\n * Sets up the base interceptor for mocking replies from undici.\n */\n intercept (opts) {\n return new MockInterceptor(opts, this[kDispatches])\n }\n\n async [kClose] () {\n await promisify(this[kOriginalClose])()\n this[kConnected] = 0\n this[kMockAgent][Symbols.kClients].delete(this[kOrigin])\n }\n}\n\nmodule.exports = MockClient\n","'use strict'\n\nconst { UndiciError } = require('../core/errors')\n\nclass MockNotMatchedError extends UndiciError {\n constructor (message) {\n super(message)\n Error.captureStackTrace(this, MockNotMatchedError)\n this.name = 'MockNotMatchedError'\n this.message = message || 'The request does not match any registered mock dispatches'\n this.code = 'UND_MOCK_ERR_MOCK_NOT_MATCHED'\n }\n}\n\nmodule.exports = {\n MockNotMatchedError\n}\n","'use strict'\n\nconst { getResponseData, buildKey, addMockDispatch } = require('./mock-utils')\nconst {\n kDispatches,\n kDispatchKey,\n kDefaultHeaders,\n kDefaultTrailers,\n kContentLength,\n kMockDispatch\n} = require('./mock-symbols')\nconst { InvalidArgumentError } = require('../core/errors')\nconst { buildURL } = require('../core/util')\n\n/**\n * Defines the scope API for an interceptor reply\n */\nclass MockScope {\n constructor (mockDispatch) {\n this[kMockDispatch] = mockDispatch\n }\n\n /**\n * Delay a reply by a set amount in ms.\n */\n delay (waitInMs) {\n if (typeof waitInMs !== 'number' || !Number.isInteger(waitInMs) || waitInMs <= 0) {\n throw new InvalidArgumentError('waitInMs must be a valid integer > 0')\n }\n\n this[kMockDispatch].delay = waitInMs\n return this\n }\n\n /**\n * For a defined reply, never mark as consumed.\n */\n persist () {\n this[kMockDispatch].persist = true\n return this\n }\n\n /**\n * Allow one to define a reply for a set amount of matching requests.\n */\n times (repeatTimes) {\n if (typeof repeatTimes !== 'number' || !Number.isInteger(repeatTimes) || repeatTimes <= 0) {\n throw new InvalidArgumentError('repeatTimes must be a valid integer > 0')\n }\n\n this[kMockDispatch].times = repeatTimes\n return this\n }\n}\n\n/**\n * Defines an interceptor for a Mock\n */\nclass MockInterceptor {\n constructor (opts, mockDispatches) {\n if (typeof opts !== 'object') {\n throw new InvalidArgumentError('opts must be an object')\n }\n if (typeof opts.path === 'undefined') {\n throw new InvalidArgumentError('opts.path must be defined')\n }\n if (typeof opts.method === 'undefined') {\n opts.method = 'GET'\n }\n // See https://github.com/nodejs/undici/issues/1245\n // As per RFC 3986, clients are not supposed to send URI\n // fragments to servers when they retrieve a document,\n if (typeof opts.path === 'string') {\n if (opts.query) {\n opts.path = buildURL(opts.path, opts.query)\n } else {\n // Matches https://github.com/nodejs/undici/blob/main/lib/fetch/index.js#L1811\n const parsedURL = new URL(opts.path, 'data://')\n opts.path = parsedURL.pathname + parsedURL.search\n }\n }\n if (typeof opts.method === 'string') {\n opts.method = opts.method.toUpperCase()\n }\n\n this[kDispatchKey] = buildKey(opts)\n this[kDispatches] = mockDispatches\n this[kDefaultHeaders] = {}\n this[kDefaultTrailers] = {}\n this[kContentLength] = false\n }\n\n createMockScopeDispatchData (statusCode, data, responseOptions = {}) {\n const responseData = getResponseData(data)\n const contentLength = this[kContentLength] ? { 'content-length': responseData.length } : {}\n const headers = { ...this[kDefaultHeaders], ...contentLength, ...responseOptions.headers }\n const trailers = { ...this[kDefaultTrailers], ...responseOptions.trailers }\n\n return { statusCode, data, headers, trailers }\n }\n\n validateReplyParameters (statusCode, data, responseOptions) {\n if (typeof statusCode === 'undefined') {\n throw new InvalidArgumentError('statusCode must be defined')\n }\n if (typeof data === 'undefined') {\n throw new InvalidArgumentError('data must be defined')\n }\n if (typeof responseOptions !== 'object') {\n throw new InvalidArgumentError('responseOptions must be an object')\n }\n }\n\n /**\n * Mock an undici request with a defined reply.\n */\n reply (replyData) {\n // Values of reply aren't available right now as they\n // can only be available when the reply callback is invoked.\n if (typeof replyData === 'function') {\n // We'll first wrap the provided callback in another function,\n // this function will properly resolve the data from the callback\n // when invoked.\n const wrappedDefaultsCallback = (opts) => {\n // Our reply options callback contains the parameter for statusCode, data and options.\n const resolvedData = replyData(opts)\n\n // Check if it is in the right format\n if (typeof resolvedData !== 'object') {\n throw new InvalidArgumentError('reply options callback must return an object')\n }\n\n const { statusCode, data = '', responseOptions = {} } = resolvedData\n this.validateReplyParameters(statusCode, data, responseOptions)\n // Since the values can be obtained immediately we return them\n // from this higher order function that will be resolved later.\n return {\n ...this.createMockScopeDispatchData(statusCode, data, responseOptions)\n }\n }\n\n // Add usual dispatch data, but this time set the data parameter to function that will eventually provide data.\n const newMockDispatch = addMockDispatch(this[kDispatches], this[kDispatchKey], wrappedDefaultsCallback)\n return new MockScope(newMockDispatch)\n }\n\n // We can have either one or three parameters, if we get here,\n // we should have 1-3 parameters. So we spread the arguments of\n // this function to obtain the parameters, since replyData will always\n // just be the statusCode.\n const [statusCode, data = '', responseOptions = {}] = [...arguments]\n this.validateReplyParameters(statusCode, data, responseOptions)\n\n // Send in-already provided data like usual\n const dispatchData = this.createMockScopeDispatchData(statusCode, data, responseOptions)\n const newMockDispatch = addMockDispatch(this[kDispatches], this[kDispatchKey], dispatchData)\n return new MockScope(newMockDispatch)\n }\n\n /**\n * Mock an undici request with a defined error.\n */\n replyWithError (error) {\n if (typeof error === 'undefined') {\n throw new InvalidArgumentError('error must be defined')\n }\n\n const newMockDispatch = addMockDispatch(this[kDispatches], this[kDispatchKey], { error })\n return new MockScope(newMockDispatch)\n }\n\n /**\n * Set default reply headers on the interceptor for subsequent replies\n */\n defaultReplyHeaders (headers) {\n if (typeof headers === 'undefined') {\n throw new InvalidArgumentError('headers must be defined')\n }\n\n this[kDefaultHeaders] = headers\n return this\n }\n\n /**\n * Set default reply trailers on the interceptor for subsequent replies\n */\n defaultReplyTrailers (trailers) {\n if (typeof trailers === 'undefined') {\n throw new InvalidArgumentError('trailers must be defined')\n }\n\n this[kDefaultTrailers] = trailers\n return this\n }\n\n /**\n * Set reply content length header for replies on the interceptor\n */\n replyContentLength () {\n this[kContentLength] = true\n return this\n }\n}\n\nmodule.exports.MockInterceptor = MockInterceptor\nmodule.exports.MockScope = MockScope\n","'use strict'\n\nconst { promisify } = require('util')\nconst Pool = require('../pool')\nconst { buildMockDispatch } = require('./mock-utils')\nconst {\n kDispatches,\n kMockAgent,\n kClose,\n kOriginalClose,\n kOrigin,\n kOriginalDispatch,\n kConnected\n} = require('./mock-symbols')\nconst { MockInterceptor } = require('./mock-interceptor')\nconst Symbols = require('../core/symbols')\nconst { InvalidArgumentError } = require('../core/errors')\n\n/**\n * MockPool provides an API that extends the Pool to influence the mockDispatches.\n */\nclass MockPool extends Pool {\n constructor (origin, opts) {\n super(origin, opts)\n\n if (!opts || !opts.agent || typeof opts.agent.dispatch !== 'function') {\n throw new InvalidArgumentError('Argument opts.agent must implement Agent')\n }\n\n this[kMockAgent] = opts.agent\n this[kOrigin] = origin\n this[kDispatches] = []\n this[kConnected] = 1\n this[kOriginalDispatch] = this.dispatch\n this[kOriginalClose] = this.close.bind(this)\n\n this.dispatch = buildMockDispatch.call(this)\n this.close = this[kClose]\n }\n\n get [Symbols.kConnected] () {\n return this[kConnected]\n }\n\n /**\n * Sets up the base interceptor for mocking replies from undici.\n */\n intercept (opts) {\n return new MockInterceptor(opts, this[kDispatches])\n }\n\n async [kClose] () {\n await promisify(this[kOriginalClose])()\n this[kConnected] = 0\n this[kMockAgent][Symbols.kClients].delete(this[kOrigin])\n }\n}\n\nmodule.exports = MockPool\n","'use strict'\n\nmodule.exports = {\n kAgent: Symbol('agent'),\n kOptions: Symbol('options'),\n kFactory: Symbol('factory'),\n kDispatches: Symbol('dispatches'),\n kDispatchKey: Symbol('dispatch key'),\n kDefaultHeaders: Symbol('default headers'),\n kDefaultTrailers: Symbol('default trailers'),\n kContentLength: Symbol('content length'),\n kMockAgent: Symbol('mock agent'),\n kMockAgentSet: Symbol('mock agent set'),\n kMockAgentGet: Symbol('mock agent get'),\n kMockDispatch: Symbol('mock dispatch'),\n kClose: Symbol('close'),\n kOriginalClose: Symbol('original agent close'),\n kOrigin: Symbol('origin'),\n kIsMockActive: Symbol('is mock active'),\n kNetConnect: Symbol('net connect'),\n kGetNetConnect: Symbol('get net connect'),\n kConnected: Symbol('connected')\n}\n","'use strict'\n\nconst { MockNotMatchedError } = require('./mock-errors')\nconst {\n kDispatches,\n kMockAgent,\n kOriginalDispatch,\n kOrigin,\n kGetNetConnect\n} = require('./mock-symbols')\nconst { buildURL, nop } = require('../core/util')\nconst { STATUS_CODES } = require('http')\nconst {\n types: {\n isPromise\n }\n} = require('util')\n\nfunction matchValue (match, value) {\n if (typeof match === 'string') {\n return match === value\n }\n if (match instanceof RegExp) {\n return match.test(value)\n }\n if (typeof match === 'function') {\n return match(value) === true\n }\n return false\n}\n\nfunction lowerCaseEntries (headers) {\n return Object.fromEntries(\n Object.entries(headers).map(([headerName, headerValue]) => {\n return [headerName.toLocaleLowerCase(), headerValue]\n })\n )\n}\n\n/**\n * @param {import('../../index').Headers|string[]|Record} headers\n * @param {string} key\n */\nfunction getHeaderByName (headers, key) {\n if (Array.isArray(headers)) {\n for (let i = 0; i < headers.length; i += 2) {\n if (headers[i].toLocaleLowerCase() === key.toLocaleLowerCase()) {\n return headers[i + 1]\n }\n }\n\n return undefined\n } else if (typeof headers.get === 'function') {\n return headers.get(key)\n } else {\n return lowerCaseEntries(headers)[key.toLocaleLowerCase()]\n }\n}\n\n/** @param {string[]} headers */\nfunction buildHeadersFromArray (headers) { // fetch HeadersList\n const clone = headers.slice()\n const entries = []\n for (let index = 0; index < clone.length; index += 2) {\n entries.push([clone[index], clone[index + 1]])\n }\n return Object.fromEntries(entries)\n}\n\nfunction matchHeaders (mockDispatch, headers) {\n if (typeof mockDispatch.headers === 'function') {\n if (Array.isArray(headers)) { // fetch HeadersList\n headers = buildHeadersFromArray(headers)\n }\n return mockDispatch.headers(headers ? lowerCaseEntries(headers) : {})\n }\n if (typeof mockDispatch.headers === 'undefined') {\n return true\n }\n if (typeof headers !== 'object' || typeof mockDispatch.headers !== 'object') {\n return false\n }\n\n for (const [matchHeaderName, matchHeaderValue] of Object.entries(mockDispatch.headers)) {\n const headerValue = getHeaderByName(headers, matchHeaderName)\n\n if (!matchValue(matchHeaderValue, headerValue)) {\n return false\n }\n }\n return true\n}\n\nfunction safeUrl (path) {\n if (typeof path !== 'string') {\n return path\n }\n\n const pathSegments = path.split('?')\n\n if (pathSegments.length !== 2) {\n return path\n }\n\n const qp = new URLSearchParams(pathSegments.pop())\n qp.sort()\n return [...pathSegments, qp.toString()].join('?')\n}\n\nfunction matchKey (mockDispatch, { path, method, body, headers }) {\n const pathMatch = matchValue(mockDispatch.path, path)\n const methodMatch = matchValue(mockDispatch.method, method)\n const bodyMatch = typeof mockDispatch.body !== 'undefined' ? matchValue(mockDispatch.body, body) : true\n const headersMatch = matchHeaders(mockDispatch, headers)\n return pathMatch && methodMatch && bodyMatch && headersMatch\n}\n\nfunction getResponseData (data) {\n if (Buffer.isBuffer(data)) {\n return data\n } else if (typeof data === 'object') {\n return JSON.stringify(data)\n } else {\n return data.toString()\n }\n}\n\nfunction getMockDispatch (mockDispatches, key) {\n const basePath = key.query ? buildURL(key.path, key.query) : key.path\n const resolvedPath = typeof basePath === 'string' ? safeUrl(basePath) : basePath\n\n // Match path\n let matchedMockDispatches = mockDispatches.filter(({ consumed }) => !consumed).filter(({ path }) => matchValue(safeUrl(path), resolvedPath))\n if (matchedMockDispatches.length === 0) {\n throw new MockNotMatchedError(`Mock dispatch not matched for path '${resolvedPath}'`)\n }\n\n // Match method\n matchedMockDispatches = matchedMockDispatches.filter(({ method }) => matchValue(method, key.method))\n if (matchedMockDispatches.length === 0) {\n throw new MockNotMatchedError(`Mock dispatch not matched for method '${key.method}'`)\n }\n\n // Match body\n matchedMockDispatches = matchedMockDispatches.filter(({ body }) => typeof body !== 'undefined' ? matchValue(body, key.body) : true)\n if (matchedMockDispatches.length === 0) {\n throw new MockNotMatchedError(`Mock dispatch not matched for body '${key.body}'`)\n }\n\n // Match headers\n matchedMockDispatches = matchedMockDispatches.filter((mockDispatch) => matchHeaders(mockDispatch, key.headers))\n if (matchedMockDispatches.length === 0) {\n throw new MockNotMatchedError(`Mock dispatch not matched for headers '${typeof key.headers === 'object' ? JSON.stringify(key.headers) : key.headers}'`)\n }\n\n return matchedMockDispatches[0]\n}\n\nfunction addMockDispatch (mockDispatches, key, data) {\n const baseData = { timesInvoked: 0, times: 1, persist: false, consumed: false }\n const replyData = typeof data === 'function' ? { callback: data } : { ...data }\n const newMockDispatch = { ...baseData, ...key, pending: true, data: { error: null, ...replyData } }\n mockDispatches.push(newMockDispatch)\n return newMockDispatch\n}\n\nfunction deleteMockDispatch (mockDispatches, key) {\n const index = mockDispatches.findIndex(dispatch => {\n if (!dispatch.consumed) {\n return false\n }\n return matchKey(dispatch, key)\n })\n if (index !== -1) {\n mockDispatches.splice(index, 1)\n }\n}\n\nfunction buildKey (opts) {\n const { path, method, body, headers, query } = opts\n return {\n path,\n method,\n body,\n headers,\n query\n }\n}\n\nfunction generateKeyValues (data) {\n return Object.entries(data).reduce((keyValuePairs, [key, value]) => [\n ...keyValuePairs,\n Buffer.from(`${key}`),\n Array.isArray(value) ? value.map(x => Buffer.from(`${x}`)) : Buffer.from(`${value}`)\n ], [])\n}\n\n/**\n * @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Status\n * @param {number} statusCode\n */\nfunction getStatusText (statusCode) {\n return STATUS_CODES[statusCode] || 'unknown'\n}\n\nasync function getResponse (body) {\n const buffers = []\n for await (const data of body) {\n buffers.push(data)\n }\n return Buffer.concat(buffers).toString('utf8')\n}\n\n/**\n * Mock dispatch function used to simulate undici dispatches\n */\nfunction mockDispatch (opts, handler) {\n // Get mock dispatch from built key\n const key = buildKey(opts)\n const mockDispatch = getMockDispatch(this[kDispatches], key)\n\n mockDispatch.timesInvoked++\n\n // Here's where we resolve a callback if a callback is present for the dispatch data.\n if (mockDispatch.data.callback) {\n mockDispatch.data = { ...mockDispatch.data, ...mockDispatch.data.callback(opts) }\n }\n\n // Parse mockDispatch data\n const { data: { statusCode, data, headers, trailers, error }, delay, persist } = mockDispatch\n const { timesInvoked, times } = mockDispatch\n\n // If it's used up and not persistent, mark as consumed\n mockDispatch.consumed = !persist && timesInvoked >= times\n mockDispatch.pending = timesInvoked < times\n\n // If specified, trigger dispatch error\n if (error !== null) {\n deleteMockDispatch(this[kDispatches], key)\n handler.onError(error)\n return true\n }\n\n // Handle the request with a delay if necessary\n if (typeof delay === 'number' && delay > 0) {\n setTimeout(() => {\n handleReply(this[kDispatches])\n }, delay)\n } else {\n handleReply(this[kDispatches])\n }\n\n function handleReply (mockDispatches, _data = data) {\n // fetch's HeadersList is a 1D string array\n const optsHeaders = Array.isArray(opts.headers)\n ? buildHeadersFromArray(opts.headers)\n : opts.headers\n const body = typeof _data === 'function'\n ? _data({ ...opts, headers: optsHeaders })\n : _data\n\n // util.types.isPromise is likely needed for jest.\n if (isPromise(body)) {\n // If handleReply is asynchronous, throwing an error\n // in the callback will reject the promise, rather than\n // synchronously throw the error, which breaks some tests.\n // Rather, we wait for the callback to resolve if it is a\n // promise, and then re-run handleReply with the new body.\n body.then((newData) => handleReply(mockDispatches, newData))\n return\n }\n\n const responseData = getResponseData(body)\n const responseHeaders = generateKeyValues(headers)\n const responseTrailers = generateKeyValues(trailers)\n\n handler.abort = nop\n handler.onHeaders(statusCode, responseHeaders, resume, getStatusText(statusCode))\n handler.onData(Buffer.from(responseData))\n handler.onComplete(responseTrailers)\n deleteMockDispatch(mockDispatches, key)\n }\n\n function resume () {}\n\n return true\n}\n\nfunction buildMockDispatch () {\n const agent = this[kMockAgent]\n const origin = this[kOrigin]\n const originalDispatch = this[kOriginalDispatch]\n\n return function dispatch (opts, handler) {\n if (agent.isMockActive) {\n try {\n mockDispatch.call(this, opts, handler)\n } catch (error) {\n if (error instanceof MockNotMatchedError) {\n const netConnect = agent[kGetNetConnect]()\n if (netConnect === false) {\n throw new MockNotMatchedError(`${error.message}: subsequent request to origin ${origin} was not allowed (net.connect disabled)`)\n }\n if (checkNetConnect(netConnect, origin)) {\n originalDispatch.call(this, opts, handler)\n } else {\n throw new MockNotMatchedError(`${error.message}: subsequent request to origin ${origin} was not allowed (net.connect is not enabled for this origin)`)\n }\n } else {\n throw error\n }\n }\n } else {\n originalDispatch.call(this, opts, handler)\n }\n }\n}\n\nfunction checkNetConnect (netConnect, origin) {\n const url = new URL(origin)\n if (netConnect === true) {\n return true\n } else if (Array.isArray(netConnect) && netConnect.some((matcher) => matchValue(matcher, url.host))) {\n return true\n }\n return false\n}\n\nfunction buildMockOptions (opts) {\n if (opts) {\n const { agent, ...mockOptions } = opts\n return mockOptions\n }\n}\n\nmodule.exports = {\n getResponseData,\n getMockDispatch,\n addMockDispatch,\n deleteMockDispatch,\n buildKey,\n generateKeyValues,\n matchValue,\n getResponse,\n getStatusText,\n mockDispatch,\n buildMockDispatch,\n checkNetConnect,\n buildMockOptions,\n getHeaderByName\n}\n","'use strict'\n\nconst { Transform } = require('stream')\nconst { Console } = require('console')\n\n/**\n * Gets the output of `console.table(…)` as a string.\n */\nmodule.exports = class PendingInterceptorsFormatter {\n constructor ({ disableColors } = {}) {\n this.transform = new Transform({\n transform (chunk, _enc, cb) {\n cb(null, chunk)\n }\n })\n\n this.logger = new Console({\n stdout: this.transform,\n inspectOptions: {\n colors: !disableColors && !process.env.CI\n }\n })\n }\n\n format (pendingInterceptors) {\n const withPrettyHeaders = pendingInterceptors.map(\n ({ method, path, data: { statusCode }, persist, times, timesInvoked, origin }) => ({\n Method: method,\n Origin: origin,\n Path: path,\n 'Status code': statusCode,\n Persistent: persist ? '✅' : '❌',\n Invocations: timesInvoked,\n Remaining: persist ? Infinity : times - timesInvoked\n }))\n\n this.logger.table(withPrettyHeaders)\n return this.transform.read().toString()\n }\n}\n","'use strict'\n\nconst singulars = {\n pronoun: 'it',\n is: 'is',\n was: 'was',\n this: 'this'\n}\n\nconst plurals = {\n pronoun: 'they',\n is: 'are',\n was: 'were',\n this: 'these'\n}\n\nmodule.exports = class Pluralizer {\n constructor (singular, plural) {\n this.singular = singular\n this.plural = plural\n }\n\n pluralize (count) {\n const one = count === 1\n const keys = one ? singulars : plurals\n const noun = one ? this.singular : this.plural\n return { ...keys, count, noun }\n }\n}\n","/* eslint-disable */\n\n'use strict'\n\n// Extracted from node/lib/internal/fixed_queue.js\n\n// Currently optimal queue size, tested on V8 6.0 - 6.6. Must be power of two.\nconst kSize = 2048;\nconst kMask = kSize - 1;\n\n// The FixedQueue is implemented as a singly-linked list of fixed-size\n// circular buffers. It looks something like this:\n//\n// head tail\n// | |\n// v v\n// +-----------+ <-----\\ +-----------+ <------\\ +-----------+\n// | [null] | \\----- | next | \\------- | next |\n// +-----------+ +-----------+ +-----------+\n// | item | <-- bottom | item | <-- bottom | [empty] |\n// | item | | item | | [empty] |\n// | item | | item | | [empty] |\n// | item | | item | | [empty] |\n// | item | | item | bottom --> | item |\n// | item | | item | | item |\n// | ... | | ... | | ... |\n// | item | | item | | item |\n// | item | | item | | item |\n// | [empty] | <-- top | item | | item |\n// | [empty] | | item | | item |\n// | [empty] | | [empty] | <-- top top --> | [empty] |\n// +-----------+ +-----------+ +-----------+\n//\n// Or, if there is only one circular buffer, it looks something\n// like either of these:\n//\n// head tail head tail\n// | | | |\n// v v v v\n// +-----------+ +-----------+\n// | [null] | | [null] |\n// +-----------+ +-----------+\n// | [empty] | | item |\n// | [empty] | | item |\n// | item | <-- bottom top --> | [empty] |\n// | item | | [empty] |\n// | [empty] | <-- top bottom --> | item |\n// | [empty] | | item |\n// +-----------+ +-----------+\n//\n// Adding a value means moving `top` forward by one, removing means\n// moving `bottom` forward by one. After reaching the end, the queue\n// wraps around.\n//\n// When `top === bottom` the current queue is empty and when\n// `top + 1 === bottom` it's full. This wastes a single space of storage\n// but allows much quicker checks.\n\nclass FixedCircularBuffer {\n constructor() {\n this.bottom = 0;\n this.top = 0;\n this.list = new Array(kSize);\n this.next = null;\n }\n\n isEmpty() {\n return this.top === this.bottom;\n }\n\n isFull() {\n return ((this.top + 1) & kMask) === this.bottom;\n }\n\n push(data) {\n this.list[this.top] = data;\n this.top = (this.top + 1) & kMask;\n }\n\n shift() {\n const nextItem = this.list[this.bottom];\n if (nextItem === undefined)\n return null;\n this.list[this.bottom] = undefined;\n this.bottom = (this.bottom + 1) & kMask;\n return nextItem;\n }\n}\n\nmodule.exports = class FixedQueue {\n constructor() {\n this.head = this.tail = new FixedCircularBuffer();\n }\n\n isEmpty() {\n return this.head.isEmpty();\n }\n\n push(data) {\n if (this.head.isFull()) {\n // Head is full: Creates a new queue, sets the old queue's `.next` to it,\n // and sets it as the new main queue.\n this.head = this.head.next = new FixedCircularBuffer();\n }\n this.head.push(data);\n }\n\n shift() {\n const tail = this.tail;\n const next = tail.shift();\n if (tail.isEmpty() && tail.next !== null) {\n // If there is another queue, it forms the new tail.\n this.tail = tail.next;\n }\n return next;\n }\n};\n","'use strict'\n\nconst DispatcherBase = require('./dispatcher-base')\nconst FixedQueue = require('./node/fixed-queue')\nconst { kConnected, kSize, kRunning, kPending, kQueued, kBusy, kFree, kUrl, kClose, kDestroy, kDispatch } = require('./core/symbols')\nconst PoolStats = require('./pool-stats')\n\nconst kClients = Symbol('clients')\nconst kNeedDrain = Symbol('needDrain')\nconst kQueue = Symbol('queue')\nconst kClosedResolve = Symbol('closed resolve')\nconst kOnDrain = Symbol('onDrain')\nconst kOnConnect = Symbol('onConnect')\nconst kOnDisconnect = Symbol('onDisconnect')\nconst kOnConnectionError = Symbol('onConnectionError')\nconst kGetDispatcher = Symbol('get dispatcher')\nconst kAddClient = Symbol('add client')\nconst kRemoveClient = Symbol('remove client')\nconst kStats = Symbol('stats')\n\nclass PoolBase extends DispatcherBase {\n constructor () {\n super()\n\n this[kQueue] = new FixedQueue()\n this[kClients] = []\n this[kQueued] = 0\n\n const pool = this\n\n this[kOnDrain] = function onDrain (origin, targets) {\n const queue = pool[kQueue]\n\n let needDrain = false\n\n while (!needDrain) {\n const item = queue.shift()\n if (!item) {\n break\n }\n pool[kQueued]--\n needDrain = !this.dispatch(item.opts, item.handler)\n }\n\n this[kNeedDrain] = needDrain\n\n if (!this[kNeedDrain] && pool[kNeedDrain]) {\n pool[kNeedDrain] = false\n pool.emit('drain', origin, [pool, ...targets])\n }\n\n if (pool[kClosedResolve] && queue.isEmpty()) {\n Promise\n .all(pool[kClients].map(c => c.close()))\n .then(pool[kClosedResolve])\n }\n }\n\n this[kOnConnect] = (origin, targets) => {\n pool.emit('connect', origin, [pool, ...targets])\n }\n\n this[kOnDisconnect] = (origin, targets, err) => {\n pool.emit('disconnect', origin, [pool, ...targets], err)\n }\n\n this[kOnConnectionError] = (origin, targets, err) => {\n pool.emit('connectionError', origin, [pool, ...targets], err)\n }\n\n this[kStats] = new PoolStats(this)\n }\n\n get [kBusy] () {\n return this[kNeedDrain]\n }\n\n get [kConnected] () {\n return this[kClients].filter(client => client[kConnected]).length\n }\n\n get [kFree] () {\n return this[kClients].filter(client => client[kConnected] && !client[kNeedDrain]).length\n }\n\n get [kPending] () {\n let ret = this[kQueued]\n for (const { [kPending]: pending } of this[kClients]) {\n ret += pending\n }\n return ret\n }\n\n get [kRunning] () {\n let ret = 0\n for (const { [kRunning]: running } of this[kClients]) {\n ret += running\n }\n return ret\n }\n\n get [kSize] () {\n let ret = this[kQueued]\n for (const { [kSize]: size } of this[kClients]) {\n ret += size\n }\n return ret\n }\n\n get stats () {\n return this[kStats]\n }\n\n async [kClose] () {\n if (this[kQueue].isEmpty()) {\n return Promise.all(this[kClients].map(c => c.close()))\n } else {\n return new Promise((resolve) => {\n this[kClosedResolve] = resolve\n })\n }\n }\n\n async [kDestroy] (err) {\n while (true) {\n const item = this[kQueue].shift()\n if (!item) {\n break\n }\n item.handler.onError(err)\n }\n\n return Promise.all(this[kClients].map(c => c.destroy(err)))\n }\n\n [kDispatch] (opts, handler) {\n const dispatcher = this[kGetDispatcher]()\n\n if (!dispatcher) {\n this[kNeedDrain] = true\n this[kQueue].push({ opts, handler })\n this[kQueued]++\n } else if (!dispatcher.dispatch(opts, handler)) {\n dispatcher[kNeedDrain] = true\n this[kNeedDrain] = !this[kGetDispatcher]()\n }\n\n return !this[kNeedDrain]\n }\n\n [kAddClient] (client) {\n client\n .on('drain', this[kOnDrain])\n .on('connect', this[kOnConnect])\n .on('disconnect', this[kOnDisconnect])\n .on('connectionError', this[kOnConnectionError])\n\n this[kClients].push(client)\n\n if (this[kNeedDrain]) {\n process.nextTick(() => {\n if (this[kNeedDrain]) {\n this[kOnDrain](client[kUrl], [this, client])\n }\n })\n }\n\n return this\n }\n\n [kRemoveClient] (client) {\n client.close(() => {\n const idx = this[kClients].indexOf(client)\n if (idx !== -1) {\n this[kClients].splice(idx, 1)\n }\n })\n\n this[kNeedDrain] = this[kClients].some(dispatcher => (\n !dispatcher[kNeedDrain] &&\n dispatcher.closed !== true &&\n dispatcher.destroyed !== true\n ))\n }\n}\n\nmodule.exports = {\n PoolBase,\n kClients,\n kNeedDrain,\n kAddClient,\n kRemoveClient,\n kGetDispatcher\n}\n","const { kFree, kConnected, kPending, kQueued, kRunning, kSize } = require('./core/symbols')\nconst kPool = Symbol('pool')\n\nclass PoolStats {\n constructor (pool) {\n this[kPool] = pool\n }\n\n get connected () {\n return this[kPool][kConnected]\n }\n\n get free () {\n return this[kPool][kFree]\n }\n\n get pending () {\n return this[kPool][kPending]\n }\n\n get queued () {\n return this[kPool][kQueued]\n }\n\n get running () {\n return this[kPool][kRunning]\n }\n\n get size () {\n return this[kPool][kSize]\n }\n}\n\nmodule.exports = PoolStats\n","'use strict'\n\nconst {\n PoolBase,\n kClients,\n kNeedDrain,\n kAddClient,\n kGetDispatcher\n} = require('./pool-base')\nconst Client = require('./client')\nconst {\n InvalidArgumentError\n} = require('./core/errors')\nconst util = require('./core/util')\nconst { kUrl, kInterceptors } = require('./core/symbols')\nconst buildConnector = require('./core/connect')\n\nconst kOptions = Symbol('options')\nconst kConnections = Symbol('connections')\nconst kFactory = Symbol('factory')\n\nfunction defaultFactory (origin, opts) {\n return new Client(origin, opts)\n}\n\nclass Pool extends PoolBase {\n constructor (origin, {\n connections,\n factory = defaultFactory,\n connect,\n connectTimeout,\n tls,\n maxCachedSessions,\n socketPath,\n autoSelectFamily,\n autoSelectFamilyAttemptTimeout,\n allowH2,\n ...options\n } = {}) {\n super()\n\n if (connections != null && (!Number.isFinite(connections) || connections < 0)) {\n throw new InvalidArgumentError('invalid connections')\n }\n\n if (typeof factory !== 'function') {\n throw new InvalidArgumentError('factory must be a function.')\n }\n\n if (connect != null && typeof connect !== 'function' && typeof connect !== 'object') {\n throw new InvalidArgumentError('connect must be a function or an object')\n }\n\n if (typeof connect !== 'function') {\n connect = buildConnector({\n ...tls,\n maxCachedSessions,\n allowH2,\n socketPath,\n timeout: connectTimeout,\n ...(util.nodeHasAutoSelectFamily && autoSelectFamily ? { autoSelectFamily, autoSelectFamilyAttemptTimeout } : undefined),\n ...connect\n })\n }\n\n this[kInterceptors] = options.interceptors && options.interceptors.Pool && Array.isArray(options.interceptors.Pool)\n ? options.interceptors.Pool\n : []\n this[kConnections] = connections || null\n this[kUrl] = util.parseOrigin(origin)\n this[kOptions] = { ...util.deepClone(options), connect, allowH2 }\n this[kOptions].interceptors = options.interceptors\n ? { ...options.interceptors }\n : undefined\n this[kFactory] = factory\n\n this.on('connectionError', (origin, targets, error) => {\n // If a connection error occurs, we remove the client from the pool,\n // and emit a connectionError event. They will not be re-used.\n // Fixes https://github.com/nodejs/undici/issues/3895\n for (const target of targets) {\n // Do not use kRemoveClient here, as it will close the client,\n // but the client cannot be closed in this state.\n const idx = this[kClients].indexOf(target)\n if (idx !== -1) {\n this[kClients].splice(idx, 1)\n }\n }\n })\n }\n\n [kGetDispatcher] () {\n let dispatcher = this[kClients].find(dispatcher => !dispatcher[kNeedDrain])\n\n if (dispatcher) {\n return dispatcher\n }\n\n if (!this[kConnections] || this[kClients].length < this[kConnections]) {\n dispatcher = this[kFactory](this[kUrl], this[kOptions])\n this[kAddClient](dispatcher)\n }\n\n return dispatcher\n }\n}\n\nmodule.exports = Pool\n","'use strict'\n\nconst { kProxy, kClose, kDestroy, kInterceptors } = require('./core/symbols')\nconst { URL } = require('url')\nconst Agent = require('./agent')\nconst Pool = require('./pool')\nconst DispatcherBase = require('./dispatcher-base')\nconst { InvalidArgumentError, RequestAbortedError } = require('./core/errors')\nconst buildConnector = require('./core/connect')\n\nconst kAgent = Symbol('proxy agent')\nconst kClient = Symbol('proxy client')\nconst kProxyHeaders = Symbol('proxy headers')\nconst kRequestTls = Symbol('request tls settings')\nconst kProxyTls = Symbol('proxy tls settings')\nconst kConnectEndpoint = Symbol('connect endpoint function')\n\nfunction defaultProtocolPort (protocol) {\n return protocol === 'https:' ? 443 : 80\n}\n\nfunction buildProxyOptions (opts) {\n if (typeof opts === 'string') {\n opts = { uri: opts }\n }\n\n if (!opts || !opts.uri) {\n throw new InvalidArgumentError('Proxy opts.uri is mandatory')\n }\n\n return {\n uri: opts.uri,\n protocol: opts.protocol || 'https'\n }\n}\n\nfunction defaultFactory (origin, opts) {\n return new Pool(origin, opts)\n}\n\nclass ProxyAgent extends DispatcherBase {\n constructor (opts) {\n super(opts)\n this[kProxy] = buildProxyOptions(opts)\n this[kAgent] = new Agent(opts)\n this[kInterceptors] = opts.interceptors && opts.interceptors.ProxyAgent && Array.isArray(opts.interceptors.ProxyAgent)\n ? opts.interceptors.ProxyAgent\n : []\n\n if (typeof opts === 'string') {\n opts = { uri: opts }\n }\n\n if (!opts || !opts.uri) {\n throw new InvalidArgumentError('Proxy opts.uri is mandatory')\n }\n\n const { clientFactory = defaultFactory } = opts\n\n if (typeof clientFactory !== 'function') {\n throw new InvalidArgumentError('Proxy opts.clientFactory must be a function.')\n }\n\n this[kRequestTls] = opts.requestTls\n this[kProxyTls] = opts.proxyTls\n this[kProxyHeaders] = opts.headers || {}\n\n const resolvedUrl = new URL(opts.uri)\n const { origin, port, host, username, password } = resolvedUrl\n\n if (opts.auth && opts.token) {\n throw new InvalidArgumentError('opts.auth cannot be used in combination with opts.token')\n } else if (opts.auth) {\n /* @deprecated in favour of opts.token */\n this[kProxyHeaders]['proxy-authorization'] = `Basic ${opts.auth}`\n } else if (opts.token) {\n this[kProxyHeaders]['proxy-authorization'] = opts.token\n } else if (username && password) {\n this[kProxyHeaders]['proxy-authorization'] = `Basic ${Buffer.from(`${decodeURIComponent(username)}:${decodeURIComponent(password)}`).toString('base64')}`\n }\n\n const connect = buildConnector({ ...opts.proxyTls })\n this[kConnectEndpoint] = buildConnector({ ...opts.requestTls })\n this[kClient] = clientFactory(resolvedUrl, { connect })\n this[kAgent] = new Agent({\n ...opts,\n connect: async (opts, callback) => {\n let requestedHost = opts.host\n if (!opts.port) {\n requestedHost += `:${defaultProtocolPort(opts.protocol)}`\n }\n try {\n const { socket, statusCode } = await this[kClient].connect({\n origin,\n port,\n path: requestedHost,\n signal: opts.signal,\n headers: {\n ...this[kProxyHeaders],\n host\n }\n })\n if (statusCode !== 200) {\n socket.on('error', () => {}).destroy()\n callback(new RequestAbortedError(`Proxy response (${statusCode}) !== 200 when HTTP Tunneling`))\n }\n if (opts.protocol !== 'https:') {\n callback(null, socket)\n return\n }\n let servername\n if (this[kRequestTls]) {\n servername = this[kRequestTls].servername\n } else {\n servername = opts.servername\n }\n this[kConnectEndpoint]({ ...opts, servername, httpSocket: socket }, callback)\n } catch (err) {\n callback(err)\n }\n }\n })\n }\n\n dispatch (opts, handler) {\n const { host } = new URL(opts.origin)\n const headers = buildHeaders(opts.headers)\n throwIfProxyAuthIsSent(headers)\n return this[kAgent].dispatch(\n {\n ...opts,\n headers: {\n ...headers,\n host\n }\n },\n handler\n )\n }\n\n async [kClose] () {\n await this[kAgent].close()\n await this[kClient].close()\n }\n\n async [kDestroy] () {\n await this[kAgent].destroy()\n await this[kClient].destroy()\n }\n}\n\n/**\n * @param {string[] | Record} headers\n * @returns {Record}\n */\nfunction buildHeaders (headers) {\n // When using undici.fetch, the headers list is stored\n // as an array.\n if (Array.isArray(headers)) {\n /** @type {Record} */\n const headersPair = {}\n\n for (let i = 0; i < headers.length; i += 2) {\n headersPair[headers[i]] = headers[i + 1]\n }\n\n return headersPair\n }\n\n return headers\n}\n\n/**\n * @param {Record} headers\n *\n * Previous versions of ProxyAgent suggests the Proxy-Authorization in request headers\n * Nevertheless, it was changed and to avoid a security vulnerability by end users\n * this check was created.\n * It should be removed in the next major version for performance reasons\n */\nfunction throwIfProxyAuthIsSent (headers) {\n const existProxyAuth = headers && Object.keys(headers)\n .find((key) => key.toLowerCase() === 'proxy-authorization')\n if (existProxyAuth) {\n throw new InvalidArgumentError('Proxy-Authorization should be sent in ProxyAgent constructor')\n }\n}\n\nmodule.exports = ProxyAgent\n","'use strict'\n\nlet fastNow = Date.now()\nlet fastNowTimeout\n\nconst fastTimers = []\n\nfunction onTimeout () {\n fastNow = Date.now()\n\n let len = fastTimers.length\n let idx = 0\n while (idx < len) {\n const timer = fastTimers[idx]\n\n if (timer.state === 0) {\n timer.state = fastNow + timer.delay\n } else if (timer.state > 0 && fastNow >= timer.state) {\n timer.state = -1\n timer.callback(timer.opaque)\n }\n\n if (timer.state === -1) {\n timer.state = -2\n if (idx !== len - 1) {\n fastTimers[idx] = fastTimers.pop()\n } else {\n fastTimers.pop()\n }\n len -= 1\n } else {\n idx += 1\n }\n }\n\n if (fastTimers.length > 0) {\n refreshTimeout()\n }\n}\n\nfunction refreshTimeout () {\n if (fastNowTimeout && fastNowTimeout.refresh) {\n fastNowTimeout.refresh()\n } else {\n clearTimeout(fastNowTimeout)\n fastNowTimeout = setTimeout(onTimeout, 1e3)\n if (fastNowTimeout.unref) {\n fastNowTimeout.unref()\n }\n }\n}\n\nclass Timeout {\n constructor (callback, delay, opaque) {\n this.callback = callback\n this.delay = delay\n this.opaque = opaque\n\n // -2 not in timer list\n // -1 in timer list but inactive\n // 0 in timer list waiting for time\n // > 0 in timer list waiting for time to expire\n this.state = -2\n\n this.refresh()\n }\n\n refresh () {\n if (this.state === -2) {\n fastTimers.push(this)\n if (!fastNowTimeout || fastTimers.length === 1) {\n refreshTimeout()\n }\n }\n\n this.state = 0\n }\n\n clear () {\n this.state = -1\n }\n}\n\nmodule.exports = {\n setTimeout (callback, delay, opaque) {\n return delay < 1e3\n ? setTimeout(callback, delay, opaque)\n : new Timeout(callback, delay, opaque)\n },\n clearTimeout (timeout) {\n if (timeout instanceof Timeout) {\n timeout.clear()\n } else {\n clearTimeout(timeout)\n }\n }\n}\n","'use strict'\n\nconst diagnosticsChannel = require('diagnostics_channel')\nconst { uid, states } = require('./constants')\nconst {\n kReadyState,\n kSentClose,\n kByteParser,\n kReceivedClose\n} = require('./symbols')\nconst { fireEvent, failWebsocketConnection } = require('./util')\nconst { CloseEvent } = require('./events')\nconst { makeRequest } = require('../fetch/request')\nconst { fetching } = require('../fetch/index')\nconst { Headers } = require('../fetch/headers')\nconst { getGlobalDispatcher } = require('../global')\nconst { kHeadersList } = require('../core/symbols')\n\nconst channels = {}\nchannels.open = diagnosticsChannel.channel('undici:websocket:open')\nchannels.close = diagnosticsChannel.channel('undici:websocket:close')\nchannels.socketError = diagnosticsChannel.channel('undici:websocket:socket_error')\n\n/** @type {import('crypto')} */\nlet crypto\ntry {\n crypto = require('crypto')\n} catch {\n\n}\n\n/**\n * @see https://websockets.spec.whatwg.org/#concept-websocket-establish\n * @param {URL} url\n * @param {string|string[]} protocols\n * @param {import('./websocket').WebSocket} ws\n * @param {(response: any) => void} onEstablish\n * @param {Partial} options\n */\nfunction establishWebSocketConnection (url, protocols, ws, onEstablish, options) {\n // 1. Let requestURL be a copy of url, with its scheme set to \"http\", if url’s\n // scheme is \"ws\", and to \"https\" otherwise.\n const requestURL = url\n\n requestURL.protocol = url.protocol === 'ws:' ? 'http:' : 'https:'\n\n // 2. Let request be a new request, whose URL is requestURL, client is client,\n // service-workers mode is \"none\", referrer is \"no-referrer\", mode is\n // \"websocket\", credentials mode is \"include\", cache mode is \"no-store\" ,\n // and redirect mode is \"error\".\n const request = makeRequest({\n urlList: [requestURL],\n serviceWorkers: 'none',\n referrer: 'no-referrer',\n mode: 'websocket',\n credentials: 'include',\n cache: 'no-store',\n redirect: 'error'\n })\n\n // Note: undici extension, allow setting custom headers.\n if (options.headers) {\n const headersList = new Headers(options.headers)[kHeadersList]\n\n request.headersList = headersList\n }\n\n // 3. Append (`Upgrade`, `websocket`) to request’s header list.\n // 4. Append (`Connection`, `Upgrade`) to request’s header list.\n // Note: both of these are handled by undici currently.\n // https://github.com/nodejs/undici/blob/68c269c4144c446f3f1220951338daef4a6b5ec4/lib/client.js#L1397\n\n // 5. Let keyValue be a nonce consisting of a randomly selected\n // 16-byte value that has been forgiving-base64-encoded and\n // isomorphic encoded.\n const keyValue = crypto.randomBytes(16).toString('base64')\n\n // 6. Append (`Sec-WebSocket-Key`, keyValue) to request’s\n // header list.\n request.headersList.append('sec-websocket-key', keyValue)\n\n // 7. Append (`Sec-WebSocket-Version`, `13`) to request’s\n // header list.\n request.headersList.append('sec-websocket-version', '13')\n\n // 8. For each protocol in protocols, combine\n // (`Sec-WebSocket-Protocol`, protocol) in request’s header\n // list.\n for (const protocol of protocols) {\n request.headersList.append('sec-websocket-protocol', protocol)\n }\n\n // 9. Let permessageDeflate be a user-agent defined\n // \"permessage-deflate\" extension header value.\n // https://github.com/mozilla/gecko-dev/blob/ce78234f5e653a5d3916813ff990f053510227bc/netwerk/protocol/websocket/WebSocketChannel.cpp#L2673\n // TODO: enable once permessage-deflate is supported\n const permessageDeflate = '' // 'permessage-deflate; 15'\n\n // 10. Append (`Sec-WebSocket-Extensions`, permessageDeflate) to\n // request’s header list.\n // request.headersList.append('sec-websocket-extensions', permessageDeflate)\n\n // 11. Fetch request with useParallelQueue set to true, and\n // processResponse given response being these steps:\n const controller = fetching({\n request,\n useParallelQueue: true,\n dispatcher: options.dispatcher ?? getGlobalDispatcher(),\n processResponse (response) {\n // 1. If response is a network error or its status is not 101,\n // fail the WebSocket connection.\n if (response.type === 'error' || response.status !== 101) {\n failWebsocketConnection(ws, 'Received network error or non-101 status code.')\n return\n }\n\n // 2. If protocols is not the empty list and extracting header\n // list values given `Sec-WebSocket-Protocol` and response’s\n // header list results in null, failure, or the empty byte\n // sequence, then fail the WebSocket connection.\n if (protocols.length !== 0 && !response.headersList.get('Sec-WebSocket-Protocol')) {\n failWebsocketConnection(ws, 'Server did not respond with sent protocols.')\n return\n }\n\n // 3. Follow the requirements stated step 2 to step 6, inclusive,\n // of the last set of steps in section 4.1 of The WebSocket\n // Protocol to validate response. This either results in fail\n // the WebSocket connection or the WebSocket connection is\n // established.\n\n // 2. If the response lacks an |Upgrade| header field or the |Upgrade|\n // header field contains a value that is not an ASCII case-\n // insensitive match for the value \"websocket\", the client MUST\n // _Fail the WebSocket Connection_.\n if (response.headersList.get('Upgrade')?.toLowerCase() !== 'websocket') {\n failWebsocketConnection(ws, 'Server did not set Upgrade header to \"websocket\".')\n return\n }\n\n // 3. If the response lacks a |Connection| header field or the\n // |Connection| header field doesn't contain a token that is an\n // ASCII case-insensitive match for the value \"Upgrade\", the client\n // MUST _Fail the WebSocket Connection_.\n if (response.headersList.get('Connection')?.toLowerCase() !== 'upgrade') {\n failWebsocketConnection(ws, 'Server did not set Connection header to \"upgrade\".')\n return\n }\n\n // 4. If the response lacks a |Sec-WebSocket-Accept| header field or\n // the |Sec-WebSocket-Accept| contains a value other than the\n // base64-encoded SHA-1 of the concatenation of the |Sec-WebSocket-\n // Key| (as a string, not base64-decoded) with the string \"258EAFA5-\n // E914-47DA-95CA-C5AB0DC85B11\" but ignoring any leading and\n // trailing whitespace, the client MUST _Fail the WebSocket\n // Connection_.\n const secWSAccept = response.headersList.get('Sec-WebSocket-Accept')\n const digest = crypto.createHash('sha1').update(keyValue + uid).digest('base64')\n if (secWSAccept !== digest) {\n failWebsocketConnection(ws, 'Incorrect hash received in Sec-WebSocket-Accept header.')\n return\n }\n\n // 5. If the response includes a |Sec-WebSocket-Extensions| header\n // field and this header field indicates the use of an extension\n // that was not present in the client's handshake (the server has\n // indicated an extension not requested by the client), the client\n // MUST _Fail the WebSocket Connection_. (The parsing of this\n // header field to determine which extensions are requested is\n // discussed in Section 9.1.)\n const secExtension = response.headersList.get('Sec-WebSocket-Extensions')\n\n if (secExtension !== null && secExtension !== permessageDeflate) {\n failWebsocketConnection(ws, 'Received different permessage-deflate than the one set.')\n return\n }\n\n // 6. If the response includes a |Sec-WebSocket-Protocol| header field\n // and this header field indicates the use of a subprotocol that was\n // not present in the client's handshake (the server has indicated a\n // subprotocol not requested by the client), the client MUST _Fail\n // the WebSocket Connection_.\n const secProtocol = response.headersList.get('Sec-WebSocket-Protocol')\n\n if (secProtocol !== null && secProtocol !== request.headersList.get('Sec-WebSocket-Protocol')) {\n failWebsocketConnection(ws, 'Protocol was not set in the opening handshake.')\n return\n }\n\n response.socket.on('data', onSocketData)\n response.socket.on('close', onSocketClose)\n response.socket.on('error', onSocketError)\n\n if (channels.open.hasSubscribers) {\n channels.open.publish({\n address: response.socket.address(),\n protocol: secProtocol,\n extensions: secExtension\n })\n }\n\n onEstablish(response)\n }\n })\n\n return controller\n}\n\n/**\n * @param {Buffer} chunk\n */\nfunction onSocketData (chunk) {\n if (!this.ws[kByteParser].write(chunk)) {\n this.pause()\n }\n}\n\n/**\n * @see https://websockets.spec.whatwg.org/#feedback-from-the-protocol\n * @see https://datatracker.ietf.org/doc/html/rfc6455#section-7.1.4\n */\nfunction onSocketClose () {\n const { ws } = this\n\n // If the TCP connection was closed after the\n // WebSocket closing handshake was completed, the WebSocket connection\n // is said to have been closed _cleanly_.\n const wasClean = ws[kSentClose] && ws[kReceivedClose]\n\n let code = 1005\n let reason = ''\n\n const result = ws[kByteParser].closingInfo\n\n if (result) {\n code = result.code ?? 1005\n reason = result.reason\n } else if (!ws[kSentClose]) {\n // If _The WebSocket\n // Connection is Closed_ and no Close control frame was received by the\n // endpoint (such as could occur if the underlying transport connection\n // is lost), _The WebSocket Connection Close Code_ is considered to be\n // 1006.\n code = 1006\n }\n\n // 1. Change the ready state to CLOSED (3).\n ws[kReadyState] = states.CLOSED\n\n // 2. If the user agent was required to fail the WebSocket\n // connection, or if the WebSocket connection was closed\n // after being flagged as full, fire an event named error\n // at the WebSocket object.\n // TODO\n\n // 3. Fire an event named close at the WebSocket object,\n // using CloseEvent, with the wasClean attribute\n // initialized to true if the connection closed cleanly\n // and false otherwise, the code attribute initialized to\n // the WebSocket connection close code, and the reason\n // attribute initialized to the result of applying UTF-8\n // decode without BOM to the WebSocket connection close\n // reason.\n fireEvent('close', ws, CloseEvent, {\n wasClean, code, reason\n })\n\n if (channels.close.hasSubscribers) {\n channels.close.publish({\n websocket: ws,\n code,\n reason\n })\n }\n}\n\nfunction onSocketError (error) {\n const { ws } = this\n\n ws[kReadyState] = states.CLOSING\n\n if (channels.socketError.hasSubscribers) {\n channels.socketError.publish(error)\n }\n\n this.destroy()\n}\n\nmodule.exports = {\n establishWebSocketConnection\n}\n","'use strict'\n\n// This is a Globally Unique Identifier unique used\n// to validate that the endpoint accepts websocket\n// connections.\n// See https://www.rfc-editor.org/rfc/rfc6455.html#section-1.3\nconst uid = '258EAFA5-E914-47DA-95CA-C5AB0DC85B11'\n\n/** @type {PropertyDescriptor} */\nconst staticPropertyDescriptors = {\n enumerable: true,\n writable: false,\n configurable: false\n}\n\nconst states = {\n CONNECTING: 0,\n OPEN: 1,\n CLOSING: 2,\n CLOSED: 3\n}\n\nconst opcodes = {\n CONTINUATION: 0x0,\n TEXT: 0x1,\n BINARY: 0x2,\n CLOSE: 0x8,\n PING: 0x9,\n PONG: 0xA\n}\n\nconst maxUnsigned16Bit = 2 ** 16 - 1 // 65535\n\nconst parserStates = {\n INFO: 0,\n PAYLOADLENGTH_16: 2,\n PAYLOADLENGTH_64: 3,\n READ_DATA: 4\n}\n\nconst emptyBuffer = Buffer.allocUnsafe(0)\n\nmodule.exports = {\n uid,\n staticPropertyDescriptors,\n states,\n opcodes,\n maxUnsigned16Bit,\n parserStates,\n emptyBuffer\n}\n","'use strict'\n\nconst { webidl } = require('../fetch/webidl')\nconst { kEnumerableProperty } = require('../core/util')\nconst { MessagePort } = require('worker_threads')\n\n/**\n * @see https://html.spec.whatwg.org/multipage/comms.html#messageevent\n */\nclass MessageEvent extends Event {\n #eventInit\n\n constructor (type, eventInitDict = {}) {\n webidl.argumentLengthCheck(arguments, 1, { header: 'MessageEvent constructor' })\n\n type = webidl.converters.DOMString(type)\n eventInitDict = webidl.converters.MessageEventInit(eventInitDict)\n\n super(type, eventInitDict)\n\n this.#eventInit = eventInitDict\n }\n\n get data () {\n webidl.brandCheck(this, MessageEvent)\n\n return this.#eventInit.data\n }\n\n get origin () {\n webidl.brandCheck(this, MessageEvent)\n\n return this.#eventInit.origin\n }\n\n get lastEventId () {\n webidl.brandCheck(this, MessageEvent)\n\n return this.#eventInit.lastEventId\n }\n\n get source () {\n webidl.brandCheck(this, MessageEvent)\n\n return this.#eventInit.source\n }\n\n get ports () {\n webidl.brandCheck(this, MessageEvent)\n\n if (!Object.isFrozen(this.#eventInit.ports)) {\n Object.freeze(this.#eventInit.ports)\n }\n\n return this.#eventInit.ports\n }\n\n initMessageEvent (\n type,\n bubbles = false,\n cancelable = false,\n data = null,\n origin = '',\n lastEventId = '',\n source = null,\n ports = []\n ) {\n webidl.brandCheck(this, MessageEvent)\n\n webidl.argumentLengthCheck(arguments, 1, { header: 'MessageEvent.initMessageEvent' })\n\n return new MessageEvent(type, {\n bubbles, cancelable, data, origin, lastEventId, source, ports\n })\n }\n}\n\n/**\n * @see https://websockets.spec.whatwg.org/#the-closeevent-interface\n */\nclass CloseEvent extends Event {\n #eventInit\n\n constructor (type, eventInitDict = {}) {\n webidl.argumentLengthCheck(arguments, 1, { header: 'CloseEvent constructor' })\n\n type = webidl.converters.DOMString(type)\n eventInitDict = webidl.converters.CloseEventInit(eventInitDict)\n\n super(type, eventInitDict)\n\n this.#eventInit = eventInitDict\n }\n\n get wasClean () {\n webidl.brandCheck(this, CloseEvent)\n\n return this.#eventInit.wasClean\n }\n\n get code () {\n webidl.brandCheck(this, CloseEvent)\n\n return this.#eventInit.code\n }\n\n get reason () {\n webidl.brandCheck(this, CloseEvent)\n\n return this.#eventInit.reason\n }\n}\n\n// https://html.spec.whatwg.org/multipage/webappapis.html#the-errorevent-interface\nclass ErrorEvent extends Event {\n #eventInit\n\n constructor (type, eventInitDict) {\n webidl.argumentLengthCheck(arguments, 1, { header: 'ErrorEvent constructor' })\n\n super(type, eventInitDict)\n\n type = webidl.converters.DOMString(type)\n eventInitDict = webidl.converters.ErrorEventInit(eventInitDict ?? {})\n\n this.#eventInit = eventInitDict\n }\n\n get message () {\n webidl.brandCheck(this, ErrorEvent)\n\n return this.#eventInit.message\n }\n\n get filename () {\n webidl.brandCheck(this, ErrorEvent)\n\n return this.#eventInit.filename\n }\n\n get lineno () {\n webidl.brandCheck(this, ErrorEvent)\n\n return this.#eventInit.lineno\n }\n\n get colno () {\n webidl.brandCheck(this, ErrorEvent)\n\n return this.#eventInit.colno\n }\n\n get error () {\n webidl.brandCheck(this, ErrorEvent)\n\n return this.#eventInit.error\n }\n}\n\nObject.defineProperties(MessageEvent.prototype, {\n [Symbol.toStringTag]: {\n value: 'MessageEvent',\n configurable: true\n },\n data: kEnumerableProperty,\n origin: kEnumerableProperty,\n lastEventId: kEnumerableProperty,\n source: kEnumerableProperty,\n ports: kEnumerableProperty,\n initMessageEvent: kEnumerableProperty\n})\n\nObject.defineProperties(CloseEvent.prototype, {\n [Symbol.toStringTag]: {\n value: 'CloseEvent',\n configurable: true\n },\n reason: kEnumerableProperty,\n code: kEnumerableProperty,\n wasClean: kEnumerableProperty\n})\n\nObject.defineProperties(ErrorEvent.prototype, {\n [Symbol.toStringTag]: {\n value: 'ErrorEvent',\n configurable: true\n },\n message: kEnumerableProperty,\n filename: kEnumerableProperty,\n lineno: kEnumerableProperty,\n colno: kEnumerableProperty,\n error: kEnumerableProperty\n})\n\nwebidl.converters.MessagePort = webidl.interfaceConverter(MessagePort)\n\nwebidl.converters['sequence'] = webidl.sequenceConverter(\n webidl.converters.MessagePort\n)\n\nconst eventInit = [\n {\n key: 'bubbles',\n converter: webidl.converters.boolean,\n defaultValue: false\n },\n {\n key: 'cancelable',\n converter: webidl.converters.boolean,\n defaultValue: false\n },\n {\n key: 'composed',\n converter: webidl.converters.boolean,\n defaultValue: false\n }\n]\n\nwebidl.converters.MessageEventInit = webidl.dictionaryConverter([\n ...eventInit,\n {\n key: 'data',\n converter: webidl.converters.any,\n defaultValue: null\n },\n {\n key: 'origin',\n converter: webidl.converters.USVString,\n defaultValue: ''\n },\n {\n key: 'lastEventId',\n converter: webidl.converters.DOMString,\n defaultValue: ''\n },\n {\n key: 'source',\n // Node doesn't implement WindowProxy or ServiceWorker, so the only\n // valid value for source is a MessagePort.\n converter: webidl.nullableConverter(webidl.converters.MessagePort),\n defaultValue: null\n },\n {\n key: 'ports',\n converter: webidl.converters['sequence'],\n get defaultValue () {\n return []\n }\n }\n])\n\nwebidl.converters.CloseEventInit = webidl.dictionaryConverter([\n ...eventInit,\n {\n key: 'wasClean',\n converter: webidl.converters.boolean,\n defaultValue: false\n },\n {\n key: 'code',\n converter: webidl.converters['unsigned short'],\n defaultValue: 0\n },\n {\n key: 'reason',\n converter: webidl.converters.USVString,\n defaultValue: ''\n }\n])\n\nwebidl.converters.ErrorEventInit = webidl.dictionaryConverter([\n ...eventInit,\n {\n key: 'message',\n converter: webidl.converters.DOMString,\n defaultValue: ''\n },\n {\n key: 'filename',\n converter: webidl.converters.USVString,\n defaultValue: ''\n },\n {\n key: 'lineno',\n converter: webidl.converters['unsigned long'],\n defaultValue: 0\n },\n {\n key: 'colno',\n converter: webidl.converters['unsigned long'],\n defaultValue: 0\n },\n {\n key: 'error',\n converter: webidl.converters.any\n }\n])\n\nmodule.exports = {\n MessageEvent,\n CloseEvent,\n ErrorEvent\n}\n","'use strict'\n\nconst { maxUnsigned16Bit } = require('./constants')\n\n/** @type {import('crypto')} */\nlet crypto\ntry {\n crypto = require('crypto')\n} catch {\n\n}\n\nclass WebsocketFrameSend {\n /**\n * @param {Buffer|undefined} data\n */\n constructor (data) {\n this.frameData = data\n this.maskKey = crypto.randomBytes(4)\n }\n\n createFrame (opcode) {\n const bodyLength = this.frameData?.byteLength ?? 0\n\n /** @type {number} */\n let payloadLength = bodyLength // 0-125\n let offset = 6\n\n if (bodyLength > maxUnsigned16Bit) {\n offset += 8 // payload length is next 8 bytes\n payloadLength = 127\n } else if (bodyLength > 125) {\n offset += 2 // payload length is next 2 bytes\n payloadLength = 126\n }\n\n const buffer = Buffer.allocUnsafe(bodyLength + offset)\n\n // Clear first 2 bytes, everything else is overwritten\n buffer[0] = buffer[1] = 0\n buffer[0] |= 0x80 // FIN\n buffer[0] = (buffer[0] & 0xF0) + opcode // opcode\n\n /*! ws. MIT License. Einar Otto Stangvik */\n buffer[offset - 4] = this.maskKey[0]\n buffer[offset - 3] = this.maskKey[1]\n buffer[offset - 2] = this.maskKey[2]\n buffer[offset - 1] = this.maskKey[3]\n\n buffer[1] = payloadLength\n\n if (payloadLength === 126) {\n buffer.writeUInt16BE(bodyLength, 2)\n } else if (payloadLength === 127) {\n // Clear extended payload length\n buffer[2] = buffer[3] = 0\n buffer.writeUIntBE(bodyLength, 4, 6)\n }\n\n buffer[1] |= 0x80 // MASK\n\n // mask body\n for (let i = 0; i < bodyLength; i++) {\n buffer[offset + i] = this.frameData[i] ^ this.maskKey[i % 4]\n }\n\n return buffer\n }\n}\n\nmodule.exports = {\n WebsocketFrameSend\n}\n","'use strict'\n\nconst { Writable } = require('stream')\nconst diagnosticsChannel = require('diagnostics_channel')\nconst { parserStates, opcodes, states, emptyBuffer } = require('./constants')\nconst { kReadyState, kSentClose, kResponse, kReceivedClose } = require('./symbols')\nconst { isValidStatusCode, failWebsocketConnection, websocketMessageReceived } = require('./util')\nconst { WebsocketFrameSend } = require('./frame')\n\n// This code was influenced by ws released under the MIT license.\n// Copyright (c) 2011 Einar Otto Stangvik \n// Copyright (c) 2013 Arnout Kazemier and contributors\n// Copyright (c) 2016 Luigi Pinca and contributors\n\nconst channels = {}\nchannels.ping = diagnosticsChannel.channel('undici:websocket:ping')\nchannels.pong = diagnosticsChannel.channel('undici:websocket:pong')\n\nclass ByteParser extends Writable {\n #buffers = []\n #byteOffset = 0\n\n #state = parserStates.INFO\n\n #info = {}\n #fragments = []\n\n constructor (ws) {\n super()\n\n this.ws = ws\n }\n\n /**\n * @param {Buffer} chunk\n * @param {() => void} callback\n */\n _write (chunk, _, callback) {\n this.#buffers.push(chunk)\n this.#byteOffset += chunk.length\n\n this.run(callback)\n }\n\n /**\n * Runs whenever a new chunk is received.\n * Callback is called whenever there are no more chunks buffering,\n * or not enough bytes are buffered to parse.\n */\n run (callback) {\n while (true) {\n if (this.#state === parserStates.INFO) {\n // If there aren't enough bytes to parse the payload length, etc.\n if (this.#byteOffset < 2) {\n return callback()\n }\n\n const buffer = this.consume(2)\n\n this.#info.fin = (buffer[0] & 0x80) !== 0\n this.#info.opcode = buffer[0] & 0x0F\n\n // If we receive a fragmented message, we use the type of the first\n // frame to parse the full message as binary/text, when it's terminated\n this.#info.originalOpcode ??= this.#info.opcode\n\n this.#info.fragmented = !this.#info.fin && this.#info.opcode !== opcodes.CONTINUATION\n\n if (this.#info.fragmented && this.#info.opcode !== opcodes.BINARY && this.#info.opcode !== opcodes.TEXT) {\n // Only text and binary frames can be fragmented\n failWebsocketConnection(this.ws, 'Invalid frame type was fragmented.')\n return\n }\n\n const payloadLength = buffer[1] & 0x7F\n\n if (payloadLength <= 125) {\n this.#info.payloadLength = payloadLength\n this.#state = parserStates.READ_DATA\n } else if (payloadLength === 126) {\n this.#state = parserStates.PAYLOADLENGTH_16\n } else if (payloadLength === 127) {\n this.#state = parserStates.PAYLOADLENGTH_64\n }\n\n if (this.#info.fragmented && payloadLength > 125) {\n // A fragmented frame can't be fragmented itself\n failWebsocketConnection(this.ws, 'Fragmented frame exceeded 125 bytes.')\n return\n } else if (\n (this.#info.opcode === opcodes.PING ||\n this.#info.opcode === opcodes.PONG ||\n this.#info.opcode === opcodes.CLOSE) &&\n payloadLength > 125\n ) {\n // Control frames can have a payload length of 125 bytes MAX\n failWebsocketConnection(this.ws, 'Payload length for control frame exceeded 125 bytes.')\n return\n } else if (this.#info.opcode === opcodes.CLOSE) {\n if (payloadLength === 1) {\n failWebsocketConnection(this.ws, 'Received close frame with a 1-byte body.')\n return\n }\n\n const body = this.consume(payloadLength)\n\n this.#info.closeInfo = this.parseCloseBody(false, body)\n\n if (!this.ws[kSentClose]) {\n // If an endpoint receives a Close frame and did not previously send a\n // Close frame, the endpoint MUST send a Close frame in response. (When\n // sending a Close frame in response, the endpoint typically echos the\n // status code it received.)\n const body = Buffer.allocUnsafe(2)\n body.writeUInt16BE(this.#info.closeInfo.code, 0)\n const closeFrame = new WebsocketFrameSend(body)\n\n this.ws[kResponse].socket.write(\n closeFrame.createFrame(opcodes.CLOSE),\n (err) => {\n if (!err) {\n this.ws[kSentClose] = true\n }\n }\n )\n }\n\n // Upon either sending or receiving a Close control frame, it is said\n // that _The WebSocket Closing Handshake is Started_ and that the\n // WebSocket connection is in the CLOSING state.\n this.ws[kReadyState] = states.CLOSING\n this.ws[kReceivedClose] = true\n\n this.end()\n\n return\n } else if (this.#info.opcode === opcodes.PING) {\n // Upon receipt of a Ping frame, an endpoint MUST send a Pong frame in\n // response, unless it already received a Close frame.\n // A Pong frame sent in response to a Ping frame must have identical\n // \"Application data\"\n\n const body = this.consume(payloadLength)\n\n if (!this.ws[kReceivedClose]) {\n const frame = new WebsocketFrameSend(body)\n\n this.ws[kResponse].socket.write(frame.createFrame(opcodes.PONG))\n\n if (channels.ping.hasSubscribers) {\n channels.ping.publish({\n payload: body\n })\n }\n }\n\n this.#state = parserStates.INFO\n\n if (this.#byteOffset > 0) {\n continue\n } else {\n callback()\n return\n }\n } else if (this.#info.opcode === opcodes.PONG) {\n // A Pong frame MAY be sent unsolicited. This serves as a\n // unidirectional heartbeat. A response to an unsolicited Pong frame is\n // not expected.\n\n const body = this.consume(payloadLength)\n\n if (channels.pong.hasSubscribers) {\n channels.pong.publish({\n payload: body\n })\n }\n\n if (this.#byteOffset > 0) {\n continue\n } else {\n callback()\n return\n }\n }\n } else if (this.#state === parserStates.PAYLOADLENGTH_16) {\n if (this.#byteOffset < 2) {\n return callback()\n }\n\n const buffer = this.consume(2)\n\n this.#info.payloadLength = buffer.readUInt16BE(0)\n this.#state = parserStates.READ_DATA\n } else if (this.#state === parserStates.PAYLOADLENGTH_64) {\n if (this.#byteOffset < 8) {\n return callback()\n }\n\n const buffer = this.consume(8)\n const upper = buffer.readUInt32BE(0)\n\n // 2^31 is the maxinimum bytes an arraybuffer can contain\n // on 32-bit systems. Although, on 64-bit systems, this is\n // 2^53-1 bytes.\n // https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Errors/Invalid_array_length\n // https://source.chromium.org/chromium/chromium/src/+/main:v8/src/common/globals.h;drc=1946212ac0100668f14eb9e2843bdd846e510a1e;bpv=1;bpt=1;l=1275\n // https://source.chromium.org/chromium/chromium/src/+/main:v8/src/objects/js-array-buffer.h;l=34;drc=1946212ac0100668f14eb9e2843bdd846e510a1e\n if (upper > 2 ** 31 - 1) {\n failWebsocketConnection(this.ws, 'Received payload length > 2^31 bytes.')\n return\n }\n\n const lower = buffer.readUInt32BE(4)\n\n this.#info.payloadLength = (upper << 8) + lower\n this.#state = parserStates.READ_DATA\n } else if (this.#state === parserStates.READ_DATA) {\n if (this.#byteOffset < this.#info.payloadLength) {\n // If there is still more data in this chunk that needs to be read\n return callback()\n } else if (this.#byteOffset >= this.#info.payloadLength) {\n // If the server sent multiple frames in a single chunk\n\n const body = this.consume(this.#info.payloadLength)\n\n this.#fragments.push(body)\n\n // If the frame is unfragmented, or a fragmented frame was terminated,\n // a message was received\n if (!this.#info.fragmented || (this.#info.fin && this.#info.opcode === opcodes.CONTINUATION)) {\n const fullMessage = Buffer.concat(this.#fragments)\n\n websocketMessageReceived(this.ws, this.#info.originalOpcode, fullMessage)\n\n this.#info = {}\n this.#fragments.length = 0\n }\n\n this.#state = parserStates.INFO\n }\n }\n\n if (this.#byteOffset > 0) {\n continue\n } else {\n callback()\n break\n }\n }\n }\n\n /**\n * Take n bytes from the buffered Buffers\n * @param {number} n\n * @returns {Buffer|null}\n */\n consume (n) {\n if (n > this.#byteOffset) {\n return null\n } else if (n === 0) {\n return emptyBuffer\n }\n\n if (this.#buffers[0].length === n) {\n this.#byteOffset -= this.#buffers[0].length\n return this.#buffers.shift()\n }\n\n const buffer = Buffer.allocUnsafe(n)\n let offset = 0\n\n while (offset !== n) {\n const next = this.#buffers[0]\n const { length } = next\n\n if (length + offset === n) {\n buffer.set(this.#buffers.shift(), offset)\n break\n } else if (length + offset > n) {\n buffer.set(next.subarray(0, n - offset), offset)\n this.#buffers[0] = next.subarray(n - offset)\n break\n } else {\n buffer.set(this.#buffers.shift(), offset)\n offset += next.length\n }\n }\n\n this.#byteOffset -= n\n\n return buffer\n }\n\n parseCloseBody (onlyCode, data) {\n // https://datatracker.ietf.org/doc/html/rfc6455#section-7.1.5\n /** @type {number|undefined} */\n let code\n\n if (data.length >= 2) {\n // _The WebSocket Connection Close Code_ is\n // defined as the status code (Section 7.4) contained in the first Close\n // control frame received by the application\n code = data.readUInt16BE(0)\n }\n\n if (onlyCode) {\n if (!isValidStatusCode(code)) {\n return null\n }\n\n return { code }\n }\n\n // https://datatracker.ietf.org/doc/html/rfc6455#section-7.1.6\n /** @type {Buffer} */\n let reason = data.subarray(2)\n\n // Remove BOM\n if (reason[0] === 0xEF && reason[1] === 0xBB && reason[2] === 0xBF) {\n reason = reason.subarray(3)\n }\n\n if (code !== undefined && !isValidStatusCode(code)) {\n return null\n }\n\n try {\n // TODO: optimize this\n reason = new TextDecoder('utf-8', { fatal: true }).decode(reason)\n } catch {\n return null\n }\n\n return { code, reason }\n }\n\n get closingInfo () {\n return this.#info.closeInfo\n }\n}\n\nmodule.exports = {\n ByteParser\n}\n","'use strict'\n\nmodule.exports = {\n kWebSocketURL: Symbol('url'),\n kReadyState: Symbol('ready state'),\n kController: Symbol('controller'),\n kResponse: Symbol('response'),\n kBinaryType: Symbol('binary type'),\n kSentClose: Symbol('sent close'),\n kReceivedClose: Symbol('received close'),\n kByteParser: Symbol('byte parser')\n}\n","'use strict'\n\nconst { kReadyState, kController, kResponse, kBinaryType, kWebSocketURL } = require('./symbols')\nconst { states, opcodes } = require('./constants')\nconst { MessageEvent, ErrorEvent } = require('./events')\n\n/* globals Blob */\n\n/**\n * @param {import('./websocket').WebSocket} ws\n */\nfunction isEstablished (ws) {\n // If the server's response is validated as provided for above, it is\n // said that _The WebSocket Connection is Established_ and that the\n // WebSocket Connection is in the OPEN state.\n return ws[kReadyState] === states.OPEN\n}\n\n/**\n * @param {import('./websocket').WebSocket} ws\n */\nfunction isClosing (ws) {\n // Upon either sending or receiving a Close control frame, it is said\n // that _The WebSocket Closing Handshake is Started_ and that the\n // WebSocket connection is in the CLOSING state.\n return ws[kReadyState] === states.CLOSING\n}\n\n/**\n * @param {import('./websocket').WebSocket} ws\n */\nfunction isClosed (ws) {\n return ws[kReadyState] === states.CLOSED\n}\n\n/**\n * @see https://dom.spec.whatwg.org/#concept-event-fire\n * @param {string} e\n * @param {EventTarget} target\n * @param {EventInit | undefined} eventInitDict\n */\nfunction fireEvent (e, target, eventConstructor = Event, eventInitDict) {\n // 1. If eventConstructor is not given, then let eventConstructor be Event.\n\n // 2. Let event be the result of creating an event given eventConstructor,\n // in the relevant realm of target.\n // 3. Initialize event’s type attribute to e.\n const event = new eventConstructor(e, eventInitDict) // eslint-disable-line new-cap\n\n // 4. Initialize any other IDL attributes of event as described in the\n // invocation of this algorithm.\n\n // 5. Return the result of dispatching event at target, with legacy target\n // override flag set if set.\n target.dispatchEvent(event)\n}\n\n/**\n * @see https://websockets.spec.whatwg.org/#feedback-from-the-protocol\n * @param {import('./websocket').WebSocket} ws\n * @param {number} type Opcode\n * @param {Buffer} data application data\n */\nfunction websocketMessageReceived (ws, type, data) {\n // 1. If ready state is not OPEN (1), then return.\n if (ws[kReadyState] !== states.OPEN) {\n return\n }\n\n // 2. Let dataForEvent be determined by switching on type and binary type:\n let dataForEvent\n\n if (type === opcodes.TEXT) {\n // -> type indicates that the data is Text\n // a new DOMString containing data\n try {\n dataForEvent = new TextDecoder('utf-8', { fatal: true }).decode(data)\n } catch {\n failWebsocketConnection(ws, 'Received invalid UTF-8 in text frame.')\n return\n }\n } else if (type === opcodes.BINARY) {\n if (ws[kBinaryType] === 'blob') {\n // -> type indicates that the data is Binary and binary type is \"blob\"\n // a new Blob object, created in the relevant Realm of the WebSocket\n // object, that represents data as its raw data\n dataForEvent = new Blob([data])\n } else {\n // -> type indicates that the data is Binary and binary type is \"arraybuffer\"\n // a new ArrayBuffer object, created in the relevant Realm of the\n // WebSocket object, whose contents are data\n dataForEvent = new Uint8Array(data).buffer\n }\n }\n\n // 3. Fire an event named message at the WebSocket object, using MessageEvent,\n // with the origin attribute initialized to the serialization of the WebSocket\n // object’s url's origin, and the data attribute initialized to dataForEvent.\n fireEvent('message', ws, MessageEvent, {\n origin: ws[kWebSocketURL].origin,\n data: dataForEvent\n })\n}\n\n/**\n * @see https://datatracker.ietf.org/doc/html/rfc6455\n * @see https://datatracker.ietf.org/doc/html/rfc2616\n * @see https://bugs.chromium.org/p/chromium/issues/detail?id=398407\n * @param {string} protocol\n */\nfunction isValidSubprotocol (protocol) {\n // If present, this value indicates one\n // or more comma-separated subprotocol the client wishes to speak,\n // ordered by preference. The elements that comprise this value\n // MUST be non-empty strings with characters in the range U+0021 to\n // U+007E not including separator characters as defined in\n // [RFC2616] and MUST all be unique strings.\n if (protocol.length === 0) {\n return false\n }\n\n for (const char of protocol) {\n const code = char.charCodeAt(0)\n\n if (\n code < 0x21 ||\n code > 0x7E ||\n char === '(' ||\n char === ')' ||\n char === '<' ||\n char === '>' ||\n char === '@' ||\n char === ',' ||\n char === ';' ||\n char === ':' ||\n char === '\\\\' ||\n char === '\"' ||\n char === '/' ||\n char === '[' ||\n char === ']' ||\n char === '?' ||\n char === '=' ||\n char === '{' ||\n char === '}' ||\n code === 32 || // SP\n code === 9 // HT\n ) {\n return false\n }\n }\n\n return true\n}\n\n/**\n * @see https://datatracker.ietf.org/doc/html/rfc6455#section-7-4\n * @param {number} code\n */\nfunction isValidStatusCode (code) {\n if (code >= 1000 && code < 1015) {\n return (\n code !== 1004 && // reserved\n code !== 1005 && // \"MUST NOT be set as a status code\"\n code !== 1006 // \"MUST NOT be set as a status code\"\n )\n }\n\n return code >= 3000 && code <= 4999\n}\n\n/**\n * @param {import('./websocket').WebSocket} ws\n * @param {string|undefined} reason\n */\nfunction failWebsocketConnection (ws, reason) {\n const { [kController]: controller, [kResponse]: response } = ws\n\n controller.abort()\n\n if (response?.socket && !response.socket.destroyed) {\n response.socket.destroy()\n }\n\n if (reason) {\n fireEvent('error', ws, ErrorEvent, {\n error: new Error(reason)\n })\n }\n}\n\nmodule.exports = {\n isEstablished,\n isClosing,\n isClosed,\n fireEvent,\n isValidSubprotocol,\n isValidStatusCode,\n failWebsocketConnection,\n websocketMessageReceived\n}\n","'use strict'\n\nconst { webidl } = require('../fetch/webidl')\nconst { DOMException } = require('../fetch/constants')\nconst { URLSerializer } = require('../fetch/dataURL')\nconst { getGlobalOrigin } = require('../fetch/global')\nconst { staticPropertyDescriptors, states, opcodes, emptyBuffer } = require('./constants')\nconst {\n kWebSocketURL,\n kReadyState,\n kController,\n kBinaryType,\n kResponse,\n kSentClose,\n kByteParser\n} = require('./symbols')\nconst { isEstablished, isClosing, isValidSubprotocol, failWebsocketConnection, fireEvent } = require('./util')\nconst { establishWebSocketConnection } = require('./connection')\nconst { WebsocketFrameSend } = require('./frame')\nconst { ByteParser } = require('./receiver')\nconst { kEnumerableProperty, isBlobLike } = require('../core/util')\nconst { getGlobalDispatcher } = require('../global')\nconst { types } = require('util')\n\nlet experimentalWarned = false\n\n// https://websockets.spec.whatwg.org/#interface-definition\nclass WebSocket extends EventTarget {\n #events = {\n open: null,\n error: null,\n close: null,\n message: null\n }\n\n #bufferedAmount = 0\n #protocol = ''\n #extensions = ''\n\n /**\n * @param {string} url\n * @param {string|string[]} protocols\n */\n constructor (url, protocols = []) {\n super()\n\n webidl.argumentLengthCheck(arguments, 1, { header: 'WebSocket constructor' })\n\n if (!experimentalWarned) {\n experimentalWarned = true\n process.emitWarning('WebSockets are experimental, expect them to change at any time.', {\n code: 'UNDICI-WS'\n })\n }\n\n const options = webidl.converters['DOMString or sequence or WebSocketInit'](protocols)\n\n url = webidl.converters.USVString(url)\n protocols = options.protocols\n\n // 1. Let baseURL be this's relevant settings object's API base URL.\n const baseURL = getGlobalOrigin()\n\n // 1. Let urlRecord be the result of applying the URL parser to url with baseURL.\n let urlRecord\n\n try {\n urlRecord = new URL(url, baseURL)\n } catch (e) {\n // 3. If urlRecord is failure, then throw a \"SyntaxError\" DOMException.\n throw new DOMException(e, 'SyntaxError')\n }\n\n // 4. If urlRecord’s scheme is \"http\", then set urlRecord’s scheme to \"ws\".\n if (urlRecord.protocol === 'http:') {\n urlRecord.protocol = 'ws:'\n } else if (urlRecord.protocol === 'https:') {\n // 5. Otherwise, if urlRecord’s scheme is \"https\", set urlRecord’s scheme to \"wss\".\n urlRecord.protocol = 'wss:'\n }\n\n // 6. If urlRecord’s scheme is not \"ws\" or \"wss\", then throw a \"SyntaxError\" DOMException.\n if (urlRecord.protocol !== 'ws:' && urlRecord.protocol !== 'wss:') {\n throw new DOMException(\n `Expected a ws: or wss: protocol, got ${urlRecord.protocol}`,\n 'SyntaxError'\n )\n }\n\n // 7. If urlRecord’s fragment is non-null, then throw a \"SyntaxError\"\n // DOMException.\n if (urlRecord.hash || urlRecord.href.endsWith('#')) {\n throw new DOMException('Got fragment', 'SyntaxError')\n }\n\n // 8. If protocols is a string, set protocols to a sequence consisting\n // of just that string.\n if (typeof protocols === 'string') {\n protocols = [protocols]\n }\n\n // 9. If any of the values in protocols occur more than once or otherwise\n // fail to match the requirements for elements that comprise the value\n // of `Sec-WebSocket-Protocol` fields as defined by The WebSocket\n // protocol, then throw a \"SyntaxError\" DOMException.\n if (protocols.length !== new Set(protocols.map(p => p.toLowerCase())).size) {\n throw new DOMException('Invalid Sec-WebSocket-Protocol value', 'SyntaxError')\n }\n\n if (protocols.length > 0 && !protocols.every(p => isValidSubprotocol(p))) {\n throw new DOMException('Invalid Sec-WebSocket-Protocol value', 'SyntaxError')\n }\n\n // 10. Set this's url to urlRecord.\n this[kWebSocketURL] = new URL(urlRecord.href)\n\n // 11. Let client be this's relevant settings object.\n\n // 12. Run this step in parallel:\n\n // 1. Establish a WebSocket connection given urlRecord, protocols,\n // and client.\n this[kController] = establishWebSocketConnection(\n urlRecord,\n protocols,\n this,\n (response) => this.#onConnectionEstablished(response),\n options\n )\n\n // Each WebSocket object has an associated ready state, which is a\n // number representing the state of the connection. Initially it must\n // be CONNECTING (0).\n this[kReadyState] = WebSocket.CONNECTING\n\n // The extensions attribute must initially return the empty string.\n\n // The protocol attribute must initially return the empty string.\n\n // Each WebSocket object has an associated binary type, which is a\n // BinaryType. Initially it must be \"blob\".\n this[kBinaryType] = 'blob'\n }\n\n /**\n * @see https://websockets.spec.whatwg.org/#dom-websocket-close\n * @param {number|undefined} code\n * @param {string|undefined} reason\n */\n close (code = undefined, reason = undefined) {\n webidl.brandCheck(this, WebSocket)\n\n if (code !== undefined) {\n code = webidl.converters['unsigned short'](code, { clamp: true })\n }\n\n if (reason !== undefined) {\n reason = webidl.converters.USVString(reason)\n }\n\n // 1. If code is present, but is neither an integer equal to 1000 nor an\n // integer in the range 3000 to 4999, inclusive, throw an\n // \"InvalidAccessError\" DOMException.\n if (code !== undefined) {\n if (code !== 1000 && (code < 3000 || code > 4999)) {\n throw new DOMException('invalid code', 'InvalidAccessError')\n }\n }\n\n let reasonByteLength = 0\n\n // 2. If reason is present, then run these substeps:\n if (reason !== undefined) {\n // 1. Let reasonBytes be the result of encoding reason.\n // 2. If reasonBytes is longer than 123 bytes, then throw a\n // \"SyntaxError\" DOMException.\n reasonByteLength = Buffer.byteLength(reason)\n\n if (reasonByteLength > 123) {\n throw new DOMException(\n `Reason must be less than 123 bytes; received ${reasonByteLength}`,\n 'SyntaxError'\n )\n }\n }\n\n // 3. Run the first matching steps from the following list:\n if (this[kReadyState] === WebSocket.CLOSING || this[kReadyState] === WebSocket.CLOSED) {\n // If this's ready state is CLOSING (2) or CLOSED (3)\n // Do nothing.\n } else if (!isEstablished(this)) {\n // If the WebSocket connection is not yet established\n // Fail the WebSocket connection and set this's ready state\n // to CLOSING (2).\n failWebsocketConnection(this, 'Connection was closed before it was established.')\n this[kReadyState] = WebSocket.CLOSING\n } else if (!isClosing(this)) {\n // If the WebSocket closing handshake has not yet been started\n // Start the WebSocket closing handshake and set this's ready\n // state to CLOSING (2).\n // - If neither code nor reason is present, the WebSocket Close\n // message must not have a body.\n // - If code is present, then the status code to use in the\n // WebSocket Close message must be the integer given by code.\n // - If reason is also present, then reasonBytes must be\n // provided in the Close message after the status code.\n\n const frame = new WebsocketFrameSend()\n\n // If neither code nor reason is present, the WebSocket Close\n // message must not have a body.\n\n // If code is present, then the status code to use in the\n // WebSocket Close message must be the integer given by code.\n if (code !== undefined && reason === undefined) {\n frame.frameData = Buffer.allocUnsafe(2)\n frame.frameData.writeUInt16BE(code, 0)\n } else if (code !== undefined && reason !== undefined) {\n // If reason is also present, then reasonBytes must be\n // provided in the Close message after the status code.\n frame.frameData = Buffer.allocUnsafe(2 + reasonByteLength)\n frame.frameData.writeUInt16BE(code, 0)\n // the body MAY contain UTF-8-encoded data with value /reason/\n frame.frameData.write(reason, 2, 'utf-8')\n } else {\n frame.frameData = emptyBuffer\n }\n\n /** @type {import('stream').Duplex} */\n const socket = this[kResponse].socket\n\n socket.write(frame.createFrame(opcodes.CLOSE), (err) => {\n if (!err) {\n this[kSentClose] = true\n }\n })\n\n // Upon either sending or receiving a Close control frame, it is said\n // that _The WebSocket Closing Handshake is Started_ and that the\n // WebSocket connection is in the CLOSING state.\n this[kReadyState] = states.CLOSING\n } else {\n // Otherwise\n // Set this's ready state to CLOSING (2).\n this[kReadyState] = WebSocket.CLOSING\n }\n }\n\n /**\n * @see https://websockets.spec.whatwg.org/#dom-websocket-send\n * @param {NodeJS.TypedArray|ArrayBuffer|Blob|string} data\n */\n send (data) {\n webidl.brandCheck(this, WebSocket)\n\n webidl.argumentLengthCheck(arguments, 1, { header: 'WebSocket.send' })\n\n data = webidl.converters.WebSocketSendData(data)\n\n // 1. If this's ready state is CONNECTING, then throw an\n // \"InvalidStateError\" DOMException.\n if (this[kReadyState] === WebSocket.CONNECTING) {\n throw new DOMException('Sent before connected.', 'InvalidStateError')\n }\n\n // 2. Run the appropriate set of steps from the following list:\n // https://datatracker.ietf.org/doc/html/rfc6455#section-6.1\n // https://datatracker.ietf.org/doc/html/rfc6455#section-5.2\n\n if (!isEstablished(this) || isClosing(this)) {\n return\n }\n\n /** @type {import('stream').Duplex} */\n const socket = this[kResponse].socket\n\n // If data is a string\n if (typeof data === 'string') {\n // If the WebSocket connection is established and the WebSocket\n // closing handshake has not yet started, then the user agent\n // must send a WebSocket Message comprised of the data argument\n // using a text frame opcode; if the data cannot be sent, e.g.\n // because it would need to be buffered but the buffer is full,\n // the user agent must flag the WebSocket as full and then close\n // the WebSocket connection. Any invocation of this method with a\n // string argument that does not throw an exception must increase\n // the bufferedAmount attribute by the number of bytes needed to\n // express the argument as UTF-8.\n\n const value = Buffer.from(data)\n const frame = new WebsocketFrameSend(value)\n const buffer = frame.createFrame(opcodes.TEXT)\n\n this.#bufferedAmount += value.byteLength\n socket.write(buffer, () => {\n this.#bufferedAmount -= value.byteLength\n })\n } else if (types.isArrayBuffer(data)) {\n // If the WebSocket connection is established, and the WebSocket\n // closing handshake has not yet started, then the user agent must\n // send a WebSocket Message comprised of data using a binary frame\n // opcode; if the data cannot be sent, e.g. because it would need\n // to be buffered but the buffer is full, the user agent must flag\n // the WebSocket as full and then close the WebSocket connection.\n // The data to be sent is the data stored in the buffer described\n // by the ArrayBuffer object. Any invocation of this method with an\n // ArrayBuffer argument that does not throw an exception must\n // increase the bufferedAmount attribute by the length of the\n // ArrayBuffer in bytes.\n\n const value = Buffer.from(data)\n const frame = new WebsocketFrameSend(value)\n const buffer = frame.createFrame(opcodes.BINARY)\n\n this.#bufferedAmount += value.byteLength\n socket.write(buffer, () => {\n this.#bufferedAmount -= value.byteLength\n })\n } else if (ArrayBuffer.isView(data)) {\n // If the WebSocket connection is established, and the WebSocket\n // closing handshake has not yet started, then the user agent must\n // send a WebSocket Message comprised of data using a binary frame\n // opcode; if the data cannot be sent, e.g. because it would need to\n // be buffered but the buffer is full, the user agent must flag the\n // WebSocket as full and then close the WebSocket connection. The\n // data to be sent is the data stored in the section of the buffer\n // described by the ArrayBuffer object that data references. Any\n // invocation of this method with this kind of argument that does\n // not throw an exception must increase the bufferedAmount attribute\n // by the length of data’s buffer in bytes.\n\n const ab = Buffer.from(data, data.byteOffset, data.byteLength)\n\n const frame = new WebsocketFrameSend(ab)\n const buffer = frame.createFrame(opcodes.BINARY)\n\n this.#bufferedAmount += ab.byteLength\n socket.write(buffer, () => {\n this.#bufferedAmount -= ab.byteLength\n })\n } else if (isBlobLike(data)) {\n // If the WebSocket connection is established, and the WebSocket\n // closing handshake has not yet started, then the user agent must\n // send a WebSocket Message comprised of data using a binary frame\n // opcode; if the data cannot be sent, e.g. because it would need to\n // be buffered but the buffer is full, the user agent must flag the\n // WebSocket as full and then close the WebSocket connection. The data\n // to be sent is the raw data represented by the Blob object. Any\n // invocation of this method with a Blob argument that does not throw\n // an exception must increase the bufferedAmount attribute by the size\n // of the Blob object’s raw data, in bytes.\n\n const frame = new WebsocketFrameSend()\n\n data.arrayBuffer().then((ab) => {\n const value = Buffer.from(ab)\n frame.frameData = value\n const buffer = frame.createFrame(opcodes.BINARY)\n\n this.#bufferedAmount += value.byteLength\n socket.write(buffer, () => {\n this.#bufferedAmount -= value.byteLength\n })\n })\n }\n }\n\n get readyState () {\n webidl.brandCheck(this, WebSocket)\n\n // The readyState getter steps are to return this's ready state.\n return this[kReadyState]\n }\n\n get bufferedAmount () {\n webidl.brandCheck(this, WebSocket)\n\n return this.#bufferedAmount\n }\n\n get url () {\n webidl.brandCheck(this, WebSocket)\n\n // The url getter steps are to return this's url, serialized.\n return URLSerializer(this[kWebSocketURL])\n }\n\n get extensions () {\n webidl.brandCheck(this, WebSocket)\n\n return this.#extensions\n }\n\n get protocol () {\n webidl.brandCheck(this, WebSocket)\n\n return this.#protocol\n }\n\n get onopen () {\n webidl.brandCheck(this, WebSocket)\n\n return this.#events.open\n }\n\n set onopen (fn) {\n webidl.brandCheck(this, WebSocket)\n\n if (this.#events.open) {\n this.removeEventListener('open', this.#events.open)\n }\n\n if (typeof fn === 'function') {\n this.#events.open = fn\n this.addEventListener('open', fn)\n } else {\n this.#events.open = null\n }\n }\n\n get onerror () {\n webidl.brandCheck(this, WebSocket)\n\n return this.#events.error\n }\n\n set onerror (fn) {\n webidl.brandCheck(this, WebSocket)\n\n if (this.#events.error) {\n this.removeEventListener('error', this.#events.error)\n }\n\n if (typeof fn === 'function') {\n this.#events.error = fn\n this.addEventListener('error', fn)\n } else {\n this.#events.error = null\n }\n }\n\n get onclose () {\n webidl.brandCheck(this, WebSocket)\n\n return this.#events.close\n }\n\n set onclose (fn) {\n webidl.brandCheck(this, WebSocket)\n\n if (this.#events.close) {\n this.removeEventListener('close', this.#events.close)\n }\n\n if (typeof fn === 'function') {\n this.#events.close = fn\n this.addEventListener('close', fn)\n } else {\n this.#events.close = null\n }\n }\n\n get onmessage () {\n webidl.brandCheck(this, WebSocket)\n\n return this.#events.message\n }\n\n set onmessage (fn) {\n webidl.brandCheck(this, WebSocket)\n\n if (this.#events.message) {\n this.removeEventListener('message', this.#events.message)\n }\n\n if (typeof fn === 'function') {\n this.#events.message = fn\n this.addEventListener('message', fn)\n } else {\n this.#events.message = null\n }\n }\n\n get binaryType () {\n webidl.brandCheck(this, WebSocket)\n\n return this[kBinaryType]\n }\n\n set binaryType (type) {\n webidl.brandCheck(this, WebSocket)\n\n if (type !== 'blob' && type !== 'arraybuffer') {\n this[kBinaryType] = 'blob'\n } else {\n this[kBinaryType] = type\n }\n }\n\n /**\n * @see https://websockets.spec.whatwg.org/#feedback-from-the-protocol\n */\n #onConnectionEstablished (response) {\n // processResponse is called when the \"response’s header list has been received and initialized.\"\n // once this happens, the connection is open\n this[kResponse] = response\n\n const parser = new ByteParser(this)\n parser.on('drain', function onParserDrain () {\n this.ws[kResponse].socket.resume()\n })\n\n response.socket.ws = this\n this[kByteParser] = parser\n\n // 1. Change the ready state to OPEN (1).\n this[kReadyState] = states.OPEN\n\n // 2. Change the extensions attribute’s value to the extensions in use, if\n // it is not the null value.\n // https://datatracker.ietf.org/doc/html/rfc6455#section-9.1\n const extensions = response.headersList.get('sec-websocket-extensions')\n\n if (extensions !== null) {\n this.#extensions = extensions\n }\n\n // 3. Change the protocol attribute’s value to the subprotocol in use, if\n // it is not the null value.\n // https://datatracker.ietf.org/doc/html/rfc6455#section-1.9\n const protocol = response.headersList.get('sec-websocket-protocol')\n\n if (protocol !== null) {\n this.#protocol = protocol\n }\n\n // 4. Fire an event named open at the WebSocket object.\n fireEvent('open', this)\n }\n}\n\n// https://websockets.spec.whatwg.org/#dom-websocket-connecting\nWebSocket.CONNECTING = WebSocket.prototype.CONNECTING = states.CONNECTING\n// https://websockets.spec.whatwg.org/#dom-websocket-open\nWebSocket.OPEN = WebSocket.prototype.OPEN = states.OPEN\n// https://websockets.spec.whatwg.org/#dom-websocket-closing\nWebSocket.CLOSING = WebSocket.prototype.CLOSING = states.CLOSING\n// https://websockets.spec.whatwg.org/#dom-websocket-closed\nWebSocket.CLOSED = WebSocket.prototype.CLOSED = states.CLOSED\n\nObject.defineProperties(WebSocket.prototype, {\n CONNECTING: staticPropertyDescriptors,\n OPEN: staticPropertyDescriptors,\n CLOSING: staticPropertyDescriptors,\n CLOSED: staticPropertyDescriptors,\n url: kEnumerableProperty,\n readyState: kEnumerableProperty,\n bufferedAmount: kEnumerableProperty,\n onopen: kEnumerableProperty,\n onerror: kEnumerableProperty,\n onclose: kEnumerableProperty,\n close: kEnumerableProperty,\n onmessage: kEnumerableProperty,\n binaryType: kEnumerableProperty,\n send: kEnumerableProperty,\n extensions: kEnumerableProperty,\n protocol: kEnumerableProperty,\n [Symbol.toStringTag]: {\n value: 'WebSocket',\n writable: false,\n enumerable: false,\n configurable: true\n }\n})\n\nObject.defineProperties(WebSocket, {\n CONNECTING: staticPropertyDescriptors,\n OPEN: staticPropertyDescriptors,\n CLOSING: staticPropertyDescriptors,\n CLOSED: staticPropertyDescriptors\n})\n\nwebidl.converters['sequence'] = webidl.sequenceConverter(\n webidl.converters.DOMString\n)\n\nwebidl.converters['DOMString or sequence'] = function (V) {\n if (webidl.util.Type(V) === 'Object' && Symbol.iterator in V) {\n return webidl.converters['sequence'](V)\n }\n\n return webidl.converters.DOMString(V)\n}\n\n// This implements the propsal made in https://github.com/whatwg/websockets/issues/42\nwebidl.converters.WebSocketInit = webidl.dictionaryConverter([\n {\n key: 'protocols',\n converter: webidl.converters['DOMString or sequence'],\n get defaultValue () {\n return []\n }\n },\n {\n key: 'dispatcher',\n converter: (V) => V,\n get defaultValue () {\n return getGlobalDispatcher()\n }\n },\n {\n key: 'headers',\n converter: webidl.nullableConverter(webidl.converters.HeadersInit)\n }\n])\n\nwebidl.converters['DOMString or sequence or WebSocketInit'] = function (V) {\n if (webidl.util.Type(V) === 'Object' && !(Symbol.iterator in V)) {\n return webidl.converters.WebSocketInit(V)\n }\n\n return { protocols: webidl.converters['DOMString or sequence'](V) }\n}\n\nwebidl.converters.WebSocketSendData = function (V) {\n if (webidl.util.Type(V) === 'Object') {\n if (isBlobLike(V)) {\n return webidl.converters.Blob(V, { strict: false })\n }\n\n if (ArrayBuffer.isView(V) || types.isAnyArrayBuffer(V)) {\n return webidl.converters.BufferSource(V)\n }\n }\n\n return webidl.converters.USVString(V)\n}\n\nmodule.exports = {\n WebSocket\n}\n","\"use strict\";\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n};\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\n\n// pkg/dist-src/index.js\nvar dist_src_exports = {};\n__export(dist_src_exports, {\n createTokenAuth: () => createTokenAuth\n});\nmodule.exports = __toCommonJS(dist_src_exports);\n\n// pkg/dist-src/auth.js\nvar REGEX_IS_INSTALLATION_LEGACY = /^v1\\./;\nvar REGEX_IS_INSTALLATION = /^ghs_/;\nvar REGEX_IS_USER_TO_SERVER = /^ghu_/;\nasync function auth(token) {\n const isApp = token.split(/\\./).length === 3;\n const isInstallation = REGEX_IS_INSTALLATION_LEGACY.test(token) || REGEX_IS_INSTALLATION.test(token);\n const isUserToServer = REGEX_IS_USER_TO_SERVER.test(token);\n const tokenType = isApp ? \"app\" : isInstallation ? \"installation\" : isUserToServer ? \"user-to-server\" : \"oauth\";\n return {\n type: \"token\",\n token,\n tokenType\n };\n}\n\n// pkg/dist-src/with-authorization-prefix.js\nfunction withAuthorizationPrefix(token) {\n if (token.split(/\\./).length === 3) {\n return `bearer ${token}`;\n }\n return `token ${token}`;\n}\n\n// pkg/dist-src/hook.js\nasync function hook(token, request, route, parameters) {\n const endpoint = request.endpoint.merge(\n route,\n parameters\n );\n endpoint.headers.authorization = withAuthorizationPrefix(token);\n return request(endpoint);\n}\n\n// pkg/dist-src/index.js\nvar createTokenAuth = function createTokenAuth2(token) {\n if (!token) {\n throw new Error(\"[@octokit/auth-token] No token passed to createTokenAuth\");\n }\n if (typeof token !== \"string\") {\n throw new Error(\n \"[@octokit/auth-token] Token passed to createTokenAuth is not a string\"\n );\n }\n token = token.replace(/^(token|bearer) +/i, \"\");\n return Object.assign(auth.bind(null, token), {\n hook: hook.bind(null, token)\n });\n};\n// Annotate the CommonJS export names for ESM import in node:\n0 && (module.exports = {\n createTokenAuth\n});\n","\"use strict\";\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n};\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\n\n// pkg/dist-src/index.js\nvar dist_src_exports = {};\n__export(dist_src_exports, {\n Octokit: () => Octokit\n});\nmodule.exports = __toCommonJS(dist_src_exports);\nvar import_universal_user_agent = require(\"universal-user-agent\");\nvar import_before_after_hook = require(\"before-after-hook\");\nvar import_request = require(\"@octokit/request\");\nvar import_graphql = require(\"@octokit/graphql\");\nvar import_auth_token = require(\"@octokit/auth-token\");\n\n// pkg/dist-src/version.js\nvar VERSION = \"5.1.0\";\n\n// pkg/dist-src/index.js\nvar noop = () => {\n};\nvar consoleWarn = console.warn.bind(console);\nvar consoleError = console.error.bind(console);\nvar userAgentTrail = `octokit-core.js/${VERSION} ${(0, import_universal_user_agent.getUserAgent)()}`;\nvar Octokit = class {\n static {\n this.VERSION = VERSION;\n }\n static defaults(defaults) {\n const OctokitWithDefaults = class extends this {\n constructor(...args) {\n const options = args[0] || {};\n if (typeof defaults === \"function\") {\n super(defaults(options));\n return;\n }\n super(\n Object.assign(\n {},\n defaults,\n options,\n options.userAgent && defaults.userAgent ? {\n userAgent: `${options.userAgent} ${defaults.userAgent}`\n } : null\n )\n );\n }\n };\n return OctokitWithDefaults;\n }\n static {\n this.plugins = [];\n }\n /**\n * Attach a plugin (or many) to your Octokit instance.\n *\n * @example\n * const API = Octokit.plugin(plugin1, plugin2, plugin3, ...)\n */\n static plugin(...newPlugins) {\n const currentPlugins = this.plugins;\n const NewOctokit = class extends this {\n static {\n this.plugins = currentPlugins.concat(\n newPlugins.filter((plugin) => !currentPlugins.includes(plugin))\n );\n }\n };\n return NewOctokit;\n }\n constructor(options = {}) {\n const hook = new import_before_after_hook.Collection();\n const requestDefaults = {\n baseUrl: import_request.request.endpoint.DEFAULTS.baseUrl,\n headers: {},\n request: Object.assign({}, options.request, {\n // @ts-ignore internal usage only, no need to type\n hook: hook.bind(null, \"request\")\n }),\n mediaType: {\n previews: [],\n format: \"\"\n }\n };\n requestDefaults.headers[\"user-agent\"] = options.userAgent ? `${options.userAgent} ${userAgentTrail}` : userAgentTrail;\n if (options.baseUrl) {\n requestDefaults.baseUrl = options.baseUrl;\n }\n if (options.previews) {\n requestDefaults.mediaType.previews = options.previews;\n }\n if (options.timeZone) {\n requestDefaults.headers[\"time-zone\"] = options.timeZone;\n }\n this.request = import_request.request.defaults(requestDefaults);\n this.graphql = (0, import_graphql.withCustomRequest)(this.request).defaults(requestDefaults);\n this.log = Object.assign(\n {\n debug: noop,\n info: noop,\n warn: consoleWarn,\n error: consoleError\n },\n options.log\n );\n this.hook = hook;\n if (!options.authStrategy) {\n if (!options.auth) {\n this.auth = async () => ({\n type: \"unauthenticated\"\n });\n } else {\n const auth = (0, import_auth_token.createTokenAuth)(options.auth);\n hook.wrap(\"request\", auth.hook);\n this.auth = auth;\n }\n } else {\n const { authStrategy, ...otherOptions } = options;\n const auth = authStrategy(\n Object.assign(\n {\n request: this.request,\n log: this.log,\n // we pass the current octokit instance as well as its constructor options\n // to allow for authentication strategies that return a new octokit instance\n // that shares the same internal state as the current one. The original\n // requirement for this was the \"event-octokit\" authentication strategy\n // of https://github.com/probot/octokit-auth-probot.\n octokit: this,\n octokitOptions: otherOptions\n },\n options.auth\n )\n );\n hook.wrap(\"request\", auth.hook);\n this.auth = auth;\n }\n const classConstructor = this.constructor;\n for (let i = 0; i < classConstructor.plugins.length; ++i) {\n Object.assign(this, classConstructor.plugins[i](this, options));\n }\n }\n};\n// Annotate the CommonJS export names for ESM import in node:\n0 && (module.exports = {\n Octokit\n});\n","\"use strict\";\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n};\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\n\n// pkg/dist-src/index.js\nvar dist_src_exports = {};\n__export(dist_src_exports, {\n endpoint: () => endpoint\n});\nmodule.exports = __toCommonJS(dist_src_exports);\n\n// pkg/dist-src/defaults.js\nvar import_universal_user_agent = require(\"universal-user-agent\");\n\n// pkg/dist-src/version.js\nvar VERSION = \"9.0.1\";\n\n// pkg/dist-src/defaults.js\nvar userAgent = `octokit-endpoint.js/${VERSION} ${(0, import_universal_user_agent.getUserAgent)()}`;\nvar DEFAULTS = {\n method: \"GET\",\n baseUrl: \"https://api.github.com\",\n headers: {\n accept: \"application/vnd.github.v3+json\",\n \"user-agent\": userAgent\n },\n mediaType: {\n format: \"\"\n }\n};\n\n// pkg/dist-src/util/lowercase-keys.js\nfunction lowercaseKeys(object) {\n if (!object) {\n return {};\n }\n return Object.keys(object).reduce((newObj, key) => {\n newObj[key.toLowerCase()] = object[key];\n return newObj;\n }, {});\n}\n\n// pkg/dist-src/util/merge-deep.js\nvar import_is_plain_object = require(\"is-plain-object\");\nfunction mergeDeep(defaults, options) {\n const result = Object.assign({}, defaults);\n Object.keys(options).forEach((key) => {\n if ((0, import_is_plain_object.isPlainObject)(options[key])) {\n if (!(key in defaults))\n Object.assign(result, { [key]: options[key] });\n else\n result[key] = mergeDeep(defaults[key], options[key]);\n } else {\n Object.assign(result, { [key]: options[key] });\n }\n });\n return result;\n}\n\n// pkg/dist-src/util/remove-undefined-properties.js\nfunction removeUndefinedProperties(obj) {\n for (const key in obj) {\n if (obj[key] === void 0) {\n delete obj[key];\n }\n }\n return obj;\n}\n\n// pkg/dist-src/merge.js\nfunction merge(defaults, route, options) {\n if (typeof route === \"string\") {\n let [method, url] = route.split(\" \");\n options = Object.assign(url ? { method, url } : { url: method }, options);\n } else {\n options = Object.assign({}, route);\n }\n options.headers = lowercaseKeys(options.headers);\n removeUndefinedProperties(options);\n removeUndefinedProperties(options.headers);\n const mergedOptions = mergeDeep(defaults || {}, options);\n if (options.url === \"/graphql\") {\n if (defaults && defaults.mediaType.previews?.length) {\n mergedOptions.mediaType.previews = defaults.mediaType.previews.filter(\n (preview) => !mergedOptions.mediaType.previews.includes(preview)\n ).concat(mergedOptions.mediaType.previews);\n }\n mergedOptions.mediaType.previews = (mergedOptions.mediaType.previews || []).map((preview) => preview.replace(/-preview/, \"\"));\n }\n return mergedOptions;\n}\n\n// pkg/dist-src/util/add-query-parameters.js\nfunction addQueryParameters(url, parameters) {\n const separator = /\\?/.test(url) ? \"&\" : \"?\";\n const names = Object.keys(parameters);\n if (names.length === 0) {\n return url;\n }\n return url + separator + names.map((name) => {\n if (name === \"q\") {\n return \"q=\" + parameters.q.split(\"+\").map(encodeURIComponent).join(\"+\");\n }\n return `${name}=${encodeURIComponent(parameters[name])}`;\n }).join(\"&\");\n}\n\n// pkg/dist-src/util/extract-url-variable-names.js\nvar urlVariableRegex = /\\{[^}]+\\}/g;\nfunction removeNonChars(variableName) {\n return variableName.replace(/^\\W+|\\W+$/g, \"\").split(/,/);\n}\nfunction extractUrlVariableNames(url) {\n const matches = url.match(urlVariableRegex);\n if (!matches) {\n return [];\n }\n return matches.map(removeNonChars).reduce((a, b) => a.concat(b), []);\n}\n\n// pkg/dist-src/util/omit.js\nfunction omit(object, keysToOmit) {\n return Object.keys(object).filter((option) => !keysToOmit.includes(option)).reduce((obj, key) => {\n obj[key] = object[key];\n return obj;\n }, {});\n}\n\n// pkg/dist-src/util/url-template.js\nfunction encodeReserved(str) {\n return str.split(/(%[0-9A-Fa-f]{2})/g).map(function(part) {\n if (!/%[0-9A-Fa-f]/.test(part)) {\n part = encodeURI(part).replace(/%5B/g, \"[\").replace(/%5D/g, \"]\");\n }\n return part;\n }).join(\"\");\n}\nfunction encodeUnreserved(str) {\n return encodeURIComponent(str).replace(/[!'()*]/g, function(c) {\n return \"%\" + c.charCodeAt(0).toString(16).toUpperCase();\n });\n}\nfunction encodeValue(operator, value, key) {\n value = operator === \"+\" || operator === \"#\" ? encodeReserved(value) : encodeUnreserved(value);\n if (key) {\n return encodeUnreserved(key) + \"=\" + value;\n } else {\n return value;\n }\n}\nfunction isDefined(value) {\n return value !== void 0 && value !== null;\n}\nfunction isKeyOperator(operator) {\n return operator === \";\" || operator === \"&\" || operator === \"?\";\n}\nfunction getValues(context, operator, key, modifier) {\n var value = context[key], result = [];\n if (isDefined(value) && value !== \"\") {\n if (typeof value === \"string\" || typeof value === \"number\" || typeof value === \"boolean\") {\n value = value.toString();\n if (modifier && modifier !== \"*\") {\n value = value.substring(0, parseInt(modifier, 10));\n }\n result.push(\n encodeValue(operator, value, isKeyOperator(operator) ? key : \"\")\n );\n } else {\n if (modifier === \"*\") {\n if (Array.isArray(value)) {\n value.filter(isDefined).forEach(function(value2) {\n result.push(\n encodeValue(operator, value2, isKeyOperator(operator) ? key : \"\")\n );\n });\n } else {\n Object.keys(value).forEach(function(k) {\n if (isDefined(value[k])) {\n result.push(encodeValue(operator, value[k], k));\n }\n });\n }\n } else {\n const tmp = [];\n if (Array.isArray(value)) {\n value.filter(isDefined).forEach(function(value2) {\n tmp.push(encodeValue(operator, value2));\n });\n } else {\n Object.keys(value).forEach(function(k) {\n if (isDefined(value[k])) {\n tmp.push(encodeUnreserved(k));\n tmp.push(encodeValue(operator, value[k].toString()));\n }\n });\n }\n if (isKeyOperator(operator)) {\n result.push(encodeUnreserved(key) + \"=\" + tmp.join(\",\"));\n } else if (tmp.length !== 0) {\n result.push(tmp.join(\",\"));\n }\n }\n }\n } else {\n if (operator === \";\") {\n if (isDefined(value)) {\n result.push(encodeUnreserved(key));\n }\n } else if (value === \"\" && (operator === \"&\" || operator === \"?\")) {\n result.push(encodeUnreserved(key) + \"=\");\n } else if (value === \"\") {\n result.push(\"\");\n }\n }\n return result;\n}\nfunction parseUrl(template) {\n return {\n expand: expand.bind(null, template)\n };\n}\nfunction expand(template, context) {\n var operators = [\"+\", \"#\", \".\", \"/\", \";\", \"?\", \"&\"];\n return template.replace(\n /\\{([^\\{\\}]+)\\}|([^\\{\\}]+)/g,\n function(_, expression, literal) {\n if (expression) {\n let operator = \"\";\n const values = [];\n if (operators.indexOf(expression.charAt(0)) !== -1) {\n operator = expression.charAt(0);\n expression = expression.substr(1);\n }\n expression.split(/,/g).forEach(function(variable) {\n var tmp = /([^:\\*]*)(?::(\\d+)|(\\*))?/.exec(variable);\n values.push(getValues(context, operator, tmp[1], tmp[2] || tmp[3]));\n });\n if (operator && operator !== \"+\") {\n var separator = \",\";\n if (operator === \"?\") {\n separator = \"&\";\n } else if (operator !== \"#\") {\n separator = operator;\n }\n return (values.length !== 0 ? operator : \"\") + values.join(separator);\n } else {\n return values.join(\",\");\n }\n } else {\n return encodeReserved(literal);\n }\n }\n );\n}\n\n// pkg/dist-src/parse.js\nfunction parse(options) {\n let method = options.method.toUpperCase();\n let url = (options.url || \"/\").replace(/:([a-z]\\w+)/g, \"{$1}\");\n let headers = Object.assign({}, options.headers);\n let body;\n let parameters = omit(options, [\n \"method\",\n \"baseUrl\",\n \"url\",\n \"headers\",\n \"request\",\n \"mediaType\"\n ]);\n const urlVariableNames = extractUrlVariableNames(url);\n url = parseUrl(url).expand(parameters);\n if (!/^http/.test(url)) {\n url = options.baseUrl + url;\n }\n const omittedParameters = Object.keys(options).filter((option) => urlVariableNames.includes(option)).concat(\"baseUrl\");\n const remainingParameters = omit(parameters, omittedParameters);\n const isBinaryRequest = /application\\/octet-stream/i.test(headers.accept);\n if (!isBinaryRequest) {\n if (options.mediaType.format) {\n headers.accept = headers.accept.split(/,/).map(\n (format) => format.replace(\n /application\\/vnd(\\.\\w+)(\\.v3)?(\\.\\w+)?(\\+json)?$/,\n `application/vnd$1$2.${options.mediaType.format}`\n )\n ).join(\",\");\n }\n if (url.endsWith(\"/graphql\")) {\n if (options.mediaType.previews?.length) {\n const previewsFromAcceptHeader = headers.accept.match(/[\\w-]+(?=-preview)/g) || [];\n headers.accept = previewsFromAcceptHeader.concat(options.mediaType.previews).map((preview) => {\n const format = options.mediaType.format ? `.${options.mediaType.format}` : \"+json\";\n return `application/vnd.github.${preview}-preview${format}`;\n }).join(\",\");\n }\n }\n }\n if ([\"GET\", \"HEAD\"].includes(method)) {\n url = addQueryParameters(url, remainingParameters);\n } else {\n if (\"data\" in remainingParameters) {\n body = remainingParameters.data;\n } else {\n if (Object.keys(remainingParameters).length) {\n body = remainingParameters;\n }\n }\n }\n if (!headers[\"content-type\"] && typeof body !== \"undefined\") {\n headers[\"content-type\"] = \"application/json; charset=utf-8\";\n }\n if ([\"PATCH\", \"PUT\"].includes(method) && typeof body === \"undefined\") {\n body = \"\";\n }\n return Object.assign(\n { method, url, headers },\n typeof body !== \"undefined\" ? { body } : null,\n options.request ? { request: options.request } : null\n );\n}\n\n// pkg/dist-src/endpoint-with-defaults.js\nfunction endpointWithDefaults(defaults, route, options) {\n return parse(merge(defaults, route, options));\n}\n\n// pkg/dist-src/with-defaults.js\nfunction withDefaults(oldDefaults, newDefaults) {\n const DEFAULTS2 = merge(oldDefaults, newDefaults);\n const endpoint2 = endpointWithDefaults.bind(null, DEFAULTS2);\n return Object.assign(endpoint2, {\n DEFAULTS: DEFAULTS2,\n defaults: withDefaults.bind(null, DEFAULTS2),\n merge: merge.bind(null, DEFAULTS2),\n parse\n });\n}\n\n// pkg/dist-src/index.js\nvar endpoint = withDefaults(null, DEFAULTS);\n// Annotate the CommonJS export names for ESM import in node:\n0 && (module.exports = {\n endpoint\n});\n","\"use strict\";\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n};\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\n\n// pkg/dist-src/index.js\nvar dist_src_exports = {};\n__export(dist_src_exports, {\n GraphqlResponseError: () => GraphqlResponseError,\n graphql: () => graphql2,\n withCustomRequest: () => withCustomRequest\n});\nmodule.exports = __toCommonJS(dist_src_exports);\nvar import_request3 = require(\"@octokit/request\");\nvar import_universal_user_agent = require(\"universal-user-agent\");\n\n// pkg/dist-src/version.js\nvar VERSION = \"7.0.2\";\n\n// pkg/dist-src/with-defaults.js\nvar import_request2 = require(\"@octokit/request\");\n\n// pkg/dist-src/graphql.js\nvar import_request = require(\"@octokit/request\");\n\n// pkg/dist-src/error.js\nfunction _buildMessageForResponseErrors(data) {\n return `Request failed due to following response errors:\n` + data.errors.map((e) => ` - ${e.message}`).join(\"\\n\");\n}\nvar GraphqlResponseError = class extends Error {\n constructor(request2, headers, response) {\n super(_buildMessageForResponseErrors(response));\n this.request = request2;\n this.headers = headers;\n this.response = response;\n this.name = \"GraphqlResponseError\";\n this.errors = response.errors;\n this.data = response.data;\n if (Error.captureStackTrace) {\n Error.captureStackTrace(this, this.constructor);\n }\n }\n};\n\n// pkg/dist-src/graphql.js\nvar NON_VARIABLE_OPTIONS = [\n \"method\",\n \"baseUrl\",\n \"url\",\n \"headers\",\n \"request\",\n \"query\",\n \"mediaType\"\n];\nvar FORBIDDEN_VARIABLE_OPTIONS = [\"query\", \"method\", \"url\"];\nvar GHES_V3_SUFFIX_REGEX = /\\/api\\/v3\\/?$/;\nfunction graphql(request2, query, options) {\n if (options) {\n if (typeof query === \"string\" && \"query\" in options) {\n return Promise.reject(\n new Error(`[@octokit/graphql] \"query\" cannot be used as variable name`)\n );\n }\n for (const key in options) {\n if (!FORBIDDEN_VARIABLE_OPTIONS.includes(key))\n continue;\n return Promise.reject(\n new Error(\n `[@octokit/graphql] \"${key}\" cannot be used as variable name`\n )\n );\n }\n }\n const parsedOptions = typeof query === \"string\" ? Object.assign({ query }, options) : query;\n const requestOptions = Object.keys(\n parsedOptions\n ).reduce((result, key) => {\n if (NON_VARIABLE_OPTIONS.includes(key)) {\n result[key] = parsedOptions[key];\n return result;\n }\n if (!result.variables) {\n result.variables = {};\n }\n result.variables[key] = parsedOptions[key];\n return result;\n }, {});\n const baseUrl = parsedOptions.baseUrl || request2.endpoint.DEFAULTS.baseUrl;\n if (GHES_V3_SUFFIX_REGEX.test(baseUrl)) {\n requestOptions.url = baseUrl.replace(GHES_V3_SUFFIX_REGEX, \"/api/graphql\");\n }\n return request2(requestOptions).then((response) => {\n if (response.data.errors) {\n const headers = {};\n for (const key of Object.keys(response.headers)) {\n headers[key] = response.headers[key];\n }\n throw new GraphqlResponseError(\n requestOptions,\n headers,\n response.data\n );\n }\n return response.data.data;\n });\n}\n\n// pkg/dist-src/with-defaults.js\nfunction withDefaults(request2, newDefaults) {\n const newRequest = request2.defaults(newDefaults);\n const newApi = (query, options) => {\n return graphql(newRequest, query, options);\n };\n return Object.assign(newApi, {\n defaults: withDefaults.bind(null, newRequest),\n endpoint: newRequest.endpoint\n });\n}\n\n// pkg/dist-src/index.js\nvar graphql2 = withDefaults(import_request3.request, {\n headers: {\n \"user-agent\": `octokit-graphql.js/${VERSION} ${(0, import_universal_user_agent.getUserAgent)()}`\n },\n method: \"POST\",\n url: \"/graphql\"\n});\nfunction withCustomRequest(customRequest) {\n return withDefaults(customRequest, {\n method: \"POST\",\n url: \"/graphql\"\n });\n}\n// Annotate the CommonJS export names for ESM import in node:\n0 && (module.exports = {\n GraphqlResponseError,\n graphql,\n withCustomRequest\n});\n","\"use strict\";\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n};\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\n\n// pkg/dist-src/index.js\nvar dist_src_exports = {};\n__export(dist_src_exports, {\n composePaginateRest: () => composePaginateRest,\n isPaginatingEndpoint: () => isPaginatingEndpoint,\n paginateRest: () => paginateRest,\n paginatingEndpoints: () => paginatingEndpoints\n});\nmodule.exports = __toCommonJS(dist_src_exports);\n\n// pkg/dist-src/version.js\nvar VERSION = \"9.2.2\";\n\n// pkg/dist-src/normalize-paginated-list-response.js\nfunction normalizePaginatedListResponse(response) {\n if (!response.data) {\n return {\n ...response,\n data: []\n };\n }\n const responseNeedsNormalization = \"total_count\" in response.data && !(\"url\" in response.data);\n if (!responseNeedsNormalization)\n return response;\n const incompleteResults = response.data.incomplete_results;\n const repositorySelection = response.data.repository_selection;\n const totalCount = response.data.total_count;\n delete response.data.incomplete_results;\n delete response.data.repository_selection;\n delete response.data.total_count;\n const namespaceKey = Object.keys(response.data)[0];\n const data = response.data[namespaceKey];\n response.data = data;\n if (typeof incompleteResults !== \"undefined\") {\n response.data.incomplete_results = incompleteResults;\n }\n if (typeof repositorySelection !== \"undefined\") {\n response.data.repository_selection = repositorySelection;\n }\n response.data.total_count = totalCount;\n return response;\n}\n\n// pkg/dist-src/iterator.js\nfunction iterator(octokit, route, parameters) {\n const options = typeof route === \"function\" ? route.endpoint(parameters) : octokit.request.endpoint(route, parameters);\n const requestMethod = typeof route === \"function\" ? route : octokit.request;\n const method = options.method;\n const headers = options.headers;\n let url = options.url;\n return {\n [Symbol.asyncIterator]: () => ({\n async next() {\n if (!url)\n return { done: true };\n try {\n const response = await requestMethod({ method, url, headers });\n const normalizedResponse = normalizePaginatedListResponse(response);\n url = ((normalizedResponse.headers.link || \"\").match(\n /<([^<>]+)>;\\s*rel=\"next\"/\n ) || [])[1];\n return { value: normalizedResponse };\n } catch (error) {\n if (error.status !== 409)\n throw error;\n url = \"\";\n return {\n value: {\n status: 200,\n headers: {},\n data: []\n }\n };\n }\n }\n })\n };\n}\n\n// pkg/dist-src/paginate.js\nfunction paginate(octokit, route, parameters, mapFn) {\n if (typeof parameters === \"function\") {\n mapFn = parameters;\n parameters = void 0;\n }\n return gather(\n octokit,\n [],\n iterator(octokit, route, parameters)[Symbol.asyncIterator](),\n mapFn\n );\n}\nfunction gather(octokit, results, iterator2, mapFn) {\n return iterator2.next().then((result) => {\n if (result.done) {\n return results;\n }\n let earlyExit = false;\n function done() {\n earlyExit = true;\n }\n results = results.concat(\n mapFn ? mapFn(result.value, done) : result.value.data\n );\n if (earlyExit) {\n return results;\n }\n return gather(octokit, results, iterator2, mapFn);\n });\n}\n\n// pkg/dist-src/compose-paginate.js\nvar composePaginateRest = Object.assign(paginate, {\n iterator\n});\n\n// pkg/dist-src/generated/paginating-endpoints.js\nvar paginatingEndpoints = [\n \"GET /advisories\",\n \"GET /app/hook/deliveries\",\n \"GET /app/installation-requests\",\n \"GET /app/installations\",\n \"GET /assignments/{assignment_id}/accepted_assignments\",\n \"GET /classrooms\",\n \"GET /classrooms/{classroom_id}/assignments\",\n \"GET /enterprises/{enterprise}/dependabot/alerts\",\n \"GET /enterprises/{enterprise}/secret-scanning/alerts\",\n \"GET /events\",\n \"GET /gists\",\n \"GET /gists/public\",\n \"GET /gists/starred\",\n \"GET /gists/{gist_id}/comments\",\n \"GET /gists/{gist_id}/commits\",\n \"GET /gists/{gist_id}/forks\",\n \"GET /installation/repositories\",\n \"GET /issues\",\n \"GET /licenses\",\n \"GET /marketplace_listing/plans\",\n \"GET /marketplace_listing/plans/{plan_id}/accounts\",\n \"GET /marketplace_listing/stubbed/plans\",\n \"GET /marketplace_listing/stubbed/plans/{plan_id}/accounts\",\n \"GET /networks/{owner}/{repo}/events\",\n \"GET /notifications\",\n \"GET /organizations\",\n \"GET /orgs/{org}/actions/cache/usage-by-repository\",\n \"GET /orgs/{org}/actions/permissions/repositories\",\n \"GET /orgs/{org}/actions/runners\",\n \"GET /orgs/{org}/actions/secrets\",\n \"GET /orgs/{org}/actions/secrets/{secret_name}/repositories\",\n \"GET /orgs/{org}/actions/variables\",\n \"GET /orgs/{org}/actions/variables/{name}/repositories\",\n \"GET /orgs/{org}/blocks\",\n \"GET /orgs/{org}/code-scanning/alerts\",\n \"GET /orgs/{org}/codespaces\",\n \"GET /orgs/{org}/codespaces/secrets\",\n \"GET /orgs/{org}/codespaces/secrets/{secret_name}/repositories\",\n \"GET /orgs/{org}/copilot/billing/seats\",\n \"GET /orgs/{org}/dependabot/alerts\",\n \"GET /orgs/{org}/dependabot/secrets\",\n \"GET /orgs/{org}/dependabot/secrets/{secret_name}/repositories\",\n \"GET /orgs/{org}/events\",\n \"GET /orgs/{org}/failed_invitations\",\n \"GET /orgs/{org}/hooks\",\n \"GET /orgs/{org}/hooks/{hook_id}/deliveries\",\n \"GET /orgs/{org}/installations\",\n \"GET /orgs/{org}/invitations\",\n \"GET /orgs/{org}/invitations/{invitation_id}/teams\",\n \"GET /orgs/{org}/issues\",\n \"GET /orgs/{org}/members\",\n \"GET /orgs/{org}/members/{username}/codespaces\",\n \"GET /orgs/{org}/migrations\",\n \"GET /orgs/{org}/migrations/{migration_id}/repositories\",\n \"GET /orgs/{org}/organization-roles/{role_id}/teams\",\n \"GET /orgs/{org}/organization-roles/{role_id}/users\",\n \"GET /orgs/{org}/outside_collaborators\",\n \"GET /orgs/{org}/packages\",\n \"GET /orgs/{org}/packages/{package_type}/{package_name}/versions\",\n \"GET /orgs/{org}/personal-access-token-requests\",\n \"GET /orgs/{org}/personal-access-token-requests/{pat_request_id}/repositories\",\n \"GET /orgs/{org}/personal-access-tokens\",\n \"GET /orgs/{org}/personal-access-tokens/{pat_id}/repositories\",\n \"GET /orgs/{org}/projects\",\n \"GET /orgs/{org}/properties/values\",\n \"GET /orgs/{org}/public_members\",\n \"GET /orgs/{org}/repos\",\n \"GET /orgs/{org}/rulesets\",\n \"GET /orgs/{org}/rulesets/rule-suites\",\n \"GET /orgs/{org}/secret-scanning/alerts\",\n \"GET /orgs/{org}/security-advisories\",\n \"GET /orgs/{org}/teams\",\n \"GET /orgs/{org}/teams/{team_slug}/discussions\",\n \"GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments\",\n \"GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions\",\n \"GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions\",\n \"GET /orgs/{org}/teams/{team_slug}/invitations\",\n \"GET /orgs/{org}/teams/{team_slug}/members\",\n \"GET /orgs/{org}/teams/{team_slug}/projects\",\n \"GET /orgs/{org}/teams/{team_slug}/repos\",\n \"GET /orgs/{org}/teams/{team_slug}/teams\",\n \"GET /projects/columns/{column_id}/cards\",\n \"GET /projects/{project_id}/collaborators\",\n \"GET /projects/{project_id}/columns\",\n \"GET /repos/{owner}/{repo}/actions/artifacts\",\n \"GET /repos/{owner}/{repo}/actions/caches\",\n \"GET /repos/{owner}/{repo}/actions/organization-secrets\",\n \"GET /repos/{owner}/{repo}/actions/organization-variables\",\n \"GET /repos/{owner}/{repo}/actions/runners\",\n \"GET /repos/{owner}/{repo}/actions/runs\",\n \"GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts\",\n \"GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}/jobs\",\n \"GET /repos/{owner}/{repo}/actions/runs/{run_id}/jobs\",\n \"GET /repos/{owner}/{repo}/actions/secrets\",\n \"GET /repos/{owner}/{repo}/actions/variables\",\n \"GET /repos/{owner}/{repo}/actions/workflows\",\n \"GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/runs\",\n \"GET /repos/{owner}/{repo}/activity\",\n \"GET /repos/{owner}/{repo}/assignees\",\n \"GET /repos/{owner}/{repo}/branches\",\n \"GET /repos/{owner}/{repo}/check-runs/{check_run_id}/annotations\",\n \"GET /repos/{owner}/{repo}/check-suites/{check_suite_id}/check-runs\",\n \"GET /repos/{owner}/{repo}/code-scanning/alerts\",\n \"GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/instances\",\n \"GET /repos/{owner}/{repo}/code-scanning/analyses\",\n \"GET /repos/{owner}/{repo}/codespaces\",\n \"GET /repos/{owner}/{repo}/codespaces/devcontainers\",\n \"GET /repos/{owner}/{repo}/codespaces/secrets\",\n \"GET /repos/{owner}/{repo}/collaborators\",\n \"GET /repos/{owner}/{repo}/comments\",\n \"GET /repos/{owner}/{repo}/comments/{comment_id}/reactions\",\n \"GET /repos/{owner}/{repo}/commits\",\n \"GET /repos/{owner}/{repo}/commits/{commit_sha}/comments\",\n \"GET /repos/{owner}/{repo}/commits/{commit_sha}/pulls\",\n \"GET /repos/{owner}/{repo}/commits/{ref}/check-runs\",\n \"GET /repos/{owner}/{repo}/commits/{ref}/check-suites\",\n \"GET /repos/{owner}/{repo}/commits/{ref}/status\",\n \"GET /repos/{owner}/{repo}/commits/{ref}/statuses\",\n \"GET /repos/{owner}/{repo}/contributors\",\n \"GET /repos/{owner}/{repo}/dependabot/alerts\",\n \"GET /repos/{owner}/{repo}/dependabot/secrets\",\n \"GET /repos/{owner}/{repo}/deployments\",\n \"GET /repos/{owner}/{repo}/deployments/{deployment_id}/statuses\",\n \"GET /repos/{owner}/{repo}/environments\",\n \"GET /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies\",\n \"GET /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/apps\",\n \"GET /repos/{owner}/{repo}/events\",\n \"GET /repos/{owner}/{repo}/forks\",\n \"GET /repos/{owner}/{repo}/hooks\",\n \"GET /repos/{owner}/{repo}/hooks/{hook_id}/deliveries\",\n \"GET /repos/{owner}/{repo}/invitations\",\n \"GET /repos/{owner}/{repo}/issues\",\n \"GET /repos/{owner}/{repo}/issues/comments\",\n \"GET /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions\",\n \"GET /repos/{owner}/{repo}/issues/events\",\n \"GET /repos/{owner}/{repo}/issues/{issue_number}/comments\",\n \"GET /repos/{owner}/{repo}/issues/{issue_number}/events\",\n \"GET /repos/{owner}/{repo}/issues/{issue_number}/labels\",\n \"GET /repos/{owner}/{repo}/issues/{issue_number}/reactions\",\n \"GET /repos/{owner}/{repo}/issues/{issue_number}/timeline\",\n \"GET /repos/{owner}/{repo}/keys\",\n \"GET /repos/{owner}/{repo}/labels\",\n \"GET /repos/{owner}/{repo}/milestones\",\n \"GET /repos/{owner}/{repo}/milestones/{milestone_number}/labels\",\n \"GET /repos/{owner}/{repo}/notifications\",\n \"GET /repos/{owner}/{repo}/pages/builds\",\n \"GET /repos/{owner}/{repo}/projects\",\n \"GET /repos/{owner}/{repo}/pulls\",\n \"GET /repos/{owner}/{repo}/pulls/comments\",\n \"GET /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions\",\n \"GET /repos/{owner}/{repo}/pulls/{pull_number}/comments\",\n \"GET /repos/{owner}/{repo}/pulls/{pull_number}/commits\",\n \"GET /repos/{owner}/{repo}/pulls/{pull_number}/files\",\n \"GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews\",\n \"GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/comments\",\n \"GET /repos/{owner}/{repo}/releases\",\n \"GET /repos/{owner}/{repo}/releases/{release_id}/assets\",\n \"GET /repos/{owner}/{repo}/releases/{release_id}/reactions\",\n \"GET /repos/{owner}/{repo}/rules/branches/{branch}\",\n \"GET /repos/{owner}/{repo}/rulesets\",\n \"GET /repos/{owner}/{repo}/rulesets/rule-suites\",\n \"GET /repos/{owner}/{repo}/secret-scanning/alerts\",\n \"GET /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}/locations\",\n \"GET /repos/{owner}/{repo}/security-advisories\",\n \"GET /repos/{owner}/{repo}/stargazers\",\n \"GET /repos/{owner}/{repo}/subscribers\",\n \"GET /repos/{owner}/{repo}/tags\",\n \"GET /repos/{owner}/{repo}/teams\",\n \"GET /repos/{owner}/{repo}/topics\",\n \"GET /repositories\",\n \"GET /repositories/{repository_id}/environments/{environment_name}/secrets\",\n \"GET /repositories/{repository_id}/environments/{environment_name}/variables\",\n \"GET /search/code\",\n \"GET /search/commits\",\n \"GET /search/issues\",\n \"GET /search/labels\",\n \"GET /search/repositories\",\n \"GET /search/topics\",\n \"GET /search/users\",\n \"GET /teams/{team_id}/discussions\",\n \"GET /teams/{team_id}/discussions/{discussion_number}/comments\",\n \"GET /teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}/reactions\",\n \"GET /teams/{team_id}/discussions/{discussion_number}/reactions\",\n \"GET /teams/{team_id}/invitations\",\n \"GET /teams/{team_id}/members\",\n \"GET /teams/{team_id}/projects\",\n \"GET /teams/{team_id}/repos\",\n \"GET /teams/{team_id}/teams\",\n \"GET /user/blocks\",\n \"GET /user/codespaces\",\n \"GET /user/codespaces/secrets\",\n \"GET /user/emails\",\n \"GET /user/followers\",\n \"GET /user/following\",\n \"GET /user/gpg_keys\",\n \"GET /user/installations\",\n \"GET /user/installations/{installation_id}/repositories\",\n \"GET /user/issues\",\n \"GET /user/keys\",\n \"GET /user/marketplace_purchases\",\n \"GET /user/marketplace_purchases/stubbed\",\n \"GET /user/memberships/orgs\",\n \"GET /user/migrations\",\n \"GET /user/migrations/{migration_id}/repositories\",\n \"GET /user/orgs\",\n \"GET /user/packages\",\n \"GET /user/packages/{package_type}/{package_name}/versions\",\n \"GET /user/public_emails\",\n \"GET /user/repos\",\n \"GET /user/repository_invitations\",\n \"GET /user/social_accounts\",\n \"GET /user/ssh_signing_keys\",\n \"GET /user/starred\",\n \"GET /user/subscriptions\",\n \"GET /user/teams\",\n \"GET /users\",\n \"GET /users/{username}/events\",\n \"GET /users/{username}/events/orgs/{org}\",\n \"GET /users/{username}/events/public\",\n \"GET /users/{username}/followers\",\n \"GET /users/{username}/following\",\n \"GET /users/{username}/gists\",\n \"GET /users/{username}/gpg_keys\",\n \"GET /users/{username}/keys\",\n \"GET /users/{username}/orgs\",\n \"GET /users/{username}/packages\",\n \"GET /users/{username}/projects\",\n \"GET /users/{username}/received_events\",\n \"GET /users/{username}/received_events/public\",\n \"GET /users/{username}/repos\",\n \"GET /users/{username}/social_accounts\",\n \"GET /users/{username}/ssh_signing_keys\",\n \"GET /users/{username}/starred\",\n \"GET /users/{username}/subscriptions\"\n];\n\n// pkg/dist-src/paginating-endpoints.js\nfunction isPaginatingEndpoint(arg) {\n if (typeof arg === \"string\") {\n return paginatingEndpoints.includes(arg);\n } else {\n return false;\n }\n}\n\n// pkg/dist-src/index.js\nfunction paginateRest(octokit) {\n return {\n paginate: Object.assign(paginate.bind(null, octokit), {\n iterator: iterator.bind(null, octokit)\n })\n };\n}\npaginateRest.VERSION = VERSION;\n// Annotate the CommonJS export names for ESM import in node:\n0 && (module.exports = {\n composePaginateRest,\n isPaginatingEndpoint,\n paginateRest,\n paginatingEndpoints\n});\n","\"use strict\";\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n};\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\n\n// pkg/dist-src/index.js\nvar dist_src_exports = {};\n__export(dist_src_exports, {\n legacyRestEndpointMethods: () => legacyRestEndpointMethods,\n restEndpointMethods: () => restEndpointMethods\n});\nmodule.exports = __toCommonJS(dist_src_exports);\n\n// pkg/dist-src/version.js\nvar VERSION = \"10.4.0\";\n\n// pkg/dist-src/generated/endpoints.js\nvar Endpoints = {\n actions: {\n addCustomLabelsToSelfHostedRunnerForOrg: [\n \"POST /orgs/{org}/actions/runners/{runner_id}/labels\"\n ],\n addCustomLabelsToSelfHostedRunnerForRepo: [\n \"POST /repos/{owner}/{repo}/actions/runners/{runner_id}/labels\"\n ],\n addSelectedRepoToOrgSecret: [\n \"PUT /orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}\"\n ],\n addSelectedRepoToOrgVariable: [\n \"PUT /orgs/{org}/actions/variables/{name}/repositories/{repository_id}\"\n ],\n approveWorkflowRun: [\n \"POST /repos/{owner}/{repo}/actions/runs/{run_id}/approve\"\n ],\n cancelWorkflowRun: [\n \"POST /repos/{owner}/{repo}/actions/runs/{run_id}/cancel\"\n ],\n createEnvironmentVariable: [\n \"POST /repositories/{repository_id}/environments/{environment_name}/variables\"\n ],\n createOrUpdateEnvironmentSecret: [\n \"PUT /repositories/{repository_id}/environments/{environment_name}/secrets/{secret_name}\"\n ],\n createOrUpdateOrgSecret: [\"PUT /orgs/{org}/actions/secrets/{secret_name}\"],\n createOrUpdateRepoSecret: [\n \"PUT /repos/{owner}/{repo}/actions/secrets/{secret_name}\"\n ],\n createOrgVariable: [\"POST /orgs/{org}/actions/variables\"],\n createRegistrationTokenForOrg: [\n \"POST /orgs/{org}/actions/runners/registration-token\"\n ],\n createRegistrationTokenForRepo: [\n \"POST /repos/{owner}/{repo}/actions/runners/registration-token\"\n ],\n createRemoveTokenForOrg: [\"POST /orgs/{org}/actions/runners/remove-token\"],\n createRemoveTokenForRepo: [\n \"POST /repos/{owner}/{repo}/actions/runners/remove-token\"\n ],\n createRepoVariable: [\"POST /repos/{owner}/{repo}/actions/variables\"],\n createWorkflowDispatch: [\n \"POST /repos/{owner}/{repo}/actions/workflows/{workflow_id}/dispatches\"\n ],\n deleteActionsCacheById: [\n \"DELETE /repos/{owner}/{repo}/actions/caches/{cache_id}\"\n ],\n deleteActionsCacheByKey: [\n \"DELETE /repos/{owner}/{repo}/actions/caches{?key,ref}\"\n ],\n deleteArtifact: [\n \"DELETE /repos/{owner}/{repo}/actions/artifacts/{artifact_id}\"\n ],\n deleteEnvironmentSecret: [\n \"DELETE /repositories/{repository_id}/environments/{environment_name}/secrets/{secret_name}\"\n ],\n deleteEnvironmentVariable: [\n \"DELETE /repositories/{repository_id}/environments/{environment_name}/variables/{name}\"\n ],\n deleteOrgSecret: [\"DELETE /orgs/{org}/actions/secrets/{secret_name}\"],\n deleteOrgVariable: [\"DELETE /orgs/{org}/actions/variables/{name}\"],\n deleteRepoSecret: [\n \"DELETE /repos/{owner}/{repo}/actions/secrets/{secret_name}\"\n ],\n deleteRepoVariable: [\n \"DELETE /repos/{owner}/{repo}/actions/variables/{name}\"\n ],\n deleteSelfHostedRunnerFromOrg: [\n \"DELETE /orgs/{org}/actions/runners/{runner_id}\"\n ],\n deleteSelfHostedRunnerFromRepo: [\n \"DELETE /repos/{owner}/{repo}/actions/runners/{runner_id}\"\n ],\n deleteWorkflowRun: [\"DELETE /repos/{owner}/{repo}/actions/runs/{run_id}\"],\n deleteWorkflowRunLogs: [\n \"DELETE /repos/{owner}/{repo}/actions/runs/{run_id}/logs\"\n ],\n disableSelectedRepositoryGithubActionsOrganization: [\n \"DELETE /orgs/{org}/actions/permissions/repositories/{repository_id}\"\n ],\n disableWorkflow: [\n \"PUT /repos/{owner}/{repo}/actions/workflows/{workflow_id}/disable\"\n ],\n downloadArtifact: [\n \"GET /repos/{owner}/{repo}/actions/artifacts/{artifact_id}/{archive_format}\"\n ],\n downloadJobLogsForWorkflowRun: [\n \"GET /repos/{owner}/{repo}/actions/jobs/{job_id}/logs\"\n ],\n downloadWorkflowRunAttemptLogs: [\n \"GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}/logs\"\n ],\n downloadWorkflowRunLogs: [\n \"GET /repos/{owner}/{repo}/actions/runs/{run_id}/logs\"\n ],\n enableSelectedRepositoryGithubActionsOrganization: [\n \"PUT /orgs/{org}/actions/permissions/repositories/{repository_id}\"\n ],\n enableWorkflow: [\n \"PUT /repos/{owner}/{repo}/actions/workflows/{workflow_id}/enable\"\n ],\n forceCancelWorkflowRun: [\n \"POST /repos/{owner}/{repo}/actions/runs/{run_id}/force-cancel\"\n ],\n generateRunnerJitconfigForOrg: [\n \"POST /orgs/{org}/actions/runners/generate-jitconfig\"\n ],\n generateRunnerJitconfigForRepo: [\n \"POST /repos/{owner}/{repo}/actions/runners/generate-jitconfig\"\n ],\n getActionsCacheList: [\"GET /repos/{owner}/{repo}/actions/caches\"],\n getActionsCacheUsage: [\"GET /repos/{owner}/{repo}/actions/cache/usage\"],\n getActionsCacheUsageByRepoForOrg: [\n \"GET /orgs/{org}/actions/cache/usage-by-repository\"\n ],\n getActionsCacheUsageForOrg: [\"GET /orgs/{org}/actions/cache/usage\"],\n getAllowedActionsOrganization: [\n \"GET /orgs/{org}/actions/permissions/selected-actions\"\n ],\n getAllowedActionsRepository: [\n \"GET /repos/{owner}/{repo}/actions/permissions/selected-actions\"\n ],\n getArtifact: [\"GET /repos/{owner}/{repo}/actions/artifacts/{artifact_id}\"],\n getCustomOidcSubClaimForRepo: [\n \"GET /repos/{owner}/{repo}/actions/oidc/customization/sub\"\n ],\n getEnvironmentPublicKey: [\n \"GET /repositories/{repository_id}/environments/{environment_name}/secrets/public-key\"\n ],\n getEnvironmentSecret: [\n \"GET /repositories/{repository_id}/environments/{environment_name}/secrets/{secret_name}\"\n ],\n getEnvironmentVariable: [\n \"GET /repositories/{repository_id}/environments/{environment_name}/variables/{name}\"\n ],\n getGithubActionsDefaultWorkflowPermissionsOrganization: [\n \"GET /orgs/{org}/actions/permissions/workflow\"\n ],\n getGithubActionsDefaultWorkflowPermissionsRepository: [\n \"GET /repos/{owner}/{repo}/actions/permissions/workflow\"\n ],\n getGithubActionsPermissionsOrganization: [\n \"GET /orgs/{org}/actions/permissions\"\n ],\n getGithubActionsPermissionsRepository: [\n \"GET /repos/{owner}/{repo}/actions/permissions\"\n ],\n getJobForWorkflowRun: [\"GET /repos/{owner}/{repo}/actions/jobs/{job_id}\"],\n getOrgPublicKey: [\"GET /orgs/{org}/actions/secrets/public-key\"],\n getOrgSecret: [\"GET /orgs/{org}/actions/secrets/{secret_name}\"],\n getOrgVariable: [\"GET /orgs/{org}/actions/variables/{name}\"],\n getPendingDeploymentsForRun: [\n \"GET /repos/{owner}/{repo}/actions/runs/{run_id}/pending_deployments\"\n ],\n getRepoPermissions: [\n \"GET /repos/{owner}/{repo}/actions/permissions\",\n {},\n { renamed: [\"actions\", \"getGithubActionsPermissionsRepository\"] }\n ],\n getRepoPublicKey: [\"GET /repos/{owner}/{repo}/actions/secrets/public-key\"],\n getRepoSecret: [\"GET /repos/{owner}/{repo}/actions/secrets/{secret_name}\"],\n getRepoVariable: [\"GET /repos/{owner}/{repo}/actions/variables/{name}\"],\n getReviewsForRun: [\n \"GET /repos/{owner}/{repo}/actions/runs/{run_id}/approvals\"\n ],\n getSelfHostedRunnerForOrg: [\"GET /orgs/{org}/actions/runners/{runner_id}\"],\n getSelfHostedRunnerForRepo: [\n \"GET /repos/{owner}/{repo}/actions/runners/{runner_id}\"\n ],\n getWorkflow: [\"GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}\"],\n getWorkflowAccessToRepository: [\n \"GET /repos/{owner}/{repo}/actions/permissions/access\"\n ],\n getWorkflowRun: [\"GET /repos/{owner}/{repo}/actions/runs/{run_id}\"],\n getWorkflowRunAttempt: [\n \"GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}\"\n ],\n getWorkflowRunUsage: [\n \"GET /repos/{owner}/{repo}/actions/runs/{run_id}/timing\"\n ],\n getWorkflowUsage: [\n \"GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/timing\"\n ],\n listArtifactsForRepo: [\"GET /repos/{owner}/{repo}/actions/artifacts\"],\n listEnvironmentSecrets: [\n \"GET /repositories/{repository_id}/environments/{environment_name}/secrets\"\n ],\n listEnvironmentVariables: [\n \"GET /repositories/{repository_id}/environments/{environment_name}/variables\"\n ],\n listJobsForWorkflowRun: [\n \"GET /repos/{owner}/{repo}/actions/runs/{run_id}/jobs\"\n ],\n listJobsForWorkflowRunAttempt: [\n \"GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}/jobs\"\n ],\n listLabelsForSelfHostedRunnerForOrg: [\n \"GET /orgs/{org}/actions/runners/{runner_id}/labels\"\n ],\n listLabelsForSelfHostedRunnerForRepo: [\n \"GET /repos/{owner}/{repo}/actions/runners/{runner_id}/labels\"\n ],\n listOrgSecrets: [\"GET /orgs/{org}/actions/secrets\"],\n listOrgVariables: [\"GET /orgs/{org}/actions/variables\"],\n listRepoOrganizationSecrets: [\n \"GET /repos/{owner}/{repo}/actions/organization-secrets\"\n ],\n listRepoOrganizationVariables: [\n \"GET /repos/{owner}/{repo}/actions/organization-variables\"\n ],\n listRepoSecrets: [\"GET /repos/{owner}/{repo}/actions/secrets\"],\n listRepoVariables: [\"GET /repos/{owner}/{repo}/actions/variables\"],\n listRepoWorkflows: [\"GET /repos/{owner}/{repo}/actions/workflows\"],\n listRunnerApplicationsForOrg: [\"GET /orgs/{org}/actions/runners/downloads\"],\n listRunnerApplicationsForRepo: [\n \"GET /repos/{owner}/{repo}/actions/runners/downloads\"\n ],\n listSelectedReposForOrgSecret: [\n \"GET /orgs/{org}/actions/secrets/{secret_name}/repositories\"\n ],\n listSelectedReposForOrgVariable: [\n \"GET /orgs/{org}/actions/variables/{name}/repositories\"\n ],\n listSelectedRepositoriesEnabledGithubActionsOrganization: [\n \"GET /orgs/{org}/actions/permissions/repositories\"\n ],\n listSelfHostedRunnersForOrg: [\"GET /orgs/{org}/actions/runners\"],\n listSelfHostedRunnersForRepo: [\"GET /repos/{owner}/{repo}/actions/runners\"],\n listWorkflowRunArtifacts: [\n \"GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts\"\n ],\n listWorkflowRuns: [\n \"GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/runs\"\n ],\n listWorkflowRunsForRepo: [\"GET /repos/{owner}/{repo}/actions/runs\"],\n reRunJobForWorkflowRun: [\n \"POST /repos/{owner}/{repo}/actions/jobs/{job_id}/rerun\"\n ],\n reRunWorkflow: [\"POST /repos/{owner}/{repo}/actions/runs/{run_id}/rerun\"],\n reRunWorkflowFailedJobs: [\n \"POST /repos/{owner}/{repo}/actions/runs/{run_id}/rerun-failed-jobs\"\n ],\n removeAllCustomLabelsFromSelfHostedRunnerForOrg: [\n \"DELETE /orgs/{org}/actions/runners/{runner_id}/labels\"\n ],\n removeAllCustomLabelsFromSelfHostedRunnerForRepo: [\n \"DELETE /repos/{owner}/{repo}/actions/runners/{runner_id}/labels\"\n ],\n removeCustomLabelFromSelfHostedRunnerForOrg: [\n \"DELETE /orgs/{org}/actions/runners/{runner_id}/labels/{name}\"\n ],\n removeCustomLabelFromSelfHostedRunnerForRepo: [\n \"DELETE /repos/{owner}/{repo}/actions/runners/{runner_id}/labels/{name}\"\n ],\n removeSelectedRepoFromOrgSecret: [\n \"DELETE /orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}\"\n ],\n removeSelectedRepoFromOrgVariable: [\n \"DELETE /orgs/{org}/actions/variables/{name}/repositories/{repository_id}\"\n ],\n reviewCustomGatesForRun: [\n \"POST /repos/{owner}/{repo}/actions/runs/{run_id}/deployment_protection_rule\"\n ],\n reviewPendingDeploymentsForRun: [\n \"POST /repos/{owner}/{repo}/actions/runs/{run_id}/pending_deployments\"\n ],\n setAllowedActionsOrganization: [\n \"PUT /orgs/{org}/actions/permissions/selected-actions\"\n ],\n setAllowedActionsRepository: [\n \"PUT /repos/{owner}/{repo}/actions/permissions/selected-actions\"\n ],\n setCustomLabelsForSelfHostedRunnerForOrg: [\n \"PUT /orgs/{org}/actions/runners/{runner_id}/labels\"\n ],\n setCustomLabelsForSelfHostedRunnerForRepo: [\n \"PUT /repos/{owner}/{repo}/actions/runners/{runner_id}/labels\"\n ],\n setCustomOidcSubClaimForRepo: [\n \"PUT /repos/{owner}/{repo}/actions/oidc/customization/sub\"\n ],\n setGithubActionsDefaultWorkflowPermissionsOrganization: [\n \"PUT /orgs/{org}/actions/permissions/workflow\"\n ],\n setGithubActionsDefaultWorkflowPermissionsRepository: [\n \"PUT /repos/{owner}/{repo}/actions/permissions/workflow\"\n ],\n setGithubActionsPermissionsOrganization: [\n \"PUT /orgs/{org}/actions/permissions\"\n ],\n setGithubActionsPermissionsRepository: [\n \"PUT /repos/{owner}/{repo}/actions/permissions\"\n ],\n setSelectedReposForOrgSecret: [\n \"PUT /orgs/{org}/actions/secrets/{secret_name}/repositories\"\n ],\n setSelectedReposForOrgVariable: [\n \"PUT /orgs/{org}/actions/variables/{name}/repositories\"\n ],\n setSelectedRepositoriesEnabledGithubActionsOrganization: [\n \"PUT /orgs/{org}/actions/permissions/repositories\"\n ],\n setWorkflowAccessToRepository: [\n \"PUT /repos/{owner}/{repo}/actions/permissions/access\"\n ],\n updateEnvironmentVariable: [\n \"PATCH /repositories/{repository_id}/environments/{environment_name}/variables/{name}\"\n ],\n updateOrgVariable: [\"PATCH /orgs/{org}/actions/variables/{name}\"],\n updateRepoVariable: [\n \"PATCH /repos/{owner}/{repo}/actions/variables/{name}\"\n ]\n },\n activity: {\n checkRepoIsStarredByAuthenticatedUser: [\"GET /user/starred/{owner}/{repo}\"],\n deleteRepoSubscription: [\"DELETE /repos/{owner}/{repo}/subscription\"],\n deleteThreadSubscription: [\n \"DELETE /notifications/threads/{thread_id}/subscription\"\n ],\n getFeeds: [\"GET /feeds\"],\n getRepoSubscription: [\"GET /repos/{owner}/{repo}/subscription\"],\n getThread: [\"GET /notifications/threads/{thread_id}\"],\n getThreadSubscriptionForAuthenticatedUser: [\n \"GET /notifications/threads/{thread_id}/subscription\"\n ],\n listEventsForAuthenticatedUser: [\"GET /users/{username}/events\"],\n listNotificationsForAuthenticatedUser: [\"GET /notifications\"],\n listOrgEventsForAuthenticatedUser: [\n \"GET /users/{username}/events/orgs/{org}\"\n ],\n listPublicEvents: [\"GET /events\"],\n listPublicEventsForRepoNetwork: [\"GET /networks/{owner}/{repo}/events\"],\n listPublicEventsForUser: [\"GET /users/{username}/events/public\"],\n listPublicOrgEvents: [\"GET /orgs/{org}/events\"],\n listReceivedEventsForUser: [\"GET /users/{username}/received_events\"],\n listReceivedPublicEventsForUser: [\n \"GET /users/{username}/received_events/public\"\n ],\n listRepoEvents: [\"GET /repos/{owner}/{repo}/events\"],\n listRepoNotificationsForAuthenticatedUser: [\n \"GET /repos/{owner}/{repo}/notifications\"\n ],\n listReposStarredByAuthenticatedUser: [\"GET /user/starred\"],\n listReposStarredByUser: [\"GET /users/{username}/starred\"],\n listReposWatchedByUser: [\"GET /users/{username}/subscriptions\"],\n listStargazersForRepo: [\"GET /repos/{owner}/{repo}/stargazers\"],\n listWatchedReposForAuthenticatedUser: [\"GET /user/subscriptions\"],\n listWatchersForRepo: [\"GET /repos/{owner}/{repo}/subscribers\"],\n markNotificationsAsRead: [\"PUT /notifications\"],\n markRepoNotificationsAsRead: [\"PUT /repos/{owner}/{repo}/notifications\"],\n markThreadAsDone: [\"DELETE /notifications/threads/{thread_id}\"],\n markThreadAsRead: [\"PATCH /notifications/threads/{thread_id}\"],\n setRepoSubscription: [\"PUT /repos/{owner}/{repo}/subscription\"],\n setThreadSubscription: [\n \"PUT /notifications/threads/{thread_id}/subscription\"\n ],\n starRepoForAuthenticatedUser: [\"PUT /user/starred/{owner}/{repo}\"],\n unstarRepoForAuthenticatedUser: [\"DELETE /user/starred/{owner}/{repo}\"]\n },\n apps: {\n addRepoToInstallation: [\n \"PUT /user/installations/{installation_id}/repositories/{repository_id}\",\n {},\n { renamed: [\"apps\", \"addRepoToInstallationForAuthenticatedUser\"] }\n ],\n addRepoToInstallationForAuthenticatedUser: [\n \"PUT /user/installations/{installation_id}/repositories/{repository_id}\"\n ],\n checkToken: [\"POST /applications/{client_id}/token\"],\n createFromManifest: [\"POST /app-manifests/{code}/conversions\"],\n createInstallationAccessToken: [\n \"POST /app/installations/{installation_id}/access_tokens\"\n ],\n deleteAuthorization: [\"DELETE /applications/{client_id}/grant\"],\n deleteInstallation: [\"DELETE /app/installations/{installation_id}\"],\n deleteToken: [\"DELETE /applications/{client_id}/token\"],\n getAuthenticated: [\"GET /app\"],\n getBySlug: [\"GET /apps/{app_slug}\"],\n getInstallation: [\"GET /app/installations/{installation_id}\"],\n getOrgInstallation: [\"GET /orgs/{org}/installation\"],\n getRepoInstallation: [\"GET /repos/{owner}/{repo}/installation\"],\n getSubscriptionPlanForAccount: [\n \"GET /marketplace_listing/accounts/{account_id}\"\n ],\n getSubscriptionPlanForAccountStubbed: [\n \"GET /marketplace_listing/stubbed/accounts/{account_id}\"\n ],\n getUserInstallation: [\"GET /users/{username}/installation\"],\n getWebhookConfigForApp: [\"GET /app/hook/config\"],\n getWebhookDelivery: [\"GET /app/hook/deliveries/{delivery_id}\"],\n listAccountsForPlan: [\"GET /marketplace_listing/plans/{plan_id}/accounts\"],\n listAccountsForPlanStubbed: [\n \"GET /marketplace_listing/stubbed/plans/{plan_id}/accounts\"\n ],\n listInstallationReposForAuthenticatedUser: [\n \"GET /user/installations/{installation_id}/repositories\"\n ],\n listInstallationRequestsForAuthenticatedApp: [\n \"GET /app/installation-requests\"\n ],\n listInstallations: [\"GET /app/installations\"],\n listInstallationsForAuthenticatedUser: [\"GET /user/installations\"],\n listPlans: [\"GET /marketplace_listing/plans\"],\n listPlansStubbed: [\"GET /marketplace_listing/stubbed/plans\"],\n listReposAccessibleToInstallation: [\"GET /installation/repositories\"],\n listSubscriptionsForAuthenticatedUser: [\"GET /user/marketplace_purchases\"],\n listSubscriptionsForAuthenticatedUserStubbed: [\n \"GET /user/marketplace_purchases/stubbed\"\n ],\n listWebhookDeliveries: [\"GET /app/hook/deliveries\"],\n redeliverWebhookDelivery: [\n \"POST /app/hook/deliveries/{delivery_id}/attempts\"\n ],\n removeRepoFromInstallation: [\n \"DELETE /user/installations/{installation_id}/repositories/{repository_id}\",\n {},\n { renamed: [\"apps\", \"removeRepoFromInstallationForAuthenticatedUser\"] }\n ],\n removeRepoFromInstallationForAuthenticatedUser: [\n \"DELETE /user/installations/{installation_id}/repositories/{repository_id}\"\n ],\n resetToken: [\"PATCH /applications/{client_id}/token\"],\n revokeInstallationAccessToken: [\"DELETE /installation/token\"],\n scopeToken: [\"POST /applications/{client_id}/token/scoped\"],\n suspendInstallation: [\"PUT /app/installations/{installation_id}/suspended\"],\n unsuspendInstallation: [\n \"DELETE /app/installations/{installation_id}/suspended\"\n ],\n updateWebhookConfigForApp: [\"PATCH /app/hook/config\"]\n },\n billing: {\n getGithubActionsBillingOrg: [\"GET /orgs/{org}/settings/billing/actions\"],\n getGithubActionsBillingUser: [\n \"GET /users/{username}/settings/billing/actions\"\n ],\n getGithubPackagesBillingOrg: [\"GET /orgs/{org}/settings/billing/packages\"],\n getGithubPackagesBillingUser: [\n \"GET /users/{username}/settings/billing/packages\"\n ],\n getSharedStorageBillingOrg: [\n \"GET /orgs/{org}/settings/billing/shared-storage\"\n ],\n getSharedStorageBillingUser: [\n \"GET /users/{username}/settings/billing/shared-storage\"\n ]\n },\n checks: {\n create: [\"POST /repos/{owner}/{repo}/check-runs\"],\n createSuite: [\"POST /repos/{owner}/{repo}/check-suites\"],\n get: [\"GET /repos/{owner}/{repo}/check-runs/{check_run_id}\"],\n getSuite: [\"GET /repos/{owner}/{repo}/check-suites/{check_suite_id}\"],\n listAnnotations: [\n \"GET /repos/{owner}/{repo}/check-runs/{check_run_id}/annotations\"\n ],\n listForRef: [\"GET /repos/{owner}/{repo}/commits/{ref}/check-runs\"],\n listForSuite: [\n \"GET /repos/{owner}/{repo}/check-suites/{check_suite_id}/check-runs\"\n ],\n listSuitesForRef: [\"GET /repos/{owner}/{repo}/commits/{ref}/check-suites\"],\n rerequestRun: [\n \"POST /repos/{owner}/{repo}/check-runs/{check_run_id}/rerequest\"\n ],\n rerequestSuite: [\n \"POST /repos/{owner}/{repo}/check-suites/{check_suite_id}/rerequest\"\n ],\n setSuitesPreferences: [\n \"PATCH /repos/{owner}/{repo}/check-suites/preferences\"\n ],\n update: [\"PATCH /repos/{owner}/{repo}/check-runs/{check_run_id}\"]\n },\n codeScanning: {\n deleteAnalysis: [\n \"DELETE /repos/{owner}/{repo}/code-scanning/analyses/{analysis_id}{?confirm_delete}\"\n ],\n getAlert: [\n \"GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}\",\n {},\n { renamedParameters: { alert_id: \"alert_number\" } }\n ],\n getAnalysis: [\n \"GET /repos/{owner}/{repo}/code-scanning/analyses/{analysis_id}\"\n ],\n getCodeqlDatabase: [\n \"GET /repos/{owner}/{repo}/code-scanning/codeql/databases/{language}\"\n ],\n getDefaultSetup: [\"GET /repos/{owner}/{repo}/code-scanning/default-setup\"],\n getSarif: [\"GET /repos/{owner}/{repo}/code-scanning/sarifs/{sarif_id}\"],\n listAlertInstances: [\n \"GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/instances\"\n ],\n listAlertsForOrg: [\"GET /orgs/{org}/code-scanning/alerts\"],\n listAlertsForRepo: [\"GET /repos/{owner}/{repo}/code-scanning/alerts\"],\n listAlertsInstances: [\n \"GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/instances\",\n {},\n { renamed: [\"codeScanning\", \"listAlertInstances\"] }\n ],\n listCodeqlDatabases: [\n \"GET /repos/{owner}/{repo}/code-scanning/codeql/databases\"\n ],\n listRecentAnalyses: [\"GET /repos/{owner}/{repo}/code-scanning/analyses\"],\n updateAlert: [\n \"PATCH /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}\"\n ],\n updateDefaultSetup: [\n \"PATCH /repos/{owner}/{repo}/code-scanning/default-setup\"\n ],\n uploadSarif: [\"POST /repos/{owner}/{repo}/code-scanning/sarifs\"]\n },\n codesOfConduct: {\n getAllCodesOfConduct: [\"GET /codes_of_conduct\"],\n getConductCode: [\"GET /codes_of_conduct/{key}\"]\n },\n codespaces: {\n addRepositoryForSecretForAuthenticatedUser: [\n \"PUT /user/codespaces/secrets/{secret_name}/repositories/{repository_id}\"\n ],\n addSelectedRepoToOrgSecret: [\n \"PUT /orgs/{org}/codespaces/secrets/{secret_name}/repositories/{repository_id}\"\n ],\n checkPermissionsForDevcontainer: [\n \"GET /repos/{owner}/{repo}/codespaces/permissions_check\"\n ],\n codespaceMachinesForAuthenticatedUser: [\n \"GET /user/codespaces/{codespace_name}/machines\"\n ],\n createForAuthenticatedUser: [\"POST /user/codespaces\"],\n createOrUpdateOrgSecret: [\n \"PUT /orgs/{org}/codespaces/secrets/{secret_name}\"\n ],\n createOrUpdateRepoSecret: [\n \"PUT /repos/{owner}/{repo}/codespaces/secrets/{secret_name}\"\n ],\n createOrUpdateSecretForAuthenticatedUser: [\n \"PUT /user/codespaces/secrets/{secret_name}\"\n ],\n createWithPrForAuthenticatedUser: [\n \"POST /repos/{owner}/{repo}/pulls/{pull_number}/codespaces\"\n ],\n createWithRepoForAuthenticatedUser: [\n \"POST /repos/{owner}/{repo}/codespaces\"\n ],\n deleteForAuthenticatedUser: [\"DELETE /user/codespaces/{codespace_name}\"],\n deleteFromOrganization: [\n \"DELETE /orgs/{org}/members/{username}/codespaces/{codespace_name}\"\n ],\n deleteOrgSecret: [\"DELETE /orgs/{org}/codespaces/secrets/{secret_name}\"],\n deleteRepoSecret: [\n \"DELETE /repos/{owner}/{repo}/codespaces/secrets/{secret_name}\"\n ],\n deleteSecretForAuthenticatedUser: [\n \"DELETE /user/codespaces/secrets/{secret_name}\"\n ],\n exportForAuthenticatedUser: [\n \"POST /user/codespaces/{codespace_name}/exports\"\n ],\n getCodespacesForUserInOrg: [\n \"GET /orgs/{org}/members/{username}/codespaces\"\n ],\n getExportDetailsForAuthenticatedUser: [\n \"GET /user/codespaces/{codespace_name}/exports/{export_id}\"\n ],\n getForAuthenticatedUser: [\"GET /user/codespaces/{codespace_name}\"],\n getOrgPublicKey: [\"GET /orgs/{org}/codespaces/secrets/public-key\"],\n getOrgSecret: [\"GET /orgs/{org}/codespaces/secrets/{secret_name}\"],\n getPublicKeyForAuthenticatedUser: [\n \"GET /user/codespaces/secrets/public-key\"\n ],\n getRepoPublicKey: [\n \"GET /repos/{owner}/{repo}/codespaces/secrets/public-key\"\n ],\n getRepoSecret: [\n \"GET /repos/{owner}/{repo}/codespaces/secrets/{secret_name}\"\n ],\n getSecretForAuthenticatedUser: [\n \"GET /user/codespaces/secrets/{secret_name}\"\n ],\n listDevcontainersInRepositoryForAuthenticatedUser: [\n \"GET /repos/{owner}/{repo}/codespaces/devcontainers\"\n ],\n listForAuthenticatedUser: [\"GET /user/codespaces\"],\n listInOrganization: [\n \"GET /orgs/{org}/codespaces\",\n {},\n { renamedParameters: { org_id: \"org\" } }\n ],\n listInRepositoryForAuthenticatedUser: [\n \"GET /repos/{owner}/{repo}/codespaces\"\n ],\n listOrgSecrets: [\"GET /orgs/{org}/codespaces/secrets\"],\n listRepoSecrets: [\"GET /repos/{owner}/{repo}/codespaces/secrets\"],\n listRepositoriesForSecretForAuthenticatedUser: [\n \"GET /user/codespaces/secrets/{secret_name}/repositories\"\n ],\n listSecretsForAuthenticatedUser: [\"GET /user/codespaces/secrets\"],\n listSelectedReposForOrgSecret: [\n \"GET /orgs/{org}/codespaces/secrets/{secret_name}/repositories\"\n ],\n preFlightWithRepoForAuthenticatedUser: [\n \"GET /repos/{owner}/{repo}/codespaces/new\"\n ],\n publishForAuthenticatedUser: [\n \"POST /user/codespaces/{codespace_name}/publish\"\n ],\n removeRepositoryForSecretForAuthenticatedUser: [\n \"DELETE /user/codespaces/secrets/{secret_name}/repositories/{repository_id}\"\n ],\n removeSelectedRepoFromOrgSecret: [\n \"DELETE /orgs/{org}/codespaces/secrets/{secret_name}/repositories/{repository_id}\"\n ],\n repoMachinesForAuthenticatedUser: [\n \"GET /repos/{owner}/{repo}/codespaces/machines\"\n ],\n setRepositoriesForSecretForAuthenticatedUser: [\n \"PUT /user/codespaces/secrets/{secret_name}/repositories\"\n ],\n setSelectedReposForOrgSecret: [\n \"PUT /orgs/{org}/codespaces/secrets/{secret_name}/repositories\"\n ],\n startForAuthenticatedUser: [\"POST /user/codespaces/{codespace_name}/start\"],\n stopForAuthenticatedUser: [\"POST /user/codespaces/{codespace_name}/stop\"],\n stopInOrganization: [\n \"POST /orgs/{org}/members/{username}/codespaces/{codespace_name}/stop\"\n ],\n updateForAuthenticatedUser: [\"PATCH /user/codespaces/{codespace_name}\"]\n },\n copilot: {\n addCopilotSeatsForTeams: [\n \"POST /orgs/{org}/copilot/billing/selected_teams\"\n ],\n addCopilotSeatsForUsers: [\n \"POST /orgs/{org}/copilot/billing/selected_users\"\n ],\n cancelCopilotSeatAssignmentForTeams: [\n \"DELETE /orgs/{org}/copilot/billing/selected_teams\"\n ],\n cancelCopilotSeatAssignmentForUsers: [\n \"DELETE /orgs/{org}/copilot/billing/selected_users\"\n ],\n getCopilotOrganizationDetails: [\"GET /orgs/{org}/copilot/billing\"],\n getCopilotSeatDetailsForUser: [\n \"GET /orgs/{org}/members/{username}/copilot\"\n ],\n listCopilotSeats: [\"GET /orgs/{org}/copilot/billing/seats\"]\n },\n dependabot: {\n addSelectedRepoToOrgSecret: [\n \"PUT /orgs/{org}/dependabot/secrets/{secret_name}/repositories/{repository_id}\"\n ],\n createOrUpdateOrgSecret: [\n \"PUT /orgs/{org}/dependabot/secrets/{secret_name}\"\n ],\n createOrUpdateRepoSecret: [\n \"PUT /repos/{owner}/{repo}/dependabot/secrets/{secret_name}\"\n ],\n deleteOrgSecret: [\"DELETE /orgs/{org}/dependabot/secrets/{secret_name}\"],\n deleteRepoSecret: [\n \"DELETE /repos/{owner}/{repo}/dependabot/secrets/{secret_name}\"\n ],\n getAlert: [\"GET /repos/{owner}/{repo}/dependabot/alerts/{alert_number}\"],\n getOrgPublicKey: [\"GET /orgs/{org}/dependabot/secrets/public-key\"],\n getOrgSecret: [\"GET /orgs/{org}/dependabot/secrets/{secret_name}\"],\n getRepoPublicKey: [\n \"GET /repos/{owner}/{repo}/dependabot/secrets/public-key\"\n ],\n getRepoSecret: [\n \"GET /repos/{owner}/{repo}/dependabot/secrets/{secret_name}\"\n ],\n listAlertsForEnterprise: [\n \"GET /enterprises/{enterprise}/dependabot/alerts\"\n ],\n listAlertsForOrg: [\"GET /orgs/{org}/dependabot/alerts\"],\n listAlertsForRepo: [\"GET /repos/{owner}/{repo}/dependabot/alerts\"],\n listOrgSecrets: [\"GET /orgs/{org}/dependabot/secrets\"],\n listRepoSecrets: [\"GET /repos/{owner}/{repo}/dependabot/secrets\"],\n listSelectedReposForOrgSecret: [\n \"GET /orgs/{org}/dependabot/secrets/{secret_name}/repositories\"\n ],\n removeSelectedRepoFromOrgSecret: [\n \"DELETE /orgs/{org}/dependabot/secrets/{secret_name}/repositories/{repository_id}\"\n ],\n setSelectedReposForOrgSecret: [\n \"PUT /orgs/{org}/dependabot/secrets/{secret_name}/repositories\"\n ],\n updateAlert: [\n \"PATCH /repos/{owner}/{repo}/dependabot/alerts/{alert_number}\"\n ]\n },\n dependencyGraph: {\n createRepositorySnapshot: [\n \"POST /repos/{owner}/{repo}/dependency-graph/snapshots\"\n ],\n diffRange: [\n \"GET /repos/{owner}/{repo}/dependency-graph/compare/{basehead}\"\n ],\n exportSbom: [\"GET /repos/{owner}/{repo}/dependency-graph/sbom\"]\n },\n emojis: { get: [\"GET /emojis\"] },\n gists: {\n checkIsStarred: [\"GET /gists/{gist_id}/star\"],\n create: [\"POST /gists\"],\n createComment: [\"POST /gists/{gist_id}/comments\"],\n delete: [\"DELETE /gists/{gist_id}\"],\n deleteComment: [\"DELETE /gists/{gist_id}/comments/{comment_id}\"],\n fork: [\"POST /gists/{gist_id}/forks\"],\n get: [\"GET /gists/{gist_id}\"],\n getComment: [\"GET /gists/{gist_id}/comments/{comment_id}\"],\n getRevision: [\"GET /gists/{gist_id}/{sha}\"],\n list: [\"GET /gists\"],\n listComments: [\"GET /gists/{gist_id}/comments\"],\n listCommits: [\"GET /gists/{gist_id}/commits\"],\n listForUser: [\"GET /users/{username}/gists\"],\n listForks: [\"GET /gists/{gist_id}/forks\"],\n listPublic: [\"GET /gists/public\"],\n listStarred: [\"GET /gists/starred\"],\n star: [\"PUT /gists/{gist_id}/star\"],\n unstar: [\"DELETE /gists/{gist_id}/star\"],\n update: [\"PATCH /gists/{gist_id}\"],\n updateComment: [\"PATCH /gists/{gist_id}/comments/{comment_id}\"]\n },\n git: {\n createBlob: [\"POST /repos/{owner}/{repo}/git/blobs\"],\n createCommit: [\"POST /repos/{owner}/{repo}/git/commits\"],\n createRef: [\"POST /repos/{owner}/{repo}/git/refs\"],\n createTag: [\"POST /repos/{owner}/{repo}/git/tags\"],\n createTree: [\"POST /repos/{owner}/{repo}/git/trees\"],\n deleteRef: [\"DELETE /repos/{owner}/{repo}/git/refs/{ref}\"],\n getBlob: [\"GET /repos/{owner}/{repo}/git/blobs/{file_sha}\"],\n getCommit: [\"GET /repos/{owner}/{repo}/git/commits/{commit_sha}\"],\n getRef: [\"GET /repos/{owner}/{repo}/git/ref/{ref}\"],\n getTag: [\"GET /repos/{owner}/{repo}/git/tags/{tag_sha}\"],\n getTree: [\"GET /repos/{owner}/{repo}/git/trees/{tree_sha}\"],\n listMatchingRefs: [\"GET /repos/{owner}/{repo}/git/matching-refs/{ref}\"],\n updateRef: [\"PATCH /repos/{owner}/{repo}/git/refs/{ref}\"]\n },\n gitignore: {\n getAllTemplates: [\"GET /gitignore/templates\"],\n getTemplate: [\"GET /gitignore/templates/{name}\"]\n },\n interactions: {\n getRestrictionsForAuthenticatedUser: [\"GET /user/interaction-limits\"],\n getRestrictionsForOrg: [\"GET /orgs/{org}/interaction-limits\"],\n getRestrictionsForRepo: [\"GET /repos/{owner}/{repo}/interaction-limits\"],\n getRestrictionsForYourPublicRepos: [\n \"GET /user/interaction-limits\",\n {},\n { renamed: [\"interactions\", \"getRestrictionsForAuthenticatedUser\"] }\n ],\n removeRestrictionsForAuthenticatedUser: [\"DELETE /user/interaction-limits\"],\n removeRestrictionsForOrg: [\"DELETE /orgs/{org}/interaction-limits\"],\n removeRestrictionsForRepo: [\n \"DELETE /repos/{owner}/{repo}/interaction-limits\"\n ],\n removeRestrictionsForYourPublicRepos: [\n \"DELETE /user/interaction-limits\",\n {},\n { renamed: [\"interactions\", \"removeRestrictionsForAuthenticatedUser\"] }\n ],\n setRestrictionsForAuthenticatedUser: [\"PUT /user/interaction-limits\"],\n setRestrictionsForOrg: [\"PUT /orgs/{org}/interaction-limits\"],\n setRestrictionsForRepo: [\"PUT /repos/{owner}/{repo}/interaction-limits\"],\n setRestrictionsForYourPublicRepos: [\n \"PUT /user/interaction-limits\",\n {},\n { renamed: [\"interactions\", \"setRestrictionsForAuthenticatedUser\"] }\n ]\n },\n issues: {\n addAssignees: [\n \"POST /repos/{owner}/{repo}/issues/{issue_number}/assignees\"\n ],\n addLabels: [\"POST /repos/{owner}/{repo}/issues/{issue_number}/labels\"],\n checkUserCanBeAssigned: [\"GET /repos/{owner}/{repo}/assignees/{assignee}\"],\n checkUserCanBeAssignedToIssue: [\n \"GET /repos/{owner}/{repo}/issues/{issue_number}/assignees/{assignee}\"\n ],\n create: [\"POST /repos/{owner}/{repo}/issues\"],\n createComment: [\n \"POST /repos/{owner}/{repo}/issues/{issue_number}/comments\"\n ],\n createLabel: [\"POST /repos/{owner}/{repo}/labels\"],\n createMilestone: [\"POST /repos/{owner}/{repo}/milestones\"],\n deleteComment: [\n \"DELETE /repos/{owner}/{repo}/issues/comments/{comment_id}\"\n ],\n deleteLabel: [\"DELETE /repos/{owner}/{repo}/labels/{name}\"],\n deleteMilestone: [\n \"DELETE /repos/{owner}/{repo}/milestones/{milestone_number}\"\n ],\n get: [\"GET /repos/{owner}/{repo}/issues/{issue_number}\"],\n getComment: [\"GET /repos/{owner}/{repo}/issues/comments/{comment_id}\"],\n getEvent: [\"GET /repos/{owner}/{repo}/issues/events/{event_id}\"],\n getLabel: [\"GET /repos/{owner}/{repo}/labels/{name}\"],\n getMilestone: [\"GET /repos/{owner}/{repo}/milestones/{milestone_number}\"],\n list: [\"GET /issues\"],\n listAssignees: [\"GET /repos/{owner}/{repo}/assignees\"],\n listComments: [\"GET /repos/{owner}/{repo}/issues/{issue_number}/comments\"],\n listCommentsForRepo: [\"GET /repos/{owner}/{repo}/issues/comments\"],\n listEvents: [\"GET /repos/{owner}/{repo}/issues/{issue_number}/events\"],\n listEventsForRepo: [\"GET /repos/{owner}/{repo}/issues/events\"],\n listEventsForTimeline: [\n \"GET /repos/{owner}/{repo}/issues/{issue_number}/timeline\"\n ],\n listForAuthenticatedUser: [\"GET /user/issues\"],\n listForOrg: [\"GET /orgs/{org}/issues\"],\n listForRepo: [\"GET /repos/{owner}/{repo}/issues\"],\n listLabelsForMilestone: [\n \"GET /repos/{owner}/{repo}/milestones/{milestone_number}/labels\"\n ],\n listLabelsForRepo: [\"GET /repos/{owner}/{repo}/labels\"],\n listLabelsOnIssue: [\n \"GET /repos/{owner}/{repo}/issues/{issue_number}/labels\"\n ],\n listMilestones: [\"GET /repos/{owner}/{repo}/milestones\"],\n lock: [\"PUT /repos/{owner}/{repo}/issues/{issue_number}/lock\"],\n removeAllLabels: [\n \"DELETE /repos/{owner}/{repo}/issues/{issue_number}/labels\"\n ],\n removeAssignees: [\n \"DELETE /repos/{owner}/{repo}/issues/{issue_number}/assignees\"\n ],\n removeLabel: [\n \"DELETE /repos/{owner}/{repo}/issues/{issue_number}/labels/{name}\"\n ],\n setLabels: [\"PUT /repos/{owner}/{repo}/issues/{issue_number}/labels\"],\n unlock: [\"DELETE /repos/{owner}/{repo}/issues/{issue_number}/lock\"],\n update: [\"PATCH /repos/{owner}/{repo}/issues/{issue_number}\"],\n updateComment: [\"PATCH /repos/{owner}/{repo}/issues/comments/{comment_id}\"],\n updateLabel: [\"PATCH /repos/{owner}/{repo}/labels/{name}\"],\n updateMilestone: [\n \"PATCH /repos/{owner}/{repo}/milestones/{milestone_number}\"\n ]\n },\n licenses: {\n get: [\"GET /licenses/{license}\"],\n getAllCommonlyUsed: [\"GET /licenses\"],\n getForRepo: [\"GET /repos/{owner}/{repo}/license\"]\n },\n markdown: {\n render: [\"POST /markdown\"],\n renderRaw: [\n \"POST /markdown/raw\",\n { headers: { \"content-type\": \"text/plain; charset=utf-8\" } }\n ]\n },\n meta: {\n get: [\"GET /meta\"],\n getAllVersions: [\"GET /versions\"],\n getOctocat: [\"GET /octocat\"],\n getZen: [\"GET /zen\"],\n root: [\"GET /\"]\n },\n migrations: {\n cancelImport: [\n \"DELETE /repos/{owner}/{repo}/import\",\n {},\n {\n deprecated: \"octokit.rest.migrations.cancelImport() is deprecated, see https://docs.github.com/rest/migrations/source-imports#cancel-an-import\"\n }\n ],\n deleteArchiveForAuthenticatedUser: [\n \"DELETE /user/migrations/{migration_id}/archive\"\n ],\n deleteArchiveForOrg: [\n \"DELETE /orgs/{org}/migrations/{migration_id}/archive\"\n ],\n downloadArchiveForOrg: [\n \"GET /orgs/{org}/migrations/{migration_id}/archive\"\n ],\n getArchiveForAuthenticatedUser: [\n \"GET /user/migrations/{migration_id}/archive\"\n ],\n getCommitAuthors: [\n \"GET /repos/{owner}/{repo}/import/authors\",\n {},\n {\n deprecated: \"octokit.rest.migrations.getCommitAuthors() is deprecated, see https://docs.github.com/rest/migrations/source-imports#get-commit-authors\"\n }\n ],\n getImportStatus: [\n \"GET /repos/{owner}/{repo}/import\",\n {},\n {\n deprecated: \"octokit.rest.migrations.getImportStatus() is deprecated, see https://docs.github.com/rest/migrations/source-imports#get-an-import-status\"\n }\n ],\n getLargeFiles: [\n \"GET /repos/{owner}/{repo}/import/large_files\",\n {},\n {\n deprecated: \"octokit.rest.migrations.getLargeFiles() is deprecated, see https://docs.github.com/rest/migrations/source-imports#get-large-files\"\n }\n ],\n getStatusForAuthenticatedUser: [\"GET /user/migrations/{migration_id}\"],\n getStatusForOrg: [\"GET /orgs/{org}/migrations/{migration_id}\"],\n listForAuthenticatedUser: [\"GET /user/migrations\"],\n listForOrg: [\"GET /orgs/{org}/migrations\"],\n listReposForAuthenticatedUser: [\n \"GET /user/migrations/{migration_id}/repositories\"\n ],\n listReposForOrg: [\"GET /orgs/{org}/migrations/{migration_id}/repositories\"],\n listReposForUser: [\n \"GET /user/migrations/{migration_id}/repositories\",\n {},\n { renamed: [\"migrations\", \"listReposForAuthenticatedUser\"] }\n ],\n mapCommitAuthor: [\n \"PATCH /repos/{owner}/{repo}/import/authors/{author_id}\",\n {},\n {\n deprecated: \"octokit.rest.migrations.mapCommitAuthor() is deprecated, see https://docs.github.com/rest/migrations/source-imports#map-a-commit-author\"\n }\n ],\n setLfsPreference: [\n \"PATCH /repos/{owner}/{repo}/import/lfs\",\n {},\n {\n deprecated: \"octokit.rest.migrations.setLfsPreference() is deprecated, see https://docs.github.com/rest/migrations/source-imports#update-git-lfs-preference\"\n }\n ],\n startForAuthenticatedUser: [\"POST /user/migrations\"],\n startForOrg: [\"POST /orgs/{org}/migrations\"],\n startImport: [\n \"PUT /repos/{owner}/{repo}/import\",\n {},\n {\n deprecated: \"octokit.rest.migrations.startImport() is deprecated, see https://docs.github.com/rest/migrations/source-imports#start-an-import\"\n }\n ],\n unlockRepoForAuthenticatedUser: [\n \"DELETE /user/migrations/{migration_id}/repos/{repo_name}/lock\"\n ],\n unlockRepoForOrg: [\n \"DELETE /orgs/{org}/migrations/{migration_id}/repos/{repo_name}/lock\"\n ],\n updateImport: [\n \"PATCH /repos/{owner}/{repo}/import\",\n {},\n {\n deprecated: \"octokit.rest.migrations.updateImport() is deprecated, see https://docs.github.com/rest/migrations/source-imports#update-an-import\"\n }\n ]\n },\n oidc: {\n getOidcCustomSubTemplateForOrg: [\n \"GET /orgs/{org}/actions/oidc/customization/sub\"\n ],\n updateOidcCustomSubTemplateForOrg: [\n \"PUT /orgs/{org}/actions/oidc/customization/sub\"\n ]\n },\n orgs: {\n addSecurityManagerTeam: [\n \"PUT /orgs/{org}/security-managers/teams/{team_slug}\"\n ],\n assignTeamToOrgRole: [\n \"PUT /orgs/{org}/organization-roles/teams/{team_slug}/{role_id}\"\n ],\n assignUserToOrgRole: [\n \"PUT /orgs/{org}/organization-roles/users/{username}/{role_id}\"\n ],\n blockUser: [\"PUT /orgs/{org}/blocks/{username}\"],\n cancelInvitation: [\"DELETE /orgs/{org}/invitations/{invitation_id}\"],\n checkBlockedUser: [\"GET /orgs/{org}/blocks/{username}\"],\n checkMembershipForUser: [\"GET /orgs/{org}/members/{username}\"],\n checkPublicMembershipForUser: [\"GET /orgs/{org}/public_members/{username}\"],\n convertMemberToOutsideCollaborator: [\n \"PUT /orgs/{org}/outside_collaborators/{username}\"\n ],\n createCustomOrganizationRole: [\"POST /orgs/{org}/organization-roles\"],\n createInvitation: [\"POST /orgs/{org}/invitations\"],\n createOrUpdateCustomProperties: [\"PATCH /orgs/{org}/properties/schema\"],\n createOrUpdateCustomPropertiesValuesForRepos: [\n \"PATCH /orgs/{org}/properties/values\"\n ],\n createOrUpdateCustomProperty: [\n \"PUT /orgs/{org}/properties/schema/{custom_property_name}\"\n ],\n createWebhook: [\"POST /orgs/{org}/hooks\"],\n delete: [\"DELETE /orgs/{org}\"],\n deleteCustomOrganizationRole: [\n \"DELETE /orgs/{org}/organization-roles/{role_id}\"\n ],\n deleteWebhook: [\"DELETE /orgs/{org}/hooks/{hook_id}\"],\n enableOrDisableSecurityProductOnAllOrgRepos: [\n \"POST /orgs/{org}/{security_product}/{enablement}\"\n ],\n get: [\"GET /orgs/{org}\"],\n getAllCustomProperties: [\"GET /orgs/{org}/properties/schema\"],\n getCustomProperty: [\n \"GET /orgs/{org}/properties/schema/{custom_property_name}\"\n ],\n getMembershipForAuthenticatedUser: [\"GET /user/memberships/orgs/{org}\"],\n getMembershipForUser: [\"GET /orgs/{org}/memberships/{username}\"],\n getOrgRole: [\"GET /orgs/{org}/organization-roles/{role_id}\"],\n getWebhook: [\"GET /orgs/{org}/hooks/{hook_id}\"],\n getWebhookConfigForOrg: [\"GET /orgs/{org}/hooks/{hook_id}/config\"],\n getWebhookDelivery: [\n \"GET /orgs/{org}/hooks/{hook_id}/deliveries/{delivery_id}\"\n ],\n list: [\"GET /organizations\"],\n listAppInstallations: [\"GET /orgs/{org}/installations\"],\n listBlockedUsers: [\"GET /orgs/{org}/blocks\"],\n listCustomPropertiesValuesForRepos: [\"GET /orgs/{org}/properties/values\"],\n listFailedInvitations: [\"GET /orgs/{org}/failed_invitations\"],\n listForAuthenticatedUser: [\"GET /user/orgs\"],\n listForUser: [\"GET /users/{username}/orgs\"],\n listInvitationTeams: [\"GET /orgs/{org}/invitations/{invitation_id}/teams\"],\n listMembers: [\"GET /orgs/{org}/members\"],\n listMembershipsForAuthenticatedUser: [\"GET /user/memberships/orgs\"],\n listOrgRoleTeams: [\"GET /orgs/{org}/organization-roles/{role_id}/teams\"],\n listOrgRoleUsers: [\"GET /orgs/{org}/organization-roles/{role_id}/users\"],\n listOrgRoles: [\"GET /orgs/{org}/organization-roles\"],\n listOrganizationFineGrainedPermissions: [\n \"GET /orgs/{org}/organization-fine-grained-permissions\"\n ],\n listOutsideCollaborators: [\"GET /orgs/{org}/outside_collaborators\"],\n listPatGrantRepositories: [\n \"GET /orgs/{org}/personal-access-tokens/{pat_id}/repositories\"\n ],\n listPatGrantRequestRepositories: [\n \"GET /orgs/{org}/personal-access-token-requests/{pat_request_id}/repositories\"\n ],\n listPatGrantRequests: [\"GET /orgs/{org}/personal-access-token-requests\"],\n listPatGrants: [\"GET /orgs/{org}/personal-access-tokens\"],\n listPendingInvitations: [\"GET /orgs/{org}/invitations\"],\n listPublicMembers: [\"GET /orgs/{org}/public_members\"],\n listSecurityManagerTeams: [\"GET /orgs/{org}/security-managers\"],\n listWebhookDeliveries: [\"GET /orgs/{org}/hooks/{hook_id}/deliveries\"],\n listWebhooks: [\"GET /orgs/{org}/hooks\"],\n patchCustomOrganizationRole: [\n \"PATCH /orgs/{org}/organization-roles/{role_id}\"\n ],\n pingWebhook: [\"POST /orgs/{org}/hooks/{hook_id}/pings\"],\n redeliverWebhookDelivery: [\n \"POST /orgs/{org}/hooks/{hook_id}/deliveries/{delivery_id}/attempts\"\n ],\n removeCustomProperty: [\n \"DELETE /orgs/{org}/properties/schema/{custom_property_name}\"\n ],\n removeMember: [\"DELETE /orgs/{org}/members/{username}\"],\n removeMembershipForUser: [\"DELETE /orgs/{org}/memberships/{username}\"],\n removeOutsideCollaborator: [\n \"DELETE /orgs/{org}/outside_collaborators/{username}\"\n ],\n removePublicMembershipForAuthenticatedUser: [\n \"DELETE /orgs/{org}/public_members/{username}\"\n ],\n removeSecurityManagerTeam: [\n \"DELETE /orgs/{org}/security-managers/teams/{team_slug}\"\n ],\n reviewPatGrantRequest: [\n \"POST /orgs/{org}/personal-access-token-requests/{pat_request_id}\"\n ],\n reviewPatGrantRequestsInBulk: [\n \"POST /orgs/{org}/personal-access-token-requests\"\n ],\n revokeAllOrgRolesTeam: [\n \"DELETE /orgs/{org}/organization-roles/teams/{team_slug}\"\n ],\n revokeAllOrgRolesUser: [\n \"DELETE /orgs/{org}/organization-roles/users/{username}\"\n ],\n revokeOrgRoleTeam: [\n \"DELETE /orgs/{org}/organization-roles/teams/{team_slug}/{role_id}\"\n ],\n revokeOrgRoleUser: [\n \"DELETE /orgs/{org}/organization-roles/users/{username}/{role_id}\"\n ],\n setMembershipForUser: [\"PUT /orgs/{org}/memberships/{username}\"],\n setPublicMembershipForAuthenticatedUser: [\n \"PUT /orgs/{org}/public_members/{username}\"\n ],\n unblockUser: [\"DELETE /orgs/{org}/blocks/{username}\"],\n update: [\"PATCH /orgs/{org}\"],\n updateMembershipForAuthenticatedUser: [\n \"PATCH /user/memberships/orgs/{org}\"\n ],\n updatePatAccess: [\"POST /orgs/{org}/personal-access-tokens/{pat_id}\"],\n updatePatAccesses: [\"POST /orgs/{org}/personal-access-tokens\"],\n updateWebhook: [\"PATCH /orgs/{org}/hooks/{hook_id}\"],\n updateWebhookConfigForOrg: [\"PATCH /orgs/{org}/hooks/{hook_id}/config\"]\n },\n packages: {\n deletePackageForAuthenticatedUser: [\n \"DELETE /user/packages/{package_type}/{package_name}\"\n ],\n deletePackageForOrg: [\n \"DELETE /orgs/{org}/packages/{package_type}/{package_name}\"\n ],\n deletePackageForUser: [\n \"DELETE /users/{username}/packages/{package_type}/{package_name}\"\n ],\n deletePackageVersionForAuthenticatedUser: [\n \"DELETE /user/packages/{package_type}/{package_name}/versions/{package_version_id}\"\n ],\n deletePackageVersionForOrg: [\n \"DELETE /orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}\"\n ],\n deletePackageVersionForUser: [\n \"DELETE /users/{username}/packages/{package_type}/{package_name}/versions/{package_version_id}\"\n ],\n getAllPackageVersionsForAPackageOwnedByAnOrg: [\n \"GET /orgs/{org}/packages/{package_type}/{package_name}/versions\",\n {},\n { renamed: [\"packages\", \"getAllPackageVersionsForPackageOwnedByOrg\"] }\n ],\n getAllPackageVersionsForAPackageOwnedByTheAuthenticatedUser: [\n \"GET /user/packages/{package_type}/{package_name}/versions\",\n {},\n {\n renamed: [\n \"packages\",\n \"getAllPackageVersionsForPackageOwnedByAuthenticatedUser\"\n ]\n }\n ],\n getAllPackageVersionsForPackageOwnedByAuthenticatedUser: [\n \"GET /user/packages/{package_type}/{package_name}/versions\"\n ],\n getAllPackageVersionsForPackageOwnedByOrg: [\n \"GET /orgs/{org}/packages/{package_type}/{package_name}/versions\"\n ],\n getAllPackageVersionsForPackageOwnedByUser: [\n \"GET /users/{username}/packages/{package_type}/{package_name}/versions\"\n ],\n getPackageForAuthenticatedUser: [\n \"GET /user/packages/{package_type}/{package_name}\"\n ],\n getPackageForOrganization: [\n \"GET /orgs/{org}/packages/{package_type}/{package_name}\"\n ],\n getPackageForUser: [\n \"GET /users/{username}/packages/{package_type}/{package_name}\"\n ],\n getPackageVersionForAuthenticatedUser: [\n \"GET /user/packages/{package_type}/{package_name}/versions/{package_version_id}\"\n ],\n getPackageVersionForOrganization: [\n \"GET /orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}\"\n ],\n getPackageVersionForUser: [\n \"GET /users/{username}/packages/{package_type}/{package_name}/versions/{package_version_id}\"\n ],\n listDockerMigrationConflictingPackagesForAuthenticatedUser: [\n \"GET /user/docker/conflicts\"\n ],\n listDockerMigrationConflictingPackagesForOrganization: [\n \"GET /orgs/{org}/docker/conflicts\"\n ],\n listDockerMigrationConflictingPackagesForUser: [\n \"GET /users/{username}/docker/conflicts\"\n ],\n listPackagesForAuthenticatedUser: [\"GET /user/packages\"],\n listPackagesForOrganization: [\"GET /orgs/{org}/packages\"],\n listPackagesForUser: [\"GET /users/{username}/packages\"],\n restorePackageForAuthenticatedUser: [\n \"POST /user/packages/{package_type}/{package_name}/restore{?token}\"\n ],\n restorePackageForOrg: [\n \"POST /orgs/{org}/packages/{package_type}/{package_name}/restore{?token}\"\n ],\n restorePackageForUser: [\n \"POST /users/{username}/packages/{package_type}/{package_name}/restore{?token}\"\n ],\n restorePackageVersionForAuthenticatedUser: [\n \"POST /user/packages/{package_type}/{package_name}/versions/{package_version_id}/restore\"\n ],\n restorePackageVersionForOrg: [\n \"POST /orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}/restore\"\n ],\n restorePackageVersionForUser: [\n \"POST /users/{username}/packages/{package_type}/{package_name}/versions/{package_version_id}/restore\"\n ]\n },\n projects: {\n addCollaborator: [\"PUT /projects/{project_id}/collaborators/{username}\"],\n createCard: [\"POST /projects/columns/{column_id}/cards\"],\n createColumn: [\"POST /projects/{project_id}/columns\"],\n createForAuthenticatedUser: [\"POST /user/projects\"],\n createForOrg: [\"POST /orgs/{org}/projects\"],\n createForRepo: [\"POST /repos/{owner}/{repo}/projects\"],\n delete: [\"DELETE /projects/{project_id}\"],\n deleteCard: [\"DELETE /projects/columns/cards/{card_id}\"],\n deleteColumn: [\"DELETE /projects/columns/{column_id}\"],\n get: [\"GET /projects/{project_id}\"],\n getCard: [\"GET /projects/columns/cards/{card_id}\"],\n getColumn: [\"GET /projects/columns/{column_id}\"],\n getPermissionForUser: [\n \"GET /projects/{project_id}/collaborators/{username}/permission\"\n ],\n listCards: [\"GET /projects/columns/{column_id}/cards\"],\n listCollaborators: [\"GET /projects/{project_id}/collaborators\"],\n listColumns: [\"GET /projects/{project_id}/columns\"],\n listForOrg: [\"GET /orgs/{org}/projects\"],\n listForRepo: [\"GET /repos/{owner}/{repo}/projects\"],\n listForUser: [\"GET /users/{username}/projects\"],\n moveCard: [\"POST /projects/columns/cards/{card_id}/moves\"],\n moveColumn: [\"POST /projects/columns/{column_id}/moves\"],\n removeCollaborator: [\n \"DELETE /projects/{project_id}/collaborators/{username}\"\n ],\n update: [\"PATCH /projects/{project_id}\"],\n updateCard: [\"PATCH /projects/columns/cards/{card_id}\"],\n updateColumn: [\"PATCH /projects/columns/{column_id}\"]\n },\n pulls: {\n checkIfMerged: [\"GET /repos/{owner}/{repo}/pulls/{pull_number}/merge\"],\n create: [\"POST /repos/{owner}/{repo}/pulls\"],\n createReplyForReviewComment: [\n \"POST /repos/{owner}/{repo}/pulls/{pull_number}/comments/{comment_id}/replies\"\n ],\n createReview: [\"POST /repos/{owner}/{repo}/pulls/{pull_number}/reviews\"],\n createReviewComment: [\n \"POST /repos/{owner}/{repo}/pulls/{pull_number}/comments\"\n ],\n deletePendingReview: [\n \"DELETE /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}\"\n ],\n deleteReviewComment: [\n \"DELETE /repos/{owner}/{repo}/pulls/comments/{comment_id}\"\n ],\n dismissReview: [\n \"PUT /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/dismissals\"\n ],\n get: [\"GET /repos/{owner}/{repo}/pulls/{pull_number}\"],\n getReview: [\n \"GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}\"\n ],\n getReviewComment: [\"GET /repos/{owner}/{repo}/pulls/comments/{comment_id}\"],\n list: [\"GET /repos/{owner}/{repo}/pulls\"],\n listCommentsForReview: [\n \"GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/comments\"\n ],\n listCommits: [\"GET /repos/{owner}/{repo}/pulls/{pull_number}/commits\"],\n listFiles: [\"GET /repos/{owner}/{repo}/pulls/{pull_number}/files\"],\n listRequestedReviewers: [\n \"GET /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers\"\n ],\n listReviewComments: [\n \"GET /repos/{owner}/{repo}/pulls/{pull_number}/comments\"\n ],\n listReviewCommentsForRepo: [\"GET /repos/{owner}/{repo}/pulls/comments\"],\n listReviews: [\"GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews\"],\n merge: [\"PUT /repos/{owner}/{repo}/pulls/{pull_number}/merge\"],\n removeRequestedReviewers: [\n \"DELETE /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers\"\n ],\n requestReviewers: [\n \"POST /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers\"\n ],\n submitReview: [\n \"POST /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/events\"\n ],\n update: [\"PATCH /repos/{owner}/{repo}/pulls/{pull_number}\"],\n updateBranch: [\n \"PUT /repos/{owner}/{repo}/pulls/{pull_number}/update-branch\"\n ],\n updateReview: [\n \"PUT /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}\"\n ],\n updateReviewComment: [\n \"PATCH /repos/{owner}/{repo}/pulls/comments/{comment_id}\"\n ]\n },\n rateLimit: { get: [\"GET /rate_limit\"] },\n reactions: {\n createForCommitComment: [\n \"POST /repos/{owner}/{repo}/comments/{comment_id}/reactions\"\n ],\n createForIssue: [\n \"POST /repos/{owner}/{repo}/issues/{issue_number}/reactions\"\n ],\n createForIssueComment: [\n \"POST /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions\"\n ],\n createForPullRequestReviewComment: [\n \"POST /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions\"\n ],\n createForRelease: [\n \"POST /repos/{owner}/{repo}/releases/{release_id}/reactions\"\n ],\n createForTeamDiscussionCommentInOrg: [\n \"POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions\"\n ],\n createForTeamDiscussionInOrg: [\n \"POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions\"\n ],\n deleteForCommitComment: [\n \"DELETE /repos/{owner}/{repo}/comments/{comment_id}/reactions/{reaction_id}\"\n ],\n deleteForIssue: [\n \"DELETE /repos/{owner}/{repo}/issues/{issue_number}/reactions/{reaction_id}\"\n ],\n deleteForIssueComment: [\n \"DELETE /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions/{reaction_id}\"\n ],\n deleteForPullRequestComment: [\n \"DELETE /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions/{reaction_id}\"\n ],\n deleteForRelease: [\n \"DELETE /repos/{owner}/{repo}/releases/{release_id}/reactions/{reaction_id}\"\n ],\n deleteForTeamDiscussion: [\n \"DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions/{reaction_id}\"\n ],\n deleteForTeamDiscussionComment: [\n \"DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions/{reaction_id}\"\n ],\n listForCommitComment: [\n \"GET /repos/{owner}/{repo}/comments/{comment_id}/reactions\"\n ],\n listForIssue: [\"GET /repos/{owner}/{repo}/issues/{issue_number}/reactions\"],\n listForIssueComment: [\n \"GET /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions\"\n ],\n listForPullRequestReviewComment: [\n \"GET /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions\"\n ],\n listForRelease: [\n \"GET /repos/{owner}/{repo}/releases/{release_id}/reactions\"\n ],\n listForTeamDiscussionCommentInOrg: [\n \"GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions\"\n ],\n listForTeamDiscussionInOrg: [\n \"GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions\"\n ]\n },\n repos: {\n acceptInvitation: [\n \"PATCH /user/repository_invitations/{invitation_id}\",\n {},\n { renamed: [\"repos\", \"acceptInvitationForAuthenticatedUser\"] }\n ],\n acceptInvitationForAuthenticatedUser: [\n \"PATCH /user/repository_invitations/{invitation_id}\"\n ],\n addAppAccessRestrictions: [\n \"POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps\",\n {},\n { mapToData: \"apps\" }\n ],\n addCollaborator: [\"PUT /repos/{owner}/{repo}/collaborators/{username}\"],\n addStatusCheckContexts: [\n \"POST /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts\",\n {},\n { mapToData: \"contexts\" }\n ],\n addTeamAccessRestrictions: [\n \"POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams\",\n {},\n { mapToData: \"teams\" }\n ],\n addUserAccessRestrictions: [\n \"POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users\",\n {},\n { mapToData: \"users\" }\n ],\n cancelPagesDeployment: [\n \"POST /repos/{owner}/{repo}/pages/deployments/{pages_deployment_id}/cancel\"\n ],\n checkAutomatedSecurityFixes: [\n \"GET /repos/{owner}/{repo}/automated-security-fixes\"\n ],\n checkCollaborator: [\"GET /repos/{owner}/{repo}/collaborators/{username}\"],\n checkVulnerabilityAlerts: [\n \"GET /repos/{owner}/{repo}/vulnerability-alerts\"\n ],\n codeownersErrors: [\"GET /repos/{owner}/{repo}/codeowners/errors\"],\n compareCommits: [\"GET /repos/{owner}/{repo}/compare/{base}...{head}\"],\n compareCommitsWithBasehead: [\n \"GET /repos/{owner}/{repo}/compare/{basehead}\"\n ],\n createAutolink: [\"POST /repos/{owner}/{repo}/autolinks\"],\n createCommitComment: [\n \"POST /repos/{owner}/{repo}/commits/{commit_sha}/comments\"\n ],\n createCommitSignatureProtection: [\n \"POST /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures\"\n ],\n createCommitStatus: [\"POST /repos/{owner}/{repo}/statuses/{sha}\"],\n createDeployKey: [\"POST /repos/{owner}/{repo}/keys\"],\n createDeployment: [\"POST /repos/{owner}/{repo}/deployments\"],\n createDeploymentBranchPolicy: [\n \"POST /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies\"\n ],\n createDeploymentProtectionRule: [\n \"POST /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules\"\n ],\n createDeploymentStatus: [\n \"POST /repos/{owner}/{repo}/deployments/{deployment_id}/statuses\"\n ],\n createDispatchEvent: [\"POST /repos/{owner}/{repo}/dispatches\"],\n createForAuthenticatedUser: [\"POST /user/repos\"],\n createFork: [\"POST /repos/{owner}/{repo}/forks\"],\n createInOrg: [\"POST /orgs/{org}/repos\"],\n createOrUpdateCustomPropertiesValues: [\n \"PATCH /repos/{owner}/{repo}/properties/values\"\n ],\n createOrUpdateEnvironment: [\n \"PUT /repos/{owner}/{repo}/environments/{environment_name}\"\n ],\n createOrUpdateFileContents: [\"PUT /repos/{owner}/{repo}/contents/{path}\"],\n createOrgRuleset: [\"POST /orgs/{org}/rulesets\"],\n createPagesDeployment: [\"POST /repos/{owner}/{repo}/pages/deployments\"],\n createPagesSite: [\"POST /repos/{owner}/{repo}/pages\"],\n createRelease: [\"POST /repos/{owner}/{repo}/releases\"],\n createRepoRuleset: [\"POST /repos/{owner}/{repo}/rulesets\"],\n createTagProtection: [\"POST /repos/{owner}/{repo}/tags/protection\"],\n createUsingTemplate: [\n \"POST /repos/{template_owner}/{template_repo}/generate\"\n ],\n createWebhook: [\"POST /repos/{owner}/{repo}/hooks\"],\n declineInvitation: [\n \"DELETE /user/repository_invitations/{invitation_id}\",\n {},\n { renamed: [\"repos\", \"declineInvitationForAuthenticatedUser\"] }\n ],\n declineInvitationForAuthenticatedUser: [\n \"DELETE /user/repository_invitations/{invitation_id}\"\n ],\n delete: [\"DELETE /repos/{owner}/{repo}\"],\n deleteAccessRestrictions: [\n \"DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions\"\n ],\n deleteAdminBranchProtection: [\n \"DELETE /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins\"\n ],\n deleteAnEnvironment: [\n \"DELETE /repos/{owner}/{repo}/environments/{environment_name}\"\n ],\n deleteAutolink: [\"DELETE /repos/{owner}/{repo}/autolinks/{autolink_id}\"],\n deleteBranchProtection: [\n \"DELETE /repos/{owner}/{repo}/branches/{branch}/protection\"\n ],\n deleteCommitComment: [\"DELETE /repos/{owner}/{repo}/comments/{comment_id}\"],\n deleteCommitSignatureProtection: [\n \"DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures\"\n ],\n deleteDeployKey: [\"DELETE /repos/{owner}/{repo}/keys/{key_id}\"],\n deleteDeployment: [\n \"DELETE /repos/{owner}/{repo}/deployments/{deployment_id}\"\n ],\n deleteDeploymentBranchPolicy: [\n \"DELETE /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}\"\n ],\n deleteFile: [\"DELETE /repos/{owner}/{repo}/contents/{path}\"],\n deleteInvitation: [\n \"DELETE /repos/{owner}/{repo}/invitations/{invitation_id}\"\n ],\n deleteOrgRuleset: [\"DELETE /orgs/{org}/rulesets/{ruleset_id}\"],\n deletePagesSite: [\"DELETE /repos/{owner}/{repo}/pages\"],\n deletePullRequestReviewProtection: [\n \"DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews\"\n ],\n deleteRelease: [\"DELETE /repos/{owner}/{repo}/releases/{release_id}\"],\n deleteReleaseAsset: [\n \"DELETE /repos/{owner}/{repo}/releases/assets/{asset_id}\"\n ],\n deleteRepoRuleset: [\"DELETE /repos/{owner}/{repo}/rulesets/{ruleset_id}\"],\n deleteTagProtection: [\n \"DELETE /repos/{owner}/{repo}/tags/protection/{tag_protection_id}\"\n ],\n deleteWebhook: [\"DELETE /repos/{owner}/{repo}/hooks/{hook_id}\"],\n disableAutomatedSecurityFixes: [\n \"DELETE /repos/{owner}/{repo}/automated-security-fixes\"\n ],\n disableDeploymentProtectionRule: [\n \"DELETE /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/{protection_rule_id}\"\n ],\n disablePrivateVulnerabilityReporting: [\n \"DELETE /repos/{owner}/{repo}/private-vulnerability-reporting\"\n ],\n disableVulnerabilityAlerts: [\n \"DELETE /repos/{owner}/{repo}/vulnerability-alerts\"\n ],\n downloadArchive: [\n \"GET /repos/{owner}/{repo}/zipball/{ref}\",\n {},\n { renamed: [\"repos\", \"downloadZipballArchive\"] }\n ],\n downloadTarballArchive: [\"GET /repos/{owner}/{repo}/tarball/{ref}\"],\n downloadZipballArchive: [\"GET /repos/{owner}/{repo}/zipball/{ref}\"],\n enableAutomatedSecurityFixes: [\n \"PUT /repos/{owner}/{repo}/automated-security-fixes\"\n ],\n enablePrivateVulnerabilityReporting: [\n \"PUT /repos/{owner}/{repo}/private-vulnerability-reporting\"\n ],\n enableVulnerabilityAlerts: [\n \"PUT /repos/{owner}/{repo}/vulnerability-alerts\"\n ],\n generateReleaseNotes: [\n \"POST /repos/{owner}/{repo}/releases/generate-notes\"\n ],\n get: [\"GET /repos/{owner}/{repo}\"],\n getAccessRestrictions: [\n \"GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions\"\n ],\n getAdminBranchProtection: [\n \"GET /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins\"\n ],\n getAllDeploymentProtectionRules: [\n \"GET /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules\"\n ],\n getAllEnvironments: [\"GET /repos/{owner}/{repo}/environments\"],\n getAllStatusCheckContexts: [\n \"GET /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts\"\n ],\n getAllTopics: [\"GET /repos/{owner}/{repo}/topics\"],\n getAppsWithAccessToProtectedBranch: [\n \"GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps\"\n ],\n getAutolink: [\"GET /repos/{owner}/{repo}/autolinks/{autolink_id}\"],\n getBranch: [\"GET /repos/{owner}/{repo}/branches/{branch}\"],\n getBranchProtection: [\n \"GET /repos/{owner}/{repo}/branches/{branch}/protection\"\n ],\n getBranchRules: [\"GET /repos/{owner}/{repo}/rules/branches/{branch}\"],\n getClones: [\"GET /repos/{owner}/{repo}/traffic/clones\"],\n getCodeFrequencyStats: [\"GET /repos/{owner}/{repo}/stats/code_frequency\"],\n getCollaboratorPermissionLevel: [\n \"GET /repos/{owner}/{repo}/collaborators/{username}/permission\"\n ],\n getCombinedStatusForRef: [\"GET /repos/{owner}/{repo}/commits/{ref}/status\"],\n getCommit: [\"GET /repos/{owner}/{repo}/commits/{ref}\"],\n getCommitActivityStats: [\"GET /repos/{owner}/{repo}/stats/commit_activity\"],\n getCommitComment: [\"GET /repos/{owner}/{repo}/comments/{comment_id}\"],\n getCommitSignatureProtection: [\n \"GET /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures\"\n ],\n getCommunityProfileMetrics: [\"GET /repos/{owner}/{repo}/community/profile\"],\n getContent: [\"GET /repos/{owner}/{repo}/contents/{path}\"],\n getContributorsStats: [\"GET /repos/{owner}/{repo}/stats/contributors\"],\n getCustomDeploymentProtectionRule: [\n \"GET /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/{protection_rule_id}\"\n ],\n getCustomPropertiesValues: [\"GET /repos/{owner}/{repo}/properties/values\"],\n getDeployKey: [\"GET /repos/{owner}/{repo}/keys/{key_id}\"],\n getDeployment: [\"GET /repos/{owner}/{repo}/deployments/{deployment_id}\"],\n getDeploymentBranchPolicy: [\n \"GET /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}\"\n ],\n getDeploymentStatus: [\n \"GET /repos/{owner}/{repo}/deployments/{deployment_id}/statuses/{status_id}\"\n ],\n getEnvironment: [\n \"GET /repos/{owner}/{repo}/environments/{environment_name}\"\n ],\n getLatestPagesBuild: [\"GET /repos/{owner}/{repo}/pages/builds/latest\"],\n getLatestRelease: [\"GET /repos/{owner}/{repo}/releases/latest\"],\n getOrgRuleSuite: [\"GET /orgs/{org}/rulesets/rule-suites/{rule_suite_id}\"],\n getOrgRuleSuites: [\"GET /orgs/{org}/rulesets/rule-suites\"],\n getOrgRuleset: [\"GET /orgs/{org}/rulesets/{ruleset_id}\"],\n getOrgRulesets: [\"GET /orgs/{org}/rulesets\"],\n getPages: [\"GET /repos/{owner}/{repo}/pages\"],\n getPagesBuild: [\"GET /repos/{owner}/{repo}/pages/builds/{build_id}\"],\n getPagesDeployment: [\n \"GET /repos/{owner}/{repo}/pages/deployments/{pages_deployment_id}\"\n ],\n getPagesHealthCheck: [\"GET /repos/{owner}/{repo}/pages/health\"],\n getParticipationStats: [\"GET /repos/{owner}/{repo}/stats/participation\"],\n getPullRequestReviewProtection: [\n \"GET /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews\"\n ],\n getPunchCardStats: [\"GET /repos/{owner}/{repo}/stats/punch_card\"],\n getReadme: [\"GET /repos/{owner}/{repo}/readme\"],\n getReadmeInDirectory: [\"GET /repos/{owner}/{repo}/readme/{dir}\"],\n getRelease: [\"GET /repos/{owner}/{repo}/releases/{release_id}\"],\n getReleaseAsset: [\"GET /repos/{owner}/{repo}/releases/assets/{asset_id}\"],\n getReleaseByTag: [\"GET /repos/{owner}/{repo}/releases/tags/{tag}\"],\n getRepoRuleSuite: [\n \"GET /repos/{owner}/{repo}/rulesets/rule-suites/{rule_suite_id}\"\n ],\n getRepoRuleSuites: [\"GET /repos/{owner}/{repo}/rulesets/rule-suites\"],\n getRepoRuleset: [\"GET /repos/{owner}/{repo}/rulesets/{ruleset_id}\"],\n getRepoRulesets: [\"GET /repos/{owner}/{repo}/rulesets\"],\n getStatusChecksProtection: [\n \"GET /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks\"\n ],\n getTeamsWithAccessToProtectedBranch: [\n \"GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams\"\n ],\n getTopPaths: [\"GET /repos/{owner}/{repo}/traffic/popular/paths\"],\n getTopReferrers: [\"GET /repos/{owner}/{repo}/traffic/popular/referrers\"],\n getUsersWithAccessToProtectedBranch: [\n \"GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users\"\n ],\n getViews: [\"GET /repos/{owner}/{repo}/traffic/views\"],\n getWebhook: [\"GET /repos/{owner}/{repo}/hooks/{hook_id}\"],\n getWebhookConfigForRepo: [\n \"GET /repos/{owner}/{repo}/hooks/{hook_id}/config\"\n ],\n getWebhookDelivery: [\n \"GET /repos/{owner}/{repo}/hooks/{hook_id}/deliveries/{delivery_id}\"\n ],\n listActivities: [\"GET /repos/{owner}/{repo}/activity\"],\n listAutolinks: [\"GET /repos/{owner}/{repo}/autolinks\"],\n listBranches: [\"GET /repos/{owner}/{repo}/branches\"],\n listBranchesForHeadCommit: [\n \"GET /repos/{owner}/{repo}/commits/{commit_sha}/branches-where-head\"\n ],\n listCollaborators: [\"GET /repos/{owner}/{repo}/collaborators\"],\n listCommentsForCommit: [\n \"GET /repos/{owner}/{repo}/commits/{commit_sha}/comments\"\n ],\n listCommitCommentsForRepo: [\"GET /repos/{owner}/{repo}/comments\"],\n listCommitStatusesForRef: [\n \"GET /repos/{owner}/{repo}/commits/{ref}/statuses\"\n ],\n listCommits: [\"GET /repos/{owner}/{repo}/commits\"],\n listContributors: [\"GET /repos/{owner}/{repo}/contributors\"],\n listCustomDeploymentRuleIntegrations: [\n \"GET /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/apps\"\n ],\n listDeployKeys: [\"GET /repos/{owner}/{repo}/keys\"],\n listDeploymentBranchPolicies: [\n \"GET /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies\"\n ],\n listDeploymentStatuses: [\n \"GET /repos/{owner}/{repo}/deployments/{deployment_id}/statuses\"\n ],\n listDeployments: [\"GET /repos/{owner}/{repo}/deployments\"],\n listForAuthenticatedUser: [\"GET /user/repos\"],\n listForOrg: [\"GET /orgs/{org}/repos\"],\n listForUser: [\"GET /users/{username}/repos\"],\n listForks: [\"GET /repos/{owner}/{repo}/forks\"],\n listInvitations: [\"GET /repos/{owner}/{repo}/invitations\"],\n listInvitationsForAuthenticatedUser: [\"GET /user/repository_invitations\"],\n listLanguages: [\"GET /repos/{owner}/{repo}/languages\"],\n listPagesBuilds: [\"GET /repos/{owner}/{repo}/pages/builds\"],\n listPublic: [\"GET /repositories\"],\n listPullRequestsAssociatedWithCommit: [\n \"GET /repos/{owner}/{repo}/commits/{commit_sha}/pulls\"\n ],\n listReleaseAssets: [\n \"GET /repos/{owner}/{repo}/releases/{release_id}/assets\"\n ],\n listReleases: [\"GET /repos/{owner}/{repo}/releases\"],\n listTagProtection: [\"GET /repos/{owner}/{repo}/tags/protection\"],\n listTags: [\"GET /repos/{owner}/{repo}/tags\"],\n listTeams: [\"GET /repos/{owner}/{repo}/teams\"],\n listWebhookDeliveries: [\n \"GET /repos/{owner}/{repo}/hooks/{hook_id}/deliveries\"\n ],\n listWebhooks: [\"GET /repos/{owner}/{repo}/hooks\"],\n merge: [\"POST /repos/{owner}/{repo}/merges\"],\n mergeUpstream: [\"POST /repos/{owner}/{repo}/merge-upstream\"],\n pingWebhook: [\"POST /repos/{owner}/{repo}/hooks/{hook_id}/pings\"],\n redeliverWebhookDelivery: [\n \"POST /repos/{owner}/{repo}/hooks/{hook_id}/deliveries/{delivery_id}/attempts\"\n ],\n removeAppAccessRestrictions: [\n \"DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps\",\n {},\n { mapToData: \"apps\" }\n ],\n removeCollaborator: [\n \"DELETE /repos/{owner}/{repo}/collaborators/{username}\"\n ],\n removeStatusCheckContexts: [\n \"DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts\",\n {},\n { mapToData: \"contexts\" }\n ],\n removeStatusCheckProtection: [\n \"DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks\"\n ],\n removeTeamAccessRestrictions: [\n \"DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams\",\n {},\n { mapToData: \"teams\" }\n ],\n removeUserAccessRestrictions: [\n \"DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users\",\n {},\n { mapToData: \"users\" }\n ],\n renameBranch: [\"POST /repos/{owner}/{repo}/branches/{branch}/rename\"],\n replaceAllTopics: [\"PUT /repos/{owner}/{repo}/topics\"],\n requestPagesBuild: [\"POST /repos/{owner}/{repo}/pages/builds\"],\n setAdminBranchProtection: [\n \"POST /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins\"\n ],\n setAppAccessRestrictions: [\n \"PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps\",\n {},\n { mapToData: \"apps\" }\n ],\n setStatusCheckContexts: [\n \"PUT /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts\",\n {},\n { mapToData: \"contexts\" }\n ],\n setTeamAccessRestrictions: [\n \"PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams\",\n {},\n { mapToData: \"teams\" }\n ],\n setUserAccessRestrictions: [\n \"PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users\",\n {},\n { mapToData: \"users\" }\n ],\n testPushWebhook: [\"POST /repos/{owner}/{repo}/hooks/{hook_id}/tests\"],\n transfer: [\"POST /repos/{owner}/{repo}/transfer\"],\n update: [\"PATCH /repos/{owner}/{repo}\"],\n updateBranchProtection: [\n \"PUT /repos/{owner}/{repo}/branches/{branch}/protection\"\n ],\n updateCommitComment: [\"PATCH /repos/{owner}/{repo}/comments/{comment_id}\"],\n updateDeploymentBranchPolicy: [\n \"PUT /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}\"\n ],\n updateInformationAboutPagesSite: [\"PUT /repos/{owner}/{repo}/pages\"],\n updateInvitation: [\n \"PATCH /repos/{owner}/{repo}/invitations/{invitation_id}\"\n ],\n updateOrgRuleset: [\"PUT /orgs/{org}/rulesets/{ruleset_id}\"],\n updatePullRequestReviewProtection: [\n \"PATCH /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews\"\n ],\n updateRelease: [\"PATCH /repos/{owner}/{repo}/releases/{release_id}\"],\n updateReleaseAsset: [\n \"PATCH /repos/{owner}/{repo}/releases/assets/{asset_id}\"\n ],\n updateRepoRuleset: [\"PUT /repos/{owner}/{repo}/rulesets/{ruleset_id}\"],\n updateStatusCheckPotection: [\n \"PATCH /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks\",\n {},\n { renamed: [\"repos\", \"updateStatusCheckProtection\"] }\n ],\n updateStatusCheckProtection: [\n \"PATCH /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks\"\n ],\n updateWebhook: [\"PATCH /repos/{owner}/{repo}/hooks/{hook_id}\"],\n updateWebhookConfigForRepo: [\n \"PATCH /repos/{owner}/{repo}/hooks/{hook_id}/config\"\n ],\n uploadReleaseAsset: [\n \"POST /repos/{owner}/{repo}/releases/{release_id}/assets{?name,label}\",\n { baseUrl: \"https://uploads.github.com\" }\n ]\n },\n search: {\n code: [\"GET /search/code\"],\n commits: [\"GET /search/commits\"],\n issuesAndPullRequests: [\"GET /search/issues\"],\n labels: [\"GET /search/labels\"],\n repos: [\"GET /search/repositories\"],\n topics: [\"GET /search/topics\"],\n users: [\"GET /search/users\"]\n },\n secretScanning: {\n getAlert: [\n \"GET /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}\"\n ],\n listAlertsForEnterprise: [\n \"GET /enterprises/{enterprise}/secret-scanning/alerts\"\n ],\n listAlertsForOrg: [\"GET /orgs/{org}/secret-scanning/alerts\"],\n listAlertsForRepo: [\"GET /repos/{owner}/{repo}/secret-scanning/alerts\"],\n listLocationsForAlert: [\n \"GET /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}/locations\"\n ],\n updateAlert: [\n \"PATCH /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}\"\n ]\n },\n securityAdvisories: {\n createFork: [\n \"POST /repos/{owner}/{repo}/security-advisories/{ghsa_id}/forks\"\n ],\n createPrivateVulnerabilityReport: [\n \"POST /repos/{owner}/{repo}/security-advisories/reports\"\n ],\n createRepositoryAdvisory: [\n \"POST /repos/{owner}/{repo}/security-advisories\"\n ],\n createRepositoryAdvisoryCveRequest: [\n \"POST /repos/{owner}/{repo}/security-advisories/{ghsa_id}/cve\"\n ],\n getGlobalAdvisory: [\"GET /advisories/{ghsa_id}\"],\n getRepositoryAdvisory: [\n \"GET /repos/{owner}/{repo}/security-advisories/{ghsa_id}\"\n ],\n listGlobalAdvisories: [\"GET /advisories\"],\n listOrgRepositoryAdvisories: [\"GET /orgs/{org}/security-advisories\"],\n listRepositoryAdvisories: [\"GET /repos/{owner}/{repo}/security-advisories\"],\n updateRepositoryAdvisory: [\n \"PATCH /repos/{owner}/{repo}/security-advisories/{ghsa_id}\"\n ]\n },\n teams: {\n addOrUpdateMembershipForUserInOrg: [\n \"PUT /orgs/{org}/teams/{team_slug}/memberships/{username}\"\n ],\n addOrUpdateProjectPermissionsInOrg: [\n \"PUT /orgs/{org}/teams/{team_slug}/projects/{project_id}\"\n ],\n addOrUpdateRepoPermissionsInOrg: [\n \"PUT /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}\"\n ],\n checkPermissionsForProjectInOrg: [\n \"GET /orgs/{org}/teams/{team_slug}/projects/{project_id}\"\n ],\n checkPermissionsForRepoInOrg: [\n \"GET /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}\"\n ],\n create: [\"POST /orgs/{org}/teams\"],\n createDiscussionCommentInOrg: [\n \"POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments\"\n ],\n createDiscussionInOrg: [\"POST /orgs/{org}/teams/{team_slug}/discussions\"],\n deleteDiscussionCommentInOrg: [\n \"DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}\"\n ],\n deleteDiscussionInOrg: [\n \"DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}\"\n ],\n deleteInOrg: [\"DELETE /orgs/{org}/teams/{team_slug}\"],\n getByName: [\"GET /orgs/{org}/teams/{team_slug}\"],\n getDiscussionCommentInOrg: [\n \"GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}\"\n ],\n getDiscussionInOrg: [\n \"GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}\"\n ],\n getMembershipForUserInOrg: [\n \"GET /orgs/{org}/teams/{team_slug}/memberships/{username}\"\n ],\n list: [\"GET /orgs/{org}/teams\"],\n listChildInOrg: [\"GET /orgs/{org}/teams/{team_slug}/teams\"],\n listDiscussionCommentsInOrg: [\n \"GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments\"\n ],\n listDiscussionsInOrg: [\"GET /orgs/{org}/teams/{team_slug}/discussions\"],\n listForAuthenticatedUser: [\"GET /user/teams\"],\n listMembersInOrg: [\"GET /orgs/{org}/teams/{team_slug}/members\"],\n listPendingInvitationsInOrg: [\n \"GET /orgs/{org}/teams/{team_slug}/invitations\"\n ],\n listProjectsInOrg: [\"GET /orgs/{org}/teams/{team_slug}/projects\"],\n listReposInOrg: [\"GET /orgs/{org}/teams/{team_slug}/repos\"],\n removeMembershipForUserInOrg: [\n \"DELETE /orgs/{org}/teams/{team_slug}/memberships/{username}\"\n ],\n removeProjectInOrg: [\n \"DELETE /orgs/{org}/teams/{team_slug}/projects/{project_id}\"\n ],\n removeRepoInOrg: [\n \"DELETE /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}\"\n ],\n updateDiscussionCommentInOrg: [\n \"PATCH /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}\"\n ],\n updateDiscussionInOrg: [\n \"PATCH /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}\"\n ],\n updateInOrg: [\"PATCH /orgs/{org}/teams/{team_slug}\"]\n },\n users: {\n addEmailForAuthenticated: [\n \"POST /user/emails\",\n {},\n { renamed: [\"users\", \"addEmailForAuthenticatedUser\"] }\n ],\n addEmailForAuthenticatedUser: [\"POST /user/emails\"],\n addSocialAccountForAuthenticatedUser: [\"POST /user/social_accounts\"],\n block: [\"PUT /user/blocks/{username}\"],\n checkBlocked: [\"GET /user/blocks/{username}\"],\n checkFollowingForUser: [\"GET /users/{username}/following/{target_user}\"],\n checkPersonIsFollowedByAuthenticated: [\"GET /user/following/{username}\"],\n createGpgKeyForAuthenticated: [\n \"POST /user/gpg_keys\",\n {},\n { renamed: [\"users\", \"createGpgKeyForAuthenticatedUser\"] }\n ],\n createGpgKeyForAuthenticatedUser: [\"POST /user/gpg_keys\"],\n createPublicSshKeyForAuthenticated: [\n \"POST /user/keys\",\n {},\n { renamed: [\"users\", \"createPublicSshKeyForAuthenticatedUser\"] }\n ],\n createPublicSshKeyForAuthenticatedUser: [\"POST /user/keys\"],\n createSshSigningKeyForAuthenticatedUser: [\"POST /user/ssh_signing_keys\"],\n deleteEmailForAuthenticated: [\n \"DELETE /user/emails\",\n {},\n { renamed: [\"users\", \"deleteEmailForAuthenticatedUser\"] }\n ],\n deleteEmailForAuthenticatedUser: [\"DELETE /user/emails\"],\n deleteGpgKeyForAuthenticated: [\n \"DELETE /user/gpg_keys/{gpg_key_id}\",\n {},\n { renamed: [\"users\", \"deleteGpgKeyForAuthenticatedUser\"] }\n ],\n deleteGpgKeyForAuthenticatedUser: [\"DELETE /user/gpg_keys/{gpg_key_id}\"],\n deletePublicSshKeyForAuthenticated: [\n \"DELETE /user/keys/{key_id}\",\n {},\n { renamed: [\"users\", \"deletePublicSshKeyForAuthenticatedUser\"] }\n ],\n deletePublicSshKeyForAuthenticatedUser: [\"DELETE /user/keys/{key_id}\"],\n deleteSocialAccountForAuthenticatedUser: [\"DELETE /user/social_accounts\"],\n deleteSshSigningKeyForAuthenticatedUser: [\n \"DELETE /user/ssh_signing_keys/{ssh_signing_key_id}\"\n ],\n follow: [\"PUT /user/following/{username}\"],\n getAuthenticated: [\"GET /user\"],\n getByUsername: [\"GET /users/{username}\"],\n getContextForUser: [\"GET /users/{username}/hovercard\"],\n getGpgKeyForAuthenticated: [\n \"GET /user/gpg_keys/{gpg_key_id}\",\n {},\n { renamed: [\"users\", \"getGpgKeyForAuthenticatedUser\"] }\n ],\n getGpgKeyForAuthenticatedUser: [\"GET /user/gpg_keys/{gpg_key_id}\"],\n getPublicSshKeyForAuthenticated: [\n \"GET /user/keys/{key_id}\",\n {},\n { renamed: [\"users\", \"getPublicSshKeyForAuthenticatedUser\"] }\n ],\n getPublicSshKeyForAuthenticatedUser: [\"GET /user/keys/{key_id}\"],\n getSshSigningKeyForAuthenticatedUser: [\n \"GET /user/ssh_signing_keys/{ssh_signing_key_id}\"\n ],\n list: [\"GET /users\"],\n listBlockedByAuthenticated: [\n \"GET /user/blocks\",\n {},\n { renamed: [\"users\", \"listBlockedByAuthenticatedUser\"] }\n ],\n listBlockedByAuthenticatedUser: [\"GET /user/blocks\"],\n listEmailsForAuthenticated: [\n \"GET /user/emails\",\n {},\n { renamed: [\"users\", \"listEmailsForAuthenticatedUser\"] }\n ],\n listEmailsForAuthenticatedUser: [\"GET /user/emails\"],\n listFollowedByAuthenticated: [\n \"GET /user/following\",\n {},\n { renamed: [\"users\", \"listFollowedByAuthenticatedUser\"] }\n ],\n listFollowedByAuthenticatedUser: [\"GET /user/following\"],\n listFollowersForAuthenticatedUser: [\"GET /user/followers\"],\n listFollowersForUser: [\"GET /users/{username}/followers\"],\n listFollowingForUser: [\"GET /users/{username}/following\"],\n listGpgKeysForAuthenticated: [\n \"GET /user/gpg_keys\",\n {},\n { renamed: [\"users\", \"listGpgKeysForAuthenticatedUser\"] }\n ],\n listGpgKeysForAuthenticatedUser: [\"GET /user/gpg_keys\"],\n listGpgKeysForUser: [\"GET /users/{username}/gpg_keys\"],\n listPublicEmailsForAuthenticated: [\n \"GET /user/public_emails\",\n {},\n { renamed: [\"users\", \"listPublicEmailsForAuthenticatedUser\"] }\n ],\n listPublicEmailsForAuthenticatedUser: [\"GET /user/public_emails\"],\n listPublicKeysForUser: [\"GET /users/{username}/keys\"],\n listPublicSshKeysForAuthenticated: [\n \"GET /user/keys\",\n {},\n { renamed: [\"users\", \"listPublicSshKeysForAuthenticatedUser\"] }\n ],\n listPublicSshKeysForAuthenticatedUser: [\"GET /user/keys\"],\n listSocialAccountsForAuthenticatedUser: [\"GET /user/social_accounts\"],\n listSocialAccountsForUser: [\"GET /users/{username}/social_accounts\"],\n listSshSigningKeysForAuthenticatedUser: [\"GET /user/ssh_signing_keys\"],\n listSshSigningKeysForUser: [\"GET /users/{username}/ssh_signing_keys\"],\n setPrimaryEmailVisibilityForAuthenticated: [\n \"PATCH /user/email/visibility\",\n {},\n { renamed: [\"users\", \"setPrimaryEmailVisibilityForAuthenticatedUser\"] }\n ],\n setPrimaryEmailVisibilityForAuthenticatedUser: [\n \"PATCH /user/email/visibility\"\n ],\n unblock: [\"DELETE /user/blocks/{username}\"],\n unfollow: [\"DELETE /user/following/{username}\"],\n updateAuthenticated: [\"PATCH /user\"]\n }\n};\nvar endpoints_default = Endpoints;\n\n// pkg/dist-src/endpoints-to-methods.js\nvar endpointMethodsMap = /* @__PURE__ */ new Map();\nfor (const [scope, endpoints] of Object.entries(endpoints_default)) {\n for (const [methodName, endpoint] of Object.entries(endpoints)) {\n const [route, defaults, decorations] = endpoint;\n const [method, url] = route.split(/ /);\n const endpointDefaults = Object.assign(\n {\n method,\n url\n },\n defaults\n );\n if (!endpointMethodsMap.has(scope)) {\n endpointMethodsMap.set(scope, /* @__PURE__ */ new Map());\n }\n endpointMethodsMap.get(scope).set(methodName, {\n scope,\n methodName,\n endpointDefaults,\n decorations\n });\n }\n}\nvar handler = {\n has({ scope }, methodName) {\n return endpointMethodsMap.get(scope).has(methodName);\n },\n getOwnPropertyDescriptor(target, methodName) {\n return {\n value: this.get(target, methodName),\n // ensures method is in the cache\n configurable: true,\n writable: true,\n enumerable: true\n };\n },\n defineProperty(target, methodName, descriptor) {\n Object.defineProperty(target.cache, methodName, descriptor);\n return true;\n },\n deleteProperty(target, methodName) {\n delete target.cache[methodName];\n return true;\n },\n ownKeys({ scope }) {\n return [...endpointMethodsMap.get(scope).keys()];\n },\n set(target, methodName, value) {\n return target.cache[methodName] = value;\n },\n get({ octokit, scope, cache }, methodName) {\n if (cache[methodName]) {\n return cache[methodName];\n }\n const method = endpointMethodsMap.get(scope).get(methodName);\n if (!method) {\n return void 0;\n }\n const { endpointDefaults, decorations } = method;\n if (decorations) {\n cache[methodName] = decorate(\n octokit,\n scope,\n methodName,\n endpointDefaults,\n decorations\n );\n } else {\n cache[methodName] = octokit.request.defaults(endpointDefaults);\n }\n return cache[methodName];\n }\n};\nfunction endpointsToMethods(octokit) {\n const newMethods = {};\n for (const scope of endpointMethodsMap.keys()) {\n newMethods[scope] = new Proxy({ octokit, scope, cache: {} }, handler);\n }\n return newMethods;\n}\nfunction decorate(octokit, scope, methodName, defaults, decorations) {\n const requestWithDefaults = octokit.request.defaults(defaults);\n function withDecorations(...args) {\n let options = requestWithDefaults.endpoint.merge(...args);\n if (decorations.mapToData) {\n options = Object.assign({}, options, {\n data: options[decorations.mapToData],\n [decorations.mapToData]: void 0\n });\n return requestWithDefaults(options);\n }\n if (decorations.renamed) {\n const [newScope, newMethodName] = decorations.renamed;\n octokit.log.warn(\n `octokit.${scope}.${methodName}() has been renamed to octokit.${newScope}.${newMethodName}()`\n );\n }\n if (decorations.deprecated) {\n octokit.log.warn(decorations.deprecated);\n }\n if (decorations.renamedParameters) {\n const options2 = requestWithDefaults.endpoint.merge(...args);\n for (const [name, alias] of Object.entries(\n decorations.renamedParameters\n )) {\n if (name in options2) {\n octokit.log.warn(\n `\"${name}\" parameter is deprecated for \"octokit.${scope}.${methodName}()\". Use \"${alias}\" instead`\n );\n if (!(alias in options2)) {\n options2[alias] = options2[name];\n }\n delete options2[name];\n }\n }\n return requestWithDefaults(options2);\n }\n return requestWithDefaults(...args);\n }\n return Object.assign(withDecorations, requestWithDefaults);\n}\n\n// pkg/dist-src/index.js\nfunction restEndpointMethods(octokit) {\n const api = endpointsToMethods(octokit);\n return {\n rest: api\n };\n}\nrestEndpointMethods.VERSION = VERSION;\nfunction legacyRestEndpointMethods(octokit) {\n const api = endpointsToMethods(octokit);\n return {\n ...api,\n rest: api\n };\n}\nlegacyRestEndpointMethods.VERSION = VERSION;\n// Annotate the CommonJS export names for ESM import in node:\n0 && (module.exports = {\n legacyRestEndpointMethods,\n restEndpointMethods\n});\n","\"use strict\";\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n};\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\n\n// pkg/dist-src/index.js\nvar dist_src_exports = {};\n__export(dist_src_exports, {\n request: () => request\n});\nmodule.exports = __toCommonJS(dist_src_exports);\nvar import_endpoint = require(\"@octokit/endpoint\");\nvar import_universal_user_agent = require(\"universal-user-agent\");\n\n// pkg/dist-src/version.js\nvar VERSION = \"8.1.4\";\n\n// pkg/dist-src/fetch-wrapper.js\nvar import_is_plain_object = require(\"is-plain-object\");\nvar import_request_error = require(\"@octokit/request-error\");\n\n// pkg/dist-src/get-buffer-response.js\nfunction getBufferResponse(response) {\n return response.arrayBuffer();\n}\n\n// pkg/dist-src/fetch-wrapper.js\nfunction fetchWrapper(requestOptions) {\n var _a, _b, _c;\n const log = requestOptions.request && requestOptions.request.log ? requestOptions.request.log : console;\n const parseSuccessResponseBody = ((_a = requestOptions.request) == null ? void 0 : _a.parseSuccessResponseBody) !== false;\n if ((0, import_is_plain_object.isPlainObject)(requestOptions.body) || Array.isArray(requestOptions.body)) {\n requestOptions.body = JSON.stringify(requestOptions.body);\n }\n let headers = {};\n let status;\n let url;\n let { fetch } = globalThis;\n if ((_b = requestOptions.request) == null ? void 0 : _b.fetch) {\n fetch = requestOptions.request.fetch;\n }\n if (!fetch) {\n throw new Error(\n \"fetch is not set. Please pass a fetch implementation as new Octokit({ request: { fetch }}). Learn more at https://github.com/octokit/octokit.js/#fetch-missing\"\n );\n }\n return fetch(requestOptions.url, {\n method: requestOptions.method,\n body: requestOptions.body,\n headers: requestOptions.headers,\n signal: (_c = requestOptions.request) == null ? void 0 : _c.signal,\n // duplex must be set if request.body is ReadableStream or Async Iterables.\n // See https://fetch.spec.whatwg.org/#dom-requestinit-duplex.\n ...requestOptions.body && { duplex: \"half\" }\n }).then(async (response) => {\n url = response.url;\n status = response.status;\n for (const keyAndValue of response.headers) {\n headers[keyAndValue[0]] = keyAndValue[1];\n }\n if (\"deprecation\" in headers) {\n const matches = headers.link && headers.link.match(/<([^>]+)>; rel=\"deprecation\"/);\n const deprecationLink = matches && matches.pop();\n log.warn(\n `[@octokit/request] \"${requestOptions.method} ${requestOptions.url}\" is deprecated. It is scheduled to be removed on ${headers.sunset}${deprecationLink ? `. See ${deprecationLink}` : \"\"}`\n );\n }\n if (status === 204 || status === 205) {\n return;\n }\n if (requestOptions.method === \"HEAD\") {\n if (status < 400) {\n return;\n }\n throw new import_request_error.RequestError(response.statusText, status, {\n response: {\n url,\n status,\n headers,\n data: void 0\n },\n request: requestOptions\n });\n }\n if (status === 304) {\n throw new import_request_error.RequestError(\"Not modified\", status, {\n response: {\n url,\n status,\n headers,\n data: await getResponseData(response)\n },\n request: requestOptions\n });\n }\n if (status >= 400) {\n const data = await getResponseData(response);\n const error = new import_request_error.RequestError(toErrorMessage(data), status, {\n response: {\n url,\n status,\n headers,\n data\n },\n request: requestOptions\n });\n throw error;\n }\n return parseSuccessResponseBody ? await getResponseData(response) : response.body;\n }).then((data) => {\n return {\n status,\n url,\n headers,\n data\n };\n }).catch((error) => {\n if (error instanceof import_request_error.RequestError)\n throw error;\n else if (error.name === \"AbortError\")\n throw error;\n let message = error.message;\n if (error.name === \"TypeError\" && \"cause\" in error) {\n if (error.cause instanceof Error) {\n message = error.cause.message;\n } else if (typeof error.cause === \"string\") {\n message = error.cause;\n }\n }\n throw new import_request_error.RequestError(message, 500, {\n request: requestOptions\n });\n });\n}\nasync function getResponseData(response) {\n const contentType = response.headers.get(\"content-type\");\n if (/application\\/json/.test(contentType)) {\n return response.json();\n }\n if (!contentType || /^text\\/|charset=utf-8$/.test(contentType)) {\n return response.text();\n }\n return getBufferResponse(response);\n}\nfunction toErrorMessage(data) {\n if (typeof data === \"string\")\n return data;\n if (\"message\" in data) {\n if (Array.isArray(data.errors)) {\n return `${data.message}: ${data.errors.map(JSON.stringify).join(\", \")}`;\n }\n return data.message;\n }\n return `Unknown error: ${JSON.stringify(data)}`;\n}\n\n// pkg/dist-src/with-defaults.js\nfunction withDefaults(oldEndpoint, newDefaults) {\n const endpoint2 = oldEndpoint.defaults(newDefaults);\n const newApi = function(route, parameters) {\n const endpointOptions = endpoint2.merge(route, parameters);\n if (!endpointOptions.request || !endpointOptions.request.hook) {\n return fetchWrapper(endpoint2.parse(endpointOptions));\n }\n const request2 = (route2, parameters2) => {\n return fetchWrapper(\n endpoint2.parse(endpoint2.merge(route2, parameters2))\n );\n };\n Object.assign(request2, {\n endpoint: endpoint2,\n defaults: withDefaults.bind(null, endpoint2)\n });\n return endpointOptions.request.hook(request2, endpointOptions);\n };\n return Object.assign(newApi, {\n endpoint: endpoint2,\n defaults: withDefaults.bind(null, endpoint2)\n });\n}\n\n// pkg/dist-src/index.js\nvar request = withDefaults(import_endpoint.endpoint, {\n headers: {\n \"user-agent\": `octokit-request.js/${VERSION} ${(0, import_universal_user_agent.getUserAgent)()}`\n }\n});\n// Annotate the CommonJS export names for ESM import in node:\n0 && (module.exports = {\n request\n});\n","'use strict'\n\nconst WritableStream = require('node:stream').Writable\nconst inherits = require('node:util').inherits\n\nconst StreamSearch = require('../../streamsearch/sbmh')\n\nconst PartStream = require('./PartStream')\nconst HeaderParser = require('./HeaderParser')\n\nconst DASH = 45\nconst B_ONEDASH = Buffer.from('-')\nconst B_CRLF = Buffer.from('\\r\\n')\nconst EMPTY_FN = function () {}\n\nfunction Dicer (cfg) {\n if (!(this instanceof Dicer)) { return new Dicer(cfg) }\n WritableStream.call(this, cfg)\n\n if (!cfg || (!cfg.headerFirst && typeof cfg.boundary !== 'string')) { throw new TypeError('Boundary required') }\n\n if (typeof cfg.boundary === 'string') { this.setBoundary(cfg.boundary) } else { this._bparser = undefined }\n\n this._headerFirst = cfg.headerFirst\n\n this._dashes = 0\n this._parts = 0\n this._finished = false\n this._realFinish = false\n this._isPreamble = true\n this._justMatched = false\n this._firstWrite = true\n this._inHeader = true\n this._part = undefined\n this._cb = undefined\n this._ignoreData = false\n this._partOpts = { highWaterMark: cfg.partHwm }\n this._pause = false\n\n const self = this\n this._hparser = new HeaderParser(cfg)\n this._hparser.on('header', function (header) {\n self._inHeader = false\n self._part.emit('header', header)\n })\n}\ninherits(Dicer, WritableStream)\n\nDicer.prototype.emit = function (ev) {\n if (ev === 'finish' && !this._realFinish) {\n if (!this._finished) {\n const self = this\n process.nextTick(function () {\n self.emit('error', new Error('Unexpected end of multipart data'))\n if (self._part && !self._ignoreData) {\n const type = (self._isPreamble ? 'Preamble' : 'Part')\n self._part.emit('error', new Error(type + ' terminated early due to unexpected end of multipart data'))\n self._part.push(null)\n process.nextTick(function () {\n self._realFinish = true\n self.emit('finish')\n self._realFinish = false\n })\n return\n }\n self._realFinish = true\n self.emit('finish')\n self._realFinish = false\n })\n }\n } else { WritableStream.prototype.emit.apply(this, arguments) }\n}\n\nDicer.prototype._write = function (data, encoding, cb) {\n // ignore unexpected data (e.g. extra trailer data after finished)\n if (!this._hparser && !this._bparser) { return cb() }\n\n if (this._headerFirst && this._isPreamble) {\n if (!this._part) {\n this._part = new PartStream(this._partOpts)\n if (this._events.preamble) { this.emit('preamble', this._part) } else { this._ignore() }\n }\n const r = this._hparser.push(data)\n if (!this._inHeader && r !== undefined && r < data.length) { data = data.slice(r) } else { return cb() }\n }\n\n // allows for \"easier\" testing\n if (this._firstWrite) {\n this._bparser.push(B_CRLF)\n this._firstWrite = false\n }\n\n this._bparser.push(data)\n\n if (this._pause) { this._cb = cb } else { cb() }\n}\n\nDicer.prototype.reset = function () {\n this._part = undefined\n this._bparser = undefined\n this._hparser = undefined\n}\n\nDicer.prototype.setBoundary = function (boundary) {\n const self = this\n this._bparser = new StreamSearch('\\r\\n--' + boundary)\n this._bparser.on('info', function (isMatch, data, start, end) {\n self._oninfo(isMatch, data, start, end)\n })\n}\n\nDicer.prototype._ignore = function () {\n if (this._part && !this._ignoreData) {\n this._ignoreData = true\n this._part.on('error', EMPTY_FN)\n // we must perform some kind of read on the stream even though we are\n // ignoring the data, otherwise node's Readable stream will not emit 'end'\n // after pushing null to the stream\n this._part.resume()\n }\n}\n\nDicer.prototype._oninfo = function (isMatch, data, start, end) {\n let buf; const self = this; let i = 0; let r; let shouldWriteMore = true\n\n if (!this._part && this._justMatched && data) {\n while (this._dashes < 2 && (start + i) < end) {\n if (data[start + i] === DASH) {\n ++i\n ++this._dashes\n } else {\n if (this._dashes) { buf = B_ONEDASH }\n this._dashes = 0\n break\n }\n }\n if (this._dashes === 2) {\n if ((start + i) < end && this._events.trailer) { this.emit('trailer', data.slice(start + i, end)) }\n this.reset()\n this._finished = true\n // no more parts will be added\n if (self._parts === 0) {\n self._realFinish = true\n self.emit('finish')\n self._realFinish = false\n }\n }\n if (this._dashes) { return }\n }\n if (this._justMatched) { this._justMatched = false }\n if (!this._part) {\n this._part = new PartStream(this._partOpts)\n this._part._read = function (n) {\n self._unpause()\n }\n if (this._isPreamble && this._events.preamble) { this.emit('preamble', this._part) } else if (this._isPreamble !== true && this._events.part) { this.emit('part', this._part) } else { this._ignore() }\n if (!this._isPreamble) { this._inHeader = true }\n }\n if (data && start < end && !this._ignoreData) {\n if (this._isPreamble || !this._inHeader) {\n if (buf) { shouldWriteMore = this._part.push(buf) }\n shouldWriteMore = this._part.push(data.slice(start, end))\n if (!shouldWriteMore) { this._pause = true }\n } else if (!this._isPreamble && this._inHeader) {\n if (buf) { this._hparser.push(buf) }\n r = this._hparser.push(data.slice(start, end))\n if (!this._inHeader && r !== undefined && r < end) { this._oninfo(false, data, start + r, end) }\n }\n }\n if (isMatch) {\n this._hparser.reset()\n if (this._isPreamble) { this._isPreamble = false } else {\n if (start !== end) {\n ++this._parts\n this._part.on('end', function () {\n if (--self._parts === 0) {\n if (self._finished) {\n self._realFinish = true\n self.emit('finish')\n self._realFinish = false\n } else {\n self._unpause()\n }\n }\n })\n }\n }\n this._part.push(null)\n this._part = undefined\n this._ignoreData = false\n this._justMatched = true\n this._dashes = 0\n }\n}\n\nDicer.prototype._unpause = function () {\n if (!this._pause) { return }\n\n this._pause = false\n if (this._cb) {\n const cb = this._cb\n this._cb = undefined\n cb()\n }\n}\n\nmodule.exports = Dicer\n","'use strict'\n\nconst EventEmitter = require('node:events').EventEmitter\nconst inherits = require('node:util').inherits\nconst getLimit = require('../../../lib/utils/getLimit')\n\nconst StreamSearch = require('../../streamsearch/sbmh')\n\nconst B_DCRLF = Buffer.from('\\r\\n\\r\\n')\nconst RE_CRLF = /\\r\\n/g\nconst RE_HDR = /^([^:]+):[ \\t]?([\\x00-\\xFF]+)?$/ // eslint-disable-line no-control-regex\n\nfunction HeaderParser (cfg) {\n EventEmitter.call(this)\n\n cfg = cfg || {}\n const self = this\n this.nread = 0\n this.maxed = false\n this.npairs = 0\n this.maxHeaderPairs = getLimit(cfg, 'maxHeaderPairs', 2000)\n this.maxHeaderSize = getLimit(cfg, 'maxHeaderSize', 80 * 1024)\n this.buffer = ''\n this.header = {}\n this.finished = false\n this.ss = new StreamSearch(B_DCRLF)\n this.ss.on('info', function (isMatch, data, start, end) {\n if (data && !self.maxed) {\n if (self.nread + end - start >= self.maxHeaderSize) {\n end = self.maxHeaderSize - self.nread + start\n self.nread = self.maxHeaderSize\n self.maxed = true\n } else { self.nread += (end - start) }\n\n self.buffer += data.toString('binary', start, end)\n }\n if (isMatch) { self._finish() }\n })\n}\ninherits(HeaderParser, EventEmitter)\n\nHeaderParser.prototype.push = function (data) {\n const r = this.ss.push(data)\n if (this.finished) { return r }\n}\n\nHeaderParser.prototype.reset = function () {\n this.finished = false\n this.buffer = ''\n this.header = {}\n this.ss.reset()\n}\n\nHeaderParser.prototype._finish = function () {\n if (this.buffer) { this._parseHeader() }\n this.ss.matches = this.ss.maxMatches\n const header = this.header\n this.header = {}\n this.buffer = ''\n this.finished = true\n this.nread = this.npairs = 0\n this.maxed = false\n this.emit('header', header)\n}\n\nHeaderParser.prototype._parseHeader = function () {\n if (this.npairs === this.maxHeaderPairs) { return }\n\n const lines = this.buffer.split(RE_CRLF)\n const len = lines.length\n let m, h\n\n for (var i = 0; i < len; ++i) { // eslint-disable-line no-var\n if (lines[i].length === 0) { continue }\n if (lines[i][0] === '\\t' || lines[i][0] === ' ') {\n // folded header content\n // RFC2822 says to just remove the CRLF and not the whitespace following\n // it, so we follow the RFC and include the leading whitespace ...\n if (h) {\n this.header[h][this.header[h].length - 1] += lines[i]\n continue\n }\n }\n\n const posColon = lines[i].indexOf(':')\n if (\n posColon === -1 ||\n posColon === 0\n ) {\n return\n }\n m = RE_HDR.exec(lines[i])\n h = m[1].toLowerCase()\n this.header[h] = this.header[h] || []\n this.header[h].push((m[2] || ''))\n if (++this.npairs === this.maxHeaderPairs) { break }\n }\n}\n\nmodule.exports = HeaderParser\n","'use strict'\n\nconst inherits = require('node:util').inherits\nconst ReadableStream = require('node:stream').Readable\n\nfunction PartStream (opts) {\n ReadableStream.call(this, opts)\n}\ninherits(PartStream, ReadableStream)\n\nPartStream.prototype._read = function (n) {}\n\nmodule.exports = PartStream\n","'use strict'\n\n/**\n * Copyright Brian White. All rights reserved.\n *\n * @see https://github.com/mscdex/streamsearch\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n *\n * Based heavily on the Streaming Boyer-Moore-Horspool C++ implementation\n * by Hongli Lai at: https://github.com/FooBarWidget/boyer-moore-horspool\n */\nconst EventEmitter = require('node:events').EventEmitter\nconst inherits = require('node:util').inherits\n\nfunction SBMH (needle) {\n if (typeof needle === 'string') {\n needle = Buffer.from(needle)\n }\n\n if (!Buffer.isBuffer(needle)) {\n throw new TypeError('The needle has to be a String or a Buffer.')\n }\n\n const needleLength = needle.length\n\n if (needleLength === 0) {\n throw new Error('The needle cannot be an empty String/Buffer.')\n }\n\n if (needleLength > 256) {\n throw new Error('The needle cannot have a length bigger than 256.')\n }\n\n this.maxMatches = Infinity\n this.matches = 0\n\n this._occ = new Array(256)\n .fill(needleLength) // Initialize occurrence table.\n this._lookbehind_size = 0\n this._needle = needle\n this._bufpos = 0\n\n this._lookbehind = Buffer.alloc(needleLength)\n\n // Populate occurrence table with analysis of the needle,\n // ignoring last letter.\n for (var i = 0; i < needleLength - 1; ++i) { // eslint-disable-line no-var\n this._occ[needle[i]] = needleLength - 1 - i\n }\n}\ninherits(SBMH, EventEmitter)\n\nSBMH.prototype.reset = function () {\n this._lookbehind_size = 0\n this.matches = 0\n this._bufpos = 0\n}\n\nSBMH.prototype.push = function (chunk, pos) {\n if (!Buffer.isBuffer(chunk)) {\n chunk = Buffer.from(chunk, 'binary')\n }\n const chlen = chunk.length\n this._bufpos = pos || 0\n let r\n while (r !== chlen && this.matches < this.maxMatches) { r = this._sbmh_feed(chunk) }\n return r\n}\n\nSBMH.prototype._sbmh_feed = function (data) {\n const len = data.length\n const needle = this._needle\n const needleLength = needle.length\n const lastNeedleChar = needle[needleLength - 1]\n\n // Positive: points to a position in `data`\n // pos == 3 points to data[3]\n // Negative: points to a position in the lookbehind buffer\n // pos == -2 points to lookbehind[lookbehind_size - 2]\n let pos = -this._lookbehind_size\n let ch\n\n if (pos < 0) {\n // Lookbehind buffer is not empty. Perform Boyer-Moore-Horspool\n // search with character lookup code that considers both the\n // lookbehind buffer and the current round's haystack data.\n //\n // Loop until\n // there is a match.\n // or until\n // we've moved past the position that requires the\n // lookbehind buffer. In this case we switch to the\n // optimized loop.\n // or until\n // the character to look at lies outside the haystack.\n while (pos < 0 && pos <= len - needleLength) {\n ch = this._sbmh_lookup_char(data, pos + needleLength - 1)\n\n if (\n ch === lastNeedleChar &&\n this._sbmh_memcmp(data, pos, needleLength - 1)\n ) {\n this._lookbehind_size = 0\n ++this.matches\n this.emit('info', true)\n\n return (this._bufpos = pos + needleLength)\n }\n pos += this._occ[ch]\n }\n\n // No match.\n\n if (pos < 0) {\n // There's too few data for Boyer-Moore-Horspool to run,\n // so let's use a different algorithm to skip as much as\n // we can.\n // Forward pos until\n // the trailing part of lookbehind + data\n // looks like the beginning of the needle\n // or until\n // pos == 0\n while (pos < 0 && !this._sbmh_memcmp(data, pos, len - pos)) { ++pos }\n }\n\n if (pos >= 0) {\n // Discard lookbehind buffer.\n this.emit('info', false, this._lookbehind, 0, this._lookbehind_size)\n this._lookbehind_size = 0\n } else {\n // Cut off part of the lookbehind buffer that has\n // been processed and append the entire haystack\n // into it.\n const bytesToCutOff = this._lookbehind_size + pos\n if (bytesToCutOff > 0) {\n // The cut off data is guaranteed not to contain the needle.\n this.emit('info', false, this._lookbehind, 0, bytesToCutOff)\n }\n\n this._lookbehind.copy(this._lookbehind, 0, bytesToCutOff,\n this._lookbehind_size - bytesToCutOff)\n this._lookbehind_size -= bytesToCutOff\n\n data.copy(this._lookbehind, this._lookbehind_size)\n this._lookbehind_size += len\n\n this._bufpos = len\n return len\n }\n }\n\n pos += (pos >= 0) * this._bufpos\n\n // Lookbehind buffer is now empty. We only need to check if the\n // needle is in the haystack.\n if (data.indexOf(needle, pos) !== -1) {\n pos = data.indexOf(needle, pos)\n ++this.matches\n if (pos > 0) { this.emit('info', true, data, this._bufpos, pos) } else { this.emit('info', true) }\n\n return (this._bufpos = pos + needleLength)\n } else {\n pos = len - needleLength\n }\n\n // There was no match. If there's trailing haystack data that we cannot\n // match yet using the Boyer-Moore-Horspool algorithm (because the trailing\n // data is less than the needle size) then match using a modified\n // algorithm that starts matching from the beginning instead of the end.\n // Whatever trailing data is left after running this algorithm is added to\n // the lookbehind buffer.\n while (\n pos < len &&\n (\n data[pos] !== needle[0] ||\n (\n (Buffer.compare(\n data.subarray(pos, pos + len - pos),\n needle.subarray(0, len - pos)\n ) !== 0)\n )\n )\n ) {\n ++pos\n }\n if (pos < len) {\n data.copy(this._lookbehind, 0, pos, pos + (len - pos))\n this._lookbehind_size = len - pos\n }\n\n // Everything until pos is guaranteed not to contain needle data.\n if (pos > 0) { this.emit('info', false, data, this._bufpos, pos < len ? pos : len) }\n\n this._bufpos = len\n return len\n}\n\nSBMH.prototype._sbmh_lookup_char = function (data, pos) {\n return (pos < 0)\n ? this._lookbehind[this._lookbehind_size + pos]\n : data[pos]\n}\n\nSBMH.prototype._sbmh_memcmp = function (data, pos, len) {\n for (var i = 0; i < len; ++i) { // eslint-disable-line no-var\n if (this._sbmh_lookup_char(data, pos + i) !== this._needle[i]) { return false }\n }\n return true\n}\n\nmodule.exports = SBMH\n","'use strict'\n\nconst WritableStream = require('node:stream').Writable\nconst { inherits } = require('node:util')\nconst Dicer = require('../deps/dicer/lib/Dicer')\n\nconst MultipartParser = require('./types/multipart')\nconst UrlencodedParser = require('./types/urlencoded')\nconst parseParams = require('./utils/parseParams')\n\nfunction Busboy (opts) {\n if (!(this instanceof Busboy)) { return new Busboy(opts) }\n\n if (typeof opts !== 'object') {\n throw new TypeError('Busboy expected an options-Object.')\n }\n if (typeof opts.headers !== 'object') {\n throw new TypeError('Busboy expected an options-Object with headers-attribute.')\n }\n if (typeof opts.headers['content-type'] !== 'string') {\n throw new TypeError('Missing Content-Type-header.')\n }\n\n const {\n headers,\n ...streamOptions\n } = opts\n\n this.opts = {\n autoDestroy: false,\n ...streamOptions\n }\n WritableStream.call(this, this.opts)\n\n this._done = false\n this._parser = this.getParserByHeaders(headers)\n this._finished = false\n}\ninherits(Busboy, WritableStream)\n\nBusboy.prototype.emit = function (ev) {\n if (ev === 'finish') {\n if (!this._done) {\n this._parser?.end()\n return\n } else if (this._finished) {\n return\n }\n this._finished = true\n }\n WritableStream.prototype.emit.apply(this, arguments)\n}\n\nBusboy.prototype.getParserByHeaders = function (headers) {\n const parsed = parseParams(headers['content-type'])\n\n const cfg = {\n defCharset: this.opts.defCharset,\n fileHwm: this.opts.fileHwm,\n headers,\n highWaterMark: this.opts.highWaterMark,\n isPartAFile: this.opts.isPartAFile,\n limits: this.opts.limits,\n parsedConType: parsed,\n preservePath: this.opts.preservePath\n }\n\n if (MultipartParser.detect.test(parsed[0])) {\n return new MultipartParser(this, cfg)\n }\n if (UrlencodedParser.detect.test(parsed[0])) {\n return new UrlencodedParser(this, cfg)\n }\n throw new Error('Unsupported Content-Type.')\n}\n\nBusboy.prototype._write = function (chunk, encoding, cb) {\n this._parser.write(chunk, cb)\n}\n\nmodule.exports = Busboy\nmodule.exports.default = Busboy\nmodule.exports.Busboy = Busboy\n\nmodule.exports.Dicer = Dicer\n","'use strict'\n\n// TODO:\n// * support 1 nested multipart level\n// (see second multipart example here:\n// http://www.w3.org/TR/html401/interact/forms.html#didx-multipartform-data)\n// * support limits.fieldNameSize\n// -- this will require modifications to utils.parseParams\n\nconst { Readable } = require('node:stream')\nconst { inherits } = require('node:util')\n\nconst Dicer = require('../../deps/dicer/lib/Dicer')\n\nconst parseParams = require('../utils/parseParams')\nconst decodeText = require('../utils/decodeText')\nconst basename = require('../utils/basename')\nconst getLimit = require('../utils/getLimit')\n\nconst RE_BOUNDARY = /^boundary$/i\nconst RE_FIELD = /^form-data$/i\nconst RE_CHARSET = /^charset$/i\nconst RE_FILENAME = /^filename$/i\nconst RE_NAME = /^name$/i\n\nMultipart.detect = /^multipart\\/form-data/i\nfunction Multipart (boy, cfg) {\n let i\n let len\n const self = this\n let boundary\n const limits = cfg.limits\n const isPartAFile = cfg.isPartAFile || ((fieldName, contentType, fileName) => (contentType === 'application/octet-stream' || fileName !== undefined))\n const parsedConType = cfg.parsedConType || []\n const defCharset = cfg.defCharset || 'utf8'\n const preservePath = cfg.preservePath\n const fileOpts = { highWaterMark: cfg.fileHwm }\n\n for (i = 0, len = parsedConType.length; i < len; ++i) {\n if (Array.isArray(parsedConType[i]) &&\n RE_BOUNDARY.test(parsedConType[i][0])) {\n boundary = parsedConType[i][1]\n break\n }\n }\n\n function checkFinished () {\n if (nends === 0 && finished && !boy._done) {\n finished = false\n self.end()\n }\n }\n\n if (typeof boundary !== 'string') { throw new Error('Multipart: Boundary not found') }\n\n const fieldSizeLimit = getLimit(limits, 'fieldSize', 1 * 1024 * 1024)\n const fileSizeLimit = getLimit(limits, 'fileSize', Infinity)\n const filesLimit = getLimit(limits, 'files', Infinity)\n const fieldsLimit = getLimit(limits, 'fields', Infinity)\n const partsLimit = getLimit(limits, 'parts', Infinity)\n const headerPairsLimit = getLimit(limits, 'headerPairs', 2000)\n const headerSizeLimit = getLimit(limits, 'headerSize', 80 * 1024)\n\n let nfiles = 0\n let nfields = 0\n let nends = 0\n let curFile\n let curField\n let finished = false\n\n this._needDrain = false\n this._pause = false\n this._cb = undefined\n this._nparts = 0\n this._boy = boy\n\n const parserCfg = {\n boundary,\n maxHeaderPairs: headerPairsLimit,\n maxHeaderSize: headerSizeLimit,\n partHwm: fileOpts.highWaterMark,\n highWaterMark: cfg.highWaterMark\n }\n\n this.parser = new Dicer(parserCfg)\n this.parser.on('drain', function () {\n self._needDrain = false\n if (self._cb && !self._pause) {\n const cb = self._cb\n self._cb = undefined\n cb()\n }\n }).on('part', function onPart (part) {\n if (++self._nparts > partsLimit) {\n self.parser.removeListener('part', onPart)\n self.parser.on('part', skipPart)\n boy.hitPartsLimit = true\n boy.emit('partsLimit')\n return skipPart(part)\n }\n\n // hack because streams2 _always_ doesn't emit 'end' until nextTick, so let\n // us emit 'end' early since we know the part has ended if we are already\n // seeing the next part\n if (curField) {\n const field = curField\n field.emit('end')\n field.removeAllListeners('end')\n }\n\n part.on('header', function (header) {\n let contype\n let fieldname\n let parsed\n let charset\n let encoding\n let filename\n let nsize = 0\n\n if (header['content-type']) {\n parsed = parseParams(header['content-type'][0])\n if (parsed[0]) {\n contype = parsed[0].toLowerCase()\n for (i = 0, len = parsed.length; i < len; ++i) {\n if (RE_CHARSET.test(parsed[i][0])) {\n charset = parsed[i][1].toLowerCase()\n break\n }\n }\n }\n }\n\n if (contype === undefined) { contype = 'text/plain' }\n if (charset === undefined) { charset = defCharset }\n\n if (header['content-disposition']) {\n parsed = parseParams(header['content-disposition'][0])\n if (!RE_FIELD.test(parsed[0])) { return skipPart(part) }\n for (i = 0, len = parsed.length; i < len; ++i) {\n if (RE_NAME.test(parsed[i][0])) {\n fieldname = parsed[i][1]\n } else if (RE_FILENAME.test(parsed[i][0])) {\n filename = parsed[i][1]\n if (!preservePath) { filename = basename(filename) }\n }\n }\n } else { return skipPart(part) }\n\n if (header['content-transfer-encoding']) { encoding = header['content-transfer-encoding'][0].toLowerCase() } else { encoding = '7bit' }\n\n let onData,\n onEnd\n\n if (isPartAFile(fieldname, contype, filename)) {\n // file/binary field\n if (nfiles === filesLimit) {\n if (!boy.hitFilesLimit) {\n boy.hitFilesLimit = true\n boy.emit('filesLimit')\n }\n return skipPart(part)\n }\n\n ++nfiles\n\n if (!boy._events.file) {\n self.parser._ignore()\n return\n }\n\n ++nends\n const file = new FileStream(fileOpts)\n curFile = file\n file.on('end', function () {\n --nends\n self._pause = false\n checkFinished()\n if (self._cb && !self._needDrain) {\n const cb = self._cb\n self._cb = undefined\n cb()\n }\n })\n file._read = function (n) {\n if (!self._pause) { return }\n self._pause = false\n if (self._cb && !self._needDrain) {\n const cb = self._cb\n self._cb = undefined\n cb()\n }\n }\n boy.emit('file', fieldname, file, filename, encoding, contype)\n\n onData = function (data) {\n if ((nsize += data.length) > fileSizeLimit) {\n const extralen = fileSizeLimit - nsize + data.length\n if (extralen > 0) { file.push(data.slice(0, extralen)) }\n file.truncated = true\n file.bytesRead = fileSizeLimit\n part.removeAllListeners('data')\n file.emit('limit')\n return\n } else if (!file.push(data)) { self._pause = true }\n\n file.bytesRead = nsize\n }\n\n onEnd = function () {\n curFile = undefined\n file.push(null)\n }\n } else {\n // non-file field\n if (nfields === fieldsLimit) {\n if (!boy.hitFieldsLimit) {\n boy.hitFieldsLimit = true\n boy.emit('fieldsLimit')\n }\n return skipPart(part)\n }\n\n ++nfields\n ++nends\n let buffer = ''\n let truncated = false\n curField = part\n\n onData = function (data) {\n if ((nsize += data.length) > fieldSizeLimit) {\n const extralen = (fieldSizeLimit - (nsize - data.length))\n buffer += data.toString('binary', 0, extralen)\n truncated = true\n part.removeAllListeners('data')\n } else { buffer += data.toString('binary') }\n }\n\n onEnd = function () {\n curField = undefined\n if (buffer.length) { buffer = decodeText(buffer, 'binary', charset) }\n boy.emit('field', fieldname, buffer, false, truncated, encoding, contype)\n --nends\n checkFinished()\n }\n }\n\n /* As of node@2efe4ab761666 (v0.10.29+/v0.11.14+), busboy had become\n broken. Streams2/streams3 is a huge black box of confusion, but\n somehow overriding the sync state seems to fix things again (and still\n seems to work for previous node versions).\n */\n part._readableState.sync = false\n\n part.on('data', onData)\n part.on('end', onEnd)\n }).on('error', function (err) {\n if (curFile) { curFile.emit('error', err) }\n })\n }).on('error', function (err) {\n boy.emit('error', err)\n }).on('finish', function () {\n finished = true\n checkFinished()\n })\n}\n\nMultipart.prototype.write = function (chunk, cb) {\n const r = this.parser.write(chunk)\n if (r && !this._pause) {\n cb()\n } else {\n this._needDrain = !r\n this._cb = cb\n }\n}\n\nMultipart.prototype.end = function () {\n const self = this\n\n if (self.parser.writable) {\n self.parser.end()\n } else if (!self._boy._done) {\n process.nextTick(function () {\n self._boy._done = true\n self._boy.emit('finish')\n })\n }\n}\n\nfunction skipPart (part) {\n part.resume()\n}\n\nfunction FileStream (opts) {\n Readable.call(this, opts)\n\n this.bytesRead = 0\n\n this.truncated = false\n}\n\ninherits(FileStream, Readable)\n\nFileStream.prototype._read = function (n) {}\n\nmodule.exports = Multipart\n","'use strict'\n\nconst Decoder = require('../utils/Decoder')\nconst decodeText = require('../utils/decodeText')\nconst getLimit = require('../utils/getLimit')\n\nconst RE_CHARSET = /^charset$/i\n\nUrlEncoded.detect = /^application\\/x-www-form-urlencoded/i\nfunction UrlEncoded (boy, cfg) {\n const limits = cfg.limits\n const parsedConType = cfg.parsedConType\n this.boy = boy\n\n this.fieldSizeLimit = getLimit(limits, 'fieldSize', 1 * 1024 * 1024)\n this.fieldNameSizeLimit = getLimit(limits, 'fieldNameSize', 100)\n this.fieldsLimit = getLimit(limits, 'fields', Infinity)\n\n let charset\n for (var i = 0, len = parsedConType.length; i < len; ++i) { // eslint-disable-line no-var\n if (Array.isArray(parsedConType[i]) &&\n RE_CHARSET.test(parsedConType[i][0])) {\n charset = parsedConType[i][1].toLowerCase()\n break\n }\n }\n\n if (charset === undefined) { charset = cfg.defCharset || 'utf8' }\n\n this.decoder = new Decoder()\n this.charset = charset\n this._fields = 0\n this._state = 'key'\n this._checkingBytes = true\n this._bytesKey = 0\n this._bytesVal = 0\n this._key = ''\n this._val = ''\n this._keyTrunc = false\n this._valTrunc = false\n this._hitLimit = false\n}\n\nUrlEncoded.prototype.write = function (data, cb) {\n if (this._fields === this.fieldsLimit) {\n if (!this.boy.hitFieldsLimit) {\n this.boy.hitFieldsLimit = true\n this.boy.emit('fieldsLimit')\n }\n return cb()\n }\n\n let idxeq; let idxamp; let i; let p = 0; const len = data.length\n\n while (p < len) {\n if (this._state === 'key') {\n idxeq = idxamp = undefined\n for (i = p; i < len; ++i) {\n if (!this._checkingBytes) { ++p }\n if (data[i] === 0x3D/* = */) {\n idxeq = i\n break\n } else if (data[i] === 0x26/* & */) {\n idxamp = i\n break\n }\n if (this._checkingBytes && this._bytesKey === this.fieldNameSizeLimit) {\n this._hitLimit = true\n break\n } else if (this._checkingBytes) { ++this._bytesKey }\n }\n\n if (idxeq !== undefined) {\n // key with assignment\n if (idxeq > p) { this._key += this.decoder.write(data.toString('binary', p, idxeq)) }\n this._state = 'val'\n\n this._hitLimit = false\n this._checkingBytes = true\n this._val = ''\n this._bytesVal = 0\n this._valTrunc = false\n this.decoder.reset()\n\n p = idxeq + 1\n } else if (idxamp !== undefined) {\n // key with no assignment\n ++this._fields\n let key; const keyTrunc = this._keyTrunc\n if (idxamp > p) { key = (this._key += this.decoder.write(data.toString('binary', p, idxamp))) } else { key = this._key }\n\n this._hitLimit = false\n this._checkingBytes = true\n this._key = ''\n this._bytesKey = 0\n this._keyTrunc = false\n this.decoder.reset()\n\n if (key.length) {\n this.boy.emit('field', decodeText(key, 'binary', this.charset),\n '',\n keyTrunc,\n false)\n }\n\n p = idxamp + 1\n if (this._fields === this.fieldsLimit) { return cb() }\n } else if (this._hitLimit) {\n // we may not have hit the actual limit if there are encoded bytes...\n if (i > p) { this._key += this.decoder.write(data.toString('binary', p, i)) }\n p = i\n if ((this._bytesKey = this._key.length) === this.fieldNameSizeLimit) {\n // yep, we actually did hit the limit\n this._checkingBytes = false\n this._keyTrunc = true\n }\n } else {\n if (p < len) { this._key += this.decoder.write(data.toString('binary', p)) }\n p = len\n }\n } else {\n idxamp = undefined\n for (i = p; i < len; ++i) {\n if (!this._checkingBytes) { ++p }\n if (data[i] === 0x26/* & */) {\n idxamp = i\n break\n }\n if (this._checkingBytes && this._bytesVal === this.fieldSizeLimit) {\n this._hitLimit = true\n break\n } else if (this._checkingBytes) { ++this._bytesVal }\n }\n\n if (idxamp !== undefined) {\n ++this._fields\n if (idxamp > p) { this._val += this.decoder.write(data.toString('binary', p, idxamp)) }\n this.boy.emit('field', decodeText(this._key, 'binary', this.charset),\n decodeText(this._val, 'binary', this.charset),\n this._keyTrunc,\n this._valTrunc)\n this._state = 'key'\n\n this._hitLimit = false\n this._checkingBytes = true\n this._key = ''\n this._bytesKey = 0\n this._keyTrunc = false\n this.decoder.reset()\n\n p = idxamp + 1\n if (this._fields === this.fieldsLimit) { return cb() }\n } else if (this._hitLimit) {\n // we may not have hit the actual limit if there are encoded bytes...\n if (i > p) { this._val += this.decoder.write(data.toString('binary', p, i)) }\n p = i\n if ((this._val === '' && this.fieldSizeLimit === 0) ||\n (this._bytesVal = this._val.length) === this.fieldSizeLimit) {\n // yep, we actually did hit the limit\n this._checkingBytes = false\n this._valTrunc = true\n }\n } else {\n if (p < len) { this._val += this.decoder.write(data.toString('binary', p)) }\n p = len\n }\n }\n }\n cb()\n}\n\nUrlEncoded.prototype.end = function () {\n if (this.boy._done) { return }\n\n if (this._state === 'key' && this._key.length > 0) {\n this.boy.emit('field', decodeText(this._key, 'binary', this.charset),\n '',\n this._keyTrunc,\n false)\n } else if (this._state === 'val') {\n this.boy.emit('field', decodeText(this._key, 'binary', this.charset),\n decodeText(this._val, 'binary', this.charset),\n this._keyTrunc,\n this._valTrunc)\n }\n this.boy._done = true\n this.boy.emit('finish')\n}\n\nmodule.exports = UrlEncoded\n","'use strict'\n\nconst RE_PLUS = /\\+/g\n\nconst HEX = [\n 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,\n 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,\n 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,\n 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0,\n 0, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0,\n 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,\n 0, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0,\n 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0\n]\n\nfunction Decoder () {\n this.buffer = undefined\n}\nDecoder.prototype.write = function (str) {\n // Replace '+' with ' ' before decoding\n str = str.replace(RE_PLUS, ' ')\n let res = ''\n let i = 0; let p = 0; const len = str.length\n for (; i < len; ++i) {\n if (this.buffer !== undefined) {\n if (!HEX[str.charCodeAt(i)]) {\n res += '%' + this.buffer\n this.buffer = undefined\n --i // retry character\n } else {\n this.buffer += str[i]\n ++p\n if (this.buffer.length === 2) {\n res += String.fromCharCode(parseInt(this.buffer, 16))\n this.buffer = undefined\n }\n }\n } else if (str[i] === '%') {\n if (i > p) {\n res += str.substring(p, i)\n p = i\n }\n this.buffer = ''\n ++p\n }\n }\n if (p < len && this.buffer === undefined) { res += str.substring(p) }\n return res\n}\nDecoder.prototype.reset = function () {\n this.buffer = undefined\n}\n\nmodule.exports = Decoder\n","'use strict'\n\nmodule.exports = function basename (path) {\n if (typeof path !== 'string') { return '' }\n for (var i = path.length - 1; i >= 0; --i) { // eslint-disable-line no-var\n switch (path.charCodeAt(i)) {\n case 0x2F: // '/'\n case 0x5C: // '\\'\n path = path.slice(i + 1)\n return (path === '..' || path === '.' ? '' : path)\n }\n }\n return (path === '..' || path === '.' ? '' : path)\n}\n","'use strict'\n\n// Node has always utf-8\nconst utf8Decoder = new TextDecoder('utf-8')\nconst textDecoders = new Map([\n ['utf-8', utf8Decoder],\n ['utf8', utf8Decoder]\n])\n\nfunction decodeText (text, textEncoding, destEncoding) {\n if (text) {\n if (textDecoders.has(destEncoding)) {\n try {\n return textDecoders.get(destEncoding).decode(Buffer.from(text, textEncoding))\n } catch (e) { }\n } else {\n try {\n textDecoders.set(destEncoding, new TextDecoder(destEncoding))\n return textDecoders.get(destEncoding).decode(Buffer.from(text, textEncoding))\n } catch (e) { }\n }\n }\n return text\n}\n\nmodule.exports = decodeText\n","'use strict'\n\nmodule.exports = function getLimit (limits, name, defaultLimit) {\n if (\n !limits ||\n limits[name] === undefined ||\n limits[name] === null\n ) { return defaultLimit }\n\n if (\n typeof limits[name] !== 'number' ||\n isNaN(limits[name])\n ) { throw new TypeError('Limit ' + name + ' is not a valid number') }\n\n return limits[name]\n}\n","'use strict'\n\nconst decodeText = require('./decodeText')\n\nconst RE_ENCODED = /%([a-fA-F0-9]{2})/g\n\nfunction encodedReplacer (match, byte) {\n return String.fromCharCode(parseInt(byte, 16))\n}\n\nfunction parseParams (str) {\n const res = []\n let state = 'key'\n let charset = ''\n let inquote = false\n let escaping = false\n let p = 0\n let tmp = ''\n\n for (var i = 0, len = str.length; i < len; ++i) { // eslint-disable-line no-var\n const char = str[i]\n if (char === '\\\\' && inquote) {\n if (escaping) { escaping = false } else {\n escaping = true\n continue\n }\n } else if (char === '\"') {\n if (!escaping) {\n if (inquote) {\n inquote = false\n state = 'key'\n } else { inquote = true }\n continue\n } else { escaping = false }\n } else {\n if (escaping && inquote) { tmp += '\\\\' }\n escaping = false\n if ((state === 'charset' || state === 'lang') && char === \"'\") {\n if (state === 'charset') {\n state = 'lang'\n charset = tmp.substring(1)\n } else { state = 'value' }\n tmp = ''\n continue\n } else if (state === 'key' &&\n (char === '*' || char === '=') &&\n res.length) {\n if (char === '*') { state = 'charset' } else { state = 'value' }\n res[p] = [tmp, undefined]\n tmp = ''\n continue\n } else if (!inquote && char === ';') {\n state = 'key'\n if (charset) {\n if (tmp.length) {\n tmp = decodeText(tmp.replace(RE_ENCODED, encodedReplacer),\n 'binary',\n charset)\n }\n charset = ''\n } else if (tmp.length) {\n tmp = decodeText(tmp, 'binary', 'utf8')\n }\n if (res[p] === undefined) { res[p] = tmp } else { res[p][1] = tmp }\n tmp = ''\n ++p\n continue\n } else if (!inquote && (char === ' ' || char === '\\t')) { continue }\n }\n tmp += char\n }\n if (charset && tmp.length) {\n tmp = decodeText(tmp.replace(RE_ENCODED, encodedReplacer),\n 'binary',\n charset)\n } else if (tmp) {\n tmp = decodeText(tmp, 'binary', 'utf8')\n }\n\n if (res[p] === undefined) {\n if (tmp) { res[p] = tmp }\n } else { res[p][1] = tmp }\n\n return res\n}\n\nmodule.exports = parseParams\n","'use strict';\n\nObject.defineProperty(exports, '__esModule', { value: true });\n\nconst REGEX_IS_INSTALLATION_LEGACY = /^v1\\./;\nconst REGEX_IS_INSTALLATION = /^ghs_/;\nconst REGEX_IS_USER_TO_SERVER = /^ghu_/;\nasync function auth(token) {\n const isApp = token.split(/\\./).length === 3;\n const isInstallation = REGEX_IS_INSTALLATION_LEGACY.test(token) || REGEX_IS_INSTALLATION.test(token);\n const isUserToServer = REGEX_IS_USER_TO_SERVER.test(token);\n const tokenType = isApp ? \"app\" : isInstallation ? \"installation\" : isUserToServer ? \"user-to-server\" : \"oauth\";\n return {\n type: \"token\",\n token: token,\n tokenType\n };\n}\n\n/**\n * Prefix token for usage in the Authorization header\n *\n * @param token OAuth token or JSON Web Token\n */\nfunction withAuthorizationPrefix(token) {\n if (token.split(/\\./).length === 3) {\n return `bearer ${token}`;\n }\n\n return `token ${token}`;\n}\n\nasync function hook(token, request, route, parameters) {\n const endpoint = request.endpoint.merge(route, parameters);\n endpoint.headers.authorization = withAuthorizationPrefix(token);\n return request(endpoint);\n}\n\nconst createTokenAuth = function createTokenAuth(token) {\n if (!token) {\n throw new Error(\"[@octokit/auth-token] No token passed to createTokenAuth\");\n }\n\n if (typeof token !== \"string\") {\n throw new Error(\"[@octokit/auth-token] Token passed to createTokenAuth is not a string\");\n }\n\n token = token.replace(/^(token|bearer) +/i, \"\");\n return Object.assign(auth.bind(null, token), {\n hook: hook.bind(null, token)\n });\n};\n\nexports.createTokenAuth = createTokenAuth;\n//# sourceMappingURL=index.js.map\n","'use strict';\n\nObject.defineProperty(exports, '__esModule', { value: true });\n\nvar universalUserAgent = require('universal-user-agent');\nvar beforeAfterHook = require('before-after-hook');\nvar request = require('@octokit/request');\nvar graphql = require('@octokit/graphql');\nvar authToken = require('@octokit/auth-token');\n\nfunction _objectWithoutPropertiesLoose(source, excluded) {\n if (source == null) return {};\n var target = {};\n var sourceKeys = Object.keys(source);\n var key, i;\n\n for (i = 0; i < sourceKeys.length; i++) {\n key = sourceKeys[i];\n if (excluded.indexOf(key) >= 0) continue;\n target[key] = source[key];\n }\n\n return target;\n}\n\nfunction _objectWithoutProperties(source, excluded) {\n if (source == null) return {};\n\n var target = _objectWithoutPropertiesLoose(source, excluded);\n\n var key, i;\n\n if (Object.getOwnPropertySymbols) {\n var sourceSymbolKeys = Object.getOwnPropertySymbols(source);\n\n for (i = 0; i < sourceSymbolKeys.length; i++) {\n key = sourceSymbolKeys[i];\n if (excluded.indexOf(key) >= 0) continue;\n if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;\n target[key] = source[key];\n }\n }\n\n return target;\n}\n\nconst VERSION = \"3.6.0\";\n\nconst _excluded = [\"authStrategy\"];\nclass Octokit {\n constructor(options = {}) {\n const hook = new beforeAfterHook.Collection();\n const requestDefaults = {\n baseUrl: request.request.endpoint.DEFAULTS.baseUrl,\n headers: {},\n request: Object.assign({}, options.request, {\n // @ts-ignore internal usage only, no need to type\n hook: hook.bind(null, \"request\")\n }),\n mediaType: {\n previews: [],\n format: \"\"\n }\n }; // prepend default user agent with `options.userAgent` if set\n\n requestDefaults.headers[\"user-agent\"] = [options.userAgent, `octokit-core.js/${VERSION} ${universalUserAgent.getUserAgent()}`].filter(Boolean).join(\" \");\n\n if (options.baseUrl) {\n requestDefaults.baseUrl = options.baseUrl;\n }\n\n if (options.previews) {\n requestDefaults.mediaType.previews = options.previews;\n }\n\n if (options.timeZone) {\n requestDefaults.headers[\"time-zone\"] = options.timeZone;\n }\n\n this.request = request.request.defaults(requestDefaults);\n this.graphql = graphql.withCustomRequest(this.request).defaults(requestDefaults);\n this.log = Object.assign({\n debug: () => {},\n info: () => {},\n warn: console.warn.bind(console),\n error: console.error.bind(console)\n }, options.log);\n this.hook = hook; // (1) If neither `options.authStrategy` nor `options.auth` are set, the `octokit` instance\n // is unauthenticated. The `this.auth()` method is a no-op and no request hook is registered.\n // (2) If only `options.auth` is set, use the default token authentication strategy.\n // (3) If `options.authStrategy` is set then use it and pass in `options.auth`. Always pass own request as many strategies accept a custom request instance.\n // TODO: type `options.auth` based on `options.authStrategy`.\n\n if (!options.authStrategy) {\n if (!options.auth) {\n // (1)\n this.auth = async () => ({\n type: \"unauthenticated\"\n });\n } else {\n // (2)\n const auth = authToken.createTokenAuth(options.auth); // @ts-ignore ¯\\_(ツ)_/¯\n\n hook.wrap(\"request\", auth.hook);\n this.auth = auth;\n }\n } else {\n const {\n authStrategy\n } = options,\n otherOptions = _objectWithoutProperties(options, _excluded);\n\n const auth = authStrategy(Object.assign({\n request: this.request,\n log: this.log,\n // we pass the current octokit instance as well as its constructor options\n // to allow for authentication strategies that return a new octokit instance\n // that shares the same internal state as the current one. The original\n // requirement for this was the \"event-octokit\" authentication strategy\n // of https://github.com/probot/octokit-auth-probot.\n octokit: this,\n octokitOptions: otherOptions\n }, options.auth)); // @ts-ignore ¯\\_(ツ)_/¯\n\n hook.wrap(\"request\", auth.hook);\n this.auth = auth;\n } // apply plugins\n // https://stackoverflow.com/a/16345172\n\n\n const classConstructor = this.constructor;\n classConstructor.plugins.forEach(plugin => {\n Object.assign(this, plugin(this, options));\n });\n }\n\n static defaults(defaults) {\n const OctokitWithDefaults = class extends this {\n constructor(...args) {\n const options = args[0] || {};\n\n if (typeof defaults === \"function\") {\n super(defaults(options));\n return;\n }\n\n super(Object.assign({}, defaults, options, options.userAgent && defaults.userAgent ? {\n userAgent: `${options.userAgent} ${defaults.userAgent}`\n } : null));\n }\n\n };\n return OctokitWithDefaults;\n }\n /**\n * Attach a plugin (or many) to your Octokit instance.\n *\n * @example\n * const API = Octokit.plugin(plugin1, plugin2, plugin3, ...)\n */\n\n\n static plugin(...newPlugins) {\n var _a;\n\n const currentPlugins = this.plugins;\n const NewOctokit = (_a = class extends this {}, _a.plugins = currentPlugins.concat(newPlugins.filter(plugin => !currentPlugins.includes(plugin))), _a);\n return NewOctokit;\n }\n\n}\nOctokit.VERSION = VERSION;\nOctokit.plugins = [];\n\nexports.Octokit = Octokit;\n//# sourceMappingURL=index.js.map\n","'use strict';\n\nObject.defineProperty(exports, '__esModule', { value: true });\n\nvar isPlainObject = require('is-plain-object');\nvar universalUserAgent = require('universal-user-agent');\n\nfunction lowercaseKeys(object) {\n if (!object) {\n return {};\n }\n\n return Object.keys(object).reduce((newObj, key) => {\n newObj[key.toLowerCase()] = object[key];\n return newObj;\n }, {});\n}\n\nfunction mergeDeep(defaults, options) {\n const result = Object.assign({}, defaults);\n Object.keys(options).forEach(key => {\n if (isPlainObject.isPlainObject(options[key])) {\n if (!(key in defaults)) Object.assign(result, {\n [key]: options[key]\n });else result[key] = mergeDeep(defaults[key], options[key]);\n } else {\n Object.assign(result, {\n [key]: options[key]\n });\n }\n });\n return result;\n}\n\nfunction removeUndefinedProperties(obj) {\n for (const key in obj) {\n if (obj[key] === undefined) {\n delete obj[key];\n }\n }\n\n return obj;\n}\n\nfunction merge(defaults, route, options) {\n if (typeof route === \"string\") {\n let [method, url] = route.split(\" \");\n options = Object.assign(url ? {\n method,\n url\n } : {\n url: method\n }, options);\n } else {\n options = Object.assign({}, route);\n } // lowercase header names before merging with defaults to avoid duplicates\n\n\n options.headers = lowercaseKeys(options.headers); // remove properties with undefined values before merging\n\n removeUndefinedProperties(options);\n removeUndefinedProperties(options.headers);\n const mergedOptions = mergeDeep(defaults || {}, options); // mediaType.previews arrays are merged, instead of overwritten\n\n if (defaults && defaults.mediaType.previews.length) {\n mergedOptions.mediaType.previews = defaults.mediaType.previews.filter(preview => !mergedOptions.mediaType.previews.includes(preview)).concat(mergedOptions.mediaType.previews);\n }\n\n mergedOptions.mediaType.previews = mergedOptions.mediaType.previews.map(preview => preview.replace(/-preview/, \"\"));\n return mergedOptions;\n}\n\nfunction addQueryParameters(url, parameters) {\n const separator = /\\?/.test(url) ? \"&\" : \"?\";\n const names = Object.keys(parameters);\n\n if (names.length === 0) {\n return url;\n }\n\n return url + separator + names.map(name => {\n if (name === \"q\") {\n return \"q=\" + parameters.q.split(\"+\").map(encodeURIComponent).join(\"+\");\n }\n\n return `${name}=${encodeURIComponent(parameters[name])}`;\n }).join(\"&\");\n}\n\nconst urlVariableRegex = /\\{[^}]+\\}/g;\n\nfunction removeNonChars(variableName) {\n return variableName.replace(/^\\W+|\\W+$/g, \"\").split(/,/);\n}\n\nfunction extractUrlVariableNames(url) {\n const matches = url.match(urlVariableRegex);\n\n if (!matches) {\n return [];\n }\n\n return matches.map(removeNonChars).reduce((a, b) => a.concat(b), []);\n}\n\nfunction omit(object, keysToOmit) {\n return Object.keys(object).filter(option => !keysToOmit.includes(option)).reduce((obj, key) => {\n obj[key] = object[key];\n return obj;\n }, {});\n}\n\n// Based on https://github.com/bramstein/url-template, licensed under BSD\n// TODO: create separate package.\n//\n// Copyright (c) 2012-2014, Bram Stein\n// All rights reserved.\n// Redistribution and use in source and binary forms, with or without\n// modification, are permitted provided that the following conditions\n// are met:\n// 1. Redistributions of source code must retain the above copyright\n// notice, this list of conditions and the following disclaimer.\n// 2. Redistributions in binary form must reproduce the above copyright\n// notice, this list of conditions and the following disclaimer in the\n// documentation and/or other materials provided with the distribution.\n// 3. The name of the author may not be used to endorse or promote products\n// derived from this software without specific prior written permission.\n// THIS SOFTWARE IS PROVIDED BY THE AUTHOR \"AS IS\" AND ANY EXPRESS OR IMPLIED\n// WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF\n// MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO\n// EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,\n// INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,\n// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,\n// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY\n// OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING\n// NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,\n// EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n\n/* istanbul ignore file */\nfunction encodeReserved(str) {\n return str.split(/(%[0-9A-Fa-f]{2})/g).map(function (part) {\n if (!/%[0-9A-Fa-f]/.test(part)) {\n part = encodeURI(part).replace(/%5B/g, \"[\").replace(/%5D/g, \"]\");\n }\n\n return part;\n }).join(\"\");\n}\n\nfunction encodeUnreserved(str) {\n return encodeURIComponent(str).replace(/[!'()*]/g, function (c) {\n return \"%\" + c.charCodeAt(0).toString(16).toUpperCase();\n });\n}\n\nfunction encodeValue(operator, value, key) {\n value = operator === \"+\" || operator === \"#\" ? encodeReserved(value) : encodeUnreserved(value);\n\n if (key) {\n return encodeUnreserved(key) + \"=\" + value;\n } else {\n return value;\n }\n}\n\nfunction isDefined(value) {\n return value !== undefined && value !== null;\n}\n\nfunction isKeyOperator(operator) {\n return operator === \";\" || operator === \"&\" || operator === \"?\";\n}\n\nfunction getValues(context, operator, key, modifier) {\n var value = context[key],\n result = [];\n\n if (isDefined(value) && value !== \"\") {\n if (typeof value === \"string\" || typeof value === \"number\" || typeof value === \"boolean\") {\n value = value.toString();\n\n if (modifier && modifier !== \"*\") {\n value = value.substring(0, parseInt(modifier, 10));\n }\n\n result.push(encodeValue(operator, value, isKeyOperator(operator) ? key : \"\"));\n } else {\n if (modifier === \"*\") {\n if (Array.isArray(value)) {\n value.filter(isDefined).forEach(function (value) {\n result.push(encodeValue(operator, value, isKeyOperator(operator) ? key : \"\"));\n });\n } else {\n Object.keys(value).forEach(function (k) {\n if (isDefined(value[k])) {\n result.push(encodeValue(operator, value[k], k));\n }\n });\n }\n } else {\n const tmp = [];\n\n if (Array.isArray(value)) {\n value.filter(isDefined).forEach(function (value) {\n tmp.push(encodeValue(operator, value));\n });\n } else {\n Object.keys(value).forEach(function (k) {\n if (isDefined(value[k])) {\n tmp.push(encodeUnreserved(k));\n tmp.push(encodeValue(operator, value[k].toString()));\n }\n });\n }\n\n if (isKeyOperator(operator)) {\n result.push(encodeUnreserved(key) + \"=\" + tmp.join(\",\"));\n } else if (tmp.length !== 0) {\n result.push(tmp.join(\",\"));\n }\n }\n }\n } else {\n if (operator === \";\") {\n if (isDefined(value)) {\n result.push(encodeUnreserved(key));\n }\n } else if (value === \"\" && (operator === \"&\" || operator === \"?\")) {\n result.push(encodeUnreserved(key) + \"=\");\n } else if (value === \"\") {\n result.push(\"\");\n }\n }\n\n return result;\n}\n\nfunction parseUrl(template) {\n return {\n expand: expand.bind(null, template)\n };\n}\n\nfunction expand(template, context) {\n var operators = [\"+\", \"#\", \".\", \"/\", \";\", \"?\", \"&\"];\n return template.replace(/\\{([^\\{\\}]+)\\}|([^\\{\\}]+)/g, function (_, expression, literal) {\n if (expression) {\n let operator = \"\";\n const values = [];\n\n if (operators.indexOf(expression.charAt(0)) !== -1) {\n operator = expression.charAt(0);\n expression = expression.substr(1);\n }\n\n expression.split(/,/g).forEach(function (variable) {\n var tmp = /([^:\\*]*)(?::(\\d+)|(\\*))?/.exec(variable);\n values.push(getValues(context, operator, tmp[1], tmp[2] || tmp[3]));\n });\n\n if (operator && operator !== \"+\") {\n var separator = \",\";\n\n if (operator === \"?\") {\n separator = \"&\";\n } else if (operator !== \"#\") {\n separator = operator;\n }\n\n return (values.length !== 0 ? operator : \"\") + values.join(separator);\n } else {\n return values.join(\",\");\n }\n } else {\n return encodeReserved(literal);\n }\n });\n}\n\nfunction parse(options) {\n // https://fetch.spec.whatwg.org/#methods\n let method = options.method.toUpperCase(); // replace :varname with {varname} to make it RFC 6570 compatible\n\n let url = (options.url || \"/\").replace(/:([a-z]\\w+)/g, \"{$1}\");\n let headers = Object.assign({}, options.headers);\n let body;\n let parameters = omit(options, [\"method\", \"baseUrl\", \"url\", \"headers\", \"request\", \"mediaType\"]); // extract variable names from URL to calculate remaining variables later\n\n const urlVariableNames = extractUrlVariableNames(url);\n url = parseUrl(url).expand(parameters);\n\n if (!/^http/.test(url)) {\n url = options.baseUrl + url;\n }\n\n const omittedParameters = Object.keys(options).filter(option => urlVariableNames.includes(option)).concat(\"baseUrl\");\n const remainingParameters = omit(parameters, omittedParameters);\n const isBinaryRequest = /application\\/octet-stream/i.test(headers.accept);\n\n if (!isBinaryRequest) {\n if (options.mediaType.format) {\n // e.g. application/vnd.github.v3+json => application/vnd.github.v3.raw\n headers.accept = headers.accept.split(/,/).map(preview => preview.replace(/application\\/vnd(\\.\\w+)(\\.v3)?(\\.\\w+)?(\\+json)?$/, `application/vnd$1$2.${options.mediaType.format}`)).join(\",\");\n }\n\n if (options.mediaType.previews.length) {\n const previewsFromAcceptHeader = headers.accept.match(/[\\w-]+(?=-preview)/g) || [];\n headers.accept = previewsFromAcceptHeader.concat(options.mediaType.previews).map(preview => {\n const format = options.mediaType.format ? `.${options.mediaType.format}` : \"+json\";\n return `application/vnd.github.${preview}-preview${format}`;\n }).join(\",\");\n }\n } // for GET/HEAD requests, set URL query parameters from remaining parameters\n // for PATCH/POST/PUT/DELETE requests, set request body from remaining parameters\n\n\n if ([\"GET\", \"HEAD\"].includes(method)) {\n url = addQueryParameters(url, remainingParameters);\n } else {\n if (\"data\" in remainingParameters) {\n body = remainingParameters.data;\n } else {\n if (Object.keys(remainingParameters).length) {\n body = remainingParameters;\n } else {\n headers[\"content-length\"] = 0;\n }\n }\n } // default content-type for JSON if body is set\n\n\n if (!headers[\"content-type\"] && typeof body !== \"undefined\") {\n headers[\"content-type\"] = \"application/json; charset=utf-8\";\n } // GitHub expects 'content-length: 0' header for PUT/PATCH requests without body.\n // fetch does not allow to set `content-length` header, but we can set body to an empty string\n\n\n if ([\"PATCH\", \"PUT\"].includes(method) && typeof body === \"undefined\") {\n body = \"\";\n } // Only return body/request keys if present\n\n\n return Object.assign({\n method,\n url,\n headers\n }, typeof body !== \"undefined\" ? {\n body\n } : null, options.request ? {\n request: options.request\n } : null);\n}\n\nfunction endpointWithDefaults(defaults, route, options) {\n return parse(merge(defaults, route, options));\n}\n\nfunction withDefaults(oldDefaults, newDefaults) {\n const DEFAULTS = merge(oldDefaults, newDefaults);\n const endpoint = endpointWithDefaults.bind(null, DEFAULTS);\n return Object.assign(endpoint, {\n DEFAULTS,\n defaults: withDefaults.bind(null, DEFAULTS),\n merge: merge.bind(null, DEFAULTS),\n parse\n });\n}\n\nconst VERSION = \"6.0.12\";\n\nconst userAgent = `octokit-endpoint.js/${VERSION} ${universalUserAgent.getUserAgent()}`; // DEFAULTS has all properties set that EndpointOptions has, except url.\n// So we use RequestParameters and add method as additional required property.\n\nconst DEFAULTS = {\n method: \"GET\",\n baseUrl: \"https://api.github.com\",\n headers: {\n accept: \"application/vnd.github.v3+json\",\n \"user-agent\": userAgent\n },\n mediaType: {\n format: \"\",\n previews: []\n }\n};\n\nconst endpoint = withDefaults(null, DEFAULTS);\n\nexports.endpoint = endpoint;\n//# sourceMappingURL=index.js.map\n","'use strict';\n\nObject.defineProperty(exports, '__esModule', { value: true });\n\nvar request = require('@octokit/request');\nvar universalUserAgent = require('universal-user-agent');\n\nconst VERSION = \"4.8.0\";\n\nfunction _buildMessageForResponseErrors(data) {\n return `Request failed due to following response errors:\\n` + data.errors.map(e => ` - ${e.message}`).join(\"\\n\");\n}\n\nclass GraphqlResponseError extends Error {\n constructor(request, headers, response) {\n super(_buildMessageForResponseErrors(response));\n this.request = request;\n this.headers = headers;\n this.response = response;\n this.name = \"GraphqlResponseError\"; // Expose the errors and response data in their shorthand properties.\n\n this.errors = response.errors;\n this.data = response.data; // Maintains proper stack trace (only available on V8)\n\n /* istanbul ignore next */\n\n if (Error.captureStackTrace) {\n Error.captureStackTrace(this, this.constructor);\n }\n }\n\n}\n\nconst NON_VARIABLE_OPTIONS = [\"method\", \"baseUrl\", \"url\", \"headers\", \"request\", \"query\", \"mediaType\"];\nconst FORBIDDEN_VARIABLE_OPTIONS = [\"query\", \"method\", \"url\"];\nconst GHES_V3_SUFFIX_REGEX = /\\/api\\/v3\\/?$/;\nfunction graphql(request, query, options) {\n if (options) {\n if (typeof query === \"string\" && \"query\" in options) {\n return Promise.reject(new Error(`[@octokit/graphql] \"query\" cannot be used as variable name`));\n }\n\n for (const key in options) {\n if (!FORBIDDEN_VARIABLE_OPTIONS.includes(key)) continue;\n return Promise.reject(new Error(`[@octokit/graphql] \"${key}\" cannot be used as variable name`));\n }\n }\n\n const parsedOptions = typeof query === \"string\" ? Object.assign({\n query\n }, options) : query;\n const requestOptions = Object.keys(parsedOptions).reduce((result, key) => {\n if (NON_VARIABLE_OPTIONS.includes(key)) {\n result[key] = parsedOptions[key];\n return result;\n }\n\n if (!result.variables) {\n result.variables = {};\n }\n\n result.variables[key] = parsedOptions[key];\n return result;\n }, {}); // workaround for GitHub Enterprise baseUrl set with /api/v3 suffix\n // https://github.com/octokit/auth-app.js/issues/111#issuecomment-657610451\n\n const baseUrl = parsedOptions.baseUrl || request.endpoint.DEFAULTS.baseUrl;\n\n if (GHES_V3_SUFFIX_REGEX.test(baseUrl)) {\n requestOptions.url = baseUrl.replace(GHES_V3_SUFFIX_REGEX, \"/api/graphql\");\n }\n\n return request(requestOptions).then(response => {\n if (response.data.errors) {\n const headers = {};\n\n for (const key of Object.keys(response.headers)) {\n headers[key] = response.headers[key];\n }\n\n throw new GraphqlResponseError(requestOptions, headers, response.data);\n }\n\n return response.data.data;\n });\n}\n\nfunction withDefaults(request$1, newDefaults) {\n const newRequest = request$1.defaults(newDefaults);\n\n const newApi = (query, options) => {\n return graphql(newRequest, query, options);\n };\n\n return Object.assign(newApi, {\n defaults: withDefaults.bind(null, newRequest),\n endpoint: request.request.endpoint\n });\n}\n\nconst graphql$1 = withDefaults(request.request, {\n headers: {\n \"user-agent\": `octokit-graphql.js/${VERSION} ${universalUserAgent.getUserAgent()}`\n },\n method: \"POST\",\n url: \"/graphql\"\n});\nfunction withCustomRequest(customRequest) {\n return withDefaults(customRequest, {\n method: \"POST\",\n url: \"/graphql\"\n });\n}\n\nexports.GraphqlResponseError = GraphqlResponseError;\nexports.graphql = graphql$1;\nexports.withCustomRequest = withCustomRequest;\n//# sourceMappingURL=index.js.map\n","'use strict';\n\nObject.defineProperty(exports, '__esModule', { value: true });\n\nconst VERSION = \"2.21.3\";\n\nfunction ownKeys(object, enumerableOnly) {\n var keys = Object.keys(object);\n\n if (Object.getOwnPropertySymbols) {\n var symbols = Object.getOwnPropertySymbols(object);\n enumerableOnly && (symbols = symbols.filter(function (sym) {\n return Object.getOwnPropertyDescriptor(object, sym).enumerable;\n })), keys.push.apply(keys, symbols);\n }\n\n return keys;\n}\n\nfunction _objectSpread2(target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = null != arguments[i] ? arguments[i] : {};\n i % 2 ? ownKeys(Object(source), !0).forEach(function (key) {\n _defineProperty(target, key, source[key]);\n }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) {\n Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));\n });\n }\n\n return target;\n}\n\nfunction _defineProperty(obj, key, value) {\n if (key in obj) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n\n return obj;\n}\n\n/**\n * Some “list” response that can be paginated have a different response structure\n *\n * They have a `total_count` key in the response (search also has `incomplete_results`,\n * /installation/repositories also has `repository_selection`), as well as a key with\n * the list of the items which name varies from endpoint to endpoint.\n *\n * Octokit normalizes these responses so that paginated results are always returned following\n * the same structure. One challenge is that if the list response has only one page, no Link\n * header is provided, so this header alone is not sufficient to check wether a response is\n * paginated or not.\n *\n * We check if a \"total_count\" key is present in the response data, but also make sure that\n * a \"url\" property is not, as the \"Get the combined status for a specific ref\" endpoint would\n * otherwise match: https://developer.github.com/v3/repos/statuses/#get-the-combined-status-for-a-specific-ref\n */\nfunction normalizePaginatedListResponse(response) {\n // endpoints can respond with 204 if repository is empty\n if (!response.data) {\n return _objectSpread2(_objectSpread2({}, response), {}, {\n data: []\n });\n }\n\n const responseNeedsNormalization = \"total_count\" in response.data && !(\"url\" in response.data);\n if (!responseNeedsNormalization) return response; // keep the additional properties intact as there is currently no other way\n // to retrieve the same information.\n\n const incompleteResults = response.data.incomplete_results;\n const repositorySelection = response.data.repository_selection;\n const totalCount = response.data.total_count;\n delete response.data.incomplete_results;\n delete response.data.repository_selection;\n delete response.data.total_count;\n const namespaceKey = Object.keys(response.data)[0];\n const data = response.data[namespaceKey];\n response.data = data;\n\n if (typeof incompleteResults !== \"undefined\") {\n response.data.incomplete_results = incompleteResults;\n }\n\n if (typeof repositorySelection !== \"undefined\") {\n response.data.repository_selection = repositorySelection;\n }\n\n response.data.total_count = totalCount;\n return response;\n}\n\nfunction iterator(octokit, route, parameters) {\n const options = typeof route === \"function\" ? route.endpoint(parameters) : octokit.request.endpoint(route, parameters);\n const requestMethod = typeof route === \"function\" ? route : octokit.request;\n const method = options.method;\n const headers = options.headers;\n let url = options.url;\n return {\n [Symbol.asyncIterator]: () => ({\n async next() {\n if (!url) return {\n done: true\n };\n\n try {\n const response = await requestMethod({\n method,\n url,\n headers\n });\n const normalizedResponse = normalizePaginatedListResponse(response); // `response.headers.link` format:\n // '; rel=\"next\", ; rel=\"last\"'\n // sets `url` to undefined if \"next\" URL is not present or `link` header is not set\n\n url = ((normalizedResponse.headers.link || \"\").match(/<([^>]+)>;\\s*rel=\"next\"/) || [])[1];\n return {\n value: normalizedResponse\n };\n } catch (error) {\n if (error.status !== 409) throw error;\n url = \"\";\n return {\n value: {\n status: 200,\n headers: {},\n data: []\n }\n };\n }\n }\n\n })\n };\n}\n\nfunction paginate(octokit, route, parameters, mapFn) {\n if (typeof parameters === \"function\") {\n mapFn = parameters;\n parameters = undefined;\n }\n\n return gather(octokit, [], iterator(octokit, route, parameters)[Symbol.asyncIterator](), mapFn);\n}\n\nfunction gather(octokit, results, iterator, mapFn) {\n return iterator.next().then(result => {\n if (result.done) {\n return results;\n }\n\n let earlyExit = false;\n\n function done() {\n earlyExit = true;\n }\n\n results = results.concat(mapFn ? mapFn(result.value, done) : result.value.data);\n\n if (earlyExit) {\n return results;\n }\n\n return gather(octokit, results, iterator, mapFn);\n });\n}\n\nconst composePaginateRest = Object.assign(paginate, {\n iterator\n});\n\nconst paginatingEndpoints = [\"GET /app/hook/deliveries\", \"GET /app/installations\", \"GET /applications/grants\", \"GET /authorizations\", \"GET /enterprises/{enterprise}/actions/permissions/organizations\", \"GET /enterprises/{enterprise}/actions/runner-groups\", \"GET /enterprises/{enterprise}/actions/runner-groups/{runner_group_id}/organizations\", \"GET /enterprises/{enterprise}/actions/runner-groups/{runner_group_id}/runners\", \"GET /enterprises/{enterprise}/actions/runners\", \"GET /enterprises/{enterprise}/audit-log\", \"GET /enterprises/{enterprise}/secret-scanning/alerts\", \"GET /enterprises/{enterprise}/settings/billing/advanced-security\", \"GET /events\", \"GET /gists\", \"GET /gists/public\", \"GET /gists/starred\", \"GET /gists/{gist_id}/comments\", \"GET /gists/{gist_id}/commits\", \"GET /gists/{gist_id}/forks\", \"GET /installation/repositories\", \"GET /issues\", \"GET /licenses\", \"GET /marketplace_listing/plans\", \"GET /marketplace_listing/plans/{plan_id}/accounts\", \"GET /marketplace_listing/stubbed/plans\", \"GET /marketplace_listing/stubbed/plans/{plan_id}/accounts\", \"GET /networks/{owner}/{repo}/events\", \"GET /notifications\", \"GET /organizations\", \"GET /orgs/{org}/actions/cache/usage-by-repository\", \"GET /orgs/{org}/actions/permissions/repositories\", \"GET /orgs/{org}/actions/runner-groups\", \"GET /orgs/{org}/actions/runner-groups/{runner_group_id}/repositories\", \"GET /orgs/{org}/actions/runner-groups/{runner_group_id}/runners\", \"GET /orgs/{org}/actions/runners\", \"GET /orgs/{org}/actions/secrets\", \"GET /orgs/{org}/actions/secrets/{secret_name}/repositories\", \"GET /orgs/{org}/audit-log\", \"GET /orgs/{org}/blocks\", \"GET /orgs/{org}/code-scanning/alerts\", \"GET /orgs/{org}/codespaces\", \"GET /orgs/{org}/credential-authorizations\", \"GET /orgs/{org}/dependabot/secrets\", \"GET /orgs/{org}/dependabot/secrets/{secret_name}/repositories\", \"GET /orgs/{org}/events\", \"GET /orgs/{org}/external-groups\", \"GET /orgs/{org}/failed_invitations\", \"GET /orgs/{org}/hooks\", \"GET /orgs/{org}/hooks/{hook_id}/deliveries\", \"GET /orgs/{org}/installations\", \"GET /orgs/{org}/invitations\", \"GET /orgs/{org}/invitations/{invitation_id}/teams\", \"GET /orgs/{org}/issues\", \"GET /orgs/{org}/members\", \"GET /orgs/{org}/migrations\", \"GET /orgs/{org}/migrations/{migration_id}/repositories\", \"GET /orgs/{org}/outside_collaborators\", \"GET /orgs/{org}/packages\", \"GET /orgs/{org}/packages/{package_type}/{package_name}/versions\", \"GET /orgs/{org}/projects\", \"GET /orgs/{org}/public_members\", \"GET /orgs/{org}/repos\", \"GET /orgs/{org}/secret-scanning/alerts\", \"GET /orgs/{org}/settings/billing/advanced-security\", \"GET /orgs/{org}/team-sync/groups\", \"GET /orgs/{org}/teams\", \"GET /orgs/{org}/teams/{team_slug}/discussions\", \"GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments\", \"GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions\", \"GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions\", \"GET /orgs/{org}/teams/{team_slug}/invitations\", \"GET /orgs/{org}/teams/{team_slug}/members\", \"GET /orgs/{org}/teams/{team_slug}/projects\", \"GET /orgs/{org}/teams/{team_slug}/repos\", \"GET /orgs/{org}/teams/{team_slug}/teams\", \"GET /projects/columns/{column_id}/cards\", \"GET /projects/{project_id}/collaborators\", \"GET /projects/{project_id}/columns\", \"GET /repos/{owner}/{repo}/actions/artifacts\", \"GET /repos/{owner}/{repo}/actions/caches\", \"GET /repos/{owner}/{repo}/actions/runners\", \"GET /repos/{owner}/{repo}/actions/runs\", \"GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts\", \"GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}/jobs\", \"GET /repos/{owner}/{repo}/actions/runs/{run_id}/jobs\", \"GET /repos/{owner}/{repo}/actions/secrets\", \"GET /repos/{owner}/{repo}/actions/workflows\", \"GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/runs\", \"GET /repos/{owner}/{repo}/assignees\", \"GET /repos/{owner}/{repo}/branches\", \"GET /repos/{owner}/{repo}/check-runs/{check_run_id}/annotations\", \"GET /repos/{owner}/{repo}/check-suites/{check_suite_id}/check-runs\", \"GET /repos/{owner}/{repo}/code-scanning/alerts\", \"GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/instances\", \"GET /repos/{owner}/{repo}/code-scanning/analyses\", \"GET /repos/{owner}/{repo}/codespaces\", \"GET /repos/{owner}/{repo}/codespaces/devcontainers\", \"GET /repos/{owner}/{repo}/codespaces/secrets\", \"GET /repos/{owner}/{repo}/collaborators\", \"GET /repos/{owner}/{repo}/comments\", \"GET /repos/{owner}/{repo}/comments/{comment_id}/reactions\", \"GET /repos/{owner}/{repo}/commits\", \"GET /repos/{owner}/{repo}/commits/{commit_sha}/comments\", \"GET /repos/{owner}/{repo}/commits/{commit_sha}/pulls\", \"GET /repos/{owner}/{repo}/commits/{ref}/check-runs\", \"GET /repos/{owner}/{repo}/commits/{ref}/check-suites\", \"GET /repos/{owner}/{repo}/commits/{ref}/status\", \"GET /repos/{owner}/{repo}/commits/{ref}/statuses\", \"GET /repos/{owner}/{repo}/contributors\", \"GET /repos/{owner}/{repo}/dependabot/secrets\", \"GET /repos/{owner}/{repo}/deployments\", \"GET /repos/{owner}/{repo}/deployments/{deployment_id}/statuses\", \"GET /repos/{owner}/{repo}/environments\", \"GET /repos/{owner}/{repo}/events\", \"GET /repos/{owner}/{repo}/forks\", \"GET /repos/{owner}/{repo}/git/matching-refs/{ref}\", \"GET /repos/{owner}/{repo}/hooks\", \"GET /repos/{owner}/{repo}/hooks/{hook_id}/deliveries\", \"GET /repos/{owner}/{repo}/invitations\", \"GET /repos/{owner}/{repo}/issues\", \"GET /repos/{owner}/{repo}/issues/comments\", \"GET /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions\", \"GET /repos/{owner}/{repo}/issues/events\", \"GET /repos/{owner}/{repo}/issues/{issue_number}/comments\", \"GET /repos/{owner}/{repo}/issues/{issue_number}/events\", \"GET /repos/{owner}/{repo}/issues/{issue_number}/labels\", \"GET /repos/{owner}/{repo}/issues/{issue_number}/reactions\", \"GET /repos/{owner}/{repo}/issues/{issue_number}/timeline\", \"GET /repos/{owner}/{repo}/keys\", \"GET /repos/{owner}/{repo}/labels\", \"GET /repos/{owner}/{repo}/milestones\", \"GET /repos/{owner}/{repo}/milestones/{milestone_number}/labels\", \"GET /repos/{owner}/{repo}/notifications\", \"GET /repos/{owner}/{repo}/pages/builds\", \"GET /repos/{owner}/{repo}/projects\", \"GET /repos/{owner}/{repo}/pulls\", \"GET /repos/{owner}/{repo}/pulls/comments\", \"GET /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions\", \"GET /repos/{owner}/{repo}/pulls/{pull_number}/comments\", \"GET /repos/{owner}/{repo}/pulls/{pull_number}/commits\", \"GET /repos/{owner}/{repo}/pulls/{pull_number}/files\", \"GET /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers\", \"GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews\", \"GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/comments\", \"GET /repos/{owner}/{repo}/releases\", \"GET /repos/{owner}/{repo}/releases/{release_id}/assets\", \"GET /repos/{owner}/{repo}/releases/{release_id}/reactions\", \"GET /repos/{owner}/{repo}/secret-scanning/alerts\", \"GET /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}/locations\", \"GET /repos/{owner}/{repo}/stargazers\", \"GET /repos/{owner}/{repo}/subscribers\", \"GET /repos/{owner}/{repo}/tags\", \"GET /repos/{owner}/{repo}/teams\", \"GET /repos/{owner}/{repo}/topics\", \"GET /repositories\", \"GET /repositories/{repository_id}/environments/{environment_name}/secrets\", \"GET /search/code\", \"GET /search/commits\", \"GET /search/issues\", \"GET /search/labels\", \"GET /search/repositories\", \"GET /search/topics\", \"GET /search/users\", \"GET /teams/{team_id}/discussions\", \"GET /teams/{team_id}/discussions/{discussion_number}/comments\", \"GET /teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}/reactions\", \"GET /teams/{team_id}/discussions/{discussion_number}/reactions\", \"GET /teams/{team_id}/invitations\", \"GET /teams/{team_id}/members\", \"GET /teams/{team_id}/projects\", \"GET /teams/{team_id}/repos\", \"GET /teams/{team_id}/teams\", \"GET /user/blocks\", \"GET /user/codespaces\", \"GET /user/codespaces/secrets\", \"GET /user/emails\", \"GET /user/followers\", \"GET /user/following\", \"GET /user/gpg_keys\", \"GET /user/installations\", \"GET /user/installations/{installation_id}/repositories\", \"GET /user/issues\", \"GET /user/keys\", \"GET /user/marketplace_purchases\", \"GET /user/marketplace_purchases/stubbed\", \"GET /user/memberships/orgs\", \"GET /user/migrations\", \"GET /user/migrations/{migration_id}/repositories\", \"GET /user/orgs\", \"GET /user/packages\", \"GET /user/packages/{package_type}/{package_name}/versions\", \"GET /user/public_emails\", \"GET /user/repos\", \"GET /user/repository_invitations\", \"GET /user/starred\", \"GET /user/subscriptions\", \"GET /user/teams\", \"GET /users\", \"GET /users/{username}/events\", \"GET /users/{username}/events/orgs/{org}\", \"GET /users/{username}/events/public\", \"GET /users/{username}/followers\", \"GET /users/{username}/following\", \"GET /users/{username}/gists\", \"GET /users/{username}/gpg_keys\", \"GET /users/{username}/keys\", \"GET /users/{username}/orgs\", \"GET /users/{username}/packages\", \"GET /users/{username}/projects\", \"GET /users/{username}/received_events\", \"GET /users/{username}/received_events/public\", \"GET /users/{username}/repos\", \"GET /users/{username}/starred\", \"GET /users/{username}/subscriptions\"];\n\nfunction isPaginatingEndpoint(arg) {\n if (typeof arg === \"string\") {\n return paginatingEndpoints.includes(arg);\n } else {\n return false;\n }\n}\n\n/**\n * @param octokit Octokit instance\n * @param options Options passed to Octokit constructor\n */\n\nfunction paginateRest(octokit) {\n return {\n paginate: Object.assign(paginate.bind(null, octokit), {\n iterator: iterator.bind(null, octokit)\n })\n };\n}\npaginateRest.VERSION = VERSION;\n\nexports.composePaginateRest = composePaginateRest;\nexports.isPaginatingEndpoint = isPaginatingEndpoint;\nexports.paginateRest = paginateRest;\nexports.paginatingEndpoints = paginatingEndpoints;\n//# sourceMappingURL=index.js.map\n","'use strict';\n\nObject.defineProperty(exports, '__esModule', { value: true });\n\nconst VERSION = \"1.0.4\";\n\n/**\n * @param octokit Octokit instance\n * @param options Options passed to Octokit constructor\n */\n\nfunction requestLog(octokit) {\n octokit.hook.wrap(\"request\", (request, options) => {\n octokit.log.debug(\"request\", options);\n const start = Date.now();\n const requestOptions = octokit.request.endpoint.parse(options);\n const path = requestOptions.url.replace(options.baseUrl, \"\");\n return request(options).then(response => {\n octokit.log.info(`${requestOptions.method} ${path} - ${response.status} in ${Date.now() - start}ms`);\n return response;\n }).catch(error => {\n octokit.log.info(`${requestOptions.method} ${path} - ${error.status} in ${Date.now() - start}ms`);\n throw error;\n });\n });\n}\nrequestLog.VERSION = VERSION;\n\nexports.requestLog = requestLog;\n//# sourceMappingURL=index.js.map\n","'use strict';\n\nObject.defineProperty(exports, '__esModule', { value: true });\n\nfunction ownKeys(object, enumerableOnly) {\n var keys = Object.keys(object);\n\n if (Object.getOwnPropertySymbols) {\n var symbols = Object.getOwnPropertySymbols(object);\n\n if (enumerableOnly) {\n symbols = symbols.filter(function (sym) {\n return Object.getOwnPropertyDescriptor(object, sym).enumerable;\n });\n }\n\n keys.push.apply(keys, symbols);\n }\n\n return keys;\n}\n\nfunction _objectSpread2(target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i] != null ? arguments[i] : {};\n\n if (i % 2) {\n ownKeys(Object(source), true).forEach(function (key) {\n _defineProperty(target, key, source[key]);\n });\n } else if (Object.getOwnPropertyDescriptors) {\n Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));\n } else {\n ownKeys(Object(source)).forEach(function (key) {\n Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));\n });\n }\n }\n\n return target;\n}\n\nfunction _defineProperty(obj, key, value) {\n if (key in obj) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n\n return obj;\n}\n\nconst Endpoints = {\n actions: {\n addCustomLabelsToSelfHostedRunnerForOrg: [\"POST /orgs/{org}/actions/runners/{runner_id}/labels\"],\n addCustomLabelsToSelfHostedRunnerForRepo: [\"POST /repos/{owner}/{repo}/actions/runners/{runner_id}/labels\"],\n addSelectedRepoToOrgSecret: [\"PUT /orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}\"],\n approveWorkflowRun: [\"POST /repos/{owner}/{repo}/actions/runs/{run_id}/approve\"],\n cancelWorkflowRun: [\"POST /repos/{owner}/{repo}/actions/runs/{run_id}/cancel\"],\n createOrUpdateEnvironmentSecret: [\"PUT /repositories/{repository_id}/environments/{environment_name}/secrets/{secret_name}\"],\n createOrUpdateOrgSecret: [\"PUT /orgs/{org}/actions/secrets/{secret_name}\"],\n createOrUpdateRepoSecret: [\"PUT /repos/{owner}/{repo}/actions/secrets/{secret_name}\"],\n createRegistrationTokenForOrg: [\"POST /orgs/{org}/actions/runners/registration-token\"],\n createRegistrationTokenForRepo: [\"POST /repos/{owner}/{repo}/actions/runners/registration-token\"],\n createRemoveTokenForOrg: [\"POST /orgs/{org}/actions/runners/remove-token\"],\n createRemoveTokenForRepo: [\"POST /repos/{owner}/{repo}/actions/runners/remove-token\"],\n createWorkflowDispatch: [\"POST /repos/{owner}/{repo}/actions/workflows/{workflow_id}/dispatches\"],\n deleteActionsCacheById: [\"DELETE /repos/{owner}/{repo}/actions/caches/{cache_id}\"],\n deleteActionsCacheByKey: [\"DELETE /repos/{owner}/{repo}/actions/caches{?key,ref}\"],\n deleteArtifact: [\"DELETE /repos/{owner}/{repo}/actions/artifacts/{artifact_id}\"],\n deleteEnvironmentSecret: [\"DELETE /repositories/{repository_id}/environments/{environment_name}/secrets/{secret_name}\"],\n deleteOrgSecret: [\"DELETE /orgs/{org}/actions/secrets/{secret_name}\"],\n deleteRepoSecret: [\"DELETE /repos/{owner}/{repo}/actions/secrets/{secret_name}\"],\n deleteSelfHostedRunnerFromOrg: [\"DELETE /orgs/{org}/actions/runners/{runner_id}\"],\n deleteSelfHostedRunnerFromRepo: [\"DELETE /repos/{owner}/{repo}/actions/runners/{runner_id}\"],\n deleteWorkflowRun: [\"DELETE /repos/{owner}/{repo}/actions/runs/{run_id}\"],\n deleteWorkflowRunLogs: [\"DELETE /repos/{owner}/{repo}/actions/runs/{run_id}/logs\"],\n disableSelectedRepositoryGithubActionsOrganization: [\"DELETE /orgs/{org}/actions/permissions/repositories/{repository_id}\"],\n disableWorkflow: [\"PUT /repos/{owner}/{repo}/actions/workflows/{workflow_id}/disable\"],\n downloadArtifact: [\"GET /repos/{owner}/{repo}/actions/artifacts/{artifact_id}/{archive_format}\"],\n downloadJobLogsForWorkflowRun: [\"GET /repos/{owner}/{repo}/actions/jobs/{job_id}/logs\"],\n downloadWorkflowRunAttemptLogs: [\"GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}/logs\"],\n downloadWorkflowRunLogs: [\"GET /repos/{owner}/{repo}/actions/runs/{run_id}/logs\"],\n enableSelectedRepositoryGithubActionsOrganization: [\"PUT /orgs/{org}/actions/permissions/repositories/{repository_id}\"],\n enableWorkflow: [\"PUT /repos/{owner}/{repo}/actions/workflows/{workflow_id}/enable\"],\n getActionsCacheList: [\"GET /repos/{owner}/{repo}/actions/caches\"],\n getActionsCacheUsage: [\"GET /repos/{owner}/{repo}/actions/cache/usage\"],\n getActionsCacheUsageByRepoForOrg: [\"GET /orgs/{org}/actions/cache/usage-by-repository\"],\n getActionsCacheUsageForEnterprise: [\"GET /enterprises/{enterprise}/actions/cache/usage\"],\n getActionsCacheUsageForOrg: [\"GET /orgs/{org}/actions/cache/usage\"],\n getAllowedActionsOrganization: [\"GET /orgs/{org}/actions/permissions/selected-actions\"],\n getAllowedActionsRepository: [\"GET /repos/{owner}/{repo}/actions/permissions/selected-actions\"],\n getArtifact: [\"GET /repos/{owner}/{repo}/actions/artifacts/{artifact_id}\"],\n getEnvironmentPublicKey: [\"GET /repositories/{repository_id}/environments/{environment_name}/secrets/public-key\"],\n getEnvironmentSecret: [\"GET /repositories/{repository_id}/environments/{environment_name}/secrets/{secret_name}\"],\n getGithubActionsDefaultWorkflowPermissionsEnterprise: [\"GET /enterprises/{enterprise}/actions/permissions/workflow\"],\n getGithubActionsDefaultWorkflowPermissionsOrganization: [\"GET /orgs/{org}/actions/permissions/workflow\"],\n getGithubActionsDefaultWorkflowPermissionsRepository: [\"GET /repos/{owner}/{repo}/actions/permissions/workflow\"],\n getGithubActionsPermissionsOrganization: [\"GET /orgs/{org}/actions/permissions\"],\n getGithubActionsPermissionsRepository: [\"GET /repos/{owner}/{repo}/actions/permissions\"],\n getJobForWorkflowRun: [\"GET /repos/{owner}/{repo}/actions/jobs/{job_id}\"],\n getOrgPublicKey: [\"GET /orgs/{org}/actions/secrets/public-key\"],\n getOrgSecret: [\"GET /orgs/{org}/actions/secrets/{secret_name}\"],\n getPendingDeploymentsForRun: [\"GET /repos/{owner}/{repo}/actions/runs/{run_id}/pending_deployments\"],\n getRepoPermissions: [\"GET /repos/{owner}/{repo}/actions/permissions\", {}, {\n renamed: [\"actions\", \"getGithubActionsPermissionsRepository\"]\n }],\n getRepoPublicKey: [\"GET /repos/{owner}/{repo}/actions/secrets/public-key\"],\n getRepoSecret: [\"GET /repos/{owner}/{repo}/actions/secrets/{secret_name}\"],\n getReviewsForRun: [\"GET /repos/{owner}/{repo}/actions/runs/{run_id}/approvals\"],\n getSelfHostedRunnerForOrg: [\"GET /orgs/{org}/actions/runners/{runner_id}\"],\n getSelfHostedRunnerForRepo: [\"GET /repos/{owner}/{repo}/actions/runners/{runner_id}\"],\n getWorkflow: [\"GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}\"],\n getWorkflowAccessToRepository: [\"GET /repos/{owner}/{repo}/actions/permissions/access\"],\n getWorkflowRun: [\"GET /repos/{owner}/{repo}/actions/runs/{run_id}\"],\n getWorkflowRunAttempt: [\"GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}\"],\n getWorkflowRunUsage: [\"GET /repos/{owner}/{repo}/actions/runs/{run_id}/timing\"],\n getWorkflowUsage: [\"GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/timing\"],\n listArtifactsForRepo: [\"GET /repos/{owner}/{repo}/actions/artifacts\"],\n listEnvironmentSecrets: [\"GET /repositories/{repository_id}/environments/{environment_name}/secrets\"],\n listJobsForWorkflowRun: [\"GET /repos/{owner}/{repo}/actions/runs/{run_id}/jobs\"],\n listJobsForWorkflowRunAttempt: [\"GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}/jobs\"],\n listLabelsForSelfHostedRunnerForOrg: [\"GET /orgs/{org}/actions/runners/{runner_id}/labels\"],\n listLabelsForSelfHostedRunnerForRepo: [\"GET /repos/{owner}/{repo}/actions/runners/{runner_id}/labels\"],\n listOrgSecrets: [\"GET /orgs/{org}/actions/secrets\"],\n listRepoSecrets: [\"GET /repos/{owner}/{repo}/actions/secrets\"],\n listRepoWorkflows: [\"GET /repos/{owner}/{repo}/actions/workflows\"],\n listRunnerApplicationsForOrg: [\"GET /orgs/{org}/actions/runners/downloads\"],\n listRunnerApplicationsForRepo: [\"GET /repos/{owner}/{repo}/actions/runners/downloads\"],\n listSelectedReposForOrgSecret: [\"GET /orgs/{org}/actions/secrets/{secret_name}/repositories\"],\n listSelectedRepositoriesEnabledGithubActionsOrganization: [\"GET /orgs/{org}/actions/permissions/repositories\"],\n listSelfHostedRunnersForOrg: [\"GET /orgs/{org}/actions/runners\"],\n listSelfHostedRunnersForRepo: [\"GET /repos/{owner}/{repo}/actions/runners\"],\n listWorkflowRunArtifacts: [\"GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts\"],\n listWorkflowRuns: [\"GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/runs\"],\n listWorkflowRunsForRepo: [\"GET /repos/{owner}/{repo}/actions/runs\"],\n reRunJobForWorkflowRun: [\"POST /repos/{owner}/{repo}/actions/jobs/{job_id}/rerun\"],\n reRunWorkflow: [\"POST /repos/{owner}/{repo}/actions/runs/{run_id}/rerun\"],\n reRunWorkflowFailedJobs: [\"POST /repos/{owner}/{repo}/actions/runs/{run_id}/rerun-failed-jobs\"],\n removeAllCustomLabelsFromSelfHostedRunnerForOrg: [\"DELETE /orgs/{org}/actions/runners/{runner_id}/labels\"],\n removeAllCustomLabelsFromSelfHostedRunnerForRepo: [\"DELETE /repos/{owner}/{repo}/actions/runners/{runner_id}/labels\"],\n removeCustomLabelFromSelfHostedRunnerForOrg: [\"DELETE /orgs/{org}/actions/runners/{runner_id}/labels/{name}\"],\n removeCustomLabelFromSelfHostedRunnerForRepo: [\"DELETE /repos/{owner}/{repo}/actions/runners/{runner_id}/labels/{name}\"],\n removeSelectedRepoFromOrgSecret: [\"DELETE /orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}\"],\n reviewPendingDeploymentsForRun: [\"POST /repos/{owner}/{repo}/actions/runs/{run_id}/pending_deployments\"],\n setAllowedActionsOrganization: [\"PUT /orgs/{org}/actions/permissions/selected-actions\"],\n setAllowedActionsRepository: [\"PUT /repos/{owner}/{repo}/actions/permissions/selected-actions\"],\n setCustomLabelsForSelfHostedRunnerForOrg: [\"PUT /orgs/{org}/actions/runners/{runner_id}/labels\"],\n setCustomLabelsForSelfHostedRunnerForRepo: [\"PUT /repos/{owner}/{repo}/actions/runners/{runner_id}/labels\"],\n setGithubActionsDefaultWorkflowPermissionsEnterprise: [\"PUT /enterprises/{enterprise}/actions/permissions/workflow\"],\n setGithubActionsDefaultWorkflowPermissionsOrganization: [\"PUT /orgs/{org}/actions/permissions/workflow\"],\n setGithubActionsDefaultWorkflowPermissionsRepository: [\"PUT /repos/{owner}/{repo}/actions/permissions/workflow\"],\n setGithubActionsPermissionsOrganization: [\"PUT /orgs/{org}/actions/permissions\"],\n setGithubActionsPermissionsRepository: [\"PUT /repos/{owner}/{repo}/actions/permissions\"],\n setSelectedReposForOrgSecret: [\"PUT /orgs/{org}/actions/secrets/{secret_name}/repositories\"],\n setSelectedRepositoriesEnabledGithubActionsOrganization: [\"PUT /orgs/{org}/actions/permissions/repositories\"],\n setWorkflowAccessToRepository: [\"PUT /repos/{owner}/{repo}/actions/permissions/access\"]\n },\n activity: {\n checkRepoIsStarredByAuthenticatedUser: [\"GET /user/starred/{owner}/{repo}\"],\n deleteRepoSubscription: [\"DELETE /repos/{owner}/{repo}/subscription\"],\n deleteThreadSubscription: [\"DELETE /notifications/threads/{thread_id}/subscription\"],\n getFeeds: [\"GET /feeds\"],\n getRepoSubscription: [\"GET /repos/{owner}/{repo}/subscription\"],\n getThread: [\"GET /notifications/threads/{thread_id}\"],\n getThreadSubscriptionForAuthenticatedUser: [\"GET /notifications/threads/{thread_id}/subscription\"],\n listEventsForAuthenticatedUser: [\"GET /users/{username}/events\"],\n listNotificationsForAuthenticatedUser: [\"GET /notifications\"],\n listOrgEventsForAuthenticatedUser: [\"GET /users/{username}/events/orgs/{org}\"],\n listPublicEvents: [\"GET /events\"],\n listPublicEventsForRepoNetwork: [\"GET /networks/{owner}/{repo}/events\"],\n listPublicEventsForUser: [\"GET /users/{username}/events/public\"],\n listPublicOrgEvents: [\"GET /orgs/{org}/events\"],\n listReceivedEventsForUser: [\"GET /users/{username}/received_events\"],\n listReceivedPublicEventsForUser: [\"GET /users/{username}/received_events/public\"],\n listRepoEvents: [\"GET /repos/{owner}/{repo}/events\"],\n listRepoNotificationsForAuthenticatedUser: [\"GET /repos/{owner}/{repo}/notifications\"],\n listReposStarredByAuthenticatedUser: [\"GET /user/starred\"],\n listReposStarredByUser: [\"GET /users/{username}/starred\"],\n listReposWatchedByUser: [\"GET /users/{username}/subscriptions\"],\n listStargazersForRepo: [\"GET /repos/{owner}/{repo}/stargazers\"],\n listWatchedReposForAuthenticatedUser: [\"GET /user/subscriptions\"],\n listWatchersForRepo: [\"GET /repos/{owner}/{repo}/subscribers\"],\n markNotificationsAsRead: [\"PUT /notifications\"],\n markRepoNotificationsAsRead: [\"PUT /repos/{owner}/{repo}/notifications\"],\n markThreadAsRead: [\"PATCH /notifications/threads/{thread_id}\"],\n setRepoSubscription: [\"PUT /repos/{owner}/{repo}/subscription\"],\n setThreadSubscription: [\"PUT /notifications/threads/{thread_id}/subscription\"],\n starRepoForAuthenticatedUser: [\"PUT /user/starred/{owner}/{repo}\"],\n unstarRepoForAuthenticatedUser: [\"DELETE /user/starred/{owner}/{repo}\"]\n },\n apps: {\n addRepoToInstallation: [\"PUT /user/installations/{installation_id}/repositories/{repository_id}\", {}, {\n renamed: [\"apps\", \"addRepoToInstallationForAuthenticatedUser\"]\n }],\n addRepoToInstallationForAuthenticatedUser: [\"PUT /user/installations/{installation_id}/repositories/{repository_id}\"],\n checkToken: [\"POST /applications/{client_id}/token\"],\n createFromManifest: [\"POST /app-manifests/{code}/conversions\"],\n createInstallationAccessToken: [\"POST /app/installations/{installation_id}/access_tokens\"],\n deleteAuthorization: [\"DELETE /applications/{client_id}/grant\"],\n deleteInstallation: [\"DELETE /app/installations/{installation_id}\"],\n deleteToken: [\"DELETE /applications/{client_id}/token\"],\n getAuthenticated: [\"GET /app\"],\n getBySlug: [\"GET /apps/{app_slug}\"],\n getInstallation: [\"GET /app/installations/{installation_id}\"],\n getOrgInstallation: [\"GET /orgs/{org}/installation\"],\n getRepoInstallation: [\"GET /repos/{owner}/{repo}/installation\"],\n getSubscriptionPlanForAccount: [\"GET /marketplace_listing/accounts/{account_id}\"],\n getSubscriptionPlanForAccountStubbed: [\"GET /marketplace_listing/stubbed/accounts/{account_id}\"],\n getUserInstallation: [\"GET /users/{username}/installation\"],\n getWebhookConfigForApp: [\"GET /app/hook/config\"],\n getWebhookDelivery: [\"GET /app/hook/deliveries/{delivery_id}\"],\n listAccountsForPlan: [\"GET /marketplace_listing/plans/{plan_id}/accounts\"],\n listAccountsForPlanStubbed: [\"GET /marketplace_listing/stubbed/plans/{plan_id}/accounts\"],\n listInstallationReposForAuthenticatedUser: [\"GET /user/installations/{installation_id}/repositories\"],\n listInstallations: [\"GET /app/installations\"],\n listInstallationsForAuthenticatedUser: [\"GET /user/installations\"],\n listPlans: [\"GET /marketplace_listing/plans\"],\n listPlansStubbed: [\"GET /marketplace_listing/stubbed/plans\"],\n listReposAccessibleToInstallation: [\"GET /installation/repositories\"],\n listSubscriptionsForAuthenticatedUser: [\"GET /user/marketplace_purchases\"],\n listSubscriptionsForAuthenticatedUserStubbed: [\"GET /user/marketplace_purchases/stubbed\"],\n listWebhookDeliveries: [\"GET /app/hook/deliveries\"],\n redeliverWebhookDelivery: [\"POST /app/hook/deliveries/{delivery_id}/attempts\"],\n removeRepoFromInstallation: [\"DELETE /user/installations/{installation_id}/repositories/{repository_id}\", {}, {\n renamed: [\"apps\", \"removeRepoFromInstallationForAuthenticatedUser\"]\n }],\n removeRepoFromInstallationForAuthenticatedUser: [\"DELETE /user/installations/{installation_id}/repositories/{repository_id}\"],\n resetToken: [\"PATCH /applications/{client_id}/token\"],\n revokeInstallationAccessToken: [\"DELETE /installation/token\"],\n scopeToken: [\"POST /applications/{client_id}/token/scoped\"],\n suspendInstallation: [\"PUT /app/installations/{installation_id}/suspended\"],\n unsuspendInstallation: [\"DELETE /app/installations/{installation_id}/suspended\"],\n updateWebhookConfigForApp: [\"PATCH /app/hook/config\"]\n },\n billing: {\n getGithubActionsBillingOrg: [\"GET /orgs/{org}/settings/billing/actions\"],\n getGithubActionsBillingUser: [\"GET /users/{username}/settings/billing/actions\"],\n getGithubAdvancedSecurityBillingGhe: [\"GET /enterprises/{enterprise}/settings/billing/advanced-security\"],\n getGithubAdvancedSecurityBillingOrg: [\"GET /orgs/{org}/settings/billing/advanced-security\"],\n getGithubPackagesBillingOrg: [\"GET /orgs/{org}/settings/billing/packages\"],\n getGithubPackagesBillingUser: [\"GET /users/{username}/settings/billing/packages\"],\n getSharedStorageBillingOrg: [\"GET /orgs/{org}/settings/billing/shared-storage\"],\n getSharedStorageBillingUser: [\"GET /users/{username}/settings/billing/shared-storage\"]\n },\n checks: {\n create: [\"POST /repos/{owner}/{repo}/check-runs\"],\n createSuite: [\"POST /repos/{owner}/{repo}/check-suites\"],\n get: [\"GET /repos/{owner}/{repo}/check-runs/{check_run_id}\"],\n getSuite: [\"GET /repos/{owner}/{repo}/check-suites/{check_suite_id}\"],\n listAnnotations: [\"GET /repos/{owner}/{repo}/check-runs/{check_run_id}/annotations\"],\n listForRef: [\"GET /repos/{owner}/{repo}/commits/{ref}/check-runs\"],\n listForSuite: [\"GET /repos/{owner}/{repo}/check-suites/{check_suite_id}/check-runs\"],\n listSuitesForRef: [\"GET /repos/{owner}/{repo}/commits/{ref}/check-suites\"],\n rerequestRun: [\"POST /repos/{owner}/{repo}/check-runs/{check_run_id}/rerequest\"],\n rerequestSuite: [\"POST /repos/{owner}/{repo}/check-suites/{check_suite_id}/rerequest\"],\n setSuitesPreferences: [\"PATCH /repos/{owner}/{repo}/check-suites/preferences\"],\n update: [\"PATCH /repos/{owner}/{repo}/check-runs/{check_run_id}\"]\n },\n codeScanning: {\n deleteAnalysis: [\"DELETE /repos/{owner}/{repo}/code-scanning/analyses/{analysis_id}{?confirm_delete}\"],\n getAlert: [\"GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}\", {}, {\n renamedParameters: {\n alert_id: \"alert_number\"\n }\n }],\n getAnalysis: [\"GET /repos/{owner}/{repo}/code-scanning/analyses/{analysis_id}\"],\n getSarif: [\"GET /repos/{owner}/{repo}/code-scanning/sarifs/{sarif_id}\"],\n listAlertInstances: [\"GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/instances\"],\n listAlertsForOrg: [\"GET /orgs/{org}/code-scanning/alerts\"],\n listAlertsForRepo: [\"GET /repos/{owner}/{repo}/code-scanning/alerts\"],\n listAlertsInstances: [\"GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/instances\", {}, {\n renamed: [\"codeScanning\", \"listAlertInstances\"]\n }],\n listRecentAnalyses: [\"GET /repos/{owner}/{repo}/code-scanning/analyses\"],\n updateAlert: [\"PATCH /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}\"],\n uploadSarif: [\"POST /repos/{owner}/{repo}/code-scanning/sarifs\"]\n },\n codesOfConduct: {\n getAllCodesOfConduct: [\"GET /codes_of_conduct\"],\n getConductCode: [\"GET /codes_of_conduct/{key}\"]\n },\n codespaces: {\n addRepositoryForSecretForAuthenticatedUser: [\"PUT /user/codespaces/secrets/{secret_name}/repositories/{repository_id}\"],\n codespaceMachinesForAuthenticatedUser: [\"GET /user/codespaces/{codespace_name}/machines\"],\n createForAuthenticatedUser: [\"POST /user/codespaces\"],\n createOrUpdateRepoSecret: [\"PUT /repos/{owner}/{repo}/codespaces/secrets/{secret_name}\"],\n createOrUpdateSecretForAuthenticatedUser: [\"PUT /user/codespaces/secrets/{secret_name}\"],\n createWithPrForAuthenticatedUser: [\"POST /repos/{owner}/{repo}/pulls/{pull_number}/codespaces\"],\n createWithRepoForAuthenticatedUser: [\"POST /repos/{owner}/{repo}/codespaces\"],\n deleteForAuthenticatedUser: [\"DELETE /user/codespaces/{codespace_name}\"],\n deleteFromOrganization: [\"DELETE /orgs/{org}/members/{username}/codespaces/{codespace_name}\"],\n deleteRepoSecret: [\"DELETE /repos/{owner}/{repo}/codespaces/secrets/{secret_name}\"],\n deleteSecretForAuthenticatedUser: [\"DELETE /user/codespaces/secrets/{secret_name}\"],\n exportForAuthenticatedUser: [\"POST /user/codespaces/{codespace_name}/exports\"],\n getExportDetailsForAuthenticatedUser: [\"GET /user/codespaces/{codespace_name}/exports/{export_id}\"],\n getForAuthenticatedUser: [\"GET /user/codespaces/{codespace_name}\"],\n getPublicKeyForAuthenticatedUser: [\"GET /user/codespaces/secrets/public-key\"],\n getRepoPublicKey: [\"GET /repos/{owner}/{repo}/codespaces/secrets/public-key\"],\n getRepoSecret: [\"GET /repos/{owner}/{repo}/codespaces/secrets/{secret_name}\"],\n getSecretForAuthenticatedUser: [\"GET /user/codespaces/secrets/{secret_name}\"],\n listDevcontainersInRepositoryForAuthenticatedUser: [\"GET /repos/{owner}/{repo}/codespaces/devcontainers\"],\n listForAuthenticatedUser: [\"GET /user/codespaces\"],\n listInOrganization: [\"GET /orgs/{org}/codespaces\", {}, {\n renamedParameters: {\n org_id: \"org\"\n }\n }],\n listInRepositoryForAuthenticatedUser: [\"GET /repos/{owner}/{repo}/codespaces\"],\n listRepoSecrets: [\"GET /repos/{owner}/{repo}/codespaces/secrets\"],\n listRepositoriesForSecretForAuthenticatedUser: [\"GET /user/codespaces/secrets/{secret_name}/repositories\"],\n listSecretsForAuthenticatedUser: [\"GET /user/codespaces/secrets\"],\n removeRepositoryForSecretForAuthenticatedUser: [\"DELETE /user/codespaces/secrets/{secret_name}/repositories/{repository_id}\"],\n repoMachinesForAuthenticatedUser: [\"GET /repos/{owner}/{repo}/codespaces/machines\"],\n setRepositoriesForSecretForAuthenticatedUser: [\"PUT /user/codespaces/secrets/{secret_name}/repositories\"],\n startForAuthenticatedUser: [\"POST /user/codespaces/{codespace_name}/start\"],\n stopForAuthenticatedUser: [\"POST /user/codespaces/{codespace_name}/stop\"],\n stopInOrganization: [\"POST /orgs/{org}/members/{username}/codespaces/{codespace_name}/stop\"],\n updateForAuthenticatedUser: [\"PATCH /user/codespaces/{codespace_name}\"]\n },\n dependabot: {\n addSelectedRepoToOrgSecret: [\"PUT /orgs/{org}/dependabot/secrets/{secret_name}/repositories/{repository_id}\"],\n createOrUpdateOrgSecret: [\"PUT /orgs/{org}/dependabot/secrets/{secret_name}\"],\n createOrUpdateRepoSecret: [\"PUT /repos/{owner}/{repo}/dependabot/secrets/{secret_name}\"],\n deleteOrgSecret: [\"DELETE /orgs/{org}/dependabot/secrets/{secret_name}\"],\n deleteRepoSecret: [\"DELETE /repos/{owner}/{repo}/dependabot/secrets/{secret_name}\"],\n getOrgPublicKey: [\"GET /orgs/{org}/dependabot/secrets/public-key\"],\n getOrgSecret: [\"GET /orgs/{org}/dependabot/secrets/{secret_name}\"],\n getRepoPublicKey: [\"GET /repos/{owner}/{repo}/dependabot/secrets/public-key\"],\n getRepoSecret: [\"GET /repos/{owner}/{repo}/dependabot/secrets/{secret_name}\"],\n listOrgSecrets: [\"GET /orgs/{org}/dependabot/secrets\"],\n listRepoSecrets: [\"GET /repos/{owner}/{repo}/dependabot/secrets\"],\n listSelectedReposForOrgSecret: [\"GET /orgs/{org}/dependabot/secrets/{secret_name}/repositories\"],\n removeSelectedRepoFromOrgSecret: [\"DELETE /orgs/{org}/dependabot/secrets/{secret_name}/repositories/{repository_id}\"],\n setSelectedReposForOrgSecret: [\"PUT /orgs/{org}/dependabot/secrets/{secret_name}/repositories\"]\n },\n dependencyGraph: {\n createRepositorySnapshot: [\"POST /repos/{owner}/{repo}/dependency-graph/snapshots\"],\n diffRange: [\"GET /repos/{owner}/{repo}/dependency-graph/compare/{basehead}\"]\n },\n emojis: {\n get: [\"GET /emojis\"]\n },\n enterpriseAdmin: {\n addCustomLabelsToSelfHostedRunnerForEnterprise: [\"POST /enterprises/{enterprise}/actions/runners/{runner_id}/labels\"],\n disableSelectedOrganizationGithubActionsEnterprise: [\"DELETE /enterprises/{enterprise}/actions/permissions/organizations/{org_id}\"],\n enableSelectedOrganizationGithubActionsEnterprise: [\"PUT /enterprises/{enterprise}/actions/permissions/organizations/{org_id}\"],\n getAllowedActionsEnterprise: [\"GET /enterprises/{enterprise}/actions/permissions/selected-actions\"],\n getGithubActionsPermissionsEnterprise: [\"GET /enterprises/{enterprise}/actions/permissions\"],\n getServerStatistics: [\"GET /enterprise-installation/{enterprise_or_org}/server-statistics\"],\n listLabelsForSelfHostedRunnerForEnterprise: [\"GET /enterprises/{enterprise}/actions/runners/{runner_id}/labels\"],\n listSelectedOrganizationsEnabledGithubActionsEnterprise: [\"GET /enterprises/{enterprise}/actions/permissions/organizations\"],\n removeAllCustomLabelsFromSelfHostedRunnerForEnterprise: [\"DELETE /enterprises/{enterprise}/actions/runners/{runner_id}/labels\"],\n removeCustomLabelFromSelfHostedRunnerForEnterprise: [\"DELETE /enterprises/{enterprise}/actions/runners/{runner_id}/labels/{name}\"],\n setAllowedActionsEnterprise: [\"PUT /enterprises/{enterprise}/actions/permissions/selected-actions\"],\n setCustomLabelsForSelfHostedRunnerForEnterprise: [\"PUT /enterprises/{enterprise}/actions/runners/{runner_id}/labels\"],\n setGithubActionsPermissionsEnterprise: [\"PUT /enterprises/{enterprise}/actions/permissions\"],\n setSelectedOrganizationsEnabledGithubActionsEnterprise: [\"PUT /enterprises/{enterprise}/actions/permissions/organizations\"]\n },\n gists: {\n checkIsStarred: [\"GET /gists/{gist_id}/star\"],\n create: [\"POST /gists\"],\n createComment: [\"POST /gists/{gist_id}/comments\"],\n delete: [\"DELETE /gists/{gist_id}\"],\n deleteComment: [\"DELETE /gists/{gist_id}/comments/{comment_id}\"],\n fork: [\"POST /gists/{gist_id}/forks\"],\n get: [\"GET /gists/{gist_id}\"],\n getComment: [\"GET /gists/{gist_id}/comments/{comment_id}\"],\n getRevision: [\"GET /gists/{gist_id}/{sha}\"],\n list: [\"GET /gists\"],\n listComments: [\"GET /gists/{gist_id}/comments\"],\n listCommits: [\"GET /gists/{gist_id}/commits\"],\n listForUser: [\"GET /users/{username}/gists\"],\n listForks: [\"GET /gists/{gist_id}/forks\"],\n listPublic: [\"GET /gists/public\"],\n listStarred: [\"GET /gists/starred\"],\n star: [\"PUT /gists/{gist_id}/star\"],\n unstar: [\"DELETE /gists/{gist_id}/star\"],\n update: [\"PATCH /gists/{gist_id}\"],\n updateComment: [\"PATCH /gists/{gist_id}/comments/{comment_id}\"]\n },\n git: {\n createBlob: [\"POST /repos/{owner}/{repo}/git/blobs\"],\n createCommit: [\"POST /repos/{owner}/{repo}/git/commits\"],\n createRef: [\"POST /repos/{owner}/{repo}/git/refs\"],\n createTag: [\"POST /repos/{owner}/{repo}/git/tags\"],\n createTree: [\"POST /repos/{owner}/{repo}/git/trees\"],\n deleteRef: [\"DELETE /repos/{owner}/{repo}/git/refs/{ref}\"],\n getBlob: [\"GET /repos/{owner}/{repo}/git/blobs/{file_sha}\"],\n getCommit: [\"GET /repos/{owner}/{repo}/git/commits/{commit_sha}\"],\n getRef: [\"GET /repos/{owner}/{repo}/git/ref/{ref}\"],\n getTag: [\"GET /repos/{owner}/{repo}/git/tags/{tag_sha}\"],\n getTree: [\"GET /repos/{owner}/{repo}/git/trees/{tree_sha}\"],\n listMatchingRefs: [\"GET /repos/{owner}/{repo}/git/matching-refs/{ref}\"],\n updateRef: [\"PATCH /repos/{owner}/{repo}/git/refs/{ref}\"]\n },\n gitignore: {\n getAllTemplates: [\"GET /gitignore/templates\"],\n getTemplate: [\"GET /gitignore/templates/{name}\"]\n },\n interactions: {\n getRestrictionsForAuthenticatedUser: [\"GET /user/interaction-limits\"],\n getRestrictionsForOrg: [\"GET /orgs/{org}/interaction-limits\"],\n getRestrictionsForRepo: [\"GET /repos/{owner}/{repo}/interaction-limits\"],\n getRestrictionsForYourPublicRepos: [\"GET /user/interaction-limits\", {}, {\n renamed: [\"interactions\", \"getRestrictionsForAuthenticatedUser\"]\n }],\n removeRestrictionsForAuthenticatedUser: [\"DELETE /user/interaction-limits\"],\n removeRestrictionsForOrg: [\"DELETE /orgs/{org}/interaction-limits\"],\n removeRestrictionsForRepo: [\"DELETE /repos/{owner}/{repo}/interaction-limits\"],\n removeRestrictionsForYourPublicRepos: [\"DELETE /user/interaction-limits\", {}, {\n renamed: [\"interactions\", \"removeRestrictionsForAuthenticatedUser\"]\n }],\n setRestrictionsForAuthenticatedUser: [\"PUT /user/interaction-limits\"],\n setRestrictionsForOrg: [\"PUT /orgs/{org}/interaction-limits\"],\n setRestrictionsForRepo: [\"PUT /repos/{owner}/{repo}/interaction-limits\"],\n setRestrictionsForYourPublicRepos: [\"PUT /user/interaction-limits\", {}, {\n renamed: [\"interactions\", \"setRestrictionsForAuthenticatedUser\"]\n }]\n },\n issues: {\n addAssignees: [\"POST /repos/{owner}/{repo}/issues/{issue_number}/assignees\"],\n addLabels: [\"POST /repos/{owner}/{repo}/issues/{issue_number}/labels\"],\n checkUserCanBeAssigned: [\"GET /repos/{owner}/{repo}/assignees/{assignee}\"],\n create: [\"POST /repos/{owner}/{repo}/issues\"],\n createComment: [\"POST /repos/{owner}/{repo}/issues/{issue_number}/comments\"],\n createLabel: [\"POST /repos/{owner}/{repo}/labels\"],\n createMilestone: [\"POST /repos/{owner}/{repo}/milestones\"],\n deleteComment: [\"DELETE /repos/{owner}/{repo}/issues/comments/{comment_id}\"],\n deleteLabel: [\"DELETE /repos/{owner}/{repo}/labels/{name}\"],\n deleteMilestone: [\"DELETE /repos/{owner}/{repo}/milestones/{milestone_number}\"],\n get: [\"GET /repos/{owner}/{repo}/issues/{issue_number}\"],\n getComment: [\"GET /repos/{owner}/{repo}/issues/comments/{comment_id}\"],\n getEvent: [\"GET /repos/{owner}/{repo}/issues/events/{event_id}\"],\n getLabel: [\"GET /repos/{owner}/{repo}/labels/{name}\"],\n getMilestone: [\"GET /repos/{owner}/{repo}/milestones/{milestone_number}\"],\n list: [\"GET /issues\"],\n listAssignees: [\"GET /repos/{owner}/{repo}/assignees\"],\n listComments: [\"GET /repos/{owner}/{repo}/issues/{issue_number}/comments\"],\n listCommentsForRepo: [\"GET /repos/{owner}/{repo}/issues/comments\"],\n listEvents: [\"GET /repos/{owner}/{repo}/issues/{issue_number}/events\"],\n listEventsForRepo: [\"GET /repos/{owner}/{repo}/issues/events\"],\n listEventsForTimeline: [\"GET /repos/{owner}/{repo}/issues/{issue_number}/timeline\"],\n listForAuthenticatedUser: [\"GET /user/issues\"],\n listForOrg: [\"GET /orgs/{org}/issues\"],\n listForRepo: [\"GET /repos/{owner}/{repo}/issues\"],\n listLabelsForMilestone: [\"GET /repos/{owner}/{repo}/milestones/{milestone_number}/labels\"],\n listLabelsForRepo: [\"GET /repos/{owner}/{repo}/labels\"],\n listLabelsOnIssue: [\"GET /repos/{owner}/{repo}/issues/{issue_number}/labels\"],\n listMilestones: [\"GET /repos/{owner}/{repo}/milestones\"],\n lock: [\"PUT /repos/{owner}/{repo}/issues/{issue_number}/lock\"],\n removeAllLabels: [\"DELETE /repos/{owner}/{repo}/issues/{issue_number}/labels\"],\n removeAssignees: [\"DELETE /repos/{owner}/{repo}/issues/{issue_number}/assignees\"],\n removeLabel: [\"DELETE /repos/{owner}/{repo}/issues/{issue_number}/labels/{name}\"],\n setLabels: [\"PUT /repos/{owner}/{repo}/issues/{issue_number}/labels\"],\n unlock: [\"DELETE /repos/{owner}/{repo}/issues/{issue_number}/lock\"],\n update: [\"PATCH /repos/{owner}/{repo}/issues/{issue_number}\"],\n updateComment: [\"PATCH /repos/{owner}/{repo}/issues/comments/{comment_id}\"],\n updateLabel: [\"PATCH /repos/{owner}/{repo}/labels/{name}\"],\n updateMilestone: [\"PATCH /repos/{owner}/{repo}/milestones/{milestone_number}\"]\n },\n licenses: {\n get: [\"GET /licenses/{license}\"],\n getAllCommonlyUsed: [\"GET /licenses\"],\n getForRepo: [\"GET /repos/{owner}/{repo}/license\"]\n },\n markdown: {\n render: [\"POST /markdown\"],\n renderRaw: [\"POST /markdown/raw\", {\n headers: {\n \"content-type\": \"text/plain; charset=utf-8\"\n }\n }]\n },\n meta: {\n get: [\"GET /meta\"],\n getOctocat: [\"GET /octocat\"],\n getZen: [\"GET /zen\"],\n root: [\"GET /\"]\n },\n migrations: {\n cancelImport: [\"DELETE /repos/{owner}/{repo}/import\"],\n deleteArchiveForAuthenticatedUser: [\"DELETE /user/migrations/{migration_id}/archive\"],\n deleteArchiveForOrg: [\"DELETE /orgs/{org}/migrations/{migration_id}/archive\"],\n downloadArchiveForOrg: [\"GET /orgs/{org}/migrations/{migration_id}/archive\"],\n getArchiveForAuthenticatedUser: [\"GET /user/migrations/{migration_id}/archive\"],\n getCommitAuthors: [\"GET /repos/{owner}/{repo}/import/authors\"],\n getImportStatus: [\"GET /repos/{owner}/{repo}/import\"],\n getLargeFiles: [\"GET /repos/{owner}/{repo}/import/large_files\"],\n getStatusForAuthenticatedUser: [\"GET /user/migrations/{migration_id}\"],\n getStatusForOrg: [\"GET /orgs/{org}/migrations/{migration_id}\"],\n listForAuthenticatedUser: [\"GET /user/migrations\"],\n listForOrg: [\"GET /orgs/{org}/migrations\"],\n listReposForAuthenticatedUser: [\"GET /user/migrations/{migration_id}/repositories\"],\n listReposForOrg: [\"GET /orgs/{org}/migrations/{migration_id}/repositories\"],\n listReposForUser: [\"GET /user/migrations/{migration_id}/repositories\", {}, {\n renamed: [\"migrations\", \"listReposForAuthenticatedUser\"]\n }],\n mapCommitAuthor: [\"PATCH /repos/{owner}/{repo}/import/authors/{author_id}\"],\n setLfsPreference: [\"PATCH /repos/{owner}/{repo}/import/lfs\"],\n startForAuthenticatedUser: [\"POST /user/migrations\"],\n startForOrg: [\"POST /orgs/{org}/migrations\"],\n startImport: [\"PUT /repos/{owner}/{repo}/import\"],\n unlockRepoForAuthenticatedUser: [\"DELETE /user/migrations/{migration_id}/repos/{repo_name}/lock\"],\n unlockRepoForOrg: [\"DELETE /orgs/{org}/migrations/{migration_id}/repos/{repo_name}/lock\"],\n updateImport: [\"PATCH /repos/{owner}/{repo}/import\"]\n },\n orgs: {\n blockUser: [\"PUT /orgs/{org}/blocks/{username}\"],\n cancelInvitation: [\"DELETE /orgs/{org}/invitations/{invitation_id}\"],\n checkBlockedUser: [\"GET /orgs/{org}/blocks/{username}\"],\n checkMembershipForUser: [\"GET /orgs/{org}/members/{username}\"],\n checkPublicMembershipForUser: [\"GET /orgs/{org}/public_members/{username}\"],\n convertMemberToOutsideCollaborator: [\"PUT /orgs/{org}/outside_collaborators/{username}\"],\n createInvitation: [\"POST /orgs/{org}/invitations\"],\n createWebhook: [\"POST /orgs/{org}/hooks\"],\n deleteWebhook: [\"DELETE /orgs/{org}/hooks/{hook_id}\"],\n get: [\"GET /orgs/{org}\"],\n getMembershipForAuthenticatedUser: [\"GET /user/memberships/orgs/{org}\"],\n getMembershipForUser: [\"GET /orgs/{org}/memberships/{username}\"],\n getWebhook: [\"GET /orgs/{org}/hooks/{hook_id}\"],\n getWebhookConfigForOrg: [\"GET /orgs/{org}/hooks/{hook_id}/config\"],\n getWebhookDelivery: [\"GET /orgs/{org}/hooks/{hook_id}/deliveries/{delivery_id}\"],\n list: [\"GET /organizations\"],\n listAppInstallations: [\"GET /orgs/{org}/installations\"],\n listBlockedUsers: [\"GET /orgs/{org}/blocks\"],\n listCustomRoles: [\"GET /organizations/{organization_id}/custom_roles\"],\n listFailedInvitations: [\"GET /orgs/{org}/failed_invitations\"],\n listForAuthenticatedUser: [\"GET /user/orgs\"],\n listForUser: [\"GET /users/{username}/orgs\"],\n listInvitationTeams: [\"GET /orgs/{org}/invitations/{invitation_id}/teams\"],\n listMembers: [\"GET /orgs/{org}/members\"],\n listMembershipsForAuthenticatedUser: [\"GET /user/memberships/orgs\"],\n listOutsideCollaborators: [\"GET /orgs/{org}/outside_collaborators\"],\n listPendingInvitations: [\"GET /orgs/{org}/invitations\"],\n listPublicMembers: [\"GET /orgs/{org}/public_members\"],\n listWebhookDeliveries: [\"GET /orgs/{org}/hooks/{hook_id}/deliveries\"],\n listWebhooks: [\"GET /orgs/{org}/hooks\"],\n pingWebhook: [\"POST /orgs/{org}/hooks/{hook_id}/pings\"],\n redeliverWebhookDelivery: [\"POST /orgs/{org}/hooks/{hook_id}/deliveries/{delivery_id}/attempts\"],\n removeMember: [\"DELETE /orgs/{org}/members/{username}\"],\n removeMembershipForUser: [\"DELETE /orgs/{org}/memberships/{username}\"],\n removeOutsideCollaborator: [\"DELETE /orgs/{org}/outside_collaborators/{username}\"],\n removePublicMembershipForAuthenticatedUser: [\"DELETE /orgs/{org}/public_members/{username}\"],\n setMembershipForUser: [\"PUT /orgs/{org}/memberships/{username}\"],\n setPublicMembershipForAuthenticatedUser: [\"PUT /orgs/{org}/public_members/{username}\"],\n unblockUser: [\"DELETE /orgs/{org}/blocks/{username}\"],\n update: [\"PATCH /orgs/{org}\"],\n updateMembershipForAuthenticatedUser: [\"PATCH /user/memberships/orgs/{org}\"],\n updateWebhook: [\"PATCH /orgs/{org}/hooks/{hook_id}\"],\n updateWebhookConfigForOrg: [\"PATCH /orgs/{org}/hooks/{hook_id}/config\"]\n },\n packages: {\n deletePackageForAuthenticatedUser: [\"DELETE /user/packages/{package_type}/{package_name}\"],\n deletePackageForOrg: [\"DELETE /orgs/{org}/packages/{package_type}/{package_name}\"],\n deletePackageForUser: [\"DELETE /users/{username}/packages/{package_type}/{package_name}\"],\n deletePackageVersionForAuthenticatedUser: [\"DELETE /user/packages/{package_type}/{package_name}/versions/{package_version_id}\"],\n deletePackageVersionForOrg: [\"DELETE /orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}\"],\n deletePackageVersionForUser: [\"DELETE /users/{username}/packages/{package_type}/{package_name}/versions/{package_version_id}\"],\n getAllPackageVersionsForAPackageOwnedByAnOrg: [\"GET /orgs/{org}/packages/{package_type}/{package_name}/versions\", {}, {\n renamed: [\"packages\", \"getAllPackageVersionsForPackageOwnedByOrg\"]\n }],\n getAllPackageVersionsForAPackageOwnedByTheAuthenticatedUser: [\"GET /user/packages/{package_type}/{package_name}/versions\", {}, {\n renamed: [\"packages\", \"getAllPackageVersionsForPackageOwnedByAuthenticatedUser\"]\n }],\n getAllPackageVersionsForPackageOwnedByAuthenticatedUser: [\"GET /user/packages/{package_type}/{package_name}/versions\"],\n getAllPackageVersionsForPackageOwnedByOrg: [\"GET /orgs/{org}/packages/{package_type}/{package_name}/versions\"],\n getAllPackageVersionsForPackageOwnedByUser: [\"GET /users/{username}/packages/{package_type}/{package_name}/versions\"],\n getPackageForAuthenticatedUser: [\"GET /user/packages/{package_type}/{package_name}\"],\n getPackageForOrganization: [\"GET /orgs/{org}/packages/{package_type}/{package_name}\"],\n getPackageForUser: [\"GET /users/{username}/packages/{package_type}/{package_name}\"],\n getPackageVersionForAuthenticatedUser: [\"GET /user/packages/{package_type}/{package_name}/versions/{package_version_id}\"],\n getPackageVersionForOrganization: [\"GET /orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}\"],\n getPackageVersionForUser: [\"GET /users/{username}/packages/{package_type}/{package_name}/versions/{package_version_id}\"],\n listPackagesForAuthenticatedUser: [\"GET /user/packages\"],\n listPackagesForOrganization: [\"GET /orgs/{org}/packages\"],\n listPackagesForUser: [\"GET /users/{username}/packages\"],\n restorePackageForAuthenticatedUser: [\"POST /user/packages/{package_type}/{package_name}/restore{?token}\"],\n restorePackageForOrg: [\"POST /orgs/{org}/packages/{package_type}/{package_name}/restore{?token}\"],\n restorePackageForUser: [\"POST /users/{username}/packages/{package_type}/{package_name}/restore{?token}\"],\n restorePackageVersionForAuthenticatedUser: [\"POST /user/packages/{package_type}/{package_name}/versions/{package_version_id}/restore\"],\n restorePackageVersionForOrg: [\"POST /orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}/restore\"],\n restorePackageVersionForUser: [\"POST /users/{username}/packages/{package_type}/{package_name}/versions/{package_version_id}/restore\"]\n },\n projects: {\n addCollaborator: [\"PUT /projects/{project_id}/collaborators/{username}\"],\n createCard: [\"POST /projects/columns/{column_id}/cards\"],\n createColumn: [\"POST /projects/{project_id}/columns\"],\n createForAuthenticatedUser: [\"POST /user/projects\"],\n createForOrg: [\"POST /orgs/{org}/projects\"],\n createForRepo: [\"POST /repos/{owner}/{repo}/projects\"],\n delete: [\"DELETE /projects/{project_id}\"],\n deleteCard: [\"DELETE /projects/columns/cards/{card_id}\"],\n deleteColumn: [\"DELETE /projects/columns/{column_id}\"],\n get: [\"GET /projects/{project_id}\"],\n getCard: [\"GET /projects/columns/cards/{card_id}\"],\n getColumn: [\"GET /projects/columns/{column_id}\"],\n getPermissionForUser: [\"GET /projects/{project_id}/collaborators/{username}/permission\"],\n listCards: [\"GET /projects/columns/{column_id}/cards\"],\n listCollaborators: [\"GET /projects/{project_id}/collaborators\"],\n listColumns: [\"GET /projects/{project_id}/columns\"],\n listForOrg: [\"GET /orgs/{org}/projects\"],\n listForRepo: [\"GET /repos/{owner}/{repo}/projects\"],\n listForUser: [\"GET /users/{username}/projects\"],\n moveCard: [\"POST /projects/columns/cards/{card_id}/moves\"],\n moveColumn: [\"POST /projects/columns/{column_id}/moves\"],\n removeCollaborator: [\"DELETE /projects/{project_id}/collaborators/{username}\"],\n update: [\"PATCH /projects/{project_id}\"],\n updateCard: [\"PATCH /projects/columns/cards/{card_id}\"],\n updateColumn: [\"PATCH /projects/columns/{column_id}\"]\n },\n pulls: {\n checkIfMerged: [\"GET /repos/{owner}/{repo}/pulls/{pull_number}/merge\"],\n create: [\"POST /repos/{owner}/{repo}/pulls\"],\n createReplyForReviewComment: [\"POST /repos/{owner}/{repo}/pulls/{pull_number}/comments/{comment_id}/replies\"],\n createReview: [\"POST /repos/{owner}/{repo}/pulls/{pull_number}/reviews\"],\n createReviewComment: [\"POST /repos/{owner}/{repo}/pulls/{pull_number}/comments\"],\n deletePendingReview: [\"DELETE /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}\"],\n deleteReviewComment: [\"DELETE /repos/{owner}/{repo}/pulls/comments/{comment_id}\"],\n dismissReview: [\"PUT /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/dismissals\"],\n get: [\"GET /repos/{owner}/{repo}/pulls/{pull_number}\"],\n getReview: [\"GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}\"],\n getReviewComment: [\"GET /repos/{owner}/{repo}/pulls/comments/{comment_id}\"],\n list: [\"GET /repos/{owner}/{repo}/pulls\"],\n listCommentsForReview: [\"GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/comments\"],\n listCommits: [\"GET /repos/{owner}/{repo}/pulls/{pull_number}/commits\"],\n listFiles: [\"GET /repos/{owner}/{repo}/pulls/{pull_number}/files\"],\n listRequestedReviewers: [\"GET /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers\"],\n listReviewComments: [\"GET /repos/{owner}/{repo}/pulls/{pull_number}/comments\"],\n listReviewCommentsForRepo: [\"GET /repos/{owner}/{repo}/pulls/comments\"],\n listReviews: [\"GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews\"],\n merge: [\"PUT /repos/{owner}/{repo}/pulls/{pull_number}/merge\"],\n removeRequestedReviewers: [\"DELETE /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers\"],\n requestReviewers: [\"POST /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers\"],\n submitReview: [\"POST /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/events\"],\n update: [\"PATCH /repos/{owner}/{repo}/pulls/{pull_number}\"],\n updateBranch: [\"PUT /repos/{owner}/{repo}/pulls/{pull_number}/update-branch\"],\n updateReview: [\"PUT /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}\"],\n updateReviewComment: [\"PATCH /repos/{owner}/{repo}/pulls/comments/{comment_id}\"]\n },\n rateLimit: {\n get: [\"GET /rate_limit\"]\n },\n reactions: {\n createForCommitComment: [\"POST /repos/{owner}/{repo}/comments/{comment_id}/reactions\"],\n createForIssue: [\"POST /repos/{owner}/{repo}/issues/{issue_number}/reactions\"],\n createForIssueComment: [\"POST /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions\"],\n createForPullRequestReviewComment: [\"POST /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions\"],\n createForRelease: [\"POST /repos/{owner}/{repo}/releases/{release_id}/reactions\"],\n createForTeamDiscussionCommentInOrg: [\"POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions\"],\n createForTeamDiscussionInOrg: [\"POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions\"],\n deleteForCommitComment: [\"DELETE /repos/{owner}/{repo}/comments/{comment_id}/reactions/{reaction_id}\"],\n deleteForIssue: [\"DELETE /repos/{owner}/{repo}/issues/{issue_number}/reactions/{reaction_id}\"],\n deleteForIssueComment: [\"DELETE /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions/{reaction_id}\"],\n deleteForPullRequestComment: [\"DELETE /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions/{reaction_id}\"],\n deleteForRelease: [\"DELETE /repos/{owner}/{repo}/releases/{release_id}/reactions/{reaction_id}\"],\n deleteForTeamDiscussion: [\"DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions/{reaction_id}\"],\n deleteForTeamDiscussionComment: [\"DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions/{reaction_id}\"],\n listForCommitComment: [\"GET /repos/{owner}/{repo}/comments/{comment_id}/reactions\"],\n listForIssue: [\"GET /repos/{owner}/{repo}/issues/{issue_number}/reactions\"],\n listForIssueComment: [\"GET /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions\"],\n listForPullRequestReviewComment: [\"GET /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions\"],\n listForRelease: [\"GET /repos/{owner}/{repo}/releases/{release_id}/reactions\"],\n listForTeamDiscussionCommentInOrg: [\"GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions\"],\n listForTeamDiscussionInOrg: [\"GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions\"]\n },\n repos: {\n acceptInvitation: [\"PATCH /user/repository_invitations/{invitation_id}\", {}, {\n renamed: [\"repos\", \"acceptInvitationForAuthenticatedUser\"]\n }],\n acceptInvitationForAuthenticatedUser: [\"PATCH /user/repository_invitations/{invitation_id}\"],\n addAppAccessRestrictions: [\"POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps\", {}, {\n mapToData: \"apps\"\n }],\n addCollaborator: [\"PUT /repos/{owner}/{repo}/collaborators/{username}\"],\n addStatusCheckContexts: [\"POST /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts\", {}, {\n mapToData: \"contexts\"\n }],\n addTeamAccessRestrictions: [\"POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams\", {}, {\n mapToData: \"teams\"\n }],\n addUserAccessRestrictions: [\"POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users\", {}, {\n mapToData: \"users\"\n }],\n checkCollaborator: [\"GET /repos/{owner}/{repo}/collaborators/{username}\"],\n checkVulnerabilityAlerts: [\"GET /repos/{owner}/{repo}/vulnerability-alerts\"],\n codeownersErrors: [\"GET /repos/{owner}/{repo}/codeowners/errors\"],\n compareCommits: [\"GET /repos/{owner}/{repo}/compare/{base}...{head}\"],\n compareCommitsWithBasehead: [\"GET /repos/{owner}/{repo}/compare/{basehead}\"],\n createAutolink: [\"POST /repos/{owner}/{repo}/autolinks\"],\n createCommitComment: [\"POST /repos/{owner}/{repo}/commits/{commit_sha}/comments\"],\n createCommitSignatureProtection: [\"POST /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures\"],\n createCommitStatus: [\"POST /repos/{owner}/{repo}/statuses/{sha}\"],\n createDeployKey: [\"POST /repos/{owner}/{repo}/keys\"],\n createDeployment: [\"POST /repos/{owner}/{repo}/deployments\"],\n createDeploymentStatus: [\"POST /repos/{owner}/{repo}/deployments/{deployment_id}/statuses\"],\n createDispatchEvent: [\"POST /repos/{owner}/{repo}/dispatches\"],\n createForAuthenticatedUser: [\"POST /user/repos\"],\n createFork: [\"POST /repos/{owner}/{repo}/forks\"],\n createInOrg: [\"POST /orgs/{org}/repos\"],\n createOrUpdateEnvironment: [\"PUT /repos/{owner}/{repo}/environments/{environment_name}\"],\n createOrUpdateFileContents: [\"PUT /repos/{owner}/{repo}/contents/{path}\"],\n createPagesSite: [\"POST /repos/{owner}/{repo}/pages\"],\n createRelease: [\"POST /repos/{owner}/{repo}/releases\"],\n createTagProtection: [\"POST /repos/{owner}/{repo}/tags/protection\"],\n createUsingTemplate: [\"POST /repos/{template_owner}/{template_repo}/generate\"],\n createWebhook: [\"POST /repos/{owner}/{repo}/hooks\"],\n declineInvitation: [\"DELETE /user/repository_invitations/{invitation_id}\", {}, {\n renamed: [\"repos\", \"declineInvitationForAuthenticatedUser\"]\n }],\n declineInvitationForAuthenticatedUser: [\"DELETE /user/repository_invitations/{invitation_id}\"],\n delete: [\"DELETE /repos/{owner}/{repo}\"],\n deleteAccessRestrictions: [\"DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions\"],\n deleteAdminBranchProtection: [\"DELETE /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins\"],\n deleteAnEnvironment: [\"DELETE /repos/{owner}/{repo}/environments/{environment_name}\"],\n deleteAutolink: [\"DELETE /repos/{owner}/{repo}/autolinks/{autolink_id}\"],\n deleteBranchProtection: [\"DELETE /repos/{owner}/{repo}/branches/{branch}/protection\"],\n deleteCommitComment: [\"DELETE /repos/{owner}/{repo}/comments/{comment_id}\"],\n deleteCommitSignatureProtection: [\"DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures\"],\n deleteDeployKey: [\"DELETE /repos/{owner}/{repo}/keys/{key_id}\"],\n deleteDeployment: [\"DELETE /repos/{owner}/{repo}/deployments/{deployment_id}\"],\n deleteFile: [\"DELETE /repos/{owner}/{repo}/contents/{path}\"],\n deleteInvitation: [\"DELETE /repos/{owner}/{repo}/invitations/{invitation_id}\"],\n deletePagesSite: [\"DELETE /repos/{owner}/{repo}/pages\"],\n deletePullRequestReviewProtection: [\"DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews\"],\n deleteRelease: [\"DELETE /repos/{owner}/{repo}/releases/{release_id}\"],\n deleteReleaseAsset: [\"DELETE /repos/{owner}/{repo}/releases/assets/{asset_id}\"],\n deleteTagProtection: [\"DELETE /repos/{owner}/{repo}/tags/protection/{tag_protection_id}\"],\n deleteWebhook: [\"DELETE /repos/{owner}/{repo}/hooks/{hook_id}\"],\n disableAutomatedSecurityFixes: [\"DELETE /repos/{owner}/{repo}/automated-security-fixes\"],\n disableLfsForRepo: [\"DELETE /repos/{owner}/{repo}/lfs\"],\n disableVulnerabilityAlerts: [\"DELETE /repos/{owner}/{repo}/vulnerability-alerts\"],\n downloadArchive: [\"GET /repos/{owner}/{repo}/zipball/{ref}\", {}, {\n renamed: [\"repos\", \"downloadZipballArchive\"]\n }],\n downloadTarballArchive: [\"GET /repos/{owner}/{repo}/tarball/{ref}\"],\n downloadZipballArchive: [\"GET /repos/{owner}/{repo}/zipball/{ref}\"],\n enableAutomatedSecurityFixes: [\"PUT /repos/{owner}/{repo}/automated-security-fixes\"],\n enableLfsForRepo: [\"PUT /repos/{owner}/{repo}/lfs\"],\n enableVulnerabilityAlerts: [\"PUT /repos/{owner}/{repo}/vulnerability-alerts\"],\n generateReleaseNotes: [\"POST /repos/{owner}/{repo}/releases/generate-notes\"],\n get: [\"GET /repos/{owner}/{repo}\"],\n getAccessRestrictions: [\"GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions\"],\n getAdminBranchProtection: [\"GET /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins\"],\n getAllEnvironments: [\"GET /repos/{owner}/{repo}/environments\"],\n getAllStatusCheckContexts: [\"GET /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts\"],\n getAllTopics: [\"GET /repos/{owner}/{repo}/topics\"],\n getAppsWithAccessToProtectedBranch: [\"GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps\"],\n getAutolink: [\"GET /repos/{owner}/{repo}/autolinks/{autolink_id}\"],\n getBranch: [\"GET /repos/{owner}/{repo}/branches/{branch}\"],\n getBranchProtection: [\"GET /repos/{owner}/{repo}/branches/{branch}/protection\"],\n getClones: [\"GET /repos/{owner}/{repo}/traffic/clones\"],\n getCodeFrequencyStats: [\"GET /repos/{owner}/{repo}/stats/code_frequency\"],\n getCollaboratorPermissionLevel: [\"GET /repos/{owner}/{repo}/collaborators/{username}/permission\"],\n getCombinedStatusForRef: [\"GET /repos/{owner}/{repo}/commits/{ref}/status\"],\n getCommit: [\"GET /repos/{owner}/{repo}/commits/{ref}\"],\n getCommitActivityStats: [\"GET /repos/{owner}/{repo}/stats/commit_activity\"],\n getCommitComment: [\"GET /repos/{owner}/{repo}/comments/{comment_id}\"],\n getCommitSignatureProtection: [\"GET /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures\"],\n getCommunityProfileMetrics: [\"GET /repos/{owner}/{repo}/community/profile\"],\n getContent: [\"GET /repos/{owner}/{repo}/contents/{path}\"],\n getContributorsStats: [\"GET /repos/{owner}/{repo}/stats/contributors\"],\n getDeployKey: [\"GET /repos/{owner}/{repo}/keys/{key_id}\"],\n getDeployment: [\"GET /repos/{owner}/{repo}/deployments/{deployment_id}\"],\n getDeploymentStatus: [\"GET /repos/{owner}/{repo}/deployments/{deployment_id}/statuses/{status_id}\"],\n getEnvironment: [\"GET /repos/{owner}/{repo}/environments/{environment_name}\"],\n getLatestPagesBuild: [\"GET /repos/{owner}/{repo}/pages/builds/latest\"],\n getLatestRelease: [\"GET /repos/{owner}/{repo}/releases/latest\"],\n getPages: [\"GET /repos/{owner}/{repo}/pages\"],\n getPagesBuild: [\"GET /repos/{owner}/{repo}/pages/builds/{build_id}\"],\n getPagesHealthCheck: [\"GET /repos/{owner}/{repo}/pages/health\"],\n getParticipationStats: [\"GET /repos/{owner}/{repo}/stats/participation\"],\n getPullRequestReviewProtection: [\"GET /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews\"],\n getPunchCardStats: [\"GET /repos/{owner}/{repo}/stats/punch_card\"],\n getReadme: [\"GET /repos/{owner}/{repo}/readme\"],\n getReadmeInDirectory: [\"GET /repos/{owner}/{repo}/readme/{dir}\"],\n getRelease: [\"GET /repos/{owner}/{repo}/releases/{release_id}\"],\n getReleaseAsset: [\"GET /repos/{owner}/{repo}/releases/assets/{asset_id}\"],\n getReleaseByTag: [\"GET /repos/{owner}/{repo}/releases/tags/{tag}\"],\n getStatusChecksProtection: [\"GET /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks\"],\n getTeamsWithAccessToProtectedBranch: [\"GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams\"],\n getTopPaths: [\"GET /repos/{owner}/{repo}/traffic/popular/paths\"],\n getTopReferrers: [\"GET /repos/{owner}/{repo}/traffic/popular/referrers\"],\n getUsersWithAccessToProtectedBranch: [\"GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users\"],\n getViews: [\"GET /repos/{owner}/{repo}/traffic/views\"],\n getWebhook: [\"GET /repos/{owner}/{repo}/hooks/{hook_id}\"],\n getWebhookConfigForRepo: [\"GET /repos/{owner}/{repo}/hooks/{hook_id}/config\"],\n getWebhookDelivery: [\"GET /repos/{owner}/{repo}/hooks/{hook_id}/deliveries/{delivery_id}\"],\n listAutolinks: [\"GET /repos/{owner}/{repo}/autolinks\"],\n listBranches: [\"GET /repos/{owner}/{repo}/branches\"],\n listBranchesForHeadCommit: [\"GET /repos/{owner}/{repo}/commits/{commit_sha}/branches-where-head\"],\n listCollaborators: [\"GET /repos/{owner}/{repo}/collaborators\"],\n listCommentsForCommit: [\"GET /repos/{owner}/{repo}/commits/{commit_sha}/comments\"],\n listCommitCommentsForRepo: [\"GET /repos/{owner}/{repo}/comments\"],\n listCommitStatusesForRef: [\"GET /repos/{owner}/{repo}/commits/{ref}/statuses\"],\n listCommits: [\"GET /repos/{owner}/{repo}/commits\"],\n listContributors: [\"GET /repos/{owner}/{repo}/contributors\"],\n listDeployKeys: [\"GET /repos/{owner}/{repo}/keys\"],\n listDeploymentStatuses: [\"GET /repos/{owner}/{repo}/deployments/{deployment_id}/statuses\"],\n listDeployments: [\"GET /repos/{owner}/{repo}/deployments\"],\n listForAuthenticatedUser: [\"GET /user/repos\"],\n listForOrg: [\"GET /orgs/{org}/repos\"],\n listForUser: [\"GET /users/{username}/repos\"],\n listForks: [\"GET /repos/{owner}/{repo}/forks\"],\n listInvitations: [\"GET /repos/{owner}/{repo}/invitations\"],\n listInvitationsForAuthenticatedUser: [\"GET /user/repository_invitations\"],\n listLanguages: [\"GET /repos/{owner}/{repo}/languages\"],\n listPagesBuilds: [\"GET /repos/{owner}/{repo}/pages/builds\"],\n listPublic: [\"GET /repositories\"],\n listPullRequestsAssociatedWithCommit: [\"GET /repos/{owner}/{repo}/commits/{commit_sha}/pulls\"],\n listReleaseAssets: [\"GET /repos/{owner}/{repo}/releases/{release_id}/assets\"],\n listReleases: [\"GET /repos/{owner}/{repo}/releases\"],\n listTagProtection: [\"GET /repos/{owner}/{repo}/tags/protection\"],\n listTags: [\"GET /repos/{owner}/{repo}/tags\"],\n listTeams: [\"GET /repos/{owner}/{repo}/teams\"],\n listWebhookDeliveries: [\"GET /repos/{owner}/{repo}/hooks/{hook_id}/deliveries\"],\n listWebhooks: [\"GET /repos/{owner}/{repo}/hooks\"],\n merge: [\"POST /repos/{owner}/{repo}/merges\"],\n mergeUpstream: [\"POST /repos/{owner}/{repo}/merge-upstream\"],\n pingWebhook: [\"POST /repos/{owner}/{repo}/hooks/{hook_id}/pings\"],\n redeliverWebhookDelivery: [\"POST /repos/{owner}/{repo}/hooks/{hook_id}/deliveries/{delivery_id}/attempts\"],\n removeAppAccessRestrictions: [\"DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps\", {}, {\n mapToData: \"apps\"\n }],\n removeCollaborator: [\"DELETE /repos/{owner}/{repo}/collaborators/{username}\"],\n removeStatusCheckContexts: [\"DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts\", {}, {\n mapToData: \"contexts\"\n }],\n removeStatusCheckProtection: [\"DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks\"],\n removeTeamAccessRestrictions: [\"DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams\", {}, {\n mapToData: \"teams\"\n }],\n removeUserAccessRestrictions: [\"DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users\", {}, {\n mapToData: \"users\"\n }],\n renameBranch: [\"POST /repos/{owner}/{repo}/branches/{branch}/rename\"],\n replaceAllTopics: [\"PUT /repos/{owner}/{repo}/topics\"],\n requestPagesBuild: [\"POST /repos/{owner}/{repo}/pages/builds\"],\n setAdminBranchProtection: [\"POST /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins\"],\n setAppAccessRestrictions: [\"PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps\", {}, {\n mapToData: \"apps\"\n }],\n setStatusCheckContexts: [\"PUT /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts\", {}, {\n mapToData: \"contexts\"\n }],\n setTeamAccessRestrictions: [\"PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams\", {}, {\n mapToData: \"teams\"\n }],\n setUserAccessRestrictions: [\"PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users\", {}, {\n mapToData: \"users\"\n }],\n testPushWebhook: [\"POST /repos/{owner}/{repo}/hooks/{hook_id}/tests\"],\n transfer: [\"POST /repos/{owner}/{repo}/transfer\"],\n update: [\"PATCH /repos/{owner}/{repo}\"],\n updateBranchProtection: [\"PUT /repos/{owner}/{repo}/branches/{branch}/protection\"],\n updateCommitComment: [\"PATCH /repos/{owner}/{repo}/comments/{comment_id}\"],\n updateInformationAboutPagesSite: [\"PUT /repos/{owner}/{repo}/pages\"],\n updateInvitation: [\"PATCH /repos/{owner}/{repo}/invitations/{invitation_id}\"],\n updatePullRequestReviewProtection: [\"PATCH /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews\"],\n updateRelease: [\"PATCH /repos/{owner}/{repo}/releases/{release_id}\"],\n updateReleaseAsset: [\"PATCH /repos/{owner}/{repo}/releases/assets/{asset_id}\"],\n updateStatusCheckPotection: [\"PATCH /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks\", {}, {\n renamed: [\"repos\", \"updateStatusCheckProtection\"]\n }],\n updateStatusCheckProtection: [\"PATCH /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks\"],\n updateWebhook: [\"PATCH /repos/{owner}/{repo}/hooks/{hook_id}\"],\n updateWebhookConfigForRepo: [\"PATCH /repos/{owner}/{repo}/hooks/{hook_id}/config\"],\n uploadReleaseAsset: [\"POST /repos/{owner}/{repo}/releases/{release_id}/assets{?name,label}\", {\n baseUrl: \"https://uploads.github.com\"\n }]\n },\n search: {\n code: [\"GET /search/code\"],\n commits: [\"GET /search/commits\"],\n issuesAndPullRequests: [\"GET /search/issues\"],\n labels: [\"GET /search/labels\"],\n repos: [\"GET /search/repositories\"],\n topics: [\"GET /search/topics\"],\n users: [\"GET /search/users\"]\n },\n secretScanning: {\n getAlert: [\"GET /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}\"],\n listAlertsForEnterprise: [\"GET /enterprises/{enterprise}/secret-scanning/alerts\"],\n listAlertsForOrg: [\"GET /orgs/{org}/secret-scanning/alerts\"],\n listAlertsForRepo: [\"GET /repos/{owner}/{repo}/secret-scanning/alerts\"],\n listLocationsForAlert: [\"GET /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}/locations\"],\n updateAlert: [\"PATCH /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}\"]\n },\n teams: {\n addOrUpdateMembershipForUserInOrg: [\"PUT /orgs/{org}/teams/{team_slug}/memberships/{username}\"],\n addOrUpdateProjectPermissionsInOrg: [\"PUT /orgs/{org}/teams/{team_slug}/projects/{project_id}\"],\n addOrUpdateRepoPermissionsInOrg: [\"PUT /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}\"],\n checkPermissionsForProjectInOrg: [\"GET /orgs/{org}/teams/{team_slug}/projects/{project_id}\"],\n checkPermissionsForRepoInOrg: [\"GET /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}\"],\n create: [\"POST /orgs/{org}/teams\"],\n createDiscussionCommentInOrg: [\"POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments\"],\n createDiscussionInOrg: [\"POST /orgs/{org}/teams/{team_slug}/discussions\"],\n deleteDiscussionCommentInOrg: [\"DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}\"],\n deleteDiscussionInOrg: [\"DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}\"],\n deleteInOrg: [\"DELETE /orgs/{org}/teams/{team_slug}\"],\n getByName: [\"GET /orgs/{org}/teams/{team_slug}\"],\n getDiscussionCommentInOrg: [\"GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}\"],\n getDiscussionInOrg: [\"GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}\"],\n getMembershipForUserInOrg: [\"GET /orgs/{org}/teams/{team_slug}/memberships/{username}\"],\n list: [\"GET /orgs/{org}/teams\"],\n listChildInOrg: [\"GET /orgs/{org}/teams/{team_slug}/teams\"],\n listDiscussionCommentsInOrg: [\"GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments\"],\n listDiscussionsInOrg: [\"GET /orgs/{org}/teams/{team_slug}/discussions\"],\n listForAuthenticatedUser: [\"GET /user/teams\"],\n listMembersInOrg: [\"GET /orgs/{org}/teams/{team_slug}/members\"],\n listPendingInvitationsInOrg: [\"GET /orgs/{org}/teams/{team_slug}/invitations\"],\n listProjectsInOrg: [\"GET /orgs/{org}/teams/{team_slug}/projects\"],\n listReposInOrg: [\"GET /orgs/{org}/teams/{team_slug}/repos\"],\n removeMembershipForUserInOrg: [\"DELETE /orgs/{org}/teams/{team_slug}/memberships/{username}\"],\n removeProjectInOrg: [\"DELETE /orgs/{org}/teams/{team_slug}/projects/{project_id}\"],\n removeRepoInOrg: [\"DELETE /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}\"],\n updateDiscussionCommentInOrg: [\"PATCH /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}\"],\n updateDiscussionInOrg: [\"PATCH /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}\"],\n updateInOrg: [\"PATCH /orgs/{org}/teams/{team_slug}\"]\n },\n users: {\n addEmailForAuthenticated: [\"POST /user/emails\", {}, {\n renamed: [\"users\", \"addEmailForAuthenticatedUser\"]\n }],\n addEmailForAuthenticatedUser: [\"POST /user/emails\"],\n block: [\"PUT /user/blocks/{username}\"],\n checkBlocked: [\"GET /user/blocks/{username}\"],\n checkFollowingForUser: [\"GET /users/{username}/following/{target_user}\"],\n checkPersonIsFollowedByAuthenticated: [\"GET /user/following/{username}\"],\n createGpgKeyForAuthenticated: [\"POST /user/gpg_keys\", {}, {\n renamed: [\"users\", \"createGpgKeyForAuthenticatedUser\"]\n }],\n createGpgKeyForAuthenticatedUser: [\"POST /user/gpg_keys\"],\n createPublicSshKeyForAuthenticated: [\"POST /user/keys\", {}, {\n renamed: [\"users\", \"createPublicSshKeyForAuthenticatedUser\"]\n }],\n createPublicSshKeyForAuthenticatedUser: [\"POST /user/keys\"],\n deleteEmailForAuthenticated: [\"DELETE /user/emails\", {}, {\n renamed: [\"users\", \"deleteEmailForAuthenticatedUser\"]\n }],\n deleteEmailForAuthenticatedUser: [\"DELETE /user/emails\"],\n deleteGpgKeyForAuthenticated: [\"DELETE /user/gpg_keys/{gpg_key_id}\", {}, {\n renamed: [\"users\", \"deleteGpgKeyForAuthenticatedUser\"]\n }],\n deleteGpgKeyForAuthenticatedUser: [\"DELETE /user/gpg_keys/{gpg_key_id}\"],\n deletePublicSshKeyForAuthenticated: [\"DELETE /user/keys/{key_id}\", {}, {\n renamed: [\"users\", \"deletePublicSshKeyForAuthenticatedUser\"]\n }],\n deletePublicSshKeyForAuthenticatedUser: [\"DELETE /user/keys/{key_id}\"],\n follow: [\"PUT /user/following/{username}\"],\n getAuthenticated: [\"GET /user\"],\n getByUsername: [\"GET /users/{username}\"],\n getContextForUser: [\"GET /users/{username}/hovercard\"],\n getGpgKeyForAuthenticated: [\"GET /user/gpg_keys/{gpg_key_id}\", {}, {\n renamed: [\"users\", \"getGpgKeyForAuthenticatedUser\"]\n }],\n getGpgKeyForAuthenticatedUser: [\"GET /user/gpg_keys/{gpg_key_id}\"],\n getPublicSshKeyForAuthenticated: [\"GET /user/keys/{key_id}\", {}, {\n renamed: [\"users\", \"getPublicSshKeyForAuthenticatedUser\"]\n }],\n getPublicSshKeyForAuthenticatedUser: [\"GET /user/keys/{key_id}\"],\n list: [\"GET /users\"],\n listBlockedByAuthenticated: [\"GET /user/blocks\", {}, {\n renamed: [\"users\", \"listBlockedByAuthenticatedUser\"]\n }],\n listBlockedByAuthenticatedUser: [\"GET /user/blocks\"],\n listEmailsForAuthenticated: [\"GET /user/emails\", {}, {\n renamed: [\"users\", \"listEmailsForAuthenticatedUser\"]\n }],\n listEmailsForAuthenticatedUser: [\"GET /user/emails\"],\n listFollowedByAuthenticated: [\"GET /user/following\", {}, {\n renamed: [\"users\", \"listFollowedByAuthenticatedUser\"]\n }],\n listFollowedByAuthenticatedUser: [\"GET /user/following\"],\n listFollowersForAuthenticatedUser: [\"GET /user/followers\"],\n listFollowersForUser: [\"GET /users/{username}/followers\"],\n listFollowingForUser: [\"GET /users/{username}/following\"],\n listGpgKeysForAuthenticated: [\"GET /user/gpg_keys\", {}, {\n renamed: [\"users\", \"listGpgKeysForAuthenticatedUser\"]\n }],\n listGpgKeysForAuthenticatedUser: [\"GET /user/gpg_keys\"],\n listGpgKeysForUser: [\"GET /users/{username}/gpg_keys\"],\n listPublicEmailsForAuthenticated: [\"GET /user/public_emails\", {}, {\n renamed: [\"users\", \"listPublicEmailsForAuthenticatedUser\"]\n }],\n listPublicEmailsForAuthenticatedUser: [\"GET /user/public_emails\"],\n listPublicKeysForUser: [\"GET /users/{username}/keys\"],\n listPublicSshKeysForAuthenticated: [\"GET /user/keys\", {}, {\n renamed: [\"users\", \"listPublicSshKeysForAuthenticatedUser\"]\n }],\n listPublicSshKeysForAuthenticatedUser: [\"GET /user/keys\"],\n setPrimaryEmailVisibilityForAuthenticated: [\"PATCH /user/email/visibility\", {}, {\n renamed: [\"users\", \"setPrimaryEmailVisibilityForAuthenticatedUser\"]\n }],\n setPrimaryEmailVisibilityForAuthenticatedUser: [\"PATCH /user/email/visibility\"],\n unblock: [\"DELETE /user/blocks/{username}\"],\n unfollow: [\"DELETE /user/following/{username}\"],\n updateAuthenticated: [\"PATCH /user\"]\n }\n};\n\nconst VERSION = \"5.16.2\";\n\nfunction endpointsToMethods(octokit, endpointsMap) {\n const newMethods = {};\n\n for (const [scope, endpoints] of Object.entries(endpointsMap)) {\n for (const [methodName, endpoint] of Object.entries(endpoints)) {\n const [route, defaults, decorations] = endpoint;\n const [method, url] = route.split(/ /);\n const endpointDefaults = Object.assign({\n method,\n url\n }, defaults);\n\n if (!newMethods[scope]) {\n newMethods[scope] = {};\n }\n\n const scopeMethods = newMethods[scope];\n\n if (decorations) {\n scopeMethods[methodName] = decorate(octokit, scope, methodName, endpointDefaults, decorations);\n continue;\n }\n\n scopeMethods[methodName] = octokit.request.defaults(endpointDefaults);\n }\n }\n\n return newMethods;\n}\n\nfunction decorate(octokit, scope, methodName, defaults, decorations) {\n const requestWithDefaults = octokit.request.defaults(defaults);\n /* istanbul ignore next */\n\n function withDecorations(...args) {\n // @ts-ignore https://github.com/microsoft/TypeScript/issues/25488\n let options = requestWithDefaults.endpoint.merge(...args); // There are currently no other decorations than `.mapToData`\n\n if (decorations.mapToData) {\n options = Object.assign({}, options, {\n data: options[decorations.mapToData],\n [decorations.mapToData]: undefined\n });\n return requestWithDefaults(options);\n }\n\n if (decorations.renamed) {\n const [newScope, newMethodName] = decorations.renamed;\n octokit.log.warn(`octokit.${scope}.${methodName}() has been renamed to octokit.${newScope}.${newMethodName}()`);\n }\n\n if (decorations.deprecated) {\n octokit.log.warn(decorations.deprecated);\n }\n\n if (decorations.renamedParameters) {\n // @ts-ignore https://github.com/microsoft/TypeScript/issues/25488\n const options = requestWithDefaults.endpoint.merge(...args);\n\n for (const [name, alias] of Object.entries(decorations.renamedParameters)) {\n if (name in options) {\n octokit.log.warn(`\"${name}\" parameter is deprecated for \"octokit.${scope}.${methodName}()\". Use \"${alias}\" instead`);\n\n if (!(alias in options)) {\n options[alias] = options[name];\n }\n\n delete options[name];\n }\n }\n\n return requestWithDefaults(options);\n } // @ts-ignore https://github.com/microsoft/TypeScript/issues/25488\n\n\n return requestWithDefaults(...args);\n }\n\n return Object.assign(withDecorations, requestWithDefaults);\n}\n\nfunction restEndpointMethods(octokit) {\n const api = endpointsToMethods(octokit, Endpoints);\n return {\n rest: api\n };\n}\nrestEndpointMethods.VERSION = VERSION;\nfunction legacyRestEndpointMethods(octokit) {\n const api = endpointsToMethods(octokit, Endpoints);\n return _objectSpread2(_objectSpread2({}, api), {}, {\n rest: api\n });\n}\nlegacyRestEndpointMethods.VERSION = VERSION;\n\nexports.legacyRestEndpointMethods = legacyRestEndpointMethods;\nexports.restEndpointMethods = restEndpointMethods;\n//# sourceMappingURL=index.js.map\n","'use strict';\n\nObject.defineProperty(exports, '__esModule', { value: true });\n\nfunction _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }\n\nvar Bottleneck = _interopDefault(require('bottleneck/light'));\n\n// @ts-ignore\nasync function errorRequest(octokit, state, error, options) {\n if (!error.request || !error.request.request) {\n // address https://github.com/octokit/plugin-retry.js/issues/8\n throw error;\n } // retry all >= 400 && not doNotRetry\n\n\n if (error.status >= 400 && !state.doNotRetry.includes(error.status)) {\n const retries = options.request.retries != null ? options.request.retries : state.retries;\n const retryAfter = Math.pow((options.request.retryCount || 0) + 1, 2);\n throw octokit.retry.retryRequest(error, retries, retryAfter);\n } // Maybe eventually there will be more cases here\n\n\n throw error;\n}\n\n// @ts-ignore\n\nasync function wrapRequest(state, request, options) {\n const limiter = new Bottleneck(); // @ts-ignore\n\n limiter.on(\"failed\", function (error, info) {\n const maxRetries = ~~error.request.request.retries;\n const after = ~~error.request.request.retryAfter;\n options.request.retryCount = info.retryCount + 1;\n\n if (maxRetries > info.retryCount) {\n // Returning a number instructs the limiter to retry\n // the request after that number of milliseconds have passed\n return after * state.retryAfterBaseValue;\n }\n });\n return limiter.schedule(request, options);\n}\n\nconst VERSION = \"3.0.9\";\nfunction retry(octokit, octokitOptions) {\n const state = Object.assign({\n enabled: true,\n retryAfterBaseValue: 1000,\n doNotRetry: [400, 401, 403, 404, 422],\n retries: 3\n }, octokitOptions.retry);\n\n if (state.enabled) {\n octokit.hook.error(\"request\", errorRequest.bind(null, octokit, state));\n octokit.hook.wrap(\"request\", wrapRequest.bind(null, state));\n }\n\n return {\n retry: {\n retryRequest: (error, retries, retryAfter) => {\n error.request.request = Object.assign({}, error.request.request, {\n retries: retries,\n retryAfter: retryAfter\n });\n return error;\n }\n }\n };\n}\nretry.VERSION = VERSION;\n\nexports.VERSION = VERSION;\nexports.retry = retry;\n//# sourceMappingURL=index.js.map\n","\"use strict\";\nvar __create = Object.create;\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __getProtoOf = Object.getPrototypeOf;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n};\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(\n // If the importer is in node compatibility mode or this is not an ESM\n // file that has been converted to a CommonJS file using a Babel-\n // compatible transform (i.e. \"__esModule\" has not been set), then set\n // \"default\" to the CommonJS \"module.exports\" for node compatibility.\n isNodeMode || !mod || !mod.__esModule ? __defProp(target, \"default\", { value: mod, enumerable: true }) : target,\n mod\n));\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\n\n// pkg/dist-src/index.js\nvar dist_src_exports = {};\n__export(dist_src_exports, {\n RequestError: () => RequestError\n});\nmodule.exports = __toCommonJS(dist_src_exports);\nvar import_deprecation = require(\"deprecation\");\nvar import_once = __toESM(require(\"once\"));\nvar logOnceCode = (0, import_once.default)((deprecation) => console.warn(deprecation));\nvar logOnceHeaders = (0, import_once.default)((deprecation) => console.warn(deprecation));\nvar RequestError = class extends Error {\n constructor(message, statusCode, options) {\n super(message);\n if (Error.captureStackTrace) {\n Error.captureStackTrace(this, this.constructor);\n }\n this.name = \"HttpError\";\n this.status = statusCode;\n let headers;\n if (\"headers\" in options && typeof options.headers !== \"undefined\") {\n headers = options.headers;\n }\n if (\"response\" in options) {\n this.response = options.response;\n headers = options.response.headers;\n }\n const requestCopy = Object.assign({}, options.request);\n if (options.request.headers.authorization) {\n requestCopy.headers = Object.assign({}, options.request.headers, {\n authorization: options.request.headers.authorization.replace(\n / .*$/,\n \" [REDACTED]\"\n )\n });\n }\n requestCopy.url = requestCopy.url.replace(/\\bclient_secret=\\w+/g, \"client_secret=[REDACTED]\").replace(/\\baccess_token=\\w+/g, \"access_token=[REDACTED]\");\n this.request = requestCopy;\n Object.defineProperty(this, \"code\", {\n get() {\n logOnceCode(\n new import_deprecation.Deprecation(\n \"[@octokit/request-error] `error.code` is deprecated, use `error.status`.\"\n )\n );\n return statusCode;\n }\n });\n Object.defineProperty(this, \"headers\", {\n get() {\n logOnceHeaders(\n new import_deprecation.Deprecation(\n \"[@octokit/request-error] `error.headers` is deprecated, use `error.response.headers`.\"\n )\n );\n return headers || {};\n }\n });\n }\n};\n// Annotate the CommonJS export names for ESM import in node:\n0 && (module.exports = {\n RequestError\n});\n","'use strict';\n\nObject.defineProperty(exports, '__esModule', { value: true });\n\nfunction _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }\n\nvar endpoint = require('@octokit/endpoint');\nvar universalUserAgent = require('universal-user-agent');\nvar isPlainObject = require('is-plain-object');\nvar nodeFetch = _interopDefault(require('node-fetch'));\nvar requestError = require('@octokit/request-error');\n\nconst VERSION = \"5.6.3\";\n\nfunction getBufferResponse(response) {\n return response.arrayBuffer();\n}\n\nfunction fetchWrapper(requestOptions) {\n const log = requestOptions.request && requestOptions.request.log ? requestOptions.request.log : console;\n\n if (isPlainObject.isPlainObject(requestOptions.body) || Array.isArray(requestOptions.body)) {\n requestOptions.body = JSON.stringify(requestOptions.body);\n }\n\n let headers = {};\n let status;\n let url;\n const fetch = requestOptions.request && requestOptions.request.fetch || nodeFetch;\n return fetch(requestOptions.url, Object.assign({\n method: requestOptions.method,\n body: requestOptions.body,\n headers: requestOptions.headers,\n redirect: requestOptions.redirect\n }, // `requestOptions.request.agent` type is incompatible\n // see https://github.com/octokit/types.ts/pull/264\n requestOptions.request)).then(async response => {\n url = response.url;\n status = response.status;\n\n for (const keyAndValue of response.headers) {\n headers[keyAndValue[0]] = keyAndValue[1];\n }\n\n if (\"deprecation\" in headers) {\n const matches = headers.link && headers.link.match(/<([^>]+)>; rel=\"deprecation\"/);\n const deprecationLink = matches && matches.pop();\n log.warn(`[@octokit/request] \"${requestOptions.method} ${requestOptions.url}\" is deprecated. It is scheduled to be removed on ${headers.sunset}${deprecationLink ? `. See ${deprecationLink}` : \"\"}`);\n }\n\n if (status === 204 || status === 205) {\n return;\n } // GitHub API returns 200 for HEAD requests\n\n\n if (requestOptions.method === \"HEAD\") {\n if (status < 400) {\n return;\n }\n\n throw new requestError.RequestError(response.statusText, status, {\n response: {\n url,\n status,\n headers,\n data: undefined\n },\n request: requestOptions\n });\n }\n\n if (status === 304) {\n throw new requestError.RequestError(\"Not modified\", status, {\n response: {\n url,\n status,\n headers,\n data: await getResponseData(response)\n },\n request: requestOptions\n });\n }\n\n if (status >= 400) {\n const data = await getResponseData(response);\n const error = new requestError.RequestError(toErrorMessage(data), status, {\n response: {\n url,\n status,\n headers,\n data\n },\n request: requestOptions\n });\n throw error;\n }\n\n return getResponseData(response);\n }).then(data => {\n return {\n status,\n url,\n headers,\n data\n };\n }).catch(error => {\n if (error instanceof requestError.RequestError) throw error;\n throw new requestError.RequestError(error.message, 500, {\n request: requestOptions\n });\n });\n}\n\nasync function getResponseData(response) {\n const contentType = response.headers.get(\"content-type\");\n\n if (/application\\/json/.test(contentType)) {\n return response.json();\n }\n\n if (!contentType || /^text\\/|charset=utf-8$/.test(contentType)) {\n return response.text();\n }\n\n return getBufferResponse(response);\n}\n\nfunction toErrorMessage(data) {\n if (typeof data === \"string\") return data; // istanbul ignore else - just in case\n\n if (\"message\" in data) {\n if (Array.isArray(data.errors)) {\n return `${data.message}: ${data.errors.map(JSON.stringify).join(\", \")}`;\n }\n\n return data.message;\n } // istanbul ignore next - just in case\n\n\n return `Unknown error: ${JSON.stringify(data)}`;\n}\n\nfunction withDefaults(oldEndpoint, newDefaults) {\n const endpoint = oldEndpoint.defaults(newDefaults);\n\n const newApi = function (route, parameters) {\n const endpointOptions = endpoint.merge(route, parameters);\n\n if (!endpointOptions.request || !endpointOptions.request.hook) {\n return fetchWrapper(endpoint.parse(endpointOptions));\n }\n\n const request = (route, parameters) => {\n return fetchWrapper(endpoint.parse(endpoint.merge(route, parameters)));\n };\n\n Object.assign(request, {\n endpoint,\n defaults: withDefaults.bind(null, endpoint)\n });\n return endpointOptions.request.hook(request, endpointOptions);\n };\n\n return Object.assign(newApi, {\n endpoint,\n defaults: withDefaults.bind(null, endpoint)\n });\n}\n\nconst request = withDefaults(endpoint.endpoint, {\n headers: {\n \"user-agent\": `octokit-request.js/${VERSION} ${universalUserAgent.getUserAgent()}`\n }\n});\n\nexports.request = request;\n//# sourceMappingURL=index.js.map\n","'use strict';\n\nObject.defineProperty(exports, '__esModule', { value: true });\n\nfunction _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }\n\nvar deprecation = require('deprecation');\nvar once = _interopDefault(require('once'));\n\nconst logOnceCode = once(deprecation => console.warn(deprecation));\nconst logOnceHeaders = once(deprecation => console.warn(deprecation));\n/**\n * Error with extra properties to help with debugging\n */\n\nclass RequestError extends Error {\n constructor(message, statusCode, options) {\n super(message); // Maintains proper stack trace (only available on V8)\n\n /* istanbul ignore next */\n\n if (Error.captureStackTrace) {\n Error.captureStackTrace(this, this.constructor);\n }\n\n this.name = \"HttpError\";\n this.status = statusCode;\n let headers;\n\n if (\"headers\" in options && typeof options.headers !== \"undefined\") {\n headers = options.headers;\n }\n\n if (\"response\" in options) {\n this.response = options.response;\n headers = options.response.headers;\n } // redact request credentials without mutating original request options\n\n\n const requestCopy = Object.assign({}, options.request);\n\n if (options.request.headers.authorization) {\n requestCopy.headers = Object.assign({}, options.request.headers, {\n authorization: options.request.headers.authorization.replace(/ .*$/, \" [REDACTED]\")\n });\n }\n\n requestCopy.url = requestCopy.url // client_id & client_secret can be passed as URL query parameters to increase rate limit\n // see https://developer.github.com/v3/#increasing-the-unauthenticated-rate-limit-for-oauth-applications\n .replace(/\\bclient_secret=\\w+/g, \"client_secret=[REDACTED]\") // OAuth tokens can be passed as URL query parameters, although it is not recommended\n // see https://developer.github.com/v3/#oauth2-token-sent-in-a-header\n .replace(/\\baccess_token=\\w+/g, \"access_token=[REDACTED]\");\n this.request = requestCopy; // deprecations\n\n Object.defineProperty(this, \"code\", {\n get() {\n logOnceCode(new deprecation.Deprecation(\"[@octokit/request-error] `error.code` is deprecated, use `error.status`.\"));\n return statusCode;\n }\n\n });\n Object.defineProperty(this, \"headers\", {\n get() {\n logOnceHeaders(new deprecation.Deprecation(\"[@octokit/request-error] `error.headers` is deprecated, use `error.response.headers`.\"));\n return headers || {};\n }\n\n });\n }\n\n}\n\nexports.RequestError = RequestError;\n//# sourceMappingURL=index.js.map\n","\"use strict\";\n/*\n * Copyright The OpenTelemetry Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.ContextAPI = void 0;\nconst NoopContextManager_1 = require(\"../context/NoopContextManager\");\nconst global_utils_1 = require(\"../internal/global-utils\");\nconst diag_1 = require(\"./diag\");\nconst API_NAME = 'context';\nconst NOOP_CONTEXT_MANAGER = new NoopContextManager_1.NoopContextManager();\n/**\n * Singleton object which represents the entry point to the OpenTelemetry Context API\n */\nclass ContextAPI {\n /** Empty private constructor prevents end users from constructing a new instance of the API */\n constructor() { }\n /** Get the singleton instance of the Context API */\n static getInstance() {\n if (!this._instance) {\n this._instance = new ContextAPI();\n }\n return this._instance;\n }\n /**\n * Set the current context manager.\n *\n * @returns true if the context manager was successfully registered, else false\n */\n setGlobalContextManager(contextManager) {\n return (0, global_utils_1.registerGlobal)(API_NAME, contextManager, diag_1.DiagAPI.instance());\n }\n /**\n * Get the currently active context\n */\n active() {\n return this._getContextManager().active();\n }\n /**\n * Execute a function with an active context\n *\n * @param context context to be active during function execution\n * @param fn function to execute in a context\n * @param thisArg optional receiver to be used for calling fn\n * @param args optional arguments forwarded to fn\n */\n with(context, fn, thisArg, ...args) {\n return this._getContextManager().with(context, fn, thisArg, ...args);\n }\n /**\n * Bind a context to a target function or event emitter\n *\n * @param context context to bind to the event emitter or function. Defaults to the currently active context\n * @param target function or event emitter to bind\n */\n bind(context, target) {\n return this._getContextManager().bind(context, target);\n }\n _getContextManager() {\n return (0, global_utils_1.getGlobal)(API_NAME) || NOOP_CONTEXT_MANAGER;\n }\n /** Disable and remove the global context manager */\n disable() {\n this._getContextManager().disable();\n (0, global_utils_1.unregisterGlobal)(API_NAME, diag_1.DiagAPI.instance());\n }\n}\nexports.ContextAPI = ContextAPI;\n//# sourceMappingURL=context.js.map","\"use strict\";\n/*\n * Copyright The OpenTelemetry Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.DiagAPI = void 0;\nconst ComponentLogger_1 = require(\"../diag/ComponentLogger\");\nconst logLevelLogger_1 = require(\"../diag/internal/logLevelLogger\");\nconst types_1 = require(\"../diag/types\");\nconst global_utils_1 = require(\"../internal/global-utils\");\nconst API_NAME = 'diag';\n/**\n * Singleton object which represents the entry point to the OpenTelemetry internal\n * diagnostic API\n */\nclass DiagAPI {\n /**\n * Private internal constructor\n * @private\n */\n constructor() {\n function _logProxy(funcName) {\n return function (...args) {\n const logger = (0, global_utils_1.getGlobal)('diag');\n // shortcut if logger not set\n if (!logger)\n return;\n return logger[funcName](...args);\n };\n }\n // Using self local variable for minification purposes as 'this' cannot be minified\n const self = this;\n // DiagAPI specific functions\n const setLogger = (logger, optionsOrLogLevel = { logLevel: types_1.DiagLogLevel.INFO }) => {\n var _a, _b, _c;\n if (logger === self) {\n // There isn't much we can do here.\n // Logging to the console might break the user application.\n // Try to log to self. If a logger was previously registered it will receive the log.\n const err = new Error('Cannot use diag as the logger for itself. Please use a DiagLogger implementation like ConsoleDiagLogger or a custom implementation');\n self.error((_a = err.stack) !== null && _a !== void 0 ? _a : err.message);\n return false;\n }\n if (typeof optionsOrLogLevel === 'number') {\n optionsOrLogLevel = {\n logLevel: optionsOrLogLevel,\n };\n }\n const oldLogger = (0, global_utils_1.getGlobal)('diag');\n const newLogger = (0, logLevelLogger_1.createLogLevelDiagLogger)((_b = optionsOrLogLevel.logLevel) !== null && _b !== void 0 ? _b : types_1.DiagLogLevel.INFO, logger);\n // There already is an logger registered. We'll let it know before overwriting it.\n if (oldLogger && !optionsOrLogLevel.suppressOverrideMessage) {\n const stack = (_c = new Error().stack) !== null && _c !== void 0 ? _c : '';\n oldLogger.warn(`Current logger will be overwritten from ${stack}`);\n newLogger.warn(`Current logger will overwrite one already registered from ${stack}`);\n }\n return (0, global_utils_1.registerGlobal)('diag', newLogger, self, true);\n };\n self.setLogger = setLogger;\n self.disable = () => {\n (0, global_utils_1.unregisterGlobal)(API_NAME, self);\n };\n self.createComponentLogger = (options) => {\n return new ComponentLogger_1.DiagComponentLogger(options);\n };\n self.verbose = _logProxy('verbose');\n self.debug = _logProxy('debug');\n self.info = _logProxy('info');\n self.warn = _logProxy('warn');\n self.error = _logProxy('error');\n }\n /** Get the singleton instance of the DiagAPI API */\n static instance() {\n if (!this._instance) {\n this._instance = new DiagAPI();\n }\n return this._instance;\n }\n}\nexports.DiagAPI = DiagAPI;\n//# sourceMappingURL=diag.js.map","\"use strict\";\n/*\n * Copyright The OpenTelemetry Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.MetricsAPI = void 0;\nconst NoopMeterProvider_1 = require(\"../metrics/NoopMeterProvider\");\nconst global_utils_1 = require(\"../internal/global-utils\");\nconst diag_1 = require(\"./diag\");\nconst API_NAME = 'metrics';\n/**\n * Singleton object which represents the entry point to the OpenTelemetry Metrics API\n */\nclass MetricsAPI {\n /** Empty private constructor prevents end users from constructing a new instance of the API */\n constructor() { }\n /** Get the singleton instance of the Metrics API */\n static getInstance() {\n if (!this._instance) {\n this._instance = new MetricsAPI();\n }\n return this._instance;\n }\n /**\n * Set the current global meter provider.\n * Returns true if the meter provider was successfully registered, else false.\n */\n setGlobalMeterProvider(provider) {\n return (0, global_utils_1.registerGlobal)(API_NAME, provider, diag_1.DiagAPI.instance());\n }\n /**\n * Returns the global meter provider.\n */\n getMeterProvider() {\n return (0, global_utils_1.getGlobal)(API_NAME) || NoopMeterProvider_1.NOOP_METER_PROVIDER;\n }\n /**\n * Returns a meter from the global meter provider.\n */\n getMeter(name, version, options) {\n return this.getMeterProvider().getMeter(name, version, options);\n }\n /** Remove the global meter provider */\n disable() {\n (0, global_utils_1.unregisterGlobal)(API_NAME, diag_1.DiagAPI.instance());\n }\n}\nexports.MetricsAPI = MetricsAPI;\n//# sourceMappingURL=metrics.js.map","\"use strict\";\n/*\n * Copyright The OpenTelemetry Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.PropagationAPI = void 0;\nconst global_utils_1 = require(\"../internal/global-utils\");\nconst NoopTextMapPropagator_1 = require(\"../propagation/NoopTextMapPropagator\");\nconst TextMapPropagator_1 = require(\"../propagation/TextMapPropagator\");\nconst context_helpers_1 = require(\"../baggage/context-helpers\");\nconst utils_1 = require(\"../baggage/utils\");\nconst diag_1 = require(\"./diag\");\nconst API_NAME = 'propagation';\nconst NOOP_TEXT_MAP_PROPAGATOR = new NoopTextMapPropagator_1.NoopTextMapPropagator();\n/**\n * Singleton object which represents the entry point to the OpenTelemetry Propagation API\n */\nclass PropagationAPI {\n /** Empty private constructor prevents end users from constructing a new instance of the API */\n constructor() {\n this.createBaggage = utils_1.createBaggage;\n this.getBaggage = context_helpers_1.getBaggage;\n this.getActiveBaggage = context_helpers_1.getActiveBaggage;\n this.setBaggage = context_helpers_1.setBaggage;\n this.deleteBaggage = context_helpers_1.deleteBaggage;\n }\n /** Get the singleton instance of the Propagator API */\n static getInstance() {\n if (!this._instance) {\n this._instance = new PropagationAPI();\n }\n return this._instance;\n }\n /**\n * Set the current propagator.\n *\n * @returns true if the propagator was successfully registered, else false\n */\n setGlobalPropagator(propagator) {\n return (0, global_utils_1.registerGlobal)(API_NAME, propagator, diag_1.DiagAPI.instance());\n }\n /**\n * Inject context into a carrier to be propagated inter-process\n *\n * @param context Context carrying tracing data to inject\n * @param carrier carrier to inject context into\n * @param setter Function used to set values on the carrier\n */\n inject(context, carrier, setter = TextMapPropagator_1.defaultTextMapSetter) {\n return this._getGlobalPropagator().inject(context, carrier, setter);\n }\n /**\n * Extract context from a carrier\n *\n * @param context Context which the newly created context will inherit from\n * @param carrier Carrier to extract context from\n * @param getter Function used to extract keys from a carrier\n */\n extract(context, carrier, getter = TextMapPropagator_1.defaultTextMapGetter) {\n return this._getGlobalPropagator().extract(context, carrier, getter);\n }\n /**\n * Return a list of all fields which may be used by the propagator.\n */\n fields() {\n return this._getGlobalPropagator().fields();\n }\n /** Remove the global propagator */\n disable() {\n (0, global_utils_1.unregisterGlobal)(API_NAME, diag_1.DiagAPI.instance());\n }\n _getGlobalPropagator() {\n return (0, global_utils_1.getGlobal)(API_NAME) || NOOP_TEXT_MAP_PROPAGATOR;\n }\n}\nexports.PropagationAPI = PropagationAPI;\n//# sourceMappingURL=propagation.js.map","\"use strict\";\n/*\n * Copyright The OpenTelemetry Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.TraceAPI = void 0;\nconst global_utils_1 = require(\"../internal/global-utils\");\nconst ProxyTracerProvider_1 = require(\"../trace/ProxyTracerProvider\");\nconst spancontext_utils_1 = require(\"../trace/spancontext-utils\");\nconst context_utils_1 = require(\"../trace/context-utils\");\nconst diag_1 = require(\"./diag\");\nconst API_NAME = 'trace';\n/**\n * Singleton object which represents the entry point to the OpenTelemetry Tracing API\n */\nclass TraceAPI {\n /** Empty private constructor prevents end users from constructing a new instance of the API */\n constructor() {\n this._proxyTracerProvider = new ProxyTracerProvider_1.ProxyTracerProvider();\n this.wrapSpanContext = spancontext_utils_1.wrapSpanContext;\n this.isSpanContextValid = spancontext_utils_1.isSpanContextValid;\n this.deleteSpan = context_utils_1.deleteSpan;\n this.getSpan = context_utils_1.getSpan;\n this.getActiveSpan = context_utils_1.getActiveSpan;\n this.getSpanContext = context_utils_1.getSpanContext;\n this.setSpan = context_utils_1.setSpan;\n this.setSpanContext = context_utils_1.setSpanContext;\n }\n /** Get the singleton instance of the Trace API */\n static getInstance() {\n if (!this._instance) {\n this._instance = new TraceAPI();\n }\n return this._instance;\n }\n /**\n * Set the current global tracer.\n *\n * @returns true if the tracer provider was successfully registered, else false\n */\n setGlobalTracerProvider(provider) {\n const success = (0, global_utils_1.registerGlobal)(API_NAME, this._proxyTracerProvider, diag_1.DiagAPI.instance());\n if (success) {\n this._proxyTracerProvider.setDelegate(provider);\n }\n return success;\n }\n /**\n * Returns the global tracer provider.\n */\n getTracerProvider() {\n return (0, global_utils_1.getGlobal)(API_NAME) || this._proxyTracerProvider;\n }\n /**\n * Returns a tracer from the global tracer provider.\n */\n getTracer(name, version) {\n return this.getTracerProvider().getTracer(name, version);\n }\n /** Remove the global tracer provider */\n disable() {\n (0, global_utils_1.unregisterGlobal)(API_NAME, diag_1.DiagAPI.instance());\n this._proxyTracerProvider = new ProxyTracerProvider_1.ProxyTracerProvider();\n }\n}\nexports.TraceAPI = TraceAPI;\n//# sourceMappingURL=trace.js.map","\"use strict\";\n/*\n * Copyright The OpenTelemetry Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.deleteBaggage = exports.setBaggage = exports.getActiveBaggage = exports.getBaggage = void 0;\nconst context_1 = require(\"../api/context\");\nconst context_2 = require(\"../context/context\");\n/**\n * Baggage key\n */\nconst BAGGAGE_KEY = (0, context_2.createContextKey)('OpenTelemetry Baggage Key');\n/**\n * Retrieve the current baggage from the given context\n *\n * @param {Context} Context that manage all context values\n * @returns {Baggage} Extracted baggage from the context\n */\nfunction getBaggage(context) {\n return context.getValue(BAGGAGE_KEY) || undefined;\n}\nexports.getBaggage = getBaggage;\n/**\n * Retrieve the current baggage from the active/current context\n *\n * @returns {Baggage} Extracted baggage from the context\n */\nfunction getActiveBaggage() {\n return getBaggage(context_1.ContextAPI.getInstance().active());\n}\nexports.getActiveBaggage = getActiveBaggage;\n/**\n * Store a baggage in the given context\n *\n * @param {Context} Context that manage all context values\n * @param {Baggage} baggage that will be set in the actual context\n */\nfunction setBaggage(context, baggage) {\n return context.setValue(BAGGAGE_KEY, baggage);\n}\nexports.setBaggage = setBaggage;\n/**\n * Delete the baggage stored in the given context\n *\n * @param {Context} Context that manage all context values\n */\nfunction deleteBaggage(context) {\n return context.deleteValue(BAGGAGE_KEY);\n}\nexports.deleteBaggage = deleteBaggage;\n//# sourceMappingURL=context-helpers.js.map","\"use strict\";\n/*\n * Copyright The OpenTelemetry Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.BaggageImpl = void 0;\nclass BaggageImpl {\n constructor(entries) {\n this._entries = entries ? new Map(entries) : new Map();\n }\n getEntry(key) {\n const entry = this._entries.get(key);\n if (!entry) {\n return undefined;\n }\n return Object.assign({}, entry);\n }\n getAllEntries() {\n return Array.from(this._entries.entries()).map(([k, v]) => [k, v]);\n }\n setEntry(key, entry) {\n const newBaggage = new BaggageImpl(this._entries);\n newBaggage._entries.set(key, entry);\n return newBaggage;\n }\n removeEntry(key) {\n const newBaggage = new BaggageImpl(this._entries);\n newBaggage._entries.delete(key);\n return newBaggage;\n }\n removeEntries(...keys) {\n const newBaggage = new BaggageImpl(this._entries);\n for (const key of keys) {\n newBaggage._entries.delete(key);\n }\n return newBaggage;\n }\n clear() {\n return new BaggageImpl();\n }\n}\nexports.BaggageImpl = BaggageImpl;\n//# sourceMappingURL=baggage-impl.js.map","\"use strict\";\n/*\n * Copyright The OpenTelemetry Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.baggageEntryMetadataSymbol = void 0;\n/**\n * Symbol used to make BaggageEntryMetadata an opaque type\n */\nexports.baggageEntryMetadataSymbol = Symbol('BaggageEntryMetadata');\n//# sourceMappingURL=symbol.js.map","\"use strict\";\n/*\n * Copyright The OpenTelemetry Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.baggageEntryMetadataFromString = exports.createBaggage = void 0;\nconst diag_1 = require(\"../api/diag\");\nconst baggage_impl_1 = require(\"./internal/baggage-impl\");\nconst symbol_1 = require(\"./internal/symbol\");\nconst diag = diag_1.DiagAPI.instance();\n/**\n * Create a new Baggage with optional entries\n *\n * @param entries An array of baggage entries the new baggage should contain\n */\nfunction createBaggage(entries = {}) {\n return new baggage_impl_1.BaggageImpl(new Map(Object.entries(entries)));\n}\nexports.createBaggage = createBaggage;\n/**\n * Create a serializable BaggageEntryMetadata object from a string.\n *\n * @param str string metadata. Format is currently not defined by the spec and has no special meaning.\n *\n */\nfunction baggageEntryMetadataFromString(str) {\n if (typeof str !== 'string') {\n diag.error(`Cannot create baggage metadata from unknown type: ${typeof str}`);\n str = '';\n }\n return {\n __TYPE__: symbol_1.baggageEntryMetadataSymbol,\n toString() {\n return str;\n },\n };\n}\nexports.baggageEntryMetadataFromString = baggageEntryMetadataFromString;\n//# sourceMappingURL=utils.js.map","\"use strict\";\n/*\n * Copyright The OpenTelemetry Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.context = void 0;\n// Split module-level variable definition into separate files to allow\n// tree-shaking on each api instance.\nconst context_1 = require(\"./api/context\");\n/** Entrypoint for context API */\nexports.context = context_1.ContextAPI.getInstance();\n//# sourceMappingURL=context-api.js.map","\"use strict\";\n/*\n * Copyright The OpenTelemetry Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.NoopContextManager = void 0;\nconst context_1 = require(\"./context\");\nclass NoopContextManager {\n active() {\n return context_1.ROOT_CONTEXT;\n }\n with(_context, fn, thisArg, ...args) {\n return fn.call(thisArg, ...args);\n }\n bind(_context, target) {\n return target;\n }\n enable() {\n return this;\n }\n disable() {\n return this;\n }\n}\nexports.NoopContextManager = NoopContextManager;\n//# sourceMappingURL=NoopContextManager.js.map","\"use strict\";\n/*\n * Copyright The OpenTelemetry Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.ROOT_CONTEXT = exports.createContextKey = void 0;\n/** Get a key to uniquely identify a context value */\nfunction createContextKey(description) {\n // The specification states that for the same input, multiple calls should\n // return different keys. Due to the nature of the JS dependency management\n // system, this creates problems where multiple versions of some package\n // could hold different keys for the same property.\n //\n // Therefore, we use Symbol.for which returns the same key for the same input.\n return Symbol.for(description);\n}\nexports.createContextKey = createContextKey;\nclass BaseContext {\n /**\n * Construct a new context which inherits values from an optional parent context.\n *\n * @param parentContext a context from which to inherit values\n */\n constructor(parentContext) {\n // for minification\n const self = this;\n self._currentContext = parentContext ? new Map(parentContext) : new Map();\n self.getValue = (key) => self._currentContext.get(key);\n self.setValue = (key, value) => {\n const context = new BaseContext(self._currentContext);\n context._currentContext.set(key, value);\n return context;\n };\n self.deleteValue = (key) => {\n const context = new BaseContext(self._currentContext);\n context._currentContext.delete(key);\n return context;\n };\n }\n}\n/** The root context is used as the default parent context when there is no active context */\nexports.ROOT_CONTEXT = new BaseContext();\n//# sourceMappingURL=context.js.map","\"use strict\";\n/*\n * Copyright The OpenTelemetry Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.diag = void 0;\n// Split module-level variable definition into separate files to allow\n// tree-shaking on each api instance.\nconst diag_1 = require(\"./api/diag\");\n/**\n * Entrypoint for Diag API.\n * Defines Diagnostic handler used for internal diagnostic logging operations.\n * The default provides a Noop DiagLogger implementation which may be changed via the\n * diag.setLogger(logger: DiagLogger) function.\n */\nexports.diag = diag_1.DiagAPI.instance();\n//# sourceMappingURL=diag-api.js.map","\"use strict\";\n/*\n * Copyright The OpenTelemetry Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.DiagComponentLogger = void 0;\nconst global_utils_1 = require(\"../internal/global-utils\");\n/**\n * Component Logger which is meant to be used as part of any component which\n * will add automatically additional namespace in front of the log message.\n * It will then forward all message to global diag logger\n * @example\n * const cLogger = diag.createComponentLogger({ namespace: '@opentelemetry/instrumentation-http' });\n * cLogger.debug('test');\n * // @opentelemetry/instrumentation-http test\n */\nclass DiagComponentLogger {\n constructor(props) {\n this._namespace = props.namespace || 'DiagComponentLogger';\n }\n debug(...args) {\n return logProxy('debug', this._namespace, args);\n }\n error(...args) {\n return logProxy('error', this._namespace, args);\n }\n info(...args) {\n return logProxy('info', this._namespace, args);\n }\n warn(...args) {\n return logProxy('warn', this._namespace, args);\n }\n verbose(...args) {\n return logProxy('verbose', this._namespace, args);\n }\n}\nexports.DiagComponentLogger = DiagComponentLogger;\nfunction logProxy(funcName, namespace, args) {\n const logger = (0, global_utils_1.getGlobal)('diag');\n // shortcut if logger not set\n if (!logger) {\n return;\n }\n args.unshift(namespace);\n return logger[funcName](...args);\n}\n//# sourceMappingURL=ComponentLogger.js.map","\"use strict\";\n/*\n * Copyright The OpenTelemetry Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.DiagConsoleLogger = void 0;\nconst consoleMap = [\n { n: 'error', c: 'error' },\n { n: 'warn', c: 'warn' },\n { n: 'info', c: 'info' },\n { n: 'debug', c: 'debug' },\n { n: 'verbose', c: 'trace' },\n];\n/**\n * A simple Immutable Console based diagnostic logger which will output any messages to the Console.\n * If you want to limit the amount of logging to a specific level or lower use the\n * {@link createLogLevelDiagLogger}\n */\nclass DiagConsoleLogger {\n constructor() {\n function _consoleFunc(funcName) {\n return function (...args) {\n if (console) {\n // Some environments only expose the console when the F12 developer console is open\n // eslint-disable-next-line no-console\n let theFunc = console[funcName];\n if (typeof theFunc !== 'function') {\n // Not all environments support all functions\n // eslint-disable-next-line no-console\n theFunc = console.log;\n }\n // One last final check\n if (typeof theFunc === 'function') {\n return theFunc.apply(console, args);\n }\n }\n };\n }\n for (let i = 0; i < consoleMap.length; i++) {\n this[consoleMap[i].n] = _consoleFunc(consoleMap[i].c);\n }\n }\n}\nexports.DiagConsoleLogger = DiagConsoleLogger;\n//# sourceMappingURL=consoleLogger.js.map","\"use strict\";\n/*\n * Copyright The OpenTelemetry Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.createLogLevelDiagLogger = void 0;\nconst types_1 = require(\"../types\");\nfunction createLogLevelDiagLogger(maxLevel, logger) {\n if (maxLevel < types_1.DiagLogLevel.NONE) {\n maxLevel = types_1.DiagLogLevel.NONE;\n }\n else if (maxLevel > types_1.DiagLogLevel.ALL) {\n maxLevel = types_1.DiagLogLevel.ALL;\n }\n // In case the logger is null or undefined\n logger = logger || {};\n function _filterFunc(funcName, theLevel) {\n const theFunc = logger[funcName];\n if (typeof theFunc === 'function' && maxLevel >= theLevel) {\n return theFunc.bind(logger);\n }\n return function () { };\n }\n return {\n error: _filterFunc('error', types_1.DiagLogLevel.ERROR),\n warn: _filterFunc('warn', types_1.DiagLogLevel.WARN),\n info: _filterFunc('info', types_1.DiagLogLevel.INFO),\n debug: _filterFunc('debug', types_1.DiagLogLevel.DEBUG),\n verbose: _filterFunc('verbose', types_1.DiagLogLevel.VERBOSE),\n };\n}\nexports.createLogLevelDiagLogger = createLogLevelDiagLogger;\n//# sourceMappingURL=logLevelLogger.js.map","\"use strict\";\n/*\n * Copyright The OpenTelemetry Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.DiagLogLevel = void 0;\n/**\n * Defines the available internal logging levels for the diagnostic logger, the numeric values\n * of the levels are defined to match the original values from the initial LogLevel to avoid\n * compatibility/migration issues for any implementation that assume the numeric ordering.\n */\nvar DiagLogLevel;\n(function (DiagLogLevel) {\n /** Diagnostic Logging level setting to disable all logging (except and forced logs) */\n DiagLogLevel[DiagLogLevel[\"NONE\"] = 0] = \"NONE\";\n /** Identifies an error scenario */\n DiagLogLevel[DiagLogLevel[\"ERROR\"] = 30] = \"ERROR\";\n /** Identifies a warning scenario */\n DiagLogLevel[DiagLogLevel[\"WARN\"] = 50] = \"WARN\";\n /** General informational log message */\n DiagLogLevel[DiagLogLevel[\"INFO\"] = 60] = \"INFO\";\n /** General debug log message */\n DiagLogLevel[DiagLogLevel[\"DEBUG\"] = 70] = \"DEBUG\";\n /**\n * Detailed trace level logging should only be used for development, should only be set\n * in a development environment.\n */\n DiagLogLevel[DiagLogLevel[\"VERBOSE\"] = 80] = \"VERBOSE\";\n /** Used to set the logging level to include all logging */\n DiagLogLevel[DiagLogLevel[\"ALL\"] = 9999] = \"ALL\";\n})(DiagLogLevel = exports.DiagLogLevel || (exports.DiagLogLevel = {}));\n//# sourceMappingURL=types.js.map","\"use strict\";\n/*\n * Copyright The OpenTelemetry Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.trace = exports.propagation = exports.metrics = exports.diag = exports.context = exports.INVALID_SPAN_CONTEXT = exports.INVALID_TRACEID = exports.INVALID_SPANID = exports.isValidSpanId = exports.isValidTraceId = exports.isSpanContextValid = exports.createTraceState = exports.TraceFlags = exports.SpanStatusCode = exports.SpanKind = exports.SamplingDecision = exports.ProxyTracerProvider = exports.ProxyTracer = exports.defaultTextMapSetter = exports.defaultTextMapGetter = exports.ValueType = exports.createNoopMeter = exports.DiagLogLevel = exports.DiagConsoleLogger = exports.ROOT_CONTEXT = exports.createContextKey = exports.baggageEntryMetadataFromString = void 0;\nvar utils_1 = require(\"./baggage/utils\");\nObject.defineProperty(exports, \"baggageEntryMetadataFromString\", { enumerable: true, get: function () { return utils_1.baggageEntryMetadataFromString; } });\n// Context APIs\nvar context_1 = require(\"./context/context\");\nObject.defineProperty(exports, \"createContextKey\", { enumerable: true, get: function () { return context_1.createContextKey; } });\nObject.defineProperty(exports, \"ROOT_CONTEXT\", { enumerable: true, get: function () { return context_1.ROOT_CONTEXT; } });\n// Diag APIs\nvar consoleLogger_1 = require(\"./diag/consoleLogger\");\nObject.defineProperty(exports, \"DiagConsoleLogger\", { enumerable: true, get: function () { return consoleLogger_1.DiagConsoleLogger; } });\nvar types_1 = require(\"./diag/types\");\nObject.defineProperty(exports, \"DiagLogLevel\", { enumerable: true, get: function () { return types_1.DiagLogLevel; } });\n// Metrics APIs\nvar NoopMeter_1 = require(\"./metrics/NoopMeter\");\nObject.defineProperty(exports, \"createNoopMeter\", { enumerable: true, get: function () { return NoopMeter_1.createNoopMeter; } });\nvar Metric_1 = require(\"./metrics/Metric\");\nObject.defineProperty(exports, \"ValueType\", { enumerable: true, get: function () { return Metric_1.ValueType; } });\n// Propagation APIs\nvar TextMapPropagator_1 = require(\"./propagation/TextMapPropagator\");\nObject.defineProperty(exports, \"defaultTextMapGetter\", { enumerable: true, get: function () { return TextMapPropagator_1.defaultTextMapGetter; } });\nObject.defineProperty(exports, \"defaultTextMapSetter\", { enumerable: true, get: function () { return TextMapPropagator_1.defaultTextMapSetter; } });\nvar ProxyTracer_1 = require(\"./trace/ProxyTracer\");\nObject.defineProperty(exports, \"ProxyTracer\", { enumerable: true, get: function () { return ProxyTracer_1.ProxyTracer; } });\nvar ProxyTracerProvider_1 = require(\"./trace/ProxyTracerProvider\");\nObject.defineProperty(exports, \"ProxyTracerProvider\", { enumerable: true, get: function () { return ProxyTracerProvider_1.ProxyTracerProvider; } });\nvar SamplingResult_1 = require(\"./trace/SamplingResult\");\nObject.defineProperty(exports, \"SamplingDecision\", { enumerable: true, get: function () { return SamplingResult_1.SamplingDecision; } });\nvar span_kind_1 = require(\"./trace/span_kind\");\nObject.defineProperty(exports, \"SpanKind\", { enumerable: true, get: function () { return span_kind_1.SpanKind; } });\nvar status_1 = require(\"./trace/status\");\nObject.defineProperty(exports, \"SpanStatusCode\", { enumerable: true, get: function () { return status_1.SpanStatusCode; } });\nvar trace_flags_1 = require(\"./trace/trace_flags\");\nObject.defineProperty(exports, \"TraceFlags\", { enumerable: true, get: function () { return trace_flags_1.TraceFlags; } });\nvar utils_2 = require(\"./trace/internal/utils\");\nObject.defineProperty(exports, \"createTraceState\", { enumerable: true, get: function () { return utils_2.createTraceState; } });\nvar spancontext_utils_1 = require(\"./trace/spancontext-utils\");\nObject.defineProperty(exports, \"isSpanContextValid\", { enumerable: true, get: function () { return spancontext_utils_1.isSpanContextValid; } });\nObject.defineProperty(exports, \"isValidTraceId\", { enumerable: true, get: function () { return spancontext_utils_1.isValidTraceId; } });\nObject.defineProperty(exports, \"isValidSpanId\", { enumerable: true, get: function () { return spancontext_utils_1.isValidSpanId; } });\nvar invalid_span_constants_1 = require(\"./trace/invalid-span-constants\");\nObject.defineProperty(exports, \"INVALID_SPANID\", { enumerable: true, get: function () { return invalid_span_constants_1.INVALID_SPANID; } });\nObject.defineProperty(exports, \"INVALID_TRACEID\", { enumerable: true, get: function () { return invalid_span_constants_1.INVALID_TRACEID; } });\nObject.defineProperty(exports, \"INVALID_SPAN_CONTEXT\", { enumerable: true, get: function () { return invalid_span_constants_1.INVALID_SPAN_CONTEXT; } });\n// Split module-level variable definition into separate files to allow\n// tree-shaking on each api instance.\nconst context_api_1 = require(\"./context-api\");\nObject.defineProperty(exports, \"context\", { enumerable: true, get: function () { return context_api_1.context; } });\nconst diag_api_1 = require(\"./diag-api\");\nObject.defineProperty(exports, \"diag\", { enumerable: true, get: function () { return diag_api_1.diag; } });\nconst metrics_api_1 = require(\"./metrics-api\");\nObject.defineProperty(exports, \"metrics\", { enumerable: true, get: function () { return metrics_api_1.metrics; } });\nconst propagation_api_1 = require(\"./propagation-api\");\nObject.defineProperty(exports, \"propagation\", { enumerable: true, get: function () { return propagation_api_1.propagation; } });\nconst trace_api_1 = require(\"./trace-api\");\nObject.defineProperty(exports, \"trace\", { enumerable: true, get: function () { return trace_api_1.trace; } });\n// Default export.\nexports.default = {\n context: context_api_1.context,\n diag: diag_api_1.diag,\n metrics: metrics_api_1.metrics,\n propagation: propagation_api_1.propagation,\n trace: trace_api_1.trace,\n};\n//# sourceMappingURL=index.js.map","\"use strict\";\n/*\n * Copyright The OpenTelemetry Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.unregisterGlobal = exports.getGlobal = exports.registerGlobal = void 0;\nconst platform_1 = require(\"../platform\");\nconst version_1 = require(\"../version\");\nconst semver_1 = require(\"./semver\");\nconst major = version_1.VERSION.split('.')[0];\nconst GLOBAL_OPENTELEMETRY_API_KEY = Symbol.for(`opentelemetry.js.api.${major}`);\nconst _global = platform_1._globalThis;\nfunction registerGlobal(type, instance, diag, allowOverride = false) {\n var _a;\n const api = (_global[GLOBAL_OPENTELEMETRY_API_KEY] = (_a = _global[GLOBAL_OPENTELEMETRY_API_KEY]) !== null && _a !== void 0 ? _a : {\n version: version_1.VERSION,\n });\n if (!allowOverride && api[type]) {\n // already registered an API of this type\n const err = new Error(`@opentelemetry/api: Attempted duplicate registration of API: ${type}`);\n diag.error(err.stack || err.message);\n return false;\n }\n if (api.version !== version_1.VERSION) {\n // All registered APIs must be of the same version exactly\n const err = new Error(`@opentelemetry/api: Registration of version v${api.version} for ${type} does not match previously registered API v${version_1.VERSION}`);\n diag.error(err.stack || err.message);\n return false;\n }\n api[type] = instance;\n diag.debug(`@opentelemetry/api: Registered a global for ${type} v${version_1.VERSION}.`);\n return true;\n}\nexports.registerGlobal = registerGlobal;\nfunction getGlobal(type) {\n var _a, _b;\n const globalVersion = (_a = _global[GLOBAL_OPENTELEMETRY_API_KEY]) === null || _a === void 0 ? void 0 : _a.version;\n if (!globalVersion || !(0, semver_1.isCompatible)(globalVersion)) {\n return;\n }\n return (_b = _global[GLOBAL_OPENTELEMETRY_API_KEY]) === null || _b === void 0 ? void 0 : _b[type];\n}\nexports.getGlobal = getGlobal;\nfunction unregisterGlobal(type, diag) {\n diag.debug(`@opentelemetry/api: Unregistering a global for ${type} v${version_1.VERSION}.`);\n const api = _global[GLOBAL_OPENTELEMETRY_API_KEY];\n if (api) {\n delete api[type];\n }\n}\nexports.unregisterGlobal = unregisterGlobal;\n//# sourceMappingURL=global-utils.js.map","\"use strict\";\n/*\n * Copyright The OpenTelemetry Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.isCompatible = exports._makeCompatibilityCheck = void 0;\nconst version_1 = require(\"../version\");\nconst re = /^(\\d+)\\.(\\d+)\\.(\\d+)(-(.+))?$/;\n/**\n * Create a function to test an API version to see if it is compatible with the provided ownVersion.\n *\n * The returned function has the following semantics:\n * - Exact match is always compatible\n * - Major versions must match exactly\n * - 1.x package cannot use global 2.x package\n * - 2.x package cannot use global 1.x package\n * - The minor version of the API module requesting access to the global API must be less than or equal to the minor version of this API\n * - 1.3 package may use 1.4 global because the later global contains all functions 1.3 expects\n * - 1.4 package may NOT use 1.3 global because it may try to call functions which don't exist on 1.3\n * - If the major version is 0, the minor version is treated as the major and the patch is treated as the minor\n * - Patch and build tag differences are not considered at this time\n *\n * @param ownVersion version which should be checked against\n */\nfunction _makeCompatibilityCheck(ownVersion) {\n const acceptedVersions = new Set([ownVersion]);\n const rejectedVersions = new Set();\n const myVersionMatch = ownVersion.match(re);\n if (!myVersionMatch) {\n // we cannot guarantee compatibility so we always return noop\n return () => false;\n }\n const ownVersionParsed = {\n major: +myVersionMatch[1],\n minor: +myVersionMatch[2],\n patch: +myVersionMatch[3],\n prerelease: myVersionMatch[4],\n };\n // if ownVersion has a prerelease tag, versions must match exactly\n if (ownVersionParsed.prerelease != null) {\n return function isExactmatch(globalVersion) {\n return globalVersion === ownVersion;\n };\n }\n function _reject(v) {\n rejectedVersions.add(v);\n return false;\n }\n function _accept(v) {\n acceptedVersions.add(v);\n return true;\n }\n return function isCompatible(globalVersion) {\n if (acceptedVersions.has(globalVersion)) {\n return true;\n }\n if (rejectedVersions.has(globalVersion)) {\n return false;\n }\n const globalVersionMatch = globalVersion.match(re);\n if (!globalVersionMatch) {\n // cannot parse other version\n // we cannot guarantee compatibility so we always noop\n return _reject(globalVersion);\n }\n const globalVersionParsed = {\n major: +globalVersionMatch[1],\n minor: +globalVersionMatch[2],\n patch: +globalVersionMatch[3],\n prerelease: globalVersionMatch[4],\n };\n // if globalVersion has a prerelease tag, versions must match exactly\n if (globalVersionParsed.prerelease != null) {\n return _reject(globalVersion);\n }\n // major versions must match\n if (ownVersionParsed.major !== globalVersionParsed.major) {\n return _reject(globalVersion);\n }\n if (ownVersionParsed.major === 0) {\n if (ownVersionParsed.minor === globalVersionParsed.minor &&\n ownVersionParsed.patch <= globalVersionParsed.patch) {\n return _accept(globalVersion);\n }\n return _reject(globalVersion);\n }\n if (ownVersionParsed.minor <= globalVersionParsed.minor) {\n return _accept(globalVersion);\n }\n return _reject(globalVersion);\n };\n}\nexports._makeCompatibilityCheck = _makeCompatibilityCheck;\n/**\n * Test an API version to see if it is compatible with this API.\n *\n * - Exact match is always compatible\n * - Major versions must match exactly\n * - 1.x package cannot use global 2.x package\n * - 2.x package cannot use global 1.x package\n * - The minor version of the API module requesting access to the global API must be less than or equal to the minor version of this API\n * - 1.3 package may use 1.4 global because the later global contains all functions 1.3 expects\n * - 1.4 package may NOT use 1.3 global because it may try to call functions which don't exist on 1.3\n * - If the major version is 0, the minor version is treated as the major and the patch is treated as the minor\n * - Patch and build tag differences are not considered at this time\n *\n * @param version version of the API requesting an instance of the global API\n */\nexports.isCompatible = _makeCompatibilityCheck(version_1.VERSION);\n//# sourceMappingURL=semver.js.map","\"use strict\";\n/*\n * Copyright The OpenTelemetry Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.metrics = void 0;\n// Split module-level variable definition into separate files to allow\n// tree-shaking on each api instance.\nconst metrics_1 = require(\"./api/metrics\");\n/** Entrypoint for metrics API */\nexports.metrics = metrics_1.MetricsAPI.getInstance();\n//# sourceMappingURL=metrics-api.js.map","\"use strict\";\n/*\n * Copyright The OpenTelemetry Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.ValueType = void 0;\n/** The Type of value. It describes how the data is reported. */\nvar ValueType;\n(function (ValueType) {\n ValueType[ValueType[\"INT\"] = 0] = \"INT\";\n ValueType[ValueType[\"DOUBLE\"] = 1] = \"DOUBLE\";\n})(ValueType = exports.ValueType || (exports.ValueType = {}));\n//# sourceMappingURL=Metric.js.map","\"use strict\";\n/*\n * Copyright The OpenTelemetry Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.createNoopMeter = exports.NOOP_OBSERVABLE_UP_DOWN_COUNTER_METRIC = exports.NOOP_OBSERVABLE_GAUGE_METRIC = exports.NOOP_OBSERVABLE_COUNTER_METRIC = exports.NOOP_UP_DOWN_COUNTER_METRIC = exports.NOOP_HISTOGRAM_METRIC = exports.NOOP_COUNTER_METRIC = exports.NOOP_METER = exports.NoopObservableUpDownCounterMetric = exports.NoopObservableGaugeMetric = exports.NoopObservableCounterMetric = exports.NoopObservableMetric = exports.NoopHistogramMetric = exports.NoopUpDownCounterMetric = exports.NoopCounterMetric = exports.NoopMetric = exports.NoopMeter = void 0;\n/**\n * NoopMeter is a noop implementation of the {@link Meter} interface. It reuses\n * constant NoopMetrics for all of its methods.\n */\nclass NoopMeter {\n constructor() { }\n /**\n * @see {@link Meter.createHistogram}\n */\n createHistogram(_name, _options) {\n return exports.NOOP_HISTOGRAM_METRIC;\n }\n /**\n * @see {@link Meter.createCounter}\n */\n createCounter(_name, _options) {\n return exports.NOOP_COUNTER_METRIC;\n }\n /**\n * @see {@link Meter.createUpDownCounter}\n */\n createUpDownCounter(_name, _options) {\n return exports.NOOP_UP_DOWN_COUNTER_METRIC;\n }\n /**\n * @see {@link Meter.createObservableGauge}\n */\n createObservableGauge(_name, _options) {\n return exports.NOOP_OBSERVABLE_GAUGE_METRIC;\n }\n /**\n * @see {@link Meter.createObservableCounter}\n */\n createObservableCounter(_name, _options) {\n return exports.NOOP_OBSERVABLE_COUNTER_METRIC;\n }\n /**\n * @see {@link Meter.createObservableUpDownCounter}\n */\n createObservableUpDownCounter(_name, _options) {\n return exports.NOOP_OBSERVABLE_UP_DOWN_COUNTER_METRIC;\n }\n /**\n * @see {@link Meter.addBatchObservableCallback}\n */\n addBatchObservableCallback(_callback, _observables) { }\n /**\n * @see {@link Meter.removeBatchObservableCallback}\n */\n removeBatchObservableCallback(_callback) { }\n}\nexports.NoopMeter = NoopMeter;\nclass NoopMetric {\n}\nexports.NoopMetric = NoopMetric;\nclass NoopCounterMetric extends NoopMetric {\n add(_value, _attributes) { }\n}\nexports.NoopCounterMetric = NoopCounterMetric;\nclass NoopUpDownCounterMetric extends NoopMetric {\n add(_value, _attributes) { }\n}\nexports.NoopUpDownCounterMetric = NoopUpDownCounterMetric;\nclass NoopHistogramMetric extends NoopMetric {\n record(_value, _attributes) { }\n}\nexports.NoopHistogramMetric = NoopHistogramMetric;\nclass NoopObservableMetric {\n addCallback(_callback) { }\n removeCallback(_callback) { }\n}\nexports.NoopObservableMetric = NoopObservableMetric;\nclass NoopObservableCounterMetric extends NoopObservableMetric {\n}\nexports.NoopObservableCounterMetric = NoopObservableCounterMetric;\nclass NoopObservableGaugeMetric extends NoopObservableMetric {\n}\nexports.NoopObservableGaugeMetric = NoopObservableGaugeMetric;\nclass NoopObservableUpDownCounterMetric extends NoopObservableMetric {\n}\nexports.NoopObservableUpDownCounterMetric = NoopObservableUpDownCounterMetric;\nexports.NOOP_METER = new NoopMeter();\n// Synchronous instruments\nexports.NOOP_COUNTER_METRIC = new NoopCounterMetric();\nexports.NOOP_HISTOGRAM_METRIC = new NoopHistogramMetric();\nexports.NOOP_UP_DOWN_COUNTER_METRIC = new NoopUpDownCounterMetric();\n// Asynchronous instruments\nexports.NOOP_OBSERVABLE_COUNTER_METRIC = new NoopObservableCounterMetric();\nexports.NOOP_OBSERVABLE_GAUGE_METRIC = new NoopObservableGaugeMetric();\nexports.NOOP_OBSERVABLE_UP_DOWN_COUNTER_METRIC = new NoopObservableUpDownCounterMetric();\n/**\n * Create a no-op Meter\n */\nfunction createNoopMeter() {\n return exports.NOOP_METER;\n}\nexports.createNoopMeter = createNoopMeter;\n//# sourceMappingURL=NoopMeter.js.map","\"use strict\";\n/*\n * Copyright The OpenTelemetry Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.NOOP_METER_PROVIDER = exports.NoopMeterProvider = void 0;\nconst NoopMeter_1 = require(\"./NoopMeter\");\n/**\n * An implementation of the {@link MeterProvider} which returns an impotent Meter\n * for all calls to `getMeter`\n */\nclass NoopMeterProvider {\n getMeter(_name, _version, _options) {\n return NoopMeter_1.NOOP_METER;\n }\n}\nexports.NoopMeterProvider = NoopMeterProvider;\nexports.NOOP_METER_PROVIDER = new NoopMeterProvider();\n//# sourceMappingURL=NoopMeterProvider.js.map","\"use strict\";\n/*\n * Copyright The OpenTelemetry Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nvar __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });\n}) : (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n}));\nvar __exportStar = (this && this.__exportStar) || function(m, exports) {\n for (var p in m) if (p !== \"default\" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\n__exportStar(require(\"./node\"), exports);\n//# sourceMappingURL=index.js.map","\"use strict\";\n/*\n * Copyright The OpenTelemetry Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports._globalThis = void 0;\n/** only globals that common to node and browsers are allowed */\n// eslint-disable-next-line node/no-unsupported-features/es-builtins\nexports._globalThis = typeof globalThis === 'object' ? globalThis : global;\n//# sourceMappingURL=globalThis.js.map","\"use strict\";\n/*\n * Copyright The OpenTelemetry Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nvar __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });\n}) : (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n}));\nvar __exportStar = (this && this.__exportStar) || function(m, exports) {\n for (var p in m) if (p !== \"default\" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\n__exportStar(require(\"./globalThis\"), exports);\n//# sourceMappingURL=index.js.map","\"use strict\";\n/*\n * Copyright The OpenTelemetry Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.propagation = void 0;\n// Split module-level variable definition into separate files to allow\n// tree-shaking on each api instance.\nconst propagation_1 = require(\"./api/propagation\");\n/** Entrypoint for propagation API */\nexports.propagation = propagation_1.PropagationAPI.getInstance();\n//# sourceMappingURL=propagation-api.js.map","\"use strict\";\n/*\n * Copyright The OpenTelemetry Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.NoopTextMapPropagator = void 0;\n/**\n * No-op implementations of {@link TextMapPropagator}.\n */\nclass NoopTextMapPropagator {\n /** Noop inject function does nothing */\n inject(_context, _carrier) { }\n /** Noop extract function does nothing and returns the input context */\n extract(context, _carrier) {\n return context;\n }\n fields() {\n return [];\n }\n}\nexports.NoopTextMapPropagator = NoopTextMapPropagator;\n//# sourceMappingURL=NoopTextMapPropagator.js.map","\"use strict\";\n/*\n * Copyright The OpenTelemetry Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.defaultTextMapSetter = exports.defaultTextMapGetter = void 0;\nexports.defaultTextMapGetter = {\n get(carrier, key) {\n if (carrier == null) {\n return undefined;\n }\n return carrier[key];\n },\n keys(carrier) {\n if (carrier == null) {\n return [];\n }\n return Object.keys(carrier);\n },\n};\nexports.defaultTextMapSetter = {\n set(carrier, key, value) {\n if (carrier == null) {\n return;\n }\n carrier[key] = value;\n },\n};\n//# sourceMappingURL=TextMapPropagator.js.map","\"use strict\";\n/*\n * Copyright The OpenTelemetry Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.trace = void 0;\n// Split module-level variable definition into separate files to allow\n// tree-shaking on each api instance.\nconst trace_1 = require(\"./api/trace\");\n/** Entrypoint for trace API */\nexports.trace = trace_1.TraceAPI.getInstance();\n//# sourceMappingURL=trace-api.js.map","\"use strict\";\n/*\n * Copyright The OpenTelemetry Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.NonRecordingSpan = void 0;\nconst invalid_span_constants_1 = require(\"./invalid-span-constants\");\n/**\n * The NonRecordingSpan is the default {@link Span} that is used when no Span\n * implementation is available. All operations are no-op including context\n * propagation.\n */\nclass NonRecordingSpan {\n constructor(_spanContext = invalid_span_constants_1.INVALID_SPAN_CONTEXT) {\n this._spanContext = _spanContext;\n }\n // Returns a SpanContext.\n spanContext() {\n return this._spanContext;\n }\n // By default does nothing\n setAttribute(_key, _value) {\n return this;\n }\n // By default does nothing\n setAttributes(_attributes) {\n return this;\n }\n // By default does nothing\n addEvent(_name, _attributes) {\n return this;\n }\n // By default does nothing\n setStatus(_status) {\n return this;\n }\n // By default does nothing\n updateName(_name) {\n return this;\n }\n // By default does nothing\n end(_endTime) { }\n // isRecording always returns false for NonRecordingSpan.\n isRecording() {\n return false;\n }\n // By default does nothing\n recordException(_exception, _time) { }\n}\nexports.NonRecordingSpan = NonRecordingSpan;\n//# sourceMappingURL=NonRecordingSpan.js.map","\"use strict\";\n/*\n * Copyright The OpenTelemetry Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.NoopTracer = void 0;\nconst context_1 = require(\"../api/context\");\nconst context_utils_1 = require(\"../trace/context-utils\");\nconst NonRecordingSpan_1 = require(\"./NonRecordingSpan\");\nconst spancontext_utils_1 = require(\"./spancontext-utils\");\nconst contextApi = context_1.ContextAPI.getInstance();\n/**\n * No-op implementations of {@link Tracer}.\n */\nclass NoopTracer {\n // startSpan starts a noop span.\n startSpan(name, options, context = contextApi.active()) {\n const root = Boolean(options === null || options === void 0 ? void 0 : options.root);\n if (root) {\n return new NonRecordingSpan_1.NonRecordingSpan();\n }\n const parentFromContext = context && (0, context_utils_1.getSpanContext)(context);\n if (isSpanContext(parentFromContext) &&\n (0, spancontext_utils_1.isSpanContextValid)(parentFromContext)) {\n return new NonRecordingSpan_1.NonRecordingSpan(parentFromContext);\n }\n else {\n return new NonRecordingSpan_1.NonRecordingSpan();\n }\n }\n startActiveSpan(name, arg2, arg3, arg4) {\n let opts;\n let ctx;\n let fn;\n if (arguments.length < 2) {\n return;\n }\n else if (arguments.length === 2) {\n fn = arg2;\n }\n else if (arguments.length === 3) {\n opts = arg2;\n fn = arg3;\n }\n else {\n opts = arg2;\n ctx = arg3;\n fn = arg4;\n }\n const parentContext = ctx !== null && ctx !== void 0 ? ctx : contextApi.active();\n const span = this.startSpan(name, opts, parentContext);\n const contextWithSpanSet = (0, context_utils_1.setSpan)(parentContext, span);\n return contextApi.with(contextWithSpanSet, fn, undefined, span);\n }\n}\nexports.NoopTracer = NoopTracer;\nfunction isSpanContext(spanContext) {\n return (typeof spanContext === 'object' &&\n typeof spanContext['spanId'] === 'string' &&\n typeof spanContext['traceId'] === 'string' &&\n typeof spanContext['traceFlags'] === 'number');\n}\n//# sourceMappingURL=NoopTracer.js.map","\"use strict\";\n/*\n * Copyright The OpenTelemetry Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.NoopTracerProvider = void 0;\nconst NoopTracer_1 = require(\"./NoopTracer\");\n/**\n * An implementation of the {@link TracerProvider} which returns an impotent\n * Tracer for all calls to `getTracer`.\n *\n * All operations are no-op.\n */\nclass NoopTracerProvider {\n getTracer(_name, _version, _options) {\n return new NoopTracer_1.NoopTracer();\n }\n}\nexports.NoopTracerProvider = NoopTracerProvider;\n//# sourceMappingURL=NoopTracerProvider.js.map","\"use strict\";\n/*\n * Copyright The OpenTelemetry Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.ProxyTracer = void 0;\nconst NoopTracer_1 = require(\"./NoopTracer\");\nconst NOOP_TRACER = new NoopTracer_1.NoopTracer();\n/**\n * Proxy tracer provided by the proxy tracer provider\n */\nclass ProxyTracer {\n constructor(_provider, name, version, options) {\n this._provider = _provider;\n this.name = name;\n this.version = version;\n this.options = options;\n }\n startSpan(name, options, context) {\n return this._getTracer().startSpan(name, options, context);\n }\n startActiveSpan(_name, _options, _context, _fn) {\n const tracer = this._getTracer();\n return Reflect.apply(tracer.startActiveSpan, tracer, arguments);\n }\n /**\n * Try to get a tracer from the proxy tracer provider.\n * If the proxy tracer provider has no delegate, return a noop tracer.\n */\n _getTracer() {\n if (this._delegate) {\n return this._delegate;\n }\n const tracer = this._provider.getDelegateTracer(this.name, this.version, this.options);\n if (!tracer) {\n return NOOP_TRACER;\n }\n this._delegate = tracer;\n return this._delegate;\n }\n}\nexports.ProxyTracer = ProxyTracer;\n//# sourceMappingURL=ProxyTracer.js.map","\"use strict\";\n/*\n * Copyright The OpenTelemetry Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.ProxyTracerProvider = void 0;\nconst ProxyTracer_1 = require(\"./ProxyTracer\");\nconst NoopTracerProvider_1 = require(\"./NoopTracerProvider\");\nconst NOOP_TRACER_PROVIDER = new NoopTracerProvider_1.NoopTracerProvider();\n/**\n * Tracer provider which provides {@link ProxyTracer}s.\n *\n * Before a delegate is set, tracers provided are NoOp.\n * When a delegate is set, traces are provided from the delegate.\n * When a delegate is set after tracers have already been provided,\n * all tracers already provided will use the provided delegate implementation.\n */\nclass ProxyTracerProvider {\n /**\n * Get a {@link ProxyTracer}\n */\n getTracer(name, version, options) {\n var _a;\n return ((_a = this.getDelegateTracer(name, version, options)) !== null && _a !== void 0 ? _a : new ProxyTracer_1.ProxyTracer(this, name, version, options));\n }\n getDelegate() {\n var _a;\n return (_a = this._delegate) !== null && _a !== void 0 ? _a : NOOP_TRACER_PROVIDER;\n }\n /**\n * Set the delegate tracer provider\n */\n setDelegate(delegate) {\n this._delegate = delegate;\n }\n getDelegateTracer(name, version, options) {\n var _a;\n return (_a = this._delegate) === null || _a === void 0 ? void 0 : _a.getTracer(name, version, options);\n }\n}\nexports.ProxyTracerProvider = ProxyTracerProvider;\n//# sourceMappingURL=ProxyTracerProvider.js.map","\"use strict\";\n/*\n * Copyright The OpenTelemetry Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.SamplingDecision = void 0;\n/**\n * @deprecated use the one declared in @opentelemetry/sdk-trace-base instead.\n * A sampling decision that determines how a {@link Span} will be recorded\n * and collected.\n */\nvar SamplingDecision;\n(function (SamplingDecision) {\n /**\n * `Span.isRecording() === false`, span will not be recorded and all events\n * and attributes will be dropped.\n */\n SamplingDecision[SamplingDecision[\"NOT_RECORD\"] = 0] = \"NOT_RECORD\";\n /**\n * `Span.isRecording() === true`, but `Sampled` flag in {@link TraceFlags}\n * MUST NOT be set.\n */\n SamplingDecision[SamplingDecision[\"RECORD\"] = 1] = \"RECORD\";\n /**\n * `Span.isRecording() === true` AND `Sampled` flag in {@link TraceFlags}\n * MUST be set.\n */\n SamplingDecision[SamplingDecision[\"RECORD_AND_SAMPLED\"] = 2] = \"RECORD_AND_SAMPLED\";\n})(SamplingDecision = exports.SamplingDecision || (exports.SamplingDecision = {}));\n//# sourceMappingURL=SamplingResult.js.map","\"use strict\";\n/*\n * Copyright The OpenTelemetry Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.getSpanContext = exports.setSpanContext = exports.deleteSpan = exports.setSpan = exports.getActiveSpan = exports.getSpan = void 0;\nconst context_1 = require(\"../context/context\");\nconst NonRecordingSpan_1 = require(\"./NonRecordingSpan\");\nconst context_2 = require(\"../api/context\");\n/**\n * span key\n */\nconst SPAN_KEY = (0, context_1.createContextKey)('OpenTelemetry Context Key SPAN');\n/**\n * Return the span if one exists\n *\n * @param context context to get span from\n */\nfunction getSpan(context) {\n return context.getValue(SPAN_KEY) || undefined;\n}\nexports.getSpan = getSpan;\n/**\n * Gets the span from the current context, if one exists.\n */\nfunction getActiveSpan() {\n return getSpan(context_2.ContextAPI.getInstance().active());\n}\nexports.getActiveSpan = getActiveSpan;\n/**\n * Set the span on a context\n *\n * @param context context to use as parent\n * @param span span to set active\n */\nfunction setSpan(context, span) {\n return context.setValue(SPAN_KEY, span);\n}\nexports.setSpan = setSpan;\n/**\n * Remove current span stored in the context\n *\n * @param context context to delete span from\n */\nfunction deleteSpan(context) {\n return context.deleteValue(SPAN_KEY);\n}\nexports.deleteSpan = deleteSpan;\n/**\n * Wrap span context in a NoopSpan and set as span in a new\n * context\n *\n * @param context context to set active span on\n * @param spanContext span context to be wrapped\n */\nfunction setSpanContext(context, spanContext) {\n return setSpan(context, new NonRecordingSpan_1.NonRecordingSpan(spanContext));\n}\nexports.setSpanContext = setSpanContext;\n/**\n * Get the span context of the span if it exists.\n *\n * @param context context to get values from\n */\nfunction getSpanContext(context) {\n var _a;\n return (_a = getSpan(context)) === null || _a === void 0 ? void 0 : _a.spanContext();\n}\nexports.getSpanContext = getSpanContext;\n//# sourceMappingURL=context-utils.js.map","\"use strict\";\n/*\n * Copyright The OpenTelemetry Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.TraceStateImpl = void 0;\nconst tracestate_validators_1 = require(\"./tracestate-validators\");\nconst MAX_TRACE_STATE_ITEMS = 32;\nconst MAX_TRACE_STATE_LEN = 512;\nconst LIST_MEMBERS_SEPARATOR = ',';\nconst LIST_MEMBER_KEY_VALUE_SPLITTER = '=';\n/**\n * TraceState must be a class and not a simple object type because of the spec\n * requirement (https://www.w3.org/TR/trace-context/#tracestate-field).\n *\n * Here is the list of allowed mutations:\n * - New key-value pair should be added into the beginning of the list\n * - The value of any key can be updated. Modified keys MUST be moved to the\n * beginning of the list.\n */\nclass TraceStateImpl {\n constructor(rawTraceState) {\n this._internalState = new Map();\n if (rawTraceState)\n this._parse(rawTraceState);\n }\n set(key, value) {\n // TODO: Benchmark the different approaches(map vs list) and\n // use the faster one.\n const traceState = this._clone();\n if (traceState._internalState.has(key)) {\n traceState._internalState.delete(key);\n }\n traceState._internalState.set(key, value);\n return traceState;\n }\n unset(key) {\n const traceState = this._clone();\n traceState._internalState.delete(key);\n return traceState;\n }\n get(key) {\n return this._internalState.get(key);\n }\n serialize() {\n return this._keys()\n .reduce((agg, key) => {\n agg.push(key + LIST_MEMBER_KEY_VALUE_SPLITTER + this.get(key));\n return agg;\n }, [])\n .join(LIST_MEMBERS_SEPARATOR);\n }\n _parse(rawTraceState) {\n if (rawTraceState.length > MAX_TRACE_STATE_LEN)\n return;\n this._internalState = rawTraceState\n .split(LIST_MEMBERS_SEPARATOR)\n .reverse() // Store in reverse so new keys (.set(...)) will be placed at the beginning\n .reduce((agg, part) => {\n const listMember = part.trim(); // Optional Whitespace (OWS) handling\n const i = listMember.indexOf(LIST_MEMBER_KEY_VALUE_SPLITTER);\n if (i !== -1) {\n const key = listMember.slice(0, i);\n const value = listMember.slice(i + 1, part.length);\n if ((0, tracestate_validators_1.validateKey)(key) && (0, tracestate_validators_1.validateValue)(value)) {\n agg.set(key, value);\n }\n else {\n // TODO: Consider to add warning log\n }\n }\n return agg;\n }, new Map());\n // Because of the reverse() requirement, trunc must be done after map is created\n if (this._internalState.size > MAX_TRACE_STATE_ITEMS) {\n this._internalState = new Map(Array.from(this._internalState.entries())\n .reverse() // Use reverse same as original tracestate parse chain\n .slice(0, MAX_TRACE_STATE_ITEMS));\n }\n }\n _keys() {\n return Array.from(this._internalState.keys()).reverse();\n }\n _clone() {\n const traceState = new TraceStateImpl();\n traceState._internalState = new Map(this._internalState);\n return traceState;\n }\n}\nexports.TraceStateImpl = TraceStateImpl;\n//# sourceMappingURL=tracestate-impl.js.map","\"use strict\";\n/*\n * Copyright The OpenTelemetry Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.validateValue = exports.validateKey = void 0;\nconst VALID_KEY_CHAR_RANGE = '[_0-9a-z-*/]';\nconst VALID_KEY = `[a-z]${VALID_KEY_CHAR_RANGE}{0,255}`;\nconst VALID_VENDOR_KEY = `[a-z0-9]${VALID_KEY_CHAR_RANGE}{0,240}@[a-z]${VALID_KEY_CHAR_RANGE}{0,13}`;\nconst VALID_KEY_REGEX = new RegExp(`^(?:${VALID_KEY}|${VALID_VENDOR_KEY})$`);\nconst VALID_VALUE_BASE_REGEX = /^[ -~]{0,255}[!-~]$/;\nconst INVALID_VALUE_COMMA_EQUAL_REGEX = /,|=/;\n/**\n * Key is opaque string up to 256 characters printable. It MUST begin with a\n * lowercase letter, and can only contain lowercase letters a-z, digits 0-9,\n * underscores _, dashes -, asterisks *, and forward slashes /.\n * For multi-tenant vendor scenarios, an at sign (@) can be used to prefix the\n * vendor name. Vendors SHOULD set the tenant ID at the beginning of the key.\n * see https://www.w3.org/TR/trace-context/#key\n */\nfunction validateKey(key) {\n return VALID_KEY_REGEX.test(key);\n}\nexports.validateKey = validateKey;\n/**\n * Value is opaque string up to 256 characters printable ASCII RFC0020\n * characters (i.e., the range 0x20 to 0x7E) except comma , and =.\n */\nfunction validateValue(value) {\n return (VALID_VALUE_BASE_REGEX.test(value) &&\n !INVALID_VALUE_COMMA_EQUAL_REGEX.test(value));\n}\nexports.validateValue = validateValue;\n//# sourceMappingURL=tracestate-validators.js.map","\"use strict\";\n/*\n * Copyright The OpenTelemetry Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.createTraceState = void 0;\nconst tracestate_impl_1 = require(\"./tracestate-impl\");\nfunction createTraceState(rawTraceState) {\n return new tracestate_impl_1.TraceStateImpl(rawTraceState);\n}\nexports.createTraceState = createTraceState;\n//# sourceMappingURL=utils.js.map","\"use strict\";\n/*\n * Copyright The OpenTelemetry Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.INVALID_SPAN_CONTEXT = exports.INVALID_TRACEID = exports.INVALID_SPANID = void 0;\nconst trace_flags_1 = require(\"./trace_flags\");\nexports.INVALID_SPANID = '0000000000000000';\nexports.INVALID_TRACEID = '00000000000000000000000000000000';\nexports.INVALID_SPAN_CONTEXT = {\n traceId: exports.INVALID_TRACEID,\n spanId: exports.INVALID_SPANID,\n traceFlags: trace_flags_1.TraceFlags.NONE,\n};\n//# sourceMappingURL=invalid-span-constants.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.SpanKind = void 0;\n/*\n * Copyright The OpenTelemetry Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nvar SpanKind;\n(function (SpanKind) {\n /** Default value. Indicates that the span is used internally. */\n SpanKind[SpanKind[\"INTERNAL\"] = 0] = \"INTERNAL\";\n /**\n * Indicates that the span covers server-side handling of an RPC or other\n * remote request.\n */\n SpanKind[SpanKind[\"SERVER\"] = 1] = \"SERVER\";\n /**\n * Indicates that the span covers the client-side wrapper around an RPC or\n * other remote request.\n */\n SpanKind[SpanKind[\"CLIENT\"] = 2] = \"CLIENT\";\n /**\n * Indicates that the span describes producer sending a message to a\n * broker. Unlike client and server, there is no direct critical path latency\n * relationship between producer and consumer spans.\n */\n SpanKind[SpanKind[\"PRODUCER\"] = 3] = \"PRODUCER\";\n /**\n * Indicates that the span describes consumer receiving a message from a\n * broker. Unlike client and server, there is no direct critical path latency\n * relationship between producer and consumer spans.\n */\n SpanKind[SpanKind[\"CONSUMER\"] = 4] = \"CONSUMER\";\n})(SpanKind = exports.SpanKind || (exports.SpanKind = {}));\n//# sourceMappingURL=span_kind.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.wrapSpanContext = exports.isSpanContextValid = exports.isValidSpanId = exports.isValidTraceId = void 0;\n/*\n * Copyright The OpenTelemetry Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nconst invalid_span_constants_1 = require(\"./invalid-span-constants\");\nconst NonRecordingSpan_1 = require(\"./NonRecordingSpan\");\nconst VALID_TRACEID_REGEX = /^([0-9a-f]{32})$/i;\nconst VALID_SPANID_REGEX = /^[0-9a-f]{16}$/i;\nfunction isValidTraceId(traceId) {\n return VALID_TRACEID_REGEX.test(traceId) && traceId !== invalid_span_constants_1.INVALID_TRACEID;\n}\nexports.isValidTraceId = isValidTraceId;\nfunction isValidSpanId(spanId) {\n return VALID_SPANID_REGEX.test(spanId) && spanId !== invalid_span_constants_1.INVALID_SPANID;\n}\nexports.isValidSpanId = isValidSpanId;\n/**\n * Returns true if this {@link SpanContext} is valid.\n * @return true if this {@link SpanContext} is valid.\n */\nfunction isSpanContextValid(spanContext) {\n return (isValidTraceId(spanContext.traceId) && isValidSpanId(spanContext.spanId));\n}\nexports.isSpanContextValid = isSpanContextValid;\n/**\n * Wrap the given {@link SpanContext} in a new non-recording {@link Span}\n *\n * @param spanContext span context to be wrapped\n * @returns a new non-recording {@link Span} with the provided context\n */\nfunction wrapSpanContext(spanContext) {\n return new NonRecordingSpan_1.NonRecordingSpan(spanContext);\n}\nexports.wrapSpanContext = wrapSpanContext;\n//# sourceMappingURL=spancontext-utils.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.SpanStatusCode = void 0;\n/**\n * An enumeration of status codes.\n */\nvar SpanStatusCode;\n(function (SpanStatusCode) {\n /**\n * The default status.\n */\n SpanStatusCode[SpanStatusCode[\"UNSET\"] = 0] = \"UNSET\";\n /**\n * The operation has been validated by an Application developer or\n * Operator to have completed successfully.\n */\n SpanStatusCode[SpanStatusCode[\"OK\"] = 1] = \"OK\";\n /**\n * The operation contains an error.\n */\n SpanStatusCode[SpanStatusCode[\"ERROR\"] = 2] = \"ERROR\";\n})(SpanStatusCode = exports.SpanStatusCode || (exports.SpanStatusCode = {}));\n//# sourceMappingURL=status.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.TraceFlags = void 0;\n/*\n * Copyright The OpenTelemetry Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nvar TraceFlags;\n(function (TraceFlags) {\n /** Represents no flag set. */\n TraceFlags[TraceFlags[\"NONE\"] = 0] = \"NONE\";\n /** Bit to represent whether trace is sampled in trace flags. */\n TraceFlags[TraceFlags[\"SAMPLED\"] = 1] = \"SAMPLED\";\n})(TraceFlags = exports.TraceFlags || (exports.TraceFlags = {}));\n//# sourceMappingURL=trace_flags.js.map","\"use strict\";\n/*\n * Copyright The OpenTelemetry Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.VERSION = void 0;\n// this is autogenerated file, see scripts/version-update.js\nexports.VERSION = '1.4.1';\n//# sourceMappingURL=version.js.map","\"use strict\";\nvar __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n return new (P || (P = Promise))(function (resolve, reject) {\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.ClientStreamingCall = void 0;\n/**\n * A client streaming RPC call. This means that the clients sends 0, 1, or\n * more messages to the server, and the server replies with exactly one\n * message.\n */\nclass ClientStreamingCall {\n constructor(method, requestHeaders, request, headers, response, status, trailers) {\n this.method = method;\n this.requestHeaders = requestHeaders;\n this.requests = request;\n this.headers = headers;\n this.response = response;\n this.status = status;\n this.trailers = trailers;\n }\n /**\n * Instead of awaiting the response status and trailers, you can\n * just as well await this call itself to receive the server outcome.\n * Note that it may still be valid to send more request messages.\n */\n then(onfulfilled, onrejected) {\n return this.promiseFinished().then(value => onfulfilled ? Promise.resolve(onfulfilled(value)) : value, reason => onrejected ? Promise.resolve(onrejected(reason)) : Promise.reject(reason));\n }\n promiseFinished() {\n return __awaiter(this, void 0, void 0, function* () {\n let [headers, response, status, trailers] = yield Promise.all([this.headers, this.response, this.status, this.trailers]);\n return {\n method: this.method,\n requestHeaders: this.requestHeaders,\n headers,\n response,\n status,\n trailers\n };\n });\n }\n}\nexports.ClientStreamingCall = ClientStreamingCall;\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.Deferred = exports.DeferredState = void 0;\nvar DeferredState;\n(function (DeferredState) {\n DeferredState[DeferredState[\"PENDING\"] = 0] = \"PENDING\";\n DeferredState[DeferredState[\"REJECTED\"] = 1] = \"REJECTED\";\n DeferredState[DeferredState[\"RESOLVED\"] = 2] = \"RESOLVED\";\n})(DeferredState = exports.DeferredState || (exports.DeferredState = {}));\n/**\n * A deferred promise. This is a \"controller\" for a promise, which lets you\n * pass a promise around and reject or resolve it from the outside.\n *\n * Warning: This class is to be used with care. Using it can make code very\n * difficult to read. It is intended for use in library code that exposes\n * promises, not for regular business logic.\n */\nclass Deferred {\n /**\n * @param preventUnhandledRejectionWarning - prevents the warning\n * \"Unhandled Promise rejection\" by adding a noop rejection handler.\n * Working with calls returned from the runtime-rpc package in an\n * async function usually means awaiting one call property after\n * the other. This means that the \"status\" is not being awaited when\n * an earlier await for the \"headers\" is rejected. This causes the\n * \"unhandled promise reject\" warning. A more correct behaviour for\n * calls might be to become aware whether at least one of the\n * promises is handled and swallow the rejection warning for the\n * others.\n */\n constructor(preventUnhandledRejectionWarning = true) {\n this._state = DeferredState.PENDING;\n this._promise = new Promise((resolve, reject) => {\n this._resolve = resolve;\n this._reject = reject;\n });\n if (preventUnhandledRejectionWarning) {\n this._promise.catch(_ => { });\n }\n }\n /**\n * Get the current state of the promise.\n */\n get state() {\n return this._state;\n }\n /**\n * Get the deferred promise.\n */\n get promise() {\n return this._promise;\n }\n /**\n * Resolve the promise. Throws if the promise is already resolved or rejected.\n */\n resolve(value) {\n if (this.state !== DeferredState.PENDING)\n throw new Error(`cannot resolve ${DeferredState[this.state].toLowerCase()}`);\n this._resolve(value);\n this._state = DeferredState.RESOLVED;\n }\n /**\n * Reject the promise. Throws if the promise is already resolved or rejected.\n */\n reject(reason) {\n if (this.state !== DeferredState.PENDING)\n throw new Error(`cannot reject ${DeferredState[this.state].toLowerCase()}`);\n this._reject(reason);\n this._state = DeferredState.REJECTED;\n }\n /**\n * Resolve the promise. Ignore if not pending.\n */\n resolvePending(val) {\n if (this._state === DeferredState.PENDING)\n this.resolve(val);\n }\n /**\n * Reject the promise. Ignore if not pending.\n */\n rejectPending(reason) {\n if (this._state === DeferredState.PENDING)\n this.reject(reason);\n }\n}\nexports.Deferred = Deferred;\n","\"use strict\";\nvar __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n return new (P || (P = Promise))(function (resolve, reject) {\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.DuplexStreamingCall = void 0;\n/**\n * A duplex streaming RPC call. This means that the clients sends an\n * arbitrary amount of messages to the server, while at the same time,\n * the server sends an arbitrary amount of messages to the client.\n */\nclass DuplexStreamingCall {\n constructor(method, requestHeaders, request, headers, response, status, trailers) {\n this.method = method;\n this.requestHeaders = requestHeaders;\n this.requests = request;\n this.headers = headers;\n this.responses = response;\n this.status = status;\n this.trailers = trailers;\n }\n /**\n * Instead of awaiting the response status and trailers, you can\n * just as well await this call itself to receive the server outcome.\n * Note that it may still be valid to send more request messages.\n */\n then(onfulfilled, onrejected) {\n return this.promiseFinished().then(value => onfulfilled ? Promise.resolve(onfulfilled(value)) : value, reason => onrejected ? Promise.resolve(onrejected(reason)) : Promise.reject(reason));\n }\n promiseFinished() {\n return __awaiter(this, void 0, void 0, function* () {\n let [headers, status, trailers] = yield Promise.all([this.headers, this.status, this.trailers]);\n return {\n method: this.method,\n requestHeaders: this.requestHeaders,\n headers,\n status,\n trailers,\n };\n });\n }\n}\nexports.DuplexStreamingCall = DuplexStreamingCall;\n","\"use strict\";\n// Public API of the rpc runtime.\n// Note: we do not use `export * from ...` to help tree shakers,\n// webpack verbose output hints that this should be useful\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar service_type_1 = require(\"./service-type\");\nObject.defineProperty(exports, \"ServiceType\", { enumerable: true, get: function () { return service_type_1.ServiceType; } });\nvar reflection_info_1 = require(\"./reflection-info\");\nObject.defineProperty(exports, \"readMethodOptions\", { enumerable: true, get: function () { return reflection_info_1.readMethodOptions; } });\nObject.defineProperty(exports, \"readMethodOption\", { enumerable: true, get: function () { return reflection_info_1.readMethodOption; } });\nObject.defineProperty(exports, \"readServiceOption\", { enumerable: true, get: function () { return reflection_info_1.readServiceOption; } });\nvar rpc_error_1 = require(\"./rpc-error\");\nObject.defineProperty(exports, \"RpcError\", { enumerable: true, get: function () { return rpc_error_1.RpcError; } });\nvar rpc_options_1 = require(\"./rpc-options\");\nObject.defineProperty(exports, \"mergeRpcOptions\", { enumerable: true, get: function () { return rpc_options_1.mergeRpcOptions; } });\nvar rpc_output_stream_1 = require(\"./rpc-output-stream\");\nObject.defineProperty(exports, \"RpcOutputStreamController\", { enumerable: true, get: function () { return rpc_output_stream_1.RpcOutputStreamController; } });\nvar test_transport_1 = require(\"./test-transport\");\nObject.defineProperty(exports, \"TestTransport\", { enumerable: true, get: function () { return test_transport_1.TestTransport; } });\nvar deferred_1 = require(\"./deferred\");\nObject.defineProperty(exports, \"Deferred\", { enumerable: true, get: function () { return deferred_1.Deferred; } });\nObject.defineProperty(exports, \"DeferredState\", { enumerable: true, get: function () { return deferred_1.DeferredState; } });\nvar duplex_streaming_call_1 = require(\"./duplex-streaming-call\");\nObject.defineProperty(exports, \"DuplexStreamingCall\", { enumerable: true, get: function () { return duplex_streaming_call_1.DuplexStreamingCall; } });\nvar client_streaming_call_1 = require(\"./client-streaming-call\");\nObject.defineProperty(exports, \"ClientStreamingCall\", { enumerable: true, get: function () { return client_streaming_call_1.ClientStreamingCall; } });\nvar server_streaming_call_1 = require(\"./server-streaming-call\");\nObject.defineProperty(exports, \"ServerStreamingCall\", { enumerable: true, get: function () { return server_streaming_call_1.ServerStreamingCall; } });\nvar unary_call_1 = require(\"./unary-call\");\nObject.defineProperty(exports, \"UnaryCall\", { enumerable: true, get: function () { return unary_call_1.UnaryCall; } });\nvar rpc_interceptor_1 = require(\"./rpc-interceptor\");\nObject.defineProperty(exports, \"stackIntercept\", { enumerable: true, get: function () { return rpc_interceptor_1.stackIntercept; } });\nObject.defineProperty(exports, \"stackDuplexStreamingInterceptors\", { enumerable: true, get: function () { return rpc_interceptor_1.stackDuplexStreamingInterceptors; } });\nObject.defineProperty(exports, \"stackClientStreamingInterceptors\", { enumerable: true, get: function () { return rpc_interceptor_1.stackClientStreamingInterceptors; } });\nObject.defineProperty(exports, \"stackServerStreamingInterceptors\", { enumerable: true, get: function () { return rpc_interceptor_1.stackServerStreamingInterceptors; } });\nObject.defineProperty(exports, \"stackUnaryInterceptors\", { enumerable: true, get: function () { return rpc_interceptor_1.stackUnaryInterceptors; } });\nvar server_call_context_1 = require(\"./server-call-context\");\nObject.defineProperty(exports, \"ServerCallContextController\", { enumerable: true, get: function () { return server_call_context_1.ServerCallContextController; } });\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.readServiceOption = exports.readMethodOption = exports.readMethodOptions = exports.normalizeMethodInfo = void 0;\nconst runtime_1 = require(\"@protobuf-ts/runtime\");\n/**\n * Turns PartialMethodInfo into MethodInfo.\n */\nfunction normalizeMethodInfo(method, service) {\n var _a, _b, _c;\n let m = method;\n m.service = service;\n m.localName = (_a = m.localName) !== null && _a !== void 0 ? _a : runtime_1.lowerCamelCase(m.name);\n // noinspection PointlessBooleanExpressionJS\n m.serverStreaming = !!m.serverStreaming;\n // noinspection PointlessBooleanExpressionJS\n m.clientStreaming = !!m.clientStreaming;\n m.options = (_b = m.options) !== null && _b !== void 0 ? _b : {};\n m.idempotency = (_c = m.idempotency) !== null && _c !== void 0 ? _c : undefined;\n return m;\n}\nexports.normalizeMethodInfo = normalizeMethodInfo;\n/**\n * Read custom method options from a generated service client.\n *\n * @deprecated use readMethodOption()\n */\nfunction readMethodOptions(service, methodName, extensionName, extensionType) {\n var _a;\n const options = (_a = service.methods.find((m, i) => m.localName === methodName || i === methodName)) === null || _a === void 0 ? void 0 : _a.options;\n return options && options[extensionName] ? extensionType.fromJson(options[extensionName]) : undefined;\n}\nexports.readMethodOptions = readMethodOptions;\nfunction readMethodOption(service, methodName, extensionName, extensionType) {\n var _a;\n const options = (_a = service.methods.find((m, i) => m.localName === methodName || i === methodName)) === null || _a === void 0 ? void 0 : _a.options;\n if (!options) {\n return undefined;\n }\n const optionVal = options[extensionName];\n if (optionVal === undefined) {\n return optionVal;\n }\n return extensionType ? extensionType.fromJson(optionVal) : optionVal;\n}\nexports.readMethodOption = readMethodOption;\nfunction readServiceOption(service, extensionName, extensionType) {\n const options = service.options;\n if (!options) {\n return undefined;\n }\n const optionVal = options[extensionName];\n if (optionVal === undefined) {\n return optionVal;\n }\n return extensionType ? extensionType.fromJson(optionVal) : optionVal;\n}\nexports.readServiceOption = readServiceOption;\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.RpcError = void 0;\n/**\n * An error that occurred while calling a RPC method.\n */\nclass RpcError extends Error {\n constructor(message, code = 'UNKNOWN', meta) {\n super(message);\n this.name = 'RpcError';\n // see https://www.typescriptlang.org/docs/handbook/release-notes/typescript-2-2.html#example\n Object.setPrototypeOf(this, new.target.prototype);\n this.code = code;\n this.meta = meta !== null && meta !== void 0 ? meta : {};\n }\n toString() {\n const l = [this.name + ': ' + this.message];\n if (this.code) {\n l.push('');\n l.push('Code: ' + this.code);\n }\n if (this.serviceName && this.methodName) {\n l.push('Method: ' + this.serviceName + '/' + this.methodName);\n }\n let m = Object.entries(this.meta);\n if (m.length) {\n l.push('');\n l.push('Meta:');\n for (let [k, v] of m) {\n l.push(` ${k}: ${v}`);\n }\n }\n return l.join('\\n');\n }\n}\nexports.RpcError = RpcError;\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.stackDuplexStreamingInterceptors = exports.stackClientStreamingInterceptors = exports.stackServerStreamingInterceptors = exports.stackUnaryInterceptors = exports.stackIntercept = void 0;\nconst runtime_1 = require(\"@protobuf-ts/runtime\");\n/**\n * Creates a \"stack\" of of all interceptors specified in the given `RpcOptions`.\n * Used by generated client implementations.\n * @internal\n */\nfunction stackIntercept(kind, transport, method, options, input) {\n var _a, _b, _c, _d;\n if (kind == \"unary\") {\n let tail = (mtd, inp, opt) => transport.unary(mtd, inp, opt);\n for (const curr of ((_a = options.interceptors) !== null && _a !== void 0 ? _a : []).filter(i => i.interceptUnary).reverse()) {\n const next = tail;\n tail = (mtd, inp, opt) => curr.interceptUnary(next, mtd, inp, opt);\n }\n return tail(method, input, options);\n }\n if (kind == \"serverStreaming\") {\n let tail = (mtd, inp, opt) => transport.serverStreaming(mtd, inp, opt);\n for (const curr of ((_b = options.interceptors) !== null && _b !== void 0 ? _b : []).filter(i => i.interceptServerStreaming).reverse()) {\n const next = tail;\n tail = (mtd, inp, opt) => curr.interceptServerStreaming(next, mtd, inp, opt);\n }\n return tail(method, input, options);\n }\n if (kind == \"clientStreaming\") {\n let tail = (mtd, opt) => transport.clientStreaming(mtd, opt);\n for (const curr of ((_c = options.interceptors) !== null && _c !== void 0 ? _c : []).filter(i => i.interceptClientStreaming).reverse()) {\n const next = tail;\n tail = (mtd, opt) => curr.interceptClientStreaming(next, mtd, opt);\n }\n return tail(method, options);\n }\n if (kind == \"duplex\") {\n let tail = (mtd, opt) => transport.duplex(mtd, opt);\n for (const curr of ((_d = options.interceptors) !== null && _d !== void 0 ? _d : []).filter(i => i.interceptDuplex).reverse()) {\n const next = tail;\n tail = (mtd, opt) => curr.interceptDuplex(next, mtd, opt);\n }\n return tail(method, options);\n }\n runtime_1.assertNever(kind);\n}\nexports.stackIntercept = stackIntercept;\n/**\n * @deprecated replaced by `stackIntercept()`, still here to support older generated code\n */\nfunction stackUnaryInterceptors(transport, method, input, options) {\n return stackIntercept(\"unary\", transport, method, options, input);\n}\nexports.stackUnaryInterceptors = stackUnaryInterceptors;\n/**\n * @deprecated replaced by `stackIntercept()`, still here to support older generated code\n */\nfunction stackServerStreamingInterceptors(transport, method, input, options) {\n return stackIntercept(\"serverStreaming\", transport, method, options, input);\n}\nexports.stackServerStreamingInterceptors = stackServerStreamingInterceptors;\n/**\n * @deprecated replaced by `stackIntercept()`, still here to support older generated code\n */\nfunction stackClientStreamingInterceptors(transport, method, options) {\n return stackIntercept(\"clientStreaming\", transport, method, options);\n}\nexports.stackClientStreamingInterceptors = stackClientStreamingInterceptors;\n/**\n * @deprecated replaced by `stackIntercept()`, still here to support older generated code\n */\nfunction stackDuplexStreamingInterceptors(transport, method, options) {\n return stackIntercept(\"duplex\", transport, method, options);\n}\nexports.stackDuplexStreamingInterceptors = stackDuplexStreamingInterceptors;\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.mergeRpcOptions = void 0;\nconst runtime_1 = require(\"@protobuf-ts/runtime\");\n/**\n * Merges custom RPC options with defaults. Returns a new instance and keeps\n * the \"defaults\" and the \"options\" unmodified.\n *\n * Merges `RpcMetadata` \"meta\", overwriting values from \"defaults\" with\n * values from \"options\". Does not append values to existing entries.\n *\n * Merges \"jsonOptions\", including \"jsonOptions.typeRegistry\", by creating\n * a new array that contains types from \"options.jsonOptions.typeRegistry\"\n * first, then types from \"defaults.jsonOptions.typeRegistry\".\n *\n * Merges \"binaryOptions\".\n *\n * Merges \"interceptors\" by creating a new array that contains interceptors\n * from \"defaults\" first, then interceptors from \"options\".\n *\n * Works with objects that extend `RpcOptions`, but only if the added\n * properties are of type Date, primitive like string, boolean, or Array\n * of primitives. If you have other property types, you have to merge them\n * yourself.\n */\nfunction mergeRpcOptions(defaults, options) {\n if (!options)\n return defaults;\n let o = {};\n copy(defaults, o);\n copy(options, o);\n for (let key of Object.keys(options)) {\n let val = options[key];\n switch (key) {\n case \"jsonOptions\":\n o.jsonOptions = runtime_1.mergeJsonOptions(defaults.jsonOptions, o.jsonOptions);\n break;\n case \"binaryOptions\":\n o.binaryOptions = runtime_1.mergeBinaryOptions(defaults.binaryOptions, o.binaryOptions);\n break;\n case \"meta\":\n o.meta = {};\n copy(defaults.meta, o.meta);\n copy(options.meta, o.meta);\n break;\n case \"interceptors\":\n o.interceptors = defaults.interceptors ? defaults.interceptors.concat(val) : val.concat();\n break;\n }\n }\n return o;\n}\nexports.mergeRpcOptions = mergeRpcOptions;\nfunction copy(a, into) {\n if (!a)\n return;\n let c = into;\n for (let [k, v] of Object.entries(a)) {\n if (v instanceof Date)\n c[k] = new Date(v.getTime());\n else if (Array.isArray(v))\n c[k] = v.concat();\n else\n c[k] = v;\n }\n}\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.RpcOutputStreamController = void 0;\nconst deferred_1 = require(\"./deferred\");\nconst runtime_1 = require(\"@protobuf-ts/runtime\");\n/**\n * A `RpcOutputStream` that you control.\n */\nclass RpcOutputStreamController {\n constructor() {\n this._lis = {\n nxt: [],\n msg: [],\n err: [],\n cmp: [],\n };\n this._closed = false;\n }\n // --- RpcOutputStream callback API\n onNext(callback) {\n return this.addLis(callback, this._lis.nxt);\n }\n onMessage(callback) {\n return this.addLis(callback, this._lis.msg);\n }\n onError(callback) {\n return this.addLis(callback, this._lis.err);\n }\n onComplete(callback) {\n return this.addLis(callback, this._lis.cmp);\n }\n addLis(callback, list) {\n list.push(callback);\n return () => {\n let i = list.indexOf(callback);\n if (i >= 0)\n list.splice(i, 1);\n };\n }\n // remove all listeners\n clearLis() {\n for (let l of Object.values(this._lis))\n l.splice(0, l.length);\n }\n // --- Controller API\n /**\n * Is this stream already closed by a completion or error?\n */\n get closed() {\n return this._closed !== false;\n }\n /**\n * Emit message, close with error, or close successfully, but only one\n * at a time.\n * Can be used to wrap a stream by using the other stream's `onNext`.\n */\n notifyNext(message, error, complete) {\n runtime_1.assert((message ? 1 : 0) + (error ? 1 : 0) + (complete ? 1 : 0) <= 1, 'only one emission at a time');\n if (message)\n this.notifyMessage(message);\n if (error)\n this.notifyError(error);\n if (complete)\n this.notifyComplete();\n }\n /**\n * Emits a new message. Throws if stream is closed.\n *\n * Triggers onNext and onMessage callbacks.\n */\n notifyMessage(message) {\n runtime_1.assert(!this.closed, 'stream is closed');\n this.pushIt({ value: message, done: false });\n this._lis.msg.forEach(l => l(message));\n this._lis.nxt.forEach(l => l(message, undefined, false));\n }\n /**\n * Closes the stream with an error. Throws if stream is closed.\n *\n * Triggers onNext and onError callbacks.\n */\n notifyError(error) {\n runtime_1.assert(!this.closed, 'stream is closed');\n this._closed = error;\n this.pushIt(error);\n this._lis.err.forEach(l => l(error));\n this._lis.nxt.forEach(l => l(undefined, error, false));\n this.clearLis();\n }\n /**\n * Closes the stream successfully. Throws if stream is closed.\n *\n * Triggers onNext and onComplete callbacks.\n */\n notifyComplete() {\n runtime_1.assert(!this.closed, 'stream is closed');\n this._closed = true;\n this.pushIt({ value: null, done: true });\n this._lis.cmp.forEach(l => l());\n this._lis.nxt.forEach(l => l(undefined, undefined, true));\n this.clearLis();\n }\n /**\n * Creates an async iterator (that can be used with `for await {...}`)\n * to consume the stream.\n *\n * Some things to note:\n * - If an error occurs, the `for await` will throw it.\n * - If an error occurred before the `for await` was started, `for await`\n * will re-throw it.\n * - If the stream is already complete, the `for await` will be empty.\n * - If your `for await` consumes slower than the stream produces,\n * for example because you are relaying messages in a slow operation,\n * messages are queued.\n */\n [Symbol.asyncIterator]() {\n // init the iterator state, enabling pushIt()\n if (!this._itState) {\n this._itState = { q: [] };\n }\n // if we are closed, we are definitely not receiving any more messages.\n // but we can't let the iterator get stuck. we want to either:\n // a) finish the new iterator immediately, because we are completed\n // b) reject the new iterator, because we errored\n if (this._closed === true)\n this.pushIt({ value: null, done: true });\n else if (this._closed !== false)\n this.pushIt(this._closed);\n // the async iterator\n return {\n next: () => {\n let state = this._itState;\n runtime_1.assert(state, \"bad state\"); // if we don't have a state here, code is broken\n // there should be no pending result.\n // did the consumer call next() before we resolved our previous result promise?\n runtime_1.assert(!state.p, \"iterator contract broken\");\n // did we produce faster than the iterator consumed?\n // return the oldest result from the queue.\n let first = state.q.shift();\n if (first)\n return (\"value\" in first) ? Promise.resolve(first) : Promise.reject(first);\n // we have no result ATM, but we promise one.\n // as soon as we have a result, we must resolve promise.\n state.p = new deferred_1.Deferred();\n return state.p.promise;\n },\n };\n }\n // \"push\" a new iterator result.\n // this either resolves a pending promise, or enqueues the result.\n pushIt(result) {\n let state = this._itState;\n if (!state)\n return;\n // is the consumer waiting for us?\n if (state.p) {\n // yes, consumer is waiting for this promise.\n const p = state.p;\n runtime_1.assert(p.state == deferred_1.DeferredState.PENDING, \"iterator contract broken\");\n // resolve the promise\n (\"value\" in result) ? p.resolve(result) : p.reject(result);\n // must cleanup, otherwise iterator.next() would pick it up again.\n delete state.p;\n }\n else {\n // we are producing faster than the iterator consumes.\n // push result onto queue.\n state.q.push(result);\n }\n }\n}\nexports.RpcOutputStreamController = RpcOutputStreamController;\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.ServerCallContextController = void 0;\nclass ServerCallContextController {\n constructor(method, headers, deadline, sendResponseHeadersFn, defaultStatus = { code: 'OK', detail: '' }) {\n this._cancelled = false;\n this._listeners = [];\n this.method = method;\n this.headers = headers;\n this.deadline = deadline;\n this.trailers = {};\n this._sendRH = sendResponseHeadersFn;\n this.status = defaultStatus;\n }\n /**\n * Set the call cancelled.\n *\n * Invokes all callbacks registered with onCancel() and\n * sets `cancelled = true`.\n */\n notifyCancelled() {\n if (!this._cancelled) {\n this._cancelled = true;\n for (let l of this._listeners) {\n l();\n }\n }\n }\n /**\n * Send response headers.\n */\n sendResponseHeaders(data) {\n this._sendRH(data);\n }\n /**\n * Is the call cancelled?\n *\n * When the client closes the connection before the server\n * is done, the call is cancelled.\n *\n * If you want to cancel a request on the server, throw a\n * RpcError with the CANCELLED status code.\n */\n get cancelled() {\n return this._cancelled;\n }\n /**\n * Add a callback for cancellation.\n */\n onCancel(callback) {\n const l = this._listeners;\n l.push(callback);\n return () => {\n let i = l.indexOf(callback);\n if (i >= 0)\n l.splice(i, 1);\n };\n }\n}\nexports.ServerCallContextController = ServerCallContextController;\n","\"use strict\";\nvar __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n return new (P || (P = Promise))(function (resolve, reject) {\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.ServerStreamingCall = void 0;\n/**\n * A server streaming RPC call. The client provides exactly one input message\n * but the server may respond with 0, 1, or more messages.\n */\nclass ServerStreamingCall {\n constructor(method, requestHeaders, request, headers, response, status, trailers) {\n this.method = method;\n this.requestHeaders = requestHeaders;\n this.request = request;\n this.headers = headers;\n this.responses = response;\n this.status = status;\n this.trailers = trailers;\n }\n /**\n * Instead of awaiting the response status and trailers, you can\n * just as well await this call itself to receive the server outcome.\n * You should first setup some listeners to the `request` to\n * see the actual messages the server replied with.\n */\n then(onfulfilled, onrejected) {\n return this.promiseFinished().then(value => onfulfilled ? Promise.resolve(onfulfilled(value)) : value, reason => onrejected ? Promise.resolve(onrejected(reason)) : Promise.reject(reason));\n }\n promiseFinished() {\n return __awaiter(this, void 0, void 0, function* () {\n let [headers, status, trailers] = yield Promise.all([this.headers, this.status, this.trailers]);\n return {\n method: this.method,\n requestHeaders: this.requestHeaders,\n request: this.request,\n headers,\n status,\n trailers,\n };\n });\n }\n}\nexports.ServerStreamingCall = ServerStreamingCall;\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.ServiceType = void 0;\nconst reflection_info_1 = require(\"./reflection-info\");\nclass ServiceType {\n constructor(typeName, methods, options) {\n this.typeName = typeName;\n this.methods = methods.map(i => reflection_info_1.normalizeMethodInfo(i, this));\n this.options = options !== null && options !== void 0 ? options : {};\n }\n}\nexports.ServiceType = ServiceType;\n","\"use strict\";\nvar __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n return new (P || (P = Promise))(function (resolve, reject) {\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.TestTransport = void 0;\nconst rpc_error_1 = require(\"./rpc-error\");\nconst runtime_1 = require(\"@protobuf-ts/runtime\");\nconst rpc_output_stream_1 = require(\"./rpc-output-stream\");\nconst rpc_options_1 = require(\"./rpc-options\");\nconst unary_call_1 = require(\"./unary-call\");\nconst server_streaming_call_1 = require(\"./server-streaming-call\");\nconst client_streaming_call_1 = require(\"./client-streaming-call\");\nconst duplex_streaming_call_1 = require(\"./duplex-streaming-call\");\n/**\n * Transport for testing.\n */\nclass TestTransport {\n /**\n * Initialize with mock data. Omitted fields have default value.\n */\n constructor(data) {\n /**\n * Suppress warning / error about uncaught rejections of\n * \"status\" and \"trailers\".\n */\n this.suppressUncaughtRejections = true;\n this.headerDelay = 10;\n this.responseDelay = 50;\n this.betweenResponseDelay = 10;\n this.afterResponseDelay = 10;\n this.data = data !== null && data !== void 0 ? data : {};\n }\n /**\n * Sent message(s) during the last operation.\n */\n get sentMessages() {\n if (this.lastInput instanceof TestInputStream) {\n return this.lastInput.sent;\n }\n else if (typeof this.lastInput == \"object\") {\n return [this.lastInput.single];\n }\n return [];\n }\n /**\n * Sending message(s) completed?\n */\n get sendComplete() {\n if (this.lastInput instanceof TestInputStream) {\n return this.lastInput.completed;\n }\n else if (typeof this.lastInput == \"object\") {\n return true;\n }\n return false;\n }\n // Creates a promise for response headers from the mock data.\n promiseHeaders() {\n var _a;\n const headers = (_a = this.data.headers) !== null && _a !== void 0 ? _a : TestTransport.defaultHeaders;\n return headers instanceof rpc_error_1.RpcError\n ? Promise.reject(headers)\n : Promise.resolve(headers);\n }\n // Creates a promise for a single, valid, message from the mock data.\n promiseSingleResponse(method) {\n if (this.data.response instanceof rpc_error_1.RpcError) {\n return Promise.reject(this.data.response);\n }\n let r;\n if (Array.isArray(this.data.response)) {\n runtime_1.assert(this.data.response.length > 0);\n r = this.data.response[0];\n }\n else if (this.data.response !== undefined) {\n r = this.data.response;\n }\n else {\n r = method.O.create();\n }\n runtime_1.assert(method.O.is(r));\n return Promise.resolve(r);\n }\n /**\n * Pushes response messages from the mock data to the output stream.\n * If an error response, status or trailers are mocked, the stream is\n * closed with the respective error.\n * Otherwise, stream is completed successfully.\n *\n * The returned promise resolves when the stream is closed. It should\n * not reject. If it does, code is broken.\n */\n streamResponses(method, stream, abort) {\n return __awaiter(this, void 0, void 0, function* () {\n // normalize \"data.response\" into an array of valid output messages\n const messages = [];\n if (this.data.response === undefined) {\n messages.push(method.O.create());\n }\n else if (Array.isArray(this.data.response)) {\n for (let msg of this.data.response) {\n runtime_1.assert(method.O.is(msg));\n messages.push(msg);\n }\n }\n else if (!(this.data.response instanceof rpc_error_1.RpcError)) {\n runtime_1.assert(method.O.is(this.data.response));\n messages.push(this.data.response);\n }\n // start the stream with an initial delay.\n // if the request is cancelled, notify() error and exit.\n try {\n yield delay(this.responseDelay, abort)(undefined);\n }\n catch (error) {\n stream.notifyError(error);\n return;\n }\n // if error response was mocked, notify() error (stream is now closed with error) and exit.\n if (this.data.response instanceof rpc_error_1.RpcError) {\n stream.notifyError(this.data.response);\n return;\n }\n // regular response messages were mocked. notify() them.\n for (let msg of messages) {\n stream.notifyMessage(msg);\n // add a short delay between responses\n // if the request is cancelled, notify() error and exit.\n try {\n yield delay(this.betweenResponseDelay, abort)(undefined);\n }\n catch (error) {\n stream.notifyError(error);\n return;\n }\n }\n // error status was mocked, notify() error (stream is now closed with error) and exit.\n if (this.data.status instanceof rpc_error_1.RpcError) {\n stream.notifyError(this.data.status);\n return;\n }\n // error trailers were mocked, notify() error (stream is now closed with error) and exit.\n if (this.data.trailers instanceof rpc_error_1.RpcError) {\n stream.notifyError(this.data.trailers);\n return;\n }\n // stream completed successfully\n stream.notifyComplete();\n });\n }\n // Creates a promise for response status from the mock data.\n promiseStatus() {\n var _a;\n const status = (_a = this.data.status) !== null && _a !== void 0 ? _a : TestTransport.defaultStatus;\n return status instanceof rpc_error_1.RpcError\n ? Promise.reject(status)\n : Promise.resolve(status);\n }\n // Creates a promise for response trailers from the mock data.\n promiseTrailers() {\n var _a;\n const trailers = (_a = this.data.trailers) !== null && _a !== void 0 ? _a : TestTransport.defaultTrailers;\n return trailers instanceof rpc_error_1.RpcError\n ? Promise.reject(trailers)\n : Promise.resolve(trailers);\n }\n maybeSuppressUncaught(...promise) {\n if (this.suppressUncaughtRejections) {\n for (let p of promise) {\n p.catch(() => {\n });\n }\n }\n }\n mergeOptions(options) {\n return rpc_options_1.mergeRpcOptions({}, options);\n }\n unary(method, input, options) {\n var _a;\n const requestHeaders = (_a = options.meta) !== null && _a !== void 0 ? _a : {}, headersPromise = this.promiseHeaders()\n .then(delay(this.headerDelay, options.abort)), responsePromise = headersPromise\n .catch(_ => {\n })\n .then(delay(this.responseDelay, options.abort))\n .then(_ => this.promiseSingleResponse(method)), statusPromise = responsePromise\n .catch(_ => {\n })\n .then(delay(this.afterResponseDelay, options.abort))\n .then(_ => this.promiseStatus()), trailersPromise = responsePromise\n .catch(_ => {\n })\n .then(delay(this.afterResponseDelay, options.abort))\n .then(_ => this.promiseTrailers());\n this.maybeSuppressUncaught(statusPromise, trailersPromise);\n this.lastInput = { single: input };\n return new unary_call_1.UnaryCall(method, requestHeaders, input, headersPromise, responsePromise, statusPromise, trailersPromise);\n }\n serverStreaming(method, input, options) {\n var _a;\n const requestHeaders = (_a = options.meta) !== null && _a !== void 0 ? _a : {}, headersPromise = this.promiseHeaders()\n .then(delay(this.headerDelay, options.abort)), outputStream = new rpc_output_stream_1.RpcOutputStreamController(), responseStreamClosedPromise = headersPromise\n .then(delay(this.responseDelay, options.abort))\n .catch(() => {\n })\n .then(() => this.streamResponses(method, outputStream, options.abort))\n .then(delay(this.afterResponseDelay, options.abort)), statusPromise = responseStreamClosedPromise\n .then(() => this.promiseStatus()), trailersPromise = responseStreamClosedPromise\n .then(() => this.promiseTrailers());\n this.maybeSuppressUncaught(statusPromise, trailersPromise);\n this.lastInput = { single: input };\n return new server_streaming_call_1.ServerStreamingCall(method, requestHeaders, input, headersPromise, outputStream, statusPromise, trailersPromise);\n }\n clientStreaming(method, options) {\n var _a;\n const requestHeaders = (_a = options.meta) !== null && _a !== void 0 ? _a : {}, headersPromise = this.promiseHeaders()\n .then(delay(this.headerDelay, options.abort)), responsePromise = headersPromise\n .catch(_ => {\n })\n .then(delay(this.responseDelay, options.abort))\n .then(_ => this.promiseSingleResponse(method)), statusPromise = responsePromise\n .catch(_ => {\n })\n .then(delay(this.afterResponseDelay, options.abort))\n .then(_ => this.promiseStatus()), trailersPromise = responsePromise\n .catch(_ => {\n })\n .then(delay(this.afterResponseDelay, options.abort))\n .then(_ => this.promiseTrailers());\n this.maybeSuppressUncaught(statusPromise, trailersPromise);\n this.lastInput = new TestInputStream(this.data, options.abort);\n return new client_streaming_call_1.ClientStreamingCall(method, requestHeaders, this.lastInput, headersPromise, responsePromise, statusPromise, trailersPromise);\n }\n duplex(method, options) {\n var _a;\n const requestHeaders = (_a = options.meta) !== null && _a !== void 0 ? _a : {}, headersPromise = this.promiseHeaders()\n .then(delay(this.headerDelay, options.abort)), outputStream = new rpc_output_stream_1.RpcOutputStreamController(), responseStreamClosedPromise = headersPromise\n .then(delay(this.responseDelay, options.abort))\n .catch(() => {\n })\n .then(() => this.streamResponses(method, outputStream, options.abort))\n .then(delay(this.afterResponseDelay, options.abort)), statusPromise = responseStreamClosedPromise\n .then(() => this.promiseStatus()), trailersPromise = responseStreamClosedPromise\n .then(() => this.promiseTrailers());\n this.maybeSuppressUncaught(statusPromise, trailersPromise);\n this.lastInput = new TestInputStream(this.data, options.abort);\n return new duplex_streaming_call_1.DuplexStreamingCall(method, requestHeaders, this.lastInput, headersPromise, outputStream, statusPromise, trailersPromise);\n }\n}\nexports.TestTransport = TestTransport;\nTestTransport.defaultHeaders = {\n responseHeader: \"test\"\n};\nTestTransport.defaultStatus = {\n code: \"OK\", detail: \"all good\"\n};\nTestTransport.defaultTrailers = {\n responseTrailer: \"test\"\n};\nfunction delay(ms, abort) {\n return (v) => new Promise((resolve, reject) => {\n if (abort === null || abort === void 0 ? void 0 : abort.aborted) {\n reject(new rpc_error_1.RpcError(\"user cancel\", \"CANCELLED\"));\n }\n else {\n const id = setTimeout(() => resolve(v), ms);\n if (abort) {\n abort.addEventListener(\"abort\", ev => {\n clearTimeout(id);\n reject(new rpc_error_1.RpcError(\"user cancel\", \"CANCELLED\"));\n });\n }\n }\n });\n}\nclass TestInputStream {\n constructor(data, abort) {\n this._completed = false;\n this._sent = [];\n this.data = data;\n this.abort = abort;\n }\n get sent() {\n return this._sent;\n }\n get completed() {\n return this._completed;\n }\n send(message) {\n if (this.data.inputMessage instanceof rpc_error_1.RpcError) {\n return Promise.reject(this.data.inputMessage);\n }\n const delayMs = this.data.inputMessage === undefined\n ? 10\n : this.data.inputMessage;\n return Promise.resolve(undefined)\n .then(() => {\n this._sent.push(message);\n })\n .then(delay(delayMs, this.abort));\n }\n complete() {\n if (this.data.inputComplete instanceof rpc_error_1.RpcError) {\n return Promise.reject(this.data.inputComplete);\n }\n const delayMs = this.data.inputComplete === undefined\n ? 10\n : this.data.inputComplete;\n return Promise.resolve(undefined)\n .then(() => {\n this._completed = true;\n })\n .then(delay(delayMs, this.abort));\n }\n}\n","\"use strict\";\nvar __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n return new (P || (P = Promise))(function (resolve, reject) {\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.UnaryCall = void 0;\n/**\n * A unary RPC call. Unary means there is exactly one input message and\n * exactly one output message unless an error occurred.\n */\nclass UnaryCall {\n constructor(method, requestHeaders, request, headers, response, status, trailers) {\n this.method = method;\n this.requestHeaders = requestHeaders;\n this.request = request;\n this.headers = headers;\n this.response = response;\n this.status = status;\n this.trailers = trailers;\n }\n /**\n * If you are only interested in the final outcome of this call,\n * you can await it to receive a `FinishedUnaryCall`.\n */\n then(onfulfilled, onrejected) {\n return this.promiseFinished().then(value => onfulfilled ? Promise.resolve(onfulfilled(value)) : value, reason => onrejected ? Promise.resolve(onrejected(reason)) : Promise.reject(reason));\n }\n promiseFinished() {\n return __awaiter(this, void 0, void 0, function* () {\n let [headers, response, status, trailers] = yield Promise.all([this.headers, this.response, this.status, this.trailers]);\n return {\n method: this.method,\n requestHeaders: this.requestHeaders,\n request: this.request,\n headers,\n response,\n status,\n trailers\n };\n });\n }\n}\nexports.UnaryCall = UnaryCall;\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.assertFloat32 = exports.assertUInt32 = exports.assertInt32 = exports.assertNever = exports.assert = void 0;\n/**\n * assert that condition is true or throw error (with message)\n */\nfunction assert(condition, msg) {\n if (!condition) {\n throw new Error(msg);\n }\n}\nexports.assert = assert;\n/**\n * assert that value cannot exist = type `never`. throw runtime error if it does.\n */\nfunction assertNever(value, msg) {\n throw new Error(msg !== null && msg !== void 0 ? msg : 'Unexpected object: ' + value);\n}\nexports.assertNever = assertNever;\nconst FLOAT32_MAX = 3.4028234663852886e+38, FLOAT32_MIN = -3.4028234663852886e+38, UINT32_MAX = 0xFFFFFFFF, INT32_MAX = 0X7FFFFFFF, INT32_MIN = -0X80000000;\nfunction assertInt32(arg) {\n if (typeof arg !== \"number\")\n throw new Error('invalid int 32: ' + typeof arg);\n if (!Number.isInteger(arg) || arg > INT32_MAX || arg < INT32_MIN)\n throw new Error('invalid int 32: ' + arg);\n}\nexports.assertInt32 = assertInt32;\nfunction assertUInt32(arg) {\n if (typeof arg !== \"number\")\n throw new Error('invalid uint 32: ' + typeof arg);\n if (!Number.isInteger(arg) || arg > UINT32_MAX || arg < 0)\n throw new Error('invalid uint 32: ' + arg);\n}\nexports.assertUInt32 = assertUInt32;\nfunction assertFloat32(arg) {\n if (typeof arg !== \"number\")\n throw new Error('invalid float 32: ' + typeof arg);\n if (!Number.isFinite(arg))\n return;\n if (arg > FLOAT32_MAX || arg < FLOAT32_MIN)\n throw new Error('invalid float 32: ' + arg);\n}\nexports.assertFloat32 = assertFloat32;\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.base64encode = exports.base64decode = void 0;\n// lookup table from base64 character to byte\nlet encTable = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/'.split('');\n// lookup table from base64 character *code* to byte because lookup by number is fast\nlet decTable = [];\nfor (let i = 0; i < encTable.length; i++)\n decTable[encTable[i].charCodeAt(0)] = i;\n// support base64url variants\ndecTable[\"-\".charCodeAt(0)] = encTable.indexOf(\"+\");\ndecTable[\"_\".charCodeAt(0)] = encTable.indexOf(\"/\");\n/**\n * Decodes a base64 string to a byte array.\n *\n * - ignores white-space, including line breaks and tabs\n * - allows inner padding (can decode concatenated base64 strings)\n * - does not require padding\n * - understands base64url encoding:\n * \"-\" instead of \"+\",\n * \"_\" instead of \"/\",\n * no padding\n */\nfunction base64decode(base64Str) {\n // estimate byte size, not accounting for inner padding and whitespace\n let es = base64Str.length * 3 / 4;\n // if (es % 3 !== 0)\n // throw new Error('invalid base64 string');\n if (base64Str[base64Str.length - 2] == '=')\n es -= 2;\n else if (base64Str[base64Str.length - 1] == '=')\n es -= 1;\n let bytes = new Uint8Array(es), bytePos = 0, // position in byte array\n groupPos = 0, // position in base64 group\n b, // current byte\n p = 0 // previous byte\n ;\n for (let i = 0; i < base64Str.length; i++) {\n b = decTable[base64Str.charCodeAt(i)];\n if (b === undefined) {\n // noinspection FallThroughInSwitchStatementJS\n switch (base64Str[i]) {\n case '=':\n groupPos = 0; // reset state when padding found\n case '\\n':\n case '\\r':\n case '\\t':\n case ' ':\n continue; // skip white-space, and padding\n default:\n throw Error(`invalid base64 string.`);\n }\n }\n switch (groupPos) {\n case 0:\n p = b;\n groupPos = 1;\n break;\n case 1:\n bytes[bytePos++] = p << 2 | (b & 48) >> 4;\n p = b;\n groupPos = 2;\n break;\n case 2:\n bytes[bytePos++] = (p & 15) << 4 | (b & 60) >> 2;\n p = b;\n groupPos = 3;\n break;\n case 3:\n bytes[bytePos++] = (p & 3) << 6 | b;\n groupPos = 0;\n break;\n }\n }\n if (groupPos == 1)\n throw Error(`invalid base64 string.`);\n return bytes.subarray(0, bytePos);\n}\nexports.base64decode = base64decode;\n/**\n * Encodes a byte array to a base64 string.\n * Adds padding at the end.\n * Does not insert newlines.\n */\nfunction base64encode(bytes) {\n let base64 = '', groupPos = 0, // position in base64 group\n b, // current byte\n p = 0; // carry over from previous byte\n for (let i = 0; i < bytes.length; i++) {\n b = bytes[i];\n switch (groupPos) {\n case 0:\n base64 += encTable[b >> 2];\n p = (b & 3) << 4;\n groupPos = 1;\n break;\n case 1:\n base64 += encTable[p | b >> 4];\n p = (b & 15) << 2;\n groupPos = 2;\n break;\n case 2:\n base64 += encTable[p | b >> 6];\n base64 += encTable[b & 63];\n groupPos = 0;\n break;\n }\n }\n // padding required?\n if (groupPos) {\n base64 += encTable[p];\n base64 += '=';\n if (groupPos == 1)\n base64 += '=';\n }\n return base64;\n}\nexports.base64encode = base64encode;\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.WireType = exports.mergeBinaryOptions = exports.UnknownFieldHandler = void 0;\n/**\n * This handler implements the default behaviour for unknown fields.\n * When reading data, unknown fields are stored on the message, in a\n * symbol property.\n * When writing data, the symbol property is queried and unknown fields\n * are serialized into the output again.\n */\nvar UnknownFieldHandler;\n(function (UnknownFieldHandler) {\n /**\n * The symbol used to store unknown fields for a message.\n * The property must conform to `UnknownFieldContainer`.\n */\n UnknownFieldHandler.symbol = Symbol.for(\"protobuf-ts/unknown\");\n /**\n * Store an unknown field during binary read directly on the message.\n * This method is compatible with `BinaryReadOptions.readUnknownField`.\n */\n UnknownFieldHandler.onRead = (typeName, message, fieldNo, wireType, data) => {\n let container = is(message) ? message[UnknownFieldHandler.symbol] : message[UnknownFieldHandler.symbol] = [];\n container.push({ no: fieldNo, wireType, data });\n };\n /**\n * Write unknown fields stored for the message to the writer.\n * This method is compatible with `BinaryWriteOptions.writeUnknownFields`.\n */\n UnknownFieldHandler.onWrite = (typeName, message, writer) => {\n for (let { no, wireType, data } of UnknownFieldHandler.list(message))\n writer.tag(no, wireType).raw(data);\n };\n /**\n * List unknown fields stored for the message.\n * Note that there may be multiples fields with the same number.\n */\n UnknownFieldHandler.list = (message, fieldNo) => {\n if (is(message)) {\n let all = message[UnknownFieldHandler.symbol];\n return fieldNo ? all.filter(uf => uf.no == fieldNo) : all;\n }\n return [];\n };\n /**\n * Returns the last unknown field by field number.\n */\n UnknownFieldHandler.last = (message, fieldNo) => UnknownFieldHandler.list(message, fieldNo).slice(-1)[0];\n const is = (message) => message && Array.isArray(message[UnknownFieldHandler.symbol]);\n})(UnknownFieldHandler = exports.UnknownFieldHandler || (exports.UnknownFieldHandler = {}));\n/**\n * Merges binary write or read options. Later values override earlier values.\n */\nfunction mergeBinaryOptions(a, b) {\n return Object.assign(Object.assign({}, a), b);\n}\nexports.mergeBinaryOptions = mergeBinaryOptions;\n/**\n * Protobuf binary format wire types.\n *\n * A wire type provides just enough information to find the length of the\n * following value.\n *\n * See https://developers.google.com/protocol-buffers/docs/encoding#structure\n */\nvar WireType;\n(function (WireType) {\n /**\n * Used for int32, int64, uint32, uint64, sint32, sint64, bool, enum\n */\n WireType[WireType[\"Varint\"] = 0] = \"Varint\";\n /**\n * Used for fixed64, sfixed64, double.\n * Always 8 bytes with little-endian byte order.\n */\n WireType[WireType[\"Bit64\"] = 1] = \"Bit64\";\n /**\n * Used for string, bytes, embedded messages, packed repeated fields\n *\n * Only repeated numeric types (types which use the varint, 32-bit,\n * or 64-bit wire types) can be packed. In proto3, such fields are\n * packed by default.\n */\n WireType[WireType[\"LengthDelimited\"] = 2] = \"LengthDelimited\";\n /**\n * Used for groups\n * @deprecated\n */\n WireType[WireType[\"StartGroup\"] = 3] = \"StartGroup\";\n /**\n * Used for groups\n * @deprecated\n */\n WireType[WireType[\"EndGroup\"] = 4] = \"EndGroup\";\n /**\n * Used for fixed32, sfixed32, float.\n * Always 4 bytes with little-endian byte order.\n */\n WireType[WireType[\"Bit32\"] = 5] = \"Bit32\";\n})(WireType = exports.WireType || (exports.WireType = {}));\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.BinaryReader = exports.binaryReadOptions = void 0;\nconst binary_format_contract_1 = require(\"./binary-format-contract\");\nconst pb_long_1 = require(\"./pb-long\");\nconst goog_varint_1 = require(\"./goog-varint\");\nconst defaultsRead = {\n readUnknownField: true,\n readerFactory: bytes => new BinaryReader(bytes),\n};\n/**\n * Make options for reading binary data form partial options.\n */\nfunction binaryReadOptions(options) {\n return options ? Object.assign(Object.assign({}, defaultsRead), options) : defaultsRead;\n}\nexports.binaryReadOptions = binaryReadOptions;\nclass BinaryReader {\n constructor(buf, textDecoder) {\n this.varint64 = goog_varint_1.varint64read; // dirty cast for `this`\n /**\n * Read a `uint32` field, an unsigned 32 bit varint.\n */\n this.uint32 = goog_varint_1.varint32read; // dirty cast for `this` and access to protected `buf`\n this.buf = buf;\n this.len = buf.length;\n this.pos = 0;\n this.view = new DataView(buf.buffer, buf.byteOffset, buf.byteLength);\n this.textDecoder = textDecoder !== null && textDecoder !== void 0 ? textDecoder : new TextDecoder(\"utf-8\", {\n fatal: true,\n ignoreBOM: true,\n });\n }\n /**\n * Reads a tag - field number and wire type.\n */\n tag() {\n let tag = this.uint32(), fieldNo = tag >>> 3, wireType = tag & 7;\n if (fieldNo <= 0 || wireType < 0 || wireType > 5)\n throw new Error(\"illegal tag: field no \" + fieldNo + \" wire type \" + wireType);\n return [fieldNo, wireType];\n }\n /**\n * Skip one element on the wire and return the skipped data.\n * Supports WireType.StartGroup since v2.0.0-alpha.23.\n */\n skip(wireType) {\n let start = this.pos;\n // noinspection FallThroughInSwitchStatementJS\n switch (wireType) {\n case binary_format_contract_1.WireType.Varint:\n while (this.buf[this.pos++] & 0x80) {\n // ignore\n }\n break;\n case binary_format_contract_1.WireType.Bit64:\n this.pos += 4;\n case binary_format_contract_1.WireType.Bit32:\n this.pos += 4;\n break;\n case binary_format_contract_1.WireType.LengthDelimited:\n let len = this.uint32();\n this.pos += len;\n break;\n case binary_format_contract_1.WireType.StartGroup:\n // From descriptor.proto: Group type is deprecated, not supported in proto3.\n // But we must still be able to parse and treat as unknown.\n let t;\n while ((t = this.tag()[1]) !== binary_format_contract_1.WireType.EndGroup) {\n this.skip(t);\n }\n break;\n default:\n throw new Error(\"cant skip wire type \" + wireType);\n }\n this.assertBounds();\n return this.buf.subarray(start, this.pos);\n }\n /**\n * Throws error if position in byte array is out of range.\n */\n assertBounds() {\n if (this.pos > this.len)\n throw new RangeError(\"premature EOF\");\n }\n /**\n * Read a `int32` field, a signed 32 bit varint.\n */\n int32() {\n return this.uint32() | 0;\n }\n /**\n * Read a `sint32` field, a signed, zigzag-encoded 32-bit varint.\n */\n sint32() {\n let zze = this.uint32();\n // decode zigzag\n return (zze >>> 1) ^ -(zze & 1);\n }\n /**\n * Read a `int64` field, a signed 64-bit varint.\n */\n int64() {\n return new pb_long_1.PbLong(...this.varint64());\n }\n /**\n * Read a `uint64` field, an unsigned 64-bit varint.\n */\n uint64() {\n return new pb_long_1.PbULong(...this.varint64());\n }\n /**\n * Read a `sint64` field, a signed, zig-zag-encoded 64-bit varint.\n */\n sint64() {\n let [lo, hi] = this.varint64();\n // decode zig zag\n let s = -(lo & 1);\n lo = ((lo >>> 1 | (hi & 1) << 31) ^ s);\n hi = (hi >>> 1 ^ s);\n return new pb_long_1.PbLong(lo, hi);\n }\n /**\n * Read a `bool` field, a variant.\n */\n bool() {\n let [lo, hi] = this.varint64();\n return lo !== 0 || hi !== 0;\n }\n /**\n * Read a `fixed32` field, an unsigned, fixed-length 32-bit integer.\n */\n fixed32() {\n return this.view.getUint32((this.pos += 4) - 4, true);\n }\n /**\n * Read a `sfixed32` field, a signed, fixed-length 32-bit integer.\n */\n sfixed32() {\n return this.view.getInt32((this.pos += 4) - 4, true);\n }\n /**\n * Read a `fixed64` field, an unsigned, fixed-length 64 bit integer.\n */\n fixed64() {\n return new pb_long_1.PbULong(this.sfixed32(), this.sfixed32());\n }\n /**\n * Read a `fixed64` field, a signed, fixed-length 64-bit integer.\n */\n sfixed64() {\n return new pb_long_1.PbLong(this.sfixed32(), this.sfixed32());\n }\n /**\n * Read a `float` field, 32-bit floating point number.\n */\n float() {\n return this.view.getFloat32((this.pos += 4) - 4, true);\n }\n /**\n * Read a `double` field, a 64-bit floating point number.\n */\n double() {\n return this.view.getFloat64((this.pos += 8) - 8, true);\n }\n /**\n * Read a `bytes` field, length-delimited arbitrary data.\n */\n bytes() {\n let len = this.uint32();\n let start = this.pos;\n this.pos += len;\n this.assertBounds();\n return this.buf.subarray(start, start + len);\n }\n /**\n * Read a `string` field, length-delimited data converted to UTF-8 text.\n */\n string() {\n return this.textDecoder.decode(this.bytes());\n }\n}\nexports.BinaryReader = BinaryReader;\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.BinaryWriter = exports.binaryWriteOptions = void 0;\nconst pb_long_1 = require(\"./pb-long\");\nconst goog_varint_1 = require(\"./goog-varint\");\nconst assert_1 = require(\"./assert\");\nconst defaultsWrite = {\n writeUnknownFields: true,\n writerFactory: () => new BinaryWriter(),\n};\n/**\n * Make options for writing binary data form partial options.\n */\nfunction binaryWriteOptions(options) {\n return options ? Object.assign(Object.assign({}, defaultsWrite), options) : defaultsWrite;\n}\nexports.binaryWriteOptions = binaryWriteOptions;\nclass BinaryWriter {\n constructor(textEncoder) {\n /**\n * Previous fork states.\n */\n this.stack = [];\n this.textEncoder = textEncoder !== null && textEncoder !== void 0 ? textEncoder : new TextEncoder();\n this.chunks = [];\n this.buf = [];\n }\n /**\n * Return all bytes written and reset this writer.\n */\n finish() {\n this.chunks.push(new Uint8Array(this.buf)); // flush the buffer\n let len = 0;\n for (let i = 0; i < this.chunks.length; i++)\n len += this.chunks[i].length;\n let bytes = new Uint8Array(len);\n let offset = 0;\n for (let i = 0; i < this.chunks.length; i++) {\n bytes.set(this.chunks[i], offset);\n offset += this.chunks[i].length;\n }\n this.chunks = [];\n return bytes;\n }\n /**\n * Start a new fork for length-delimited data like a message\n * or a packed repeated field.\n *\n * Must be joined later with `join()`.\n */\n fork() {\n this.stack.push({ chunks: this.chunks, buf: this.buf });\n this.chunks = [];\n this.buf = [];\n return this;\n }\n /**\n * Join the last fork. Write its length and bytes, then\n * return to the previous state.\n */\n join() {\n // get chunk of fork\n let chunk = this.finish();\n // restore previous state\n let prev = this.stack.pop();\n if (!prev)\n throw new Error('invalid state, fork stack empty');\n this.chunks = prev.chunks;\n this.buf = prev.buf;\n // write length of chunk as varint\n this.uint32(chunk.byteLength);\n return this.raw(chunk);\n }\n /**\n * Writes a tag (field number and wire type).\n *\n * Equivalent to `uint32( (fieldNo << 3 | type) >>> 0 )`.\n *\n * Generated code should compute the tag ahead of time and call `uint32()`.\n */\n tag(fieldNo, type) {\n return this.uint32((fieldNo << 3 | type) >>> 0);\n }\n /**\n * Write a chunk of raw bytes.\n */\n raw(chunk) {\n if (this.buf.length) {\n this.chunks.push(new Uint8Array(this.buf));\n this.buf = [];\n }\n this.chunks.push(chunk);\n return this;\n }\n /**\n * Write a `uint32` value, an unsigned 32 bit varint.\n */\n uint32(value) {\n assert_1.assertUInt32(value);\n // write value as varint 32, inlined for speed\n while (value > 0x7f) {\n this.buf.push((value & 0x7f) | 0x80);\n value = value >>> 7;\n }\n this.buf.push(value);\n return this;\n }\n /**\n * Write a `int32` value, a signed 32 bit varint.\n */\n int32(value) {\n assert_1.assertInt32(value);\n goog_varint_1.varint32write(value, this.buf);\n return this;\n }\n /**\n * Write a `bool` value, a variant.\n */\n bool(value) {\n this.buf.push(value ? 1 : 0);\n return this;\n }\n /**\n * Write a `bytes` value, length-delimited arbitrary data.\n */\n bytes(value) {\n this.uint32(value.byteLength); // write length of chunk as varint\n return this.raw(value);\n }\n /**\n * Write a `string` value, length-delimited data converted to UTF-8 text.\n */\n string(value) {\n let chunk = this.textEncoder.encode(value);\n this.uint32(chunk.byteLength); // write length of chunk as varint\n return this.raw(chunk);\n }\n /**\n * Write a `float` value, 32-bit floating point number.\n */\n float(value) {\n assert_1.assertFloat32(value);\n let chunk = new Uint8Array(4);\n new DataView(chunk.buffer).setFloat32(0, value, true);\n return this.raw(chunk);\n }\n /**\n * Write a `double` value, a 64-bit floating point number.\n */\n double(value) {\n let chunk = new Uint8Array(8);\n new DataView(chunk.buffer).setFloat64(0, value, true);\n return this.raw(chunk);\n }\n /**\n * Write a `fixed32` value, an unsigned, fixed-length 32-bit integer.\n */\n fixed32(value) {\n assert_1.assertUInt32(value);\n let chunk = new Uint8Array(4);\n new DataView(chunk.buffer).setUint32(0, value, true);\n return this.raw(chunk);\n }\n /**\n * Write a `sfixed32` value, a signed, fixed-length 32-bit integer.\n */\n sfixed32(value) {\n assert_1.assertInt32(value);\n let chunk = new Uint8Array(4);\n new DataView(chunk.buffer).setInt32(0, value, true);\n return this.raw(chunk);\n }\n /**\n * Write a `sint32` value, a signed, zigzag-encoded 32-bit varint.\n */\n sint32(value) {\n assert_1.assertInt32(value);\n // zigzag encode\n value = ((value << 1) ^ (value >> 31)) >>> 0;\n goog_varint_1.varint32write(value, this.buf);\n return this;\n }\n /**\n * Write a `fixed64` value, a signed, fixed-length 64-bit integer.\n */\n sfixed64(value) {\n let chunk = new Uint8Array(8);\n let view = new DataView(chunk.buffer);\n let long = pb_long_1.PbLong.from(value);\n view.setInt32(0, long.lo, true);\n view.setInt32(4, long.hi, true);\n return this.raw(chunk);\n }\n /**\n * Write a `fixed64` value, an unsigned, fixed-length 64 bit integer.\n */\n fixed64(value) {\n let chunk = new Uint8Array(8);\n let view = new DataView(chunk.buffer);\n let long = pb_long_1.PbULong.from(value);\n view.setInt32(0, long.lo, true);\n view.setInt32(4, long.hi, true);\n return this.raw(chunk);\n }\n /**\n * Write a `int64` value, a signed 64-bit varint.\n */\n int64(value) {\n let long = pb_long_1.PbLong.from(value);\n goog_varint_1.varint64write(long.lo, long.hi, this.buf);\n return this;\n }\n /**\n * Write a `sint64` value, a signed, zig-zag-encoded 64-bit varint.\n */\n sint64(value) {\n let long = pb_long_1.PbLong.from(value), \n // zigzag encode\n sign = long.hi >> 31, lo = (long.lo << 1) ^ sign, hi = ((long.hi << 1) | (long.lo >>> 31)) ^ sign;\n goog_varint_1.varint64write(lo, hi, this.buf);\n return this;\n }\n /**\n * Write a `uint64` value, an unsigned 64-bit varint.\n */\n uint64(value) {\n let long = pb_long_1.PbULong.from(value);\n goog_varint_1.varint64write(long.lo, long.hi, this.buf);\n return this;\n }\n}\nexports.BinaryWriter = BinaryWriter;\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.listEnumNumbers = exports.listEnumNames = exports.listEnumValues = exports.isEnumObject = void 0;\n/**\n * Is this a lookup object generated by Typescript, for a Typescript enum\n * generated by protobuf-ts?\n *\n * - No `const enum` (enum must not be inlined, we need reverse mapping).\n * - No string enum (we need int32 for protobuf).\n * - Must have a value for 0 (otherwise, we would need to support custom default values).\n */\nfunction isEnumObject(arg) {\n if (typeof arg != 'object' || arg === null) {\n return false;\n }\n if (!arg.hasOwnProperty(0)) {\n return false;\n }\n for (let k of Object.keys(arg)) {\n let num = parseInt(k);\n if (!Number.isNaN(num)) {\n // is there a name for the number?\n let nam = arg[num];\n if (nam === undefined)\n return false;\n // does the name resolve back to the number?\n if (arg[nam] !== num)\n return false;\n }\n else {\n // is there a number for the name?\n let num = arg[k];\n if (num === undefined)\n return false;\n // is it a string enum?\n if (typeof num !== 'number')\n return false;\n // do we know the number?\n if (arg[num] === undefined)\n return false;\n }\n }\n return true;\n}\nexports.isEnumObject = isEnumObject;\n/**\n * Lists all values of a Typescript enum, as an array of objects with a \"name\"\n * property and a \"number\" property.\n *\n * Note that it is possible that a number appears more than once, because it is\n * possible to have aliases in an enum.\n *\n * Throws if the enum does not adhere to the rules of enums generated by\n * protobuf-ts. See `isEnumObject()`.\n */\nfunction listEnumValues(enumObject) {\n if (!isEnumObject(enumObject))\n throw new Error(\"not a typescript enum object\");\n let values = [];\n for (let [name, number] of Object.entries(enumObject))\n if (typeof number == \"number\")\n values.push({ name, number });\n return values;\n}\nexports.listEnumValues = listEnumValues;\n/**\n * Lists the names of a Typescript enum.\n *\n * Throws if the enum does not adhere to the rules of enums generated by\n * protobuf-ts. See `isEnumObject()`.\n */\nfunction listEnumNames(enumObject) {\n return listEnumValues(enumObject).map(val => val.name);\n}\nexports.listEnumNames = listEnumNames;\n/**\n * Lists the numbers of a Typescript enum.\n *\n * Throws if the enum does not adhere to the rules of enums generated by\n * protobuf-ts. See `isEnumObject()`.\n */\nfunction listEnumNumbers(enumObject) {\n return listEnumValues(enumObject)\n .map(val => val.number)\n .filter((num, index, arr) => arr.indexOf(num) == index);\n}\nexports.listEnumNumbers = listEnumNumbers;\n","\"use strict\";\n// Copyright 2008 Google Inc. All rights reserved.\n//\n// Redistribution and use in source and binary forms, with or without\n// modification, are permitted provided that the following conditions are\n// met:\n//\n// * Redistributions of source code must retain the above copyright\n// notice, this list of conditions and the following disclaimer.\n// * Redistributions in binary form must reproduce the above\n// copyright notice, this list of conditions and the following disclaimer\n// in the documentation and/or other materials provided with the\n// distribution.\n// * Neither the name of Google Inc. nor the names of its\n// contributors may be used to endorse or promote products derived from\n// this software without specific prior written permission.\n//\n// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS\n// \"AS IS\" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT\n// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR\n// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT\n// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,\n// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT\n// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,\n// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY\n// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT\n// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE\n// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n//\n// Code generated by the Protocol Buffer compiler is owned by the owner\n// of the input file used when generating it. This code is not\n// standalone and requires a support library to be linked with it. This\n// support library is itself covered by the above license.\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.varint32read = exports.varint32write = exports.int64toString = exports.int64fromString = exports.varint64write = exports.varint64read = void 0;\n/**\n * Read a 64 bit varint as two JS numbers.\n *\n * Returns tuple:\n * [0]: low bits\n * [0]: high bits\n *\n * Copyright 2008 Google Inc. All rights reserved.\n *\n * See https://github.com/protocolbuffers/protobuf/blob/8a71927d74a4ce34efe2d8769fda198f52d20d12/js/experimental/runtime/kernel/buffer_decoder.js#L175\n */\nfunction varint64read() {\n let lowBits = 0;\n let highBits = 0;\n for (let shift = 0; shift < 28; shift += 7) {\n let b = this.buf[this.pos++];\n lowBits |= (b & 0x7F) << shift;\n if ((b & 0x80) == 0) {\n this.assertBounds();\n return [lowBits, highBits];\n }\n }\n let middleByte = this.buf[this.pos++];\n // last four bits of the first 32 bit number\n lowBits |= (middleByte & 0x0F) << 28;\n // 3 upper bits are part of the next 32 bit number\n highBits = (middleByte & 0x70) >> 4;\n if ((middleByte & 0x80) == 0) {\n this.assertBounds();\n return [lowBits, highBits];\n }\n for (let shift = 3; shift <= 31; shift += 7) {\n let b = this.buf[this.pos++];\n highBits |= (b & 0x7F) << shift;\n if ((b & 0x80) == 0) {\n this.assertBounds();\n return [lowBits, highBits];\n }\n }\n throw new Error('invalid varint');\n}\nexports.varint64read = varint64read;\n/**\n * Write a 64 bit varint, given as two JS numbers, to the given bytes array.\n *\n * Copyright 2008 Google Inc. All rights reserved.\n *\n * See https://github.com/protocolbuffers/protobuf/blob/8a71927d74a4ce34efe2d8769fda198f52d20d12/js/experimental/runtime/kernel/writer.js#L344\n */\nfunction varint64write(lo, hi, bytes) {\n for (let i = 0; i < 28; i = i + 7) {\n const shift = lo >>> i;\n const hasNext = !((shift >>> 7) == 0 && hi == 0);\n const byte = (hasNext ? shift | 0x80 : shift) & 0xFF;\n bytes.push(byte);\n if (!hasNext) {\n return;\n }\n }\n const splitBits = ((lo >>> 28) & 0x0F) | ((hi & 0x07) << 4);\n const hasMoreBits = !((hi >> 3) == 0);\n bytes.push((hasMoreBits ? splitBits | 0x80 : splitBits) & 0xFF);\n if (!hasMoreBits) {\n return;\n }\n for (let i = 3; i < 31; i = i + 7) {\n const shift = hi >>> i;\n const hasNext = !((shift >>> 7) == 0);\n const byte = (hasNext ? shift | 0x80 : shift) & 0xFF;\n bytes.push(byte);\n if (!hasNext) {\n return;\n }\n }\n bytes.push((hi >>> 31) & 0x01);\n}\nexports.varint64write = varint64write;\n// constants for binary math\nconst TWO_PWR_32_DBL = (1 << 16) * (1 << 16);\n/**\n * Parse decimal string of 64 bit integer value as two JS numbers.\n *\n * Returns tuple:\n * [0]: minus sign?\n * [1]: low bits\n * [2]: high bits\n *\n * Copyright 2008 Google Inc.\n */\nfunction int64fromString(dec) {\n // Check for minus sign.\n let minus = dec[0] == '-';\n if (minus)\n dec = dec.slice(1);\n // Work 6 decimal digits at a time, acting like we're converting base 1e6\n // digits to binary. This is safe to do with floating point math because\n // Number.isSafeInteger(ALL_32_BITS * 1e6) == true.\n const base = 1e6;\n let lowBits = 0;\n let highBits = 0;\n function add1e6digit(begin, end) {\n // Note: Number('') is 0.\n const digit1e6 = Number(dec.slice(begin, end));\n highBits *= base;\n lowBits = lowBits * base + digit1e6;\n // Carry bits from lowBits to highBits\n if (lowBits >= TWO_PWR_32_DBL) {\n highBits = highBits + ((lowBits / TWO_PWR_32_DBL) | 0);\n lowBits = lowBits % TWO_PWR_32_DBL;\n }\n }\n add1e6digit(-24, -18);\n add1e6digit(-18, -12);\n add1e6digit(-12, -6);\n add1e6digit(-6);\n return [minus, lowBits, highBits];\n}\nexports.int64fromString = int64fromString;\n/**\n * Format 64 bit integer value (as two JS numbers) to decimal string.\n *\n * Copyright 2008 Google Inc.\n */\nfunction int64toString(bitsLow, bitsHigh) {\n // Skip the expensive conversion if the number is small enough to use the\n // built-in conversions.\n if ((bitsHigh >>> 0) <= 0x1FFFFF) {\n return '' + (TWO_PWR_32_DBL * bitsHigh + (bitsLow >>> 0));\n }\n // What this code is doing is essentially converting the input number from\n // base-2 to base-1e7, which allows us to represent the 64-bit range with\n // only 3 (very large) digits. Those digits are then trivial to convert to\n // a base-10 string.\n // The magic numbers used here are -\n // 2^24 = 16777216 = (1,6777216) in base-1e7.\n // 2^48 = 281474976710656 = (2,8147497,6710656) in base-1e7.\n // Split 32:32 representation into 16:24:24 representation so our\n // intermediate digits don't overflow.\n let low = bitsLow & 0xFFFFFF;\n let mid = (((bitsLow >>> 24) | (bitsHigh << 8)) >>> 0) & 0xFFFFFF;\n let high = (bitsHigh >> 16) & 0xFFFF;\n // Assemble our three base-1e7 digits, ignoring carries. The maximum\n // value in a digit at this step is representable as a 48-bit integer, which\n // can be stored in a 64-bit floating point number.\n let digitA = low + (mid * 6777216) + (high * 6710656);\n let digitB = mid + (high * 8147497);\n let digitC = (high * 2);\n // Apply carries from A to B and from B to C.\n let base = 10000000;\n if (digitA >= base) {\n digitB += Math.floor(digitA / base);\n digitA %= base;\n }\n if (digitB >= base) {\n digitC += Math.floor(digitB / base);\n digitB %= base;\n }\n // Convert base-1e7 digits to base-10, with optional leading zeroes.\n function decimalFrom1e7(digit1e7, needLeadingZeros) {\n let partial = digit1e7 ? String(digit1e7) : '';\n if (needLeadingZeros) {\n return '0000000'.slice(partial.length) + partial;\n }\n return partial;\n }\n return decimalFrom1e7(digitC, /*needLeadingZeros=*/ 0) +\n decimalFrom1e7(digitB, /*needLeadingZeros=*/ digitC) +\n // If the final 1e7 digit didn't need leading zeros, we would have\n // returned via the trivial code path at the top.\n decimalFrom1e7(digitA, /*needLeadingZeros=*/ 1);\n}\nexports.int64toString = int64toString;\n/**\n * Write a 32 bit varint, signed or unsigned. Same as `varint64write(0, value, bytes)`\n *\n * Copyright 2008 Google Inc. All rights reserved.\n *\n * See https://github.com/protocolbuffers/protobuf/blob/1b18833f4f2a2f681f4e4a25cdf3b0a43115ec26/js/binary/encoder.js#L144\n */\nfunction varint32write(value, bytes) {\n if (value >= 0) {\n // write value as varint 32\n while (value > 0x7f) {\n bytes.push((value & 0x7f) | 0x80);\n value = value >>> 7;\n }\n bytes.push(value);\n }\n else {\n for (let i = 0; i < 9; i++) {\n bytes.push(value & 127 | 128);\n value = value >> 7;\n }\n bytes.push(1);\n }\n}\nexports.varint32write = varint32write;\n/**\n * Read an unsigned 32 bit varint.\n *\n * See https://github.com/protocolbuffers/protobuf/blob/8a71927d74a4ce34efe2d8769fda198f52d20d12/js/experimental/runtime/kernel/buffer_decoder.js#L220\n */\nfunction varint32read() {\n let b = this.buf[this.pos++];\n let result = b & 0x7F;\n if ((b & 0x80) == 0) {\n this.assertBounds();\n return result;\n }\n b = this.buf[this.pos++];\n result |= (b & 0x7F) << 7;\n if ((b & 0x80) == 0) {\n this.assertBounds();\n return result;\n }\n b = this.buf[this.pos++];\n result |= (b & 0x7F) << 14;\n if ((b & 0x80) == 0) {\n this.assertBounds();\n return result;\n }\n b = this.buf[this.pos++];\n result |= (b & 0x7F) << 21;\n if ((b & 0x80) == 0) {\n this.assertBounds();\n return result;\n }\n // Extract only last 4 bits\n b = this.buf[this.pos++];\n result |= (b & 0x0F) << 28;\n for (let readBytes = 5; ((b & 0x80) !== 0) && readBytes < 10; readBytes++)\n b = this.buf[this.pos++];\n if ((b & 0x80) != 0)\n throw new Error('invalid varint');\n this.assertBounds();\n // Result can have 32 bits, convert it to unsigned\n return result >>> 0;\n}\nexports.varint32read = varint32read;\n","\"use strict\";\n// Public API of the protobuf-ts runtime.\n// Note: we do not use `export * from ...` to help tree shakers,\n// webpack verbose output hints that this should be useful\nObject.defineProperty(exports, \"__esModule\", { value: true });\n// Convenience JSON typings and corresponding type guards\nvar json_typings_1 = require(\"./json-typings\");\nObject.defineProperty(exports, \"typeofJsonValue\", { enumerable: true, get: function () { return json_typings_1.typeofJsonValue; } });\nObject.defineProperty(exports, \"isJsonObject\", { enumerable: true, get: function () { return json_typings_1.isJsonObject; } });\n// Base 64 encoding\nvar base64_1 = require(\"./base64\");\nObject.defineProperty(exports, \"base64decode\", { enumerable: true, get: function () { return base64_1.base64decode; } });\nObject.defineProperty(exports, \"base64encode\", { enumerable: true, get: function () { return base64_1.base64encode; } });\n// UTF8 encoding\nvar protobufjs_utf8_1 = require(\"./protobufjs-utf8\");\nObject.defineProperty(exports, \"utf8read\", { enumerable: true, get: function () { return protobufjs_utf8_1.utf8read; } });\n// Binary format contracts, options for reading and writing, for example\nvar binary_format_contract_1 = require(\"./binary-format-contract\");\nObject.defineProperty(exports, \"WireType\", { enumerable: true, get: function () { return binary_format_contract_1.WireType; } });\nObject.defineProperty(exports, \"mergeBinaryOptions\", { enumerable: true, get: function () { return binary_format_contract_1.mergeBinaryOptions; } });\nObject.defineProperty(exports, \"UnknownFieldHandler\", { enumerable: true, get: function () { return binary_format_contract_1.UnknownFieldHandler; } });\n// Standard IBinaryReader implementation\nvar binary_reader_1 = require(\"./binary-reader\");\nObject.defineProperty(exports, \"BinaryReader\", { enumerable: true, get: function () { return binary_reader_1.BinaryReader; } });\nObject.defineProperty(exports, \"binaryReadOptions\", { enumerable: true, get: function () { return binary_reader_1.binaryReadOptions; } });\n// Standard IBinaryWriter implementation\nvar binary_writer_1 = require(\"./binary-writer\");\nObject.defineProperty(exports, \"BinaryWriter\", { enumerable: true, get: function () { return binary_writer_1.BinaryWriter; } });\nObject.defineProperty(exports, \"binaryWriteOptions\", { enumerable: true, get: function () { return binary_writer_1.binaryWriteOptions; } });\n// Int64 and UInt64 implementations required for the binary format\nvar pb_long_1 = require(\"./pb-long\");\nObject.defineProperty(exports, \"PbLong\", { enumerable: true, get: function () { return pb_long_1.PbLong; } });\nObject.defineProperty(exports, \"PbULong\", { enumerable: true, get: function () { return pb_long_1.PbULong; } });\n// JSON format contracts, options for reading and writing, for example\nvar json_format_contract_1 = require(\"./json-format-contract\");\nObject.defineProperty(exports, \"jsonReadOptions\", { enumerable: true, get: function () { return json_format_contract_1.jsonReadOptions; } });\nObject.defineProperty(exports, \"jsonWriteOptions\", { enumerable: true, get: function () { return json_format_contract_1.jsonWriteOptions; } });\nObject.defineProperty(exports, \"mergeJsonOptions\", { enumerable: true, get: function () { return json_format_contract_1.mergeJsonOptions; } });\n// Message type contract\nvar message_type_contract_1 = require(\"./message-type-contract\");\nObject.defineProperty(exports, \"MESSAGE_TYPE\", { enumerable: true, get: function () { return message_type_contract_1.MESSAGE_TYPE; } });\n// Message type implementation via reflection\nvar message_type_1 = require(\"./message-type\");\nObject.defineProperty(exports, \"MessageType\", { enumerable: true, get: function () { return message_type_1.MessageType; } });\n// Reflection info, generated by the plugin, exposed to the user, used by reflection ops\nvar reflection_info_1 = require(\"./reflection-info\");\nObject.defineProperty(exports, \"ScalarType\", { enumerable: true, get: function () { return reflection_info_1.ScalarType; } });\nObject.defineProperty(exports, \"LongType\", { enumerable: true, get: function () { return reflection_info_1.LongType; } });\nObject.defineProperty(exports, \"RepeatType\", { enumerable: true, get: function () { return reflection_info_1.RepeatType; } });\nObject.defineProperty(exports, \"normalizeFieldInfo\", { enumerable: true, get: function () { return reflection_info_1.normalizeFieldInfo; } });\nObject.defineProperty(exports, \"readFieldOptions\", { enumerable: true, get: function () { return reflection_info_1.readFieldOptions; } });\nObject.defineProperty(exports, \"readFieldOption\", { enumerable: true, get: function () { return reflection_info_1.readFieldOption; } });\nObject.defineProperty(exports, \"readMessageOption\", { enumerable: true, get: function () { return reflection_info_1.readMessageOption; } });\n// Message operations via reflection\nvar reflection_type_check_1 = require(\"./reflection-type-check\");\nObject.defineProperty(exports, \"ReflectionTypeCheck\", { enumerable: true, get: function () { return reflection_type_check_1.ReflectionTypeCheck; } });\nvar reflection_create_1 = require(\"./reflection-create\");\nObject.defineProperty(exports, \"reflectionCreate\", { enumerable: true, get: function () { return reflection_create_1.reflectionCreate; } });\nvar reflection_scalar_default_1 = require(\"./reflection-scalar-default\");\nObject.defineProperty(exports, \"reflectionScalarDefault\", { enumerable: true, get: function () { return reflection_scalar_default_1.reflectionScalarDefault; } });\nvar reflection_merge_partial_1 = require(\"./reflection-merge-partial\");\nObject.defineProperty(exports, \"reflectionMergePartial\", { enumerable: true, get: function () { return reflection_merge_partial_1.reflectionMergePartial; } });\nvar reflection_equals_1 = require(\"./reflection-equals\");\nObject.defineProperty(exports, \"reflectionEquals\", { enumerable: true, get: function () { return reflection_equals_1.reflectionEquals; } });\nvar reflection_binary_reader_1 = require(\"./reflection-binary-reader\");\nObject.defineProperty(exports, \"ReflectionBinaryReader\", { enumerable: true, get: function () { return reflection_binary_reader_1.ReflectionBinaryReader; } });\nvar reflection_binary_writer_1 = require(\"./reflection-binary-writer\");\nObject.defineProperty(exports, \"ReflectionBinaryWriter\", { enumerable: true, get: function () { return reflection_binary_writer_1.ReflectionBinaryWriter; } });\nvar reflection_json_reader_1 = require(\"./reflection-json-reader\");\nObject.defineProperty(exports, \"ReflectionJsonReader\", { enumerable: true, get: function () { return reflection_json_reader_1.ReflectionJsonReader; } });\nvar reflection_json_writer_1 = require(\"./reflection-json-writer\");\nObject.defineProperty(exports, \"ReflectionJsonWriter\", { enumerable: true, get: function () { return reflection_json_writer_1.ReflectionJsonWriter; } });\nvar reflection_contains_message_type_1 = require(\"./reflection-contains-message-type\");\nObject.defineProperty(exports, \"containsMessageType\", { enumerable: true, get: function () { return reflection_contains_message_type_1.containsMessageType; } });\n// Oneof helpers\nvar oneof_1 = require(\"./oneof\");\nObject.defineProperty(exports, \"isOneofGroup\", { enumerable: true, get: function () { return oneof_1.isOneofGroup; } });\nObject.defineProperty(exports, \"setOneofValue\", { enumerable: true, get: function () { return oneof_1.setOneofValue; } });\nObject.defineProperty(exports, \"getOneofValue\", { enumerable: true, get: function () { return oneof_1.getOneofValue; } });\nObject.defineProperty(exports, \"clearOneofValue\", { enumerable: true, get: function () { return oneof_1.clearOneofValue; } });\nObject.defineProperty(exports, \"getSelectedOneofValue\", { enumerable: true, get: function () { return oneof_1.getSelectedOneofValue; } });\n// Enum object type guard and reflection util, may be interesting to the user.\nvar enum_object_1 = require(\"./enum-object\");\nObject.defineProperty(exports, \"listEnumValues\", { enumerable: true, get: function () { return enum_object_1.listEnumValues; } });\nObject.defineProperty(exports, \"listEnumNames\", { enumerable: true, get: function () { return enum_object_1.listEnumNames; } });\nObject.defineProperty(exports, \"listEnumNumbers\", { enumerable: true, get: function () { return enum_object_1.listEnumNumbers; } });\nObject.defineProperty(exports, \"isEnumObject\", { enumerable: true, get: function () { return enum_object_1.isEnumObject; } });\n// lowerCamelCase() is exported for plugin, rpc-runtime and other rpc packages\nvar lower_camel_case_1 = require(\"./lower-camel-case\");\nObject.defineProperty(exports, \"lowerCamelCase\", { enumerable: true, get: function () { return lower_camel_case_1.lowerCamelCase; } });\n// assertion functions are exported for plugin, may also be useful to user\nvar assert_1 = require(\"./assert\");\nObject.defineProperty(exports, \"assert\", { enumerable: true, get: function () { return assert_1.assert; } });\nObject.defineProperty(exports, \"assertNever\", { enumerable: true, get: function () { return assert_1.assertNever; } });\nObject.defineProperty(exports, \"assertInt32\", { enumerable: true, get: function () { return assert_1.assertInt32; } });\nObject.defineProperty(exports, \"assertUInt32\", { enumerable: true, get: function () { return assert_1.assertUInt32; } });\nObject.defineProperty(exports, \"assertFloat32\", { enumerable: true, get: function () { return assert_1.assertFloat32; } });\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.mergeJsonOptions = exports.jsonWriteOptions = exports.jsonReadOptions = void 0;\nconst defaultsWrite = {\n emitDefaultValues: false,\n enumAsInteger: false,\n useProtoFieldName: false,\n prettySpaces: 0,\n}, defaultsRead = {\n ignoreUnknownFields: false,\n};\n/**\n * Make options for reading JSON data from partial options.\n */\nfunction jsonReadOptions(options) {\n return options ? Object.assign(Object.assign({}, defaultsRead), options) : defaultsRead;\n}\nexports.jsonReadOptions = jsonReadOptions;\n/**\n * Make options for writing JSON data from partial options.\n */\nfunction jsonWriteOptions(options) {\n return options ? Object.assign(Object.assign({}, defaultsWrite), options) : defaultsWrite;\n}\nexports.jsonWriteOptions = jsonWriteOptions;\n/**\n * Merges JSON write or read options. Later values override earlier values. Type registries are merged.\n */\nfunction mergeJsonOptions(a, b) {\n var _a, _b;\n let c = Object.assign(Object.assign({}, a), b);\n c.typeRegistry = [...((_a = a === null || a === void 0 ? void 0 : a.typeRegistry) !== null && _a !== void 0 ? _a : []), ...((_b = b === null || b === void 0 ? void 0 : b.typeRegistry) !== null && _b !== void 0 ? _b : [])];\n return c;\n}\nexports.mergeJsonOptions = mergeJsonOptions;\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.isJsonObject = exports.typeofJsonValue = void 0;\n/**\n * Get the type of a JSON value.\n * Distinguishes between array, null and object.\n */\nfunction typeofJsonValue(value) {\n let t = typeof value;\n if (t == \"object\") {\n if (Array.isArray(value))\n return \"array\";\n if (value === null)\n return \"null\";\n }\n return t;\n}\nexports.typeofJsonValue = typeofJsonValue;\n/**\n * Is this a JSON object (instead of an array or null)?\n */\nfunction isJsonObject(value) {\n return value !== null && typeof value == \"object\" && !Array.isArray(value);\n}\nexports.isJsonObject = isJsonObject;\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.lowerCamelCase = void 0;\n/**\n * Converts snake_case to lowerCamelCase.\n *\n * Should behave like protoc:\n * https://github.com/protocolbuffers/protobuf/blob/e8ae137c96444ea313485ed1118c5e43b2099cf1/src/google/protobuf/compiler/java/java_helpers.cc#L118\n */\nfunction lowerCamelCase(snakeCase) {\n let capNext = false;\n const sb = [];\n for (let i = 0; i < snakeCase.length; i++) {\n let next = snakeCase.charAt(i);\n if (next == '_') {\n capNext = true;\n }\n else if (/\\d/.test(next)) {\n sb.push(next);\n capNext = true;\n }\n else if (capNext) {\n sb.push(next.toUpperCase());\n capNext = false;\n }\n else if (i == 0) {\n sb.push(next.toLowerCase());\n }\n else {\n sb.push(next);\n }\n }\n return sb.join('');\n}\nexports.lowerCamelCase = lowerCamelCase;\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.MESSAGE_TYPE = void 0;\n/**\n * The symbol used as a key on message objects to store the message type.\n *\n * Note that this is an experimental feature - it is here to stay, but\n * implementation details may change without notice.\n */\nexports.MESSAGE_TYPE = Symbol.for(\"protobuf-ts/message-type\");\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.MessageType = void 0;\nconst message_type_contract_1 = require(\"./message-type-contract\");\nconst reflection_info_1 = require(\"./reflection-info\");\nconst reflection_type_check_1 = require(\"./reflection-type-check\");\nconst reflection_json_reader_1 = require(\"./reflection-json-reader\");\nconst reflection_json_writer_1 = require(\"./reflection-json-writer\");\nconst reflection_binary_reader_1 = require(\"./reflection-binary-reader\");\nconst reflection_binary_writer_1 = require(\"./reflection-binary-writer\");\nconst reflection_create_1 = require(\"./reflection-create\");\nconst reflection_merge_partial_1 = require(\"./reflection-merge-partial\");\nconst json_typings_1 = require(\"./json-typings\");\nconst json_format_contract_1 = require(\"./json-format-contract\");\nconst reflection_equals_1 = require(\"./reflection-equals\");\nconst binary_writer_1 = require(\"./binary-writer\");\nconst binary_reader_1 = require(\"./binary-reader\");\nconst baseDescriptors = Object.getOwnPropertyDescriptors(Object.getPrototypeOf({}));\n/**\n * This standard message type provides reflection-based\n * operations to work with a message.\n */\nclass MessageType {\n constructor(name, fields, options) {\n this.defaultCheckDepth = 16;\n this.typeName = name;\n this.fields = fields.map(reflection_info_1.normalizeFieldInfo);\n this.options = options !== null && options !== void 0 ? options : {};\n this.messagePrototype = Object.create(null, Object.assign(Object.assign({}, baseDescriptors), { [message_type_contract_1.MESSAGE_TYPE]: { value: this } }));\n this.refTypeCheck = new reflection_type_check_1.ReflectionTypeCheck(this);\n this.refJsonReader = new reflection_json_reader_1.ReflectionJsonReader(this);\n this.refJsonWriter = new reflection_json_writer_1.ReflectionJsonWriter(this);\n this.refBinReader = new reflection_binary_reader_1.ReflectionBinaryReader(this);\n this.refBinWriter = new reflection_binary_writer_1.ReflectionBinaryWriter(this);\n }\n create(value) {\n let message = reflection_create_1.reflectionCreate(this);\n if (value !== undefined) {\n reflection_merge_partial_1.reflectionMergePartial(this, message, value);\n }\n return message;\n }\n /**\n * Clone the message.\n *\n * Unknown fields are discarded.\n */\n clone(message) {\n let copy = this.create();\n reflection_merge_partial_1.reflectionMergePartial(this, copy, message);\n return copy;\n }\n /**\n * Determines whether two message of the same type have the same field values.\n * Checks for deep equality, traversing repeated fields, oneof groups, maps\n * and messages recursively.\n * Will also return true if both messages are `undefined`.\n */\n equals(a, b) {\n return reflection_equals_1.reflectionEquals(this, a, b);\n }\n /**\n * Is the given value assignable to our message type\n * and contains no [excess properties](https://www.typescriptlang.org/docs/handbook/interfaces.html#excess-property-checks)?\n */\n is(arg, depth = this.defaultCheckDepth) {\n return this.refTypeCheck.is(arg, depth, false);\n }\n /**\n * Is the given value assignable to our message type,\n * regardless of [excess properties](https://www.typescriptlang.org/docs/handbook/interfaces.html#excess-property-checks)?\n */\n isAssignable(arg, depth = this.defaultCheckDepth) {\n return this.refTypeCheck.is(arg, depth, true);\n }\n /**\n * Copy partial data into the target message.\n */\n mergePartial(target, source) {\n reflection_merge_partial_1.reflectionMergePartial(this, target, source);\n }\n /**\n * Create a new message from binary format.\n */\n fromBinary(data, options) {\n let opt = binary_reader_1.binaryReadOptions(options);\n return this.internalBinaryRead(opt.readerFactory(data), data.byteLength, opt);\n }\n /**\n * Read a new message from a JSON value.\n */\n fromJson(json, options) {\n return this.internalJsonRead(json, json_format_contract_1.jsonReadOptions(options));\n }\n /**\n * Read a new message from a JSON string.\n * This is equivalent to `T.fromJson(JSON.parse(json))`.\n */\n fromJsonString(json, options) {\n let value = JSON.parse(json);\n return this.fromJson(value, options);\n }\n /**\n * Write the message to canonical JSON value.\n */\n toJson(message, options) {\n return this.internalJsonWrite(message, json_format_contract_1.jsonWriteOptions(options));\n }\n /**\n * Convert the message to canonical JSON string.\n * This is equivalent to `JSON.stringify(T.toJson(t))`\n */\n toJsonString(message, options) {\n var _a;\n let value = this.toJson(message, options);\n return JSON.stringify(value, null, (_a = options === null || options === void 0 ? void 0 : options.prettySpaces) !== null && _a !== void 0 ? _a : 0);\n }\n /**\n * Write the message to binary format.\n */\n toBinary(message, options) {\n let opt = binary_writer_1.binaryWriteOptions(options);\n return this.internalBinaryWrite(message, opt.writerFactory(), opt).finish();\n }\n /**\n * This is an internal method. If you just want to read a message from\n * JSON, use `fromJson()` or `fromJsonString()`.\n *\n * Reads JSON value and merges the fields into the target\n * according to protobuf rules. If the target is omitted,\n * a new instance is created first.\n */\n internalJsonRead(json, options, target) {\n if (json !== null && typeof json == \"object\" && !Array.isArray(json)) {\n let message = target !== null && target !== void 0 ? target : this.create();\n this.refJsonReader.read(json, message, options);\n return message;\n }\n throw new Error(`Unable to parse message ${this.typeName} from JSON ${json_typings_1.typeofJsonValue(json)}.`);\n }\n /**\n * This is an internal method. If you just want to write a message\n * to JSON, use `toJson()` or `toJsonString().\n *\n * Writes JSON value and returns it.\n */\n internalJsonWrite(message, options) {\n return this.refJsonWriter.write(message, options);\n }\n /**\n * This is an internal method. If you just want to write a message\n * in binary format, use `toBinary()`.\n *\n * Serializes the message in binary format and appends it to the given\n * writer. Returns passed writer.\n */\n internalBinaryWrite(message, writer, options) {\n this.refBinWriter.write(message, writer, options);\n return writer;\n }\n /**\n * This is an internal method. If you just want to read a message from\n * binary data, use `fromBinary()`.\n *\n * Reads data from binary format and merges the fields into\n * the target according to protobuf rules. If the target is\n * omitted, a new instance is created first.\n */\n internalBinaryRead(reader, length, options, target) {\n let message = target !== null && target !== void 0 ? target : this.create();\n this.refBinReader.read(reader, message, options, length);\n return message;\n }\n}\nexports.MessageType = MessageType;\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.getSelectedOneofValue = exports.clearOneofValue = exports.setUnknownOneofValue = exports.setOneofValue = exports.getOneofValue = exports.isOneofGroup = void 0;\n/**\n * Is the given value a valid oneof group?\n *\n * We represent protobuf `oneof` as algebraic data types (ADT) in generated\n * code. But when working with messages of unknown type, the ADT does not\n * help us.\n *\n * This type guard checks if the given object adheres to the ADT rules, which\n * are as follows:\n *\n * 1) Must be an object.\n *\n * 2) Must have a \"oneofKind\" discriminator property.\n *\n * 3) If \"oneofKind\" is `undefined`, no member field is selected. The object\n * must not have any other properties.\n *\n * 4) If \"oneofKind\" is a `string`, the member field with this name is\n * selected.\n *\n * 5) If a member field is selected, the object must have a second property\n * with this name. The property must not be `undefined`.\n *\n * 6) No extra properties are allowed. The object has either one property\n * (no selection) or two properties (selection).\n *\n */\nfunction isOneofGroup(any) {\n if (typeof any != 'object' || any === null || !any.hasOwnProperty('oneofKind')) {\n return false;\n }\n switch (typeof any.oneofKind) {\n case \"string\":\n if (any[any.oneofKind] === undefined)\n return false;\n return Object.keys(any).length == 2;\n case \"undefined\":\n return Object.keys(any).length == 1;\n default:\n return false;\n }\n}\nexports.isOneofGroup = isOneofGroup;\n/**\n * Returns the value of the given field in a oneof group.\n */\nfunction getOneofValue(oneof, kind) {\n return oneof[kind];\n}\nexports.getOneofValue = getOneofValue;\nfunction setOneofValue(oneof, kind, value) {\n if (oneof.oneofKind !== undefined) {\n delete oneof[oneof.oneofKind];\n }\n oneof.oneofKind = kind;\n if (value !== undefined) {\n oneof[kind] = value;\n }\n}\nexports.setOneofValue = setOneofValue;\nfunction setUnknownOneofValue(oneof, kind, value) {\n if (oneof.oneofKind !== undefined) {\n delete oneof[oneof.oneofKind];\n }\n oneof.oneofKind = kind;\n if (value !== undefined && kind !== undefined) {\n oneof[kind] = value;\n }\n}\nexports.setUnknownOneofValue = setUnknownOneofValue;\n/**\n * Removes the selected field in a oneof group.\n *\n * Note that the recommended way to modify a oneof group is to set\n * a new object:\n *\n * ```ts\n * message.result = { oneofKind: undefined };\n * ```\n */\nfunction clearOneofValue(oneof) {\n if (oneof.oneofKind !== undefined) {\n delete oneof[oneof.oneofKind];\n }\n oneof.oneofKind = undefined;\n}\nexports.clearOneofValue = clearOneofValue;\n/**\n * Returns the selected value of the given oneof group.\n *\n * Not that the recommended way to access a oneof group is to check\n * the \"oneofKind\" property and let TypeScript narrow down the union\n * type for you:\n *\n * ```ts\n * if (message.result.oneofKind === \"error\") {\n * message.result.error; // string\n * }\n * ```\n *\n * In the rare case you just need the value, and do not care about\n * which protobuf field is selected, you can use this function\n * for convenience.\n */\nfunction getSelectedOneofValue(oneof) {\n if (oneof.oneofKind === undefined) {\n return undefined;\n }\n return oneof[oneof.oneofKind];\n}\nexports.getSelectedOneofValue = getSelectedOneofValue;\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.PbLong = exports.PbULong = exports.detectBi = void 0;\nconst goog_varint_1 = require(\"./goog-varint\");\nlet BI;\nfunction detectBi() {\n const dv = new DataView(new ArrayBuffer(8));\n const ok = globalThis.BigInt !== undefined\n && typeof dv.getBigInt64 === \"function\"\n && typeof dv.getBigUint64 === \"function\"\n && typeof dv.setBigInt64 === \"function\"\n && typeof dv.setBigUint64 === \"function\";\n BI = ok ? {\n MIN: BigInt(\"-9223372036854775808\"),\n MAX: BigInt(\"9223372036854775807\"),\n UMIN: BigInt(\"0\"),\n UMAX: BigInt(\"18446744073709551615\"),\n C: BigInt,\n V: dv,\n } : undefined;\n}\nexports.detectBi = detectBi;\ndetectBi();\nfunction assertBi(bi) {\n if (!bi)\n throw new Error(\"BigInt unavailable, see https://github.com/timostamm/protobuf-ts/blob/v1.0.8/MANUAL.md#bigint-support\");\n}\n// used to validate from(string) input (when bigint is unavailable)\nconst RE_DECIMAL_STR = /^-?[0-9]+$/;\n// constants for binary math\nconst TWO_PWR_32_DBL = 0x100000000;\nconst HALF_2_PWR_32 = 0x080000000;\n// base class for PbLong and PbULong provides shared code\nclass SharedPbLong {\n /**\n * Create a new instance with the given bits.\n */\n constructor(lo, hi) {\n this.lo = lo | 0;\n this.hi = hi | 0;\n }\n /**\n * Is this instance equal to 0?\n */\n isZero() {\n return this.lo == 0 && this.hi == 0;\n }\n /**\n * Convert to a native number.\n */\n toNumber() {\n let result = this.hi * TWO_PWR_32_DBL + (this.lo >>> 0);\n if (!Number.isSafeInteger(result))\n throw new Error(\"cannot convert to safe number\");\n return result;\n }\n}\n/**\n * 64-bit unsigned integer as two 32-bit values.\n * Converts between `string`, `number` and `bigint` representations.\n */\nclass PbULong extends SharedPbLong {\n /**\n * Create instance from a `string`, `number` or `bigint`.\n */\n static from(value) {\n if (BI)\n // noinspection FallThroughInSwitchStatementJS\n switch (typeof value) {\n case \"string\":\n if (value == \"0\")\n return this.ZERO;\n if (value == \"\")\n throw new Error('string is no integer');\n value = BI.C(value);\n case \"number\":\n if (value === 0)\n return this.ZERO;\n value = BI.C(value);\n case \"bigint\":\n if (!value)\n return this.ZERO;\n if (value < BI.UMIN)\n throw new Error('signed value for ulong');\n if (value > BI.UMAX)\n throw new Error('ulong too large');\n BI.V.setBigUint64(0, value, true);\n return new PbULong(BI.V.getInt32(0, true), BI.V.getInt32(4, true));\n }\n else\n switch (typeof value) {\n case \"string\":\n if (value == \"0\")\n return this.ZERO;\n value = value.trim();\n if (!RE_DECIMAL_STR.test(value))\n throw new Error('string is no integer');\n let [minus, lo, hi] = goog_varint_1.int64fromString(value);\n if (minus)\n throw new Error('signed value for ulong');\n return new PbULong(lo, hi);\n case \"number\":\n if (value == 0)\n return this.ZERO;\n if (!Number.isSafeInteger(value))\n throw new Error('number is no integer');\n if (value < 0)\n throw new Error('signed value for ulong');\n return new PbULong(value, value / TWO_PWR_32_DBL);\n }\n throw new Error('unknown value ' + typeof value);\n }\n /**\n * Convert to decimal string.\n */\n toString() {\n return BI ? this.toBigInt().toString() : goog_varint_1.int64toString(this.lo, this.hi);\n }\n /**\n * Convert to native bigint.\n */\n toBigInt() {\n assertBi(BI);\n BI.V.setInt32(0, this.lo, true);\n BI.V.setInt32(4, this.hi, true);\n return BI.V.getBigUint64(0, true);\n }\n}\nexports.PbULong = PbULong;\n/**\n * ulong 0 singleton.\n */\nPbULong.ZERO = new PbULong(0, 0);\n/**\n * 64-bit signed integer as two 32-bit values.\n * Converts between `string`, `number` and `bigint` representations.\n */\nclass PbLong extends SharedPbLong {\n /**\n * Create instance from a `string`, `number` or `bigint`.\n */\n static from(value) {\n if (BI)\n // noinspection FallThroughInSwitchStatementJS\n switch (typeof value) {\n case \"string\":\n if (value == \"0\")\n return this.ZERO;\n if (value == \"\")\n throw new Error('string is no integer');\n value = BI.C(value);\n case \"number\":\n if (value === 0)\n return this.ZERO;\n value = BI.C(value);\n case \"bigint\":\n if (!value)\n return this.ZERO;\n if (value < BI.MIN)\n throw new Error('signed long too small');\n if (value > BI.MAX)\n throw new Error('signed long too large');\n BI.V.setBigInt64(0, value, true);\n return new PbLong(BI.V.getInt32(0, true), BI.V.getInt32(4, true));\n }\n else\n switch (typeof value) {\n case \"string\":\n if (value == \"0\")\n return this.ZERO;\n value = value.trim();\n if (!RE_DECIMAL_STR.test(value))\n throw new Error('string is no integer');\n let [minus, lo, hi] = goog_varint_1.int64fromString(value);\n if (minus) {\n if (hi > HALF_2_PWR_32 || (hi == HALF_2_PWR_32 && lo != 0))\n throw new Error('signed long too small');\n }\n else if (hi >= HALF_2_PWR_32)\n throw new Error('signed long too large');\n let pbl = new PbLong(lo, hi);\n return minus ? pbl.negate() : pbl;\n case \"number\":\n if (value == 0)\n return this.ZERO;\n if (!Number.isSafeInteger(value))\n throw new Error('number is no integer');\n return value > 0\n ? new PbLong(value, value / TWO_PWR_32_DBL)\n : new PbLong(-value, -value / TWO_PWR_32_DBL).negate();\n }\n throw new Error('unknown value ' + typeof value);\n }\n /**\n * Do we have a minus sign?\n */\n isNegative() {\n return (this.hi & HALF_2_PWR_32) !== 0;\n }\n /**\n * Negate two's complement.\n * Invert all the bits and add one to the result.\n */\n negate() {\n let hi = ~this.hi, lo = this.lo;\n if (lo)\n lo = ~lo + 1;\n else\n hi += 1;\n return new PbLong(lo, hi);\n }\n /**\n * Convert to decimal string.\n */\n toString() {\n if (BI)\n return this.toBigInt().toString();\n if (this.isNegative()) {\n let n = this.negate();\n return '-' + goog_varint_1.int64toString(n.lo, n.hi);\n }\n return goog_varint_1.int64toString(this.lo, this.hi);\n }\n /**\n * Convert to native bigint.\n */\n toBigInt() {\n assertBi(BI);\n BI.V.setInt32(0, this.lo, true);\n BI.V.setInt32(4, this.hi, true);\n return BI.V.getBigInt64(0, true);\n }\n}\nexports.PbLong = PbLong;\n/**\n * long 0 singleton.\n */\nPbLong.ZERO = new PbLong(0, 0);\n","\"use strict\";\n// Copyright (c) 2016, Daniel Wirtz All rights reserved.\n//\n// Redistribution and use in source and binary forms, with or without\n// modification, are permitted provided that the following conditions are\n// met:\n//\n// * Redistributions of source code must retain the above copyright\n// notice, this list of conditions and the following disclaimer.\n// * Redistributions in binary form must reproduce the above copyright\n// notice, this list of conditions and the following disclaimer in the\n// documentation and/or other materials provided with the distribution.\n// * Neither the name of its author, nor the names of its contributors\n// may be used to endorse or promote products derived from this software\n// without specific prior written permission.\n//\n// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS\n// \"AS IS\" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT\n// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR\n// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT\n// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,\n// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT\n// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,\n// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY\n// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT\n// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE\n// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.utf8read = void 0;\nconst fromCharCodes = (chunk) => String.fromCharCode.apply(String, chunk);\n/**\n * @deprecated This function will no longer be exported with the next major\n * release, since protobuf-ts has switch to TextDecoder API. If you need this\n * function, please migrate to @protobufjs/utf8. For context, see\n * https://github.com/timostamm/protobuf-ts/issues/184\n *\n * Reads UTF8 bytes as a string.\n *\n * See [protobufjs / utf8](https://github.com/protobufjs/protobuf.js/blob/9893e35b854621cce64af4bf6be2cff4fb892796/lib/utf8/index.js#L40)\n *\n * Copyright (c) 2016, Daniel Wirtz\n */\nfunction utf8read(bytes) {\n if (bytes.length < 1)\n return \"\";\n let pos = 0, // position in bytes\n parts = [], chunk = [], i = 0, // char offset\n t; // temporary\n let len = bytes.length;\n while (pos < len) {\n t = bytes[pos++];\n if (t < 128)\n chunk[i++] = t;\n else if (t > 191 && t < 224)\n chunk[i++] = (t & 31) << 6 | bytes[pos++] & 63;\n else if (t > 239 && t < 365) {\n t = ((t & 7) << 18 | (bytes[pos++] & 63) << 12 | (bytes[pos++] & 63) << 6 | bytes[pos++] & 63) - 0x10000;\n chunk[i++] = 0xD800 + (t >> 10);\n chunk[i++] = 0xDC00 + (t & 1023);\n }\n else\n chunk[i++] = (t & 15) << 12 | (bytes[pos++] & 63) << 6 | bytes[pos++] & 63;\n if (i > 8191) {\n parts.push(fromCharCodes(chunk));\n i = 0;\n }\n }\n if (parts.length) {\n if (i)\n parts.push(fromCharCodes(chunk.slice(0, i)));\n return parts.join(\"\");\n }\n return fromCharCodes(chunk.slice(0, i));\n}\nexports.utf8read = utf8read;\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.ReflectionBinaryReader = void 0;\nconst binary_format_contract_1 = require(\"./binary-format-contract\");\nconst reflection_info_1 = require(\"./reflection-info\");\nconst reflection_long_convert_1 = require(\"./reflection-long-convert\");\nconst reflection_scalar_default_1 = require(\"./reflection-scalar-default\");\n/**\n * Reads proto3 messages in binary format using reflection information.\n *\n * https://developers.google.com/protocol-buffers/docs/encoding\n */\nclass ReflectionBinaryReader {\n constructor(info) {\n this.info = info;\n }\n prepare() {\n var _a;\n if (!this.fieldNoToField) {\n const fieldsInput = (_a = this.info.fields) !== null && _a !== void 0 ? _a : [];\n this.fieldNoToField = new Map(fieldsInput.map(field => [field.no, field]));\n }\n }\n /**\n * Reads a message from binary format into the target message.\n *\n * Repeated fields are appended. Map entries are added, overwriting\n * existing keys.\n *\n * If a message field is already present, it will be merged with the\n * new data.\n */\n read(reader, message, options, length) {\n this.prepare();\n const end = length === undefined ? reader.len : reader.pos + length;\n while (reader.pos < end) {\n // read the tag and find the field\n const [fieldNo, wireType] = reader.tag(), field = this.fieldNoToField.get(fieldNo);\n if (!field) {\n let u = options.readUnknownField;\n if (u == \"throw\")\n throw new Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.info.typeName}`);\n let d = reader.skip(wireType);\n if (u !== false)\n (u === true ? binary_format_contract_1.UnknownFieldHandler.onRead : u)(this.info.typeName, message, fieldNo, wireType, d);\n continue;\n }\n // target object for the field we are reading\n let target = message, repeated = field.repeat, localName = field.localName;\n // if field is member of oneof ADT, use ADT as target\n if (field.oneof) {\n target = target[field.oneof];\n // if other oneof member selected, set new ADT\n if (target.oneofKind !== localName)\n target = message[field.oneof] = {\n oneofKind: localName\n };\n }\n // we have handled oneof above, we just have read the value into `target[localName]`\n switch (field.kind) {\n case \"scalar\":\n case \"enum\":\n let T = field.kind == \"enum\" ? reflection_info_1.ScalarType.INT32 : field.T;\n let L = field.kind == \"scalar\" ? field.L : undefined;\n if (repeated) {\n let arr = target[localName]; // safe to assume presence of array, oneof cannot contain repeated values\n if (wireType == binary_format_contract_1.WireType.LengthDelimited && T != reflection_info_1.ScalarType.STRING && T != reflection_info_1.ScalarType.BYTES) {\n let e = reader.uint32() + reader.pos;\n while (reader.pos < e)\n arr.push(this.scalar(reader, T, L));\n }\n else\n arr.push(this.scalar(reader, T, L));\n }\n else\n target[localName] = this.scalar(reader, T, L);\n break;\n case \"message\":\n if (repeated) {\n let arr = target[localName]; // safe to assume presence of array, oneof cannot contain repeated values\n let msg = field.T().internalBinaryRead(reader, reader.uint32(), options);\n arr.push(msg);\n }\n else\n target[localName] = field.T().internalBinaryRead(reader, reader.uint32(), options, target[localName]);\n break;\n case \"map\":\n let [mapKey, mapVal] = this.mapEntry(field, reader, options);\n // safe to assume presence of map object, oneof cannot contain repeated values\n target[localName][mapKey] = mapVal;\n break;\n }\n }\n }\n /**\n * Read a map field, expecting key field = 1, value field = 2\n */\n mapEntry(field, reader, options) {\n let length = reader.uint32();\n let end = reader.pos + length;\n let key = undefined; // javascript only allows number or string for object properties\n let val = undefined;\n while (reader.pos < end) {\n let [fieldNo, wireType] = reader.tag();\n switch (fieldNo) {\n case 1:\n if (field.K == reflection_info_1.ScalarType.BOOL)\n key = reader.bool().toString();\n else\n // long types are read as string, number types are okay as number\n key = this.scalar(reader, field.K, reflection_info_1.LongType.STRING);\n break;\n case 2:\n switch (field.V.kind) {\n case \"scalar\":\n val = this.scalar(reader, field.V.T, field.V.L);\n break;\n case \"enum\":\n val = reader.int32();\n break;\n case \"message\":\n val = field.V.T().internalBinaryRead(reader, reader.uint32(), options);\n break;\n }\n break;\n default:\n throw new Error(`Unknown field ${fieldNo} (wire type ${wireType}) in map entry for ${this.info.typeName}#${field.name}`);\n }\n }\n if (key === undefined) {\n let keyRaw = reflection_scalar_default_1.reflectionScalarDefault(field.K);\n key = field.K == reflection_info_1.ScalarType.BOOL ? keyRaw.toString() : keyRaw;\n }\n if (val === undefined)\n switch (field.V.kind) {\n case \"scalar\":\n val = reflection_scalar_default_1.reflectionScalarDefault(field.V.T, field.V.L);\n break;\n case \"enum\":\n val = 0;\n break;\n case \"message\":\n val = field.V.T().create();\n break;\n }\n return [key, val];\n }\n scalar(reader, type, longType) {\n switch (type) {\n case reflection_info_1.ScalarType.INT32:\n return reader.int32();\n case reflection_info_1.ScalarType.STRING:\n return reader.string();\n case reflection_info_1.ScalarType.BOOL:\n return reader.bool();\n case reflection_info_1.ScalarType.DOUBLE:\n return reader.double();\n case reflection_info_1.ScalarType.FLOAT:\n return reader.float();\n case reflection_info_1.ScalarType.INT64:\n return reflection_long_convert_1.reflectionLongConvert(reader.int64(), longType);\n case reflection_info_1.ScalarType.UINT64:\n return reflection_long_convert_1.reflectionLongConvert(reader.uint64(), longType);\n case reflection_info_1.ScalarType.FIXED64:\n return reflection_long_convert_1.reflectionLongConvert(reader.fixed64(), longType);\n case reflection_info_1.ScalarType.FIXED32:\n return reader.fixed32();\n case reflection_info_1.ScalarType.BYTES:\n return reader.bytes();\n case reflection_info_1.ScalarType.UINT32:\n return reader.uint32();\n case reflection_info_1.ScalarType.SFIXED32:\n return reader.sfixed32();\n case reflection_info_1.ScalarType.SFIXED64:\n return reflection_long_convert_1.reflectionLongConvert(reader.sfixed64(), longType);\n case reflection_info_1.ScalarType.SINT32:\n return reader.sint32();\n case reflection_info_1.ScalarType.SINT64:\n return reflection_long_convert_1.reflectionLongConvert(reader.sint64(), longType);\n }\n }\n}\nexports.ReflectionBinaryReader = ReflectionBinaryReader;\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.ReflectionBinaryWriter = void 0;\nconst binary_format_contract_1 = require(\"./binary-format-contract\");\nconst reflection_info_1 = require(\"./reflection-info\");\nconst assert_1 = require(\"./assert\");\nconst pb_long_1 = require(\"./pb-long\");\n/**\n * Writes proto3 messages in binary format using reflection information.\n *\n * https://developers.google.com/protocol-buffers/docs/encoding\n */\nclass ReflectionBinaryWriter {\n constructor(info) {\n this.info = info;\n }\n prepare() {\n if (!this.fields) {\n const fieldsInput = this.info.fields ? this.info.fields.concat() : [];\n this.fields = fieldsInput.sort((a, b) => a.no - b.no);\n }\n }\n /**\n * Writes the message to binary format.\n */\n write(message, writer, options) {\n this.prepare();\n for (const field of this.fields) {\n let value, // this will be our field value, whether it is member of a oneof or not\n emitDefault, // whether we emit the default value (only true for oneof members)\n repeated = field.repeat, localName = field.localName;\n // handle oneof ADT\n if (field.oneof) {\n const group = message[field.oneof];\n if (group.oneofKind !== localName)\n continue; // if field is not selected, skip\n value = group[localName];\n emitDefault = true;\n }\n else {\n value = message[localName];\n emitDefault = false;\n }\n // we have handled oneof above. we just have to honor `emitDefault`.\n switch (field.kind) {\n case \"scalar\":\n case \"enum\":\n let T = field.kind == \"enum\" ? reflection_info_1.ScalarType.INT32 : field.T;\n if (repeated) {\n assert_1.assert(Array.isArray(value));\n if (repeated == reflection_info_1.RepeatType.PACKED)\n this.packed(writer, T, field.no, value);\n else\n for (const item of value)\n this.scalar(writer, T, field.no, item, true);\n }\n else if (value === undefined)\n assert_1.assert(field.opt);\n else\n this.scalar(writer, T, field.no, value, emitDefault || field.opt);\n break;\n case \"message\":\n if (repeated) {\n assert_1.assert(Array.isArray(value));\n for (const item of value)\n this.message(writer, options, field.T(), field.no, item);\n }\n else {\n this.message(writer, options, field.T(), field.no, value);\n }\n break;\n case \"map\":\n assert_1.assert(typeof value == 'object' && value !== null);\n for (const [key, val] of Object.entries(value))\n this.mapEntry(writer, options, field, key, val);\n break;\n }\n }\n let u = options.writeUnknownFields;\n if (u !== false)\n (u === true ? binary_format_contract_1.UnknownFieldHandler.onWrite : u)(this.info.typeName, message, writer);\n }\n mapEntry(writer, options, field, key, value) {\n writer.tag(field.no, binary_format_contract_1.WireType.LengthDelimited);\n writer.fork();\n // javascript only allows number or string for object properties\n // we convert from our representation to the protobuf type\n let keyValue = key;\n switch (field.K) {\n case reflection_info_1.ScalarType.INT32:\n case reflection_info_1.ScalarType.FIXED32:\n case reflection_info_1.ScalarType.UINT32:\n case reflection_info_1.ScalarType.SFIXED32:\n case reflection_info_1.ScalarType.SINT32:\n keyValue = Number.parseInt(key);\n break;\n case reflection_info_1.ScalarType.BOOL:\n assert_1.assert(key == 'true' || key == 'false');\n keyValue = key == 'true';\n break;\n }\n // write key, expecting key field number = 1\n this.scalar(writer, field.K, 1, keyValue, true);\n // write value, expecting value field number = 2\n switch (field.V.kind) {\n case 'scalar':\n this.scalar(writer, field.V.T, 2, value, true);\n break;\n case 'enum':\n this.scalar(writer, reflection_info_1.ScalarType.INT32, 2, value, true);\n break;\n case 'message':\n this.message(writer, options, field.V.T(), 2, value);\n break;\n }\n writer.join();\n }\n message(writer, options, handler, fieldNo, value) {\n if (value === undefined)\n return;\n handler.internalBinaryWrite(value, writer.tag(fieldNo, binary_format_contract_1.WireType.LengthDelimited).fork(), options);\n writer.join();\n }\n /**\n * Write a single scalar value.\n */\n scalar(writer, type, fieldNo, value, emitDefault) {\n let [wireType, method, isDefault] = this.scalarInfo(type, value);\n if (!isDefault || emitDefault) {\n writer.tag(fieldNo, wireType);\n writer[method](value);\n }\n }\n /**\n * Write an array of scalar values in packed format.\n */\n packed(writer, type, fieldNo, value) {\n if (!value.length)\n return;\n assert_1.assert(type !== reflection_info_1.ScalarType.BYTES && type !== reflection_info_1.ScalarType.STRING);\n // write tag\n writer.tag(fieldNo, binary_format_contract_1.WireType.LengthDelimited);\n // begin length-delimited\n writer.fork();\n // write values without tags\n let [, method,] = this.scalarInfo(type);\n for (let i = 0; i < value.length; i++)\n writer[method](value[i]);\n // end length delimited\n writer.join();\n }\n /**\n * Get information for writing a scalar value.\n *\n * Returns tuple:\n * [0]: appropriate WireType\n * [1]: name of the appropriate method of IBinaryWriter\n * [2]: whether the given value is a default value\n *\n * If argument `value` is omitted, [2] is always false.\n */\n scalarInfo(type, value) {\n let t = binary_format_contract_1.WireType.Varint;\n let m;\n let i = value === undefined;\n let d = value === 0;\n switch (type) {\n case reflection_info_1.ScalarType.INT32:\n m = \"int32\";\n break;\n case reflection_info_1.ScalarType.STRING:\n d = i || !value.length;\n t = binary_format_contract_1.WireType.LengthDelimited;\n m = \"string\";\n break;\n case reflection_info_1.ScalarType.BOOL:\n d = value === false;\n m = \"bool\";\n break;\n case reflection_info_1.ScalarType.UINT32:\n m = \"uint32\";\n break;\n case reflection_info_1.ScalarType.DOUBLE:\n t = binary_format_contract_1.WireType.Bit64;\n m = \"double\";\n break;\n case reflection_info_1.ScalarType.FLOAT:\n t = binary_format_contract_1.WireType.Bit32;\n m = \"float\";\n break;\n case reflection_info_1.ScalarType.INT64:\n d = i || pb_long_1.PbLong.from(value).isZero();\n m = \"int64\";\n break;\n case reflection_info_1.ScalarType.UINT64:\n d = i || pb_long_1.PbULong.from(value).isZero();\n m = \"uint64\";\n break;\n case reflection_info_1.ScalarType.FIXED64:\n d = i || pb_long_1.PbULong.from(value).isZero();\n t = binary_format_contract_1.WireType.Bit64;\n m = \"fixed64\";\n break;\n case reflection_info_1.ScalarType.BYTES:\n d = i || !value.byteLength;\n t = binary_format_contract_1.WireType.LengthDelimited;\n m = \"bytes\";\n break;\n case reflection_info_1.ScalarType.FIXED32:\n t = binary_format_contract_1.WireType.Bit32;\n m = \"fixed32\";\n break;\n case reflection_info_1.ScalarType.SFIXED32:\n t = binary_format_contract_1.WireType.Bit32;\n m = \"sfixed32\";\n break;\n case reflection_info_1.ScalarType.SFIXED64:\n d = i || pb_long_1.PbLong.from(value).isZero();\n t = binary_format_contract_1.WireType.Bit64;\n m = \"sfixed64\";\n break;\n case reflection_info_1.ScalarType.SINT32:\n m = \"sint32\";\n break;\n case reflection_info_1.ScalarType.SINT64:\n d = i || pb_long_1.PbLong.from(value).isZero();\n m = \"sint64\";\n break;\n }\n return [t, m, i || d];\n }\n}\nexports.ReflectionBinaryWriter = ReflectionBinaryWriter;\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.containsMessageType = void 0;\nconst message_type_contract_1 = require(\"./message-type-contract\");\n/**\n * Check if the provided object is a proto message.\n *\n * Note that this is an experimental feature - it is here to stay, but\n * implementation details may change without notice.\n */\nfunction containsMessageType(msg) {\n return msg[message_type_contract_1.MESSAGE_TYPE] != null;\n}\nexports.containsMessageType = containsMessageType;\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.reflectionCreate = void 0;\nconst reflection_scalar_default_1 = require(\"./reflection-scalar-default\");\nconst message_type_contract_1 = require(\"./message-type-contract\");\n/**\n * Creates an instance of the generic message, using the field\n * information.\n */\nfunction reflectionCreate(type) {\n /**\n * This ternary can be removed in the next major version.\n * The `Object.create()` code path utilizes a new `messagePrototype`\n * property on the `IMessageType` which has this same `MESSAGE_TYPE`\n * non-enumerable property on it. Doing it this way means that we only\n * pay the cost of `Object.defineProperty()` once per `IMessageType`\n * class of once per \"instance\". The falsy code path is only provided\n * for backwards compatibility in cases where the runtime library is\n * updated without also updating the generated code.\n */\n const msg = type.messagePrototype\n ? Object.create(type.messagePrototype)\n : Object.defineProperty({}, message_type_contract_1.MESSAGE_TYPE, { value: type });\n for (let field of type.fields) {\n let name = field.localName;\n if (field.opt)\n continue;\n if (field.oneof)\n msg[field.oneof] = { oneofKind: undefined };\n else if (field.repeat)\n msg[name] = [];\n else\n switch (field.kind) {\n case \"scalar\":\n msg[name] = reflection_scalar_default_1.reflectionScalarDefault(field.T, field.L);\n break;\n case \"enum\":\n // we require 0 to be default value for all enums\n msg[name] = 0;\n break;\n case \"map\":\n msg[name] = {};\n break;\n }\n }\n return msg;\n}\nexports.reflectionCreate = reflectionCreate;\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.reflectionEquals = void 0;\nconst reflection_info_1 = require(\"./reflection-info\");\n/**\n * Determines whether two message of the same type have the same field values.\n * Checks for deep equality, traversing repeated fields, oneof groups, maps\n * and messages recursively.\n * Will also return true if both messages are `undefined`.\n */\nfunction reflectionEquals(info, a, b) {\n if (a === b)\n return true;\n if (!a || !b)\n return false;\n for (let field of info.fields) {\n let localName = field.localName;\n let val_a = field.oneof ? a[field.oneof][localName] : a[localName];\n let val_b = field.oneof ? b[field.oneof][localName] : b[localName];\n switch (field.kind) {\n case \"enum\":\n case \"scalar\":\n let t = field.kind == \"enum\" ? reflection_info_1.ScalarType.INT32 : field.T;\n if (!(field.repeat\n ? repeatedPrimitiveEq(t, val_a, val_b)\n : primitiveEq(t, val_a, val_b)))\n return false;\n break;\n case \"map\":\n if (!(field.V.kind == \"message\"\n ? repeatedMsgEq(field.V.T(), objectValues(val_a), objectValues(val_b))\n : repeatedPrimitiveEq(field.V.kind == \"enum\" ? reflection_info_1.ScalarType.INT32 : field.V.T, objectValues(val_a), objectValues(val_b))))\n return false;\n break;\n case \"message\":\n let T = field.T();\n if (!(field.repeat\n ? repeatedMsgEq(T, val_a, val_b)\n : T.equals(val_a, val_b)))\n return false;\n break;\n }\n }\n return true;\n}\nexports.reflectionEquals = reflectionEquals;\nconst objectValues = Object.values;\nfunction primitiveEq(type, a, b) {\n if (a === b)\n return true;\n if (type !== reflection_info_1.ScalarType.BYTES)\n return false;\n let ba = a;\n let bb = b;\n if (ba.length !== bb.length)\n return false;\n for (let i = 0; i < ba.length; i++)\n if (ba[i] != bb[i])\n return false;\n return true;\n}\nfunction repeatedPrimitiveEq(type, a, b) {\n if (a.length !== b.length)\n return false;\n for (let i = 0; i < a.length; i++)\n if (!primitiveEq(type, a[i], b[i]))\n return false;\n return true;\n}\nfunction repeatedMsgEq(type, a, b) {\n if (a.length !== b.length)\n return false;\n for (let i = 0; i < a.length; i++)\n if (!type.equals(a[i], b[i]))\n return false;\n return true;\n}\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.readMessageOption = exports.readFieldOption = exports.readFieldOptions = exports.normalizeFieldInfo = exports.RepeatType = exports.LongType = exports.ScalarType = void 0;\nconst lower_camel_case_1 = require(\"./lower-camel-case\");\n/**\n * Scalar value types. This is a subset of field types declared by protobuf\n * enum google.protobuf.FieldDescriptorProto.Type The types GROUP and MESSAGE\n * are omitted, but the numerical values are identical.\n */\nvar ScalarType;\n(function (ScalarType) {\n // 0 is reserved for errors.\n // Order is weird for historical reasons.\n ScalarType[ScalarType[\"DOUBLE\"] = 1] = \"DOUBLE\";\n ScalarType[ScalarType[\"FLOAT\"] = 2] = \"FLOAT\";\n // Not ZigZag encoded. Negative numbers take 10 bytes. Use TYPE_SINT64 if\n // negative values are likely.\n ScalarType[ScalarType[\"INT64\"] = 3] = \"INT64\";\n ScalarType[ScalarType[\"UINT64\"] = 4] = \"UINT64\";\n // Not ZigZag encoded. Negative numbers take 10 bytes. Use TYPE_SINT32 if\n // negative values are likely.\n ScalarType[ScalarType[\"INT32\"] = 5] = \"INT32\";\n ScalarType[ScalarType[\"FIXED64\"] = 6] = \"FIXED64\";\n ScalarType[ScalarType[\"FIXED32\"] = 7] = \"FIXED32\";\n ScalarType[ScalarType[\"BOOL\"] = 8] = \"BOOL\";\n ScalarType[ScalarType[\"STRING\"] = 9] = \"STRING\";\n // Tag-delimited aggregate.\n // Group type is deprecated and not supported in proto3. However, Proto3\n // implementations should still be able to parse the group wire format and\n // treat group fields as unknown fields.\n // TYPE_GROUP = 10,\n // TYPE_MESSAGE = 11, // Length-delimited aggregate.\n // New in version 2.\n ScalarType[ScalarType[\"BYTES\"] = 12] = \"BYTES\";\n ScalarType[ScalarType[\"UINT32\"] = 13] = \"UINT32\";\n // TYPE_ENUM = 14,\n ScalarType[ScalarType[\"SFIXED32\"] = 15] = \"SFIXED32\";\n ScalarType[ScalarType[\"SFIXED64\"] = 16] = \"SFIXED64\";\n ScalarType[ScalarType[\"SINT32\"] = 17] = \"SINT32\";\n ScalarType[ScalarType[\"SINT64\"] = 18] = \"SINT64\";\n})(ScalarType = exports.ScalarType || (exports.ScalarType = {}));\n/**\n * JavaScript representation of 64 bit integral types. Equivalent to the\n * field option \"jstype\".\n *\n * By default, protobuf-ts represents 64 bit types as `bigint`.\n *\n * You can change the default behaviour by enabling the plugin parameter\n * `long_type_string`, which will represent 64 bit types as `string`.\n *\n * Alternatively, you can change the behaviour for individual fields\n * with the field option \"jstype\":\n *\n * ```protobuf\n * uint64 my_field = 1 [jstype = JS_STRING];\n * uint64 other_field = 2 [jstype = JS_NUMBER];\n * ```\n */\nvar LongType;\n(function (LongType) {\n /**\n * Use JavaScript `bigint`.\n *\n * Field option `[jstype = JS_NORMAL]`.\n */\n LongType[LongType[\"BIGINT\"] = 0] = \"BIGINT\";\n /**\n * Use JavaScript `string`.\n *\n * Field option `[jstype = JS_STRING]`.\n */\n LongType[LongType[\"STRING\"] = 1] = \"STRING\";\n /**\n * Use JavaScript `number`.\n *\n * Large values will loose precision.\n *\n * Field option `[jstype = JS_NUMBER]`.\n */\n LongType[LongType[\"NUMBER\"] = 2] = \"NUMBER\";\n})(LongType = exports.LongType || (exports.LongType = {}));\n/**\n * Protobuf 2.1.0 introduced packed repeated fields.\n * Setting the field option `[packed = true]` enables packing.\n *\n * In proto3, all repeated fields are packed by default.\n * Setting the field option `[packed = false]` disables packing.\n *\n * Packed repeated fields are encoded with a single tag,\n * then a length-delimiter, then the element values.\n *\n * Unpacked repeated fields are encoded with a tag and\n * value for each element.\n *\n * `bytes` and `string` cannot be packed.\n */\nvar RepeatType;\n(function (RepeatType) {\n /**\n * The field is not repeated.\n */\n RepeatType[RepeatType[\"NO\"] = 0] = \"NO\";\n /**\n * The field is repeated and should be packed.\n * Invalid for `bytes` and `string`, they cannot be packed.\n */\n RepeatType[RepeatType[\"PACKED\"] = 1] = \"PACKED\";\n /**\n * The field is repeated but should not be packed.\n * The only valid repeat type for repeated `bytes` and `string`.\n */\n RepeatType[RepeatType[\"UNPACKED\"] = 2] = \"UNPACKED\";\n})(RepeatType = exports.RepeatType || (exports.RepeatType = {}));\n/**\n * Turns PartialFieldInfo into FieldInfo.\n */\nfunction normalizeFieldInfo(field) {\n var _a, _b, _c, _d;\n field.localName = (_a = field.localName) !== null && _a !== void 0 ? _a : lower_camel_case_1.lowerCamelCase(field.name);\n field.jsonName = (_b = field.jsonName) !== null && _b !== void 0 ? _b : lower_camel_case_1.lowerCamelCase(field.name);\n field.repeat = (_c = field.repeat) !== null && _c !== void 0 ? _c : RepeatType.NO;\n field.opt = (_d = field.opt) !== null && _d !== void 0 ? _d : (field.repeat ? false : field.oneof ? false : field.kind == \"message\");\n return field;\n}\nexports.normalizeFieldInfo = normalizeFieldInfo;\n/**\n * Read custom field options from a generated message type.\n *\n * @deprecated use readFieldOption()\n */\nfunction readFieldOptions(messageType, fieldName, extensionName, extensionType) {\n var _a;\n const options = (_a = messageType.fields.find((m, i) => m.localName == fieldName || i == fieldName)) === null || _a === void 0 ? void 0 : _a.options;\n return options && options[extensionName] ? extensionType.fromJson(options[extensionName]) : undefined;\n}\nexports.readFieldOptions = readFieldOptions;\nfunction readFieldOption(messageType, fieldName, extensionName, extensionType) {\n var _a;\n const options = (_a = messageType.fields.find((m, i) => m.localName == fieldName || i == fieldName)) === null || _a === void 0 ? void 0 : _a.options;\n if (!options) {\n return undefined;\n }\n const optionVal = options[extensionName];\n if (optionVal === undefined) {\n return optionVal;\n }\n return extensionType ? extensionType.fromJson(optionVal) : optionVal;\n}\nexports.readFieldOption = readFieldOption;\nfunction readMessageOption(messageType, extensionName, extensionType) {\n const options = messageType.options;\n const optionVal = options[extensionName];\n if (optionVal === undefined) {\n return optionVal;\n }\n return extensionType ? extensionType.fromJson(optionVal) : optionVal;\n}\nexports.readMessageOption = readMessageOption;\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.ReflectionJsonReader = void 0;\nconst json_typings_1 = require(\"./json-typings\");\nconst base64_1 = require(\"./base64\");\nconst reflection_info_1 = require(\"./reflection-info\");\nconst pb_long_1 = require(\"./pb-long\");\nconst assert_1 = require(\"./assert\");\nconst reflection_long_convert_1 = require(\"./reflection-long-convert\");\n/**\n * Reads proto3 messages in canonical JSON format using reflection information.\n *\n * https://developers.google.com/protocol-buffers/docs/proto3#json\n */\nclass ReflectionJsonReader {\n constructor(info) {\n this.info = info;\n }\n prepare() {\n var _a;\n if (this.fMap === undefined) {\n this.fMap = {};\n const fieldsInput = (_a = this.info.fields) !== null && _a !== void 0 ? _a : [];\n for (const field of fieldsInput) {\n this.fMap[field.name] = field;\n this.fMap[field.jsonName] = field;\n this.fMap[field.localName] = field;\n }\n }\n }\n // Cannot parse JSON for #.\n assert(condition, fieldName, jsonValue) {\n if (!condition) {\n let what = json_typings_1.typeofJsonValue(jsonValue);\n if (what == \"number\" || what == \"boolean\")\n what = jsonValue.toString();\n throw new Error(`Cannot parse JSON ${what} for ${this.info.typeName}#${fieldName}`);\n }\n }\n /**\n * Reads a message from canonical JSON format into the target message.\n *\n * Repeated fields are appended. Map entries are added, overwriting\n * existing keys.\n *\n * If a message field is already present, it will be merged with the\n * new data.\n */\n read(input, message, options) {\n this.prepare();\n const oneofsHandled = [];\n for (const [jsonKey, jsonValue] of Object.entries(input)) {\n const field = this.fMap[jsonKey];\n if (!field) {\n if (!options.ignoreUnknownFields)\n throw new Error(`Found unknown field while reading ${this.info.typeName} from JSON format. JSON key: ${jsonKey}`);\n continue;\n }\n const localName = field.localName;\n // handle oneof ADT\n let target; // this will be the target for the field value, whether it is member of a oneof or not\n if (field.oneof) {\n if (jsonValue === null && (field.kind !== 'enum' || field.T()[0] !== 'google.protobuf.NullValue')) {\n continue;\n }\n // since json objects are unordered by specification, it is not possible to take the last of multiple oneofs\n if (oneofsHandled.includes(field.oneof))\n throw new Error(`Multiple members of the oneof group \"${field.oneof}\" of ${this.info.typeName} are present in JSON.`);\n oneofsHandled.push(field.oneof);\n target = message[field.oneof] = {\n oneofKind: localName\n };\n }\n else {\n target = message;\n }\n // we have handled oneof above. we just have read the value into `target`.\n if (field.kind == 'map') {\n if (jsonValue === null) {\n continue;\n }\n // check input\n this.assert(json_typings_1.isJsonObject(jsonValue), field.name, jsonValue);\n // our target to put map entries into\n const fieldObj = target[localName];\n // read entries\n for (const [jsonObjKey, jsonObjValue] of Object.entries(jsonValue)) {\n this.assert(jsonObjValue !== null, field.name + \" map value\", null);\n // read value\n let val;\n switch (field.V.kind) {\n case \"message\":\n val = field.V.T().internalJsonRead(jsonObjValue, options);\n break;\n case \"enum\":\n val = this.enum(field.V.T(), jsonObjValue, field.name, options.ignoreUnknownFields);\n if (val === false)\n continue;\n break;\n case \"scalar\":\n val = this.scalar(jsonObjValue, field.V.T, field.V.L, field.name);\n break;\n }\n this.assert(val !== undefined, field.name + \" map value\", jsonObjValue);\n // read key\n let key = jsonObjKey;\n if (field.K == reflection_info_1.ScalarType.BOOL)\n key = key == \"true\" ? true : key == \"false\" ? false : key;\n key = this.scalar(key, field.K, reflection_info_1.LongType.STRING, field.name).toString();\n fieldObj[key] = val;\n }\n }\n else if (field.repeat) {\n if (jsonValue === null)\n continue;\n // check input\n this.assert(Array.isArray(jsonValue), field.name, jsonValue);\n // our target to put array entries into\n const fieldArr = target[localName];\n // read array entries\n for (const jsonItem of jsonValue) {\n this.assert(jsonItem !== null, field.name, null);\n let val;\n switch (field.kind) {\n case \"message\":\n val = field.T().internalJsonRead(jsonItem, options);\n break;\n case \"enum\":\n val = this.enum(field.T(), jsonItem, field.name, options.ignoreUnknownFields);\n if (val === false)\n continue;\n break;\n case \"scalar\":\n val = this.scalar(jsonItem, field.T, field.L, field.name);\n break;\n }\n this.assert(val !== undefined, field.name, jsonValue);\n fieldArr.push(val);\n }\n }\n else {\n switch (field.kind) {\n case \"message\":\n if (jsonValue === null && field.T().typeName != 'google.protobuf.Value') {\n this.assert(field.oneof === undefined, field.name + \" (oneof member)\", null);\n continue;\n }\n target[localName] = field.T().internalJsonRead(jsonValue, options, target[localName]);\n break;\n case \"enum\":\n let val = this.enum(field.T(), jsonValue, field.name, options.ignoreUnknownFields);\n if (val === false)\n continue;\n target[localName] = val;\n break;\n case \"scalar\":\n target[localName] = this.scalar(jsonValue, field.T, field.L, field.name);\n break;\n }\n }\n }\n }\n /**\n * Returns `false` for unrecognized string representations.\n *\n * google.protobuf.NullValue accepts only JSON `null` (or the old `\"NULL_VALUE\"`).\n */\n enum(type, json, fieldName, ignoreUnknownFields) {\n if (type[0] == 'google.protobuf.NullValue')\n assert_1.assert(json === null || json === \"NULL_VALUE\", `Unable to parse field ${this.info.typeName}#${fieldName}, enum ${type[0]} only accepts null.`);\n if (json === null)\n // we require 0 to be default value for all enums\n return 0;\n switch (typeof json) {\n case \"number\":\n assert_1.assert(Number.isInteger(json), `Unable to parse field ${this.info.typeName}#${fieldName}, enum can only be integral number, got ${json}.`);\n return json;\n case \"string\":\n let localEnumName = json;\n if (type[2] && json.substring(0, type[2].length) === type[2])\n // lookup without the shared prefix\n localEnumName = json.substring(type[2].length);\n let enumNumber = type[1][localEnumName];\n if (typeof enumNumber === 'undefined' && ignoreUnknownFields) {\n return false;\n }\n assert_1.assert(typeof enumNumber == \"number\", `Unable to parse field ${this.info.typeName}#${fieldName}, enum ${type[0]} has no value for \"${json}\".`);\n return enumNumber;\n }\n assert_1.assert(false, `Unable to parse field ${this.info.typeName}#${fieldName}, cannot parse enum value from ${typeof json}\".`);\n }\n scalar(json, type, longType, fieldName) {\n let e;\n try {\n switch (type) {\n // float, double: JSON value will be a number or one of the special string values \"NaN\", \"Infinity\", and \"-Infinity\".\n // Either numbers or strings are accepted. Exponent notation is also accepted.\n case reflection_info_1.ScalarType.DOUBLE:\n case reflection_info_1.ScalarType.FLOAT:\n if (json === null)\n return .0;\n if (json === \"NaN\")\n return Number.NaN;\n if (json === \"Infinity\")\n return Number.POSITIVE_INFINITY;\n if (json === \"-Infinity\")\n return Number.NEGATIVE_INFINITY;\n if (json === \"\") {\n e = \"empty string\";\n break;\n }\n if (typeof json == \"string\" && json.trim().length !== json.length) {\n e = \"extra whitespace\";\n break;\n }\n if (typeof json != \"string\" && typeof json != \"number\") {\n break;\n }\n let float = Number(json);\n if (Number.isNaN(float)) {\n e = \"not a number\";\n break;\n }\n if (!Number.isFinite(float)) {\n // infinity and -infinity are handled by string representation above, so this is an error\n e = \"too large or small\";\n break;\n }\n if (type == reflection_info_1.ScalarType.FLOAT)\n assert_1.assertFloat32(float);\n return float;\n // int32, fixed32, uint32: JSON value will be a decimal number. Either numbers or strings are accepted.\n case reflection_info_1.ScalarType.INT32:\n case reflection_info_1.ScalarType.FIXED32:\n case reflection_info_1.ScalarType.SFIXED32:\n case reflection_info_1.ScalarType.SINT32:\n case reflection_info_1.ScalarType.UINT32:\n if (json === null)\n return 0;\n let int32;\n if (typeof json == \"number\")\n int32 = json;\n else if (json === \"\")\n e = \"empty string\";\n else if (typeof json == \"string\") {\n if (json.trim().length !== json.length)\n e = \"extra whitespace\";\n else\n int32 = Number(json);\n }\n if (int32 === undefined)\n break;\n if (type == reflection_info_1.ScalarType.UINT32)\n assert_1.assertUInt32(int32);\n else\n assert_1.assertInt32(int32);\n return int32;\n // int64, fixed64, uint64: JSON value will be a decimal string. Either numbers or strings are accepted.\n case reflection_info_1.ScalarType.INT64:\n case reflection_info_1.ScalarType.SFIXED64:\n case reflection_info_1.ScalarType.SINT64:\n if (json === null)\n return reflection_long_convert_1.reflectionLongConvert(pb_long_1.PbLong.ZERO, longType);\n if (typeof json != \"number\" && typeof json != \"string\")\n break;\n return reflection_long_convert_1.reflectionLongConvert(pb_long_1.PbLong.from(json), longType);\n case reflection_info_1.ScalarType.FIXED64:\n case reflection_info_1.ScalarType.UINT64:\n if (json === null)\n return reflection_long_convert_1.reflectionLongConvert(pb_long_1.PbULong.ZERO, longType);\n if (typeof json != \"number\" && typeof json != \"string\")\n break;\n return reflection_long_convert_1.reflectionLongConvert(pb_long_1.PbULong.from(json), longType);\n // bool:\n case reflection_info_1.ScalarType.BOOL:\n if (json === null)\n return false;\n if (typeof json !== \"boolean\")\n break;\n return json;\n // string:\n case reflection_info_1.ScalarType.STRING:\n if (json === null)\n return \"\";\n if (typeof json !== \"string\") {\n e = \"extra whitespace\";\n break;\n }\n try {\n encodeURIComponent(json);\n }\n catch (e) {\n e = \"invalid UTF8\";\n break;\n }\n return json;\n // bytes: JSON value will be the data encoded as a string using standard base64 encoding with paddings.\n // Either standard or URL-safe base64 encoding with/without paddings are accepted.\n case reflection_info_1.ScalarType.BYTES:\n if (json === null || json === \"\")\n return new Uint8Array(0);\n if (typeof json !== 'string')\n break;\n return base64_1.base64decode(json);\n }\n }\n catch (error) {\n e = error.message;\n }\n this.assert(false, fieldName + (e ? \" - \" + e : \"\"), json);\n }\n}\nexports.ReflectionJsonReader = ReflectionJsonReader;\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.ReflectionJsonWriter = void 0;\nconst base64_1 = require(\"./base64\");\nconst pb_long_1 = require(\"./pb-long\");\nconst reflection_info_1 = require(\"./reflection-info\");\nconst assert_1 = require(\"./assert\");\n/**\n * Writes proto3 messages in canonical JSON format using reflection\n * information.\n *\n * https://developers.google.com/protocol-buffers/docs/proto3#json\n */\nclass ReflectionJsonWriter {\n constructor(info) {\n var _a;\n this.fields = (_a = info.fields) !== null && _a !== void 0 ? _a : [];\n }\n /**\n * Converts the message to a JSON object, based on the field descriptors.\n */\n write(message, options) {\n const json = {}, source = message;\n for (const field of this.fields) {\n // field is not part of a oneof, simply write as is\n if (!field.oneof) {\n let jsonValue = this.field(field, source[field.localName], options);\n if (jsonValue !== undefined)\n json[options.useProtoFieldName ? field.name : field.jsonName] = jsonValue;\n continue;\n }\n // field is part of a oneof\n const group = source[field.oneof];\n if (group.oneofKind !== field.localName)\n continue; // not selected, skip\n const opt = field.kind == 'scalar' || field.kind == 'enum'\n ? Object.assign(Object.assign({}, options), { emitDefaultValues: true }) : options;\n let jsonValue = this.field(field, group[field.localName], opt);\n assert_1.assert(jsonValue !== undefined);\n json[options.useProtoFieldName ? field.name : field.jsonName] = jsonValue;\n }\n return json;\n }\n field(field, value, options) {\n let jsonValue = undefined;\n if (field.kind == 'map') {\n assert_1.assert(typeof value == \"object\" && value !== null);\n const jsonObj = {};\n switch (field.V.kind) {\n case \"scalar\":\n for (const [entryKey, entryValue] of Object.entries(value)) {\n const val = this.scalar(field.V.T, entryValue, field.name, false, true);\n assert_1.assert(val !== undefined);\n jsonObj[entryKey.toString()] = val; // JSON standard allows only (double quoted) string as property key\n }\n break;\n case \"message\":\n const messageType = field.V.T();\n for (const [entryKey, entryValue] of Object.entries(value)) {\n const val = this.message(messageType, entryValue, field.name, options);\n assert_1.assert(val !== undefined);\n jsonObj[entryKey.toString()] = val; // JSON standard allows only (double quoted) string as property key\n }\n break;\n case \"enum\":\n const enumInfo = field.V.T();\n for (const [entryKey, entryValue] of Object.entries(value)) {\n assert_1.assert(entryValue === undefined || typeof entryValue == 'number');\n const val = this.enum(enumInfo, entryValue, field.name, false, true, options.enumAsInteger);\n assert_1.assert(val !== undefined);\n jsonObj[entryKey.toString()] = val; // JSON standard allows only (double quoted) string as property key\n }\n break;\n }\n if (options.emitDefaultValues || Object.keys(jsonObj).length > 0)\n jsonValue = jsonObj;\n }\n else if (field.repeat) {\n assert_1.assert(Array.isArray(value));\n const jsonArr = [];\n switch (field.kind) {\n case \"scalar\":\n for (let i = 0; i < value.length; i++) {\n const val = this.scalar(field.T, value[i], field.name, field.opt, true);\n assert_1.assert(val !== undefined);\n jsonArr.push(val);\n }\n break;\n case \"enum\":\n const enumInfo = field.T();\n for (let i = 0; i < value.length; i++) {\n assert_1.assert(value[i] === undefined || typeof value[i] == 'number');\n const val = this.enum(enumInfo, value[i], field.name, field.opt, true, options.enumAsInteger);\n assert_1.assert(val !== undefined);\n jsonArr.push(val);\n }\n break;\n case \"message\":\n const messageType = field.T();\n for (let i = 0; i < value.length; i++) {\n const val = this.message(messageType, value[i], field.name, options);\n assert_1.assert(val !== undefined);\n jsonArr.push(val);\n }\n break;\n }\n // add converted array to json output\n if (options.emitDefaultValues || jsonArr.length > 0 || options.emitDefaultValues)\n jsonValue = jsonArr;\n }\n else {\n switch (field.kind) {\n case \"scalar\":\n jsonValue = this.scalar(field.T, value, field.name, field.opt, options.emitDefaultValues);\n break;\n case \"enum\":\n jsonValue = this.enum(field.T(), value, field.name, field.opt, options.emitDefaultValues, options.enumAsInteger);\n break;\n case \"message\":\n jsonValue = this.message(field.T(), value, field.name, options);\n break;\n }\n }\n return jsonValue;\n }\n /**\n * Returns `null` as the default for google.protobuf.NullValue.\n */\n enum(type, value, fieldName, optional, emitDefaultValues, enumAsInteger) {\n if (type[0] == 'google.protobuf.NullValue')\n return !emitDefaultValues && !optional ? undefined : null;\n if (value === undefined) {\n assert_1.assert(optional);\n return undefined;\n }\n if (value === 0 && !emitDefaultValues && !optional)\n // we require 0 to be default value for all enums\n return undefined;\n assert_1.assert(typeof value == 'number');\n assert_1.assert(Number.isInteger(value));\n if (enumAsInteger || !type[1].hasOwnProperty(value))\n // if we don't now the enum value, just return the number\n return value;\n if (type[2])\n // restore the dropped prefix\n return type[2] + type[1][value];\n return type[1][value];\n }\n message(type, value, fieldName, options) {\n if (value === undefined)\n return options.emitDefaultValues ? null : undefined;\n return type.internalJsonWrite(value, options);\n }\n scalar(type, value, fieldName, optional, emitDefaultValues) {\n if (value === undefined) {\n assert_1.assert(optional);\n return undefined;\n }\n const ed = emitDefaultValues || optional;\n // noinspection FallThroughInSwitchStatementJS\n switch (type) {\n // int32, fixed32, uint32: JSON value will be a decimal number. Either numbers or strings are accepted.\n case reflection_info_1.ScalarType.INT32:\n case reflection_info_1.ScalarType.SFIXED32:\n case reflection_info_1.ScalarType.SINT32:\n if (value === 0)\n return ed ? 0 : undefined;\n assert_1.assertInt32(value);\n return value;\n case reflection_info_1.ScalarType.FIXED32:\n case reflection_info_1.ScalarType.UINT32:\n if (value === 0)\n return ed ? 0 : undefined;\n assert_1.assertUInt32(value);\n return value;\n // float, double: JSON value will be a number or one of the special string values \"NaN\", \"Infinity\", and \"-Infinity\".\n // Either numbers or strings are accepted. Exponent notation is also accepted.\n case reflection_info_1.ScalarType.FLOAT:\n assert_1.assertFloat32(value);\n case reflection_info_1.ScalarType.DOUBLE:\n if (value === 0)\n return ed ? 0 : undefined;\n assert_1.assert(typeof value == 'number');\n if (Number.isNaN(value))\n return 'NaN';\n if (value === Number.POSITIVE_INFINITY)\n return 'Infinity';\n if (value === Number.NEGATIVE_INFINITY)\n return '-Infinity';\n return value;\n // string:\n case reflection_info_1.ScalarType.STRING:\n if (value === \"\")\n return ed ? '' : undefined;\n assert_1.assert(typeof value == 'string');\n return value;\n // bool:\n case reflection_info_1.ScalarType.BOOL:\n if (value === false)\n return ed ? false : undefined;\n assert_1.assert(typeof value == 'boolean');\n return value;\n // JSON value will be a decimal string. Either numbers or strings are accepted.\n case reflection_info_1.ScalarType.UINT64:\n case reflection_info_1.ScalarType.FIXED64:\n assert_1.assert(typeof value == 'number' || typeof value == 'string' || typeof value == 'bigint');\n let ulong = pb_long_1.PbULong.from(value);\n if (ulong.isZero() && !ed)\n return undefined;\n return ulong.toString();\n // JSON value will be a decimal string. Either numbers or strings are accepted.\n case reflection_info_1.ScalarType.INT64:\n case reflection_info_1.ScalarType.SFIXED64:\n case reflection_info_1.ScalarType.SINT64:\n assert_1.assert(typeof value == 'number' || typeof value == 'string' || typeof value == 'bigint');\n let long = pb_long_1.PbLong.from(value);\n if (long.isZero() && !ed)\n return undefined;\n return long.toString();\n // bytes: JSON value will be the data encoded as a string using standard base64 encoding with paddings.\n // Either standard or URL-safe base64 encoding with/without paddings are accepted.\n case reflection_info_1.ScalarType.BYTES:\n assert_1.assert(value instanceof Uint8Array);\n if (!value.byteLength)\n return ed ? \"\" : undefined;\n return base64_1.base64encode(value);\n }\n }\n}\nexports.ReflectionJsonWriter = ReflectionJsonWriter;\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.reflectionLongConvert = void 0;\nconst reflection_info_1 = require(\"./reflection-info\");\n/**\n * Utility method to convert a PbLong or PbUlong to a JavaScript\n * representation during runtime.\n *\n * Works with generated field information, `undefined` is equivalent\n * to `STRING`.\n */\nfunction reflectionLongConvert(long, type) {\n switch (type) {\n case reflection_info_1.LongType.BIGINT:\n return long.toBigInt();\n case reflection_info_1.LongType.NUMBER:\n return long.toNumber();\n default:\n // case undefined:\n // case LongType.STRING:\n return long.toString();\n }\n}\nexports.reflectionLongConvert = reflectionLongConvert;\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.reflectionMergePartial = void 0;\n/**\n * Copy partial data into the target message.\n *\n * If a singular scalar or enum field is present in the source, it\n * replaces the field in the target.\n *\n * If a singular message field is present in the source, it is merged\n * with the target field by calling mergePartial() of the responsible\n * message type.\n *\n * If a repeated field is present in the source, its values replace\n * all values in the target array, removing extraneous values.\n * Repeated message fields are copied, not merged.\n *\n * If a map field is present in the source, entries are added to the\n * target map, replacing entries with the same key. Entries that only\n * exist in the target remain. Entries with message values are copied,\n * not merged.\n *\n * Note that this function differs from protobuf merge semantics,\n * which appends repeated fields.\n */\nfunction reflectionMergePartial(info, target, source) {\n let fieldValue, // the field value we are working with\n input = source, output; // where we want our field value to go\n for (let field of info.fields) {\n let name = field.localName;\n if (field.oneof) {\n const group = input[field.oneof]; // this is the oneof`s group in the source\n if ((group === null || group === void 0 ? void 0 : group.oneofKind) == undefined) { // the user is free to omit\n continue; // we skip this field, and all other members too\n }\n fieldValue = group[name]; // our value comes from the the oneof group of the source\n output = target[field.oneof]; // and our output is the oneof group of the target\n output.oneofKind = group.oneofKind; // always update discriminator\n if (fieldValue == undefined) {\n delete output[name]; // remove any existing value\n continue; // skip further work on field\n }\n }\n else {\n fieldValue = input[name]; // we are using the source directly\n output = target; // we want our field value to go directly into the target\n if (fieldValue == undefined) {\n continue; // skip further work on field, existing value is used as is\n }\n }\n if (field.repeat)\n output[name].length = fieldValue.length; // resize target array to match source array\n // now we just work with `fieldValue` and `output` to merge the value\n switch (field.kind) {\n case \"scalar\":\n case \"enum\":\n if (field.repeat)\n for (let i = 0; i < fieldValue.length; i++)\n output[name][i] = fieldValue[i]; // not a reference type\n else\n output[name] = fieldValue; // not a reference type\n break;\n case \"message\":\n let T = field.T();\n if (field.repeat)\n for (let i = 0; i < fieldValue.length; i++)\n output[name][i] = T.create(fieldValue[i]);\n else if (output[name] === undefined)\n output[name] = T.create(fieldValue); // nothing to merge with\n else\n T.mergePartial(output[name], fieldValue);\n break;\n case \"map\":\n // Map and repeated fields are simply overwritten, not appended or merged\n switch (field.V.kind) {\n case \"scalar\":\n case \"enum\":\n Object.assign(output[name], fieldValue); // elements are not reference types\n break;\n case \"message\":\n let T = field.V.T();\n for (let k of Object.keys(fieldValue))\n output[name][k] = T.create(fieldValue[k]);\n break;\n }\n break;\n }\n }\n}\nexports.reflectionMergePartial = reflectionMergePartial;\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.reflectionScalarDefault = void 0;\nconst reflection_info_1 = require(\"./reflection-info\");\nconst reflection_long_convert_1 = require(\"./reflection-long-convert\");\nconst pb_long_1 = require(\"./pb-long\");\n/**\n * Creates the default value for a scalar type.\n */\nfunction reflectionScalarDefault(type, longType = reflection_info_1.LongType.STRING) {\n switch (type) {\n case reflection_info_1.ScalarType.BOOL:\n return false;\n case reflection_info_1.ScalarType.UINT64:\n case reflection_info_1.ScalarType.FIXED64:\n return reflection_long_convert_1.reflectionLongConvert(pb_long_1.PbULong.ZERO, longType);\n case reflection_info_1.ScalarType.INT64:\n case reflection_info_1.ScalarType.SFIXED64:\n case reflection_info_1.ScalarType.SINT64:\n return reflection_long_convert_1.reflectionLongConvert(pb_long_1.PbLong.ZERO, longType);\n case reflection_info_1.ScalarType.DOUBLE:\n case reflection_info_1.ScalarType.FLOAT:\n return 0.0;\n case reflection_info_1.ScalarType.BYTES:\n return new Uint8Array(0);\n case reflection_info_1.ScalarType.STRING:\n return \"\";\n default:\n // case ScalarType.INT32:\n // case ScalarType.UINT32:\n // case ScalarType.SINT32:\n // case ScalarType.FIXED32:\n // case ScalarType.SFIXED32:\n return 0;\n }\n}\nexports.reflectionScalarDefault = reflectionScalarDefault;\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.ReflectionTypeCheck = void 0;\nconst reflection_info_1 = require(\"./reflection-info\");\nconst oneof_1 = require(\"./oneof\");\n// noinspection JSMethodCanBeStatic\nclass ReflectionTypeCheck {\n constructor(info) {\n var _a;\n this.fields = (_a = info.fields) !== null && _a !== void 0 ? _a : [];\n }\n prepare() {\n if (this.data)\n return;\n const req = [], known = [], oneofs = [];\n for (let field of this.fields) {\n if (field.oneof) {\n if (!oneofs.includes(field.oneof)) {\n oneofs.push(field.oneof);\n req.push(field.oneof);\n known.push(field.oneof);\n }\n }\n else {\n known.push(field.localName);\n switch (field.kind) {\n case \"scalar\":\n case \"enum\":\n if (!field.opt || field.repeat)\n req.push(field.localName);\n break;\n case \"message\":\n if (field.repeat)\n req.push(field.localName);\n break;\n case \"map\":\n req.push(field.localName);\n break;\n }\n }\n }\n this.data = { req, known, oneofs: Object.values(oneofs) };\n }\n /**\n * Is the argument a valid message as specified by the\n * reflection information?\n *\n * Checks all field types recursively. The `depth`\n * specifies how deep into the structure the check will be.\n *\n * With a depth of 0, only the presence of fields\n * is checked.\n *\n * With a depth of 1 or more, the field types are checked.\n *\n * With a depth of 2 or more, the members of map, repeated\n * and message fields are checked.\n *\n * Message fields will be checked recursively with depth - 1.\n *\n * The number of map entries / repeated values being checked\n * is < depth.\n */\n is(message, depth, allowExcessProperties = false) {\n if (depth < 0)\n return true;\n if (message === null || message === undefined || typeof message != 'object')\n return false;\n this.prepare();\n let keys = Object.keys(message), data = this.data;\n // if a required field is missing in arg, this cannot be a T\n if (keys.length < data.req.length || data.req.some(n => !keys.includes(n)))\n return false;\n if (!allowExcessProperties) {\n // if the arg contains a key we dont know, this is not a literal T\n if (keys.some(k => !data.known.includes(k)))\n return false;\n }\n // \"With a depth of 0, only the presence and absence of fields is checked.\"\n // \"With a depth of 1 or more, the field types are checked.\"\n if (depth < 1) {\n return true;\n }\n // check oneof group\n for (const name of data.oneofs) {\n const group = message[name];\n if (!oneof_1.isOneofGroup(group))\n return false;\n if (group.oneofKind === undefined)\n continue;\n const field = this.fields.find(f => f.localName === group.oneofKind);\n if (!field)\n return false; // we found no field, but have a kind, something is wrong\n if (!this.field(group[group.oneofKind], field, allowExcessProperties, depth))\n return false;\n }\n // check types\n for (const field of this.fields) {\n if (field.oneof !== undefined)\n continue;\n if (!this.field(message[field.localName], field, allowExcessProperties, depth))\n return false;\n }\n return true;\n }\n field(arg, field, allowExcessProperties, depth) {\n let repeated = field.repeat;\n switch (field.kind) {\n case \"scalar\":\n if (arg === undefined)\n return field.opt;\n if (repeated)\n return this.scalars(arg, field.T, depth, field.L);\n return this.scalar(arg, field.T, field.L);\n case \"enum\":\n if (arg === undefined)\n return field.opt;\n if (repeated)\n return this.scalars(arg, reflection_info_1.ScalarType.INT32, depth);\n return this.scalar(arg, reflection_info_1.ScalarType.INT32);\n case \"message\":\n if (arg === undefined)\n return true;\n if (repeated)\n return this.messages(arg, field.T(), allowExcessProperties, depth);\n return this.message(arg, field.T(), allowExcessProperties, depth);\n case \"map\":\n if (typeof arg != 'object' || arg === null)\n return false;\n if (depth < 2)\n return true;\n if (!this.mapKeys(arg, field.K, depth))\n return false;\n switch (field.V.kind) {\n case \"scalar\":\n return this.scalars(Object.values(arg), field.V.T, depth, field.V.L);\n case \"enum\":\n return this.scalars(Object.values(arg), reflection_info_1.ScalarType.INT32, depth);\n case \"message\":\n return this.messages(Object.values(arg), field.V.T(), allowExcessProperties, depth);\n }\n break;\n }\n return true;\n }\n message(arg, type, allowExcessProperties, depth) {\n if (allowExcessProperties) {\n return type.isAssignable(arg, depth);\n }\n return type.is(arg, depth);\n }\n messages(arg, type, allowExcessProperties, depth) {\n if (!Array.isArray(arg))\n return false;\n if (depth < 2)\n return true;\n if (allowExcessProperties) {\n for (let i = 0; i < arg.length && i < depth; i++)\n if (!type.isAssignable(arg[i], depth - 1))\n return false;\n }\n else {\n for (let i = 0; i < arg.length && i < depth; i++)\n if (!type.is(arg[i], depth - 1))\n return false;\n }\n return true;\n }\n scalar(arg, type, longType) {\n let argType = typeof arg;\n switch (type) {\n case reflection_info_1.ScalarType.UINT64:\n case reflection_info_1.ScalarType.FIXED64:\n case reflection_info_1.ScalarType.INT64:\n case reflection_info_1.ScalarType.SFIXED64:\n case reflection_info_1.ScalarType.SINT64:\n switch (longType) {\n case reflection_info_1.LongType.BIGINT:\n return argType == \"bigint\";\n case reflection_info_1.LongType.NUMBER:\n return argType == \"number\" && !isNaN(arg);\n default:\n return argType == \"string\";\n }\n case reflection_info_1.ScalarType.BOOL:\n return argType == 'boolean';\n case reflection_info_1.ScalarType.STRING:\n return argType == 'string';\n case reflection_info_1.ScalarType.BYTES:\n return arg instanceof Uint8Array;\n case reflection_info_1.ScalarType.DOUBLE:\n case reflection_info_1.ScalarType.FLOAT:\n return argType == 'number' && !isNaN(arg);\n default:\n // case ScalarType.UINT32:\n // case ScalarType.FIXED32:\n // case ScalarType.INT32:\n // case ScalarType.SINT32:\n // case ScalarType.SFIXED32:\n return argType == 'number' && Number.isInteger(arg);\n }\n }\n scalars(arg, type, depth, longType) {\n if (!Array.isArray(arg))\n return false;\n if (depth < 2)\n return true;\n if (Array.isArray(arg))\n for (let i = 0; i < arg.length && i < depth; i++)\n if (!this.scalar(arg[i], type, longType))\n return false;\n return true;\n }\n mapKeys(map, type, depth) {\n let keys = Object.keys(map);\n switch (type) {\n case reflection_info_1.ScalarType.INT32:\n case reflection_info_1.ScalarType.FIXED32:\n case reflection_info_1.ScalarType.SFIXED32:\n case reflection_info_1.ScalarType.SINT32:\n case reflection_info_1.ScalarType.UINT32:\n return this.scalars(keys.slice(0, depth).map(k => parseInt(k)), type, depth);\n case reflection_info_1.ScalarType.BOOL:\n return this.scalars(keys.slice(0, depth).map(k => k == 'true' ? true : k == 'false' ? false : k), type, depth);\n default:\n return this.scalars(keys, type, depth, reflection_info_1.LongType.STRING);\n }\n }\n}\nexports.ReflectionTypeCheck = ReflectionTypeCheck;\n","var __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __name = (target, value) => __defProp(target, \"name\", { value, configurable: true });\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n};\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\n\n// src/index.ts\nvar src_exports = {};\n__export(src_exports, {\n CONFIG_USE_DUALSTACK_ENDPOINT: () => CONFIG_USE_DUALSTACK_ENDPOINT,\n CONFIG_USE_FIPS_ENDPOINT: () => CONFIG_USE_FIPS_ENDPOINT,\n DEFAULT_USE_DUALSTACK_ENDPOINT: () => DEFAULT_USE_DUALSTACK_ENDPOINT,\n DEFAULT_USE_FIPS_ENDPOINT: () => DEFAULT_USE_FIPS_ENDPOINT,\n ENV_USE_DUALSTACK_ENDPOINT: () => ENV_USE_DUALSTACK_ENDPOINT,\n ENV_USE_FIPS_ENDPOINT: () => ENV_USE_FIPS_ENDPOINT,\n NODE_REGION_CONFIG_FILE_OPTIONS: () => NODE_REGION_CONFIG_FILE_OPTIONS,\n NODE_REGION_CONFIG_OPTIONS: () => NODE_REGION_CONFIG_OPTIONS,\n NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS: () => NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS,\n NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS: () => NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS,\n REGION_ENV_NAME: () => REGION_ENV_NAME,\n REGION_INI_NAME: () => REGION_INI_NAME,\n getRegionInfo: () => getRegionInfo,\n resolveCustomEndpointsConfig: () => resolveCustomEndpointsConfig,\n resolveEndpointsConfig: () => resolveEndpointsConfig,\n resolveRegionConfig: () => resolveRegionConfig\n});\nmodule.exports = __toCommonJS(src_exports);\n\n// src/endpointsConfig/NodeUseDualstackEndpointConfigOptions.ts\nvar import_util_config_provider = require(\"@smithy/util-config-provider\");\nvar ENV_USE_DUALSTACK_ENDPOINT = \"AWS_USE_DUALSTACK_ENDPOINT\";\nvar CONFIG_USE_DUALSTACK_ENDPOINT = \"use_dualstack_endpoint\";\nvar DEFAULT_USE_DUALSTACK_ENDPOINT = false;\nvar NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS = {\n environmentVariableSelector: (env) => (0, import_util_config_provider.booleanSelector)(env, ENV_USE_DUALSTACK_ENDPOINT, import_util_config_provider.SelectorType.ENV),\n configFileSelector: (profile) => (0, import_util_config_provider.booleanSelector)(profile, CONFIG_USE_DUALSTACK_ENDPOINT, import_util_config_provider.SelectorType.CONFIG),\n default: false\n};\n\n// src/endpointsConfig/NodeUseFipsEndpointConfigOptions.ts\n\nvar ENV_USE_FIPS_ENDPOINT = \"AWS_USE_FIPS_ENDPOINT\";\nvar CONFIG_USE_FIPS_ENDPOINT = \"use_fips_endpoint\";\nvar DEFAULT_USE_FIPS_ENDPOINT = false;\nvar NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS = {\n environmentVariableSelector: (env) => (0, import_util_config_provider.booleanSelector)(env, ENV_USE_FIPS_ENDPOINT, import_util_config_provider.SelectorType.ENV),\n configFileSelector: (profile) => (0, import_util_config_provider.booleanSelector)(profile, CONFIG_USE_FIPS_ENDPOINT, import_util_config_provider.SelectorType.CONFIG),\n default: false\n};\n\n// src/endpointsConfig/resolveCustomEndpointsConfig.ts\nvar import_util_middleware = require(\"@smithy/util-middleware\");\nvar resolveCustomEndpointsConfig = /* @__PURE__ */ __name((input) => {\n const { endpoint, urlParser } = input;\n return {\n ...input,\n tls: input.tls ?? true,\n endpoint: (0, import_util_middleware.normalizeProvider)(typeof endpoint === \"string\" ? urlParser(endpoint) : endpoint),\n isCustomEndpoint: true,\n useDualstackEndpoint: (0, import_util_middleware.normalizeProvider)(input.useDualstackEndpoint ?? false)\n };\n}, \"resolveCustomEndpointsConfig\");\n\n// src/endpointsConfig/resolveEndpointsConfig.ts\n\n\n// src/endpointsConfig/utils/getEndpointFromRegion.ts\nvar getEndpointFromRegion = /* @__PURE__ */ __name(async (input) => {\n const { tls = true } = input;\n const region = await input.region();\n const dnsHostRegex = new RegExp(/^([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9-]{0,61}[a-zA-Z0-9])$/);\n if (!dnsHostRegex.test(region)) {\n throw new Error(\"Invalid region in client config\");\n }\n const useDualstackEndpoint = await input.useDualstackEndpoint();\n const useFipsEndpoint = await input.useFipsEndpoint();\n const { hostname } = await input.regionInfoProvider(region, { useDualstackEndpoint, useFipsEndpoint }) ?? {};\n if (!hostname) {\n throw new Error(\"Cannot resolve hostname from client config\");\n }\n return input.urlParser(`${tls ? \"https:\" : \"http:\"}//${hostname}`);\n}, \"getEndpointFromRegion\");\n\n// src/endpointsConfig/resolveEndpointsConfig.ts\nvar resolveEndpointsConfig = /* @__PURE__ */ __name((input) => {\n const useDualstackEndpoint = (0, import_util_middleware.normalizeProvider)(input.useDualstackEndpoint ?? false);\n const { endpoint, useFipsEndpoint, urlParser } = input;\n return {\n ...input,\n tls: input.tls ?? true,\n endpoint: endpoint ? (0, import_util_middleware.normalizeProvider)(typeof endpoint === \"string\" ? urlParser(endpoint) : endpoint) : () => getEndpointFromRegion({ ...input, useDualstackEndpoint, useFipsEndpoint }),\n isCustomEndpoint: !!endpoint,\n useDualstackEndpoint\n };\n}, \"resolveEndpointsConfig\");\n\n// src/regionConfig/config.ts\nvar REGION_ENV_NAME = \"AWS_REGION\";\nvar REGION_INI_NAME = \"region\";\nvar NODE_REGION_CONFIG_OPTIONS = {\n environmentVariableSelector: (env) => env[REGION_ENV_NAME],\n configFileSelector: (profile) => profile[REGION_INI_NAME],\n default: () => {\n throw new Error(\"Region is missing\");\n }\n};\nvar NODE_REGION_CONFIG_FILE_OPTIONS = {\n preferredFile: \"credentials\"\n};\n\n// src/regionConfig/isFipsRegion.ts\nvar isFipsRegion = /* @__PURE__ */ __name((region) => typeof region === \"string\" && (region.startsWith(\"fips-\") || region.endsWith(\"-fips\")), \"isFipsRegion\");\n\n// src/regionConfig/getRealRegion.ts\nvar getRealRegion = /* @__PURE__ */ __name((region) => isFipsRegion(region) ? [\"fips-aws-global\", \"aws-fips\"].includes(region) ? \"us-east-1\" : region.replace(/fips-(dkr-|prod-)?|-fips/, \"\") : region, \"getRealRegion\");\n\n// src/regionConfig/resolveRegionConfig.ts\nvar resolveRegionConfig = /* @__PURE__ */ __name((input) => {\n const { region, useFipsEndpoint } = input;\n if (!region) {\n throw new Error(\"Region is missing\");\n }\n return {\n ...input,\n region: async () => {\n if (typeof region === \"string\") {\n return getRealRegion(region);\n }\n const providedRegion = await region();\n return getRealRegion(providedRegion);\n },\n useFipsEndpoint: async () => {\n const providedRegion = typeof region === \"string\" ? region : await region();\n if (isFipsRegion(providedRegion)) {\n return true;\n }\n return typeof useFipsEndpoint !== \"function\" ? Promise.resolve(!!useFipsEndpoint) : useFipsEndpoint();\n }\n };\n}, \"resolveRegionConfig\");\n\n// src/regionInfo/getHostnameFromVariants.ts\nvar getHostnameFromVariants = /* @__PURE__ */ __name((variants = [], { useFipsEndpoint, useDualstackEndpoint }) => variants.find(\n ({ tags }) => useFipsEndpoint === tags.includes(\"fips\") && useDualstackEndpoint === tags.includes(\"dualstack\")\n)?.hostname, \"getHostnameFromVariants\");\n\n// src/regionInfo/getResolvedHostname.ts\nvar getResolvedHostname = /* @__PURE__ */ __name((resolvedRegion, { regionHostname, partitionHostname }) => regionHostname ? regionHostname : partitionHostname ? partitionHostname.replace(\"{region}\", resolvedRegion) : void 0, \"getResolvedHostname\");\n\n// src/regionInfo/getResolvedPartition.ts\nvar getResolvedPartition = /* @__PURE__ */ __name((region, { partitionHash }) => Object.keys(partitionHash || {}).find((key) => partitionHash[key].regions.includes(region)) ?? \"aws\", \"getResolvedPartition\");\n\n// src/regionInfo/getResolvedSigningRegion.ts\nvar getResolvedSigningRegion = /* @__PURE__ */ __name((hostname, { signingRegion, regionRegex, useFipsEndpoint }) => {\n if (signingRegion) {\n return signingRegion;\n } else if (useFipsEndpoint) {\n const regionRegexJs = regionRegex.replace(\"\\\\\\\\\", \"\\\\\").replace(/^\\^/g, \"\\\\.\").replace(/\\$$/g, \"\\\\.\");\n const regionRegexmatchArray = hostname.match(regionRegexJs);\n if (regionRegexmatchArray) {\n return regionRegexmatchArray[0].slice(1, -1);\n }\n }\n}, \"getResolvedSigningRegion\");\n\n// src/regionInfo/getRegionInfo.ts\nvar getRegionInfo = /* @__PURE__ */ __name((region, {\n useFipsEndpoint = false,\n useDualstackEndpoint = false,\n signingService,\n regionHash,\n partitionHash\n}) => {\n const partition = getResolvedPartition(region, { partitionHash });\n const resolvedRegion = region in regionHash ? region : partitionHash[partition]?.endpoint ?? region;\n const hostnameOptions = { useFipsEndpoint, useDualstackEndpoint };\n const regionHostname = getHostnameFromVariants(regionHash[resolvedRegion]?.variants, hostnameOptions);\n const partitionHostname = getHostnameFromVariants(partitionHash[partition]?.variants, hostnameOptions);\n const hostname = getResolvedHostname(resolvedRegion, { regionHostname, partitionHostname });\n if (hostname === void 0) {\n throw new Error(`Endpoint resolution failed for: ${{ resolvedRegion, useFipsEndpoint, useDualstackEndpoint }}`);\n }\n const signingRegion = getResolvedSigningRegion(hostname, {\n signingRegion: regionHash[resolvedRegion]?.signingRegion,\n regionRegex: partitionHash[partition].regionRegex,\n useFipsEndpoint\n });\n return {\n partition,\n signingService,\n hostname,\n ...signingRegion && { signingRegion },\n ...regionHash[resolvedRegion]?.signingService && {\n signingService: regionHash[resolvedRegion].signingService\n }\n };\n}, \"getRegionInfo\");\n// Annotate the CommonJS export names for ESM import in node:\n\n0 && (module.exports = {\n ENV_USE_DUALSTACK_ENDPOINT,\n CONFIG_USE_DUALSTACK_ENDPOINT,\n DEFAULT_USE_DUALSTACK_ENDPOINT,\n NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS,\n ENV_USE_FIPS_ENDPOINT,\n CONFIG_USE_FIPS_ENDPOINT,\n DEFAULT_USE_FIPS_ENDPOINT,\n NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS,\n resolveCustomEndpointsConfig,\n resolveEndpointsConfig,\n REGION_ENV_NAME,\n REGION_INI_NAME,\n NODE_REGION_CONFIG_OPTIONS,\n NODE_REGION_CONFIG_FILE_OPTIONS,\n resolveRegionConfig,\n getRegionInfo\n});\n\n","var __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __name = (target, value) => __defProp(target, \"name\", { value, configurable: true });\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n};\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\n\n// src/index.ts\nvar src_exports = {};\n__export(src_exports, {\n DefaultIdentityProviderConfig: () => DefaultIdentityProviderConfig,\n EXPIRATION_MS: () => EXPIRATION_MS,\n HttpApiKeyAuthSigner: () => HttpApiKeyAuthSigner,\n HttpBearerAuthSigner: () => HttpBearerAuthSigner,\n NoAuthSigner: () => NoAuthSigner,\n createIsIdentityExpiredFunction: () => createIsIdentityExpiredFunction,\n createPaginator: () => createPaginator,\n doesIdentityRequireRefresh: () => doesIdentityRequireRefresh,\n getHttpAuthSchemeEndpointRuleSetPlugin: () => getHttpAuthSchemeEndpointRuleSetPlugin,\n getHttpAuthSchemePlugin: () => getHttpAuthSchemePlugin,\n getHttpSigningPlugin: () => getHttpSigningPlugin,\n getSmithyContext: () => getSmithyContext,\n httpAuthSchemeEndpointRuleSetMiddlewareOptions: () => httpAuthSchemeEndpointRuleSetMiddlewareOptions,\n httpAuthSchemeMiddleware: () => httpAuthSchemeMiddleware,\n httpAuthSchemeMiddlewareOptions: () => httpAuthSchemeMiddlewareOptions,\n httpSigningMiddleware: () => httpSigningMiddleware,\n httpSigningMiddlewareOptions: () => httpSigningMiddlewareOptions,\n isIdentityExpired: () => isIdentityExpired,\n memoizeIdentityProvider: () => memoizeIdentityProvider,\n normalizeProvider: () => normalizeProvider,\n requestBuilder: () => import_protocols.requestBuilder,\n setFeature: () => setFeature\n});\nmodule.exports = __toCommonJS(src_exports);\n\n// src/getSmithyContext.ts\nvar import_types = require(\"@smithy/types\");\nvar getSmithyContext = /* @__PURE__ */ __name((context) => context[import_types.SMITHY_CONTEXT_KEY] || (context[import_types.SMITHY_CONTEXT_KEY] = {}), \"getSmithyContext\");\n\n// src/middleware-http-auth-scheme/httpAuthSchemeMiddleware.ts\nvar import_util_middleware = require(\"@smithy/util-middleware\");\nfunction convertHttpAuthSchemesToMap(httpAuthSchemes) {\n const map = /* @__PURE__ */ new Map();\n for (const scheme of httpAuthSchemes) {\n map.set(scheme.schemeId, scheme);\n }\n return map;\n}\n__name(convertHttpAuthSchemesToMap, \"convertHttpAuthSchemesToMap\");\nvar httpAuthSchemeMiddleware = /* @__PURE__ */ __name((config, mwOptions) => (next, context) => async (args) => {\n const options = config.httpAuthSchemeProvider(\n await mwOptions.httpAuthSchemeParametersProvider(config, context, args.input)\n );\n const authSchemes = convertHttpAuthSchemesToMap(config.httpAuthSchemes);\n const smithyContext = (0, import_util_middleware.getSmithyContext)(context);\n const failureReasons = [];\n for (const option of options) {\n const scheme = authSchemes.get(option.schemeId);\n if (!scheme) {\n failureReasons.push(`HttpAuthScheme \\`${option.schemeId}\\` was not enabled for this service.`);\n continue;\n }\n const identityProvider = scheme.identityProvider(await mwOptions.identityProviderConfigProvider(config));\n if (!identityProvider) {\n failureReasons.push(`HttpAuthScheme \\`${option.schemeId}\\` did not have an IdentityProvider configured.`);\n continue;\n }\n const { identityProperties = {}, signingProperties = {} } = option.propertiesExtractor?.(config, context) || {};\n option.identityProperties = Object.assign(option.identityProperties || {}, identityProperties);\n option.signingProperties = Object.assign(option.signingProperties || {}, signingProperties);\n smithyContext.selectedHttpAuthScheme = {\n httpAuthOption: option,\n identity: await identityProvider(option.identityProperties),\n signer: scheme.signer\n };\n break;\n }\n if (!smithyContext.selectedHttpAuthScheme) {\n throw new Error(failureReasons.join(\"\\n\"));\n }\n return next(args);\n}, \"httpAuthSchemeMiddleware\");\n\n// src/middleware-http-auth-scheme/getHttpAuthSchemeEndpointRuleSetPlugin.ts\nvar httpAuthSchemeEndpointRuleSetMiddlewareOptions = {\n step: \"serialize\",\n tags: [\"HTTP_AUTH_SCHEME\"],\n name: \"httpAuthSchemeMiddleware\",\n override: true,\n relation: \"before\",\n toMiddleware: \"endpointV2Middleware\"\n};\nvar getHttpAuthSchemeEndpointRuleSetPlugin = /* @__PURE__ */ __name((config, {\n httpAuthSchemeParametersProvider,\n identityProviderConfigProvider\n}) => ({\n applyToStack: (clientStack) => {\n clientStack.addRelativeTo(\n httpAuthSchemeMiddleware(config, {\n httpAuthSchemeParametersProvider,\n identityProviderConfigProvider\n }),\n httpAuthSchemeEndpointRuleSetMiddlewareOptions\n );\n }\n}), \"getHttpAuthSchemeEndpointRuleSetPlugin\");\n\n// src/middleware-http-auth-scheme/getHttpAuthSchemePlugin.ts\nvar import_middleware_serde = require(\"@smithy/middleware-serde\");\nvar httpAuthSchemeMiddlewareOptions = {\n step: \"serialize\",\n tags: [\"HTTP_AUTH_SCHEME\"],\n name: \"httpAuthSchemeMiddleware\",\n override: true,\n relation: \"before\",\n toMiddleware: import_middleware_serde.serializerMiddlewareOption.name\n};\nvar getHttpAuthSchemePlugin = /* @__PURE__ */ __name((config, {\n httpAuthSchemeParametersProvider,\n identityProviderConfigProvider\n}) => ({\n applyToStack: (clientStack) => {\n clientStack.addRelativeTo(\n httpAuthSchemeMiddleware(config, {\n httpAuthSchemeParametersProvider,\n identityProviderConfigProvider\n }),\n httpAuthSchemeMiddlewareOptions\n );\n }\n}), \"getHttpAuthSchemePlugin\");\n\n// src/middleware-http-signing/httpSigningMiddleware.ts\nvar import_protocol_http = require(\"@smithy/protocol-http\");\n\nvar defaultErrorHandler = /* @__PURE__ */ __name((signingProperties) => (error) => {\n throw error;\n}, \"defaultErrorHandler\");\nvar defaultSuccessHandler = /* @__PURE__ */ __name((httpResponse, signingProperties) => {\n}, \"defaultSuccessHandler\");\nvar httpSigningMiddleware = /* @__PURE__ */ __name((config) => (next, context) => async (args) => {\n if (!import_protocol_http.HttpRequest.isInstance(args.request)) {\n return next(args);\n }\n const smithyContext = (0, import_util_middleware.getSmithyContext)(context);\n const scheme = smithyContext.selectedHttpAuthScheme;\n if (!scheme) {\n throw new Error(`No HttpAuthScheme was selected: unable to sign request`);\n }\n const {\n httpAuthOption: { signingProperties = {} },\n identity,\n signer\n } = scheme;\n const output = await next({\n ...args,\n request: await signer.sign(args.request, identity, signingProperties)\n }).catch((signer.errorHandler || defaultErrorHandler)(signingProperties));\n (signer.successHandler || defaultSuccessHandler)(output.response, signingProperties);\n return output;\n}, \"httpSigningMiddleware\");\n\n// src/middleware-http-signing/getHttpSigningMiddleware.ts\nvar httpSigningMiddlewareOptions = {\n step: \"finalizeRequest\",\n tags: [\"HTTP_SIGNING\"],\n name: \"httpSigningMiddleware\",\n aliases: [\"apiKeyMiddleware\", \"tokenMiddleware\", \"awsAuthMiddleware\"],\n override: true,\n relation: \"after\",\n toMiddleware: \"retryMiddleware\"\n};\nvar getHttpSigningPlugin = /* @__PURE__ */ __name((config) => ({\n applyToStack: (clientStack) => {\n clientStack.addRelativeTo(httpSigningMiddleware(config), httpSigningMiddlewareOptions);\n }\n}), \"getHttpSigningPlugin\");\n\n// src/normalizeProvider.ts\nvar normalizeProvider = /* @__PURE__ */ __name((input) => {\n if (typeof input === \"function\")\n return input;\n const promisified = Promise.resolve(input);\n return () => promisified;\n}, \"normalizeProvider\");\n\n// src/pagination/createPaginator.ts\nvar makePagedClientRequest = /* @__PURE__ */ __name(async (CommandCtor, client, input, withCommand = (_) => _, ...args) => {\n let command = new CommandCtor(input);\n command = withCommand(command) ?? command;\n return await client.send(command, ...args);\n}, \"makePagedClientRequest\");\nfunction createPaginator(ClientCtor, CommandCtor, inputTokenName, outputTokenName, pageSizeTokenName) {\n return /* @__PURE__ */ __name(async function* paginateOperation(config, input, ...additionalArguments) {\n const _input = input;\n let token = config.startingToken ?? _input[inputTokenName];\n let hasNext = true;\n let page;\n while (hasNext) {\n _input[inputTokenName] = token;\n if (pageSizeTokenName) {\n _input[pageSizeTokenName] = _input[pageSizeTokenName] ?? config.pageSize;\n }\n if (config.client instanceof ClientCtor) {\n page = await makePagedClientRequest(\n CommandCtor,\n config.client,\n input,\n config.withCommand,\n ...additionalArguments\n );\n } else {\n throw new Error(`Invalid client, expected instance of ${ClientCtor.name}`);\n }\n yield page;\n const prevToken = token;\n token = get(page, outputTokenName);\n hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));\n }\n return void 0;\n }, \"paginateOperation\");\n}\n__name(createPaginator, \"createPaginator\");\nvar get = /* @__PURE__ */ __name((fromObject, path) => {\n let cursor = fromObject;\n const pathComponents = path.split(\".\");\n for (const step of pathComponents) {\n if (!cursor || typeof cursor !== \"object\") {\n return void 0;\n }\n cursor = cursor[step];\n }\n return cursor;\n}, \"get\");\n\n// src/protocols/requestBuilder.ts\nvar import_protocols = require(\"@smithy/core/protocols\");\n\n// src/setFeature.ts\nfunction setFeature(context, feature, value) {\n if (!context.__smithy_context) {\n context.__smithy_context = {\n features: {}\n };\n } else if (!context.__smithy_context.features) {\n context.__smithy_context.features = {};\n }\n context.__smithy_context.features[feature] = value;\n}\n__name(setFeature, \"setFeature\");\n\n// src/util-identity-and-auth/DefaultIdentityProviderConfig.ts\nvar DefaultIdentityProviderConfig = class {\n /**\n * Creates an IdentityProviderConfig with a record of scheme IDs to identity providers.\n *\n * @param config scheme IDs and identity providers to configure\n */\n constructor(config) {\n this.authSchemes = /* @__PURE__ */ new Map();\n for (const [key, value] of Object.entries(config)) {\n if (value !== void 0) {\n this.authSchemes.set(key, value);\n }\n }\n }\n static {\n __name(this, \"DefaultIdentityProviderConfig\");\n }\n getIdentityProvider(schemeId) {\n return this.authSchemes.get(schemeId);\n }\n};\n\n// src/util-identity-and-auth/httpAuthSchemes/httpApiKeyAuth.ts\n\n\nvar HttpApiKeyAuthSigner = class {\n static {\n __name(this, \"HttpApiKeyAuthSigner\");\n }\n async sign(httpRequest, identity, signingProperties) {\n if (!signingProperties) {\n throw new Error(\n \"request could not be signed with `apiKey` since the `name` and `in` signer properties are missing\"\n );\n }\n if (!signingProperties.name) {\n throw new Error(\"request could not be signed with `apiKey` since the `name` signer property is missing\");\n }\n if (!signingProperties.in) {\n throw new Error(\"request could not be signed with `apiKey` since the `in` signer property is missing\");\n }\n if (!identity.apiKey) {\n throw new Error(\"request could not be signed with `apiKey` since the `apiKey` is not defined\");\n }\n const clonedRequest = import_protocol_http.HttpRequest.clone(httpRequest);\n if (signingProperties.in === import_types.HttpApiKeyAuthLocation.QUERY) {\n clonedRequest.query[signingProperties.name] = identity.apiKey;\n } else if (signingProperties.in === import_types.HttpApiKeyAuthLocation.HEADER) {\n clonedRequest.headers[signingProperties.name] = signingProperties.scheme ? `${signingProperties.scheme} ${identity.apiKey}` : identity.apiKey;\n } else {\n throw new Error(\n \"request can only be signed with `apiKey` locations `query` or `header`, but found: `\" + signingProperties.in + \"`\"\n );\n }\n return clonedRequest;\n }\n};\n\n// src/util-identity-and-auth/httpAuthSchemes/httpBearerAuth.ts\n\nvar HttpBearerAuthSigner = class {\n static {\n __name(this, \"HttpBearerAuthSigner\");\n }\n async sign(httpRequest, identity, signingProperties) {\n const clonedRequest = import_protocol_http.HttpRequest.clone(httpRequest);\n if (!identity.token) {\n throw new Error(\"request could not be signed with `token` since the `token` is not defined\");\n }\n clonedRequest.headers[\"Authorization\"] = `Bearer ${identity.token}`;\n return clonedRequest;\n }\n};\n\n// src/util-identity-and-auth/httpAuthSchemes/noAuth.ts\nvar NoAuthSigner = class {\n static {\n __name(this, \"NoAuthSigner\");\n }\n async sign(httpRequest, identity, signingProperties) {\n return httpRequest;\n }\n};\n\n// src/util-identity-and-auth/memoizeIdentityProvider.ts\nvar createIsIdentityExpiredFunction = /* @__PURE__ */ __name((expirationMs) => (identity) => doesIdentityRequireRefresh(identity) && identity.expiration.getTime() - Date.now() < expirationMs, \"createIsIdentityExpiredFunction\");\nvar EXPIRATION_MS = 3e5;\nvar isIdentityExpired = createIsIdentityExpiredFunction(EXPIRATION_MS);\nvar doesIdentityRequireRefresh = /* @__PURE__ */ __name((identity) => identity.expiration !== void 0, \"doesIdentityRequireRefresh\");\nvar memoizeIdentityProvider = /* @__PURE__ */ __name((provider, isExpired, requiresRefresh) => {\n if (provider === void 0) {\n return void 0;\n }\n const normalizedProvider = typeof provider !== \"function\" ? async () => Promise.resolve(provider) : provider;\n let resolved;\n let pending;\n let hasResult;\n let isConstant = false;\n const coalesceProvider = /* @__PURE__ */ __name(async (options) => {\n if (!pending) {\n pending = normalizedProvider(options);\n }\n try {\n resolved = await pending;\n hasResult = true;\n isConstant = false;\n } finally {\n pending = void 0;\n }\n return resolved;\n }, \"coalesceProvider\");\n if (isExpired === void 0) {\n return async (options) => {\n if (!hasResult || options?.forceRefresh) {\n resolved = await coalesceProvider(options);\n }\n return resolved;\n };\n }\n return async (options) => {\n if (!hasResult || options?.forceRefresh) {\n resolved = await coalesceProvider(options);\n }\n if (isConstant) {\n return resolved;\n }\n if (!requiresRefresh(resolved)) {\n isConstant = true;\n return resolved;\n }\n if (isExpired(resolved)) {\n await coalesceProvider(options);\n return resolved;\n }\n return resolved;\n };\n}, \"memoizeIdentityProvider\");\n// Annotate the CommonJS export names for ESM import in node:\n\n0 && (module.exports = {\n createPaginator,\n getSmithyContext,\n httpAuthSchemeMiddleware,\n httpAuthSchemeEndpointRuleSetMiddlewareOptions,\n getHttpAuthSchemeEndpointRuleSetPlugin,\n httpAuthSchemeMiddlewareOptions,\n getHttpAuthSchemePlugin,\n httpSigningMiddleware,\n httpSigningMiddlewareOptions,\n getHttpSigningPlugin,\n normalizeProvider,\n requestBuilder,\n setFeature,\n DefaultIdentityProviderConfig,\n HttpApiKeyAuthSigner,\n HttpBearerAuthSigner,\n NoAuthSigner,\n createIsIdentityExpiredFunction,\n EXPIRATION_MS,\n isIdentityExpired,\n doesIdentityRequireRefresh,\n memoizeIdentityProvider\n});\n\n","var __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n};\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\n\n// src/submodules/protocols/index.ts\nvar protocols_exports = {};\n__export(protocols_exports, {\n RequestBuilder: () => RequestBuilder,\n collectBody: () => collectBody,\n extendedEncodeURIComponent: () => extendedEncodeURIComponent,\n requestBuilder: () => requestBuilder,\n resolvedPath: () => resolvedPath\n});\nmodule.exports = __toCommonJS(protocols_exports);\n\n// src/submodules/protocols/collect-stream-body.ts\nvar import_util_stream = require(\"@smithy/util-stream\");\nvar collectBody = async (streamBody = new Uint8Array(), context) => {\n if (streamBody instanceof Uint8Array) {\n return import_util_stream.Uint8ArrayBlobAdapter.mutate(streamBody);\n }\n if (!streamBody) {\n return import_util_stream.Uint8ArrayBlobAdapter.mutate(new Uint8Array());\n }\n const fromContext = context.streamCollector(streamBody);\n return import_util_stream.Uint8ArrayBlobAdapter.mutate(await fromContext);\n};\n\n// src/submodules/protocols/extended-encode-uri-component.ts\nfunction extendedEncodeURIComponent(str) {\n return encodeURIComponent(str).replace(/[!'()*]/g, function(c) {\n return \"%\" + c.charCodeAt(0).toString(16).toUpperCase();\n });\n}\n\n// src/submodules/protocols/requestBuilder.ts\nvar import_protocol_http = require(\"@smithy/protocol-http\");\n\n// src/submodules/protocols/resolve-path.ts\nvar resolvedPath = (resolvedPath2, input, memberName, labelValueProvider, uriLabel, isGreedyLabel) => {\n if (input != null && input[memberName] !== void 0) {\n const labelValue = labelValueProvider();\n if (labelValue.length <= 0) {\n throw new Error(\"Empty value provided for input HTTP label: \" + memberName + \".\");\n }\n resolvedPath2 = resolvedPath2.replace(\n uriLabel,\n isGreedyLabel ? labelValue.split(\"/\").map((segment) => extendedEncodeURIComponent(segment)).join(\"/\") : extendedEncodeURIComponent(labelValue)\n );\n } else {\n throw new Error(\"No value provided for input HTTP label: \" + memberName + \".\");\n }\n return resolvedPath2;\n};\n\n// src/submodules/protocols/requestBuilder.ts\nfunction requestBuilder(input, context) {\n return new RequestBuilder(input, context);\n}\nvar RequestBuilder = class {\n constructor(input, context) {\n this.input = input;\n this.context = context;\n this.query = {};\n this.method = \"\";\n this.headers = {};\n this.path = \"\";\n this.body = null;\n this.hostname = \"\";\n this.resolvePathStack = [];\n }\n async build() {\n const { hostname, protocol = \"https\", port, path: basePath } = await this.context.endpoint();\n this.path = basePath;\n for (const resolvePath of this.resolvePathStack) {\n resolvePath(this.path);\n }\n return new import_protocol_http.HttpRequest({\n protocol,\n hostname: this.hostname || hostname,\n port,\n method: this.method,\n path: this.path,\n query: this.query,\n body: this.body,\n headers: this.headers\n });\n }\n /**\n * Brevity setter for \"hostname\".\n */\n hn(hostname) {\n this.hostname = hostname;\n return this;\n }\n /**\n * Brevity initial builder for \"basepath\".\n */\n bp(uriLabel) {\n this.resolvePathStack.push((basePath) => {\n this.path = `${basePath?.endsWith(\"/\") ? basePath.slice(0, -1) : basePath || \"\"}` + uriLabel;\n });\n return this;\n }\n /**\n * Brevity incremental builder for \"path\".\n */\n p(memberName, labelValueProvider, uriLabel, isGreedyLabel) {\n this.resolvePathStack.push((path) => {\n this.path = resolvedPath(path, this.input, memberName, labelValueProvider, uriLabel, isGreedyLabel);\n });\n return this;\n }\n /**\n * Brevity setter for \"headers\".\n */\n h(headers) {\n this.headers = headers;\n return this;\n }\n /**\n * Brevity setter for \"query\".\n */\n q(query) {\n this.query = query;\n return this;\n }\n /**\n * Brevity setter for \"body\".\n */\n b(body) {\n this.body = body;\n return this;\n }\n /**\n * Brevity setter for \"method\".\n */\n m(method) {\n this.method = method;\n return this;\n }\n};\n// Annotate the CommonJS export names for ESM import in node:\n0 && (module.exports = {\n RequestBuilder,\n collectBody,\n extendedEncodeURIComponent,\n requestBuilder,\n resolvedPath\n});\n","var __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __name = (target, value) => __defProp(target, \"name\", { value, configurable: true });\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n};\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\n\n// src/index.ts\nvar src_exports = {};\n__export(src_exports, {\n DEFAULT_MAX_RETRIES: () => DEFAULT_MAX_RETRIES,\n DEFAULT_TIMEOUT: () => DEFAULT_TIMEOUT,\n ENV_CMDS_AUTH_TOKEN: () => ENV_CMDS_AUTH_TOKEN,\n ENV_CMDS_FULL_URI: () => ENV_CMDS_FULL_URI,\n ENV_CMDS_RELATIVE_URI: () => ENV_CMDS_RELATIVE_URI,\n Endpoint: () => Endpoint,\n fromContainerMetadata: () => fromContainerMetadata,\n fromInstanceMetadata: () => fromInstanceMetadata,\n getInstanceMetadataEndpoint: () => getInstanceMetadataEndpoint,\n httpRequest: () => httpRequest,\n providerConfigFromInit: () => providerConfigFromInit\n});\nmodule.exports = __toCommonJS(src_exports);\n\n// src/fromContainerMetadata.ts\n\nvar import_url = require(\"url\");\n\n// src/remoteProvider/httpRequest.ts\nvar import_property_provider = require(\"@smithy/property-provider\");\nvar import_buffer = require(\"buffer\");\nvar import_http = require(\"http\");\nfunction httpRequest(options) {\n return new Promise((resolve, reject) => {\n const req = (0, import_http.request)({\n method: \"GET\",\n ...options,\n // Node.js http module doesn't accept hostname with square brackets\n // Refs: https://github.com/nodejs/node/issues/39738\n hostname: options.hostname?.replace(/^\\[(.+)\\]$/, \"$1\")\n });\n req.on(\"error\", (err) => {\n reject(Object.assign(new import_property_provider.ProviderError(\"Unable to connect to instance metadata service\"), err));\n req.destroy();\n });\n req.on(\"timeout\", () => {\n reject(new import_property_provider.ProviderError(\"TimeoutError from instance metadata service\"));\n req.destroy();\n });\n req.on(\"response\", (res) => {\n const { statusCode = 400 } = res;\n if (statusCode < 200 || 300 <= statusCode) {\n reject(\n Object.assign(new import_property_provider.ProviderError(\"Error response received from instance metadata service\"), { statusCode })\n );\n req.destroy();\n }\n const chunks = [];\n res.on(\"data\", (chunk) => {\n chunks.push(chunk);\n });\n res.on(\"end\", () => {\n resolve(import_buffer.Buffer.concat(chunks));\n req.destroy();\n });\n });\n req.end();\n });\n}\n__name(httpRequest, \"httpRequest\");\n\n// src/remoteProvider/ImdsCredentials.ts\nvar isImdsCredentials = /* @__PURE__ */ __name((arg) => Boolean(arg) && typeof arg === \"object\" && typeof arg.AccessKeyId === \"string\" && typeof arg.SecretAccessKey === \"string\" && typeof arg.Token === \"string\" && typeof arg.Expiration === \"string\", \"isImdsCredentials\");\nvar fromImdsCredentials = /* @__PURE__ */ __name((creds) => ({\n accessKeyId: creds.AccessKeyId,\n secretAccessKey: creds.SecretAccessKey,\n sessionToken: creds.Token,\n expiration: new Date(creds.Expiration),\n ...creds.AccountId && { accountId: creds.AccountId }\n}), \"fromImdsCredentials\");\n\n// src/remoteProvider/RemoteProviderInit.ts\nvar DEFAULT_TIMEOUT = 1e3;\nvar DEFAULT_MAX_RETRIES = 0;\nvar providerConfigFromInit = /* @__PURE__ */ __name(({\n maxRetries = DEFAULT_MAX_RETRIES,\n timeout = DEFAULT_TIMEOUT\n}) => ({ maxRetries, timeout }), \"providerConfigFromInit\");\n\n// src/remoteProvider/retry.ts\nvar retry = /* @__PURE__ */ __name((toRetry, maxRetries) => {\n let promise = toRetry();\n for (let i = 0; i < maxRetries; i++) {\n promise = promise.catch(toRetry);\n }\n return promise;\n}, \"retry\");\n\n// src/fromContainerMetadata.ts\nvar ENV_CMDS_FULL_URI = \"AWS_CONTAINER_CREDENTIALS_FULL_URI\";\nvar ENV_CMDS_RELATIVE_URI = \"AWS_CONTAINER_CREDENTIALS_RELATIVE_URI\";\nvar ENV_CMDS_AUTH_TOKEN = \"AWS_CONTAINER_AUTHORIZATION_TOKEN\";\nvar fromContainerMetadata = /* @__PURE__ */ __name((init = {}) => {\n const { timeout, maxRetries } = providerConfigFromInit(init);\n return () => retry(async () => {\n const requestOptions = await getCmdsUri({ logger: init.logger });\n const credsResponse = JSON.parse(await requestFromEcsImds(timeout, requestOptions));\n if (!isImdsCredentials(credsResponse)) {\n throw new import_property_provider.CredentialsProviderError(\"Invalid response received from instance metadata service.\", {\n logger: init.logger\n });\n }\n return fromImdsCredentials(credsResponse);\n }, maxRetries);\n}, \"fromContainerMetadata\");\nvar requestFromEcsImds = /* @__PURE__ */ __name(async (timeout, options) => {\n if (process.env[ENV_CMDS_AUTH_TOKEN]) {\n options.headers = {\n ...options.headers,\n Authorization: process.env[ENV_CMDS_AUTH_TOKEN]\n };\n }\n const buffer = await httpRequest({\n ...options,\n timeout\n });\n return buffer.toString();\n}, \"requestFromEcsImds\");\nvar CMDS_IP = \"169.254.170.2\";\nvar GREENGRASS_HOSTS = {\n localhost: true,\n \"127.0.0.1\": true\n};\nvar GREENGRASS_PROTOCOLS = {\n \"http:\": true,\n \"https:\": true\n};\nvar getCmdsUri = /* @__PURE__ */ __name(async ({ logger }) => {\n if (process.env[ENV_CMDS_RELATIVE_URI]) {\n return {\n hostname: CMDS_IP,\n path: process.env[ENV_CMDS_RELATIVE_URI]\n };\n }\n if (process.env[ENV_CMDS_FULL_URI]) {\n const parsed = (0, import_url.parse)(process.env[ENV_CMDS_FULL_URI]);\n if (!parsed.hostname || !(parsed.hostname in GREENGRASS_HOSTS)) {\n throw new import_property_provider.CredentialsProviderError(`${parsed.hostname} is not a valid container metadata service hostname`, {\n tryNextLink: false,\n logger\n });\n }\n if (!parsed.protocol || !(parsed.protocol in GREENGRASS_PROTOCOLS)) {\n throw new import_property_provider.CredentialsProviderError(`${parsed.protocol} is not a valid container metadata service protocol`, {\n tryNextLink: false,\n logger\n });\n }\n return {\n ...parsed,\n port: parsed.port ? parseInt(parsed.port, 10) : void 0\n };\n }\n throw new import_property_provider.CredentialsProviderError(\n `The container metadata credential provider cannot be used unless the ${ENV_CMDS_RELATIVE_URI} or ${ENV_CMDS_FULL_URI} environment variable is set`,\n {\n tryNextLink: false,\n logger\n }\n );\n}, \"getCmdsUri\");\n\n// src/fromInstanceMetadata.ts\n\n\n\n// src/error/InstanceMetadataV1FallbackError.ts\n\nvar InstanceMetadataV1FallbackError = class _InstanceMetadataV1FallbackError extends import_property_provider.CredentialsProviderError {\n constructor(message, tryNextLink = true) {\n super(message, tryNextLink);\n this.tryNextLink = tryNextLink;\n this.name = \"InstanceMetadataV1FallbackError\";\n Object.setPrototypeOf(this, _InstanceMetadataV1FallbackError.prototype);\n }\n static {\n __name(this, \"InstanceMetadataV1FallbackError\");\n }\n};\n\n// src/utils/getInstanceMetadataEndpoint.ts\nvar import_node_config_provider = require(\"@smithy/node-config-provider\");\nvar import_url_parser = require(\"@smithy/url-parser\");\n\n// src/config/Endpoint.ts\nvar Endpoint = /* @__PURE__ */ ((Endpoint2) => {\n Endpoint2[\"IPv4\"] = \"http://169.254.169.254\";\n Endpoint2[\"IPv6\"] = \"http://[fd00:ec2::254]\";\n return Endpoint2;\n})(Endpoint || {});\n\n// src/config/EndpointConfigOptions.ts\nvar ENV_ENDPOINT_NAME = \"AWS_EC2_METADATA_SERVICE_ENDPOINT\";\nvar CONFIG_ENDPOINT_NAME = \"ec2_metadata_service_endpoint\";\nvar ENDPOINT_CONFIG_OPTIONS = {\n environmentVariableSelector: (env) => env[ENV_ENDPOINT_NAME],\n configFileSelector: (profile) => profile[CONFIG_ENDPOINT_NAME],\n default: void 0\n};\n\n// src/config/EndpointMode.ts\nvar EndpointMode = /* @__PURE__ */ ((EndpointMode2) => {\n EndpointMode2[\"IPv4\"] = \"IPv4\";\n EndpointMode2[\"IPv6\"] = \"IPv6\";\n return EndpointMode2;\n})(EndpointMode || {});\n\n// src/config/EndpointModeConfigOptions.ts\nvar ENV_ENDPOINT_MODE_NAME = \"AWS_EC2_METADATA_SERVICE_ENDPOINT_MODE\";\nvar CONFIG_ENDPOINT_MODE_NAME = \"ec2_metadata_service_endpoint_mode\";\nvar ENDPOINT_MODE_CONFIG_OPTIONS = {\n environmentVariableSelector: (env) => env[ENV_ENDPOINT_MODE_NAME],\n configFileSelector: (profile) => profile[CONFIG_ENDPOINT_MODE_NAME],\n default: \"IPv4\" /* IPv4 */\n};\n\n// src/utils/getInstanceMetadataEndpoint.ts\nvar getInstanceMetadataEndpoint = /* @__PURE__ */ __name(async () => (0, import_url_parser.parseUrl)(await getFromEndpointConfig() || await getFromEndpointModeConfig()), \"getInstanceMetadataEndpoint\");\nvar getFromEndpointConfig = /* @__PURE__ */ __name(async () => (0, import_node_config_provider.loadConfig)(ENDPOINT_CONFIG_OPTIONS)(), \"getFromEndpointConfig\");\nvar getFromEndpointModeConfig = /* @__PURE__ */ __name(async () => {\n const endpointMode = await (0, import_node_config_provider.loadConfig)(ENDPOINT_MODE_CONFIG_OPTIONS)();\n switch (endpointMode) {\n case \"IPv4\" /* IPv4 */:\n return \"http://169.254.169.254\" /* IPv4 */;\n case \"IPv6\" /* IPv6 */:\n return \"http://[fd00:ec2::254]\" /* IPv6 */;\n default:\n throw new Error(`Unsupported endpoint mode: ${endpointMode}. Select from ${Object.values(EndpointMode)}`);\n }\n}, \"getFromEndpointModeConfig\");\n\n// src/utils/getExtendedInstanceMetadataCredentials.ts\nvar STATIC_STABILITY_REFRESH_INTERVAL_SECONDS = 5 * 60;\nvar STATIC_STABILITY_REFRESH_INTERVAL_JITTER_WINDOW_SECONDS = 5 * 60;\nvar STATIC_STABILITY_DOC_URL = \"https://docs.aws.amazon.com/sdkref/latest/guide/feature-static-credentials.html\";\nvar getExtendedInstanceMetadataCredentials = /* @__PURE__ */ __name((credentials, logger) => {\n const refreshInterval = STATIC_STABILITY_REFRESH_INTERVAL_SECONDS + Math.floor(Math.random() * STATIC_STABILITY_REFRESH_INTERVAL_JITTER_WINDOW_SECONDS);\n const newExpiration = new Date(Date.now() + refreshInterval * 1e3);\n logger.warn(\n `Attempting credential expiration extension due to a credential service availability issue. A refresh of these credentials will be attempted after ${new Date(newExpiration)}.\nFor more information, please visit: ` + STATIC_STABILITY_DOC_URL\n );\n const originalExpiration = credentials.originalExpiration ?? credentials.expiration;\n return {\n ...credentials,\n ...originalExpiration ? { originalExpiration } : {},\n expiration: newExpiration\n };\n}, \"getExtendedInstanceMetadataCredentials\");\n\n// src/utils/staticStabilityProvider.ts\nvar staticStabilityProvider = /* @__PURE__ */ __name((provider, options = {}) => {\n const logger = options?.logger || console;\n let pastCredentials;\n return async () => {\n let credentials;\n try {\n credentials = await provider();\n if (credentials.expiration && credentials.expiration.getTime() < Date.now()) {\n credentials = getExtendedInstanceMetadataCredentials(credentials, logger);\n }\n } catch (e) {\n if (pastCredentials) {\n logger.warn(\"Credential renew failed: \", e);\n credentials = getExtendedInstanceMetadataCredentials(pastCredentials, logger);\n } else {\n throw e;\n }\n }\n pastCredentials = credentials;\n return credentials;\n };\n}, \"staticStabilityProvider\");\n\n// src/fromInstanceMetadata.ts\nvar IMDS_PATH = \"/latest/meta-data/iam/security-credentials/\";\nvar IMDS_TOKEN_PATH = \"/latest/api/token\";\nvar AWS_EC2_METADATA_V1_DISABLED = \"AWS_EC2_METADATA_V1_DISABLED\";\nvar PROFILE_AWS_EC2_METADATA_V1_DISABLED = \"ec2_metadata_v1_disabled\";\nvar X_AWS_EC2_METADATA_TOKEN = \"x-aws-ec2-metadata-token\";\nvar fromInstanceMetadata = /* @__PURE__ */ __name((init = {}) => staticStabilityProvider(getInstanceMetadataProvider(init), { logger: init.logger }), \"fromInstanceMetadata\");\nvar getInstanceMetadataProvider = /* @__PURE__ */ __name((init = {}) => {\n let disableFetchToken = false;\n const { logger, profile } = init;\n const { timeout, maxRetries } = providerConfigFromInit(init);\n const getCredentials = /* @__PURE__ */ __name(async (maxRetries2, options) => {\n const isImdsV1Fallback = disableFetchToken || options.headers?.[X_AWS_EC2_METADATA_TOKEN] == null;\n if (isImdsV1Fallback) {\n let fallbackBlockedFromProfile = false;\n let fallbackBlockedFromProcessEnv = false;\n const configValue = await (0, import_node_config_provider.loadConfig)(\n {\n environmentVariableSelector: (env) => {\n const envValue = env[AWS_EC2_METADATA_V1_DISABLED];\n fallbackBlockedFromProcessEnv = !!envValue && envValue !== \"false\";\n if (envValue === void 0) {\n throw new import_property_provider.CredentialsProviderError(\n `${AWS_EC2_METADATA_V1_DISABLED} not set in env, checking config file next.`,\n { logger: init.logger }\n );\n }\n return fallbackBlockedFromProcessEnv;\n },\n configFileSelector: (profile2) => {\n const profileValue = profile2[PROFILE_AWS_EC2_METADATA_V1_DISABLED];\n fallbackBlockedFromProfile = !!profileValue && profileValue !== \"false\";\n return fallbackBlockedFromProfile;\n },\n default: false\n },\n {\n profile\n }\n )();\n if (init.ec2MetadataV1Disabled || configValue) {\n const causes = [];\n if (init.ec2MetadataV1Disabled)\n causes.push(\"credential provider initialization (runtime option ec2MetadataV1Disabled)\");\n if (fallbackBlockedFromProfile)\n causes.push(`config file profile (${PROFILE_AWS_EC2_METADATA_V1_DISABLED})`);\n if (fallbackBlockedFromProcessEnv)\n causes.push(`process environment variable (${AWS_EC2_METADATA_V1_DISABLED})`);\n throw new InstanceMetadataV1FallbackError(\n `AWS EC2 Metadata v1 fallback has been blocked by AWS SDK configuration in the following: [${causes.join(\n \", \"\n )}].`\n );\n }\n }\n const imdsProfile = (await retry(async () => {\n let profile2;\n try {\n profile2 = await getProfile(options);\n } catch (err) {\n if (err.statusCode === 401) {\n disableFetchToken = false;\n }\n throw err;\n }\n return profile2;\n }, maxRetries2)).trim();\n return retry(async () => {\n let creds;\n try {\n creds = await getCredentialsFromProfile(imdsProfile, options, init);\n } catch (err) {\n if (err.statusCode === 401) {\n disableFetchToken = false;\n }\n throw err;\n }\n return creds;\n }, maxRetries2);\n }, \"getCredentials\");\n return async () => {\n const endpoint = await getInstanceMetadataEndpoint();\n if (disableFetchToken) {\n logger?.debug(\"AWS SDK Instance Metadata\", \"using v1 fallback (no token fetch)\");\n return getCredentials(maxRetries, { ...endpoint, timeout });\n } else {\n let token;\n try {\n token = (await getMetadataToken({ ...endpoint, timeout })).toString();\n } catch (error) {\n if (error?.statusCode === 400) {\n throw Object.assign(error, {\n message: \"EC2 Metadata token request returned error\"\n });\n } else if (error.message === \"TimeoutError\" || [403, 404, 405].includes(error.statusCode)) {\n disableFetchToken = true;\n }\n logger?.debug(\"AWS SDK Instance Metadata\", \"using v1 fallback (initial)\");\n return getCredentials(maxRetries, { ...endpoint, timeout });\n }\n return getCredentials(maxRetries, {\n ...endpoint,\n headers: {\n [X_AWS_EC2_METADATA_TOKEN]: token\n },\n timeout\n });\n }\n };\n}, \"getInstanceMetadataProvider\");\nvar getMetadataToken = /* @__PURE__ */ __name(async (options) => httpRequest({\n ...options,\n path: IMDS_TOKEN_PATH,\n method: \"PUT\",\n headers: {\n \"x-aws-ec2-metadata-token-ttl-seconds\": \"21600\"\n }\n}), \"getMetadataToken\");\nvar getProfile = /* @__PURE__ */ __name(async (options) => (await httpRequest({ ...options, path: IMDS_PATH })).toString(), \"getProfile\");\nvar getCredentialsFromProfile = /* @__PURE__ */ __name(async (profile, options, init) => {\n const credentialsResponse = JSON.parse(\n (await httpRequest({\n ...options,\n path: IMDS_PATH + profile\n })).toString()\n );\n if (!isImdsCredentials(credentialsResponse)) {\n throw new import_property_provider.CredentialsProviderError(\"Invalid response received from instance metadata service.\", {\n logger: init.logger\n });\n }\n return fromImdsCredentials(credentialsResponse);\n}, \"getCredentialsFromProfile\");\n// Annotate the CommonJS export names for ESM import in node:\n\n0 && (module.exports = {\n httpRequest,\n getInstanceMetadataEndpoint,\n Endpoint,\n ENV_CMDS_FULL_URI,\n ENV_CMDS_RELATIVE_URI,\n ENV_CMDS_AUTH_TOKEN,\n fromContainerMetadata,\n fromInstanceMetadata,\n DEFAULT_TIMEOUT,\n DEFAULT_MAX_RETRIES,\n providerConfigFromInit\n});\n\n","var __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __name = (target, value) => __defProp(target, \"name\", { value, configurable: true });\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n};\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\n\n// src/index.ts\nvar src_exports = {};\n__export(src_exports, {\n FetchHttpHandler: () => FetchHttpHandler,\n keepAliveSupport: () => keepAliveSupport,\n streamCollector: () => streamCollector\n});\nmodule.exports = __toCommonJS(src_exports);\n\n// src/fetch-http-handler.ts\nvar import_protocol_http = require(\"@smithy/protocol-http\");\nvar import_querystring_builder = require(\"@smithy/querystring-builder\");\n\n// src/create-request.ts\nfunction createRequest(url, requestOptions) {\n return new Request(url, requestOptions);\n}\n__name(createRequest, \"createRequest\");\n\n// src/request-timeout.ts\nfunction requestTimeout(timeoutInMs = 0) {\n return new Promise((resolve, reject) => {\n if (timeoutInMs) {\n setTimeout(() => {\n const timeoutError = new Error(`Request did not complete within ${timeoutInMs} ms`);\n timeoutError.name = \"TimeoutError\";\n reject(timeoutError);\n }, timeoutInMs);\n }\n });\n}\n__name(requestTimeout, \"requestTimeout\");\n\n// src/fetch-http-handler.ts\nvar keepAliveSupport = {\n supported: void 0\n};\nvar FetchHttpHandler = class _FetchHttpHandler {\n static {\n __name(this, \"FetchHttpHandler\");\n }\n /**\n * @returns the input if it is an HttpHandler of any class,\n * or instantiates a new instance of this handler.\n */\n static create(instanceOrOptions) {\n if (typeof instanceOrOptions?.handle === \"function\") {\n return instanceOrOptions;\n }\n return new _FetchHttpHandler(instanceOrOptions);\n }\n constructor(options) {\n if (typeof options === \"function\") {\n this.configProvider = options().then((opts) => opts || {});\n } else {\n this.config = options ?? {};\n this.configProvider = Promise.resolve(this.config);\n }\n if (keepAliveSupport.supported === void 0) {\n keepAliveSupport.supported = Boolean(\n typeof Request !== \"undefined\" && \"keepalive\" in createRequest(\"https://[::1]\")\n );\n }\n }\n destroy() {\n }\n async handle(request, { abortSignal } = {}) {\n if (!this.config) {\n this.config = await this.configProvider;\n }\n const requestTimeoutInMs = this.config.requestTimeout;\n const keepAlive = this.config.keepAlive === true;\n const credentials = this.config.credentials;\n if (abortSignal?.aborted) {\n const abortError = new Error(\"Request aborted\");\n abortError.name = \"AbortError\";\n return Promise.reject(abortError);\n }\n let path = request.path;\n const queryString = (0, import_querystring_builder.buildQueryString)(request.query || {});\n if (queryString) {\n path += `?${queryString}`;\n }\n if (request.fragment) {\n path += `#${request.fragment}`;\n }\n let auth = \"\";\n if (request.username != null || request.password != null) {\n const username = request.username ?? \"\";\n const password = request.password ?? \"\";\n auth = `${username}:${password}@`;\n }\n const { port, method } = request;\n const url = `${request.protocol}//${auth}${request.hostname}${port ? `:${port}` : \"\"}${path}`;\n const body = method === \"GET\" || method === \"HEAD\" ? void 0 : request.body;\n const requestOptions = {\n body,\n headers: new Headers(request.headers),\n method,\n credentials\n };\n if (this.config?.cache) {\n requestOptions.cache = this.config.cache;\n }\n if (body) {\n requestOptions.duplex = \"half\";\n }\n if (typeof AbortController !== \"undefined\") {\n requestOptions.signal = abortSignal;\n }\n if (keepAliveSupport.supported) {\n requestOptions.keepalive = keepAlive;\n }\n if (typeof this.config.requestInit === \"function\") {\n Object.assign(requestOptions, this.config.requestInit(request));\n }\n let removeSignalEventListener = /* @__PURE__ */ __name(() => {\n }, \"removeSignalEventListener\");\n const fetchRequest = createRequest(url, requestOptions);\n const raceOfPromises = [\n fetch(fetchRequest).then((response) => {\n const fetchHeaders = response.headers;\n const transformedHeaders = {};\n for (const pair of fetchHeaders.entries()) {\n transformedHeaders[pair[0]] = pair[1];\n }\n const hasReadableStream = response.body != void 0;\n if (!hasReadableStream) {\n return response.blob().then((body2) => ({\n response: new import_protocol_http.HttpResponse({\n headers: transformedHeaders,\n reason: response.statusText,\n statusCode: response.status,\n body: body2\n })\n }));\n }\n return {\n response: new import_protocol_http.HttpResponse({\n headers: transformedHeaders,\n reason: response.statusText,\n statusCode: response.status,\n body: response.body\n })\n };\n }),\n requestTimeout(requestTimeoutInMs)\n ];\n if (abortSignal) {\n raceOfPromises.push(\n new Promise((resolve, reject) => {\n const onAbort = /* @__PURE__ */ __name(() => {\n const abortError = new Error(\"Request aborted\");\n abortError.name = \"AbortError\";\n reject(abortError);\n }, \"onAbort\");\n if (typeof abortSignal.addEventListener === \"function\") {\n const signal = abortSignal;\n signal.addEventListener(\"abort\", onAbort, { once: true });\n removeSignalEventListener = /* @__PURE__ */ __name(() => signal.removeEventListener(\"abort\", onAbort), \"removeSignalEventListener\");\n } else {\n abortSignal.onabort = onAbort;\n }\n })\n );\n }\n return Promise.race(raceOfPromises).finally(removeSignalEventListener);\n }\n updateHttpClientConfig(key, value) {\n this.config = void 0;\n this.configProvider = this.configProvider.then((config) => {\n config[key] = value;\n return config;\n });\n }\n httpHandlerConfigs() {\n return this.config ?? {};\n }\n};\n\n// src/stream-collector.ts\nvar import_util_base64 = require(\"@smithy/util-base64\");\nvar streamCollector = /* @__PURE__ */ __name(async (stream) => {\n if (typeof Blob === \"function\" && stream instanceof Blob || stream.constructor?.name === \"Blob\") {\n if (Blob.prototype.arrayBuffer !== void 0) {\n return new Uint8Array(await stream.arrayBuffer());\n }\n return collectBlob(stream);\n }\n return collectStream(stream);\n}, \"streamCollector\");\nasync function collectBlob(blob) {\n const base64 = await readToBase64(blob);\n const arrayBuffer = (0, import_util_base64.fromBase64)(base64);\n return new Uint8Array(arrayBuffer);\n}\n__name(collectBlob, \"collectBlob\");\nasync function collectStream(stream) {\n const chunks = [];\n const reader = stream.getReader();\n let isDone = false;\n let length = 0;\n while (!isDone) {\n const { done, value } = await reader.read();\n if (value) {\n chunks.push(value);\n length += value.length;\n }\n isDone = done;\n }\n const collected = new Uint8Array(length);\n let offset = 0;\n for (const chunk of chunks) {\n collected.set(chunk, offset);\n offset += chunk.length;\n }\n return collected;\n}\n__name(collectStream, \"collectStream\");\nfunction readToBase64(blob) {\n return new Promise((resolve, reject) => {\n const reader = new FileReader();\n reader.onloadend = () => {\n if (reader.readyState !== 2) {\n return reject(new Error(\"Reader aborted too early\"));\n }\n const result = reader.result ?? \"\";\n const commaIndex = result.indexOf(\",\");\n const dataOffset = commaIndex > -1 ? commaIndex + 1 : result.length;\n resolve(result.substring(dataOffset));\n };\n reader.onabort = () => reject(new Error(\"Read aborted\"));\n reader.onerror = () => reject(reader.error);\n reader.readAsDataURL(blob);\n });\n}\n__name(readToBase64, \"readToBase64\");\n// Annotate the CommonJS export names for ESM import in node:\n\n0 && (module.exports = {\n keepAliveSupport,\n FetchHttpHandler,\n streamCollector\n});\n\n","var __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __name = (target, value) => __defProp(target, \"name\", { value, configurable: true });\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n};\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\n\n// src/index.ts\nvar src_exports = {};\n__export(src_exports, {\n Hash: () => Hash\n});\nmodule.exports = __toCommonJS(src_exports);\nvar import_util_buffer_from = require(\"@smithy/util-buffer-from\");\nvar import_util_utf8 = require(\"@smithy/util-utf8\");\nvar import_buffer = require(\"buffer\");\nvar import_crypto = require(\"crypto\");\nvar Hash = class {\n static {\n __name(this, \"Hash\");\n }\n constructor(algorithmIdentifier, secret) {\n this.algorithmIdentifier = algorithmIdentifier;\n this.secret = secret;\n this.reset();\n }\n update(toHash, encoding) {\n this.hash.update((0, import_util_utf8.toUint8Array)(castSourceData(toHash, encoding)));\n }\n digest() {\n return Promise.resolve(this.hash.digest());\n }\n reset() {\n this.hash = this.secret ? (0, import_crypto.createHmac)(this.algorithmIdentifier, castSourceData(this.secret)) : (0, import_crypto.createHash)(this.algorithmIdentifier);\n }\n};\nfunction castSourceData(toCast, encoding) {\n if (import_buffer.Buffer.isBuffer(toCast)) {\n return toCast;\n }\n if (typeof toCast === \"string\") {\n return (0, import_util_buffer_from.fromString)(toCast, encoding);\n }\n if (ArrayBuffer.isView(toCast)) {\n return (0, import_util_buffer_from.fromArrayBuffer)(toCast.buffer, toCast.byteOffset, toCast.byteLength);\n }\n return (0, import_util_buffer_from.fromArrayBuffer)(toCast);\n}\n__name(castSourceData, \"castSourceData\");\n// Annotate the CommonJS export names for ESM import in node:\n\n0 && (module.exports = {\n Hash\n});\n\n","var __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __name = (target, value) => __defProp(target, \"name\", { value, configurable: true });\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n};\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\n\n// src/index.ts\nvar src_exports = {};\n__export(src_exports, {\n isArrayBuffer: () => isArrayBuffer\n});\nmodule.exports = __toCommonJS(src_exports);\nvar isArrayBuffer = /* @__PURE__ */ __name((arg) => typeof ArrayBuffer === \"function\" && arg instanceof ArrayBuffer || Object.prototype.toString.call(arg) === \"[object ArrayBuffer]\", \"isArrayBuffer\");\n// Annotate the CommonJS export names for ESM import in node:\n\n0 && (module.exports = {\n isArrayBuffer\n});\n\n","var __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __name = (target, value) => __defProp(target, \"name\", { value, configurable: true });\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n};\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\n\n// src/index.ts\nvar src_exports = {};\n__export(src_exports, {\n contentLengthMiddleware: () => contentLengthMiddleware,\n contentLengthMiddlewareOptions: () => contentLengthMiddlewareOptions,\n getContentLengthPlugin: () => getContentLengthPlugin\n});\nmodule.exports = __toCommonJS(src_exports);\nvar import_protocol_http = require(\"@smithy/protocol-http\");\nvar CONTENT_LENGTH_HEADER = \"content-length\";\nfunction contentLengthMiddleware(bodyLengthChecker) {\n return (next) => async (args) => {\n const request = args.request;\n if (import_protocol_http.HttpRequest.isInstance(request)) {\n const { body, headers } = request;\n if (body && Object.keys(headers).map((str) => str.toLowerCase()).indexOf(CONTENT_LENGTH_HEADER) === -1) {\n try {\n const length = bodyLengthChecker(body);\n request.headers = {\n ...request.headers,\n [CONTENT_LENGTH_HEADER]: String(length)\n };\n } catch (error) {\n }\n }\n }\n return next({\n ...args,\n request\n });\n };\n}\n__name(contentLengthMiddleware, \"contentLengthMiddleware\");\nvar contentLengthMiddlewareOptions = {\n step: \"build\",\n tags: [\"SET_CONTENT_LENGTH\", \"CONTENT_LENGTH\"],\n name: \"contentLengthMiddleware\",\n override: true\n};\nvar getContentLengthPlugin = /* @__PURE__ */ __name((options) => ({\n applyToStack: (clientStack) => {\n clientStack.add(contentLengthMiddleware(options.bodyLengthChecker), contentLengthMiddlewareOptions);\n }\n}), \"getContentLengthPlugin\");\n// Annotate the CommonJS export names for ESM import in node:\n\n0 && (module.exports = {\n contentLengthMiddleware,\n contentLengthMiddlewareOptions,\n getContentLengthPlugin\n});\n\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.getEndpointFromConfig = void 0;\nconst node_config_provider_1 = require(\"@smithy/node-config-provider\");\nconst getEndpointUrlConfig_1 = require(\"./getEndpointUrlConfig\");\nconst getEndpointFromConfig = async (serviceId) => (0, node_config_provider_1.loadConfig)((0, getEndpointUrlConfig_1.getEndpointUrlConfig)(serviceId !== null && serviceId !== void 0 ? serviceId : \"\"))();\nexports.getEndpointFromConfig = getEndpointFromConfig;\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.getEndpointUrlConfig = void 0;\nconst shared_ini_file_loader_1 = require(\"@smithy/shared-ini-file-loader\");\nconst ENV_ENDPOINT_URL = \"AWS_ENDPOINT_URL\";\nconst CONFIG_ENDPOINT_URL = \"endpoint_url\";\nconst getEndpointUrlConfig = (serviceId) => ({\n environmentVariableSelector: (env) => {\n const serviceSuffixParts = serviceId.split(\" \").map((w) => w.toUpperCase());\n const serviceEndpointUrl = env[[ENV_ENDPOINT_URL, ...serviceSuffixParts].join(\"_\")];\n if (serviceEndpointUrl)\n return serviceEndpointUrl;\n const endpointUrl = env[ENV_ENDPOINT_URL];\n if (endpointUrl)\n return endpointUrl;\n return undefined;\n },\n configFileSelector: (profile, config) => {\n if (config && profile.services) {\n const servicesSection = config[[\"services\", profile.services].join(shared_ini_file_loader_1.CONFIG_PREFIX_SEPARATOR)];\n if (servicesSection) {\n const servicePrefixParts = serviceId.split(\" \").map((w) => w.toLowerCase());\n const endpointUrl = servicesSection[[servicePrefixParts.join(\"_\"), CONFIG_ENDPOINT_URL].join(shared_ini_file_loader_1.CONFIG_PREFIX_SEPARATOR)];\n if (endpointUrl)\n return endpointUrl;\n }\n }\n const endpointUrl = profile[CONFIG_ENDPOINT_URL];\n if (endpointUrl)\n return endpointUrl;\n return undefined;\n },\n default: undefined,\n});\nexports.getEndpointUrlConfig = getEndpointUrlConfig;\n","var __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __name = (target, value) => __defProp(target, \"name\", { value, configurable: true });\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n};\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\n\n// src/index.ts\nvar src_exports = {};\n__export(src_exports, {\n endpointMiddleware: () => endpointMiddleware,\n endpointMiddlewareOptions: () => endpointMiddlewareOptions,\n getEndpointFromInstructions: () => getEndpointFromInstructions,\n getEndpointPlugin: () => getEndpointPlugin,\n resolveEndpointConfig: () => resolveEndpointConfig,\n resolveParams: () => resolveParams,\n toEndpointV1: () => toEndpointV1\n});\nmodule.exports = __toCommonJS(src_exports);\n\n// src/service-customizations/s3.ts\nvar resolveParamsForS3 = /* @__PURE__ */ __name(async (endpointParams) => {\n const bucket = endpointParams?.Bucket || \"\";\n if (typeof endpointParams.Bucket === \"string\") {\n endpointParams.Bucket = bucket.replace(/#/g, encodeURIComponent(\"#\")).replace(/\\?/g, encodeURIComponent(\"?\"));\n }\n if (isArnBucketName(bucket)) {\n if (endpointParams.ForcePathStyle === true) {\n throw new Error(\"Path-style addressing cannot be used with ARN buckets\");\n }\n } else if (!isDnsCompatibleBucketName(bucket) || bucket.indexOf(\".\") !== -1 && !String(endpointParams.Endpoint).startsWith(\"http:\") || bucket.toLowerCase() !== bucket || bucket.length < 3) {\n endpointParams.ForcePathStyle = true;\n }\n if (endpointParams.DisableMultiRegionAccessPoints) {\n endpointParams.disableMultiRegionAccessPoints = true;\n endpointParams.DisableMRAP = true;\n }\n return endpointParams;\n}, \"resolveParamsForS3\");\nvar DOMAIN_PATTERN = /^[a-z0-9][a-z0-9\\.\\-]{1,61}[a-z0-9]$/;\nvar IP_ADDRESS_PATTERN = /(\\d+\\.){3}\\d+/;\nvar DOTS_PATTERN = /\\.\\./;\nvar isDnsCompatibleBucketName = /* @__PURE__ */ __name((bucketName) => DOMAIN_PATTERN.test(bucketName) && !IP_ADDRESS_PATTERN.test(bucketName) && !DOTS_PATTERN.test(bucketName), \"isDnsCompatibleBucketName\");\nvar isArnBucketName = /* @__PURE__ */ __name((bucketName) => {\n const [arn, partition, service, , , bucket] = bucketName.split(\":\");\n const isArn = arn === \"arn\" && bucketName.split(\":\").length >= 6;\n const isValidArn = Boolean(isArn && partition && service && bucket);\n if (isArn && !isValidArn) {\n throw new Error(`Invalid ARN: ${bucketName} was an invalid ARN.`);\n }\n return isValidArn;\n}, \"isArnBucketName\");\n\n// src/adaptors/createConfigValueProvider.ts\nvar createConfigValueProvider = /* @__PURE__ */ __name((configKey, canonicalEndpointParamKey, config) => {\n const configProvider = /* @__PURE__ */ __name(async () => {\n const configValue = config[configKey] ?? config[canonicalEndpointParamKey];\n if (typeof configValue === \"function\") {\n return configValue();\n }\n return configValue;\n }, \"configProvider\");\n if (configKey === \"credentialScope\" || canonicalEndpointParamKey === \"CredentialScope\") {\n return async () => {\n const credentials = typeof config.credentials === \"function\" ? await config.credentials() : config.credentials;\n const configValue = credentials?.credentialScope ?? credentials?.CredentialScope;\n return configValue;\n };\n }\n if (configKey === \"accountId\" || canonicalEndpointParamKey === \"AccountId\") {\n return async () => {\n const credentials = typeof config.credentials === \"function\" ? await config.credentials() : config.credentials;\n const configValue = credentials?.accountId ?? credentials?.AccountId;\n return configValue;\n };\n }\n if (configKey === \"endpoint\" || canonicalEndpointParamKey === \"endpoint\") {\n return async () => {\n const endpoint = await configProvider();\n if (endpoint && typeof endpoint === \"object\") {\n if (\"url\" in endpoint) {\n return endpoint.url.href;\n }\n if (\"hostname\" in endpoint) {\n const { protocol, hostname, port, path } = endpoint;\n return `${protocol}//${hostname}${port ? \":\" + port : \"\"}${path}`;\n }\n }\n return endpoint;\n };\n }\n return configProvider;\n}, \"createConfigValueProvider\");\n\n// src/adaptors/getEndpointFromInstructions.ts\nvar import_getEndpointFromConfig = require(\"./adaptors/getEndpointFromConfig\");\n\n// src/adaptors/toEndpointV1.ts\nvar import_url_parser = require(\"@smithy/url-parser\");\nvar toEndpointV1 = /* @__PURE__ */ __name((endpoint) => {\n if (typeof endpoint === \"object\") {\n if (\"url\" in endpoint) {\n return (0, import_url_parser.parseUrl)(endpoint.url);\n }\n return endpoint;\n }\n return (0, import_url_parser.parseUrl)(endpoint);\n}, \"toEndpointV1\");\n\n// src/adaptors/getEndpointFromInstructions.ts\nvar getEndpointFromInstructions = /* @__PURE__ */ __name(async (commandInput, instructionsSupplier, clientConfig, context) => {\n if (!clientConfig.endpoint) {\n let endpointFromConfig;\n if (clientConfig.serviceConfiguredEndpoint) {\n endpointFromConfig = await clientConfig.serviceConfiguredEndpoint();\n } else {\n endpointFromConfig = await (0, import_getEndpointFromConfig.getEndpointFromConfig)(clientConfig.serviceId);\n }\n if (endpointFromConfig) {\n clientConfig.endpoint = () => Promise.resolve(toEndpointV1(endpointFromConfig));\n }\n }\n const endpointParams = await resolveParams(commandInput, instructionsSupplier, clientConfig);\n if (typeof clientConfig.endpointProvider !== \"function\") {\n throw new Error(\"config.endpointProvider is not set.\");\n }\n const endpoint = clientConfig.endpointProvider(endpointParams, context);\n return endpoint;\n}, \"getEndpointFromInstructions\");\nvar resolveParams = /* @__PURE__ */ __name(async (commandInput, instructionsSupplier, clientConfig) => {\n const endpointParams = {};\n const instructions = instructionsSupplier?.getEndpointParameterInstructions?.() || {};\n for (const [name, instruction] of Object.entries(instructions)) {\n switch (instruction.type) {\n case \"staticContextParams\":\n endpointParams[name] = instruction.value;\n break;\n case \"contextParams\":\n endpointParams[name] = commandInput[instruction.name];\n break;\n case \"clientContextParams\":\n case \"builtInParams\":\n endpointParams[name] = await createConfigValueProvider(instruction.name, name, clientConfig)();\n break;\n case \"operationContextParams\":\n endpointParams[name] = instruction.get(commandInput);\n break;\n default:\n throw new Error(\"Unrecognized endpoint parameter instruction: \" + JSON.stringify(instruction));\n }\n }\n if (Object.keys(instructions).length === 0) {\n Object.assign(endpointParams, clientConfig);\n }\n if (String(clientConfig.serviceId).toLowerCase() === \"s3\") {\n await resolveParamsForS3(endpointParams);\n }\n return endpointParams;\n}, \"resolveParams\");\n\n// src/endpointMiddleware.ts\nvar import_core = require(\"@smithy/core\");\nvar import_util_middleware = require(\"@smithy/util-middleware\");\nvar endpointMiddleware = /* @__PURE__ */ __name(({\n config,\n instructions\n}) => {\n return (next, context) => async (args) => {\n if (config.endpoint) {\n (0, import_core.setFeature)(context, \"ENDPOINT_OVERRIDE\", \"N\");\n }\n const endpoint = await getEndpointFromInstructions(\n args.input,\n {\n getEndpointParameterInstructions() {\n return instructions;\n }\n },\n { ...config },\n context\n );\n context.endpointV2 = endpoint;\n context.authSchemes = endpoint.properties?.authSchemes;\n const authScheme = context.authSchemes?.[0];\n if (authScheme) {\n context[\"signing_region\"] = authScheme.signingRegion;\n context[\"signing_service\"] = authScheme.signingName;\n const smithyContext = (0, import_util_middleware.getSmithyContext)(context);\n const httpAuthOption = smithyContext?.selectedHttpAuthScheme?.httpAuthOption;\n if (httpAuthOption) {\n httpAuthOption.signingProperties = Object.assign(\n httpAuthOption.signingProperties || {},\n {\n signing_region: authScheme.signingRegion,\n signingRegion: authScheme.signingRegion,\n signing_service: authScheme.signingName,\n signingName: authScheme.signingName,\n signingRegionSet: authScheme.signingRegionSet\n },\n authScheme.properties\n );\n }\n }\n return next({\n ...args\n });\n };\n}, \"endpointMiddleware\");\n\n// src/getEndpointPlugin.ts\nvar import_middleware_serde = require(\"@smithy/middleware-serde\");\nvar endpointMiddlewareOptions = {\n step: \"serialize\",\n tags: [\"ENDPOINT_PARAMETERS\", \"ENDPOINT_V2\", \"ENDPOINT\"],\n name: \"endpointV2Middleware\",\n override: true,\n relation: \"before\",\n toMiddleware: import_middleware_serde.serializerMiddlewareOption.name\n};\nvar getEndpointPlugin = /* @__PURE__ */ __name((config, instructions) => ({\n applyToStack: (clientStack) => {\n clientStack.addRelativeTo(\n endpointMiddleware({\n config,\n instructions\n }),\n endpointMiddlewareOptions\n );\n }\n}), \"getEndpointPlugin\");\n\n// src/resolveEndpointConfig.ts\n\nvar import_getEndpointFromConfig2 = require(\"./adaptors/getEndpointFromConfig\");\nvar resolveEndpointConfig = /* @__PURE__ */ __name((input) => {\n const tls = input.tls ?? true;\n const { endpoint } = input;\n const customEndpointProvider = endpoint != null ? async () => toEndpointV1(await (0, import_util_middleware.normalizeProvider)(endpoint)()) : void 0;\n const isCustomEndpoint = !!endpoint;\n const resolvedConfig = {\n ...input,\n endpoint: customEndpointProvider,\n tls,\n isCustomEndpoint,\n useDualstackEndpoint: (0, import_util_middleware.normalizeProvider)(input.useDualstackEndpoint ?? false),\n useFipsEndpoint: (0, import_util_middleware.normalizeProvider)(input.useFipsEndpoint ?? false)\n };\n let configuredEndpointPromise = void 0;\n resolvedConfig.serviceConfiguredEndpoint = async () => {\n if (input.serviceId && !configuredEndpointPromise) {\n configuredEndpointPromise = (0, import_getEndpointFromConfig2.getEndpointFromConfig)(input.serviceId);\n }\n return configuredEndpointPromise;\n };\n return resolvedConfig;\n}, \"resolveEndpointConfig\");\n// Annotate the CommonJS export names for ESM import in node:\n\n0 && (module.exports = {\n getEndpointFromInstructions,\n resolveParams,\n toEndpointV1,\n endpointMiddleware,\n endpointMiddlewareOptions,\n getEndpointPlugin,\n resolveEndpointConfig\n});\n\n","var __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __name = (target, value) => __defProp(target, \"name\", { value, configurable: true });\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n};\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\n\n// src/index.ts\nvar src_exports = {};\n__export(src_exports, {\n AdaptiveRetryStrategy: () => AdaptiveRetryStrategy,\n CONFIG_MAX_ATTEMPTS: () => CONFIG_MAX_ATTEMPTS,\n CONFIG_RETRY_MODE: () => CONFIG_RETRY_MODE,\n ENV_MAX_ATTEMPTS: () => ENV_MAX_ATTEMPTS,\n ENV_RETRY_MODE: () => ENV_RETRY_MODE,\n NODE_MAX_ATTEMPT_CONFIG_OPTIONS: () => NODE_MAX_ATTEMPT_CONFIG_OPTIONS,\n NODE_RETRY_MODE_CONFIG_OPTIONS: () => NODE_RETRY_MODE_CONFIG_OPTIONS,\n StandardRetryStrategy: () => StandardRetryStrategy,\n defaultDelayDecider: () => defaultDelayDecider,\n defaultRetryDecider: () => defaultRetryDecider,\n getOmitRetryHeadersPlugin: () => getOmitRetryHeadersPlugin,\n getRetryAfterHint: () => getRetryAfterHint,\n getRetryPlugin: () => getRetryPlugin,\n omitRetryHeadersMiddleware: () => omitRetryHeadersMiddleware,\n omitRetryHeadersMiddlewareOptions: () => omitRetryHeadersMiddlewareOptions,\n resolveRetryConfig: () => resolveRetryConfig,\n retryMiddleware: () => retryMiddleware,\n retryMiddlewareOptions: () => retryMiddlewareOptions\n});\nmodule.exports = __toCommonJS(src_exports);\n\n// src/AdaptiveRetryStrategy.ts\n\n\n// src/StandardRetryStrategy.ts\nvar import_protocol_http = require(\"@smithy/protocol-http\");\n\n\nvar import_uuid = require(\"uuid\");\n\n// src/defaultRetryQuota.ts\nvar import_util_retry = require(\"@smithy/util-retry\");\nvar getDefaultRetryQuota = /* @__PURE__ */ __name((initialRetryTokens, options) => {\n const MAX_CAPACITY = initialRetryTokens;\n const noRetryIncrement = options?.noRetryIncrement ?? import_util_retry.NO_RETRY_INCREMENT;\n const retryCost = options?.retryCost ?? import_util_retry.RETRY_COST;\n const timeoutRetryCost = options?.timeoutRetryCost ?? import_util_retry.TIMEOUT_RETRY_COST;\n let availableCapacity = initialRetryTokens;\n const getCapacityAmount = /* @__PURE__ */ __name((error) => error.name === \"TimeoutError\" ? timeoutRetryCost : retryCost, \"getCapacityAmount\");\n const hasRetryTokens = /* @__PURE__ */ __name((error) => getCapacityAmount(error) <= availableCapacity, \"hasRetryTokens\");\n const retrieveRetryTokens = /* @__PURE__ */ __name((error) => {\n if (!hasRetryTokens(error)) {\n throw new Error(\"No retry token available\");\n }\n const capacityAmount = getCapacityAmount(error);\n availableCapacity -= capacityAmount;\n return capacityAmount;\n }, \"retrieveRetryTokens\");\n const releaseRetryTokens = /* @__PURE__ */ __name((capacityReleaseAmount) => {\n availableCapacity += capacityReleaseAmount ?? noRetryIncrement;\n availableCapacity = Math.min(availableCapacity, MAX_CAPACITY);\n }, \"releaseRetryTokens\");\n return Object.freeze({\n hasRetryTokens,\n retrieveRetryTokens,\n releaseRetryTokens\n });\n}, \"getDefaultRetryQuota\");\n\n// src/delayDecider.ts\n\nvar defaultDelayDecider = /* @__PURE__ */ __name((delayBase, attempts) => Math.floor(Math.min(import_util_retry.MAXIMUM_RETRY_DELAY, Math.random() * 2 ** attempts * delayBase)), \"defaultDelayDecider\");\n\n// src/retryDecider.ts\nvar import_service_error_classification = require(\"@smithy/service-error-classification\");\nvar defaultRetryDecider = /* @__PURE__ */ __name((error) => {\n if (!error) {\n return false;\n }\n return (0, import_service_error_classification.isRetryableByTrait)(error) || (0, import_service_error_classification.isClockSkewError)(error) || (0, import_service_error_classification.isThrottlingError)(error) || (0, import_service_error_classification.isTransientError)(error);\n}, \"defaultRetryDecider\");\n\n// src/util.ts\nvar asSdkError = /* @__PURE__ */ __name((error) => {\n if (error instanceof Error)\n return error;\n if (error instanceof Object)\n return Object.assign(new Error(), error);\n if (typeof error === \"string\")\n return new Error(error);\n return new Error(`AWS SDK error wrapper for ${error}`);\n}, \"asSdkError\");\n\n// src/StandardRetryStrategy.ts\nvar StandardRetryStrategy = class {\n constructor(maxAttemptsProvider, options) {\n this.maxAttemptsProvider = maxAttemptsProvider;\n this.mode = import_util_retry.RETRY_MODES.STANDARD;\n this.retryDecider = options?.retryDecider ?? defaultRetryDecider;\n this.delayDecider = options?.delayDecider ?? defaultDelayDecider;\n this.retryQuota = options?.retryQuota ?? getDefaultRetryQuota(import_util_retry.INITIAL_RETRY_TOKENS);\n }\n static {\n __name(this, \"StandardRetryStrategy\");\n }\n shouldRetry(error, attempts, maxAttempts) {\n return attempts < maxAttempts && this.retryDecider(error) && this.retryQuota.hasRetryTokens(error);\n }\n async getMaxAttempts() {\n let maxAttempts;\n try {\n maxAttempts = await this.maxAttemptsProvider();\n } catch (error) {\n maxAttempts = import_util_retry.DEFAULT_MAX_ATTEMPTS;\n }\n return maxAttempts;\n }\n async retry(next, args, options) {\n let retryTokenAmount;\n let attempts = 0;\n let totalDelay = 0;\n const maxAttempts = await this.getMaxAttempts();\n const { request } = args;\n if (import_protocol_http.HttpRequest.isInstance(request)) {\n request.headers[import_util_retry.INVOCATION_ID_HEADER] = (0, import_uuid.v4)();\n }\n while (true) {\n try {\n if (import_protocol_http.HttpRequest.isInstance(request)) {\n request.headers[import_util_retry.REQUEST_HEADER] = `attempt=${attempts + 1}; max=${maxAttempts}`;\n }\n if (options?.beforeRequest) {\n await options.beforeRequest();\n }\n const { response, output } = await next(args);\n if (options?.afterRequest) {\n options.afterRequest(response);\n }\n this.retryQuota.releaseRetryTokens(retryTokenAmount);\n output.$metadata.attempts = attempts + 1;\n output.$metadata.totalRetryDelay = totalDelay;\n return { response, output };\n } catch (e) {\n const err = asSdkError(e);\n attempts++;\n if (this.shouldRetry(err, attempts, maxAttempts)) {\n retryTokenAmount = this.retryQuota.retrieveRetryTokens(err);\n const delayFromDecider = this.delayDecider(\n (0, import_service_error_classification.isThrottlingError)(err) ? import_util_retry.THROTTLING_RETRY_DELAY_BASE : import_util_retry.DEFAULT_RETRY_DELAY_BASE,\n attempts\n );\n const delayFromResponse = getDelayFromRetryAfterHeader(err.$response);\n const delay = Math.max(delayFromResponse || 0, delayFromDecider);\n totalDelay += delay;\n await new Promise((resolve) => setTimeout(resolve, delay));\n continue;\n }\n if (!err.$metadata) {\n err.$metadata = {};\n }\n err.$metadata.attempts = attempts;\n err.$metadata.totalRetryDelay = totalDelay;\n throw err;\n }\n }\n }\n};\nvar getDelayFromRetryAfterHeader = /* @__PURE__ */ __name((response) => {\n if (!import_protocol_http.HttpResponse.isInstance(response))\n return;\n const retryAfterHeaderName = Object.keys(response.headers).find((key) => key.toLowerCase() === \"retry-after\");\n if (!retryAfterHeaderName)\n return;\n const retryAfter = response.headers[retryAfterHeaderName];\n const retryAfterSeconds = Number(retryAfter);\n if (!Number.isNaN(retryAfterSeconds))\n return retryAfterSeconds * 1e3;\n const retryAfterDate = new Date(retryAfter);\n return retryAfterDate.getTime() - Date.now();\n}, \"getDelayFromRetryAfterHeader\");\n\n// src/AdaptiveRetryStrategy.ts\nvar AdaptiveRetryStrategy = class extends StandardRetryStrategy {\n static {\n __name(this, \"AdaptiveRetryStrategy\");\n }\n constructor(maxAttemptsProvider, options) {\n const { rateLimiter, ...superOptions } = options ?? {};\n super(maxAttemptsProvider, superOptions);\n this.rateLimiter = rateLimiter ?? new import_util_retry.DefaultRateLimiter();\n this.mode = import_util_retry.RETRY_MODES.ADAPTIVE;\n }\n async retry(next, args) {\n return super.retry(next, args, {\n beforeRequest: async () => {\n return this.rateLimiter.getSendToken();\n },\n afterRequest: (response) => {\n this.rateLimiter.updateClientSendingRate(response);\n }\n });\n }\n};\n\n// src/configurations.ts\nvar import_util_middleware = require(\"@smithy/util-middleware\");\n\nvar ENV_MAX_ATTEMPTS = \"AWS_MAX_ATTEMPTS\";\nvar CONFIG_MAX_ATTEMPTS = \"max_attempts\";\nvar NODE_MAX_ATTEMPT_CONFIG_OPTIONS = {\n environmentVariableSelector: (env) => {\n const value = env[ENV_MAX_ATTEMPTS];\n if (!value)\n return void 0;\n const maxAttempt = parseInt(value);\n if (Number.isNaN(maxAttempt)) {\n throw new Error(`Environment variable ${ENV_MAX_ATTEMPTS} mast be a number, got \"${value}\"`);\n }\n return maxAttempt;\n },\n configFileSelector: (profile) => {\n const value = profile[CONFIG_MAX_ATTEMPTS];\n if (!value)\n return void 0;\n const maxAttempt = parseInt(value);\n if (Number.isNaN(maxAttempt)) {\n throw new Error(`Shared config file entry ${CONFIG_MAX_ATTEMPTS} mast be a number, got \"${value}\"`);\n }\n return maxAttempt;\n },\n default: import_util_retry.DEFAULT_MAX_ATTEMPTS\n};\nvar resolveRetryConfig = /* @__PURE__ */ __name((input) => {\n const { retryStrategy } = input;\n const maxAttempts = (0, import_util_middleware.normalizeProvider)(input.maxAttempts ?? import_util_retry.DEFAULT_MAX_ATTEMPTS);\n return {\n ...input,\n maxAttempts,\n retryStrategy: async () => {\n if (retryStrategy) {\n return retryStrategy;\n }\n const retryMode = await (0, import_util_middleware.normalizeProvider)(input.retryMode)();\n if (retryMode === import_util_retry.RETRY_MODES.ADAPTIVE) {\n return new import_util_retry.AdaptiveRetryStrategy(maxAttempts);\n }\n return new import_util_retry.StandardRetryStrategy(maxAttempts);\n }\n };\n}, \"resolveRetryConfig\");\nvar ENV_RETRY_MODE = \"AWS_RETRY_MODE\";\nvar CONFIG_RETRY_MODE = \"retry_mode\";\nvar NODE_RETRY_MODE_CONFIG_OPTIONS = {\n environmentVariableSelector: (env) => env[ENV_RETRY_MODE],\n configFileSelector: (profile) => profile[CONFIG_RETRY_MODE],\n default: import_util_retry.DEFAULT_RETRY_MODE\n};\n\n// src/omitRetryHeadersMiddleware.ts\n\n\nvar omitRetryHeadersMiddleware = /* @__PURE__ */ __name(() => (next) => async (args) => {\n const { request } = args;\n if (import_protocol_http.HttpRequest.isInstance(request)) {\n delete request.headers[import_util_retry.INVOCATION_ID_HEADER];\n delete request.headers[import_util_retry.REQUEST_HEADER];\n }\n return next(args);\n}, \"omitRetryHeadersMiddleware\");\nvar omitRetryHeadersMiddlewareOptions = {\n name: \"omitRetryHeadersMiddleware\",\n tags: [\"RETRY\", \"HEADERS\", \"OMIT_RETRY_HEADERS\"],\n relation: \"before\",\n toMiddleware: \"awsAuthMiddleware\",\n override: true\n};\nvar getOmitRetryHeadersPlugin = /* @__PURE__ */ __name((options) => ({\n applyToStack: (clientStack) => {\n clientStack.addRelativeTo(omitRetryHeadersMiddleware(), omitRetryHeadersMiddlewareOptions);\n }\n}), \"getOmitRetryHeadersPlugin\");\n\n// src/retryMiddleware.ts\n\n\nvar import_smithy_client = require(\"@smithy/smithy-client\");\n\n\nvar import_isStreamingPayload = require(\"./isStreamingPayload/isStreamingPayload\");\nvar retryMiddleware = /* @__PURE__ */ __name((options) => (next, context) => async (args) => {\n let retryStrategy = await options.retryStrategy();\n const maxAttempts = await options.maxAttempts();\n if (isRetryStrategyV2(retryStrategy)) {\n retryStrategy = retryStrategy;\n let retryToken = await retryStrategy.acquireInitialRetryToken(context[\"partition_id\"]);\n let lastError = new Error();\n let attempts = 0;\n let totalRetryDelay = 0;\n const { request } = args;\n const isRequest = import_protocol_http.HttpRequest.isInstance(request);\n if (isRequest) {\n request.headers[import_util_retry.INVOCATION_ID_HEADER] = (0, import_uuid.v4)();\n }\n while (true) {\n try {\n if (isRequest) {\n request.headers[import_util_retry.REQUEST_HEADER] = `attempt=${attempts + 1}; max=${maxAttempts}`;\n }\n const { response, output } = await next(args);\n retryStrategy.recordSuccess(retryToken);\n output.$metadata.attempts = attempts + 1;\n output.$metadata.totalRetryDelay = totalRetryDelay;\n return { response, output };\n } catch (e) {\n const retryErrorInfo = getRetryErrorInfo(e);\n lastError = asSdkError(e);\n if (isRequest && (0, import_isStreamingPayload.isStreamingPayload)(request)) {\n (context.logger instanceof import_smithy_client.NoOpLogger ? console : context.logger)?.warn(\n \"An error was encountered in a non-retryable streaming request.\"\n );\n throw lastError;\n }\n try {\n retryToken = await retryStrategy.refreshRetryTokenForRetry(retryToken, retryErrorInfo);\n } catch (refreshError) {\n if (!lastError.$metadata) {\n lastError.$metadata = {};\n }\n lastError.$metadata.attempts = attempts + 1;\n lastError.$metadata.totalRetryDelay = totalRetryDelay;\n throw lastError;\n }\n attempts = retryToken.getRetryCount();\n const delay = retryToken.getRetryDelay();\n totalRetryDelay += delay;\n await new Promise((resolve) => setTimeout(resolve, delay));\n }\n }\n } else {\n retryStrategy = retryStrategy;\n if (retryStrategy?.mode)\n context.userAgent = [...context.userAgent || [], [\"cfg/retry-mode\", retryStrategy.mode]];\n return retryStrategy.retry(next, args);\n }\n}, \"retryMiddleware\");\nvar isRetryStrategyV2 = /* @__PURE__ */ __name((retryStrategy) => typeof retryStrategy.acquireInitialRetryToken !== \"undefined\" && typeof retryStrategy.refreshRetryTokenForRetry !== \"undefined\" && typeof retryStrategy.recordSuccess !== \"undefined\", \"isRetryStrategyV2\");\nvar getRetryErrorInfo = /* @__PURE__ */ __name((error) => {\n const errorInfo = {\n error,\n errorType: getRetryErrorType(error)\n };\n const retryAfterHint = getRetryAfterHint(error.$response);\n if (retryAfterHint) {\n errorInfo.retryAfterHint = retryAfterHint;\n }\n return errorInfo;\n}, \"getRetryErrorInfo\");\nvar getRetryErrorType = /* @__PURE__ */ __name((error) => {\n if ((0, import_service_error_classification.isThrottlingError)(error))\n return \"THROTTLING\";\n if ((0, import_service_error_classification.isTransientError)(error))\n return \"TRANSIENT\";\n if ((0, import_service_error_classification.isServerError)(error))\n return \"SERVER_ERROR\";\n return \"CLIENT_ERROR\";\n}, \"getRetryErrorType\");\nvar retryMiddlewareOptions = {\n name: \"retryMiddleware\",\n tags: [\"RETRY\"],\n step: \"finalizeRequest\",\n priority: \"high\",\n override: true\n};\nvar getRetryPlugin = /* @__PURE__ */ __name((options) => ({\n applyToStack: (clientStack) => {\n clientStack.add(retryMiddleware(options), retryMiddlewareOptions);\n }\n}), \"getRetryPlugin\");\nvar getRetryAfterHint = /* @__PURE__ */ __name((response) => {\n if (!import_protocol_http.HttpResponse.isInstance(response))\n return;\n const retryAfterHeaderName = Object.keys(response.headers).find((key) => key.toLowerCase() === \"retry-after\");\n if (!retryAfterHeaderName)\n return;\n const retryAfter = response.headers[retryAfterHeaderName];\n const retryAfterSeconds = Number(retryAfter);\n if (!Number.isNaN(retryAfterSeconds))\n return new Date(retryAfterSeconds * 1e3);\n const retryAfterDate = new Date(retryAfter);\n return retryAfterDate;\n}, \"getRetryAfterHint\");\n// Annotate the CommonJS export names for ESM import in node:\n\n0 && (module.exports = {\n AdaptiveRetryStrategy,\n StandardRetryStrategy,\n ENV_MAX_ATTEMPTS,\n CONFIG_MAX_ATTEMPTS,\n NODE_MAX_ATTEMPT_CONFIG_OPTIONS,\n resolveRetryConfig,\n ENV_RETRY_MODE,\n CONFIG_RETRY_MODE,\n NODE_RETRY_MODE_CONFIG_OPTIONS,\n defaultDelayDecider,\n omitRetryHeadersMiddleware,\n omitRetryHeadersMiddlewareOptions,\n getOmitRetryHeadersPlugin,\n defaultRetryDecider,\n retryMiddleware,\n retryMiddlewareOptions,\n getRetryPlugin,\n getRetryAfterHint\n});\n\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.isStreamingPayload = void 0;\nconst stream_1 = require(\"stream\");\nconst isStreamingPayload = (request) => (request === null || request === void 0 ? void 0 : request.body) instanceof stream_1.Readable ||\n (typeof ReadableStream !== \"undefined\" && (request === null || request === void 0 ? void 0 : request.body) instanceof ReadableStream);\nexports.isStreamingPayload = isStreamingPayload;\n","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nObject.defineProperty(exports, \"NIL\", {\n enumerable: true,\n get: function () {\n return _nil.default;\n }\n});\nObject.defineProperty(exports, \"parse\", {\n enumerable: true,\n get: function () {\n return _parse.default;\n }\n});\nObject.defineProperty(exports, \"stringify\", {\n enumerable: true,\n get: function () {\n return _stringify.default;\n }\n});\nObject.defineProperty(exports, \"v1\", {\n enumerable: true,\n get: function () {\n return _v.default;\n }\n});\nObject.defineProperty(exports, \"v3\", {\n enumerable: true,\n get: function () {\n return _v2.default;\n }\n});\nObject.defineProperty(exports, \"v4\", {\n enumerable: true,\n get: function () {\n return _v3.default;\n }\n});\nObject.defineProperty(exports, \"v5\", {\n enumerable: true,\n get: function () {\n return _v4.default;\n }\n});\nObject.defineProperty(exports, \"validate\", {\n enumerable: true,\n get: function () {\n return _validate.default;\n }\n});\nObject.defineProperty(exports, \"version\", {\n enumerable: true,\n get: function () {\n return _version.default;\n }\n});\n\nvar _v = _interopRequireDefault(require(\"./v1.js\"));\n\nvar _v2 = _interopRequireDefault(require(\"./v3.js\"));\n\nvar _v3 = _interopRequireDefault(require(\"./v4.js\"));\n\nvar _v4 = _interopRequireDefault(require(\"./v5.js\"));\n\nvar _nil = _interopRequireDefault(require(\"./nil.js\"));\n\nvar _version = _interopRequireDefault(require(\"./version.js\"));\n\nvar _validate = _interopRequireDefault(require(\"./validate.js\"));\n\nvar _stringify = _interopRequireDefault(require(\"./stringify.js\"));\n\nvar _parse = _interopRequireDefault(require(\"./parse.js\"));\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\n\nvar _crypto = _interopRequireDefault(require(\"crypto\"));\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction md5(bytes) {\n if (Array.isArray(bytes)) {\n bytes = Buffer.from(bytes);\n } else if (typeof bytes === 'string') {\n bytes = Buffer.from(bytes, 'utf8');\n }\n\n return _crypto.default.createHash('md5').update(bytes).digest();\n}\n\nvar _default = md5;\nexports.default = _default;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\n\nvar _crypto = _interopRequireDefault(require(\"crypto\"));\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nvar _default = {\n randomUUID: _crypto.default.randomUUID\n};\nexports.default = _default;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\nvar _default = '00000000-0000-0000-0000-000000000000';\nexports.default = _default;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\n\nvar _validate = _interopRequireDefault(require(\"./validate.js\"));\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction parse(uuid) {\n if (!(0, _validate.default)(uuid)) {\n throw TypeError('Invalid UUID');\n }\n\n let v;\n const arr = new Uint8Array(16); // Parse ########-....-....-....-............\n\n arr[0] = (v = parseInt(uuid.slice(0, 8), 16)) >>> 24;\n arr[1] = v >>> 16 & 0xff;\n arr[2] = v >>> 8 & 0xff;\n arr[3] = v & 0xff; // Parse ........-####-....-....-............\n\n arr[4] = (v = parseInt(uuid.slice(9, 13), 16)) >>> 8;\n arr[5] = v & 0xff; // Parse ........-....-####-....-............\n\n arr[6] = (v = parseInt(uuid.slice(14, 18), 16)) >>> 8;\n arr[7] = v & 0xff; // Parse ........-....-....-####-............\n\n arr[8] = (v = parseInt(uuid.slice(19, 23), 16)) >>> 8;\n arr[9] = v & 0xff; // Parse ........-....-....-....-############\n // (Use \"/\" to avoid 32-bit truncation when bit-shifting high-order bytes)\n\n arr[10] = (v = parseInt(uuid.slice(24, 36), 16)) / 0x10000000000 & 0xff;\n arr[11] = v / 0x100000000 & 0xff;\n arr[12] = v >>> 24 & 0xff;\n arr[13] = v >>> 16 & 0xff;\n arr[14] = v >>> 8 & 0xff;\n arr[15] = v & 0xff;\n return arr;\n}\n\nvar _default = parse;\nexports.default = _default;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\nvar _default = /^(?:[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;\nexports.default = _default;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = rng;\n\nvar _crypto = _interopRequireDefault(require(\"crypto\"));\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nconst rnds8Pool = new Uint8Array(256); // # of random values to pre-allocate\n\nlet poolPtr = rnds8Pool.length;\n\nfunction rng() {\n if (poolPtr > rnds8Pool.length - 16) {\n _crypto.default.randomFillSync(rnds8Pool);\n\n poolPtr = 0;\n }\n\n return rnds8Pool.slice(poolPtr, poolPtr += 16);\n}","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\n\nvar _crypto = _interopRequireDefault(require(\"crypto\"));\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction sha1(bytes) {\n if (Array.isArray(bytes)) {\n bytes = Buffer.from(bytes);\n } else if (typeof bytes === 'string') {\n bytes = Buffer.from(bytes, 'utf8');\n }\n\n return _crypto.default.createHash('sha1').update(bytes).digest();\n}\n\nvar _default = sha1;\nexports.default = _default;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\nexports.unsafeStringify = unsafeStringify;\n\nvar _validate = _interopRequireDefault(require(\"./validate.js\"));\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n/**\n * Convert array of 16 byte values to UUID string format of the form:\n * XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX\n */\nconst byteToHex = [];\n\nfor (let i = 0; i < 256; ++i) {\n byteToHex.push((i + 0x100).toString(16).slice(1));\n}\n\nfunction unsafeStringify(arr, offset = 0) {\n // Note: Be careful editing this code! It's been tuned for performance\n // and works in ways you may not expect. See https://github.com/uuidjs/uuid/pull/434\n return byteToHex[arr[offset + 0]] + byteToHex[arr[offset + 1]] + byteToHex[arr[offset + 2]] + byteToHex[arr[offset + 3]] + '-' + byteToHex[arr[offset + 4]] + byteToHex[arr[offset + 5]] + '-' + byteToHex[arr[offset + 6]] + byteToHex[arr[offset + 7]] + '-' + byteToHex[arr[offset + 8]] + byteToHex[arr[offset + 9]] + '-' + byteToHex[arr[offset + 10]] + byteToHex[arr[offset + 11]] + byteToHex[arr[offset + 12]] + byteToHex[arr[offset + 13]] + byteToHex[arr[offset + 14]] + byteToHex[arr[offset + 15]];\n}\n\nfunction stringify(arr, offset = 0) {\n const uuid = unsafeStringify(arr, offset); // Consistency check for valid UUID. If this throws, it's likely due to one\n // of the following:\n // - One or more input array values don't map to a hex octet (leading to\n // \"undefined\" in the uuid)\n // - Invalid input values for the RFC `version` or `variant` fields\n\n if (!(0, _validate.default)(uuid)) {\n throw TypeError('Stringified UUID is invalid');\n }\n\n return uuid;\n}\n\nvar _default = stringify;\nexports.default = _default;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\n\nvar _rng = _interopRequireDefault(require(\"./rng.js\"));\n\nvar _stringify = require(\"./stringify.js\");\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n// **`v1()` - Generate time-based UUID**\n//\n// Inspired by https://github.com/LiosK/UUID.js\n// and http://docs.python.org/library/uuid.html\nlet _nodeId;\n\nlet _clockseq; // Previous uuid creation time\n\n\nlet _lastMSecs = 0;\nlet _lastNSecs = 0; // See https://github.com/uuidjs/uuid for API details\n\nfunction v1(options, buf, offset) {\n let i = buf && offset || 0;\n const b = buf || new Array(16);\n options = options || {};\n let node = options.node || _nodeId;\n let clockseq = options.clockseq !== undefined ? options.clockseq : _clockseq; // node and clockseq need to be initialized to random values if they're not\n // specified. We do this lazily to minimize issues related to insufficient\n // system entropy. See #189\n\n if (node == null || clockseq == null) {\n const seedBytes = options.random || (options.rng || _rng.default)();\n\n if (node == null) {\n // Per 4.5, create and 48-bit node id, (47 random bits + multicast bit = 1)\n node = _nodeId = [seedBytes[0] | 0x01, seedBytes[1], seedBytes[2], seedBytes[3], seedBytes[4], seedBytes[5]];\n }\n\n if (clockseq == null) {\n // Per 4.2.2, randomize (14 bit) clockseq\n clockseq = _clockseq = (seedBytes[6] << 8 | seedBytes[7]) & 0x3fff;\n }\n } // UUID timestamps are 100 nano-second units since the Gregorian epoch,\n // (1582-10-15 00:00). JSNumbers aren't precise enough for this, so\n // time is handled internally as 'msecs' (integer milliseconds) and 'nsecs'\n // (100-nanoseconds offset from msecs) since unix epoch, 1970-01-01 00:00.\n\n\n let msecs = options.msecs !== undefined ? options.msecs : Date.now(); // Per 4.2.1.2, use count of uuid's generated during the current clock\n // cycle to simulate higher resolution clock\n\n let nsecs = options.nsecs !== undefined ? options.nsecs : _lastNSecs + 1; // Time since last uuid creation (in msecs)\n\n const dt = msecs - _lastMSecs + (nsecs - _lastNSecs) / 10000; // Per 4.2.1.2, Bump clockseq on clock regression\n\n if (dt < 0 && options.clockseq === undefined) {\n clockseq = clockseq + 1 & 0x3fff;\n } // Reset nsecs if clock regresses (new clockseq) or we've moved onto a new\n // time interval\n\n\n if ((dt < 0 || msecs > _lastMSecs) && options.nsecs === undefined) {\n nsecs = 0;\n } // Per 4.2.1.2 Throw error if too many uuids are requested\n\n\n if (nsecs >= 10000) {\n throw new Error(\"uuid.v1(): Can't create more than 10M uuids/sec\");\n }\n\n _lastMSecs = msecs;\n _lastNSecs = nsecs;\n _clockseq = clockseq; // Per 4.1.4 - Convert from unix epoch to Gregorian epoch\n\n msecs += 12219292800000; // `time_low`\n\n const tl = ((msecs & 0xfffffff) * 10000 + nsecs) % 0x100000000;\n b[i++] = tl >>> 24 & 0xff;\n b[i++] = tl >>> 16 & 0xff;\n b[i++] = tl >>> 8 & 0xff;\n b[i++] = tl & 0xff; // `time_mid`\n\n const tmh = msecs / 0x100000000 * 10000 & 0xfffffff;\n b[i++] = tmh >>> 8 & 0xff;\n b[i++] = tmh & 0xff; // `time_high_and_version`\n\n b[i++] = tmh >>> 24 & 0xf | 0x10; // include version\n\n b[i++] = tmh >>> 16 & 0xff; // `clock_seq_hi_and_reserved` (Per 4.2.2 - include variant)\n\n b[i++] = clockseq >>> 8 | 0x80; // `clock_seq_low`\n\n b[i++] = clockseq & 0xff; // `node`\n\n for (let n = 0; n < 6; ++n) {\n b[i + n] = node[n];\n }\n\n return buf || (0, _stringify.unsafeStringify)(b);\n}\n\nvar _default = v1;\nexports.default = _default;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\n\nvar _v = _interopRequireDefault(require(\"./v35.js\"));\n\nvar _md = _interopRequireDefault(require(\"./md5.js\"));\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nconst v3 = (0, _v.default)('v3', 0x30, _md.default);\nvar _default = v3;\nexports.default = _default;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.URL = exports.DNS = void 0;\nexports.default = v35;\n\nvar _stringify = require(\"./stringify.js\");\n\nvar _parse = _interopRequireDefault(require(\"./parse.js\"));\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction stringToBytes(str) {\n str = unescape(encodeURIComponent(str)); // UTF8 escape\n\n const bytes = [];\n\n for (let i = 0; i < str.length; ++i) {\n bytes.push(str.charCodeAt(i));\n }\n\n return bytes;\n}\n\nconst DNS = '6ba7b810-9dad-11d1-80b4-00c04fd430c8';\nexports.DNS = DNS;\nconst URL = '6ba7b811-9dad-11d1-80b4-00c04fd430c8';\nexports.URL = URL;\n\nfunction v35(name, version, hashfunc) {\n function generateUUID(value, namespace, buf, offset) {\n var _namespace;\n\n if (typeof value === 'string') {\n value = stringToBytes(value);\n }\n\n if (typeof namespace === 'string') {\n namespace = (0, _parse.default)(namespace);\n }\n\n if (((_namespace = namespace) === null || _namespace === void 0 ? void 0 : _namespace.length) !== 16) {\n throw TypeError('Namespace must be array-like (16 iterable integer values, 0-255)');\n } // Compute hash of namespace and value, Per 4.3\n // Future: Use spread syntax when supported on all platforms, e.g. `bytes =\n // hashfunc([...namespace, ... value])`\n\n\n let bytes = new Uint8Array(16 + value.length);\n bytes.set(namespace);\n bytes.set(value, namespace.length);\n bytes = hashfunc(bytes);\n bytes[6] = bytes[6] & 0x0f | version;\n bytes[8] = bytes[8] & 0x3f | 0x80;\n\n if (buf) {\n offset = offset || 0;\n\n for (let i = 0; i < 16; ++i) {\n buf[offset + i] = bytes[i];\n }\n\n return buf;\n }\n\n return (0, _stringify.unsafeStringify)(bytes);\n } // Function#name is not settable on some platforms (#270)\n\n\n try {\n generateUUID.name = name; // eslint-disable-next-line no-empty\n } catch (err) {} // For CommonJS default export support\n\n\n generateUUID.DNS = DNS;\n generateUUID.URL = URL;\n return generateUUID;\n}","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\n\nvar _native = _interopRequireDefault(require(\"./native.js\"));\n\nvar _rng = _interopRequireDefault(require(\"./rng.js\"));\n\nvar _stringify = require(\"./stringify.js\");\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction v4(options, buf, offset) {\n if (_native.default.randomUUID && !buf && !options) {\n return _native.default.randomUUID();\n }\n\n options = options || {};\n\n const rnds = options.random || (options.rng || _rng.default)(); // Per 4.4, set bits for version and `clock_seq_hi_and_reserved`\n\n\n rnds[6] = rnds[6] & 0x0f | 0x40;\n rnds[8] = rnds[8] & 0x3f | 0x80; // Copy bytes to buffer, if provided\n\n if (buf) {\n offset = offset || 0;\n\n for (let i = 0; i < 16; ++i) {\n buf[offset + i] = rnds[i];\n }\n\n return buf;\n }\n\n return (0, _stringify.unsafeStringify)(rnds);\n}\n\nvar _default = v4;\nexports.default = _default;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\n\nvar _v = _interopRequireDefault(require(\"./v35.js\"));\n\nvar _sha = _interopRequireDefault(require(\"./sha1.js\"));\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nconst v5 = (0, _v.default)('v5', 0x50, _sha.default);\nvar _default = v5;\nexports.default = _default;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\n\nvar _regex = _interopRequireDefault(require(\"./regex.js\"));\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction validate(uuid) {\n return typeof uuid === 'string' && _regex.default.test(uuid);\n}\n\nvar _default = validate;\nexports.default = _default;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\n\nvar _validate = _interopRequireDefault(require(\"./validate.js\"));\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction version(uuid) {\n if (!(0, _validate.default)(uuid)) {\n throw TypeError('Invalid UUID');\n }\n\n return parseInt(uuid.slice(14, 15), 16);\n}\n\nvar _default = version;\nexports.default = _default;","var __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __name = (target, value) => __defProp(target, \"name\", { value, configurable: true });\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n};\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\n\n// src/index.ts\nvar src_exports = {};\n__export(src_exports, {\n deserializerMiddleware: () => deserializerMiddleware,\n deserializerMiddlewareOption: () => deserializerMiddlewareOption,\n getSerdePlugin: () => getSerdePlugin,\n serializerMiddleware: () => serializerMiddleware,\n serializerMiddlewareOption: () => serializerMiddlewareOption\n});\nmodule.exports = __toCommonJS(src_exports);\n\n// src/deserializerMiddleware.ts\nvar deserializerMiddleware = /* @__PURE__ */ __name((options, deserializer) => (next, context) => async (args) => {\n const { response } = await next(args);\n try {\n const parsed = await deserializer(response, options);\n return {\n response,\n output: parsed\n };\n } catch (error) {\n Object.defineProperty(error, \"$response\", {\n value: response\n });\n if (!(\"$metadata\" in error)) {\n const hint = `Deserialization error: to see the raw response, inspect the hidden field {error}.$response on this object.`;\n try {\n error.message += \"\\n \" + hint;\n } catch (e) {\n if (!context.logger || context.logger?.constructor?.name === \"NoOpLogger\") {\n console.warn(hint);\n } else {\n context.logger?.warn?.(hint);\n }\n }\n if (typeof error.$responseBodyText !== \"undefined\") {\n if (error.$response) {\n error.$response.body = error.$responseBodyText;\n }\n }\n }\n throw error;\n }\n}, \"deserializerMiddleware\");\n\n// src/serializerMiddleware.ts\nvar serializerMiddleware = /* @__PURE__ */ __name((options, serializer) => (next, context) => async (args) => {\n const endpoint = context.endpointV2?.url && options.urlParser ? async () => options.urlParser(context.endpointV2.url) : options.endpoint;\n if (!endpoint) {\n throw new Error(\"No valid endpoint provider available.\");\n }\n const request = await serializer(args.input, { ...options, endpoint });\n return next({\n ...args,\n request\n });\n}, \"serializerMiddleware\");\n\n// src/serdePlugin.ts\nvar deserializerMiddlewareOption = {\n name: \"deserializerMiddleware\",\n step: \"deserialize\",\n tags: [\"DESERIALIZER\"],\n override: true\n};\nvar serializerMiddlewareOption = {\n name: \"serializerMiddleware\",\n step: \"serialize\",\n tags: [\"SERIALIZER\"],\n override: true\n};\nfunction getSerdePlugin(config, serializer, deserializer) {\n return {\n applyToStack: (commandStack) => {\n commandStack.add(deserializerMiddleware(config, deserializer), deserializerMiddlewareOption);\n commandStack.add(serializerMiddleware(config, serializer), serializerMiddlewareOption);\n }\n };\n}\n__name(getSerdePlugin, \"getSerdePlugin\");\n// Annotate the CommonJS export names for ESM import in node:\n\n0 && (module.exports = {\n deserializerMiddleware,\n deserializerMiddlewareOption,\n serializerMiddlewareOption,\n getSerdePlugin,\n serializerMiddleware\n});\n\n","var __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __name = (target, value) => __defProp(target, \"name\", { value, configurable: true });\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n};\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\n\n// src/index.ts\nvar src_exports = {};\n__export(src_exports, {\n constructStack: () => constructStack\n});\nmodule.exports = __toCommonJS(src_exports);\n\n// src/MiddlewareStack.ts\nvar getAllAliases = /* @__PURE__ */ __name((name, aliases) => {\n const _aliases = [];\n if (name) {\n _aliases.push(name);\n }\n if (aliases) {\n for (const alias of aliases) {\n _aliases.push(alias);\n }\n }\n return _aliases;\n}, \"getAllAliases\");\nvar getMiddlewareNameWithAliases = /* @__PURE__ */ __name((name, aliases) => {\n return `${name || \"anonymous\"}${aliases && aliases.length > 0 ? ` (a.k.a. ${aliases.join(\",\")})` : \"\"}`;\n}, \"getMiddlewareNameWithAliases\");\nvar constructStack = /* @__PURE__ */ __name(() => {\n let absoluteEntries = [];\n let relativeEntries = [];\n let identifyOnResolve = false;\n const entriesNameSet = /* @__PURE__ */ new Set();\n const sort = /* @__PURE__ */ __name((entries) => entries.sort(\n (a, b) => stepWeights[b.step] - stepWeights[a.step] || priorityWeights[b.priority || \"normal\"] - priorityWeights[a.priority || \"normal\"]\n ), \"sort\");\n const removeByName = /* @__PURE__ */ __name((toRemove) => {\n let isRemoved = false;\n const filterCb = /* @__PURE__ */ __name((entry) => {\n const aliases = getAllAliases(entry.name, entry.aliases);\n if (aliases.includes(toRemove)) {\n isRemoved = true;\n for (const alias of aliases) {\n entriesNameSet.delete(alias);\n }\n return false;\n }\n return true;\n }, \"filterCb\");\n absoluteEntries = absoluteEntries.filter(filterCb);\n relativeEntries = relativeEntries.filter(filterCb);\n return isRemoved;\n }, \"removeByName\");\n const removeByReference = /* @__PURE__ */ __name((toRemove) => {\n let isRemoved = false;\n const filterCb = /* @__PURE__ */ __name((entry) => {\n if (entry.middleware === toRemove) {\n isRemoved = true;\n for (const alias of getAllAliases(entry.name, entry.aliases)) {\n entriesNameSet.delete(alias);\n }\n return false;\n }\n return true;\n }, \"filterCb\");\n absoluteEntries = absoluteEntries.filter(filterCb);\n relativeEntries = relativeEntries.filter(filterCb);\n return isRemoved;\n }, \"removeByReference\");\n const cloneTo = /* @__PURE__ */ __name((toStack) => {\n absoluteEntries.forEach((entry) => {\n toStack.add(entry.middleware, { ...entry });\n });\n relativeEntries.forEach((entry) => {\n toStack.addRelativeTo(entry.middleware, { ...entry });\n });\n toStack.identifyOnResolve?.(stack.identifyOnResolve());\n return toStack;\n }, \"cloneTo\");\n const expandRelativeMiddlewareList = /* @__PURE__ */ __name((from) => {\n const expandedMiddlewareList = [];\n from.before.forEach((entry) => {\n if (entry.before.length === 0 && entry.after.length === 0) {\n expandedMiddlewareList.push(entry);\n } else {\n expandedMiddlewareList.push(...expandRelativeMiddlewareList(entry));\n }\n });\n expandedMiddlewareList.push(from);\n from.after.reverse().forEach((entry) => {\n if (entry.before.length === 0 && entry.after.length === 0) {\n expandedMiddlewareList.push(entry);\n } else {\n expandedMiddlewareList.push(...expandRelativeMiddlewareList(entry));\n }\n });\n return expandedMiddlewareList;\n }, \"expandRelativeMiddlewareList\");\n const getMiddlewareList = /* @__PURE__ */ __name((debug = false) => {\n const normalizedAbsoluteEntries = [];\n const normalizedRelativeEntries = [];\n const normalizedEntriesNameMap = {};\n absoluteEntries.forEach((entry) => {\n const normalizedEntry = {\n ...entry,\n before: [],\n after: []\n };\n for (const alias of getAllAliases(normalizedEntry.name, normalizedEntry.aliases)) {\n normalizedEntriesNameMap[alias] = normalizedEntry;\n }\n normalizedAbsoluteEntries.push(normalizedEntry);\n });\n relativeEntries.forEach((entry) => {\n const normalizedEntry = {\n ...entry,\n before: [],\n after: []\n };\n for (const alias of getAllAliases(normalizedEntry.name, normalizedEntry.aliases)) {\n normalizedEntriesNameMap[alias] = normalizedEntry;\n }\n normalizedRelativeEntries.push(normalizedEntry);\n });\n normalizedRelativeEntries.forEach((entry) => {\n if (entry.toMiddleware) {\n const toMiddleware = normalizedEntriesNameMap[entry.toMiddleware];\n if (toMiddleware === void 0) {\n if (debug) {\n return;\n }\n throw new Error(\n `${entry.toMiddleware} is not found when adding ${getMiddlewareNameWithAliases(entry.name, entry.aliases)} middleware ${entry.relation} ${entry.toMiddleware}`\n );\n }\n if (entry.relation === \"after\") {\n toMiddleware.after.push(entry);\n }\n if (entry.relation === \"before\") {\n toMiddleware.before.push(entry);\n }\n }\n });\n const mainChain = sort(normalizedAbsoluteEntries).map(expandRelativeMiddlewareList).reduce(\n (wholeList, expandedMiddlewareList) => {\n wholeList.push(...expandedMiddlewareList);\n return wholeList;\n },\n []\n );\n return mainChain;\n }, \"getMiddlewareList\");\n const stack = {\n add: (middleware, options = {}) => {\n const { name, override, aliases: _aliases } = options;\n const entry = {\n step: \"initialize\",\n priority: \"normal\",\n middleware,\n ...options\n };\n const aliases = getAllAliases(name, _aliases);\n if (aliases.length > 0) {\n if (aliases.some((alias) => entriesNameSet.has(alias))) {\n if (!override)\n throw new Error(`Duplicate middleware name '${getMiddlewareNameWithAliases(name, _aliases)}'`);\n for (const alias of aliases) {\n const toOverrideIndex = absoluteEntries.findIndex(\n (entry2) => entry2.name === alias || entry2.aliases?.some((a) => a === alias)\n );\n if (toOverrideIndex === -1) {\n continue;\n }\n const toOverride = absoluteEntries[toOverrideIndex];\n if (toOverride.step !== entry.step || entry.priority !== toOverride.priority) {\n throw new Error(\n `\"${getMiddlewareNameWithAliases(toOverride.name, toOverride.aliases)}\" middleware with ${toOverride.priority} priority in ${toOverride.step} step cannot be overridden by \"${getMiddlewareNameWithAliases(name, _aliases)}\" middleware with ${entry.priority} priority in ${entry.step} step.`\n );\n }\n absoluteEntries.splice(toOverrideIndex, 1);\n }\n }\n for (const alias of aliases) {\n entriesNameSet.add(alias);\n }\n }\n absoluteEntries.push(entry);\n },\n addRelativeTo: (middleware, options) => {\n const { name, override, aliases: _aliases } = options;\n const entry = {\n middleware,\n ...options\n };\n const aliases = getAllAliases(name, _aliases);\n if (aliases.length > 0) {\n if (aliases.some((alias) => entriesNameSet.has(alias))) {\n if (!override)\n throw new Error(`Duplicate middleware name '${getMiddlewareNameWithAliases(name, _aliases)}'`);\n for (const alias of aliases) {\n const toOverrideIndex = relativeEntries.findIndex(\n (entry2) => entry2.name === alias || entry2.aliases?.some((a) => a === alias)\n );\n if (toOverrideIndex === -1) {\n continue;\n }\n const toOverride = relativeEntries[toOverrideIndex];\n if (toOverride.toMiddleware !== entry.toMiddleware || toOverride.relation !== entry.relation) {\n throw new Error(\n `\"${getMiddlewareNameWithAliases(toOverride.name, toOverride.aliases)}\" middleware ${toOverride.relation} \"${toOverride.toMiddleware}\" middleware cannot be overridden by \"${getMiddlewareNameWithAliases(name, _aliases)}\" middleware ${entry.relation} \"${entry.toMiddleware}\" middleware.`\n );\n }\n relativeEntries.splice(toOverrideIndex, 1);\n }\n }\n for (const alias of aliases) {\n entriesNameSet.add(alias);\n }\n }\n relativeEntries.push(entry);\n },\n clone: () => cloneTo(constructStack()),\n use: (plugin) => {\n plugin.applyToStack(stack);\n },\n remove: (toRemove) => {\n if (typeof toRemove === \"string\")\n return removeByName(toRemove);\n else\n return removeByReference(toRemove);\n },\n removeByTag: (toRemove) => {\n let isRemoved = false;\n const filterCb = /* @__PURE__ */ __name((entry) => {\n const { tags, name, aliases: _aliases } = entry;\n if (tags && tags.includes(toRemove)) {\n const aliases = getAllAliases(name, _aliases);\n for (const alias of aliases) {\n entriesNameSet.delete(alias);\n }\n isRemoved = true;\n return false;\n }\n return true;\n }, \"filterCb\");\n absoluteEntries = absoluteEntries.filter(filterCb);\n relativeEntries = relativeEntries.filter(filterCb);\n return isRemoved;\n },\n concat: (from) => {\n const cloned = cloneTo(constructStack());\n cloned.use(from);\n cloned.identifyOnResolve(\n identifyOnResolve || cloned.identifyOnResolve() || (from.identifyOnResolve?.() ?? false)\n );\n return cloned;\n },\n applyToStack: cloneTo,\n identify: () => {\n return getMiddlewareList(true).map((mw) => {\n const step = mw.step ?? mw.relation + \" \" + mw.toMiddleware;\n return getMiddlewareNameWithAliases(mw.name, mw.aliases) + \" - \" + step;\n });\n },\n identifyOnResolve(toggle) {\n if (typeof toggle === \"boolean\")\n identifyOnResolve = toggle;\n return identifyOnResolve;\n },\n resolve: (handler, context) => {\n for (const middleware of getMiddlewareList().map((entry) => entry.middleware).reverse()) {\n handler = middleware(handler, context);\n }\n if (identifyOnResolve) {\n console.log(stack.identify());\n }\n return handler;\n }\n };\n return stack;\n}, \"constructStack\");\nvar stepWeights = {\n initialize: 5,\n serialize: 4,\n build: 3,\n finalizeRequest: 2,\n deserialize: 1\n};\nvar priorityWeights = {\n high: 3,\n normal: 2,\n low: 1\n};\n// Annotate the CommonJS export names for ESM import in node:\n\n0 && (module.exports = {\n constructStack\n});\n\n","var __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __name = (target, value) => __defProp(target, \"name\", { value, configurable: true });\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n};\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\n\n// src/index.ts\nvar src_exports = {};\n__export(src_exports, {\n loadConfig: () => loadConfig\n});\nmodule.exports = __toCommonJS(src_exports);\n\n// src/configLoader.ts\n\n\n// src/fromEnv.ts\nvar import_property_provider = require(\"@smithy/property-provider\");\n\n// src/getSelectorName.ts\nfunction getSelectorName(functionString) {\n try {\n const constants = new Set(Array.from(functionString.match(/([A-Z_]){3,}/g) ?? []));\n constants.delete(\"CONFIG\");\n constants.delete(\"CONFIG_PREFIX_SEPARATOR\");\n constants.delete(\"ENV\");\n return [...constants].join(\", \");\n } catch (e) {\n return functionString;\n }\n}\n__name(getSelectorName, \"getSelectorName\");\n\n// src/fromEnv.ts\nvar fromEnv = /* @__PURE__ */ __name((envVarSelector, logger) => async () => {\n try {\n const config = envVarSelector(process.env);\n if (config === void 0) {\n throw new Error();\n }\n return config;\n } catch (e) {\n throw new import_property_provider.CredentialsProviderError(\n e.message || `Not found in ENV: ${getSelectorName(envVarSelector.toString())}`,\n { logger }\n );\n }\n}, \"fromEnv\");\n\n// src/fromSharedConfigFiles.ts\n\nvar import_shared_ini_file_loader = require(\"@smithy/shared-ini-file-loader\");\nvar fromSharedConfigFiles = /* @__PURE__ */ __name((configSelector, { preferredFile = \"config\", ...init } = {}) => async () => {\n const profile = (0, import_shared_ini_file_loader.getProfileName)(init);\n const { configFile, credentialsFile } = await (0, import_shared_ini_file_loader.loadSharedConfigFiles)(init);\n const profileFromCredentials = credentialsFile[profile] || {};\n const profileFromConfig = configFile[profile] || {};\n const mergedProfile = preferredFile === \"config\" ? { ...profileFromCredentials, ...profileFromConfig } : { ...profileFromConfig, ...profileFromCredentials };\n try {\n const cfgFile = preferredFile === \"config\" ? configFile : credentialsFile;\n const configValue = configSelector(mergedProfile, cfgFile);\n if (configValue === void 0) {\n throw new Error();\n }\n return configValue;\n } catch (e) {\n throw new import_property_provider.CredentialsProviderError(\n e.message || `Not found in config files w/ profile [${profile}]: ${getSelectorName(configSelector.toString())}`,\n { logger: init.logger }\n );\n }\n}, \"fromSharedConfigFiles\");\n\n// src/fromStatic.ts\n\nvar isFunction = /* @__PURE__ */ __name((func) => typeof func === \"function\", \"isFunction\");\nvar fromStatic = /* @__PURE__ */ __name((defaultValue) => isFunction(defaultValue) ? async () => await defaultValue() : (0, import_property_provider.fromStatic)(defaultValue), \"fromStatic\");\n\n// src/configLoader.ts\nvar loadConfig = /* @__PURE__ */ __name(({ environmentVariableSelector, configFileSelector, default: defaultValue }, configuration = {}) => (0, import_property_provider.memoize)(\n (0, import_property_provider.chain)(\n fromEnv(environmentVariableSelector),\n fromSharedConfigFiles(configFileSelector, configuration),\n fromStatic(defaultValue)\n )\n), \"loadConfig\");\n// Annotate the CommonJS export names for ESM import in node:\n\n0 && (module.exports = {\n loadConfig\n});\n\n","var __create = Object.create;\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __getProtoOf = Object.getPrototypeOf;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __name = (target, value) => __defProp(target, \"name\", { value, configurable: true });\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n};\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(\n // If the importer is in node compatibility mode or this is not an ESM\n // file that has been converted to a CommonJS file using a Babel-\n // compatible transform (i.e. \"__esModule\" has not been set), then set\n // \"default\" to the CommonJS \"module.exports\" for node compatibility.\n isNodeMode || !mod || !mod.__esModule ? __defProp(target, \"default\", { value: mod, enumerable: true }) : target,\n mod\n));\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\n\n// src/index.ts\nvar src_exports = {};\n__export(src_exports, {\n DEFAULT_REQUEST_TIMEOUT: () => DEFAULT_REQUEST_TIMEOUT,\n NodeHttp2Handler: () => NodeHttp2Handler,\n NodeHttpHandler: () => NodeHttpHandler,\n streamCollector: () => streamCollector\n});\nmodule.exports = __toCommonJS(src_exports);\n\n// src/node-http-handler.ts\nvar import_protocol_http = require(\"@smithy/protocol-http\");\nvar import_querystring_builder = require(\"@smithy/querystring-builder\");\nvar import_http = require(\"http\");\nvar import_https = require(\"https\");\n\n// src/constants.ts\nvar NODEJS_TIMEOUT_ERROR_CODES = [\"ECONNRESET\", \"EPIPE\", \"ETIMEDOUT\"];\n\n// src/get-transformed-headers.ts\nvar getTransformedHeaders = /* @__PURE__ */ __name((headers) => {\n const transformedHeaders = {};\n for (const name of Object.keys(headers)) {\n const headerValues = headers[name];\n transformedHeaders[name] = Array.isArray(headerValues) ? headerValues.join(\",\") : headerValues;\n }\n return transformedHeaders;\n}, \"getTransformedHeaders\");\n\n// src/timing.ts\nvar timing = {\n setTimeout: (cb, ms) => setTimeout(cb, ms),\n clearTimeout: (timeoutId) => clearTimeout(timeoutId)\n};\n\n// src/set-connection-timeout.ts\nvar DEFER_EVENT_LISTENER_TIME = 1e3;\nvar setConnectionTimeout = /* @__PURE__ */ __name((request, reject, timeoutInMs = 0) => {\n if (!timeoutInMs) {\n return -1;\n }\n const registerTimeout = /* @__PURE__ */ __name((offset) => {\n const timeoutId = timing.setTimeout(() => {\n request.destroy();\n reject(\n Object.assign(new Error(`Socket timed out without establishing a connection within ${timeoutInMs} ms`), {\n name: \"TimeoutError\"\n })\n );\n }, timeoutInMs - offset);\n const doWithSocket = /* @__PURE__ */ __name((socket) => {\n if (socket?.connecting) {\n socket.on(\"connect\", () => {\n timing.clearTimeout(timeoutId);\n });\n } else {\n timing.clearTimeout(timeoutId);\n }\n }, \"doWithSocket\");\n if (request.socket) {\n doWithSocket(request.socket);\n } else {\n request.on(\"socket\", doWithSocket);\n }\n }, \"registerTimeout\");\n if (timeoutInMs < 2e3) {\n registerTimeout(0);\n return 0;\n }\n return timing.setTimeout(registerTimeout.bind(null, DEFER_EVENT_LISTENER_TIME), DEFER_EVENT_LISTENER_TIME);\n}, \"setConnectionTimeout\");\n\n// src/set-socket-keep-alive.ts\nvar DEFER_EVENT_LISTENER_TIME2 = 3e3;\nvar setSocketKeepAlive = /* @__PURE__ */ __name((request, { keepAlive, keepAliveMsecs }, deferTimeMs = DEFER_EVENT_LISTENER_TIME2) => {\n if (keepAlive !== true) {\n return -1;\n }\n const registerListener = /* @__PURE__ */ __name(() => {\n if (request.socket) {\n request.socket.setKeepAlive(keepAlive, keepAliveMsecs || 0);\n } else {\n request.on(\"socket\", (socket) => {\n socket.setKeepAlive(keepAlive, keepAliveMsecs || 0);\n });\n }\n }, \"registerListener\");\n if (deferTimeMs === 0) {\n registerListener();\n return 0;\n }\n return timing.setTimeout(registerListener, deferTimeMs);\n}, \"setSocketKeepAlive\");\n\n// src/set-socket-timeout.ts\nvar DEFER_EVENT_LISTENER_TIME3 = 3e3;\nvar setSocketTimeout = /* @__PURE__ */ __name((request, reject, timeoutInMs = DEFAULT_REQUEST_TIMEOUT) => {\n const registerTimeout = /* @__PURE__ */ __name((offset) => {\n const timeout = timeoutInMs - offset;\n const onTimeout = /* @__PURE__ */ __name(() => {\n request.destroy();\n reject(Object.assign(new Error(`Connection timed out after ${timeoutInMs} ms`), { name: \"TimeoutError\" }));\n }, \"onTimeout\");\n if (request.socket) {\n request.socket.setTimeout(timeout, onTimeout);\n request.on(\"close\", () => request.socket?.removeListener(\"timeout\", onTimeout));\n } else {\n request.setTimeout(timeout, onTimeout);\n }\n }, \"registerTimeout\");\n if (0 < timeoutInMs && timeoutInMs < 6e3) {\n registerTimeout(0);\n return 0;\n }\n return timing.setTimeout(\n registerTimeout.bind(null, timeoutInMs === 0 ? 0 : DEFER_EVENT_LISTENER_TIME3),\n DEFER_EVENT_LISTENER_TIME3\n );\n}, \"setSocketTimeout\");\n\n// src/write-request-body.ts\nvar import_stream = require(\"stream\");\nvar MIN_WAIT_TIME = 6e3;\nasync function writeRequestBody(httpRequest, request, maxContinueTimeoutMs = MIN_WAIT_TIME) {\n const headers = request.headers ?? {};\n const expect = headers[\"Expect\"] || headers[\"expect\"];\n let timeoutId = -1;\n let sendBody = true;\n if (expect === \"100-continue\") {\n sendBody = await Promise.race([\n new Promise((resolve) => {\n timeoutId = Number(timing.setTimeout(() => resolve(true), Math.max(MIN_WAIT_TIME, maxContinueTimeoutMs)));\n }),\n new Promise((resolve) => {\n httpRequest.on(\"continue\", () => {\n timing.clearTimeout(timeoutId);\n resolve(true);\n });\n httpRequest.on(\"response\", () => {\n timing.clearTimeout(timeoutId);\n resolve(false);\n });\n httpRequest.on(\"error\", () => {\n timing.clearTimeout(timeoutId);\n resolve(false);\n });\n })\n ]);\n }\n if (sendBody) {\n writeBody(httpRequest, request.body);\n }\n}\n__name(writeRequestBody, \"writeRequestBody\");\nfunction writeBody(httpRequest, body) {\n if (body instanceof import_stream.Readable) {\n body.pipe(httpRequest);\n return;\n }\n if (body) {\n if (Buffer.isBuffer(body) || typeof body === \"string\") {\n httpRequest.end(body);\n return;\n }\n const uint8 = body;\n if (typeof uint8 === \"object\" && uint8.buffer && typeof uint8.byteOffset === \"number\" && typeof uint8.byteLength === \"number\") {\n httpRequest.end(Buffer.from(uint8.buffer, uint8.byteOffset, uint8.byteLength));\n return;\n }\n httpRequest.end(Buffer.from(body));\n return;\n }\n httpRequest.end();\n}\n__name(writeBody, \"writeBody\");\n\n// src/node-http-handler.ts\nvar DEFAULT_REQUEST_TIMEOUT = 0;\nvar NodeHttpHandler = class _NodeHttpHandler {\n constructor(options) {\n this.socketWarningTimestamp = 0;\n // Node http handler is hard-coded to http/1.1: https://github.com/nodejs/node/blob/ff5664b83b89c55e4ab5d5f60068fb457f1f5872/lib/_http_server.js#L286\n this.metadata = { handlerProtocol: \"http/1.1\" };\n this.configProvider = new Promise((resolve, reject) => {\n if (typeof options === \"function\") {\n options().then((_options) => {\n resolve(this.resolveDefaultConfig(_options));\n }).catch(reject);\n } else {\n resolve(this.resolveDefaultConfig(options));\n }\n });\n }\n static {\n __name(this, \"NodeHttpHandler\");\n }\n /**\n * @returns the input if it is an HttpHandler of any class,\n * or instantiates a new instance of this handler.\n */\n static create(instanceOrOptions) {\n if (typeof instanceOrOptions?.handle === \"function\") {\n return instanceOrOptions;\n }\n return new _NodeHttpHandler(instanceOrOptions);\n }\n /**\n * @internal\n *\n * @param agent - http(s) agent in use by the NodeHttpHandler instance.\n * @param socketWarningTimestamp - last socket usage check timestamp.\n * @param logger - channel for the warning.\n * @returns timestamp of last emitted warning.\n */\n static checkSocketUsage(agent, socketWarningTimestamp, logger = console) {\n const { sockets, requests, maxSockets } = agent;\n if (typeof maxSockets !== \"number\" || maxSockets === Infinity) {\n return socketWarningTimestamp;\n }\n const interval = 15e3;\n if (Date.now() - interval < socketWarningTimestamp) {\n return socketWarningTimestamp;\n }\n if (sockets && requests) {\n for (const origin in sockets) {\n const socketsInUse = sockets[origin]?.length ?? 0;\n const requestsEnqueued = requests[origin]?.length ?? 0;\n if (socketsInUse >= maxSockets && requestsEnqueued >= 2 * maxSockets) {\n logger?.warn?.(\n `@smithy/node-http-handler:WARN - socket usage at capacity=${socketsInUse} and ${requestsEnqueued} 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.`\n );\n return Date.now();\n }\n }\n }\n return socketWarningTimestamp;\n }\n resolveDefaultConfig(options) {\n const { requestTimeout, connectionTimeout, socketTimeout, socketAcquisitionWarningTimeout, httpAgent, httpsAgent } = options || {};\n const keepAlive = true;\n const maxSockets = 50;\n return {\n connectionTimeout,\n requestTimeout: requestTimeout ?? socketTimeout,\n socketAcquisitionWarningTimeout,\n httpAgent: (() => {\n if (httpAgent instanceof import_http.Agent || typeof httpAgent?.destroy === \"function\") {\n return httpAgent;\n }\n return new import_http.Agent({ keepAlive, maxSockets, ...httpAgent });\n })(),\n httpsAgent: (() => {\n if (httpsAgent instanceof import_https.Agent || typeof httpsAgent?.destroy === \"function\") {\n return httpsAgent;\n }\n return new import_https.Agent({ keepAlive, maxSockets, ...httpsAgent });\n })(),\n logger: console\n };\n }\n destroy() {\n this.config?.httpAgent?.destroy();\n this.config?.httpsAgent?.destroy();\n }\n async handle(request, { abortSignal } = {}) {\n if (!this.config) {\n this.config = await this.configProvider;\n }\n return new Promise((_resolve, _reject) => {\n let writeRequestBodyPromise = void 0;\n const timeouts = [];\n const resolve = /* @__PURE__ */ __name(async (arg) => {\n await writeRequestBodyPromise;\n timeouts.forEach(timing.clearTimeout);\n _resolve(arg);\n }, \"resolve\");\n const reject = /* @__PURE__ */ __name(async (arg) => {\n await writeRequestBodyPromise;\n timeouts.forEach(timing.clearTimeout);\n _reject(arg);\n }, \"reject\");\n if (!this.config) {\n throw new Error(\"Node HTTP request handler config is not resolved\");\n }\n if (abortSignal?.aborted) {\n const abortError = new Error(\"Request aborted\");\n abortError.name = \"AbortError\";\n reject(abortError);\n return;\n }\n const isSSL = request.protocol === \"https:\";\n const agent = isSSL ? this.config.httpsAgent : this.config.httpAgent;\n timeouts.push(\n timing.setTimeout(\n () => {\n this.socketWarningTimestamp = _NodeHttpHandler.checkSocketUsage(\n agent,\n this.socketWarningTimestamp,\n this.config.logger\n );\n },\n this.config.socketAcquisitionWarningTimeout ?? (this.config.requestTimeout ?? 2e3) + (this.config.connectionTimeout ?? 1e3)\n )\n );\n const queryString = (0, import_querystring_builder.buildQueryString)(request.query || {});\n let auth = void 0;\n if (request.username != null || request.password != null) {\n const username = request.username ?? \"\";\n const password = request.password ?? \"\";\n auth = `${username}:${password}`;\n }\n let path = request.path;\n if (queryString) {\n path += `?${queryString}`;\n }\n if (request.fragment) {\n path += `#${request.fragment}`;\n }\n let hostname = request.hostname ?? \"\";\n if (hostname[0] === \"[\" && hostname.endsWith(\"]\")) {\n hostname = request.hostname.slice(1, -1);\n } else {\n hostname = request.hostname;\n }\n const nodeHttpsOptions = {\n headers: request.headers,\n host: hostname,\n method: request.method,\n path,\n port: request.port,\n agent,\n auth\n };\n const requestFunc = isSSL ? import_https.request : import_http.request;\n const req = requestFunc(nodeHttpsOptions, (res) => {\n const httpResponse = new import_protocol_http.HttpResponse({\n statusCode: res.statusCode || -1,\n reason: res.statusMessage,\n headers: getTransformedHeaders(res.headers),\n body: res\n });\n resolve({ response: httpResponse });\n });\n req.on(\"error\", (err) => {\n if (NODEJS_TIMEOUT_ERROR_CODES.includes(err.code)) {\n reject(Object.assign(err, { name: \"TimeoutError\" }));\n } else {\n reject(err);\n }\n });\n if (abortSignal) {\n const onAbort = /* @__PURE__ */ __name(() => {\n req.destroy();\n const abortError = new Error(\"Request aborted\");\n abortError.name = \"AbortError\";\n reject(abortError);\n }, \"onAbort\");\n if (typeof abortSignal.addEventListener === \"function\") {\n const signal = abortSignal;\n signal.addEventListener(\"abort\", onAbort, { once: true });\n req.once(\"close\", () => signal.removeEventListener(\"abort\", onAbort));\n } else {\n abortSignal.onabort = onAbort;\n }\n }\n timeouts.push(setConnectionTimeout(req, reject, this.config.connectionTimeout));\n timeouts.push(setSocketTimeout(req, reject, this.config.requestTimeout));\n const httpAgent = nodeHttpsOptions.agent;\n if (typeof httpAgent === \"object\" && \"keepAlive\" in httpAgent) {\n timeouts.push(\n setSocketKeepAlive(req, {\n // @ts-expect-error keepAlive is not public on httpAgent.\n keepAlive: httpAgent.keepAlive,\n // @ts-expect-error keepAliveMsecs is not public on httpAgent.\n keepAliveMsecs: httpAgent.keepAliveMsecs\n })\n );\n }\n writeRequestBodyPromise = writeRequestBody(req, request, this.config.requestTimeout).catch((e) => {\n timeouts.forEach(timing.clearTimeout);\n return _reject(e);\n });\n });\n }\n updateHttpClientConfig(key, value) {\n this.config = void 0;\n this.configProvider = this.configProvider.then((config) => {\n return {\n ...config,\n [key]: value\n };\n });\n }\n httpHandlerConfigs() {\n return this.config ?? {};\n }\n};\n\n// src/node-http2-handler.ts\n\n\nvar import_http22 = require(\"http2\");\n\n// src/node-http2-connection-manager.ts\nvar import_http2 = __toESM(require(\"http2\"));\n\n// src/node-http2-connection-pool.ts\nvar NodeHttp2ConnectionPool = class {\n constructor(sessions) {\n this.sessions = [];\n this.sessions = sessions ?? [];\n }\n static {\n __name(this, \"NodeHttp2ConnectionPool\");\n }\n poll() {\n if (this.sessions.length > 0) {\n return this.sessions.shift();\n }\n }\n offerLast(session) {\n this.sessions.push(session);\n }\n contains(session) {\n return this.sessions.includes(session);\n }\n remove(session) {\n this.sessions = this.sessions.filter((s) => s !== session);\n }\n [Symbol.iterator]() {\n return this.sessions[Symbol.iterator]();\n }\n destroy(connection) {\n for (const session of this.sessions) {\n if (session === connection) {\n if (!session.destroyed) {\n session.destroy();\n }\n }\n }\n }\n};\n\n// src/node-http2-connection-manager.ts\nvar NodeHttp2ConnectionManager = class {\n constructor(config) {\n this.sessionCache = /* @__PURE__ */ new Map();\n this.config = config;\n if (this.config.maxConcurrency && this.config.maxConcurrency <= 0) {\n throw new RangeError(\"maxConcurrency must be greater than zero.\");\n }\n }\n static {\n __name(this, \"NodeHttp2ConnectionManager\");\n }\n lease(requestContext, connectionConfiguration) {\n const url = this.getUrlString(requestContext);\n const existingPool = this.sessionCache.get(url);\n if (existingPool) {\n const existingSession = existingPool.poll();\n if (existingSession && !this.config.disableConcurrency) {\n return existingSession;\n }\n }\n const session = import_http2.default.connect(url);\n if (this.config.maxConcurrency) {\n session.settings({ maxConcurrentStreams: this.config.maxConcurrency }, (err) => {\n if (err) {\n throw new Error(\n \"Fail to set maxConcurrentStreams to \" + this.config.maxConcurrency + \"when creating new session for \" + requestContext.destination.toString()\n );\n }\n });\n }\n session.unref();\n const destroySessionCb = /* @__PURE__ */ __name(() => {\n session.destroy();\n this.deleteSession(url, session);\n }, \"destroySessionCb\");\n session.on(\"goaway\", destroySessionCb);\n session.on(\"error\", destroySessionCb);\n session.on(\"frameError\", destroySessionCb);\n session.on(\"close\", () => this.deleteSession(url, session));\n if (connectionConfiguration.requestTimeout) {\n session.setTimeout(connectionConfiguration.requestTimeout, destroySessionCb);\n }\n const connectionPool = this.sessionCache.get(url) || new NodeHttp2ConnectionPool();\n connectionPool.offerLast(session);\n this.sessionCache.set(url, connectionPool);\n return session;\n }\n /**\n * Delete a session from the connection pool.\n * @param authority The authority of the session to delete.\n * @param session The session to delete.\n */\n deleteSession(authority, session) {\n const existingConnectionPool = this.sessionCache.get(authority);\n if (!existingConnectionPool) {\n return;\n }\n if (!existingConnectionPool.contains(session)) {\n return;\n }\n existingConnectionPool.remove(session);\n this.sessionCache.set(authority, existingConnectionPool);\n }\n release(requestContext, session) {\n const cacheKey = this.getUrlString(requestContext);\n this.sessionCache.get(cacheKey)?.offerLast(session);\n }\n destroy() {\n for (const [key, connectionPool] of this.sessionCache) {\n for (const session of connectionPool) {\n if (!session.destroyed) {\n session.destroy();\n }\n connectionPool.remove(session);\n }\n this.sessionCache.delete(key);\n }\n }\n setMaxConcurrentStreams(maxConcurrentStreams) {\n if (maxConcurrentStreams && maxConcurrentStreams <= 0) {\n throw new RangeError(\"maxConcurrentStreams must be greater than zero.\");\n }\n this.config.maxConcurrency = maxConcurrentStreams;\n }\n setDisableConcurrentStreams(disableConcurrentStreams) {\n this.config.disableConcurrency = disableConcurrentStreams;\n }\n getUrlString(request) {\n return request.destination.toString();\n }\n};\n\n// src/node-http2-handler.ts\nvar NodeHttp2Handler = class _NodeHttp2Handler {\n constructor(options) {\n this.metadata = { handlerProtocol: \"h2\" };\n this.connectionManager = new NodeHttp2ConnectionManager({});\n this.configProvider = new Promise((resolve, reject) => {\n if (typeof options === \"function\") {\n options().then((opts) => {\n resolve(opts || {});\n }).catch(reject);\n } else {\n resolve(options || {});\n }\n });\n }\n static {\n __name(this, \"NodeHttp2Handler\");\n }\n /**\n * @returns the input if it is an HttpHandler of any class,\n * or instantiates a new instance of this handler.\n */\n static create(instanceOrOptions) {\n if (typeof instanceOrOptions?.handle === \"function\") {\n return instanceOrOptions;\n }\n return new _NodeHttp2Handler(instanceOrOptions);\n }\n destroy() {\n this.connectionManager.destroy();\n }\n async handle(request, { abortSignal } = {}) {\n if (!this.config) {\n this.config = await this.configProvider;\n this.connectionManager.setDisableConcurrentStreams(this.config.disableConcurrentStreams || false);\n if (this.config.maxConcurrentStreams) {\n this.connectionManager.setMaxConcurrentStreams(this.config.maxConcurrentStreams);\n }\n }\n const { requestTimeout, disableConcurrentStreams } = this.config;\n return new Promise((_resolve, _reject) => {\n let fulfilled = false;\n let writeRequestBodyPromise = void 0;\n const resolve = /* @__PURE__ */ __name(async (arg) => {\n await writeRequestBodyPromise;\n _resolve(arg);\n }, \"resolve\");\n const reject = /* @__PURE__ */ __name(async (arg) => {\n await writeRequestBodyPromise;\n _reject(arg);\n }, \"reject\");\n if (abortSignal?.aborted) {\n fulfilled = true;\n const abortError = new Error(\"Request aborted\");\n abortError.name = \"AbortError\";\n reject(abortError);\n return;\n }\n const { hostname, method, port, protocol, query } = request;\n let auth = \"\";\n if (request.username != null || request.password != null) {\n const username = request.username ?? \"\";\n const password = request.password ?? \"\";\n auth = `${username}:${password}@`;\n }\n const authority = `${protocol}//${auth}${hostname}${port ? `:${port}` : \"\"}`;\n const requestContext = { destination: new URL(authority) };\n const session = this.connectionManager.lease(requestContext, {\n requestTimeout: this.config?.sessionTimeout,\n disableConcurrentStreams: disableConcurrentStreams || false\n });\n const rejectWithDestroy = /* @__PURE__ */ __name((err) => {\n if (disableConcurrentStreams) {\n this.destroySession(session);\n }\n fulfilled = true;\n reject(err);\n }, \"rejectWithDestroy\");\n const queryString = (0, import_querystring_builder.buildQueryString)(query || {});\n let path = request.path;\n if (queryString) {\n path += `?${queryString}`;\n }\n if (request.fragment) {\n path += `#${request.fragment}`;\n }\n const req = session.request({\n ...request.headers,\n [import_http22.constants.HTTP2_HEADER_PATH]: path,\n [import_http22.constants.HTTP2_HEADER_METHOD]: method\n });\n session.ref();\n req.on(\"response\", (headers) => {\n const httpResponse = new import_protocol_http.HttpResponse({\n statusCode: headers[\":status\"] || -1,\n headers: getTransformedHeaders(headers),\n body: req\n });\n fulfilled = true;\n resolve({ response: httpResponse });\n if (disableConcurrentStreams) {\n session.close();\n this.connectionManager.deleteSession(authority, session);\n }\n });\n if (requestTimeout) {\n req.setTimeout(requestTimeout, () => {\n req.close();\n const timeoutError = new Error(`Stream timed out because of no activity for ${requestTimeout} ms`);\n timeoutError.name = \"TimeoutError\";\n rejectWithDestroy(timeoutError);\n });\n }\n if (abortSignal) {\n const onAbort = /* @__PURE__ */ __name(() => {\n req.close();\n const abortError = new Error(\"Request aborted\");\n abortError.name = \"AbortError\";\n rejectWithDestroy(abortError);\n }, \"onAbort\");\n if (typeof abortSignal.addEventListener === \"function\") {\n const signal = abortSignal;\n signal.addEventListener(\"abort\", onAbort, { once: true });\n req.once(\"close\", () => signal.removeEventListener(\"abort\", onAbort));\n } else {\n abortSignal.onabort = onAbort;\n }\n }\n req.on(\"frameError\", (type, code, id) => {\n rejectWithDestroy(new Error(`Frame type id ${type} in stream id ${id} has failed with code ${code}.`));\n });\n req.on(\"error\", rejectWithDestroy);\n req.on(\"aborted\", () => {\n rejectWithDestroy(\n new Error(`HTTP/2 stream is abnormally aborted in mid-communication with result code ${req.rstCode}.`)\n );\n });\n req.on(\"close\", () => {\n session.unref();\n if (disableConcurrentStreams) {\n session.destroy();\n }\n if (!fulfilled) {\n rejectWithDestroy(new Error(\"Unexpected error: http2 request did not get a response\"));\n }\n });\n writeRequestBodyPromise = writeRequestBody(req, request, requestTimeout);\n });\n }\n updateHttpClientConfig(key, value) {\n this.config = void 0;\n this.configProvider = this.configProvider.then((config) => {\n return {\n ...config,\n [key]: value\n };\n });\n }\n httpHandlerConfigs() {\n return this.config ?? {};\n }\n /**\n * Destroys a session.\n * @param session - the session to destroy.\n */\n destroySession(session) {\n if (!session.destroyed) {\n session.destroy();\n }\n }\n};\n\n// src/stream-collector/collector.ts\n\nvar Collector = class extends import_stream.Writable {\n constructor() {\n super(...arguments);\n this.bufferedBytes = [];\n }\n static {\n __name(this, \"Collector\");\n }\n _write(chunk, encoding, callback) {\n this.bufferedBytes.push(chunk);\n callback();\n }\n};\n\n// src/stream-collector/index.ts\nvar streamCollector = /* @__PURE__ */ __name((stream) => {\n if (isReadableStreamInstance(stream)) {\n return collectReadableStream(stream);\n }\n return new Promise((resolve, reject) => {\n const collector = new Collector();\n stream.pipe(collector);\n stream.on(\"error\", (err) => {\n collector.end();\n reject(err);\n });\n collector.on(\"error\", reject);\n collector.on(\"finish\", function() {\n const bytes = new Uint8Array(Buffer.concat(this.bufferedBytes));\n resolve(bytes);\n });\n });\n}, \"streamCollector\");\nvar isReadableStreamInstance = /* @__PURE__ */ __name((stream) => typeof ReadableStream === \"function\" && stream instanceof ReadableStream, \"isReadableStreamInstance\");\nasync function collectReadableStream(stream) {\n const chunks = [];\n const reader = stream.getReader();\n let isDone = false;\n let length = 0;\n while (!isDone) {\n const { done, value } = await reader.read();\n if (value) {\n chunks.push(value);\n length += value.length;\n }\n isDone = done;\n }\n const collected = new Uint8Array(length);\n let offset = 0;\n for (const chunk of chunks) {\n collected.set(chunk, offset);\n offset += chunk.length;\n }\n return collected;\n}\n__name(collectReadableStream, \"collectReadableStream\");\n// Annotate the CommonJS export names for ESM import in node:\n\n0 && (module.exports = {\n DEFAULT_REQUEST_TIMEOUT,\n NodeHttpHandler,\n NodeHttp2Handler,\n streamCollector\n});\n\n","var __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __name = (target, value) => __defProp(target, \"name\", { value, configurable: true });\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n};\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\n\n// src/index.ts\nvar src_exports = {};\n__export(src_exports, {\n CredentialsProviderError: () => CredentialsProviderError,\n ProviderError: () => ProviderError,\n TokenProviderError: () => TokenProviderError,\n chain: () => chain,\n fromStatic: () => fromStatic,\n memoize: () => memoize\n});\nmodule.exports = __toCommonJS(src_exports);\n\n// src/ProviderError.ts\nvar ProviderError = class _ProviderError extends Error {\n constructor(message, options = true) {\n let logger;\n let tryNextLink = true;\n if (typeof options === \"boolean\") {\n logger = void 0;\n tryNextLink = options;\n } else if (options != null && typeof options === \"object\") {\n logger = options.logger;\n tryNextLink = options.tryNextLink ?? true;\n }\n super(message);\n this.name = \"ProviderError\";\n this.tryNextLink = tryNextLink;\n Object.setPrototypeOf(this, _ProviderError.prototype);\n logger?.debug?.(`@smithy/property-provider ${tryNextLink ? \"->\" : \"(!)\"} ${message}`);\n }\n static {\n __name(this, \"ProviderError\");\n }\n /**\n * @deprecated use new operator.\n */\n static from(error, options = true) {\n return Object.assign(new this(error.message, options), error);\n }\n};\n\n// src/CredentialsProviderError.ts\nvar CredentialsProviderError = class _CredentialsProviderError extends ProviderError {\n /**\n * @override\n */\n constructor(message, options = true) {\n super(message, options);\n this.name = \"CredentialsProviderError\";\n Object.setPrototypeOf(this, _CredentialsProviderError.prototype);\n }\n static {\n __name(this, \"CredentialsProviderError\");\n }\n};\n\n// src/TokenProviderError.ts\nvar TokenProviderError = class _TokenProviderError extends ProviderError {\n /**\n * @override\n */\n constructor(message, options = true) {\n super(message, options);\n this.name = \"TokenProviderError\";\n Object.setPrototypeOf(this, _TokenProviderError.prototype);\n }\n static {\n __name(this, \"TokenProviderError\");\n }\n};\n\n// src/chain.ts\nvar chain = /* @__PURE__ */ __name((...providers) => async () => {\n if (providers.length === 0) {\n throw new ProviderError(\"No providers in chain\");\n }\n let lastProviderError;\n for (const provider of providers) {\n try {\n const credentials = await provider();\n return credentials;\n } catch (err) {\n lastProviderError = err;\n if (err?.tryNextLink) {\n continue;\n }\n throw err;\n }\n }\n throw lastProviderError;\n}, \"chain\");\n\n// src/fromStatic.ts\nvar fromStatic = /* @__PURE__ */ __name((staticValue) => () => Promise.resolve(staticValue), \"fromStatic\");\n\n// src/memoize.ts\nvar memoize = /* @__PURE__ */ __name((provider, isExpired, requiresRefresh) => {\n let resolved;\n let pending;\n let hasResult;\n let isConstant = false;\n const coalesceProvider = /* @__PURE__ */ __name(async () => {\n if (!pending) {\n pending = provider();\n }\n try {\n resolved = await pending;\n hasResult = true;\n isConstant = false;\n } finally {\n pending = void 0;\n }\n return resolved;\n }, \"coalesceProvider\");\n if (isExpired === void 0) {\n return async (options) => {\n if (!hasResult || options?.forceRefresh) {\n resolved = await coalesceProvider();\n }\n return resolved;\n };\n }\n return async (options) => {\n if (!hasResult || options?.forceRefresh) {\n resolved = await coalesceProvider();\n }\n if (isConstant) {\n return resolved;\n }\n if (requiresRefresh && !requiresRefresh(resolved)) {\n isConstant = true;\n return resolved;\n }\n if (isExpired(resolved)) {\n await coalesceProvider();\n return resolved;\n }\n return resolved;\n };\n}, \"memoize\");\n// Annotate the CommonJS export names for ESM import in node:\n\n0 && (module.exports = {\n CredentialsProviderError,\n ProviderError,\n TokenProviderError,\n chain,\n fromStatic,\n memoize\n});\n\n","var __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __name = (target, value) => __defProp(target, \"name\", { value, configurable: true });\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n};\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\n\n// src/index.ts\nvar src_exports = {};\n__export(src_exports, {\n Field: () => Field,\n Fields: () => Fields,\n HttpRequest: () => HttpRequest,\n HttpResponse: () => HttpResponse,\n IHttpRequest: () => import_types.HttpRequest,\n getHttpHandlerExtensionConfiguration: () => getHttpHandlerExtensionConfiguration,\n isValidHostname: () => isValidHostname,\n resolveHttpHandlerRuntimeConfig: () => resolveHttpHandlerRuntimeConfig\n});\nmodule.exports = __toCommonJS(src_exports);\n\n// src/extensions/httpExtensionConfiguration.ts\nvar getHttpHandlerExtensionConfiguration = /* @__PURE__ */ __name((runtimeConfig) => {\n let httpHandler = runtimeConfig.httpHandler;\n return {\n setHttpHandler(handler) {\n httpHandler = handler;\n },\n httpHandler() {\n return httpHandler;\n },\n updateHttpClientConfig(key, value) {\n httpHandler.updateHttpClientConfig(key, value);\n },\n httpHandlerConfigs() {\n return httpHandler.httpHandlerConfigs();\n }\n };\n}, \"getHttpHandlerExtensionConfiguration\");\nvar resolveHttpHandlerRuntimeConfig = /* @__PURE__ */ __name((httpHandlerExtensionConfiguration) => {\n return {\n httpHandler: httpHandlerExtensionConfiguration.httpHandler()\n };\n}, \"resolveHttpHandlerRuntimeConfig\");\n\n// src/Field.ts\nvar import_types = require(\"@smithy/types\");\nvar Field = class {\n static {\n __name(this, \"Field\");\n }\n constructor({ name, kind = import_types.FieldPosition.HEADER, values = [] }) {\n this.name = name;\n this.kind = kind;\n this.values = values;\n }\n /**\n * Appends a value to the field.\n *\n * @param value The value to append.\n */\n add(value) {\n this.values.push(value);\n }\n /**\n * Overwrite existing field values.\n *\n * @param values The new field values.\n */\n set(values) {\n this.values = values;\n }\n /**\n * Remove all matching entries from list.\n *\n * @param value Value to remove.\n */\n remove(value) {\n this.values = this.values.filter((v) => v !== value);\n }\n /**\n * Get comma-delimited string.\n *\n * @returns String representation of {@link Field}.\n */\n toString() {\n return this.values.map((v) => v.includes(\",\") || v.includes(\" \") ? `\"${v}\"` : v).join(\", \");\n }\n /**\n * Get string values as a list\n *\n * @returns Values in {@link Field} as a list.\n */\n get() {\n return this.values;\n }\n};\n\n// src/Fields.ts\nvar Fields = class {\n constructor({ fields = [], encoding = \"utf-8\" }) {\n this.entries = {};\n fields.forEach(this.setField.bind(this));\n this.encoding = encoding;\n }\n static {\n __name(this, \"Fields\");\n }\n /**\n * Set entry for a {@link Field} name. The `name`\n * attribute will be used to key the collection.\n *\n * @param field The {@link Field} to set.\n */\n setField(field) {\n this.entries[field.name.toLowerCase()] = field;\n }\n /**\n * Retrieve {@link Field} entry by name.\n *\n * @param name The name of the {@link Field} entry\n * to retrieve\n * @returns The {@link Field} if it exists.\n */\n getField(name) {\n return this.entries[name.toLowerCase()];\n }\n /**\n * Delete entry from collection.\n *\n * @param name Name of the entry to delete.\n */\n removeField(name) {\n delete this.entries[name.toLowerCase()];\n }\n /**\n * Helper function for retrieving specific types of fields.\n * Used to grab all headers or all trailers.\n *\n * @param kind {@link FieldPosition} of entries to retrieve.\n * @returns The {@link Field} entries with the specified\n * {@link FieldPosition}.\n */\n getByType(kind) {\n return Object.values(this.entries).filter((field) => field.kind === kind);\n }\n};\n\n// src/httpRequest.ts\n\nvar HttpRequest = class _HttpRequest {\n static {\n __name(this, \"HttpRequest\");\n }\n constructor(options) {\n this.method = options.method || \"GET\";\n this.hostname = options.hostname || \"localhost\";\n this.port = options.port;\n this.query = options.query || {};\n this.headers = options.headers || {};\n this.body = options.body;\n this.protocol = options.protocol ? options.protocol.slice(-1) !== \":\" ? `${options.protocol}:` : options.protocol : \"https:\";\n this.path = options.path ? options.path.charAt(0) !== \"/\" ? `/${options.path}` : options.path : \"/\";\n this.username = options.username;\n this.password = options.password;\n this.fragment = options.fragment;\n }\n /**\n * Note: this does not deep-clone the body.\n */\n static clone(request) {\n const cloned = new _HttpRequest({\n ...request,\n headers: { ...request.headers }\n });\n if (cloned.query) {\n cloned.query = cloneQuery(cloned.query);\n }\n return cloned;\n }\n /**\n * This method only actually asserts that request is the interface {@link IHttpRequest},\n * and not necessarily this concrete class. Left in place for API stability.\n *\n * Do not call instance methods on the input of this function, and\n * do not assume it has the HttpRequest prototype.\n */\n static isInstance(request) {\n if (!request) {\n return false;\n }\n const req = request;\n return \"method\" in req && \"protocol\" in req && \"hostname\" in req && \"path\" in req && typeof req[\"query\"] === \"object\" && typeof req[\"headers\"] === \"object\";\n }\n /**\n * @deprecated use static HttpRequest.clone(request) instead. It's not safe to call\n * this method because {@link HttpRequest.isInstance} incorrectly\n * asserts that IHttpRequest (interface) objects are of type HttpRequest (class).\n */\n clone() {\n return _HttpRequest.clone(this);\n }\n};\nfunction cloneQuery(query) {\n return Object.keys(query).reduce((carry, paramName) => {\n const param = query[paramName];\n return {\n ...carry,\n [paramName]: Array.isArray(param) ? [...param] : param\n };\n }, {});\n}\n__name(cloneQuery, \"cloneQuery\");\n\n// src/httpResponse.ts\nvar HttpResponse = class {\n static {\n __name(this, \"HttpResponse\");\n }\n constructor(options) {\n this.statusCode = options.statusCode;\n this.reason = options.reason;\n this.headers = options.headers || {};\n this.body = options.body;\n }\n static isInstance(response) {\n if (!response)\n return false;\n const resp = response;\n return typeof resp.statusCode === \"number\" && typeof resp.headers === \"object\";\n }\n};\n\n// src/isValidHostname.ts\nfunction isValidHostname(hostname) {\n const hostPattern = /^[a-z0-9][a-z0-9\\.\\-]*[a-z0-9]$/;\n return hostPattern.test(hostname);\n}\n__name(isValidHostname, \"isValidHostname\");\n// Annotate the CommonJS export names for ESM import in node:\n\n0 && (module.exports = {\n getHttpHandlerExtensionConfiguration,\n resolveHttpHandlerRuntimeConfig,\n Field,\n Fields,\n HttpRequest,\n HttpResponse,\n isValidHostname\n});\n\n","var __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __name = (target, value) => __defProp(target, \"name\", { value, configurable: true });\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n};\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\n\n// src/index.ts\nvar src_exports = {};\n__export(src_exports, {\n buildQueryString: () => buildQueryString\n});\nmodule.exports = __toCommonJS(src_exports);\nvar import_util_uri_escape = require(\"@smithy/util-uri-escape\");\nfunction buildQueryString(query) {\n const parts = [];\n for (let key of Object.keys(query).sort()) {\n const value = query[key];\n key = (0, import_util_uri_escape.escapeUri)(key);\n if (Array.isArray(value)) {\n for (let i = 0, iLen = value.length; i < iLen; i++) {\n parts.push(`${key}=${(0, import_util_uri_escape.escapeUri)(value[i])}`);\n }\n } else {\n let qsEntry = key;\n if (value || typeof value === \"string\") {\n qsEntry += `=${(0, import_util_uri_escape.escapeUri)(value)}`;\n }\n parts.push(qsEntry);\n }\n }\n return parts.join(\"&\");\n}\n__name(buildQueryString, \"buildQueryString\");\n// Annotate the CommonJS export names for ESM import in node:\n\n0 && (module.exports = {\n buildQueryString\n});\n\n","var __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __name = (target, value) => __defProp(target, \"name\", { value, configurable: true });\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n};\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\n\n// src/index.ts\nvar src_exports = {};\n__export(src_exports, {\n parseQueryString: () => parseQueryString\n});\nmodule.exports = __toCommonJS(src_exports);\nfunction parseQueryString(querystring) {\n const query = {};\n querystring = querystring.replace(/^\\?/, \"\");\n if (querystring) {\n for (const pair of querystring.split(\"&\")) {\n let [key, value = null] = pair.split(\"=\");\n key = decodeURIComponent(key);\n if (value) {\n value = decodeURIComponent(value);\n }\n if (!(key in query)) {\n query[key] = value;\n } else if (Array.isArray(query[key])) {\n query[key].push(value);\n } else {\n query[key] = [query[key], value];\n }\n }\n }\n return query;\n}\n__name(parseQueryString, \"parseQueryString\");\n// Annotate the CommonJS export names for ESM import in node:\n\n0 && (module.exports = {\n parseQueryString\n});\n\n","var __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __name = (target, value) => __defProp(target, \"name\", { value, configurable: true });\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n};\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\n\n// src/index.ts\nvar src_exports = {};\n__export(src_exports, {\n isClockSkewCorrectedError: () => isClockSkewCorrectedError,\n isClockSkewError: () => isClockSkewError,\n isRetryableByTrait: () => isRetryableByTrait,\n isServerError: () => isServerError,\n isThrottlingError: () => isThrottlingError,\n isTransientError: () => isTransientError\n});\nmodule.exports = __toCommonJS(src_exports);\n\n// src/constants.ts\nvar CLOCK_SKEW_ERROR_CODES = [\n \"AuthFailure\",\n \"InvalidSignatureException\",\n \"RequestExpired\",\n \"RequestInTheFuture\",\n \"RequestTimeTooSkewed\",\n \"SignatureDoesNotMatch\"\n];\nvar THROTTLING_ERROR_CODES = [\n \"BandwidthLimitExceeded\",\n \"EC2ThrottledException\",\n \"LimitExceededException\",\n \"PriorRequestNotComplete\",\n \"ProvisionedThroughputExceededException\",\n \"RequestLimitExceeded\",\n \"RequestThrottled\",\n \"RequestThrottledException\",\n \"SlowDown\",\n \"ThrottledException\",\n \"Throttling\",\n \"ThrottlingException\",\n \"TooManyRequestsException\",\n \"TransactionInProgressException\"\n // DynamoDB\n];\nvar TRANSIENT_ERROR_CODES = [\"TimeoutError\", \"RequestTimeout\", \"RequestTimeoutException\"];\nvar TRANSIENT_ERROR_STATUS_CODES = [500, 502, 503, 504];\nvar NODEJS_TIMEOUT_ERROR_CODES = [\"ECONNRESET\", \"ECONNREFUSED\", \"EPIPE\", \"ETIMEDOUT\"];\n\n// src/index.ts\nvar isRetryableByTrait = /* @__PURE__ */ __name((error) => error.$retryable !== void 0, \"isRetryableByTrait\");\nvar isClockSkewError = /* @__PURE__ */ __name((error) => CLOCK_SKEW_ERROR_CODES.includes(error.name), \"isClockSkewError\");\nvar isClockSkewCorrectedError = /* @__PURE__ */ __name((error) => error.$metadata?.clockSkewCorrected, \"isClockSkewCorrectedError\");\nvar isThrottlingError = /* @__PURE__ */ __name((error) => error.$metadata?.httpStatusCode === 429 || THROTTLING_ERROR_CODES.includes(error.name) || error.$retryable?.throttling == true, \"isThrottlingError\");\nvar isTransientError = /* @__PURE__ */ __name((error, depth = 0) => isClockSkewCorrectedError(error) || TRANSIENT_ERROR_CODES.includes(error.name) || NODEJS_TIMEOUT_ERROR_CODES.includes(error?.code || \"\") || TRANSIENT_ERROR_STATUS_CODES.includes(error.$metadata?.httpStatusCode || 0) || error.cause !== void 0 && depth <= 10 && isTransientError(error.cause, depth + 1), \"isTransientError\");\nvar isServerError = /* @__PURE__ */ __name((error) => {\n if (error.$metadata?.httpStatusCode !== void 0) {\n const statusCode = error.$metadata.httpStatusCode;\n if (500 <= statusCode && statusCode <= 599 && !isTransientError(error)) {\n return true;\n }\n return false;\n }\n return false;\n}, \"isServerError\");\n// Annotate the CommonJS export names for ESM import in node:\n\n0 && (module.exports = {\n isRetryableByTrait,\n isClockSkewError,\n isClockSkewCorrectedError,\n isThrottlingError,\n isTransientError,\n isServerError\n});\n\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.getHomeDir = void 0;\nconst os_1 = require(\"os\");\nconst path_1 = require(\"path\");\nconst homeDirCache = {};\nconst getHomeDirCacheKey = () => {\n if (process && process.geteuid) {\n return `${process.geteuid()}`;\n }\n return \"DEFAULT\";\n};\nconst getHomeDir = () => {\n const { HOME, USERPROFILE, HOMEPATH, HOMEDRIVE = `C:${path_1.sep}` } = process.env;\n if (HOME)\n return HOME;\n if (USERPROFILE)\n return USERPROFILE;\n if (HOMEPATH)\n return `${HOMEDRIVE}${HOMEPATH}`;\n const homeDirCacheKey = getHomeDirCacheKey();\n if (!homeDirCache[homeDirCacheKey])\n homeDirCache[homeDirCacheKey] = (0, os_1.homedir)();\n return homeDirCache[homeDirCacheKey];\n};\nexports.getHomeDir = getHomeDir;\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.getSSOTokenFilepath = void 0;\nconst crypto_1 = require(\"crypto\");\nconst path_1 = require(\"path\");\nconst getHomeDir_1 = require(\"./getHomeDir\");\nconst getSSOTokenFilepath = (id) => {\n const hasher = (0, crypto_1.createHash)(\"sha1\");\n const cacheName = hasher.update(id).digest(\"hex\");\n return (0, path_1.join)((0, getHomeDir_1.getHomeDir)(), \".aws\", \"sso\", \"cache\", `${cacheName}.json`);\n};\nexports.getSSOTokenFilepath = getSSOTokenFilepath;\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.getSSOTokenFromFile = void 0;\nconst fs_1 = require(\"fs\");\nconst getSSOTokenFilepath_1 = require(\"./getSSOTokenFilepath\");\nconst { readFile } = fs_1.promises;\nconst getSSOTokenFromFile = async (id) => {\n const ssoTokenFilepath = (0, getSSOTokenFilepath_1.getSSOTokenFilepath)(id);\n const ssoTokenText = await readFile(ssoTokenFilepath, \"utf8\");\n return JSON.parse(ssoTokenText);\n};\nexports.getSSOTokenFromFile = getSSOTokenFromFile;\n","var __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __name = (target, value) => __defProp(target, \"name\", { value, configurable: true });\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n};\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, \"default\"), secondTarget && __copyProps(secondTarget, mod, \"default\"));\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\n\n// src/index.ts\nvar src_exports = {};\n__export(src_exports, {\n CONFIG_PREFIX_SEPARATOR: () => CONFIG_PREFIX_SEPARATOR,\n DEFAULT_PROFILE: () => DEFAULT_PROFILE,\n ENV_PROFILE: () => ENV_PROFILE,\n getProfileName: () => getProfileName,\n loadSharedConfigFiles: () => loadSharedConfigFiles,\n loadSsoSessionData: () => loadSsoSessionData,\n parseKnownFiles: () => parseKnownFiles\n});\nmodule.exports = __toCommonJS(src_exports);\n__reExport(src_exports, require(\"././getHomeDir\"), module.exports);\n\n// src/getProfileName.ts\nvar ENV_PROFILE = \"AWS_PROFILE\";\nvar DEFAULT_PROFILE = \"default\";\nvar getProfileName = /* @__PURE__ */ __name((init) => init.profile || process.env[ENV_PROFILE] || DEFAULT_PROFILE, \"getProfileName\");\n\n// src/index.ts\n__reExport(src_exports, require(\"././getSSOTokenFilepath\"), module.exports);\n__reExport(src_exports, require(\"././getSSOTokenFromFile\"), module.exports);\n\n// src/loadSharedConfigFiles.ts\n\n\n// src/getConfigData.ts\nvar import_types = require(\"@smithy/types\");\nvar getConfigData = /* @__PURE__ */ __name((data) => Object.entries(data).filter(([key]) => {\n const indexOfSeparator = key.indexOf(CONFIG_PREFIX_SEPARATOR);\n if (indexOfSeparator === -1) {\n return false;\n }\n return Object.values(import_types.IniSectionType).includes(key.substring(0, indexOfSeparator));\n}).reduce(\n (acc, [key, value]) => {\n const indexOfSeparator = key.indexOf(CONFIG_PREFIX_SEPARATOR);\n const updatedKey = key.substring(0, indexOfSeparator) === import_types.IniSectionType.PROFILE ? key.substring(indexOfSeparator + 1) : key;\n acc[updatedKey] = value;\n return acc;\n },\n {\n // Populate default profile, if present.\n ...data.default && { default: data.default }\n }\n), \"getConfigData\");\n\n// src/getConfigFilepath.ts\nvar import_path = require(\"path\");\nvar import_getHomeDir = require(\"././getHomeDir\");\nvar ENV_CONFIG_PATH = \"AWS_CONFIG_FILE\";\nvar getConfigFilepath = /* @__PURE__ */ __name(() => process.env[ENV_CONFIG_PATH] || (0, import_path.join)((0, import_getHomeDir.getHomeDir)(), \".aws\", \"config\"), \"getConfigFilepath\");\n\n// src/getCredentialsFilepath.ts\n\nvar import_getHomeDir2 = require(\"././getHomeDir\");\nvar ENV_CREDENTIALS_PATH = \"AWS_SHARED_CREDENTIALS_FILE\";\nvar getCredentialsFilepath = /* @__PURE__ */ __name(() => process.env[ENV_CREDENTIALS_PATH] || (0, import_path.join)((0, import_getHomeDir2.getHomeDir)(), \".aws\", \"credentials\"), \"getCredentialsFilepath\");\n\n// src/loadSharedConfigFiles.ts\nvar import_getHomeDir3 = require(\"././getHomeDir\");\n\n// src/parseIni.ts\n\nvar prefixKeyRegex = /^([\\w-]+)\\s([\"'])?([\\w-@\\+\\.%:/]+)\\2$/;\nvar profileNameBlockList = [\"__proto__\", \"profile __proto__\"];\nvar parseIni = /* @__PURE__ */ __name((iniData) => {\n const map = {};\n let currentSection;\n let currentSubSection;\n for (const iniLine of iniData.split(/\\r?\\n/)) {\n const trimmedLine = iniLine.split(/(^|\\s)[;#]/)[0].trim();\n const isSection = trimmedLine[0] === \"[\" && trimmedLine[trimmedLine.length - 1] === \"]\";\n if (isSection) {\n currentSection = void 0;\n currentSubSection = void 0;\n const sectionName = trimmedLine.substring(1, trimmedLine.length - 1);\n const matches = prefixKeyRegex.exec(sectionName);\n if (matches) {\n const [, prefix, , name] = matches;\n if (Object.values(import_types.IniSectionType).includes(prefix)) {\n currentSection = [prefix, name].join(CONFIG_PREFIX_SEPARATOR);\n }\n } else {\n currentSection = sectionName;\n }\n if (profileNameBlockList.includes(sectionName)) {\n throw new Error(`Found invalid profile name \"${sectionName}\"`);\n }\n } else if (currentSection) {\n const indexOfEqualsSign = trimmedLine.indexOf(\"=\");\n if (![0, -1].includes(indexOfEqualsSign)) {\n const [name, value] = [\n trimmedLine.substring(0, indexOfEqualsSign).trim(),\n trimmedLine.substring(indexOfEqualsSign + 1).trim()\n ];\n if (value === \"\") {\n currentSubSection = name;\n } else {\n if (currentSubSection && iniLine.trimStart() === iniLine) {\n currentSubSection = void 0;\n }\n map[currentSection] = map[currentSection] || {};\n const key = currentSubSection ? [currentSubSection, name].join(CONFIG_PREFIX_SEPARATOR) : name;\n map[currentSection][key] = value;\n }\n }\n }\n }\n return map;\n}, \"parseIni\");\n\n// src/loadSharedConfigFiles.ts\nvar import_slurpFile = require(\"././slurpFile\");\nvar swallowError = /* @__PURE__ */ __name(() => ({}), \"swallowError\");\nvar CONFIG_PREFIX_SEPARATOR = \".\";\nvar loadSharedConfigFiles = /* @__PURE__ */ __name(async (init = {}) => {\n const { filepath = getCredentialsFilepath(), configFilepath = getConfigFilepath() } = init;\n const homeDir = (0, import_getHomeDir3.getHomeDir)();\n const relativeHomeDirPrefix = \"~/\";\n let resolvedFilepath = filepath;\n if (filepath.startsWith(relativeHomeDirPrefix)) {\n resolvedFilepath = (0, import_path.join)(homeDir, filepath.slice(2));\n }\n let resolvedConfigFilepath = configFilepath;\n if (configFilepath.startsWith(relativeHomeDirPrefix)) {\n resolvedConfigFilepath = (0, import_path.join)(homeDir, configFilepath.slice(2));\n }\n const parsedFiles = await Promise.all([\n (0, import_slurpFile.slurpFile)(resolvedConfigFilepath, {\n ignoreCache: init.ignoreCache\n }).then(parseIni).then(getConfigData).catch(swallowError),\n (0, import_slurpFile.slurpFile)(resolvedFilepath, {\n ignoreCache: init.ignoreCache\n }).then(parseIni).catch(swallowError)\n ]);\n return {\n configFile: parsedFiles[0],\n credentialsFile: parsedFiles[1]\n };\n}, \"loadSharedConfigFiles\");\n\n// src/getSsoSessionData.ts\n\nvar getSsoSessionData = /* @__PURE__ */ __name((data) => Object.entries(data).filter(([key]) => key.startsWith(import_types.IniSectionType.SSO_SESSION + CONFIG_PREFIX_SEPARATOR)).reduce((acc, [key, value]) => ({ ...acc, [key.substring(key.indexOf(CONFIG_PREFIX_SEPARATOR) + 1)]: value }), {}), \"getSsoSessionData\");\n\n// src/loadSsoSessionData.ts\nvar import_slurpFile2 = require(\"././slurpFile\");\nvar swallowError2 = /* @__PURE__ */ __name(() => ({}), \"swallowError\");\nvar loadSsoSessionData = /* @__PURE__ */ __name(async (init = {}) => (0, import_slurpFile2.slurpFile)(init.configFilepath ?? getConfigFilepath()).then(parseIni).then(getSsoSessionData).catch(swallowError2), \"loadSsoSessionData\");\n\n// src/mergeConfigFiles.ts\nvar mergeConfigFiles = /* @__PURE__ */ __name((...files) => {\n const merged = {};\n for (const file of files) {\n for (const [key, values] of Object.entries(file)) {\n if (merged[key] !== void 0) {\n Object.assign(merged[key], values);\n } else {\n merged[key] = values;\n }\n }\n }\n return merged;\n}, \"mergeConfigFiles\");\n\n// src/parseKnownFiles.ts\nvar parseKnownFiles = /* @__PURE__ */ __name(async (init) => {\n const parsedFiles = await loadSharedConfigFiles(init);\n return mergeConfigFiles(parsedFiles.configFile, parsedFiles.credentialsFile);\n}, \"parseKnownFiles\");\n// Annotate the CommonJS export names for ESM import in node:\n\n0 && (module.exports = {\n getHomeDir,\n ENV_PROFILE,\n DEFAULT_PROFILE,\n getProfileName,\n getSSOTokenFilepath,\n getSSOTokenFromFile,\n CONFIG_PREFIX_SEPARATOR,\n loadSharedConfigFiles,\n loadSsoSessionData,\n parseKnownFiles\n});\n\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.slurpFile = void 0;\nconst fs_1 = require(\"fs\");\nconst { readFile } = fs_1.promises;\nconst filePromisesHash = {};\nconst slurpFile = (path, options) => {\n if (!filePromisesHash[path] || (options === null || options === void 0 ? void 0 : options.ignoreCache)) {\n filePromisesHash[path] = readFile(path, \"utf8\");\n }\n return filePromisesHash[path];\n};\nexports.slurpFile = slurpFile;\n","var __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __name = (target, value) => __defProp(target, \"name\", { value, configurable: true });\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n};\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\n\n// src/index.ts\nvar src_exports = {};\n__export(src_exports, {\n SignatureV4: () => SignatureV4,\n clearCredentialCache: () => clearCredentialCache,\n createScope: () => createScope,\n getCanonicalHeaders: () => getCanonicalHeaders,\n getCanonicalQuery: () => getCanonicalQuery,\n getPayloadHash: () => getPayloadHash,\n getSigningKey: () => getSigningKey,\n moveHeadersToQuery: () => moveHeadersToQuery,\n prepareRequest: () => prepareRequest\n});\nmodule.exports = __toCommonJS(src_exports);\n\n// src/SignatureV4.ts\n\nvar import_util_middleware = require(\"@smithy/util-middleware\");\n\nvar import_util_utf84 = require(\"@smithy/util-utf8\");\n\n// src/constants.ts\nvar ALGORITHM_QUERY_PARAM = \"X-Amz-Algorithm\";\nvar CREDENTIAL_QUERY_PARAM = \"X-Amz-Credential\";\nvar AMZ_DATE_QUERY_PARAM = \"X-Amz-Date\";\nvar SIGNED_HEADERS_QUERY_PARAM = \"X-Amz-SignedHeaders\";\nvar EXPIRES_QUERY_PARAM = \"X-Amz-Expires\";\nvar SIGNATURE_QUERY_PARAM = \"X-Amz-Signature\";\nvar TOKEN_QUERY_PARAM = \"X-Amz-Security-Token\";\nvar AUTH_HEADER = \"authorization\";\nvar AMZ_DATE_HEADER = AMZ_DATE_QUERY_PARAM.toLowerCase();\nvar DATE_HEADER = \"date\";\nvar GENERATED_HEADERS = [AUTH_HEADER, AMZ_DATE_HEADER, DATE_HEADER];\nvar SIGNATURE_HEADER = SIGNATURE_QUERY_PARAM.toLowerCase();\nvar SHA256_HEADER = \"x-amz-content-sha256\";\nvar TOKEN_HEADER = TOKEN_QUERY_PARAM.toLowerCase();\nvar ALWAYS_UNSIGNABLE_HEADERS = {\n authorization: true,\n \"cache-control\": true,\n connection: true,\n expect: true,\n from: true,\n \"keep-alive\": true,\n \"max-forwards\": true,\n pragma: true,\n referer: true,\n te: true,\n trailer: true,\n \"transfer-encoding\": true,\n upgrade: true,\n \"user-agent\": true,\n \"x-amzn-trace-id\": true\n};\nvar PROXY_HEADER_PATTERN = /^proxy-/;\nvar SEC_HEADER_PATTERN = /^sec-/;\nvar ALGORITHM_IDENTIFIER = \"AWS4-HMAC-SHA256\";\nvar EVENT_ALGORITHM_IDENTIFIER = \"AWS4-HMAC-SHA256-PAYLOAD\";\nvar UNSIGNED_PAYLOAD = \"UNSIGNED-PAYLOAD\";\nvar MAX_CACHE_SIZE = 50;\nvar KEY_TYPE_IDENTIFIER = \"aws4_request\";\nvar MAX_PRESIGNED_TTL = 60 * 60 * 24 * 7;\n\n// src/credentialDerivation.ts\nvar import_util_hex_encoding = require(\"@smithy/util-hex-encoding\");\nvar import_util_utf8 = require(\"@smithy/util-utf8\");\nvar signingKeyCache = {};\nvar cacheQueue = [];\nvar createScope = /* @__PURE__ */ __name((shortDate, region, service) => `${shortDate}/${region}/${service}/${KEY_TYPE_IDENTIFIER}`, \"createScope\");\nvar getSigningKey = /* @__PURE__ */ __name(async (sha256Constructor, credentials, shortDate, region, service) => {\n const credsHash = await hmac(sha256Constructor, credentials.secretAccessKey, credentials.accessKeyId);\n const cacheKey = `${shortDate}:${region}:${service}:${(0, import_util_hex_encoding.toHex)(credsHash)}:${credentials.sessionToken}`;\n if (cacheKey in signingKeyCache) {\n return signingKeyCache[cacheKey];\n }\n cacheQueue.push(cacheKey);\n while (cacheQueue.length > MAX_CACHE_SIZE) {\n delete signingKeyCache[cacheQueue.shift()];\n }\n let key = `AWS4${credentials.secretAccessKey}`;\n for (const signable of [shortDate, region, service, KEY_TYPE_IDENTIFIER]) {\n key = await hmac(sha256Constructor, key, signable);\n }\n return signingKeyCache[cacheKey] = key;\n}, \"getSigningKey\");\nvar clearCredentialCache = /* @__PURE__ */ __name(() => {\n cacheQueue.length = 0;\n Object.keys(signingKeyCache).forEach((cacheKey) => {\n delete signingKeyCache[cacheKey];\n });\n}, \"clearCredentialCache\");\nvar hmac = /* @__PURE__ */ __name((ctor, secret, data) => {\n const hash = new ctor(secret);\n hash.update((0, import_util_utf8.toUint8Array)(data));\n return hash.digest();\n}, \"hmac\");\n\n// src/getCanonicalHeaders.ts\nvar getCanonicalHeaders = /* @__PURE__ */ __name(({ headers }, unsignableHeaders, signableHeaders) => {\n const canonical = {};\n for (const headerName of Object.keys(headers).sort()) {\n if (headers[headerName] == void 0) {\n continue;\n }\n const canonicalHeaderName = headerName.toLowerCase();\n if (canonicalHeaderName in ALWAYS_UNSIGNABLE_HEADERS || unsignableHeaders?.has(canonicalHeaderName) || PROXY_HEADER_PATTERN.test(canonicalHeaderName) || SEC_HEADER_PATTERN.test(canonicalHeaderName)) {\n if (!signableHeaders || signableHeaders && !signableHeaders.has(canonicalHeaderName)) {\n continue;\n }\n }\n canonical[canonicalHeaderName] = headers[headerName].trim().replace(/\\s+/g, \" \");\n }\n return canonical;\n}, \"getCanonicalHeaders\");\n\n// src/getCanonicalQuery.ts\nvar import_util_uri_escape = require(\"@smithy/util-uri-escape\");\nvar getCanonicalQuery = /* @__PURE__ */ __name(({ query = {} }) => {\n const keys = [];\n const serialized = {};\n for (const key of Object.keys(query)) {\n if (key.toLowerCase() === SIGNATURE_HEADER) {\n continue;\n }\n const encodedKey = (0, import_util_uri_escape.escapeUri)(key);\n keys.push(encodedKey);\n const value = query[key];\n if (typeof value === \"string\") {\n serialized[encodedKey] = `${encodedKey}=${(0, import_util_uri_escape.escapeUri)(value)}`;\n } else if (Array.isArray(value)) {\n serialized[encodedKey] = value.slice(0).reduce((encoded, value2) => encoded.concat([`${encodedKey}=${(0, import_util_uri_escape.escapeUri)(value2)}`]), []).sort().join(\"&\");\n }\n }\n return keys.sort().map((key) => serialized[key]).filter((serialized2) => serialized2).join(\"&\");\n}, \"getCanonicalQuery\");\n\n// src/getPayloadHash.ts\nvar import_is_array_buffer = require(\"@smithy/is-array-buffer\");\n\nvar import_util_utf82 = require(\"@smithy/util-utf8\");\nvar getPayloadHash = /* @__PURE__ */ __name(async ({ headers, body }, hashConstructor) => {\n for (const headerName of Object.keys(headers)) {\n if (headerName.toLowerCase() === SHA256_HEADER) {\n return headers[headerName];\n }\n }\n if (body == void 0) {\n return \"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855\";\n } else if (typeof body === \"string\" || ArrayBuffer.isView(body) || (0, import_is_array_buffer.isArrayBuffer)(body)) {\n const hashCtor = new hashConstructor();\n hashCtor.update((0, import_util_utf82.toUint8Array)(body));\n return (0, import_util_hex_encoding.toHex)(await hashCtor.digest());\n }\n return UNSIGNED_PAYLOAD;\n}, \"getPayloadHash\");\n\n// src/HeaderFormatter.ts\n\nvar import_util_utf83 = require(\"@smithy/util-utf8\");\nvar HeaderFormatter = class {\n static {\n __name(this, \"HeaderFormatter\");\n }\n format(headers) {\n const chunks = [];\n for (const headerName of Object.keys(headers)) {\n const bytes = (0, import_util_utf83.fromUtf8)(headerName);\n chunks.push(Uint8Array.from([bytes.byteLength]), bytes, this.formatHeaderValue(headers[headerName]));\n }\n const out = new Uint8Array(chunks.reduce((carry, bytes) => carry + bytes.byteLength, 0));\n let position = 0;\n for (const chunk of chunks) {\n out.set(chunk, position);\n position += chunk.byteLength;\n }\n return out;\n }\n formatHeaderValue(header) {\n switch (header.type) {\n case \"boolean\":\n return Uint8Array.from([header.value ? 0 /* boolTrue */ : 1 /* boolFalse */]);\n case \"byte\":\n return Uint8Array.from([2 /* byte */, header.value]);\n case \"short\":\n const shortView = new DataView(new ArrayBuffer(3));\n shortView.setUint8(0, 3 /* short */);\n shortView.setInt16(1, header.value, false);\n return new Uint8Array(shortView.buffer);\n case \"integer\":\n const intView = new DataView(new ArrayBuffer(5));\n intView.setUint8(0, 4 /* integer */);\n intView.setInt32(1, header.value, false);\n return new Uint8Array(intView.buffer);\n case \"long\":\n const longBytes = new Uint8Array(9);\n longBytes[0] = 5 /* long */;\n longBytes.set(header.value.bytes, 1);\n return longBytes;\n case \"binary\":\n const binView = new DataView(new ArrayBuffer(3 + header.value.byteLength));\n binView.setUint8(0, 6 /* byteArray */);\n binView.setUint16(1, header.value.byteLength, false);\n const binBytes = new Uint8Array(binView.buffer);\n binBytes.set(header.value, 3);\n return binBytes;\n case \"string\":\n const utf8Bytes = (0, import_util_utf83.fromUtf8)(header.value);\n const strView = new DataView(new ArrayBuffer(3 + utf8Bytes.byteLength));\n strView.setUint8(0, 7 /* string */);\n strView.setUint16(1, utf8Bytes.byteLength, false);\n const strBytes = new Uint8Array(strView.buffer);\n strBytes.set(utf8Bytes, 3);\n return strBytes;\n case \"timestamp\":\n const tsBytes = new Uint8Array(9);\n tsBytes[0] = 8 /* timestamp */;\n tsBytes.set(Int64.fromNumber(header.value.valueOf()).bytes, 1);\n return tsBytes;\n case \"uuid\":\n if (!UUID_PATTERN.test(header.value)) {\n throw new Error(`Invalid UUID received: ${header.value}`);\n }\n const uuidBytes = new Uint8Array(17);\n uuidBytes[0] = 9 /* uuid */;\n uuidBytes.set((0, import_util_hex_encoding.fromHex)(header.value.replace(/\\-/g, \"\")), 1);\n return uuidBytes;\n }\n }\n};\nvar UUID_PATTERN = /^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$/;\nvar Int64 = class _Int64 {\n constructor(bytes) {\n this.bytes = bytes;\n if (bytes.byteLength !== 8) {\n throw new Error(\"Int64 buffers must be exactly 8 bytes\");\n }\n }\n static {\n __name(this, \"Int64\");\n }\n static fromNumber(number) {\n if (number > 9223372036854776e3 || number < -9223372036854776e3) {\n throw new Error(`${number} is too large (or, if negative, too small) to represent as an Int64`);\n }\n const bytes = new Uint8Array(8);\n for (let i = 7, remaining = Math.abs(Math.round(number)); i > -1 && remaining > 0; i--, remaining /= 256) {\n bytes[i] = remaining;\n }\n if (number < 0) {\n negate(bytes);\n }\n return new _Int64(bytes);\n }\n /**\n * Called implicitly by infix arithmetic operators.\n */\n valueOf() {\n const bytes = this.bytes.slice(0);\n const negative = bytes[0] & 128;\n if (negative) {\n negate(bytes);\n }\n return parseInt((0, import_util_hex_encoding.toHex)(bytes), 16) * (negative ? -1 : 1);\n }\n toString() {\n return String(this.valueOf());\n }\n};\nfunction negate(bytes) {\n for (let i = 0; i < 8; i++) {\n bytes[i] ^= 255;\n }\n for (let i = 7; i > -1; i--) {\n bytes[i]++;\n if (bytes[i] !== 0)\n break;\n }\n}\n__name(negate, \"negate\");\n\n// src/headerUtil.ts\nvar hasHeader = /* @__PURE__ */ __name((soughtHeader, headers) => {\n soughtHeader = soughtHeader.toLowerCase();\n for (const headerName of Object.keys(headers)) {\n if (soughtHeader === headerName.toLowerCase()) {\n return true;\n }\n }\n return false;\n}, \"hasHeader\");\n\n// src/moveHeadersToQuery.ts\nvar import_protocol_http = require(\"@smithy/protocol-http\");\nvar moveHeadersToQuery = /* @__PURE__ */ __name((request, options = {}) => {\n const { headers, query = {} } = import_protocol_http.HttpRequest.clone(request);\n for (const name of Object.keys(headers)) {\n const lname = name.toLowerCase();\n if (lname.slice(0, 6) === \"x-amz-\" && !options.unhoistableHeaders?.has(lname) || options.hoistableHeaders?.has(lname)) {\n query[name] = headers[name];\n delete headers[name];\n }\n }\n return {\n ...request,\n headers,\n query\n };\n}, \"moveHeadersToQuery\");\n\n// src/prepareRequest.ts\n\nvar prepareRequest = /* @__PURE__ */ __name((request) => {\n request = import_protocol_http.HttpRequest.clone(request);\n for (const headerName of Object.keys(request.headers)) {\n if (GENERATED_HEADERS.indexOf(headerName.toLowerCase()) > -1) {\n delete request.headers[headerName];\n }\n }\n return request;\n}, \"prepareRequest\");\n\n// src/utilDate.ts\nvar iso8601 = /* @__PURE__ */ __name((time) => toDate(time).toISOString().replace(/\\.\\d{3}Z$/, \"Z\"), \"iso8601\");\nvar toDate = /* @__PURE__ */ __name((time) => {\n if (typeof time === \"number\") {\n return new Date(time * 1e3);\n }\n if (typeof time === \"string\") {\n if (Number(time)) {\n return new Date(Number(time) * 1e3);\n }\n return new Date(time);\n }\n return time;\n}, \"toDate\");\n\n// src/SignatureV4.ts\nvar SignatureV4 = class {\n constructor({\n applyChecksum,\n credentials,\n region,\n service,\n sha256,\n uriEscapePath = true\n }) {\n this.headerFormatter = new HeaderFormatter();\n this.service = service;\n this.sha256 = sha256;\n this.uriEscapePath = uriEscapePath;\n this.applyChecksum = typeof applyChecksum === \"boolean\" ? applyChecksum : true;\n this.regionProvider = (0, import_util_middleware.normalizeProvider)(region);\n this.credentialProvider = (0, import_util_middleware.normalizeProvider)(credentials);\n }\n static {\n __name(this, \"SignatureV4\");\n }\n async presign(originalRequest, options = {}) {\n const {\n signingDate = /* @__PURE__ */ new Date(),\n expiresIn = 3600,\n unsignableHeaders,\n unhoistableHeaders,\n signableHeaders,\n hoistableHeaders,\n signingRegion,\n signingService\n } = options;\n const credentials = await this.credentialProvider();\n this.validateResolvedCredentials(credentials);\n const region = signingRegion ?? await this.regionProvider();\n const { longDate, shortDate } = formatDate(signingDate);\n if (expiresIn > MAX_PRESIGNED_TTL) {\n return Promise.reject(\n \"Signature version 4 presigned URLs must have an expiration date less than one week in the future\"\n );\n }\n const scope = createScope(shortDate, region, signingService ?? this.service);\n const request = moveHeadersToQuery(prepareRequest(originalRequest), { unhoistableHeaders, hoistableHeaders });\n if (credentials.sessionToken) {\n request.query[TOKEN_QUERY_PARAM] = credentials.sessionToken;\n }\n request.query[ALGORITHM_QUERY_PARAM] = ALGORITHM_IDENTIFIER;\n request.query[CREDENTIAL_QUERY_PARAM] = `${credentials.accessKeyId}/${scope}`;\n request.query[AMZ_DATE_QUERY_PARAM] = longDate;\n request.query[EXPIRES_QUERY_PARAM] = expiresIn.toString(10);\n const canonicalHeaders = getCanonicalHeaders(request, unsignableHeaders, signableHeaders);\n request.query[SIGNED_HEADERS_QUERY_PARAM] = getCanonicalHeaderList(canonicalHeaders);\n request.query[SIGNATURE_QUERY_PARAM] = await this.getSignature(\n longDate,\n scope,\n this.getSigningKey(credentials, region, shortDate, signingService),\n this.createCanonicalRequest(request, canonicalHeaders, await getPayloadHash(originalRequest, this.sha256))\n );\n return request;\n }\n async sign(toSign, options) {\n if (typeof toSign === \"string\") {\n return this.signString(toSign, options);\n } else if (toSign.headers && toSign.payload) {\n return this.signEvent(toSign, options);\n } else if (toSign.message) {\n return this.signMessage(toSign, options);\n } else {\n return this.signRequest(toSign, options);\n }\n }\n async signEvent({ headers, payload }, { signingDate = /* @__PURE__ */ new Date(), priorSignature, signingRegion, signingService }) {\n const region = signingRegion ?? await this.regionProvider();\n const { shortDate, longDate } = formatDate(signingDate);\n const scope = createScope(shortDate, region, signingService ?? this.service);\n const hashedPayload = await getPayloadHash({ headers: {}, body: payload }, this.sha256);\n const hash = new this.sha256();\n hash.update(headers);\n const hashedHeaders = (0, import_util_hex_encoding.toHex)(await hash.digest());\n const stringToSign = [\n EVENT_ALGORITHM_IDENTIFIER,\n longDate,\n scope,\n priorSignature,\n hashedHeaders,\n hashedPayload\n ].join(\"\\n\");\n return this.signString(stringToSign, { signingDate, signingRegion: region, signingService });\n }\n async signMessage(signableMessage, { signingDate = /* @__PURE__ */ new Date(), signingRegion, signingService }) {\n const promise = this.signEvent(\n {\n headers: this.headerFormatter.format(signableMessage.message.headers),\n payload: signableMessage.message.body\n },\n {\n signingDate,\n signingRegion,\n signingService,\n priorSignature: signableMessage.priorSignature\n }\n );\n return promise.then((signature) => {\n return { message: signableMessage.message, signature };\n });\n }\n async signString(stringToSign, { signingDate = /* @__PURE__ */ new Date(), signingRegion, signingService } = {}) {\n const credentials = await this.credentialProvider();\n this.validateResolvedCredentials(credentials);\n const region = signingRegion ?? await this.regionProvider();\n const { shortDate } = formatDate(signingDate);\n const hash = new this.sha256(await this.getSigningKey(credentials, region, shortDate, signingService));\n hash.update((0, import_util_utf84.toUint8Array)(stringToSign));\n return (0, import_util_hex_encoding.toHex)(await hash.digest());\n }\n async signRequest(requestToSign, {\n signingDate = /* @__PURE__ */ new Date(),\n signableHeaders,\n unsignableHeaders,\n signingRegion,\n signingService\n } = {}) {\n const credentials = await this.credentialProvider();\n this.validateResolvedCredentials(credentials);\n const region = signingRegion ?? await this.regionProvider();\n const request = prepareRequest(requestToSign);\n const { longDate, shortDate } = formatDate(signingDate);\n const scope = createScope(shortDate, region, signingService ?? this.service);\n request.headers[AMZ_DATE_HEADER] = longDate;\n if (credentials.sessionToken) {\n request.headers[TOKEN_HEADER] = credentials.sessionToken;\n }\n const payloadHash = await getPayloadHash(request, this.sha256);\n if (!hasHeader(SHA256_HEADER, request.headers) && this.applyChecksum) {\n request.headers[SHA256_HEADER] = payloadHash;\n }\n const canonicalHeaders = getCanonicalHeaders(request, unsignableHeaders, signableHeaders);\n const signature = await this.getSignature(\n longDate,\n scope,\n this.getSigningKey(credentials, region, shortDate, signingService),\n this.createCanonicalRequest(request, canonicalHeaders, payloadHash)\n );\n request.headers[AUTH_HEADER] = `${ALGORITHM_IDENTIFIER} Credential=${credentials.accessKeyId}/${scope}, SignedHeaders=${getCanonicalHeaderList(canonicalHeaders)}, Signature=${signature}`;\n return request;\n }\n createCanonicalRequest(request, canonicalHeaders, payloadHash) {\n const sortedHeaders = Object.keys(canonicalHeaders).sort();\n return `${request.method}\n${this.getCanonicalPath(request)}\n${getCanonicalQuery(request)}\n${sortedHeaders.map((name) => `${name}:${canonicalHeaders[name]}`).join(\"\\n\")}\n\n${sortedHeaders.join(\";\")}\n${payloadHash}`;\n }\n async createStringToSign(longDate, credentialScope, canonicalRequest) {\n const hash = new this.sha256();\n hash.update((0, import_util_utf84.toUint8Array)(canonicalRequest));\n const hashedRequest = await hash.digest();\n return `${ALGORITHM_IDENTIFIER}\n${longDate}\n${credentialScope}\n${(0, import_util_hex_encoding.toHex)(hashedRequest)}`;\n }\n getCanonicalPath({ path }) {\n if (this.uriEscapePath) {\n const normalizedPathSegments = [];\n for (const pathSegment of path.split(\"/\")) {\n if (pathSegment?.length === 0)\n continue;\n if (pathSegment === \".\")\n continue;\n if (pathSegment === \"..\") {\n normalizedPathSegments.pop();\n } else {\n normalizedPathSegments.push(pathSegment);\n }\n }\n const normalizedPath = `${path?.startsWith(\"/\") ? \"/\" : \"\"}${normalizedPathSegments.join(\"/\")}${normalizedPathSegments.length > 0 && path?.endsWith(\"/\") ? \"/\" : \"\"}`;\n const doubleEncoded = (0, import_util_uri_escape.escapeUri)(normalizedPath);\n return doubleEncoded.replace(/%2F/g, \"/\");\n }\n return path;\n }\n async getSignature(longDate, credentialScope, keyPromise, canonicalRequest) {\n const stringToSign = await this.createStringToSign(longDate, credentialScope, canonicalRequest);\n const hash = new this.sha256(await keyPromise);\n hash.update((0, import_util_utf84.toUint8Array)(stringToSign));\n return (0, import_util_hex_encoding.toHex)(await hash.digest());\n }\n getSigningKey(credentials, region, shortDate, service) {\n return getSigningKey(this.sha256, credentials, shortDate, region, service || this.service);\n }\n validateResolvedCredentials(credentials) {\n if (typeof credentials !== \"object\" || // @ts-expect-error: Property 'accessKeyId' does not exist on type 'object'.ts(2339)\n typeof credentials.accessKeyId !== \"string\" || // @ts-expect-error: Property 'secretAccessKey' does not exist on type 'object'.ts(2339)\n typeof credentials.secretAccessKey !== \"string\") {\n throw new Error(\"Resolved credential object is not valid\");\n }\n }\n};\nvar formatDate = /* @__PURE__ */ __name((now) => {\n const longDate = iso8601(now).replace(/[\\-:]/g, \"\");\n return {\n longDate,\n shortDate: longDate.slice(0, 8)\n };\n}, \"formatDate\");\nvar getCanonicalHeaderList = /* @__PURE__ */ __name((headers) => Object.keys(headers).sort().join(\";\"), \"getCanonicalHeaderList\");\n// Annotate the CommonJS export names for ESM import in node:\n\n0 && (module.exports = {\n getCanonicalHeaders,\n getCanonicalQuery,\n getPayloadHash,\n moveHeadersToQuery,\n prepareRequest,\n SignatureV4,\n createScope,\n getSigningKey,\n clearCredentialCache\n});\n\n","var __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __name = (target, value) => __defProp(target, \"name\", { value, configurable: true });\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n};\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\n\n// src/index.ts\nvar src_exports = {};\n__export(src_exports, {\n Client: () => Client,\n Command: () => Command,\n LazyJsonString: () => LazyJsonString,\n NoOpLogger: () => NoOpLogger,\n SENSITIVE_STRING: () => SENSITIVE_STRING,\n ServiceException: () => ServiceException,\n _json: () => _json,\n collectBody: () => import_protocols.collectBody,\n convertMap: () => convertMap,\n createAggregatedClient: () => createAggregatedClient,\n dateToUtcString: () => dateToUtcString,\n decorateServiceException: () => decorateServiceException,\n emitWarningIfUnsupportedVersion: () => emitWarningIfUnsupportedVersion,\n expectBoolean: () => expectBoolean,\n expectByte: () => expectByte,\n expectFloat32: () => expectFloat32,\n expectInt: () => expectInt,\n expectInt32: () => expectInt32,\n expectLong: () => expectLong,\n expectNonNull: () => expectNonNull,\n expectNumber: () => expectNumber,\n expectObject: () => expectObject,\n expectShort: () => expectShort,\n expectString: () => expectString,\n expectUnion: () => expectUnion,\n extendedEncodeURIComponent: () => import_protocols.extendedEncodeURIComponent,\n getArrayIfSingleItem: () => getArrayIfSingleItem,\n getDefaultClientConfiguration: () => getDefaultClientConfiguration,\n getDefaultExtensionConfiguration: () => getDefaultExtensionConfiguration,\n getValueFromTextNode: () => getValueFromTextNode,\n handleFloat: () => handleFloat,\n isSerializableHeaderValue: () => isSerializableHeaderValue,\n limitedParseDouble: () => limitedParseDouble,\n limitedParseFloat: () => limitedParseFloat,\n limitedParseFloat32: () => limitedParseFloat32,\n loadConfigsForDefaultMode: () => loadConfigsForDefaultMode,\n logger: () => logger,\n map: () => map,\n parseBoolean: () => parseBoolean,\n parseEpochTimestamp: () => parseEpochTimestamp,\n parseRfc3339DateTime: () => parseRfc3339DateTime,\n parseRfc3339DateTimeWithOffset: () => parseRfc3339DateTimeWithOffset,\n parseRfc7231DateTime: () => parseRfc7231DateTime,\n quoteHeader: () => quoteHeader,\n resolveDefaultRuntimeConfig: () => resolveDefaultRuntimeConfig,\n resolvedPath: () => import_protocols.resolvedPath,\n serializeDateTime: () => serializeDateTime,\n serializeFloat: () => serializeFloat,\n splitEvery: () => splitEvery,\n splitHeader: () => splitHeader,\n strictParseByte: () => strictParseByte,\n strictParseDouble: () => strictParseDouble,\n strictParseFloat: () => strictParseFloat,\n strictParseFloat32: () => strictParseFloat32,\n strictParseInt: () => strictParseInt,\n strictParseInt32: () => strictParseInt32,\n strictParseLong: () => strictParseLong,\n strictParseShort: () => strictParseShort,\n take: () => take,\n throwDefaultError: () => throwDefaultError,\n withBaseException: () => withBaseException\n});\nmodule.exports = __toCommonJS(src_exports);\n\n// src/client.ts\nvar import_middleware_stack = require(\"@smithy/middleware-stack\");\nvar Client = class {\n constructor(config) {\n this.config = config;\n this.middlewareStack = (0, import_middleware_stack.constructStack)();\n }\n static {\n __name(this, \"Client\");\n }\n send(command, optionsOrCb, cb) {\n const options = typeof optionsOrCb !== \"function\" ? optionsOrCb : void 0;\n const callback = typeof optionsOrCb === \"function\" ? optionsOrCb : cb;\n const useHandlerCache = options === void 0 && this.config.cacheMiddleware === true;\n let handler;\n if (useHandlerCache) {\n if (!this.handlers) {\n this.handlers = /* @__PURE__ */ new WeakMap();\n }\n const handlers = this.handlers;\n if (handlers.has(command.constructor)) {\n handler = handlers.get(command.constructor);\n } else {\n handler = command.resolveMiddleware(this.middlewareStack, this.config, options);\n handlers.set(command.constructor, handler);\n }\n } else {\n delete this.handlers;\n handler = command.resolveMiddleware(this.middlewareStack, this.config, options);\n }\n if (callback) {\n handler(command).then(\n (result) => callback(null, result.output),\n (err) => callback(err)\n ).catch(\n // prevent any errors thrown in the callback from triggering an\n // unhandled promise rejection\n () => {\n }\n );\n } else {\n return handler(command).then((result) => result.output);\n }\n }\n destroy() {\n this.config?.requestHandler?.destroy?.();\n delete this.handlers;\n }\n};\n\n// src/collect-stream-body.ts\nvar import_protocols = require(\"@smithy/core/protocols\");\n\n// src/command.ts\n\nvar import_types = require(\"@smithy/types\");\nvar Command = class {\n constructor() {\n this.middlewareStack = (0, import_middleware_stack.constructStack)();\n }\n static {\n __name(this, \"Command\");\n }\n /**\n * Factory for Command ClassBuilder.\n * @internal\n */\n static classBuilder() {\n return new ClassBuilder();\n }\n /**\n * @internal\n */\n resolveMiddlewareWithContext(clientStack, configuration, options, {\n middlewareFn,\n clientName,\n commandName,\n inputFilterSensitiveLog,\n outputFilterSensitiveLog,\n smithyContext,\n additionalContext,\n CommandCtor\n }) {\n for (const mw of middlewareFn.bind(this)(CommandCtor, clientStack, configuration, options)) {\n this.middlewareStack.use(mw);\n }\n const stack = clientStack.concat(this.middlewareStack);\n const { logger: logger2 } = configuration;\n const handlerExecutionContext = {\n logger: logger2,\n clientName,\n commandName,\n inputFilterSensitiveLog,\n outputFilterSensitiveLog,\n [import_types.SMITHY_CONTEXT_KEY]: {\n commandInstance: this,\n ...smithyContext\n },\n ...additionalContext\n };\n const { requestHandler } = configuration;\n return stack.resolve(\n (request) => requestHandler.handle(request.request, options || {}),\n handlerExecutionContext\n );\n }\n};\nvar ClassBuilder = class {\n constructor() {\n this._init = () => {\n };\n this._ep = {};\n this._middlewareFn = () => [];\n this._commandName = \"\";\n this._clientName = \"\";\n this._additionalContext = {};\n this._smithyContext = {};\n this._inputFilterSensitiveLog = (_) => _;\n this._outputFilterSensitiveLog = (_) => _;\n this._serializer = null;\n this._deserializer = null;\n }\n static {\n __name(this, \"ClassBuilder\");\n }\n /**\n * Optional init callback.\n */\n init(cb) {\n this._init = cb;\n }\n /**\n * Set the endpoint parameter instructions.\n */\n ep(endpointParameterInstructions) {\n this._ep = endpointParameterInstructions;\n return this;\n }\n /**\n * Add any number of middleware.\n */\n m(middlewareSupplier) {\n this._middlewareFn = middlewareSupplier;\n return this;\n }\n /**\n * Set the initial handler execution context Smithy field.\n */\n s(service, operation, smithyContext = {}) {\n this._smithyContext = {\n service,\n operation,\n ...smithyContext\n };\n return this;\n }\n /**\n * Set the initial handler execution context.\n */\n c(additionalContext = {}) {\n this._additionalContext = additionalContext;\n return this;\n }\n /**\n * Set constant string identifiers for the operation.\n */\n n(clientName, commandName) {\n this._clientName = clientName;\n this._commandName = commandName;\n return this;\n }\n /**\n * Set the input and output sensistive log filters.\n */\n f(inputFilter = (_) => _, outputFilter = (_) => _) {\n this._inputFilterSensitiveLog = inputFilter;\n this._outputFilterSensitiveLog = outputFilter;\n return this;\n }\n /**\n * Sets the serializer.\n */\n ser(serializer) {\n this._serializer = serializer;\n return this;\n }\n /**\n * Sets the deserializer.\n */\n de(deserializer) {\n this._deserializer = deserializer;\n return this;\n }\n /**\n * @returns a Command class with the classBuilder properties.\n */\n build() {\n const closure = this;\n let CommandRef;\n return CommandRef = class extends Command {\n /**\n * @public\n */\n constructor(...[input]) {\n super();\n /**\n * @internal\n */\n // @ts-ignore used in middlewareFn closure.\n this.serialize = closure._serializer;\n /**\n * @internal\n */\n // @ts-ignore used in middlewareFn closure.\n this.deserialize = closure._deserializer;\n this.input = input ?? {};\n closure._init(this);\n }\n static {\n __name(this, \"CommandRef\");\n }\n /**\n * @public\n */\n static getEndpointParameterInstructions() {\n return closure._ep;\n }\n /**\n * @internal\n */\n resolveMiddleware(stack, configuration, options) {\n return this.resolveMiddlewareWithContext(stack, configuration, options, {\n CommandCtor: CommandRef,\n middlewareFn: closure._middlewareFn,\n clientName: closure._clientName,\n commandName: closure._commandName,\n inputFilterSensitiveLog: closure._inputFilterSensitiveLog,\n outputFilterSensitiveLog: closure._outputFilterSensitiveLog,\n smithyContext: closure._smithyContext,\n additionalContext: closure._additionalContext\n });\n }\n };\n }\n};\n\n// src/constants.ts\nvar SENSITIVE_STRING = \"***SensitiveInformation***\";\n\n// src/create-aggregated-client.ts\nvar createAggregatedClient = /* @__PURE__ */ __name((commands, Client2) => {\n for (const command of Object.keys(commands)) {\n const CommandCtor = commands[command];\n const methodImpl = /* @__PURE__ */ __name(async function(args, optionsOrCb, cb) {\n const command2 = new CommandCtor(args);\n if (typeof optionsOrCb === \"function\") {\n this.send(command2, optionsOrCb);\n } else if (typeof cb === \"function\") {\n if (typeof optionsOrCb !== \"object\")\n throw new Error(`Expected http options but got ${typeof optionsOrCb}`);\n this.send(command2, optionsOrCb || {}, cb);\n } else {\n return this.send(command2, optionsOrCb);\n }\n }, \"methodImpl\");\n const methodName = (command[0].toLowerCase() + command.slice(1)).replace(/Command$/, \"\");\n Client2.prototype[methodName] = methodImpl;\n }\n}, \"createAggregatedClient\");\n\n// src/parse-utils.ts\nvar parseBoolean = /* @__PURE__ */ __name((value) => {\n switch (value) {\n case \"true\":\n return true;\n case \"false\":\n return false;\n default:\n throw new Error(`Unable to parse boolean value \"${value}\"`);\n }\n}, \"parseBoolean\");\nvar expectBoolean = /* @__PURE__ */ __name((value) => {\n if (value === null || value === void 0) {\n return void 0;\n }\n if (typeof value === \"number\") {\n if (value === 0 || value === 1) {\n logger.warn(stackTraceWarning(`Expected boolean, got ${typeof value}: ${value}`));\n }\n if (value === 0) {\n return false;\n }\n if (value === 1) {\n return true;\n }\n }\n if (typeof value === \"string\") {\n const lower = value.toLowerCase();\n if (lower === \"false\" || lower === \"true\") {\n logger.warn(stackTraceWarning(`Expected boolean, got ${typeof value}: ${value}`));\n }\n if (lower === \"false\") {\n return false;\n }\n if (lower === \"true\") {\n return true;\n }\n }\n if (typeof value === \"boolean\") {\n return value;\n }\n throw new TypeError(`Expected boolean, got ${typeof value}: ${value}`);\n}, \"expectBoolean\");\nvar expectNumber = /* @__PURE__ */ __name((value) => {\n if (value === null || value === void 0) {\n return void 0;\n }\n if (typeof value === \"string\") {\n const parsed = parseFloat(value);\n if (!Number.isNaN(parsed)) {\n if (String(parsed) !== String(value)) {\n logger.warn(stackTraceWarning(`Expected number but observed string: ${value}`));\n }\n return parsed;\n }\n }\n if (typeof value === \"number\") {\n return value;\n }\n throw new TypeError(`Expected number, got ${typeof value}: ${value}`);\n}, \"expectNumber\");\nvar MAX_FLOAT = Math.ceil(2 ** 127 * (2 - 2 ** -23));\nvar expectFloat32 = /* @__PURE__ */ __name((value) => {\n const expected = expectNumber(value);\n if (expected !== void 0 && !Number.isNaN(expected) && expected !== Infinity && expected !== -Infinity) {\n if (Math.abs(expected) > MAX_FLOAT) {\n throw new TypeError(`Expected 32-bit float, got ${value}`);\n }\n }\n return expected;\n}, \"expectFloat32\");\nvar expectLong = /* @__PURE__ */ __name((value) => {\n if (value === null || value === void 0) {\n return void 0;\n }\n if (Number.isInteger(value) && !Number.isNaN(value)) {\n return value;\n }\n throw new TypeError(`Expected integer, got ${typeof value}: ${value}`);\n}, \"expectLong\");\nvar expectInt = expectLong;\nvar expectInt32 = /* @__PURE__ */ __name((value) => expectSizedInt(value, 32), \"expectInt32\");\nvar expectShort = /* @__PURE__ */ __name((value) => expectSizedInt(value, 16), \"expectShort\");\nvar expectByte = /* @__PURE__ */ __name((value) => expectSizedInt(value, 8), \"expectByte\");\nvar expectSizedInt = /* @__PURE__ */ __name((value, size) => {\n const expected = expectLong(value);\n if (expected !== void 0 && castInt(expected, size) !== expected) {\n throw new TypeError(`Expected ${size}-bit integer, got ${value}`);\n }\n return expected;\n}, \"expectSizedInt\");\nvar castInt = /* @__PURE__ */ __name((value, size) => {\n switch (size) {\n case 32:\n return Int32Array.of(value)[0];\n case 16:\n return Int16Array.of(value)[0];\n case 8:\n return Int8Array.of(value)[0];\n }\n}, \"castInt\");\nvar expectNonNull = /* @__PURE__ */ __name((value, location) => {\n if (value === null || value === void 0) {\n if (location) {\n throw new TypeError(`Expected a non-null value for ${location}`);\n }\n throw new TypeError(\"Expected a non-null value\");\n }\n return value;\n}, \"expectNonNull\");\nvar expectObject = /* @__PURE__ */ __name((value) => {\n if (value === null || value === void 0) {\n return void 0;\n }\n if (typeof value === \"object\" && !Array.isArray(value)) {\n return value;\n }\n const receivedType = Array.isArray(value) ? \"array\" : typeof value;\n throw new TypeError(`Expected object, got ${receivedType}: ${value}`);\n}, \"expectObject\");\nvar expectString = /* @__PURE__ */ __name((value) => {\n if (value === null || value === void 0) {\n return void 0;\n }\n if (typeof value === \"string\") {\n return value;\n }\n if ([\"boolean\", \"number\", \"bigint\"].includes(typeof value)) {\n logger.warn(stackTraceWarning(`Expected string, got ${typeof value}: ${value}`));\n return String(value);\n }\n throw new TypeError(`Expected string, got ${typeof value}: ${value}`);\n}, \"expectString\");\nvar expectUnion = /* @__PURE__ */ __name((value) => {\n if (value === null || value === void 0) {\n return void 0;\n }\n const asObject = expectObject(value);\n const setKeys = Object.entries(asObject).filter(([, v]) => v != null).map(([k]) => k);\n if (setKeys.length === 0) {\n throw new TypeError(`Unions must have exactly one non-null member. None were found.`);\n }\n if (setKeys.length > 1) {\n throw new TypeError(`Unions must have exactly one non-null member. Keys ${setKeys} were not null.`);\n }\n return asObject;\n}, \"expectUnion\");\nvar strictParseDouble = /* @__PURE__ */ __name((value) => {\n if (typeof value == \"string\") {\n return expectNumber(parseNumber(value));\n }\n return expectNumber(value);\n}, \"strictParseDouble\");\nvar strictParseFloat = strictParseDouble;\nvar strictParseFloat32 = /* @__PURE__ */ __name((value) => {\n if (typeof value == \"string\") {\n return expectFloat32(parseNumber(value));\n }\n return expectFloat32(value);\n}, \"strictParseFloat32\");\nvar NUMBER_REGEX = /(-?(?:0|[1-9]\\d*)(?:\\.\\d+)?(?:[eE][+-]?\\d+)?)|(-?Infinity)|(NaN)/g;\nvar parseNumber = /* @__PURE__ */ __name((value) => {\n const matches = value.match(NUMBER_REGEX);\n if (matches === null || matches[0].length !== value.length) {\n throw new TypeError(`Expected real number, got implicit NaN`);\n }\n return parseFloat(value);\n}, \"parseNumber\");\nvar limitedParseDouble = /* @__PURE__ */ __name((value) => {\n if (typeof value == \"string\") {\n return parseFloatString(value);\n }\n return expectNumber(value);\n}, \"limitedParseDouble\");\nvar handleFloat = limitedParseDouble;\nvar limitedParseFloat = limitedParseDouble;\nvar limitedParseFloat32 = /* @__PURE__ */ __name((value) => {\n if (typeof value == \"string\") {\n return parseFloatString(value);\n }\n return expectFloat32(value);\n}, \"limitedParseFloat32\");\nvar parseFloatString = /* @__PURE__ */ __name((value) => {\n switch (value) {\n case \"NaN\":\n return NaN;\n case \"Infinity\":\n return Infinity;\n case \"-Infinity\":\n return -Infinity;\n default:\n throw new Error(`Unable to parse float value: ${value}`);\n }\n}, \"parseFloatString\");\nvar strictParseLong = /* @__PURE__ */ __name((value) => {\n if (typeof value === \"string\") {\n return expectLong(parseNumber(value));\n }\n return expectLong(value);\n}, \"strictParseLong\");\nvar strictParseInt = strictParseLong;\nvar strictParseInt32 = /* @__PURE__ */ __name((value) => {\n if (typeof value === \"string\") {\n return expectInt32(parseNumber(value));\n }\n return expectInt32(value);\n}, \"strictParseInt32\");\nvar strictParseShort = /* @__PURE__ */ __name((value) => {\n if (typeof value === \"string\") {\n return expectShort(parseNumber(value));\n }\n return expectShort(value);\n}, \"strictParseShort\");\nvar strictParseByte = /* @__PURE__ */ __name((value) => {\n if (typeof value === \"string\") {\n return expectByte(parseNumber(value));\n }\n return expectByte(value);\n}, \"strictParseByte\");\nvar stackTraceWarning = /* @__PURE__ */ __name((message) => {\n return String(new TypeError(message).stack || message).split(\"\\n\").slice(0, 5).filter((s) => !s.includes(\"stackTraceWarning\")).join(\"\\n\");\n}, \"stackTraceWarning\");\nvar logger = {\n warn: console.warn\n};\n\n// src/date-utils.ts\nvar DAYS = [\"Sun\", \"Mon\", \"Tue\", \"Wed\", \"Thu\", \"Fri\", \"Sat\"];\nvar MONTHS = [\"Jan\", \"Feb\", \"Mar\", \"Apr\", \"May\", \"Jun\", \"Jul\", \"Aug\", \"Sep\", \"Oct\", \"Nov\", \"Dec\"];\nfunction dateToUtcString(date) {\n const year = date.getUTCFullYear();\n const month = date.getUTCMonth();\n const dayOfWeek = date.getUTCDay();\n const dayOfMonthInt = date.getUTCDate();\n const hoursInt = date.getUTCHours();\n const minutesInt = date.getUTCMinutes();\n const secondsInt = date.getUTCSeconds();\n const dayOfMonthString = dayOfMonthInt < 10 ? `0${dayOfMonthInt}` : `${dayOfMonthInt}`;\n const hoursString = hoursInt < 10 ? `0${hoursInt}` : `${hoursInt}`;\n const minutesString = minutesInt < 10 ? `0${minutesInt}` : `${minutesInt}`;\n const secondsString = secondsInt < 10 ? `0${secondsInt}` : `${secondsInt}`;\n return `${DAYS[dayOfWeek]}, ${dayOfMonthString} ${MONTHS[month]} ${year} ${hoursString}:${minutesString}:${secondsString} GMT`;\n}\n__name(dateToUtcString, \"dateToUtcString\");\nvar RFC3339 = new RegExp(/^(\\d{4})-(\\d{2})-(\\d{2})[tT](\\d{2}):(\\d{2}):(\\d{2})(?:\\.(\\d+))?[zZ]$/);\nvar parseRfc3339DateTime = /* @__PURE__ */ __name((value) => {\n if (value === null || value === void 0) {\n return void 0;\n }\n if (typeof value !== \"string\") {\n throw new TypeError(\"RFC-3339 date-times must be expressed as strings\");\n }\n const match = RFC3339.exec(value);\n if (!match) {\n throw new TypeError(\"Invalid RFC-3339 date-time value\");\n }\n const [_, yearStr, monthStr, dayStr, hours, minutes, seconds, fractionalMilliseconds] = match;\n const year = strictParseShort(stripLeadingZeroes(yearStr));\n const month = parseDateValue(monthStr, \"month\", 1, 12);\n const day = parseDateValue(dayStr, \"day\", 1, 31);\n return buildDate(year, month, day, { hours, minutes, seconds, fractionalMilliseconds });\n}, \"parseRfc3339DateTime\");\nvar RFC3339_WITH_OFFSET = new RegExp(\n /^(\\d{4})-(\\d{2})-(\\d{2})[tT](\\d{2}):(\\d{2}):(\\d{2})(?:\\.(\\d+))?(([-+]\\d{2}\\:\\d{2})|[zZ])$/\n);\nvar parseRfc3339DateTimeWithOffset = /* @__PURE__ */ __name((value) => {\n if (value === null || value === void 0) {\n return void 0;\n }\n if (typeof value !== \"string\") {\n throw new TypeError(\"RFC-3339 date-times must be expressed as strings\");\n }\n const match = RFC3339_WITH_OFFSET.exec(value);\n if (!match) {\n throw new TypeError(\"Invalid RFC-3339 date-time value\");\n }\n const [_, yearStr, monthStr, dayStr, hours, minutes, seconds, fractionalMilliseconds, offsetStr] = match;\n const year = strictParseShort(stripLeadingZeroes(yearStr));\n const month = parseDateValue(monthStr, \"month\", 1, 12);\n const day = parseDateValue(dayStr, \"day\", 1, 31);\n const date = buildDate(year, month, day, { hours, minutes, seconds, fractionalMilliseconds });\n if (offsetStr.toUpperCase() != \"Z\") {\n date.setTime(date.getTime() - parseOffsetToMilliseconds(offsetStr));\n }\n return date;\n}, \"parseRfc3339DateTimeWithOffset\");\nvar IMF_FIXDATE = new RegExp(\n /^(?: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$/\n);\nvar RFC_850_DATE = new RegExp(\n /^(?: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$/\n);\nvar ASC_TIME = new RegExp(\n /^(?: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})$/\n);\nvar parseRfc7231DateTime = /* @__PURE__ */ __name((value) => {\n if (value === null || value === void 0) {\n return void 0;\n }\n if (typeof value !== \"string\") {\n throw new TypeError(\"RFC-7231 date-times must be expressed as strings\");\n }\n let match = IMF_FIXDATE.exec(value);\n if (match) {\n const [_, dayStr, monthStr, yearStr, hours, minutes, seconds, fractionalMilliseconds] = match;\n return buildDate(\n strictParseShort(stripLeadingZeroes(yearStr)),\n parseMonthByShortName(monthStr),\n parseDateValue(dayStr, \"day\", 1, 31),\n { hours, minutes, seconds, fractionalMilliseconds }\n );\n }\n match = RFC_850_DATE.exec(value);\n if (match) {\n const [_, dayStr, monthStr, yearStr, hours, minutes, seconds, fractionalMilliseconds] = match;\n return adjustRfc850Year(\n buildDate(parseTwoDigitYear(yearStr), parseMonthByShortName(monthStr), parseDateValue(dayStr, \"day\", 1, 31), {\n hours,\n minutes,\n seconds,\n fractionalMilliseconds\n })\n );\n }\n match = ASC_TIME.exec(value);\n if (match) {\n const [_, monthStr, dayStr, hours, minutes, seconds, fractionalMilliseconds, yearStr] = match;\n return buildDate(\n strictParseShort(stripLeadingZeroes(yearStr)),\n parseMonthByShortName(monthStr),\n parseDateValue(dayStr.trimLeft(), \"day\", 1, 31),\n { hours, minutes, seconds, fractionalMilliseconds }\n );\n }\n throw new TypeError(\"Invalid RFC-7231 date-time value\");\n}, \"parseRfc7231DateTime\");\nvar parseEpochTimestamp = /* @__PURE__ */ __name((value) => {\n if (value === null || value === void 0) {\n return void 0;\n }\n let valueAsDouble;\n if (typeof value === \"number\") {\n valueAsDouble = value;\n } else if (typeof value === \"string\") {\n valueAsDouble = strictParseDouble(value);\n } else if (typeof value === \"object\" && value.tag === 1) {\n valueAsDouble = value.value;\n } else {\n throw new TypeError(\"Epoch timestamps must be expressed as floating point numbers or their string representation\");\n }\n if (Number.isNaN(valueAsDouble) || valueAsDouble === Infinity || valueAsDouble === -Infinity) {\n throw new TypeError(\"Epoch timestamps must be valid, non-Infinite, non-NaN numerics\");\n }\n return new Date(Math.round(valueAsDouble * 1e3));\n}, \"parseEpochTimestamp\");\nvar buildDate = /* @__PURE__ */ __name((year, month, day, time) => {\n const adjustedMonth = month - 1;\n validateDayOfMonth(year, adjustedMonth, day);\n return new Date(\n Date.UTC(\n year,\n adjustedMonth,\n day,\n parseDateValue(time.hours, \"hour\", 0, 23),\n parseDateValue(time.minutes, \"minute\", 0, 59),\n // seconds can go up to 60 for leap seconds\n parseDateValue(time.seconds, \"seconds\", 0, 60),\n parseMilliseconds(time.fractionalMilliseconds)\n )\n );\n}, \"buildDate\");\nvar parseTwoDigitYear = /* @__PURE__ */ __name((value) => {\n const thisYear = (/* @__PURE__ */ new Date()).getUTCFullYear();\n const valueInThisCentury = Math.floor(thisYear / 100) * 100 + strictParseShort(stripLeadingZeroes(value));\n if (valueInThisCentury < thisYear) {\n return valueInThisCentury + 100;\n }\n return valueInThisCentury;\n}, \"parseTwoDigitYear\");\nvar FIFTY_YEARS_IN_MILLIS = 50 * 365 * 24 * 60 * 60 * 1e3;\nvar adjustRfc850Year = /* @__PURE__ */ __name((input) => {\n if (input.getTime() - (/* @__PURE__ */ new Date()).getTime() > FIFTY_YEARS_IN_MILLIS) {\n return new Date(\n Date.UTC(\n input.getUTCFullYear() - 100,\n input.getUTCMonth(),\n input.getUTCDate(),\n input.getUTCHours(),\n input.getUTCMinutes(),\n input.getUTCSeconds(),\n input.getUTCMilliseconds()\n )\n );\n }\n return input;\n}, \"adjustRfc850Year\");\nvar parseMonthByShortName = /* @__PURE__ */ __name((value) => {\n const monthIdx = MONTHS.indexOf(value);\n if (monthIdx < 0) {\n throw new TypeError(`Invalid month: ${value}`);\n }\n return monthIdx + 1;\n}, \"parseMonthByShortName\");\nvar DAYS_IN_MONTH = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];\nvar validateDayOfMonth = /* @__PURE__ */ __name((year, month, day) => {\n let maxDays = DAYS_IN_MONTH[month];\n if (month === 1 && isLeapYear(year)) {\n maxDays = 29;\n }\n if (day > maxDays) {\n throw new TypeError(`Invalid day for ${MONTHS[month]} in ${year}: ${day}`);\n }\n}, \"validateDayOfMonth\");\nvar isLeapYear = /* @__PURE__ */ __name((year) => {\n return year % 4 === 0 && (year % 100 !== 0 || year % 400 === 0);\n}, \"isLeapYear\");\nvar parseDateValue = /* @__PURE__ */ __name((value, type, lower, upper) => {\n const dateVal = strictParseByte(stripLeadingZeroes(value));\n if (dateVal < lower || dateVal > upper) {\n throw new TypeError(`${type} must be between ${lower} and ${upper}, inclusive`);\n }\n return dateVal;\n}, \"parseDateValue\");\nvar parseMilliseconds = /* @__PURE__ */ __name((value) => {\n if (value === null || value === void 0) {\n return 0;\n }\n return strictParseFloat32(\"0.\" + value) * 1e3;\n}, \"parseMilliseconds\");\nvar parseOffsetToMilliseconds = /* @__PURE__ */ __name((value) => {\n const directionStr = value[0];\n let direction = 1;\n if (directionStr == \"+\") {\n direction = 1;\n } else if (directionStr == \"-\") {\n direction = -1;\n } else {\n throw new TypeError(`Offset direction, ${directionStr}, must be \"+\" or \"-\"`);\n }\n const hour = Number(value.substring(1, 3));\n const minute = Number(value.substring(4, 6));\n return direction * (hour * 60 + minute) * 60 * 1e3;\n}, \"parseOffsetToMilliseconds\");\nvar stripLeadingZeroes = /* @__PURE__ */ __name((value) => {\n let idx = 0;\n while (idx < value.length - 1 && value.charAt(idx) === \"0\") {\n idx++;\n }\n if (idx === 0) {\n return value;\n }\n return value.slice(idx);\n}, \"stripLeadingZeroes\");\n\n// src/exceptions.ts\nvar ServiceException = class _ServiceException extends Error {\n static {\n __name(this, \"ServiceException\");\n }\n constructor(options) {\n super(options.message);\n Object.setPrototypeOf(this, Object.getPrototypeOf(this).constructor.prototype);\n this.name = options.name;\n this.$fault = options.$fault;\n this.$metadata = options.$metadata;\n }\n /**\n * Checks if a value is an instance of ServiceException (duck typed)\n */\n static isInstance(value) {\n if (!value)\n return false;\n const candidate = value;\n return _ServiceException.prototype.isPrototypeOf(candidate) || Boolean(candidate.$fault) && Boolean(candidate.$metadata) && (candidate.$fault === \"client\" || candidate.$fault === \"server\");\n }\n /**\n * Custom instanceof check to support the operator for ServiceException base class\n */\n static [Symbol.hasInstance](instance) {\n if (!instance)\n return false;\n const candidate = instance;\n if (this === _ServiceException) {\n return _ServiceException.isInstance(instance);\n }\n if (_ServiceException.isInstance(instance)) {\n if (candidate.name && this.name) {\n return this.prototype.isPrototypeOf(instance) || candidate.name === this.name;\n }\n return this.prototype.isPrototypeOf(instance);\n }\n return false;\n }\n};\nvar decorateServiceException = /* @__PURE__ */ __name((exception, additions = {}) => {\n Object.entries(additions).filter(([, v]) => v !== void 0).forEach(([k, v]) => {\n if (exception[k] == void 0 || exception[k] === \"\") {\n exception[k] = v;\n }\n });\n const message = exception.message || exception.Message || \"UnknownError\";\n exception.message = message;\n delete exception.Message;\n return exception;\n}, \"decorateServiceException\");\n\n// src/default-error-handler.ts\nvar throwDefaultError = /* @__PURE__ */ __name(({ output, parsedBody, exceptionCtor, errorCode }) => {\n const $metadata = deserializeMetadata(output);\n const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + \"\" : void 0;\n const response = new exceptionCtor({\n name: parsedBody?.code || parsedBody?.Code || errorCode || statusCode || \"UnknownError\",\n $fault: \"client\",\n $metadata\n });\n throw decorateServiceException(response, parsedBody);\n}, \"throwDefaultError\");\nvar withBaseException = /* @__PURE__ */ __name((ExceptionCtor) => {\n return ({ output, parsedBody, errorCode }) => {\n throwDefaultError({ output, parsedBody, exceptionCtor: ExceptionCtor, errorCode });\n };\n}, \"withBaseException\");\nvar deserializeMetadata = /* @__PURE__ */ __name((output) => ({\n httpStatusCode: output.statusCode,\n requestId: output.headers[\"x-amzn-requestid\"] ?? output.headers[\"x-amzn-request-id\"] ?? output.headers[\"x-amz-request-id\"],\n extendedRequestId: output.headers[\"x-amz-id-2\"],\n cfId: output.headers[\"x-amz-cf-id\"]\n}), \"deserializeMetadata\");\n\n// src/defaults-mode.ts\nvar loadConfigsForDefaultMode = /* @__PURE__ */ __name((mode) => {\n switch (mode) {\n case \"standard\":\n return {\n retryMode: \"standard\",\n connectionTimeout: 3100\n };\n case \"in-region\":\n return {\n retryMode: \"standard\",\n connectionTimeout: 1100\n };\n case \"cross-region\":\n return {\n retryMode: \"standard\",\n connectionTimeout: 3100\n };\n case \"mobile\":\n return {\n retryMode: \"standard\",\n connectionTimeout: 3e4\n };\n default:\n return {};\n }\n}, \"loadConfigsForDefaultMode\");\n\n// src/emitWarningIfUnsupportedVersion.ts\nvar warningEmitted = false;\nvar emitWarningIfUnsupportedVersion = /* @__PURE__ */ __name((version) => {\n if (version && !warningEmitted && parseInt(version.substring(1, version.indexOf(\".\"))) < 16) {\n warningEmitted = true;\n }\n}, \"emitWarningIfUnsupportedVersion\");\n\n// src/extended-encode-uri-component.ts\n\n\n// src/extensions/checksum.ts\n\nvar getChecksumConfiguration = /* @__PURE__ */ __name((runtimeConfig) => {\n const checksumAlgorithms = [];\n for (const id in import_types.AlgorithmId) {\n const algorithmId = import_types.AlgorithmId[id];\n if (runtimeConfig[algorithmId] === void 0) {\n continue;\n }\n checksumAlgorithms.push({\n algorithmId: () => algorithmId,\n checksumConstructor: () => runtimeConfig[algorithmId]\n });\n }\n return {\n _checksumAlgorithms: checksumAlgorithms,\n addChecksumAlgorithm(algo) {\n this._checksumAlgorithms.push(algo);\n },\n checksumAlgorithms() {\n return this._checksumAlgorithms;\n }\n };\n}, \"getChecksumConfiguration\");\nvar resolveChecksumRuntimeConfig = /* @__PURE__ */ __name((clientConfig) => {\n const runtimeConfig = {};\n clientConfig.checksumAlgorithms().forEach((checksumAlgorithm) => {\n runtimeConfig[checksumAlgorithm.algorithmId()] = checksumAlgorithm.checksumConstructor();\n });\n return runtimeConfig;\n}, \"resolveChecksumRuntimeConfig\");\n\n// src/extensions/retry.ts\nvar getRetryConfiguration = /* @__PURE__ */ __name((runtimeConfig) => {\n let _retryStrategy = runtimeConfig.retryStrategy;\n return {\n setRetryStrategy(retryStrategy) {\n _retryStrategy = retryStrategy;\n },\n retryStrategy() {\n return _retryStrategy;\n }\n };\n}, \"getRetryConfiguration\");\nvar resolveRetryRuntimeConfig = /* @__PURE__ */ __name((retryStrategyConfiguration) => {\n const runtimeConfig = {};\n runtimeConfig.retryStrategy = retryStrategyConfiguration.retryStrategy();\n return runtimeConfig;\n}, \"resolveRetryRuntimeConfig\");\n\n// src/extensions/defaultExtensionConfiguration.ts\nvar getDefaultExtensionConfiguration = /* @__PURE__ */ __name((runtimeConfig) => {\n return {\n ...getChecksumConfiguration(runtimeConfig),\n ...getRetryConfiguration(runtimeConfig)\n };\n}, \"getDefaultExtensionConfiguration\");\nvar getDefaultClientConfiguration = getDefaultExtensionConfiguration;\nvar resolveDefaultRuntimeConfig = /* @__PURE__ */ __name((config) => {\n return {\n ...resolveChecksumRuntimeConfig(config),\n ...resolveRetryRuntimeConfig(config)\n };\n}, \"resolveDefaultRuntimeConfig\");\n\n// src/get-array-if-single-item.ts\nvar getArrayIfSingleItem = /* @__PURE__ */ __name((mayBeArray) => Array.isArray(mayBeArray) ? mayBeArray : [mayBeArray], \"getArrayIfSingleItem\");\n\n// src/get-value-from-text-node.ts\nvar getValueFromTextNode = /* @__PURE__ */ __name((obj) => {\n const textNodeName = \"#text\";\n for (const key in obj) {\n if (obj.hasOwnProperty(key) && obj[key][textNodeName] !== void 0) {\n obj[key] = obj[key][textNodeName];\n } else if (typeof obj[key] === \"object\" && obj[key] !== null) {\n obj[key] = getValueFromTextNode(obj[key]);\n }\n }\n return obj;\n}, \"getValueFromTextNode\");\n\n// src/is-serializable-header-value.ts\nvar isSerializableHeaderValue = /* @__PURE__ */ __name((value) => {\n return value != null;\n}, \"isSerializableHeaderValue\");\n\n// src/lazy-json.ts\nvar LazyJsonString = /* @__PURE__ */ __name(function LazyJsonString2(val) {\n const str = Object.assign(new String(val), {\n deserializeJSON() {\n return JSON.parse(String(val));\n },\n toString() {\n return String(val);\n },\n toJSON() {\n return String(val);\n }\n });\n return str;\n}, \"LazyJsonString\");\nLazyJsonString.from = (object) => {\n if (object && typeof object === \"object\" && (object instanceof LazyJsonString || \"deserializeJSON\" in object)) {\n return object;\n } else if (typeof object === \"string\" || Object.getPrototypeOf(object) === String.prototype) {\n return LazyJsonString(String(object));\n }\n return LazyJsonString(JSON.stringify(object));\n};\nLazyJsonString.fromObject = LazyJsonString.from;\n\n// src/NoOpLogger.ts\nvar NoOpLogger = class {\n static {\n __name(this, \"NoOpLogger\");\n }\n trace() {\n }\n debug() {\n }\n info() {\n }\n warn() {\n }\n error() {\n }\n};\n\n// src/object-mapping.ts\nfunction map(arg0, arg1, arg2) {\n let target;\n let filter;\n let instructions;\n if (typeof arg1 === \"undefined\" && typeof arg2 === \"undefined\") {\n target = {};\n instructions = arg0;\n } else {\n target = arg0;\n if (typeof arg1 === \"function\") {\n filter = arg1;\n instructions = arg2;\n return mapWithFilter(target, filter, instructions);\n } else {\n instructions = arg1;\n }\n }\n for (const key of Object.keys(instructions)) {\n if (!Array.isArray(instructions[key])) {\n target[key] = instructions[key];\n continue;\n }\n applyInstruction(target, null, instructions, key);\n }\n return target;\n}\n__name(map, \"map\");\nvar convertMap = /* @__PURE__ */ __name((target) => {\n const output = {};\n for (const [k, v] of Object.entries(target || {})) {\n output[k] = [, v];\n }\n return output;\n}, \"convertMap\");\nvar take = /* @__PURE__ */ __name((source, instructions) => {\n const out = {};\n for (const key in instructions) {\n applyInstruction(out, source, instructions, key);\n }\n return out;\n}, \"take\");\nvar mapWithFilter = /* @__PURE__ */ __name((target, filter, instructions) => {\n return map(\n target,\n Object.entries(instructions).reduce(\n (_instructions, [key, value]) => {\n if (Array.isArray(value)) {\n _instructions[key] = value;\n } else {\n if (typeof value === \"function\") {\n _instructions[key] = [filter, value()];\n } else {\n _instructions[key] = [filter, value];\n }\n }\n return _instructions;\n },\n {}\n )\n );\n}, \"mapWithFilter\");\nvar applyInstruction = /* @__PURE__ */ __name((target, source, instructions, targetKey) => {\n if (source !== null) {\n let instruction = instructions[targetKey];\n if (typeof instruction === \"function\") {\n instruction = [, instruction];\n }\n const [filter2 = nonNullish, valueFn = pass, sourceKey = targetKey] = instruction;\n if (typeof filter2 === \"function\" && filter2(source[sourceKey]) || typeof filter2 !== \"function\" && !!filter2) {\n target[targetKey] = valueFn(source[sourceKey]);\n }\n return;\n }\n let [filter, value] = instructions[targetKey];\n if (typeof value === \"function\") {\n let _value;\n const defaultFilterPassed = filter === void 0 && (_value = value()) != null;\n const customFilterPassed = typeof filter === \"function\" && !!filter(void 0) || typeof filter !== \"function\" && !!filter;\n if (defaultFilterPassed) {\n target[targetKey] = _value;\n } else if (customFilterPassed) {\n target[targetKey] = value();\n }\n } else {\n const defaultFilterPassed = filter === void 0 && value != null;\n const customFilterPassed = typeof filter === \"function\" && !!filter(value) || typeof filter !== \"function\" && !!filter;\n if (defaultFilterPassed || customFilterPassed) {\n target[targetKey] = value;\n }\n }\n}, \"applyInstruction\");\nvar nonNullish = /* @__PURE__ */ __name((_) => _ != null, \"nonNullish\");\nvar pass = /* @__PURE__ */ __name((_) => _, \"pass\");\n\n// src/quote-header.ts\nfunction quoteHeader(part) {\n if (part.includes(\",\") || part.includes('\"')) {\n part = `\"${part.replace(/\"/g, '\\\\\"')}\"`;\n }\n return part;\n}\n__name(quoteHeader, \"quoteHeader\");\n\n// src/resolve-path.ts\n\n\n// src/ser-utils.ts\nvar serializeFloat = /* @__PURE__ */ __name((value) => {\n if (value !== value) {\n return \"NaN\";\n }\n switch (value) {\n case Infinity:\n return \"Infinity\";\n case -Infinity:\n return \"-Infinity\";\n default:\n return value;\n }\n}, \"serializeFloat\");\nvar serializeDateTime = /* @__PURE__ */ __name((date) => date.toISOString().replace(\".000Z\", \"Z\"), \"serializeDateTime\");\n\n// src/serde-json.ts\nvar _json = /* @__PURE__ */ __name((obj) => {\n if (obj == null) {\n return {};\n }\n if (Array.isArray(obj)) {\n return obj.filter((_) => _ != null).map(_json);\n }\n if (typeof obj === \"object\") {\n const target = {};\n for (const key of Object.keys(obj)) {\n if (obj[key] == null) {\n continue;\n }\n target[key] = _json(obj[key]);\n }\n return target;\n }\n return obj;\n}, \"_json\");\n\n// src/split-every.ts\nfunction splitEvery(value, delimiter, numDelimiters) {\n if (numDelimiters <= 0 || !Number.isInteger(numDelimiters)) {\n throw new Error(\"Invalid number of delimiters (\" + numDelimiters + \") for splitEvery.\");\n }\n const segments = value.split(delimiter);\n if (numDelimiters === 1) {\n return segments;\n }\n const compoundSegments = [];\n let currentSegment = \"\";\n for (let i = 0; i < segments.length; i++) {\n if (currentSegment === \"\") {\n currentSegment = segments[i];\n } else {\n currentSegment += delimiter + segments[i];\n }\n if ((i + 1) % numDelimiters === 0) {\n compoundSegments.push(currentSegment);\n currentSegment = \"\";\n }\n }\n if (currentSegment !== \"\") {\n compoundSegments.push(currentSegment);\n }\n return compoundSegments;\n}\n__name(splitEvery, \"splitEvery\");\n\n// src/split-header.ts\nvar splitHeader = /* @__PURE__ */ __name((value) => {\n const z = value.length;\n const values = [];\n let withinQuotes = false;\n let prevChar = void 0;\n let anchor = 0;\n for (let i = 0; i < z; ++i) {\n const char = value[i];\n switch (char) {\n case `\"`:\n if (prevChar !== \"\\\\\") {\n withinQuotes = !withinQuotes;\n }\n break;\n case \",\":\n if (!withinQuotes) {\n values.push(value.slice(anchor, i));\n anchor = i + 1;\n }\n break;\n default:\n }\n prevChar = char;\n }\n values.push(value.slice(anchor));\n return values.map((v) => {\n v = v.trim();\n const z2 = v.length;\n if (z2 < 2) {\n return v;\n }\n if (v[0] === `\"` && v[z2 - 1] === `\"`) {\n v = v.slice(1, z2 - 1);\n }\n return v.replace(/\\\\\"/g, '\"');\n });\n}, \"splitHeader\");\n// Annotate the CommonJS export names for ESM import in node:\n\n0 && (module.exports = {\n Client,\n collectBody,\n Command,\n SENSITIVE_STRING,\n createAggregatedClient,\n dateToUtcString,\n parseRfc3339DateTime,\n parseRfc3339DateTimeWithOffset,\n parseRfc7231DateTime,\n parseEpochTimestamp,\n throwDefaultError,\n withBaseException,\n loadConfigsForDefaultMode,\n emitWarningIfUnsupportedVersion,\n ServiceException,\n decorateServiceException,\n extendedEncodeURIComponent,\n getDefaultExtensionConfiguration,\n getDefaultClientConfiguration,\n resolveDefaultRuntimeConfig,\n getArrayIfSingleItem,\n getValueFromTextNode,\n isSerializableHeaderValue,\n LazyJsonString,\n NoOpLogger,\n map,\n convertMap,\n take,\n parseBoolean,\n expectBoolean,\n expectNumber,\n expectFloat32,\n expectLong,\n expectInt,\n expectInt32,\n expectShort,\n expectByte,\n expectNonNull,\n expectObject,\n expectString,\n expectUnion,\n strictParseDouble,\n strictParseFloat,\n strictParseFloat32,\n limitedParseDouble,\n handleFloat,\n limitedParseFloat,\n limitedParseFloat32,\n strictParseLong,\n strictParseInt,\n strictParseInt32,\n strictParseShort,\n strictParseByte,\n logger,\n quoteHeader,\n resolvedPath,\n serializeFloat,\n serializeDateTime,\n _json,\n splitEvery,\n splitHeader\n});\n\n","var __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __name = (target, value) => __defProp(target, \"name\", { value, configurable: true });\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n};\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\n\n// src/index.ts\nvar src_exports = {};\n__export(src_exports, {\n AlgorithmId: () => AlgorithmId,\n EndpointURLScheme: () => EndpointURLScheme,\n FieldPosition: () => FieldPosition,\n HttpApiKeyAuthLocation: () => HttpApiKeyAuthLocation,\n HttpAuthLocation: () => HttpAuthLocation,\n IniSectionType: () => IniSectionType,\n RequestHandlerProtocol: () => RequestHandlerProtocol,\n SMITHY_CONTEXT_KEY: () => SMITHY_CONTEXT_KEY,\n getDefaultClientConfiguration: () => getDefaultClientConfiguration,\n resolveDefaultRuntimeConfig: () => resolveDefaultRuntimeConfig\n});\nmodule.exports = __toCommonJS(src_exports);\n\n// src/auth/auth.ts\nvar HttpAuthLocation = /* @__PURE__ */ ((HttpAuthLocation2) => {\n HttpAuthLocation2[\"HEADER\"] = \"header\";\n HttpAuthLocation2[\"QUERY\"] = \"query\";\n return HttpAuthLocation2;\n})(HttpAuthLocation || {});\n\n// src/auth/HttpApiKeyAuth.ts\nvar HttpApiKeyAuthLocation = /* @__PURE__ */ ((HttpApiKeyAuthLocation2) => {\n HttpApiKeyAuthLocation2[\"HEADER\"] = \"header\";\n HttpApiKeyAuthLocation2[\"QUERY\"] = \"query\";\n return HttpApiKeyAuthLocation2;\n})(HttpApiKeyAuthLocation || {});\n\n// src/endpoint.ts\nvar EndpointURLScheme = /* @__PURE__ */ ((EndpointURLScheme2) => {\n EndpointURLScheme2[\"HTTP\"] = \"http\";\n EndpointURLScheme2[\"HTTPS\"] = \"https\";\n return EndpointURLScheme2;\n})(EndpointURLScheme || {});\n\n// src/extensions/checksum.ts\nvar AlgorithmId = /* @__PURE__ */ ((AlgorithmId2) => {\n AlgorithmId2[\"MD5\"] = \"md5\";\n AlgorithmId2[\"CRC32\"] = \"crc32\";\n AlgorithmId2[\"CRC32C\"] = \"crc32c\";\n AlgorithmId2[\"SHA1\"] = \"sha1\";\n AlgorithmId2[\"SHA256\"] = \"sha256\";\n return AlgorithmId2;\n})(AlgorithmId || {});\nvar getChecksumConfiguration = /* @__PURE__ */ __name((runtimeConfig) => {\n const checksumAlgorithms = [];\n if (runtimeConfig.sha256 !== void 0) {\n checksumAlgorithms.push({\n algorithmId: () => \"sha256\" /* SHA256 */,\n checksumConstructor: () => runtimeConfig.sha256\n });\n }\n if (runtimeConfig.md5 != void 0) {\n checksumAlgorithms.push({\n algorithmId: () => \"md5\" /* MD5 */,\n checksumConstructor: () => runtimeConfig.md5\n });\n }\n return {\n _checksumAlgorithms: checksumAlgorithms,\n addChecksumAlgorithm(algo) {\n this._checksumAlgorithms.push(algo);\n },\n checksumAlgorithms() {\n return this._checksumAlgorithms;\n }\n };\n}, \"getChecksumConfiguration\");\nvar resolveChecksumRuntimeConfig = /* @__PURE__ */ __name((clientConfig) => {\n const runtimeConfig = {};\n clientConfig.checksumAlgorithms().forEach((checksumAlgorithm) => {\n runtimeConfig[checksumAlgorithm.algorithmId()] = checksumAlgorithm.checksumConstructor();\n });\n return runtimeConfig;\n}, \"resolveChecksumRuntimeConfig\");\n\n// src/extensions/defaultClientConfiguration.ts\nvar getDefaultClientConfiguration = /* @__PURE__ */ __name((runtimeConfig) => {\n return {\n ...getChecksumConfiguration(runtimeConfig)\n };\n}, \"getDefaultClientConfiguration\");\nvar resolveDefaultRuntimeConfig = /* @__PURE__ */ __name((config) => {\n return {\n ...resolveChecksumRuntimeConfig(config)\n };\n}, \"resolveDefaultRuntimeConfig\");\n\n// src/http.ts\nvar FieldPosition = /* @__PURE__ */ ((FieldPosition2) => {\n FieldPosition2[FieldPosition2[\"HEADER\"] = 0] = \"HEADER\";\n FieldPosition2[FieldPosition2[\"TRAILER\"] = 1] = \"TRAILER\";\n return FieldPosition2;\n})(FieldPosition || {});\n\n// src/middleware.ts\nvar SMITHY_CONTEXT_KEY = \"__smithy_context\";\n\n// src/profile.ts\nvar IniSectionType = /* @__PURE__ */ ((IniSectionType2) => {\n IniSectionType2[\"PROFILE\"] = \"profile\";\n IniSectionType2[\"SSO_SESSION\"] = \"sso-session\";\n IniSectionType2[\"SERVICES\"] = \"services\";\n return IniSectionType2;\n})(IniSectionType || {});\n\n// src/transfer.ts\nvar RequestHandlerProtocol = /* @__PURE__ */ ((RequestHandlerProtocol2) => {\n RequestHandlerProtocol2[\"HTTP_0_9\"] = \"http/0.9\";\n RequestHandlerProtocol2[\"HTTP_1_0\"] = \"http/1.0\";\n RequestHandlerProtocol2[\"TDS_8_0\"] = \"tds/8.0\";\n return RequestHandlerProtocol2;\n})(RequestHandlerProtocol || {});\n// Annotate the CommonJS export names for ESM import in node:\n\n0 && (module.exports = {\n HttpAuthLocation,\n HttpApiKeyAuthLocation,\n EndpointURLScheme,\n AlgorithmId,\n getDefaultClientConfiguration,\n resolveDefaultRuntimeConfig,\n FieldPosition,\n SMITHY_CONTEXT_KEY,\n IniSectionType,\n RequestHandlerProtocol\n});\n\n","var __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __name = (target, value) => __defProp(target, \"name\", { value, configurable: true });\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n};\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\n\n// src/index.ts\nvar src_exports = {};\n__export(src_exports, {\n parseUrl: () => parseUrl\n});\nmodule.exports = __toCommonJS(src_exports);\nvar import_querystring_parser = require(\"@smithy/querystring-parser\");\nvar parseUrl = /* @__PURE__ */ __name((url) => {\n if (typeof url === \"string\") {\n return parseUrl(new URL(url));\n }\n const { hostname, pathname, port, protocol, search } = url;\n let query;\n if (search) {\n query = (0, import_querystring_parser.parseQueryString)(search);\n }\n return {\n hostname,\n port: port ? parseInt(port) : void 0,\n protocol,\n path: pathname,\n query\n };\n}, \"parseUrl\");\n// Annotate the CommonJS export names for ESM import in node:\n\n0 && (module.exports = {\n parseUrl\n});\n\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.fromBase64 = void 0;\nconst util_buffer_from_1 = require(\"@smithy/util-buffer-from\");\nconst BASE64_REGEX = /^[A-Za-z0-9+/]*={0,2}$/;\nconst fromBase64 = (input) => {\n if ((input.length * 3) % 4 !== 0) {\n throw new TypeError(`Incorrect padding on base64 string.`);\n }\n if (!BASE64_REGEX.exec(input)) {\n throw new TypeError(`Invalid base64 string.`);\n }\n const buffer = (0, util_buffer_from_1.fromString)(input, \"base64\");\n return new Uint8Array(buffer.buffer, buffer.byteOffset, buffer.byteLength);\n};\nexports.fromBase64 = fromBase64;\n","var __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, \"default\"), secondTarget && __copyProps(secondTarget, mod, \"default\"));\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\n\n// src/index.ts\nvar src_exports = {};\nmodule.exports = __toCommonJS(src_exports);\n__reExport(src_exports, require(\"././fromBase64\"), module.exports);\n__reExport(src_exports, require(\"././toBase64\"), module.exports);\n// Annotate the CommonJS export names for ESM import in node:\n\n0 && (module.exports = {\n fromBase64,\n toBase64\n});\n\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.toBase64 = void 0;\nconst util_buffer_from_1 = require(\"@smithy/util-buffer-from\");\nconst util_utf8_1 = require(\"@smithy/util-utf8\");\nconst toBase64 = (_input) => {\n let input;\n if (typeof _input === \"string\") {\n input = (0, util_utf8_1.fromUtf8)(_input);\n }\n else {\n input = _input;\n }\n if (typeof input !== \"object\" || typeof input.byteOffset !== \"number\" || typeof input.byteLength !== \"number\") {\n throw new Error(\"@smithy/util-base64: toBase64 encoder function only accepts string | Uint8Array.\");\n }\n return (0, util_buffer_from_1.fromArrayBuffer)(input.buffer, input.byteOffset, input.byteLength).toString(\"base64\");\n};\nexports.toBase64 = toBase64;\n","var __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __name = (target, value) => __defProp(target, \"name\", { value, configurable: true });\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n};\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\n\n// src/index.ts\nvar src_exports = {};\n__export(src_exports, {\n calculateBodyLength: () => calculateBodyLength\n});\nmodule.exports = __toCommonJS(src_exports);\n\n// src/calculateBodyLength.ts\nvar import_fs = require(\"fs\");\nvar calculateBodyLength = /* @__PURE__ */ __name((body) => {\n if (!body) {\n return 0;\n }\n if (typeof body === \"string\") {\n return Buffer.byteLength(body);\n } else if (typeof body.byteLength === \"number\") {\n return body.byteLength;\n } else if (typeof body.size === \"number\") {\n return body.size;\n } else if (typeof body.start === \"number\" && typeof body.end === \"number\") {\n return body.end + 1 - body.start;\n } else if (typeof body.path === \"string\" || Buffer.isBuffer(body.path)) {\n return (0, import_fs.lstatSync)(body.path).size;\n } else if (typeof body.fd === \"number\") {\n return (0, import_fs.fstatSync)(body.fd).size;\n }\n throw new Error(`Body Length computation failed for ${body}`);\n}, \"calculateBodyLength\");\n// Annotate the CommonJS export names for ESM import in node:\n\n0 && (module.exports = {\n calculateBodyLength\n});\n\n","var __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __name = (target, value) => __defProp(target, \"name\", { value, configurable: true });\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n};\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\n\n// src/index.ts\nvar src_exports = {};\n__export(src_exports, {\n fromArrayBuffer: () => fromArrayBuffer,\n fromString: () => fromString\n});\nmodule.exports = __toCommonJS(src_exports);\nvar import_is_array_buffer = require(\"@smithy/is-array-buffer\");\nvar import_buffer = require(\"buffer\");\nvar fromArrayBuffer = /* @__PURE__ */ __name((input, offset = 0, length = input.byteLength - offset) => {\n if (!(0, import_is_array_buffer.isArrayBuffer)(input)) {\n throw new TypeError(`The \"input\" argument must be ArrayBuffer. Received type ${typeof input} (${input})`);\n }\n return import_buffer.Buffer.from(input, offset, length);\n}, \"fromArrayBuffer\");\nvar fromString = /* @__PURE__ */ __name((input, encoding) => {\n if (typeof input !== \"string\") {\n throw new TypeError(`The \"input\" argument must be of type string. Received type ${typeof input} (${input})`);\n }\n return encoding ? import_buffer.Buffer.from(input, encoding) : import_buffer.Buffer.from(input);\n}, \"fromString\");\n// Annotate the CommonJS export names for ESM import in node:\n\n0 && (module.exports = {\n fromArrayBuffer,\n fromString\n});\n\n","var __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __name = (target, value) => __defProp(target, \"name\", { value, configurable: true });\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n};\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\n\n// src/index.ts\nvar src_exports = {};\n__export(src_exports, {\n SelectorType: () => SelectorType,\n booleanSelector: () => booleanSelector,\n numberSelector: () => numberSelector\n});\nmodule.exports = __toCommonJS(src_exports);\n\n// src/booleanSelector.ts\nvar booleanSelector = /* @__PURE__ */ __name((obj, key, type) => {\n if (!(key in obj))\n return void 0;\n if (obj[key] === \"true\")\n return true;\n if (obj[key] === \"false\")\n return false;\n throw new Error(`Cannot load ${type} \"${key}\". Expected \"true\" or \"false\", got ${obj[key]}.`);\n}, \"booleanSelector\");\n\n// src/numberSelector.ts\nvar numberSelector = /* @__PURE__ */ __name((obj, key, type) => {\n if (!(key in obj))\n return void 0;\n const numberValue = parseInt(obj[key], 10);\n if (Number.isNaN(numberValue)) {\n throw new TypeError(`Cannot load ${type} '${key}'. Expected number, got '${obj[key]}'.`);\n }\n return numberValue;\n}, \"numberSelector\");\n\n// src/types.ts\nvar SelectorType = /* @__PURE__ */ ((SelectorType2) => {\n SelectorType2[\"ENV\"] = \"env\";\n SelectorType2[\"CONFIG\"] = \"shared config entry\";\n return SelectorType2;\n})(SelectorType || {});\n// Annotate the CommonJS export names for ESM import in node:\n\n0 && (module.exports = {\n booleanSelector,\n numberSelector,\n SelectorType\n});\n\n","var __create = Object.create;\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __getProtoOf = Object.getPrototypeOf;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __name = (target, value) => __defProp(target, \"name\", { value, configurable: true });\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n};\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(\n // If the importer is in node compatibility mode or this is not an ESM\n // file that has been converted to a CommonJS file using a Babel-\n // compatible transform (i.e. \"__esModule\" has not been set), then set\n // \"default\" to the CommonJS \"module.exports\" for node compatibility.\n isNodeMode || !mod || !mod.__esModule ? __defProp(target, \"default\", { value: mod, enumerable: true }) : target,\n mod\n));\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\n\n// src/index.ts\nvar src_exports = {};\n__export(src_exports, {\n resolveDefaultsModeConfig: () => resolveDefaultsModeConfig\n});\nmodule.exports = __toCommonJS(src_exports);\n\n// src/resolveDefaultsModeConfig.ts\nvar import_config_resolver = require(\"@smithy/config-resolver\");\nvar import_node_config_provider = require(\"@smithy/node-config-provider\");\nvar import_property_provider = require(\"@smithy/property-provider\");\n\n// src/constants.ts\nvar AWS_EXECUTION_ENV = \"AWS_EXECUTION_ENV\";\nvar AWS_REGION_ENV = \"AWS_REGION\";\nvar AWS_DEFAULT_REGION_ENV = \"AWS_DEFAULT_REGION\";\nvar ENV_IMDS_DISABLED = \"AWS_EC2_METADATA_DISABLED\";\nvar DEFAULTS_MODE_OPTIONS = [\"in-region\", \"cross-region\", \"mobile\", \"standard\", \"legacy\"];\nvar IMDS_REGION_PATH = \"/latest/meta-data/placement/region\";\n\n// src/defaultsModeConfig.ts\nvar AWS_DEFAULTS_MODE_ENV = \"AWS_DEFAULTS_MODE\";\nvar AWS_DEFAULTS_MODE_CONFIG = \"defaults_mode\";\nvar NODE_DEFAULTS_MODE_CONFIG_OPTIONS = {\n environmentVariableSelector: (env) => {\n return env[AWS_DEFAULTS_MODE_ENV];\n },\n configFileSelector: (profile) => {\n return profile[AWS_DEFAULTS_MODE_CONFIG];\n },\n default: \"legacy\"\n};\n\n// src/resolveDefaultsModeConfig.ts\nvar resolveDefaultsModeConfig = /* @__PURE__ */ __name(({\n region = (0, import_node_config_provider.loadConfig)(import_config_resolver.NODE_REGION_CONFIG_OPTIONS),\n defaultsMode = (0, import_node_config_provider.loadConfig)(NODE_DEFAULTS_MODE_CONFIG_OPTIONS)\n} = {}) => (0, import_property_provider.memoize)(async () => {\n const mode = typeof defaultsMode === \"function\" ? await defaultsMode() : defaultsMode;\n switch (mode?.toLowerCase()) {\n case \"auto\":\n return resolveNodeDefaultsModeAuto(region);\n case \"in-region\":\n case \"cross-region\":\n case \"mobile\":\n case \"standard\":\n case \"legacy\":\n return Promise.resolve(mode?.toLocaleLowerCase());\n case void 0:\n return Promise.resolve(\"legacy\");\n default:\n throw new Error(\n `Invalid parameter for \"defaultsMode\", expect ${DEFAULTS_MODE_OPTIONS.join(\", \")}, got ${mode}`\n );\n }\n}), \"resolveDefaultsModeConfig\");\nvar resolveNodeDefaultsModeAuto = /* @__PURE__ */ __name(async (clientRegion) => {\n if (clientRegion) {\n const resolvedRegion = typeof clientRegion === \"function\" ? await clientRegion() : clientRegion;\n const inferredRegion = await inferPhysicalRegion();\n if (!inferredRegion) {\n return \"standard\";\n }\n if (resolvedRegion === inferredRegion) {\n return \"in-region\";\n } else {\n return \"cross-region\";\n }\n }\n return \"standard\";\n}, \"resolveNodeDefaultsModeAuto\");\nvar inferPhysicalRegion = /* @__PURE__ */ __name(async () => {\n if (process.env[AWS_EXECUTION_ENV] && (process.env[AWS_REGION_ENV] || process.env[AWS_DEFAULT_REGION_ENV])) {\n return process.env[AWS_REGION_ENV] ?? process.env[AWS_DEFAULT_REGION_ENV];\n }\n if (!process.env[ENV_IMDS_DISABLED]) {\n try {\n const { getInstanceMetadataEndpoint, httpRequest } = await Promise.resolve().then(() => __toESM(require(\"@smithy/credential-provider-imds\")));\n const endpoint = await getInstanceMetadataEndpoint();\n return (await httpRequest({ ...endpoint, path: IMDS_REGION_PATH })).toString();\n } catch (e) {\n }\n }\n}, \"inferPhysicalRegion\");\n// Annotate the CommonJS export names for ESM import in node:\n\n0 && (module.exports = {\n resolveDefaultsModeConfig\n});\n\n","var __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __name = (target, value) => __defProp(target, \"name\", { value, configurable: true });\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n};\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\n\n// src/index.ts\nvar src_exports = {};\n__export(src_exports, {\n EndpointCache: () => EndpointCache,\n EndpointError: () => EndpointError,\n customEndpointFunctions: () => customEndpointFunctions,\n isIpAddress: () => isIpAddress,\n isValidHostLabel: () => isValidHostLabel,\n resolveEndpoint: () => resolveEndpoint\n});\nmodule.exports = __toCommonJS(src_exports);\n\n// src/cache/EndpointCache.ts\nvar EndpointCache = class {\n /**\n * @param [size] - desired average maximum capacity. A buffer of 10 additional keys will be allowed\n * before keys are dropped.\n * @param [params] - list of params to consider as part of the cache key.\n *\n * If the params list is not populated, no caching will happen.\n * This may be out of order depending on how the object is created and arrives to this class.\n */\n constructor({ size, params }) {\n this.data = /* @__PURE__ */ new Map();\n this.parameters = [];\n this.capacity = size ?? 50;\n if (params) {\n this.parameters = params;\n }\n }\n static {\n __name(this, \"EndpointCache\");\n }\n /**\n * @param endpointParams - query for endpoint.\n * @param resolver - provider of the value if not present.\n * @returns endpoint corresponding to the query.\n */\n get(endpointParams, resolver) {\n const key = this.hash(endpointParams);\n if (key === false) {\n return resolver();\n }\n if (!this.data.has(key)) {\n if (this.data.size > this.capacity + 10) {\n const keys = this.data.keys();\n let i = 0;\n while (true) {\n const { value, done } = keys.next();\n this.data.delete(value);\n if (done || ++i > 10) {\n break;\n }\n }\n }\n this.data.set(key, resolver());\n }\n return this.data.get(key);\n }\n size() {\n return this.data.size;\n }\n /**\n * @returns cache key or false if not cachable.\n */\n hash(endpointParams) {\n let buffer = \"\";\n const { parameters } = this;\n if (parameters.length === 0) {\n return false;\n }\n for (const param of parameters) {\n const val = String(endpointParams[param] ?? \"\");\n if (val.includes(\"|;\")) {\n return false;\n }\n buffer += val + \"|;\";\n }\n return buffer;\n }\n};\n\n// src/lib/isIpAddress.ts\nvar IP_V4_REGEX = new RegExp(\n `^(?: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}$`\n);\nvar isIpAddress = /* @__PURE__ */ __name((value) => IP_V4_REGEX.test(value) || value.startsWith(\"[\") && value.endsWith(\"]\"), \"isIpAddress\");\n\n// src/lib/isValidHostLabel.ts\nvar VALID_HOST_LABEL_REGEX = new RegExp(`^(?!.*-$)(?!-)[a-zA-Z0-9-]{1,63}$`);\nvar isValidHostLabel = /* @__PURE__ */ __name((value, allowSubDomains = false) => {\n if (!allowSubDomains) {\n return VALID_HOST_LABEL_REGEX.test(value);\n }\n const labels = value.split(\".\");\n for (const label of labels) {\n if (!isValidHostLabel(label)) {\n return false;\n }\n }\n return true;\n}, \"isValidHostLabel\");\n\n// src/utils/customEndpointFunctions.ts\nvar customEndpointFunctions = {};\n\n// src/debug/debugId.ts\nvar debugId = \"endpoints\";\n\n// src/debug/toDebugString.ts\nfunction toDebugString(input) {\n if (typeof input !== \"object\" || input == null) {\n return input;\n }\n if (\"ref\" in input) {\n return `$${toDebugString(input.ref)}`;\n }\n if (\"fn\" in input) {\n return `${input.fn}(${(input.argv || []).map(toDebugString).join(\", \")})`;\n }\n return JSON.stringify(input, null, 2);\n}\n__name(toDebugString, \"toDebugString\");\n\n// src/types/EndpointError.ts\nvar EndpointError = class extends Error {\n static {\n __name(this, \"EndpointError\");\n }\n constructor(message) {\n super(message);\n this.name = \"EndpointError\";\n }\n};\n\n// src/lib/booleanEquals.ts\nvar booleanEquals = /* @__PURE__ */ __name((value1, value2) => value1 === value2, \"booleanEquals\");\n\n// src/lib/getAttrPathList.ts\nvar getAttrPathList = /* @__PURE__ */ __name((path) => {\n const parts = path.split(\".\");\n const pathList = [];\n for (const part of parts) {\n const squareBracketIndex = part.indexOf(\"[\");\n if (squareBracketIndex !== -1) {\n if (part.indexOf(\"]\") !== part.length - 1) {\n throw new EndpointError(`Path: '${path}' does not end with ']'`);\n }\n const arrayIndex = part.slice(squareBracketIndex + 1, -1);\n if (Number.isNaN(parseInt(arrayIndex))) {\n throw new EndpointError(`Invalid array index: '${arrayIndex}' in path: '${path}'`);\n }\n if (squareBracketIndex !== 0) {\n pathList.push(part.slice(0, squareBracketIndex));\n }\n pathList.push(arrayIndex);\n } else {\n pathList.push(part);\n }\n }\n return pathList;\n}, \"getAttrPathList\");\n\n// src/lib/getAttr.ts\nvar getAttr = /* @__PURE__ */ __name((value, path) => getAttrPathList(path).reduce((acc, index) => {\n if (typeof acc !== \"object\") {\n throw new EndpointError(`Index '${index}' in '${path}' not found in '${JSON.stringify(value)}'`);\n } else if (Array.isArray(acc)) {\n return acc[parseInt(index)];\n }\n return acc[index];\n}, value), \"getAttr\");\n\n// src/lib/isSet.ts\nvar isSet = /* @__PURE__ */ __name((value) => value != null, \"isSet\");\n\n// src/lib/not.ts\nvar not = /* @__PURE__ */ __name((value) => !value, \"not\");\n\n// src/lib/parseURL.ts\nvar import_types3 = require(\"@smithy/types\");\nvar DEFAULT_PORTS = {\n [import_types3.EndpointURLScheme.HTTP]: 80,\n [import_types3.EndpointURLScheme.HTTPS]: 443\n};\nvar parseURL = /* @__PURE__ */ __name((value) => {\n const whatwgURL = (() => {\n try {\n if (value instanceof URL) {\n return value;\n }\n if (typeof value === \"object\" && \"hostname\" in value) {\n const { hostname: hostname2, port, protocol: protocol2 = \"\", path = \"\", query = {} } = value;\n const url = new URL(`${protocol2}//${hostname2}${port ? `:${port}` : \"\"}${path}`);\n url.search = Object.entries(query).map(([k, v]) => `${k}=${v}`).join(\"&\");\n return url;\n }\n return new URL(value);\n } catch (error) {\n return null;\n }\n })();\n if (!whatwgURL) {\n console.error(`Unable to parse ${JSON.stringify(value)} as a whatwg URL.`);\n return null;\n }\n const urlString = whatwgURL.href;\n const { host, hostname, pathname, protocol, search } = whatwgURL;\n if (search) {\n return null;\n }\n const scheme = protocol.slice(0, -1);\n if (!Object.values(import_types3.EndpointURLScheme).includes(scheme)) {\n return null;\n }\n const isIp = isIpAddress(hostname);\n const inputContainsDefaultPort = urlString.includes(`${host}:${DEFAULT_PORTS[scheme]}`) || typeof value === \"string\" && value.includes(`${host}:${DEFAULT_PORTS[scheme]}`);\n const authority = `${host}${inputContainsDefaultPort ? `:${DEFAULT_PORTS[scheme]}` : ``}`;\n return {\n scheme,\n authority,\n path: pathname,\n normalizedPath: pathname.endsWith(\"/\") ? pathname : `${pathname}/`,\n isIp\n };\n}, \"parseURL\");\n\n// src/lib/stringEquals.ts\nvar stringEquals = /* @__PURE__ */ __name((value1, value2) => value1 === value2, \"stringEquals\");\n\n// src/lib/substring.ts\nvar substring = /* @__PURE__ */ __name((input, start, stop, reverse) => {\n if (start >= stop || input.length < stop) {\n return null;\n }\n if (!reverse) {\n return input.substring(start, stop);\n }\n return input.substring(input.length - stop, input.length - start);\n}, \"substring\");\n\n// src/lib/uriEncode.ts\nvar uriEncode = /* @__PURE__ */ __name((value) => encodeURIComponent(value).replace(/[!*'()]/g, (c) => `%${c.charCodeAt(0).toString(16).toUpperCase()}`), \"uriEncode\");\n\n// src/utils/endpointFunctions.ts\nvar endpointFunctions = {\n booleanEquals,\n getAttr,\n isSet,\n isValidHostLabel,\n not,\n parseURL,\n stringEquals,\n substring,\n uriEncode\n};\n\n// src/utils/evaluateTemplate.ts\nvar evaluateTemplate = /* @__PURE__ */ __name((template, options) => {\n const evaluatedTemplateArr = [];\n const templateContext = {\n ...options.endpointParams,\n ...options.referenceRecord\n };\n let currentIndex = 0;\n while (currentIndex < template.length) {\n const openingBraceIndex = template.indexOf(\"{\", currentIndex);\n if (openingBraceIndex === -1) {\n evaluatedTemplateArr.push(template.slice(currentIndex));\n break;\n }\n evaluatedTemplateArr.push(template.slice(currentIndex, openingBraceIndex));\n const closingBraceIndex = template.indexOf(\"}\", openingBraceIndex);\n if (closingBraceIndex === -1) {\n evaluatedTemplateArr.push(template.slice(openingBraceIndex));\n break;\n }\n if (template[openingBraceIndex + 1] === \"{\" && template[closingBraceIndex + 1] === \"}\") {\n evaluatedTemplateArr.push(template.slice(openingBraceIndex + 1, closingBraceIndex));\n currentIndex = closingBraceIndex + 2;\n }\n const parameterName = template.substring(openingBraceIndex + 1, closingBraceIndex);\n if (parameterName.includes(\"#\")) {\n const [refName, attrName] = parameterName.split(\"#\");\n evaluatedTemplateArr.push(getAttr(templateContext[refName], attrName));\n } else {\n evaluatedTemplateArr.push(templateContext[parameterName]);\n }\n currentIndex = closingBraceIndex + 1;\n }\n return evaluatedTemplateArr.join(\"\");\n}, \"evaluateTemplate\");\n\n// src/utils/getReferenceValue.ts\nvar getReferenceValue = /* @__PURE__ */ __name(({ ref }, options) => {\n const referenceRecord = {\n ...options.endpointParams,\n ...options.referenceRecord\n };\n return referenceRecord[ref];\n}, \"getReferenceValue\");\n\n// src/utils/evaluateExpression.ts\nvar evaluateExpression = /* @__PURE__ */ __name((obj, keyName, options) => {\n if (typeof obj === \"string\") {\n return evaluateTemplate(obj, options);\n } else if (obj[\"fn\"]) {\n return callFunction(obj, options);\n } else if (obj[\"ref\"]) {\n return getReferenceValue(obj, options);\n }\n throw new EndpointError(`'${keyName}': ${String(obj)} is not a string, function or reference.`);\n}, \"evaluateExpression\");\n\n// src/utils/callFunction.ts\nvar callFunction = /* @__PURE__ */ __name(({ fn, argv }, options) => {\n const evaluatedArgs = argv.map(\n (arg) => [\"boolean\", \"number\"].includes(typeof arg) ? arg : evaluateExpression(arg, \"arg\", options)\n );\n const fnSegments = fn.split(\".\");\n if (fnSegments[0] in customEndpointFunctions && fnSegments[1] != null) {\n return customEndpointFunctions[fnSegments[0]][fnSegments[1]](...evaluatedArgs);\n }\n return endpointFunctions[fn](...evaluatedArgs);\n}, \"callFunction\");\n\n// src/utils/evaluateCondition.ts\nvar evaluateCondition = /* @__PURE__ */ __name(({ assign, ...fnArgs }, options) => {\n if (assign && assign in options.referenceRecord) {\n throw new EndpointError(`'${assign}' is already defined in Reference Record.`);\n }\n const value = callFunction(fnArgs, options);\n options.logger?.debug?.(`${debugId} evaluateCondition: ${toDebugString(fnArgs)} = ${toDebugString(value)}`);\n return {\n result: value === \"\" ? true : !!value,\n ...assign != null && { toAssign: { name: assign, value } }\n };\n}, \"evaluateCondition\");\n\n// src/utils/evaluateConditions.ts\nvar evaluateConditions = /* @__PURE__ */ __name((conditions = [], options) => {\n const conditionsReferenceRecord = {};\n for (const condition of conditions) {\n const { result, toAssign } = evaluateCondition(condition, {\n ...options,\n referenceRecord: {\n ...options.referenceRecord,\n ...conditionsReferenceRecord\n }\n });\n if (!result) {\n return { result };\n }\n if (toAssign) {\n conditionsReferenceRecord[toAssign.name] = toAssign.value;\n options.logger?.debug?.(`${debugId} assign: ${toAssign.name} := ${toDebugString(toAssign.value)}`);\n }\n }\n return { result: true, referenceRecord: conditionsReferenceRecord };\n}, \"evaluateConditions\");\n\n// src/utils/getEndpointHeaders.ts\nvar getEndpointHeaders = /* @__PURE__ */ __name((headers, options) => Object.entries(headers).reduce(\n (acc, [headerKey, headerVal]) => ({\n ...acc,\n [headerKey]: headerVal.map((headerValEntry) => {\n const processedExpr = evaluateExpression(headerValEntry, \"Header value entry\", options);\n if (typeof processedExpr !== \"string\") {\n throw new EndpointError(`Header '${headerKey}' value '${processedExpr}' is not a string`);\n }\n return processedExpr;\n })\n }),\n {}\n), \"getEndpointHeaders\");\n\n// src/utils/getEndpointProperty.ts\nvar getEndpointProperty = /* @__PURE__ */ __name((property, options) => {\n if (Array.isArray(property)) {\n return property.map((propertyEntry) => getEndpointProperty(propertyEntry, options));\n }\n switch (typeof property) {\n case \"string\":\n return evaluateTemplate(property, options);\n case \"object\":\n if (property === null) {\n throw new EndpointError(`Unexpected endpoint property: ${property}`);\n }\n return getEndpointProperties(property, options);\n case \"boolean\":\n return property;\n default:\n throw new EndpointError(`Unexpected endpoint property type: ${typeof property}`);\n }\n}, \"getEndpointProperty\");\n\n// src/utils/getEndpointProperties.ts\nvar getEndpointProperties = /* @__PURE__ */ __name((properties, options) => Object.entries(properties).reduce(\n (acc, [propertyKey, propertyVal]) => ({\n ...acc,\n [propertyKey]: getEndpointProperty(propertyVal, options)\n }),\n {}\n), \"getEndpointProperties\");\n\n// src/utils/getEndpointUrl.ts\nvar getEndpointUrl = /* @__PURE__ */ __name((endpointUrl, options) => {\n const expression = evaluateExpression(endpointUrl, \"Endpoint URL\", options);\n if (typeof expression === \"string\") {\n try {\n return new URL(expression);\n } catch (error) {\n console.error(`Failed to construct URL with ${expression}`, error);\n throw error;\n }\n }\n throw new EndpointError(`Endpoint URL must be a string, got ${typeof expression}`);\n}, \"getEndpointUrl\");\n\n// src/utils/evaluateEndpointRule.ts\nvar evaluateEndpointRule = /* @__PURE__ */ __name((endpointRule, options) => {\n const { conditions, endpoint } = endpointRule;\n const { result, referenceRecord } = evaluateConditions(conditions, options);\n if (!result) {\n return;\n }\n const endpointRuleOptions = {\n ...options,\n referenceRecord: { ...options.referenceRecord, ...referenceRecord }\n };\n const { url, properties, headers } = endpoint;\n options.logger?.debug?.(`${debugId} Resolving endpoint from template: ${toDebugString(endpoint)}`);\n return {\n ...headers != void 0 && {\n headers: getEndpointHeaders(headers, endpointRuleOptions)\n },\n ...properties != void 0 && {\n properties: getEndpointProperties(properties, endpointRuleOptions)\n },\n url: getEndpointUrl(url, endpointRuleOptions)\n };\n}, \"evaluateEndpointRule\");\n\n// src/utils/evaluateErrorRule.ts\nvar evaluateErrorRule = /* @__PURE__ */ __name((errorRule, options) => {\n const { conditions, error } = errorRule;\n const { result, referenceRecord } = evaluateConditions(conditions, options);\n if (!result) {\n return;\n }\n throw new EndpointError(\n evaluateExpression(error, \"Error\", {\n ...options,\n referenceRecord: { ...options.referenceRecord, ...referenceRecord }\n })\n );\n}, \"evaluateErrorRule\");\n\n// src/utils/evaluateTreeRule.ts\nvar evaluateTreeRule = /* @__PURE__ */ __name((treeRule, options) => {\n const { conditions, rules } = treeRule;\n const { result, referenceRecord } = evaluateConditions(conditions, options);\n if (!result) {\n return;\n }\n return evaluateRules(rules, {\n ...options,\n referenceRecord: { ...options.referenceRecord, ...referenceRecord }\n });\n}, \"evaluateTreeRule\");\n\n// src/utils/evaluateRules.ts\nvar evaluateRules = /* @__PURE__ */ __name((rules, options) => {\n for (const rule of rules) {\n if (rule.type === \"endpoint\") {\n const endpointOrUndefined = evaluateEndpointRule(rule, options);\n if (endpointOrUndefined) {\n return endpointOrUndefined;\n }\n } else if (rule.type === \"error\") {\n evaluateErrorRule(rule, options);\n } else if (rule.type === \"tree\") {\n const endpointOrUndefined = evaluateTreeRule(rule, options);\n if (endpointOrUndefined) {\n return endpointOrUndefined;\n }\n } else {\n throw new EndpointError(`Unknown endpoint rule: ${rule}`);\n }\n }\n throw new EndpointError(`Rules evaluation failed`);\n}, \"evaluateRules\");\n\n// src/resolveEndpoint.ts\nvar resolveEndpoint = /* @__PURE__ */ __name((ruleSetObject, options) => {\n const { endpointParams, logger } = options;\n const { parameters, rules } = ruleSetObject;\n options.logger?.debug?.(`${debugId} Initial EndpointParams: ${toDebugString(endpointParams)}`);\n const paramsWithDefault = Object.entries(parameters).filter(([, v]) => v.default != null).map(([k, v]) => [k, v.default]);\n if (paramsWithDefault.length > 0) {\n for (const [paramKey, paramDefaultValue] of paramsWithDefault) {\n endpointParams[paramKey] = endpointParams[paramKey] ?? paramDefaultValue;\n }\n }\n const requiredParams = Object.entries(parameters).filter(([, v]) => v.required).map(([k]) => k);\n for (const requiredParam of requiredParams) {\n if (endpointParams[requiredParam] == null) {\n throw new EndpointError(`Missing required parameter: '${requiredParam}'`);\n }\n }\n const endpoint = evaluateRules(rules, { endpointParams, logger, referenceRecord: {} });\n options.logger?.debug?.(`${debugId} Resolved endpoint: ${toDebugString(endpoint)}`);\n return endpoint;\n}, \"resolveEndpoint\");\n// Annotate the CommonJS export names for ESM import in node:\n\n0 && (module.exports = {\n EndpointCache,\n isIpAddress,\n isValidHostLabel,\n customEndpointFunctions,\n resolveEndpoint,\n EndpointError\n});\n\n","var __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __name = (target, value) => __defProp(target, \"name\", { value, configurable: true });\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n};\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\n\n// src/index.ts\nvar src_exports = {};\n__export(src_exports, {\n fromHex: () => fromHex,\n toHex: () => toHex\n});\nmodule.exports = __toCommonJS(src_exports);\nvar SHORT_TO_HEX = {};\nvar HEX_TO_SHORT = {};\nfor (let i = 0; i < 256; i++) {\n let encodedByte = i.toString(16).toLowerCase();\n if (encodedByte.length === 1) {\n encodedByte = `0${encodedByte}`;\n }\n SHORT_TO_HEX[i] = encodedByte;\n HEX_TO_SHORT[encodedByte] = i;\n}\nfunction fromHex(encoded) {\n if (encoded.length % 2 !== 0) {\n throw new Error(\"Hex encoded strings must have an even number length\");\n }\n const out = new Uint8Array(encoded.length / 2);\n for (let i = 0; i < encoded.length; i += 2) {\n const encodedByte = encoded.slice(i, i + 2).toLowerCase();\n if (encodedByte in HEX_TO_SHORT) {\n out[i / 2] = HEX_TO_SHORT[encodedByte];\n } else {\n throw new Error(`Cannot decode unrecognized sequence ${encodedByte} as hexadecimal`);\n }\n }\n return out;\n}\n__name(fromHex, \"fromHex\");\nfunction toHex(bytes) {\n let out = \"\";\n for (let i = 0; i < bytes.byteLength; i++) {\n out += SHORT_TO_HEX[bytes[i]];\n }\n return out;\n}\n__name(toHex, \"toHex\");\n// Annotate the CommonJS export names for ESM import in node:\n\n0 && (module.exports = {\n fromHex,\n toHex\n});\n\n","var __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __name = (target, value) => __defProp(target, \"name\", { value, configurable: true });\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n};\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\n\n// src/index.ts\nvar src_exports = {};\n__export(src_exports, {\n getSmithyContext: () => getSmithyContext,\n normalizeProvider: () => normalizeProvider\n});\nmodule.exports = __toCommonJS(src_exports);\n\n// src/getSmithyContext.ts\nvar import_types = require(\"@smithy/types\");\nvar getSmithyContext = /* @__PURE__ */ __name((context) => context[import_types.SMITHY_CONTEXT_KEY] || (context[import_types.SMITHY_CONTEXT_KEY] = {}), \"getSmithyContext\");\n\n// src/normalizeProvider.ts\nvar normalizeProvider = /* @__PURE__ */ __name((input) => {\n if (typeof input === \"function\")\n return input;\n const promisified = Promise.resolve(input);\n return () => promisified;\n}, \"normalizeProvider\");\n// Annotate the CommonJS export names for ESM import in node:\n\n0 && (module.exports = {\n getSmithyContext,\n normalizeProvider\n});\n\n","var __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __name = (target, value) => __defProp(target, \"name\", { value, configurable: true });\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n};\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\n\n// src/index.ts\nvar src_exports = {};\n__export(src_exports, {\n AdaptiveRetryStrategy: () => AdaptiveRetryStrategy,\n ConfiguredRetryStrategy: () => ConfiguredRetryStrategy,\n DEFAULT_MAX_ATTEMPTS: () => DEFAULT_MAX_ATTEMPTS,\n DEFAULT_RETRY_DELAY_BASE: () => DEFAULT_RETRY_DELAY_BASE,\n DEFAULT_RETRY_MODE: () => DEFAULT_RETRY_MODE,\n DefaultRateLimiter: () => DefaultRateLimiter,\n INITIAL_RETRY_TOKENS: () => INITIAL_RETRY_TOKENS,\n INVOCATION_ID_HEADER: () => INVOCATION_ID_HEADER,\n MAXIMUM_RETRY_DELAY: () => MAXIMUM_RETRY_DELAY,\n NO_RETRY_INCREMENT: () => NO_RETRY_INCREMENT,\n REQUEST_HEADER: () => REQUEST_HEADER,\n RETRY_COST: () => RETRY_COST,\n RETRY_MODES: () => RETRY_MODES,\n StandardRetryStrategy: () => StandardRetryStrategy,\n THROTTLING_RETRY_DELAY_BASE: () => THROTTLING_RETRY_DELAY_BASE,\n TIMEOUT_RETRY_COST: () => TIMEOUT_RETRY_COST\n});\nmodule.exports = __toCommonJS(src_exports);\n\n// src/config.ts\nvar RETRY_MODES = /* @__PURE__ */ ((RETRY_MODES2) => {\n RETRY_MODES2[\"STANDARD\"] = \"standard\";\n RETRY_MODES2[\"ADAPTIVE\"] = \"adaptive\";\n return RETRY_MODES2;\n})(RETRY_MODES || {});\nvar DEFAULT_MAX_ATTEMPTS = 3;\nvar DEFAULT_RETRY_MODE = \"standard\" /* STANDARD */;\n\n// src/DefaultRateLimiter.ts\nvar import_service_error_classification = require(\"@smithy/service-error-classification\");\nvar DefaultRateLimiter = class _DefaultRateLimiter {\n constructor(options) {\n // Pre-set state variables\n this.currentCapacity = 0;\n this.enabled = false;\n this.lastMaxRate = 0;\n this.measuredTxRate = 0;\n this.requestCount = 0;\n this.lastTimestamp = 0;\n this.timeWindow = 0;\n this.beta = options?.beta ?? 0.7;\n this.minCapacity = options?.minCapacity ?? 1;\n this.minFillRate = options?.minFillRate ?? 0.5;\n this.scaleConstant = options?.scaleConstant ?? 0.4;\n this.smooth = options?.smooth ?? 0.8;\n const currentTimeInSeconds = this.getCurrentTimeInSeconds();\n this.lastThrottleTime = currentTimeInSeconds;\n this.lastTxRateBucket = Math.floor(this.getCurrentTimeInSeconds());\n this.fillRate = this.minFillRate;\n this.maxCapacity = this.minCapacity;\n }\n static {\n __name(this, \"DefaultRateLimiter\");\n }\n static {\n /**\n * Only used in testing.\n */\n this.setTimeoutFn = setTimeout;\n }\n getCurrentTimeInSeconds() {\n return Date.now() / 1e3;\n }\n async getSendToken() {\n return this.acquireTokenBucket(1);\n }\n async acquireTokenBucket(amount) {\n if (!this.enabled) {\n return;\n }\n this.refillTokenBucket();\n if (amount > this.currentCapacity) {\n const delay = (amount - this.currentCapacity) / this.fillRate * 1e3;\n await new Promise((resolve) => _DefaultRateLimiter.setTimeoutFn(resolve, delay));\n }\n this.currentCapacity = this.currentCapacity - amount;\n }\n refillTokenBucket() {\n const timestamp = this.getCurrentTimeInSeconds();\n if (!this.lastTimestamp) {\n this.lastTimestamp = timestamp;\n return;\n }\n const fillAmount = (timestamp - this.lastTimestamp) * this.fillRate;\n this.currentCapacity = Math.min(this.maxCapacity, this.currentCapacity + fillAmount);\n this.lastTimestamp = timestamp;\n }\n updateClientSendingRate(response) {\n let calculatedRate;\n this.updateMeasuredRate();\n if ((0, import_service_error_classification.isThrottlingError)(response)) {\n const rateToUse = !this.enabled ? this.measuredTxRate : Math.min(this.measuredTxRate, this.fillRate);\n this.lastMaxRate = rateToUse;\n this.calculateTimeWindow();\n this.lastThrottleTime = this.getCurrentTimeInSeconds();\n calculatedRate = this.cubicThrottle(rateToUse);\n this.enableTokenBucket();\n } else {\n this.calculateTimeWindow();\n calculatedRate = this.cubicSuccess(this.getCurrentTimeInSeconds());\n }\n const newRate = Math.min(calculatedRate, 2 * this.measuredTxRate);\n this.updateTokenBucketRate(newRate);\n }\n calculateTimeWindow() {\n this.timeWindow = this.getPrecise(Math.pow(this.lastMaxRate * (1 - this.beta) / this.scaleConstant, 1 / 3));\n }\n cubicThrottle(rateToUse) {\n return this.getPrecise(rateToUse * this.beta);\n }\n cubicSuccess(timestamp) {\n return this.getPrecise(\n this.scaleConstant * Math.pow(timestamp - this.lastThrottleTime - this.timeWindow, 3) + this.lastMaxRate\n );\n }\n enableTokenBucket() {\n this.enabled = true;\n }\n updateTokenBucketRate(newRate) {\n this.refillTokenBucket();\n this.fillRate = Math.max(newRate, this.minFillRate);\n this.maxCapacity = Math.max(newRate, this.minCapacity);\n this.currentCapacity = Math.min(this.currentCapacity, this.maxCapacity);\n }\n updateMeasuredRate() {\n const t = this.getCurrentTimeInSeconds();\n const timeBucket = Math.floor(t * 2) / 2;\n this.requestCount++;\n if (timeBucket > this.lastTxRateBucket) {\n const currentRate = this.requestCount / (timeBucket - this.lastTxRateBucket);\n this.measuredTxRate = this.getPrecise(currentRate * this.smooth + this.measuredTxRate * (1 - this.smooth));\n this.requestCount = 0;\n this.lastTxRateBucket = timeBucket;\n }\n }\n getPrecise(num) {\n return parseFloat(num.toFixed(8));\n }\n};\n\n// src/constants.ts\nvar DEFAULT_RETRY_DELAY_BASE = 100;\nvar MAXIMUM_RETRY_DELAY = 20 * 1e3;\nvar THROTTLING_RETRY_DELAY_BASE = 500;\nvar INITIAL_RETRY_TOKENS = 500;\nvar RETRY_COST = 5;\nvar TIMEOUT_RETRY_COST = 10;\nvar NO_RETRY_INCREMENT = 1;\nvar INVOCATION_ID_HEADER = \"amz-sdk-invocation-id\";\nvar REQUEST_HEADER = \"amz-sdk-request\";\n\n// src/defaultRetryBackoffStrategy.ts\nvar getDefaultRetryBackoffStrategy = /* @__PURE__ */ __name(() => {\n let delayBase = DEFAULT_RETRY_DELAY_BASE;\n const computeNextBackoffDelay = /* @__PURE__ */ __name((attempts) => {\n return Math.floor(Math.min(MAXIMUM_RETRY_DELAY, Math.random() * 2 ** attempts * delayBase));\n }, \"computeNextBackoffDelay\");\n const setDelayBase = /* @__PURE__ */ __name((delay) => {\n delayBase = delay;\n }, \"setDelayBase\");\n return {\n computeNextBackoffDelay,\n setDelayBase\n };\n}, \"getDefaultRetryBackoffStrategy\");\n\n// src/defaultRetryToken.ts\nvar createDefaultRetryToken = /* @__PURE__ */ __name(({\n retryDelay,\n retryCount,\n retryCost\n}) => {\n const getRetryCount = /* @__PURE__ */ __name(() => retryCount, \"getRetryCount\");\n const getRetryDelay = /* @__PURE__ */ __name(() => Math.min(MAXIMUM_RETRY_DELAY, retryDelay), \"getRetryDelay\");\n const getRetryCost = /* @__PURE__ */ __name(() => retryCost, \"getRetryCost\");\n return {\n getRetryCount,\n getRetryDelay,\n getRetryCost\n };\n}, \"createDefaultRetryToken\");\n\n// src/StandardRetryStrategy.ts\nvar StandardRetryStrategy = class {\n constructor(maxAttempts) {\n this.maxAttempts = maxAttempts;\n this.mode = \"standard\" /* STANDARD */;\n this.capacity = INITIAL_RETRY_TOKENS;\n this.retryBackoffStrategy = getDefaultRetryBackoffStrategy();\n this.maxAttemptsProvider = typeof maxAttempts === \"function\" ? maxAttempts : async () => maxAttempts;\n }\n static {\n __name(this, \"StandardRetryStrategy\");\n }\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n async acquireInitialRetryToken(retryTokenScope) {\n return createDefaultRetryToken({\n retryDelay: DEFAULT_RETRY_DELAY_BASE,\n retryCount: 0\n });\n }\n async refreshRetryTokenForRetry(token, errorInfo) {\n const maxAttempts = await this.getMaxAttempts();\n if (this.shouldRetry(token, errorInfo, maxAttempts)) {\n const errorType = errorInfo.errorType;\n this.retryBackoffStrategy.setDelayBase(\n errorType === \"THROTTLING\" ? THROTTLING_RETRY_DELAY_BASE : DEFAULT_RETRY_DELAY_BASE\n );\n const delayFromErrorType = this.retryBackoffStrategy.computeNextBackoffDelay(token.getRetryCount());\n const retryDelay = errorInfo.retryAfterHint ? Math.max(errorInfo.retryAfterHint.getTime() - Date.now() || 0, delayFromErrorType) : delayFromErrorType;\n const capacityCost = this.getCapacityCost(errorType);\n this.capacity -= capacityCost;\n return createDefaultRetryToken({\n retryDelay,\n retryCount: token.getRetryCount() + 1,\n retryCost: capacityCost\n });\n }\n throw new Error(\"No retry token available\");\n }\n recordSuccess(token) {\n this.capacity = Math.max(INITIAL_RETRY_TOKENS, this.capacity + (token.getRetryCost() ?? NO_RETRY_INCREMENT));\n }\n /**\n * @returns the current available retry capacity.\n *\n * This number decreases when retries are executed and refills when requests or retries succeed.\n */\n getCapacity() {\n return this.capacity;\n }\n async getMaxAttempts() {\n try {\n return await this.maxAttemptsProvider();\n } catch (error) {\n console.warn(`Max attempts provider could not resolve. Using default of ${DEFAULT_MAX_ATTEMPTS}`);\n return DEFAULT_MAX_ATTEMPTS;\n }\n }\n shouldRetry(tokenToRenew, errorInfo, maxAttempts) {\n const attempts = tokenToRenew.getRetryCount() + 1;\n return attempts < maxAttempts && this.capacity >= this.getCapacityCost(errorInfo.errorType) && this.isRetryableError(errorInfo.errorType);\n }\n getCapacityCost(errorType) {\n return errorType === \"TRANSIENT\" ? TIMEOUT_RETRY_COST : RETRY_COST;\n }\n isRetryableError(errorType) {\n return errorType === \"THROTTLING\" || errorType === \"TRANSIENT\";\n }\n};\n\n// src/AdaptiveRetryStrategy.ts\nvar AdaptiveRetryStrategy = class {\n constructor(maxAttemptsProvider, options) {\n this.maxAttemptsProvider = maxAttemptsProvider;\n this.mode = \"adaptive\" /* ADAPTIVE */;\n const { rateLimiter } = options ?? {};\n this.rateLimiter = rateLimiter ?? new DefaultRateLimiter();\n this.standardRetryStrategy = new StandardRetryStrategy(maxAttemptsProvider);\n }\n static {\n __name(this, \"AdaptiveRetryStrategy\");\n }\n async acquireInitialRetryToken(retryTokenScope) {\n await this.rateLimiter.getSendToken();\n return this.standardRetryStrategy.acquireInitialRetryToken(retryTokenScope);\n }\n async refreshRetryTokenForRetry(tokenToRenew, errorInfo) {\n this.rateLimiter.updateClientSendingRate(errorInfo);\n return this.standardRetryStrategy.refreshRetryTokenForRetry(tokenToRenew, errorInfo);\n }\n recordSuccess(token) {\n this.rateLimiter.updateClientSendingRate({});\n this.standardRetryStrategy.recordSuccess(token);\n }\n};\n\n// src/ConfiguredRetryStrategy.ts\nvar ConfiguredRetryStrategy = class extends StandardRetryStrategy {\n static {\n __name(this, \"ConfiguredRetryStrategy\");\n }\n /**\n * @param maxAttempts - the maximum number of retry attempts allowed.\n * e.g., if set to 3, then 4 total requests are possible.\n * @param computeNextBackoffDelay - a millisecond delay for each retry or a function that takes the retry attempt\n * and returns the delay.\n *\n * @example exponential backoff.\n * ```js\n * new Client({\n * retryStrategy: new ConfiguredRetryStrategy(3, (attempt) => attempt ** 2)\n * });\n * ```\n * @example constant delay.\n * ```js\n * new Client({\n * retryStrategy: new ConfiguredRetryStrategy(3, 2000)\n * });\n * ```\n */\n constructor(maxAttempts, computeNextBackoffDelay = DEFAULT_RETRY_DELAY_BASE) {\n super(typeof maxAttempts === \"function\" ? maxAttempts : async () => maxAttempts);\n if (typeof computeNextBackoffDelay === \"number\") {\n this.computeNextBackoffDelay = () => computeNextBackoffDelay;\n } else {\n this.computeNextBackoffDelay = computeNextBackoffDelay;\n }\n }\n async refreshRetryTokenForRetry(tokenToRenew, errorInfo) {\n const token = await super.refreshRetryTokenForRetry(tokenToRenew, errorInfo);\n token.getRetryDelay = () => this.computeNextBackoffDelay(token.getRetryCount());\n return token;\n }\n};\n// Annotate the CommonJS export names for ESM import in node:\n\n0 && (module.exports = {\n AdaptiveRetryStrategy,\n ConfiguredRetryStrategy,\n DefaultRateLimiter,\n StandardRetryStrategy,\n RETRY_MODES,\n DEFAULT_MAX_ATTEMPTS,\n DEFAULT_RETRY_MODE,\n DEFAULT_RETRY_DELAY_BASE,\n MAXIMUM_RETRY_DELAY,\n THROTTLING_RETRY_DELAY_BASE,\n INITIAL_RETRY_TOKENS,\n RETRY_COST,\n TIMEOUT_RETRY_COST,\n NO_RETRY_INCREMENT,\n INVOCATION_ID_HEADER,\n REQUEST_HEADER\n});\n\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.ByteArrayCollector = void 0;\nclass ByteArrayCollector {\n constructor(allocByteArray) {\n this.allocByteArray = allocByteArray;\n this.byteLength = 0;\n this.byteArrays = [];\n }\n push(byteArray) {\n this.byteArrays.push(byteArray);\n this.byteLength += byteArray.byteLength;\n }\n flush() {\n if (this.byteArrays.length === 1) {\n const bytes = this.byteArrays[0];\n this.reset();\n return bytes;\n }\n const aggregation = this.allocByteArray(this.byteLength);\n let cursor = 0;\n for (let i = 0; i < this.byteArrays.length; ++i) {\n const bytes = this.byteArrays[i];\n aggregation.set(bytes, cursor);\n cursor += bytes.byteLength;\n }\n this.reset();\n return aggregation;\n }\n reset() {\n this.byteArrays = [];\n this.byteLength = 0;\n }\n}\nexports.ByteArrayCollector = ByteArrayCollector;\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.ChecksumStream = void 0;\nconst ReadableStreamRef = typeof ReadableStream === \"function\" ? ReadableStream : function () { };\nclass ChecksumStream extends ReadableStreamRef {\n}\nexports.ChecksumStream = ChecksumStream;\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.ChecksumStream = void 0;\nconst util_base64_1 = require(\"@smithy/util-base64\");\nconst stream_1 = require(\"stream\");\nclass ChecksumStream extends stream_1.Duplex {\n constructor({ expectedChecksum, checksum, source, checksumSourceLocation, base64Encoder, }) {\n var _a, _b;\n super();\n if (typeof source.pipe === \"function\") {\n this.source = source;\n }\n else {\n throw new Error(`@smithy/util-stream: unsupported source type ${(_b = (_a = source === null || source === void 0 ? void 0 : source.constructor) === null || _a === void 0 ? void 0 : _a.name) !== null && _b !== void 0 ? _b : source} in ChecksumStream.`);\n }\n this.base64Encoder = base64Encoder !== null && base64Encoder !== void 0 ? base64Encoder : util_base64_1.toBase64;\n this.expectedChecksum = expectedChecksum;\n this.checksum = checksum;\n this.checksumSourceLocation = checksumSourceLocation;\n this.source.pipe(this);\n }\n _read(size) { }\n _write(chunk, encoding, callback) {\n try {\n this.checksum.update(chunk);\n this.push(chunk);\n }\n catch (e) {\n return callback(e);\n }\n return callback();\n }\n async _final(callback) {\n try {\n const digest = await this.checksum.digest();\n const received = this.base64Encoder(digest);\n if (this.expectedChecksum !== received) {\n return callback(new Error(`Checksum mismatch: expected \"${this.expectedChecksum}\" but received \"${received}\"` +\n ` in response header \"${this.checksumSourceLocation}\".`));\n }\n }\n catch (e) {\n return callback(e);\n }\n this.push(null);\n return callback();\n }\n}\nexports.ChecksumStream = ChecksumStream;\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.createChecksumStream = void 0;\nconst util_base64_1 = require(\"@smithy/util-base64\");\nconst stream_type_check_1 = require(\"../stream-type-check\");\nconst ChecksumStream_browser_1 = require(\"./ChecksumStream.browser\");\nconst createChecksumStream = ({ expectedChecksum, checksum, source, checksumSourceLocation, base64Encoder, }) => {\n var _a, _b;\n if (!(0, stream_type_check_1.isReadableStream)(source)) {\n throw new Error(`@smithy/util-stream: unsupported source type ${(_b = (_a = source === null || source === void 0 ? void 0 : source.constructor) === null || _a === void 0 ? void 0 : _a.name) !== null && _b !== void 0 ? _b : source} in ChecksumStream.`);\n }\n const encoder = base64Encoder !== null && base64Encoder !== void 0 ? base64Encoder : util_base64_1.toBase64;\n if (typeof TransformStream !== \"function\") {\n throw new Error(\"@smithy/util-stream: unable to instantiate ChecksumStream because API unavailable: ReadableStream/TransformStream.\");\n }\n const transform = new TransformStream({\n start() { },\n async transform(chunk, controller) {\n checksum.update(chunk);\n controller.enqueue(chunk);\n },\n async flush(controller) {\n const digest = await checksum.digest();\n const received = encoder(digest);\n if (expectedChecksum !== received) {\n const error = new Error(`Checksum mismatch: expected \"${expectedChecksum}\" but received \"${received}\"` +\n ` in response header \"${checksumSourceLocation}\".`);\n controller.error(error);\n }\n else {\n controller.terminate();\n }\n },\n });\n source.pipeThrough(transform);\n const readable = transform.readable;\n Object.setPrototypeOf(readable, ChecksumStream_browser_1.ChecksumStream.prototype);\n return readable;\n};\nexports.createChecksumStream = createChecksumStream;\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.createChecksumStream = void 0;\nconst stream_type_check_1 = require(\"../stream-type-check\");\nconst ChecksumStream_1 = require(\"./ChecksumStream\");\nconst createChecksumStream_browser_1 = require(\"./createChecksumStream.browser\");\nfunction createChecksumStream(init) {\n if (typeof ReadableStream === \"function\" && (0, stream_type_check_1.isReadableStream)(init.source)) {\n return (0, createChecksumStream_browser_1.createChecksumStream)(init);\n }\n return new ChecksumStream_1.ChecksumStream(init);\n}\nexports.createChecksumStream = createChecksumStream;\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.createBufferedReadable = void 0;\nconst node_stream_1 = require(\"node:stream\");\nconst ByteArrayCollector_1 = require(\"./ByteArrayCollector\");\nconst createBufferedReadableStream_1 = require(\"./createBufferedReadableStream\");\nconst stream_type_check_1 = require(\"./stream-type-check\");\nfunction createBufferedReadable(upstream, size, logger) {\n if ((0, stream_type_check_1.isReadableStream)(upstream)) {\n return (0, createBufferedReadableStream_1.createBufferedReadableStream)(upstream, size, logger);\n }\n const downstream = new node_stream_1.Readable({ read() { } });\n let streamBufferingLoggedWarning = false;\n let bytesSeen = 0;\n const buffers = [\n \"\",\n new ByteArrayCollector_1.ByteArrayCollector((size) => new Uint8Array(size)),\n new ByteArrayCollector_1.ByteArrayCollector((size) => Buffer.from(new Uint8Array(size))),\n ];\n let mode = -1;\n upstream.on(\"data\", (chunk) => {\n const chunkMode = (0, createBufferedReadableStream_1.modeOf)(chunk);\n if (mode !== chunkMode) {\n if (mode >= 0) {\n downstream.push((0, createBufferedReadableStream_1.flush)(buffers, mode));\n }\n mode = chunkMode;\n }\n if (mode === -1) {\n downstream.push(chunk);\n return;\n }\n const chunkSize = (0, createBufferedReadableStream_1.sizeOf)(chunk);\n bytesSeen += chunkSize;\n const bufferSize = (0, createBufferedReadableStream_1.sizeOf)(buffers[mode]);\n if (chunkSize >= size && bufferSize === 0) {\n downstream.push(chunk);\n }\n else {\n const newSize = (0, createBufferedReadableStream_1.merge)(buffers, mode, chunk);\n if (!streamBufferingLoggedWarning && bytesSeen > size * 2) {\n streamBufferingLoggedWarning = true;\n logger === null || logger === void 0 ? void 0 : logger.warn(`@smithy/util-stream - stream chunk size ${chunkSize} is below threshold of ${size}, automatically buffering.`);\n }\n if (newSize >= size) {\n downstream.push((0, createBufferedReadableStream_1.flush)(buffers, mode));\n }\n }\n });\n upstream.on(\"end\", () => {\n if (mode !== -1) {\n const remainder = (0, createBufferedReadableStream_1.flush)(buffers, mode);\n if ((0, createBufferedReadableStream_1.sizeOf)(remainder) > 0) {\n downstream.push(remainder);\n }\n }\n downstream.push(null);\n });\n return downstream;\n}\nexports.createBufferedReadable = createBufferedReadable;\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.modeOf = exports.sizeOf = exports.flush = exports.merge = exports.createBufferedReadable = exports.createBufferedReadableStream = void 0;\nconst ByteArrayCollector_1 = require(\"./ByteArrayCollector\");\nfunction createBufferedReadableStream(upstream, size, logger) {\n const reader = upstream.getReader();\n let streamBufferingLoggedWarning = false;\n let bytesSeen = 0;\n const buffers = [\"\", new ByteArrayCollector_1.ByteArrayCollector((size) => new Uint8Array(size))];\n let mode = -1;\n const pull = async (controller) => {\n const { value, done } = await reader.read();\n const chunk = value;\n if (done) {\n if (mode !== -1) {\n const remainder = flush(buffers, mode);\n if (sizeOf(remainder) > 0) {\n controller.enqueue(remainder);\n }\n }\n controller.close();\n }\n else {\n const chunkMode = modeOf(chunk);\n if (mode !== chunkMode) {\n if (mode >= 0) {\n controller.enqueue(flush(buffers, mode));\n }\n mode = chunkMode;\n }\n if (mode === -1) {\n controller.enqueue(chunk);\n return;\n }\n const chunkSize = sizeOf(chunk);\n bytesSeen += chunkSize;\n const bufferSize = sizeOf(buffers[mode]);\n if (chunkSize >= size && bufferSize === 0) {\n controller.enqueue(chunk);\n }\n else {\n const newSize = merge(buffers, mode, chunk);\n if (!streamBufferingLoggedWarning && bytesSeen > size * 2) {\n streamBufferingLoggedWarning = true;\n logger === null || logger === void 0 ? void 0 : logger.warn(`@smithy/util-stream - stream chunk size ${chunkSize} is below threshold of ${size}, automatically buffering.`);\n }\n if (newSize >= size) {\n controller.enqueue(flush(buffers, mode));\n }\n else {\n await pull(controller);\n }\n }\n }\n };\n return new ReadableStream({\n pull,\n });\n}\nexports.createBufferedReadableStream = createBufferedReadableStream;\nexports.createBufferedReadable = createBufferedReadableStream;\nfunction merge(buffers, mode, chunk) {\n switch (mode) {\n case 0:\n buffers[0] += chunk;\n return sizeOf(buffers[0]);\n case 1:\n case 2:\n buffers[mode].push(chunk);\n return sizeOf(buffers[mode]);\n }\n}\nexports.merge = merge;\nfunction flush(buffers, mode) {\n switch (mode) {\n case 0:\n const s = buffers[0];\n buffers[0] = \"\";\n return s;\n case 1:\n case 2:\n return buffers[mode].flush();\n }\n throw new Error(`@smithy/util-stream - invalid index ${mode} given to flush()`);\n}\nexports.flush = flush;\nfunction sizeOf(chunk) {\n var _a, _b;\n return (_b = (_a = chunk === null || chunk === void 0 ? void 0 : chunk.byteLength) !== null && _a !== void 0 ? _a : chunk === null || chunk === void 0 ? void 0 : chunk.length) !== null && _b !== void 0 ? _b : 0;\n}\nexports.sizeOf = sizeOf;\nfunction modeOf(chunk) {\n if (typeof Buffer !== \"undefined\" && chunk instanceof Buffer) {\n return 2;\n }\n if (chunk instanceof Uint8Array) {\n return 1;\n }\n if (typeof chunk === \"string\") {\n return 0;\n }\n return -1;\n}\nexports.modeOf = modeOf;\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.getAwsChunkedEncodingStream = void 0;\nconst stream_1 = require(\"stream\");\nconst getAwsChunkedEncodingStream = (readableStream, options) => {\n const { base64Encoder, bodyLengthChecker, checksumAlgorithmFn, checksumLocationName, streamHasher } = options;\n const checksumRequired = base64Encoder !== undefined &&\n checksumAlgorithmFn !== undefined &&\n checksumLocationName !== undefined &&\n streamHasher !== undefined;\n const digest = checksumRequired ? streamHasher(checksumAlgorithmFn, readableStream) : undefined;\n const awsChunkedEncodingStream = new stream_1.Readable({ read: () => { } });\n readableStream.on(\"data\", (data) => {\n const length = bodyLengthChecker(data) || 0;\n awsChunkedEncodingStream.push(`${length.toString(16)}\\r\\n`);\n awsChunkedEncodingStream.push(data);\n awsChunkedEncodingStream.push(\"\\r\\n\");\n });\n readableStream.on(\"end\", async () => {\n awsChunkedEncodingStream.push(`0\\r\\n`);\n if (checksumRequired) {\n const checksum = base64Encoder(await digest);\n awsChunkedEncodingStream.push(`${checksumLocationName}:${checksum}\\r\\n`);\n awsChunkedEncodingStream.push(`\\r\\n`);\n }\n awsChunkedEncodingStream.push(null);\n });\n return awsChunkedEncodingStream;\n};\nexports.getAwsChunkedEncodingStream = getAwsChunkedEncodingStream;\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.headStream = void 0;\nasync function headStream(stream, bytes) {\n var _a;\n let byteLengthCounter = 0;\n const chunks = [];\n const reader = stream.getReader();\n let isDone = false;\n while (!isDone) {\n const { done, value } = await reader.read();\n if (value) {\n chunks.push(value);\n byteLengthCounter += (_a = value === null || value === void 0 ? void 0 : value.byteLength) !== null && _a !== void 0 ? _a : 0;\n }\n if (byteLengthCounter >= bytes) {\n break;\n }\n isDone = done;\n }\n reader.releaseLock();\n const collected = new Uint8Array(Math.min(bytes, byteLengthCounter));\n let offset = 0;\n for (const chunk of chunks) {\n if (chunk.byteLength > collected.byteLength - offset) {\n collected.set(chunk.subarray(0, collected.byteLength - offset), offset);\n break;\n }\n else {\n collected.set(chunk, offset);\n }\n offset += chunk.length;\n }\n return collected;\n}\nexports.headStream = headStream;\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.headStream = void 0;\nconst stream_1 = require(\"stream\");\nconst headStream_browser_1 = require(\"./headStream.browser\");\nconst stream_type_check_1 = require(\"./stream-type-check\");\nconst headStream = (stream, bytes) => {\n if ((0, stream_type_check_1.isReadableStream)(stream)) {\n return (0, headStream_browser_1.headStream)(stream, bytes);\n }\n return new Promise((resolve, reject) => {\n const collector = new Collector();\n collector.limit = bytes;\n stream.pipe(collector);\n stream.on(\"error\", (err) => {\n collector.end();\n reject(err);\n });\n collector.on(\"error\", reject);\n collector.on(\"finish\", function () {\n const bytes = new Uint8Array(Buffer.concat(this.buffers));\n resolve(bytes);\n });\n });\n};\nexports.headStream = headStream;\nclass Collector extends stream_1.Writable {\n constructor() {\n super(...arguments);\n this.buffers = [];\n this.limit = Infinity;\n this.bytesBuffered = 0;\n }\n _write(chunk, encoding, callback) {\n var _a;\n this.buffers.push(chunk);\n this.bytesBuffered += (_a = chunk.byteLength) !== null && _a !== void 0 ? _a : 0;\n if (this.bytesBuffered >= this.limit) {\n const excess = this.bytesBuffered - this.limit;\n const tailBuffer = this.buffers[this.buffers.length - 1];\n this.buffers[this.buffers.length - 1] = tailBuffer.subarray(0, tailBuffer.byteLength - excess);\n this.emit(\"finish\");\n }\n callback();\n }\n}\n","var __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __name = (target, value) => __defProp(target, \"name\", { value, configurable: true });\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n};\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, \"default\"), secondTarget && __copyProps(secondTarget, mod, \"default\"));\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\n\n// src/index.ts\nvar src_exports = {};\n__export(src_exports, {\n Uint8ArrayBlobAdapter: () => Uint8ArrayBlobAdapter\n});\nmodule.exports = __toCommonJS(src_exports);\n\n// src/blob/transforms.ts\nvar import_util_base64 = require(\"@smithy/util-base64\");\nvar import_util_utf8 = require(\"@smithy/util-utf8\");\nfunction transformToString(payload, encoding = \"utf-8\") {\n if (encoding === \"base64\") {\n return (0, import_util_base64.toBase64)(payload);\n }\n return (0, import_util_utf8.toUtf8)(payload);\n}\n__name(transformToString, \"transformToString\");\nfunction transformFromString(str, encoding) {\n if (encoding === \"base64\") {\n return Uint8ArrayBlobAdapter.mutate((0, import_util_base64.fromBase64)(str));\n }\n return Uint8ArrayBlobAdapter.mutate((0, import_util_utf8.fromUtf8)(str));\n}\n__name(transformFromString, \"transformFromString\");\n\n// src/blob/Uint8ArrayBlobAdapter.ts\nvar Uint8ArrayBlobAdapter = class _Uint8ArrayBlobAdapter extends Uint8Array {\n static {\n __name(this, \"Uint8ArrayBlobAdapter\");\n }\n /**\n * @param source - such as a string or Stream.\n * @returns a new Uint8ArrayBlobAdapter extending Uint8Array.\n */\n static fromString(source, encoding = \"utf-8\") {\n switch (typeof source) {\n case \"string\":\n return transformFromString(source, encoding);\n default:\n throw new Error(`Unsupported conversion from ${typeof source} to Uint8ArrayBlobAdapter.`);\n }\n }\n /**\n * @param source - Uint8Array to be mutated.\n * @returns the same Uint8Array but with prototype switched to Uint8ArrayBlobAdapter.\n */\n static mutate(source) {\n Object.setPrototypeOf(source, _Uint8ArrayBlobAdapter.prototype);\n return source;\n }\n /**\n * @param encoding - default 'utf-8'.\n * @returns the blob as string.\n */\n transformToString(encoding = \"utf-8\") {\n return transformToString(this, encoding);\n }\n};\n\n// src/index.ts\n__reExport(src_exports, require(\"./checksum/ChecksumStream\"), module.exports);\n__reExport(src_exports, require(\"./checksum/createChecksumStream\"), module.exports);\n__reExport(src_exports, require(\"././createBufferedReadable\"), module.exports);\n__reExport(src_exports, require(\"././getAwsChunkedEncodingStream\"), module.exports);\n__reExport(src_exports, require(\"././headStream\"), module.exports);\n__reExport(src_exports, require(\"././sdk-stream-mixin\"), module.exports);\n__reExport(src_exports, require(\"././splitStream\"), module.exports);\n__reExport(src_exports, require(\"././stream-type-check\"), module.exports);\n// Annotate the CommonJS export names for ESM import in node:\n\n0 && (module.exports = {\n Uint8ArrayBlobAdapter,\n ChecksumStream,\n createChecksumStream,\n createBufferedReadable,\n getAwsChunkedEncodingStream,\n headStream,\n sdkStreamMixin,\n splitStream,\n isReadableStream,\n isBlob\n});\n\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.sdkStreamMixin = void 0;\nconst fetch_http_handler_1 = require(\"@smithy/fetch-http-handler\");\nconst util_base64_1 = require(\"@smithy/util-base64\");\nconst util_hex_encoding_1 = require(\"@smithy/util-hex-encoding\");\nconst util_utf8_1 = require(\"@smithy/util-utf8\");\nconst stream_type_check_1 = require(\"./stream-type-check\");\nconst ERR_MSG_STREAM_HAS_BEEN_TRANSFORMED = \"The stream has already been transformed.\";\nconst sdkStreamMixin = (stream) => {\n var _a, _b;\n if (!isBlobInstance(stream) && !(0, stream_type_check_1.isReadableStream)(stream)) {\n const name = ((_b = (_a = stream === null || stream === void 0 ? void 0 : stream.__proto__) === null || _a === void 0 ? void 0 : _a.constructor) === null || _b === void 0 ? void 0 : _b.name) || stream;\n throw new Error(`Unexpected stream implementation, expect Blob or ReadableStream, got ${name}`);\n }\n let transformed = false;\n const transformToByteArray = async () => {\n if (transformed) {\n throw new Error(ERR_MSG_STREAM_HAS_BEEN_TRANSFORMED);\n }\n transformed = true;\n return await (0, fetch_http_handler_1.streamCollector)(stream);\n };\n const blobToWebStream = (blob) => {\n if (typeof blob.stream !== \"function\") {\n throw new Error(\"Cannot transform payload Blob to web stream. Please make sure the Blob.stream() is polyfilled.\\n\" +\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\");\n }\n return blob.stream();\n };\n return Object.assign(stream, {\n transformToByteArray: transformToByteArray,\n transformToString: async (encoding) => {\n const buf = await transformToByteArray();\n if (encoding === \"base64\") {\n return (0, util_base64_1.toBase64)(buf);\n }\n else if (encoding === \"hex\") {\n return (0, util_hex_encoding_1.toHex)(buf);\n }\n else if (encoding === undefined || encoding === \"utf8\" || encoding === \"utf-8\") {\n return (0, util_utf8_1.toUtf8)(buf);\n }\n else if (typeof TextDecoder === \"function\") {\n return new TextDecoder(encoding).decode(buf);\n }\n else {\n throw new Error(\"TextDecoder is not available, please make sure polyfill is provided.\");\n }\n },\n transformToWebStream: () => {\n if (transformed) {\n throw new Error(ERR_MSG_STREAM_HAS_BEEN_TRANSFORMED);\n }\n transformed = true;\n if (isBlobInstance(stream)) {\n return blobToWebStream(stream);\n }\n else if ((0, stream_type_check_1.isReadableStream)(stream)) {\n return stream;\n }\n else {\n throw new Error(`Cannot transform payload to web stream, got ${stream}`);\n }\n },\n });\n};\nexports.sdkStreamMixin = sdkStreamMixin;\nconst isBlobInstance = (stream) => typeof Blob === \"function\" && stream instanceof Blob;\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.sdkStreamMixin = void 0;\nconst node_http_handler_1 = require(\"@smithy/node-http-handler\");\nconst util_buffer_from_1 = require(\"@smithy/util-buffer-from\");\nconst stream_1 = require(\"stream\");\nconst sdk_stream_mixin_browser_1 = require(\"./sdk-stream-mixin.browser\");\nconst ERR_MSG_STREAM_HAS_BEEN_TRANSFORMED = \"The stream has already been transformed.\";\nconst sdkStreamMixin = (stream) => {\n var _a, _b;\n if (!(stream instanceof stream_1.Readable)) {\n try {\n return (0, sdk_stream_mixin_browser_1.sdkStreamMixin)(stream);\n }\n catch (e) {\n const name = ((_b = (_a = stream === null || stream === void 0 ? void 0 : stream.__proto__) === null || _a === void 0 ? void 0 : _a.constructor) === null || _b === void 0 ? void 0 : _b.name) || stream;\n throw new Error(`Unexpected stream implementation, expect Stream.Readable instance, got ${name}`);\n }\n }\n let transformed = false;\n const transformToByteArray = async () => {\n if (transformed) {\n throw new Error(ERR_MSG_STREAM_HAS_BEEN_TRANSFORMED);\n }\n transformed = true;\n return await (0, node_http_handler_1.streamCollector)(stream);\n };\n return Object.assign(stream, {\n transformToByteArray,\n transformToString: async (encoding) => {\n const buf = await transformToByteArray();\n if (encoding === undefined || Buffer.isEncoding(encoding)) {\n return (0, util_buffer_from_1.fromArrayBuffer)(buf.buffer, buf.byteOffset, buf.byteLength).toString(encoding);\n }\n else {\n const decoder = new TextDecoder(encoding);\n return decoder.decode(buf);\n }\n },\n transformToWebStream: () => {\n if (transformed) {\n throw new Error(ERR_MSG_STREAM_HAS_BEEN_TRANSFORMED);\n }\n if (stream.readableFlowing !== null) {\n throw new Error(\"The stream has been consumed by other callbacks.\");\n }\n if (typeof stream_1.Readable.toWeb !== \"function\") {\n throw new Error(\"Readable.toWeb() is not supported. Please ensure a polyfill is available.\");\n }\n transformed = true;\n return stream_1.Readable.toWeb(stream);\n },\n });\n};\nexports.sdkStreamMixin = sdkStreamMixin;\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.splitStream = void 0;\nasync function splitStream(stream) {\n if (typeof stream.stream === \"function\") {\n stream = stream.stream();\n }\n const readableStream = stream;\n return readableStream.tee();\n}\nexports.splitStream = splitStream;\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.splitStream = void 0;\nconst stream_1 = require(\"stream\");\nconst splitStream_browser_1 = require(\"./splitStream.browser\");\nconst stream_type_check_1 = require(\"./stream-type-check\");\nasync function splitStream(stream) {\n if ((0, stream_type_check_1.isReadableStream)(stream) || (0, stream_type_check_1.isBlob)(stream)) {\n return (0, splitStream_browser_1.splitStream)(stream);\n }\n const stream1 = new stream_1.PassThrough();\n const stream2 = new stream_1.PassThrough();\n stream.pipe(stream1);\n stream.pipe(stream2);\n return [stream1, stream2];\n}\nexports.splitStream = splitStream;\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.isBlob = exports.isReadableStream = void 0;\nconst isReadableStream = (stream) => {\n var _a;\n return typeof ReadableStream === \"function\" &&\n (((_a = stream === null || stream === void 0 ? void 0 : stream.constructor) === null || _a === void 0 ? void 0 : _a.name) === ReadableStream.name || stream instanceof ReadableStream);\n};\nexports.isReadableStream = isReadableStream;\nconst isBlob = (blob) => {\n var _a;\n return typeof Blob === \"function\" && (((_a = blob === null || blob === void 0 ? void 0 : blob.constructor) === null || _a === void 0 ? void 0 : _a.name) === Blob.name || blob instanceof Blob);\n};\nexports.isBlob = isBlob;\n","var __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __name = (target, value) => __defProp(target, \"name\", { value, configurable: true });\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n};\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\n\n// src/index.ts\nvar src_exports = {};\n__export(src_exports, {\n escapeUri: () => escapeUri,\n escapeUriPath: () => escapeUriPath\n});\nmodule.exports = __toCommonJS(src_exports);\n\n// src/escape-uri.ts\nvar escapeUri = /* @__PURE__ */ __name((uri) => (\n // AWS percent-encodes some extra non-standard characters in a URI\n encodeURIComponent(uri).replace(/[!'()*]/g, hexEncode)\n), \"escapeUri\");\nvar hexEncode = /* @__PURE__ */ __name((c) => `%${c.charCodeAt(0).toString(16).toUpperCase()}`, \"hexEncode\");\n\n// src/escape-uri-path.ts\nvar escapeUriPath = /* @__PURE__ */ __name((uri) => uri.split(\"/\").map(escapeUri).join(\"/\"), \"escapeUriPath\");\n// Annotate the CommonJS export names for ESM import in node:\n\n0 && (module.exports = {\n escapeUri,\n escapeUriPath\n});\n\n","var __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __name = (target, value) => __defProp(target, \"name\", { value, configurable: true });\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n};\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\n\n// src/index.ts\nvar src_exports = {};\n__export(src_exports, {\n fromUtf8: () => fromUtf8,\n toUint8Array: () => toUint8Array,\n toUtf8: () => toUtf8\n});\nmodule.exports = __toCommonJS(src_exports);\n\n// src/fromUtf8.ts\nvar import_util_buffer_from = require(\"@smithy/util-buffer-from\");\nvar fromUtf8 = /* @__PURE__ */ __name((input) => {\n const buf = (0, import_util_buffer_from.fromString)(input, \"utf8\");\n return new Uint8Array(buf.buffer, buf.byteOffset, buf.byteLength / Uint8Array.BYTES_PER_ELEMENT);\n}, \"fromUtf8\");\n\n// src/toUint8Array.ts\nvar toUint8Array = /* @__PURE__ */ __name((data) => {\n if (typeof data === \"string\") {\n return fromUtf8(data);\n }\n if (ArrayBuffer.isView(data)) {\n return new Uint8Array(data.buffer, data.byteOffset, data.byteLength / Uint8Array.BYTES_PER_ELEMENT);\n }\n return new Uint8Array(data);\n}, \"toUint8Array\");\n\n// src/toUtf8.ts\n\nvar toUtf8 = /* @__PURE__ */ __name((input) => {\n if (typeof input === \"string\") {\n return input;\n }\n if (typeof input !== \"object\" || typeof input.byteOffset !== \"number\" || typeof input.byteLength !== \"number\") {\n throw new Error(\"@smithy/util-utf8: toUtf8 encoder function only accepts string | Uint8Array.\");\n }\n return (0, import_util_buffer_from.fromArrayBuffer)(input.buffer, input.byteOffset, input.byteLength).toString(\"utf8\");\n}, \"toUtf8\");\n// Annotate the CommonJS export names for ESM import in node:\n\n0 && (module.exports = {\n fromUtf8,\n toUint8Array,\n toUtf8\n});\n\n","var __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __name = (target, value) => __defProp(target, \"name\", { value, configurable: true });\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n};\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\n\n// src/index.ts\nvar src_exports = {};\n__export(src_exports, {\n WaiterState: () => WaiterState,\n checkExceptions: () => checkExceptions,\n createWaiter: () => createWaiter,\n waiterServiceDefaults: () => waiterServiceDefaults\n});\nmodule.exports = __toCommonJS(src_exports);\n\n// src/utils/sleep.ts\nvar sleep = /* @__PURE__ */ __name((seconds) => {\n return new Promise((resolve) => setTimeout(resolve, seconds * 1e3));\n}, \"sleep\");\n\n// src/waiter.ts\nvar waiterServiceDefaults = {\n minDelay: 2,\n maxDelay: 120\n};\nvar WaiterState = /* @__PURE__ */ ((WaiterState2) => {\n WaiterState2[\"ABORTED\"] = \"ABORTED\";\n WaiterState2[\"FAILURE\"] = \"FAILURE\";\n WaiterState2[\"SUCCESS\"] = \"SUCCESS\";\n WaiterState2[\"RETRY\"] = \"RETRY\";\n WaiterState2[\"TIMEOUT\"] = \"TIMEOUT\";\n return WaiterState2;\n})(WaiterState || {});\nvar checkExceptions = /* @__PURE__ */ __name((result) => {\n if (result.state === \"ABORTED\" /* ABORTED */) {\n const abortError = new Error(\n `${JSON.stringify({\n ...result,\n reason: \"Request was aborted\"\n })}`\n );\n abortError.name = \"AbortError\";\n throw abortError;\n } else if (result.state === \"TIMEOUT\" /* TIMEOUT */) {\n const timeoutError = new Error(\n `${JSON.stringify({\n ...result,\n reason: \"Waiter has timed out\"\n })}`\n );\n timeoutError.name = \"TimeoutError\";\n throw timeoutError;\n } else if (result.state !== \"SUCCESS\" /* SUCCESS */) {\n throw new Error(`${JSON.stringify(result)}`);\n }\n return result;\n}, \"checkExceptions\");\n\n// src/poller.ts\nvar exponentialBackoffWithJitter = /* @__PURE__ */ __name((minDelay, maxDelay, attemptCeiling, attempt) => {\n if (attempt > attemptCeiling)\n return maxDelay;\n const delay = minDelay * 2 ** (attempt - 1);\n return randomInRange(minDelay, delay);\n}, \"exponentialBackoffWithJitter\");\nvar randomInRange = /* @__PURE__ */ __name((min, max) => min + Math.random() * (max - min), \"randomInRange\");\nvar runPolling = /* @__PURE__ */ __name(async ({ minDelay, maxDelay, maxWaitTime, abortController, client, abortSignal }, input, acceptorChecks) => {\n const observedResponses = {};\n const { state, reason } = await acceptorChecks(client, input);\n if (reason) {\n const message = createMessageFromResponse(reason);\n observedResponses[message] |= 0;\n observedResponses[message] += 1;\n }\n if (state !== \"RETRY\" /* RETRY */) {\n return { state, reason, observedResponses };\n }\n let currentAttempt = 1;\n const waitUntil = Date.now() + maxWaitTime * 1e3;\n const attemptCeiling = Math.log(maxDelay / minDelay) / Math.log(2) + 1;\n while (true) {\n if (abortController?.signal?.aborted || abortSignal?.aborted) {\n const message = \"AbortController signal aborted.\";\n observedResponses[message] |= 0;\n observedResponses[message] += 1;\n return { state: \"ABORTED\" /* ABORTED */, observedResponses };\n }\n const delay = exponentialBackoffWithJitter(minDelay, maxDelay, attemptCeiling, currentAttempt);\n if (Date.now() + delay * 1e3 > waitUntil) {\n return { state: \"TIMEOUT\" /* TIMEOUT */, observedResponses };\n }\n await sleep(delay);\n const { state: state2, reason: reason2 } = await acceptorChecks(client, input);\n if (reason2) {\n const message = createMessageFromResponse(reason2);\n observedResponses[message] |= 0;\n observedResponses[message] += 1;\n }\n if (state2 !== \"RETRY\" /* RETRY */) {\n return { state: state2, reason: reason2, observedResponses };\n }\n currentAttempt += 1;\n }\n}, \"runPolling\");\nvar createMessageFromResponse = /* @__PURE__ */ __name((reason) => {\n if (reason?.$responseBodyText) {\n return `Deserialization error for body: ${reason.$responseBodyText}`;\n }\n if (reason?.$metadata?.httpStatusCode) {\n if (reason.$response || reason.message) {\n return `${reason.$response.statusCode ?? reason.$metadata.httpStatusCode ?? \"Unknown\"}: ${reason.message}`;\n }\n return `${reason.$metadata.httpStatusCode}: OK`;\n }\n return String(reason?.message ?? JSON.stringify(reason) ?? \"Unknown\");\n}, \"createMessageFromResponse\");\n\n// src/utils/validate.ts\nvar validateWaiterOptions = /* @__PURE__ */ __name((options) => {\n if (options.maxWaitTime <= 0) {\n throw new Error(`WaiterConfiguration.maxWaitTime must be greater than 0`);\n } else if (options.minDelay <= 0) {\n throw new Error(`WaiterConfiguration.minDelay must be greater than 0`);\n } else if (options.maxDelay <= 0) {\n throw new Error(`WaiterConfiguration.maxDelay must be greater than 0`);\n } else if (options.maxWaitTime <= options.minDelay) {\n throw new Error(\n `WaiterConfiguration.maxWaitTime [${options.maxWaitTime}] must be greater than WaiterConfiguration.minDelay [${options.minDelay}] for this waiter`\n );\n } else if (options.maxDelay < options.minDelay) {\n throw new Error(\n `WaiterConfiguration.maxDelay [${options.maxDelay}] must be greater than WaiterConfiguration.minDelay [${options.minDelay}] for this waiter`\n );\n }\n}, \"validateWaiterOptions\");\n\n// src/createWaiter.ts\nvar abortTimeout = /* @__PURE__ */ __name(async (abortSignal) => {\n return new Promise((resolve) => {\n const onAbort = /* @__PURE__ */ __name(() => resolve({ state: \"ABORTED\" /* ABORTED */ }), \"onAbort\");\n if (typeof abortSignal.addEventListener === \"function\") {\n abortSignal.addEventListener(\"abort\", onAbort);\n } else {\n abortSignal.onabort = onAbort;\n }\n });\n}, \"abortTimeout\");\nvar createWaiter = /* @__PURE__ */ __name(async (options, input, acceptorChecks) => {\n const params = {\n ...waiterServiceDefaults,\n ...options\n };\n validateWaiterOptions(params);\n const exitConditions = [runPolling(params, input, acceptorChecks)];\n if (options.abortController) {\n exitConditions.push(abortTimeout(options.abortController.signal));\n }\n if (options.abortSignal) {\n exitConditions.push(abortTimeout(options.abortSignal));\n }\n return Promise.race(exitConditions);\n}, \"createWaiter\");\n// Annotate the CommonJS export names for ESM import in node:\n\n0 && (module.exports = {\n createWaiter,\n waiterServiceDefaults,\n WaiterState,\n checkExceptions\n});\n\n","/**\n * @author Toru Nagashima \n * See LICENSE file in root directory for full license.\n */\n'use strict';\n\nObject.defineProperty(exports, '__esModule', { value: true });\n\nvar eventTargetShim = require('event-target-shim');\n\n/**\n * The signal class.\n * @see https://dom.spec.whatwg.org/#abortsignal\n */\nclass AbortSignal extends eventTargetShim.EventTarget {\n /**\n * AbortSignal cannot be constructed directly.\n */\n constructor() {\n super();\n throw new TypeError(\"AbortSignal cannot be constructed directly\");\n }\n /**\n * Returns `true` if this `AbortSignal`'s `AbortController` has signaled to abort, and `false` otherwise.\n */\n get aborted() {\n const aborted = abortedFlags.get(this);\n if (typeof aborted !== \"boolean\") {\n throw new TypeError(`Expected 'this' to be an 'AbortSignal' object, but got ${this === null ? \"null\" : typeof this}`);\n }\n return aborted;\n }\n}\neventTargetShim.defineEventAttribute(AbortSignal.prototype, \"abort\");\n/**\n * Create an AbortSignal object.\n */\nfunction createAbortSignal() {\n const signal = Object.create(AbortSignal.prototype);\n eventTargetShim.EventTarget.call(signal);\n abortedFlags.set(signal, false);\n return signal;\n}\n/**\n * Abort a given signal.\n */\nfunction abortSignal(signal) {\n if (abortedFlags.get(signal) !== false) {\n return;\n }\n abortedFlags.set(signal, true);\n signal.dispatchEvent({ type: \"abort\" });\n}\n/**\n * Aborted flag for each instances.\n */\nconst abortedFlags = new WeakMap();\n// Properties should be enumerable.\nObject.defineProperties(AbortSignal.prototype, {\n aborted: { enumerable: true },\n});\n// `toString()` should return `\"[object AbortSignal]\"`\nif (typeof Symbol === \"function\" && typeof Symbol.toStringTag === \"symbol\") {\n Object.defineProperty(AbortSignal.prototype, Symbol.toStringTag, {\n configurable: true,\n value: \"AbortSignal\",\n });\n}\n\n/**\n * The AbortController.\n * @see https://dom.spec.whatwg.org/#abortcontroller\n */\nclass AbortController {\n /**\n * Initialize this controller.\n */\n constructor() {\n signals.set(this, createAbortSignal());\n }\n /**\n * Returns the `AbortSignal` object associated with this object.\n */\n get signal() {\n return getSignal(this);\n }\n /**\n * Abort and signal to any observers that the associated activity is to be aborted.\n */\n abort() {\n abortSignal(getSignal(this));\n }\n}\n/**\n * Associated signals.\n */\nconst signals = new WeakMap();\n/**\n * Get the associated signal of a given controller.\n */\nfunction getSignal(controller) {\n const signal = signals.get(controller);\n if (signal == null) {\n throw new TypeError(`Expected 'this' to be an 'AbortController' object, but got ${controller === null ? \"null\" : typeof controller}`);\n }\n return signal;\n}\n// Properties should be enumerable.\nObject.defineProperties(AbortController.prototype, {\n signal: { enumerable: true },\n abort: { enumerable: true },\n});\nif (typeof Symbol === \"function\" && typeof Symbol.toStringTag === \"symbol\") {\n Object.defineProperty(AbortController.prototype, Symbol.toStringTag, {\n configurable: true,\n value: \"AbortController\",\n });\n}\n\nexports.AbortController = AbortController;\nexports.AbortSignal = AbortSignal;\nexports.default = AbortController;\n\nmodule.exports = AbortController\nmodule.exports.AbortController = module.exports[\"default\"] = AbortController\nmodule.exports.AbortSignal = AbortSignal\n//# sourceMappingURL=abort-controller.js.map\n","\"use strict\";\nvar __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n var desc = Object.getOwnPropertyDescriptor(m, k);\n if (!desc || (\"get\" in desc ? !m.__esModule : desc.writable || desc.configurable)) {\n desc = { enumerable: true, get: function() { return m[k]; } };\n }\n Object.defineProperty(o, k2, desc);\n}) : (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n}));\nvar __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {\n Object.defineProperty(o, \"default\", { enumerable: true, value: v });\n}) : function(o, v) {\n o[\"default\"] = v;\n});\nvar __importStar = (this && this.__importStar) || function (mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) for (var k in mod) if (k !== \"default\" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);\n __setModuleDefault(result, mod);\n return result;\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.req = exports.json = exports.toBuffer = void 0;\nconst http = __importStar(require(\"http\"));\nconst https = __importStar(require(\"https\"));\nasync function toBuffer(stream) {\n let length = 0;\n const chunks = [];\n for await (const chunk of stream) {\n length += chunk.length;\n chunks.push(chunk);\n }\n return Buffer.concat(chunks, length);\n}\nexports.toBuffer = toBuffer;\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nasync function json(stream) {\n const buf = await toBuffer(stream);\n const str = buf.toString('utf8');\n try {\n return JSON.parse(str);\n }\n catch (_err) {\n const err = _err;\n err.message += ` (input: ${str})`;\n throw err;\n }\n}\nexports.json = json;\nfunction req(url, opts = {}) {\n const href = typeof url === 'string' ? url : url.href;\n const req = (href.startsWith('https:') ? https : http).request(url, opts);\n const promise = new Promise((resolve, reject) => {\n req\n .once('response', resolve)\n .once('error', reject)\n .end();\n });\n req.then = promise.then.bind(promise);\n return req;\n}\nexports.req = req;\n//# sourceMappingURL=helpers.js.map","\"use strict\";\nvar __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n var desc = Object.getOwnPropertyDescriptor(m, k);\n if (!desc || (\"get\" in desc ? !m.__esModule : desc.writable || desc.configurable)) {\n desc = { enumerable: true, get: function() { return m[k]; } };\n }\n Object.defineProperty(o, k2, desc);\n}) : (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n}));\nvar __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {\n Object.defineProperty(o, \"default\", { enumerable: true, value: v });\n}) : function(o, v) {\n o[\"default\"] = v;\n});\nvar __importStar = (this && this.__importStar) || function (mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) for (var k in mod) if (k !== \"default\" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);\n __setModuleDefault(result, mod);\n return result;\n};\nvar __exportStar = (this && this.__exportStar) || function(m, exports) {\n for (var p in m) if (p !== \"default\" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.Agent = void 0;\nconst http = __importStar(require(\"http\"));\n__exportStar(require(\"./helpers\"), exports);\nconst INTERNAL = Symbol('AgentBaseInternalState');\nclass Agent extends http.Agent {\n constructor(opts) {\n super(opts);\n this[INTERNAL] = {};\n }\n /**\n * Determine whether this is an `http` or `https` request.\n */\n isSecureEndpoint(options) {\n if (options) {\n // First check the `secureEndpoint` property explicitly, since this\n // means that a parent `Agent` is \"passing through\" to this instance.\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n if (typeof options.secureEndpoint === 'boolean') {\n return options.secureEndpoint;\n }\n // If no explicit `secure` endpoint, check if `protocol` property is\n // set. This will usually be the case since using a full string URL\n // or `URL` instance should be the most common usage.\n if (typeof options.protocol === 'string') {\n return options.protocol === 'https:';\n }\n }\n // Finally, if no `protocol` property was set, then fall back to\n // checking the stack trace of the current call stack, and try to\n // detect the \"https\" module.\n const { stack } = new Error();\n if (typeof stack !== 'string')\n return false;\n return stack\n .split('\\n')\n .some((l) => l.indexOf('(https.js:') !== -1 ||\n l.indexOf('node:https:') !== -1);\n }\n createSocket(req, options, cb) {\n const connectOpts = {\n ...options,\n secureEndpoint: this.isSecureEndpoint(options),\n };\n Promise.resolve()\n .then(() => this.connect(req, connectOpts))\n .then((socket) => {\n if (socket instanceof http.Agent) {\n // @ts-expect-error `addRequest()` isn't defined in `@types/node`\n return socket.addRequest(req, connectOpts);\n }\n this[INTERNAL].currentSocket = socket;\n // @ts-expect-error `createSocket()` isn't defined in `@types/node`\n super.createSocket(req, options, cb);\n }, cb);\n }\n createConnection() {\n const socket = this[INTERNAL].currentSocket;\n this[INTERNAL].currentSocket = undefined;\n if (!socket) {\n throw new Error('No socket was returned in the `connect()` function');\n }\n return socket;\n }\n get defaultPort() {\n return (this[INTERNAL].defaultPort ??\n (this.protocol === 'https:' ? 443 : 80));\n }\n set defaultPort(v) {\n if (this[INTERNAL]) {\n this[INTERNAL].defaultPort = v;\n }\n }\n get protocol() {\n return (this[INTERNAL].protocol ??\n (this.isSecureEndpoint() ? 'https:' : 'http:'));\n }\n set protocol(v) {\n if (this[INTERNAL]) {\n this[INTERNAL].protocol = v;\n }\n }\n}\nexports.Agent = Agent;\n//# sourceMappingURL=index.js.map","/**\n * archiver-utils\n *\n * Copyright (c) 2012-2014 Chris Talkington, contributors.\n * Licensed under the MIT license.\n * https://github.com/archiverjs/node-archiver/blob/master/LICENSE-MIT\n */\nvar fs = require('graceful-fs');\nvar path = require('path');\n\nvar flatten = require('lodash/flatten');\nvar difference = require('lodash/difference');\nvar union = require('lodash/union');\nvar isPlainObject = require('lodash/isPlainObject');\n\nvar glob = require('glob');\n\nvar file = module.exports = {};\n\nvar pathSeparatorRe = /[\\/\\\\]/g;\n\n// Process specified wildcard glob patterns or filenames against a\n// callback, excluding and uniquing files in the result set.\nvar processPatterns = function(patterns, fn) {\n // Filepaths to return.\n var result = [];\n // Iterate over flattened patterns array.\n flatten(patterns).forEach(function(pattern) {\n // If the first character is ! it should be omitted\n var exclusion = pattern.indexOf('!') === 0;\n // If the pattern is an exclusion, remove the !\n if (exclusion) { pattern = pattern.slice(1); }\n // Find all matching files for this pattern.\n var matches = fn(pattern);\n if (exclusion) {\n // If an exclusion, remove matching files.\n result = difference(result, matches);\n } else {\n // Otherwise add matching files.\n result = union(result, matches);\n }\n });\n return result;\n};\n\n// True if the file path exists.\nfile.exists = function() {\n var filepath = path.join.apply(path, arguments);\n return fs.existsSync(filepath);\n};\n\n// Return an array of all file paths that match the given wildcard patterns.\nfile.expand = function(...args) {\n // If the first argument is an options object, save those options to pass\n // into the File.prototype.glob.sync method.\n var options = isPlainObject(args[0]) ? args.shift() : {};\n // Use the first argument if it's an Array, otherwise convert the arguments\n // object to an array and use that.\n var patterns = Array.isArray(args[0]) ? args[0] : args;\n // Return empty set if there are no patterns or filepaths.\n if (patterns.length === 0) { return []; }\n // Return all matching filepaths.\n var matches = processPatterns(patterns, function(pattern) {\n // Find all matching files for this pattern.\n return glob.sync(pattern, options);\n });\n // Filter result set?\n if (options.filter) {\n matches = matches.filter(function(filepath) {\n filepath = path.join(options.cwd || '', filepath);\n try {\n if (typeof options.filter === 'function') {\n return options.filter(filepath);\n } else {\n // If the file is of the right type and exists, this should work.\n return fs.statSync(filepath)[options.filter]();\n }\n } catch(e) {\n // Otherwise, it's probably not the right type.\n return false;\n }\n });\n }\n return matches;\n};\n\n// Build a multi task \"files\" object dynamically.\nfile.expandMapping = function(patterns, destBase, options) {\n options = Object.assign({\n rename: function(destBase, destPath) {\n return path.join(destBase || '', destPath);\n }\n }, options);\n var files = [];\n var fileByDest = {};\n // Find all files matching pattern, using passed-in options.\n file.expand(options, patterns).forEach(function(src) {\n var destPath = src;\n // Flatten?\n if (options.flatten) {\n destPath = path.basename(destPath);\n }\n // Change the extension?\n if (options.ext) {\n destPath = destPath.replace(/(\\.[^\\/]*)?$/, options.ext);\n }\n // Generate destination filename.\n var dest = options.rename(destBase, destPath, options);\n // Prepend cwd to src path if necessary.\n if (options.cwd) { src = path.join(options.cwd, src); }\n // Normalize filepaths to be unix-style.\n dest = dest.replace(pathSeparatorRe, '/');\n src = src.replace(pathSeparatorRe, '/');\n // Map correct src path to dest path.\n if (fileByDest[dest]) {\n // If dest already exists, push this src onto that dest's src array.\n fileByDest[dest].src.push(src);\n } else {\n // Otherwise create a new src-dest file mapping object.\n files.push({\n src: [src],\n dest: dest,\n });\n // And store a reference for later use.\n fileByDest[dest] = files[files.length - 1];\n }\n });\n return files;\n};\n\n// reusing bits of grunt's multi-task source normalization\nfile.normalizeFilesArray = function(data) {\n var files = [];\n\n data.forEach(function(obj) {\n var prop;\n if ('src' in obj || 'dest' in obj) {\n files.push(obj);\n }\n });\n\n if (files.length === 0) {\n return [];\n }\n\n files = _(files).chain().forEach(function(obj) {\n if (!('src' in obj) || !obj.src) { return; }\n // Normalize .src properties to flattened array.\n if (Array.isArray(obj.src)) {\n obj.src = flatten(obj.src);\n } else {\n obj.src = [obj.src];\n }\n }).map(function(obj) {\n // Build options object, removing unwanted properties.\n var expandOptions = Object.assign({}, obj);\n delete expandOptions.src;\n delete expandOptions.dest;\n\n // Expand file mappings.\n if (obj.expand) {\n return file.expandMapping(obj.src, obj.dest, expandOptions).map(function(mapObj) {\n // Copy obj properties to result.\n var result = Object.assign({}, obj);\n // Make a clone of the orig obj available.\n result.orig = Object.assign({}, obj);\n // Set .src and .dest, processing both as templates.\n result.src = mapObj.src;\n result.dest = mapObj.dest;\n // Remove unwanted properties.\n ['expand', 'cwd', 'flatten', 'rename', 'ext'].forEach(function(prop) {\n delete result[prop];\n });\n return result;\n });\n }\n\n // Copy obj properties to result, adding an .orig property.\n var result = Object.assign({}, obj);\n // Make a clone of the orig obj available.\n result.orig = Object.assign({}, obj);\n\n if ('src' in result) {\n // Expose an expand-on-demand getter method as .src.\n Object.defineProperty(result, 'src', {\n enumerable: true,\n get: function fn() {\n var src;\n if (!('result' in fn)) {\n src = obj.src;\n // If src is an array, flatten it. Otherwise, make it into an array.\n src = Array.isArray(src) ? flatten(src) : [src];\n // Expand src files, memoizing result.\n fn.result = file.expand(expandOptions, src);\n }\n return fn.result;\n }\n });\n }\n\n if ('dest' in result) {\n result.dest = obj.dest;\n }\n\n return result;\n }).flatten().value();\n\n return files;\n};\n","/**\n * archiver-utils\n *\n * Copyright (c) 2015 Chris Talkington.\n * Licensed under the MIT license.\n * https://github.com/archiverjs/archiver-utils/blob/master/LICENSE\n */\nvar fs = require('graceful-fs');\nvar path = require('path');\nvar isStream = require('is-stream');\nvar lazystream = require('lazystream');\nvar normalizePath = require('normalize-path');\nvar defaults = require('lodash/defaults');\n\nvar Stream = require('stream').Stream;\nvar PassThrough = require('readable-stream').PassThrough;\n\nvar utils = module.exports = {};\nutils.file = require('./file.js');\n\nutils.collectStream = function(source, callback) {\n var collection = [];\n var size = 0;\n\n source.on('error', callback);\n\n source.on('data', function(chunk) {\n collection.push(chunk);\n size += chunk.length;\n });\n\n source.on('end', function() {\n var buf = Buffer.alloc(size);\n var offset = 0;\n\n collection.forEach(function(data) {\n data.copy(buf, offset);\n offset += data.length;\n });\n\n callback(null, buf);\n });\n};\n\nutils.dateify = function(dateish) {\n dateish = dateish || new Date();\n\n if (dateish instanceof Date) {\n dateish = dateish;\n } else if (typeof dateish === 'string') {\n dateish = new Date(dateish);\n } else {\n dateish = new Date();\n }\n\n return dateish;\n};\n\n// this is slightly different from lodash version\nutils.defaults = function(object, source, guard) {\n var args = arguments;\n args[0] = args[0] || {};\n\n return defaults(...args);\n};\n\nutils.isStream = function(source) {\n return isStream(source);\n};\n\nutils.lazyReadStream = function(filepath) {\n return new lazystream.Readable(function() {\n return fs.createReadStream(filepath);\n });\n};\n\nutils.normalizeInputSource = function(source) {\n if (source === null) {\n return Buffer.alloc(0);\n } else if (typeof source === 'string') {\n return Buffer.from(source);\n } else if (utils.isStream(source)) {\n // Always pipe through a PassThrough stream to guarantee pausing the stream if it's already flowing,\n // since it will only be processed in a (distant) future iteration of the event loop, and will lose\n // data if already flowing now.\n return source.pipe(new PassThrough());\n }\n\n return source;\n};\n\nutils.sanitizePath = function(filepath) {\n return normalizePath(filepath, false).replace(/^\\w+:/, '').replace(/^(\\.\\.\\/|\\/)+/, '');\n};\n\nutils.trailingSlashIt = function(str) {\n return str.slice(-1) !== '/' ? str + '/' : str;\n};\n\nutils.unixifyPath = function(filepath) {\n return normalizePath(filepath, false).replace(/^\\w+:/, '');\n};\n\nutils.walkdir = function(dirpath, base, callback) {\n var results = [];\n\n if (typeof base === 'function') {\n callback = base;\n base = dirpath;\n }\n\n fs.readdir(dirpath, function(err, list) {\n var i = 0;\n var file;\n var filepath;\n\n if (err) {\n return callback(err);\n }\n\n (function next() {\n file = list[i++];\n\n if (!file) {\n return callback(null, results);\n }\n\n filepath = path.join(dirpath, file);\n\n fs.stat(filepath, function(err, stats) {\n results.push({\n path: filepath,\n relative: path.relative(base, filepath).replace(/\\\\/g, '/'),\n stats: stats\n });\n\n if (stats && stats.isDirectory()) {\n utils.walkdir(filepath, base, function(err, res) {\n\t if(err){\n\t return callback(err);\n\t }\n\n res.forEach(function(dirEntry) {\n results.push(dirEntry);\n });\n\t\t \n next(); \n });\n } else {\n next();\n }\n });\n })();\n });\n};\n","'use strict'\n\nmodule.exports = clone\n\nvar getPrototypeOf = Object.getPrototypeOf || function (obj) {\n return obj.__proto__\n}\n\nfunction clone (obj) {\n if (obj === null || typeof obj !== 'object')\n return obj\n\n if (obj instanceof Object)\n var copy = { __proto__: getPrototypeOf(obj) }\n else\n var copy = Object.create(null)\n\n Object.getOwnPropertyNames(obj).forEach(function (key) {\n Object.defineProperty(copy, key, Object.getOwnPropertyDescriptor(obj, key))\n })\n\n return copy\n}\n","var fs = require('fs')\nvar polyfills = require('./polyfills.js')\nvar legacy = require('./legacy-streams.js')\nvar clone = require('./clone.js')\n\nvar util = require('util')\n\n/* istanbul ignore next - node 0.x polyfill */\nvar gracefulQueue\nvar previousSymbol\n\n/* istanbul ignore else - node 0.x polyfill */\nif (typeof Symbol === 'function' && typeof Symbol.for === 'function') {\n gracefulQueue = Symbol.for('graceful-fs.queue')\n // This is used in testing by future versions\n previousSymbol = Symbol.for('graceful-fs.previous')\n} else {\n gracefulQueue = '___graceful-fs.queue'\n previousSymbol = '___graceful-fs.previous'\n}\n\nfunction noop () {}\n\nfunction publishQueue(context, queue) {\n Object.defineProperty(context, gracefulQueue, {\n get: function() {\n return queue\n }\n })\n}\n\nvar debug = noop\nif (util.debuglog)\n debug = util.debuglog('gfs4')\nelse if (/\\bgfs4\\b/i.test(process.env.NODE_DEBUG || ''))\n debug = function() {\n var m = util.format.apply(util, arguments)\n m = 'GFS4: ' + m.split(/\\n/).join('\\nGFS4: ')\n console.error(m)\n }\n\n// Once time initialization\nif (!fs[gracefulQueue]) {\n // This queue can be shared by multiple loaded instances\n var queue = global[gracefulQueue] || []\n publishQueue(fs, queue)\n\n // Patch fs.close/closeSync to shared queue version, because we need\n // to retry() whenever a close happens *anywhere* in the program.\n // This is essential when multiple graceful-fs instances are\n // in play at the same time.\n fs.close = (function (fs$close) {\n function close (fd, cb) {\n return fs$close.call(fs, fd, function (err) {\n // This function uses the graceful-fs shared queue\n if (!err) {\n resetQueue()\n }\n\n if (typeof cb === 'function')\n cb.apply(this, arguments)\n })\n }\n\n Object.defineProperty(close, previousSymbol, {\n value: fs$close\n })\n return close\n })(fs.close)\n\n fs.closeSync = (function (fs$closeSync) {\n function closeSync (fd) {\n // This function uses the graceful-fs shared queue\n fs$closeSync.apply(fs, arguments)\n resetQueue()\n }\n\n Object.defineProperty(closeSync, previousSymbol, {\n value: fs$closeSync\n })\n return closeSync\n })(fs.closeSync)\n\n if (/\\bgfs4\\b/i.test(process.env.NODE_DEBUG || '')) {\n process.on('exit', function() {\n debug(fs[gracefulQueue])\n require('assert').equal(fs[gracefulQueue].length, 0)\n })\n }\n}\n\nif (!global[gracefulQueue]) {\n publishQueue(global, fs[gracefulQueue]);\n}\n\nmodule.exports = patch(clone(fs))\nif (process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH && !fs.__patched) {\n module.exports = patch(fs)\n fs.__patched = true;\n}\n\nfunction patch (fs) {\n // Everything that references the open() function needs to be in here\n polyfills(fs)\n fs.gracefulify = patch\n\n fs.createReadStream = createReadStream\n fs.createWriteStream = createWriteStream\n var fs$readFile = fs.readFile\n fs.readFile = readFile\n function readFile (path, options, cb) {\n if (typeof options === 'function')\n cb = options, options = null\n\n return go$readFile(path, options, cb)\n\n function go$readFile (path, options, cb, startTime) {\n return fs$readFile(path, options, function (err) {\n if (err && (err.code === 'EMFILE' || err.code === 'ENFILE'))\n enqueue([go$readFile, [path, options, cb], err, startTime || Date.now(), Date.now()])\n else {\n if (typeof cb === 'function')\n cb.apply(this, arguments)\n }\n })\n }\n }\n\n var fs$writeFile = fs.writeFile\n fs.writeFile = writeFile\n function writeFile (path, data, options, cb) {\n if (typeof options === 'function')\n cb = options, options = null\n\n return go$writeFile(path, data, options, cb)\n\n function go$writeFile (path, data, options, cb, startTime) {\n return fs$writeFile(path, data, options, function (err) {\n if (err && (err.code === 'EMFILE' || err.code === 'ENFILE'))\n enqueue([go$writeFile, [path, data, options, cb], err, startTime || Date.now(), Date.now()])\n else {\n if (typeof cb === 'function')\n cb.apply(this, arguments)\n }\n })\n }\n }\n\n var fs$appendFile = fs.appendFile\n if (fs$appendFile)\n fs.appendFile = appendFile\n function appendFile (path, data, options, cb) {\n if (typeof options === 'function')\n cb = options, options = null\n\n return go$appendFile(path, data, options, cb)\n\n function go$appendFile (path, data, options, cb, startTime) {\n return fs$appendFile(path, data, options, function (err) {\n if (err && (err.code === 'EMFILE' || err.code === 'ENFILE'))\n enqueue([go$appendFile, [path, data, options, cb], err, startTime || Date.now(), Date.now()])\n else {\n if (typeof cb === 'function')\n cb.apply(this, arguments)\n }\n })\n }\n }\n\n var fs$copyFile = fs.copyFile\n if (fs$copyFile)\n fs.copyFile = copyFile\n function copyFile (src, dest, flags, cb) {\n if (typeof flags === 'function') {\n cb = flags\n flags = 0\n }\n return go$copyFile(src, dest, flags, cb)\n\n function go$copyFile (src, dest, flags, cb, startTime) {\n return fs$copyFile(src, dest, flags, function (err) {\n if (err && (err.code === 'EMFILE' || err.code === 'ENFILE'))\n enqueue([go$copyFile, [src, dest, flags, cb], err, startTime || Date.now(), Date.now()])\n else {\n if (typeof cb === 'function')\n cb.apply(this, arguments)\n }\n })\n }\n }\n\n var fs$readdir = fs.readdir\n fs.readdir = readdir\n var noReaddirOptionVersions = /^v[0-5]\\./\n function readdir (path, options, cb) {\n if (typeof options === 'function')\n cb = options, options = null\n\n var go$readdir = noReaddirOptionVersions.test(process.version)\n ? function go$readdir (path, options, cb, startTime) {\n return fs$readdir(path, fs$readdirCallback(\n path, options, cb, startTime\n ))\n }\n : function go$readdir (path, options, cb, startTime) {\n return fs$readdir(path, options, fs$readdirCallback(\n path, options, cb, startTime\n ))\n }\n\n return go$readdir(path, options, cb)\n\n function fs$readdirCallback (path, options, cb, startTime) {\n return function (err, files) {\n if (err && (err.code === 'EMFILE' || err.code === 'ENFILE'))\n enqueue([\n go$readdir,\n [path, options, cb],\n err,\n startTime || Date.now(),\n Date.now()\n ])\n else {\n if (files && files.sort)\n files.sort()\n\n if (typeof cb === 'function')\n cb.call(this, err, files)\n }\n }\n }\n }\n\n if (process.version.substr(0, 4) === 'v0.8') {\n var legStreams = legacy(fs)\n ReadStream = legStreams.ReadStream\n WriteStream = legStreams.WriteStream\n }\n\n var fs$ReadStream = fs.ReadStream\n if (fs$ReadStream) {\n ReadStream.prototype = Object.create(fs$ReadStream.prototype)\n ReadStream.prototype.open = ReadStream$open\n }\n\n var fs$WriteStream = fs.WriteStream\n if (fs$WriteStream) {\n WriteStream.prototype = Object.create(fs$WriteStream.prototype)\n WriteStream.prototype.open = WriteStream$open\n }\n\n Object.defineProperty(fs, 'ReadStream', {\n get: function () {\n return ReadStream\n },\n set: function (val) {\n ReadStream = val\n },\n enumerable: true,\n configurable: true\n })\n Object.defineProperty(fs, 'WriteStream', {\n get: function () {\n return WriteStream\n },\n set: function (val) {\n WriteStream = val\n },\n enumerable: true,\n configurable: true\n })\n\n // legacy names\n var FileReadStream = ReadStream\n Object.defineProperty(fs, 'FileReadStream', {\n get: function () {\n return FileReadStream\n },\n set: function (val) {\n FileReadStream = val\n },\n enumerable: true,\n configurable: true\n })\n var FileWriteStream = WriteStream\n Object.defineProperty(fs, 'FileWriteStream', {\n get: function () {\n return FileWriteStream\n },\n set: function (val) {\n FileWriteStream = val\n },\n enumerable: true,\n configurable: true\n })\n\n function ReadStream (path, options) {\n if (this instanceof ReadStream)\n return fs$ReadStream.apply(this, arguments), this\n else\n return ReadStream.apply(Object.create(ReadStream.prototype), arguments)\n }\n\n function ReadStream$open () {\n var that = this\n open(that.path, that.flags, that.mode, function (err, fd) {\n if (err) {\n if (that.autoClose)\n that.destroy()\n\n that.emit('error', err)\n } else {\n that.fd = fd\n that.emit('open', fd)\n that.read()\n }\n })\n }\n\n function WriteStream (path, options) {\n if (this instanceof WriteStream)\n return fs$WriteStream.apply(this, arguments), this\n else\n return WriteStream.apply(Object.create(WriteStream.prototype), arguments)\n }\n\n function WriteStream$open () {\n var that = this\n open(that.path, that.flags, that.mode, function (err, fd) {\n if (err) {\n that.destroy()\n that.emit('error', err)\n } else {\n that.fd = fd\n that.emit('open', fd)\n }\n })\n }\n\n function createReadStream (path, options) {\n return new fs.ReadStream(path, options)\n }\n\n function createWriteStream (path, options) {\n return new fs.WriteStream(path, options)\n }\n\n var fs$open = fs.open\n fs.open = open\n function open (path, flags, mode, cb) {\n if (typeof mode === 'function')\n cb = mode, mode = null\n\n return go$open(path, flags, mode, cb)\n\n function go$open (path, flags, mode, cb, startTime) {\n return fs$open(path, flags, mode, function (err, fd) {\n if (err && (err.code === 'EMFILE' || err.code === 'ENFILE'))\n enqueue([go$open, [path, flags, mode, cb], err, startTime || Date.now(), Date.now()])\n else {\n if (typeof cb === 'function')\n cb.apply(this, arguments)\n }\n })\n }\n }\n\n return fs\n}\n\nfunction enqueue (elem) {\n debug('ENQUEUE', elem[0].name, elem[1])\n fs[gracefulQueue].push(elem)\n retry()\n}\n\n// keep track of the timeout between retry() calls\nvar retryTimer\n\n// reset the startTime and lastTime to now\n// this resets the start of the 60 second overall timeout as well as the\n// delay between attempts so that we'll retry these jobs sooner\nfunction resetQueue () {\n var now = Date.now()\n for (var i = 0; i < fs[gracefulQueue].length; ++i) {\n // entries that are only a length of 2 are from an older version, don't\n // bother modifying those since they'll be retried anyway.\n if (fs[gracefulQueue][i].length > 2) {\n fs[gracefulQueue][i][3] = now // startTime\n fs[gracefulQueue][i][4] = now // lastTime\n }\n }\n // call retry to make sure we're actively processing the queue\n retry()\n}\n\nfunction retry () {\n // clear the timer and remove it to help prevent unintended concurrency\n clearTimeout(retryTimer)\n retryTimer = undefined\n\n if (fs[gracefulQueue].length === 0)\n return\n\n var elem = fs[gracefulQueue].shift()\n var fn = elem[0]\n var args = elem[1]\n // these items may be unset if they were added by an older graceful-fs\n var err = elem[2]\n var startTime = elem[3]\n var lastTime = elem[4]\n\n // if we don't have a startTime we have no way of knowing if we've waited\n // long enough, so go ahead and retry this item now\n if (startTime === undefined) {\n debug('RETRY', fn.name, args)\n fn.apply(null, args)\n } else if (Date.now() - startTime >= 60000) {\n // it's been more than 60 seconds total, bail now\n debug('TIMEOUT', fn.name, args)\n var cb = args.pop()\n if (typeof cb === 'function')\n cb.call(null, err)\n } else {\n // the amount of time between the last attempt and right now\n var sinceAttempt = Date.now() - lastTime\n // the amount of time between when we first tried, and when we last tried\n // rounded up to at least 1\n var sinceStart = Math.max(lastTime - startTime, 1)\n // backoff. wait longer than the total time we've been retrying, but only\n // up to a maximum of 100ms\n var desiredDelay = Math.min(sinceStart * 1.2, 100)\n // it's been long enough since the last retry, do it again\n if (sinceAttempt >= desiredDelay) {\n debug('RETRY', fn.name, args)\n fn.apply(null, args.concat([startTime]))\n } else {\n // if we can't do this job yet, push it to the end of the queue\n // and let the next iteration check again\n fs[gracefulQueue].push(elem)\n }\n }\n\n // schedule our next run if one isn't already scheduled\n if (retryTimer === undefined) {\n retryTimer = setTimeout(retry, 0)\n }\n}\n","var Stream = require('stream').Stream\n\nmodule.exports = legacy\n\nfunction legacy (fs) {\n return {\n ReadStream: ReadStream,\n WriteStream: WriteStream\n }\n\n function ReadStream (path, options) {\n if (!(this instanceof ReadStream)) return new ReadStream(path, options);\n\n Stream.call(this);\n\n var self = this;\n\n this.path = path;\n this.fd = null;\n this.readable = true;\n this.paused = false;\n\n this.flags = 'r';\n this.mode = 438; /*=0666*/\n this.bufferSize = 64 * 1024;\n\n options = options || {};\n\n // Mixin options into this\n var keys = Object.keys(options);\n for (var index = 0, length = keys.length; index < length; index++) {\n var key = keys[index];\n this[key] = options[key];\n }\n\n if (this.encoding) this.setEncoding(this.encoding);\n\n if (this.start !== undefined) {\n if ('number' !== typeof this.start) {\n throw TypeError('start must be a Number');\n }\n if (this.end === undefined) {\n this.end = Infinity;\n } else if ('number' !== typeof this.end) {\n throw TypeError('end must be a Number');\n }\n\n if (this.start > this.end) {\n throw new Error('start must be <= end');\n }\n\n this.pos = this.start;\n }\n\n if (this.fd !== null) {\n process.nextTick(function() {\n self._read();\n });\n return;\n }\n\n fs.open(this.path, this.flags, this.mode, function (err, fd) {\n if (err) {\n self.emit('error', err);\n self.readable = false;\n return;\n }\n\n self.fd = fd;\n self.emit('open', fd);\n self._read();\n })\n }\n\n function WriteStream (path, options) {\n if (!(this instanceof WriteStream)) return new WriteStream(path, options);\n\n Stream.call(this);\n\n this.path = path;\n this.fd = null;\n this.writable = true;\n\n this.flags = 'w';\n this.encoding = 'binary';\n this.mode = 438; /*=0666*/\n this.bytesWritten = 0;\n\n options = options || {};\n\n // Mixin options into this\n var keys = Object.keys(options);\n for (var index = 0, length = keys.length; index < length; index++) {\n var key = keys[index];\n this[key] = options[key];\n }\n\n if (this.start !== undefined) {\n if ('number' !== typeof this.start) {\n throw TypeError('start must be a Number');\n }\n if (this.start < 0) {\n throw new Error('start must be >= zero');\n }\n\n this.pos = this.start;\n }\n\n this.busy = false;\n this._queue = [];\n\n if (this.fd === null) {\n this._open = fs.open;\n this._queue.push([this._open, this.path, this.flags, this.mode, undefined]);\n this.flush();\n }\n }\n}\n","var constants = require('constants')\n\nvar origCwd = process.cwd\nvar cwd = null\n\nvar platform = process.env.GRACEFUL_FS_PLATFORM || process.platform\n\nprocess.cwd = function() {\n if (!cwd)\n cwd = origCwd.call(process)\n return cwd\n}\ntry {\n process.cwd()\n} catch (er) {}\n\n// This check is needed until node.js 12 is required\nif (typeof process.chdir === 'function') {\n var chdir = process.chdir\n process.chdir = function (d) {\n cwd = null\n chdir.call(process, d)\n }\n if (Object.setPrototypeOf) Object.setPrototypeOf(process.chdir, chdir)\n}\n\nmodule.exports = patch\n\nfunction patch (fs) {\n // (re-)implement some things that are known busted or missing.\n\n // lchmod, broken prior to 0.6.2\n // back-port the fix here.\n if (constants.hasOwnProperty('O_SYMLINK') &&\n process.version.match(/^v0\\.6\\.[0-2]|^v0\\.5\\./)) {\n patchLchmod(fs)\n }\n\n // lutimes implementation, or no-op\n if (!fs.lutimes) {\n patchLutimes(fs)\n }\n\n // https://github.com/isaacs/node-graceful-fs/issues/4\n // Chown should not fail on einval or eperm if non-root.\n // It should not fail on enosys ever, as this just indicates\n // that a fs doesn't support the intended operation.\n\n fs.chown = chownFix(fs.chown)\n fs.fchown = chownFix(fs.fchown)\n fs.lchown = chownFix(fs.lchown)\n\n fs.chmod = chmodFix(fs.chmod)\n fs.fchmod = chmodFix(fs.fchmod)\n fs.lchmod = chmodFix(fs.lchmod)\n\n fs.chownSync = chownFixSync(fs.chownSync)\n fs.fchownSync = chownFixSync(fs.fchownSync)\n fs.lchownSync = chownFixSync(fs.lchownSync)\n\n fs.chmodSync = chmodFixSync(fs.chmodSync)\n fs.fchmodSync = chmodFixSync(fs.fchmodSync)\n fs.lchmodSync = chmodFixSync(fs.lchmodSync)\n\n fs.stat = statFix(fs.stat)\n fs.fstat = statFix(fs.fstat)\n fs.lstat = statFix(fs.lstat)\n\n fs.statSync = statFixSync(fs.statSync)\n fs.fstatSync = statFixSync(fs.fstatSync)\n fs.lstatSync = statFixSync(fs.lstatSync)\n\n // if lchmod/lchown do not exist, then make them no-ops\n if (fs.chmod && !fs.lchmod) {\n fs.lchmod = function (path, mode, cb) {\n if (cb) process.nextTick(cb)\n }\n fs.lchmodSync = function () {}\n }\n if (fs.chown && !fs.lchown) {\n fs.lchown = function (path, uid, gid, cb) {\n if (cb) process.nextTick(cb)\n }\n fs.lchownSync = function () {}\n }\n\n // on Windows, A/V software can lock the directory, causing this\n // to fail with an EACCES or EPERM if the directory contains newly\n // created files. Try again on failure, for up to 60 seconds.\n\n // Set the timeout this long because some Windows Anti-Virus, such as Parity\n // bit9, may lock files for up to a minute, causing npm package install\n // failures. Also, take care to yield the scheduler. Windows scheduling gives\n // CPU to a busy looping process, which can cause the program causing the lock\n // contention to be starved of CPU by node, so the contention doesn't resolve.\n if (platform === \"win32\") {\n fs.rename = typeof fs.rename !== 'function' ? fs.rename\n : (function (fs$rename) {\n function rename (from, to, cb) {\n var start = Date.now()\n var backoff = 0;\n fs$rename(from, to, function CB (er) {\n if (er\n && (er.code === \"EACCES\" || er.code === \"EPERM\" || er.code === \"EBUSY\")\n && Date.now() - start < 60000) {\n setTimeout(function() {\n fs.stat(to, function (stater, st) {\n if (stater && stater.code === \"ENOENT\")\n fs$rename(from, to, CB);\n else\n cb(er)\n })\n }, backoff)\n if (backoff < 100)\n backoff += 10;\n return;\n }\n if (cb) cb(er)\n })\n }\n if (Object.setPrototypeOf) Object.setPrototypeOf(rename, fs$rename)\n return rename\n })(fs.rename)\n }\n\n // if read() returns EAGAIN, then just try it again.\n fs.read = typeof fs.read !== 'function' ? fs.read\n : (function (fs$read) {\n function read (fd, buffer, offset, length, position, callback_) {\n var callback\n if (callback_ && typeof callback_ === 'function') {\n var eagCounter = 0\n callback = function (er, _, __) {\n if (er && er.code === 'EAGAIN' && eagCounter < 10) {\n eagCounter ++\n return fs$read.call(fs, fd, buffer, offset, length, position, callback)\n }\n callback_.apply(this, arguments)\n }\n }\n return fs$read.call(fs, fd, buffer, offset, length, position, callback)\n }\n\n // This ensures `util.promisify` works as it does for native `fs.read`.\n if (Object.setPrototypeOf) Object.setPrototypeOf(read, fs$read)\n return read\n })(fs.read)\n\n fs.readSync = typeof fs.readSync !== 'function' ? fs.readSync\n : (function (fs$readSync) { return function (fd, buffer, offset, length, position) {\n var eagCounter = 0\n while (true) {\n try {\n return fs$readSync.call(fs, fd, buffer, offset, length, position)\n } catch (er) {\n if (er.code === 'EAGAIN' && eagCounter < 10) {\n eagCounter ++\n continue\n }\n throw er\n }\n }\n }})(fs.readSync)\n\n function patchLchmod (fs) {\n fs.lchmod = function (path, mode, callback) {\n fs.open( path\n , constants.O_WRONLY | constants.O_SYMLINK\n , mode\n , function (err, fd) {\n if (err) {\n if (callback) callback(err)\n return\n }\n // prefer to return the chmod error, if one occurs,\n // but still try to close, and report closing errors if they occur.\n fs.fchmod(fd, mode, function (err) {\n fs.close(fd, function(err2) {\n if (callback) callback(err || err2)\n })\n })\n })\n }\n\n fs.lchmodSync = function (path, mode) {\n var fd = fs.openSync(path, constants.O_WRONLY | constants.O_SYMLINK, mode)\n\n // prefer to return the chmod error, if one occurs,\n // but still try to close, and report closing errors if they occur.\n var threw = true\n var ret\n try {\n ret = fs.fchmodSync(fd, mode)\n threw = false\n } finally {\n if (threw) {\n try {\n fs.closeSync(fd)\n } catch (er) {}\n } else {\n fs.closeSync(fd)\n }\n }\n return ret\n }\n }\n\n function patchLutimes (fs) {\n if (constants.hasOwnProperty(\"O_SYMLINK\") && fs.futimes) {\n fs.lutimes = function (path, at, mt, cb) {\n fs.open(path, constants.O_SYMLINK, function (er, fd) {\n if (er) {\n if (cb) cb(er)\n return\n }\n fs.futimes(fd, at, mt, function (er) {\n fs.close(fd, function (er2) {\n if (cb) cb(er || er2)\n })\n })\n })\n }\n\n fs.lutimesSync = function (path, at, mt) {\n var fd = fs.openSync(path, constants.O_SYMLINK)\n var ret\n var threw = true\n try {\n ret = fs.futimesSync(fd, at, mt)\n threw = false\n } finally {\n if (threw) {\n try {\n fs.closeSync(fd)\n } catch (er) {}\n } else {\n fs.closeSync(fd)\n }\n }\n return ret\n }\n\n } else if (fs.futimes) {\n fs.lutimes = function (_a, _b, _c, cb) { if (cb) process.nextTick(cb) }\n fs.lutimesSync = function () {}\n }\n }\n\n function chmodFix (orig) {\n if (!orig) return orig\n return function (target, mode, cb) {\n return orig.call(fs, target, mode, function (er) {\n if (chownErOk(er)) er = null\n if (cb) cb.apply(this, arguments)\n })\n }\n }\n\n function chmodFixSync (orig) {\n if (!orig) return orig\n return function (target, mode) {\n try {\n return orig.call(fs, target, mode)\n } catch (er) {\n if (!chownErOk(er)) throw er\n }\n }\n }\n\n\n function chownFix (orig) {\n if (!orig) return orig\n return function (target, uid, gid, cb) {\n return orig.call(fs, target, uid, gid, function (er) {\n if (chownErOk(er)) er = null\n if (cb) cb.apply(this, arguments)\n })\n }\n }\n\n function chownFixSync (orig) {\n if (!orig) return orig\n return function (target, uid, gid) {\n try {\n return orig.call(fs, target, uid, gid)\n } catch (er) {\n if (!chownErOk(er)) throw er\n }\n }\n }\n\n function statFix (orig) {\n if (!orig) return orig\n // Older versions of Node erroneously returned signed integers for\n // uid + gid.\n return function (target, options, cb) {\n if (typeof options === 'function') {\n cb = options\n options = null\n }\n function callback (er, stats) {\n if (stats) {\n if (stats.uid < 0) stats.uid += 0x100000000\n if (stats.gid < 0) stats.gid += 0x100000000\n }\n if (cb) cb.apply(this, arguments)\n }\n return options ? orig.call(fs, target, options, callback)\n : orig.call(fs, target, callback)\n }\n }\n\n function statFixSync (orig) {\n if (!orig) return orig\n // Older versions of Node erroneously returned signed integers for\n // uid + gid.\n return function (target, options) {\n var stats = options ? orig.call(fs, target, options)\n : orig.call(fs, target)\n if (stats) {\n if (stats.uid < 0) stats.uid += 0x100000000\n if (stats.gid < 0) stats.gid += 0x100000000\n }\n return stats;\n }\n }\n\n // ENOSYS means that the fs doesn't support the op. Just ignore\n // that, because it doesn't matter.\n //\n // if there's no getuid, or if getuid() is something other\n // than 0, and the error is EINVAL or EPERM, then just ignore\n // it.\n //\n // This specific case is a silent failure in cp, install, tar,\n // and most other unix tools that manage permissions.\n //\n // When running as root, or if other types of errors are\n // encountered, then it's strict.\n function chownErOk (er) {\n if (!er)\n return true\n\n if (er.code === \"ENOSYS\")\n return true\n\n var nonroot = !process.getuid || process.getuid() !== 0\n if (nonroot) {\n if (er.code === \"EINVAL\" || er.code === \"EPERM\")\n return true\n }\n\n return false\n }\n}\n","/**\n * Archiver Vending\n *\n * @ignore\n * @license [MIT]{@link https://github.com/archiverjs/node-archiver/blob/master/LICENSE}\n * @copyright (c) 2012-2014 Chris Talkington, contributors.\n */\nvar Archiver = require('./lib/core');\n\nvar formats = {};\n\n/**\n * Dispenses a new Archiver instance.\n *\n * @constructor\n * @param {String} format The archive format to use.\n * @param {Object} options See [Archiver]{@link Archiver}\n * @return {Archiver}\n */\nvar vending = function(format, options) {\n return vending.create(format, options);\n};\n\n/**\n * Creates a new Archiver instance.\n *\n * @param {String} format The archive format to use.\n * @param {Object} options See [Archiver]{@link Archiver}\n * @return {Archiver}\n */\nvending.create = function(format, options) {\n if (formats[format]) {\n var instance = new Archiver(format, options);\n instance.setFormat(format);\n instance.setModule(new formats[format](options));\n\n return instance;\n } else {\n throw new Error('create(' + format + '): format not registered');\n }\n};\n\n/**\n * Registers a format for use with archiver.\n *\n * @param {String} format The name of the format.\n * @param {Function} module The function for archiver to interact with.\n * @return void\n */\nvending.registerFormat = function(format, module) {\n if (formats[format]) {\n throw new Error('register(' + format + '): format already registered');\n }\n\n if (typeof module !== 'function') {\n throw new Error('register(' + format + '): format module invalid');\n }\n\n if (typeof module.prototype.append !== 'function' || typeof module.prototype.finalize !== 'function') {\n throw new Error('register(' + format + '): format module missing methods');\n }\n\n formats[format] = module;\n};\n\n/**\n * Check if the format is already registered.\n * \n * @param {String} format the name of the format.\n * @return boolean\n */\nvending.isRegisteredFormat = function (format) {\n if (formats[format]) {\n return true;\n }\n \n return false;\n};\n\nvending.registerFormat('zip', require('./lib/plugins/zip'));\nvending.registerFormat('tar', require('./lib/plugins/tar'));\nvending.registerFormat('json', require('./lib/plugins/json'));\n\nmodule.exports = vending;","/**\n * Archiver Core\n *\n * @ignore\n * @license [MIT]{@link https://github.com/archiverjs/node-archiver/blob/master/LICENSE}\n * @copyright (c) 2012-2014 Chris Talkington, contributors.\n */\nvar fs = require('fs');\nvar glob = require('readdir-glob');\nvar async = require('async');\nvar path = require('path');\nvar util = require('archiver-utils');\n\nvar inherits = require('util').inherits;\nvar ArchiverError = require('./error');\nvar Transform = require('readable-stream').Transform;\n\nvar win32 = process.platform === 'win32';\n\n/**\n * @constructor\n * @param {String} format The archive format to use.\n * @param {(CoreOptions|TransformOptions)} options See also {@link ZipOptions} and {@link TarOptions}.\n */\nvar Archiver = function(format, options) {\n if (!(this instanceof Archiver)) {\n return new Archiver(format, options);\n }\n\n if (typeof format !== 'string') {\n options = format;\n format = 'zip';\n }\n\n options = this.options = util.defaults(options, {\n highWaterMark: 1024 * 1024,\n statConcurrency: 4\n });\n\n Transform.call(this, options);\n\n this._format = false;\n this._module = false;\n this._pending = 0;\n this._pointer = 0;\n\n this._entriesCount = 0;\n this._entriesProcessedCount = 0;\n this._fsEntriesTotalBytes = 0;\n this._fsEntriesProcessedBytes = 0;\n\n this._queue = async.queue(this._onQueueTask.bind(this), 1);\n this._queue.drain(this._onQueueDrain.bind(this));\n\n this._statQueue = async.queue(this._onStatQueueTask.bind(this), options.statConcurrency);\n this._statQueue.drain(this._onQueueDrain.bind(this));\n\n this._state = {\n aborted: false,\n finalize: false,\n finalizing: false,\n finalized: false,\n modulePiped: false\n };\n\n this._streams = [];\n};\n\ninherits(Archiver, Transform);\n\n/**\n * Internal logic for `abort`.\n *\n * @private\n * @return void\n */\nArchiver.prototype._abort = function() {\n this._state.aborted = true;\n this._queue.kill();\n this._statQueue.kill();\n\n if (this._queue.idle()) {\n this._shutdown();\n }\n};\n\n/**\n * Internal helper for appending files.\n *\n * @private\n * @param {String} filepath The source filepath.\n * @param {EntryData} data The entry data.\n * @return void\n */\nArchiver.prototype._append = function(filepath, data) {\n data = data || {};\n\n var task = {\n source: null,\n filepath: filepath\n };\n\n if (!data.name) {\n data.name = filepath;\n }\n\n data.sourcePath = filepath;\n task.data = data;\n this._entriesCount++;\n\n if (data.stats && data.stats instanceof fs.Stats) {\n task = this._updateQueueTaskWithStats(task, data.stats);\n if (task) {\n if (data.stats.size) {\n this._fsEntriesTotalBytes += data.stats.size;\n }\n\n this._queue.push(task);\n }\n } else {\n this._statQueue.push(task);\n }\n};\n\n/**\n * Internal logic for `finalize`.\n *\n * @private\n * @return void\n */\nArchiver.prototype._finalize = function() {\n if (this._state.finalizing || this._state.finalized || this._state.aborted) {\n return;\n }\n\n this._state.finalizing = true;\n\n this._moduleFinalize();\n\n this._state.finalizing = false;\n this._state.finalized = true;\n};\n\n/**\n * Checks the various state variables to determine if we can `finalize`.\n *\n * @private\n * @return {Boolean}\n */\nArchiver.prototype._maybeFinalize = function() {\n if (this._state.finalizing || this._state.finalized || this._state.aborted) {\n return false;\n }\n\n if (this._state.finalize && this._pending === 0 && this._queue.idle() && this._statQueue.idle()) {\n this._finalize();\n return true;\n }\n\n return false;\n};\n\n/**\n * Appends an entry to the module.\n *\n * @private\n * @fires Archiver#entry\n * @param {(Buffer|Stream)} source\n * @param {EntryData} data\n * @param {Function} callback\n * @return void\n */\nArchiver.prototype._moduleAppend = function(source, data, callback) {\n if (this._state.aborted) {\n callback();\n return;\n }\n\n this._module.append(source, data, function(err) {\n this._task = null;\n\n if (this._state.aborted) {\n this._shutdown();\n return;\n }\n\n if (err) {\n this.emit('error', err);\n setImmediate(callback);\n return;\n }\n\n /**\n * Fires when the entry's input has been processed and appended to the archive.\n *\n * @event Archiver#entry\n * @type {EntryData}\n */\n this.emit('entry', data);\n this._entriesProcessedCount++;\n\n if (data.stats && data.stats.size) {\n this._fsEntriesProcessedBytes += data.stats.size;\n }\n\n /**\n * @event Archiver#progress\n * @type {ProgressData}\n */\n this.emit('progress', {\n entries: {\n total: this._entriesCount,\n processed: this._entriesProcessedCount\n },\n fs: {\n totalBytes: this._fsEntriesTotalBytes,\n processedBytes: this._fsEntriesProcessedBytes\n }\n });\n\n setImmediate(callback);\n }.bind(this));\n};\n\n/**\n * Finalizes the module.\n *\n * @private\n * @return void\n */\nArchiver.prototype._moduleFinalize = function() {\n if (typeof this._module.finalize === 'function') {\n this._module.finalize();\n } else if (typeof this._module.end === 'function') {\n this._module.end();\n } else {\n this.emit('error', new ArchiverError('NOENDMETHOD'));\n }\n};\n\n/**\n * Pipes the module to our internal stream with error bubbling.\n *\n * @private\n * @return void\n */\nArchiver.prototype._modulePipe = function() {\n this._module.on('error', this._onModuleError.bind(this));\n this._module.pipe(this);\n this._state.modulePiped = true;\n};\n\n/**\n * Determines if the current module supports a defined feature.\n *\n * @private\n * @param {String} key\n * @return {Boolean}\n */\nArchiver.prototype._moduleSupports = function(key) {\n if (!this._module.supports || !this._module.supports[key]) {\n return false;\n }\n\n return this._module.supports[key];\n};\n\n/**\n * Unpipes the module from our internal stream.\n *\n * @private\n * @return void\n */\nArchiver.prototype._moduleUnpipe = function() {\n this._module.unpipe(this);\n this._state.modulePiped = false;\n};\n\n/**\n * Normalizes entry data with fallbacks for key properties.\n *\n * @private\n * @param {Object} data\n * @param {fs.Stats} stats\n * @return {Object}\n */\nArchiver.prototype._normalizeEntryData = function(data, stats) {\n data = util.defaults(data, {\n type: 'file',\n name: null,\n date: null,\n mode: null,\n prefix: null,\n sourcePath: null,\n stats: false\n });\n\n if (stats && data.stats === false) {\n data.stats = stats;\n }\n\n var isDir = data.type === 'directory';\n\n if (data.name) {\n if (typeof data.prefix === 'string' && '' !== data.prefix) {\n data.name = data.prefix + '/' + data.name;\n data.prefix = null;\n }\n\n data.name = util.sanitizePath(data.name);\n\n if (data.type !== 'symlink' && data.name.slice(-1) === '/') {\n isDir = true;\n data.type = 'directory';\n } else if (isDir) {\n data.name += '/';\n }\n }\n\n // 511 === 0777; 493 === 0755; 438 === 0666; 420 === 0644\n if (typeof data.mode === 'number') {\n if (win32) {\n data.mode &= 511;\n } else {\n data.mode &= 4095\n }\n } else if (data.stats && data.mode === null) {\n if (win32) {\n data.mode = data.stats.mode & 511;\n } else {\n data.mode = data.stats.mode & 4095;\n }\n\n // stat isn't reliable on windows; force 0755 for dir\n if (win32 && isDir) {\n data.mode = 493;\n }\n } else if (data.mode === null) {\n data.mode = isDir ? 493 : 420;\n }\n\n if (data.stats && data.date === null) {\n data.date = data.stats.mtime;\n } else {\n data.date = util.dateify(data.date);\n }\n\n return data;\n};\n\n/**\n * Error listener that re-emits error on to our internal stream.\n *\n * @private\n * @param {Error} err\n * @return void\n */\nArchiver.prototype._onModuleError = function(err) {\n /**\n * @event Archiver#error\n * @type {ErrorData}\n */\n this.emit('error', err);\n};\n\n/**\n * Checks the various state variables after queue has drained to determine if\n * we need to `finalize`.\n *\n * @private\n * @return void\n */\nArchiver.prototype._onQueueDrain = function() {\n if (this._state.finalizing || this._state.finalized || this._state.aborted) {\n return;\n }\n\n if (this._state.finalize && this._pending === 0 && this._queue.idle() && this._statQueue.idle()) {\n this._finalize();\n }\n};\n\n/**\n * Appends each queue task to the module.\n *\n * @private\n * @param {Object} task\n * @param {Function} callback\n * @return void\n */\nArchiver.prototype._onQueueTask = function(task, callback) {\n var fullCallback = () => {\n if(task.data.callback) {\n task.data.callback();\n }\n callback();\n }\n\n if (this._state.finalizing || this._state.finalized || this._state.aborted) {\n fullCallback();\n return;\n }\n\n this._task = task;\n this._moduleAppend(task.source, task.data, fullCallback);\n};\n\n/**\n * Performs a file stat and reinjects the task back into the queue.\n *\n * @private\n * @param {Object} task\n * @param {Function} callback\n * @return void\n */\nArchiver.prototype._onStatQueueTask = function(task, callback) {\n if (this._state.finalizing || this._state.finalized || this._state.aborted) {\n callback();\n return;\n }\n\n fs.lstat(task.filepath, function(err, stats) {\n if (this._state.aborted) {\n setImmediate(callback);\n return;\n }\n\n if (err) {\n this._entriesCount--;\n\n /**\n * @event Archiver#warning\n * @type {ErrorData}\n */\n this.emit('warning', err);\n setImmediate(callback);\n return;\n }\n\n task = this._updateQueueTaskWithStats(task, stats);\n\n if (task) {\n if (stats.size) {\n this._fsEntriesTotalBytes += stats.size;\n }\n\n this._queue.push(task);\n }\n\n setImmediate(callback);\n }.bind(this));\n};\n\n/**\n * Unpipes the module and ends our internal stream.\n *\n * @private\n * @return void\n */\nArchiver.prototype._shutdown = function() {\n this._moduleUnpipe();\n this.end();\n};\n\n/**\n * Tracks the bytes emitted by our internal stream.\n *\n * @private\n * @param {Buffer} chunk\n * @param {String} encoding\n * @param {Function} callback\n * @return void\n */\nArchiver.prototype._transform = function(chunk, encoding, callback) {\n if (chunk) {\n this._pointer += chunk.length;\n }\n\n callback(null, chunk);\n};\n\n/**\n * Updates and normalizes a queue task using stats data.\n *\n * @private\n * @param {Object} task\n * @param {fs.Stats} stats\n * @return {Object}\n */\nArchiver.prototype._updateQueueTaskWithStats = function(task, stats) {\n if (stats.isFile()) {\n task.data.type = 'file';\n task.data.sourceType = 'stream';\n task.source = util.lazyReadStream(task.filepath);\n } else if (stats.isDirectory() && this._moduleSupports('directory')) {\n task.data.name = util.trailingSlashIt(task.data.name);\n task.data.type = 'directory';\n task.data.sourcePath = util.trailingSlashIt(task.filepath);\n task.data.sourceType = 'buffer';\n task.source = Buffer.concat([]);\n } else if (stats.isSymbolicLink() && this._moduleSupports('symlink')) {\n var linkPath = fs.readlinkSync(task.filepath);\n var dirName = path.dirname(task.filepath);\n task.data.type = 'symlink';\n task.data.linkname = path.relative(dirName, path.resolve(dirName, linkPath));\n task.data.sourceType = 'buffer';\n task.source = Buffer.concat([]);\n } else {\n if (stats.isDirectory()) {\n this.emit('warning', new ArchiverError('DIRECTORYNOTSUPPORTED', task.data));\n } else if (stats.isSymbolicLink()) {\n this.emit('warning', new ArchiverError('SYMLINKNOTSUPPORTED', task.data));\n } else {\n this.emit('warning', new ArchiverError('ENTRYNOTSUPPORTED', task.data));\n }\n\n return null;\n }\n\n task.data = this._normalizeEntryData(task.data, stats);\n\n return task;\n};\n\n/**\n * Aborts the archiving process, taking a best-effort approach, by:\n *\n * - removing any pending queue tasks\n * - allowing any active queue workers to finish\n * - detaching internal module pipes\n * - ending both sides of the Transform stream\n *\n * It will NOT drain any remaining sources.\n *\n * @return {this}\n */\nArchiver.prototype.abort = function() {\n if (this._state.aborted || this._state.finalized) {\n return this;\n }\n\n this._abort();\n\n return this;\n};\n\n/**\n * Appends an input source (text string, buffer, or stream) to the instance.\n *\n * When the instance has received, processed, and emitted the input, the `entry`\n * event is fired.\n *\n * @fires Archiver#entry\n * @param {(Buffer|Stream|String)} source The input source.\n * @param {EntryData} data See also {@link ZipEntryData} and {@link TarEntryData}.\n * @return {this}\n */\nArchiver.prototype.append = function(source, data) {\n if (this._state.finalize || this._state.aborted) {\n this.emit('error', new ArchiverError('QUEUECLOSED'));\n return this;\n }\n\n data = this._normalizeEntryData(data);\n\n if (typeof data.name !== 'string' || data.name.length === 0) {\n this.emit('error', new ArchiverError('ENTRYNAMEREQUIRED'));\n return this;\n }\n\n if (data.type === 'directory' && !this._moduleSupports('directory')) {\n this.emit('error', new ArchiverError('DIRECTORYNOTSUPPORTED', { name: data.name }));\n return this;\n }\n\n source = util.normalizeInputSource(source);\n\n if (Buffer.isBuffer(source)) {\n data.sourceType = 'buffer';\n } else if (util.isStream(source)) {\n data.sourceType = 'stream';\n } else {\n this.emit('error', new ArchiverError('INPUTSTEAMBUFFERREQUIRED', { name: data.name }));\n return this;\n }\n\n this._entriesCount++;\n this._queue.push({\n data: data,\n source: source\n });\n\n return this;\n};\n\n/**\n * Appends a directory and its files, recursively, given its dirpath.\n *\n * @param {String} dirpath The source directory path.\n * @param {String} destpath The destination path within the archive.\n * @param {(EntryData|Function)} data See also [ZipEntryData]{@link ZipEntryData} and\n * [TarEntryData]{@link TarEntryData}.\n * @return {this}\n */\nArchiver.prototype.directory = function(dirpath, destpath, data) {\n if (this._state.finalize || this._state.aborted) {\n this.emit('error', new ArchiverError('QUEUECLOSED'));\n return this;\n }\n\n if (typeof dirpath !== 'string' || dirpath.length === 0) {\n this.emit('error', new ArchiverError('DIRECTORYDIRPATHREQUIRED'));\n return this;\n }\n\n this._pending++;\n\n if (destpath === false) {\n destpath = '';\n } else if (typeof destpath !== 'string'){\n destpath = dirpath;\n }\n\n var dataFunction = false;\n if (typeof data === 'function') {\n dataFunction = data;\n data = {};\n } else if (typeof data !== 'object') {\n data = {};\n }\n\n var globOptions = {\n stat: true,\n dot: true\n };\n\n function onGlobEnd() {\n this._pending--;\n this._maybeFinalize();\n }\n\n function onGlobError(err) {\n this.emit('error', err);\n }\n\n function onGlobMatch(match){\n globber.pause();\n\n var ignoreMatch = false;\n var entryData = Object.assign({}, data);\n entryData.name = match.relative;\n entryData.prefix = destpath;\n entryData.stats = match.stat;\n entryData.callback = globber.resume.bind(globber);\n\n try {\n if (dataFunction) {\n entryData = dataFunction(entryData);\n\n if (entryData === false) {\n ignoreMatch = true;\n } else if (typeof entryData !== 'object') {\n throw new ArchiverError('DIRECTORYFUNCTIONINVALIDDATA', { dirpath: dirpath });\n }\n }\n } catch(e) {\n this.emit('error', e);\n return;\n }\n\n if (ignoreMatch) {\n globber.resume();\n return;\n }\n\n this._append(match.absolute, entryData);\n }\n\n var globber = glob(dirpath, globOptions);\n globber.on('error', onGlobError.bind(this));\n globber.on('match', onGlobMatch.bind(this));\n globber.on('end', onGlobEnd.bind(this));\n\n return this;\n};\n\n/**\n * Appends a file given its filepath using a\n * [lazystream]{@link https://github.com/jpommerening/node-lazystream} wrapper to\n * prevent issues with open file limits.\n *\n * When the instance has received, processed, and emitted the file, the `entry`\n * event is fired.\n *\n * @param {String} filepath The source filepath.\n * @param {EntryData} data See also [ZipEntryData]{@link ZipEntryData} and\n * [TarEntryData]{@link TarEntryData}.\n * @return {this}\n */\nArchiver.prototype.file = function(filepath, data) {\n if (this._state.finalize || this._state.aborted) {\n this.emit('error', new ArchiverError('QUEUECLOSED'));\n return this;\n }\n\n if (typeof filepath !== 'string' || filepath.length === 0) {\n this.emit('error', new ArchiverError('FILEFILEPATHREQUIRED'));\n return this;\n }\n\n this._append(filepath, data);\n\n return this;\n};\n\n/**\n * Appends multiple files that match a glob pattern.\n *\n * @param {String} pattern The [glob pattern]{@link https://github.com/isaacs/minimatch} to match.\n * @param {Object} options See [node-readdir-glob]{@link https://github.com/yqnn/node-readdir-glob#options}.\n * @param {EntryData} data See also [ZipEntryData]{@link ZipEntryData} and\n * [TarEntryData]{@link TarEntryData}.\n * @return {this}\n */\nArchiver.prototype.glob = function(pattern, options, data) {\n this._pending++;\n\n options = util.defaults(options, {\n stat: true,\n pattern: pattern\n });\n\n function onGlobEnd() {\n this._pending--;\n this._maybeFinalize();\n }\n\n function onGlobError(err) {\n this.emit('error', err);\n }\n\n function onGlobMatch(match){\n globber.pause();\n var entryData = Object.assign({}, data);\n entryData.callback = globber.resume.bind(globber);\n entryData.stats = match.stat;\n entryData.name = match.relative;\n\n this._append(match.absolute, entryData);\n }\n\n var globber = glob(options.cwd || '.', options);\n globber.on('error', onGlobError.bind(this));\n globber.on('match', onGlobMatch.bind(this));\n globber.on('end', onGlobEnd.bind(this));\n\n return this;\n};\n\n/**\n * Finalizes the instance and prevents further appending to the archive\n * structure (queue will continue til drained).\n *\n * The `end`, `close` or `finish` events on the destination stream may fire\n * right after calling this method so you should set listeners beforehand to\n * properly detect stream completion.\n *\n * @return {Promise}\n */\nArchiver.prototype.finalize = function() {\n if (this._state.aborted) {\n var abortedError = new ArchiverError('ABORTED');\n this.emit('error', abortedError);\n return Promise.reject(abortedError);\n }\n\n if (this._state.finalize) {\n var finalizingError = new ArchiverError('FINALIZING');\n this.emit('error', finalizingError);\n return Promise.reject(finalizingError);\n }\n\n this._state.finalize = true;\n\n if (this._pending === 0 && this._queue.idle() && this._statQueue.idle()) {\n this._finalize();\n }\n\n var self = this;\n\n return new Promise(function(resolve, reject) {\n var errored;\n\n self._module.on('end', function() {\n if (!errored) {\n resolve();\n }\n })\n\n self._module.on('error', function(err) {\n errored = true;\n reject(err);\n })\n })\n};\n\n/**\n * Sets the module format name used for archiving.\n *\n * @param {String} format The name of the format.\n * @return {this}\n */\nArchiver.prototype.setFormat = function(format) {\n if (this._format) {\n this.emit('error', new ArchiverError('FORMATSET'));\n return this;\n }\n\n this._format = format;\n\n return this;\n};\n\n/**\n * Sets the module used for archiving.\n *\n * @param {Function} module The function for archiver to interact with.\n * @return {this}\n */\nArchiver.prototype.setModule = function(module) {\n if (this._state.aborted) {\n this.emit('error', new ArchiverError('ABORTED'));\n return this;\n }\n\n if (this._state.module) {\n this.emit('error', new ArchiverError('MODULESET'));\n return this;\n }\n\n this._module = module;\n this._modulePipe();\n\n return this;\n};\n\n/**\n * Appends a symlink to the instance.\n *\n * This does NOT interact with filesystem and is used for programmatically creating symlinks.\n *\n * @param {String} filepath The symlink path (within archive).\n * @param {String} target The target path (within archive).\n * @param {Number} mode Sets the entry permissions.\n * @return {this}\n */\nArchiver.prototype.symlink = function(filepath, target, mode) {\n if (this._state.finalize || this._state.aborted) {\n this.emit('error', new ArchiverError('QUEUECLOSED'));\n return this;\n }\n\n if (typeof filepath !== 'string' || filepath.length === 0) {\n this.emit('error', new ArchiverError('SYMLINKFILEPATHREQUIRED'));\n return this;\n }\n\n if (typeof target !== 'string' || target.length === 0) {\n this.emit('error', new ArchiverError('SYMLINKTARGETREQUIRED', { filepath: filepath }));\n return this;\n }\n\n if (!this._moduleSupports('symlink')) {\n this.emit('error', new ArchiverError('SYMLINKNOTSUPPORTED', { filepath: filepath }));\n return this;\n }\n\n var data = {};\n data.type = 'symlink';\n data.name = filepath.replace(/\\\\/g, '/');\n data.linkname = target.replace(/\\\\/g, '/');\n data.sourceType = 'buffer';\n\n if (typeof mode === \"number\") {\n data.mode = mode;\n }\n\n this._entriesCount++;\n this._queue.push({\n data: data,\n source: Buffer.concat([])\n });\n\n return this;\n};\n\n/**\n * Returns the current length (in bytes) that has been emitted.\n *\n * @return {Number}\n */\nArchiver.prototype.pointer = function() {\n return this._pointer;\n};\n\n/**\n * Middleware-like helper that has yet to be fully implemented.\n *\n * @private\n * @param {Function} plugin\n * @return {this}\n */\nArchiver.prototype.use = function(plugin) {\n this._streams.push(plugin);\n return this;\n};\n\nmodule.exports = Archiver;\n\n/**\n * @typedef {Object} CoreOptions\n * @global\n * @property {Number} [statConcurrency=4] Sets the number of workers used to\n * process the internal fs stat queue.\n */\n\n/**\n * @typedef {Object} TransformOptions\n * @property {Boolean} [allowHalfOpen=true] If set to false, then the stream\n * will automatically end the readable side when the writable side ends and vice\n * versa.\n * @property {Boolean} [readableObjectMode=false] Sets objectMode for readable\n * side of the stream. Has no effect if objectMode is true.\n * @property {Boolean} [writableObjectMode=false] Sets objectMode for writable\n * side of the stream. Has no effect if objectMode is true.\n * @property {Boolean} [decodeStrings=true] Whether or not to decode strings\n * into Buffers before passing them to _write(). `Writable`\n * @property {String} [encoding=NULL] If specified, then buffers will be decoded\n * to strings using the specified encoding. `Readable`\n * @property {Number} [highWaterMark=16kb] The maximum number of bytes to store\n * in the internal buffer before ceasing to read from the underlying resource.\n * `Readable` `Writable`\n * @property {Boolean} [objectMode=false] Whether this stream should behave as a\n * stream of objects. Meaning that stream.read(n) returns a single value instead\n * of a Buffer of size n. `Readable` `Writable`\n */\n\n/**\n * @typedef {Object} EntryData\n * @property {String} name Sets the entry name including internal path.\n * @property {(String|Date)} [date=NOW()] Sets the entry date.\n * @property {Number} [mode=D:0755/F:0644] Sets the entry permissions.\n * @property {String} [prefix] Sets a path prefix for the entry name. Useful\n * when working with methods like `directory` or `glob`.\n * @property {fs.Stats} [stats] Sets the fs stat data for this entry allowing\n * for reduction of fs stat calls when stat data is already known.\n */\n\n/**\n * @typedef {Object} ErrorData\n * @property {String} message The message of the error.\n * @property {String} code The error code assigned to this error.\n * @property {String} data Additional data provided for reporting or debugging (where available).\n */\n\n/**\n * @typedef {Object} ProgressData\n * @property {Object} entries\n * @property {Number} entries.total Number of entries that have been appended.\n * @property {Number} entries.processed Number of entries that have been processed.\n * @property {Object} fs\n * @property {Number} fs.totalBytes Number of bytes that have been appended. Calculated asynchronously and might not be accurate: it growth while entries are added. (based on fs.Stats)\n * @property {Number} fs.processedBytes Number of bytes that have been processed. (based on fs.Stats)\n */\n","/**\n * Archiver Core\n *\n * @ignore\n * @license [MIT]{@link https://github.com/archiverjs/node-archiver/blob/master/LICENSE}\n * @copyright (c) 2012-2014 Chris Talkington, contributors.\n */\n\nvar util = require('util');\n\nconst ERROR_CODES = {\n 'ABORTED': 'archive was aborted',\n 'DIRECTORYDIRPATHREQUIRED': 'diretory dirpath argument must be a non-empty string value',\n 'DIRECTORYFUNCTIONINVALIDDATA': 'invalid data returned by directory custom data function',\n 'ENTRYNAMEREQUIRED': 'entry name must be a non-empty string value',\n 'FILEFILEPATHREQUIRED': 'file filepath argument must be a non-empty string value',\n 'FINALIZING': 'archive already finalizing',\n 'QUEUECLOSED': 'queue closed',\n 'NOENDMETHOD': 'no suitable finalize/end method defined by module',\n 'DIRECTORYNOTSUPPORTED': 'support for directory entries not defined by module',\n 'FORMATSET': 'archive format already set',\n 'INPUTSTEAMBUFFERREQUIRED': 'input source must be valid Stream or Buffer instance',\n 'MODULESET': 'module already set',\n 'SYMLINKNOTSUPPORTED': 'support for symlink entries not defined by module',\n 'SYMLINKFILEPATHREQUIRED': 'symlink filepath argument must be a non-empty string value',\n 'SYMLINKTARGETREQUIRED': 'symlink target argument must be a non-empty string value',\n 'ENTRYNOTSUPPORTED': 'entry not supported'\n};\n\nfunction ArchiverError(code, data) {\n Error.captureStackTrace(this, this.constructor);\n //this.name = this.constructor.name;\n this.message = ERROR_CODES[code] || code;\n this.code = code;\n this.data = data;\n}\n\nutil.inherits(ArchiverError, Error);\n\nexports = module.exports = ArchiverError;","/**\n * JSON Format Plugin\n *\n * @module plugins/json\n * @license [MIT]{@link https://github.com/archiverjs/node-archiver/blob/master/LICENSE}\n * @copyright (c) 2012-2014 Chris Talkington, contributors.\n */\nvar inherits = require('util').inherits;\nvar Transform = require('readable-stream').Transform;\n\nvar crc32 = require('buffer-crc32');\nvar util = require('archiver-utils');\n\n/**\n * @constructor\n * @param {(JsonOptions|TransformOptions)} options\n */\nvar Json = function(options) {\n if (!(this instanceof Json)) {\n return new Json(options);\n }\n\n options = this.options = util.defaults(options, {});\n\n Transform.call(this, options);\n\n this.supports = {\n directory: true,\n symlink: true\n };\n\n this.files = [];\n};\n\ninherits(Json, Transform);\n\n/**\n * [_transform description]\n *\n * @private\n * @param {Buffer} chunk\n * @param {String} encoding\n * @param {Function} callback\n * @return void\n */\nJson.prototype._transform = function(chunk, encoding, callback) {\n callback(null, chunk);\n};\n\n/**\n * [_writeStringified description]\n *\n * @private\n * @return void\n */\nJson.prototype._writeStringified = function() {\n var fileString = JSON.stringify(this.files);\n this.write(fileString);\n};\n\n/**\n * [append description]\n *\n * @param {(Buffer|Stream)} source\n * @param {EntryData} data\n * @param {Function} callback\n * @return void\n */\nJson.prototype.append = function(source, data, callback) {\n var self = this;\n\n data.crc32 = 0;\n\n function onend(err, sourceBuffer) {\n if (err) {\n callback(err);\n return;\n }\n\n data.size = sourceBuffer.length || 0;\n data.crc32 = crc32.unsigned(sourceBuffer);\n\n self.files.push(data);\n\n callback(null, data);\n }\n\n if (data.sourceType === 'buffer') {\n onend(null, source);\n } else if (data.sourceType === 'stream') {\n util.collectStream(source, onend);\n }\n};\n\n/**\n * [finalize description]\n *\n * @return void\n */\nJson.prototype.finalize = function() {\n this._writeStringified();\n this.end();\n};\n\nmodule.exports = Json;\n\n/**\n * @typedef {Object} JsonOptions\n * @global\n */\n","/**\n * TAR Format Plugin\n *\n * @module plugins/tar\n * @license [MIT]{@link https://github.com/archiverjs/node-archiver/blob/master/LICENSE}\n * @copyright (c) 2012-2014 Chris Talkington, contributors.\n */\nvar zlib = require('zlib');\n\nvar engine = require('tar-stream');\nvar util = require('archiver-utils');\n\n/**\n * @constructor\n * @param {TarOptions} options\n */\nvar Tar = function(options) {\n if (!(this instanceof Tar)) {\n return new Tar(options);\n }\n\n options = this.options = util.defaults(options, {\n gzip: false\n });\n\n if (typeof options.gzipOptions !== 'object') {\n options.gzipOptions = {};\n }\n\n this.supports = {\n directory: true,\n symlink: true\n };\n\n this.engine = engine.pack(options);\n this.compressor = false;\n\n if (options.gzip) {\n this.compressor = zlib.createGzip(options.gzipOptions);\n this.compressor.on('error', this._onCompressorError.bind(this));\n }\n};\n\n/**\n * [_onCompressorError description]\n *\n * @private\n * @param {Error} err\n * @return void\n */\nTar.prototype._onCompressorError = function(err) {\n this.engine.emit('error', err);\n};\n\n/**\n * [append description]\n *\n * @param {(Buffer|Stream)} source\n * @param {TarEntryData} data\n * @param {Function} callback\n * @return void\n */\nTar.prototype.append = function(source, data, callback) {\n var self = this;\n\n data.mtime = data.date;\n\n function append(err, sourceBuffer) {\n if (err) {\n callback(err);\n return;\n }\n\n self.engine.entry(data, sourceBuffer, function(err) {\n callback(err, data);\n });\n }\n\n if (data.sourceType === 'buffer') {\n append(null, source);\n } else if (data.sourceType === 'stream' && data.stats) {\n data.size = data.stats.size;\n\n var entry = self.engine.entry(data, function(err) {\n callback(err, data);\n });\n\n source.pipe(entry);\n } else if (data.sourceType === 'stream') {\n util.collectStream(source, append);\n }\n};\n\n/**\n * [finalize description]\n *\n * @return void\n */\nTar.prototype.finalize = function() {\n this.engine.finalize();\n};\n\n/**\n * [on description]\n *\n * @return this.engine\n */\nTar.prototype.on = function() {\n return this.engine.on.apply(this.engine, arguments);\n};\n\n/**\n * [pipe description]\n *\n * @param {String} destination\n * @param {Object} options\n * @return this.engine\n */\nTar.prototype.pipe = function(destination, options) {\n if (this.compressor) {\n return this.engine.pipe.apply(this.engine, [this.compressor]).pipe(destination, options);\n } else {\n return this.engine.pipe.apply(this.engine, arguments);\n }\n};\n\n/**\n * [unpipe description]\n *\n * @return this.engine\n */\nTar.prototype.unpipe = function() {\n if (this.compressor) {\n return this.compressor.unpipe.apply(this.compressor, arguments);\n } else {\n return this.engine.unpipe.apply(this.engine, arguments);\n }\n};\n\nmodule.exports = Tar;\n\n/**\n * @typedef {Object} TarOptions\n * @global\n * @property {Boolean} [gzip=false] Compress the tar archive using gzip.\n * @property {Object} [gzipOptions] Passed to [zlib]{@link https://nodejs.org/api/zlib.html#zlib_class_options}\n * to control compression.\n * @property {*} [*] See [tar-stream]{@link https://github.com/mafintosh/tar-stream} documentation for additional properties.\n */\n\n/**\n * @typedef {Object} TarEntryData\n * @global\n * @property {String} name Sets the entry name including internal path.\n * @property {(String|Date)} [date=NOW()] Sets the entry date.\n * @property {Number} [mode=D:0755/F:0644] Sets the entry permissions.\n * @property {String} [prefix] Sets a path prefix for the entry name. Useful\n * when working with methods like `directory` or `glob`.\n * @property {fs.Stats} [stats] Sets the fs stat data for this entry allowing\n * for reduction of fs stat calls when stat data is already known.\n */\n\n/**\n * TarStream Module\n * @external TarStream\n * @see {@link https://github.com/mafintosh/tar-stream}\n */\n","/**\n * ZIP Format Plugin\n *\n * @module plugins/zip\n * @license [MIT]{@link https://github.com/archiverjs/node-archiver/blob/master/LICENSE}\n * @copyright (c) 2012-2014 Chris Talkington, contributors.\n */\nvar engine = require('zip-stream');\nvar util = require('archiver-utils');\n\n/**\n * @constructor\n * @param {ZipOptions} [options]\n * @param {String} [options.comment] Sets the zip archive comment.\n * @param {Boolean} [options.forceLocalTime=false] Forces the archive to contain local file times instead of UTC.\n * @param {Boolean} [options.forceZip64=false] Forces the archive to contain ZIP64 headers.\n * @param {Boolean} [options.namePrependSlash=false] Prepends a forward slash to archive file paths.\n * @param {Boolean} [options.store=false] Sets the compression method to STORE.\n * @param {Object} [options.zlib] Passed to [zlib]{@link https://nodejs.org/api/zlib.html#zlib_class_options}\n */\nvar Zip = function(options) {\n if (!(this instanceof Zip)) {\n return new Zip(options);\n }\n\n options = this.options = util.defaults(options, {\n comment: '',\n forceUTC: false,\n namePrependSlash: false,\n store: false\n });\n\n this.supports = {\n directory: true,\n symlink: true\n };\n\n this.engine = new engine(options);\n};\n\n/**\n * @param {(Buffer|Stream)} source\n * @param {ZipEntryData} data\n * @param {String} data.name Sets the entry name including internal path.\n * @param {(String|Date)} [data.date=NOW()] Sets the entry date.\n * @param {Number} [data.mode=D:0755/F:0644] Sets the entry permissions.\n * @param {String} [data.prefix] Sets a path prefix for the entry name. Useful\n * when working with methods like `directory` or `glob`.\n * @param {fs.Stats} [data.stats] Sets the fs stat data for this entry allowing\n * for reduction of fs stat calls when stat data is already known.\n * @param {Boolean} [data.store=ZipOptions.store] Sets the compression method to STORE.\n * @param {Function} callback\n * @return void\n */\nZip.prototype.append = function(source, data, callback) {\n this.engine.entry(source, data, callback);\n};\n\n/**\n * @return void\n */\nZip.prototype.finalize = function() {\n this.engine.finalize();\n};\n\n/**\n * @return this.engine\n */\nZip.prototype.on = function() {\n return this.engine.on.apply(this.engine, arguments);\n};\n\n/**\n * @return this.engine\n */\nZip.prototype.pipe = function() {\n return this.engine.pipe.apply(this.engine, arguments);\n};\n\n/**\n * @return this.engine\n */\nZip.prototype.unpipe = function() {\n return this.engine.unpipe.apply(this.engine, arguments);\n};\n\nmodule.exports = Zip;\n\n/**\n * @typedef {Object} ZipOptions\n * @global\n * @property {String} [comment] Sets the zip archive comment.\n * @property {Boolean} [forceLocalTime=false] Forces the archive to contain local file times instead of UTC.\n * @property {Boolean} [forceZip64=false] Forces the archive to contain ZIP64 headers.\n * @prpperty {Boolean} [namePrependSlash=false] Prepends a forward slash to archive file paths.\n * @property {Boolean} [store=false] Sets the compression method to STORE.\n * @property {Object} [zlib] Passed to [zlib]{@link https://nodejs.org/api/zlib.html#zlib_class_options}\n * to control compression.\n * @property {*} [*] See [zip-stream]{@link https://archiverjs.com/zip-stream/ZipStream.html} documentation for current list of properties.\n */\n\n/**\n * @typedef {Object} ZipEntryData\n * @global\n * @property {String} name Sets the entry name including internal path.\n * @property {(String|Date)} [date=NOW()] Sets the entry date.\n * @property {Number} [mode=D:0755/F:0644] Sets the entry permissions.\n * @property {Boolean} [namePrependSlash=ZipOptions.namePrependSlash] Prepends a forward slash to archive file paths.\n * @property {String} [prefix] Sets a path prefix for the entry name. Useful\n * when working with methods like `directory` or `glob`.\n * @property {fs.Stats} [stats] Sets the fs stat data for this entry allowing\n * for reduction of fs stat calls when stat data is already known.\n * @property {Boolean} [store=ZipOptions.store] Sets the compression method to STORE.\n */\n\n/**\n * ZipStream Module\n * @external ZipStream\n * @see {@link https://www.archiverjs.com/zip-stream/ZipStream.html}\n */\n","(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :\n typeof define === 'function' && define.amd ? define(['exports'], factory) :\n (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.async = {}));\n})(this, (function (exports) { 'use strict';\n\n /**\n * Creates a continuation function with some arguments already applied.\n *\n * Useful as a shorthand when combined with other control flow functions. Any\n * arguments passed to the returned function are added to the arguments\n * originally passed to apply.\n *\n * @name apply\n * @static\n * @memberOf module:Utils\n * @method\n * @category Util\n * @param {Function} fn - The function you want to eventually apply all\n * arguments to. Invokes with (arguments...).\n * @param {...*} arguments... - Any number of arguments to automatically apply\n * when the continuation is called.\n * @returns {Function} the partially-applied function\n * @example\n *\n * // using apply\n * async.parallel([\n * async.apply(fs.writeFile, 'testfile1', 'test1'),\n * async.apply(fs.writeFile, 'testfile2', 'test2')\n * ]);\n *\n *\n * // the same process without using apply\n * async.parallel([\n * function(callback) {\n * fs.writeFile('testfile1', 'test1', callback);\n * },\n * function(callback) {\n * fs.writeFile('testfile2', 'test2', callback);\n * }\n * ]);\n *\n * // It's possible to pass any number of additional arguments when calling the\n * // continuation:\n *\n * node> var fn = async.apply(sys.puts, 'one');\n * node> fn('two', 'three');\n * one\n * two\n * three\n */\n function apply(fn, ...args) {\n return (...callArgs) => fn(...args,...callArgs);\n }\n\n function initialParams (fn) {\n return function (...args/*, callback*/) {\n var callback = args.pop();\n return fn.call(this, args, callback);\n };\n }\n\n /* istanbul ignore file */\n\n var hasQueueMicrotask = typeof queueMicrotask === 'function' && queueMicrotask;\n var hasSetImmediate = typeof setImmediate === 'function' && setImmediate;\n var hasNextTick = typeof process === 'object' && typeof process.nextTick === 'function';\n\n function fallback(fn) {\n setTimeout(fn, 0);\n }\n\n function wrap(defer) {\n return (fn, ...args) => defer(() => fn(...args));\n }\n\n var _defer$1;\n\n if (hasQueueMicrotask) {\n _defer$1 = queueMicrotask;\n } else if (hasSetImmediate) {\n _defer$1 = setImmediate;\n } else if (hasNextTick) {\n _defer$1 = process.nextTick;\n } else {\n _defer$1 = fallback;\n }\n\n var setImmediate$1 = wrap(_defer$1);\n\n /**\n * Take a sync function and make it async, passing its return value to a\n * callback. This is useful for plugging sync functions into a waterfall,\n * series, or other async functions. Any arguments passed to the generated\n * function will be passed to the wrapped function (except for the final\n * callback argument). Errors thrown will be passed to the callback.\n *\n * If the function passed to `asyncify` returns a Promise, that promises's\n * resolved/rejected state will be used to call the callback, rather than simply\n * the synchronous return value.\n *\n * This also means you can asyncify ES2017 `async` functions.\n *\n * @name asyncify\n * @static\n * @memberOf module:Utils\n * @method\n * @alias wrapSync\n * @category Util\n * @param {Function} func - The synchronous function, or Promise-returning\n * function to convert to an {@link AsyncFunction}.\n * @returns {AsyncFunction} An asynchronous wrapper of the `func`. To be\n * invoked with `(args..., callback)`.\n * @example\n *\n * // passing a regular synchronous function\n * async.waterfall([\n * async.apply(fs.readFile, filename, \"utf8\"),\n * async.asyncify(JSON.parse),\n * function (data, next) {\n * // data is the result of parsing the text.\n * // If there was a parsing error, it would have been caught.\n * }\n * ], callback);\n *\n * // passing a function returning a promise\n * async.waterfall([\n * async.apply(fs.readFile, filename, \"utf8\"),\n * async.asyncify(function (contents) {\n * return db.model.create(contents);\n * }),\n * function (model, next) {\n * // `model` is the instantiated model object.\n * // If there was an error, this function would be skipped.\n * }\n * ], callback);\n *\n * // es2017 example, though `asyncify` is not needed if your JS environment\n * // supports async functions out of the box\n * var q = async.queue(async.asyncify(async function(file) {\n * var intermediateStep = await processFile(file);\n * return await somePromise(intermediateStep)\n * }));\n *\n * q.push(files);\n */\n function asyncify(func) {\n if (isAsync(func)) {\n return function (...args/*, callback*/) {\n const callback = args.pop();\n const promise = func.apply(this, args);\n return handlePromise(promise, callback)\n }\n }\n\n return initialParams(function (args, callback) {\n var result;\n try {\n result = func.apply(this, args);\n } catch (e) {\n return callback(e);\n }\n // if result is Promise object\n if (result && typeof result.then === 'function') {\n return handlePromise(result, callback)\n } else {\n callback(null, result);\n }\n });\n }\n\n function handlePromise(promise, callback) {\n return promise.then(value => {\n invokeCallback(callback, null, value);\n }, err => {\n invokeCallback(callback, err && (err instanceof Error || err.message) ? err : new Error(err));\n });\n }\n\n function invokeCallback(callback, error, value) {\n try {\n callback(error, value);\n } catch (err) {\n setImmediate$1(e => { throw e }, err);\n }\n }\n\n function isAsync(fn) {\n return fn[Symbol.toStringTag] === 'AsyncFunction';\n }\n\n function isAsyncGenerator(fn) {\n return fn[Symbol.toStringTag] === 'AsyncGenerator';\n }\n\n function isAsyncIterable(obj) {\n return typeof obj[Symbol.asyncIterator] === 'function';\n }\n\n function wrapAsync(asyncFn) {\n if (typeof asyncFn !== 'function') throw new Error('expected a function')\n return isAsync(asyncFn) ? asyncify(asyncFn) : asyncFn;\n }\n\n // conditionally promisify a function.\n // only return a promise if a callback is omitted\n function awaitify (asyncFn, arity) {\n if (!arity) arity = asyncFn.length;\n if (!arity) throw new Error('arity is undefined')\n function awaitable (...args) {\n if (typeof args[arity - 1] === 'function') {\n return asyncFn.apply(this, args)\n }\n\n return new Promise((resolve, reject) => {\n args[arity - 1] = (err, ...cbArgs) => {\n if (err) return reject(err)\n resolve(cbArgs.length > 1 ? cbArgs : cbArgs[0]);\n };\n asyncFn.apply(this, args);\n })\n }\n\n return awaitable\n }\n\n function applyEach$1 (eachfn) {\n return function applyEach(fns, ...callArgs) {\n const go = awaitify(function (callback) {\n var that = this;\n return eachfn(fns, (fn, cb) => {\n wrapAsync(fn).apply(that, callArgs.concat(cb));\n }, callback);\n });\n return go;\n };\n }\n\n function _asyncMap(eachfn, arr, iteratee, callback) {\n arr = arr || [];\n var results = [];\n var counter = 0;\n var _iteratee = wrapAsync(iteratee);\n\n return eachfn(arr, (value, _, iterCb) => {\n var index = counter++;\n _iteratee(value, (err, v) => {\n results[index] = v;\n iterCb(err);\n });\n }, err => {\n callback(err, results);\n });\n }\n\n function isArrayLike(value) {\n return value &&\n typeof value.length === 'number' &&\n value.length >= 0 &&\n value.length % 1 === 0;\n }\n\n // A temporary value used to identify if the loop should be broken.\n // See #1064, #1293\n const breakLoop = {};\n var breakLoop$1 = breakLoop;\n\n function once(fn) {\n function wrapper (...args) {\n if (fn === null) return;\n var callFn = fn;\n fn = null;\n callFn.apply(this, args);\n }\n Object.assign(wrapper, fn);\n return wrapper\n }\n\n function getIterator (coll) {\n return coll[Symbol.iterator] && coll[Symbol.iterator]();\n }\n\n function createArrayIterator(coll) {\n var i = -1;\n var len = coll.length;\n return function next() {\n return ++i < len ? {value: coll[i], key: i} : null;\n }\n }\n\n function createES2015Iterator(iterator) {\n var i = -1;\n return function next() {\n var item = iterator.next();\n if (item.done)\n return null;\n i++;\n return {value: item.value, key: i};\n }\n }\n\n function createObjectIterator(obj) {\n var okeys = obj ? Object.keys(obj) : [];\n var i = -1;\n var len = okeys.length;\n return function next() {\n var key = okeys[++i];\n if (key === '__proto__') {\n return next();\n }\n return i < len ? {value: obj[key], key} : null;\n };\n }\n\n function createIterator(coll) {\n if (isArrayLike(coll)) {\n return createArrayIterator(coll);\n }\n\n var iterator = getIterator(coll);\n return iterator ? createES2015Iterator(iterator) : createObjectIterator(coll);\n }\n\n function onlyOnce(fn) {\n return function (...args) {\n if (fn === null) throw new Error(\"Callback was already called.\");\n var callFn = fn;\n fn = null;\n callFn.apply(this, args);\n };\n }\n\n // for async generators\n function asyncEachOfLimit(generator, limit, iteratee, callback) {\n let done = false;\n let canceled = false;\n let awaiting = false;\n let running = 0;\n let idx = 0;\n\n function replenish() {\n //console.log('replenish')\n if (running >= limit || awaiting || done) return\n //console.log('replenish awaiting')\n awaiting = true;\n generator.next().then(({value, done: iterDone}) => {\n //console.log('got value', value)\n if (canceled || done) return\n awaiting = false;\n if (iterDone) {\n done = true;\n if (running <= 0) {\n //console.log('done nextCb')\n callback(null);\n }\n return;\n }\n running++;\n iteratee(value, idx, iterateeCallback);\n idx++;\n replenish();\n }).catch(handleError);\n }\n\n function iterateeCallback(err, result) {\n //console.log('iterateeCallback')\n running -= 1;\n if (canceled) return\n if (err) return handleError(err)\n\n if (err === false) {\n done = true;\n canceled = true;\n return\n }\n\n if (result === breakLoop$1 || (done && running <= 0)) {\n done = true;\n //console.log('done iterCb')\n return callback(null);\n }\n replenish();\n }\n\n function handleError(err) {\n if (canceled) return\n awaiting = false;\n done = true;\n callback(err);\n }\n\n replenish();\n }\n\n var eachOfLimit$2 = (limit) => {\n return (obj, iteratee, callback) => {\n callback = once(callback);\n if (limit <= 0) {\n throw new RangeError('concurrency limit cannot be less than 1')\n }\n if (!obj) {\n return callback(null);\n }\n if (isAsyncGenerator(obj)) {\n return asyncEachOfLimit(obj, limit, iteratee, callback)\n }\n if (isAsyncIterable(obj)) {\n return asyncEachOfLimit(obj[Symbol.asyncIterator](), limit, iteratee, callback)\n }\n var nextElem = createIterator(obj);\n var done = false;\n var canceled = false;\n var running = 0;\n var looping = false;\n\n function iterateeCallback(err, value) {\n if (canceled) return\n running -= 1;\n if (err) {\n done = true;\n callback(err);\n }\n else if (err === false) {\n done = true;\n canceled = true;\n }\n else if (value === breakLoop$1 || (done && running <= 0)) {\n done = true;\n return callback(null);\n }\n else if (!looping) {\n replenish();\n }\n }\n\n function replenish () {\n looping = true;\n while (running < limit && !done) {\n var elem = nextElem();\n if (elem === null) {\n done = true;\n if (running <= 0) {\n callback(null);\n }\n return;\n }\n running += 1;\n iteratee(elem.value, elem.key, onlyOnce(iterateeCallback));\n }\n looping = false;\n }\n\n replenish();\n };\n };\n\n /**\n * The same as [`eachOf`]{@link module:Collections.eachOf} but runs a maximum of `limit` async operations at a\n * time.\n *\n * @name eachOfLimit\n * @static\n * @memberOf module:Collections\n * @method\n * @see [async.eachOf]{@link module:Collections.eachOf}\n * @alias forEachOfLimit\n * @category Collection\n * @param {Array|Iterable|AsyncIterable|Object} coll - A collection to iterate over.\n * @param {number} limit - The maximum number of async operations at a time.\n * @param {AsyncFunction} iteratee - An async function to apply to each\n * item in `coll`. The `key` is the item's key, or index in the case of an\n * array.\n * Invoked with (item, key, callback).\n * @param {Function} [callback] - A callback which is called when all\n * `iteratee` functions have finished, or an error occurs. Invoked with (err).\n * @returns {Promise} a promise, if a callback is omitted\n */\n function eachOfLimit(coll, limit, iteratee, callback) {\n return eachOfLimit$2(limit)(coll, wrapAsync(iteratee), callback);\n }\n\n var eachOfLimit$1 = awaitify(eachOfLimit, 4);\n\n // eachOf implementation optimized for array-likes\n function eachOfArrayLike(coll, iteratee, callback) {\n callback = once(callback);\n var index = 0,\n completed = 0,\n {length} = coll,\n canceled = false;\n if (length === 0) {\n callback(null);\n }\n\n function iteratorCallback(err, value) {\n if (err === false) {\n canceled = true;\n }\n if (canceled === true) return\n if (err) {\n callback(err);\n } else if ((++completed === length) || value === breakLoop$1) {\n callback(null);\n }\n }\n\n for (; index < length; index++) {\n iteratee(coll[index], index, onlyOnce(iteratorCallback));\n }\n }\n\n // a generic version of eachOf which can handle array, object, and iterator cases.\n function eachOfGeneric (coll, iteratee, callback) {\n return eachOfLimit$1(coll, Infinity, iteratee, callback);\n }\n\n /**\n * Like [`each`]{@link module:Collections.each}, except that it passes the key (or index) as the second argument\n * to the iteratee.\n *\n * @name eachOf\n * @static\n * @memberOf module:Collections\n * @method\n * @alias forEachOf\n * @category Collection\n * @see [async.each]{@link module:Collections.each}\n * @param {Array|Iterable|AsyncIterable|Object} coll - A collection to iterate over.\n * @param {AsyncFunction} iteratee - A function to apply to each\n * item in `coll`.\n * The `key` is the item's key, or index in the case of an array.\n * Invoked with (item, key, callback).\n * @param {Function} [callback] - A callback which is called when all\n * `iteratee` functions have finished, or an error occurs. Invoked with (err).\n * @returns {Promise} a promise, if a callback is omitted\n * @example\n *\n * // dev.json is a file containing a valid json object config for dev environment\n * // dev.json is a file containing a valid json object config for test environment\n * // prod.json is a file containing a valid json object config for prod environment\n * // invalid.json is a file with a malformed json object\n *\n * let configs = {}; //global variable\n * let validConfigFileMap = {dev: 'dev.json', test: 'test.json', prod: 'prod.json'};\n * let invalidConfigFileMap = {dev: 'dev.json', test: 'test.json', invalid: 'invalid.json'};\n *\n * // asynchronous function that reads a json file and parses the contents as json object\n * function parseFile(file, key, callback) {\n * fs.readFile(file, \"utf8\", function(err, data) {\n * if (err) return calback(err);\n * try {\n * configs[key] = JSON.parse(data);\n * } catch (e) {\n * return callback(e);\n * }\n * callback();\n * });\n * }\n *\n * // Using callbacks\n * async.forEachOf(validConfigFileMap, parseFile, function (err) {\n * if (err) {\n * console.error(err);\n * } else {\n * console.log(configs);\n * // configs is now a map of JSON data, e.g.\n * // { dev: //parsed dev.json, test: //parsed test.json, prod: //parsed prod.json}\n * }\n * });\n *\n * //Error handing\n * async.forEachOf(invalidConfigFileMap, parseFile, function (err) {\n * if (err) {\n * console.error(err);\n * // JSON parse error exception\n * } else {\n * console.log(configs);\n * }\n * });\n *\n * // Using Promises\n * async.forEachOf(validConfigFileMap, parseFile)\n * .then( () => {\n * console.log(configs);\n * // configs is now a map of JSON data, e.g.\n * // { dev: //parsed dev.json, test: //parsed test.json, prod: //parsed prod.json}\n * }).catch( err => {\n * console.error(err);\n * });\n *\n * //Error handing\n * async.forEachOf(invalidConfigFileMap, parseFile)\n * .then( () => {\n * console.log(configs);\n * }).catch( err => {\n * console.error(err);\n * // JSON parse error exception\n * });\n *\n * // Using async/await\n * async () => {\n * try {\n * let result = await async.forEachOf(validConfigFileMap, parseFile);\n * console.log(configs);\n * // configs is now a map of JSON data, e.g.\n * // { dev: //parsed dev.json, test: //parsed test.json, prod: //parsed prod.json}\n * }\n * catch (err) {\n * console.log(err);\n * }\n * }\n *\n * //Error handing\n * async () => {\n * try {\n * let result = await async.forEachOf(invalidConfigFileMap, parseFile);\n * console.log(configs);\n * }\n * catch (err) {\n * console.log(err);\n * // JSON parse error exception\n * }\n * }\n *\n */\n function eachOf(coll, iteratee, callback) {\n var eachOfImplementation = isArrayLike(coll) ? eachOfArrayLike : eachOfGeneric;\n return eachOfImplementation(coll, wrapAsync(iteratee), callback);\n }\n\n var eachOf$1 = awaitify(eachOf, 3);\n\n /**\n * Produces a new collection of values by mapping each value in `coll` through\n * the `iteratee` function. The `iteratee` is called with an item from `coll`\n * and a callback for when it has finished processing. Each of these callbacks\n * takes 2 arguments: an `error`, and the transformed item from `coll`. If\n * `iteratee` passes an error to its callback, the main `callback` (for the\n * `map` function) is immediately called with the error.\n *\n * Note, that since this function applies the `iteratee` to each item in\n * parallel, there is no guarantee that the `iteratee` functions will complete\n * in order. However, the results array will be in the same order as the\n * original `coll`.\n *\n * If `map` is passed an Object, the results will be an Array. The results\n * will roughly be in the order of the original Objects' keys (but this can\n * vary across JavaScript engines).\n *\n * @name map\n * @static\n * @memberOf module:Collections\n * @method\n * @category Collection\n * @param {Array|Iterable|AsyncIterable|Object} coll - A collection to iterate over.\n * @param {AsyncFunction} iteratee - An async function to apply to each item in\n * `coll`.\n * The iteratee should complete with the transformed item.\n * Invoked with (item, callback).\n * @param {Function} [callback] - A callback which is called when all `iteratee`\n * functions have finished, or an error occurs. Results is an Array of the\n * transformed items from the `coll`. Invoked with (err, results).\n * @returns {Promise} a promise, if no callback is passed\n * @example\n *\n * // file1.txt is a file that is 1000 bytes in size\n * // file2.txt is a file that is 2000 bytes in size\n * // file3.txt is a file that is 3000 bytes in size\n * // file4.txt does not exist\n *\n * const fileList = ['file1.txt','file2.txt','file3.txt'];\n * const withMissingFileList = ['file1.txt','file2.txt','file4.txt'];\n *\n * // asynchronous function that returns the file size in bytes\n * function getFileSizeInBytes(file, callback) {\n * fs.stat(file, function(err, stat) {\n * if (err) {\n * return callback(err);\n * }\n * callback(null, stat.size);\n * });\n * }\n *\n * // Using callbacks\n * async.map(fileList, getFileSizeInBytes, function(err, results) {\n * if (err) {\n * console.log(err);\n * } else {\n * console.log(results);\n * // results is now an array of the file size in bytes for each file, e.g.\n * // [ 1000, 2000, 3000]\n * }\n * });\n *\n * // Error Handling\n * async.map(withMissingFileList, getFileSizeInBytes, function(err, results) {\n * if (err) {\n * console.log(err);\n * // [ Error: ENOENT: no such file or directory ]\n * } else {\n * console.log(results);\n * }\n * });\n *\n * // Using Promises\n * async.map(fileList, getFileSizeInBytes)\n * .then( results => {\n * console.log(results);\n * // results is now an array of the file size in bytes for each file, e.g.\n * // [ 1000, 2000, 3000]\n * }).catch( err => {\n * console.log(err);\n * });\n *\n * // Error Handling\n * async.map(withMissingFileList, getFileSizeInBytes)\n * .then( results => {\n * console.log(results);\n * }).catch( err => {\n * console.log(err);\n * // [ Error: ENOENT: no such file or directory ]\n * });\n *\n * // Using async/await\n * async () => {\n * try {\n * let results = await async.map(fileList, getFileSizeInBytes);\n * console.log(results);\n * // results is now an array of the file size in bytes for each file, e.g.\n * // [ 1000, 2000, 3000]\n * }\n * catch (err) {\n * console.log(err);\n * }\n * }\n *\n * // Error Handling\n * async () => {\n * try {\n * let results = await async.map(withMissingFileList, getFileSizeInBytes);\n * console.log(results);\n * }\n * catch (err) {\n * console.log(err);\n * // [ Error: ENOENT: no such file or directory ]\n * }\n * }\n *\n */\n function map (coll, iteratee, callback) {\n return _asyncMap(eachOf$1, coll, iteratee, callback)\n }\n var map$1 = awaitify(map, 3);\n\n /**\n * Applies the provided arguments to each function in the array, calling\n * `callback` after all functions have completed. If you only provide the first\n * argument, `fns`, then it will return a function which lets you pass in the\n * arguments as if it were a single function call. If more arguments are\n * provided, `callback` is required while `args` is still optional. The results\n * for each of the applied async functions are passed to the final callback\n * as an array.\n *\n * @name applyEach\n * @static\n * @memberOf module:ControlFlow\n * @method\n * @category Control Flow\n * @param {Array|Iterable|AsyncIterable|Object} fns - A collection of {@link AsyncFunction}s\n * to all call with the same arguments\n * @param {...*} [args] - any number of separate arguments to pass to the\n * function.\n * @param {Function} [callback] - the final argument should be the callback,\n * called when all functions have completed processing.\n * @returns {AsyncFunction} - Returns a function that takes no args other than\n * an optional callback, that is the result of applying the `args` to each\n * of the functions.\n * @example\n *\n * const appliedFn = async.applyEach([enableSearch, updateSchema], 'bucket')\n *\n * appliedFn((err, results) => {\n * // results[0] is the results for `enableSearch`\n * // results[1] is the results for `updateSchema`\n * });\n *\n * // partial application example:\n * async.each(\n * buckets,\n * async (bucket) => async.applyEach([enableSearch, updateSchema], bucket)(),\n * callback\n * );\n */\n var applyEach = applyEach$1(map$1);\n\n /**\n * The same as [`eachOf`]{@link module:Collections.eachOf} but runs only a single async operation at a time.\n *\n * @name eachOfSeries\n * @static\n * @memberOf module:Collections\n * @method\n * @see [async.eachOf]{@link module:Collections.eachOf}\n * @alias forEachOfSeries\n * @category Collection\n * @param {Array|Iterable|AsyncIterable|Object} coll - A collection to iterate over.\n * @param {AsyncFunction} iteratee - An async function to apply to each item in\n * `coll`.\n * Invoked with (item, key, callback).\n * @param {Function} [callback] - A callback which is called when all `iteratee`\n * functions have finished, or an error occurs. Invoked with (err).\n * @returns {Promise} a promise, if a callback is omitted\n */\n function eachOfSeries(coll, iteratee, callback) {\n return eachOfLimit$1(coll, 1, iteratee, callback)\n }\n var eachOfSeries$1 = awaitify(eachOfSeries, 3);\n\n /**\n * The same as [`map`]{@link module:Collections.map} but runs only a single async operation at a time.\n *\n * @name mapSeries\n * @static\n * @memberOf module:Collections\n * @method\n * @see [async.map]{@link module:Collections.map}\n * @category Collection\n * @param {Array|Iterable|AsyncIterable|Object} coll - A collection to iterate over.\n * @param {AsyncFunction} iteratee - An async function to apply to each item in\n * `coll`.\n * The iteratee should complete with the transformed item.\n * Invoked with (item, callback).\n * @param {Function} [callback] - A callback which is called when all `iteratee`\n * functions have finished, or an error occurs. Results is an array of the\n * transformed items from the `coll`. Invoked with (err, results).\n * @returns {Promise} a promise, if no callback is passed\n */\n function mapSeries (coll, iteratee, callback) {\n return _asyncMap(eachOfSeries$1, coll, iteratee, callback)\n }\n var mapSeries$1 = awaitify(mapSeries, 3);\n\n /**\n * The same as [`applyEach`]{@link module:ControlFlow.applyEach} but runs only a single async operation at a time.\n *\n * @name applyEachSeries\n * @static\n * @memberOf module:ControlFlow\n * @method\n * @see [async.applyEach]{@link module:ControlFlow.applyEach}\n * @category Control Flow\n * @param {Array|Iterable|AsyncIterable|Object} fns - A collection of {@link AsyncFunction}s to all\n * call with the same arguments\n * @param {...*} [args] - any number of separate arguments to pass to the\n * function.\n * @param {Function} [callback] - the final argument should be the callback,\n * called when all functions have completed processing.\n * @returns {AsyncFunction} - A function, that when called, is the result of\n * appling the `args` to the list of functions. It takes no args, other than\n * a callback.\n */\n var applyEachSeries = applyEach$1(mapSeries$1);\n\n const PROMISE_SYMBOL = Symbol('promiseCallback');\n\n function promiseCallback () {\n let resolve, reject;\n function callback (err, ...args) {\n if (err) return reject(err)\n resolve(args.length > 1 ? args : args[0]);\n }\n\n callback[PROMISE_SYMBOL] = new Promise((res, rej) => {\n resolve = res,\n reject = rej;\n });\n\n return callback\n }\n\n /**\n * Determines the best order for running the {@link AsyncFunction}s in `tasks`, based on\n * their requirements. Each function can optionally depend on other functions\n * being completed first, and each function is run as soon as its requirements\n * are satisfied.\n *\n * If any of the {@link AsyncFunction}s pass an error to their callback, the `auto` sequence\n * will stop. Further tasks will not execute (so any other functions depending\n * on it will not run), and the main `callback` is immediately called with the\n * error.\n *\n * {@link AsyncFunction}s also receive an object containing the results of functions which\n * have completed so far as the first argument, if they have dependencies. If a\n * task function has no dependencies, it will only be passed a callback.\n *\n * @name auto\n * @static\n * @memberOf module:ControlFlow\n * @method\n * @category Control Flow\n * @param {Object} tasks - An object. Each of its properties is either a\n * function or an array of requirements, with the {@link AsyncFunction} itself the last item\n * in the array. The object's key of a property serves as the name of the task\n * defined by that property, i.e. can be used when specifying requirements for\n * other tasks. The function receives one or two arguments:\n * * a `results` object, containing the results of the previously executed\n * functions, only passed if the task has any dependencies,\n * * a `callback(err, result)` function, which must be called when finished,\n * passing an `error` (which can be `null`) and the result of the function's\n * execution.\n * @param {number} [concurrency=Infinity] - An optional `integer` for\n * determining the maximum number of tasks that can be run in parallel. By\n * default, as many as possible.\n * @param {Function} [callback] - An optional callback which is called when all\n * the tasks have been completed. It receives the `err` argument if any `tasks`\n * pass an error to their callback. Results are always returned; however, if an\n * error occurs, no further `tasks` will be performed, and the results object\n * will only contain partial results. Invoked with (err, results).\n * @returns {Promise} a promise, if a callback is not passed\n * @example\n *\n * //Using Callbacks\n * async.auto({\n * get_data: function(callback) {\n * // async code to get some data\n * callback(null, 'data', 'converted to array');\n * },\n * make_folder: function(callback) {\n * // async code to create a directory to store a file in\n * // this is run at the same time as getting the data\n * callback(null, 'folder');\n * },\n * write_file: ['get_data', 'make_folder', function(results, callback) {\n * // once there is some data and the directory exists,\n * // write the data to a file in the directory\n * callback(null, 'filename');\n * }],\n * email_link: ['write_file', function(results, callback) {\n * // once the file is written let's email a link to it...\n * callback(null, {'file':results.write_file, 'email':'user@example.com'});\n * }]\n * }, function(err, results) {\n * if (err) {\n * console.log('err = ', err);\n * }\n * console.log('results = ', results);\n * // results = {\n * // get_data: ['data', 'converted to array']\n * // make_folder; 'folder',\n * // write_file: 'filename'\n * // email_link: { file: 'filename', email: 'user@example.com' }\n * // }\n * });\n *\n * //Using Promises\n * async.auto({\n * get_data: function(callback) {\n * console.log('in get_data');\n * // async code to get some data\n * callback(null, 'data', 'converted to array');\n * },\n * make_folder: function(callback) {\n * console.log('in make_folder');\n * // async code to create a directory to store a file in\n * // this is run at the same time as getting the data\n * callback(null, 'folder');\n * },\n * write_file: ['get_data', 'make_folder', function(results, callback) {\n * // once there is some data and the directory exists,\n * // write the data to a file in the directory\n * callback(null, 'filename');\n * }],\n * email_link: ['write_file', function(results, callback) {\n * // once the file is written let's email a link to it...\n * callback(null, {'file':results.write_file, 'email':'user@example.com'});\n * }]\n * }).then(results => {\n * console.log('results = ', results);\n * // results = {\n * // get_data: ['data', 'converted to array']\n * // make_folder; 'folder',\n * // write_file: 'filename'\n * // email_link: { file: 'filename', email: 'user@example.com' }\n * // }\n * }).catch(err => {\n * console.log('err = ', err);\n * });\n *\n * //Using async/await\n * async () => {\n * try {\n * let results = await async.auto({\n * get_data: function(callback) {\n * // async code to get some data\n * callback(null, 'data', 'converted to array');\n * },\n * make_folder: function(callback) {\n * // async code to create a directory to store a file in\n * // this is run at the same time as getting the data\n * callback(null, 'folder');\n * },\n * write_file: ['get_data', 'make_folder', function(results, callback) {\n * // once there is some data and the directory exists,\n * // write the data to a file in the directory\n * callback(null, 'filename');\n * }],\n * email_link: ['write_file', function(results, callback) {\n * // once the file is written let's email a link to it...\n * callback(null, {'file':results.write_file, 'email':'user@example.com'});\n * }]\n * });\n * console.log('results = ', results);\n * // results = {\n * // get_data: ['data', 'converted to array']\n * // make_folder; 'folder',\n * // write_file: 'filename'\n * // email_link: { file: 'filename', email: 'user@example.com' }\n * // }\n * }\n * catch (err) {\n * console.log(err);\n * }\n * }\n *\n */\n function auto(tasks, concurrency, callback) {\n if (typeof concurrency !== 'number') {\n // concurrency is optional, shift the args.\n callback = concurrency;\n concurrency = null;\n }\n callback = once(callback || promiseCallback());\n var numTasks = Object.keys(tasks).length;\n if (!numTasks) {\n return callback(null);\n }\n if (!concurrency) {\n concurrency = numTasks;\n }\n\n var results = {};\n var runningTasks = 0;\n var canceled = false;\n var hasError = false;\n\n var listeners = Object.create(null);\n\n var readyTasks = [];\n\n // for cycle detection:\n var readyToCheck = []; // tasks that have been identified as reachable\n // without the possibility of returning to an ancestor task\n var uncheckedDependencies = {};\n\n Object.keys(tasks).forEach(key => {\n var task = tasks[key];\n if (!Array.isArray(task)) {\n // no dependencies\n enqueueTask(key, [task]);\n readyToCheck.push(key);\n return;\n }\n\n var dependencies = task.slice(0, task.length - 1);\n var remainingDependencies = dependencies.length;\n if (remainingDependencies === 0) {\n enqueueTask(key, task);\n readyToCheck.push(key);\n return;\n }\n uncheckedDependencies[key] = remainingDependencies;\n\n dependencies.forEach(dependencyName => {\n if (!tasks[dependencyName]) {\n throw new Error('async.auto task `' + key +\n '` has a non-existent dependency `' +\n dependencyName + '` in ' +\n dependencies.join(', '));\n }\n addListener(dependencyName, () => {\n remainingDependencies--;\n if (remainingDependencies === 0) {\n enqueueTask(key, task);\n }\n });\n });\n });\n\n checkForDeadlocks();\n processQueue();\n\n function enqueueTask(key, task) {\n readyTasks.push(() => runTask(key, task));\n }\n\n function processQueue() {\n if (canceled) return\n if (readyTasks.length === 0 && runningTasks === 0) {\n return callback(null, results);\n }\n while(readyTasks.length && runningTasks < concurrency) {\n var run = readyTasks.shift();\n run();\n }\n\n }\n\n function addListener(taskName, fn) {\n var taskListeners = listeners[taskName];\n if (!taskListeners) {\n taskListeners = listeners[taskName] = [];\n }\n\n taskListeners.push(fn);\n }\n\n function taskComplete(taskName) {\n var taskListeners = listeners[taskName] || [];\n taskListeners.forEach(fn => fn());\n processQueue();\n }\n\n\n function runTask(key, task) {\n if (hasError) return;\n\n var taskCallback = onlyOnce((err, ...result) => {\n runningTasks--;\n if (err === false) {\n canceled = true;\n return\n }\n if (result.length < 2) {\n [result] = result;\n }\n if (err) {\n var safeResults = {};\n Object.keys(results).forEach(rkey => {\n safeResults[rkey] = results[rkey];\n });\n safeResults[key] = result;\n hasError = true;\n listeners = Object.create(null);\n if (canceled) return\n callback(err, safeResults);\n } else {\n results[key] = result;\n taskComplete(key);\n }\n });\n\n runningTasks++;\n var taskFn = wrapAsync(task[task.length - 1]);\n if (task.length > 1) {\n taskFn(results, taskCallback);\n } else {\n taskFn(taskCallback);\n }\n }\n\n function checkForDeadlocks() {\n // Kahn's algorithm\n // https://en.wikipedia.org/wiki/Topological_sorting#Kahn.27s_algorithm\n // http://connalle.blogspot.com/2013/10/topological-sortingkahn-algorithm.html\n var currentTask;\n var counter = 0;\n while (readyToCheck.length) {\n currentTask = readyToCheck.pop();\n counter++;\n getDependents(currentTask).forEach(dependent => {\n if (--uncheckedDependencies[dependent] === 0) {\n readyToCheck.push(dependent);\n }\n });\n }\n\n if (counter !== numTasks) {\n throw new Error(\n 'async.auto cannot execute tasks due to a recursive dependency'\n );\n }\n }\n\n function getDependents(taskName) {\n var result = [];\n Object.keys(tasks).forEach(key => {\n const task = tasks[key];\n if (Array.isArray(task) && task.indexOf(taskName) >= 0) {\n result.push(key);\n }\n });\n return result;\n }\n\n return callback[PROMISE_SYMBOL]\n }\n\n var FN_ARGS = /^(?:async\\s+)?(?:function)?\\s*\\w*\\s*\\(\\s*([^)]+)\\s*\\)(?:\\s*{)/;\n var ARROW_FN_ARGS = /^(?:async\\s+)?\\(?\\s*([^)=]+)\\s*\\)?(?:\\s*=>)/;\n var FN_ARG_SPLIT = /,/;\n var FN_ARG = /(=.+)?(\\s*)$/;\n\n function stripComments(string) {\n let stripped = '';\n let index = 0;\n let endBlockComment = string.indexOf('*/');\n while (index < string.length) {\n if (string[index] === '/' && string[index+1] === '/') {\n // inline comment\n let endIndex = string.indexOf('\\n', index);\n index = (endIndex === -1) ? string.length : endIndex;\n } else if ((endBlockComment !== -1) && (string[index] === '/') && (string[index+1] === '*')) {\n // block comment\n let endIndex = string.indexOf('*/', index);\n if (endIndex !== -1) {\n index = endIndex + 2;\n endBlockComment = string.indexOf('*/', index);\n } else {\n stripped += string[index];\n index++;\n }\n } else {\n stripped += string[index];\n index++;\n }\n }\n return stripped;\n }\n\n function parseParams(func) {\n const src = stripComments(func.toString());\n let match = src.match(FN_ARGS);\n if (!match) {\n match = src.match(ARROW_FN_ARGS);\n }\n if (!match) throw new Error('could not parse args in autoInject\\nSource:\\n' + src)\n let [, args] = match;\n return args\n .replace(/\\s/g, '')\n .split(FN_ARG_SPLIT)\n .map((arg) => arg.replace(FN_ARG, '').trim());\n }\n\n /**\n * A dependency-injected version of the [async.auto]{@link module:ControlFlow.auto} function. Dependent\n * tasks are specified as parameters to the function, after the usual callback\n * parameter, with the parameter names matching the names of the tasks it\n * depends on. This can provide even more readable task graphs which can be\n * easier to maintain.\n *\n * If a final callback is specified, the task results are similarly injected,\n * specified as named parameters after the initial error parameter.\n *\n * The autoInject function is purely syntactic sugar and its semantics are\n * otherwise equivalent to [async.auto]{@link module:ControlFlow.auto}.\n *\n * @name autoInject\n * @static\n * @memberOf module:ControlFlow\n * @method\n * @see [async.auto]{@link module:ControlFlow.auto}\n * @category Control Flow\n * @param {Object} tasks - An object, each of whose properties is an {@link AsyncFunction} of\n * the form 'func([dependencies...], callback). The object's key of a property\n * serves as the name of the task defined by that property, i.e. can be used\n * when specifying requirements for other tasks.\n * * The `callback` parameter is a `callback(err, result)` which must be called\n * when finished, passing an `error` (which can be `null`) and the result of\n * the function's execution. The remaining parameters name other tasks on\n * which the task is dependent, and the results from those tasks are the\n * arguments of those parameters.\n * @param {Function} [callback] - An optional callback which is called when all\n * the tasks have been completed. It receives the `err` argument if any `tasks`\n * pass an error to their callback, and a `results` object with any completed\n * task results, similar to `auto`.\n * @returns {Promise} a promise, if no callback is passed\n * @example\n *\n * // The example from `auto` can be rewritten as follows:\n * async.autoInject({\n * get_data: function(callback) {\n * // async code to get some data\n * callback(null, 'data', 'converted to array');\n * },\n * make_folder: function(callback) {\n * // async code to create a directory to store a file in\n * // this is run at the same time as getting the data\n * callback(null, 'folder');\n * },\n * write_file: function(get_data, make_folder, callback) {\n * // once there is some data and the directory exists,\n * // write the data to a file in the directory\n * callback(null, 'filename');\n * },\n * email_link: function(write_file, callback) {\n * // once the file is written let's email a link to it...\n * // write_file contains the filename returned by write_file.\n * callback(null, {'file':write_file, 'email':'user@example.com'});\n * }\n * }, function(err, results) {\n * console.log('err = ', err);\n * console.log('email_link = ', results.email_link);\n * });\n *\n * // If you are using a JS minifier that mangles parameter names, `autoInject`\n * // will not work with plain functions, since the parameter names will be\n * // collapsed to a single letter identifier. To work around this, you can\n * // explicitly specify the names of the parameters your task function needs\n * // in an array, similar to Angular.js dependency injection.\n *\n * // This still has an advantage over plain `auto`, since the results a task\n * // depends on are still spread into arguments.\n * async.autoInject({\n * //...\n * write_file: ['get_data', 'make_folder', function(get_data, make_folder, callback) {\n * callback(null, 'filename');\n * }],\n * email_link: ['write_file', function(write_file, callback) {\n * callback(null, {'file':write_file, 'email':'user@example.com'});\n * }]\n * //...\n * }, function(err, results) {\n * console.log('err = ', err);\n * console.log('email_link = ', results.email_link);\n * });\n */\n function autoInject(tasks, callback) {\n var newTasks = {};\n\n Object.keys(tasks).forEach(key => {\n var taskFn = tasks[key];\n var params;\n var fnIsAsync = isAsync(taskFn);\n var hasNoDeps =\n (!fnIsAsync && taskFn.length === 1) ||\n (fnIsAsync && taskFn.length === 0);\n\n if (Array.isArray(taskFn)) {\n params = [...taskFn];\n taskFn = params.pop();\n\n newTasks[key] = params.concat(params.length > 0 ? newTask : taskFn);\n } else if (hasNoDeps) {\n // no dependencies, use the function as-is\n newTasks[key] = taskFn;\n } else {\n params = parseParams(taskFn);\n if ((taskFn.length === 0 && !fnIsAsync) && params.length === 0) {\n throw new Error(\"autoInject task functions require explicit parameters.\");\n }\n\n // remove callback param\n if (!fnIsAsync) params.pop();\n\n newTasks[key] = params.concat(newTask);\n }\n\n function newTask(results, taskCb) {\n var newArgs = params.map(name => results[name]);\n newArgs.push(taskCb);\n wrapAsync(taskFn)(...newArgs);\n }\n });\n\n return auto(newTasks, callback);\n }\n\n // Simple doubly linked list (https://en.wikipedia.org/wiki/Doubly_linked_list) implementation\n // used for queues. This implementation assumes that the node provided by the user can be modified\n // to adjust the next and last properties. We implement only the minimal functionality\n // for queue support.\n class DLL {\n constructor() {\n this.head = this.tail = null;\n this.length = 0;\n }\n\n removeLink(node) {\n if (node.prev) node.prev.next = node.next;\n else this.head = node.next;\n if (node.next) node.next.prev = node.prev;\n else this.tail = node.prev;\n\n node.prev = node.next = null;\n this.length -= 1;\n return node;\n }\n\n empty () {\n while(this.head) this.shift();\n return this;\n }\n\n insertAfter(node, newNode) {\n newNode.prev = node;\n newNode.next = node.next;\n if (node.next) node.next.prev = newNode;\n else this.tail = newNode;\n node.next = newNode;\n this.length += 1;\n }\n\n insertBefore(node, newNode) {\n newNode.prev = node.prev;\n newNode.next = node;\n if (node.prev) node.prev.next = newNode;\n else this.head = newNode;\n node.prev = newNode;\n this.length += 1;\n }\n\n unshift(node) {\n if (this.head) this.insertBefore(this.head, node);\n else setInitial(this, node);\n }\n\n push(node) {\n if (this.tail) this.insertAfter(this.tail, node);\n else setInitial(this, node);\n }\n\n shift() {\n return this.head && this.removeLink(this.head);\n }\n\n pop() {\n return this.tail && this.removeLink(this.tail);\n }\n\n toArray() {\n return [...this]\n }\n\n *[Symbol.iterator] () {\n var cur = this.head;\n while (cur) {\n yield cur.data;\n cur = cur.next;\n }\n }\n\n remove (testFn) {\n var curr = this.head;\n while(curr) {\n var {next} = curr;\n if (testFn(curr)) {\n this.removeLink(curr);\n }\n curr = next;\n }\n return this;\n }\n }\n\n function setInitial(dll, node) {\n dll.length = 1;\n dll.head = dll.tail = node;\n }\n\n function queue$1(worker, concurrency, payload) {\n if (concurrency == null) {\n concurrency = 1;\n }\n else if(concurrency === 0) {\n throw new RangeError('Concurrency must not be zero');\n }\n\n var _worker = wrapAsync(worker);\n var numRunning = 0;\n var workersList = [];\n const events = {\n error: [],\n drain: [],\n saturated: [],\n unsaturated: [],\n empty: []\n };\n\n function on (event, handler) {\n events[event].push(handler);\n }\n\n function once (event, handler) {\n const handleAndRemove = (...args) => {\n off(event, handleAndRemove);\n handler(...args);\n };\n events[event].push(handleAndRemove);\n }\n\n function off (event, handler) {\n if (!event) return Object.keys(events).forEach(ev => events[ev] = [])\n if (!handler) return events[event] = []\n events[event] = events[event].filter(ev => ev !== handler);\n }\n\n function trigger (event, ...args) {\n events[event].forEach(handler => handler(...args));\n }\n\n var processingScheduled = false;\n function _insert(data, insertAtFront, rejectOnError, callback) {\n if (callback != null && typeof callback !== 'function') {\n throw new Error('task callback must be a function');\n }\n q.started = true;\n\n var res, rej;\n function promiseCallback (err, ...args) {\n // we don't care about the error, let the global error handler\n // deal with it\n if (err) return rejectOnError ? rej(err) : res()\n if (args.length <= 1) return res(args[0])\n res(args);\n }\n\n var item = q._createTaskItem(\n data,\n rejectOnError ? promiseCallback :\n (callback || promiseCallback)\n );\n\n if (insertAtFront) {\n q._tasks.unshift(item);\n } else {\n q._tasks.push(item);\n }\n\n if (!processingScheduled) {\n processingScheduled = true;\n setImmediate$1(() => {\n processingScheduled = false;\n q.process();\n });\n }\n\n if (rejectOnError || !callback) {\n return new Promise((resolve, reject) => {\n res = resolve;\n rej = reject;\n })\n }\n }\n\n function _createCB(tasks) {\n return function (err, ...args) {\n numRunning -= 1;\n\n for (var i = 0, l = tasks.length; i < l; i++) {\n var task = tasks[i];\n\n var index = workersList.indexOf(task);\n if (index === 0) {\n workersList.shift();\n } else if (index > 0) {\n workersList.splice(index, 1);\n }\n\n task.callback(err, ...args);\n\n if (err != null) {\n trigger('error', err, task.data);\n }\n }\n\n if (numRunning <= (q.concurrency - q.buffer) ) {\n trigger('unsaturated');\n }\n\n if (q.idle()) {\n trigger('drain');\n }\n q.process();\n };\n }\n\n function _maybeDrain(data) {\n if (data.length === 0 && q.idle()) {\n // call drain immediately if there are no tasks\n setImmediate$1(() => trigger('drain'));\n return true\n }\n return false\n }\n\n const eventMethod = (name) => (handler) => {\n if (!handler) {\n return new Promise((resolve, reject) => {\n once(name, (err, data) => {\n if (err) return reject(err)\n resolve(data);\n });\n })\n }\n off(name);\n on(name, handler);\n\n };\n\n var isProcessing = false;\n var q = {\n _tasks: new DLL(),\n _createTaskItem (data, callback) {\n return {\n data,\n callback\n };\n },\n *[Symbol.iterator] () {\n yield* q._tasks[Symbol.iterator]();\n },\n concurrency,\n payload,\n buffer: concurrency / 4,\n started: false,\n paused: false,\n push (data, callback) {\n if (Array.isArray(data)) {\n if (_maybeDrain(data)) return\n return data.map(datum => _insert(datum, false, false, callback))\n }\n return _insert(data, false, false, callback);\n },\n pushAsync (data, callback) {\n if (Array.isArray(data)) {\n if (_maybeDrain(data)) return\n return data.map(datum => _insert(datum, false, true, callback))\n }\n return _insert(data, false, true, callback);\n },\n kill () {\n off();\n q._tasks.empty();\n },\n unshift (data, callback) {\n if (Array.isArray(data)) {\n if (_maybeDrain(data)) return\n return data.map(datum => _insert(datum, true, false, callback))\n }\n return _insert(data, true, false, callback);\n },\n unshiftAsync (data, callback) {\n if (Array.isArray(data)) {\n if (_maybeDrain(data)) return\n return data.map(datum => _insert(datum, true, true, callback))\n }\n return _insert(data, true, true, callback);\n },\n remove (testFn) {\n q._tasks.remove(testFn);\n },\n process () {\n // Avoid trying to start too many processing operations. This can occur\n // when callbacks resolve synchronously (#1267).\n if (isProcessing) {\n return;\n }\n isProcessing = true;\n while(!q.paused && numRunning < q.concurrency && q._tasks.length){\n var tasks = [], data = [];\n var l = q._tasks.length;\n if (q.payload) l = Math.min(l, q.payload);\n for (var i = 0; i < l; i++) {\n var node = q._tasks.shift();\n tasks.push(node);\n workersList.push(node);\n data.push(node.data);\n }\n\n numRunning += 1;\n\n if (q._tasks.length === 0) {\n trigger('empty');\n }\n\n if (numRunning === q.concurrency) {\n trigger('saturated');\n }\n\n var cb = onlyOnce(_createCB(tasks));\n _worker(data, cb);\n }\n isProcessing = false;\n },\n length () {\n return q._tasks.length;\n },\n running () {\n return numRunning;\n },\n workersList () {\n return workersList;\n },\n idle() {\n return q._tasks.length + numRunning === 0;\n },\n pause () {\n q.paused = true;\n },\n resume () {\n if (q.paused === false) { return; }\n q.paused = false;\n setImmediate$1(q.process);\n }\n };\n // define these as fixed properties, so people get useful errors when updating\n Object.defineProperties(q, {\n saturated: {\n writable: false,\n value: eventMethod('saturated')\n },\n unsaturated: {\n writable: false,\n value: eventMethod('unsaturated')\n },\n empty: {\n writable: false,\n value: eventMethod('empty')\n },\n drain: {\n writable: false,\n value: eventMethod('drain')\n },\n error: {\n writable: false,\n value: eventMethod('error')\n },\n });\n return q;\n }\n\n /**\n * Creates a `cargo` object with the specified payload. Tasks added to the\n * cargo will be processed altogether (up to the `payload` limit). If the\n * `worker` is in progress, the task is queued until it becomes available. Once\n * the `worker` has completed some tasks, each callback of those tasks is\n * called. Check out [these](https://camo.githubusercontent.com/6bbd36f4cf5b35a0f11a96dcd2e97711ffc2fb37/68747470733a2f2f662e636c6f75642e6769746875622e636f6d2f6173736574732f313637363837312f36383130382f62626330636662302d356632392d313165322d393734662d3333393763363464633835382e676966) [animations](https://camo.githubusercontent.com/f4810e00e1c5f5f8addbe3e9f49064fd5d102699/68747470733a2f2f662e636c6f75642e6769746875622e636f6d2f6173736574732f313637363837312f36383130312f38346339323036362d356632392d313165322d383134662d3964336430323431336266642e676966)\n * for how `cargo` and `queue` work.\n *\n * While [`queue`]{@link module:ControlFlow.queue} passes only one task to one of a group of workers\n * at a time, cargo passes an array of tasks to a single worker, repeating\n * when the worker is finished.\n *\n * @name cargo\n * @static\n * @memberOf module:ControlFlow\n * @method\n * @see [async.queue]{@link module:ControlFlow.queue}\n * @category Control Flow\n * @param {AsyncFunction} worker - An asynchronous function for processing an array\n * of queued tasks. Invoked with `(tasks, callback)`.\n * @param {number} [payload=Infinity] - An optional `integer` for determining\n * how many tasks should be processed per round; if omitted, the default is\n * unlimited.\n * @returns {module:ControlFlow.QueueObject} A cargo object to manage the tasks. Callbacks can\n * attached as certain properties to listen for specific events during the\n * lifecycle of the cargo and inner queue.\n * @example\n *\n * // create a cargo object with payload 2\n * var cargo = async.cargo(function(tasks, callback) {\n * for (var i=0; i {\n * console.log(result);\n * // 6000\n * // which is the sum of the file sizes of the three files\n * }).catch( err => {\n * console.log(err);\n * });\n *\n * // Error Handling\n * async.reduce(withMissingFileList, 0, getFileSizeInBytes)\n * .then( result => {\n * console.log(result);\n * }).catch( err => {\n * console.log(err);\n * // [ Error: ENOENT: no such file or directory ]\n * });\n *\n * // Using async/await\n * async () => {\n * try {\n * let result = await async.reduce(fileList, 0, getFileSizeInBytes);\n * console.log(result);\n * // 6000\n * // which is the sum of the file sizes of the three files\n * }\n * catch (err) {\n * console.log(err);\n * }\n * }\n *\n * // Error Handling\n * async () => {\n * try {\n * let result = await async.reduce(withMissingFileList, 0, getFileSizeInBytes);\n * console.log(result);\n * }\n * catch (err) {\n * console.log(err);\n * // [ Error: ENOENT: no such file or directory ]\n * }\n * }\n *\n */\n function reduce(coll, memo, iteratee, callback) {\n callback = once(callback);\n var _iteratee = wrapAsync(iteratee);\n return eachOfSeries$1(coll, (x, i, iterCb) => {\n _iteratee(memo, x, (err, v) => {\n memo = v;\n iterCb(err);\n });\n }, err => callback(err, memo));\n }\n var reduce$1 = awaitify(reduce, 4);\n\n /**\n * Version of the compose function that is more natural to read. Each function\n * consumes the return value of the previous function. It is the equivalent of\n * [compose]{@link module:ControlFlow.compose} with the arguments reversed.\n *\n * Each function is executed with the `this` binding of the composed function.\n *\n * @name seq\n * @static\n * @memberOf module:ControlFlow\n * @method\n * @see [async.compose]{@link module:ControlFlow.compose}\n * @category Control Flow\n * @param {...AsyncFunction} functions - the asynchronous functions to compose\n * @returns {Function} a function that composes the `functions` in order\n * @example\n *\n * // Requires lodash (or underscore), express3 and dresende's orm2.\n * // Part of an app, that fetches cats of the logged user.\n * // This example uses `seq` function to avoid overnesting and error\n * // handling clutter.\n * app.get('/cats', function(request, response) {\n * var User = request.models.User;\n * async.seq(\n * User.get.bind(User), // 'User.get' has signature (id, callback(err, data))\n * function(user, fn) {\n * user.getCats(fn); // 'getCats' has signature (callback(err, data))\n * }\n * )(req.session.user_id, function (err, cats) {\n * if (err) {\n * console.error(err);\n * response.json({ status: 'error', message: err.message });\n * } else {\n * response.json({ status: 'ok', message: 'Cats found', data: cats });\n * }\n * });\n * });\n */\n function seq(...functions) {\n var _functions = functions.map(wrapAsync);\n return function (...args) {\n var that = this;\n\n var cb = args[args.length - 1];\n if (typeof cb == 'function') {\n args.pop();\n } else {\n cb = promiseCallback();\n }\n\n reduce$1(_functions, args, (newargs, fn, iterCb) => {\n fn.apply(that, newargs.concat((err, ...nextargs) => {\n iterCb(err, nextargs);\n }));\n },\n (err, results) => cb(err, ...results));\n\n return cb[PROMISE_SYMBOL]\n };\n }\n\n /**\n * Creates a function which is a composition of the passed asynchronous\n * functions. Each function consumes the return value of the function that\n * follows. Composing functions `f()`, `g()`, and `h()` would produce the result\n * of `f(g(h()))`, only this version uses callbacks to obtain the return values.\n *\n * If the last argument to the composed function is not a function, a promise\n * is returned when you call it.\n *\n * Each function is executed with the `this` binding of the composed function.\n *\n * @name compose\n * @static\n * @memberOf module:ControlFlow\n * @method\n * @category Control Flow\n * @param {...AsyncFunction} functions - the asynchronous functions to compose\n * @returns {Function} an asynchronous function that is the composed\n * asynchronous `functions`\n * @example\n *\n * function add1(n, callback) {\n * setTimeout(function () {\n * callback(null, n + 1);\n * }, 10);\n * }\n *\n * function mul3(n, callback) {\n * setTimeout(function () {\n * callback(null, n * 3);\n * }, 10);\n * }\n *\n * var add1mul3 = async.compose(mul3, add1);\n * add1mul3(4, function (err, result) {\n * // result now equals 15\n * });\n */\n function compose(...args) {\n return seq(...args.reverse());\n }\n\n /**\n * The same as [`map`]{@link module:Collections.map} but runs a maximum of `limit` async operations at a time.\n *\n * @name mapLimit\n * @static\n * @memberOf module:Collections\n * @method\n * @see [async.map]{@link module:Collections.map}\n * @category Collection\n * @param {Array|Iterable|AsyncIterable|Object} coll - A collection to iterate over.\n * @param {number} limit - The maximum number of async operations at a time.\n * @param {AsyncFunction} iteratee - An async function to apply to each item in\n * `coll`.\n * The iteratee should complete with the transformed item.\n * Invoked with (item, callback).\n * @param {Function} [callback] - A callback which is called when all `iteratee`\n * functions have finished, or an error occurs. Results is an array of the\n * transformed items from the `coll`. Invoked with (err, results).\n * @returns {Promise} a promise, if no callback is passed\n */\n function mapLimit (coll, limit, iteratee, callback) {\n return _asyncMap(eachOfLimit$2(limit), coll, iteratee, callback)\n }\n var mapLimit$1 = awaitify(mapLimit, 4);\n\n /**\n * The same as [`concat`]{@link module:Collections.concat} but runs a maximum of `limit` async operations at a time.\n *\n * @name concatLimit\n * @static\n * @memberOf module:Collections\n * @method\n * @see [async.concat]{@link module:Collections.concat}\n * @category Collection\n * @alias flatMapLimit\n * @param {Array|Iterable|AsyncIterable|Object} coll - A collection to iterate over.\n * @param {number} limit - The maximum number of async operations at a time.\n * @param {AsyncFunction} iteratee - A function to apply to each item in `coll`,\n * which should use an array as its result. Invoked with (item, callback).\n * @param {Function} [callback] - A callback which is called after all the\n * `iteratee` functions have finished, or an error occurs. Results is an array\n * containing the concatenated results of the `iteratee` function. Invoked with\n * (err, results).\n * @returns A Promise, if no callback is passed\n */\n function concatLimit(coll, limit, iteratee, callback) {\n var _iteratee = wrapAsync(iteratee);\n return mapLimit$1(coll, limit, (val, iterCb) => {\n _iteratee(val, (err, ...args) => {\n if (err) return iterCb(err);\n return iterCb(err, args);\n });\n }, (err, mapResults) => {\n var result = [];\n for (var i = 0; i < mapResults.length; i++) {\n if (mapResults[i]) {\n result = result.concat(...mapResults[i]);\n }\n }\n\n return callback(err, result);\n });\n }\n var concatLimit$1 = awaitify(concatLimit, 4);\n\n /**\n * Applies `iteratee` to each item in `coll`, concatenating the results. Returns\n * the concatenated list. The `iteratee`s are called in parallel, and the\n * results are concatenated as they return. The results array will be returned in\n * the original order of `coll` passed to the `iteratee` function.\n *\n * @name concat\n * @static\n * @memberOf module:Collections\n * @method\n * @category Collection\n * @alias flatMap\n * @param {Array|Iterable|AsyncIterable|Object} coll - A collection to iterate over.\n * @param {AsyncFunction} iteratee - A function to apply to each item in `coll`,\n * which should use an array as its result. Invoked with (item, callback).\n * @param {Function} [callback] - A callback which is called after all the\n * `iteratee` functions have finished, or an error occurs. Results is an array\n * containing the concatenated results of the `iteratee` function. Invoked with\n * (err, results).\n * @returns A Promise, if no callback is passed\n * @example\n *\n * // dir1 is a directory that contains file1.txt, file2.txt\n * // dir2 is a directory that contains file3.txt, file4.txt\n * // dir3 is a directory that contains file5.txt\n * // dir4 does not exist\n *\n * let directoryList = ['dir1','dir2','dir3'];\n * let withMissingDirectoryList = ['dir1','dir2','dir3', 'dir4'];\n *\n * // Using callbacks\n * async.concat(directoryList, fs.readdir, function(err, results) {\n * if (err) {\n * console.log(err);\n * } else {\n * console.log(results);\n * // [ 'file1.txt', 'file2.txt', 'file3.txt', 'file4.txt', file5.txt ]\n * }\n * });\n *\n * // Error Handling\n * async.concat(withMissingDirectoryList, fs.readdir, function(err, results) {\n * if (err) {\n * console.log(err);\n * // [ Error: ENOENT: no such file or directory ]\n * // since dir4 does not exist\n * } else {\n * console.log(results);\n * }\n * });\n *\n * // Using Promises\n * async.concat(directoryList, fs.readdir)\n * .then(results => {\n * console.log(results);\n * // [ 'file1.txt', 'file2.txt', 'file3.txt', 'file4.txt', file5.txt ]\n * }).catch(err => {\n * console.log(err);\n * });\n *\n * // Error Handling\n * async.concat(withMissingDirectoryList, fs.readdir)\n * .then(results => {\n * console.log(results);\n * }).catch(err => {\n * console.log(err);\n * // [ Error: ENOENT: no such file or directory ]\n * // since dir4 does not exist\n * });\n *\n * // Using async/await\n * async () => {\n * try {\n * let results = await async.concat(directoryList, fs.readdir);\n * console.log(results);\n * // [ 'file1.txt', 'file2.txt', 'file3.txt', 'file4.txt', file5.txt ]\n * } catch (err) {\n * console.log(err);\n * }\n * }\n *\n * // Error Handling\n * async () => {\n * try {\n * let results = await async.concat(withMissingDirectoryList, fs.readdir);\n * console.log(results);\n * } catch (err) {\n * console.log(err);\n * // [ Error: ENOENT: no such file or directory ]\n * // since dir4 does not exist\n * }\n * }\n *\n */\n function concat(coll, iteratee, callback) {\n return concatLimit$1(coll, Infinity, iteratee, callback)\n }\n var concat$1 = awaitify(concat, 3);\n\n /**\n * The same as [`concat`]{@link module:Collections.concat} but runs only a single async operation at a time.\n *\n * @name concatSeries\n * @static\n * @memberOf module:Collections\n * @method\n * @see [async.concat]{@link module:Collections.concat}\n * @category Collection\n * @alias flatMapSeries\n * @param {Array|Iterable|AsyncIterable|Object} coll - A collection to iterate over.\n * @param {AsyncFunction} iteratee - A function to apply to each item in `coll`.\n * The iteratee should complete with an array an array of results.\n * Invoked with (item, callback).\n * @param {Function} [callback] - A callback which is called after all the\n * `iteratee` functions have finished, or an error occurs. Results is an array\n * containing the concatenated results of the `iteratee` function. Invoked with\n * (err, results).\n * @returns A Promise, if no callback is passed\n */\n function concatSeries(coll, iteratee, callback) {\n return concatLimit$1(coll, 1, iteratee, callback)\n }\n var concatSeries$1 = awaitify(concatSeries, 3);\n\n /**\n * Returns a function that when called, calls-back with the values provided.\n * Useful as the first function in a [`waterfall`]{@link module:ControlFlow.waterfall}, or for plugging values in to\n * [`auto`]{@link module:ControlFlow.auto}.\n *\n * @name constant\n * @static\n * @memberOf module:Utils\n * @method\n * @category Util\n * @param {...*} arguments... - Any number of arguments to automatically invoke\n * callback with.\n * @returns {AsyncFunction} Returns a function that when invoked, automatically\n * invokes the callback with the previous given arguments.\n * @example\n *\n * async.waterfall([\n * async.constant(42),\n * function (value, next) {\n * // value === 42\n * },\n * //...\n * ], callback);\n *\n * async.waterfall([\n * async.constant(filename, \"utf8\"),\n * fs.readFile,\n * function (fileData, next) {\n * //...\n * }\n * //...\n * ], callback);\n *\n * async.auto({\n * hostname: async.constant(\"https://server.net/\"),\n * port: findFreePort,\n * launchServer: [\"hostname\", \"port\", function (options, cb) {\n * startServer(options, cb);\n * }],\n * //...\n * }, callback);\n */\n function constant$1(...args) {\n return function (...ignoredArgs/*, callback*/) {\n var callback = ignoredArgs.pop();\n return callback(null, ...args);\n };\n }\n\n function _createTester(check, getResult) {\n return (eachfn, arr, _iteratee, cb) => {\n var testPassed = false;\n var testResult;\n const iteratee = wrapAsync(_iteratee);\n eachfn(arr, (value, _, callback) => {\n iteratee(value, (err, result) => {\n if (err || err === false) return callback(err);\n\n if (check(result) && !testResult) {\n testPassed = true;\n testResult = getResult(true, value);\n return callback(null, breakLoop$1);\n }\n callback();\n });\n }, err => {\n if (err) return cb(err);\n cb(null, testPassed ? testResult : getResult(false));\n });\n };\n }\n\n /**\n * Returns the first value in `coll` that passes an async truth test. The\n * `iteratee` is applied in parallel, meaning the first iteratee to return\n * `true` will fire the detect `callback` with that result. That means the\n * result might not be the first item in the original `coll` (in terms of order)\n * that passes the test.\n\n * If order within the original `coll` is important, then look at\n * [`detectSeries`]{@link module:Collections.detectSeries}.\n *\n * @name detect\n * @static\n * @memberOf module:Collections\n * @method\n * @alias find\n * @category Collections\n * @param {Array|Iterable|AsyncIterable|Object} coll - A collection to iterate over.\n * @param {AsyncFunction} iteratee - A truth test to apply to each item in `coll`.\n * The iteratee must complete with a boolean value as its result.\n * Invoked with (item, callback).\n * @param {Function} [callback] - A callback which is called as soon as any\n * iteratee returns `true`, or after all the `iteratee` functions have finished.\n * Result will be the first item in the array that passes the truth test\n * (iteratee) or the value `undefined` if none passed. Invoked with\n * (err, result).\n * @returns {Promise} a promise, if a callback is omitted\n * @example\n *\n * // dir1 is a directory that contains file1.txt, file2.txt\n * // dir2 is a directory that contains file3.txt, file4.txt\n * // dir3 is a directory that contains file5.txt\n *\n * // asynchronous function that checks if a file exists\n * function fileExists(file, callback) {\n * fs.access(file, fs.constants.F_OK, (err) => {\n * callback(null, !err);\n * });\n * }\n *\n * async.detect(['file3.txt','file2.txt','dir1/file1.txt'], fileExists,\n * function(err, result) {\n * console.log(result);\n * // dir1/file1.txt\n * // result now equals the first file in the list that exists\n * }\n *);\n *\n * // Using Promises\n * async.detect(['file3.txt','file2.txt','dir1/file1.txt'], fileExists)\n * .then(result => {\n * console.log(result);\n * // dir1/file1.txt\n * // result now equals the first file in the list that exists\n * }).catch(err => {\n * console.log(err);\n * });\n *\n * // Using async/await\n * async () => {\n * try {\n * let result = await async.detect(['file3.txt','file2.txt','dir1/file1.txt'], fileExists);\n * console.log(result);\n * // dir1/file1.txt\n * // result now equals the file in the list that exists\n * }\n * catch (err) {\n * console.log(err);\n * }\n * }\n *\n */\n function detect(coll, iteratee, callback) {\n return _createTester(bool => bool, (res, item) => item)(eachOf$1, coll, iteratee, callback)\n }\n var detect$1 = awaitify(detect, 3);\n\n /**\n * The same as [`detect`]{@link module:Collections.detect} but runs a maximum of `limit` async operations at a\n * time.\n *\n * @name detectLimit\n * @static\n * @memberOf module:Collections\n * @method\n * @see [async.detect]{@link module:Collections.detect}\n * @alias findLimit\n * @category Collections\n * @param {Array|Iterable|AsyncIterable|Object} coll - A collection to iterate over.\n * @param {number} limit - The maximum number of async operations at a time.\n * @param {AsyncFunction} iteratee - A truth test to apply to each item in `coll`.\n * The iteratee must complete with a boolean value as its result.\n * Invoked with (item, callback).\n * @param {Function} [callback] - A callback which is called as soon as any\n * iteratee returns `true`, or after all the `iteratee` functions have finished.\n * Result will be the first item in the array that passes the truth test\n * (iteratee) or the value `undefined` if none passed. Invoked with\n * (err, result).\n * @returns {Promise} a promise, if a callback is omitted\n */\n function detectLimit(coll, limit, iteratee, callback) {\n return _createTester(bool => bool, (res, item) => item)(eachOfLimit$2(limit), coll, iteratee, callback)\n }\n var detectLimit$1 = awaitify(detectLimit, 4);\n\n /**\n * The same as [`detect`]{@link module:Collections.detect} but runs only a single async operation at a time.\n *\n * @name detectSeries\n * @static\n * @memberOf module:Collections\n * @method\n * @see [async.detect]{@link module:Collections.detect}\n * @alias findSeries\n * @category Collections\n * @param {Array|Iterable|AsyncIterable|Object} coll - A collection to iterate over.\n * @param {AsyncFunction} iteratee - A truth test to apply to each item in `coll`.\n * The iteratee must complete with a boolean value as its result.\n * Invoked with (item, callback).\n * @param {Function} [callback] - A callback which is called as soon as any\n * iteratee returns `true`, or after all the `iteratee` functions have finished.\n * Result will be the first item in the array that passes the truth test\n * (iteratee) or the value `undefined` if none passed. Invoked with\n * (err, result).\n * @returns {Promise} a promise, if a callback is omitted\n */\n function detectSeries(coll, iteratee, callback) {\n return _createTester(bool => bool, (res, item) => item)(eachOfLimit$2(1), coll, iteratee, callback)\n }\n\n var detectSeries$1 = awaitify(detectSeries, 3);\n\n function consoleFunc(name) {\n return (fn, ...args) => wrapAsync(fn)(...args, (err, ...resultArgs) => {\n /* istanbul ignore else */\n if (typeof console === 'object') {\n /* istanbul ignore else */\n if (err) {\n /* istanbul ignore else */\n if (console.error) {\n console.error(err);\n }\n } else if (console[name]) { /* istanbul ignore else */\n resultArgs.forEach(x => console[name](x));\n }\n }\n })\n }\n\n /**\n * Logs the result of an [`async` function]{@link AsyncFunction} to the\n * `console` using `console.dir` to display the properties of the resulting object.\n * Only works in Node.js or in browsers that support `console.dir` and\n * `console.error` (such as FF and Chrome).\n * If multiple arguments are returned from the async function,\n * `console.dir` is called on each argument in order.\n *\n * @name dir\n * @static\n * @memberOf module:Utils\n * @method\n * @category Util\n * @param {AsyncFunction} function - The function you want to eventually apply\n * all arguments to.\n * @param {...*} arguments... - Any number of arguments to apply to the function.\n * @example\n *\n * // in a module\n * var hello = function(name, callback) {\n * setTimeout(function() {\n * callback(null, {hello: name});\n * }, 1000);\n * };\n *\n * // in the node repl\n * node> async.dir(hello, 'world');\n * {hello: 'world'}\n */\n var dir = consoleFunc('dir');\n\n /**\n * The post-check version of [`whilst`]{@link module:ControlFlow.whilst}. To reflect the difference in\n * the order of operations, the arguments `test` and `iteratee` are switched.\n *\n * `doWhilst` is to `whilst` as `do while` is to `while` in plain JavaScript.\n *\n * @name doWhilst\n * @static\n * @memberOf module:ControlFlow\n * @method\n * @see [async.whilst]{@link module:ControlFlow.whilst}\n * @category Control Flow\n * @param {AsyncFunction} iteratee - A function which is called each time `test`\n * passes. Invoked with (callback).\n * @param {AsyncFunction} test - asynchronous truth test to perform after each\n * execution of `iteratee`. Invoked with (...args, callback), where `...args` are the\n * non-error args from the previous callback of `iteratee`.\n * @param {Function} [callback] - A callback which is called after the test\n * function has failed and repeated execution of `iteratee` has stopped.\n * `callback` will be passed an error and any arguments passed to the final\n * `iteratee`'s callback. Invoked with (err, [results]);\n * @returns {Promise} a promise, if no callback is passed\n */\n function doWhilst(iteratee, test, callback) {\n callback = onlyOnce(callback);\n var _fn = wrapAsync(iteratee);\n var _test = wrapAsync(test);\n var results;\n\n function next(err, ...args) {\n if (err) return callback(err);\n if (err === false) return;\n results = args;\n _test(...args, check);\n }\n\n function check(err, truth) {\n if (err) return callback(err);\n if (err === false) return;\n if (!truth) return callback(null, ...results);\n _fn(next);\n }\n\n return check(null, true);\n }\n\n var doWhilst$1 = awaitify(doWhilst, 3);\n\n /**\n * Like ['doWhilst']{@link module:ControlFlow.doWhilst}, except the `test` is inverted. Note the\n * argument ordering differs from `until`.\n *\n * @name doUntil\n * @static\n * @memberOf module:ControlFlow\n * @method\n * @see [async.doWhilst]{@link module:ControlFlow.doWhilst}\n * @category Control Flow\n * @param {AsyncFunction} iteratee - An async function which is called each time\n * `test` fails. Invoked with (callback).\n * @param {AsyncFunction} test - asynchronous truth test to perform after each\n * execution of `iteratee`. Invoked with (...args, callback), where `...args` are the\n * non-error args from the previous callback of `iteratee`\n * @param {Function} [callback] - A callback which is called after the test\n * function has passed and repeated execution of `iteratee` has stopped. `callback`\n * will be passed an error and any arguments passed to the final `iteratee`'s\n * callback. Invoked with (err, [results]);\n * @returns {Promise} a promise, if no callback is passed\n */\n function doUntil(iteratee, test, callback) {\n const _test = wrapAsync(test);\n return doWhilst$1(iteratee, (...args) => {\n const cb = args.pop();\n _test(...args, (err, truth) => cb (err, !truth));\n }, callback);\n }\n\n function _withoutIndex(iteratee) {\n return (value, index, callback) => iteratee(value, callback);\n }\n\n /**\n * Applies the function `iteratee` to each item in `coll`, in parallel.\n * The `iteratee` is called with an item from the list, and a callback for when\n * it has finished. If the `iteratee` passes an error to its `callback`, the\n * main `callback` (for the `each` function) is immediately called with the\n * error.\n *\n * Note, that since this function applies `iteratee` to each item in parallel,\n * there is no guarantee that the iteratee functions will complete in order.\n *\n * @name each\n * @static\n * @memberOf module:Collections\n * @method\n * @alias forEach\n * @category Collection\n * @param {Array|Iterable|AsyncIterable|Object} coll - A collection to iterate over.\n * @param {AsyncFunction} iteratee - An async function to apply to\n * each item in `coll`. Invoked with (item, callback).\n * The array index is not passed to the iteratee.\n * If you need the index, use `eachOf`.\n * @param {Function} [callback] - A callback which is called when all\n * `iteratee` functions have finished, or an error occurs. Invoked with (err).\n * @returns {Promise} a promise, if a callback is omitted\n * @example\n *\n * // dir1 is a directory that contains file1.txt, file2.txt\n * // dir2 is a directory that contains file3.txt, file4.txt\n * // dir3 is a directory that contains file5.txt\n * // dir4 does not exist\n *\n * const fileList = [ 'dir1/file2.txt', 'dir2/file3.txt', 'dir/file5.txt'];\n * const withMissingFileList = ['dir1/file1.txt', 'dir4/file2.txt'];\n *\n * // asynchronous function that deletes a file\n * const deleteFile = function(file, callback) {\n * fs.unlink(file, callback);\n * };\n *\n * // Using callbacks\n * async.each(fileList, deleteFile, function(err) {\n * if( err ) {\n * console.log(err);\n * } else {\n * console.log('All files have been deleted successfully');\n * }\n * });\n *\n * // Error Handling\n * async.each(withMissingFileList, deleteFile, function(err){\n * console.log(err);\n * // [ Error: ENOENT: no such file or directory ]\n * // since dir4/file2.txt does not exist\n * // dir1/file1.txt could have been deleted\n * });\n *\n * // Using Promises\n * async.each(fileList, deleteFile)\n * .then( () => {\n * console.log('All files have been deleted successfully');\n * }).catch( err => {\n * console.log(err);\n * });\n *\n * // Error Handling\n * async.each(fileList, deleteFile)\n * .then( () => {\n * console.log('All files have been deleted successfully');\n * }).catch( err => {\n * console.log(err);\n * // [ Error: ENOENT: no such file or directory ]\n * // since dir4/file2.txt does not exist\n * // dir1/file1.txt could have been deleted\n * });\n *\n * // Using async/await\n * async () => {\n * try {\n * await async.each(files, deleteFile);\n * }\n * catch (err) {\n * console.log(err);\n * }\n * }\n *\n * // Error Handling\n * async () => {\n * try {\n * await async.each(withMissingFileList, deleteFile);\n * }\n * catch (err) {\n * console.log(err);\n * // [ Error: ENOENT: no such file or directory ]\n * // since dir4/file2.txt does not exist\n * // dir1/file1.txt could have been deleted\n * }\n * }\n *\n */\n function eachLimit$2(coll, iteratee, callback) {\n return eachOf$1(coll, _withoutIndex(wrapAsync(iteratee)), callback);\n }\n\n var each = awaitify(eachLimit$2, 3);\n\n /**\n * The same as [`each`]{@link module:Collections.each} but runs a maximum of `limit` async operations at a time.\n *\n * @name eachLimit\n * @static\n * @memberOf module:Collections\n * @method\n * @see [async.each]{@link module:Collections.each}\n * @alias forEachLimit\n * @category Collection\n * @param {Array|Iterable|AsyncIterable|Object} coll - A collection to iterate over.\n * @param {number} limit - The maximum number of async operations at a time.\n * @param {AsyncFunction} iteratee - An async function to apply to each item in\n * `coll`.\n * The array index is not passed to the iteratee.\n * If you need the index, use `eachOfLimit`.\n * Invoked with (item, callback).\n * @param {Function} [callback] - A callback which is called when all\n * `iteratee` functions have finished, or an error occurs. Invoked with (err).\n * @returns {Promise} a promise, if a callback is omitted\n */\n function eachLimit(coll, limit, iteratee, callback) {\n return eachOfLimit$2(limit)(coll, _withoutIndex(wrapAsync(iteratee)), callback);\n }\n var eachLimit$1 = awaitify(eachLimit, 4);\n\n /**\n * The same as [`each`]{@link module:Collections.each} but runs only a single async operation at a time.\n *\n * Note, that unlike [`each`]{@link module:Collections.each}, this function applies iteratee to each item\n * in series and therefore the iteratee functions will complete in order.\n\n * @name eachSeries\n * @static\n * @memberOf module:Collections\n * @method\n * @see [async.each]{@link module:Collections.each}\n * @alias forEachSeries\n * @category Collection\n * @param {Array|Iterable|AsyncIterable|Object} coll - A collection to iterate over.\n * @param {AsyncFunction} iteratee - An async function to apply to each\n * item in `coll`.\n * The array index is not passed to the iteratee.\n * If you need the index, use `eachOfSeries`.\n * Invoked with (item, callback).\n * @param {Function} [callback] - A callback which is called when all\n * `iteratee` functions have finished, or an error occurs. Invoked with (err).\n * @returns {Promise} a promise, if a callback is omitted\n */\n function eachSeries(coll, iteratee, callback) {\n return eachLimit$1(coll, 1, iteratee, callback)\n }\n var eachSeries$1 = awaitify(eachSeries, 3);\n\n /**\n * Wrap an async function and ensure it calls its callback on a later tick of\n * the event loop. If the function already calls its callback on a next tick,\n * no extra deferral is added. This is useful for preventing stack overflows\n * (`RangeError: Maximum call stack size exceeded`) and generally keeping\n * [Zalgo](http://blog.izs.me/post/59142742143/designing-apis-for-asynchrony)\n * contained. ES2017 `async` functions are returned as-is -- they are immune\n * to Zalgo's corrupting influences, as they always resolve on a later tick.\n *\n * @name ensureAsync\n * @static\n * @memberOf module:Utils\n * @method\n * @category Util\n * @param {AsyncFunction} fn - an async function, one that expects a node-style\n * callback as its last argument.\n * @returns {AsyncFunction} Returns a wrapped function with the exact same call\n * signature as the function passed in.\n * @example\n *\n * function sometimesAsync(arg, callback) {\n * if (cache[arg]) {\n * return callback(null, cache[arg]); // this would be synchronous!!\n * } else {\n * doSomeIO(arg, callback); // this IO would be asynchronous\n * }\n * }\n *\n * // this has a risk of stack overflows if many results are cached in a row\n * async.mapSeries(args, sometimesAsync, done);\n *\n * // this will defer sometimesAsync's callback if necessary,\n * // preventing stack overflows\n * async.mapSeries(args, async.ensureAsync(sometimesAsync), done);\n */\n function ensureAsync(fn) {\n if (isAsync(fn)) return fn;\n return function (...args/*, callback*/) {\n var callback = args.pop();\n var sync = true;\n args.push((...innerArgs) => {\n if (sync) {\n setImmediate$1(() => callback(...innerArgs));\n } else {\n callback(...innerArgs);\n }\n });\n fn.apply(this, args);\n sync = false;\n };\n }\n\n /**\n * Returns `true` if every element in `coll` satisfies an async test. If any\n * iteratee call returns `false`, the main `callback` is immediately called.\n *\n * @name every\n * @static\n * @memberOf module:Collections\n * @method\n * @alias all\n * @category Collection\n * @param {Array|Iterable|AsyncIterable|Object} coll - A collection to iterate over.\n * @param {AsyncFunction} iteratee - An async truth test to apply to each item\n * in the collection in parallel.\n * The iteratee must complete with a boolean result value.\n * Invoked with (item, callback).\n * @param {Function} [callback] - A callback which is called after all the\n * `iteratee` functions have finished. Result will be either `true` or `false`\n * depending on the values of the async tests. Invoked with (err, result).\n * @returns {Promise} a promise, if no callback provided\n * @example\n *\n * // dir1 is a directory that contains file1.txt, file2.txt\n * // dir2 is a directory that contains file3.txt, file4.txt\n * // dir3 is a directory that contains file5.txt\n * // dir4 does not exist\n *\n * const fileList = ['dir1/file1.txt','dir2/file3.txt','dir3/file5.txt'];\n * const withMissingFileList = ['file1.txt','file2.txt','file4.txt'];\n *\n * // asynchronous function that checks if a file exists\n * function fileExists(file, callback) {\n * fs.access(file, fs.constants.F_OK, (err) => {\n * callback(null, !err);\n * });\n * }\n *\n * // Using callbacks\n * async.every(fileList, fileExists, function(err, result) {\n * console.log(result);\n * // true\n * // result is true since every file exists\n * });\n *\n * async.every(withMissingFileList, fileExists, function(err, result) {\n * console.log(result);\n * // false\n * // result is false since NOT every file exists\n * });\n *\n * // Using Promises\n * async.every(fileList, fileExists)\n * .then( result => {\n * console.log(result);\n * // true\n * // result is true since every file exists\n * }).catch( err => {\n * console.log(err);\n * });\n *\n * async.every(withMissingFileList, fileExists)\n * .then( result => {\n * console.log(result);\n * // false\n * // result is false since NOT every file exists\n * }).catch( err => {\n * console.log(err);\n * });\n *\n * // Using async/await\n * async () => {\n * try {\n * let result = await async.every(fileList, fileExists);\n * console.log(result);\n * // true\n * // result is true since every file exists\n * }\n * catch (err) {\n * console.log(err);\n * }\n * }\n *\n * async () => {\n * try {\n * let result = await async.every(withMissingFileList, fileExists);\n * console.log(result);\n * // false\n * // result is false since NOT every file exists\n * }\n * catch (err) {\n * console.log(err);\n * }\n * }\n *\n */\n function every(coll, iteratee, callback) {\n return _createTester(bool => !bool, res => !res)(eachOf$1, coll, iteratee, callback)\n }\n var every$1 = awaitify(every, 3);\n\n /**\n * The same as [`every`]{@link module:Collections.every} but runs a maximum of `limit` async operations at a time.\n *\n * @name everyLimit\n * @static\n * @memberOf module:Collections\n * @method\n * @see [async.every]{@link module:Collections.every}\n * @alias allLimit\n * @category Collection\n * @param {Array|Iterable|AsyncIterable|Object} coll - A collection to iterate over.\n * @param {number} limit - The maximum number of async operations at a time.\n * @param {AsyncFunction} iteratee - An async truth test to apply to each item\n * in the collection in parallel.\n * The iteratee must complete with a boolean result value.\n * Invoked with (item, callback).\n * @param {Function} [callback] - A callback which is called after all the\n * `iteratee` functions have finished. Result will be either `true` or `false`\n * depending on the values of the async tests. Invoked with (err, result).\n * @returns {Promise} a promise, if no callback provided\n */\n function everyLimit(coll, limit, iteratee, callback) {\n return _createTester(bool => !bool, res => !res)(eachOfLimit$2(limit), coll, iteratee, callback)\n }\n var everyLimit$1 = awaitify(everyLimit, 4);\n\n /**\n * The same as [`every`]{@link module:Collections.every} but runs only a single async operation at a time.\n *\n * @name everySeries\n * @static\n * @memberOf module:Collections\n * @method\n * @see [async.every]{@link module:Collections.every}\n * @alias allSeries\n * @category Collection\n * @param {Array|Iterable|AsyncIterable|Object} coll - A collection to iterate over.\n * @param {AsyncFunction} iteratee - An async truth test to apply to each item\n * in the collection in series.\n * The iteratee must complete with a boolean result value.\n * Invoked with (item, callback).\n * @param {Function} [callback] - A callback which is called after all the\n * `iteratee` functions have finished. Result will be either `true` or `false`\n * depending on the values of the async tests. Invoked with (err, result).\n * @returns {Promise} a promise, if no callback provided\n */\n function everySeries(coll, iteratee, callback) {\n return _createTester(bool => !bool, res => !res)(eachOfSeries$1, coll, iteratee, callback)\n }\n var everySeries$1 = awaitify(everySeries, 3);\n\n function filterArray(eachfn, arr, iteratee, callback) {\n var truthValues = new Array(arr.length);\n eachfn(arr, (x, index, iterCb) => {\n iteratee(x, (err, v) => {\n truthValues[index] = !!v;\n iterCb(err);\n });\n }, err => {\n if (err) return callback(err);\n var results = [];\n for (var i = 0; i < arr.length; i++) {\n if (truthValues[i]) results.push(arr[i]);\n }\n callback(null, results);\n });\n }\n\n function filterGeneric(eachfn, coll, iteratee, callback) {\n var results = [];\n eachfn(coll, (x, index, iterCb) => {\n iteratee(x, (err, v) => {\n if (err) return iterCb(err);\n if (v) {\n results.push({index, value: x});\n }\n iterCb(err);\n });\n }, err => {\n if (err) return callback(err);\n callback(null, results\n .sort((a, b) => a.index - b.index)\n .map(v => v.value));\n });\n }\n\n function _filter(eachfn, coll, iteratee, callback) {\n var filter = isArrayLike(coll) ? filterArray : filterGeneric;\n return filter(eachfn, coll, wrapAsync(iteratee), callback);\n }\n\n /**\n * Returns a new array of all the values in `coll` which pass an async truth\n * test. This operation is performed in parallel, but the results array will be\n * in the same order as the original.\n *\n * @name filter\n * @static\n * @memberOf module:Collections\n * @method\n * @alias select\n * @category Collection\n * @param {Array|Iterable|AsyncIterable|Object} coll - A collection to iterate over.\n * @param {Function} iteratee - A truth test to apply to each item in `coll`.\n * The `iteratee` is passed a `callback(err, truthValue)`, which must be called\n * with a boolean argument once it has completed. Invoked with (item, callback).\n * @param {Function} [callback] - A callback which is called after all the\n * `iteratee` functions have finished. Invoked with (err, results).\n * @returns {Promise} a promise, if no callback provided\n * @example\n *\n * // dir1 is a directory that contains file1.txt, file2.txt\n * // dir2 is a directory that contains file3.txt, file4.txt\n * // dir3 is a directory that contains file5.txt\n *\n * const files = ['dir1/file1.txt','dir2/file3.txt','dir3/file6.txt'];\n *\n * // asynchronous function that checks if a file exists\n * function fileExists(file, callback) {\n * fs.access(file, fs.constants.F_OK, (err) => {\n * callback(null, !err);\n * });\n * }\n *\n * // Using callbacks\n * async.filter(files, fileExists, function(err, results) {\n * if(err) {\n * console.log(err);\n * } else {\n * console.log(results);\n * // [ 'dir1/file1.txt', 'dir2/file3.txt' ]\n * // results is now an array of the existing files\n * }\n * });\n *\n * // Using Promises\n * async.filter(files, fileExists)\n * .then(results => {\n * console.log(results);\n * // [ 'dir1/file1.txt', 'dir2/file3.txt' ]\n * // results is now an array of the existing files\n * }).catch(err => {\n * console.log(err);\n * });\n *\n * // Using async/await\n * async () => {\n * try {\n * let results = await async.filter(files, fileExists);\n * console.log(results);\n * // [ 'dir1/file1.txt', 'dir2/file3.txt' ]\n * // results is now an array of the existing files\n * }\n * catch (err) {\n * console.log(err);\n * }\n * }\n *\n */\n function filter (coll, iteratee, callback) {\n return _filter(eachOf$1, coll, iteratee, callback)\n }\n var filter$1 = awaitify(filter, 3);\n\n /**\n * The same as [`filter`]{@link module:Collections.filter} but runs a maximum of `limit` async operations at a\n * time.\n *\n * @name filterLimit\n * @static\n * @memberOf module:Collections\n * @method\n * @see [async.filter]{@link module:Collections.filter}\n * @alias selectLimit\n * @category Collection\n * @param {Array|Iterable|AsyncIterable|Object} coll - A collection to iterate over.\n * @param {number} limit - The maximum number of async operations at a time.\n * @param {Function} iteratee - A truth test to apply to each item in `coll`.\n * The `iteratee` is passed a `callback(err, truthValue)`, which must be called\n * with a boolean argument once it has completed. Invoked with (item, callback).\n * @param {Function} [callback] - A callback which is called after all the\n * `iteratee` functions have finished. Invoked with (err, results).\n * @returns {Promise} a promise, if no callback provided\n */\n function filterLimit (coll, limit, iteratee, callback) {\n return _filter(eachOfLimit$2(limit), coll, iteratee, callback)\n }\n var filterLimit$1 = awaitify(filterLimit, 4);\n\n /**\n * The same as [`filter`]{@link module:Collections.filter} but runs only a single async operation at a time.\n *\n * @name filterSeries\n * @static\n * @memberOf module:Collections\n * @method\n * @see [async.filter]{@link module:Collections.filter}\n * @alias selectSeries\n * @category Collection\n * @param {Array|Iterable|AsyncIterable|Object} coll - A collection to iterate over.\n * @param {Function} iteratee - A truth test to apply to each item in `coll`.\n * The `iteratee` is passed a `callback(err, truthValue)`, which must be called\n * with a boolean argument once it has completed. Invoked with (item, callback).\n * @param {Function} [callback] - A callback which is called after all the\n * `iteratee` functions have finished. Invoked with (err, results)\n * @returns {Promise} a promise, if no callback provided\n */\n function filterSeries (coll, iteratee, callback) {\n return _filter(eachOfSeries$1, coll, iteratee, callback)\n }\n var filterSeries$1 = awaitify(filterSeries, 3);\n\n /**\n * Calls the asynchronous function `fn` with a callback parameter that allows it\n * to call itself again, in series, indefinitely.\n\n * If an error is passed to the callback then `errback` is called with the\n * error, and execution stops, otherwise it will never be called.\n *\n * @name forever\n * @static\n * @memberOf module:ControlFlow\n * @method\n * @category Control Flow\n * @param {AsyncFunction} fn - an async function to call repeatedly.\n * Invoked with (next).\n * @param {Function} [errback] - when `fn` passes an error to it's callback,\n * this function will be called, and execution stops. Invoked with (err).\n * @returns {Promise} a promise that rejects if an error occurs and an errback\n * is not passed\n * @example\n *\n * async.forever(\n * function(next) {\n * // next is suitable for passing to things that need a callback(err [, whatever]);\n * // it will result in this function being called again.\n * },\n * function(err) {\n * // if next is called with a value in its first parameter, it will appear\n * // in here as 'err', and execution will stop.\n * }\n * );\n */\n function forever(fn, errback) {\n var done = onlyOnce(errback);\n var task = wrapAsync(ensureAsync(fn));\n\n function next(err) {\n if (err) return done(err);\n if (err === false) return;\n task(next);\n }\n return next();\n }\n var forever$1 = awaitify(forever, 2);\n\n /**\n * The same as [`groupBy`]{@link module:Collections.groupBy} but runs a maximum of `limit` async operations at a time.\n *\n * @name groupByLimit\n * @static\n * @memberOf module:Collections\n * @method\n * @see [async.groupBy]{@link module:Collections.groupBy}\n * @category Collection\n * @param {Array|Iterable|AsyncIterable|Object} coll - A collection to iterate over.\n * @param {number} limit - The maximum number of async operations at a time.\n * @param {AsyncFunction} iteratee - An async function to apply to each item in\n * `coll`.\n * The iteratee should complete with a `key` to group the value under.\n * Invoked with (value, callback).\n * @param {Function} [callback] - A callback which is called when all `iteratee`\n * functions have finished, or an error occurs. Result is an `Object` whoses\n * properties are arrays of values which returned the corresponding key.\n * @returns {Promise} a promise, if no callback is passed\n */\n function groupByLimit(coll, limit, iteratee, callback) {\n var _iteratee = wrapAsync(iteratee);\n return mapLimit$1(coll, limit, (val, iterCb) => {\n _iteratee(val, (err, key) => {\n if (err) return iterCb(err);\n return iterCb(err, {key, val});\n });\n }, (err, mapResults) => {\n var result = {};\n // from MDN, handle object having an `hasOwnProperty` prop\n var {hasOwnProperty} = Object.prototype;\n\n for (var i = 0; i < mapResults.length; i++) {\n if (mapResults[i]) {\n var {key} = mapResults[i];\n var {val} = mapResults[i];\n\n if (hasOwnProperty.call(result, key)) {\n result[key].push(val);\n } else {\n result[key] = [val];\n }\n }\n }\n\n return callback(err, result);\n });\n }\n\n var groupByLimit$1 = awaitify(groupByLimit, 4);\n\n /**\n * Returns a new object, where each value corresponds to an array of items, from\n * `coll`, that returned the corresponding key. That is, the keys of the object\n * correspond to the values passed to the `iteratee` callback.\n *\n * Note: Since this function applies the `iteratee` to each item in parallel,\n * there is no guarantee that the `iteratee` functions will complete in order.\n * However, the values for each key in the `result` will be in the same order as\n * the original `coll`. For Objects, the values will roughly be in the order of\n * the original Objects' keys (but this can vary across JavaScript engines).\n *\n * @name groupBy\n * @static\n * @memberOf module:Collections\n * @method\n * @category Collection\n * @param {Array|Iterable|AsyncIterable|Object} coll - A collection to iterate over.\n * @param {AsyncFunction} iteratee - An async function to apply to each item in\n * `coll`.\n * The iteratee should complete with a `key` to group the value under.\n * Invoked with (value, callback).\n * @param {Function} [callback] - A callback which is called when all `iteratee`\n * functions have finished, or an error occurs. Result is an `Object` whoses\n * properties are arrays of values which returned the corresponding key.\n * @returns {Promise} a promise, if no callback is passed\n * @example\n *\n * // dir1 is a directory that contains file1.txt, file2.txt\n * // dir2 is a directory that contains file3.txt, file4.txt\n * // dir3 is a directory that contains file5.txt\n * // dir4 does not exist\n *\n * const files = ['dir1/file1.txt','dir2','dir4']\n *\n * // asynchronous function that detects file type as none, file, or directory\n * function detectFile(file, callback) {\n * fs.stat(file, function(err, stat) {\n * if (err) {\n * return callback(null, 'none');\n * }\n * callback(null, stat.isDirectory() ? 'directory' : 'file');\n * });\n * }\n *\n * //Using callbacks\n * async.groupBy(files, detectFile, function(err, result) {\n * if(err) {\n * console.log(err);\n * } else {\n *\t console.log(result);\n * // {\n * // file: [ 'dir1/file1.txt' ],\n * // none: [ 'dir4' ],\n * // directory: [ 'dir2']\n * // }\n * // result is object containing the files grouped by type\n * }\n * });\n *\n * // Using Promises\n * async.groupBy(files, detectFile)\n * .then( result => {\n * console.log(result);\n * // {\n * // file: [ 'dir1/file1.txt' ],\n * // none: [ 'dir4' ],\n * // directory: [ 'dir2']\n * // }\n * // result is object containing the files grouped by type\n * }).catch( err => {\n * console.log(err);\n * });\n *\n * // Using async/await\n * async () => {\n * try {\n * let result = await async.groupBy(files, detectFile);\n * console.log(result);\n * // {\n * // file: [ 'dir1/file1.txt' ],\n * // none: [ 'dir4' ],\n * // directory: [ 'dir2']\n * // }\n * // result is object containing the files grouped by type\n * }\n * catch (err) {\n * console.log(err);\n * }\n * }\n *\n */\n function groupBy (coll, iteratee, callback) {\n return groupByLimit$1(coll, Infinity, iteratee, callback)\n }\n\n /**\n * The same as [`groupBy`]{@link module:Collections.groupBy} but runs only a single async operation at a time.\n *\n * @name groupBySeries\n * @static\n * @memberOf module:Collections\n * @method\n * @see [async.groupBy]{@link module:Collections.groupBy}\n * @category Collection\n * @param {Array|Iterable|AsyncIterable|Object} coll - A collection to iterate over.\n * @param {AsyncFunction} iteratee - An async function to apply to each item in\n * `coll`.\n * The iteratee should complete with a `key` to group the value under.\n * Invoked with (value, callback).\n * @param {Function} [callback] - A callback which is called when all `iteratee`\n * functions have finished, or an error occurs. Result is an `Object` whose\n * properties are arrays of values which returned the corresponding key.\n * @returns {Promise} a promise, if no callback is passed\n */\n function groupBySeries (coll, iteratee, callback) {\n return groupByLimit$1(coll, 1, iteratee, callback)\n }\n\n /**\n * Logs the result of an `async` function to the `console`. Only works in\n * Node.js or in browsers that support `console.log` and `console.error` (such\n * as FF and Chrome). If multiple arguments are returned from the async\n * function, `console.log` is called on each argument in order.\n *\n * @name log\n * @static\n * @memberOf module:Utils\n * @method\n * @category Util\n * @param {AsyncFunction} function - The function you want to eventually apply\n * all arguments to.\n * @param {...*} arguments... - Any number of arguments to apply to the function.\n * @example\n *\n * // in a module\n * var hello = function(name, callback) {\n * setTimeout(function() {\n * callback(null, 'hello ' + name);\n * }, 1000);\n * };\n *\n * // in the node repl\n * node> async.log(hello, 'world');\n * 'hello world'\n */\n var log = consoleFunc('log');\n\n /**\n * The same as [`mapValues`]{@link module:Collections.mapValues} but runs a maximum of `limit` async operations at a\n * time.\n *\n * @name mapValuesLimit\n * @static\n * @memberOf module:Collections\n * @method\n * @see [async.mapValues]{@link module:Collections.mapValues}\n * @category Collection\n * @param {Object} obj - A collection to iterate over.\n * @param {number} limit - The maximum number of async operations at a time.\n * @param {AsyncFunction} iteratee - A function to apply to each value and key\n * in `coll`.\n * The iteratee should complete with the transformed value as its result.\n * Invoked with (value, key, callback).\n * @param {Function} [callback] - A callback which is called when all `iteratee`\n * functions have finished, or an error occurs. `result` is a new object consisting\n * of each key from `obj`, with each transformed value on the right-hand side.\n * Invoked with (err, result).\n * @returns {Promise} a promise, if no callback is passed\n */\n function mapValuesLimit(obj, limit, iteratee, callback) {\n callback = once(callback);\n var newObj = {};\n var _iteratee = wrapAsync(iteratee);\n return eachOfLimit$2(limit)(obj, (val, key, next) => {\n _iteratee(val, key, (err, result) => {\n if (err) return next(err);\n newObj[key] = result;\n next(err);\n });\n }, err => callback(err, newObj));\n }\n\n var mapValuesLimit$1 = awaitify(mapValuesLimit, 4);\n\n /**\n * A relative of [`map`]{@link module:Collections.map}, designed for use with objects.\n *\n * Produces a new Object by mapping each value of `obj` through the `iteratee`\n * function. The `iteratee` is called each `value` and `key` from `obj` and a\n * callback for when it has finished processing. Each of these callbacks takes\n * two arguments: an `error`, and the transformed item from `obj`. If `iteratee`\n * passes an error to its callback, the main `callback` (for the `mapValues`\n * function) is immediately called with the error.\n *\n * Note, the order of the keys in the result is not guaranteed. The keys will\n * be roughly in the order they complete, (but this is very engine-specific)\n *\n * @name mapValues\n * @static\n * @memberOf module:Collections\n * @method\n * @category Collection\n * @param {Object} obj - A collection to iterate over.\n * @param {AsyncFunction} iteratee - A function to apply to each value and key\n * in `coll`.\n * The iteratee should complete with the transformed value as its result.\n * Invoked with (value, key, callback).\n * @param {Function} [callback] - A callback which is called when all `iteratee`\n * functions have finished, or an error occurs. `result` is a new object consisting\n * of each key from `obj`, with each transformed value on the right-hand side.\n * Invoked with (err, result).\n * @returns {Promise} a promise, if no callback is passed\n * @example\n *\n * // file1.txt is a file that is 1000 bytes in size\n * // file2.txt is a file that is 2000 bytes in size\n * // file3.txt is a file that is 3000 bytes in size\n * // file4.txt does not exist\n *\n * const fileMap = {\n * f1: 'file1.txt',\n * f2: 'file2.txt',\n * f3: 'file3.txt'\n * };\n *\n * const withMissingFileMap = {\n * f1: 'file1.txt',\n * f2: 'file2.txt',\n * f3: 'file4.txt'\n * };\n *\n * // asynchronous function that returns the file size in bytes\n * function getFileSizeInBytes(file, key, callback) {\n * fs.stat(file, function(err, stat) {\n * if (err) {\n * return callback(err);\n * }\n * callback(null, stat.size);\n * });\n * }\n *\n * // Using callbacks\n * async.mapValues(fileMap, getFileSizeInBytes, function(err, result) {\n * if (err) {\n * console.log(err);\n * } else {\n * console.log(result);\n * // result is now a map of file size in bytes for each file, e.g.\n * // {\n * // f1: 1000,\n * // f2: 2000,\n * // f3: 3000\n * // }\n * }\n * });\n *\n * // Error handling\n * async.mapValues(withMissingFileMap, getFileSizeInBytes, function(err, result) {\n * if (err) {\n * console.log(err);\n * // [ Error: ENOENT: no such file or directory ]\n * } else {\n * console.log(result);\n * }\n * });\n *\n * // Using Promises\n * async.mapValues(fileMap, getFileSizeInBytes)\n * .then( result => {\n * console.log(result);\n * // result is now a map of file size in bytes for each file, e.g.\n * // {\n * // f1: 1000,\n * // f2: 2000,\n * // f3: 3000\n * // }\n * }).catch (err => {\n * console.log(err);\n * });\n *\n * // Error Handling\n * async.mapValues(withMissingFileMap, getFileSizeInBytes)\n * .then( result => {\n * console.log(result);\n * }).catch (err => {\n * console.log(err);\n * // [ Error: ENOENT: no such file or directory ]\n * });\n *\n * // Using async/await\n * async () => {\n * try {\n * let result = await async.mapValues(fileMap, getFileSizeInBytes);\n * console.log(result);\n * // result is now a map of file size in bytes for each file, e.g.\n * // {\n * // f1: 1000,\n * // f2: 2000,\n * // f3: 3000\n * // }\n * }\n * catch (err) {\n * console.log(err);\n * }\n * }\n *\n * // Error Handling\n * async () => {\n * try {\n * let result = await async.mapValues(withMissingFileMap, getFileSizeInBytes);\n * console.log(result);\n * }\n * catch (err) {\n * console.log(err);\n * // [ Error: ENOENT: no such file or directory ]\n * }\n * }\n *\n */\n function mapValues(obj, iteratee, callback) {\n return mapValuesLimit$1(obj, Infinity, iteratee, callback)\n }\n\n /**\n * The same as [`mapValues`]{@link module:Collections.mapValues} but runs only a single async operation at a time.\n *\n * @name mapValuesSeries\n * @static\n * @memberOf module:Collections\n * @method\n * @see [async.mapValues]{@link module:Collections.mapValues}\n * @category Collection\n * @param {Object} obj - A collection to iterate over.\n * @param {AsyncFunction} iteratee - A function to apply to each value and key\n * in `coll`.\n * The iteratee should complete with the transformed value as its result.\n * Invoked with (value, key, callback).\n * @param {Function} [callback] - A callback which is called when all `iteratee`\n * functions have finished, or an error occurs. `result` is a new object consisting\n * of each key from `obj`, with each transformed value on the right-hand side.\n * Invoked with (err, result).\n * @returns {Promise} a promise, if no callback is passed\n */\n function mapValuesSeries(obj, iteratee, callback) {\n return mapValuesLimit$1(obj, 1, iteratee, callback)\n }\n\n /**\n * Caches the results of an async function. When creating a hash to store\n * function results against, the callback is omitted from the hash and an\n * optional hash function can be used.\n *\n * **Note: if the async function errs, the result will not be cached and\n * subsequent calls will call the wrapped function.**\n *\n * If no hash function is specified, the first argument is used as a hash key,\n * which may work reasonably if it is a string or a data type that converts to a\n * distinct string. Note that objects and arrays will not behave reasonably.\n * Neither will cases where the other arguments are significant. In such cases,\n * specify your own hash function.\n *\n * The cache of results is exposed as the `memo` property of the function\n * returned by `memoize`.\n *\n * @name memoize\n * @static\n * @memberOf module:Utils\n * @method\n * @category Util\n * @param {AsyncFunction} fn - The async function to proxy and cache results from.\n * @param {Function} hasher - An optional function for generating a custom hash\n * for storing results. It has all the arguments applied to it apart from the\n * callback, and must be synchronous.\n * @returns {AsyncFunction} a memoized version of `fn`\n * @example\n *\n * var slow_fn = function(name, callback) {\n * // do something\n * callback(null, result);\n * };\n * var fn = async.memoize(slow_fn);\n *\n * // fn can now be used as if it were slow_fn\n * fn('some name', function() {\n * // callback\n * });\n */\n function memoize(fn, hasher = v => v) {\n var memo = Object.create(null);\n var queues = Object.create(null);\n var _fn = wrapAsync(fn);\n var memoized = initialParams((args, callback) => {\n var key = hasher(...args);\n if (key in memo) {\n setImmediate$1(() => callback(null, ...memo[key]));\n } else if (key in queues) {\n queues[key].push(callback);\n } else {\n queues[key] = [callback];\n _fn(...args, (err, ...resultArgs) => {\n // #1465 don't memoize if an error occurred\n if (!err) {\n memo[key] = resultArgs;\n }\n var q = queues[key];\n delete queues[key];\n for (var i = 0, l = q.length; i < l; i++) {\n q[i](err, ...resultArgs);\n }\n });\n }\n });\n memoized.memo = memo;\n memoized.unmemoized = fn;\n return memoized;\n }\n\n /* istanbul ignore file */\n\n /**\n * Calls `callback` on a later loop around the event loop. In Node.js this just\n * calls `process.nextTick`. In the browser it will use `setImmediate` if\n * available, otherwise `setTimeout(callback, 0)`, which means other higher\n * priority events may precede the execution of `callback`.\n *\n * This is used internally for browser-compatibility purposes.\n *\n * @name nextTick\n * @static\n * @memberOf module:Utils\n * @method\n * @see [async.setImmediate]{@link module:Utils.setImmediate}\n * @category Util\n * @param {Function} callback - The function to call on a later loop around\n * the event loop. Invoked with (args...).\n * @param {...*} args... - any number of additional arguments to pass to the\n * callback on the next tick.\n * @example\n *\n * var call_order = [];\n * async.nextTick(function() {\n * call_order.push('two');\n * // call_order now equals ['one','two']\n * });\n * call_order.push('one');\n *\n * async.setImmediate(function (a, b, c) {\n * // a, b, and c equal 1, 2, and 3\n * }, 1, 2, 3);\n */\n var _defer;\n\n if (hasNextTick) {\n _defer = process.nextTick;\n } else if (hasSetImmediate) {\n _defer = setImmediate;\n } else {\n _defer = fallback;\n }\n\n var nextTick = wrap(_defer);\n\n var _parallel = awaitify((eachfn, tasks, callback) => {\n var results = isArrayLike(tasks) ? [] : {};\n\n eachfn(tasks, (task, key, taskCb) => {\n wrapAsync(task)((err, ...result) => {\n if (result.length < 2) {\n [result] = result;\n }\n results[key] = result;\n taskCb(err);\n });\n }, err => callback(err, results));\n }, 3);\n\n /**\n * Run the `tasks` collection of functions in parallel, without waiting until\n * the previous function has completed. If any of the functions pass an error to\n * its callback, the main `callback` is immediately called with the value of the\n * error. Once the `tasks` have completed, the results are passed to the final\n * `callback` as an array.\n *\n * **Note:** `parallel` is about kicking-off I/O tasks in parallel, not about\n * parallel execution of code. If your tasks do not use any timers or perform\n * any I/O, they will actually be executed in series. Any synchronous setup\n * sections for each task will happen one after the other. JavaScript remains\n * single-threaded.\n *\n * **Hint:** Use [`reflect`]{@link module:Utils.reflect} to continue the\n * execution of other tasks when a task fails.\n *\n * It is also possible to use an object instead of an array. Each property will\n * be run as a function and the results will be passed to the final `callback`\n * as an object instead of an array. This can be a more readable way of handling\n * results from {@link async.parallel}.\n *\n * @name parallel\n * @static\n * @memberOf module:ControlFlow\n * @method\n * @category Control Flow\n * @param {Array|Iterable|AsyncIterable|Object} tasks - A collection of\n * [async functions]{@link AsyncFunction} to run.\n * Each async function can complete with any number of optional `result` values.\n * @param {Function} [callback] - An optional callback to run once all the\n * functions have completed successfully. This function gets a results array\n * (or object) containing all the result arguments passed to the task callbacks.\n * Invoked with (err, results).\n * @returns {Promise} a promise, if a callback is not passed\n *\n * @example\n *\n * //Using Callbacks\n * async.parallel([\n * function(callback) {\n * setTimeout(function() {\n * callback(null, 'one');\n * }, 200);\n * },\n * function(callback) {\n * setTimeout(function() {\n * callback(null, 'two');\n * }, 100);\n * }\n * ], function(err, results) {\n * console.log(results);\n * // results is equal to ['one','two'] even though\n * // the second function had a shorter timeout.\n * });\n *\n * // an example using an object instead of an array\n * async.parallel({\n * one: function(callback) {\n * setTimeout(function() {\n * callback(null, 1);\n * }, 200);\n * },\n * two: function(callback) {\n * setTimeout(function() {\n * callback(null, 2);\n * }, 100);\n * }\n * }, function(err, results) {\n * console.log(results);\n * // results is equal to: { one: 1, two: 2 }\n * });\n *\n * //Using Promises\n * async.parallel([\n * function(callback) {\n * setTimeout(function() {\n * callback(null, 'one');\n * }, 200);\n * },\n * function(callback) {\n * setTimeout(function() {\n * callback(null, 'two');\n * }, 100);\n * }\n * ]).then(results => {\n * console.log(results);\n * // results is equal to ['one','two'] even though\n * // the second function had a shorter timeout.\n * }).catch(err => {\n * console.log(err);\n * });\n *\n * // an example using an object instead of an array\n * async.parallel({\n * one: function(callback) {\n * setTimeout(function() {\n * callback(null, 1);\n * }, 200);\n * },\n * two: function(callback) {\n * setTimeout(function() {\n * callback(null, 2);\n * }, 100);\n * }\n * }).then(results => {\n * console.log(results);\n * // results is equal to: { one: 1, two: 2 }\n * }).catch(err => {\n * console.log(err);\n * });\n *\n * //Using async/await\n * async () => {\n * try {\n * let results = await async.parallel([\n * function(callback) {\n * setTimeout(function() {\n * callback(null, 'one');\n * }, 200);\n * },\n * function(callback) {\n * setTimeout(function() {\n * callback(null, 'two');\n * }, 100);\n * }\n * ]);\n * console.log(results);\n * // results is equal to ['one','two'] even though\n * // the second function had a shorter timeout.\n * }\n * catch (err) {\n * console.log(err);\n * }\n * }\n *\n * // an example using an object instead of an array\n * async () => {\n * try {\n * let results = await async.parallel({\n * one: function(callback) {\n * setTimeout(function() {\n * callback(null, 1);\n * }, 200);\n * },\n * two: function(callback) {\n * setTimeout(function() {\n * callback(null, 2);\n * }, 100);\n * }\n * });\n * console.log(results);\n * // results is equal to: { one: 1, two: 2 }\n * }\n * catch (err) {\n * console.log(err);\n * }\n * }\n *\n */\n function parallel(tasks, callback) {\n return _parallel(eachOf$1, tasks, callback);\n }\n\n /**\n * The same as [`parallel`]{@link module:ControlFlow.parallel} but runs a maximum of `limit` async operations at a\n * time.\n *\n * @name parallelLimit\n * @static\n * @memberOf module:ControlFlow\n * @method\n * @see [async.parallel]{@link module:ControlFlow.parallel}\n * @category Control Flow\n * @param {Array|Iterable|AsyncIterable|Object} tasks - A collection of\n * [async functions]{@link AsyncFunction} to run.\n * Each async function can complete with any number of optional `result` values.\n * @param {number} limit - The maximum number of async operations at a time.\n * @param {Function} [callback] - An optional callback to run once all the\n * functions have completed successfully. This function gets a results array\n * (or object) containing all the result arguments passed to the task callbacks.\n * Invoked with (err, results).\n * @returns {Promise} a promise, if a callback is not passed\n */\n function parallelLimit(tasks, limit, callback) {\n return _parallel(eachOfLimit$2(limit), tasks, callback);\n }\n\n /**\n * A queue of tasks for the worker function to complete.\n * @typedef {Iterable} QueueObject\n * @memberOf module:ControlFlow\n * @property {Function} length - a function returning the number of items\n * waiting to be processed. Invoke with `queue.length()`.\n * @property {boolean} started - a boolean indicating whether or not any\n * items have been pushed and processed by the queue.\n * @property {Function} running - a function returning the number of items\n * currently being processed. Invoke with `queue.running()`.\n * @property {Function} workersList - a function returning the array of items\n * currently being processed. Invoke with `queue.workersList()`.\n * @property {Function} idle - a function returning false if there are items\n * waiting or being processed, or true if not. Invoke with `queue.idle()`.\n * @property {number} concurrency - an integer for determining how many `worker`\n * functions should be run in parallel. This property can be changed after a\n * `queue` is created to alter the concurrency on-the-fly.\n * @property {number} payload - an integer that specifies how many items are\n * passed to the worker function at a time. only applies if this is a\n * [cargo]{@link module:ControlFlow.cargo} object\n * @property {AsyncFunction} push - add a new task to the `queue`. Calls `callback`\n * once the `worker` has finished processing the task. Instead of a single task,\n * a `tasks` array can be submitted. The respective callback is used for every\n * task in the list. Invoke with `queue.push(task, [callback])`,\n * @property {AsyncFunction} unshift - add a new task to the front of the `queue`.\n * Invoke with `queue.unshift(task, [callback])`.\n * @property {AsyncFunction} pushAsync - the same as `q.push`, except this returns\n * a promise that rejects if an error occurs.\n * @property {AsyncFunction} unshiftAsync - the same as `q.unshift`, except this returns\n * a promise that rejects if an error occurs.\n * @property {Function} remove - remove items from the queue that match a test\n * function. The test function will be passed an object with a `data` property,\n * and a `priority` property, if this is a\n * [priorityQueue]{@link module:ControlFlow.priorityQueue} object.\n * Invoked with `queue.remove(testFn)`, where `testFn` is of the form\n * `function ({data, priority}) {}` and returns a Boolean.\n * @property {Function} saturated - a function that sets a callback that is\n * called when the number of running workers hits the `concurrency` limit, and\n * further tasks will be queued. If the callback is omitted, `q.saturated()`\n * returns a promise for the next occurrence.\n * @property {Function} unsaturated - a function that sets a callback that is\n * called when the number of running workers is less than the `concurrency` &\n * `buffer` limits, and further tasks will not be queued. If the callback is\n * omitted, `q.unsaturated()` returns a promise for the next occurrence.\n * @property {number} buffer - A minimum threshold buffer in order to say that\n * the `queue` is `unsaturated`.\n * @property {Function} empty - a function that sets a callback that is called\n * when the last item from the `queue` is given to a `worker`. If the callback\n * is omitted, `q.empty()` returns a promise for the next occurrence.\n * @property {Function} drain - a function that sets a callback that is called\n * when the last item from the `queue` has returned from the `worker`. If the\n * callback is omitted, `q.drain()` returns a promise for the next occurrence.\n * @property {Function} error - a function that sets a callback that is called\n * when a task errors. Has the signature `function(error, task)`. If the\n * callback is omitted, `error()` returns a promise that rejects on the next\n * error.\n * @property {boolean} paused - a boolean for determining whether the queue is\n * in a paused state.\n * @property {Function} pause - a function that pauses the processing of tasks\n * until `resume()` is called. Invoke with `queue.pause()`.\n * @property {Function} resume - a function that resumes the processing of\n * queued tasks when the queue is paused. Invoke with `queue.resume()`.\n * @property {Function} kill - a function that removes the `drain` callback and\n * empties remaining tasks from the queue forcing it to go idle. No more tasks\n * should be pushed to the queue after calling this function. Invoke with `queue.kill()`.\n *\n * @example\n * const q = async.queue(worker, 2)\n * q.push(item1)\n * q.push(item2)\n * q.push(item3)\n * // queues are iterable, spread into an array to inspect\n * const items = [...q] // [item1, item2, item3]\n * // or use for of\n * for (let item of q) {\n * console.log(item)\n * }\n *\n * q.drain(() => {\n * console.log('all done')\n * })\n * // or\n * await q.drain()\n */\n\n /**\n * Creates a `queue` object with the specified `concurrency`. Tasks added to the\n * `queue` are processed in parallel (up to the `concurrency` limit). If all\n * `worker`s are in progress, the task is queued until one becomes available.\n * Once a `worker` completes a `task`, that `task`'s callback is called.\n *\n * @name queue\n * @static\n * @memberOf module:ControlFlow\n * @method\n * @category Control Flow\n * @param {AsyncFunction} worker - An async function for processing a queued task.\n * If you want to handle errors from an individual task, pass a callback to\n * `q.push()`. Invoked with (task, callback).\n * @param {number} [concurrency=1] - An `integer` for determining how many\n * `worker` functions should be run in parallel. If omitted, the concurrency\n * defaults to `1`. If the concurrency is `0`, an error is thrown.\n * @returns {module:ControlFlow.QueueObject} A queue object to manage the tasks. Callbacks can be\n * attached as certain properties to listen for specific events during the\n * lifecycle of the queue.\n * @example\n *\n * // create a queue object with concurrency 2\n * var q = async.queue(function(task, callback) {\n * console.log('hello ' + task.name);\n * callback();\n * }, 2);\n *\n * // assign a callback\n * q.drain(function() {\n * console.log('all items have been processed');\n * });\n * // or await the end\n * await q.drain()\n *\n * // assign an error callback\n * q.error(function(err, task) {\n * console.error('task experienced an error');\n * });\n *\n * // add some items to the queue\n * q.push({name: 'foo'}, function(err) {\n * console.log('finished processing foo');\n * });\n * // callback is optional\n * q.push({name: 'bar'});\n *\n * // add some items to the queue (batch-wise)\n * q.push([{name: 'baz'},{name: 'bay'},{name: 'bax'}], function(err) {\n * console.log('finished processing item');\n * });\n *\n * // add some items to the front of the queue\n * q.unshift({name: 'bar'}, function (err) {\n * console.log('finished processing bar');\n * });\n */\n function queue (worker, concurrency) {\n var _worker = wrapAsync(worker);\n return queue$1((items, cb) => {\n _worker(items[0], cb);\n }, concurrency, 1);\n }\n\n // Binary min-heap implementation used for priority queue.\n // Implementation is stable, i.e. push time is considered for equal priorities\n class Heap {\n constructor() {\n this.heap = [];\n this.pushCount = Number.MIN_SAFE_INTEGER;\n }\n\n get length() {\n return this.heap.length;\n }\n\n empty () {\n this.heap = [];\n return this;\n }\n\n percUp(index) {\n let p;\n\n while (index > 0 && smaller(this.heap[index], this.heap[p=parent(index)])) {\n let t = this.heap[index];\n this.heap[index] = this.heap[p];\n this.heap[p] = t;\n\n index = p;\n }\n }\n\n percDown(index) {\n let l;\n\n while ((l=leftChi(index)) < this.heap.length) {\n if (l+1 < this.heap.length && smaller(this.heap[l+1], this.heap[l])) {\n l = l+1;\n }\n\n if (smaller(this.heap[index], this.heap[l])) {\n break;\n }\n\n let t = this.heap[index];\n this.heap[index] = this.heap[l];\n this.heap[l] = t;\n\n index = l;\n }\n }\n\n push(node) {\n node.pushCount = ++this.pushCount;\n this.heap.push(node);\n this.percUp(this.heap.length-1);\n }\n\n unshift(node) {\n return this.heap.push(node);\n }\n\n shift() {\n let [top] = this.heap;\n\n this.heap[0] = this.heap[this.heap.length-1];\n this.heap.pop();\n this.percDown(0);\n\n return top;\n }\n\n toArray() {\n return [...this];\n }\n\n *[Symbol.iterator] () {\n for (let i = 0; i < this.heap.length; i++) {\n yield this.heap[i].data;\n }\n }\n\n remove (testFn) {\n let j = 0;\n for (let i = 0; i < this.heap.length; i++) {\n if (!testFn(this.heap[i])) {\n this.heap[j] = this.heap[i];\n j++;\n }\n }\n\n this.heap.splice(j);\n\n for (let i = parent(this.heap.length-1); i >= 0; i--) {\n this.percDown(i);\n }\n\n return this;\n }\n }\n\n function leftChi(i) {\n return (i<<1)+1;\n }\n\n function parent(i) {\n return ((i+1)>>1)-1;\n }\n\n function smaller(x, y) {\n if (x.priority !== y.priority) {\n return x.priority < y.priority;\n }\n else {\n return x.pushCount < y.pushCount;\n }\n }\n\n /**\n * The same as [async.queue]{@link module:ControlFlow.queue} only tasks are assigned a priority and\n * completed in ascending priority order.\n *\n * @name priorityQueue\n * @static\n * @memberOf module:ControlFlow\n * @method\n * @see [async.queue]{@link module:ControlFlow.queue}\n * @category Control Flow\n * @param {AsyncFunction} worker - An async function for processing a queued task.\n * If you want to handle errors from an individual task, pass a callback to\n * `q.push()`.\n * Invoked with (task, callback).\n * @param {number} concurrency - An `integer` for determining how many `worker`\n * functions should be run in parallel. If omitted, the concurrency defaults to\n * `1`. If the concurrency is `0`, an error is thrown.\n * @returns {module:ControlFlow.QueueObject} A priorityQueue object to manage the tasks. There are three\n * differences between `queue` and `priorityQueue` objects:\n * * `push(task, priority, [callback])` - `priority` should be a number. If an\n * array of `tasks` is given, all tasks will be assigned the same priority.\n * * `pushAsync(task, priority, [callback])` - the same as `priorityQueue.push`,\n * except this returns a promise that rejects if an error occurs.\n * * The `unshift` and `unshiftAsync` methods were removed.\n */\n function priorityQueue(worker, concurrency) {\n // Start with a normal queue\n var q = queue(worker, concurrency);\n\n var {\n push,\n pushAsync\n } = q;\n\n q._tasks = new Heap();\n q._createTaskItem = ({data, priority}, callback) => {\n return {\n data,\n priority,\n callback\n };\n };\n\n function createDataItems(tasks, priority) {\n if (!Array.isArray(tasks)) {\n return {data: tasks, priority};\n }\n return tasks.map(data => { return {data, priority}; });\n }\n\n // Override push to accept second parameter representing priority\n q.push = function(data, priority = 0, callback) {\n return push(createDataItems(data, priority), callback);\n };\n\n q.pushAsync = function(data, priority = 0, callback) {\n return pushAsync(createDataItems(data, priority), callback);\n };\n\n // Remove unshift functions\n delete q.unshift;\n delete q.unshiftAsync;\n\n return q;\n }\n\n /**\n * Runs the `tasks` array of functions in parallel, without waiting until the\n * previous function has completed. Once any of the `tasks` complete or pass an\n * error to its callback, the main `callback` is immediately called. It's\n * equivalent to `Promise.race()`.\n *\n * @name race\n * @static\n * @memberOf module:ControlFlow\n * @method\n * @category Control Flow\n * @param {Array} tasks - An array containing [async functions]{@link AsyncFunction}\n * to run. Each function can complete with an optional `result` value.\n * @param {Function} callback - A callback to run once any of the functions have\n * completed. This function gets an error or result from the first function that\n * completed. Invoked with (err, result).\n * @returns {Promise} a promise, if a callback is omitted\n * @example\n *\n * async.race([\n * function(callback) {\n * setTimeout(function() {\n * callback(null, 'one');\n * }, 200);\n * },\n * function(callback) {\n * setTimeout(function() {\n * callback(null, 'two');\n * }, 100);\n * }\n * ],\n * // main callback\n * function(err, result) {\n * // the result will be equal to 'two' as it finishes earlier\n * });\n */\n function race(tasks, callback) {\n callback = once(callback);\n if (!Array.isArray(tasks)) return callback(new TypeError('First argument to race must be an array of functions'));\n if (!tasks.length) return callback();\n for (var i = 0, l = tasks.length; i < l; i++) {\n wrapAsync(tasks[i])(callback);\n }\n }\n\n var race$1 = awaitify(race, 2);\n\n /**\n * Same as [`reduce`]{@link module:Collections.reduce}, only operates on `array` in reverse order.\n *\n * @name reduceRight\n * @static\n * @memberOf module:Collections\n * @method\n * @see [async.reduce]{@link module:Collections.reduce}\n * @alias foldr\n * @category Collection\n * @param {Array} array - A collection to iterate over.\n * @param {*} memo - The initial state of the reduction.\n * @param {AsyncFunction} iteratee - A function applied to each item in the\n * array to produce the next step in the reduction.\n * The `iteratee` should complete with the next state of the reduction.\n * If the iteratee completes with an error, the reduction is stopped and the\n * main `callback` is immediately called with the error.\n * Invoked with (memo, item, callback).\n * @param {Function} [callback] - A callback which is called after all the\n * `iteratee` functions have finished. Result is the reduced value. Invoked with\n * (err, result).\n * @returns {Promise} a promise, if no callback is passed\n */\n function reduceRight (array, memo, iteratee, callback) {\n var reversed = [...array].reverse();\n return reduce$1(reversed, memo, iteratee, callback);\n }\n\n /**\n * Wraps the async function in another function that always completes with a\n * result object, even when it errors.\n *\n * The result object has either the property `error` or `value`.\n *\n * @name reflect\n * @static\n * @memberOf module:Utils\n * @method\n * @category Util\n * @param {AsyncFunction} fn - The async function you want to wrap\n * @returns {Function} - A function that always passes null to it's callback as\n * the error. The second argument to the callback will be an `object` with\n * either an `error` or a `value` property.\n * @example\n *\n * async.parallel([\n * async.reflect(function(callback) {\n * // do some stuff ...\n * callback(null, 'one');\n * }),\n * async.reflect(function(callback) {\n * // do some more stuff but error ...\n * callback('bad stuff happened');\n * }),\n * async.reflect(function(callback) {\n * // do some more stuff ...\n * callback(null, 'two');\n * })\n * ],\n * // optional callback\n * function(err, results) {\n * // values\n * // results[0].value = 'one'\n * // results[1].error = 'bad stuff happened'\n * // results[2].value = 'two'\n * });\n */\n function reflect(fn) {\n var _fn = wrapAsync(fn);\n return initialParams(function reflectOn(args, reflectCallback) {\n args.push((error, ...cbArgs) => {\n let retVal = {};\n if (error) {\n retVal.error = error;\n }\n if (cbArgs.length > 0){\n var value = cbArgs;\n if (cbArgs.length <= 1) {\n [value] = cbArgs;\n }\n retVal.value = value;\n }\n reflectCallback(null, retVal);\n });\n\n return _fn.apply(this, args);\n });\n }\n\n /**\n * A helper function that wraps an array or an object of functions with `reflect`.\n *\n * @name reflectAll\n * @static\n * @memberOf module:Utils\n * @method\n * @see [async.reflect]{@link module:Utils.reflect}\n * @category Util\n * @param {Array|Object|Iterable} tasks - The collection of\n * [async functions]{@link AsyncFunction} to wrap in `async.reflect`.\n * @returns {Array} Returns an array of async functions, each wrapped in\n * `async.reflect`\n * @example\n *\n * let tasks = [\n * function(callback) {\n * setTimeout(function() {\n * callback(null, 'one');\n * }, 200);\n * },\n * function(callback) {\n * // do some more stuff but error ...\n * callback(new Error('bad stuff happened'));\n * },\n * function(callback) {\n * setTimeout(function() {\n * callback(null, 'two');\n * }, 100);\n * }\n * ];\n *\n * async.parallel(async.reflectAll(tasks),\n * // optional callback\n * function(err, results) {\n * // values\n * // results[0].value = 'one'\n * // results[1].error = Error('bad stuff happened')\n * // results[2].value = 'two'\n * });\n *\n * // an example using an object instead of an array\n * let tasks = {\n * one: function(callback) {\n * setTimeout(function() {\n * callback(null, 'one');\n * }, 200);\n * },\n * two: function(callback) {\n * callback('two');\n * },\n * three: function(callback) {\n * setTimeout(function() {\n * callback(null, 'three');\n * }, 100);\n * }\n * };\n *\n * async.parallel(async.reflectAll(tasks),\n * // optional callback\n * function(err, results) {\n * // values\n * // results.one.value = 'one'\n * // results.two.error = 'two'\n * // results.three.value = 'three'\n * });\n */\n function reflectAll(tasks) {\n var results;\n if (Array.isArray(tasks)) {\n results = tasks.map(reflect);\n } else {\n results = {};\n Object.keys(tasks).forEach(key => {\n results[key] = reflect.call(this, tasks[key]);\n });\n }\n return results;\n }\n\n function reject$2(eachfn, arr, _iteratee, callback) {\n const iteratee = wrapAsync(_iteratee);\n return _filter(eachfn, arr, (value, cb) => {\n iteratee(value, (err, v) => {\n cb(err, !v);\n });\n }, callback);\n }\n\n /**\n * The opposite of [`filter`]{@link module:Collections.filter}. Removes values that pass an `async` truth test.\n *\n * @name reject\n * @static\n * @memberOf module:Collections\n * @method\n * @see [async.filter]{@link module:Collections.filter}\n * @category Collection\n * @param {Array|Iterable|AsyncIterable|Object} coll - A collection to iterate over.\n * @param {Function} iteratee - An async truth test to apply to each item in\n * `coll`.\n * The should complete with a boolean value as its `result`.\n * Invoked with (item, callback).\n * @param {Function} [callback] - A callback which is called after all the\n * `iteratee` functions have finished. Invoked with (err, results).\n * @returns {Promise} a promise, if no callback is passed\n * @example\n *\n * // dir1 is a directory that contains file1.txt, file2.txt\n * // dir2 is a directory that contains file3.txt, file4.txt\n * // dir3 is a directory that contains file5.txt\n *\n * const fileList = ['dir1/file1.txt','dir2/file3.txt','dir3/file6.txt'];\n *\n * // asynchronous function that checks if a file exists\n * function fileExists(file, callback) {\n * fs.access(file, fs.constants.F_OK, (err) => {\n * callback(null, !err);\n * });\n * }\n *\n * // Using callbacks\n * async.reject(fileList, fileExists, function(err, results) {\n * // [ 'dir3/file6.txt' ]\n * // results now equals an array of the non-existing files\n * });\n *\n * // Using Promises\n * async.reject(fileList, fileExists)\n * .then( results => {\n * console.log(results);\n * // [ 'dir3/file6.txt' ]\n * // results now equals an array of the non-existing files\n * }).catch( err => {\n * console.log(err);\n * });\n *\n * // Using async/await\n * async () => {\n * try {\n * let results = await async.reject(fileList, fileExists);\n * console.log(results);\n * // [ 'dir3/file6.txt' ]\n * // results now equals an array of the non-existing files\n * }\n * catch (err) {\n * console.log(err);\n * }\n * }\n *\n */\n function reject (coll, iteratee, callback) {\n return reject$2(eachOf$1, coll, iteratee, callback)\n }\n var reject$1 = awaitify(reject, 3);\n\n /**\n * The same as [`reject`]{@link module:Collections.reject} but runs a maximum of `limit` async operations at a\n * time.\n *\n * @name rejectLimit\n * @static\n * @memberOf module:Collections\n * @method\n * @see [async.reject]{@link module:Collections.reject}\n * @category Collection\n * @param {Array|Iterable|AsyncIterable|Object} coll - A collection to iterate over.\n * @param {number} limit - The maximum number of async operations at a time.\n * @param {Function} iteratee - An async truth test to apply to each item in\n * `coll`.\n * The should complete with a boolean value as its `result`.\n * Invoked with (item, callback).\n * @param {Function} [callback] - A callback which is called after all the\n * `iteratee` functions have finished. Invoked with (err, results).\n * @returns {Promise} a promise, if no callback is passed\n */\n function rejectLimit (coll, limit, iteratee, callback) {\n return reject$2(eachOfLimit$2(limit), coll, iteratee, callback)\n }\n var rejectLimit$1 = awaitify(rejectLimit, 4);\n\n /**\n * The same as [`reject`]{@link module:Collections.reject} but runs only a single async operation at a time.\n *\n * @name rejectSeries\n * @static\n * @memberOf module:Collections\n * @method\n * @see [async.reject]{@link module:Collections.reject}\n * @category Collection\n * @param {Array|Iterable|AsyncIterable|Object} coll - A collection to iterate over.\n * @param {Function} iteratee - An async truth test to apply to each item in\n * `coll`.\n * The should complete with a boolean value as its `result`.\n * Invoked with (item, callback).\n * @param {Function} [callback] - A callback which is called after all the\n * `iteratee` functions have finished. Invoked with (err, results).\n * @returns {Promise} a promise, if no callback is passed\n */\n function rejectSeries (coll, iteratee, callback) {\n return reject$2(eachOfSeries$1, coll, iteratee, callback)\n }\n var rejectSeries$1 = awaitify(rejectSeries, 3);\n\n function constant(value) {\n return function () {\n return value;\n }\n }\n\n /**\n * Attempts to get a successful response from `task` no more than `times` times\n * before returning an error. If the task is successful, the `callback` will be\n * passed the result of the successful task. If all attempts fail, the callback\n * will be passed the error and result (if any) of the final attempt.\n *\n * @name retry\n * @static\n * @memberOf module:ControlFlow\n * @method\n * @category Control Flow\n * @see [async.retryable]{@link module:ControlFlow.retryable}\n * @param {Object|number} [opts = {times: 5, interval: 0}| 5] - Can be either an\n * object with `times` and `interval` or a number.\n * * `times` - The number of attempts to make before giving up. The default\n * is `5`.\n * * `interval` - The time to wait between retries, in milliseconds. The\n * default is `0`. The interval may also be specified as a function of the\n * retry count (see example).\n * * `errorFilter` - An optional synchronous function that is invoked on\n * erroneous result. If it returns `true` the retry attempts will continue;\n * if the function returns `false` the retry flow is aborted with the current\n * attempt's error and result being returned to the final callback.\n * Invoked with (err).\n * * If `opts` is a number, the number specifies the number of times to retry,\n * with the default interval of `0`.\n * @param {AsyncFunction} task - An async function to retry.\n * Invoked with (callback).\n * @param {Function} [callback] - An optional callback which is called when the\n * task has succeeded, or after the final failed attempt. It receives the `err`\n * and `result` arguments of the last attempt at completing the `task`. Invoked\n * with (err, results).\n * @returns {Promise} a promise if no callback provided\n *\n * @example\n *\n * // The `retry` function can be used as a stand-alone control flow by passing\n * // a callback, as shown below:\n *\n * // try calling apiMethod 3 times\n * async.retry(3, apiMethod, function(err, result) {\n * // do something with the result\n * });\n *\n * // try calling apiMethod 3 times, waiting 200 ms between each retry\n * async.retry({times: 3, interval: 200}, apiMethod, function(err, result) {\n * // do something with the result\n * });\n *\n * // try calling apiMethod 10 times with exponential backoff\n * // (i.e. intervals of 100, 200, 400, 800, 1600, ... milliseconds)\n * async.retry({\n * times: 10,\n * interval: function(retryCount) {\n * return 50 * Math.pow(2, retryCount);\n * }\n * }, apiMethod, function(err, result) {\n * // do something with the result\n * });\n *\n * // try calling apiMethod the default 5 times no delay between each retry\n * async.retry(apiMethod, function(err, result) {\n * // do something with the result\n * });\n *\n * // try calling apiMethod only when error condition satisfies, all other\n * // errors will abort the retry control flow and return to final callback\n * async.retry({\n * errorFilter: function(err) {\n * return err.message === 'Temporary error'; // only retry on a specific error\n * }\n * }, apiMethod, function(err, result) {\n * // do something with the result\n * });\n *\n * // to retry individual methods that are not as reliable within other\n * // control flow functions, use the `retryable` wrapper:\n * async.auto({\n * users: api.getUsers.bind(api),\n * payments: async.retryable(3, api.getPayments.bind(api))\n * }, function(err, results) {\n * // do something with the results\n * });\n *\n */\n const DEFAULT_TIMES = 5;\n const DEFAULT_INTERVAL = 0;\n\n function retry(opts, task, callback) {\n var options = {\n times: DEFAULT_TIMES,\n intervalFunc: constant(DEFAULT_INTERVAL)\n };\n\n if (arguments.length < 3 && typeof opts === 'function') {\n callback = task || promiseCallback();\n task = opts;\n } else {\n parseTimes(options, opts);\n callback = callback || promiseCallback();\n }\n\n if (typeof task !== 'function') {\n throw new Error(\"Invalid arguments for async.retry\");\n }\n\n var _task = wrapAsync(task);\n\n var attempt = 1;\n function retryAttempt() {\n _task((err, ...args) => {\n if (err === false) return\n if (err && attempt++ < options.times &&\n (typeof options.errorFilter != 'function' ||\n options.errorFilter(err))) {\n setTimeout(retryAttempt, options.intervalFunc(attempt - 1));\n } else {\n callback(err, ...args);\n }\n });\n }\n\n retryAttempt();\n return callback[PROMISE_SYMBOL]\n }\n\n function parseTimes(acc, t) {\n if (typeof t === 'object') {\n acc.times = +t.times || DEFAULT_TIMES;\n\n acc.intervalFunc = typeof t.interval === 'function' ?\n t.interval :\n constant(+t.interval || DEFAULT_INTERVAL);\n\n acc.errorFilter = t.errorFilter;\n } else if (typeof t === 'number' || typeof t === 'string') {\n acc.times = +t || DEFAULT_TIMES;\n } else {\n throw new Error(\"Invalid arguments for async.retry\");\n }\n }\n\n /**\n * A close relative of [`retry`]{@link module:ControlFlow.retry}. This method\n * wraps a task and makes it retryable, rather than immediately calling it\n * with retries.\n *\n * @name retryable\n * @static\n * @memberOf module:ControlFlow\n * @method\n * @see [async.retry]{@link module:ControlFlow.retry}\n * @category Control Flow\n * @param {Object|number} [opts = {times: 5, interval: 0}| 5] - optional\n * options, exactly the same as from `retry`, except for a `opts.arity` that\n * is the arity of the `task` function, defaulting to `task.length`\n * @param {AsyncFunction} task - the asynchronous function to wrap.\n * This function will be passed any arguments passed to the returned wrapper.\n * Invoked with (...args, callback).\n * @returns {AsyncFunction} The wrapped function, which when invoked, will\n * retry on an error, based on the parameters specified in `opts`.\n * This function will accept the same parameters as `task`.\n * @example\n *\n * async.auto({\n * dep1: async.retryable(3, getFromFlakyService),\n * process: [\"dep1\", async.retryable(3, function (results, cb) {\n * maybeProcessData(results.dep1, cb);\n * })]\n * }, callback);\n */\n function retryable (opts, task) {\n if (!task) {\n task = opts;\n opts = null;\n }\n let arity = (opts && opts.arity) || task.length;\n if (isAsync(task)) {\n arity += 1;\n }\n var _task = wrapAsync(task);\n return initialParams((args, callback) => {\n if (args.length < arity - 1 || callback == null) {\n args.push(callback);\n callback = promiseCallback();\n }\n function taskFn(cb) {\n _task(...args, cb);\n }\n\n if (opts) retry(opts, taskFn, callback);\n else retry(taskFn, callback);\n\n return callback[PROMISE_SYMBOL]\n });\n }\n\n /**\n * Run the functions in the `tasks` collection in series, each one running once\n * the previous function has completed. If any functions in the series pass an\n * error to its callback, no more functions are run, and `callback` is\n * immediately called with the value of the error. Otherwise, `callback`\n * receives an array of results when `tasks` have completed.\n *\n * It is also possible to use an object instead of an array. Each property will\n * be run as a function, and the results will be passed to the final `callback`\n * as an object instead of an array. This can be a more readable way of handling\n * results from {@link async.series}.\n *\n * **Note** that while many implementations preserve the order of object\n * properties, the [ECMAScript Language Specification](http://www.ecma-international.org/ecma-262/5.1/#sec-8.6)\n * explicitly states that\n *\n * > The mechanics and order of enumerating the properties is not specified.\n *\n * So if you rely on the order in which your series of functions are executed,\n * and want this to work on all platforms, consider using an array.\n *\n * @name series\n * @static\n * @memberOf module:ControlFlow\n * @method\n * @category Control Flow\n * @param {Array|Iterable|AsyncIterable|Object} tasks - A collection containing\n * [async functions]{@link AsyncFunction} to run in series.\n * Each function can complete with any number of optional `result` values.\n * @param {Function} [callback] - An optional callback to run once all the\n * functions have completed. This function gets a results array (or object)\n * containing all the result arguments passed to the `task` callbacks. Invoked\n * with (err, result).\n * @return {Promise} a promise, if no callback is passed\n * @example\n *\n * //Using Callbacks\n * async.series([\n * function(callback) {\n * setTimeout(function() {\n * // do some async task\n * callback(null, 'one');\n * }, 200);\n * },\n * function(callback) {\n * setTimeout(function() {\n * // then do another async task\n * callback(null, 'two');\n * }, 100);\n * }\n * ], function(err, results) {\n * console.log(results);\n * // results is equal to ['one','two']\n * });\n *\n * // an example using objects instead of arrays\n * async.series({\n * one: function(callback) {\n * setTimeout(function() {\n * // do some async task\n * callback(null, 1);\n * }, 200);\n * },\n * two: function(callback) {\n * setTimeout(function() {\n * // then do another async task\n * callback(null, 2);\n * }, 100);\n * }\n * }, function(err, results) {\n * console.log(results);\n * // results is equal to: { one: 1, two: 2 }\n * });\n *\n * //Using Promises\n * async.series([\n * function(callback) {\n * setTimeout(function() {\n * callback(null, 'one');\n * }, 200);\n * },\n * function(callback) {\n * setTimeout(function() {\n * callback(null, 'two');\n * }, 100);\n * }\n * ]).then(results => {\n * console.log(results);\n * // results is equal to ['one','two']\n * }).catch(err => {\n * console.log(err);\n * });\n *\n * // an example using an object instead of an array\n * async.series({\n * one: function(callback) {\n * setTimeout(function() {\n * // do some async task\n * callback(null, 1);\n * }, 200);\n * },\n * two: function(callback) {\n * setTimeout(function() {\n * // then do another async task\n * callback(null, 2);\n * }, 100);\n * }\n * }).then(results => {\n * console.log(results);\n * // results is equal to: { one: 1, two: 2 }\n * }).catch(err => {\n * console.log(err);\n * });\n *\n * //Using async/await\n * async () => {\n * try {\n * let results = await async.series([\n * function(callback) {\n * setTimeout(function() {\n * // do some async task\n * callback(null, 'one');\n * }, 200);\n * },\n * function(callback) {\n * setTimeout(function() {\n * // then do another async task\n * callback(null, 'two');\n * }, 100);\n * }\n * ]);\n * console.log(results);\n * // results is equal to ['one','two']\n * }\n * catch (err) {\n * console.log(err);\n * }\n * }\n *\n * // an example using an object instead of an array\n * async () => {\n * try {\n * let results = await async.parallel({\n * one: function(callback) {\n * setTimeout(function() {\n * // do some async task\n * callback(null, 1);\n * }, 200);\n * },\n * two: function(callback) {\n * setTimeout(function() {\n * // then do another async task\n * callback(null, 2);\n * }, 100);\n * }\n * });\n * console.log(results);\n * // results is equal to: { one: 1, two: 2 }\n * }\n * catch (err) {\n * console.log(err);\n * }\n * }\n *\n */\n function series(tasks, callback) {\n return _parallel(eachOfSeries$1, tasks, callback);\n }\n\n /**\n * Returns `true` if at least one element in the `coll` satisfies an async test.\n * If any iteratee call returns `true`, the main `callback` is immediately\n * called.\n *\n * @name some\n * @static\n * @memberOf module:Collections\n * @method\n * @alias any\n * @category Collection\n * @param {Array|Iterable|AsyncIterable|Object} coll - A collection to iterate over.\n * @param {AsyncFunction} iteratee - An async truth test to apply to each item\n * in the collections in parallel.\n * The iteratee should complete with a boolean `result` value.\n * Invoked with (item, callback).\n * @param {Function} [callback] - A callback which is called as soon as any\n * iteratee returns `true`, or after all the iteratee functions have finished.\n * Result will be either `true` or `false` depending on the values of the async\n * tests. Invoked with (err, result).\n * @returns {Promise} a promise, if no callback provided\n * @example\n *\n * // dir1 is a directory that contains file1.txt, file2.txt\n * // dir2 is a directory that contains file3.txt, file4.txt\n * // dir3 is a directory that contains file5.txt\n * // dir4 does not exist\n *\n * // asynchronous function that checks if a file exists\n * function fileExists(file, callback) {\n * fs.access(file, fs.constants.F_OK, (err) => {\n * callback(null, !err);\n * });\n * }\n *\n * // Using callbacks\n * async.some(['dir1/missing.txt','dir2/missing.txt','dir3/file5.txt'], fileExists,\n * function(err, result) {\n * console.log(result);\n * // true\n * // result is true since some file in the list exists\n * }\n *);\n *\n * async.some(['dir1/missing.txt','dir2/missing.txt','dir4/missing.txt'], fileExists,\n * function(err, result) {\n * console.log(result);\n * // false\n * // result is false since none of the files exists\n * }\n *);\n *\n * // Using Promises\n * async.some(['dir1/missing.txt','dir2/missing.txt','dir3/file5.txt'], fileExists)\n * .then( result => {\n * console.log(result);\n * // true\n * // result is true since some file in the list exists\n * }).catch( err => {\n * console.log(err);\n * });\n *\n * async.some(['dir1/missing.txt','dir2/missing.txt','dir4/missing.txt'], fileExists)\n * .then( result => {\n * console.log(result);\n * // false\n * // result is false since none of the files exists\n * }).catch( err => {\n * console.log(err);\n * });\n *\n * // Using async/await\n * async () => {\n * try {\n * let result = await async.some(['dir1/missing.txt','dir2/missing.txt','dir3/file5.txt'], fileExists);\n * console.log(result);\n * // true\n * // result is true since some file in the list exists\n * }\n * catch (err) {\n * console.log(err);\n * }\n * }\n *\n * async () => {\n * try {\n * let result = await async.some(['dir1/missing.txt','dir2/missing.txt','dir4/missing.txt'], fileExists);\n * console.log(result);\n * // false\n * // result is false since none of the files exists\n * }\n * catch (err) {\n * console.log(err);\n * }\n * }\n *\n */\n function some(coll, iteratee, callback) {\n return _createTester(Boolean, res => res)(eachOf$1, coll, iteratee, callback)\n }\n var some$1 = awaitify(some, 3);\n\n /**\n * The same as [`some`]{@link module:Collections.some} but runs a maximum of `limit` async operations at a time.\n *\n * @name someLimit\n * @static\n * @memberOf module:Collections\n * @method\n * @see [async.some]{@link module:Collections.some}\n * @alias anyLimit\n * @category Collection\n * @param {Array|Iterable|AsyncIterable|Object} coll - A collection to iterate over.\n * @param {number} limit - The maximum number of async operations at a time.\n * @param {AsyncFunction} iteratee - An async truth test to apply to each item\n * in the collections in parallel.\n * The iteratee should complete with a boolean `result` value.\n * Invoked with (item, callback).\n * @param {Function} [callback] - A callback which is called as soon as any\n * iteratee returns `true`, or after all the iteratee functions have finished.\n * Result will be either `true` or `false` depending on the values of the async\n * tests. Invoked with (err, result).\n * @returns {Promise} a promise, if no callback provided\n */\n function someLimit(coll, limit, iteratee, callback) {\n return _createTester(Boolean, res => res)(eachOfLimit$2(limit), coll, iteratee, callback)\n }\n var someLimit$1 = awaitify(someLimit, 4);\n\n /**\n * The same as [`some`]{@link module:Collections.some} but runs only a single async operation at a time.\n *\n * @name someSeries\n * @static\n * @memberOf module:Collections\n * @method\n * @see [async.some]{@link module:Collections.some}\n * @alias anySeries\n * @category Collection\n * @param {Array|Iterable|AsyncIterable|Object} coll - A collection to iterate over.\n * @param {AsyncFunction} iteratee - An async truth test to apply to each item\n * in the collections in series.\n * The iteratee should complete with a boolean `result` value.\n * Invoked with (item, callback).\n * @param {Function} [callback] - A callback which is called as soon as any\n * iteratee returns `true`, or after all the iteratee functions have finished.\n * Result will be either `true` or `false` depending on the values of the async\n * tests. Invoked with (err, result).\n * @returns {Promise} a promise, if no callback provided\n */\n function someSeries(coll, iteratee, callback) {\n return _createTester(Boolean, res => res)(eachOfSeries$1, coll, iteratee, callback)\n }\n var someSeries$1 = awaitify(someSeries, 3);\n\n /**\n * Sorts a list by the results of running each `coll` value through an async\n * `iteratee`.\n *\n * @name sortBy\n * @static\n * @memberOf module:Collections\n * @method\n * @category Collection\n * @param {Array|Iterable|AsyncIterable|Object} coll - A collection to iterate over.\n * @param {AsyncFunction} iteratee - An async function to apply to each item in\n * `coll`.\n * The iteratee should complete with a value to use as the sort criteria as\n * its `result`.\n * Invoked with (item, callback).\n * @param {Function} callback - A callback which is called after all the\n * `iteratee` functions have finished, or an error occurs. Results is the items\n * from the original `coll` sorted by the values returned by the `iteratee`\n * calls. Invoked with (err, results).\n * @returns {Promise} a promise, if no callback passed\n * @example\n *\n * // bigfile.txt is a file that is 251100 bytes in size\n * // mediumfile.txt is a file that is 11000 bytes in size\n * // smallfile.txt is a file that is 121 bytes in size\n *\n * // asynchronous function that returns the file size in bytes\n * function getFileSizeInBytes(file, callback) {\n * fs.stat(file, function(err, stat) {\n * if (err) {\n * return callback(err);\n * }\n * callback(null, stat.size);\n * });\n * }\n *\n * // Using callbacks\n * async.sortBy(['mediumfile.txt','smallfile.txt','bigfile.txt'], getFileSizeInBytes,\n * function(err, results) {\n * if (err) {\n * console.log(err);\n * } else {\n * console.log(results);\n * // results is now the original array of files sorted by\n * // file size (ascending by default), e.g.\n * // [ 'smallfile.txt', 'mediumfile.txt', 'bigfile.txt']\n * }\n * }\n * );\n *\n * // By modifying the callback parameter the\n * // sorting order can be influenced:\n *\n * // ascending order\n * async.sortBy(['mediumfile.txt','smallfile.txt','bigfile.txt'], function(file, callback) {\n * getFileSizeInBytes(file, function(getFileSizeErr, fileSize) {\n * if (getFileSizeErr) return callback(getFileSizeErr);\n * callback(null, fileSize);\n * });\n * }, function(err, results) {\n * if (err) {\n * console.log(err);\n * } else {\n * console.log(results);\n * // results is now the original array of files sorted by\n * // file size (ascending by default), e.g.\n * // [ 'smallfile.txt', 'mediumfile.txt', 'bigfile.txt']\n * }\n * }\n * );\n *\n * // descending order\n * async.sortBy(['bigfile.txt','mediumfile.txt','smallfile.txt'], function(file, callback) {\n * getFileSizeInBytes(file, function(getFileSizeErr, fileSize) {\n * if (getFileSizeErr) {\n * return callback(getFileSizeErr);\n * }\n * callback(null, fileSize * -1);\n * });\n * }, function(err, results) {\n * if (err) {\n * console.log(err);\n * } else {\n * console.log(results);\n * // results is now the original array of files sorted by\n * // file size (ascending by default), e.g.\n * // [ 'bigfile.txt', 'mediumfile.txt', 'smallfile.txt']\n * }\n * }\n * );\n *\n * // Error handling\n * async.sortBy(['mediumfile.txt','smallfile.txt','missingfile.txt'], getFileSizeInBytes,\n * function(err, results) {\n * if (err) {\n * console.log(err);\n * // [ Error: ENOENT: no such file or directory ]\n * } else {\n * console.log(results);\n * }\n * }\n * );\n *\n * // Using Promises\n * async.sortBy(['mediumfile.txt','smallfile.txt','bigfile.txt'], getFileSizeInBytes)\n * .then( results => {\n * console.log(results);\n * // results is now the original array of files sorted by\n * // file size (ascending by default), e.g.\n * // [ 'smallfile.txt', 'mediumfile.txt', 'bigfile.txt']\n * }).catch( err => {\n * console.log(err);\n * });\n *\n * // Error handling\n * async.sortBy(['mediumfile.txt','smallfile.txt','missingfile.txt'], getFileSizeInBytes)\n * .then( results => {\n * console.log(results);\n * }).catch( err => {\n * console.log(err);\n * // [ Error: ENOENT: no such file or directory ]\n * });\n *\n * // Using async/await\n * (async () => {\n * try {\n * let results = await async.sortBy(['bigfile.txt','mediumfile.txt','smallfile.txt'], getFileSizeInBytes);\n * console.log(results);\n * // results is now the original array of files sorted by\n * // file size (ascending by default), e.g.\n * // [ 'smallfile.txt', 'mediumfile.txt', 'bigfile.txt']\n * }\n * catch (err) {\n * console.log(err);\n * }\n * })();\n *\n * // Error handling\n * async () => {\n * try {\n * let results = await async.sortBy(['missingfile.txt','mediumfile.txt','smallfile.txt'], getFileSizeInBytes);\n * console.log(results);\n * }\n * catch (err) {\n * console.log(err);\n * // [ Error: ENOENT: no such file or directory ]\n * }\n * }\n *\n */\n function sortBy (coll, iteratee, callback) {\n var _iteratee = wrapAsync(iteratee);\n return map$1(coll, (x, iterCb) => {\n _iteratee(x, (err, criteria) => {\n if (err) return iterCb(err);\n iterCb(err, {value: x, criteria});\n });\n }, (err, results) => {\n if (err) return callback(err);\n callback(null, results.sort(comparator).map(v => v.value));\n });\n\n function comparator(left, right) {\n var a = left.criteria, b = right.criteria;\n return a < b ? -1 : a > b ? 1 : 0;\n }\n }\n var sortBy$1 = awaitify(sortBy, 3);\n\n /**\n * Sets a time limit on an asynchronous function. If the function does not call\n * its callback within the specified milliseconds, it will be called with a\n * timeout error. The code property for the error object will be `'ETIMEDOUT'`.\n *\n * @name timeout\n * @static\n * @memberOf module:Utils\n * @method\n * @category Util\n * @param {AsyncFunction} asyncFn - The async function to limit in time.\n * @param {number} milliseconds - The specified time limit.\n * @param {*} [info] - Any variable you want attached (`string`, `object`, etc)\n * to timeout Error for more information..\n * @returns {AsyncFunction} Returns a wrapped function that can be used with any\n * of the control flow functions.\n * Invoke this function with the same parameters as you would `asyncFunc`.\n * @example\n *\n * function myFunction(foo, callback) {\n * doAsyncTask(foo, function(err, data) {\n * // handle errors\n * if (err) return callback(err);\n *\n * // do some stuff ...\n *\n * // return processed data\n * return callback(null, data);\n * });\n * }\n *\n * var wrapped = async.timeout(myFunction, 1000);\n *\n * // call `wrapped` as you would `myFunction`\n * wrapped({ bar: 'bar' }, function(err, data) {\n * // if `myFunction` takes < 1000 ms to execute, `err`\n * // and `data` will have their expected values\n *\n * // else `err` will be an Error with the code 'ETIMEDOUT'\n * });\n */\n function timeout(asyncFn, milliseconds, info) {\n var fn = wrapAsync(asyncFn);\n\n return initialParams((args, callback) => {\n var timedOut = false;\n var timer;\n\n function timeoutCallback() {\n var name = asyncFn.name || 'anonymous';\n var error = new Error('Callback function \"' + name + '\" timed out.');\n error.code = 'ETIMEDOUT';\n if (info) {\n error.info = info;\n }\n timedOut = true;\n callback(error);\n }\n\n args.push((...cbArgs) => {\n if (!timedOut) {\n callback(...cbArgs);\n clearTimeout(timer);\n }\n });\n\n // setup timer and call original function\n timer = setTimeout(timeoutCallback, milliseconds);\n fn(...args);\n });\n }\n\n function range(size) {\n var result = Array(size);\n while (size--) {\n result[size] = size;\n }\n return result;\n }\n\n /**\n * The same as [times]{@link module:ControlFlow.times} but runs a maximum of `limit` async operations at a\n * time.\n *\n * @name timesLimit\n * @static\n * @memberOf module:ControlFlow\n * @method\n * @see [async.times]{@link module:ControlFlow.times}\n * @category Control Flow\n * @param {number} count - The number of times to run the function.\n * @param {number} limit - The maximum number of async operations at a time.\n * @param {AsyncFunction} iteratee - The async function to call `n` times.\n * Invoked with the iteration index and a callback: (n, next).\n * @param {Function} callback - see [async.map]{@link module:Collections.map}.\n * @returns {Promise} a promise, if no callback is provided\n */\n function timesLimit(count, limit, iteratee, callback) {\n var _iteratee = wrapAsync(iteratee);\n return mapLimit$1(range(count), limit, _iteratee, callback);\n }\n\n /**\n * Calls the `iteratee` function `n` times, and accumulates results in the same\n * manner you would use with [map]{@link module:Collections.map}.\n *\n * @name times\n * @static\n * @memberOf module:ControlFlow\n * @method\n * @see [async.map]{@link module:Collections.map}\n * @category Control Flow\n * @param {number} n - The number of times to run the function.\n * @param {AsyncFunction} iteratee - The async function to call `n` times.\n * Invoked with the iteration index and a callback: (n, next).\n * @param {Function} callback - see {@link module:Collections.map}.\n * @returns {Promise} a promise, if no callback is provided\n * @example\n *\n * // Pretend this is some complicated async factory\n * var createUser = function(id, callback) {\n * callback(null, {\n * id: 'user' + id\n * });\n * };\n *\n * // generate 5 users\n * async.times(5, function(n, next) {\n * createUser(n, function(err, user) {\n * next(err, user);\n * });\n * }, function(err, users) {\n * // we should now have 5 users\n * });\n */\n function times (n, iteratee, callback) {\n return timesLimit(n, Infinity, iteratee, callback)\n }\n\n /**\n * The same as [times]{@link module:ControlFlow.times} but runs only a single async operation at a time.\n *\n * @name timesSeries\n * @static\n * @memberOf module:ControlFlow\n * @method\n * @see [async.times]{@link module:ControlFlow.times}\n * @category Control Flow\n * @param {number} n - The number of times to run the function.\n * @param {AsyncFunction} iteratee - The async function to call `n` times.\n * Invoked with the iteration index and a callback: (n, next).\n * @param {Function} callback - see {@link module:Collections.map}.\n * @returns {Promise} a promise, if no callback is provided\n */\n function timesSeries (n, iteratee, callback) {\n return timesLimit(n, 1, iteratee, callback)\n }\n\n /**\n * A relative of `reduce`. Takes an Object or Array, and iterates over each\n * element in parallel, each step potentially mutating an `accumulator` value.\n * The type of the accumulator defaults to the type of collection passed in.\n *\n * @name transform\n * @static\n * @memberOf module:Collections\n * @method\n * @category Collection\n * @param {Array|Iterable|AsyncIterable|Object} coll - A collection to iterate over.\n * @param {*} [accumulator] - The initial state of the transform. If omitted,\n * it will default to an empty Object or Array, depending on the type of `coll`\n * @param {AsyncFunction} iteratee - A function applied to each item in the\n * collection that potentially modifies the accumulator.\n * Invoked with (accumulator, item, key, callback).\n * @param {Function} [callback] - A callback which is called after all the\n * `iteratee` functions have finished. Result is the transformed accumulator.\n * Invoked with (err, result).\n * @returns {Promise} a promise, if no callback provided\n * @example\n *\n * // file1.txt is a file that is 1000 bytes in size\n * // file2.txt is a file that is 2000 bytes in size\n * // file3.txt is a file that is 3000 bytes in size\n *\n * // helper function that returns human-readable size format from bytes\n * function formatBytes(bytes, decimals = 2) {\n * // implementation not included for brevity\n * return humanReadbleFilesize;\n * }\n *\n * const fileList = ['file1.txt','file2.txt','file3.txt'];\n *\n * // asynchronous function that returns the file size, transformed to human-readable format\n * // e.g. 1024 bytes = 1KB, 1234 bytes = 1.21 KB, 1048576 bytes = 1MB, etc.\n * function transformFileSize(acc, value, key, callback) {\n * fs.stat(value, function(err, stat) {\n * if (err) {\n * return callback(err);\n * }\n * acc[key] = formatBytes(stat.size);\n * callback(null);\n * });\n * }\n *\n * // Using callbacks\n * async.transform(fileList, transformFileSize, function(err, result) {\n * if(err) {\n * console.log(err);\n * } else {\n * console.log(result);\n * // [ '1000 Bytes', '1.95 KB', '2.93 KB' ]\n * }\n * });\n *\n * // Using Promises\n * async.transform(fileList, transformFileSize)\n * .then(result => {\n * console.log(result);\n * // [ '1000 Bytes', '1.95 KB', '2.93 KB' ]\n * }).catch(err => {\n * console.log(err);\n * });\n *\n * // Using async/await\n * (async () => {\n * try {\n * let result = await async.transform(fileList, transformFileSize);\n * console.log(result);\n * // [ '1000 Bytes', '1.95 KB', '2.93 KB' ]\n * }\n * catch (err) {\n * console.log(err);\n * }\n * })();\n *\n * @example\n *\n * // file1.txt is a file that is 1000 bytes in size\n * // file2.txt is a file that is 2000 bytes in size\n * // file3.txt is a file that is 3000 bytes in size\n *\n * // helper function that returns human-readable size format from bytes\n * function formatBytes(bytes, decimals = 2) {\n * // implementation not included for brevity\n * return humanReadbleFilesize;\n * }\n *\n * const fileMap = { f1: 'file1.txt', f2: 'file2.txt', f3: 'file3.txt' };\n *\n * // asynchronous function that returns the file size, transformed to human-readable format\n * // e.g. 1024 bytes = 1KB, 1234 bytes = 1.21 KB, 1048576 bytes = 1MB, etc.\n * function transformFileSize(acc, value, key, callback) {\n * fs.stat(value, function(err, stat) {\n * if (err) {\n * return callback(err);\n * }\n * acc[key] = formatBytes(stat.size);\n * callback(null);\n * });\n * }\n *\n * // Using callbacks\n * async.transform(fileMap, transformFileSize, function(err, result) {\n * if(err) {\n * console.log(err);\n * } else {\n * console.log(result);\n * // { f1: '1000 Bytes', f2: '1.95 KB', f3: '2.93 KB' }\n * }\n * });\n *\n * // Using Promises\n * async.transform(fileMap, transformFileSize)\n * .then(result => {\n * console.log(result);\n * // { f1: '1000 Bytes', f2: '1.95 KB', f3: '2.93 KB' }\n * }).catch(err => {\n * console.log(err);\n * });\n *\n * // Using async/await\n * async () => {\n * try {\n * let result = await async.transform(fileMap, transformFileSize);\n * console.log(result);\n * // { f1: '1000 Bytes', f2: '1.95 KB', f3: '2.93 KB' }\n * }\n * catch (err) {\n * console.log(err);\n * }\n * }\n *\n */\n function transform (coll, accumulator, iteratee, callback) {\n if (arguments.length <= 3 && typeof accumulator === 'function') {\n callback = iteratee;\n iteratee = accumulator;\n accumulator = Array.isArray(coll) ? [] : {};\n }\n callback = once(callback || promiseCallback());\n var _iteratee = wrapAsync(iteratee);\n\n eachOf$1(coll, (v, k, cb) => {\n _iteratee(accumulator, v, k, cb);\n }, err => callback(err, accumulator));\n return callback[PROMISE_SYMBOL]\n }\n\n /**\n * It runs each task in series but stops whenever any of the functions were\n * successful. If one of the tasks were successful, the `callback` will be\n * passed the result of the successful task. If all tasks fail, the callback\n * will be passed the error and result (if any) of the final attempt.\n *\n * @name tryEach\n * @static\n * @memberOf module:ControlFlow\n * @method\n * @category Control Flow\n * @param {Array|Iterable|AsyncIterable|Object} tasks - A collection containing functions to\n * run, each function is passed a `callback(err, result)` it must call on\n * completion with an error `err` (which can be `null`) and an optional `result`\n * value.\n * @param {Function} [callback] - An optional callback which is called when one\n * of the tasks has succeeded, or all have failed. It receives the `err` and\n * `result` arguments of the last attempt at completing the `task`. Invoked with\n * (err, results).\n * @returns {Promise} a promise, if no callback is passed\n * @example\n * async.tryEach([\n * function getDataFromFirstWebsite(callback) {\n * // Try getting the data from the first website\n * callback(err, data);\n * },\n * function getDataFromSecondWebsite(callback) {\n * // First website failed,\n * // Try getting the data from the backup website\n * callback(err, data);\n * }\n * ],\n * // optional callback\n * function(err, results) {\n * Now do something with the data.\n * });\n *\n */\n function tryEach(tasks, callback) {\n var error = null;\n var result;\n return eachSeries$1(tasks, (task, taskCb) => {\n wrapAsync(task)((err, ...args) => {\n if (err === false) return taskCb(err);\n\n if (args.length < 2) {\n [result] = args;\n } else {\n result = args;\n }\n error = err;\n taskCb(err ? null : {});\n });\n }, () => callback(error, result));\n }\n\n var tryEach$1 = awaitify(tryEach);\n\n /**\n * Undoes a [memoize]{@link module:Utils.memoize}d function, reverting it to the original,\n * unmemoized form. Handy for testing.\n *\n * @name unmemoize\n * @static\n * @memberOf module:Utils\n * @method\n * @see [async.memoize]{@link module:Utils.memoize}\n * @category Util\n * @param {AsyncFunction} fn - the memoized function\n * @returns {AsyncFunction} a function that calls the original unmemoized function\n */\n function unmemoize(fn) {\n return (...args) => {\n return (fn.unmemoized || fn)(...args);\n };\n }\n\n /**\n * Repeatedly call `iteratee`, while `test` returns `true`. Calls `callback` when\n * stopped, or an error occurs.\n *\n * @name whilst\n * @static\n * @memberOf module:ControlFlow\n * @method\n * @category Control Flow\n * @param {AsyncFunction} test - asynchronous truth test to perform before each\n * execution of `iteratee`. Invoked with (callback).\n * @param {AsyncFunction} iteratee - An async function which is called each time\n * `test` passes. Invoked with (callback).\n * @param {Function} [callback] - A callback which is called after the test\n * function has failed and repeated execution of `iteratee` has stopped. `callback`\n * will be passed an error and any arguments passed to the final `iteratee`'s\n * callback. Invoked with (err, [results]);\n * @returns {Promise} a promise, if no callback is passed\n * @example\n *\n * var count = 0;\n * async.whilst(\n * function test(cb) { cb(null, count < 5); },\n * function iter(callback) {\n * count++;\n * setTimeout(function() {\n * callback(null, count);\n * }, 1000);\n * },\n * function (err, n) {\n * // 5 seconds have passed, n = 5\n * }\n * );\n */\n function whilst(test, iteratee, callback) {\n callback = onlyOnce(callback);\n var _fn = wrapAsync(iteratee);\n var _test = wrapAsync(test);\n var results = [];\n\n function next(err, ...rest) {\n if (err) return callback(err);\n results = rest;\n if (err === false) return;\n _test(check);\n }\n\n function check(err, truth) {\n if (err) return callback(err);\n if (err === false) return;\n if (!truth) return callback(null, ...results);\n _fn(next);\n }\n\n return _test(check);\n }\n var whilst$1 = awaitify(whilst, 3);\n\n /**\n * Repeatedly call `iteratee` until `test` returns `true`. Calls `callback` when\n * stopped, or an error occurs. `callback` will be passed an error and any\n * arguments passed to the final `iteratee`'s callback.\n *\n * The inverse of [whilst]{@link module:ControlFlow.whilst}.\n *\n * @name until\n * @static\n * @memberOf module:ControlFlow\n * @method\n * @see [async.whilst]{@link module:ControlFlow.whilst}\n * @category Control Flow\n * @param {AsyncFunction} test - asynchronous truth test to perform before each\n * execution of `iteratee`. Invoked with (callback).\n * @param {AsyncFunction} iteratee - An async function which is called each time\n * `test` fails. Invoked with (callback).\n * @param {Function} [callback] - A callback which is called after the test\n * function has passed and repeated execution of `iteratee` has stopped. `callback`\n * will be passed an error and any arguments passed to the final `iteratee`'s\n * callback. Invoked with (err, [results]);\n * @returns {Promise} a promise, if a callback is not passed\n *\n * @example\n * const results = []\n * let finished = false\n * async.until(function test(cb) {\n * cb(null, finished)\n * }, function iter(next) {\n * fetchPage(url, (err, body) => {\n * if (err) return next(err)\n * results = results.concat(body.objects)\n * finished = !!body.next\n * next(err)\n * })\n * }, function done (err) {\n * // all pages have been fetched\n * })\n */\n function until(test, iteratee, callback) {\n const _test = wrapAsync(test);\n return whilst$1((cb) => _test((err, truth) => cb (err, !truth)), iteratee, callback);\n }\n\n /**\n * Runs the `tasks` array of functions in series, each passing their results to\n * the next in the array. However, if any of the `tasks` pass an error to their\n * own callback, the next function is not executed, and the main `callback` is\n * immediately called with the error.\n *\n * @name waterfall\n * @static\n * @memberOf module:ControlFlow\n * @method\n * @category Control Flow\n * @param {Array} tasks - An array of [async functions]{@link AsyncFunction}\n * to run.\n * Each function should complete with any number of `result` values.\n * The `result` values will be passed as arguments, in order, to the next task.\n * @param {Function} [callback] - An optional callback to run once all the\n * functions have completed. This will be passed the results of the last task's\n * callback. Invoked with (err, [results]).\n * @returns {Promise} a promise, if a callback is omitted\n * @example\n *\n * async.waterfall([\n * function(callback) {\n * callback(null, 'one', 'two');\n * },\n * function(arg1, arg2, callback) {\n * // arg1 now equals 'one' and arg2 now equals 'two'\n * callback(null, 'three');\n * },\n * function(arg1, callback) {\n * // arg1 now equals 'three'\n * callback(null, 'done');\n * }\n * ], function (err, result) {\n * // result now equals 'done'\n * });\n *\n * // Or, with named functions:\n * async.waterfall([\n * myFirstFunction,\n * mySecondFunction,\n * myLastFunction,\n * ], function (err, result) {\n * // result now equals 'done'\n * });\n * function myFirstFunction(callback) {\n * callback(null, 'one', 'two');\n * }\n * function mySecondFunction(arg1, arg2, callback) {\n * // arg1 now equals 'one' and arg2 now equals 'two'\n * callback(null, 'three');\n * }\n * function myLastFunction(arg1, callback) {\n * // arg1 now equals 'three'\n * callback(null, 'done');\n * }\n */\n function waterfall (tasks, callback) {\n callback = once(callback);\n if (!Array.isArray(tasks)) return callback(new Error('First argument to waterfall must be an array of functions'));\n if (!tasks.length) return callback();\n var taskIndex = 0;\n\n function nextTask(args) {\n var task = wrapAsync(tasks[taskIndex++]);\n task(...args, onlyOnce(next));\n }\n\n function next(err, ...args) {\n if (err === false) return\n if (err || taskIndex === tasks.length) {\n return callback(err, ...args);\n }\n nextTask(args);\n }\n\n nextTask([]);\n }\n\n var waterfall$1 = awaitify(waterfall);\n\n /**\n * An \"async function\" in the context of Async is an asynchronous function with\n * a variable number of parameters, with the final parameter being a callback.\n * (`function (arg1, arg2, ..., callback) {}`)\n * The final callback is of the form `callback(err, results...)`, which must be\n * called once the function is completed. The callback should be called with a\n * Error as its first argument to signal that an error occurred.\n * Otherwise, if no error occurred, it should be called with `null` as the first\n * argument, and any additional `result` arguments that may apply, to signal\n * successful completion.\n * The callback must be called exactly once, ideally on a later tick of the\n * JavaScript event loop.\n *\n * This type of function is also referred to as a \"Node-style async function\",\n * or a \"continuation passing-style function\" (CPS). Most of the methods of this\n * library are themselves CPS/Node-style async functions, or functions that\n * return CPS/Node-style async functions.\n *\n * Wherever we accept a Node-style async function, we also directly accept an\n * [ES2017 `async` function]{@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/async_function}.\n * In this case, the `async` function will not be passed a final callback\n * argument, and any thrown error will be used as the `err` argument of the\n * implicit callback, and the return value will be used as the `result` value.\n * (i.e. a `rejected` of the returned Promise becomes the `err` callback\n * argument, and a `resolved` value becomes the `result`.)\n *\n * Note, due to JavaScript limitations, we can only detect native `async`\n * functions and not transpilied implementations.\n * Your environment must have `async`/`await` support for this to work.\n * (e.g. Node > v7.6, or a recent version of a modern browser).\n * If you are using `async` functions through a transpiler (e.g. Babel), you\n * must still wrap the function with [asyncify]{@link module:Utils.asyncify},\n * because the `async function` will be compiled to an ordinary function that\n * returns a promise.\n *\n * @typedef {Function} AsyncFunction\n * @static\n */\n\n\n var index = {\n apply,\n applyEach,\n applyEachSeries,\n asyncify,\n auto,\n autoInject,\n cargo: cargo$1,\n cargoQueue: cargo,\n compose,\n concat: concat$1,\n concatLimit: concatLimit$1,\n concatSeries: concatSeries$1,\n constant: constant$1,\n detect: detect$1,\n detectLimit: detectLimit$1,\n detectSeries: detectSeries$1,\n dir,\n doUntil,\n doWhilst: doWhilst$1,\n each,\n eachLimit: eachLimit$1,\n eachOf: eachOf$1,\n eachOfLimit: eachOfLimit$1,\n eachOfSeries: eachOfSeries$1,\n eachSeries: eachSeries$1,\n ensureAsync,\n every: every$1,\n everyLimit: everyLimit$1,\n everySeries: everySeries$1,\n filter: filter$1,\n filterLimit: filterLimit$1,\n filterSeries: filterSeries$1,\n forever: forever$1,\n groupBy,\n groupByLimit: groupByLimit$1,\n groupBySeries,\n log,\n map: map$1,\n mapLimit: mapLimit$1,\n mapSeries: mapSeries$1,\n mapValues,\n mapValuesLimit: mapValuesLimit$1,\n mapValuesSeries,\n memoize,\n nextTick,\n parallel,\n parallelLimit,\n priorityQueue,\n queue,\n race: race$1,\n reduce: reduce$1,\n reduceRight,\n reflect,\n reflectAll,\n reject: reject$1,\n rejectLimit: rejectLimit$1,\n rejectSeries: rejectSeries$1,\n retry,\n retryable,\n seq,\n series,\n setImmediate: setImmediate$1,\n some: some$1,\n someLimit: someLimit$1,\n someSeries: someSeries$1,\n sortBy: sortBy$1,\n timeout,\n times,\n timesLimit,\n timesSeries,\n transform,\n tryEach: tryEach$1,\n unmemoize,\n until,\n waterfall: waterfall$1,\n whilst: whilst$1,\n\n // aliases\n all: every$1,\n allLimit: everyLimit$1,\n allSeries: everySeries$1,\n any: some$1,\n anyLimit: someLimit$1,\n anySeries: someSeries$1,\n find: detect$1,\n findLimit: detectLimit$1,\n findSeries: detectSeries$1,\n flatMap: concat$1,\n flatMapLimit: concatLimit$1,\n flatMapSeries: concatSeries$1,\n forEach: each,\n forEachSeries: eachSeries$1,\n forEachLimit: eachLimit$1,\n forEachOf: eachOf$1,\n forEachOfSeries: eachOfSeries$1,\n forEachOfLimit: eachOfLimit$1,\n inject: reduce$1,\n foldl: reduce$1,\n foldr: reduceRight,\n select: filter$1,\n selectLimit: filterLimit$1,\n selectSeries: filterSeries$1,\n wrapSync: asyncify,\n during: whilst$1,\n doDuring: doWhilst$1\n };\n\n exports.all = every$1;\n exports.allLimit = everyLimit$1;\n exports.allSeries = everySeries$1;\n exports.any = some$1;\n exports.anyLimit = someLimit$1;\n exports.anySeries = someSeries$1;\n exports.apply = apply;\n exports.applyEach = applyEach;\n exports.applyEachSeries = applyEachSeries;\n exports.asyncify = asyncify;\n exports.auto = auto;\n exports.autoInject = autoInject;\n exports.cargo = cargo$1;\n exports.cargoQueue = cargo;\n exports.compose = compose;\n exports.concat = concat$1;\n exports.concatLimit = concatLimit$1;\n exports.concatSeries = concatSeries$1;\n exports.constant = constant$1;\n exports.default = index;\n exports.detect = detect$1;\n exports.detectLimit = detectLimit$1;\n exports.detectSeries = detectSeries$1;\n exports.dir = dir;\n exports.doDuring = doWhilst$1;\n exports.doUntil = doUntil;\n exports.doWhilst = doWhilst$1;\n exports.during = whilst$1;\n exports.each = each;\n exports.eachLimit = eachLimit$1;\n exports.eachOf = eachOf$1;\n exports.eachOfLimit = eachOfLimit$1;\n exports.eachOfSeries = eachOfSeries$1;\n exports.eachSeries = eachSeries$1;\n exports.ensureAsync = ensureAsync;\n exports.every = every$1;\n exports.everyLimit = everyLimit$1;\n exports.everySeries = everySeries$1;\n exports.filter = filter$1;\n exports.filterLimit = filterLimit$1;\n exports.filterSeries = filterSeries$1;\n exports.find = detect$1;\n exports.findLimit = detectLimit$1;\n exports.findSeries = detectSeries$1;\n exports.flatMap = concat$1;\n exports.flatMapLimit = concatLimit$1;\n exports.flatMapSeries = concatSeries$1;\n exports.foldl = reduce$1;\n exports.foldr = reduceRight;\n exports.forEach = each;\n exports.forEachLimit = eachLimit$1;\n exports.forEachOf = eachOf$1;\n exports.forEachOfLimit = eachOfLimit$1;\n exports.forEachOfSeries = eachOfSeries$1;\n exports.forEachSeries = eachSeries$1;\n exports.forever = forever$1;\n exports.groupBy = groupBy;\n exports.groupByLimit = groupByLimit$1;\n exports.groupBySeries = groupBySeries;\n exports.inject = reduce$1;\n exports.log = log;\n exports.map = map$1;\n exports.mapLimit = mapLimit$1;\n exports.mapSeries = mapSeries$1;\n exports.mapValues = mapValues;\n exports.mapValuesLimit = mapValuesLimit$1;\n exports.mapValuesSeries = mapValuesSeries;\n exports.memoize = memoize;\n exports.nextTick = nextTick;\n exports.parallel = parallel;\n exports.parallelLimit = parallelLimit;\n exports.priorityQueue = priorityQueue;\n exports.queue = queue;\n exports.race = race$1;\n exports.reduce = reduce$1;\n exports.reduceRight = reduceRight;\n exports.reflect = reflect;\n exports.reflectAll = reflectAll;\n exports.reject = reject$1;\n exports.rejectLimit = rejectLimit$1;\n exports.rejectSeries = rejectSeries$1;\n exports.retry = retry;\n exports.retryable = retryable;\n exports.select = filter$1;\n exports.selectLimit = filterLimit$1;\n exports.selectSeries = filterSeries$1;\n exports.seq = seq;\n exports.series = series;\n exports.setImmediate = setImmediate$1;\n exports.some = some$1;\n exports.someLimit = someLimit$1;\n exports.someSeries = someSeries$1;\n exports.sortBy = sortBy$1;\n exports.timeout = timeout;\n exports.times = times;\n exports.timesLimit = timesLimit;\n exports.timesSeries = timesSeries;\n exports.transform = transform;\n exports.tryEach = tryEach$1;\n exports.unmemoize = unmemoize;\n exports.until = until;\n exports.waterfall = waterfall$1;\n exports.whilst = whilst$1;\n exports.wrapSync = asyncify;\n\n Object.defineProperty(exports, '__esModule', { value: true });\n\n}));\n","module.exports =\n{\n parallel : require('./parallel.js'),\n serial : require('./serial.js'),\n serialOrdered : require('./serialOrdered.js')\n};\n","// API\nmodule.exports = abort;\n\n/**\n * Aborts leftover active jobs\n *\n * @param {object} state - current state object\n */\nfunction abort(state)\n{\n Object.keys(state.jobs).forEach(clean.bind(state));\n\n // reset leftover jobs\n state.jobs = {};\n}\n\n/**\n * Cleans up leftover job by invoking abort function for the provided job id\n *\n * @this state\n * @param {string|number} key - job id to abort\n */\nfunction clean(key)\n{\n if (typeof this.jobs[key] == 'function')\n {\n this.jobs[key]();\n }\n}\n","var defer = require('./defer.js');\n\n// API\nmodule.exports = async;\n\n/**\n * Runs provided callback asynchronously\n * even if callback itself is not\n *\n * @param {function} callback - callback to invoke\n * @returns {function} - augmented callback\n */\nfunction async(callback)\n{\n var isAsync = false;\n\n // check if async happened\n defer(function() { isAsync = true; });\n\n return function async_callback(err, result)\n {\n if (isAsync)\n {\n callback(err, result);\n }\n else\n {\n defer(function nextTick_callback()\n {\n callback(err, result);\n });\n }\n };\n}\n","module.exports = defer;\n\n/**\n * Runs provided function on next iteration of the event loop\n *\n * @param {function} fn - function to run\n */\nfunction defer(fn)\n{\n var nextTick = typeof setImmediate == 'function'\n ? setImmediate\n : (\n typeof process == 'object' && typeof process.nextTick == 'function'\n ? process.nextTick\n : null\n );\n\n if (nextTick)\n {\n nextTick(fn);\n }\n else\n {\n setTimeout(fn, 0);\n }\n}\n","var async = require('./async.js')\n , abort = require('./abort.js')\n ;\n\n// API\nmodule.exports = iterate;\n\n/**\n * Iterates over each job object\n *\n * @param {array|object} list - array or object (named list) to iterate over\n * @param {function} iterator - iterator to run\n * @param {object} state - current job status\n * @param {function} callback - invoked when all elements processed\n */\nfunction iterate(list, iterator, state, callback)\n{\n // store current index\n var key = state['keyedList'] ? state['keyedList'][state.index] : state.index;\n\n state.jobs[key] = runJob(iterator, key, list[key], function(error, output)\n {\n // don't repeat yourself\n // skip secondary callbacks\n if (!(key in state.jobs))\n {\n return;\n }\n\n // clean up jobs\n delete state.jobs[key];\n\n if (error)\n {\n // don't process rest of the results\n // stop still active jobs\n // and reset the list\n abort(state);\n }\n else\n {\n state.results[key] = output;\n }\n\n // return salvaged results\n callback(error, state.results);\n });\n}\n\n/**\n * Runs iterator over provided job element\n *\n * @param {function} iterator - iterator to invoke\n * @param {string|number} key - key/index of the element in the list of jobs\n * @param {mixed} item - job description\n * @param {function} callback - invoked after iterator is done with the job\n * @returns {function|mixed} - job abort function or something else\n */\nfunction runJob(iterator, key, item, callback)\n{\n var aborter;\n\n // allow shortcut if iterator expects only two arguments\n if (iterator.length == 2)\n {\n aborter = iterator(item, async(callback));\n }\n // otherwise go with full three arguments\n else\n {\n aborter = iterator(item, key, async(callback));\n }\n\n return aborter;\n}\n","// API\nmodule.exports = state;\n\n/**\n * Creates initial state object\n * for iteration over list\n *\n * @param {array|object} list - list to iterate over\n * @param {function|null} sortMethod - function to use for keys sort,\n * or `null` to keep them as is\n * @returns {object} - initial state object\n */\nfunction state(list, sortMethod)\n{\n var isNamedList = !Array.isArray(list)\n , initState =\n {\n index : 0,\n keyedList: isNamedList || sortMethod ? Object.keys(list) : null,\n jobs : {},\n results : isNamedList ? {} : [],\n size : isNamedList ? Object.keys(list).length : list.length\n }\n ;\n\n if (sortMethod)\n {\n // sort array keys based on it's values\n // sort object's keys just on own merit\n initState.keyedList.sort(isNamedList ? sortMethod : function(a, b)\n {\n return sortMethod(list[a], list[b]);\n });\n }\n\n return initState;\n}\n","var abort = require('./abort.js')\n , async = require('./async.js')\n ;\n\n// API\nmodule.exports = terminator;\n\n/**\n * Terminates jobs in the attached state context\n *\n * @this AsyncKitState#\n * @param {function} callback - final callback to invoke after termination\n */\nfunction terminator(callback)\n{\n if (!Object.keys(this.jobs).length)\n {\n return;\n }\n\n // fast forward iteration index\n this.index = this.size;\n\n // abort jobs\n abort(this);\n\n // send back results we have so far\n async(callback)(null, this.results);\n}\n","var iterate = require('./lib/iterate.js')\n , initState = require('./lib/state.js')\n , terminator = require('./lib/terminator.js')\n ;\n\n// Public API\nmodule.exports = parallel;\n\n/**\n * Runs iterator over provided array elements in parallel\n *\n * @param {array|object} list - array or object (named list) to iterate over\n * @param {function} iterator - iterator to run\n * @param {function} callback - invoked when all elements processed\n * @returns {function} - jobs terminator\n */\nfunction parallel(list, iterator, callback)\n{\n var state = initState(list);\n\n while (state.index < (state['keyedList'] || list).length)\n {\n iterate(list, iterator, state, function(error, result)\n {\n if (error)\n {\n callback(error, result);\n return;\n }\n\n // looks like it's the last one\n if (Object.keys(state.jobs).length === 0)\n {\n callback(null, state.results);\n return;\n }\n });\n\n state.index++;\n }\n\n return terminator.bind(state, callback);\n}\n","var serialOrdered = require('./serialOrdered.js');\n\n// Public API\nmodule.exports = serial;\n\n/**\n * Runs iterator over provided array elements in series\n *\n * @param {array|object} list - array or object (named list) to iterate over\n * @param {function} iterator - iterator to run\n * @param {function} callback - invoked when all elements processed\n * @returns {function} - jobs terminator\n */\nfunction serial(list, iterator, callback)\n{\n return serialOrdered(list, iterator, null, callback);\n}\n","var iterate = require('./lib/iterate.js')\n , initState = require('./lib/state.js')\n , terminator = require('./lib/terminator.js')\n ;\n\n// Public API\nmodule.exports = serialOrdered;\n// sorting helpers\nmodule.exports.ascending = ascending;\nmodule.exports.descending = descending;\n\n/**\n * Runs iterator over provided sorted array elements in series\n *\n * @param {array|object} list - array or object (named list) to iterate over\n * @param {function} iterator - iterator to run\n * @param {function} sortMethod - custom sort function\n * @param {function} callback - invoked when all elements processed\n * @returns {function} - jobs terminator\n */\nfunction serialOrdered(list, iterator, sortMethod, callback)\n{\n var state = initState(list, sortMethod);\n\n iterate(list, iterator, state, function iteratorHandler(error, result)\n {\n if (error)\n {\n callback(error, result);\n return;\n }\n\n state.index++;\n\n // are we there yet?\n if (state.index < (state['keyedList'] || list).length)\n {\n iterate(list, iterator, state, iteratorHandler);\n return;\n }\n\n // done here\n callback(null, state.results);\n });\n\n return terminator.bind(state, callback);\n}\n\n/*\n * -- Sort methods\n */\n\n/**\n * sort helper to sort array elements in ascending order\n *\n * @param {mixed} a - an item to compare\n * @param {mixed} b - an item to compare\n * @returns {number} - comparison result\n */\nfunction ascending(a, b)\n{\n return a < b ? -1 : a > b ? 1 : 0;\n}\n\n/**\n * sort helper to sort array elements in descending order\n *\n * @param {mixed} a - an item to compare\n * @param {mixed} b - an item to compare\n * @returns {number} - comparison result\n */\nfunction descending(a, b)\n{\n return -1 * ascending(a, b);\n}\n","function isBuffer (value) {\n return Buffer.isBuffer(value) || value instanceof Uint8Array\n}\n\nfunction isEncoding (encoding) {\n return Buffer.isEncoding(encoding)\n}\n\nfunction alloc (size, fill, encoding) {\n return Buffer.alloc(size, fill, encoding)\n}\n\nfunction allocUnsafe (size) {\n return Buffer.allocUnsafe(size)\n}\n\nfunction allocUnsafeSlow (size) {\n return Buffer.allocUnsafeSlow(size)\n}\n\nfunction byteLength (string, encoding) {\n return Buffer.byteLength(string, encoding)\n}\n\nfunction compare (a, b) {\n return Buffer.compare(a, b)\n}\n\nfunction concat (buffers, totalLength) {\n return Buffer.concat(buffers, totalLength)\n}\n\nfunction copy (source, target, targetStart, start, end) {\n return toBuffer(source).copy(target, targetStart, start, end)\n}\n\nfunction equals (a, b) {\n return toBuffer(a).equals(b)\n}\n\nfunction fill (buffer, value, offset, end, encoding) {\n return toBuffer(buffer).fill(value, offset, end, encoding)\n}\n\nfunction from (value, encodingOrOffset, length) {\n return Buffer.from(value, encodingOrOffset, length)\n}\n\nfunction includes (buffer, value, byteOffset, encoding) {\n return toBuffer(buffer).includes(value, byteOffset, encoding)\n}\n\nfunction indexOf (buffer, value, byfeOffset, encoding) {\n return toBuffer(buffer).indexOf(value, byfeOffset, encoding)\n}\n\nfunction lastIndexOf (buffer, value, byteOffset, encoding) {\n return toBuffer(buffer).lastIndexOf(value, byteOffset, encoding)\n}\n\nfunction swap16 (buffer) {\n return toBuffer(buffer).swap16()\n}\n\nfunction swap32 (buffer) {\n return toBuffer(buffer).swap32()\n}\n\nfunction swap64 (buffer) {\n return toBuffer(buffer).swap64()\n}\n\nfunction toBuffer (buffer) {\n if (Buffer.isBuffer(buffer)) return buffer\n return Buffer.from(buffer.buffer, buffer.byteOffset, buffer.byteLength)\n}\n\nfunction toString (buffer, encoding, start, end) {\n return toBuffer(buffer).toString(encoding, start, end)\n}\n\nfunction write (buffer, string, offset, length, encoding) {\n return toBuffer(buffer).write(string, offset, length, encoding)\n}\n\nfunction writeDoubleLE (buffer, value, offset) {\n return toBuffer(buffer).writeDoubleLE(value, offset)\n}\n\nfunction writeFloatLE (buffer, value, offset) {\n return toBuffer(buffer).writeFloatLE(value, offset)\n}\n\nfunction writeUInt32LE (buffer, value, offset) {\n return toBuffer(buffer).writeUInt32LE(value, offset)\n}\n\nfunction writeInt32LE (buffer, value, offset) {\n return toBuffer(buffer).writeInt32LE(value, offset)\n}\n\nfunction readDoubleLE (buffer, offset) {\n return toBuffer(buffer).readDoubleLE(offset)\n}\n\nfunction readFloatLE (buffer, offset) {\n return toBuffer(buffer).readFloatLE(offset)\n}\n\nfunction readUInt32LE (buffer, offset) {\n return toBuffer(buffer).readUInt32LE(offset)\n}\n\nfunction readInt32LE (buffer, offset) {\n return toBuffer(buffer).readInt32LE(offset)\n}\n\nmodule.exports = {\n isBuffer,\n isEncoding,\n alloc,\n allocUnsafe,\n allocUnsafeSlow,\n byteLength,\n compare,\n concat,\n copy,\n equals,\n fill,\n from,\n includes,\n indexOf,\n lastIndexOf,\n swap16,\n swap32,\n swap64,\n toBuffer,\n toString,\n write,\n writeDoubleLE,\n writeFloatLE,\n writeUInt32LE,\n writeInt32LE,\n readDoubleLE,\n readFloatLE,\n readUInt32LE,\n readInt32LE\n}\n","'use strict';\nmodule.exports = balanced;\nfunction balanced(a, b, str) {\n if (a instanceof RegExp) a = maybeMatch(a, str);\n if (b instanceof RegExp) b = maybeMatch(b, str);\n\n var r = range(a, b, str);\n\n return r && {\n start: r[0],\n end: r[1],\n pre: str.slice(0, r[0]),\n body: str.slice(r[0] + a.length, r[1]),\n post: str.slice(r[1] + b.length)\n };\n}\n\nfunction maybeMatch(reg, str) {\n var m = str.match(reg);\n return m ? m[0] : null;\n}\n\nbalanced.range = range;\nfunction range(a, b, str) {\n var begs, beg, left, right, result;\n var ai = str.indexOf(a);\n var bi = str.indexOf(b, ai + 1);\n var i = ai;\n\n if (ai >= 0 && bi > 0) {\n if(a===b) {\n return [ai, bi];\n }\n begs = [];\n left = str.length;\n\n while (i >= 0 && !result) {\n if (i == ai) {\n begs.push(i);\n ai = str.indexOf(a, i + 1);\n } else if (begs.length == 1) {\n result = [ begs.pop(), bi ];\n } else {\n beg = begs.pop();\n if (beg < left) {\n left = beg;\n right = bi;\n }\n\n bi = str.indexOf(b, i + 1);\n }\n\n i = ai < bi && ai >= 0 ? ai : bi;\n }\n\n if (begs.length) {\n result = [ left, right ];\n }\n }\n\n return result;\n}\n","var register = require(\"./lib/register\");\nvar addHook = require(\"./lib/add\");\nvar removeHook = require(\"./lib/remove\");\n\n// bind with array of arguments: https://stackoverflow.com/a/21792913\nvar bind = Function.bind;\nvar bindable = bind.bind(bind);\n\nfunction bindApi(hook, state, name) {\n var removeHookRef = bindable(removeHook, null).apply(\n null,\n name ? [state, name] : [state]\n );\n hook.api = { remove: removeHookRef };\n hook.remove = removeHookRef;\n [\"before\", \"error\", \"after\", \"wrap\"].forEach(function (kind) {\n var args = name ? [state, kind, name] : [state, kind];\n hook[kind] = hook.api[kind] = bindable(addHook, null).apply(null, args);\n });\n}\n\nfunction HookSingular() {\n var singularHookName = \"h\";\n var singularHookState = {\n registry: {},\n };\n var singularHook = register.bind(null, singularHookState, singularHookName);\n bindApi(singularHook, singularHookState, singularHookName);\n return singularHook;\n}\n\nfunction HookCollection() {\n var state = {\n registry: {},\n };\n\n var hook = register.bind(null, state);\n bindApi(hook, state);\n\n return hook;\n}\n\nvar collectionHookDeprecationMessageDisplayed = false;\nfunction Hook() {\n if (!collectionHookDeprecationMessageDisplayed) {\n console.warn(\n '[before-after-hook]: \"Hook()\" repurposing warning, use \"Hook.Collection()\". Read more: https://git.io/upgrade-before-after-hook-to-1.4'\n );\n collectionHookDeprecationMessageDisplayed = true;\n }\n return HookCollection();\n}\n\nHook.Singular = HookSingular.bind();\nHook.Collection = HookCollection.bind();\n\nmodule.exports = Hook;\n// expose constructors as a named property for TypeScript\nmodule.exports.Hook = Hook;\nmodule.exports.Singular = Hook.Singular;\nmodule.exports.Collection = Hook.Collection;\n","module.exports = addHook;\n\nfunction addHook(state, kind, name, hook) {\n var orig = hook;\n if (!state.registry[name]) {\n state.registry[name] = [];\n }\n\n if (kind === \"before\") {\n hook = function (method, options) {\n return Promise.resolve()\n .then(orig.bind(null, options))\n .then(method.bind(null, options));\n };\n }\n\n if (kind === \"after\") {\n hook = function (method, options) {\n var result;\n return Promise.resolve()\n .then(method.bind(null, options))\n .then(function (result_) {\n result = result_;\n return orig(result, options);\n })\n .then(function () {\n return result;\n });\n };\n }\n\n if (kind === \"error\") {\n hook = function (method, options) {\n return Promise.resolve()\n .then(method.bind(null, options))\n .catch(function (error) {\n return orig(error, options);\n });\n };\n }\n\n state.registry[name].push({\n hook: hook,\n orig: orig,\n });\n}\n","module.exports = register;\n\nfunction register(state, name, method, options) {\n if (typeof method !== \"function\") {\n throw new Error(\"method for before hook must be a function\");\n }\n\n if (!options) {\n options = {};\n }\n\n if (Array.isArray(name)) {\n return name.reverse().reduce(function (callback, name) {\n return register.bind(null, state, name, callback, options);\n }, method)();\n }\n\n return Promise.resolve().then(function () {\n if (!state.registry[name]) {\n return method(options);\n }\n\n return state.registry[name].reduce(function (method, registered) {\n return registered.hook.bind(null, method, options);\n }, method)();\n });\n}\n","module.exports = removeHook;\n\nfunction removeHook(state, name, method) {\n if (!state.registry[name]) {\n return;\n }\n\n var index = state.registry[name]\n .map(function (registered) {\n return registered.orig;\n })\n .indexOf(method);\n\n if (index === -1) {\n return;\n }\n\n state.registry[name].splice(index, 1);\n}\n","var Chainsaw = require('chainsaw');\nvar EventEmitter = require('events').EventEmitter;\nvar Buffers = require('buffers');\nvar Vars = require('./lib/vars.js');\nvar Stream = require('stream').Stream;\n\nexports = module.exports = function (bufOrEm, eventName) {\n if (Buffer.isBuffer(bufOrEm)) {\n return exports.parse(bufOrEm);\n }\n \n var s = exports.stream();\n if (bufOrEm && bufOrEm.pipe) {\n bufOrEm.pipe(s);\n }\n else if (bufOrEm) {\n bufOrEm.on(eventName || 'data', function (buf) {\n s.write(buf);\n });\n \n bufOrEm.on('end', function () {\n s.end();\n });\n }\n return s;\n};\n\nexports.stream = function (input) {\n if (input) return exports.apply(null, arguments);\n \n var pending = null;\n function getBytes (bytes, cb, skip) {\n pending = {\n bytes : bytes,\n skip : skip,\n cb : function (buf) {\n pending = null;\n cb(buf);\n },\n };\n dispatch();\n }\n \n var offset = null;\n function dispatch () {\n if (!pending) {\n if (caughtEnd) done = true;\n return;\n }\n if (typeof pending === 'function') {\n pending();\n }\n else {\n var bytes = offset + pending.bytes;\n \n if (buffers.length >= bytes) {\n var buf;\n if (offset == null) {\n buf = buffers.splice(0, bytes);\n if (!pending.skip) {\n buf = buf.slice();\n }\n }\n else {\n if (!pending.skip) {\n buf = buffers.slice(offset, bytes);\n }\n offset = bytes;\n }\n \n if (pending.skip) {\n pending.cb();\n }\n else {\n pending.cb(buf);\n }\n }\n }\n }\n \n function builder (saw) {\n function next () { if (!done) saw.next() }\n \n var self = words(function (bytes, cb) {\n return function (name) {\n getBytes(bytes, function (buf) {\n vars.set(name, cb(buf));\n next();\n });\n };\n });\n \n self.tap = function (cb) {\n saw.nest(cb, vars.store);\n };\n \n self.into = function (key, cb) {\n if (!vars.get(key)) vars.set(key, {});\n var parent = vars;\n vars = Vars(parent.get(key));\n \n saw.nest(function () {\n cb.apply(this, arguments);\n this.tap(function () {\n vars = parent;\n });\n }, vars.store);\n };\n \n self.flush = function () {\n vars.store = {};\n next();\n };\n \n self.loop = function (cb) {\n var end = false;\n \n saw.nest(false, function loop () {\n this.vars = vars.store;\n cb.call(this, function () {\n end = true;\n next();\n }, vars.store);\n this.tap(function () {\n if (end) saw.next()\n else loop.call(this)\n }.bind(this));\n }, vars.store);\n };\n \n self.buffer = function (name, bytes) {\n if (typeof bytes === 'string') {\n bytes = vars.get(bytes);\n }\n \n getBytes(bytes, function (buf) {\n vars.set(name, buf);\n next();\n });\n };\n \n self.skip = function (bytes) {\n if (typeof bytes === 'string') {\n bytes = vars.get(bytes);\n }\n \n getBytes(bytes, function () {\n next();\n });\n };\n \n self.scan = function find (name, search) {\n if (typeof search === 'string') {\n search = new Buffer(search);\n }\n else if (!Buffer.isBuffer(search)) {\n throw new Error('search must be a Buffer or a string');\n }\n \n var taken = 0;\n pending = function () {\n var pos = buffers.indexOf(search, offset + taken);\n var i = pos-offset-taken;\n if (pos !== -1) {\n pending = null;\n if (offset != null) {\n vars.set(\n name,\n buffers.slice(offset, offset + taken + i)\n );\n offset += taken + i + search.length;\n }\n else {\n vars.set(\n name,\n buffers.slice(0, taken + i)\n );\n buffers.splice(0, taken + i + search.length);\n }\n next();\n dispatch();\n } else {\n i = Math.max(buffers.length - search.length - offset - taken, 0);\n\t\t\t\t}\n taken += i;\n };\n dispatch();\n };\n \n self.peek = function (cb) {\n offset = 0;\n saw.nest(function () {\n cb.call(this, vars.store);\n this.tap(function () {\n offset = null;\n });\n });\n };\n \n return self;\n };\n \n var stream = Chainsaw.light(builder);\n stream.writable = true;\n \n var buffers = Buffers();\n \n stream.write = function (buf) {\n buffers.push(buf);\n dispatch();\n };\n \n var vars = Vars();\n \n var done = false, caughtEnd = false;\n stream.end = function () {\n caughtEnd = true;\n };\n \n stream.pipe = Stream.prototype.pipe;\n Object.getOwnPropertyNames(EventEmitter.prototype).forEach(function (name) {\n stream[name] = EventEmitter.prototype[name];\n });\n \n return stream;\n};\n\nexports.parse = function parse (buffer) {\n var self = words(function (bytes, cb) {\n return function (name) {\n if (offset + bytes <= buffer.length) {\n var buf = buffer.slice(offset, offset + bytes);\n offset += bytes;\n vars.set(name, cb(buf));\n }\n else {\n vars.set(name, null);\n }\n return self;\n };\n });\n \n var offset = 0;\n var vars = Vars();\n self.vars = vars.store;\n \n self.tap = function (cb) {\n cb.call(self, vars.store);\n return self;\n };\n \n self.into = function (key, cb) {\n if (!vars.get(key)) {\n vars.set(key, {});\n }\n var parent = vars;\n vars = Vars(parent.get(key));\n cb.call(self, vars.store);\n vars = parent;\n return self;\n };\n \n self.loop = function (cb) {\n var end = false;\n var ender = function () { end = true };\n while (end === false) {\n cb.call(self, ender, vars.store);\n }\n return self;\n };\n \n self.buffer = function (name, size) {\n if (typeof size === 'string') {\n size = vars.get(size);\n }\n var buf = buffer.slice(offset, Math.min(buffer.length, offset + size));\n offset += size;\n vars.set(name, buf);\n \n return self;\n };\n \n self.skip = function (bytes) {\n if (typeof bytes === 'string') {\n bytes = vars.get(bytes);\n }\n offset += bytes;\n \n return self;\n };\n \n self.scan = function (name, search) {\n if (typeof search === 'string') {\n search = new Buffer(search);\n }\n else if (!Buffer.isBuffer(search)) {\n throw new Error('search must be a Buffer or a string');\n }\n vars.set(name, null);\n \n // simple but slow string search\n for (var i = 0; i + offset <= buffer.length - search.length + 1; i++) {\n for (\n var j = 0;\n j < search.length && buffer[offset+i+j] === search[j];\n j++\n );\n if (j === search.length) break;\n }\n \n vars.set(name, buffer.slice(offset, offset + i));\n offset += i + search.length;\n return self;\n };\n \n self.peek = function (cb) {\n var was = offset;\n cb.call(self, vars.store);\n offset = was;\n return self;\n };\n \n self.flush = function () {\n vars.store = {};\n return self;\n };\n \n self.eof = function () {\n return offset >= buffer.length;\n };\n \n return self;\n};\n\n// convert byte strings to unsigned little endian numbers\nfunction decodeLEu (bytes) {\n var acc = 0;\n for (var i = 0; i < bytes.length; i++) {\n acc += Math.pow(256,i) * bytes[i];\n }\n return acc;\n}\n\n// convert byte strings to unsigned big endian numbers\nfunction decodeBEu (bytes) {\n var acc = 0;\n for (var i = 0; i < bytes.length; i++) {\n acc += Math.pow(256, bytes.length - i - 1) * bytes[i];\n }\n return acc;\n}\n\n// convert byte strings to signed big endian numbers\nfunction decodeBEs (bytes) {\n var val = decodeBEu(bytes);\n if ((bytes[0] & 0x80) == 0x80) {\n val -= Math.pow(256, bytes.length);\n }\n return val;\n}\n\n// convert byte strings to signed little endian numbers\nfunction decodeLEs (bytes) {\n var val = decodeLEu(bytes);\n if ((bytes[bytes.length - 1] & 0x80) == 0x80) {\n val -= Math.pow(256, bytes.length);\n }\n return val;\n}\n\nfunction words (decode) {\n var self = {};\n \n [ 1, 2, 4, 8 ].forEach(function (bytes) {\n var bits = bytes * 8;\n \n self['word' + bits + 'le']\n = self['word' + bits + 'lu']\n = decode(bytes, decodeLEu);\n \n self['word' + bits + 'ls']\n = decode(bytes, decodeLEs);\n \n self['word' + bits + 'be']\n = self['word' + bits + 'bu']\n = decode(bytes, decodeBEu);\n \n self['word' + bits + 'bs']\n = decode(bytes, decodeBEs);\n });\n \n // word8be(n) == word8le(n) for all n\n self.word8 = self.word8u = self.word8be;\n self.word8s = self.word8bs;\n \n return self;\n}\n","module.exports = function (store) {\n function getset (name, value) {\n var node = vars.store;\n var keys = name.split('.');\n keys.slice(0,-1).forEach(function (k) {\n if (node[k] === undefined) node[k] = {};\n node = node[k]\n });\n var key = keys[keys.length - 1];\n if (arguments.length == 1) {\n return node[key];\n }\n else {\n return node[key] = value;\n }\n }\n \n var vars = {\n get : function (name) {\n return getset(name);\n },\n set : function (name, value) {\n return getset(name, value);\n },\n store : store || {},\n };\n return vars;\n};\n","/**\n * This file contains the Bottleneck library (MIT), compiled to ES2017, and without Clustering support.\n * https://github.com/SGrondin/bottleneck\n */\n(function (global, factory) {\n\ttypeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :\n\ttypeof define === 'function' && define.amd ? define(factory) :\n\t(global.Bottleneck = factory());\n}(this, (function () { 'use strict';\n\n\tvar commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};\n\n\tfunction getCjsExportFromNamespace (n) {\n\t\treturn n && n['default'] || n;\n\t}\n\n\tvar load = function(received, defaults, onto = {}) {\n\t var k, ref, v;\n\t for (k in defaults) {\n\t v = defaults[k];\n\t onto[k] = (ref = received[k]) != null ? ref : v;\n\t }\n\t return onto;\n\t};\n\n\tvar overwrite = function(received, defaults, onto = {}) {\n\t var k, v;\n\t for (k in received) {\n\t v = received[k];\n\t if (defaults[k] !== void 0) {\n\t onto[k] = v;\n\t }\n\t }\n\t return onto;\n\t};\n\n\tvar parser = {\n\t\tload: load,\n\t\toverwrite: overwrite\n\t};\n\n\tvar DLList;\n\n\tDLList = class DLList {\n\t constructor(incr, decr) {\n\t this.incr = incr;\n\t this.decr = decr;\n\t this._first = null;\n\t this._last = null;\n\t this.length = 0;\n\t }\n\n\t push(value) {\n\t var node;\n\t this.length++;\n\t if (typeof this.incr === \"function\") {\n\t this.incr();\n\t }\n\t node = {\n\t value,\n\t prev: this._last,\n\t next: null\n\t };\n\t if (this._last != null) {\n\t this._last.next = node;\n\t this._last = node;\n\t } else {\n\t this._first = this._last = node;\n\t }\n\t return void 0;\n\t }\n\n\t shift() {\n\t var value;\n\t if (this._first == null) {\n\t return;\n\t } else {\n\t this.length--;\n\t if (typeof this.decr === \"function\") {\n\t this.decr();\n\t }\n\t }\n\t value = this._first.value;\n\t if ((this._first = this._first.next) != null) {\n\t this._first.prev = null;\n\t } else {\n\t this._last = null;\n\t }\n\t return value;\n\t }\n\n\t first() {\n\t if (this._first != null) {\n\t return this._first.value;\n\t }\n\t }\n\n\t getArray() {\n\t var node, ref, results;\n\t node = this._first;\n\t results = [];\n\t while (node != null) {\n\t results.push((ref = node, node = node.next, ref.value));\n\t }\n\t return results;\n\t }\n\n\t forEachShift(cb) {\n\t var node;\n\t node = this.shift();\n\t while (node != null) {\n\t (cb(node), node = this.shift());\n\t }\n\t return void 0;\n\t }\n\n\t debug() {\n\t var node, ref, ref1, ref2, results;\n\t node = this._first;\n\t results = [];\n\t while (node != null) {\n\t results.push((ref = node, node = node.next, {\n\t value: ref.value,\n\t prev: (ref1 = ref.prev) != null ? ref1.value : void 0,\n\t next: (ref2 = ref.next) != null ? ref2.value : void 0\n\t }));\n\t }\n\t return results;\n\t }\n\n\t};\n\n\tvar DLList_1 = DLList;\n\n\tvar Events;\n\n\tEvents = class Events {\n\t constructor(instance) {\n\t this.instance = instance;\n\t this._events = {};\n\t if ((this.instance.on != null) || (this.instance.once != null) || (this.instance.removeAllListeners != null)) {\n\t throw new Error(\"An Emitter already exists for this object\");\n\t }\n\t this.instance.on = (name, cb) => {\n\t return this._addListener(name, \"many\", cb);\n\t };\n\t this.instance.once = (name, cb) => {\n\t return this._addListener(name, \"once\", cb);\n\t };\n\t this.instance.removeAllListeners = (name = null) => {\n\t if (name != null) {\n\t return delete this._events[name];\n\t } else {\n\t return this._events = {};\n\t }\n\t };\n\t }\n\n\t _addListener(name, status, cb) {\n\t var base;\n\t if ((base = this._events)[name] == null) {\n\t base[name] = [];\n\t }\n\t this._events[name].push({cb, status});\n\t return this.instance;\n\t }\n\n\t listenerCount(name) {\n\t if (this._events[name] != null) {\n\t return this._events[name].length;\n\t } else {\n\t return 0;\n\t }\n\t }\n\n\t async trigger(name, ...args) {\n\t var e, promises;\n\t try {\n\t if (name !== \"debug\") {\n\t this.trigger(\"debug\", `Event triggered: ${name}`, args);\n\t }\n\t if (this._events[name] == null) {\n\t return;\n\t }\n\t this._events[name] = this._events[name].filter(function(listener) {\n\t return listener.status !== \"none\";\n\t });\n\t promises = this._events[name].map(async(listener) => {\n\t var e, returned;\n\t if (listener.status === \"none\") {\n\t return;\n\t }\n\t if (listener.status === \"once\") {\n\t listener.status = \"none\";\n\t }\n\t try {\n\t returned = typeof listener.cb === \"function\" ? listener.cb(...args) : void 0;\n\t if (typeof (returned != null ? returned.then : void 0) === \"function\") {\n\t return (await returned);\n\t } else {\n\t return returned;\n\t }\n\t } catch (error) {\n\t e = error;\n\t {\n\t this.trigger(\"error\", e);\n\t }\n\t return null;\n\t }\n\t });\n\t return ((await Promise.all(promises))).find(function(x) {\n\t return x != null;\n\t });\n\t } catch (error) {\n\t e = error;\n\t {\n\t this.trigger(\"error\", e);\n\t }\n\t return null;\n\t }\n\t }\n\n\t};\n\n\tvar Events_1 = Events;\n\n\tvar DLList$1, Events$1, Queues;\n\n\tDLList$1 = DLList_1;\n\n\tEvents$1 = Events_1;\n\n\tQueues = class Queues {\n\t constructor(num_priorities) {\n\t var i;\n\t this.Events = new Events$1(this);\n\t this._length = 0;\n\t this._lists = (function() {\n\t var j, ref, results;\n\t results = [];\n\t for (i = j = 1, ref = num_priorities; (1 <= ref ? j <= ref : j >= ref); i = 1 <= ref ? ++j : --j) {\n\t results.push(new DLList$1((() => {\n\t return this.incr();\n\t }), (() => {\n\t return this.decr();\n\t })));\n\t }\n\t return results;\n\t }).call(this);\n\t }\n\n\t incr() {\n\t if (this._length++ === 0) {\n\t return this.Events.trigger(\"leftzero\");\n\t }\n\t }\n\n\t decr() {\n\t if (--this._length === 0) {\n\t return this.Events.trigger(\"zero\");\n\t }\n\t }\n\n\t push(job) {\n\t return this._lists[job.options.priority].push(job);\n\t }\n\n\t queued(priority) {\n\t if (priority != null) {\n\t return this._lists[priority].length;\n\t } else {\n\t return this._length;\n\t }\n\t }\n\n\t shiftAll(fn) {\n\t return this._lists.forEach(function(list) {\n\t return list.forEachShift(fn);\n\t });\n\t }\n\n\t getFirst(arr = this._lists) {\n\t var j, len, list;\n\t for (j = 0, len = arr.length; j < len; j++) {\n\t list = arr[j];\n\t if (list.length > 0) {\n\t return list;\n\t }\n\t }\n\t return [];\n\t }\n\n\t shiftLastFrom(priority) {\n\t return this.getFirst(this._lists.slice(priority).reverse()).shift();\n\t }\n\n\t};\n\n\tvar Queues_1 = Queues;\n\n\tvar BottleneckError;\n\n\tBottleneckError = class BottleneckError extends Error {};\n\n\tvar BottleneckError_1 = BottleneckError;\n\n\tvar BottleneckError$1, DEFAULT_PRIORITY, Job, NUM_PRIORITIES, parser$1;\n\n\tNUM_PRIORITIES = 10;\n\n\tDEFAULT_PRIORITY = 5;\n\n\tparser$1 = parser;\n\n\tBottleneckError$1 = BottleneckError_1;\n\n\tJob = class Job {\n\t constructor(task, args, options, jobDefaults, rejectOnDrop, Events, _states, Promise) {\n\t this.task = task;\n\t this.args = args;\n\t this.rejectOnDrop = rejectOnDrop;\n\t this.Events = Events;\n\t this._states = _states;\n\t this.Promise = Promise;\n\t this.options = parser$1.load(options, jobDefaults);\n\t this.options.priority = this._sanitizePriority(this.options.priority);\n\t if (this.options.id === jobDefaults.id) {\n\t this.options.id = `${this.options.id}-${this._randomIndex()}`;\n\t }\n\t this.promise = new this.Promise((_resolve, _reject) => {\n\t this._resolve = _resolve;\n\t this._reject = _reject;\n\t });\n\t this.retryCount = 0;\n\t }\n\n\t _sanitizePriority(priority) {\n\t var sProperty;\n\t sProperty = ~~priority !== priority ? DEFAULT_PRIORITY : priority;\n\t if (sProperty < 0) {\n\t return 0;\n\t } else if (sProperty > NUM_PRIORITIES - 1) {\n\t return NUM_PRIORITIES - 1;\n\t } else {\n\t return sProperty;\n\t }\n\t }\n\n\t _randomIndex() {\n\t return Math.random().toString(36).slice(2);\n\t }\n\n\t doDrop({error, message = \"This job has been dropped by Bottleneck\"} = {}) {\n\t if (this._states.remove(this.options.id)) {\n\t if (this.rejectOnDrop) {\n\t this._reject(error != null ? error : new BottleneckError$1(message));\n\t }\n\t this.Events.trigger(\"dropped\", {args: this.args, options: this.options, task: this.task, promise: this.promise});\n\t return true;\n\t } else {\n\t return false;\n\t }\n\t }\n\n\t _assertStatus(expected) {\n\t var status;\n\t status = this._states.jobStatus(this.options.id);\n\t if (!(status === expected || (expected === \"DONE\" && status === null))) {\n\t throw new BottleneckError$1(`Invalid job status ${status}, expected ${expected}. Please open an issue at https://github.com/SGrondin/bottleneck/issues`);\n\t }\n\t }\n\n\t doReceive() {\n\t this._states.start(this.options.id);\n\t return this.Events.trigger(\"received\", {args: this.args, options: this.options});\n\t }\n\n\t doQueue(reachedHWM, blocked) {\n\t this._assertStatus(\"RECEIVED\");\n\t this._states.next(this.options.id);\n\t return this.Events.trigger(\"queued\", {args: this.args, options: this.options, reachedHWM, blocked});\n\t }\n\n\t doRun() {\n\t if (this.retryCount === 0) {\n\t this._assertStatus(\"QUEUED\");\n\t this._states.next(this.options.id);\n\t } else {\n\t this._assertStatus(\"EXECUTING\");\n\t }\n\t return this.Events.trigger(\"scheduled\", {args: this.args, options: this.options});\n\t }\n\n\t async doExecute(chained, clearGlobalState, run, free) {\n\t var error, eventInfo, passed;\n\t if (this.retryCount === 0) {\n\t this._assertStatus(\"RUNNING\");\n\t this._states.next(this.options.id);\n\t } else {\n\t this._assertStatus(\"EXECUTING\");\n\t }\n\t eventInfo = {args: this.args, options: this.options, retryCount: this.retryCount};\n\t this.Events.trigger(\"executing\", eventInfo);\n\t try {\n\t passed = (await (chained != null ? chained.schedule(this.options, this.task, ...this.args) : this.task(...this.args)));\n\t if (clearGlobalState()) {\n\t this.doDone(eventInfo);\n\t await free(this.options, eventInfo);\n\t this._assertStatus(\"DONE\");\n\t return this._resolve(passed);\n\t }\n\t } catch (error1) {\n\t error = error1;\n\t return this._onFailure(error, eventInfo, clearGlobalState, run, free);\n\t }\n\t }\n\n\t doExpire(clearGlobalState, run, free) {\n\t var error, eventInfo;\n\t if (this._states.jobStatus(this.options.id === \"RUNNING\")) {\n\t this._states.next(this.options.id);\n\t }\n\t this._assertStatus(\"EXECUTING\");\n\t eventInfo = {args: this.args, options: this.options, retryCount: this.retryCount};\n\t error = new BottleneckError$1(`This job timed out after ${this.options.expiration} ms.`);\n\t return this._onFailure(error, eventInfo, clearGlobalState, run, free);\n\t }\n\n\t async _onFailure(error, eventInfo, clearGlobalState, run, free) {\n\t var retry, retryAfter;\n\t if (clearGlobalState()) {\n\t retry = (await this.Events.trigger(\"failed\", error, eventInfo));\n\t if (retry != null) {\n\t retryAfter = ~~retry;\n\t this.Events.trigger(\"retry\", `Retrying ${this.options.id} after ${retryAfter} ms`, eventInfo);\n\t this.retryCount++;\n\t return run(retryAfter);\n\t } else {\n\t this.doDone(eventInfo);\n\t await free(this.options, eventInfo);\n\t this._assertStatus(\"DONE\");\n\t return this._reject(error);\n\t }\n\t }\n\t }\n\n\t doDone(eventInfo) {\n\t this._assertStatus(\"EXECUTING\");\n\t this._states.next(this.options.id);\n\t return this.Events.trigger(\"done\", eventInfo);\n\t }\n\n\t};\n\n\tvar Job_1 = Job;\n\n\tvar BottleneckError$2, LocalDatastore, parser$2;\n\n\tparser$2 = parser;\n\n\tBottleneckError$2 = BottleneckError_1;\n\n\tLocalDatastore = class LocalDatastore {\n\t constructor(instance, storeOptions, storeInstanceOptions) {\n\t this.instance = instance;\n\t this.storeOptions = storeOptions;\n\t this.clientId = this.instance._randomIndex();\n\t parser$2.load(storeInstanceOptions, storeInstanceOptions, this);\n\t this._nextRequest = this._lastReservoirRefresh = this._lastReservoirIncrease = Date.now();\n\t this._running = 0;\n\t this._done = 0;\n\t this._unblockTime = 0;\n\t this.ready = this.Promise.resolve();\n\t this.clients = {};\n\t this._startHeartbeat();\n\t }\n\n\t _startHeartbeat() {\n\t var base;\n\t if ((this.heartbeat == null) && (((this.storeOptions.reservoirRefreshInterval != null) && (this.storeOptions.reservoirRefreshAmount != null)) || ((this.storeOptions.reservoirIncreaseInterval != null) && (this.storeOptions.reservoirIncreaseAmount != null)))) {\n\t return typeof (base = (this.heartbeat = setInterval(() => {\n\t var amount, incr, maximum, now, reservoir;\n\t now = Date.now();\n\t if ((this.storeOptions.reservoirRefreshInterval != null) && now >= this._lastReservoirRefresh + this.storeOptions.reservoirRefreshInterval) {\n\t this._lastReservoirRefresh = now;\n\t this.storeOptions.reservoir = this.storeOptions.reservoirRefreshAmount;\n\t this.instance._drainAll(this.computeCapacity());\n\t }\n\t if ((this.storeOptions.reservoirIncreaseInterval != null) && now >= this._lastReservoirIncrease + this.storeOptions.reservoirIncreaseInterval) {\n\t ({\n\t reservoirIncreaseAmount: amount,\n\t reservoirIncreaseMaximum: maximum,\n\t reservoir\n\t } = this.storeOptions);\n\t this._lastReservoirIncrease = now;\n\t incr = maximum != null ? Math.min(amount, maximum - reservoir) : amount;\n\t if (incr > 0) {\n\t this.storeOptions.reservoir += incr;\n\t return this.instance._drainAll(this.computeCapacity());\n\t }\n\t }\n\t }, this.heartbeatInterval))).unref === \"function\" ? base.unref() : void 0;\n\t } else {\n\t return clearInterval(this.heartbeat);\n\t }\n\t }\n\n\t async __publish__(message) {\n\t await this.yieldLoop();\n\t return this.instance.Events.trigger(\"message\", message.toString());\n\t }\n\n\t async __disconnect__(flush) {\n\t await this.yieldLoop();\n\t clearInterval(this.heartbeat);\n\t return this.Promise.resolve();\n\t }\n\n\t yieldLoop(t = 0) {\n\t return new this.Promise(function(resolve, reject) {\n\t return setTimeout(resolve, t);\n\t });\n\t }\n\n\t computePenalty() {\n\t var ref;\n\t return (ref = this.storeOptions.penalty) != null ? ref : (15 * this.storeOptions.minTime) || 5000;\n\t }\n\n\t async __updateSettings__(options) {\n\t await this.yieldLoop();\n\t parser$2.overwrite(options, options, this.storeOptions);\n\t this._startHeartbeat();\n\t this.instance._drainAll(this.computeCapacity());\n\t return true;\n\t }\n\n\t async __running__() {\n\t await this.yieldLoop();\n\t return this._running;\n\t }\n\n\t async __queued__() {\n\t await this.yieldLoop();\n\t return this.instance.queued();\n\t }\n\n\t async __done__() {\n\t await this.yieldLoop();\n\t return this._done;\n\t }\n\n\t async __groupCheck__(time) {\n\t await this.yieldLoop();\n\t return (this._nextRequest + this.timeout) < time;\n\t }\n\n\t computeCapacity() {\n\t var maxConcurrent, reservoir;\n\t ({maxConcurrent, reservoir} = this.storeOptions);\n\t if ((maxConcurrent != null) && (reservoir != null)) {\n\t return Math.min(maxConcurrent - this._running, reservoir);\n\t } else if (maxConcurrent != null) {\n\t return maxConcurrent - this._running;\n\t } else if (reservoir != null) {\n\t return reservoir;\n\t } else {\n\t return null;\n\t }\n\t }\n\n\t conditionsCheck(weight) {\n\t var capacity;\n\t capacity = this.computeCapacity();\n\t return (capacity == null) || weight <= capacity;\n\t }\n\n\t async __incrementReservoir__(incr) {\n\t var reservoir;\n\t await this.yieldLoop();\n\t reservoir = this.storeOptions.reservoir += incr;\n\t this.instance._drainAll(this.computeCapacity());\n\t return reservoir;\n\t }\n\n\t async __currentReservoir__() {\n\t await this.yieldLoop();\n\t return this.storeOptions.reservoir;\n\t }\n\n\t isBlocked(now) {\n\t return this._unblockTime >= now;\n\t }\n\n\t check(weight, now) {\n\t return this.conditionsCheck(weight) && (this._nextRequest - now) <= 0;\n\t }\n\n\t async __check__(weight) {\n\t var now;\n\t await this.yieldLoop();\n\t now = Date.now();\n\t return this.check(weight, now);\n\t }\n\n\t async __register__(index, weight, expiration) {\n\t var now, wait;\n\t await this.yieldLoop();\n\t now = Date.now();\n\t if (this.conditionsCheck(weight)) {\n\t this._running += weight;\n\t if (this.storeOptions.reservoir != null) {\n\t this.storeOptions.reservoir -= weight;\n\t }\n\t wait = Math.max(this._nextRequest - now, 0);\n\t this._nextRequest = now + wait + this.storeOptions.minTime;\n\t return {\n\t success: true,\n\t wait,\n\t reservoir: this.storeOptions.reservoir\n\t };\n\t } else {\n\t return {\n\t success: false\n\t };\n\t }\n\t }\n\n\t strategyIsBlock() {\n\t return this.storeOptions.strategy === 3;\n\t }\n\n\t async __submit__(queueLength, weight) {\n\t var blocked, now, reachedHWM;\n\t await this.yieldLoop();\n\t if ((this.storeOptions.maxConcurrent != null) && weight > this.storeOptions.maxConcurrent) {\n\t throw new BottleneckError$2(`Impossible to add a job having a weight of ${weight} to a limiter having a maxConcurrent setting of ${this.storeOptions.maxConcurrent}`);\n\t }\n\t now = Date.now();\n\t reachedHWM = (this.storeOptions.highWater != null) && queueLength === this.storeOptions.highWater && !this.check(weight, now);\n\t blocked = this.strategyIsBlock() && (reachedHWM || this.isBlocked(now));\n\t if (blocked) {\n\t this._unblockTime = now + this.computePenalty();\n\t this._nextRequest = this._unblockTime + this.storeOptions.minTime;\n\t this.instance._dropAllQueued();\n\t }\n\t return {\n\t reachedHWM,\n\t blocked,\n\t strategy: this.storeOptions.strategy\n\t };\n\t }\n\n\t async __free__(index, weight) {\n\t await this.yieldLoop();\n\t this._running -= weight;\n\t this._done += weight;\n\t this.instance._drainAll(this.computeCapacity());\n\t return {\n\t running: this._running\n\t };\n\t }\n\n\t};\n\n\tvar LocalDatastore_1 = LocalDatastore;\n\n\tvar BottleneckError$3, States;\n\n\tBottleneckError$3 = BottleneckError_1;\n\n\tStates = class States {\n\t constructor(status1) {\n\t this.status = status1;\n\t this._jobs = {};\n\t this.counts = this.status.map(function() {\n\t return 0;\n\t });\n\t }\n\n\t next(id) {\n\t var current, next;\n\t current = this._jobs[id];\n\t next = current + 1;\n\t if ((current != null) && next < this.status.length) {\n\t this.counts[current]--;\n\t this.counts[next]++;\n\t return this._jobs[id]++;\n\t } else if (current != null) {\n\t this.counts[current]--;\n\t return delete this._jobs[id];\n\t }\n\t }\n\n\t start(id) {\n\t var initial;\n\t initial = 0;\n\t this._jobs[id] = initial;\n\t return this.counts[initial]++;\n\t }\n\n\t remove(id) {\n\t var current;\n\t current = this._jobs[id];\n\t if (current != null) {\n\t this.counts[current]--;\n\t delete this._jobs[id];\n\t }\n\t return current != null;\n\t }\n\n\t jobStatus(id) {\n\t var ref;\n\t return (ref = this.status[this._jobs[id]]) != null ? ref : null;\n\t }\n\n\t statusJobs(status) {\n\t var k, pos, ref, results, v;\n\t if (status != null) {\n\t pos = this.status.indexOf(status);\n\t if (pos < 0) {\n\t throw new BottleneckError$3(`status must be one of ${this.status.join(', ')}`);\n\t }\n\t ref = this._jobs;\n\t results = [];\n\t for (k in ref) {\n\t v = ref[k];\n\t if (v === pos) {\n\t results.push(k);\n\t }\n\t }\n\t return results;\n\t } else {\n\t return Object.keys(this._jobs);\n\t }\n\t }\n\n\t statusCounts() {\n\t return this.counts.reduce(((acc, v, i) => {\n\t acc[this.status[i]] = v;\n\t return acc;\n\t }), {});\n\t }\n\n\t};\n\n\tvar States_1 = States;\n\n\tvar DLList$2, Sync;\n\n\tDLList$2 = DLList_1;\n\n\tSync = class Sync {\n\t constructor(name, Promise) {\n\t this.schedule = this.schedule.bind(this);\n\t this.name = name;\n\t this.Promise = Promise;\n\t this._running = 0;\n\t this._queue = new DLList$2();\n\t }\n\n\t isEmpty() {\n\t return this._queue.length === 0;\n\t }\n\n\t async _tryToRun() {\n\t var args, cb, error, reject, resolve, returned, task;\n\t if ((this._running < 1) && this._queue.length > 0) {\n\t this._running++;\n\t ({task, args, resolve, reject} = this._queue.shift());\n\t cb = (await (async function() {\n\t try {\n\t returned = (await task(...args));\n\t return function() {\n\t return resolve(returned);\n\t };\n\t } catch (error1) {\n\t error = error1;\n\t return function() {\n\t return reject(error);\n\t };\n\t }\n\t })());\n\t this._running--;\n\t this._tryToRun();\n\t return cb();\n\t }\n\t }\n\n\t schedule(task, ...args) {\n\t var promise, reject, resolve;\n\t resolve = reject = null;\n\t promise = new this.Promise(function(_resolve, _reject) {\n\t resolve = _resolve;\n\t return reject = _reject;\n\t });\n\t this._queue.push({task, args, resolve, reject});\n\t this._tryToRun();\n\t return promise;\n\t }\n\n\t};\n\n\tvar Sync_1 = Sync;\n\n\tvar version = \"2.19.5\";\n\tvar version$1 = {\n\t\tversion: version\n\t};\n\n\tvar version$2 = /*#__PURE__*/Object.freeze({\n\t\tversion: version,\n\t\tdefault: version$1\n\t});\n\n\tvar require$$2 = () => console.log('You must import the full version of Bottleneck in order to use this feature.');\n\n\tvar require$$3 = () => console.log('You must import the full version of Bottleneck in order to use this feature.');\n\n\tvar require$$4 = () => console.log('You must import the full version of Bottleneck in order to use this feature.');\n\n\tvar Events$2, Group, IORedisConnection$1, RedisConnection$1, Scripts$1, parser$3;\n\n\tparser$3 = parser;\n\n\tEvents$2 = Events_1;\n\n\tRedisConnection$1 = require$$2;\n\n\tIORedisConnection$1 = require$$3;\n\n\tScripts$1 = require$$4;\n\n\tGroup = (function() {\n\t class Group {\n\t constructor(limiterOptions = {}) {\n\t this.deleteKey = this.deleteKey.bind(this);\n\t this.limiterOptions = limiterOptions;\n\t parser$3.load(this.limiterOptions, this.defaults, this);\n\t this.Events = new Events$2(this);\n\t this.instances = {};\n\t this.Bottleneck = Bottleneck_1;\n\t this._startAutoCleanup();\n\t this.sharedConnection = this.connection != null;\n\t if (this.connection == null) {\n\t if (this.limiterOptions.datastore === \"redis\") {\n\t this.connection = new RedisConnection$1(Object.assign({}, this.limiterOptions, {Events: this.Events}));\n\t } else if (this.limiterOptions.datastore === \"ioredis\") {\n\t this.connection = new IORedisConnection$1(Object.assign({}, this.limiterOptions, {Events: this.Events}));\n\t }\n\t }\n\t }\n\n\t key(key = \"\") {\n\t var ref;\n\t return (ref = this.instances[key]) != null ? ref : (() => {\n\t var limiter;\n\t limiter = this.instances[key] = new this.Bottleneck(Object.assign(this.limiterOptions, {\n\t id: `${this.id}-${key}`,\n\t timeout: this.timeout,\n\t connection: this.connection\n\t }));\n\t this.Events.trigger(\"created\", limiter, key);\n\t return limiter;\n\t })();\n\t }\n\n\t async deleteKey(key = \"\") {\n\t var deleted, instance;\n\t instance = this.instances[key];\n\t if (this.connection) {\n\t deleted = (await this.connection.__runCommand__(['del', ...Scripts$1.allKeys(`${this.id}-${key}`)]));\n\t }\n\t if (instance != null) {\n\t delete this.instances[key];\n\t await instance.disconnect();\n\t }\n\t return (instance != null) || deleted > 0;\n\t }\n\n\t limiters() {\n\t var k, ref, results, v;\n\t ref = this.instances;\n\t results = [];\n\t for (k in ref) {\n\t v = ref[k];\n\t results.push({\n\t key: k,\n\t limiter: v\n\t });\n\t }\n\t return results;\n\t }\n\n\t keys() {\n\t return Object.keys(this.instances);\n\t }\n\n\t async clusterKeys() {\n\t var cursor, end, found, i, k, keys, len, next, start;\n\t if (this.connection == null) {\n\t return this.Promise.resolve(this.keys());\n\t }\n\t keys = [];\n\t cursor = null;\n\t start = `b_${this.id}-`.length;\n\t end = \"_settings\".length;\n\t while (cursor !== 0) {\n\t [next, found] = (await this.connection.__runCommand__([\"scan\", cursor != null ? cursor : 0, \"match\", `b_${this.id}-*_settings`, \"count\", 10000]));\n\t cursor = ~~next;\n\t for (i = 0, len = found.length; i < len; i++) {\n\t k = found[i];\n\t keys.push(k.slice(start, -end));\n\t }\n\t }\n\t return keys;\n\t }\n\n\t _startAutoCleanup() {\n\t var base;\n\t clearInterval(this.interval);\n\t return typeof (base = (this.interval = setInterval(async() => {\n\t var e, k, ref, results, time, v;\n\t time = Date.now();\n\t ref = this.instances;\n\t results = [];\n\t for (k in ref) {\n\t v = ref[k];\n\t try {\n\t if ((await v._store.__groupCheck__(time))) {\n\t results.push(this.deleteKey(k));\n\t } else {\n\t results.push(void 0);\n\t }\n\t } catch (error) {\n\t e = error;\n\t results.push(v.Events.trigger(\"error\", e));\n\t }\n\t }\n\t return results;\n\t }, this.timeout / 2))).unref === \"function\" ? base.unref() : void 0;\n\t }\n\n\t updateSettings(options = {}) {\n\t parser$3.overwrite(options, this.defaults, this);\n\t parser$3.overwrite(options, options, this.limiterOptions);\n\t if (options.timeout != null) {\n\t return this._startAutoCleanup();\n\t }\n\t }\n\n\t disconnect(flush = true) {\n\t var ref;\n\t if (!this.sharedConnection) {\n\t return (ref = this.connection) != null ? ref.disconnect(flush) : void 0;\n\t }\n\t }\n\n\t }\n\t Group.prototype.defaults = {\n\t timeout: 1000 * 60 * 5,\n\t connection: null,\n\t Promise: Promise,\n\t id: \"group-key\"\n\t };\n\n\t return Group;\n\n\t}).call(commonjsGlobal);\n\n\tvar Group_1 = Group;\n\n\tvar Batcher, Events$3, parser$4;\n\n\tparser$4 = parser;\n\n\tEvents$3 = Events_1;\n\n\tBatcher = (function() {\n\t class Batcher {\n\t constructor(options = {}) {\n\t this.options = options;\n\t parser$4.load(this.options, this.defaults, this);\n\t this.Events = new Events$3(this);\n\t this._arr = [];\n\t this._resetPromise();\n\t this._lastFlush = Date.now();\n\t }\n\n\t _resetPromise() {\n\t return this._promise = new this.Promise((res, rej) => {\n\t return this._resolve = res;\n\t });\n\t }\n\n\t _flush() {\n\t clearTimeout(this._timeout);\n\t this._lastFlush = Date.now();\n\t this._resolve();\n\t this.Events.trigger(\"batch\", this._arr);\n\t this._arr = [];\n\t return this._resetPromise();\n\t }\n\n\t add(data) {\n\t var ret;\n\t this._arr.push(data);\n\t ret = this._promise;\n\t if (this._arr.length === this.maxSize) {\n\t this._flush();\n\t } else if ((this.maxTime != null) && this._arr.length === 1) {\n\t this._timeout = setTimeout(() => {\n\t return this._flush();\n\t }, this.maxTime);\n\t }\n\t return ret;\n\t }\n\n\t }\n\t Batcher.prototype.defaults = {\n\t maxTime: null,\n\t maxSize: null,\n\t Promise: Promise\n\t };\n\n\t return Batcher;\n\n\t}).call(commonjsGlobal);\n\n\tvar Batcher_1 = Batcher;\n\n\tvar require$$4$1 = () => console.log('You must import the full version of Bottleneck in order to use this feature.');\n\n\tvar require$$8 = getCjsExportFromNamespace(version$2);\n\n\tvar Bottleneck, DEFAULT_PRIORITY$1, Events$4, Job$1, LocalDatastore$1, NUM_PRIORITIES$1, Queues$1, RedisDatastore$1, States$1, Sync$1, parser$5,\n\t splice = [].splice;\n\n\tNUM_PRIORITIES$1 = 10;\n\n\tDEFAULT_PRIORITY$1 = 5;\n\n\tparser$5 = parser;\n\n\tQueues$1 = Queues_1;\n\n\tJob$1 = Job_1;\n\n\tLocalDatastore$1 = LocalDatastore_1;\n\n\tRedisDatastore$1 = require$$4$1;\n\n\tEvents$4 = Events_1;\n\n\tStates$1 = States_1;\n\n\tSync$1 = Sync_1;\n\n\tBottleneck = (function() {\n\t class Bottleneck {\n\t constructor(options = {}, ...invalid) {\n\t var storeInstanceOptions, storeOptions;\n\t this._addToQueue = this._addToQueue.bind(this);\n\t this._validateOptions(options, invalid);\n\t parser$5.load(options, this.instanceDefaults, this);\n\t this._queues = new Queues$1(NUM_PRIORITIES$1);\n\t this._scheduled = {};\n\t this._states = new States$1([\"RECEIVED\", \"QUEUED\", \"RUNNING\", \"EXECUTING\"].concat(this.trackDoneStatus ? [\"DONE\"] : []));\n\t this._limiter = null;\n\t this.Events = new Events$4(this);\n\t this._submitLock = new Sync$1(\"submit\", this.Promise);\n\t this._registerLock = new Sync$1(\"register\", this.Promise);\n\t storeOptions = parser$5.load(options, this.storeDefaults, {});\n\t this._store = (function() {\n\t if (this.datastore === \"redis\" || this.datastore === \"ioredis\" || (this.connection != null)) {\n\t storeInstanceOptions = parser$5.load(options, this.redisStoreDefaults, {});\n\t return new RedisDatastore$1(this, storeOptions, storeInstanceOptions);\n\t } else if (this.datastore === \"local\") {\n\t storeInstanceOptions = parser$5.load(options, this.localStoreDefaults, {});\n\t return new LocalDatastore$1(this, storeOptions, storeInstanceOptions);\n\t } else {\n\t throw new Bottleneck.prototype.BottleneckError(`Invalid datastore type: ${this.datastore}`);\n\t }\n\t }).call(this);\n\t this._queues.on(\"leftzero\", () => {\n\t var ref;\n\t return (ref = this._store.heartbeat) != null ? typeof ref.ref === \"function\" ? ref.ref() : void 0 : void 0;\n\t });\n\t this._queues.on(\"zero\", () => {\n\t var ref;\n\t return (ref = this._store.heartbeat) != null ? typeof ref.unref === \"function\" ? ref.unref() : void 0 : void 0;\n\t });\n\t }\n\n\t _validateOptions(options, invalid) {\n\t if (!((options != null) && typeof options === \"object\" && invalid.length === 0)) {\n\t throw new Bottleneck.prototype.BottleneckError(\"Bottleneck v2 takes a single object argument. Refer to https://github.com/SGrondin/bottleneck#upgrading-to-v2 if you're upgrading from Bottleneck v1.\");\n\t }\n\t }\n\n\t ready() {\n\t return this._store.ready;\n\t }\n\n\t clients() {\n\t return this._store.clients;\n\t }\n\n\t channel() {\n\t return `b_${this.id}`;\n\t }\n\n\t channel_client() {\n\t return `b_${this.id}_${this._store.clientId}`;\n\t }\n\n\t publish(message) {\n\t return this._store.__publish__(message);\n\t }\n\n\t disconnect(flush = true) {\n\t return this._store.__disconnect__(flush);\n\t }\n\n\t chain(_limiter) {\n\t this._limiter = _limiter;\n\t return this;\n\t }\n\n\t queued(priority) {\n\t return this._queues.queued(priority);\n\t }\n\n\t clusterQueued() {\n\t return this._store.__queued__();\n\t }\n\n\t empty() {\n\t return this.queued() === 0 && this._submitLock.isEmpty();\n\t }\n\n\t running() {\n\t return this._store.__running__();\n\t }\n\n\t done() {\n\t return this._store.__done__();\n\t }\n\n\t jobStatus(id) {\n\t return this._states.jobStatus(id);\n\t }\n\n\t jobs(status) {\n\t return this._states.statusJobs(status);\n\t }\n\n\t counts() {\n\t return this._states.statusCounts();\n\t }\n\n\t _randomIndex() {\n\t return Math.random().toString(36).slice(2);\n\t }\n\n\t check(weight = 1) {\n\t return this._store.__check__(weight);\n\t }\n\n\t _clearGlobalState(index) {\n\t if (this._scheduled[index] != null) {\n\t clearTimeout(this._scheduled[index].expiration);\n\t delete this._scheduled[index];\n\t return true;\n\t } else {\n\t return false;\n\t }\n\t }\n\n\t async _free(index, job, options, eventInfo) {\n\t var e, running;\n\t try {\n\t ({running} = (await this._store.__free__(index, options.weight)));\n\t this.Events.trigger(\"debug\", `Freed ${options.id}`, eventInfo);\n\t if (running === 0 && this.empty()) {\n\t return this.Events.trigger(\"idle\");\n\t }\n\t } catch (error1) {\n\t e = error1;\n\t return this.Events.trigger(\"error\", e);\n\t }\n\t }\n\n\t _run(index, job, wait) {\n\t var clearGlobalState, free, run;\n\t job.doRun();\n\t clearGlobalState = this._clearGlobalState.bind(this, index);\n\t run = this._run.bind(this, index, job);\n\t free = this._free.bind(this, index, job);\n\t return this._scheduled[index] = {\n\t timeout: setTimeout(() => {\n\t return job.doExecute(this._limiter, clearGlobalState, run, free);\n\t }, wait),\n\t expiration: job.options.expiration != null ? setTimeout(function() {\n\t return job.doExpire(clearGlobalState, run, free);\n\t }, wait + job.options.expiration) : void 0,\n\t job: job\n\t };\n\t }\n\n\t _drainOne(capacity) {\n\t return this._registerLock.schedule(() => {\n\t var args, index, next, options, queue;\n\t if (this.queued() === 0) {\n\t return this.Promise.resolve(null);\n\t }\n\t queue = this._queues.getFirst();\n\t ({options, args} = next = queue.first());\n\t if ((capacity != null) && options.weight > capacity) {\n\t return this.Promise.resolve(null);\n\t }\n\t this.Events.trigger(\"debug\", `Draining ${options.id}`, {args, options});\n\t index = this._randomIndex();\n\t return this._store.__register__(index, options.weight, options.expiration).then(({success, wait, reservoir}) => {\n\t var empty;\n\t this.Events.trigger(\"debug\", `Drained ${options.id}`, {success, args, options});\n\t if (success) {\n\t queue.shift();\n\t empty = this.empty();\n\t if (empty) {\n\t this.Events.trigger(\"empty\");\n\t }\n\t if (reservoir === 0) {\n\t this.Events.trigger(\"depleted\", empty);\n\t }\n\t this._run(index, next, wait);\n\t return this.Promise.resolve(options.weight);\n\t } else {\n\t return this.Promise.resolve(null);\n\t }\n\t });\n\t });\n\t }\n\n\t _drainAll(capacity, total = 0) {\n\t return this._drainOne(capacity).then((drained) => {\n\t var newCapacity;\n\t if (drained != null) {\n\t newCapacity = capacity != null ? capacity - drained : capacity;\n\t return this._drainAll(newCapacity, total + drained);\n\t } else {\n\t return this.Promise.resolve(total);\n\t }\n\t }).catch((e) => {\n\t return this.Events.trigger(\"error\", e);\n\t });\n\t }\n\n\t _dropAllQueued(message) {\n\t return this._queues.shiftAll(function(job) {\n\t return job.doDrop({message});\n\t });\n\t }\n\n\t stop(options = {}) {\n\t var done, waitForExecuting;\n\t options = parser$5.load(options, this.stopDefaults);\n\t waitForExecuting = (at) => {\n\t var finished;\n\t finished = () => {\n\t var counts;\n\t counts = this._states.counts;\n\t return (counts[0] + counts[1] + counts[2] + counts[3]) === at;\n\t };\n\t return new this.Promise((resolve, reject) => {\n\t if (finished()) {\n\t return resolve();\n\t } else {\n\t return this.on(\"done\", () => {\n\t if (finished()) {\n\t this.removeAllListeners(\"done\");\n\t return resolve();\n\t }\n\t });\n\t }\n\t });\n\t };\n\t done = options.dropWaitingJobs ? (this._run = function(index, next) {\n\t return next.doDrop({\n\t message: options.dropErrorMessage\n\t });\n\t }, this._drainOne = () => {\n\t return this.Promise.resolve(null);\n\t }, this._registerLock.schedule(() => {\n\t return this._submitLock.schedule(() => {\n\t var k, ref, v;\n\t ref = this._scheduled;\n\t for (k in ref) {\n\t v = ref[k];\n\t if (this.jobStatus(v.job.options.id) === \"RUNNING\") {\n\t clearTimeout(v.timeout);\n\t clearTimeout(v.expiration);\n\t v.job.doDrop({\n\t message: options.dropErrorMessage\n\t });\n\t }\n\t }\n\t this._dropAllQueued(options.dropErrorMessage);\n\t return waitForExecuting(0);\n\t });\n\t })) : this.schedule({\n\t priority: NUM_PRIORITIES$1 - 1,\n\t weight: 0\n\t }, () => {\n\t return waitForExecuting(1);\n\t });\n\t this._receive = function(job) {\n\t return job._reject(new Bottleneck.prototype.BottleneckError(options.enqueueErrorMessage));\n\t };\n\t this.stop = () => {\n\t return this.Promise.reject(new Bottleneck.prototype.BottleneckError(\"stop() has already been called\"));\n\t };\n\t return done;\n\t }\n\n\t async _addToQueue(job) {\n\t var args, blocked, error, options, reachedHWM, shifted, strategy;\n\t ({args, options} = job);\n\t try {\n\t ({reachedHWM, blocked, strategy} = (await this._store.__submit__(this.queued(), options.weight)));\n\t } catch (error1) {\n\t error = error1;\n\t this.Events.trigger(\"debug\", `Could not queue ${options.id}`, {args, options, error});\n\t job.doDrop({error});\n\t return false;\n\t }\n\t if (blocked) {\n\t job.doDrop();\n\t return true;\n\t } else if (reachedHWM) {\n\t shifted = strategy === Bottleneck.prototype.strategy.LEAK ? this._queues.shiftLastFrom(options.priority) : strategy === Bottleneck.prototype.strategy.OVERFLOW_PRIORITY ? this._queues.shiftLastFrom(options.priority + 1) : strategy === Bottleneck.prototype.strategy.OVERFLOW ? job : void 0;\n\t if (shifted != null) {\n\t shifted.doDrop();\n\t }\n\t if ((shifted == null) || strategy === Bottleneck.prototype.strategy.OVERFLOW) {\n\t if (shifted == null) {\n\t job.doDrop();\n\t }\n\t return reachedHWM;\n\t }\n\t }\n\t job.doQueue(reachedHWM, blocked);\n\t this._queues.push(job);\n\t await this._drainAll();\n\t return reachedHWM;\n\t }\n\n\t _receive(job) {\n\t if (this._states.jobStatus(job.options.id) != null) {\n\t job._reject(new Bottleneck.prototype.BottleneckError(`A job with the same id already exists (id=${job.options.id})`));\n\t return false;\n\t } else {\n\t job.doReceive();\n\t return this._submitLock.schedule(this._addToQueue, job);\n\t }\n\t }\n\n\t submit(...args) {\n\t var cb, fn, job, options, ref, ref1, task;\n\t if (typeof args[0] === \"function\") {\n\t ref = args, [fn, ...args] = ref, [cb] = splice.call(args, -1);\n\t options = parser$5.load({}, this.jobDefaults);\n\t } else {\n\t ref1 = args, [options, fn, ...args] = ref1, [cb] = splice.call(args, -1);\n\t options = parser$5.load(options, this.jobDefaults);\n\t }\n\t task = (...args) => {\n\t return new this.Promise(function(resolve, reject) {\n\t return fn(...args, function(...args) {\n\t return (args[0] != null ? reject : resolve)(args);\n\t });\n\t });\n\t };\n\t job = new Job$1(task, args, options, this.jobDefaults, this.rejectOnDrop, this.Events, this._states, this.Promise);\n\t job.promise.then(function(args) {\n\t return typeof cb === \"function\" ? cb(...args) : void 0;\n\t }).catch(function(args) {\n\t if (Array.isArray(args)) {\n\t return typeof cb === \"function\" ? cb(...args) : void 0;\n\t } else {\n\t return typeof cb === \"function\" ? cb(args) : void 0;\n\t }\n\t });\n\t return this._receive(job);\n\t }\n\n\t schedule(...args) {\n\t var job, options, task;\n\t if (typeof args[0] === \"function\") {\n\t [task, ...args] = args;\n\t options = {};\n\t } else {\n\t [options, task, ...args] = args;\n\t }\n\t job = new Job$1(task, args, options, this.jobDefaults, this.rejectOnDrop, this.Events, this._states, this.Promise);\n\t this._receive(job);\n\t return job.promise;\n\t }\n\n\t wrap(fn) {\n\t var schedule, wrapped;\n\t schedule = this.schedule.bind(this);\n\t wrapped = function(...args) {\n\t return schedule(fn.bind(this), ...args);\n\t };\n\t wrapped.withOptions = function(options, ...args) {\n\t return schedule(options, fn, ...args);\n\t };\n\t return wrapped;\n\t }\n\n\t async updateSettings(options = {}) {\n\t await this._store.__updateSettings__(parser$5.overwrite(options, this.storeDefaults));\n\t parser$5.overwrite(options, this.instanceDefaults, this);\n\t return this;\n\t }\n\n\t currentReservoir() {\n\t return this._store.__currentReservoir__();\n\t }\n\n\t incrementReservoir(incr = 0) {\n\t return this._store.__incrementReservoir__(incr);\n\t }\n\n\t }\n\t Bottleneck.default = Bottleneck;\n\n\t Bottleneck.Events = Events$4;\n\n\t Bottleneck.version = Bottleneck.prototype.version = require$$8.version;\n\n\t Bottleneck.strategy = Bottleneck.prototype.strategy = {\n\t LEAK: 1,\n\t OVERFLOW: 2,\n\t OVERFLOW_PRIORITY: 4,\n\t BLOCK: 3\n\t };\n\n\t Bottleneck.BottleneckError = Bottleneck.prototype.BottleneckError = BottleneckError_1;\n\n\t Bottleneck.Group = Bottleneck.prototype.Group = Group_1;\n\n\t Bottleneck.RedisConnection = Bottleneck.prototype.RedisConnection = require$$2;\n\n\t Bottleneck.IORedisConnection = Bottleneck.prototype.IORedisConnection = require$$3;\n\n\t Bottleneck.Batcher = Bottleneck.prototype.Batcher = Batcher_1;\n\n\t Bottleneck.prototype.jobDefaults = {\n\t priority: DEFAULT_PRIORITY$1,\n\t weight: 1,\n\t expiration: null,\n\t id: \"\"\n\t };\n\n\t Bottleneck.prototype.storeDefaults = {\n\t maxConcurrent: null,\n\t minTime: 0,\n\t highWater: null,\n\t strategy: Bottleneck.prototype.strategy.LEAK,\n\t penalty: null,\n\t reservoir: null,\n\t reservoirRefreshInterval: null,\n\t reservoirRefreshAmount: null,\n\t reservoirIncreaseInterval: null,\n\t reservoirIncreaseAmount: null,\n\t reservoirIncreaseMaximum: null\n\t };\n\n\t Bottleneck.prototype.localStoreDefaults = {\n\t Promise: Promise,\n\t timeout: null,\n\t heartbeatInterval: 250\n\t };\n\n\t Bottleneck.prototype.redisStoreDefaults = {\n\t Promise: Promise,\n\t timeout: null,\n\t heartbeatInterval: 5000,\n\t clientTimeout: 10000,\n\t Redis: null,\n\t clientOptions: {},\n\t clusterNodes: null,\n\t clearDatastore: false,\n\t connection: null\n\t };\n\n\t Bottleneck.prototype.instanceDefaults = {\n\t datastore: \"local\",\n\t connection: null,\n\t id: \"\",\n\t rejectOnDrop: true,\n\t trackDoneStatus: false,\n\t Promise: Promise\n\t };\n\n\t Bottleneck.prototype.stopDefaults = {\n\t enqueueErrorMessage: \"This limiter has been stopped and cannot accept new jobs.\",\n\t dropWaitingJobs: true,\n\t dropErrorMessage: \"This limiter has been stopped.\"\n\t };\n\n\t return Bottleneck;\n\n\t}).call(commonjsGlobal);\n\n\tvar Bottleneck_1 = Bottleneck;\n\n\tvar lib = Bottleneck_1;\n\n\treturn lib;\n\n})));\n","var balanced = require('balanced-match');\n\nmodule.exports = expandTop;\n\nvar escSlash = '\\0SLASH'+Math.random()+'\\0';\nvar escOpen = '\\0OPEN'+Math.random()+'\\0';\nvar escClose = '\\0CLOSE'+Math.random()+'\\0';\nvar escComma = '\\0COMMA'+Math.random()+'\\0';\nvar escPeriod = '\\0PERIOD'+Math.random()+'\\0';\n\nfunction numeric(str) {\n return parseInt(str, 10) == str\n ? parseInt(str, 10)\n : str.charCodeAt(0);\n}\n\nfunction escapeBraces(str) {\n return str.split('\\\\\\\\').join(escSlash)\n .split('\\\\{').join(escOpen)\n .split('\\\\}').join(escClose)\n .split('\\\\,').join(escComma)\n .split('\\\\.').join(escPeriod);\n}\n\nfunction unescapeBraces(str) {\n return str.split(escSlash).join('\\\\')\n .split(escOpen).join('{')\n .split(escClose).join('}')\n .split(escComma).join(',')\n .split(escPeriod).join('.');\n}\n\n\n// Basically just str.split(\",\"), but handling cases\n// where we have nested braced sections, which should be\n// treated as individual members, like {a,{b,c},d}\nfunction parseCommaParts(str) {\n if (!str)\n return [''];\n\n var parts = [];\n var m = balanced('{', '}', str);\n\n if (!m)\n return str.split(',');\n\n var pre = m.pre;\n var body = m.body;\n var post = m.post;\n var p = pre.split(',');\n\n p[p.length-1] += '{' + body + '}';\n var postParts = parseCommaParts(post);\n if (post.length) {\n p[p.length-1] += postParts.shift();\n p.push.apply(p, postParts);\n }\n\n parts.push.apply(parts, p);\n\n return parts;\n}\n\nfunction expandTop(str) {\n if (!str)\n return [];\n\n // I don't know why Bash 4.3 does this, but it does.\n // Anything starting with {} will have the first two bytes preserved\n // but *only* at the top level, so {},a}b will not expand to anything,\n // but a{},b}c will be expanded to [a}c,abc].\n // One could argue that this is a bug in Bash, but since the goal of\n // this module is to match Bash's rules, we escape a leading {}\n if (str.substr(0, 2) === '{}') {\n str = '\\\\{\\\\}' + str.substr(2);\n }\n\n return expand(escapeBraces(str), true).map(unescapeBraces);\n}\n\nfunction embrace(str) {\n return '{' + str + '}';\n}\nfunction isPadded(el) {\n return /^-?0\\d/.test(el);\n}\n\nfunction lte(i, y) {\n return i <= y;\n}\nfunction gte(i, y) {\n return i >= y;\n}\n\nfunction expand(str, isTop) {\n var expansions = [];\n\n var m = balanced('{', '}', str);\n if (!m) return [str];\n\n // no need to expand pre, since it is guaranteed to be free of brace-sets\n var pre = m.pre;\n var post = m.post.length\n ? expand(m.post, false)\n : [''];\n\n if (/\\$$/.test(m.pre)) { \n for (var k = 0; k < post.length; k++) {\n var expansion = pre+ '{' + m.body + '}' + post[k];\n expansions.push(expansion);\n }\n } else {\n var isNumericSequence = /^-?\\d+\\.\\.-?\\d+(?:\\.\\.-?\\d+)?$/.test(m.body);\n var isAlphaSequence = /^[a-zA-Z]\\.\\.[a-zA-Z](?:\\.\\.-?\\d+)?$/.test(m.body);\n var isSequence = isNumericSequence || isAlphaSequence;\n var isOptions = m.body.indexOf(',') >= 0;\n if (!isSequence && !isOptions) {\n // {a},b}\n if (m.post.match(/,.*\\}/)) {\n str = m.pre + '{' + m.body + escClose + m.post;\n return expand(str);\n }\n return [str];\n }\n\n var n;\n if (isSequence) {\n n = m.body.split(/\\.\\./);\n } else {\n n = parseCommaParts(m.body);\n if (n.length === 1) {\n // x{{a,b}}y ==> x{a}y x{b}y\n n = expand(n[0], false).map(embrace);\n if (n.length === 1) {\n return post.map(function(p) {\n return m.pre + n[0] + p;\n });\n }\n }\n }\n\n // at this point, n is the parts, and we know it's not a comma set\n // with a single entry.\n var N;\n\n if (isSequence) {\n var x = numeric(n[0]);\n var y = numeric(n[1]);\n var width = Math.max(n[0].length, n[1].length)\n var incr = n.length == 3\n ? Math.abs(numeric(n[2]))\n : 1;\n var test = lte;\n var reverse = y < x;\n if (reverse) {\n incr *= -1;\n test = gte;\n }\n var pad = n.some(isPadded);\n\n N = [];\n\n for (var i = x; test(i, y); i += incr) {\n var c;\n if (isAlphaSequence) {\n c = String.fromCharCode(i);\n if (c === '\\\\')\n c = '';\n } else {\n c = String(i);\n if (pad) {\n var need = width - c.length;\n if (need > 0) {\n var z = new Array(need + 1).join('0');\n if (i < 0)\n c = '-' + z + c.slice(1);\n else\n c = z + c;\n }\n }\n }\n N.push(c);\n }\n } else {\n N = [];\n\n for (var j = 0; j < n.length; j++) {\n N.push.apply(N, expand(n[j], false));\n }\n }\n\n for (var j = 0; j < N.length; j++) {\n for (var k = 0; k < post.length; k++) {\n var expansion = pre + N[j] + post[k];\n if (!isTop || isSequence || expansion)\n expansions.push(expansion);\n }\n }\n }\n\n return expansions;\n}\n\n","module.exports = Buffers;\n\nfunction Buffers (bufs) {\n if (!(this instanceof Buffers)) return new Buffers(bufs);\n this.buffers = bufs || [];\n this.length = this.buffers.reduce(function (size, buf) {\n return size + buf.length\n }, 0);\n}\n\nBuffers.prototype.push = function () {\n for (var i = 0; i < arguments.length; i++) {\n if (!Buffer.isBuffer(arguments[i])) {\n throw new TypeError('Tried to push a non-buffer');\n }\n }\n \n for (var i = 0; i < arguments.length; i++) {\n var buf = arguments[i];\n this.buffers.push(buf);\n this.length += buf.length;\n }\n return this.length;\n};\n\nBuffers.prototype.unshift = function () {\n for (var i = 0; i < arguments.length; i++) {\n if (!Buffer.isBuffer(arguments[i])) {\n throw new TypeError('Tried to unshift a non-buffer');\n }\n }\n \n for (var i = 0; i < arguments.length; i++) {\n var buf = arguments[i];\n this.buffers.unshift(buf);\n this.length += buf.length;\n }\n return this.length;\n};\n\nBuffers.prototype.copy = function (dst, dStart, start, end) {\n return this.slice(start, end).copy(dst, dStart, 0, end - start);\n};\n\nBuffers.prototype.splice = function (i, howMany) {\n var buffers = this.buffers;\n var index = i >= 0 ? i : this.length - i;\n var reps = [].slice.call(arguments, 2);\n \n if (howMany === undefined) {\n howMany = this.length - index;\n }\n else if (howMany > this.length - index) {\n howMany = this.length - index;\n }\n \n for (var i = 0; i < reps.length; i++) {\n this.length += reps[i].length;\n }\n \n var removed = new Buffers();\n var bytes = 0;\n \n var startBytes = 0;\n for (\n var ii = 0;\n ii < buffers.length && startBytes + buffers[ii].length < index;\n ii ++\n ) { startBytes += buffers[ii].length }\n \n if (index - startBytes > 0) {\n var start = index - startBytes;\n \n if (start + howMany < buffers[ii].length) {\n removed.push(buffers[ii].slice(start, start + howMany));\n \n var orig = buffers[ii];\n //var buf = new Buffer(orig.length - howMany);\n var buf0 = new Buffer(start);\n for (var i = 0; i < start; i++) {\n buf0[i] = orig[i];\n }\n \n var buf1 = new Buffer(orig.length - start - howMany);\n for (var i = start + howMany; i < orig.length; i++) {\n buf1[ i - howMany - start ] = orig[i]\n }\n \n if (reps.length > 0) {\n var reps_ = reps.slice();\n reps_.unshift(buf0);\n reps_.push(buf1);\n buffers.splice.apply(buffers, [ ii, 1 ].concat(reps_));\n ii += reps_.length;\n reps = [];\n }\n else {\n buffers.splice(ii, 1, buf0, buf1);\n //buffers[ii] = buf;\n ii += 2;\n }\n }\n else {\n removed.push(buffers[ii].slice(start));\n buffers[ii] = buffers[ii].slice(0, start);\n ii ++;\n }\n }\n \n if (reps.length > 0) {\n buffers.splice.apply(buffers, [ ii, 0 ].concat(reps));\n ii += reps.length;\n }\n \n while (removed.length < howMany) {\n var buf = buffers[ii];\n var len = buf.length;\n var take = Math.min(len, howMany - removed.length);\n \n if (take === len) {\n removed.push(buf);\n buffers.splice(ii, 1);\n }\n else {\n removed.push(buf.slice(0, take));\n buffers[ii] = buffers[ii].slice(take);\n }\n }\n \n this.length -= removed.length;\n \n return removed;\n};\n \nBuffers.prototype.slice = function (i, j) {\n var buffers = this.buffers;\n if (j === undefined) j = this.length;\n if (i === undefined) i = 0;\n \n if (j > this.length) j = this.length;\n \n var startBytes = 0;\n for (\n var si = 0;\n si < buffers.length && startBytes + buffers[si].length <= i;\n si ++\n ) { startBytes += buffers[si].length }\n \n var target = new Buffer(j - i);\n \n var ti = 0;\n for (var ii = si; ti < j - i && ii < buffers.length; ii++) {\n var len = buffers[ii].length;\n \n var start = ti === 0 ? i - startBytes : 0;\n var end = ti + len >= j - i\n ? Math.min(start + (j - i) - ti, len)\n : len\n ;\n \n buffers[ii].copy(target, ti, start, end);\n ti += end - start;\n }\n \n return target;\n};\n\nBuffers.prototype.pos = function (i) {\n if (i < 0 || i >= this.length) throw new Error('oob');\n var l = i, bi = 0, bu = null;\n for (;;) {\n bu = this.buffers[bi];\n if (l < bu.length) {\n return {buf: bi, offset: l};\n } else {\n l -= bu.length;\n }\n bi++;\n }\n};\n\nBuffers.prototype.get = function get (i) {\n var pos = this.pos(i);\n\n return this.buffers[pos.buf].get(pos.offset);\n};\n\nBuffers.prototype.set = function set (i, b) {\n var pos = this.pos(i);\n\n return this.buffers[pos.buf].set(pos.offset, b);\n};\n\nBuffers.prototype.indexOf = function (needle, offset) {\n if (\"string\" === typeof needle) {\n needle = new Buffer(needle);\n } else if (needle instanceof Buffer) {\n // already a buffer\n } else {\n throw new Error('Invalid type for a search string');\n }\n\n if (!needle.length) {\n return 0;\n }\n\n if (!this.length) {\n return -1;\n }\n\n var i = 0, j = 0, match = 0, mstart, pos = 0;\n\n // start search from a particular point in the virtual buffer\n if (offset) {\n var p = this.pos(offset);\n i = p.buf;\n j = p.offset;\n pos = offset;\n }\n\n // for each character in virtual buffer\n for (;;) {\n while (j >= this.buffers[i].length) {\n j = 0;\n i++;\n\n if (i >= this.buffers.length) {\n // search string not found\n return -1;\n }\n }\n\n var char = this.buffers[i][j];\n\n if (char == needle[match]) {\n // keep track where match started\n if (match == 0) {\n mstart = {\n i: i,\n j: j,\n pos: pos\n };\n }\n match++;\n if (match == needle.length) {\n // full match\n return mstart.pos;\n }\n } else if (match != 0) {\n // a partial match ended, go back to match starting position\n // this will continue the search at the next character\n i = mstart.i;\n j = mstart.j;\n pos = mstart.pos;\n match = 0;\n }\n\n j++;\n pos++;\n }\n};\n\nBuffers.prototype.toBuffer = function() {\n return this.slice();\n}\n\nBuffers.prototype.toString = function(encoding, start, end) {\n return this.slice(start, end).toString(encoding);\n}\n","var Traverse = require('traverse');\nvar EventEmitter = require('events').EventEmitter;\n\nmodule.exports = Chainsaw;\nfunction Chainsaw (builder) {\n var saw = Chainsaw.saw(builder, {});\n var r = builder.call(saw.handlers, saw);\n if (r !== undefined) saw.handlers = r;\n saw.record();\n return saw.chain();\n};\n\nChainsaw.light = function ChainsawLight (builder) {\n var saw = Chainsaw.saw(builder, {});\n var r = builder.call(saw.handlers, saw);\n if (r !== undefined) saw.handlers = r;\n return saw.chain();\n};\n\nChainsaw.saw = function (builder, handlers) {\n var saw = new EventEmitter;\n saw.handlers = handlers;\n saw.actions = [];\n\n saw.chain = function () {\n var ch = Traverse(saw.handlers).map(function (node) {\n if (this.isRoot) return node;\n var ps = this.path;\n\n if (typeof node === 'function') {\n this.update(function () {\n saw.actions.push({\n path : ps,\n args : [].slice.call(arguments)\n });\n return ch;\n });\n }\n });\n\n process.nextTick(function () {\n saw.emit('begin');\n saw.next();\n });\n\n return ch;\n };\n\n saw.pop = function () {\n return saw.actions.shift();\n };\n\n saw.next = function () {\n var action = saw.pop();\n\n if (!action) {\n saw.emit('end');\n }\n else if (!action.trap) {\n var node = saw.handlers;\n action.path.forEach(function (key) { node = node[key] });\n node.apply(saw.handlers, action.args);\n }\n };\n\n saw.nest = function (cb) {\n var args = [].slice.call(arguments, 1);\n var autonext = true;\n\n if (typeof cb === 'boolean') {\n var autonext = cb;\n cb = args.shift();\n }\n\n var s = Chainsaw.saw(builder, {});\n var r = builder.call(s.handlers, s);\n\n if (r !== undefined) s.handlers = r;\n\n // If we are recording...\n if (\"undefined\" !== typeof saw.step) {\n // ... our children should, too\n s.record();\n }\n\n cb.apply(s.chain(), args);\n if (autonext !== false) s.on('end', saw.next);\n };\n\n saw.record = function () {\n upgradeChainsaw(saw);\n };\n\n ['trap', 'down', 'jump'].forEach(function (method) {\n saw[method] = function () {\n throw new Error(\"To use the trap, down and jump features, please \"+\n \"call record() first to start recording actions.\");\n };\n });\n\n return saw;\n};\n\nfunction upgradeChainsaw(saw) {\n saw.step = 0;\n\n // override pop\n saw.pop = function () {\n return saw.actions[saw.step++];\n };\n\n saw.trap = function (name, cb) {\n var ps = Array.isArray(name) ? name : [name];\n saw.actions.push({\n path : ps,\n step : saw.step,\n cb : cb,\n trap : true\n });\n };\n\n saw.down = function (name) {\n var ps = (Array.isArray(name) ? name : [name]).join('/');\n var i = saw.actions.slice(saw.step).map(function (x) {\n if (x.trap && x.step <= saw.step) return false;\n return x.path.join('/') == ps;\n }).indexOf(true);\n\n if (i >= 0) saw.step += i;\n else saw.step = saw.actions.length;\n\n var act = saw.actions[saw.step - 1];\n if (act && act.trap) {\n // It's a trap!\n saw.step = act.step;\n act.cb();\n }\n else saw.next();\n };\n\n saw.jump = function (step) {\n saw.step = step;\n saw.next();\n };\n};\n","var util = require('util');\nvar Stream = require('stream').Stream;\nvar DelayedStream = require('delayed-stream');\n\nmodule.exports = CombinedStream;\nfunction CombinedStream() {\n this.writable = false;\n this.readable = true;\n this.dataSize = 0;\n this.maxDataSize = 2 * 1024 * 1024;\n this.pauseStreams = true;\n\n this._released = false;\n this._streams = [];\n this._currentStream = null;\n this._insideLoop = false;\n this._pendingNext = false;\n}\nutil.inherits(CombinedStream, Stream);\n\nCombinedStream.create = function(options) {\n var combinedStream = new this();\n\n options = options || {};\n for (var option in options) {\n combinedStream[option] = options[option];\n }\n\n return combinedStream;\n};\n\nCombinedStream.isStreamLike = function(stream) {\n return (typeof stream !== 'function')\n && (typeof stream !== 'string')\n && (typeof stream !== 'boolean')\n && (typeof stream !== 'number')\n && (!Buffer.isBuffer(stream));\n};\n\nCombinedStream.prototype.append = function(stream) {\n var isStreamLike = CombinedStream.isStreamLike(stream);\n\n if (isStreamLike) {\n if (!(stream instanceof DelayedStream)) {\n var newStream = DelayedStream.create(stream, {\n maxDataSize: Infinity,\n pauseStream: this.pauseStreams,\n });\n stream.on('data', this._checkDataSize.bind(this));\n stream = newStream;\n }\n\n this._handleErrors(stream);\n\n if (this.pauseStreams) {\n stream.pause();\n }\n }\n\n this._streams.push(stream);\n return this;\n};\n\nCombinedStream.prototype.pipe = function(dest, options) {\n Stream.prototype.pipe.call(this, dest, options);\n this.resume();\n return dest;\n};\n\nCombinedStream.prototype._getNext = function() {\n this._currentStream = null;\n\n if (this._insideLoop) {\n this._pendingNext = true;\n return; // defer call\n }\n\n this._insideLoop = true;\n try {\n do {\n this._pendingNext = false;\n this._realGetNext();\n } while (this._pendingNext);\n } finally {\n this._insideLoop = false;\n }\n};\n\nCombinedStream.prototype._realGetNext = function() {\n var stream = this._streams.shift();\n\n\n if (typeof stream == 'undefined') {\n this.end();\n return;\n }\n\n if (typeof stream !== 'function') {\n this._pipeNext(stream);\n return;\n }\n\n var getStream = stream;\n getStream(function(stream) {\n var isStreamLike = CombinedStream.isStreamLike(stream);\n if (isStreamLike) {\n stream.on('data', this._checkDataSize.bind(this));\n this._handleErrors(stream);\n }\n\n this._pipeNext(stream);\n }.bind(this));\n};\n\nCombinedStream.prototype._pipeNext = function(stream) {\n this._currentStream = stream;\n\n var isStreamLike = CombinedStream.isStreamLike(stream);\n if (isStreamLike) {\n stream.on('end', this._getNext.bind(this));\n stream.pipe(this, {end: false});\n return;\n }\n\n var value = stream;\n this.write(value);\n this._getNext();\n};\n\nCombinedStream.prototype._handleErrors = function(stream) {\n var self = this;\n stream.on('error', function(err) {\n self._emitError(err);\n });\n};\n\nCombinedStream.prototype.write = function(data) {\n this.emit('data', data);\n};\n\nCombinedStream.prototype.pause = function() {\n if (!this.pauseStreams) {\n return;\n }\n\n if(this.pauseStreams && this._currentStream && typeof(this._currentStream.pause) == 'function') this._currentStream.pause();\n this.emit('pause');\n};\n\nCombinedStream.prototype.resume = function() {\n if (!this._released) {\n this._released = true;\n this.writable = true;\n this._getNext();\n }\n\n if(this.pauseStreams && this._currentStream && typeof(this._currentStream.resume) == 'function') this._currentStream.resume();\n this.emit('resume');\n};\n\nCombinedStream.prototype.end = function() {\n this._reset();\n this.emit('end');\n};\n\nCombinedStream.prototype.destroy = function() {\n this._reset();\n this.emit('close');\n};\n\nCombinedStream.prototype._reset = function() {\n this.writable = false;\n this._streams = [];\n this._currentStream = null;\n};\n\nCombinedStream.prototype._checkDataSize = function() {\n this._updateDataSize();\n if (this.dataSize <= this.maxDataSize) {\n return;\n }\n\n var message =\n 'DelayedStream#maxDataSize of ' + this.maxDataSize + ' bytes exceeded.';\n this._emitError(new Error(message));\n};\n\nCombinedStream.prototype._updateDataSize = function() {\n this.dataSize = 0;\n\n var self = this;\n this._streams.forEach(function(stream) {\n if (!stream.dataSize) {\n return;\n }\n\n self.dataSize += stream.dataSize;\n });\n\n if (this._currentStream && this._currentStream.dataSize) {\n this.dataSize += this._currentStream.dataSize;\n }\n};\n\nCombinedStream.prototype._emitError = function(err) {\n this._reset();\n this.emit('error', err);\n};\n","/**\n * node-compress-commons\n *\n * Copyright (c) 2014 Chris Talkington, contributors.\n * Licensed under the MIT license.\n * https://github.com/archiverjs/node-compress-commons/blob/master/LICENSE-MIT\n */\nvar ArchiveEntry = module.exports = function() {};\n\nArchiveEntry.prototype.getName = function() {};\n\nArchiveEntry.prototype.getSize = function() {};\n\nArchiveEntry.prototype.getLastModifiedDate = function() {};\n\nArchiveEntry.prototype.isDirectory = function() {};","/**\n * node-compress-commons\n *\n * Copyright (c) 2014 Chris Talkington, contributors.\n * Licensed under the MIT license.\n * https://github.com/archiverjs/node-compress-commons/blob/master/LICENSE-MIT\n */\nvar inherits = require('util').inherits;\nvar isStream = require('is-stream');\nvar Transform = require('readable-stream').Transform;\n\nvar ArchiveEntry = require('./archive-entry');\nvar util = require('../util');\n\nvar ArchiveOutputStream = module.exports = function(options) {\n if (!(this instanceof ArchiveOutputStream)) {\n return new ArchiveOutputStream(options);\n }\n\n Transform.call(this, options);\n\n this.offset = 0;\n this._archive = {\n finish: false,\n finished: false,\n processing: false\n };\n};\n\ninherits(ArchiveOutputStream, Transform);\n\nArchiveOutputStream.prototype._appendBuffer = function(zae, source, callback) {\n // scaffold only\n};\n\nArchiveOutputStream.prototype._appendStream = function(zae, source, callback) {\n // scaffold only\n};\n\nArchiveOutputStream.prototype._emitErrorCallback = function(err) {\n if (err) {\n this.emit('error', err);\n }\n};\n\nArchiveOutputStream.prototype._finish = function(ae) {\n // scaffold only\n};\n\nArchiveOutputStream.prototype._normalizeEntry = function(ae) {\n // scaffold only\n};\n\nArchiveOutputStream.prototype._transform = function(chunk, encoding, callback) {\n callback(null, chunk);\n};\n\nArchiveOutputStream.prototype.entry = function(ae, source, callback) {\n source = source || null;\n\n if (typeof callback !== 'function') {\n callback = this._emitErrorCallback.bind(this);\n }\n\n if (!(ae instanceof ArchiveEntry)) {\n callback(new Error('not a valid instance of ArchiveEntry'));\n return;\n }\n\n if (this._archive.finish || this._archive.finished) {\n callback(new Error('unacceptable entry after finish'));\n return;\n }\n\n if (this._archive.processing) {\n callback(new Error('already processing an entry'));\n return;\n }\n\n this._archive.processing = true;\n this._normalizeEntry(ae);\n this._entry = ae;\n\n source = util.normalizeInputSource(source);\n\n if (Buffer.isBuffer(source)) {\n this._appendBuffer(ae, source, callback);\n } else if (isStream(source)) {\n this._appendStream(ae, source, callback);\n } else {\n this._archive.processing = false;\n callback(new Error('input source must be valid Stream or Buffer instance'));\n return;\n }\n\n return this;\n};\n\nArchiveOutputStream.prototype.finish = function() {\n if (this._archive.processing) {\n this._archive.finish = true;\n return;\n }\n\n this._finish();\n};\n\nArchiveOutputStream.prototype.getBytesWritten = function() {\n return this.offset;\n};\n\nArchiveOutputStream.prototype.write = function(chunk, cb) {\n if (chunk) {\n this.offset += chunk.length;\n }\n\n return Transform.prototype.write.call(this, chunk, cb);\n};","/**\n * node-compress-commons\n *\n * Copyright (c) 2014 Chris Talkington, contributors.\n * Licensed under the MIT license.\n * https://github.com/archiverjs/node-compress-commons/blob/master/LICENSE-MIT\n */\nmodule.exports = {\n WORD: 4,\n DWORD: 8,\n EMPTY: Buffer.alloc(0),\n\n SHORT: 2,\n SHORT_MASK: 0xffff,\n SHORT_SHIFT: 16,\n SHORT_ZERO: Buffer.from(Array(2)),\n LONG: 4,\n LONG_ZERO: Buffer.from(Array(4)),\n\n MIN_VERSION_INITIAL: 10,\n MIN_VERSION_DATA_DESCRIPTOR: 20,\n MIN_VERSION_ZIP64: 45,\n VERSION_MADEBY: 45,\n\n METHOD_STORED: 0,\n METHOD_DEFLATED: 8,\n\n PLATFORM_UNIX: 3,\n PLATFORM_FAT: 0,\n\n SIG_LFH: 0x04034b50,\n SIG_DD: 0x08074b50,\n SIG_CFH: 0x02014b50,\n SIG_EOCD: 0x06054b50,\n SIG_ZIP64_EOCD: 0x06064B50,\n SIG_ZIP64_EOCD_LOC: 0x07064B50,\n\n ZIP64_MAGIC_SHORT: 0xffff,\n ZIP64_MAGIC: 0xffffffff,\n ZIP64_EXTRA_ID: 0x0001,\n\n ZLIB_NO_COMPRESSION: 0,\n ZLIB_BEST_SPEED: 1,\n ZLIB_BEST_COMPRESSION: 9,\n ZLIB_DEFAULT_COMPRESSION: -1,\n\n MODE_MASK: 0xFFF,\n DEFAULT_FILE_MODE: 33188, // 010644 = -rw-r--r-- = S_IFREG | S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH\n DEFAULT_DIR_MODE: 16877, // 040755 = drwxr-xr-x = S_IFDIR | S_IRWXU | S_IRGRP | S_IXGRP | S_IROTH | S_IXOTH\n\n EXT_FILE_ATTR_DIR: 1106051088, // 010173200020 = drwxr-xr-x = (((S_IFDIR | 0755) << 16) | S_DOS_D)\n EXT_FILE_ATTR_FILE: 2175008800, // 020151000040 = -rw-r--r-- = (((S_IFREG | 0644) << 16) | S_DOS_A) >>> 0\n\n // Unix file types\n S_IFMT: 61440, // 0170000 type of file mask\n S_IFIFO: 4096, // 010000 named pipe (fifo)\n S_IFCHR: 8192, // 020000 character special\n S_IFDIR: 16384, // 040000 directory\n S_IFBLK: 24576, // 060000 block special\n S_IFREG: 32768, // 0100000 regular\n S_IFLNK: 40960, // 0120000 symbolic link\n S_IFSOCK: 49152, // 0140000 socket\n\n // DOS file type flags\n S_DOS_A: 32, // 040 Archive\n S_DOS_D: 16, // 020 Directory\n S_DOS_V: 8, // 010 Volume\n S_DOS_S: 4, // 04 System\n S_DOS_H: 2, // 02 Hidden\n S_DOS_R: 1 // 01 Read Only\n};\n","/**\n * node-compress-commons\n *\n * Copyright (c) 2014 Chris Talkington, contributors.\n * Licensed under the MIT license.\n * https://github.com/archiverjs/node-compress-commons/blob/master/LICENSE-MIT\n */\nvar zipUtil = require('./util');\n\nvar DATA_DESCRIPTOR_FLAG = 1 << 3;\nvar ENCRYPTION_FLAG = 1 << 0;\nvar NUMBER_OF_SHANNON_FANO_TREES_FLAG = 1 << 2;\nvar SLIDING_DICTIONARY_SIZE_FLAG = 1 << 1;\nvar STRONG_ENCRYPTION_FLAG = 1 << 6;\nvar UFT8_NAMES_FLAG = 1 << 11;\n\nvar GeneralPurposeBit = module.exports = function() {\n if (!(this instanceof GeneralPurposeBit)) {\n return new GeneralPurposeBit();\n }\n\n this.descriptor = false;\n this.encryption = false;\n this.utf8 = false;\n this.numberOfShannonFanoTrees = 0;\n this.strongEncryption = false;\n this.slidingDictionarySize = 0;\n\n return this;\n};\n\nGeneralPurposeBit.prototype.encode = function() {\n return zipUtil.getShortBytes(\n (this.descriptor ? DATA_DESCRIPTOR_FLAG : 0) |\n (this.utf8 ? UFT8_NAMES_FLAG : 0) |\n (this.encryption ? ENCRYPTION_FLAG : 0) |\n (this.strongEncryption ? STRONG_ENCRYPTION_FLAG : 0)\n );\n};\n\nGeneralPurposeBit.prototype.parse = function(buf, offset) {\n var flag = zipUtil.getShortBytesValue(buf, offset);\n var gbp = new GeneralPurposeBit();\n\n gbp.useDataDescriptor((flag & DATA_DESCRIPTOR_FLAG) !== 0);\n gbp.useUTF8ForNames((flag & UFT8_NAMES_FLAG) !== 0);\n gbp.useStrongEncryption((flag & STRONG_ENCRYPTION_FLAG) !== 0);\n gbp.useEncryption((flag & ENCRYPTION_FLAG) !== 0);\n gbp.setSlidingDictionarySize((flag & SLIDING_DICTIONARY_SIZE_FLAG) !== 0 ? 8192 : 4096);\n gbp.setNumberOfShannonFanoTrees((flag & NUMBER_OF_SHANNON_FANO_TREES_FLAG) !== 0 ? 3 : 2);\n\n return gbp;\n};\n\nGeneralPurposeBit.prototype.setNumberOfShannonFanoTrees = function(n) {\n this.numberOfShannonFanoTrees = n;\n};\n\nGeneralPurposeBit.prototype.getNumberOfShannonFanoTrees = function() {\n return this.numberOfShannonFanoTrees;\n};\n\nGeneralPurposeBit.prototype.setSlidingDictionarySize = function(n) {\n this.slidingDictionarySize = n;\n};\n\nGeneralPurposeBit.prototype.getSlidingDictionarySize = function() {\n return this.slidingDictionarySize;\n};\n\nGeneralPurposeBit.prototype.useDataDescriptor = function(b) {\n this.descriptor = b;\n};\n\nGeneralPurposeBit.prototype.usesDataDescriptor = function() {\n return this.descriptor;\n};\n\nGeneralPurposeBit.prototype.useEncryption = function(b) {\n this.encryption = b;\n};\n\nGeneralPurposeBit.prototype.usesEncryption = function() {\n return this.encryption;\n};\n\nGeneralPurposeBit.prototype.useStrongEncryption = function(b) {\n this.strongEncryption = b;\n};\n\nGeneralPurposeBit.prototype.usesStrongEncryption = function() {\n return this.strongEncryption;\n};\n\nGeneralPurposeBit.prototype.useUTF8ForNames = function(b) {\n this.utf8 = b;\n};\n\nGeneralPurposeBit.prototype.usesUTF8ForNames = function() {\n return this.utf8;\n};","/**\n * node-compress-commons\n *\n * Copyright (c) 2014 Chris Talkington, contributors.\n * Licensed under the MIT license.\n * https://github.com/archiverjs/node-compress-commons/blob/master/LICENSE-MIT\n */\nmodule.exports = {\n /**\n * Bits used for permissions (and sticky bit)\n */\n PERM_MASK: 4095, // 07777\n\n /**\n * Bits used to indicate the filesystem object type.\n */\n FILE_TYPE_FLAG: 61440, // 0170000\n\n /**\n * Indicates symbolic links.\n */\n LINK_FLAG: 40960, // 0120000\n\n /**\n * Indicates plain files.\n */\n FILE_FLAG: 32768, // 0100000\n\n /**\n * Indicates directories.\n */\n DIR_FLAG: 16384, // 040000\n\n // ----------------------------------------------------------\n // somewhat arbitrary choices that are quite common for shared\n // installations\n // -----------------------------------------------------------\n\n /**\n * Default permissions for symbolic links.\n */\n DEFAULT_LINK_PERM: 511, // 0777\n\n /**\n * Default permissions for directories.\n */\n DEFAULT_DIR_PERM: 493, // 0755\n\n /**\n * Default permissions for plain files.\n */\n DEFAULT_FILE_PERM: 420 // 0644\n};","/**\n * node-compress-commons\n *\n * Copyright (c) 2014 Chris Talkington, contributors.\n * Licensed under the MIT license.\n * https://github.com/archiverjs/node-compress-commons/blob/master/LICENSE-MIT\n */\nvar util = module.exports = {};\n\nutil.dateToDos = function(d, forceLocalTime) {\n forceLocalTime = forceLocalTime || false;\n\n var year = forceLocalTime ? d.getFullYear() : d.getUTCFullYear();\n\n if (year < 1980) {\n return 2162688; // 1980-1-1 00:00:00\n } else if (year >= 2044) {\n return 2141175677; // 2043-12-31 23:59:58\n }\n\n var val = {\n year: year,\n month: forceLocalTime ? d.getMonth() : d.getUTCMonth(),\n date: forceLocalTime ? d.getDate() : d.getUTCDate(),\n hours: forceLocalTime ? d.getHours() : d.getUTCHours(),\n minutes: forceLocalTime ? d.getMinutes() : d.getUTCMinutes(),\n seconds: forceLocalTime ? d.getSeconds() : d.getUTCSeconds()\n };\n\n return ((val.year - 1980) << 25) | ((val.month + 1) << 21) | (val.date << 16) |\n (val.hours << 11) | (val.minutes << 5) | (val.seconds / 2);\n};\n\nutil.dosToDate = function(dos) {\n return new Date(((dos >> 25) & 0x7f) + 1980, ((dos >> 21) & 0x0f) - 1, (dos >> 16) & 0x1f, (dos >> 11) & 0x1f, (dos >> 5) & 0x3f, (dos & 0x1f) << 1);\n};\n\nutil.fromDosTime = function(buf) {\n return util.dosToDate(buf.readUInt32LE(0));\n};\n\nutil.getEightBytes = function(v) {\n var buf = Buffer.alloc(8);\n buf.writeUInt32LE(v % 0x0100000000, 0);\n buf.writeUInt32LE((v / 0x0100000000) | 0, 4);\n\n return buf;\n};\n\nutil.getShortBytes = function(v) {\n var buf = Buffer.alloc(2);\n buf.writeUInt16LE((v & 0xFFFF) >>> 0, 0);\n\n return buf;\n};\n\nutil.getShortBytesValue = function(buf, offset) {\n return buf.readUInt16LE(offset);\n};\n\nutil.getLongBytes = function(v) {\n var buf = Buffer.alloc(4);\n buf.writeUInt32LE((v & 0xFFFFFFFF) >>> 0, 0);\n\n return buf;\n};\n\nutil.getLongBytesValue = function(buf, offset) {\n return buf.readUInt32LE(offset);\n};\n\nutil.toDosTime = function(d) {\n return util.getLongBytes(util.dateToDos(d));\n};","/**\n * node-compress-commons\n *\n * Copyright (c) 2014 Chris Talkington, contributors.\n * Licensed under the MIT license.\n * https://github.com/archiverjs/node-compress-commons/blob/master/LICENSE-MIT\n */\nvar inherits = require('util').inherits;\nvar normalizePath = require('normalize-path');\n\nvar ArchiveEntry = require('../archive-entry');\nvar GeneralPurposeBit = require('./general-purpose-bit');\nvar UnixStat = require('./unix-stat');\n\nvar constants = require('./constants');\nvar zipUtil = require('./util');\n\nvar ZipArchiveEntry = module.exports = function(name) {\n if (!(this instanceof ZipArchiveEntry)) {\n return new ZipArchiveEntry(name);\n }\n\n ArchiveEntry.call(this);\n\n this.platform = constants.PLATFORM_FAT;\n this.method = -1;\n\n this.name = null;\n this.size = 0;\n this.csize = 0;\n this.gpb = new GeneralPurposeBit();\n this.crc = 0;\n this.time = -1;\n\n this.minver = constants.MIN_VERSION_INITIAL;\n this.mode = -1;\n this.extra = null;\n this.exattr = 0;\n this.inattr = 0;\n this.comment = null;\n\n if (name) {\n this.setName(name);\n }\n};\n\ninherits(ZipArchiveEntry, ArchiveEntry);\n\n/**\n * Returns the extra fields related to the entry.\n *\n * @returns {Buffer}\n */\nZipArchiveEntry.prototype.getCentralDirectoryExtra = function() {\n return this.getExtra();\n};\n\n/**\n * Returns the comment set for the entry.\n *\n * @returns {string}\n */\nZipArchiveEntry.prototype.getComment = function() {\n return this.comment !== null ? this.comment : '';\n};\n\n/**\n * Returns the compressed size of the entry.\n *\n * @returns {number}\n */\nZipArchiveEntry.prototype.getCompressedSize = function() {\n return this.csize;\n};\n\n/**\n * Returns the CRC32 digest for the entry.\n *\n * @returns {number}\n */\nZipArchiveEntry.prototype.getCrc = function() {\n return this.crc;\n};\n\n/**\n * Returns the external file attributes for the entry.\n *\n * @returns {number}\n */\nZipArchiveEntry.prototype.getExternalAttributes = function() {\n return this.exattr;\n};\n\n/**\n * Returns the extra fields related to the entry.\n *\n * @returns {Buffer}\n */\nZipArchiveEntry.prototype.getExtra = function() {\n return this.extra !== null ? this.extra : constants.EMPTY;\n};\n\n/**\n * Returns the general purpose bits related to the entry.\n *\n * @returns {GeneralPurposeBit}\n */\nZipArchiveEntry.prototype.getGeneralPurposeBit = function() {\n return this.gpb;\n};\n\n/**\n * Returns the internal file attributes for the entry.\n *\n * @returns {number}\n */\nZipArchiveEntry.prototype.getInternalAttributes = function() {\n return this.inattr;\n};\n\n/**\n * Returns the last modified date of the entry.\n *\n * @returns {number}\n */\nZipArchiveEntry.prototype.getLastModifiedDate = function() {\n return this.getTime();\n};\n\n/**\n * Returns the extra fields related to the entry.\n *\n * @returns {Buffer}\n */\nZipArchiveEntry.prototype.getLocalFileDataExtra = function() {\n return this.getExtra();\n};\n\n/**\n * Returns the compression method used on the entry.\n *\n * @returns {number}\n */\nZipArchiveEntry.prototype.getMethod = function() {\n return this.method;\n};\n\n/**\n * Returns the filename of the entry.\n *\n * @returns {string}\n */\nZipArchiveEntry.prototype.getName = function() {\n return this.name;\n};\n\n/**\n * Returns the platform on which the entry was made.\n *\n * @returns {number}\n */\nZipArchiveEntry.prototype.getPlatform = function() {\n return this.platform;\n};\n\n/**\n * Returns the size of the entry.\n *\n * @returns {number}\n */\nZipArchiveEntry.prototype.getSize = function() {\n return this.size;\n};\n\n/**\n * Returns a date object representing the last modified date of the entry.\n *\n * @returns {number|Date}\n */\nZipArchiveEntry.prototype.getTime = function() {\n return this.time !== -1 ? zipUtil.dosToDate(this.time) : -1;\n};\n\n/**\n * Returns the DOS timestamp for the entry.\n *\n * @returns {number}\n */\nZipArchiveEntry.prototype.getTimeDos = function() {\n return this.time !== -1 ? this.time : 0;\n};\n\n/**\n * Returns the UNIX file permissions for the entry.\n *\n * @returns {number}\n */\nZipArchiveEntry.prototype.getUnixMode = function() {\n return this.platform !== constants.PLATFORM_UNIX ? 0 : ((this.getExternalAttributes() >> constants.SHORT_SHIFT) & constants.SHORT_MASK);\n};\n\n/**\n * Returns the version of ZIP needed to extract the entry.\n *\n * @returns {number}\n */\nZipArchiveEntry.prototype.getVersionNeededToExtract = function() {\n return this.minver;\n};\n\n/**\n * Sets the comment of the entry.\n *\n * @param comment\n */\nZipArchiveEntry.prototype.setComment = function(comment) {\n if (Buffer.byteLength(comment) !== comment.length) {\n this.getGeneralPurposeBit().useUTF8ForNames(true);\n }\n\n this.comment = comment;\n};\n\n/**\n * Sets the compressed size of the entry.\n *\n * @param size\n */\nZipArchiveEntry.prototype.setCompressedSize = function(size) {\n if (size < 0) {\n throw new Error('invalid entry compressed size');\n }\n\n this.csize = size;\n};\n\n/**\n * Sets the checksum of the entry.\n *\n * @param crc\n */\nZipArchiveEntry.prototype.setCrc = function(crc) {\n if (crc < 0) {\n throw new Error('invalid entry crc32');\n }\n\n this.crc = crc;\n};\n\n/**\n * Sets the external file attributes of the entry.\n *\n * @param attr\n */\nZipArchiveEntry.prototype.setExternalAttributes = function(attr) {\n this.exattr = attr >>> 0;\n};\n\n/**\n * Sets the extra fields related to the entry.\n *\n * @param extra\n */\nZipArchiveEntry.prototype.setExtra = function(extra) {\n this.extra = extra;\n};\n\n/**\n * Sets the general purpose bits related to the entry.\n *\n * @param gpb\n */\nZipArchiveEntry.prototype.setGeneralPurposeBit = function(gpb) {\n if (!(gpb instanceof GeneralPurposeBit)) {\n throw new Error('invalid entry GeneralPurposeBit');\n }\n\n this.gpb = gpb;\n};\n\n/**\n * Sets the internal file attributes of the entry.\n *\n * @param attr\n */\nZipArchiveEntry.prototype.setInternalAttributes = function(attr) {\n this.inattr = attr;\n};\n\n/**\n * Sets the compression method of the entry.\n *\n * @param method\n */\nZipArchiveEntry.prototype.setMethod = function(method) {\n if (method < 0) {\n throw new Error('invalid entry compression method');\n }\n\n this.method = method;\n};\n\n/**\n * Sets the name of the entry.\n *\n * @param name\n * @param prependSlash\n */\nZipArchiveEntry.prototype.setName = function(name, prependSlash = false) {\n name = normalizePath(name, false)\n .replace(/^\\w+:/, '')\n .replace(/^(\\.\\.\\/|\\/)+/, '');\n\n if (prependSlash) {\n name = `/${name}`;\n }\n\n if (Buffer.byteLength(name) !== name.length) {\n this.getGeneralPurposeBit().useUTF8ForNames(true);\n }\n\n this.name = name;\n};\n\n/**\n * Sets the platform on which the entry was made.\n *\n * @param platform\n */\nZipArchiveEntry.prototype.setPlatform = function(platform) {\n this.platform = platform;\n};\n\n/**\n * Sets the size of the entry.\n *\n * @param size\n */\nZipArchiveEntry.prototype.setSize = function(size) {\n if (size < 0) {\n throw new Error('invalid entry size');\n }\n\n this.size = size;\n};\n\n/**\n * Sets the time of the entry.\n *\n * @param time\n * @param forceLocalTime\n */\nZipArchiveEntry.prototype.setTime = function(time, forceLocalTime) {\n if (!(time instanceof Date)) {\n throw new Error('invalid entry time');\n }\n\n this.time = zipUtil.dateToDos(time, forceLocalTime);\n};\n\n/**\n * Sets the UNIX file permissions for the entry.\n *\n * @param mode\n */\nZipArchiveEntry.prototype.setUnixMode = function(mode) {\n mode |= this.isDirectory() ? constants.S_IFDIR : constants.S_IFREG;\n\n var extattr = 0;\n extattr |= (mode << constants.SHORT_SHIFT) | (this.isDirectory() ? constants.S_DOS_D : constants.S_DOS_A);\n\n this.setExternalAttributes(extattr);\n this.mode = mode & constants.MODE_MASK;\n this.platform = constants.PLATFORM_UNIX;\n};\n\n/**\n * Sets the version of ZIP needed to extract this entry.\n *\n * @param minver\n */\nZipArchiveEntry.prototype.setVersionNeededToExtract = function(minver) {\n this.minver = minver;\n};\n\n/**\n * Returns true if this entry represents a directory.\n *\n * @returns {boolean}\n */\nZipArchiveEntry.prototype.isDirectory = function() {\n return this.getName().slice(-1) === '/';\n};\n\n/**\n * Returns true if this entry represents a unix symlink,\n * in which case the entry's content contains the target path\n * for the symlink.\n *\n * @returns {boolean}\n */\nZipArchiveEntry.prototype.isUnixSymlink = function() {\n return (this.getUnixMode() & UnixStat.FILE_TYPE_FLAG) === UnixStat.LINK_FLAG;\n};\n\n/**\n * Returns true if this entry is using the ZIP64 extension of ZIP.\n *\n * @returns {boolean}\n */\nZipArchiveEntry.prototype.isZip64 = function() {\n return this.csize > constants.ZIP64_MAGIC || this.size > constants.ZIP64_MAGIC;\n};\n","/**\n * node-compress-commons\n *\n * Copyright (c) 2014 Chris Talkington, contributors.\n * Licensed under the MIT license.\n * https://github.com/archiverjs/node-compress-commons/blob/master/LICENSE-MIT\n */\nvar inherits = require('util').inherits;\nvar crc32 = require('crc-32');\nvar {CRC32Stream} = require('crc32-stream');\nvar {DeflateCRC32Stream} = require('crc32-stream');\n\nvar ArchiveOutputStream = require('../archive-output-stream');\nvar ZipArchiveEntry = require('./zip-archive-entry');\nvar GeneralPurposeBit = require('./general-purpose-bit');\n\nvar constants = require('./constants');\nvar util = require('../../util');\nvar zipUtil = require('./util');\n\nvar ZipArchiveOutputStream = module.exports = function(options) {\n if (!(this instanceof ZipArchiveOutputStream)) {\n return new ZipArchiveOutputStream(options);\n }\n\n options = this.options = this._defaults(options);\n\n ArchiveOutputStream.call(this, options);\n\n this._entry = null;\n this._entries = [];\n this._archive = {\n centralLength: 0,\n centralOffset: 0,\n comment: '',\n finish: false,\n finished: false,\n processing: false,\n forceZip64: options.forceZip64,\n forceLocalTime: options.forceLocalTime\n };\n};\n\ninherits(ZipArchiveOutputStream, ArchiveOutputStream);\n\nZipArchiveOutputStream.prototype._afterAppend = function(ae) {\n this._entries.push(ae);\n\n if (ae.getGeneralPurposeBit().usesDataDescriptor()) {\n this._writeDataDescriptor(ae);\n }\n\n this._archive.processing = false;\n this._entry = null;\n\n if (this._archive.finish && !this._archive.finished) {\n this._finish();\n }\n};\n\nZipArchiveOutputStream.prototype._appendBuffer = function(ae, source, callback) {\n if (source.length === 0) {\n ae.setMethod(constants.METHOD_STORED);\n }\n\n var method = ae.getMethod();\n\n if (method === constants.METHOD_STORED) {\n ae.setSize(source.length);\n ae.setCompressedSize(source.length);\n ae.setCrc(crc32.buf(source) >>> 0);\n }\n\n this._writeLocalFileHeader(ae);\n\n if (method === constants.METHOD_STORED) {\n this.write(source);\n this._afterAppend(ae);\n callback(null, ae);\n return;\n } else if (method === constants.METHOD_DEFLATED) {\n this._smartStream(ae, callback).end(source);\n return;\n } else {\n callback(new Error('compression method ' + method + ' not implemented'));\n return;\n }\n};\n\nZipArchiveOutputStream.prototype._appendStream = function(ae, source, callback) {\n ae.getGeneralPurposeBit().useDataDescriptor(true);\n ae.setVersionNeededToExtract(constants.MIN_VERSION_DATA_DESCRIPTOR);\n\n this._writeLocalFileHeader(ae);\n\n var smart = this._smartStream(ae, callback);\n source.once('error', function(err) {\n smart.emit('error', err);\n smart.end();\n })\n source.pipe(smart);\n};\n\nZipArchiveOutputStream.prototype._defaults = function(o) {\n if (typeof o !== 'object') {\n o = {};\n }\n\n if (typeof o.zlib !== 'object') {\n o.zlib = {};\n }\n\n if (typeof o.zlib.level !== 'number') {\n o.zlib.level = constants.ZLIB_BEST_SPEED;\n }\n\n o.forceZip64 = !!o.forceZip64;\n o.forceLocalTime = !!o.forceLocalTime;\n\n return o;\n};\n\nZipArchiveOutputStream.prototype._finish = function() {\n this._archive.centralOffset = this.offset;\n\n this._entries.forEach(function(ae) {\n this._writeCentralFileHeader(ae);\n }.bind(this));\n\n this._archive.centralLength = this.offset - this._archive.centralOffset;\n\n if (this.isZip64()) {\n this._writeCentralDirectoryZip64();\n }\n\n this._writeCentralDirectoryEnd();\n\n this._archive.processing = false;\n this._archive.finish = true;\n this._archive.finished = true;\n this.end();\n};\n\nZipArchiveOutputStream.prototype._normalizeEntry = function(ae) {\n if (ae.getMethod() === -1) {\n ae.setMethod(constants.METHOD_DEFLATED);\n }\n\n if (ae.getMethod() === constants.METHOD_DEFLATED) {\n ae.getGeneralPurposeBit().useDataDescriptor(true);\n ae.setVersionNeededToExtract(constants.MIN_VERSION_DATA_DESCRIPTOR);\n }\n\n if (ae.getTime() === -1) {\n ae.setTime(new Date(), this._archive.forceLocalTime);\n }\n\n ae._offsets = {\n file: 0,\n data: 0,\n contents: 0,\n };\n};\n\nZipArchiveOutputStream.prototype._smartStream = function(ae, callback) {\n var deflate = ae.getMethod() === constants.METHOD_DEFLATED;\n var process = deflate ? new DeflateCRC32Stream(this.options.zlib) : new CRC32Stream();\n var error = null;\n\n function handleStuff() {\n var digest = process.digest().readUInt32BE(0);\n ae.setCrc(digest);\n ae.setSize(process.size());\n ae.setCompressedSize(process.size(true));\n this._afterAppend(ae);\n callback(error, ae);\n }\n\n process.once('end', handleStuff.bind(this));\n process.once('error', function(err) {\n error = err;\n });\n\n process.pipe(this, { end: false });\n\n return process;\n};\n\nZipArchiveOutputStream.prototype._writeCentralDirectoryEnd = function() {\n var records = this._entries.length;\n var size = this._archive.centralLength;\n var offset = this._archive.centralOffset;\n\n if (this.isZip64()) {\n records = constants.ZIP64_MAGIC_SHORT;\n size = constants.ZIP64_MAGIC;\n offset = constants.ZIP64_MAGIC;\n }\n\n // signature\n this.write(zipUtil.getLongBytes(constants.SIG_EOCD));\n\n // disk numbers\n this.write(constants.SHORT_ZERO);\n this.write(constants.SHORT_ZERO);\n\n // number of entries\n this.write(zipUtil.getShortBytes(records));\n this.write(zipUtil.getShortBytes(records));\n\n // length and location of CD\n this.write(zipUtil.getLongBytes(size));\n this.write(zipUtil.getLongBytes(offset));\n\n // archive comment\n var comment = this.getComment();\n var commentLength = Buffer.byteLength(comment);\n this.write(zipUtil.getShortBytes(commentLength));\n this.write(comment);\n};\n\nZipArchiveOutputStream.prototype._writeCentralDirectoryZip64 = function() {\n // signature\n this.write(zipUtil.getLongBytes(constants.SIG_ZIP64_EOCD));\n\n // size of the ZIP64 EOCD record\n this.write(zipUtil.getEightBytes(44));\n\n // version made by\n this.write(zipUtil.getShortBytes(constants.MIN_VERSION_ZIP64));\n\n // version to extract\n this.write(zipUtil.getShortBytes(constants.MIN_VERSION_ZIP64));\n\n // disk numbers\n this.write(constants.LONG_ZERO);\n this.write(constants.LONG_ZERO);\n\n // number of entries\n this.write(zipUtil.getEightBytes(this._entries.length));\n this.write(zipUtil.getEightBytes(this._entries.length));\n\n // length and location of CD\n this.write(zipUtil.getEightBytes(this._archive.centralLength));\n this.write(zipUtil.getEightBytes(this._archive.centralOffset));\n\n // extensible data sector\n // not implemented at this time\n\n // end of central directory locator\n this.write(zipUtil.getLongBytes(constants.SIG_ZIP64_EOCD_LOC));\n\n // disk number holding the ZIP64 EOCD record\n this.write(constants.LONG_ZERO);\n\n // relative offset of the ZIP64 EOCD record\n this.write(zipUtil.getEightBytes(this._archive.centralOffset + this._archive.centralLength));\n\n // total number of disks\n this.write(zipUtil.getLongBytes(1));\n};\n\nZipArchiveOutputStream.prototype._writeCentralFileHeader = function(ae) {\n var gpb = ae.getGeneralPurposeBit();\n var method = ae.getMethod();\n var fileOffset = ae._offsets.file;\n\n var size = ae.getSize();\n var compressedSize = ae.getCompressedSize();\n\n if (ae.isZip64() || fileOffset > constants.ZIP64_MAGIC) {\n size = constants.ZIP64_MAGIC;\n compressedSize = constants.ZIP64_MAGIC;\n fileOffset = constants.ZIP64_MAGIC;\n\n ae.setVersionNeededToExtract(constants.MIN_VERSION_ZIP64);\n\n var extraBuf = Buffer.concat([\n zipUtil.getShortBytes(constants.ZIP64_EXTRA_ID),\n zipUtil.getShortBytes(24),\n zipUtil.getEightBytes(ae.getSize()),\n zipUtil.getEightBytes(ae.getCompressedSize()),\n zipUtil.getEightBytes(ae._offsets.file)\n ], 28);\n\n ae.setExtra(extraBuf);\n }\n\n // signature\n this.write(zipUtil.getLongBytes(constants.SIG_CFH));\n\n // version made by\n this.write(zipUtil.getShortBytes((ae.getPlatform() << 8) | constants.VERSION_MADEBY));\n\n // version to extract and general bit flag\n this.write(zipUtil.getShortBytes(ae.getVersionNeededToExtract()));\n this.write(gpb.encode());\n\n // compression method\n this.write(zipUtil.getShortBytes(method));\n\n // datetime\n this.write(zipUtil.getLongBytes(ae.getTimeDos()));\n\n // crc32 checksum\n this.write(zipUtil.getLongBytes(ae.getCrc()));\n\n // sizes\n this.write(zipUtil.getLongBytes(compressedSize));\n this.write(zipUtil.getLongBytes(size));\n\n var name = ae.getName();\n var comment = ae.getComment();\n var extra = ae.getCentralDirectoryExtra();\n\n if (gpb.usesUTF8ForNames()) {\n name = Buffer.from(name);\n comment = Buffer.from(comment);\n }\n\n // name length\n this.write(zipUtil.getShortBytes(name.length));\n\n // extra length\n this.write(zipUtil.getShortBytes(extra.length));\n\n // comments length\n this.write(zipUtil.getShortBytes(comment.length));\n\n // disk number start\n this.write(constants.SHORT_ZERO);\n\n // internal attributes\n this.write(zipUtil.getShortBytes(ae.getInternalAttributes()));\n\n // external attributes\n this.write(zipUtil.getLongBytes(ae.getExternalAttributes()));\n\n // relative offset of LFH\n this.write(zipUtil.getLongBytes(fileOffset));\n\n // name\n this.write(name);\n\n // extra\n this.write(extra);\n\n // comment\n this.write(comment);\n};\n\nZipArchiveOutputStream.prototype._writeDataDescriptor = function(ae) {\n // signature\n this.write(zipUtil.getLongBytes(constants.SIG_DD));\n\n // crc32 checksum\n this.write(zipUtil.getLongBytes(ae.getCrc()));\n\n // sizes\n if (ae.isZip64()) {\n this.write(zipUtil.getEightBytes(ae.getCompressedSize()));\n this.write(zipUtil.getEightBytes(ae.getSize()));\n } else {\n this.write(zipUtil.getLongBytes(ae.getCompressedSize()));\n this.write(zipUtil.getLongBytes(ae.getSize()));\n }\n};\n\nZipArchiveOutputStream.prototype._writeLocalFileHeader = function(ae) {\n var gpb = ae.getGeneralPurposeBit();\n var method = ae.getMethod();\n var name = ae.getName();\n var extra = ae.getLocalFileDataExtra();\n\n if (ae.isZip64()) {\n gpb.useDataDescriptor(true);\n ae.setVersionNeededToExtract(constants.MIN_VERSION_ZIP64);\n }\n\n if (gpb.usesUTF8ForNames()) {\n name = Buffer.from(name);\n }\n\n ae._offsets.file = this.offset;\n\n // signature\n this.write(zipUtil.getLongBytes(constants.SIG_LFH));\n\n // version to extract and general bit flag\n this.write(zipUtil.getShortBytes(ae.getVersionNeededToExtract()));\n this.write(gpb.encode());\n\n // compression method\n this.write(zipUtil.getShortBytes(method));\n\n // datetime\n this.write(zipUtil.getLongBytes(ae.getTimeDos()));\n\n ae._offsets.data = this.offset;\n\n // crc32 checksum and sizes\n if (gpb.usesDataDescriptor()) {\n this.write(constants.LONG_ZERO);\n this.write(constants.LONG_ZERO);\n this.write(constants.LONG_ZERO);\n } else {\n this.write(zipUtil.getLongBytes(ae.getCrc()));\n this.write(zipUtil.getLongBytes(ae.getCompressedSize()));\n this.write(zipUtil.getLongBytes(ae.getSize()));\n }\n\n // name length\n this.write(zipUtil.getShortBytes(name.length));\n\n // extra length\n this.write(zipUtil.getShortBytes(extra.length));\n\n // name\n this.write(name);\n\n // extra\n this.write(extra);\n\n ae._offsets.contents = this.offset;\n};\n\nZipArchiveOutputStream.prototype.getComment = function(comment) {\n return this._archive.comment !== null ? this._archive.comment : '';\n};\n\nZipArchiveOutputStream.prototype.isZip64 = function() {\n return this._archive.forceZip64 || this._entries.length > constants.ZIP64_MAGIC_SHORT || this._archive.centralLength > constants.ZIP64_MAGIC || this._archive.centralOffset > constants.ZIP64_MAGIC;\n};\n\nZipArchiveOutputStream.prototype.setComment = function(comment) {\n this._archive.comment = comment;\n};\n","/**\n * node-compress-commons\n *\n * Copyright (c) 2014 Chris Talkington, contributors.\n * Licensed under the MIT license.\n * https://github.com/archiverjs/node-compress-commons/blob/master/LICENSE-MIT\n */\nmodule.exports = {\n ArchiveEntry: require('./archivers/archive-entry'),\n ZipArchiveEntry: require('./archivers/zip/zip-archive-entry'),\n ArchiveOutputStream: require('./archivers/archive-output-stream'),\n ZipArchiveOutputStream: require('./archivers/zip/zip-archive-output-stream')\n};","/**\n * node-compress-commons\n *\n * Copyright (c) 2014 Chris Talkington, contributors.\n * Licensed under the MIT license.\n * https://github.com/archiverjs/node-compress-commons/blob/master/LICENSE-MIT\n */\nvar Stream = require('stream').Stream;\nvar PassThrough = require('readable-stream').PassThrough;\nvar isStream = require('is-stream');\n\nvar util = module.exports = {};\n\nutil.normalizeInputSource = function(source) {\n if (source === null) {\n return Buffer.alloc(0);\n } else if (typeof source === 'string') {\n return Buffer.from(source);\n } else if (isStream(source) && !source._readableState) {\n var normalized = new PassThrough();\n source.pipe(normalized);\n\n return normalized;\n }\n\n return source;\n};","module.exports = function (xs, fn) {\n var res = [];\n for (var i = 0; i < xs.length; i++) {\n var x = fn(xs[i], i);\n if (isArray(x)) res.push.apply(res, x);\n else res.push(x);\n }\n return res;\n};\n\nvar isArray = Array.isArray || function (xs) {\n return Object.prototype.toString.call(xs) === '[object Array]';\n};\n","// Copyright Joyent, Inc. and other Node contributors.\n//\n// Permission is hereby granted, free of charge, to any person obtaining a\n// copy of this software and associated documentation files (the\n// \"Software\"), to deal in the Software without restriction, including\n// without limitation the rights to use, copy, modify, merge, publish,\n// distribute, sublicense, and/or sell copies of the Software, and to permit\n// persons to whom the Software is furnished to do so, subject to the\n// following conditions:\n//\n// The above copyright notice and this permission notice shall be included\n// in all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\n// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\n// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\n// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n// NOTE: These type checking functions intentionally don't use `instanceof`\n// because it is fragile and can be easily faked with `Object.create()`.\n\nfunction isArray(arg) {\n if (Array.isArray) {\n return Array.isArray(arg);\n }\n return objectToString(arg) === '[object Array]';\n}\nexports.isArray = isArray;\n\nfunction isBoolean(arg) {\n return typeof arg === 'boolean';\n}\nexports.isBoolean = isBoolean;\n\nfunction isNull(arg) {\n return arg === null;\n}\nexports.isNull = isNull;\n\nfunction isNullOrUndefined(arg) {\n return arg == null;\n}\nexports.isNullOrUndefined = isNullOrUndefined;\n\nfunction isNumber(arg) {\n return typeof arg === 'number';\n}\nexports.isNumber = isNumber;\n\nfunction isString(arg) {\n return typeof arg === 'string';\n}\nexports.isString = isString;\n\nfunction isSymbol(arg) {\n return typeof arg === 'symbol';\n}\nexports.isSymbol = isSymbol;\n\nfunction isUndefined(arg) {\n return arg === void 0;\n}\nexports.isUndefined = isUndefined;\n\nfunction isRegExp(re) {\n return objectToString(re) === '[object RegExp]';\n}\nexports.isRegExp = isRegExp;\n\nfunction isObject(arg) {\n return typeof arg === 'object' && arg !== null;\n}\nexports.isObject = isObject;\n\nfunction isDate(d) {\n return objectToString(d) === '[object Date]';\n}\nexports.isDate = isDate;\n\nfunction isError(e) {\n return (objectToString(e) === '[object Error]' || e instanceof Error);\n}\nexports.isError = isError;\n\nfunction isFunction(arg) {\n return typeof arg === 'function';\n}\nexports.isFunction = isFunction;\n\nfunction isPrimitive(arg) {\n return arg === null ||\n typeof arg === 'boolean' ||\n typeof arg === 'number' ||\n typeof arg === 'string' ||\n typeof arg === 'symbol' || // ES6 symbol\n typeof arg === 'undefined';\n}\nexports.isPrimitive = isPrimitive;\n\nexports.isBuffer = require('buffer').Buffer.isBuffer;\n\nfunction objectToString(o) {\n return Object.prototype.toString.call(o);\n}\n","/*! crc32.js (C) 2014-present SheetJS -- http://sheetjs.com */\n/* vim: set ts=2: */\n/*exported CRC32 */\nvar CRC32;\n(function (factory) {\n\t/*jshint ignore:start */\n\t/*eslint-disable */\n\tif(typeof DO_NOT_EXPORT_CRC === 'undefined') {\n\t\tif('object' === typeof exports) {\n\t\t\tfactory(exports);\n\t\t} else if ('function' === typeof define && define.amd) {\n\t\t\tdefine(function () {\n\t\t\t\tvar module = {};\n\t\t\t\tfactory(module);\n\t\t\t\treturn module;\n\t\t\t});\n\t\t} else {\n\t\t\tfactory(CRC32 = {});\n\t\t}\n\t} else {\n\t\tfactory(CRC32 = {});\n\t}\n\t/*eslint-enable */\n\t/*jshint ignore:end */\n}(function(CRC32) {\nCRC32.version = '1.2.2';\n/*global Int32Array */\nfunction signed_crc_table() {\n\tvar c = 0, table = new Array(256);\n\n\tfor(var n =0; n != 256; ++n){\n\t\tc = n;\n\t\tc = ((c&1) ? (-306674912 ^ (c >>> 1)) : (c >>> 1));\n\t\tc = ((c&1) ? (-306674912 ^ (c >>> 1)) : (c >>> 1));\n\t\tc = ((c&1) ? (-306674912 ^ (c >>> 1)) : (c >>> 1));\n\t\tc = ((c&1) ? (-306674912 ^ (c >>> 1)) : (c >>> 1));\n\t\tc = ((c&1) ? (-306674912 ^ (c >>> 1)) : (c >>> 1));\n\t\tc = ((c&1) ? (-306674912 ^ (c >>> 1)) : (c >>> 1));\n\t\tc = ((c&1) ? (-306674912 ^ (c >>> 1)) : (c >>> 1));\n\t\tc = ((c&1) ? (-306674912 ^ (c >>> 1)) : (c >>> 1));\n\t\ttable[n] = c;\n\t}\n\n\treturn typeof Int32Array !== 'undefined' ? new Int32Array(table) : table;\n}\n\nvar T0 = signed_crc_table();\nfunction slice_by_16_tables(T) {\n\tvar c = 0, v = 0, n = 0, table = typeof Int32Array !== 'undefined' ? new Int32Array(4096) : new Array(4096) ;\n\n\tfor(n = 0; n != 256; ++n) table[n] = T[n];\n\tfor(n = 0; n != 256; ++n) {\n\t\tv = T[n];\n\t\tfor(c = 256 + n; c < 4096; c += 256) v = table[c] = (v >>> 8) ^ T[v & 0xFF];\n\t}\n\tvar out = [];\n\tfor(n = 1; n != 16; ++n) out[n - 1] = typeof Int32Array !== 'undefined' ? table.subarray(n * 256, n * 256 + 256) : table.slice(n * 256, n * 256 + 256);\n\treturn out;\n}\nvar TT = slice_by_16_tables(T0);\nvar T1 = TT[0], T2 = TT[1], T3 = TT[2], T4 = TT[3], T5 = TT[4];\nvar T6 = TT[5], T7 = TT[6], T8 = TT[7], T9 = TT[8], Ta = TT[9];\nvar Tb = TT[10], Tc = TT[11], Td = TT[12], Te = TT[13], Tf = TT[14];\nfunction crc32_bstr(bstr, seed) {\n\tvar C = seed ^ -1;\n\tfor(var i = 0, L = bstr.length; i < L;) C = (C>>>8) ^ T0[(C^bstr.charCodeAt(i++))&0xFF];\n\treturn ~C;\n}\n\nfunction crc32_buf(B, seed) {\n\tvar C = seed ^ -1, L = B.length - 15, i = 0;\n\tfor(; i < L;) C =\n\t\tTf[B[i++] ^ (C & 255)] ^\n\t\tTe[B[i++] ^ ((C >> 8) & 255)] ^\n\t\tTd[B[i++] ^ ((C >> 16) & 255)] ^\n\t\tTc[B[i++] ^ (C >>> 24)] ^\n\t\tTb[B[i++]] ^ Ta[B[i++]] ^ T9[B[i++]] ^ T8[B[i++]] ^\n\t\tT7[B[i++]] ^ T6[B[i++]] ^ T5[B[i++]] ^ T4[B[i++]] ^\n\t\tT3[B[i++]] ^ T2[B[i++]] ^ T1[B[i++]] ^ T0[B[i++]];\n\tL += 15;\n\twhile(i < L) C = (C>>>8) ^ T0[(C^B[i++])&0xFF];\n\treturn ~C;\n}\n\nfunction crc32_str(str, seed) {\n\tvar C = seed ^ -1;\n\tfor(var i = 0, L = str.length, c = 0, d = 0; i < L;) {\n\t\tc = str.charCodeAt(i++);\n\t\tif(c < 0x80) {\n\t\t\tC = (C>>>8) ^ T0[(C^c)&0xFF];\n\t\t} else if(c < 0x800) {\n\t\t\tC = (C>>>8) ^ T0[(C ^ (192|((c>>6)&31)))&0xFF];\n\t\t\tC = (C>>>8) ^ T0[(C ^ (128|(c&63)))&0xFF];\n\t\t} else if(c >= 0xD800 && c < 0xE000) {\n\t\t\tc = (c&1023)+64; d = str.charCodeAt(i++)&1023;\n\t\t\tC = (C>>>8) ^ T0[(C ^ (240|((c>>8)&7)))&0xFF];\n\t\t\tC = (C>>>8) ^ T0[(C ^ (128|((c>>2)&63)))&0xFF];\n\t\t\tC = (C>>>8) ^ T0[(C ^ (128|((d>>6)&15)|((c&3)<<4)))&0xFF];\n\t\t\tC = (C>>>8) ^ T0[(C ^ (128|(d&63)))&0xFF];\n\t\t} else {\n\t\t\tC = (C>>>8) ^ T0[(C ^ (224|((c>>12)&15)))&0xFF];\n\t\t\tC = (C>>>8) ^ T0[(C ^ (128|((c>>6)&63)))&0xFF];\n\t\t\tC = (C>>>8) ^ T0[(C ^ (128|(c&63)))&0xFF];\n\t\t}\n\t}\n\treturn ~C;\n}\nCRC32.table = T0;\n// $FlowIgnore\nCRC32.bstr = crc32_bstr;\n// $FlowIgnore\nCRC32.buf = crc32_buf;\n// $FlowIgnore\nCRC32.str = crc32_str;\n}));\n","/**\n * node-crc32-stream\n *\n * Copyright (c) 2014 Chris Talkington, contributors.\n * Licensed under the MIT license.\n * https://github.com/archiverjs/node-crc32-stream/blob/master/LICENSE-MIT\n */\n\n 'use strict';\n\nconst {Transform} = require('readable-stream');\n\nconst crc32 = require('crc-32');\n\nclass CRC32Stream extends Transform {\n constructor(options) {\n super(options);\n this.checksum = Buffer.allocUnsafe(4);\n this.checksum.writeInt32BE(0, 0);\n\n this.rawSize = 0;\n }\n\n _transform(chunk, encoding, callback) {\n if (chunk) {\n this.checksum = crc32.buf(chunk, this.checksum) >>> 0;\n this.rawSize += chunk.length;\n }\n\n callback(null, chunk);\n }\n\n digest(encoding) {\n const checksum = Buffer.allocUnsafe(4);\n checksum.writeUInt32BE(this.checksum >>> 0, 0);\n return encoding ? checksum.toString(encoding) : checksum;\n }\n\n hex() {\n return this.digest('hex').toUpperCase();\n }\n\n size() {\n return this.rawSize;\n }\n}\n\nmodule.exports = CRC32Stream;\n","/**\n * node-crc32-stream\n *\n * Copyright (c) 2014 Chris Talkington, contributors.\n * Licensed under the MIT license.\n * https://github.com/archiverjs/node-crc32-stream/blob/master/LICENSE-MIT\n */\n\n'use strict';\n\nconst {DeflateRaw} = require('zlib');\n\nconst crc32 = require('crc-32');\n\nclass DeflateCRC32Stream extends DeflateRaw {\n constructor(options) {\n super(options);\n\n this.checksum = Buffer.allocUnsafe(4);\n this.checksum.writeInt32BE(0, 0);\n\n this.rawSize = 0;\n this.compressedSize = 0;\n }\n\n push(chunk, encoding) {\n if (chunk) {\n this.compressedSize += chunk.length;\n }\n\n return super.push(chunk, encoding);\n }\n\n _transform(chunk, encoding, callback) {\n if (chunk) {\n this.checksum = crc32.buf(chunk, this.checksum) >>> 0;\n this.rawSize += chunk.length;\n }\n\n super._transform(chunk, encoding, callback)\n }\n\n digest(encoding) {\n const checksum = Buffer.allocUnsafe(4);\n checksum.writeUInt32BE(this.checksum >>> 0, 0);\n return encoding ? checksum.toString(encoding) : checksum;\n }\n\n hex() {\n return this.digest('hex').toUpperCase();\n }\n\n size(compressed = false) {\n if (compressed) {\n return this.compressedSize;\n } else {\n return this.rawSize;\n }\n }\n}\n\nmodule.exports = DeflateCRC32Stream;\n","/**\n * node-crc32-stream\n *\n * Copyright (c) 2014 Chris Talkington, contributors.\n * Licensed under the MIT license.\n * https://github.com/archiverjs/node-crc32-stream/blob/master/LICENSE-MIT\n */\n\n'use strict';\n\nmodule.exports = {\n CRC32Stream: require('./crc32-stream'),\n DeflateCRC32Stream: require('./deflate-crc32-stream')\n}\n","/* eslint-env browser */\n\n/**\n * This is the web browser implementation of `debug()`.\n */\n\nexports.formatArgs = formatArgs;\nexports.save = save;\nexports.load = load;\nexports.useColors = useColors;\nexports.storage = localstorage();\nexports.destroy = (() => {\n\tlet warned = false;\n\n\treturn () => {\n\t\tif (!warned) {\n\t\t\twarned = true;\n\t\t\tconsole.warn('Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.');\n\t\t}\n\t};\n})();\n\n/**\n * Colors.\n */\n\nexports.colors = [\n\t'#0000CC',\n\t'#0000FF',\n\t'#0033CC',\n\t'#0033FF',\n\t'#0066CC',\n\t'#0066FF',\n\t'#0099CC',\n\t'#0099FF',\n\t'#00CC00',\n\t'#00CC33',\n\t'#00CC66',\n\t'#00CC99',\n\t'#00CCCC',\n\t'#00CCFF',\n\t'#3300CC',\n\t'#3300FF',\n\t'#3333CC',\n\t'#3333FF',\n\t'#3366CC',\n\t'#3366FF',\n\t'#3399CC',\n\t'#3399FF',\n\t'#33CC00',\n\t'#33CC33',\n\t'#33CC66',\n\t'#33CC99',\n\t'#33CCCC',\n\t'#33CCFF',\n\t'#6600CC',\n\t'#6600FF',\n\t'#6633CC',\n\t'#6633FF',\n\t'#66CC00',\n\t'#66CC33',\n\t'#9900CC',\n\t'#9900FF',\n\t'#9933CC',\n\t'#9933FF',\n\t'#99CC00',\n\t'#99CC33',\n\t'#CC0000',\n\t'#CC0033',\n\t'#CC0066',\n\t'#CC0099',\n\t'#CC00CC',\n\t'#CC00FF',\n\t'#CC3300',\n\t'#CC3333',\n\t'#CC3366',\n\t'#CC3399',\n\t'#CC33CC',\n\t'#CC33FF',\n\t'#CC6600',\n\t'#CC6633',\n\t'#CC9900',\n\t'#CC9933',\n\t'#CCCC00',\n\t'#CCCC33',\n\t'#FF0000',\n\t'#FF0033',\n\t'#FF0066',\n\t'#FF0099',\n\t'#FF00CC',\n\t'#FF00FF',\n\t'#FF3300',\n\t'#FF3333',\n\t'#FF3366',\n\t'#FF3399',\n\t'#FF33CC',\n\t'#FF33FF',\n\t'#FF6600',\n\t'#FF6633',\n\t'#FF9900',\n\t'#FF9933',\n\t'#FFCC00',\n\t'#FFCC33'\n];\n\n/**\n * Currently only WebKit-based Web Inspectors, Firefox >= v31,\n * and the Firebug extension (any Firefox version) are known\n * to support \"%c\" CSS customizations.\n *\n * TODO: add a `localStorage` variable to explicitly enable/disable colors\n */\n\n// eslint-disable-next-line complexity\nfunction useColors() {\n\t// NB: In an Electron preload script, document will be defined but not fully\n\t// initialized. Since we know we're in Chrome, we'll just detect this case\n\t// explicitly\n\tif (typeof window !== 'undefined' && window.process && (window.process.type === 'renderer' || window.process.__nwjs)) {\n\t\treturn true;\n\t}\n\n\t// Internet Explorer and Edge do not support colors.\n\tif (typeof navigator !== 'undefined' && navigator.userAgent && navigator.userAgent.toLowerCase().match(/(edge|trident)\\/(\\d+)/)) {\n\t\treturn false;\n\t}\n\n\t// Is webkit? http://stackoverflow.com/a/16459606/376773\n\t// document is undefined in react-native: https://github.com/facebook/react-native/pull/1632\n\treturn (typeof document !== 'undefined' && document.documentElement && document.documentElement.style && document.documentElement.style.WebkitAppearance) ||\n\t\t// Is firebug? http://stackoverflow.com/a/398120/376773\n\t\t(typeof window !== 'undefined' && window.console && (window.console.firebug || (window.console.exception && window.console.table))) ||\n\t\t// Is firefox >= v31?\n\t\t// https://developer.mozilla.org/en-US/docs/Tools/Web_Console#Styling_messages\n\t\t(typeof navigator !== 'undefined' && navigator.userAgent && navigator.userAgent.toLowerCase().match(/firefox\\/(\\d+)/) && parseInt(RegExp.$1, 10) >= 31) ||\n\t\t// Double check webkit in userAgent just in case we are in a worker\n\t\t(typeof navigator !== 'undefined' && navigator.userAgent && navigator.userAgent.toLowerCase().match(/applewebkit\\/(\\d+)/));\n}\n\n/**\n * Colorize log arguments if enabled.\n *\n * @api public\n */\n\nfunction formatArgs(args) {\n\targs[0] = (this.useColors ? '%c' : '') +\n\t\tthis.namespace +\n\t\t(this.useColors ? ' %c' : ' ') +\n\t\targs[0] +\n\t\t(this.useColors ? '%c ' : ' ') +\n\t\t'+' + module.exports.humanize(this.diff);\n\n\tif (!this.useColors) {\n\t\treturn;\n\t}\n\n\tconst c = 'color: ' + this.color;\n\targs.splice(1, 0, c, 'color: inherit');\n\n\t// The final \"%c\" is somewhat tricky, because there could be other\n\t// arguments passed either before or after the %c, so we need to\n\t// figure out the correct index to insert the CSS into\n\tlet index = 0;\n\tlet lastC = 0;\n\targs[0].replace(/%[a-zA-Z%]/g, match => {\n\t\tif (match === '%%') {\n\t\t\treturn;\n\t\t}\n\t\tindex++;\n\t\tif (match === '%c') {\n\t\t\t// We only are interested in the *last* %c\n\t\t\t// (the user may have provided their own)\n\t\t\tlastC = index;\n\t\t}\n\t});\n\n\targs.splice(lastC, 0, c);\n}\n\n/**\n * Invokes `console.debug()` when available.\n * No-op when `console.debug` is not a \"function\".\n * If `console.debug` is not available, falls back\n * to `console.log`.\n *\n * @api public\n */\nexports.log = console.debug || console.log || (() => {});\n\n/**\n * Save `namespaces`.\n *\n * @param {String} namespaces\n * @api private\n */\nfunction save(namespaces) {\n\ttry {\n\t\tif (namespaces) {\n\t\t\texports.storage.setItem('debug', namespaces);\n\t\t} else {\n\t\t\texports.storage.removeItem('debug');\n\t\t}\n\t} catch (error) {\n\t\t// Swallow\n\t\t// XXX (@Qix-) should we be logging these?\n\t}\n}\n\n/**\n * Load `namespaces`.\n *\n * @return {String} returns the previously persisted debug modes\n * @api private\n */\nfunction load() {\n\tlet r;\n\ttry {\n\t\tr = exports.storage.getItem('debug');\n\t} catch (error) {\n\t\t// Swallow\n\t\t// XXX (@Qix-) should we be logging these?\n\t}\n\n\t// If debug isn't set in LS, and we're in Electron, try to load $DEBUG\n\tif (!r && typeof process !== 'undefined' && 'env' in process) {\n\t\tr = process.env.DEBUG;\n\t}\n\n\treturn r;\n}\n\n/**\n * Localstorage attempts to return the localstorage.\n *\n * This is necessary because safari throws\n * when a user disables cookies/localstorage\n * and you attempt to access it.\n *\n * @return {LocalStorage}\n * @api private\n */\n\nfunction localstorage() {\n\ttry {\n\t\t// TVMLKit (Apple TV JS Runtime) does not have a window object, just localStorage in the global context\n\t\t// The Browser also has localStorage in the global context.\n\t\treturn localStorage;\n\t} catch (error) {\n\t\t// Swallow\n\t\t// XXX (@Qix-) should we be logging these?\n\t}\n}\n\nmodule.exports = require('./common')(exports);\n\nconst {formatters} = module.exports;\n\n/**\n * Map %j to `JSON.stringify()`, since no Web Inspectors do that by default.\n */\n\nformatters.j = function (v) {\n\ttry {\n\t\treturn JSON.stringify(v);\n\t} catch (error) {\n\t\treturn '[UnexpectedJSONParseError]: ' + error.message;\n\t}\n};\n","\n/**\n * This is the common logic for both the Node.js and web browser\n * implementations of `debug()`.\n */\n\nfunction setup(env) {\n\tcreateDebug.debug = createDebug;\n\tcreateDebug.default = createDebug;\n\tcreateDebug.coerce = coerce;\n\tcreateDebug.disable = disable;\n\tcreateDebug.enable = enable;\n\tcreateDebug.enabled = enabled;\n\tcreateDebug.humanize = require('ms');\n\tcreateDebug.destroy = destroy;\n\n\tObject.keys(env).forEach(key => {\n\t\tcreateDebug[key] = env[key];\n\t});\n\n\t/**\n\t* The currently active debug mode names, and names to skip.\n\t*/\n\n\tcreateDebug.names = [];\n\tcreateDebug.skips = [];\n\n\t/**\n\t* Map of special \"%n\" handling functions, for the debug \"format\" argument.\n\t*\n\t* Valid key names are a single, lower or upper-case letter, i.e. \"n\" and \"N\".\n\t*/\n\tcreateDebug.formatters = {};\n\n\t/**\n\t* Selects a color for a debug namespace\n\t* @param {String} namespace The namespace string for the debug instance to be colored\n\t* @return {Number|String} An ANSI color code for the given namespace\n\t* @api private\n\t*/\n\tfunction selectColor(namespace) {\n\t\tlet hash = 0;\n\n\t\tfor (let i = 0; i < namespace.length; i++) {\n\t\t\thash = ((hash << 5) - hash) + namespace.charCodeAt(i);\n\t\t\thash |= 0; // Convert to 32bit integer\n\t\t}\n\n\t\treturn createDebug.colors[Math.abs(hash) % createDebug.colors.length];\n\t}\n\tcreateDebug.selectColor = selectColor;\n\n\t/**\n\t* Create a debugger with the given `namespace`.\n\t*\n\t* @param {String} namespace\n\t* @return {Function}\n\t* @api public\n\t*/\n\tfunction createDebug(namespace) {\n\t\tlet prevTime;\n\t\tlet enableOverride = null;\n\t\tlet namespacesCache;\n\t\tlet enabledCache;\n\n\t\tfunction debug(...args) {\n\t\t\t// Disabled?\n\t\t\tif (!debug.enabled) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tconst self = debug;\n\n\t\t\t// Set `diff` timestamp\n\t\t\tconst curr = Number(new Date());\n\t\t\tconst ms = curr - (prevTime || curr);\n\t\t\tself.diff = ms;\n\t\t\tself.prev = prevTime;\n\t\t\tself.curr = curr;\n\t\t\tprevTime = curr;\n\n\t\t\targs[0] = createDebug.coerce(args[0]);\n\n\t\t\tif (typeof args[0] !== 'string') {\n\t\t\t\t// Anything else let's inspect with %O\n\t\t\t\targs.unshift('%O');\n\t\t\t}\n\n\t\t\t// Apply any `formatters` transformations\n\t\t\tlet index = 0;\n\t\t\targs[0] = args[0].replace(/%([a-zA-Z%])/g, (match, format) => {\n\t\t\t\t// If we encounter an escaped % then don't increase the array index\n\t\t\t\tif (match === '%%') {\n\t\t\t\t\treturn '%';\n\t\t\t\t}\n\t\t\t\tindex++;\n\t\t\t\tconst formatter = createDebug.formatters[format];\n\t\t\t\tif (typeof formatter === 'function') {\n\t\t\t\t\tconst val = args[index];\n\t\t\t\t\tmatch = formatter.call(self, val);\n\n\t\t\t\t\t// Now we need to remove `args[index]` since it's inlined in the `format`\n\t\t\t\t\targs.splice(index, 1);\n\t\t\t\t\tindex--;\n\t\t\t\t}\n\t\t\t\treturn match;\n\t\t\t});\n\n\t\t\t// Apply env-specific formatting (colors, etc.)\n\t\t\tcreateDebug.formatArgs.call(self, args);\n\n\t\t\tconst logFn = self.log || createDebug.log;\n\t\t\tlogFn.apply(self, args);\n\t\t}\n\n\t\tdebug.namespace = namespace;\n\t\tdebug.useColors = createDebug.useColors();\n\t\tdebug.color = createDebug.selectColor(namespace);\n\t\tdebug.extend = extend;\n\t\tdebug.destroy = createDebug.destroy; // XXX Temporary. Will be removed in the next major release.\n\n\t\tObject.defineProperty(debug, 'enabled', {\n\t\t\tenumerable: true,\n\t\t\tconfigurable: false,\n\t\t\tget: () => {\n\t\t\t\tif (enableOverride !== null) {\n\t\t\t\t\treturn enableOverride;\n\t\t\t\t}\n\t\t\t\tif (namespacesCache !== createDebug.namespaces) {\n\t\t\t\t\tnamespacesCache = createDebug.namespaces;\n\t\t\t\t\tenabledCache = createDebug.enabled(namespace);\n\t\t\t\t}\n\n\t\t\t\treturn enabledCache;\n\t\t\t},\n\t\t\tset: v => {\n\t\t\t\tenableOverride = v;\n\t\t\t}\n\t\t});\n\n\t\t// Env-specific initialization logic for debug instances\n\t\tif (typeof createDebug.init === 'function') {\n\t\t\tcreateDebug.init(debug);\n\t\t}\n\n\t\treturn debug;\n\t}\n\n\tfunction extend(namespace, delimiter) {\n\t\tconst newDebug = createDebug(this.namespace + (typeof delimiter === 'undefined' ? ':' : delimiter) + namespace);\n\t\tnewDebug.log = this.log;\n\t\treturn newDebug;\n\t}\n\n\t/**\n\t* Enables a debug mode by namespaces. This can include modes\n\t* separated by a colon and wildcards.\n\t*\n\t* @param {String} namespaces\n\t* @api public\n\t*/\n\tfunction enable(namespaces) {\n\t\tcreateDebug.save(namespaces);\n\t\tcreateDebug.namespaces = namespaces;\n\n\t\tcreateDebug.names = [];\n\t\tcreateDebug.skips = [];\n\n\t\tlet i;\n\t\tconst split = (typeof namespaces === 'string' ? namespaces : '').split(/[\\s,]+/);\n\t\tconst len = split.length;\n\n\t\tfor (i = 0; i < len; i++) {\n\t\t\tif (!split[i]) {\n\t\t\t\t// ignore empty strings\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\tnamespaces = split[i].replace(/\\*/g, '.*?');\n\n\t\t\tif (namespaces[0] === '-') {\n\t\t\t\tcreateDebug.skips.push(new RegExp('^' + namespaces.slice(1) + '$'));\n\t\t\t} else {\n\t\t\t\tcreateDebug.names.push(new RegExp('^' + namespaces + '$'));\n\t\t\t}\n\t\t}\n\t}\n\n\t/**\n\t* Disable debug output.\n\t*\n\t* @return {String} namespaces\n\t* @api public\n\t*/\n\tfunction disable() {\n\t\tconst namespaces = [\n\t\t\t...createDebug.names.map(toNamespace),\n\t\t\t...createDebug.skips.map(toNamespace).map(namespace => '-' + namespace)\n\t\t].join(',');\n\t\tcreateDebug.enable('');\n\t\treturn namespaces;\n\t}\n\n\t/**\n\t* Returns true if the given mode name is enabled, false otherwise.\n\t*\n\t* @param {String} name\n\t* @return {Boolean}\n\t* @api public\n\t*/\n\tfunction enabled(name) {\n\t\tif (name[name.length - 1] === '*') {\n\t\t\treturn true;\n\t\t}\n\n\t\tlet i;\n\t\tlet len;\n\n\t\tfor (i = 0, len = createDebug.skips.length; i < len; i++) {\n\t\t\tif (createDebug.skips[i].test(name)) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\n\t\tfor (i = 0, len = createDebug.names.length; i < len; i++) {\n\t\t\tif (createDebug.names[i].test(name)) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\n\t\treturn false;\n\t}\n\n\t/**\n\t* Convert regexp to namespace\n\t*\n\t* @param {RegExp} regxep\n\t* @return {String} namespace\n\t* @api private\n\t*/\n\tfunction toNamespace(regexp) {\n\t\treturn regexp.toString()\n\t\t\t.substring(2, regexp.toString().length - 2)\n\t\t\t.replace(/\\.\\*\\?$/, '*');\n\t}\n\n\t/**\n\t* Coerce `val`.\n\t*\n\t* @param {Mixed} val\n\t* @return {Mixed}\n\t* @api private\n\t*/\n\tfunction coerce(val) {\n\t\tif (val instanceof Error) {\n\t\t\treturn val.stack || val.message;\n\t\t}\n\t\treturn val;\n\t}\n\n\t/**\n\t* XXX DO NOT USE. This is a temporary stub function.\n\t* XXX It WILL be removed in the next major release.\n\t*/\n\tfunction destroy() {\n\t\tconsole.warn('Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.');\n\t}\n\n\tcreateDebug.enable(createDebug.load());\n\n\treturn createDebug;\n}\n\nmodule.exports = setup;\n","/**\n * Detect Electron renderer / nwjs process, which is node, but we should\n * treat as a browser.\n */\n\nif (typeof process === 'undefined' || process.type === 'renderer' || process.browser === true || process.__nwjs) {\n\tmodule.exports = require('./browser.js');\n} else {\n\tmodule.exports = require('./node.js');\n}\n","/**\n * Module dependencies.\n */\n\nconst tty = require('tty');\nconst util = require('util');\n\n/**\n * This is the Node.js implementation of `debug()`.\n */\n\nexports.init = init;\nexports.log = log;\nexports.formatArgs = formatArgs;\nexports.save = save;\nexports.load = load;\nexports.useColors = useColors;\nexports.destroy = util.deprecate(\n\t() => {},\n\t'Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.'\n);\n\n/**\n * Colors.\n */\n\nexports.colors = [6, 2, 3, 4, 5, 1];\n\ntry {\n\t// Optional dependency (as in, doesn't need to be installed, NOT like optionalDependencies in package.json)\n\t// eslint-disable-next-line import/no-extraneous-dependencies\n\tconst supportsColor = require('supports-color');\n\n\tif (supportsColor && (supportsColor.stderr || supportsColor).level >= 2) {\n\t\texports.colors = [\n\t\t\t20,\n\t\t\t21,\n\t\t\t26,\n\t\t\t27,\n\t\t\t32,\n\t\t\t33,\n\t\t\t38,\n\t\t\t39,\n\t\t\t40,\n\t\t\t41,\n\t\t\t42,\n\t\t\t43,\n\t\t\t44,\n\t\t\t45,\n\t\t\t56,\n\t\t\t57,\n\t\t\t62,\n\t\t\t63,\n\t\t\t68,\n\t\t\t69,\n\t\t\t74,\n\t\t\t75,\n\t\t\t76,\n\t\t\t77,\n\t\t\t78,\n\t\t\t79,\n\t\t\t80,\n\t\t\t81,\n\t\t\t92,\n\t\t\t93,\n\t\t\t98,\n\t\t\t99,\n\t\t\t112,\n\t\t\t113,\n\t\t\t128,\n\t\t\t129,\n\t\t\t134,\n\t\t\t135,\n\t\t\t148,\n\t\t\t149,\n\t\t\t160,\n\t\t\t161,\n\t\t\t162,\n\t\t\t163,\n\t\t\t164,\n\t\t\t165,\n\t\t\t166,\n\t\t\t167,\n\t\t\t168,\n\t\t\t169,\n\t\t\t170,\n\t\t\t171,\n\t\t\t172,\n\t\t\t173,\n\t\t\t178,\n\t\t\t179,\n\t\t\t184,\n\t\t\t185,\n\t\t\t196,\n\t\t\t197,\n\t\t\t198,\n\t\t\t199,\n\t\t\t200,\n\t\t\t201,\n\t\t\t202,\n\t\t\t203,\n\t\t\t204,\n\t\t\t205,\n\t\t\t206,\n\t\t\t207,\n\t\t\t208,\n\t\t\t209,\n\t\t\t214,\n\t\t\t215,\n\t\t\t220,\n\t\t\t221\n\t\t];\n\t}\n} catch (error) {\n\t// Swallow - we only care if `supports-color` is available; it doesn't have to be.\n}\n\n/**\n * Build up the default `inspectOpts` object from the environment variables.\n *\n * $ DEBUG_COLORS=no DEBUG_DEPTH=10 DEBUG_SHOW_HIDDEN=enabled node script.js\n */\n\nexports.inspectOpts = Object.keys(process.env).filter(key => {\n\treturn /^debug_/i.test(key);\n}).reduce((obj, key) => {\n\t// Camel-case\n\tconst prop = key\n\t\t.substring(6)\n\t\t.toLowerCase()\n\t\t.replace(/_([a-z])/g, (_, k) => {\n\t\t\treturn k.toUpperCase();\n\t\t});\n\n\t// Coerce string value into JS value\n\tlet val = process.env[key];\n\tif (/^(yes|on|true|enabled)$/i.test(val)) {\n\t\tval = true;\n\t} else if (/^(no|off|false|disabled)$/i.test(val)) {\n\t\tval = false;\n\t} else if (val === 'null') {\n\t\tval = null;\n\t} else {\n\t\tval = Number(val);\n\t}\n\n\tobj[prop] = val;\n\treturn obj;\n}, {});\n\n/**\n * Is stdout a TTY? Colored output is enabled when `true`.\n */\n\nfunction useColors() {\n\treturn 'colors' in exports.inspectOpts ?\n\t\tBoolean(exports.inspectOpts.colors) :\n\t\ttty.isatty(process.stderr.fd);\n}\n\n/**\n * Adds ANSI color escape codes if enabled.\n *\n * @api public\n */\n\nfunction formatArgs(args) {\n\tconst {namespace: name, useColors} = this;\n\n\tif (useColors) {\n\t\tconst c = this.color;\n\t\tconst colorCode = '\\u001B[3' + (c < 8 ? c : '8;5;' + c);\n\t\tconst prefix = ` ${colorCode};1m${name} \\u001B[0m`;\n\n\t\targs[0] = prefix + args[0].split('\\n').join('\\n' + prefix);\n\t\targs.push(colorCode + 'm+' + module.exports.humanize(this.diff) + '\\u001B[0m');\n\t} else {\n\t\targs[0] = getDate() + name + ' ' + args[0];\n\t}\n}\n\nfunction getDate() {\n\tif (exports.inspectOpts.hideDate) {\n\t\treturn '';\n\t}\n\treturn new Date().toISOString() + ' ';\n}\n\n/**\n * Invokes `util.format()` with the specified arguments and writes to stderr.\n */\n\nfunction log(...args) {\n\treturn process.stderr.write(util.format(...args) + '\\n');\n}\n\n/**\n * Save `namespaces`.\n *\n * @param {String} namespaces\n * @api private\n */\nfunction save(namespaces) {\n\tif (namespaces) {\n\t\tprocess.env.DEBUG = namespaces;\n\t} else {\n\t\t// If you set a process.env field to null or undefined, it gets cast to the\n\t\t// string 'null' or 'undefined'. Just delete instead.\n\t\tdelete process.env.DEBUG;\n\t}\n}\n\n/**\n * Load `namespaces`.\n *\n * @return {String} returns the previously persisted debug modes\n * @api private\n */\n\nfunction load() {\n\treturn process.env.DEBUG;\n}\n\n/**\n * Init logic for `debug` instances.\n *\n * Create a new `inspectOpts` object in case `useColors` is set\n * differently for a particular `debug` instance.\n */\n\nfunction init(debug) {\n\tdebug.inspectOpts = {};\n\n\tconst keys = Object.keys(exports.inspectOpts);\n\tfor (let i = 0; i < keys.length; i++) {\n\t\tdebug.inspectOpts[keys[i]] = exports.inspectOpts[keys[i]];\n\t}\n}\n\nmodule.exports = require('./common')(exports);\n\nconst {formatters} = module.exports;\n\n/**\n * Map %o to `util.inspect()`, all on a single line.\n */\n\nformatters.o = function (v) {\n\tthis.inspectOpts.colors = this.useColors;\n\treturn util.inspect(v, this.inspectOpts)\n\t\t.split('\\n')\n\t\t.map(str => str.trim())\n\t\t.join(' ');\n};\n\n/**\n * Map %O to `util.inspect()`, allowing multiple lines if needed.\n */\n\nformatters.O = function (v) {\n\tthis.inspectOpts.colors = this.useColors;\n\treturn util.inspect(v, this.inspectOpts);\n};\n","var Stream = require('stream').Stream;\nvar util = require('util');\n\nmodule.exports = DelayedStream;\nfunction DelayedStream() {\n this.source = null;\n this.dataSize = 0;\n this.maxDataSize = 1024 * 1024;\n this.pauseStream = true;\n\n this._maxDataSizeExceeded = false;\n this._released = false;\n this._bufferedEvents = [];\n}\nutil.inherits(DelayedStream, Stream);\n\nDelayedStream.create = function(source, options) {\n var delayedStream = new this();\n\n options = options || {};\n for (var option in options) {\n delayedStream[option] = options[option];\n }\n\n delayedStream.source = source;\n\n var realEmit = source.emit;\n source.emit = function() {\n delayedStream._handleEmit(arguments);\n return realEmit.apply(source, arguments);\n };\n\n source.on('error', function() {});\n if (delayedStream.pauseStream) {\n source.pause();\n }\n\n return delayedStream;\n};\n\nObject.defineProperty(DelayedStream.prototype, 'readable', {\n configurable: true,\n enumerable: true,\n get: function() {\n return this.source.readable;\n }\n});\n\nDelayedStream.prototype.setEncoding = function() {\n return this.source.setEncoding.apply(this.source, arguments);\n};\n\nDelayedStream.prototype.resume = function() {\n if (!this._released) {\n this.release();\n }\n\n this.source.resume();\n};\n\nDelayedStream.prototype.pause = function() {\n this.source.pause();\n};\n\nDelayedStream.prototype.release = function() {\n this._released = true;\n\n this._bufferedEvents.forEach(function(args) {\n this.emit.apply(this, args);\n }.bind(this));\n this._bufferedEvents = [];\n};\n\nDelayedStream.prototype.pipe = function() {\n var r = Stream.prototype.pipe.apply(this, arguments);\n this.resume();\n return r;\n};\n\nDelayedStream.prototype._handleEmit = function(args) {\n if (this._released) {\n this.emit.apply(this, args);\n return;\n }\n\n if (args[0] === 'data') {\n this.dataSize += args[1].length;\n this._checkIfMaxDataSizeExceeded();\n }\n\n this._bufferedEvents.push(args);\n};\n\nDelayedStream.prototype._checkIfMaxDataSizeExceeded = function() {\n if (this._maxDataSizeExceeded) {\n return;\n }\n\n if (this.dataSize <= this.maxDataSize) {\n return;\n }\n\n this._maxDataSizeExceeded = true;\n var message =\n 'DelayedStream#maxDataSize of ' + this.maxDataSize + ' bytes exceeded.'\n this.emit('error', new Error(message));\n};\n","'use strict';\n\nObject.defineProperty(exports, '__esModule', { value: true });\n\nclass Deprecation extends Error {\n constructor(message) {\n super(message); // Maintains proper stack trace (only available on V8)\n\n /* istanbul ignore next */\n\n if (Error.captureStackTrace) {\n Error.captureStackTrace(this, this.constructor);\n }\n\n this.name = 'Deprecation';\n }\n\n}\n\nexports.Deprecation = Deprecation;\n","'use strict';\n\nvar iconvLite = require('iconv-lite');\n\n// Expose to the world\nmodule.exports.convert = convert;\n\n/**\n * Convert encoding of an UTF-8 string or a buffer\n *\n * @param {String|Buffer} str String to be converted\n * @param {String} to Encoding to be converted to\n * @param {String} [from='UTF-8'] Encoding to be converted from\n * @return {Buffer} Encoded string\n */\nfunction convert(str, to, from) {\n from = checkEncoding(from || 'UTF-8');\n to = checkEncoding(to || 'UTF-8');\n str = str || '';\n\n var result;\n\n if (from !== 'UTF-8' && typeof str === 'string') {\n str = Buffer.from(str, 'binary');\n }\n\n if (from === to) {\n if (typeof str === 'string') {\n result = Buffer.from(str);\n } else {\n result = str;\n }\n } else {\n try {\n result = convertIconvLite(str, to, from);\n } catch (E) {\n console.error(E);\n result = str;\n }\n }\n\n if (typeof result === 'string') {\n result = Buffer.from(result, 'utf-8');\n }\n\n return result;\n}\n\n/**\n * Convert encoding of astring with iconv-lite\n *\n * @param {String|Buffer} str String to be converted\n * @param {String} to Encoding to be converted to\n * @param {String} [from='UTF-8'] Encoding to be converted from\n * @return {Buffer} Encoded string\n */\nfunction convertIconvLite(str, to, from) {\n if (to === 'UTF-8') {\n return iconvLite.decode(str, from);\n } else if (from === 'UTF-8') {\n return iconvLite.encode(str, to);\n } else {\n return iconvLite.encode(iconvLite.decode(str, from), to);\n }\n}\n\n/**\n * Converts charset name if needed\n *\n * @param {String} name Character set\n * @return {String} Character set name\n */\nfunction checkEncoding(name) {\n return (name || '')\n .toString()\n .trim()\n .replace(/^latin[\\-_]?(\\d+)$/i, 'ISO-8859-$1')\n .replace(/^win(?:dows)?[\\-_]?(\\d+)$/i, 'WINDOWS-$1')\n .replace(/^utf[\\-_]?(\\d+)$/i, 'UTF-$1')\n .replace(/^ks_c_5601\\-1987$/i, 'CP949')\n .replace(/^us[\\-_]?ascii$/i, 'ASCII')\n .toUpperCase();\n}\n","/**\n * @author Toru Nagashima \n * @copyright 2015 Toru Nagashima. All rights reserved.\n * See LICENSE file in root directory for full license.\n */\n'use strict';\n\nObject.defineProperty(exports, '__esModule', { value: true });\n\n/**\n * @typedef {object} PrivateData\n * @property {EventTarget} eventTarget The event target.\n * @property {{type:string}} event The original event object.\n * @property {number} eventPhase The current event phase.\n * @property {EventTarget|null} currentTarget The current event target.\n * @property {boolean} canceled The flag to prevent default.\n * @property {boolean} stopped The flag to stop propagation.\n * @property {boolean} immediateStopped The flag to stop propagation immediately.\n * @property {Function|null} passiveListener The listener if the current listener is passive. Otherwise this is null.\n * @property {number} timeStamp The unix time.\n * @private\n */\n\n/**\n * Private data for event wrappers.\n * @type {WeakMap}\n * @private\n */\nconst privateData = new WeakMap();\n\n/**\n * Cache for wrapper classes.\n * @type {WeakMap}\n * @private\n */\nconst wrappers = new WeakMap();\n\n/**\n * Get private data.\n * @param {Event} event The event object to get private data.\n * @returns {PrivateData} The private data of the event.\n * @private\n */\nfunction pd(event) {\n const retv = privateData.get(event);\n console.assert(\n retv != null,\n \"'this' is expected an Event object, but got\",\n event\n );\n return retv\n}\n\n/**\n * https://dom.spec.whatwg.org/#set-the-canceled-flag\n * @param data {PrivateData} private data.\n */\nfunction setCancelFlag(data) {\n if (data.passiveListener != null) {\n if (\n typeof console !== \"undefined\" &&\n typeof console.error === \"function\"\n ) {\n console.error(\n \"Unable to preventDefault inside passive event listener invocation.\",\n data.passiveListener\n );\n }\n return\n }\n if (!data.event.cancelable) {\n return\n }\n\n data.canceled = true;\n if (typeof data.event.preventDefault === \"function\") {\n data.event.preventDefault();\n }\n}\n\n/**\n * @see https://dom.spec.whatwg.org/#interface-event\n * @private\n */\n/**\n * The event wrapper.\n * @constructor\n * @param {EventTarget} eventTarget The event target of this dispatching.\n * @param {Event|{type:string}} event The original event to wrap.\n */\nfunction Event(eventTarget, event) {\n privateData.set(this, {\n eventTarget,\n event,\n eventPhase: 2,\n currentTarget: eventTarget,\n canceled: false,\n stopped: false,\n immediateStopped: false,\n passiveListener: null,\n timeStamp: event.timeStamp || Date.now(),\n });\n\n // https://heycam.github.io/webidl/#Unforgeable\n Object.defineProperty(this, \"isTrusted\", { value: false, enumerable: true });\n\n // Define accessors\n const keys = Object.keys(event);\n for (let i = 0; i < keys.length; ++i) {\n const key = keys[i];\n if (!(key in this)) {\n Object.defineProperty(this, key, defineRedirectDescriptor(key));\n }\n }\n}\n\n// Should be enumerable, but class methods are not enumerable.\nEvent.prototype = {\n /**\n * The type of this event.\n * @type {string}\n */\n get type() {\n return pd(this).event.type\n },\n\n /**\n * The target of this event.\n * @type {EventTarget}\n */\n get target() {\n return pd(this).eventTarget\n },\n\n /**\n * The target of this event.\n * @type {EventTarget}\n */\n get currentTarget() {\n return pd(this).currentTarget\n },\n\n /**\n * @returns {EventTarget[]} The composed path of this event.\n */\n composedPath() {\n const currentTarget = pd(this).currentTarget;\n if (currentTarget == null) {\n return []\n }\n return [currentTarget]\n },\n\n /**\n * Constant of NONE.\n * @type {number}\n */\n get NONE() {\n return 0\n },\n\n /**\n * Constant of CAPTURING_PHASE.\n * @type {number}\n */\n get CAPTURING_PHASE() {\n return 1\n },\n\n /**\n * Constant of AT_TARGET.\n * @type {number}\n */\n get AT_TARGET() {\n return 2\n },\n\n /**\n * Constant of BUBBLING_PHASE.\n * @type {number}\n */\n get BUBBLING_PHASE() {\n return 3\n },\n\n /**\n * The target of this event.\n * @type {number}\n */\n get eventPhase() {\n return pd(this).eventPhase\n },\n\n /**\n * Stop event bubbling.\n * @returns {void}\n */\n stopPropagation() {\n const data = pd(this);\n\n data.stopped = true;\n if (typeof data.event.stopPropagation === \"function\") {\n data.event.stopPropagation();\n }\n },\n\n /**\n * Stop event bubbling.\n * @returns {void}\n */\n stopImmediatePropagation() {\n const data = pd(this);\n\n data.stopped = true;\n data.immediateStopped = true;\n if (typeof data.event.stopImmediatePropagation === \"function\") {\n data.event.stopImmediatePropagation();\n }\n },\n\n /**\n * The flag to be bubbling.\n * @type {boolean}\n */\n get bubbles() {\n return Boolean(pd(this).event.bubbles)\n },\n\n /**\n * The flag to be cancelable.\n * @type {boolean}\n */\n get cancelable() {\n return Boolean(pd(this).event.cancelable)\n },\n\n /**\n * Cancel this event.\n * @returns {void}\n */\n preventDefault() {\n setCancelFlag(pd(this));\n },\n\n /**\n * The flag to indicate cancellation state.\n * @type {boolean}\n */\n get defaultPrevented() {\n return pd(this).canceled\n },\n\n /**\n * The flag to be composed.\n * @type {boolean}\n */\n get composed() {\n return Boolean(pd(this).event.composed)\n },\n\n /**\n * The unix time of this event.\n * @type {number}\n */\n get timeStamp() {\n return pd(this).timeStamp\n },\n\n /**\n * The target of this event.\n * @type {EventTarget}\n * @deprecated\n */\n get srcElement() {\n return pd(this).eventTarget\n },\n\n /**\n * The flag to stop event bubbling.\n * @type {boolean}\n * @deprecated\n */\n get cancelBubble() {\n return pd(this).stopped\n },\n set cancelBubble(value) {\n if (!value) {\n return\n }\n const data = pd(this);\n\n data.stopped = true;\n if (typeof data.event.cancelBubble === \"boolean\") {\n data.event.cancelBubble = true;\n }\n },\n\n /**\n * The flag to indicate cancellation state.\n * @type {boolean}\n * @deprecated\n */\n get returnValue() {\n return !pd(this).canceled\n },\n set returnValue(value) {\n if (!value) {\n setCancelFlag(pd(this));\n }\n },\n\n /**\n * Initialize this event object. But do nothing under event dispatching.\n * @param {string} type The event type.\n * @param {boolean} [bubbles=false] The flag to be possible to bubble up.\n * @param {boolean} [cancelable=false] The flag to be possible to cancel.\n * @deprecated\n */\n initEvent() {\n // Do nothing.\n },\n};\n\n// `constructor` is not enumerable.\nObject.defineProperty(Event.prototype, \"constructor\", {\n value: Event,\n configurable: true,\n writable: true,\n});\n\n// Ensure `event instanceof window.Event` is `true`.\nif (typeof window !== \"undefined\" && typeof window.Event !== \"undefined\") {\n Object.setPrototypeOf(Event.prototype, window.Event.prototype);\n\n // Make association for wrappers.\n wrappers.set(window.Event.prototype, Event);\n}\n\n/**\n * Get the property descriptor to redirect a given property.\n * @param {string} key Property name to define property descriptor.\n * @returns {PropertyDescriptor} The property descriptor to redirect the property.\n * @private\n */\nfunction defineRedirectDescriptor(key) {\n return {\n get() {\n return pd(this).event[key]\n },\n set(value) {\n pd(this).event[key] = value;\n },\n configurable: true,\n enumerable: true,\n }\n}\n\n/**\n * Get the property descriptor to call a given method property.\n * @param {string} key Property name to define property descriptor.\n * @returns {PropertyDescriptor} The property descriptor to call the method property.\n * @private\n */\nfunction defineCallDescriptor(key) {\n return {\n value() {\n const event = pd(this).event;\n return event[key].apply(event, arguments)\n },\n configurable: true,\n enumerable: true,\n }\n}\n\n/**\n * Define new wrapper class.\n * @param {Function} BaseEvent The base wrapper class.\n * @param {Object} proto The prototype of the original event.\n * @returns {Function} The defined wrapper class.\n * @private\n */\nfunction defineWrapper(BaseEvent, proto) {\n const keys = Object.keys(proto);\n if (keys.length === 0) {\n return BaseEvent\n }\n\n /** CustomEvent */\n function CustomEvent(eventTarget, event) {\n BaseEvent.call(this, eventTarget, event);\n }\n\n CustomEvent.prototype = Object.create(BaseEvent.prototype, {\n constructor: { value: CustomEvent, configurable: true, writable: true },\n });\n\n // Define accessors.\n for (let i = 0; i < keys.length; ++i) {\n const key = keys[i];\n if (!(key in BaseEvent.prototype)) {\n const descriptor = Object.getOwnPropertyDescriptor(proto, key);\n const isFunc = typeof descriptor.value === \"function\";\n Object.defineProperty(\n CustomEvent.prototype,\n key,\n isFunc\n ? defineCallDescriptor(key)\n : defineRedirectDescriptor(key)\n );\n }\n }\n\n return CustomEvent\n}\n\n/**\n * Get the wrapper class of a given prototype.\n * @param {Object} proto The prototype of the original event to get its wrapper.\n * @returns {Function} The wrapper class.\n * @private\n */\nfunction getWrapper(proto) {\n if (proto == null || proto === Object.prototype) {\n return Event\n }\n\n let wrapper = wrappers.get(proto);\n if (wrapper == null) {\n wrapper = defineWrapper(getWrapper(Object.getPrototypeOf(proto)), proto);\n wrappers.set(proto, wrapper);\n }\n return wrapper\n}\n\n/**\n * Wrap a given event to management a dispatching.\n * @param {EventTarget} eventTarget The event target of this dispatching.\n * @param {Object} event The event to wrap.\n * @returns {Event} The wrapper instance.\n * @private\n */\nfunction wrapEvent(eventTarget, event) {\n const Wrapper = getWrapper(Object.getPrototypeOf(event));\n return new Wrapper(eventTarget, event)\n}\n\n/**\n * Get the immediateStopped flag of a given event.\n * @param {Event} event The event to get.\n * @returns {boolean} The flag to stop propagation immediately.\n * @private\n */\nfunction isStopped(event) {\n return pd(event).immediateStopped\n}\n\n/**\n * Set the current event phase of a given event.\n * @param {Event} event The event to set current target.\n * @param {number} eventPhase New event phase.\n * @returns {void}\n * @private\n */\nfunction setEventPhase(event, eventPhase) {\n pd(event).eventPhase = eventPhase;\n}\n\n/**\n * Set the current target of a given event.\n * @param {Event} event The event to set current target.\n * @param {EventTarget|null} currentTarget New current target.\n * @returns {void}\n * @private\n */\nfunction setCurrentTarget(event, currentTarget) {\n pd(event).currentTarget = currentTarget;\n}\n\n/**\n * Set a passive listener of a given event.\n * @param {Event} event The event to set current target.\n * @param {Function|null} passiveListener New passive listener.\n * @returns {void}\n * @private\n */\nfunction setPassiveListener(event, passiveListener) {\n pd(event).passiveListener = passiveListener;\n}\n\n/**\n * @typedef {object} ListenerNode\n * @property {Function} listener\n * @property {1|2|3} listenerType\n * @property {boolean} passive\n * @property {boolean} once\n * @property {ListenerNode|null} next\n * @private\n */\n\n/**\n * @type {WeakMap>}\n * @private\n */\nconst listenersMap = new WeakMap();\n\n// Listener types\nconst CAPTURE = 1;\nconst BUBBLE = 2;\nconst ATTRIBUTE = 3;\n\n/**\n * Check whether a given value is an object or not.\n * @param {any} x The value to check.\n * @returns {boolean} `true` if the value is an object.\n */\nfunction isObject(x) {\n return x !== null && typeof x === \"object\" //eslint-disable-line no-restricted-syntax\n}\n\n/**\n * Get listeners.\n * @param {EventTarget} eventTarget The event target to get.\n * @returns {Map} The listeners.\n * @private\n */\nfunction getListeners(eventTarget) {\n const listeners = listenersMap.get(eventTarget);\n if (listeners == null) {\n throw new TypeError(\n \"'this' is expected an EventTarget object, but got another value.\"\n )\n }\n return listeners\n}\n\n/**\n * Get the property descriptor for the event attribute of a given event.\n * @param {string} eventName The event name to get property descriptor.\n * @returns {PropertyDescriptor} The property descriptor.\n * @private\n */\nfunction defineEventAttributeDescriptor(eventName) {\n return {\n get() {\n const listeners = getListeners(this);\n let node = listeners.get(eventName);\n while (node != null) {\n if (node.listenerType === ATTRIBUTE) {\n return node.listener\n }\n node = node.next;\n }\n return null\n },\n\n set(listener) {\n if (typeof listener !== \"function\" && !isObject(listener)) {\n listener = null; // eslint-disable-line no-param-reassign\n }\n const listeners = getListeners(this);\n\n // Traverse to the tail while removing old value.\n let prev = null;\n let node = listeners.get(eventName);\n while (node != null) {\n if (node.listenerType === ATTRIBUTE) {\n // Remove old value.\n if (prev !== null) {\n prev.next = node.next;\n } else if (node.next !== null) {\n listeners.set(eventName, node.next);\n } else {\n listeners.delete(eventName);\n }\n } else {\n prev = node;\n }\n\n node = node.next;\n }\n\n // Add new value.\n if (listener !== null) {\n const newNode = {\n listener,\n listenerType: ATTRIBUTE,\n passive: false,\n once: false,\n next: null,\n };\n if (prev === null) {\n listeners.set(eventName, newNode);\n } else {\n prev.next = newNode;\n }\n }\n },\n configurable: true,\n enumerable: true,\n }\n}\n\n/**\n * Define an event attribute (e.g. `eventTarget.onclick`).\n * @param {Object} eventTargetPrototype The event target prototype to define an event attrbite.\n * @param {string} eventName The event name to define.\n * @returns {void}\n */\nfunction defineEventAttribute(eventTargetPrototype, eventName) {\n Object.defineProperty(\n eventTargetPrototype,\n `on${eventName}`,\n defineEventAttributeDescriptor(eventName)\n );\n}\n\n/**\n * Define a custom EventTarget with event attributes.\n * @param {string[]} eventNames Event names for event attributes.\n * @returns {EventTarget} The custom EventTarget.\n * @private\n */\nfunction defineCustomEventTarget(eventNames) {\n /** CustomEventTarget */\n function CustomEventTarget() {\n EventTarget.call(this);\n }\n\n CustomEventTarget.prototype = Object.create(EventTarget.prototype, {\n constructor: {\n value: CustomEventTarget,\n configurable: true,\n writable: true,\n },\n });\n\n for (let i = 0; i < eventNames.length; ++i) {\n defineEventAttribute(CustomEventTarget.prototype, eventNames[i]);\n }\n\n return CustomEventTarget\n}\n\n/**\n * EventTarget.\n *\n * - This is constructor if no arguments.\n * - This is a function which returns a CustomEventTarget constructor if there are arguments.\n *\n * For example:\n *\n * class A extends EventTarget {}\n * class B extends EventTarget(\"message\") {}\n * class C extends EventTarget(\"message\", \"error\") {}\n * class D extends EventTarget([\"message\", \"error\"]) {}\n */\nfunction EventTarget() {\n /*eslint-disable consistent-return */\n if (this instanceof EventTarget) {\n listenersMap.set(this, new Map());\n return\n }\n if (arguments.length === 1 && Array.isArray(arguments[0])) {\n return defineCustomEventTarget(arguments[0])\n }\n if (arguments.length > 0) {\n const types = new Array(arguments.length);\n for (let i = 0; i < arguments.length; ++i) {\n types[i] = arguments[i];\n }\n return defineCustomEventTarget(types)\n }\n throw new TypeError(\"Cannot call a class as a function\")\n /*eslint-enable consistent-return */\n}\n\n// Should be enumerable, but class methods are not enumerable.\nEventTarget.prototype = {\n /**\n * Add a given listener to this event target.\n * @param {string} eventName The event name to add.\n * @param {Function} listener The listener to add.\n * @param {boolean|{capture?:boolean,passive?:boolean,once?:boolean}} [options] The options for this listener.\n * @returns {void}\n */\n addEventListener(eventName, listener, options) {\n if (listener == null) {\n return\n }\n if (typeof listener !== \"function\" && !isObject(listener)) {\n throw new TypeError(\"'listener' should be a function or an object.\")\n }\n\n const listeners = getListeners(this);\n const optionsIsObj = isObject(options);\n const capture = optionsIsObj\n ? Boolean(options.capture)\n : Boolean(options);\n const listenerType = capture ? CAPTURE : BUBBLE;\n const newNode = {\n listener,\n listenerType,\n passive: optionsIsObj && Boolean(options.passive),\n once: optionsIsObj && Boolean(options.once),\n next: null,\n };\n\n // Set it as the first node if the first node is null.\n let node = listeners.get(eventName);\n if (node === undefined) {\n listeners.set(eventName, newNode);\n return\n }\n\n // Traverse to the tail while checking duplication..\n let prev = null;\n while (node != null) {\n if (\n node.listener === listener &&\n node.listenerType === listenerType\n ) {\n // Should ignore duplication.\n return\n }\n prev = node;\n node = node.next;\n }\n\n // Add it.\n prev.next = newNode;\n },\n\n /**\n * Remove a given listener from this event target.\n * @param {string} eventName The event name to remove.\n * @param {Function} listener The listener to remove.\n * @param {boolean|{capture?:boolean,passive?:boolean,once?:boolean}} [options] The options for this listener.\n * @returns {void}\n */\n removeEventListener(eventName, listener, options) {\n if (listener == null) {\n return\n }\n\n const listeners = getListeners(this);\n const capture = isObject(options)\n ? Boolean(options.capture)\n : Boolean(options);\n const listenerType = capture ? CAPTURE : BUBBLE;\n\n let prev = null;\n let node = listeners.get(eventName);\n while (node != null) {\n if (\n node.listener === listener &&\n node.listenerType === listenerType\n ) {\n if (prev !== null) {\n prev.next = node.next;\n } else if (node.next !== null) {\n listeners.set(eventName, node.next);\n } else {\n listeners.delete(eventName);\n }\n return\n }\n\n prev = node;\n node = node.next;\n }\n },\n\n /**\n * Dispatch a given event.\n * @param {Event|{type:string}} event The event to dispatch.\n * @returns {boolean} `false` if canceled.\n */\n dispatchEvent(event) {\n if (event == null || typeof event.type !== \"string\") {\n throw new TypeError('\"event.type\" should be a string.')\n }\n\n // If listeners aren't registered, terminate.\n const listeners = getListeners(this);\n const eventName = event.type;\n let node = listeners.get(eventName);\n if (node == null) {\n return true\n }\n\n // Since we cannot rewrite several properties, so wrap object.\n const wrappedEvent = wrapEvent(this, event);\n\n // This doesn't process capturing phase and bubbling phase.\n // This isn't participating in a tree.\n let prev = null;\n while (node != null) {\n // Remove this listener if it's once\n if (node.once) {\n if (prev !== null) {\n prev.next = node.next;\n } else if (node.next !== null) {\n listeners.set(eventName, node.next);\n } else {\n listeners.delete(eventName);\n }\n } else {\n prev = node;\n }\n\n // Call this listener\n setPassiveListener(\n wrappedEvent,\n node.passive ? node.listener : null\n );\n if (typeof node.listener === \"function\") {\n try {\n node.listener.call(this, wrappedEvent);\n } catch (err) {\n if (\n typeof console !== \"undefined\" &&\n typeof console.error === \"function\"\n ) {\n console.error(err);\n }\n }\n } else if (\n node.listenerType !== ATTRIBUTE &&\n typeof node.listener.handleEvent === \"function\"\n ) {\n node.listener.handleEvent(wrappedEvent);\n }\n\n // Break if `event.stopImmediatePropagation` was called.\n if (isStopped(wrappedEvent)) {\n break\n }\n\n node = node.next;\n }\n setPassiveListener(wrappedEvent, null);\n setEventPhase(wrappedEvent, 0);\n setCurrentTarget(wrappedEvent, null);\n\n return !wrappedEvent.defaultPrevented\n },\n};\n\n// `constructor` is not enumerable.\nObject.defineProperty(EventTarget.prototype, \"constructor\", {\n value: EventTarget,\n configurable: true,\n writable: true,\n});\n\n// Ensure `eventTarget instanceof window.EventTarget` is `true`.\nif (\n typeof window !== \"undefined\" &&\n typeof window.EventTarget !== \"undefined\"\n) {\n Object.setPrototypeOf(EventTarget.prototype, window.EventTarget.prototype);\n}\n\nexports.defineEventAttribute = defineEventAttribute;\nexports.EventTarget = EventTarget;\nexports.default = EventTarget;\n\nmodule.exports = EventTarget\nmodule.exports.EventTarget = module.exports[\"default\"] = EventTarget\nmodule.exports.defineEventAttribute = defineEventAttribute\n//# sourceMappingURL=event-target-shim.js.map\n","module.exports = class FixedFIFO {\n constructor (hwm) {\n if (!(hwm > 0) || ((hwm - 1) & hwm) !== 0) throw new Error('Max size for a FixedFIFO should be a power of two')\n this.buffer = new Array(hwm)\n this.mask = hwm - 1\n this.top = 0\n this.btm = 0\n this.next = null\n }\n\n clear () {\n this.top = this.btm = 0\n this.next = null\n this.buffer.fill(undefined)\n }\n\n push (data) {\n if (this.buffer[this.top] !== undefined) return false\n this.buffer[this.top] = data\n this.top = (this.top + 1) & this.mask\n return true\n }\n\n shift () {\n const last = this.buffer[this.btm]\n if (last === undefined) return undefined\n this.buffer[this.btm] = undefined\n this.btm = (this.btm + 1) & this.mask\n return last\n }\n\n peek () {\n return this.buffer[this.btm]\n }\n\n isEmpty () {\n return this.buffer[this.btm] === undefined\n }\n}\n","const FixedFIFO = require('./fixed-size')\n\nmodule.exports = class FastFIFO {\n constructor (hwm) {\n this.hwm = hwm || 16\n this.head = new FixedFIFO(this.hwm)\n this.tail = this.head\n this.length = 0\n }\n\n clear () {\n this.head = this.tail\n this.head.clear()\n this.length = 0\n }\n\n push (val) {\n this.length++\n if (!this.head.push(val)) {\n const prev = this.head\n this.head = prev.next = new FixedFIFO(2 * this.head.buffer.length)\n this.head.push(val)\n }\n }\n\n shift () {\n if (this.length !== 0) this.length--\n const val = this.tail.shift()\n if (val === undefined && this.tail.next) {\n const next = this.tail.next\n this.tail.next = null\n this.tail = next\n return this.tail.shift()\n }\n\n return val\n }\n\n peek () {\n const val = this.tail.peek()\n if (val === undefined && this.tail.next) return this.tail.next.peek()\n return val\n }\n\n isEmpty () {\n return this.length === 0\n }\n}\n","'use strict';\n\nconst validator = require('./validator');\nconst XMLParser = require('./xmlparser/XMLParser');\nconst XMLBuilder = require('./xmlbuilder/json2xml');\n\nmodule.exports = {\n XMLParser: XMLParser,\n XMLValidator: validator,\n XMLBuilder: XMLBuilder\n}","'use strict';\n\nconst nameStartChar = ':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';\nconst nameChar = nameStartChar + '\\\\-.\\\\d\\\\u00B7\\\\u0300-\\\\u036F\\\\u203F-\\\\u2040';\nconst nameRegexp = '[' + nameStartChar + '][' + nameChar + ']*'\nconst regexName = new RegExp('^' + nameRegexp + '$');\n\nconst getAllMatches = function(string, regex) {\n const matches = [];\n let match = regex.exec(string);\n while (match) {\n const allmatches = [];\n allmatches.startIndex = regex.lastIndex - match[0].length;\n const len = match.length;\n for (let index = 0; index < len; index++) {\n allmatches.push(match[index]);\n }\n matches.push(allmatches);\n match = regex.exec(string);\n }\n return matches;\n};\n\nconst isName = function(string) {\n const match = regexName.exec(string);\n return !(match === null || typeof match === 'undefined');\n};\n\nexports.isExist = function(v) {\n return typeof v !== 'undefined';\n};\n\nexports.isEmptyObject = function(obj) {\n return Object.keys(obj).length === 0;\n};\n\n/**\n * Copy all the properties of a into b.\n * @param {*} target\n * @param {*} a\n */\nexports.merge = function(target, a, arrayMode) {\n if (a) {\n const keys = Object.keys(a); // will return an array of own properties\n const len = keys.length; //don't make it inline\n for (let i = 0; i < len; i++) {\n if (arrayMode === 'strict') {\n target[keys[i]] = [ a[keys[i]] ];\n } else {\n target[keys[i]] = a[keys[i]];\n }\n }\n }\n};\n/* exports.merge =function (b,a){\n return Object.assign(b,a);\n} */\n\nexports.getValue = function(v) {\n if (exports.isExist(v)) {\n return v;\n } else {\n return '';\n }\n};\n\n// const fakeCall = function(a) {return a;};\n// const fakeCallNoReturn = function() {};\n\nexports.isName = isName;\nexports.getAllMatches = getAllMatches;\nexports.nameRegexp = nameRegexp;\n","'use strict';\n\nconst util = require('./util');\n\nconst defaultOptions = {\n allowBooleanAttributes: false, //A tag can have attributes without any value\n unpairedTags: []\n};\n\n//const tagsPattern = new RegExp(\"<\\\\/?([\\\\w:\\\\-_\\.]+)\\\\s*\\/?>\",\"g\");\nexports.validate = function (xmlData, options) {\n options = Object.assign({}, defaultOptions, options);\n\n //xmlData = xmlData.replace(/(\\r\\n|\\n|\\r)/gm,\"\");//make it single line\n //xmlData = xmlData.replace(/(^\\s*<\\?xml.*?\\?>)/g,\"\");//Remove XML starting tag\n //xmlData = xmlData.replace(/()/g,\"\");//Remove DOCTYPE\n const tags = [];\n let tagFound = false;\n\n //indicates that the root tag has been closed (aka. depth 0 has been reached)\n let reachedRoot = false;\n\n if (xmlData[0] === '\\ufeff') {\n // check for byte order mark (BOM)\n xmlData = xmlData.substr(1);\n }\n \n for (let i = 0; i < xmlData.length; i++) {\n\n if (xmlData[i] === '<' && xmlData[i+1] === '?') {\n i+=2;\n i = readPI(xmlData,i);\n if (i.err) return i;\n }else if (xmlData[i] === '<') {\n //starting of tag\n //read until you reach to '>' avoiding any '>' in attribute value\n let tagStartPos = i;\n i++;\n \n if (xmlData[i] === '!') {\n i = readCommentAndCDATA(xmlData, i);\n continue;\n } else {\n let closingTag = false;\n if (xmlData[i] === '/') {\n //closing tag\n closingTag = true;\n i++;\n }\n //read tagname\n let tagName = '';\n for (; i < xmlData.length &&\n xmlData[i] !== '>' &&\n xmlData[i] !== ' ' &&\n xmlData[i] !== '\\t' &&\n xmlData[i] !== '\\n' &&\n xmlData[i] !== '\\r'; i++\n ) {\n tagName += xmlData[i];\n }\n tagName = tagName.trim();\n //console.log(tagName);\n\n if (tagName[tagName.length - 1] === '/') {\n //self closing tag without attributes\n tagName = tagName.substring(0, tagName.length - 1);\n //continue;\n i--;\n }\n if (!validateTagName(tagName)) {\n let msg;\n if (tagName.trim().length === 0) {\n msg = \"Invalid space after '<'.\";\n } else {\n msg = \"Tag '\"+tagName+\"' is an invalid name.\";\n }\n return getErrorObject('InvalidTag', msg, getLineNumberForPosition(xmlData, i));\n }\n\n const result = readAttributeStr(xmlData, i);\n if (result === false) {\n return getErrorObject('InvalidAttr', \"Attributes for '\"+tagName+\"' have open quote.\", getLineNumberForPosition(xmlData, i));\n }\n let attrStr = result.value;\n i = result.index;\n\n if (attrStr[attrStr.length - 1] === '/') {\n //self closing tag\n const attrStrStart = i - attrStr.length;\n attrStr = attrStr.substring(0, attrStr.length - 1);\n const isValid = validateAttributeString(attrStr, options);\n if (isValid === true) {\n tagFound = true;\n //continue; //text may presents after self closing tag\n } else {\n //the result from the nested function returns the position of the error within the attribute\n //in order to get the 'true' error line, we need to calculate the position where the attribute begins (i - attrStr.length) and then add the position within the attribute\n //this gives us the absolute index in the entire xml, which we can use to find the line at last\n return getErrorObject(isValid.err.code, isValid.err.msg, getLineNumberForPosition(xmlData, attrStrStart + isValid.err.line));\n }\n } else if (closingTag) {\n if (!result.tagClosed) {\n return getErrorObject('InvalidTag', \"Closing tag '\"+tagName+\"' doesn't have proper closing.\", getLineNumberForPosition(xmlData, i));\n } else if (attrStr.trim().length > 0) {\n return getErrorObject('InvalidTag', \"Closing tag '\"+tagName+\"' can't have attributes or invalid starting.\", getLineNumberForPosition(xmlData, tagStartPos));\n } else if (tags.length === 0) {\n return getErrorObject('InvalidTag', \"Closing tag '\"+tagName+\"' has not been opened.\", getLineNumberForPosition(xmlData, tagStartPos));\n } else {\n const otg = tags.pop();\n if (tagName !== otg.tagName) {\n let openPos = getLineNumberForPosition(xmlData, otg.tagStartPos);\n return getErrorObject('InvalidTag',\n \"Expected closing tag '\"+otg.tagName+\"' (opened in line \"+openPos.line+\", col \"+openPos.col+\") instead of closing tag '\"+tagName+\"'.\",\n getLineNumberForPosition(xmlData, tagStartPos));\n }\n\n //when there are no more tags, we reached the root level.\n if (tags.length == 0) {\n reachedRoot = true;\n }\n }\n } else {\n const isValid = validateAttributeString(attrStr, options);\n if (isValid !== true) {\n //the result from the nested function returns the position of the error within the attribute\n //in order to get the 'true' error line, we need to calculate the position where the attribute begins (i - attrStr.length) and then add the position within the attribute\n //this gives us the absolute index in the entire xml, which we can use to find the line at last\n return getErrorObject(isValid.err.code, isValid.err.msg, getLineNumberForPosition(xmlData, i - attrStr.length + isValid.err.line));\n }\n\n //if the root level has been reached before ...\n if (reachedRoot === true) {\n return getErrorObject('InvalidXml', 'Multiple possible root nodes found.', getLineNumberForPosition(xmlData, i));\n } else if(options.unpairedTags.indexOf(tagName) !== -1){\n //don't push into stack\n } else {\n tags.push({tagName, tagStartPos});\n }\n tagFound = true;\n }\n\n //skip tag text value\n //It may include comments and CDATA value\n for (i++; i < xmlData.length; i++) {\n if (xmlData[i] === '<') {\n if (xmlData[i + 1] === '!') {\n //comment or CADATA\n i++;\n i = readCommentAndCDATA(xmlData, i);\n continue;\n } else if (xmlData[i+1] === '?') {\n i = readPI(xmlData, ++i);\n if (i.err) return i;\n } else{\n break;\n }\n } else if (xmlData[i] === '&') {\n const afterAmp = validateAmpersand(xmlData, i);\n if (afterAmp == -1)\n return getErrorObject('InvalidChar', \"char '&' is not expected.\", getLineNumberForPosition(xmlData, i));\n i = afterAmp;\n }else{\n if (reachedRoot === true && !isWhiteSpace(xmlData[i])) {\n return getErrorObject('InvalidXml', \"Extra text at the end\", getLineNumberForPosition(xmlData, i));\n }\n }\n } //end of reading tag text value\n if (xmlData[i] === '<') {\n i--;\n }\n }\n } else {\n if ( isWhiteSpace(xmlData[i])) {\n continue;\n }\n return getErrorObject('InvalidChar', \"char '\"+xmlData[i]+\"' is not expected.\", getLineNumberForPosition(xmlData, i));\n }\n }\n\n if (!tagFound) {\n return getErrorObject('InvalidXml', 'Start tag expected.', 1);\n }else if (tags.length == 1) {\n return getErrorObject('InvalidTag', \"Unclosed tag '\"+tags[0].tagName+\"'.\", getLineNumberForPosition(xmlData, tags[0].tagStartPos));\n }else if (tags.length > 0) {\n return getErrorObject('InvalidXml', \"Invalid '\"+\n JSON.stringify(tags.map(t => t.tagName), null, 4).replace(/\\r?\\n/g, '')+\n \"' found.\", {line: 1, col: 1});\n }\n\n return true;\n};\n\nfunction isWhiteSpace(char){\n return char === ' ' || char === '\\t' || char === '\\n' || char === '\\r';\n}\n/**\n * Read Processing insstructions and skip\n * @param {*} xmlData\n * @param {*} i\n */\nfunction readPI(xmlData, i) {\n const start = i;\n for (; i < xmlData.length; i++) {\n if (xmlData[i] == '?' || xmlData[i] == ' ') {\n //tagname\n const tagname = xmlData.substr(start, i - start);\n if (i > 5 && tagname === 'xml') {\n return getErrorObject('InvalidXml', 'XML declaration allowed only at the start of the document.', getLineNumberForPosition(xmlData, i));\n } else if (xmlData[i] == '?' && xmlData[i + 1] == '>') {\n //check if valid attribut string\n i++;\n break;\n } else {\n continue;\n }\n }\n }\n return i;\n}\n\nfunction readCommentAndCDATA(xmlData, i) {\n if (xmlData.length > i + 5 && xmlData[i + 1] === '-' && xmlData[i + 2] === '-') {\n //comment\n for (i += 3; i < xmlData.length; i++) {\n if (xmlData[i] === '-' && xmlData[i + 1] === '-' && xmlData[i + 2] === '>') {\n i += 2;\n break;\n }\n }\n } else if (\n xmlData.length > i + 8 &&\n xmlData[i + 1] === 'D' &&\n xmlData[i + 2] === 'O' &&\n xmlData[i + 3] === 'C' &&\n xmlData[i + 4] === 'T' &&\n xmlData[i + 5] === 'Y' &&\n xmlData[i + 6] === 'P' &&\n xmlData[i + 7] === 'E'\n ) {\n let angleBracketsCount = 1;\n for (i += 8; i < xmlData.length; i++) {\n if (xmlData[i] === '<') {\n angleBracketsCount++;\n } else if (xmlData[i] === '>') {\n angleBracketsCount--;\n if (angleBracketsCount === 0) {\n break;\n }\n }\n }\n } else if (\n xmlData.length > i + 9 &&\n xmlData[i + 1] === '[' &&\n xmlData[i + 2] === 'C' &&\n xmlData[i + 3] === 'D' &&\n xmlData[i + 4] === 'A' &&\n xmlData[i + 5] === 'T' &&\n xmlData[i + 6] === 'A' &&\n xmlData[i + 7] === '['\n ) {\n for (i += 8; i < xmlData.length; i++) {\n if (xmlData[i] === ']' && xmlData[i + 1] === ']' && xmlData[i + 2] === '>') {\n i += 2;\n break;\n }\n }\n }\n\n return i;\n}\n\nconst doubleQuote = '\"';\nconst singleQuote = \"'\";\n\n/**\n * Keep reading xmlData until '<' is found outside the attribute value.\n * @param {string} xmlData\n * @param {number} i\n */\nfunction readAttributeStr(xmlData, i) {\n let attrStr = '';\n let startChar = '';\n let tagClosed = false;\n for (; i < xmlData.length; i++) {\n if (xmlData[i] === doubleQuote || xmlData[i] === singleQuote) {\n if (startChar === '') {\n startChar = xmlData[i];\n } else if (startChar !== xmlData[i]) {\n //if vaue is enclosed with double quote then single quotes are allowed inside the value and vice versa\n } else {\n startChar = '';\n }\n } else if (xmlData[i] === '>') {\n if (startChar === '') {\n tagClosed = true;\n break;\n }\n }\n attrStr += xmlData[i];\n }\n if (startChar !== '') {\n return false;\n }\n\n return {\n value: attrStr,\n index: i,\n tagClosed: tagClosed\n };\n}\n\n/**\n * Select all the attributes whether valid or invalid.\n */\nconst validAttrStrRegxp = new RegExp('(\\\\s*)([^\\\\s=]+)(\\\\s*=)?(\\\\s*([\\'\"])(([\\\\s\\\\S])*?)\\\\5)?', 'g');\n\n//attr, =\"sd\", a=\"amit's\", a=\"sd\"b=\"saf\", ab cd=\"\"\n\nfunction validateAttributeString(attrStr, options) {\n //console.log(\"start:\"+attrStr+\":end\");\n\n //if(attrStr.trim().length === 0) return true; //empty string\n\n const matches = util.getAllMatches(attrStr, validAttrStrRegxp);\n const attrNames = {};\n\n for (let i = 0; i < matches.length; i++) {\n if (matches[i][1].length === 0) {\n //nospace before attribute name: a=\"sd\"b=\"saf\"\n return getErrorObject('InvalidAttr', \"Attribute '\"+matches[i][2]+\"' has no space in starting.\", getPositionFromMatch(matches[i]))\n } else if (matches[i][3] !== undefined && matches[i][4] === undefined) {\n return getErrorObject('InvalidAttr', \"Attribute '\"+matches[i][2]+\"' is without value.\", getPositionFromMatch(matches[i]));\n } else if (matches[i][3] === undefined && !options.allowBooleanAttributes) {\n //independent attribute: ab\n return getErrorObject('InvalidAttr', \"boolean attribute '\"+matches[i][2]+\"' is not allowed.\", getPositionFromMatch(matches[i]));\n }\n /* else if(matches[i][6] === undefined){//attribute without value: ab=\n return { err: { code:\"InvalidAttr\",msg:\"attribute \" + matches[i][2] + \" has no value assigned.\"}};\n } */\n const attrName = matches[i][2];\n if (!validateAttrName(attrName)) {\n return getErrorObject('InvalidAttr', \"Attribute '\"+attrName+\"' is an invalid name.\", getPositionFromMatch(matches[i]));\n }\n if (!attrNames.hasOwnProperty(attrName)) {\n //check for duplicate attribute.\n attrNames[attrName] = 1;\n } else {\n return getErrorObject('InvalidAttr', \"Attribute '\"+attrName+\"' is repeated.\", getPositionFromMatch(matches[i]));\n }\n }\n\n return true;\n}\n\nfunction validateNumberAmpersand(xmlData, i) {\n let re = /\\d/;\n if (xmlData[i] === 'x') {\n i++;\n re = /[\\da-fA-F]/;\n }\n for (; i < xmlData.length; i++) {\n if (xmlData[i] === ';')\n return i;\n if (!xmlData[i].match(re))\n break;\n }\n return -1;\n}\n\nfunction validateAmpersand(xmlData, i) {\n // https://www.w3.org/TR/xml/#dt-charref\n i++;\n if (xmlData[i] === ';')\n return -1;\n if (xmlData[i] === '#') {\n i++;\n return validateNumberAmpersand(xmlData, i);\n }\n let count = 0;\n for (; i < xmlData.length; i++, count++) {\n if (xmlData[i].match(/\\w/) && count < 20)\n continue;\n if (xmlData[i] === ';')\n break;\n return -1;\n }\n return i;\n}\n\nfunction getErrorObject(code, message, lineNumber) {\n return {\n err: {\n code: code,\n msg: message,\n line: lineNumber.line || lineNumber,\n col: lineNumber.col,\n },\n };\n}\n\nfunction validateAttrName(attrName) {\n return util.isName(attrName);\n}\n\n// const startsWithXML = /^xml/i;\n\nfunction validateTagName(tagname) {\n return util.isName(tagname) /* && !tagname.match(startsWithXML) */;\n}\n\n//this function returns the line number for the character at the given index\nfunction getLineNumberForPosition(xmlData, index) {\n const lines = xmlData.substring(0, index).split(/\\r?\\n/);\n return {\n line: lines.length,\n\n // column number is last line's length + 1, because column numbering starts at 1:\n col: lines[lines.length - 1].length + 1\n };\n}\n\n//this function returns the position of the first character of match within attrStr\nfunction getPositionFromMatch(match) {\n return match.startIndex + match[1].length;\n}\n","'use strict';\n//parse Empty Node as self closing node\nconst buildFromOrderedJs = require('./orderedJs2Xml');\n\nconst defaultOptions = {\n attributeNamePrefix: '@_',\n attributesGroupName: false,\n textNodeName: '#text',\n ignoreAttributes: true,\n cdataPropName: false,\n format: false,\n indentBy: ' ',\n suppressEmptyNode: false,\n suppressUnpairedNode: true,\n suppressBooleanAttributes: true,\n tagValueProcessor: function(key, a) {\n return a;\n },\n attributeValueProcessor: function(attrName, a) {\n return a;\n },\n preserveOrder: false,\n commentPropName: false,\n unpairedTags: [],\n entities: [\n { regex: new RegExp(\"&\", \"g\"), val: \"&\" },//it must be on top\n { regex: new RegExp(\">\", \"g\"), val: \">\" },\n { regex: new RegExp(\"<\", \"g\"), val: \"<\" },\n { regex: new RegExp(\"\\'\", \"g\"), val: \"'\" },\n { regex: new RegExp(\"\\\"\", \"g\"), val: \""\" }\n ],\n processEntities: true,\n stopNodes: [],\n // transformTagName: false,\n // transformAttributeName: false,\n oneListGroup: false\n};\n\nfunction Builder(options) {\n this.options = Object.assign({}, defaultOptions, options);\n if (this.options.ignoreAttributes || this.options.attributesGroupName) {\n this.isAttribute = function(/*a*/) {\n return false;\n };\n } else {\n this.attrPrefixLen = this.options.attributeNamePrefix.length;\n this.isAttribute = isAttribute;\n }\n\n this.processTextOrObjNode = processTextOrObjNode\n\n if (this.options.format) {\n this.indentate = indentate;\n this.tagEndChar = '>\\n';\n this.newLine = '\\n';\n } else {\n this.indentate = function() {\n return '';\n };\n this.tagEndChar = '>';\n this.newLine = '';\n }\n}\n\nBuilder.prototype.build = function(jObj) {\n if(this.options.preserveOrder){\n return buildFromOrderedJs(jObj, this.options);\n }else {\n if(Array.isArray(jObj) && this.options.arrayNodeName && this.options.arrayNodeName.length > 1){\n jObj = {\n [this.options.arrayNodeName] : jObj\n }\n }\n return this.j2x(jObj, 0).val;\n }\n};\n\nBuilder.prototype.j2x = function(jObj, level) {\n let attrStr = '';\n let val = '';\n for (let key in jObj) {\n if(!Object.prototype.hasOwnProperty.call(jObj, key)) continue;\n if (typeof jObj[key] === 'undefined') {\n // supress undefined node only if it is not an attribute\n if (this.isAttribute(key)) {\n val += '';\n }\n } else if (jObj[key] === null) {\n // null attribute should be ignored by the attribute list, but should not cause the tag closing\n if (this.isAttribute(key)) {\n val += '';\n } else if (key[0] === '?') {\n val += this.indentate(level) + '<' + key + '?' + this.tagEndChar;\n } else {\n val += this.indentate(level) + '<' + key + '/' + this.tagEndChar;\n }\n // val += this.indentate(level) + '<' + key + '/' + this.tagEndChar;\n } else if (jObj[key] instanceof Date) {\n val += this.buildTextValNode(jObj[key], key, '', level);\n } else if (typeof jObj[key] !== 'object') {\n //premitive type\n const attr = this.isAttribute(key);\n if (attr) {\n attrStr += this.buildAttrPairStr(attr, '' + jObj[key]);\n }else {\n //tag value\n if (key === this.options.textNodeName) {\n let newval = this.options.tagValueProcessor(key, '' + jObj[key]);\n val += this.replaceEntitiesValue(newval);\n } else {\n val += this.buildTextValNode(jObj[key], key, '', level);\n }\n }\n } else if (Array.isArray(jObj[key])) {\n //repeated nodes\n const arrLen = jObj[key].length;\n let listTagVal = \"\";\n let listTagAttr = \"\";\n for (let j = 0; j < arrLen; j++) {\n const item = jObj[key][j];\n if (typeof item === 'undefined') {\n // supress undefined node\n } else if (item === null) {\n if(key[0] === \"?\") val += this.indentate(level) + '<' + key + '?' + this.tagEndChar;\n else val += this.indentate(level) + '<' + key + '/' + this.tagEndChar;\n // val += this.indentate(level) + '<' + key + '/' + this.tagEndChar;\n } else if (typeof item === 'object') {\n if(this.options.oneListGroup){\n const result = this.j2x(item, level + 1);\n listTagVal += result.val;\n if (this.options.attributesGroupName && item.hasOwnProperty(this.options.attributesGroupName)) {\n listTagAttr += result.attrStr\n }\n }else{\n listTagVal += this.processTextOrObjNode(item, key, level)\n }\n } else {\n if (this.options.oneListGroup) {\n let textValue = this.options.tagValueProcessor(key, item);\n textValue = this.replaceEntitiesValue(textValue);\n listTagVal += textValue;\n } else {\n listTagVal += this.buildTextValNode(item, key, '', level);\n }\n }\n }\n if(this.options.oneListGroup){\n listTagVal = this.buildObjectNode(listTagVal, key, listTagAttr, level);\n }\n val += listTagVal;\n } else {\n //nested node\n if (this.options.attributesGroupName && key === this.options.attributesGroupName) {\n const Ks = Object.keys(jObj[key]);\n const L = Ks.length;\n for (let j = 0; j < L; j++) {\n attrStr += this.buildAttrPairStr(Ks[j], '' + jObj[key][Ks[j]]);\n }\n } else {\n val += this.processTextOrObjNode(jObj[key], key, level)\n }\n }\n }\n return {attrStr: attrStr, val: val};\n};\n\nBuilder.prototype.buildAttrPairStr = function(attrName, val){\n val = this.options.attributeValueProcessor(attrName, '' + val);\n val = this.replaceEntitiesValue(val);\n if (this.options.suppressBooleanAttributes && val === \"true\") {\n return ' ' + attrName;\n } else return ' ' + attrName + '=\"' + val + '\"';\n}\n\nfunction processTextOrObjNode (object, key, level) {\n const result = this.j2x(object, level + 1);\n if (object[this.options.textNodeName] !== undefined && Object.keys(object).length === 1) {\n return this.buildTextValNode(object[this.options.textNodeName], key, result.attrStr, level);\n } else {\n return this.buildObjectNode(result.val, key, result.attrStr, level);\n }\n}\n\nBuilder.prototype.buildObjectNode = function(val, key, attrStr, level) {\n if(val === \"\"){\n if(key[0] === \"?\") return this.indentate(level) + '<' + key + attrStr+ '?' + this.tagEndChar;\n else {\n return this.indentate(level) + '<' + key + attrStr + this.closeTag(key) + this.tagEndChar;\n }\n }else{\n\n let tagEndExp = '' + val + tagEndExp );\n } else if (this.options.commentPropName !== false && key === this.options.commentPropName && piClosingChar.length === 0) {\n return this.indentate(level) + `` + this.newLine;\n }else {\n return (\n this.indentate(level) + '<' + key + attrStr + piClosingChar + this.tagEndChar +\n val +\n this.indentate(level) + tagEndExp );\n }\n }\n}\n\nBuilder.prototype.closeTag = function(key){\n let closeTag = \"\";\n if(this.options.unpairedTags.indexOf(key) !== -1){ //unpaired\n if(!this.options.suppressUnpairedNode) closeTag = \"/\"\n }else if(this.options.suppressEmptyNode){ //empty\n closeTag = \"/\";\n }else{\n closeTag = `>` + this.newLine;\n }else if (this.options.commentPropName !== false && key === this.options.commentPropName) {\n return this.indentate(level) + `` + this.newLine;\n }else if(key[0] === \"?\") {//PI tag\n return this.indentate(level) + '<' + key + attrStr+ '?' + this.tagEndChar; \n }else{\n let textValue = this.options.tagValueProcessor(key, val);\n textValue = this.replaceEntitiesValue(textValue);\n \n if( textValue === ''){\n return this.indentate(level) + '<' + key + attrStr + this.closeTag(key) + this.tagEndChar;\n }else{\n return this.indentate(level) + '<' + key + attrStr + '>' +\n textValue +\n ' 0 && this.options.processEntities){\n for (let i=0; i 0) {\n indentation = EOL;\n }\n return arrToStr(jArray, options, \"\", indentation);\n}\n\nfunction arrToStr(arr, options, jPath, indentation) {\n let xmlStr = \"\";\n let isPreviousElementTag = false;\n\n for (let i = 0; i < arr.length; i++) {\n const tagObj = arr[i];\n const tagName = propName(tagObj);\n if(tagName === undefined) continue;\n\n let newJPath = \"\";\n if (jPath.length === 0) newJPath = tagName\n else newJPath = `${jPath}.${tagName}`;\n\n if (tagName === options.textNodeName) {\n let tagText = tagObj[tagName];\n if (!isStopNode(newJPath, options)) {\n tagText = options.tagValueProcessor(tagName, tagText);\n tagText = replaceEntitiesValue(tagText, options);\n }\n if (isPreviousElementTag) {\n xmlStr += indentation;\n }\n xmlStr += tagText;\n isPreviousElementTag = false;\n continue;\n } else if (tagName === options.cdataPropName) {\n if (isPreviousElementTag) {\n xmlStr += indentation;\n }\n xmlStr += ``;\n isPreviousElementTag = false;\n continue;\n } else if (tagName === options.commentPropName) {\n xmlStr += indentation + ``;\n isPreviousElementTag = true;\n continue;\n } else if (tagName[0] === \"?\") {\n const attStr = attr_to_str(tagObj[\":@\"], options);\n const tempInd = tagName === \"?xml\" ? \"\" : indentation;\n let piTextNodeName = tagObj[tagName][0][options.textNodeName];\n piTextNodeName = piTextNodeName.length !== 0 ? \" \" + piTextNodeName : \"\"; //remove extra spacing\n xmlStr += tempInd + `<${tagName}${piTextNodeName}${attStr}?>`;\n isPreviousElementTag = true;\n continue;\n }\n let newIdentation = indentation;\n if (newIdentation !== \"\") {\n newIdentation += options.indentBy;\n }\n const attStr = attr_to_str(tagObj[\":@\"], options);\n const tagStart = indentation + `<${tagName}${attStr}`;\n const tagValue = arrToStr(tagObj[tagName], options, newJPath, newIdentation);\n if (options.unpairedTags.indexOf(tagName) !== -1) {\n if (options.suppressUnpairedNode) xmlStr += tagStart + \">\";\n else xmlStr += tagStart + \"/>\";\n } else if ((!tagValue || tagValue.length === 0) && options.suppressEmptyNode) {\n xmlStr += tagStart + \"/>\";\n } else if (tagValue && tagValue.endsWith(\">\")) {\n xmlStr += tagStart + `>${tagValue}${indentation}`;\n } else {\n xmlStr += tagStart + \">\";\n if (tagValue && indentation !== \"\" && (tagValue.includes(\"/>\") || tagValue.includes(\"`;\n }\n isPreviousElementTag = true;\n }\n\n return xmlStr;\n}\n\nfunction propName(obj) {\n const keys = Object.keys(obj);\n for (let i = 0; i < keys.length; i++) {\n const key = keys[i];\n if(!obj.hasOwnProperty(key)) continue;\n if (key !== \":@\") return key;\n }\n}\n\nfunction attr_to_str(attrMap, options) {\n let attrStr = \"\";\n if (attrMap && !options.ignoreAttributes) {\n for (let attr in attrMap) {\n if(!attrMap.hasOwnProperty(attr)) continue;\n let attrVal = options.attributeValueProcessor(attr, attrMap[attr]);\n attrVal = replaceEntitiesValue(attrVal, options);\n if (attrVal === true && options.suppressBooleanAttributes) {\n attrStr += ` ${attr.substr(options.attributeNamePrefix.length)}`;\n } else {\n attrStr += ` ${attr.substr(options.attributeNamePrefix.length)}=\"${attrVal}\"`;\n }\n }\n }\n return attrStr;\n}\n\nfunction isStopNode(jPath, options) {\n jPath = jPath.substr(0, jPath.length - options.textNodeName.length - 1);\n let tagName = jPath.substr(jPath.lastIndexOf(\".\") + 1);\n for (let index in options.stopNodes) {\n if (options.stopNodes[index] === jPath || options.stopNodes[index] === \"*.\" + tagName) return true;\n }\n return false;\n}\n\nfunction replaceEntitiesValue(textValue, options) {\n if (textValue && textValue.length > 0 && options.processEntities) {\n for (let i = 0; i < options.entities.length; i++) {\n const entity = options.entities[i];\n textValue = textValue.replace(entity.regex, entity.val);\n }\n }\n return textValue;\n}\nmodule.exports = toXml;\n","const util = require('../util');\n\n//TODO: handle comments\nfunction readDocType(xmlData, i){\n \n const entities = {};\n if( xmlData[i + 3] === 'O' &&\n xmlData[i + 4] === 'C' &&\n xmlData[i + 5] === 'T' &&\n xmlData[i + 6] === 'Y' &&\n xmlData[i + 7] === 'P' &&\n xmlData[i + 8] === 'E')\n { \n i = i+9;\n let angleBracketsCount = 1;\n let hasBody = false, comment = false;\n let exp = \"\";\n for(;i') { //Read tag content\n if(comment){\n if( xmlData[i - 1] === \"-\" && xmlData[i - 2] === \"-\"){\n comment = false;\n angleBracketsCount--;\n }\n }else{\n angleBracketsCount--;\n }\n if (angleBracketsCount === 0) {\n break;\n }\n }else if( xmlData[i] === '['){\n hasBody = true;\n }else{\n exp += xmlData[i];\n }\n }\n if(angleBracketsCount !== 0){\n throw new Error(`Unclosed DOCTYPE`);\n }\n }else{\n throw new Error(`Invalid Tag instead of DOCTYPE`);\n }\n return {entities, i};\n}\n\nfunction readEntityExp(xmlData,i){\n //External entities are not supported\n // \n\n //Parameter entities are not supported\n // \n\n //Internal entities are supported\n // \n \n //read EntityName\n let entityName = \"\";\n for (; i < xmlData.length && (xmlData[i] !== \"'\" && xmlData[i] !== '\"' ); i++) {\n // if(xmlData[i] === \" \") continue;\n // else \n entityName += xmlData[i];\n }\n entityName = entityName.trim();\n if(entityName.indexOf(\" \") !== -1) throw new Error(\"External entites are not supported\");\n\n //read Entity Value\n const startChar = xmlData[i++];\n let val = \"\"\n for (; i < xmlData.length && xmlData[i] !== startChar ; i++) {\n val += xmlData[i];\n }\n return [entityName, val, i];\n}\n\nfunction isComment(xmlData, i){\n if(xmlData[i+1] === '!' &&\n xmlData[i+2] === '-' &&\n xmlData[i+3] === '-') return true\n return false\n}\nfunction isEntity(xmlData, i){\n if(xmlData[i+1] === '!' &&\n xmlData[i+2] === 'E' &&\n xmlData[i+3] === 'N' &&\n xmlData[i+4] === 'T' &&\n xmlData[i+5] === 'I' &&\n xmlData[i+6] === 'T' &&\n xmlData[i+7] === 'Y') return true\n return false\n}\nfunction isElement(xmlData, i){\n if(xmlData[i+1] === '!' &&\n xmlData[i+2] === 'E' &&\n xmlData[i+3] === 'L' &&\n xmlData[i+4] === 'E' &&\n xmlData[i+5] === 'M' &&\n xmlData[i+6] === 'E' &&\n xmlData[i+7] === 'N' &&\n xmlData[i+8] === 'T') return true\n return false\n}\n\nfunction isAttlist(xmlData, i){\n if(xmlData[i+1] === '!' &&\n xmlData[i+2] === 'A' &&\n xmlData[i+3] === 'T' &&\n xmlData[i+4] === 'T' &&\n xmlData[i+5] === 'L' &&\n xmlData[i+6] === 'I' &&\n xmlData[i+7] === 'S' &&\n xmlData[i+8] === 'T') return true\n return false\n}\nfunction isNotation(xmlData, i){\n if(xmlData[i+1] === '!' &&\n xmlData[i+2] === 'N' &&\n xmlData[i+3] === 'O' &&\n xmlData[i+4] === 'T' &&\n xmlData[i+5] === 'A' &&\n xmlData[i+6] === 'T' &&\n xmlData[i+7] === 'I' &&\n xmlData[i+8] === 'O' &&\n xmlData[i+9] === 'N') return true\n return false\n}\n\nfunction validateEntityName(name){\n if (util.isName(name))\n\treturn name;\n else\n throw new Error(`Invalid entity name ${name}`);\n}\n\nmodule.exports = readDocType;\n","\nconst defaultOptions = {\n preserveOrder: false,\n attributeNamePrefix: '@_',\n attributesGroupName: false,\n textNodeName: '#text',\n ignoreAttributes: true,\n removeNSPrefix: false, // remove NS from tag name or attribute name if true\n allowBooleanAttributes: false, //a tag can have attributes without any value\n //ignoreRootElement : false,\n parseTagValue: true,\n parseAttributeValue: false,\n trimValues: true, //Trim string values of tag and attributes\n cdataPropName: false,\n numberParseOptions: {\n hex: true,\n leadingZeros: true,\n eNotation: true\n },\n tagValueProcessor: function(tagName, val) {\n return val;\n },\n attributeValueProcessor: function(attrName, val) {\n return val;\n },\n stopNodes: [], //nested tags will not be parsed even for errors\n alwaysCreateTextNode: false,\n isArray: () => false,\n commentPropName: false,\n unpairedTags: [],\n processEntities: true,\n htmlEntities: false,\n ignoreDeclaration: false,\n ignorePiTags: false,\n transformTagName: false,\n transformAttributeName: false,\n updateTag: function(tagName, jPath, attrs){\n return tagName\n },\n // skipEmptyListItem: false\n};\n \nconst buildOptions = function(options) {\n return Object.assign({}, defaultOptions, options);\n};\n\nexports.buildOptions = buildOptions;\nexports.defaultOptions = defaultOptions;","'use strict';\n///@ts-check\n\nconst util = require('../util');\nconst xmlNode = require('./xmlNode');\nconst readDocType = require(\"./DocTypeReader\");\nconst toNumber = require(\"strnum\");\n\n// const regx =\n// '<((!\\\\[CDATA\\\\[([\\\\s\\\\S]*?)(]]>))|((NAME:)?(NAME))([^>]*)>|((\\\\/)(NAME)\\\\s*>))([^<]*)'\n// .replace(/NAME/g, util.nameRegexp);\n\n//const tagsRegx = new RegExp(\"<(\\\\/?[\\\\w:\\\\-\\._]+)([^>]*)>(\\\\s*\"+cdataRegx+\")*([^<]+)?\",\"g\");\n//const tagsRegx = new RegExp(\"<(\\\\/?)((\\\\w*:)?([\\\\w:\\\\-\\._]+))([^>]*)>([^<]*)(\"+cdataRegx+\"([^<]*))*([^<]+)?\",\"g\");\n\nclass OrderedObjParser{\n constructor(options){\n this.options = options;\n this.currentNode = null;\n this.tagsNodeStack = [];\n this.docTypeEntities = {};\n this.lastEntities = {\n \"apos\" : { regex: /&(apos|#39|#x27);/g, val : \"'\"},\n \"gt\" : { regex: /&(gt|#62|#x3E);/g, val : \">\"},\n \"lt\" : { regex: /&(lt|#60|#x3C);/g, val : \"<\"},\n \"quot\" : { regex: /&(quot|#34|#x22);/g, val : \"\\\"\"},\n };\n this.ampEntity = { regex: /&(amp|#38|#x26);/g, val : \"&\"};\n this.htmlEntities = {\n \"space\": { regex: /&(nbsp|#160);/g, val: \" \" },\n // \"lt\" : { regex: /&(lt|#60);/g, val: \"<\" },\n // \"gt\" : { regex: /&(gt|#62);/g, val: \">\" },\n // \"amp\" : { regex: /&(amp|#38);/g, val: \"&\" },\n // \"quot\" : { regex: /&(quot|#34);/g, val: \"\\\"\" },\n // \"apos\" : { regex: /&(apos|#39);/g, val: \"'\" },\n \"cent\" : { regex: /&(cent|#162);/g, val: \"¢\" },\n \"pound\" : { regex: /&(pound|#163);/g, val: \"£\" },\n \"yen\" : { regex: /&(yen|#165);/g, val: \"¥\" },\n \"euro\" : { regex: /&(euro|#8364);/g, val: \"€\" },\n \"copyright\" : { regex: /&(copy|#169);/g, val: \"©\" },\n \"reg\" : { regex: /&(reg|#174);/g, val: \"®\" },\n \"inr\" : { regex: /&(inr|#8377);/g, val: \"₹\" },\n \"num_dec\": { regex: /&#([0-9]{1,7});/g, val : (_, str) => String.fromCharCode(Number.parseInt(str, 10)) },\n \"num_hex\": { regex: /&#x([0-9a-fA-F]{1,6});/g, val : (_, str) => String.fromCharCode(Number.parseInt(str, 16)) },\n };\n this.addExternalEntities = addExternalEntities;\n this.parseXml = parseXml;\n this.parseTextData = parseTextData;\n this.resolveNameSpace = resolveNameSpace;\n this.buildAttributesMap = buildAttributesMap;\n this.isItStopNode = isItStopNode;\n this.replaceEntitiesValue = replaceEntitiesValue;\n this.readStopNodeData = readStopNodeData;\n this.saveTextToParentTag = saveTextToParentTag;\n this.addChild = addChild;\n }\n\n}\n\nfunction addExternalEntities(externalEntities){\n const entKeys = Object.keys(externalEntities);\n for (let i = 0; i < entKeys.length; i++) {\n const ent = entKeys[i];\n this.lastEntities[ent] = {\n regex: new RegExp(\"&\"+ent+\";\",\"g\"),\n val : externalEntities[ent]\n }\n }\n}\n\n/**\n * @param {string} val\n * @param {string} tagName\n * @param {string} jPath\n * @param {boolean} dontTrim\n * @param {boolean} hasAttributes\n * @param {boolean} isLeafNode\n * @param {boolean} escapeEntities\n */\nfunction parseTextData(val, tagName, jPath, dontTrim, hasAttributes, isLeafNode, escapeEntities) {\n if (val !== undefined) {\n if (this.options.trimValues && !dontTrim) {\n val = val.trim();\n }\n if(val.length > 0){\n if(!escapeEntities) val = this.replaceEntitiesValue(val);\n \n const newval = this.options.tagValueProcessor(tagName, val, jPath, hasAttributes, isLeafNode);\n if(newval === null || newval === undefined){\n //don't parse\n return val;\n }else if(typeof newval !== typeof val || newval !== val){\n //overwrite\n return newval;\n }else if(this.options.trimValues){\n return parseValue(val, this.options.parseTagValue, this.options.numberParseOptions);\n }else{\n const trimmedVal = val.trim();\n if(trimmedVal === val){\n return parseValue(val, this.options.parseTagValue, this.options.numberParseOptions);\n }else{\n return val;\n }\n }\n }\n }\n}\n\nfunction resolveNameSpace(tagname) {\n if (this.options.removeNSPrefix) {\n const tags = tagname.split(':');\n const prefix = tagname.charAt(0) === '/' ? '/' : '';\n if (tags[0] === 'xmlns') {\n return '';\n }\n if (tags.length === 2) {\n tagname = prefix + tags[1];\n }\n }\n return tagname;\n}\n\n//TODO: change regex to capture NS\n//const attrsRegx = new RegExp(\"([\\\\w\\\\-\\\\.\\\\:]+)\\\\s*=\\\\s*(['\\\"])((.|\\n)*?)\\\\2\",\"gm\");\nconst attrsRegx = new RegExp('([^\\\\s=]+)\\\\s*(=\\\\s*([\\'\"])([\\\\s\\\\S]*?)\\\\3)?', 'gm');\n\nfunction buildAttributesMap(attrStr, jPath, tagName) {\n if (!this.options.ignoreAttributes && typeof attrStr === 'string') {\n // attrStr = attrStr.replace(/\\r?\\n/g, ' ');\n //attrStr = attrStr || attrStr.trim();\n\n const matches = util.getAllMatches(attrStr, attrsRegx);\n const len = matches.length; //don't make it inline\n const attrs = {};\n for (let i = 0; i < len; i++) {\n const attrName = this.resolveNameSpace(matches[i][1]);\n let oldVal = matches[i][4];\n let aName = this.options.attributeNamePrefix + attrName;\n if (attrName.length) {\n if (this.options.transformAttributeName) {\n aName = this.options.transformAttributeName(aName);\n }\n if(aName === \"__proto__\") aName = \"#__proto__\";\n if (oldVal !== undefined) {\n if (this.options.trimValues) {\n oldVal = oldVal.trim();\n }\n oldVal = this.replaceEntitiesValue(oldVal);\n const newVal = this.options.attributeValueProcessor(attrName, oldVal, jPath);\n if(newVal === null || newVal === undefined){\n //don't parse\n attrs[aName] = oldVal;\n }else if(typeof newVal !== typeof oldVal || newVal !== oldVal){\n //overwrite\n attrs[aName] = newVal;\n }else{\n //parse\n attrs[aName] = parseValue(\n oldVal,\n this.options.parseAttributeValue,\n this.options.numberParseOptions\n );\n }\n } else if (this.options.allowBooleanAttributes) {\n attrs[aName] = true;\n }\n }\n }\n if (!Object.keys(attrs).length) {\n return;\n }\n if (this.options.attributesGroupName) {\n const attrCollection = {};\n attrCollection[this.options.attributesGroupName] = attrs;\n return attrCollection;\n }\n return attrs\n }\n}\n\nconst parseXml = function(xmlData) {\n xmlData = xmlData.replace(/\\r\\n?/g, \"\\n\"); //TODO: remove this line\n const xmlObj = new xmlNode('!xml');\n let currentNode = xmlObj;\n let textData = \"\";\n let jPath = \"\";\n for(let i=0; i< xmlData.length; i++){//for each char in XML data\n const ch = xmlData[i];\n if(ch === '<'){\n // const nextIndex = i+1;\n // const _2ndChar = xmlData[nextIndex];\n if( xmlData[i+1] === '/') {//Closing Tag\n const closeIndex = findClosingIndex(xmlData, \">\", i, \"Closing Tag is not closed.\")\n let tagName = xmlData.substring(i+2,closeIndex).trim();\n\n if(this.options.removeNSPrefix){\n const colonIndex = tagName.indexOf(\":\");\n if(colonIndex !== -1){\n tagName = tagName.substr(colonIndex+1);\n }\n }\n\n if(this.options.transformTagName) {\n tagName = this.options.transformTagName(tagName);\n }\n\n if(currentNode){\n textData = this.saveTextToParentTag(textData, currentNode, jPath);\n }\n\n //check if last tag of nested tag was unpaired tag\n const lastTagName = jPath.substring(jPath.lastIndexOf(\".\")+1);\n if(tagName && this.options.unpairedTags.indexOf(tagName) !== -1 ){\n throw new Error(`Unpaired tag can not be used as closing tag: `);\n }\n let propIndex = 0\n if(lastTagName && this.options.unpairedTags.indexOf(lastTagName) !== -1 ){\n propIndex = jPath.lastIndexOf('.', jPath.lastIndexOf('.')-1)\n this.tagsNodeStack.pop();\n }else{\n propIndex = jPath.lastIndexOf(\".\");\n }\n jPath = jPath.substring(0, propIndex);\n\n currentNode = this.tagsNodeStack.pop();//avoid recursion, set the parent tag scope\n textData = \"\";\n i = closeIndex;\n } else if( xmlData[i+1] === '?') {\n\n let tagData = readTagExp(xmlData,i, false, \"?>\");\n if(!tagData) throw new Error(\"Pi Tag is not closed.\");\n\n textData = this.saveTextToParentTag(textData, currentNode, jPath);\n if( (this.options.ignoreDeclaration && tagData.tagName === \"?xml\") || this.options.ignorePiTags){\n\n }else{\n \n const childNode = new xmlNode(tagData.tagName);\n childNode.add(this.options.textNodeName, \"\");\n \n if(tagData.tagName !== tagData.tagExp && tagData.attrExpPresent){\n childNode[\":@\"] = this.buildAttributesMap(tagData.tagExp, jPath, tagData.tagName);\n }\n this.addChild(currentNode, childNode, jPath)\n\n }\n\n\n i = tagData.closeIndex + 1;\n } else if(xmlData.substr(i + 1, 3) === '!--') {\n const endIndex = findClosingIndex(xmlData, \"-->\", i+4, \"Comment is not closed.\")\n if(this.options.commentPropName){\n const comment = xmlData.substring(i + 4, endIndex - 2);\n\n textData = this.saveTextToParentTag(textData, currentNode, jPath);\n\n currentNode.add(this.options.commentPropName, [ { [this.options.textNodeName] : comment } ]);\n }\n i = endIndex;\n } else if( xmlData.substr(i + 1, 2) === '!D') {\n const result = readDocType(xmlData, i);\n this.docTypeEntities = result.entities;\n i = result.i;\n }else if(xmlData.substr(i + 1, 2) === '![') {\n const closeIndex = findClosingIndex(xmlData, \"]]>\", i, \"CDATA is not closed.\") - 2;\n const tagExp = xmlData.substring(i + 9,closeIndex);\n\n textData = this.saveTextToParentTag(textData, currentNode, jPath);\n\n let val = this.parseTextData(tagExp, currentNode.tagname, jPath, true, false, true, true);\n if(val == undefined) val = \"\";\n\n //cdata should be set even if it is 0 length string\n if(this.options.cdataPropName){\n currentNode.add(this.options.cdataPropName, [ { [this.options.textNodeName] : tagExp } ]);\n }else{\n currentNode.add(this.options.textNodeName, val);\n }\n \n i = closeIndex + 2;\n }else {//Opening tag\n let result = readTagExp(xmlData,i, this.options.removeNSPrefix);\n let tagName= result.tagName;\n const rawTagName = result.rawTagName;\n let tagExp = result.tagExp;\n let attrExpPresent = result.attrExpPresent;\n let closeIndex = result.closeIndex;\n\n if (this.options.transformTagName) {\n tagName = this.options.transformTagName(tagName);\n }\n \n //save text as child node\n if (currentNode && textData) {\n if(currentNode.tagname !== '!xml'){\n //when nested tag is found\n textData = this.saveTextToParentTag(textData, currentNode, jPath, false);\n }\n }\n\n //check if last tag was unpaired tag\n const lastTag = currentNode;\n if(lastTag && this.options.unpairedTags.indexOf(lastTag.tagname) !== -1 ){\n currentNode = this.tagsNodeStack.pop();\n jPath = jPath.substring(0, jPath.lastIndexOf(\".\"));\n }\n if(tagName !== xmlObj.tagname){\n jPath += jPath ? \".\" + tagName : tagName;\n }\n if (this.isItStopNode(this.options.stopNodes, jPath, tagName)) {\n let tagContent = \"\";\n //self-closing tag\n if(tagExp.length > 0 && tagExp.lastIndexOf(\"/\") === tagExp.length - 1){\n if(tagName[tagName.length - 1] === \"/\"){ //remove trailing '/'\n tagName = tagName.substr(0, tagName.length - 1);\n jPath = jPath.substr(0, jPath.length - 1);\n tagExp = tagName;\n }else{\n tagExp = tagExp.substr(0, tagExp.length - 1);\n }\n i = result.closeIndex;\n }\n //unpaired tag\n else if(this.options.unpairedTags.indexOf(tagName) !== -1){\n \n i = result.closeIndex;\n }\n //normal tag\n else{\n //read until closing tag is found\n const result = this.readStopNodeData(xmlData, rawTagName, closeIndex + 1);\n if(!result) throw new Error(`Unexpected end of ${rawTagName}`);\n i = result.i;\n tagContent = result.tagContent;\n }\n\n const childNode = new xmlNode(tagName);\n if(tagName !== tagExp && attrExpPresent){\n childNode[\":@\"] = this.buildAttributesMap(tagExp, jPath, tagName);\n }\n if(tagContent) {\n tagContent = this.parseTextData(tagContent, tagName, jPath, true, attrExpPresent, true, true);\n }\n \n jPath = jPath.substr(0, jPath.lastIndexOf(\".\"));\n childNode.add(this.options.textNodeName, tagContent);\n \n this.addChild(currentNode, childNode, jPath)\n }else{\n //selfClosing tag\n if(tagExp.length > 0 && tagExp.lastIndexOf(\"/\") === tagExp.length - 1){\n if(tagName[tagName.length - 1] === \"/\"){ //remove trailing '/'\n tagName = tagName.substr(0, tagName.length - 1);\n jPath = jPath.substr(0, jPath.length - 1);\n tagExp = tagName;\n }else{\n tagExp = tagExp.substr(0, tagExp.length - 1);\n }\n \n if(this.options.transformTagName) {\n tagName = this.options.transformTagName(tagName);\n }\n\n const childNode = new xmlNode(tagName);\n if(tagName !== tagExp && attrExpPresent){\n childNode[\":@\"] = this.buildAttributesMap(tagExp, jPath, tagName);\n }\n this.addChild(currentNode, childNode, jPath)\n jPath = jPath.substr(0, jPath.lastIndexOf(\".\"));\n }\n //opening tag\n else{\n const childNode = new xmlNode( tagName);\n this.tagsNodeStack.push(currentNode);\n \n if(tagName !== tagExp && attrExpPresent){\n childNode[\":@\"] = this.buildAttributesMap(tagExp, jPath, tagName);\n }\n this.addChild(currentNode, childNode, jPath)\n currentNode = childNode;\n }\n textData = \"\";\n i = closeIndex;\n }\n }\n }else{\n textData += xmlData[i];\n }\n }\n return xmlObj.child;\n}\n\nfunction addChild(currentNode, childNode, jPath){\n const result = this.options.updateTag(childNode.tagname, jPath, childNode[\":@\"])\n if(result === false){\n }else if(typeof result === \"string\"){\n childNode.tagname = result\n currentNode.addChild(childNode);\n }else{\n currentNode.addChild(childNode);\n }\n}\n\nconst replaceEntitiesValue = function(val){\n\n if(this.options.processEntities){\n for(let entityName in this.docTypeEntities){\n const entity = this.docTypeEntities[entityName];\n val = val.replace( entity.regx, entity.val);\n }\n for(let entityName in this.lastEntities){\n const entity = this.lastEntities[entityName];\n val = val.replace( entity.regex, entity.val);\n }\n if(this.options.htmlEntities){\n for(let entityName in this.htmlEntities){\n const entity = this.htmlEntities[entityName];\n val = val.replace( entity.regex, entity.val);\n }\n }\n val = val.replace( this.ampEntity.regex, this.ampEntity.val);\n }\n return val;\n}\nfunction saveTextToParentTag(textData, currentNode, jPath, isLeafNode) {\n if (textData) { //store previously collected data as textNode\n if(isLeafNode === undefined) isLeafNode = Object.keys(currentNode.child).length === 0\n \n textData = this.parseTextData(textData,\n currentNode.tagname,\n jPath,\n false,\n currentNode[\":@\"] ? Object.keys(currentNode[\":@\"]).length !== 0 : false,\n isLeafNode);\n\n if (textData !== undefined && textData !== \"\")\n currentNode.add(this.options.textNodeName, textData);\n textData = \"\";\n }\n return textData;\n}\n\n//TODO: use jPath to simplify the logic\n/**\n * \n * @param {string[]} stopNodes \n * @param {string} jPath\n * @param {string} currentTagName \n */\nfunction isItStopNode(stopNodes, jPath, currentTagName){\n const allNodesExp = \"*.\" + currentTagName;\n for (const stopNodePath in stopNodes) {\n const stopNodeExp = stopNodes[stopNodePath];\n if( allNodesExp === stopNodeExp || jPath === stopNodeExp ) return true;\n }\n return false;\n}\n\n/**\n * Returns the tag Expression and where it is ending handling single-double quotes situation\n * @param {string} xmlData \n * @param {number} i starting index\n * @returns \n */\nfunction tagExpWithClosingIndex(xmlData, i, closingChar = \">\"){\n let attrBoundary;\n let tagExp = \"\";\n for (let index = i; index < xmlData.length; index++) {\n let ch = xmlData[index];\n if (attrBoundary) {\n if (ch === attrBoundary) attrBoundary = \"\";//reset\n } else if (ch === '\"' || ch === \"'\") {\n attrBoundary = ch;\n } else if (ch === closingChar[0]) {\n if(closingChar[1]){\n if(xmlData[index + 1] === closingChar[1]){\n return {\n data: tagExp,\n index: index\n }\n }\n }else{\n return {\n data: tagExp,\n index: index\n }\n }\n } else if (ch === '\\t') {\n ch = \" \"\n }\n tagExp += ch;\n }\n}\n\nfunction findClosingIndex(xmlData, str, i, errMsg){\n const closingIndex = xmlData.indexOf(str, i);\n if(closingIndex === -1){\n throw new Error(errMsg)\n }else{\n return closingIndex + str.length - 1;\n }\n}\n\nfunction readTagExp(xmlData,i, removeNSPrefix, closingChar = \">\"){\n const result = tagExpWithClosingIndex(xmlData, i+1, closingChar);\n if(!result) return;\n let tagExp = result.data;\n const closeIndex = result.index;\n const separatorIndex = tagExp.search(/\\s/);\n let tagName = tagExp;\n let attrExpPresent = true;\n if(separatorIndex !== -1){//separate tag name and attributes expression\n tagName = tagExp.substring(0, separatorIndex);\n tagExp = tagExp.substring(separatorIndex + 1).trimStart();\n }\n\n const rawTagName = tagName;\n if(removeNSPrefix){\n const colonIndex = tagName.indexOf(\":\");\n if(colonIndex !== -1){\n tagName = tagName.substr(colonIndex+1);\n attrExpPresent = tagName !== result.data.substr(colonIndex + 1);\n }\n }\n\n return {\n tagName: tagName,\n tagExp: tagExp,\n closeIndex: closeIndex,\n attrExpPresent: attrExpPresent,\n rawTagName: rawTagName,\n }\n}\n/**\n * find paired tag for a stop node\n * @param {string} xmlData \n * @param {string} tagName \n * @param {number} i \n */\nfunction readStopNodeData(xmlData, tagName, i){\n const startIndex = i;\n // Starting at 1 since we already have an open tag\n let openTagCount = 1;\n\n for (; i < xmlData.length; i++) {\n if( xmlData[i] === \"<\"){ \n if (xmlData[i+1] === \"/\") {//close tag\n const closeIndex = findClosingIndex(xmlData, \">\", i, `${tagName} is not closed`);\n let closeTagName = xmlData.substring(i+2,closeIndex).trim();\n if(closeTagName === tagName){\n openTagCount--;\n if (openTagCount === 0) {\n return {\n tagContent: xmlData.substring(startIndex, i),\n i : closeIndex\n }\n }\n }\n i=closeIndex;\n } else if(xmlData[i+1] === '?') { \n const closeIndex = findClosingIndex(xmlData, \"?>\", i+1, \"StopNode is not closed.\")\n i=closeIndex;\n } else if(xmlData.substr(i + 1, 3) === '!--') { \n const closeIndex = findClosingIndex(xmlData, \"-->\", i+3, \"StopNode is not closed.\")\n i=closeIndex;\n } else if(xmlData.substr(i + 1, 2) === '![') { \n const closeIndex = findClosingIndex(xmlData, \"]]>\", i, \"StopNode is not closed.\") - 2;\n i=closeIndex;\n } else {\n const tagData = readTagExp(xmlData, i, '>')\n\n if (tagData) {\n const openTagName = tagData && tagData.tagName;\n if (openTagName === tagName && tagData.tagExp[tagData.tagExp.length-1] !== \"/\") {\n openTagCount++;\n }\n i=tagData.closeIndex;\n }\n }\n }\n }//end for loop\n}\n\nfunction parseValue(val, shouldParse, options) {\n if (shouldParse && typeof val === 'string') {\n //console.log(options)\n const newval = val.trim();\n if(newval === 'true' ) return true;\n else if(newval === 'false' ) return false;\n else return toNumber(val, options);\n } else {\n if (util.isExist(val)) {\n return val;\n } else {\n return '';\n }\n }\n}\n\n\nmodule.exports = OrderedObjParser;\n","const { buildOptions} = require(\"./OptionsBuilder\");\nconst OrderedObjParser = require(\"./OrderedObjParser\");\nconst { prettify} = require(\"./node2json\");\nconst validator = require('../validator');\n\nclass XMLParser{\n \n constructor(options){\n this.externalEntities = {};\n this.options = buildOptions(options);\n \n }\n /**\n * Parse XML dats to JS object \n * @param {string|Buffer} xmlData \n * @param {boolean|Object} validationOption \n */\n parse(xmlData,validationOption){\n if(typeof xmlData === \"string\"){\n }else if( xmlData.toString){\n xmlData = xmlData.toString();\n }else{\n throw new Error(\"XML data is accepted in String or Bytes[] form.\")\n }\n if( validationOption){\n if(validationOption === true) validationOption = {}; //validate with default options\n \n const result = validator.validate(xmlData, validationOption);\n if (result !== true) {\n throw Error( `${result.err.msg}:${result.err.line}:${result.err.col}` )\n }\n }\n const orderedObjParser = new OrderedObjParser(this.options);\n orderedObjParser.addExternalEntities(this.externalEntities);\n const orderedResult = orderedObjParser.parseXml(xmlData);\n if(this.options.preserveOrder || orderedResult === undefined) return orderedResult;\n else return prettify(orderedResult, this.options);\n }\n\n /**\n * Add Entity which is not by default supported by this library\n * @param {string} key \n * @param {string} value \n */\n addEntity(key, value){\n if(value.indexOf(\"&\") !== -1){\n throw new Error(\"Entity value can't have '&'\")\n }else if(key.indexOf(\"&\") !== -1 || key.indexOf(\";\") !== -1){\n throw new Error(\"An entity must be set without '&' and ';'. Eg. use '#xD' for ' '\")\n }else if(value === \"&\"){\n throw new Error(\"An entity with value '&' is not permitted\");\n }else{\n this.externalEntities[key] = value;\n }\n }\n}\n\nmodule.exports = XMLParser;","'use strict';\n\n/**\n * \n * @param {array} node \n * @param {any} options \n * @returns \n */\nfunction prettify(node, options){\n return compress( node, options);\n}\n\n/**\n * \n * @param {array} arr \n * @param {object} options \n * @param {string} jPath \n * @returns object\n */\nfunction compress(arr, options, jPath){\n let text;\n const compressedObj = {};\n for (let i = 0; i < arr.length; i++) {\n const tagObj = arr[i];\n const property = propName(tagObj);\n let newJpath = \"\";\n if(jPath === undefined) newJpath = property;\n else newJpath = jPath + \".\" + property;\n\n if(property === options.textNodeName){\n if(text === undefined) text = tagObj[property];\n else text += \"\" + tagObj[property];\n }else if(property === undefined){\n continue;\n }else if(tagObj[property]){\n \n let val = compress(tagObj[property], options, newJpath);\n const isLeaf = isLeafTag(val, options);\n\n if(tagObj[\":@\"]){\n assignAttributes( val, tagObj[\":@\"], newJpath, options);\n }else if(Object.keys(val).length === 1 && val[options.textNodeName] !== undefined && !options.alwaysCreateTextNode){\n val = val[options.textNodeName];\n }else if(Object.keys(val).length === 0){\n if(options.alwaysCreateTextNode) val[options.textNodeName] = \"\";\n else val = \"\";\n }\n\n if(compressedObj[property] !== undefined && compressedObj.hasOwnProperty(property)) {\n if(!Array.isArray(compressedObj[property])) {\n compressedObj[property] = [ compressedObj[property] ];\n }\n compressedObj[property].push(val);\n }else{\n //TODO: if a node is not an array, then check if it should be an array\n //also determine if it is a leaf node\n if (options.isArray(property, newJpath, isLeaf )) {\n compressedObj[property] = [val];\n }else{\n compressedObj[property] = val;\n }\n }\n }\n \n }\n // if(text && text.length > 0) compressedObj[options.textNodeName] = text;\n if(typeof text === \"string\"){\n if(text.length > 0) compressedObj[options.textNodeName] = text;\n }else if(text !== undefined) compressedObj[options.textNodeName] = text;\n return compressedObj;\n}\n\nfunction propName(obj){\n const keys = Object.keys(obj);\n for (let i = 0; i < keys.length; i++) {\n const key = keys[i];\n if(key !== \":@\") return key;\n }\n}\n\nfunction assignAttributes(obj, attrMap, jpath, options){\n if (attrMap) {\n const keys = Object.keys(attrMap);\n const len = keys.length; //don't make it inline\n for (let i = 0; i < len; i++) {\n const atrrName = keys[i];\n if (options.isArray(atrrName, jpath + \".\" + atrrName, true, true)) {\n obj[atrrName] = [ attrMap[atrrName] ];\n } else {\n obj[atrrName] = attrMap[atrrName];\n }\n }\n }\n}\n\nfunction isLeafTag(obj, options){\n const { textNodeName } = options;\n const propCount = Object.keys(obj).length;\n \n if (propCount === 0) {\n return true;\n }\n\n if (\n propCount === 1 &&\n (obj[textNodeName] || typeof obj[textNodeName] === \"boolean\" || obj[textNodeName] === 0)\n ) {\n return true;\n }\n\n return false;\n}\nexports.prettify = prettify;\n","'use strict';\n\nclass XmlNode{\n constructor(tagname) {\n this.tagname = tagname;\n this.child = []; //nested tags, text, cdata, comments in order\n this[\":@\"] = {}; //attributes map\n }\n add(key,val){\n // this.child.push( {name : key, val: val, isCdata: isCdata });\n if(key === \"__proto__\") key = \"#__proto__\";\n this.child.push( {[key]: val });\n }\n addChild(node) {\n if(node.tagname === \"__proto__\") node.tagname = \"#__proto__\";\n if(node[\":@\"] && Object.keys(node[\":@\"]).length > 0){\n this.child.push( { [node.tagname]: node.child, [\":@\"]: node[\":@\"] });\n }else{\n this.child.push( { [node.tagname]: node.child });\n }\n };\n};\n\n\nmodule.exports = XmlNode;","'use strict';\n\nmodule.exports = (flag, argv = process.argv) => {\n\tconst prefix = flag.startsWith('-') ? '' : (flag.length === 1 ? '-' : '--');\n\tconst position = argv.indexOf(prefix + flag);\n\tconst terminatorPosition = argv.indexOf('--');\n\treturn position !== -1 && (terminatorPosition === -1 || position < terminatorPosition);\n};\n","/*! https://mths.be/he v1.2.0 by @mathias | MIT license */\n;(function(root) {\n\n\t// Detect free variables `exports`.\n\tvar freeExports = typeof exports == 'object' && exports;\n\n\t// Detect free variable `module`.\n\tvar freeModule = typeof module == 'object' && module &&\n\t\tmodule.exports == freeExports && module;\n\n\t// Detect free variable `global`, from Node.js or Browserified code,\n\t// and use it as `root`.\n\tvar freeGlobal = typeof global == 'object' && global;\n\tif (freeGlobal.global === freeGlobal || freeGlobal.window === freeGlobal) {\n\t\troot = freeGlobal;\n\t}\n\n\t/*--------------------------------------------------------------------------*/\n\n\t// All astral symbols.\n\tvar regexAstralSymbols = /[\\uD800-\\uDBFF][\\uDC00-\\uDFFF]/g;\n\t// All ASCII symbols (not just printable ASCII) except those listed in the\n\t// first column of the overrides table.\n\t// https://html.spec.whatwg.org/multipage/syntax.html#table-charref-overrides\n\tvar regexAsciiWhitelist = /[\\x01-\\x7F]/g;\n\t// All BMP symbols that are not ASCII newlines, printable ASCII symbols, or\n\t// code points listed in the first column of the overrides table on\n\t// https://html.spec.whatwg.org/multipage/syntax.html#table-charref-overrides.\n\tvar regexBmpWhitelist = /[\\x01-\\t\\x0B\\f\\x0E-\\x1F\\x7F\\x81\\x8D\\x8F\\x90\\x9D\\xA0-\\uFFFF]/g;\n\n\tvar regexEncodeNonAscii = /<\\u20D2|=\\u20E5|>\\u20D2|\\u205F\\u200A|\\u219D\\u0338|\\u2202\\u0338|\\u2220\\u20D2|\\u2229\\uFE00|\\u222A\\uFE00|\\u223C\\u20D2|\\u223D\\u0331|\\u223E\\u0333|\\u2242\\u0338|\\u224B\\u0338|\\u224D\\u20D2|\\u224E\\u0338|\\u224F\\u0338|\\u2250\\u0338|\\u2261\\u20E5|\\u2264\\u20D2|\\u2265\\u20D2|\\u2266\\u0338|\\u2267\\u0338|\\u2268\\uFE00|\\u2269\\uFE00|\\u226A\\u0338|\\u226A\\u20D2|\\u226B\\u0338|\\u226B\\u20D2|\\u227F\\u0338|\\u2282\\u20D2|\\u2283\\u20D2|\\u228A\\uFE00|\\u228B\\uFE00|\\u228F\\u0338|\\u2290\\u0338|\\u2293\\uFE00|\\u2294\\uFE00|\\u22B4\\u20D2|\\u22B5\\u20D2|\\u22D8\\u0338|\\u22D9\\u0338|\\u22DA\\uFE00|\\u22DB\\uFE00|\\u22F5\\u0338|\\u22F9\\u0338|\\u2933\\u0338|\\u29CF\\u0338|\\u29D0\\u0338|\\u2A6D\\u0338|\\u2A70\\u0338|\\u2A7D\\u0338|\\u2A7E\\u0338|\\u2AA1\\u0338|\\u2AA2\\u0338|\\u2AAC\\uFE00|\\u2AAD\\uFE00|\\u2AAF\\u0338|\\u2AB0\\u0338|\\u2AC5\\u0338|\\u2AC6\\u0338|\\u2ACB\\uFE00|\\u2ACC\\uFE00|\\u2AFD\\u20E5|[\\xA0-\\u0113\\u0116-\\u0122\\u0124-\\u012B\\u012E-\\u014D\\u0150-\\u017E\\u0192\\u01B5\\u01F5\\u0237\\u02C6\\u02C7\\u02D8-\\u02DD\\u0311\\u0391-\\u03A1\\u03A3-\\u03A9\\u03B1-\\u03C9\\u03D1\\u03D2\\u03D5\\u03D6\\u03DC\\u03DD\\u03F0\\u03F1\\u03F5\\u03F6\\u0401-\\u040C\\u040E-\\u044F\\u0451-\\u045C\\u045E\\u045F\\u2002-\\u2005\\u2007-\\u2010\\u2013-\\u2016\\u2018-\\u201A\\u201C-\\u201E\\u2020-\\u2022\\u2025\\u2026\\u2030-\\u2035\\u2039\\u203A\\u203E\\u2041\\u2043\\u2044\\u204F\\u2057\\u205F-\\u2063\\u20AC\\u20DB\\u20DC\\u2102\\u2105\\u210A-\\u2113\\u2115-\\u211E\\u2122\\u2124\\u2127-\\u2129\\u212C\\u212D\\u212F-\\u2131\\u2133-\\u2138\\u2145-\\u2148\\u2153-\\u215E\\u2190-\\u219B\\u219D-\\u21A7\\u21A9-\\u21AE\\u21B0-\\u21B3\\u21B5-\\u21B7\\u21BA-\\u21DB\\u21DD\\u21E4\\u21E5\\u21F5\\u21FD-\\u2205\\u2207-\\u2209\\u220B\\u220C\\u220F-\\u2214\\u2216-\\u2218\\u221A\\u221D-\\u2238\\u223A-\\u2257\\u2259\\u225A\\u225C\\u225F-\\u2262\\u2264-\\u228B\\u228D-\\u229B\\u229D-\\u22A5\\u22A7-\\u22B0\\u22B2-\\u22BB\\u22BD-\\u22DB\\u22DE-\\u22E3\\u22E6-\\u22F7\\u22F9-\\u22FE\\u2305\\u2306\\u2308-\\u2310\\u2312\\u2313\\u2315\\u2316\\u231C-\\u231F\\u2322\\u2323\\u232D\\u232E\\u2336\\u233D\\u233F\\u237C\\u23B0\\u23B1\\u23B4-\\u23B6\\u23DC-\\u23DF\\u23E2\\u23E7\\u2423\\u24C8\\u2500\\u2502\\u250C\\u2510\\u2514\\u2518\\u251C\\u2524\\u252C\\u2534\\u253C\\u2550-\\u256C\\u2580\\u2584\\u2588\\u2591-\\u2593\\u25A1\\u25AA\\u25AB\\u25AD\\u25AE\\u25B1\\u25B3-\\u25B5\\u25B8\\u25B9\\u25BD-\\u25BF\\u25C2\\u25C3\\u25CA\\u25CB\\u25EC\\u25EF\\u25F8-\\u25FC\\u2605\\u2606\\u260E\\u2640\\u2642\\u2660\\u2663\\u2665\\u2666\\u266A\\u266D-\\u266F\\u2713\\u2717\\u2720\\u2736\\u2758\\u2772\\u2773\\u27C8\\u27C9\\u27E6-\\u27ED\\u27F5-\\u27FA\\u27FC\\u27FF\\u2902-\\u2905\\u290C-\\u2913\\u2916\\u2919-\\u2920\\u2923-\\u292A\\u2933\\u2935-\\u2939\\u293C\\u293D\\u2945\\u2948-\\u294B\\u294E-\\u2976\\u2978\\u2979\\u297B-\\u297F\\u2985\\u2986\\u298B-\\u2996\\u299A\\u299C\\u299D\\u29A4-\\u29B7\\u29B9\\u29BB\\u29BC\\u29BE-\\u29C5\\u29C9\\u29CD-\\u29D0\\u29DC-\\u29DE\\u29E3-\\u29E5\\u29EB\\u29F4\\u29F6\\u2A00-\\u2A02\\u2A04\\u2A06\\u2A0C\\u2A0D\\u2A10-\\u2A17\\u2A22-\\u2A27\\u2A29\\u2A2A\\u2A2D-\\u2A31\\u2A33-\\u2A3C\\u2A3F\\u2A40\\u2A42-\\u2A4D\\u2A50\\u2A53-\\u2A58\\u2A5A-\\u2A5D\\u2A5F\\u2A66\\u2A6A\\u2A6D-\\u2A75\\u2A77-\\u2A9A\\u2A9D-\\u2AA2\\u2AA4-\\u2AB0\\u2AB3-\\u2AC8\\u2ACB\\u2ACC\\u2ACF-\\u2ADB\\u2AE4\\u2AE6-\\u2AE9\\u2AEB-\\u2AF3\\u2AFD\\uFB00-\\uFB04]|\\uD835[\\uDC9C\\uDC9E\\uDC9F\\uDCA2\\uDCA5\\uDCA6\\uDCA9-\\uDCAC\\uDCAE-\\uDCB9\\uDCBB\\uDCBD-\\uDCC3\\uDCC5-\\uDCCF\\uDD04\\uDD05\\uDD07-\\uDD0A\\uDD0D-\\uDD14\\uDD16-\\uDD1C\\uDD1E-\\uDD39\\uDD3B-\\uDD3E\\uDD40-\\uDD44\\uDD46\\uDD4A-\\uDD50\\uDD52-\\uDD6B]/g;\n\tvar encodeMap = {'\\xAD':'shy','\\u200C':'zwnj','\\u200D':'zwj','\\u200E':'lrm','\\u2063':'ic','\\u2062':'it','\\u2061':'af','\\u200F':'rlm','\\u200B':'ZeroWidthSpace','\\u2060':'NoBreak','\\u0311':'DownBreve','\\u20DB':'tdot','\\u20DC':'DotDot','\\t':'Tab','\\n':'NewLine','\\u2008':'puncsp','\\u205F':'MediumSpace','\\u2009':'thinsp','\\u200A':'hairsp','\\u2004':'emsp13','\\u2002':'ensp','\\u2005':'emsp14','\\u2003':'emsp','\\u2007':'numsp','\\xA0':'nbsp','\\u205F\\u200A':'ThickSpace','\\u203E':'oline','_':'lowbar','\\u2010':'dash','\\u2013':'ndash','\\u2014':'mdash','\\u2015':'horbar',',':'comma',';':'semi','\\u204F':'bsemi',':':'colon','\\u2A74':'Colone','!':'excl','\\xA1':'iexcl','?':'quest','\\xBF':'iquest','.':'period','\\u2025':'nldr','\\u2026':'mldr','\\xB7':'middot','\\'':'apos','\\u2018':'lsquo','\\u2019':'rsquo','\\u201A':'sbquo','\\u2039':'lsaquo','\\u203A':'rsaquo','\"':'quot','\\u201C':'ldquo','\\u201D':'rdquo','\\u201E':'bdquo','\\xAB':'laquo','\\xBB':'raquo','(':'lpar',')':'rpar','[':'lsqb',']':'rsqb','{':'lcub','}':'rcub','\\u2308':'lceil','\\u2309':'rceil','\\u230A':'lfloor','\\u230B':'rfloor','\\u2985':'lopar','\\u2986':'ropar','\\u298B':'lbrke','\\u298C':'rbrke','\\u298D':'lbrkslu','\\u298E':'rbrksld','\\u298F':'lbrksld','\\u2990':'rbrkslu','\\u2991':'langd','\\u2992':'rangd','\\u2993':'lparlt','\\u2994':'rpargt','\\u2995':'gtlPar','\\u2996':'ltrPar','\\u27E6':'lobrk','\\u27E7':'robrk','\\u27E8':'lang','\\u27E9':'rang','\\u27EA':'Lang','\\u27EB':'Rang','\\u27EC':'loang','\\u27ED':'roang','\\u2772':'lbbrk','\\u2773':'rbbrk','\\u2016':'Vert','\\xA7':'sect','\\xB6':'para','@':'commat','*':'ast','/':'sol','undefined':null,'&':'amp','#':'num','%':'percnt','\\u2030':'permil','\\u2031':'pertenk','\\u2020':'dagger','\\u2021':'Dagger','\\u2022':'bull','\\u2043':'hybull','\\u2032':'prime','\\u2033':'Prime','\\u2034':'tprime','\\u2057':'qprime','\\u2035':'bprime','\\u2041':'caret','`':'grave','\\xB4':'acute','\\u02DC':'tilde','^':'Hat','\\xAF':'macr','\\u02D8':'breve','\\u02D9':'dot','\\xA8':'die','\\u02DA':'ring','\\u02DD':'dblac','\\xB8':'cedil','\\u02DB':'ogon','\\u02C6':'circ','\\u02C7':'caron','\\xB0':'deg','\\xA9':'copy','\\xAE':'reg','\\u2117':'copysr','\\u2118':'wp','\\u211E':'rx','\\u2127':'mho','\\u2129':'iiota','\\u2190':'larr','\\u219A':'nlarr','\\u2192':'rarr','\\u219B':'nrarr','\\u2191':'uarr','\\u2193':'darr','\\u2194':'harr','\\u21AE':'nharr','\\u2195':'varr','\\u2196':'nwarr','\\u2197':'nearr','\\u2198':'searr','\\u2199':'swarr','\\u219D':'rarrw','\\u219D\\u0338':'nrarrw','\\u219E':'Larr','\\u219F':'Uarr','\\u21A0':'Rarr','\\u21A1':'Darr','\\u21A2':'larrtl','\\u21A3':'rarrtl','\\u21A4':'mapstoleft','\\u21A5':'mapstoup','\\u21A6':'map','\\u21A7':'mapstodown','\\u21A9':'larrhk','\\u21AA':'rarrhk','\\u21AB':'larrlp','\\u21AC':'rarrlp','\\u21AD':'harrw','\\u21B0':'lsh','\\u21B1':'rsh','\\u21B2':'ldsh','\\u21B3':'rdsh','\\u21B5':'crarr','\\u21B6':'cularr','\\u21B7':'curarr','\\u21BA':'olarr','\\u21BB':'orarr','\\u21BC':'lharu','\\u21BD':'lhard','\\u21BE':'uharr','\\u21BF':'uharl','\\u21C0':'rharu','\\u21C1':'rhard','\\u21C2':'dharr','\\u21C3':'dharl','\\u21C4':'rlarr','\\u21C5':'udarr','\\u21C6':'lrarr','\\u21C7':'llarr','\\u21C8':'uuarr','\\u21C9':'rrarr','\\u21CA':'ddarr','\\u21CB':'lrhar','\\u21CC':'rlhar','\\u21D0':'lArr','\\u21CD':'nlArr','\\u21D1':'uArr','\\u21D2':'rArr','\\u21CF':'nrArr','\\u21D3':'dArr','\\u21D4':'iff','\\u21CE':'nhArr','\\u21D5':'vArr','\\u21D6':'nwArr','\\u21D7':'neArr','\\u21D8':'seArr','\\u21D9':'swArr','\\u21DA':'lAarr','\\u21DB':'rAarr','\\u21DD':'zigrarr','\\u21E4':'larrb','\\u21E5':'rarrb','\\u21F5':'duarr','\\u21FD':'loarr','\\u21FE':'roarr','\\u21FF':'hoarr','\\u2200':'forall','\\u2201':'comp','\\u2202':'part','\\u2202\\u0338':'npart','\\u2203':'exist','\\u2204':'nexist','\\u2205':'empty','\\u2207':'Del','\\u2208':'in','\\u2209':'notin','\\u220B':'ni','\\u220C':'notni','\\u03F6':'bepsi','\\u220F':'prod','\\u2210':'coprod','\\u2211':'sum','+':'plus','\\xB1':'pm','\\xF7':'div','\\xD7':'times','<':'lt','\\u226E':'nlt','<\\u20D2':'nvlt','=':'equals','\\u2260':'ne','=\\u20E5':'bne','\\u2A75':'Equal','>':'gt','\\u226F':'ngt','>\\u20D2':'nvgt','\\xAC':'not','|':'vert','\\xA6':'brvbar','\\u2212':'minus','\\u2213':'mp','\\u2214':'plusdo','\\u2044':'frasl','\\u2216':'setmn','\\u2217':'lowast','\\u2218':'compfn','\\u221A':'Sqrt','\\u221D':'prop','\\u221E':'infin','\\u221F':'angrt','\\u2220':'ang','\\u2220\\u20D2':'nang','\\u2221':'angmsd','\\u2222':'angsph','\\u2223':'mid','\\u2224':'nmid','\\u2225':'par','\\u2226':'npar','\\u2227':'and','\\u2228':'or','\\u2229':'cap','\\u2229\\uFE00':'caps','\\u222A':'cup','\\u222A\\uFE00':'cups','\\u222B':'int','\\u222C':'Int','\\u222D':'tint','\\u2A0C':'qint','\\u222E':'oint','\\u222F':'Conint','\\u2230':'Cconint','\\u2231':'cwint','\\u2232':'cwconint','\\u2233':'awconint','\\u2234':'there4','\\u2235':'becaus','\\u2236':'ratio','\\u2237':'Colon','\\u2238':'minusd','\\u223A':'mDDot','\\u223B':'homtht','\\u223C':'sim','\\u2241':'nsim','\\u223C\\u20D2':'nvsim','\\u223D':'bsim','\\u223D\\u0331':'race','\\u223E':'ac','\\u223E\\u0333':'acE','\\u223F':'acd','\\u2240':'wr','\\u2242':'esim','\\u2242\\u0338':'nesim','\\u2243':'sime','\\u2244':'nsime','\\u2245':'cong','\\u2247':'ncong','\\u2246':'simne','\\u2248':'ap','\\u2249':'nap','\\u224A':'ape','\\u224B':'apid','\\u224B\\u0338':'napid','\\u224C':'bcong','\\u224D':'CupCap','\\u226D':'NotCupCap','\\u224D\\u20D2':'nvap','\\u224E':'bump','\\u224E\\u0338':'nbump','\\u224F':'bumpe','\\u224F\\u0338':'nbumpe','\\u2250':'doteq','\\u2250\\u0338':'nedot','\\u2251':'eDot','\\u2252':'efDot','\\u2253':'erDot','\\u2254':'colone','\\u2255':'ecolon','\\u2256':'ecir','\\u2257':'cire','\\u2259':'wedgeq','\\u225A':'veeeq','\\u225C':'trie','\\u225F':'equest','\\u2261':'equiv','\\u2262':'nequiv','\\u2261\\u20E5':'bnequiv','\\u2264':'le','\\u2270':'nle','\\u2264\\u20D2':'nvle','\\u2265':'ge','\\u2271':'nge','\\u2265\\u20D2':'nvge','\\u2266':'lE','\\u2266\\u0338':'nlE','\\u2267':'gE','\\u2267\\u0338':'ngE','\\u2268\\uFE00':'lvnE','\\u2268':'lnE','\\u2269':'gnE','\\u2269\\uFE00':'gvnE','\\u226A':'ll','\\u226A\\u0338':'nLtv','\\u226A\\u20D2':'nLt','\\u226B':'gg','\\u226B\\u0338':'nGtv','\\u226B\\u20D2':'nGt','\\u226C':'twixt','\\u2272':'lsim','\\u2274':'nlsim','\\u2273':'gsim','\\u2275':'ngsim','\\u2276':'lg','\\u2278':'ntlg','\\u2277':'gl','\\u2279':'ntgl','\\u227A':'pr','\\u2280':'npr','\\u227B':'sc','\\u2281':'nsc','\\u227C':'prcue','\\u22E0':'nprcue','\\u227D':'sccue','\\u22E1':'nsccue','\\u227E':'prsim','\\u227F':'scsim','\\u227F\\u0338':'NotSucceedsTilde','\\u2282':'sub','\\u2284':'nsub','\\u2282\\u20D2':'vnsub','\\u2283':'sup','\\u2285':'nsup','\\u2283\\u20D2':'vnsup','\\u2286':'sube','\\u2288':'nsube','\\u2287':'supe','\\u2289':'nsupe','\\u228A\\uFE00':'vsubne','\\u228A':'subne','\\u228B\\uFE00':'vsupne','\\u228B':'supne','\\u228D':'cupdot','\\u228E':'uplus','\\u228F':'sqsub','\\u228F\\u0338':'NotSquareSubset','\\u2290':'sqsup','\\u2290\\u0338':'NotSquareSuperset','\\u2291':'sqsube','\\u22E2':'nsqsube','\\u2292':'sqsupe','\\u22E3':'nsqsupe','\\u2293':'sqcap','\\u2293\\uFE00':'sqcaps','\\u2294':'sqcup','\\u2294\\uFE00':'sqcups','\\u2295':'oplus','\\u2296':'ominus','\\u2297':'otimes','\\u2298':'osol','\\u2299':'odot','\\u229A':'ocir','\\u229B':'oast','\\u229D':'odash','\\u229E':'plusb','\\u229F':'minusb','\\u22A0':'timesb','\\u22A1':'sdotb','\\u22A2':'vdash','\\u22AC':'nvdash','\\u22A3':'dashv','\\u22A4':'top','\\u22A5':'bot','\\u22A7':'models','\\u22A8':'vDash','\\u22AD':'nvDash','\\u22A9':'Vdash','\\u22AE':'nVdash','\\u22AA':'Vvdash','\\u22AB':'VDash','\\u22AF':'nVDash','\\u22B0':'prurel','\\u22B2':'vltri','\\u22EA':'nltri','\\u22B3':'vrtri','\\u22EB':'nrtri','\\u22B4':'ltrie','\\u22EC':'nltrie','\\u22B4\\u20D2':'nvltrie','\\u22B5':'rtrie','\\u22ED':'nrtrie','\\u22B5\\u20D2':'nvrtrie','\\u22B6':'origof','\\u22B7':'imof','\\u22B8':'mumap','\\u22B9':'hercon','\\u22BA':'intcal','\\u22BB':'veebar','\\u22BD':'barvee','\\u22BE':'angrtvb','\\u22BF':'lrtri','\\u22C0':'Wedge','\\u22C1':'Vee','\\u22C2':'xcap','\\u22C3':'xcup','\\u22C4':'diam','\\u22C5':'sdot','\\u22C6':'Star','\\u22C7':'divonx','\\u22C8':'bowtie','\\u22C9':'ltimes','\\u22CA':'rtimes','\\u22CB':'lthree','\\u22CC':'rthree','\\u22CD':'bsime','\\u22CE':'cuvee','\\u22CF':'cuwed','\\u22D0':'Sub','\\u22D1':'Sup','\\u22D2':'Cap','\\u22D3':'Cup','\\u22D4':'fork','\\u22D5':'epar','\\u22D6':'ltdot','\\u22D7':'gtdot','\\u22D8':'Ll','\\u22D8\\u0338':'nLl','\\u22D9':'Gg','\\u22D9\\u0338':'nGg','\\u22DA\\uFE00':'lesg','\\u22DA':'leg','\\u22DB':'gel','\\u22DB\\uFE00':'gesl','\\u22DE':'cuepr','\\u22DF':'cuesc','\\u22E6':'lnsim','\\u22E7':'gnsim','\\u22E8':'prnsim','\\u22E9':'scnsim','\\u22EE':'vellip','\\u22EF':'ctdot','\\u22F0':'utdot','\\u22F1':'dtdot','\\u22F2':'disin','\\u22F3':'isinsv','\\u22F4':'isins','\\u22F5':'isindot','\\u22F5\\u0338':'notindot','\\u22F6':'notinvc','\\u22F7':'notinvb','\\u22F9':'isinE','\\u22F9\\u0338':'notinE','\\u22FA':'nisd','\\u22FB':'xnis','\\u22FC':'nis','\\u22FD':'notnivc','\\u22FE':'notnivb','\\u2305':'barwed','\\u2306':'Barwed','\\u230C':'drcrop','\\u230D':'dlcrop','\\u230E':'urcrop','\\u230F':'ulcrop','\\u2310':'bnot','\\u2312':'profline','\\u2313':'profsurf','\\u2315':'telrec','\\u2316':'target','\\u231C':'ulcorn','\\u231D':'urcorn','\\u231E':'dlcorn','\\u231F':'drcorn','\\u2322':'frown','\\u2323':'smile','\\u232D':'cylcty','\\u232E':'profalar','\\u2336':'topbot','\\u233D':'ovbar','\\u233F':'solbar','\\u237C':'angzarr','\\u23B0':'lmoust','\\u23B1':'rmoust','\\u23B4':'tbrk','\\u23B5':'bbrk','\\u23B6':'bbrktbrk','\\u23DC':'OverParenthesis','\\u23DD':'UnderParenthesis','\\u23DE':'OverBrace','\\u23DF':'UnderBrace','\\u23E2':'trpezium','\\u23E7':'elinters','\\u2423':'blank','\\u2500':'boxh','\\u2502':'boxv','\\u250C':'boxdr','\\u2510':'boxdl','\\u2514':'boxur','\\u2518':'boxul','\\u251C':'boxvr','\\u2524':'boxvl','\\u252C':'boxhd','\\u2534':'boxhu','\\u253C':'boxvh','\\u2550':'boxH','\\u2551':'boxV','\\u2552':'boxdR','\\u2553':'boxDr','\\u2554':'boxDR','\\u2555':'boxdL','\\u2556':'boxDl','\\u2557':'boxDL','\\u2558':'boxuR','\\u2559':'boxUr','\\u255A':'boxUR','\\u255B':'boxuL','\\u255C':'boxUl','\\u255D':'boxUL','\\u255E':'boxvR','\\u255F':'boxVr','\\u2560':'boxVR','\\u2561':'boxvL','\\u2562':'boxVl','\\u2563':'boxVL','\\u2564':'boxHd','\\u2565':'boxhD','\\u2566':'boxHD','\\u2567':'boxHu','\\u2568':'boxhU','\\u2569':'boxHU','\\u256A':'boxvH','\\u256B':'boxVh','\\u256C':'boxVH','\\u2580':'uhblk','\\u2584':'lhblk','\\u2588':'block','\\u2591':'blk14','\\u2592':'blk12','\\u2593':'blk34','\\u25A1':'squ','\\u25AA':'squf','\\u25AB':'EmptyVerySmallSquare','\\u25AD':'rect','\\u25AE':'marker','\\u25B1':'fltns','\\u25B3':'xutri','\\u25B4':'utrif','\\u25B5':'utri','\\u25B8':'rtrif','\\u25B9':'rtri','\\u25BD':'xdtri','\\u25BE':'dtrif','\\u25BF':'dtri','\\u25C2':'ltrif','\\u25C3':'ltri','\\u25CA':'loz','\\u25CB':'cir','\\u25EC':'tridot','\\u25EF':'xcirc','\\u25F8':'ultri','\\u25F9':'urtri','\\u25FA':'lltri','\\u25FB':'EmptySmallSquare','\\u25FC':'FilledSmallSquare','\\u2605':'starf','\\u2606':'star','\\u260E':'phone','\\u2640':'female','\\u2642':'male','\\u2660':'spades','\\u2663':'clubs','\\u2665':'hearts','\\u2666':'diams','\\u266A':'sung','\\u2713':'check','\\u2717':'cross','\\u2720':'malt','\\u2736':'sext','\\u2758':'VerticalSeparator','\\u27C8':'bsolhsub','\\u27C9':'suphsol','\\u27F5':'xlarr','\\u27F6':'xrarr','\\u27F7':'xharr','\\u27F8':'xlArr','\\u27F9':'xrArr','\\u27FA':'xhArr','\\u27FC':'xmap','\\u27FF':'dzigrarr','\\u2902':'nvlArr','\\u2903':'nvrArr','\\u2904':'nvHarr','\\u2905':'Map','\\u290C':'lbarr','\\u290D':'rbarr','\\u290E':'lBarr','\\u290F':'rBarr','\\u2910':'RBarr','\\u2911':'DDotrahd','\\u2912':'UpArrowBar','\\u2913':'DownArrowBar','\\u2916':'Rarrtl','\\u2919':'latail','\\u291A':'ratail','\\u291B':'lAtail','\\u291C':'rAtail','\\u291D':'larrfs','\\u291E':'rarrfs','\\u291F':'larrbfs','\\u2920':'rarrbfs','\\u2923':'nwarhk','\\u2924':'nearhk','\\u2925':'searhk','\\u2926':'swarhk','\\u2927':'nwnear','\\u2928':'toea','\\u2929':'tosa','\\u292A':'swnwar','\\u2933':'rarrc','\\u2933\\u0338':'nrarrc','\\u2935':'cudarrr','\\u2936':'ldca','\\u2937':'rdca','\\u2938':'cudarrl','\\u2939':'larrpl','\\u293C':'curarrm','\\u293D':'cularrp','\\u2945':'rarrpl','\\u2948':'harrcir','\\u2949':'Uarrocir','\\u294A':'lurdshar','\\u294B':'ldrushar','\\u294E':'LeftRightVector','\\u294F':'RightUpDownVector','\\u2950':'DownLeftRightVector','\\u2951':'LeftUpDownVector','\\u2952':'LeftVectorBar','\\u2953':'RightVectorBar','\\u2954':'RightUpVectorBar','\\u2955':'RightDownVectorBar','\\u2956':'DownLeftVectorBar','\\u2957':'DownRightVectorBar','\\u2958':'LeftUpVectorBar','\\u2959':'LeftDownVectorBar','\\u295A':'LeftTeeVector','\\u295B':'RightTeeVector','\\u295C':'RightUpTeeVector','\\u295D':'RightDownTeeVector','\\u295E':'DownLeftTeeVector','\\u295F':'DownRightTeeVector','\\u2960':'LeftUpTeeVector','\\u2961':'LeftDownTeeVector','\\u2962':'lHar','\\u2963':'uHar','\\u2964':'rHar','\\u2965':'dHar','\\u2966':'luruhar','\\u2967':'ldrdhar','\\u2968':'ruluhar','\\u2969':'rdldhar','\\u296A':'lharul','\\u296B':'llhard','\\u296C':'rharul','\\u296D':'lrhard','\\u296E':'udhar','\\u296F':'duhar','\\u2970':'RoundImplies','\\u2971':'erarr','\\u2972':'simrarr','\\u2973':'larrsim','\\u2974':'rarrsim','\\u2975':'rarrap','\\u2976':'ltlarr','\\u2978':'gtrarr','\\u2979':'subrarr','\\u297B':'suplarr','\\u297C':'lfisht','\\u297D':'rfisht','\\u297E':'ufisht','\\u297F':'dfisht','\\u299A':'vzigzag','\\u299C':'vangrt','\\u299D':'angrtvbd','\\u29A4':'ange','\\u29A5':'range','\\u29A6':'dwangle','\\u29A7':'uwangle','\\u29A8':'angmsdaa','\\u29A9':'angmsdab','\\u29AA':'angmsdac','\\u29AB':'angmsdad','\\u29AC':'angmsdae','\\u29AD':'angmsdaf','\\u29AE':'angmsdag','\\u29AF':'angmsdah','\\u29B0':'bemptyv','\\u29B1':'demptyv','\\u29B2':'cemptyv','\\u29B3':'raemptyv','\\u29B4':'laemptyv','\\u29B5':'ohbar','\\u29B6':'omid','\\u29B7':'opar','\\u29B9':'operp','\\u29BB':'olcross','\\u29BC':'odsold','\\u29BE':'olcir','\\u29BF':'ofcir','\\u29C0':'olt','\\u29C1':'ogt','\\u29C2':'cirscir','\\u29C3':'cirE','\\u29C4':'solb','\\u29C5':'bsolb','\\u29C9':'boxbox','\\u29CD':'trisb','\\u29CE':'rtriltri','\\u29CF':'LeftTriangleBar','\\u29CF\\u0338':'NotLeftTriangleBar','\\u29D0':'RightTriangleBar','\\u29D0\\u0338':'NotRightTriangleBar','\\u29DC':'iinfin','\\u29DD':'infintie','\\u29DE':'nvinfin','\\u29E3':'eparsl','\\u29E4':'smeparsl','\\u29E5':'eqvparsl','\\u29EB':'lozf','\\u29F4':'RuleDelayed','\\u29F6':'dsol','\\u2A00':'xodot','\\u2A01':'xoplus','\\u2A02':'xotime','\\u2A04':'xuplus','\\u2A06':'xsqcup','\\u2A0D':'fpartint','\\u2A10':'cirfnint','\\u2A11':'awint','\\u2A12':'rppolint','\\u2A13':'scpolint','\\u2A14':'npolint','\\u2A15':'pointint','\\u2A16':'quatint','\\u2A17':'intlarhk','\\u2A22':'pluscir','\\u2A23':'plusacir','\\u2A24':'simplus','\\u2A25':'plusdu','\\u2A26':'plussim','\\u2A27':'plustwo','\\u2A29':'mcomma','\\u2A2A':'minusdu','\\u2A2D':'loplus','\\u2A2E':'roplus','\\u2A2F':'Cross','\\u2A30':'timesd','\\u2A31':'timesbar','\\u2A33':'smashp','\\u2A34':'lotimes','\\u2A35':'rotimes','\\u2A36':'otimesas','\\u2A37':'Otimes','\\u2A38':'odiv','\\u2A39':'triplus','\\u2A3A':'triminus','\\u2A3B':'tritime','\\u2A3C':'iprod','\\u2A3F':'amalg','\\u2A40':'capdot','\\u2A42':'ncup','\\u2A43':'ncap','\\u2A44':'capand','\\u2A45':'cupor','\\u2A46':'cupcap','\\u2A47':'capcup','\\u2A48':'cupbrcap','\\u2A49':'capbrcup','\\u2A4A':'cupcup','\\u2A4B':'capcap','\\u2A4C':'ccups','\\u2A4D':'ccaps','\\u2A50':'ccupssm','\\u2A53':'And','\\u2A54':'Or','\\u2A55':'andand','\\u2A56':'oror','\\u2A57':'orslope','\\u2A58':'andslope','\\u2A5A':'andv','\\u2A5B':'orv','\\u2A5C':'andd','\\u2A5D':'ord','\\u2A5F':'wedbar','\\u2A66':'sdote','\\u2A6A':'simdot','\\u2A6D':'congdot','\\u2A6D\\u0338':'ncongdot','\\u2A6E':'easter','\\u2A6F':'apacir','\\u2A70':'apE','\\u2A70\\u0338':'napE','\\u2A71':'eplus','\\u2A72':'pluse','\\u2A73':'Esim','\\u2A77':'eDDot','\\u2A78':'equivDD','\\u2A79':'ltcir','\\u2A7A':'gtcir','\\u2A7B':'ltquest','\\u2A7C':'gtquest','\\u2A7D':'les','\\u2A7D\\u0338':'nles','\\u2A7E':'ges','\\u2A7E\\u0338':'nges','\\u2A7F':'lesdot','\\u2A80':'gesdot','\\u2A81':'lesdoto','\\u2A82':'gesdoto','\\u2A83':'lesdotor','\\u2A84':'gesdotol','\\u2A85':'lap','\\u2A86':'gap','\\u2A87':'lne','\\u2A88':'gne','\\u2A89':'lnap','\\u2A8A':'gnap','\\u2A8B':'lEg','\\u2A8C':'gEl','\\u2A8D':'lsime','\\u2A8E':'gsime','\\u2A8F':'lsimg','\\u2A90':'gsiml','\\u2A91':'lgE','\\u2A92':'glE','\\u2A93':'lesges','\\u2A94':'gesles','\\u2A95':'els','\\u2A96':'egs','\\u2A97':'elsdot','\\u2A98':'egsdot','\\u2A99':'el','\\u2A9A':'eg','\\u2A9D':'siml','\\u2A9E':'simg','\\u2A9F':'simlE','\\u2AA0':'simgE','\\u2AA1':'LessLess','\\u2AA1\\u0338':'NotNestedLessLess','\\u2AA2':'GreaterGreater','\\u2AA2\\u0338':'NotNestedGreaterGreater','\\u2AA4':'glj','\\u2AA5':'gla','\\u2AA6':'ltcc','\\u2AA7':'gtcc','\\u2AA8':'lescc','\\u2AA9':'gescc','\\u2AAA':'smt','\\u2AAB':'lat','\\u2AAC':'smte','\\u2AAC\\uFE00':'smtes','\\u2AAD':'late','\\u2AAD\\uFE00':'lates','\\u2AAE':'bumpE','\\u2AAF':'pre','\\u2AAF\\u0338':'npre','\\u2AB0':'sce','\\u2AB0\\u0338':'nsce','\\u2AB3':'prE','\\u2AB4':'scE','\\u2AB5':'prnE','\\u2AB6':'scnE','\\u2AB7':'prap','\\u2AB8':'scap','\\u2AB9':'prnap','\\u2ABA':'scnap','\\u2ABB':'Pr','\\u2ABC':'Sc','\\u2ABD':'subdot','\\u2ABE':'supdot','\\u2ABF':'subplus','\\u2AC0':'supplus','\\u2AC1':'submult','\\u2AC2':'supmult','\\u2AC3':'subedot','\\u2AC4':'supedot','\\u2AC5':'subE','\\u2AC5\\u0338':'nsubE','\\u2AC6':'supE','\\u2AC6\\u0338':'nsupE','\\u2AC7':'subsim','\\u2AC8':'supsim','\\u2ACB\\uFE00':'vsubnE','\\u2ACB':'subnE','\\u2ACC\\uFE00':'vsupnE','\\u2ACC':'supnE','\\u2ACF':'csub','\\u2AD0':'csup','\\u2AD1':'csube','\\u2AD2':'csupe','\\u2AD3':'subsup','\\u2AD4':'supsub','\\u2AD5':'subsub','\\u2AD6':'supsup','\\u2AD7':'suphsub','\\u2AD8':'supdsub','\\u2AD9':'forkv','\\u2ADA':'topfork','\\u2ADB':'mlcp','\\u2AE4':'Dashv','\\u2AE6':'Vdashl','\\u2AE7':'Barv','\\u2AE8':'vBar','\\u2AE9':'vBarv','\\u2AEB':'Vbar','\\u2AEC':'Not','\\u2AED':'bNot','\\u2AEE':'rnmid','\\u2AEF':'cirmid','\\u2AF0':'midcir','\\u2AF1':'topcir','\\u2AF2':'nhpar','\\u2AF3':'parsim','\\u2AFD':'parsl','\\u2AFD\\u20E5':'nparsl','\\u266D':'flat','\\u266E':'natur','\\u266F':'sharp','\\xA4':'curren','\\xA2':'cent','$':'dollar','\\xA3':'pound','\\xA5':'yen','\\u20AC':'euro','\\xB9':'sup1','\\xBD':'half','\\u2153':'frac13','\\xBC':'frac14','\\u2155':'frac15','\\u2159':'frac16','\\u215B':'frac18','\\xB2':'sup2','\\u2154':'frac23','\\u2156':'frac25','\\xB3':'sup3','\\xBE':'frac34','\\u2157':'frac35','\\u215C':'frac38','\\u2158':'frac45','\\u215A':'frac56','\\u215D':'frac58','\\u215E':'frac78','\\uD835\\uDCB6':'ascr','\\uD835\\uDD52':'aopf','\\uD835\\uDD1E':'afr','\\uD835\\uDD38':'Aopf','\\uD835\\uDD04':'Afr','\\uD835\\uDC9C':'Ascr','\\xAA':'ordf','\\xE1':'aacute','\\xC1':'Aacute','\\xE0':'agrave','\\xC0':'Agrave','\\u0103':'abreve','\\u0102':'Abreve','\\xE2':'acirc','\\xC2':'Acirc','\\xE5':'aring','\\xC5':'angst','\\xE4':'auml','\\xC4':'Auml','\\xE3':'atilde','\\xC3':'Atilde','\\u0105':'aogon','\\u0104':'Aogon','\\u0101':'amacr','\\u0100':'Amacr','\\xE6':'aelig','\\xC6':'AElig','\\uD835\\uDCB7':'bscr','\\uD835\\uDD53':'bopf','\\uD835\\uDD1F':'bfr','\\uD835\\uDD39':'Bopf','\\u212C':'Bscr','\\uD835\\uDD05':'Bfr','\\uD835\\uDD20':'cfr','\\uD835\\uDCB8':'cscr','\\uD835\\uDD54':'copf','\\u212D':'Cfr','\\uD835\\uDC9E':'Cscr','\\u2102':'Copf','\\u0107':'cacute','\\u0106':'Cacute','\\u0109':'ccirc','\\u0108':'Ccirc','\\u010D':'ccaron','\\u010C':'Ccaron','\\u010B':'cdot','\\u010A':'Cdot','\\xE7':'ccedil','\\xC7':'Ccedil','\\u2105':'incare','\\uD835\\uDD21':'dfr','\\u2146':'dd','\\uD835\\uDD55':'dopf','\\uD835\\uDCB9':'dscr','\\uD835\\uDC9F':'Dscr','\\uD835\\uDD07':'Dfr','\\u2145':'DD','\\uD835\\uDD3B':'Dopf','\\u010F':'dcaron','\\u010E':'Dcaron','\\u0111':'dstrok','\\u0110':'Dstrok','\\xF0':'eth','\\xD0':'ETH','\\u2147':'ee','\\u212F':'escr','\\uD835\\uDD22':'efr','\\uD835\\uDD56':'eopf','\\u2130':'Escr','\\uD835\\uDD08':'Efr','\\uD835\\uDD3C':'Eopf','\\xE9':'eacute','\\xC9':'Eacute','\\xE8':'egrave','\\xC8':'Egrave','\\xEA':'ecirc','\\xCA':'Ecirc','\\u011B':'ecaron','\\u011A':'Ecaron','\\xEB':'euml','\\xCB':'Euml','\\u0117':'edot','\\u0116':'Edot','\\u0119':'eogon','\\u0118':'Eogon','\\u0113':'emacr','\\u0112':'Emacr','\\uD835\\uDD23':'ffr','\\uD835\\uDD57':'fopf','\\uD835\\uDCBB':'fscr','\\uD835\\uDD09':'Ffr','\\uD835\\uDD3D':'Fopf','\\u2131':'Fscr','\\uFB00':'fflig','\\uFB03':'ffilig','\\uFB04':'ffllig','\\uFB01':'filig','fj':'fjlig','\\uFB02':'fllig','\\u0192':'fnof','\\u210A':'gscr','\\uD835\\uDD58':'gopf','\\uD835\\uDD24':'gfr','\\uD835\\uDCA2':'Gscr','\\uD835\\uDD3E':'Gopf','\\uD835\\uDD0A':'Gfr','\\u01F5':'gacute','\\u011F':'gbreve','\\u011E':'Gbreve','\\u011D':'gcirc','\\u011C':'Gcirc','\\u0121':'gdot','\\u0120':'Gdot','\\u0122':'Gcedil','\\uD835\\uDD25':'hfr','\\u210E':'planckh','\\uD835\\uDCBD':'hscr','\\uD835\\uDD59':'hopf','\\u210B':'Hscr','\\u210C':'Hfr','\\u210D':'Hopf','\\u0125':'hcirc','\\u0124':'Hcirc','\\u210F':'hbar','\\u0127':'hstrok','\\u0126':'Hstrok','\\uD835\\uDD5A':'iopf','\\uD835\\uDD26':'ifr','\\uD835\\uDCBE':'iscr','\\u2148':'ii','\\uD835\\uDD40':'Iopf','\\u2110':'Iscr','\\u2111':'Im','\\xED':'iacute','\\xCD':'Iacute','\\xEC':'igrave','\\xCC':'Igrave','\\xEE':'icirc','\\xCE':'Icirc','\\xEF':'iuml','\\xCF':'Iuml','\\u0129':'itilde','\\u0128':'Itilde','\\u0130':'Idot','\\u012F':'iogon','\\u012E':'Iogon','\\u012B':'imacr','\\u012A':'Imacr','\\u0133':'ijlig','\\u0132':'IJlig','\\u0131':'imath','\\uD835\\uDCBF':'jscr','\\uD835\\uDD5B':'jopf','\\uD835\\uDD27':'jfr','\\uD835\\uDCA5':'Jscr','\\uD835\\uDD0D':'Jfr','\\uD835\\uDD41':'Jopf','\\u0135':'jcirc','\\u0134':'Jcirc','\\u0237':'jmath','\\uD835\\uDD5C':'kopf','\\uD835\\uDCC0':'kscr','\\uD835\\uDD28':'kfr','\\uD835\\uDCA6':'Kscr','\\uD835\\uDD42':'Kopf','\\uD835\\uDD0E':'Kfr','\\u0137':'kcedil','\\u0136':'Kcedil','\\uD835\\uDD29':'lfr','\\uD835\\uDCC1':'lscr','\\u2113':'ell','\\uD835\\uDD5D':'lopf','\\u2112':'Lscr','\\uD835\\uDD0F':'Lfr','\\uD835\\uDD43':'Lopf','\\u013A':'lacute','\\u0139':'Lacute','\\u013E':'lcaron','\\u013D':'Lcaron','\\u013C':'lcedil','\\u013B':'Lcedil','\\u0142':'lstrok','\\u0141':'Lstrok','\\u0140':'lmidot','\\u013F':'Lmidot','\\uD835\\uDD2A':'mfr','\\uD835\\uDD5E':'mopf','\\uD835\\uDCC2':'mscr','\\uD835\\uDD10':'Mfr','\\uD835\\uDD44':'Mopf','\\u2133':'Mscr','\\uD835\\uDD2B':'nfr','\\uD835\\uDD5F':'nopf','\\uD835\\uDCC3':'nscr','\\u2115':'Nopf','\\uD835\\uDCA9':'Nscr','\\uD835\\uDD11':'Nfr','\\u0144':'nacute','\\u0143':'Nacute','\\u0148':'ncaron','\\u0147':'Ncaron','\\xF1':'ntilde','\\xD1':'Ntilde','\\u0146':'ncedil','\\u0145':'Ncedil','\\u2116':'numero','\\u014B':'eng','\\u014A':'ENG','\\uD835\\uDD60':'oopf','\\uD835\\uDD2C':'ofr','\\u2134':'oscr','\\uD835\\uDCAA':'Oscr','\\uD835\\uDD12':'Ofr','\\uD835\\uDD46':'Oopf','\\xBA':'ordm','\\xF3':'oacute','\\xD3':'Oacute','\\xF2':'ograve','\\xD2':'Ograve','\\xF4':'ocirc','\\xD4':'Ocirc','\\xF6':'ouml','\\xD6':'Ouml','\\u0151':'odblac','\\u0150':'Odblac','\\xF5':'otilde','\\xD5':'Otilde','\\xF8':'oslash','\\xD8':'Oslash','\\u014D':'omacr','\\u014C':'Omacr','\\u0153':'oelig','\\u0152':'OElig','\\uD835\\uDD2D':'pfr','\\uD835\\uDCC5':'pscr','\\uD835\\uDD61':'popf','\\u2119':'Popf','\\uD835\\uDD13':'Pfr','\\uD835\\uDCAB':'Pscr','\\uD835\\uDD62':'qopf','\\uD835\\uDD2E':'qfr','\\uD835\\uDCC6':'qscr','\\uD835\\uDCAC':'Qscr','\\uD835\\uDD14':'Qfr','\\u211A':'Qopf','\\u0138':'kgreen','\\uD835\\uDD2F':'rfr','\\uD835\\uDD63':'ropf','\\uD835\\uDCC7':'rscr','\\u211B':'Rscr','\\u211C':'Re','\\u211D':'Ropf','\\u0155':'racute','\\u0154':'Racute','\\u0159':'rcaron','\\u0158':'Rcaron','\\u0157':'rcedil','\\u0156':'Rcedil','\\uD835\\uDD64':'sopf','\\uD835\\uDCC8':'sscr','\\uD835\\uDD30':'sfr','\\uD835\\uDD4A':'Sopf','\\uD835\\uDD16':'Sfr','\\uD835\\uDCAE':'Sscr','\\u24C8':'oS','\\u015B':'sacute','\\u015A':'Sacute','\\u015D':'scirc','\\u015C':'Scirc','\\u0161':'scaron','\\u0160':'Scaron','\\u015F':'scedil','\\u015E':'Scedil','\\xDF':'szlig','\\uD835\\uDD31':'tfr','\\uD835\\uDCC9':'tscr','\\uD835\\uDD65':'topf','\\uD835\\uDCAF':'Tscr','\\uD835\\uDD17':'Tfr','\\uD835\\uDD4B':'Topf','\\u0165':'tcaron','\\u0164':'Tcaron','\\u0163':'tcedil','\\u0162':'Tcedil','\\u2122':'trade','\\u0167':'tstrok','\\u0166':'Tstrok','\\uD835\\uDCCA':'uscr','\\uD835\\uDD66':'uopf','\\uD835\\uDD32':'ufr','\\uD835\\uDD4C':'Uopf','\\uD835\\uDD18':'Ufr','\\uD835\\uDCB0':'Uscr','\\xFA':'uacute','\\xDA':'Uacute','\\xF9':'ugrave','\\xD9':'Ugrave','\\u016D':'ubreve','\\u016C':'Ubreve','\\xFB':'ucirc','\\xDB':'Ucirc','\\u016F':'uring','\\u016E':'Uring','\\xFC':'uuml','\\xDC':'Uuml','\\u0171':'udblac','\\u0170':'Udblac','\\u0169':'utilde','\\u0168':'Utilde','\\u0173':'uogon','\\u0172':'Uogon','\\u016B':'umacr','\\u016A':'Umacr','\\uD835\\uDD33':'vfr','\\uD835\\uDD67':'vopf','\\uD835\\uDCCB':'vscr','\\uD835\\uDD19':'Vfr','\\uD835\\uDD4D':'Vopf','\\uD835\\uDCB1':'Vscr','\\uD835\\uDD68':'wopf','\\uD835\\uDCCC':'wscr','\\uD835\\uDD34':'wfr','\\uD835\\uDCB2':'Wscr','\\uD835\\uDD4E':'Wopf','\\uD835\\uDD1A':'Wfr','\\u0175':'wcirc','\\u0174':'Wcirc','\\uD835\\uDD35':'xfr','\\uD835\\uDCCD':'xscr','\\uD835\\uDD69':'xopf','\\uD835\\uDD4F':'Xopf','\\uD835\\uDD1B':'Xfr','\\uD835\\uDCB3':'Xscr','\\uD835\\uDD36':'yfr','\\uD835\\uDCCE':'yscr','\\uD835\\uDD6A':'yopf','\\uD835\\uDCB4':'Yscr','\\uD835\\uDD1C':'Yfr','\\uD835\\uDD50':'Yopf','\\xFD':'yacute','\\xDD':'Yacute','\\u0177':'ycirc','\\u0176':'Ycirc','\\xFF':'yuml','\\u0178':'Yuml','\\uD835\\uDCCF':'zscr','\\uD835\\uDD37':'zfr','\\uD835\\uDD6B':'zopf','\\u2128':'Zfr','\\u2124':'Zopf','\\uD835\\uDCB5':'Zscr','\\u017A':'zacute','\\u0179':'Zacute','\\u017E':'zcaron','\\u017D':'Zcaron','\\u017C':'zdot','\\u017B':'Zdot','\\u01B5':'imped','\\xFE':'thorn','\\xDE':'THORN','\\u0149':'napos','\\u03B1':'alpha','\\u0391':'Alpha','\\u03B2':'beta','\\u0392':'Beta','\\u03B3':'gamma','\\u0393':'Gamma','\\u03B4':'delta','\\u0394':'Delta','\\u03B5':'epsi','\\u03F5':'epsiv','\\u0395':'Epsilon','\\u03DD':'gammad','\\u03DC':'Gammad','\\u03B6':'zeta','\\u0396':'Zeta','\\u03B7':'eta','\\u0397':'Eta','\\u03B8':'theta','\\u03D1':'thetav','\\u0398':'Theta','\\u03B9':'iota','\\u0399':'Iota','\\u03BA':'kappa','\\u03F0':'kappav','\\u039A':'Kappa','\\u03BB':'lambda','\\u039B':'Lambda','\\u03BC':'mu','\\xB5':'micro','\\u039C':'Mu','\\u03BD':'nu','\\u039D':'Nu','\\u03BE':'xi','\\u039E':'Xi','\\u03BF':'omicron','\\u039F':'Omicron','\\u03C0':'pi','\\u03D6':'piv','\\u03A0':'Pi','\\u03C1':'rho','\\u03F1':'rhov','\\u03A1':'Rho','\\u03C3':'sigma','\\u03A3':'Sigma','\\u03C2':'sigmaf','\\u03C4':'tau','\\u03A4':'Tau','\\u03C5':'upsi','\\u03A5':'Upsilon','\\u03D2':'Upsi','\\u03C6':'phi','\\u03D5':'phiv','\\u03A6':'Phi','\\u03C7':'chi','\\u03A7':'Chi','\\u03C8':'psi','\\u03A8':'Psi','\\u03C9':'omega','\\u03A9':'ohm','\\u0430':'acy','\\u0410':'Acy','\\u0431':'bcy','\\u0411':'Bcy','\\u0432':'vcy','\\u0412':'Vcy','\\u0433':'gcy','\\u0413':'Gcy','\\u0453':'gjcy','\\u0403':'GJcy','\\u0434':'dcy','\\u0414':'Dcy','\\u0452':'djcy','\\u0402':'DJcy','\\u0435':'iecy','\\u0415':'IEcy','\\u0451':'iocy','\\u0401':'IOcy','\\u0454':'jukcy','\\u0404':'Jukcy','\\u0436':'zhcy','\\u0416':'ZHcy','\\u0437':'zcy','\\u0417':'Zcy','\\u0455':'dscy','\\u0405':'DScy','\\u0438':'icy','\\u0418':'Icy','\\u0456':'iukcy','\\u0406':'Iukcy','\\u0457':'yicy','\\u0407':'YIcy','\\u0439':'jcy','\\u0419':'Jcy','\\u0458':'jsercy','\\u0408':'Jsercy','\\u043A':'kcy','\\u041A':'Kcy','\\u045C':'kjcy','\\u040C':'KJcy','\\u043B':'lcy','\\u041B':'Lcy','\\u0459':'ljcy','\\u0409':'LJcy','\\u043C':'mcy','\\u041C':'Mcy','\\u043D':'ncy','\\u041D':'Ncy','\\u045A':'njcy','\\u040A':'NJcy','\\u043E':'ocy','\\u041E':'Ocy','\\u043F':'pcy','\\u041F':'Pcy','\\u0440':'rcy','\\u0420':'Rcy','\\u0441':'scy','\\u0421':'Scy','\\u0442':'tcy','\\u0422':'Tcy','\\u045B':'tshcy','\\u040B':'TSHcy','\\u0443':'ucy','\\u0423':'Ucy','\\u045E':'ubrcy','\\u040E':'Ubrcy','\\u0444':'fcy','\\u0424':'Fcy','\\u0445':'khcy','\\u0425':'KHcy','\\u0446':'tscy','\\u0426':'TScy','\\u0447':'chcy','\\u0427':'CHcy','\\u045F':'dzcy','\\u040F':'DZcy','\\u0448':'shcy','\\u0428':'SHcy','\\u0449':'shchcy','\\u0429':'SHCHcy','\\u044A':'hardcy','\\u042A':'HARDcy','\\u044B':'ycy','\\u042B':'Ycy','\\u044C':'softcy','\\u042C':'SOFTcy','\\u044D':'ecy','\\u042D':'Ecy','\\u044E':'yucy','\\u042E':'YUcy','\\u044F':'yacy','\\u042F':'YAcy','\\u2135':'aleph','\\u2136':'beth','\\u2137':'gimel','\\u2138':'daleth'};\n\n\tvar regexEscape = /[\"&'<>`]/g;\n\tvar escapeMap = {\n\t\t'\"': '"',\n\t\t'&': '&',\n\t\t'\\'': ''',\n\t\t'<': '<',\n\t\t// See https://mathiasbynens.be/notes/ambiguous-ampersands: in HTML, the\n\t\t// following is not strictly necessary unless it’s part of a tag or an\n\t\t// unquoted attribute value. We’re only escaping it to support those\n\t\t// situations, and for XML support.\n\t\t'>': '>',\n\t\t// In Internet Explorer ≤ 8, the backtick character can be used\n\t\t// to break out of (un)quoted attribute values or HTML comments.\n\t\t// See http://html5sec.org/#102, http://html5sec.org/#108, and\n\t\t// http://html5sec.org/#133.\n\t\t'`': '`'\n\t};\n\n\tvar regexInvalidEntity = /&#(?:[xX][^a-fA-F0-9]|[^0-9xX])/;\n\tvar regexInvalidRawCodePoint = /[\\0-\\x08\\x0B\\x0E-\\x1F\\x7F-\\x9F\\uFDD0-\\uFDEF\\uFFFE\\uFFFF]|[\\uD83F\\uD87F\\uD8BF\\uD8FF\\uD93F\\uD97F\\uD9BF\\uD9FF\\uDA3F\\uDA7F\\uDABF\\uDAFF\\uDB3F\\uDB7F\\uDBBF\\uDBFF][\\uDFFE\\uDFFF]|[\\uD800-\\uDBFF](?![\\uDC00-\\uDFFF])|(?:[^\\uD800-\\uDBFF]|^)[\\uDC00-\\uDFFF]/;\n\tvar regexDecode = /&(CounterClockwiseContourIntegral|DoubleLongLeftRightArrow|ClockwiseContourIntegral|NotNestedGreaterGreater|NotSquareSupersetEqual|DiacriticalDoubleAcute|NotRightTriangleEqual|NotSucceedsSlantEqual|NotPrecedesSlantEqual|CloseCurlyDoubleQuote|NegativeVeryThinSpace|DoubleContourIntegral|FilledVerySmallSquare|CapitalDifferentialD|OpenCurlyDoubleQuote|EmptyVerySmallSquare|NestedGreaterGreater|DoubleLongRightArrow|NotLeftTriangleEqual|NotGreaterSlantEqual|ReverseUpEquilibrium|DoubleLeftRightArrow|NotSquareSubsetEqual|NotDoubleVerticalBar|RightArrowLeftArrow|NotGreaterFullEqual|NotRightTriangleBar|SquareSupersetEqual|DownLeftRightVector|DoubleLongLeftArrow|leftrightsquigarrow|LeftArrowRightArrow|NegativeMediumSpace|blacktriangleright|RightDownVectorBar|PrecedesSlantEqual|RightDoubleBracket|SucceedsSlantEqual|NotLeftTriangleBar|RightTriangleEqual|SquareIntersection|RightDownTeeVector|ReverseEquilibrium|NegativeThickSpace|longleftrightarrow|Longleftrightarrow|LongLeftRightArrow|DownRightTeeVector|DownRightVectorBar|GreaterSlantEqual|SquareSubsetEqual|LeftDownVectorBar|LeftDoubleBracket|VerticalSeparator|rightleftharpoons|NotGreaterGreater|NotSquareSuperset|blacktriangleleft|blacktriangledown|NegativeThinSpace|LeftDownTeeVector|NotLessSlantEqual|leftrightharpoons|DoubleUpDownArrow|DoubleVerticalBar|LeftTriangleEqual|FilledSmallSquare|twoheadrightarrow|NotNestedLessLess|DownLeftTeeVector|DownLeftVectorBar|RightAngleBracket|NotTildeFullEqual|NotReverseElement|RightUpDownVector|DiacriticalTilde|NotSucceedsTilde|circlearrowright|NotPrecedesEqual|rightharpoondown|DoubleRightArrow|NotSucceedsEqual|NonBreakingSpace|NotRightTriangle|LessEqualGreater|RightUpTeeVector|LeftAngleBracket|GreaterFullEqual|DownArrowUpArrow|RightUpVectorBar|twoheadleftarrow|GreaterEqualLess|downharpoonright|RightTriangleBar|ntrianglerighteq|NotSupersetEqual|LeftUpDownVector|DiacriticalAcute|rightrightarrows|vartriangleright|UpArrowDownArrow|DiacriticalGrave|UnderParenthesis|EmptySmallSquare|LeftUpVectorBar|leftrightarrows|DownRightVector|downharpoonleft|trianglerighteq|ShortRightArrow|OverParenthesis|DoubleLeftArrow|DoubleDownArrow|NotSquareSubset|bigtriangledown|ntrianglelefteq|UpperRightArrow|curvearrowright|vartriangleleft|NotLeftTriangle|nleftrightarrow|LowerRightArrow|NotHumpDownHump|NotGreaterTilde|rightthreetimes|LeftUpTeeVector|NotGreaterEqual|straightepsilon|LeftTriangleBar|rightsquigarrow|ContourIntegral|rightleftarrows|CloseCurlyQuote|RightDownVector|LeftRightVector|nLeftrightarrow|leftharpoondown|circlearrowleft|SquareSuperset|OpenCurlyQuote|hookrightarrow|HorizontalLine|DiacriticalDot|NotLessGreater|ntriangleright|DoubleRightTee|InvisibleComma|InvisibleTimes|LowerLeftArrow|DownLeftVector|NotSubsetEqual|curvearrowleft|trianglelefteq|NotVerticalBar|TildeFullEqual|downdownarrows|NotGreaterLess|RightTeeVector|ZeroWidthSpace|looparrowright|LongRightArrow|doublebarwedge|ShortLeftArrow|ShortDownArrow|RightVectorBar|GreaterGreater|ReverseElement|rightharpoonup|LessSlantEqual|leftthreetimes|upharpoonright|rightarrowtail|LeftDownVector|Longrightarrow|NestedLessLess|UpperLeftArrow|nshortparallel|leftleftarrows|leftrightarrow|Leftrightarrow|LeftRightArrow|longrightarrow|upharpoonleft|RightArrowBar|ApplyFunction|LeftTeeVector|leftarrowtail|NotEqualTilde|varsubsetneqq|varsupsetneqq|RightTeeArrow|SucceedsEqual|SucceedsTilde|LeftVectorBar|SupersetEqual|hookleftarrow|DifferentialD|VerticalTilde|VeryThinSpace|blacktriangle|bigtriangleup|LessFullEqual|divideontimes|leftharpoonup|UpEquilibrium|ntriangleleft|RightTriangle|measuredangle|shortparallel|longleftarrow|Longleftarrow|LongLeftArrow|DoubleLeftTee|Poincareplane|PrecedesEqual|triangleright|DoubleUpArrow|RightUpVector|fallingdotseq|looparrowleft|PrecedesTilde|NotTildeEqual|NotTildeTilde|smallsetminus|Proportional|triangleleft|triangledown|UnderBracket|NotHumpEqual|exponentiale|ExponentialE|NotLessTilde|HilbertSpace|RightCeiling|blacklozenge|varsupsetneq|HumpDownHump|GreaterEqual|VerticalLine|LeftTeeArrow|NotLessEqual|DownTeeArrow|LeftTriangle|varsubsetneq|Intersection|NotCongruent|DownArrowBar|LeftUpVector|LeftArrowBar|risingdotseq|GreaterTilde|RoundImplies|SquareSubset|ShortUpArrow|NotSuperset|quaternions|precnapprox|backepsilon|preccurlyeq|OverBracket|blacksquare|MediumSpace|VerticalBar|circledcirc|circleddash|CircleMinus|CircleTimes|LessGreater|curlyeqprec|curlyeqsucc|diamondsuit|UpDownArrow|Updownarrow|RuleDelayed|Rrightarrow|updownarrow|RightVector|nRightarrow|nrightarrow|eqslantless|LeftCeiling|Equilibrium|SmallCircle|expectation|NotSucceeds|thickapprox|GreaterLess|SquareUnion|NotPrecedes|NotLessLess|straightphi|succnapprox|succcurlyeq|SubsetEqual|sqsupseteq|Proportion|Laplacetrf|ImaginaryI|supsetneqq|NotGreater|gtreqqless|NotElement|ThickSpace|TildeEqual|TildeTilde|Fouriertrf|rmoustache|EqualTilde|eqslantgtr|UnderBrace|LeftVector|UpArrowBar|nLeftarrow|nsubseteqq|subsetneqq|nsupseteqq|nleftarrow|succapprox|lessapprox|UpTeeArrow|upuparrows|curlywedge|lesseqqgtr|varepsilon|varnothing|RightFloor|complement|CirclePlus|sqsubseteq|Lleftarrow|circledast|RightArrow|Rightarrow|rightarrow|lmoustache|Bernoullis|precapprox|mapstoleft|mapstodown|longmapsto|dotsquare|downarrow|DoubleDot|nsubseteq|supsetneq|leftarrow|nsupseteq|subsetneq|ThinSpace|ngeqslant|subseteqq|HumpEqual|NotSubset|triangleq|NotCupCap|lesseqgtr|heartsuit|TripleDot|Leftarrow|Coproduct|Congruent|varpropto|complexes|gvertneqq|LeftArrow|LessTilde|supseteqq|MinusPlus|CircleDot|nleqslant|NotExists|gtreqless|nparallel|UnionPlus|LeftFloor|checkmark|CenterDot|centerdot|Mellintrf|gtrapprox|bigotimes|OverBrace|spadesuit|therefore|pitchfork|rationals|PlusMinus|Backslash|Therefore|DownBreve|backsimeq|backprime|DownArrow|nshortmid|Downarrow|lvertneqq|eqvparsl|imagline|imagpart|infintie|integers|Integral|intercal|LessLess|Uarrocir|intlarhk|sqsupset|angmsdaf|sqsubset|llcorner|vartheta|cupbrcap|lnapprox|Superset|SuchThat|succnsim|succneqq|angmsdag|biguplus|curlyvee|trpezium|Succeeds|NotTilde|bigwedge|angmsdah|angrtvbd|triminus|cwconint|fpartint|lrcorner|smeparsl|subseteq|urcorner|lurdshar|laemptyv|DDotrahd|approxeq|ldrushar|awconint|mapstoup|backcong|shortmid|triangle|geqslant|gesdotol|timesbar|circledR|circledS|setminus|multimap|naturals|scpolint|ncongdot|RightTee|boxminus|gnapprox|boxtimes|andslope|thicksim|angmsdaa|varsigma|cirfnint|rtriltri|angmsdab|rppolint|angmsdac|barwedge|drbkarow|clubsuit|thetasym|bsolhsub|capbrcup|dzigrarr|doteqdot|DotEqual|dotminus|UnderBar|NotEqual|realpart|otimesas|ulcorner|hksearow|hkswarow|parallel|PartialD|elinters|emptyset|plusacir|bbrktbrk|angmsdad|pointint|bigoplus|angmsdae|Precedes|bigsqcup|varkappa|notindot|supseteq|precneqq|precnsim|profalar|profline|profsurf|leqslant|lesdotor|raemptyv|subplus|notnivb|notnivc|subrarr|zigrarr|vzigzag|submult|subedot|Element|between|cirscir|larrbfs|larrsim|lotimes|lbrksld|lbrkslu|lozenge|ldrdhar|dbkarow|bigcirc|epsilon|simrarr|simplus|ltquest|Epsilon|luruhar|gtquest|maltese|npolint|eqcolon|npreceq|bigodot|ddagger|gtrless|bnequiv|harrcir|ddotseq|equivDD|backsim|demptyv|nsqsube|nsqsupe|Upsilon|nsubset|upsilon|minusdu|nsucceq|swarrow|nsupset|coloneq|searrow|boxplus|napprox|natural|asympeq|alefsym|congdot|nearrow|bigstar|diamond|supplus|tritime|LeftTee|nvinfin|triplus|NewLine|nvltrie|nvrtrie|nwarrow|nexists|Diamond|ruluhar|Implies|supmult|angzarr|suplarr|suphsub|questeq|because|digamma|Because|olcross|bemptyv|omicron|Omicron|rotimes|NoBreak|intprod|angrtvb|orderof|uwangle|suphsol|lesdoto|orslope|DownTee|realine|cudarrl|rdldhar|OverBar|supedot|lessdot|supdsub|topfork|succsim|rbrkslu|rbrksld|pertenk|cudarrr|isindot|planckh|lessgtr|pluscir|gesdoto|plussim|plustwo|lesssim|cularrp|rarrsim|Cayleys|notinva|notinvb|notinvc|UpArrow|Uparrow|uparrow|NotLess|dwangle|precsim|Product|curarrm|Cconint|dotplus|rarrbfs|ccupssm|Cedilla|cemptyv|notniva|quatint|frac35|frac38|frac45|frac56|frac58|frac78|tridot|xoplus|gacute|gammad|Gammad|lfisht|lfloor|bigcup|sqsupe|gbreve|Gbreve|lharul|sqsube|sqcups|Gcedil|apacir|llhard|lmidot|Lmidot|lmoust|andand|sqcaps|approx|Abreve|spades|circeq|tprime|divide|topcir|Assign|topbot|gesdot|divonx|xuplus|timesd|gesles|atilde|solbar|SOFTcy|loplus|timesb|lowast|lowbar|dlcorn|dlcrop|softcy|dollar|lparlt|thksim|lrhard|Atilde|lsaquo|smashp|bigvee|thinsp|wreath|bkarow|lsquor|lstrok|Lstrok|lthree|ltimes|ltlarr|DotDot|simdot|ltrPar|weierp|xsqcup|angmsd|sigmav|sigmaf|zeetrf|Zcaron|zcaron|mapsto|vsupne|thetav|cirmid|marker|mcomma|Zacute|vsubnE|there4|gtlPar|vsubne|bottom|gtrarr|SHCHcy|shchcy|midast|midcir|middot|minusb|minusd|gtrdot|bowtie|sfrown|mnplus|models|colone|seswar|Colone|mstpos|searhk|gtrsim|nacute|Nacute|boxbox|telrec|hairsp|Tcedil|nbumpe|scnsim|ncaron|Ncaron|ncedil|Ncedil|hamilt|Scedil|nearhk|hardcy|HARDcy|tcedil|Tcaron|commat|nequiv|nesear|tcaron|target|hearts|nexist|varrho|scedil|Scaron|scaron|hellip|Sacute|sacute|hercon|swnwar|compfn|rtimes|rthree|rsquor|rsaquo|zacute|wedgeq|homtht|barvee|barwed|Barwed|rpargt|horbar|conint|swarhk|roplus|nltrie|hslash|hstrok|Hstrok|rmoust|Conint|bprime|hybull|hyphen|iacute|Iacute|supsup|supsub|supsim|varphi|coprod|brvbar|agrave|Supset|supset|igrave|Igrave|notinE|Agrave|iiiint|iinfin|copysr|wedbar|Verbar|vangrt|becaus|incare|verbar|inodot|bullet|drcorn|intcal|drcrop|cularr|vellip|Utilde|bumpeq|cupcap|dstrok|Dstrok|CupCap|cupcup|cupdot|eacute|Eacute|supdot|iquest|easter|ecaron|Ecaron|ecolon|isinsv|utilde|itilde|Itilde|curarr|succeq|Bumpeq|cacute|ulcrop|nparsl|Cacute|nprcue|egrave|Egrave|nrarrc|nrarrw|subsup|subsub|nrtrie|jsercy|nsccue|Jsercy|kappav|kcedil|Kcedil|subsim|ulcorn|nsimeq|egsdot|veebar|kgreen|capand|elsdot|Subset|subset|curren|aacute|lacute|Lacute|emptyv|ntilde|Ntilde|lagran|lambda|Lambda|capcap|Ugrave|langle|subdot|emsp13|numero|emsp14|nvdash|nvDash|nVdash|nVDash|ugrave|ufisht|nvHarr|larrfs|nvlArr|larrhk|larrlp|larrpl|nvrArr|Udblac|nwarhk|larrtl|nwnear|oacute|Oacute|latail|lAtail|sstarf|lbrace|odblac|Odblac|lbrack|udblac|odsold|eparsl|lcaron|Lcaron|ograve|Ograve|lcedil|Lcedil|Aacute|ssmile|ssetmn|squarf|ldquor|capcup|ominus|cylcty|rharul|eqcirc|dagger|rfloor|rfisht|Dagger|daleth|equals|origof|capdot|equest|dcaron|Dcaron|rdquor|oslash|Oslash|otilde|Otilde|otimes|Otimes|urcrop|Ubreve|ubreve|Yacute|Uacute|uacute|Rcedil|rcedil|urcorn|parsim|Rcaron|Vdashl|rcaron|Tstrok|percnt|period|permil|Exists|yacute|rbrack|rbrace|phmmat|ccaron|Ccaron|planck|ccedil|plankv|tstrok|female|plusdo|plusdu|ffilig|plusmn|ffllig|Ccedil|rAtail|dfisht|bernou|ratail|Rarrtl|rarrtl|angsph|rarrpl|rarrlp|rarrhk|xwedge|xotime|forall|ForAll|Vvdash|vsupnE|preceq|bigcap|frac12|frac13|frac14|primes|rarrfs|prnsim|frac15|Square|frac16|square|lesdot|frac18|frac23|propto|prurel|rarrap|rangle|puncsp|frac25|Racute|qprime|racute|lesges|frac34|abreve|AElig|eqsim|utdot|setmn|urtri|Equal|Uring|seArr|uring|searr|dashv|Dashv|mumap|nabla|iogon|Iogon|sdote|sdotb|scsim|napid|napos|equiv|natur|Acirc|dblac|erarr|nbump|iprod|erDot|ucirc|awint|esdot|angrt|ncong|isinE|scnap|Scirc|scirc|ndash|isins|Ubrcy|nearr|neArr|isinv|nedot|ubrcy|acute|Ycirc|iukcy|Iukcy|xutri|nesim|caret|jcirc|Jcirc|caron|twixt|ddarr|sccue|exist|jmath|sbquo|ngeqq|angst|ccaps|lceil|ngsim|UpTee|delta|Delta|rtrif|nharr|nhArr|nhpar|rtrie|jukcy|Jukcy|kappa|rsquo|Kappa|nlarr|nlArr|TSHcy|rrarr|aogon|Aogon|fflig|xrarr|tshcy|ccirc|nleqq|filig|upsih|nless|dharl|nlsim|fjlig|ropar|nltri|dharr|robrk|roarr|fllig|fltns|roang|rnmid|subnE|subne|lAarr|trisb|Ccirc|acirc|ccups|blank|VDash|forkv|Vdash|langd|cedil|blk12|blk14|laquo|strns|diams|notin|vDash|larrb|blk34|block|disin|uplus|vdash|vBarv|aelig|starf|Wedge|check|xrArr|lates|lbarr|lBarr|notni|lbbrk|bcong|frasl|lbrke|frown|vrtri|vprop|vnsup|gamma|Gamma|wedge|xodot|bdquo|srarr|doteq|ldquo|boxdl|boxdL|gcirc|Gcirc|boxDl|boxDL|boxdr|boxdR|boxDr|TRADE|trade|rlhar|boxDR|vnsub|npart|vltri|rlarr|boxhd|boxhD|nprec|gescc|nrarr|nrArr|boxHd|boxHD|boxhu|boxhU|nrtri|boxHu|clubs|boxHU|times|colon|Colon|gimel|xlArr|Tilde|nsime|tilde|nsmid|nspar|THORN|thorn|xlarr|nsube|nsubE|thkap|xhArr|comma|nsucc|boxul|boxuL|nsupe|nsupE|gneqq|gnsim|boxUl|boxUL|grave|boxur|boxuR|boxUr|boxUR|lescc|angle|bepsi|boxvh|varpi|boxvH|numsp|Theta|gsime|gsiml|theta|boxVh|boxVH|boxvl|gtcir|gtdot|boxvL|boxVl|boxVL|crarr|cross|Cross|nvsim|boxvr|nwarr|nwArr|sqsup|dtdot|Uogon|lhard|lharu|dtrif|ocirc|Ocirc|lhblk|duarr|odash|sqsub|Hacek|sqcup|llarr|duhar|oelig|OElig|ofcir|boxvR|uogon|lltri|boxVr|csube|uuarr|ohbar|csupe|ctdot|olarr|olcir|harrw|oline|sqcap|omacr|Omacr|omega|Omega|boxVR|aleph|lneqq|lnsim|loang|loarr|rharu|lobrk|hcirc|operp|oplus|rhard|Hcirc|orarr|Union|order|ecirc|Ecirc|cuepr|szlig|cuesc|breve|reals|eDDot|Breve|hoarr|lopar|utrif|rdquo|Umacr|umacr|efDot|swArr|ultri|alpha|rceil|ovbar|swarr|Wcirc|wcirc|smtes|smile|bsemi|lrarr|aring|parsl|lrhar|bsime|uhblk|lrtri|cupor|Aring|uharr|uharl|slarr|rbrke|bsolb|lsime|rbbrk|RBarr|lsimg|phone|rBarr|rbarr|icirc|lsquo|Icirc|emacr|Emacr|ratio|simne|plusb|simlE|simgE|simeq|pluse|ltcir|ltdot|empty|xharr|xdtri|iexcl|Alpha|ltrie|rarrw|pound|ltrif|xcirc|bumpe|prcue|bumpE|asymp|amacr|cuvee|Sigma|sigma|iiint|udhar|iiota|ijlig|IJlig|supnE|imacr|Imacr|prime|Prime|image|prnap|eogon|Eogon|rarrc|mdash|mDDot|cuwed|imath|supne|imped|Amacr|udarr|prsim|micro|rarrb|cwint|raquo|infin|eplus|range|rangd|Ucirc|radic|minus|amalg|veeeq|rAarr|epsiv|ycirc|quest|sharp|quot|zwnj|Qscr|race|qscr|Qopf|qopf|qint|rang|Rang|Zscr|zscr|Zopf|zopf|rarr|rArr|Rarr|Pscr|pscr|prop|prod|prnE|prec|ZHcy|zhcy|prap|Zeta|zeta|Popf|popf|Zdot|plus|zdot|Yuml|yuml|phiv|YUcy|yucy|Yscr|yscr|perp|Yopf|yopf|part|para|YIcy|Ouml|rcub|yicy|YAcy|rdca|ouml|osol|Oscr|rdsh|yacy|real|oscr|xvee|andd|rect|andv|Xscr|oror|ordm|ordf|xscr|ange|aopf|Aopf|rHar|Xopf|opar|Oopf|xopf|xnis|rhov|oopf|omid|xmap|oint|apid|apos|ogon|ascr|Ascr|odot|odiv|xcup|xcap|ocir|oast|nvlt|nvle|nvgt|nvge|nvap|Wscr|wscr|auml|ntlg|ntgl|nsup|nsub|nsim|Nscr|nscr|nsce|Wopf|ring|npre|wopf|npar|Auml|Barv|bbrk|Nopf|nopf|nmid|nLtv|beta|ropf|Ropf|Beta|beth|nles|rpar|nleq|bnot|bNot|nldr|NJcy|rscr|Rscr|Vscr|vscr|rsqb|njcy|bopf|nisd|Bopf|rtri|Vopf|nGtv|ngtr|vopf|boxh|boxH|boxv|nges|ngeq|boxV|bscr|scap|Bscr|bsim|Vert|vert|bsol|bull|bump|caps|cdot|ncup|scnE|ncap|nbsp|napE|Cdot|cent|sdot|Vbar|nang|vBar|chcy|Mscr|mscr|sect|semi|CHcy|Mopf|mopf|sext|circ|cire|mldr|mlcp|cirE|comp|shcy|SHcy|vArr|varr|cong|copf|Copf|copy|COPY|malt|male|macr|lvnE|cscr|ltri|sime|ltcc|simg|Cscr|siml|csub|Uuml|lsqb|lsim|uuml|csup|Lscr|lscr|utri|smid|lpar|cups|smte|lozf|darr|Lopf|Uscr|solb|lopf|sopf|Sopf|lneq|uscr|spar|dArr|lnap|Darr|dash|Sqrt|LJcy|ljcy|lHar|dHar|Upsi|upsi|diam|lesg|djcy|DJcy|leqq|dopf|Dopf|dscr|Dscr|dscy|ldsh|ldca|squf|DScy|sscr|Sscr|dsol|lcub|late|star|Star|Uopf|Larr|lArr|larr|uopf|dtri|dzcy|sube|subE|Lang|lang|Kscr|kscr|Kopf|kopf|KJcy|kjcy|KHcy|khcy|DZcy|ecir|edot|eDot|Jscr|jscr|succ|Jopf|jopf|Edot|uHar|emsp|ensp|Iuml|iuml|eopf|isin|Iscr|iscr|Eopf|epar|sung|epsi|escr|sup1|sup2|sup3|Iota|iota|supe|supE|Iopf|iopf|IOcy|iocy|Escr|esim|Esim|imof|Uarr|QUOT|uArr|uarr|euml|IEcy|iecy|Idot|Euml|euro|excl|Hscr|hscr|Hopf|hopf|TScy|tscy|Tscr|hbar|tscr|flat|tbrk|fnof|hArr|harr|half|fopf|Fopf|tdot|gvnE|fork|trie|gtcc|fscr|Fscr|gdot|gsim|Gscr|gscr|Gopf|gopf|gneq|Gdot|tosa|gnap|Topf|topf|geqq|toea|GJcy|gjcy|tint|gesl|mid|Sfr|ggg|top|ges|gla|glE|glj|geq|gne|gEl|gel|gnE|Gcy|gcy|gap|Tfr|tfr|Tcy|tcy|Hat|Tau|Ffr|tau|Tab|hfr|Hfr|ffr|Fcy|fcy|icy|Icy|iff|ETH|eth|ifr|Ifr|Eta|eta|int|Int|Sup|sup|ucy|Ucy|Sum|sum|jcy|ENG|ufr|Ufr|eng|Jcy|jfr|els|ell|egs|Efr|efr|Jfr|uml|kcy|Kcy|Ecy|ecy|kfr|Kfr|lap|Sub|sub|lat|lcy|Lcy|leg|Dot|dot|lEg|leq|les|squ|div|die|lfr|Lfr|lgE|Dfr|dfr|Del|deg|Dcy|dcy|lne|lnE|sol|loz|smt|Cup|lrm|cup|lsh|Lsh|sim|shy|map|Map|mcy|Mcy|mfr|Mfr|mho|gfr|Gfr|sfr|cir|Chi|chi|nap|Cfr|vcy|Vcy|cfr|Scy|scy|ncy|Ncy|vee|Vee|Cap|cap|nfr|scE|sce|Nfr|nge|ngE|nGg|vfr|Vfr|ngt|bot|nGt|nis|niv|Rsh|rsh|nle|nlE|bne|Bfr|bfr|nLl|nlt|nLt|Bcy|bcy|not|Not|rlm|wfr|Wfr|npr|nsc|num|ocy|ast|Ocy|ofr|xfr|Xfr|Ofr|ogt|ohm|apE|olt|Rho|ape|rho|Rfr|rfr|ord|REG|ang|reg|orv|And|and|AMP|Rcy|amp|Afr|ycy|Ycy|yen|yfr|Yfr|rcy|par|pcy|Pcy|pfr|Pfr|phi|Phi|afr|Acy|acy|zcy|Zcy|piv|acE|acd|zfr|Zfr|pre|prE|psi|Psi|qfr|Qfr|zwj|Or|ge|Gg|gt|gg|el|oS|lt|Lt|LT|Re|lg|gl|eg|ne|Im|it|le|DD|wp|wr|nu|Nu|dd|lE|Sc|sc|pi|Pi|ee|af|ll|Ll|rx|gE|xi|pm|Xi|ic|pr|Pr|in|ni|mp|mu|ac|Mu|or|ap|Gt|GT|ii);|&(Aacute|Agrave|Atilde|Ccedil|Eacute|Egrave|Iacute|Igrave|Ntilde|Oacute|Ograve|Oslash|Otilde|Uacute|Ugrave|Yacute|aacute|agrave|atilde|brvbar|ccedil|curren|divide|eacute|egrave|frac12|frac14|frac34|iacute|igrave|iquest|middot|ntilde|oacute|ograve|oslash|otilde|plusmn|uacute|ugrave|yacute|AElig|Acirc|Aring|Ecirc|Icirc|Ocirc|THORN|Ucirc|acirc|acute|aelig|aring|cedil|ecirc|icirc|iexcl|laquo|micro|ocirc|pound|raquo|szlig|thorn|times|ucirc|Auml|COPY|Euml|Iuml|Ouml|QUOT|Uuml|auml|cent|copy|euml|iuml|macr|nbsp|ordf|ordm|ouml|para|quot|sect|sup1|sup2|sup3|uuml|yuml|AMP|ETH|REG|amp|deg|eth|not|reg|shy|uml|yen|GT|LT|gt|lt)(?!;)([=a-zA-Z0-9]?)|&#([0-9]+)(;?)|&#[xX]([a-fA-F0-9]+)(;?)|&([0-9a-zA-Z]+)/g;\n\tvar decodeMap = {'aacute':'\\xE1','Aacute':'\\xC1','abreve':'\\u0103','Abreve':'\\u0102','ac':'\\u223E','acd':'\\u223F','acE':'\\u223E\\u0333','acirc':'\\xE2','Acirc':'\\xC2','acute':'\\xB4','acy':'\\u0430','Acy':'\\u0410','aelig':'\\xE6','AElig':'\\xC6','af':'\\u2061','afr':'\\uD835\\uDD1E','Afr':'\\uD835\\uDD04','agrave':'\\xE0','Agrave':'\\xC0','alefsym':'\\u2135','aleph':'\\u2135','alpha':'\\u03B1','Alpha':'\\u0391','amacr':'\\u0101','Amacr':'\\u0100','amalg':'\\u2A3F','amp':'&','AMP':'&','and':'\\u2227','And':'\\u2A53','andand':'\\u2A55','andd':'\\u2A5C','andslope':'\\u2A58','andv':'\\u2A5A','ang':'\\u2220','ange':'\\u29A4','angle':'\\u2220','angmsd':'\\u2221','angmsdaa':'\\u29A8','angmsdab':'\\u29A9','angmsdac':'\\u29AA','angmsdad':'\\u29AB','angmsdae':'\\u29AC','angmsdaf':'\\u29AD','angmsdag':'\\u29AE','angmsdah':'\\u29AF','angrt':'\\u221F','angrtvb':'\\u22BE','angrtvbd':'\\u299D','angsph':'\\u2222','angst':'\\xC5','angzarr':'\\u237C','aogon':'\\u0105','Aogon':'\\u0104','aopf':'\\uD835\\uDD52','Aopf':'\\uD835\\uDD38','ap':'\\u2248','apacir':'\\u2A6F','ape':'\\u224A','apE':'\\u2A70','apid':'\\u224B','apos':'\\'','ApplyFunction':'\\u2061','approx':'\\u2248','approxeq':'\\u224A','aring':'\\xE5','Aring':'\\xC5','ascr':'\\uD835\\uDCB6','Ascr':'\\uD835\\uDC9C','Assign':'\\u2254','ast':'*','asymp':'\\u2248','asympeq':'\\u224D','atilde':'\\xE3','Atilde':'\\xC3','auml':'\\xE4','Auml':'\\xC4','awconint':'\\u2233','awint':'\\u2A11','backcong':'\\u224C','backepsilon':'\\u03F6','backprime':'\\u2035','backsim':'\\u223D','backsimeq':'\\u22CD','Backslash':'\\u2216','Barv':'\\u2AE7','barvee':'\\u22BD','barwed':'\\u2305','Barwed':'\\u2306','barwedge':'\\u2305','bbrk':'\\u23B5','bbrktbrk':'\\u23B6','bcong':'\\u224C','bcy':'\\u0431','Bcy':'\\u0411','bdquo':'\\u201E','becaus':'\\u2235','because':'\\u2235','Because':'\\u2235','bemptyv':'\\u29B0','bepsi':'\\u03F6','bernou':'\\u212C','Bernoullis':'\\u212C','beta':'\\u03B2','Beta':'\\u0392','beth':'\\u2136','between':'\\u226C','bfr':'\\uD835\\uDD1F','Bfr':'\\uD835\\uDD05','bigcap':'\\u22C2','bigcirc':'\\u25EF','bigcup':'\\u22C3','bigodot':'\\u2A00','bigoplus':'\\u2A01','bigotimes':'\\u2A02','bigsqcup':'\\u2A06','bigstar':'\\u2605','bigtriangledown':'\\u25BD','bigtriangleup':'\\u25B3','biguplus':'\\u2A04','bigvee':'\\u22C1','bigwedge':'\\u22C0','bkarow':'\\u290D','blacklozenge':'\\u29EB','blacksquare':'\\u25AA','blacktriangle':'\\u25B4','blacktriangledown':'\\u25BE','blacktriangleleft':'\\u25C2','blacktriangleright':'\\u25B8','blank':'\\u2423','blk12':'\\u2592','blk14':'\\u2591','blk34':'\\u2593','block':'\\u2588','bne':'=\\u20E5','bnequiv':'\\u2261\\u20E5','bnot':'\\u2310','bNot':'\\u2AED','bopf':'\\uD835\\uDD53','Bopf':'\\uD835\\uDD39','bot':'\\u22A5','bottom':'\\u22A5','bowtie':'\\u22C8','boxbox':'\\u29C9','boxdl':'\\u2510','boxdL':'\\u2555','boxDl':'\\u2556','boxDL':'\\u2557','boxdr':'\\u250C','boxdR':'\\u2552','boxDr':'\\u2553','boxDR':'\\u2554','boxh':'\\u2500','boxH':'\\u2550','boxhd':'\\u252C','boxhD':'\\u2565','boxHd':'\\u2564','boxHD':'\\u2566','boxhu':'\\u2534','boxhU':'\\u2568','boxHu':'\\u2567','boxHU':'\\u2569','boxminus':'\\u229F','boxplus':'\\u229E','boxtimes':'\\u22A0','boxul':'\\u2518','boxuL':'\\u255B','boxUl':'\\u255C','boxUL':'\\u255D','boxur':'\\u2514','boxuR':'\\u2558','boxUr':'\\u2559','boxUR':'\\u255A','boxv':'\\u2502','boxV':'\\u2551','boxvh':'\\u253C','boxvH':'\\u256A','boxVh':'\\u256B','boxVH':'\\u256C','boxvl':'\\u2524','boxvL':'\\u2561','boxVl':'\\u2562','boxVL':'\\u2563','boxvr':'\\u251C','boxvR':'\\u255E','boxVr':'\\u255F','boxVR':'\\u2560','bprime':'\\u2035','breve':'\\u02D8','Breve':'\\u02D8','brvbar':'\\xA6','bscr':'\\uD835\\uDCB7','Bscr':'\\u212C','bsemi':'\\u204F','bsim':'\\u223D','bsime':'\\u22CD','bsol':'\\\\','bsolb':'\\u29C5','bsolhsub':'\\u27C8','bull':'\\u2022','bullet':'\\u2022','bump':'\\u224E','bumpe':'\\u224F','bumpE':'\\u2AAE','bumpeq':'\\u224F','Bumpeq':'\\u224E','cacute':'\\u0107','Cacute':'\\u0106','cap':'\\u2229','Cap':'\\u22D2','capand':'\\u2A44','capbrcup':'\\u2A49','capcap':'\\u2A4B','capcup':'\\u2A47','capdot':'\\u2A40','CapitalDifferentialD':'\\u2145','caps':'\\u2229\\uFE00','caret':'\\u2041','caron':'\\u02C7','Cayleys':'\\u212D','ccaps':'\\u2A4D','ccaron':'\\u010D','Ccaron':'\\u010C','ccedil':'\\xE7','Ccedil':'\\xC7','ccirc':'\\u0109','Ccirc':'\\u0108','Cconint':'\\u2230','ccups':'\\u2A4C','ccupssm':'\\u2A50','cdot':'\\u010B','Cdot':'\\u010A','cedil':'\\xB8','Cedilla':'\\xB8','cemptyv':'\\u29B2','cent':'\\xA2','centerdot':'\\xB7','CenterDot':'\\xB7','cfr':'\\uD835\\uDD20','Cfr':'\\u212D','chcy':'\\u0447','CHcy':'\\u0427','check':'\\u2713','checkmark':'\\u2713','chi':'\\u03C7','Chi':'\\u03A7','cir':'\\u25CB','circ':'\\u02C6','circeq':'\\u2257','circlearrowleft':'\\u21BA','circlearrowright':'\\u21BB','circledast':'\\u229B','circledcirc':'\\u229A','circleddash':'\\u229D','CircleDot':'\\u2299','circledR':'\\xAE','circledS':'\\u24C8','CircleMinus':'\\u2296','CirclePlus':'\\u2295','CircleTimes':'\\u2297','cire':'\\u2257','cirE':'\\u29C3','cirfnint':'\\u2A10','cirmid':'\\u2AEF','cirscir':'\\u29C2','ClockwiseContourIntegral':'\\u2232','CloseCurlyDoubleQuote':'\\u201D','CloseCurlyQuote':'\\u2019','clubs':'\\u2663','clubsuit':'\\u2663','colon':':','Colon':'\\u2237','colone':'\\u2254','Colone':'\\u2A74','coloneq':'\\u2254','comma':',','commat':'@','comp':'\\u2201','compfn':'\\u2218','complement':'\\u2201','complexes':'\\u2102','cong':'\\u2245','congdot':'\\u2A6D','Congruent':'\\u2261','conint':'\\u222E','Conint':'\\u222F','ContourIntegral':'\\u222E','copf':'\\uD835\\uDD54','Copf':'\\u2102','coprod':'\\u2210','Coproduct':'\\u2210','copy':'\\xA9','COPY':'\\xA9','copysr':'\\u2117','CounterClockwiseContourIntegral':'\\u2233','crarr':'\\u21B5','cross':'\\u2717','Cross':'\\u2A2F','cscr':'\\uD835\\uDCB8','Cscr':'\\uD835\\uDC9E','csub':'\\u2ACF','csube':'\\u2AD1','csup':'\\u2AD0','csupe':'\\u2AD2','ctdot':'\\u22EF','cudarrl':'\\u2938','cudarrr':'\\u2935','cuepr':'\\u22DE','cuesc':'\\u22DF','cularr':'\\u21B6','cularrp':'\\u293D','cup':'\\u222A','Cup':'\\u22D3','cupbrcap':'\\u2A48','cupcap':'\\u2A46','CupCap':'\\u224D','cupcup':'\\u2A4A','cupdot':'\\u228D','cupor':'\\u2A45','cups':'\\u222A\\uFE00','curarr':'\\u21B7','curarrm':'\\u293C','curlyeqprec':'\\u22DE','curlyeqsucc':'\\u22DF','curlyvee':'\\u22CE','curlywedge':'\\u22CF','curren':'\\xA4','curvearrowleft':'\\u21B6','curvearrowright':'\\u21B7','cuvee':'\\u22CE','cuwed':'\\u22CF','cwconint':'\\u2232','cwint':'\\u2231','cylcty':'\\u232D','dagger':'\\u2020','Dagger':'\\u2021','daleth':'\\u2138','darr':'\\u2193','dArr':'\\u21D3','Darr':'\\u21A1','dash':'\\u2010','dashv':'\\u22A3','Dashv':'\\u2AE4','dbkarow':'\\u290F','dblac':'\\u02DD','dcaron':'\\u010F','Dcaron':'\\u010E','dcy':'\\u0434','Dcy':'\\u0414','dd':'\\u2146','DD':'\\u2145','ddagger':'\\u2021','ddarr':'\\u21CA','DDotrahd':'\\u2911','ddotseq':'\\u2A77','deg':'\\xB0','Del':'\\u2207','delta':'\\u03B4','Delta':'\\u0394','demptyv':'\\u29B1','dfisht':'\\u297F','dfr':'\\uD835\\uDD21','Dfr':'\\uD835\\uDD07','dHar':'\\u2965','dharl':'\\u21C3','dharr':'\\u21C2','DiacriticalAcute':'\\xB4','DiacriticalDot':'\\u02D9','DiacriticalDoubleAcute':'\\u02DD','DiacriticalGrave':'`','DiacriticalTilde':'\\u02DC','diam':'\\u22C4','diamond':'\\u22C4','Diamond':'\\u22C4','diamondsuit':'\\u2666','diams':'\\u2666','die':'\\xA8','DifferentialD':'\\u2146','digamma':'\\u03DD','disin':'\\u22F2','div':'\\xF7','divide':'\\xF7','divideontimes':'\\u22C7','divonx':'\\u22C7','djcy':'\\u0452','DJcy':'\\u0402','dlcorn':'\\u231E','dlcrop':'\\u230D','dollar':'$','dopf':'\\uD835\\uDD55','Dopf':'\\uD835\\uDD3B','dot':'\\u02D9','Dot':'\\xA8','DotDot':'\\u20DC','doteq':'\\u2250','doteqdot':'\\u2251','DotEqual':'\\u2250','dotminus':'\\u2238','dotplus':'\\u2214','dotsquare':'\\u22A1','doublebarwedge':'\\u2306','DoubleContourIntegral':'\\u222F','DoubleDot':'\\xA8','DoubleDownArrow':'\\u21D3','DoubleLeftArrow':'\\u21D0','DoubleLeftRightArrow':'\\u21D4','DoubleLeftTee':'\\u2AE4','DoubleLongLeftArrow':'\\u27F8','DoubleLongLeftRightArrow':'\\u27FA','DoubleLongRightArrow':'\\u27F9','DoubleRightArrow':'\\u21D2','DoubleRightTee':'\\u22A8','DoubleUpArrow':'\\u21D1','DoubleUpDownArrow':'\\u21D5','DoubleVerticalBar':'\\u2225','downarrow':'\\u2193','Downarrow':'\\u21D3','DownArrow':'\\u2193','DownArrowBar':'\\u2913','DownArrowUpArrow':'\\u21F5','DownBreve':'\\u0311','downdownarrows':'\\u21CA','downharpoonleft':'\\u21C3','downharpoonright':'\\u21C2','DownLeftRightVector':'\\u2950','DownLeftTeeVector':'\\u295E','DownLeftVector':'\\u21BD','DownLeftVectorBar':'\\u2956','DownRightTeeVector':'\\u295F','DownRightVector':'\\u21C1','DownRightVectorBar':'\\u2957','DownTee':'\\u22A4','DownTeeArrow':'\\u21A7','drbkarow':'\\u2910','drcorn':'\\u231F','drcrop':'\\u230C','dscr':'\\uD835\\uDCB9','Dscr':'\\uD835\\uDC9F','dscy':'\\u0455','DScy':'\\u0405','dsol':'\\u29F6','dstrok':'\\u0111','Dstrok':'\\u0110','dtdot':'\\u22F1','dtri':'\\u25BF','dtrif':'\\u25BE','duarr':'\\u21F5','duhar':'\\u296F','dwangle':'\\u29A6','dzcy':'\\u045F','DZcy':'\\u040F','dzigrarr':'\\u27FF','eacute':'\\xE9','Eacute':'\\xC9','easter':'\\u2A6E','ecaron':'\\u011B','Ecaron':'\\u011A','ecir':'\\u2256','ecirc':'\\xEA','Ecirc':'\\xCA','ecolon':'\\u2255','ecy':'\\u044D','Ecy':'\\u042D','eDDot':'\\u2A77','edot':'\\u0117','eDot':'\\u2251','Edot':'\\u0116','ee':'\\u2147','efDot':'\\u2252','efr':'\\uD835\\uDD22','Efr':'\\uD835\\uDD08','eg':'\\u2A9A','egrave':'\\xE8','Egrave':'\\xC8','egs':'\\u2A96','egsdot':'\\u2A98','el':'\\u2A99','Element':'\\u2208','elinters':'\\u23E7','ell':'\\u2113','els':'\\u2A95','elsdot':'\\u2A97','emacr':'\\u0113','Emacr':'\\u0112','empty':'\\u2205','emptyset':'\\u2205','EmptySmallSquare':'\\u25FB','emptyv':'\\u2205','EmptyVerySmallSquare':'\\u25AB','emsp':'\\u2003','emsp13':'\\u2004','emsp14':'\\u2005','eng':'\\u014B','ENG':'\\u014A','ensp':'\\u2002','eogon':'\\u0119','Eogon':'\\u0118','eopf':'\\uD835\\uDD56','Eopf':'\\uD835\\uDD3C','epar':'\\u22D5','eparsl':'\\u29E3','eplus':'\\u2A71','epsi':'\\u03B5','epsilon':'\\u03B5','Epsilon':'\\u0395','epsiv':'\\u03F5','eqcirc':'\\u2256','eqcolon':'\\u2255','eqsim':'\\u2242','eqslantgtr':'\\u2A96','eqslantless':'\\u2A95','Equal':'\\u2A75','equals':'=','EqualTilde':'\\u2242','equest':'\\u225F','Equilibrium':'\\u21CC','equiv':'\\u2261','equivDD':'\\u2A78','eqvparsl':'\\u29E5','erarr':'\\u2971','erDot':'\\u2253','escr':'\\u212F','Escr':'\\u2130','esdot':'\\u2250','esim':'\\u2242','Esim':'\\u2A73','eta':'\\u03B7','Eta':'\\u0397','eth':'\\xF0','ETH':'\\xD0','euml':'\\xEB','Euml':'\\xCB','euro':'\\u20AC','excl':'!','exist':'\\u2203','Exists':'\\u2203','expectation':'\\u2130','exponentiale':'\\u2147','ExponentialE':'\\u2147','fallingdotseq':'\\u2252','fcy':'\\u0444','Fcy':'\\u0424','female':'\\u2640','ffilig':'\\uFB03','fflig':'\\uFB00','ffllig':'\\uFB04','ffr':'\\uD835\\uDD23','Ffr':'\\uD835\\uDD09','filig':'\\uFB01','FilledSmallSquare':'\\u25FC','FilledVerySmallSquare':'\\u25AA','fjlig':'fj','flat':'\\u266D','fllig':'\\uFB02','fltns':'\\u25B1','fnof':'\\u0192','fopf':'\\uD835\\uDD57','Fopf':'\\uD835\\uDD3D','forall':'\\u2200','ForAll':'\\u2200','fork':'\\u22D4','forkv':'\\u2AD9','Fouriertrf':'\\u2131','fpartint':'\\u2A0D','frac12':'\\xBD','frac13':'\\u2153','frac14':'\\xBC','frac15':'\\u2155','frac16':'\\u2159','frac18':'\\u215B','frac23':'\\u2154','frac25':'\\u2156','frac34':'\\xBE','frac35':'\\u2157','frac38':'\\u215C','frac45':'\\u2158','frac56':'\\u215A','frac58':'\\u215D','frac78':'\\u215E','frasl':'\\u2044','frown':'\\u2322','fscr':'\\uD835\\uDCBB','Fscr':'\\u2131','gacute':'\\u01F5','gamma':'\\u03B3','Gamma':'\\u0393','gammad':'\\u03DD','Gammad':'\\u03DC','gap':'\\u2A86','gbreve':'\\u011F','Gbreve':'\\u011E','Gcedil':'\\u0122','gcirc':'\\u011D','Gcirc':'\\u011C','gcy':'\\u0433','Gcy':'\\u0413','gdot':'\\u0121','Gdot':'\\u0120','ge':'\\u2265','gE':'\\u2267','gel':'\\u22DB','gEl':'\\u2A8C','geq':'\\u2265','geqq':'\\u2267','geqslant':'\\u2A7E','ges':'\\u2A7E','gescc':'\\u2AA9','gesdot':'\\u2A80','gesdoto':'\\u2A82','gesdotol':'\\u2A84','gesl':'\\u22DB\\uFE00','gesles':'\\u2A94','gfr':'\\uD835\\uDD24','Gfr':'\\uD835\\uDD0A','gg':'\\u226B','Gg':'\\u22D9','ggg':'\\u22D9','gimel':'\\u2137','gjcy':'\\u0453','GJcy':'\\u0403','gl':'\\u2277','gla':'\\u2AA5','glE':'\\u2A92','glj':'\\u2AA4','gnap':'\\u2A8A','gnapprox':'\\u2A8A','gne':'\\u2A88','gnE':'\\u2269','gneq':'\\u2A88','gneqq':'\\u2269','gnsim':'\\u22E7','gopf':'\\uD835\\uDD58','Gopf':'\\uD835\\uDD3E','grave':'`','GreaterEqual':'\\u2265','GreaterEqualLess':'\\u22DB','GreaterFullEqual':'\\u2267','GreaterGreater':'\\u2AA2','GreaterLess':'\\u2277','GreaterSlantEqual':'\\u2A7E','GreaterTilde':'\\u2273','gscr':'\\u210A','Gscr':'\\uD835\\uDCA2','gsim':'\\u2273','gsime':'\\u2A8E','gsiml':'\\u2A90','gt':'>','Gt':'\\u226B','GT':'>','gtcc':'\\u2AA7','gtcir':'\\u2A7A','gtdot':'\\u22D7','gtlPar':'\\u2995','gtquest':'\\u2A7C','gtrapprox':'\\u2A86','gtrarr':'\\u2978','gtrdot':'\\u22D7','gtreqless':'\\u22DB','gtreqqless':'\\u2A8C','gtrless':'\\u2277','gtrsim':'\\u2273','gvertneqq':'\\u2269\\uFE00','gvnE':'\\u2269\\uFE00','Hacek':'\\u02C7','hairsp':'\\u200A','half':'\\xBD','hamilt':'\\u210B','hardcy':'\\u044A','HARDcy':'\\u042A','harr':'\\u2194','hArr':'\\u21D4','harrcir':'\\u2948','harrw':'\\u21AD','Hat':'^','hbar':'\\u210F','hcirc':'\\u0125','Hcirc':'\\u0124','hearts':'\\u2665','heartsuit':'\\u2665','hellip':'\\u2026','hercon':'\\u22B9','hfr':'\\uD835\\uDD25','Hfr':'\\u210C','HilbertSpace':'\\u210B','hksearow':'\\u2925','hkswarow':'\\u2926','hoarr':'\\u21FF','homtht':'\\u223B','hookleftarrow':'\\u21A9','hookrightarrow':'\\u21AA','hopf':'\\uD835\\uDD59','Hopf':'\\u210D','horbar':'\\u2015','HorizontalLine':'\\u2500','hscr':'\\uD835\\uDCBD','Hscr':'\\u210B','hslash':'\\u210F','hstrok':'\\u0127','Hstrok':'\\u0126','HumpDownHump':'\\u224E','HumpEqual':'\\u224F','hybull':'\\u2043','hyphen':'\\u2010','iacute':'\\xED','Iacute':'\\xCD','ic':'\\u2063','icirc':'\\xEE','Icirc':'\\xCE','icy':'\\u0438','Icy':'\\u0418','Idot':'\\u0130','iecy':'\\u0435','IEcy':'\\u0415','iexcl':'\\xA1','iff':'\\u21D4','ifr':'\\uD835\\uDD26','Ifr':'\\u2111','igrave':'\\xEC','Igrave':'\\xCC','ii':'\\u2148','iiiint':'\\u2A0C','iiint':'\\u222D','iinfin':'\\u29DC','iiota':'\\u2129','ijlig':'\\u0133','IJlig':'\\u0132','Im':'\\u2111','imacr':'\\u012B','Imacr':'\\u012A','image':'\\u2111','ImaginaryI':'\\u2148','imagline':'\\u2110','imagpart':'\\u2111','imath':'\\u0131','imof':'\\u22B7','imped':'\\u01B5','Implies':'\\u21D2','in':'\\u2208','incare':'\\u2105','infin':'\\u221E','infintie':'\\u29DD','inodot':'\\u0131','int':'\\u222B','Int':'\\u222C','intcal':'\\u22BA','integers':'\\u2124','Integral':'\\u222B','intercal':'\\u22BA','Intersection':'\\u22C2','intlarhk':'\\u2A17','intprod':'\\u2A3C','InvisibleComma':'\\u2063','InvisibleTimes':'\\u2062','iocy':'\\u0451','IOcy':'\\u0401','iogon':'\\u012F','Iogon':'\\u012E','iopf':'\\uD835\\uDD5A','Iopf':'\\uD835\\uDD40','iota':'\\u03B9','Iota':'\\u0399','iprod':'\\u2A3C','iquest':'\\xBF','iscr':'\\uD835\\uDCBE','Iscr':'\\u2110','isin':'\\u2208','isindot':'\\u22F5','isinE':'\\u22F9','isins':'\\u22F4','isinsv':'\\u22F3','isinv':'\\u2208','it':'\\u2062','itilde':'\\u0129','Itilde':'\\u0128','iukcy':'\\u0456','Iukcy':'\\u0406','iuml':'\\xEF','Iuml':'\\xCF','jcirc':'\\u0135','Jcirc':'\\u0134','jcy':'\\u0439','Jcy':'\\u0419','jfr':'\\uD835\\uDD27','Jfr':'\\uD835\\uDD0D','jmath':'\\u0237','jopf':'\\uD835\\uDD5B','Jopf':'\\uD835\\uDD41','jscr':'\\uD835\\uDCBF','Jscr':'\\uD835\\uDCA5','jsercy':'\\u0458','Jsercy':'\\u0408','jukcy':'\\u0454','Jukcy':'\\u0404','kappa':'\\u03BA','Kappa':'\\u039A','kappav':'\\u03F0','kcedil':'\\u0137','Kcedil':'\\u0136','kcy':'\\u043A','Kcy':'\\u041A','kfr':'\\uD835\\uDD28','Kfr':'\\uD835\\uDD0E','kgreen':'\\u0138','khcy':'\\u0445','KHcy':'\\u0425','kjcy':'\\u045C','KJcy':'\\u040C','kopf':'\\uD835\\uDD5C','Kopf':'\\uD835\\uDD42','kscr':'\\uD835\\uDCC0','Kscr':'\\uD835\\uDCA6','lAarr':'\\u21DA','lacute':'\\u013A','Lacute':'\\u0139','laemptyv':'\\u29B4','lagran':'\\u2112','lambda':'\\u03BB','Lambda':'\\u039B','lang':'\\u27E8','Lang':'\\u27EA','langd':'\\u2991','langle':'\\u27E8','lap':'\\u2A85','Laplacetrf':'\\u2112','laquo':'\\xAB','larr':'\\u2190','lArr':'\\u21D0','Larr':'\\u219E','larrb':'\\u21E4','larrbfs':'\\u291F','larrfs':'\\u291D','larrhk':'\\u21A9','larrlp':'\\u21AB','larrpl':'\\u2939','larrsim':'\\u2973','larrtl':'\\u21A2','lat':'\\u2AAB','latail':'\\u2919','lAtail':'\\u291B','late':'\\u2AAD','lates':'\\u2AAD\\uFE00','lbarr':'\\u290C','lBarr':'\\u290E','lbbrk':'\\u2772','lbrace':'{','lbrack':'[','lbrke':'\\u298B','lbrksld':'\\u298F','lbrkslu':'\\u298D','lcaron':'\\u013E','Lcaron':'\\u013D','lcedil':'\\u013C','Lcedil':'\\u013B','lceil':'\\u2308','lcub':'{','lcy':'\\u043B','Lcy':'\\u041B','ldca':'\\u2936','ldquo':'\\u201C','ldquor':'\\u201E','ldrdhar':'\\u2967','ldrushar':'\\u294B','ldsh':'\\u21B2','le':'\\u2264','lE':'\\u2266','LeftAngleBracket':'\\u27E8','leftarrow':'\\u2190','Leftarrow':'\\u21D0','LeftArrow':'\\u2190','LeftArrowBar':'\\u21E4','LeftArrowRightArrow':'\\u21C6','leftarrowtail':'\\u21A2','LeftCeiling':'\\u2308','LeftDoubleBracket':'\\u27E6','LeftDownTeeVector':'\\u2961','LeftDownVector':'\\u21C3','LeftDownVectorBar':'\\u2959','LeftFloor':'\\u230A','leftharpoondown':'\\u21BD','leftharpoonup':'\\u21BC','leftleftarrows':'\\u21C7','leftrightarrow':'\\u2194','Leftrightarrow':'\\u21D4','LeftRightArrow':'\\u2194','leftrightarrows':'\\u21C6','leftrightharpoons':'\\u21CB','leftrightsquigarrow':'\\u21AD','LeftRightVector':'\\u294E','LeftTee':'\\u22A3','LeftTeeArrow':'\\u21A4','LeftTeeVector':'\\u295A','leftthreetimes':'\\u22CB','LeftTriangle':'\\u22B2','LeftTriangleBar':'\\u29CF','LeftTriangleEqual':'\\u22B4','LeftUpDownVector':'\\u2951','LeftUpTeeVector':'\\u2960','LeftUpVector':'\\u21BF','LeftUpVectorBar':'\\u2958','LeftVector':'\\u21BC','LeftVectorBar':'\\u2952','leg':'\\u22DA','lEg':'\\u2A8B','leq':'\\u2264','leqq':'\\u2266','leqslant':'\\u2A7D','les':'\\u2A7D','lescc':'\\u2AA8','lesdot':'\\u2A7F','lesdoto':'\\u2A81','lesdotor':'\\u2A83','lesg':'\\u22DA\\uFE00','lesges':'\\u2A93','lessapprox':'\\u2A85','lessdot':'\\u22D6','lesseqgtr':'\\u22DA','lesseqqgtr':'\\u2A8B','LessEqualGreater':'\\u22DA','LessFullEqual':'\\u2266','LessGreater':'\\u2276','lessgtr':'\\u2276','LessLess':'\\u2AA1','lesssim':'\\u2272','LessSlantEqual':'\\u2A7D','LessTilde':'\\u2272','lfisht':'\\u297C','lfloor':'\\u230A','lfr':'\\uD835\\uDD29','Lfr':'\\uD835\\uDD0F','lg':'\\u2276','lgE':'\\u2A91','lHar':'\\u2962','lhard':'\\u21BD','lharu':'\\u21BC','lharul':'\\u296A','lhblk':'\\u2584','ljcy':'\\u0459','LJcy':'\\u0409','ll':'\\u226A','Ll':'\\u22D8','llarr':'\\u21C7','llcorner':'\\u231E','Lleftarrow':'\\u21DA','llhard':'\\u296B','lltri':'\\u25FA','lmidot':'\\u0140','Lmidot':'\\u013F','lmoust':'\\u23B0','lmoustache':'\\u23B0','lnap':'\\u2A89','lnapprox':'\\u2A89','lne':'\\u2A87','lnE':'\\u2268','lneq':'\\u2A87','lneqq':'\\u2268','lnsim':'\\u22E6','loang':'\\u27EC','loarr':'\\u21FD','lobrk':'\\u27E6','longleftarrow':'\\u27F5','Longleftarrow':'\\u27F8','LongLeftArrow':'\\u27F5','longleftrightarrow':'\\u27F7','Longleftrightarrow':'\\u27FA','LongLeftRightArrow':'\\u27F7','longmapsto':'\\u27FC','longrightarrow':'\\u27F6','Longrightarrow':'\\u27F9','LongRightArrow':'\\u27F6','looparrowleft':'\\u21AB','looparrowright':'\\u21AC','lopar':'\\u2985','lopf':'\\uD835\\uDD5D','Lopf':'\\uD835\\uDD43','loplus':'\\u2A2D','lotimes':'\\u2A34','lowast':'\\u2217','lowbar':'_','LowerLeftArrow':'\\u2199','LowerRightArrow':'\\u2198','loz':'\\u25CA','lozenge':'\\u25CA','lozf':'\\u29EB','lpar':'(','lparlt':'\\u2993','lrarr':'\\u21C6','lrcorner':'\\u231F','lrhar':'\\u21CB','lrhard':'\\u296D','lrm':'\\u200E','lrtri':'\\u22BF','lsaquo':'\\u2039','lscr':'\\uD835\\uDCC1','Lscr':'\\u2112','lsh':'\\u21B0','Lsh':'\\u21B0','lsim':'\\u2272','lsime':'\\u2A8D','lsimg':'\\u2A8F','lsqb':'[','lsquo':'\\u2018','lsquor':'\\u201A','lstrok':'\\u0142','Lstrok':'\\u0141','lt':'<','Lt':'\\u226A','LT':'<','ltcc':'\\u2AA6','ltcir':'\\u2A79','ltdot':'\\u22D6','lthree':'\\u22CB','ltimes':'\\u22C9','ltlarr':'\\u2976','ltquest':'\\u2A7B','ltri':'\\u25C3','ltrie':'\\u22B4','ltrif':'\\u25C2','ltrPar':'\\u2996','lurdshar':'\\u294A','luruhar':'\\u2966','lvertneqq':'\\u2268\\uFE00','lvnE':'\\u2268\\uFE00','macr':'\\xAF','male':'\\u2642','malt':'\\u2720','maltese':'\\u2720','map':'\\u21A6','Map':'\\u2905','mapsto':'\\u21A6','mapstodown':'\\u21A7','mapstoleft':'\\u21A4','mapstoup':'\\u21A5','marker':'\\u25AE','mcomma':'\\u2A29','mcy':'\\u043C','Mcy':'\\u041C','mdash':'\\u2014','mDDot':'\\u223A','measuredangle':'\\u2221','MediumSpace':'\\u205F','Mellintrf':'\\u2133','mfr':'\\uD835\\uDD2A','Mfr':'\\uD835\\uDD10','mho':'\\u2127','micro':'\\xB5','mid':'\\u2223','midast':'*','midcir':'\\u2AF0','middot':'\\xB7','minus':'\\u2212','minusb':'\\u229F','minusd':'\\u2238','minusdu':'\\u2A2A','MinusPlus':'\\u2213','mlcp':'\\u2ADB','mldr':'\\u2026','mnplus':'\\u2213','models':'\\u22A7','mopf':'\\uD835\\uDD5E','Mopf':'\\uD835\\uDD44','mp':'\\u2213','mscr':'\\uD835\\uDCC2','Mscr':'\\u2133','mstpos':'\\u223E','mu':'\\u03BC','Mu':'\\u039C','multimap':'\\u22B8','mumap':'\\u22B8','nabla':'\\u2207','nacute':'\\u0144','Nacute':'\\u0143','nang':'\\u2220\\u20D2','nap':'\\u2249','napE':'\\u2A70\\u0338','napid':'\\u224B\\u0338','napos':'\\u0149','napprox':'\\u2249','natur':'\\u266E','natural':'\\u266E','naturals':'\\u2115','nbsp':'\\xA0','nbump':'\\u224E\\u0338','nbumpe':'\\u224F\\u0338','ncap':'\\u2A43','ncaron':'\\u0148','Ncaron':'\\u0147','ncedil':'\\u0146','Ncedil':'\\u0145','ncong':'\\u2247','ncongdot':'\\u2A6D\\u0338','ncup':'\\u2A42','ncy':'\\u043D','Ncy':'\\u041D','ndash':'\\u2013','ne':'\\u2260','nearhk':'\\u2924','nearr':'\\u2197','neArr':'\\u21D7','nearrow':'\\u2197','nedot':'\\u2250\\u0338','NegativeMediumSpace':'\\u200B','NegativeThickSpace':'\\u200B','NegativeThinSpace':'\\u200B','NegativeVeryThinSpace':'\\u200B','nequiv':'\\u2262','nesear':'\\u2928','nesim':'\\u2242\\u0338','NestedGreaterGreater':'\\u226B','NestedLessLess':'\\u226A','NewLine':'\\n','nexist':'\\u2204','nexists':'\\u2204','nfr':'\\uD835\\uDD2B','Nfr':'\\uD835\\uDD11','nge':'\\u2271','ngE':'\\u2267\\u0338','ngeq':'\\u2271','ngeqq':'\\u2267\\u0338','ngeqslant':'\\u2A7E\\u0338','nges':'\\u2A7E\\u0338','nGg':'\\u22D9\\u0338','ngsim':'\\u2275','ngt':'\\u226F','nGt':'\\u226B\\u20D2','ngtr':'\\u226F','nGtv':'\\u226B\\u0338','nharr':'\\u21AE','nhArr':'\\u21CE','nhpar':'\\u2AF2','ni':'\\u220B','nis':'\\u22FC','nisd':'\\u22FA','niv':'\\u220B','njcy':'\\u045A','NJcy':'\\u040A','nlarr':'\\u219A','nlArr':'\\u21CD','nldr':'\\u2025','nle':'\\u2270','nlE':'\\u2266\\u0338','nleftarrow':'\\u219A','nLeftarrow':'\\u21CD','nleftrightarrow':'\\u21AE','nLeftrightarrow':'\\u21CE','nleq':'\\u2270','nleqq':'\\u2266\\u0338','nleqslant':'\\u2A7D\\u0338','nles':'\\u2A7D\\u0338','nless':'\\u226E','nLl':'\\u22D8\\u0338','nlsim':'\\u2274','nlt':'\\u226E','nLt':'\\u226A\\u20D2','nltri':'\\u22EA','nltrie':'\\u22EC','nLtv':'\\u226A\\u0338','nmid':'\\u2224','NoBreak':'\\u2060','NonBreakingSpace':'\\xA0','nopf':'\\uD835\\uDD5F','Nopf':'\\u2115','not':'\\xAC','Not':'\\u2AEC','NotCongruent':'\\u2262','NotCupCap':'\\u226D','NotDoubleVerticalBar':'\\u2226','NotElement':'\\u2209','NotEqual':'\\u2260','NotEqualTilde':'\\u2242\\u0338','NotExists':'\\u2204','NotGreater':'\\u226F','NotGreaterEqual':'\\u2271','NotGreaterFullEqual':'\\u2267\\u0338','NotGreaterGreater':'\\u226B\\u0338','NotGreaterLess':'\\u2279','NotGreaterSlantEqual':'\\u2A7E\\u0338','NotGreaterTilde':'\\u2275','NotHumpDownHump':'\\u224E\\u0338','NotHumpEqual':'\\u224F\\u0338','notin':'\\u2209','notindot':'\\u22F5\\u0338','notinE':'\\u22F9\\u0338','notinva':'\\u2209','notinvb':'\\u22F7','notinvc':'\\u22F6','NotLeftTriangle':'\\u22EA','NotLeftTriangleBar':'\\u29CF\\u0338','NotLeftTriangleEqual':'\\u22EC','NotLess':'\\u226E','NotLessEqual':'\\u2270','NotLessGreater':'\\u2278','NotLessLess':'\\u226A\\u0338','NotLessSlantEqual':'\\u2A7D\\u0338','NotLessTilde':'\\u2274','NotNestedGreaterGreater':'\\u2AA2\\u0338','NotNestedLessLess':'\\u2AA1\\u0338','notni':'\\u220C','notniva':'\\u220C','notnivb':'\\u22FE','notnivc':'\\u22FD','NotPrecedes':'\\u2280','NotPrecedesEqual':'\\u2AAF\\u0338','NotPrecedesSlantEqual':'\\u22E0','NotReverseElement':'\\u220C','NotRightTriangle':'\\u22EB','NotRightTriangleBar':'\\u29D0\\u0338','NotRightTriangleEqual':'\\u22ED','NotSquareSubset':'\\u228F\\u0338','NotSquareSubsetEqual':'\\u22E2','NotSquareSuperset':'\\u2290\\u0338','NotSquareSupersetEqual':'\\u22E3','NotSubset':'\\u2282\\u20D2','NotSubsetEqual':'\\u2288','NotSucceeds':'\\u2281','NotSucceedsEqual':'\\u2AB0\\u0338','NotSucceedsSlantEqual':'\\u22E1','NotSucceedsTilde':'\\u227F\\u0338','NotSuperset':'\\u2283\\u20D2','NotSupersetEqual':'\\u2289','NotTilde':'\\u2241','NotTildeEqual':'\\u2244','NotTildeFullEqual':'\\u2247','NotTildeTilde':'\\u2249','NotVerticalBar':'\\u2224','npar':'\\u2226','nparallel':'\\u2226','nparsl':'\\u2AFD\\u20E5','npart':'\\u2202\\u0338','npolint':'\\u2A14','npr':'\\u2280','nprcue':'\\u22E0','npre':'\\u2AAF\\u0338','nprec':'\\u2280','npreceq':'\\u2AAF\\u0338','nrarr':'\\u219B','nrArr':'\\u21CF','nrarrc':'\\u2933\\u0338','nrarrw':'\\u219D\\u0338','nrightarrow':'\\u219B','nRightarrow':'\\u21CF','nrtri':'\\u22EB','nrtrie':'\\u22ED','nsc':'\\u2281','nsccue':'\\u22E1','nsce':'\\u2AB0\\u0338','nscr':'\\uD835\\uDCC3','Nscr':'\\uD835\\uDCA9','nshortmid':'\\u2224','nshortparallel':'\\u2226','nsim':'\\u2241','nsime':'\\u2244','nsimeq':'\\u2244','nsmid':'\\u2224','nspar':'\\u2226','nsqsube':'\\u22E2','nsqsupe':'\\u22E3','nsub':'\\u2284','nsube':'\\u2288','nsubE':'\\u2AC5\\u0338','nsubset':'\\u2282\\u20D2','nsubseteq':'\\u2288','nsubseteqq':'\\u2AC5\\u0338','nsucc':'\\u2281','nsucceq':'\\u2AB0\\u0338','nsup':'\\u2285','nsupe':'\\u2289','nsupE':'\\u2AC6\\u0338','nsupset':'\\u2283\\u20D2','nsupseteq':'\\u2289','nsupseteqq':'\\u2AC6\\u0338','ntgl':'\\u2279','ntilde':'\\xF1','Ntilde':'\\xD1','ntlg':'\\u2278','ntriangleleft':'\\u22EA','ntrianglelefteq':'\\u22EC','ntriangleright':'\\u22EB','ntrianglerighteq':'\\u22ED','nu':'\\u03BD','Nu':'\\u039D','num':'#','numero':'\\u2116','numsp':'\\u2007','nvap':'\\u224D\\u20D2','nvdash':'\\u22AC','nvDash':'\\u22AD','nVdash':'\\u22AE','nVDash':'\\u22AF','nvge':'\\u2265\\u20D2','nvgt':'>\\u20D2','nvHarr':'\\u2904','nvinfin':'\\u29DE','nvlArr':'\\u2902','nvle':'\\u2264\\u20D2','nvlt':'<\\u20D2','nvltrie':'\\u22B4\\u20D2','nvrArr':'\\u2903','nvrtrie':'\\u22B5\\u20D2','nvsim':'\\u223C\\u20D2','nwarhk':'\\u2923','nwarr':'\\u2196','nwArr':'\\u21D6','nwarrow':'\\u2196','nwnear':'\\u2927','oacute':'\\xF3','Oacute':'\\xD3','oast':'\\u229B','ocir':'\\u229A','ocirc':'\\xF4','Ocirc':'\\xD4','ocy':'\\u043E','Ocy':'\\u041E','odash':'\\u229D','odblac':'\\u0151','Odblac':'\\u0150','odiv':'\\u2A38','odot':'\\u2299','odsold':'\\u29BC','oelig':'\\u0153','OElig':'\\u0152','ofcir':'\\u29BF','ofr':'\\uD835\\uDD2C','Ofr':'\\uD835\\uDD12','ogon':'\\u02DB','ograve':'\\xF2','Ograve':'\\xD2','ogt':'\\u29C1','ohbar':'\\u29B5','ohm':'\\u03A9','oint':'\\u222E','olarr':'\\u21BA','olcir':'\\u29BE','olcross':'\\u29BB','oline':'\\u203E','olt':'\\u29C0','omacr':'\\u014D','Omacr':'\\u014C','omega':'\\u03C9','Omega':'\\u03A9','omicron':'\\u03BF','Omicron':'\\u039F','omid':'\\u29B6','ominus':'\\u2296','oopf':'\\uD835\\uDD60','Oopf':'\\uD835\\uDD46','opar':'\\u29B7','OpenCurlyDoubleQuote':'\\u201C','OpenCurlyQuote':'\\u2018','operp':'\\u29B9','oplus':'\\u2295','or':'\\u2228','Or':'\\u2A54','orarr':'\\u21BB','ord':'\\u2A5D','order':'\\u2134','orderof':'\\u2134','ordf':'\\xAA','ordm':'\\xBA','origof':'\\u22B6','oror':'\\u2A56','orslope':'\\u2A57','orv':'\\u2A5B','oS':'\\u24C8','oscr':'\\u2134','Oscr':'\\uD835\\uDCAA','oslash':'\\xF8','Oslash':'\\xD8','osol':'\\u2298','otilde':'\\xF5','Otilde':'\\xD5','otimes':'\\u2297','Otimes':'\\u2A37','otimesas':'\\u2A36','ouml':'\\xF6','Ouml':'\\xD6','ovbar':'\\u233D','OverBar':'\\u203E','OverBrace':'\\u23DE','OverBracket':'\\u23B4','OverParenthesis':'\\u23DC','par':'\\u2225','para':'\\xB6','parallel':'\\u2225','parsim':'\\u2AF3','parsl':'\\u2AFD','part':'\\u2202','PartialD':'\\u2202','pcy':'\\u043F','Pcy':'\\u041F','percnt':'%','period':'.','permil':'\\u2030','perp':'\\u22A5','pertenk':'\\u2031','pfr':'\\uD835\\uDD2D','Pfr':'\\uD835\\uDD13','phi':'\\u03C6','Phi':'\\u03A6','phiv':'\\u03D5','phmmat':'\\u2133','phone':'\\u260E','pi':'\\u03C0','Pi':'\\u03A0','pitchfork':'\\u22D4','piv':'\\u03D6','planck':'\\u210F','planckh':'\\u210E','plankv':'\\u210F','plus':'+','plusacir':'\\u2A23','plusb':'\\u229E','pluscir':'\\u2A22','plusdo':'\\u2214','plusdu':'\\u2A25','pluse':'\\u2A72','PlusMinus':'\\xB1','plusmn':'\\xB1','plussim':'\\u2A26','plustwo':'\\u2A27','pm':'\\xB1','Poincareplane':'\\u210C','pointint':'\\u2A15','popf':'\\uD835\\uDD61','Popf':'\\u2119','pound':'\\xA3','pr':'\\u227A','Pr':'\\u2ABB','prap':'\\u2AB7','prcue':'\\u227C','pre':'\\u2AAF','prE':'\\u2AB3','prec':'\\u227A','precapprox':'\\u2AB7','preccurlyeq':'\\u227C','Precedes':'\\u227A','PrecedesEqual':'\\u2AAF','PrecedesSlantEqual':'\\u227C','PrecedesTilde':'\\u227E','preceq':'\\u2AAF','precnapprox':'\\u2AB9','precneqq':'\\u2AB5','precnsim':'\\u22E8','precsim':'\\u227E','prime':'\\u2032','Prime':'\\u2033','primes':'\\u2119','prnap':'\\u2AB9','prnE':'\\u2AB5','prnsim':'\\u22E8','prod':'\\u220F','Product':'\\u220F','profalar':'\\u232E','profline':'\\u2312','profsurf':'\\u2313','prop':'\\u221D','Proportion':'\\u2237','Proportional':'\\u221D','propto':'\\u221D','prsim':'\\u227E','prurel':'\\u22B0','pscr':'\\uD835\\uDCC5','Pscr':'\\uD835\\uDCAB','psi':'\\u03C8','Psi':'\\u03A8','puncsp':'\\u2008','qfr':'\\uD835\\uDD2E','Qfr':'\\uD835\\uDD14','qint':'\\u2A0C','qopf':'\\uD835\\uDD62','Qopf':'\\u211A','qprime':'\\u2057','qscr':'\\uD835\\uDCC6','Qscr':'\\uD835\\uDCAC','quaternions':'\\u210D','quatint':'\\u2A16','quest':'?','questeq':'\\u225F','quot':'\"','QUOT':'\"','rAarr':'\\u21DB','race':'\\u223D\\u0331','racute':'\\u0155','Racute':'\\u0154','radic':'\\u221A','raemptyv':'\\u29B3','rang':'\\u27E9','Rang':'\\u27EB','rangd':'\\u2992','range':'\\u29A5','rangle':'\\u27E9','raquo':'\\xBB','rarr':'\\u2192','rArr':'\\u21D2','Rarr':'\\u21A0','rarrap':'\\u2975','rarrb':'\\u21E5','rarrbfs':'\\u2920','rarrc':'\\u2933','rarrfs':'\\u291E','rarrhk':'\\u21AA','rarrlp':'\\u21AC','rarrpl':'\\u2945','rarrsim':'\\u2974','rarrtl':'\\u21A3','Rarrtl':'\\u2916','rarrw':'\\u219D','ratail':'\\u291A','rAtail':'\\u291C','ratio':'\\u2236','rationals':'\\u211A','rbarr':'\\u290D','rBarr':'\\u290F','RBarr':'\\u2910','rbbrk':'\\u2773','rbrace':'}','rbrack':']','rbrke':'\\u298C','rbrksld':'\\u298E','rbrkslu':'\\u2990','rcaron':'\\u0159','Rcaron':'\\u0158','rcedil':'\\u0157','Rcedil':'\\u0156','rceil':'\\u2309','rcub':'}','rcy':'\\u0440','Rcy':'\\u0420','rdca':'\\u2937','rdldhar':'\\u2969','rdquo':'\\u201D','rdquor':'\\u201D','rdsh':'\\u21B3','Re':'\\u211C','real':'\\u211C','realine':'\\u211B','realpart':'\\u211C','reals':'\\u211D','rect':'\\u25AD','reg':'\\xAE','REG':'\\xAE','ReverseElement':'\\u220B','ReverseEquilibrium':'\\u21CB','ReverseUpEquilibrium':'\\u296F','rfisht':'\\u297D','rfloor':'\\u230B','rfr':'\\uD835\\uDD2F','Rfr':'\\u211C','rHar':'\\u2964','rhard':'\\u21C1','rharu':'\\u21C0','rharul':'\\u296C','rho':'\\u03C1','Rho':'\\u03A1','rhov':'\\u03F1','RightAngleBracket':'\\u27E9','rightarrow':'\\u2192','Rightarrow':'\\u21D2','RightArrow':'\\u2192','RightArrowBar':'\\u21E5','RightArrowLeftArrow':'\\u21C4','rightarrowtail':'\\u21A3','RightCeiling':'\\u2309','RightDoubleBracket':'\\u27E7','RightDownTeeVector':'\\u295D','RightDownVector':'\\u21C2','RightDownVectorBar':'\\u2955','RightFloor':'\\u230B','rightharpoondown':'\\u21C1','rightharpoonup':'\\u21C0','rightleftarrows':'\\u21C4','rightleftharpoons':'\\u21CC','rightrightarrows':'\\u21C9','rightsquigarrow':'\\u219D','RightTee':'\\u22A2','RightTeeArrow':'\\u21A6','RightTeeVector':'\\u295B','rightthreetimes':'\\u22CC','RightTriangle':'\\u22B3','RightTriangleBar':'\\u29D0','RightTriangleEqual':'\\u22B5','RightUpDownVector':'\\u294F','RightUpTeeVector':'\\u295C','RightUpVector':'\\u21BE','RightUpVectorBar':'\\u2954','RightVector':'\\u21C0','RightVectorBar':'\\u2953','ring':'\\u02DA','risingdotseq':'\\u2253','rlarr':'\\u21C4','rlhar':'\\u21CC','rlm':'\\u200F','rmoust':'\\u23B1','rmoustache':'\\u23B1','rnmid':'\\u2AEE','roang':'\\u27ED','roarr':'\\u21FE','robrk':'\\u27E7','ropar':'\\u2986','ropf':'\\uD835\\uDD63','Ropf':'\\u211D','roplus':'\\u2A2E','rotimes':'\\u2A35','RoundImplies':'\\u2970','rpar':')','rpargt':'\\u2994','rppolint':'\\u2A12','rrarr':'\\u21C9','Rrightarrow':'\\u21DB','rsaquo':'\\u203A','rscr':'\\uD835\\uDCC7','Rscr':'\\u211B','rsh':'\\u21B1','Rsh':'\\u21B1','rsqb':']','rsquo':'\\u2019','rsquor':'\\u2019','rthree':'\\u22CC','rtimes':'\\u22CA','rtri':'\\u25B9','rtrie':'\\u22B5','rtrif':'\\u25B8','rtriltri':'\\u29CE','RuleDelayed':'\\u29F4','ruluhar':'\\u2968','rx':'\\u211E','sacute':'\\u015B','Sacute':'\\u015A','sbquo':'\\u201A','sc':'\\u227B','Sc':'\\u2ABC','scap':'\\u2AB8','scaron':'\\u0161','Scaron':'\\u0160','sccue':'\\u227D','sce':'\\u2AB0','scE':'\\u2AB4','scedil':'\\u015F','Scedil':'\\u015E','scirc':'\\u015D','Scirc':'\\u015C','scnap':'\\u2ABA','scnE':'\\u2AB6','scnsim':'\\u22E9','scpolint':'\\u2A13','scsim':'\\u227F','scy':'\\u0441','Scy':'\\u0421','sdot':'\\u22C5','sdotb':'\\u22A1','sdote':'\\u2A66','searhk':'\\u2925','searr':'\\u2198','seArr':'\\u21D8','searrow':'\\u2198','sect':'\\xA7','semi':';','seswar':'\\u2929','setminus':'\\u2216','setmn':'\\u2216','sext':'\\u2736','sfr':'\\uD835\\uDD30','Sfr':'\\uD835\\uDD16','sfrown':'\\u2322','sharp':'\\u266F','shchcy':'\\u0449','SHCHcy':'\\u0429','shcy':'\\u0448','SHcy':'\\u0428','ShortDownArrow':'\\u2193','ShortLeftArrow':'\\u2190','shortmid':'\\u2223','shortparallel':'\\u2225','ShortRightArrow':'\\u2192','ShortUpArrow':'\\u2191','shy':'\\xAD','sigma':'\\u03C3','Sigma':'\\u03A3','sigmaf':'\\u03C2','sigmav':'\\u03C2','sim':'\\u223C','simdot':'\\u2A6A','sime':'\\u2243','simeq':'\\u2243','simg':'\\u2A9E','simgE':'\\u2AA0','siml':'\\u2A9D','simlE':'\\u2A9F','simne':'\\u2246','simplus':'\\u2A24','simrarr':'\\u2972','slarr':'\\u2190','SmallCircle':'\\u2218','smallsetminus':'\\u2216','smashp':'\\u2A33','smeparsl':'\\u29E4','smid':'\\u2223','smile':'\\u2323','smt':'\\u2AAA','smte':'\\u2AAC','smtes':'\\u2AAC\\uFE00','softcy':'\\u044C','SOFTcy':'\\u042C','sol':'/','solb':'\\u29C4','solbar':'\\u233F','sopf':'\\uD835\\uDD64','Sopf':'\\uD835\\uDD4A','spades':'\\u2660','spadesuit':'\\u2660','spar':'\\u2225','sqcap':'\\u2293','sqcaps':'\\u2293\\uFE00','sqcup':'\\u2294','sqcups':'\\u2294\\uFE00','Sqrt':'\\u221A','sqsub':'\\u228F','sqsube':'\\u2291','sqsubset':'\\u228F','sqsubseteq':'\\u2291','sqsup':'\\u2290','sqsupe':'\\u2292','sqsupset':'\\u2290','sqsupseteq':'\\u2292','squ':'\\u25A1','square':'\\u25A1','Square':'\\u25A1','SquareIntersection':'\\u2293','SquareSubset':'\\u228F','SquareSubsetEqual':'\\u2291','SquareSuperset':'\\u2290','SquareSupersetEqual':'\\u2292','SquareUnion':'\\u2294','squarf':'\\u25AA','squf':'\\u25AA','srarr':'\\u2192','sscr':'\\uD835\\uDCC8','Sscr':'\\uD835\\uDCAE','ssetmn':'\\u2216','ssmile':'\\u2323','sstarf':'\\u22C6','star':'\\u2606','Star':'\\u22C6','starf':'\\u2605','straightepsilon':'\\u03F5','straightphi':'\\u03D5','strns':'\\xAF','sub':'\\u2282','Sub':'\\u22D0','subdot':'\\u2ABD','sube':'\\u2286','subE':'\\u2AC5','subedot':'\\u2AC3','submult':'\\u2AC1','subne':'\\u228A','subnE':'\\u2ACB','subplus':'\\u2ABF','subrarr':'\\u2979','subset':'\\u2282','Subset':'\\u22D0','subseteq':'\\u2286','subseteqq':'\\u2AC5','SubsetEqual':'\\u2286','subsetneq':'\\u228A','subsetneqq':'\\u2ACB','subsim':'\\u2AC7','subsub':'\\u2AD5','subsup':'\\u2AD3','succ':'\\u227B','succapprox':'\\u2AB8','succcurlyeq':'\\u227D','Succeeds':'\\u227B','SucceedsEqual':'\\u2AB0','SucceedsSlantEqual':'\\u227D','SucceedsTilde':'\\u227F','succeq':'\\u2AB0','succnapprox':'\\u2ABA','succneqq':'\\u2AB6','succnsim':'\\u22E9','succsim':'\\u227F','SuchThat':'\\u220B','sum':'\\u2211','Sum':'\\u2211','sung':'\\u266A','sup':'\\u2283','Sup':'\\u22D1','sup1':'\\xB9','sup2':'\\xB2','sup3':'\\xB3','supdot':'\\u2ABE','supdsub':'\\u2AD8','supe':'\\u2287','supE':'\\u2AC6','supedot':'\\u2AC4','Superset':'\\u2283','SupersetEqual':'\\u2287','suphsol':'\\u27C9','suphsub':'\\u2AD7','suplarr':'\\u297B','supmult':'\\u2AC2','supne':'\\u228B','supnE':'\\u2ACC','supplus':'\\u2AC0','supset':'\\u2283','Supset':'\\u22D1','supseteq':'\\u2287','supseteqq':'\\u2AC6','supsetneq':'\\u228B','supsetneqq':'\\u2ACC','supsim':'\\u2AC8','supsub':'\\u2AD4','supsup':'\\u2AD6','swarhk':'\\u2926','swarr':'\\u2199','swArr':'\\u21D9','swarrow':'\\u2199','swnwar':'\\u292A','szlig':'\\xDF','Tab':'\\t','target':'\\u2316','tau':'\\u03C4','Tau':'\\u03A4','tbrk':'\\u23B4','tcaron':'\\u0165','Tcaron':'\\u0164','tcedil':'\\u0163','Tcedil':'\\u0162','tcy':'\\u0442','Tcy':'\\u0422','tdot':'\\u20DB','telrec':'\\u2315','tfr':'\\uD835\\uDD31','Tfr':'\\uD835\\uDD17','there4':'\\u2234','therefore':'\\u2234','Therefore':'\\u2234','theta':'\\u03B8','Theta':'\\u0398','thetasym':'\\u03D1','thetav':'\\u03D1','thickapprox':'\\u2248','thicksim':'\\u223C','ThickSpace':'\\u205F\\u200A','thinsp':'\\u2009','ThinSpace':'\\u2009','thkap':'\\u2248','thksim':'\\u223C','thorn':'\\xFE','THORN':'\\xDE','tilde':'\\u02DC','Tilde':'\\u223C','TildeEqual':'\\u2243','TildeFullEqual':'\\u2245','TildeTilde':'\\u2248','times':'\\xD7','timesb':'\\u22A0','timesbar':'\\u2A31','timesd':'\\u2A30','tint':'\\u222D','toea':'\\u2928','top':'\\u22A4','topbot':'\\u2336','topcir':'\\u2AF1','topf':'\\uD835\\uDD65','Topf':'\\uD835\\uDD4B','topfork':'\\u2ADA','tosa':'\\u2929','tprime':'\\u2034','trade':'\\u2122','TRADE':'\\u2122','triangle':'\\u25B5','triangledown':'\\u25BF','triangleleft':'\\u25C3','trianglelefteq':'\\u22B4','triangleq':'\\u225C','triangleright':'\\u25B9','trianglerighteq':'\\u22B5','tridot':'\\u25EC','trie':'\\u225C','triminus':'\\u2A3A','TripleDot':'\\u20DB','triplus':'\\u2A39','trisb':'\\u29CD','tritime':'\\u2A3B','trpezium':'\\u23E2','tscr':'\\uD835\\uDCC9','Tscr':'\\uD835\\uDCAF','tscy':'\\u0446','TScy':'\\u0426','tshcy':'\\u045B','TSHcy':'\\u040B','tstrok':'\\u0167','Tstrok':'\\u0166','twixt':'\\u226C','twoheadleftarrow':'\\u219E','twoheadrightarrow':'\\u21A0','uacute':'\\xFA','Uacute':'\\xDA','uarr':'\\u2191','uArr':'\\u21D1','Uarr':'\\u219F','Uarrocir':'\\u2949','ubrcy':'\\u045E','Ubrcy':'\\u040E','ubreve':'\\u016D','Ubreve':'\\u016C','ucirc':'\\xFB','Ucirc':'\\xDB','ucy':'\\u0443','Ucy':'\\u0423','udarr':'\\u21C5','udblac':'\\u0171','Udblac':'\\u0170','udhar':'\\u296E','ufisht':'\\u297E','ufr':'\\uD835\\uDD32','Ufr':'\\uD835\\uDD18','ugrave':'\\xF9','Ugrave':'\\xD9','uHar':'\\u2963','uharl':'\\u21BF','uharr':'\\u21BE','uhblk':'\\u2580','ulcorn':'\\u231C','ulcorner':'\\u231C','ulcrop':'\\u230F','ultri':'\\u25F8','umacr':'\\u016B','Umacr':'\\u016A','uml':'\\xA8','UnderBar':'_','UnderBrace':'\\u23DF','UnderBracket':'\\u23B5','UnderParenthesis':'\\u23DD','Union':'\\u22C3','UnionPlus':'\\u228E','uogon':'\\u0173','Uogon':'\\u0172','uopf':'\\uD835\\uDD66','Uopf':'\\uD835\\uDD4C','uparrow':'\\u2191','Uparrow':'\\u21D1','UpArrow':'\\u2191','UpArrowBar':'\\u2912','UpArrowDownArrow':'\\u21C5','updownarrow':'\\u2195','Updownarrow':'\\u21D5','UpDownArrow':'\\u2195','UpEquilibrium':'\\u296E','upharpoonleft':'\\u21BF','upharpoonright':'\\u21BE','uplus':'\\u228E','UpperLeftArrow':'\\u2196','UpperRightArrow':'\\u2197','upsi':'\\u03C5','Upsi':'\\u03D2','upsih':'\\u03D2','upsilon':'\\u03C5','Upsilon':'\\u03A5','UpTee':'\\u22A5','UpTeeArrow':'\\u21A5','upuparrows':'\\u21C8','urcorn':'\\u231D','urcorner':'\\u231D','urcrop':'\\u230E','uring':'\\u016F','Uring':'\\u016E','urtri':'\\u25F9','uscr':'\\uD835\\uDCCA','Uscr':'\\uD835\\uDCB0','utdot':'\\u22F0','utilde':'\\u0169','Utilde':'\\u0168','utri':'\\u25B5','utrif':'\\u25B4','uuarr':'\\u21C8','uuml':'\\xFC','Uuml':'\\xDC','uwangle':'\\u29A7','vangrt':'\\u299C','varepsilon':'\\u03F5','varkappa':'\\u03F0','varnothing':'\\u2205','varphi':'\\u03D5','varpi':'\\u03D6','varpropto':'\\u221D','varr':'\\u2195','vArr':'\\u21D5','varrho':'\\u03F1','varsigma':'\\u03C2','varsubsetneq':'\\u228A\\uFE00','varsubsetneqq':'\\u2ACB\\uFE00','varsupsetneq':'\\u228B\\uFE00','varsupsetneqq':'\\u2ACC\\uFE00','vartheta':'\\u03D1','vartriangleleft':'\\u22B2','vartriangleright':'\\u22B3','vBar':'\\u2AE8','Vbar':'\\u2AEB','vBarv':'\\u2AE9','vcy':'\\u0432','Vcy':'\\u0412','vdash':'\\u22A2','vDash':'\\u22A8','Vdash':'\\u22A9','VDash':'\\u22AB','Vdashl':'\\u2AE6','vee':'\\u2228','Vee':'\\u22C1','veebar':'\\u22BB','veeeq':'\\u225A','vellip':'\\u22EE','verbar':'|','Verbar':'\\u2016','vert':'|','Vert':'\\u2016','VerticalBar':'\\u2223','VerticalLine':'|','VerticalSeparator':'\\u2758','VerticalTilde':'\\u2240','VeryThinSpace':'\\u200A','vfr':'\\uD835\\uDD33','Vfr':'\\uD835\\uDD19','vltri':'\\u22B2','vnsub':'\\u2282\\u20D2','vnsup':'\\u2283\\u20D2','vopf':'\\uD835\\uDD67','Vopf':'\\uD835\\uDD4D','vprop':'\\u221D','vrtri':'\\u22B3','vscr':'\\uD835\\uDCCB','Vscr':'\\uD835\\uDCB1','vsubne':'\\u228A\\uFE00','vsubnE':'\\u2ACB\\uFE00','vsupne':'\\u228B\\uFE00','vsupnE':'\\u2ACC\\uFE00','Vvdash':'\\u22AA','vzigzag':'\\u299A','wcirc':'\\u0175','Wcirc':'\\u0174','wedbar':'\\u2A5F','wedge':'\\u2227','Wedge':'\\u22C0','wedgeq':'\\u2259','weierp':'\\u2118','wfr':'\\uD835\\uDD34','Wfr':'\\uD835\\uDD1A','wopf':'\\uD835\\uDD68','Wopf':'\\uD835\\uDD4E','wp':'\\u2118','wr':'\\u2240','wreath':'\\u2240','wscr':'\\uD835\\uDCCC','Wscr':'\\uD835\\uDCB2','xcap':'\\u22C2','xcirc':'\\u25EF','xcup':'\\u22C3','xdtri':'\\u25BD','xfr':'\\uD835\\uDD35','Xfr':'\\uD835\\uDD1B','xharr':'\\u27F7','xhArr':'\\u27FA','xi':'\\u03BE','Xi':'\\u039E','xlarr':'\\u27F5','xlArr':'\\u27F8','xmap':'\\u27FC','xnis':'\\u22FB','xodot':'\\u2A00','xopf':'\\uD835\\uDD69','Xopf':'\\uD835\\uDD4F','xoplus':'\\u2A01','xotime':'\\u2A02','xrarr':'\\u27F6','xrArr':'\\u27F9','xscr':'\\uD835\\uDCCD','Xscr':'\\uD835\\uDCB3','xsqcup':'\\u2A06','xuplus':'\\u2A04','xutri':'\\u25B3','xvee':'\\u22C1','xwedge':'\\u22C0','yacute':'\\xFD','Yacute':'\\xDD','yacy':'\\u044F','YAcy':'\\u042F','ycirc':'\\u0177','Ycirc':'\\u0176','ycy':'\\u044B','Ycy':'\\u042B','yen':'\\xA5','yfr':'\\uD835\\uDD36','Yfr':'\\uD835\\uDD1C','yicy':'\\u0457','YIcy':'\\u0407','yopf':'\\uD835\\uDD6A','Yopf':'\\uD835\\uDD50','yscr':'\\uD835\\uDCCE','Yscr':'\\uD835\\uDCB4','yucy':'\\u044E','YUcy':'\\u042E','yuml':'\\xFF','Yuml':'\\u0178','zacute':'\\u017A','Zacute':'\\u0179','zcaron':'\\u017E','Zcaron':'\\u017D','zcy':'\\u0437','Zcy':'\\u0417','zdot':'\\u017C','Zdot':'\\u017B','zeetrf':'\\u2128','ZeroWidthSpace':'\\u200B','zeta':'\\u03B6','Zeta':'\\u0396','zfr':'\\uD835\\uDD37','Zfr':'\\u2128','zhcy':'\\u0436','ZHcy':'\\u0416','zigrarr':'\\u21DD','zopf':'\\uD835\\uDD6B','Zopf':'\\u2124','zscr':'\\uD835\\uDCCF','Zscr':'\\uD835\\uDCB5','zwj':'\\u200D','zwnj':'\\u200C'};\n\tvar decodeMapLegacy = {'aacute':'\\xE1','Aacute':'\\xC1','acirc':'\\xE2','Acirc':'\\xC2','acute':'\\xB4','aelig':'\\xE6','AElig':'\\xC6','agrave':'\\xE0','Agrave':'\\xC0','amp':'&','AMP':'&','aring':'\\xE5','Aring':'\\xC5','atilde':'\\xE3','Atilde':'\\xC3','auml':'\\xE4','Auml':'\\xC4','brvbar':'\\xA6','ccedil':'\\xE7','Ccedil':'\\xC7','cedil':'\\xB8','cent':'\\xA2','copy':'\\xA9','COPY':'\\xA9','curren':'\\xA4','deg':'\\xB0','divide':'\\xF7','eacute':'\\xE9','Eacute':'\\xC9','ecirc':'\\xEA','Ecirc':'\\xCA','egrave':'\\xE8','Egrave':'\\xC8','eth':'\\xF0','ETH':'\\xD0','euml':'\\xEB','Euml':'\\xCB','frac12':'\\xBD','frac14':'\\xBC','frac34':'\\xBE','gt':'>','GT':'>','iacute':'\\xED','Iacute':'\\xCD','icirc':'\\xEE','Icirc':'\\xCE','iexcl':'\\xA1','igrave':'\\xEC','Igrave':'\\xCC','iquest':'\\xBF','iuml':'\\xEF','Iuml':'\\xCF','laquo':'\\xAB','lt':'<','LT':'<','macr':'\\xAF','micro':'\\xB5','middot':'\\xB7','nbsp':'\\xA0','not':'\\xAC','ntilde':'\\xF1','Ntilde':'\\xD1','oacute':'\\xF3','Oacute':'\\xD3','ocirc':'\\xF4','Ocirc':'\\xD4','ograve':'\\xF2','Ograve':'\\xD2','ordf':'\\xAA','ordm':'\\xBA','oslash':'\\xF8','Oslash':'\\xD8','otilde':'\\xF5','Otilde':'\\xD5','ouml':'\\xF6','Ouml':'\\xD6','para':'\\xB6','plusmn':'\\xB1','pound':'\\xA3','quot':'\"','QUOT':'\"','raquo':'\\xBB','reg':'\\xAE','REG':'\\xAE','sect':'\\xA7','shy':'\\xAD','sup1':'\\xB9','sup2':'\\xB2','sup3':'\\xB3','szlig':'\\xDF','thorn':'\\xFE','THORN':'\\xDE','times':'\\xD7','uacute':'\\xFA','Uacute':'\\xDA','ucirc':'\\xFB','Ucirc':'\\xDB','ugrave':'\\xF9','Ugrave':'\\xD9','uml':'\\xA8','uuml':'\\xFC','Uuml':'\\xDC','yacute':'\\xFD','Yacute':'\\xDD','yen':'\\xA5','yuml':'\\xFF'};\n\tvar decodeMapNumeric = {'0':'\\uFFFD','128':'\\u20AC','130':'\\u201A','131':'\\u0192','132':'\\u201E','133':'\\u2026','134':'\\u2020','135':'\\u2021','136':'\\u02C6','137':'\\u2030','138':'\\u0160','139':'\\u2039','140':'\\u0152','142':'\\u017D','145':'\\u2018','146':'\\u2019','147':'\\u201C','148':'\\u201D','149':'\\u2022','150':'\\u2013','151':'\\u2014','152':'\\u02DC','153':'\\u2122','154':'\\u0161','155':'\\u203A','156':'\\u0153','158':'\\u017E','159':'\\u0178'};\n\tvar invalidReferenceCodePoints = [1,2,3,4,5,6,7,8,11,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,64976,64977,64978,64979,64980,64981,64982,64983,64984,64985,64986,64987,64988,64989,64990,64991,64992,64993,64994,64995,64996,64997,64998,64999,65000,65001,65002,65003,65004,65005,65006,65007,65534,65535,131070,131071,196606,196607,262142,262143,327678,327679,393214,393215,458750,458751,524286,524287,589822,589823,655358,655359,720894,720895,786430,786431,851966,851967,917502,917503,983038,983039,1048574,1048575,1114110,1114111];\n\n\t/*--------------------------------------------------------------------------*/\n\n\tvar stringFromCharCode = String.fromCharCode;\n\n\tvar object = {};\n\tvar hasOwnProperty = object.hasOwnProperty;\n\tvar has = function(object, propertyName) {\n\t\treturn hasOwnProperty.call(object, propertyName);\n\t};\n\n\tvar contains = function(array, value) {\n\t\tvar index = -1;\n\t\tvar length = array.length;\n\t\twhile (++index < length) {\n\t\t\tif (array[index] == value) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t};\n\n\tvar merge = function(options, defaults) {\n\t\tif (!options) {\n\t\t\treturn defaults;\n\t\t}\n\t\tvar result = {};\n\t\tvar key;\n\t\tfor (key in defaults) {\n\t\t\t// A `hasOwnProperty` check is not needed here, since only recognized\n\t\t\t// option names are used anyway. Any others are ignored.\n\t\t\tresult[key] = has(options, key) ? options[key] : defaults[key];\n\t\t}\n\t\treturn result;\n\t};\n\n\t// Modified version of `ucs2encode`; see https://mths.be/punycode.\n\tvar codePointToSymbol = function(codePoint, strict) {\n\t\tvar output = '';\n\t\tif ((codePoint >= 0xD800 && codePoint <= 0xDFFF) || codePoint > 0x10FFFF) {\n\t\t\t// See issue #4:\n\t\t\t// “Otherwise, if the number is in the range 0xD800 to 0xDFFF or is\n\t\t\t// greater than 0x10FFFF, then this is a parse error. Return a U+FFFD\n\t\t\t// REPLACEMENT CHARACTER.”\n\t\t\tif (strict) {\n\t\t\t\tparseError('character reference outside the permissible Unicode range');\n\t\t\t}\n\t\t\treturn '\\uFFFD';\n\t\t}\n\t\tif (has(decodeMapNumeric, codePoint)) {\n\t\t\tif (strict) {\n\t\t\t\tparseError('disallowed character reference');\n\t\t\t}\n\t\t\treturn decodeMapNumeric[codePoint];\n\t\t}\n\t\tif (strict && contains(invalidReferenceCodePoints, codePoint)) {\n\t\t\tparseError('disallowed character reference');\n\t\t}\n\t\tif (codePoint > 0xFFFF) {\n\t\t\tcodePoint -= 0x10000;\n\t\t\toutput += stringFromCharCode(codePoint >>> 10 & 0x3FF | 0xD800);\n\t\t\tcodePoint = 0xDC00 | codePoint & 0x3FF;\n\t\t}\n\t\toutput += stringFromCharCode(codePoint);\n\t\treturn output;\n\t};\n\n\tvar hexEscape = function(codePoint) {\n\t\treturn '&#x' + codePoint.toString(16).toUpperCase() + ';';\n\t};\n\n\tvar decEscape = function(codePoint) {\n\t\treturn '&#' + codePoint + ';';\n\t};\n\n\tvar parseError = function(message) {\n\t\tthrow Error('Parse error: ' + message);\n\t};\n\n\t/*--------------------------------------------------------------------------*/\n\n\tvar encode = function(string, options) {\n\t\toptions = merge(options, encode.options);\n\t\tvar strict = options.strict;\n\t\tif (strict && regexInvalidRawCodePoint.test(string)) {\n\t\t\tparseError('forbidden code point');\n\t\t}\n\t\tvar encodeEverything = options.encodeEverything;\n\t\tvar useNamedReferences = options.useNamedReferences;\n\t\tvar allowUnsafeSymbols = options.allowUnsafeSymbols;\n\t\tvar escapeCodePoint = options.decimal ? decEscape : hexEscape;\n\n\t\tvar escapeBmpSymbol = function(symbol) {\n\t\t\treturn escapeCodePoint(symbol.charCodeAt(0));\n\t\t};\n\n\t\tif (encodeEverything) {\n\t\t\t// Encode ASCII symbols.\n\t\t\tstring = string.replace(regexAsciiWhitelist, function(symbol) {\n\t\t\t\t// Use named references if requested & possible.\n\t\t\t\tif (useNamedReferences && has(encodeMap, symbol)) {\n\t\t\t\t\treturn '&' + encodeMap[symbol] + ';';\n\t\t\t\t}\n\t\t\t\treturn escapeBmpSymbol(symbol);\n\t\t\t});\n\t\t\t// Shorten a few escapes that represent two symbols, of which at least one\n\t\t\t// is within the ASCII range.\n\t\t\tif (useNamedReferences) {\n\t\t\t\tstring = string\n\t\t\t\t\t.replace(/>\\u20D2/g, '>⃒')\n\t\t\t\t\t.replace(/<\\u20D2/g, '<⃒')\n\t\t\t\t\t.replace(/fj/g, 'fj');\n\t\t\t}\n\t\t\t// Encode non-ASCII symbols.\n\t\t\tif (useNamedReferences) {\n\t\t\t\t// Encode non-ASCII symbols that can be replaced with a named reference.\n\t\t\t\tstring = string.replace(regexEncodeNonAscii, function(string) {\n\t\t\t\t\t// Note: there is no need to check `has(encodeMap, string)` here.\n\t\t\t\t\treturn '&' + encodeMap[string] + ';';\n\t\t\t\t});\n\t\t\t}\n\t\t\t// Note: any remaining non-ASCII symbols are handled outside of the `if`.\n\t\t} else if (useNamedReferences) {\n\t\t\t// Apply named character references.\n\t\t\t// Encode `<>\"'&` using named character references.\n\t\t\tif (!allowUnsafeSymbols) {\n\t\t\t\tstring = string.replace(regexEscape, function(string) {\n\t\t\t\t\treturn '&' + encodeMap[string] + ';'; // no need to check `has()` here\n\t\t\t\t});\n\t\t\t}\n\t\t\t// Shorten escapes that represent two symbols, of which at least one is\n\t\t\t// `<>\"'&`.\n\t\t\tstring = string\n\t\t\t\t.replace(/>\\u20D2/g, '>⃒')\n\t\t\t\t.replace(/<\\u20D2/g, '<⃒');\n\t\t\t// Encode non-ASCII symbols that can be replaced with a named reference.\n\t\t\tstring = string.replace(regexEncodeNonAscii, function(string) {\n\t\t\t\t// Note: there is no need to check `has(encodeMap, string)` here.\n\t\t\t\treturn '&' + encodeMap[string] + ';';\n\t\t\t});\n\t\t} else if (!allowUnsafeSymbols) {\n\t\t\t// Encode `<>\"'&` using hexadecimal escapes, now that they’re not handled\n\t\t\t// using named character references.\n\t\t\tstring = string.replace(regexEscape, escapeBmpSymbol);\n\t\t}\n\t\treturn string\n\t\t\t// Encode astral symbols.\n\t\t\t.replace(regexAstralSymbols, function($0) {\n\t\t\t\t// https://mathiasbynens.be/notes/javascript-encoding#surrogate-formulae\n\t\t\t\tvar high = $0.charCodeAt(0);\n\t\t\t\tvar low = $0.charCodeAt(1);\n\t\t\t\tvar codePoint = (high - 0xD800) * 0x400 + low - 0xDC00 + 0x10000;\n\t\t\t\treturn escapeCodePoint(codePoint);\n\t\t\t})\n\t\t\t// Encode any remaining BMP symbols that are not printable ASCII symbols\n\t\t\t// using a hexadecimal escape.\n\t\t\t.replace(regexBmpWhitelist, escapeBmpSymbol);\n\t};\n\t// Expose default options (so they can be overridden globally).\n\tencode.options = {\n\t\t'allowUnsafeSymbols': false,\n\t\t'encodeEverything': false,\n\t\t'strict': false,\n\t\t'useNamedReferences': false,\n\t\t'decimal' : false\n\t};\n\n\tvar decode = function(html, options) {\n\t\toptions = merge(options, decode.options);\n\t\tvar strict = options.strict;\n\t\tif (strict && regexInvalidEntity.test(html)) {\n\t\t\tparseError('malformed character reference');\n\t\t}\n\t\treturn html.replace(regexDecode, function($0, $1, $2, $3, $4, $5, $6, $7, $8) {\n\t\t\tvar codePoint;\n\t\t\tvar semicolon;\n\t\t\tvar decDigits;\n\t\t\tvar hexDigits;\n\t\t\tvar reference;\n\t\t\tvar next;\n\n\t\t\tif ($1) {\n\t\t\t\treference = $1;\n\t\t\t\t// Note: there is no need to check `has(decodeMap, reference)`.\n\t\t\t\treturn decodeMap[reference];\n\t\t\t}\n\n\t\t\tif ($2) {\n\t\t\t\t// Decode named character references without trailing `;`, e.g. `&`.\n\t\t\t\t// This is only a parse error if it gets converted to `&`, or if it is\n\t\t\t\t// followed by `=` in an attribute context.\n\t\t\t\treference = $2;\n\t\t\t\tnext = $3;\n\t\t\t\tif (next && options.isAttributeValue) {\n\t\t\t\t\tif (strict && next == '=') {\n\t\t\t\t\t\tparseError('`&` did not start a character reference');\n\t\t\t\t\t}\n\t\t\t\t\treturn $0;\n\t\t\t\t} else {\n\t\t\t\t\tif (strict) {\n\t\t\t\t\t\tparseError(\n\t\t\t\t\t\t\t'named character reference was not terminated by a semicolon'\n\t\t\t\t\t\t);\n\t\t\t\t\t}\n\t\t\t\t\t// Note: there is no need to check `has(decodeMapLegacy, reference)`.\n\t\t\t\t\treturn decodeMapLegacy[reference] + (next || '');\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif ($4) {\n\t\t\t\t// Decode decimal escapes, e.g. `𝌆`.\n\t\t\t\tdecDigits = $4;\n\t\t\t\tsemicolon = $5;\n\t\t\t\tif (strict && !semicolon) {\n\t\t\t\t\tparseError('character reference was not terminated by a semicolon');\n\t\t\t\t}\n\t\t\t\tcodePoint = parseInt(decDigits, 10);\n\t\t\t\treturn codePointToSymbol(codePoint, strict);\n\t\t\t}\n\n\t\t\tif ($6) {\n\t\t\t\t// Decode hexadecimal escapes, e.g. `𝌆`.\n\t\t\t\thexDigits = $6;\n\t\t\t\tsemicolon = $7;\n\t\t\t\tif (strict && !semicolon) {\n\t\t\t\t\tparseError('character reference was not terminated by a semicolon');\n\t\t\t\t}\n\t\t\t\tcodePoint = parseInt(hexDigits, 16);\n\t\t\t\treturn codePointToSymbol(codePoint, strict);\n\t\t\t}\n\n\t\t\t// If we’re still here, `if ($7)` is implied; it’s an ambiguous\n\t\t\t// ampersand for sure. https://mths.be/notes/ambiguous-ampersands\n\t\t\tif (strict) {\n\t\t\t\tparseError(\n\t\t\t\t\t'named character reference was not terminated by a semicolon'\n\t\t\t\t);\n\t\t\t}\n\t\t\treturn $0;\n\t\t});\n\t};\n\t// Expose default options (so they can be overridden globally).\n\tdecode.options = {\n\t\t'isAttributeValue': false,\n\t\t'strict': false\n\t};\n\n\tvar escape = function(string) {\n\t\treturn string.replace(regexEscape, function($0) {\n\t\t\t// Note: there is no need to check `has(escapeMap, $0)` here.\n\t\t\treturn escapeMap[$0];\n\t\t});\n\t};\n\n\t/*--------------------------------------------------------------------------*/\n\n\tvar he = {\n\t\t'version': '1.2.0',\n\t\t'encode': encode,\n\t\t'decode': decode,\n\t\t'escape': escape,\n\t\t'unescape': decode\n\t};\n\n\t// Some AMD build optimizers, like r.js, check for specific condition patterns\n\t// like the following:\n\tif (\n\t\ttypeof define == 'function' &&\n\t\ttypeof define.amd == 'object' &&\n\t\tdefine.amd\n\t) {\n\t\tdefine(function() {\n\t\t\treturn he;\n\t\t});\n\t}\telse if (freeExports && !freeExports.nodeType) {\n\t\tif (freeModule) { // in Node.js, io.js, or RingoJS v0.8.0+\n\t\t\tfreeModule.exports = he;\n\t\t} else { // in Narwhal or RingoJS v0.7.0-\n\t\t\tfor (var key in he) {\n\t\t\t\thas(he, key) && (freeExports[key] = he[key]);\n\t\t\t}\n\t\t}\n\t} else { // in Rhino or a web browser\n\t\troot.he = he;\n\t}\n\n}(this));\n","\"use strict\";\nvar __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n var desc = Object.getOwnPropertyDescriptor(m, k);\n if (!desc || (\"get\" in desc ? !m.__esModule : desc.writable || desc.configurable)) {\n desc = { enumerable: true, get: function() { return m[k]; } };\n }\n Object.defineProperty(o, k2, desc);\n}) : (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n}));\nvar __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {\n Object.defineProperty(o, \"default\", { enumerable: true, value: v });\n}) : function(o, v) {\n o[\"default\"] = v;\n});\nvar __importStar = (this && this.__importStar) || function (mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) for (var k in mod) if (k !== \"default\" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);\n __setModuleDefault(result, mod);\n return result;\n};\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.HttpProxyAgent = void 0;\nconst net = __importStar(require(\"net\"));\nconst tls = __importStar(require(\"tls\"));\nconst debug_1 = __importDefault(require(\"debug\"));\nconst events_1 = require(\"events\");\nconst agent_base_1 = require(\"agent-base\");\nconst url_1 = require(\"url\");\nconst debug = (0, debug_1.default)('http-proxy-agent');\n/**\n * The `HttpProxyAgent` implements an HTTP Agent subclass that connects\n * to the specified \"HTTP proxy server\" in order to proxy HTTP requests.\n */\nclass HttpProxyAgent extends agent_base_1.Agent {\n constructor(proxy, opts) {\n super(opts);\n this.proxy = typeof proxy === 'string' ? new url_1.URL(proxy) : proxy;\n this.proxyHeaders = opts?.headers ?? {};\n debug('Creating new HttpProxyAgent instance: %o', this.proxy.href);\n // Trim off the brackets from IPv6 addresses\n const host = (this.proxy.hostname || this.proxy.host).replace(/^\\[|\\]$/g, '');\n const port = this.proxy.port\n ? parseInt(this.proxy.port, 10)\n : this.proxy.protocol === 'https:'\n ? 443\n : 80;\n this.connectOpts = {\n ...(opts ? omit(opts, 'headers') : null),\n host,\n port,\n };\n }\n addRequest(req, opts) {\n req._header = null;\n this.setRequestProps(req, opts);\n // @ts-expect-error `addRequest()` isn't defined in `@types/node`\n super.addRequest(req, opts);\n }\n setRequestProps(req, opts) {\n const { proxy } = this;\n const protocol = opts.secureEndpoint ? 'https:' : 'http:';\n const hostname = req.getHeader('host') || 'localhost';\n const base = `${protocol}//${hostname}`;\n const url = new url_1.URL(req.path, base);\n if (opts.port !== 80) {\n url.port = String(opts.port);\n }\n // Change the `http.ClientRequest` instance's \"path\" field\n // to the absolute path of the URL that will be requested.\n req.path = String(url);\n // Inject the `Proxy-Authorization` header if necessary.\n const headers = typeof this.proxyHeaders === 'function'\n ? this.proxyHeaders()\n : { ...this.proxyHeaders };\n if (proxy.username || proxy.password) {\n const auth = `${decodeURIComponent(proxy.username)}:${decodeURIComponent(proxy.password)}`;\n headers['Proxy-Authorization'] = `Basic ${Buffer.from(auth).toString('base64')}`;\n }\n if (!headers['Proxy-Connection']) {\n headers['Proxy-Connection'] = this.keepAlive\n ? 'Keep-Alive'\n : 'close';\n }\n for (const name of Object.keys(headers)) {\n const value = headers[name];\n if (value) {\n req.setHeader(name, value);\n }\n }\n }\n async connect(req, opts) {\n req._header = null;\n if (!req.path.includes('://')) {\n this.setRequestProps(req, opts);\n }\n // At this point, the http ClientRequest's internal `_header` field\n // might have already been set. If this is the case then we'll need\n // to re-generate the string since we just changed the `req.path`.\n let first;\n let endOfHeaders;\n debug('Regenerating stored HTTP header string for request');\n req._implicitHeader();\n if (req.outputData && req.outputData.length > 0) {\n debug('Patching connection write() output buffer with updated header');\n first = req.outputData[0].data;\n endOfHeaders = first.indexOf('\\r\\n\\r\\n') + 4;\n req.outputData[0].data =\n req._header + first.substring(endOfHeaders);\n debug('Output buffer: %o', req.outputData[0].data);\n }\n // Create a socket connection to the proxy server.\n let socket;\n if (this.proxy.protocol === 'https:') {\n debug('Creating `tls.Socket`: %o', this.connectOpts);\n socket = tls.connect(this.connectOpts);\n }\n else {\n debug('Creating `net.Socket`: %o', this.connectOpts);\n socket = net.connect(this.connectOpts);\n }\n // Wait for the socket's `connect` event, so that this `callback()`\n // function throws instead of the `http` request machinery. This is\n // important for i.e. `PacProxyAgent` which determines a failed proxy\n // connection via the `callback()` function throwing.\n await (0, events_1.once)(socket, 'connect');\n return socket;\n }\n}\nHttpProxyAgent.protocols = ['http', 'https'];\nexports.HttpProxyAgent = HttpProxyAgent;\nfunction omit(obj, ...keys) {\n const ret = {};\n let key;\n for (key in obj) {\n if (!keys.includes(key)) {\n ret[key] = obj[key];\n }\n }\n return ret;\n}\n//# sourceMappingURL=index.js.map","\"use strict\";\nvar __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n var desc = Object.getOwnPropertyDescriptor(m, k);\n if (!desc || (\"get\" in desc ? !m.__esModule : desc.writable || desc.configurable)) {\n desc = { enumerable: true, get: function() { return m[k]; } };\n }\n Object.defineProperty(o, k2, desc);\n}) : (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n}));\nvar __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {\n Object.defineProperty(o, \"default\", { enumerable: true, value: v });\n}) : function(o, v) {\n o[\"default\"] = v;\n});\nvar __importStar = (this && this.__importStar) || function (mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) for (var k in mod) if (k !== \"default\" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);\n __setModuleDefault(result, mod);\n return result;\n};\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.HttpsProxyAgent = void 0;\nconst net = __importStar(require(\"net\"));\nconst tls = __importStar(require(\"tls\"));\nconst assert_1 = __importDefault(require(\"assert\"));\nconst debug_1 = __importDefault(require(\"debug\"));\nconst agent_base_1 = require(\"agent-base\");\nconst url_1 = require(\"url\");\nconst parse_proxy_response_1 = require(\"./parse-proxy-response\");\nconst debug = (0, debug_1.default)('https-proxy-agent');\nconst setServernameFromNonIpHost = (options) => {\n if (options.servername === undefined &&\n options.host &&\n !net.isIP(options.host)) {\n return {\n ...options,\n servername: options.host,\n };\n }\n return options;\n};\n/**\n * The `HttpsProxyAgent` implements an HTTP Agent subclass that connects to\n * the specified \"HTTP(s) proxy server\" in order to proxy HTTPS requests.\n *\n * Outgoing HTTP requests are first tunneled through the proxy server using the\n * `CONNECT` HTTP request method to establish a connection to the proxy server,\n * and then the proxy server connects to the destination target and issues the\n * HTTP request from the proxy server.\n *\n * `https:` requests have their socket connection upgraded to TLS once\n * the connection to the proxy server has been established.\n */\nclass HttpsProxyAgent extends agent_base_1.Agent {\n constructor(proxy, opts) {\n super(opts);\n this.options = { path: undefined };\n this.proxy = typeof proxy === 'string' ? new url_1.URL(proxy) : proxy;\n this.proxyHeaders = opts?.headers ?? {};\n debug('Creating new HttpsProxyAgent instance: %o', this.proxy.href);\n // Trim off the brackets from IPv6 addresses\n const host = (this.proxy.hostname || this.proxy.host).replace(/^\\[|\\]$/g, '');\n const port = this.proxy.port\n ? parseInt(this.proxy.port, 10)\n : this.proxy.protocol === 'https:'\n ? 443\n : 80;\n this.connectOpts = {\n // Attempt to negotiate http/1.1 for proxy servers that support http/2\n ALPNProtocols: ['http/1.1'],\n ...(opts ? omit(opts, 'headers') : null),\n host,\n port,\n };\n }\n /**\n * Called when the node-core HTTP client library is creating a\n * new HTTP request.\n */\n async connect(req, opts) {\n const { proxy } = this;\n if (!opts.host) {\n throw new TypeError('No \"host\" provided');\n }\n // Create a socket connection to the proxy server.\n let socket;\n if (proxy.protocol === 'https:') {\n debug('Creating `tls.Socket`: %o', this.connectOpts);\n socket = tls.connect(setServernameFromNonIpHost(this.connectOpts));\n }\n else {\n debug('Creating `net.Socket`: %o', this.connectOpts);\n socket = net.connect(this.connectOpts);\n }\n const headers = typeof this.proxyHeaders === 'function'\n ? this.proxyHeaders()\n : { ...this.proxyHeaders };\n const host = net.isIPv6(opts.host) ? `[${opts.host}]` : opts.host;\n let payload = `CONNECT ${host}:${opts.port} HTTP/1.1\\r\\n`;\n // Inject the `Proxy-Authorization` header if necessary.\n if (proxy.username || proxy.password) {\n const auth = `${decodeURIComponent(proxy.username)}:${decodeURIComponent(proxy.password)}`;\n headers['Proxy-Authorization'] = `Basic ${Buffer.from(auth).toString('base64')}`;\n }\n headers.Host = `${host}:${opts.port}`;\n if (!headers['Proxy-Connection']) {\n headers['Proxy-Connection'] = this.keepAlive\n ? 'Keep-Alive'\n : 'close';\n }\n for (const name of Object.keys(headers)) {\n payload += `${name}: ${headers[name]}\\r\\n`;\n }\n const proxyResponsePromise = (0, parse_proxy_response_1.parseProxyResponse)(socket);\n socket.write(`${payload}\\r\\n`);\n const { connect, buffered } = await proxyResponsePromise;\n req.emit('proxyConnect', connect);\n this.emit('proxyConnect', connect, req);\n if (connect.statusCode === 200) {\n req.once('socket', resume);\n if (opts.secureEndpoint) {\n // The proxy is connecting to a TLS server, so upgrade\n // this socket connection to a TLS connection.\n debug('Upgrading socket connection to TLS');\n return tls.connect({\n ...omit(setServernameFromNonIpHost(opts), 'host', 'path', 'port'),\n socket,\n });\n }\n return socket;\n }\n // Some other status code that's not 200... need to re-play the HTTP\n // header \"data\" events onto the socket once the HTTP machinery is\n // attached so that the node core `http` can parse and handle the\n // error status code.\n // Close the original socket, and a new \"fake\" socket is returned\n // instead, so that the proxy doesn't get the HTTP request\n // written to it (which may contain `Authorization` headers or other\n // sensitive data).\n //\n // See: https://hackerone.com/reports/541502\n socket.destroy();\n const fakeSocket = new net.Socket({ writable: false });\n fakeSocket.readable = true;\n // Need to wait for the \"socket\" event to re-play the \"data\" events.\n req.once('socket', (s) => {\n debug('Replaying proxy buffer for failed request');\n (0, assert_1.default)(s.listenerCount('data') > 0);\n // Replay the \"buffered\" Buffer onto the fake `socket`, since at\n // this point the HTTP module machinery has been hooked up for\n // the user.\n s.push(buffered);\n s.push(null);\n });\n return fakeSocket;\n }\n}\nHttpsProxyAgent.protocols = ['http', 'https'];\nexports.HttpsProxyAgent = HttpsProxyAgent;\nfunction resume(socket) {\n socket.resume();\n}\nfunction omit(obj, ...keys) {\n const ret = {};\n let key;\n for (key in obj) {\n if (!keys.includes(key)) {\n ret[key] = obj[key];\n }\n }\n return ret;\n}\n//# sourceMappingURL=index.js.map","\"use strict\";\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.parseProxyResponse = void 0;\nconst debug_1 = __importDefault(require(\"debug\"));\nconst debug = (0, debug_1.default)('https-proxy-agent:parse-proxy-response');\nfunction parseProxyResponse(socket) {\n return new Promise((resolve, reject) => {\n // we need to buffer any HTTP traffic that happens with the proxy before we get\n // the CONNECT response, so that if the response is anything other than an \"200\"\n // response code, then we can re-play the \"data\" events on the socket once the\n // HTTP parser is hooked up...\n let buffersLength = 0;\n const buffers = [];\n function read() {\n const b = socket.read();\n if (b)\n ondata(b);\n else\n socket.once('readable', read);\n }\n function cleanup() {\n socket.removeListener('end', onend);\n socket.removeListener('error', onerror);\n socket.removeListener('readable', read);\n }\n function onend() {\n cleanup();\n debug('onend');\n reject(new Error('Proxy connection ended before receiving CONNECT response'));\n }\n function onerror(err) {\n cleanup();\n debug('onerror %o', err);\n reject(err);\n }\n function ondata(b) {\n buffers.push(b);\n buffersLength += b.length;\n const buffered = Buffer.concat(buffers, buffersLength);\n const endOfHeaders = buffered.indexOf('\\r\\n\\r\\n');\n if (endOfHeaders === -1) {\n // keep buffering\n debug('have not received end of HTTP headers yet...');\n read();\n return;\n }\n const headerParts = buffered\n .slice(0, endOfHeaders)\n .toString('ascii')\n .split('\\r\\n');\n const firstLine = headerParts.shift();\n if (!firstLine) {\n socket.destroy();\n return reject(new Error('No header received from proxy CONNECT response'));\n }\n const firstLineParts = firstLine.split(' ');\n const statusCode = +firstLineParts[1];\n const statusText = firstLineParts.slice(2).join(' ');\n const headers = {};\n for (const header of headerParts) {\n if (!header)\n continue;\n const firstColon = header.indexOf(':');\n if (firstColon === -1) {\n socket.destroy();\n return reject(new Error(`Invalid header from proxy CONNECT response: \"${header}\"`));\n }\n const key = header.slice(0, firstColon).toLowerCase();\n const value = header.slice(firstColon + 1).trimStart();\n const current = headers[key];\n if (typeof current === 'string') {\n headers[key] = [current, value];\n }\n else if (Array.isArray(current)) {\n current.push(value);\n }\n else {\n headers[key] = value;\n }\n }\n debug('got proxy server response: %o %o', firstLine, headers);\n cleanup();\n resolve({\n connect: {\n statusCode,\n statusText,\n headers,\n },\n buffered,\n });\n }\n socket.on('error', onerror);\n socket.on('end', onend);\n read();\n });\n}\nexports.parseProxyResponse = parseProxyResponse;\n//# sourceMappingURL=parse-proxy-response.js.map","\"use strict\";\nvar __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n var desc = Object.getOwnPropertyDescriptor(m, k);\n if (!desc || (\"get\" in desc ? !m.__esModule : desc.writable || desc.configurable)) {\n desc = { enumerable: true, get: function() { return m[k]; } };\n }\n Object.defineProperty(o, k2, desc);\n}) : (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n}));\nvar __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {\n Object.defineProperty(o, \"default\", { enumerable: true, value: v });\n}) : function(o, v) {\n o[\"default\"] = v;\n});\nvar __importStar = (this && this.__importStar) || function (mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) for (var k in mod) if (k !== \"default\" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);\n __setModuleDefault(result, mod);\n return result;\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.req = exports.json = exports.toBuffer = void 0;\nconst http = __importStar(require(\"http\"));\nconst https = __importStar(require(\"https\"));\nasync function toBuffer(stream) {\n let length = 0;\n const chunks = [];\n for await (const chunk of stream) {\n length += chunk.length;\n chunks.push(chunk);\n }\n return Buffer.concat(chunks, length);\n}\nexports.toBuffer = toBuffer;\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nasync function json(stream) {\n const buf = await toBuffer(stream);\n const str = buf.toString('utf8');\n try {\n return JSON.parse(str);\n }\n catch (_err) {\n const err = _err;\n err.message += ` (input: ${str})`;\n throw err;\n }\n}\nexports.json = json;\nfunction req(url, opts = {}) {\n const href = typeof url === 'string' ? url : url.href;\n const req = (href.startsWith('https:') ? https : http).request(url, opts);\n const promise = new Promise((resolve, reject) => {\n req\n .once('response', resolve)\n .once('error', reject)\n .end();\n });\n req.then = promise.then.bind(promise);\n return req;\n}\nexports.req = req;\n//# sourceMappingURL=helpers.js.map","\"use strict\";\nvar __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n var desc = Object.getOwnPropertyDescriptor(m, k);\n if (!desc || (\"get\" in desc ? !m.__esModule : desc.writable || desc.configurable)) {\n desc = { enumerable: true, get: function() { return m[k]; } };\n }\n Object.defineProperty(o, k2, desc);\n}) : (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n}));\nvar __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {\n Object.defineProperty(o, \"default\", { enumerable: true, value: v });\n}) : function(o, v) {\n o[\"default\"] = v;\n});\nvar __importStar = (this && this.__importStar) || function (mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) for (var k in mod) if (k !== \"default\" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);\n __setModuleDefault(result, mod);\n return result;\n};\nvar __exportStar = (this && this.__exportStar) || function(m, exports) {\n for (var p in m) if (p !== \"default\" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.Agent = void 0;\nconst net = __importStar(require(\"net\"));\nconst http = __importStar(require(\"http\"));\nconst https_1 = require(\"https\");\n__exportStar(require(\"./helpers\"), exports);\nconst INTERNAL = Symbol('AgentBaseInternalState');\nclass Agent extends http.Agent {\n constructor(opts) {\n super(opts);\n this[INTERNAL] = {};\n }\n /**\n * Determine whether this is an `http` or `https` request.\n */\n isSecureEndpoint(options) {\n if (options) {\n // First check the `secureEndpoint` property explicitly, since this\n // means that a parent `Agent` is \"passing through\" to this instance.\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n if (typeof options.secureEndpoint === 'boolean') {\n return options.secureEndpoint;\n }\n // If no explicit `secure` endpoint, check if `protocol` property is\n // set. This will usually be the case since using a full string URL\n // or `URL` instance should be the most common usage.\n if (typeof options.protocol === 'string') {\n return options.protocol === 'https:';\n }\n }\n // Finally, if no `protocol` property was set, then fall back to\n // checking the stack trace of the current call stack, and try to\n // detect the \"https\" module.\n const { stack } = new Error();\n if (typeof stack !== 'string')\n return false;\n return stack\n .split('\\n')\n .some((l) => l.indexOf('(https.js:') !== -1 ||\n l.indexOf('node:https:') !== -1);\n }\n // In order to support async signatures in `connect()` and Node's native\n // connection pooling in `http.Agent`, the array of sockets for each origin\n // has to be updated synchronously. This is so the length of the array is\n // accurate when `addRequest()` is next called. We achieve this by creating a\n // fake socket and adding it to `sockets[origin]` and incrementing\n // `totalSocketCount`.\n incrementSockets(name) {\n // If `maxSockets` and `maxTotalSockets` are both Infinity then there is no\n // need to create a fake socket because Node.js native connection pooling\n // will never be invoked.\n if (this.maxSockets === Infinity && this.maxTotalSockets === Infinity) {\n return null;\n }\n // All instances of `sockets` are expected TypeScript errors. The\n // alternative is to add it as a private property of this class but that\n // will break TypeScript subclassing.\n if (!this.sockets[name]) {\n // @ts-expect-error `sockets` is readonly in `@types/node`\n this.sockets[name] = [];\n }\n const fakeSocket = new net.Socket({ writable: false });\n this.sockets[name].push(fakeSocket);\n // @ts-expect-error `totalSocketCount` isn't defined in `@types/node`\n this.totalSocketCount++;\n return fakeSocket;\n }\n decrementSockets(name, socket) {\n if (!this.sockets[name] || socket === null) {\n return;\n }\n const sockets = this.sockets[name];\n const index = sockets.indexOf(socket);\n if (index !== -1) {\n sockets.splice(index, 1);\n // @ts-expect-error `totalSocketCount` isn't defined in `@types/node`\n this.totalSocketCount--;\n if (sockets.length === 0) {\n // @ts-expect-error `sockets` is readonly in `@types/node`\n delete this.sockets[name];\n }\n }\n }\n // In order to properly update the socket pool, we need to call `getName()` on\n // the core `https.Agent` if it is a secureEndpoint.\n getName(options) {\n const secureEndpoint = typeof options.secureEndpoint === 'boolean'\n ? options.secureEndpoint\n : this.isSecureEndpoint(options);\n if (secureEndpoint) {\n // @ts-expect-error `getName()` isn't defined in `@types/node`\n return https_1.Agent.prototype.getName.call(this, options);\n }\n // @ts-expect-error `getName()` isn't defined in `@types/node`\n return super.getName(options);\n }\n createSocket(req, options, cb) {\n const connectOpts = {\n ...options,\n secureEndpoint: this.isSecureEndpoint(options),\n };\n const name = this.getName(connectOpts);\n const fakeSocket = this.incrementSockets(name);\n Promise.resolve()\n .then(() => this.connect(req, connectOpts))\n .then((socket) => {\n this.decrementSockets(name, fakeSocket);\n if (socket instanceof http.Agent) {\n try {\n // @ts-expect-error `addRequest()` isn't defined in `@types/node`\n return socket.addRequest(req, connectOpts);\n }\n catch (err) {\n return cb(err);\n }\n }\n this[INTERNAL].currentSocket = socket;\n // @ts-expect-error `createSocket()` isn't defined in `@types/node`\n super.createSocket(req, options, cb);\n }, (err) => {\n this.decrementSockets(name, fakeSocket);\n cb(err);\n });\n }\n createConnection() {\n const socket = this[INTERNAL].currentSocket;\n this[INTERNAL].currentSocket = undefined;\n if (!socket) {\n throw new Error('No socket was returned in the `connect()` function');\n }\n return socket;\n }\n get defaultPort() {\n return (this[INTERNAL].defaultPort ??\n (this.protocol === 'https:' ? 443 : 80));\n }\n set defaultPort(v) {\n if (this[INTERNAL]) {\n this[INTERNAL].defaultPort = v;\n }\n }\n get protocol() {\n return (this[INTERNAL].protocol ??\n (this.isSecureEndpoint() ? 'https:' : 'http:'));\n }\n set protocol(v) {\n if (this[INTERNAL]) {\n this[INTERNAL].protocol = v;\n }\n }\n}\nexports.Agent = Agent;\n//# sourceMappingURL=index.js.map","\"use strict\";\nvar Buffer = require(\"safer-buffer\").Buffer;\n\n// Multibyte codec. In this scheme, a character is represented by 1 or more bytes.\n// Our codec supports UTF-16 surrogates, extensions for GB18030 and unicode sequences.\n// To save memory and loading time, we read table files only when requested.\n\nexports._dbcs = DBCSCodec;\n\nvar UNASSIGNED = -1,\n GB18030_CODE = -2,\n SEQ_START = -10,\n NODE_START = -1000,\n UNASSIGNED_NODE = new Array(0x100),\n DEF_CHAR = -1;\n\nfor (var i = 0; i < 0x100; i++)\n UNASSIGNED_NODE[i] = UNASSIGNED;\n\n\n// Class DBCSCodec reads and initializes mapping tables.\nfunction DBCSCodec(codecOptions, iconv) {\n this.encodingName = codecOptions.encodingName;\n if (!codecOptions)\n throw new Error(\"DBCS codec is called without the data.\")\n if (!codecOptions.table)\n throw new Error(\"Encoding '\" + this.encodingName + \"' has no data.\");\n\n // Load tables.\n var mappingTable = codecOptions.table();\n\n\n // Decode tables: MBCS -> Unicode.\n\n // decodeTables is a trie, encoded as an array of arrays of integers. Internal arrays are trie nodes and all have len = 256.\n // Trie root is decodeTables[0].\n // Values: >= 0 -> unicode character code. can be > 0xFFFF\n // == UNASSIGNED -> unknown/unassigned sequence.\n // == GB18030_CODE -> this is the end of a GB18030 4-byte sequence.\n // <= NODE_START -> index of the next node in our trie to process next byte.\n // <= SEQ_START -> index of the start of a character code sequence, in decodeTableSeq.\n this.decodeTables = [];\n this.decodeTables[0] = UNASSIGNED_NODE.slice(0); // Create root node.\n\n // Sometimes a MBCS char corresponds to a sequence of unicode chars. We store them as arrays of integers here. \n this.decodeTableSeq = [];\n\n // Actual mapping tables consist of chunks. Use them to fill up decode tables.\n for (var i = 0; i < mappingTable.length; i++)\n this._addDecodeChunk(mappingTable[i]);\n\n // Load & create GB18030 tables when needed.\n if (typeof codecOptions.gb18030 === 'function') {\n this.gb18030 = codecOptions.gb18030(); // Load GB18030 ranges.\n\n // Add GB18030 common decode nodes.\n var commonThirdByteNodeIdx = this.decodeTables.length;\n this.decodeTables.push(UNASSIGNED_NODE.slice(0));\n\n var commonFourthByteNodeIdx = this.decodeTables.length;\n this.decodeTables.push(UNASSIGNED_NODE.slice(0));\n\n // Fill out the tree\n var firstByteNode = this.decodeTables[0];\n for (var i = 0x81; i <= 0xFE; i++) {\n var secondByteNode = this.decodeTables[NODE_START - firstByteNode[i]];\n for (var j = 0x30; j <= 0x39; j++) {\n if (secondByteNode[j] === UNASSIGNED) {\n secondByteNode[j] = NODE_START - commonThirdByteNodeIdx;\n } else if (secondByteNode[j] > NODE_START) {\n throw new Error(\"gb18030 decode tables conflict at byte 2\");\n }\n\n var thirdByteNode = this.decodeTables[NODE_START - secondByteNode[j]];\n for (var k = 0x81; k <= 0xFE; k++) {\n if (thirdByteNode[k] === UNASSIGNED) {\n thirdByteNode[k] = NODE_START - commonFourthByteNodeIdx;\n } else if (thirdByteNode[k] === NODE_START - commonFourthByteNodeIdx) {\n continue;\n } else if (thirdByteNode[k] > NODE_START) {\n throw new Error(\"gb18030 decode tables conflict at byte 3\");\n }\n\n var fourthByteNode = this.decodeTables[NODE_START - thirdByteNode[k]];\n for (var l = 0x30; l <= 0x39; l++) {\n if (fourthByteNode[l] === UNASSIGNED)\n fourthByteNode[l] = GB18030_CODE;\n }\n }\n }\n }\n }\n\n this.defaultCharUnicode = iconv.defaultCharUnicode;\n\n \n // Encode tables: Unicode -> DBCS.\n\n // `encodeTable` is array mapping from unicode char to encoded char. All its values are integers for performance.\n // Because it can be sparse, it is represented as array of buckets by 256 chars each. Bucket can be null.\n // Values: >= 0 -> it is a normal char. Write the value (if <=256 then 1 byte, if <=65536 then 2 bytes, etc.).\n // == UNASSIGNED -> no conversion found. Output a default char.\n // <= SEQ_START -> it's an index in encodeTableSeq, see below. The character starts a sequence.\n this.encodeTable = [];\n \n // `encodeTableSeq` is used when a sequence of unicode characters is encoded as a single code. We use a tree of\n // objects where keys correspond to characters in sequence and leafs are the encoded dbcs values. A special DEF_CHAR key\n // means end of sequence (needed when one sequence is a strict subsequence of another).\n // Objects are kept separately from encodeTable to increase performance.\n this.encodeTableSeq = [];\n\n // Some chars can be decoded, but need not be encoded.\n var skipEncodeChars = {};\n if (codecOptions.encodeSkipVals)\n for (var i = 0; i < codecOptions.encodeSkipVals.length; i++) {\n var val = codecOptions.encodeSkipVals[i];\n if (typeof val === 'number')\n skipEncodeChars[val] = true;\n else\n for (var j = val.from; j <= val.to; j++)\n skipEncodeChars[j] = true;\n }\n \n // Use decode trie to recursively fill out encode tables.\n this._fillEncodeTable(0, 0, skipEncodeChars);\n\n // Add more encoding pairs when needed.\n if (codecOptions.encodeAdd) {\n for (var uChar in codecOptions.encodeAdd)\n if (Object.prototype.hasOwnProperty.call(codecOptions.encodeAdd, uChar))\n this._setEncodeChar(uChar.charCodeAt(0), codecOptions.encodeAdd[uChar]);\n }\n\n this.defCharSB = this.encodeTable[0][iconv.defaultCharSingleByte.charCodeAt(0)];\n if (this.defCharSB === UNASSIGNED) this.defCharSB = this.encodeTable[0]['?'];\n if (this.defCharSB === UNASSIGNED) this.defCharSB = \"?\".charCodeAt(0);\n}\n\nDBCSCodec.prototype.encoder = DBCSEncoder;\nDBCSCodec.prototype.decoder = DBCSDecoder;\n\n// Decoder helpers\nDBCSCodec.prototype._getDecodeTrieNode = function(addr) {\n var bytes = [];\n for (; addr > 0; addr >>>= 8)\n bytes.push(addr & 0xFF);\n if (bytes.length == 0)\n bytes.push(0);\n\n var node = this.decodeTables[0];\n for (var i = bytes.length-1; i > 0; i--) { // Traverse nodes deeper into the trie.\n var val = node[bytes[i]];\n\n if (val == UNASSIGNED) { // Create new node.\n node[bytes[i]] = NODE_START - this.decodeTables.length;\n this.decodeTables.push(node = UNASSIGNED_NODE.slice(0));\n }\n else if (val <= NODE_START) { // Existing node.\n node = this.decodeTables[NODE_START - val];\n }\n else\n throw new Error(\"Overwrite byte in \" + this.encodingName + \", addr: \" + addr.toString(16));\n }\n return node;\n}\n\n\nDBCSCodec.prototype._addDecodeChunk = function(chunk) {\n // First element of chunk is the hex mbcs code where we start.\n var curAddr = parseInt(chunk[0], 16);\n\n // Choose the decoding node where we'll write our chars.\n var writeTable = this._getDecodeTrieNode(curAddr);\n curAddr = curAddr & 0xFF;\n\n // Write all other elements of the chunk to the table.\n for (var k = 1; k < chunk.length; k++) {\n var part = chunk[k];\n if (typeof part === \"string\") { // String, write as-is.\n for (var l = 0; l < part.length;) {\n var code = part.charCodeAt(l++);\n if (0xD800 <= code && code < 0xDC00) { // Decode surrogate\n var codeTrail = part.charCodeAt(l++);\n if (0xDC00 <= codeTrail && codeTrail < 0xE000)\n writeTable[curAddr++] = 0x10000 + (code - 0xD800) * 0x400 + (codeTrail - 0xDC00);\n else\n throw new Error(\"Incorrect surrogate pair in \" + this.encodingName + \" at chunk \" + chunk[0]);\n }\n else if (0x0FF0 < code && code <= 0x0FFF) { // Character sequence (our own encoding used)\n var len = 0xFFF - code + 2;\n var seq = [];\n for (var m = 0; m < len; m++)\n seq.push(part.charCodeAt(l++)); // Simple variation: don't support surrogates or subsequences in seq.\n\n writeTable[curAddr++] = SEQ_START - this.decodeTableSeq.length;\n this.decodeTableSeq.push(seq);\n }\n else\n writeTable[curAddr++] = code; // Basic char\n }\n } \n else if (typeof part === \"number\") { // Integer, meaning increasing sequence starting with prev character.\n var charCode = writeTable[curAddr - 1] + 1;\n for (var l = 0; l < part; l++)\n writeTable[curAddr++] = charCode++;\n }\n else\n throw new Error(\"Incorrect type '\" + typeof part + \"' given in \" + this.encodingName + \" at chunk \" + chunk[0]);\n }\n if (curAddr > 0xFF)\n throw new Error(\"Incorrect chunk in \" + this.encodingName + \" at addr \" + chunk[0] + \": too long\" + curAddr);\n}\n\n// Encoder helpers\nDBCSCodec.prototype._getEncodeBucket = function(uCode) {\n var high = uCode >> 8; // This could be > 0xFF because of astral characters.\n if (this.encodeTable[high] === undefined)\n this.encodeTable[high] = UNASSIGNED_NODE.slice(0); // Create bucket on demand.\n return this.encodeTable[high];\n}\n\nDBCSCodec.prototype._setEncodeChar = function(uCode, dbcsCode) {\n var bucket = this._getEncodeBucket(uCode);\n var low = uCode & 0xFF;\n if (bucket[low] <= SEQ_START)\n this.encodeTableSeq[SEQ_START-bucket[low]][DEF_CHAR] = dbcsCode; // There's already a sequence, set a single-char subsequence of it.\n else if (bucket[low] == UNASSIGNED)\n bucket[low] = dbcsCode;\n}\n\nDBCSCodec.prototype._setEncodeSequence = function(seq, dbcsCode) {\n \n // Get the root of character tree according to first character of the sequence.\n var uCode = seq[0];\n var bucket = this._getEncodeBucket(uCode);\n var low = uCode & 0xFF;\n\n var node;\n if (bucket[low] <= SEQ_START) {\n // There's already a sequence with - use it.\n node = this.encodeTableSeq[SEQ_START-bucket[low]];\n }\n else {\n // There was no sequence object - allocate a new one.\n node = {};\n if (bucket[low] !== UNASSIGNED) node[DEF_CHAR] = bucket[low]; // If a char was set before - make it a single-char subsequence.\n bucket[low] = SEQ_START - this.encodeTableSeq.length;\n this.encodeTableSeq.push(node);\n }\n\n // Traverse the character tree, allocating new nodes as needed.\n for (var j = 1; j < seq.length-1; j++) {\n var oldVal = node[uCode];\n if (typeof oldVal === 'object')\n node = oldVal;\n else {\n node = node[uCode] = {}\n if (oldVal !== undefined)\n node[DEF_CHAR] = oldVal\n }\n }\n\n // Set the leaf to given dbcsCode.\n uCode = seq[seq.length-1];\n node[uCode] = dbcsCode;\n}\n\nDBCSCodec.prototype._fillEncodeTable = function(nodeIdx, prefix, skipEncodeChars) {\n var node = this.decodeTables[nodeIdx];\n var hasValues = false;\n var subNodeEmpty = {};\n for (var i = 0; i < 0x100; i++) {\n var uCode = node[i];\n var mbCode = prefix + i;\n if (skipEncodeChars[mbCode])\n continue;\n\n if (uCode >= 0) {\n this._setEncodeChar(uCode, mbCode);\n hasValues = true;\n } else if (uCode <= NODE_START) {\n var subNodeIdx = NODE_START - uCode;\n if (!subNodeEmpty[subNodeIdx]) { // Skip empty subtrees (they are too large in gb18030).\n var newPrefix = (mbCode << 8) >>> 0; // NOTE: '>>> 0' keeps 32-bit num positive.\n if (this._fillEncodeTable(subNodeIdx, newPrefix, skipEncodeChars))\n hasValues = true;\n else\n subNodeEmpty[subNodeIdx] = true;\n }\n } else if (uCode <= SEQ_START) {\n this._setEncodeSequence(this.decodeTableSeq[SEQ_START - uCode], mbCode);\n hasValues = true;\n }\n }\n return hasValues;\n}\n\n\n\n// == Encoder ==================================================================\n\nfunction DBCSEncoder(options, codec) {\n // Encoder state\n this.leadSurrogate = -1;\n this.seqObj = undefined;\n \n // Static data\n this.encodeTable = codec.encodeTable;\n this.encodeTableSeq = codec.encodeTableSeq;\n this.defaultCharSingleByte = codec.defCharSB;\n this.gb18030 = codec.gb18030;\n}\n\nDBCSEncoder.prototype.write = function(str) {\n var newBuf = Buffer.alloc(str.length * (this.gb18030 ? 4 : 3)),\n leadSurrogate = this.leadSurrogate,\n seqObj = this.seqObj, nextChar = -1,\n i = 0, j = 0;\n\n while (true) {\n // 0. Get next character.\n if (nextChar === -1) {\n if (i == str.length) break;\n var uCode = str.charCodeAt(i++);\n }\n else {\n var uCode = nextChar;\n nextChar = -1; \n }\n\n // 1. Handle surrogates.\n if (0xD800 <= uCode && uCode < 0xE000) { // Char is one of surrogates.\n if (uCode < 0xDC00) { // We've got lead surrogate.\n if (leadSurrogate === -1) {\n leadSurrogate = uCode;\n continue;\n } else {\n leadSurrogate = uCode;\n // Double lead surrogate found.\n uCode = UNASSIGNED;\n }\n } else { // We've got trail surrogate.\n if (leadSurrogate !== -1) {\n uCode = 0x10000 + (leadSurrogate - 0xD800) * 0x400 + (uCode - 0xDC00);\n leadSurrogate = -1;\n } else {\n // Incomplete surrogate pair - only trail surrogate found.\n uCode = UNASSIGNED;\n }\n \n }\n }\n else if (leadSurrogate !== -1) {\n // Incomplete surrogate pair - only lead surrogate found.\n nextChar = uCode; uCode = UNASSIGNED; // Write an error, then current char.\n leadSurrogate = -1;\n }\n\n // 2. Convert uCode character.\n var dbcsCode = UNASSIGNED;\n if (seqObj !== undefined && uCode != UNASSIGNED) { // We are in the middle of the sequence\n var resCode = seqObj[uCode];\n if (typeof resCode === 'object') { // Sequence continues.\n seqObj = resCode;\n continue;\n\n } else if (typeof resCode == 'number') { // Sequence finished. Write it.\n dbcsCode = resCode;\n\n } else if (resCode == undefined) { // Current character is not part of the sequence.\n\n // Try default character for this sequence\n resCode = seqObj[DEF_CHAR];\n if (resCode !== undefined) {\n dbcsCode = resCode; // Found. Write it.\n nextChar = uCode; // Current character will be written too in the next iteration.\n\n } else {\n // TODO: What if we have no default? (resCode == undefined)\n // Then, we should write first char of the sequence as-is and try the rest recursively.\n // Didn't do it for now because no encoding has this situation yet.\n // Currently, just skip the sequence and write current char.\n }\n }\n seqObj = undefined;\n }\n else if (uCode >= 0) { // Regular character\n var subtable = this.encodeTable[uCode >> 8];\n if (subtable !== undefined)\n dbcsCode = subtable[uCode & 0xFF];\n \n if (dbcsCode <= SEQ_START) { // Sequence start\n seqObj = this.encodeTableSeq[SEQ_START-dbcsCode];\n continue;\n }\n\n if (dbcsCode == UNASSIGNED && this.gb18030) {\n // Use GB18030 algorithm to find character(s) to write.\n var idx = findIdx(this.gb18030.uChars, uCode);\n if (idx != -1) {\n var dbcsCode = this.gb18030.gbChars[idx] + (uCode - this.gb18030.uChars[idx]);\n newBuf[j++] = 0x81 + Math.floor(dbcsCode / 12600); dbcsCode = dbcsCode % 12600;\n newBuf[j++] = 0x30 + Math.floor(dbcsCode / 1260); dbcsCode = dbcsCode % 1260;\n newBuf[j++] = 0x81 + Math.floor(dbcsCode / 10); dbcsCode = dbcsCode % 10;\n newBuf[j++] = 0x30 + dbcsCode;\n continue;\n }\n }\n }\n\n // 3. Write dbcsCode character.\n if (dbcsCode === UNASSIGNED)\n dbcsCode = this.defaultCharSingleByte;\n \n if (dbcsCode < 0x100) {\n newBuf[j++] = dbcsCode;\n }\n else if (dbcsCode < 0x10000) {\n newBuf[j++] = dbcsCode >> 8; // high byte\n newBuf[j++] = dbcsCode & 0xFF; // low byte\n }\n else if (dbcsCode < 0x1000000) {\n newBuf[j++] = dbcsCode >> 16;\n newBuf[j++] = (dbcsCode >> 8) & 0xFF;\n newBuf[j++] = dbcsCode & 0xFF;\n } else {\n newBuf[j++] = dbcsCode >>> 24;\n newBuf[j++] = (dbcsCode >>> 16) & 0xFF;\n newBuf[j++] = (dbcsCode >>> 8) & 0xFF;\n newBuf[j++] = dbcsCode & 0xFF;\n }\n }\n\n this.seqObj = seqObj;\n this.leadSurrogate = leadSurrogate;\n return newBuf.slice(0, j);\n}\n\nDBCSEncoder.prototype.end = function() {\n if (this.leadSurrogate === -1 && this.seqObj === undefined)\n return; // All clean. Most often case.\n\n var newBuf = Buffer.alloc(10), j = 0;\n\n if (this.seqObj) { // We're in the sequence.\n var dbcsCode = this.seqObj[DEF_CHAR];\n if (dbcsCode !== undefined) { // Write beginning of the sequence.\n if (dbcsCode < 0x100) {\n newBuf[j++] = dbcsCode;\n }\n else {\n newBuf[j++] = dbcsCode >> 8; // high byte\n newBuf[j++] = dbcsCode & 0xFF; // low byte\n }\n } else {\n // See todo above.\n }\n this.seqObj = undefined;\n }\n\n if (this.leadSurrogate !== -1) {\n // Incomplete surrogate pair - only lead surrogate found.\n newBuf[j++] = this.defaultCharSingleByte;\n this.leadSurrogate = -1;\n }\n \n return newBuf.slice(0, j);\n}\n\n// Export for testing\nDBCSEncoder.prototype.findIdx = findIdx;\n\n\n// == Decoder ==================================================================\n\nfunction DBCSDecoder(options, codec) {\n // Decoder state\n this.nodeIdx = 0;\n this.prevBytes = [];\n\n // Static data\n this.decodeTables = codec.decodeTables;\n this.decodeTableSeq = codec.decodeTableSeq;\n this.defaultCharUnicode = codec.defaultCharUnicode;\n this.gb18030 = codec.gb18030;\n}\n\nDBCSDecoder.prototype.write = function(buf) {\n var newBuf = Buffer.alloc(buf.length*2),\n nodeIdx = this.nodeIdx, \n prevBytes = this.prevBytes, prevOffset = this.prevBytes.length,\n seqStart = -this.prevBytes.length, // idx of the start of current parsed sequence.\n uCode;\n\n for (var i = 0, j = 0; i < buf.length; i++) {\n var curByte = (i >= 0) ? buf[i] : prevBytes[i + prevOffset];\n\n // Lookup in current trie node.\n var uCode = this.decodeTables[nodeIdx][curByte];\n\n if (uCode >= 0) { \n // Normal character, just use it.\n }\n else if (uCode === UNASSIGNED) { // Unknown char.\n // TODO: Callback with seq.\n uCode = this.defaultCharUnicode.charCodeAt(0);\n i = seqStart; // Skip one byte ('i' will be incremented by the for loop) and try to parse again.\n }\n else if (uCode === GB18030_CODE) {\n if (i >= 3) {\n var ptr = (buf[i-3]-0x81)*12600 + (buf[i-2]-0x30)*1260 + (buf[i-1]-0x81)*10 + (curByte-0x30);\n } else {\n var ptr = (prevBytes[i-3+prevOffset]-0x81)*12600 + \n (((i-2 >= 0) ? buf[i-2] : prevBytes[i-2+prevOffset])-0x30)*1260 + \n (((i-1 >= 0) ? buf[i-1] : prevBytes[i-1+prevOffset])-0x81)*10 + \n (curByte-0x30);\n }\n var idx = findIdx(this.gb18030.gbChars, ptr);\n uCode = this.gb18030.uChars[idx] + ptr - this.gb18030.gbChars[idx];\n }\n else if (uCode <= NODE_START) { // Go to next trie node.\n nodeIdx = NODE_START - uCode;\n continue;\n }\n else if (uCode <= SEQ_START) { // Output a sequence of chars.\n var seq = this.decodeTableSeq[SEQ_START - uCode];\n for (var k = 0; k < seq.length - 1; k++) {\n uCode = seq[k];\n newBuf[j++] = uCode & 0xFF;\n newBuf[j++] = uCode >> 8;\n }\n uCode = seq[seq.length-1];\n }\n else\n throw new Error(\"iconv-lite internal error: invalid decoding table value \" + uCode + \" at \" + nodeIdx + \"/\" + curByte);\n\n // Write the character to buffer, handling higher planes using surrogate pair.\n if (uCode >= 0x10000) { \n uCode -= 0x10000;\n var uCodeLead = 0xD800 | (uCode >> 10);\n newBuf[j++] = uCodeLead & 0xFF;\n newBuf[j++] = uCodeLead >> 8;\n\n uCode = 0xDC00 | (uCode & 0x3FF);\n }\n newBuf[j++] = uCode & 0xFF;\n newBuf[j++] = uCode >> 8;\n\n // Reset trie node.\n nodeIdx = 0; seqStart = i+1;\n }\n\n this.nodeIdx = nodeIdx;\n this.prevBytes = (seqStart >= 0)\n ? Array.prototype.slice.call(buf, seqStart)\n : prevBytes.slice(seqStart + prevOffset).concat(Array.prototype.slice.call(buf));\n\n return newBuf.slice(0, j).toString('ucs2');\n}\n\nDBCSDecoder.prototype.end = function() {\n var ret = '';\n\n // Try to parse all remaining chars.\n while (this.prevBytes.length > 0) {\n // Skip 1 character in the buffer.\n ret += this.defaultCharUnicode;\n var bytesArr = this.prevBytes.slice(1);\n\n // Parse remaining as usual.\n this.prevBytes = [];\n this.nodeIdx = 0;\n if (bytesArr.length > 0)\n ret += this.write(bytesArr);\n }\n\n this.prevBytes = [];\n this.nodeIdx = 0;\n return ret;\n}\n\n// Binary search for GB18030. Returns largest i such that table[i] <= val.\nfunction findIdx(table, val) {\n if (table[0] > val)\n return -1;\n\n var l = 0, r = table.length;\n while (l < r-1) { // always table[l] <= val < table[r]\n var mid = l + ((r-l+1) >> 1);\n if (table[mid] <= val)\n l = mid;\n else\n r = mid;\n }\n return l;\n}\n\n","\"use strict\";\n\n// Description of supported double byte encodings and aliases.\n// Tables are not require()-d until they are needed to speed up library load.\n// require()-s are direct to support Browserify.\n\nmodule.exports = {\n \n // == Japanese/ShiftJIS ====================================================\n // All japanese encodings are based on JIS X set of standards:\n // JIS X 0201 - Single-byte encoding of ASCII + ¥ + Kana chars at 0xA1-0xDF.\n // JIS X 0208 - Main set of 6879 characters, placed in 94x94 plane, to be encoded by 2 bytes. \n // Has several variations in 1978, 1983, 1990 and 1997.\n // JIS X 0212 - Supplementary plane of 6067 chars in 94x94 plane. 1990. Effectively dead.\n // JIS X 0213 - Extension and modern replacement of 0208 and 0212. Total chars: 11233.\n // 2 planes, first is superset of 0208, second - revised 0212.\n // Introduced in 2000, revised 2004. Some characters are in Unicode Plane 2 (0x2xxxx)\n\n // Byte encodings are:\n // * Shift_JIS: Compatible with 0201, uses not defined chars in top half as lead bytes for double-byte\n // encoding of 0208. Lead byte ranges: 0x81-0x9F, 0xE0-0xEF; Trail byte ranges: 0x40-0x7E, 0x80-0x9E, 0x9F-0xFC.\n // Windows CP932 is a superset of Shift_JIS. Some companies added more chars, notably KDDI.\n // * EUC-JP: Up to 3 bytes per character. Used mostly on *nixes.\n // 0x00-0x7F - lower part of 0201\n // 0x8E, 0xA1-0xDF - upper part of 0201\n // (0xA1-0xFE)x2 - 0208 plane (94x94).\n // 0x8F, (0xA1-0xFE)x2 - 0212 plane (94x94).\n // * JIS X 208: 7-bit, direct encoding of 0208. Byte ranges: 0x21-0x7E (94 values). Uncommon.\n // Used as-is in ISO2022 family.\n // * ISO2022-JP: Stateful encoding, with escape sequences to switch between ASCII, \n // 0201-1976 Roman, 0208-1978, 0208-1983.\n // * ISO2022-JP-1: Adds esc seq for 0212-1990.\n // * ISO2022-JP-2: Adds esc seq for GB2313-1980, KSX1001-1992, ISO8859-1, ISO8859-7.\n // * ISO2022-JP-3: Adds esc seq for 0201-1976 Kana set, 0213-2000 Planes 1, 2.\n // * ISO2022-JP-2004: Adds 0213-2004 Plane 1.\n //\n // After JIS X 0213 appeared, Shift_JIS-2004, EUC-JISX0213 and ISO2022-JP-2004 followed, with just changing the planes.\n //\n // Overall, it seems that it's a mess :( http://www8.plala.or.jp/tkubota1/unicode-symbols-map2.html\n\n 'shiftjis': {\n type: '_dbcs',\n table: function() { return require('./tables/shiftjis.json') },\n encodeAdd: {'\\u00a5': 0x5C, '\\u203E': 0x7E},\n encodeSkipVals: [{from: 0xED40, to: 0xF940}],\n },\n 'csshiftjis': 'shiftjis',\n 'mskanji': 'shiftjis',\n 'sjis': 'shiftjis',\n 'windows31j': 'shiftjis',\n 'ms31j': 'shiftjis',\n 'xsjis': 'shiftjis',\n 'windows932': 'shiftjis',\n 'ms932': 'shiftjis',\n '932': 'shiftjis',\n 'cp932': 'shiftjis',\n\n 'eucjp': {\n type: '_dbcs',\n table: function() { return require('./tables/eucjp.json') },\n encodeAdd: {'\\u00a5': 0x5C, '\\u203E': 0x7E},\n },\n\n // TODO: KDDI extension to Shift_JIS\n // TODO: IBM CCSID 942 = CP932, but F0-F9 custom chars and other char changes.\n // TODO: IBM CCSID 943 = Shift_JIS = CP932 with original Shift_JIS lower 128 chars.\n\n\n // == Chinese/GBK ==========================================================\n // http://en.wikipedia.org/wiki/GBK\n // We mostly implement W3C recommendation: https://www.w3.org/TR/encoding/#gbk-encoder\n\n // Oldest GB2312 (1981, ~7600 chars) is a subset of CP936\n 'gb2312': 'cp936',\n 'gb231280': 'cp936',\n 'gb23121980': 'cp936',\n 'csgb2312': 'cp936',\n 'csiso58gb231280': 'cp936',\n 'euccn': 'cp936',\n\n // Microsoft's CP936 is a subset and approximation of GBK.\n 'windows936': 'cp936',\n 'ms936': 'cp936',\n '936': 'cp936',\n 'cp936': {\n type: '_dbcs',\n table: function() { return require('./tables/cp936.json') },\n },\n\n // GBK (~22000 chars) is an extension of CP936 that added user-mapped chars and some other.\n 'gbk': {\n type: '_dbcs',\n table: function() { return require('./tables/cp936.json').concat(require('./tables/gbk-added.json')) },\n },\n 'xgbk': 'gbk',\n 'isoir58': 'gbk',\n\n // GB18030 is an algorithmic extension of GBK.\n // Main source: https://www.w3.org/TR/encoding/#gbk-encoder\n // http://icu-project.org/docs/papers/gb18030.html\n // http://source.icu-project.org/repos/icu/data/trunk/charset/data/xml/gb-18030-2000.xml\n // http://www.khngai.com/chinese/charmap/tblgbk.php?page=0\n 'gb18030': {\n type: '_dbcs',\n table: function() { return require('./tables/cp936.json').concat(require('./tables/gbk-added.json')) },\n gb18030: function() { return require('./tables/gb18030-ranges.json') },\n encodeSkipVals: [0x80],\n encodeAdd: {'€': 0xA2E3},\n },\n\n 'chinese': 'gb18030',\n\n\n // == Korean ===============================================================\n // EUC-KR, KS_C_5601 and KS X 1001 are exactly the same.\n 'windows949': 'cp949',\n 'ms949': 'cp949',\n '949': 'cp949',\n 'cp949': {\n type: '_dbcs',\n table: function() { return require('./tables/cp949.json') },\n },\n\n 'cseuckr': 'cp949',\n 'csksc56011987': 'cp949',\n 'euckr': 'cp949',\n 'isoir149': 'cp949',\n 'korean': 'cp949',\n 'ksc56011987': 'cp949',\n 'ksc56011989': 'cp949',\n 'ksc5601': 'cp949',\n\n\n // == Big5/Taiwan/Hong Kong ================================================\n // There are lots of tables for Big5 and cp950. Please see the following links for history:\n // http://moztw.org/docs/big5/ http://www.haible.de/bruno/charsets/conversion-tables/Big5.html\n // Variations, in roughly number of defined chars:\n // * Windows CP 950: Microsoft variant of Big5. Canonical: http://www.unicode.org/Public/MAPPINGS/VENDORS/MICSFT/WINDOWS/CP950.TXT\n // * Windows CP 951: Microsoft variant of Big5-HKSCS-2001. Seems to be never public. http://me.abelcheung.org/articles/research/what-is-cp951/\n // * Big5-2003 (Taiwan standard) almost superset of cp950.\n // * Unicode-at-on (UAO) / Mozilla 1.8. Falling out of use on the Web. Not supported by other browsers.\n // * Big5-HKSCS (-2001, -2004, -2008). Hong Kong standard. \n // many unicode code points moved from PUA to Supplementary plane (U+2XXXX) over the years.\n // Plus, it has 4 combining sequences.\n // Seems that Mozilla refused to support it for 10 yrs. https://bugzilla.mozilla.org/show_bug.cgi?id=162431 https://bugzilla.mozilla.org/show_bug.cgi?id=310299\n // because big5-hkscs is the only encoding to include astral characters in non-algorithmic way.\n // Implementations are not consistent within browsers; sometimes labeled as just big5.\n // MS Internet Explorer switches from big5 to big5-hkscs when a patch applied.\n // Great discussion & recap of what's going on https://bugzilla.mozilla.org/show_bug.cgi?id=912470#c31\n // In the encoder, it might make sense to support encoding old PUA mappings to Big5 bytes seq-s.\n // Official spec: http://www.ogcio.gov.hk/en/business/tech_promotion/ccli/terms/doc/2003cmp_2008.txt\n // http://www.ogcio.gov.hk/tc/business/tech_promotion/ccli/terms/doc/hkscs-2008-big5-iso.txt\n // \n // Current understanding of how to deal with Big5(-HKSCS) is in the Encoding Standard, http://encoding.spec.whatwg.org/#big5-encoder\n // Unicode mapping (http://www.unicode.org/Public/MAPPINGS/OBSOLETE/EASTASIA/OTHER/BIG5.TXT) is said to be wrong.\n\n 'windows950': 'cp950',\n 'ms950': 'cp950',\n '950': 'cp950',\n 'cp950': {\n type: '_dbcs',\n table: function() { return require('./tables/cp950.json') },\n },\n\n // Big5 has many variations and is an extension of cp950. We use Encoding Standard's as a consensus.\n 'big5': 'big5hkscs',\n 'big5hkscs': {\n type: '_dbcs',\n table: function() { return require('./tables/cp950.json').concat(require('./tables/big5-added.json')) },\n encodeSkipVals: [\n // Although Encoding Standard says we should avoid encoding to HKSCS area (See Step 1 of\n // https://encoding.spec.whatwg.org/#index-big5-pointer), we still do it to increase compatibility with ICU.\n // But if a single unicode point can be encoded both as HKSCS and regular Big5, we prefer the latter.\n 0x8e69, 0x8e6f, 0x8e7e, 0x8eab, 0x8eb4, 0x8ecd, 0x8ed0, 0x8f57, 0x8f69, 0x8f6e, 0x8fcb, 0x8ffe,\n 0x906d, 0x907a, 0x90c4, 0x90dc, 0x90f1, 0x91bf, 0x92af, 0x92b0, 0x92b1, 0x92b2, 0x92d1, 0x9447, 0x94ca,\n 0x95d9, 0x96fc, 0x9975, 0x9b76, 0x9b78, 0x9b7b, 0x9bc6, 0x9bde, 0x9bec, 0x9bf6, 0x9c42, 0x9c53, 0x9c62,\n 0x9c68, 0x9c6b, 0x9c77, 0x9cbc, 0x9cbd, 0x9cd0, 0x9d57, 0x9d5a, 0x9dc4, 0x9def, 0x9dfb, 0x9ea9, 0x9eef,\n 0x9efd, 0x9f60, 0x9fcb, 0xa077, 0xa0dc, 0xa0df, 0x8fcc, 0x92c8, 0x9644, 0x96ed,\n\n // Step 2 of https://encoding.spec.whatwg.org/#index-big5-pointer: Use last pointer for U+2550, U+255E, U+2561, U+256A, U+5341, or U+5345\n 0xa2a4, 0xa2a5, 0xa2a7, 0xa2a6, 0xa2cc, 0xa2ce,\n ],\n },\n\n 'cnbig5': 'big5hkscs',\n 'csbig5': 'big5hkscs',\n 'xxbig5': 'big5hkscs',\n};\n","\"use strict\";\n\n// Update this array if you add/rename/remove files in this directory.\n// We support Browserify by skipping automatic module discovery and requiring modules directly.\nvar modules = [\n require(\"./internal\"),\n require(\"./utf32\"),\n require(\"./utf16\"),\n require(\"./utf7\"),\n require(\"./sbcs-codec\"),\n require(\"./sbcs-data\"),\n require(\"./sbcs-data-generated\"),\n require(\"./dbcs-codec\"),\n require(\"./dbcs-data\"),\n];\n\n// Put all encoding/alias/codec definitions to single object and export it.\nfor (var i = 0; i < modules.length; i++) {\n var module = modules[i];\n for (var enc in module)\n if (Object.prototype.hasOwnProperty.call(module, enc))\n exports[enc] = module[enc];\n}\n","\"use strict\";\nvar Buffer = require(\"safer-buffer\").Buffer;\n\n// Export Node.js internal encodings.\n\nmodule.exports = {\n // Encodings\n utf8: { type: \"_internal\", bomAware: true},\n cesu8: { type: \"_internal\", bomAware: true},\n unicode11utf8: \"utf8\",\n\n ucs2: { type: \"_internal\", bomAware: true},\n utf16le: \"ucs2\",\n\n binary: { type: \"_internal\" },\n base64: { type: \"_internal\" },\n hex: { type: \"_internal\" },\n\n // Codec.\n _internal: InternalCodec,\n};\n\n//------------------------------------------------------------------------------\n\nfunction InternalCodec(codecOptions, iconv) {\n this.enc = codecOptions.encodingName;\n this.bomAware = codecOptions.bomAware;\n\n if (this.enc === \"base64\")\n this.encoder = InternalEncoderBase64;\n else if (this.enc === \"cesu8\") {\n this.enc = \"utf8\"; // Use utf8 for decoding.\n this.encoder = InternalEncoderCesu8;\n\n // Add decoder for versions of Node not supporting CESU-8\n if (Buffer.from('eda0bdedb2a9', 'hex').toString() !== '💩') {\n this.decoder = InternalDecoderCesu8;\n this.defaultCharUnicode = iconv.defaultCharUnicode;\n }\n }\n}\n\nInternalCodec.prototype.encoder = InternalEncoder;\nInternalCodec.prototype.decoder = InternalDecoder;\n\n//------------------------------------------------------------------------------\n\n// We use node.js internal decoder. Its signature is the same as ours.\nvar StringDecoder = require('string_decoder').StringDecoder;\n\nif (!StringDecoder.prototype.end) // Node v0.8 doesn't have this method.\n StringDecoder.prototype.end = function() {};\n\n\nfunction InternalDecoder(options, codec) {\n this.decoder = new StringDecoder(codec.enc);\n}\n\nInternalDecoder.prototype.write = function(buf) {\n if (!Buffer.isBuffer(buf)) {\n buf = Buffer.from(buf);\n }\n\n return this.decoder.write(buf);\n}\n\nInternalDecoder.prototype.end = function() {\n return this.decoder.end();\n}\n\n\n//------------------------------------------------------------------------------\n// Encoder is mostly trivial\n\nfunction InternalEncoder(options, codec) {\n this.enc = codec.enc;\n}\n\nInternalEncoder.prototype.write = function(str) {\n return Buffer.from(str, this.enc);\n}\n\nInternalEncoder.prototype.end = function() {\n}\n\n\n//------------------------------------------------------------------------------\n// Except base64 encoder, which must keep its state.\n\nfunction InternalEncoderBase64(options, codec) {\n this.prevStr = '';\n}\n\nInternalEncoderBase64.prototype.write = function(str) {\n str = this.prevStr + str;\n var completeQuads = str.length - (str.length % 4);\n this.prevStr = str.slice(completeQuads);\n str = str.slice(0, completeQuads);\n\n return Buffer.from(str, \"base64\");\n}\n\nInternalEncoderBase64.prototype.end = function() {\n return Buffer.from(this.prevStr, \"base64\");\n}\n\n\n//------------------------------------------------------------------------------\n// CESU-8 encoder is also special.\n\nfunction InternalEncoderCesu8(options, codec) {\n}\n\nInternalEncoderCesu8.prototype.write = function(str) {\n var buf = Buffer.alloc(str.length * 3), bufIdx = 0;\n for (var i = 0; i < str.length; i++) {\n var charCode = str.charCodeAt(i);\n // Naive implementation, but it works because CESU-8 is especially easy\n // to convert from UTF-16 (which all JS strings are encoded in).\n if (charCode < 0x80)\n buf[bufIdx++] = charCode;\n else if (charCode < 0x800) {\n buf[bufIdx++] = 0xC0 + (charCode >>> 6);\n buf[bufIdx++] = 0x80 + (charCode & 0x3f);\n }\n else { // charCode will always be < 0x10000 in javascript.\n buf[bufIdx++] = 0xE0 + (charCode >>> 12);\n buf[bufIdx++] = 0x80 + ((charCode >>> 6) & 0x3f);\n buf[bufIdx++] = 0x80 + (charCode & 0x3f);\n }\n }\n return buf.slice(0, bufIdx);\n}\n\nInternalEncoderCesu8.prototype.end = function() {\n}\n\n//------------------------------------------------------------------------------\n// CESU-8 decoder is not implemented in Node v4.0+\n\nfunction InternalDecoderCesu8(options, codec) {\n this.acc = 0;\n this.contBytes = 0;\n this.accBytes = 0;\n this.defaultCharUnicode = codec.defaultCharUnicode;\n}\n\nInternalDecoderCesu8.prototype.write = function(buf) {\n var acc = this.acc, contBytes = this.contBytes, accBytes = this.accBytes, \n res = '';\n for (var i = 0; i < buf.length; i++) {\n var curByte = buf[i];\n if ((curByte & 0xC0) !== 0x80) { // Leading byte\n if (contBytes > 0) { // Previous code is invalid\n res += this.defaultCharUnicode;\n contBytes = 0;\n }\n\n if (curByte < 0x80) { // Single-byte code\n res += String.fromCharCode(curByte);\n } else if (curByte < 0xE0) { // Two-byte code\n acc = curByte & 0x1F;\n contBytes = 1; accBytes = 1;\n } else if (curByte < 0xF0) { // Three-byte code\n acc = curByte & 0x0F;\n contBytes = 2; accBytes = 1;\n } else { // Four or more are not supported for CESU-8.\n res += this.defaultCharUnicode;\n }\n } else { // Continuation byte\n if (contBytes > 0) { // We're waiting for it.\n acc = (acc << 6) | (curByte & 0x3f);\n contBytes--; accBytes++;\n if (contBytes === 0) {\n // Check for overlong encoding, but support Modified UTF-8 (encoding NULL as C0 80)\n if (accBytes === 2 && acc < 0x80 && acc > 0)\n res += this.defaultCharUnicode;\n else if (accBytes === 3 && acc < 0x800)\n res += this.defaultCharUnicode;\n else\n // Actually add character.\n res += String.fromCharCode(acc);\n }\n } else { // Unexpected continuation byte\n res += this.defaultCharUnicode;\n }\n }\n }\n this.acc = acc; this.contBytes = contBytes; this.accBytes = accBytes;\n return res;\n}\n\nInternalDecoderCesu8.prototype.end = function() {\n var res = 0;\n if (this.contBytes > 0)\n res += this.defaultCharUnicode;\n return res;\n}\n","\"use strict\";\nvar Buffer = require(\"safer-buffer\").Buffer;\n\n// Single-byte codec. Needs a 'chars' string parameter that contains 256 or 128 chars that\n// correspond to encoded bytes (if 128 - then lower half is ASCII). \n\nexports._sbcs = SBCSCodec;\nfunction SBCSCodec(codecOptions, iconv) {\n if (!codecOptions)\n throw new Error(\"SBCS codec is called without the data.\")\n \n // Prepare char buffer for decoding.\n if (!codecOptions.chars || (codecOptions.chars.length !== 128 && codecOptions.chars.length !== 256))\n throw new Error(\"Encoding '\"+codecOptions.type+\"' has incorrect 'chars' (must be of len 128 or 256)\");\n \n if (codecOptions.chars.length === 128) {\n var asciiString = \"\";\n for (var i = 0; i < 128; i++)\n asciiString += String.fromCharCode(i);\n codecOptions.chars = asciiString + codecOptions.chars;\n }\n\n this.decodeBuf = Buffer.from(codecOptions.chars, 'ucs2');\n \n // Encoding buffer.\n var encodeBuf = Buffer.alloc(65536, iconv.defaultCharSingleByte.charCodeAt(0));\n\n for (var i = 0; i < codecOptions.chars.length; i++)\n encodeBuf[codecOptions.chars.charCodeAt(i)] = i;\n\n this.encodeBuf = encodeBuf;\n}\n\nSBCSCodec.prototype.encoder = SBCSEncoder;\nSBCSCodec.prototype.decoder = SBCSDecoder;\n\n\nfunction SBCSEncoder(options, codec) {\n this.encodeBuf = codec.encodeBuf;\n}\n\nSBCSEncoder.prototype.write = function(str) {\n var buf = Buffer.alloc(str.length);\n for (var i = 0; i < str.length; i++)\n buf[i] = this.encodeBuf[str.charCodeAt(i)];\n \n return buf;\n}\n\nSBCSEncoder.prototype.end = function() {\n}\n\n\nfunction SBCSDecoder(options, codec) {\n this.decodeBuf = codec.decodeBuf;\n}\n\nSBCSDecoder.prototype.write = function(buf) {\n // Strings are immutable in JS -> we use ucs2 buffer to speed up computations.\n var decodeBuf = this.decodeBuf;\n var newBuf = Buffer.alloc(buf.length*2);\n var idx1 = 0, idx2 = 0;\n for (var i = 0; i < buf.length; i++) {\n idx1 = buf[i]*2; idx2 = i*2;\n newBuf[idx2] = decodeBuf[idx1];\n newBuf[idx2+1] = decodeBuf[idx1+1];\n }\n return newBuf.toString('ucs2');\n}\n\nSBCSDecoder.prototype.end = function() {\n}\n","\"use strict\";\n\n// Generated data for sbcs codec. Don't edit manually. Regenerate using generation/gen-sbcs.js script.\nmodule.exports = {\n \"437\": \"cp437\",\n \"737\": \"cp737\",\n \"775\": \"cp775\",\n \"850\": \"cp850\",\n \"852\": \"cp852\",\n \"855\": \"cp855\",\n \"856\": \"cp856\",\n \"857\": \"cp857\",\n \"858\": \"cp858\",\n \"860\": \"cp860\",\n \"861\": \"cp861\",\n \"862\": \"cp862\",\n \"863\": \"cp863\",\n \"864\": \"cp864\",\n \"865\": \"cp865\",\n \"866\": \"cp866\",\n \"869\": \"cp869\",\n \"874\": \"windows874\",\n \"922\": \"cp922\",\n \"1046\": \"cp1046\",\n \"1124\": \"cp1124\",\n \"1125\": \"cp1125\",\n \"1129\": \"cp1129\",\n \"1133\": \"cp1133\",\n \"1161\": \"cp1161\",\n \"1162\": \"cp1162\",\n \"1163\": \"cp1163\",\n \"1250\": \"windows1250\",\n \"1251\": \"windows1251\",\n \"1252\": \"windows1252\",\n \"1253\": \"windows1253\",\n \"1254\": \"windows1254\",\n \"1255\": \"windows1255\",\n \"1256\": \"windows1256\",\n \"1257\": \"windows1257\",\n \"1258\": \"windows1258\",\n \"28591\": \"iso88591\",\n \"28592\": \"iso88592\",\n \"28593\": \"iso88593\",\n \"28594\": \"iso88594\",\n \"28595\": \"iso88595\",\n \"28596\": \"iso88596\",\n \"28597\": \"iso88597\",\n \"28598\": \"iso88598\",\n \"28599\": \"iso88599\",\n \"28600\": \"iso885910\",\n \"28601\": \"iso885911\",\n \"28603\": \"iso885913\",\n \"28604\": \"iso885914\",\n \"28605\": \"iso885915\",\n \"28606\": \"iso885916\",\n \"windows874\": {\n \"type\": \"_sbcs\",\n \"chars\": \"€����…�����������‘’“”•–—�������� กขฃคฅฆงจฉชซฌญฎฏฐฑฒณดตถทธนบปผฝพฟภมยรฤลฦวศษสหฬอฮฯะัาำิีึืฺุู����฿เแโใไๅๆ็่้๊๋์ํ๎๏๐๑๒๓๔๕๖๗๘๙๚๛����\"\n },\n \"win874\": \"windows874\",\n \"cp874\": \"windows874\",\n \"windows1250\": {\n \"type\": \"_sbcs\",\n \"chars\": \"€�‚�„…†‡�‰Š‹ŚŤŽŹ�‘’“”•–—�™š›śťžź ˇ˘Ł¤Ą¦§¨©Ş«¬­®Ż°±˛ł´µ¶·¸ąş»Ľ˝ľżŔÁÂĂÄĹĆÇČÉĘËĚÍÎĎĐŃŇÓÔŐÖ×ŘŮÚŰÜÝŢßŕáâăäĺćçčéęëěíîďđńňóôőö÷řůúűüýţ˙\"\n },\n \"win1250\": \"windows1250\",\n \"cp1250\": \"windows1250\",\n \"windows1251\": {\n \"type\": \"_sbcs\",\n \"chars\": \"ЂЃ‚ѓ„…†‡€‰Љ‹ЊЌЋЏђ‘’“”•–—�™љ›њќћџ ЎўЈ¤Ґ¦§Ё©Є«¬­®Ї°±Ііґµ¶·ё№є»јЅѕїАБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯабвгдежзийклмнопрстуфхцчшщъыьэюя\"\n },\n \"win1251\": \"windows1251\",\n \"cp1251\": \"windows1251\",\n \"windows1252\": {\n \"type\": \"_sbcs\",\n \"chars\": \"€�‚ƒ„…†‡ˆ‰Š‹Œ�Ž��‘’“”•–—˜™š›œ�žŸ ¡¢£¤¥¦§¨©ª«¬­®¯°±²³´µ¶·¸¹º»¼½¾¿ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖרÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõö÷øùúûüýþÿ\"\n },\n \"win1252\": \"windows1252\",\n \"cp1252\": \"windows1252\",\n \"windows1253\": {\n \"type\": \"_sbcs\",\n \"chars\": \"€�‚ƒ„…†‡�‰�‹�����‘’“”•–—�™�›���� ΅Ά£¤¥¦§¨©�«¬­®―°±²³΄µ¶·ΈΉΊ»Ό½ΎΏΐΑΒΓΔΕΖΗΘΙΚΛΜΝΞΟΠΡ�ΣΤΥΦΧΨΩΪΫάέήίΰαβγδεζηθικλμνξοπρςστυφχψωϊϋόύώ�\"\n },\n \"win1253\": \"windows1253\",\n \"cp1253\": \"windows1253\",\n \"windows1254\": {\n \"type\": \"_sbcs\",\n \"chars\": \"€�‚ƒ„…†‡ˆ‰Š‹Œ����‘’“”•–—˜™š›œ��Ÿ ¡¢£¤¥¦§¨©ª«¬­®¯°±²³´µ¶·¸¹º»¼½¾¿ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏĞÑÒÓÔÕÖרÙÚÛÜİŞßàáâãäåæçèéêëìíîïğñòóôõö÷øùúûüışÿ\"\n },\n \"win1254\": \"windows1254\",\n \"cp1254\": \"windows1254\",\n \"windows1255\": {\n \"type\": \"_sbcs\",\n \"chars\": \"€�‚ƒ„…†‡ˆ‰�‹�����‘’“”•–—˜™�›���� ¡¢£₪¥¦§¨©×«¬­®¯°±²³´µ¶·¸¹÷»¼½¾¿ְֱֲֳִֵֶַָֹֺֻּֽ־ֿ׀ׁׂ׃װױײ׳״�������אבגדהוזחטיךכלםמןנסעףפץצקרשת��‎‏�\"\n },\n \"win1255\": \"windows1255\",\n \"cp1255\": \"windows1255\",\n \"windows1256\": {\n \"type\": \"_sbcs\",\n \"chars\": \"€پ‚ƒ„…†‡ˆ‰ٹ‹Œچژڈگ‘’“”•–—ک™ڑ›œ‌‍ں ،¢£¤¥¦§¨©ھ«¬­®¯°±²³´µ¶·¸¹؛»¼½¾؟ہءآأؤإئابةتثجحخدذرزسشصض×طظعغـفقكàلâمنهوçèéêëىيîïًٌٍَôُِ÷ّùْûü‎‏ے\"\n },\n \"win1256\": \"windows1256\",\n \"cp1256\": \"windows1256\",\n \"windows1257\": {\n \"type\": \"_sbcs\",\n \"chars\": \"€�‚�„…†‡�‰�‹�¨ˇ¸�‘’“”•–—�™�›�¯˛� �¢£¤�¦§Ø©Ŗ«¬­®Æ°±²³´µ¶·ø¹ŗ»¼½¾æĄĮĀĆÄÅĘĒČÉŹĖĢĶĪĻŠŃŅÓŌÕÖ×ŲŁŚŪÜŻŽßąįāćäåęēčéźėģķīļšńņóōõö÷ųłśūüżž˙\"\n },\n \"win1257\": \"windows1257\",\n \"cp1257\": \"windows1257\",\n \"windows1258\": {\n \"type\": \"_sbcs\",\n \"chars\": \"€�‚ƒ„…†‡ˆ‰�‹Œ����‘’“”•–—˜™�›œ��Ÿ ¡¢£¤¥¦§¨©ª«¬­®¯°±²³´µ¶·¸¹º»¼½¾¿ÀÁÂĂÄÅÆÇÈÉÊË̀ÍÎÏĐÑ̉ÓÔƠÖרÙÚÛÜỮßàáâăäåæçèéêë́íîïđṇ̃óôơö÷øùúûüư₫ÿ\"\n },\n \"win1258\": \"windows1258\",\n \"cp1258\": \"windows1258\",\n \"iso88591\": {\n \"type\": \"_sbcs\",\n \"chars\": \"€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ ¡¢£¤¥¦§¨©ª«¬­®¯°±²³´µ¶·¸¹º»¼½¾¿ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖרÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõö÷øùúûüýþÿ\"\n },\n \"cp28591\": \"iso88591\",\n \"iso88592\": {\n \"type\": \"_sbcs\",\n \"chars\": \"€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ Ą˘Ł¤ĽŚ§¨ŠŞŤŹ­ŽŻ°ą˛ł´ľśˇ¸šşťź˝žżŔÁÂĂÄĹĆÇČÉĘËĚÍÎĎĐŃŇÓÔŐÖ×ŘŮÚŰÜÝŢßŕáâăäĺćçčéęëěíîďđńňóôőö÷řůúűüýţ˙\"\n },\n \"cp28592\": \"iso88592\",\n \"iso88593\": {\n \"type\": \"_sbcs\",\n \"chars\": \"€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ Ħ˘£¤�Ĥ§¨İŞĞĴ­�ݰħ²³´µĥ·¸ışğĵ½�żÀÁÂ�ÄĊĈÇÈÉÊËÌÍÎÏ�ÑÒÓÔĠÖ×ĜÙÚÛÜŬŜßàáâ�äċĉçèéêëìíîï�ñòóôġö÷ĝùúûüŭŝ˙\"\n },\n \"cp28593\": \"iso88593\",\n \"iso88594\": {\n \"type\": \"_sbcs\",\n \"chars\": \"€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ ĄĸŖ¤Ĩϧ¨ŠĒĢŦ­Ž¯°ą˛ŗ´ĩšēģŧŊžŋĀÁÂÃÄÅÆĮČÉĘËĖÍÎĪĐŅŌĶÔÕÖרŲÚÛÜŨŪßāáâãäåæįčéęëėíîīđņōķôõö÷øųúûüũū˙\"\n },\n \"cp28594\": \"iso88594\",\n \"iso88595\": {\n \"type\": \"_sbcs\",\n \"chars\": \"€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ ЁЂЃЄЅІЇЈЉЊЋЌ­ЎЏАБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯабвгдежзийклмнопрстуфхцчшщъыьэюя№ёђѓєѕіїјљњћќ§ўџ\"\n },\n \"cp28595\": \"iso88595\",\n \"iso88596\": {\n \"type\": \"_sbcs\",\n \"chars\": \"€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ ���¤�������،­�������������؛���؟�ءآأؤإئابةتثجحخدذرزسشصضطظعغ�����ـفقكلمنهوىيًٌٍَُِّْ�������������\"\n },\n \"cp28596\": \"iso88596\",\n \"iso88597\": {\n \"type\": \"_sbcs\",\n \"chars\": \"€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ ‘’£€₯¦§¨©ͺ«¬­�―°±²³΄΅Ά·ΈΉΊ»Ό½ΎΏΐΑΒΓΔΕΖΗΘΙΚΛΜΝΞΟΠΡ�ΣΤΥΦΧΨΩΪΫάέήίΰαβγδεζηθικλμνξοπρςστυφχψωϊϋόύώ�\"\n },\n \"cp28597\": \"iso88597\",\n \"iso88598\": {\n \"type\": \"_sbcs\",\n \"chars\": \"€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ �¢£¤¥¦§¨©×«¬­®¯°±²³´µ¶·¸¹÷»¼½¾��������������������������������‗אבגדהוזחטיךכלםמןנסעףפץצקרשת��‎‏�\"\n },\n \"cp28598\": \"iso88598\",\n \"iso88599\": {\n \"type\": \"_sbcs\",\n \"chars\": \"€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ ¡¢£¤¥¦§¨©ª«¬­®¯°±²³´µ¶·¸¹º»¼½¾¿ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏĞÑÒÓÔÕÖרÙÚÛÜİŞßàáâãäåæçèéêëìíîïğñòóôõö÷øùúûüışÿ\"\n },\n \"cp28599\": \"iso88599\",\n \"iso885910\": {\n \"type\": \"_sbcs\",\n \"chars\": \"€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ ĄĒĢĪĨͧĻĐŠŦŽ­ŪŊ°ąēģīĩķ·ļđšŧž―ūŋĀÁÂÃÄÅÆĮČÉĘËĖÍÎÏÐŅŌÓÔÕÖŨØŲÚÛÜÝÞßāáâãäåæįčéęëėíîïðņōóôõöũøųúûüýþĸ\"\n },\n \"cp28600\": \"iso885910\",\n \"iso885911\": {\n \"type\": \"_sbcs\",\n \"chars\": \"€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ กขฃคฅฆงจฉชซฌญฎฏฐฑฒณดตถทธนบปผฝพฟภมยรฤลฦวศษสหฬอฮฯะัาำิีึืฺุู����฿เแโใไๅๆ็่้๊๋์ํ๎๏๐๑๒๓๔๕๖๗๘๙๚๛����\"\n },\n \"cp28601\": \"iso885911\",\n \"iso885913\": {\n \"type\": \"_sbcs\",\n \"chars\": \"€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ ”¢£¤„¦§Ø©Ŗ«¬­®Æ°±²³“µ¶·ø¹ŗ»¼½¾æĄĮĀĆÄÅĘĒČÉŹĖĢĶĪĻŠŃŅÓŌÕÖ×ŲŁŚŪÜŻŽßąįāćäåęēčéźėģķīļšńņóōõö÷ųłśūüżž’\"\n },\n \"cp28603\": \"iso885913\",\n \"iso885914\": {\n \"type\": \"_sbcs\",\n \"chars\": \"€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ Ḃḃ£ĊċḊ§Ẁ©ẂḋỲ­®ŸḞḟĠġṀṁ¶ṖẁṗẃṠỳẄẅṡÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏŴÑÒÓÔÕÖṪØÙÚÛÜÝŶßàáâãäåæçèéêëìíîïŵñòóôõöṫøùúûüýŷÿ\"\n },\n \"cp28604\": \"iso885914\",\n \"iso885915\": {\n \"type\": \"_sbcs\",\n \"chars\": \"€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ ¡¢£€¥Š§š©ª«¬­®¯°±²³Žµ¶·ž¹º»ŒœŸ¿ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖרÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõö÷øùúûüýþÿ\"\n },\n \"cp28605\": \"iso885915\",\n \"iso885916\": {\n \"type\": \"_sbcs\",\n \"chars\": \"€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ ĄąŁ€„Чš©Ș«Ź­źŻ°±ČłŽ”¶·žčș»ŒœŸżÀÁÂĂÄĆÆÇÈÉÊËÌÍÎÏĐŃÒÓÔŐÖŚŰÙÚÛÜĘȚßàáâăäćæçèéêëìíîïđńòóôőöśűùúûüęțÿ\"\n },\n \"cp28606\": \"iso885916\",\n \"cp437\": {\n \"type\": \"_sbcs\",\n \"chars\": \"ÇüéâäàåçêëèïîìÄÅÉæÆôöòûùÿÖÜ¢£¥₧ƒáíóúñѪº¿⌐¬½¼¡«»░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀αßΓπΣσµτΦΘΩδ∞φε∩≡±≥≤⌠⌡÷≈°∙·√ⁿ²■ \"\n },\n \"ibm437\": \"cp437\",\n \"csibm437\": \"cp437\",\n \"cp737\": {\n \"type\": \"_sbcs\",\n \"chars\": \"ΑΒΓΔΕΖΗΘΙΚΛΜΝΞΟΠΡΣΤΥΦΧΨΩαβγδεζηθικλμνξοπρσςτυφχψ░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀ωάέήϊίόύϋώΆΈΉΊΌΎΏ±≥≤ΪΫ÷≈°∙·√ⁿ²■ \"\n },\n \"ibm737\": \"cp737\",\n \"csibm737\": \"cp737\",\n \"cp775\": {\n \"type\": \"_sbcs\",\n \"chars\": \"ĆüéāäģåćłēŖŗīŹÄÅÉæÆōöĢ¢ŚśÖÜø£Ø×¤ĀĪóŻżź”¦©®¬½¼Ł«»░▒▓│┤ĄČĘĖ╣║╗╝ĮŠ┐└┴┬├─┼ŲŪ╚╔╩╦╠═╬Žąčęėįšųūž┘┌█▄▌▐▀ÓßŌŃõÕµńĶķĻļņĒŅ’­±“¾¶§÷„°∙·¹³²■ \"\n },\n \"ibm775\": \"cp775\",\n \"csibm775\": \"cp775\",\n \"cp850\": {\n \"type\": \"_sbcs\",\n \"chars\": \"ÇüéâäàåçêëèïîìÄÅÉæÆôöòûùÿÖÜø£Ø×ƒáíóúñѪº¿®¬½¼¡«»░▒▓│┤ÁÂÀ©╣║╗╝¢¥┐└┴┬├─┼ãÃ╚╔╩╦╠═╬¤ðÐÊËÈıÍÎÏ┘┌█▄¦Ì▀ÓßÔÒõÕµþÞÚÛÙýݯ´­±‗¾¶§÷¸°¨·¹³²■ \"\n },\n \"ibm850\": \"cp850\",\n \"csibm850\": \"cp850\",\n \"cp852\": {\n \"type\": \"_sbcs\",\n \"chars\": \"ÇüéâäůćçłëŐőîŹÄĆÉĹĺôöĽľŚśÖÜŤťŁ×čáíóúĄąŽžĘ꬟Ⱥ«»░▒▓│┤ÁÂĚŞ╣║╗╝Żż┐└┴┬├─┼Ăă╚╔╩╦╠═╬¤đĐĎËďŇÍÎě┘┌█▄ŢŮ▀ÓßÔŃńňŠšŔÚŕŰýÝţ´­˝˛ˇ˘§÷¸°¨˙űŘř■ \"\n },\n \"ibm852\": \"cp852\",\n \"csibm852\": \"cp852\",\n \"cp855\": {\n \"type\": \"_sbcs\",\n \"chars\": \"ђЂѓЃёЁєЄѕЅіІїЇјЈљЉњЊћЋќЌўЎџЏюЮъЪаАбБцЦдДеЕфФгГ«»░▒▓│┤хХиИ╣║╗╝йЙ┐└┴┬├─┼кК╚╔╩╦╠═╬¤лЛмМнНоОп┘┌█▄Пя▀ЯрРсСтТуУжЖвВьЬ№­ыЫзЗшШэЭщЩчЧ§■ \"\n },\n \"ibm855\": \"cp855\",\n \"csibm855\": \"cp855\",\n \"cp856\": {\n \"type\": \"_sbcs\",\n \"chars\": \"אבגדהוזחטיךכלםמןנסעףפץצקרשת�£�×����������®¬½¼�«»░▒▓│┤���©╣║╗╝¢¥┐└┴┬├─┼��╚╔╩╦╠═╬¤���������┘┌█▄¦�▀������µ�������¯´­±‗¾¶§÷¸°¨·¹³²■ \"\n },\n \"ibm856\": \"cp856\",\n \"csibm856\": \"cp856\",\n \"cp857\": {\n \"type\": \"_sbcs\",\n \"chars\": \"ÇüéâäàåçêëèïîıÄÅÉæÆôöòûùİÖÜø£ØŞşáíóúñÑĞ𿮬½¼¡«»░▒▓│┤ÁÂÀ©╣║╗╝¢¥┐└┴┬├─┼ãÃ╚╔╩╦╠═╬¤ºªÊËÈ�ÍÎÏ┘┌█▄¦Ì▀ÓßÔÒõÕµ�×ÚÛÙìÿ¯´­±�¾¶§÷¸°¨·¹³²■ \"\n },\n \"ibm857\": \"cp857\",\n \"csibm857\": \"cp857\",\n \"cp858\": {\n \"type\": \"_sbcs\",\n \"chars\": \"ÇüéâäàåçêëèïîìÄÅÉæÆôöòûùÿÖÜø£Ø×ƒáíóúñѪº¿®¬½¼¡«»░▒▓│┤ÁÂÀ©╣║╗╝¢¥┐└┴┬├─┼ãÃ╚╔╩╦╠═╬¤ðÐÊËÈ€ÍÎÏ┘┌█▄¦Ì▀ÓßÔÒõÕµþÞÚÛÙýݯ´­±‗¾¶§÷¸°¨·¹³²■ \"\n },\n \"ibm858\": \"cp858\",\n \"csibm858\": \"cp858\",\n \"cp860\": {\n \"type\": \"_sbcs\",\n \"chars\": \"ÇüéâãàÁçêÊèÍÔìÃÂÉÀÈôõòÚùÌÕÜ¢£Ù₧ÓáíóúñѪº¿Ò¬½¼¡«»░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀αßΓπΣσµτΦΘΩδ∞φε∩≡±≥≤⌠⌡÷≈°∙·√ⁿ²■ \"\n },\n \"ibm860\": \"cp860\",\n \"csibm860\": \"cp860\",\n \"cp861\": {\n \"type\": \"_sbcs\",\n \"chars\": \"ÇüéâäàåçêëèÐðÞÄÅÉæÆôöþûÝýÖÜø£Ø₧ƒáíóúÁÍÓÚ¿⌐¬½¼¡«»░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀αßΓπΣσµτΦΘΩδ∞φε∩≡±≥≤⌠⌡÷≈°∙·√ⁿ²■ \"\n },\n \"ibm861\": \"cp861\",\n \"csibm861\": \"cp861\",\n \"cp862\": {\n \"type\": \"_sbcs\",\n \"chars\": \"אבגדהוזחטיךכלםמןנסעףפץצקרשת¢£¥₧ƒáíóúñѪº¿⌐¬½¼¡«»░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀αßΓπΣσµτΦΘΩδ∞φε∩≡±≥≤⌠⌡÷≈°∙·√ⁿ²■ \"\n },\n \"ibm862\": \"cp862\",\n \"csibm862\": \"cp862\",\n \"cp863\": {\n \"type\": \"_sbcs\",\n \"chars\": \"ÇüéâÂà¶çêëèïî‗À§ÉÈÊôËÏûù¤ÔÜ¢£ÙÛƒ¦´óú¨¸³¯Î⌐¬½¼¾«»░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀αßΓπΣσµτΦΘΩδ∞φε∩≡±≥≤⌠⌡÷≈°∙·√ⁿ²■ \"\n },\n \"ibm863\": \"cp863\",\n \"csibm863\": \"cp863\",\n \"cp864\": {\n \"type\": \"_sbcs\",\n \"chars\": \"\\u0000\\u0001\\u0002\\u0003\\u0004\\u0005\\u0006\\u0007\\b\\t\\n\\u000b\\f\\r\\u000e\\u000f\\u0010\\u0011\\u0012\\u0013\\u0014\\u0015\\u0016\\u0017\\u0018\\u0019\\u001a\\u001b\\u001c\\u001d\\u001e\\u001f !\\\"#$٪&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\\\]^_`abcdefghijklmnopqrstuvwxyz{|}~°·∙√▒─│┼┤┬├┴┐┌└┘β∞φ±½¼≈«»ﻷﻸ��ﻻﻼ� ­ﺂ£¤ﺄ��ﺎﺏﺕﺙ،ﺝﺡﺥ٠١٢٣٤٥٦٧٨٩ﻑ؛ﺱﺵﺹ؟¢ﺀﺁﺃﺅﻊﺋﺍﺑﺓﺗﺛﺟﺣﺧﺩﺫﺭﺯﺳﺷﺻﺿﻁﻅﻋﻏ¦¬÷×ﻉـﻓﻗﻛﻟﻣﻧﻫﻭﻯﻳﺽﻌﻎﻍﻡﹽّﻥﻩﻬﻰﻲﻐﻕﻵﻶﻝﻙﻱ■�\"\n },\n \"ibm864\": \"cp864\",\n \"csibm864\": \"cp864\",\n \"cp865\": {\n \"type\": \"_sbcs\",\n \"chars\": \"ÇüéâäàåçêëèïîìÄÅÉæÆôöòûùÿÖÜø£Ø₧ƒáíóúñѪº¿⌐¬½¼¡«¤░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀αßΓπΣσµτΦΘΩδ∞φε∩≡±≥≤⌠⌡÷≈°∙·√ⁿ²■ \"\n },\n \"ibm865\": \"cp865\",\n \"csibm865\": \"cp865\",\n \"cp866\": {\n \"type\": \"_sbcs\",\n \"chars\": \"АБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯабвгдежзийклмноп░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀рстуфхцчшщъыьэюяЁёЄєЇїЎў°∙·√№¤■ \"\n },\n \"ibm866\": \"cp866\",\n \"csibm866\": \"cp866\",\n \"cp869\": {\n \"type\": \"_sbcs\",\n \"chars\": \"������Ά�·¬¦‘’Έ―ΉΊΪΌ��ΎΫ©Ώ²³ά£έήίϊΐόύΑΒΓΔΕΖΗ½ΘΙ«»░▒▓│┤ΚΛΜΝ╣║╗╝ΞΟ┐└┴┬├─┼ΠΡ╚╔╩╦╠═╬ΣΤΥΦΧΨΩαβγ┘┌█▄δε▀ζηθικλμνξοπρσςτ΄­±υφχ§ψ΅°¨ωϋΰώ■ \"\n },\n \"ibm869\": \"cp869\",\n \"csibm869\": \"cp869\",\n \"cp922\": {\n \"type\": \"_sbcs\",\n \"chars\": \"€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ ¡¢£¤¥¦§¨©ª«¬­®‾°±²³´µ¶·¸¹º»¼½¾¿ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏŠÑÒÓÔÕÖרÙÚÛÜÝŽßàáâãäåæçèéêëìíîïšñòóôõö÷øùúûüýžÿ\"\n },\n \"ibm922\": \"cp922\",\n \"csibm922\": \"cp922\",\n \"cp1046\": {\n \"type\": \"_sbcs\",\n \"chars\": \"ﺈ×÷ﹱˆ■│─┐┌└┘ﹹﹻﹽﹿﹷﺊﻰﻳﻲﻎﻏﻐﻶﻸﻺﻼ ¤ﺋﺑﺗﺛﺟﺣ،­ﺧﺳ٠١٢٣٤٥٦٧٨٩ﺷ؛ﺻﺿﻊ؟ﻋءآأؤإئابةتثجحخدذرزسشصضطﻇعغﻌﺂﺄﺎﻓـفقكلمنهوىيًٌٍَُِّْﻗﻛﻟﻵﻷﻹﻻﻣﻧﻬﻩ�\"\n },\n \"ibm1046\": \"cp1046\",\n \"csibm1046\": \"cp1046\",\n \"cp1124\": {\n \"type\": \"_sbcs\",\n \"chars\": \"€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ ЁЂҐЄЅІЇЈЉЊЋЌ­ЎЏАБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯабвгдежзийклмнопрстуфхцчшщъыьэюя№ёђґєѕіїјљњћќ§ўџ\"\n },\n \"ibm1124\": \"cp1124\",\n \"csibm1124\": \"cp1124\",\n \"cp1125\": {\n \"type\": \"_sbcs\",\n \"chars\": \"АБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯабвгдежзийклмноп░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀рстуфхцчшщъыьэюяЁёҐґЄєІіЇї·√№¤■ \"\n },\n \"ibm1125\": \"cp1125\",\n \"csibm1125\": \"cp1125\",\n \"cp1129\": {\n \"type\": \"_sbcs\",\n \"chars\": \"€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ ¡¢£¤¥¦§œ©ª«¬­®¯°±²³Ÿµ¶·Œ¹º»¼½¾¿ÀÁÂĂÄÅÆÇÈÉÊË̀ÍÎÏĐÑ̉ÓÔƠÖרÙÚÛÜỮßàáâăäåæçèéêë́íîïđṇ̃óôơö÷øùúûüư₫ÿ\"\n },\n \"ibm1129\": \"cp1129\",\n \"csibm1129\": \"cp1129\",\n \"cp1133\": {\n \"type\": \"_sbcs\",\n \"chars\": \"€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ ກຂຄງຈສຊຍດຕຖທນບປຜຝພຟມຢຣລວຫອຮ���ຯະາຳິີຶືຸູຼັົຽ���ເແໂໃໄ່້໊໋໌ໍໆ�ໜໝ₭����������������໐໑໒໓໔໕໖໗໘໙��¢¬¦�\"\n },\n \"ibm1133\": \"cp1133\",\n \"csibm1133\": \"cp1133\",\n \"cp1161\": {\n \"type\": \"_sbcs\",\n \"chars\": \"��������������������������������่กขฃคฅฆงจฉชซฌญฎฏฐฑฒณดตถทธนบปผฝพฟภมยรฤลฦวศษสหฬอฮฯะัาำิีึืฺุู้๊๋€฿เแโใไๅๆ็่้๊๋์ํ๎๏๐๑๒๓๔๕๖๗๘๙๚๛¢¬¦ \"\n },\n \"ibm1161\": \"cp1161\",\n \"csibm1161\": \"cp1161\",\n \"cp1162\": {\n \"type\": \"_sbcs\",\n \"chars\": \"€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ กขฃคฅฆงจฉชซฌญฎฏฐฑฒณดตถทธนบปผฝพฟภมยรฤลฦวศษสหฬอฮฯะัาำิีึืฺุู����฿เแโใไๅๆ็่้๊๋์ํ๎๏๐๑๒๓๔๕๖๗๘๙๚๛����\"\n },\n \"ibm1162\": \"cp1162\",\n \"csibm1162\": \"cp1162\",\n \"cp1163\": {\n \"type\": \"_sbcs\",\n \"chars\": \"€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ ¡¢£€¥¦§œ©ª«¬­®¯°±²³Ÿµ¶·Œ¹º»¼½¾¿ÀÁÂĂÄÅÆÇÈÉÊË̀ÍÎÏĐÑ̉ÓÔƠÖרÙÚÛÜỮßàáâăäåæçèéêë́íîïđṇ̃óôơö÷øùúûüư₫ÿ\"\n },\n \"ibm1163\": \"cp1163\",\n \"csibm1163\": \"cp1163\",\n \"maccroatian\": {\n \"type\": \"_sbcs\",\n \"chars\": \"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®Š™´¨≠ŽØ∞±≤≥∆µ∂∑∏š∫ªºΩžø¿¡¬√ƒ≈ƫȅ ÀÃÕŒœĐ—“”‘’÷◊�©⁄¤‹›Æ»–·‚„‰ÂćÁčÈÍÎÏÌÓÔđÒÚÛÙıˆ˜¯πË˚¸Êæˇ\"\n },\n \"maccyrillic\": {\n \"type\": \"_sbcs\",\n \"chars\": \"АБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯ†°¢£§•¶І®©™Ђђ≠Ѓѓ∞±≤≥іµ∂ЈЄєЇїЉљЊњјЅ¬√ƒ≈∆«»… ЋћЌќѕ–—“”‘’÷„ЎўЏџ№Ёёяабвгдежзийклмнопрстуфхцчшщъыьэю¤\"\n },\n \"macgreek\": {\n \"type\": \"_sbcs\",\n \"chars\": \"Ĺ²É³ÖÜ΅àâä΄¨çéèê룙î‰ôö¦­ùûü†ΓΔΘΛΞΠß®©ΣΪ§≠°·Α±≤≥¥ΒΕΖΗΙΚΜΦΫΨΩάΝ¬ΟΡ≈Τ«»… ΥΧΆΈœ–―“”‘’÷ΉΊΌΎέήίόΏύαβψδεφγηιξκλμνοπώρστθωςχυζϊϋΐΰ�\"\n },\n \"maciceland\": {\n \"type\": \"_sbcs\",\n \"chars\": \"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûüݰ¢£§•¶ß®©™´¨≠ÆØ∞±≤≥¥µ∂∑∏π∫ªºΩæø¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸ⁄¤ÐðÞþý·‚„‰ÂÊÁËÈÍÎÏÌÓÔ�ÒÚÛÙıˆ˜¯˘˙˚¸˝˛ˇ\"\n },\n \"macroman\": {\n \"type\": \"_sbcs\",\n \"chars\": \"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ÆØ∞±≤≥¥µ∂∑∏π∫ªºΩæø¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸ⁄¤‹›fifl‡·‚„‰ÂÊÁËÈÍÎÏÌÓÔ�ÒÚÛÙıˆ˜¯˘˙˚¸˝˛ˇ\"\n },\n \"macromania\": {\n \"type\": \"_sbcs\",\n \"chars\": \"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ĂŞ∞±≤≥¥µ∂∑∏π∫ªºΩăş¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸ⁄¤‹›Ţţ‡·‚„‰ÂÊÁËÈÍÎÏÌÓÔ�ÒÚÛÙıˆ˜¯˘˙˚¸˝˛ˇ\"\n },\n \"macthai\": {\n \"type\": \"_sbcs\",\n \"chars\": \"«»…“”�•‘’� กขฃคฅฆงจฉชซฌญฎฏฐฑฒณดตถทธนบปผฝพฟภมยรฤลฦวศษสหฬอฮฯะัาำิีึืฺุู​–—฿เแโใไๅๆ็่้๊๋์ํ™๏๐๑๒๓๔๕๖๗๘๙®©����\"\n },\n \"macturkish\": {\n \"type\": \"_sbcs\",\n \"chars\": \"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ÆØ∞±≤≥¥µ∂∑∏π∫ªºΩæø¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸĞğİıŞş‡·‚„‰ÂÊÁËÈÍÎÏÌÓÔ�ÒÚÛÙ�ˆ˜¯˘˙˚¸˝˛ˇ\"\n },\n \"macukraine\": {\n \"type\": \"_sbcs\",\n \"chars\": \"АБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯ†°Ґ£§•¶І®©™Ђђ≠Ѓѓ∞±≤≥іµґЈЄєЇїЉљЊњјЅ¬√ƒ≈∆«»… ЋћЌќѕ–—“”‘’÷„ЎўЏџ№Ёёяабвгдежзийклмнопрстуфхцчшщъыьэю¤\"\n },\n \"koi8r\": {\n \"type\": \"_sbcs\",\n \"chars\": \"─│┌┐└┘├┤┬┴┼▀▄█▌▐░▒▓⌠■∙√≈≤≥ ⌡°²·÷═║╒ё╓╔╕╖╗╘╙╚╛╜╝╞╟╠╡Ё╢╣╤╥╦╧╨╩╪╫╬©юабцдефгхийклмнопярстужвьызшэщчъЮАБЦДЕФГХИЙКЛМНОПЯРСТУЖВЬЫЗШЭЩЧЪ\"\n },\n \"koi8u\": {\n \"type\": \"_sbcs\",\n \"chars\": \"─│┌┐└┘├┤┬┴┼▀▄█▌▐░▒▓⌠■∙√≈≤≥ ⌡°²·÷═║╒ёє╔ії╗╘╙╚╛ґ╝╞╟╠╡ЁЄ╣ІЇ╦╧╨╩╪Ґ╬©юабцдефгхийклмнопярстужвьызшэщчъЮАБЦДЕФГХИЙКЛМНОПЯРСТУЖВЬЫЗШЭЩЧЪ\"\n },\n \"koi8ru\": {\n \"type\": \"_sbcs\",\n \"chars\": \"─│┌┐└┘├┤┬┴┼▀▄█▌▐░▒▓⌠■∙√≈≤≥ ⌡°²·÷═║╒ёє╔ії╗╘╙╚╛ґў╞╟╠╡ЁЄ╣ІЇ╦╧╨╩╪ҐЎ©юабцдефгхийклмнопярстужвьызшэщчъЮАБЦДЕФГХИЙКЛМНОПЯРСТУЖВЬЫЗШЭЩЧЪ\"\n },\n \"koi8t\": {\n \"type\": \"_sbcs\",\n \"chars\": \"қғ‚Ғ„…†‡�‰ҳ‹ҲҷҶ�Қ‘’“”•–—�™�›�����ӯӮё¤ӣ¦§���«¬­®�°±²Ё�Ӣ¶·�№�»���©юабцдефгхийклмнопярстужвьызшэщчъЮАБЦДЕФГХИЙКЛМНОПЯРСТУЖВЬЫЗШЭЩЧЪ\"\n },\n \"armscii8\": {\n \"type\": \"_sbcs\",\n \"chars\": \"€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ �և։)(»«—.՝,-֊…՜՛՞ԱաԲբԳգԴդԵեԶզԷէԸըԹթԺժԻիԼլԽխԾծԿկՀհՁձՂղՃճՄմՅյՆնՇշՈոՉչՊպՋջՌռՍսՎվՏտՐրՑցՒւՓփՔքՕօՖֆ՚�\"\n },\n \"rk1048\": {\n \"type\": \"_sbcs\",\n \"chars\": \"ЂЃ‚ѓ„…†‡€‰Љ‹ЊҚҺЏђ‘’“”•–—�™љ›њқһџ ҰұӘ¤Ө¦§Ё©Ғ«¬­®Ү°±Ііөµ¶·ё№ғ»әҢңүАБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯабвгдежзийклмнопрстуфхцчшщъыьэюя\"\n },\n \"tcvn\": {\n \"type\": \"_sbcs\",\n \"chars\": \"\\u0000ÚỤ\\u0003ỪỬỮ\\u0007\\b\\t\\n\\u000b\\f\\r\\u000e\\u000f\\u0010ỨỰỲỶỸÝỴ\\u0018\\u0019\\u001a\\u001b\\u001c\\u001d\\u001e\\u001f !\\\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ÀẢÃÁẠẶẬÈẺẼÉẸỆÌỈĨÍỊÒỎÕÓỌỘỜỞỠỚỢÙỦŨ ĂÂÊÔƠƯĐăâêôơưđẶ̀̀̉̃́àảãáạẲằẳẵắẴẮẦẨẪẤỀặầẩẫấậèỂẻẽéẹềểễếệìỉỄẾỒĩíịòỔỏõóọồổỗốộờởỡớợùỖủũúụừửữứựỳỷỹýỵỐ\"\n },\n \"georgianacademy\": {\n \"type\": \"_sbcs\",\n \"chars\": \"€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ ¡¢£¤¥¦§¨©ª«¬­®¯°±²³´µ¶·¸¹º»¼½¾¿აბგდევზთიკლმნოპჟრსტუფქღყშჩცძწჭხჯჰჱჲჳჴჵჶçèéêëìíîïðñòóôõö÷øùúûüýþÿ\"\n },\n \"georgianps\": {\n \"type\": \"_sbcs\",\n \"chars\": \"€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ ¡¢£¤¥¦§¨©ª«¬­®¯°±²³´µ¶·¸¹º»¼½¾¿აბგდევზჱთიკლმნჲოპჟრსტჳუფქღყშჩცძწჭხჴჯჰჵæçèéêëìíîïðñòóôõö÷øùúûüýþÿ\"\n },\n \"pt154\": {\n \"type\": \"_sbcs\",\n \"chars\": \"ҖҒӮғ„…ҶҮҲүҠӢҢҚҺҸҗ‘’“”•–—ҳҷҡӣңқһҹ ЎўЈӨҘҰ§Ё©Ә«¬ӯ®Ҝ°ұІіҙө¶·ё№ә»јҪҫҝАБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯабвгдежзийклмнопрстуфхцчшщъыьэюя\"\n },\n \"viscii\": {\n \"type\": \"_sbcs\",\n \"chars\": \"\\u0000\\u0001Ẳ\\u0003\\u0004ẴẪ\\u0007\\b\\t\\n\\u000b\\f\\r\\u000e\\u000f\\u0010\\u0011\\u0012\\u0013Ỷ\\u0015\\u0016\\u0017\\u0018Ỹ\\u001a\\u001b\\u001c\\u001dỴ\\u001f !\\\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ẠẮẰẶẤẦẨẬẼẸẾỀỂỄỆỐỒỔỖỘỢỚỜỞỊỎỌỈỦŨỤỲÕắằặấầẩậẽẹếềểễệốồổỗỠƠộờởịỰỨỪỬơớƯÀÁÂÃẢĂẳẵÈÉÊẺÌÍĨỳĐứÒÓÔạỷừửÙÚỹỵÝỡưàáâãảăữẫèéêẻìíĩỉđựòóôõỏọụùúũủýợỮ\"\n },\n \"iso646cn\": {\n \"type\": \"_sbcs\",\n \"chars\": \"\\u0000\\u0001\\u0002\\u0003\\u0004\\u0005\\u0006\\u0007\\b\\t\\n\\u000b\\f\\r\\u000e\\u000f\\u0010\\u0011\\u0012\\u0013\\u0014\\u0015\\u0016\\u0017\\u0018\\u0019\\u001a\\u001b\\u001c\\u001d\\u001e\\u001f !\\\"#¥%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\\\]^_`abcdefghijklmnopqrstuvwxyz{|}‾��������������������������������������������������������������������������������������������������������������������������������\"\n },\n \"iso646jp\": {\n \"type\": \"_sbcs\",\n \"chars\": \"\\u0000\\u0001\\u0002\\u0003\\u0004\\u0005\\u0006\\u0007\\b\\t\\n\\u000b\\f\\r\\u000e\\u000f\\u0010\\u0011\\u0012\\u0013\\u0014\\u0015\\u0016\\u0017\\u0018\\u0019\\u001a\\u001b\\u001c\\u001d\\u001e\\u001f !\\\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[¥]^_`abcdefghijklmnopqrstuvwxyz{|}‾��������������������������������������������������������������������������������������������������������������������������������\"\n },\n \"hproman8\": {\n \"type\": \"_sbcs\",\n \"chars\": \"€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ ÀÂÈÊËÎÏ´ˋˆ¨˜ÙÛ₤¯Ýý°ÇçÑñ¡¿¤£¥§ƒ¢âêôûáéóúàèòùäëöüÅîØÆåíøæÄìÖÜÉïßÔÁÃãÐðÍÌÓÒÕõŠšÚŸÿÞþ·µ¶¾—¼½ªº«■»±�\"\n },\n \"macintosh\": {\n \"type\": \"_sbcs\",\n \"chars\": \"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ÆØ∞±≤≥¥µ∂∑∏π∫ªºΩæø¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸ⁄¤‹›fifl‡·‚„‰ÂÊÁËÈÍÎÏÌÓÔ�ÒÚÛÙıˆ˜¯˘˙˚¸˝˛ˇ\"\n },\n \"ascii\": {\n \"type\": \"_sbcs\",\n \"chars\": \"��������������������������������������������������������������������������������������������������������������������������������\"\n },\n \"tis620\": {\n \"type\": \"_sbcs\",\n \"chars\": \"���������������������������������กขฃคฅฆงจฉชซฌญฎฏฐฑฒณดตถทธนบปผฝพฟภมยรฤลฦวศษสหฬอฮฯะัาำิีึืฺุู����฿เแโใไๅๆ็่้๊๋์ํ๎๏๐๑๒๓๔๕๖๗๘๙๚๛����\"\n }\n}","\"use strict\";\n\n// Manually added data to be used by sbcs codec in addition to generated one.\n\nmodule.exports = {\n // Not supported by iconv, not sure why.\n \"10029\": \"maccenteuro\",\n \"maccenteuro\": {\n \"type\": \"_sbcs\",\n \"chars\": \"ÄĀāÉĄÖÜáąČäčĆć鏟ĎíďĒēĖóėôöõúĚěü†°Ę£§•¶ß®©™ę¨≠ģĮįĪ≤≥īĶ∂∑łĻļĽľĹĺŅņѬ√ńŇ∆«»… ňŐÕőŌ–—“”‘’÷◊ōŔŕŘ‹›řŖŗŠ‚„šŚśÁŤťÍŽžŪÓÔūŮÚůŰűŲųÝýķŻŁżĢˇ\"\n },\n\n \"808\": \"cp808\",\n \"ibm808\": \"cp808\",\n \"cp808\": {\n \"type\": \"_sbcs\",\n \"chars\": \"АБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯабвгдежзийклмноп░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀рстуфхцчшщъыьэюяЁёЄєЇїЎў°∙·√№€■ \"\n },\n\n \"mik\": {\n \"type\": \"_sbcs\",\n \"chars\": \"АБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯабвгдежзийклмнопрстуфхцчшщъыьэюя└┴┬├─┼╣║╚╔╩╦╠═╬┐░▒▓│┤№§╗╝┘┌█▄▌▐▀αßΓπΣσµτΦΘΩδ∞φε∩≡±≥≤⌠⌡÷≈°∙·√ⁿ²■ \"\n },\n\n \"cp720\": {\n \"type\": \"_sbcs\",\n \"chars\": \"\\x80\\x81éâ\\x84à\\x86çêëèïî\\x8d\\x8e\\x8f\\x90\\u0651\\u0652ô¤ـûùءآأؤ£إئابةتثجحخدذرزسشص«»░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀ضطظعغفµقكلمنهوىي≡\\u064b\\u064c\\u064d\\u064e\\u064f\\u0650≈°∙·√ⁿ²■\\u00a0\"\n },\n\n // Aliases of generated encodings.\n \"ascii8bit\": \"ascii\",\n \"usascii\": \"ascii\",\n \"ansix34\": \"ascii\",\n \"ansix341968\": \"ascii\",\n \"ansix341986\": \"ascii\",\n \"csascii\": \"ascii\",\n \"cp367\": \"ascii\",\n \"ibm367\": \"ascii\",\n \"isoir6\": \"ascii\",\n \"iso646us\": \"ascii\",\n \"iso646irv\": \"ascii\",\n \"us\": \"ascii\",\n\n \"latin1\": \"iso88591\",\n \"latin2\": \"iso88592\",\n \"latin3\": \"iso88593\",\n \"latin4\": \"iso88594\",\n \"latin5\": \"iso88599\",\n \"latin6\": \"iso885910\",\n \"latin7\": \"iso885913\",\n \"latin8\": \"iso885914\",\n \"latin9\": \"iso885915\",\n \"latin10\": \"iso885916\",\n\n \"csisolatin1\": \"iso88591\",\n \"csisolatin2\": \"iso88592\",\n \"csisolatin3\": \"iso88593\",\n \"csisolatin4\": \"iso88594\",\n \"csisolatincyrillic\": \"iso88595\",\n \"csisolatinarabic\": \"iso88596\",\n \"csisolatingreek\" : \"iso88597\",\n \"csisolatinhebrew\": \"iso88598\",\n \"csisolatin5\": \"iso88599\",\n \"csisolatin6\": \"iso885910\",\n\n \"l1\": \"iso88591\",\n \"l2\": \"iso88592\",\n \"l3\": \"iso88593\",\n \"l4\": \"iso88594\",\n \"l5\": \"iso88599\",\n \"l6\": \"iso885910\",\n \"l7\": \"iso885913\",\n \"l8\": \"iso885914\",\n \"l9\": \"iso885915\",\n \"l10\": \"iso885916\",\n\n \"isoir14\": \"iso646jp\",\n \"isoir57\": \"iso646cn\",\n \"isoir100\": \"iso88591\",\n \"isoir101\": \"iso88592\",\n \"isoir109\": \"iso88593\",\n \"isoir110\": \"iso88594\",\n \"isoir144\": \"iso88595\",\n \"isoir127\": \"iso88596\",\n \"isoir126\": \"iso88597\",\n \"isoir138\": \"iso88598\",\n \"isoir148\": \"iso88599\",\n \"isoir157\": \"iso885910\",\n \"isoir166\": \"tis620\",\n \"isoir179\": \"iso885913\",\n \"isoir199\": \"iso885914\",\n \"isoir203\": \"iso885915\",\n \"isoir226\": \"iso885916\",\n\n \"cp819\": \"iso88591\",\n \"ibm819\": \"iso88591\",\n\n \"cyrillic\": \"iso88595\",\n\n \"arabic\": \"iso88596\",\n \"arabic8\": \"iso88596\",\n \"ecma114\": \"iso88596\",\n \"asmo708\": \"iso88596\",\n\n \"greek\" : \"iso88597\",\n \"greek8\" : \"iso88597\",\n \"ecma118\" : \"iso88597\",\n \"elot928\" : \"iso88597\",\n\n \"hebrew\": \"iso88598\",\n \"hebrew8\": \"iso88598\",\n\n \"turkish\": \"iso88599\",\n \"turkish8\": \"iso88599\",\n\n \"thai\": \"iso885911\",\n \"thai8\": \"iso885911\",\n\n \"celtic\": \"iso885914\",\n \"celtic8\": \"iso885914\",\n \"isoceltic\": \"iso885914\",\n\n \"tis6200\": \"tis620\",\n \"tis62025291\": \"tis620\",\n \"tis62025330\": \"tis620\",\n\n \"10000\": \"macroman\",\n \"10006\": \"macgreek\",\n \"10007\": \"maccyrillic\",\n \"10079\": \"maciceland\",\n \"10081\": \"macturkish\",\n\n \"cspc8codepage437\": \"cp437\",\n \"cspc775baltic\": \"cp775\",\n \"cspc850multilingual\": \"cp850\",\n \"cspcp852\": \"cp852\",\n \"cspc862latinhebrew\": \"cp862\",\n \"cpgr\": \"cp869\",\n\n \"msee\": \"cp1250\",\n \"mscyrl\": \"cp1251\",\n \"msansi\": \"cp1252\",\n \"msgreek\": \"cp1253\",\n \"msturk\": \"cp1254\",\n \"mshebr\": \"cp1255\",\n \"msarab\": \"cp1256\",\n \"winbaltrim\": \"cp1257\",\n\n \"cp20866\": \"koi8r\",\n \"20866\": \"koi8r\",\n \"ibm878\": \"koi8r\",\n \"cskoi8r\": \"koi8r\",\n\n \"cp21866\": \"koi8u\",\n \"21866\": \"koi8u\",\n \"ibm1168\": \"koi8u\",\n\n \"strk10482002\": \"rk1048\",\n\n \"tcvn5712\": \"tcvn\",\n \"tcvn57121\": \"tcvn\",\n\n \"gb198880\": \"iso646cn\",\n \"cn\": \"iso646cn\",\n\n \"csiso14jisc6220ro\": \"iso646jp\",\n \"jisc62201969ro\": \"iso646jp\",\n \"jp\": \"iso646jp\",\n\n \"cshproman8\": \"hproman8\",\n \"r8\": \"hproman8\",\n \"roman8\": \"hproman8\",\n \"xroman8\": \"hproman8\",\n \"ibm1051\": \"hproman8\",\n\n \"mac\": \"macintosh\",\n \"csmacintosh\": \"macintosh\",\n};\n\n","\"use strict\";\nvar Buffer = require(\"safer-buffer\").Buffer;\n\n// Note: UTF16-LE (or UCS2) codec is Node.js native. See encodings/internal.js\n\n// == UTF16-BE codec. ==========================================================\n\nexports.utf16be = Utf16BECodec;\nfunction Utf16BECodec() {\n}\n\nUtf16BECodec.prototype.encoder = Utf16BEEncoder;\nUtf16BECodec.prototype.decoder = Utf16BEDecoder;\nUtf16BECodec.prototype.bomAware = true;\n\n\n// -- Encoding\n\nfunction Utf16BEEncoder() {\n}\n\nUtf16BEEncoder.prototype.write = function(str) {\n var buf = Buffer.from(str, 'ucs2');\n for (var i = 0; i < buf.length; i += 2) {\n var tmp = buf[i]; buf[i] = buf[i+1]; buf[i+1] = tmp;\n }\n return buf;\n}\n\nUtf16BEEncoder.prototype.end = function() {\n}\n\n\n// -- Decoding\n\nfunction Utf16BEDecoder() {\n this.overflowByte = -1;\n}\n\nUtf16BEDecoder.prototype.write = function(buf) {\n if (buf.length == 0)\n return '';\n\n var buf2 = Buffer.alloc(buf.length + 1),\n i = 0, j = 0;\n\n if (this.overflowByte !== -1) {\n buf2[0] = buf[0];\n buf2[1] = this.overflowByte;\n i = 1; j = 2;\n }\n\n for (; i < buf.length-1; i += 2, j+= 2) {\n buf2[j] = buf[i+1];\n buf2[j+1] = buf[i];\n }\n\n this.overflowByte = (i == buf.length-1) ? buf[buf.length-1] : -1;\n\n return buf2.slice(0, j).toString('ucs2');\n}\n\nUtf16BEDecoder.prototype.end = function() {\n this.overflowByte = -1;\n}\n\n\n// == UTF-16 codec =============================================================\n// Decoder chooses automatically from UTF-16LE and UTF-16BE using BOM and space-based heuristic.\n// Defaults to UTF-16LE, as it's prevalent and default in Node.\n// http://en.wikipedia.org/wiki/UTF-16 and http://encoding.spec.whatwg.org/#utf-16le\n// Decoder default can be changed: iconv.decode(buf, 'utf16', {defaultEncoding: 'utf-16be'});\n\n// Encoder uses UTF-16LE and prepends BOM (which can be overridden with addBOM: false).\n\nexports.utf16 = Utf16Codec;\nfunction Utf16Codec(codecOptions, iconv) {\n this.iconv = iconv;\n}\n\nUtf16Codec.prototype.encoder = Utf16Encoder;\nUtf16Codec.prototype.decoder = Utf16Decoder;\n\n\n// -- Encoding (pass-through)\n\nfunction Utf16Encoder(options, codec) {\n options = options || {};\n if (options.addBOM === undefined)\n options.addBOM = true;\n this.encoder = codec.iconv.getEncoder('utf-16le', options);\n}\n\nUtf16Encoder.prototype.write = function(str) {\n return this.encoder.write(str);\n}\n\nUtf16Encoder.prototype.end = function() {\n return this.encoder.end();\n}\n\n\n// -- Decoding\n\nfunction Utf16Decoder(options, codec) {\n this.decoder = null;\n this.initialBufs = [];\n this.initialBufsLen = 0;\n\n this.options = options || {};\n this.iconv = codec.iconv;\n}\n\nUtf16Decoder.prototype.write = function(buf) {\n if (!this.decoder) {\n // Codec is not chosen yet. Accumulate initial bytes.\n this.initialBufs.push(buf);\n this.initialBufsLen += buf.length;\n \n if (this.initialBufsLen < 16) // We need more bytes to use space heuristic (see below)\n return '';\n\n // We have enough bytes -> detect endianness.\n var encoding = detectEncoding(this.initialBufs, this.options.defaultEncoding);\n this.decoder = this.iconv.getDecoder(encoding, this.options);\n\n var resStr = '';\n for (var i = 0; i < this.initialBufs.length; i++)\n resStr += this.decoder.write(this.initialBufs[i]);\n\n this.initialBufs.length = this.initialBufsLen = 0;\n return resStr;\n }\n\n return this.decoder.write(buf);\n}\n\nUtf16Decoder.prototype.end = function() {\n if (!this.decoder) {\n var encoding = detectEncoding(this.initialBufs, this.options.defaultEncoding);\n this.decoder = this.iconv.getDecoder(encoding, this.options);\n\n var resStr = '';\n for (var i = 0; i < this.initialBufs.length; i++)\n resStr += this.decoder.write(this.initialBufs[i]);\n\n var trail = this.decoder.end();\n if (trail)\n resStr += trail;\n\n this.initialBufs.length = this.initialBufsLen = 0;\n return resStr;\n }\n return this.decoder.end();\n}\n\nfunction detectEncoding(bufs, defaultEncoding) {\n var b = [];\n var charsProcessed = 0;\n var asciiCharsLE = 0, asciiCharsBE = 0; // Number of ASCII chars when decoded as LE or BE.\n\n outer_loop:\n for (var i = 0; i < bufs.length; i++) {\n var buf = bufs[i];\n for (var j = 0; j < buf.length; j++) {\n b.push(buf[j]);\n if (b.length === 2) {\n if (charsProcessed === 0) {\n // Check BOM first.\n if (b[0] === 0xFF && b[1] === 0xFE) return 'utf-16le';\n if (b[0] === 0xFE && b[1] === 0xFF) return 'utf-16be';\n }\n\n if (b[0] === 0 && b[1] !== 0) asciiCharsBE++;\n if (b[0] !== 0 && b[1] === 0) asciiCharsLE++;\n\n b.length = 0;\n charsProcessed++;\n\n if (charsProcessed >= 100) {\n break outer_loop;\n }\n }\n }\n }\n\n // Make decisions.\n // Most of the time, the content has ASCII chars (U+00**), but the opposite (U+**00) is uncommon.\n // So, we count ASCII as if it was LE or BE, and decide from that.\n if (asciiCharsBE > asciiCharsLE) return 'utf-16be';\n if (asciiCharsBE < asciiCharsLE) return 'utf-16le';\n\n // Couldn't decide (likely all zeros or not enough data).\n return defaultEncoding || 'utf-16le';\n}\n\n\n","'use strict';\n\nvar Buffer = require('safer-buffer').Buffer;\n\n// == UTF32-LE/BE codec. ==========================================================\n\nexports._utf32 = Utf32Codec;\n\nfunction Utf32Codec(codecOptions, iconv) {\n this.iconv = iconv;\n this.bomAware = true;\n this.isLE = codecOptions.isLE;\n}\n\nexports.utf32le = { type: '_utf32', isLE: true };\nexports.utf32be = { type: '_utf32', isLE: false };\n\n// Aliases\nexports.ucs4le = 'utf32le';\nexports.ucs4be = 'utf32be';\n\nUtf32Codec.prototype.encoder = Utf32Encoder;\nUtf32Codec.prototype.decoder = Utf32Decoder;\n\n// -- Encoding\n\nfunction Utf32Encoder(options, codec) {\n this.isLE = codec.isLE;\n this.highSurrogate = 0;\n}\n\nUtf32Encoder.prototype.write = function(str) {\n var src = Buffer.from(str, 'ucs2');\n var dst = Buffer.alloc(src.length * 2);\n var write32 = this.isLE ? dst.writeUInt32LE : dst.writeUInt32BE;\n var offset = 0;\n\n for (var i = 0; i < src.length; i += 2) {\n var code = src.readUInt16LE(i);\n var isHighSurrogate = (0xD800 <= code && code < 0xDC00);\n var isLowSurrogate = (0xDC00 <= code && code < 0xE000);\n\n if (this.highSurrogate) {\n if (isHighSurrogate || !isLowSurrogate) {\n // There shouldn't be two high surrogates in a row, nor a high surrogate which isn't followed by a low\n // surrogate. If this happens, keep the pending high surrogate as a stand-alone semi-invalid character\n // (technically wrong, but expected by some applications, like Windows file names).\n write32.call(dst, this.highSurrogate, offset);\n offset += 4;\n }\n else {\n // Create 32-bit value from high and low surrogates;\n var codepoint = (((this.highSurrogate - 0xD800) << 10) | (code - 0xDC00)) + 0x10000;\n\n write32.call(dst, codepoint, offset);\n offset += 4;\n this.highSurrogate = 0;\n\n continue;\n }\n }\n\n if (isHighSurrogate)\n this.highSurrogate = code;\n else {\n // Even if the current character is a low surrogate, with no previous high surrogate, we'll\n // encode it as a semi-invalid stand-alone character for the same reasons expressed above for\n // unpaired high surrogates.\n write32.call(dst, code, offset);\n offset += 4;\n this.highSurrogate = 0;\n }\n }\n\n if (offset < dst.length)\n dst = dst.slice(0, offset);\n\n return dst;\n};\n\nUtf32Encoder.prototype.end = function() {\n // Treat any leftover high surrogate as a semi-valid independent character.\n if (!this.highSurrogate)\n return;\n\n var buf = Buffer.alloc(4);\n\n if (this.isLE)\n buf.writeUInt32LE(this.highSurrogate, 0);\n else\n buf.writeUInt32BE(this.highSurrogate, 0);\n\n this.highSurrogate = 0;\n\n return buf;\n};\n\n// -- Decoding\n\nfunction Utf32Decoder(options, codec) {\n this.isLE = codec.isLE;\n this.badChar = codec.iconv.defaultCharUnicode.charCodeAt(0);\n this.overflow = [];\n}\n\nUtf32Decoder.prototype.write = function(src) {\n if (src.length === 0)\n return '';\n\n var i = 0;\n var codepoint = 0;\n var dst = Buffer.alloc(src.length + 4);\n var offset = 0;\n var isLE = this.isLE;\n var overflow = this.overflow;\n var badChar = this.badChar;\n\n if (overflow.length > 0) {\n for (; i < src.length && overflow.length < 4; i++)\n overflow.push(src[i]);\n \n if (overflow.length === 4) {\n // NOTE: codepoint is a signed int32 and can be negative.\n // NOTE: We copied this block from below to help V8 optimize it (it works with array, not buffer).\n if (isLE) {\n codepoint = overflow[i] | (overflow[i+1] << 8) | (overflow[i+2] << 16) | (overflow[i+3] << 24);\n } else {\n codepoint = overflow[i+3] | (overflow[i+2] << 8) | (overflow[i+1] << 16) | (overflow[i] << 24);\n }\n overflow.length = 0;\n\n offset = _writeCodepoint(dst, offset, codepoint, badChar);\n }\n }\n\n // Main loop. Should be as optimized as possible.\n for (; i < src.length - 3; i += 4) {\n // NOTE: codepoint is a signed int32 and can be negative.\n if (isLE) {\n codepoint = src[i] | (src[i+1] << 8) | (src[i+2] << 16) | (src[i+3] << 24);\n } else {\n codepoint = src[i+3] | (src[i+2] << 8) | (src[i+1] << 16) | (src[i] << 24);\n }\n offset = _writeCodepoint(dst, offset, codepoint, badChar);\n }\n\n // Keep overflowing bytes.\n for (; i < src.length; i++) {\n overflow.push(src[i]);\n }\n\n return dst.slice(0, offset).toString('ucs2');\n};\n\nfunction _writeCodepoint(dst, offset, codepoint, badChar) {\n // NOTE: codepoint is signed int32 and can be negative. We keep it that way to help V8 with optimizations.\n if (codepoint < 0 || codepoint > 0x10FFFF) {\n // Not a valid Unicode codepoint\n codepoint = badChar;\n } \n\n // Ephemeral Planes: Write high surrogate.\n if (codepoint >= 0x10000) {\n codepoint -= 0x10000;\n\n var high = 0xD800 | (codepoint >> 10);\n dst[offset++] = high & 0xff;\n dst[offset++] = high >> 8;\n\n // Low surrogate is written below.\n var codepoint = 0xDC00 | (codepoint & 0x3FF);\n }\n\n // Write BMP char or low surrogate.\n dst[offset++] = codepoint & 0xff;\n dst[offset++] = codepoint >> 8;\n\n return offset;\n};\n\nUtf32Decoder.prototype.end = function() {\n this.overflow.length = 0;\n};\n\n// == UTF-32 Auto codec =============================================================\n// Decoder chooses automatically from UTF-32LE and UTF-32BE using BOM and space-based heuristic.\n// Defaults to UTF-32LE. http://en.wikipedia.org/wiki/UTF-32\n// Encoder/decoder default can be changed: iconv.decode(buf, 'utf32', {defaultEncoding: 'utf-32be'});\n\n// Encoder prepends BOM (which can be overridden with (addBOM: false}).\n\nexports.utf32 = Utf32AutoCodec;\nexports.ucs4 = 'utf32';\n\nfunction Utf32AutoCodec(options, iconv) {\n this.iconv = iconv;\n}\n\nUtf32AutoCodec.prototype.encoder = Utf32AutoEncoder;\nUtf32AutoCodec.prototype.decoder = Utf32AutoDecoder;\n\n// -- Encoding\n\nfunction Utf32AutoEncoder(options, codec) {\n options = options || {};\n\n if (options.addBOM === undefined)\n options.addBOM = true;\n\n this.encoder = codec.iconv.getEncoder(options.defaultEncoding || 'utf-32le', options);\n}\n\nUtf32AutoEncoder.prototype.write = function(str) {\n return this.encoder.write(str);\n};\n\nUtf32AutoEncoder.prototype.end = function() {\n return this.encoder.end();\n};\n\n// -- Decoding\n\nfunction Utf32AutoDecoder(options, codec) {\n this.decoder = null;\n this.initialBufs = [];\n this.initialBufsLen = 0;\n this.options = options || {};\n this.iconv = codec.iconv;\n}\n\nUtf32AutoDecoder.prototype.write = function(buf) {\n if (!this.decoder) { \n // Codec is not chosen yet. Accumulate initial bytes.\n this.initialBufs.push(buf);\n this.initialBufsLen += buf.length;\n\n if (this.initialBufsLen < 32) // We need more bytes to use space heuristic (see below)\n return '';\n\n // We have enough bytes -> detect endianness.\n var encoding = detectEncoding(this.initialBufs, this.options.defaultEncoding);\n this.decoder = this.iconv.getDecoder(encoding, this.options);\n\n var resStr = '';\n for (var i = 0; i < this.initialBufs.length; i++)\n resStr += this.decoder.write(this.initialBufs[i]);\n\n this.initialBufs.length = this.initialBufsLen = 0;\n return resStr;\n }\n\n return this.decoder.write(buf);\n};\n\nUtf32AutoDecoder.prototype.end = function() {\n if (!this.decoder) {\n var encoding = detectEncoding(this.initialBufs, this.options.defaultEncoding);\n this.decoder = this.iconv.getDecoder(encoding, this.options);\n\n var resStr = '';\n for (var i = 0; i < this.initialBufs.length; i++)\n resStr += this.decoder.write(this.initialBufs[i]);\n\n var trail = this.decoder.end();\n if (trail)\n resStr += trail;\n\n this.initialBufs.length = this.initialBufsLen = 0;\n return resStr;\n }\n\n return this.decoder.end();\n};\n\nfunction detectEncoding(bufs, defaultEncoding) {\n var b = [];\n var charsProcessed = 0;\n var invalidLE = 0, invalidBE = 0; // Number of invalid chars when decoded as LE or BE.\n var bmpCharsLE = 0, bmpCharsBE = 0; // Number of BMP chars when decoded as LE or BE.\n\n outer_loop:\n for (var i = 0; i < bufs.length; i++) {\n var buf = bufs[i];\n for (var j = 0; j < buf.length; j++) {\n b.push(buf[j]);\n if (b.length === 4) {\n if (charsProcessed === 0) {\n // Check BOM first.\n if (b[0] === 0xFF && b[1] === 0xFE && b[2] === 0 && b[3] === 0) {\n return 'utf-32le';\n }\n if (b[0] === 0 && b[1] === 0 && b[2] === 0xFE && b[3] === 0xFF) {\n return 'utf-32be';\n }\n }\n\n if (b[0] !== 0 || b[1] > 0x10) invalidBE++;\n if (b[3] !== 0 || b[2] > 0x10) invalidLE++;\n\n if (b[0] === 0 && b[1] === 0 && (b[2] !== 0 || b[3] !== 0)) bmpCharsBE++;\n if ((b[0] !== 0 || b[1] !== 0) && b[2] === 0 && b[3] === 0) bmpCharsLE++;\n\n b.length = 0;\n charsProcessed++;\n\n if (charsProcessed >= 100) {\n break outer_loop;\n }\n }\n }\n }\n\n // Make decisions.\n if (bmpCharsBE - invalidBE > bmpCharsLE - invalidLE) return 'utf-32be';\n if (bmpCharsBE - invalidBE < bmpCharsLE - invalidLE) return 'utf-32le';\n\n // Couldn't decide (likely all zeros or not enough data).\n return defaultEncoding || 'utf-32le';\n}\n","\"use strict\";\nvar Buffer = require(\"safer-buffer\").Buffer;\n\n// UTF-7 codec, according to https://tools.ietf.org/html/rfc2152\n// See also below a UTF-7-IMAP codec, according to http://tools.ietf.org/html/rfc3501#section-5.1.3\n\nexports.utf7 = Utf7Codec;\nexports.unicode11utf7 = 'utf7'; // Alias UNICODE-1-1-UTF-7\nfunction Utf7Codec(codecOptions, iconv) {\n this.iconv = iconv;\n};\n\nUtf7Codec.prototype.encoder = Utf7Encoder;\nUtf7Codec.prototype.decoder = Utf7Decoder;\nUtf7Codec.prototype.bomAware = true;\n\n\n// -- Encoding\n\nvar nonDirectChars = /[^A-Za-z0-9'\\(\\),-\\.\\/:\\? \\n\\r\\t]+/g;\n\nfunction Utf7Encoder(options, codec) {\n this.iconv = codec.iconv;\n}\n\nUtf7Encoder.prototype.write = function(str) {\n // Naive implementation.\n // Non-direct chars are encoded as \"+-\"; single \"+\" char is encoded as \"+-\".\n return Buffer.from(str.replace(nonDirectChars, function(chunk) {\n return \"+\" + (chunk === '+' ? '' : \n this.iconv.encode(chunk, 'utf16-be').toString('base64').replace(/=+$/, '')) \n + \"-\";\n }.bind(this)));\n}\n\nUtf7Encoder.prototype.end = function() {\n}\n\n\n// -- Decoding\n\nfunction Utf7Decoder(options, codec) {\n this.iconv = codec.iconv;\n this.inBase64 = false;\n this.base64Accum = '';\n}\n\nvar base64Regex = /[A-Za-z0-9\\/+]/;\nvar base64Chars = [];\nfor (var i = 0; i < 256; i++)\n base64Chars[i] = base64Regex.test(String.fromCharCode(i));\n\nvar plusChar = '+'.charCodeAt(0), \n minusChar = '-'.charCodeAt(0),\n andChar = '&'.charCodeAt(0);\n\nUtf7Decoder.prototype.write = function(buf) {\n var res = \"\", lastI = 0,\n inBase64 = this.inBase64,\n base64Accum = this.base64Accum;\n\n // The decoder is more involved as we must handle chunks in stream.\n\n for (var i = 0; i < buf.length; i++) {\n if (!inBase64) { // We're in direct mode.\n // Write direct chars until '+'\n if (buf[i] == plusChar) {\n res += this.iconv.decode(buf.slice(lastI, i), \"ascii\"); // Write direct chars.\n lastI = i+1;\n inBase64 = true;\n }\n } else { // We decode base64.\n if (!base64Chars[buf[i]]) { // Base64 ended.\n if (i == lastI && buf[i] == minusChar) {// \"+-\" -> \"+\"\n res += \"+\";\n } else {\n var b64str = base64Accum + this.iconv.decode(buf.slice(lastI, i), \"ascii\");\n res += this.iconv.decode(Buffer.from(b64str, 'base64'), \"utf16-be\");\n }\n\n if (buf[i] != minusChar) // Minus is absorbed after base64.\n i--;\n\n lastI = i+1;\n inBase64 = false;\n base64Accum = '';\n }\n }\n }\n\n if (!inBase64) {\n res += this.iconv.decode(buf.slice(lastI), \"ascii\"); // Write direct chars.\n } else {\n var b64str = base64Accum + this.iconv.decode(buf.slice(lastI), \"ascii\");\n\n var canBeDecoded = b64str.length - (b64str.length % 8); // Minimal chunk: 2 quads -> 2x3 bytes -> 3 chars.\n base64Accum = b64str.slice(canBeDecoded); // The rest will be decoded in future.\n b64str = b64str.slice(0, canBeDecoded);\n\n res += this.iconv.decode(Buffer.from(b64str, 'base64'), \"utf16-be\");\n }\n\n this.inBase64 = inBase64;\n this.base64Accum = base64Accum;\n\n return res;\n}\n\nUtf7Decoder.prototype.end = function() {\n var res = \"\";\n if (this.inBase64 && this.base64Accum.length > 0)\n res = this.iconv.decode(Buffer.from(this.base64Accum, 'base64'), \"utf16-be\");\n\n this.inBase64 = false;\n this.base64Accum = '';\n return res;\n}\n\n\n// UTF-7-IMAP codec.\n// RFC3501 Sec. 5.1.3 Modified UTF-7 (http://tools.ietf.org/html/rfc3501#section-5.1.3)\n// Differences:\n// * Base64 part is started by \"&\" instead of \"+\"\n// * Direct characters are 0x20-0x7E, except \"&\" (0x26)\n// * In Base64, \",\" is used instead of \"/\"\n// * Base64 must not be used to represent direct characters.\n// * No implicit shift back from Base64 (should always end with '-')\n// * String must end in non-shifted position.\n// * \"-&\" while in base64 is not allowed.\n\n\nexports.utf7imap = Utf7IMAPCodec;\nfunction Utf7IMAPCodec(codecOptions, iconv) {\n this.iconv = iconv;\n};\n\nUtf7IMAPCodec.prototype.encoder = Utf7IMAPEncoder;\nUtf7IMAPCodec.prototype.decoder = Utf7IMAPDecoder;\nUtf7IMAPCodec.prototype.bomAware = true;\n\n\n// -- Encoding\n\nfunction Utf7IMAPEncoder(options, codec) {\n this.iconv = codec.iconv;\n this.inBase64 = false;\n this.base64Accum = Buffer.alloc(6);\n this.base64AccumIdx = 0;\n}\n\nUtf7IMAPEncoder.prototype.write = function(str) {\n var inBase64 = this.inBase64,\n base64Accum = this.base64Accum,\n base64AccumIdx = this.base64AccumIdx,\n buf = Buffer.alloc(str.length*5 + 10), bufIdx = 0;\n\n for (var i = 0; i < str.length; i++) {\n var uChar = str.charCodeAt(i);\n if (0x20 <= uChar && uChar <= 0x7E) { // Direct character or '&'.\n if (inBase64) {\n if (base64AccumIdx > 0) {\n bufIdx += buf.write(base64Accum.slice(0, base64AccumIdx).toString('base64').replace(/\\//g, ',').replace(/=+$/, ''), bufIdx);\n base64AccumIdx = 0;\n }\n\n buf[bufIdx++] = minusChar; // Write '-', then go to direct mode.\n inBase64 = false;\n }\n\n if (!inBase64) {\n buf[bufIdx++] = uChar; // Write direct character\n\n if (uChar === andChar) // Ampersand -> '&-'\n buf[bufIdx++] = minusChar;\n }\n\n } else { // Non-direct character\n if (!inBase64) {\n buf[bufIdx++] = andChar; // Write '&', then go to base64 mode.\n inBase64 = true;\n }\n if (inBase64) {\n base64Accum[base64AccumIdx++] = uChar >> 8;\n base64Accum[base64AccumIdx++] = uChar & 0xFF;\n\n if (base64AccumIdx == base64Accum.length) {\n bufIdx += buf.write(base64Accum.toString('base64').replace(/\\//g, ','), bufIdx);\n base64AccumIdx = 0;\n }\n }\n }\n }\n\n this.inBase64 = inBase64;\n this.base64AccumIdx = base64AccumIdx;\n\n return buf.slice(0, bufIdx);\n}\n\nUtf7IMAPEncoder.prototype.end = function() {\n var buf = Buffer.alloc(10), bufIdx = 0;\n if (this.inBase64) {\n if (this.base64AccumIdx > 0) {\n bufIdx += buf.write(this.base64Accum.slice(0, this.base64AccumIdx).toString('base64').replace(/\\//g, ',').replace(/=+$/, ''), bufIdx);\n this.base64AccumIdx = 0;\n }\n\n buf[bufIdx++] = minusChar; // Write '-', then go to direct mode.\n this.inBase64 = false;\n }\n\n return buf.slice(0, bufIdx);\n}\n\n\n// -- Decoding\n\nfunction Utf7IMAPDecoder(options, codec) {\n this.iconv = codec.iconv;\n this.inBase64 = false;\n this.base64Accum = '';\n}\n\nvar base64IMAPChars = base64Chars.slice();\nbase64IMAPChars[','.charCodeAt(0)] = true;\n\nUtf7IMAPDecoder.prototype.write = function(buf) {\n var res = \"\", lastI = 0,\n inBase64 = this.inBase64,\n base64Accum = this.base64Accum;\n\n // The decoder is more involved as we must handle chunks in stream.\n // It is forgiving, closer to standard UTF-7 (for example, '-' is optional at the end).\n\n for (var i = 0; i < buf.length; i++) {\n if (!inBase64) { // We're in direct mode.\n // Write direct chars until '&'\n if (buf[i] == andChar) {\n res += this.iconv.decode(buf.slice(lastI, i), \"ascii\"); // Write direct chars.\n lastI = i+1;\n inBase64 = true;\n }\n } else { // We decode base64.\n if (!base64IMAPChars[buf[i]]) { // Base64 ended.\n if (i == lastI && buf[i] == minusChar) { // \"&-\" -> \"&\"\n res += \"&\";\n } else {\n var b64str = base64Accum + this.iconv.decode(buf.slice(lastI, i), \"ascii\").replace(/,/g, '/');\n res += this.iconv.decode(Buffer.from(b64str, 'base64'), \"utf16-be\");\n }\n\n if (buf[i] != minusChar) // Minus may be absorbed after base64.\n i--;\n\n lastI = i+1;\n inBase64 = false;\n base64Accum = '';\n }\n }\n }\n\n if (!inBase64) {\n res += this.iconv.decode(buf.slice(lastI), \"ascii\"); // Write direct chars.\n } else {\n var b64str = base64Accum + this.iconv.decode(buf.slice(lastI), \"ascii\").replace(/,/g, '/');\n\n var canBeDecoded = b64str.length - (b64str.length % 8); // Minimal chunk: 2 quads -> 2x3 bytes -> 3 chars.\n base64Accum = b64str.slice(canBeDecoded); // The rest will be decoded in future.\n b64str = b64str.slice(0, canBeDecoded);\n\n res += this.iconv.decode(Buffer.from(b64str, 'base64'), \"utf16-be\");\n }\n\n this.inBase64 = inBase64;\n this.base64Accum = base64Accum;\n\n return res;\n}\n\nUtf7IMAPDecoder.prototype.end = function() {\n var res = \"\";\n if (this.inBase64 && this.base64Accum.length > 0)\n res = this.iconv.decode(Buffer.from(this.base64Accum, 'base64'), \"utf16-be\");\n\n this.inBase64 = false;\n this.base64Accum = '';\n return res;\n}\n\n\n","\"use strict\";\n\nvar BOMChar = '\\uFEFF';\n\nexports.PrependBOM = PrependBOMWrapper\nfunction PrependBOMWrapper(encoder, options) {\n this.encoder = encoder;\n this.addBOM = true;\n}\n\nPrependBOMWrapper.prototype.write = function(str) {\n if (this.addBOM) {\n str = BOMChar + str;\n this.addBOM = false;\n }\n\n return this.encoder.write(str);\n}\n\nPrependBOMWrapper.prototype.end = function() {\n return this.encoder.end();\n}\n\n\n//------------------------------------------------------------------------------\n\nexports.StripBOM = StripBOMWrapper;\nfunction StripBOMWrapper(decoder, options) {\n this.decoder = decoder;\n this.pass = false;\n this.options = options || {};\n}\n\nStripBOMWrapper.prototype.write = function(buf) {\n var res = this.decoder.write(buf);\n if (this.pass || !res)\n return res;\n\n if (res[0] === BOMChar) {\n res = res.slice(1);\n if (typeof this.options.stripBOM === 'function')\n this.options.stripBOM();\n }\n\n this.pass = true;\n return res;\n}\n\nStripBOMWrapper.prototype.end = function() {\n return this.decoder.end();\n}\n\n","\"use strict\";\n\nvar Buffer = require(\"safer-buffer\").Buffer;\n\nvar bomHandling = require(\"./bom-handling\"),\n iconv = module.exports;\n\n// All codecs and aliases are kept here, keyed by encoding name/alias.\n// They are lazy loaded in `iconv.getCodec` from `encodings/index.js`.\niconv.encodings = null;\n\n// Characters emitted in case of error.\niconv.defaultCharUnicode = '�';\niconv.defaultCharSingleByte = '?';\n\n// Public API.\niconv.encode = function encode(str, encoding, options) {\n str = \"\" + (str || \"\"); // Ensure string.\n\n var encoder = iconv.getEncoder(encoding, options);\n\n var res = encoder.write(str);\n var trail = encoder.end();\n \n return (trail && trail.length > 0) ? Buffer.concat([res, trail]) : res;\n}\n\niconv.decode = function decode(buf, encoding, options) {\n if (typeof buf === 'string') {\n if (!iconv.skipDecodeWarning) {\n console.error('Iconv-lite warning: decode()-ing strings is deprecated. Refer to https://github.com/ashtuchkin/iconv-lite/wiki/Use-Buffers-when-decoding');\n iconv.skipDecodeWarning = true;\n }\n\n buf = Buffer.from(\"\" + (buf || \"\"), \"binary\"); // Ensure buffer.\n }\n\n var decoder = iconv.getDecoder(encoding, options);\n\n var res = decoder.write(buf);\n var trail = decoder.end();\n\n return trail ? (res + trail) : res;\n}\n\niconv.encodingExists = function encodingExists(enc) {\n try {\n iconv.getCodec(enc);\n return true;\n } catch (e) {\n return false;\n }\n}\n\n// Legacy aliases to convert functions\niconv.toEncoding = iconv.encode;\niconv.fromEncoding = iconv.decode;\n\n// Search for a codec in iconv.encodings. Cache codec data in iconv._codecDataCache.\niconv._codecDataCache = {};\niconv.getCodec = function getCodec(encoding) {\n if (!iconv.encodings)\n iconv.encodings = require(\"../encodings\"); // Lazy load all encoding definitions.\n \n // Canonicalize encoding name: strip all non-alphanumeric chars and appended year.\n var enc = iconv._canonicalizeEncoding(encoding);\n\n // Traverse iconv.encodings to find actual codec.\n var codecOptions = {};\n while (true) {\n var codec = iconv._codecDataCache[enc];\n if (codec)\n return codec;\n\n var codecDef = iconv.encodings[enc];\n\n switch (typeof codecDef) {\n case \"string\": // Direct alias to other encoding.\n enc = codecDef;\n break;\n\n case \"object\": // Alias with options. Can be layered.\n for (var key in codecDef)\n codecOptions[key] = codecDef[key];\n\n if (!codecOptions.encodingName)\n codecOptions.encodingName = enc;\n \n enc = codecDef.type;\n break;\n\n case \"function\": // Codec itself.\n if (!codecOptions.encodingName)\n codecOptions.encodingName = enc;\n\n // The codec function must load all tables and return object with .encoder and .decoder methods.\n // It'll be called only once (for each different options object).\n codec = new codecDef(codecOptions, iconv);\n\n iconv._codecDataCache[codecOptions.encodingName] = codec; // Save it to be reused later.\n return codec;\n\n default:\n throw new Error(\"Encoding not recognized: '\" + encoding + \"' (searched as: '\"+enc+\"')\");\n }\n }\n}\n\niconv._canonicalizeEncoding = function(encoding) {\n // Canonicalize encoding name: strip all non-alphanumeric chars and appended year.\n return (''+encoding).toLowerCase().replace(/:\\d{4}$|[^0-9a-z]/g, \"\");\n}\n\niconv.getEncoder = function getEncoder(encoding, options) {\n var codec = iconv.getCodec(encoding),\n encoder = new codec.encoder(options, codec);\n\n if (codec.bomAware && options && options.addBOM)\n encoder = new bomHandling.PrependBOM(encoder, options);\n\n return encoder;\n}\n\niconv.getDecoder = function getDecoder(encoding, options) {\n var codec = iconv.getCodec(encoding),\n decoder = new codec.decoder(options, codec);\n\n if (codec.bomAware && !(options && options.stripBOM === false))\n decoder = new bomHandling.StripBOM(decoder, options);\n\n return decoder;\n}\n\n// Streaming API\n// NOTE: Streaming API naturally depends on 'stream' module from Node.js. Unfortunately in browser environments this module can add\n// up to 100Kb to the output bundle. To avoid unnecessary code bloat, we don't enable Streaming API in browser by default.\n// If you would like to enable it explicitly, please add the following code to your app:\n// > iconv.enableStreamingAPI(require('stream'));\niconv.enableStreamingAPI = function enableStreamingAPI(stream_module) {\n if (iconv.supportsStreams)\n return;\n\n // Dependency-inject stream module to create IconvLite stream classes.\n var streams = require(\"./streams\")(stream_module);\n\n // Not public API yet, but expose the stream classes.\n iconv.IconvLiteEncoderStream = streams.IconvLiteEncoderStream;\n iconv.IconvLiteDecoderStream = streams.IconvLiteDecoderStream;\n\n // Streaming API.\n iconv.encodeStream = function encodeStream(encoding, options) {\n return new iconv.IconvLiteEncoderStream(iconv.getEncoder(encoding, options), options);\n }\n\n iconv.decodeStream = function decodeStream(encoding, options) {\n return new iconv.IconvLiteDecoderStream(iconv.getDecoder(encoding, options), options);\n }\n\n iconv.supportsStreams = true;\n}\n\n// Enable Streaming API automatically if 'stream' module is available and non-empty (the majority of environments).\nvar stream_module;\ntry {\n stream_module = require(\"stream\");\n} catch (e) {}\n\nif (stream_module && stream_module.Transform) {\n iconv.enableStreamingAPI(stream_module);\n\n} else {\n // In rare cases where 'stream' module is not available by default, throw a helpful exception.\n iconv.encodeStream = iconv.decodeStream = function() {\n throw new Error(\"iconv-lite Streaming API is not enabled. Use iconv.enableStreamingAPI(require('stream')); to enable it.\");\n };\n}\n\nif (\"Ā\" != \"\\u0100\") {\n console.error(\"iconv-lite warning: js files use non-utf8 encoding. See https://github.com/ashtuchkin/iconv-lite/wiki/Javascript-source-file-encodings for more info.\");\n}\n","\"use strict\";\n\nvar Buffer = require(\"safer-buffer\").Buffer;\n\n// NOTE: Due to 'stream' module being pretty large (~100Kb, significant in browser environments), \n// we opt to dependency-inject it instead of creating a hard dependency.\nmodule.exports = function(stream_module) {\n var Transform = stream_module.Transform;\n\n // == Encoder stream =======================================================\n\n function IconvLiteEncoderStream(conv, options) {\n this.conv = conv;\n options = options || {};\n options.decodeStrings = false; // We accept only strings, so we don't need to decode them.\n Transform.call(this, options);\n }\n\n IconvLiteEncoderStream.prototype = Object.create(Transform.prototype, {\n constructor: { value: IconvLiteEncoderStream }\n });\n\n IconvLiteEncoderStream.prototype._transform = function(chunk, encoding, done) {\n if (typeof chunk != 'string')\n return done(new Error(\"Iconv encoding stream needs strings as its input.\"));\n try {\n var res = this.conv.write(chunk);\n if (res && res.length) this.push(res);\n done();\n }\n catch (e) {\n done(e);\n }\n }\n\n IconvLiteEncoderStream.prototype._flush = function(done) {\n try {\n var res = this.conv.end();\n if (res && res.length) this.push(res);\n done();\n }\n catch (e) {\n done(e);\n }\n }\n\n IconvLiteEncoderStream.prototype.collect = function(cb) {\n var chunks = [];\n this.on('error', cb);\n this.on('data', function(chunk) { chunks.push(chunk); });\n this.on('end', function() {\n cb(null, Buffer.concat(chunks));\n });\n return this;\n }\n\n\n // == Decoder stream =======================================================\n\n function IconvLiteDecoderStream(conv, options) {\n this.conv = conv;\n options = options || {};\n options.encoding = this.encoding = 'utf8'; // We output strings.\n Transform.call(this, options);\n }\n\n IconvLiteDecoderStream.prototype = Object.create(Transform.prototype, {\n constructor: { value: IconvLiteDecoderStream }\n });\n\n IconvLiteDecoderStream.prototype._transform = function(chunk, encoding, done) {\n if (!Buffer.isBuffer(chunk) && !(chunk instanceof Uint8Array))\n return done(new Error(\"Iconv decoding stream needs buffers as its input.\"));\n try {\n var res = this.conv.write(chunk);\n if (res && res.length) this.push(res, this.encoding);\n done();\n }\n catch (e) {\n done(e);\n }\n }\n\n IconvLiteDecoderStream.prototype._flush = function(done) {\n try {\n var res = this.conv.end();\n if (res && res.length) this.push(res, this.encoding); \n done();\n }\n catch (e) {\n done(e);\n }\n }\n\n IconvLiteDecoderStream.prototype.collect = function(cb) {\n var res = '';\n this.on('error', cb);\n this.on('data', function(chunk) { res += chunk; });\n this.on('end', function() {\n cb(null, res);\n });\n return this;\n }\n\n return {\n IconvLiteEncoderStream: IconvLiteEncoderStream,\n IconvLiteDecoderStream: IconvLiteDecoderStream,\n };\n};\n","try {\n var util = require('util');\n /* istanbul ignore next */\n if (typeof util.inherits !== 'function') throw '';\n module.exports = util.inherits;\n} catch (e) {\n /* istanbul ignore next */\n module.exports = require('./inherits_browser.js');\n}\n","if (typeof Object.create === 'function') {\n // implementation from standard node.js 'util' module\n module.exports = function inherits(ctor, superCtor) {\n if (superCtor) {\n ctor.super_ = superCtor\n ctor.prototype = Object.create(superCtor.prototype, {\n constructor: {\n value: ctor,\n enumerable: false,\n writable: true,\n configurable: true\n }\n })\n }\n };\n} else {\n // old school shim for old browsers\n module.exports = function inherits(ctor, superCtor) {\n if (superCtor) {\n ctor.super_ = superCtor\n var TempCtor = function () {}\n TempCtor.prototype = superCtor.prototype\n ctor.prototype = new TempCtor()\n ctor.prototype.constructor = ctor\n }\n }\n}\n","'use strict';\n\nObject.defineProperty(exports, '__esModule', { value: true });\n\n/*!\n * is-plain-object \n *\n * Copyright (c) 2014-2017, Jon Schlinkert.\n * Released under the MIT License.\n */\n\nfunction isObject(o) {\n return Object.prototype.toString.call(o) === '[object Object]';\n}\n\nfunction isPlainObject(o) {\n var ctor,prot;\n\n if (isObject(o) === false) return false;\n\n // If has modified constructor\n ctor = o.constructor;\n if (ctor === undefined) return true;\n\n // If has modified prototype\n prot = ctor.prototype;\n if (isObject(prot) === false) return false;\n\n // If constructor does not have an Object-specific method\n if (prot.hasOwnProperty('isPrototypeOf') === false) {\n return false;\n }\n\n // Most likely a plain Object\n return true;\n}\n\nexports.isPlainObject = isPlainObject;\n","'use strict';\n\nconst isStream = stream =>\n\tstream !== null &&\n\ttypeof stream === 'object' &&\n\ttypeof stream.pipe === 'function';\n\nisStream.writable = stream =>\n\tisStream(stream) &&\n\tstream.writable !== false &&\n\ttypeof stream._write === 'function' &&\n\ttypeof stream._writableState === 'object';\n\nisStream.readable = stream =>\n\tisStream(stream) &&\n\tstream.readable !== false &&\n\ttypeof stream._read === 'function' &&\n\ttypeof stream._readableState === 'object';\n\nisStream.duplex = stream =>\n\tisStream.writable(stream) &&\n\tisStream.readable(stream);\n\nisStream.transform = stream =>\n\tisStream.duplex(stream) &&\n\ttypeof stream._transform === 'function';\n\nmodule.exports = isStream;\n","var toString = {}.toString;\n\nmodule.exports = Array.isArray || function (arr) {\n return toString.call(arr) == '[object Array]';\n};\n","'use strict';\n\n\nvar loader = require('./lib/loader');\nvar dumper = require('./lib/dumper');\n\n\nfunction renamed(from, to) {\n return function () {\n throw new Error('Function yaml.' + from + ' is removed in js-yaml 4. ' +\n 'Use yaml.' + to + ' instead, which is now safe by default.');\n };\n}\n\n\nmodule.exports.Type = require('./lib/type');\nmodule.exports.Schema = require('./lib/schema');\nmodule.exports.FAILSAFE_SCHEMA = require('./lib/schema/failsafe');\nmodule.exports.JSON_SCHEMA = require('./lib/schema/json');\nmodule.exports.CORE_SCHEMA = require('./lib/schema/core');\nmodule.exports.DEFAULT_SCHEMA = require('./lib/schema/default');\nmodule.exports.load = loader.load;\nmodule.exports.loadAll = loader.loadAll;\nmodule.exports.dump = dumper.dump;\nmodule.exports.YAMLException = require('./lib/exception');\n\n// Re-export all types in case user wants to create custom schema\nmodule.exports.types = {\n binary: require('./lib/type/binary'),\n float: require('./lib/type/float'),\n map: require('./lib/type/map'),\n null: require('./lib/type/null'),\n pairs: require('./lib/type/pairs'),\n set: require('./lib/type/set'),\n timestamp: require('./lib/type/timestamp'),\n bool: require('./lib/type/bool'),\n int: require('./lib/type/int'),\n merge: require('./lib/type/merge'),\n omap: require('./lib/type/omap'),\n seq: require('./lib/type/seq'),\n str: require('./lib/type/str')\n};\n\n// Removed functions from JS-YAML 3.0.x\nmodule.exports.safeLoad = renamed('safeLoad', 'load');\nmodule.exports.safeLoadAll = renamed('safeLoadAll', 'loadAll');\nmodule.exports.safeDump = renamed('safeDump', 'dump');\n","'use strict';\n\n\nfunction isNothing(subject) {\n return (typeof subject === 'undefined') || (subject === null);\n}\n\n\nfunction isObject(subject) {\n return (typeof subject === 'object') && (subject !== null);\n}\n\n\nfunction toArray(sequence) {\n if (Array.isArray(sequence)) return sequence;\n else if (isNothing(sequence)) return [];\n\n return [ sequence ];\n}\n\n\nfunction extend(target, source) {\n var index, length, key, sourceKeys;\n\n if (source) {\n sourceKeys = Object.keys(source);\n\n for (index = 0, length = sourceKeys.length; index < length; index += 1) {\n key = sourceKeys[index];\n target[key] = source[key];\n }\n }\n\n return target;\n}\n\n\nfunction repeat(string, count) {\n var result = '', cycle;\n\n for (cycle = 0; cycle < count; cycle += 1) {\n result += string;\n }\n\n return result;\n}\n\n\nfunction isNegativeZero(number) {\n return (number === 0) && (Number.NEGATIVE_INFINITY === 1 / number);\n}\n\n\nmodule.exports.isNothing = isNothing;\nmodule.exports.isObject = isObject;\nmodule.exports.toArray = toArray;\nmodule.exports.repeat = repeat;\nmodule.exports.isNegativeZero = isNegativeZero;\nmodule.exports.extend = extend;\n","'use strict';\n\n/*eslint-disable no-use-before-define*/\n\nvar common = require('./common');\nvar YAMLException = require('./exception');\nvar DEFAULT_SCHEMA = require('./schema/default');\n\nvar _toString = Object.prototype.toString;\nvar _hasOwnProperty = Object.prototype.hasOwnProperty;\n\nvar CHAR_BOM = 0xFEFF;\nvar CHAR_TAB = 0x09; /* Tab */\nvar CHAR_LINE_FEED = 0x0A; /* LF */\nvar CHAR_CARRIAGE_RETURN = 0x0D; /* CR */\nvar CHAR_SPACE = 0x20; /* Space */\nvar CHAR_EXCLAMATION = 0x21; /* ! */\nvar CHAR_DOUBLE_QUOTE = 0x22; /* \" */\nvar CHAR_SHARP = 0x23; /* # */\nvar CHAR_PERCENT = 0x25; /* % */\nvar CHAR_AMPERSAND = 0x26; /* & */\nvar CHAR_SINGLE_QUOTE = 0x27; /* ' */\nvar CHAR_ASTERISK = 0x2A; /* * */\nvar CHAR_COMMA = 0x2C; /* , */\nvar CHAR_MINUS = 0x2D; /* - */\nvar CHAR_COLON = 0x3A; /* : */\nvar CHAR_EQUALS = 0x3D; /* = */\nvar CHAR_GREATER_THAN = 0x3E; /* > */\nvar CHAR_QUESTION = 0x3F; /* ? */\nvar CHAR_COMMERCIAL_AT = 0x40; /* @ */\nvar CHAR_LEFT_SQUARE_BRACKET = 0x5B; /* [ */\nvar CHAR_RIGHT_SQUARE_BRACKET = 0x5D; /* ] */\nvar CHAR_GRAVE_ACCENT = 0x60; /* ` */\nvar CHAR_LEFT_CURLY_BRACKET = 0x7B; /* { */\nvar CHAR_VERTICAL_LINE = 0x7C; /* | */\nvar CHAR_RIGHT_CURLY_BRACKET = 0x7D; /* } */\n\nvar ESCAPE_SEQUENCES = {};\n\nESCAPE_SEQUENCES[0x00] = '\\\\0';\nESCAPE_SEQUENCES[0x07] = '\\\\a';\nESCAPE_SEQUENCES[0x08] = '\\\\b';\nESCAPE_SEQUENCES[0x09] = '\\\\t';\nESCAPE_SEQUENCES[0x0A] = '\\\\n';\nESCAPE_SEQUENCES[0x0B] = '\\\\v';\nESCAPE_SEQUENCES[0x0C] = '\\\\f';\nESCAPE_SEQUENCES[0x0D] = '\\\\r';\nESCAPE_SEQUENCES[0x1B] = '\\\\e';\nESCAPE_SEQUENCES[0x22] = '\\\\\"';\nESCAPE_SEQUENCES[0x5C] = '\\\\\\\\';\nESCAPE_SEQUENCES[0x85] = '\\\\N';\nESCAPE_SEQUENCES[0xA0] = '\\\\_';\nESCAPE_SEQUENCES[0x2028] = '\\\\L';\nESCAPE_SEQUENCES[0x2029] = '\\\\P';\n\nvar DEPRECATED_BOOLEANS_SYNTAX = [\n 'y', 'Y', 'yes', 'Yes', 'YES', 'on', 'On', 'ON',\n 'n', 'N', 'no', 'No', 'NO', 'off', 'Off', 'OFF'\n];\n\nvar DEPRECATED_BASE60_SYNTAX = /^[-+]?[0-9_]+(?::[0-9_]+)+(?:\\.[0-9_]*)?$/;\n\nfunction compileStyleMap(schema, map) {\n var result, keys, index, length, tag, style, type;\n\n if (map === null) return {};\n\n result = {};\n keys = Object.keys(map);\n\n for (index = 0, length = keys.length; index < length; index += 1) {\n tag = keys[index];\n style = String(map[tag]);\n\n if (tag.slice(0, 2) === '!!') {\n tag = 'tag:yaml.org,2002:' + tag.slice(2);\n }\n type = schema.compiledTypeMap['fallback'][tag];\n\n if (type && _hasOwnProperty.call(type.styleAliases, style)) {\n style = type.styleAliases[style];\n }\n\n result[tag] = style;\n }\n\n return result;\n}\n\nfunction encodeHex(character) {\n var string, handle, length;\n\n string = character.toString(16).toUpperCase();\n\n if (character <= 0xFF) {\n handle = 'x';\n length = 2;\n } else if (character <= 0xFFFF) {\n handle = 'u';\n length = 4;\n } else if (character <= 0xFFFFFFFF) {\n handle = 'U';\n length = 8;\n } else {\n throw new YAMLException('code point within a string may not be greater than 0xFFFFFFFF');\n }\n\n return '\\\\' + handle + common.repeat('0', length - string.length) + string;\n}\n\n\nvar QUOTING_TYPE_SINGLE = 1,\n QUOTING_TYPE_DOUBLE = 2;\n\nfunction State(options) {\n this.schema = options['schema'] || DEFAULT_SCHEMA;\n this.indent = Math.max(1, (options['indent'] || 2));\n this.noArrayIndent = options['noArrayIndent'] || false;\n this.skipInvalid = options['skipInvalid'] || false;\n this.flowLevel = (common.isNothing(options['flowLevel']) ? -1 : options['flowLevel']);\n this.styleMap = compileStyleMap(this.schema, options['styles'] || null);\n this.sortKeys = options['sortKeys'] || false;\n this.lineWidth = options['lineWidth'] || 80;\n this.noRefs = options['noRefs'] || false;\n this.noCompatMode = options['noCompatMode'] || false;\n this.condenseFlow = options['condenseFlow'] || false;\n this.quotingType = options['quotingType'] === '\"' ? QUOTING_TYPE_DOUBLE : QUOTING_TYPE_SINGLE;\n this.forceQuotes = options['forceQuotes'] || false;\n this.replacer = typeof options['replacer'] === 'function' ? options['replacer'] : null;\n\n this.implicitTypes = this.schema.compiledImplicit;\n this.explicitTypes = this.schema.compiledExplicit;\n\n this.tag = null;\n this.result = '';\n\n this.duplicates = [];\n this.usedDuplicates = null;\n}\n\n// Indents every line in a string. Empty lines (\\n only) are not indented.\nfunction indentString(string, spaces) {\n var ind = common.repeat(' ', spaces),\n position = 0,\n next = -1,\n result = '',\n line,\n length = string.length;\n\n while (position < length) {\n next = string.indexOf('\\n', position);\n if (next === -1) {\n line = string.slice(position);\n position = length;\n } else {\n line = string.slice(position, next + 1);\n position = next + 1;\n }\n\n if (line.length && line !== '\\n') result += ind;\n\n result += line;\n }\n\n return result;\n}\n\nfunction generateNextLine(state, level) {\n return '\\n' + common.repeat(' ', state.indent * level);\n}\n\nfunction testImplicitResolving(state, str) {\n var index, length, type;\n\n for (index = 0, length = state.implicitTypes.length; index < length; index += 1) {\n type = state.implicitTypes[index];\n\n if (type.resolve(str)) {\n return true;\n }\n }\n\n return false;\n}\n\n// [33] s-white ::= s-space | s-tab\nfunction isWhitespace(c) {\n return c === CHAR_SPACE || c === CHAR_TAB;\n}\n\n// Returns true if the character can be printed without escaping.\n// From YAML 1.2: \"any allowed characters known to be non-printable\n// should also be escaped. [However,] This isn’t mandatory\"\n// Derived from nb-char - \\t - #x85 - #xA0 - #x2028 - #x2029.\nfunction isPrintable(c) {\n return (0x00020 <= c && c <= 0x00007E)\n || ((0x000A1 <= c && c <= 0x00D7FF) && c !== 0x2028 && c !== 0x2029)\n || ((0x0E000 <= c && c <= 0x00FFFD) && c !== CHAR_BOM)\n || (0x10000 <= c && c <= 0x10FFFF);\n}\n\n// [34] ns-char ::= nb-char - s-white\n// [27] nb-char ::= c-printable - b-char - c-byte-order-mark\n// [26] b-char ::= b-line-feed | b-carriage-return\n// Including s-white (for some reason, examples doesn't match specs in this aspect)\n// ns-char ::= c-printable - b-line-feed - b-carriage-return - c-byte-order-mark\nfunction isNsCharOrWhitespace(c) {\n return isPrintable(c)\n && c !== CHAR_BOM\n // - b-char\n && c !== CHAR_CARRIAGE_RETURN\n && c !== CHAR_LINE_FEED;\n}\n\n// [127] ns-plain-safe(c) ::= c = flow-out ⇒ ns-plain-safe-out\n// c = flow-in ⇒ ns-plain-safe-in\n// c = block-key ⇒ ns-plain-safe-out\n// c = flow-key ⇒ ns-plain-safe-in\n// [128] ns-plain-safe-out ::= ns-char\n// [129] ns-plain-safe-in ::= ns-char - c-flow-indicator\n// [130] ns-plain-char(c) ::= ( ns-plain-safe(c) - “:” - “#” )\n// | ( /* An ns-char preceding */ “#” )\n// | ( “:” /* Followed by an ns-plain-safe(c) */ )\nfunction isPlainSafe(c, prev, inblock) {\n var cIsNsCharOrWhitespace = isNsCharOrWhitespace(c);\n var cIsNsChar = cIsNsCharOrWhitespace && !isWhitespace(c);\n return (\n // ns-plain-safe\n inblock ? // c = flow-in\n cIsNsCharOrWhitespace\n : cIsNsCharOrWhitespace\n // - c-flow-indicator\n && c !== CHAR_COMMA\n && c !== CHAR_LEFT_SQUARE_BRACKET\n && c !== CHAR_RIGHT_SQUARE_BRACKET\n && c !== CHAR_LEFT_CURLY_BRACKET\n && c !== CHAR_RIGHT_CURLY_BRACKET\n )\n // ns-plain-char\n && c !== CHAR_SHARP // false on '#'\n && !(prev === CHAR_COLON && !cIsNsChar) // false on ': '\n || (isNsCharOrWhitespace(prev) && !isWhitespace(prev) && c === CHAR_SHARP) // change to true on '[^ ]#'\n || (prev === CHAR_COLON && cIsNsChar); // change to true on ':[^ ]'\n}\n\n// Simplified test for values allowed as the first character in plain style.\nfunction isPlainSafeFirst(c) {\n // Uses a subset of ns-char - c-indicator\n // where ns-char = nb-char - s-white.\n // No support of ( ( “?” | “:” | “-” ) /* Followed by an ns-plain-safe(c)) */ ) part\n return isPrintable(c) && c !== CHAR_BOM\n && !isWhitespace(c) // - s-white\n // - (c-indicator ::=\n // “-” | “?” | “:” | “,” | “[” | “]” | “{” | “}”\n && c !== CHAR_MINUS\n && c !== CHAR_QUESTION\n && c !== CHAR_COLON\n && c !== CHAR_COMMA\n && c !== CHAR_LEFT_SQUARE_BRACKET\n && c !== CHAR_RIGHT_SQUARE_BRACKET\n && c !== CHAR_LEFT_CURLY_BRACKET\n && c !== CHAR_RIGHT_CURLY_BRACKET\n // | “#” | “&” | “*” | “!” | “|” | “=” | “>” | “'” | “\"”\n && c !== CHAR_SHARP\n && c !== CHAR_AMPERSAND\n && c !== CHAR_ASTERISK\n && c !== CHAR_EXCLAMATION\n && c !== CHAR_VERTICAL_LINE\n && c !== CHAR_EQUALS\n && c !== CHAR_GREATER_THAN\n && c !== CHAR_SINGLE_QUOTE\n && c !== CHAR_DOUBLE_QUOTE\n // | “%” | “@” | “`”)\n && c !== CHAR_PERCENT\n && c !== CHAR_COMMERCIAL_AT\n && c !== CHAR_GRAVE_ACCENT;\n}\n\n// Simplified test for values allowed as the last character in plain style.\nfunction isPlainSafeLast(c) {\n // just not whitespace or colon, it will be checked to be plain character later\n return !isWhitespace(c) && c !== CHAR_COLON;\n}\n\n// Same as 'string'.codePointAt(pos), but works in older browsers.\nfunction codePointAt(string, pos) {\n var first = string.charCodeAt(pos), second;\n if (first >= 0xD800 && first <= 0xDBFF && pos + 1 < string.length) {\n second = string.charCodeAt(pos + 1);\n if (second >= 0xDC00 && second <= 0xDFFF) {\n // https://mathiasbynens.be/notes/javascript-encoding#surrogate-formulae\n return (first - 0xD800) * 0x400 + second - 0xDC00 + 0x10000;\n }\n }\n return first;\n}\n\n// Determines whether block indentation indicator is required.\nfunction needIndentIndicator(string) {\n var leadingSpaceRe = /^\\n* /;\n return leadingSpaceRe.test(string);\n}\n\nvar STYLE_PLAIN = 1,\n STYLE_SINGLE = 2,\n STYLE_LITERAL = 3,\n STYLE_FOLDED = 4,\n STYLE_DOUBLE = 5;\n\n// Determines which scalar styles are possible and returns the preferred style.\n// lineWidth = -1 => no limit.\n// Pre-conditions: str.length > 0.\n// Post-conditions:\n// STYLE_PLAIN or STYLE_SINGLE => no \\n are in the string.\n// STYLE_LITERAL => no lines are suitable for folding (or lineWidth is -1).\n// STYLE_FOLDED => a line > lineWidth and can be folded (and lineWidth != -1).\nfunction chooseScalarStyle(string, singleLineOnly, indentPerLevel, lineWidth,\n testAmbiguousType, quotingType, forceQuotes, inblock) {\n\n var i;\n var char = 0;\n var prevChar = null;\n var hasLineBreak = false;\n var hasFoldableLine = false; // only checked if shouldTrackWidth\n var shouldTrackWidth = lineWidth !== -1;\n var previousLineBreak = -1; // count the first line correctly\n var plain = isPlainSafeFirst(codePointAt(string, 0))\n && isPlainSafeLast(codePointAt(string, string.length - 1));\n\n if (singleLineOnly || forceQuotes) {\n // Case: no block styles.\n // Check for disallowed characters to rule out plain and single.\n for (i = 0; i < string.length; char >= 0x10000 ? i += 2 : i++) {\n char = codePointAt(string, i);\n if (!isPrintable(char)) {\n return STYLE_DOUBLE;\n }\n plain = plain && isPlainSafe(char, prevChar, inblock);\n prevChar = char;\n }\n } else {\n // Case: block styles permitted.\n for (i = 0; i < string.length; char >= 0x10000 ? i += 2 : i++) {\n char = codePointAt(string, i);\n if (char === CHAR_LINE_FEED) {\n hasLineBreak = true;\n // Check if any line can be folded.\n if (shouldTrackWidth) {\n hasFoldableLine = hasFoldableLine ||\n // Foldable line = too long, and not more-indented.\n (i - previousLineBreak - 1 > lineWidth &&\n string[previousLineBreak + 1] !== ' ');\n previousLineBreak = i;\n }\n } else if (!isPrintable(char)) {\n return STYLE_DOUBLE;\n }\n plain = plain && isPlainSafe(char, prevChar, inblock);\n prevChar = char;\n }\n // in case the end is missing a \\n\n hasFoldableLine = hasFoldableLine || (shouldTrackWidth &&\n (i - previousLineBreak - 1 > lineWidth &&\n string[previousLineBreak + 1] !== ' '));\n }\n // Although every style can represent \\n without escaping, prefer block styles\n // for multiline, since they're more readable and they don't add empty lines.\n // Also prefer folding a super-long line.\n if (!hasLineBreak && !hasFoldableLine) {\n // Strings interpretable as another type have to be quoted;\n // e.g. the string 'true' vs. the boolean true.\n if (plain && !forceQuotes && !testAmbiguousType(string)) {\n return STYLE_PLAIN;\n }\n return quotingType === QUOTING_TYPE_DOUBLE ? STYLE_DOUBLE : STYLE_SINGLE;\n }\n // Edge case: block indentation indicator can only have one digit.\n if (indentPerLevel > 9 && needIndentIndicator(string)) {\n return STYLE_DOUBLE;\n }\n // At this point we know block styles are valid.\n // Prefer literal style unless we want to fold.\n if (!forceQuotes) {\n return hasFoldableLine ? STYLE_FOLDED : STYLE_LITERAL;\n }\n return quotingType === QUOTING_TYPE_DOUBLE ? STYLE_DOUBLE : STYLE_SINGLE;\n}\n\n// Note: line breaking/folding is implemented for only the folded style.\n// NB. We drop the last trailing newline (if any) of a returned block scalar\n// since the dumper adds its own newline. This always works:\n// • No ending newline => unaffected; already using strip \"-\" chomping.\n// • Ending newline => removed then restored.\n// Importantly, this keeps the \"+\" chomp indicator from gaining an extra line.\nfunction writeScalar(state, string, level, iskey, inblock) {\n state.dump = (function () {\n if (string.length === 0) {\n return state.quotingType === QUOTING_TYPE_DOUBLE ? '\"\"' : \"''\";\n }\n if (!state.noCompatMode) {\n if (DEPRECATED_BOOLEANS_SYNTAX.indexOf(string) !== -1 || DEPRECATED_BASE60_SYNTAX.test(string)) {\n return state.quotingType === QUOTING_TYPE_DOUBLE ? ('\"' + string + '\"') : (\"'\" + string + \"'\");\n }\n }\n\n var indent = state.indent * Math.max(1, level); // no 0-indent scalars\n // As indentation gets deeper, let the width decrease monotonically\n // to the lower bound min(state.lineWidth, 40).\n // Note that this implies\n // state.lineWidth ≤ 40 + state.indent: width is fixed at the lower bound.\n // state.lineWidth > 40 + state.indent: width decreases until the lower bound.\n // This behaves better than a constant minimum width which disallows narrower options,\n // or an indent threshold which causes the width to suddenly increase.\n var lineWidth = state.lineWidth === -1\n ? -1 : Math.max(Math.min(state.lineWidth, 40), state.lineWidth - indent);\n\n // Without knowing if keys are implicit/explicit, assume implicit for safety.\n var singleLineOnly = iskey\n // No block styles in flow mode.\n || (state.flowLevel > -1 && level >= state.flowLevel);\n function testAmbiguity(string) {\n return testImplicitResolving(state, string);\n }\n\n switch (chooseScalarStyle(string, singleLineOnly, state.indent, lineWidth,\n testAmbiguity, state.quotingType, state.forceQuotes && !iskey, inblock)) {\n\n case STYLE_PLAIN:\n return string;\n case STYLE_SINGLE:\n return \"'\" + string.replace(/'/g, \"''\") + \"'\";\n case STYLE_LITERAL:\n return '|' + blockHeader(string, state.indent)\n + dropEndingNewline(indentString(string, indent));\n case STYLE_FOLDED:\n return '>' + blockHeader(string, state.indent)\n + dropEndingNewline(indentString(foldString(string, lineWidth), indent));\n case STYLE_DOUBLE:\n return '\"' + escapeString(string, lineWidth) + '\"';\n default:\n throw new YAMLException('impossible error: invalid scalar style');\n }\n }());\n}\n\n// Pre-conditions: string is valid for a block scalar, 1 <= indentPerLevel <= 9.\nfunction blockHeader(string, indentPerLevel) {\n var indentIndicator = needIndentIndicator(string) ? String(indentPerLevel) : '';\n\n // note the special case: the string '\\n' counts as a \"trailing\" empty line.\n var clip = string[string.length - 1] === '\\n';\n var keep = clip && (string[string.length - 2] === '\\n' || string === '\\n');\n var chomp = keep ? '+' : (clip ? '' : '-');\n\n return indentIndicator + chomp + '\\n';\n}\n\n// (See the note for writeScalar.)\nfunction dropEndingNewline(string) {\n return string[string.length - 1] === '\\n' ? string.slice(0, -1) : string;\n}\n\n// Note: a long line without a suitable break point will exceed the width limit.\n// Pre-conditions: every char in str isPrintable, str.length > 0, width > 0.\nfunction foldString(string, width) {\n // In folded style, $k$ consecutive newlines output as $k+1$ newlines—\n // unless they're before or after a more-indented line, or at the very\n // beginning or end, in which case $k$ maps to $k$.\n // Therefore, parse each chunk as newline(s) followed by a content line.\n var lineRe = /(\\n+)([^\\n]*)/g;\n\n // first line (possibly an empty line)\n var result = (function () {\n var nextLF = string.indexOf('\\n');\n nextLF = nextLF !== -1 ? nextLF : string.length;\n lineRe.lastIndex = nextLF;\n return foldLine(string.slice(0, nextLF), width);\n }());\n // If we haven't reached the first content line yet, don't add an extra \\n.\n var prevMoreIndented = string[0] === '\\n' || string[0] === ' ';\n var moreIndented;\n\n // rest of the lines\n var match;\n while ((match = lineRe.exec(string))) {\n var prefix = match[1], line = match[2];\n moreIndented = (line[0] === ' ');\n result += prefix\n + (!prevMoreIndented && !moreIndented && line !== ''\n ? '\\n' : '')\n + foldLine(line, width);\n prevMoreIndented = moreIndented;\n }\n\n return result;\n}\n\n// Greedy line breaking.\n// Picks the longest line under the limit each time,\n// otherwise settles for the shortest line over the limit.\n// NB. More-indented lines *cannot* be folded, as that would add an extra \\n.\nfunction foldLine(line, width) {\n if (line === '' || line[0] === ' ') return line;\n\n // Since a more-indented line adds a \\n, breaks can't be followed by a space.\n var breakRe = / [^ ]/g; // note: the match index will always be <= length-2.\n var match;\n // start is an inclusive index. end, curr, and next are exclusive.\n var start = 0, end, curr = 0, next = 0;\n var result = '';\n\n // Invariants: 0 <= start <= length-1.\n // 0 <= curr <= next <= max(0, length-2). curr - start <= width.\n // Inside the loop:\n // A match implies length >= 2, so curr and next are <= length-2.\n while ((match = breakRe.exec(line))) {\n next = match.index;\n // maintain invariant: curr - start <= width\n if (next - start > width) {\n end = (curr > start) ? curr : next; // derive end <= length-2\n result += '\\n' + line.slice(start, end);\n // skip the space that was output as \\n\n start = end + 1; // derive start <= length-1\n }\n curr = next;\n }\n\n // By the invariants, start <= length-1, so there is something left over.\n // It is either the whole string or a part starting from non-whitespace.\n result += '\\n';\n // Insert a break if the remainder is too long and there is a break available.\n if (line.length - start > width && curr > start) {\n result += line.slice(start, curr) + '\\n' + line.slice(curr + 1);\n } else {\n result += line.slice(start);\n }\n\n return result.slice(1); // drop extra \\n joiner\n}\n\n// Escapes a double-quoted string.\nfunction escapeString(string) {\n var result = '';\n var char = 0;\n var escapeSeq;\n\n for (var i = 0; i < string.length; char >= 0x10000 ? i += 2 : i++) {\n char = codePointAt(string, i);\n escapeSeq = ESCAPE_SEQUENCES[char];\n\n if (!escapeSeq && isPrintable(char)) {\n result += string[i];\n if (char >= 0x10000) result += string[i + 1];\n } else {\n result += escapeSeq || encodeHex(char);\n }\n }\n\n return result;\n}\n\nfunction writeFlowSequence(state, level, object) {\n var _result = '',\n _tag = state.tag,\n index,\n length,\n value;\n\n for (index = 0, length = object.length; index < length; index += 1) {\n value = object[index];\n\n if (state.replacer) {\n value = state.replacer.call(object, String(index), value);\n }\n\n // Write only valid elements, put null instead of invalid elements.\n if (writeNode(state, level, value, false, false) ||\n (typeof value === 'undefined' &&\n writeNode(state, level, null, false, false))) {\n\n if (_result !== '') _result += ',' + (!state.condenseFlow ? ' ' : '');\n _result += state.dump;\n }\n }\n\n state.tag = _tag;\n state.dump = '[' + _result + ']';\n}\n\nfunction writeBlockSequence(state, level, object, compact) {\n var _result = '',\n _tag = state.tag,\n index,\n length,\n value;\n\n for (index = 0, length = object.length; index < length; index += 1) {\n value = object[index];\n\n if (state.replacer) {\n value = state.replacer.call(object, String(index), value);\n }\n\n // Write only valid elements, put null instead of invalid elements.\n if (writeNode(state, level + 1, value, true, true, false, true) ||\n (typeof value === 'undefined' &&\n writeNode(state, level + 1, null, true, true, false, true))) {\n\n if (!compact || _result !== '') {\n _result += generateNextLine(state, level);\n }\n\n if (state.dump && CHAR_LINE_FEED === state.dump.charCodeAt(0)) {\n _result += '-';\n } else {\n _result += '- ';\n }\n\n _result += state.dump;\n }\n }\n\n state.tag = _tag;\n state.dump = _result || '[]'; // Empty sequence if no valid values.\n}\n\nfunction writeFlowMapping(state, level, object) {\n var _result = '',\n _tag = state.tag,\n objectKeyList = Object.keys(object),\n index,\n length,\n objectKey,\n objectValue,\n pairBuffer;\n\n for (index = 0, length = objectKeyList.length; index < length; index += 1) {\n\n pairBuffer = '';\n if (_result !== '') pairBuffer += ', ';\n\n if (state.condenseFlow) pairBuffer += '\"';\n\n objectKey = objectKeyList[index];\n objectValue = object[objectKey];\n\n if (state.replacer) {\n objectValue = state.replacer.call(object, objectKey, objectValue);\n }\n\n if (!writeNode(state, level, objectKey, false, false)) {\n continue; // Skip this pair because of invalid key;\n }\n\n if (state.dump.length > 1024) pairBuffer += '? ';\n\n pairBuffer += state.dump + (state.condenseFlow ? '\"' : '') + ':' + (state.condenseFlow ? '' : ' ');\n\n if (!writeNode(state, level, objectValue, false, false)) {\n continue; // Skip this pair because of invalid value.\n }\n\n pairBuffer += state.dump;\n\n // Both key and value are valid.\n _result += pairBuffer;\n }\n\n state.tag = _tag;\n state.dump = '{' + _result + '}';\n}\n\nfunction writeBlockMapping(state, level, object, compact) {\n var _result = '',\n _tag = state.tag,\n objectKeyList = Object.keys(object),\n index,\n length,\n objectKey,\n objectValue,\n explicitPair,\n pairBuffer;\n\n // Allow sorting keys so that the output file is deterministic\n if (state.sortKeys === true) {\n // Default sorting\n objectKeyList.sort();\n } else if (typeof state.sortKeys === 'function') {\n // Custom sort function\n objectKeyList.sort(state.sortKeys);\n } else if (state.sortKeys) {\n // Something is wrong\n throw new YAMLException('sortKeys must be a boolean or a function');\n }\n\n for (index = 0, length = objectKeyList.length; index < length; index += 1) {\n pairBuffer = '';\n\n if (!compact || _result !== '') {\n pairBuffer += generateNextLine(state, level);\n }\n\n objectKey = objectKeyList[index];\n objectValue = object[objectKey];\n\n if (state.replacer) {\n objectValue = state.replacer.call(object, objectKey, objectValue);\n }\n\n if (!writeNode(state, level + 1, objectKey, true, true, true)) {\n continue; // Skip this pair because of invalid key.\n }\n\n explicitPair = (state.tag !== null && state.tag !== '?') ||\n (state.dump && state.dump.length > 1024);\n\n if (explicitPair) {\n if (state.dump && CHAR_LINE_FEED === state.dump.charCodeAt(0)) {\n pairBuffer += '?';\n } else {\n pairBuffer += '? ';\n }\n }\n\n pairBuffer += state.dump;\n\n if (explicitPair) {\n pairBuffer += generateNextLine(state, level);\n }\n\n if (!writeNode(state, level + 1, objectValue, true, explicitPair)) {\n continue; // Skip this pair because of invalid value.\n }\n\n if (state.dump && CHAR_LINE_FEED === state.dump.charCodeAt(0)) {\n pairBuffer += ':';\n } else {\n pairBuffer += ': ';\n }\n\n pairBuffer += state.dump;\n\n // Both key and value are valid.\n _result += pairBuffer;\n }\n\n state.tag = _tag;\n state.dump = _result || '{}'; // Empty mapping if no valid pairs.\n}\n\nfunction detectType(state, object, explicit) {\n var _result, typeList, index, length, type, style;\n\n typeList = explicit ? state.explicitTypes : state.implicitTypes;\n\n for (index = 0, length = typeList.length; index < length; index += 1) {\n type = typeList[index];\n\n if ((type.instanceOf || type.predicate) &&\n (!type.instanceOf || ((typeof object === 'object') && (object instanceof type.instanceOf))) &&\n (!type.predicate || type.predicate(object))) {\n\n if (explicit) {\n if (type.multi && type.representName) {\n state.tag = type.representName(object);\n } else {\n state.tag = type.tag;\n }\n } else {\n state.tag = '?';\n }\n\n if (type.represent) {\n style = state.styleMap[type.tag] || type.defaultStyle;\n\n if (_toString.call(type.represent) === '[object Function]') {\n _result = type.represent(object, style);\n } else if (_hasOwnProperty.call(type.represent, style)) {\n _result = type.represent[style](object, style);\n } else {\n throw new YAMLException('!<' + type.tag + '> tag resolver accepts not \"' + style + '\" style');\n }\n\n state.dump = _result;\n }\n\n return true;\n }\n }\n\n return false;\n}\n\n// Serializes `object` and writes it to global `result`.\n// Returns true on success, or false on invalid object.\n//\nfunction writeNode(state, level, object, block, compact, iskey, isblockseq) {\n state.tag = null;\n state.dump = object;\n\n if (!detectType(state, object, false)) {\n detectType(state, object, true);\n }\n\n var type = _toString.call(state.dump);\n var inblock = block;\n var tagStr;\n\n if (block) {\n block = (state.flowLevel < 0 || state.flowLevel > level);\n }\n\n var objectOrArray = type === '[object Object]' || type === '[object Array]',\n duplicateIndex,\n duplicate;\n\n if (objectOrArray) {\n duplicateIndex = state.duplicates.indexOf(object);\n duplicate = duplicateIndex !== -1;\n }\n\n if ((state.tag !== null && state.tag !== '?') || duplicate || (state.indent !== 2 && level > 0)) {\n compact = false;\n }\n\n if (duplicate && state.usedDuplicates[duplicateIndex]) {\n state.dump = '*ref_' + duplicateIndex;\n } else {\n if (objectOrArray && duplicate && !state.usedDuplicates[duplicateIndex]) {\n state.usedDuplicates[duplicateIndex] = true;\n }\n if (type === '[object Object]') {\n if (block && (Object.keys(state.dump).length !== 0)) {\n writeBlockMapping(state, level, state.dump, compact);\n if (duplicate) {\n state.dump = '&ref_' + duplicateIndex + state.dump;\n }\n } else {\n writeFlowMapping(state, level, state.dump);\n if (duplicate) {\n state.dump = '&ref_' + duplicateIndex + ' ' + state.dump;\n }\n }\n } else if (type === '[object Array]') {\n if (block && (state.dump.length !== 0)) {\n if (state.noArrayIndent && !isblockseq && level > 0) {\n writeBlockSequence(state, level - 1, state.dump, compact);\n } else {\n writeBlockSequence(state, level, state.dump, compact);\n }\n if (duplicate) {\n state.dump = '&ref_' + duplicateIndex + state.dump;\n }\n } else {\n writeFlowSequence(state, level, state.dump);\n if (duplicate) {\n state.dump = '&ref_' + duplicateIndex + ' ' + state.dump;\n }\n }\n } else if (type === '[object String]') {\n if (state.tag !== '?') {\n writeScalar(state, state.dump, level, iskey, inblock);\n }\n } else if (type === '[object Undefined]') {\n return false;\n } else {\n if (state.skipInvalid) return false;\n throw new YAMLException('unacceptable kind of an object to dump ' + type);\n }\n\n if (state.tag !== null && state.tag !== '?') {\n // Need to encode all characters except those allowed by the spec:\n //\n // [35] ns-dec-digit ::= [#x30-#x39] /* 0-9 */\n // [36] ns-hex-digit ::= ns-dec-digit\n // | [#x41-#x46] /* A-F */ | [#x61-#x66] /* a-f */\n // [37] ns-ascii-letter ::= [#x41-#x5A] /* A-Z */ | [#x61-#x7A] /* a-z */\n // [38] ns-word-char ::= ns-dec-digit | ns-ascii-letter | “-”\n // [39] ns-uri-char ::= “%” ns-hex-digit ns-hex-digit | ns-word-char | “#”\n // | “;” | “/” | “?” | “:” | “@” | “&” | “=” | “+” | “$” | “,”\n // | “_” | “.” | “!” | “~” | “*” | “'” | “(” | “)” | “[” | “]”\n //\n // Also need to encode '!' because it has special meaning (end of tag prefix).\n //\n tagStr = encodeURI(\n state.tag[0] === '!' ? state.tag.slice(1) : state.tag\n ).replace(/!/g, '%21');\n\n if (state.tag[0] === '!') {\n tagStr = '!' + tagStr;\n } else if (tagStr.slice(0, 18) === 'tag:yaml.org,2002:') {\n tagStr = '!!' + tagStr.slice(18);\n } else {\n tagStr = '!<' + tagStr + '>';\n }\n\n state.dump = tagStr + ' ' + state.dump;\n }\n }\n\n return true;\n}\n\nfunction getDuplicateReferences(object, state) {\n var objects = [],\n duplicatesIndexes = [],\n index,\n length;\n\n inspectNode(object, objects, duplicatesIndexes);\n\n for (index = 0, length = duplicatesIndexes.length; index < length; index += 1) {\n state.duplicates.push(objects[duplicatesIndexes[index]]);\n }\n state.usedDuplicates = new Array(length);\n}\n\nfunction inspectNode(object, objects, duplicatesIndexes) {\n var objectKeyList,\n index,\n length;\n\n if (object !== null && typeof object === 'object') {\n index = objects.indexOf(object);\n if (index !== -1) {\n if (duplicatesIndexes.indexOf(index) === -1) {\n duplicatesIndexes.push(index);\n }\n } else {\n objects.push(object);\n\n if (Array.isArray(object)) {\n for (index = 0, length = object.length; index < length; index += 1) {\n inspectNode(object[index], objects, duplicatesIndexes);\n }\n } else {\n objectKeyList = Object.keys(object);\n\n for (index = 0, length = objectKeyList.length; index < length; index += 1) {\n inspectNode(object[objectKeyList[index]], objects, duplicatesIndexes);\n }\n }\n }\n }\n}\n\nfunction dump(input, options) {\n options = options || {};\n\n var state = new State(options);\n\n if (!state.noRefs) getDuplicateReferences(input, state);\n\n var value = input;\n\n if (state.replacer) {\n value = state.replacer.call({ '': value }, '', value);\n }\n\n if (writeNode(state, 0, value, true, true)) return state.dump + '\\n';\n\n return '';\n}\n\nmodule.exports.dump = dump;\n","// YAML error class. http://stackoverflow.com/questions/8458984\n//\n'use strict';\n\n\nfunction formatError(exception, compact) {\n var where = '', message = exception.reason || '(unknown reason)';\n\n if (!exception.mark) return message;\n\n if (exception.mark.name) {\n where += 'in \"' + exception.mark.name + '\" ';\n }\n\n where += '(' + (exception.mark.line + 1) + ':' + (exception.mark.column + 1) + ')';\n\n if (!compact && exception.mark.snippet) {\n where += '\\n\\n' + exception.mark.snippet;\n }\n\n return message + ' ' + where;\n}\n\n\nfunction YAMLException(reason, mark) {\n // Super constructor\n Error.call(this);\n\n this.name = 'YAMLException';\n this.reason = reason;\n this.mark = mark;\n this.message = formatError(this, false);\n\n // Include stack trace in error object\n if (Error.captureStackTrace) {\n // Chrome and NodeJS\n Error.captureStackTrace(this, this.constructor);\n } else {\n // FF, IE 10+ and Safari 6+. Fallback for others\n this.stack = (new Error()).stack || '';\n }\n}\n\n\n// Inherit from Error\nYAMLException.prototype = Object.create(Error.prototype);\nYAMLException.prototype.constructor = YAMLException;\n\n\nYAMLException.prototype.toString = function toString(compact) {\n return this.name + ': ' + formatError(this, compact);\n};\n\n\nmodule.exports = YAMLException;\n","'use strict';\n\n/*eslint-disable max-len,no-use-before-define*/\n\nvar common = require('./common');\nvar YAMLException = require('./exception');\nvar makeSnippet = require('./snippet');\nvar DEFAULT_SCHEMA = require('./schema/default');\n\n\nvar _hasOwnProperty = Object.prototype.hasOwnProperty;\n\n\nvar CONTEXT_FLOW_IN = 1;\nvar CONTEXT_FLOW_OUT = 2;\nvar CONTEXT_BLOCK_IN = 3;\nvar CONTEXT_BLOCK_OUT = 4;\n\n\nvar CHOMPING_CLIP = 1;\nvar CHOMPING_STRIP = 2;\nvar CHOMPING_KEEP = 3;\n\n\nvar PATTERN_NON_PRINTABLE = /[\\x00-\\x08\\x0B\\x0C\\x0E-\\x1F\\x7F-\\x84\\x86-\\x9F\\uFFFE\\uFFFF]|[\\uD800-\\uDBFF](?![\\uDC00-\\uDFFF])|(?:[^\\uD800-\\uDBFF]|^)[\\uDC00-\\uDFFF]/;\nvar PATTERN_NON_ASCII_LINE_BREAKS = /[\\x85\\u2028\\u2029]/;\nvar PATTERN_FLOW_INDICATORS = /[,\\[\\]\\{\\}]/;\nvar PATTERN_TAG_HANDLE = /^(?:!|!!|![a-z\\-]+!)$/i;\nvar PATTERN_TAG_URI = /^(?:!|[^,\\[\\]\\{\\}])(?:%[0-9a-f]{2}|[0-9a-z\\-#;\\/\\?:@&=\\+\\$,_\\.!~\\*'\\(\\)\\[\\]])*$/i;\n\n\nfunction _class(obj) { return Object.prototype.toString.call(obj); }\n\nfunction is_EOL(c) {\n return (c === 0x0A/* LF */) || (c === 0x0D/* CR */);\n}\n\nfunction is_WHITE_SPACE(c) {\n return (c === 0x09/* Tab */) || (c === 0x20/* Space */);\n}\n\nfunction is_WS_OR_EOL(c) {\n return (c === 0x09/* Tab */) ||\n (c === 0x20/* Space */) ||\n (c === 0x0A/* LF */) ||\n (c === 0x0D/* CR */);\n}\n\nfunction is_FLOW_INDICATOR(c) {\n return c === 0x2C/* , */ ||\n c === 0x5B/* [ */ ||\n c === 0x5D/* ] */ ||\n c === 0x7B/* { */ ||\n c === 0x7D/* } */;\n}\n\nfunction fromHexCode(c) {\n var lc;\n\n if ((0x30/* 0 */ <= c) && (c <= 0x39/* 9 */)) {\n return c - 0x30;\n }\n\n /*eslint-disable no-bitwise*/\n lc = c | 0x20;\n\n if ((0x61/* a */ <= lc) && (lc <= 0x66/* f */)) {\n return lc - 0x61 + 10;\n }\n\n return -1;\n}\n\nfunction escapedHexLen(c) {\n if (c === 0x78/* x */) { return 2; }\n if (c === 0x75/* u */) { return 4; }\n if (c === 0x55/* U */) { return 8; }\n return 0;\n}\n\nfunction fromDecimalCode(c) {\n if ((0x30/* 0 */ <= c) && (c <= 0x39/* 9 */)) {\n return c - 0x30;\n }\n\n return -1;\n}\n\nfunction simpleEscapeSequence(c) {\n /* eslint-disable indent */\n return (c === 0x30/* 0 */) ? '\\x00' :\n (c === 0x61/* a */) ? '\\x07' :\n (c === 0x62/* b */) ? '\\x08' :\n (c === 0x74/* t */) ? '\\x09' :\n (c === 0x09/* Tab */) ? '\\x09' :\n (c === 0x6E/* n */) ? '\\x0A' :\n (c === 0x76/* v */) ? '\\x0B' :\n (c === 0x66/* f */) ? '\\x0C' :\n (c === 0x72/* r */) ? '\\x0D' :\n (c === 0x65/* e */) ? '\\x1B' :\n (c === 0x20/* Space */) ? ' ' :\n (c === 0x22/* \" */) ? '\\x22' :\n (c === 0x2F/* / */) ? '/' :\n (c === 0x5C/* \\ */) ? '\\x5C' :\n (c === 0x4E/* N */) ? '\\x85' :\n (c === 0x5F/* _ */) ? '\\xA0' :\n (c === 0x4C/* L */) ? '\\u2028' :\n (c === 0x50/* P */) ? '\\u2029' : '';\n}\n\nfunction charFromCodepoint(c) {\n if (c <= 0xFFFF) {\n return String.fromCharCode(c);\n }\n // Encode UTF-16 surrogate pair\n // https://en.wikipedia.org/wiki/UTF-16#Code_points_U.2B010000_to_U.2B10FFFF\n return String.fromCharCode(\n ((c - 0x010000) >> 10) + 0xD800,\n ((c - 0x010000) & 0x03FF) + 0xDC00\n );\n}\n\nvar simpleEscapeCheck = new Array(256); // integer, for fast access\nvar simpleEscapeMap = new Array(256);\nfor (var i = 0; i < 256; i++) {\n simpleEscapeCheck[i] = simpleEscapeSequence(i) ? 1 : 0;\n simpleEscapeMap[i] = simpleEscapeSequence(i);\n}\n\n\nfunction State(input, options) {\n this.input = input;\n\n this.filename = options['filename'] || null;\n this.schema = options['schema'] || DEFAULT_SCHEMA;\n this.onWarning = options['onWarning'] || null;\n // (Hidden) Remove? makes the loader to expect YAML 1.1 documents\n // if such documents have no explicit %YAML directive\n this.legacy = options['legacy'] || false;\n\n this.json = options['json'] || false;\n this.listener = options['listener'] || null;\n\n this.implicitTypes = this.schema.compiledImplicit;\n this.typeMap = this.schema.compiledTypeMap;\n\n this.length = input.length;\n this.position = 0;\n this.line = 0;\n this.lineStart = 0;\n this.lineIndent = 0;\n\n // position of first leading tab in the current line,\n // used to make sure there are no tabs in the indentation\n this.firstTabInLine = -1;\n\n this.documents = [];\n\n /*\n this.version;\n this.checkLineBreaks;\n this.tagMap;\n this.anchorMap;\n this.tag;\n this.anchor;\n this.kind;\n this.result;*/\n\n}\n\n\nfunction generateError(state, message) {\n var mark = {\n name: state.filename,\n buffer: state.input.slice(0, -1), // omit trailing \\0\n position: state.position,\n line: state.line,\n column: state.position - state.lineStart\n };\n\n mark.snippet = makeSnippet(mark);\n\n return new YAMLException(message, mark);\n}\n\nfunction throwError(state, message) {\n throw generateError(state, message);\n}\n\nfunction throwWarning(state, message) {\n if (state.onWarning) {\n state.onWarning.call(null, generateError(state, message));\n }\n}\n\n\nvar directiveHandlers = {\n\n YAML: function handleYamlDirective(state, name, args) {\n\n var match, major, minor;\n\n if (state.version !== null) {\n throwError(state, 'duplication of %YAML directive');\n }\n\n if (args.length !== 1) {\n throwError(state, 'YAML directive accepts exactly one argument');\n }\n\n match = /^([0-9]+)\\.([0-9]+)$/.exec(args[0]);\n\n if (match === null) {\n throwError(state, 'ill-formed argument of the YAML directive');\n }\n\n major = parseInt(match[1], 10);\n minor = parseInt(match[2], 10);\n\n if (major !== 1) {\n throwError(state, 'unacceptable YAML version of the document');\n }\n\n state.version = args[0];\n state.checkLineBreaks = (minor < 2);\n\n if (minor !== 1 && minor !== 2) {\n throwWarning(state, 'unsupported YAML version of the document');\n }\n },\n\n TAG: function handleTagDirective(state, name, args) {\n\n var handle, prefix;\n\n if (args.length !== 2) {\n throwError(state, 'TAG directive accepts exactly two arguments');\n }\n\n handle = args[0];\n prefix = args[1];\n\n if (!PATTERN_TAG_HANDLE.test(handle)) {\n throwError(state, 'ill-formed tag handle (first argument) of the TAG directive');\n }\n\n if (_hasOwnProperty.call(state.tagMap, handle)) {\n throwError(state, 'there is a previously declared suffix for \"' + handle + '\" tag handle');\n }\n\n if (!PATTERN_TAG_URI.test(prefix)) {\n throwError(state, 'ill-formed tag prefix (second argument) of the TAG directive');\n }\n\n try {\n prefix = decodeURIComponent(prefix);\n } catch (err) {\n throwError(state, 'tag prefix is malformed: ' + prefix);\n }\n\n state.tagMap[handle] = prefix;\n }\n};\n\n\nfunction captureSegment(state, start, end, checkJson) {\n var _position, _length, _character, _result;\n\n if (start < end) {\n _result = state.input.slice(start, end);\n\n if (checkJson) {\n for (_position = 0, _length = _result.length; _position < _length; _position += 1) {\n _character = _result.charCodeAt(_position);\n if (!(_character === 0x09 ||\n (0x20 <= _character && _character <= 0x10FFFF))) {\n throwError(state, 'expected valid JSON character');\n }\n }\n } else if (PATTERN_NON_PRINTABLE.test(_result)) {\n throwError(state, 'the stream contains non-printable characters');\n }\n\n state.result += _result;\n }\n}\n\nfunction mergeMappings(state, destination, source, overridableKeys) {\n var sourceKeys, key, index, quantity;\n\n if (!common.isObject(source)) {\n throwError(state, 'cannot merge mappings; the provided source object is unacceptable');\n }\n\n sourceKeys = Object.keys(source);\n\n for (index = 0, quantity = sourceKeys.length; index < quantity; index += 1) {\n key = sourceKeys[index];\n\n if (!_hasOwnProperty.call(destination, key)) {\n destination[key] = source[key];\n overridableKeys[key] = true;\n }\n }\n}\n\nfunction storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, valueNode,\n startLine, startLineStart, startPos) {\n\n var index, quantity;\n\n // The output is a plain object here, so keys can only be strings.\n // We need to convert keyNode to a string, but doing so can hang the process\n // (deeply nested arrays that explode exponentially using aliases).\n if (Array.isArray(keyNode)) {\n keyNode = Array.prototype.slice.call(keyNode);\n\n for (index = 0, quantity = keyNode.length; index < quantity; index += 1) {\n if (Array.isArray(keyNode[index])) {\n throwError(state, 'nested arrays are not supported inside keys');\n }\n\n if (typeof keyNode === 'object' && _class(keyNode[index]) === '[object Object]') {\n keyNode[index] = '[object Object]';\n }\n }\n }\n\n // Avoid code execution in load() via toString property\n // (still use its own toString for arrays, timestamps,\n // and whatever user schema extensions happen to have @@toStringTag)\n if (typeof keyNode === 'object' && _class(keyNode) === '[object Object]') {\n keyNode = '[object Object]';\n }\n\n\n keyNode = String(keyNode);\n\n if (_result === null) {\n _result = {};\n }\n\n if (keyTag === 'tag:yaml.org,2002:merge') {\n if (Array.isArray(valueNode)) {\n for (index = 0, quantity = valueNode.length; index < quantity; index += 1) {\n mergeMappings(state, _result, valueNode[index], overridableKeys);\n }\n } else {\n mergeMappings(state, _result, valueNode, overridableKeys);\n }\n } else {\n if (!state.json &&\n !_hasOwnProperty.call(overridableKeys, keyNode) &&\n _hasOwnProperty.call(_result, keyNode)) {\n state.line = startLine || state.line;\n state.lineStart = startLineStart || state.lineStart;\n state.position = startPos || state.position;\n throwError(state, 'duplicated mapping key');\n }\n\n // used for this specific key only because Object.defineProperty is slow\n if (keyNode === '__proto__') {\n Object.defineProperty(_result, keyNode, {\n configurable: true,\n enumerable: true,\n writable: true,\n value: valueNode\n });\n } else {\n _result[keyNode] = valueNode;\n }\n delete overridableKeys[keyNode];\n }\n\n return _result;\n}\n\nfunction readLineBreak(state) {\n var ch;\n\n ch = state.input.charCodeAt(state.position);\n\n if (ch === 0x0A/* LF */) {\n state.position++;\n } else if (ch === 0x0D/* CR */) {\n state.position++;\n if (state.input.charCodeAt(state.position) === 0x0A/* LF */) {\n state.position++;\n }\n } else {\n throwError(state, 'a line break is expected');\n }\n\n state.line += 1;\n state.lineStart = state.position;\n state.firstTabInLine = -1;\n}\n\nfunction skipSeparationSpace(state, allowComments, checkIndent) {\n var lineBreaks = 0,\n ch = state.input.charCodeAt(state.position);\n\n while (ch !== 0) {\n while (is_WHITE_SPACE(ch)) {\n if (ch === 0x09/* Tab */ && state.firstTabInLine === -1) {\n state.firstTabInLine = state.position;\n }\n ch = state.input.charCodeAt(++state.position);\n }\n\n if (allowComments && ch === 0x23/* # */) {\n do {\n ch = state.input.charCodeAt(++state.position);\n } while (ch !== 0x0A/* LF */ && ch !== 0x0D/* CR */ && ch !== 0);\n }\n\n if (is_EOL(ch)) {\n readLineBreak(state);\n\n ch = state.input.charCodeAt(state.position);\n lineBreaks++;\n state.lineIndent = 0;\n\n while (ch === 0x20/* Space */) {\n state.lineIndent++;\n ch = state.input.charCodeAt(++state.position);\n }\n } else {\n break;\n }\n }\n\n if (checkIndent !== -1 && lineBreaks !== 0 && state.lineIndent < checkIndent) {\n throwWarning(state, 'deficient indentation');\n }\n\n return lineBreaks;\n}\n\nfunction testDocumentSeparator(state) {\n var _position = state.position,\n ch;\n\n ch = state.input.charCodeAt(_position);\n\n // Condition state.position === state.lineStart is tested\n // in parent on each call, for efficiency. No needs to test here again.\n if ((ch === 0x2D/* - */ || ch === 0x2E/* . */) &&\n ch === state.input.charCodeAt(_position + 1) &&\n ch === state.input.charCodeAt(_position + 2)) {\n\n _position += 3;\n\n ch = state.input.charCodeAt(_position);\n\n if (ch === 0 || is_WS_OR_EOL(ch)) {\n return true;\n }\n }\n\n return false;\n}\n\nfunction writeFoldedLines(state, count) {\n if (count === 1) {\n state.result += ' ';\n } else if (count > 1) {\n state.result += common.repeat('\\n', count - 1);\n }\n}\n\n\nfunction readPlainScalar(state, nodeIndent, withinFlowCollection) {\n var preceding,\n following,\n captureStart,\n captureEnd,\n hasPendingContent,\n _line,\n _lineStart,\n _lineIndent,\n _kind = state.kind,\n _result = state.result,\n ch;\n\n ch = state.input.charCodeAt(state.position);\n\n if (is_WS_OR_EOL(ch) ||\n is_FLOW_INDICATOR(ch) ||\n ch === 0x23/* # */ ||\n ch === 0x26/* & */ ||\n ch === 0x2A/* * */ ||\n ch === 0x21/* ! */ ||\n ch === 0x7C/* | */ ||\n ch === 0x3E/* > */ ||\n ch === 0x27/* ' */ ||\n ch === 0x22/* \" */ ||\n ch === 0x25/* % */ ||\n ch === 0x40/* @ */ ||\n ch === 0x60/* ` */) {\n return false;\n }\n\n if (ch === 0x3F/* ? */ || ch === 0x2D/* - */) {\n following = state.input.charCodeAt(state.position + 1);\n\n if (is_WS_OR_EOL(following) ||\n withinFlowCollection && is_FLOW_INDICATOR(following)) {\n return false;\n }\n }\n\n state.kind = 'scalar';\n state.result = '';\n captureStart = captureEnd = state.position;\n hasPendingContent = false;\n\n while (ch !== 0) {\n if (ch === 0x3A/* : */) {\n following = state.input.charCodeAt(state.position + 1);\n\n if (is_WS_OR_EOL(following) ||\n withinFlowCollection && is_FLOW_INDICATOR(following)) {\n break;\n }\n\n } else if (ch === 0x23/* # */) {\n preceding = state.input.charCodeAt(state.position - 1);\n\n if (is_WS_OR_EOL(preceding)) {\n break;\n }\n\n } else if ((state.position === state.lineStart && testDocumentSeparator(state)) ||\n withinFlowCollection && is_FLOW_INDICATOR(ch)) {\n break;\n\n } else if (is_EOL(ch)) {\n _line = state.line;\n _lineStart = state.lineStart;\n _lineIndent = state.lineIndent;\n skipSeparationSpace(state, false, -1);\n\n if (state.lineIndent >= nodeIndent) {\n hasPendingContent = true;\n ch = state.input.charCodeAt(state.position);\n continue;\n } else {\n state.position = captureEnd;\n state.line = _line;\n state.lineStart = _lineStart;\n state.lineIndent = _lineIndent;\n break;\n }\n }\n\n if (hasPendingContent) {\n captureSegment(state, captureStart, captureEnd, false);\n writeFoldedLines(state, state.line - _line);\n captureStart = captureEnd = state.position;\n hasPendingContent = false;\n }\n\n if (!is_WHITE_SPACE(ch)) {\n captureEnd = state.position + 1;\n }\n\n ch = state.input.charCodeAt(++state.position);\n }\n\n captureSegment(state, captureStart, captureEnd, false);\n\n if (state.result) {\n return true;\n }\n\n state.kind = _kind;\n state.result = _result;\n return false;\n}\n\nfunction readSingleQuotedScalar(state, nodeIndent) {\n var ch,\n captureStart, captureEnd;\n\n ch = state.input.charCodeAt(state.position);\n\n if (ch !== 0x27/* ' */) {\n return false;\n }\n\n state.kind = 'scalar';\n state.result = '';\n state.position++;\n captureStart = captureEnd = state.position;\n\n while ((ch = state.input.charCodeAt(state.position)) !== 0) {\n if (ch === 0x27/* ' */) {\n captureSegment(state, captureStart, state.position, true);\n ch = state.input.charCodeAt(++state.position);\n\n if (ch === 0x27/* ' */) {\n captureStart = state.position;\n state.position++;\n captureEnd = state.position;\n } else {\n return true;\n }\n\n } else if (is_EOL(ch)) {\n captureSegment(state, captureStart, captureEnd, true);\n writeFoldedLines(state, skipSeparationSpace(state, false, nodeIndent));\n captureStart = captureEnd = state.position;\n\n } else if (state.position === state.lineStart && testDocumentSeparator(state)) {\n throwError(state, 'unexpected end of the document within a single quoted scalar');\n\n } else {\n state.position++;\n captureEnd = state.position;\n }\n }\n\n throwError(state, 'unexpected end of the stream within a single quoted scalar');\n}\n\nfunction readDoubleQuotedScalar(state, nodeIndent) {\n var captureStart,\n captureEnd,\n hexLength,\n hexResult,\n tmp,\n ch;\n\n ch = state.input.charCodeAt(state.position);\n\n if (ch !== 0x22/* \" */) {\n return false;\n }\n\n state.kind = 'scalar';\n state.result = '';\n state.position++;\n captureStart = captureEnd = state.position;\n\n while ((ch = state.input.charCodeAt(state.position)) !== 0) {\n if (ch === 0x22/* \" */) {\n captureSegment(state, captureStart, state.position, true);\n state.position++;\n return true;\n\n } else if (ch === 0x5C/* \\ */) {\n captureSegment(state, captureStart, state.position, true);\n ch = state.input.charCodeAt(++state.position);\n\n if (is_EOL(ch)) {\n skipSeparationSpace(state, false, nodeIndent);\n\n // TODO: rework to inline fn with no type cast?\n } else if (ch < 256 && simpleEscapeCheck[ch]) {\n state.result += simpleEscapeMap[ch];\n state.position++;\n\n } else if ((tmp = escapedHexLen(ch)) > 0) {\n hexLength = tmp;\n hexResult = 0;\n\n for (; hexLength > 0; hexLength--) {\n ch = state.input.charCodeAt(++state.position);\n\n if ((tmp = fromHexCode(ch)) >= 0) {\n hexResult = (hexResult << 4) + tmp;\n\n } else {\n throwError(state, 'expected hexadecimal character');\n }\n }\n\n state.result += charFromCodepoint(hexResult);\n\n state.position++;\n\n } else {\n throwError(state, 'unknown escape sequence');\n }\n\n captureStart = captureEnd = state.position;\n\n } else if (is_EOL(ch)) {\n captureSegment(state, captureStart, captureEnd, true);\n writeFoldedLines(state, skipSeparationSpace(state, false, nodeIndent));\n captureStart = captureEnd = state.position;\n\n } else if (state.position === state.lineStart && testDocumentSeparator(state)) {\n throwError(state, 'unexpected end of the document within a double quoted scalar');\n\n } else {\n state.position++;\n captureEnd = state.position;\n }\n }\n\n throwError(state, 'unexpected end of the stream within a double quoted scalar');\n}\n\nfunction readFlowCollection(state, nodeIndent) {\n var readNext = true,\n _line,\n _lineStart,\n _pos,\n _tag = state.tag,\n _result,\n _anchor = state.anchor,\n following,\n terminator,\n isPair,\n isExplicitPair,\n isMapping,\n overridableKeys = Object.create(null),\n keyNode,\n keyTag,\n valueNode,\n ch;\n\n ch = state.input.charCodeAt(state.position);\n\n if (ch === 0x5B/* [ */) {\n terminator = 0x5D;/* ] */\n isMapping = false;\n _result = [];\n } else if (ch === 0x7B/* { */) {\n terminator = 0x7D;/* } */\n isMapping = true;\n _result = {};\n } else {\n return false;\n }\n\n if (state.anchor !== null) {\n state.anchorMap[state.anchor] = _result;\n }\n\n ch = state.input.charCodeAt(++state.position);\n\n while (ch !== 0) {\n skipSeparationSpace(state, true, nodeIndent);\n\n ch = state.input.charCodeAt(state.position);\n\n if (ch === terminator) {\n state.position++;\n state.tag = _tag;\n state.anchor = _anchor;\n state.kind = isMapping ? 'mapping' : 'sequence';\n state.result = _result;\n return true;\n } else if (!readNext) {\n throwError(state, 'missed comma between flow collection entries');\n } else if (ch === 0x2C/* , */) {\n // \"flow collection entries can never be completely empty\", as per YAML 1.2, section 7.4\n throwError(state, \"expected the node content, but found ','\");\n }\n\n keyTag = keyNode = valueNode = null;\n isPair = isExplicitPair = false;\n\n if (ch === 0x3F/* ? */) {\n following = state.input.charCodeAt(state.position + 1);\n\n if (is_WS_OR_EOL(following)) {\n isPair = isExplicitPair = true;\n state.position++;\n skipSeparationSpace(state, true, nodeIndent);\n }\n }\n\n _line = state.line; // Save the current line.\n _lineStart = state.lineStart;\n _pos = state.position;\n composeNode(state, nodeIndent, CONTEXT_FLOW_IN, false, true);\n keyTag = state.tag;\n keyNode = state.result;\n skipSeparationSpace(state, true, nodeIndent);\n\n ch = state.input.charCodeAt(state.position);\n\n if ((isExplicitPair || state.line === _line) && ch === 0x3A/* : */) {\n isPair = true;\n ch = state.input.charCodeAt(++state.position);\n skipSeparationSpace(state, true, nodeIndent);\n composeNode(state, nodeIndent, CONTEXT_FLOW_IN, false, true);\n valueNode = state.result;\n }\n\n if (isMapping) {\n storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, valueNode, _line, _lineStart, _pos);\n } else if (isPair) {\n _result.push(storeMappingPair(state, null, overridableKeys, keyTag, keyNode, valueNode, _line, _lineStart, _pos));\n } else {\n _result.push(keyNode);\n }\n\n skipSeparationSpace(state, true, nodeIndent);\n\n ch = state.input.charCodeAt(state.position);\n\n if (ch === 0x2C/* , */) {\n readNext = true;\n ch = state.input.charCodeAt(++state.position);\n } else {\n readNext = false;\n }\n }\n\n throwError(state, 'unexpected end of the stream within a flow collection');\n}\n\nfunction readBlockScalar(state, nodeIndent) {\n var captureStart,\n folding,\n chomping = CHOMPING_CLIP,\n didReadContent = false,\n detectedIndent = false,\n textIndent = nodeIndent,\n emptyLines = 0,\n atMoreIndented = false,\n tmp,\n ch;\n\n ch = state.input.charCodeAt(state.position);\n\n if (ch === 0x7C/* | */) {\n folding = false;\n } else if (ch === 0x3E/* > */) {\n folding = true;\n } else {\n return false;\n }\n\n state.kind = 'scalar';\n state.result = '';\n\n while (ch !== 0) {\n ch = state.input.charCodeAt(++state.position);\n\n if (ch === 0x2B/* + */ || ch === 0x2D/* - */) {\n if (CHOMPING_CLIP === chomping) {\n chomping = (ch === 0x2B/* + */) ? CHOMPING_KEEP : CHOMPING_STRIP;\n } else {\n throwError(state, 'repeat of a chomping mode identifier');\n }\n\n } else if ((tmp = fromDecimalCode(ch)) >= 0) {\n if (tmp === 0) {\n throwError(state, 'bad explicit indentation width of a block scalar; it cannot be less than one');\n } else if (!detectedIndent) {\n textIndent = nodeIndent + tmp - 1;\n detectedIndent = true;\n } else {\n throwError(state, 'repeat of an indentation width identifier');\n }\n\n } else {\n break;\n }\n }\n\n if (is_WHITE_SPACE(ch)) {\n do { ch = state.input.charCodeAt(++state.position); }\n while (is_WHITE_SPACE(ch));\n\n if (ch === 0x23/* # */) {\n do { ch = state.input.charCodeAt(++state.position); }\n while (!is_EOL(ch) && (ch !== 0));\n }\n }\n\n while (ch !== 0) {\n readLineBreak(state);\n state.lineIndent = 0;\n\n ch = state.input.charCodeAt(state.position);\n\n while ((!detectedIndent || state.lineIndent < textIndent) &&\n (ch === 0x20/* Space */)) {\n state.lineIndent++;\n ch = state.input.charCodeAt(++state.position);\n }\n\n if (!detectedIndent && state.lineIndent > textIndent) {\n textIndent = state.lineIndent;\n }\n\n if (is_EOL(ch)) {\n emptyLines++;\n continue;\n }\n\n // End of the scalar.\n if (state.lineIndent < textIndent) {\n\n // Perform the chomping.\n if (chomping === CHOMPING_KEEP) {\n state.result += common.repeat('\\n', didReadContent ? 1 + emptyLines : emptyLines);\n } else if (chomping === CHOMPING_CLIP) {\n if (didReadContent) { // i.e. only if the scalar is not empty.\n state.result += '\\n';\n }\n }\n\n // Break this `while` cycle and go to the funciton's epilogue.\n break;\n }\n\n // Folded style: use fancy rules to handle line breaks.\n if (folding) {\n\n // Lines starting with white space characters (more-indented lines) are not folded.\n if (is_WHITE_SPACE(ch)) {\n atMoreIndented = true;\n // except for the first content line (cf. Example 8.1)\n state.result += common.repeat('\\n', didReadContent ? 1 + emptyLines : emptyLines);\n\n // End of more-indented block.\n } else if (atMoreIndented) {\n atMoreIndented = false;\n state.result += common.repeat('\\n', emptyLines + 1);\n\n // Just one line break - perceive as the same line.\n } else if (emptyLines === 0) {\n if (didReadContent) { // i.e. only if we have already read some scalar content.\n state.result += ' ';\n }\n\n // Several line breaks - perceive as different lines.\n } else {\n state.result += common.repeat('\\n', emptyLines);\n }\n\n // Literal style: just add exact number of line breaks between content lines.\n } else {\n // Keep all line breaks except the header line break.\n state.result += common.repeat('\\n', didReadContent ? 1 + emptyLines : emptyLines);\n }\n\n didReadContent = true;\n detectedIndent = true;\n emptyLines = 0;\n captureStart = state.position;\n\n while (!is_EOL(ch) && (ch !== 0)) {\n ch = state.input.charCodeAt(++state.position);\n }\n\n captureSegment(state, captureStart, state.position, false);\n }\n\n return true;\n}\n\nfunction readBlockSequence(state, nodeIndent) {\n var _line,\n _tag = state.tag,\n _anchor = state.anchor,\n _result = [],\n following,\n detected = false,\n ch;\n\n // there is a leading tab before this token, so it can't be a block sequence/mapping;\n // it can still be flow sequence/mapping or a scalar\n if (state.firstTabInLine !== -1) return false;\n\n if (state.anchor !== null) {\n state.anchorMap[state.anchor] = _result;\n }\n\n ch = state.input.charCodeAt(state.position);\n\n while (ch !== 0) {\n if (state.firstTabInLine !== -1) {\n state.position = state.firstTabInLine;\n throwError(state, 'tab characters must not be used in indentation');\n }\n\n if (ch !== 0x2D/* - */) {\n break;\n }\n\n following = state.input.charCodeAt(state.position + 1);\n\n if (!is_WS_OR_EOL(following)) {\n break;\n }\n\n detected = true;\n state.position++;\n\n if (skipSeparationSpace(state, true, -1)) {\n if (state.lineIndent <= nodeIndent) {\n _result.push(null);\n ch = state.input.charCodeAt(state.position);\n continue;\n }\n }\n\n _line = state.line;\n composeNode(state, nodeIndent, CONTEXT_BLOCK_IN, false, true);\n _result.push(state.result);\n skipSeparationSpace(state, true, -1);\n\n ch = state.input.charCodeAt(state.position);\n\n if ((state.line === _line || state.lineIndent > nodeIndent) && (ch !== 0)) {\n throwError(state, 'bad indentation of a sequence entry');\n } else if (state.lineIndent < nodeIndent) {\n break;\n }\n }\n\n if (detected) {\n state.tag = _tag;\n state.anchor = _anchor;\n state.kind = 'sequence';\n state.result = _result;\n return true;\n }\n return false;\n}\n\nfunction readBlockMapping(state, nodeIndent, flowIndent) {\n var following,\n allowCompact,\n _line,\n _keyLine,\n _keyLineStart,\n _keyPos,\n _tag = state.tag,\n _anchor = state.anchor,\n _result = {},\n overridableKeys = Object.create(null),\n keyTag = null,\n keyNode = null,\n valueNode = null,\n atExplicitKey = false,\n detected = false,\n ch;\n\n // there is a leading tab before this token, so it can't be a block sequence/mapping;\n // it can still be flow sequence/mapping or a scalar\n if (state.firstTabInLine !== -1) return false;\n\n if (state.anchor !== null) {\n state.anchorMap[state.anchor] = _result;\n }\n\n ch = state.input.charCodeAt(state.position);\n\n while (ch !== 0) {\n if (!atExplicitKey && state.firstTabInLine !== -1) {\n state.position = state.firstTabInLine;\n throwError(state, 'tab characters must not be used in indentation');\n }\n\n following = state.input.charCodeAt(state.position + 1);\n _line = state.line; // Save the current line.\n\n //\n // Explicit notation case. There are two separate blocks:\n // first for the key (denoted by \"?\") and second for the value (denoted by \":\")\n //\n if ((ch === 0x3F/* ? */ || ch === 0x3A/* : */) && is_WS_OR_EOL(following)) {\n\n if (ch === 0x3F/* ? */) {\n if (atExplicitKey) {\n storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, null, _keyLine, _keyLineStart, _keyPos);\n keyTag = keyNode = valueNode = null;\n }\n\n detected = true;\n atExplicitKey = true;\n allowCompact = true;\n\n } else if (atExplicitKey) {\n // i.e. 0x3A/* : */ === character after the explicit key.\n atExplicitKey = false;\n allowCompact = true;\n\n } else {\n throwError(state, 'incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line');\n }\n\n state.position += 1;\n ch = following;\n\n //\n // Implicit notation case. Flow-style node as the key first, then \":\", and the value.\n //\n } else {\n _keyLine = state.line;\n _keyLineStart = state.lineStart;\n _keyPos = state.position;\n\n if (!composeNode(state, flowIndent, CONTEXT_FLOW_OUT, false, true)) {\n // Neither implicit nor explicit notation.\n // Reading is done. Go to the epilogue.\n break;\n }\n\n if (state.line === _line) {\n ch = state.input.charCodeAt(state.position);\n\n while (is_WHITE_SPACE(ch)) {\n ch = state.input.charCodeAt(++state.position);\n }\n\n if (ch === 0x3A/* : */) {\n ch = state.input.charCodeAt(++state.position);\n\n if (!is_WS_OR_EOL(ch)) {\n throwError(state, 'a whitespace character is expected after the key-value separator within a block mapping');\n }\n\n if (atExplicitKey) {\n storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, null, _keyLine, _keyLineStart, _keyPos);\n keyTag = keyNode = valueNode = null;\n }\n\n detected = true;\n atExplicitKey = false;\n allowCompact = false;\n keyTag = state.tag;\n keyNode = state.result;\n\n } else if (detected) {\n throwError(state, 'can not read an implicit mapping pair; a colon is missed');\n\n } else {\n state.tag = _tag;\n state.anchor = _anchor;\n return true; // Keep the result of `composeNode`.\n }\n\n } else if (detected) {\n throwError(state, 'can not read a block mapping entry; a multiline key may not be an implicit key');\n\n } else {\n state.tag = _tag;\n state.anchor = _anchor;\n return true; // Keep the result of `composeNode`.\n }\n }\n\n //\n // Common reading code for both explicit and implicit notations.\n //\n if (state.line === _line || state.lineIndent > nodeIndent) {\n if (atExplicitKey) {\n _keyLine = state.line;\n _keyLineStart = state.lineStart;\n _keyPos = state.position;\n }\n\n if (composeNode(state, nodeIndent, CONTEXT_BLOCK_OUT, true, allowCompact)) {\n if (atExplicitKey) {\n keyNode = state.result;\n } else {\n valueNode = state.result;\n }\n }\n\n if (!atExplicitKey) {\n storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, valueNode, _keyLine, _keyLineStart, _keyPos);\n keyTag = keyNode = valueNode = null;\n }\n\n skipSeparationSpace(state, true, -1);\n ch = state.input.charCodeAt(state.position);\n }\n\n if ((state.line === _line || state.lineIndent > nodeIndent) && (ch !== 0)) {\n throwError(state, 'bad indentation of a mapping entry');\n } else if (state.lineIndent < nodeIndent) {\n break;\n }\n }\n\n //\n // Epilogue.\n //\n\n // Special case: last mapping's node contains only the key in explicit notation.\n if (atExplicitKey) {\n storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, null, _keyLine, _keyLineStart, _keyPos);\n }\n\n // Expose the resulting mapping.\n if (detected) {\n state.tag = _tag;\n state.anchor = _anchor;\n state.kind = 'mapping';\n state.result = _result;\n }\n\n return detected;\n}\n\nfunction readTagProperty(state) {\n var _position,\n isVerbatim = false,\n isNamed = false,\n tagHandle,\n tagName,\n ch;\n\n ch = state.input.charCodeAt(state.position);\n\n if (ch !== 0x21/* ! */) return false;\n\n if (state.tag !== null) {\n throwError(state, 'duplication of a tag property');\n }\n\n ch = state.input.charCodeAt(++state.position);\n\n if (ch === 0x3C/* < */) {\n isVerbatim = true;\n ch = state.input.charCodeAt(++state.position);\n\n } else if (ch === 0x21/* ! */) {\n isNamed = true;\n tagHandle = '!!';\n ch = state.input.charCodeAt(++state.position);\n\n } else {\n tagHandle = '!';\n }\n\n _position = state.position;\n\n if (isVerbatim) {\n do { ch = state.input.charCodeAt(++state.position); }\n while (ch !== 0 && ch !== 0x3E/* > */);\n\n if (state.position < state.length) {\n tagName = state.input.slice(_position, state.position);\n ch = state.input.charCodeAt(++state.position);\n } else {\n throwError(state, 'unexpected end of the stream within a verbatim tag');\n }\n } else {\n while (ch !== 0 && !is_WS_OR_EOL(ch)) {\n\n if (ch === 0x21/* ! */) {\n if (!isNamed) {\n tagHandle = state.input.slice(_position - 1, state.position + 1);\n\n if (!PATTERN_TAG_HANDLE.test(tagHandle)) {\n throwError(state, 'named tag handle cannot contain such characters');\n }\n\n isNamed = true;\n _position = state.position + 1;\n } else {\n throwError(state, 'tag suffix cannot contain exclamation marks');\n }\n }\n\n ch = state.input.charCodeAt(++state.position);\n }\n\n tagName = state.input.slice(_position, state.position);\n\n if (PATTERN_FLOW_INDICATORS.test(tagName)) {\n throwError(state, 'tag suffix cannot contain flow indicator characters');\n }\n }\n\n if (tagName && !PATTERN_TAG_URI.test(tagName)) {\n throwError(state, 'tag name cannot contain such characters: ' + tagName);\n }\n\n try {\n tagName = decodeURIComponent(tagName);\n } catch (err) {\n throwError(state, 'tag name is malformed: ' + tagName);\n }\n\n if (isVerbatim) {\n state.tag = tagName;\n\n } else if (_hasOwnProperty.call(state.tagMap, tagHandle)) {\n state.tag = state.tagMap[tagHandle] + tagName;\n\n } else if (tagHandle === '!') {\n state.tag = '!' + tagName;\n\n } else if (tagHandle === '!!') {\n state.tag = 'tag:yaml.org,2002:' + tagName;\n\n } else {\n throwError(state, 'undeclared tag handle \"' + tagHandle + '\"');\n }\n\n return true;\n}\n\nfunction readAnchorProperty(state) {\n var _position,\n ch;\n\n ch = state.input.charCodeAt(state.position);\n\n if (ch !== 0x26/* & */) return false;\n\n if (state.anchor !== null) {\n throwError(state, 'duplication of an anchor property');\n }\n\n ch = state.input.charCodeAt(++state.position);\n _position = state.position;\n\n while (ch !== 0 && !is_WS_OR_EOL(ch) && !is_FLOW_INDICATOR(ch)) {\n ch = state.input.charCodeAt(++state.position);\n }\n\n if (state.position === _position) {\n throwError(state, 'name of an anchor node must contain at least one character');\n }\n\n state.anchor = state.input.slice(_position, state.position);\n return true;\n}\n\nfunction readAlias(state) {\n var _position, alias,\n ch;\n\n ch = state.input.charCodeAt(state.position);\n\n if (ch !== 0x2A/* * */) return false;\n\n ch = state.input.charCodeAt(++state.position);\n _position = state.position;\n\n while (ch !== 0 && !is_WS_OR_EOL(ch) && !is_FLOW_INDICATOR(ch)) {\n ch = state.input.charCodeAt(++state.position);\n }\n\n if (state.position === _position) {\n throwError(state, 'name of an alias node must contain at least one character');\n }\n\n alias = state.input.slice(_position, state.position);\n\n if (!_hasOwnProperty.call(state.anchorMap, alias)) {\n throwError(state, 'unidentified alias \"' + alias + '\"');\n }\n\n state.result = state.anchorMap[alias];\n skipSeparationSpace(state, true, -1);\n return true;\n}\n\nfunction composeNode(state, parentIndent, nodeContext, allowToSeek, allowCompact) {\n var allowBlockStyles,\n allowBlockScalars,\n allowBlockCollections,\n indentStatus = 1, // 1: this>parent, 0: this=parent, -1: this parentIndent) {\n indentStatus = 1;\n } else if (state.lineIndent === parentIndent) {\n indentStatus = 0;\n } else if (state.lineIndent < parentIndent) {\n indentStatus = -1;\n }\n }\n }\n\n if (indentStatus === 1) {\n while (readTagProperty(state) || readAnchorProperty(state)) {\n if (skipSeparationSpace(state, true, -1)) {\n atNewLine = true;\n allowBlockCollections = allowBlockStyles;\n\n if (state.lineIndent > parentIndent) {\n indentStatus = 1;\n } else if (state.lineIndent === parentIndent) {\n indentStatus = 0;\n } else if (state.lineIndent < parentIndent) {\n indentStatus = -1;\n }\n } else {\n allowBlockCollections = false;\n }\n }\n }\n\n if (allowBlockCollections) {\n allowBlockCollections = atNewLine || allowCompact;\n }\n\n if (indentStatus === 1 || CONTEXT_BLOCK_OUT === nodeContext) {\n if (CONTEXT_FLOW_IN === nodeContext || CONTEXT_FLOW_OUT === nodeContext) {\n flowIndent = parentIndent;\n } else {\n flowIndent = parentIndent + 1;\n }\n\n blockIndent = state.position - state.lineStart;\n\n if (indentStatus === 1) {\n if (allowBlockCollections &&\n (readBlockSequence(state, blockIndent) ||\n readBlockMapping(state, blockIndent, flowIndent)) ||\n readFlowCollection(state, flowIndent)) {\n hasContent = true;\n } else {\n if ((allowBlockScalars && readBlockScalar(state, flowIndent)) ||\n readSingleQuotedScalar(state, flowIndent) ||\n readDoubleQuotedScalar(state, flowIndent)) {\n hasContent = true;\n\n } else if (readAlias(state)) {\n hasContent = true;\n\n if (state.tag !== null || state.anchor !== null) {\n throwError(state, 'alias node should not have any properties');\n }\n\n } else if (readPlainScalar(state, flowIndent, CONTEXT_FLOW_IN === nodeContext)) {\n hasContent = true;\n\n if (state.tag === null) {\n state.tag = '?';\n }\n }\n\n if (state.anchor !== null) {\n state.anchorMap[state.anchor] = state.result;\n }\n }\n } else if (indentStatus === 0) {\n // Special case: block sequences are allowed to have same indentation level as the parent.\n // http://www.yaml.org/spec/1.2/spec.html#id2799784\n hasContent = allowBlockCollections && readBlockSequence(state, blockIndent);\n }\n }\n\n if (state.tag === null) {\n if (state.anchor !== null) {\n state.anchorMap[state.anchor] = state.result;\n }\n\n } else if (state.tag === '?') {\n // Implicit resolving is not allowed for non-scalar types, and '?'\n // non-specific tag is only automatically assigned to plain scalars.\n //\n // We only need to check kind conformity in case user explicitly assigns '?'\n // tag, for example like this: \"! [0]\"\n //\n if (state.result !== null && state.kind !== 'scalar') {\n throwError(state, 'unacceptable node kind for ! tag; it should be \"scalar\", not \"' + state.kind + '\"');\n }\n\n for (typeIndex = 0, typeQuantity = state.implicitTypes.length; typeIndex < typeQuantity; typeIndex += 1) {\n type = state.implicitTypes[typeIndex];\n\n if (type.resolve(state.result)) { // `state.result` updated in resolver if matched\n state.result = type.construct(state.result);\n state.tag = type.tag;\n if (state.anchor !== null) {\n state.anchorMap[state.anchor] = state.result;\n }\n break;\n }\n }\n } else if (state.tag !== '!') {\n if (_hasOwnProperty.call(state.typeMap[state.kind || 'fallback'], state.tag)) {\n type = state.typeMap[state.kind || 'fallback'][state.tag];\n } else {\n // looking for multi type\n type = null;\n typeList = state.typeMap.multi[state.kind || 'fallback'];\n\n for (typeIndex = 0, typeQuantity = typeList.length; typeIndex < typeQuantity; typeIndex += 1) {\n if (state.tag.slice(0, typeList[typeIndex].tag.length) === typeList[typeIndex].tag) {\n type = typeList[typeIndex];\n break;\n }\n }\n }\n\n if (!type) {\n throwError(state, 'unknown tag !<' + state.tag + '>');\n }\n\n if (state.result !== null && type.kind !== state.kind) {\n throwError(state, 'unacceptable node kind for !<' + state.tag + '> tag; it should be \"' + type.kind + '\", not \"' + state.kind + '\"');\n }\n\n if (!type.resolve(state.result, state.tag)) { // `state.result` updated in resolver if matched\n throwError(state, 'cannot resolve a node with !<' + state.tag + '> explicit tag');\n } else {\n state.result = type.construct(state.result, state.tag);\n if (state.anchor !== null) {\n state.anchorMap[state.anchor] = state.result;\n }\n }\n }\n\n if (state.listener !== null) {\n state.listener('close', state);\n }\n return state.tag !== null || state.anchor !== null || hasContent;\n}\n\nfunction readDocument(state) {\n var documentStart = state.position,\n _position,\n directiveName,\n directiveArgs,\n hasDirectives = false,\n ch;\n\n state.version = null;\n state.checkLineBreaks = state.legacy;\n state.tagMap = Object.create(null);\n state.anchorMap = Object.create(null);\n\n while ((ch = state.input.charCodeAt(state.position)) !== 0) {\n skipSeparationSpace(state, true, -1);\n\n ch = state.input.charCodeAt(state.position);\n\n if (state.lineIndent > 0 || ch !== 0x25/* % */) {\n break;\n }\n\n hasDirectives = true;\n ch = state.input.charCodeAt(++state.position);\n _position = state.position;\n\n while (ch !== 0 && !is_WS_OR_EOL(ch)) {\n ch = state.input.charCodeAt(++state.position);\n }\n\n directiveName = state.input.slice(_position, state.position);\n directiveArgs = [];\n\n if (directiveName.length < 1) {\n throwError(state, 'directive name must not be less than one character in length');\n }\n\n while (ch !== 0) {\n while (is_WHITE_SPACE(ch)) {\n ch = state.input.charCodeAt(++state.position);\n }\n\n if (ch === 0x23/* # */) {\n do { ch = state.input.charCodeAt(++state.position); }\n while (ch !== 0 && !is_EOL(ch));\n break;\n }\n\n if (is_EOL(ch)) break;\n\n _position = state.position;\n\n while (ch !== 0 && !is_WS_OR_EOL(ch)) {\n ch = state.input.charCodeAt(++state.position);\n }\n\n directiveArgs.push(state.input.slice(_position, state.position));\n }\n\n if (ch !== 0) readLineBreak(state);\n\n if (_hasOwnProperty.call(directiveHandlers, directiveName)) {\n directiveHandlers[directiveName](state, directiveName, directiveArgs);\n } else {\n throwWarning(state, 'unknown document directive \"' + directiveName + '\"');\n }\n }\n\n skipSeparationSpace(state, true, -1);\n\n if (state.lineIndent === 0 &&\n state.input.charCodeAt(state.position) === 0x2D/* - */ &&\n state.input.charCodeAt(state.position + 1) === 0x2D/* - */ &&\n state.input.charCodeAt(state.position + 2) === 0x2D/* - */) {\n state.position += 3;\n skipSeparationSpace(state, true, -1);\n\n } else if (hasDirectives) {\n throwError(state, 'directives end mark is expected');\n }\n\n composeNode(state, state.lineIndent - 1, CONTEXT_BLOCK_OUT, false, true);\n skipSeparationSpace(state, true, -1);\n\n if (state.checkLineBreaks &&\n PATTERN_NON_ASCII_LINE_BREAKS.test(state.input.slice(documentStart, state.position))) {\n throwWarning(state, 'non-ASCII line breaks are interpreted as content');\n }\n\n state.documents.push(state.result);\n\n if (state.position === state.lineStart && testDocumentSeparator(state)) {\n\n if (state.input.charCodeAt(state.position) === 0x2E/* . */) {\n state.position += 3;\n skipSeparationSpace(state, true, -1);\n }\n return;\n }\n\n if (state.position < (state.length - 1)) {\n throwError(state, 'end of the stream or a document separator is expected');\n } else {\n return;\n }\n}\n\n\nfunction loadDocuments(input, options) {\n input = String(input);\n options = options || {};\n\n if (input.length !== 0) {\n\n // Add tailing `\\n` if not exists\n if (input.charCodeAt(input.length - 1) !== 0x0A/* LF */ &&\n input.charCodeAt(input.length - 1) !== 0x0D/* CR */) {\n input += '\\n';\n }\n\n // Strip BOM\n if (input.charCodeAt(0) === 0xFEFF) {\n input = input.slice(1);\n }\n }\n\n var state = new State(input, options);\n\n var nullpos = input.indexOf('\\0');\n\n if (nullpos !== -1) {\n state.position = nullpos;\n throwError(state, 'null byte is not allowed in input');\n }\n\n // Use 0 as string terminator. That significantly simplifies bounds check.\n state.input += '\\0';\n\n while (state.input.charCodeAt(state.position) === 0x20/* Space */) {\n state.lineIndent += 1;\n state.position += 1;\n }\n\n while (state.position < (state.length - 1)) {\n readDocument(state);\n }\n\n return state.documents;\n}\n\n\nfunction loadAll(input, iterator, options) {\n if (iterator !== null && typeof iterator === 'object' && typeof options === 'undefined') {\n options = iterator;\n iterator = null;\n }\n\n var documents = loadDocuments(input, options);\n\n if (typeof iterator !== 'function') {\n return documents;\n }\n\n for (var index = 0, length = documents.length; index < length; index += 1) {\n iterator(documents[index]);\n }\n}\n\n\nfunction load(input, options) {\n var documents = loadDocuments(input, options);\n\n if (documents.length === 0) {\n /*eslint-disable no-undefined*/\n return undefined;\n } else if (documents.length === 1) {\n return documents[0];\n }\n throw new YAMLException('expected a single document in the stream, but found more');\n}\n\n\nmodule.exports.loadAll = loadAll;\nmodule.exports.load = load;\n","'use strict';\n\n/*eslint-disable max-len*/\n\nvar YAMLException = require('./exception');\nvar Type = require('./type');\n\n\nfunction compileList(schema, name) {\n var result = [];\n\n schema[name].forEach(function (currentType) {\n var newIndex = result.length;\n\n result.forEach(function (previousType, previousIndex) {\n if (previousType.tag === currentType.tag &&\n previousType.kind === currentType.kind &&\n previousType.multi === currentType.multi) {\n\n newIndex = previousIndex;\n }\n });\n\n result[newIndex] = currentType;\n });\n\n return result;\n}\n\n\nfunction compileMap(/* lists... */) {\n var result = {\n scalar: {},\n sequence: {},\n mapping: {},\n fallback: {},\n multi: {\n scalar: [],\n sequence: [],\n mapping: [],\n fallback: []\n }\n }, index, length;\n\n function collectType(type) {\n if (type.multi) {\n result.multi[type.kind].push(type);\n result.multi['fallback'].push(type);\n } else {\n result[type.kind][type.tag] = result['fallback'][type.tag] = type;\n }\n }\n\n for (index = 0, length = arguments.length; index < length; index += 1) {\n arguments[index].forEach(collectType);\n }\n return result;\n}\n\n\nfunction Schema(definition) {\n return this.extend(definition);\n}\n\n\nSchema.prototype.extend = function extend(definition) {\n var implicit = [];\n var explicit = [];\n\n if (definition instanceof Type) {\n // Schema.extend(type)\n explicit.push(definition);\n\n } else if (Array.isArray(definition)) {\n // Schema.extend([ type1, type2, ... ])\n explicit = explicit.concat(definition);\n\n } else if (definition && (Array.isArray(definition.implicit) || Array.isArray(definition.explicit))) {\n // Schema.extend({ explicit: [ type1, type2, ... ], implicit: [ type1, type2, ... ] })\n if (definition.implicit) implicit = implicit.concat(definition.implicit);\n if (definition.explicit) explicit = explicit.concat(definition.explicit);\n\n } else {\n throw new YAMLException('Schema.extend argument should be a Type, [ Type ], ' +\n 'or a schema definition ({ implicit: [...], explicit: [...] })');\n }\n\n implicit.forEach(function (type) {\n if (!(type instanceof Type)) {\n throw new YAMLException('Specified list of YAML types (or a single Type object) contains a non-Type object.');\n }\n\n if (type.loadKind && type.loadKind !== 'scalar') {\n throw new YAMLException('There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.');\n }\n\n if (type.multi) {\n throw new YAMLException('There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.');\n }\n });\n\n explicit.forEach(function (type) {\n if (!(type instanceof Type)) {\n throw new YAMLException('Specified list of YAML types (or a single Type object) contains a non-Type object.');\n }\n });\n\n var result = Object.create(Schema.prototype);\n\n result.implicit = (this.implicit || []).concat(implicit);\n result.explicit = (this.explicit || []).concat(explicit);\n\n result.compiledImplicit = compileList(result, 'implicit');\n result.compiledExplicit = compileList(result, 'explicit');\n result.compiledTypeMap = compileMap(result.compiledImplicit, result.compiledExplicit);\n\n return result;\n};\n\n\nmodule.exports = Schema;\n","// Standard YAML's Core schema.\n// http://www.yaml.org/spec/1.2/spec.html#id2804923\n//\n// NOTE: JS-YAML does not support schema-specific tag resolution restrictions.\n// So, Core schema has no distinctions from JSON schema is JS-YAML.\n\n\n'use strict';\n\n\nmodule.exports = require('./json');\n","// JS-YAML's default schema for `safeLoad` function.\n// It is not described in the YAML specification.\n//\n// This schema is based on standard YAML's Core schema and includes most of\n// extra types described at YAML tag repository. (http://yaml.org/type/)\n\n\n'use strict';\n\n\nmodule.exports = require('./core').extend({\n implicit: [\n require('../type/timestamp'),\n require('../type/merge')\n ],\n explicit: [\n require('../type/binary'),\n require('../type/omap'),\n require('../type/pairs'),\n require('../type/set')\n ]\n});\n","// Standard YAML's Failsafe schema.\n// http://www.yaml.org/spec/1.2/spec.html#id2802346\n\n\n'use strict';\n\n\nvar Schema = require('../schema');\n\n\nmodule.exports = new Schema({\n explicit: [\n require('../type/str'),\n require('../type/seq'),\n require('../type/map')\n ]\n});\n","// Standard YAML's JSON schema.\n// http://www.yaml.org/spec/1.2/spec.html#id2803231\n//\n// NOTE: JS-YAML does not support schema-specific tag resolution restrictions.\n// So, this schema is not such strict as defined in the YAML specification.\n// It allows numbers in binary notaion, use `Null` and `NULL` as `null`, etc.\n\n\n'use strict';\n\n\nmodule.exports = require('./failsafe').extend({\n implicit: [\n require('../type/null'),\n require('../type/bool'),\n require('../type/int'),\n require('../type/float')\n ]\n});\n","'use strict';\n\n\nvar common = require('./common');\n\n\n// get snippet for a single line, respecting maxLength\nfunction getLine(buffer, lineStart, lineEnd, position, maxLineLength) {\n var head = '';\n var tail = '';\n var maxHalfLength = Math.floor(maxLineLength / 2) - 1;\n\n if (position - lineStart > maxHalfLength) {\n head = ' ... ';\n lineStart = position - maxHalfLength + head.length;\n }\n\n if (lineEnd - position > maxHalfLength) {\n tail = ' ...';\n lineEnd = position + maxHalfLength - tail.length;\n }\n\n return {\n str: head + buffer.slice(lineStart, lineEnd).replace(/\\t/g, '→') + tail,\n pos: position - lineStart + head.length // relative position\n };\n}\n\n\nfunction padStart(string, max) {\n return common.repeat(' ', max - string.length) + string;\n}\n\n\nfunction makeSnippet(mark, options) {\n options = Object.create(options || null);\n\n if (!mark.buffer) return null;\n\n if (!options.maxLength) options.maxLength = 79;\n if (typeof options.indent !== 'number') options.indent = 1;\n if (typeof options.linesBefore !== 'number') options.linesBefore = 3;\n if (typeof options.linesAfter !== 'number') options.linesAfter = 2;\n\n var re = /\\r?\\n|\\r|\\0/g;\n var lineStarts = [ 0 ];\n var lineEnds = [];\n var match;\n var foundLineNo = -1;\n\n while ((match = re.exec(mark.buffer))) {\n lineEnds.push(match.index);\n lineStarts.push(match.index + match[0].length);\n\n if (mark.position <= match.index && foundLineNo < 0) {\n foundLineNo = lineStarts.length - 2;\n }\n }\n\n if (foundLineNo < 0) foundLineNo = lineStarts.length - 1;\n\n var result = '', i, line;\n var lineNoLength = Math.min(mark.line + options.linesAfter, lineEnds.length).toString().length;\n var maxLineLength = options.maxLength - (options.indent + lineNoLength + 3);\n\n for (i = 1; i <= options.linesBefore; i++) {\n if (foundLineNo - i < 0) break;\n line = getLine(\n mark.buffer,\n lineStarts[foundLineNo - i],\n lineEnds[foundLineNo - i],\n mark.position - (lineStarts[foundLineNo] - lineStarts[foundLineNo - i]),\n maxLineLength\n );\n result = common.repeat(' ', options.indent) + padStart((mark.line - i + 1).toString(), lineNoLength) +\n ' | ' + line.str + '\\n' + result;\n }\n\n line = getLine(mark.buffer, lineStarts[foundLineNo], lineEnds[foundLineNo], mark.position, maxLineLength);\n result += common.repeat(' ', options.indent) + padStart((mark.line + 1).toString(), lineNoLength) +\n ' | ' + line.str + '\\n';\n result += common.repeat('-', options.indent + lineNoLength + 3 + line.pos) + '^' + '\\n';\n\n for (i = 1; i <= options.linesAfter; i++) {\n if (foundLineNo + i >= lineEnds.length) break;\n line = getLine(\n mark.buffer,\n lineStarts[foundLineNo + i],\n lineEnds[foundLineNo + i],\n mark.position - (lineStarts[foundLineNo] - lineStarts[foundLineNo + i]),\n maxLineLength\n );\n result += common.repeat(' ', options.indent) + padStart((mark.line + i + 1).toString(), lineNoLength) +\n ' | ' + line.str + '\\n';\n }\n\n return result.replace(/\\n$/, '');\n}\n\n\nmodule.exports = makeSnippet;\n","'use strict';\n\nvar YAMLException = require('./exception');\n\nvar TYPE_CONSTRUCTOR_OPTIONS = [\n 'kind',\n 'multi',\n 'resolve',\n 'construct',\n 'instanceOf',\n 'predicate',\n 'represent',\n 'representName',\n 'defaultStyle',\n 'styleAliases'\n];\n\nvar YAML_NODE_KINDS = [\n 'scalar',\n 'sequence',\n 'mapping'\n];\n\nfunction compileStyleAliases(map) {\n var result = {};\n\n if (map !== null) {\n Object.keys(map).forEach(function (style) {\n map[style].forEach(function (alias) {\n result[String(alias)] = style;\n });\n });\n }\n\n return result;\n}\n\nfunction Type(tag, options) {\n options = options || {};\n\n Object.keys(options).forEach(function (name) {\n if (TYPE_CONSTRUCTOR_OPTIONS.indexOf(name) === -1) {\n throw new YAMLException('Unknown option \"' + name + '\" is met in definition of \"' + tag + '\" YAML type.');\n }\n });\n\n // TODO: Add tag format check.\n this.options = options; // keep original options in case user wants to extend this type later\n this.tag = tag;\n this.kind = options['kind'] || null;\n this.resolve = options['resolve'] || function () { return true; };\n this.construct = options['construct'] || function (data) { return data; };\n this.instanceOf = options['instanceOf'] || null;\n this.predicate = options['predicate'] || null;\n this.represent = options['represent'] || null;\n this.representName = options['representName'] || null;\n this.defaultStyle = options['defaultStyle'] || null;\n this.multi = options['multi'] || false;\n this.styleAliases = compileStyleAliases(options['styleAliases'] || null);\n\n if (YAML_NODE_KINDS.indexOf(this.kind) === -1) {\n throw new YAMLException('Unknown kind \"' + this.kind + '\" is specified for \"' + tag + '\" YAML type.');\n }\n}\n\nmodule.exports = Type;\n","'use strict';\n\n/*eslint-disable no-bitwise*/\n\n\nvar Type = require('../type');\n\n\n// [ 64, 65, 66 ] -> [ padding, CR, LF ]\nvar BASE64_MAP = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\\n\\r';\n\n\nfunction resolveYamlBinary(data) {\n if (data === null) return false;\n\n var code, idx, bitlen = 0, max = data.length, map = BASE64_MAP;\n\n // Convert one by one.\n for (idx = 0; idx < max; idx++) {\n code = map.indexOf(data.charAt(idx));\n\n // Skip CR/LF\n if (code > 64) continue;\n\n // Fail on illegal characters\n if (code < 0) return false;\n\n bitlen += 6;\n }\n\n // If there are any bits left, source was corrupted\n return (bitlen % 8) === 0;\n}\n\nfunction constructYamlBinary(data) {\n var idx, tailbits,\n input = data.replace(/[\\r\\n=]/g, ''), // remove CR/LF & padding to simplify scan\n max = input.length,\n map = BASE64_MAP,\n bits = 0,\n result = [];\n\n // Collect by 6*4 bits (3 bytes)\n\n for (idx = 0; idx < max; idx++) {\n if ((idx % 4 === 0) && idx) {\n result.push((bits >> 16) & 0xFF);\n result.push((bits >> 8) & 0xFF);\n result.push(bits & 0xFF);\n }\n\n bits = (bits << 6) | map.indexOf(input.charAt(idx));\n }\n\n // Dump tail\n\n tailbits = (max % 4) * 6;\n\n if (tailbits === 0) {\n result.push((bits >> 16) & 0xFF);\n result.push((bits >> 8) & 0xFF);\n result.push(bits & 0xFF);\n } else if (tailbits === 18) {\n result.push((bits >> 10) & 0xFF);\n result.push((bits >> 2) & 0xFF);\n } else if (tailbits === 12) {\n result.push((bits >> 4) & 0xFF);\n }\n\n return new Uint8Array(result);\n}\n\nfunction representYamlBinary(object /*, style*/) {\n var result = '', bits = 0, idx, tail,\n max = object.length,\n map = BASE64_MAP;\n\n // Convert every three bytes to 4 ASCII characters.\n\n for (idx = 0; idx < max; idx++) {\n if ((idx % 3 === 0) && idx) {\n result += map[(bits >> 18) & 0x3F];\n result += map[(bits >> 12) & 0x3F];\n result += map[(bits >> 6) & 0x3F];\n result += map[bits & 0x3F];\n }\n\n bits = (bits << 8) + object[idx];\n }\n\n // Dump tail\n\n tail = max % 3;\n\n if (tail === 0) {\n result += map[(bits >> 18) & 0x3F];\n result += map[(bits >> 12) & 0x3F];\n result += map[(bits >> 6) & 0x3F];\n result += map[bits & 0x3F];\n } else if (tail === 2) {\n result += map[(bits >> 10) & 0x3F];\n result += map[(bits >> 4) & 0x3F];\n result += map[(bits << 2) & 0x3F];\n result += map[64];\n } else if (tail === 1) {\n result += map[(bits >> 2) & 0x3F];\n result += map[(bits << 4) & 0x3F];\n result += map[64];\n result += map[64];\n }\n\n return result;\n}\n\nfunction isBinary(obj) {\n return Object.prototype.toString.call(obj) === '[object Uint8Array]';\n}\n\nmodule.exports = new Type('tag:yaml.org,2002:binary', {\n kind: 'scalar',\n resolve: resolveYamlBinary,\n construct: constructYamlBinary,\n predicate: isBinary,\n represent: representYamlBinary\n});\n","'use strict';\n\nvar Type = require('../type');\n\nfunction resolveYamlBoolean(data) {\n if (data === null) return false;\n\n var max = data.length;\n\n return (max === 4 && (data === 'true' || data === 'True' || data === 'TRUE')) ||\n (max === 5 && (data === 'false' || data === 'False' || data === 'FALSE'));\n}\n\nfunction constructYamlBoolean(data) {\n return data === 'true' ||\n data === 'True' ||\n data === 'TRUE';\n}\n\nfunction isBoolean(object) {\n return Object.prototype.toString.call(object) === '[object Boolean]';\n}\n\nmodule.exports = new Type('tag:yaml.org,2002:bool', {\n kind: 'scalar',\n resolve: resolveYamlBoolean,\n construct: constructYamlBoolean,\n predicate: isBoolean,\n represent: {\n lowercase: function (object) { return object ? 'true' : 'false'; },\n uppercase: function (object) { return object ? 'TRUE' : 'FALSE'; },\n camelcase: function (object) { return object ? 'True' : 'False'; }\n },\n defaultStyle: 'lowercase'\n});\n","'use strict';\n\nvar common = require('../common');\nvar Type = require('../type');\n\nvar YAML_FLOAT_PATTERN = new RegExp(\n // 2.5e4, 2.5 and integers\n '^(?:[-+]?(?:[0-9][0-9_]*)(?:\\\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?' +\n // .2e4, .2\n // special case, seems not from spec\n '|\\\\.[0-9_]+(?:[eE][-+]?[0-9]+)?' +\n // .inf\n '|[-+]?\\\\.(?:inf|Inf|INF)' +\n // .nan\n '|\\\\.(?:nan|NaN|NAN))$');\n\nfunction resolveYamlFloat(data) {\n if (data === null) return false;\n\n if (!YAML_FLOAT_PATTERN.test(data) ||\n // Quick hack to not allow integers end with `_`\n // Probably should update regexp & check speed\n data[data.length - 1] === '_') {\n return false;\n }\n\n return true;\n}\n\nfunction constructYamlFloat(data) {\n var value, sign;\n\n value = data.replace(/_/g, '').toLowerCase();\n sign = value[0] === '-' ? -1 : 1;\n\n if ('+-'.indexOf(value[0]) >= 0) {\n value = value.slice(1);\n }\n\n if (value === '.inf') {\n return (sign === 1) ? Number.POSITIVE_INFINITY : Number.NEGATIVE_INFINITY;\n\n } else if (value === '.nan') {\n return NaN;\n }\n return sign * parseFloat(value, 10);\n}\n\n\nvar SCIENTIFIC_WITHOUT_DOT = /^[-+]?[0-9]+e/;\n\nfunction representYamlFloat(object, style) {\n var res;\n\n if (isNaN(object)) {\n switch (style) {\n case 'lowercase': return '.nan';\n case 'uppercase': return '.NAN';\n case 'camelcase': return '.NaN';\n }\n } else if (Number.POSITIVE_INFINITY === object) {\n switch (style) {\n case 'lowercase': return '.inf';\n case 'uppercase': return '.INF';\n case 'camelcase': return '.Inf';\n }\n } else if (Number.NEGATIVE_INFINITY === object) {\n switch (style) {\n case 'lowercase': return '-.inf';\n case 'uppercase': return '-.INF';\n case 'camelcase': return '-.Inf';\n }\n } else if (common.isNegativeZero(object)) {\n return '-0.0';\n }\n\n res = object.toString(10);\n\n // JS stringifier can build scientific format without dots: 5e-100,\n // while YAML requres dot: 5.e-100. Fix it with simple hack\n\n return SCIENTIFIC_WITHOUT_DOT.test(res) ? res.replace('e', '.e') : res;\n}\n\nfunction isFloat(object) {\n return (Object.prototype.toString.call(object) === '[object Number]') &&\n (object % 1 !== 0 || common.isNegativeZero(object));\n}\n\nmodule.exports = new Type('tag:yaml.org,2002:float', {\n kind: 'scalar',\n resolve: resolveYamlFloat,\n construct: constructYamlFloat,\n predicate: isFloat,\n represent: representYamlFloat,\n defaultStyle: 'lowercase'\n});\n","'use strict';\n\nvar common = require('../common');\nvar Type = require('../type');\n\nfunction isHexCode(c) {\n return ((0x30/* 0 */ <= c) && (c <= 0x39/* 9 */)) ||\n ((0x41/* A */ <= c) && (c <= 0x46/* F */)) ||\n ((0x61/* a */ <= c) && (c <= 0x66/* f */));\n}\n\nfunction isOctCode(c) {\n return ((0x30/* 0 */ <= c) && (c <= 0x37/* 7 */));\n}\n\nfunction isDecCode(c) {\n return ((0x30/* 0 */ <= c) && (c <= 0x39/* 9 */));\n}\n\nfunction resolveYamlInteger(data) {\n if (data === null) return false;\n\n var max = data.length,\n index = 0,\n hasDigits = false,\n ch;\n\n if (!max) return false;\n\n ch = data[index];\n\n // sign\n if (ch === '-' || ch === '+') {\n ch = data[++index];\n }\n\n if (ch === '0') {\n // 0\n if (index + 1 === max) return true;\n ch = data[++index];\n\n // base 2, base 8, base 16\n\n if (ch === 'b') {\n // base 2\n index++;\n\n for (; index < max; index++) {\n ch = data[index];\n if (ch === '_') continue;\n if (ch !== '0' && ch !== '1') return false;\n hasDigits = true;\n }\n return hasDigits && ch !== '_';\n }\n\n\n if (ch === 'x') {\n // base 16\n index++;\n\n for (; index < max; index++) {\n ch = data[index];\n if (ch === '_') continue;\n if (!isHexCode(data.charCodeAt(index))) return false;\n hasDigits = true;\n }\n return hasDigits && ch !== '_';\n }\n\n\n if (ch === 'o') {\n // base 8\n index++;\n\n for (; index < max; index++) {\n ch = data[index];\n if (ch === '_') continue;\n if (!isOctCode(data.charCodeAt(index))) return false;\n hasDigits = true;\n }\n return hasDigits && ch !== '_';\n }\n }\n\n // base 10 (except 0)\n\n // value should not start with `_`;\n if (ch === '_') return false;\n\n for (; index < max; index++) {\n ch = data[index];\n if (ch === '_') continue;\n if (!isDecCode(data.charCodeAt(index))) {\n return false;\n }\n hasDigits = true;\n }\n\n // Should have digits and should not end with `_`\n if (!hasDigits || ch === '_') return false;\n\n return true;\n}\n\nfunction constructYamlInteger(data) {\n var value = data, sign = 1, ch;\n\n if (value.indexOf('_') !== -1) {\n value = value.replace(/_/g, '');\n }\n\n ch = value[0];\n\n if (ch === '-' || ch === '+') {\n if (ch === '-') sign = -1;\n value = value.slice(1);\n ch = value[0];\n }\n\n if (value === '0') return 0;\n\n if (ch === '0') {\n if (value[1] === 'b') return sign * parseInt(value.slice(2), 2);\n if (value[1] === 'x') return sign * parseInt(value.slice(2), 16);\n if (value[1] === 'o') return sign * parseInt(value.slice(2), 8);\n }\n\n return sign * parseInt(value, 10);\n}\n\nfunction isInteger(object) {\n return (Object.prototype.toString.call(object)) === '[object Number]' &&\n (object % 1 === 0 && !common.isNegativeZero(object));\n}\n\nmodule.exports = new Type('tag:yaml.org,2002:int', {\n kind: 'scalar',\n resolve: resolveYamlInteger,\n construct: constructYamlInteger,\n predicate: isInteger,\n represent: {\n binary: function (obj) { return obj >= 0 ? '0b' + obj.toString(2) : '-0b' + obj.toString(2).slice(1); },\n octal: function (obj) { return obj >= 0 ? '0o' + obj.toString(8) : '-0o' + obj.toString(8).slice(1); },\n decimal: function (obj) { return obj.toString(10); },\n /* eslint-disable max-len */\n hexadecimal: function (obj) { return obj >= 0 ? '0x' + obj.toString(16).toUpperCase() : '-0x' + obj.toString(16).toUpperCase().slice(1); }\n },\n defaultStyle: 'decimal',\n styleAliases: {\n binary: [ 2, 'bin' ],\n octal: [ 8, 'oct' ],\n decimal: [ 10, 'dec' ],\n hexadecimal: [ 16, 'hex' ]\n }\n});\n","'use strict';\n\nvar Type = require('../type');\n\nmodule.exports = new Type('tag:yaml.org,2002:map', {\n kind: 'mapping',\n construct: function (data) { return data !== null ? data : {}; }\n});\n","'use strict';\n\nvar Type = require('../type');\n\nfunction resolveYamlMerge(data) {\n return data === '<<' || data === null;\n}\n\nmodule.exports = new Type('tag:yaml.org,2002:merge', {\n kind: 'scalar',\n resolve: resolveYamlMerge\n});\n","'use strict';\n\nvar Type = require('../type');\n\nfunction resolveYamlNull(data) {\n if (data === null) return true;\n\n var max = data.length;\n\n return (max === 1 && data === '~') ||\n (max === 4 && (data === 'null' || data === 'Null' || data === 'NULL'));\n}\n\nfunction constructYamlNull() {\n return null;\n}\n\nfunction isNull(object) {\n return object === null;\n}\n\nmodule.exports = new Type('tag:yaml.org,2002:null', {\n kind: 'scalar',\n resolve: resolveYamlNull,\n construct: constructYamlNull,\n predicate: isNull,\n represent: {\n canonical: function () { return '~'; },\n lowercase: function () { return 'null'; },\n uppercase: function () { return 'NULL'; },\n camelcase: function () { return 'Null'; },\n empty: function () { return ''; }\n },\n defaultStyle: 'lowercase'\n});\n","'use strict';\n\nvar Type = require('../type');\n\nvar _hasOwnProperty = Object.prototype.hasOwnProperty;\nvar _toString = Object.prototype.toString;\n\nfunction resolveYamlOmap(data) {\n if (data === null) return true;\n\n var objectKeys = [], index, length, pair, pairKey, pairHasKey,\n object = data;\n\n for (index = 0, length = object.length; index < length; index += 1) {\n pair = object[index];\n pairHasKey = false;\n\n if (_toString.call(pair) !== '[object Object]') return false;\n\n for (pairKey in pair) {\n if (_hasOwnProperty.call(pair, pairKey)) {\n if (!pairHasKey) pairHasKey = true;\n else return false;\n }\n }\n\n if (!pairHasKey) return false;\n\n if (objectKeys.indexOf(pairKey) === -1) objectKeys.push(pairKey);\n else return false;\n }\n\n return true;\n}\n\nfunction constructYamlOmap(data) {\n return data !== null ? data : [];\n}\n\nmodule.exports = new Type('tag:yaml.org,2002:omap', {\n kind: 'sequence',\n resolve: resolveYamlOmap,\n construct: constructYamlOmap\n});\n","'use strict';\n\nvar Type = require('../type');\n\nvar _toString = Object.prototype.toString;\n\nfunction resolveYamlPairs(data) {\n if (data === null) return true;\n\n var index, length, pair, keys, result,\n object = data;\n\n result = new Array(object.length);\n\n for (index = 0, length = object.length; index < length; index += 1) {\n pair = object[index];\n\n if (_toString.call(pair) !== '[object Object]') return false;\n\n keys = Object.keys(pair);\n\n if (keys.length !== 1) return false;\n\n result[index] = [ keys[0], pair[keys[0]] ];\n }\n\n return true;\n}\n\nfunction constructYamlPairs(data) {\n if (data === null) return [];\n\n var index, length, pair, keys, result,\n object = data;\n\n result = new Array(object.length);\n\n for (index = 0, length = object.length; index < length; index += 1) {\n pair = object[index];\n\n keys = Object.keys(pair);\n\n result[index] = [ keys[0], pair[keys[0]] ];\n }\n\n return result;\n}\n\nmodule.exports = new Type('tag:yaml.org,2002:pairs', {\n kind: 'sequence',\n resolve: resolveYamlPairs,\n construct: constructYamlPairs\n});\n","'use strict';\n\nvar Type = require('../type');\n\nmodule.exports = new Type('tag:yaml.org,2002:seq', {\n kind: 'sequence',\n construct: function (data) { return data !== null ? data : []; }\n});\n","'use strict';\n\nvar Type = require('../type');\n\nvar _hasOwnProperty = Object.prototype.hasOwnProperty;\n\nfunction resolveYamlSet(data) {\n if (data === null) return true;\n\n var key, object = data;\n\n for (key in object) {\n if (_hasOwnProperty.call(object, key)) {\n if (object[key] !== null) return false;\n }\n }\n\n return true;\n}\n\nfunction constructYamlSet(data) {\n return data !== null ? data : {};\n}\n\nmodule.exports = new Type('tag:yaml.org,2002:set', {\n kind: 'mapping',\n resolve: resolveYamlSet,\n construct: constructYamlSet\n});\n","'use strict';\n\nvar Type = require('../type');\n\nmodule.exports = new Type('tag:yaml.org,2002:str', {\n kind: 'scalar',\n construct: function (data) { return data !== null ? data : ''; }\n});\n","'use strict';\n\nvar Type = require('../type');\n\nvar YAML_DATE_REGEXP = new RegExp(\n '^([0-9][0-9][0-9][0-9])' + // [1] year\n '-([0-9][0-9])' + // [2] month\n '-([0-9][0-9])$'); // [3] day\n\nvar YAML_TIMESTAMP_REGEXP = new RegExp(\n '^([0-9][0-9][0-9][0-9])' + // [1] year\n '-([0-9][0-9]?)' + // [2] month\n '-([0-9][0-9]?)' + // [3] day\n '(?:[Tt]|[ \\\\t]+)' + // ...\n '([0-9][0-9]?)' + // [4] hour\n ':([0-9][0-9])' + // [5] minute\n ':([0-9][0-9])' + // [6] second\n '(?:\\\\.([0-9]*))?' + // [7] fraction\n '(?:[ \\\\t]*(Z|([-+])([0-9][0-9]?)' + // [8] tz [9] tz_sign [10] tz_hour\n '(?::([0-9][0-9]))?))?$'); // [11] tz_minute\n\nfunction resolveYamlTimestamp(data) {\n if (data === null) return false;\n if (YAML_DATE_REGEXP.exec(data) !== null) return true;\n if (YAML_TIMESTAMP_REGEXP.exec(data) !== null) return true;\n return false;\n}\n\nfunction constructYamlTimestamp(data) {\n var match, year, month, day, hour, minute, second, fraction = 0,\n delta = null, tz_hour, tz_minute, date;\n\n match = YAML_DATE_REGEXP.exec(data);\n if (match === null) match = YAML_TIMESTAMP_REGEXP.exec(data);\n\n if (match === null) throw new Error('Date resolve error');\n\n // match: [1] year [2] month [3] day\n\n year = +(match[1]);\n month = +(match[2]) - 1; // JS month starts with 0\n day = +(match[3]);\n\n if (!match[4]) { // no hour\n return new Date(Date.UTC(year, month, day));\n }\n\n // match: [4] hour [5] minute [6] second [7] fraction\n\n hour = +(match[4]);\n minute = +(match[5]);\n second = +(match[6]);\n\n if (match[7]) {\n fraction = match[7].slice(0, 3);\n while (fraction.length < 3) { // milli-seconds\n fraction += '0';\n }\n fraction = +fraction;\n }\n\n // match: [8] tz [9] tz_sign [10] tz_hour [11] tz_minute\n\n if (match[9]) {\n tz_hour = +(match[10]);\n tz_minute = +(match[11] || 0);\n delta = (tz_hour * 60 + tz_minute) * 60000; // delta in mili-seconds\n if (match[9] === '-') delta = -delta;\n }\n\n date = new Date(Date.UTC(year, month, day, hour, minute, second, fraction));\n\n if (delta) date.setTime(date.getTime() - delta);\n\n return date;\n}\n\nfunction representYamlTimestamp(object /*, style*/) {\n return object.toISOString();\n}\n\nmodule.exports = new Type('tag:yaml.org,2002:timestamp', {\n kind: 'scalar',\n resolve: resolveYamlTimestamp,\n construct: constructYamlTimestamp,\n instanceOf: Date,\n represent: representYamlTimestamp\n});\n","\"use strict\";function e(e){this.message=e}e.prototype=new Error,e.prototype.name=\"InvalidCharacterError\";var r=\"undefined\"!=typeof window&&window.atob&&window.atob.bind(window)||function(r){var t=String(r).replace(/=+$/,\"\");if(t.length%4==1)throw new e(\"'atob' failed: The string to be decoded is not correctly encoded.\");for(var n,o,a=0,i=0,c=\"\";o=t.charAt(i++);~o&&(n=a%4?64*n+o:o,a++%4)?c+=String.fromCharCode(255&n>>(-2*a&6)):0)o=\"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\".indexOf(o);return c};function t(e){var t=e.replace(/-/g,\"+\").replace(/_/g,\"/\");switch(t.length%4){case 0:break;case 2:t+=\"==\";break;case 3:t+=\"=\";break;default:throw\"Illegal base64url string!\"}try{return function(e){return decodeURIComponent(r(e).replace(/(.)/g,(function(e,r){var t=r.charCodeAt(0).toString(16).toUpperCase();return t.length<2&&(t=\"0\"+t),\"%\"+t})))}(t)}catch(e){return r(t)}}function n(e){this.message=e}function o(e,r){if(\"string\"!=typeof e)throw new n(\"Invalid token specified\");var o=!0===(r=r||{}).header?0:1;try{return JSON.parse(t(e.split(\".\")[o]))}catch(e){throw new n(\"Invalid token specified: \"+e.message)}}n.prototype=new Error,n.prototype.name=\"InvalidTokenError\";const a=o;a.default=o,a.InvalidTokenError=n,module.exports=a;\n//# sourceMappingURL=jwt-decode.cjs.js.map\n","var util = require('util');\nvar PassThrough = require('readable-stream/passthrough');\n\nmodule.exports = {\n Readable: Readable,\n Writable: Writable\n};\n\nutil.inherits(Readable, PassThrough);\nutil.inherits(Writable, PassThrough);\n\n// Patch the given method of instance so that the callback\n// is executed once, before the actual method is called the\n// first time.\nfunction beforeFirstCall(instance, method, callback) {\n instance[method] = function() {\n delete instance[method];\n callback.apply(this, arguments);\n return this[method].apply(this, arguments);\n };\n}\n\nfunction Readable(fn, options) {\n if (!(this instanceof Readable))\n return new Readable(fn, options);\n\n PassThrough.call(this, options);\n\n beforeFirstCall(this, '_read', function() {\n var source = fn.call(this, options);\n var emit = this.emit.bind(this, 'error');\n source.on('error', emit);\n source.pipe(this);\n });\n\n this.emit('readable');\n}\n\nfunction Writable(fn, options) {\n if (!(this instanceof Writable))\n return new Writable(fn, options);\n\n PassThrough.call(this, options);\n\n beforeFirstCall(this, '_write', function() {\n var destination = fn.call(this, options);\n var emit = this.emit.bind(this, 'error');\n destination.on('error', emit);\n this.pipe(destination);\n });\n\n this.emit('writable');\n}\n\n","// Copyright Joyent, Inc. and other Node contributors.\n//\n// Permission is hereby granted, free of charge, to any person obtaining a\n// copy of this software and associated documentation files (the\n// \"Software\"), to deal in the Software without restriction, including\n// without limitation the rights to use, copy, modify, merge, publish,\n// distribute, sublicense, and/or sell copies of the Software, and to permit\n// persons to whom the Software is furnished to do so, subject to the\n// following conditions:\n//\n// The above copyright notice and this permission notice shall be included\n// in all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\n// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\n// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\n// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n// a duplex stream is just a stream that is both readable and writable.\n// Since JS doesn't have multiple prototypal inheritance, this class\n// prototypally inherits from Readable, and then parasitically from\n// Writable.\n\n'use strict';\n\n/**/\n\nvar pna = require('process-nextick-args');\n/**/\n\n/**/\nvar objectKeys = Object.keys || function (obj) {\n var keys = [];\n for (var key in obj) {\n keys.push(key);\n }return keys;\n};\n/**/\n\nmodule.exports = Duplex;\n\n/**/\nvar util = Object.create(require('core-util-is'));\nutil.inherits = require('inherits');\n/**/\n\nvar Readable = require('./_stream_readable');\nvar Writable = require('./_stream_writable');\n\nutil.inherits(Duplex, Readable);\n\n{\n // avoid scope creep, the keys array can then be collected\n var keys = objectKeys(Writable.prototype);\n for (var v = 0; v < keys.length; v++) {\n var method = keys[v];\n if (!Duplex.prototype[method]) Duplex.prototype[method] = Writable.prototype[method];\n }\n}\n\nfunction Duplex(options) {\n if (!(this instanceof Duplex)) return new Duplex(options);\n\n Readable.call(this, options);\n Writable.call(this, options);\n\n if (options && options.readable === false) this.readable = false;\n\n if (options && options.writable === false) this.writable = false;\n\n this.allowHalfOpen = true;\n if (options && options.allowHalfOpen === false) this.allowHalfOpen = false;\n\n this.once('end', onend);\n}\n\nObject.defineProperty(Duplex.prototype, 'writableHighWaterMark', {\n // making it explicit this property is not enumerable\n // because otherwise some prototype manipulation in\n // userland will fail\n enumerable: false,\n get: function () {\n return this._writableState.highWaterMark;\n }\n});\n\n// the no-half-open enforcer\nfunction onend() {\n // if we allow half-open state, or if the writable side ended,\n // then we're ok.\n if (this.allowHalfOpen || this._writableState.ended) return;\n\n // no more data can be written.\n // But allow more writes to happen in this tick.\n pna.nextTick(onEndNT, this);\n}\n\nfunction onEndNT(self) {\n self.end();\n}\n\nObject.defineProperty(Duplex.prototype, 'destroyed', {\n get: function () {\n if (this._readableState === undefined || this._writableState === undefined) {\n return false;\n }\n return this._readableState.destroyed && this._writableState.destroyed;\n },\n set: function (value) {\n // we ignore the value if the stream\n // has not been initialized yet\n if (this._readableState === undefined || this._writableState === undefined) {\n return;\n }\n\n // backward compatibility, the user is explicitly\n // managing destroyed\n this._readableState.destroyed = value;\n this._writableState.destroyed = value;\n }\n});\n\nDuplex.prototype._destroy = function (err, cb) {\n this.push(null);\n this.end();\n\n pna.nextTick(cb, err);\n};","// Copyright Joyent, Inc. and other Node contributors.\n//\n// Permission is hereby granted, free of charge, to any person obtaining a\n// copy of this software and associated documentation files (the\n// \"Software\"), to deal in the Software without restriction, including\n// without limitation the rights to use, copy, modify, merge, publish,\n// distribute, sublicense, and/or sell copies of the Software, and to permit\n// persons to whom the Software is furnished to do so, subject to the\n// following conditions:\n//\n// The above copyright notice and this permission notice shall be included\n// in all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\n// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\n// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\n// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n// a passthrough stream.\n// basically just the most minimal sort of Transform stream.\n// Every written chunk gets output as-is.\n\n'use strict';\n\nmodule.exports = PassThrough;\n\nvar Transform = require('./_stream_transform');\n\n/**/\nvar util = Object.create(require('core-util-is'));\nutil.inherits = require('inherits');\n/**/\n\nutil.inherits(PassThrough, Transform);\n\nfunction PassThrough(options) {\n if (!(this instanceof PassThrough)) return new PassThrough(options);\n\n Transform.call(this, options);\n}\n\nPassThrough.prototype._transform = function (chunk, encoding, cb) {\n cb(null, chunk);\n};","// Copyright Joyent, Inc. and other Node contributors.\n//\n// Permission is hereby granted, free of charge, to any person obtaining a\n// copy of this software and associated documentation files (the\n// \"Software\"), to deal in the Software without restriction, including\n// without limitation the rights to use, copy, modify, merge, publish,\n// distribute, sublicense, and/or sell copies of the Software, and to permit\n// persons to whom the Software is furnished to do so, subject to the\n// following conditions:\n//\n// The above copyright notice and this permission notice shall be included\n// in all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\n// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\n// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\n// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n'use strict';\n\n/**/\n\nvar pna = require('process-nextick-args');\n/**/\n\nmodule.exports = Readable;\n\n/**/\nvar isArray = require('isarray');\n/**/\n\n/**/\nvar Duplex;\n/**/\n\nReadable.ReadableState = ReadableState;\n\n/**/\nvar EE = require('events').EventEmitter;\n\nvar EElistenerCount = function (emitter, type) {\n return emitter.listeners(type).length;\n};\n/**/\n\n/**/\nvar Stream = require('./internal/streams/stream');\n/**/\n\n/**/\n\nvar Buffer = require('safe-buffer').Buffer;\nvar OurUint8Array = (typeof global !== 'undefined' ? global : typeof window !== 'undefined' ? window : typeof self !== 'undefined' ? self : {}).Uint8Array || function () {};\nfunction _uint8ArrayToBuffer(chunk) {\n return Buffer.from(chunk);\n}\nfunction _isUint8Array(obj) {\n return Buffer.isBuffer(obj) || obj instanceof OurUint8Array;\n}\n\n/**/\n\n/**/\nvar util = Object.create(require('core-util-is'));\nutil.inherits = require('inherits');\n/**/\n\n/**/\nvar debugUtil = require('util');\nvar debug = void 0;\nif (debugUtil && debugUtil.debuglog) {\n debug = debugUtil.debuglog('stream');\n} else {\n debug = function () {};\n}\n/**/\n\nvar BufferList = require('./internal/streams/BufferList');\nvar destroyImpl = require('./internal/streams/destroy');\nvar StringDecoder;\n\nutil.inherits(Readable, Stream);\n\nvar kProxyEvents = ['error', 'close', 'destroy', 'pause', 'resume'];\n\nfunction prependListener(emitter, event, fn) {\n // Sadly this is not cacheable as some libraries bundle their own\n // event emitter implementation with them.\n if (typeof emitter.prependListener === 'function') return emitter.prependListener(event, fn);\n\n // This is a hack to make sure that our error handler is attached before any\n // userland ones. NEVER DO THIS. This is here only because this code needs\n // to continue to work with older versions of Node.js that do not include\n // the prependListener() method. The goal is to eventually remove this hack.\n if (!emitter._events || !emitter._events[event]) emitter.on(event, fn);else if (isArray(emitter._events[event])) emitter._events[event].unshift(fn);else emitter._events[event] = [fn, emitter._events[event]];\n}\n\nfunction ReadableState(options, stream) {\n Duplex = Duplex || require('./_stream_duplex');\n\n options = options || {};\n\n // Duplex streams are both readable and writable, but share\n // the same options object.\n // However, some cases require setting options to different\n // values for the readable and the writable sides of the duplex stream.\n // These options can be provided separately as readableXXX and writableXXX.\n var isDuplex = stream instanceof Duplex;\n\n // object stream flag. Used to make read(n) ignore n and to\n // make all the buffer merging and length checks go away\n this.objectMode = !!options.objectMode;\n\n if (isDuplex) this.objectMode = this.objectMode || !!options.readableObjectMode;\n\n // the point at which it stops calling _read() to fill the buffer\n // Note: 0 is a valid value, means \"don't call _read preemptively ever\"\n var hwm = options.highWaterMark;\n var readableHwm = options.readableHighWaterMark;\n var defaultHwm = this.objectMode ? 16 : 16 * 1024;\n\n if (hwm || hwm === 0) this.highWaterMark = hwm;else if (isDuplex && (readableHwm || readableHwm === 0)) this.highWaterMark = readableHwm;else this.highWaterMark = defaultHwm;\n\n // cast to ints.\n this.highWaterMark = Math.floor(this.highWaterMark);\n\n // A linked list is used to store data chunks instead of an array because the\n // linked list can remove elements from the beginning faster than\n // array.shift()\n this.buffer = new BufferList();\n this.length = 0;\n this.pipes = null;\n this.pipesCount = 0;\n this.flowing = null;\n this.ended = false;\n this.endEmitted = false;\n this.reading = false;\n\n // a flag to be able to tell if the event 'readable'/'data' is emitted\n // immediately, or on a later tick. We set this to true at first, because\n // any actions that shouldn't happen until \"later\" should generally also\n // not happen before the first read call.\n this.sync = true;\n\n // whenever we return null, then we set a flag to say\n // that we're awaiting a 'readable' event emission.\n this.needReadable = false;\n this.emittedReadable = false;\n this.readableListening = false;\n this.resumeScheduled = false;\n\n // has it been destroyed\n this.destroyed = false;\n\n // Crypto is kind of old and crusty. Historically, its default string\n // encoding is 'binary' so we have to make this configurable.\n // Everything else in the universe uses 'utf8', though.\n this.defaultEncoding = options.defaultEncoding || 'utf8';\n\n // the number of writers that are awaiting a drain event in .pipe()s\n this.awaitDrain = 0;\n\n // if true, a maybeReadMore has been scheduled\n this.readingMore = false;\n\n this.decoder = null;\n this.encoding = null;\n if (options.encoding) {\n if (!StringDecoder) StringDecoder = require('string_decoder/').StringDecoder;\n this.decoder = new StringDecoder(options.encoding);\n this.encoding = options.encoding;\n }\n}\n\nfunction Readable(options) {\n Duplex = Duplex || require('./_stream_duplex');\n\n if (!(this instanceof Readable)) return new Readable(options);\n\n this._readableState = new ReadableState(options, this);\n\n // legacy\n this.readable = true;\n\n if (options) {\n if (typeof options.read === 'function') this._read = options.read;\n\n if (typeof options.destroy === 'function') this._destroy = options.destroy;\n }\n\n Stream.call(this);\n}\n\nObject.defineProperty(Readable.prototype, 'destroyed', {\n get: function () {\n if (this._readableState === undefined) {\n return false;\n }\n return this._readableState.destroyed;\n },\n set: function (value) {\n // we ignore the value if the stream\n // has not been initialized yet\n if (!this._readableState) {\n return;\n }\n\n // backward compatibility, the user is explicitly\n // managing destroyed\n this._readableState.destroyed = value;\n }\n});\n\nReadable.prototype.destroy = destroyImpl.destroy;\nReadable.prototype._undestroy = destroyImpl.undestroy;\nReadable.prototype._destroy = function (err, cb) {\n this.push(null);\n cb(err);\n};\n\n// Manually shove something into the read() buffer.\n// This returns true if the highWaterMark has not been hit yet,\n// similar to how Writable.write() returns true if you should\n// write() some more.\nReadable.prototype.push = function (chunk, encoding) {\n var state = this._readableState;\n var skipChunkCheck;\n\n if (!state.objectMode) {\n if (typeof chunk === 'string') {\n encoding = encoding || state.defaultEncoding;\n if (encoding !== state.encoding) {\n chunk = Buffer.from(chunk, encoding);\n encoding = '';\n }\n skipChunkCheck = true;\n }\n } else {\n skipChunkCheck = true;\n }\n\n return readableAddChunk(this, chunk, encoding, false, skipChunkCheck);\n};\n\n// Unshift should *always* be something directly out of read()\nReadable.prototype.unshift = function (chunk) {\n return readableAddChunk(this, chunk, null, true, false);\n};\n\nfunction readableAddChunk(stream, chunk, encoding, addToFront, skipChunkCheck) {\n var state = stream._readableState;\n if (chunk === null) {\n state.reading = false;\n onEofChunk(stream, state);\n } else {\n var er;\n if (!skipChunkCheck) er = chunkInvalid(state, chunk);\n if (er) {\n stream.emit('error', er);\n } else if (state.objectMode || chunk && chunk.length > 0) {\n if (typeof chunk !== 'string' && !state.objectMode && Object.getPrototypeOf(chunk) !== Buffer.prototype) {\n chunk = _uint8ArrayToBuffer(chunk);\n }\n\n if (addToFront) {\n if (state.endEmitted) stream.emit('error', new Error('stream.unshift() after end event'));else addChunk(stream, state, chunk, true);\n } else if (state.ended) {\n stream.emit('error', new Error('stream.push() after EOF'));\n } else {\n state.reading = false;\n if (state.decoder && !encoding) {\n chunk = state.decoder.write(chunk);\n if (state.objectMode || chunk.length !== 0) addChunk(stream, state, chunk, false);else maybeReadMore(stream, state);\n } else {\n addChunk(stream, state, chunk, false);\n }\n }\n } else if (!addToFront) {\n state.reading = false;\n }\n }\n\n return needMoreData(state);\n}\n\nfunction addChunk(stream, state, chunk, addToFront) {\n if (state.flowing && state.length === 0 && !state.sync) {\n stream.emit('data', chunk);\n stream.read(0);\n } else {\n // update the buffer info.\n state.length += state.objectMode ? 1 : chunk.length;\n if (addToFront) state.buffer.unshift(chunk);else state.buffer.push(chunk);\n\n if (state.needReadable) emitReadable(stream);\n }\n maybeReadMore(stream, state);\n}\n\nfunction chunkInvalid(state, chunk) {\n var er;\n if (!_isUint8Array(chunk) && typeof chunk !== 'string' && chunk !== undefined && !state.objectMode) {\n er = new TypeError('Invalid non-string/buffer chunk');\n }\n return er;\n}\n\n// if it's past the high water mark, we can push in some more.\n// Also, if we have no data yet, we can stand some\n// more bytes. This is to work around cases where hwm=0,\n// such as the repl. Also, if the push() triggered a\n// readable event, and the user called read(largeNumber) such that\n// needReadable was set, then we ought to push more, so that another\n// 'readable' event will be triggered.\nfunction needMoreData(state) {\n return !state.ended && (state.needReadable || state.length < state.highWaterMark || state.length === 0);\n}\n\nReadable.prototype.isPaused = function () {\n return this._readableState.flowing === false;\n};\n\n// backwards compatibility.\nReadable.prototype.setEncoding = function (enc) {\n if (!StringDecoder) StringDecoder = require('string_decoder/').StringDecoder;\n this._readableState.decoder = new StringDecoder(enc);\n this._readableState.encoding = enc;\n return this;\n};\n\n// Don't raise the hwm > 8MB\nvar MAX_HWM = 0x800000;\nfunction computeNewHighWaterMark(n) {\n if (n >= MAX_HWM) {\n n = MAX_HWM;\n } else {\n // Get the next highest power of 2 to prevent increasing hwm excessively in\n // tiny amounts\n n--;\n n |= n >>> 1;\n n |= n >>> 2;\n n |= n >>> 4;\n n |= n >>> 8;\n n |= n >>> 16;\n n++;\n }\n return n;\n}\n\n// This function is designed to be inlinable, so please take care when making\n// changes to the function body.\nfunction howMuchToRead(n, state) {\n if (n <= 0 || state.length === 0 && state.ended) return 0;\n if (state.objectMode) return 1;\n if (n !== n) {\n // Only flow one buffer at a time\n if (state.flowing && state.length) return state.buffer.head.data.length;else return state.length;\n }\n // If we're asking for more than the current hwm, then raise the hwm.\n if (n > state.highWaterMark) state.highWaterMark = computeNewHighWaterMark(n);\n if (n <= state.length) return n;\n // Don't have enough\n if (!state.ended) {\n state.needReadable = true;\n return 0;\n }\n return state.length;\n}\n\n// you can override either this method, or the async _read(n) below.\nReadable.prototype.read = function (n) {\n debug('read', n);\n n = parseInt(n, 10);\n var state = this._readableState;\n var nOrig = n;\n\n if (n !== 0) state.emittedReadable = false;\n\n // if we're doing read(0) to trigger a readable event, but we\n // already have a bunch of data in the buffer, then just trigger\n // the 'readable' event and move on.\n if (n === 0 && state.needReadable && (state.length >= state.highWaterMark || state.ended)) {\n debug('read: emitReadable', state.length, state.ended);\n if (state.length === 0 && state.ended) endReadable(this);else emitReadable(this);\n return null;\n }\n\n n = howMuchToRead(n, state);\n\n // if we've ended, and we're now clear, then finish it up.\n if (n === 0 && state.ended) {\n if (state.length === 0) endReadable(this);\n return null;\n }\n\n // All the actual chunk generation logic needs to be\n // *below* the call to _read. The reason is that in certain\n // synthetic stream cases, such as passthrough streams, _read\n // may be a completely synchronous operation which may change\n // the state of the read buffer, providing enough data when\n // before there was *not* enough.\n //\n // So, the steps are:\n // 1. Figure out what the state of things will be after we do\n // a read from the buffer.\n //\n // 2. If that resulting state will trigger a _read, then call _read.\n // Note that this may be asynchronous, or synchronous. Yes, it is\n // deeply ugly to write APIs this way, but that still doesn't mean\n // that the Readable class should behave improperly, as streams are\n // designed to be sync/async agnostic.\n // Take note if the _read call is sync or async (ie, if the read call\n // has returned yet), so that we know whether or not it's safe to emit\n // 'readable' etc.\n //\n // 3. Actually pull the requested chunks out of the buffer and return.\n\n // if we need a readable event, then we need to do some reading.\n var doRead = state.needReadable;\n debug('need readable', doRead);\n\n // if we currently have less than the highWaterMark, then also read some\n if (state.length === 0 || state.length - n < state.highWaterMark) {\n doRead = true;\n debug('length less than watermark', doRead);\n }\n\n // however, if we've ended, then there's no point, and if we're already\n // reading, then it's unnecessary.\n if (state.ended || state.reading) {\n doRead = false;\n debug('reading or ended', doRead);\n } else if (doRead) {\n debug('do read');\n state.reading = true;\n state.sync = true;\n // if the length is currently zero, then we *need* a readable event.\n if (state.length === 0) state.needReadable = true;\n // call internal read method\n this._read(state.highWaterMark);\n state.sync = false;\n // If _read pushed data synchronously, then `reading` will be false,\n // and we need to re-evaluate how much data we can return to the user.\n if (!state.reading) n = howMuchToRead(nOrig, state);\n }\n\n var ret;\n if (n > 0) ret = fromList(n, state);else ret = null;\n\n if (ret === null) {\n state.needReadable = true;\n n = 0;\n } else {\n state.length -= n;\n }\n\n if (state.length === 0) {\n // If we have nothing in the buffer, then we want to know\n // as soon as we *do* get something into the buffer.\n if (!state.ended) state.needReadable = true;\n\n // If we tried to read() past the EOF, then emit end on the next tick.\n if (nOrig !== n && state.ended) endReadable(this);\n }\n\n if (ret !== null) this.emit('data', ret);\n\n return ret;\n};\n\nfunction onEofChunk(stream, state) {\n if (state.ended) return;\n if (state.decoder) {\n var chunk = state.decoder.end();\n if (chunk && chunk.length) {\n state.buffer.push(chunk);\n state.length += state.objectMode ? 1 : chunk.length;\n }\n }\n state.ended = true;\n\n // emit 'readable' now to make sure it gets picked up.\n emitReadable(stream);\n}\n\n// Don't emit readable right away in sync mode, because this can trigger\n// another read() call => stack overflow. This way, it might trigger\n// a nextTick recursion warning, but that's not so bad.\nfunction emitReadable(stream) {\n var state = stream._readableState;\n state.needReadable = false;\n if (!state.emittedReadable) {\n debug('emitReadable', state.flowing);\n state.emittedReadable = true;\n if (state.sync) pna.nextTick(emitReadable_, stream);else emitReadable_(stream);\n }\n}\n\nfunction emitReadable_(stream) {\n debug('emit readable');\n stream.emit('readable');\n flow(stream);\n}\n\n// at this point, the user has presumably seen the 'readable' event,\n// and called read() to consume some data. that may have triggered\n// in turn another _read(n) call, in which case reading = true if\n// it's in progress.\n// However, if we're not ended, or reading, and the length < hwm,\n// then go ahead and try to read some more preemptively.\nfunction maybeReadMore(stream, state) {\n if (!state.readingMore) {\n state.readingMore = true;\n pna.nextTick(maybeReadMore_, stream, state);\n }\n}\n\nfunction maybeReadMore_(stream, state) {\n var len = state.length;\n while (!state.reading && !state.flowing && !state.ended && state.length < state.highWaterMark) {\n debug('maybeReadMore read 0');\n stream.read(0);\n if (len === state.length)\n // didn't get any data, stop spinning.\n break;else len = state.length;\n }\n state.readingMore = false;\n}\n\n// abstract method. to be overridden in specific implementation classes.\n// call cb(er, data) where data is <= n in length.\n// for virtual (non-string, non-buffer) streams, \"length\" is somewhat\n// arbitrary, and perhaps not very meaningful.\nReadable.prototype._read = function (n) {\n this.emit('error', new Error('_read() is not implemented'));\n};\n\nReadable.prototype.pipe = function (dest, pipeOpts) {\n var src = this;\n var state = this._readableState;\n\n switch (state.pipesCount) {\n case 0:\n state.pipes = dest;\n break;\n case 1:\n state.pipes = [state.pipes, dest];\n break;\n default:\n state.pipes.push(dest);\n break;\n }\n state.pipesCount += 1;\n debug('pipe count=%d opts=%j', state.pipesCount, pipeOpts);\n\n var doEnd = (!pipeOpts || pipeOpts.end !== false) && dest !== process.stdout && dest !== process.stderr;\n\n var endFn = doEnd ? onend : unpipe;\n if (state.endEmitted) pna.nextTick(endFn);else src.once('end', endFn);\n\n dest.on('unpipe', onunpipe);\n function onunpipe(readable, unpipeInfo) {\n debug('onunpipe');\n if (readable === src) {\n if (unpipeInfo && unpipeInfo.hasUnpiped === false) {\n unpipeInfo.hasUnpiped = true;\n cleanup();\n }\n }\n }\n\n function onend() {\n debug('onend');\n dest.end();\n }\n\n // when the dest drains, it reduces the awaitDrain counter\n // on the source. This would be more elegant with a .once()\n // handler in flow(), but adding and removing repeatedly is\n // too slow.\n var ondrain = pipeOnDrain(src);\n dest.on('drain', ondrain);\n\n var cleanedUp = false;\n function cleanup() {\n debug('cleanup');\n // cleanup event handlers once the pipe is broken\n dest.removeListener('close', onclose);\n dest.removeListener('finish', onfinish);\n dest.removeListener('drain', ondrain);\n dest.removeListener('error', onerror);\n dest.removeListener('unpipe', onunpipe);\n src.removeListener('end', onend);\n src.removeListener('end', unpipe);\n src.removeListener('data', ondata);\n\n cleanedUp = true;\n\n // if the reader is waiting for a drain event from this\n // specific writer, then it would cause it to never start\n // flowing again.\n // So, if this is awaiting a drain, then we just call it now.\n // If we don't know, then assume that we are waiting for one.\n if (state.awaitDrain && (!dest._writableState || dest._writableState.needDrain)) ondrain();\n }\n\n // If the user pushes more data while we're writing to dest then we'll end up\n // in ondata again. However, we only want to increase awaitDrain once because\n // dest will only emit one 'drain' event for the multiple writes.\n // => Introduce a guard on increasing awaitDrain.\n var increasedAwaitDrain = false;\n src.on('data', ondata);\n function ondata(chunk) {\n debug('ondata');\n increasedAwaitDrain = false;\n var ret = dest.write(chunk);\n if (false === ret && !increasedAwaitDrain) {\n // If the user unpiped during `dest.write()`, it is possible\n // to get stuck in a permanently paused state if that write\n // also returned false.\n // => Check whether `dest` is still a piping destination.\n if ((state.pipesCount === 1 && state.pipes === dest || state.pipesCount > 1 && indexOf(state.pipes, dest) !== -1) && !cleanedUp) {\n debug('false write response, pause', state.awaitDrain);\n state.awaitDrain++;\n increasedAwaitDrain = true;\n }\n src.pause();\n }\n }\n\n // if the dest has an error, then stop piping into it.\n // however, don't suppress the throwing behavior for this.\n function onerror(er) {\n debug('onerror', er);\n unpipe();\n dest.removeListener('error', onerror);\n if (EElistenerCount(dest, 'error') === 0) dest.emit('error', er);\n }\n\n // Make sure our error handler is attached before userland ones.\n prependListener(dest, 'error', onerror);\n\n // Both close and finish should trigger unpipe, but only once.\n function onclose() {\n dest.removeListener('finish', onfinish);\n unpipe();\n }\n dest.once('close', onclose);\n function onfinish() {\n debug('onfinish');\n dest.removeListener('close', onclose);\n unpipe();\n }\n dest.once('finish', onfinish);\n\n function unpipe() {\n debug('unpipe');\n src.unpipe(dest);\n }\n\n // tell the dest that it's being piped to\n dest.emit('pipe', src);\n\n // start the flow if it hasn't been started already.\n if (!state.flowing) {\n debug('pipe resume');\n src.resume();\n }\n\n return dest;\n};\n\nfunction pipeOnDrain(src) {\n return function () {\n var state = src._readableState;\n debug('pipeOnDrain', state.awaitDrain);\n if (state.awaitDrain) state.awaitDrain--;\n if (state.awaitDrain === 0 && EElistenerCount(src, 'data')) {\n state.flowing = true;\n flow(src);\n }\n };\n}\n\nReadable.prototype.unpipe = function (dest) {\n var state = this._readableState;\n var unpipeInfo = { hasUnpiped: false };\n\n // if we're not piping anywhere, then do nothing.\n if (state.pipesCount === 0) return this;\n\n // just one destination. most common case.\n if (state.pipesCount === 1) {\n // passed in one, but it's not the right one.\n if (dest && dest !== state.pipes) return this;\n\n if (!dest) dest = state.pipes;\n\n // got a match.\n state.pipes = null;\n state.pipesCount = 0;\n state.flowing = false;\n if (dest) dest.emit('unpipe', this, unpipeInfo);\n return this;\n }\n\n // slow case. multiple pipe destinations.\n\n if (!dest) {\n // remove all.\n var dests = state.pipes;\n var len = state.pipesCount;\n state.pipes = null;\n state.pipesCount = 0;\n state.flowing = false;\n\n for (var i = 0; i < len; i++) {\n dests[i].emit('unpipe', this, { hasUnpiped: false });\n }return this;\n }\n\n // try to find the right one.\n var index = indexOf(state.pipes, dest);\n if (index === -1) return this;\n\n state.pipes.splice(index, 1);\n state.pipesCount -= 1;\n if (state.pipesCount === 1) state.pipes = state.pipes[0];\n\n dest.emit('unpipe', this, unpipeInfo);\n\n return this;\n};\n\n// set up data events if they are asked for\n// Ensure readable listeners eventually get something\nReadable.prototype.on = function (ev, fn) {\n var res = Stream.prototype.on.call(this, ev, fn);\n\n if (ev === 'data') {\n // Start flowing on next tick if stream isn't explicitly paused\n if (this._readableState.flowing !== false) this.resume();\n } else if (ev === 'readable') {\n var state = this._readableState;\n if (!state.endEmitted && !state.readableListening) {\n state.readableListening = state.needReadable = true;\n state.emittedReadable = false;\n if (!state.reading) {\n pna.nextTick(nReadingNextTick, this);\n } else if (state.length) {\n emitReadable(this);\n }\n }\n }\n\n return res;\n};\nReadable.prototype.addListener = Readable.prototype.on;\n\nfunction nReadingNextTick(self) {\n debug('readable nexttick read 0');\n self.read(0);\n}\n\n// pause() and resume() are remnants of the legacy readable stream API\n// If the user uses them, then switch into old mode.\nReadable.prototype.resume = function () {\n var state = this._readableState;\n if (!state.flowing) {\n debug('resume');\n state.flowing = true;\n resume(this, state);\n }\n return this;\n};\n\nfunction resume(stream, state) {\n if (!state.resumeScheduled) {\n state.resumeScheduled = true;\n pna.nextTick(resume_, stream, state);\n }\n}\n\nfunction resume_(stream, state) {\n if (!state.reading) {\n debug('resume read 0');\n stream.read(0);\n }\n\n state.resumeScheduled = false;\n state.awaitDrain = 0;\n stream.emit('resume');\n flow(stream);\n if (state.flowing && !state.reading) stream.read(0);\n}\n\nReadable.prototype.pause = function () {\n debug('call pause flowing=%j', this._readableState.flowing);\n if (false !== this._readableState.flowing) {\n debug('pause');\n this._readableState.flowing = false;\n this.emit('pause');\n }\n return this;\n};\n\nfunction flow(stream) {\n var state = stream._readableState;\n debug('flow', state.flowing);\n while (state.flowing && stream.read() !== null) {}\n}\n\n// wrap an old-style stream as the async data source.\n// This is *not* part of the readable stream interface.\n// It is an ugly unfortunate mess of history.\nReadable.prototype.wrap = function (stream) {\n var _this = this;\n\n var state = this._readableState;\n var paused = false;\n\n stream.on('end', function () {\n debug('wrapped end');\n if (state.decoder && !state.ended) {\n var chunk = state.decoder.end();\n if (chunk && chunk.length) _this.push(chunk);\n }\n\n _this.push(null);\n });\n\n stream.on('data', function (chunk) {\n debug('wrapped data');\n if (state.decoder) chunk = state.decoder.write(chunk);\n\n // don't skip over falsy values in objectMode\n if (state.objectMode && (chunk === null || chunk === undefined)) return;else if (!state.objectMode && (!chunk || !chunk.length)) return;\n\n var ret = _this.push(chunk);\n if (!ret) {\n paused = true;\n stream.pause();\n }\n });\n\n // proxy all the other methods.\n // important when wrapping filters and duplexes.\n for (var i in stream) {\n if (this[i] === undefined && typeof stream[i] === 'function') {\n this[i] = function (method) {\n return function () {\n return stream[method].apply(stream, arguments);\n };\n }(i);\n }\n }\n\n // proxy certain important events.\n for (var n = 0; n < kProxyEvents.length; n++) {\n stream.on(kProxyEvents[n], this.emit.bind(this, kProxyEvents[n]));\n }\n\n // when we try to consume some more bytes, simply unpause the\n // underlying stream.\n this._read = function (n) {\n debug('wrapped _read', n);\n if (paused) {\n paused = false;\n stream.resume();\n }\n };\n\n return this;\n};\n\nObject.defineProperty(Readable.prototype, 'readableHighWaterMark', {\n // making it explicit this property is not enumerable\n // because otherwise some prototype manipulation in\n // userland will fail\n enumerable: false,\n get: function () {\n return this._readableState.highWaterMark;\n }\n});\n\n// exposed for testing purposes only.\nReadable._fromList = fromList;\n\n// Pluck off n bytes from an array of buffers.\n// Length is the combined lengths of all the buffers in the list.\n// This function is designed to be inlinable, so please take care when making\n// changes to the function body.\nfunction fromList(n, state) {\n // nothing buffered\n if (state.length === 0) return null;\n\n var ret;\n if (state.objectMode) ret = state.buffer.shift();else if (!n || n >= state.length) {\n // read it all, truncate the list\n if (state.decoder) ret = state.buffer.join('');else if (state.buffer.length === 1) ret = state.buffer.head.data;else ret = state.buffer.concat(state.length);\n state.buffer.clear();\n } else {\n // read part of list\n ret = fromListPartial(n, state.buffer, state.decoder);\n }\n\n return ret;\n}\n\n// Extracts only enough buffered data to satisfy the amount requested.\n// This function is designed to be inlinable, so please take care when making\n// changes to the function body.\nfunction fromListPartial(n, list, hasStrings) {\n var ret;\n if (n < list.head.data.length) {\n // slice is the same for buffers and strings\n ret = list.head.data.slice(0, n);\n list.head.data = list.head.data.slice(n);\n } else if (n === list.head.data.length) {\n // first chunk is a perfect match\n ret = list.shift();\n } else {\n // result spans more than one buffer\n ret = hasStrings ? copyFromBufferString(n, list) : copyFromBuffer(n, list);\n }\n return ret;\n}\n\n// Copies a specified amount of characters from the list of buffered data\n// chunks.\n// This function is designed to be inlinable, so please take care when making\n// changes to the function body.\nfunction copyFromBufferString(n, list) {\n var p = list.head;\n var c = 1;\n var ret = p.data;\n n -= ret.length;\n while (p = p.next) {\n var str = p.data;\n var nb = n > str.length ? str.length : n;\n if (nb === str.length) ret += str;else ret += str.slice(0, n);\n n -= nb;\n if (n === 0) {\n if (nb === str.length) {\n ++c;\n if (p.next) list.head = p.next;else list.head = list.tail = null;\n } else {\n list.head = p;\n p.data = str.slice(nb);\n }\n break;\n }\n ++c;\n }\n list.length -= c;\n return ret;\n}\n\n// Copies a specified amount of bytes from the list of buffered data chunks.\n// This function is designed to be inlinable, so please take care when making\n// changes to the function body.\nfunction copyFromBuffer(n, list) {\n var ret = Buffer.allocUnsafe(n);\n var p = list.head;\n var c = 1;\n p.data.copy(ret);\n n -= p.data.length;\n while (p = p.next) {\n var buf = p.data;\n var nb = n > buf.length ? buf.length : n;\n buf.copy(ret, ret.length - n, 0, nb);\n n -= nb;\n if (n === 0) {\n if (nb === buf.length) {\n ++c;\n if (p.next) list.head = p.next;else list.head = list.tail = null;\n } else {\n list.head = p;\n p.data = buf.slice(nb);\n }\n break;\n }\n ++c;\n }\n list.length -= c;\n return ret;\n}\n\nfunction endReadable(stream) {\n var state = stream._readableState;\n\n // If we get here before consuming all the bytes, then that is a\n // bug in node. Should never happen.\n if (state.length > 0) throw new Error('\"endReadable()\" called on non-empty stream');\n\n if (!state.endEmitted) {\n state.ended = true;\n pna.nextTick(endReadableNT, state, stream);\n }\n}\n\nfunction endReadableNT(state, stream) {\n // Check that we didn't get one last unshift.\n if (!state.endEmitted && state.length === 0) {\n state.endEmitted = true;\n stream.readable = false;\n stream.emit('end');\n }\n}\n\nfunction indexOf(xs, x) {\n for (var i = 0, l = xs.length; i < l; i++) {\n if (xs[i] === x) return i;\n }\n return -1;\n}","// Copyright Joyent, Inc. and other Node contributors.\n//\n// Permission is hereby granted, free of charge, to any person obtaining a\n// copy of this software and associated documentation files (the\n// \"Software\"), to deal in the Software without restriction, including\n// without limitation the rights to use, copy, modify, merge, publish,\n// distribute, sublicense, and/or sell copies of the Software, and to permit\n// persons to whom the Software is furnished to do so, subject to the\n// following conditions:\n//\n// The above copyright notice and this permission notice shall be included\n// in all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\n// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\n// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\n// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n// a transform stream is a readable/writable stream where you do\n// something with the data. Sometimes it's called a \"filter\",\n// but that's not a great name for it, since that implies a thing where\n// some bits pass through, and others are simply ignored. (That would\n// be a valid example of a transform, of course.)\n//\n// While the output is causally related to the input, it's not a\n// necessarily symmetric or synchronous transformation. For example,\n// a zlib stream might take multiple plain-text writes(), and then\n// emit a single compressed chunk some time in the future.\n//\n// Here's how this works:\n//\n// The Transform stream has all the aspects of the readable and writable\n// stream classes. When you write(chunk), that calls _write(chunk,cb)\n// internally, and returns false if there's a lot of pending writes\n// buffered up. When you call read(), that calls _read(n) until\n// there's enough pending readable data buffered up.\n//\n// In a transform stream, the written data is placed in a buffer. When\n// _read(n) is called, it transforms the queued up data, calling the\n// buffered _write cb's as it consumes chunks. If consuming a single\n// written chunk would result in multiple output chunks, then the first\n// outputted bit calls the readcb, and subsequent chunks just go into\n// the read buffer, and will cause it to emit 'readable' if necessary.\n//\n// This way, back-pressure is actually determined by the reading side,\n// since _read has to be called to start processing a new chunk. However,\n// a pathological inflate type of transform can cause excessive buffering\n// here. For example, imagine a stream where every byte of input is\n// interpreted as an integer from 0-255, and then results in that many\n// bytes of output. Writing the 4 bytes {ff,ff,ff,ff} would result in\n// 1kb of data being output. In this case, you could write a very small\n// amount of input, and end up with a very large amount of output. In\n// such a pathological inflating mechanism, there'd be no way to tell\n// the system to stop doing the transform. A single 4MB write could\n// cause the system to run out of memory.\n//\n// However, even in such a pathological case, only a single written chunk\n// would be consumed, and then the rest would wait (un-transformed) until\n// the results of the previous transformed chunk were consumed.\n\n'use strict';\n\nmodule.exports = Transform;\n\nvar Duplex = require('./_stream_duplex');\n\n/**/\nvar util = Object.create(require('core-util-is'));\nutil.inherits = require('inherits');\n/**/\n\nutil.inherits(Transform, Duplex);\n\nfunction afterTransform(er, data) {\n var ts = this._transformState;\n ts.transforming = false;\n\n var cb = ts.writecb;\n\n if (!cb) {\n return this.emit('error', new Error('write callback called multiple times'));\n }\n\n ts.writechunk = null;\n ts.writecb = null;\n\n if (data != null) // single equals check for both `null` and `undefined`\n this.push(data);\n\n cb(er);\n\n var rs = this._readableState;\n rs.reading = false;\n if (rs.needReadable || rs.length < rs.highWaterMark) {\n this._read(rs.highWaterMark);\n }\n}\n\nfunction Transform(options) {\n if (!(this instanceof Transform)) return new Transform(options);\n\n Duplex.call(this, options);\n\n this._transformState = {\n afterTransform: afterTransform.bind(this),\n needTransform: false,\n transforming: false,\n writecb: null,\n writechunk: null,\n writeencoding: null\n };\n\n // start out asking for a readable event once data is transformed.\n this._readableState.needReadable = true;\n\n // we have implemented the _read method, and done the other things\n // that Readable wants before the first _read call, so unset the\n // sync guard flag.\n this._readableState.sync = false;\n\n if (options) {\n if (typeof options.transform === 'function') this._transform = options.transform;\n\n if (typeof options.flush === 'function') this._flush = options.flush;\n }\n\n // When the writable side finishes, then flush out anything remaining.\n this.on('prefinish', prefinish);\n}\n\nfunction prefinish() {\n var _this = this;\n\n if (typeof this._flush === 'function') {\n this._flush(function (er, data) {\n done(_this, er, data);\n });\n } else {\n done(this, null, null);\n }\n}\n\nTransform.prototype.push = function (chunk, encoding) {\n this._transformState.needTransform = false;\n return Duplex.prototype.push.call(this, chunk, encoding);\n};\n\n// This is the part where you do stuff!\n// override this function in implementation classes.\n// 'chunk' is an input chunk.\n//\n// Call `push(newChunk)` to pass along transformed output\n// to the readable side. You may call 'push' zero or more times.\n//\n// Call `cb(err)` when you are done with this chunk. If you pass\n// an error, then that'll put the hurt on the whole operation. If you\n// never call cb(), then you'll never get another chunk.\nTransform.prototype._transform = function (chunk, encoding, cb) {\n throw new Error('_transform() is not implemented');\n};\n\nTransform.prototype._write = function (chunk, encoding, cb) {\n var ts = this._transformState;\n ts.writecb = cb;\n ts.writechunk = chunk;\n ts.writeencoding = encoding;\n if (!ts.transforming) {\n var rs = this._readableState;\n if (ts.needTransform || rs.needReadable || rs.length < rs.highWaterMark) this._read(rs.highWaterMark);\n }\n};\n\n// Doesn't matter what the args are here.\n// _transform does all the work.\n// That we got here means that the readable side wants more data.\nTransform.prototype._read = function (n) {\n var ts = this._transformState;\n\n if (ts.writechunk !== null && ts.writecb && !ts.transforming) {\n ts.transforming = true;\n this._transform(ts.writechunk, ts.writeencoding, ts.afterTransform);\n } else {\n // mark that we need a transform, so that any data that comes in\n // will get processed, now that we've asked for it.\n ts.needTransform = true;\n }\n};\n\nTransform.prototype._destroy = function (err, cb) {\n var _this2 = this;\n\n Duplex.prototype._destroy.call(this, err, function (err2) {\n cb(err2);\n _this2.emit('close');\n });\n};\n\nfunction done(stream, er, data) {\n if (er) return stream.emit('error', er);\n\n if (data != null) // single equals check for both `null` and `undefined`\n stream.push(data);\n\n // if there's nothing in the write buffer, then that means\n // that nothing more will ever be provided\n if (stream._writableState.length) throw new Error('Calling transform done when ws.length != 0');\n\n if (stream._transformState.transforming) throw new Error('Calling transform done when still transforming');\n\n return stream.push(null);\n}","// Copyright Joyent, Inc. and other Node contributors.\n//\n// Permission is hereby granted, free of charge, to any person obtaining a\n// copy of this software and associated documentation files (the\n// \"Software\"), to deal in the Software without restriction, including\n// without limitation the rights to use, copy, modify, merge, publish,\n// distribute, sublicense, and/or sell copies of the Software, and to permit\n// persons to whom the Software is furnished to do so, subject to the\n// following conditions:\n//\n// The above copyright notice and this permission notice shall be included\n// in all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\n// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\n// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\n// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n// A bit simpler than readable streams.\n// Implement an async ._write(chunk, encoding, cb), and it'll handle all\n// the drain event emission and buffering.\n\n'use strict';\n\n/**/\n\nvar pna = require('process-nextick-args');\n/**/\n\nmodule.exports = Writable;\n\n/* */\nfunction WriteReq(chunk, encoding, cb) {\n this.chunk = chunk;\n this.encoding = encoding;\n this.callback = cb;\n this.next = null;\n}\n\n// It seems a linked list but it is not\n// there will be only 2 of these for each stream\nfunction CorkedRequest(state) {\n var _this = this;\n\n this.next = null;\n this.entry = null;\n this.finish = function () {\n onCorkedFinish(_this, state);\n };\n}\n/* */\n\n/**/\nvar asyncWrite = !process.browser && ['v0.10', 'v0.9.'].indexOf(process.version.slice(0, 5)) > -1 ? setImmediate : pna.nextTick;\n/**/\n\n/**/\nvar Duplex;\n/**/\n\nWritable.WritableState = WritableState;\n\n/**/\nvar util = Object.create(require('core-util-is'));\nutil.inherits = require('inherits');\n/**/\n\n/**/\nvar internalUtil = {\n deprecate: require('util-deprecate')\n};\n/**/\n\n/**/\nvar Stream = require('./internal/streams/stream');\n/**/\n\n/**/\n\nvar Buffer = require('safe-buffer').Buffer;\nvar OurUint8Array = (typeof global !== 'undefined' ? global : typeof window !== 'undefined' ? window : typeof self !== 'undefined' ? self : {}).Uint8Array || function () {};\nfunction _uint8ArrayToBuffer(chunk) {\n return Buffer.from(chunk);\n}\nfunction _isUint8Array(obj) {\n return Buffer.isBuffer(obj) || obj instanceof OurUint8Array;\n}\n\n/**/\n\nvar destroyImpl = require('./internal/streams/destroy');\n\nutil.inherits(Writable, Stream);\n\nfunction nop() {}\n\nfunction WritableState(options, stream) {\n Duplex = Duplex || require('./_stream_duplex');\n\n options = options || {};\n\n // Duplex streams are both readable and writable, but share\n // the same options object.\n // However, some cases require setting options to different\n // values for the readable and the writable sides of the duplex stream.\n // These options can be provided separately as readableXXX and writableXXX.\n var isDuplex = stream instanceof Duplex;\n\n // object stream flag to indicate whether or not this stream\n // contains buffers or objects.\n this.objectMode = !!options.objectMode;\n\n if (isDuplex) this.objectMode = this.objectMode || !!options.writableObjectMode;\n\n // the point at which write() starts returning false\n // Note: 0 is a valid value, means that we always return false if\n // the entire buffer is not flushed immediately on write()\n var hwm = options.highWaterMark;\n var writableHwm = options.writableHighWaterMark;\n var defaultHwm = this.objectMode ? 16 : 16 * 1024;\n\n if (hwm || hwm === 0) this.highWaterMark = hwm;else if (isDuplex && (writableHwm || writableHwm === 0)) this.highWaterMark = writableHwm;else this.highWaterMark = defaultHwm;\n\n // cast to ints.\n this.highWaterMark = Math.floor(this.highWaterMark);\n\n // if _final has been called\n this.finalCalled = false;\n\n // drain event flag.\n this.needDrain = false;\n // at the start of calling end()\n this.ending = false;\n // when end() has been called, and returned\n this.ended = false;\n // when 'finish' is emitted\n this.finished = false;\n\n // has it been destroyed\n this.destroyed = false;\n\n // should we decode strings into buffers before passing to _write?\n // this is here so that some node-core streams can optimize string\n // handling at a lower level.\n var noDecode = options.decodeStrings === false;\n this.decodeStrings = !noDecode;\n\n // Crypto is kind of old and crusty. Historically, its default string\n // encoding is 'binary' so we have to make this configurable.\n // Everything else in the universe uses 'utf8', though.\n this.defaultEncoding = options.defaultEncoding || 'utf8';\n\n // not an actual buffer we keep track of, but a measurement\n // of how much we're waiting to get pushed to some underlying\n // socket or file.\n this.length = 0;\n\n // a flag to see when we're in the middle of a write.\n this.writing = false;\n\n // when true all writes will be buffered until .uncork() call\n this.corked = 0;\n\n // a flag to be able to tell if the onwrite cb is called immediately,\n // or on a later tick. We set this to true at first, because any\n // actions that shouldn't happen until \"later\" should generally also\n // not happen before the first write call.\n this.sync = true;\n\n // a flag to know if we're processing previously buffered items, which\n // may call the _write() callback in the same tick, so that we don't\n // end up in an overlapped onwrite situation.\n this.bufferProcessing = false;\n\n // the callback that's passed to _write(chunk,cb)\n this.onwrite = function (er) {\n onwrite(stream, er);\n };\n\n // the callback that the user supplies to write(chunk,encoding,cb)\n this.writecb = null;\n\n // the amount that is being written when _write is called.\n this.writelen = 0;\n\n this.bufferedRequest = null;\n this.lastBufferedRequest = null;\n\n // number of pending user-supplied write callbacks\n // this must be 0 before 'finish' can be emitted\n this.pendingcb = 0;\n\n // emit prefinish if the only thing we're waiting for is _write cbs\n // This is relevant for synchronous Transform streams\n this.prefinished = false;\n\n // True if the error was already emitted and should not be thrown again\n this.errorEmitted = false;\n\n // count buffered requests\n this.bufferedRequestCount = 0;\n\n // allocate the first CorkedRequest, there is always\n // one allocated and free to use, and we maintain at most two\n this.corkedRequestsFree = new CorkedRequest(this);\n}\n\nWritableState.prototype.getBuffer = function getBuffer() {\n var current = this.bufferedRequest;\n var out = [];\n while (current) {\n out.push(current);\n current = current.next;\n }\n return out;\n};\n\n(function () {\n try {\n Object.defineProperty(WritableState.prototype, 'buffer', {\n get: internalUtil.deprecate(function () {\n return this.getBuffer();\n }, '_writableState.buffer is deprecated. Use _writableState.getBuffer ' + 'instead.', 'DEP0003')\n });\n } catch (_) {}\n})();\n\n// Test _writableState for inheritance to account for Duplex streams,\n// whose prototype chain only points to Readable.\nvar realHasInstance;\nif (typeof Symbol === 'function' && Symbol.hasInstance && typeof Function.prototype[Symbol.hasInstance] === 'function') {\n realHasInstance = Function.prototype[Symbol.hasInstance];\n Object.defineProperty(Writable, Symbol.hasInstance, {\n value: function (object) {\n if (realHasInstance.call(this, object)) return true;\n if (this !== Writable) return false;\n\n return object && object._writableState instanceof WritableState;\n }\n });\n} else {\n realHasInstance = function (object) {\n return object instanceof this;\n };\n}\n\nfunction Writable(options) {\n Duplex = Duplex || require('./_stream_duplex');\n\n // Writable ctor is applied to Duplexes, too.\n // `realHasInstance` is necessary because using plain `instanceof`\n // would return false, as no `_writableState` property is attached.\n\n // Trying to use the custom `instanceof` for Writable here will also break the\n // Node.js LazyTransform implementation, which has a non-trivial getter for\n // `_writableState` that would lead to infinite recursion.\n if (!realHasInstance.call(Writable, this) && !(this instanceof Duplex)) {\n return new Writable(options);\n }\n\n this._writableState = new WritableState(options, this);\n\n // legacy.\n this.writable = true;\n\n if (options) {\n if (typeof options.write === 'function') this._write = options.write;\n\n if (typeof options.writev === 'function') this._writev = options.writev;\n\n if (typeof options.destroy === 'function') this._destroy = options.destroy;\n\n if (typeof options.final === 'function') this._final = options.final;\n }\n\n Stream.call(this);\n}\n\n// Otherwise people can pipe Writable streams, which is just wrong.\nWritable.prototype.pipe = function () {\n this.emit('error', new Error('Cannot pipe, not readable'));\n};\n\nfunction writeAfterEnd(stream, cb) {\n var er = new Error('write after end');\n // TODO: defer error events consistently everywhere, not just the cb\n stream.emit('error', er);\n pna.nextTick(cb, er);\n}\n\n// Checks that a user-supplied chunk is valid, especially for the particular\n// mode the stream is in. Currently this means that `null` is never accepted\n// and undefined/non-string values are only allowed in object mode.\nfunction validChunk(stream, state, chunk, cb) {\n var valid = true;\n var er = false;\n\n if (chunk === null) {\n er = new TypeError('May not write null values to stream');\n } else if (typeof chunk !== 'string' && chunk !== undefined && !state.objectMode) {\n er = new TypeError('Invalid non-string/buffer chunk');\n }\n if (er) {\n stream.emit('error', er);\n pna.nextTick(cb, er);\n valid = false;\n }\n return valid;\n}\n\nWritable.prototype.write = function (chunk, encoding, cb) {\n var state = this._writableState;\n var ret = false;\n var isBuf = !state.objectMode && _isUint8Array(chunk);\n\n if (isBuf && !Buffer.isBuffer(chunk)) {\n chunk = _uint8ArrayToBuffer(chunk);\n }\n\n if (typeof encoding === 'function') {\n cb = encoding;\n encoding = null;\n }\n\n if (isBuf) encoding = 'buffer';else if (!encoding) encoding = state.defaultEncoding;\n\n if (typeof cb !== 'function') cb = nop;\n\n if (state.ended) writeAfterEnd(this, cb);else if (isBuf || validChunk(this, state, chunk, cb)) {\n state.pendingcb++;\n ret = writeOrBuffer(this, state, isBuf, chunk, encoding, cb);\n }\n\n return ret;\n};\n\nWritable.prototype.cork = function () {\n var state = this._writableState;\n\n state.corked++;\n};\n\nWritable.prototype.uncork = function () {\n var state = this._writableState;\n\n if (state.corked) {\n state.corked--;\n\n if (!state.writing && !state.corked && !state.bufferProcessing && state.bufferedRequest) clearBuffer(this, state);\n }\n};\n\nWritable.prototype.setDefaultEncoding = function setDefaultEncoding(encoding) {\n // node::ParseEncoding() requires lower case.\n if (typeof encoding === 'string') encoding = encoding.toLowerCase();\n if (!(['hex', 'utf8', 'utf-8', 'ascii', 'binary', 'base64', 'ucs2', 'ucs-2', 'utf16le', 'utf-16le', 'raw'].indexOf((encoding + '').toLowerCase()) > -1)) throw new TypeError('Unknown encoding: ' + encoding);\n this._writableState.defaultEncoding = encoding;\n return this;\n};\n\nfunction decodeChunk(state, chunk, encoding) {\n if (!state.objectMode && state.decodeStrings !== false && typeof chunk === 'string') {\n chunk = Buffer.from(chunk, encoding);\n }\n return chunk;\n}\n\nObject.defineProperty(Writable.prototype, 'writableHighWaterMark', {\n // making it explicit this property is not enumerable\n // because otherwise some prototype manipulation in\n // userland will fail\n enumerable: false,\n get: function () {\n return this._writableState.highWaterMark;\n }\n});\n\n// if we're already writing something, then just put this\n// in the queue, and wait our turn. Otherwise, call _write\n// If we return false, then we need a drain event, so set that flag.\nfunction writeOrBuffer(stream, state, isBuf, chunk, encoding, cb) {\n if (!isBuf) {\n var newChunk = decodeChunk(state, chunk, encoding);\n if (chunk !== newChunk) {\n isBuf = true;\n encoding = 'buffer';\n chunk = newChunk;\n }\n }\n var len = state.objectMode ? 1 : chunk.length;\n\n state.length += len;\n\n var ret = state.length < state.highWaterMark;\n // we must ensure that previous needDrain will not be reset to false.\n if (!ret) state.needDrain = true;\n\n if (state.writing || state.corked) {\n var last = state.lastBufferedRequest;\n state.lastBufferedRequest = {\n chunk: chunk,\n encoding: encoding,\n isBuf: isBuf,\n callback: cb,\n next: null\n };\n if (last) {\n last.next = state.lastBufferedRequest;\n } else {\n state.bufferedRequest = state.lastBufferedRequest;\n }\n state.bufferedRequestCount += 1;\n } else {\n doWrite(stream, state, false, len, chunk, encoding, cb);\n }\n\n return ret;\n}\n\nfunction doWrite(stream, state, writev, len, chunk, encoding, cb) {\n state.writelen = len;\n state.writecb = cb;\n state.writing = true;\n state.sync = true;\n if (writev) stream._writev(chunk, state.onwrite);else stream._write(chunk, encoding, state.onwrite);\n state.sync = false;\n}\n\nfunction onwriteError(stream, state, sync, er, cb) {\n --state.pendingcb;\n\n if (sync) {\n // defer the callback if we are being called synchronously\n // to avoid piling up things on the stack\n pna.nextTick(cb, er);\n // this can emit finish, and it will always happen\n // after error\n pna.nextTick(finishMaybe, stream, state);\n stream._writableState.errorEmitted = true;\n stream.emit('error', er);\n } else {\n // the caller expect this to happen before if\n // it is async\n cb(er);\n stream._writableState.errorEmitted = true;\n stream.emit('error', er);\n // this can emit finish, but finish must\n // always follow error\n finishMaybe(stream, state);\n }\n}\n\nfunction onwriteStateUpdate(state) {\n state.writing = false;\n state.writecb = null;\n state.length -= state.writelen;\n state.writelen = 0;\n}\n\nfunction onwrite(stream, er) {\n var state = stream._writableState;\n var sync = state.sync;\n var cb = state.writecb;\n\n onwriteStateUpdate(state);\n\n if (er) onwriteError(stream, state, sync, er, cb);else {\n // Check if we're actually ready to finish, but don't emit yet\n var finished = needFinish(state);\n\n if (!finished && !state.corked && !state.bufferProcessing && state.bufferedRequest) {\n clearBuffer(stream, state);\n }\n\n if (sync) {\n /**/\n asyncWrite(afterWrite, stream, state, finished, cb);\n /**/\n } else {\n afterWrite(stream, state, finished, cb);\n }\n }\n}\n\nfunction afterWrite(stream, state, finished, cb) {\n if (!finished) onwriteDrain(stream, state);\n state.pendingcb--;\n cb();\n finishMaybe(stream, state);\n}\n\n// Must force callback to be called on nextTick, so that we don't\n// emit 'drain' before the write() consumer gets the 'false' return\n// value, and has a chance to attach a 'drain' listener.\nfunction onwriteDrain(stream, state) {\n if (state.length === 0 && state.needDrain) {\n state.needDrain = false;\n stream.emit('drain');\n }\n}\n\n// if there's something in the buffer waiting, then process it\nfunction clearBuffer(stream, state) {\n state.bufferProcessing = true;\n var entry = state.bufferedRequest;\n\n if (stream._writev && entry && entry.next) {\n // Fast case, write everything using _writev()\n var l = state.bufferedRequestCount;\n var buffer = new Array(l);\n var holder = state.corkedRequestsFree;\n holder.entry = entry;\n\n var count = 0;\n var allBuffers = true;\n while (entry) {\n buffer[count] = entry;\n if (!entry.isBuf) allBuffers = false;\n entry = entry.next;\n count += 1;\n }\n buffer.allBuffers = allBuffers;\n\n doWrite(stream, state, true, state.length, buffer, '', holder.finish);\n\n // doWrite is almost always async, defer these to save a bit of time\n // as the hot path ends with doWrite\n state.pendingcb++;\n state.lastBufferedRequest = null;\n if (holder.next) {\n state.corkedRequestsFree = holder.next;\n holder.next = null;\n } else {\n state.corkedRequestsFree = new CorkedRequest(state);\n }\n state.bufferedRequestCount = 0;\n } else {\n // Slow case, write chunks one-by-one\n while (entry) {\n var chunk = entry.chunk;\n var encoding = entry.encoding;\n var cb = entry.callback;\n var len = state.objectMode ? 1 : chunk.length;\n\n doWrite(stream, state, false, len, chunk, encoding, cb);\n entry = entry.next;\n state.bufferedRequestCount--;\n // if we didn't call the onwrite immediately, then\n // it means that we need to wait until it does.\n // also, that means that the chunk and cb are currently\n // being processed, so move the buffer counter past them.\n if (state.writing) {\n break;\n }\n }\n\n if (entry === null) state.lastBufferedRequest = null;\n }\n\n state.bufferedRequest = entry;\n state.bufferProcessing = false;\n}\n\nWritable.prototype._write = function (chunk, encoding, cb) {\n cb(new Error('_write() is not implemented'));\n};\n\nWritable.prototype._writev = null;\n\nWritable.prototype.end = function (chunk, encoding, cb) {\n var state = this._writableState;\n\n if (typeof chunk === 'function') {\n cb = chunk;\n chunk = null;\n encoding = null;\n } else if (typeof encoding === 'function') {\n cb = encoding;\n encoding = null;\n }\n\n if (chunk !== null && chunk !== undefined) this.write(chunk, encoding);\n\n // .end() fully uncorks\n if (state.corked) {\n state.corked = 1;\n this.uncork();\n }\n\n // ignore unnecessary end() calls.\n if (!state.ending) endWritable(this, state, cb);\n};\n\nfunction needFinish(state) {\n return state.ending && state.length === 0 && state.bufferedRequest === null && !state.finished && !state.writing;\n}\nfunction callFinal(stream, state) {\n stream._final(function (err) {\n state.pendingcb--;\n if (err) {\n stream.emit('error', err);\n }\n state.prefinished = true;\n stream.emit('prefinish');\n finishMaybe(stream, state);\n });\n}\nfunction prefinish(stream, state) {\n if (!state.prefinished && !state.finalCalled) {\n if (typeof stream._final === 'function') {\n state.pendingcb++;\n state.finalCalled = true;\n pna.nextTick(callFinal, stream, state);\n } else {\n state.prefinished = true;\n stream.emit('prefinish');\n }\n }\n}\n\nfunction finishMaybe(stream, state) {\n var need = needFinish(state);\n if (need) {\n prefinish(stream, state);\n if (state.pendingcb === 0) {\n state.finished = true;\n stream.emit('finish');\n }\n }\n return need;\n}\n\nfunction endWritable(stream, state, cb) {\n state.ending = true;\n finishMaybe(stream, state);\n if (cb) {\n if (state.finished) pna.nextTick(cb);else stream.once('finish', cb);\n }\n state.ended = true;\n stream.writable = false;\n}\n\nfunction onCorkedFinish(corkReq, state, err) {\n var entry = corkReq.entry;\n corkReq.entry = null;\n while (entry) {\n var cb = entry.callback;\n state.pendingcb--;\n cb(err);\n entry = entry.next;\n }\n\n // reuse the free corkReq.\n state.corkedRequestsFree.next = corkReq;\n}\n\nObject.defineProperty(Writable.prototype, 'destroyed', {\n get: function () {\n if (this._writableState === undefined) {\n return false;\n }\n return this._writableState.destroyed;\n },\n set: function (value) {\n // we ignore the value if the stream\n // has not been initialized yet\n if (!this._writableState) {\n return;\n }\n\n // backward compatibility, the user is explicitly\n // managing destroyed\n this._writableState.destroyed = value;\n }\n});\n\nWritable.prototype.destroy = destroyImpl.destroy;\nWritable.prototype._undestroy = destroyImpl.undestroy;\nWritable.prototype._destroy = function (err, cb) {\n this.end();\n cb(err);\n};","'use strict';\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nvar Buffer = require('safe-buffer').Buffer;\nvar util = require('util');\n\nfunction copyBuffer(src, target, offset) {\n src.copy(target, offset);\n}\n\nmodule.exports = function () {\n function BufferList() {\n _classCallCheck(this, BufferList);\n\n this.head = null;\n this.tail = null;\n this.length = 0;\n }\n\n BufferList.prototype.push = function push(v) {\n var entry = { data: v, next: null };\n if (this.length > 0) this.tail.next = entry;else this.head = entry;\n this.tail = entry;\n ++this.length;\n };\n\n BufferList.prototype.unshift = function unshift(v) {\n var entry = { data: v, next: this.head };\n if (this.length === 0) this.tail = entry;\n this.head = entry;\n ++this.length;\n };\n\n BufferList.prototype.shift = function shift() {\n if (this.length === 0) return;\n var ret = this.head.data;\n if (this.length === 1) this.head = this.tail = null;else this.head = this.head.next;\n --this.length;\n return ret;\n };\n\n BufferList.prototype.clear = function clear() {\n this.head = this.tail = null;\n this.length = 0;\n };\n\n BufferList.prototype.join = function join(s) {\n if (this.length === 0) return '';\n var p = this.head;\n var ret = '' + p.data;\n while (p = p.next) {\n ret += s + p.data;\n }return ret;\n };\n\n BufferList.prototype.concat = function concat(n) {\n if (this.length === 0) return Buffer.alloc(0);\n var ret = Buffer.allocUnsafe(n >>> 0);\n var p = this.head;\n var i = 0;\n while (p) {\n copyBuffer(p.data, ret, i);\n i += p.data.length;\n p = p.next;\n }\n return ret;\n };\n\n return BufferList;\n}();\n\nif (util && util.inspect && util.inspect.custom) {\n module.exports.prototype[util.inspect.custom] = function () {\n var obj = util.inspect({ length: this.length });\n return this.constructor.name + ' ' + obj;\n };\n}","'use strict';\n\n/**/\n\nvar pna = require('process-nextick-args');\n/**/\n\n// undocumented cb() API, needed for core, not for public API\nfunction destroy(err, cb) {\n var _this = this;\n\n var readableDestroyed = this._readableState && this._readableState.destroyed;\n var writableDestroyed = this._writableState && this._writableState.destroyed;\n\n if (readableDestroyed || writableDestroyed) {\n if (cb) {\n cb(err);\n } else if (err) {\n if (!this._writableState) {\n pna.nextTick(emitErrorNT, this, err);\n } else if (!this._writableState.errorEmitted) {\n this._writableState.errorEmitted = true;\n pna.nextTick(emitErrorNT, this, err);\n }\n }\n\n return this;\n }\n\n // we set destroyed to true before firing error callbacks in order\n // to make it re-entrance safe in case destroy() is called within callbacks\n\n if (this._readableState) {\n this._readableState.destroyed = true;\n }\n\n // if this is a duplex stream mark the writable part as destroyed as well\n if (this._writableState) {\n this._writableState.destroyed = true;\n }\n\n this._destroy(err || null, function (err) {\n if (!cb && err) {\n if (!_this._writableState) {\n pna.nextTick(emitErrorNT, _this, err);\n } else if (!_this._writableState.errorEmitted) {\n _this._writableState.errorEmitted = true;\n pna.nextTick(emitErrorNT, _this, err);\n }\n } else if (cb) {\n cb(err);\n }\n });\n\n return this;\n}\n\nfunction undestroy() {\n if (this._readableState) {\n this._readableState.destroyed = false;\n this._readableState.reading = false;\n this._readableState.ended = false;\n this._readableState.endEmitted = false;\n }\n\n if (this._writableState) {\n this._writableState.destroyed = false;\n this._writableState.ended = false;\n this._writableState.ending = false;\n this._writableState.finalCalled = false;\n this._writableState.prefinished = false;\n this._writableState.finished = false;\n this._writableState.errorEmitted = false;\n }\n}\n\nfunction emitErrorNT(self, err) {\n self.emit('error', err);\n}\n\nmodule.exports = {\n destroy: destroy,\n undestroy: undestroy\n};","module.exports = require('stream');\n","module.exports = require('./readable').PassThrough\n","var Stream = require('stream');\nif (process.env.READABLE_STREAM === 'disable' && Stream) {\n module.exports = Stream;\n exports = module.exports = Stream.Readable;\n exports.Readable = Stream.Readable;\n exports.Writable = Stream.Writable;\n exports.Duplex = Stream.Duplex;\n exports.Transform = Stream.Transform;\n exports.PassThrough = Stream.PassThrough;\n exports.Stream = Stream;\n} else {\n exports = module.exports = require('./lib/_stream_readable.js');\n exports.Stream = Stream || exports;\n exports.Readable = exports;\n exports.Writable = require('./lib/_stream_writable.js');\n exports.Duplex = require('./lib/_stream_duplex.js');\n exports.Transform = require('./lib/_stream_transform.js');\n exports.PassThrough = require('./lib/_stream_passthrough.js');\n}\n","var hashClear = require('./_hashClear'),\n hashDelete = require('./_hashDelete'),\n hashGet = require('./_hashGet'),\n hashHas = require('./_hashHas'),\n hashSet = require('./_hashSet');\n\n/**\n * Creates a hash object.\n *\n * @private\n * @constructor\n * @param {Array} [entries] The key-value pairs to cache.\n */\nfunction Hash(entries) {\n var index = -1,\n length = entries == null ? 0 : entries.length;\n\n this.clear();\n while (++index < length) {\n var entry = entries[index];\n this.set(entry[0], entry[1]);\n }\n}\n\n// Add methods to `Hash`.\nHash.prototype.clear = hashClear;\nHash.prototype['delete'] = hashDelete;\nHash.prototype.get = hashGet;\nHash.prototype.has = hashHas;\nHash.prototype.set = hashSet;\n\nmodule.exports = Hash;\n","var listCacheClear = require('./_listCacheClear'),\n listCacheDelete = require('./_listCacheDelete'),\n listCacheGet = require('./_listCacheGet'),\n listCacheHas = require('./_listCacheHas'),\n listCacheSet = require('./_listCacheSet');\n\n/**\n * Creates an list cache object.\n *\n * @private\n * @constructor\n * @param {Array} [entries] The key-value pairs to cache.\n */\nfunction ListCache(entries) {\n var index = -1,\n length = entries == null ? 0 : entries.length;\n\n this.clear();\n while (++index < length) {\n var entry = entries[index];\n this.set(entry[0], entry[1]);\n }\n}\n\n// Add methods to `ListCache`.\nListCache.prototype.clear = listCacheClear;\nListCache.prototype['delete'] = listCacheDelete;\nListCache.prototype.get = listCacheGet;\nListCache.prototype.has = listCacheHas;\nListCache.prototype.set = listCacheSet;\n\nmodule.exports = ListCache;\n","var getNative = require('./_getNative'),\n root = require('./_root');\n\n/* Built-in method references that are verified to be native. */\nvar Map = getNative(root, 'Map');\n\nmodule.exports = Map;\n","var mapCacheClear = require('./_mapCacheClear'),\n mapCacheDelete = require('./_mapCacheDelete'),\n mapCacheGet = require('./_mapCacheGet'),\n mapCacheHas = require('./_mapCacheHas'),\n mapCacheSet = require('./_mapCacheSet');\n\n/**\n * Creates a map cache object to store key-value pairs.\n *\n * @private\n * @constructor\n * @param {Array} [entries] The key-value pairs to cache.\n */\nfunction MapCache(entries) {\n var index = -1,\n length = entries == null ? 0 : entries.length;\n\n this.clear();\n while (++index < length) {\n var entry = entries[index];\n this.set(entry[0], entry[1]);\n }\n}\n\n// Add methods to `MapCache`.\nMapCache.prototype.clear = mapCacheClear;\nMapCache.prototype['delete'] = mapCacheDelete;\nMapCache.prototype.get = mapCacheGet;\nMapCache.prototype.has = mapCacheHas;\nMapCache.prototype.set = mapCacheSet;\n\nmodule.exports = MapCache;\n","var getNative = require('./_getNative'),\n root = require('./_root');\n\n/* Built-in method references that are verified to be native. */\nvar Set = getNative(root, 'Set');\n\nmodule.exports = Set;\n","var MapCache = require('./_MapCache'),\n setCacheAdd = require('./_setCacheAdd'),\n setCacheHas = require('./_setCacheHas');\n\n/**\n *\n * Creates an array cache object to store unique values.\n *\n * @private\n * @constructor\n * @param {Array} [values] The values to cache.\n */\nfunction SetCache(values) {\n var index = -1,\n length = values == null ? 0 : values.length;\n\n this.__data__ = new MapCache;\n while (++index < length) {\n this.add(values[index]);\n }\n}\n\n// Add methods to `SetCache`.\nSetCache.prototype.add = SetCache.prototype.push = setCacheAdd;\nSetCache.prototype.has = setCacheHas;\n\nmodule.exports = SetCache;\n","var root = require('./_root');\n\n/** Built-in value references. */\nvar Symbol = root.Symbol;\n\nmodule.exports = Symbol;\n","/**\n * A faster alternative to `Function#apply`, this function invokes `func`\n * with the `this` binding of `thisArg` and the arguments of `args`.\n *\n * @private\n * @param {Function} func The function to invoke.\n * @param {*} thisArg The `this` binding of `func`.\n * @param {Array} args The arguments to invoke `func` with.\n * @returns {*} Returns the result of `func`.\n */\nfunction apply(func, thisArg, args) {\n switch (args.length) {\n case 0: return func.call(thisArg);\n case 1: return func.call(thisArg, args[0]);\n case 2: return func.call(thisArg, args[0], args[1]);\n case 3: return func.call(thisArg, args[0], args[1], args[2]);\n }\n return func.apply(thisArg, args);\n}\n\nmodule.exports = apply;\n","var baseIndexOf = require('./_baseIndexOf');\n\n/**\n * A specialized version of `_.includes` for arrays without support for\n * specifying an index to search from.\n *\n * @private\n * @param {Array} [array] The array to inspect.\n * @param {*} target The value to search for.\n * @returns {boolean} Returns `true` if `target` is found, else `false`.\n */\nfunction arrayIncludes(array, value) {\n var length = array == null ? 0 : array.length;\n return !!length && baseIndexOf(array, value, 0) > -1;\n}\n\nmodule.exports = arrayIncludes;\n","/**\n * This function is like `arrayIncludes` except that it accepts a comparator.\n *\n * @private\n * @param {Array} [array] The array to inspect.\n * @param {*} target The value to search for.\n * @param {Function} comparator The comparator invoked per element.\n * @returns {boolean} Returns `true` if `target` is found, else `false`.\n */\nfunction arrayIncludesWith(array, value, comparator) {\n var index = -1,\n length = array == null ? 0 : array.length;\n\n while (++index < length) {\n if (comparator(value, array[index])) {\n return true;\n }\n }\n return false;\n}\n\nmodule.exports = arrayIncludesWith;\n","var baseTimes = require('./_baseTimes'),\n isArguments = require('./isArguments'),\n isArray = require('./isArray'),\n isBuffer = require('./isBuffer'),\n isIndex = require('./_isIndex'),\n isTypedArray = require('./isTypedArray');\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * Creates an array of the enumerable property names of the array-like `value`.\n *\n * @private\n * @param {*} value The value to query.\n * @param {boolean} inherited Specify returning inherited property names.\n * @returns {Array} Returns the array of property names.\n */\nfunction arrayLikeKeys(value, inherited) {\n var isArr = isArray(value),\n isArg = !isArr && isArguments(value),\n isBuff = !isArr && !isArg && isBuffer(value),\n isType = !isArr && !isArg && !isBuff && isTypedArray(value),\n skipIndexes = isArr || isArg || isBuff || isType,\n result = skipIndexes ? baseTimes(value.length, String) : [],\n length = result.length;\n\n for (var key in value) {\n if ((inherited || hasOwnProperty.call(value, key)) &&\n !(skipIndexes && (\n // Safari 9 has enumerable `arguments.length` in strict mode.\n key == 'length' ||\n // Node.js 0.10 has enumerable non-index properties on buffers.\n (isBuff && (key == 'offset' || key == 'parent')) ||\n // PhantomJS 2 has enumerable non-index properties on typed arrays.\n (isType && (key == 'buffer' || key == 'byteLength' || key == 'byteOffset')) ||\n // Skip index properties.\n isIndex(key, length)\n ))) {\n result.push(key);\n }\n }\n return result;\n}\n\nmodule.exports = arrayLikeKeys;\n","/**\n * A specialized version of `_.map` for arrays without support for iteratee\n * shorthands.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Array} Returns the new mapped array.\n */\nfunction arrayMap(array, iteratee) {\n var index = -1,\n length = array == null ? 0 : array.length,\n result = Array(length);\n\n while (++index < length) {\n result[index] = iteratee(array[index], index, array);\n }\n return result;\n}\n\nmodule.exports = arrayMap;\n","/**\n * Appends the elements of `values` to `array`.\n *\n * @private\n * @param {Array} array The array to modify.\n * @param {Array} values The values to append.\n * @returns {Array} Returns `array`.\n */\nfunction arrayPush(array, values) {\n var index = -1,\n length = values.length,\n offset = array.length;\n\n while (++index < length) {\n array[offset + index] = values[index];\n }\n return array;\n}\n\nmodule.exports = arrayPush;\n","var eq = require('./eq');\n\n/**\n * Gets the index at which the `key` is found in `array` of key-value pairs.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {*} key The key to search for.\n * @returns {number} Returns the index of the matched value, else `-1`.\n */\nfunction assocIndexOf(array, key) {\n var length = array.length;\n while (length--) {\n if (eq(array[length][0], key)) {\n return length;\n }\n }\n return -1;\n}\n\nmodule.exports = assocIndexOf;\n","var SetCache = require('./_SetCache'),\n arrayIncludes = require('./_arrayIncludes'),\n arrayIncludesWith = require('./_arrayIncludesWith'),\n arrayMap = require('./_arrayMap'),\n baseUnary = require('./_baseUnary'),\n cacheHas = require('./_cacheHas');\n\n/** Used as the size to enable large array optimizations. */\nvar LARGE_ARRAY_SIZE = 200;\n\n/**\n * The base implementation of methods like `_.difference` without support\n * for excluding multiple arrays or iteratee shorthands.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {Array} values The values to exclude.\n * @param {Function} [iteratee] The iteratee invoked per element.\n * @param {Function} [comparator] The comparator invoked per element.\n * @returns {Array} Returns the new array of filtered values.\n */\nfunction baseDifference(array, values, iteratee, comparator) {\n var index = -1,\n includes = arrayIncludes,\n isCommon = true,\n length = array.length,\n result = [],\n valuesLength = values.length;\n\n if (!length) {\n return result;\n }\n if (iteratee) {\n values = arrayMap(values, baseUnary(iteratee));\n }\n if (comparator) {\n includes = arrayIncludesWith;\n isCommon = false;\n }\n else if (values.length >= LARGE_ARRAY_SIZE) {\n includes = cacheHas;\n isCommon = false;\n values = new SetCache(values);\n }\n outer:\n while (++index < length) {\n var value = array[index],\n computed = iteratee == null ? value : iteratee(value);\n\n value = (comparator || value !== 0) ? value : 0;\n if (isCommon && computed === computed) {\n var valuesIndex = valuesLength;\n while (valuesIndex--) {\n if (values[valuesIndex] === computed) {\n continue outer;\n }\n }\n result.push(value);\n }\n else if (!includes(values, computed, comparator)) {\n result.push(value);\n }\n }\n return result;\n}\n\nmodule.exports = baseDifference;\n","/**\n * The base implementation of `_.findIndex` and `_.findLastIndex` without\n * support for iteratee shorthands.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {Function} predicate The function invoked per iteration.\n * @param {number} fromIndex The index to search from.\n * @param {boolean} [fromRight] Specify iterating from right to left.\n * @returns {number} Returns the index of the matched value, else `-1`.\n */\nfunction baseFindIndex(array, predicate, fromIndex, fromRight) {\n var length = array.length,\n index = fromIndex + (fromRight ? 1 : -1);\n\n while ((fromRight ? index-- : ++index < length)) {\n if (predicate(array[index], index, array)) {\n return index;\n }\n }\n return -1;\n}\n\nmodule.exports = baseFindIndex;\n","var arrayPush = require('./_arrayPush'),\n isFlattenable = require('./_isFlattenable');\n\n/**\n * The base implementation of `_.flatten` with support for restricting flattening.\n *\n * @private\n * @param {Array} array The array to flatten.\n * @param {number} depth The maximum recursion depth.\n * @param {boolean} [predicate=isFlattenable] The function invoked per iteration.\n * @param {boolean} [isStrict] Restrict to values that pass `predicate` checks.\n * @param {Array} [result=[]] The initial result value.\n * @returns {Array} Returns the new flattened array.\n */\nfunction baseFlatten(array, depth, predicate, isStrict, result) {\n var index = -1,\n length = array.length;\n\n predicate || (predicate = isFlattenable);\n result || (result = []);\n\n while (++index < length) {\n var value = array[index];\n if (depth > 0 && predicate(value)) {\n if (depth > 1) {\n // Recursively flatten arrays (susceptible to call stack limits).\n baseFlatten(value, depth - 1, predicate, isStrict, result);\n } else {\n arrayPush(result, value);\n }\n } else if (!isStrict) {\n result[result.length] = value;\n }\n }\n return result;\n}\n\nmodule.exports = baseFlatten;\n","var Symbol = require('./_Symbol'),\n getRawTag = require('./_getRawTag'),\n objectToString = require('./_objectToString');\n\n/** `Object#toString` result references. */\nvar nullTag = '[object Null]',\n undefinedTag = '[object Undefined]';\n\n/** Built-in value references. */\nvar symToStringTag = Symbol ? Symbol.toStringTag : undefined;\n\n/**\n * The base implementation of `getTag` without fallbacks for buggy environments.\n *\n * @private\n * @param {*} value The value to query.\n * @returns {string} Returns the `toStringTag`.\n */\nfunction baseGetTag(value) {\n if (value == null) {\n return value === undefined ? undefinedTag : nullTag;\n }\n return (symToStringTag && symToStringTag in Object(value))\n ? getRawTag(value)\n : objectToString(value);\n}\n\nmodule.exports = baseGetTag;\n","var baseFindIndex = require('./_baseFindIndex'),\n baseIsNaN = require('./_baseIsNaN'),\n strictIndexOf = require('./_strictIndexOf');\n\n/**\n * The base implementation of `_.indexOf` without `fromIndex` bounds checks.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {*} value The value to search for.\n * @param {number} fromIndex The index to search from.\n * @returns {number} Returns the index of the matched value, else `-1`.\n */\nfunction baseIndexOf(array, value, fromIndex) {\n return value === value\n ? strictIndexOf(array, value, fromIndex)\n : baseFindIndex(array, baseIsNaN, fromIndex);\n}\n\nmodule.exports = baseIndexOf;\n","var baseGetTag = require('./_baseGetTag'),\n isObjectLike = require('./isObjectLike');\n\n/** `Object#toString` result references. */\nvar argsTag = '[object Arguments]';\n\n/**\n * The base implementation of `_.isArguments`.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an `arguments` object,\n */\nfunction baseIsArguments(value) {\n return isObjectLike(value) && baseGetTag(value) == argsTag;\n}\n\nmodule.exports = baseIsArguments;\n","/**\n * The base implementation of `_.isNaN` without support for number objects.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is `NaN`, else `false`.\n */\nfunction baseIsNaN(value) {\n return value !== value;\n}\n\nmodule.exports = baseIsNaN;\n","var isFunction = require('./isFunction'),\n isMasked = require('./_isMasked'),\n isObject = require('./isObject'),\n toSource = require('./_toSource');\n\n/**\n * Used to match `RegExp`\n * [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns).\n */\nvar reRegExpChar = /[\\\\^$.*+?()[\\]{}|]/g;\n\n/** Used to detect host constructors (Safari). */\nvar reIsHostCtor = /^\\[object .+?Constructor\\]$/;\n\n/** Used for built-in method references. */\nvar funcProto = Function.prototype,\n objectProto = Object.prototype;\n\n/** Used to resolve the decompiled source of functions. */\nvar funcToString = funcProto.toString;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/** Used to detect if a method is native. */\nvar reIsNative = RegExp('^' +\n funcToString.call(hasOwnProperty).replace(reRegExpChar, '\\\\$&')\n .replace(/hasOwnProperty|(function).*?(?=\\\\\\()| for .+?(?=\\\\\\])/g, '$1.*?') + '$'\n);\n\n/**\n * The base implementation of `_.isNative` without bad shim checks.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a native function,\n * else `false`.\n */\nfunction baseIsNative(value) {\n if (!isObject(value) || isMasked(value)) {\n return false;\n }\n var pattern = isFunction(value) ? reIsNative : reIsHostCtor;\n return pattern.test(toSource(value));\n}\n\nmodule.exports = baseIsNative;\n","var baseGetTag = require('./_baseGetTag'),\n isLength = require('./isLength'),\n isObjectLike = require('./isObjectLike');\n\n/** `Object#toString` result references. */\nvar argsTag = '[object Arguments]',\n arrayTag = '[object Array]',\n boolTag = '[object Boolean]',\n dateTag = '[object Date]',\n errorTag = '[object Error]',\n funcTag = '[object Function]',\n mapTag = '[object Map]',\n numberTag = '[object Number]',\n objectTag = '[object Object]',\n regexpTag = '[object RegExp]',\n setTag = '[object Set]',\n stringTag = '[object String]',\n weakMapTag = '[object WeakMap]';\n\nvar arrayBufferTag = '[object ArrayBuffer]',\n dataViewTag = '[object DataView]',\n float32Tag = '[object Float32Array]',\n float64Tag = '[object Float64Array]',\n int8Tag = '[object Int8Array]',\n int16Tag = '[object Int16Array]',\n int32Tag = '[object Int32Array]',\n uint8Tag = '[object Uint8Array]',\n uint8ClampedTag = '[object Uint8ClampedArray]',\n uint16Tag = '[object Uint16Array]',\n uint32Tag = '[object Uint32Array]';\n\n/** Used to identify `toStringTag` values of typed arrays. */\nvar typedArrayTags = {};\ntypedArrayTags[float32Tag] = typedArrayTags[float64Tag] =\ntypedArrayTags[int8Tag] = typedArrayTags[int16Tag] =\ntypedArrayTags[int32Tag] = typedArrayTags[uint8Tag] =\ntypedArrayTags[uint8ClampedTag] = typedArrayTags[uint16Tag] =\ntypedArrayTags[uint32Tag] = true;\ntypedArrayTags[argsTag] = typedArrayTags[arrayTag] =\ntypedArrayTags[arrayBufferTag] = typedArrayTags[boolTag] =\ntypedArrayTags[dataViewTag] = typedArrayTags[dateTag] =\ntypedArrayTags[errorTag] = typedArrayTags[funcTag] =\ntypedArrayTags[mapTag] = typedArrayTags[numberTag] =\ntypedArrayTags[objectTag] = typedArrayTags[regexpTag] =\ntypedArrayTags[setTag] = typedArrayTags[stringTag] =\ntypedArrayTags[weakMapTag] = false;\n\n/**\n * The base implementation of `_.isTypedArray` without Node.js optimizations.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.\n */\nfunction baseIsTypedArray(value) {\n return isObjectLike(value) &&\n isLength(value.length) && !!typedArrayTags[baseGetTag(value)];\n}\n\nmodule.exports = baseIsTypedArray;\n","var isObject = require('./isObject'),\n isPrototype = require('./_isPrototype'),\n nativeKeysIn = require('./_nativeKeysIn');\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * The base implementation of `_.keysIn` which doesn't treat sparse arrays as dense.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names.\n */\nfunction baseKeysIn(object) {\n if (!isObject(object)) {\n return nativeKeysIn(object);\n }\n var isProto = isPrototype(object),\n result = [];\n\n for (var key in object) {\n if (!(key == 'constructor' && (isProto || !hasOwnProperty.call(object, key)))) {\n result.push(key);\n }\n }\n return result;\n}\n\nmodule.exports = baseKeysIn;\n","var identity = require('./identity'),\n overRest = require('./_overRest'),\n setToString = require('./_setToString');\n\n/**\n * The base implementation of `_.rest` which doesn't validate or coerce arguments.\n *\n * @private\n * @param {Function} func The function to apply a rest parameter to.\n * @param {number} [start=func.length-1] The start position of the rest parameter.\n * @returns {Function} Returns the new function.\n */\nfunction baseRest(func, start) {\n return setToString(overRest(func, start, identity), func + '');\n}\n\nmodule.exports = baseRest;\n","var constant = require('./constant'),\n defineProperty = require('./_defineProperty'),\n identity = require('./identity');\n\n/**\n * The base implementation of `setToString` without support for hot loop shorting.\n *\n * @private\n * @param {Function} func The function to modify.\n * @param {Function} string The `toString` result.\n * @returns {Function} Returns `func`.\n */\nvar baseSetToString = !defineProperty ? identity : function(func, string) {\n return defineProperty(func, 'toString', {\n 'configurable': true,\n 'enumerable': false,\n 'value': constant(string),\n 'writable': true\n });\n};\n\nmodule.exports = baseSetToString;\n","/**\n * The base implementation of `_.times` without support for iteratee shorthands\n * or max array length checks.\n *\n * @private\n * @param {number} n The number of times to invoke `iteratee`.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Array} Returns the array of results.\n */\nfunction baseTimes(n, iteratee) {\n var index = -1,\n result = Array(n);\n\n while (++index < n) {\n result[index] = iteratee(index);\n }\n return result;\n}\n\nmodule.exports = baseTimes;\n","/**\n * The base implementation of `_.unary` without support for storing metadata.\n *\n * @private\n * @param {Function} func The function to cap arguments for.\n * @returns {Function} Returns the new capped function.\n */\nfunction baseUnary(func) {\n return function(value) {\n return func(value);\n };\n}\n\nmodule.exports = baseUnary;\n","var SetCache = require('./_SetCache'),\n arrayIncludes = require('./_arrayIncludes'),\n arrayIncludesWith = require('./_arrayIncludesWith'),\n cacheHas = require('./_cacheHas'),\n createSet = require('./_createSet'),\n setToArray = require('./_setToArray');\n\n/** Used as the size to enable large array optimizations. */\nvar LARGE_ARRAY_SIZE = 200;\n\n/**\n * The base implementation of `_.uniqBy` without support for iteratee shorthands.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {Function} [iteratee] The iteratee invoked per element.\n * @param {Function} [comparator] The comparator invoked per element.\n * @returns {Array} Returns the new duplicate free array.\n */\nfunction baseUniq(array, iteratee, comparator) {\n var index = -1,\n includes = arrayIncludes,\n length = array.length,\n isCommon = true,\n result = [],\n seen = result;\n\n if (comparator) {\n isCommon = false;\n includes = arrayIncludesWith;\n }\n else if (length >= LARGE_ARRAY_SIZE) {\n var set = iteratee ? null : createSet(array);\n if (set) {\n return setToArray(set);\n }\n isCommon = false;\n includes = cacheHas;\n seen = new SetCache;\n }\n else {\n seen = iteratee ? [] : result;\n }\n outer:\n while (++index < length) {\n var value = array[index],\n computed = iteratee ? iteratee(value) : value;\n\n value = (comparator || value !== 0) ? value : 0;\n if (isCommon && computed === computed) {\n var seenIndex = seen.length;\n while (seenIndex--) {\n if (seen[seenIndex] === computed) {\n continue outer;\n }\n }\n if (iteratee) {\n seen.push(computed);\n }\n result.push(value);\n }\n else if (!includes(seen, computed, comparator)) {\n if (seen !== result) {\n seen.push(computed);\n }\n result.push(value);\n }\n }\n return result;\n}\n\nmodule.exports = baseUniq;\n","/**\n * Checks if a `cache` value for `key` exists.\n *\n * @private\n * @param {Object} cache The cache to query.\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\nfunction cacheHas(cache, key) {\n return cache.has(key);\n}\n\nmodule.exports = cacheHas;\n","var root = require('./_root');\n\n/** Used to detect overreaching core-js shims. */\nvar coreJsData = root['__core-js_shared__'];\n\nmodule.exports = coreJsData;\n","var Set = require('./_Set'),\n noop = require('./noop'),\n setToArray = require('./_setToArray');\n\n/** Used as references for various `Number` constants. */\nvar INFINITY = 1 / 0;\n\n/**\n * Creates a set object of `values`.\n *\n * @private\n * @param {Array} values The values to add to the set.\n * @returns {Object} Returns the new set.\n */\nvar createSet = !(Set && (1 / setToArray(new Set([,-0]))[1]) == INFINITY) ? noop : function(values) {\n return new Set(values);\n};\n\nmodule.exports = createSet;\n","var getNative = require('./_getNative');\n\nvar defineProperty = (function() {\n try {\n var func = getNative(Object, 'defineProperty');\n func({}, '', {});\n return func;\n } catch (e) {}\n}());\n\nmodule.exports = defineProperty;\n","/** Detect free variable `global` from Node.js. */\nvar freeGlobal = typeof global == 'object' && global && global.Object === Object && global;\n\nmodule.exports = freeGlobal;\n","var isKeyable = require('./_isKeyable');\n\n/**\n * Gets the data for `map`.\n *\n * @private\n * @param {Object} map The map to query.\n * @param {string} key The reference key.\n * @returns {*} Returns the map data.\n */\nfunction getMapData(map, key) {\n var data = map.__data__;\n return isKeyable(key)\n ? data[typeof key == 'string' ? 'string' : 'hash']\n : data.map;\n}\n\nmodule.exports = getMapData;\n","var baseIsNative = require('./_baseIsNative'),\n getValue = require('./_getValue');\n\n/**\n * Gets the native function at `key` of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @param {string} key The key of the method to get.\n * @returns {*} Returns the function if it's native, else `undefined`.\n */\nfunction getNative(object, key) {\n var value = getValue(object, key);\n return baseIsNative(value) ? value : undefined;\n}\n\nmodule.exports = getNative;\n","var overArg = require('./_overArg');\n\n/** Built-in value references. */\nvar getPrototype = overArg(Object.getPrototypeOf, Object);\n\nmodule.exports = getPrototype;\n","var Symbol = require('./_Symbol');\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * Used to resolve the\n * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)\n * of values.\n */\nvar nativeObjectToString = objectProto.toString;\n\n/** Built-in value references. */\nvar symToStringTag = Symbol ? Symbol.toStringTag : undefined;\n\n/**\n * A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values.\n *\n * @private\n * @param {*} value The value to query.\n * @returns {string} Returns the raw `toStringTag`.\n */\nfunction getRawTag(value) {\n var isOwn = hasOwnProperty.call(value, symToStringTag),\n tag = value[symToStringTag];\n\n try {\n value[symToStringTag] = undefined;\n var unmasked = true;\n } catch (e) {}\n\n var result = nativeObjectToString.call(value);\n if (unmasked) {\n if (isOwn) {\n value[symToStringTag] = tag;\n } else {\n delete value[symToStringTag];\n }\n }\n return result;\n}\n\nmodule.exports = getRawTag;\n","/**\n * Gets the value at `key` of `object`.\n *\n * @private\n * @param {Object} [object] The object to query.\n * @param {string} key The key of the property to get.\n * @returns {*} Returns the property value.\n */\nfunction getValue(object, key) {\n return object == null ? undefined : object[key];\n}\n\nmodule.exports = getValue;\n","var nativeCreate = require('./_nativeCreate');\n\n/**\n * Removes all key-value entries from the hash.\n *\n * @private\n * @name clear\n * @memberOf Hash\n */\nfunction hashClear() {\n this.__data__ = nativeCreate ? nativeCreate(null) : {};\n this.size = 0;\n}\n\nmodule.exports = hashClear;\n","/**\n * Removes `key` and its value from the hash.\n *\n * @private\n * @name delete\n * @memberOf Hash\n * @param {Object} hash The hash to modify.\n * @param {string} key The key of the value to remove.\n * @returns {boolean} Returns `true` if the entry was removed, else `false`.\n */\nfunction hashDelete(key) {\n var result = this.has(key) && delete this.__data__[key];\n this.size -= result ? 1 : 0;\n return result;\n}\n\nmodule.exports = hashDelete;\n","var nativeCreate = require('./_nativeCreate');\n\n/** Used to stand-in for `undefined` hash values. */\nvar HASH_UNDEFINED = '__lodash_hash_undefined__';\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * Gets the hash value for `key`.\n *\n * @private\n * @name get\n * @memberOf Hash\n * @param {string} key The key of the value to get.\n * @returns {*} Returns the entry value.\n */\nfunction hashGet(key) {\n var data = this.__data__;\n if (nativeCreate) {\n var result = data[key];\n return result === HASH_UNDEFINED ? undefined : result;\n }\n return hasOwnProperty.call(data, key) ? data[key] : undefined;\n}\n\nmodule.exports = hashGet;\n","var nativeCreate = require('./_nativeCreate');\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * Checks if a hash value for `key` exists.\n *\n * @private\n * @name has\n * @memberOf Hash\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\nfunction hashHas(key) {\n var data = this.__data__;\n return nativeCreate ? (data[key] !== undefined) : hasOwnProperty.call(data, key);\n}\n\nmodule.exports = hashHas;\n","var nativeCreate = require('./_nativeCreate');\n\n/** Used to stand-in for `undefined` hash values. */\nvar HASH_UNDEFINED = '__lodash_hash_undefined__';\n\n/**\n * Sets the hash `key` to `value`.\n *\n * @private\n * @name set\n * @memberOf Hash\n * @param {string} key The key of the value to set.\n * @param {*} value The value to set.\n * @returns {Object} Returns the hash instance.\n */\nfunction hashSet(key, value) {\n var data = this.__data__;\n this.size += this.has(key) ? 0 : 1;\n data[key] = (nativeCreate && value === undefined) ? HASH_UNDEFINED : value;\n return this;\n}\n\nmodule.exports = hashSet;\n","var Symbol = require('./_Symbol'),\n isArguments = require('./isArguments'),\n isArray = require('./isArray');\n\n/** Built-in value references. */\nvar spreadableSymbol = Symbol ? Symbol.isConcatSpreadable : undefined;\n\n/**\n * Checks if `value` is a flattenable `arguments` object or array.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is flattenable, else `false`.\n */\nfunction isFlattenable(value) {\n return isArray(value) || isArguments(value) ||\n !!(spreadableSymbol && value && value[spreadableSymbol]);\n}\n\nmodule.exports = isFlattenable;\n","/** Used as references for various `Number` constants. */\nvar MAX_SAFE_INTEGER = 9007199254740991;\n\n/** Used to detect unsigned integer values. */\nvar reIsUint = /^(?:0|[1-9]\\d*)$/;\n\n/**\n * Checks if `value` is a valid array-like index.\n *\n * @private\n * @param {*} value The value to check.\n * @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index.\n * @returns {boolean} Returns `true` if `value` is a valid index, else `false`.\n */\nfunction isIndex(value, length) {\n var type = typeof value;\n length = length == null ? MAX_SAFE_INTEGER : length;\n\n return !!length &&\n (type == 'number' ||\n (type != 'symbol' && reIsUint.test(value))) &&\n (value > -1 && value % 1 == 0 && value < length);\n}\n\nmodule.exports = isIndex;\n","var eq = require('./eq'),\n isArrayLike = require('./isArrayLike'),\n isIndex = require('./_isIndex'),\n isObject = require('./isObject');\n\n/**\n * Checks if the given arguments are from an iteratee call.\n *\n * @private\n * @param {*} value The potential iteratee value argument.\n * @param {*} index The potential iteratee index or key argument.\n * @param {*} object The potential iteratee object argument.\n * @returns {boolean} Returns `true` if the arguments are from an iteratee call,\n * else `false`.\n */\nfunction isIterateeCall(value, index, object) {\n if (!isObject(object)) {\n return false;\n }\n var type = typeof index;\n if (type == 'number'\n ? (isArrayLike(object) && isIndex(index, object.length))\n : (type == 'string' && index in object)\n ) {\n return eq(object[index], value);\n }\n return false;\n}\n\nmodule.exports = isIterateeCall;\n","/**\n * Checks if `value` is suitable for use as unique object key.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is suitable, else `false`.\n */\nfunction isKeyable(value) {\n var type = typeof value;\n return (type == 'string' || type == 'number' || type == 'symbol' || type == 'boolean')\n ? (value !== '__proto__')\n : (value === null);\n}\n\nmodule.exports = isKeyable;\n","var coreJsData = require('./_coreJsData');\n\n/** Used to detect methods masquerading as native. */\nvar maskSrcKey = (function() {\n var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || '');\n return uid ? ('Symbol(src)_1.' + uid) : '';\n}());\n\n/**\n * Checks if `func` has its source masked.\n *\n * @private\n * @param {Function} func The function to check.\n * @returns {boolean} Returns `true` if `func` is masked, else `false`.\n */\nfunction isMasked(func) {\n return !!maskSrcKey && (maskSrcKey in func);\n}\n\nmodule.exports = isMasked;\n","/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/**\n * Checks if `value` is likely a prototype object.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a prototype, else `false`.\n */\nfunction isPrototype(value) {\n var Ctor = value && value.constructor,\n proto = (typeof Ctor == 'function' && Ctor.prototype) || objectProto;\n\n return value === proto;\n}\n\nmodule.exports = isPrototype;\n","/**\n * Removes all key-value entries from the list cache.\n *\n * @private\n * @name clear\n * @memberOf ListCache\n */\nfunction listCacheClear() {\n this.__data__ = [];\n this.size = 0;\n}\n\nmodule.exports = listCacheClear;\n","var assocIndexOf = require('./_assocIndexOf');\n\n/** Used for built-in method references. */\nvar arrayProto = Array.prototype;\n\n/** Built-in value references. */\nvar splice = arrayProto.splice;\n\n/**\n * Removes `key` and its value from the list cache.\n *\n * @private\n * @name delete\n * @memberOf ListCache\n * @param {string} key The key of the value to remove.\n * @returns {boolean} Returns `true` if the entry was removed, else `false`.\n */\nfunction listCacheDelete(key) {\n var data = this.__data__,\n index = assocIndexOf(data, key);\n\n if (index < 0) {\n return false;\n }\n var lastIndex = data.length - 1;\n if (index == lastIndex) {\n data.pop();\n } else {\n splice.call(data, index, 1);\n }\n --this.size;\n return true;\n}\n\nmodule.exports = listCacheDelete;\n","var assocIndexOf = require('./_assocIndexOf');\n\n/**\n * Gets the list cache value for `key`.\n *\n * @private\n * @name get\n * @memberOf ListCache\n * @param {string} key The key of the value to get.\n * @returns {*} Returns the entry value.\n */\nfunction listCacheGet(key) {\n var data = this.__data__,\n index = assocIndexOf(data, key);\n\n return index < 0 ? undefined : data[index][1];\n}\n\nmodule.exports = listCacheGet;\n","var assocIndexOf = require('./_assocIndexOf');\n\n/**\n * Checks if a list cache value for `key` exists.\n *\n * @private\n * @name has\n * @memberOf ListCache\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\nfunction listCacheHas(key) {\n return assocIndexOf(this.__data__, key) > -1;\n}\n\nmodule.exports = listCacheHas;\n","var assocIndexOf = require('./_assocIndexOf');\n\n/**\n * Sets the list cache `key` to `value`.\n *\n * @private\n * @name set\n * @memberOf ListCache\n * @param {string} key The key of the value to set.\n * @param {*} value The value to set.\n * @returns {Object} Returns the list cache instance.\n */\nfunction listCacheSet(key, value) {\n var data = this.__data__,\n index = assocIndexOf(data, key);\n\n if (index < 0) {\n ++this.size;\n data.push([key, value]);\n } else {\n data[index][1] = value;\n }\n return this;\n}\n\nmodule.exports = listCacheSet;\n","var Hash = require('./_Hash'),\n ListCache = require('./_ListCache'),\n Map = require('./_Map');\n\n/**\n * Removes all key-value entries from the map.\n *\n * @private\n * @name clear\n * @memberOf MapCache\n */\nfunction mapCacheClear() {\n this.size = 0;\n this.__data__ = {\n 'hash': new Hash,\n 'map': new (Map || ListCache),\n 'string': new Hash\n };\n}\n\nmodule.exports = mapCacheClear;\n","var getMapData = require('./_getMapData');\n\n/**\n * Removes `key` and its value from the map.\n *\n * @private\n * @name delete\n * @memberOf MapCache\n * @param {string} key The key of the value to remove.\n * @returns {boolean} Returns `true` if the entry was removed, else `false`.\n */\nfunction mapCacheDelete(key) {\n var result = getMapData(this, key)['delete'](key);\n this.size -= result ? 1 : 0;\n return result;\n}\n\nmodule.exports = mapCacheDelete;\n","var getMapData = require('./_getMapData');\n\n/**\n * Gets the map value for `key`.\n *\n * @private\n * @name get\n * @memberOf MapCache\n * @param {string} key The key of the value to get.\n * @returns {*} Returns the entry value.\n */\nfunction mapCacheGet(key) {\n return getMapData(this, key).get(key);\n}\n\nmodule.exports = mapCacheGet;\n","var getMapData = require('./_getMapData');\n\n/**\n * Checks if a map value for `key` exists.\n *\n * @private\n * @name has\n * @memberOf MapCache\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\nfunction mapCacheHas(key) {\n return getMapData(this, key).has(key);\n}\n\nmodule.exports = mapCacheHas;\n","var getMapData = require('./_getMapData');\n\n/**\n * Sets the map `key` to `value`.\n *\n * @private\n * @name set\n * @memberOf MapCache\n * @param {string} key The key of the value to set.\n * @param {*} value The value to set.\n * @returns {Object} Returns the map cache instance.\n */\nfunction mapCacheSet(key, value) {\n var data = getMapData(this, key),\n size = data.size;\n\n data.set(key, value);\n this.size += data.size == size ? 0 : 1;\n return this;\n}\n\nmodule.exports = mapCacheSet;\n","var getNative = require('./_getNative');\n\n/* Built-in method references that are verified to be native. */\nvar nativeCreate = getNative(Object, 'create');\n\nmodule.exports = nativeCreate;\n","/**\n * This function is like\n * [`Object.keys`](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)\n * except that it includes inherited enumerable properties.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names.\n */\nfunction nativeKeysIn(object) {\n var result = [];\n if (object != null) {\n for (var key in Object(object)) {\n result.push(key);\n }\n }\n return result;\n}\n\nmodule.exports = nativeKeysIn;\n","var freeGlobal = require('./_freeGlobal');\n\n/** Detect free variable `exports`. */\nvar freeExports = typeof exports == 'object' && exports && !exports.nodeType && exports;\n\n/** Detect free variable `module`. */\nvar freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module;\n\n/** Detect the popular CommonJS extension `module.exports`. */\nvar moduleExports = freeModule && freeModule.exports === freeExports;\n\n/** Detect free variable `process` from Node.js. */\nvar freeProcess = moduleExports && freeGlobal.process;\n\n/** Used to access faster Node.js helpers. */\nvar nodeUtil = (function() {\n try {\n // Use `util.types` for Node.js 10+.\n var types = freeModule && freeModule.require && freeModule.require('util').types;\n\n if (types) {\n return types;\n }\n\n // Legacy `process.binding('util')` for Node.js < 10.\n return freeProcess && freeProcess.binding && freeProcess.binding('util');\n } catch (e) {}\n}());\n\nmodule.exports = nodeUtil;\n","/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/**\n * Used to resolve the\n * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)\n * of values.\n */\nvar nativeObjectToString = objectProto.toString;\n\n/**\n * Converts `value` to a string using `Object.prototype.toString`.\n *\n * @private\n * @param {*} value The value to convert.\n * @returns {string} Returns the converted string.\n */\nfunction objectToString(value) {\n return nativeObjectToString.call(value);\n}\n\nmodule.exports = objectToString;\n","/**\n * Creates a unary function that invokes `func` with its argument transformed.\n *\n * @private\n * @param {Function} func The function to wrap.\n * @param {Function} transform The argument transform.\n * @returns {Function} Returns the new function.\n */\nfunction overArg(func, transform) {\n return function(arg) {\n return func(transform(arg));\n };\n}\n\nmodule.exports = overArg;\n","var apply = require('./_apply');\n\n/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeMax = Math.max;\n\n/**\n * A specialized version of `baseRest` which transforms the rest array.\n *\n * @private\n * @param {Function} func The function to apply a rest parameter to.\n * @param {number} [start=func.length-1] The start position of the rest parameter.\n * @param {Function} transform The rest array transform.\n * @returns {Function} Returns the new function.\n */\nfunction overRest(func, start, transform) {\n start = nativeMax(start === undefined ? (func.length - 1) : start, 0);\n return function() {\n var args = arguments,\n index = -1,\n length = nativeMax(args.length - start, 0),\n array = Array(length);\n\n while (++index < length) {\n array[index] = args[start + index];\n }\n index = -1;\n var otherArgs = Array(start + 1);\n while (++index < start) {\n otherArgs[index] = args[index];\n }\n otherArgs[start] = transform(array);\n return apply(func, this, otherArgs);\n };\n}\n\nmodule.exports = overRest;\n","var freeGlobal = require('./_freeGlobal');\n\n/** Detect free variable `self`. */\nvar freeSelf = typeof self == 'object' && self && self.Object === Object && self;\n\n/** Used as a reference to the global object. */\nvar root = freeGlobal || freeSelf || Function('return this')();\n\nmodule.exports = root;\n","/** Used to stand-in for `undefined` hash values. */\nvar HASH_UNDEFINED = '__lodash_hash_undefined__';\n\n/**\n * Adds `value` to the array cache.\n *\n * @private\n * @name add\n * @memberOf SetCache\n * @alias push\n * @param {*} value The value to cache.\n * @returns {Object} Returns the cache instance.\n */\nfunction setCacheAdd(value) {\n this.__data__.set(value, HASH_UNDEFINED);\n return this;\n}\n\nmodule.exports = setCacheAdd;\n","/**\n * Checks if `value` is in the array cache.\n *\n * @private\n * @name has\n * @memberOf SetCache\n * @param {*} value The value to search for.\n * @returns {number} Returns `true` if `value` is found, else `false`.\n */\nfunction setCacheHas(value) {\n return this.__data__.has(value);\n}\n\nmodule.exports = setCacheHas;\n","/**\n * Converts `set` to an array of its values.\n *\n * @private\n * @param {Object} set The set to convert.\n * @returns {Array} Returns the values.\n */\nfunction setToArray(set) {\n var index = -1,\n result = Array(set.size);\n\n set.forEach(function(value) {\n result[++index] = value;\n });\n return result;\n}\n\nmodule.exports = setToArray;\n","var baseSetToString = require('./_baseSetToString'),\n shortOut = require('./_shortOut');\n\n/**\n * Sets the `toString` method of `func` to return `string`.\n *\n * @private\n * @param {Function} func The function to modify.\n * @param {Function} string The `toString` result.\n * @returns {Function} Returns `func`.\n */\nvar setToString = shortOut(baseSetToString);\n\nmodule.exports = setToString;\n","/** Used to detect hot functions by number of calls within a span of milliseconds. */\nvar HOT_COUNT = 800,\n HOT_SPAN = 16;\n\n/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeNow = Date.now;\n\n/**\n * Creates a function that'll short out and invoke `identity` instead\n * of `func` when it's called `HOT_COUNT` or more times in `HOT_SPAN`\n * milliseconds.\n *\n * @private\n * @param {Function} func The function to restrict.\n * @returns {Function} Returns the new shortable function.\n */\nfunction shortOut(func) {\n var count = 0,\n lastCalled = 0;\n\n return function() {\n var stamp = nativeNow(),\n remaining = HOT_SPAN - (stamp - lastCalled);\n\n lastCalled = stamp;\n if (remaining > 0) {\n if (++count >= HOT_COUNT) {\n return arguments[0];\n }\n } else {\n count = 0;\n }\n return func.apply(undefined, arguments);\n };\n}\n\nmodule.exports = shortOut;\n","/**\n * A specialized version of `_.indexOf` which performs strict equality\n * comparisons of values, i.e. `===`.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {*} value The value to search for.\n * @param {number} fromIndex The index to search from.\n * @returns {number} Returns the index of the matched value, else `-1`.\n */\nfunction strictIndexOf(array, value, fromIndex) {\n var index = fromIndex - 1,\n length = array.length;\n\n while (++index < length) {\n if (array[index] === value) {\n return index;\n }\n }\n return -1;\n}\n\nmodule.exports = strictIndexOf;\n","/** Used for built-in method references. */\nvar funcProto = Function.prototype;\n\n/** Used to resolve the decompiled source of functions. */\nvar funcToString = funcProto.toString;\n\n/**\n * Converts `func` to its source code.\n *\n * @private\n * @param {Function} func The function to convert.\n * @returns {string} Returns the source code.\n */\nfunction toSource(func) {\n if (func != null) {\n try {\n return funcToString.call(func);\n } catch (e) {}\n try {\n return (func + '');\n } catch (e) {}\n }\n return '';\n}\n\nmodule.exports = toSource;\n","/**\n * Creates a function that returns `value`.\n *\n * @static\n * @memberOf _\n * @since 2.4.0\n * @category Util\n * @param {*} value The value to return from the new function.\n * @returns {Function} Returns the new constant function.\n * @example\n *\n * var objects = _.times(2, _.constant({ 'a': 1 }));\n *\n * console.log(objects);\n * // => [{ 'a': 1 }, { 'a': 1 }]\n *\n * console.log(objects[0] === objects[1]);\n * // => true\n */\nfunction constant(value) {\n return function() {\n return value;\n };\n}\n\nmodule.exports = constant;\n","var baseRest = require('./_baseRest'),\n eq = require('./eq'),\n isIterateeCall = require('./_isIterateeCall'),\n keysIn = require('./keysIn');\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * Assigns own and inherited enumerable string keyed properties of source\n * objects to the destination object for all destination properties that\n * resolve to `undefined`. Source objects are applied from left to right.\n * Once a property is set, additional values of the same property are ignored.\n *\n * **Note:** This method mutates `object`.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Object\n * @param {Object} object The destination object.\n * @param {...Object} [sources] The source objects.\n * @returns {Object} Returns `object`.\n * @see _.defaultsDeep\n * @example\n *\n * _.defaults({ 'a': 1 }, { 'b': 2 }, { 'a': 3 });\n * // => { 'a': 1, 'b': 2 }\n */\nvar defaults = baseRest(function(object, sources) {\n object = Object(object);\n\n var index = -1;\n var length = sources.length;\n var guard = length > 2 ? sources[2] : undefined;\n\n if (guard && isIterateeCall(sources[0], sources[1], guard)) {\n length = 1;\n }\n\n while (++index < length) {\n var source = sources[index];\n var props = keysIn(source);\n var propsIndex = -1;\n var propsLength = props.length;\n\n while (++propsIndex < propsLength) {\n var key = props[propsIndex];\n var value = object[key];\n\n if (value === undefined ||\n (eq(value, objectProto[key]) && !hasOwnProperty.call(object, key))) {\n object[key] = source[key];\n }\n }\n }\n\n return object;\n});\n\nmodule.exports = defaults;\n","var baseDifference = require('./_baseDifference'),\n baseFlatten = require('./_baseFlatten'),\n baseRest = require('./_baseRest'),\n isArrayLikeObject = require('./isArrayLikeObject');\n\n/**\n * Creates an array of `array` values not included in the other given arrays\n * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)\n * for equality comparisons. The order and references of result values are\n * determined by the first array.\n *\n * **Note:** Unlike `_.pullAll`, this method returns a new array.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Array\n * @param {Array} array The array to inspect.\n * @param {...Array} [values] The values to exclude.\n * @returns {Array} Returns the new array of filtered values.\n * @see _.without, _.xor\n * @example\n *\n * _.difference([2, 1], [2, 3]);\n * // => [1]\n */\nvar difference = baseRest(function(array, values) {\n return isArrayLikeObject(array)\n ? baseDifference(array, baseFlatten(values, 1, isArrayLikeObject, true))\n : [];\n});\n\nmodule.exports = difference;\n","/**\n * Performs a\n * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)\n * comparison between two values to determine if they are equivalent.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @returns {boolean} Returns `true` if the values are equivalent, else `false`.\n * @example\n *\n * var object = { 'a': 1 };\n * var other = { 'a': 1 };\n *\n * _.eq(object, object);\n * // => true\n *\n * _.eq(object, other);\n * // => false\n *\n * _.eq('a', 'a');\n * // => true\n *\n * _.eq('a', Object('a'));\n * // => false\n *\n * _.eq(NaN, NaN);\n * // => true\n */\nfunction eq(value, other) {\n return value === other || (value !== value && other !== other);\n}\n\nmodule.exports = eq;\n","var baseFlatten = require('./_baseFlatten');\n\n/**\n * Flattens `array` a single level deep.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Array\n * @param {Array} array The array to flatten.\n * @returns {Array} Returns the new flattened array.\n * @example\n *\n * _.flatten([1, [2, [3, [4]], 5]]);\n * // => [1, 2, [3, [4]], 5]\n */\nfunction flatten(array) {\n var length = array == null ? 0 : array.length;\n return length ? baseFlatten(array, 1) : [];\n}\n\nmodule.exports = flatten;\n","/**\n * This method returns the first argument it receives.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Util\n * @param {*} value Any value.\n * @returns {*} Returns `value`.\n * @example\n *\n * var object = { 'a': 1 };\n *\n * console.log(_.identity(object) === object);\n * // => true\n */\nfunction identity(value) {\n return value;\n}\n\nmodule.exports = identity;\n","var baseIsArguments = require('./_baseIsArguments'),\n isObjectLike = require('./isObjectLike');\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/** Built-in value references. */\nvar propertyIsEnumerable = objectProto.propertyIsEnumerable;\n\n/**\n * Checks if `value` is likely an `arguments` object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an `arguments` object,\n * else `false`.\n * @example\n *\n * _.isArguments(function() { return arguments; }());\n * // => true\n *\n * _.isArguments([1, 2, 3]);\n * // => false\n */\nvar isArguments = baseIsArguments(function() { return arguments; }()) ? baseIsArguments : function(value) {\n return isObjectLike(value) && hasOwnProperty.call(value, 'callee') &&\n !propertyIsEnumerable.call(value, 'callee');\n};\n\nmodule.exports = isArguments;\n","/**\n * Checks if `value` is classified as an `Array` object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an array, else `false`.\n * @example\n *\n * _.isArray([1, 2, 3]);\n * // => true\n *\n * _.isArray(document.body.children);\n * // => false\n *\n * _.isArray('abc');\n * // => false\n *\n * _.isArray(_.noop);\n * // => false\n */\nvar isArray = Array.isArray;\n\nmodule.exports = isArray;\n","var isFunction = require('./isFunction'),\n isLength = require('./isLength');\n\n/**\n * Checks if `value` is array-like. A value is considered array-like if it's\n * not a function and has a `value.length` that's an integer greater than or\n * equal to `0` and less than or equal to `Number.MAX_SAFE_INTEGER`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is array-like, else `false`.\n * @example\n *\n * _.isArrayLike([1, 2, 3]);\n * // => true\n *\n * _.isArrayLike(document.body.children);\n * // => true\n *\n * _.isArrayLike('abc');\n * // => true\n *\n * _.isArrayLike(_.noop);\n * // => false\n */\nfunction isArrayLike(value) {\n return value != null && isLength(value.length) && !isFunction(value);\n}\n\nmodule.exports = isArrayLike;\n","var isArrayLike = require('./isArrayLike'),\n isObjectLike = require('./isObjectLike');\n\n/**\n * This method is like `_.isArrayLike` except that it also checks if `value`\n * is an object.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an array-like object,\n * else `false`.\n * @example\n *\n * _.isArrayLikeObject([1, 2, 3]);\n * // => true\n *\n * _.isArrayLikeObject(document.body.children);\n * // => true\n *\n * _.isArrayLikeObject('abc');\n * // => false\n *\n * _.isArrayLikeObject(_.noop);\n * // => false\n */\nfunction isArrayLikeObject(value) {\n return isObjectLike(value) && isArrayLike(value);\n}\n\nmodule.exports = isArrayLikeObject;\n","var root = require('./_root'),\n stubFalse = require('./stubFalse');\n\n/** Detect free variable `exports`. */\nvar freeExports = typeof exports == 'object' && exports && !exports.nodeType && exports;\n\n/** Detect free variable `module`. */\nvar freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module;\n\n/** Detect the popular CommonJS extension `module.exports`. */\nvar moduleExports = freeModule && freeModule.exports === freeExports;\n\n/** Built-in value references. */\nvar Buffer = moduleExports ? root.Buffer : undefined;\n\n/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeIsBuffer = Buffer ? Buffer.isBuffer : undefined;\n\n/**\n * Checks if `value` is a buffer.\n *\n * @static\n * @memberOf _\n * @since 4.3.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a buffer, else `false`.\n * @example\n *\n * _.isBuffer(new Buffer(2));\n * // => true\n *\n * _.isBuffer(new Uint8Array(2));\n * // => false\n */\nvar isBuffer = nativeIsBuffer || stubFalse;\n\nmodule.exports = isBuffer;\n","var baseGetTag = require('./_baseGetTag'),\n isObject = require('./isObject');\n\n/** `Object#toString` result references. */\nvar asyncTag = '[object AsyncFunction]',\n funcTag = '[object Function]',\n genTag = '[object GeneratorFunction]',\n proxyTag = '[object Proxy]';\n\n/**\n * Checks if `value` is classified as a `Function` object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a function, else `false`.\n * @example\n *\n * _.isFunction(_);\n * // => true\n *\n * _.isFunction(/abc/);\n * // => false\n */\nfunction isFunction(value) {\n if (!isObject(value)) {\n return false;\n }\n // The use of `Object#toString` avoids issues with the `typeof` operator\n // in Safari 9 which returns 'object' for typed arrays and other constructors.\n var tag = baseGetTag(value);\n return tag == funcTag || tag == genTag || tag == asyncTag || tag == proxyTag;\n}\n\nmodule.exports = isFunction;\n","/** Used as references for various `Number` constants. */\nvar MAX_SAFE_INTEGER = 9007199254740991;\n\n/**\n * Checks if `value` is a valid array-like length.\n *\n * **Note:** This method is loosely based on\n * [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a valid length, else `false`.\n * @example\n *\n * _.isLength(3);\n * // => true\n *\n * _.isLength(Number.MIN_VALUE);\n * // => false\n *\n * _.isLength(Infinity);\n * // => false\n *\n * _.isLength('3');\n * // => false\n */\nfunction isLength(value) {\n return typeof value == 'number' &&\n value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;\n}\n\nmodule.exports = isLength;\n","/**\n * Checks if `value` is the\n * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)\n * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an object, else `false`.\n * @example\n *\n * _.isObject({});\n * // => true\n *\n * _.isObject([1, 2, 3]);\n * // => true\n *\n * _.isObject(_.noop);\n * // => true\n *\n * _.isObject(null);\n * // => false\n */\nfunction isObject(value) {\n var type = typeof value;\n return value != null && (type == 'object' || type == 'function');\n}\n\nmodule.exports = isObject;\n","/**\n * Checks if `value` is object-like. A value is object-like if it's not `null`\n * and has a `typeof` result of \"object\".\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is object-like, else `false`.\n * @example\n *\n * _.isObjectLike({});\n * // => true\n *\n * _.isObjectLike([1, 2, 3]);\n * // => true\n *\n * _.isObjectLike(_.noop);\n * // => false\n *\n * _.isObjectLike(null);\n * // => false\n */\nfunction isObjectLike(value) {\n return value != null && typeof value == 'object';\n}\n\nmodule.exports = isObjectLike;\n","var baseGetTag = require('./_baseGetTag'),\n getPrototype = require('./_getPrototype'),\n isObjectLike = require('./isObjectLike');\n\n/** `Object#toString` result references. */\nvar objectTag = '[object Object]';\n\n/** Used for built-in method references. */\nvar funcProto = Function.prototype,\n objectProto = Object.prototype;\n\n/** Used to resolve the decompiled source of functions. */\nvar funcToString = funcProto.toString;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/** Used to infer the `Object` constructor. */\nvar objectCtorString = funcToString.call(Object);\n\n/**\n * Checks if `value` is a plain object, that is, an object created by the\n * `Object` constructor or one with a `[[Prototype]]` of `null`.\n *\n * @static\n * @memberOf _\n * @since 0.8.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a plain object, else `false`.\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * }\n *\n * _.isPlainObject(new Foo);\n * // => false\n *\n * _.isPlainObject([1, 2, 3]);\n * // => false\n *\n * _.isPlainObject({ 'x': 0, 'y': 0 });\n * // => true\n *\n * _.isPlainObject(Object.create(null));\n * // => true\n */\nfunction isPlainObject(value) {\n if (!isObjectLike(value) || baseGetTag(value) != objectTag) {\n return false;\n }\n var proto = getPrototype(value);\n if (proto === null) {\n return true;\n }\n var Ctor = hasOwnProperty.call(proto, 'constructor') && proto.constructor;\n return typeof Ctor == 'function' && Ctor instanceof Ctor &&\n funcToString.call(Ctor) == objectCtorString;\n}\n\nmodule.exports = isPlainObject;\n","var baseIsTypedArray = require('./_baseIsTypedArray'),\n baseUnary = require('./_baseUnary'),\n nodeUtil = require('./_nodeUtil');\n\n/* Node.js helper references. */\nvar nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray;\n\n/**\n * Checks if `value` is classified as a typed array.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.\n * @example\n *\n * _.isTypedArray(new Uint8Array);\n * // => true\n *\n * _.isTypedArray([]);\n * // => false\n */\nvar isTypedArray = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray;\n\nmodule.exports = isTypedArray;\n","var arrayLikeKeys = require('./_arrayLikeKeys'),\n baseKeysIn = require('./_baseKeysIn'),\n isArrayLike = require('./isArrayLike');\n\n/**\n * Creates an array of the own and inherited enumerable property names of `object`.\n *\n * **Note:** Non-object values are coerced to objects.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Object\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names.\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * this.b = 2;\n * }\n *\n * Foo.prototype.c = 3;\n *\n * _.keysIn(new Foo);\n * // => ['a', 'b', 'c'] (iteration order is not guaranteed)\n */\nfunction keysIn(object) {\n return isArrayLike(object) ? arrayLikeKeys(object, true) : baseKeysIn(object);\n}\n\nmodule.exports = keysIn;\n","/**\n * This method returns `undefined`.\n *\n * @static\n * @memberOf _\n * @since 2.3.0\n * @category Util\n * @example\n *\n * _.times(2, _.noop);\n * // => [undefined, undefined]\n */\nfunction noop() {\n // No operation performed.\n}\n\nmodule.exports = noop;\n","/**\n * This method returns `false`.\n *\n * @static\n * @memberOf _\n * @since 4.13.0\n * @category Util\n * @returns {boolean} Returns `false`.\n * @example\n *\n * _.times(2, _.stubFalse);\n * // => [false, false]\n */\nfunction stubFalse() {\n return false;\n}\n\nmodule.exports = stubFalse;\n","var baseFlatten = require('./_baseFlatten'),\n baseRest = require('./_baseRest'),\n baseUniq = require('./_baseUniq'),\n isArrayLikeObject = require('./isArrayLikeObject');\n\n/**\n * Creates an array of unique values, in order, from all given arrays using\n * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)\n * for equality comparisons.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Array\n * @param {...Array} [arrays] The arrays to inspect.\n * @returns {Array} Returns the new array of combined values.\n * @example\n *\n * _.union([2], [1, 2]);\n * // => [2, 1]\n */\nvar union = baseRest(function(arrays) {\n return baseUniq(baseFlatten(arrays, 1, isArrayLikeObject, true));\n});\n\nmodule.exports = union;\n","/*!\n * mime-db\n * Copyright(c) 2014 Jonathan Ong\n * Copyright(c) 2015-2022 Douglas Christopher Wilson\n * MIT Licensed\n */\n\n/**\n * Module exports.\n */\n\nmodule.exports = require('./db.json')\n","/*!\n * mime-types\n * Copyright(c) 2014 Jonathan Ong\n * Copyright(c) 2015 Douglas Christopher Wilson\n * MIT Licensed\n */\n\n'use strict'\n\n/**\n * Module dependencies.\n * @private\n */\n\nvar db = require('mime-db')\nvar extname = require('path').extname\n\n/**\n * Module variables.\n * @private\n */\n\nvar EXTRACT_TYPE_REGEXP = /^\\s*([^;\\s]*)(?:;|\\s|$)/\nvar TEXT_TYPE_REGEXP = /^text\\//i\n\n/**\n * Module exports.\n * @public\n */\n\nexports.charset = charset\nexports.charsets = { lookup: charset }\nexports.contentType = contentType\nexports.extension = extension\nexports.extensions = Object.create(null)\nexports.lookup = lookup\nexports.types = Object.create(null)\n\n// Populate the extensions/types maps\npopulateMaps(exports.extensions, exports.types)\n\n/**\n * Get the default charset for a MIME type.\n *\n * @param {string} type\n * @return {boolean|string}\n */\n\nfunction charset (type) {\n if (!type || typeof type !== 'string') {\n return false\n }\n\n // TODO: use media-typer\n var match = EXTRACT_TYPE_REGEXP.exec(type)\n var mime = match && db[match[1].toLowerCase()]\n\n if (mime && mime.charset) {\n return mime.charset\n }\n\n // default text/* to utf-8\n if (match && TEXT_TYPE_REGEXP.test(match[1])) {\n return 'UTF-8'\n }\n\n return false\n}\n\n/**\n * Create a full Content-Type header given a MIME type or extension.\n *\n * @param {string} str\n * @return {boolean|string}\n */\n\nfunction contentType (str) {\n // TODO: should this even be in this module?\n if (!str || typeof str !== 'string') {\n return false\n }\n\n var mime = str.indexOf('/') === -1\n ? exports.lookup(str)\n : str\n\n if (!mime) {\n return false\n }\n\n // TODO: use content-type or other module\n if (mime.indexOf('charset') === -1) {\n var charset = exports.charset(mime)\n if (charset) mime += '; charset=' + charset.toLowerCase()\n }\n\n return mime\n}\n\n/**\n * Get the default extension for a MIME type.\n *\n * @param {string} type\n * @return {boolean|string}\n */\n\nfunction extension (type) {\n if (!type || typeof type !== 'string') {\n return false\n }\n\n // TODO: use media-typer\n var match = EXTRACT_TYPE_REGEXP.exec(type)\n\n // get extensions\n var exts = match && exports.extensions[match[1].toLowerCase()]\n\n if (!exts || !exts.length) {\n return false\n }\n\n return exts[0]\n}\n\n/**\n * Lookup the MIME type for a file path/extension.\n *\n * @param {string} path\n * @return {boolean|string}\n */\n\nfunction lookup (path) {\n if (!path || typeof path !== 'string') {\n return false\n }\n\n // get the extension (\"ext\" or \".ext\" or full path)\n var extension = extname('x.' + path)\n .toLowerCase()\n .substr(1)\n\n if (!extension) {\n return false\n }\n\n return exports.types[extension] || false\n}\n\n/**\n * Populate the extensions and types maps.\n * @private\n */\n\nfunction populateMaps (extensions, types) {\n // source preference (least -> most)\n var preference = ['nginx', 'apache', undefined, 'iana']\n\n Object.keys(db).forEach(function forEachMimeType (type) {\n var mime = db[type]\n var exts = mime.extensions\n\n if (!exts || !exts.length) {\n return\n }\n\n // mime -> extensions\n extensions[type] = exts\n\n // extension -> mime\n for (var i = 0; i < exts.length; i++) {\n var extension = exts[i]\n\n if (types[extension]) {\n var from = preference.indexOf(db[types[extension]].source)\n var to = preference.indexOf(mime.source)\n\n if (types[extension] !== 'application/octet-stream' &&\n (from > to || (from === to && types[extension].substr(0, 12) === 'application/'))) {\n // skip the remapping\n continue\n }\n }\n\n // set the extension -> mime\n types[extension] = type\n }\n })\n}\n","module.exports = minimatch\nminimatch.Minimatch = Minimatch\n\nvar path = (function () { try { return require('path') } catch (e) {}}()) || {\n sep: '/'\n}\nminimatch.sep = path.sep\n\nvar GLOBSTAR = minimatch.GLOBSTAR = Minimatch.GLOBSTAR = {}\nvar expand = require('brace-expansion')\n\nvar plTypes = {\n '!': { open: '(?:(?!(?:', close: '))[^/]*?)'},\n '?': { open: '(?:', close: ')?' },\n '+': { open: '(?:', close: ')+' },\n '*': { open: '(?:', close: ')*' },\n '@': { open: '(?:', close: ')' }\n}\n\n// any single thing other than /\n// don't need to escape / when using new RegExp()\nvar qmark = '[^/]'\n\n// * => any number of characters\nvar star = qmark + '*?'\n\n// ** when dots are allowed. Anything goes, except .. and .\n// not (^ or / followed by one or two dots followed by $ or /),\n// followed by anything, any number of times.\nvar twoStarDot = '(?:(?!(?:\\\\\\/|^)(?:\\\\.{1,2})($|\\\\\\/)).)*?'\n\n// not a ^ or / followed by a dot,\n// followed by anything, any number of times.\nvar twoStarNoDot = '(?:(?!(?:\\\\\\/|^)\\\\.).)*?'\n\n// characters that need to be escaped in RegExp.\nvar reSpecials = charSet('().*{}+?[]^$\\\\!')\n\n// \"abc\" -> { a:true, b:true, c:true }\nfunction charSet (s) {\n return s.split('').reduce(function (set, c) {\n set[c] = true\n return set\n }, {})\n}\n\n// normalizes slashes.\nvar slashSplit = /\\/+/\n\nminimatch.filter = filter\nfunction filter (pattern, options) {\n options = options || {}\n return function (p, i, list) {\n return minimatch(p, pattern, options)\n }\n}\n\nfunction ext (a, b) {\n b = b || {}\n var t = {}\n Object.keys(a).forEach(function (k) {\n t[k] = a[k]\n })\n Object.keys(b).forEach(function (k) {\n t[k] = b[k]\n })\n return t\n}\n\nminimatch.defaults = function (def) {\n if (!def || typeof def !== 'object' || !Object.keys(def).length) {\n return minimatch\n }\n\n var orig = minimatch\n\n var m = function minimatch (p, pattern, options) {\n return orig(p, pattern, ext(def, options))\n }\n\n m.Minimatch = function Minimatch (pattern, options) {\n return new orig.Minimatch(pattern, ext(def, options))\n }\n m.Minimatch.defaults = function defaults (options) {\n return orig.defaults(ext(def, options)).Minimatch\n }\n\n m.filter = function filter (pattern, options) {\n return orig.filter(pattern, ext(def, options))\n }\n\n m.defaults = function defaults (options) {\n return orig.defaults(ext(def, options))\n }\n\n m.makeRe = function makeRe (pattern, options) {\n return orig.makeRe(pattern, ext(def, options))\n }\n\n m.braceExpand = function braceExpand (pattern, options) {\n return orig.braceExpand(pattern, ext(def, options))\n }\n\n m.match = function (list, pattern, options) {\n return orig.match(list, pattern, ext(def, options))\n }\n\n return m\n}\n\nMinimatch.defaults = function (def) {\n return minimatch.defaults(def).Minimatch\n}\n\nfunction minimatch (p, pattern, options) {\n assertValidPattern(pattern)\n\n if (!options) options = {}\n\n // shortcut: comments match nothing.\n if (!options.nocomment && pattern.charAt(0) === '#') {\n return false\n }\n\n return new Minimatch(pattern, options).match(p)\n}\n\nfunction Minimatch (pattern, options) {\n if (!(this instanceof Minimatch)) {\n return new Minimatch(pattern, options)\n }\n\n assertValidPattern(pattern)\n\n if (!options) options = {}\n\n pattern = pattern.trim()\n\n // windows support: need to use /, not \\\n if (!options.allowWindowsEscape && path.sep !== '/') {\n pattern = pattern.split(path.sep).join('/')\n }\n\n this.options = options\n this.set = []\n this.pattern = pattern\n this.regexp = null\n this.negate = false\n this.comment = false\n this.empty = false\n this.partial = !!options.partial\n\n // make the set of regexps etc.\n this.make()\n}\n\nMinimatch.prototype.debug = function () {}\n\nMinimatch.prototype.make = make\nfunction make () {\n var pattern = this.pattern\n var options = this.options\n\n // empty patterns and comments match nothing.\n if (!options.nocomment && pattern.charAt(0) === '#') {\n this.comment = true\n return\n }\n if (!pattern) {\n this.empty = true\n return\n }\n\n // step 1: figure out negation, etc.\n this.parseNegate()\n\n // step 2: expand braces\n var set = this.globSet = this.braceExpand()\n\n if (options.debug) this.debug = function debug() { console.error.apply(console, arguments) }\n\n this.debug(this.pattern, set)\n\n // step 3: now we have a set, so turn each one into a series of path-portion\n // matching patterns.\n // These will be regexps, except in the case of \"**\", which is\n // set to the GLOBSTAR object for globstar behavior,\n // and will not contain any / characters\n set = this.globParts = set.map(function (s) {\n return s.split(slashSplit)\n })\n\n this.debug(this.pattern, set)\n\n // glob --> regexps\n set = set.map(function (s, si, set) {\n return s.map(this.parse, this)\n }, this)\n\n this.debug(this.pattern, set)\n\n // filter out everything that didn't compile properly.\n set = set.filter(function (s) {\n return s.indexOf(false) === -1\n })\n\n this.debug(this.pattern, set)\n\n this.set = set\n}\n\nMinimatch.prototype.parseNegate = parseNegate\nfunction parseNegate () {\n var pattern = this.pattern\n var negate = false\n var options = this.options\n var negateOffset = 0\n\n if (options.nonegate) return\n\n for (var i = 0, l = pattern.length\n ; i < l && pattern.charAt(i) === '!'\n ; i++) {\n negate = !negate\n negateOffset++\n }\n\n if (negateOffset) this.pattern = pattern.substr(negateOffset)\n this.negate = negate\n}\n\n// Brace expansion:\n// a{b,c}d -> abd acd\n// a{b,}c -> abc ac\n// a{0..3}d -> a0d a1d a2d a3d\n// a{b,c{d,e}f}g -> abg acdfg acefg\n// a{b,c}d{e,f}g -> abdeg acdeg abdeg abdfg\n//\n// Invalid sets are not expanded.\n// a{2..}b -> a{2..}b\n// a{b}c -> a{b}c\nminimatch.braceExpand = function (pattern, options) {\n return braceExpand(pattern, options)\n}\n\nMinimatch.prototype.braceExpand = braceExpand\n\nfunction braceExpand (pattern, options) {\n if (!options) {\n if (this instanceof Minimatch) {\n options = this.options\n } else {\n options = {}\n }\n }\n\n pattern = typeof pattern === 'undefined'\n ? this.pattern : pattern\n\n assertValidPattern(pattern)\n\n // Thanks to Yeting Li for\n // improving this regexp to avoid a ReDOS vulnerability.\n if (options.nobrace || !/\\{(?:(?!\\{).)*\\}/.test(pattern)) {\n // shortcut. no need to expand.\n return [pattern]\n }\n\n return expand(pattern)\n}\n\nvar MAX_PATTERN_LENGTH = 1024 * 64\nvar assertValidPattern = function (pattern) {\n if (typeof pattern !== 'string') {\n throw new TypeError('invalid pattern')\n }\n\n if (pattern.length > MAX_PATTERN_LENGTH) {\n throw new TypeError('pattern is too long')\n }\n}\n\n// parse a component of the expanded set.\n// At this point, no pattern may contain \"/\" in it\n// so we're going to return a 2d array, where each entry is the full\n// pattern, split on '/', and then turned into a regular expression.\n// A regexp is made at the end which joins each array with an\n// escaped /, and another full one which joins each regexp with |.\n//\n// Following the lead of Bash 4.1, note that \"**\" only has special meaning\n// when it is the *only* thing in a path portion. Otherwise, any series\n// of * is equivalent to a single *. Globstar behavior is enabled by\n// default, and can be disabled by setting options.noglobstar.\nMinimatch.prototype.parse = parse\nvar SUBPARSE = {}\nfunction parse (pattern, isSub) {\n assertValidPattern(pattern)\n\n var options = this.options\n\n // shortcuts\n if (pattern === '**') {\n if (!options.noglobstar)\n return GLOBSTAR\n else\n pattern = '*'\n }\n if (pattern === '') return ''\n\n var re = ''\n var hasMagic = !!options.nocase\n var escaping = false\n // ? => one single character\n var patternListStack = []\n var negativeLists = []\n var stateChar\n var inClass = false\n var reClassStart = -1\n var classStart = -1\n // . and .. never match anything that doesn't start with .,\n // even when options.dot is set.\n var patternStart = pattern.charAt(0) === '.' ? '' // anything\n // not (start or / followed by . or .. followed by / or end)\n : options.dot ? '(?!(?:^|\\\\\\/)\\\\.{1,2}(?:$|\\\\\\/))'\n : '(?!\\\\.)'\n var self = this\n\n function clearStateChar () {\n if (stateChar) {\n // we had some state-tracking character\n // that wasn't consumed by this pass.\n switch (stateChar) {\n case '*':\n re += star\n hasMagic = true\n break\n case '?':\n re += qmark\n hasMagic = true\n break\n default:\n re += '\\\\' + stateChar\n break\n }\n self.debug('clearStateChar %j %j', stateChar, re)\n stateChar = false\n }\n }\n\n for (var i = 0, len = pattern.length, c\n ; (i < len) && (c = pattern.charAt(i))\n ; i++) {\n this.debug('%s\\t%s %s %j', pattern, i, re, c)\n\n // skip over any that are escaped.\n if (escaping && reSpecials[c]) {\n re += '\\\\' + c\n escaping = false\n continue\n }\n\n switch (c) {\n /* istanbul ignore next */\n case '/': {\n // completely not allowed, even escaped.\n // Should already be path-split by now.\n return false\n }\n\n case '\\\\':\n clearStateChar()\n escaping = true\n continue\n\n // the various stateChar values\n // for the \"extglob\" stuff.\n case '?':\n case '*':\n case '+':\n case '@':\n case '!':\n this.debug('%s\\t%s %s %j <-- stateChar', pattern, i, re, c)\n\n // all of those are literals inside a class, except that\n // the glob [!a] means [^a] in regexp\n if (inClass) {\n this.debug(' in class')\n if (c === '!' && i === classStart + 1) c = '^'\n re += c\n continue\n }\n\n // if we already have a stateChar, then it means\n // that there was something like ** or +? in there.\n // Handle the stateChar, then proceed with this one.\n self.debug('call clearStateChar %j', stateChar)\n clearStateChar()\n stateChar = c\n // if extglob is disabled, then +(asdf|foo) isn't a thing.\n // just clear the statechar *now*, rather than even diving into\n // the patternList stuff.\n if (options.noext) clearStateChar()\n continue\n\n case '(':\n if (inClass) {\n re += '('\n continue\n }\n\n if (!stateChar) {\n re += '\\\\('\n continue\n }\n\n patternListStack.push({\n type: stateChar,\n start: i - 1,\n reStart: re.length,\n open: plTypes[stateChar].open,\n close: plTypes[stateChar].close\n })\n // negation is (?:(?!js)[^/]*)\n re += stateChar === '!' ? '(?:(?!(?:' : '(?:'\n this.debug('plType %j %j', stateChar, re)\n stateChar = false\n continue\n\n case ')':\n if (inClass || !patternListStack.length) {\n re += '\\\\)'\n continue\n }\n\n clearStateChar()\n hasMagic = true\n var pl = patternListStack.pop()\n // negation is (?:(?!js)[^/]*)\n // The others are (?:)\n re += pl.close\n if (pl.type === '!') {\n negativeLists.push(pl)\n }\n pl.reEnd = re.length\n continue\n\n case '|':\n if (inClass || !patternListStack.length || escaping) {\n re += '\\\\|'\n escaping = false\n continue\n }\n\n clearStateChar()\n re += '|'\n continue\n\n // these are mostly the same in regexp and glob\n case '[':\n // swallow any state-tracking char before the [\n clearStateChar()\n\n if (inClass) {\n re += '\\\\' + c\n continue\n }\n\n inClass = true\n classStart = i\n reClassStart = re.length\n re += c\n continue\n\n case ']':\n // a right bracket shall lose its special\n // meaning and represent itself in\n // a bracket expression if it occurs\n // first in the list. -- POSIX.2 2.8.3.2\n if (i === classStart + 1 || !inClass) {\n re += '\\\\' + c\n escaping = false\n continue\n }\n\n // handle the case where we left a class open.\n // \"[z-a]\" is valid, equivalent to \"\\[z-a\\]\"\n // split where the last [ was, make sure we don't have\n // an invalid re. if so, re-walk the contents of the\n // would-be class to re-translate any characters that\n // were passed through as-is\n // TODO: It would probably be faster to determine this\n // without a try/catch and a new RegExp, but it's tricky\n // to do safely. For now, this is safe and works.\n var cs = pattern.substring(classStart + 1, i)\n try {\n RegExp('[' + cs + ']')\n } catch (er) {\n // not a valid class!\n var sp = this.parse(cs, SUBPARSE)\n re = re.substr(0, reClassStart) + '\\\\[' + sp[0] + '\\\\]'\n hasMagic = hasMagic || sp[1]\n inClass = false\n continue\n }\n\n // finish up the class.\n hasMagic = true\n inClass = false\n re += c\n continue\n\n default:\n // swallow any state char that wasn't consumed\n clearStateChar()\n\n if (escaping) {\n // no need\n escaping = false\n } else if (reSpecials[c]\n && !(c === '^' && inClass)) {\n re += '\\\\'\n }\n\n re += c\n\n } // switch\n } // for\n\n // handle the case where we left a class open.\n // \"[abc\" is valid, equivalent to \"\\[abc\"\n if (inClass) {\n // split where the last [ was, and escape it\n // this is a huge pita. We now have to re-walk\n // the contents of the would-be class to re-translate\n // any characters that were passed through as-is\n cs = pattern.substr(classStart + 1)\n sp = this.parse(cs, SUBPARSE)\n re = re.substr(0, reClassStart) + '\\\\[' + sp[0]\n hasMagic = hasMagic || sp[1]\n }\n\n // handle the case where we had a +( thing at the *end*\n // of the pattern.\n // each pattern list stack adds 3 chars, and we need to go through\n // and escape any | chars that were passed through as-is for the regexp.\n // Go through and escape them, taking care not to double-escape any\n // | chars that were already escaped.\n for (pl = patternListStack.pop(); pl; pl = patternListStack.pop()) {\n var tail = re.slice(pl.reStart + pl.open.length)\n this.debug('setting tail', re, pl)\n // maybe some even number of \\, then maybe 1 \\, followed by a |\n tail = tail.replace(/((?:\\\\{2}){0,64})(\\\\?)\\|/g, function (_, $1, $2) {\n if (!$2) {\n // the | isn't already escaped, so escape it.\n $2 = '\\\\'\n }\n\n // need to escape all those slashes *again*, without escaping the\n // one that we need for escaping the | character. As it works out,\n // escaping an even number of slashes can be done by simply repeating\n // it exactly after itself. That's why this trick works.\n //\n // I am sorry that you have to see this.\n return $1 + $1 + $2 + '|'\n })\n\n this.debug('tail=%j\\n %s', tail, tail, pl, re)\n var t = pl.type === '*' ? star\n : pl.type === '?' ? qmark\n : '\\\\' + pl.type\n\n hasMagic = true\n re = re.slice(0, pl.reStart) + t + '\\\\(' + tail\n }\n\n // handle trailing things that only matter at the very end.\n clearStateChar()\n if (escaping) {\n // trailing \\\\\n re += '\\\\\\\\'\n }\n\n // only need to apply the nodot start if the re starts with\n // something that could conceivably capture a dot\n var addPatternStart = false\n switch (re.charAt(0)) {\n case '[': case '.': case '(': addPatternStart = true\n }\n\n // Hack to work around lack of negative lookbehind in JS\n // A pattern like: *.!(x).!(y|z) needs to ensure that a name\n // like 'a.xyz.yz' doesn't match. So, the first negative\n // lookahead, has to look ALL the way ahead, to the end of\n // the pattern.\n for (var n = negativeLists.length - 1; n > -1; n--) {\n var nl = negativeLists[n]\n\n var nlBefore = re.slice(0, nl.reStart)\n var nlFirst = re.slice(nl.reStart, nl.reEnd - 8)\n var nlLast = re.slice(nl.reEnd - 8, nl.reEnd)\n var nlAfter = re.slice(nl.reEnd)\n\n nlLast += nlAfter\n\n // Handle nested stuff like *(*.js|!(*.json)), where open parens\n // mean that we should *not* include the ) in the bit that is considered\n // \"after\" the negated section.\n var openParensBefore = nlBefore.split('(').length - 1\n var cleanAfter = nlAfter\n for (i = 0; i < openParensBefore; i++) {\n cleanAfter = cleanAfter.replace(/\\)[+*?]?/, '')\n }\n nlAfter = cleanAfter\n\n var dollar = ''\n if (nlAfter === '' && isSub !== SUBPARSE) {\n dollar = '$'\n }\n var newRe = nlBefore + nlFirst + nlAfter + dollar + nlLast\n re = newRe\n }\n\n // if the re is not \"\" at this point, then we need to make sure\n // it doesn't match against an empty path part.\n // Otherwise a/* will match a/, which it should not.\n if (re !== '' && hasMagic) {\n re = '(?=.)' + re\n }\n\n if (addPatternStart) {\n re = patternStart + re\n }\n\n // parsing just a piece of a larger pattern.\n if (isSub === SUBPARSE) {\n return [re, hasMagic]\n }\n\n // skip the regexp for non-magical patterns\n // unescape anything in it, though, so that it'll be\n // an exact match against a file etc.\n if (!hasMagic) {\n return globUnescape(pattern)\n }\n\n var flags = options.nocase ? 'i' : ''\n try {\n var regExp = new RegExp('^' + re + '$', flags)\n } catch (er) /* istanbul ignore next - should be impossible */ {\n // If it was an invalid regular expression, then it can't match\n // anything. This trick looks for a character after the end of\n // the string, which is of course impossible, except in multi-line\n // mode, but it's not a /m regex.\n return new RegExp('$.')\n }\n\n regExp._glob = pattern\n regExp._src = re\n\n return regExp\n}\n\nminimatch.makeRe = function (pattern, options) {\n return new Minimatch(pattern, options || {}).makeRe()\n}\n\nMinimatch.prototype.makeRe = makeRe\nfunction makeRe () {\n if (this.regexp || this.regexp === false) return this.regexp\n\n // at this point, this.set is a 2d array of partial\n // pattern strings, or \"**\".\n //\n // It's better to use .match(). This function shouldn't\n // be used, really, but it's pretty convenient sometimes,\n // when you just want to work with a regex.\n var set = this.set\n\n if (!set.length) {\n this.regexp = false\n return this.regexp\n }\n var options = this.options\n\n var twoStar = options.noglobstar ? star\n : options.dot ? twoStarDot\n : twoStarNoDot\n var flags = options.nocase ? 'i' : ''\n\n var re = set.map(function (pattern) {\n return pattern.map(function (p) {\n return (p === GLOBSTAR) ? twoStar\n : (typeof p === 'string') ? regExpEscape(p)\n : p._src\n }).join('\\\\\\/')\n }).join('|')\n\n // must match entire pattern\n // ending in a * or ** will make it less strict.\n re = '^(?:' + re + ')$'\n\n // can match anything, as long as it's not this.\n if (this.negate) re = '^(?!' + re + ').*$'\n\n try {\n this.regexp = new RegExp(re, flags)\n } catch (ex) /* istanbul ignore next - should be impossible */ {\n this.regexp = false\n }\n return this.regexp\n}\n\nminimatch.match = function (list, pattern, options) {\n options = options || {}\n var mm = new Minimatch(pattern, options)\n list = list.filter(function (f) {\n return mm.match(f)\n })\n if (mm.options.nonull && !list.length) {\n list.push(pattern)\n }\n return list\n}\n\nMinimatch.prototype.match = function match (f, partial) {\n if (typeof partial === 'undefined') partial = this.partial\n this.debug('match', f, this.pattern)\n // short-circuit in the case of busted things.\n // comments, etc.\n if (this.comment) return false\n if (this.empty) return f === ''\n\n if (f === '/' && partial) return true\n\n var options = this.options\n\n // windows: need to use /, not \\\n if (path.sep !== '/') {\n f = f.split(path.sep).join('/')\n }\n\n // treat the test path as a set of pathparts.\n f = f.split(slashSplit)\n this.debug(this.pattern, 'split', f)\n\n // just ONE of the pattern sets in this.set needs to match\n // in order for it to be valid. If negating, then just one\n // match means that we have failed.\n // Either way, return on the first hit.\n\n var set = this.set\n this.debug(this.pattern, 'set', set)\n\n // Find the basename of the path by looking for the last non-empty segment\n var filename\n var i\n for (i = f.length - 1; i >= 0; i--) {\n filename = f[i]\n if (filename) break\n }\n\n for (i = 0; i < set.length; i++) {\n var pattern = set[i]\n var file = f\n if (options.matchBase && pattern.length === 1) {\n file = [filename]\n }\n var hit = this.matchOne(file, pattern, partial)\n if (hit) {\n if (options.flipNegate) return true\n return !this.negate\n }\n }\n\n // didn't get any hits. this is success if it's a negative\n // pattern, failure otherwise.\n if (options.flipNegate) return false\n return this.negate\n}\n\n// set partial to true to test if, for example,\n// \"/a/b\" matches the start of \"/*/b/*/d\"\n// Partial means, if you run out of file before you run\n// out of pattern, then that's fine, as long as all\n// the parts match.\nMinimatch.prototype.matchOne = function (file, pattern, partial) {\n var options = this.options\n\n this.debug('matchOne',\n { 'this': this, file: file, pattern: pattern })\n\n this.debug('matchOne', file.length, pattern.length)\n\n for (var fi = 0,\n pi = 0,\n fl = file.length,\n pl = pattern.length\n ; (fi < fl) && (pi < pl)\n ; fi++, pi++) {\n this.debug('matchOne loop')\n var p = pattern[pi]\n var f = file[fi]\n\n this.debug(pattern, p, f)\n\n // should be impossible.\n // some invalid regexp stuff in the set.\n /* istanbul ignore if */\n if (p === false) return false\n\n if (p === GLOBSTAR) {\n this.debug('GLOBSTAR', [pattern, p, f])\n\n // \"**\"\n // a/**/b/**/c would match the following:\n // a/b/x/y/z/c\n // a/x/y/z/b/c\n // a/b/x/b/x/c\n // a/b/c\n // To do this, take the rest of the pattern after\n // the **, and see if it would match the file remainder.\n // If so, return success.\n // If not, the ** \"swallows\" a segment, and try again.\n // This is recursively awful.\n //\n // a/**/b/**/c matching a/b/x/y/z/c\n // - a matches a\n // - doublestar\n // - matchOne(b/x/y/z/c, b/**/c)\n // - b matches b\n // - doublestar\n // - matchOne(x/y/z/c, c) -> no\n // - matchOne(y/z/c, c) -> no\n // - matchOne(z/c, c) -> no\n // - matchOne(c, c) yes, hit\n var fr = fi\n var pr = pi + 1\n if (pr === pl) {\n this.debug('** at the end')\n // a ** at the end will just swallow the rest.\n // We have found a match.\n // however, it will not swallow /.x, unless\n // options.dot is set.\n // . and .. are *never* matched by **, for explosively\n // exponential reasons.\n for (; fi < fl; fi++) {\n if (file[fi] === '.' || file[fi] === '..' ||\n (!options.dot && file[fi].charAt(0) === '.')) return false\n }\n return true\n }\n\n // ok, let's see if we can swallow whatever we can.\n while (fr < fl) {\n var swallowee = file[fr]\n\n this.debug('\\nglobstar while', file, fr, pattern, pr, swallowee)\n\n // XXX remove this slice. Just pass the start index.\n if (this.matchOne(file.slice(fr), pattern.slice(pr), partial)) {\n this.debug('globstar found match!', fr, fl, swallowee)\n // found a match.\n return true\n } else {\n // can't swallow \".\" or \"..\" ever.\n // can only swallow \".foo\" when explicitly asked.\n if (swallowee === '.' || swallowee === '..' ||\n (!options.dot && swallowee.charAt(0) === '.')) {\n this.debug('dot detected!', file, fr, pattern, pr)\n break\n }\n\n // ** swallows a segment, and continue.\n this.debug('globstar swallow a segment, and continue')\n fr++\n }\n }\n\n // no match was found.\n // However, in partial mode, we can't say this is necessarily over.\n // If there's more *pattern* left, then\n /* istanbul ignore if */\n if (partial) {\n // ran out of file\n this.debug('\\n>>> no match, partial?', file, fr, pattern, pr)\n if (fr === fl) return true\n }\n return false\n }\n\n // something other than **\n // non-magic patterns just have to match exactly\n // patterns with magic have been turned into regexps.\n var hit\n if (typeof p === 'string') {\n hit = f === p\n this.debug('string match', p, f, hit)\n } else {\n hit = f.match(p)\n this.debug('pattern match', p, f, hit)\n }\n\n if (!hit) return false\n }\n\n // Note: ending in / means that we'll get a final \"\"\n // at the end of the pattern. This can only match a\n // corresponding \"\" at the end of the file.\n // If the file ends in /, then it can only match a\n // a pattern that ends in /, unless the pattern just\n // doesn't have any more for it. But, a/b/ should *not*\n // match \"a/b/*\", even though \"\" matches against the\n // [^/]*? pattern, except in partial mode, where it might\n // simply not be reached yet.\n // However, a/b/ should still satisfy a/*\n\n // now either we fell off the end of the pattern, or we're done.\n if (fi === fl && pi === pl) {\n // ran out of pattern and filename at the same time.\n // an exact hit!\n return true\n } else if (fi === fl) {\n // ran out of file, but still had pattern left.\n // this is ok if we're doing the match as part of\n // a glob fs traversal.\n return partial\n } else /* istanbul ignore else */ if (pi === pl) {\n // ran out of pattern, still have file left.\n // this is only acceptable if we're on the very last\n // empty segment of a file with a trailing slash.\n // a/* should match a/b/\n return (fi === fl - 1) && (file[fi] === '')\n }\n\n // should be unreachable.\n /* istanbul ignore next */\n throw new Error('wtf?')\n}\n\n// replace stuff like \\* with *\nfunction globUnescape (s) {\n return s.replace(/\\\\(.)/g, '$1')\n}\n\nfunction regExpEscape (s) {\n return s.replace(/[-[\\]{}()*+?.,\\\\^$|#\\s]/g, '\\\\$&')\n}\n","var concatMap = require('concat-map');\nvar balanced = require('balanced-match');\n\nmodule.exports = expandTop;\n\nvar escSlash = '\\0SLASH'+Math.random()+'\\0';\nvar escOpen = '\\0OPEN'+Math.random()+'\\0';\nvar escClose = '\\0CLOSE'+Math.random()+'\\0';\nvar escComma = '\\0COMMA'+Math.random()+'\\0';\nvar escPeriod = '\\0PERIOD'+Math.random()+'\\0';\n\nfunction numeric(str) {\n return parseInt(str, 10) == str\n ? parseInt(str, 10)\n : str.charCodeAt(0);\n}\n\nfunction escapeBraces(str) {\n return str.split('\\\\\\\\').join(escSlash)\n .split('\\\\{').join(escOpen)\n .split('\\\\}').join(escClose)\n .split('\\\\,').join(escComma)\n .split('\\\\.').join(escPeriod);\n}\n\nfunction unescapeBraces(str) {\n return str.split(escSlash).join('\\\\')\n .split(escOpen).join('{')\n .split(escClose).join('}')\n .split(escComma).join(',')\n .split(escPeriod).join('.');\n}\n\n\n// Basically just str.split(\",\"), but handling cases\n// where we have nested braced sections, which should be\n// treated as individual members, like {a,{b,c},d}\nfunction parseCommaParts(str) {\n if (!str)\n return [''];\n\n var parts = [];\n var m = balanced('{', '}', str);\n\n if (!m)\n return str.split(',');\n\n var pre = m.pre;\n var body = m.body;\n var post = m.post;\n var p = pre.split(',');\n\n p[p.length-1] += '{' + body + '}';\n var postParts = parseCommaParts(post);\n if (post.length) {\n p[p.length-1] += postParts.shift();\n p.push.apply(p, postParts);\n }\n\n parts.push.apply(parts, p);\n\n return parts;\n}\n\nfunction expandTop(str) {\n if (!str)\n return [];\n\n // I don't know why Bash 4.3 does this, but it does.\n // Anything starting with {} will have the first two bytes preserved\n // but *only* at the top level, so {},a}b will not expand to anything,\n // but a{},b}c will be expanded to [a}c,abc].\n // One could argue that this is a bug in Bash, but since the goal of\n // this module is to match Bash's rules, we escape a leading {}\n if (str.substr(0, 2) === '{}') {\n str = '\\\\{\\\\}' + str.substr(2);\n }\n\n return expand(escapeBraces(str), true).map(unescapeBraces);\n}\n\nfunction identity(e) {\n return e;\n}\n\nfunction embrace(str) {\n return '{' + str + '}';\n}\nfunction isPadded(el) {\n return /^-?0\\d/.test(el);\n}\n\nfunction lte(i, y) {\n return i <= y;\n}\nfunction gte(i, y) {\n return i >= y;\n}\n\nfunction expand(str, isTop) {\n var expansions = [];\n\n var m = balanced('{', '}', str);\n if (!m || /\\$$/.test(m.pre)) return [str];\n\n var isNumericSequence = /^-?\\d+\\.\\.-?\\d+(?:\\.\\.-?\\d+)?$/.test(m.body);\n var isAlphaSequence = /^[a-zA-Z]\\.\\.[a-zA-Z](?:\\.\\.-?\\d+)?$/.test(m.body);\n var isSequence = isNumericSequence || isAlphaSequence;\n var isOptions = m.body.indexOf(',') >= 0;\n if (!isSequence && !isOptions) {\n // {a},b}\n if (m.post.match(/,.*\\}/)) {\n str = m.pre + '{' + m.body + escClose + m.post;\n return expand(str);\n }\n return [str];\n }\n\n var n;\n if (isSequence) {\n n = m.body.split(/\\.\\./);\n } else {\n n = parseCommaParts(m.body);\n if (n.length === 1) {\n // x{{a,b}}y ==> x{a}y x{b}y\n n = expand(n[0], false).map(embrace);\n if (n.length === 1) {\n var post = m.post.length\n ? expand(m.post, false)\n : [''];\n return post.map(function(p) {\n return m.pre + n[0] + p;\n });\n }\n }\n }\n\n // at this point, n is the parts, and we know it's not a comma set\n // with a single entry.\n\n // no need to expand pre, since it is guaranteed to be free of brace-sets\n var pre = m.pre;\n var post = m.post.length\n ? expand(m.post, false)\n : [''];\n\n var N;\n\n if (isSequence) {\n var x = numeric(n[0]);\n var y = numeric(n[1]);\n var width = Math.max(n[0].length, n[1].length)\n var incr = n.length == 3\n ? Math.abs(numeric(n[2]))\n : 1;\n var test = lte;\n var reverse = y < x;\n if (reverse) {\n incr *= -1;\n test = gte;\n }\n var pad = n.some(isPadded);\n\n N = [];\n\n for (var i = x; test(i, y); i += incr) {\n var c;\n if (isAlphaSequence) {\n c = String.fromCharCode(i);\n if (c === '\\\\')\n c = '';\n } else {\n c = String(i);\n if (pad) {\n var need = width - c.length;\n if (need > 0) {\n var z = new Array(need + 1).join('0');\n if (i < 0)\n c = '-' + z + c.slice(1);\n else\n c = z + c;\n }\n }\n }\n N.push(c);\n }\n } else {\n N = concatMap(n, function(el) { return expand(el, false) });\n }\n\n for (var j = 0; j < N.length; j++) {\n for (var k = 0; k < post.length; k++) {\n var expansion = pre + N[j] + post[k];\n if (!isTop || isSequence || expansion)\n expansions.push(expansion);\n }\n }\n\n return expansions;\n}\n\n","var path = require('path');\nvar fs = require('fs');\nvar _0777 = parseInt('0777', 8);\n\nmodule.exports = mkdirP.mkdirp = mkdirP.mkdirP = mkdirP;\n\nfunction mkdirP (p, opts, f, made) {\n if (typeof opts === 'function') {\n f = opts;\n opts = {};\n }\n else if (!opts || typeof opts !== 'object') {\n opts = { mode: opts };\n }\n \n var mode = opts.mode;\n var xfs = opts.fs || fs;\n \n if (mode === undefined) {\n mode = _0777\n }\n if (!made) made = null;\n \n var cb = f || /* istanbul ignore next */ function () {};\n p = path.resolve(p);\n \n xfs.mkdir(p, mode, function (er) {\n if (!er) {\n made = made || p;\n return cb(null, made);\n }\n switch (er.code) {\n case 'ENOENT':\n /* istanbul ignore if */\n if (path.dirname(p) === p) return cb(er);\n mkdirP(path.dirname(p), opts, function (er, made) {\n /* istanbul ignore if */\n if (er) cb(er, made);\n else mkdirP(p, opts, cb, made);\n });\n break;\n\n // In the case of any other error, just see if there's a dir\n // there already. If so, then hooray! If not, then something\n // is borked.\n default:\n xfs.stat(p, function (er2, stat) {\n // if the stat fails, then that's super weird.\n // let the original error be the failure reason.\n if (er2 || !stat.isDirectory()) cb(er, made)\n else cb(null, made);\n });\n break;\n }\n });\n}\n\nmkdirP.sync = function sync (p, opts, made) {\n if (!opts || typeof opts !== 'object') {\n opts = { mode: opts };\n }\n \n var mode = opts.mode;\n var xfs = opts.fs || fs;\n \n if (mode === undefined) {\n mode = _0777\n }\n if (!made) made = null;\n\n p = path.resolve(p);\n\n try {\n xfs.mkdirSync(p, mode);\n made = made || p;\n }\n catch (err0) {\n switch (err0.code) {\n case 'ENOENT' :\n made = sync(path.dirname(p), opts, made);\n sync(p, opts, made);\n break;\n\n // In the case of any other error, just see if there's a dir\n // there already. If so, then hooray! If not, then something\n // is borked.\n default:\n var stat;\n try {\n stat = xfs.statSync(p);\n }\n catch (err1) /* istanbul ignore next */ {\n throw err0;\n }\n /* istanbul ignore if */\n if (!stat.isDirectory()) throw err0;\n break;\n }\n }\n\n return made;\n};\n","/**\n * Helpers.\n */\n\nvar s = 1000;\nvar m = s * 60;\nvar h = m * 60;\nvar d = h * 24;\nvar w = d * 7;\nvar y = d * 365.25;\n\n/**\n * Parse or format the given `val`.\n *\n * Options:\n *\n * - `long` verbose formatting [false]\n *\n * @param {String|Number} val\n * @param {Object} [options]\n * @throws {Error} throw an error if val is not a non-empty string or a number\n * @return {String|Number}\n * @api public\n */\n\nmodule.exports = function(val, options) {\n options = options || {};\n var type = typeof val;\n if (type === 'string' && val.length > 0) {\n return parse(val);\n } else if (type === 'number' && isFinite(val)) {\n return options.long ? fmtLong(val) : fmtShort(val);\n }\n throw new Error(\n 'val is not a non-empty string or a valid number. val=' +\n JSON.stringify(val)\n );\n};\n\n/**\n * Parse the given `str` and return milliseconds.\n *\n * @param {String} str\n * @return {Number}\n * @api private\n */\n\nfunction parse(str) {\n str = String(str);\n if (str.length > 100) {\n return;\n }\n var match = /^(-?(?:\\d+)?\\.?\\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(\n str\n );\n if (!match) {\n return;\n }\n var n = parseFloat(match[1]);\n var type = (match[2] || 'ms').toLowerCase();\n switch (type) {\n case 'years':\n case 'year':\n case 'yrs':\n case 'yr':\n case 'y':\n return n * y;\n case 'weeks':\n case 'week':\n case 'w':\n return n * w;\n case 'days':\n case 'day':\n case 'd':\n return n * d;\n case 'hours':\n case 'hour':\n case 'hrs':\n case 'hr':\n case 'h':\n return n * h;\n case 'minutes':\n case 'minute':\n case 'mins':\n case 'min':\n case 'm':\n return n * m;\n case 'seconds':\n case 'second':\n case 'secs':\n case 'sec':\n case 's':\n return n * s;\n case 'milliseconds':\n case 'millisecond':\n case 'msecs':\n case 'msec':\n case 'ms':\n return n;\n default:\n return undefined;\n }\n}\n\n/**\n * Short format for `ms`.\n *\n * @param {Number} ms\n * @return {String}\n * @api private\n */\n\nfunction fmtShort(ms) {\n var msAbs = Math.abs(ms);\n if (msAbs >= d) {\n return Math.round(ms / d) + 'd';\n }\n if (msAbs >= h) {\n return Math.round(ms / h) + 'h';\n }\n if (msAbs >= m) {\n return Math.round(ms / m) + 'm';\n }\n if (msAbs >= s) {\n return Math.round(ms / s) + 's';\n }\n return ms + 'ms';\n}\n\n/**\n * Long format for `ms`.\n *\n * @param {Number} ms\n * @return {String}\n * @api private\n */\n\nfunction fmtLong(ms) {\n var msAbs = Math.abs(ms);\n if (msAbs >= d) {\n return plural(ms, msAbs, d, 'day');\n }\n if (msAbs >= h) {\n return plural(ms, msAbs, h, 'hour');\n }\n if (msAbs >= m) {\n return plural(ms, msAbs, m, 'minute');\n }\n if (msAbs >= s) {\n return plural(ms, msAbs, s, 'second');\n }\n return ms + ' ms';\n}\n\n/**\n * Pluralization helper.\n */\n\nfunction plural(ms, msAbs, n, name) {\n var isPlural = msAbs >= n * 1.5;\n return Math.round(ms / n) + ' ' + name + (isPlural ? 's' : '');\n}\n","'use strict';\n\nObject.defineProperty(exports, '__esModule', { value: true });\n\nfunction _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }\n\nvar Stream = _interopDefault(require('stream'));\nvar http = _interopDefault(require('http'));\nvar Url = _interopDefault(require('url'));\nvar whatwgUrl = _interopDefault(require('whatwg-url'));\nvar https = _interopDefault(require('https'));\nvar zlib = _interopDefault(require('zlib'));\n\n// Based on https://github.com/tmpvar/jsdom/blob/aa85b2abf07766ff7bf5c1f6daafb3726f2f2db5/lib/jsdom/living/blob.js\n\n// fix for \"Readable\" isn't a named export issue\nconst Readable = Stream.Readable;\n\nconst BUFFER = Symbol('buffer');\nconst TYPE = Symbol('type');\n\nclass Blob {\n\tconstructor() {\n\t\tthis[TYPE] = '';\n\n\t\tconst blobParts = arguments[0];\n\t\tconst options = arguments[1];\n\n\t\tconst buffers = [];\n\t\tlet size = 0;\n\n\t\tif (blobParts) {\n\t\t\tconst a = blobParts;\n\t\t\tconst length = Number(a.length);\n\t\t\tfor (let i = 0; i < length; i++) {\n\t\t\t\tconst element = a[i];\n\t\t\t\tlet buffer;\n\t\t\t\tif (element instanceof Buffer) {\n\t\t\t\t\tbuffer = element;\n\t\t\t\t} else if (ArrayBuffer.isView(element)) {\n\t\t\t\t\tbuffer = Buffer.from(element.buffer, element.byteOffset, element.byteLength);\n\t\t\t\t} else if (element instanceof ArrayBuffer) {\n\t\t\t\t\tbuffer = Buffer.from(element);\n\t\t\t\t} else if (element instanceof Blob) {\n\t\t\t\t\tbuffer = element[BUFFER];\n\t\t\t\t} else {\n\t\t\t\t\tbuffer = Buffer.from(typeof element === 'string' ? element : String(element));\n\t\t\t\t}\n\t\t\t\tsize += buffer.length;\n\t\t\t\tbuffers.push(buffer);\n\t\t\t}\n\t\t}\n\n\t\tthis[BUFFER] = Buffer.concat(buffers);\n\n\t\tlet type = options && options.type !== undefined && String(options.type).toLowerCase();\n\t\tif (type && !/[^\\u0020-\\u007E]/.test(type)) {\n\t\t\tthis[TYPE] = type;\n\t\t}\n\t}\n\tget size() {\n\t\treturn this[BUFFER].length;\n\t}\n\tget type() {\n\t\treturn this[TYPE];\n\t}\n\ttext() {\n\t\treturn Promise.resolve(this[BUFFER].toString());\n\t}\n\tarrayBuffer() {\n\t\tconst buf = this[BUFFER];\n\t\tconst ab = buf.buffer.slice(buf.byteOffset, buf.byteOffset + buf.byteLength);\n\t\treturn Promise.resolve(ab);\n\t}\n\tstream() {\n\t\tconst readable = new Readable();\n\t\treadable._read = function () {};\n\t\treadable.push(this[BUFFER]);\n\t\treadable.push(null);\n\t\treturn readable;\n\t}\n\ttoString() {\n\t\treturn '[object Blob]';\n\t}\n\tslice() {\n\t\tconst size = this.size;\n\n\t\tconst start = arguments[0];\n\t\tconst end = arguments[1];\n\t\tlet relativeStart, relativeEnd;\n\t\tif (start === undefined) {\n\t\t\trelativeStart = 0;\n\t\t} else if (start < 0) {\n\t\t\trelativeStart = Math.max(size + start, 0);\n\t\t} else {\n\t\t\trelativeStart = Math.min(start, size);\n\t\t}\n\t\tif (end === undefined) {\n\t\t\trelativeEnd = size;\n\t\t} else if (end < 0) {\n\t\t\trelativeEnd = Math.max(size + end, 0);\n\t\t} else {\n\t\t\trelativeEnd = Math.min(end, size);\n\t\t}\n\t\tconst span = Math.max(relativeEnd - relativeStart, 0);\n\n\t\tconst buffer = this[BUFFER];\n\t\tconst slicedBuffer = buffer.slice(relativeStart, relativeStart + span);\n\t\tconst blob = new Blob([], { type: arguments[2] });\n\t\tblob[BUFFER] = slicedBuffer;\n\t\treturn blob;\n\t}\n}\n\nObject.defineProperties(Blob.prototype, {\n\tsize: { enumerable: true },\n\ttype: { enumerable: true },\n\tslice: { enumerable: true }\n});\n\nObject.defineProperty(Blob.prototype, Symbol.toStringTag, {\n\tvalue: 'Blob',\n\twritable: false,\n\tenumerable: false,\n\tconfigurable: true\n});\n\n/**\n * fetch-error.js\n *\n * FetchError interface for operational errors\n */\n\n/**\n * Create FetchError instance\n *\n * @param String message Error message for human\n * @param String type Error type for machine\n * @param String systemError For Node.js system error\n * @return FetchError\n */\nfunction FetchError(message, type, systemError) {\n Error.call(this, message);\n\n this.message = message;\n this.type = type;\n\n // when err.type is `system`, err.code contains system error code\n if (systemError) {\n this.code = this.errno = systemError.code;\n }\n\n // hide custom error implementation details from end-users\n Error.captureStackTrace(this, this.constructor);\n}\n\nFetchError.prototype = Object.create(Error.prototype);\nFetchError.prototype.constructor = FetchError;\nFetchError.prototype.name = 'FetchError';\n\nlet convert;\ntry {\n\tconvert = require('encoding').convert;\n} catch (e) {}\n\nconst INTERNALS = Symbol('Body internals');\n\n// fix an issue where \"PassThrough\" isn't a named export for node <10\nconst PassThrough = Stream.PassThrough;\n\n/**\n * Body mixin\n *\n * Ref: https://fetch.spec.whatwg.org/#body\n *\n * @param Stream body Readable stream\n * @param Object opts Response options\n * @return Void\n */\nfunction Body(body) {\n\tvar _this = this;\n\n\tvar _ref = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {},\n\t _ref$size = _ref.size;\n\n\tlet size = _ref$size === undefined ? 0 : _ref$size;\n\tvar _ref$timeout = _ref.timeout;\n\tlet timeout = _ref$timeout === undefined ? 0 : _ref$timeout;\n\n\tif (body == null) {\n\t\t// body is undefined or null\n\t\tbody = null;\n\t} else if (isURLSearchParams(body)) {\n\t\t// body is a URLSearchParams\n\t\tbody = Buffer.from(body.toString());\n\t} else if (isBlob(body)) ; else if (Buffer.isBuffer(body)) ; else if (Object.prototype.toString.call(body) === '[object ArrayBuffer]') {\n\t\t// body is ArrayBuffer\n\t\tbody = Buffer.from(body);\n\t} else if (ArrayBuffer.isView(body)) {\n\t\t// body is ArrayBufferView\n\t\tbody = Buffer.from(body.buffer, body.byteOffset, body.byteLength);\n\t} else if (body instanceof Stream) ; else {\n\t\t// none of the above\n\t\t// coerce to string then buffer\n\t\tbody = Buffer.from(String(body));\n\t}\n\tthis[INTERNALS] = {\n\t\tbody,\n\t\tdisturbed: false,\n\t\terror: null\n\t};\n\tthis.size = size;\n\tthis.timeout = timeout;\n\n\tif (body instanceof Stream) {\n\t\tbody.on('error', function (err) {\n\t\t\tconst error = err.name === 'AbortError' ? err : new FetchError(`Invalid response body while trying to fetch ${_this.url}: ${err.message}`, 'system', err);\n\t\t\t_this[INTERNALS].error = error;\n\t\t});\n\t}\n}\n\nBody.prototype = {\n\tget body() {\n\t\treturn this[INTERNALS].body;\n\t},\n\n\tget bodyUsed() {\n\t\treturn this[INTERNALS].disturbed;\n\t},\n\n\t/**\n * Decode response as ArrayBuffer\n *\n * @return Promise\n */\n\tarrayBuffer() {\n\t\treturn consumeBody.call(this).then(function (buf) {\n\t\t\treturn buf.buffer.slice(buf.byteOffset, buf.byteOffset + buf.byteLength);\n\t\t});\n\t},\n\n\t/**\n * Return raw response as Blob\n *\n * @return Promise\n */\n\tblob() {\n\t\tlet ct = this.headers && this.headers.get('content-type') || '';\n\t\treturn consumeBody.call(this).then(function (buf) {\n\t\t\treturn Object.assign(\n\t\t\t// Prevent copying\n\t\t\tnew Blob([], {\n\t\t\t\ttype: ct.toLowerCase()\n\t\t\t}), {\n\t\t\t\t[BUFFER]: buf\n\t\t\t});\n\t\t});\n\t},\n\n\t/**\n * Decode response as json\n *\n * @return Promise\n */\n\tjson() {\n\t\tvar _this2 = this;\n\n\t\treturn consumeBody.call(this).then(function (buffer) {\n\t\t\ttry {\n\t\t\t\treturn JSON.parse(buffer.toString());\n\t\t\t} catch (err) {\n\t\t\t\treturn Body.Promise.reject(new FetchError(`invalid json response body at ${_this2.url} reason: ${err.message}`, 'invalid-json'));\n\t\t\t}\n\t\t});\n\t},\n\n\t/**\n * Decode response as text\n *\n * @return Promise\n */\n\ttext() {\n\t\treturn consumeBody.call(this).then(function (buffer) {\n\t\t\treturn buffer.toString();\n\t\t});\n\t},\n\n\t/**\n * Decode response as buffer (non-spec api)\n *\n * @return Promise\n */\n\tbuffer() {\n\t\treturn consumeBody.call(this);\n\t},\n\n\t/**\n * Decode response as text, while automatically detecting the encoding and\n * trying to decode to UTF-8 (non-spec api)\n *\n * @return Promise\n */\n\ttextConverted() {\n\t\tvar _this3 = this;\n\n\t\treturn consumeBody.call(this).then(function (buffer) {\n\t\t\treturn convertBody(buffer, _this3.headers);\n\t\t});\n\t}\n};\n\n// In browsers, all properties are enumerable.\nObject.defineProperties(Body.prototype, {\n\tbody: { enumerable: true },\n\tbodyUsed: { enumerable: true },\n\tarrayBuffer: { enumerable: true },\n\tblob: { enumerable: true },\n\tjson: { enumerable: true },\n\ttext: { enumerable: true }\n});\n\nBody.mixIn = function (proto) {\n\tfor (const name of Object.getOwnPropertyNames(Body.prototype)) {\n\t\t// istanbul ignore else: future proof\n\t\tif (!(name in proto)) {\n\t\t\tconst desc = Object.getOwnPropertyDescriptor(Body.prototype, name);\n\t\t\tObject.defineProperty(proto, name, desc);\n\t\t}\n\t}\n};\n\n/**\n * Consume and convert an entire Body to a Buffer.\n *\n * Ref: https://fetch.spec.whatwg.org/#concept-body-consume-body\n *\n * @return Promise\n */\nfunction consumeBody() {\n\tvar _this4 = this;\n\n\tif (this[INTERNALS].disturbed) {\n\t\treturn Body.Promise.reject(new TypeError(`body used already for: ${this.url}`));\n\t}\n\n\tthis[INTERNALS].disturbed = true;\n\n\tif (this[INTERNALS].error) {\n\t\treturn Body.Promise.reject(this[INTERNALS].error);\n\t}\n\n\tlet body = this.body;\n\n\t// body is null\n\tif (body === null) {\n\t\treturn Body.Promise.resolve(Buffer.alloc(0));\n\t}\n\n\t// body is blob\n\tif (isBlob(body)) {\n\t\tbody = body.stream();\n\t}\n\n\t// body is buffer\n\tif (Buffer.isBuffer(body)) {\n\t\treturn Body.Promise.resolve(body);\n\t}\n\n\t// istanbul ignore if: should never happen\n\tif (!(body instanceof Stream)) {\n\t\treturn Body.Promise.resolve(Buffer.alloc(0));\n\t}\n\n\t// body is stream\n\t// get ready to actually consume the body\n\tlet accum = [];\n\tlet accumBytes = 0;\n\tlet abort = false;\n\n\treturn new Body.Promise(function (resolve, reject) {\n\t\tlet resTimeout;\n\n\t\t// allow timeout on slow response body\n\t\tif (_this4.timeout) {\n\t\t\tresTimeout = setTimeout(function () {\n\t\t\t\tabort = true;\n\t\t\t\treject(new FetchError(`Response timeout while trying to fetch ${_this4.url} (over ${_this4.timeout}ms)`, 'body-timeout'));\n\t\t\t}, _this4.timeout);\n\t\t}\n\n\t\t// handle stream errors\n\t\tbody.on('error', function (err) {\n\t\t\tif (err.name === 'AbortError') {\n\t\t\t\t// if the request was aborted, reject with this Error\n\t\t\t\tabort = true;\n\t\t\t\treject(err);\n\t\t\t} else {\n\t\t\t\t// other errors, such as incorrect content-encoding\n\t\t\t\treject(new FetchError(`Invalid response body while trying to fetch ${_this4.url}: ${err.message}`, 'system', err));\n\t\t\t}\n\t\t});\n\n\t\tbody.on('data', function (chunk) {\n\t\t\tif (abort || chunk === null) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tif (_this4.size && accumBytes + chunk.length > _this4.size) {\n\t\t\t\tabort = true;\n\t\t\t\treject(new FetchError(`content size at ${_this4.url} over limit: ${_this4.size}`, 'max-size'));\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\taccumBytes += chunk.length;\n\t\t\taccum.push(chunk);\n\t\t});\n\n\t\tbody.on('end', function () {\n\t\t\tif (abort) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tclearTimeout(resTimeout);\n\n\t\t\ttry {\n\t\t\t\tresolve(Buffer.concat(accum, accumBytes));\n\t\t\t} catch (err) {\n\t\t\t\t// handle streams that have accumulated too much data (issue #414)\n\t\t\t\treject(new FetchError(`Could not create Buffer from response body for ${_this4.url}: ${err.message}`, 'system', err));\n\t\t\t}\n\t\t});\n\t});\n}\n\n/**\n * Detect buffer encoding and convert to target encoding\n * ref: http://www.w3.org/TR/2011/WD-html5-20110113/parsing.html#determining-the-character-encoding\n *\n * @param Buffer buffer Incoming buffer\n * @param String encoding Target encoding\n * @return String\n */\nfunction convertBody(buffer, headers) {\n\tif (typeof convert !== 'function') {\n\t\tthrow new Error('The package `encoding` must be installed to use the textConverted() function');\n\t}\n\n\tconst ct = headers.get('content-type');\n\tlet charset = 'utf-8';\n\tlet res, str;\n\n\t// header\n\tif (ct) {\n\t\tres = /charset=([^;]*)/i.exec(ct);\n\t}\n\n\t// no charset in content type, peek at response body for at most 1024 bytes\n\tstr = buffer.slice(0, 1024).toString();\n\n\t// html5\n\tif (!res && str) {\n\t\tres = / 0 && arguments[0] !== undefined ? arguments[0] : undefined;\n\n\t\tthis[MAP] = Object.create(null);\n\n\t\tif (init instanceof Headers) {\n\t\t\tconst rawHeaders = init.raw();\n\t\t\tconst headerNames = Object.keys(rawHeaders);\n\n\t\t\tfor (const headerName of headerNames) {\n\t\t\t\tfor (const value of rawHeaders[headerName]) {\n\t\t\t\t\tthis.append(headerName, value);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\treturn;\n\t\t}\n\n\t\t// We don't worry about converting prop to ByteString here as append()\n\t\t// will handle it.\n\t\tif (init == null) ; else if (typeof init === 'object') {\n\t\t\tconst method = init[Symbol.iterator];\n\t\t\tif (method != null) {\n\t\t\t\tif (typeof method !== 'function') {\n\t\t\t\t\tthrow new TypeError('Header pairs must be iterable');\n\t\t\t\t}\n\n\t\t\t\t// sequence>\n\t\t\t\t// Note: per spec we have to first exhaust the lists then process them\n\t\t\t\tconst pairs = [];\n\t\t\t\tfor (const pair of init) {\n\t\t\t\t\tif (typeof pair !== 'object' || typeof pair[Symbol.iterator] !== 'function') {\n\t\t\t\t\t\tthrow new TypeError('Each header pair must be iterable');\n\t\t\t\t\t}\n\t\t\t\t\tpairs.push(Array.from(pair));\n\t\t\t\t}\n\n\t\t\t\tfor (const pair of pairs) {\n\t\t\t\t\tif (pair.length !== 2) {\n\t\t\t\t\t\tthrow new TypeError('Each header pair must be a name/value tuple');\n\t\t\t\t\t}\n\t\t\t\t\tthis.append(pair[0], pair[1]);\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t// record\n\t\t\t\tfor (const key of Object.keys(init)) {\n\t\t\t\t\tconst value = init[key];\n\t\t\t\t\tthis.append(key, value);\n\t\t\t\t}\n\t\t\t}\n\t\t} else {\n\t\t\tthrow new TypeError('Provided initializer must be an object');\n\t\t}\n\t}\n\n\t/**\n * Return combined header value given name\n *\n * @param String name Header name\n * @return Mixed\n */\n\tget(name) {\n\t\tname = `${name}`;\n\t\tvalidateName(name);\n\t\tconst key = find(this[MAP], name);\n\t\tif (key === undefined) {\n\t\t\treturn null;\n\t\t}\n\n\t\treturn this[MAP][key].join(', ');\n\t}\n\n\t/**\n * Iterate over all headers\n *\n * @param Function callback Executed for each item with parameters (value, name, thisArg)\n * @param Boolean thisArg `this` context for callback function\n * @return Void\n */\n\tforEach(callback) {\n\t\tlet thisArg = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : undefined;\n\n\t\tlet pairs = getHeaders(this);\n\t\tlet i = 0;\n\t\twhile (i < pairs.length) {\n\t\t\tvar _pairs$i = pairs[i];\n\t\t\tconst name = _pairs$i[0],\n\t\t\t value = _pairs$i[1];\n\n\t\t\tcallback.call(thisArg, value, name, this);\n\t\t\tpairs = getHeaders(this);\n\t\t\ti++;\n\t\t}\n\t}\n\n\t/**\n * Overwrite header values given name\n *\n * @param String name Header name\n * @param String value Header value\n * @return Void\n */\n\tset(name, value) {\n\t\tname = `${name}`;\n\t\tvalue = `${value}`;\n\t\tvalidateName(name);\n\t\tvalidateValue(value);\n\t\tconst key = find(this[MAP], name);\n\t\tthis[MAP][key !== undefined ? key : name] = [value];\n\t}\n\n\t/**\n * Append a value onto existing header\n *\n * @param String name Header name\n * @param String value Header value\n * @return Void\n */\n\tappend(name, value) {\n\t\tname = `${name}`;\n\t\tvalue = `${value}`;\n\t\tvalidateName(name);\n\t\tvalidateValue(value);\n\t\tconst key = find(this[MAP], name);\n\t\tif (key !== undefined) {\n\t\t\tthis[MAP][key].push(value);\n\t\t} else {\n\t\t\tthis[MAP][name] = [value];\n\t\t}\n\t}\n\n\t/**\n * Check for header name existence\n *\n * @param String name Header name\n * @return Boolean\n */\n\thas(name) {\n\t\tname = `${name}`;\n\t\tvalidateName(name);\n\t\treturn find(this[MAP], name) !== undefined;\n\t}\n\n\t/**\n * Delete all header values given name\n *\n * @param String name Header name\n * @return Void\n */\n\tdelete(name) {\n\t\tname = `${name}`;\n\t\tvalidateName(name);\n\t\tconst key = find(this[MAP], name);\n\t\tif (key !== undefined) {\n\t\t\tdelete this[MAP][key];\n\t\t}\n\t}\n\n\t/**\n * Return raw headers (non-spec api)\n *\n * @return Object\n */\n\traw() {\n\t\treturn this[MAP];\n\t}\n\n\t/**\n * Get an iterator on keys.\n *\n * @return Iterator\n */\n\tkeys() {\n\t\treturn createHeadersIterator(this, 'key');\n\t}\n\n\t/**\n * Get an iterator on values.\n *\n * @return Iterator\n */\n\tvalues() {\n\t\treturn createHeadersIterator(this, 'value');\n\t}\n\n\t/**\n * Get an iterator on entries.\n *\n * This is the default iterator of the Headers object.\n *\n * @return Iterator\n */\n\t[Symbol.iterator]() {\n\t\treturn createHeadersIterator(this, 'key+value');\n\t}\n}\nHeaders.prototype.entries = Headers.prototype[Symbol.iterator];\n\nObject.defineProperty(Headers.prototype, Symbol.toStringTag, {\n\tvalue: 'Headers',\n\twritable: false,\n\tenumerable: false,\n\tconfigurable: true\n});\n\nObject.defineProperties(Headers.prototype, {\n\tget: { enumerable: true },\n\tforEach: { enumerable: true },\n\tset: { enumerable: true },\n\tappend: { enumerable: true },\n\thas: { enumerable: true },\n\tdelete: { enumerable: true },\n\tkeys: { enumerable: true },\n\tvalues: { enumerable: true },\n\tentries: { enumerable: true }\n});\n\nfunction getHeaders(headers) {\n\tlet kind = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'key+value';\n\n\tconst keys = Object.keys(headers[MAP]).sort();\n\treturn keys.map(kind === 'key' ? function (k) {\n\t\treturn k.toLowerCase();\n\t} : kind === 'value' ? function (k) {\n\t\treturn headers[MAP][k].join(', ');\n\t} : function (k) {\n\t\treturn [k.toLowerCase(), headers[MAP][k].join(', ')];\n\t});\n}\n\nconst INTERNAL = Symbol('internal');\n\nfunction createHeadersIterator(target, kind) {\n\tconst iterator = Object.create(HeadersIteratorPrototype);\n\titerator[INTERNAL] = {\n\t\ttarget,\n\t\tkind,\n\t\tindex: 0\n\t};\n\treturn iterator;\n}\n\nconst HeadersIteratorPrototype = Object.setPrototypeOf({\n\tnext() {\n\t\t// istanbul ignore if\n\t\tif (!this || Object.getPrototypeOf(this) !== HeadersIteratorPrototype) {\n\t\t\tthrow new TypeError('Value of `this` is not a HeadersIterator');\n\t\t}\n\n\t\tvar _INTERNAL = this[INTERNAL];\n\t\tconst target = _INTERNAL.target,\n\t\t kind = _INTERNAL.kind,\n\t\t index = _INTERNAL.index;\n\n\t\tconst values = getHeaders(target, kind);\n\t\tconst len = values.length;\n\t\tif (index >= len) {\n\t\t\treturn {\n\t\t\t\tvalue: undefined,\n\t\t\t\tdone: true\n\t\t\t};\n\t\t}\n\n\t\tthis[INTERNAL].index = index + 1;\n\n\t\treturn {\n\t\t\tvalue: values[index],\n\t\t\tdone: false\n\t\t};\n\t}\n}, Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]())));\n\nObject.defineProperty(HeadersIteratorPrototype, Symbol.toStringTag, {\n\tvalue: 'HeadersIterator',\n\twritable: false,\n\tenumerable: false,\n\tconfigurable: true\n});\n\n/**\n * Export the Headers object in a form that Node.js can consume.\n *\n * @param Headers headers\n * @return Object\n */\nfunction exportNodeCompatibleHeaders(headers) {\n\tconst obj = Object.assign({ __proto__: null }, headers[MAP]);\n\n\t// http.request() only supports string as Host header. This hack makes\n\t// specifying custom Host header possible.\n\tconst hostHeaderKey = find(headers[MAP], 'Host');\n\tif (hostHeaderKey !== undefined) {\n\t\tobj[hostHeaderKey] = obj[hostHeaderKey][0];\n\t}\n\n\treturn obj;\n}\n\n/**\n * Create a Headers object from an object of headers, ignoring those that do\n * not conform to HTTP grammar productions.\n *\n * @param Object obj Object of headers\n * @return Headers\n */\nfunction createHeadersLenient(obj) {\n\tconst headers = new Headers();\n\tfor (const name of Object.keys(obj)) {\n\t\tif (invalidTokenRegex.test(name)) {\n\t\t\tcontinue;\n\t\t}\n\t\tif (Array.isArray(obj[name])) {\n\t\t\tfor (const val of obj[name]) {\n\t\t\t\tif (invalidHeaderCharRegex.test(val)) {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tif (headers[MAP][name] === undefined) {\n\t\t\t\t\theaders[MAP][name] = [val];\n\t\t\t\t} else {\n\t\t\t\t\theaders[MAP][name].push(val);\n\t\t\t\t}\n\t\t\t}\n\t\t} else if (!invalidHeaderCharRegex.test(obj[name])) {\n\t\t\theaders[MAP][name] = [obj[name]];\n\t\t}\n\t}\n\treturn headers;\n}\n\nconst INTERNALS$1 = Symbol('Response internals');\n\n// fix an issue where \"STATUS_CODES\" aren't a named export for node <10\nconst STATUS_CODES = http.STATUS_CODES;\n\n/**\n * Response class\n *\n * @param Stream body Readable stream\n * @param Object opts Response options\n * @return Void\n */\nclass Response {\n\tconstructor() {\n\t\tlet body = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;\n\t\tlet opts = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n\n\t\tBody.call(this, body, opts);\n\n\t\tconst status = opts.status || 200;\n\t\tconst headers = new Headers(opts.headers);\n\n\t\tif (body != null && !headers.has('Content-Type')) {\n\t\t\tconst contentType = extractContentType(body);\n\t\t\tif (contentType) {\n\t\t\t\theaders.append('Content-Type', contentType);\n\t\t\t}\n\t\t}\n\n\t\tthis[INTERNALS$1] = {\n\t\t\turl: opts.url,\n\t\t\tstatus,\n\t\t\tstatusText: opts.statusText || STATUS_CODES[status],\n\t\t\theaders,\n\t\t\tcounter: opts.counter\n\t\t};\n\t}\n\n\tget url() {\n\t\treturn this[INTERNALS$1].url || '';\n\t}\n\n\tget status() {\n\t\treturn this[INTERNALS$1].status;\n\t}\n\n\t/**\n * Convenience property representing if the request ended normally\n */\n\tget ok() {\n\t\treturn this[INTERNALS$1].status >= 200 && this[INTERNALS$1].status < 300;\n\t}\n\n\tget redirected() {\n\t\treturn this[INTERNALS$1].counter > 0;\n\t}\n\n\tget statusText() {\n\t\treturn this[INTERNALS$1].statusText;\n\t}\n\n\tget headers() {\n\t\treturn this[INTERNALS$1].headers;\n\t}\n\n\t/**\n * Clone this response\n *\n * @return Response\n */\n\tclone() {\n\t\treturn new Response(clone(this), {\n\t\t\turl: this.url,\n\t\t\tstatus: this.status,\n\t\t\tstatusText: this.statusText,\n\t\t\theaders: this.headers,\n\t\t\tok: this.ok,\n\t\t\tredirected: this.redirected\n\t\t});\n\t}\n}\n\nBody.mixIn(Response.prototype);\n\nObject.defineProperties(Response.prototype, {\n\turl: { enumerable: true },\n\tstatus: { enumerable: true },\n\tok: { enumerable: true },\n\tredirected: { enumerable: true },\n\tstatusText: { enumerable: true },\n\theaders: { enumerable: true },\n\tclone: { enumerable: true }\n});\n\nObject.defineProperty(Response.prototype, Symbol.toStringTag, {\n\tvalue: 'Response',\n\twritable: false,\n\tenumerable: false,\n\tconfigurable: true\n});\n\nconst INTERNALS$2 = Symbol('Request internals');\nconst URL = Url.URL || whatwgUrl.URL;\n\n// fix an issue where \"format\", \"parse\" aren't a named export for node <10\nconst parse_url = Url.parse;\nconst format_url = Url.format;\n\n/**\n * Wrapper around `new URL` to handle arbitrary URLs\n *\n * @param {string} urlStr\n * @return {void}\n */\nfunction parseURL(urlStr) {\n\t/*\n \tCheck whether the URL is absolute or not\n \t\tScheme: https://tools.ietf.org/html/rfc3986#section-3.1\n \tAbsolute URL: https://tools.ietf.org/html/rfc3986#section-4.3\n */\n\tif (/^[a-zA-Z][a-zA-Z\\d+\\-.]*:/.exec(urlStr)) {\n\t\turlStr = new URL(urlStr).toString();\n\t}\n\n\t// Fallback to old implementation for arbitrary URLs\n\treturn parse_url(urlStr);\n}\n\nconst streamDestructionSupported = 'destroy' in Stream.Readable.prototype;\n\n/**\n * Check if a value is an instance of Request.\n *\n * @param Mixed input\n * @return Boolean\n */\nfunction isRequest(input) {\n\treturn typeof input === 'object' && typeof input[INTERNALS$2] === 'object';\n}\n\nfunction isAbortSignal(signal) {\n\tconst proto = signal && typeof signal === 'object' && Object.getPrototypeOf(signal);\n\treturn !!(proto && proto.constructor.name === 'AbortSignal');\n}\n\n/**\n * Request class\n *\n * @param Mixed input Url or Request instance\n * @param Object init Custom options\n * @return Void\n */\nclass Request {\n\tconstructor(input) {\n\t\tlet init = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n\n\t\tlet parsedURL;\n\n\t\t// normalize input\n\t\tif (!isRequest(input)) {\n\t\t\tif (input && input.href) {\n\t\t\t\t// in order to support Node.js' Url objects; though WHATWG's URL objects\n\t\t\t\t// will fall into this branch also (since their `toString()` will return\n\t\t\t\t// `href` property anyway)\n\t\t\t\tparsedURL = parseURL(input.href);\n\t\t\t} else {\n\t\t\t\t// coerce input to a string before attempting to parse\n\t\t\t\tparsedURL = parseURL(`${input}`);\n\t\t\t}\n\t\t\tinput = {};\n\t\t} else {\n\t\t\tparsedURL = parseURL(input.url);\n\t\t}\n\n\t\tlet method = init.method || input.method || 'GET';\n\t\tmethod = method.toUpperCase();\n\n\t\tif ((init.body != null || isRequest(input) && input.body !== null) && (method === 'GET' || method === 'HEAD')) {\n\t\t\tthrow new TypeError('Request with GET/HEAD method cannot have body');\n\t\t}\n\n\t\tlet inputBody = init.body != null ? init.body : isRequest(input) && input.body !== null ? clone(input) : null;\n\n\t\tBody.call(this, inputBody, {\n\t\t\ttimeout: init.timeout || input.timeout || 0,\n\t\t\tsize: init.size || input.size || 0\n\t\t});\n\n\t\tconst headers = new Headers(init.headers || input.headers || {});\n\n\t\tif (inputBody != null && !headers.has('Content-Type')) {\n\t\t\tconst contentType = extractContentType(inputBody);\n\t\t\tif (contentType) {\n\t\t\t\theaders.append('Content-Type', contentType);\n\t\t\t}\n\t\t}\n\n\t\tlet signal = isRequest(input) ? input.signal : null;\n\t\tif ('signal' in init) signal = init.signal;\n\n\t\tif (signal != null && !isAbortSignal(signal)) {\n\t\t\tthrow new TypeError('Expected signal to be an instanceof AbortSignal');\n\t\t}\n\n\t\tthis[INTERNALS$2] = {\n\t\t\tmethod,\n\t\t\tredirect: init.redirect || input.redirect || 'follow',\n\t\t\theaders,\n\t\t\tparsedURL,\n\t\t\tsignal\n\t\t};\n\n\t\t// node-fetch-only options\n\t\tthis.follow = init.follow !== undefined ? init.follow : input.follow !== undefined ? input.follow : 20;\n\t\tthis.compress = init.compress !== undefined ? init.compress : input.compress !== undefined ? input.compress : true;\n\t\tthis.counter = init.counter || input.counter || 0;\n\t\tthis.agent = init.agent || input.agent;\n\t}\n\n\tget method() {\n\t\treturn this[INTERNALS$2].method;\n\t}\n\n\tget url() {\n\t\treturn format_url(this[INTERNALS$2].parsedURL);\n\t}\n\n\tget headers() {\n\t\treturn this[INTERNALS$2].headers;\n\t}\n\n\tget redirect() {\n\t\treturn this[INTERNALS$2].redirect;\n\t}\n\n\tget signal() {\n\t\treturn this[INTERNALS$2].signal;\n\t}\n\n\t/**\n * Clone this request\n *\n * @return Request\n */\n\tclone() {\n\t\treturn new Request(this);\n\t}\n}\n\nBody.mixIn(Request.prototype);\n\nObject.defineProperty(Request.prototype, Symbol.toStringTag, {\n\tvalue: 'Request',\n\twritable: false,\n\tenumerable: false,\n\tconfigurable: true\n});\n\nObject.defineProperties(Request.prototype, {\n\tmethod: { enumerable: true },\n\turl: { enumerable: true },\n\theaders: { enumerable: true },\n\tredirect: { enumerable: true },\n\tclone: { enumerable: true },\n\tsignal: { enumerable: true }\n});\n\n/**\n * Convert a Request to Node.js http request options.\n *\n * @param Request A Request instance\n * @return Object The options object to be passed to http.request\n */\nfunction getNodeRequestOptions(request) {\n\tconst parsedURL = request[INTERNALS$2].parsedURL;\n\tconst headers = new Headers(request[INTERNALS$2].headers);\n\n\t// fetch step 1.3\n\tif (!headers.has('Accept')) {\n\t\theaders.set('Accept', '*/*');\n\t}\n\n\t// Basic fetch\n\tif (!parsedURL.protocol || !parsedURL.hostname) {\n\t\tthrow new TypeError('Only absolute URLs are supported');\n\t}\n\n\tif (!/^https?:$/.test(parsedURL.protocol)) {\n\t\tthrow new TypeError('Only HTTP(S) protocols are supported');\n\t}\n\n\tif (request.signal && request.body instanceof Stream.Readable && !streamDestructionSupported) {\n\t\tthrow new Error('Cancellation of streamed requests with AbortSignal is not supported in node < 8');\n\t}\n\n\t// HTTP-network-or-cache fetch steps 2.4-2.7\n\tlet contentLengthValue = null;\n\tif (request.body == null && /^(POST|PUT)$/i.test(request.method)) {\n\t\tcontentLengthValue = '0';\n\t}\n\tif (request.body != null) {\n\t\tconst totalBytes = getTotalBytes(request);\n\t\tif (typeof totalBytes === 'number') {\n\t\t\tcontentLengthValue = String(totalBytes);\n\t\t}\n\t}\n\tif (contentLengthValue) {\n\t\theaders.set('Content-Length', contentLengthValue);\n\t}\n\n\t// HTTP-network-or-cache fetch step 2.11\n\tif (!headers.has('User-Agent')) {\n\t\theaders.set('User-Agent', 'node-fetch/1.0 (+https://github.com/bitinn/node-fetch)');\n\t}\n\n\t// HTTP-network-or-cache fetch step 2.15\n\tif (request.compress && !headers.has('Accept-Encoding')) {\n\t\theaders.set('Accept-Encoding', 'gzip,deflate');\n\t}\n\n\tlet agent = request.agent;\n\tif (typeof agent === 'function') {\n\t\tagent = agent(parsedURL);\n\t}\n\n\tif (!headers.has('Connection') && !agent) {\n\t\theaders.set('Connection', 'close');\n\t}\n\n\t// HTTP-network fetch step 4.2\n\t// chunked encoding is handled by Node.js\n\n\treturn Object.assign({}, parsedURL, {\n\t\tmethod: request.method,\n\t\theaders: exportNodeCompatibleHeaders(headers),\n\t\tagent\n\t});\n}\n\n/**\n * abort-error.js\n *\n * AbortError interface for cancelled requests\n */\n\n/**\n * Create AbortError instance\n *\n * @param String message Error message for human\n * @return AbortError\n */\nfunction AbortError(message) {\n Error.call(this, message);\n\n this.type = 'aborted';\n this.message = message;\n\n // hide custom error implementation details from end-users\n Error.captureStackTrace(this, this.constructor);\n}\n\nAbortError.prototype = Object.create(Error.prototype);\nAbortError.prototype.constructor = AbortError;\nAbortError.prototype.name = 'AbortError';\n\nconst URL$1 = Url.URL || whatwgUrl.URL;\n\n// fix an issue where \"PassThrough\", \"resolve\" aren't a named export for node <10\nconst PassThrough$1 = Stream.PassThrough;\n\nconst isDomainOrSubdomain = function isDomainOrSubdomain(destination, original) {\n\tconst orig = new URL$1(original).hostname;\n\tconst dest = new URL$1(destination).hostname;\n\n\treturn orig === dest || orig[orig.length - dest.length - 1] === '.' && orig.endsWith(dest);\n};\n\n/**\n * isSameProtocol reports whether the two provided URLs use the same protocol.\n *\n * Both domains must already be in canonical form.\n * @param {string|URL} original\n * @param {string|URL} destination\n */\nconst isSameProtocol = function isSameProtocol(destination, original) {\n\tconst orig = new URL$1(original).protocol;\n\tconst dest = new URL$1(destination).protocol;\n\n\treturn orig === dest;\n};\n\n/**\n * Fetch function\n *\n * @param Mixed url Absolute url or Request instance\n * @param Object opts Fetch options\n * @return Promise\n */\nfunction fetch(url, opts) {\n\n\t// allow custom promise\n\tif (!fetch.Promise) {\n\t\tthrow new Error('native promise missing, set fetch.Promise to your favorite alternative');\n\t}\n\n\tBody.Promise = fetch.Promise;\n\n\t// wrap http.request into fetch\n\treturn new fetch.Promise(function (resolve, reject) {\n\t\t// build request object\n\t\tconst request = new Request(url, opts);\n\t\tconst options = getNodeRequestOptions(request);\n\n\t\tconst send = (options.protocol === 'https:' ? https : http).request;\n\t\tconst signal = request.signal;\n\n\t\tlet response = null;\n\n\t\tconst abort = function abort() {\n\t\t\tlet error = new AbortError('The user aborted a request.');\n\t\t\treject(error);\n\t\t\tif (request.body && request.body instanceof Stream.Readable) {\n\t\t\t\tdestroyStream(request.body, error);\n\t\t\t}\n\t\t\tif (!response || !response.body) return;\n\t\t\tresponse.body.emit('error', error);\n\t\t};\n\n\t\tif (signal && signal.aborted) {\n\t\t\tabort();\n\t\t\treturn;\n\t\t}\n\n\t\tconst abortAndFinalize = function abortAndFinalize() {\n\t\t\tabort();\n\t\t\tfinalize();\n\t\t};\n\n\t\t// send request\n\t\tconst req = send(options);\n\t\tlet reqTimeout;\n\n\t\tif (signal) {\n\t\t\tsignal.addEventListener('abort', abortAndFinalize);\n\t\t}\n\n\t\tfunction finalize() {\n\t\t\treq.abort();\n\t\t\tif (signal) signal.removeEventListener('abort', abortAndFinalize);\n\t\t\tclearTimeout(reqTimeout);\n\t\t}\n\n\t\tif (request.timeout) {\n\t\t\treq.once('socket', function (socket) {\n\t\t\t\treqTimeout = setTimeout(function () {\n\t\t\t\t\treject(new FetchError(`network timeout at: ${request.url}`, 'request-timeout'));\n\t\t\t\t\tfinalize();\n\t\t\t\t}, request.timeout);\n\t\t\t});\n\t\t}\n\n\t\treq.on('error', function (err) {\n\t\t\treject(new FetchError(`request to ${request.url} failed, reason: ${err.message}`, 'system', err));\n\n\t\t\tif (response && response.body) {\n\t\t\t\tdestroyStream(response.body, err);\n\t\t\t}\n\n\t\t\tfinalize();\n\t\t});\n\n\t\tfixResponseChunkedTransferBadEnding(req, function (err) {\n\t\t\tif (signal && signal.aborted) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tif (response && response.body) {\n\t\t\t\tdestroyStream(response.body, err);\n\t\t\t}\n\t\t});\n\n\t\t/* c8 ignore next 18 */\n\t\tif (parseInt(process.version.substring(1)) < 14) {\n\t\t\t// Before Node.js 14, pipeline() does not fully support async iterators and does not always\n\t\t\t// properly handle when the socket close/end events are out of order.\n\t\t\treq.on('socket', function (s) {\n\t\t\t\ts.addListener('close', function (hadError) {\n\t\t\t\t\t// if a data listener is still present we didn't end cleanly\n\t\t\t\t\tconst hasDataListener = s.listenerCount('data') > 0;\n\n\t\t\t\t\t// if end happened before close but the socket didn't emit an error, do it now\n\t\t\t\t\tif (response && hasDataListener && !hadError && !(signal && signal.aborted)) {\n\t\t\t\t\t\tconst err = new Error('Premature close');\n\t\t\t\t\t\terr.code = 'ERR_STREAM_PREMATURE_CLOSE';\n\t\t\t\t\t\tresponse.body.emit('error', err);\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t});\n\t\t}\n\n\t\treq.on('response', function (res) {\n\t\t\tclearTimeout(reqTimeout);\n\n\t\t\tconst headers = createHeadersLenient(res.headers);\n\n\t\t\t// HTTP fetch step 5\n\t\t\tif (fetch.isRedirect(res.statusCode)) {\n\t\t\t\t// HTTP fetch step 5.2\n\t\t\t\tconst location = headers.get('Location');\n\n\t\t\t\t// HTTP fetch step 5.3\n\t\t\t\tlet locationURL = null;\n\t\t\t\ttry {\n\t\t\t\t\tlocationURL = location === null ? null : new URL$1(location, request.url).toString();\n\t\t\t\t} catch (err) {\n\t\t\t\t\t// error here can only be invalid URL in Location: header\n\t\t\t\t\t// do not throw when options.redirect == manual\n\t\t\t\t\t// let the user extract the errorneous redirect URL\n\t\t\t\t\tif (request.redirect !== 'manual') {\n\t\t\t\t\t\treject(new FetchError(`uri requested responds with an invalid redirect URL: ${location}`, 'invalid-redirect'));\n\t\t\t\t\t\tfinalize();\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// HTTP fetch step 5.5\n\t\t\t\tswitch (request.redirect) {\n\t\t\t\t\tcase 'error':\n\t\t\t\t\t\treject(new FetchError(`uri requested responds with a redirect, redirect mode is set to error: ${request.url}`, 'no-redirect'));\n\t\t\t\t\t\tfinalize();\n\t\t\t\t\t\treturn;\n\t\t\t\t\tcase 'manual':\n\t\t\t\t\t\t// node-fetch-specific step: make manual redirect a bit easier to use by setting the Location header value to the resolved URL.\n\t\t\t\t\t\tif (locationURL !== null) {\n\t\t\t\t\t\t\t// handle corrupted header\n\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\theaders.set('Location', locationURL);\n\t\t\t\t\t\t\t} catch (err) {\n\t\t\t\t\t\t\t\t// istanbul ignore next: nodejs server prevent invalid response headers, we can't test this through normal request\n\t\t\t\t\t\t\t\treject(err);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 'follow':\n\t\t\t\t\t\t// HTTP-redirect fetch step 2\n\t\t\t\t\t\tif (locationURL === null) {\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t// HTTP-redirect fetch step 5\n\t\t\t\t\t\tif (request.counter >= request.follow) {\n\t\t\t\t\t\t\treject(new FetchError(`maximum redirect reached at: ${request.url}`, 'max-redirect'));\n\t\t\t\t\t\t\tfinalize();\n\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t// HTTP-redirect fetch step 6 (counter increment)\n\t\t\t\t\t\t// Create a new Request object.\n\t\t\t\t\t\tconst requestOpts = {\n\t\t\t\t\t\t\theaders: new Headers(request.headers),\n\t\t\t\t\t\t\tfollow: request.follow,\n\t\t\t\t\t\t\tcounter: request.counter + 1,\n\t\t\t\t\t\t\tagent: request.agent,\n\t\t\t\t\t\t\tcompress: request.compress,\n\t\t\t\t\t\t\tmethod: request.method,\n\t\t\t\t\t\t\tbody: request.body,\n\t\t\t\t\t\t\tsignal: request.signal,\n\t\t\t\t\t\t\ttimeout: request.timeout,\n\t\t\t\t\t\t\tsize: request.size\n\t\t\t\t\t\t};\n\n\t\t\t\t\t\tif (!isDomainOrSubdomain(request.url, locationURL) || !isSameProtocol(request.url, locationURL)) {\n\t\t\t\t\t\t\tfor (const name of ['authorization', 'www-authenticate', 'cookie', 'cookie2']) {\n\t\t\t\t\t\t\t\trequestOpts.headers.delete(name);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t// HTTP-redirect fetch step 9\n\t\t\t\t\t\tif (res.statusCode !== 303 && request.body && getTotalBytes(request) === null) {\n\t\t\t\t\t\t\treject(new FetchError('Cannot follow redirect with body being a readable stream', 'unsupported-redirect'));\n\t\t\t\t\t\t\tfinalize();\n\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t// HTTP-redirect fetch step 11\n\t\t\t\t\t\tif (res.statusCode === 303 || (res.statusCode === 301 || res.statusCode === 302) && request.method === 'POST') {\n\t\t\t\t\t\t\trequestOpts.method = 'GET';\n\t\t\t\t\t\t\trequestOpts.body = undefined;\n\t\t\t\t\t\t\trequestOpts.headers.delete('content-length');\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t// HTTP-redirect fetch step 15\n\t\t\t\t\t\tresolve(fetch(new Request(locationURL, requestOpts)));\n\t\t\t\t\t\tfinalize();\n\t\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// prepare response\n\t\t\tres.once('end', function () {\n\t\t\t\tif (signal) signal.removeEventListener('abort', abortAndFinalize);\n\t\t\t});\n\t\t\tlet body = res.pipe(new PassThrough$1());\n\n\t\t\tconst response_options = {\n\t\t\t\turl: request.url,\n\t\t\t\tstatus: res.statusCode,\n\t\t\t\tstatusText: res.statusMessage,\n\t\t\t\theaders: headers,\n\t\t\t\tsize: request.size,\n\t\t\t\ttimeout: request.timeout,\n\t\t\t\tcounter: request.counter\n\t\t\t};\n\n\t\t\t// HTTP-network fetch step 12.1.1.3\n\t\t\tconst codings = headers.get('Content-Encoding');\n\n\t\t\t// HTTP-network fetch step 12.1.1.4: handle content codings\n\n\t\t\t// in following scenarios we ignore compression support\n\t\t\t// 1. compression support is disabled\n\t\t\t// 2. HEAD request\n\t\t\t// 3. no Content-Encoding header\n\t\t\t// 4. no content response (204)\n\t\t\t// 5. content not modified response (304)\n\t\t\tif (!request.compress || request.method === 'HEAD' || codings === null || res.statusCode === 204 || res.statusCode === 304) {\n\t\t\t\tresponse = new Response(body, response_options);\n\t\t\t\tresolve(response);\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\t// For Node v6+\n\t\t\t// Be less strict when decoding compressed responses, since sometimes\n\t\t\t// servers send slightly invalid responses that are still accepted\n\t\t\t// by common browsers.\n\t\t\t// Always using Z_SYNC_FLUSH is what cURL does.\n\t\t\tconst zlibOptions = {\n\t\t\t\tflush: zlib.Z_SYNC_FLUSH,\n\t\t\t\tfinishFlush: zlib.Z_SYNC_FLUSH\n\t\t\t};\n\n\t\t\t// for gzip\n\t\t\tif (codings == 'gzip' || codings == 'x-gzip') {\n\t\t\t\tbody = body.pipe(zlib.createGunzip(zlibOptions));\n\t\t\t\tresponse = new Response(body, response_options);\n\t\t\t\tresolve(response);\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\t// for deflate\n\t\t\tif (codings == 'deflate' || codings == 'x-deflate') {\n\t\t\t\t// handle the infamous raw deflate response from old servers\n\t\t\t\t// a hack for old IIS and Apache servers\n\t\t\t\tconst raw = res.pipe(new PassThrough$1());\n\t\t\t\traw.once('data', function (chunk) {\n\t\t\t\t\t// see http://stackoverflow.com/questions/37519828\n\t\t\t\t\tif ((chunk[0] & 0x0F) === 0x08) {\n\t\t\t\t\t\tbody = body.pipe(zlib.createInflate());\n\t\t\t\t\t} else {\n\t\t\t\t\t\tbody = body.pipe(zlib.createInflateRaw());\n\t\t\t\t\t}\n\t\t\t\t\tresponse = new Response(body, response_options);\n\t\t\t\t\tresolve(response);\n\t\t\t\t});\n\t\t\t\traw.on('end', function () {\n\t\t\t\t\t// some old IIS servers return zero-length OK deflate responses, so 'data' is never emitted.\n\t\t\t\t\tif (!response) {\n\t\t\t\t\t\tresponse = new Response(body, response_options);\n\t\t\t\t\t\tresolve(response);\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\t// for br\n\t\t\tif (codings == 'br' && typeof zlib.createBrotliDecompress === 'function') {\n\t\t\t\tbody = body.pipe(zlib.createBrotliDecompress());\n\t\t\t\tresponse = new Response(body, response_options);\n\t\t\t\tresolve(response);\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\t// otherwise, use response as-is\n\t\t\tresponse = new Response(body, response_options);\n\t\t\tresolve(response);\n\t\t});\n\n\t\twriteToStream(req, request);\n\t});\n}\nfunction fixResponseChunkedTransferBadEnding(request, errorCallback) {\n\tlet socket;\n\n\trequest.on('socket', function (s) {\n\t\tsocket = s;\n\t});\n\n\trequest.on('response', function (response) {\n\t\tconst headers = response.headers;\n\n\t\tif (headers['transfer-encoding'] === 'chunked' && !headers['content-length']) {\n\t\t\tresponse.once('close', function (hadError) {\n\t\t\t\t// if a data listener is still present we didn't end cleanly\n\t\t\t\tconst hasDataListener = socket.listenerCount('data') > 0;\n\n\t\t\t\tif (hasDataListener && !hadError) {\n\t\t\t\t\tconst err = new Error('Premature close');\n\t\t\t\t\terr.code = 'ERR_STREAM_PREMATURE_CLOSE';\n\t\t\t\t\terrorCallback(err);\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\t});\n}\n\nfunction destroyStream(stream, err) {\n\tif (stream.destroy) {\n\t\tstream.destroy(err);\n\t} else {\n\t\t// node < 8\n\t\tstream.emit('error', err);\n\t\tstream.end();\n\t}\n}\n\n/**\n * Redirect code matching\n *\n * @param Number code Status code\n * @return Boolean\n */\nfetch.isRedirect = function (code) {\n\treturn code === 301 || code === 302 || code === 303 || code === 307 || code === 308;\n};\n\n// expose Promise\nfetch.Promise = global.Promise;\n\nmodule.exports = exports = fetch;\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.default = exports;\nexports.Headers = Headers;\nexports.Request = Request;\nexports.Response = Response;\nexports.FetchError = FetchError;\n","/*!\n * normalize-path \n *\n * Copyright (c) 2014-2018, Jon Schlinkert.\n * Released under the MIT License.\n */\n\nmodule.exports = function(path, stripTrailing) {\n if (typeof path !== 'string') {\n throw new TypeError('expected path to be a string');\n }\n\n if (path === '\\\\' || path === '/') return '/';\n\n var len = path.length;\n if (len <= 1) return path;\n\n // ensure that win32 namespaces has two leading slashes, so that the path is\n // handled properly by the win32 version of path.parse() after being normalized\n // https://msdn.microsoft.com/library/windows/desktop/aa365247(v=vs.85).aspx#namespaces\n var prefix = '';\n if (len > 4 && path[3] === '\\\\') {\n var ch = path[2];\n if ((ch === '?' || ch === '.') && path.slice(0, 2) === '\\\\\\\\') {\n path = path.slice(2);\n prefix = '//';\n }\n }\n\n var segs = path.split(/[/\\\\]+/);\n if (stripTrailing !== false && segs[segs.length - 1] === '') {\n segs.pop();\n }\n return prefix + segs.join('/');\n};\n","var wrappy = require('wrappy')\nmodule.exports = wrappy(once)\nmodule.exports.strict = wrappy(onceStrict)\n\nonce.proto = once(function () {\n Object.defineProperty(Function.prototype, 'once', {\n value: function () {\n return once(this)\n },\n configurable: true\n })\n\n Object.defineProperty(Function.prototype, 'onceStrict', {\n value: function () {\n return onceStrict(this)\n },\n configurable: true\n })\n})\n\nfunction once (fn) {\n var f = function () {\n if (f.called) return f.value\n f.called = true\n return f.value = fn.apply(this, arguments)\n }\n f.called = false\n return f\n}\n\nfunction onceStrict (fn) {\n var f = function () {\n if (f.called)\n throw new Error(f.onceError)\n f.called = true\n return f.value = fn.apply(this, arguments)\n }\n var name = fn.name || 'Function wrapped with `once`'\n f.onceError = name + \" shouldn't be called more than once\"\n f.called = false\n return f\n}\n","'use strict';\n\nif (typeof process === 'undefined' ||\n !process.version ||\n process.version.indexOf('v0.') === 0 ||\n process.version.indexOf('v1.') === 0 && process.version.indexOf('v1.8.') !== 0) {\n module.exports = { nextTick: nextTick };\n} else {\n module.exports = process\n}\n\nfunction nextTick(fn, arg1, arg2, arg3) {\n if (typeof fn !== 'function') {\n throw new TypeError('\"callback\" argument must be a function');\n }\n var len = arguments.length;\n var args, i;\n switch (len) {\n case 0:\n case 1:\n return process.nextTick(fn);\n case 2:\n return process.nextTick(function afterTickOne() {\n fn.call(null, arg1);\n });\n case 3:\n return process.nextTick(function afterTickTwo() {\n fn.call(null, arg1, arg2);\n });\n case 4:\n return process.nextTick(function afterTickThree() {\n fn.call(null, arg1, arg2, arg3);\n });\n default:\n args = new Array(len - 1);\n i = 0;\n while (i < args.length) {\n args[i++] = arguments[i];\n }\n return process.nextTick(function afterTick() {\n fn.apply(null, args);\n });\n }\n}\n\n","// for now just expose the builtin process global from node.js\nmodule.exports = global.process;\n","module.exports = (typeof process !== 'undefined' && typeof process.nextTick === 'function')\n ? process.nextTick.bind(process)\n : require('./queue-microtask')\n","module.exports = typeof queueMicrotask === 'function' ? queueMicrotask : (fn) => Promise.resolve().then(fn)\n","'use strict'\n\nconst { SymbolDispose } = require('../../ours/primordials')\nconst { AbortError, codes } = require('../../ours/errors')\nconst { isNodeStream, isWebStream, kControllerErrorFunction } = require('./utils')\nconst eos = require('./end-of-stream')\nconst { ERR_INVALID_ARG_TYPE } = codes\nlet addAbortListener\n\n// This method is inlined here for readable-stream\n// It also does not allow for signal to not exist on the stream\n// https://github.com/nodejs/node/pull/36061#discussion_r533718029\nconst validateAbortSignal = (signal, name) => {\n if (typeof signal !== 'object' || !('aborted' in signal)) {\n throw new ERR_INVALID_ARG_TYPE(name, 'AbortSignal', signal)\n }\n}\nmodule.exports.addAbortSignal = function addAbortSignal(signal, stream) {\n validateAbortSignal(signal, 'signal')\n if (!isNodeStream(stream) && !isWebStream(stream)) {\n throw new ERR_INVALID_ARG_TYPE('stream', ['ReadableStream', 'WritableStream', 'Stream'], stream)\n }\n return module.exports.addAbortSignalNoValidate(signal, stream)\n}\nmodule.exports.addAbortSignalNoValidate = function (signal, stream) {\n if (typeof signal !== 'object' || !('aborted' in signal)) {\n return stream\n }\n const onAbort = isNodeStream(stream)\n ? () => {\n stream.destroy(\n new AbortError(undefined, {\n cause: signal.reason\n })\n )\n }\n : () => {\n stream[kControllerErrorFunction](\n new AbortError(undefined, {\n cause: signal.reason\n })\n )\n }\n if (signal.aborted) {\n onAbort()\n } else {\n addAbortListener = addAbortListener || require('../../ours/util').addAbortListener\n const disposable = addAbortListener(signal, onAbort)\n eos(stream, disposable[SymbolDispose])\n }\n return stream\n}\n","'use strict'\n\nconst { StringPrototypeSlice, SymbolIterator, TypedArrayPrototypeSet, Uint8Array } = require('../../ours/primordials')\nconst { Buffer } = require('buffer')\nconst { inspect } = require('../../ours/util')\nmodule.exports = class BufferList {\n constructor() {\n this.head = null\n this.tail = null\n this.length = 0\n }\n push(v) {\n const entry = {\n data: v,\n next: null\n }\n if (this.length > 0) this.tail.next = entry\n else this.head = entry\n this.tail = entry\n ++this.length\n }\n unshift(v) {\n const entry = {\n data: v,\n next: this.head\n }\n if (this.length === 0) this.tail = entry\n this.head = entry\n ++this.length\n }\n shift() {\n if (this.length === 0) return\n const ret = this.head.data\n if (this.length === 1) this.head = this.tail = null\n else this.head = this.head.next\n --this.length\n return ret\n }\n clear() {\n this.head = this.tail = null\n this.length = 0\n }\n join(s) {\n if (this.length === 0) return ''\n let p = this.head\n let ret = '' + p.data\n while ((p = p.next) !== null) ret += s + p.data\n return ret\n }\n concat(n) {\n if (this.length === 0) return Buffer.alloc(0)\n const ret = Buffer.allocUnsafe(n >>> 0)\n let p = this.head\n let i = 0\n while (p) {\n TypedArrayPrototypeSet(ret, p.data, i)\n i += p.data.length\n p = p.next\n }\n return ret\n }\n\n // Consumes a specified amount of bytes or characters from the buffered data.\n consume(n, hasStrings) {\n const data = this.head.data\n if (n < data.length) {\n // `slice` is the same for buffers and strings.\n const slice = data.slice(0, n)\n this.head.data = data.slice(n)\n return slice\n }\n if (n === data.length) {\n // First chunk is a perfect match.\n return this.shift()\n }\n // Result spans more than one buffer.\n return hasStrings ? this._getString(n) : this._getBuffer(n)\n }\n first() {\n return this.head.data\n }\n *[SymbolIterator]() {\n for (let p = this.head; p; p = p.next) {\n yield p.data\n }\n }\n\n // Consumes a specified amount of characters from the buffered data.\n _getString(n) {\n let ret = ''\n let p = this.head\n let c = 0\n do {\n const str = p.data\n if (n > str.length) {\n ret += str\n n -= str.length\n } else {\n if (n === str.length) {\n ret += str\n ++c\n if (p.next) this.head = p.next\n else this.head = this.tail = null\n } else {\n ret += StringPrototypeSlice(str, 0, n)\n this.head = p\n p.data = StringPrototypeSlice(str, n)\n }\n break\n }\n ++c\n } while ((p = p.next) !== null)\n this.length -= c\n return ret\n }\n\n // Consumes a specified amount of bytes from the buffered data.\n _getBuffer(n) {\n const ret = Buffer.allocUnsafe(n)\n const retLen = n\n let p = this.head\n let c = 0\n do {\n const buf = p.data\n if (n > buf.length) {\n TypedArrayPrototypeSet(ret, buf, retLen - n)\n n -= buf.length\n } else {\n if (n === buf.length) {\n TypedArrayPrototypeSet(ret, buf, retLen - n)\n ++c\n if (p.next) this.head = p.next\n else this.head = this.tail = null\n } else {\n TypedArrayPrototypeSet(ret, new Uint8Array(buf.buffer, buf.byteOffset, n), retLen - n)\n this.head = p\n p.data = buf.slice(n)\n }\n break\n }\n ++c\n } while ((p = p.next) !== null)\n this.length -= c\n return ret\n }\n\n // Make sure the linked list only shows the minimal necessary information.\n [Symbol.for('nodejs.util.inspect.custom')](_, options) {\n return inspect(this, {\n ...options,\n // Only inspect one level.\n depth: 0,\n // It should not recurse.\n customInspect: false\n })\n }\n}\n","'use strict'\n\nconst { pipeline } = require('./pipeline')\nconst Duplex = require('./duplex')\nconst { destroyer } = require('./destroy')\nconst {\n isNodeStream,\n isReadable,\n isWritable,\n isWebStream,\n isTransformStream,\n isWritableStream,\n isReadableStream\n} = require('./utils')\nconst {\n AbortError,\n codes: { ERR_INVALID_ARG_VALUE, ERR_MISSING_ARGS }\n} = require('../../ours/errors')\nconst eos = require('./end-of-stream')\nmodule.exports = function compose(...streams) {\n if (streams.length === 0) {\n throw new ERR_MISSING_ARGS('streams')\n }\n if (streams.length === 1) {\n return Duplex.from(streams[0])\n }\n const orgStreams = [...streams]\n if (typeof streams[0] === 'function') {\n streams[0] = Duplex.from(streams[0])\n }\n if (typeof streams[streams.length - 1] === 'function') {\n const idx = streams.length - 1\n streams[idx] = Duplex.from(streams[idx])\n }\n for (let n = 0; n < streams.length; ++n) {\n if (!isNodeStream(streams[n]) && !isWebStream(streams[n])) {\n // TODO(ronag): Add checks for non streams.\n continue\n }\n if (\n n < streams.length - 1 &&\n !(isReadable(streams[n]) || isReadableStream(streams[n]) || isTransformStream(streams[n]))\n ) {\n throw new ERR_INVALID_ARG_VALUE(`streams[${n}]`, orgStreams[n], 'must be readable')\n }\n if (n > 0 && !(isWritable(streams[n]) || isWritableStream(streams[n]) || isTransformStream(streams[n]))) {\n throw new ERR_INVALID_ARG_VALUE(`streams[${n}]`, orgStreams[n], 'must be writable')\n }\n }\n let ondrain\n let onfinish\n let onreadable\n let onclose\n let d\n function onfinished(err) {\n const cb = onclose\n onclose = null\n if (cb) {\n cb(err)\n } else if (err) {\n d.destroy(err)\n } else if (!readable && !writable) {\n d.destroy()\n }\n }\n const head = streams[0]\n const tail = pipeline(streams, onfinished)\n const writable = !!(isWritable(head) || isWritableStream(head) || isTransformStream(head))\n const readable = !!(isReadable(tail) || isReadableStream(tail) || isTransformStream(tail))\n\n // TODO(ronag): Avoid double buffering.\n // Implement Writable/Readable/Duplex traits.\n // See, https://github.com/nodejs/node/pull/33515.\n d = new Duplex({\n // TODO (ronag): highWaterMark?\n writableObjectMode: !!(head !== null && head !== undefined && head.writableObjectMode),\n readableObjectMode: !!(tail !== null && tail !== undefined && tail.readableObjectMode),\n writable,\n readable\n })\n if (writable) {\n if (isNodeStream(head)) {\n d._write = function (chunk, encoding, callback) {\n if (head.write(chunk, encoding)) {\n callback()\n } else {\n ondrain = callback\n }\n }\n d._final = function (callback) {\n head.end()\n onfinish = callback\n }\n head.on('drain', function () {\n if (ondrain) {\n const cb = ondrain\n ondrain = null\n cb()\n }\n })\n } else if (isWebStream(head)) {\n const writable = isTransformStream(head) ? head.writable : head\n const writer = writable.getWriter()\n d._write = async function (chunk, encoding, callback) {\n try {\n await writer.ready\n writer.write(chunk).catch(() => {})\n callback()\n } catch (err) {\n callback(err)\n }\n }\n d._final = async function (callback) {\n try {\n await writer.ready\n writer.close().catch(() => {})\n onfinish = callback\n } catch (err) {\n callback(err)\n }\n }\n }\n const toRead = isTransformStream(tail) ? tail.readable : tail\n eos(toRead, () => {\n if (onfinish) {\n const cb = onfinish\n onfinish = null\n cb()\n }\n })\n }\n if (readable) {\n if (isNodeStream(tail)) {\n tail.on('readable', function () {\n if (onreadable) {\n const cb = onreadable\n onreadable = null\n cb()\n }\n })\n tail.on('end', function () {\n d.push(null)\n })\n d._read = function () {\n while (true) {\n const buf = tail.read()\n if (buf === null) {\n onreadable = d._read\n return\n }\n if (!d.push(buf)) {\n return\n }\n }\n }\n } else if (isWebStream(tail)) {\n const readable = isTransformStream(tail) ? tail.readable : tail\n const reader = readable.getReader()\n d._read = async function () {\n while (true) {\n try {\n const { value, done } = await reader.read()\n if (!d.push(value)) {\n return\n }\n if (done) {\n d.push(null)\n return\n }\n } catch {\n return\n }\n }\n }\n }\n }\n d._destroy = function (err, callback) {\n if (!err && onclose !== null) {\n err = new AbortError()\n }\n onreadable = null\n ondrain = null\n onfinish = null\n if (onclose === null) {\n callback(err)\n } else {\n onclose = callback\n if (isNodeStream(tail)) {\n destroyer(tail, err)\n }\n }\n }\n return d\n}\n","'use strict'\n\n/* replacement start */\n\nconst process = require('process/')\n\n/* replacement end */\n\nconst {\n aggregateTwoErrors,\n codes: { ERR_MULTIPLE_CALLBACK },\n AbortError\n} = require('../../ours/errors')\nconst { Symbol } = require('../../ours/primordials')\nconst { kIsDestroyed, isDestroyed, isFinished, isServerRequest } = require('./utils')\nconst kDestroy = Symbol('kDestroy')\nconst kConstruct = Symbol('kConstruct')\nfunction checkError(err, w, r) {\n if (err) {\n // Avoid V8 leak, https://github.com/nodejs/node/pull/34103#issuecomment-652002364\n err.stack // eslint-disable-line no-unused-expressions\n\n if (w && !w.errored) {\n w.errored = err\n }\n if (r && !r.errored) {\n r.errored = err\n }\n }\n}\n\n// Backwards compat. cb() is undocumented and unused in core but\n// unfortunately might be used by modules.\nfunction destroy(err, cb) {\n const r = this._readableState\n const w = this._writableState\n // With duplex streams we use the writable side for state.\n const s = w || r\n if ((w !== null && w !== undefined && w.destroyed) || (r !== null && r !== undefined && r.destroyed)) {\n if (typeof cb === 'function') {\n cb()\n }\n return this\n }\n\n // We set destroyed to true before firing error callbacks in order\n // to make it re-entrance safe in case destroy() is called within callbacks\n checkError(err, w, r)\n if (w) {\n w.destroyed = true\n }\n if (r) {\n r.destroyed = true\n }\n\n // If still constructing then defer calling _destroy.\n if (!s.constructed) {\n this.once(kDestroy, function (er) {\n _destroy(this, aggregateTwoErrors(er, err), cb)\n })\n } else {\n _destroy(this, err, cb)\n }\n return this\n}\nfunction _destroy(self, err, cb) {\n let called = false\n function onDestroy(err) {\n if (called) {\n return\n }\n called = true\n const r = self._readableState\n const w = self._writableState\n checkError(err, w, r)\n if (w) {\n w.closed = true\n }\n if (r) {\n r.closed = true\n }\n if (typeof cb === 'function') {\n cb(err)\n }\n if (err) {\n process.nextTick(emitErrorCloseNT, self, err)\n } else {\n process.nextTick(emitCloseNT, self)\n }\n }\n try {\n self._destroy(err || null, onDestroy)\n } catch (err) {\n onDestroy(err)\n }\n}\nfunction emitErrorCloseNT(self, err) {\n emitErrorNT(self, err)\n emitCloseNT(self)\n}\nfunction emitCloseNT(self) {\n const r = self._readableState\n const w = self._writableState\n if (w) {\n w.closeEmitted = true\n }\n if (r) {\n r.closeEmitted = true\n }\n if ((w !== null && w !== undefined && w.emitClose) || (r !== null && r !== undefined && r.emitClose)) {\n self.emit('close')\n }\n}\nfunction emitErrorNT(self, err) {\n const r = self._readableState\n const w = self._writableState\n if ((w !== null && w !== undefined && w.errorEmitted) || (r !== null && r !== undefined && r.errorEmitted)) {\n return\n }\n if (w) {\n w.errorEmitted = true\n }\n if (r) {\n r.errorEmitted = true\n }\n self.emit('error', err)\n}\nfunction undestroy() {\n const r = this._readableState\n const w = this._writableState\n if (r) {\n r.constructed = true\n r.closed = false\n r.closeEmitted = false\n r.destroyed = false\n r.errored = null\n r.errorEmitted = false\n r.reading = false\n r.ended = r.readable === false\n r.endEmitted = r.readable === false\n }\n if (w) {\n w.constructed = true\n w.destroyed = false\n w.closed = false\n w.closeEmitted = false\n w.errored = null\n w.errorEmitted = false\n w.finalCalled = false\n w.prefinished = false\n w.ended = w.writable === false\n w.ending = w.writable === false\n w.finished = w.writable === false\n }\n}\nfunction errorOrDestroy(stream, err, sync) {\n // We have tests that rely on errors being emitted\n // in the same tick, so changing this is semver major.\n // For now when you opt-in to autoDestroy we allow\n // the error to be emitted nextTick. In a future\n // semver major update we should change the default to this.\n\n const r = stream._readableState\n const w = stream._writableState\n if ((w !== null && w !== undefined && w.destroyed) || (r !== null && r !== undefined && r.destroyed)) {\n return this\n }\n if ((r !== null && r !== undefined && r.autoDestroy) || (w !== null && w !== undefined && w.autoDestroy))\n stream.destroy(err)\n else if (err) {\n // Avoid V8 leak, https://github.com/nodejs/node/pull/34103#issuecomment-652002364\n err.stack // eslint-disable-line no-unused-expressions\n\n if (w && !w.errored) {\n w.errored = err\n }\n if (r && !r.errored) {\n r.errored = err\n }\n if (sync) {\n process.nextTick(emitErrorNT, stream, err)\n } else {\n emitErrorNT(stream, err)\n }\n }\n}\nfunction construct(stream, cb) {\n if (typeof stream._construct !== 'function') {\n return\n }\n const r = stream._readableState\n const w = stream._writableState\n if (r) {\n r.constructed = false\n }\n if (w) {\n w.constructed = false\n }\n stream.once(kConstruct, cb)\n if (stream.listenerCount(kConstruct) > 1) {\n // Duplex\n return\n }\n process.nextTick(constructNT, stream)\n}\nfunction constructNT(stream) {\n let called = false\n function onConstruct(err) {\n if (called) {\n errorOrDestroy(stream, err !== null && err !== undefined ? err : new ERR_MULTIPLE_CALLBACK())\n return\n }\n called = true\n const r = stream._readableState\n const w = stream._writableState\n const s = w || r\n if (r) {\n r.constructed = true\n }\n if (w) {\n w.constructed = true\n }\n if (s.destroyed) {\n stream.emit(kDestroy, err)\n } else if (err) {\n errorOrDestroy(stream, err, true)\n } else {\n process.nextTick(emitConstructNT, stream)\n }\n }\n try {\n stream._construct((err) => {\n process.nextTick(onConstruct, err)\n })\n } catch (err) {\n process.nextTick(onConstruct, err)\n }\n}\nfunction emitConstructNT(stream) {\n stream.emit(kConstruct)\n}\nfunction isRequest(stream) {\n return (stream === null || stream === undefined ? undefined : stream.setHeader) && typeof stream.abort === 'function'\n}\nfunction emitCloseLegacy(stream) {\n stream.emit('close')\n}\nfunction emitErrorCloseLegacy(stream, err) {\n stream.emit('error', err)\n process.nextTick(emitCloseLegacy, stream)\n}\n\n// Normalize destroy for legacy.\nfunction destroyer(stream, err) {\n if (!stream || isDestroyed(stream)) {\n return\n }\n if (!err && !isFinished(stream)) {\n err = new AbortError()\n }\n\n // TODO: Remove isRequest branches.\n if (isServerRequest(stream)) {\n stream.socket = null\n stream.destroy(err)\n } else if (isRequest(stream)) {\n stream.abort()\n } else if (isRequest(stream.req)) {\n stream.req.abort()\n } else if (typeof stream.destroy === 'function') {\n stream.destroy(err)\n } else if (typeof stream.close === 'function') {\n // TODO: Don't lose err?\n stream.close()\n } else if (err) {\n process.nextTick(emitErrorCloseLegacy, stream, err)\n } else {\n process.nextTick(emitCloseLegacy, stream)\n }\n if (!stream.destroyed) {\n stream[kIsDestroyed] = true\n }\n}\nmodule.exports = {\n construct,\n destroyer,\n destroy,\n undestroy,\n errorOrDestroy\n}\n","// Copyright Joyent, Inc. and other Node contributors.\n//\n// Permission is hereby granted, free of charge, to any person obtaining a\n// copy of this software and associated documentation files (the\n// \"Software\"), to deal in the Software without restriction, including\n// without limitation the rights to use, copy, modify, merge, publish,\n// distribute, sublicense, and/or sell copies of the Software, and to permit\n// persons to whom the Software is furnished to do so, subject to the\n// following conditions:\n//\n// The above copyright notice and this permission notice shall be included\n// in all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\n// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\n// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\n// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n// a duplex stream is just a stream that is both readable and writable.\n// Since JS doesn't have multiple prototype inheritance, this class\n// prototypically inherits from Readable, and then parasitically from\n// Writable.\n\n'use strict'\n\nconst {\n ObjectDefineProperties,\n ObjectGetOwnPropertyDescriptor,\n ObjectKeys,\n ObjectSetPrototypeOf\n} = require('../../ours/primordials')\nmodule.exports = Duplex\nconst Readable = require('./readable')\nconst Writable = require('./writable')\nObjectSetPrototypeOf(Duplex.prototype, Readable.prototype)\nObjectSetPrototypeOf(Duplex, Readable)\n{\n const keys = ObjectKeys(Writable.prototype)\n // Allow the keys array to be GC'ed.\n for (let i = 0; i < keys.length; i++) {\n const method = keys[i]\n if (!Duplex.prototype[method]) Duplex.prototype[method] = Writable.prototype[method]\n }\n}\nfunction Duplex(options) {\n if (!(this instanceof Duplex)) return new Duplex(options)\n Readable.call(this, options)\n Writable.call(this, options)\n if (options) {\n this.allowHalfOpen = options.allowHalfOpen !== false\n if (options.readable === false) {\n this._readableState.readable = false\n this._readableState.ended = true\n this._readableState.endEmitted = true\n }\n if (options.writable === false) {\n this._writableState.writable = false\n this._writableState.ending = true\n this._writableState.ended = true\n this._writableState.finished = true\n }\n } else {\n this.allowHalfOpen = true\n }\n}\nObjectDefineProperties(Duplex.prototype, {\n writable: {\n __proto__: null,\n ...ObjectGetOwnPropertyDescriptor(Writable.prototype, 'writable')\n },\n writableHighWaterMark: {\n __proto__: null,\n ...ObjectGetOwnPropertyDescriptor(Writable.prototype, 'writableHighWaterMark')\n },\n writableObjectMode: {\n __proto__: null,\n ...ObjectGetOwnPropertyDescriptor(Writable.prototype, 'writableObjectMode')\n },\n writableBuffer: {\n __proto__: null,\n ...ObjectGetOwnPropertyDescriptor(Writable.prototype, 'writableBuffer')\n },\n writableLength: {\n __proto__: null,\n ...ObjectGetOwnPropertyDescriptor(Writable.prototype, 'writableLength')\n },\n writableFinished: {\n __proto__: null,\n ...ObjectGetOwnPropertyDescriptor(Writable.prototype, 'writableFinished')\n },\n writableCorked: {\n __proto__: null,\n ...ObjectGetOwnPropertyDescriptor(Writable.prototype, 'writableCorked')\n },\n writableEnded: {\n __proto__: null,\n ...ObjectGetOwnPropertyDescriptor(Writable.prototype, 'writableEnded')\n },\n writableNeedDrain: {\n __proto__: null,\n ...ObjectGetOwnPropertyDescriptor(Writable.prototype, 'writableNeedDrain')\n },\n destroyed: {\n __proto__: null,\n get() {\n if (this._readableState === undefined || this._writableState === undefined) {\n return false\n }\n return this._readableState.destroyed && this._writableState.destroyed\n },\n set(value) {\n // Backward compatibility, the user is explicitly\n // managing destroyed.\n if (this._readableState && this._writableState) {\n this._readableState.destroyed = value\n this._writableState.destroyed = value\n }\n }\n }\n})\nlet webStreamsAdapters\n\n// Lazy to avoid circular references\nfunction lazyWebStreams() {\n if (webStreamsAdapters === undefined) webStreamsAdapters = {}\n return webStreamsAdapters\n}\nDuplex.fromWeb = function (pair, options) {\n return lazyWebStreams().newStreamDuplexFromReadableWritablePair(pair, options)\n}\nDuplex.toWeb = function (duplex) {\n return lazyWebStreams().newReadableWritablePairFromDuplex(duplex)\n}\nlet duplexify\nDuplex.from = function (body) {\n if (!duplexify) {\n duplexify = require('./duplexify')\n }\n return duplexify(body, 'body')\n}\n","/* replacement start */\n\nconst process = require('process/')\n\n/* replacement end */\n\n;('use strict')\nconst bufferModule = require('buffer')\nconst {\n isReadable,\n isWritable,\n isIterable,\n isNodeStream,\n isReadableNodeStream,\n isWritableNodeStream,\n isDuplexNodeStream,\n isReadableStream,\n isWritableStream\n} = require('./utils')\nconst eos = require('./end-of-stream')\nconst {\n AbortError,\n codes: { ERR_INVALID_ARG_TYPE, ERR_INVALID_RETURN_VALUE }\n} = require('../../ours/errors')\nconst { destroyer } = require('./destroy')\nconst Duplex = require('./duplex')\nconst Readable = require('./readable')\nconst Writable = require('./writable')\nconst { createDeferredPromise } = require('../../ours/util')\nconst from = require('./from')\nconst Blob = globalThis.Blob || bufferModule.Blob\nconst isBlob =\n typeof Blob !== 'undefined'\n ? function isBlob(b) {\n return b instanceof Blob\n }\n : function isBlob(b) {\n return false\n }\nconst AbortController = globalThis.AbortController || require('abort-controller').AbortController\nconst { FunctionPrototypeCall } = require('../../ours/primordials')\n\n// This is needed for pre node 17.\nclass Duplexify extends Duplex {\n constructor(options) {\n super(options)\n\n // https://github.com/nodejs/node/pull/34385\n\n if ((options === null || options === undefined ? undefined : options.readable) === false) {\n this._readableState.readable = false\n this._readableState.ended = true\n this._readableState.endEmitted = true\n }\n if ((options === null || options === undefined ? undefined : options.writable) === false) {\n this._writableState.writable = false\n this._writableState.ending = true\n this._writableState.ended = true\n this._writableState.finished = true\n }\n }\n}\nmodule.exports = function duplexify(body, name) {\n if (isDuplexNodeStream(body)) {\n return body\n }\n if (isReadableNodeStream(body)) {\n return _duplexify({\n readable: body\n })\n }\n if (isWritableNodeStream(body)) {\n return _duplexify({\n writable: body\n })\n }\n if (isNodeStream(body)) {\n return _duplexify({\n writable: false,\n readable: false\n })\n }\n if (isReadableStream(body)) {\n return _duplexify({\n readable: Readable.fromWeb(body)\n })\n }\n if (isWritableStream(body)) {\n return _duplexify({\n writable: Writable.fromWeb(body)\n })\n }\n if (typeof body === 'function') {\n const { value, write, final, destroy } = fromAsyncGen(body)\n if (isIterable(value)) {\n return from(Duplexify, value, {\n // TODO (ronag): highWaterMark?\n objectMode: true,\n write,\n final,\n destroy\n })\n }\n const then = value === null || value === undefined ? undefined : value.then\n if (typeof then === 'function') {\n let d\n const promise = FunctionPrototypeCall(\n then,\n value,\n (val) => {\n if (val != null) {\n throw new ERR_INVALID_RETURN_VALUE('nully', 'body', val)\n }\n },\n (err) => {\n destroyer(d, err)\n }\n )\n return (d = new Duplexify({\n // TODO (ronag): highWaterMark?\n objectMode: true,\n readable: false,\n write,\n final(cb) {\n final(async () => {\n try {\n await promise\n process.nextTick(cb, null)\n } catch (err) {\n process.nextTick(cb, err)\n }\n })\n },\n destroy\n }))\n }\n throw new ERR_INVALID_RETURN_VALUE('Iterable, AsyncIterable or AsyncFunction', name, value)\n }\n if (isBlob(body)) {\n return duplexify(body.arrayBuffer())\n }\n if (isIterable(body)) {\n return from(Duplexify, body, {\n // TODO (ronag): highWaterMark?\n objectMode: true,\n writable: false\n })\n }\n if (\n isReadableStream(body === null || body === undefined ? undefined : body.readable) &&\n isWritableStream(body === null || body === undefined ? undefined : body.writable)\n ) {\n return Duplexify.fromWeb(body)\n }\n if (\n typeof (body === null || body === undefined ? undefined : body.writable) === 'object' ||\n typeof (body === null || body === undefined ? undefined : body.readable) === 'object'\n ) {\n const readable =\n body !== null && body !== undefined && body.readable\n ? isReadableNodeStream(body === null || body === undefined ? undefined : body.readable)\n ? body === null || body === undefined\n ? undefined\n : body.readable\n : duplexify(body.readable)\n : undefined\n const writable =\n body !== null && body !== undefined && body.writable\n ? isWritableNodeStream(body === null || body === undefined ? undefined : body.writable)\n ? body === null || body === undefined\n ? undefined\n : body.writable\n : duplexify(body.writable)\n : undefined\n return _duplexify({\n readable,\n writable\n })\n }\n const then = body === null || body === undefined ? undefined : body.then\n if (typeof then === 'function') {\n let d\n FunctionPrototypeCall(\n then,\n body,\n (val) => {\n if (val != null) {\n d.push(val)\n }\n d.push(null)\n },\n (err) => {\n destroyer(d, err)\n }\n )\n return (d = new Duplexify({\n objectMode: true,\n writable: false,\n read() {}\n }))\n }\n throw new ERR_INVALID_ARG_TYPE(\n name,\n [\n 'Blob',\n 'ReadableStream',\n 'WritableStream',\n 'Stream',\n 'Iterable',\n 'AsyncIterable',\n 'Function',\n '{ readable, writable } pair',\n 'Promise'\n ],\n body\n )\n}\nfunction fromAsyncGen(fn) {\n let { promise, resolve } = createDeferredPromise()\n const ac = new AbortController()\n const signal = ac.signal\n const value = fn(\n (async function* () {\n while (true) {\n const _promise = promise\n promise = null\n const { chunk, done, cb } = await _promise\n process.nextTick(cb)\n if (done) return\n if (signal.aborted)\n throw new AbortError(undefined, {\n cause: signal.reason\n })\n ;({ promise, resolve } = createDeferredPromise())\n yield chunk\n }\n })(),\n {\n signal\n }\n )\n return {\n value,\n write(chunk, encoding, cb) {\n const _resolve = resolve\n resolve = null\n _resolve({\n chunk,\n done: false,\n cb\n })\n },\n final(cb) {\n const _resolve = resolve\n resolve = null\n _resolve({\n done: true,\n cb\n })\n },\n destroy(err, cb) {\n ac.abort()\n cb(err)\n }\n }\n}\nfunction _duplexify(pair) {\n const r = pair.readable && typeof pair.readable.read !== 'function' ? Readable.wrap(pair.readable) : pair.readable\n const w = pair.writable\n let readable = !!isReadable(r)\n let writable = !!isWritable(w)\n let ondrain\n let onfinish\n let onreadable\n let onclose\n let d\n function onfinished(err) {\n const cb = onclose\n onclose = null\n if (cb) {\n cb(err)\n } else if (err) {\n d.destroy(err)\n }\n }\n\n // TODO(ronag): Avoid double buffering.\n // Implement Writable/Readable/Duplex traits.\n // See, https://github.com/nodejs/node/pull/33515.\n d = new Duplexify({\n // TODO (ronag): highWaterMark?\n readableObjectMode: !!(r !== null && r !== undefined && r.readableObjectMode),\n writableObjectMode: !!(w !== null && w !== undefined && w.writableObjectMode),\n readable,\n writable\n })\n if (writable) {\n eos(w, (err) => {\n writable = false\n if (err) {\n destroyer(r, err)\n }\n onfinished(err)\n })\n d._write = function (chunk, encoding, callback) {\n if (w.write(chunk, encoding)) {\n callback()\n } else {\n ondrain = callback\n }\n }\n d._final = function (callback) {\n w.end()\n onfinish = callback\n }\n w.on('drain', function () {\n if (ondrain) {\n const cb = ondrain\n ondrain = null\n cb()\n }\n })\n w.on('finish', function () {\n if (onfinish) {\n const cb = onfinish\n onfinish = null\n cb()\n }\n })\n }\n if (readable) {\n eos(r, (err) => {\n readable = false\n if (err) {\n destroyer(r, err)\n }\n onfinished(err)\n })\n r.on('readable', function () {\n if (onreadable) {\n const cb = onreadable\n onreadable = null\n cb()\n }\n })\n r.on('end', function () {\n d.push(null)\n })\n d._read = function () {\n while (true) {\n const buf = r.read()\n if (buf === null) {\n onreadable = d._read\n return\n }\n if (!d.push(buf)) {\n return\n }\n }\n }\n }\n d._destroy = function (err, callback) {\n if (!err && onclose !== null) {\n err = new AbortError()\n }\n onreadable = null\n ondrain = null\n onfinish = null\n if (onclose === null) {\n callback(err)\n } else {\n onclose = callback\n destroyer(w, err)\n destroyer(r, err)\n }\n }\n return d\n}\n","/* replacement start */\n\nconst process = require('process/')\n\n/* replacement end */\n// Ported from https://github.com/mafintosh/end-of-stream with\n// permission from the author, Mathias Buus (@mafintosh).\n\n;('use strict')\nconst { AbortError, codes } = require('../../ours/errors')\nconst { ERR_INVALID_ARG_TYPE, ERR_STREAM_PREMATURE_CLOSE } = codes\nconst { kEmptyObject, once } = require('../../ours/util')\nconst { validateAbortSignal, validateFunction, validateObject, validateBoolean } = require('../validators')\nconst { Promise, PromisePrototypeThen, SymbolDispose } = require('../../ours/primordials')\nconst {\n isClosed,\n isReadable,\n isReadableNodeStream,\n isReadableStream,\n isReadableFinished,\n isReadableErrored,\n isWritable,\n isWritableNodeStream,\n isWritableStream,\n isWritableFinished,\n isWritableErrored,\n isNodeStream,\n willEmitClose: _willEmitClose,\n kIsClosedPromise\n} = require('./utils')\nlet addAbortListener\nfunction isRequest(stream) {\n return stream.setHeader && typeof stream.abort === 'function'\n}\nconst nop = () => {}\nfunction eos(stream, options, callback) {\n var _options$readable, _options$writable\n if (arguments.length === 2) {\n callback = options\n options = kEmptyObject\n } else if (options == null) {\n options = kEmptyObject\n } else {\n validateObject(options, 'options')\n }\n validateFunction(callback, 'callback')\n validateAbortSignal(options.signal, 'options.signal')\n callback = once(callback)\n if (isReadableStream(stream) || isWritableStream(stream)) {\n return eosWeb(stream, options, callback)\n }\n if (!isNodeStream(stream)) {\n throw new ERR_INVALID_ARG_TYPE('stream', ['ReadableStream', 'WritableStream', 'Stream'], stream)\n }\n const readable =\n (_options$readable = options.readable) !== null && _options$readable !== undefined\n ? _options$readable\n : isReadableNodeStream(stream)\n const writable =\n (_options$writable = options.writable) !== null && _options$writable !== undefined\n ? _options$writable\n : isWritableNodeStream(stream)\n const wState = stream._writableState\n const rState = stream._readableState\n const onlegacyfinish = () => {\n if (!stream.writable) {\n onfinish()\n }\n }\n\n // TODO (ronag): Improve soft detection to include core modules and\n // common ecosystem modules that do properly emit 'close' but fail\n // this generic check.\n let willEmitClose =\n _willEmitClose(stream) && isReadableNodeStream(stream) === readable && isWritableNodeStream(stream) === writable\n let writableFinished = isWritableFinished(stream, false)\n const onfinish = () => {\n writableFinished = true\n // Stream should not be destroyed here. If it is that\n // means that user space is doing something differently and\n // we cannot trust willEmitClose.\n if (stream.destroyed) {\n willEmitClose = false\n }\n if (willEmitClose && (!stream.readable || readable)) {\n return\n }\n if (!readable || readableFinished) {\n callback.call(stream)\n }\n }\n let readableFinished = isReadableFinished(stream, false)\n const onend = () => {\n readableFinished = true\n // Stream should not be destroyed here. If it is that\n // means that user space is doing something differently and\n // we cannot trust willEmitClose.\n if (stream.destroyed) {\n willEmitClose = false\n }\n if (willEmitClose && (!stream.writable || writable)) {\n return\n }\n if (!writable || writableFinished) {\n callback.call(stream)\n }\n }\n const onerror = (err) => {\n callback.call(stream, err)\n }\n let closed = isClosed(stream)\n const onclose = () => {\n closed = true\n const errored = isWritableErrored(stream) || isReadableErrored(stream)\n if (errored && typeof errored !== 'boolean') {\n return callback.call(stream, errored)\n }\n if (readable && !readableFinished && isReadableNodeStream(stream, true)) {\n if (!isReadableFinished(stream, false)) return callback.call(stream, new ERR_STREAM_PREMATURE_CLOSE())\n }\n if (writable && !writableFinished) {\n if (!isWritableFinished(stream, false)) return callback.call(stream, new ERR_STREAM_PREMATURE_CLOSE())\n }\n callback.call(stream)\n }\n const onclosed = () => {\n closed = true\n const errored = isWritableErrored(stream) || isReadableErrored(stream)\n if (errored && typeof errored !== 'boolean') {\n return callback.call(stream, errored)\n }\n callback.call(stream)\n }\n const onrequest = () => {\n stream.req.on('finish', onfinish)\n }\n if (isRequest(stream)) {\n stream.on('complete', onfinish)\n if (!willEmitClose) {\n stream.on('abort', onclose)\n }\n if (stream.req) {\n onrequest()\n } else {\n stream.on('request', onrequest)\n }\n } else if (writable && !wState) {\n // legacy streams\n stream.on('end', onlegacyfinish)\n stream.on('close', onlegacyfinish)\n }\n\n // Not all streams will emit 'close' after 'aborted'.\n if (!willEmitClose && typeof stream.aborted === 'boolean') {\n stream.on('aborted', onclose)\n }\n stream.on('end', onend)\n stream.on('finish', onfinish)\n if (options.error !== false) {\n stream.on('error', onerror)\n }\n stream.on('close', onclose)\n if (closed) {\n process.nextTick(onclose)\n } else if (\n (wState !== null && wState !== undefined && wState.errorEmitted) ||\n (rState !== null && rState !== undefined && rState.errorEmitted)\n ) {\n if (!willEmitClose) {\n process.nextTick(onclosed)\n }\n } else if (\n !readable &&\n (!willEmitClose || isReadable(stream)) &&\n (writableFinished || isWritable(stream) === false)\n ) {\n process.nextTick(onclosed)\n } else if (\n !writable &&\n (!willEmitClose || isWritable(stream)) &&\n (readableFinished || isReadable(stream) === false)\n ) {\n process.nextTick(onclosed)\n } else if (rState && stream.req && stream.aborted) {\n process.nextTick(onclosed)\n }\n const cleanup = () => {\n callback = nop\n stream.removeListener('aborted', onclose)\n stream.removeListener('complete', onfinish)\n stream.removeListener('abort', onclose)\n stream.removeListener('request', onrequest)\n if (stream.req) stream.req.removeListener('finish', onfinish)\n stream.removeListener('end', onlegacyfinish)\n stream.removeListener('close', onlegacyfinish)\n stream.removeListener('finish', onfinish)\n stream.removeListener('end', onend)\n stream.removeListener('error', onerror)\n stream.removeListener('close', onclose)\n }\n if (options.signal && !closed) {\n const abort = () => {\n // Keep it because cleanup removes it.\n const endCallback = callback\n cleanup()\n endCallback.call(\n stream,\n new AbortError(undefined, {\n cause: options.signal.reason\n })\n )\n }\n if (options.signal.aborted) {\n process.nextTick(abort)\n } else {\n addAbortListener = addAbortListener || require('../../ours/util').addAbortListener\n const disposable = addAbortListener(options.signal, abort)\n const originalCallback = callback\n callback = once((...args) => {\n disposable[SymbolDispose]()\n originalCallback.apply(stream, args)\n })\n }\n }\n return cleanup\n}\nfunction eosWeb(stream, options, callback) {\n let isAborted = false\n let abort = nop\n if (options.signal) {\n abort = () => {\n isAborted = true\n callback.call(\n stream,\n new AbortError(undefined, {\n cause: options.signal.reason\n })\n )\n }\n if (options.signal.aborted) {\n process.nextTick(abort)\n } else {\n addAbortListener = addAbortListener || require('../../ours/util').addAbortListener\n const disposable = addAbortListener(options.signal, abort)\n const originalCallback = callback\n callback = once((...args) => {\n disposable[SymbolDispose]()\n originalCallback.apply(stream, args)\n })\n }\n }\n const resolverFn = (...args) => {\n if (!isAborted) {\n process.nextTick(() => callback.apply(stream, args))\n }\n }\n PromisePrototypeThen(stream[kIsClosedPromise].promise, resolverFn, resolverFn)\n return nop\n}\nfunction finished(stream, opts) {\n var _opts\n let autoCleanup = false\n if (opts === null) {\n opts = kEmptyObject\n }\n if ((_opts = opts) !== null && _opts !== undefined && _opts.cleanup) {\n validateBoolean(opts.cleanup, 'cleanup')\n autoCleanup = opts.cleanup\n }\n return new Promise((resolve, reject) => {\n const cleanup = eos(stream, opts, (err) => {\n if (autoCleanup) {\n cleanup()\n }\n if (err) {\n reject(err)\n } else {\n resolve()\n }\n })\n })\n}\nmodule.exports = eos\nmodule.exports.finished = finished\n","'use strict'\n\n/* replacement start */\n\nconst process = require('process/')\n\n/* replacement end */\n\nconst { PromisePrototypeThen, SymbolAsyncIterator, SymbolIterator } = require('../../ours/primordials')\nconst { Buffer } = require('buffer')\nconst { ERR_INVALID_ARG_TYPE, ERR_STREAM_NULL_VALUES } = require('../../ours/errors').codes\nfunction from(Readable, iterable, opts) {\n let iterator\n if (typeof iterable === 'string' || iterable instanceof Buffer) {\n return new Readable({\n objectMode: true,\n ...opts,\n read() {\n this.push(iterable)\n this.push(null)\n }\n })\n }\n let isAsync\n if (iterable && iterable[SymbolAsyncIterator]) {\n isAsync = true\n iterator = iterable[SymbolAsyncIterator]()\n } else if (iterable && iterable[SymbolIterator]) {\n isAsync = false\n iterator = iterable[SymbolIterator]()\n } else {\n throw new ERR_INVALID_ARG_TYPE('iterable', ['Iterable'], iterable)\n }\n const readable = new Readable({\n objectMode: true,\n highWaterMark: 1,\n // TODO(ronag): What options should be allowed?\n ...opts\n })\n\n // Flag to protect against _read\n // being called before last iteration completion.\n let reading = false\n readable._read = function () {\n if (!reading) {\n reading = true\n next()\n }\n }\n readable._destroy = function (error, cb) {\n PromisePrototypeThen(\n close(error),\n () => process.nextTick(cb, error),\n // nextTick is here in case cb throws\n (e) => process.nextTick(cb, e || error)\n )\n }\n async function close(error) {\n const hadError = error !== undefined && error !== null\n const hasThrow = typeof iterator.throw === 'function'\n if (hadError && hasThrow) {\n const { value, done } = await iterator.throw(error)\n await value\n if (done) {\n return\n }\n }\n if (typeof iterator.return === 'function') {\n const { value } = await iterator.return()\n await value\n }\n }\n async function next() {\n for (;;) {\n try {\n const { value, done } = isAsync ? await iterator.next() : iterator.next()\n if (done) {\n readable.push(null)\n } else {\n const res = value && typeof value.then === 'function' ? await value : value\n if (res === null) {\n reading = false\n throw new ERR_STREAM_NULL_VALUES()\n } else if (readable.push(res)) {\n continue\n } else {\n reading = false\n }\n }\n } catch (err) {\n readable.destroy(err)\n }\n break\n }\n }\n return readable\n}\nmodule.exports = from\n","'use strict'\n\nconst { ArrayIsArray, ObjectSetPrototypeOf } = require('../../ours/primordials')\nconst { EventEmitter: EE } = require('events')\nfunction Stream(opts) {\n EE.call(this, opts)\n}\nObjectSetPrototypeOf(Stream.prototype, EE.prototype)\nObjectSetPrototypeOf(Stream, EE)\nStream.prototype.pipe = function (dest, options) {\n const source = this\n function ondata(chunk) {\n if (dest.writable && dest.write(chunk) === false && source.pause) {\n source.pause()\n }\n }\n source.on('data', ondata)\n function ondrain() {\n if (source.readable && source.resume) {\n source.resume()\n }\n }\n dest.on('drain', ondrain)\n\n // If the 'end' option is not supplied, dest.end() will be called when\n // source gets the 'end' or 'close' events. Only dest.end() once.\n if (!dest._isStdio && (!options || options.end !== false)) {\n source.on('end', onend)\n source.on('close', onclose)\n }\n let didOnEnd = false\n function onend() {\n if (didOnEnd) return\n didOnEnd = true\n dest.end()\n }\n function onclose() {\n if (didOnEnd) return\n didOnEnd = true\n if (typeof dest.destroy === 'function') dest.destroy()\n }\n\n // Don't leave dangling pipes when there are errors.\n function onerror(er) {\n cleanup()\n if (EE.listenerCount(this, 'error') === 0) {\n this.emit('error', er)\n }\n }\n prependListener(source, 'error', onerror)\n prependListener(dest, 'error', onerror)\n\n // Remove all the event listeners that were added.\n function cleanup() {\n source.removeListener('data', ondata)\n dest.removeListener('drain', ondrain)\n source.removeListener('end', onend)\n source.removeListener('close', onclose)\n source.removeListener('error', onerror)\n dest.removeListener('error', onerror)\n source.removeListener('end', cleanup)\n source.removeListener('close', cleanup)\n dest.removeListener('close', cleanup)\n }\n source.on('end', cleanup)\n source.on('close', cleanup)\n dest.on('close', cleanup)\n dest.emit('pipe', source)\n\n // Allow for unix-like usage: A.pipe(B).pipe(C)\n return dest\n}\nfunction prependListener(emitter, event, fn) {\n // Sadly this is not cacheable as some libraries bundle their own\n // event emitter implementation with them.\n if (typeof emitter.prependListener === 'function') return emitter.prependListener(event, fn)\n\n // This is a hack to make sure that our error handler is attached before any\n // userland ones. NEVER DO THIS. This is here only because this code needs\n // to continue to work with older versions of Node.js that do not include\n // the prependListener() method. The goal is to eventually remove this hack.\n if (!emitter._events || !emitter._events[event]) emitter.on(event, fn)\n else if (ArrayIsArray(emitter._events[event])) emitter._events[event].unshift(fn)\n else emitter._events[event] = [fn, emitter._events[event]]\n}\nmodule.exports = {\n Stream,\n prependListener\n}\n","'use strict'\n\nconst AbortController = globalThis.AbortController || require('abort-controller').AbortController\nconst {\n codes: { ERR_INVALID_ARG_VALUE, ERR_INVALID_ARG_TYPE, ERR_MISSING_ARGS, ERR_OUT_OF_RANGE },\n AbortError\n} = require('../../ours/errors')\nconst { validateAbortSignal, validateInteger, validateObject } = require('../validators')\nconst kWeakHandler = require('../../ours/primordials').Symbol('kWeak')\nconst kResistStopPropagation = require('../../ours/primordials').Symbol('kResistStopPropagation')\nconst { finished } = require('./end-of-stream')\nconst staticCompose = require('./compose')\nconst { addAbortSignalNoValidate } = require('./add-abort-signal')\nconst { isWritable, isNodeStream } = require('./utils')\nconst { deprecate } = require('../../ours/util')\nconst {\n ArrayPrototypePush,\n Boolean,\n MathFloor,\n Number,\n NumberIsNaN,\n Promise,\n PromiseReject,\n PromiseResolve,\n PromisePrototypeThen,\n Symbol\n} = require('../../ours/primordials')\nconst kEmpty = Symbol('kEmpty')\nconst kEof = Symbol('kEof')\nfunction compose(stream, options) {\n if (options != null) {\n validateObject(options, 'options')\n }\n if ((options === null || options === undefined ? undefined : options.signal) != null) {\n validateAbortSignal(options.signal, 'options.signal')\n }\n if (isNodeStream(stream) && !isWritable(stream)) {\n throw new ERR_INVALID_ARG_VALUE('stream', stream, 'must be writable')\n }\n const composedStream = staticCompose(this, stream)\n if (options !== null && options !== undefined && options.signal) {\n // Not validating as we already validated before\n addAbortSignalNoValidate(options.signal, composedStream)\n }\n return composedStream\n}\nfunction map(fn, options) {\n if (typeof fn !== 'function') {\n throw new ERR_INVALID_ARG_TYPE('fn', ['Function', 'AsyncFunction'], fn)\n }\n if (options != null) {\n validateObject(options, 'options')\n }\n if ((options === null || options === undefined ? undefined : options.signal) != null) {\n validateAbortSignal(options.signal, 'options.signal')\n }\n let concurrency = 1\n if ((options === null || options === undefined ? undefined : options.concurrency) != null) {\n concurrency = MathFloor(options.concurrency)\n }\n let highWaterMark = concurrency - 1\n if ((options === null || options === undefined ? undefined : options.highWaterMark) != null) {\n highWaterMark = MathFloor(options.highWaterMark)\n }\n validateInteger(concurrency, 'options.concurrency', 1)\n validateInteger(highWaterMark, 'options.highWaterMark', 0)\n highWaterMark += concurrency\n return async function* map() {\n const signal = require('../../ours/util').AbortSignalAny(\n [options === null || options === undefined ? undefined : options.signal].filter(Boolean)\n )\n const stream = this\n const queue = []\n const signalOpt = {\n signal\n }\n let next\n let resume\n let done = false\n let cnt = 0\n function onCatch() {\n done = true\n afterItemProcessed()\n }\n function afterItemProcessed() {\n cnt -= 1\n maybeResume()\n }\n function maybeResume() {\n if (resume && !done && cnt < concurrency && queue.length < highWaterMark) {\n resume()\n resume = null\n }\n }\n async function pump() {\n try {\n for await (let val of stream) {\n if (done) {\n return\n }\n if (signal.aborted) {\n throw new AbortError()\n }\n try {\n val = fn(val, signalOpt)\n if (val === kEmpty) {\n continue\n }\n val = PromiseResolve(val)\n } catch (err) {\n val = PromiseReject(err)\n }\n cnt += 1\n PromisePrototypeThen(val, afterItemProcessed, onCatch)\n queue.push(val)\n if (next) {\n next()\n next = null\n }\n if (!done && (queue.length >= highWaterMark || cnt >= concurrency)) {\n await new Promise((resolve) => {\n resume = resolve\n })\n }\n }\n queue.push(kEof)\n } catch (err) {\n const val = PromiseReject(err)\n PromisePrototypeThen(val, afterItemProcessed, onCatch)\n queue.push(val)\n } finally {\n done = true\n if (next) {\n next()\n next = null\n }\n }\n }\n pump()\n try {\n while (true) {\n while (queue.length > 0) {\n const val = await queue[0]\n if (val === kEof) {\n return\n }\n if (signal.aborted) {\n throw new AbortError()\n }\n if (val !== kEmpty) {\n yield val\n }\n queue.shift()\n maybeResume()\n }\n await new Promise((resolve) => {\n next = resolve\n })\n }\n } finally {\n done = true\n if (resume) {\n resume()\n resume = null\n }\n }\n }.call(this)\n}\nfunction asIndexedPairs(options = undefined) {\n if (options != null) {\n validateObject(options, 'options')\n }\n if ((options === null || options === undefined ? undefined : options.signal) != null) {\n validateAbortSignal(options.signal, 'options.signal')\n }\n return async function* asIndexedPairs() {\n let index = 0\n for await (const val of this) {\n var _options$signal\n if (\n options !== null &&\n options !== undefined &&\n (_options$signal = options.signal) !== null &&\n _options$signal !== undefined &&\n _options$signal.aborted\n ) {\n throw new AbortError({\n cause: options.signal.reason\n })\n }\n yield [index++, val]\n }\n }.call(this)\n}\nasync function some(fn, options = undefined) {\n for await (const unused of filter.call(this, fn, options)) {\n return true\n }\n return false\n}\nasync function every(fn, options = undefined) {\n if (typeof fn !== 'function') {\n throw new ERR_INVALID_ARG_TYPE('fn', ['Function', 'AsyncFunction'], fn)\n }\n // https://en.wikipedia.org/wiki/De_Morgan%27s_laws\n return !(await some.call(\n this,\n async (...args) => {\n return !(await fn(...args))\n },\n options\n ))\n}\nasync function find(fn, options) {\n for await (const result of filter.call(this, fn, options)) {\n return result\n }\n return undefined\n}\nasync function forEach(fn, options) {\n if (typeof fn !== 'function') {\n throw new ERR_INVALID_ARG_TYPE('fn', ['Function', 'AsyncFunction'], fn)\n }\n async function forEachFn(value, options) {\n await fn(value, options)\n return kEmpty\n }\n // eslint-disable-next-line no-unused-vars\n for await (const unused of map.call(this, forEachFn, options));\n}\nfunction filter(fn, options) {\n if (typeof fn !== 'function') {\n throw new ERR_INVALID_ARG_TYPE('fn', ['Function', 'AsyncFunction'], fn)\n }\n async function filterFn(value, options) {\n if (await fn(value, options)) {\n return value\n }\n return kEmpty\n }\n return map.call(this, filterFn, options)\n}\n\n// Specific to provide better error to reduce since the argument is only\n// missing if the stream has no items in it - but the code is still appropriate\nclass ReduceAwareErrMissingArgs extends ERR_MISSING_ARGS {\n constructor() {\n super('reduce')\n this.message = 'Reduce of an empty stream requires an initial value'\n }\n}\nasync function reduce(reducer, initialValue, options) {\n var _options$signal2\n if (typeof reducer !== 'function') {\n throw new ERR_INVALID_ARG_TYPE('reducer', ['Function', 'AsyncFunction'], reducer)\n }\n if (options != null) {\n validateObject(options, 'options')\n }\n if ((options === null || options === undefined ? undefined : options.signal) != null) {\n validateAbortSignal(options.signal, 'options.signal')\n }\n let hasInitialValue = arguments.length > 1\n if (\n options !== null &&\n options !== undefined &&\n (_options$signal2 = options.signal) !== null &&\n _options$signal2 !== undefined &&\n _options$signal2.aborted\n ) {\n const err = new AbortError(undefined, {\n cause: options.signal.reason\n })\n this.once('error', () => {}) // The error is already propagated\n await finished(this.destroy(err))\n throw err\n }\n const ac = new AbortController()\n const signal = ac.signal\n if (options !== null && options !== undefined && options.signal) {\n const opts = {\n once: true,\n [kWeakHandler]: this,\n [kResistStopPropagation]: true\n }\n options.signal.addEventListener('abort', () => ac.abort(), opts)\n }\n let gotAnyItemFromStream = false\n try {\n for await (const value of this) {\n var _options$signal3\n gotAnyItemFromStream = true\n if (\n options !== null &&\n options !== undefined &&\n (_options$signal3 = options.signal) !== null &&\n _options$signal3 !== undefined &&\n _options$signal3.aborted\n ) {\n throw new AbortError()\n }\n if (!hasInitialValue) {\n initialValue = value\n hasInitialValue = true\n } else {\n initialValue = await reducer(initialValue, value, {\n signal\n })\n }\n }\n if (!gotAnyItemFromStream && !hasInitialValue) {\n throw new ReduceAwareErrMissingArgs()\n }\n } finally {\n ac.abort()\n }\n return initialValue\n}\nasync function toArray(options) {\n if (options != null) {\n validateObject(options, 'options')\n }\n if ((options === null || options === undefined ? undefined : options.signal) != null) {\n validateAbortSignal(options.signal, 'options.signal')\n }\n const result = []\n for await (const val of this) {\n var _options$signal4\n if (\n options !== null &&\n options !== undefined &&\n (_options$signal4 = options.signal) !== null &&\n _options$signal4 !== undefined &&\n _options$signal4.aborted\n ) {\n throw new AbortError(undefined, {\n cause: options.signal.reason\n })\n }\n ArrayPrototypePush(result, val)\n }\n return result\n}\nfunction flatMap(fn, options) {\n const values = map.call(this, fn, options)\n return async function* flatMap() {\n for await (const val of values) {\n yield* val\n }\n }.call(this)\n}\nfunction toIntegerOrInfinity(number) {\n // We coerce here to align with the spec\n // https://github.com/tc39/proposal-iterator-helpers/issues/169\n number = Number(number)\n if (NumberIsNaN(number)) {\n return 0\n }\n if (number < 0) {\n throw new ERR_OUT_OF_RANGE('number', '>= 0', number)\n }\n return number\n}\nfunction drop(number, options = undefined) {\n if (options != null) {\n validateObject(options, 'options')\n }\n if ((options === null || options === undefined ? undefined : options.signal) != null) {\n validateAbortSignal(options.signal, 'options.signal')\n }\n number = toIntegerOrInfinity(number)\n return async function* drop() {\n var _options$signal5\n if (\n options !== null &&\n options !== undefined &&\n (_options$signal5 = options.signal) !== null &&\n _options$signal5 !== undefined &&\n _options$signal5.aborted\n ) {\n throw new AbortError()\n }\n for await (const val of this) {\n var _options$signal6\n if (\n options !== null &&\n options !== undefined &&\n (_options$signal6 = options.signal) !== null &&\n _options$signal6 !== undefined &&\n _options$signal6.aborted\n ) {\n throw new AbortError()\n }\n if (number-- <= 0) {\n yield val\n }\n }\n }.call(this)\n}\nfunction take(number, options = undefined) {\n if (options != null) {\n validateObject(options, 'options')\n }\n if ((options === null || options === undefined ? undefined : options.signal) != null) {\n validateAbortSignal(options.signal, 'options.signal')\n }\n number = toIntegerOrInfinity(number)\n return async function* take() {\n var _options$signal7\n if (\n options !== null &&\n options !== undefined &&\n (_options$signal7 = options.signal) !== null &&\n _options$signal7 !== undefined &&\n _options$signal7.aborted\n ) {\n throw new AbortError()\n }\n for await (const val of this) {\n var _options$signal8\n if (\n options !== null &&\n options !== undefined &&\n (_options$signal8 = options.signal) !== null &&\n _options$signal8 !== undefined &&\n _options$signal8.aborted\n ) {\n throw new AbortError()\n }\n if (number-- > 0) {\n yield val\n }\n\n // Don't get another item from iterator in case we reached the end\n if (number <= 0) {\n return\n }\n }\n }.call(this)\n}\nmodule.exports.streamReturningOperators = {\n asIndexedPairs: deprecate(asIndexedPairs, 'readable.asIndexedPairs will be removed in a future version.'),\n drop,\n filter,\n flatMap,\n map,\n take,\n compose\n}\nmodule.exports.promiseReturningOperators = {\n every,\n forEach,\n reduce,\n toArray,\n some,\n find\n}\n","// Copyright Joyent, Inc. and other Node contributors.\n//\n// Permission is hereby granted, free of charge, to any person obtaining a\n// copy of this software and associated documentation files (the\n// \"Software\"), to deal in the Software without restriction, including\n// without limitation the rights to use, copy, modify, merge, publish,\n// distribute, sublicense, and/or sell copies of the Software, and to permit\n// persons to whom the Software is furnished to do so, subject to the\n// following conditions:\n//\n// The above copyright notice and this permission notice shall be included\n// in all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\n// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\n// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\n// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n// a passthrough stream.\n// basically just the most minimal sort of Transform stream.\n// Every written chunk gets output as-is.\n\n'use strict'\n\nconst { ObjectSetPrototypeOf } = require('../../ours/primordials')\nmodule.exports = PassThrough\nconst Transform = require('./transform')\nObjectSetPrototypeOf(PassThrough.prototype, Transform.prototype)\nObjectSetPrototypeOf(PassThrough, Transform)\nfunction PassThrough(options) {\n if (!(this instanceof PassThrough)) return new PassThrough(options)\n Transform.call(this, options)\n}\nPassThrough.prototype._transform = function (chunk, encoding, cb) {\n cb(null, chunk)\n}\n","/* replacement start */\n\nconst process = require('process/')\n\n/* replacement end */\n// Ported from https://github.com/mafintosh/pump with\n// permission from the author, Mathias Buus (@mafintosh).\n\n;('use strict')\nconst { ArrayIsArray, Promise, SymbolAsyncIterator, SymbolDispose } = require('../../ours/primordials')\nconst eos = require('./end-of-stream')\nconst { once } = require('../../ours/util')\nconst destroyImpl = require('./destroy')\nconst Duplex = require('./duplex')\nconst {\n aggregateTwoErrors,\n codes: {\n ERR_INVALID_ARG_TYPE,\n ERR_INVALID_RETURN_VALUE,\n ERR_MISSING_ARGS,\n ERR_STREAM_DESTROYED,\n ERR_STREAM_PREMATURE_CLOSE\n },\n AbortError\n} = require('../../ours/errors')\nconst { validateFunction, validateAbortSignal } = require('../validators')\nconst {\n isIterable,\n isReadable,\n isReadableNodeStream,\n isNodeStream,\n isTransformStream,\n isWebStream,\n isReadableStream,\n isReadableFinished\n} = require('./utils')\nconst AbortController = globalThis.AbortController || require('abort-controller').AbortController\nlet PassThrough\nlet Readable\nlet addAbortListener\nfunction destroyer(stream, reading, writing) {\n let finished = false\n stream.on('close', () => {\n finished = true\n })\n const cleanup = eos(\n stream,\n {\n readable: reading,\n writable: writing\n },\n (err) => {\n finished = !err\n }\n )\n return {\n destroy: (err) => {\n if (finished) return\n finished = true\n destroyImpl.destroyer(stream, err || new ERR_STREAM_DESTROYED('pipe'))\n },\n cleanup\n }\n}\nfunction popCallback(streams) {\n // Streams should never be an empty array. It should always contain at least\n // a single stream. Therefore optimize for the average case instead of\n // checking for length === 0 as well.\n validateFunction(streams[streams.length - 1], 'streams[stream.length - 1]')\n return streams.pop()\n}\nfunction makeAsyncIterable(val) {\n if (isIterable(val)) {\n return val\n } else if (isReadableNodeStream(val)) {\n // Legacy streams are not Iterable.\n return fromReadable(val)\n }\n throw new ERR_INVALID_ARG_TYPE('val', ['Readable', 'Iterable', 'AsyncIterable'], val)\n}\nasync function* fromReadable(val) {\n if (!Readable) {\n Readable = require('./readable')\n }\n yield* Readable.prototype[SymbolAsyncIterator].call(val)\n}\nasync function pumpToNode(iterable, writable, finish, { end }) {\n let error\n let onresolve = null\n const resume = (err) => {\n if (err) {\n error = err\n }\n if (onresolve) {\n const callback = onresolve\n onresolve = null\n callback()\n }\n }\n const wait = () =>\n new Promise((resolve, reject) => {\n if (error) {\n reject(error)\n } else {\n onresolve = () => {\n if (error) {\n reject(error)\n } else {\n resolve()\n }\n }\n }\n })\n writable.on('drain', resume)\n const cleanup = eos(\n writable,\n {\n readable: false\n },\n resume\n )\n try {\n if (writable.writableNeedDrain) {\n await wait()\n }\n for await (const chunk of iterable) {\n if (!writable.write(chunk)) {\n await wait()\n }\n }\n if (end) {\n writable.end()\n await wait()\n }\n finish()\n } catch (err) {\n finish(error !== err ? aggregateTwoErrors(error, err) : err)\n } finally {\n cleanup()\n writable.off('drain', resume)\n }\n}\nasync function pumpToWeb(readable, writable, finish, { end }) {\n if (isTransformStream(writable)) {\n writable = writable.writable\n }\n // https://streams.spec.whatwg.org/#example-manual-write-with-backpressure\n const writer = writable.getWriter()\n try {\n for await (const chunk of readable) {\n await writer.ready\n writer.write(chunk).catch(() => {})\n }\n await writer.ready\n if (end) {\n await writer.close()\n }\n finish()\n } catch (err) {\n try {\n await writer.abort(err)\n finish(err)\n } catch (err) {\n finish(err)\n }\n }\n}\nfunction pipeline(...streams) {\n return pipelineImpl(streams, once(popCallback(streams)))\n}\nfunction pipelineImpl(streams, callback, opts) {\n if (streams.length === 1 && ArrayIsArray(streams[0])) {\n streams = streams[0]\n }\n if (streams.length < 2) {\n throw new ERR_MISSING_ARGS('streams')\n }\n const ac = new AbortController()\n const signal = ac.signal\n const outerSignal = opts === null || opts === undefined ? undefined : opts.signal\n\n // Need to cleanup event listeners if last stream is readable\n // https://github.com/nodejs/node/issues/35452\n const lastStreamCleanup = []\n validateAbortSignal(outerSignal, 'options.signal')\n function abort() {\n finishImpl(new AbortError())\n }\n addAbortListener = addAbortListener || require('../../ours/util').addAbortListener\n let disposable\n if (outerSignal) {\n disposable = addAbortListener(outerSignal, abort)\n }\n let error\n let value\n const destroys = []\n let finishCount = 0\n function finish(err) {\n finishImpl(err, --finishCount === 0)\n }\n function finishImpl(err, final) {\n var _disposable\n if (err && (!error || error.code === 'ERR_STREAM_PREMATURE_CLOSE')) {\n error = err\n }\n if (!error && !final) {\n return\n }\n while (destroys.length) {\n destroys.shift()(error)\n }\n ;(_disposable = disposable) === null || _disposable === undefined ? undefined : _disposable[SymbolDispose]()\n ac.abort()\n if (final) {\n if (!error) {\n lastStreamCleanup.forEach((fn) => fn())\n }\n process.nextTick(callback, error, value)\n }\n }\n let ret\n for (let i = 0; i < streams.length; i++) {\n const stream = streams[i]\n const reading = i < streams.length - 1\n const writing = i > 0\n const end = reading || (opts === null || opts === undefined ? undefined : opts.end) !== false\n const isLastStream = i === streams.length - 1\n if (isNodeStream(stream)) {\n if (end) {\n const { destroy, cleanup } = destroyer(stream, reading, writing)\n destroys.push(destroy)\n if (isReadable(stream) && isLastStream) {\n lastStreamCleanup.push(cleanup)\n }\n }\n\n // Catch stream errors that occur after pipe/pump has completed.\n function onError(err) {\n if (err && err.name !== 'AbortError' && err.code !== 'ERR_STREAM_PREMATURE_CLOSE') {\n finish(err)\n }\n }\n stream.on('error', onError)\n if (isReadable(stream) && isLastStream) {\n lastStreamCleanup.push(() => {\n stream.removeListener('error', onError)\n })\n }\n }\n if (i === 0) {\n if (typeof stream === 'function') {\n ret = stream({\n signal\n })\n if (!isIterable(ret)) {\n throw new ERR_INVALID_RETURN_VALUE('Iterable, AsyncIterable or Stream', 'source', ret)\n }\n } else if (isIterable(stream) || isReadableNodeStream(stream) || isTransformStream(stream)) {\n ret = stream\n } else {\n ret = Duplex.from(stream)\n }\n } else if (typeof stream === 'function') {\n if (isTransformStream(ret)) {\n var _ret\n ret = makeAsyncIterable((_ret = ret) === null || _ret === undefined ? undefined : _ret.readable)\n } else {\n ret = makeAsyncIterable(ret)\n }\n ret = stream(ret, {\n signal\n })\n if (reading) {\n if (!isIterable(ret, true)) {\n throw new ERR_INVALID_RETURN_VALUE('AsyncIterable', `transform[${i - 1}]`, ret)\n }\n } else {\n var _ret2\n if (!PassThrough) {\n PassThrough = require('./passthrough')\n }\n\n // If the last argument to pipeline is not a stream\n // we must create a proxy stream so that pipeline(...)\n // always returns a stream which can be further\n // composed through `.pipe(stream)`.\n\n const pt = new PassThrough({\n objectMode: true\n })\n\n // Handle Promises/A+ spec, `then` could be a getter that throws on\n // second use.\n const then = (_ret2 = ret) === null || _ret2 === undefined ? undefined : _ret2.then\n if (typeof then === 'function') {\n finishCount++\n then.call(\n ret,\n (val) => {\n value = val\n if (val != null) {\n pt.write(val)\n }\n if (end) {\n pt.end()\n }\n process.nextTick(finish)\n },\n (err) => {\n pt.destroy(err)\n process.nextTick(finish, err)\n }\n )\n } else if (isIterable(ret, true)) {\n finishCount++\n pumpToNode(ret, pt, finish, {\n end\n })\n } else if (isReadableStream(ret) || isTransformStream(ret)) {\n const toRead = ret.readable || ret\n finishCount++\n pumpToNode(toRead, pt, finish, {\n end\n })\n } else {\n throw new ERR_INVALID_RETURN_VALUE('AsyncIterable or Promise', 'destination', ret)\n }\n ret = pt\n const { destroy, cleanup } = destroyer(ret, false, true)\n destroys.push(destroy)\n if (isLastStream) {\n lastStreamCleanup.push(cleanup)\n }\n }\n } else if (isNodeStream(stream)) {\n if (isReadableNodeStream(ret)) {\n finishCount += 2\n const cleanup = pipe(ret, stream, finish, {\n end\n })\n if (isReadable(stream) && isLastStream) {\n lastStreamCleanup.push(cleanup)\n }\n } else if (isTransformStream(ret) || isReadableStream(ret)) {\n const toRead = ret.readable || ret\n finishCount++\n pumpToNode(toRead, stream, finish, {\n end\n })\n } else if (isIterable(ret)) {\n finishCount++\n pumpToNode(ret, stream, finish, {\n end\n })\n } else {\n throw new ERR_INVALID_ARG_TYPE(\n 'val',\n ['Readable', 'Iterable', 'AsyncIterable', 'ReadableStream', 'TransformStream'],\n ret\n )\n }\n ret = stream\n } else if (isWebStream(stream)) {\n if (isReadableNodeStream(ret)) {\n finishCount++\n pumpToWeb(makeAsyncIterable(ret), stream, finish, {\n end\n })\n } else if (isReadableStream(ret) || isIterable(ret)) {\n finishCount++\n pumpToWeb(ret, stream, finish, {\n end\n })\n } else if (isTransformStream(ret)) {\n finishCount++\n pumpToWeb(ret.readable, stream, finish, {\n end\n })\n } else {\n throw new ERR_INVALID_ARG_TYPE(\n 'val',\n ['Readable', 'Iterable', 'AsyncIterable', 'ReadableStream', 'TransformStream'],\n ret\n )\n }\n ret = stream\n } else {\n ret = Duplex.from(stream)\n }\n }\n if (\n (signal !== null && signal !== undefined && signal.aborted) ||\n (outerSignal !== null && outerSignal !== undefined && outerSignal.aborted)\n ) {\n process.nextTick(abort)\n }\n return ret\n}\nfunction pipe(src, dst, finish, { end }) {\n let ended = false\n dst.on('close', () => {\n if (!ended) {\n // Finish if the destination closes before the source has completed.\n finish(new ERR_STREAM_PREMATURE_CLOSE())\n }\n })\n src.pipe(dst, {\n end: false\n }) // If end is true we already will have a listener to end dst.\n\n if (end) {\n // Compat. Before node v10.12.0 stdio used to throw an error so\n // pipe() did/does not end() stdio destinations.\n // Now they allow it but \"secretly\" don't close the underlying fd.\n\n function endFn() {\n ended = true\n dst.end()\n }\n if (isReadableFinished(src)) {\n // End the destination if the source has already ended.\n process.nextTick(endFn)\n } else {\n src.once('end', endFn)\n }\n } else {\n finish()\n }\n eos(\n src,\n {\n readable: true,\n writable: false\n },\n (err) => {\n const rState = src._readableState\n if (\n err &&\n err.code === 'ERR_STREAM_PREMATURE_CLOSE' &&\n rState &&\n rState.ended &&\n !rState.errored &&\n !rState.errorEmitted\n ) {\n // Some readable streams will emit 'close' before 'end'. However, since\n // this is on the readable side 'end' should still be emitted if the\n // stream has been ended and no error emitted. This should be allowed in\n // favor of backwards compatibility. Since the stream is piped to a\n // destination this should not result in any observable difference.\n // We don't need to check if this is a writable premature close since\n // eos will only fail with premature close on the reading side for\n // duplex streams.\n src.once('end', finish).once('error', finish)\n } else {\n finish(err)\n }\n }\n )\n return eos(\n dst,\n {\n readable: false,\n writable: true\n },\n finish\n )\n}\nmodule.exports = {\n pipelineImpl,\n pipeline\n}\n","/* replacement start */\n\nconst process = require('process/')\n\n/* replacement end */\n// Copyright Joyent, Inc. and other Node contributors.\n//\n// Permission is hereby granted, free of charge, to any person obtaining a\n// copy of this software and associated documentation files (the\n// \"Software\"), to deal in the Software without restriction, including\n// without limitation the rights to use, copy, modify, merge, publish,\n// distribute, sublicense, and/or sell copies of the Software, and to permit\n// persons to whom the Software is furnished to do so, subject to the\n// following conditions:\n//\n// The above copyright notice and this permission notice shall be included\n// in all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\n// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\n// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\n// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n;('use strict')\nconst {\n ArrayPrototypeIndexOf,\n NumberIsInteger,\n NumberIsNaN,\n NumberParseInt,\n ObjectDefineProperties,\n ObjectKeys,\n ObjectSetPrototypeOf,\n Promise,\n SafeSet,\n SymbolAsyncDispose,\n SymbolAsyncIterator,\n Symbol\n} = require('../../ours/primordials')\nmodule.exports = Readable\nReadable.ReadableState = ReadableState\nconst { EventEmitter: EE } = require('events')\nconst { Stream, prependListener } = require('./legacy')\nconst { Buffer } = require('buffer')\nconst { addAbortSignal } = require('./add-abort-signal')\nconst eos = require('./end-of-stream')\nlet debug = require('../../ours/util').debuglog('stream', (fn) => {\n debug = fn\n})\nconst BufferList = require('./buffer_list')\nconst destroyImpl = require('./destroy')\nconst { getHighWaterMark, getDefaultHighWaterMark } = require('./state')\nconst {\n aggregateTwoErrors,\n codes: {\n ERR_INVALID_ARG_TYPE,\n ERR_METHOD_NOT_IMPLEMENTED,\n ERR_OUT_OF_RANGE,\n ERR_STREAM_PUSH_AFTER_EOF,\n ERR_STREAM_UNSHIFT_AFTER_END_EVENT\n },\n AbortError\n} = require('../../ours/errors')\nconst { validateObject } = require('../validators')\nconst kPaused = Symbol('kPaused')\nconst { StringDecoder } = require('string_decoder')\nconst from = require('./from')\nObjectSetPrototypeOf(Readable.prototype, Stream.prototype)\nObjectSetPrototypeOf(Readable, Stream)\nconst nop = () => {}\nconst { errorOrDestroy } = destroyImpl\nconst kObjectMode = 1 << 0\nconst kEnded = 1 << 1\nconst kEndEmitted = 1 << 2\nconst kReading = 1 << 3\nconst kConstructed = 1 << 4\nconst kSync = 1 << 5\nconst kNeedReadable = 1 << 6\nconst kEmittedReadable = 1 << 7\nconst kReadableListening = 1 << 8\nconst kResumeScheduled = 1 << 9\nconst kErrorEmitted = 1 << 10\nconst kEmitClose = 1 << 11\nconst kAutoDestroy = 1 << 12\nconst kDestroyed = 1 << 13\nconst kClosed = 1 << 14\nconst kCloseEmitted = 1 << 15\nconst kMultiAwaitDrain = 1 << 16\nconst kReadingMore = 1 << 17\nconst kDataEmitted = 1 << 18\n\n// TODO(benjamingr) it is likely slower to do it this way than with free functions\nfunction makeBitMapDescriptor(bit) {\n return {\n enumerable: false,\n get() {\n return (this.state & bit) !== 0\n },\n set(value) {\n if (value) this.state |= bit\n else this.state &= ~bit\n }\n }\n}\nObjectDefineProperties(ReadableState.prototype, {\n objectMode: makeBitMapDescriptor(kObjectMode),\n ended: makeBitMapDescriptor(kEnded),\n endEmitted: makeBitMapDescriptor(kEndEmitted),\n reading: makeBitMapDescriptor(kReading),\n // Stream is still being constructed and cannot be\n // destroyed until construction finished or failed.\n // Async construction is opt in, therefore we start as\n // constructed.\n constructed: makeBitMapDescriptor(kConstructed),\n // A flag to be able to tell if the event 'readable'/'data' is emitted\n // immediately, or on a later tick. We set this to true at first, because\n // any actions that shouldn't happen until \"later\" should generally also\n // not happen before the first read call.\n sync: makeBitMapDescriptor(kSync),\n // Whenever we return null, then we set a flag to say\n // that we're awaiting a 'readable' event emission.\n needReadable: makeBitMapDescriptor(kNeedReadable),\n emittedReadable: makeBitMapDescriptor(kEmittedReadable),\n readableListening: makeBitMapDescriptor(kReadableListening),\n resumeScheduled: makeBitMapDescriptor(kResumeScheduled),\n // True if the error was already emitted and should not be thrown again.\n errorEmitted: makeBitMapDescriptor(kErrorEmitted),\n emitClose: makeBitMapDescriptor(kEmitClose),\n autoDestroy: makeBitMapDescriptor(kAutoDestroy),\n // Has it been destroyed.\n destroyed: makeBitMapDescriptor(kDestroyed),\n // Indicates whether the stream has finished destroying.\n closed: makeBitMapDescriptor(kClosed),\n // True if close has been emitted or would have been emitted\n // depending on emitClose.\n closeEmitted: makeBitMapDescriptor(kCloseEmitted),\n multiAwaitDrain: makeBitMapDescriptor(kMultiAwaitDrain),\n // If true, a maybeReadMore has been scheduled.\n readingMore: makeBitMapDescriptor(kReadingMore),\n dataEmitted: makeBitMapDescriptor(kDataEmitted)\n})\nfunction ReadableState(options, stream, isDuplex) {\n // Duplex streams are both readable and writable, but share\n // the same options object.\n // However, some cases require setting options to different\n // values for the readable and the writable sides of the duplex stream.\n // These options can be provided separately as readableXXX and writableXXX.\n if (typeof isDuplex !== 'boolean') isDuplex = stream instanceof require('./duplex')\n\n // Bit map field to store ReadableState more effciently with 1 bit per field\n // instead of a V8 slot per field.\n this.state = kEmitClose | kAutoDestroy | kConstructed | kSync\n // Object stream flag. Used to make read(n) ignore n and to\n // make all the buffer merging and length checks go away.\n if (options && options.objectMode) this.state |= kObjectMode\n if (isDuplex && options && options.readableObjectMode) this.state |= kObjectMode\n\n // The point at which it stops calling _read() to fill the buffer\n // Note: 0 is a valid value, means \"don't call _read preemptively ever\"\n this.highWaterMark = options\n ? getHighWaterMark(this, options, 'readableHighWaterMark', isDuplex)\n : getDefaultHighWaterMark(false)\n\n // A linked list is used to store data chunks instead of an array because the\n // linked list can remove elements from the beginning faster than\n // array.shift().\n this.buffer = new BufferList()\n this.length = 0\n this.pipes = []\n this.flowing = null\n this[kPaused] = null\n\n // Should close be emitted on destroy. Defaults to true.\n if (options && options.emitClose === false) this.state &= ~kEmitClose\n\n // Should .destroy() be called after 'end' (and potentially 'finish').\n if (options && options.autoDestroy === false) this.state &= ~kAutoDestroy\n\n // Indicates whether the stream has errored. When true no further\n // _read calls, 'data' or 'readable' events should occur. This is needed\n // since when autoDestroy is disabled we need a way to tell whether the\n // stream has failed.\n this.errored = null\n\n // Crypto is kind of old and crusty. Historically, its default string\n // encoding is 'binary' so we have to make this configurable.\n // Everything else in the universe uses 'utf8', though.\n this.defaultEncoding = (options && options.defaultEncoding) || 'utf8'\n\n // Ref the piped dest which we need a drain event on it\n // type: null | Writable | Set.\n this.awaitDrainWriters = null\n this.decoder = null\n this.encoding = null\n if (options && options.encoding) {\n this.decoder = new StringDecoder(options.encoding)\n this.encoding = options.encoding\n }\n}\nfunction Readable(options) {\n if (!(this instanceof Readable)) return new Readable(options)\n\n // Checking for a Stream.Duplex instance is faster here instead of inside\n // the ReadableState constructor, at least with V8 6.5.\n const isDuplex = this instanceof require('./duplex')\n this._readableState = new ReadableState(options, this, isDuplex)\n if (options) {\n if (typeof options.read === 'function') this._read = options.read\n if (typeof options.destroy === 'function') this._destroy = options.destroy\n if (typeof options.construct === 'function') this._construct = options.construct\n if (options.signal && !isDuplex) addAbortSignal(options.signal, this)\n }\n Stream.call(this, options)\n destroyImpl.construct(this, () => {\n if (this._readableState.needReadable) {\n maybeReadMore(this, this._readableState)\n }\n })\n}\nReadable.prototype.destroy = destroyImpl.destroy\nReadable.prototype._undestroy = destroyImpl.undestroy\nReadable.prototype._destroy = function (err, cb) {\n cb(err)\n}\nReadable.prototype[EE.captureRejectionSymbol] = function (err) {\n this.destroy(err)\n}\nReadable.prototype[SymbolAsyncDispose] = function () {\n let error\n if (!this.destroyed) {\n error = this.readableEnded ? null : new AbortError()\n this.destroy(error)\n }\n return new Promise((resolve, reject) => eos(this, (err) => (err && err !== error ? reject(err) : resolve(null))))\n}\n\n// Manually shove something into the read() buffer.\n// This returns true if the highWaterMark has not been hit yet,\n// similar to how Writable.write() returns true if you should\n// write() some more.\nReadable.prototype.push = function (chunk, encoding) {\n return readableAddChunk(this, chunk, encoding, false)\n}\n\n// Unshift should *always* be something directly out of read().\nReadable.prototype.unshift = function (chunk, encoding) {\n return readableAddChunk(this, chunk, encoding, true)\n}\nfunction readableAddChunk(stream, chunk, encoding, addToFront) {\n debug('readableAddChunk', chunk)\n const state = stream._readableState\n let err\n if ((state.state & kObjectMode) === 0) {\n if (typeof chunk === 'string') {\n encoding = encoding || state.defaultEncoding\n if (state.encoding !== encoding) {\n if (addToFront && state.encoding) {\n // When unshifting, if state.encoding is set, we have to save\n // the string in the BufferList with the state encoding.\n chunk = Buffer.from(chunk, encoding).toString(state.encoding)\n } else {\n chunk = Buffer.from(chunk, encoding)\n encoding = ''\n }\n }\n } else if (chunk instanceof Buffer) {\n encoding = ''\n } else if (Stream._isUint8Array(chunk)) {\n chunk = Stream._uint8ArrayToBuffer(chunk)\n encoding = ''\n } else if (chunk != null) {\n err = new ERR_INVALID_ARG_TYPE('chunk', ['string', 'Buffer', 'Uint8Array'], chunk)\n }\n }\n if (err) {\n errorOrDestroy(stream, err)\n } else if (chunk === null) {\n state.state &= ~kReading\n onEofChunk(stream, state)\n } else if ((state.state & kObjectMode) !== 0 || (chunk && chunk.length > 0)) {\n if (addToFront) {\n if ((state.state & kEndEmitted) !== 0) errorOrDestroy(stream, new ERR_STREAM_UNSHIFT_AFTER_END_EVENT())\n else if (state.destroyed || state.errored) return false\n else addChunk(stream, state, chunk, true)\n } else if (state.ended) {\n errorOrDestroy(stream, new ERR_STREAM_PUSH_AFTER_EOF())\n } else if (state.destroyed || state.errored) {\n return false\n } else {\n state.state &= ~kReading\n if (state.decoder && !encoding) {\n chunk = state.decoder.write(chunk)\n if (state.objectMode || chunk.length !== 0) addChunk(stream, state, chunk, false)\n else maybeReadMore(stream, state)\n } else {\n addChunk(stream, state, chunk, false)\n }\n }\n } else if (!addToFront) {\n state.state &= ~kReading\n maybeReadMore(stream, state)\n }\n\n // We can push more data if we are below the highWaterMark.\n // Also, if we have no data yet, we can stand some more bytes.\n // This is to work around cases where hwm=0, such as the repl.\n return !state.ended && (state.length < state.highWaterMark || state.length === 0)\n}\nfunction addChunk(stream, state, chunk, addToFront) {\n if (state.flowing && state.length === 0 && !state.sync && stream.listenerCount('data') > 0) {\n // Use the guard to avoid creating `Set()` repeatedly\n // when we have multiple pipes.\n if ((state.state & kMultiAwaitDrain) !== 0) {\n state.awaitDrainWriters.clear()\n } else {\n state.awaitDrainWriters = null\n }\n state.dataEmitted = true\n stream.emit('data', chunk)\n } else {\n // Update the buffer info.\n state.length += state.objectMode ? 1 : chunk.length\n if (addToFront) state.buffer.unshift(chunk)\n else state.buffer.push(chunk)\n if ((state.state & kNeedReadable) !== 0) emitReadable(stream)\n }\n maybeReadMore(stream, state)\n}\nReadable.prototype.isPaused = function () {\n const state = this._readableState\n return state[kPaused] === true || state.flowing === false\n}\n\n// Backwards compatibility.\nReadable.prototype.setEncoding = function (enc) {\n const decoder = new StringDecoder(enc)\n this._readableState.decoder = decoder\n // If setEncoding(null), decoder.encoding equals utf8.\n this._readableState.encoding = this._readableState.decoder.encoding\n const buffer = this._readableState.buffer\n // Iterate over current buffer to convert already stored Buffers:\n let content = ''\n for (const data of buffer) {\n content += decoder.write(data)\n }\n buffer.clear()\n if (content !== '') buffer.push(content)\n this._readableState.length = content.length\n return this\n}\n\n// Don't raise the hwm > 1GB.\nconst MAX_HWM = 0x40000000\nfunction computeNewHighWaterMark(n) {\n if (n > MAX_HWM) {\n throw new ERR_OUT_OF_RANGE('size', '<= 1GiB', n)\n } else {\n // Get the next highest power of 2 to prevent increasing hwm excessively in\n // tiny amounts.\n n--\n n |= n >>> 1\n n |= n >>> 2\n n |= n >>> 4\n n |= n >>> 8\n n |= n >>> 16\n n++\n }\n return n\n}\n\n// This function is designed to be inlinable, so please take care when making\n// changes to the function body.\nfunction howMuchToRead(n, state) {\n if (n <= 0 || (state.length === 0 && state.ended)) return 0\n if ((state.state & kObjectMode) !== 0) return 1\n if (NumberIsNaN(n)) {\n // Only flow one buffer at a time.\n if (state.flowing && state.length) return state.buffer.first().length\n return state.length\n }\n if (n <= state.length) return n\n return state.ended ? state.length : 0\n}\n\n// You can override either this method, or the async _read(n) below.\nReadable.prototype.read = function (n) {\n debug('read', n)\n // Same as parseInt(undefined, 10), however V8 7.3 performance regressed\n // in this scenario, so we are doing it manually.\n if (n === undefined) {\n n = NaN\n } else if (!NumberIsInteger(n)) {\n n = NumberParseInt(n, 10)\n }\n const state = this._readableState\n const nOrig = n\n\n // If we're asking for more than the current hwm, then raise the hwm.\n if (n > state.highWaterMark) state.highWaterMark = computeNewHighWaterMark(n)\n if (n !== 0) state.state &= ~kEmittedReadable\n\n // If we're doing read(0) to trigger a readable event, but we\n // already have a bunch of data in the buffer, then just trigger\n // the 'readable' event and move on.\n if (\n n === 0 &&\n state.needReadable &&\n ((state.highWaterMark !== 0 ? state.length >= state.highWaterMark : state.length > 0) || state.ended)\n ) {\n debug('read: emitReadable', state.length, state.ended)\n if (state.length === 0 && state.ended) endReadable(this)\n else emitReadable(this)\n return null\n }\n n = howMuchToRead(n, state)\n\n // If we've ended, and we're now clear, then finish it up.\n if (n === 0 && state.ended) {\n if (state.length === 0) endReadable(this)\n return null\n }\n\n // All the actual chunk generation logic needs to be\n // *below* the call to _read. The reason is that in certain\n // synthetic stream cases, such as passthrough streams, _read\n // may be a completely synchronous operation which may change\n // the state of the read buffer, providing enough data when\n // before there was *not* enough.\n //\n // So, the steps are:\n // 1. Figure out what the state of things will be after we do\n // a read from the buffer.\n //\n // 2. If that resulting state will trigger a _read, then call _read.\n // Note that this may be asynchronous, or synchronous. Yes, it is\n // deeply ugly to write APIs this way, but that still doesn't mean\n // that the Readable class should behave improperly, as streams are\n // designed to be sync/async agnostic.\n // Take note if the _read call is sync or async (ie, if the read call\n // has returned yet), so that we know whether or not it's safe to emit\n // 'readable' etc.\n //\n // 3. Actually pull the requested chunks out of the buffer and return.\n\n // if we need a readable event, then we need to do some reading.\n let doRead = (state.state & kNeedReadable) !== 0\n debug('need readable', doRead)\n\n // If we currently have less than the highWaterMark, then also read some.\n if (state.length === 0 || state.length - n < state.highWaterMark) {\n doRead = true\n debug('length less than watermark', doRead)\n }\n\n // However, if we've ended, then there's no point, if we're already\n // reading, then it's unnecessary, if we're constructing we have to wait,\n // and if we're destroyed or errored, then it's not allowed,\n if (state.ended || state.reading || state.destroyed || state.errored || !state.constructed) {\n doRead = false\n debug('reading, ended or constructing', doRead)\n } else if (doRead) {\n debug('do read')\n state.state |= kReading | kSync\n // If the length is currently zero, then we *need* a readable event.\n if (state.length === 0) state.state |= kNeedReadable\n\n // Call internal read method\n try {\n this._read(state.highWaterMark)\n } catch (err) {\n errorOrDestroy(this, err)\n }\n state.state &= ~kSync\n\n // If _read pushed data synchronously, then `reading` will be false,\n // and we need to re-evaluate how much data we can return to the user.\n if (!state.reading) n = howMuchToRead(nOrig, state)\n }\n let ret\n if (n > 0) ret = fromList(n, state)\n else ret = null\n if (ret === null) {\n state.needReadable = state.length <= state.highWaterMark\n n = 0\n } else {\n state.length -= n\n if (state.multiAwaitDrain) {\n state.awaitDrainWriters.clear()\n } else {\n state.awaitDrainWriters = null\n }\n }\n if (state.length === 0) {\n // If we have nothing in the buffer, then we want to know\n // as soon as we *do* get something into the buffer.\n if (!state.ended) state.needReadable = true\n\n // If we tried to read() past the EOF, then emit end on the next tick.\n if (nOrig !== n && state.ended) endReadable(this)\n }\n if (ret !== null && !state.errorEmitted && !state.closeEmitted) {\n state.dataEmitted = true\n this.emit('data', ret)\n }\n return ret\n}\nfunction onEofChunk(stream, state) {\n debug('onEofChunk')\n if (state.ended) return\n if (state.decoder) {\n const chunk = state.decoder.end()\n if (chunk && chunk.length) {\n state.buffer.push(chunk)\n state.length += state.objectMode ? 1 : chunk.length\n }\n }\n state.ended = true\n if (state.sync) {\n // If we are sync, wait until next tick to emit the data.\n // Otherwise we risk emitting data in the flow()\n // the readable code triggers during a read() call.\n emitReadable(stream)\n } else {\n // Emit 'readable' now to make sure it gets picked up.\n state.needReadable = false\n state.emittedReadable = true\n // We have to emit readable now that we are EOF. Modules\n // in the ecosystem (e.g. dicer) rely on this event being sync.\n emitReadable_(stream)\n }\n}\n\n// Don't emit readable right away in sync mode, because this can trigger\n// another read() call => stack overflow. This way, it might trigger\n// a nextTick recursion warning, but that's not so bad.\nfunction emitReadable(stream) {\n const state = stream._readableState\n debug('emitReadable', state.needReadable, state.emittedReadable)\n state.needReadable = false\n if (!state.emittedReadable) {\n debug('emitReadable', state.flowing)\n state.emittedReadable = true\n process.nextTick(emitReadable_, stream)\n }\n}\nfunction emitReadable_(stream) {\n const state = stream._readableState\n debug('emitReadable_', state.destroyed, state.length, state.ended)\n if (!state.destroyed && !state.errored && (state.length || state.ended)) {\n stream.emit('readable')\n state.emittedReadable = false\n }\n\n // The stream needs another readable event if:\n // 1. It is not flowing, as the flow mechanism will take\n // care of it.\n // 2. It is not ended.\n // 3. It is below the highWaterMark, so we can schedule\n // another readable later.\n state.needReadable = !state.flowing && !state.ended && state.length <= state.highWaterMark\n flow(stream)\n}\n\n// At this point, the user has presumably seen the 'readable' event,\n// and called read() to consume some data. that may have triggered\n// in turn another _read(n) call, in which case reading = true if\n// it's in progress.\n// However, if we're not ended, or reading, and the length < hwm,\n// then go ahead and try to read some more preemptively.\nfunction maybeReadMore(stream, state) {\n if (!state.readingMore && state.constructed) {\n state.readingMore = true\n process.nextTick(maybeReadMore_, stream, state)\n }\n}\nfunction maybeReadMore_(stream, state) {\n // Attempt to read more data if we should.\n //\n // The conditions for reading more data are (one of):\n // - Not enough data buffered (state.length < state.highWaterMark). The loop\n // is responsible for filling the buffer with enough data if such data\n // is available. If highWaterMark is 0 and we are not in the flowing mode\n // we should _not_ attempt to buffer any extra data. We'll get more data\n // when the stream consumer calls read() instead.\n // - No data in the buffer, and the stream is in flowing mode. In this mode\n // the loop below is responsible for ensuring read() is called. Failing to\n // call read here would abort the flow and there's no other mechanism for\n // continuing the flow if the stream consumer has just subscribed to the\n // 'data' event.\n //\n // In addition to the above conditions to keep reading data, the following\n // conditions prevent the data from being read:\n // - The stream has ended (state.ended).\n // - There is already a pending 'read' operation (state.reading). This is a\n // case where the stream has called the implementation defined _read()\n // method, but they are processing the call asynchronously and have _not_\n // called push() with new data. In this case we skip performing more\n // read()s. The execution ends in this method again after the _read() ends\n // up calling push() with more data.\n while (\n !state.reading &&\n !state.ended &&\n (state.length < state.highWaterMark || (state.flowing && state.length === 0))\n ) {\n const len = state.length\n debug('maybeReadMore read 0')\n stream.read(0)\n if (len === state.length)\n // Didn't get any data, stop spinning.\n break\n }\n state.readingMore = false\n}\n\n// Abstract method. to be overridden in specific implementation classes.\n// call cb(er, data) where data is <= n in length.\n// for virtual (non-string, non-buffer) streams, \"length\" is somewhat\n// arbitrary, and perhaps not very meaningful.\nReadable.prototype._read = function (n) {\n throw new ERR_METHOD_NOT_IMPLEMENTED('_read()')\n}\nReadable.prototype.pipe = function (dest, pipeOpts) {\n const src = this\n const state = this._readableState\n if (state.pipes.length === 1) {\n if (!state.multiAwaitDrain) {\n state.multiAwaitDrain = true\n state.awaitDrainWriters = new SafeSet(state.awaitDrainWriters ? [state.awaitDrainWriters] : [])\n }\n }\n state.pipes.push(dest)\n debug('pipe count=%d opts=%j', state.pipes.length, pipeOpts)\n const doEnd = (!pipeOpts || pipeOpts.end !== false) && dest !== process.stdout && dest !== process.stderr\n const endFn = doEnd ? onend : unpipe\n if (state.endEmitted) process.nextTick(endFn)\n else src.once('end', endFn)\n dest.on('unpipe', onunpipe)\n function onunpipe(readable, unpipeInfo) {\n debug('onunpipe')\n if (readable === src) {\n if (unpipeInfo && unpipeInfo.hasUnpiped === false) {\n unpipeInfo.hasUnpiped = true\n cleanup()\n }\n }\n }\n function onend() {\n debug('onend')\n dest.end()\n }\n let ondrain\n let cleanedUp = false\n function cleanup() {\n debug('cleanup')\n // Cleanup event handlers once the pipe is broken.\n dest.removeListener('close', onclose)\n dest.removeListener('finish', onfinish)\n if (ondrain) {\n dest.removeListener('drain', ondrain)\n }\n dest.removeListener('error', onerror)\n dest.removeListener('unpipe', onunpipe)\n src.removeListener('end', onend)\n src.removeListener('end', unpipe)\n src.removeListener('data', ondata)\n cleanedUp = true\n\n // If the reader is waiting for a drain event from this\n // specific writer, then it would cause it to never start\n // flowing again.\n // So, if this is awaiting a drain, then we just call it now.\n // If we don't know, then assume that we are waiting for one.\n if (ondrain && state.awaitDrainWriters && (!dest._writableState || dest._writableState.needDrain)) ondrain()\n }\n function pause() {\n // If the user unpiped during `dest.write()`, it is possible\n // to get stuck in a permanently paused state if that write\n // also returned false.\n // => Check whether `dest` is still a piping destination.\n if (!cleanedUp) {\n if (state.pipes.length === 1 && state.pipes[0] === dest) {\n debug('false write response, pause', 0)\n state.awaitDrainWriters = dest\n state.multiAwaitDrain = false\n } else if (state.pipes.length > 1 && state.pipes.includes(dest)) {\n debug('false write response, pause', state.awaitDrainWriters.size)\n state.awaitDrainWriters.add(dest)\n }\n src.pause()\n }\n if (!ondrain) {\n // When the dest drains, it reduces the awaitDrain counter\n // on the source. This would be more elegant with a .once()\n // handler in flow(), but adding and removing repeatedly is\n // too slow.\n ondrain = pipeOnDrain(src, dest)\n dest.on('drain', ondrain)\n }\n }\n src.on('data', ondata)\n function ondata(chunk) {\n debug('ondata')\n const ret = dest.write(chunk)\n debug('dest.write', ret)\n if (ret === false) {\n pause()\n }\n }\n\n // If the dest has an error, then stop piping into it.\n // However, don't suppress the throwing behavior for this.\n function onerror(er) {\n debug('onerror', er)\n unpipe()\n dest.removeListener('error', onerror)\n if (dest.listenerCount('error') === 0) {\n const s = dest._writableState || dest._readableState\n if (s && !s.errorEmitted) {\n // User incorrectly emitted 'error' directly on the stream.\n errorOrDestroy(dest, er)\n } else {\n dest.emit('error', er)\n }\n }\n }\n\n // Make sure our error handler is attached before userland ones.\n prependListener(dest, 'error', onerror)\n\n // Both close and finish should trigger unpipe, but only once.\n function onclose() {\n dest.removeListener('finish', onfinish)\n unpipe()\n }\n dest.once('close', onclose)\n function onfinish() {\n debug('onfinish')\n dest.removeListener('close', onclose)\n unpipe()\n }\n dest.once('finish', onfinish)\n function unpipe() {\n debug('unpipe')\n src.unpipe(dest)\n }\n\n // Tell the dest that it's being piped to.\n dest.emit('pipe', src)\n\n // Start the flow if it hasn't been started already.\n\n if (dest.writableNeedDrain === true) {\n pause()\n } else if (!state.flowing) {\n debug('pipe resume')\n src.resume()\n }\n return dest\n}\nfunction pipeOnDrain(src, dest) {\n return function pipeOnDrainFunctionResult() {\n const state = src._readableState\n\n // `ondrain` will call directly,\n // `this` maybe not a reference to dest,\n // so we use the real dest here.\n if (state.awaitDrainWriters === dest) {\n debug('pipeOnDrain', 1)\n state.awaitDrainWriters = null\n } else if (state.multiAwaitDrain) {\n debug('pipeOnDrain', state.awaitDrainWriters.size)\n state.awaitDrainWriters.delete(dest)\n }\n if ((!state.awaitDrainWriters || state.awaitDrainWriters.size === 0) && src.listenerCount('data')) {\n src.resume()\n }\n }\n}\nReadable.prototype.unpipe = function (dest) {\n const state = this._readableState\n const unpipeInfo = {\n hasUnpiped: false\n }\n\n // If we're not piping anywhere, then do nothing.\n if (state.pipes.length === 0) return this\n if (!dest) {\n // remove all.\n const dests = state.pipes\n state.pipes = []\n this.pause()\n for (let i = 0; i < dests.length; i++)\n dests[i].emit('unpipe', this, {\n hasUnpiped: false\n })\n return this\n }\n\n // Try to find the right one.\n const index = ArrayPrototypeIndexOf(state.pipes, dest)\n if (index === -1) return this\n state.pipes.splice(index, 1)\n if (state.pipes.length === 0) this.pause()\n dest.emit('unpipe', this, unpipeInfo)\n return this\n}\n\n// Set up data events if they are asked for\n// Ensure readable listeners eventually get something.\nReadable.prototype.on = function (ev, fn) {\n const res = Stream.prototype.on.call(this, ev, fn)\n const state = this._readableState\n if (ev === 'data') {\n // Update readableListening so that resume() may be a no-op\n // a few lines down. This is needed to support once('readable').\n state.readableListening = this.listenerCount('readable') > 0\n\n // Try start flowing on next tick if stream isn't explicitly paused.\n if (state.flowing !== false) this.resume()\n } else if (ev === 'readable') {\n if (!state.endEmitted && !state.readableListening) {\n state.readableListening = state.needReadable = true\n state.flowing = false\n state.emittedReadable = false\n debug('on readable', state.length, state.reading)\n if (state.length) {\n emitReadable(this)\n } else if (!state.reading) {\n process.nextTick(nReadingNextTick, this)\n }\n }\n }\n return res\n}\nReadable.prototype.addListener = Readable.prototype.on\nReadable.prototype.removeListener = function (ev, fn) {\n const res = Stream.prototype.removeListener.call(this, ev, fn)\n if (ev === 'readable') {\n // We need to check if there is someone still listening to\n // readable and reset the state. However this needs to happen\n // after readable has been emitted but before I/O (nextTick) to\n // support once('readable', fn) cycles. This means that calling\n // resume within the same tick will have no\n // effect.\n process.nextTick(updateReadableListening, this)\n }\n return res\n}\nReadable.prototype.off = Readable.prototype.removeListener\nReadable.prototype.removeAllListeners = function (ev) {\n const res = Stream.prototype.removeAllListeners.apply(this, arguments)\n if (ev === 'readable' || ev === undefined) {\n // We need to check if there is someone still listening to\n // readable and reset the state. However this needs to happen\n // after readable has been emitted but before I/O (nextTick) to\n // support once('readable', fn) cycles. This means that calling\n // resume within the same tick will have no\n // effect.\n process.nextTick(updateReadableListening, this)\n }\n return res\n}\nfunction updateReadableListening(self) {\n const state = self._readableState\n state.readableListening = self.listenerCount('readable') > 0\n if (state.resumeScheduled && state[kPaused] === false) {\n // Flowing needs to be set to true now, otherwise\n // the upcoming resume will not flow.\n state.flowing = true\n\n // Crude way to check if we should resume.\n } else if (self.listenerCount('data') > 0) {\n self.resume()\n } else if (!state.readableListening) {\n state.flowing = null\n }\n}\nfunction nReadingNextTick(self) {\n debug('readable nexttick read 0')\n self.read(0)\n}\n\n// pause() and resume() are remnants of the legacy readable stream API\n// If the user uses them, then switch into old mode.\nReadable.prototype.resume = function () {\n const state = this._readableState\n if (!state.flowing) {\n debug('resume')\n // We flow only if there is no one listening\n // for readable, but we still have to call\n // resume().\n state.flowing = !state.readableListening\n resume(this, state)\n }\n state[kPaused] = false\n return this\n}\nfunction resume(stream, state) {\n if (!state.resumeScheduled) {\n state.resumeScheduled = true\n process.nextTick(resume_, stream, state)\n }\n}\nfunction resume_(stream, state) {\n debug('resume', state.reading)\n if (!state.reading) {\n stream.read(0)\n }\n state.resumeScheduled = false\n stream.emit('resume')\n flow(stream)\n if (state.flowing && !state.reading) stream.read(0)\n}\nReadable.prototype.pause = function () {\n debug('call pause flowing=%j', this._readableState.flowing)\n if (this._readableState.flowing !== false) {\n debug('pause')\n this._readableState.flowing = false\n this.emit('pause')\n }\n this._readableState[kPaused] = true\n return this\n}\nfunction flow(stream) {\n const state = stream._readableState\n debug('flow', state.flowing)\n while (state.flowing && stream.read() !== null);\n}\n\n// Wrap an old-style stream as the async data source.\n// This is *not* part of the readable stream interface.\n// It is an ugly unfortunate mess of history.\nReadable.prototype.wrap = function (stream) {\n let paused = false\n\n // TODO (ronag): Should this.destroy(err) emit\n // 'error' on the wrapped stream? Would require\n // a static factory method, e.g. Readable.wrap(stream).\n\n stream.on('data', (chunk) => {\n if (!this.push(chunk) && stream.pause) {\n paused = true\n stream.pause()\n }\n })\n stream.on('end', () => {\n this.push(null)\n })\n stream.on('error', (err) => {\n errorOrDestroy(this, err)\n })\n stream.on('close', () => {\n this.destroy()\n })\n stream.on('destroy', () => {\n this.destroy()\n })\n this._read = () => {\n if (paused && stream.resume) {\n paused = false\n stream.resume()\n }\n }\n\n // Proxy all the other methods. Important when wrapping filters and duplexes.\n const streamKeys = ObjectKeys(stream)\n for (let j = 1; j < streamKeys.length; j++) {\n const i = streamKeys[j]\n if (this[i] === undefined && typeof stream[i] === 'function') {\n this[i] = stream[i].bind(stream)\n }\n }\n return this\n}\nReadable.prototype[SymbolAsyncIterator] = function () {\n return streamToAsyncIterator(this)\n}\nReadable.prototype.iterator = function (options) {\n if (options !== undefined) {\n validateObject(options, 'options')\n }\n return streamToAsyncIterator(this, options)\n}\nfunction streamToAsyncIterator(stream, options) {\n if (typeof stream.read !== 'function') {\n stream = Readable.wrap(stream, {\n objectMode: true\n })\n }\n const iter = createAsyncIterator(stream, options)\n iter.stream = stream\n return iter\n}\nasync function* createAsyncIterator(stream, options) {\n let callback = nop\n function next(resolve) {\n if (this === stream) {\n callback()\n callback = nop\n } else {\n callback = resolve\n }\n }\n stream.on('readable', next)\n let error\n const cleanup = eos(\n stream,\n {\n writable: false\n },\n (err) => {\n error = err ? aggregateTwoErrors(error, err) : null\n callback()\n callback = nop\n }\n )\n try {\n while (true) {\n const chunk = stream.destroyed ? null : stream.read()\n if (chunk !== null) {\n yield chunk\n } else if (error) {\n throw error\n } else if (error === null) {\n return\n } else {\n await new Promise(next)\n }\n }\n } catch (err) {\n error = aggregateTwoErrors(error, err)\n throw error\n } finally {\n if (\n (error || (options === null || options === undefined ? undefined : options.destroyOnReturn) !== false) &&\n (error === undefined || stream._readableState.autoDestroy)\n ) {\n destroyImpl.destroyer(stream, null)\n } else {\n stream.off('readable', next)\n cleanup()\n }\n }\n}\n\n// Making it explicit these properties are not enumerable\n// because otherwise some prototype manipulation in\n// userland will fail.\nObjectDefineProperties(Readable.prototype, {\n readable: {\n __proto__: null,\n get() {\n const r = this._readableState\n // r.readable === false means that this is part of a Duplex stream\n // where the readable side was disabled upon construction.\n // Compat. The user might manually disable readable side through\n // deprecated setter.\n return !!r && r.readable !== false && !r.destroyed && !r.errorEmitted && !r.endEmitted\n },\n set(val) {\n // Backwards compat.\n if (this._readableState) {\n this._readableState.readable = !!val\n }\n }\n },\n readableDidRead: {\n __proto__: null,\n enumerable: false,\n get: function () {\n return this._readableState.dataEmitted\n }\n },\n readableAborted: {\n __proto__: null,\n enumerable: false,\n get: function () {\n return !!(\n this._readableState.readable !== false &&\n (this._readableState.destroyed || this._readableState.errored) &&\n !this._readableState.endEmitted\n )\n }\n },\n readableHighWaterMark: {\n __proto__: null,\n enumerable: false,\n get: function () {\n return this._readableState.highWaterMark\n }\n },\n readableBuffer: {\n __proto__: null,\n enumerable: false,\n get: function () {\n return this._readableState && this._readableState.buffer\n }\n },\n readableFlowing: {\n __proto__: null,\n enumerable: false,\n get: function () {\n return this._readableState.flowing\n },\n set: function (state) {\n if (this._readableState) {\n this._readableState.flowing = state\n }\n }\n },\n readableLength: {\n __proto__: null,\n enumerable: false,\n get() {\n return this._readableState.length\n }\n },\n readableObjectMode: {\n __proto__: null,\n enumerable: false,\n get() {\n return this._readableState ? this._readableState.objectMode : false\n }\n },\n readableEncoding: {\n __proto__: null,\n enumerable: false,\n get() {\n return this._readableState ? this._readableState.encoding : null\n }\n },\n errored: {\n __proto__: null,\n enumerable: false,\n get() {\n return this._readableState ? this._readableState.errored : null\n }\n },\n closed: {\n __proto__: null,\n get() {\n return this._readableState ? this._readableState.closed : false\n }\n },\n destroyed: {\n __proto__: null,\n enumerable: false,\n get() {\n return this._readableState ? this._readableState.destroyed : false\n },\n set(value) {\n // We ignore the value if the stream\n // has not been initialized yet.\n if (!this._readableState) {\n return\n }\n\n // Backward compatibility, the user is explicitly\n // managing destroyed.\n this._readableState.destroyed = value\n }\n },\n readableEnded: {\n __proto__: null,\n enumerable: false,\n get() {\n return this._readableState ? this._readableState.endEmitted : false\n }\n }\n})\nObjectDefineProperties(ReadableState.prototype, {\n // Legacy getter for `pipesCount`.\n pipesCount: {\n __proto__: null,\n get() {\n return this.pipes.length\n }\n },\n // Legacy property for `paused`.\n paused: {\n __proto__: null,\n get() {\n return this[kPaused] !== false\n },\n set(value) {\n this[kPaused] = !!value\n }\n }\n})\n\n// Exposed for testing purposes only.\nReadable._fromList = fromList\n\n// Pluck off n bytes from an array of buffers.\n// Length is the combined lengths of all the buffers in the list.\n// This function is designed to be inlinable, so please take care when making\n// changes to the function body.\nfunction fromList(n, state) {\n // nothing buffered.\n if (state.length === 0) return null\n let ret\n if (state.objectMode) ret = state.buffer.shift()\n else if (!n || n >= state.length) {\n // Read it all, truncate the list.\n if (state.decoder) ret = state.buffer.join('')\n else if (state.buffer.length === 1) ret = state.buffer.first()\n else ret = state.buffer.concat(state.length)\n state.buffer.clear()\n } else {\n // read part of list.\n ret = state.buffer.consume(n, state.decoder)\n }\n return ret\n}\nfunction endReadable(stream) {\n const state = stream._readableState\n debug('endReadable', state.endEmitted)\n if (!state.endEmitted) {\n state.ended = true\n process.nextTick(endReadableNT, state, stream)\n }\n}\nfunction endReadableNT(state, stream) {\n debug('endReadableNT', state.endEmitted, state.length)\n\n // Check that we didn't get one last unshift.\n if (!state.errored && !state.closeEmitted && !state.endEmitted && state.length === 0) {\n state.endEmitted = true\n stream.emit('end')\n if (stream.writable && stream.allowHalfOpen === false) {\n process.nextTick(endWritableNT, stream)\n } else if (state.autoDestroy) {\n // In case of duplex streams we need a way to detect\n // if the writable side is ready for autoDestroy as well.\n const wState = stream._writableState\n const autoDestroy =\n !wState ||\n (wState.autoDestroy &&\n // We don't expect the writable to ever 'finish'\n // if writable is explicitly set to false.\n (wState.finished || wState.writable === false))\n if (autoDestroy) {\n stream.destroy()\n }\n }\n }\n}\nfunction endWritableNT(stream) {\n const writable = stream.writable && !stream.writableEnded && !stream.destroyed\n if (writable) {\n stream.end()\n }\n}\nReadable.from = function (iterable, opts) {\n return from(Readable, iterable, opts)\n}\nlet webStreamsAdapters\n\n// Lazy to avoid circular references\nfunction lazyWebStreams() {\n if (webStreamsAdapters === undefined) webStreamsAdapters = {}\n return webStreamsAdapters\n}\nReadable.fromWeb = function (readableStream, options) {\n return lazyWebStreams().newStreamReadableFromReadableStream(readableStream, options)\n}\nReadable.toWeb = function (streamReadable, options) {\n return lazyWebStreams().newReadableStreamFromStreamReadable(streamReadable, options)\n}\nReadable.wrap = function (src, options) {\n var _ref, _src$readableObjectMo\n return new Readable({\n objectMode:\n (_ref =\n (_src$readableObjectMo = src.readableObjectMode) !== null && _src$readableObjectMo !== undefined\n ? _src$readableObjectMo\n : src.objectMode) !== null && _ref !== undefined\n ? _ref\n : true,\n ...options,\n destroy(err, callback) {\n destroyImpl.destroyer(src, err)\n callback(err)\n }\n }).wrap(src)\n}\n","'use strict'\n\nconst { MathFloor, NumberIsInteger } = require('../../ours/primordials')\nconst { validateInteger } = require('../validators')\nconst { ERR_INVALID_ARG_VALUE } = require('../../ours/errors').codes\nlet defaultHighWaterMarkBytes = 16 * 1024\nlet defaultHighWaterMarkObjectMode = 16\nfunction highWaterMarkFrom(options, isDuplex, duplexKey) {\n return options.highWaterMark != null ? options.highWaterMark : isDuplex ? options[duplexKey] : null\n}\nfunction getDefaultHighWaterMark(objectMode) {\n return objectMode ? defaultHighWaterMarkObjectMode : defaultHighWaterMarkBytes\n}\nfunction setDefaultHighWaterMark(objectMode, value) {\n validateInteger(value, 'value', 0)\n if (objectMode) {\n defaultHighWaterMarkObjectMode = value\n } else {\n defaultHighWaterMarkBytes = value\n }\n}\nfunction getHighWaterMark(state, options, duplexKey, isDuplex) {\n const hwm = highWaterMarkFrom(options, isDuplex, duplexKey)\n if (hwm != null) {\n if (!NumberIsInteger(hwm) || hwm < 0) {\n const name = isDuplex ? `options.${duplexKey}` : 'options.highWaterMark'\n throw new ERR_INVALID_ARG_VALUE(name, hwm)\n }\n return MathFloor(hwm)\n }\n\n // Default value\n return getDefaultHighWaterMark(state.objectMode)\n}\nmodule.exports = {\n getHighWaterMark,\n getDefaultHighWaterMark,\n setDefaultHighWaterMark\n}\n","// Copyright Joyent, Inc. and other Node contributors.\n//\n// Permission is hereby granted, free of charge, to any person obtaining a\n// copy of this software and associated documentation files (the\n// \"Software\"), to deal in the Software without restriction, including\n// without limitation the rights to use, copy, modify, merge, publish,\n// distribute, sublicense, and/or sell copies of the Software, and to permit\n// persons to whom the Software is furnished to do so, subject to the\n// following conditions:\n//\n// The above copyright notice and this permission notice shall be included\n// in all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\n// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\n// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\n// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n// a transform stream is a readable/writable stream where you do\n// something with the data. Sometimes it's called a \"filter\",\n// but that's not a great name for it, since that implies a thing where\n// some bits pass through, and others are simply ignored. (That would\n// be a valid example of a transform, of course.)\n//\n// While the output is causally related to the input, it's not a\n// necessarily symmetric or synchronous transformation. For example,\n// a zlib stream might take multiple plain-text writes(), and then\n// emit a single compressed chunk some time in the future.\n//\n// Here's how this works:\n//\n// The Transform stream has all the aspects of the readable and writable\n// stream classes. When you write(chunk), that calls _write(chunk,cb)\n// internally, and returns false if there's a lot of pending writes\n// buffered up. When you call read(), that calls _read(n) until\n// there's enough pending readable data buffered up.\n//\n// In a transform stream, the written data is placed in a buffer. When\n// _read(n) is called, it transforms the queued up data, calling the\n// buffered _write cb's as it consumes chunks. If consuming a single\n// written chunk would result in multiple output chunks, then the first\n// outputted bit calls the readcb, and subsequent chunks just go into\n// the read buffer, and will cause it to emit 'readable' if necessary.\n//\n// This way, back-pressure is actually determined by the reading side,\n// since _read has to be called to start processing a new chunk. However,\n// a pathological inflate type of transform can cause excessive buffering\n// here. For example, imagine a stream where every byte of input is\n// interpreted as an integer from 0-255, and then results in that many\n// bytes of output. Writing the 4 bytes {ff,ff,ff,ff} would result in\n// 1kb of data being output. In this case, you could write a very small\n// amount of input, and end up with a very large amount of output. In\n// such a pathological inflating mechanism, there'd be no way to tell\n// the system to stop doing the transform. A single 4MB write could\n// cause the system to run out of memory.\n//\n// However, even in such a pathological case, only a single written chunk\n// would be consumed, and then the rest would wait (un-transformed) until\n// the results of the previous transformed chunk were consumed.\n\n'use strict'\n\nconst { ObjectSetPrototypeOf, Symbol } = require('../../ours/primordials')\nmodule.exports = Transform\nconst { ERR_METHOD_NOT_IMPLEMENTED } = require('../../ours/errors').codes\nconst Duplex = require('./duplex')\nconst { getHighWaterMark } = require('./state')\nObjectSetPrototypeOf(Transform.prototype, Duplex.prototype)\nObjectSetPrototypeOf(Transform, Duplex)\nconst kCallback = Symbol('kCallback')\nfunction Transform(options) {\n if (!(this instanceof Transform)) return new Transform(options)\n\n // TODO (ronag): This should preferably always be\n // applied but would be semver-major. Or even better;\n // make Transform a Readable with the Writable interface.\n const readableHighWaterMark = options ? getHighWaterMark(this, options, 'readableHighWaterMark', true) : null\n if (readableHighWaterMark === 0) {\n // A Duplex will buffer both on the writable and readable side while\n // a Transform just wants to buffer hwm number of elements. To avoid\n // buffering twice we disable buffering on the writable side.\n options = {\n ...options,\n highWaterMark: null,\n readableHighWaterMark,\n // TODO (ronag): 0 is not optimal since we have\n // a \"bug\" where we check needDrain before calling _write and not after.\n // Refs: https://github.com/nodejs/node/pull/32887\n // Refs: https://github.com/nodejs/node/pull/35941\n writableHighWaterMark: options.writableHighWaterMark || 0\n }\n }\n Duplex.call(this, options)\n\n // We have implemented the _read method, and done the other things\n // that Readable wants before the first _read call, so unset the\n // sync guard flag.\n this._readableState.sync = false\n this[kCallback] = null\n if (options) {\n if (typeof options.transform === 'function') this._transform = options.transform\n if (typeof options.flush === 'function') this._flush = options.flush\n }\n\n // When the writable side finishes, then flush out anything remaining.\n // Backwards compat. Some Transform streams incorrectly implement _final\n // instead of or in addition to _flush. By using 'prefinish' instead of\n // implementing _final we continue supporting this unfortunate use case.\n this.on('prefinish', prefinish)\n}\nfunction final(cb) {\n if (typeof this._flush === 'function' && !this.destroyed) {\n this._flush((er, data) => {\n if (er) {\n if (cb) {\n cb(er)\n } else {\n this.destroy(er)\n }\n return\n }\n if (data != null) {\n this.push(data)\n }\n this.push(null)\n if (cb) {\n cb()\n }\n })\n } else {\n this.push(null)\n if (cb) {\n cb()\n }\n }\n}\nfunction prefinish() {\n if (this._final !== final) {\n final.call(this)\n }\n}\nTransform.prototype._final = final\nTransform.prototype._transform = function (chunk, encoding, callback) {\n throw new ERR_METHOD_NOT_IMPLEMENTED('_transform()')\n}\nTransform.prototype._write = function (chunk, encoding, callback) {\n const rState = this._readableState\n const wState = this._writableState\n const length = rState.length\n this._transform(chunk, encoding, (err, val) => {\n if (err) {\n callback(err)\n return\n }\n if (val != null) {\n this.push(val)\n }\n if (\n wState.ended ||\n // Backwards compat.\n length === rState.length ||\n // Backwards compat.\n rState.length < rState.highWaterMark\n ) {\n callback()\n } else {\n this[kCallback] = callback\n }\n })\n}\nTransform.prototype._read = function () {\n if (this[kCallback]) {\n const callback = this[kCallback]\n this[kCallback] = null\n callback()\n }\n}\n","'use strict'\n\nconst { SymbolAsyncIterator, SymbolIterator, SymbolFor } = require('../../ours/primordials')\n\n// We need to use SymbolFor to make these globally available\n// for interopt with readable-stream, i.e. readable-stream\n// and node core needs to be able to read/write private state\n// from each other for proper interoperability.\nconst kIsDestroyed = SymbolFor('nodejs.stream.destroyed')\nconst kIsErrored = SymbolFor('nodejs.stream.errored')\nconst kIsReadable = SymbolFor('nodejs.stream.readable')\nconst kIsWritable = SymbolFor('nodejs.stream.writable')\nconst kIsDisturbed = SymbolFor('nodejs.stream.disturbed')\nconst kIsClosedPromise = SymbolFor('nodejs.webstream.isClosedPromise')\nconst kControllerErrorFunction = SymbolFor('nodejs.webstream.controllerErrorFunction')\nfunction isReadableNodeStream(obj, strict = false) {\n var _obj$_readableState\n return !!(\n (\n obj &&\n typeof obj.pipe === 'function' &&\n typeof obj.on === 'function' &&\n (!strict || (typeof obj.pause === 'function' && typeof obj.resume === 'function')) &&\n (!obj._writableState ||\n ((_obj$_readableState = obj._readableState) === null || _obj$_readableState === undefined\n ? undefined\n : _obj$_readableState.readable) !== false) &&\n // Duplex\n (!obj._writableState || obj._readableState)\n ) // Writable has .pipe.\n )\n}\n\nfunction isWritableNodeStream(obj) {\n var _obj$_writableState\n return !!(\n (\n obj &&\n typeof obj.write === 'function' &&\n typeof obj.on === 'function' &&\n (!obj._readableState ||\n ((_obj$_writableState = obj._writableState) === null || _obj$_writableState === undefined\n ? undefined\n : _obj$_writableState.writable) !== false)\n ) // Duplex\n )\n}\n\nfunction isDuplexNodeStream(obj) {\n return !!(\n obj &&\n typeof obj.pipe === 'function' &&\n obj._readableState &&\n typeof obj.on === 'function' &&\n typeof obj.write === 'function'\n )\n}\nfunction isNodeStream(obj) {\n return (\n obj &&\n (obj._readableState ||\n obj._writableState ||\n (typeof obj.write === 'function' && typeof obj.on === 'function') ||\n (typeof obj.pipe === 'function' && typeof obj.on === 'function'))\n )\n}\nfunction isReadableStream(obj) {\n return !!(\n obj &&\n !isNodeStream(obj) &&\n typeof obj.pipeThrough === 'function' &&\n typeof obj.getReader === 'function' &&\n typeof obj.cancel === 'function'\n )\n}\nfunction isWritableStream(obj) {\n return !!(obj && !isNodeStream(obj) && typeof obj.getWriter === 'function' && typeof obj.abort === 'function')\n}\nfunction isTransformStream(obj) {\n return !!(obj && !isNodeStream(obj) && typeof obj.readable === 'object' && typeof obj.writable === 'object')\n}\nfunction isWebStream(obj) {\n return isReadableStream(obj) || isWritableStream(obj) || isTransformStream(obj)\n}\nfunction isIterable(obj, isAsync) {\n if (obj == null) return false\n if (isAsync === true) return typeof obj[SymbolAsyncIterator] === 'function'\n if (isAsync === false) return typeof obj[SymbolIterator] === 'function'\n return typeof obj[SymbolAsyncIterator] === 'function' || typeof obj[SymbolIterator] === 'function'\n}\nfunction isDestroyed(stream) {\n if (!isNodeStream(stream)) return null\n const wState = stream._writableState\n const rState = stream._readableState\n const state = wState || rState\n return !!(stream.destroyed || stream[kIsDestroyed] || (state !== null && state !== undefined && state.destroyed))\n}\n\n// Have been end():d.\nfunction isWritableEnded(stream) {\n if (!isWritableNodeStream(stream)) return null\n if (stream.writableEnded === true) return true\n const wState = stream._writableState\n if (wState !== null && wState !== undefined && wState.errored) return false\n if (typeof (wState === null || wState === undefined ? undefined : wState.ended) !== 'boolean') return null\n return wState.ended\n}\n\n// Have emitted 'finish'.\nfunction isWritableFinished(stream, strict) {\n if (!isWritableNodeStream(stream)) return null\n if (stream.writableFinished === true) return true\n const wState = stream._writableState\n if (wState !== null && wState !== undefined && wState.errored) return false\n if (typeof (wState === null || wState === undefined ? undefined : wState.finished) !== 'boolean') return null\n return !!(wState.finished || (strict === false && wState.ended === true && wState.length === 0))\n}\n\n// Have been push(null):d.\nfunction isReadableEnded(stream) {\n if (!isReadableNodeStream(stream)) return null\n if (stream.readableEnded === true) return true\n const rState = stream._readableState\n if (!rState || rState.errored) return false\n if (typeof (rState === null || rState === undefined ? undefined : rState.ended) !== 'boolean') return null\n return rState.ended\n}\n\n// Have emitted 'end'.\nfunction isReadableFinished(stream, strict) {\n if (!isReadableNodeStream(stream)) return null\n const rState = stream._readableState\n if (rState !== null && rState !== undefined && rState.errored) return false\n if (typeof (rState === null || rState === undefined ? undefined : rState.endEmitted) !== 'boolean') return null\n return !!(rState.endEmitted || (strict === false && rState.ended === true && rState.length === 0))\n}\nfunction isReadable(stream) {\n if (stream && stream[kIsReadable] != null) return stream[kIsReadable]\n if (typeof (stream === null || stream === undefined ? undefined : stream.readable) !== 'boolean') return null\n if (isDestroyed(stream)) return false\n return isReadableNodeStream(stream) && stream.readable && !isReadableFinished(stream)\n}\nfunction isWritable(stream) {\n if (stream && stream[kIsWritable] != null) return stream[kIsWritable]\n if (typeof (stream === null || stream === undefined ? undefined : stream.writable) !== 'boolean') return null\n if (isDestroyed(stream)) return false\n return isWritableNodeStream(stream) && stream.writable && !isWritableEnded(stream)\n}\nfunction isFinished(stream, opts) {\n if (!isNodeStream(stream)) {\n return null\n }\n if (isDestroyed(stream)) {\n return true\n }\n if ((opts === null || opts === undefined ? undefined : opts.readable) !== false && isReadable(stream)) {\n return false\n }\n if ((opts === null || opts === undefined ? undefined : opts.writable) !== false && isWritable(stream)) {\n return false\n }\n return true\n}\nfunction isWritableErrored(stream) {\n var _stream$_writableStat, _stream$_writableStat2\n if (!isNodeStream(stream)) {\n return null\n }\n if (stream.writableErrored) {\n return stream.writableErrored\n }\n return (_stream$_writableStat =\n (_stream$_writableStat2 = stream._writableState) === null || _stream$_writableStat2 === undefined\n ? undefined\n : _stream$_writableStat2.errored) !== null && _stream$_writableStat !== undefined\n ? _stream$_writableStat\n : null\n}\nfunction isReadableErrored(stream) {\n var _stream$_readableStat, _stream$_readableStat2\n if (!isNodeStream(stream)) {\n return null\n }\n if (stream.readableErrored) {\n return stream.readableErrored\n }\n return (_stream$_readableStat =\n (_stream$_readableStat2 = stream._readableState) === null || _stream$_readableStat2 === undefined\n ? undefined\n : _stream$_readableStat2.errored) !== null && _stream$_readableStat !== undefined\n ? _stream$_readableStat\n : null\n}\nfunction isClosed(stream) {\n if (!isNodeStream(stream)) {\n return null\n }\n if (typeof stream.closed === 'boolean') {\n return stream.closed\n }\n const wState = stream._writableState\n const rState = stream._readableState\n if (\n typeof (wState === null || wState === undefined ? undefined : wState.closed) === 'boolean' ||\n typeof (rState === null || rState === undefined ? undefined : rState.closed) === 'boolean'\n ) {\n return (\n (wState === null || wState === undefined ? undefined : wState.closed) ||\n (rState === null || rState === undefined ? undefined : rState.closed)\n )\n }\n if (typeof stream._closed === 'boolean' && isOutgoingMessage(stream)) {\n return stream._closed\n }\n return null\n}\nfunction isOutgoingMessage(stream) {\n return (\n typeof stream._closed === 'boolean' &&\n typeof stream._defaultKeepAlive === 'boolean' &&\n typeof stream._removedConnection === 'boolean' &&\n typeof stream._removedContLen === 'boolean'\n )\n}\nfunction isServerResponse(stream) {\n return typeof stream._sent100 === 'boolean' && isOutgoingMessage(stream)\n}\nfunction isServerRequest(stream) {\n var _stream$req\n return (\n typeof stream._consuming === 'boolean' &&\n typeof stream._dumped === 'boolean' &&\n ((_stream$req = stream.req) === null || _stream$req === undefined ? undefined : _stream$req.upgradeOrConnect) ===\n undefined\n )\n}\nfunction willEmitClose(stream) {\n if (!isNodeStream(stream)) return null\n const wState = stream._writableState\n const rState = stream._readableState\n const state = wState || rState\n return (\n (!state && isServerResponse(stream)) || !!(state && state.autoDestroy && state.emitClose && state.closed === false)\n )\n}\nfunction isDisturbed(stream) {\n var _stream$kIsDisturbed\n return !!(\n stream &&\n ((_stream$kIsDisturbed = stream[kIsDisturbed]) !== null && _stream$kIsDisturbed !== undefined\n ? _stream$kIsDisturbed\n : stream.readableDidRead || stream.readableAborted)\n )\n}\nfunction isErrored(stream) {\n var _ref,\n _ref2,\n _ref3,\n _ref4,\n _ref5,\n _stream$kIsErrored,\n _stream$_readableStat3,\n _stream$_writableStat3,\n _stream$_readableStat4,\n _stream$_writableStat4\n return !!(\n stream &&\n ((_ref =\n (_ref2 =\n (_ref3 =\n (_ref4 =\n (_ref5 =\n (_stream$kIsErrored = stream[kIsErrored]) !== null && _stream$kIsErrored !== undefined\n ? _stream$kIsErrored\n : stream.readableErrored) !== null && _ref5 !== undefined\n ? _ref5\n : stream.writableErrored) !== null && _ref4 !== undefined\n ? _ref4\n : (_stream$_readableStat3 = stream._readableState) === null || _stream$_readableStat3 === undefined\n ? undefined\n : _stream$_readableStat3.errorEmitted) !== null && _ref3 !== undefined\n ? _ref3\n : (_stream$_writableStat3 = stream._writableState) === null || _stream$_writableStat3 === undefined\n ? undefined\n : _stream$_writableStat3.errorEmitted) !== null && _ref2 !== undefined\n ? _ref2\n : (_stream$_readableStat4 = stream._readableState) === null || _stream$_readableStat4 === undefined\n ? undefined\n : _stream$_readableStat4.errored) !== null && _ref !== undefined\n ? _ref\n : (_stream$_writableStat4 = stream._writableState) === null || _stream$_writableStat4 === undefined\n ? undefined\n : _stream$_writableStat4.errored)\n )\n}\nmodule.exports = {\n isDestroyed,\n kIsDestroyed,\n isDisturbed,\n kIsDisturbed,\n isErrored,\n kIsErrored,\n isReadable,\n kIsReadable,\n kIsClosedPromise,\n kControllerErrorFunction,\n kIsWritable,\n isClosed,\n isDuplexNodeStream,\n isFinished,\n isIterable,\n isReadableNodeStream,\n isReadableStream,\n isReadableEnded,\n isReadableFinished,\n isReadableErrored,\n isNodeStream,\n isWebStream,\n isWritable,\n isWritableNodeStream,\n isWritableStream,\n isWritableEnded,\n isWritableFinished,\n isWritableErrored,\n isServerRequest,\n isServerResponse,\n willEmitClose,\n isTransformStream\n}\n","/* replacement start */\n\nconst process = require('process/')\n\n/* replacement end */\n// Copyright Joyent, Inc. and other Node contributors.\n//\n// Permission is hereby granted, free of charge, to any person obtaining a\n// copy of this software and associated documentation files (the\n// \"Software\"), to deal in the Software without restriction, including\n// without limitation the rights to use, copy, modify, merge, publish,\n// distribute, sublicense, and/or sell copies of the Software, and to permit\n// persons to whom the Software is furnished to do so, subject to the\n// following conditions:\n//\n// The above copyright notice and this permission notice shall be included\n// in all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\n// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\n// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\n// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n// A bit simpler than readable streams.\n// Implement an async ._write(chunk, encoding, cb), and it'll handle all\n// the drain event emission and buffering.\n\n;('use strict')\nconst {\n ArrayPrototypeSlice,\n Error,\n FunctionPrototypeSymbolHasInstance,\n ObjectDefineProperty,\n ObjectDefineProperties,\n ObjectSetPrototypeOf,\n StringPrototypeToLowerCase,\n Symbol,\n SymbolHasInstance\n} = require('../../ours/primordials')\nmodule.exports = Writable\nWritable.WritableState = WritableState\nconst { EventEmitter: EE } = require('events')\nconst Stream = require('./legacy').Stream\nconst { Buffer } = require('buffer')\nconst destroyImpl = require('./destroy')\nconst { addAbortSignal } = require('./add-abort-signal')\nconst { getHighWaterMark, getDefaultHighWaterMark } = require('./state')\nconst {\n ERR_INVALID_ARG_TYPE,\n ERR_METHOD_NOT_IMPLEMENTED,\n ERR_MULTIPLE_CALLBACK,\n ERR_STREAM_CANNOT_PIPE,\n ERR_STREAM_DESTROYED,\n ERR_STREAM_ALREADY_FINISHED,\n ERR_STREAM_NULL_VALUES,\n ERR_STREAM_WRITE_AFTER_END,\n ERR_UNKNOWN_ENCODING\n} = require('../../ours/errors').codes\nconst { errorOrDestroy } = destroyImpl\nObjectSetPrototypeOf(Writable.prototype, Stream.prototype)\nObjectSetPrototypeOf(Writable, Stream)\nfunction nop() {}\nconst kOnFinished = Symbol('kOnFinished')\nfunction WritableState(options, stream, isDuplex) {\n // Duplex streams are both readable and writable, but share\n // the same options object.\n // However, some cases require setting options to different\n // values for the readable and the writable sides of the duplex stream,\n // e.g. options.readableObjectMode vs. options.writableObjectMode, etc.\n if (typeof isDuplex !== 'boolean') isDuplex = stream instanceof require('./duplex')\n\n // Object stream flag to indicate whether or not this stream\n // contains buffers or objects.\n this.objectMode = !!(options && options.objectMode)\n if (isDuplex) this.objectMode = this.objectMode || !!(options && options.writableObjectMode)\n\n // The point at which write() starts returning false\n // Note: 0 is a valid value, means that we always return false if\n // the entire buffer is not flushed immediately on write().\n this.highWaterMark = options\n ? getHighWaterMark(this, options, 'writableHighWaterMark', isDuplex)\n : getDefaultHighWaterMark(false)\n\n // if _final has been called.\n this.finalCalled = false\n\n // drain event flag.\n this.needDrain = false\n // At the start of calling end()\n this.ending = false\n // When end() has been called, and returned.\n this.ended = false\n // When 'finish' is emitted.\n this.finished = false\n\n // Has it been destroyed\n this.destroyed = false\n\n // Should we decode strings into buffers before passing to _write?\n // this is here so that some node-core streams can optimize string\n // handling at a lower level.\n const noDecode = !!(options && options.decodeStrings === false)\n this.decodeStrings = !noDecode\n\n // Crypto is kind of old and crusty. Historically, its default string\n // encoding is 'binary' so we have to make this configurable.\n // Everything else in the universe uses 'utf8', though.\n this.defaultEncoding = (options && options.defaultEncoding) || 'utf8'\n\n // Not an actual buffer we keep track of, but a measurement\n // of how much we're waiting to get pushed to some underlying\n // socket or file.\n this.length = 0\n\n // A flag to see when we're in the middle of a write.\n this.writing = false\n\n // When true all writes will be buffered until .uncork() call.\n this.corked = 0\n\n // A flag to be able to tell if the onwrite cb is called immediately,\n // or on a later tick. We set this to true at first, because any\n // actions that shouldn't happen until \"later\" should generally also\n // not happen before the first write call.\n this.sync = true\n\n // A flag to know if we're processing previously buffered items, which\n // may call the _write() callback in the same tick, so that we don't\n // end up in an overlapped onwrite situation.\n this.bufferProcessing = false\n\n // The callback that's passed to _write(chunk, cb).\n this.onwrite = onwrite.bind(undefined, stream)\n\n // The callback that the user supplies to write(chunk, encoding, cb).\n this.writecb = null\n\n // The amount that is being written when _write is called.\n this.writelen = 0\n\n // Storage for data passed to the afterWrite() callback in case of\n // synchronous _write() completion.\n this.afterWriteTickInfo = null\n resetBuffer(this)\n\n // Number of pending user-supplied write callbacks\n // this must be 0 before 'finish' can be emitted.\n this.pendingcb = 0\n\n // Stream is still being constructed and cannot be\n // destroyed until construction finished or failed.\n // Async construction is opt in, therefore we start as\n // constructed.\n this.constructed = true\n\n // Emit prefinish if the only thing we're waiting for is _write cbs\n // This is relevant for synchronous Transform streams.\n this.prefinished = false\n\n // True if the error was already emitted and should not be thrown again.\n this.errorEmitted = false\n\n // Should close be emitted on destroy. Defaults to true.\n this.emitClose = !options || options.emitClose !== false\n\n // Should .destroy() be called after 'finish' (and potentially 'end').\n this.autoDestroy = !options || options.autoDestroy !== false\n\n // Indicates whether the stream has errored. When true all write() calls\n // should return false. This is needed since when autoDestroy\n // is disabled we need a way to tell whether the stream has failed.\n this.errored = null\n\n // Indicates whether the stream has finished destroying.\n this.closed = false\n\n // True if close has been emitted or would have been emitted\n // depending on emitClose.\n this.closeEmitted = false\n this[kOnFinished] = []\n}\nfunction resetBuffer(state) {\n state.buffered = []\n state.bufferedIndex = 0\n state.allBuffers = true\n state.allNoop = true\n}\nWritableState.prototype.getBuffer = function getBuffer() {\n return ArrayPrototypeSlice(this.buffered, this.bufferedIndex)\n}\nObjectDefineProperty(WritableState.prototype, 'bufferedRequestCount', {\n __proto__: null,\n get() {\n return this.buffered.length - this.bufferedIndex\n }\n})\nfunction Writable(options) {\n // Writable ctor is applied to Duplexes, too.\n // `realHasInstance` is necessary because using plain `instanceof`\n // would return false, as no `_writableState` property is attached.\n\n // Trying to use the custom `instanceof` for Writable here will also break the\n // Node.js LazyTransform implementation, which has a non-trivial getter for\n // `_writableState` that would lead to infinite recursion.\n\n // Checking for a Stream.Duplex instance is faster here instead of inside\n // the WritableState constructor, at least with V8 6.5.\n const isDuplex = this instanceof require('./duplex')\n if (!isDuplex && !FunctionPrototypeSymbolHasInstance(Writable, this)) return new Writable(options)\n this._writableState = new WritableState(options, this, isDuplex)\n if (options) {\n if (typeof options.write === 'function') this._write = options.write\n if (typeof options.writev === 'function') this._writev = options.writev\n if (typeof options.destroy === 'function') this._destroy = options.destroy\n if (typeof options.final === 'function') this._final = options.final\n if (typeof options.construct === 'function') this._construct = options.construct\n if (options.signal) addAbortSignal(options.signal, this)\n }\n Stream.call(this, options)\n destroyImpl.construct(this, () => {\n const state = this._writableState\n if (!state.writing) {\n clearBuffer(this, state)\n }\n finishMaybe(this, state)\n })\n}\nObjectDefineProperty(Writable, SymbolHasInstance, {\n __proto__: null,\n value: function (object) {\n if (FunctionPrototypeSymbolHasInstance(this, object)) return true\n if (this !== Writable) return false\n return object && object._writableState instanceof WritableState\n }\n})\n\n// Otherwise people can pipe Writable streams, which is just wrong.\nWritable.prototype.pipe = function () {\n errorOrDestroy(this, new ERR_STREAM_CANNOT_PIPE())\n}\nfunction _write(stream, chunk, encoding, cb) {\n const state = stream._writableState\n if (typeof encoding === 'function') {\n cb = encoding\n encoding = state.defaultEncoding\n } else {\n if (!encoding) encoding = state.defaultEncoding\n else if (encoding !== 'buffer' && !Buffer.isEncoding(encoding)) throw new ERR_UNKNOWN_ENCODING(encoding)\n if (typeof cb !== 'function') cb = nop\n }\n if (chunk === null) {\n throw new ERR_STREAM_NULL_VALUES()\n } else if (!state.objectMode) {\n if (typeof chunk === 'string') {\n if (state.decodeStrings !== false) {\n chunk = Buffer.from(chunk, encoding)\n encoding = 'buffer'\n }\n } else if (chunk instanceof Buffer) {\n encoding = 'buffer'\n } else if (Stream._isUint8Array(chunk)) {\n chunk = Stream._uint8ArrayToBuffer(chunk)\n encoding = 'buffer'\n } else {\n throw new ERR_INVALID_ARG_TYPE('chunk', ['string', 'Buffer', 'Uint8Array'], chunk)\n }\n }\n let err\n if (state.ending) {\n err = new ERR_STREAM_WRITE_AFTER_END()\n } else if (state.destroyed) {\n err = new ERR_STREAM_DESTROYED('write')\n }\n if (err) {\n process.nextTick(cb, err)\n errorOrDestroy(stream, err, true)\n return err\n }\n state.pendingcb++\n return writeOrBuffer(stream, state, chunk, encoding, cb)\n}\nWritable.prototype.write = function (chunk, encoding, cb) {\n return _write(this, chunk, encoding, cb) === true\n}\nWritable.prototype.cork = function () {\n this._writableState.corked++\n}\nWritable.prototype.uncork = function () {\n const state = this._writableState\n if (state.corked) {\n state.corked--\n if (!state.writing) clearBuffer(this, state)\n }\n}\nWritable.prototype.setDefaultEncoding = function setDefaultEncoding(encoding) {\n // node::ParseEncoding() requires lower case.\n if (typeof encoding === 'string') encoding = StringPrototypeToLowerCase(encoding)\n if (!Buffer.isEncoding(encoding)) throw new ERR_UNKNOWN_ENCODING(encoding)\n this._writableState.defaultEncoding = encoding\n return this\n}\n\n// If we're already writing something, then just put this\n// in the queue, and wait our turn. Otherwise, call _write\n// If we return false, then we need a drain event, so set that flag.\nfunction writeOrBuffer(stream, state, chunk, encoding, callback) {\n const len = state.objectMode ? 1 : chunk.length\n state.length += len\n\n // stream._write resets state.length\n const ret = state.length < state.highWaterMark\n // We must ensure that previous needDrain will not be reset to false.\n if (!ret) state.needDrain = true\n if (state.writing || state.corked || state.errored || !state.constructed) {\n state.buffered.push({\n chunk,\n encoding,\n callback\n })\n if (state.allBuffers && encoding !== 'buffer') {\n state.allBuffers = false\n }\n if (state.allNoop && callback !== nop) {\n state.allNoop = false\n }\n } else {\n state.writelen = len\n state.writecb = callback\n state.writing = true\n state.sync = true\n stream._write(chunk, encoding, state.onwrite)\n state.sync = false\n }\n\n // Return false if errored or destroyed in order to break\n // any synchronous while(stream.write(data)) loops.\n return ret && !state.errored && !state.destroyed\n}\nfunction doWrite(stream, state, writev, len, chunk, encoding, cb) {\n state.writelen = len\n state.writecb = cb\n state.writing = true\n state.sync = true\n if (state.destroyed) state.onwrite(new ERR_STREAM_DESTROYED('write'))\n else if (writev) stream._writev(chunk, state.onwrite)\n else stream._write(chunk, encoding, state.onwrite)\n state.sync = false\n}\nfunction onwriteError(stream, state, er, cb) {\n --state.pendingcb\n cb(er)\n // Ensure callbacks are invoked even when autoDestroy is\n // not enabled. Passing `er` here doesn't make sense since\n // it's related to one specific write, not to the buffered\n // writes.\n errorBuffer(state)\n // This can emit error, but error must always follow cb.\n errorOrDestroy(stream, er)\n}\nfunction onwrite(stream, er) {\n const state = stream._writableState\n const sync = state.sync\n const cb = state.writecb\n if (typeof cb !== 'function') {\n errorOrDestroy(stream, new ERR_MULTIPLE_CALLBACK())\n return\n }\n state.writing = false\n state.writecb = null\n state.length -= state.writelen\n state.writelen = 0\n if (er) {\n // Avoid V8 leak, https://github.com/nodejs/node/pull/34103#issuecomment-652002364\n er.stack // eslint-disable-line no-unused-expressions\n\n if (!state.errored) {\n state.errored = er\n }\n\n // In case of duplex streams we need to notify the readable side of the\n // error.\n if (stream._readableState && !stream._readableState.errored) {\n stream._readableState.errored = er\n }\n if (sync) {\n process.nextTick(onwriteError, stream, state, er, cb)\n } else {\n onwriteError(stream, state, er, cb)\n }\n } else {\n if (state.buffered.length > state.bufferedIndex) {\n clearBuffer(stream, state)\n }\n if (sync) {\n // It is a common case that the callback passed to .write() is always\n // the same. In that case, we do not schedule a new nextTick(), but\n // rather just increase a counter, to improve performance and avoid\n // memory allocations.\n if (state.afterWriteTickInfo !== null && state.afterWriteTickInfo.cb === cb) {\n state.afterWriteTickInfo.count++\n } else {\n state.afterWriteTickInfo = {\n count: 1,\n cb,\n stream,\n state\n }\n process.nextTick(afterWriteTick, state.afterWriteTickInfo)\n }\n } else {\n afterWrite(stream, state, 1, cb)\n }\n }\n}\nfunction afterWriteTick({ stream, state, count, cb }) {\n state.afterWriteTickInfo = null\n return afterWrite(stream, state, count, cb)\n}\nfunction afterWrite(stream, state, count, cb) {\n const needDrain = !state.ending && !stream.destroyed && state.length === 0 && state.needDrain\n if (needDrain) {\n state.needDrain = false\n stream.emit('drain')\n }\n while (count-- > 0) {\n state.pendingcb--\n cb()\n }\n if (state.destroyed) {\n errorBuffer(state)\n }\n finishMaybe(stream, state)\n}\n\n// If there's something in the buffer waiting, then invoke callbacks.\nfunction errorBuffer(state) {\n if (state.writing) {\n return\n }\n for (let n = state.bufferedIndex; n < state.buffered.length; ++n) {\n var _state$errored\n const { chunk, callback } = state.buffered[n]\n const len = state.objectMode ? 1 : chunk.length\n state.length -= len\n callback(\n (_state$errored = state.errored) !== null && _state$errored !== undefined\n ? _state$errored\n : new ERR_STREAM_DESTROYED('write')\n )\n }\n const onfinishCallbacks = state[kOnFinished].splice(0)\n for (let i = 0; i < onfinishCallbacks.length; i++) {\n var _state$errored2\n onfinishCallbacks[i](\n (_state$errored2 = state.errored) !== null && _state$errored2 !== undefined\n ? _state$errored2\n : new ERR_STREAM_DESTROYED('end')\n )\n }\n resetBuffer(state)\n}\n\n// If there's something in the buffer waiting, then process it.\nfunction clearBuffer(stream, state) {\n if (state.corked || state.bufferProcessing || state.destroyed || !state.constructed) {\n return\n }\n const { buffered, bufferedIndex, objectMode } = state\n const bufferedLength = buffered.length - bufferedIndex\n if (!bufferedLength) {\n return\n }\n let i = bufferedIndex\n state.bufferProcessing = true\n if (bufferedLength > 1 && stream._writev) {\n state.pendingcb -= bufferedLength - 1\n const callback = state.allNoop\n ? nop\n : (err) => {\n for (let n = i; n < buffered.length; ++n) {\n buffered[n].callback(err)\n }\n }\n // Make a copy of `buffered` if it's going to be used by `callback` above,\n // since `doWrite` will mutate the array.\n const chunks = state.allNoop && i === 0 ? buffered : ArrayPrototypeSlice(buffered, i)\n chunks.allBuffers = state.allBuffers\n doWrite(stream, state, true, state.length, chunks, '', callback)\n resetBuffer(state)\n } else {\n do {\n const { chunk, encoding, callback } = buffered[i]\n buffered[i++] = null\n const len = objectMode ? 1 : chunk.length\n doWrite(stream, state, false, len, chunk, encoding, callback)\n } while (i < buffered.length && !state.writing)\n if (i === buffered.length) {\n resetBuffer(state)\n } else if (i > 256) {\n buffered.splice(0, i)\n state.bufferedIndex = 0\n } else {\n state.bufferedIndex = i\n }\n }\n state.bufferProcessing = false\n}\nWritable.prototype._write = function (chunk, encoding, cb) {\n if (this._writev) {\n this._writev(\n [\n {\n chunk,\n encoding\n }\n ],\n cb\n )\n } else {\n throw new ERR_METHOD_NOT_IMPLEMENTED('_write()')\n }\n}\nWritable.prototype._writev = null\nWritable.prototype.end = function (chunk, encoding, cb) {\n const state = this._writableState\n if (typeof chunk === 'function') {\n cb = chunk\n chunk = null\n encoding = null\n } else if (typeof encoding === 'function') {\n cb = encoding\n encoding = null\n }\n let err\n if (chunk !== null && chunk !== undefined) {\n const ret = _write(this, chunk, encoding)\n if (ret instanceof Error) {\n err = ret\n }\n }\n\n // .end() fully uncorks.\n if (state.corked) {\n state.corked = 1\n this.uncork()\n }\n if (err) {\n // Do nothing...\n } else if (!state.errored && !state.ending) {\n // This is forgiving in terms of unnecessary calls to end() and can hide\n // logic errors. However, usually such errors are harmless and causing a\n // hard error can be disproportionately destructive. It is not always\n // trivial for the user to determine whether end() needs to be called\n // or not.\n\n state.ending = true\n finishMaybe(this, state, true)\n state.ended = true\n } else if (state.finished) {\n err = new ERR_STREAM_ALREADY_FINISHED('end')\n } else if (state.destroyed) {\n err = new ERR_STREAM_DESTROYED('end')\n }\n if (typeof cb === 'function') {\n if (err || state.finished) {\n process.nextTick(cb, err)\n } else {\n state[kOnFinished].push(cb)\n }\n }\n return this\n}\nfunction needFinish(state) {\n return (\n state.ending &&\n !state.destroyed &&\n state.constructed &&\n state.length === 0 &&\n !state.errored &&\n state.buffered.length === 0 &&\n !state.finished &&\n !state.writing &&\n !state.errorEmitted &&\n !state.closeEmitted\n )\n}\nfunction callFinal(stream, state) {\n let called = false\n function onFinish(err) {\n if (called) {\n errorOrDestroy(stream, err !== null && err !== undefined ? err : ERR_MULTIPLE_CALLBACK())\n return\n }\n called = true\n state.pendingcb--\n if (err) {\n const onfinishCallbacks = state[kOnFinished].splice(0)\n for (let i = 0; i < onfinishCallbacks.length; i++) {\n onfinishCallbacks[i](err)\n }\n errorOrDestroy(stream, err, state.sync)\n } else if (needFinish(state)) {\n state.prefinished = true\n stream.emit('prefinish')\n // Backwards compat. Don't check state.sync here.\n // Some streams assume 'finish' will be emitted\n // asynchronously relative to _final callback.\n state.pendingcb++\n process.nextTick(finish, stream, state)\n }\n }\n state.sync = true\n state.pendingcb++\n try {\n stream._final(onFinish)\n } catch (err) {\n onFinish(err)\n }\n state.sync = false\n}\nfunction prefinish(stream, state) {\n if (!state.prefinished && !state.finalCalled) {\n if (typeof stream._final === 'function' && !state.destroyed) {\n state.finalCalled = true\n callFinal(stream, state)\n } else {\n state.prefinished = true\n stream.emit('prefinish')\n }\n }\n}\nfunction finishMaybe(stream, state, sync) {\n if (needFinish(state)) {\n prefinish(stream, state)\n if (state.pendingcb === 0) {\n if (sync) {\n state.pendingcb++\n process.nextTick(\n (stream, state) => {\n if (needFinish(state)) {\n finish(stream, state)\n } else {\n state.pendingcb--\n }\n },\n stream,\n state\n )\n } else if (needFinish(state)) {\n state.pendingcb++\n finish(stream, state)\n }\n }\n }\n}\nfunction finish(stream, state) {\n state.pendingcb--\n state.finished = true\n const onfinishCallbacks = state[kOnFinished].splice(0)\n for (let i = 0; i < onfinishCallbacks.length; i++) {\n onfinishCallbacks[i]()\n }\n stream.emit('finish')\n if (state.autoDestroy) {\n // In case of duplex streams we need a way to detect\n // if the readable side is ready for autoDestroy as well.\n const rState = stream._readableState\n const autoDestroy =\n !rState ||\n (rState.autoDestroy &&\n // We don't expect the readable to ever 'end'\n // if readable is explicitly set to false.\n (rState.endEmitted || rState.readable === false))\n if (autoDestroy) {\n stream.destroy()\n }\n }\n}\nObjectDefineProperties(Writable.prototype, {\n closed: {\n __proto__: null,\n get() {\n return this._writableState ? this._writableState.closed : false\n }\n },\n destroyed: {\n __proto__: null,\n get() {\n return this._writableState ? this._writableState.destroyed : false\n },\n set(value) {\n // Backward compatibility, the user is explicitly managing destroyed.\n if (this._writableState) {\n this._writableState.destroyed = value\n }\n }\n },\n writable: {\n __proto__: null,\n get() {\n const w = this._writableState\n // w.writable === false means that this is part of a Duplex stream\n // where the writable side was disabled upon construction.\n // Compat. The user might manually disable writable side through\n // deprecated setter.\n return !!w && w.writable !== false && !w.destroyed && !w.errored && !w.ending && !w.ended\n },\n set(val) {\n // Backwards compatible.\n if (this._writableState) {\n this._writableState.writable = !!val\n }\n }\n },\n writableFinished: {\n __proto__: null,\n get() {\n return this._writableState ? this._writableState.finished : false\n }\n },\n writableObjectMode: {\n __proto__: null,\n get() {\n return this._writableState ? this._writableState.objectMode : false\n }\n },\n writableBuffer: {\n __proto__: null,\n get() {\n return this._writableState && this._writableState.getBuffer()\n }\n },\n writableEnded: {\n __proto__: null,\n get() {\n return this._writableState ? this._writableState.ending : false\n }\n },\n writableNeedDrain: {\n __proto__: null,\n get() {\n const wState = this._writableState\n if (!wState) return false\n return !wState.destroyed && !wState.ending && wState.needDrain\n }\n },\n writableHighWaterMark: {\n __proto__: null,\n get() {\n return this._writableState && this._writableState.highWaterMark\n }\n },\n writableCorked: {\n __proto__: null,\n get() {\n return this._writableState ? this._writableState.corked : 0\n }\n },\n writableLength: {\n __proto__: null,\n get() {\n return this._writableState && this._writableState.length\n }\n },\n errored: {\n __proto__: null,\n enumerable: false,\n get() {\n return this._writableState ? this._writableState.errored : null\n }\n },\n writableAborted: {\n __proto__: null,\n enumerable: false,\n get: function () {\n return !!(\n this._writableState.writable !== false &&\n (this._writableState.destroyed || this._writableState.errored) &&\n !this._writableState.finished\n )\n }\n }\n})\nconst destroy = destroyImpl.destroy\nWritable.prototype.destroy = function (err, cb) {\n const state = this._writableState\n\n // Invoke pending callbacks.\n if (!state.destroyed && (state.bufferedIndex < state.buffered.length || state[kOnFinished].length)) {\n process.nextTick(errorBuffer, state)\n }\n destroy.call(this, err, cb)\n return this\n}\nWritable.prototype._undestroy = destroyImpl.undestroy\nWritable.prototype._destroy = function (err, cb) {\n cb(err)\n}\nWritable.prototype[EE.captureRejectionSymbol] = function (err) {\n this.destroy(err)\n}\nlet webStreamsAdapters\n\n// Lazy to avoid circular references\nfunction lazyWebStreams() {\n if (webStreamsAdapters === undefined) webStreamsAdapters = {}\n return webStreamsAdapters\n}\nWritable.fromWeb = function (writableStream, options) {\n return lazyWebStreams().newStreamWritableFromWritableStream(writableStream, options)\n}\nWritable.toWeb = function (streamWritable) {\n return lazyWebStreams().newWritableStreamFromStreamWritable(streamWritable)\n}\n","/* eslint jsdoc/require-jsdoc: \"error\" */\n\n'use strict'\n\nconst {\n ArrayIsArray,\n ArrayPrototypeIncludes,\n ArrayPrototypeJoin,\n ArrayPrototypeMap,\n NumberIsInteger,\n NumberIsNaN,\n NumberMAX_SAFE_INTEGER,\n NumberMIN_SAFE_INTEGER,\n NumberParseInt,\n ObjectPrototypeHasOwnProperty,\n RegExpPrototypeExec,\n String,\n StringPrototypeToUpperCase,\n StringPrototypeTrim\n} = require('../ours/primordials')\nconst {\n hideStackFrames,\n codes: { ERR_SOCKET_BAD_PORT, ERR_INVALID_ARG_TYPE, ERR_INVALID_ARG_VALUE, ERR_OUT_OF_RANGE, ERR_UNKNOWN_SIGNAL }\n} = require('../ours/errors')\nconst { normalizeEncoding } = require('../ours/util')\nconst { isAsyncFunction, isArrayBufferView } = require('../ours/util').types\nconst signals = {}\n\n/**\n * @param {*} value\n * @returns {boolean}\n */\nfunction isInt32(value) {\n return value === (value | 0)\n}\n\n/**\n * @param {*} value\n * @returns {boolean}\n */\nfunction isUint32(value) {\n return value === value >>> 0\n}\nconst octalReg = /^[0-7]+$/\nconst modeDesc = 'must be a 32-bit unsigned integer or an octal string'\n\n/**\n * Parse and validate values that will be converted into mode_t (the S_*\n * constants). Only valid numbers and octal strings are allowed. They could be\n * converted to 32-bit unsigned integers or non-negative signed integers in the\n * C++ land, but any value higher than 0o777 will result in platform-specific\n * behaviors.\n * @param {*} value Values to be validated\n * @param {string} name Name of the argument\n * @param {number} [def] If specified, will be returned for invalid values\n * @returns {number}\n */\nfunction parseFileMode(value, name, def) {\n if (typeof value === 'undefined') {\n value = def\n }\n if (typeof value === 'string') {\n if (RegExpPrototypeExec(octalReg, value) === null) {\n throw new ERR_INVALID_ARG_VALUE(name, value, modeDesc)\n }\n value = NumberParseInt(value, 8)\n }\n validateUint32(value, name)\n return value\n}\n\n/**\n * @callback validateInteger\n * @param {*} value\n * @param {string} name\n * @param {number} [min]\n * @param {number} [max]\n * @returns {asserts value is number}\n */\n\n/** @type {validateInteger} */\nconst validateInteger = hideStackFrames((value, name, min = NumberMIN_SAFE_INTEGER, max = NumberMAX_SAFE_INTEGER) => {\n if (typeof value !== 'number') throw new ERR_INVALID_ARG_TYPE(name, 'number', value)\n if (!NumberIsInteger(value)) throw new ERR_OUT_OF_RANGE(name, 'an integer', value)\n if (value < min || value > max) throw new ERR_OUT_OF_RANGE(name, `>= ${min} && <= ${max}`, value)\n})\n\n/**\n * @callback validateInt32\n * @param {*} value\n * @param {string} name\n * @param {number} [min]\n * @param {number} [max]\n * @returns {asserts value is number}\n */\n\n/** @type {validateInt32} */\nconst validateInt32 = hideStackFrames((value, name, min = -2147483648, max = 2147483647) => {\n // The defaults for min and max correspond to the limits of 32-bit integers.\n if (typeof value !== 'number') {\n throw new ERR_INVALID_ARG_TYPE(name, 'number', value)\n }\n if (!NumberIsInteger(value)) {\n throw new ERR_OUT_OF_RANGE(name, 'an integer', value)\n }\n if (value < min || value > max) {\n throw new ERR_OUT_OF_RANGE(name, `>= ${min} && <= ${max}`, value)\n }\n})\n\n/**\n * @callback validateUint32\n * @param {*} value\n * @param {string} name\n * @param {number|boolean} [positive=false]\n * @returns {asserts value is number}\n */\n\n/** @type {validateUint32} */\nconst validateUint32 = hideStackFrames((value, name, positive = false) => {\n if (typeof value !== 'number') {\n throw new ERR_INVALID_ARG_TYPE(name, 'number', value)\n }\n if (!NumberIsInteger(value)) {\n throw new ERR_OUT_OF_RANGE(name, 'an integer', value)\n }\n const min = positive ? 1 : 0\n // 2 ** 32 === 4294967296\n const max = 4294967295\n if (value < min || value > max) {\n throw new ERR_OUT_OF_RANGE(name, `>= ${min} && <= ${max}`, value)\n }\n})\n\n/**\n * @callback validateString\n * @param {*} value\n * @param {string} name\n * @returns {asserts value is string}\n */\n\n/** @type {validateString} */\nfunction validateString(value, name) {\n if (typeof value !== 'string') throw new ERR_INVALID_ARG_TYPE(name, 'string', value)\n}\n\n/**\n * @callback validateNumber\n * @param {*} value\n * @param {string} name\n * @param {number} [min]\n * @param {number} [max]\n * @returns {asserts value is number}\n */\n\n/** @type {validateNumber} */\nfunction validateNumber(value, name, min = undefined, max) {\n if (typeof value !== 'number') throw new ERR_INVALID_ARG_TYPE(name, 'number', value)\n if (\n (min != null && value < min) ||\n (max != null && value > max) ||\n ((min != null || max != null) && NumberIsNaN(value))\n ) {\n throw new ERR_OUT_OF_RANGE(\n name,\n `${min != null ? `>= ${min}` : ''}${min != null && max != null ? ' && ' : ''}${max != null ? `<= ${max}` : ''}`,\n value\n )\n }\n}\n\n/**\n * @callback validateOneOf\n * @template T\n * @param {T} value\n * @param {string} name\n * @param {T[]} oneOf\n */\n\n/** @type {validateOneOf} */\nconst validateOneOf = hideStackFrames((value, name, oneOf) => {\n if (!ArrayPrototypeIncludes(oneOf, value)) {\n const allowed = ArrayPrototypeJoin(\n ArrayPrototypeMap(oneOf, (v) => (typeof v === 'string' ? `'${v}'` : String(v))),\n ', '\n )\n const reason = 'must be one of: ' + allowed\n throw new ERR_INVALID_ARG_VALUE(name, value, reason)\n }\n})\n\n/**\n * @callback validateBoolean\n * @param {*} value\n * @param {string} name\n * @returns {asserts value is boolean}\n */\n\n/** @type {validateBoolean} */\nfunction validateBoolean(value, name) {\n if (typeof value !== 'boolean') throw new ERR_INVALID_ARG_TYPE(name, 'boolean', value)\n}\n\n/**\n * @param {any} options\n * @param {string} key\n * @param {boolean} defaultValue\n * @returns {boolean}\n */\nfunction getOwnPropertyValueOrDefault(options, key, defaultValue) {\n return options == null || !ObjectPrototypeHasOwnProperty(options, key) ? defaultValue : options[key]\n}\n\n/**\n * @callback validateObject\n * @param {*} value\n * @param {string} name\n * @param {{\n * allowArray?: boolean,\n * allowFunction?: boolean,\n * nullable?: boolean\n * }} [options]\n */\n\n/** @type {validateObject} */\nconst validateObject = hideStackFrames((value, name, options = null) => {\n const allowArray = getOwnPropertyValueOrDefault(options, 'allowArray', false)\n const allowFunction = getOwnPropertyValueOrDefault(options, 'allowFunction', false)\n const nullable = getOwnPropertyValueOrDefault(options, 'nullable', false)\n if (\n (!nullable && value === null) ||\n (!allowArray && ArrayIsArray(value)) ||\n (typeof value !== 'object' && (!allowFunction || typeof value !== 'function'))\n ) {\n throw new ERR_INVALID_ARG_TYPE(name, 'Object', value)\n }\n})\n\n/**\n * @callback validateDictionary - We are using the Web IDL Standard definition\n * of \"dictionary\" here, which means any value\n * whose Type is either Undefined, Null, or\n * Object (which includes functions).\n * @param {*} value\n * @param {string} name\n * @see https://webidl.spec.whatwg.org/#es-dictionary\n * @see https://tc39.es/ecma262/#table-typeof-operator-results\n */\n\n/** @type {validateDictionary} */\nconst validateDictionary = hideStackFrames((value, name) => {\n if (value != null && typeof value !== 'object' && typeof value !== 'function') {\n throw new ERR_INVALID_ARG_TYPE(name, 'a dictionary', value)\n }\n})\n\n/**\n * @callback validateArray\n * @param {*} value\n * @param {string} name\n * @param {number} [minLength]\n * @returns {asserts value is any[]}\n */\n\n/** @type {validateArray} */\nconst validateArray = hideStackFrames((value, name, minLength = 0) => {\n if (!ArrayIsArray(value)) {\n throw new ERR_INVALID_ARG_TYPE(name, 'Array', value)\n }\n if (value.length < minLength) {\n const reason = `must be longer than ${minLength}`\n throw new ERR_INVALID_ARG_VALUE(name, value, reason)\n }\n})\n\n/**\n * @callback validateStringArray\n * @param {*} value\n * @param {string} name\n * @returns {asserts value is string[]}\n */\n\n/** @type {validateStringArray} */\nfunction validateStringArray(value, name) {\n validateArray(value, name)\n for (let i = 0; i < value.length; i++) {\n validateString(value[i], `${name}[${i}]`)\n }\n}\n\n/**\n * @callback validateBooleanArray\n * @param {*} value\n * @param {string} name\n * @returns {asserts value is boolean[]}\n */\n\n/** @type {validateBooleanArray} */\nfunction validateBooleanArray(value, name) {\n validateArray(value, name)\n for (let i = 0; i < value.length; i++) {\n validateBoolean(value[i], `${name}[${i}]`)\n }\n}\n\n/**\n * @callback validateAbortSignalArray\n * @param {*} value\n * @param {string} name\n * @returns {asserts value is AbortSignal[]}\n */\n\n/** @type {validateAbortSignalArray} */\nfunction validateAbortSignalArray(value, name) {\n validateArray(value, name)\n for (let i = 0; i < value.length; i++) {\n const signal = value[i]\n const indexedName = `${name}[${i}]`\n if (signal == null) {\n throw new ERR_INVALID_ARG_TYPE(indexedName, 'AbortSignal', signal)\n }\n validateAbortSignal(signal, indexedName)\n }\n}\n\n/**\n * @param {*} signal\n * @param {string} [name='signal']\n * @returns {asserts signal is keyof signals}\n */\nfunction validateSignalName(signal, name = 'signal') {\n validateString(signal, name)\n if (signals[signal] === undefined) {\n if (signals[StringPrototypeToUpperCase(signal)] !== undefined) {\n throw new ERR_UNKNOWN_SIGNAL(signal + ' (signals must use all capital letters)')\n }\n throw new ERR_UNKNOWN_SIGNAL(signal)\n }\n}\n\n/**\n * @callback validateBuffer\n * @param {*} buffer\n * @param {string} [name='buffer']\n * @returns {asserts buffer is ArrayBufferView}\n */\n\n/** @type {validateBuffer} */\nconst validateBuffer = hideStackFrames((buffer, name = 'buffer') => {\n if (!isArrayBufferView(buffer)) {\n throw new ERR_INVALID_ARG_TYPE(name, ['Buffer', 'TypedArray', 'DataView'], buffer)\n }\n})\n\n/**\n * @param {string} data\n * @param {string} encoding\n */\nfunction validateEncoding(data, encoding) {\n const normalizedEncoding = normalizeEncoding(encoding)\n const length = data.length\n if (normalizedEncoding === 'hex' && length % 2 !== 0) {\n throw new ERR_INVALID_ARG_VALUE('encoding', encoding, `is invalid for data of length ${length}`)\n }\n}\n\n/**\n * Check that the port number is not NaN when coerced to a number,\n * is an integer and that it falls within the legal range of port numbers.\n * @param {*} port\n * @param {string} [name='Port']\n * @param {boolean} [allowZero=true]\n * @returns {number}\n */\nfunction validatePort(port, name = 'Port', allowZero = true) {\n if (\n (typeof port !== 'number' && typeof port !== 'string') ||\n (typeof port === 'string' && StringPrototypeTrim(port).length === 0) ||\n +port !== +port >>> 0 ||\n port > 0xffff ||\n (port === 0 && !allowZero)\n ) {\n throw new ERR_SOCKET_BAD_PORT(name, port, allowZero)\n }\n return port | 0\n}\n\n/**\n * @callback validateAbortSignal\n * @param {*} signal\n * @param {string} name\n */\n\n/** @type {validateAbortSignal} */\nconst validateAbortSignal = hideStackFrames((signal, name) => {\n if (signal !== undefined && (signal === null || typeof signal !== 'object' || !('aborted' in signal))) {\n throw new ERR_INVALID_ARG_TYPE(name, 'AbortSignal', signal)\n }\n})\n\n/**\n * @callback validateFunction\n * @param {*} value\n * @param {string} name\n * @returns {asserts value is Function}\n */\n\n/** @type {validateFunction} */\nconst validateFunction = hideStackFrames((value, name) => {\n if (typeof value !== 'function') throw new ERR_INVALID_ARG_TYPE(name, 'Function', value)\n})\n\n/**\n * @callback validatePlainFunction\n * @param {*} value\n * @param {string} name\n * @returns {asserts value is Function}\n */\n\n/** @type {validatePlainFunction} */\nconst validatePlainFunction = hideStackFrames((value, name) => {\n if (typeof value !== 'function' || isAsyncFunction(value)) throw new ERR_INVALID_ARG_TYPE(name, 'Function', value)\n})\n\n/**\n * @callback validateUndefined\n * @param {*} value\n * @param {string} name\n * @returns {asserts value is undefined}\n */\n\n/** @type {validateUndefined} */\nconst validateUndefined = hideStackFrames((value, name) => {\n if (value !== undefined) throw new ERR_INVALID_ARG_TYPE(name, 'undefined', value)\n})\n\n/**\n * @template T\n * @param {T} value\n * @param {string} name\n * @param {T[]} union\n */\nfunction validateUnion(value, name, union) {\n if (!ArrayPrototypeIncludes(union, value)) {\n throw new ERR_INVALID_ARG_TYPE(name, `('${ArrayPrototypeJoin(union, '|')}')`, value)\n }\n}\n\n/*\n The rules for the Link header field are described here:\n https://www.rfc-editor.org/rfc/rfc8288.html#section-3\n\n This regex validates any string surrounded by angle brackets\n (not necessarily a valid URI reference) followed by zero or more\n link-params separated by semicolons.\n*/\nconst linkValueRegExp = /^(?:<[^>]*>)(?:\\s*;\\s*[^;\"\\s]+(?:=(\")?[^;\"\\s]*\\1)?)*$/\n\n/**\n * @param {any} value\n * @param {string} name\n */\nfunction validateLinkHeaderFormat(value, name) {\n if (typeof value === 'undefined' || !RegExpPrototypeExec(linkValueRegExp, value)) {\n throw new ERR_INVALID_ARG_VALUE(\n name,\n value,\n 'must be an array or string of format \"; rel=preload; as=style\"'\n )\n }\n}\n\n/**\n * @param {any} hints\n * @return {string}\n */\nfunction validateLinkHeaderValue(hints) {\n if (typeof hints === 'string') {\n validateLinkHeaderFormat(hints, 'hints')\n return hints\n } else if (ArrayIsArray(hints)) {\n const hintsLength = hints.length\n let result = ''\n if (hintsLength === 0) {\n return result\n }\n for (let i = 0; i < hintsLength; i++) {\n const link = hints[i]\n validateLinkHeaderFormat(link, 'hints')\n result += link\n if (i !== hintsLength - 1) {\n result += ', '\n }\n }\n return result\n }\n throw new ERR_INVALID_ARG_VALUE(\n 'hints',\n hints,\n 'must be an array or string of format \"; rel=preload; as=style\"'\n )\n}\nmodule.exports = {\n isInt32,\n isUint32,\n parseFileMode,\n validateArray,\n validateStringArray,\n validateBooleanArray,\n validateAbortSignalArray,\n validateBoolean,\n validateBuffer,\n validateDictionary,\n validateEncoding,\n validateFunction,\n validateInt32,\n validateInteger,\n validateNumber,\n validateObject,\n validateOneOf,\n validatePlainFunction,\n validatePort,\n validateSignalName,\n validateString,\n validateUint32,\n validateUndefined,\n validateUnion,\n validateAbortSignal,\n validateLinkHeaderValue\n}\n","'use strict'\n\nconst { format, inspect, AggregateError: CustomAggregateError } = require('./util')\n\n/*\n This file is a reduced and adapted version of the main lib/internal/errors.js file defined at\n\n https://github.com/nodejs/node/blob/master/lib/internal/errors.js\n\n Don't try to replace with the original file and keep it up to date (starting from E(...) definitions)\n with the upstream file.\n*/\n\nconst AggregateError = globalThis.AggregateError || CustomAggregateError\nconst kIsNodeError = Symbol('kIsNodeError')\nconst kTypes = [\n 'string',\n 'function',\n 'number',\n 'object',\n // Accept 'Function' and 'Object' as alternative to the lower cased version.\n 'Function',\n 'Object',\n 'boolean',\n 'bigint',\n 'symbol'\n]\nconst classRegExp = /^([A-Z][a-z0-9]*)+$/\nconst nodeInternalPrefix = '__node_internal_'\nconst codes = {}\nfunction assert(value, message) {\n if (!value) {\n throw new codes.ERR_INTERNAL_ASSERTION(message)\n }\n}\n\n// Only use this for integers! Decimal numbers do not work with this function.\nfunction addNumericalSeparator(val) {\n let res = ''\n let i = val.length\n const start = val[0] === '-' ? 1 : 0\n for (; i >= start + 4; i -= 3) {\n res = `_${val.slice(i - 3, i)}${res}`\n }\n return `${val.slice(0, i)}${res}`\n}\nfunction getMessage(key, msg, args) {\n if (typeof msg === 'function') {\n assert(\n msg.length <= args.length,\n // Default options do not count.\n `Code: ${key}; The provided arguments length (${args.length}) does not match the required ones (${msg.length}).`\n )\n return msg(...args)\n }\n const expectedLength = (msg.match(/%[dfijoOs]/g) || []).length\n assert(\n expectedLength === args.length,\n `Code: ${key}; The provided arguments length (${args.length}) does not match the required ones (${expectedLength}).`\n )\n if (args.length === 0) {\n return msg\n }\n return format(msg, ...args)\n}\nfunction E(code, message, Base) {\n if (!Base) {\n Base = Error\n }\n class NodeError extends Base {\n constructor(...args) {\n super(getMessage(code, message, args))\n }\n toString() {\n return `${this.name} [${code}]: ${this.message}`\n }\n }\n Object.defineProperties(NodeError.prototype, {\n name: {\n value: Base.name,\n writable: true,\n enumerable: false,\n configurable: true\n },\n toString: {\n value() {\n return `${this.name} [${code}]: ${this.message}`\n },\n writable: true,\n enumerable: false,\n configurable: true\n }\n })\n NodeError.prototype.code = code\n NodeError.prototype[kIsNodeError] = true\n codes[code] = NodeError\n}\nfunction hideStackFrames(fn) {\n // We rename the functions that will be hidden to cut off the stacktrace\n // at the outermost one\n const hidden = nodeInternalPrefix + fn.name\n Object.defineProperty(fn, 'name', {\n value: hidden\n })\n return fn\n}\nfunction aggregateTwoErrors(innerError, outerError) {\n if (innerError && outerError && innerError !== outerError) {\n if (Array.isArray(outerError.errors)) {\n // If `outerError` is already an `AggregateError`.\n outerError.errors.push(innerError)\n return outerError\n }\n const err = new AggregateError([outerError, innerError], outerError.message)\n err.code = outerError.code\n return err\n }\n return innerError || outerError\n}\nclass AbortError extends Error {\n constructor(message = 'The operation was aborted', options = undefined) {\n if (options !== undefined && typeof options !== 'object') {\n throw new codes.ERR_INVALID_ARG_TYPE('options', 'Object', options)\n }\n super(message, options)\n this.code = 'ABORT_ERR'\n this.name = 'AbortError'\n }\n}\nE('ERR_ASSERTION', '%s', Error)\nE(\n 'ERR_INVALID_ARG_TYPE',\n (name, expected, actual) => {\n assert(typeof name === 'string', \"'name' must be a string\")\n if (!Array.isArray(expected)) {\n expected = [expected]\n }\n let msg = 'The '\n if (name.endsWith(' argument')) {\n // For cases like 'first argument'\n msg += `${name} `\n } else {\n msg += `\"${name}\" ${name.includes('.') ? 'property' : 'argument'} `\n }\n msg += 'must be '\n const types = []\n const instances = []\n const other = []\n for (const value of expected) {\n assert(typeof value === 'string', 'All expected entries have to be of type string')\n if (kTypes.includes(value)) {\n types.push(value.toLowerCase())\n } else if (classRegExp.test(value)) {\n instances.push(value)\n } else {\n assert(value !== 'object', 'The value \"object\" should be written as \"Object\"')\n other.push(value)\n }\n }\n\n // Special handle `object` in case other instances are allowed to outline\n // the differences between each other.\n if (instances.length > 0) {\n const pos = types.indexOf('object')\n if (pos !== -1) {\n types.splice(types, pos, 1)\n instances.push('Object')\n }\n }\n if (types.length > 0) {\n switch (types.length) {\n case 1:\n msg += `of type ${types[0]}`\n break\n case 2:\n msg += `one of type ${types[0]} or ${types[1]}`\n break\n default: {\n const last = types.pop()\n msg += `one of type ${types.join(', ')}, or ${last}`\n }\n }\n if (instances.length > 0 || other.length > 0) {\n msg += ' or '\n }\n }\n if (instances.length > 0) {\n switch (instances.length) {\n case 1:\n msg += `an instance of ${instances[0]}`\n break\n case 2:\n msg += `an instance of ${instances[0]} or ${instances[1]}`\n break\n default: {\n const last = instances.pop()\n msg += `an instance of ${instances.join(', ')}, or ${last}`\n }\n }\n if (other.length > 0) {\n msg += ' or '\n }\n }\n switch (other.length) {\n case 0:\n break\n case 1:\n if (other[0].toLowerCase() !== other[0]) {\n msg += 'an '\n }\n msg += `${other[0]}`\n break\n case 2:\n msg += `one of ${other[0]} or ${other[1]}`\n break\n default: {\n const last = other.pop()\n msg += `one of ${other.join(', ')}, or ${last}`\n }\n }\n if (actual == null) {\n msg += `. Received ${actual}`\n } else if (typeof actual === 'function' && actual.name) {\n msg += `. Received function ${actual.name}`\n } else if (typeof actual === 'object') {\n var _actual$constructor\n if (\n (_actual$constructor = actual.constructor) !== null &&\n _actual$constructor !== undefined &&\n _actual$constructor.name\n ) {\n msg += `. Received an instance of ${actual.constructor.name}`\n } else {\n const inspected = inspect(actual, {\n depth: -1\n })\n msg += `. Received ${inspected}`\n }\n } else {\n let inspected = inspect(actual, {\n colors: false\n })\n if (inspected.length > 25) {\n inspected = `${inspected.slice(0, 25)}...`\n }\n msg += `. Received type ${typeof actual} (${inspected})`\n }\n return msg\n },\n TypeError\n)\nE(\n 'ERR_INVALID_ARG_VALUE',\n (name, value, reason = 'is invalid') => {\n let inspected = inspect(value)\n if (inspected.length > 128) {\n inspected = inspected.slice(0, 128) + '...'\n }\n const type = name.includes('.') ? 'property' : 'argument'\n return `The ${type} '${name}' ${reason}. Received ${inspected}`\n },\n TypeError\n)\nE(\n 'ERR_INVALID_RETURN_VALUE',\n (input, name, value) => {\n var _value$constructor\n const type =\n value !== null &&\n value !== undefined &&\n (_value$constructor = value.constructor) !== null &&\n _value$constructor !== undefined &&\n _value$constructor.name\n ? `instance of ${value.constructor.name}`\n : `type ${typeof value}`\n return `Expected ${input} to be returned from the \"${name}\"` + ` function but got ${type}.`\n },\n TypeError\n)\nE(\n 'ERR_MISSING_ARGS',\n (...args) => {\n assert(args.length > 0, 'At least one arg needs to be specified')\n let msg\n const len = args.length\n args = (Array.isArray(args) ? args : [args]).map((a) => `\"${a}\"`).join(' or ')\n switch (len) {\n case 1:\n msg += `The ${args[0]} argument`\n break\n case 2:\n msg += `The ${args[0]} and ${args[1]} arguments`\n break\n default:\n {\n const last = args.pop()\n msg += `The ${args.join(', ')}, and ${last} arguments`\n }\n break\n }\n return `${msg} must be specified`\n },\n TypeError\n)\nE(\n 'ERR_OUT_OF_RANGE',\n (str, range, input) => {\n assert(range, 'Missing \"range\" argument')\n let received\n if (Number.isInteger(input) && Math.abs(input) > 2 ** 32) {\n received = addNumericalSeparator(String(input))\n } else if (typeof input === 'bigint') {\n received = String(input)\n if (input > 2n ** 32n || input < -(2n ** 32n)) {\n received = addNumericalSeparator(received)\n }\n received += 'n'\n } else {\n received = inspect(input)\n }\n return `The value of \"${str}\" is out of range. It must be ${range}. Received ${received}`\n },\n RangeError\n)\nE('ERR_MULTIPLE_CALLBACK', 'Callback called multiple times', Error)\nE('ERR_METHOD_NOT_IMPLEMENTED', 'The %s method is not implemented', Error)\nE('ERR_STREAM_ALREADY_FINISHED', 'Cannot call %s after a stream was finished', Error)\nE('ERR_STREAM_CANNOT_PIPE', 'Cannot pipe, not readable', Error)\nE('ERR_STREAM_DESTROYED', 'Cannot call %s after a stream was destroyed', Error)\nE('ERR_STREAM_NULL_VALUES', 'May not write null values to stream', TypeError)\nE('ERR_STREAM_PREMATURE_CLOSE', 'Premature close', Error)\nE('ERR_STREAM_PUSH_AFTER_EOF', 'stream.push() after EOF', Error)\nE('ERR_STREAM_UNSHIFT_AFTER_END_EVENT', 'stream.unshift() after end event', Error)\nE('ERR_STREAM_WRITE_AFTER_END', 'write after end', Error)\nE('ERR_UNKNOWN_ENCODING', 'Unknown encoding: %s', TypeError)\nmodule.exports = {\n AbortError,\n aggregateTwoErrors: hideStackFrames(aggregateTwoErrors),\n hideStackFrames,\n codes\n}\n","'use strict'\n\nconst Stream = require('stream')\nif (Stream && process.env.READABLE_STREAM === 'disable') {\n const promises = Stream.promises\n\n // Explicit export naming is needed for ESM\n module.exports._uint8ArrayToBuffer = Stream._uint8ArrayToBuffer\n module.exports._isUint8Array = Stream._isUint8Array\n module.exports.isDisturbed = Stream.isDisturbed\n module.exports.isErrored = Stream.isErrored\n module.exports.isReadable = Stream.isReadable\n module.exports.Readable = Stream.Readable\n module.exports.Writable = Stream.Writable\n module.exports.Duplex = Stream.Duplex\n module.exports.Transform = Stream.Transform\n module.exports.PassThrough = Stream.PassThrough\n module.exports.addAbortSignal = Stream.addAbortSignal\n module.exports.finished = Stream.finished\n module.exports.destroy = Stream.destroy\n module.exports.pipeline = Stream.pipeline\n module.exports.compose = Stream.compose\n Object.defineProperty(Stream, 'promises', {\n configurable: true,\n enumerable: true,\n get() {\n return promises\n }\n })\n module.exports.Stream = Stream.Stream\n} else {\n const CustomStream = require('../stream')\n const promises = require('../stream/promises')\n const originalDestroy = CustomStream.Readable.destroy\n module.exports = CustomStream.Readable\n\n // Explicit export naming is needed for ESM\n module.exports._uint8ArrayToBuffer = CustomStream._uint8ArrayToBuffer\n module.exports._isUint8Array = CustomStream._isUint8Array\n module.exports.isDisturbed = CustomStream.isDisturbed\n module.exports.isErrored = CustomStream.isErrored\n module.exports.isReadable = CustomStream.isReadable\n module.exports.Readable = CustomStream.Readable\n module.exports.Writable = CustomStream.Writable\n module.exports.Duplex = CustomStream.Duplex\n module.exports.Transform = CustomStream.Transform\n module.exports.PassThrough = CustomStream.PassThrough\n module.exports.addAbortSignal = CustomStream.addAbortSignal\n module.exports.finished = CustomStream.finished\n module.exports.destroy = CustomStream.destroy\n module.exports.destroy = originalDestroy\n module.exports.pipeline = CustomStream.pipeline\n module.exports.compose = CustomStream.compose\n Object.defineProperty(CustomStream, 'promises', {\n configurable: true,\n enumerable: true,\n get() {\n return promises\n }\n })\n module.exports.Stream = CustomStream.Stream\n}\n\n// Allow default importing\nmodule.exports.default = module.exports\n","'use strict'\n\n/*\n This file is a reduced and adapted version of the main lib/internal/per_context/primordials.js file defined at\n\n https://github.com/nodejs/node/blob/master/lib/internal/per_context/primordials.js\n\n Don't try to replace with the original file and keep it up to date with the upstream file.\n*/\nmodule.exports = {\n ArrayIsArray(self) {\n return Array.isArray(self)\n },\n ArrayPrototypeIncludes(self, el) {\n return self.includes(el)\n },\n ArrayPrototypeIndexOf(self, el) {\n return self.indexOf(el)\n },\n ArrayPrototypeJoin(self, sep) {\n return self.join(sep)\n },\n ArrayPrototypeMap(self, fn) {\n return self.map(fn)\n },\n ArrayPrototypePop(self, el) {\n return self.pop(el)\n },\n ArrayPrototypePush(self, el) {\n return self.push(el)\n },\n ArrayPrototypeSlice(self, start, end) {\n return self.slice(start, end)\n },\n Error,\n FunctionPrototypeCall(fn, thisArgs, ...args) {\n return fn.call(thisArgs, ...args)\n },\n FunctionPrototypeSymbolHasInstance(self, instance) {\n return Function.prototype[Symbol.hasInstance].call(self, instance)\n },\n MathFloor: Math.floor,\n Number,\n NumberIsInteger: Number.isInteger,\n NumberIsNaN: Number.isNaN,\n NumberMAX_SAFE_INTEGER: Number.MAX_SAFE_INTEGER,\n NumberMIN_SAFE_INTEGER: Number.MIN_SAFE_INTEGER,\n NumberParseInt: Number.parseInt,\n ObjectDefineProperties(self, props) {\n return Object.defineProperties(self, props)\n },\n ObjectDefineProperty(self, name, prop) {\n return Object.defineProperty(self, name, prop)\n },\n ObjectGetOwnPropertyDescriptor(self, name) {\n return Object.getOwnPropertyDescriptor(self, name)\n },\n ObjectKeys(obj) {\n return Object.keys(obj)\n },\n ObjectSetPrototypeOf(target, proto) {\n return Object.setPrototypeOf(target, proto)\n },\n Promise,\n PromisePrototypeCatch(self, fn) {\n return self.catch(fn)\n },\n PromisePrototypeThen(self, thenFn, catchFn) {\n return self.then(thenFn, catchFn)\n },\n PromiseReject(err) {\n return Promise.reject(err)\n },\n PromiseResolve(val) {\n return Promise.resolve(val)\n },\n ReflectApply: Reflect.apply,\n RegExpPrototypeTest(self, value) {\n return self.test(value)\n },\n SafeSet: Set,\n String,\n StringPrototypeSlice(self, start, end) {\n return self.slice(start, end)\n },\n StringPrototypeToLowerCase(self) {\n return self.toLowerCase()\n },\n StringPrototypeToUpperCase(self) {\n return self.toUpperCase()\n },\n StringPrototypeTrim(self) {\n return self.trim()\n },\n Symbol,\n SymbolFor: Symbol.for,\n SymbolAsyncIterator: Symbol.asyncIterator,\n SymbolHasInstance: Symbol.hasInstance,\n SymbolIterator: Symbol.iterator,\n SymbolDispose: Symbol.dispose || Symbol('Symbol.dispose'),\n SymbolAsyncDispose: Symbol.asyncDispose || Symbol('Symbol.asyncDispose'),\n TypedArrayPrototypeSet(self, buf, len) {\n return self.set(buf, len)\n },\n Boolean: Boolean,\n Uint8Array\n}\n","'use strict'\n\nconst bufferModule = require('buffer')\nconst { kResistStopPropagation, SymbolDispose } = require('./primordials')\nconst AbortSignal = globalThis.AbortSignal || require('abort-controller').AbortSignal\nconst AbortController = globalThis.AbortController || require('abort-controller').AbortController\nconst AsyncFunction = Object.getPrototypeOf(async function () {}).constructor\nconst Blob = globalThis.Blob || bufferModule.Blob\n/* eslint-disable indent */\nconst isBlob =\n typeof Blob !== 'undefined'\n ? function isBlob(b) {\n // eslint-disable-next-line indent\n return b instanceof Blob\n }\n : function isBlob(b) {\n return false\n }\n/* eslint-enable indent */\n\nconst validateAbortSignal = (signal, name) => {\n if (signal !== undefined && (signal === null || typeof signal !== 'object' || !('aborted' in signal))) {\n throw new ERR_INVALID_ARG_TYPE(name, 'AbortSignal', signal)\n }\n}\nconst validateFunction = (value, name) => {\n if (typeof value !== 'function') throw new ERR_INVALID_ARG_TYPE(name, 'Function', value)\n}\n\n// This is a simplified version of AggregateError\nclass AggregateError extends Error {\n constructor(errors) {\n if (!Array.isArray(errors)) {\n throw new TypeError(`Expected input to be an Array, got ${typeof errors}`)\n }\n let message = ''\n for (let i = 0; i < errors.length; i++) {\n message += ` ${errors[i].stack}\\n`\n }\n super(message)\n this.name = 'AggregateError'\n this.errors = errors\n }\n}\nmodule.exports = {\n AggregateError,\n kEmptyObject: Object.freeze({}),\n once(callback) {\n let called = false\n return function (...args) {\n if (called) {\n return\n }\n called = true\n callback.apply(this, args)\n }\n },\n createDeferredPromise: function () {\n let resolve\n let reject\n\n // eslint-disable-next-line promise/param-names\n const promise = new Promise((res, rej) => {\n resolve = res\n reject = rej\n })\n return {\n promise,\n resolve,\n reject\n }\n },\n promisify(fn) {\n return new Promise((resolve, reject) => {\n fn((err, ...args) => {\n if (err) {\n return reject(err)\n }\n return resolve(...args)\n })\n })\n },\n debuglog() {\n return function () {}\n },\n format(format, ...args) {\n // Simplified version of https://nodejs.org/api/util.html#utilformatformat-args\n return format.replace(/%([sdifj])/g, function (...[_unused, type]) {\n const replacement = args.shift()\n if (type === 'f') {\n return replacement.toFixed(6)\n } else if (type === 'j') {\n return JSON.stringify(replacement)\n } else if (type === 's' && typeof replacement === 'object') {\n const ctor = replacement.constructor !== Object ? replacement.constructor.name : ''\n return `${ctor} {}`.trim()\n } else {\n return replacement.toString()\n }\n })\n },\n inspect(value) {\n // Vastly simplified version of https://nodejs.org/api/util.html#utilinspectobject-options\n switch (typeof value) {\n case 'string':\n if (value.includes(\"'\")) {\n if (!value.includes('\"')) {\n return `\"${value}\"`\n } else if (!value.includes('`') && !value.includes('${')) {\n return `\\`${value}\\``\n }\n }\n return `'${value}'`\n case 'number':\n if (isNaN(value)) {\n return 'NaN'\n } else if (Object.is(value, -0)) {\n return String(value)\n }\n return value\n case 'bigint':\n return `${String(value)}n`\n case 'boolean':\n case 'undefined':\n return String(value)\n case 'object':\n return '{}'\n }\n },\n types: {\n isAsyncFunction(fn) {\n return fn instanceof AsyncFunction\n },\n isArrayBufferView(arr) {\n return ArrayBuffer.isView(arr)\n }\n },\n isBlob,\n deprecate(fn, message) {\n return fn\n },\n addAbortListener:\n require('events').addAbortListener ||\n function addAbortListener(signal, listener) {\n if (signal === undefined) {\n throw new ERR_INVALID_ARG_TYPE('signal', 'AbortSignal', signal)\n }\n validateAbortSignal(signal, 'signal')\n validateFunction(listener, 'listener')\n let removeEventListener\n if (signal.aborted) {\n queueMicrotask(() => listener())\n } else {\n signal.addEventListener('abort', listener, {\n __proto__: null,\n once: true,\n [kResistStopPropagation]: true\n })\n removeEventListener = () => {\n signal.removeEventListener('abort', listener)\n }\n }\n return {\n __proto__: null,\n [SymbolDispose]() {\n var _removeEventListener\n ;(_removeEventListener = removeEventListener) === null || _removeEventListener === undefined\n ? undefined\n : _removeEventListener()\n }\n }\n },\n AbortSignalAny:\n AbortSignal.any ||\n function AbortSignalAny(signals) {\n // Fast path if there is only one signal.\n if (signals.length === 1) {\n return signals[0]\n }\n const ac = new AbortController()\n const abort = () => ac.abort()\n signals.forEach((signal) => {\n validateAbortSignal(signal, 'signals')\n signal.addEventListener('abort', abort, {\n once: true\n })\n })\n ac.signal.addEventListener(\n 'abort',\n () => {\n signals.forEach((signal) => signal.removeEventListener('abort', abort))\n },\n {\n once: true\n }\n )\n return ac.signal\n }\n}\nmodule.exports.promisify.custom = Symbol.for('nodejs.util.promisify.custom')\n","/* replacement start */\n\nconst { Buffer } = require('buffer')\n\n/* replacement end */\n// Copyright Joyent, Inc. and other Node contributors.\n//\n// Permission is hereby granted, free of charge, to any person obtaining a\n// copy of this software and associated documentation files (the\n// \"Software\"), to deal in the Software without restriction, including\n// without limitation the rights to use, copy, modify, merge, publish,\n// distribute, sublicense, and/or sell copies of the Software, and to permit\n// persons to whom the Software is furnished to do so, subject to the\n// following conditions:\n//\n// The above copyright notice and this permission notice shall be included\n// in all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\n// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\n// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\n// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n;('use strict')\nconst { ObjectDefineProperty, ObjectKeys, ReflectApply } = require('./ours/primordials')\nconst {\n promisify: { custom: customPromisify }\n} = require('./ours/util')\nconst { streamReturningOperators, promiseReturningOperators } = require('./internal/streams/operators')\nconst {\n codes: { ERR_ILLEGAL_CONSTRUCTOR }\n} = require('./ours/errors')\nconst compose = require('./internal/streams/compose')\nconst { setDefaultHighWaterMark, getDefaultHighWaterMark } = require('./internal/streams/state')\nconst { pipeline } = require('./internal/streams/pipeline')\nconst { destroyer } = require('./internal/streams/destroy')\nconst eos = require('./internal/streams/end-of-stream')\nconst internalBuffer = {}\nconst promises = require('./stream/promises')\nconst utils = require('./internal/streams/utils')\nconst Stream = (module.exports = require('./internal/streams/legacy').Stream)\nStream.isDestroyed = utils.isDestroyed\nStream.isDisturbed = utils.isDisturbed\nStream.isErrored = utils.isErrored\nStream.isReadable = utils.isReadable\nStream.isWritable = utils.isWritable\nStream.Readable = require('./internal/streams/readable')\nfor (const key of ObjectKeys(streamReturningOperators)) {\n const op = streamReturningOperators[key]\n function fn(...args) {\n if (new.target) {\n throw ERR_ILLEGAL_CONSTRUCTOR()\n }\n return Stream.Readable.from(ReflectApply(op, this, args))\n }\n ObjectDefineProperty(fn, 'name', {\n __proto__: null,\n value: op.name\n })\n ObjectDefineProperty(fn, 'length', {\n __proto__: null,\n value: op.length\n })\n ObjectDefineProperty(Stream.Readable.prototype, key, {\n __proto__: null,\n value: fn,\n enumerable: false,\n configurable: true,\n writable: true\n })\n}\nfor (const key of ObjectKeys(promiseReturningOperators)) {\n const op = promiseReturningOperators[key]\n function fn(...args) {\n if (new.target) {\n throw ERR_ILLEGAL_CONSTRUCTOR()\n }\n return ReflectApply(op, this, args)\n }\n ObjectDefineProperty(fn, 'name', {\n __proto__: null,\n value: op.name\n })\n ObjectDefineProperty(fn, 'length', {\n __proto__: null,\n value: op.length\n })\n ObjectDefineProperty(Stream.Readable.prototype, key, {\n __proto__: null,\n value: fn,\n enumerable: false,\n configurable: true,\n writable: true\n })\n}\nStream.Writable = require('./internal/streams/writable')\nStream.Duplex = require('./internal/streams/duplex')\nStream.Transform = require('./internal/streams/transform')\nStream.PassThrough = require('./internal/streams/passthrough')\nStream.pipeline = pipeline\nconst { addAbortSignal } = require('./internal/streams/add-abort-signal')\nStream.addAbortSignal = addAbortSignal\nStream.finished = eos\nStream.destroy = destroyer\nStream.compose = compose\nStream.setDefaultHighWaterMark = setDefaultHighWaterMark\nStream.getDefaultHighWaterMark = getDefaultHighWaterMark\nObjectDefineProperty(Stream, 'promises', {\n __proto__: null,\n configurable: true,\n enumerable: true,\n get() {\n return promises\n }\n})\nObjectDefineProperty(pipeline, customPromisify, {\n __proto__: null,\n enumerable: true,\n get() {\n return promises.pipeline\n }\n})\nObjectDefineProperty(eos, customPromisify, {\n __proto__: null,\n enumerable: true,\n get() {\n return promises.finished\n }\n})\n\n// Backwards-compat with node 0.4.x\nStream.Stream = Stream\nStream._isUint8Array = function isUint8Array(value) {\n return value instanceof Uint8Array\n}\nStream._uint8ArrayToBuffer = function _uint8ArrayToBuffer(chunk) {\n return Buffer.from(chunk.buffer, chunk.byteOffset, chunk.byteLength)\n}\n","'use strict'\n\nconst { ArrayPrototypePop, Promise } = require('../ours/primordials')\nconst { isIterable, isNodeStream, isWebStream } = require('../internal/streams/utils')\nconst { pipelineImpl: pl } = require('../internal/streams/pipeline')\nconst { finished } = require('../internal/streams/end-of-stream')\nrequire('../../lib/stream.js')\nfunction pipeline(...streams) {\n return new Promise((resolve, reject) => {\n let signal\n let end\n const lastArg = streams[streams.length - 1]\n if (\n lastArg &&\n typeof lastArg === 'object' &&\n !isNodeStream(lastArg) &&\n !isIterable(lastArg) &&\n !isWebStream(lastArg)\n ) {\n const options = ArrayPrototypePop(streams)\n signal = options.signal\n end = options.end\n }\n pl(\n streams,\n (err, value) => {\n if (err) {\n reject(err)\n } else {\n resolve(value)\n }\n },\n {\n signal,\n end\n }\n )\n })\n}\nmodule.exports = {\n finished,\n pipeline\n}\n","module.exports = readdirGlob;\n\nconst fs = require('fs');\nconst { EventEmitter } = require('events');\nconst { Minimatch } = require('minimatch');\nconst { resolve } = require('path');\n\nfunction readdir(dir, strict) {\n return new Promise((resolve, reject) => {\n fs.readdir(dir, {withFileTypes: true} ,(err, files) => {\n if(err) {\n switch (err.code) {\n case 'ENOTDIR': // Not a directory\n if(strict) {\n reject(err);\n } else {\n resolve([]);\n }\n break;\n case 'ENOTSUP': // Operation not supported\n case 'ENOENT': // No such file or directory\n case 'ENAMETOOLONG': // Filename too long\n case 'UNKNOWN':\n resolve([]);\n break;\n case 'ELOOP': // Too many levels of symbolic links\n default:\n reject(err);\n break;\n }\n } else {\n resolve(files);\n }\n });\n });\n}\nfunction stat(file, followSymlinks) {\n return new Promise((resolve, reject) => {\n const statFunc = followSymlinks ? fs.stat : fs.lstat;\n statFunc(file, (err, stats) => {\n if(err) {\n switch (err.code) {\n case 'ENOENT':\n if(followSymlinks) {\n // Fallback to lstat to handle broken links as files\n resolve(stat(file, false)); \n } else {\n resolve(null);\n }\n break;\n default:\n resolve(null);\n break;\n }\n } else {\n resolve(stats);\n }\n });\n });\n}\n\nasync function* exploreWalkAsync(dir, path, followSymlinks, useStat, shouldSkip, strict) {\n let files = await readdir(path + dir, strict);\n for(const file of files) {\n let name = file.name;\n if(name === undefined) {\n // undefined file.name means the `withFileTypes` options is not supported by node\n // we have to call the stat function to know if file is directory or not.\n name = file;\n useStat = true;\n }\n const filename = dir + '/' + name;\n const relative = filename.slice(1); // Remove the leading /\n const absolute = path + '/' + relative;\n let stats = null;\n if(useStat || followSymlinks) {\n stats = await stat(absolute, followSymlinks);\n }\n if(!stats && file.name !== undefined) {\n stats = file;\n }\n if(stats === null) {\n stats = { isDirectory: () => false };\n }\n\n if(stats.isDirectory()) {\n if(!shouldSkip(relative)) {\n yield {relative, absolute, stats};\n yield* exploreWalkAsync(filename, path, followSymlinks, useStat, shouldSkip, false);\n }\n } else {\n yield {relative, absolute, stats};\n }\n }\n}\nasync function* explore(path, followSymlinks, useStat, shouldSkip) {\n yield* exploreWalkAsync('', path, followSymlinks, useStat, shouldSkip, true);\n}\n\n\nfunction readOptions(options) {\n return {\n pattern: options.pattern,\n dot: !!options.dot,\n noglobstar: !!options.noglobstar,\n matchBase: !!options.matchBase,\n nocase: !!options.nocase,\n ignore: options.ignore,\n skip: options.skip,\n\n follow: !!options.follow,\n stat: !!options.stat,\n nodir: !!options.nodir,\n mark: !!options.mark,\n silent: !!options.silent,\n absolute: !!options.absolute\n };\n}\n\nclass ReaddirGlob extends EventEmitter {\n constructor(cwd, options, cb) {\n super();\n if(typeof options === 'function') {\n cb = options;\n options = null;\n }\n\n this.options = readOptions(options || {});\n \n this.matchers = [];\n if(this.options.pattern) {\n const matchers = Array.isArray(this.options.pattern) ? this.options.pattern : [this.options.pattern];\n this.matchers = matchers.map( m =>\n new Minimatch(m, {\n dot: this.options.dot,\n noglobstar:this.options.noglobstar,\n matchBase:this.options.matchBase,\n nocase:this.options.nocase\n })\n );\n }\n \n this.ignoreMatchers = [];\n if(this.options.ignore) {\n const ignorePatterns = Array.isArray(this.options.ignore) ? this.options.ignore : [this.options.ignore];\n this.ignoreMatchers = ignorePatterns.map( ignore =>\n new Minimatch(ignore, {dot: true})\n );\n }\n \n this.skipMatchers = [];\n if(this.options.skip) {\n const skipPatterns = Array.isArray(this.options.skip) ? this.options.skip : [this.options.skip];\n this.skipMatchers = skipPatterns.map( skip =>\n new Minimatch(skip, {dot: true})\n );\n }\n\n this.iterator = explore(resolve(cwd || '.'), this.options.follow, this.options.stat, this._shouldSkipDirectory.bind(this));\n this.paused = false;\n this.inactive = false;\n this.aborted = false;\n \n if(cb) {\n this._matches = []; \n this.on('match', match => this._matches.push(this.options.absolute ? match.absolute : match.relative));\n this.on('error', err => cb(err));\n this.on('end', () => cb(null, this._matches));\n }\n\n setTimeout( () => this._next(), 0);\n }\n\n _shouldSkipDirectory(relative) {\n //console.log(relative, this.skipMatchers.some(m => m.match(relative)));\n return this.skipMatchers.some(m => m.match(relative));\n }\n\n _fileMatches(relative, isDirectory) {\n const file = relative + (isDirectory ? '/' : '');\n return (this.matchers.length === 0 || this.matchers.some(m => m.match(file)))\n && !this.ignoreMatchers.some(m => m.match(file))\n && (!this.options.nodir || !isDirectory);\n }\n\n _next() {\n if(!this.paused && !this.aborted) {\n this.iterator.next()\n .then((obj)=> {\n if(!obj.done) {\n const isDirectory = obj.value.stats.isDirectory();\n if(this._fileMatches(obj.value.relative, isDirectory )) {\n let relative = obj.value.relative;\n let absolute = obj.value.absolute;\n if(this.options.mark && isDirectory) {\n relative += '/';\n absolute += '/';\n }\n if(this.options.stat) {\n this.emit('match', {relative, absolute, stat:obj.value.stats});\n } else {\n this.emit('match', {relative, absolute});\n }\n }\n this._next(this.iterator);\n } else {\n this.emit('end');\n }\n })\n .catch((err) => {\n this.abort();\n this.emit('error', err);\n if(!err.code && !this.options.silent) {\n console.error(err);\n }\n });\n } else {\n this.inactive = true;\n }\n }\n\n abort() {\n this.aborted = true;\n }\n\n pause() {\n this.paused = true;\n }\n\n resume() {\n this.paused = false;\n if(this.inactive) {\n this.inactive = false;\n this._next();\n }\n }\n}\n\n\nfunction readdirGlob(pattern, options, cb) {\n return new ReaddirGlob(pattern, options, cb);\n}\nreaddirGlob.ReaddirGlob = ReaddirGlob;","const isWindows = typeof process === 'object' &&\n process &&\n process.platform === 'win32'\nmodule.exports = isWindows ? { sep: '\\\\' } : { sep: '/' }\n","const minimatch = module.exports = (p, pattern, options = {}) => {\n assertValidPattern(pattern)\n\n // shortcut: comments match nothing.\n if (!options.nocomment && pattern.charAt(0) === '#') {\n return false\n }\n\n return new Minimatch(pattern, options).match(p)\n}\n\nmodule.exports = minimatch\n\nconst path = require('./lib/path.js')\nminimatch.sep = path.sep\n\nconst GLOBSTAR = Symbol('globstar **')\nminimatch.GLOBSTAR = GLOBSTAR\nconst expand = require('brace-expansion')\n\nconst plTypes = {\n '!': { open: '(?:(?!(?:', close: '))[^/]*?)'},\n '?': { open: '(?:', close: ')?' },\n '+': { open: '(?:', close: ')+' },\n '*': { open: '(?:', close: ')*' },\n '@': { open: '(?:', close: ')' }\n}\n\n// any single thing other than /\n// don't need to escape / when using new RegExp()\nconst qmark = '[^/]'\n\n// * => any number of characters\nconst star = qmark + '*?'\n\n// ** when dots are allowed. Anything goes, except .. and .\n// not (^ or / followed by one or two dots followed by $ or /),\n// followed by anything, any number of times.\nconst twoStarDot = '(?:(?!(?:\\\\\\/|^)(?:\\\\.{1,2})($|\\\\\\/)).)*?'\n\n// not a ^ or / followed by a dot,\n// followed by anything, any number of times.\nconst twoStarNoDot = '(?:(?!(?:\\\\\\/|^)\\\\.).)*?'\n\n// \"abc\" -> { a:true, b:true, c:true }\nconst charSet = s => s.split('').reduce((set, c) => {\n set[c] = true\n return set\n}, {})\n\n// characters that need to be escaped in RegExp.\nconst reSpecials = charSet('().*{}+?[]^$\\\\!')\n\n// characters that indicate we have to add the pattern start\nconst addPatternStartSet = charSet('[.(')\n\n// normalizes slashes.\nconst slashSplit = /\\/+/\n\nminimatch.filter = (pattern, options = {}) =>\n (p, i, list) => minimatch(p, pattern, options)\n\nconst ext = (a, b = {}) => {\n const t = {}\n Object.keys(a).forEach(k => t[k] = a[k])\n Object.keys(b).forEach(k => t[k] = b[k])\n return t\n}\n\nminimatch.defaults = def => {\n if (!def || typeof def !== 'object' || !Object.keys(def).length) {\n return minimatch\n }\n\n const orig = minimatch\n\n const m = (p, pattern, options) => orig(p, pattern, ext(def, options))\n m.Minimatch = class Minimatch extends orig.Minimatch {\n constructor (pattern, options) {\n super(pattern, ext(def, options))\n }\n }\n m.Minimatch.defaults = options => orig.defaults(ext(def, options)).Minimatch\n m.filter = (pattern, options) => orig.filter(pattern, ext(def, options))\n m.defaults = options => orig.defaults(ext(def, options))\n m.makeRe = (pattern, options) => orig.makeRe(pattern, ext(def, options))\n m.braceExpand = (pattern, options) => orig.braceExpand(pattern, ext(def, options))\n m.match = (list, pattern, options) => orig.match(list, pattern, ext(def, options))\n\n return m\n}\n\n\n\n\n\n// Brace expansion:\n// a{b,c}d -> abd acd\n// a{b,}c -> abc ac\n// a{0..3}d -> a0d a1d a2d a3d\n// a{b,c{d,e}f}g -> abg acdfg acefg\n// a{b,c}d{e,f}g -> abdeg acdeg abdeg abdfg\n//\n// Invalid sets are not expanded.\n// a{2..}b -> a{2..}b\n// a{b}c -> a{b}c\nminimatch.braceExpand = (pattern, options) => braceExpand(pattern, options)\n\nconst braceExpand = (pattern, options = {}) => {\n assertValidPattern(pattern)\n\n // Thanks to Yeting Li for\n // improving this regexp to avoid a ReDOS vulnerability.\n if (options.nobrace || !/\\{(?:(?!\\{).)*\\}/.test(pattern)) {\n // shortcut. no need to expand.\n return [pattern]\n }\n\n return expand(pattern)\n}\n\nconst MAX_PATTERN_LENGTH = 1024 * 64\nconst assertValidPattern = pattern => {\n if (typeof pattern !== 'string') {\n throw new TypeError('invalid pattern')\n }\n\n if (pattern.length > MAX_PATTERN_LENGTH) {\n throw new TypeError('pattern is too long')\n }\n}\n\n// parse a component of the expanded set.\n// At this point, no pattern may contain \"/\" in it\n// so we're going to return a 2d array, where each entry is the full\n// pattern, split on '/', and then turned into a regular expression.\n// A regexp is made at the end which joins each array with an\n// escaped /, and another full one which joins each regexp with |.\n//\n// Following the lead of Bash 4.1, note that \"**\" only has special meaning\n// when it is the *only* thing in a path portion. Otherwise, any series\n// of * is equivalent to a single *. Globstar behavior is enabled by\n// default, and can be disabled by setting options.noglobstar.\nconst SUBPARSE = Symbol('subparse')\n\nminimatch.makeRe = (pattern, options) =>\n new Minimatch(pattern, options || {}).makeRe()\n\nminimatch.match = (list, pattern, options = {}) => {\n const mm = new Minimatch(pattern, options)\n list = list.filter(f => mm.match(f))\n if (mm.options.nonull && !list.length) {\n list.push(pattern)\n }\n return list\n}\n\n// replace stuff like \\* with *\nconst globUnescape = s => s.replace(/\\\\(.)/g, '$1')\nconst charUnescape = s => s.replace(/\\\\([^-\\]])/g, '$1')\nconst regExpEscape = s => s.replace(/[-[\\]{}()*+?.,\\\\^$|#\\s]/g, '\\\\$&')\nconst braExpEscape = s => s.replace(/[[\\]\\\\]/g, '\\\\$&')\n\nclass Minimatch {\n constructor (pattern, options) {\n assertValidPattern(pattern)\n\n if (!options) options = {}\n\n this.options = options\n this.set = []\n this.pattern = pattern\n this.windowsPathsNoEscape = !!options.windowsPathsNoEscape ||\n options.allowWindowsEscape === false\n if (this.windowsPathsNoEscape) {\n this.pattern = this.pattern.replace(/\\\\/g, '/')\n }\n this.regexp = null\n this.negate = false\n this.comment = false\n this.empty = false\n this.partial = !!options.partial\n\n // make the set of regexps etc.\n this.make()\n }\n\n debug () {}\n\n make () {\n const pattern = this.pattern\n const options = this.options\n\n // empty patterns and comments match nothing.\n if (!options.nocomment && pattern.charAt(0) === '#') {\n this.comment = true\n return\n }\n if (!pattern) {\n this.empty = true\n return\n }\n\n // step 1: figure out negation, etc.\n this.parseNegate()\n\n // step 2: expand braces\n let set = this.globSet = this.braceExpand()\n\n if (options.debug) this.debug = (...args) => console.error(...args)\n\n this.debug(this.pattern, set)\n\n // step 3: now we have a set, so turn each one into a series of path-portion\n // matching patterns.\n // These will be regexps, except in the case of \"**\", which is\n // set to the GLOBSTAR object for globstar behavior,\n // and will not contain any / characters\n set = this.globParts = set.map(s => s.split(slashSplit))\n\n this.debug(this.pattern, set)\n\n // glob --> regexps\n set = set.map((s, si, set) => s.map(this.parse, this))\n\n this.debug(this.pattern, set)\n\n // filter out everything that didn't compile properly.\n set = set.filter(s => s.indexOf(false) === -1)\n\n this.debug(this.pattern, set)\n\n this.set = set\n }\n\n parseNegate () {\n if (this.options.nonegate) return\n\n const pattern = this.pattern\n let negate = false\n let negateOffset = 0\n\n for (let i = 0; i < pattern.length && pattern.charAt(i) === '!'; i++) {\n negate = !negate\n negateOffset++\n }\n\n if (negateOffset) this.pattern = pattern.slice(negateOffset)\n this.negate = negate\n }\n\n // set partial to true to test if, for example,\n // \"/a/b\" matches the start of \"/*/b/*/d\"\n // Partial means, if you run out of file before you run\n // out of pattern, then that's fine, as long as all\n // the parts match.\n matchOne (file, pattern, partial) {\n var options = this.options\n\n this.debug('matchOne',\n { 'this': this, file: file, pattern: pattern })\n\n this.debug('matchOne', file.length, pattern.length)\n\n for (var fi = 0,\n pi = 0,\n fl = file.length,\n pl = pattern.length\n ; (fi < fl) && (pi < pl)\n ; fi++, pi++) {\n this.debug('matchOne loop')\n var p = pattern[pi]\n var f = file[fi]\n\n this.debug(pattern, p, f)\n\n // should be impossible.\n // some invalid regexp stuff in the set.\n /* istanbul ignore if */\n if (p === false) return false\n\n if (p === GLOBSTAR) {\n this.debug('GLOBSTAR', [pattern, p, f])\n\n // \"**\"\n // a/**/b/**/c would match the following:\n // a/b/x/y/z/c\n // a/x/y/z/b/c\n // a/b/x/b/x/c\n // a/b/c\n // To do this, take the rest of the pattern after\n // the **, and see if it would match the file remainder.\n // If so, return success.\n // If not, the ** \"swallows\" a segment, and try again.\n // This is recursively awful.\n //\n // a/**/b/**/c matching a/b/x/y/z/c\n // - a matches a\n // - doublestar\n // - matchOne(b/x/y/z/c, b/**/c)\n // - b matches b\n // - doublestar\n // - matchOne(x/y/z/c, c) -> no\n // - matchOne(y/z/c, c) -> no\n // - matchOne(z/c, c) -> no\n // - matchOne(c, c) yes, hit\n var fr = fi\n var pr = pi + 1\n if (pr === pl) {\n this.debug('** at the end')\n // a ** at the end will just swallow the rest.\n // We have found a match.\n // however, it will not swallow /.x, unless\n // options.dot is set.\n // . and .. are *never* matched by **, for explosively\n // exponential reasons.\n for (; fi < fl; fi++) {\n if (file[fi] === '.' || file[fi] === '..' ||\n (!options.dot && file[fi].charAt(0) === '.')) return false\n }\n return true\n }\n\n // ok, let's see if we can swallow whatever we can.\n while (fr < fl) {\n var swallowee = file[fr]\n\n this.debug('\\nglobstar while', file, fr, pattern, pr, swallowee)\n\n // XXX remove this slice. Just pass the start index.\n if (this.matchOne(file.slice(fr), pattern.slice(pr), partial)) {\n this.debug('globstar found match!', fr, fl, swallowee)\n // found a match.\n return true\n } else {\n // can't swallow \".\" or \"..\" ever.\n // can only swallow \".foo\" when explicitly asked.\n if (swallowee === '.' || swallowee === '..' ||\n (!options.dot && swallowee.charAt(0) === '.')) {\n this.debug('dot detected!', file, fr, pattern, pr)\n break\n }\n\n // ** swallows a segment, and continue.\n this.debug('globstar swallow a segment, and continue')\n fr++\n }\n }\n\n // no match was found.\n // However, in partial mode, we can't say this is necessarily over.\n // If there's more *pattern* left, then\n /* istanbul ignore if */\n if (partial) {\n // ran out of file\n this.debug('\\n>>> no match, partial?', file, fr, pattern, pr)\n if (fr === fl) return true\n }\n return false\n }\n\n // something other than **\n // non-magic patterns just have to match exactly\n // patterns with magic have been turned into regexps.\n var hit\n if (typeof p === 'string') {\n hit = f === p\n this.debug('string match', p, f, hit)\n } else {\n hit = f.match(p)\n this.debug('pattern match', p, f, hit)\n }\n\n if (!hit) return false\n }\n\n // Note: ending in / means that we'll get a final \"\"\n // at the end of the pattern. This can only match a\n // corresponding \"\" at the end of the file.\n // If the file ends in /, then it can only match a\n // a pattern that ends in /, unless the pattern just\n // doesn't have any more for it. But, a/b/ should *not*\n // match \"a/b/*\", even though \"\" matches against the\n // [^/]*? pattern, except in partial mode, where it might\n // simply not be reached yet.\n // However, a/b/ should still satisfy a/*\n\n // now either we fell off the end of the pattern, or we're done.\n if (fi === fl && pi === pl) {\n // ran out of pattern and filename at the same time.\n // an exact hit!\n return true\n } else if (fi === fl) {\n // ran out of file, but still had pattern left.\n // this is ok if we're doing the match as part of\n // a glob fs traversal.\n return partial\n } else /* istanbul ignore else */ if (pi === pl) {\n // ran out of pattern, still have file left.\n // this is only acceptable if we're on the very last\n // empty segment of a file with a trailing slash.\n // a/* should match a/b/\n return (fi === fl - 1) && (file[fi] === '')\n }\n\n // should be unreachable.\n /* istanbul ignore next */\n throw new Error('wtf?')\n }\n\n braceExpand () {\n return braceExpand(this.pattern, this.options)\n }\n\n parse (pattern, isSub) {\n assertValidPattern(pattern)\n\n const options = this.options\n\n // shortcuts\n if (pattern === '**') {\n if (!options.noglobstar)\n return GLOBSTAR\n else\n pattern = '*'\n }\n if (pattern === '') return ''\n\n let re = ''\n let hasMagic = false\n let escaping = false\n // ? => one single character\n const patternListStack = []\n const negativeLists = []\n let stateChar\n let inClass = false\n let reClassStart = -1\n let classStart = -1\n let cs\n let pl\n let sp\n // . and .. never match anything that doesn't start with .,\n // even when options.dot is set. However, if the pattern\n // starts with ., then traversal patterns can match.\n let dotTravAllowed = pattern.charAt(0) === '.'\n let dotFileAllowed = options.dot || dotTravAllowed\n const patternStart = () =>\n dotTravAllowed\n ? ''\n : dotFileAllowed\n ? '(?!(?:^|\\\\/)\\\\.{1,2}(?:$|\\\\/))'\n : '(?!\\\\.)'\n const subPatternStart = (p) =>\n p.charAt(0) === '.'\n ? ''\n : options.dot\n ? '(?!(?:^|\\\\/)\\\\.{1,2}(?:$|\\\\/))'\n : '(?!\\\\.)'\n\n\n const clearStateChar = () => {\n if (stateChar) {\n // we had some state-tracking character\n // that wasn't consumed by this pass.\n switch (stateChar) {\n case '*':\n re += star\n hasMagic = true\n break\n case '?':\n re += qmark\n hasMagic = true\n break\n default:\n re += '\\\\' + stateChar\n break\n }\n this.debug('clearStateChar %j %j', stateChar, re)\n stateChar = false\n }\n }\n\n for (let i = 0, c; (i < pattern.length) && (c = pattern.charAt(i)); i++) {\n this.debug('%s\\t%s %s %j', pattern, i, re, c)\n\n // skip over any that are escaped.\n if (escaping) {\n /* istanbul ignore next - completely not allowed, even escaped. */\n if (c === '/') {\n return false\n }\n\n if (reSpecials[c]) {\n re += '\\\\'\n }\n re += c\n escaping = false\n continue\n }\n\n switch (c) {\n /* istanbul ignore next */\n case '/': {\n // Should already be path-split by now.\n return false\n }\n\n case '\\\\':\n if (inClass && pattern.charAt(i + 1) === '-') {\n re += c\n continue\n }\n\n clearStateChar()\n escaping = true\n continue\n\n // the various stateChar values\n // for the \"extglob\" stuff.\n case '?':\n case '*':\n case '+':\n case '@':\n case '!':\n this.debug('%s\\t%s %s %j <-- stateChar', pattern, i, re, c)\n\n // all of those are literals inside a class, except that\n // the glob [!a] means [^a] in regexp\n if (inClass) {\n this.debug(' in class')\n if (c === '!' && i === classStart + 1) c = '^'\n re += c\n continue\n }\n\n // if we already have a stateChar, then it means\n // that there was something like ** or +? in there.\n // Handle the stateChar, then proceed with this one.\n this.debug('call clearStateChar %j', stateChar)\n clearStateChar()\n stateChar = c\n // if extglob is disabled, then +(asdf|foo) isn't a thing.\n // just clear the statechar *now*, rather than even diving into\n // the patternList stuff.\n if (options.noext) clearStateChar()\n continue\n\n case '(': {\n if (inClass) {\n re += '('\n continue\n }\n\n if (!stateChar) {\n re += '\\\\('\n continue\n }\n\n const plEntry = {\n type: stateChar,\n start: i - 1,\n reStart: re.length,\n open: plTypes[stateChar].open,\n close: plTypes[stateChar].close,\n }\n this.debug(this.pattern, '\\t', plEntry)\n patternListStack.push(plEntry)\n // negation is (?:(?!(?:js)(?:))[^/]*)\n re += plEntry.open\n // next entry starts with a dot maybe?\n if (plEntry.start === 0 && plEntry.type !== '!') {\n dotTravAllowed = true\n re += subPatternStart(pattern.slice(i + 1))\n }\n this.debug('plType %j %j', stateChar, re)\n stateChar = false\n continue\n }\n\n case ')': {\n const plEntry = patternListStack[patternListStack.length - 1]\n if (inClass || !plEntry) {\n re += '\\\\)'\n continue\n }\n patternListStack.pop()\n\n // closing an extglob\n clearStateChar()\n hasMagic = true\n pl = plEntry\n // negation is (?:(?!js)[^/]*)\n // The others are (?:)\n re += pl.close\n if (pl.type === '!') {\n negativeLists.push(Object.assign(pl, { reEnd: re.length }))\n }\n continue\n }\n\n case '|': {\n const plEntry = patternListStack[patternListStack.length - 1]\n if (inClass || !plEntry) {\n re += '\\\\|'\n continue\n }\n\n clearStateChar()\n re += '|'\n // next subpattern can start with a dot?\n if (plEntry.start === 0 && plEntry.type !== '!') {\n dotTravAllowed = true\n re += subPatternStart(pattern.slice(i + 1))\n }\n continue\n }\n\n // these are mostly the same in regexp and glob\n case '[':\n // swallow any state-tracking char before the [\n clearStateChar()\n\n if (inClass) {\n re += '\\\\' + c\n continue\n }\n\n inClass = true\n classStart = i\n reClassStart = re.length\n re += c\n continue\n\n case ']':\n // a right bracket shall lose its special\n // meaning and represent itself in\n // a bracket expression if it occurs\n // first in the list. -- POSIX.2 2.8.3.2\n if (i === classStart + 1 || !inClass) {\n re += '\\\\' + c\n continue\n }\n\n // split where the last [ was, make sure we don't have\n // an invalid re. if so, re-walk the contents of the\n // would-be class to re-translate any characters that\n // were passed through as-is\n // TODO: It would probably be faster to determine this\n // without a try/catch and a new RegExp, but it's tricky\n // to do safely. For now, this is safe and works.\n cs = pattern.substring(classStart + 1, i)\n try {\n RegExp('[' + braExpEscape(charUnescape(cs)) + ']')\n // looks good, finish up the class.\n re += c\n } catch (er) {\n // out of order ranges in JS are errors, but in glob syntax,\n // they're just a range that matches nothing.\n re = re.substring(0, reClassStart) + '(?:$.)' // match nothing ever\n }\n hasMagic = true\n inClass = false\n continue\n\n default:\n // swallow any state char that wasn't consumed\n clearStateChar()\n\n if (reSpecials[c] && !(c === '^' && inClass)) {\n re += '\\\\'\n }\n\n re += c\n break\n\n } // switch\n } // for\n\n // handle the case where we left a class open.\n // \"[abc\" is valid, equivalent to \"\\[abc\"\n if (inClass) {\n // split where the last [ was, and escape it\n // this is a huge pita. We now have to re-walk\n // the contents of the would-be class to re-translate\n // any characters that were passed through as-is\n cs = pattern.slice(classStart + 1)\n sp = this.parse(cs, SUBPARSE)\n re = re.substring(0, reClassStart) + '\\\\[' + sp[0]\n hasMagic = hasMagic || sp[1]\n }\n\n // handle the case where we had a +( thing at the *end*\n // of the pattern.\n // each pattern list stack adds 3 chars, and we need to go through\n // and escape any | chars that were passed through as-is for the regexp.\n // Go through and escape them, taking care not to double-escape any\n // | chars that were already escaped.\n for (pl = patternListStack.pop(); pl; pl = patternListStack.pop()) {\n let tail\n tail = re.slice(pl.reStart + pl.open.length)\n this.debug('setting tail', re, pl)\n // maybe some even number of \\, then maybe 1 \\, followed by a |\n tail = tail.replace(/((?:\\\\{2}){0,64})(\\\\?)\\|/g, (_, $1, $2) => {\n /* istanbul ignore else - should already be done */\n if (!$2) {\n // the | isn't already escaped, so escape it.\n $2 = '\\\\'\n }\n\n // need to escape all those slashes *again*, without escaping the\n // one that we need for escaping the | character. As it works out,\n // escaping an even number of slashes can be done by simply repeating\n // it exactly after itself. That's why this trick works.\n //\n // I am sorry that you have to see this.\n return $1 + $1 + $2 + '|'\n })\n\n this.debug('tail=%j\\n %s', tail, tail, pl, re)\n const t = pl.type === '*' ? star\n : pl.type === '?' ? qmark\n : '\\\\' + pl.type\n\n hasMagic = true\n re = re.slice(0, pl.reStart) + t + '\\\\(' + tail\n }\n\n // handle trailing things that only matter at the very end.\n clearStateChar()\n if (escaping) {\n // trailing \\\\\n re += '\\\\\\\\'\n }\n\n // only need to apply the nodot start if the re starts with\n // something that could conceivably capture a dot\n const addPatternStart = addPatternStartSet[re.charAt(0)]\n\n // Hack to work around lack of negative lookbehind in JS\n // A pattern like: *.!(x).!(y|z) needs to ensure that a name\n // like 'a.xyz.yz' doesn't match. So, the first negative\n // lookahead, has to look ALL the way ahead, to the end of\n // the pattern.\n for (let n = negativeLists.length - 1; n > -1; n--) {\n const nl = negativeLists[n]\n\n const nlBefore = re.slice(0, nl.reStart)\n const nlFirst = re.slice(nl.reStart, nl.reEnd - 8)\n let nlAfter = re.slice(nl.reEnd)\n const nlLast = re.slice(nl.reEnd - 8, nl.reEnd) + nlAfter\n\n // Handle nested stuff like *(*.js|!(*.json)), where open parens\n // mean that we should *not* include the ) in the bit that is considered\n // \"after\" the negated section.\n const closeParensBefore = nlBefore.split(')').length\n const openParensBefore = nlBefore.split('(').length - closeParensBefore\n let cleanAfter = nlAfter\n for (let i = 0; i < openParensBefore; i++) {\n cleanAfter = cleanAfter.replace(/\\)[+*?]?/, '')\n }\n nlAfter = cleanAfter\n\n const dollar = nlAfter === '' && isSub !== SUBPARSE ? '(?:$|\\\\/)' : ''\n\n re = nlBefore + nlFirst + nlAfter + dollar + nlLast\n }\n\n // if the re is not \"\" at this point, then we need to make sure\n // it doesn't match against an empty path part.\n // Otherwise a/* will match a/, which it should not.\n if (re !== '' && hasMagic) {\n re = '(?=.)' + re\n }\n\n if (addPatternStart) {\n re = patternStart() + re\n }\n\n // parsing just a piece of a larger pattern.\n if (isSub === SUBPARSE) {\n return [re, hasMagic]\n }\n\n // if it's nocase, and the lcase/uppercase don't match, it's magic\n if (options.nocase && !hasMagic) {\n hasMagic = pattern.toUpperCase() !== pattern.toLowerCase()\n }\n\n // skip the regexp for non-magical patterns\n // unescape anything in it, though, so that it'll be\n // an exact match against a file etc.\n if (!hasMagic) {\n return globUnescape(pattern)\n }\n\n const flags = options.nocase ? 'i' : ''\n try {\n return Object.assign(new RegExp('^' + re + '$', flags), {\n _glob: pattern,\n _src: re,\n })\n } catch (er) /* istanbul ignore next - should be impossible */ {\n // If it was an invalid regular expression, then it can't match\n // anything. This trick looks for a character after the end of\n // the string, which is of course impossible, except in multi-line\n // mode, but it's not a /m regex.\n return new RegExp('$.')\n }\n }\n\n makeRe () {\n if (this.regexp || this.regexp === false) return this.regexp\n\n // at this point, this.set is a 2d array of partial\n // pattern strings, or \"**\".\n //\n // It's better to use .match(). This function shouldn't\n // be used, really, but it's pretty convenient sometimes,\n // when you just want to work with a regex.\n const set = this.set\n\n if (!set.length) {\n this.regexp = false\n return this.regexp\n }\n const options = this.options\n\n const twoStar = options.noglobstar ? star\n : options.dot ? twoStarDot\n : twoStarNoDot\n const flags = options.nocase ? 'i' : ''\n\n // coalesce globstars and regexpify non-globstar patterns\n // if it's the only item, then we just do one twoStar\n // if it's the first, and there are more, prepend (\\/|twoStar\\/)? to next\n // if it's the last, append (\\/twoStar|) to previous\n // if it's in the middle, append (\\/|\\/twoStar\\/) to previous\n // then filter out GLOBSTAR symbols\n let re = set.map(pattern => {\n pattern = pattern.map(p =>\n typeof p === 'string' ? regExpEscape(p)\n : p === GLOBSTAR ? GLOBSTAR\n : p._src\n ).reduce((set, p) => {\n if (!(set[set.length - 1] === GLOBSTAR && p === GLOBSTAR)) {\n set.push(p)\n }\n return set\n }, [])\n pattern.forEach((p, i) => {\n if (p !== GLOBSTAR || pattern[i-1] === GLOBSTAR) {\n return\n }\n if (i === 0) {\n if (pattern.length > 1) {\n pattern[i+1] = '(?:\\\\\\/|' + twoStar + '\\\\\\/)?' + pattern[i+1]\n } else {\n pattern[i] = twoStar\n }\n } else if (i === pattern.length - 1) {\n pattern[i-1] += '(?:\\\\\\/|' + twoStar + ')?'\n } else {\n pattern[i-1] += '(?:\\\\\\/|\\\\\\/' + twoStar + '\\\\\\/)' + pattern[i+1]\n pattern[i+1] = GLOBSTAR\n }\n })\n return pattern.filter(p => p !== GLOBSTAR).join('/')\n }).join('|')\n\n // must match entire pattern\n // ending in a * or ** will make it less strict.\n re = '^(?:' + re + ')$'\n\n // can match anything, as long as it's not this.\n if (this.negate) re = '^(?!' + re + ').*$'\n\n try {\n this.regexp = new RegExp(re, flags)\n } catch (ex) /* istanbul ignore next - should be impossible */ {\n this.regexp = false\n }\n return this.regexp\n }\n\n match (f, partial = this.partial) {\n this.debug('match', f, this.pattern)\n // short-circuit in the case of busted things.\n // comments, etc.\n if (this.comment) return false\n if (this.empty) return f === ''\n\n if (f === '/' && partial) return true\n\n const options = this.options\n\n // windows: need to use /, not \\\n if (path.sep !== '/') {\n f = f.split(path.sep).join('/')\n }\n\n // treat the test path as a set of pathparts.\n f = f.split(slashSplit)\n this.debug(this.pattern, 'split', f)\n\n // just ONE of the pattern sets in this.set needs to match\n // in order for it to be valid. If negating, then just one\n // match means that we have failed.\n // Either way, return on the first hit.\n\n const set = this.set\n this.debug(this.pattern, 'set', set)\n\n // Find the basename of the path by looking for the last non-empty segment\n let filename\n for (let i = f.length - 1; i >= 0; i--) {\n filename = f[i]\n if (filename) break\n }\n\n for (let i = 0; i < set.length; i++) {\n const pattern = set[i]\n let file = f\n if (options.matchBase && pattern.length === 1) {\n file = [filename]\n }\n const hit = this.matchOne(file, pattern, partial)\n if (hit) {\n if (options.flipNegate) return true\n return !this.negate\n }\n }\n\n // didn't get any hits. this is success if it's a negative\n // pattern, failure otherwise.\n if (options.flipNegate) return false\n return this.negate\n }\n\n static defaults (def) {\n return minimatch.defaults(def).Minimatch\n }\n}\n\nminimatch.Minimatch = Minimatch\n","/* eslint-disable node/no-deprecated-api */\nvar buffer = require('buffer')\nvar Buffer = buffer.Buffer\n\n// alternative to using Object.keys for old browsers\nfunction copyProps (src, dst) {\n for (var key in src) {\n dst[key] = src[key]\n }\n}\nif (Buffer.from && Buffer.alloc && Buffer.allocUnsafe && Buffer.allocUnsafeSlow) {\n module.exports = buffer\n} else {\n // Copy properties from require('buffer')\n copyProps(buffer, exports)\n exports.Buffer = SafeBuffer\n}\n\nfunction SafeBuffer (arg, encodingOrOffset, length) {\n return Buffer(arg, encodingOrOffset, length)\n}\n\n// Copy static methods from Buffer\ncopyProps(Buffer, SafeBuffer)\n\nSafeBuffer.from = function (arg, encodingOrOffset, length) {\n if (typeof arg === 'number') {\n throw new TypeError('Argument must not be a number')\n }\n return Buffer(arg, encodingOrOffset, length)\n}\n\nSafeBuffer.alloc = function (size, fill, encoding) {\n if (typeof size !== 'number') {\n throw new TypeError('Argument must be a number')\n }\n var buf = Buffer(size)\n if (fill !== undefined) {\n if (typeof encoding === 'string') {\n buf.fill(fill, encoding)\n } else {\n buf.fill(fill)\n }\n } else {\n buf.fill(0)\n }\n return buf\n}\n\nSafeBuffer.allocUnsafe = function (size) {\n if (typeof size !== 'number') {\n throw new TypeError('Argument must be a number')\n }\n return Buffer(size)\n}\n\nSafeBuffer.allocUnsafeSlow = function (size) {\n if (typeof size !== 'number') {\n throw new TypeError('Argument must be a number')\n }\n return buffer.SlowBuffer(size)\n}\n","/* eslint-disable node/no-deprecated-api */\n\n'use strict'\n\nvar buffer = require('buffer')\nvar Buffer = buffer.Buffer\n\nvar safer = {}\n\nvar key\n\nfor (key in buffer) {\n if (!buffer.hasOwnProperty(key)) continue\n if (key === 'SlowBuffer' || key === 'Buffer') continue\n safer[key] = buffer[key]\n}\n\nvar Safer = safer.Buffer = {}\nfor (key in Buffer) {\n if (!Buffer.hasOwnProperty(key)) continue\n if (key === 'allocUnsafe' || key === 'allocUnsafeSlow') continue\n Safer[key] = Buffer[key]\n}\n\nsafer.Buffer.prototype = Buffer.prototype\n\nif (!Safer.from || Safer.from === Uint8Array.from) {\n Safer.from = function (value, encodingOrOffset, length) {\n if (typeof value === 'number') {\n throw new TypeError('The \"value\" argument must not be of type number. Received type ' + typeof value)\n }\n if (value && typeof value.length === 'undefined') {\n throw new TypeError('The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type ' + typeof value)\n }\n return Buffer(value, encodingOrOffset, length)\n }\n}\n\nif (!Safer.alloc) {\n Safer.alloc = function (size, fill, encoding) {\n if (typeof size !== 'number') {\n throw new TypeError('The \"size\" argument must be of type number. Received type ' + typeof size)\n }\n if (size < 0 || size >= 2 * (1 << 30)) {\n throw new RangeError('The value \"' + size + '\" is invalid for option \"size\"')\n }\n var buf = Buffer(size)\n if (!fill || fill.length === 0) {\n buf.fill(0)\n } else if (typeof encoding === 'string') {\n buf.fill(fill, encoding)\n } else {\n buf.fill(fill)\n }\n return buf\n }\n}\n\nif (!safer.kStringMaxLength) {\n try {\n safer.kStringMaxLength = process.binding('buffer').kStringMaxLength\n } catch (e) {\n // we can't determine kStringMaxLength in environments where process.binding\n // is unsupported, so let's not set it\n }\n}\n\nif (!safer.constants) {\n safer.constants = {\n MAX_LENGTH: safer.kMaxLength\n }\n if (safer.kStringMaxLength) {\n safer.constants.MAX_STRING_LENGTH = safer.kStringMaxLength\n }\n}\n\nmodule.exports = safer\n",";(function (sax) { // wrapper for non-node envs\n sax.parser = function (strict, opt) { return new SAXParser(strict, opt) }\n sax.SAXParser = SAXParser\n sax.SAXStream = SAXStream\n sax.createStream = createStream\n\n // When we pass the MAX_BUFFER_LENGTH position, start checking for buffer overruns.\n // When we check, schedule the next check for MAX_BUFFER_LENGTH - (max(buffer lengths)),\n // since that's the earliest that a buffer overrun could occur. This way, checks are\n // as rare as required, but as often as necessary to ensure never crossing this bound.\n // Furthermore, buffers are only tested at most once per write(), so passing a very\n // large string into write() might have undesirable effects, but this is manageable by\n // the caller, so it is assumed to be safe. Thus, a call to write() may, in the extreme\n // edge case, result in creating at most one complete copy of the string passed in.\n // Set to Infinity to have unlimited buffers.\n sax.MAX_BUFFER_LENGTH = 64 * 1024\n\n var buffers = [\n 'comment', 'sgmlDecl', 'textNode', 'tagName', 'doctype',\n 'procInstName', 'procInstBody', 'entity', 'attribName',\n 'attribValue', 'cdata', 'script'\n ]\n\n sax.EVENTS = [\n 'text',\n 'processinginstruction',\n 'sgmldeclaration',\n 'doctype',\n 'comment',\n 'opentagstart',\n 'attribute',\n 'opentag',\n 'closetag',\n 'opencdata',\n 'cdata',\n 'closecdata',\n 'error',\n 'end',\n 'ready',\n 'script',\n 'opennamespace',\n 'closenamespace'\n ]\n\n function SAXParser (strict, opt) {\n if (!(this instanceof SAXParser)) {\n return new SAXParser(strict, opt)\n }\n\n var parser = this\n clearBuffers(parser)\n parser.q = parser.c = ''\n parser.bufferCheckPosition = sax.MAX_BUFFER_LENGTH\n parser.opt = opt || {}\n parser.opt.lowercase = parser.opt.lowercase || parser.opt.lowercasetags\n parser.looseCase = parser.opt.lowercase ? 'toLowerCase' : 'toUpperCase'\n parser.tags = []\n parser.closed = parser.closedRoot = parser.sawRoot = false\n parser.tag = parser.error = null\n parser.strict = !!strict\n parser.noscript = !!(strict || parser.opt.noscript)\n parser.state = S.BEGIN\n parser.strictEntities = parser.opt.strictEntities\n parser.ENTITIES = parser.strictEntities ? Object.create(sax.XML_ENTITIES) : Object.create(sax.ENTITIES)\n parser.attribList = []\n\n // namespaces form a prototype chain.\n // it always points at the current tag,\n // which protos to its parent tag.\n if (parser.opt.xmlns) {\n parser.ns = Object.create(rootNS)\n }\n\n // mostly just for error reporting\n parser.trackPosition = parser.opt.position !== false\n if (parser.trackPosition) {\n parser.position = parser.line = parser.column = 0\n }\n emit(parser, 'onready')\n }\n\n if (!Object.create) {\n Object.create = function (o) {\n function F () {}\n F.prototype = o\n var newf = new F()\n return newf\n }\n }\n\n if (!Object.keys) {\n Object.keys = function (o) {\n var a = []\n for (var i in o) if (o.hasOwnProperty(i)) a.push(i)\n return a\n }\n }\n\n function checkBufferLength (parser) {\n var maxAllowed = Math.max(sax.MAX_BUFFER_LENGTH, 10)\n var maxActual = 0\n for (var i = 0, l = buffers.length; i < l; i++) {\n var len = parser[buffers[i]].length\n if (len > maxAllowed) {\n // Text/cdata nodes can get big, and since they're buffered,\n // we can get here under normal conditions.\n // Avoid issues by emitting the text node now,\n // so at least it won't get any bigger.\n switch (buffers[i]) {\n case 'textNode':\n closeText(parser)\n break\n\n case 'cdata':\n emitNode(parser, 'oncdata', parser.cdata)\n parser.cdata = ''\n break\n\n case 'script':\n emitNode(parser, 'onscript', parser.script)\n parser.script = ''\n break\n\n default:\n error(parser, 'Max buffer length exceeded: ' + buffers[i])\n }\n }\n maxActual = Math.max(maxActual, len)\n }\n // schedule the next check for the earliest possible buffer overrun.\n var m = sax.MAX_BUFFER_LENGTH - maxActual\n parser.bufferCheckPosition = m + parser.position\n }\n\n function clearBuffers (parser) {\n for (var i = 0, l = buffers.length; i < l; i++) {\n parser[buffers[i]] = ''\n }\n }\n\n function flushBuffers (parser) {\n closeText(parser)\n if (parser.cdata !== '') {\n emitNode(parser, 'oncdata', parser.cdata)\n parser.cdata = ''\n }\n if (parser.script !== '') {\n emitNode(parser, 'onscript', parser.script)\n parser.script = ''\n }\n }\n\n SAXParser.prototype = {\n end: function () { end(this) },\n write: write,\n resume: function () { this.error = null; return this },\n close: function () { return this.write(null) },\n flush: function () { flushBuffers(this) }\n }\n\n var Stream\n try {\n Stream = require('stream').Stream\n } catch (ex) {\n Stream = function () {}\n }\n\n var streamWraps = sax.EVENTS.filter(function (ev) {\n return ev !== 'error' && ev !== 'end'\n })\n\n function createStream (strict, opt) {\n return new SAXStream(strict, opt)\n }\n\n function SAXStream (strict, opt) {\n if (!(this instanceof SAXStream)) {\n return new SAXStream(strict, opt)\n }\n\n Stream.apply(this)\n\n this._parser = new SAXParser(strict, opt)\n this.writable = true\n this.readable = true\n\n var me = this\n\n this._parser.onend = function () {\n me.emit('end')\n }\n\n this._parser.onerror = function (er) {\n me.emit('error', er)\n\n // if didn't throw, then means error was handled.\n // go ahead and clear error, so we can write again.\n me._parser.error = null\n }\n\n this._decoder = null\n\n streamWraps.forEach(function (ev) {\n Object.defineProperty(me, 'on' + ev, {\n get: function () {\n return me._parser['on' + ev]\n },\n set: function (h) {\n if (!h) {\n me.removeAllListeners(ev)\n me._parser['on' + ev] = h\n return h\n }\n me.on(ev, h)\n },\n enumerable: true,\n configurable: false\n })\n })\n }\n\n SAXStream.prototype = Object.create(Stream.prototype, {\n constructor: {\n value: SAXStream\n }\n })\n\n SAXStream.prototype.write = function (data) {\n if (typeof Buffer === 'function' &&\n typeof Buffer.isBuffer === 'function' &&\n Buffer.isBuffer(data)) {\n if (!this._decoder) {\n var SD = require('string_decoder').StringDecoder\n this._decoder = new SD('utf8')\n }\n data = this._decoder.write(data)\n }\n\n this._parser.write(data.toString())\n this.emit('data', data)\n return true\n }\n\n SAXStream.prototype.end = function (chunk) {\n if (chunk && chunk.length) {\n this.write(chunk)\n }\n this._parser.end()\n return true\n }\n\n SAXStream.prototype.on = function (ev, handler) {\n var me = this\n if (!me._parser['on' + ev] && streamWraps.indexOf(ev) !== -1) {\n me._parser['on' + ev] = function () {\n var args = arguments.length === 1 ? [arguments[0]] : Array.apply(null, arguments)\n args.splice(0, 0, ev)\n me.emit.apply(me, args)\n }\n }\n\n return Stream.prototype.on.call(me, ev, handler)\n }\n\n // this really needs to be replaced with character classes.\n // XML allows all manner of ridiculous numbers and digits.\n var CDATA = '[CDATA['\n var DOCTYPE = 'DOCTYPE'\n var XML_NAMESPACE = 'http://www.w3.org/XML/1998/namespace'\n var XMLNS_NAMESPACE = 'http://www.w3.org/2000/xmlns/'\n var rootNS = { xml: XML_NAMESPACE, xmlns: XMLNS_NAMESPACE }\n\n // http://www.w3.org/TR/REC-xml/#NT-NameStartChar\n // This implementation works on strings, a single character at a time\n // as such, it cannot ever support astral-plane characters (10000-EFFFF)\n // without a significant breaking change to either this parser, or the\n // JavaScript language. Implementation of an emoji-capable xml parser\n // is left as an exercise for the reader.\n var nameStart = /[:_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]/\n\n var nameBody = /[:_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\\u00B7\\u0300-\\u036F\\u203F-\\u2040.\\d-]/\n\n var entityStart = /[#:_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]/\n var entityBody = /[#:_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\\u00B7\\u0300-\\u036F\\u203F-\\u2040.\\d-]/\n\n function isWhitespace (c) {\n return c === ' ' || c === '\\n' || c === '\\r' || c === '\\t'\n }\n\n function isQuote (c) {\n return c === '\"' || c === '\\''\n }\n\n function isAttribEnd (c) {\n return c === '>' || isWhitespace(c)\n }\n\n function isMatch (regex, c) {\n return regex.test(c)\n }\n\n function notMatch (regex, c) {\n return !isMatch(regex, c)\n }\n\n var S = 0\n sax.STATE = {\n BEGIN: S++, // leading byte order mark or whitespace\n BEGIN_WHITESPACE: S++, // leading whitespace\n TEXT: S++, // general stuff\n TEXT_ENTITY: S++, // & and such.\n OPEN_WAKA: S++, // <\n SGML_DECL: S++, // \n SCRIPT: S++, //